Update files
This commit is contained in:
@@ -45,7 +45,7 @@ export function HeaderToggleButton({
|
|||||||
<TooltipContent testID={tooltipTestID} side={tooltipSide} align="center" offset={8}>
|
<TooltipContent testID={tooltipTestID} side={tooltipSide} align="center" offset={8}>
|
||||||
<View style={styles.tooltipRow}>
|
<View style={styles.tooltipRow}>
|
||||||
<Text style={styles.tooltipText}>{tooltipLabel}</Text>
|
<Text style={styles.tooltipText}>{tooltipLabel}</Text>
|
||||||
<Shortcut keys={tooltipKeys} style={styles.shortcut} textStyle={styles.shortcutText} />
|
<Shortcut keys={tooltipKeys} style={styles.shortcut} />
|
||||||
</View>
|
</View>
|
||||||
</TooltipContent>
|
</TooltipContent>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
@@ -73,7 +73,4 @@ const styles = StyleSheet.create((theme) => ({
|
|||||||
backgroundColor: theme.colors.surface3,
|
backgroundColor: theme.colors.surface3,
|
||||||
borderColor: theme.colors.borderAccent,
|
borderColor: theme.colors.borderAccent,
|
||||||
},
|
},
|
||||||
shortcutText: {
|
|
||||||
color: theme.colors.popoverForeground,
|
|
||||||
},
|
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -327,8 +327,8 @@ const expandableBadgeStylesheet = StyleSheet.create((theme) => ({
|
|||||||
pressable: {
|
pressable: {
|
||||||
borderRadius: theme.borderRadius.lg,
|
borderRadius: theme.borderRadius.lg,
|
||||||
borderWidth: theme.borderWidth[1],
|
borderWidth: theme.borderWidth[1],
|
||||||
borderColor: theme.colors.borderAccent,
|
borderColor: theme.colors.border,
|
||||||
backgroundColor: theme.colors.surface2,
|
backgroundColor: theme.colors.surface1,
|
||||||
paddingHorizontal: theme.spacing[2],
|
paddingHorizontal: theme.spacing[2],
|
||||||
paddingVertical: theme.spacing[1],
|
paddingVertical: theme.spacing[1],
|
||||||
},
|
},
|
||||||
@@ -350,6 +350,7 @@ const expandableBadgeStylesheet = StyleSheet.create((theme) => ({
|
|||||||
},
|
},
|
||||||
label: {
|
label: {
|
||||||
color: theme.colors.foreground,
|
color: theme.colors.foreground,
|
||||||
|
opacity: 0.88,
|
||||||
fontSize: theme.fontSize.base,
|
fontSize: theme.fontSize.base,
|
||||||
fontWeight: theme.fontWeight.normal,
|
fontWeight: theme.fontWeight.normal,
|
||||||
flexShrink: 0,
|
flexShrink: 0,
|
||||||
@@ -373,7 +374,7 @@ const expandableBadgeStylesheet = StyleSheet.create((theme) => ({
|
|||||||
borderBottomRightRadius: theme.borderRadius.lg,
|
borderBottomRightRadius: theme.borderRadius.lg,
|
||||||
borderWidth: theme.borderWidth[1],
|
borderWidth: theme.borderWidth[1],
|
||||||
borderTopWidth: 0,
|
borderTopWidth: 0,
|
||||||
borderColor: theme.colors.borderAccent,
|
borderColor: theme.colors.border,
|
||||||
backgroundColor: theme.colors.surface1,
|
backgroundColor: theme.colors.surface1,
|
||||||
padding: 0,
|
padding: 0,
|
||||||
gap: 0,
|
gap: 0,
|
||||||
@@ -986,32 +987,34 @@ const ExpandableBadge = memo(function ExpandableBadge({
|
|||||||
isExpanded && expandableBadgeStylesheet.pressableExpanded,
|
isExpanded && expandableBadgeStylesheet.pressableExpanded,
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<View style={expandableBadgeStylesheet.headerRow}>
|
{({ hovered }) => (
|
||||||
<View style={expandableBadgeStylesheet.iconBadge}>{iconNode}</View>
|
<View style={expandableBadgeStylesheet.headerRow}>
|
||||||
<Text style={expandableBadgeStylesheet.label} numberOfLines={1}>
|
<View style={expandableBadgeStylesheet.iconBadge}>{iconNode}</View>
|
||||||
{label}
|
<Text style={expandableBadgeStylesheet.label} numberOfLines={1}>
|
||||||
</Text>
|
{label}
|
||||||
{secondaryLabel ? (
|
|
||||||
<Text
|
|
||||||
style={expandableBadgeStylesheet.secondaryLabel}
|
|
||||||
numberOfLines={1}
|
|
||||||
>
|
|
||||||
{secondaryLabel}
|
|
||||||
</Text>
|
</Text>
|
||||||
) : (
|
{secondaryLabel ? (
|
||||||
<View style={expandableBadgeStylesheet.spacer} />
|
<Text
|
||||||
)}
|
style={expandableBadgeStylesheet.secondaryLabel}
|
||||||
{hasDetails ? (
|
numberOfLines={1}
|
||||||
<ChevronRight
|
>
|
||||||
size={14}
|
{secondaryLabel}
|
||||||
color={theme.colors.foregroundMuted}
|
</Text>
|
||||||
style={[
|
) : (
|
||||||
expandableBadgeStylesheet.chevron,
|
<View style={expandableBadgeStylesheet.spacer} />
|
||||||
{ transform: [{ rotate: isExpanded ? "90deg" : "0deg" }] },
|
)}
|
||||||
]}
|
{hasDetails && hovered ? (
|
||||||
/>
|
<ChevronRight
|
||||||
) : null}
|
size={14}
|
||||||
</View>
|
color={theme.colors.foregroundMuted}
|
||||||
|
style={[
|
||||||
|
expandableBadgeStylesheet.chevron,
|
||||||
|
{ transform: [{ rotate: isExpanded ? "90deg" : "0deg" }] },
|
||||||
|
]}
|
||||||
|
/>
|
||||||
|
) : null}
|
||||||
|
</View>
|
||||||
|
)}
|
||||||
</Pressable>
|
</Pressable>
|
||||||
{detailContent ? (
|
{detailContent ? (
|
||||||
<View style={expandableBadgeStylesheet.detailWrapper}>
|
<View style={expandableBadgeStylesheet.detailWrapper}>
|
||||||
|
|||||||
@@ -24,14 +24,14 @@ const styles = StyleSheet.create((theme) => ({
|
|||||||
root: {
|
root: {
|
||||||
paddingHorizontal: theme.spacing[1],
|
paddingHorizontal: theme.spacing[1],
|
||||||
paddingVertical: 2,
|
paddingVertical: 2,
|
||||||
borderRadius: theme.borderRadius.sm,
|
borderRadius: theme.borderRadius.md,
|
||||||
backgroundColor: theme.colors.surface2,
|
backgroundColor: theme.colors.surface2,
|
||||||
borderWidth: theme.borderWidth[1],
|
borderWidth: theme.borderWidth[1],
|
||||||
borderColor: theme.colors.borderAccent,
|
borderColor: theme.colors.borderAccent,
|
||||||
},
|
},
|
||||||
text: {
|
text: {
|
||||||
fontSize: theme.fontSize.xs,
|
fontSize: theme.fontSize.xs,
|
||||||
fontWeight: theme.fontWeight.medium,
|
fontWeight: theme.fontWeight.normal,
|
||||||
color: theme.colors.foreground,
|
color: theme.colors.foregroundMuted,
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -463,7 +463,7 @@ const styles = StyleSheet.create((theme) => ({
|
|||||||
content: {
|
content: {
|
||||||
paddingVertical: theme.spacing[1],
|
paddingVertical: theme.spacing[1],
|
||||||
paddingHorizontal: theme.spacing[2],
|
paddingHorizontal: theme.spacing[2],
|
||||||
borderRadius: theme.borderRadius.md,
|
borderRadius: theme.borderRadius.lg,
|
||||||
backgroundColor: theme.colors.popover,
|
backgroundColor: theme.colors.popover,
|
||||||
borderWidth: theme.borderWidth[1],
|
borderWidth: theme.borderWidth[1],
|
||||||
borderColor: theme.colors.border,
|
borderColor: theme.colors.border,
|
||||||
|
|||||||
Reference in New Issue
Block a user