@vvedantb/native-ui 0.37.0 → 0.37.2
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/dist/AmbientBackground.jsx +16 -28
- package/dist/Avatar.jsx +2 -2
- package/dist/BottomSheetContainer.jsx +1 -1
- package/dist/BulkActionBar.jsx +1 -1
- package/dist/Card.jsx +4 -4
- package/dist/Chip.jsx +2 -2
- package/dist/DateTimeField.jsx +1 -1
- package/dist/Dialog.jsx +3 -3
- package/dist/DropdownMenu.jsx +310 -154
- package/dist/EmptyState.jsx +4 -4
- package/dist/FloatingTabBar.jsx +2 -2
- package/dist/LabeledSwitchRow.jsx +2 -2
- package/dist/ListRow.jsx +2 -2
- package/dist/PinnedBotTile.jsx +2 -2
- package/dist/StatGrid.jsx +1 -1
- package/dist/Stepper.jsx +2 -2
- package/dist/Toast.jsx +1 -1
- package/dist/ai/activity-question.jsx +2 -2
- package/dist/ai/card-button.jsx +2 -2
- package/dist/ai/choice-question.jsx +8 -8
- package/dist/ai/message-action-sheet.jsx +2 -2
- package/dist/ai/message-quote.jsx +2 -2
- package/dist/ai/message.jsx +2 -2
- package/dist/ai/reply-quote-chip.jsx +2 -2
- package/dist/ai/subagent-cards.jsx +6 -6
- package/dist/ai/tool-approval-card.jsx +1 -1
- package/dist/auth/AuthScreen.jsx +2 -2
- package/dist/examples/ParityGallery.jsx +2 -2
- package/dist/generative-ui/components.jsx +2 -2
- package/dist/marketing/UpgradeToProCard.jsx +2 -2
- package/dist/media/ImageGallery.jsx +2 -2
- package/dist/motion.js +3 -2
- package/dist/primitives/card.jsx +2 -2
- package/dist/primitives/text.jsx +13 -13
- package/dist/primitives/toast-drag-gesture.jsx +3 -2
- package/dist/settings/MoreFromProjectV.jsx +2 -2
- package/dist/settings/SettingsSection.jsx +1 -1
- package/dist/settings/ThemeModePicker.jsx +6 -6
- package/package.json +1 -1
- package/src/AmbientBackground.tsx +8 -26
- package/src/Avatar.tsx +2 -2
- package/src/BottomSheetContainer.tsx +1 -1
- package/src/BulkActionBar.tsx +2 -2
- package/src/Card.tsx +5 -5
- package/src/Chip.tsx +2 -2
- package/src/DateTimeField.tsx +2 -2
- package/src/Dialog.tsx +3 -3
- package/src/DropdownMenu.tsx +122 -25
- package/src/EmptyState.tsx +4 -4
- package/src/FloatingTabBar.tsx +2 -2
- package/src/LabeledSwitchRow.tsx +2 -2
- package/src/ListRow.tsx +2 -2
- package/src/PinnedBotTile.tsx +2 -2
- package/src/StatGrid.tsx +2 -2
- package/src/Stepper.tsx +2 -2
- package/src/Toast.tsx +2 -2
- package/src/ai/activity-question.tsx +1 -1
- package/src/ai/card-button.tsx +1 -1
- package/src/ai/choice-question.tsx +10 -10
- package/src/ai/message-action-sheet.tsx +2 -2
- package/src/ai/message-quote.tsx +2 -2
- package/src/ai/message.tsx +2 -2
- package/src/ai/reply-quote-chip.tsx +2 -2
- package/src/ai/subagent-cards.tsx +5 -5
- package/src/ai/tool-approval-card.tsx +4 -4
- package/src/auth/AuthScreen.tsx +2 -2
- package/src/examples/ParityGallery.tsx +2 -2
- package/src/generative-ui/components.tsx +3 -3
- package/src/marketing/UpgradeToProCard.tsx +2 -2
- package/src/media/ImageGallery.tsx +1 -1
- package/src/motion.ts +3 -2
- package/src/primitives/card.tsx +3 -3
- package/src/primitives/text.tsx +13 -13
- package/src/primitives/toast-drag-gesture.tsx +2 -2
- package/src/settings/MoreFromProjectV.tsx +2 -2
- package/src/settings/SettingsSection.tsx +3 -3
- package/src/settings/ThemeModePicker.tsx +9 -14
package/dist/DropdownMenu.jsx
CHANGED
|
@@ -113,12 +113,68 @@ export function DropdownMenu(t0) {
|
|
|
113
113
|
export function isMeasuredRect(rect) {
|
|
114
114
|
return rect.width > 0 && rect.height > 0;
|
|
115
115
|
}
|
|
116
|
+
/** The wrapper shrink-wraps the trigger in a flex row (such as the PromptInput `leading` slot). */
|
|
117
|
+
const TRIGGER_HOST = {
|
|
118
|
+
alignSelf: "flex-start"
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
/** Frames to wait for layout to settle, when a view reads empty. */
|
|
122
|
+
const MEASURE_RETRIES = 2;
|
|
123
|
+
/** Last-resort trigger size when a press has a touch point but no `onLayout` size and no style size: a 44 point touch target. */
|
|
124
|
+
const FALLBACK_SIZE = {
|
|
125
|
+
width: 44,
|
|
126
|
+
height: 44
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
/** Numeric `width` and `height` of a plain style object, such as `{ width: 44, height: 44 }`; `undefined` for a function, array or missing size. */
|
|
130
|
+
export function sizeFromStyle(style) {
|
|
131
|
+
if (!style || typeof style !== "object" || Array.isArray(style)) return undefined;
|
|
132
|
+
if (!("width" in style) || !("height" in style)) return undefined;
|
|
133
|
+
const {
|
|
134
|
+
width,
|
|
135
|
+
height
|
|
136
|
+
} = style;
|
|
137
|
+
if (typeof width !== "number" || typeof height !== "number") return undefined;
|
|
138
|
+
return width > 0 && height > 0 ? {
|
|
139
|
+
width,
|
|
140
|
+
height
|
|
141
|
+
} : undefined;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* The trigger's box from a press: the press point in window coordinates
|
|
146
|
+
* (`pageX`, `pageY`) less its point in the view (`locationX`, `locationY`) is
|
|
147
|
+
* the view's origin, and `size` is its laid-out size. `null` without a size or a usable touch point.
|
|
148
|
+
*/
|
|
149
|
+
export function triggerRectFromPress(event, size) {
|
|
150
|
+
const point = event?.nativeEvent;
|
|
151
|
+
if (!size || !point) return null;
|
|
152
|
+
const {
|
|
153
|
+
pageX,
|
|
154
|
+
pageY,
|
|
155
|
+
locationX,
|
|
156
|
+
locationY
|
|
157
|
+
} = point;
|
|
158
|
+
if (typeof pageX !== "number" || !Number.isFinite(pageX) || typeof pageY !== "number" || !Number.isFinite(pageY) || typeof locationX !== "number" || !Number.isFinite(locationX) || typeof locationY !== "number" || !Number.isFinite(locationY)) {
|
|
159
|
+
return null;
|
|
160
|
+
}
|
|
161
|
+
const rect = {
|
|
162
|
+
x: pageX - locationX,
|
|
163
|
+
y: pageY - locationY,
|
|
164
|
+
width: size.width,
|
|
165
|
+
height: size.height
|
|
166
|
+
};
|
|
167
|
+
return isMeasuredRect(rect) ? rect : null;
|
|
168
|
+
}
|
|
169
|
+
|
|
116
170
|
/**
|
|
117
171
|
* The view's box in window coordinates, or `null` when it cannot be measured.
|
|
118
172
|
* `measureInWindow` first; when it returns an empty box, `measure` (its
|
|
119
|
-
* `pageX` and `pageY` are window coordinates too) as a second reading.
|
|
173
|
+
* `pageX` and `pageY` are window coordinates too) as a second reading. When
|
|
174
|
+
* both are empty, it tries again on the next frame, up to `retries` times: a
|
|
175
|
+
* view under a keyboard-lifted or avoiding parent may not be laid out yet.
|
|
120
176
|
*/
|
|
121
|
-
export function measureAnchor(view, done) {
|
|
177
|
+
export function measureAnchor(view, done, retries = MEASURE_RETRIES) {
|
|
122
178
|
view.measureInWindow((x, y, width, height) => {
|
|
123
179
|
const rect = {
|
|
124
180
|
x,
|
|
@@ -134,29 +190,38 @@ export function measureAnchor(view, done) {
|
|
|
134
190
|
width: w,
|
|
135
191
|
height: h
|
|
136
192
|
};
|
|
137
|
-
|
|
193
|
+
if (isMeasuredRect(second)) return done(second);
|
|
194
|
+
if (retries <= 0) return done(null);
|
|
195
|
+
requestAnimationFrame(() => measureAnchor(view, done, retries - 1));
|
|
138
196
|
});
|
|
139
197
|
});
|
|
140
198
|
}
|
|
141
199
|
|
|
142
200
|
/**
|
|
143
|
-
* Opens the menu, or closes it when open. On press it measures
|
|
144
|
-
* (`measureInWindow`) and the menu opens under it.
|
|
145
|
-
*
|
|
201
|
+
* Opens the menu, or closes it when open. On press it measures its wrapper
|
|
202
|
+
* (`measureInWindow`) and the menu opens under it. The wrapper is a
|
|
203
|
+
* `collapsable={false}` view, so Android keeps a native view to measure. On
|
|
204
|
+
* press, the box comes at once from the press point and a size (`onLayout`,
|
|
205
|
+
* then a numeric `style` width and height, then 44), and the menu opens; a live
|
|
206
|
+
* measure then refines it. When the press has no touch point and every measure
|
|
207
|
+
* reads empty, the last good box is used. Reports `expanded`. A caller `ref` is
|
|
208
|
+
* kept: it gets the wrapper, as the menu's own handle does.
|
|
146
209
|
*/
|
|
147
210
|
export function DropdownMenuTrigger(t0) {
|
|
148
|
-
const $ = _c(
|
|
211
|
+
const $ = _c(33);
|
|
149
212
|
let accessibilityState;
|
|
150
213
|
let asChild;
|
|
151
214
|
let callerRef;
|
|
152
215
|
let onPress;
|
|
153
216
|
let props;
|
|
217
|
+
let style;
|
|
154
218
|
if ($[0] !== t0) {
|
|
155
219
|
({
|
|
156
220
|
asChild,
|
|
157
221
|
onPress,
|
|
158
222
|
accessibilityState,
|
|
159
223
|
ref: callerRef,
|
|
224
|
+
style,
|
|
160
225
|
...props
|
|
161
226
|
} = t0);
|
|
162
227
|
$[0] = t0;
|
|
@@ -165,12 +230,14 @@ export function DropdownMenuTrigger(t0) {
|
|
|
165
230
|
$[3] = callerRef;
|
|
166
231
|
$[4] = onPress;
|
|
167
232
|
$[5] = props;
|
|
233
|
+
$[6] = style;
|
|
168
234
|
} else {
|
|
169
235
|
accessibilityState = $[1];
|
|
170
236
|
asChild = $[2];
|
|
171
237
|
callerRef = $[3];
|
|
172
238
|
onPress = $[4];
|
|
173
239
|
props = $[5];
|
|
240
|
+
style = $[6];
|
|
174
241
|
}
|
|
175
242
|
const {
|
|
176
243
|
open,
|
|
@@ -178,10 +245,21 @@ export function DropdownMenuTrigger(t0) {
|
|
|
178
245
|
setTrigger
|
|
179
246
|
} = useMenu("DropdownMenuTrigger");
|
|
180
247
|
const ref = useRef(null);
|
|
181
|
-
const
|
|
248
|
+
const layoutSizeRef = useRef(undefined);
|
|
249
|
+
const lastRectRef = useRef(undefined);
|
|
182
250
|
let t1;
|
|
183
|
-
if ($[
|
|
184
|
-
t1 =
|
|
251
|
+
if ($[7] !== style) {
|
|
252
|
+
t1 = sizeFromStyle(style);
|
|
253
|
+
$[7] = style;
|
|
254
|
+
$[8] = t1;
|
|
255
|
+
} else {
|
|
256
|
+
t1 = $[8];
|
|
257
|
+
}
|
|
258
|
+
const styleSize = t1;
|
|
259
|
+
const Component = asChild ? Slot.Pressable : Pressable;
|
|
260
|
+
let t2;
|
|
261
|
+
if ($[9] !== callerRef) {
|
|
262
|
+
t2 = view => {
|
|
185
263
|
ref.current = view;
|
|
186
264
|
if (typeof callerRef === "function") {
|
|
187
265
|
callerRef(view);
|
|
@@ -191,69 +269,129 @@ export function DropdownMenuTrigger(t0) {
|
|
|
191
269
|
}
|
|
192
270
|
}
|
|
193
271
|
};
|
|
194
|
-
$[
|
|
195
|
-
$[
|
|
272
|
+
$[9] = callerRef;
|
|
273
|
+
$[10] = t2;
|
|
196
274
|
} else {
|
|
197
|
-
|
|
275
|
+
t2 = $[10];
|
|
198
276
|
}
|
|
199
|
-
let
|
|
200
|
-
if ($[
|
|
201
|
-
|
|
277
|
+
let t3;
|
|
278
|
+
if ($[11] !== styleSize) {
|
|
279
|
+
t3 = styleSize ? {
|
|
280
|
+
...TRIGGER_HOST,
|
|
281
|
+
...styleSize
|
|
282
|
+
} : TRIGGER_HOST;
|
|
283
|
+
$[11] = styleSize;
|
|
284
|
+
$[12] = t3;
|
|
285
|
+
} else {
|
|
286
|
+
t3 = $[12];
|
|
287
|
+
}
|
|
288
|
+
let t4;
|
|
289
|
+
if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
|
|
290
|
+
t4 = event => {
|
|
291
|
+
const view_0 = ref.current;
|
|
292
|
+
if (!view_0) {
|
|
293
|
+
return;
|
|
294
|
+
}
|
|
295
|
+
const {
|
|
296
|
+
width,
|
|
297
|
+
height
|
|
298
|
+
} = event.nativeEvent.layout;
|
|
299
|
+
if (width > 0 && height > 0) {
|
|
300
|
+
layoutSizeRef.current = {
|
|
301
|
+
width,
|
|
302
|
+
height
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
measureAnchor(view_0, rect => {
|
|
306
|
+
if (rect) {
|
|
307
|
+
lastRectRef.current = rect;
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
};
|
|
311
|
+
$[13] = t4;
|
|
312
|
+
} else {
|
|
313
|
+
t4 = $[13];
|
|
314
|
+
}
|
|
315
|
+
let t5;
|
|
316
|
+
if ($[14] !== accessibilityState || $[15] !== open) {
|
|
317
|
+
t5 = {
|
|
202
318
|
...accessibilityState,
|
|
203
319
|
expanded: open
|
|
204
320
|
};
|
|
205
|
-
$[
|
|
206
|
-
$[
|
|
207
|
-
$[
|
|
321
|
+
$[14] = accessibilityState;
|
|
322
|
+
$[15] = open;
|
|
323
|
+
$[16] = t5;
|
|
208
324
|
} else {
|
|
209
|
-
|
|
325
|
+
t5 = $[16];
|
|
210
326
|
}
|
|
211
|
-
let
|
|
212
|
-
if ($[
|
|
213
|
-
|
|
214
|
-
onPress?.(
|
|
327
|
+
let t6;
|
|
328
|
+
if ($[17] !== onPress || $[18] !== open || $[19] !== setOpen || $[20] !== setTrigger || $[21] !== styleSize) {
|
|
329
|
+
t6 = event_0 => {
|
|
330
|
+
onPress?.(event_0);
|
|
215
331
|
if (open) {
|
|
216
332
|
return setOpen(false);
|
|
217
333
|
}
|
|
218
|
-
const
|
|
219
|
-
|
|
220
|
-
|
|
334
|
+
const view_1 = ref.current;
|
|
335
|
+
const size = layoutSizeRef.current ?? styleSize ?? FALLBACK_SIZE;
|
|
336
|
+
const pressRect = triggerRectFromPress(event_0, size);
|
|
337
|
+
if (pressRect) {
|
|
338
|
+
setTrigger(pressRect);
|
|
221
339
|
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
340
|
+
setOpen(true);
|
|
341
|
+
if (!view_1) {
|
|
342
|
+
return;
|
|
343
|
+
}
|
|
344
|
+
measureAnchor(view_1, rect_0 => {
|
|
345
|
+
if (rect_0) {
|
|
346
|
+
lastRectRef.current = rect_0;
|
|
347
|
+
return setTrigger(rect_0);
|
|
348
|
+
}
|
|
349
|
+
if (!pressRect && lastRectRef.current) {
|
|
350
|
+
setTrigger(lastRectRef.current);
|
|
225
351
|
}
|
|
226
|
-
setOpen(true);
|
|
227
352
|
});
|
|
228
353
|
};
|
|
229
|
-
$[
|
|
230
|
-
$[
|
|
231
|
-
$[
|
|
232
|
-
$[
|
|
233
|
-
$[
|
|
354
|
+
$[17] = onPress;
|
|
355
|
+
$[18] = open;
|
|
356
|
+
$[19] = setOpen;
|
|
357
|
+
$[20] = setTrigger;
|
|
358
|
+
$[21] = styleSize;
|
|
359
|
+
$[22] = t6;
|
|
234
360
|
} else {
|
|
235
|
-
|
|
361
|
+
t6 = $[22];
|
|
236
362
|
}
|
|
237
|
-
let
|
|
238
|
-
if ($[
|
|
239
|
-
|
|
240
|
-
$[
|
|
241
|
-
$[
|
|
242
|
-
$[
|
|
243
|
-
$[
|
|
244
|
-
$[
|
|
245
|
-
$[
|
|
363
|
+
let t7;
|
|
364
|
+
if ($[23] !== Component || $[24] !== props || $[25] !== style || $[26] !== t5 || $[27] !== t6) {
|
|
365
|
+
t7 = <Component accessibilityRole="button" {...props} style={style} accessibilityState={t5} onPress={t6} />;
|
|
366
|
+
$[23] = Component;
|
|
367
|
+
$[24] = props;
|
|
368
|
+
$[25] = style;
|
|
369
|
+
$[26] = t5;
|
|
370
|
+
$[27] = t6;
|
|
371
|
+
$[28] = t7;
|
|
246
372
|
} else {
|
|
247
|
-
|
|
373
|
+
t7 = $[28];
|
|
248
374
|
}
|
|
249
|
-
|
|
375
|
+
let t8;
|
|
376
|
+
if ($[29] !== t2 || $[30] !== t3 || $[31] !== t7) {
|
|
377
|
+
t8 = <View ref={t2} collapsable={false} accessible={false} style={t3} onLayout={t4}>{t7}</View>;
|
|
378
|
+
$[29] = t2;
|
|
379
|
+
$[30] = t3;
|
|
380
|
+
$[31] = t7;
|
|
381
|
+
$[32] = t8;
|
|
382
|
+
} else {
|
|
383
|
+
t8 = $[32];
|
|
384
|
+
}
|
|
385
|
+
return t8;
|
|
250
386
|
}
|
|
251
387
|
/**
|
|
252
388
|
* Where the menu goes: under the trigger, `sideOffset` away, its start edge on
|
|
253
389
|
* the trigger's start (`"start"`) or its end edge on the trigger's end
|
|
254
390
|
* (`"end"`), kept 8 inside the safe area. It flips above the trigger when its
|
|
255
|
-
* content does not fit below and there is more room above
|
|
256
|
-
*
|
|
391
|
+
* content does not fit below and there is more room above; it then sets `top`
|
|
392
|
+
* only, never `bottom`. Before the content
|
|
393
|
+
* is measured (0), it flips only when less than one item row fits below. Without
|
|
394
|
+
* a trigger box it sits at the top of the safe area.
|
|
257
395
|
*/
|
|
258
396
|
export function dropdownMenuPosition({
|
|
259
397
|
trigger,
|
|
@@ -282,10 +420,16 @@ export function dropdownMenuPosition({
|
|
|
282
420
|
const above = trigger.y - sideOffset;
|
|
283
421
|
const roomBelow = maxBottom - below;
|
|
284
422
|
const roomAbove = above - minTop;
|
|
285
|
-
|
|
423
|
+
// Not measured yet (0): flip only when almost no room is below, so a bottom
|
|
424
|
+
// trigger never gets a first layout with a tiny `maxHeight`.
|
|
425
|
+
const tooTight = contentHeight > 0 ? contentHeight > roomBelow : roomBelow < DROPDOWN_MENU.itemHeight;
|
|
426
|
+
if (tooTight && roomAbove > roomBelow) {
|
|
427
|
+
// `top` only: `bottom` is ignored inside `WindowLayerHost` on Android. The menu's
|
|
428
|
+
// bottom edge lands on `above`; before measure, a two-row estimate stands in.
|
|
429
|
+
const height = contentHeight > 0 ? contentHeight : Math.min(roomAbove, DROPDOWN_MENU.itemHeight * 2 + DROPDOWN_MENU.padding * 2);
|
|
286
430
|
return {
|
|
287
431
|
...horizontal,
|
|
288
|
-
|
|
432
|
+
top: Math.max(minTop, above - height),
|
|
289
433
|
maxHeight: roomAbove
|
|
290
434
|
};
|
|
291
435
|
}
|
|
@@ -306,7 +450,7 @@ export function dropdownMenuPosition({
|
|
|
306
450
|
* 100 ms. With Reduce Motion on, it appears and leaves at once.
|
|
307
451
|
*/
|
|
308
452
|
export function DropdownMenuContent(t0) {
|
|
309
|
-
const $ = _c(
|
|
453
|
+
const $ = _c(80);
|
|
310
454
|
let children;
|
|
311
455
|
let className;
|
|
312
456
|
let props;
|
|
@@ -497,142 +641,154 @@ export function DropdownMenuContent(t0) {
|
|
|
497
641
|
t11 = $[35];
|
|
498
642
|
}
|
|
499
643
|
const t12 = open ? "auto" : "none";
|
|
500
|
-
const t13 =
|
|
501
|
-
const t14 =
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
644
|
+
const t13 = position.top ?? null;
|
|
645
|
+
const t14 = position.bottom ?? null;
|
|
646
|
+
const t15 = position.left ?? null;
|
|
647
|
+
const t16 = position.right ?? null;
|
|
648
|
+
const t17 = window.width - insets.left - insets.right - 2 * DROPDOWN_MENU.edge;
|
|
649
|
+
const t18 = contentHeight === null ? 0 : 1;
|
|
650
|
+
let t19;
|
|
651
|
+
if ($[36] !== position.maxHeight || $[37] !== t13 || $[38] !== t14 || $[39] !== t15 || $[40] !== t16 || $[41] !== t17 || $[42] !== t18) {
|
|
652
|
+
t19 = {
|
|
505
653
|
position: "absolute",
|
|
506
|
-
|
|
654
|
+
top: t13,
|
|
655
|
+
bottom: t14,
|
|
656
|
+
left: t15,
|
|
657
|
+
right: t16,
|
|
658
|
+
maxHeight: position.maxHeight,
|
|
507
659
|
minWidth: DROPDOWN_MENU.minWidth,
|
|
508
|
-
maxWidth:
|
|
509
|
-
opacity:
|
|
660
|
+
maxWidth: t17,
|
|
661
|
+
opacity: t18
|
|
510
662
|
};
|
|
511
|
-
$[36] = position;
|
|
663
|
+
$[36] = position.maxHeight;
|
|
512
664
|
$[37] = t13;
|
|
513
665
|
$[38] = t14;
|
|
514
666
|
$[39] = t15;
|
|
667
|
+
$[40] = t16;
|
|
668
|
+
$[41] = t17;
|
|
669
|
+
$[42] = t18;
|
|
670
|
+
$[43] = t19;
|
|
515
671
|
} else {
|
|
516
|
-
|
|
672
|
+
t19 = $[43];
|
|
517
673
|
}
|
|
518
|
-
let
|
|
519
|
-
if ($[
|
|
520
|
-
|
|
674
|
+
let t20;
|
|
675
|
+
if ($[44] !== transformOrigin) {
|
|
676
|
+
t20 = {
|
|
521
677
|
transformOrigin
|
|
522
678
|
};
|
|
523
|
-
$[
|
|
524
|
-
$[
|
|
679
|
+
$[44] = transformOrigin;
|
|
680
|
+
$[45] = t20;
|
|
525
681
|
} else {
|
|
526
|
-
|
|
682
|
+
t20 = $[45];
|
|
527
683
|
}
|
|
528
|
-
let
|
|
529
|
-
if ($[
|
|
530
|
-
|
|
531
|
-
$[
|
|
532
|
-
$[
|
|
533
|
-
$[
|
|
684
|
+
let t21;
|
|
685
|
+
if ($[46] !== panelStyle || $[47] !== t20) {
|
|
686
|
+
t21 = [t20, panelStyle];
|
|
687
|
+
$[46] = panelStyle;
|
|
688
|
+
$[47] = t20;
|
|
689
|
+
$[48] = t21;
|
|
534
690
|
} else {
|
|
535
|
-
|
|
691
|
+
t21 = $[48];
|
|
536
692
|
}
|
|
537
|
-
let
|
|
538
|
-
if ($[
|
|
539
|
-
|
|
693
|
+
let t22;
|
|
694
|
+
if ($[49] !== position.maxHeight) {
|
|
695
|
+
t22 = {
|
|
540
696
|
maxHeight: position.maxHeight
|
|
541
697
|
};
|
|
542
|
-
$[
|
|
543
|
-
$[
|
|
698
|
+
$[49] = position.maxHeight;
|
|
699
|
+
$[50] = t22;
|
|
544
700
|
} else {
|
|
545
|
-
|
|
701
|
+
t22 = $[50];
|
|
546
702
|
}
|
|
547
|
-
let
|
|
548
|
-
let
|
|
549
|
-
if ($[
|
|
550
|
-
|
|
551
|
-
|
|
703
|
+
let t23;
|
|
704
|
+
let t24;
|
|
705
|
+
if ($[51] === Symbol.for("react.memo_cache_sentinel")) {
|
|
706
|
+
t23 = (_width, height) => setContentHeight(height);
|
|
707
|
+
t24 = {
|
|
552
708
|
padding: DROPDOWN_MENU.padding
|
|
553
709
|
};
|
|
554
|
-
$[
|
|
555
|
-
$[
|
|
710
|
+
$[51] = t23;
|
|
711
|
+
$[52] = t24;
|
|
556
712
|
} else {
|
|
557
|
-
|
|
558
|
-
|
|
713
|
+
t23 = $[51];
|
|
714
|
+
t24 = $[52];
|
|
559
715
|
}
|
|
560
|
-
let
|
|
561
|
-
if ($[
|
|
562
|
-
|
|
563
|
-
$[
|
|
564
|
-
$[
|
|
716
|
+
let t25;
|
|
717
|
+
if ($[53] !== className) {
|
|
718
|
+
t25 = cn(className);
|
|
719
|
+
$[53] = className;
|
|
720
|
+
$[54] = t25;
|
|
565
721
|
} else {
|
|
566
|
-
|
|
722
|
+
t25 = $[54];
|
|
567
723
|
}
|
|
568
|
-
let
|
|
569
|
-
if ($[
|
|
570
|
-
|
|
571
|
-
$[
|
|
572
|
-
$[
|
|
573
|
-
$[
|
|
574
|
-
$[
|
|
575
|
-
$[
|
|
724
|
+
let t26;
|
|
725
|
+
if ($[55] !== children || $[56] !== props || $[57] !== style || $[58] !== t25) {
|
|
726
|
+
t26 = <ScrollView bounces={false} showsVerticalScrollIndicator={false} onContentSizeChange={t23} contentContainerStyle={t24}><View className={t25} style={style} {...props}>{children}</View></ScrollView>;
|
|
727
|
+
$[55] = children;
|
|
728
|
+
$[56] = props;
|
|
729
|
+
$[57] = style;
|
|
730
|
+
$[58] = t25;
|
|
731
|
+
$[59] = t26;
|
|
576
732
|
} else {
|
|
577
|
-
|
|
733
|
+
t26 = $[59];
|
|
578
734
|
}
|
|
579
|
-
let
|
|
580
|
-
if ($[
|
|
581
|
-
|
|
582
|
-
$[
|
|
583
|
-
$[
|
|
584
|
-
$[
|
|
735
|
+
let t27;
|
|
736
|
+
if ($[60] !== t22 || $[61] !== t26) {
|
|
737
|
+
t27 = <FloatingSurface blur={false} radius={DROPDOWN_MENU.radius} style={t22}>{t26}</FloatingSurface>;
|
|
738
|
+
$[60] = t22;
|
|
739
|
+
$[61] = t26;
|
|
740
|
+
$[62] = t27;
|
|
585
741
|
} else {
|
|
586
|
-
|
|
742
|
+
t27 = $[62];
|
|
587
743
|
}
|
|
588
|
-
let
|
|
589
|
-
if ($[
|
|
590
|
-
|
|
591
|
-
$[
|
|
592
|
-
$[
|
|
593
|
-
$[
|
|
744
|
+
let t28;
|
|
745
|
+
if ($[63] !== t21 || $[64] !== t27) {
|
|
746
|
+
t28 = <Animated.View style={t21}>{t27}</Animated.View>;
|
|
747
|
+
$[63] = t21;
|
|
748
|
+
$[64] = t27;
|
|
749
|
+
$[65] = t28;
|
|
594
750
|
} else {
|
|
595
|
-
|
|
751
|
+
t28 = $[65];
|
|
596
752
|
}
|
|
597
|
-
let
|
|
598
|
-
if ($[
|
|
599
|
-
|
|
600
|
-
$[
|
|
601
|
-
$[
|
|
602
|
-
$[
|
|
603
|
-
$[
|
|
604
|
-
$[
|
|
753
|
+
let t29;
|
|
754
|
+
if ($[66] !== close || $[67] !== t12 || $[68] !== t19 || $[69] !== t28) {
|
|
755
|
+
t29 = <View accessibilityRole="menu" accessibilityViewIsModal={true} onAccessibilityEscape={close} pointerEvents={t12} style={t19}>{t28}</View>;
|
|
756
|
+
$[66] = close;
|
|
757
|
+
$[67] = t12;
|
|
758
|
+
$[68] = t19;
|
|
759
|
+
$[69] = t28;
|
|
760
|
+
$[70] = t29;
|
|
605
761
|
} else {
|
|
606
|
-
|
|
762
|
+
t29 = $[70];
|
|
607
763
|
}
|
|
608
|
-
let
|
|
609
|
-
if ($[
|
|
610
|
-
|
|
611
|
-
$[
|
|
612
|
-
$[
|
|
613
|
-
$[
|
|
764
|
+
let t30;
|
|
765
|
+
if ($[71] !== t11 || $[72] !== t29) {
|
|
766
|
+
t30 = <View style={t10} pointerEvents="box-none">{t11}{t29}</View>;
|
|
767
|
+
$[71] = t11;
|
|
768
|
+
$[72] = t29;
|
|
769
|
+
$[73] = t30;
|
|
614
770
|
} else {
|
|
615
|
-
|
|
771
|
+
t30 = $[73];
|
|
616
772
|
}
|
|
617
|
-
let
|
|
618
|
-
if ($[
|
|
619
|
-
|
|
620
|
-
$[
|
|
621
|
-
$[
|
|
622
|
-
$[
|
|
773
|
+
let t31;
|
|
774
|
+
if ($[74] !== menu || $[75] !== t30) {
|
|
775
|
+
t31 = <MenuContext.Provider value={menu}>{t30}</MenuContext.Provider>;
|
|
776
|
+
$[74] = menu;
|
|
777
|
+
$[75] = t30;
|
|
778
|
+
$[76] = t31;
|
|
623
779
|
} else {
|
|
624
|
-
|
|
780
|
+
t31 = $[76];
|
|
625
781
|
}
|
|
626
|
-
let
|
|
627
|
-
if ($[
|
|
628
|
-
|
|
629
|
-
$[
|
|
630
|
-
$[
|
|
631
|
-
$[
|
|
782
|
+
let t32;
|
|
783
|
+
if ($[77] !== close || $[78] !== t31) {
|
|
784
|
+
t32 = <WindowLayer onRequestClose={close} fade={false}>{t31}</WindowLayer>;
|
|
785
|
+
$[77] = close;
|
|
786
|
+
$[78] = t31;
|
|
787
|
+
$[79] = t32;
|
|
632
788
|
} else {
|
|
633
|
-
|
|
789
|
+
t32 = $[79];
|
|
634
790
|
}
|
|
635
|
-
return
|
|
791
|
+
return t32;
|
|
636
792
|
}
|
|
637
793
|
|
|
638
794
|
/** Item type and icon size: the web `text-sm` with a 16 icon in 48 rows, or `text-lg` with a 22 icon and 56 rows with larger text. */
|
|
@@ -949,7 +1105,7 @@ export function DropdownMenuRadioItem(t0) {
|
|
|
949
1105
|
}
|
|
950
1106
|
return t5;
|
|
951
1107
|
}
|
|
952
|
-
/** A group heading: the web `text-xs font-
|
|
1108
|
+
/** A group heading: the web `text-xs font-medium uppercase tracking-widest text-muted-foreground`, `px-2.5 py-1.5`. */
|
|
953
1109
|
export function DropdownMenuLabel(t0) {
|
|
954
1110
|
const $ = _c(15);
|
|
955
1111
|
const {
|
|
@@ -969,7 +1125,7 @@ export function DropdownMenuLabel(t0) {
|
|
|
969
1125
|
const text = t2;
|
|
970
1126
|
let t3;
|
|
971
1127
|
if ($[2] !== className) {
|
|
972
|
-
t3 = cn("font-instrument-sans-
|
|
1128
|
+
t3 = cn("font-instrument-sans-medium uppercase", className);
|
|
973
1129
|
$[2] = className;
|
|
974
1130
|
$[3] = t3;
|
|
975
1131
|
} else {
|
|
@@ -977,7 +1133,7 @@ export function DropdownMenuLabel(t0) {
|
|
|
977
1133
|
}
|
|
978
1134
|
let t4;
|
|
979
1135
|
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
980
|
-
t4 = typeStyle("
|
|
1136
|
+
t4 = typeStyle("medium");
|
|
981
1137
|
$[4] = t4;
|
|
982
1138
|
} else {
|
|
983
1139
|
t4 = $[4];
|
package/dist/EmptyState.jsx
CHANGED
|
@@ -38,7 +38,7 @@ function EmptyStateView(t0) {
|
|
|
38
38
|
const t7 = largerText ? "text-xl" : "text-lg";
|
|
39
39
|
let t8;
|
|
40
40
|
if ($[4] !== t7) {
|
|
41
|
-
t8 = cn("mt-4 text-center font-instrument-sans-
|
|
41
|
+
t8 = cn("mt-4 text-center font-instrument-sans-medium", t7);
|
|
42
42
|
$[4] = t7;
|
|
43
43
|
$[5] = t8;
|
|
44
44
|
} else {
|
|
@@ -54,7 +54,7 @@ function EmptyStateView(t0) {
|
|
|
54
54
|
}
|
|
55
55
|
let t10;
|
|
56
56
|
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
57
|
-
t10 = typeStyle("
|
|
57
|
+
t10 = typeStyle("medium");
|
|
58
58
|
$[8] = t10;
|
|
59
59
|
} else {
|
|
60
60
|
t10 = $[8];
|
|
@@ -281,7 +281,7 @@ function Title(t0) {
|
|
|
281
281
|
const t1 = largerText ? "text-xl" : "text-lg";
|
|
282
282
|
let t2;
|
|
283
283
|
if ($[4] !== className || $[5] !== t1) {
|
|
284
|
-
t2 = cn("text-center font-instrument-sans-
|
|
284
|
+
t2 = cn("text-center font-instrument-sans-medium", t1, className);
|
|
285
285
|
$[4] = className;
|
|
286
286
|
$[5] = t1;
|
|
287
287
|
$[6] = t2;
|
|
@@ -298,7 +298,7 @@ function Title(t0) {
|
|
|
298
298
|
}
|
|
299
299
|
let t4;
|
|
300
300
|
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
301
|
-
t4 = typeStyle("
|
|
301
|
+
t4 = typeStyle("medium");
|
|
302
302
|
$[9] = t4;
|
|
303
303
|
} else {
|
|
304
304
|
t4 = $[9];
|
package/dist/FloatingTabBar.jsx
CHANGED
|
@@ -271,7 +271,7 @@ function TabBarItem(t0) {
|
|
|
271
271
|
} else {
|
|
272
272
|
t7 = $[13];
|
|
273
273
|
}
|
|
274
|
-
const t8 = `font-instrument-sans-
|
|
274
|
+
const t8 = `font-instrument-sans-medium ${largerText ? "text-base" : "text-sm"}`;
|
|
275
275
|
let t9;
|
|
276
276
|
if ($[14] !== color) {
|
|
277
277
|
t9 = {
|
|
@@ -284,7 +284,7 @@ function TabBarItem(t0) {
|
|
|
284
284
|
}
|
|
285
285
|
let t10;
|
|
286
286
|
if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
|
|
287
|
-
t10 = typeStyle("
|
|
287
|
+
t10 = typeStyle("medium");
|
|
288
288
|
$[16] = t10;
|
|
289
289
|
} else {
|
|
290
290
|
t10 = $[16];
|