@sanity/ui 4.0.0-static.24 → 4.0.0-static.26

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 (54) hide show
  1. package/dist/css/index.css +1 -1
  2. package/dist/css/index.css.map +1 -1
  3. package/dist/css/index.d.ts +22 -6
  4. package/dist/css/index.js +29 -20
  5. package/dist/css/index.js.map +1 -1
  6. package/dist/index.d.ts +8 -13
  7. package/dist/index.js +519 -531
  8. package/dist/index.js.map +1 -1
  9. package/exports/css/index.css +1 -0
  10. package/package.json +12 -12
  11. package/src/core/components/dialog/__workshop__/Panes.tsx +4 -0
  12. package/src/core/components/menu/Menu.tsx +0 -4
  13. package/src/core/components/menu/MenuItem.tsx +1 -1
  14. package/src/core/components/toast/useToast.ts +2 -2
  15. package/src/core/primitives/avatar/Avatar.tsx +2 -2
  16. package/src/core/primitives/avatar/__workshop__/PropsStory.tsx +22 -0
  17. package/src/core/primitives/avatar/__workshop__/index.ts +5 -0
  18. package/src/core/primitives/button/Button.tsx +5 -5
  19. package/src/core/primitives/code/Code.tsx +25 -1
  20. package/src/core/primitives/heading/Heading.tsx +16 -0
  21. package/src/core/primitives/label/Label.tsx +16 -0
  22. package/src/core/primitives/radio/Radio.tsx +2 -2
  23. package/src/core/primitives/select/Select.tsx +5 -3
  24. package/src/core/primitives/switch/Switch.tsx +2 -10
  25. package/src/core/primitives/text/Text.tsx +14 -0
  26. package/src/core/primitives/textArea/TextArea.tsx +7 -1
  27. package/src/core/primitives/textInput/TextInput.tsx +18 -17
  28. package/src/core/types.ts +6 -5
  29. package/src/core/utils/portal/PortalProvider.tsx +2 -2
  30. package/src/css/primitives/_input/_input.css.ts +2 -3
  31. package/src/css/primitives/_input/input.ts +2 -0
  32. package/src/css/primitives/_input/types.ts +2 -1
  33. package/src/css/primitives/avatar/avatar.css.ts +8 -0
  34. package/src/css/primitives/box/box.css.ts +21 -1
  35. package/src/css/primitives/button/button.css.ts +1 -0
  36. package/src/css/primitives/card/card.css.ts +0 -60
  37. package/src/css/primitives/checkbox/checkbox.css.ts +1 -0
  38. package/src/css/primitives/code/code.ts +4 -0
  39. package/src/css/primitives/code/types.ts +7 -1
  40. package/src/css/primitives/heading/heading.ts +4 -0
  41. package/src/css/primitives/heading/types.ts +7 -1
  42. package/src/css/primitives/label/label.ts +4 -0
  43. package/src/css/primitives/label/types.ts +7 -1
  44. package/src/css/primitives/radio/radio.css.ts +1 -1
  45. package/src/css/primitives/root/root.css.ts +0 -1
  46. package/src/css/primitives/select/select.css.ts +7 -1
  47. package/src/css/primitives/selectable/selectable.css.ts +5 -31
  48. package/src/css/primitives/switch/switch.css.ts +10 -1
  49. package/src/css/primitives/text/text.ts +2 -0
  50. package/src/css/primitives/text/types.ts +6 -1
  51. package/src/css/primitives/textInput/textInput.css.ts +15 -3
  52. package/src/css/props/width/types.ts +1 -1
  53. package/src/css/props/width/width.css.ts +5 -2
  54. package/src/core/primitives/popover/helpers.ts +0 -32
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { SpinnerIcon, CloseIcon, ChevronDownIcon, ChevronRightIcon, ToggleArrowRightIcon, CheckmarkIcon, RemoveIcon } from "@sanity/icons";
3
- import { useState, isValidElement, useDebugValue, useSyncExternalStore, createContext, use, useRef, useImperativeHandle, useEffect, useMemo, useCallback, cloneElement, useReducer, Children, Fragment as Fragment$1, startTransition, useContext, useId, lazy, Suspense, useLayoutEffect, Component } from "react";
3
+ import { useState, isValidElement, useDebugValue, useSyncExternalStore, createContext, use, useRef, useImperativeHandle, useEffect, useMemo, useCallback, cloneElement, useReducer, Children, Fragment as Fragment$1, startTransition, useId, lazy, Suspense, useLayoutEffect, Component } from "react";
4
4
  import { c } from "react/compiler-runtime";
5
5
  import { box, text, textOverflow, animatedSpinnerIcon, spinner, button, buttonLoadingBox, _arrow, vars, _arrowSvg, _arrowStrokeMask, _arrowStroke, _arrowShape, card, BREAKPOINTS, popoverCard, popover, _selectable, stack, textInput, textInputPrefix, textInputElement, _inputElement, _inputPresentation, textInputSuffix, breadcrumbs, container as container$1, dialogCard, dialogHeader, dialogContent, dialogScrollerShadowTop, dialogScroller, dialogScrollerShadowBottom, dialogFooter, dialog, dialogContainer, kbd, menu, menuDivider, toast, toastLayer, treeItem, label, avatar, avatarArrow, avatarInitials, avatarImage, avatarImageOutline, avatarCounter, avatarStack, badge, checkbox, checkboxInput, checkboxPresentation, code, heading, radio, radioInput, radioPresentation, select, selectPresentation, skeleton, codeSkeleton, headingSkeleton, labelSkeleton, textSkeleton, srOnly, _switch, _switchElement, _switchPresentation, _switchTrack, _switchThumb, textArea, tooltip, root } from "@sanity/ui/css";
6
6
  import { isValidElementType } from "react-is";
@@ -272,40 +272,54 @@ function Box(props) {
272
272
  }
273
273
  const DEFAULT_TEXT_ELEMENT = "div";
274
274
  function Text(props) {
275
- const $ = c(30), t0 = props;
276
- let align, children, className, flex, muted, rest, t1, t2, t3, t4, textOverflowProp;
275
+ const $ = c(44), t0 = props;
276
+ let align, children, className, flex, margin, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, muted, rest, t1, t2, t3, t4, textOverflowProp;
277
277
  $[0] !== t0 ? ({
278
278
  align,
279
279
  as: t1,
280
280
  children,
281
281
  className,
282
282
  flex,
283
+ margin,
284
+ marginX,
285
+ marginY,
286
+ marginTop,
287
+ marginRight,
288
+ marginBottom,
289
+ marginLeft,
283
290
  maxWidth: t2,
284
291
  muted,
285
292
  size: t3,
286
293
  textOverflow: textOverflowProp,
287
294
  weight: t4,
288
295
  ...rest
289
- } = t0, $[0] = t0, $[1] = align, $[2] = children, $[3] = className, $[4] = flex, $[5] = muted, $[6] = rest, $[7] = t1, $[8] = t2, $[9] = t3, $[10] = t4, $[11] = textOverflowProp) : (align = $[1], children = $[2], className = $[3], flex = $[4], muted = $[5], rest = $[6], t1 = $[7], t2 = $[8], t3 = $[9], t4 = $[10], textOverflowProp = $[11]);
296
+ } = t0, $[0] = t0, $[1] = align, $[2] = children, $[3] = className, $[4] = flex, $[5] = margin, $[6] = marginBottom, $[7] = marginLeft, $[8] = marginRight, $[9] = marginTop, $[10] = marginX, $[11] = marginY, $[12] = muted, $[13] = rest, $[14] = t1, $[15] = t2, $[16] = t3, $[17] = t4, $[18] = textOverflowProp) : (align = $[1], children = $[2], className = $[3], flex = $[4], margin = $[5], marginBottom = $[6], marginLeft = $[7], marginRight = $[8], marginTop = $[9], marginX = $[10], marginY = $[11], muted = $[12], rest = $[13], t1 = $[14], t2 = $[15], t3 = $[16], t4 = $[17], textOverflowProp = $[18]);
290
297
  const Element2 = t1 === void 0 ? DEFAULT_TEXT_ELEMENT : t1, maxWidth = t2 === void 0 ? "fill" : t2, size2 = t3 === void 0 ? 2 : t3, weight = t4 === void 0 ? "regular" : t4;
291
298
  let t5;
292
- $[12] !== align || $[13] !== className || $[14] !== flex || $[15] !== maxWidth || $[16] !== muted || $[17] !== size2 || $[18] !== weight ? (t5 = text({
299
+ $[19] !== align || $[20] !== className || $[21] !== flex || $[22] !== margin || $[23] !== marginBottom || $[24] !== marginLeft || $[25] !== marginRight || $[26] !== marginTop || $[27] !== marginX || $[28] !== marginY || $[29] !== maxWidth || $[30] !== muted || $[31] !== size2 || $[32] !== weight ? (t5 = text({
293
300
  className,
294
301
  align,
295
302
  flex,
303
+ margin,
304
+ marginX,
305
+ marginY,
306
+ marginTop,
307
+ marginRight,
308
+ marginBottom,
309
+ marginLeft,
296
310
  maxWidth,
297
311
  muted,
298
312
  size: size2,
299
313
  weight
300
- }), $[12] = align, $[13] = className, $[14] = flex, $[15] = maxWidth, $[16] = muted, $[17] = size2, $[18] = weight, $[19] = t5) : t5 = $[19];
314
+ }), $[19] = align, $[20] = className, $[21] = flex, $[22] = margin, $[23] = marginBottom, $[24] = marginLeft, $[25] = marginRight, $[26] = marginTop, $[27] = marginX, $[28] = marginY, $[29] = maxWidth, $[30] = muted, $[31] = size2, $[32] = weight, $[33] = t5) : t5 = $[33];
301
315
  let t6;
302
- $[20] !== textOverflowProp ? (t6 = textOverflow({
316
+ $[34] !== textOverflowProp ? (t6 = textOverflow({
303
317
  textOverflow: textOverflowProp
304
- }), $[20] = textOverflowProp, $[21] = t6) : t6 = $[21];
318
+ }), $[34] = textOverflowProp, $[35] = t6) : t6 = $[35];
305
319
  let t7;
306
- $[22] !== children || $[23] !== t6 ? (t7 = /* @__PURE__ */ jsx("span", { className: t6, children }), $[22] = children, $[23] = t6, $[24] = t7) : t7 = $[24];
320
+ $[36] !== children || $[37] !== t6 ? (t7 = /* @__PURE__ */ jsx("span", { className: t6, children }), $[36] = children, $[37] = t6, $[38] = t7) : t7 = $[38];
307
321
  let t8;
308
- return $[25] !== Element2 || $[26] !== rest || $[27] !== t5 || $[28] !== t7 ? (t8 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Text", ...rest, className: t5, children: t7 }), $[25] = Element2, $[26] = rest, $[27] = t5, $[28] = t7, $[29] = t8) : t8 = $[29], t8;
322
+ return $[39] !== Element2 || $[40] !== rest || $[41] !== t5 || $[42] !== t7 ? (t8 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Text", ...rest, className: t5, children: t7 }), $[39] = Element2, $[40] = rest, $[41] = t5, $[42] = t7, $[43] = t8) : t8 = $[43], t8;
309
323
  }
310
324
  function AnimatedSpinnerIcon(props) {
311
325
  const $ = c(5);
@@ -355,6 +369,7 @@ function Button(props) {
355
369
  justify = "center",
356
370
  loading,
357
371
  mode = "default",
372
+ muted = !1,
358
373
  padding = 3,
359
374
  paddingX,
360
375
  paddingY,
@@ -370,7 +385,6 @@ function Button(props) {
370
385
  textWeight = "medium",
371
386
  tone = "default",
372
387
  type = "button",
373
- muted = !1,
374
388
  width,
375
389
  ...rest
376
390
  } = props;
@@ -496,14 +510,15 @@ function CardProvider(props) {
496
510
  scheme,
497
511
  unstable_CompatProvider
498
512
  } = props;
499
- let t0, t1;
500
- $[0] !== scheme || $[1] !== tone || $[2] !== unstable_CompatProvider ? (t1 = {
513
+ let t0;
514
+ $[0] !== scheme || $[1] !== tone || $[2] !== unstable_CompatProvider ? (t0 = {
501
515
  tone,
502
516
  scheme,
503
517
  unstable_CompatProvider
504
- }, $[0] = scheme, $[1] = tone, $[2] = unstable_CompatProvider, $[3] = t1) : t1 = $[3], t0 = t1;
518
+ }, $[0] = scheme, $[1] = tone, $[2] = unstable_CompatProvider, $[3] = t0) : t0 = $[3];
519
+ const t1 = t0;
505
520
  let t2;
506
- return $[4] !== children || $[5] !== t0 ? (t2 = /* @__PURE__ */ jsx(CardContext.Provider, { value: t0, children }), $[4] = children, $[5] = t0, $[6] = t2) : t2 = $[6], t2;
521
+ return $[4] !== children || $[5] !== t1 ? (t2 = /* @__PURE__ */ jsx(CardContext.Provider, { value: t1, children }), $[4] = children, $[5] = t1, $[6] = t2) : t2 = $[6], t2;
507
522
  }
508
523
  function useCard() {
509
524
  const card2 = use(CardContext);
@@ -663,9 +678,7 @@ function Arrow(props) {
663
678
  style,
664
679
  ...rest
665
680
  } = t0, $[0] = t0, $[1] = h, $[2] = rest, $[3] = style, $[4] = t1, $[5] = t2, $[6] = w) : (h = $[1], rest = $[2], style = $[3], t1 = $[4], t2 = $[5], w = $[6]);
666
- const Element2 = t1 === void 0 ? DEFAULT_ARROW_ELEMENT : t1, radius = t2 === void 0 ? 0 : t2, center = w / 2;
667
- let t3;
668
- const points = [{
681
+ const Element2 = t1 === void 0 ? DEFAULT_ARROW_ELEMENT : t1, radius = t2 === void 0 ? 0 : t2, center = w / 2, points = [{
669
682
  x: 0,
670
683
  y: 0
671
684
  }, {
@@ -683,44 +696,42 @@ function Arrow(props) {
683
696
  }, {
684
697
  x: w,
685
698
  y: 0
686
- }], cmds = getRoundedCommands(points);
687
- t3 = compileCommands(cmds);
688
- const path = t3, strokePath = `${path}`, fillPath = `${path} M ${w} -1 M 0 -1 Z`;
689
- let t4;
690
- $[7] === Symbol.for("react.memo_cache_sentinel") ? (t4 = _arrow(), $[7] = t4) : t4 = $[7];
691
- const t5 = `${w}px`;
699
+ }], cmds = getRoundedCommands(points), path = compileCommands(cmds), strokePath = `${path}`, fillPath = `${path} M ${w} -1 M 0 -1 Z`;
700
+ let t3;
701
+ $[7] === Symbol.for("react.memo_cache_sentinel") ? (t3 = _arrow(), $[7] = t3) : t3 = $[7];
702
+ const t4 = `${w}px`;
703
+ let t5;
704
+ $[8] !== t4 ? (t5 = assignInlineVars({
705
+ [vars.arrow.size]: t4
706
+ }), $[8] = t4, $[9] = t5) : t5 = $[9];
692
707
  let t6;
693
- $[8] !== t5 ? (t6 = assignInlineVars({
694
- [vars.arrow.size]: t5
695
- }), $[8] = t5, $[9] = t6) : t6 = $[9];
696
- let t7;
697
- $[10] !== style || $[11] !== t6 ? (t7 = {
708
+ $[10] !== style || $[11] !== t5 ? (t6 = {
698
709
  ...style,
699
- ...t6
700
- }, $[10] = style, $[11] = t6, $[12] = t7) : t7 = $[12];
701
- let t8;
702
- $[13] === Symbol.for("react.memo_cache_sentinel") ? (t8 = _arrowSvg(), $[13] = t8) : t8 = $[13];
703
- const t9 = `0 0 ${w} ${w}`;
710
+ ...t5
711
+ }, $[10] = style, $[11] = t5, $[12] = t6) : t6 = $[12];
712
+ let t7;
713
+ $[13] === Symbol.for("react.memo_cache_sentinel") ? (t7 = _arrowSvg(), $[13] = t7) : t7 = $[13];
714
+ const t8 = `0 0 ${w} ${w}`;
715
+ let t9;
716
+ $[14] === Symbol.for("react.memo_cache_sentinel") ? (t9 = _arrowStrokeMask(), $[14] = t9) : t9 = $[14];
704
717
  let t10;
705
- $[14] === Symbol.for("react.memo_cache_sentinel") ? (t10 = _arrowStrokeMask(), $[14] = t10) : t10 = $[14];
718
+ $[15] !== w ? (t10 = /* @__PURE__ */ jsx("mask", { id: "stroke-mask", children: /* @__PURE__ */ jsx("rect", { className: t9, x: 0, width: w, height: w, fill: "white" }) }), $[15] = w, $[16] = t10) : t10 = $[16];
706
719
  let t11;
707
- $[15] !== w ? (t11 = /* @__PURE__ */ jsx("mask", { id: "stroke-mask", children: /* @__PURE__ */ jsx("rect", { className: t10, x: 0, width: w, height: w, fill: "white" }) }), $[15] = w, $[16] = t11) : t11 = $[16];
720
+ $[17] === Symbol.for("react.memo_cache_sentinel") ? (t11 = _arrowStroke(), $[17] = t11) : t11 = $[17];
708
721
  let t12;
709
- $[17] === Symbol.for("react.memo_cache_sentinel") ? (t12 = _arrowStroke(), $[17] = t12) : t12 = $[17];
722
+ $[18] !== strokePath ? (t12 = /* @__PURE__ */ jsx("path", { className: t11, d: strokePath, mask: "url(#stroke-mask)" }), $[18] = strokePath, $[19] = t12) : t12 = $[19];
710
723
  let t13;
711
- $[18] !== strokePath ? (t13 = /* @__PURE__ */ jsx("path", { className: t12, d: strokePath, mask: "url(#stroke-mask)" }), $[18] = strokePath, $[19] = t13) : t13 = $[19];
724
+ $[20] === Symbol.for("react.memo_cache_sentinel") ? (t13 = _arrowShape(), $[20] = t13) : t13 = $[20];
712
725
  let t14;
713
- $[20] === Symbol.for("react.memo_cache_sentinel") ? (t14 = _arrowShape(), $[20] = t14) : t14 = $[20];
726
+ $[21] !== fillPath ? (t14 = /* @__PURE__ */ jsx("path", { className: t13, d: fillPath }), $[21] = fillPath, $[22] = t14) : t14 = $[22];
714
727
  let t15;
715
- $[21] !== fillPath ? (t15 = /* @__PURE__ */ jsx("path", { className: t14, d: fillPath }), $[21] = fillPath, $[22] = t15) : t15 = $[22];
728
+ $[23] !== t10 || $[24] !== t12 || $[25] !== t14 || $[26] !== t8 || $[27] !== w ? (t15 = /* @__PURE__ */ jsxs("svg", { className: t7, width: w, height: w, viewBox: t8, children: [
729
+ t10,
730
+ t12,
731
+ t14
732
+ ] }), $[23] = t10, $[24] = t12, $[25] = t14, $[26] = t8, $[27] = w, $[28] = t15) : t15 = $[28];
716
733
  let t16;
717
- $[23] !== t11 || $[24] !== t13 || $[25] !== t15 || $[26] !== t9 || $[27] !== w ? (t16 = /* @__PURE__ */ jsxs("svg", { className: t8, width: w, height: w, viewBox: t9, children: [
718
- t11,
719
- t13,
720
- t15
721
- ] }), $[23] = t11, $[24] = t13, $[25] = t15, $[26] = t9, $[27] = w, $[28] = t16) : t16 = $[28];
722
- let t17;
723
- return $[29] !== Element2 || $[30] !== rest || $[31] !== t16 || $[32] !== t7 ? (t17 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t4, style: t7, children: t16 }), $[29] = Element2, $[30] = rest, $[31] = t16, $[32] = t7, $[33] = t17) : t17 = $[33], t17;
734
+ return $[29] !== Element2 || $[30] !== rest || $[31] !== t15 || $[32] !== t6 ? (t16 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t3, style: t6, children: t15 }), $[29] = Element2, $[30] = rest, $[31] = t15, $[32] = t6, $[33] = t16) : t16 = $[33], t16;
724
735
  }
725
736
  const DEFAULT_FLEX_ELEMENT = "div";
726
737
  function Flex(props) {
@@ -871,8 +882,8 @@ function getServerSnapshot() {
871
882
  }
872
883
  function useMediaIndex() {
873
884
  const $ = c(1);
874
- let t0, t1;
875
- $[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = _createMediaStore(), $[0] = t1) : t1 = $[0], t0 = t1;
885
+ let t0;
886
+ $[0] === Symbol.for("react.memo_cache_sentinel") ? (t0 = _createMediaStore(), $[0] = t0) : t0 = $[0];
876
887
  const store = t0;
877
888
  return useSyncExternalStore(store.subscribe, store.getSnapshot, getServerSnapshot);
878
889
  }
@@ -908,18 +919,18 @@ function LayerProvider(props) {
908
919
  const registerChild = t3;
909
920
  let t4, t5;
910
921
  $[6] !== level || $[7] !== parentRegisterChild ? (t4 = () => parentRegisterChild?.(level), t5 = [level, parentRegisterChild], $[6] = level, $[7] = parentRegisterChild, $[8] = t4, $[9] = t5) : (t4 = $[8], t5 = $[9]), useEffect(t4, t5);
911
- let t6, t7;
912
- $[10] !== isTopLayer || $[11] !== level || $[12] !== registerChild || $[13] !== size2 || $[14] !== zIndex ? (t7 = {
922
+ let t6;
923
+ $[10] !== isTopLayer || $[11] !== level || $[12] !== registerChild || $[13] !== size2 || $[14] !== zIndex ? (t6 = {
913
924
  version: 0,
914
925
  isTopLayer,
915
926
  level,
916
927
  registerChild,
917
928
  size: size2,
918
929
  zIndex
919
- }, $[10] = isTopLayer, $[11] = level, $[12] = registerChild, $[13] = size2, $[14] = zIndex, $[15] = t7) : t7 = $[15], t6 = t7;
930
+ }, $[10] = isTopLayer, $[11] = level, $[12] = registerChild, $[13] = size2, $[14] = zIndex, $[15] = t6) : t6 = $[15];
920
931
  const value = t6;
921
- let t8;
922
- return $[16] !== children || $[17] !== value ? (t8 = /* @__PURE__ */ jsx(LayerContext.Provider, { value, children }), $[16] = children, $[17] = value, $[18] = t8) : t8 = $[18], t8;
932
+ let t7;
933
+ return $[16] !== children || $[17] !== value ? (t7 = /* @__PURE__ */ jsx(LayerContext.Provider, { value, children }), $[16] = children, $[17] = value, $[18] = t7) : t7 = $[18], t7;
923
934
  }
924
935
  function _temp2$2(v_0) {
925
936
  return v_0 - 1;
@@ -970,52 +981,45 @@ function PopoverLayer(props) {
970
981
  y: yProp,
971
982
  ...rest
972
983
  } = props, $[0] = props, $[1] = animate, $[2] = arrow2, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = marginsProp, $[8] = maxWidth, $[9] = originX, $[10] = originY, $[11] = overflow, $[12] = padding, $[13] = placement, $[14] = radius, $[15] = referenceWidth, $[16] = rest, $[17] = shadow, $[18] = strategy, $[19] = style, $[20] = t0, $[21] = xProp, $[22] = yProp) : (animate = $[1], arrow2 = $[2], arrowRef = $[3], arrowX = $[4], arrowY = $[5], children = $[6], marginsProp = $[7], maxWidth = $[8], originX = $[9], originY = $[10], overflow = $[11], padding = $[12], placement = $[13], radius = $[14], referenceWidth = $[15], rest = $[16], shadow = $[17], strategy = $[18], style = $[19], t0 = $[20], xProp = $[21], yProp = $[22]);
973
- const tone = t0 === void 0 ? "inherit" : t0;
974
- let t1;
975
- t1 = marginsProp || DEFAULT_POPOVER_MARGINS;
976
- const margins = t1, x = (xProp ?? 0) + margins[3], y = (yProp ?? 0) + margins[0];
984
+ const tone = t0 === void 0 ? "inherit" : t0, margins = marginsProp || DEFAULT_POPOVER_MARGINS, x = (xProp ?? 0) + margins[3], y = (yProp ?? 0) + margins[0], t1 = animate ? "transform" : void 0;
977
985
  let t2;
978
- const t3 = animate ? "transform" : void 0;
979
- let t4;
980
- $[23] !== originX || $[24] !== originY || $[25] !== referenceWidth || $[26] !== style || $[27] !== t3 || $[28] !== x || $[29] !== y ? (t4 = {
986
+ $[23] !== originX || $[24] !== originY || $[25] !== referenceWidth || $[26] !== style || $[27] !== t1 || $[28] !== x || $[29] !== y ? (t2 = {
981
987
  left: x,
982
988
  originX,
983
989
  originY,
984
990
  top: y,
985
991
  width: referenceWidth,
986
- willChange: t3,
992
+ willChange: t1,
987
993
  ...style
988
- }, $[23] = originX, $[24] = originY, $[25] = referenceWidth, $[26] = style, $[27] = t3, $[28] = x, $[29] = y, $[30] = t4) : t4 = $[30], t2 = t4;
989
- const rootStyle = t2;
994
+ }, $[23] = originX, $[24] = originY, $[25] = referenceWidth, $[26] = style, $[27] = t1, $[28] = x, $[29] = y, $[30] = t2) : t2 = $[30];
995
+ const rootStyle = t2, t3 = arrowX !== null ? arrowX : void 0, t4 = arrowY !== null ? arrowY : void 0;
990
996
  let t5;
991
- const t6 = arrowX !== null ? arrowX : void 0, t7 = arrowY !== null ? arrowY : void 0;
992
- let t8;
993
- $[31] !== t6 || $[32] !== t7 ? (t8 = {
994
- left: t6,
995
- top: t7,
997
+ $[31] !== t3 || $[32] !== t4 ? (t5 = {
998
+ left: t3,
999
+ top: t4,
996
1000
  right: void 0,
997
1001
  bottom: void 0
998
- }, $[31] = t6, $[32] = t7, $[33] = t8) : t8 = $[33], t5 = t8;
1002
+ }, $[31] = t3, $[32] = t4, $[33] = t5) : t5 = $[33];
999
1003
  const arrowStyle = t5;
1004
+ let t6;
1005
+ $[34] === Symbol.for("react.memo_cache_sentinel") ? (t6 = popoverCard(), $[34] = t6) : t6 = $[34];
1006
+ let t7;
1007
+ $[35] !== animate ? (t7 = animate ? ["hidden", "initial"] : void 0, $[35] = animate, $[36] = t7) : t7 = $[36];
1008
+ let t8;
1009
+ $[37] !== animate ? (t8 = animate ? ["visible", "scaleIn"] : void 0, $[37] = animate, $[38] = t8) : t8 = $[38];
1000
1010
  let t9;
1001
- $[34] === Symbol.for("react.memo_cache_sentinel") ? (t9 = popoverCard(), $[34] = t9) : t9 = $[34];
1011
+ $[39] !== animate ? (t9 = animate ? ["hidden", "scaleOut"] : void 0, $[39] = animate, $[40] = t9) : t9 = $[40];
1002
1012
  let t10;
1003
- $[35] !== animate ? (t10 = animate ? ["hidden", "initial"] : void 0, $[35] = animate, $[36] = t10) : t10 = $[36];
1013
+ $[41] !== children || $[42] !== padding ? (t10 = /* @__PURE__ */ jsx(Flex, { direction: "column", flex: 1, padding, children }), $[41] = children, $[42] = padding, $[43] = t10) : t10 = $[43];
1004
1014
  let t11;
1005
- $[37] !== animate ? (t11 = animate ? ["visible", "scaleIn"] : void 0, $[37] = animate, $[38] = t11) : t11 = $[38];
1015
+ $[44] !== maxWidth || $[45] !== overflow || $[46] !== t10 ? (t11 = /* @__PURE__ */ jsx(Flex, { "data-ui": "Popover__wrapper", direction: "column", flex: 1, maxWidth, overflow, children: t10 }), $[44] = maxWidth, $[45] = overflow, $[46] = t10, $[47] = t11) : t11 = $[47];
1006
1016
  let t12;
1007
- $[39] !== animate ? (t12 = animate ? ["hidden", "scaleOut"] : void 0, $[39] = animate, $[40] = t12) : t12 = $[40];
1017
+ $[48] !== arrow2 || $[49] !== arrowRef || $[50] !== arrowStyle ? (t12 = arrow2 && /* @__PURE__ */ jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_POPOVER_ARROW_WIDTH, height: DEFAULT_POPOVER_ARROW_HEIGHT, radius: DEFAULT_POPOVER_ARROW_RADIUS }), $[48] = arrow2, $[49] = arrowRef, $[50] = arrowStyle, $[51] = t12) : t12 = $[51];
1008
1018
  let t13;
1009
- $[41] !== children || $[42] !== padding ? (t13 = /* @__PURE__ */ jsx(Flex, { direction: "column", flex: 1, padding, children }), $[41] = children, $[42] = padding, $[43] = t13) : t13 = $[43];
1010
- let t14;
1011
- $[44] !== maxWidth || $[45] !== overflow || $[46] !== t13 ? (t14 = /* @__PURE__ */ jsx(Flex, { "data-ui": "Popover__wrapper", direction: "column", flex: 1, maxWidth, overflow, children: t13 }), $[44] = maxWidth, $[45] = overflow, $[46] = t13, $[47] = t14) : t14 = $[47];
1012
- let t15;
1013
- $[48] !== arrow2 || $[49] !== arrowRef || $[50] !== arrowStyle ? (t15 = arrow2 && /* @__PURE__ */ jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_POPOVER_ARROW_WIDTH, height: DEFAULT_POPOVER_ARROW_HEIGHT, radius: DEFAULT_POPOVER_ARROW_RADIUS }), $[48] = arrow2, $[49] = arrowRef, $[50] = arrowStyle, $[51] = t15) : t15 = $[51];
1014
- let t16;
1015
- return $[52] !== placement || $[53] !== radius || $[54] !== rest || $[55] !== rootStyle || $[56] !== shadow || $[57] !== strategy || $[58] !== t10 || $[59] !== t11 || $[60] !== t12 || $[61] !== t14 || $[62] !== t15 || $[63] !== tone ? (t16 = /* @__PURE__ */ jsxs(Layer, { className: t9, "data-ui": "Popover", ...rest, as: motion.div, "data-context-tone": tone, "data-placement": placement, flexDirection: "column", display: "flex", position: strategy, radius, shadow, sizing: "border", style: rootStyle, tone, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t10, animate: t11, exit: t12, children: [
1016
- t14,
1017
- t15
1018
- ] }), $[52] = placement, $[53] = radius, $[54] = rest, $[55] = rootStyle, $[56] = shadow, $[57] = strategy, $[58] = t10, $[59] = t11, $[60] = t12, $[61] = t14, $[62] = t15, $[63] = tone, $[64] = t16) : t16 = $[64], t16;
1019
+ return $[52] !== placement || $[53] !== radius || $[54] !== rest || $[55] !== rootStyle || $[56] !== shadow || $[57] !== strategy || $[58] !== t11 || $[59] !== t12 || $[60] !== t7 || $[61] !== t8 || $[62] !== t9 || $[63] !== tone ? (t13 = /* @__PURE__ */ jsxs(Layer, { className: t6, "data-ui": "Popover", ...rest, as: motion.div, "data-context-tone": tone, "data-placement": placement, flexDirection: "column", display: "flex", position: strategy, radius, shadow, sizing: "border", style: rootStyle, tone, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t7, animate: t8, exit: t9, children: [
1020
+ t11,
1021
+ t12
1022
+ ] }), $[52] = placement, $[53] = radius, $[54] = rest, $[55] = rootStyle, $[56] = shadow, $[57] = strategy, $[58] = t11, $[59] = t12, $[60] = t7, $[61] = t8, $[62] = t9, $[63] = tone, $[64] = t13) : t13 = $[64], t13;
1019
1023
  }
1020
1024
  const DEFAULT_POPOVER_ELEMENT = "div";
1021
1025
  function ViewportOverlay() {
@@ -1185,18 +1189,16 @@ function Stack(props) {
1185
1189
  return $[7] !== as || $[8] !== gap || $[9] !== rest || $[10] !== t2 ? (t3 = /* @__PURE__ */ jsx(Box, { "data-ui": "Stack", ...rest, as, gridAutoRows: "min", className: t2, display: "grid", gap }), $[7] = as, $[8] = gap, $[9] = rest, $[10] = t2, $[11] = t3) : t3 = $[11], t3;
1186
1190
  }
1187
1191
  function useCustomValidity(ref, customValidity) {
1188
- const $ = c(6);
1189
- let t0;
1190
- $[0] !== customValidity || $[1] !== ref.current ? (t0 = () => {
1192
+ const $ = c(4);
1193
+ let t0, t1;
1194
+ $[0] !== customValidity || $[1] !== ref ? (t0 = () => {
1191
1195
  ref.current?.setCustomValidity(customValidity || "");
1192
- }, $[0] = customValidity, $[1] = ref.current, $[2] = t0) : t0 = $[2];
1193
- let t1;
1194
- $[3] !== customValidity || $[4] !== ref ? (t1 = [customValidity, ref], $[3] = customValidity, $[4] = ref, $[5] = t1) : t1 = $[5], useEffect(t0, t1);
1196
+ }, t1 = [customValidity, ref], $[0] = customValidity, $[1] = ref, $[2] = t0, $[3] = t1) : (t0 = $[2], t1 = $[3]), useEffect(t0, t1);
1195
1197
  }
1196
1198
  const DEFAULT_TEXT_INPUT_ELEMENT = "input";
1197
1199
  function TextInput(props) {
1198
- const $ = c(88), t0 = props;
1199
- let IconComponent, IconRightComponent, __unstable_disableFocusRing, className, clearButton, customValidity, forwardedRef, onClear, prefix, readOnly, rest, suffix, t1, t2, t3, t4, t5, t6, t7, t8, width;
1200
+ const $ = c(90), t0 = props;
1201
+ let IconComponent, IconRightComponent, __unstable_disableFocusRing, className, clearButton, customValidity, flex, forwardedRef, onClear, prefix, readOnly, rest, suffix, t1, t2, t3, t4, t5, t6, t7, t8, width;
1200
1202
  if ($[0] !== t0) {
1201
1203
  const {
1202
1204
  __unstable_disableFocusRing: t92,
@@ -1205,99 +1207,98 @@ function TextInput(props) {
1205
1207
  className: t122,
1206
1208
  clearButton: t132,
1207
1209
  disabled: t142,
1208
- fontSize: t152,
1209
- gap: t162,
1210
- icon: t172,
1211
- iconRight: t182,
1212
- onClear: t192,
1213
- padding: t202,
1214
- prefix: t212,
1215
- radius: t222,
1216
- readOnly: t232,
1217
- ref: t242,
1218
- suffix: t252,
1219
- customValidity: t262,
1220
- type: t272,
1210
+ flex: t152,
1211
+ fontSize: t162,
1212
+ gap: t172,
1213
+ icon: t182,
1214
+ iconRight: t192,
1215
+ onClear: t202,
1216
+ padding: t212,
1217
+ prefix: t222,
1218
+ radius: t232,
1219
+ readOnly: t242,
1220
+ ref: t252,
1221
+ suffix: t262,
1222
+ customValidity: t272,
1223
+ type: t282,
1221
1224
  weight: _width,
1222
- width: t282,
1223
- ...t292
1225
+ width: t292,
1226
+ ...t302
1224
1227
  } = t0;
1225
- __unstable_disableFocusRing = t92, t1 = t102, t2 = t112, className = t122, clearButton = t132, t3 = t142, t4 = t152, t5 = t162, IconComponent = t172, IconRightComponent = t182, onClear = t192, t6 = t202, prefix = t212, t7 = t222, readOnly = t232, forwardedRef = t242, suffix = t252, customValidity = t262, t8 = t272, width = t282, rest = t292, $[0] = t0, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = __unstable_disableFocusRing, $[4] = className, $[5] = clearButton, $[6] = customValidity, $[7] = forwardedRef, $[8] = onClear, $[9] = prefix, $[10] = readOnly, $[11] = rest, $[12] = suffix, $[13] = t1, $[14] = t2, $[15] = t3, $[16] = t4, $[17] = t5, $[18] = t6, $[19] = t7, $[20] = t8, $[21] = width;
1228
+ __unstable_disableFocusRing = t92, t1 = t102, t2 = t112, className = t122, clearButton = t132, t3 = t142, flex = t152, t4 = t162, t5 = t172, IconComponent = t182, IconRightComponent = t192, onClear = t202, t6 = t212, prefix = t222, t7 = t232, readOnly = t242, forwardedRef = t252, suffix = t262, customValidity = t272, t8 = t282, width = t292, rest = t302, $[0] = t0, $[1] = IconComponent, $[2] = IconRightComponent, $[3] = __unstable_disableFocusRing, $[4] = className, $[5] = clearButton, $[6] = customValidity, $[7] = flex, $[8] = forwardedRef, $[9] = onClear, $[10] = prefix, $[11] = readOnly, $[12] = rest, $[13] = suffix, $[14] = t1, $[15] = t2, $[16] = t3, $[17] = t4, $[18] = t5, $[19] = t6, $[20] = t7, $[21] = t8, $[22] = width;
1226
1229
  } else
1227
- IconComponent = $[1], IconRightComponent = $[2], __unstable_disableFocusRing = $[3], className = $[4], clearButton = $[5], customValidity = $[6], forwardedRef = $[7], onClear = $[8], prefix = $[9], readOnly = $[10], rest = $[11], suffix = $[12], t1 = $[13], t2 = $[14], t3 = $[15], t4 = $[16], t5 = $[17], t6 = $[18], t7 = $[19], t8 = $[20], width = $[21];
1230
+ IconComponent = $[1], IconRightComponent = $[2], __unstable_disableFocusRing = $[3], className = $[4], clearButton = $[5], customValidity = $[6], flex = $[7], forwardedRef = $[8], onClear = $[9], prefix = $[10], readOnly = $[11], rest = $[12], suffix = $[13], t1 = $[14], t2 = $[15], t3 = $[16], t4 = $[17], t5 = $[18], t6 = $[19], t7 = $[20], t8 = $[21], width = $[22];
1228
1231
  const Element2 = t1 === void 0 ? DEFAULT_TEXT_INPUT_ELEMENT : t1, border = t2 === void 0 ? !0 : t2, disabled = t3 === void 0 ? !1 : t3, fontSize = t4 === void 0 ? 2 : t4, gap = t5 === void 0 ? 3 : t5, padding = t6 === void 0 ? 3 : t6, radius = t7 === void 0 ? 2 : t7, type = t8 === void 0 ? "text" : t8, ref = useRef(null), responsivePadding = useResponsiveProp(padding), withClearButton = !!clearButton;
1229
1232
  let t9;
1230
- $[22] === Symbol.for("react.memo_cache_sentinel") ? (t9 = () => ref.current, $[22] = t9) : t9 = $[22], useImperativeHandle(forwardedRef, t9), useCustomValidity(ref, customValidity);
1233
+ $[23] === Symbol.for("react.memo_cache_sentinel") ? (t9 = () => ref.current, $[23] = t9) : t9 = $[23], useImperativeHandle(forwardedRef, t9), useCustomValidity(ref, customValidity);
1231
1234
  const handleClearMouseDown = _temp$8;
1232
1235
  let t10;
1233
- $[23] !== onClear ? (t10 = (event_0) => {
1236
+ $[24] !== onClear ? (t10 = (event_0) => {
1234
1237
  event_0.preventDefault(), event_0.stopPropagation(), onClear && onClear(), ref.current?.focus();
1235
- }, $[23] = onClear, $[24] = t10) : t10 = $[24];
1238
+ }, $[24] = onClear, $[25] = t10) : t10 = $[25];
1236
1239
  const handleClearClick = t10;
1237
- let t11, t12;
1238
- $[25] !== responsivePadding ? (t12 = Object.fromEntries(Object.entries(responsivePadding).map(_temp2$1)), $[25] = responsivePadding, $[26] = t12) : t12 = $[26], t11 = t12;
1240
+ let t11;
1241
+ $[26] !== responsivePadding ? (t11 = Object.fromEntries(Object.entries(responsivePadding).map(_temp2$1)), $[26] = responsivePadding, $[27] = t11) : t11 = $[27];
1239
1242
  const clearButtonBoxPadding = t11;
1240
- let t13, t14;
1241
- $[27] !== responsivePadding ? (t14 = Object.fromEntries(Object.entries(responsivePadding).map(_temp3)), $[27] = responsivePadding, $[28] = t14) : t14 = $[28], t13 = t14;
1242
- const clearButtonPadding = t13;
1243
- let t15;
1244
- t15 = isRecord(clearButton) ? clearButton : EMPTY_RECORD;
1245
- const clearButtonProps = t15;
1246
- let t16;
1247
- $[29] !== border || $[30] !== className || $[31] !== fontSize || $[32] !== gap || $[33] !== padding || $[34] !== radius || $[35] !== width ? (t16 = textInput({
1243
+ let t12;
1244
+ $[28] !== responsivePadding ? (t12 = Object.fromEntries(Object.entries(responsivePadding).map(_temp3)), $[28] = responsivePadding, $[29] = t12) : t12 = $[29];
1245
+ const clearButtonPadding = t12, clearButtonProps = isRecord(clearButton) ? clearButton : EMPTY_RECORD;
1246
+ let t13;
1247
+ $[30] !== border || $[31] !== className || $[32] !== flex || $[33] !== fontSize || $[34] !== gap || $[35] !== padding || $[36] !== radius || $[37] !== width ? (t13 = textInput({
1248
1248
  className,
1249
1249
  border,
1250
+ flex,
1250
1251
  fontSize,
1251
1252
  padding,
1252
1253
  radius,
1253
1254
  gap,
1254
1255
  width
1255
- }), $[29] = border, $[30] = className, $[31] = fontSize, $[32] = gap, $[33] = padding, $[34] = radius, $[35] = width, $[36] = t16) : t16 = $[36];
1256
- const t17 = IconComponent ? "" : void 0, t18 = IconRightComponent ? "" : void 0, t19 = customValidity ? "" : void 0, t20 = prefix ? "" : void 0, t21 = !disabled && readOnly ? "" : void 0, t22 = suffix ? "" : void 0;
1257
- let t23;
1258
- $[37] !== prefix ? (t23 = prefix && /* @__PURE__ */ jsx(Box, { className: textInputPrefix(), sizing: "border", children: /* @__PURE__ */ jsx("span", { children: prefix }) }), $[37] = prefix, $[38] = t23) : t23 = $[38];
1256
+ }), $[30] = border, $[31] = className, $[32] = flex, $[33] = fontSize, $[34] = gap, $[35] = padding, $[36] = radius, $[37] = width, $[38] = t13) : t13 = $[38];
1257
+ const t14 = IconComponent ? "" : void 0, t15 = IconRightComponent ? "" : void 0, t16 = customValidity ? "" : void 0, t17 = prefix ? "" : void 0, t18 = !disabled && readOnly ? "" : void 0, t19 = suffix ? "" : void 0;
1258
+ let t20;
1259
+ $[39] !== prefix ? (t20 = prefix && /* @__PURE__ */ jsx("span", { className: textInputPrefix(), children: /* @__PURE__ */ jsx("span", { children: prefix }) }), $[39] = prefix, $[40] = t20) : t20 = $[40];
1260
+ let t21;
1261
+ $[41] === Symbol.for("react.memo_cache_sentinel") ? (t21 = textInputElement(), $[41] = t21) : t21 = $[41];
1262
+ let t22;
1263
+ $[42] === Symbol.for("react.memo_cache_sentinel") ? (t22 = _inputElement(), $[42] = t22) : t22 = $[42];
1264
+ const t23 = __unstable_disableFocusRing ? "" : void 0;
1259
1265
  let t24;
1260
- $[39] === Symbol.for("react.memo_cache_sentinel") ? (t24 = textInputElement(), $[39] = t24) : t24 = $[39];
1266
+ $[43] !== Element2 || $[44] !== disabled || $[45] !== readOnly || $[46] !== rest || $[47] !== t23 || $[48] !== type ? (t24 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t22, "data-no-focus-ring": t23, disabled, readOnly, ref, type }), $[43] = Element2, $[44] = disabled, $[45] = readOnly, $[46] = rest, $[47] = t23, $[48] = type, $[49] = t24) : t24 = $[49];
1261
1267
  let t25;
1262
- $[40] === Symbol.for("react.memo_cache_sentinel") ? (t25 = _inputElement(), $[40] = t25) : t25 = $[40];
1263
- const t26 = __unstable_disableFocusRing ? "" : void 0;
1264
- let t27;
1265
- $[41] !== Element2 || $[42] !== disabled || $[43] !== readOnly || $[44] !== rest || $[45] !== t26 || $[46] !== type ? (t27 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t25, "data-no-focus-ring": t26, disabled, readOnly, ref, type }), $[41] = Element2, $[42] = disabled, $[43] = readOnly, $[44] = rest, $[45] = t26, $[46] = type, $[47] = t27) : t27 = $[47];
1266
- let t28;
1267
- $[48] === Symbol.for("react.memo_cache_sentinel") ? (t28 = _inputPresentation(), $[48] = t28) : t28 = $[48];
1268
- let t29;
1269
- $[49] !== IconComponent || $[50] !== fontSize || $[51] !== padding ? (t29 = IconComponent && /* @__PURE__ */ jsx(Box, { padding, position: "absolute", insetTop: 0, insetLeft: 0, children: /* @__PURE__ */ jsxs(Text, { size: fontSize, children: [
1268
+ $[50] === Symbol.for("react.memo_cache_sentinel") ? (t25 = _inputPresentation(), $[50] = t25) : t25 = $[50];
1269
+ let t26;
1270
+ $[51] !== IconComponent || $[52] !== fontSize || $[53] !== padding ? (t26 = IconComponent && /* @__PURE__ */ jsx(Box, { as: "span", padding, position: "absolute", insetTop: 0, insetLeft: 0, children: /* @__PURE__ */ jsxs(Text, { as: "span", size: fontSize, children: [
1270
1271
  isValidElement(IconComponent) && IconComponent,
1271
1272
  isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
1272
- ] }) }), $[49] = IconComponent, $[50] = fontSize, $[51] = padding, $[52] = t29) : t29 = $[52];
1273
- let t30;
1274
- $[53] !== IconRightComponent || $[54] !== fontSize || $[55] !== padding || $[56] !== withClearButton ? (t30 = !withClearButton && IconRightComponent && /* @__PURE__ */ jsx(Box, { padding, position: "absolute", insetTop: 0, insetRight: 0, children: /* @__PURE__ */ jsxs(Text, { size: fontSize, children: [
1273
+ ] }) }), $[51] = IconComponent, $[52] = fontSize, $[53] = padding, $[54] = t26) : t26 = $[54];
1274
+ let t27;
1275
+ $[55] !== IconRightComponent || $[56] !== fontSize || $[57] !== padding || $[58] !== withClearButton ? (t27 = !withClearButton && IconRightComponent && /* @__PURE__ */ jsx(Box, { as: "span", padding, position: "absolute", insetTop: 0, insetRight: 0, children: /* @__PURE__ */ jsxs(Text, { as: "span", size: fontSize, children: [
1275
1276
  isValidElement(IconRightComponent) && IconRightComponent,
1276
1277
  isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
1277
- ] }) }), $[53] = IconRightComponent, $[54] = fontSize, $[55] = padding, $[56] = withClearButton, $[57] = t30) : t30 = $[57];
1278
+ ] }) }), $[55] = IconRightComponent, $[56] = fontSize, $[57] = padding, $[58] = withClearButton, $[59] = t27) : t27 = $[59];
1279
+ let t28;
1280
+ $[60] !== t26 || $[61] !== t27 ? (t28 = /* @__PURE__ */ jsxs("span", { className: t25, children: [
1281
+ t26,
1282
+ t27
1283
+ ] }), $[60] = t26, $[61] = t27, $[62] = t28) : t28 = $[62];
1284
+ let t29;
1285
+ $[63] !== clearButton || $[64] !== clearButtonBoxPadding || $[65] !== clearButtonPadding || $[66] !== clearButtonProps || $[67] !== disabled || $[68] !== fontSize || $[69] !== handleClearClick || $[70] !== radius || $[71] !== readOnly ? (t29 = !disabled && !readOnly && clearButton && /* @__PURE__ */ jsx(Box, { as: "span", insetTop: 0, insetRight: 0, padding: clearButtonBoxPadding, position: "absolute", style: {
1286
+ zIndex: 2
1287
+ }, children: /* @__PURE__ */ jsx(Button, { "aria-label": "Clear", "data-qa": "clear-button", display: "block", fontSize, icon: CloseIcon, mode: "bleed", padding: clearButtonPadding, radius, ...clearButtonProps, onClick: handleClearClick, onMouseDown: handleClearMouseDown }) }), $[63] = clearButton, $[64] = clearButtonBoxPadding, $[65] = clearButtonPadding, $[66] = clearButtonProps, $[67] = disabled, $[68] = fontSize, $[69] = handleClearClick, $[70] = radius, $[71] = readOnly, $[72] = t29) : t29 = $[72];
1288
+ let t30;
1289
+ $[73] !== t24 || $[74] !== t28 || $[75] !== t29 ? (t30 = /* @__PURE__ */ jsxs("span", { className: t21, children: [
1290
+ t24,
1291
+ t28,
1292
+ t29
1293
+ ] }), $[73] = t24, $[74] = t28, $[75] = t29, $[76] = t30) : t30 = $[76];
1278
1294
  let t31;
1279
- $[58] !== t29 || $[59] !== t30 ? (t31 = /* @__PURE__ */ jsxs(Box, { className: t28, position: "absolute", children: [
1280
- t29,
1281
- t30
1282
- ] }), $[58] = t29, $[59] = t30, $[60] = t31) : t31 = $[60];
1295
+ $[77] !== suffix ? (t31 = suffix && /* @__PURE__ */ jsx("span", { className: textInputSuffix(), children: /* @__PURE__ */ jsx("span", { children: suffix }) }), $[77] = suffix, $[78] = t31) : t31 = $[78];
1283
1296
  let t32;
1284
- $[61] !== clearButton || $[62] !== clearButtonBoxPadding || $[63] !== clearButtonPadding || $[64] !== clearButtonProps || $[65] !== disabled || $[66] !== fontSize || $[67] !== handleClearClick || $[68] !== radius || $[69] !== readOnly ? (t32 = !disabled && !readOnly && clearButton && /* @__PURE__ */ jsx(Box, { insetTop: 0, insetRight: 0, padding: clearButtonBoxPadding, position: "absolute", style: {
1285
- zIndex: 2
1286
- }, children: /* @__PURE__ */ jsx(Button, { "aria-label": "Clear", "data-qa": "clear-button", display: "block", fontSize, icon: CloseIcon, mode: "bleed", padding: clearButtonPadding, radius, ...clearButtonProps, onClick: handleClearClick, onMouseDown: handleClearMouseDown }) }), $[61] = clearButton, $[62] = clearButtonBoxPadding, $[63] = clearButtonPadding, $[64] = clearButtonProps, $[65] = disabled, $[66] = fontSize, $[67] = handleClearClick, $[68] = radius, $[69] = readOnly, $[70] = t32) : t32 = $[70];
1287
- let t33;
1288
- $[71] !== t27 || $[72] !== t31 || $[73] !== t32 ? (t33 = /* @__PURE__ */ jsxs(Box, { className: t24, flex: 1, position: "relative", children: [
1289
- t27,
1290
- t31,
1291
- t32
1292
- ] }), $[71] = t27, $[72] = t31, $[73] = t32, $[74] = t33) : t33 = $[74];
1293
- let t34;
1294
- $[75] !== suffix ? (t34 = suffix && /* @__PURE__ */ jsx(Box, { className: textInputSuffix(), sizing: "border", children: /* @__PURE__ */ jsx("span", { children: suffix }) }), $[75] = suffix, $[76] = t34) : t34 = $[76];
1295
- let t35;
1296
- return $[77] !== t16 || $[78] !== t17 || $[79] !== t18 || $[80] !== t19 || $[81] !== t20 || $[82] !== t21 || $[83] !== t22 || $[84] !== t23 || $[85] !== t33 || $[86] !== t34 ? (t35 = /* @__PURE__ */ jsxs(Box, { alignItems: "center", className: t16, "data-icon-left": t17, "data-icon-right": t18, "data-invalid": t19, "data-prefix": t20, "data-read-only": t21, "data-suffix": t22, "data-ui": "TextInput", display: "flex", children: [
1297
- t23,
1298
- t33,
1299
- t34
1300
- ] }), $[77] = t16, $[78] = t17, $[79] = t18, $[80] = t19, $[81] = t20, $[82] = t21, $[83] = t22, $[84] = t23, $[85] = t33, $[86] = t34, $[87] = t35) : t35 = $[87], t35;
1297
+ return $[79] !== t13 || $[80] !== t14 || $[81] !== t15 || $[82] !== t16 || $[83] !== t17 || $[84] !== t18 || $[85] !== t19 || $[86] !== t20 || $[87] !== t30 || $[88] !== t31 ? (t32 = /* @__PURE__ */ jsxs("span", { className: t13, "data-icon-left": t14, "data-icon-right": t15, "data-invalid": t16, "data-prefix": t17, "data-read-only": t18, "data-suffix": t19, "data-ui": "TextInput", children: [
1298
+ t20,
1299
+ t30,
1300
+ t31
1301
+ ] }), $[79] = t13, $[80] = t14, $[81] = t15, $[82] = t16, $[83] = t17, $[84] = t18, $[85] = t19, $[86] = t20, $[87] = t30, $[88] = t31, $[89] = t32) : t32 = $[89], t32;
1301
1302
  }
1302
1303
  function _temp3(t0) {
1303
1304
  const [key_0, value_0] = t0;
@@ -1862,15 +1863,15 @@ function DialogProvider(props) {
1862
1863
  position,
1863
1864
  zOffset
1864
1865
  } = props;
1865
- let t0, t1;
1866
- $[0] !== position || $[1] !== zOffset ? (t1 = {
1866
+ let t0;
1867
+ $[0] !== position || $[1] !== zOffset ? (t0 = {
1867
1868
  version: 0,
1868
1869
  position,
1869
1870
  zOffset
1870
- }, $[0] = position, $[1] = zOffset, $[2] = t1) : t1 = $[2], t0 = t1;
1871
+ }, $[0] = position, $[1] = zOffset, $[2] = t0) : t0 = $[2];
1871
1872
  const contextValue = t0;
1872
- let t2;
1873
- return $[3] !== children || $[4] !== contextValue ? (t2 = /* @__PURE__ */ jsx(DialogContext.Provider, { value: contextValue, children }), $[3] = children, $[4] = contextValue, $[5] = t2) : t2 = $[5], t2;
1873
+ let t1;
1874
+ return $[3] !== children || $[4] !== contextValue ? (t1 = /* @__PURE__ */ jsx(DialogContext.Provider, { value: contextValue, children }), $[3] = children, $[4] = contextValue, $[5] = t1) : t1 = $[5], t1;
1874
1875
  }
1875
1876
  const DEFAULT_KBD_ELEMENT = "kbd";
1876
1877
  function KBD(props) {
@@ -2119,8 +2120,8 @@ function Menu(props) {
2119
2120
  $[28] !== isTopLayer || $[29] !== onEscape ? (t10 = (event) => {
2120
2121
  isTopLayer && event.key === "Escape" && (event.stopPropagation(), onEscape && onEscape());
2121
2122
  }, $[28] = isTopLayer, $[29] = onEscape, $[30] = t10) : t10 = $[30], useGlobalKeyDown(t10);
2122
- let t11, t12;
2123
- $[31] !== activeElement || $[32] !== activeIndex || $[33] !== handleItemMouseEnter || $[34] !== handleItemMouseLeave || $[35] !== mount || $[36] !== onClickOutside || $[37] !== onEscape || $[38] !== onItemClick || $[39] !== registerElement ? (t12 = {
2123
+ let t11;
2124
+ $[31] !== activeElement || $[32] !== activeIndex || $[33] !== handleItemMouseEnter || $[34] !== handleItemMouseLeave || $[35] !== mount || $[36] !== onClickOutside || $[37] !== onEscape || $[38] !== onItemClick || $[39] !== registerElement ? (t11 = {
2124
2125
  version: 0,
2125
2126
  activeElement,
2126
2127
  activeIndex,
@@ -2130,21 +2131,19 @@ function Menu(props) {
2130
2131
  onItemClick,
2131
2132
  onItemMouseEnter: handleItemMouseEnter,
2132
2133
  onItemMouseLeave: handleItemMouseLeave,
2133
- registerElement,
2134
- onMouseEnter: handleItemMouseEnter,
2135
- onMouseLeave: handleItemMouseLeave
2136
- }, $[31] = activeElement, $[32] = activeIndex, $[33] = handleItemMouseEnter, $[34] = handleItemMouseLeave, $[35] = mount, $[36] = onClickOutside, $[37] = onEscape, $[38] = onItemClick, $[39] = registerElement, $[40] = t12) : t12 = $[40], t11 = t12;
2134
+ registerElement
2135
+ }, $[31] = activeElement, $[32] = activeIndex, $[33] = handleItemMouseEnter, $[34] = handleItemMouseLeave, $[35] = mount, $[36] = onClickOutside, $[37] = onEscape, $[38] = onItemClick, $[39] = registerElement, $[40] = t11) : t11 = $[40];
2137
2136
  const value = t11;
2138
- let t13;
2139
- $[41] !== className ? (t13 = menu({
2137
+ let t12;
2138
+ $[41] !== className ? (t12 = menu({
2140
2139
  className
2141
- }), $[41] = className, $[42] = t13) : t13 = $[42];
2140
+ }), $[41] = className, $[42] = t12) : t12 = $[42];
2141
+ let t13;
2142
+ $[43] !== children || $[44] !== gap ? (t13 = /* @__PURE__ */ jsx(Stack, { gap, children }), $[43] = children, $[44] = gap, $[45] = t13) : t13 = $[45];
2142
2143
  let t14;
2143
- $[43] !== children || $[44] !== gap ? (t14 = /* @__PURE__ */ jsx(Stack, { gap, children }), $[43] = children, $[44] = gap, $[45] = t14) : t14 = $[45];
2144
+ $[46] !== as || $[47] !== handleKeyDown || $[48] !== handleRefChange || $[49] !== padding || $[50] !== rest || $[51] !== t12 || $[52] !== t13 ? (t14 = /* @__PURE__ */ jsx(Box, { "data-ui": "Menu", ...rest, as, className: t12, onKeyDown: handleKeyDown, overflow: "auto", outline: "none", padding, ref: handleRefChange, role: "menu", tabIndex: -1, children: t13 }), $[46] = as, $[47] = handleKeyDown, $[48] = handleRefChange, $[49] = padding, $[50] = rest, $[51] = t12, $[52] = t13, $[53] = t14) : t14 = $[53];
2144
2145
  let t15;
2145
- $[46] !== as || $[47] !== handleKeyDown || $[48] !== handleRefChange || $[49] !== padding || $[50] !== rest || $[51] !== t13 || $[52] !== t14 ? (t15 = /* @__PURE__ */ jsx(Box, { "data-ui": "Menu", ...rest, as, className: t13, onKeyDown: handleKeyDown, overflow: "auto", outline: "none", padding, ref: handleRefChange, role: "menu", tabIndex: -1, children: t14 }), $[46] = as, $[47] = handleKeyDown, $[48] = handleRefChange, $[49] = padding, $[50] = rest, $[51] = t13, $[52] = t14, $[53] = t15) : t15 = $[53];
2146
- let t16;
2147
- return $[54] !== t15 || $[55] !== value ? (t16 = /* @__PURE__ */ jsx(MenuContext.Provider, { value, children: t15 }), $[54] = t15, $[55] = value, $[56] = t16) : t16 = $[56], t16;
2146
+ return $[54] !== t14 || $[55] !== value ? (t15 = /* @__PURE__ */ jsx(MenuContext.Provider, { value, children: t14 }), $[54] = t14, $[55] = value, $[56] = t15) : t15 = $[56], t15;
2148
2147
  }
2149
2148
  function MenuButton(props) {
2150
2149
  const $ = c(57), {
@@ -2264,18 +2263,18 @@ function MenuButton(props) {
2264
2263
  const button2 = t17;
2265
2264
  let t18, t19;
2266
2265
  $[43] !== buttonElement ? (t18 = () => buttonElement, t19 = [buttonElement], $[43] = buttonElement, $[44] = t18, $[45] = t19) : (t18 = $[44], t19 = $[45]), useImperativeHandle(forwardedRef, t18, t19);
2267
- let t20, t21;
2268
- $[46] !== popover2 ? (t21 = popover2 || {}, $[46] = popover2, $[47] = t21) : t21 = $[47];
2269
- let t22;
2270
- $[48] !== t21 ? (t22 = {
2266
+ let t20;
2267
+ $[46] !== popover2 ? (t20 = popover2 || {}, $[46] = popover2, $[47] = t20) : t20 = $[47];
2268
+ let t21;
2269
+ $[48] !== t20 ? (t21 = {
2271
2270
  overflow: "auto",
2272
- ...t21
2273
- }, $[48] = t21, $[49] = t22) : t22 = $[49], t20 = t22;
2274
- const popoverProps = t20;
2271
+ ...t20
2272
+ }, $[48] = t20, $[49] = t21) : t21 = $[49];
2273
+ const popoverProps = t21;
2274
+ let t22;
2275
+ $[50] !== button2 ? (t22 = button2 || /* @__PURE__ */ jsx(Fragment, {}), $[50] = button2, $[51] = t22) : t22 = $[51];
2275
2276
  let t23;
2276
- $[50] !== button2 ? (t23 = button2 || /* @__PURE__ */ jsx(Fragment, {}), $[50] = button2, $[51] = t23) : t23 = $[51];
2277
- let t24;
2278
- return $[52] !== menu2 || $[53] !== open || $[54] !== popoverProps || $[55] !== t23 ? (t24 = /* @__PURE__ */ jsx(Popover, { "data-ui": "MenuButton__popover", ...popoverProps, content: menu2, open, children: t23 }), $[52] = menu2, $[53] = open, $[54] = popoverProps, $[55] = t23, $[56] = t24) : t24 = $[56], t24;
2277
+ return $[52] !== menu2 || $[53] !== open || $[54] !== popoverProps || $[55] !== t22 ? (t23 = /* @__PURE__ */ jsx(Popover, { "data-ui": "MenuButton__popover", ...popoverProps, content: menu2, open, children: t22 }), $[52] = menu2, $[53] = open, $[54] = popoverProps, $[55] = t22, $[56] = t23) : t23 = $[56], t23;
2279
2278
  }
2280
2279
  function _temp$6(v) {
2281
2280
  return !v;
@@ -2457,8 +2456,8 @@ function MenuItem(props) {
2457
2456
  disabled || (onClick && onClick(event), onItemClick && onItemClick(event));
2458
2457
  }, $[33] = disabled, $[34] = onClick, $[35] = onItemClick, $[36] = t11) : t11 = $[36];
2459
2458
  const handleClick = t11;
2460
- let t12, t13;
2461
- $[37] !== padding || $[38] !== paddingBottom || $[39] !== paddingLeft || $[40] !== paddingRight || $[41] !== paddingTop || $[42] !== paddingX || $[43] !== paddingY ? (t13 = {
2459
+ let t12;
2460
+ $[37] !== padding || $[38] !== paddingBottom || $[39] !== paddingLeft || $[40] !== paddingRight || $[41] !== paddingTop || $[42] !== paddingX || $[43] !== paddingY ? (t12 = {
2462
2461
  padding,
2463
2462
  paddingX,
2464
2463
  paddingY,
@@ -2466,15 +2465,15 @@ function MenuItem(props) {
2466
2465
  paddingRight,
2467
2466
  paddingBottom,
2468
2467
  paddingLeft
2469
- }, $[37] = padding, $[38] = paddingBottom, $[39] = paddingLeft, $[40] = paddingRight, $[41] = paddingTop, $[42] = paddingX, $[43] = paddingY, $[44] = t13) : t13 = $[44], t12 = t13;
2468
+ }, $[37] = padding, $[38] = paddingBottom, $[39] = paddingLeft, $[40] = paddingRight, $[41] = paddingTop, $[42] = paddingX, $[43] = paddingY, $[44] = t12) : t12 = $[44];
2470
2469
  const paddingProps = t12;
2471
- let t14;
2472
- $[45] === Symbol.for("react.memo_cache_sentinel") ? (t14 = (el) => {
2470
+ let t13;
2471
+ $[45] === Symbol.for("react.memo_cache_sentinel") ? (t13 = (el) => {
2473
2472
  ref.current = el, setRootElement(el);
2474
- }, $[45] = t14) : t14 = $[45];
2475
- const setRef = t14, t15 = pressed ? "" : void 0, t16 = active ? "" : void 0, t17 = disabled ? "" : void 0, t18 = as === "button" ? "button" : void 0;
2476
- let t19;
2477
- $[46] !== IconComponent || $[47] !== IconRightComponent || $[48] !== fontSize || $[49] !== gap || $[50] !== gapX || $[51] !== gapY || $[52] !== hotkeys || $[53] !== paddingProps || $[54] !== text2 ? (t19 = (IconComponent || text2 || IconRightComponent) && /* @__PURE__ */ jsxs(Flex, { as: "span", gap, gapX, gapY, align: "center", ...paddingProps, children: [
2473
+ }, $[45] = t13) : t13 = $[45];
2474
+ const setRef = t13, t14 = pressed ? "" : void 0, t15 = disabled ? "" : void 0, t16 = as === "button" ? "button" : void 0;
2475
+ let t17;
2476
+ $[46] !== IconComponent || $[47] !== IconRightComponent || $[48] !== fontSize || $[49] !== gap || $[50] !== gapX || $[51] !== gapY || $[52] !== hotkeys || $[53] !== paddingProps || $[54] !== text2 ? (t17 = (IconComponent || text2 || IconRightComponent) && /* @__PURE__ */ jsxs(Flex, { as: "span", gap, gapX, gapY, align: "center", ...paddingProps, children: [
2478
2477
  IconComponent && /* @__PURE__ */ jsxs(Text, { muted: !0, size: fontSize, children: [
2479
2478
  isValidElement(IconComponent) && IconComponent,
2480
2479
  isValidElementType(IconComponent) && /* @__PURE__ */ jsx(IconComponent, {})
@@ -2488,14 +2487,14 @@ function MenuItem(props) {
2488
2487
  isValidElement(IconRightComponent) && IconRightComponent,
2489
2488
  isValidElementType(IconRightComponent) && /* @__PURE__ */ jsx(IconRightComponent, {})
2490
2489
  ] })
2491
- ] }), $[46] = IconComponent, $[47] = IconRightComponent, $[48] = fontSize, $[49] = gap, $[50] = gapX, $[51] = gapY, $[52] = hotkeys, $[53] = paddingProps, $[54] = text2, $[55] = t19) : t19 = $[55];
2492
- let t20;
2493
- $[56] !== children || $[57] !== paddingProps ? (t20 = children && /* @__PURE__ */ jsx(Box, { as: "span", ...paddingProps, children }), $[56] = children, $[57] = paddingProps, $[58] = t20) : t20 = $[58];
2494
- let t21;
2495
- return $[59] !== as || $[60] !== disabled || $[61] !== handleClick || $[62] !== onItemMouseEnter || $[63] !== onItemMouseLeave || $[64] !== radius || $[65] !== rest || $[66] !== role || $[67] !== t15 || $[68] !== t16 || $[69] !== t17 || $[70] !== t18 || $[71] !== t19 || $[72] !== t20 || $[73] !== tone ? (t21 = /* @__PURE__ */ jsxs(Selectable, { "data-ui": "MenuItem", ...rest, as, "data-pressed": t15, "data-selected": t16, "data-disabled": t17, radius, disabled, onClick: handleClick, onMouseEnter: onItemMouseEnter, onMouseLeave: onItemMouseLeave, ref: setRef, role, tabIndex: -1, tone, type: t18, children: [
2496
- t19,
2497
- t20
2498
- ] }), $[59] = as, $[60] = disabled, $[61] = handleClick, $[62] = onItemMouseEnter, $[63] = onItemMouseLeave, $[64] = radius, $[65] = rest, $[66] = role, $[67] = t15, $[68] = t16, $[69] = t17, $[70] = t18, $[71] = t19, $[72] = t20, $[73] = tone, $[74] = t21) : t21 = $[74], t21;
2490
+ ] }), $[46] = IconComponent, $[47] = IconRightComponent, $[48] = fontSize, $[49] = gap, $[50] = gapX, $[51] = gapY, $[52] = hotkeys, $[53] = paddingProps, $[54] = text2, $[55] = t17) : t17 = $[55];
2491
+ let t18;
2492
+ $[56] !== children || $[57] !== paddingProps ? (t18 = children && /* @__PURE__ */ jsx(Box, { as: "span", ...paddingProps, children }), $[56] = children, $[57] = paddingProps, $[58] = t18) : t18 = $[58];
2493
+ let t19;
2494
+ return $[59] !== active || $[60] !== as || $[61] !== disabled || $[62] !== handleClick || $[63] !== onItemMouseEnter || $[64] !== onItemMouseLeave || $[65] !== radius || $[66] !== rest || $[67] !== role || $[68] !== t14 || $[69] !== t15 || $[70] !== t16 || $[71] !== t17 || $[72] !== t18 || $[73] !== tone ? (t19 = /* @__PURE__ */ jsxs(Selectable, { "data-ui": "MenuItem", ...rest, as, "data-pressed": t14, "data-disabled": t15, radius, disabled, onClick: handleClick, onMouseEnter: onItemMouseEnter, onMouseLeave: onItemMouseLeave, ref: setRef, role, selected: active, tabIndex: -1, tone, type: t16, children: [
2495
+ t17,
2496
+ t18
2497
+ ] }), $[59] = active, $[60] = as, $[61] = disabled, $[62] = handleClick, $[63] = onItemMouseEnter, $[64] = onItemMouseLeave, $[65] = radius, $[66] = rest, $[67] = role, $[68] = t14, $[69] = t15, $[70] = t16, $[71] = t17, $[72] = t18, $[73] = tone, $[74] = t19) : t19 = $[74], t19;
2499
2498
  }
2500
2499
  const DEFAULT_TAB_ELEMENT = "button";
2501
2500
  function Tab(props) {
@@ -2756,8 +2755,8 @@ function ToastProvider(props) {
2756
2755
  let t1;
2757
2756
  $[0] === Symbol.for("react.memo_cache_sentinel") ? (t1 = [], $[0] = t1) : t1 = $[0];
2758
2757
  const [state, setState] = useState(t1), mounted = useMounted();
2759
- let t2, t3;
2760
- $[1] === Symbol.for("react.memo_cache_sentinel") ? (t3 = {
2758
+ let t2;
2759
+ $[1] === Symbol.for("react.memo_cache_sentinel") ? (t2 = {
2761
2760
  version: 0,
2762
2761
  push: (params) => {
2763
2762
  const id = params.id ?? generateToastId(), duration = params.duration ?? 5e3;
@@ -2781,15 +2780,15 @@ function ToastProvider(props) {
2781
2780
  });
2782
2781
  }), id;
2783
2782
  }
2784
- }, $[1] = t3) : t3 = $[1], t2 = t3;
2783
+ }, $[1] = t2) : t2 = $[1];
2785
2784
  const value = t2;
2785
+ let t3;
2786
+ $[2] !== gap || $[3] !== mounted || $[4] !== padding || $[5] !== paddingX || $[6] !== paddingY || $[7] !== state || $[8] !== zOffset ? (t3 = mounted && /* @__PURE__ */ jsx(LayerProvider, { zOffset, children: /* @__PURE__ */ jsx(ToastLayer, { padding, paddingX, paddingY, gap, children: /* @__PURE__ */ jsx(AnimatePresence, { initial: !1, mode: "popLayout", children: state.map(_temp$4) }) }) }), $[2] = gap, $[3] = mounted, $[4] = padding, $[5] = paddingX, $[6] = paddingY, $[7] = state, $[8] = zOffset, $[9] = t3) : t3 = $[9];
2786
2787
  let t4;
2787
- $[2] !== gap || $[3] !== mounted || $[4] !== padding || $[5] !== paddingX || $[6] !== paddingY || $[7] !== state || $[8] !== zOffset ? (t4 = mounted && /* @__PURE__ */ jsx(LayerProvider, { zOffset, children: /* @__PURE__ */ jsx(ToastLayer, { padding, paddingX, paddingY, gap, children: /* @__PURE__ */ jsx(AnimatePresence, { initial: !1, mode: "popLayout", children: state.map(_temp$4) }) }) }), $[2] = gap, $[3] = mounted, $[4] = padding, $[5] = paddingX, $[6] = paddingY, $[7] = state, $[8] = zOffset, $[9] = t4) : t4 = $[9];
2788
- let t5;
2789
- return $[10] !== children || $[11] !== t4 ? (t5 = /* @__PURE__ */ jsxs(ToastContext.Provider, { value, children: [
2788
+ return $[10] !== children || $[11] !== t3 ? (t4 = /* @__PURE__ */ jsxs(ToastContext.Provider, { value, children: [
2790
2789
  children,
2791
- t4
2792
- ] }), $[10] = children, $[11] = t4, $[12] = t5) : t5 = $[12], t5;
2790
+ t3
2791
+ ] }), $[10] = children, $[11] = t3, $[12] = t4) : t4 = $[12], t4;
2793
2792
  }
2794
2793
  function _temp$4(t0) {
2795
2794
  const {
@@ -2800,7 +2799,7 @@ function _temp$4(t0) {
2800
2799
  return /* @__PURE__ */ jsx(Toast, { closable: params_0.closable, description: params_0.description, onClose: dismiss_0, status: params_0.status, title: params_0.title, duration: params_0.duration }, id_0);
2801
2800
  }
2802
2801
  function useToast() {
2803
- const value = useContext(ToastContext);
2802
+ const value = use(ToastContext);
2804
2803
  if (!value)
2805
2804
  throw new Error("useToast(): missing context value");
2806
2805
  if (!isRecord(value) || value.version !== 0)
@@ -2873,27 +2872,27 @@ function Tree(props) {
2873
2872
  ...rest
2874
2873
  } = t0, $[0] = t0, $[1] = children, $[2] = forwardedRef, $[3] = onFocus, $[4] = rest, $[5] = t1) : (children = $[1], forwardedRef = $[2], onFocus = $[3], rest = $[4], t1 = $[5]);
2875
2874
  const gap = t1 === void 0 ? 1 : t1, ref = useRef(null), [focusedElement, setFocusedElement] = useState(null), focusedElementRef = useRef(focusedElement);
2876
- let t2, t3;
2877
- $[6] === Symbol.for("react.memo_cache_sentinel") ? (t3 = [], $[6] = t3) : t3 = $[6], t2 = t3;
2875
+ let t2;
2876
+ $[6] === Symbol.for("react.memo_cache_sentinel") ? (t2 = [], $[6] = t2) : t2 = $[6];
2878
2877
  const path = t2;
2878
+ let t3;
2879
+ $[7] === Symbol.for("react.memo_cache_sentinel") ? (t3 = [], $[7] = t3) : t3 = $[7];
2880
+ const [itemElements, setItemElements] = useState(t3);
2879
2881
  let t4;
2880
- $[7] === Symbol.for("react.memo_cache_sentinel") ? (t4 = [], $[7] = t4) : t4 = $[7];
2881
- const [itemElements, setItemElements] = useState(t4);
2882
+ $[8] === Symbol.for("react.memo_cache_sentinel") ? (t4 = {}, $[8] = t4) : t4 = $[8];
2883
+ const [state, setState] = useState(t4), stateRef = useRef(state);
2882
2884
  let t5;
2883
- $[8] === Symbol.for("react.memo_cache_sentinel") ? (t5 = {}, $[8] = t5) : t5 = $[8];
2884
- const [state, setState] = useState(t5), stateRef = useRef(state);
2885
- let t6;
2886
- $[9] === Symbol.for("react.memo_cache_sentinel") ? (t6 = () => ref.current, $[9] = t6) : t6 = $[9], useImperativeHandle(forwardedRef, t6);
2887
- let t7, t8;
2888
- $[10] !== focusedElement ? (t7 = () => {
2885
+ $[9] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[9] = t5) : t5 = $[9], useImperativeHandle(forwardedRef, t5);
2886
+ let t6, t7;
2887
+ $[10] !== focusedElement ? (t6 = () => {
2889
2888
  focusedElementRef.current = focusedElement;
2890
- }, t8 = [focusedElement], $[10] = focusedElement, $[11] = t7, $[12] = t8) : (t7 = $[11], t8 = $[12]), useEffect(t7, t8);
2891
- let t10, t9;
2892
- $[13] !== state ? (t9 = () => {
2889
+ }, t7 = [focusedElement], $[10] = focusedElement, $[11] = t6, $[12] = t7) : (t6 = $[11], t7 = $[12]), useEffect(t6, t7);
2890
+ let t8, t9;
2891
+ $[13] !== state ? (t8 = () => {
2893
2892
  stateRef.current = state;
2894
- }, t10 = [state], $[13] = state, $[14] = t10, $[15] = t9) : (t10 = $[14], t9 = $[15]), useEffect(t9, t10);
2895
- let t11;
2896
- $[16] === Symbol.for("react.memo_cache_sentinel") ? (t11 = (element, path_0, expanded, selected) => (setState((s) => ({
2893
+ }, t9 = [state], $[13] = state, $[14] = t8, $[15] = t9) : (t8 = $[14], t9 = $[15]), useEffect(t8, t9);
2894
+ let t10;
2895
+ $[16] === Symbol.for("react.memo_cache_sentinel") ? (t10 = (element, path_0, expanded, selected) => (setState((s) => ({
2897
2896
  ...s,
2898
2897
  [path_0]: {
2899
2898
  element,
@@ -2906,10 +2905,10 @@ function Tree(props) {
2906
2905
  };
2907
2906
  return delete newState[path_0], newState;
2908
2907
  });
2909
- }), $[16] = t11) : t11 = $[16];
2910
- const registerItem = t11;
2911
- let t12;
2912
- $[17] === Symbol.for("react.memo_cache_sentinel") ? (t12 = (path_1, expanded_0) => {
2908
+ }), $[16] = t10) : t10 = $[16];
2909
+ const registerItem = t10;
2910
+ let t11;
2911
+ $[17] === Symbol.for("react.memo_cache_sentinel") ? (t11 = (path_1, expanded_0) => {
2913
2912
  setState((s_1) => {
2914
2913
  const itemState = s_1[path_1];
2915
2914
  return itemState ? {
@@ -2920,14 +2919,12 @@ function Tree(props) {
2920
2919
  }
2921
2920
  } : s_1;
2922
2921
  });
2923
- }, $[17] = t12) : t12 = $[17];
2924
- const setExpanded = t12;
2922
+ }, $[17] = t11) : t11 = $[17];
2923
+ const setExpanded = t11, t12 = focusedElement || itemElements[0] || null;
2925
2924
  let t13;
2926
- const t14 = focusedElement || itemElements[0] || null;
2927
- let t15;
2928
- $[18] !== gap || $[19] !== state || $[20] !== t14 ? (t15 = {
2925
+ $[18] !== gap || $[19] !== state || $[20] !== t12 ? (t13 = {
2929
2926
  version: 0,
2930
- focusedElement: t14,
2927
+ focusedElement: t12,
2931
2928
  gap,
2932
2929
  level: 0,
2933
2930
  path,
@@ -2935,10 +2932,10 @@ function Tree(props) {
2935
2932
  setExpanded,
2936
2933
  setFocusedElement,
2937
2934
  state
2938
- }, $[18] = gap, $[19] = state, $[20] = t14, $[21] = t15) : t15 = $[21], t13 = t15;
2935
+ }, $[18] = gap, $[19] = state, $[20] = t12, $[21] = t13) : t13 = $[21];
2939
2936
  const contextValue = t13;
2940
- let t16;
2941
- $[22] !== itemElements ? (t16 = (event) => {
2937
+ let t14;
2938
+ $[22] !== itemElements ? (t14 = (event) => {
2942
2939
  if (focusedElementRef.current) {
2943
2940
  if (event.key === "ArrowDown") {
2944
2941
  event.preventDefault();
@@ -2997,26 +2994,26 @@ function Tree(props) {
2997
2994
  return;
2998
2995
  }
2999
2996
  }
3000
- }, $[22] = itemElements, $[23] = t16) : t16 = $[23];
3001
- const handleKeyDown = t16;
3002
- let t17;
3003
- $[24] !== onFocus ? (t17 = (event_0) => {
2997
+ }, $[22] = itemElements, $[23] = t14) : t14 = $[23];
2998
+ const handleKeyDown = t14;
2999
+ let t15;
3000
+ $[24] !== onFocus ? (t15 = (event_0) => {
3004
3001
  setFocusedElement(event_0.target), onFocus?.(event_0);
3005
- }, $[24] = onFocus, $[25] = t17) : t17 = $[25];
3006
- const handleFocus = t17;
3007
- let t18;
3008
- $[26] === Symbol.for("react.memo_cache_sentinel") ? (t18 = () => {
3002
+ }, $[24] = onFocus, $[25] = t15) : t15 = $[25];
3003
+ const handleFocus = t15;
3004
+ let t16;
3005
+ $[26] === Symbol.for("react.memo_cache_sentinel") ? (t16 = () => {
3009
3006
  if (!ref.current)
3010
3007
  return;
3011
3008
  const _itemElements = Array.from(ref.current.querySelectorAll('[data-ui="TreeItem"]'));
3012
3009
  setItemElements(_itemElements);
3013
- }, $[26] = t18) : t18 = $[26];
3010
+ }, $[26] = t16) : t16 = $[26];
3011
+ let t17;
3012
+ $[27] !== children ? (t17 = [children], $[27] = children, $[28] = t17) : t17 = $[28], useEffect(t16, t17);
3013
+ let t18;
3014
+ $[29] !== children || $[30] !== gap || $[31] !== handleFocus || $[32] !== handleKeyDown || $[33] !== rest ? (t18 = /* @__PURE__ */ jsx(Stack, { as: "ul", "data-ui": "Tree", ...rest, gap, onFocus: handleFocus, onKeyDown: handleKeyDown, ref, role: "tree", children }), $[29] = children, $[30] = gap, $[31] = handleFocus, $[32] = handleKeyDown, $[33] = rest, $[34] = t18) : t18 = $[34];
3014
3015
  let t19;
3015
- $[27] !== children ? (t19 = [children], $[27] = children, $[28] = t19) : t19 = $[28], useEffect(t18, t19);
3016
- let t20;
3017
- $[29] !== children || $[30] !== gap || $[31] !== handleFocus || $[32] !== handleKeyDown || $[33] !== rest ? (t20 = /* @__PURE__ */ jsx(Stack, { as: "ul", "data-ui": "Tree", ...rest, gap, onFocus: handleFocus, onKeyDown: handleKeyDown, ref, role: "tree", children }), $[29] = children, $[30] = gap, $[31] = handleFocus, $[32] = handleKeyDown, $[33] = rest, $[34] = t20) : t20 = $[34];
3018
- let t21;
3019
- return $[35] !== contextValue || $[36] !== t20 ? (t21 = /* @__PURE__ */ jsx(TreeContext.Provider, { value: contextValue, children: t20 }), $[35] = contextValue, $[36] = t20, $[37] = t21) : t21 = $[37], t21;
3016
+ return $[35] !== contextValue || $[36] !== t18 ? (t19 = /* @__PURE__ */ jsx(TreeContext.Provider, { value: contextValue, children: t18 }), $[35] = contextValue, $[36] = t18, $[37] = t19) : t19 = $[37], t19;
3020
3017
  }
3021
3018
  function useTree() {
3022
3019
  const tree = use(TreeContext);
@@ -3136,32 +3133,21 @@ function _isScrollable(el) {
3136
3133
  }
3137
3134
  const _ResizeObserver = typeof document < "u" && typeof window < "u" && window.ResizeObserver ? window.ResizeObserver : ResizeObserver, DEFAULT_VIRTUAL_LIST_ELEMENT = "div";
3138
3135
  function VirtualList(props) {
3139
- const $ = c(61), t0 = props;
3140
- let forwardedRef, getItemKey, onChange, renderItem, rest, t1, t2, t3;
3141
- $[0] !== t0 ? ({
3142
- as: t1,
3143
- gap: t2,
3136
+ const {
3137
+ as = DEFAULT_VIRTUAL_LIST_ELEMENT,
3138
+ gap = 0,
3144
3139
  getItemKey,
3145
- items: t3,
3140
+ items = [],
3146
3141
  onChange,
3147
3142
  renderItem,
3148
3143
  ref: forwardedRef,
3149
3144
  ...rest
3150
- } = t0, $[0] = t0, $[1] = forwardedRef, $[2] = getItemKey, $[3] = onChange, $[4] = renderItem, $[5] = rest, $[6] = t1, $[7] = t2, $[8] = t3) : (forwardedRef = $[1], getItemKey = $[2], onChange = $[3], renderItem = $[4], rest = $[5], t1 = $[6], t2 = $[7], t3 = $[8]);
3151
- const as = t1 === void 0 ? DEFAULT_VIRTUAL_LIST_ELEMENT : t1, gap = t2 === void 0 ? 0 : t2;
3152
- let t4;
3153
- $[9] !== t3 ? (t4 = t3 === void 0 ? [] : t3, $[9] = t3, $[10] = t4) : t4 = $[10];
3154
- const items = t4, ref = useRef(null), wrapperRef = useRef(null), [scrollTop, setScrollTop] = useState(0), [scrollHeight, setScrollHeight] = useState(0), [itemHeight, setItemHeight] = useState(-1), [gapValue, setGapValue] = useState(0);
3155
- let t5;
3156
- $[11] === Symbol.for("react.memo_cache_sentinel") ? (t5 = () => ref.current, $[11] = t5) : t5 = $[11], useImperativeHandle(forwardedRef, t5);
3157
- let t6, t7;
3158
- $[12] === Symbol.for("react.memo_cache_sentinel") ? (t6 = () => {
3159
- if (!ref.current)
3160
- return;
3145
+ } = props, ref = useRef(null), wrapperRef = useRef(null), [scrollTop, setScrollTop] = useState(0), [scrollHeight, setScrollHeight] = useState(0), [itemHeight, setItemHeight] = useState(-1), [gapValue, setGapValue] = useState(0);
3146
+ useImperativeHandle(forwardedRef, () => ref.current), useEffect(() => {
3147
+ if (!ref.current) return;
3161
3148
  const scrollEl = findScrollable(ref.current.parentNode);
3162
3149
  if (scrollEl) {
3163
- if (!(scrollEl instanceof HTMLElement))
3164
- return;
3150
+ if (!(scrollEl instanceof HTMLElement)) return;
3165
3151
  const handleScroll = () => {
3166
3152
  setScrollTop(scrollEl.scrollTop);
3167
3153
  };
@@ -3185,10 +3171,9 @@ function VirtualList(props) {
3185
3171
  }), window.addEventListener("resize", handleResize), setScrollHeight(window.innerHeight), handleScroll_0(), () => {
3186
3172
  window.removeEventListener("scroll", handleScroll_0), window.removeEventListener("resize", handleResize);
3187
3173
  };
3188
- }, t7 = [], $[12] = t6, $[13] = t7) : (t6 = $[12], t7 = $[13]), useEffect(t6, t7);
3174
+ }, []);
3189
3175
  const len = items.length, height = itemHeight ? len * (itemHeight + gapValue) - gapValue : 0, fromIndex = height ? Math.max(Math.floor(scrollTop / height * len) - 2, 0) : 0, toIndex = height ? Math.ceil((scrollTop + scrollHeight) / height * len) + 1 : 0;
3190
- let t8, t9;
3191
- $[14] !== fromIndex || $[15] !== gapValue || $[16] !== itemHeight || $[17] !== onChange || $[18] !== scrollHeight || $[19] !== scrollTop || $[20] !== toIndex ? (t8 = () => {
3176
+ useEffect(() => {
3192
3177
  onChange?.({
3193
3178
  fromIndex,
3194
3179
  gap: gapValue,
@@ -3197,63 +3182,23 @@ function VirtualList(props) {
3197
3182
  scrollTop,
3198
3183
  toIndex
3199
3184
  });
3200
- }, t9 = [fromIndex, gapValue, itemHeight, onChange, scrollHeight, scrollTop, toIndex], $[14] = fromIndex, $[15] = gapValue, $[16] = itemHeight, $[17] = onChange, $[18] = scrollHeight, $[19] = scrollTop, $[20] = toIndex, $[21] = t8, $[22] = t9) : (t8 = $[21], t9 = $[22]), useEffect(t8, t9);
3201
- let t10;
3202
- $[23] === Symbol.for("react.memo_cache_sentinel") ? (t10 = () => {
3185
+ }, [fromIndex, gapValue, itemHeight, onChange, scrollHeight, scrollTop, toIndex]), useEffect(() => {
3203
3186
  setItemHeight(-1);
3204
- }, $[23] = t10) : t10 = $[23];
3205
- let t11;
3206
- $[24] !== renderItem ? (t11 = [renderItem], $[24] = renderItem, $[25] = t11) : t11 = $[25], useEffect(t10, t11);
3207
- let t12;
3208
- bb0: {
3209
- if (!renderItem || items.length === 0) {
3210
- t12 = null;
3211
- break bb0;
3212
- }
3213
- if (itemHeight === -1) {
3214
- let t133;
3215
- $[26] === Symbol.for("react.memo_cache_sentinel") ? (t133 = (el) => el ? setItemHeight(el.offsetHeight) : void 0, $[26] = t133) : t133 = $[26];
3216
- let t142;
3217
- $[27] !== items[0] || $[28] !== renderItem ? (t142 = renderItem(items[0]), $[27] = items[0], $[28] = renderItem, $[29] = t142) : t142 = $[29];
3218
- let t152;
3219
- $[30] !== t142 ? (t152 = /* @__PURE__ */ jsx(Box, { ref: t133, insetTop: 0, insetLeft: 0, insetRight: 0, position: "absolute", children: t142 }, 0), $[30] = t142, $[31] = t152) : t152 = $[31];
3220
- let t162;
3221
- $[32] === Symbol.for("react.memo_cache_sentinel") ? (t162 = (el_0) => el_0 ? setGapValue(el_0.offsetHeight) : void 0, $[32] = t162) : t162 = $[32];
3222
- const t17 = vars.space[gap];
3223
- let t18;
3224
- $[33] !== t17 ? (t18 = /* @__PURE__ */ jsx("div", { ref: t162, style: {
3225
- height: t17
3226
- } }), $[33] = t17, $[34] = t18) : t18 = $[34];
3227
- let t19;
3228
- $[35] !== t152 || $[36] !== t18 ? (t19 = [/* @__PURE__ */ jsxs(Fragment, { children: [
3229
- t152,
3230
- t18
3231
- ] })], $[35] = t152, $[36] = t18, $[37] = t19) : t19 = $[37], t12 = t19;
3232
- break bb0;
3233
- }
3234
- let t132;
3235
- if ($[38] !== fromIndex || $[39] !== gapValue || $[40] !== getItemKey || $[41] !== itemHeight || $[42] !== items || $[43] !== renderItem || $[44] !== toIndex) {
3236
- let t142;
3237
- $[46] !== fromIndex || $[47] !== gapValue || $[48] !== getItemKey || $[49] !== itemHeight || $[50] !== renderItem ? (t142 = (item, _itemIndex) => {
3238
- const itemIndex = fromIndex + _itemIndex, node = renderItem(item), key2 = getItemKey ? getItemKey(item, itemIndex) : itemIndex;
3239
- return /* @__PURE__ */ jsx(Box, { insetLeft: 0, insetRight: 0, position: "absolute", style: {
3240
- top: itemIndex * (itemHeight + gapValue)
3241
- }, children: node }, key2);
3242
- }, $[46] = fromIndex, $[47] = gapValue, $[48] = getItemKey, $[49] = itemHeight, $[50] = renderItem, $[51] = t142) : t142 = $[51], t132 = items.slice(fromIndex, toIndex).map(t142), $[38] = fromIndex, $[39] = gapValue, $[40] = getItemKey, $[41] = itemHeight, $[42] = items, $[43] = renderItem, $[44] = toIndex, $[45] = t132;
3243
- } else
3244
- t132 = $[45];
3245
- t12 = t132;
3246
- }
3247
- const children = t12;
3248
- let t13, t14;
3249
- $[52] !== height ? (t14 = {
3187
+ }, [renderItem]);
3188
+ const children = useMemo(() => !renderItem || items.length === 0 ? null : itemHeight === -1 ? [/* @__PURE__ */ jsxs(Fragment, { children: [
3189
+ /* @__PURE__ */ jsx(Box, { ref: (el) => el ? setItemHeight(el.offsetHeight) : void 0, insetTop: 0, insetLeft: 0, insetRight: 0, position: "absolute", children: renderItem(items[0]) }, 0),
3190
+ /* @__PURE__ */ jsx("div", { ref: (el_0) => el_0 ? setGapValue(el_0.offsetHeight) : void 0, style: {
3191
+ height: vars.space[gap]
3192
+ } })
3193
+ ] })] : items.slice(fromIndex, toIndex).map((item, _itemIndex) => {
3194
+ const itemIndex = fromIndex + _itemIndex, node = renderItem(item), key2 = getItemKey ? getItemKey(item, itemIndex) : itemIndex;
3195
+ return /* @__PURE__ */ jsx(Box, { insetLeft: 0, insetRight: 0, position: "absolute", style: {
3196
+ top: itemIndex * (itemHeight + gapValue)
3197
+ }, children: node }, key2);
3198
+ }), [fromIndex, gap, gapValue, getItemKey, itemHeight, items, renderItem, toIndex]), wrapperStyle = useMemo(() => ({
3250
3199
  height
3251
- }, $[52] = height, $[53] = t14) : t14 = $[53], t13 = t14;
3252
- const wrapperStyle = t13;
3253
- let t15;
3254
- $[54] !== children || $[55] !== wrapperStyle ? (t15 = /* @__PURE__ */ jsx("div", { ref: wrapperRef, style: wrapperStyle, children }), $[54] = children, $[55] = wrapperStyle, $[56] = t15) : t15 = $[56];
3255
- let t16;
3256
- return $[57] !== as || $[58] !== rest || $[59] !== t15 ? (t16 = /* @__PURE__ */ jsx(Box, { "data-ui": "VirtualList", ...rest, as, position: "relative", ref, children: t15 }), $[57] = as, $[58] = rest, $[59] = t15, $[60] = t16) : t16 = $[60], t16;
3200
+ }), [height]);
3201
+ return /* @__PURE__ */ jsx(Box, { "data-ui": "VirtualList", ...rest, as, position: "relative", ref, children: /* @__PURE__ */ jsx("div", { ref: wrapperRef, style: wrapperStyle, children }) });
3257
3202
  }
3258
3203
  function findScrollable(parentNode) {
3259
3204
  let _scrollEl = parentNode;
@@ -3316,43 +3261,59 @@ function _temp$3() {
3316
3261
  }
3317
3262
  const DEFAULT_LABEL_ELEMENT = "div";
3318
3263
  function Label(props) {
3319
- const $ = c(26);
3320
- let align, children, className, rest, t0, t1, t2, t3, textOverflowProp;
3264
+ const $ = c(42);
3265
+ let align, children, className, margin, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, maxWidth, rest, t0, t1, t2, t3, textOverflowProp;
3321
3266
  $[0] !== props ? ({
3322
3267
  align,
3323
3268
  as: t0,
3324
3269
  children,
3325
3270
  className,
3271
+ margin,
3272
+ marginX,
3273
+ marginY,
3274
+ marginTop,
3275
+ marginRight,
3276
+ marginBottom,
3277
+ marginLeft,
3278
+ maxWidth,
3326
3279
  muted: t1,
3327
3280
  size: t2,
3328
3281
  textOverflow: textOverflowProp,
3329
3282
  weight: t3,
3330
3283
  ...rest
3331
- } = props, $[0] = props, $[1] = align, $[2] = children, $[3] = className, $[4] = rest, $[5] = t0, $[6] = t1, $[7] = t2, $[8] = t3, $[9] = textOverflowProp) : (align = $[1], children = $[2], className = $[3], rest = $[4], t0 = $[5], t1 = $[6], t2 = $[7], t3 = $[8], textOverflowProp = $[9]);
3284
+ } = props, $[0] = props, $[1] = align, $[2] = children, $[3] = className, $[4] = margin, $[5] = marginBottom, $[6] = marginLeft, $[7] = marginRight, $[8] = marginTop, $[9] = marginX, $[10] = marginY, $[11] = maxWidth, $[12] = rest, $[13] = t0, $[14] = t1, $[15] = t2, $[16] = t3, $[17] = textOverflowProp) : (align = $[1], children = $[2], className = $[3], margin = $[4], marginBottom = $[5], marginLeft = $[6], marginRight = $[7], marginTop = $[8], marginX = $[9], marginY = $[10], maxWidth = $[11], rest = $[12], t0 = $[13], t1 = $[14], t2 = $[15], t3 = $[16], textOverflowProp = $[17]);
3332
3285
  const Element2 = t0 === void 0 ? DEFAULT_LABEL_ELEMENT : t0, muted = t1 === void 0 ? !1 : t1, size2 = t2 === void 0 ? 1 : t2, weight = t3 === void 0 ? "regular" : t3;
3333
3286
  let t4;
3334
- $[10] !== align || $[11] !== className || $[12] !== muted || $[13] !== size2 || $[14] !== weight ? (t4 = label({
3287
+ $[18] !== align || $[19] !== className || $[20] !== margin || $[21] !== marginBottom || $[22] !== marginLeft || $[23] !== marginRight || $[24] !== marginTop || $[25] !== marginX || $[26] !== marginY || $[27] !== maxWidth || $[28] !== muted || $[29] !== size2 || $[30] !== weight ? (t4 = label({
3335
3288
  className,
3336
3289
  align,
3290
+ margin,
3291
+ marginX,
3292
+ marginY,
3293
+ marginTop,
3294
+ marginRight,
3295
+ marginBottom,
3296
+ marginLeft,
3297
+ maxWidth,
3337
3298
  muted,
3338
3299
  size: size2,
3339
3300
  weight
3340
- }), $[10] = align, $[11] = className, $[12] = muted, $[13] = size2, $[14] = weight, $[15] = t4) : t4 = $[15];
3301
+ }), $[18] = align, $[19] = className, $[20] = margin, $[21] = marginBottom, $[22] = marginLeft, $[23] = marginRight, $[24] = marginTop, $[25] = marginX, $[26] = marginY, $[27] = maxWidth, $[28] = muted, $[29] = size2, $[30] = weight, $[31] = t4) : t4 = $[31];
3341
3302
  let t5;
3342
- $[16] !== textOverflowProp ? (t5 = textOverflow({
3303
+ $[32] !== textOverflowProp ? (t5 = textOverflow({
3343
3304
  textOverflow: textOverflowProp
3344
- }), $[16] = textOverflowProp, $[17] = t5) : t5 = $[17];
3305
+ }), $[32] = textOverflowProp, $[33] = t5) : t5 = $[33];
3345
3306
  let t6;
3346
- $[18] !== children || $[19] !== t5 ? (t6 = /* @__PURE__ */ jsx("span", { className: t5, children }), $[18] = children, $[19] = t5, $[20] = t6) : t6 = $[20];
3307
+ $[34] !== children || $[35] !== t5 ? (t6 = /* @__PURE__ */ jsx("span", { className: t5, children }), $[34] = children, $[35] = t5, $[36] = t6) : t6 = $[36];
3347
3308
  let t7;
3348
- return $[21] !== Element2 || $[22] !== rest || $[23] !== t4 || $[24] !== t6 ? (t7 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Label", ...rest, className: t4, children: t6 }), $[21] = Element2, $[22] = rest, $[23] = t4, $[24] = t6, $[25] = t7) : t7 = $[25], t7;
3309
+ return $[37] !== Element2 || $[38] !== rest || $[39] !== t4 || $[40] !== t6 ? (t7 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Label", ...rest, className: t4, children: t6 }), $[37] = Element2, $[38] = rest, $[39] = t4, $[40] = t6, $[41] = t7) : t7 = $[41], t7;
3349
3310
  }
3350
3311
  const DEFAULT_AVATAR_ELEMENT = "span";
3351
3312
  function Avatar(props) {
3352
3313
  const $ = c(50), t0 = props;
3353
- let __unstable_hideInnerStroke, animateArrowFrom, arrowPositionProp, className, initials, onImageLoadError, rest, src, t1, t2, t3, title;
3314
+ let animateArrowFrom, arrowPositionProp, className, hideInnerStroke, initials, onImageLoadError, rest, src, t1, t2, t3, title;
3354
3315
  $[0] !== t0 ? ({
3355
- __unstable_hideInnerStroke,
3316
+ __unstable_hideInnerStroke: hideInnerStroke,
3356
3317
  as: t1,
3357
3318
  className,
3358
3319
  color: t2,
@@ -3364,7 +3325,7 @@ function Avatar(props) {
3364
3325
  animateArrowFrom,
3365
3326
  size: t3,
3366
3327
  ...rest
3367
- } = t0, $[0] = t0, $[1] = __unstable_hideInnerStroke, $[2] = animateArrowFrom, $[3] = arrowPositionProp, $[4] = className, $[5] = initials, $[6] = onImageLoadError, $[7] = rest, $[8] = src, $[9] = t1, $[10] = t2, $[11] = t3, $[12] = title) : (__unstable_hideInnerStroke = $[1], animateArrowFrom = $[2], arrowPositionProp = $[3], className = $[4], initials = $[5], onImageLoadError = $[6], rest = $[7], src = $[8], t1 = $[9], t2 = $[10], t3 = $[11], title = $[12]);
3328
+ } = t0, $[0] = t0, $[1] = animateArrowFrom, $[2] = arrowPositionProp, $[3] = className, $[4] = hideInnerStroke, $[5] = initials, $[6] = onImageLoadError, $[7] = rest, $[8] = src, $[9] = t1, $[10] = t2, $[11] = t3, $[12] = title) : (animateArrowFrom = $[1], arrowPositionProp = $[2], className = $[3], hideInnerStroke = $[4], initials = $[5], onImageLoadError = $[6], rest = $[7], src = $[8], t1 = $[9], t2 = $[10], t3 = $[11], title = $[12]);
3368
3329
  const Element2 = t1 === void 0 ? DEFAULT_AVATAR_ELEMENT : t1, color = t2 === void 0 ? "magenta" : t2, sizeProp = t3 === void 0 ? 1 : t3, size2 = useResponsiveProp(sizeProp), [arrowPosition, setArrowPosition] = useState(animateArrowFrom || arrowPositionProp || "inside"), [imageError, setImageError] = useState(!1);
3369
3330
  let t4, t5;
3370
3331
  $[13] !== arrowPosition || $[14] !== arrowPositionProp ? (t4 = () => {
@@ -3382,35 +3343,35 @@ function Avatar(props) {
3382
3343
  setImageError(!0), onImageLoadError && onImageLoadError(new Error("Avatar: the image failed to load"));
3383
3344
  }, $[20] = onImageLoadError, $[21] = t8) : t8 = $[21];
3384
3345
  const handleImageError = t8;
3385
- let t9, t10;
3386
- $[22] !== size2 ? (t10 = Object.values(size2).map(_temp$2), $[22] = size2, $[23] = t10) : t10 = $[23], t9 = t10;
3387
- const initialsSize = t9, t11 = __unstable_hideInnerStroke ? "" : void 0;
3388
- let t12;
3389
- $[24] !== className || $[25] !== color || $[26] !== sizeProp ? (t12 = avatar({
3346
+ let t9;
3347
+ $[22] !== size2 ? (t9 = Object.values(size2).map(_temp$2), $[22] = size2, $[23] = t9) : t9 = $[23];
3348
+ const initialsSize = t9, t10 = hideInnerStroke ? "" : void 0;
3349
+ let t11;
3350
+ $[24] !== className || $[25] !== color || $[26] !== sizeProp ? (t11 = avatar({
3390
3351
  className,
3391
3352
  color,
3392
3353
  size: sizeProp
3393
- }), $[24] = className, $[25] = color, $[26] = sizeProp, $[27] = t12) : t12 = $[27];
3394
- const t13 = imageError ? "" : void 0;
3354
+ }), $[24] = className, $[25] = color, $[26] = sizeProp, $[27] = t11) : t11 = $[27];
3355
+ const t12 = imageError ? "" : void 0;
3356
+ let t13;
3357
+ $[28] === Symbol.for("react.memo_cache_sentinel") ? (t13 = avatarArrow(), $[28] = t13) : t13 = $[28];
3395
3358
  let t14;
3396
- $[28] === Symbol.for("react.memo_cache_sentinel") ? (t14 = avatarArrow(), $[28] = t14) : t14 = $[28];
3359
+ $[29] !== color ? (t14 = /* @__PURE__ */ jsx("span", { className: t13, children: /* @__PURE__ */ jsx("svg", { width: "11", height: "7", viewBox: "0 0 11 7", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M6.67948 1.50115L11 7L0 7L4.32052 1.50115C4.92109 0.736796 6.07891 0.736795 6.67948 1.50115Z", fill: color }) }) }), $[29] = color, $[30] = t14) : t14 = $[30];
3397
3360
  let t15;
3398
- $[29] !== color ? (t15 = /* @__PURE__ */ jsx("span", { className: t14, children: /* @__PURE__ */ jsx("svg", { width: "11", height: "7", viewBox: "0 0 11 7", fill: "none", children: /* @__PURE__ */ jsx("path", { d: "M6.67948 1.50115L11 7L0 7L4.32052 1.50115C4.92109 0.736796 6.07891 0.736795 6.67948 1.50115Z", fill: color }) }) }), $[29] = color, $[30] = t15) : t15 = $[30];
3361
+ $[31] === Symbol.for("react.memo_cache_sentinel") ? (t15 = avatarInitials(), $[31] = t15) : t15 = $[31];
3399
3362
  let t16;
3400
- $[31] === Symbol.for("react.memo_cache_sentinel") ? (t16 = avatarInitials(), $[31] = t16) : t16 = $[31];
3363
+ $[32] !== initials || $[33] !== initialsSize ? (t16 = /* @__PURE__ */ jsx(Box, { alignItems: "center", as: "span", className: t15, display: "flex", justifyContent: "center", position: "absolute", inset: 0, children: /* @__PURE__ */ jsx(Label, { align: "center", as: "span", size: initialsSize, weight: "medium", children: initials }) }), $[32] = initials, $[33] = initialsSize, $[34] = t16) : t16 = $[34];
3401
3364
  let t17;
3402
- $[32] !== initials || $[33] !== initialsSize ? (t17 = /* @__PURE__ */ jsx(Box, { alignItems: "center", as: "span", className: t16, display: "flex", justifyContent: "center", position: "absolute", inset: 0, children: /* @__PURE__ */ jsx(Label, { align: "center", as: "span", size: initialsSize, weight: "medium", children: initials }) }), $[32] = initials, $[33] = initialsSize, $[34] = t17) : t17 = $[34];
3403
- let t18;
3404
- $[35] !== handleImageError || $[36] !== initials || $[37] !== src ? (t18 = src && /* @__PURE__ */ jsxs(Box, { className: avatarImage(), inset: 0, position: "absolute", children: [
3365
+ $[35] !== handleImageError || $[36] !== initials || $[37] !== src ? (t17 = src && /* @__PURE__ */ jsxs(Box, { className: avatarImage(), inset: 0, position: "absolute", children: [
3405
3366
  /* @__PURE__ */ jsx("img", { alt: initials, onError: handleImageError, src }),
3406
3367
  /* @__PURE__ */ jsx("span", { className: avatarImageOutline() })
3407
- ] }), $[35] = handleImageError, $[36] = initials, $[37] = src, $[38] = t18) : t18 = $[38];
3408
- let t19;
3409
- return $[39] !== Element2 || $[40] !== arrowPosition || $[41] !== rest || $[42] !== t11 || $[43] !== t12 || $[44] !== t13 || $[45] !== t15 || $[46] !== t17 || $[47] !== t18 || $[48] !== title ? (t19 = /* @__PURE__ */ jsxs(Element2, { "data-hide-inner-stroke": t11, "data-ui": "Avatar", ...rest, "aria-label": title, className: t12, "data-arrow-position": arrowPosition, "data-image-error": t13, title, children: [
3410
- t15,
3411
- t17,
3412
- t18
3413
- ] }), $[39] = Element2, $[40] = arrowPosition, $[41] = rest, $[42] = t11, $[43] = t12, $[44] = t13, $[45] = t15, $[46] = t17, $[47] = t18, $[48] = title, $[49] = t19) : t19 = $[49], t19;
3368
+ ] }), $[35] = handleImageError, $[36] = initials, $[37] = src, $[38] = t17) : t17 = $[38];
3369
+ let t18;
3370
+ return $[39] !== Element2 || $[40] !== arrowPosition || $[41] !== rest || $[42] !== t10 || $[43] !== t11 || $[44] !== t12 || $[45] !== t14 || $[46] !== t16 || $[47] !== t17 || $[48] !== title ? (t18 = /* @__PURE__ */ jsxs(Element2, { "data-hide-inner-stroke": t10, "data-ui": "Avatar", ...rest, "aria-label": title, className: t11, "data-arrow-position": arrowPosition, "data-image-error": t12, title, children: [
3371
+ t14,
3372
+ t16,
3373
+ t17
3374
+ ] }), $[39] = Element2, $[40] = arrowPosition, $[41] = rest, $[42] = t10, $[43] = t11, $[44] = t12, $[45] = t14, $[46] = t16, $[47] = t17, $[48] = title, $[49] = t18) : t18 = $[49], t18;
3414
3375
  }
3415
3376
  function _temp$2(s) {
3416
3377
  return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
@@ -3427,25 +3388,25 @@ function AvatarCounter(props) {
3427
3388
  ...rest
3428
3389
  } = t0, $[0] = t0, $[1] = className, $[2] = count, $[3] = rest, $[4] = t1, $[5] = t2) : (className = $[1], count = $[2], rest = $[3], t1 = $[4], t2 = $[5]);
3429
3390
  const as = t1 === void 0 ? DEFAULT_AVATAR_COUNTER_ELEMENT : t1, size2 = useResponsiveProp(t2 === void 0 ? 1 : t2);
3430
- let t3, t4;
3431
- $[6] !== size2 ? (t4 = Object.values(size2).map(_temp$1), $[6] = size2, $[7] = t4) : t4 = $[7], t3 = t4;
3391
+ let t3;
3392
+ $[6] !== size2 ? (t3 = Object.values(size2).map(_temp$1), $[6] = size2, $[7] = t3) : t3 = $[7];
3432
3393
  const labelSize = t3;
3433
- let t5;
3434
- $[8] !== className || $[9] !== size2 ? (t5 = avatarCounter({
3394
+ let t4;
3395
+ $[8] !== className || $[9] !== size2 ? (t4 = avatarCounter({
3435
3396
  className,
3436
3397
  size: size2
3437
- }), $[8] = className, $[9] = size2, $[10] = t5) : t5 = $[10];
3398
+ }), $[8] = className, $[9] = size2, $[10] = t4) : t4 = $[10];
3399
+ let t5;
3400
+ $[11] !== count || $[12] !== labelSize ? (t5 = /* @__PURE__ */ jsx(Label, { align: "center", as: "span", size: labelSize, weight: "medium", children: count }), $[11] = count, $[12] = labelSize, $[13] = t5) : t5 = $[13];
3438
3401
  let t6;
3439
- $[11] !== count || $[12] !== labelSize ? (t6 = /* @__PURE__ */ jsx(Label, { align: "center", as: "span", size: labelSize, weight: "medium", children: count }), $[11] = count, $[12] = labelSize, $[13] = t6) : t6 = $[13];
3440
- let t7;
3441
- return $[14] !== as || $[15] !== rest || $[16] !== t5 || $[17] !== t6 ? (t7 = /* @__PURE__ */ jsx(Box, { "data-ui": "AvatarCounter", ...rest, alignItems: "center", as, className: t5, display: "flex", flex: "none", justifyContent: "center", paddingX: 2, sizing: "border", children: t6 }), $[14] = as, $[15] = rest, $[16] = t5, $[17] = t6, $[18] = t7) : t7 = $[18], t7;
3402
+ return $[14] !== as || $[15] !== rest || $[16] !== t4 || $[17] !== t5 ? (t6 = /* @__PURE__ */ jsx(Box, { "data-ui": "AvatarCounter", ...rest, alignItems: "center", as, className: t4, display: "flex", flex: "none", justifyContent: "center", paddingX: 2, sizing: "border", children: t5 }), $[14] = as, $[15] = rest, $[16] = t4, $[17] = t5, $[18] = t6) : t6 = $[18], t6;
3442
3403
  }
3443
3404
  function _temp$1(s) {
3444
3405
  return s === 1 ? 1 : s === 2 ? 3 : s === 3 ? 5 : 0;
3445
3406
  }
3446
3407
  const DEFAULT_AVATAR_STACK_ELEMENT = "span";
3447
3408
  function AvatarStack(props) {
3448
- const $ = c(20), t0 = props;
3409
+ const $ = c(27), t0 = props;
3449
3410
  let childrenProp, className, rest, t1, t2, t3;
3450
3411
  $[0] !== t0 ? ({
3451
3412
  as: t1,
@@ -3461,18 +3422,22 @@ function AvatarStack(props) {
3461
3422
  className,
3462
3423
  size: size2
3463
3424
  }), $[7] = className, $[8] = size2, $[9] = t6) : t6 = $[9];
3464
- const t7 = "flex", t8 = "flex-start", t9 = len === 0 && /* @__PURE__ */ jsx(AvatarCounter, { count: len, size: size2 }), t10 = len !== 0 && extraCount > 1 && /* @__PURE__ */ jsx(AvatarCounter, { count: extraCount, size: size2 });
3425
+ const t7 = "flex", t8 = "flex-start";
3426
+ let t9;
3427
+ $[10] !== len || $[11] !== size2 ? (t9 = len === 0 && /* @__PURE__ */ jsx(AvatarCounter, { count: len, size: size2 }), $[10] = len, $[11] = size2, $[12] = t9) : t9 = $[12];
3428
+ let t10;
3429
+ $[13] !== extraCount || $[14] !== len || $[15] !== size2 ? (t10 = len !== 0 && extraCount > 1 && /* @__PURE__ */ jsx(AvatarCounter, { count: extraCount, size: size2 }), $[13] = extraCount, $[14] = len, $[15] = size2, $[16] = t10) : t10 = $[16];
3465
3430
  let t11;
3466
- $[10] !== size2 ? (t11 = (child, childIndex) => /* @__PURE__ */ jsx(Fragment$1, { children: cloneElement(child, {
3431
+ $[17] !== size2 ? (t11 = (child, childIndex) => /* @__PURE__ */ jsx(Fragment$1, { children: cloneElement(child, {
3467
3432
  size: size2
3468
- }) }, String(childIndex)), $[10] = size2, $[11] = t11) : t11 = $[11];
3433
+ }) }, String(childIndex)), $[17] = size2, $[18] = t11) : t11 = $[18];
3469
3434
  const t12 = visibleChildren.map(t11);
3470
3435
  let t13;
3471
- return $[12] !== T0 || $[13] !== as || $[14] !== rest || $[15] !== t10 || $[16] !== t12 || $[17] !== t6 || $[18] !== t9 ? (t13 = /* @__PURE__ */ jsxs(T0, { "data-ui": t4, ...rest, alignItems: t5, as, className: t6, display: t7, justifyContent: t8, children: [
3436
+ return $[19] !== T0 || $[20] !== as || $[21] !== rest || $[22] !== t10 || $[23] !== t12 || $[24] !== t6 || $[25] !== t9 ? (t13 = /* @__PURE__ */ jsxs(T0, { "data-ui": t4, ...rest, alignItems: t5, as, className: t6, display: t7, justifyContent: t8, children: [
3472
3437
  t9,
3473
3438
  t10,
3474
3439
  t12
3475
- ] }), $[12] = T0, $[13] = as, $[14] = rest, $[15] = t10, $[16] = t12, $[17] = t6, $[18] = t9, $[19] = t13) : t13 = $[19], t13;
3440
+ ] }), $[19] = T0, $[20] = as, $[21] = rest, $[22] = t10, $[23] = t12, $[24] = t6, $[25] = t9, $[26] = t13) : t13 = $[26], t13;
3476
3441
  }
3477
3442
  const DEFAULT_BADGE_ELEMENT = "span";
3478
3443
  function Badge(props) {
@@ -3544,67 +3509,99 @@ function Checkbox(props) {
3544
3509
  }
3545
3510
  const LazyRefractor = lazy(() => import("./_chunks-es/Refractor.js")), DEFAULT_CODE_ELEMENT = "pre";
3546
3511
  function Code(props) {
3547
- const $ = c(25), t0 = props;
3548
- let children, className, languageProp, rest, t1, t2, t3;
3512
+ const $ = c(41), t0 = props;
3513
+ let children, className, languageProp, margin, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, maxWidth, rest, t1, t2, t3;
3549
3514
  $[0] !== t0 ? ({
3550
3515
  as: t1,
3551
3516
  children,
3552
3517
  className,
3553
3518
  language: languageProp,
3519
+ margin,
3520
+ marginX,
3521
+ marginY,
3522
+ marginTop,
3523
+ marginRight,
3524
+ marginBottom,
3525
+ marginLeft,
3526
+ maxWidth,
3554
3527
  size: t2,
3555
3528
  weight: t3,
3556
3529
  ...rest
3557
- } = t0, $[0] = t0, $[1] = children, $[2] = className, $[3] = languageProp, $[4] = rest, $[5] = t1, $[6] = t2, $[7] = t3) : (children = $[1], className = $[2], languageProp = $[3], rest = $[4], t1 = $[5], t2 = $[6], t3 = $[7]);
3530
+ } = t0, $[0] = t0, $[1] = children, $[2] = className, $[3] = languageProp, $[4] = margin, $[5] = marginBottom, $[6] = marginLeft, $[7] = marginRight, $[8] = marginTop, $[9] = marginX, $[10] = marginY, $[11] = maxWidth, $[12] = rest, $[13] = t1, $[14] = t2, $[15] = t3) : (children = $[1], className = $[2], languageProp = $[3], margin = $[4], marginBottom = $[5], marginLeft = $[6], marginRight = $[7], marginTop = $[8], marginX = $[9], marginY = $[10], maxWidth = $[11], rest = $[12], t1 = $[13], t2 = $[14], t3 = $[15]);
3558
3531
  const Element2 = t1 === void 0 ? DEFAULT_CODE_ELEMENT : t1, size2 = t2 === void 0 ? 2 : t2, weight = t3 === void 0 ? "regular" : t3, language = typeof languageProp == "string" ? languageProp : void 0;
3559
3532
  let t4;
3560
- $[8] !== className || $[9] !== size2 || $[10] !== weight ? (t4 = code({
3533
+ $[16] !== className || $[17] !== margin || $[18] !== marginBottom || $[19] !== marginLeft || $[20] !== marginRight || $[21] !== marginTop || $[22] !== marginX || $[23] !== marginY || $[24] !== maxWidth || $[25] !== size2 || $[26] !== weight ? (t4 = code({
3561
3534
  className,
3535
+ margin,
3536
+ marginX,
3537
+ marginY,
3538
+ marginTop,
3539
+ marginRight,
3540
+ marginBottom,
3541
+ marginLeft,
3542
+ maxWidth,
3562
3543
  size: size2,
3563
3544
  weight
3564
- }), $[8] = className, $[9] = size2, $[10] = weight, $[11] = t4) : t4 = $[11];
3545
+ }), $[16] = className, $[17] = margin, $[18] = marginBottom, $[19] = marginLeft, $[20] = marginRight, $[21] = marginTop, $[22] = marginX, $[23] = marginY, $[24] = maxWidth, $[25] = size2, $[26] = weight, $[27] = t4) : t4 = $[27];
3565
3546
  let t5;
3566
- $[12] !== children ? (t5 = /* @__PURE__ */ jsx("code", { children }), $[12] = children, $[13] = t5) : t5 = $[13];
3547
+ $[28] !== children ? (t5 = /* @__PURE__ */ jsx("code", { children }), $[28] = children, $[29] = t5) : t5 = $[29];
3567
3548
  let t6;
3568
- $[14] !== children || $[15] !== language ? (t6 = /* @__PURE__ */ jsx(LazyRefractor, { language, value: children }), $[14] = children, $[15] = language, $[16] = t6) : t6 = $[16];
3549
+ $[30] !== children || $[31] !== language ? (t6 = /* @__PURE__ */ jsx(LazyRefractor, { language, value: children }), $[30] = children, $[31] = language, $[32] = t6) : t6 = $[32];
3569
3550
  let t7;
3570
- $[17] !== t5 || $[18] !== t6 ? (t7 = /* @__PURE__ */ jsx(Suspense, { fallback: t5, children: t6 }), $[17] = t5, $[18] = t6, $[19] = t7) : t7 = $[19];
3551
+ $[33] !== t5 || $[34] !== t6 ? (t7 = /* @__PURE__ */ jsx(Suspense, { fallback: t5, children: t6 }), $[33] = t5, $[34] = t6, $[35] = t7) : t7 = $[35];
3571
3552
  let t8;
3572
- return $[20] !== Element2 || $[21] !== rest || $[22] !== t4 || $[23] !== t7 ? (t8 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Code", ...rest, className: t4, children: t7 }), $[20] = Element2, $[21] = rest, $[22] = t4, $[23] = t7, $[24] = t8) : t8 = $[24], t8;
3553
+ return $[36] !== Element2 || $[37] !== rest || $[38] !== t4 || $[39] !== t7 ? (t8 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Code", ...rest, className: t4, children: t7 }), $[36] = Element2, $[37] = rest, $[38] = t4, $[39] = t7, $[40] = t8) : t8 = $[40], t8;
3573
3554
  }
3574
3555
  const DEFAULT_HEADING_ELEMENT = "div";
3575
3556
  function Heading(props) {
3576
- const $ = c(28), t0 = props;
3577
- let align, children, className, flex, rest, t1, t2, t3, t4, textOverflowProp;
3557
+ const $ = c(44), t0 = props;
3558
+ let align, children, className, flex, margin, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, maxWidth, rest, t1, t2, t3, t4, textOverflowProp;
3578
3559
  $[0] !== t0 ? ({
3579
3560
  align,
3580
3561
  as: t1,
3581
3562
  children,
3582
3563
  className,
3583
3564
  flex,
3565
+ margin,
3566
+ marginX,
3567
+ marginY,
3568
+ marginTop,
3569
+ marginRight,
3570
+ marginBottom,
3571
+ marginLeft,
3572
+ maxWidth,
3584
3573
  muted: t2,
3585
3574
  size: t3,
3586
3575
  textOverflow: textOverflowProp,
3587
3576
  weight: t4,
3588
3577
  ...rest
3589
- } = t0, $[0] = t0, $[1] = align, $[2] = children, $[3] = className, $[4] = flex, $[5] = rest, $[6] = t1, $[7] = t2, $[8] = t3, $[9] = t4, $[10] = textOverflowProp) : (align = $[1], children = $[2], className = $[3], flex = $[4], rest = $[5], t1 = $[6], t2 = $[7], t3 = $[8], t4 = $[9], textOverflowProp = $[10]);
3578
+ } = t0, $[0] = t0, $[1] = align, $[2] = children, $[3] = className, $[4] = flex, $[5] = margin, $[6] = marginBottom, $[7] = marginLeft, $[8] = marginRight, $[9] = marginTop, $[10] = marginX, $[11] = marginY, $[12] = maxWidth, $[13] = rest, $[14] = t1, $[15] = t2, $[16] = t3, $[17] = t4, $[18] = textOverflowProp) : (align = $[1], children = $[2], className = $[3], flex = $[4], margin = $[5], marginBottom = $[6], marginLeft = $[7], marginRight = $[8], marginTop = $[9], marginX = $[10], marginY = $[11], maxWidth = $[12], rest = $[13], t1 = $[14], t2 = $[15], t3 = $[16], t4 = $[17], textOverflowProp = $[18]);
3590
3579
  const Element2 = t1 === void 0 ? DEFAULT_HEADING_ELEMENT : t1, muted = t2 === void 0 ? !1 : t2, size2 = t3 === void 0 ? 2 : t3, weight = t4 === void 0 ? "regular" : t4;
3591
3580
  let t5;
3592
- $[11] !== align || $[12] !== className || $[13] !== flex || $[14] !== muted || $[15] !== size2 || $[16] !== weight ? (t5 = heading({
3581
+ $[19] !== align || $[20] !== className || $[21] !== flex || $[22] !== margin || $[23] !== marginBottom || $[24] !== marginLeft || $[25] !== marginRight || $[26] !== marginTop || $[27] !== marginX || $[28] !== marginY || $[29] !== maxWidth || $[30] !== muted || $[31] !== size2 || $[32] !== weight ? (t5 = heading({
3593
3582
  className,
3594
3583
  align,
3595
3584
  flex,
3585
+ margin,
3586
+ marginX,
3587
+ marginY,
3588
+ marginTop,
3589
+ marginRight,
3590
+ marginBottom,
3591
+ marginLeft,
3592
+ maxWidth,
3596
3593
  muted,
3597
3594
  size: size2,
3598
3595
  weight
3599
- }), $[11] = align, $[12] = className, $[13] = flex, $[14] = muted, $[15] = size2, $[16] = weight, $[17] = t5) : t5 = $[17];
3596
+ }), $[19] = align, $[20] = className, $[21] = flex, $[22] = margin, $[23] = marginBottom, $[24] = marginLeft, $[25] = marginRight, $[26] = marginTop, $[27] = marginX, $[28] = marginY, $[29] = maxWidth, $[30] = muted, $[31] = size2, $[32] = weight, $[33] = t5) : t5 = $[33];
3600
3597
  let t6;
3601
- $[18] !== textOverflowProp ? (t6 = textOverflow({
3598
+ $[34] !== textOverflowProp ? (t6 = textOverflow({
3602
3599
  textOverflow: textOverflowProp
3603
- }), $[18] = textOverflowProp, $[19] = t6) : t6 = $[19];
3600
+ }), $[34] = textOverflowProp, $[35] = t6) : t6 = $[35];
3604
3601
  let t7;
3605
- $[20] !== children || $[21] !== t6 ? (t7 = /* @__PURE__ */ jsx("span", { className: t6, children }), $[20] = children, $[21] = t6, $[22] = t7) : t7 = $[22];
3602
+ $[36] !== children || $[37] !== t6 ? (t7 = /* @__PURE__ */ jsx("span", { className: t6, children }), $[36] = children, $[37] = t6, $[38] = t7) : t7 = $[38];
3606
3603
  let t8;
3607
- return $[23] !== Element2 || $[24] !== rest || $[25] !== t5 || $[26] !== t7 ? (t8 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Heading", ...rest, className: t5, children: t7 }), $[23] = Element2, $[24] = rest, $[25] = t5, $[26] = t7, $[27] = t8) : t8 = $[27], t8;
3604
+ return $[39] !== Element2 || $[40] !== rest || $[41] !== t5 || $[42] !== t7 ? (t8 = /* @__PURE__ */ jsx(Element2, { "data-ui": "Heading", ...rest, className: t5, children: t7 }), $[39] = Element2, $[40] = rest, $[41] = t5, $[42] = t7, $[43] = t8) : t8 = $[43], t8;
3608
3605
  }
3609
3606
  const DEFAULT_INLINE_ELEMENT = "div";
3610
3607
  function Inline(props) {
@@ -3649,73 +3646,74 @@ function Radio(props) {
3649
3646
  let t9;
3650
3647
  $[20] === Symbol.for("react.memo_cache_sentinel") ? (t9 = /* @__PURE__ */ jsx("span", { className: radioPresentation() }), $[20] = t9) : t9 = $[20];
3651
3648
  let t10;
3652
- return $[21] !== style || $[22] !== t3 || $[23] !== t8 ? (t10 = /* @__PURE__ */ jsxs("div", { className: t3, "data-ui": "Radio", style, children: [
3649
+ return $[21] !== style || $[22] !== t3 || $[23] !== t8 ? (t10 = /* @__PURE__ */ jsxs("span", { className: t3, "data-ui": "Radio", style, children: [
3653
3650
  t8,
3654
3651
  t9
3655
3652
  ] }), $[21] = style, $[22] = t3, $[23] = t8, $[24] = t10) : t10 = $[24], t10;
3656
3653
  }
3657
3654
  const DEFAULT_SELECT_ELEMENT = "select";
3658
3655
  function Select(props) {
3659
- const $ = c(37), t0 = props;
3660
- let children, customValidity, disabled, forwardedRef, readOnly, rest, t1, t2, t3, t4, t5, t6;
3656
+ const $ = c(41), t0 = props;
3657
+ let children, customValidity, disabled, flex, forwardedRef, readOnly, rest, t1, t2, t3, t4, t5, t6, t7;
3661
3658
  $[0] !== t0 ? ({
3662
3659
  as: t1,
3663
3660
  border: t2,
3664
3661
  children,
3665
3662
  customValidity,
3666
3663
  disabled,
3664
+ flex,
3667
3665
  fontSize: t3,
3668
3666
  gap: t4,
3669
3667
  padding: t5,
3670
3668
  radius: t6,
3671
3669
  readOnly,
3672
3670
  ref: forwardedRef,
3671
+ width: t7,
3673
3672
  ...rest
3674
- } = t0, $[0] = t0, $[1] = children, $[2] = customValidity, $[3] = disabled, $[4] = forwardedRef, $[5] = readOnly, $[6] = rest, $[7] = t1, $[8] = t2, $[9] = t3, $[10] = t4, $[11] = t5, $[12] = t6) : (children = $[1], customValidity = $[2], disabled = $[3], forwardedRef = $[4], readOnly = $[5], rest = $[6], t1 = $[7], t2 = $[8], t3 = $[9], t4 = $[10], t5 = $[11], t6 = $[12]);
3675
- const Element2 = t1 === void 0 ? DEFAULT_SELECT_ELEMENT : t1, border = t2 === void 0 ? !0 : t2, fontSize = t3 === void 0 ? 2 : t3, gap = t4 === void 0 ? 2 : t4, padding = t5 === void 0 ? 3 : t5, radius = t6 === void 0 ? 1 : t6, ref = useRef(null);
3676
- let t7;
3677
- $[13] === Symbol.for("react.memo_cache_sentinel") ? (t7 = () => ref.current, $[13] = t7) : t7 = $[13], useImperativeHandle(forwardedRef, t7), useCustomValidity(ref, customValidity);
3673
+ } = t0, $[0] = t0, $[1] = children, $[2] = customValidity, $[3] = disabled, $[4] = flex, $[5] = forwardedRef, $[6] = readOnly, $[7] = rest, $[8] = t1, $[9] = t2, $[10] = t3, $[11] = t4, $[12] = t5, $[13] = t6, $[14] = t7) : (children = $[1], customValidity = $[2], disabled = $[3], flex = $[4], forwardedRef = $[5], readOnly = $[6], rest = $[7], t1 = $[8], t2 = $[9], t3 = $[10], t4 = $[11], t5 = $[12], t6 = $[13], t7 = $[14]);
3674
+ const Element2 = t1 === void 0 ? DEFAULT_SELECT_ELEMENT : t1, border = t2 === void 0 ? !0 : t2, fontSize = t3 === void 0 ? 2 : t3, gap = t4 === void 0 ? 2 : t4, padding = t5 === void 0 ? 3 : t5, radius = t6 === void 0 ? 1 : t6, width = t7 === void 0 ? "fill" : t7, ref = useRef(null);
3678
3675
  let t8;
3679
- $[14] !== border || $[15] !== fontSize || $[16] !== gap || $[17] !== padding || $[18] !== radius ? (t8 = select({
3676
+ $[15] === Symbol.for("react.memo_cache_sentinel") ? (t8 = () => ref.current, $[15] = t8) : t8 = $[15], useImperativeHandle(forwardedRef, t8), useCustomValidity(ref, customValidity);
3677
+ let t9;
3678
+ $[16] !== border || $[17] !== flex || $[18] !== fontSize || $[19] !== gap || $[20] !== padding || $[21] !== radius || $[22] !== width ? (t9 = select({
3680
3679
  border,
3681
3680
  fontSize,
3681
+ flex,
3682
3682
  gap,
3683
3683
  padding,
3684
- radius
3685
- }), $[14] = border, $[15] = fontSize, $[16] = gap, $[17] = padding, $[18] = radius, $[19] = t8) : t8 = $[19];
3686
- let t9;
3687
- $[20] === Symbol.for("react.memo_cache_sentinel") ? (t9 = _inputElement(), $[20] = t9) : t9 = $[20];
3688
- const t10 = disabled || readOnly;
3689
- let t11;
3690
- $[21] !== Element2 || $[22] !== children || $[23] !== rest || $[24] !== t10 ? (t11 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t9, disabled: t10, ref, children }), $[21] = Element2, $[22] = children, $[23] = rest, $[24] = t10, $[25] = t11) : t11 = $[25];
3684
+ radius,
3685
+ width
3686
+ }), $[16] = border, $[17] = flex, $[18] = fontSize, $[19] = gap, $[20] = padding, $[21] = radius, $[22] = width, $[23] = t9) : t9 = $[23];
3687
+ let t10;
3688
+ $[24] === Symbol.for("react.memo_cache_sentinel") ? (t10 = _inputElement(), $[24] = t10) : t10 = $[24];
3689
+ const t11 = disabled || readOnly;
3691
3690
  let t12;
3692
- $[26] === Symbol.for("react.memo_cache_sentinel") ? (t12 = selectPresentation(), $[26] = t12) : t12 = $[26];
3691
+ $[25] !== Element2 || $[26] !== children || $[27] !== rest || $[28] !== t11 ? (t12 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t10, disabled: t11, ref, children }), $[25] = Element2, $[26] = children, $[27] = rest, $[28] = t11, $[29] = t12) : t12 = $[29];
3693
3692
  let t13;
3694
- $[27] === Symbol.for("react.memo_cache_sentinel") ? (t13 = /* @__PURE__ */ jsx(ChevronDownIcon, {}), $[27] = t13) : t13 = $[27];
3693
+ $[30] === Symbol.for("react.memo_cache_sentinel") ? (t13 = selectPresentation(), $[30] = t13) : t13 = $[30];
3695
3694
  let t14;
3696
- $[28] !== fontSize ? (t14 = /* @__PURE__ */ jsx(Text, { size: fontSize, children: t13 }), $[28] = fontSize, $[29] = t14) : t14 = $[29];
3695
+ $[31] === Symbol.for("react.memo_cache_sentinel") ? (t14 = /* @__PURE__ */ jsx(ChevronDownIcon, {}), $[31] = t14) : t14 = $[31];
3697
3696
  let t15;
3698
- $[30] !== padding || $[31] !== t14 ? (t15 = /* @__PURE__ */ jsx("span", { className: t12, children: /* @__PURE__ */ jsx(Box, { as: "span", display: "inline-block", padding, children: t14 }) }), $[30] = padding, $[31] = t14, $[32] = t15) : t15 = $[32];
3697
+ $[32] !== fontSize ? (t15 = /* @__PURE__ */ jsx(Text, { size: fontSize, children: t14 }), $[32] = fontSize, $[33] = t15) : t15 = $[33];
3699
3698
  let t16;
3700
- return $[33] !== t11 || $[34] !== t15 || $[35] !== t8 ? (t16 = /* @__PURE__ */ jsxs("div", { "data-ui": "Select", className: t8, "data-icon-right": "", children: [
3701
- t11,
3702
- t15
3703
- ] }), $[33] = t11, $[34] = t15, $[35] = t8, $[36] = t16) : t16 = $[36], t16;
3699
+ $[34] !== padding || $[35] !== t15 ? (t16 = /* @__PURE__ */ jsx("span", { className: t13, children: /* @__PURE__ */ jsx(Box, { as: "span", display: "inline-block", padding, children: t15 }) }), $[34] = padding, $[35] = t15, $[36] = t16) : t16 = $[36];
3700
+ let t17;
3701
+ return $[37] !== t12 || $[38] !== t16 || $[39] !== t9 ? (t17 = /* @__PURE__ */ jsxs("span", { "data-ui": "Select", className: t9, "data-icon-right": "", children: [
3702
+ t12,
3703
+ t16
3704
+ ] }), $[37] = t12, $[38] = t16, $[39] = t9, $[40] = t17) : t17 = $[40], t17;
3704
3705
  }
3705
3706
  const DEFAULT_SKELETON_ELEMENT = "div";
3706
3707
  function Skeleton(props) {
3707
- const $ = c(18), t0 = props;
3708
- let className, delay, rest, t1, t2;
3709
- $[0] !== t0 ? ({
3710
- as: t1,
3711
- animated: t2,
3708
+ const $ = c(9), {
3709
+ as: t0,
3710
+ animated: t1,
3712
3711
  className,
3713
3712
  delay,
3714
3713
  ...rest
3715
- } = t0, $[0] = t0, $[1] = className, $[2] = delay, $[3] = rest, $[4] = t1, $[5] = t2) : (className = $[1], delay = $[2], rest = $[3], t1 = $[4], t2 = $[5]);
3716
- const As = t1 === void 0 ? DEFAULT_SKELETON_ELEMENT : t1, animated = t2 === void 0 ? !1 : t2, [visible, setVisible] = useState(!delay);
3717
- let t3, t4;
3718
- $[6] !== delay ? (t3 = () => {
3714
+ } = props, As = t0 === void 0 ? DEFAULT_SKELETON_ELEMENT : t0, animated = t1 === void 0 ? !1 : t1, [visible, setVisible] = useState(!delay);
3715
+ let t2, t3;
3716
+ $[0] !== delay ? (t2 = () => {
3719
3717
  if (!delay)
3720
3718
  return setVisible(!0);
3721
3719
  const timeout = setTimeout(() => {
@@ -3724,15 +3722,13 @@ function Skeleton(props) {
3724
3722
  return () => {
3725
3723
  clearTimeout(timeout);
3726
3724
  };
3727
- }, t4 = [delay], $[6] = delay, $[7] = t3, $[8] = t4) : (t3 = $[7], t4 = $[8]), useEffect(t3, t4);
3728
- let t5;
3729
- $[9] !== className || $[10] !== rest ? (t5 = skeleton({
3725
+ }, t3 = [delay], $[0] = delay, $[1] = t2, $[2] = t3) : (t2 = $[1], t3 = $[2]), useEffect(t2, t3);
3726
+ const t4 = "Skeleton", t5 = skeleton({
3730
3727
  className,
3731
3728
  ...rest
3732
- }), $[9] = className, $[10] = rest, $[11] = t5) : t5 = $[11];
3733
- const t6 = animated ? "" : void 0, t7 = visible ? "" : void 0;
3729
+ }), t6 = animated ? "" : void 0, t7 = visible ? "" : void 0;
3734
3730
  let t8;
3735
- return $[12] !== As || $[13] !== rest || $[14] !== t5 || $[15] !== t6 || $[16] !== t7 ? (t8 = /* @__PURE__ */ jsx(As, { "data-ui": "Skeleton", ...rest, className: t5, "data-animated": t6, "data-visible": t7 }), $[12] = As, $[13] = rest, $[14] = t5, $[15] = t6, $[16] = t7, $[17] = t8) : t8 = $[17], t8;
3731
+ return $[3] !== As || $[4] !== rest || $[5] !== t5 || $[6] !== t6 || $[7] !== t7 ? (t8 = /* @__PURE__ */ jsx(As, { "data-ui": t4, ...rest, className: t5, "data-animated": t6, "data-visible": t7 }), $[3] = As, $[4] = rest, $[5] = t5, $[6] = t6, $[7] = t7, $[8] = t8) : t8 = $[8], t8;
3736
3732
  }
3737
3733
  const DEFAULT_CODE_SKELETON_ELEMENT = "div";
3738
3734
  function CodeSkeleton(props) {
@@ -3826,8 +3822,8 @@ function SrOnly(props) {
3826
3822
  }
3827
3823
  const DEFAULT_SWITCH_ELEMENT = "input";
3828
3824
  function Switch(props) {
3829
- const $ = c(26), t0 = props;
3830
- let className, disabled, forwardedRef, indeterminate, readOnly, rest, style, t1;
3825
+ const $ = c(24), t0 = props;
3826
+ let className, disabled, forwardedRef, indeterminate, readOnly, rest, t1;
3831
3827
  $[0] !== t0 ? ({
3832
3828
  as: t1,
3833
3829
  className,
@@ -3835,78 +3831,83 @@ function Switch(props) {
3835
3831
  indeterminate,
3836
3832
  readOnly,
3837
3833
  ref: forwardedRef,
3838
- style,
3839
3834
  ...rest
3840
- } = t0, $[0] = t0, $[1] = className, $[2] = disabled, $[3] = forwardedRef, $[4] = indeterminate, $[5] = readOnly, $[6] = rest, $[7] = style, $[8] = t1) : (className = $[1], disabled = $[2], forwardedRef = $[3], indeterminate = $[4], readOnly = $[5], rest = $[6], style = $[7], t1 = $[8]);
3835
+ } = t0, $[0] = t0, $[1] = className, $[2] = disabled, $[3] = forwardedRef, $[4] = indeterminate, $[5] = readOnly, $[6] = rest, $[7] = t1) : (className = $[1], disabled = $[2], forwardedRef = $[3], indeterminate = $[4], readOnly = $[5], rest = $[6], t1 = $[7]);
3841
3836
  const Element2 = t1 === void 0 ? DEFAULT_SWITCH_ELEMENT : t1, ref = useRef(null);
3842
3837
  let t2;
3843
- $[9] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => ref.current, $[9] = t2) : t2 = $[9], useImperativeHandle(forwardedRef, t2);
3838
+ $[8] === Symbol.for("react.memo_cache_sentinel") ? (t2 = () => ref.current, $[8] = t2) : t2 = $[8], useImperativeHandle(forwardedRef, t2);
3844
3839
  let t3, t4;
3845
- $[10] !== indeterminate ? (t3 = () => {
3840
+ $[9] !== indeterminate ? (t3 = () => {
3846
3841
  ref.current && (ref.current.indeterminate = indeterminate || !1);
3847
- }, t4 = [indeterminate], $[10] = indeterminate, $[11] = t3, $[12] = t4) : (t3 = $[11], t4 = $[12]), useEffect(t3, t4);
3842
+ }, t4 = [indeterminate], $[9] = indeterminate, $[10] = t3, $[11] = t4) : (t3 = $[10], t4 = $[11]), useEffect(t3, t4);
3848
3843
  let t5;
3849
- $[13] !== className ? (t5 = _switch({
3844
+ $[12] !== className ? (t5 = _switch({
3850
3845
  className
3851
- }), $[13] = className, $[14] = t5) : t5 = $[14];
3846
+ }), $[12] = className, $[13] = t5) : t5 = $[13];
3852
3847
  let t6;
3853
- $[15] === Symbol.for("react.memo_cache_sentinel") ? (t6 = _switchElement(), $[15] = t6) : t6 = $[15];
3848
+ $[14] === Symbol.for("react.memo_cache_sentinel") ? (t6 = _switchElement(), $[14] = t6) : t6 = $[14];
3854
3849
  const t7 = !disabled && readOnly ? "" : void 0, t8 = disabled || readOnly;
3855
3850
  let t9;
3856
- $[16] !== Element2 || $[17] !== rest || $[18] !== t7 || $[19] !== t8 ? (t9 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t6, "data-read-only": t7, disabled: t8, type: "checkbox", ref }), $[16] = Element2, $[17] = rest, $[18] = t7, $[19] = t8, $[20] = t9) : t9 = $[20];
3851
+ $[15] !== Element2 || $[16] !== rest || $[17] !== t7 || $[18] !== t8 ? (t9 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t6, "data-read-only": t7, disabled: t8, type: "checkbox", ref }), $[15] = Element2, $[16] = rest, $[17] = t7, $[18] = t8, $[19] = t9) : t9 = $[19];
3857
3852
  let t10;
3858
- $[21] === Symbol.for("react.memo_cache_sentinel") ? (t10 = /* @__PURE__ */ jsxs("span", { "aria-hidden": !0, className: _switchPresentation(), children: [
3853
+ $[20] === Symbol.for("react.memo_cache_sentinel") ? (t10 = /* @__PURE__ */ jsxs("span", { "aria-hidden": !0, className: _switchPresentation(), children: [
3859
3854
  /* @__PURE__ */ jsx("span", { className: _switchTrack() }),
3860
3855
  /* @__PURE__ */ jsx("span", { className: _switchThumb() })
3861
- ] }), $[21] = t10) : t10 = $[21];
3856
+ ] }), $[20] = t10) : t10 = $[20];
3862
3857
  let t11;
3863
- return $[22] !== style || $[23] !== t5 || $[24] !== t9 ? (t11 = /* @__PURE__ */ jsxs(Box, { className: t5, "data-ui": "Switch", display: "block", position: "relative", style, children: [
3858
+ return $[21] !== t5 || $[22] !== t9 ? (t11 = /* @__PURE__ */ jsxs("span", { className: t5, "data-ui": "Switch", children: [
3864
3859
  t9,
3865
3860
  t10
3866
- ] }), $[22] = style, $[23] = t5, $[24] = t9, $[25] = t11) : t11 = $[25], t11;
3861
+ ] }), $[21] = t5, $[22] = t9, $[23] = t11) : t11 = $[23], t11;
3867
3862
  }
3868
3863
  const DEFAULT_TEXT_AREA_ELEMENT = "textarea";
3869
3864
  function TextArea(props) {
3870
- const $ = c(33), t0 = props;
3871
- let __unstable_disableFocusRing, customValidity, forwardedRef, readOnly, rest, t1, t2, t3, t4, t5, t6, t7;
3865
+ const $ = c(39), t0 = props;
3866
+ let __unstable_disableFocusRing, className, customValidity, flex, forwardedRef, readOnly, rest, t1, t2, t3, t4, t5, t6, t7, width;
3872
3867
  $[0] !== t0 ? ({
3873
3868
  __unstable_disableFocusRing,
3874
3869
  as: t1,
3875
3870
  border: t2,
3871
+ className,
3876
3872
  customValidity,
3877
3873
  disabled: t3,
3874
+ flex,
3878
3875
  fontSize: t4,
3879
3876
  gap: t5,
3880
3877
  padding: t6,
3881
3878
  radius: t7,
3882
3879
  readOnly,
3883
3880
  ref: forwardedRef,
3881
+ width,
3884
3882
  ...rest
3885
- } = t0, $[0] = t0, $[1] = __unstable_disableFocusRing, $[2] = customValidity, $[3] = forwardedRef, $[4] = readOnly, $[5] = rest, $[6] = t1, $[7] = t2, $[8] = t3, $[9] = t4, $[10] = t5, $[11] = t6, $[12] = t7) : (__unstable_disableFocusRing = $[1], customValidity = $[2], forwardedRef = $[3], readOnly = $[4], rest = $[5], t1 = $[6], t2 = $[7], t3 = $[8], t4 = $[9], t5 = $[10], t6 = $[11], t7 = $[12]);
3883
+ } = t0, $[0] = t0, $[1] = __unstable_disableFocusRing, $[2] = className, $[3] = customValidity, $[4] = flex, $[5] = forwardedRef, $[6] = readOnly, $[7] = rest, $[8] = t1, $[9] = t2, $[10] = t3, $[11] = t4, $[12] = t5, $[13] = t6, $[14] = t7, $[15] = width) : (__unstable_disableFocusRing = $[1], className = $[2], customValidity = $[3], flex = $[4], forwardedRef = $[5], readOnly = $[6], rest = $[7], t1 = $[8], t2 = $[9], t3 = $[10], t4 = $[11], t5 = $[12], t6 = $[13], t7 = $[14], width = $[15]);
3886
3884
  const Element2 = t1 === void 0 ? DEFAULT_TEXT_AREA_ELEMENT : t1, border = t2 === void 0 ? !0 : t2, disabled = t3 === void 0 ? !1 : t3, fontSize = t4 === void 0 ? 2 : t4, gap = t5 === void 0 ? 3 : t5, padding = t6 === void 0 ? 3 : t6, radius = t7 === void 0 ? 2 : t7, ref = useRef(null);
3887
3885
  let t8;
3888
- $[13] === Symbol.for("react.memo_cache_sentinel") ? (t8 = () => ref.current, $[13] = t8) : t8 = $[13], useImperativeHandle(forwardedRef, t8), useCustomValidity(ref, customValidity);
3886
+ $[16] === Symbol.for("react.memo_cache_sentinel") ? (t8 = () => ref.current, $[16] = t8) : t8 = $[16], useImperativeHandle(forwardedRef, t8), useCustomValidity(ref, customValidity);
3889
3887
  let t9;
3890
- $[14] !== border || $[15] !== fontSize || $[16] !== gap || $[17] !== padding || $[18] !== radius ? (t9 = textArea({
3888
+ $[17] !== border || $[18] !== className || $[19] !== flex || $[20] !== fontSize || $[21] !== gap || $[22] !== padding || $[23] !== radius || $[24] !== width ? (t9 = textArea({
3889
+ className,
3891
3890
  border,
3891
+ flex,
3892
3892
  fontSize,
3893
+ gap,
3893
3894
  padding,
3894
3895
  radius,
3895
- gap
3896
- }), $[14] = border, $[15] = fontSize, $[16] = gap, $[17] = padding, $[18] = radius, $[19] = t9) : t9 = $[19];
3896
+ width
3897
+ }), $[17] = border, $[18] = className, $[19] = flex, $[20] = fontSize, $[21] = gap, $[22] = padding, $[23] = radius, $[24] = width, $[25] = t9) : t9 = $[25];
3897
3898
  const t10 = customValidity ? "" : void 0, t11 = !disabled && readOnly ? "" : void 0;
3898
3899
  let t12;
3899
- $[20] === Symbol.for("react.memo_cache_sentinel") ? (t12 = _inputElement(), $[20] = t12) : t12 = $[20];
3900
+ $[26] === Symbol.for("react.memo_cache_sentinel") ? (t12 = _inputElement(), $[26] = t12) : t12 = $[26];
3900
3901
  const t13 = __unstable_disableFocusRing ? "" : void 0;
3901
3902
  let t14;
3902
- $[21] !== Element2 || $[22] !== disabled || $[23] !== readOnly || $[24] !== rest || $[25] !== t13 ? (t14 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t12, "data-no-focus-ring": t13, disabled, readOnly, ref }), $[21] = Element2, $[22] = disabled, $[23] = readOnly, $[24] = rest, $[25] = t13, $[26] = t14) : t14 = $[26];
3903
+ $[27] !== Element2 || $[28] !== disabled || $[29] !== readOnly || $[30] !== rest || $[31] !== t13 ? (t14 = /* @__PURE__ */ jsx(Element2, { ...rest, className: t12, "data-no-focus-ring": t13, disabled, readOnly, ref }), $[27] = Element2, $[28] = disabled, $[29] = readOnly, $[30] = rest, $[31] = t13, $[32] = t14) : t14 = $[32];
3903
3904
  let t15;
3904
- $[27] === Symbol.for("react.memo_cache_sentinel") ? (t15 = /* @__PURE__ */ jsx("span", { className: _inputPresentation() }), $[27] = t15) : t15 = $[27];
3905
+ $[33] === Symbol.for("react.memo_cache_sentinel") ? (t15 = /* @__PURE__ */ jsx("span", { className: _inputPresentation() }), $[33] = t15) : t15 = $[33];
3905
3906
  let t16;
3906
- return $[28] !== t10 || $[29] !== t11 || $[30] !== t14 || $[31] !== t9 ? (t16 = /* @__PURE__ */ jsxs("span", { className: t9, "data-invalid": t10, "data-read-only": t11, "data-ui": "TextArea", children: [
3907
+ return $[34] !== t10 || $[35] !== t11 || $[36] !== t14 || $[37] !== t9 ? (t16 = /* @__PURE__ */ jsxs("span", { className: t9, "data-invalid": t10, "data-read-only": t11, "data-ui": "TextArea", children: [
3907
3908
  t14,
3908
3909
  t15
3909
- ] }), $[28] = t10, $[29] = t11, $[30] = t14, $[31] = t9, $[32] = t16) : t16 = $[32], t16;
3910
+ ] }), $[34] = t10, $[35] = t11, $[36] = t14, $[37] = t9, $[38] = t16) : t16 = $[38], t16;
3910
3911
  }
3911
3912
  function useDelayedState(initialState) {
3912
3913
  const $ = c(3), [state, setState] = useState(initialState), delayedAction = useRef(void 0);
@@ -3961,40 +3962,36 @@ function TooltipLayer(props) {
3961
3962
  tone: t0,
3962
3963
  ...rest
3963
3964
  } = props, $[0] = props, $[1] = animate, $[2] = arrow2, $[3] = arrowRef, $[4] = arrowX, $[5] = arrowY, $[6] = children, $[7] = originX, $[8] = originY, $[9] = padding, $[10] = placement, $[11] = radius, $[12] = rest, $[13] = scheme, $[14] = shadow, $[15] = style, $[16] = t0) : (animate = $[1], arrow2 = $[2], arrowRef = $[3], arrowX = $[4], arrowY = $[5], children = $[6], originX = $[7], originY = $[8], padding = $[9], placement = $[10], radius = $[11], rest = $[12], scheme = $[13], shadow = $[14], style = $[15], t0 = $[16]);
3964
- const tone = t0 === void 0 ? "inherit" : t0;
3965
- let t1;
3966
- const t2 = animate ? "transform" : void 0;
3967
- let t3;
3968
- $[17] !== originX || $[18] !== originY || $[19] !== style || $[20] !== t2 ? (t3 = {
3965
+ const tone = t0 === void 0 ? "inherit" : t0, t1 = animate ? "transform" : void 0;
3966
+ let t2;
3967
+ $[17] !== originX || $[18] !== originY || $[19] !== style || $[20] !== t1 ? (t2 = {
3969
3968
  originX,
3970
3969
  originY,
3971
- willChange: t2,
3970
+ willChange: t1,
3972
3971
  ...style
3973
- }, $[17] = originX, $[18] = originY, $[19] = style, $[20] = t2, $[21] = t3) : t3 = $[21], t1 = t3;
3974
- const rootStyle = t1;
3975
- let t4;
3976
- const t5 = arrowX !== null ? arrowX : void 0, t6 = arrowY !== null ? arrowY : void 0;
3977
- let t7;
3978
- $[22] !== t5 || $[23] !== t6 ? (t7 = {
3979
- left: t5,
3980
- top: t6,
3972
+ }, $[17] = originX, $[18] = originY, $[19] = style, $[20] = t1, $[21] = t2) : t2 = $[21];
3973
+ const rootStyle = t2, t3 = arrowX !== null ? arrowX : void 0, t4 = arrowY !== null ? arrowY : void 0;
3974
+ let t5;
3975
+ $[22] !== t3 || $[23] !== t4 ? (t5 = {
3976
+ left: t3,
3977
+ top: t4,
3981
3978
  right: void 0,
3982
3979
  bottom: void 0
3983
- }, $[22] = t5, $[23] = t6, $[24] = t7) : t7 = $[24], t4 = t7;
3984
- const arrowStyle = t4, t8 = animate ? "" : void 0;
3980
+ }, $[22] = t3, $[23] = t4, $[24] = t5) : t5 = $[24];
3981
+ const arrowStyle = t5, t6 = animate ? "" : void 0;
3982
+ let t7;
3983
+ $[25] !== animate ? (t7 = animate ? ["hidden", "initial"] : void 0, $[25] = animate, $[26] = t7) : t7 = $[26];
3984
+ let t8;
3985
+ $[27] !== animate ? (t8 = animate ? ["visible", "scaleIn"] : void 0, $[27] = animate, $[28] = t8) : t8 = $[28];
3985
3986
  let t9;
3986
- $[25] !== animate ? (t9 = animate ? ["hidden", "initial"] : void 0, $[25] = animate, $[26] = t9) : t9 = $[26];
3987
+ $[29] !== animate ? (t9 = animate ? ["hidden", "scaleOut"] : void 0, $[29] = animate, $[30] = t9) : t9 = $[30];
3987
3988
  let t10;
3988
- $[27] !== animate ? (t10 = animate ? ["visible", "scaleIn"] : void 0, $[27] = animate, $[28] = t10) : t10 = $[28];
3989
+ $[31] !== arrow2 || $[32] !== arrowRef || $[33] !== arrowStyle ? (t10 = arrow2 && /* @__PURE__ */ jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_TOOLTIP_ARROW_WIDTH, height: DEFAULT_TOOLTIP_ARROW_HEIGHT, radius: DEFAULT_TOOLTIP_ARROW_RADIUS }), $[31] = arrow2, $[32] = arrowRef, $[33] = arrowStyle, $[34] = t10) : t10 = $[34];
3989
3990
  let t11;
3990
- $[29] !== animate ? (t11 = animate ? ["hidden", "scaleOut"] : void 0, $[29] = animate, $[30] = t11) : t11 = $[30];
3991
- let t12;
3992
- $[31] !== arrow2 || $[32] !== arrowRef || $[33] !== arrowStyle ? (t12 = arrow2 && /* @__PURE__ */ jsx(Arrow, { ref: arrowRef, style: arrowStyle, width: DEFAULT_TOOLTIP_ARROW_WIDTH, height: DEFAULT_TOOLTIP_ARROW_HEIGHT, radius: DEFAULT_TOOLTIP_ARROW_RADIUS }), $[31] = arrow2, $[32] = arrowRef, $[33] = arrowStyle, $[34] = t12) : t12 = $[34];
3993
- let t13;
3994
- return $[35] !== children || $[36] !== padding || $[37] !== placement || $[38] !== radius || $[39] !== rest || $[40] !== rootStyle || $[41] !== scheme || $[42] !== shadow || $[43] !== t10 || $[44] !== t11 || $[45] !== t12 || $[46] !== t8 || $[47] !== t9 || $[48] !== tone ? (t13 = /* @__PURE__ */ jsxs(Layer, { "data-ui": "Tooltip__layer", ...rest, as: motion.div, "data-animate": t8, "data-placement": placement, padding, radius, scheme, shadow, style: rootStyle, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t9, animate: t10, exit: t11, tone, children: [
3991
+ return $[35] !== children || $[36] !== padding || $[37] !== placement || $[38] !== radius || $[39] !== rest || $[40] !== rootStyle || $[41] !== scheme || $[42] !== shadow || $[43] !== t10 || $[44] !== t6 || $[45] !== t7 || $[46] !== t8 || $[47] !== t9 || $[48] !== tone ? (t11 = /* @__PURE__ */ jsxs(Layer, { "data-ui": "Tooltip__layer", ...rest, as: motion.div, "data-animate": t6, "data-placement": placement, padding, radius, scheme, shadow, style: rootStyle, variants: POPOVER_MOTION_PROPS.card, transition: POPOVER_MOTION_PROPS.transition, initial: t7, animate: t8, exit: t9, tone, children: [
3995
3992
  children,
3996
- t12
3997
- ] }), $[35] = children, $[36] = padding, $[37] = placement, $[38] = radius, $[39] = rest, $[40] = rootStyle, $[41] = scheme, $[42] = shadow, $[43] = t10, $[44] = t11, $[45] = t12, $[46] = t8, $[47] = t9, $[48] = tone, $[49] = t13) : t13 = $[49], t13;
3993
+ t10
3994
+ ] }), $[35] = children, $[36] = padding, $[37] = placement, $[38] = radius, $[39] = rest, $[40] = rootStyle, $[41] = scheme, $[42] = shadow, $[43] = t10, $[44] = t6, $[45] = t7, $[46] = t8, $[47] = t9, $[48] = tone, $[49] = t11) : t11 = $[49], t11;
3998
3995
  }
3999
3996
  const DEFAULT_TOOLTIP_ELEMENT = "div";
4000
3997
  function Tooltip(props) {
@@ -4154,34 +4151,32 @@ function TooltipDelayGroupProvider(props) {
4154
4151
  const $ = c(9), {
4155
4152
  children,
4156
4153
  delay
4157
- } = props, [isGroupActive, setIsGroupActive] = useDelayedState(!1), [openTooltipId, setOpenTooltipId] = useDelayedState(null), openDelay = typeof delay == "number" ? delay : delay?.open || 0, closeDelay = typeof delay == "number" ? delay : delay?.close || 0;
4158
- let t0;
4159
- const t1 = isGroupActive ? 1 : openDelay;
4160
- let t2;
4161
- $[0] !== closeDelay || $[1] !== openTooltipId || $[2] !== setIsGroupActive || $[3] !== setOpenTooltipId || $[4] !== t1 ? (t2 = {
4154
+ } = props, [isGroupActive, setIsGroupActive] = useDelayedState(!1), [openTooltipId, setOpenTooltipId] = useDelayedState(null), openDelay = typeof delay == "number" ? delay : delay?.open || 0, closeDelay = typeof delay == "number" ? delay : delay?.close || 0, t0 = isGroupActive ? 1 : openDelay;
4155
+ let t1;
4156
+ $[0] !== closeDelay || $[1] !== openTooltipId || $[2] !== setIsGroupActive || $[3] !== setOpenTooltipId || $[4] !== t0 ? (t1 = {
4162
4157
  setIsGroupActive,
4163
4158
  openTooltipId,
4164
4159
  setOpenTooltipId,
4165
- openDelay: t1,
4160
+ openDelay: t0,
4166
4161
  closeDelay
4167
- }, $[0] = closeDelay, $[1] = openTooltipId, $[2] = setIsGroupActive, $[3] = setOpenTooltipId, $[4] = t1, $[5] = t2) : t2 = $[5], t0 = t2;
4168
- const value = t0;
4169
- let t3;
4170
- return $[6] !== children || $[7] !== value ? (t3 = /* @__PURE__ */ jsx(TooltipDelayGroupContext.Provider, { value, children }), $[6] = children, $[7] = value, $[8] = t3) : t3 = $[8], t3;
4162
+ }, $[0] = closeDelay, $[1] = openTooltipId, $[2] = setIsGroupActive, $[3] = setOpenTooltipId, $[4] = t0, $[5] = t1) : t1 = $[5];
4163
+ const value = t1;
4164
+ let t2;
4165
+ return $[6] !== children || $[7] !== value ? (t2 = /* @__PURE__ */ jsx(TooltipDelayGroupContext.Provider, { value, children }), $[6] = children, $[7] = value, $[8] = t2) : t2 = $[8], t2;
4171
4166
  }
4172
4167
  function BoundaryElementProvider(props) {
4173
4168
  const $ = c(5), {
4174
4169
  children,
4175
4170
  element
4176
4171
  } = props;
4177
- let t0, t1;
4178
- $[0] !== element ? (t1 = {
4172
+ let t0;
4173
+ $[0] !== element ? (t0 = {
4179
4174
  version: 0,
4180
4175
  element
4181
- }, $[0] = element, $[1] = t1) : t1 = $[1], t0 = t1;
4176
+ }, $[0] = element, $[1] = t0) : t0 = $[1];
4182
4177
  const value = t0;
4183
- let t2;
4184
- return $[2] !== children || $[3] !== value ? (t2 = /* @__PURE__ */ jsx(BoundaryElementContext.Provider, { value, children }), $[2] = children, $[3] = value, $[4] = t2) : t2 = $[4], t2;
4178
+ let t1;
4179
+ return $[2] !== children || $[3] !== value ? (t1 = /* @__PURE__ */ jsx(BoundaryElementContext.Provider, { value, children }), $[2] = children, $[3] = value, $[4] = t1) : t1 = $[4], t1;
4185
4180
  }
4186
4181
  function findMaxBreakpoints(media2, width) {
4187
4182
  const ret = [];
@@ -4206,30 +4201,25 @@ function ElementQuery(props) {
4206
4201
  ref: forwardedRef,
4207
4202
  ...rest
4208
4203
  } = t0, $[0] = t0, $[1] = children, $[2] = forwardedRef, $[3] = mediaProp, $[4] = rest, $[5] = t1) : (children = $[1], forwardedRef = $[2], mediaProp = $[3], rest = $[4], t1 = $[5]);
4209
- const Element2 = t1 === void 0 ? DEFAULT_ELEMENT_QUERY_ELEMENT : t1, breakpoints = mediaProp ?? DEFAULT_BREAKPOINTS, [element, setElement] = useState(null), elementSize = useElementSize(element);
4204
+ const Element2 = t1 === void 0 ? DEFAULT_ELEMENT_QUERY_ELEMENT : t1, breakpoints = mediaProp ?? DEFAULT_BREAKPOINTS, [element, setElement] = useState(null), width = useElementSize(element)?.border.width ?? window.innerWidth;
4210
4205
  let t2;
4211
- t2 = elementSize?.border.width ?? window.innerWidth;
4212
- const width = t2;
4213
- let t3, t4;
4214
4206
  if ($[6] !== breakpoints || $[7] !== width) {
4215
4207
  const eq = findMaxBreakpoints(breakpoints, width);
4216
- t4 = eq.length ? eq.join(" ") : void 0, $[6] = breakpoints, $[7] = width, $[8] = t4;
4208
+ t2 = eq.length ? eq.join(" ") : void 0, $[6] = breakpoints, $[7] = width, $[8] = t2;
4217
4209
  } else
4218
- t4 = $[8];
4219
- t3 = t4;
4220
- const max = t3;
4221
- let t5, t6;
4210
+ t2 = $[8];
4211
+ const max = t2;
4212
+ let t3;
4222
4213
  if ($[9] !== breakpoints || $[10] !== width) {
4223
4214
  const eq_0 = findMinBreakpoints(breakpoints, width);
4224
- t6 = eq_0.length ? eq_0.join(" ") : void 0, $[9] = breakpoints, $[10] = width, $[11] = t6;
4215
+ t3 = eq_0.length ? eq_0.join(" ") : void 0, $[9] = breakpoints, $[10] = width, $[11] = t3;
4225
4216
  } else
4226
- t6 = $[11];
4227
- t5 = t6;
4228
- const min = t5;
4229
- let t7, t8;
4230
- $[12] !== element ? (t7 = () => element, t8 = [element], $[12] = element, $[13] = t7, $[14] = t8) : (t7 = $[13], t8 = $[14]), useImperativeHandle(forwardedRef, t7, t8);
4231
- let t9;
4232
- return $[15] !== Element2 || $[16] !== children || $[17] !== max || $[18] !== min || $[19] !== rest ? (t9 = /* @__PURE__ */ jsx(Element2, { "data-ui": "ElementQuery", ...rest, "data-eq-max": max, "data-eq-min": min, ref: setElement, children }), $[15] = Element2, $[16] = children, $[17] = max, $[18] = min, $[19] = rest, $[20] = t9) : t9 = $[20], t9;
4217
+ t3 = $[11];
4218
+ const min = t3;
4219
+ let t4, t5;
4220
+ $[12] !== element ? (t4 = () => element, t5 = [element], $[12] = element, $[13] = t4, $[14] = t5) : (t4 = $[13], t5 = $[14]), useImperativeHandle(forwardedRef, t4, t5);
4221
+ let t6;
4222
+ return $[15] !== Element2 || $[16] !== children || $[17] !== max || $[18] !== min || $[19] !== rest ? (t6 = /* @__PURE__ */ jsx(Element2, { "data-ui": "ElementQuery", ...rest, "data-eq-max": max, "data-eq-min": min, ref: setElement, children }), $[15] = Element2, $[16] = children, $[17] = max, $[18] = min, $[19] = rest, $[20] = t6) : t6 = $[20], t6;
4233
4223
  }
4234
4224
  class ErrorBoundary extends Component {
4235
4225
  state = {
@@ -4263,22 +4253,20 @@ function PortalProvider(props) {
4263
4253
  children,
4264
4254
  element,
4265
4255
  __unstable_elements: elementsProp
4266
- } = props, elements = useUnique(elementsProp), parentPortal = useContext(PortalContext);
4256
+ } = props, elements = useUnique(elementsProp), parentPortal = use(PortalContext);
4267
4257
  let t0;
4268
4258
  $[0] !== elements || $[1] !== parentPortal ? (t0 = () => elements?.default ?? (parentPortal.element || document.body), $[0] = elements, $[1] = parentPortal, $[2] = t0) : t0 = $[2];
4269
- const fallbackElement = useSyncExternalStore(emptySubscribe, t0, _temp);
4270
- let t1;
4271
- const t2 = element || fallbackElement;
4272
- let t3;
4273
- $[3] !== elements || $[4] !== t2 ? (t3 = {
4259
+ const fallbackElement = useSyncExternalStore(emptySubscribe, t0, _temp), t1 = element || fallbackElement;
4260
+ let t2;
4261
+ $[3] !== elements || $[4] !== t1 ? (t2 = {
4274
4262
  version: 0,
4275
4263
  boundaryElement: null,
4276
- element: t2,
4264
+ element: t1,
4277
4265
  elements
4278
- }, $[3] = elements, $[4] = t2, $[5] = t3) : t3 = $[5], t1 = t3;
4279
- const value = t1;
4280
- let t4;
4281
- return $[6] !== children || $[7] !== value ? (t4 = /* @__PURE__ */ jsx(PortalContext.Provider, { value, children }), $[6] = children, $[7] = value, $[8] = t4) : t4 = $[8], t4;
4266
+ }, $[3] = elements, $[4] = t1, $[5] = t2) : t2 = $[5];
4267
+ const value = t2;
4268
+ let t3;
4269
+ return $[6] !== children || $[7] !== value ? (t3 = /* @__PURE__ */ jsx(PortalContext.Provider, { value, children }), $[6] = children, $[7] = value, $[8] = t3) : t3 = $[8], t3;
4282
4270
  }
4283
4271
  function _temp() {
4284
4272
  return null;