@plexui/react-native 0.2.14 → 0.2.15

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.
@@ -102,8 +102,9 @@ function IOSControl({ options, value, select, keys, disabled, block, equal, show
102
102
  // A drawn count ends a label in a capsule of its own: the thumb keeps 10 beside the label and the capsule, so the
103
103
  // capsule does not touch the thumb's end
104
104
  const gutter = showBadges && options.some((option) => option.badge != null) ? Math.max(look.optionGutter, 10) : look.optionGutter;
105
- // The large glass control held down, as the phone CSS ports it: the capsule grows 7% and whitens, the held label
106
- // fades to 20%, with no capsule of its own under the finger
105
+ // The large glass control held down: the held label fades to 20%, as UISegmentedControl dims a segment under the
106
+ // finger; the capsule stays as it is, no growth and no whitening (owner 25.11: the control must not swell and snap
107
+ // back on a tap)
107
108
  const largeGlass = look.glass && look.height >= 40;
108
109
  const [held, setHeld] = useState(null);
109
110
  // The thumb's place from the segments in their order, so a reorder moves it even when no box changes size
@@ -164,7 +165,7 @@ function IOSControl({ options, value, select, keys, disabled, block, equal, show
164
165
  })] }));
165
166
  if (look.glass) {
166
167
  // The glass keeps the control's fill over it: one flat layer, no sheen (touch.css)
167
- return (_jsxs(Glass, { radius: look.height / 2, fillToken: look.height >= 40 ? "--segmented-control-mobile-glass-background" : undefined, tint: largeGlass && held != null ? theme.color("--segmented-control-mobile-glass-background-pressed", theme.scheme === "dark" ? "rgba(255, 255, 255, 0.2)" : "rgba(255, 255, 255, 0.85)") : undefined, style: [track, block ? styles.stretch : null, largeGlass && held != null ? styles.heldControl : null], children: [look.height < 40 && look.fill ? _jsx(View, { pointerEvents: "none", style: [StyleSheet.absoluteFill, { borderRadius: look.height / 2, backgroundColor: look.fill }] }) : null, content] }));
168
+ return (_jsxs(Glass, { radius: look.height / 2, fillToken: look.height >= 40 ? "--segmented-control-mobile-glass-background" : undefined, style: [track, block ? styles.stretch : null], children: [look.height < 40 && look.fill ? _jsx(View, { pointerEvents: "none", style: [StyleSheet.absoluteFill, { borderRadius: look.height / 2, backgroundColor: look.fill }] }) : null, content] }));
168
169
  }
169
170
  return _jsx(View, { style: [track, { backgroundColor: look.fill }, block ? styles.stretch : null], children: content });
170
171
  }
@@ -284,7 +285,6 @@ const styles = StyleSheet.create({
284
285
  grow: { flex: 1 },
285
286
  // The control is in a column: it fills the width and keeps its own height
286
287
  stretch: { alignSelf: "stretch" },
287
- heldControl: { transform: [{ scale: 1.07 }] },
288
288
  heldLabel: { opacity: 0.2 },
289
289
  // 18 tall, taller with a larger text size: the capsule grows round its digits
290
290
  count: { minWidth: 18, minHeight: 18, paddingHorizontal: 5, borderRadius: 999, alignItems: "center", justifyContent: "center" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plexui/react-native",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "description": "Plex UI components for React Native and Expo: iOS 26 and Material 3, on the shared @plexui/styles tokens",
5
5
  "license": "MIT",
6
6
  "homepage": "https://plexui.com",
@@ -225,8 +225,9 @@ function IOSControl({ options, value, select, keys, disabled, block, equal, show
225
225
  // A drawn count ends a label in a capsule of its own: the thumb keeps 10 beside the label and the capsule, so the
226
226
  // capsule does not touch the thumb's end
227
227
  const gutter = showBadges && options.some((option) => option.badge != null) ? Math.max(look.optionGutter, 10) : look.optionGutter
228
- // The large glass control held down, as the phone CSS ports it: the capsule grows 7% and whitens, the held label
229
- // fades to 20%, with no capsule of its own under the finger
228
+ // The large glass control held down: the held label fades to 20%, as UISegmentedControl dims a segment under the
229
+ // finger; the capsule stays as it is, no growth and no whitening (owner 25.11: the control must not swell and snap
230
+ // back on a tap)
230
231
  const largeGlass = look.glass && look.height >= 40
231
232
  const [held, setHeld] = useState<string | null>(null)
232
233
  // The thumb's place from the segments in their order, so a reorder moves it even when no box changes size
@@ -338,8 +339,7 @@ function IOSControl({ options, value, select, keys, disabled, block, equal, show
338
339
  <Glass
339
340
  radius={look.height / 2}
340
341
  fillToken={look.height >= 40 ? "--segmented-control-mobile-glass-background" : undefined}
341
- tint={largeGlass && held != null ? theme.color("--segmented-control-mobile-glass-background-pressed", theme.scheme === "dark" ? "rgba(255, 255, 255, 0.2)" : "rgba(255, 255, 255, 0.85)") : undefined}
342
- style={[track, block ? styles.stretch : null, largeGlass && held != null ? styles.heldControl : null]}
342
+ style={[track, block ? styles.stretch : null]}
343
343
  >
344
344
  {look.height < 40 && look.fill ? <View pointerEvents="none" style={[StyleSheet.absoluteFill, { borderRadius: look.height / 2, backgroundColor: look.fill }]} /> : null}
345
345
  {content}
@@ -538,7 +538,6 @@ const styles = StyleSheet.create({
538
538
  grow: { flex: 1 },
539
539
  // The control is in a column: it fills the width and keeps its own height
540
540
  stretch: { alignSelf: "stretch" },
541
- heldControl: { transform: [{ scale: 1.07 }] },
542
541
  heldLabel: { opacity: 0.2 },
543
542
  // 18 tall, taller with a larger text size: the capsule grows round its digits
544
543
  count: { minWidth: 18, minHeight: 18, paddingHorizontal: 5, borderRadius: 999, alignItems: "center", justifyContent: "center" },