@duro-app/ui 5.13.0 → 5.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/README.md +49 -0
  2. package/dist/{Table-Bms2ftt3.js → Table-DnaoH-h5.js} +747 -635
  3. package/dist/Table-DnaoH-h5.js.map +1 -0
  4. package/dist/components/Button/Button.d.ts.map +1 -1
  5. package/dist/components/ColorMode/ColorMode.d.ts +2 -1
  6. package/dist/components/ColorMode/ColorMode.d.ts.map +1 -1
  7. package/dist/components/ColorMode/storage.d.ts +4 -0
  8. package/dist/components/ColorMode/storage.d.ts.map +1 -0
  9. package/dist/components/ColorMode/styles.css.d.ts +4 -0
  10. package/dist/components/ColorMode/styles.css.d.ts.map +1 -1
  11. package/dist/components/ColorMode/useSystemScheme.d.ts +7 -0
  12. package/dist/components/ColorMode/useSystemScheme.d.ts.map +1 -0
  13. package/dist/components/Combobox/Combobox.d.ts +7 -2
  14. package/dist/components/Combobox/Combobox.d.ts.map +1 -1
  15. package/dist/components/Combobox/comboboxState.d.ts +29 -0
  16. package/dist/components/Combobox/comboboxState.d.ts.map +1 -0
  17. package/dist/components/Combobox/native.css.d.ts +27 -0
  18. package/dist/components/Combobox/native.css.d.ts.map +1 -0
  19. package/dist/components/Combobox/useComboboxRoot.d.ts +6 -10
  20. package/dist/components/Combobox/useComboboxRoot.d.ts.map +1 -1
  21. package/dist/components/Drawer/Drawer.d.ts +5 -2
  22. package/dist/components/Drawer/Drawer.d.ts.map +1 -1
  23. package/dist/components/Drawer/DrawerSnap.stories.d.ts +2 -0
  24. package/dist/components/Drawer/DrawerSnap.stories.d.ts.map +1 -1
  25. package/dist/components/Drawer/native.css.d.ts +4 -0
  26. package/dist/components/Drawer/native.css.d.ts.map +1 -1
  27. package/dist/components/Drawer/styles.css.d.ts +4 -0
  28. package/dist/components/Drawer/styles.css.d.ts.map +1 -1
  29. package/dist/components/Form/FormSubmitContext.d.ts +8 -0
  30. package/dist/components/Form/FormSubmitContext.d.ts.map +1 -0
  31. package/dist/components/Listbox/native.css.d.ts +84 -0
  32. package/dist/components/Listbox/native.css.d.ts.map +1 -0
  33. package/dist/components/QrCode/QrCode.d.ts +8 -0
  34. package/dist/components/QrCode/QrCode.d.ts.map +1 -0
  35. package/dist/components/QrCode/QrCode.meta.d.ts +3 -0
  36. package/dist/components/QrCode/QrCode.meta.d.ts.map +1 -0
  37. package/dist/components/QrCode/QrCode.stories.d.ts +8 -0
  38. package/dist/components/QrCode/QrCode.stories.d.ts.map +1 -0
  39. package/dist/components/QrCode/geometry.d.ts +14 -0
  40. package/dist/components/QrCode/geometry.d.ts.map +1 -0
  41. package/dist/components/QrCode/styles.css.d.ts +9 -0
  42. package/dist/components/QrCode/styles.css.d.ts.map +1 -0
  43. package/dist/components/QrCode/types.d.ts +7 -0
  44. package/dist/components/QrCode/types.d.ts.map +1 -0
  45. package/dist/components/Select/Select.d.ts +9 -2
  46. package/dist/components/Select/Select.d.ts.map +1 -1
  47. package/dist/components/Select/Select.stories.d.ts +11 -0
  48. package/dist/components/Select/Select.stories.d.ts.map +1 -1
  49. package/dist/components/Select/native.css.d.ts +11 -0
  50. package/dist/components/Select/native.css.d.ts.map +1 -0
  51. package/dist/components/Select/selectState.d.ts +21 -0
  52. package/dist/components/Select/selectState.d.ts.map +1 -0
  53. package/dist/components/Select/styles.css.d.ts +10 -0
  54. package/dist/components/Select/styles.css.d.ts.map +1 -1
  55. package/dist/components/Select/useSelectRoot.d.ts +6 -8
  56. package/dist/components/Select/useSelectRoot.d.ts.map +1 -1
  57. package/dist/components/ThemeProvider/ThemeOverrides.stories.d.ts +13 -0
  58. package/dist/components/ThemeProvider/ThemeOverrides.stories.d.ts.map +1 -0
  59. package/dist/components/ThemeProvider/ThemeProvider.d.ts +9 -2
  60. package/dist/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
  61. package/dist/components/ThemeProvider/overrideRule.d.ts +7 -0
  62. package/dist/components/ThemeProvider/overrideRule.d.ts.map +1 -0
  63. package/dist/components/ThemeProvider/overrides.d.ts +16 -0
  64. package/dist/components/ThemeProvider/overrides.d.ts.map +1 -0
  65. package/dist/index.css +1 -1
  66. package/dist/index.d.ts +2 -1
  67. package/dist/index.d.ts.map +1 -1
  68. package/dist/index.js +6230 -4656
  69. package/dist/index.js.map +1 -1
  70. package/dist/shared/textOf.d.ts +7 -0
  71. package/dist/shared/textOf.d.ts.map +1 -0
  72. package/dist/table.js +1 -1
  73. package/package.json +5 -2
  74. package/src/components/Button/Button.tsx +12 -1
  75. package/src/components/ColorMode/ColorMode.meta.ts +1 -1
  76. package/src/components/ColorMode/ColorMode.tsx +16 -37
  77. package/src/components/ColorMode/storage.native.ts +8 -0
  78. package/src/components/ColorMode/storage.ts +19 -0
  79. package/src/components/ColorMode/styles.css.ts +6 -0
  80. package/src/components/ColorMode/useSystemScheme.native.ts +6 -0
  81. package/src/components/ColorMode/useSystemScheme.ts +19 -0
  82. package/src/components/Combobox/Combobox.meta.ts +1 -1
  83. package/src/components/Combobox/Combobox.native.tsx +295 -0
  84. package/src/components/Combobox/Combobox.tsx +14 -8
  85. package/src/components/Combobox/comboboxState.ts +107 -0
  86. package/src/components/Combobox/native.css.ts +33 -0
  87. package/src/components/Combobox/useComboboxRoot.ts +17 -91
  88. package/src/components/Drawer/Drawer.meta.ts +1 -1
  89. package/src/components/Drawer/Drawer.native.tsx +29 -7
  90. package/src/components/Drawer/Drawer.tsx +11 -2
  91. package/src/components/Drawer/DrawerSnap.stories.tsx +22 -2
  92. package/src/components/Drawer/native.css.ts +4 -0
  93. package/src/components/Drawer/styles.css.ts +4 -0
  94. package/src/components/Form/Form.meta.ts +1 -1
  95. package/src/components/Form/Form.native.tsx +120 -0
  96. package/src/components/Form/FormSubmitContext.ts +12 -0
  97. package/src/components/Listbox/Listbox.meta.ts +1 -1
  98. package/src/components/Listbox/Listbox.native.tsx +153 -0
  99. package/src/components/Listbox/native.css.ts +91 -0
  100. package/src/components/QrCode/QrCode.meta.ts +18 -0
  101. package/src/components/QrCode/QrCode.native.tsx +31 -0
  102. package/src/components/QrCode/QrCode.stories.tsx +44 -0
  103. package/src/components/QrCode/QrCode.tsx +30 -0
  104. package/src/components/QrCode/geometry.ts +34 -0
  105. package/src/components/QrCode/styles.css.ts +12 -0
  106. package/src/components/QrCode/types.ts +6 -0
  107. package/src/components/ScrollArea/ScrollArea.meta.ts +1 -1
  108. package/src/components/ScrollArea/ScrollArea.native.tsx +61 -0
  109. package/src/components/Select/Select.meta.ts +1 -1
  110. package/src/components/Select/Select.native.tsx +224 -0
  111. package/src/components/Select/Select.stories.tsx +49 -1
  112. package/src/components/Select/Select.tsx +20 -3
  113. package/src/components/Select/native.css.ts +13 -0
  114. package/src/components/Select/selectState.ts +36 -0
  115. package/src/components/Select/styles.css.ts +11 -0
  116. package/src/components/Select/useSelectRoot.ts +9 -30
  117. package/src/components/ThemeProvider/ThemeOverrides.stories.tsx +113 -0
  118. package/src/components/ThemeProvider/ThemeProvider.meta.ts +1 -1
  119. package/src/components/ThemeProvider/ThemeProvider.native.tsx +36 -7
  120. package/src/components/ThemeProvider/ThemeProvider.tsx +42 -6
  121. package/src/components/ThemeProvider/overrideRule.ts +39 -0
  122. package/src/components/ThemeProvider/overrides.ts +27 -0
  123. package/src/form.native.ts +7 -0
  124. package/src/index.native.ts +16 -0
  125. package/src/index.ts +2 -0
  126. package/src/shared/focusInput.native.ts +18 -0
  127. package/src/shared/textOf.ts +13 -0
  128. package/dist/Table-Bms2ftt3.js.map +0 -1
@@ -1,8 +1,8 @@
1
- import { jsx as W, jsxs as le, Fragment as Pe } from "react/jsx-runtime";
2
- import { c as R, m as S, d as C } from "./compiler-runtime-BuugS4D0.js";
3
- import { useContext as A, createContext as F, useId as Q, useRef as I, useLayoutEffect as ae, useState as ee, useCallback as ye, useEffect as K, Children as ce, isValidElement as Be } from "react";
4
- import { createPortal as Ee } from "react-dom";
5
- const Oe = {
1
+ import { jsx as W, jsxs as ae, Fragment as Pe } from "react/jsx-runtime";
2
+ import { c as R, m as C, d as H } from "./compiler-runtime-BuugS4D0.js";
3
+ import { useContext as O, createContext as A, useId as U, useRef as I, useLayoutEffect as le, useState as ee, useCallback as we, useEffect as _, Children as ce, isValidElement as Ee } from "react";
4
+ import { createPortal as Oe } from "react-dom";
5
+ const Ge = {
6
6
  xs: 4,
7
7
  sm: 8,
8
8
  ms: 12,
@@ -11,7 +11,7 @@ const Oe = {
11
11
  xl: 32,
12
12
  xxl: 48,
13
13
  xxxl: 64
14
- }, Mr = {
14
+ }, Hr = {
15
15
  instant: 0,
16
16
  minimal: 1,
17
17
  quick: 120,
@@ -19,7 +19,7 @@ const Oe = {
19
19
  brisk: 160,
20
20
  base: 200,
21
21
  slow: 280
22
- }, Ge = ["touchTarget", "controlSm", "controlMd", "controlLg", "indicator", "indicatorDot", "checkMarkW", "checkMarkH", "switchTrackW", "switchTrackH", "switchThumb", "iconButton", "iconButtonSm", "spinnerSm", "spinnerMd", "spinnerLg", "glyphXs", "glyphSm", "glyphMd", "iconSm", "iconMd", "iconLg", "iconXl", "iconXxl", "thumbSm", "mediaTileMinW", "glyphClampMax", "timeReadoutW", "navMarkerW", "navMarkerH", "divider", "tabIndicator", "edgeFade", "scrollbar", "swatchW", "swatchH", "labelMinW", "popupMinW", "listMaxH", "listMaxHSm", "dialogSm", "dialogMd", "dialogLg", "panelSm", "panelMd", "panelLg", "toastMaxW", "gridColSm", "gridColMd", "pageSm", "pageMd", "pageLg", "sidebarW", "pageXs", "pageXl", "asideW", "gridColXs", "fieldMinWSm", "fieldMinW", "popoverWSm", "popoverW", "popupMaxW", "meterH", "skeletonChipW", "dropZoneMinH", "canvasMinH", "editorMinH", "toolbarH", "embedW", "colorPickerW", "colorAreaH", "colorTrackH", "colorSwatch", "colorPreviewH", "handle", "chip", "placeholderMinH", "previewMaxH", "barH", "sheetGrabberW", "sheetGrabberH", "readoutW", "sliderW", "paletteMinW", "deviceBarW", "timeGutterW", "dayHeaderH", "timelineLabelW", "appBarH", "dragThumbW", "dragThumbH"], J = {
22
+ }, De = ["touchTarget", "controlSm", "controlMd", "controlLg", "indicator", "indicatorDot", "checkMarkW", "checkMarkH", "switchTrackW", "switchTrackH", "switchThumb", "iconButton", "iconButtonSm", "spinnerSm", "spinnerMd", "spinnerLg", "glyphXs", "glyphSm", "glyphMd", "iconSm", "iconMd", "iconLg", "iconXl", "iconXxl", "thumbSm", "mediaTileMinW", "glyphClampMax", "timeReadoutW", "navMarkerW", "navMarkerH", "divider", "tabIndicator", "edgeFade", "scrollbar", "swatchW", "swatchH", "labelMinW", "popupMinW", "listMaxH", "listMaxHSm", "dialogSm", "dialogMd", "dialogLg", "panelSm", "panelMd", "panelLg", "toastMaxW", "gridColSm", "gridColMd", "pageSm", "pageMd", "pageLg", "sidebarW", "pageXs", "pageXl", "asideW", "gridColXs", "fieldMinWSm", "fieldMinW", "popoverWSm", "popoverW", "popupMaxW", "meterH", "skeletonChipW", "dropZoneMinH", "canvasMinH", "editorMinH", "toolbarH", "embedW", "colorPickerW", "colorAreaH", "colorTrackH", "colorSwatch", "colorPreviewH", "handle", "chip", "placeholderMinH", "previewMaxH", "barH", "sheetGrabberW", "sheetGrabberH", "readoutW", "sliderW", "paletteMinW", "deviceBarW", "timeGutterW", "dayHeaderH", "timelineLabelW", "appBarH", "dragThumbW", "dragThumbH"], Q = {
23
23
  touchTarget: 44,
24
24
  controlSm: 28,
25
25
  controlMd: 39,
@@ -111,12 +111,81 @@ const Oe = {
111
111
  appBarH: 61,
112
112
  dragThumbW: 132,
113
113
  dragThumbH: 99
114
- }, Wr = {
115
- sm: J.iconSm,
116
- md: J.iconMd,
117
- lg: J.iconLg,
118
- xl: J.iconXl,
119
- xxl: J.iconXxl
114
+ }, jr = {
115
+ sm: Q.iconSm,
116
+ md: Q.iconMd,
117
+ lg: Q.iconLg,
118
+ xl: Q.iconXl,
119
+ xxl: Q.iconXxl
120
+ }, Ae = {
121
+ bg: "var(--bg-xqkwqtp)",
122
+ bgCard: "var(--bgCard-xj2l5r)",
123
+ bgCardHover: "var(--bgCardHover-xlxk7vw)",
124
+ text: "var(--text-xlpbogt)",
125
+ textMuted: "var(--textMuted-x651nu9)",
126
+ accent: "var(--accent-xw7wp3v)",
127
+ accentHover: "var(--accentHover-x18fqoz)",
128
+ accentContrast: "var(--accentContrast-x3gzxyp)",
129
+ border: "var(--border-x1drj1pb)",
130
+ error: "var(--error-x13gdhh0)",
131
+ errorHover: "var(--errorHover-x7eyu03)",
132
+ errorBg: "var(--errorBg-xrl8836)",
133
+ errorBorder: "var(--errorBorder-x1a6pjl)",
134
+ errorText: "var(--errorText-xf51nwe)",
135
+ errorContrast: "var(--errorContrast-x1lvjkah)",
136
+ success: "var(--success-x197pe5n)",
137
+ successBg: "var(--successBg-xzjukav)",
138
+ successBorder: "var(--successBorder-x1my3ygc)",
139
+ successText: "var(--successText-x46dg9e)",
140
+ warning: "var(--warning-x1gq0pyw)",
141
+ warningBg: "var(--warningBg-xtnxqss)",
142
+ warningBorder: "var(--warningBorder-x1ev2mr5)",
143
+ warningText: "var(--warningText-x1lgjghx)",
144
+ info: "var(--info-x97ho0r)",
145
+ infoBg: "var(--infoBg-xho8jir)",
146
+ infoBorder: "var(--infoBorder-xnevk3x)",
147
+ infoText: "var(--infoText-x19pseus)",
148
+ highlight: "var(--highlight-x14yvf5c)",
149
+ highlightBg: "var(--highlightBg-x5qhmj2)",
150
+ highlightBorder: "var(--highlightBorder-xd7ycfq)",
151
+ highlightText: "var(--highlightText-x1lyse6a)",
152
+ scrim: "var(--scrim-x2ypej7)",
153
+ inverseFill: "var(--inverseFill-x1il694p)",
154
+ inverseFillHover: "var(--inverseFillHover-xmxqxj9)",
155
+ inverseBorder: "var(--inverseBorder-x1x0j0at)",
156
+ inverseBorderHover: "var(--inverseBorderHover-x12x46ev)",
157
+ fixedLight: "var(--fixedLight-xd608fw)",
158
+ fixedDark: "var(--fixedDark-xy1v4hq)",
159
+ overlayLight: "var(--overlayLight-x71omwc)",
160
+ contrastSurface: "var(--contrastSurface-x1i512m4)",
161
+ onContrastSurface: "var(--onContrastSurface-x1dm0pi1)",
162
+ contrastBorder: "var(--contrastBorder-x1g9he7g)",
163
+ bgInset: "var(--bgInset-x1985064)",
164
+ bgElevated: "var(--bgElevated-x5jb1ex)",
165
+ bgSelected: "var(--bgSelected-x1tz8xx4)",
166
+ pressOverlay: "var(--pressOverlay-xwcyaps)",
167
+ ripple: "var(--ripple-x4boxpx)",
168
+ bgSectionTint: "var(--bgSectionTint-x1jltjee)",
169
+ borderSubtle: "var(--borderSubtle-xazur3r)",
170
+ borderStrong: "var(--borderStrong-x1hk6q8z)",
171
+ surfaceHighlight: "var(--surfaceHighlight-xaxphpr)",
172
+ textSubtle: "var(--textSubtle-x1v06cot)",
173
+ textDisabled: "var(--textDisabled-x1h1b3kn)",
174
+ neutral: "var(--neutral-xomrn58)",
175
+ neutralBg: "var(--neutralBg-x19rt8v4)",
176
+ neutralBorder: "var(--neutralBorder-x5p3bn0)",
177
+ neutralText: "var(--neutralText-x1xjscs0)",
178
+ active: "var(--active-xs7lmjr)",
179
+ activeBg: "var(--activeBg-x35bva0)",
180
+ activeBorder: "var(--activeBorder-x16mx242)",
181
+ activeText: "var(--activeText-x1m8q3u3)",
182
+ accentDisabled: "var(--accentDisabled-x1u9f29m)",
183
+ segmentTrack: "var(--segmentTrack-x1bxdgyc)",
184
+ segmentActive: "var(--segmentActive-xiwz7t0)",
185
+ scrimSoft: "var(--scrimSoft-x1hszvdp)",
186
+ scrimStrong: "var(--scrimStrong-x1bj3i5v)",
187
+ onScrimMuted: "var(--onScrimMuted-xqxo091)",
188
+ __varGroupHash__: "xjvd03b"
120
189
  };
121
190
  /**
122
191
  * @license react-strict-dom
@@ -126,117 +195,117 @@ const Oe = {
126
195
  * LICENSE file in the root directory of this source tree.
127
196
  */
128
197
  const be = {};
129
- function Ae(o) {
198
+ function Fe(o) {
130
199
  process.env.NODE_ENV !== "test" && be[o] || (be[o] = !0, console.error(`[error] React Strict DOM: ${o}`));
131
200
  }
132
- const De = /* @__PURE__ */ new Set(["alt", "aria-activedescendant", "aria-atomic", "aria-autocomplete", "aria-busy", "aria-checked", "aria-colcount", "aria-colindex", "aria-colindextext", "aria-colspan", "aria-controls", "aria-current", "aria-describedby", "aria-details", "aria-disabled", "aria-errormessage", "aria-expanded", "aria-flowto", "aria-haspopup", "aria-hidden", "aria-invalid", "aria-keyshortcuts", "aria-label", "aria-labelledby", "aria-level", "aria-live", "aria-modal", "aria-multiline", "aria-multiselectable", "aria-orientation", "aria-owns", "aria-placeholder", "aria-posinset", "aria-pressed", "aria-readonly", "aria-required", "aria-roledescription", "aria-rowcount", "aria-rowindex", "aria-rowindextext", "aria-rowspan", "aria-selected", "aria-setsize", "aria-sort", "aria-valuemax", "aria-valuemin", "aria-valuenow", "aria-valuetext", "autoCapitalize", "autoComplete", "autoFocus", "checked", "children", "crossOrigin", "decoding", "defaultChecked", "defaultValue", "dir", "disabled", "download", "draggable", "elementTiming", "enterKeyHint", "fetchPriority", "for", "height", "hidden", "href", "id", "inert", "inputMode", "label", "lang", "loading", "max", "maxLength", "min", "minLength", "multiple", "name", "onAuxClick", "onBeforeInput", "onBlur", "onChange", "onClick", "onContextMenu", "onCopy", "onCut", "onError", "onFocus", "onFocusIn", "onFocusOut", "onFullscreenChange", "onFullscreenError", "onGotPointerCapture", "onInput", "onInvalid", "onKeyDown", "onKeyUp", "onLoad", "onLostPointerCapture", "onPaste", "onPointerCancel", "onPointerDown", "onPointerEnter", "onPointerLeave", "onPointerMove", "onPointerOut", "onPointerOver", "onPointerUp", "onScroll", "onSelect", "onSelectionChange", "onWheel", "placeholder", "readOnly", "referrerPolicy", "rel", "required", "role", "rows", "selected", "spellCheck", "src", "srcSet", "step", "style", "tabIndex", "target", "type", "value", "width", "suppressHydrationWarning", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseOut", "onMouseOver", "onMouseUp", "onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart"]);
133
- function Fe(o) {
134
- return De.has(o) || o.indexOf("data-") > -1;
201
+ const Xe = /* @__PURE__ */ new Set(["alt", "aria-activedescendant", "aria-atomic", "aria-autocomplete", "aria-busy", "aria-checked", "aria-colcount", "aria-colindex", "aria-colindextext", "aria-colspan", "aria-controls", "aria-current", "aria-describedby", "aria-details", "aria-disabled", "aria-errormessage", "aria-expanded", "aria-flowto", "aria-haspopup", "aria-hidden", "aria-invalid", "aria-keyshortcuts", "aria-label", "aria-labelledby", "aria-level", "aria-live", "aria-modal", "aria-multiline", "aria-multiselectable", "aria-orientation", "aria-owns", "aria-placeholder", "aria-posinset", "aria-pressed", "aria-readonly", "aria-required", "aria-roledescription", "aria-rowcount", "aria-rowindex", "aria-rowindextext", "aria-rowspan", "aria-selected", "aria-setsize", "aria-sort", "aria-valuemax", "aria-valuemin", "aria-valuenow", "aria-valuetext", "autoCapitalize", "autoComplete", "autoFocus", "checked", "children", "crossOrigin", "decoding", "defaultChecked", "defaultValue", "dir", "disabled", "download", "draggable", "elementTiming", "enterKeyHint", "fetchPriority", "for", "height", "hidden", "href", "id", "inert", "inputMode", "label", "lang", "loading", "max", "maxLength", "min", "minLength", "multiple", "name", "onAuxClick", "onBeforeInput", "onBlur", "onChange", "onClick", "onContextMenu", "onCopy", "onCut", "onError", "onFocus", "onFocusIn", "onFocusOut", "onFullscreenChange", "onFullscreenError", "onGotPointerCapture", "onInput", "onInvalid", "onKeyDown", "onKeyUp", "onLoad", "onLostPointerCapture", "onPaste", "onPointerCancel", "onPointerDown", "onPointerEnter", "onPointerLeave", "onPointerMove", "onPointerOut", "onPointerOver", "onPointerUp", "onScroll", "onSelect", "onSelectionChange", "onWheel", "placeholder", "readOnly", "referrerPolicy", "rel", "required", "role", "rows", "selected", "spellCheck", "src", "srcSet", "step", "style", "tabIndex", "target", "type", "value", "width", "suppressHydrationWarning", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseOut", "onMouseOver", "onMouseUp", "onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart"]);
202
+ function Ve(o) {
203
+ return Xe.has(o) || o.indexOf("data-") > -1;
135
204
  }
136
- var pe = {};
137
- Object.defineProperty(pe, "__esModule", {
205
+ var xe = {};
206
+ Object.defineProperty(xe, "__esModule", {
138
207
  value: !0
139
208
  });
140
- var we = pe.styleq = void 0, Xe = /* @__PURE__ */ new WeakMap(), Ve = "$$css";
141
- function Me(o) {
209
+ var Me = xe.styleq = void 0, _e = /* @__PURE__ */ new WeakMap(), Ke = "$$css";
210
+ function Te(o) {
142
211
  var e, t, r;
143
212
  return o != null && (e = o.disableCache === !0, t = o.disableMix === !0, r = o.transform), function() {
144
- for (var i = [], c = "", l = null, s = "", n = e ? null : Xe, d = new Array(arguments.length), p = 0; p < arguments.length; p++)
145
- d[p] = arguments[p];
213
+ for (var n = [], c = "", a = null, s = "", i = e ? null : _e, d = new Array(arguments.length), u = 0; u < arguments.length; u++)
214
+ d[u] = arguments[u];
146
215
  for (; d.length > 0; ) {
147
- var u = d.pop();
148
- if (!(u == null || u === !1)) {
149
- if (Array.isArray(u)) {
150
- for (var x = 0; x < u.length; x++)
151
- d.push(u[x]);
216
+ var p = d.pop();
217
+ if (!(p == null || p === !1)) {
218
+ if (Array.isArray(p)) {
219
+ for (var x = 0; x < p.length; x++)
220
+ d.push(p[x]);
152
221
  continue;
153
222
  }
154
- var g = r != null ? r(u) : u;
155
- if (g.$$css != null) {
156
- var h = "";
157
- if (n != null && n.has(g)) {
158
- var w = n.get(g);
159
- w != null && (h = w[0], s = w[2], i.push.apply(i, w[1]), n = w[3]);
223
+ var h = r != null ? r(p) : p;
224
+ if (h.$$css != null) {
225
+ var g = "";
226
+ if (i != null && i.has(h)) {
227
+ var b = i.get(h);
228
+ b != null && (g = b[0], s = b[2], n.push.apply(n, b[1]), i = b[3]);
160
229
  } else {
161
- var v = [];
162
- for (var m in g) {
163
- var y = g[m];
164
- if (m === Ve) {
165
- var $ = g[m];
166
- $ !== !0 && (s = s ? $ + "; " + s : $);
230
+ var f = [];
231
+ for (var m in h) {
232
+ var v = h[m];
233
+ if (m === Ke) {
234
+ var S = h[m];
235
+ S !== !0 && (s = s ? S + "; " + s : S);
167
236
  continue;
168
237
  }
169
- typeof y == "string" || y === null ? i.includes(m) || (i.push(m), n != null && v.push(m), typeof y == "string" && (h += h ? " " + y : y)) : console.error("styleq: ".concat(m, " typeof ").concat(String(y), ' is not "string" or "null".'));
238
+ typeof v == "string" || v === null ? n.includes(m) || (n.push(m), i != null && f.push(m), typeof v == "string" && (g += g ? " " + v : v)) : console.error("styleq: ".concat(m, " typeof ").concat(String(v), ' is not "string" or "null".'));
170
239
  }
171
- if (n != null) {
172
- var H = /* @__PURE__ */ new WeakMap();
173
- n.set(g, [h, v, s, H]), n = H;
240
+ if (i != null) {
241
+ var $ = /* @__PURE__ */ new WeakMap();
242
+ i.set(h, [g, f, s, $]), i = $;
174
243
  }
175
244
  }
176
- h && (c = c ? h + " " + c : h);
245
+ g && (c = c ? g + " " + c : g);
177
246
  } else if (t)
178
- l == null && (l = {}), l = Object.assign({}, g, l);
247
+ a == null && (a = {}), a = Object.assign({}, h, a);
179
248
  else {
180
- var T = null;
181
- for (var z in g) {
182
- var B = g[z];
183
- B !== void 0 && (i.includes(z) || (B != null && (l == null && (l = {}), T == null && (T = {}), T[z] = B), i.push(z), n = null));
249
+ var M = null;
250
+ for (var j in h) {
251
+ var z = h[j];
252
+ z !== void 0 && (n.includes(j) || (z != null && (a == null && (a = {}), M == null && (M = {}), M[j] = z), n.push(j), i = null));
184
253
  }
185
- T != null && (l = Object.assign(T, l));
254
+ M != null && (a = Object.assign(M, a));
186
255
  }
187
256
  }
188
257
  }
189
- var E = [c, l, s];
258
+ var E = [c, a, s];
190
259
  return E;
191
260
  };
192
261
  }
193
- var Ke = we = pe.styleq = Me();
194
- Ke.factory = Me;
195
- const _e = we.factory({
262
+ var Ne = Me = xe.styleq = Te();
263
+ Ne.factory = Te;
264
+ const Ye = Me.factory({
196
265
  disableMix: !0
197
266
  });
198
- function Ne(...o) {
199
- const [e, t, r] = _e(o), a = {};
200
- if (e != null && e !== "" && (a.className = e), t != null && (a.style = t), r != null && r !== "") {
201
- const i = r.split(";"), c = {};
202
- for (const l of i) {
203
- const s = l.trim(), [n, d] = s.split(":");
204
- d != null && (c[n] = c[n] != null ? `${c[n]},${d}` : d);
267
+ function Ze(...o) {
268
+ const [e, t, r] = Ye(o), l = {};
269
+ if (e != null && e !== "" && (l.className = e), t != null && (l.style = t), r != null && r !== "") {
270
+ const n = r.split(";"), c = {};
271
+ for (const a of n) {
272
+ const s = a.trim(), [i, d] = s.split(":");
273
+ d != null && (c[i] = c[i] != null ? `${c[i]},${d}` : d);
205
274
  }
206
- a["data-style-src"] = Object.keys(c).map((l) => `${l}:${c[l]}`).join("; ");
275
+ l["data-style-src"] = Object.keys(c).map((a) => `${a}:${c[a]}`).join("; ");
207
276
  }
208
- return a;
277
+ return l;
209
278
  }
210
- function Ye(o) {
279
+ function Ue(o) {
211
280
  Object.keys(o).forEach((e) => {
212
- Fe(e) || (Ae(`invalid prop "${e}"`), delete o[e]);
281
+ Ve(e) || (Fe(`invalid prop "${e}"`), delete o[e]);
213
282
  });
214
283
  }
215
- function b(o, e) {
284
+ function k(o, e) {
216
285
  const t = {
217
286
  $$css: !0,
218
287
  "debug::name": `html-${o}`
219
288
  };
220
289
  function r({
221
- ref: a,
222
- ...i
290
+ ref: l,
291
+ ...n
223
292
  }) {
224
293
  const {
225
294
  for: c,
226
- style: l,
295
+ style: a,
227
296
  ...s
228
- } = i, n = s;
229
- Ye(n), c != null && (n.htmlFor = c), i.role != null && (n.role = i.role === "none" ? "presentation" : i.role), o === "button" ? n.type = n.type ? n.type : "button" : (o === "input" || o === "textarea") && (n.dir = n.dir ? n.dir : "auto");
230
- const d = Ne([t, e, l]);
297
+ } = n, i = s;
298
+ Ue(i), c != null && (i.htmlFor = c), n.role != null && (i.role = n.role === "none" ? "presentation" : n.role), o === "button" ? i.type = i.type ? i.type : "button" : (o === "input" || o === "textarea") && (i.dir = i.dir ? i.dir : "auto");
299
+ const d = Ze([t, e, a]);
231
300
  return W(o, {
232
- ...n,
301
+ ...i,
233
302
  ...d,
234
- ref: a
303
+ ref: l
235
304
  });
236
305
  }
237
306
  return r.displayName = `html.${o}`, r;
238
307
  }
239
- const k = {
308
+ const w = {
240
309
  block: {
241
310
  "margin-kogj98": "margin-x1ghz6dp",
242
311
  "padding-kmVPX3": "padding-x1717udv",
@@ -304,118 +373,118 @@ const k = {
304
373
  "resize-kHenm0": "resize-x288g5",
305
374
  $$css: ".pnpm:web/index.js:276"
306
375
  }
307
- }, Ze = k.inline, Ue = k.block, Je = k.block, Qe = k.inline, et = k.inline, tt = k.inline, ot = k.block, rt = null, nt = [k.inlineblock, k.button], it = [k.inline, k.codePre], st = null, lt = k.block, at = k.inline, ct = k.block, dt = k.block, ut = k.block, Z = [k.block, k.heading], pt = k.block, xt = [k.block, k.hr], gt = k.inline, ht = k.img, mt = [k.inlineblock, k.input], bt = null, ft = null, kt = k.inline, vt = k.block, yt = k.block, wt = k.inline, Mt = k.block, Wt = [k.list, k.block], Tt = null, $t = null, St = k.block, Ct = [k.block, k.codePre], Ht = null, Rt = k.block, zt = k.inlineblock, jt = k.inline, Lt = [k.inline, k.strong], It = k.inline, qt = k.inline, Pt = [k.inlineblock, k.textarea], Bt = null, Et = [k.list, k.block], f = {
308
- a: Ze,
309
- article: Ue,
310
- aside: Je,
311
- b: Qe,
312
- bdi: et,
313
- bdo: tt,
314
- blockquote: ot,
315
- br: rt,
316
- button: nt,
317
- code: it,
318
- del: st,
319
- div: lt,
320
- em: at,
321
- fieldset: ct,
322
- footer: dt,
323
- form: ut,
376
+ }, Je = w.inline, Qe = w.block, et = w.block, tt = w.inline, ot = w.inline, rt = w.inline, nt = w.block, it = null, st = [w.inlineblock, w.button], at = [w.inline, w.codePre], lt = null, ct = w.block, dt = w.inline, ut = w.block, xt = w.block, pt = w.block, Z = [w.block, w.heading], gt = w.block, ht = [w.block, w.hr], mt = w.inline, bt = w.img, ft = [w.inlineblock, w.input], vt = null, kt = null, yt = w.inline, wt = w.block, Mt = w.block, Tt = w.inline, Wt = w.block, St = [w.list, w.block], $t = null, Ct = null, Ht = w.block, jt = [w.block, w.codePre], zt = null, Rt = w.block, Bt = w.inlineblock, Lt = w.inline, It = [w.inline, w.strong], qt = w.inline, Pt = w.inline, Et = [w.inlineblock, w.textarea], Ot = null, Gt = [w.list, w.block], y = {
377
+ a: Je,
378
+ article: Qe,
379
+ aside: et,
380
+ b: tt,
381
+ bdi: ot,
382
+ bdo: rt,
383
+ blockquote: nt,
384
+ br: it,
385
+ button: st,
386
+ code: at,
387
+ del: lt,
388
+ div: ct,
389
+ em: dt,
390
+ fieldset: ut,
391
+ footer: xt,
392
+ form: pt,
324
393
  h1: Z,
325
394
  h2: Z,
326
395
  h3: Z,
327
396
  h4: Z,
328
397
  h5: Z,
329
398
  h6: Z,
330
- header: pt,
331
- hr: xt,
332
- i: gt,
333
- img: ht,
334
- input: mt,
335
- ins: bt,
336
- kbd: ft,
337
- label: kt,
338
- li: vt,
339
- main: yt,
340
- mark: wt,
341
- nav: Mt,
342
- ol: Wt,
343
- optgroup: Tt,
344
- option: $t,
345
- p: St,
346
- pre: Ct,
347
- s: Ht,
399
+ header: gt,
400
+ hr: ht,
401
+ i: mt,
402
+ img: bt,
403
+ input: ft,
404
+ ins: vt,
405
+ kbd: kt,
406
+ label: yt,
407
+ li: wt,
408
+ main: Mt,
409
+ mark: Tt,
410
+ nav: Wt,
411
+ ol: St,
412
+ optgroup: $t,
413
+ option: Ct,
414
+ p: Ht,
415
+ pre: jt,
416
+ s: zt,
348
417
  section: Rt,
349
- select: zt,
350
- span: jt,
351
- strong: Lt,
352
- sub: It,
353
- sup: qt,
354
- textarea: Pt,
355
- u: Bt,
356
- ul: Et
357
- }, Ot = b("a", f.a), Gt = b("article", f.article), At = b("aside", f.aside), Dt = b("b", f.b), Ft = b("bdi", f.bdi), Xt = b("bdo", f.bdo), Vt = b("blockquote", f.blockquote), Kt = b("br", f.br), _t = b("button", f.button), Nt = b("code", f.code), Yt = b("del", f.del), Zt = b("div", f.div), Ut = b("em", f.em), Jt = b("fieldset", f.fieldset), Qt = b("footer", f.footer), eo = b("form", f.form), to = b("h1", f.h1), oo = b("h2", f.h2), ro = b("h3", f.h3), no = b("h4", f.h4), io = b("h5", f.h5), so = b("h6", f.h6), lo = b("header", f.header), ao = b("hr", f.hr), co = b("i", f.i), uo = b("img", f.img), po = b("input", f.input), xo = b("ins", f.ins), go = b("kbd", f.kbd), ho = b("label", f.label), mo = b("li", f.li), bo = b("main", f.main), fo = b("mark", f.mark), ko = b("nav", f.nav), vo = b("ol", f.ol), yo = b("optgroup", f.optgroup), wo = b("option", f.option), Mo = b("p", f.p), Wo = b("pre", f.pre), To = b("s", f.s), $o = b("section", f.section), So = b("select", f.select), Co = b("span", f.span), Ho = b("strong", f.strong), Ro = b("sub", f.sub), zo = b("sup", f.sup), jo = b("textarea", f.textarea), Lo = b("u", f.u), Io = b("ul", f.ul);
358
- var qo = /* @__PURE__ */ Object.freeze({
418
+ select: Bt,
419
+ span: Lt,
420
+ strong: It,
421
+ sub: qt,
422
+ sup: Pt,
423
+ textarea: Et,
424
+ u: Ot,
425
+ ul: Gt
426
+ }, Dt = k("a", y.a), At = k("article", y.article), Ft = k("aside", y.aside), Xt = k("b", y.b), Vt = k("bdi", y.bdi), _t = k("bdo", y.bdo), Kt = k("blockquote", y.blockquote), Nt = k("br", y.br), Yt = k("button", y.button), Zt = k("code", y.code), Ut = k("del", y.del), Jt = k("div", y.div), Qt = k("em", y.em), eo = k("fieldset", y.fieldset), to = k("footer", y.footer), oo = k("form", y.form), ro = k("h1", y.h1), no = k("h2", y.h2), io = k("h3", y.h3), so = k("h4", y.h4), ao = k("h5", y.h5), lo = k("h6", y.h6), co = k("header", y.header), uo = k("hr", y.hr), xo = k("i", y.i), po = k("img", y.img), go = k("input", y.input), ho = k("ins", y.ins), mo = k("kbd", y.kbd), bo = k("label", y.label), fo = k("li", y.li), vo = k("main", y.main), ko = k("mark", y.mark), yo = k("nav", y.nav), wo = k("ol", y.ol), Mo = k("optgroup", y.optgroup), To = k("option", y.option), Wo = k("p", y.p), So = k("pre", y.pre), $o = k("s", y.s), Co = k("section", y.section), Ho = k("select", y.select), jo = k("span", y.span), zo = k("strong", y.strong), Ro = k("sub", y.sub), Bo = k("sup", y.sup), Lo = k("textarea", y.textarea), Io = k("u", y.u), qo = k("ul", y.ul);
427
+ var Po = /* @__PURE__ */ Object.freeze({
359
428
  __proto__: null,
360
- a: Ot,
361
- article: Gt,
362
- aside: At,
363
- b: Dt,
364
- bdi: Ft,
365
- bdo: Xt,
366
- blockquote: Vt,
367
- br: Kt,
368
- button: _t,
369
- code: Nt,
370
- del: Yt,
371
- div: Zt,
372
- em: Ut,
373
- fieldset: Jt,
374
- footer: Qt,
375
- form: eo,
376
- h1: to,
377
- h2: oo,
378
- h3: ro,
379
- h4: no,
380
- h5: io,
381
- h6: so,
382
- header: lo,
383
- hr: ao,
384
- i: co,
385
- img: uo,
386
- input: po,
387
- ins: xo,
388
- kbd: go,
389
- label: ho,
390
- li: mo,
391
- main: bo,
392
- mark: fo,
393
- nav: ko,
394
- ol: vo,
395
- optgroup: yo,
396
- option: wo,
397
- p: Mo,
398
- pre: Wo,
399
- s: To,
400
- section: $o,
401
- select: So,
402
- span: Co,
403
- strong: Ho,
429
+ a: Dt,
430
+ article: At,
431
+ aside: Ft,
432
+ b: Xt,
433
+ bdi: Vt,
434
+ bdo: _t,
435
+ blockquote: Kt,
436
+ br: Nt,
437
+ button: Yt,
438
+ code: Zt,
439
+ del: Ut,
440
+ div: Jt,
441
+ em: Qt,
442
+ fieldset: eo,
443
+ footer: to,
444
+ form: oo,
445
+ h1: ro,
446
+ h2: no,
447
+ h3: io,
448
+ h4: so,
449
+ h5: ao,
450
+ h6: lo,
451
+ header: co,
452
+ hr: uo,
453
+ i: xo,
454
+ img: po,
455
+ input: go,
456
+ ins: ho,
457
+ kbd: mo,
458
+ label: bo,
459
+ li: fo,
460
+ main: vo,
461
+ mark: ko,
462
+ nav: yo,
463
+ ol: wo,
464
+ optgroup: Mo,
465
+ option: To,
466
+ p: Wo,
467
+ pre: So,
468
+ s: $o,
469
+ section: Co,
470
+ select: Ho,
471
+ span: jo,
472
+ strong: zo,
404
473
  sub: Ro,
405
- sup: zo,
406
- textarea: jo,
407
- u: Lo,
408
- ul: Io
474
+ sup: Bo,
475
+ textarea: Lo,
476
+ u: Io,
477
+ ul: qo
409
478
  });
410
- const We = F(null);
411
- function Po() {
412
- return A(We);
479
+ const We = A(null);
480
+ function Eo() {
481
+ return O(We);
413
482
  }
414
- const Te = F(null);
415
- function Bo() {
416
- return A(Te);
483
+ const Se = A(null);
484
+ function Oo() {
485
+ return O(Se);
417
486
  }
418
- const _ = {
487
+ const K = {
419
488
  item: {
420
489
  "position-kVAEAm": "position-x1n2onr6",
421
490
  "zIndex-kY2c9j": "zIndex-x1lhispz",
@@ -453,77 +522,103 @@ const _ = {
453
522
  "marginTop-keoZOQ": "marginTop-xn1ib9x",
454
523
  $$css: "ButtonGroup/attached.css.ts:39"
455
524
  }
456
- }, Eo = {
525
+ }, Go = {
457
526
  horizontal: {
458
- first: _.horizontalFirst,
459
- middle: _.horizontalMiddle,
460
- last: _.horizontalLast,
527
+ first: K.horizontalFirst,
528
+ middle: K.horizontalMiddle,
529
+ last: K.horizontalLast,
461
530
  only: null
462
531
  },
463
532
  vertical: {
464
- first: _.verticalFirst,
465
- middle: _.verticalMiddle,
466
- last: _.verticalLast,
533
+ first: K.verticalFirst,
534
+ middle: K.verticalMiddle,
535
+ last: K.verticalLast,
467
536
  only: null
468
537
  }
469
538
  };
470
- function Oo(o) {
539
+ function Do(o) {
471
540
  const e = R.c(26);
472
541
  let t;
473
542
  e[0] !== o ? (t = o === void 0 ? {} : o, e[0] = o, e[1] = t) : t = e[1];
474
543
  const {
475
544
  disabled: r
476
- } = t, a = r === void 0 ? !1 : r, i = Q(), c = I(null), l = Bo(), s = Po(), n = l?.register, d = s?.register;
477
- let p, u;
478
- e[2] !== a || e[3] !== n || e[4] !== i || e[5] !== d ? (p = () => {
479
- const H = c.current;
480
- if (!H)
545
+ } = t, l = r === void 0 ? !1 : r, n = U(), c = I(null), a = Oo(), s = Eo(), i = a?.register, d = s?.register;
546
+ let u, p;
547
+ e[2] !== l || e[3] !== i || e[4] !== n || e[5] !== d ? (u = () => {
548
+ const $ = c.current;
549
+ if (!$)
481
550
  return;
482
- const T = n?.(i, H, a), z = d?.(i, H, a);
551
+ const M = i?.(n, $, l), j = d?.(n, $, l);
483
552
  return () => {
484
- T?.(), z?.();
553
+ M?.(), j?.();
485
554
  };
486
- }, u = [i, a, n, d], e[2] = a, e[3] = n, e[4] = i, e[5] = d, e[6] = p, e[7] = u) : (p = e[6], u = e[7]), ae(p, u);
555
+ }, p = [n, l, i, d], e[2] = l, e[3] = i, e[4] = n, e[5] = d, e[6] = u, e[7] = p) : (u = e[6], p = e[7]), le(u, p);
487
556
  let x;
488
- e[8] !== l || e[9] !== i ? (x = l ? l.positionOf(i) : null, e[8] = l, e[9] = i, e[10] = x) : x = e[10];
489
- const g = x;
490
- let h;
491
- e[11] !== l || e[12] !== g ? (h = l && g ? [_.item, Eo[l.orientation][g]] : null, e[11] = l, e[12] = g, e[13] = h) : h = e[13];
492
- const w = h, v = l !== null;
557
+ e[8] !== a || e[9] !== n ? (x = a ? a.positionOf(n) : null, e[8] = a, e[9] = n, e[10] = x) : x = e[10];
558
+ const h = x;
559
+ let g;
560
+ e[11] !== a || e[12] !== h ? (g = a && h ? [K.item, Go[a.orientation][h]] : null, e[11] = a, e[12] = h, e[13] = g) : g = e[13];
561
+ const b = g, f = a !== null;
493
562
  let m;
494
- e[14] !== i || e[15] !== s ? (m = s?.tabIndexOf(i), e[14] = i, e[15] = s, e[16] = m) : m = e[16];
495
- let y;
496
- e[17] !== i || e[18] !== s ? (y = s ? () => s.onItemFocus(i) : void 0, e[17] = i, e[18] = s, e[19] = y) : y = e[19];
497
- let $;
498
- return e[20] !== g || e[21] !== w || e[22] !== v || e[23] !== m || e[24] !== y ? ($ = {
563
+ e[14] !== n || e[15] !== s ? (m = s?.tabIndexOf(n), e[14] = n, e[15] = s, e[16] = m) : m = e[16];
564
+ let v;
565
+ e[17] !== n || e[18] !== s ? (v = s ? () => s.onItemFocus(n) : void 0, e[17] = n, e[18] = s, e[19] = v) : v = e[19];
566
+ let S;
567
+ return e[20] !== h || e[21] !== b || e[22] !== f || e[23] !== m || e[24] !== v ? (S = {
499
568
  ref: c,
500
- attached: v,
501
- position: g,
502
- style: w,
569
+ attached: f,
570
+ position: h,
571
+ style: b,
503
572
  tabIndex: m,
504
- onFocus: y
505
- }, e[20] = g, e[21] = w, e[22] = v, e[23] = m, e[24] = y, e[25] = $) : $ = e[25], $;
573
+ onFocus: v
574
+ }, e[20] = h, e[21] = b, e[22] = f, e[23] = m, e[24] = v, e[25] = S) : S = e[25], S;
506
575
  }
507
- const Go = {
508
- xjvd03b: "x14i52nv xjvd03b",
576
+ const Ao = {
577
+ xjvd03b: "xoev3oz xjvd03b",
509
578
  $$css: !0
510
- }, Ao = {
579
+ }, Fo = {
511
580
  x13v825q: "x1jk1o70 x13v825q",
512
581
  $$css: !0
513
- }, Do = {
514
- xjvd03b: "xorrbe1 xjvd03b",
582
+ }, Xo = {
583
+ xjvd03b: "x1ud4188 xjvd03b",
515
584
  $$css: !0
516
- }, Fo = {
585
+ }, Vo = {
517
586
  x13v825q: "xc8o4hb x13v825q",
518
587
  $$css: !0
519
- }, Xo = {
520
- light: [Go, Ao],
521
- "high-contrast": [Do, Fo]
522
- }, fe = {
588
+ }, fe = A({
589
+ theme: null,
590
+ colors: {}
591
+ });
592
+ function _o(o, e, t) {
593
+ const r = o.theme === e ? o.colors : {};
594
+ return {
595
+ theme: e,
596
+ colors: t ? {
597
+ ...r,
598
+ ...t
599
+ } : r
600
+ };
601
+ }
602
+ function Ko(o) {
603
+ return /[;{}<>"'\\]/.test(o) ? !1 : /^#[0-9a-f]{3,8}$/i.test(o) || /^(rgba?|hsla?|hwb|lab|lch|oklab|oklch|color)\([^()]*\)$/i.test(o) || /^[a-z]+$/i.test(o);
604
+ }
605
+ function No(o, e, t) {
606
+ const r = Object.entries(e).flatMap(([n, c]) => {
607
+ const a = t(n);
608
+ return a && typeof c == "string" && Ko(c) ? [`${a}: ${c};`] : [];
609
+ });
610
+ if (r.length === 0) return null;
611
+ const l = `[data-duro-theme="${o}"]`;
612
+ return `${l}${l} { ${r.join(" ")} }`;
613
+ }
614
+ const Yo = {
615
+ light: [Ao, Fo],
616
+ "high-contrast": [Xo, Vo]
617
+ }, ve = {
523
618
  root: {
524
619
  "display-k1xSpc": "display-xjp7ctv",
525
620
  "color-kMwMTN": "color-x95150z",
526
- $$css: "ThemeProvider/ThemeProvider.tsx:21"
621
+ $$css: "ThemeProvider/ThemeProvider.tsx:31"
527
622
  },
528
623
  portalMount: {
529
624
  "position-kVAEAm": "position-xixxii4",
@@ -533,53 +628,69 @@ const Go = {
533
628
  "bottom-krVfgx": "bottom-x1ey2m1c",
534
629
  "pointerEvents-kfzvcC": "pointerEvents-x47corl",
535
630
  "zIndex-kY2c9j": "zIndex-x3z26px",
536
- $$css: "ThemeProvider/ThemeProvider.tsx:29"
631
+ $$css: "ThemeProvider/ThemeProvider.tsx:39"
537
632
  }
538
- }, $e = F(null);
539
- function Vo() {
540
- return A($e);
633
+ }, $e = A(null);
634
+ function Zo() {
635
+ return O($e);
636
+ }
637
+ function Uo(o) {
638
+ const e = String(Ae[o] ?? ""), t = /^var\((--[\w-]+)\)$/.exec(e);
639
+ return t ? t[1] : null;
541
640
  }
542
- function Tr(o) {
543
- const e = R.c(11), {
641
+ function zr(o) {
642
+ const e = R.c(25), {
544
643
  theme: t,
545
- children: r
546
- } = o, a = t === void 0 ? "dark" : t, i = Xo[a], c = i?.[0], l = i?.[1];
547
- let s;
548
- e[0] !== c || e[1] !== l ? (s = [c, l, fe.root], e[0] = c, e[1] = l, e[2] = s) : s = e[2];
549
- const n = s, [d, p] = ee(null);
550
- let u;
551
- e[3] !== r || e[4] !== d ? (u = /* @__PURE__ */ W($e.Provider, { value: d, children: r }), e[3] = r, e[4] = d, e[5] = u) : u = e[5];
552
- let x;
553
- e[6] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ W("div", { "data-element-src": "ThemeProvider/ThemeProvider.tsx:60", ref: p, "data-portal-mount": !0, ...S(C.div, fe.portalMount) }), e[6] = x) : x = e[6];
644
+ overrides: r,
645
+ children: l
646
+ } = o, n = t === void 0 ? "dark" : t, c = Yo[n], a = c?.[0], s = c?.[1];
647
+ let i;
648
+ e[0] !== a || e[1] !== s ? (i = [a, s, ve.root], e[0] = a, e[1] = s, e[2] = i) : i = e[2];
649
+ const d = i, [u, p] = ee(null), x = U(), h = O(fe);
554
650
  let g;
555
- return e[7] !== u || e[8] !== a || e[9] !== n ? (g = /* @__PURE__ */ le("div", { "data-element-src": "ThemeProvider/ThemeProvider.tsx:58", "data-theme": a, ...S(C.div, n), children: [
556
- u,
557
- x
558
- ] }), e[7] = u, e[8] = a, e[9] = n, e[10] = g) : g = e[10], g;
651
+ e[3] !== h || e[4] !== r || e[5] !== n ? (g = _o(h, n, r), e[3] = h, e[4] = r, e[5] = n, e[6] = g) : g = e[6];
652
+ const b = g;
653
+ let f;
654
+ e[7] !== b.colors || e[8] !== x ? (f = Object.keys(b.colors).length > 0 ? No(x, b.colors, Uo) : null, e[7] = b.colors, e[8] = x, e[9] = f) : f = e[9];
655
+ const m = f, v = m ? x : void 0;
656
+ let S;
657
+ e[10] !== m ? (S = m ? /* @__PURE__ */ W("style", { children: m }) : null, e[10] = m, e[11] = S) : S = e[11];
658
+ let $;
659
+ e[12] !== l || e[13] !== u ? ($ = /* @__PURE__ */ W($e.Provider, { value: u, children: l }), e[12] = l, e[13] = u, e[14] = $) : $ = e[14];
660
+ let M;
661
+ e[15] !== b || e[16] !== $ ? (M = /* @__PURE__ */ W(fe.Provider, { value: b, children: $ }), e[15] = b, e[16] = $, e[17] = M) : M = e[17];
662
+ let j;
663
+ e[18] === Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ W("div", { "data-element-src": "ThemeProvider/ThemeProvider.tsx:96", ref: p, "data-portal-mount": !0, ...C(H.div, ve.portalMount) }), e[18] = j) : j = e[18];
664
+ let z;
665
+ return e[19] !== d || e[20] !== M || e[21] !== v || e[22] !== S || e[23] !== n ? (z = /* @__PURE__ */ ae("div", { "data-element-src": "ThemeProvider/ThemeProvider.tsx:88", "data-theme": n, "data-duro-theme": v, ...C(H.div, d), children: [
666
+ S,
667
+ M,
668
+ j
669
+ ] }), e[19] = d, e[20] = M, e[21] = v, e[22] = S, e[23] = n, e[24] = z) : z = e[24], z;
559
670
  }
560
- function Ko(o) {
671
+ function Jo(o) {
561
672
  const e = R.c(2), {
562
673
  children: t
563
674
  } = o;
564
675
  let r;
565
- return e[0] !== t ? (r = /* @__PURE__ */ W(Te.Provider, { value: null, children: /* @__PURE__ */ W(We.Provider, { value: null, children: t }) }), e[0] = t, e[1] = r) : r = e[1], r;
676
+ return e[0] !== t ? (r = /* @__PURE__ */ W(Se.Provider, { value: null, children: /* @__PURE__ */ W(We.Provider, { value: null, children: t }) }), e[0] = t, e[1] = r) : r = e[1], r;
566
677
  }
567
- function Se(o) {
678
+ function Ce(o) {
568
679
  return o.button === 0 && !o.metaKey && !o.ctrlKey && !o.shiftKey && !o.altKey && !o.defaultPrevented;
569
680
  }
570
- function $r(o, e, t) {
681
+ function Rr(o, e, t) {
571
682
  if (e)
572
683
  return (r) => {
573
- t != null || !Se(r) || e(o, r);
684
+ t != null || !Ce(r) || e(o, r);
574
685
  };
575
686
  }
576
- const Sr = {
687
+ const Br = {
577
688
  xs: 480,
578
689
  sm: 640,
579
690
  md: 768,
580
691
  lg: 1024,
581
692
  xl: 1280
582
- }, Ce = {
693
+ }, He = {
583
694
  touchTarget: "var(--touchTarget-x1u5badx)",
584
695
  controlSm: "var(--controlSm-x6ymn93)",
585
696
  controlMd: "var(--controlMd-xkvaeme)",
@@ -672,24 +783,24 @@ const Sr = {
672
783
  dragThumbW: "var(--dragThumbW-x1bz26bx)",
673
784
  dragThumbH: "var(--dragThumbH-xbt2de9)",
674
785
  __varGroupHash__: "x1w57kmz"
675
- }, _o = typeof process < "u" && process.env?.NODE_ENV === "production", ke = /* @__PURE__ */ new Set();
676
- function He(o, e, t) {
786
+ }, Qo = typeof process < "u" && process.env?.NODE_ENV === "production", ke = /* @__PURE__ */ new Set();
787
+ function je(o, e, t) {
677
788
  const r = `${o}:${e}`;
678
- _o || ke.has(r) || (ke.add(r), console.warn(`[duro-app/ui ${o}] ${t}`));
789
+ Qo || ke.has(r) || (ke.add(r), console.warn(`[duro-app/ui ${o}] ${t}`));
679
790
  }
680
- const Re = new Set(Ge);
681
- function ze(o) {
682
- return typeof o == "string" && Re.has(o) ? Ce[o] : o;
791
+ const ze = new Set(De);
792
+ function Re(o) {
793
+ return typeof o == "string" && ze.has(o) ? He[o] : o;
683
794
  }
684
- function ve(o) {
795
+ function ye(o) {
685
796
  const e = o;
686
797
  if (typeof e != "string") return e;
687
798
  const t = /^(minmax|fit-content)\((.*)\)$/.exec(e);
688
799
  if (t) {
689
- const r = t[2].split(",").map((a) => String(ze(a.trim())));
800
+ const r = t[2].split(",").map((l) => String(Re(l.trim())));
690
801
  return `${t[1]}(${r.join(", ")})`;
691
802
  }
692
- return Re.has(e) ? Ce[e] : e;
803
+ return ze.has(e) ? He[e] : e;
693
804
  }
694
805
  const P = {
695
806
  root: {
@@ -814,125 +925,125 @@ const P = {
814
925
  "color-kMwMTN": "color-x95150z color-xtolcfe",
815
926
  $$css: "Menu/styles.css.ts:131"
816
927
  }
817
- }, je = F(null);
928
+ }, Be = A(null);
818
929
  function de() {
819
- const o = A(je);
930
+ const o = O(Be);
820
931
  if (!o)
821
932
  throw new Error("Menu compound components must be used within Menu.Root");
822
933
  return o;
823
934
  }
824
- function No(o, e) {
935
+ function er(o, e) {
825
936
  return o ? !e.some((t) => t != null && t.contains(o)) : !0;
826
937
  }
827
- function Yo({
938
+ function tr({
828
939
  open: o,
829
940
  defaultOpen: e = !1,
830
941
  onOpenChange: t
831
942
  }) {
832
- const [r, a] = ee(e), i = o !== void 0, c = i ? o : r, l = I(c);
833
- l.current = c;
943
+ const [r, l] = ee(e), n = o !== void 0, c = n ? o : r, a = I(c);
944
+ a.current = c;
834
945
  const s = I(t);
835
946
  s.current = t;
836
- const n = ye((d) => {
837
- d !== l.current && (i || a(d), s.current?.(d));
838
- }, [i]);
947
+ const i = we((d) => {
948
+ d !== a.current && (n || l(d), s.current?.(d));
949
+ }, [n]);
839
950
  return {
840
951
  open: c,
841
- openRef: l,
842
- setOpen: n
952
+ openRef: a,
953
+ setOpen: i
843
954
  };
844
955
  }
845
- function Zo(o) {
956
+ function or(o) {
846
957
  const e = R.c(37), {
847
958
  open: t,
848
959
  openRef: r,
849
- setOpen: a
850
- } = Yo(o), [i, c] = ee(null), l = I(i);
851
- let s, n;
852
- e[0] !== i ? (s = () => {
853
- l.current = i;
854
- }, n = [i], e[0] = i, e[1] = s, e[2] = n) : (s = e[1], n = e[2]), ae(s, n);
855
- const d = Q(), p = Q(), u = I(null), x = I(null), g = I(null);
856
- let h;
857
- e[3] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ new Map(), e[3] = h) : h = e[3];
858
- const w = I(h);
960
+ setOpen: l
961
+ } = tr(o), [n, c] = ee(null), a = I(n);
962
+ let s, i;
963
+ e[0] !== n ? (s = () => {
964
+ a.current = n;
965
+ }, i = [n], e[0] = n, e[1] = s, e[2] = i) : (s = e[1], i = e[2]), le(s, i);
966
+ const d = U(), u = U(), p = I(null), x = I(null), h = I(null);
967
+ let g;
968
+ e[3] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ new Map(), e[3] = g) : g = e[3];
969
+ const b = I(g);
970
+ let f;
971
+ e[4] === Symbol.for("react.memo_cache_sentinel") ? (f = [], e[4] = f) : f = e[4];
972
+ const m = I(f);
859
973
  let v;
860
- e[4] === Symbol.for("react.memo_cache_sentinel") ? (v = [], e[4] = v) : v = e[4];
861
- const m = I(v);
862
- let y;
863
- e[5] !== r || e[6] !== a ? (y = () => {
864
- r.current && (a(!1), c(null));
865
- }, e[5] = r, e[6] = a, e[7] = y) : y = e[7];
866
- const $ = y;
867
- let H;
868
- e[8] !== $ || e[9] !== r ? (H = () => {
869
- r.current && ($(), x.current?.focus());
870
- }, e[8] = $, e[9] = r, e[10] = H) : H = e[10];
871
- const T = H;
872
- let z;
873
- e[11] !== T || e[12] !== r || e[13] !== a ? (z = () => {
874
- r.current ? T() : a(!0);
875
- }, e[11] = T, e[12] = r, e[13] = a, e[14] = z) : z = e[14];
876
- const B = z, E = I(!1);
877
- let X, O;
974
+ e[5] !== r || e[6] !== l ? (v = () => {
975
+ r.current && (l(!1), c(null));
976
+ }, e[5] = r, e[6] = l, e[7] = v) : v = e[7];
977
+ const S = v;
978
+ let $;
979
+ e[8] !== S || e[9] !== r ? ($ = () => {
980
+ r.current && (S(), x.current?.focus());
981
+ }, e[8] = S, e[9] = r, e[10] = $) : $ = e[10];
982
+ const M = $;
983
+ let j;
984
+ e[11] !== M || e[12] !== r || e[13] !== l ? (j = () => {
985
+ r.current ? M() : l(!0);
986
+ }, e[11] = M, e[12] = r, e[13] = l, e[14] = j) : j = e[14];
987
+ const z = j, E = I(!1);
988
+ let X, G;
878
989
  e[15] !== t ? (X = () => {
879
990
  if (t && !E.current) {
880
- g.current?.focus({
991
+ h.current?.focus({
881
992
  preventScroll: !0
882
993
  });
883
- const j = m.current[0];
884
- j && c(j);
994
+ const B = m.current[0];
995
+ B && c(B);
885
996
  } else
886
997
  !t && E.current && c(null);
887
998
  E.current = t;
888
- }, O = [t], e[15] = t, e[16] = X, e[17] = O) : (X = e[16], O = e[17]), K(X, O);
889
- let D, V;
890
- e[18] !== i ? (V = () => {
891
- if (!i)
999
+ }, G = [t], e[15] = t, e[16] = X, e[17] = G) : (X = e[16], G = e[17]), _(X, G);
1000
+ let F, V;
1001
+ e[18] !== n ? (V = () => {
1002
+ if (!n)
892
1003
  return;
893
- w.current.get(i)?.scrollIntoView?.({
1004
+ b.current.get(n)?.scrollIntoView?.({
894
1005
  block: "nearest"
895
1006
  });
896
- }, D = [i], e[18] = i, e[19] = D, e[20] = V) : (D = e[19], V = e[20]), K(V, D);
1007
+ }, F = [n], e[18] = n, e[19] = F, e[20] = V) : (F = e[19], V = e[20]), _(V, F);
897
1008
  let te;
898
- e[21] === Symbol.for("react.memo_cache_sentinel") ? (te = (j, U) => {
899
- w.current.set(j, U);
900
- const N = w.current, q = [...N.keys()];
901
- return q.sort((L, G) => {
902
- const Y = N.get(L), me = N.get(G);
1009
+ e[21] === Symbol.for("react.memo_cache_sentinel") ? (te = (B, J) => {
1010
+ b.current.set(B, J);
1011
+ const N = b.current, q = [...N.keys()];
1012
+ return q.sort((L, D) => {
1013
+ const Y = N.get(L), me = N.get(D);
903
1014
  return !Y || !me ? 0 : Y.compareDocumentPosition(me) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
904
1015
  }), m.current = q, () => {
905
- w.current.delete(j), m.current = m.current.filter((L) => L !== j);
1016
+ b.current.delete(B), m.current = m.current.filter((L) => L !== B);
906
1017
  };
907
1018
  }, e[21] = te) : te = e[21];
908
1019
  const qe = te;
909
1020
  let oe, re;
910
- e[22] !== T || e[23] !== t ? (oe = () => {
911
- const j = g.current;
912
- if (!j || !t)
1021
+ e[22] !== M || e[23] !== t ? (oe = () => {
1022
+ const B = h.current;
1023
+ if (!B || !t)
913
1024
  return;
914
- const U = function(q) {
1025
+ const J = function(q) {
915
1026
  if (q.key === "Escape") {
916
- q.preventDefault(), q.stopPropagation(), T();
1027
+ q.preventDefault(), q.stopPropagation(), M();
917
1028
  return;
918
1029
  }
919
1030
  if (q.key === "Tab") {
920
- T();
1031
+ M();
921
1032
  return;
922
1033
  }
923
1034
  const L = m.current;
924
1035
  if (L.length !== 0)
925
1036
  e: switch (q.key) {
926
1037
  case "ArrowDown": {
927
- q.preventDefault(), c((G) => {
928
- const Y = G ? L.indexOf(G) : -1;
1038
+ q.preventDefault(), c((D) => {
1039
+ const Y = D ? L.indexOf(D) : -1;
929
1040
  return L[(Y + 1) % L.length];
930
1041
  });
931
1042
  break e;
932
1043
  }
933
1044
  case "ArrowUp": {
934
- q.preventDefault(), c((G) => {
935
- const Y = G ? L.indexOf(G) : 0;
1045
+ q.preventDefault(), c((D) => {
1046
+ const Y = D ? L.indexOf(D) : 0;
936
1047
  return L[(Y - 1 + L.length) % L.length];
937
1048
  });
938
1049
  break e;
@@ -948,151 +1059,151 @@ function Zo(o) {
948
1059
  case "Enter":
949
1060
  case " ": {
950
1061
  q.preventDefault();
951
- const G = l.current;
952
- G && w.current.get(G)?.click();
1062
+ const D = a.current;
1063
+ D && b.current.get(D)?.click();
953
1064
  }
954
1065
  }
955
1066
  };
956
- return j.addEventListener("keydown", U), () => j.removeEventListener("keydown", U);
957
- }, re = [t, T], e[22] = T, e[23] = t, e[24] = oe, e[25] = re) : (oe = e[24], re = e[25]), K(oe, re);
1067
+ return B.addEventListener("keydown", J), () => B.removeEventListener("keydown", J);
1068
+ }, re = [t, M], e[22] = M, e[23] = t, e[24] = oe, e[25] = re) : (oe = e[24], re = e[25]), _(oe, re);
958
1069
  let ne, ie;
959
- e[26] !== $ || e[27] !== t ? (ne = () => {
1070
+ e[26] !== S || e[27] !== t ? (ne = () => {
960
1071
  if (!t)
961
1072
  return;
962
- const j = function(N) {
963
- No(N.target, [g.current, x.current]) && $();
1073
+ const B = function(N) {
1074
+ er(N.target, [h.current, x.current]) && S();
964
1075
  };
965
- return document.addEventListener("pointerdown", j, !0), () => document.removeEventListener("pointerdown", j, !0);
966
- }, ie = [t, $], e[26] = $, e[27] = t, e[28] = ne, e[29] = ie) : (ne = e[28], ie = e[29]), K(ne, ie);
1076
+ return document.addEventListener("pointerdown", B, !0), () => document.removeEventListener("pointerdown", B, !0);
1077
+ }, ie = [t, S], e[26] = S, e[27] = t, e[28] = ne, e[29] = ie) : (ne = e[28], ie = e[29]), _(ne, ie);
967
1078
  let se;
968
- return e[30] !== T || e[31] !== i || e[32] !== d || e[33] !== t || e[34] !== B || e[35] !== p ? (se = {
1079
+ return e[30] !== M || e[31] !== n || e[32] !== d || e[33] !== t || e[34] !== z || e[35] !== u ? (se = {
969
1080
  ctx: {
970
1081
  open: t,
971
- toggle: B,
972
- close: T,
1082
+ toggle: z,
1083
+ close: M,
973
1084
  menuId: d,
974
- triggerId: p,
975
- highlightedId: i,
1085
+ triggerId: u,
1086
+ highlightedId: n,
976
1087
  setHighlightedId: c,
977
1088
  registerItem: qe,
978
1089
  triggerRef: x,
979
- popupRef: g
1090
+ popupRef: h
980
1091
  },
981
- rootRef: u
982
- }, e[30] = T, e[31] = i, e[32] = d, e[33] = t, e[34] = B, e[35] = p, e[36] = se) : se = e[36], se;
1092
+ rootRef: p
1093
+ }, e[30] = M, e[31] = n, e[32] = d, e[33] = t, e[34] = z, e[35] = u, e[36] = se) : se = e[36], se;
983
1094
  }
984
- function Uo({
1095
+ function rr({
985
1096
  anchor: o,
986
1097
  popup: e,
987
1098
  viewport: t,
988
1099
  side: r,
989
- align: a,
990
- offset: i
1100
+ align: l,
1101
+ offset: n
991
1102
  }) {
992
- const c = o.top + o.height + i, l = o.top - i - e.height, s = c + e.height <= t.height, n = l >= 0;
1103
+ const c = o.top + o.height + n, a = o.top - n - e.height, s = c + e.height <= t.height, i = a >= 0;
993
1104
  let d = r;
994
- r === "bottom" && !s && n ? d = "top" : r === "top" && !n && s && (d = "bottom");
995
- const p = d === "bottom" ? c : l;
996
- let u = o.left;
997
- a === "center" ? u = o.left + (o.width - e.width) / 2 : a === "end" && (u = o.left + o.width - e.width);
1105
+ r === "bottom" && !s && i ? d = "top" : r === "top" && !i && s && (d = "bottom");
1106
+ const u = d === "bottom" ? c : a;
1107
+ let p = o.left;
1108
+ l === "center" ? p = o.left + (o.width - e.width) / 2 : l === "end" && (p = o.left + o.width - e.width);
998
1109
  const x = Math.max(0, t.width - e.width);
999
- return u = Math.min(Math.max(0, u), x), {
1000
- top: p,
1001
- left: u,
1110
+ return p = Math.min(Math.max(0, p), x), {
1111
+ top: u,
1112
+ left: p,
1002
1113
  side: d
1003
1114
  };
1004
1115
  }
1005
- const Jo = F(null);
1006
- function Qo(o, e) {
1116
+ const nr = A(null);
1117
+ function ir(o, e) {
1007
1118
  const t = R.c(5), {
1008
1119
  active: r
1009
- } = e, a = A(Jo);
1010
- let i, c;
1011
- t[0] !== r || t[1] !== a || t[2] !== o ? (i = () => {
1012
- const l = o.current;
1013
- if (!(!a || !r || !l))
1014
- return a.register(l);
1015
- }, c = [a, r, o], t[0] = r, t[1] = a, t[2] = o, t[3] = i, t[4] = c) : (i = t[3], c = t[4]), ae(i, c);
1120
+ } = e, l = O(nr);
1121
+ let n, c;
1122
+ t[0] !== r || t[1] !== l || t[2] !== o ? (n = () => {
1123
+ const a = o.current;
1124
+ if (!(!l || !r || !a))
1125
+ return l.register(a);
1126
+ }, c = [l, r, o], t[0] = r, t[1] = l, t[2] = o, t[3] = n, t[4] = c) : (n = t[3], c = t[4]), le(n, c);
1016
1127
  }
1017
- function er(o) {
1128
+ function sr(o) {
1018
1129
  const e = R.c(10), {
1019
1130
  children: t,
1020
1131
  open: r,
1021
- defaultOpen: a,
1022
- onOpenChange: i
1132
+ defaultOpen: l,
1133
+ onOpenChange: n
1023
1134
  } = o;
1024
1135
  let c;
1025
- e[0] !== a || e[1] !== i || e[2] !== r ? (c = {
1136
+ e[0] !== l || e[1] !== n || e[2] !== r ? (c = {
1026
1137
  open: r,
1027
- defaultOpen: a,
1028
- onOpenChange: i
1029
- }, e[0] = a, e[1] = i, e[2] = r, e[3] = c) : c = e[3];
1138
+ defaultOpen: l,
1139
+ onOpenChange: n
1140
+ }, e[0] = l, e[1] = n, e[2] = r, e[3] = c) : c = e[3];
1030
1141
  const {
1031
- ctx: l,
1142
+ ctx: a,
1032
1143
  rootRef: s
1033
- } = Zo(c);
1034
- let n;
1035
- e[4] !== t || e[5] !== s ? (n = /* @__PURE__ */ W("div", { "data-element-src": "Menu/Menu.tsx:42", ref: s, ...S(C.div, P.root), children: t }), e[4] = t, e[5] = s, e[6] = n) : n = e[6];
1144
+ } = or(c);
1145
+ let i;
1146
+ e[4] !== t || e[5] !== s ? (i = /* @__PURE__ */ W("div", { "data-element-src": "Menu/Menu.tsx:42", ref: s, ...C(H.div, P.root), children: t }), e[4] = t, e[5] = s, e[6] = i) : i = e[6];
1036
1147
  let d;
1037
- return e[7] !== l || e[8] !== n ? (d = /* @__PURE__ */ W(je.Provider, { value: l, children: n }), e[7] = l, e[8] = n, e[9] = d) : d = e[9], d;
1148
+ return e[7] !== a || e[8] !== i ? (d = /* @__PURE__ */ W(Be.Provider, { value: a, children: i }), e[7] = a, e[8] = i, e[9] = d) : d = e[9], d;
1038
1149
  }
1039
- const tr = 'button, a[href], input, select, textarea, [role="button"]';
1040
- function or({
1150
+ const ar = 'button, a[href], input, select, textarea, [role="button"]';
1151
+ function lr({
1041
1152
  children: o,
1042
1153
  "aria-label": e,
1043
1154
  variant: t = "default",
1044
1155
  size: r = "default",
1045
- ref: a
1156
+ ref: l
1046
1157
  }) {
1047
1158
  const {
1048
- open: i,
1159
+ open: n,
1049
1160
  toggle: c,
1050
- menuId: l,
1161
+ menuId: a,
1051
1162
  triggerId: s,
1052
- triggerRef: n
1053
- } = de(), d = Oo(), p = d.ref, u = ye((x) => {
1054
- n.current = x, p.current = x, typeof a == "function" ? a(x) : a && (a.current = x);
1055
- }, [a, n, p]);
1056
- return K(() => {
1057
- n.current?.querySelector(tr) && He("Menu", "trigger-nested-control", "Menu.Trigger is itself the button — give it the label (text, an Icon), not a Button, link or other control. A control inside a <button> is invalid HTML: it breaks hydration and hands assistive tech a button inside a button.");
1058
- }, [n]), /* @__PURE__ */ W("button", { "data-element-src": "Menu/Menu.tsx:101", ref: u, tabIndex: d.tabIndex, onFocus: d.onFocus, id: s, type: "button", onClick: c, "aria-label": e, "aria-expanded": i, "aria-haspopup": "menu", "aria-controls": i ? l : void 0, ...S(C.button, P.trigger, t === "ghost" ? [P.triggerGhost, r === "small" && P.triggerGhostSmall] : r === "small" && P.triggerSmall, d.style), children: o });
1163
+ triggerRef: i
1164
+ } = de(), d = Do(), u = d.ref, p = we((x) => {
1165
+ i.current = x, u.current = x, typeof l == "function" ? l(x) : l && (l.current = x);
1166
+ }, [l, i, u]);
1167
+ return _(() => {
1168
+ i.current?.querySelector(ar) && je("Menu", "trigger-nested-control", "Menu.Trigger is itself the button — give it the label (text, an Icon), not a Button, link or other control. A control inside a <button> is invalid HTML: it breaks hydration and hands assistive tech a button inside a button.");
1169
+ }, [i]), /* @__PURE__ */ W("button", { "data-element-src": "Menu/Menu.tsx:101", ref: p, tabIndex: d.tabIndex, onFocus: d.onFocus, id: s, type: "button", onClick: c, "aria-label": e, "aria-expanded": n, "aria-haspopup": "menu", "aria-controls": n ? a : void 0, ...C(H.button, P.trigger, t === "ghost" ? [P.triggerGhost, r === "small" && P.triggerGhostSmall] : r === "small" && P.triggerSmall, d.style), children: o });
1059
1170
  }
1060
- function rr(o) {
1171
+ function cr(o) {
1061
1172
  const e = R.c(26), {
1062
1173
  children: t,
1063
1174
  align: r
1064
- } = o, a = r === void 0 ? "start" : r, {
1065
- open: i,
1175
+ } = o, l = r === void 0 ? "start" : r, {
1176
+ open: n,
1066
1177
  menuId: c,
1067
- triggerId: l,
1178
+ triggerId: a,
1068
1179
  highlightedId: s,
1069
- triggerRef: n,
1180
+ triggerRef: i,
1070
1181
  popupRef: d
1071
1182
  } = de();
1072
- let p;
1073
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (p = {
1183
+ let u;
1184
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (u = {
1074
1185
  top: 0,
1075
1186
  left: 0
1076
- }, e[0] = p) : p = e[0];
1077
- const [u, x] = ee(p), g = Vo();
1078
- let h;
1079
- e[1] !== i ? (h = {
1080
- active: i
1081
- }, e[1] = i, e[2] = h) : h = e[2], Qo(d, h);
1082
- let w, v;
1083
- if (e[3] !== a || e[4] !== i || e[5] !== d || e[6] !== n ? (w = () => {
1084
- if (!i)
1187
+ }, e[0] = u) : u = e[0];
1188
+ const [p, x] = ee(u), h = Zo();
1189
+ let g;
1190
+ e[1] !== n ? (g = {
1191
+ active: n
1192
+ }, e[1] = n, e[2] = g) : g = e[2], ir(d, g);
1193
+ let b, f;
1194
+ if (e[3] !== l || e[4] !== n || e[5] !== d || e[6] !== i ? (b = () => {
1195
+ if (!n)
1085
1196
  return;
1086
1197
  const E = () => {
1087
- const X = d.current, O = n.current?.getBoundingClientRect();
1088
- if (!X || !O)
1198
+ const X = d.current, G = i.current?.getBoundingClientRect();
1199
+ if (!X || !G)
1089
1200
  return;
1090
- const D = Uo({
1201
+ const F = rr({
1091
1202
  anchor: {
1092
- top: O.top,
1093
- left: O.left,
1094
- width: O.width,
1095
- height: O.height
1203
+ top: G.top,
1204
+ left: G.left,
1205
+ width: G.width,
1206
+ height: G.height
1096
1207
  },
1097
1208
  popup: {
1098
1209
  width: X.offsetWidth,
@@ -1103,103 +1214,103 @@ function rr(o) {
1103
1214
  height: window.innerHeight
1104
1215
  },
1105
1216
  side: "bottom",
1106
- align: a,
1107
- offset: Oe.xs
1217
+ align: l,
1218
+ offset: Ge.xs
1108
1219
  });
1109
- x((V) => V.top === D.top && V.left === D.left ? V : {
1110
- top: D.top,
1111
- left: D.left
1220
+ x((V) => V.top === F.top && V.left === F.left ? V : {
1221
+ top: F.top,
1222
+ left: F.left
1112
1223
  });
1113
1224
  };
1114
1225
  return E(), window.addEventListener("resize", E), window.addEventListener("scroll", E, !0), () => {
1115
1226
  window.removeEventListener("resize", E), window.removeEventListener("scroll", E, !0);
1116
1227
  };
1117
- }, v = [i, a, d, n], e[3] = a, e[4] = i, e[5] = d, e[6] = n, e[7] = w, e[8] = v) : (w = e[7], v = e[8]), ae(w, v), !i || typeof document > "u")
1228
+ }, f = [n, l, d, i], e[3] = l, e[4] = n, e[5] = d, e[6] = i, e[7] = b, e[8] = f) : (b = e[7], f = e[8]), le(b, f), !n || typeof document > "u")
1118
1229
  return null;
1119
1230
  const m = s ?? void 0;
1120
- let y;
1121
- e[9] !== u.left || e[10] !== u.top ? (y = P.popupPosition(u.top, u.left), e[9] = u.left, e[10] = u.top, e[11] = y) : y = e[11];
1231
+ let v;
1232
+ e[9] !== p.left || e[10] !== p.top ? (v = P.popupPosition(p.top, p.left), e[9] = p.left, e[10] = p.top, e[11] = v) : v = e[11];
1233
+ let S;
1234
+ e[12] !== v ? (S = [P.popup, v], e[12] = v, e[13] = S) : S = e[13];
1122
1235
  let $;
1123
- e[12] !== y ? ($ = [P.popup, y], e[12] = y, e[13] = $) : $ = e[13];
1124
- let H;
1125
- e[14] !== t ? (H = /* @__PURE__ */ W(Ko, { children: t }), e[14] = t, e[15] = H) : H = e[15];
1126
- let T;
1127
- e[16] !== c || e[17] !== d || e[18] !== m || e[19] !== $ || e[20] !== H || e[21] !== l ? (T = /* @__PURE__ */ W("div", { "data-element-src": "Menu/Menu.tsx:171", ref: d, id: c, role: "menu", tabIndex: -1, "aria-labelledby": l, "aria-activedescendant": m, ...S(C.div, $), children: H }), e[16] = c, e[17] = d, e[18] = m, e[19] = $, e[20] = H, e[21] = l, e[22] = T) : T = e[22];
1128
- const z = g ?? document.body;
1129
- let B;
1130
- return e[23] !== T || e[24] !== z ? (B = Ee(T, z), e[23] = T, e[24] = z, e[25] = B) : B = e[25], B;
1236
+ e[14] !== t ? ($ = /* @__PURE__ */ W(Jo, { children: t }), e[14] = t, e[15] = $) : $ = e[15];
1237
+ let M;
1238
+ e[16] !== c || e[17] !== d || e[18] !== m || e[19] !== S || e[20] !== $ || e[21] !== a ? (M = /* @__PURE__ */ W("div", { "data-element-src": "Menu/Menu.tsx:171", ref: d, id: c, role: "menu", tabIndex: -1, "aria-labelledby": a, "aria-activedescendant": m, ...C(H.div, S), children: $ }), e[16] = c, e[17] = d, e[18] = m, e[19] = S, e[20] = $, e[21] = a, e[22] = M) : M = e[22];
1239
+ const j = h ?? document.body;
1240
+ let z;
1241
+ return e[23] !== M || e[24] !== j ? (z = Oe(M, j), e[23] = M, e[24] = j, e[25] = z) : z = e[25], z;
1131
1242
  }
1132
- function nr(o) {
1243
+ function dr(o) {
1133
1244
  const e = R.c(18), {
1134
1245
  onClick: t,
1135
1246
  children: r
1136
1247
  } = o, {
1137
- close: a,
1138
- highlightedId: i,
1248
+ close: l,
1249
+ highlightedId: n,
1139
1250
  setHighlightedId: c,
1140
- registerItem: l
1141
- } = de(), s = Q(), n = I(null), d = i === s;
1142
- let p, u;
1143
- e[0] !== s || e[1] !== l ? (p = () => {
1144
- const y = n.current;
1145
- if (y)
1146
- return l(s, y);
1147
- }, u = [s, l], e[0] = s, e[1] = l, e[2] = p, e[3] = u) : (p = e[2], u = e[3]), K(p, u);
1251
+ registerItem: a
1252
+ } = de(), s = U(), i = I(null), d = n === s;
1253
+ let u, p;
1254
+ e[0] !== s || e[1] !== a ? (u = () => {
1255
+ const v = i.current;
1256
+ if (v)
1257
+ return a(s, v);
1258
+ }, p = [s, a], e[0] = s, e[1] = a, e[2] = u, e[3] = p) : (u = e[2], p = e[3]), _(u, p);
1148
1259
  let x;
1149
- e[4] !== a || e[5] !== t ? (x = () => {
1150
- t?.(), a();
1151
- }, e[4] = a, e[5] = t, e[6] = x) : x = e[6];
1152
- const g = x;
1153
- let h;
1154
- e[7] !== s || e[8] !== c ? (h = () => c(s), e[7] = s, e[8] = c, e[9] = h) : h = e[9];
1155
- const w = d && P.itemHighlighted;
1156
- let v;
1157
- e[10] !== w ? (v = [P.item, w], e[10] = w, e[11] = v) : v = e[11];
1260
+ e[4] !== l || e[5] !== t ? (x = () => {
1261
+ t?.(), l();
1262
+ }, e[4] = l, e[5] = t, e[6] = x) : x = e[6];
1263
+ const h = x;
1264
+ let g;
1265
+ e[7] !== s || e[8] !== c ? (g = () => c(s), e[7] = s, e[8] = c, e[9] = g) : g = e[9];
1266
+ const b = d && P.itemHighlighted;
1267
+ let f;
1268
+ e[10] !== b ? (f = [P.item, b], e[10] = b, e[11] = f) : f = e[11];
1158
1269
  let m;
1159
- return e[12] !== r || e[13] !== g || e[14] !== s || e[15] !== h || e[16] !== v ? (m = /* @__PURE__ */ W("div", { "data-element-src": "Menu/Menu.tsx:210", ref: n, id: s, role: "menuitem", onClick: g, onPointerEnter: h, ...S(C.div, v), children: r }), e[12] = r, e[13] = g, e[14] = s, e[15] = h, e[16] = v, e[17] = m) : m = e[17], m;
1270
+ return e[12] !== r || e[13] !== h || e[14] !== s || e[15] !== g || e[16] !== f ? (m = /* @__PURE__ */ W("div", { "data-element-src": "Menu/Menu.tsx:210", ref: i, id: s, role: "menuitem", onClick: h, onPointerEnter: g, ...C(H.div, f), children: r }), e[12] = r, e[13] = h, e[14] = s, e[15] = g, e[16] = f, e[17] = m) : m = e[17], m;
1160
1271
  }
1161
- function ir(o) {
1272
+ function ur(o) {
1162
1273
  const e = R.c(20), {
1163
1274
  href: t,
1164
1275
  onNavigate: r,
1165
- children: a
1276
+ children: l
1166
1277
  } = o, {
1167
- close: i,
1278
+ close: n,
1168
1279
  highlightedId: c,
1169
- setHighlightedId: l,
1280
+ setHighlightedId: a,
1170
1281
  registerItem: s
1171
- } = de(), n = Q(), d = I(null), p = c === n;
1172
- let u, x;
1173
- e[0] !== n || e[1] !== s ? (u = () => {
1174
- const y = d.current;
1175
- if (y)
1176
- return s(n, y);
1177
- }, x = [n, s], e[0] = n, e[1] = s, e[2] = u, e[3] = x) : (u = e[2], x = e[3]), K(u, x);
1178
- let g;
1179
- e[4] !== i || e[5] !== t || e[6] !== r ? (g = (y) => {
1180
- r && Se(y) && r(t, y), i();
1181
- }, e[4] = i, e[5] = t, e[6] = r, e[7] = g) : g = e[7];
1282
+ } = de(), i = U(), d = I(null), u = c === i;
1283
+ let p, x;
1284
+ e[0] !== i || e[1] !== s ? (p = () => {
1285
+ const v = d.current;
1286
+ if (v)
1287
+ return s(i, v);
1288
+ }, x = [i, s], e[0] = i, e[1] = s, e[2] = p, e[3] = x) : (p = e[2], x = e[3]), _(p, x);
1182
1289
  let h;
1183
- e[8] !== n || e[9] !== l ? (h = () => l(n), e[8] = n, e[9] = l, e[10] = h) : h = e[10];
1184
- const w = p && P.itemHighlighted;
1185
- let v;
1186
- e[11] !== w ? (v = [P.item, P.linkItem, w], e[11] = w, e[12] = v) : v = e[12];
1290
+ e[4] !== n || e[5] !== t || e[6] !== r ? (h = (v) => {
1291
+ r && Ce(v) && r(t, v), n();
1292
+ }, e[4] = n, e[5] = t, e[6] = r, e[7] = h) : h = e[7];
1293
+ let g;
1294
+ e[8] !== i || e[9] !== a ? (g = () => a(i), e[8] = i, e[9] = a, e[10] = g) : g = e[10];
1295
+ const b = u && P.itemHighlighted;
1296
+ let f;
1297
+ e[11] !== b ? (f = [P.item, P.linkItem, b], e[11] = b, e[12] = f) : f = e[12];
1187
1298
  let m;
1188
- return e[13] !== a || e[14] !== t || e[15] !== n || e[16] !== g || e[17] !== h || e[18] !== v ? (m = /* @__PURE__ */ W("a", { "data-element-src": "Menu/Menu.tsx:247", ref: d, id: n, href: t, onClick: g, role: "menuitem", onPointerEnter: h, ...S(C.a, v), children: a }), e[13] = a, e[14] = t, e[15] = n, e[16] = g, e[17] = h, e[18] = v, e[19] = m) : m = e[19], m;
1299
+ return e[13] !== l || e[14] !== t || e[15] !== i || e[16] !== h || e[17] !== g || e[18] !== f ? (m = /* @__PURE__ */ W("a", { "data-element-src": "Menu/Menu.tsx:247", ref: d, id: i, href: t, onClick: h, role: "menuitem", onPointerEnter: g, ...C(H.a, f), children: l }), e[13] = l, e[14] = t, e[15] = i, e[16] = h, e[17] = g, e[18] = f, e[19] = m) : m = e[19], m;
1189
1300
  }
1190
- function sr() {
1301
+ function xr() {
1191
1302
  const o = R.c(1);
1192
1303
  let e;
1193
- return o[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ W("div", { "data-element-src": "Menu/Menu.tsx:269", role: "separator", "aria-orientation": "horizontal", ...S(C.div, P.separator) }), o[0] = e) : e = o[0], e;
1304
+ return o[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ W("div", { "data-element-src": "Menu/Menu.tsx:269", role: "separator", "aria-orientation": "horizontal", ...C(H.div, P.separator) }), o[0] = e) : e = o[0], e;
1194
1305
  }
1195
- const Cr = {
1196
- Root: er,
1197
- Trigger: or,
1198
- Popup: rr,
1199
- Item: nr,
1200
- LinkItem: ir,
1201
- Separator: sr
1202
- }, M = {
1306
+ const Lr = {
1307
+ Root: sr,
1308
+ Trigger: lr,
1309
+ Popup: cr,
1310
+ Item: dr,
1311
+ LinkItem: ur,
1312
+ Separator: xr
1313
+ }, T = {
1203
1314
  container: {
1204
1315
  "containerType-k9g6sI": "containerType-x12h1iku",
1205
1316
  "display-k1xSpc": "display-x78zum5",
@@ -1408,28 +1519,28 @@ const Cr = {
1408
1519
  "--x-1pds3uo": o ?? void 0,
1409
1520
  "--x-1n5740v": e ?? void 0
1410
1521
  }]
1411
- }, Le = F(null);
1522
+ }, Le = A(null);
1412
1523
  function ue() {
1413
- const o = A(Le);
1524
+ const o = O(Le);
1414
1525
  if (!o)
1415
1526
  throw new Error("Table compound components must be used within Table.Root");
1416
1527
  return o;
1417
1528
  }
1418
- const xe = F(!1);
1419
- function lr(o) {
1529
+ const pe = A(!1);
1530
+ function pr(o) {
1420
1531
  const e = R.c(2), {
1421
1532
  children: t
1422
1533
  } = o;
1423
1534
  let r;
1424
- return e[0] !== t ? (r = /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:55", ...S(C.div, M.container), children: t }), e[0] = t, e[1] = r) : r = e[1], r;
1535
+ return e[0] !== t ? (r = /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:55", ...C(H.div, T.container), children: t }), e[0] = t, e[1] = r) : r = e[1], r;
1425
1536
  }
1426
- function ar(o) {
1537
+ function gr(o) {
1427
1538
  let e = "";
1428
1539
  return ce.forEach(o, (t) => {
1429
1540
  (typeof t == "string" || typeof t == "number") && (e += String(t));
1430
1541
  }), e;
1431
1542
  }
1432
- function cr(o) {
1543
+ function hr(o) {
1433
1544
  let e = o;
1434
1545
  for (let t = 0; t < 8 && e && typeof e == "object"; t++) {
1435
1546
  const r = e.type ?? e.render;
@@ -1438,100 +1549,100 @@ function cr(o) {
1438
1549
  }
1439
1550
  return e;
1440
1551
  }
1441
- function dr(o, e) {
1442
- const t = [], r = [], a = [];
1443
- function i(c) {
1444
- ce.forEach(c, (l) => {
1445
- if (!Be(l)) return;
1446
- const s = l.props, n = cr(l.type), d = n?.displayName || n?.name || "";
1447
- if (n === he || d === "HeaderCell") {
1448
- const p = s.width ? String(ve(s.width)) : `minmax(${ze(e)}, 1fr)`;
1449
- t.push(p), r.push(s.compactWidth ? String(ve(s.compactWidth)) : p);
1450
- const u = typeof s.label == "string" ? s.label : void 0, x = ar(s.children).trim(), g = u ?? x;
1451
- !u && x === "" && s.children != null && He("Table", "headerCell-missing-label", "Table.HeaderCell with JSX children must set `label` for stack-mode rendering."), a.push(g);
1452
- } else s.children && i(s.children);
1552
+ function mr(o, e) {
1553
+ const t = [], r = [], l = [];
1554
+ function n(c) {
1555
+ ce.forEach(c, (a) => {
1556
+ if (!Ee(a)) return;
1557
+ const s = a.props, i = hr(a.type), d = i?.displayName || i?.name || "";
1558
+ if (i === he || d === "HeaderCell") {
1559
+ const u = s.width ? String(ye(s.width)) : `minmax(${Re(e)}, 1fr)`;
1560
+ t.push(u), r.push(s.compactWidth ? String(ye(s.compactWidth)) : u);
1561
+ const p = typeof s.label == "string" ? s.label : void 0, x = gr(s.children).trim(), h = p ?? x;
1562
+ !p && x === "" && s.children != null && je("Table", "headerCell-missing-label", "Table.HeaderCell with JSX children must set `label` for stack-mode rendering."), l.push(h);
1563
+ } else s.children && n(s.children);
1453
1564
  });
1454
1565
  }
1455
- return i(o), {
1566
+ return n(o), {
1456
1567
  template: t.join(" "),
1457
1568
  compactTemplate: r.join(" "),
1458
- labels: a
1569
+ labels: l
1459
1570
  };
1460
1571
  }
1461
- function ur(o) {
1572
+ function br(o) {
1462
1573
  const e = R.c(13), {
1463
1574
  children: t
1464
1575
  } = o, r = I(null);
1465
- let a;
1466
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (a = {
1576
+ let l;
1577
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (l = {
1467
1578
  start: !1,
1468
1579
  end: !1
1469
- }, e[0] = a) : a = e[0];
1470
- const [i, c] = ee(a);
1471
- let l, s;
1472
- e[1] === Symbol.for("react.memo_cache_sentinel") ? (l = () => {
1473
- const h = r.current;
1474
- if (!h)
1580
+ }, e[0] = l) : l = e[0];
1581
+ const [n, c] = ee(l);
1582
+ let a, s;
1583
+ e[1] === Symbol.for("react.memo_cache_sentinel") ? (a = () => {
1584
+ const g = r.current;
1585
+ if (!g)
1475
1586
  return;
1476
- const w = () => {
1477
- const m = h.scrollWidth - h.clientWidth > 1;
1587
+ const b = () => {
1588
+ const m = g.scrollWidth - g.clientWidth > 1;
1478
1589
  c({
1479
- start: m && h.scrollLeft > 1,
1480
- end: m && h.scrollLeft + h.clientWidth < h.scrollWidth - 1
1590
+ start: m && g.scrollLeft > 1,
1591
+ end: m && g.scrollLeft + g.clientWidth < g.scrollWidth - 1
1481
1592
  });
1482
1593
  };
1483
- w(), h.addEventListener("scroll", w, {
1594
+ b(), g.addEventListener("scroll", b, {
1484
1595
  passive: !0
1485
1596
  });
1486
- const v = typeof ResizeObserver < "u" ? new ResizeObserver(w) : null;
1487
- return v?.observe(h), () => {
1488
- h.removeEventListener("scroll", w), v?.disconnect();
1597
+ const f = typeof ResizeObserver < "u" ? new ResizeObserver(b) : null;
1598
+ return f?.observe(g), () => {
1599
+ g.removeEventListener("scroll", b), f?.disconnect();
1489
1600
  };
1490
- }, s = [], e[1] = l, e[2] = s) : (l = e[1], s = e[2]), K(l, s);
1491
- let n;
1492
- e[3] !== t ? (n = /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:196", ref: r, ...S(C.div, M.scrollX), children: t }), e[3] = t, e[4] = n) : n = e[4];
1493
- const d = i.start && M.edgeFadeVisible;
1494
- let p;
1495
- e[5] !== d ? (p = /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:199", "aria-hidden": !0, ...S(C.div, M.edgeFade, M.edgeFadeLeft, d) }), e[5] = d, e[6] = p) : p = e[6];
1496
- const u = i.end && M.edgeFadeVisible;
1601
+ }, s = [], e[1] = a, e[2] = s) : (a = e[1], s = e[2]), _(a, s);
1602
+ let i;
1603
+ e[3] !== t ? (i = /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:196", ref: r, ...C(H.div, T.scrollX), children: t }), e[3] = t, e[4] = i) : i = e[4];
1604
+ const d = n.start && T.edgeFadeVisible;
1605
+ let u;
1606
+ e[5] !== d ? (u = /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:199", "aria-hidden": !0, ...C(H.div, T.edgeFade, T.edgeFadeLeft, d) }), e[5] = d, e[6] = u) : u = e[6];
1607
+ const p = n.end && T.edgeFadeVisible;
1497
1608
  let x;
1498
- e[7] !== u ? (x = /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:203", "aria-hidden": !0, ...S(C.div, M.edgeFade, M.edgeFadeRight, u) }), e[7] = u, e[8] = x) : x = e[8];
1499
- let g;
1500
- return e[9] !== n || e[10] !== p || e[11] !== x ? (g = /* @__PURE__ */ le("div", { "data-element-src": "Table/Table.tsx:195", ...S(C.div, M.scrollFrame), children: [
1501
- n,
1502
- p,
1609
+ e[7] !== p ? (x = /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:203", "aria-hidden": !0, ...C(H.div, T.edgeFade, T.edgeFadeRight, p) }), e[7] = p, e[8] = x) : x = e[8];
1610
+ let h;
1611
+ return e[9] !== i || e[10] !== u || e[11] !== x ? (h = /* @__PURE__ */ ae("div", { "data-element-src": "Table/Table.tsx:195", ...C(H.div, T.scrollFrame), children: [
1612
+ i,
1613
+ u,
1503
1614
  x
1504
- ] }), e[9] = n, e[10] = p, e[11] = x, e[12] = g) : g = e[12], g;
1615
+ ] }), e[9] = i, e[10] = u, e[11] = x, e[12] = h) : h = e[12], h;
1505
1616
  }
1506
- function pr({
1617
+ function fr({
1507
1618
  children: o,
1508
1619
  variant: e = "default",
1509
1620
  size: t = "md",
1510
1621
  responsive: r = !0,
1511
- minColumnWidth: a = "labelMinW",
1512
- sortChip: i,
1622
+ minColumnWidth: l = "labelMinW",
1623
+ sortChip: n,
1513
1624
  pagination: c
1514
1625
  }) {
1515
- const l = I(null), {
1626
+ const a = I(null), {
1516
1627
  template: s,
1517
- compactTemplate: n,
1628
+ compactTemplate: i,
1518
1629
  labels: d
1519
- } = dr(o, a);
1520
- s && (l.current = s);
1521
- const p = /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:257", role: "table", ...S(
1522
- C.div,
1523
- M.root,
1630
+ } = mr(o, l);
1631
+ s && (a.current = s);
1632
+ const u = /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:257", role: "table", ...C(
1633
+ H.div,
1634
+ T.root,
1524
1635
  // When responsive, use gridColumnsResponsive so the explicit column
1525
1636
  // template and the stack-mode @container override live in one StyleX
1526
1637
  // style object. Splitting them across two styles (gridColumns +
1527
1638
  // rootResponsive) causes StyleX conflict resolution to drop the
1528
1639
  // column template because rootResponsive's gridTemplateColumns key
1529
1640
  // always wins as the later entry in the array.
1530
- s ? r ? M.gridColumnsResponsive(s, n) : M.gridColumns(s) : void 0,
1531
- r && M.rootResponsive
1532
- ), children: o }), x = /* @__PURE__ */ le(Pe, { children: [
1533
- i,
1534
- r ? /* @__PURE__ */ W(ur, { children: p }) : p,
1641
+ s ? r ? T.gridColumnsResponsive(s, i) : T.gridColumns(s) : void 0,
1642
+ r && T.rootResponsive
1643
+ ), children: o }), x = /* @__PURE__ */ ae(Pe, { children: [
1644
+ n,
1645
+ r ? /* @__PURE__ */ W(br, { children: u }) : u,
1535
1646
  c
1536
1647
  ] });
1537
1648
  return /* @__PURE__ */ W(Le.Provider, { value: {
@@ -1539,67 +1650,67 @@ function pr({
1539
1650
  size: t,
1540
1651
  responsive: r,
1541
1652
  labels: d,
1542
- inferredTemplateRef: l
1543
- }, children: r ? /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:299", ...S(C.div, M.rootContainer), children: x }) : x });
1653
+ inferredTemplateRef: a
1654
+ }, children: r ? /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:299", ...C(H.div, T.rootContainer), children: x }) : x });
1544
1655
  }
1545
- function xr(o) {
1656
+ function vr(o) {
1546
1657
  const e = R.c(2), {
1547
1658
  children: t
1548
1659
  } = o;
1549
1660
  let r;
1550
- return e[0] !== t ? (r = /* @__PURE__ */ W(xe.Provider, { value: !0, children: /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:309", role: "rowgroup", ...S(C.div, M.header), children: t }) }), e[0] = t, e[1] = r) : r = e[1], r;
1661
+ return e[0] !== t ? (r = /* @__PURE__ */ W(pe.Provider, { value: !0, children: /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:309", role: "rowgroup", ...C(H.div, T.header), children: t }) }), e[0] = t, e[1] = r) : r = e[1], r;
1551
1662
  }
1552
- function gr(o) {
1663
+ function kr(o) {
1553
1664
  const e = R.c(19), {
1554
1665
  children: t
1555
1666
  } = o, {
1556
1667
  variant: r
1557
1668
  } = ue();
1558
- let a, i, c, l, s, n;
1669
+ let l, n, c, a, s, i;
1559
1670
  if (e[0] !== t || e[1] !== r) {
1560
- const u = ce.toArray(t);
1561
- i = xe.Provider, n = !1, a = qo.div, c = "rowgroup", l = M.body;
1671
+ const p = ce.toArray(t);
1672
+ n = pe.Provider, i = !1, l = Po.div, c = "rowgroup", a = T.body;
1562
1673
  let x;
1563
- e[8] !== r ? (x = (g, h) => r !== "striped" ? g : /* @__PURE__ */ W(Ie.Provider, { value: h, children: g }, g.key ?? h), e[8] = r, e[9] = x) : x = e[9], s = u.map(x), e[0] = t, e[1] = r, e[2] = a, e[3] = i, e[4] = c, e[5] = l, e[6] = s, e[7] = n;
1674
+ e[8] !== r ? (x = (h, g) => r !== "striped" ? h : /* @__PURE__ */ W(Ie.Provider, { value: g, children: h }, h.key ?? g), e[8] = r, e[9] = x) : x = e[9], s = p.map(x), e[0] = t, e[1] = r, e[2] = l, e[3] = n, e[4] = c, e[5] = a, e[6] = s, e[7] = i;
1564
1675
  } else
1565
- a = e[2], i = e[3], c = e[4], l = e[5], s = e[6], n = e[7];
1676
+ l = e[2], n = e[3], c = e[4], a = e[5], s = e[6], i = e[7];
1566
1677
  let d;
1567
- e[10] !== a || e[11] !== c || e[12] !== l || e[13] !== s ? (d = /* @__PURE__ */ W(a, { role: c, style: l, children: s }), e[10] = a, e[11] = c, e[12] = l, e[13] = s, e[14] = d) : d = e[14];
1568
- let p;
1569
- return e[15] !== i || e[16] !== n || e[17] !== d ? (p = /* @__PURE__ */ W(i, { value: n, children: d }), e[15] = i, e[16] = n, e[17] = d, e[18] = p) : p = e[18], p;
1678
+ e[10] !== l || e[11] !== c || e[12] !== a || e[13] !== s ? (d = /* @__PURE__ */ W(l, { role: c, style: a, children: s }), e[10] = l, e[11] = c, e[12] = a, e[13] = s, e[14] = d) : d = e[14];
1679
+ let u;
1680
+ return e[15] !== n || e[16] !== i || e[17] !== d ? (u = /* @__PURE__ */ W(n, { value: i, children: d }), e[15] = n, e[16] = i, e[17] = d, e[18] = u) : u = e[18], u;
1570
1681
  }
1571
- const Ie = F(-1), hr = 'button, a, input, select, textarea, [role="button"], [role="link"], [role="checkbox"], [role="menuitem"], [role="switch"], [role="tab"], [contenteditable="true"]';
1572
- function mr(o) {
1682
+ const Ie = A(-1), yr = 'button, a, input, select, textarea, [role="button"], [role="link"], [role="checkbox"], [role="menuitem"], [role="switch"], [role="tab"], [contenteditable="true"]';
1683
+ function wr(o) {
1573
1684
  const e = R.c(17), {
1574
1685
  children: t,
1575
1686
  onClick: r,
1576
- "aria-label": a
1687
+ "aria-label": l
1577
1688
  } = o, {
1578
- variant: i
1579
- } = ue(), c = A(xe), l = A(Ie), s = l >= 0 && l % 2 === 1;
1580
- let n;
1581
- if (e[0] !== a || e[1] !== t || e[2] !== s || e[3] !== c || e[4] !== r || e[5] !== i) {
1582
- const d = ce.toArray(t), p = r !== void 0 && !c;
1583
- let u;
1584
- e[7] !== p || e[8] !== r ? (u = p ? (m) => {
1585
- const y = m.target;
1586
- y instanceof Element && y.closest(hr) || r();
1587
- } : void 0, e[7] = p, e[8] = r, e[9] = u) : u = e[9];
1689
+ variant: n
1690
+ } = ue(), c = O(pe), a = O(Ie), s = a >= 0 && a % 2 === 1;
1691
+ let i;
1692
+ if (e[0] !== l || e[1] !== t || e[2] !== s || e[3] !== c || e[4] !== r || e[5] !== n) {
1693
+ const d = ce.toArray(t), u = r !== void 0 && !c;
1694
+ let p;
1695
+ e[7] !== u || e[8] !== r ? (p = u ? (m) => {
1696
+ const v = m.target;
1697
+ v instanceof Element && v.closest(yr) || r();
1698
+ } : void 0, e[7] = u, e[8] = r, e[9] = p) : p = e[9];
1588
1699
  let x;
1589
- e[10] !== p || e[11] !== r ? (x = p ? (m) => {
1700
+ e[10] !== u || e[11] !== r ? (x = u ? (m) => {
1590
1701
  (m.key === "Enter" || m.key === " ") && r();
1591
- } : void 0, e[10] = p, e[11] = r, e[12] = x) : x = e[12];
1592
- const g = !c && M.bodyRow, h = !c && i === "striped" && s && M.stripedEven, w = p && M.clickableRow;
1593
- let v;
1594
- e[13] !== g || e[14] !== h || e[15] !== w ? (v = [M.row, g, h, w], e[13] = g, e[14] = h, e[15] = w, e[16] = v) : v = e[16], n = /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:381", role: "row", tabIndex: p ? 0 : void 0, "aria-label": p ? a : void 0, onClick: u, onKeyDown: x, ...S(C.div, v), children: d.map((m, y) => /* @__PURE__ */ W(ge.Provider, { value: {
1595
- index: y,
1702
+ } : void 0, e[10] = u, e[11] = r, e[12] = x) : x = e[12];
1703
+ const h = !c && T.bodyRow, g = !c && n === "striped" && s && T.stripedEven, b = u && T.clickableRow;
1704
+ let f;
1705
+ e[13] !== h || e[14] !== g || e[15] !== b ? (f = [T.row, h, g, b], e[13] = h, e[14] = g, e[15] = b, e[16] = f) : f = e[16], i = /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:381", role: "row", tabIndex: u ? 0 : void 0, "aria-label": u ? l : void 0, onClick: p, onKeyDown: x, ...C(H.div, f), children: d.map((m, v) => /* @__PURE__ */ W(ge.Provider, { value: {
1706
+ index: v,
1596
1707
  total: d.length
1597
- }, children: m }, m.key ?? y)) }), e[0] = a, e[1] = t, e[2] = s, e[3] = c, e[4] = r, e[5] = i, e[6] = n;
1708
+ }, children: m }, m.key ?? v)) }), e[0] = l, e[1] = t, e[2] = s, e[3] = c, e[4] = r, e[5] = n, e[6] = i;
1598
1709
  } else
1599
- n = e[6];
1600
- return n;
1710
+ i = e[6];
1711
+ return i;
1601
1712
  }
1602
- const ge = F({
1713
+ const ge = A({
1603
1714
  index: 0,
1604
1715
  total: 0
1605
1716
  });
@@ -1608,87 +1719,88 @@ function he(o) {
1608
1719
  children: t,
1609
1720
  "aria-label": r
1610
1721
  } = o, {
1611
- size: a,
1612
- variant: i
1722
+ size: l,
1723
+ variant: n
1613
1724
  } = ue(), {
1614
1725
  index: c,
1615
- total: l
1616
- } = A(ge), s = i === "bordered" && c === l - 1, n = a === "sm" ? M.cellSm : M.cellMd, d = i === "bordered" && M.borderedCell, p = s && M.borderedCellLast;
1617
- let u;
1618
- e[0] !== n || e[1] !== d || e[2] !== p ? (u = [M.headerCell, n, d, p], e[0] = n, e[1] = d, e[2] = p, e[3] = u) : u = e[3];
1726
+ total: a
1727
+ } = O(ge), s = n === "bordered" && c === a - 1, i = l === "sm" ? T.cellSm : T.cellMd, d = n === "bordered" && T.borderedCell, u = s && T.borderedCellLast;
1728
+ let p;
1729
+ e[0] !== i || e[1] !== d || e[2] !== u ? (p = [T.headerCell, i, d, u], e[0] = i, e[1] = d, e[2] = u, e[3] = p) : p = e[3];
1619
1730
  let x;
1620
- return e[4] !== r || e[5] !== t || e[6] !== u ? (x = /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:467", role: "columnheader", "aria-label": r, ...S(C.div, u), children: t }), e[4] = r, e[5] = t, e[6] = u, e[7] = x) : x = e[7], x;
1731
+ return e[4] !== r || e[5] !== t || e[6] !== p ? (x = /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:467", role: "columnheader", "aria-label": r, ...C(H.div, p), children: t }), e[4] = r, e[5] = t, e[6] = p, e[7] = x) : x = e[7], x;
1621
1732
  }
1622
1733
  he.displayName = "HeaderCell";
1623
- function br(o) {
1734
+ function Mr(o) {
1624
1735
  const e = R.c(16), {
1625
1736
  children: t,
1626
1737
  isActions: r
1627
1738
  } = o, {
1628
- size: a,
1629
- variant: i,
1739
+ size: l,
1740
+ variant: n,
1630
1741
  labels: c,
1631
- responsive: l
1742
+ responsive: a
1632
1743
  } = ue(), {
1633
1744
  index: s,
1634
- total: n
1635
- } = A(ge), d = i === "bordered" && s === n - 1, p = c[s] ?? "", u = a === "sm" ? M.cellSm : M.cellMd, x = i === "bordered" && M.borderedCell, g = d && M.borderedCellLast, h = r && M.cellActions;
1636
- let w;
1637
- e[0] !== u || e[1] !== x || e[2] !== g || e[3] !== h ? (w = [M.cell, u, x, g, h], e[0] = u, e[1] = x, e[2] = g, e[3] = h, e[4] = w) : w = e[4];
1638
- let v;
1639
- e[5] !== r || e[6] !== p || e[7] !== l ? (v = l && !r && p !== "" ? /* @__PURE__ */ W("span", { "data-element-src": "Table/Table.tsx:507", ...S(C.span, M.cellLabel), children: p }) : null, e[5] = r, e[6] = p, e[7] = l, e[8] = v) : v = e[8];
1745
+ total: i
1746
+ } = O(ge), d = n === "bordered" && s === i - 1, u = c[s] ?? "", p = l === "sm" ? T.cellSm : T.cellMd, x = n === "bordered" && T.borderedCell, h = d && T.borderedCellLast, g = r && T.cellActions;
1747
+ let b;
1748
+ e[0] !== p || e[1] !== x || e[2] !== h || e[3] !== g ? (b = [T.cell, p, x, h, g], e[0] = p, e[1] = x, e[2] = h, e[3] = g, e[4] = b) : b = e[4];
1749
+ let f;
1750
+ e[5] !== r || e[6] !== u || e[7] !== a ? (f = a && !r && u !== "" ? /* @__PURE__ */ W("span", { "data-element-src": "Table/Table.tsx:507", ...C(H.span, T.cellLabel), children: u }) : null, e[5] = r, e[6] = u, e[7] = a, e[8] = f) : f = e[8];
1640
1751
  let m;
1641
- e[9] !== t || e[10] !== r ? (m = r ? t : /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:509", ...S(C.div, M.cellValue), children: t }), e[9] = t, e[10] = r, e[11] = m) : m = e[11];
1642
- let y;
1643
- return e[12] !== w || e[13] !== v || e[14] !== m ? (y = /* @__PURE__ */ le("div", { "data-element-src": "Table/Table.tsx:496", role: "cell", ...S(C.div, w), children: [
1644
- v,
1752
+ e[9] !== t || e[10] !== r ? (m = r ? t : /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:509", ...C(H.div, T.cellValue), children: t }), e[9] = t, e[10] = r, e[11] = m) : m = e[11];
1753
+ let v;
1754
+ return e[12] !== b || e[13] !== f || e[14] !== m ? (v = /* @__PURE__ */ ae("div", { "data-element-src": "Table/Table.tsx:496", role: "cell", ...C(H.div, b), children: [
1755
+ f,
1645
1756
  m
1646
- ] }), e[12] = w, e[13] = v, e[14] = m, e[15] = y) : y = e[15], y;
1757
+ ] }), e[12] = b, e[13] = f, e[14] = m, e[15] = v) : v = e[15], v;
1647
1758
  }
1648
- const fr = {
1759
+ const Tr = {
1649
1760
  /** @deprecated Wrap behaviour is built into Table.Root. Drop this wrapper from new code. */
1650
- Container: lr,
1651
- Root: pr,
1652
- Header: xr,
1653
- Body: gr,
1654
- Row: mr,
1761
+ Container: pr,
1762
+ Root: fr,
1763
+ Header: vr,
1764
+ Body: kr,
1765
+ Row: wr,
1655
1766
  HeaderCell: he,
1656
- Cell: br
1657
- }, Hr = fr;
1767
+ Cell: Mr
1768
+ }, Ir = Tr;
1658
1769
  export {
1659
- Te as B,
1660
- Ko as C,
1661
- Mr as D,
1770
+ Se as B,
1771
+ Jo as C,
1772
+ Hr as D,
1662
1773
  he as H,
1663
- Wr as I,
1664
- Cr as M,
1665
- Jo as P,
1666
- mr as R,
1667
- Oe as S,
1668
- Tr as T,
1669
- Vo as a,
1670
- Sr as b,
1671
- Qo as c,
1672
- He as d,
1673
- Uo as e,
1674
- J as f,
1675
- Po as g,
1676
- qo as h,
1677
- Se as i,
1678
- Bo as j,
1679
- We as k,
1680
- $r as l,
1681
- No as m,
1682
- ve as n,
1683
- Hr as o,
1684
- M as p,
1685
- xr as q,
1686
- ze as r,
1687
- Ce as s,
1688
- gr as t,
1689
- Oo as u,
1690
- pr as v,
1691
- br as w,
1692
- fr as x
1774
+ jr as I,
1775
+ Lr as M,
1776
+ nr as P,
1777
+ wr as R,
1778
+ Ge as S,
1779
+ zr as T,
1780
+ Zo as a,
1781
+ Br as b,
1782
+ Ae as c,
1783
+ je as d,
1784
+ ir as e,
1785
+ rr as f,
1786
+ Q as g,
1787
+ Po as h,
1788
+ Ce as i,
1789
+ Eo as j,
1790
+ Oo as k,
1791
+ Rr as l,
1792
+ We as m,
1793
+ er as n,
1794
+ ye as o,
1795
+ Ir as p,
1796
+ T as q,
1797
+ Re as r,
1798
+ He as s,
1799
+ vr as t,
1800
+ Do as u,
1801
+ kr as v,
1802
+ fr as w,
1803
+ Mr as x,
1804
+ Tr as y
1693
1805
  };
1694
- //# sourceMappingURL=Table-Bms2ftt3.js.map
1806
+ //# sourceMappingURL=Table-DnaoH-h5.js.map