@lotics/ui 28.3.0 → 28.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/chip_group.tsx +10 -1
- package/src/filter_chip.tsx +8 -2
package/package.json
CHANGED
package/src/chip_group.tsx
CHANGED
|
@@ -70,7 +70,16 @@ export function ChipGroup<T extends string = string>(props: ChipGroupProps<T>) {
|
|
|
70
70
|
// after its own, so this is the override, not a fight.)
|
|
71
71
|
style={(state) => [chipSurfaceStyle(state, { selected: active }), styles.chip]}
|
|
72
72
|
>
|
|
73
|
-
|
|
73
|
+
{/* A control's label is not prose. Without this, dragging across the
|
|
74
|
+
filter row selects the chip text instead of reading as a control —
|
|
75
|
+
`SegmentedControl` and `Button` already suppress it, and the chips
|
|
76
|
+
were the gap. */}
|
|
77
|
+
<Text
|
|
78
|
+
userSelect="none"
|
|
79
|
+
size="sm"
|
|
80
|
+
weight={active ? "semibold" : "medium"}
|
|
81
|
+
color={active ? "default" : "muted"}
|
|
82
|
+
>
|
|
74
83
|
{option.label}
|
|
75
84
|
</Text>
|
|
76
85
|
</PressableHighlight>
|
package/src/filter_chip.tsx
CHANGED
|
@@ -93,11 +93,17 @@ export function FilterChip(props: FilterChipProps) {
|
|
|
93
93
|
<Chip onDismiss={showClear ? onClear : undefined} dismissTooltip={clearLabel}>
|
|
94
94
|
{active && typeof summary !== "string" ? (
|
|
95
95
|
<View style={styles.summaryRow}>
|
|
96
|
-
<Text size="sm" weight="medium" color="zinc-700">{`${label}:`}</Text>
|
|
96
|
+
<Text userSelect="none" size="sm" weight="medium" color="zinc-700">{`${label}:`}</Text>
|
|
97
97
|
{summary}
|
|
98
98
|
</View>
|
|
99
99
|
) : (
|
|
100
|
-
<Text
|
|
100
|
+
<Text
|
|
101
|
+
userSelect="none"
|
|
102
|
+
size="sm"
|
|
103
|
+
weight="medium"
|
|
104
|
+
color={active ? "zinc-900" : "zinc-700"}
|
|
105
|
+
numberOfLines={1}
|
|
106
|
+
>
|
|
101
107
|
{active ? `${label}: ${summary}` : label}
|
|
102
108
|
</Text>
|
|
103
109
|
)}
|