@nuee/ui 0.3.0 → 0.4.0
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/accordion.d.ts +4 -4
- package/dist/accordion.js +129 -219
- package/dist/accordion.js.map +2 -2
- package/dist/alert-dialog.d.ts +5 -5
- package/dist/alert-dialog.js +138 -249
- package/dist/alert-dialog.js.map +3 -3
- package/dist/aspect-ratio.d.ts +1 -1
- package/dist/aspect-ratio.js +19 -50
- package/dist/aspect-ratio.js.map +2 -2
- package/dist/attachment.d.ts +8 -8
- package/dist/attachment.js +158 -286
- package/dist/attachment.js.map +3 -3
- package/dist/avatar.d.ts +6 -6
- package/dist/avatar.js +98 -212
- package/dist/avatar.js.map +3 -3
- package/dist/badge.d.ts +1 -1
- package/dist/badge.js +19 -50
- package/dist/badge.js.map +2 -2
- package/dist/banner.d.ts +3 -3
- package/dist/banner.js +111 -204
- package/dist/banner.js.map +2 -2
- package/dist/breadcrumb.d.ts +7 -7
- package/dist/breadcrumb.js +90 -178
- package/dist/breadcrumb.js.map +3 -3
- package/dist/bubble.d.ts +1 -1
- package/dist/bubble.js +23 -54
- package/dist/bubble.js.map +2 -2
- package/dist/button-group.d.ts +2 -2
- package/dist/button-group.js +69 -162
- package/dist/button-group.js.map +2 -2
- package/dist/button.d.ts +1 -1
- package/dist/button.js +42 -73
- package/dist/button.js.map +2 -2
- package/dist/card.d.ts +6 -6
- package/dist/card.js +97 -283
- package/dist/card.js.map +2 -2
- package/dist/checkbox.d.ts +1 -1
- package/dist/checkbox.js +23 -42
- package/dist/checkbox.js.map +2 -2
- package/dist/collapsible.d.ts +3 -3
- package/dist/collapsible.js +108 -180
- package/dist/collapsible.js.map +2 -2
- package/dist/combobox.d.ts +3 -3
- package/dist/combobox.js +194 -275
- package/dist/combobox.js.map +2 -2
- package/dist/content-row.d.ts +7 -7
- package/dist/content-row.js +96 -184
- package/dist/content-row.js.map +3 -3
- package/dist/context-menu.js +257 -386
- package/dist/context-menu.js.map +2 -2
- package/dist/dialog.d.ts +5 -5
- package/dist/dialog.js +106 -189
- package/dist/dialog.js.map +3 -3
- package/dist/drawer.d.ts +7 -7
- package/dist/drawer.js +152 -266
- package/dist/drawer.js.map +3 -3
- package/dist/dropdown-menu.d.ts +6 -6
- package/dist/dropdown-menu.js +257 -386
- package/dist/dropdown-menu.js.map +2 -2
- package/dist/empty.d.ts +6 -6
- package/dist/empty.js +91 -164
- package/dist/empty.js.map +3 -3
- package/dist/field.d.ts +9 -9
- package/dist/field.js +154 -367
- package/dist/field.js.map +3 -3
- package/dist/hover-card.d.ts +1 -1
- package/dist/hover-card.js +40 -91
- package/dist/hover-card.js.map +2 -2
- package/dist/index.js +3838 -6825
- package/dist/index.js.map +4 -4
- package/dist/input-group.d.ts +3 -3
- package/dist/input-group.js +139 -325
- package/dist/input-group.js.map +2 -2
- package/dist/input-otp.d.ts +4 -4
- package/dist/input-otp.js +67 -133
- package/dist/input-otp.js.map +3 -3
- package/dist/input.d.ts +1 -1
- package/dist/input.js +18 -49
- package/dist/input.js.map +2 -2
- package/dist/kbd.d.ts +2 -2
- package/dist/kbd.js +32 -94
- package/dist/kbd.js.map +2 -2
- package/dist/label.d.ts +1 -1
- package/dist/label.js +16 -47
- package/dist/label.js.map +2 -2
- package/dist/link.js +31 -63
- package/dist/link.js.map +2 -2
- package/dist/marker.d.ts +3 -3
- package/dist/marker.js +42 -87
- package/dist/marker.js.map +3 -3
- package/dist/menubar.d.ts +1 -1
- package/dist/menubar.js +300 -456
- package/dist/menubar.js.map +3 -3
- package/dist/message-scroller.d.ts +1 -1
- package/dist/message-scroller.js +99 -161
- package/dist/message-scroller.js.map +2 -2
- package/dist/message.d.ts +4 -4
- package/dist/message.js +55 -111
- package/dist/message.js.map +3 -3
- package/dist/native-select.d.ts +1 -1
- package/dist/native-select.js +36 -67
- package/dist/native-select.js.map +2 -2
- package/dist/navigation-menu.d.ts +4 -4
- package/dist/navigation-menu.js +234 -333
- package/dist/navigation-menu.js.map +2 -2
- package/dist/pagination.d.ts +5 -5
- package/dist/pagination.js +68 -133
- package/dist/pagination.js.map +3 -3
- package/dist/popover.d.ts +4 -4
- package/dist/popover.js +73 -136
- package/dist/popover.js.map +3 -3
- package/dist/progress.d.ts +1 -1
- package/dist/progress.js +28 -41
- package/dist/progress.js.map +2 -2
- package/dist/radio-group.d.ts +2 -2
- package/dist/radio-group.js +48 -82
- package/dist/radio-group.js.map +2 -2
- package/dist/scroll-area.d.ts +2 -2
- package/dist/scroll-area.js +80 -106
- package/dist/scroll-area.js.map +2 -2
- package/dist/select.d.ts +3 -3
- package/dist/select.js +190 -271
- package/dist/select.js.map +2 -2
- package/dist/separator.d.ts +1 -1
- package/dist/separator.js +24 -55
- package/dist/separator.js.map +2 -2
- package/dist/skeleton.d.ts +1 -1
- package/dist/skeleton.js +16 -47
- package/dist/skeleton.js.map +2 -2
- package/dist/slider.d.ts +1 -1
- package/dist/slider.js +52 -65
- package/dist/slider.js.map +2 -2
- package/dist/spinner.d.ts +1 -1
- package/dist/spinner.js +19 -50
- package/dist/spinner.js.map +2 -2
- package/dist/switch.d.ts +1 -1
- package/dist/switch.js +28 -48
- package/dist/switch.js.map +2 -2
- package/dist/table.d.ts +8 -8
- package/dist/table.js +112 -212
- package/dist/table.js.map +3 -3
- package/dist/tabs.d.ts +4 -4
- package/dist/tabs.js +115 -194
- package/dist/tabs.js.map +2 -2
- package/dist/textarea.d.ts +1 -1
- package/dist/textarea.js +18 -49
- package/dist/textarea.js.map +2 -2
- package/dist/toggle-group.d.ts +2 -2
- package/dist/toggle-group.js +67 -103
- package/dist/toggle-group.js.map +2 -2
- package/dist/toggle.d.ts +1 -1
- package/dist/toggle.js +26 -46
- package/dist/toggle.js.map +2 -2
- package/dist/tooltip.d.ts +1 -1
- package/dist/tooltip.js +39 -56
- package/dist/tooltip.js.map +2 -2
- package/dist/typography.d.ts +7 -4
- package/dist/typography.js +1 -8
- package/dist/typography.js.map +2 -2
- package/package.json +3 -3
- package/dist/stylex-props.d.ts +0 -3
package/dist/drawer.js
CHANGED
|
@@ -3,19 +3,6 @@ import { c as _c } from "react/compiler-runtime";
|
|
|
3
3
|
import { Drawer as DrawerPrimitive } from "@base-ui/react/drawer";
|
|
4
4
|
import * as stylex from "@stylexjs/stylex";
|
|
5
5
|
import { createContext, useContext } from "react";
|
|
6
|
-
|
|
7
|
-
// src/stylex-props.ts
|
|
8
|
-
function getNativeStyleProps(stylexProps, className, style) {
|
|
9
|
-
return {
|
|
10
|
-
className: [stylexProps.className, className].filter(Boolean).join(" "),
|
|
11
|
-
style: {
|
|
12
|
-
...stylexProps.style,
|
|
13
|
-
...style
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// src/drawer.tsx
|
|
19
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
20
7
|
var styles = {
|
|
21
8
|
overlay: {
|
|
@@ -244,116 +231,89 @@ var DrawerTrigger = DrawerPrimitive.Trigger;
|
|
|
244
231
|
var DrawerClose = DrawerPrimitive.Close;
|
|
245
232
|
var DrawerPortal = DrawerPrimitive.Portal;
|
|
246
233
|
function DrawerOverlay(t0) {
|
|
247
|
-
const $ = _c(
|
|
248
|
-
let className;
|
|
234
|
+
const $ = _c(10);
|
|
249
235
|
let props2;
|
|
250
|
-
let style;
|
|
251
236
|
let xstyle;
|
|
252
237
|
if ($[0] !== t0) {
|
|
253
238
|
({
|
|
254
|
-
className,
|
|
255
|
-
style,
|
|
256
239
|
xstyle,
|
|
257
240
|
...props2
|
|
258
241
|
} = t0);
|
|
259
242
|
$[0] = t0;
|
|
260
|
-
$[1] =
|
|
261
|
-
$[2] =
|
|
262
|
-
$[3] = style;
|
|
263
|
-
$[4] = xstyle;
|
|
243
|
+
$[1] = props2;
|
|
244
|
+
$[2] = xstyle;
|
|
264
245
|
} else {
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
style = $[3];
|
|
268
|
-
xstyle = $[4];
|
|
246
|
+
props2 = $[1];
|
|
247
|
+
xstyle = $[2];
|
|
269
248
|
}
|
|
270
249
|
let t1;
|
|
271
|
-
|
|
272
|
-
|
|
250
|
+
let t2;
|
|
251
|
+
if ($[3] !== xstyle) {
|
|
252
|
+
t1 = () => {
|
|
273
253
|
const stylexProps = stylex.props(styles.overlay, xstyle);
|
|
274
|
-
return
|
|
254
|
+
return stylexProps.className;
|
|
275
255
|
};
|
|
276
|
-
|
|
277
|
-
$[6] = xstyle;
|
|
278
|
-
$[7] = t1;
|
|
279
|
-
} else {
|
|
280
|
-
t1 = $[7];
|
|
281
|
-
}
|
|
282
|
-
let t2;
|
|
283
|
-
if ($[8] !== style || $[9] !== xstyle) {
|
|
284
|
-
t2 = (state_0) => {
|
|
256
|
+
t2 = () => {
|
|
285
257
|
const stylexProps_0 = stylex.props(styles.overlay, xstyle);
|
|
286
|
-
return
|
|
287
|
-
...stylexProps_0.style,
|
|
288
|
-
...typeof style === "function" ? style(state_0) : style
|
|
289
|
-
};
|
|
258
|
+
return stylexProps_0.style;
|
|
290
259
|
};
|
|
291
|
-
$[
|
|
292
|
-
$[
|
|
293
|
-
$[
|
|
260
|
+
$[3] = xstyle;
|
|
261
|
+
$[4] = t1;
|
|
262
|
+
$[5] = t2;
|
|
294
263
|
} else {
|
|
295
|
-
|
|
264
|
+
t1 = $[4];
|
|
265
|
+
t2 = $[5];
|
|
296
266
|
}
|
|
297
267
|
let t3;
|
|
298
|
-
if ($[
|
|
268
|
+
if ($[6] !== props2 || $[7] !== t1 || $[8] !== t2) {
|
|
299
269
|
t3 = /* @__PURE__ */ jsx(DrawerPrimitive.Backdrop, { ...props2, "data-slot": "drawer-overlay", className: t1, style: t2 });
|
|
300
|
-
$[
|
|
301
|
-
$[
|
|
302
|
-
$[
|
|
303
|
-
$[
|
|
270
|
+
$[6] = props2;
|
|
271
|
+
$[7] = t1;
|
|
272
|
+
$[8] = t2;
|
|
273
|
+
$[9] = t3;
|
|
304
274
|
} else {
|
|
305
|
-
t3 = $[
|
|
275
|
+
t3 = $[9];
|
|
306
276
|
}
|
|
307
277
|
return t3;
|
|
308
278
|
}
|
|
309
279
|
function DrawerSwipeHandle(t0) {
|
|
310
|
-
const $ = _c(
|
|
311
|
-
let className;
|
|
280
|
+
const $ = _c(10);
|
|
312
281
|
let props2;
|
|
313
|
-
let style;
|
|
314
282
|
let xstyle;
|
|
315
283
|
if ($[0] !== t0) {
|
|
316
284
|
({
|
|
317
|
-
className,
|
|
318
|
-
style,
|
|
319
285
|
xstyle,
|
|
320
286
|
...props2
|
|
321
287
|
} = t0);
|
|
322
288
|
$[0] = t0;
|
|
323
|
-
$[1] =
|
|
324
|
-
$[2] =
|
|
325
|
-
$[3] = style;
|
|
326
|
-
$[4] = xstyle;
|
|
289
|
+
$[1] = props2;
|
|
290
|
+
$[2] = xstyle;
|
|
327
291
|
} else {
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
style = $[3];
|
|
331
|
-
xstyle = $[4];
|
|
292
|
+
props2 = $[1];
|
|
293
|
+
xstyle = $[2];
|
|
332
294
|
}
|
|
333
295
|
const {
|
|
334
296
|
swipeDirection
|
|
335
297
|
} = useContext(DrawerContext);
|
|
336
298
|
const isHorizontal = swipeDirection === "left" || swipeDirection === "right";
|
|
337
299
|
let t1;
|
|
338
|
-
if ($[
|
|
339
|
-
t1 =
|
|
340
|
-
$[
|
|
341
|
-
$[
|
|
342
|
-
$[
|
|
343
|
-
$[
|
|
344
|
-
$[9] = xstyle;
|
|
345
|
-
$[10] = t1;
|
|
300
|
+
if ($[3] !== isHorizontal || $[4] !== swipeDirection || $[5] !== xstyle) {
|
|
301
|
+
t1 = stylex.props(styles.swipeHandle, isHorizontal && styles.horizontalSwipeHandle, swipeDirection === "up" && styles.upSwipeHandle, swipeDirection === "left" && styles.leftSwipeHandle, swipeDirection === "right" && styles.rightSwipeHandle, xstyle);
|
|
302
|
+
$[3] = isHorizontal;
|
|
303
|
+
$[4] = swipeDirection;
|
|
304
|
+
$[5] = xstyle;
|
|
305
|
+
$[6] = t1;
|
|
346
306
|
} else {
|
|
347
|
-
t1 = $[
|
|
307
|
+
t1 = $[6];
|
|
348
308
|
}
|
|
349
309
|
let t2;
|
|
350
|
-
if ($[
|
|
310
|
+
if ($[7] !== props2 || $[8] !== t1) {
|
|
351
311
|
t2 = /* @__PURE__ */ jsx("div", { "aria-hidden": "true", "data-slot": "drawer-swipe-handle", ...props2, ...t1 });
|
|
352
|
-
$[
|
|
353
|
-
$[
|
|
354
|
-
$[
|
|
312
|
+
$[7] = props2;
|
|
313
|
+
$[8] = t1;
|
|
314
|
+
$[9] = t2;
|
|
355
315
|
} else {
|
|
356
|
-
t2 = $[
|
|
316
|
+
t2 = $[9];
|
|
357
317
|
}
|
|
358
318
|
return t2;
|
|
359
319
|
}
|
|
@@ -370,32 +330,24 @@ function getDrawerPopupStylexProps(swipeDirection, xstyle) {
|
|
|
370
330
|
return stylex.props(styles.popup, styles.verticalPopup, styles.downPopup, xstyle);
|
|
371
331
|
}
|
|
372
332
|
function DrawerContent(t0) {
|
|
373
|
-
const $ = _c(
|
|
333
|
+
const $ = _c(25);
|
|
374
334
|
let children;
|
|
375
|
-
let className;
|
|
376
335
|
let props2;
|
|
377
|
-
let style;
|
|
378
336
|
let xstyle;
|
|
379
337
|
if ($[0] !== t0) {
|
|
380
338
|
({
|
|
381
339
|
children,
|
|
382
|
-
className,
|
|
383
|
-
style,
|
|
384
340
|
xstyle,
|
|
385
341
|
...props2
|
|
386
342
|
} = t0);
|
|
387
343
|
$[0] = t0;
|
|
388
344
|
$[1] = children;
|
|
389
|
-
$[2] =
|
|
390
|
-
$[3] =
|
|
391
|
-
$[4] = style;
|
|
392
|
-
$[5] = xstyle;
|
|
345
|
+
$[2] = props2;
|
|
346
|
+
$[3] = xstyle;
|
|
393
347
|
} else {
|
|
394
348
|
children = $[1];
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
style = $[4];
|
|
398
|
-
xstyle = $[5];
|
|
349
|
+
props2 = $[2];
|
|
350
|
+
xstyle = $[3];
|
|
399
351
|
}
|
|
400
352
|
const {
|
|
401
353
|
overlay,
|
|
@@ -403,319 +355,253 @@ function DrawerContent(t0) {
|
|
|
403
355
|
swipeDirection
|
|
404
356
|
} = useContext(DrawerContext);
|
|
405
357
|
let t1;
|
|
406
|
-
if ($[
|
|
358
|
+
if ($[4] !== overlay) {
|
|
407
359
|
t1 = overlay === "none" ? null : /* @__PURE__ */ jsx(DrawerOverlay, { xstyle: overlay === "transparent" ? styles.overlayTransparent : void 0 });
|
|
408
|
-
$[
|
|
409
|
-
$[
|
|
360
|
+
$[4] = overlay;
|
|
361
|
+
$[5] = t1;
|
|
410
362
|
} else {
|
|
411
|
-
t1 = $[
|
|
363
|
+
t1 = $[5];
|
|
412
364
|
}
|
|
413
365
|
let t2;
|
|
414
|
-
if ($[
|
|
366
|
+
if ($[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
415
367
|
t2 = {
|
|
416
368
|
className: "x10a8y8t xixxii4 xfa8aoj"
|
|
417
369
|
};
|
|
418
|
-
$[
|
|
370
|
+
$[6] = t2;
|
|
419
371
|
} else {
|
|
420
|
-
t2 = $[
|
|
372
|
+
t2 = $[6];
|
|
421
373
|
}
|
|
422
374
|
let t3;
|
|
423
|
-
|
|
424
|
-
|
|
375
|
+
let t4;
|
|
376
|
+
if ($[7] !== swipeDirection || $[8] !== xstyle) {
|
|
377
|
+
t3 = () => {
|
|
425
378
|
const stylexProps = getDrawerPopupStylexProps(swipeDirection, xstyle);
|
|
426
|
-
return
|
|
379
|
+
return stylexProps.className;
|
|
427
380
|
};
|
|
428
|
-
|
|
429
|
-
$[10] = swipeDirection;
|
|
430
|
-
$[11] = xstyle;
|
|
431
|
-
$[12] = t3;
|
|
432
|
-
} else {
|
|
433
|
-
t3 = $[12];
|
|
434
|
-
}
|
|
435
|
-
let t4;
|
|
436
|
-
if ($[13] !== style || $[14] !== swipeDirection || $[15] !== xstyle) {
|
|
437
|
-
t4 = (state_0) => {
|
|
381
|
+
t4 = () => {
|
|
438
382
|
const stylexProps_0 = getDrawerPopupStylexProps(swipeDirection, xstyle);
|
|
439
|
-
return
|
|
440
|
-
...stylexProps_0.style,
|
|
441
|
-
...typeof style === "function" ? style(state_0) : style
|
|
442
|
-
};
|
|
383
|
+
return stylexProps_0.style;
|
|
443
384
|
};
|
|
444
|
-
$[
|
|
445
|
-
$[
|
|
446
|
-
$[
|
|
447
|
-
$[
|
|
385
|
+
$[7] = swipeDirection;
|
|
386
|
+
$[8] = xstyle;
|
|
387
|
+
$[9] = t3;
|
|
388
|
+
$[10] = t4;
|
|
448
389
|
} else {
|
|
449
|
-
|
|
390
|
+
t3 = $[9];
|
|
391
|
+
t4 = $[10];
|
|
450
392
|
}
|
|
451
393
|
let t5;
|
|
452
|
-
if ($[
|
|
394
|
+
if ($[11] !== showSwipeHandle) {
|
|
453
395
|
t5 = showSwipeHandle ? /* @__PURE__ */ jsx(DrawerSwipeHandle, {}) : null;
|
|
454
|
-
$[
|
|
455
|
-
$[
|
|
396
|
+
$[11] = showSwipeHandle;
|
|
397
|
+
$[12] = t5;
|
|
456
398
|
} else {
|
|
457
|
-
t5 = $[
|
|
399
|
+
t5 = $[12];
|
|
458
400
|
}
|
|
459
401
|
let t6;
|
|
460
|
-
if ($[
|
|
402
|
+
if ($[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
461
403
|
t6 = {
|
|
462
404
|
className: "x78zum5 x98rzlu xdt5ytf x2lwn1j"
|
|
463
405
|
};
|
|
464
|
-
$[
|
|
406
|
+
$[13] = t6;
|
|
465
407
|
} else {
|
|
466
|
-
t6 = $[
|
|
408
|
+
t6 = $[13];
|
|
467
409
|
}
|
|
468
410
|
let t7;
|
|
469
|
-
if ($[
|
|
411
|
+
if ($[14] !== children) {
|
|
470
412
|
t7 = /* @__PURE__ */ jsx(DrawerPrimitive.Content, { ...t6, children });
|
|
471
|
-
$[
|
|
472
|
-
$[
|
|
413
|
+
$[14] = children;
|
|
414
|
+
$[15] = t7;
|
|
473
415
|
} else {
|
|
474
|
-
t7 = $[
|
|
416
|
+
t7 = $[15];
|
|
475
417
|
}
|
|
476
418
|
let t8;
|
|
477
|
-
if ($[
|
|
419
|
+
if ($[16] !== props2 || $[17] !== t3 || $[18] !== t4 || $[19] !== t5 || $[20] !== t7) {
|
|
478
420
|
t8 = /* @__PURE__ */ jsx(DrawerPrimitive.Viewport, { ...t2, children: /* @__PURE__ */ jsxs(DrawerPrimitive.Popup, { ...props2, "data-slot": "drawer-popup", className: t3, style: t4, children: [
|
|
479
421
|
t5,
|
|
480
422
|
t7
|
|
481
423
|
] }) });
|
|
482
|
-
$[
|
|
483
|
-
$[
|
|
484
|
-
$[
|
|
485
|
-
$[
|
|
486
|
-
$[
|
|
487
|
-
$[
|
|
424
|
+
$[16] = props2;
|
|
425
|
+
$[17] = t3;
|
|
426
|
+
$[18] = t4;
|
|
427
|
+
$[19] = t5;
|
|
428
|
+
$[20] = t7;
|
|
429
|
+
$[21] = t8;
|
|
488
430
|
} else {
|
|
489
|
-
t8 = $[
|
|
431
|
+
t8 = $[21];
|
|
490
432
|
}
|
|
491
433
|
let t9;
|
|
492
|
-
if ($[
|
|
434
|
+
if ($[22] !== t1 || $[23] !== t8) {
|
|
493
435
|
t9 = /* @__PURE__ */ jsxs(DrawerPortal, { children: [
|
|
494
436
|
t1,
|
|
495
437
|
t8
|
|
496
438
|
] });
|
|
497
|
-
$[
|
|
498
|
-
$[
|
|
499
|
-
$[
|
|
439
|
+
$[22] = t1;
|
|
440
|
+
$[23] = t8;
|
|
441
|
+
$[24] = t9;
|
|
500
442
|
} else {
|
|
501
|
-
t9 = $[
|
|
443
|
+
t9 = $[24];
|
|
502
444
|
}
|
|
503
445
|
return t9;
|
|
504
446
|
}
|
|
505
447
|
function DrawerHeader(t0) {
|
|
506
|
-
const $ = _c(
|
|
507
|
-
let className;
|
|
448
|
+
const $ = _c(8);
|
|
508
449
|
let props2;
|
|
509
|
-
let style;
|
|
510
450
|
let xstyle;
|
|
511
451
|
if ($[0] !== t0) {
|
|
512
452
|
({
|
|
513
|
-
className,
|
|
514
|
-
style,
|
|
515
453
|
xstyle,
|
|
516
454
|
...props2
|
|
517
455
|
} = t0);
|
|
518
456
|
$[0] = t0;
|
|
519
|
-
$[1] =
|
|
520
|
-
$[2] =
|
|
521
|
-
$[3] = style;
|
|
522
|
-
$[4] = xstyle;
|
|
457
|
+
$[1] = props2;
|
|
458
|
+
$[2] = xstyle;
|
|
523
459
|
} else {
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
style = $[3];
|
|
527
|
-
xstyle = $[4];
|
|
460
|
+
props2 = $[1];
|
|
461
|
+
xstyle = $[2];
|
|
528
462
|
}
|
|
529
463
|
let t1;
|
|
530
|
-
if ($[
|
|
531
|
-
t1 =
|
|
532
|
-
$[
|
|
533
|
-
$[
|
|
534
|
-
$[7] = xstyle;
|
|
535
|
-
$[8] = t1;
|
|
464
|
+
if ($[3] !== xstyle) {
|
|
465
|
+
t1 = stylex.props(styles.header, xstyle);
|
|
466
|
+
$[3] = xstyle;
|
|
467
|
+
$[4] = t1;
|
|
536
468
|
} else {
|
|
537
|
-
t1 = $[
|
|
469
|
+
t1 = $[4];
|
|
538
470
|
}
|
|
539
471
|
let t2;
|
|
540
|
-
if ($[
|
|
472
|
+
if ($[5] !== props2 || $[6] !== t1) {
|
|
541
473
|
t2 = /* @__PURE__ */ jsx("div", { ...props2, ...t1 });
|
|
542
|
-
$[
|
|
543
|
-
$[
|
|
544
|
-
$[
|
|
474
|
+
$[5] = props2;
|
|
475
|
+
$[6] = t1;
|
|
476
|
+
$[7] = t2;
|
|
545
477
|
} else {
|
|
546
|
-
t2 = $[
|
|
478
|
+
t2 = $[7];
|
|
547
479
|
}
|
|
548
480
|
return t2;
|
|
549
481
|
}
|
|
550
482
|
function DrawerFooter(t0) {
|
|
551
|
-
const $ = _c(
|
|
552
|
-
let className;
|
|
483
|
+
const $ = _c(9);
|
|
553
484
|
let props2;
|
|
554
|
-
let style;
|
|
555
485
|
let xstyle;
|
|
556
486
|
if ($[0] !== t0) {
|
|
557
487
|
({
|
|
558
|
-
className,
|
|
559
|
-
style,
|
|
560
488
|
xstyle,
|
|
561
489
|
...props2
|
|
562
490
|
} = t0);
|
|
563
491
|
$[0] = t0;
|
|
564
|
-
$[1] =
|
|
565
|
-
$[2] =
|
|
566
|
-
$[3] = style;
|
|
567
|
-
$[4] = xstyle;
|
|
492
|
+
$[1] = props2;
|
|
493
|
+
$[2] = xstyle;
|
|
568
494
|
} else {
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
style = $[3];
|
|
572
|
-
xstyle = $[4];
|
|
495
|
+
props2 = $[1];
|
|
496
|
+
xstyle = $[2];
|
|
573
497
|
}
|
|
574
498
|
const {
|
|
575
499
|
swipeDirection
|
|
576
500
|
} = useContext(DrawerContext);
|
|
577
501
|
const isSideDrawer = swipeDirection === "left" || swipeDirection === "right";
|
|
578
502
|
let t1;
|
|
579
|
-
if ($[
|
|
580
|
-
t1 =
|
|
581
|
-
$[
|
|
582
|
-
$[
|
|
583
|
-
$[
|
|
584
|
-
$[8] = xstyle;
|
|
585
|
-
$[9] = t1;
|
|
503
|
+
if ($[3] !== isSideDrawer || $[4] !== xstyle) {
|
|
504
|
+
t1 = stylex.props(styles.footer, isSideDrawer && styles.sideFooter, xstyle);
|
|
505
|
+
$[3] = isSideDrawer;
|
|
506
|
+
$[4] = xstyle;
|
|
507
|
+
$[5] = t1;
|
|
586
508
|
} else {
|
|
587
|
-
t1 = $[
|
|
509
|
+
t1 = $[5];
|
|
588
510
|
}
|
|
589
511
|
let t2;
|
|
590
|
-
if ($[
|
|
512
|
+
if ($[6] !== props2 || $[7] !== t1) {
|
|
591
513
|
t2 = /* @__PURE__ */ jsx("div", { ...props2, ...t1 });
|
|
592
|
-
$[
|
|
593
|
-
$[
|
|
594
|
-
$[
|
|
514
|
+
$[6] = props2;
|
|
515
|
+
$[7] = t1;
|
|
516
|
+
$[8] = t2;
|
|
595
517
|
} else {
|
|
596
|
-
t2 = $[
|
|
518
|
+
t2 = $[8];
|
|
597
519
|
}
|
|
598
520
|
return t2;
|
|
599
521
|
}
|
|
600
522
|
function DrawerTitle(t0) {
|
|
601
|
-
const $ = _c(
|
|
602
|
-
let className;
|
|
523
|
+
const $ = _c(7);
|
|
603
524
|
let props2;
|
|
604
|
-
let style;
|
|
605
525
|
if ($[0] !== t0) {
|
|
606
526
|
({
|
|
607
|
-
className,
|
|
608
|
-
style,
|
|
609
527
|
...props2
|
|
610
528
|
} = t0);
|
|
611
529
|
$[0] = t0;
|
|
612
|
-
$[1] =
|
|
613
|
-
$[2] = props2;
|
|
614
|
-
$[3] = style;
|
|
530
|
+
$[1] = props2;
|
|
615
531
|
} else {
|
|
616
|
-
|
|
617
|
-
props2 = $[2];
|
|
618
|
-
style = $[3];
|
|
532
|
+
props2 = $[1];
|
|
619
533
|
}
|
|
620
534
|
let t1;
|
|
621
|
-
if ($[
|
|
535
|
+
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
622
536
|
t1 = {
|
|
623
537
|
className: "x1alews2 x1owaoya xq1ytqg x1hfsx4t x1ghz6dp"
|
|
624
538
|
};
|
|
625
|
-
$[
|
|
539
|
+
$[2] = t1;
|
|
626
540
|
} else {
|
|
627
|
-
t1 = $[
|
|
541
|
+
t1 = $[2];
|
|
628
542
|
}
|
|
629
543
|
const stylexProps = t1;
|
|
630
544
|
let t2;
|
|
631
|
-
if ($[5] !== className) {
|
|
632
|
-
t2 = (state) => [stylexProps.className, typeof className === "function" ? className(state) : className].filter(Boolean).join(" ");
|
|
633
|
-
$[5] = className;
|
|
634
|
-
$[6] = t2;
|
|
635
|
-
} else {
|
|
636
|
-
t2 = $[6];
|
|
637
|
-
}
|
|
638
545
|
let t3;
|
|
639
|
-
if ($[
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
$[7] = style;
|
|
645
|
-
$[8] = t3;
|
|
546
|
+
if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
547
|
+
t2 = () => stylexProps.className;
|
|
548
|
+
t3 = () => stylexProps.style;
|
|
549
|
+
$[3] = t2;
|
|
550
|
+
$[4] = t3;
|
|
646
551
|
} else {
|
|
647
|
-
|
|
552
|
+
t2 = $[3];
|
|
553
|
+
t3 = $[4];
|
|
648
554
|
}
|
|
649
555
|
let t4;
|
|
650
|
-
if ($[
|
|
556
|
+
if ($[5] !== props2) {
|
|
651
557
|
t4 = /* @__PURE__ */ jsx(DrawerPrimitive.Title, { ...props2, className: t2, style: t3 });
|
|
652
|
-
$[
|
|
653
|
-
$[
|
|
654
|
-
$[11] = t3;
|
|
655
|
-
$[12] = t4;
|
|
558
|
+
$[5] = props2;
|
|
559
|
+
$[6] = t4;
|
|
656
560
|
} else {
|
|
657
|
-
t4 = $[
|
|
561
|
+
t4 = $[6];
|
|
658
562
|
}
|
|
659
563
|
return t4;
|
|
660
564
|
}
|
|
661
565
|
function DrawerDescription(t0) {
|
|
662
|
-
const $ = _c(
|
|
663
|
-
let className;
|
|
566
|
+
const $ = _c(7);
|
|
664
567
|
let props2;
|
|
665
|
-
let style;
|
|
666
568
|
if ($[0] !== t0) {
|
|
667
569
|
({
|
|
668
|
-
className,
|
|
669
|
-
style,
|
|
670
570
|
...props2
|
|
671
571
|
} = t0);
|
|
672
572
|
$[0] = t0;
|
|
673
|
-
$[1] =
|
|
674
|
-
$[2] = props2;
|
|
675
|
-
$[3] = style;
|
|
573
|
+
$[1] = props2;
|
|
676
574
|
} else {
|
|
677
|
-
|
|
678
|
-
props2 = $[2];
|
|
679
|
-
style = $[3];
|
|
575
|
+
props2 = $[1];
|
|
680
576
|
}
|
|
681
577
|
let t1;
|
|
682
|
-
if ($[
|
|
578
|
+
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
683
579
|
t1 = {
|
|
684
580
|
className: "x1ry1pnm x99mhxu xi1fz51 x1ghz6dp"
|
|
685
581
|
};
|
|
686
|
-
$[
|
|
582
|
+
$[2] = t1;
|
|
687
583
|
} else {
|
|
688
|
-
t1 = $[
|
|
584
|
+
t1 = $[2];
|
|
689
585
|
}
|
|
690
586
|
const stylexProps = t1;
|
|
691
587
|
let t2;
|
|
692
|
-
if ($[5] !== className) {
|
|
693
|
-
t2 = (state) => [stylexProps.className, typeof className === "function" ? className(state) : className].filter(Boolean).join(" ");
|
|
694
|
-
$[5] = className;
|
|
695
|
-
$[6] = t2;
|
|
696
|
-
} else {
|
|
697
|
-
t2 = $[6];
|
|
698
|
-
}
|
|
699
588
|
let t3;
|
|
700
|
-
if ($[
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
$[7] = style;
|
|
706
|
-
$[8] = t3;
|
|
589
|
+
if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
590
|
+
t2 = () => stylexProps.className;
|
|
591
|
+
t3 = () => stylexProps.style;
|
|
592
|
+
$[3] = t2;
|
|
593
|
+
$[4] = t3;
|
|
707
594
|
} else {
|
|
708
|
-
|
|
595
|
+
t2 = $[3];
|
|
596
|
+
t3 = $[4];
|
|
709
597
|
}
|
|
710
598
|
let t4;
|
|
711
|
-
if ($[
|
|
599
|
+
if ($[5] !== props2) {
|
|
712
600
|
t4 = /* @__PURE__ */ jsx(DrawerPrimitive.Description, { ...props2, className: t2, style: t3 });
|
|
713
|
-
$[
|
|
714
|
-
$[
|
|
715
|
-
$[11] = t3;
|
|
716
|
-
$[12] = t4;
|
|
601
|
+
$[5] = props2;
|
|
602
|
+
$[6] = t4;
|
|
717
603
|
} else {
|
|
718
|
-
t4 = $[
|
|
604
|
+
t4 = $[6];
|
|
719
605
|
}
|
|
720
606
|
return t4;
|
|
721
607
|
}
|