@duro-app/ui 5.13.0 → 5.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -0
- package/dist/{Table-Bms2ftt3.js → Table-DnaoH-h5.js} +747 -635
- package/dist/Table-DnaoH-h5.js.map +1 -0
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/ColorMode/ColorMode.d.ts +2 -1
- package/dist/components/ColorMode/ColorMode.d.ts.map +1 -1
- package/dist/components/ColorMode/storage.d.ts +4 -0
- package/dist/components/ColorMode/storage.d.ts.map +1 -0
- package/dist/components/ColorMode/styles.css.d.ts +4 -0
- package/dist/components/ColorMode/styles.css.d.ts.map +1 -1
- package/dist/components/ColorMode/useSystemScheme.d.ts +7 -0
- package/dist/components/ColorMode/useSystemScheme.d.ts.map +1 -0
- package/dist/components/Combobox/Combobox.d.ts +7 -2
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/Combobox/comboboxState.d.ts +29 -0
- package/dist/components/Combobox/comboboxState.d.ts.map +1 -0
- package/dist/components/Combobox/native.css.d.ts +27 -0
- package/dist/components/Combobox/native.css.d.ts.map +1 -0
- package/dist/components/Combobox/useComboboxRoot.d.ts +6 -10
- package/dist/components/Combobox/useComboboxRoot.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.d.ts +5 -2
- package/dist/components/Drawer/Drawer.d.ts.map +1 -1
- package/dist/components/Drawer/DrawerSnap.stories.d.ts +2 -0
- package/dist/components/Drawer/DrawerSnap.stories.d.ts.map +1 -1
- package/dist/components/Drawer/native.css.d.ts +4 -0
- package/dist/components/Drawer/native.css.d.ts.map +1 -1
- package/dist/components/Drawer/styles.css.d.ts +4 -0
- package/dist/components/Drawer/styles.css.d.ts.map +1 -1
- package/dist/components/Form/FormSubmitContext.d.ts +8 -0
- package/dist/components/Form/FormSubmitContext.d.ts.map +1 -0
- package/dist/components/Listbox/native.css.d.ts +84 -0
- package/dist/components/Listbox/native.css.d.ts.map +1 -0
- package/dist/components/Select/Select.d.ts +9 -2
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/Select.stories.d.ts +11 -0
- package/dist/components/Select/Select.stories.d.ts.map +1 -1
- package/dist/components/Select/native.css.d.ts +11 -0
- package/dist/components/Select/native.css.d.ts.map +1 -0
- package/dist/components/Select/selectState.d.ts +21 -0
- package/dist/components/Select/selectState.d.ts.map +1 -0
- package/dist/components/Select/styles.css.d.ts +10 -0
- package/dist/components/Select/styles.css.d.ts.map +1 -1
- package/dist/components/Select/useSelectRoot.d.ts +6 -8
- package/dist/components/Select/useSelectRoot.d.ts.map +1 -1
- package/dist/components/ThemeProvider/ThemeOverrides.stories.d.ts +13 -0
- package/dist/components/ThemeProvider/ThemeOverrides.stories.d.ts.map +1 -0
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +9 -2
- package/dist/components/ThemeProvider/ThemeProvider.d.ts.map +1 -1
- package/dist/components/ThemeProvider/overrideRule.d.ts +7 -0
- package/dist/components/ThemeProvider/overrideRule.d.ts.map +1 -0
- package/dist/components/ThemeProvider/overrides.d.ts +16 -0
- package/dist/components/ThemeProvider/overrides.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3302 -3268
- package/dist/index.js.map +1 -1
- package/dist/shared/textOf.d.ts +7 -0
- package/dist/shared/textOf.d.ts.map +1 -0
- package/dist/table.js +1 -1
- package/package.json +3 -2
- package/src/components/Button/Button.tsx +12 -1
- package/src/components/ColorMode/ColorMode.meta.ts +1 -1
- package/src/components/ColorMode/ColorMode.tsx +16 -37
- package/src/components/ColorMode/storage.native.ts +8 -0
- package/src/components/ColorMode/storage.ts +19 -0
- package/src/components/ColorMode/styles.css.ts +6 -0
- package/src/components/ColorMode/useSystemScheme.native.ts +6 -0
- package/src/components/ColorMode/useSystemScheme.ts +19 -0
- package/src/components/Combobox/Combobox.meta.ts +1 -1
- package/src/components/Combobox/Combobox.native.tsx +295 -0
- package/src/components/Combobox/Combobox.tsx +14 -8
- package/src/components/Combobox/comboboxState.ts +107 -0
- package/src/components/Combobox/native.css.ts +33 -0
- package/src/components/Combobox/useComboboxRoot.ts +17 -91
- package/src/components/Drawer/Drawer.meta.ts +1 -1
- package/src/components/Drawer/Drawer.native.tsx +29 -7
- package/src/components/Drawer/Drawer.tsx +11 -2
- package/src/components/Drawer/DrawerSnap.stories.tsx +22 -2
- package/src/components/Drawer/native.css.ts +4 -0
- package/src/components/Drawer/styles.css.ts +4 -0
- package/src/components/Form/Form.meta.ts +1 -1
- package/src/components/Form/Form.native.tsx +120 -0
- package/src/components/Form/FormSubmitContext.ts +12 -0
- package/src/components/Listbox/Listbox.meta.ts +1 -1
- package/src/components/Listbox/Listbox.native.tsx +153 -0
- package/src/components/Listbox/native.css.ts +91 -0
- package/src/components/ScrollArea/ScrollArea.meta.ts +1 -1
- package/src/components/ScrollArea/ScrollArea.native.tsx +61 -0
- package/src/components/Select/Select.meta.ts +1 -1
- package/src/components/Select/Select.native.tsx +224 -0
- package/src/components/Select/Select.stories.tsx +49 -1
- package/src/components/Select/Select.tsx +20 -3
- package/src/components/Select/native.css.ts +13 -0
- package/src/components/Select/selectState.ts +36 -0
- package/src/components/Select/styles.css.ts +11 -0
- package/src/components/Select/useSelectRoot.ts +9 -30
- package/src/components/ThemeProvider/ThemeOverrides.stories.tsx +113 -0
- package/src/components/ThemeProvider/ThemeProvider.meta.ts +1 -1
- package/src/components/ThemeProvider/ThemeProvider.native.tsx +36 -7
- package/src/components/ThemeProvider/ThemeProvider.tsx +42 -6
- package/src/components/ThemeProvider/overrideRule.ts +39 -0
- package/src/components/ThemeProvider/overrides.ts +27 -0
- package/src/form.native.ts +7 -0
- package/src/index.native.ts +15 -0
- package/src/index.ts +1 -0
- package/src/shared/focusInput.native.ts +18 -0
- package/src/shared/textOf.ts +13 -0
- package/dist/Table-Bms2ftt3.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as W, jsxs as
|
|
2
|
-
import { c as R, m as
|
|
3
|
-
import { useContext as
|
|
4
|
-
import { createPortal as
|
|
5
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
115
|
-
sm:
|
|
116
|
-
md:
|
|
117
|
-
lg:
|
|
118
|
-
xl:
|
|
119
|
-
xxl:
|
|
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
|
|
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
|
|
133
|
-
function
|
|
134
|
-
return
|
|
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
|
|
137
|
-
Object.defineProperty(
|
|
205
|
+
var xe = {};
|
|
206
|
+
Object.defineProperty(xe, "__esModule", {
|
|
138
207
|
value: !0
|
|
139
208
|
});
|
|
140
|
-
var
|
|
141
|
-
function
|
|
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
|
|
145
|
-
d[
|
|
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
|
|
148
|
-
if (!(
|
|
149
|
-
if (Array.isArray(
|
|
150
|
-
for (var x = 0; x <
|
|
151
|
-
d.push(
|
|
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
|
|
155
|
-
if (
|
|
156
|
-
var
|
|
157
|
-
if (
|
|
158
|
-
var
|
|
159
|
-
|
|
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
|
|
162
|
-
for (var m in
|
|
163
|
-
var
|
|
164
|
-
if (m ===
|
|
165
|
-
var
|
|
166
|
-
|
|
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
|
|
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 (
|
|
172
|
-
var
|
|
173
|
-
|
|
240
|
+
if (i != null) {
|
|
241
|
+
var $ = /* @__PURE__ */ new WeakMap();
|
|
242
|
+
i.set(h, [g, f, s, $]), i = $;
|
|
174
243
|
}
|
|
175
244
|
}
|
|
176
|
-
|
|
245
|
+
g && (c = c ? g + " " + c : g);
|
|
177
246
|
} else if (t)
|
|
178
|
-
|
|
247
|
+
a == null && (a = {}), a = Object.assign({}, h, a);
|
|
179
248
|
else {
|
|
180
|
-
var
|
|
181
|
-
for (var
|
|
182
|
-
var
|
|
183
|
-
|
|
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
|
-
|
|
254
|
+
M != null && (a = Object.assign(M, a));
|
|
186
255
|
}
|
|
187
256
|
}
|
|
188
257
|
}
|
|
189
|
-
var E = [c,
|
|
258
|
+
var E = [c, a, s];
|
|
190
259
|
return E;
|
|
191
260
|
};
|
|
192
261
|
}
|
|
193
|
-
var
|
|
194
|
-
|
|
195
|
-
const
|
|
262
|
+
var Ne = Me = xe.styleq = Te();
|
|
263
|
+
Ne.factory = Te;
|
|
264
|
+
const Ye = Me.factory({
|
|
196
265
|
disableMix: !0
|
|
197
266
|
});
|
|
198
|
-
function
|
|
199
|
-
const [e, t, r] =
|
|
200
|
-
if (e != null && e !== "" && (
|
|
201
|
-
const
|
|
202
|
-
for (const
|
|
203
|
-
const s =
|
|
204
|
-
d != null && (c[
|
|
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
|
-
|
|
275
|
+
l["data-style-src"] = Object.keys(c).map((a) => `${a}:${c[a]}`).join("; ");
|
|
207
276
|
}
|
|
208
|
-
return
|
|
277
|
+
return l;
|
|
209
278
|
}
|
|
210
|
-
function
|
|
279
|
+
function Ue(o) {
|
|
211
280
|
Object.keys(o).forEach((e) => {
|
|
212
|
-
|
|
281
|
+
Ve(e) || (Fe(`invalid prop "${e}"`), delete o[e]);
|
|
213
282
|
});
|
|
214
283
|
}
|
|
215
|
-
function
|
|
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:
|
|
222
|
-
...
|
|
290
|
+
ref: l,
|
|
291
|
+
...n
|
|
223
292
|
}) {
|
|
224
293
|
const {
|
|
225
294
|
for: c,
|
|
226
|
-
style:
|
|
295
|
+
style: a,
|
|
227
296
|
...s
|
|
228
|
-
} =
|
|
229
|
-
|
|
230
|
-
const d =
|
|
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
|
-
...
|
|
301
|
+
...i,
|
|
233
302
|
...d,
|
|
234
|
-
ref:
|
|
303
|
+
ref: l
|
|
235
304
|
});
|
|
236
305
|
}
|
|
237
306
|
return r.displayName = `html.${o}`, r;
|
|
238
307
|
}
|
|
239
|
-
const
|
|
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
|
-
},
|
|
308
|
-
a:
|
|
309
|
-
article:
|
|
310
|
-
aside:
|
|
311
|
-
b:
|
|
312
|
-
bdi:
|
|
313
|
-
bdo:
|
|
314
|
-
blockquote:
|
|
315
|
-
br:
|
|
316
|
-
button:
|
|
317
|
-
code:
|
|
318
|
-
del:
|
|
319
|
-
div:
|
|
320
|
-
em:
|
|
321
|
-
fieldset:
|
|
322
|
-
footer:
|
|
323
|
-
form:
|
|
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:
|
|
331
|
-
hr:
|
|
332
|
-
i:
|
|
333
|
-
img:
|
|
334
|
-
input:
|
|
335
|
-
ins:
|
|
336
|
-
kbd:
|
|
337
|
-
label:
|
|
338
|
-
li:
|
|
339
|
-
main:
|
|
340
|
-
mark:
|
|
341
|
-
nav:
|
|
342
|
-
ol:
|
|
343
|
-
optgroup:
|
|
344
|
-
option:
|
|
345
|
-
p:
|
|
346
|
-
pre:
|
|
347
|
-
s:
|
|
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:
|
|
350
|
-
span:
|
|
351
|
-
strong:
|
|
352
|
-
sub:
|
|
353
|
-
sup:
|
|
354
|
-
textarea:
|
|
355
|
-
u:
|
|
356
|
-
ul:
|
|
357
|
-
},
|
|
358
|
-
var
|
|
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:
|
|
361
|
-
article:
|
|
362
|
-
aside:
|
|
363
|
-
b:
|
|
364
|
-
bdi:
|
|
365
|
-
bdo:
|
|
366
|
-
blockquote:
|
|
367
|
-
br:
|
|
368
|
-
button:
|
|
369
|
-
code:
|
|
370
|
-
del:
|
|
371
|
-
div:
|
|
372
|
-
em:
|
|
373
|
-
fieldset:
|
|
374
|
-
footer:
|
|
375
|
-
form:
|
|
376
|
-
h1:
|
|
377
|
-
h2:
|
|
378
|
-
h3:
|
|
379
|
-
h4:
|
|
380
|
-
h5:
|
|
381
|
-
h6:
|
|
382
|
-
header:
|
|
383
|
-
hr:
|
|
384
|
-
i:
|
|
385
|
-
img:
|
|
386
|
-
input:
|
|
387
|
-
ins:
|
|
388
|
-
kbd:
|
|
389
|
-
label:
|
|
390
|
-
li:
|
|
391
|
-
main:
|
|
392
|
-
mark:
|
|
393
|
-
nav:
|
|
394
|
-
ol:
|
|
395
|
-
optgroup:
|
|
396
|
-
option:
|
|
397
|
-
p:
|
|
398
|
-
pre:
|
|
399
|
-
s:
|
|
400
|
-
section:
|
|
401
|
-
select:
|
|
402
|
-
span:
|
|
403
|
-
strong:
|
|
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:
|
|
406
|
-
textarea:
|
|
407
|
-
u:
|
|
408
|
-
ul:
|
|
474
|
+
sup: Bo,
|
|
475
|
+
textarea: Lo,
|
|
476
|
+
u: Io,
|
|
477
|
+
ul: qo
|
|
409
478
|
});
|
|
410
|
-
const We =
|
|
411
|
-
function
|
|
412
|
-
return
|
|
479
|
+
const We = A(null);
|
|
480
|
+
function Eo() {
|
|
481
|
+
return O(We);
|
|
413
482
|
}
|
|
414
|
-
const
|
|
415
|
-
function
|
|
416
|
-
return
|
|
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
|
-
},
|
|
525
|
+
}, Go = {
|
|
457
526
|
horizontal: {
|
|
458
|
-
first:
|
|
459
|
-
middle:
|
|
460
|
-
last:
|
|
527
|
+
first: K.horizontalFirst,
|
|
528
|
+
middle: K.horizontalMiddle,
|
|
529
|
+
last: K.horizontalLast,
|
|
461
530
|
only: null
|
|
462
531
|
},
|
|
463
532
|
vertical: {
|
|
464
|
-
first:
|
|
465
|
-
middle:
|
|
466
|
-
last:
|
|
533
|
+
first: K.verticalFirst,
|
|
534
|
+
middle: K.verticalMiddle,
|
|
535
|
+
last: K.verticalLast,
|
|
467
536
|
only: null
|
|
468
537
|
}
|
|
469
538
|
};
|
|
470
|
-
function
|
|
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,
|
|
477
|
-
let
|
|
478
|
-
e[2] !==
|
|
479
|
-
const
|
|
480
|
-
if (
|
|
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
|
|
551
|
+
const M = i?.(n, $, l), j = d?.(n, $, l);
|
|
483
552
|
return () => {
|
|
484
|
-
|
|
553
|
+
M?.(), j?.();
|
|
485
554
|
};
|
|
486
|
-
},
|
|
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] !==
|
|
489
|
-
const
|
|
490
|
-
let
|
|
491
|
-
e[11] !==
|
|
492
|
-
const
|
|
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] !==
|
|
495
|
-
let
|
|
496
|
-
e[17] !==
|
|
497
|
-
let
|
|
498
|
-
return e[20] !==
|
|
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:
|
|
501
|
-
position:
|
|
502
|
-
style:
|
|
569
|
+
attached: f,
|
|
570
|
+
position: h,
|
|
571
|
+
style: b,
|
|
503
572
|
tabIndex: m,
|
|
504
|
-
onFocus:
|
|
505
|
-
}, e[20] =
|
|
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
|
|
508
|
-
xjvd03b: "
|
|
576
|
+
const Ao = {
|
|
577
|
+
xjvd03b: "xoev3oz xjvd03b",
|
|
509
578
|
$$css: !0
|
|
510
|
-
},
|
|
579
|
+
}, Fo = {
|
|
511
580
|
x13v825q: "x1jk1o70 x13v825q",
|
|
512
581
|
$$css: !0
|
|
513
|
-
},
|
|
514
|
-
xjvd03b: "
|
|
582
|
+
}, Xo = {
|
|
583
|
+
xjvd03b: "x1ud4188 xjvd03b",
|
|
515
584
|
$$css: !0
|
|
516
|
-
},
|
|
585
|
+
}, Vo = {
|
|
517
586
|
x13v825q: "xc8o4hb x13v825q",
|
|
518
587
|
$$css: !0
|
|
519
|
-
},
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
}
|
|
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:
|
|
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:
|
|
631
|
+
$$css: "ThemeProvider/ThemeProvider.tsx:39"
|
|
537
632
|
}
|
|
538
|
-
}, $e =
|
|
539
|
-
function
|
|
540
|
-
return
|
|
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
|
|
543
|
-
const e = R.c(
|
|
641
|
+
function zr(o) {
|
|
642
|
+
const e = R.c(25), {
|
|
544
643
|
theme: t,
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
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
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
]
|
|
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
|
|
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(
|
|
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
|
|
678
|
+
function Ce(o) {
|
|
568
679
|
return o.button === 0 && !o.metaKey && !o.ctrlKey && !o.shiftKey && !o.altKey && !o.defaultPrevented;
|
|
569
680
|
}
|
|
570
|
-
function
|
|
681
|
+
function Rr(o, e, t) {
|
|
571
682
|
if (e)
|
|
572
683
|
return (r) => {
|
|
573
|
-
t != null || !
|
|
684
|
+
t != null || !Ce(r) || e(o, r);
|
|
574
685
|
};
|
|
575
686
|
}
|
|
576
|
-
const
|
|
687
|
+
const Br = {
|
|
577
688
|
xs: 480,
|
|
578
689
|
sm: 640,
|
|
579
690
|
md: 768,
|
|
580
691
|
lg: 1024,
|
|
581
692
|
xl: 1280
|
|
582
|
-
},
|
|
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
|
-
},
|
|
676
|
-
function
|
|
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
|
-
|
|
789
|
+
Qo || ke.has(r) || (ke.add(r), console.warn(`[duro-app/ui ${o}] ${t}`));
|
|
679
790
|
}
|
|
680
|
-
const
|
|
681
|
-
function
|
|
682
|
-
return typeof o == "string" &&
|
|
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
|
|
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((
|
|
800
|
+
const r = t[2].split(",").map((l) => String(Re(l.trim())));
|
|
690
801
|
return `${t[1]}(${r.join(", ")})`;
|
|
691
802
|
}
|
|
692
|
-
return
|
|
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
|
-
},
|
|
928
|
+
}, Be = A(null);
|
|
818
929
|
function de() {
|
|
819
|
-
const o =
|
|
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
|
|
935
|
+
function er(o, e) {
|
|
825
936
|
return o ? !e.some((t) => t != null && t.contains(o)) : !0;
|
|
826
937
|
}
|
|
827
|
-
function
|
|
938
|
+
function tr({
|
|
828
939
|
open: o,
|
|
829
940
|
defaultOpen: e = !1,
|
|
830
941
|
onOpenChange: t
|
|
831
942
|
}) {
|
|
832
|
-
const [r,
|
|
833
|
-
|
|
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
|
|
837
|
-
d !==
|
|
838
|
-
}, [
|
|
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:
|
|
842
|
-
setOpen:
|
|
952
|
+
openRef: a,
|
|
953
|
+
setOpen: i
|
|
843
954
|
};
|
|
844
955
|
}
|
|
845
|
-
function
|
|
956
|
+
function or(o) {
|
|
846
957
|
const e = R.c(37), {
|
|
847
958
|
open: t,
|
|
848
959
|
openRef: r,
|
|
849
|
-
setOpen:
|
|
850
|
-
} =
|
|
851
|
-
let s,
|
|
852
|
-
e[0] !==
|
|
853
|
-
|
|
854
|
-
},
|
|
855
|
-
const d =
|
|
856
|
-
let
|
|
857
|
-
e[3] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
858
|
-
const
|
|
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[
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
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
|
-
|
|
991
|
+
h.current?.focus({
|
|
881
992
|
preventScroll: !0
|
|
882
993
|
});
|
|
883
|
-
const
|
|
884
|
-
|
|
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
|
-
},
|
|
889
|
-
let
|
|
890
|
-
e[18] !==
|
|
891
|
-
if (!
|
|
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
|
-
|
|
1004
|
+
b.current.get(n)?.scrollIntoView?.({
|
|
894
1005
|
block: "nearest"
|
|
895
1006
|
});
|
|
896
|
-
},
|
|
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 = (
|
|
899
|
-
|
|
900
|
-
const N =
|
|
901
|
-
return q.sort((L,
|
|
902
|
-
const Y = N.get(L), me = N.get(
|
|
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
|
-
|
|
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] !==
|
|
911
|
-
const
|
|
912
|
-
if (!
|
|
1021
|
+
e[22] !== M || e[23] !== t ? (oe = () => {
|
|
1022
|
+
const B = h.current;
|
|
1023
|
+
if (!B || !t)
|
|
913
1024
|
return;
|
|
914
|
-
const
|
|
1025
|
+
const J = function(q) {
|
|
915
1026
|
if (q.key === "Escape") {
|
|
916
|
-
q.preventDefault(), q.stopPropagation(),
|
|
1027
|
+
q.preventDefault(), q.stopPropagation(), M();
|
|
917
1028
|
return;
|
|
918
1029
|
}
|
|
919
1030
|
if (q.key === "Tab") {
|
|
920
|
-
|
|
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((
|
|
928
|
-
const Y =
|
|
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((
|
|
935
|
-
const Y =
|
|
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
|
|
952
|
-
|
|
1062
|
+
const D = a.current;
|
|
1063
|
+
D && b.current.get(D)?.click();
|
|
953
1064
|
}
|
|
954
1065
|
}
|
|
955
1066
|
};
|
|
956
|
-
return
|
|
957
|
-
}, re = [t,
|
|
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] !==
|
|
1070
|
+
e[26] !== S || e[27] !== t ? (ne = () => {
|
|
960
1071
|
if (!t)
|
|
961
1072
|
return;
|
|
962
|
-
const
|
|
963
|
-
|
|
1073
|
+
const B = function(N) {
|
|
1074
|
+
er(N.target, [h.current, x.current]) && S();
|
|
964
1075
|
};
|
|
965
|
-
return document.addEventListener("pointerdown",
|
|
966
|
-
}, ie = [t,
|
|
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] !==
|
|
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:
|
|
972
|
-
close:
|
|
1082
|
+
toggle: z,
|
|
1083
|
+
close: M,
|
|
973
1084
|
menuId: d,
|
|
974
|
-
triggerId:
|
|
975
|
-
highlightedId:
|
|
1085
|
+
triggerId: u,
|
|
1086
|
+
highlightedId: n,
|
|
976
1087
|
setHighlightedId: c,
|
|
977
1088
|
registerItem: qe,
|
|
978
1089
|
triggerRef: x,
|
|
979
|
-
popupRef:
|
|
1090
|
+
popupRef: h
|
|
980
1091
|
},
|
|
981
|
-
rootRef:
|
|
982
|
-
}, e[30] =
|
|
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
|
|
1095
|
+
function rr({
|
|
985
1096
|
anchor: o,
|
|
986
1097
|
popup: e,
|
|
987
1098
|
viewport: t,
|
|
988
1099
|
side: r,
|
|
989
|
-
align:
|
|
990
|
-
offset:
|
|
1100
|
+
align: l,
|
|
1101
|
+
offset: n
|
|
991
1102
|
}) {
|
|
992
|
-
const c = o.top + o.height +
|
|
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 &&
|
|
995
|
-
const
|
|
996
|
-
let
|
|
997
|
-
|
|
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
|
|
1000
|
-
top:
|
|
1001
|
-
left:
|
|
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
|
|
1006
|
-
function
|
|
1116
|
+
const nr = A(null);
|
|
1117
|
+
function ir(o, e) {
|
|
1007
1118
|
const t = R.c(5), {
|
|
1008
1119
|
active: r
|
|
1009
|
-
} = e,
|
|
1010
|
-
let
|
|
1011
|
-
t[0] !== r || t[1] !==
|
|
1012
|
-
const
|
|
1013
|
-
if (!(!
|
|
1014
|
-
return
|
|
1015
|
-
}, 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
|
|
1128
|
+
function sr(o) {
|
|
1018
1129
|
const e = R.c(10), {
|
|
1019
1130
|
children: t,
|
|
1020
1131
|
open: r,
|
|
1021
|
-
defaultOpen:
|
|
1022
|
-
onOpenChange:
|
|
1132
|
+
defaultOpen: l,
|
|
1133
|
+
onOpenChange: n
|
|
1023
1134
|
} = o;
|
|
1024
1135
|
let c;
|
|
1025
|
-
e[0] !==
|
|
1136
|
+
e[0] !== l || e[1] !== n || e[2] !== r ? (c = {
|
|
1026
1137
|
open: r,
|
|
1027
|
-
defaultOpen:
|
|
1028
|
-
onOpenChange:
|
|
1029
|
-
}, e[0] =
|
|
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:
|
|
1142
|
+
ctx: a,
|
|
1032
1143
|
rootRef: s
|
|
1033
|
-
} =
|
|
1034
|
-
let
|
|
1035
|
-
e[4] !== t || e[5] !== s ? (
|
|
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] !==
|
|
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
|
|
1040
|
-
function
|
|
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:
|
|
1156
|
+
ref: l
|
|
1046
1157
|
}) {
|
|
1047
1158
|
const {
|
|
1048
|
-
open:
|
|
1159
|
+
open: n,
|
|
1049
1160
|
toggle: c,
|
|
1050
|
-
menuId:
|
|
1161
|
+
menuId: a,
|
|
1051
1162
|
triggerId: s,
|
|
1052
|
-
triggerRef:
|
|
1053
|
-
} = de(), d =
|
|
1054
|
-
|
|
1055
|
-
}, [
|
|
1056
|
-
return
|
|
1057
|
-
|
|
1058
|
-
}, [
|
|
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
|
|
1171
|
+
function cr(o) {
|
|
1061
1172
|
const e = R.c(26), {
|
|
1062
1173
|
children: t,
|
|
1063
1174
|
align: r
|
|
1064
|
-
} = o,
|
|
1065
|
-
open:
|
|
1175
|
+
} = o, l = r === void 0 ? "start" : r, {
|
|
1176
|
+
open: n,
|
|
1066
1177
|
menuId: c,
|
|
1067
|
-
triggerId:
|
|
1178
|
+
triggerId: a,
|
|
1068
1179
|
highlightedId: s,
|
|
1069
|
-
triggerRef:
|
|
1180
|
+
triggerRef: i,
|
|
1070
1181
|
popupRef: d
|
|
1071
1182
|
} = de();
|
|
1072
|
-
let
|
|
1073
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1183
|
+
let u;
|
|
1184
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (u = {
|
|
1074
1185
|
top: 0,
|
|
1075
1186
|
left: 0
|
|
1076
|
-
}, e[0] =
|
|
1077
|
-
const [
|
|
1078
|
-
let
|
|
1079
|
-
e[1] !==
|
|
1080
|
-
active:
|
|
1081
|
-
}, e[1] =
|
|
1082
|
-
let
|
|
1083
|
-
if (e[3] !==
|
|
1084
|
-
if (!
|
|
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,
|
|
1088
|
-
if (!X || !
|
|
1198
|
+
const X = d.current, G = i.current?.getBoundingClientRect();
|
|
1199
|
+
if (!X || !G)
|
|
1089
1200
|
return;
|
|
1090
|
-
const
|
|
1201
|
+
const F = rr({
|
|
1091
1202
|
anchor: {
|
|
1092
|
-
top:
|
|
1093
|
-
left:
|
|
1094
|
-
width:
|
|
1095
|
-
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:
|
|
1107
|
-
offset:
|
|
1217
|
+
align: l,
|
|
1218
|
+
offset: Ge.xs
|
|
1108
1219
|
});
|
|
1109
|
-
x((V) => V.top ===
|
|
1110
|
-
top:
|
|
1111
|
-
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
|
-
},
|
|
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
|
|
1121
|
-
e[9] !==
|
|
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[
|
|
1124
|
-
let
|
|
1125
|
-
e[
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
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
|
|
1243
|
+
function dr(o) {
|
|
1133
1244
|
const e = R.c(18), {
|
|
1134
1245
|
onClick: t,
|
|
1135
1246
|
children: r
|
|
1136
1247
|
} = o, {
|
|
1137
|
-
close:
|
|
1138
|
-
highlightedId:
|
|
1248
|
+
close: l,
|
|
1249
|
+
highlightedId: n,
|
|
1139
1250
|
setHighlightedId: c,
|
|
1140
|
-
registerItem:
|
|
1141
|
-
} = de(), s =
|
|
1142
|
-
let
|
|
1143
|
-
e[0] !== s || e[1] !==
|
|
1144
|
-
const
|
|
1145
|
-
if (
|
|
1146
|
-
return
|
|
1147
|
-
},
|
|
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] !==
|
|
1150
|
-
t?.(),
|
|
1151
|
-
}, e[4] =
|
|
1152
|
-
const
|
|
1153
|
-
let
|
|
1154
|
-
e[7] !== s || e[8] !== c ? (
|
|
1155
|
-
const
|
|
1156
|
-
let
|
|
1157
|
-
e[10] !==
|
|
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] !==
|
|
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
|
|
1272
|
+
function ur(o) {
|
|
1162
1273
|
const e = R.c(20), {
|
|
1163
1274
|
href: t,
|
|
1164
1275
|
onNavigate: r,
|
|
1165
|
-
children:
|
|
1276
|
+
children: l
|
|
1166
1277
|
} = o, {
|
|
1167
|
-
close:
|
|
1278
|
+
close: n,
|
|
1168
1279
|
highlightedId: c,
|
|
1169
|
-
setHighlightedId:
|
|
1280
|
+
setHighlightedId: a,
|
|
1170
1281
|
registerItem: s
|
|
1171
|
-
} = de(),
|
|
1172
|
-
let
|
|
1173
|
-
e[0] !==
|
|
1174
|
-
const
|
|
1175
|
-
if (
|
|
1176
|
-
return s(
|
|
1177
|
-
}, 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[
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
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] !==
|
|
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
|
|
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", ...
|
|
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
|
|
1196
|
-
Root:
|
|
1197
|
-
Trigger:
|
|
1198
|
-
Popup:
|
|
1199
|
-
Item:
|
|
1200
|
-
LinkItem:
|
|
1201
|
-
Separator:
|
|
1202
|
-
},
|
|
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 =
|
|
1522
|
+
}, Le = A(null);
|
|
1412
1523
|
function ue() {
|
|
1413
|
-
const o =
|
|
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
|
|
1419
|
-
function
|
|
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", ...
|
|
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
|
|
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
|
|
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
|
|
1442
|
-
const t = [], r = [],
|
|
1443
|
-
function
|
|
1444
|
-
ce.forEach(c, (
|
|
1445
|
-
if (!
|
|
1446
|
-
const s =
|
|
1447
|
-
if (
|
|
1448
|
-
const
|
|
1449
|
-
t.push(
|
|
1450
|
-
const
|
|
1451
|
-
!
|
|
1452
|
-
} else 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
|
|
1566
|
+
return n(o), {
|
|
1456
1567
|
template: t.join(" "),
|
|
1457
1568
|
compactTemplate: r.join(" "),
|
|
1458
|
-
labels:
|
|
1569
|
+
labels: l
|
|
1459
1570
|
};
|
|
1460
1571
|
}
|
|
1461
|
-
function
|
|
1572
|
+
function br(o) {
|
|
1462
1573
|
const e = R.c(13), {
|
|
1463
1574
|
children: t
|
|
1464
1575
|
} = o, r = I(null);
|
|
1465
|
-
let
|
|
1466
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1576
|
+
let l;
|
|
1577
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (l = {
|
|
1467
1578
|
start: !1,
|
|
1468
1579
|
end: !1
|
|
1469
|
-
}, e[0] =
|
|
1470
|
-
const [
|
|
1471
|
-
let
|
|
1472
|
-
e[1] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1473
|
-
const
|
|
1474
|
-
if (!
|
|
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
|
|
1477
|
-
const m =
|
|
1587
|
+
const b = () => {
|
|
1588
|
+
const m = g.scrollWidth - g.clientWidth > 1;
|
|
1478
1589
|
c({
|
|
1479
|
-
start: m &&
|
|
1480
|
-
end: m &&
|
|
1590
|
+
start: m && g.scrollLeft > 1,
|
|
1591
|
+
end: m && g.scrollLeft + g.clientWidth < g.scrollWidth - 1
|
|
1481
1592
|
});
|
|
1482
1593
|
};
|
|
1483
|
-
|
|
1594
|
+
b(), g.addEventListener("scroll", b, {
|
|
1484
1595
|
passive: !0
|
|
1485
1596
|
});
|
|
1486
|
-
const
|
|
1487
|
-
return
|
|
1488
|
-
|
|
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] =
|
|
1491
|
-
let
|
|
1492
|
-
e[3] !== t ? (
|
|
1493
|
-
const d =
|
|
1494
|
-
let
|
|
1495
|
-
e[5] !== d ? (
|
|
1496
|
-
const
|
|
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] !==
|
|
1499
|
-
let
|
|
1500
|
-
return e[9] !==
|
|
1501
|
-
|
|
1502
|
-
|
|
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] =
|
|
1615
|
+
] }), e[9] = i, e[10] = u, e[11] = x, e[12] = h) : h = e[12], h;
|
|
1505
1616
|
}
|
|
1506
|
-
function
|
|
1617
|
+
function fr({
|
|
1507
1618
|
children: o,
|
|
1508
1619
|
variant: e = "default",
|
|
1509
1620
|
size: t = "md",
|
|
1510
1621
|
responsive: r = !0,
|
|
1511
|
-
minColumnWidth:
|
|
1512
|
-
sortChip:
|
|
1622
|
+
minColumnWidth: l = "labelMinW",
|
|
1623
|
+
sortChip: n,
|
|
1513
1624
|
pagination: c
|
|
1514
1625
|
}) {
|
|
1515
|
-
const
|
|
1626
|
+
const a = I(null), {
|
|
1516
1627
|
template: s,
|
|
1517
|
-
compactTemplate:
|
|
1628
|
+
compactTemplate: i,
|
|
1518
1629
|
labels: d
|
|
1519
|
-
} =
|
|
1520
|
-
s && (
|
|
1521
|
-
const
|
|
1522
|
-
|
|
1523
|
-
|
|
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 ?
|
|
1531
|
-
r &&
|
|
1532
|
-
), children: o }), x = /* @__PURE__ */
|
|
1533
|
-
|
|
1534
|
-
r ? /* @__PURE__ */ W(
|
|
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:
|
|
1543
|
-
}, children: r ? /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:299", ...
|
|
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
|
|
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(
|
|
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
|
|
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
|
|
1669
|
+
let l, n, c, a, s, i;
|
|
1559
1670
|
if (e[0] !== t || e[1] !== r) {
|
|
1560
|
-
const
|
|
1561
|
-
|
|
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 = (
|
|
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
|
-
|
|
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] !==
|
|
1568
|
-
let
|
|
1569
|
-
return e[15] !==
|
|
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 =
|
|
1572
|
-
function
|
|
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":
|
|
1687
|
+
"aria-label": l
|
|
1577
1688
|
} = o, {
|
|
1578
|
-
variant:
|
|
1579
|
-
} = ue(), c =
|
|
1580
|
-
let
|
|
1581
|
-
if (e[0] !==
|
|
1582
|
-
const d = ce.toArray(t),
|
|
1583
|
-
let
|
|
1584
|
-
e[7] !==
|
|
1585
|
-
const
|
|
1586
|
-
|
|
1587
|
-
} : void 0, e[7] =
|
|
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] !==
|
|
1700
|
+
e[10] !== u || e[11] !== r ? (x = u ? (m) => {
|
|
1590
1701
|
(m.key === "Enter" || m.key === " ") && r();
|
|
1591
|
-
} : void 0, e[10] =
|
|
1592
|
-
const
|
|
1593
|
-
let
|
|
1594
|
-
e[13] !==
|
|
1595
|
-
index:
|
|
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 ??
|
|
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
|
-
|
|
1600
|
-
return
|
|
1710
|
+
i = e[6];
|
|
1711
|
+
return i;
|
|
1601
1712
|
}
|
|
1602
|
-
const ge =
|
|
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:
|
|
1612
|
-
variant:
|
|
1722
|
+
size: l,
|
|
1723
|
+
variant: n
|
|
1613
1724
|
} = ue(), {
|
|
1614
1725
|
index: c,
|
|
1615
|
-
total:
|
|
1616
|
-
} =
|
|
1617
|
-
let
|
|
1618
|
-
e[0] !==
|
|
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] !==
|
|
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
|
|
1734
|
+
function Mr(o) {
|
|
1624
1735
|
const e = R.c(16), {
|
|
1625
1736
|
children: t,
|
|
1626
1737
|
isActions: r
|
|
1627
1738
|
} = o, {
|
|
1628
|
-
size:
|
|
1629
|
-
variant:
|
|
1739
|
+
size: l,
|
|
1740
|
+
variant: n,
|
|
1630
1741
|
labels: c,
|
|
1631
|
-
responsive:
|
|
1742
|
+
responsive: a
|
|
1632
1743
|
} = ue(), {
|
|
1633
1744
|
index: s,
|
|
1634
|
-
total:
|
|
1635
|
-
} =
|
|
1636
|
-
let
|
|
1637
|
-
e[0] !==
|
|
1638
|
-
let
|
|
1639
|
-
e[5] !== r || e[6] !==
|
|
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", ...
|
|
1642
|
-
let
|
|
1643
|
-
return e[12] !==
|
|
1644
|
-
|
|
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] =
|
|
1757
|
+
] }), e[12] = b, e[13] = f, e[14] = m, e[15] = v) : v = e[15], v;
|
|
1647
1758
|
}
|
|
1648
|
-
const
|
|
1759
|
+
const Tr = {
|
|
1649
1760
|
/** @deprecated Wrap behaviour is built into Table.Root. Drop this wrapper from new code. */
|
|
1650
|
-
Container:
|
|
1651
|
-
Root:
|
|
1652
|
-
Header:
|
|
1653
|
-
Body:
|
|
1654
|
-
Row:
|
|
1761
|
+
Container: pr,
|
|
1762
|
+
Root: fr,
|
|
1763
|
+
Header: vr,
|
|
1764
|
+
Body: kr,
|
|
1765
|
+
Row: wr,
|
|
1655
1766
|
HeaderCell: he,
|
|
1656
|
-
Cell:
|
|
1657
|
-
},
|
|
1767
|
+
Cell: Mr
|
|
1768
|
+
}, Ir = Tr;
|
|
1658
1769
|
export {
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1770
|
+
Se as B,
|
|
1771
|
+
Jo as C,
|
|
1772
|
+
Hr as D,
|
|
1662
1773
|
he as H,
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
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-
|
|
1806
|
+
//# sourceMappingURL=Table-DnaoH-h5.js.map
|