@vvedantb/native-ui 0.35.0 → 0.36.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.
Files changed (42) hide show
  1. package/README.md +16 -1
  2. package/dist/Button.jsx +29 -18
  3. package/dist/DropdownMenu.jsx +89 -39
  4. package/dist/ExpoWebRoot.jsx +42 -21
  5. package/dist/Field.jsx +309 -0
  6. package/dist/FloatingTabBar.jsx +98 -94
  7. package/dist/IconButton.jsx +74 -51
  8. package/dist/ai/conversation.jsx +1 -1
  9. package/dist/ai/icon-button.jsx +67 -60
  10. package/dist/ai/prompt-input.jsx +9 -8
  11. package/dist/blur.js +6 -0
  12. package/dist/controlStyles.js +24 -2
  13. package/dist/entries/primitives.js +1 -0
  14. package/dist/examples/ParityGallery.jsx +488 -475
  15. package/dist/glassBlur.jsx +1 -1
  16. package/dist/index.js +1 -0
  17. package/dist/primitives/window-layer.jsx +35 -28
  18. package/package.json +27 -3
  19. package/src/Button.tsx +18 -7
  20. package/src/DropdownMenu.tsx +53 -7
  21. package/src/ExpoWebRoot.tsx +18 -3
  22. package/src/Field.tsx +105 -0
  23. package/src/FloatingTabBar.tsx +17 -12
  24. package/src/IconButton.tsx +7 -4
  25. package/src/Spinner.tsx +2 -2
  26. package/src/ai/conversation.tsx +1 -1
  27. package/src/ai/icon-button.tsx +5 -4
  28. package/src/ai/message.tsx +2 -2
  29. package/src/ai/prompt-input.tsx +6 -4
  30. package/src/auth/AccountScreens.tsx +4 -4
  31. package/src/auth/SignInScreen.tsx +4 -4
  32. package/src/blur.ts +8 -0
  33. package/src/controlStyles.ts +29 -2
  34. package/src/entries/primitives.ts +2 -0
  35. package/src/examples/ParityGallery.tsx +22 -1
  36. package/src/glassBlur.tsx +5 -7
  37. package/src/index.ts +2 -0
  38. package/src/primitives/sheet-gesture.tsx +1 -2
  39. package/src/primitives/web-click-guard.ts +3 -3
  40. package/src/primitives/window-layer.tsx +8 -6
  41. package/src/tabBarRoutes.ts +4 -3
  42. package/src/webview/HtmlView.tsx +5 -2
package/dist/Field.jsx ADDED
@@ -0,0 +1,309 @@
1
+ import { c as _c } from "react/compiler-runtime";
2
+ import * as React from "react";
3
+ import { Text, View } from "react-native";
4
+ import { cn } from "./cn";
5
+ import { Input } from "./Input";
6
+ import { Label } from "./Label";
7
+ import { sizeStyle, textStyle, typeStyle } from "./controlStyles";
8
+ import { palette } from "./palette";
9
+ import { useLargerText } from "./theme";
10
+ import { useScheme } from "./useScheme";
11
+ const FieldContext = React.createContext(null);
12
+ function useField(part) {
13
+ const value = React.useContext(FieldContext);
14
+ if (!value) {
15
+ throw new Error(`${part} must be used inside <Field>.`);
16
+ }
17
+ return value;
18
+ }
19
+ /**
20
+ * A labelled control: a `gap-2` column. It generates the `nativeID` that
21
+ * `FieldLabel` sets and `FieldControl` points at with `accessibilityLabelledBy`.
22
+ * A plain `Input` does not need it.
23
+ */
24
+ function Field(t0) {
25
+ const $ = _c(15);
26
+ let className;
27
+ let labelId;
28
+ let props;
29
+ if ($[0] !== t0) {
30
+ ({
31
+ className,
32
+ labelId,
33
+ ...props
34
+ } = t0);
35
+ $[0] = t0;
36
+ $[1] = className;
37
+ $[2] = labelId;
38
+ $[3] = props;
39
+ } else {
40
+ className = $[1];
41
+ labelId = $[2];
42
+ props = $[3];
43
+ }
44
+ const generated = React.useId();
45
+ const [hasLabel, setHasLabel] = React.useState(false);
46
+ const id = labelId ?? `field-${generated}-label`;
47
+ let t1;
48
+ if ($[4] !== hasLabel || $[5] !== id) {
49
+ t1 = {
50
+ labelId: id,
51
+ hasLabel,
52
+ setHasLabel
53
+ };
54
+ $[4] = hasLabel;
55
+ $[5] = id;
56
+ $[6] = t1;
57
+ } else {
58
+ t1 = $[6];
59
+ }
60
+ const context = t1;
61
+ let t2;
62
+ if ($[7] !== className) {
63
+ t2 = cn("gap-2", className);
64
+ $[7] = className;
65
+ $[8] = t2;
66
+ } else {
67
+ t2 = $[8];
68
+ }
69
+ let t3;
70
+ if ($[9] !== props || $[10] !== t2) {
71
+ t3 = <View className={t2} {...props} />;
72
+ $[9] = props;
73
+ $[10] = t2;
74
+ $[11] = t3;
75
+ } else {
76
+ t3 = $[11];
77
+ }
78
+ let t4;
79
+ if ($[12] !== context || $[13] !== t3) {
80
+ t4 = <FieldContext.Provider value={context}>{t3}</FieldContext.Provider>;
81
+ $[12] = context;
82
+ $[13] = t3;
83
+ $[14] = t4;
84
+ } else {
85
+ t4 = $[14];
86
+ }
87
+ return t4;
88
+ }
89
+
90
+ /** `Label` with the `nativeID` of the nearest `Field`. */
91
+ function FieldLabel(props) {
92
+ const $ = _c(6);
93
+ const field = useField("FieldLabel");
94
+ const {
95
+ setHasLabel
96
+ } = field;
97
+ let t0;
98
+ let t1;
99
+ if ($[0] !== setHasLabel) {
100
+ t0 = () => {
101
+ setHasLabel(true);
102
+ return () => setHasLabel(false);
103
+ };
104
+ t1 = [setHasLabel];
105
+ $[0] = setHasLabel;
106
+ $[1] = t0;
107
+ $[2] = t1;
108
+ } else {
109
+ t0 = $[1];
110
+ t1 = $[2];
111
+ }
112
+ React.useLayoutEffect(t0, t1);
113
+ let t2;
114
+ if ($[3] !== field.labelId || $[4] !== props) {
115
+ t2 = <Label nativeID={field.labelId} {...props} />;
116
+ $[3] = field.labelId;
117
+ $[4] = props;
118
+ $[5] = t2;
119
+ } else {
120
+ t2 = $[5];
121
+ }
122
+ return t2;
123
+ }
124
+
125
+ /**
126
+ * `Input` that names itself from the `FieldLabel` of the nearest `Field`
127
+ * (`accessibilityLabelledBy`, Android). With no `FieldLabel` rendered it
128
+ * keeps the `accessibilityLabel` you pass, which is the fallback on iOS too.
129
+ */
130
+ function FieldControl(props) {
131
+ const $ = _c(6);
132
+ const field = useField("FieldControl");
133
+ let t0;
134
+ if ($[0] !== field.hasLabel || $[1] !== field.labelId) {
135
+ t0 = field.hasLabel ? {
136
+ accessibilityLabelledBy: field.labelId
137
+ } : null;
138
+ $[0] = field.hasLabel;
139
+ $[1] = field.labelId;
140
+ $[2] = t0;
141
+ } else {
142
+ t0 = $[2];
143
+ }
144
+ let t1;
145
+ if ($[3] !== props || $[4] !== t0) {
146
+ t1 = <Input {...props} {...t0} />;
147
+ $[3] = props;
148
+ $[4] = t0;
149
+ $[5] = t1;
150
+ } else {
151
+ t1 = $[5];
152
+ }
153
+ return t1;
154
+ }
155
+
156
+ /** Muted hint under the control. */
157
+ function FieldDescription(t0) {
158
+ const $ = _c(19);
159
+ let className;
160
+ let props;
161
+ let style;
162
+ if ($[0] !== t0) {
163
+ ({
164
+ className,
165
+ style,
166
+ ...props
167
+ } = t0);
168
+ $[0] = t0;
169
+ $[1] = className;
170
+ $[2] = props;
171
+ $[3] = style;
172
+ } else {
173
+ className = $[1];
174
+ props = $[2];
175
+ style = $[3];
176
+ }
177
+ useField("FieldDescription");
178
+ const scheme = useScheme();
179
+ const size = useLargerText() ? "text-base" : "text-sm";
180
+ let t1;
181
+ if ($[4] !== className || $[5] !== size) {
182
+ t1 = cn("font-instrument-sans", size, className);
183
+ $[4] = className;
184
+ $[5] = size;
185
+ $[6] = t1;
186
+ } else {
187
+ t1 = $[6];
188
+ }
189
+ let t2;
190
+ if ($[7] !== scheme) {
191
+ t2 = textStyle("muted", scheme);
192
+ $[7] = scheme;
193
+ $[8] = t2;
194
+ } else {
195
+ t2 = $[8];
196
+ }
197
+ let t3;
198
+ if ($[9] !== size) {
199
+ t3 = sizeStyle(size);
200
+ $[9] = size;
201
+ $[10] = t3;
202
+ } else {
203
+ t3 = $[10];
204
+ }
205
+ let t4;
206
+ if ($[11] !== style || $[12] !== t2 || $[13] !== t3) {
207
+ t4 = [t2, t3, style];
208
+ $[11] = style;
209
+ $[12] = t2;
210
+ $[13] = t3;
211
+ $[14] = t4;
212
+ } else {
213
+ t4 = $[14];
214
+ }
215
+ let t5;
216
+ if ($[15] !== props || $[16] !== t1 || $[17] !== t4) {
217
+ t5 = <Text className={t1} style={t4} {...props} />;
218
+ $[15] = props;
219
+ $[16] = t1;
220
+ $[17] = t4;
221
+ $[18] = t5;
222
+ } else {
223
+ t5 = $[18];
224
+ }
225
+ return t5;
226
+ }
227
+
228
+ /** Error message under the control, read out when it appears. */
229
+ function FieldError(t0) {
230
+ const $ = _c(20);
231
+ let className;
232
+ let props;
233
+ let style;
234
+ if ($[0] !== t0) {
235
+ ({
236
+ className,
237
+ style,
238
+ ...props
239
+ } = t0);
240
+ $[0] = t0;
241
+ $[1] = className;
242
+ $[2] = props;
243
+ $[3] = style;
244
+ } else {
245
+ className = $[1];
246
+ props = $[2];
247
+ style = $[3];
248
+ }
249
+ useField("FieldError");
250
+ const scheme = useScheme();
251
+ const size = useLargerText() ? "text-base" : "text-sm";
252
+ let t1;
253
+ if ($[4] !== className || $[5] !== size) {
254
+ t1 = cn("font-instrument-sans-medium", size, className);
255
+ $[4] = className;
256
+ $[5] = size;
257
+ $[6] = t1;
258
+ } else {
259
+ t1 = $[6];
260
+ }
261
+ const t2 = palette.danger[scheme];
262
+ let t3;
263
+ if ($[7] !== t2) {
264
+ t3 = {
265
+ color: t2
266
+ };
267
+ $[7] = t2;
268
+ $[8] = t3;
269
+ } else {
270
+ t3 = $[8];
271
+ }
272
+ let t4;
273
+ if ($[9] !== size) {
274
+ t4 = sizeStyle(size);
275
+ $[9] = size;
276
+ $[10] = t4;
277
+ } else {
278
+ t4 = $[10];
279
+ }
280
+ let t5;
281
+ if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
282
+ t5 = typeStyle("medium");
283
+ $[11] = t5;
284
+ } else {
285
+ t5 = $[11];
286
+ }
287
+ let t6;
288
+ if ($[12] !== style || $[13] !== t3 || $[14] !== t4) {
289
+ t6 = [t3, t4, t5, style];
290
+ $[12] = style;
291
+ $[13] = t3;
292
+ $[14] = t4;
293
+ $[15] = t6;
294
+ } else {
295
+ t6 = $[15];
296
+ }
297
+ let t7;
298
+ if ($[16] !== props || $[17] !== t1 || $[18] !== t6) {
299
+ t7 = <Text accessibilityLiveRegion="polite" accessibilityRole="alert" className={t1} style={t6} {...props} />;
300
+ $[16] = props;
301
+ $[17] = t1;
302
+ $[18] = t6;
303
+ $[19] = t7;
304
+ } else {
305
+ t7 = $[19];
306
+ }
307
+ return t7;
308
+ }
309
+ export { Field, FieldControl, FieldDescription, FieldError, FieldLabel };
@@ -27,8 +27,9 @@ const PILL_SLIDE = {
27
27
 
28
28
  /**
29
29
  * The fields this bar reads from the props Expo Router's `Tabs` passes to
30
- * `tabBar` (React Navigation's `BottomTabBarProps`, Expo SDK 57). Declared
31
- * here so the tab bar does not import `expo-router`.
30
+ * `tabBar` (its `BottomTabBarProps`, Expo SDK 58). Declared here so the tab
31
+ * bar does not import `expo-router`. SDK 58 replaced the `navigation` prop
32
+ * with an `emitter` (for `tabPress`) and `navigateToTab(routeKey)`.
32
33
  */
33
34
 
34
35
  /**
@@ -42,11 +43,12 @@ const PILL_SLIDE = {
42
43
  * whole bar with `tabBarStyle: { display: "none" }` (`isTabBarHidden`).
43
44
  */
44
45
  export function FloatingTabBar(t0) {
45
- const $ = _c(40);
46
+ const $ = _c(42);
46
47
  const {
47
48
  state,
48
49
  descriptors,
49
- navigation
50
+ emitter,
51
+ navigateToTab
50
52
  } = t0;
51
53
  const insets = useSafeAreaInsets();
52
54
  const largerText = useLargerText();
@@ -124,9 +126,9 @@ export function FloatingTabBar(t0) {
124
126
  t5 = $[17];
125
127
  }
126
128
  let t6;
127
- if ($[18] !== descriptors || $[19] !== largerText || $[20] !== navigation || $[21] !== scheme || $[22] !== state.index || $[23] !== state.routes) {
129
+ if ($[18] !== descriptors || $[19] !== emitter || $[20] !== largerText || $[21] !== navigateToTab || $[22] !== scheme || $[23] !== state.index || $[24] !== state.routes) {
128
130
  let t7;
129
- if ($[25] !== descriptors || $[26] !== largerText || $[27] !== navigation || $[28] !== scheme || $[29] !== state.index) {
131
+ if ($[26] !== descriptors || $[27] !== emitter || $[28] !== largerText || $[29] !== navigateToTab || $[30] !== scheme || $[31] !== state.index) {
130
132
  t7 = (route_1, index) => {
131
133
  const options = descriptors[route_1.key]?.options;
132
134
  if (!isTabBarRouteVisible(options)) {
@@ -135,68 +137,71 @@ export function FloatingTabBar(t0) {
135
137
  const focused = state.index === index;
136
138
  const label = typeof options.tabBarLabel === "string" ? options.tabBarLabel : typeof options.title === "string" ? options.title : route_1.name;
137
139
  const color = (focused ? options.tabBarActiveTintColor : options.tabBarInactiveTintColor) ?? tabColors("segmented", focused, scheme).color;
138
- return <TabBarItem key={route_1.key} route={route_1} navigation={navigation} focused={focused} label={label} color={color} largerText={largerText} renderIcon={options.tabBarIcon} testID={options.tabBarButtonTestID} accessibilityLabel={options.tabBarAccessibilityLabel ?? label} />;
140
+ return <TabBarItem key={route_1.key} route={route_1} emitter={emitter} navigateToTab={navigateToTab} focused={focused} label={label} color={color} largerText={largerText} renderIcon={options.tabBarIcon} testID={options.tabBarButtonTestID} accessibilityLabel={options.tabBarAccessibilityLabel ?? label} />;
139
141
  };
140
- $[25] = descriptors;
141
- $[26] = largerText;
142
- $[27] = navigation;
143
- $[28] = scheme;
144
- $[29] = state.index;
145
- $[30] = t7;
142
+ $[26] = descriptors;
143
+ $[27] = emitter;
144
+ $[28] = largerText;
145
+ $[29] = navigateToTab;
146
+ $[30] = scheme;
147
+ $[31] = state.index;
148
+ $[32] = t7;
146
149
  } else {
147
- t7 = $[30];
150
+ t7 = $[32];
148
151
  }
149
152
  t6 = state.routes.map(t7);
150
153
  $[18] = descriptors;
151
- $[19] = largerText;
152
- $[20] = navigation;
153
- $[21] = scheme;
154
- $[22] = state.index;
155
- $[23] = state.routes;
156
- $[24] = t6;
154
+ $[19] = emitter;
155
+ $[20] = largerText;
156
+ $[21] = navigateToTab;
157
+ $[22] = scheme;
158
+ $[23] = state.index;
159
+ $[24] = state.routes;
160
+ $[25] = t6;
157
161
  } else {
158
- t6 = $[24];
162
+ t6 = $[25];
159
163
  }
160
164
  let t7;
161
- if ($[31] !== t5 || $[32] !== t6) {
165
+ if ($[33] !== t5 || $[34] !== t6) {
162
166
  t7 = <View className="flex-row items-center justify-around" style={t5} accessibilityRole="tablist">{t6}</View>;
163
- $[31] = t5;
164
- $[32] = t6;
165
- $[33] = t7;
167
+ $[33] = t5;
168
+ $[34] = t6;
169
+ $[35] = t7;
166
170
  } else {
167
- t7 = $[33];
171
+ t7 = $[35];
168
172
  }
169
173
  let t8;
170
- if ($[34] !== t4 || $[35] !== t7) {
174
+ if ($[36] !== t4 || $[37] !== t7) {
171
175
  t8 = <FloatingSurface radius={FLOATING_PILL_RADIUS}>{t4}{t7}</FloatingSurface>;
172
- $[34] = t4;
173
- $[35] = t7;
174
- $[36] = t8;
176
+ $[36] = t4;
177
+ $[37] = t7;
178
+ $[38] = t8;
175
179
  } else {
176
- t8 = $[36];
180
+ t8 = $[38];
177
181
  }
178
182
  let t9;
179
- if ($[37] !== t3 || $[38] !== t8) {
183
+ if ($[39] !== t3 || $[40] !== t8) {
180
184
  t9 = <View pointerEvents="box-none" style={t3}>{t8}</View>;
181
- $[37] = t3;
182
- $[38] = t8;
183
- $[39] = t9;
185
+ $[39] = t3;
186
+ $[40] = t8;
187
+ $[41] = t9;
184
188
  } else {
185
- t9 = $[39];
189
+ t9 = $[41];
186
190
  }
187
191
  return t9;
188
192
  }
189
193
  /**
190
194
  * One tab. React Compiler (the package build) memoises it, so a switch
191
195
  * renders only the two tabs whose focus changed. Its props are stable between
192
- * switches: `route` and `navigation` keep their identity, and `tabBarIcon` is
193
- * the caller's function.
196
+ * switches: `route`, `emitter` and `navigateToTab` keep their identity, and
197
+ * `tabBarIcon` is the caller's function.
194
198
  */
195
199
  function TabBarItem(t0) {
196
- const $ = _c(34);
200
+ const $ = _c(33);
197
201
  const {
198
202
  route,
199
- navigation,
203
+ emitter,
204
+ navigateToTab,
200
205
  focused,
201
206
  label,
202
207
  color,
@@ -207,117 +212,116 @@ function TabBarItem(t0) {
207
212
  } = t0;
208
213
  const press = usePressed();
209
214
  let t1;
210
- if ($[0] !== focused || $[1] !== navigation || $[2] !== route.key || $[3] !== route.name || $[4] !== route.params) {
215
+ if ($[0] !== emitter || $[1] !== focused || $[2] !== navigateToTab || $[3] !== route.key) {
211
216
  t1 = () => {
212
- const event = navigation.emit({
217
+ const event = emitter.emit({
213
218
  type: "tabPress",
214
219
  target: route.key,
215
220
  canPreventDefault: true
216
221
  });
217
222
  if (!focused && !event.defaultPrevented) {
218
223
  selectionHaptic();
219
- navigation.navigate(route.name, route.params);
224
+ navigateToTab(route.key);
220
225
  }
221
226
  };
222
- $[0] = focused;
223
- $[1] = navigation;
224
- $[2] = route.key;
225
- $[3] = route.name;
226
- $[4] = route.params;
227
- $[5] = t1;
227
+ $[0] = emitter;
228
+ $[1] = focused;
229
+ $[2] = navigateToTab;
230
+ $[3] = route.key;
231
+ $[4] = t1;
228
232
  } else {
229
- t1 = $[5];
233
+ t1 = $[4];
230
234
  }
231
235
  const onPress = t1;
232
236
  let t2;
233
- if ($[6] !== focused) {
237
+ if ($[5] !== focused) {
234
238
  t2 = {
235
239
  selected: focused
236
240
  };
237
- $[6] = focused;
238
- $[7] = t2;
241
+ $[5] = focused;
242
+ $[6] = t2;
239
243
  } else {
240
- t2 = $[7];
244
+ t2 = $[6];
241
245
  }
242
246
  const t3 = press.onPressIn;
243
247
  const t4 = press.onPressOut;
244
248
  const t5 = press.pressed ? 0.7 : 1;
245
249
  let t6;
246
- if ($[8] !== t5) {
250
+ if ($[7] !== t5) {
247
251
  t6 = {
248
252
  opacity: t5
249
253
  };
250
- $[8] = t5;
251
- $[9] = t6;
254
+ $[7] = t5;
255
+ $[8] = t6;
252
256
  } else {
253
- t6 = $[9];
257
+ t6 = $[8];
254
258
  }
255
259
  let t7;
256
- if ($[10] !== color || $[11] !== focused || $[12] !== largerText || $[13] !== renderIcon) {
260
+ if ($[9] !== color || $[10] !== focused || $[11] !== largerText || $[12] !== renderIcon) {
257
261
  t7 = renderIcon ? renderIcon({
258
262
  focused,
259
263
  color,
260
264
  size: largerText ? 28 : 24
261
265
  }) : null;
262
- $[10] = color;
263
- $[11] = focused;
264
- $[12] = largerText;
265
- $[13] = renderIcon;
266
- $[14] = t7;
266
+ $[9] = color;
267
+ $[10] = focused;
268
+ $[11] = largerText;
269
+ $[12] = renderIcon;
270
+ $[13] = t7;
267
271
  } else {
268
- t7 = $[14];
272
+ t7 = $[13];
269
273
  }
270
274
  const t8 = `font-instrument-sans-semibold ${largerText ? "text-base" : "text-sm"}`;
271
275
  let t9;
272
- if ($[15] !== color) {
276
+ if ($[14] !== color) {
273
277
  t9 = {
274
278
  color
275
279
  };
276
- $[15] = color;
277
- $[16] = t9;
280
+ $[14] = color;
281
+ $[15] = t9;
278
282
  } else {
279
- t9 = $[16];
283
+ t9 = $[15];
280
284
  }
281
285
  let t10;
282
- if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
286
+ if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
283
287
  t10 = typeStyle("semibold");
284
- $[17] = t10;
288
+ $[16] = t10;
285
289
  } else {
286
- t10 = $[17];
290
+ t10 = $[16];
287
291
  }
288
292
  let t11;
289
- if ($[18] !== t9) {
293
+ if ($[17] !== t9) {
290
294
  t11 = [t9, t10];
291
- $[18] = t9;
292
- $[19] = t11;
295
+ $[17] = t9;
296
+ $[18] = t11;
293
297
  } else {
294
- t11 = $[19];
298
+ t11 = $[18];
295
299
  }
296
300
  let t12;
297
- if ($[20] !== label || $[21] !== t11 || $[22] !== t8) {
301
+ if ($[19] !== label || $[20] !== t11 || $[21] !== t8) {
298
302
  t12 = <Text numberOfLines={1} maxFontSizeMultiplier={1.5} className={t8} style={t11}>{label}</Text>;
299
- $[20] = label;
300
- $[21] = t11;
301
- $[22] = t8;
302
- $[23] = t12;
303
+ $[19] = label;
304
+ $[20] = t11;
305
+ $[21] = t8;
306
+ $[22] = t12;
303
307
  } else {
304
- t12 = $[23];
308
+ t12 = $[22];
305
309
  }
306
310
  let t13;
307
- if ($[24] !== accessibilityLabel || $[25] !== onPress || $[26] !== press.onPressIn || $[27] !== press.onPressOut || $[28] !== t12 || $[29] !== t2 || $[30] !== t6 || $[31] !== t7 || $[32] !== testID) {
311
+ if ($[23] !== accessibilityLabel || $[24] !== onPress || $[25] !== press.onPressIn || $[26] !== press.onPressOut || $[27] !== t12 || $[28] !== t2 || $[29] !== t6 || $[30] !== t7 || $[31] !== testID) {
308
312
  t13 = <Pressable testID={testID} accessibilityRole="tab" accessibilityState={t2} accessibilityLabel={accessibilityLabel} onPress={onPress} onPressIn={t3} onPressOut={t4} className="min-h-12 min-w-12 flex-1 items-center justify-center gap-1" style={t6}>{t7}{t12}</Pressable>;
309
- $[24] = accessibilityLabel;
310
- $[25] = onPress;
311
- $[26] = press.onPressIn;
312
- $[27] = press.onPressOut;
313
- $[28] = t12;
314
- $[29] = t2;
315
- $[30] = t6;
316
- $[31] = t7;
317
- $[32] = testID;
318
- $[33] = t13;
313
+ $[23] = accessibilityLabel;
314
+ $[24] = onPress;
315
+ $[25] = press.onPressIn;
316
+ $[26] = press.onPressOut;
317
+ $[27] = t12;
318
+ $[28] = t2;
319
+ $[29] = t6;
320
+ $[30] = t7;
321
+ $[31] = testID;
322
+ $[32] = t13;
319
323
  } else {
320
- t13 = $[33];
324
+ t13 = $[32];
321
325
  }
322
326
  return t13;
323
327
  }