@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.
Files changed (161) hide show
  1. package/dist/accordion.d.ts +4 -4
  2. package/dist/accordion.js +129 -219
  3. package/dist/accordion.js.map +2 -2
  4. package/dist/alert-dialog.d.ts +5 -5
  5. package/dist/alert-dialog.js +138 -249
  6. package/dist/alert-dialog.js.map +3 -3
  7. package/dist/aspect-ratio.d.ts +1 -1
  8. package/dist/aspect-ratio.js +19 -50
  9. package/dist/aspect-ratio.js.map +2 -2
  10. package/dist/attachment.d.ts +8 -8
  11. package/dist/attachment.js +158 -286
  12. package/dist/attachment.js.map +3 -3
  13. package/dist/avatar.d.ts +6 -6
  14. package/dist/avatar.js +98 -212
  15. package/dist/avatar.js.map +3 -3
  16. package/dist/badge.d.ts +1 -1
  17. package/dist/badge.js +19 -50
  18. package/dist/badge.js.map +2 -2
  19. package/dist/banner.d.ts +3 -3
  20. package/dist/banner.js +111 -204
  21. package/dist/banner.js.map +2 -2
  22. package/dist/breadcrumb.d.ts +7 -7
  23. package/dist/breadcrumb.js +90 -178
  24. package/dist/breadcrumb.js.map +3 -3
  25. package/dist/bubble.d.ts +1 -1
  26. package/dist/bubble.js +23 -54
  27. package/dist/bubble.js.map +2 -2
  28. package/dist/button-group.d.ts +2 -2
  29. package/dist/button-group.js +69 -162
  30. package/dist/button-group.js.map +2 -2
  31. package/dist/button.d.ts +1 -1
  32. package/dist/button.js +42 -73
  33. package/dist/button.js.map +2 -2
  34. package/dist/card.d.ts +6 -6
  35. package/dist/card.js +97 -283
  36. package/dist/card.js.map +2 -2
  37. package/dist/checkbox.d.ts +1 -1
  38. package/dist/checkbox.js +23 -42
  39. package/dist/checkbox.js.map +2 -2
  40. package/dist/collapsible.d.ts +3 -3
  41. package/dist/collapsible.js +108 -180
  42. package/dist/collapsible.js.map +2 -2
  43. package/dist/combobox.d.ts +3 -3
  44. package/dist/combobox.js +194 -275
  45. package/dist/combobox.js.map +2 -2
  46. package/dist/content-row.d.ts +7 -7
  47. package/dist/content-row.js +96 -184
  48. package/dist/content-row.js.map +3 -3
  49. package/dist/context-menu.js +257 -386
  50. package/dist/context-menu.js.map +2 -2
  51. package/dist/dialog.d.ts +5 -5
  52. package/dist/dialog.js +106 -189
  53. package/dist/dialog.js.map +3 -3
  54. package/dist/drawer.d.ts +7 -7
  55. package/dist/drawer.js +152 -266
  56. package/dist/drawer.js.map +3 -3
  57. package/dist/dropdown-menu.d.ts +6 -6
  58. package/dist/dropdown-menu.js +257 -386
  59. package/dist/dropdown-menu.js.map +2 -2
  60. package/dist/empty.d.ts +6 -6
  61. package/dist/empty.js +91 -164
  62. package/dist/empty.js.map +3 -3
  63. package/dist/field.d.ts +9 -9
  64. package/dist/field.js +154 -367
  65. package/dist/field.js.map +3 -3
  66. package/dist/hover-card.d.ts +1 -1
  67. package/dist/hover-card.js +40 -91
  68. package/dist/hover-card.js.map +2 -2
  69. package/dist/index.js +3838 -6825
  70. package/dist/index.js.map +4 -4
  71. package/dist/input-group.d.ts +3 -3
  72. package/dist/input-group.js +139 -325
  73. package/dist/input-group.js.map +2 -2
  74. package/dist/input-otp.d.ts +4 -4
  75. package/dist/input-otp.js +67 -133
  76. package/dist/input-otp.js.map +3 -3
  77. package/dist/input.d.ts +1 -1
  78. package/dist/input.js +18 -49
  79. package/dist/input.js.map +2 -2
  80. package/dist/kbd.d.ts +2 -2
  81. package/dist/kbd.js +32 -94
  82. package/dist/kbd.js.map +2 -2
  83. package/dist/label.d.ts +1 -1
  84. package/dist/label.js +16 -47
  85. package/dist/label.js.map +2 -2
  86. package/dist/link.js +31 -63
  87. package/dist/link.js.map +2 -2
  88. package/dist/marker.d.ts +3 -3
  89. package/dist/marker.js +42 -87
  90. package/dist/marker.js.map +3 -3
  91. package/dist/menubar.d.ts +1 -1
  92. package/dist/menubar.js +300 -456
  93. package/dist/menubar.js.map +3 -3
  94. package/dist/message-scroller.d.ts +1 -1
  95. package/dist/message-scroller.js +99 -161
  96. package/dist/message-scroller.js.map +2 -2
  97. package/dist/message.d.ts +4 -4
  98. package/dist/message.js +55 -111
  99. package/dist/message.js.map +3 -3
  100. package/dist/native-select.d.ts +1 -1
  101. package/dist/native-select.js +36 -67
  102. package/dist/native-select.js.map +2 -2
  103. package/dist/navigation-menu.d.ts +4 -4
  104. package/dist/navigation-menu.js +234 -333
  105. package/dist/navigation-menu.js.map +2 -2
  106. package/dist/pagination.d.ts +5 -5
  107. package/dist/pagination.js +68 -133
  108. package/dist/pagination.js.map +3 -3
  109. package/dist/popover.d.ts +4 -4
  110. package/dist/popover.js +73 -136
  111. package/dist/popover.js.map +3 -3
  112. package/dist/progress.d.ts +1 -1
  113. package/dist/progress.js +28 -41
  114. package/dist/progress.js.map +2 -2
  115. package/dist/radio-group.d.ts +2 -2
  116. package/dist/radio-group.js +48 -82
  117. package/dist/radio-group.js.map +2 -2
  118. package/dist/scroll-area.d.ts +2 -2
  119. package/dist/scroll-area.js +80 -106
  120. package/dist/scroll-area.js.map +2 -2
  121. package/dist/select.d.ts +3 -3
  122. package/dist/select.js +190 -271
  123. package/dist/select.js.map +2 -2
  124. package/dist/separator.d.ts +1 -1
  125. package/dist/separator.js +24 -55
  126. package/dist/separator.js.map +2 -2
  127. package/dist/skeleton.d.ts +1 -1
  128. package/dist/skeleton.js +16 -47
  129. package/dist/skeleton.js.map +2 -2
  130. package/dist/slider.d.ts +1 -1
  131. package/dist/slider.js +52 -65
  132. package/dist/slider.js.map +2 -2
  133. package/dist/spinner.d.ts +1 -1
  134. package/dist/spinner.js +19 -50
  135. package/dist/spinner.js.map +2 -2
  136. package/dist/switch.d.ts +1 -1
  137. package/dist/switch.js +28 -48
  138. package/dist/switch.js.map +2 -2
  139. package/dist/table.d.ts +8 -8
  140. package/dist/table.js +112 -212
  141. package/dist/table.js.map +3 -3
  142. package/dist/tabs.d.ts +4 -4
  143. package/dist/tabs.js +115 -194
  144. package/dist/tabs.js.map +2 -2
  145. package/dist/textarea.d.ts +1 -1
  146. package/dist/textarea.js +18 -49
  147. package/dist/textarea.js.map +2 -2
  148. package/dist/toggle-group.d.ts +2 -2
  149. package/dist/toggle-group.js +67 -103
  150. package/dist/toggle-group.js.map +2 -2
  151. package/dist/toggle.d.ts +1 -1
  152. package/dist/toggle.js +26 -46
  153. package/dist/toggle.js.map +2 -2
  154. package/dist/tooltip.d.ts +1 -1
  155. package/dist/tooltip.js +39 -56
  156. package/dist/tooltip.js.map +2 -2
  157. package/dist/typography.d.ts +7 -4
  158. package/dist/typography.js +1 -8
  159. package/dist/typography.js.map +2 -2
  160. package/package.json +3 -3
  161. 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(15);
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] = className;
261
- $[2] = props2;
262
- $[3] = style;
263
- $[4] = xstyle;
243
+ $[1] = props2;
244
+ $[2] = xstyle;
264
245
  } else {
265
- className = $[1];
266
- props2 = $[2];
267
- style = $[3];
268
- xstyle = $[4];
246
+ props2 = $[1];
247
+ xstyle = $[2];
269
248
  }
270
249
  let t1;
271
- if ($[5] !== className || $[6] !== xstyle) {
272
- t1 = (state) => {
250
+ let t2;
251
+ if ($[3] !== xstyle) {
252
+ t1 = () => {
273
253
  const stylexProps = stylex.props(styles.overlay, xstyle);
274
- return [stylexProps.className, typeof className === "function" ? className(state) : className].filter(Boolean).join(" ");
254
+ return stylexProps.className;
275
255
  };
276
- $[5] = className;
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
- $[8] = style;
292
- $[9] = xstyle;
293
- $[10] = t2;
260
+ $[3] = xstyle;
261
+ $[4] = t1;
262
+ $[5] = t2;
294
263
  } else {
295
- t2 = $[10];
264
+ t1 = $[4];
265
+ t2 = $[5];
296
266
  }
297
267
  let t3;
298
- if ($[11] !== props2 || $[12] !== t1 || $[13] !== t2) {
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
- $[11] = props2;
301
- $[12] = t1;
302
- $[13] = t2;
303
- $[14] = t3;
270
+ $[6] = props2;
271
+ $[7] = t1;
272
+ $[8] = t2;
273
+ $[9] = t3;
304
274
  } else {
305
- t3 = $[14];
275
+ t3 = $[9];
306
276
  }
307
277
  return t3;
308
278
  }
309
279
  function DrawerSwipeHandle(t0) {
310
- const $ = _c(14);
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] = className;
324
- $[2] = props2;
325
- $[3] = style;
326
- $[4] = xstyle;
289
+ $[1] = props2;
290
+ $[2] = xstyle;
327
291
  } else {
328
- className = $[1];
329
- props2 = $[2];
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 ($[5] !== className || $[6] !== isHorizontal || $[7] !== style || $[8] !== swipeDirection || $[9] !== xstyle) {
339
- t1 = getNativeStyleProps(stylex.props(styles.swipeHandle, isHorizontal && styles.horizontalSwipeHandle, swipeDirection === "up" && styles.upSwipeHandle, swipeDirection === "left" && styles.leftSwipeHandle, swipeDirection === "right" && styles.rightSwipeHandle, xstyle), className, style);
340
- $[5] = className;
341
- $[6] = isHorizontal;
342
- $[7] = style;
343
- $[8] = swipeDirection;
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 = $[10];
307
+ t1 = $[6];
348
308
  }
349
309
  let t2;
350
- if ($[11] !== props2 || $[12] !== t1) {
310
+ if ($[7] !== props2 || $[8] !== t1) {
351
311
  t2 = /* @__PURE__ */ jsx("div", { "aria-hidden": "true", "data-slot": "drawer-swipe-handle", ...props2, ...t1 });
352
- $[11] = props2;
353
- $[12] = t1;
354
- $[13] = t2;
312
+ $[7] = props2;
313
+ $[8] = t1;
314
+ $[9] = t2;
355
315
  } else {
356
- t2 = $[13];
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(31);
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] = className;
390
- $[3] = props2;
391
- $[4] = style;
392
- $[5] = xstyle;
345
+ $[2] = props2;
346
+ $[3] = xstyle;
393
347
  } else {
394
348
  children = $[1];
395
- className = $[2];
396
- props2 = $[3];
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 ($[6] !== overlay) {
358
+ if ($[4] !== overlay) {
407
359
  t1 = overlay === "none" ? null : /* @__PURE__ */ jsx(DrawerOverlay, { xstyle: overlay === "transparent" ? styles.overlayTransparent : void 0 });
408
- $[6] = overlay;
409
- $[7] = t1;
360
+ $[4] = overlay;
361
+ $[5] = t1;
410
362
  } else {
411
- t1 = $[7];
363
+ t1 = $[5];
412
364
  }
413
365
  let t2;
414
- if ($[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
366
+ if ($[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
415
367
  t2 = {
416
368
  className: "x10a8y8t xixxii4 xfa8aoj"
417
369
  };
418
- $[8] = t2;
370
+ $[6] = t2;
419
371
  } else {
420
- t2 = $[8];
372
+ t2 = $[6];
421
373
  }
422
374
  let t3;
423
- if ($[9] !== className || $[10] !== swipeDirection || $[11] !== xstyle) {
424
- t3 = (state) => {
375
+ let t4;
376
+ if ($[7] !== swipeDirection || $[8] !== xstyle) {
377
+ t3 = () => {
425
378
  const stylexProps = getDrawerPopupStylexProps(swipeDirection, xstyle);
426
- return [stylexProps.className, typeof className === "function" ? className(state) : className].filter(Boolean).join(" ");
379
+ return stylexProps.className;
427
380
  };
428
- $[9] = className;
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
- $[13] = style;
445
- $[14] = swipeDirection;
446
- $[15] = xstyle;
447
- $[16] = t4;
385
+ $[7] = swipeDirection;
386
+ $[8] = xstyle;
387
+ $[9] = t3;
388
+ $[10] = t4;
448
389
  } else {
449
- t4 = $[16];
390
+ t3 = $[9];
391
+ t4 = $[10];
450
392
  }
451
393
  let t5;
452
- if ($[17] !== showSwipeHandle) {
394
+ if ($[11] !== showSwipeHandle) {
453
395
  t5 = showSwipeHandle ? /* @__PURE__ */ jsx(DrawerSwipeHandle, {}) : null;
454
- $[17] = showSwipeHandle;
455
- $[18] = t5;
396
+ $[11] = showSwipeHandle;
397
+ $[12] = t5;
456
398
  } else {
457
- t5 = $[18];
399
+ t5 = $[12];
458
400
  }
459
401
  let t6;
460
- if ($[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
402
+ if ($[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
461
403
  t6 = {
462
404
  className: "x78zum5 x98rzlu xdt5ytf x2lwn1j"
463
405
  };
464
- $[19] = t6;
406
+ $[13] = t6;
465
407
  } else {
466
- t6 = $[19];
408
+ t6 = $[13];
467
409
  }
468
410
  let t7;
469
- if ($[20] !== children) {
411
+ if ($[14] !== children) {
470
412
  t7 = /* @__PURE__ */ jsx(DrawerPrimitive.Content, { ...t6, children });
471
- $[20] = children;
472
- $[21] = t7;
413
+ $[14] = children;
414
+ $[15] = t7;
473
415
  } else {
474
- t7 = $[21];
416
+ t7 = $[15];
475
417
  }
476
418
  let t8;
477
- if ($[22] !== props2 || $[23] !== t3 || $[24] !== t4 || $[25] !== t5 || $[26] !== t7) {
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
- $[22] = props2;
483
- $[23] = t3;
484
- $[24] = t4;
485
- $[25] = t5;
486
- $[26] = t7;
487
- $[27] = t8;
424
+ $[16] = props2;
425
+ $[17] = t3;
426
+ $[18] = t4;
427
+ $[19] = t5;
428
+ $[20] = t7;
429
+ $[21] = t8;
488
430
  } else {
489
- t8 = $[27];
431
+ t8 = $[21];
490
432
  }
491
433
  let t9;
492
- if ($[28] !== t1 || $[29] !== t8) {
434
+ if ($[22] !== t1 || $[23] !== t8) {
493
435
  t9 = /* @__PURE__ */ jsxs(DrawerPortal, { children: [
494
436
  t1,
495
437
  t8
496
438
  ] });
497
- $[28] = t1;
498
- $[29] = t8;
499
- $[30] = t9;
439
+ $[22] = t1;
440
+ $[23] = t8;
441
+ $[24] = t9;
500
442
  } else {
501
- t9 = $[30];
443
+ t9 = $[24];
502
444
  }
503
445
  return t9;
504
446
  }
505
447
  function DrawerHeader(t0) {
506
- const $ = _c(12);
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] = className;
520
- $[2] = props2;
521
- $[3] = style;
522
- $[4] = xstyle;
457
+ $[1] = props2;
458
+ $[2] = xstyle;
523
459
  } else {
524
- className = $[1];
525
- props2 = $[2];
526
- style = $[3];
527
- xstyle = $[4];
460
+ props2 = $[1];
461
+ xstyle = $[2];
528
462
  }
529
463
  let t1;
530
- if ($[5] !== className || $[6] !== style || $[7] !== xstyle) {
531
- t1 = getNativeStyleProps(stylex.props(styles.header, xstyle), className, style);
532
- $[5] = className;
533
- $[6] = style;
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 = $[8];
469
+ t1 = $[4];
538
470
  }
539
471
  let t2;
540
- if ($[9] !== props2 || $[10] !== t1) {
472
+ if ($[5] !== props2 || $[6] !== t1) {
541
473
  t2 = /* @__PURE__ */ jsx("div", { ...props2, ...t1 });
542
- $[9] = props2;
543
- $[10] = t1;
544
- $[11] = t2;
474
+ $[5] = props2;
475
+ $[6] = t1;
476
+ $[7] = t2;
545
477
  } else {
546
- t2 = $[11];
478
+ t2 = $[7];
547
479
  }
548
480
  return t2;
549
481
  }
550
482
  function DrawerFooter(t0) {
551
- const $ = _c(13);
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] = className;
565
- $[2] = props2;
566
- $[3] = style;
567
- $[4] = xstyle;
492
+ $[1] = props2;
493
+ $[2] = xstyle;
568
494
  } else {
569
- className = $[1];
570
- props2 = $[2];
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 ($[5] !== className || $[6] !== isSideDrawer || $[7] !== style || $[8] !== xstyle) {
580
- t1 = getNativeStyleProps(stylex.props(styles.footer, isSideDrawer && styles.sideFooter, xstyle), className, style);
581
- $[5] = className;
582
- $[6] = isSideDrawer;
583
- $[7] = style;
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 = $[9];
509
+ t1 = $[5];
588
510
  }
589
511
  let t2;
590
- if ($[10] !== props2 || $[11] !== t1) {
512
+ if ($[6] !== props2 || $[7] !== t1) {
591
513
  t2 = /* @__PURE__ */ jsx("div", { ...props2, ...t1 });
592
- $[10] = props2;
593
- $[11] = t1;
594
- $[12] = t2;
514
+ $[6] = props2;
515
+ $[7] = t1;
516
+ $[8] = t2;
595
517
  } else {
596
- t2 = $[12];
518
+ t2 = $[8];
597
519
  }
598
520
  return t2;
599
521
  }
600
522
  function DrawerTitle(t0) {
601
- const $ = _c(13);
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] = className;
613
- $[2] = props2;
614
- $[3] = style;
530
+ $[1] = props2;
615
531
  } else {
616
- className = $[1];
617
- props2 = $[2];
618
- style = $[3];
532
+ props2 = $[1];
619
533
  }
620
534
  let t1;
621
- if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
535
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
622
536
  t1 = {
623
537
  className: "x1alews2 x1owaoya xq1ytqg x1hfsx4t x1ghz6dp"
624
538
  };
625
- $[4] = t1;
539
+ $[2] = t1;
626
540
  } else {
627
- t1 = $[4];
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 ($[7] !== style) {
640
- t3 = (state_0) => ({
641
- ...stylexProps.style,
642
- ...typeof style === "function" ? style(state_0) : style
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
- t3 = $[8];
552
+ t2 = $[3];
553
+ t3 = $[4];
648
554
  }
649
555
  let t4;
650
- if ($[9] !== props2 || $[10] !== t2 || $[11] !== t3) {
556
+ if ($[5] !== props2) {
651
557
  t4 = /* @__PURE__ */ jsx(DrawerPrimitive.Title, { ...props2, className: t2, style: t3 });
652
- $[9] = props2;
653
- $[10] = t2;
654
- $[11] = t3;
655
- $[12] = t4;
558
+ $[5] = props2;
559
+ $[6] = t4;
656
560
  } else {
657
- t4 = $[12];
561
+ t4 = $[6];
658
562
  }
659
563
  return t4;
660
564
  }
661
565
  function DrawerDescription(t0) {
662
- const $ = _c(13);
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] = className;
674
- $[2] = props2;
675
- $[3] = style;
573
+ $[1] = props2;
676
574
  } else {
677
- className = $[1];
678
- props2 = $[2];
679
- style = $[3];
575
+ props2 = $[1];
680
576
  }
681
577
  let t1;
682
- if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
578
+ if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
683
579
  t1 = {
684
580
  className: "x1ry1pnm x99mhxu xi1fz51 x1ghz6dp"
685
581
  };
686
- $[4] = t1;
582
+ $[2] = t1;
687
583
  } else {
688
- t1 = $[4];
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 ($[7] !== style) {
701
- t3 = (state_0) => ({
702
- ...stylexProps.style,
703
- ...typeof style === "function" ? style(state_0) : style
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
- t3 = $[8];
595
+ t2 = $[3];
596
+ t3 = $[4];
709
597
  }
710
598
  let t4;
711
- if ($[9] !== props2 || $[10] !== t2 || $[11] !== t3) {
599
+ if ($[5] !== props2) {
712
600
  t4 = /* @__PURE__ */ jsx(DrawerPrimitive.Description, { ...props2, className: t2, style: t3 });
713
- $[9] = props2;
714
- $[10] = t2;
715
- $[11] = t3;
716
- $[12] = t4;
601
+ $[5] = props2;
602
+ $[6] = t4;
717
603
  } else {
718
- t4 = $[12];
604
+ t4 = $[6];
719
605
  }
720
606
  return t4;
721
607
  }