@duro-app/ui 5.9.0 → 5.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Table-CAjPFgTX.js → Table-ColfpgKV.js} +306 -300
- package/dist/Table-ColfpgKV.js.map +1 -0
- package/dist/components/FileTrigger/FileTrigger.d.ts +23 -0
- package/dist/components/FileTrigger/FileTrigger.d.ts.map +1 -0
- package/dist/components/FileTrigger/FileTrigger.meta.d.ts +3 -0
- package/dist/components/FileTrigger/FileTrigger.meta.d.ts.map +1 -0
- package/dist/components/FileTrigger/FileTrigger.stories.d.ts +9 -0
- package/dist/components/FileTrigger/FileTrigger.stories.d.ts.map +1 -0
- package/dist/components/FileTrigger/index.d.ts +3 -0
- package/dist/components/FileTrigger/index.d.ts.map +1 -0
- package/dist/components/FileTrigger/pick.d.ts +14 -0
- package/dist/components/FileTrigger/pick.d.ts.map +1 -0
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/Icon/Icon.stories.d.ts +8 -0
- package/dist/components/Icon/Icon.stories.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1940 -1859
- package/dist/index.js.map +1 -1
- package/dist/table.js +1 -1
- package/package.json +2 -2
- package/src/components/FileTrigger/FileTrigger.meta.ts +24 -0
- package/src/components/FileTrigger/FileTrigger.stories.tsx +36 -0
- package/src/components/FileTrigger/FileTrigger.tsx +80 -0
- package/src/components/FileTrigger/index.ts +2 -0
- package/src/components/FileTrigger/pick.ts +21 -0
- package/src/components/Icon/Icon.stories.tsx +112 -0
- package/src/components/Icon/Icon.tsx +50 -0
- package/src/index.ts +5 -0
- package/dist/Table-CAjPFgTX.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as T, jsxs as U, Fragment as Te } from "react/jsx-runtime";
|
|
2
2
|
import { c as L, m as W, d as S } from "./compiler-runtime-BuugS4D0.js";
|
|
3
|
-
import { useContext as G, createContext as A, useId as Y, useRef as q, useLayoutEffect as J, useState as Z, useCallback as K, useEffect as F, Children as Q, isValidElement as
|
|
3
|
+
import { useContext as G, createContext as A, useId as Y, useRef as q, useLayoutEffect as J, useState as Z, useCallback as K, useEffect as F, Children as Q, isValidElement as Me } from "react";
|
|
4
4
|
import { createPortal as We } from "react-dom";
|
|
5
5
|
const Se = {
|
|
6
6
|
xs: 4,
|
|
@@ -11,7 +11,7 @@ const Se = {
|
|
|
11
11
|
xl: 32,
|
|
12
12
|
xxl: 48,
|
|
13
13
|
xxxl: 64
|
|
14
|
-
},
|
|
14
|
+
}, cr = {
|
|
15
15
|
instant: 0,
|
|
16
16
|
minimal: 1,
|
|
17
17
|
quick: 120,
|
|
@@ -19,14 +19,14 @@ const Se = {
|
|
|
19
19
|
brisk: 160,
|
|
20
20
|
base: 200,
|
|
21
21
|
slow: 280
|
|
22
|
-
}, Ce = ["touchTarget", "controlSm", "controlMd", "controlLg", "indicator", "indicatorDot", "checkMarkW", "checkMarkH", "switchTrackW", "switchTrackH", "switchThumb", "iconButton", "iconButtonSm", "spinnerSm", "spinnerMd", "spinnerLg", "glyphXs", "glyphSm", "glyphMd", "iconSm", "iconMd", "iconLg", "iconXl", "iconXxl", "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", "readoutW", "sliderW", "paletteMinW", "deviceBarW", "timeGutterW", "dayHeaderH", "timelineLabelW", "appBarH"], _ = {
|
|
22
|
+
}, Ce = ["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", "readoutW", "sliderW", "paletteMinW", "deviceBarW", "timeGutterW", "dayHeaderH", "timelineLabelW", "appBarH", "dragThumbW", "dragThumbH"], _ = {
|
|
23
23
|
touchTarget: 44,
|
|
24
24
|
iconSm: 16,
|
|
25
25
|
iconMd: 18,
|
|
26
26
|
iconLg: 24,
|
|
27
27
|
iconXl: 36,
|
|
28
28
|
iconXxl: 48
|
|
29
|
-
},
|
|
29
|
+
}, ur = {
|
|
30
30
|
sm: _.iconSm,
|
|
31
31
|
md: _.iconMd,
|
|
32
32
|
lg: _.iconLg,
|
|
@@ -97,46 +97,46 @@ function He(t) {
|
|
|
97
97
|
let o;
|
|
98
98
|
e[0] !== t ? (o = t === void 0 ? {} : t, e[0] = t, e[1] = o) : o = e[1];
|
|
99
99
|
const {
|
|
100
|
-
disabled:
|
|
101
|
-
} = o,
|
|
100
|
+
disabled: r
|
|
101
|
+
} = o, d = r === void 0 ? !1 : r, l = Y(), a = q(null), i = ze(), n = Re(), s = i?.register, c = n?.register;
|
|
102
102
|
let p, u;
|
|
103
|
-
e[2] !==
|
|
103
|
+
e[2] !== d || e[3] !== s || e[4] !== l || e[5] !== c ? (p = () => {
|
|
104
104
|
const R = a.current;
|
|
105
105
|
if (!R)
|
|
106
106
|
return;
|
|
107
|
-
const H = s?.(l, R,
|
|
107
|
+
const H = s?.(l, R, d), I = c?.(l, R, d);
|
|
108
108
|
return () => {
|
|
109
109
|
H?.(), I?.();
|
|
110
110
|
};
|
|
111
|
-
}, u = [l,
|
|
111
|
+
}, u = [l, d, s, c], e[2] = d, e[3] = s, e[4] = l, e[5] = c, e[6] = p, e[7] = u) : (p = e[6], u = e[7]), J(p, u);
|
|
112
112
|
let x;
|
|
113
113
|
e[8] !== i || e[9] !== l ? (x = i ? i.positionOf(l) : null, e[8] = i, e[9] = l, e[10] = x) : x = e[10];
|
|
114
114
|
const g = x;
|
|
115
115
|
let h;
|
|
116
116
|
e[11] !== i || e[12] !== g ? (h = i && g ? [V.item, je[i.orientation][g]] : null, e[11] = i, e[12] = g, e[13] = h) : h = e[13];
|
|
117
|
-
const
|
|
117
|
+
const f = h, y = i !== null;
|
|
118
118
|
let k;
|
|
119
|
-
e[14] !== l || e[15] !==
|
|
119
|
+
e[14] !== l || e[15] !== n ? (k = n?.tabIndexOf(l), e[14] = l, e[15] = n, e[16] = k) : k = e[16];
|
|
120
120
|
let w;
|
|
121
|
-
e[17] !== l || e[18] !==
|
|
121
|
+
e[17] !== l || e[18] !== n ? (w = n ? () => n.onItemFocus(l) : void 0, e[17] = l, e[18] = n, e[19] = w) : w = e[19];
|
|
122
122
|
let C;
|
|
123
|
-
return e[20] !== g || e[21] !==
|
|
123
|
+
return e[20] !== g || e[21] !== f || e[22] !== y || e[23] !== k || e[24] !== w ? (C = {
|
|
124
124
|
ref: a,
|
|
125
125
|
attached: y,
|
|
126
126
|
position: g,
|
|
127
|
-
style:
|
|
127
|
+
style: f,
|
|
128
128
|
tabIndex: k,
|
|
129
129
|
onFocus: w
|
|
130
|
-
}, e[20] = g, e[21] =
|
|
130
|
+
}, e[20] = g, e[21] = f, e[22] = y, e[23] = k, e[24] = w, e[25] = C) : C = e[25], C;
|
|
131
131
|
}
|
|
132
132
|
const Le = {
|
|
133
|
-
xjvd03b: "
|
|
133
|
+
xjvd03b: "x14i52nv xjvd03b",
|
|
134
134
|
$$css: !0
|
|
135
135
|
}, Ie = {
|
|
136
136
|
x13v825q: "x1jk1o70 x13v825q",
|
|
137
137
|
$$css: !0
|
|
138
138
|
}, qe = {
|
|
139
|
-
xjvd03b: "
|
|
139
|
+
xjvd03b: "xorrbe1 xjvd03b",
|
|
140
140
|
$$css: !0
|
|
141
141
|
}, Pe = {
|
|
142
142
|
x13v825q: "xc8o4hb x13v825q",
|
|
@@ -164,32 +164,32 @@ const Le = {
|
|
|
164
164
|
function Be() {
|
|
165
165
|
return G(ge);
|
|
166
166
|
}
|
|
167
|
-
function
|
|
167
|
+
function pr(t) {
|
|
168
168
|
const e = L.c(11), {
|
|
169
169
|
theme: o,
|
|
170
|
-
children:
|
|
171
|
-
} = t,
|
|
172
|
-
let
|
|
173
|
-
e[0] !== a || e[1] !== i ? (
|
|
174
|
-
const s =
|
|
170
|
+
children: r
|
|
171
|
+
} = t, d = o === void 0 ? "dark" : o, l = Ee[d], a = l?.[0], i = l?.[1];
|
|
172
|
+
let n;
|
|
173
|
+
e[0] !== a || e[1] !== i ? (n = [a, i, ae.root], e[0] = a, e[1] = i, e[2] = n) : n = e[2];
|
|
174
|
+
const s = n, [c, p] = Z(null);
|
|
175
175
|
let u;
|
|
176
|
-
e[3] !==
|
|
176
|
+
e[3] !== r || e[4] !== c ? (u = /* @__PURE__ */ T(ge.Provider, { value: c, children: r }), e[3] = r, e[4] = c, e[5] = u) : u = e[5];
|
|
177
177
|
let x;
|
|
178
|
-
e[6] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */
|
|
178
|
+
e[6] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ T("div", { "data-element-src": "ThemeProvider/ThemeProvider.tsx:60", ref: p, "data-portal-mount": !0, ...W(S.div, ae.portalMount) }), e[6] = x) : x = e[6];
|
|
179
179
|
let g;
|
|
180
|
-
return e[7] !== u || e[8] !==
|
|
180
|
+
return e[7] !== u || e[8] !== d || e[9] !== s ? (g = /* @__PURE__ */ U("div", { "data-element-src": "ThemeProvider/ThemeProvider.tsx:58", "data-theme": d, ...W(S.div, s), children: [
|
|
181
181
|
u,
|
|
182
182
|
x
|
|
183
|
-
] }), e[7] = u, e[8] =
|
|
183
|
+
] }), e[7] = u, e[8] = d, e[9] = s, e[10] = g) : g = e[10], g;
|
|
184
184
|
}
|
|
185
185
|
function Oe(t) {
|
|
186
186
|
const e = L.c(2), {
|
|
187
187
|
children: o
|
|
188
188
|
} = t;
|
|
189
|
-
let
|
|
190
|
-
return e[0] !== o ? (
|
|
189
|
+
let r;
|
|
190
|
+
return e[0] !== o ? (r = /* @__PURE__ */ T(xe.Provider, { value: null, children: /* @__PURE__ */ T(pe.Provider, { value: null, children: o }) }), e[0] = o, e[1] = r) : r = e[1], r;
|
|
191
191
|
}
|
|
192
|
-
const
|
|
192
|
+
const xr = {
|
|
193
193
|
xs: 480,
|
|
194
194
|
sm: 640,
|
|
195
195
|
md: 768,
|
|
@@ -220,6 +220,10 @@ const gn = {
|
|
|
220
220
|
iconLg: "var(--iconLg-x1lsumnr)",
|
|
221
221
|
iconXl: "var(--iconXl-x7w40q9)",
|
|
222
222
|
iconXxl: "var(--iconXxl-xij55jf)",
|
|
223
|
+
thumbSm: "var(--thumbSm-x1t1g9ky)",
|
|
224
|
+
mediaTileMinW: "var(--mediaTileMinW-x1pavouy)",
|
|
225
|
+
glyphClampMax: "var(--glyphClampMax-x3c2ety)",
|
|
226
|
+
timeReadoutW: "var(--timeReadoutW-x4630c6)",
|
|
223
227
|
navMarkerW: "var(--navMarkerW-x1swbkx4)",
|
|
224
228
|
navMarkerH: "var(--navMarkerH-xlc6r7a)",
|
|
225
229
|
divider: "var(--divider-x34oj7m)",
|
|
@@ -279,6 +283,8 @@ const gn = {
|
|
|
279
283
|
dayHeaderH: "var(--dayHeaderH-x1j7gty0)",
|
|
280
284
|
timelineLabelW: "var(--timelineLabelW-xx6mz1f)",
|
|
281
285
|
appBarH: "var(--appBarH-x12xs6hi)",
|
|
286
|
+
dragThumbW: "var(--dragThumbW-x1bz26bx)",
|
|
287
|
+
dragThumbH: "var(--dragThumbH-xbt2de9)",
|
|
282
288
|
__varGroupHash__: "x1w57kmz"
|
|
283
289
|
};
|
|
284
290
|
/**
|
|
@@ -288,9 +294,9 @@ const gn = {
|
|
|
288
294
|
* This source code is licensed under the MIT license found in the
|
|
289
295
|
* LICENSE file in the root directory of this source tree.
|
|
290
296
|
*/
|
|
291
|
-
const
|
|
297
|
+
const de = {};
|
|
292
298
|
function Ge(t) {
|
|
293
|
-
process.env.NODE_ENV !== "test" &&
|
|
299
|
+
process.env.NODE_ENV !== "test" && de[t] || (de[t] = !0, console.error(`[error] React Strict DOM: ${t}`));
|
|
294
300
|
}
|
|
295
301
|
const Ae = /* @__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"]);
|
|
296
302
|
function De(t) {
|
|
@@ -301,39 +307,39 @@ Object.defineProperty(oe, "__esModule", {
|
|
|
301
307
|
value: !0
|
|
302
308
|
});
|
|
303
309
|
var me = oe.styleq = void 0, Fe = /* @__PURE__ */ new WeakMap(), Ve = "$$css";
|
|
304
|
-
function
|
|
305
|
-
var e, o,
|
|
306
|
-
return t != null && (e = t.disableCache === !0, o = t.disableMix === !0,
|
|
307
|
-
for (var l = [], a = "", i = null,
|
|
308
|
-
|
|
309
|
-
for (;
|
|
310
|
-
var u =
|
|
310
|
+
function be(t) {
|
|
311
|
+
var e, o, r;
|
|
312
|
+
return t != null && (e = t.disableCache === !0, o = t.disableMix === !0, r = t.transform), function() {
|
|
313
|
+
for (var l = [], a = "", i = null, n = "", s = e ? null : Fe, c = new Array(arguments.length), p = 0; p < arguments.length; p++)
|
|
314
|
+
c[p] = arguments[p];
|
|
315
|
+
for (; c.length > 0; ) {
|
|
316
|
+
var u = c.pop();
|
|
311
317
|
if (!(u == null || u === !1)) {
|
|
312
318
|
if (Array.isArray(u)) {
|
|
313
319
|
for (var x = 0; x < u.length; x++)
|
|
314
|
-
|
|
320
|
+
c.push(u[x]);
|
|
315
321
|
continue;
|
|
316
322
|
}
|
|
317
|
-
var g =
|
|
323
|
+
var g = r != null ? r(u) : u;
|
|
318
324
|
if (g.$$css != null) {
|
|
319
325
|
var h = "";
|
|
320
326
|
if (s != null && s.has(g)) {
|
|
321
|
-
var
|
|
322
|
-
|
|
327
|
+
var f = s.get(g);
|
|
328
|
+
f != null && (h = f[0], n = f[2], l.push.apply(l, f[1]), s = f[3]);
|
|
323
329
|
} else {
|
|
324
330
|
var y = [];
|
|
325
331
|
for (var k in g) {
|
|
326
332
|
var w = g[k];
|
|
327
333
|
if (k === Ve) {
|
|
328
334
|
var C = g[k];
|
|
329
|
-
C !== !0 && (
|
|
335
|
+
C !== !0 && (n = n ? C + "; " + n : C);
|
|
330
336
|
continue;
|
|
331
337
|
}
|
|
332
338
|
typeof w == "string" || w === null ? l.includes(k) || (l.push(k), s != null && y.push(k), typeof w == "string" && (h += h ? " " + w : w)) : console.error("styleq: ".concat(k, " typeof ").concat(String(w), ' is not "string" or "null".'));
|
|
333
339
|
}
|
|
334
340
|
if (s != null) {
|
|
335
341
|
var R = /* @__PURE__ */ new WeakMap();
|
|
336
|
-
s.set(g, [h, y,
|
|
342
|
+
s.set(g, [h, y, n, R]), s = R;
|
|
337
343
|
}
|
|
338
344
|
}
|
|
339
345
|
h && (a = a ? h + " " + a : h);
|
|
@@ -349,26 +355,26 @@ function fe(t) {
|
|
|
349
355
|
}
|
|
350
356
|
}
|
|
351
357
|
}
|
|
352
|
-
var D = [a, i,
|
|
358
|
+
var D = [a, i, n];
|
|
353
359
|
return D;
|
|
354
360
|
};
|
|
355
361
|
}
|
|
356
|
-
var Xe = me = oe.styleq =
|
|
357
|
-
Xe.factory =
|
|
362
|
+
var Xe = me = oe.styleq = be();
|
|
363
|
+
Xe.factory = be;
|
|
358
364
|
const Ke = me.factory({
|
|
359
365
|
disableMix: !0
|
|
360
366
|
});
|
|
361
367
|
function Ne(...t) {
|
|
362
|
-
const [e, o,
|
|
363
|
-
if (e != null && e !== "" && (
|
|
364
|
-
const l =
|
|
368
|
+
const [e, o, r] = Ke(t), d = {};
|
|
369
|
+
if (e != null && e !== "" && (d.className = e), o != null && (d.style = o), r != null && r !== "") {
|
|
370
|
+
const l = r.split(";"), a = {};
|
|
365
371
|
for (const i of l) {
|
|
366
|
-
const
|
|
367
|
-
|
|
372
|
+
const n = i.trim(), [s, c] = n.split(":");
|
|
373
|
+
c != null && (a[s] = a[s] != null ? `${a[s]},${c}` : c);
|
|
368
374
|
}
|
|
369
|
-
|
|
375
|
+
d["data-style-src"] = Object.keys(a).map((i) => `${i}:${a[i]}`).join("; ");
|
|
370
376
|
}
|
|
371
|
-
return
|
|
377
|
+
return d;
|
|
372
378
|
}
|
|
373
379
|
function _e(t) {
|
|
374
380
|
Object.keys(t).forEach((e) => {
|
|
@@ -380,24 +386,24 @@ function m(t, e) {
|
|
|
380
386
|
$$css: !0,
|
|
381
387
|
"debug::name": `html-${t}`
|
|
382
388
|
};
|
|
383
|
-
function
|
|
384
|
-
ref:
|
|
389
|
+
function r({
|
|
390
|
+
ref: d,
|
|
385
391
|
...l
|
|
386
392
|
}) {
|
|
387
393
|
const {
|
|
388
394
|
for: a,
|
|
389
395
|
style: i,
|
|
390
|
-
...
|
|
391
|
-
} = l, s =
|
|
396
|
+
...n
|
|
397
|
+
} = l, s = n;
|
|
392
398
|
_e(s), a != null && (s.htmlFor = a), l.role != null && (s.role = l.role === "none" ? "presentation" : l.role), t === "button" ? s.type = s.type ? s.type : "button" : (t === "input" || t === "textarea") && (s.dir = s.dir ? s.dir : "auto");
|
|
393
|
-
const
|
|
394
|
-
return
|
|
399
|
+
const c = Ne([o, e, i]);
|
|
400
|
+
return T(t, {
|
|
395
401
|
...s,
|
|
396
|
-
...
|
|
397
|
-
ref:
|
|
402
|
+
...c,
|
|
403
|
+
ref: d
|
|
398
404
|
});
|
|
399
405
|
}
|
|
400
|
-
return
|
|
406
|
+
return r.displayName = `html.${t}`, r;
|
|
401
407
|
}
|
|
402
408
|
const v = {
|
|
403
409
|
block: {
|
|
@@ -467,7 +473,7 @@ const v = {
|
|
|
467
473
|
"resize-kHenm0": "resize-x288g5",
|
|
468
474
|
$$css: ".pnpm:web/index.js:276"
|
|
469
475
|
}
|
|
470
|
-
}, Ye = v.inline, Ze = v.block, Ue = v.block, Je = v.inline, Qe = v.inline, et = v.inline, tt = v.block, ot = null,
|
|
476
|
+
}, Ye = v.inline, Ze = v.block, Ue = v.block, Je = v.inline, Qe = v.inline, et = v.inline, tt = v.block, ot = null, rt = [v.inlineblock, v.button], nt = [v.inline, v.codePre], it = null, st = v.block, lt = v.inline, at = v.block, dt = v.block, ct = v.block, X = [v.block, v.heading], ut = v.block, pt = [v.block, v.hr], xt = v.inline, gt = v.img, ht = [v.inlineblock, v.input], mt = null, bt = null, ft = v.inline, kt = v.block, vt = v.block, yt = v.inline, wt = v.block, $t = [v.list, v.block], Tt = null, Mt = null, Wt = v.block, St = [v.block, v.codePre], Ct = null, Rt = v.block, zt = v.inlineblock, jt = v.inline, Ht = [v.inline, v.strong], Lt = v.inline, It = v.inline, qt = [v.inlineblock, v.textarea], Pt = null, Et = [v.list, v.block], b = {
|
|
471
477
|
a: Ye,
|
|
472
478
|
article: Ze,
|
|
473
479
|
aside: Ue,
|
|
@@ -476,14 +482,14 @@ const v = {
|
|
|
476
482
|
bdo: et,
|
|
477
483
|
blockquote: tt,
|
|
478
484
|
br: ot,
|
|
479
|
-
button:
|
|
480
|
-
code:
|
|
485
|
+
button: rt,
|
|
486
|
+
code: nt,
|
|
481
487
|
del: it,
|
|
482
488
|
div: st,
|
|
483
489
|
em: lt,
|
|
484
490
|
fieldset: at,
|
|
485
|
-
footer:
|
|
486
|
-
form:
|
|
491
|
+
footer: dt,
|
|
492
|
+
form: ct,
|
|
487
493
|
h1: X,
|
|
488
494
|
h2: X,
|
|
489
495
|
h3: X,
|
|
@@ -496,15 +502,15 @@ const v = {
|
|
|
496
502
|
img: gt,
|
|
497
503
|
input: ht,
|
|
498
504
|
ins: mt,
|
|
499
|
-
kbd:
|
|
500
|
-
label:
|
|
505
|
+
kbd: bt,
|
|
506
|
+
label: ft,
|
|
501
507
|
li: kt,
|
|
502
508
|
main: vt,
|
|
503
509
|
mark: yt,
|
|
504
510
|
nav: wt,
|
|
505
511
|
ol: $t,
|
|
506
|
-
optgroup:
|
|
507
|
-
option:
|
|
512
|
+
optgroup: Tt,
|
|
513
|
+
option: Mt,
|
|
508
514
|
p: Wt,
|
|
509
515
|
pre: St,
|
|
510
516
|
s: Ct,
|
|
@@ -517,7 +523,7 @@ const v = {
|
|
|
517
523
|
textarea: qt,
|
|
518
524
|
u: Pt,
|
|
519
525
|
ul: Et
|
|
520
|
-
}, Bt = m("a",
|
|
526
|
+
}, Bt = m("a", b.a), Ot = m("article", b.article), Gt = m("aside", b.aside), At = m("b", b.b), Dt = m("bdi", b.bdi), Ft = m("bdo", b.bdo), Vt = m("blockquote", b.blockquote), Xt = m("br", b.br), Kt = m("button", b.button), Nt = m("code", b.code), _t = m("del", b.del), Yt = m("div", b.div), Zt = m("em", b.em), Ut = m("fieldset", b.fieldset), Jt = m("footer", b.footer), Qt = m("form", b.form), eo = m("h1", b.h1), to = m("h2", b.h2), oo = m("h3", b.h3), ro = m("h4", b.h4), no = m("h5", b.h5), io = m("h6", b.h6), so = m("header", b.header), lo = m("hr", b.hr), ao = m("i", b.i), co = m("img", b.img), uo = m("input", b.input), po = m("ins", b.ins), xo = m("kbd", b.kbd), go = m("label", b.label), ho = m("li", b.li), mo = m("main", b.main), bo = m("mark", b.mark), fo = m("nav", b.nav), ko = m("ol", b.ol), vo = m("optgroup", b.optgroup), yo = m("option", b.option), wo = m("p", b.p), $o = m("pre", b.pre), To = m("s", b.s), Mo = m("section", b.section), Wo = m("select", b.select), So = m("span", b.span), Co = m("strong", b.strong), Ro = m("sub", b.sub), zo = m("sup", b.sup), jo = m("textarea", b.textarea), Ho = m("u", b.u), Lo = m("ul", b.ul);
|
|
521
527
|
var Io = /* @__PURE__ */ Object.freeze({
|
|
522
528
|
__proto__: null,
|
|
523
529
|
a: Bt,
|
|
@@ -539,8 +545,8 @@ var Io = /* @__PURE__ */ Object.freeze({
|
|
|
539
545
|
h1: eo,
|
|
540
546
|
h2: to,
|
|
541
547
|
h3: oo,
|
|
542
|
-
h4:
|
|
543
|
-
h5:
|
|
548
|
+
h4: ro,
|
|
549
|
+
h5: no,
|
|
544
550
|
h6: io,
|
|
545
551
|
header: so,
|
|
546
552
|
hr: lo,
|
|
@@ -552,15 +558,15 @@ var Io = /* @__PURE__ */ Object.freeze({
|
|
|
552
558
|
label: go,
|
|
553
559
|
li: ho,
|
|
554
560
|
main: mo,
|
|
555
|
-
mark:
|
|
556
|
-
nav:
|
|
561
|
+
mark: bo,
|
|
562
|
+
nav: fo,
|
|
557
563
|
ol: ko,
|
|
558
564
|
optgroup: vo,
|
|
559
565
|
option: yo,
|
|
560
566
|
p: wo,
|
|
561
567
|
pre: $o,
|
|
562
|
-
s:
|
|
563
|
-
section:
|
|
568
|
+
s: To,
|
|
569
|
+
section: Mo,
|
|
564
570
|
select: Wo,
|
|
565
571
|
span: So,
|
|
566
572
|
strong: Co,
|
|
@@ -570,10 +576,10 @@ var Io = /* @__PURE__ */ Object.freeze({
|
|
|
570
576
|
u: Ho,
|
|
571
577
|
ul: Lo
|
|
572
578
|
});
|
|
573
|
-
const qo = typeof process < "u" && process.env?.NODE_ENV === "production",
|
|
574
|
-
function
|
|
575
|
-
const
|
|
576
|
-
qo ||
|
|
579
|
+
const qo = typeof process < "u" && process.env?.NODE_ENV === "production", ce = /* @__PURE__ */ new Set();
|
|
580
|
+
function fe(t, e, o) {
|
|
581
|
+
const r = `${t}:${e}`;
|
|
582
|
+
qo || ce.has(r) || (ce.add(r), console.warn(`[duro-app/ui ${t}] ${o}`));
|
|
577
583
|
}
|
|
578
584
|
const ke = new Set(Ce);
|
|
579
585
|
function ve(t) {
|
|
@@ -584,8 +590,8 @@ function ue(t) {
|
|
|
584
590
|
if (typeof e != "string") return e;
|
|
585
591
|
const o = /^(minmax|fit-content)\((.*)\)$/.exec(e);
|
|
586
592
|
if (o) {
|
|
587
|
-
const
|
|
588
|
-
return `${o[1]}(${
|
|
593
|
+
const r = o[2].split(",").map((d) => String(ve(d.trim())));
|
|
594
|
+
return `${o[1]}(${r.join(", ")})`;
|
|
589
595
|
}
|
|
590
596
|
return ke.has(e) ? he[e] : e;
|
|
591
597
|
}
|
|
@@ -727,18 +733,18 @@ function Eo({
|
|
|
727
733
|
defaultOpen: e = !1,
|
|
728
734
|
onOpenChange: o
|
|
729
735
|
}) {
|
|
730
|
-
const [
|
|
736
|
+
const [r, d] = Z(e), l = t !== void 0, a = l ? t : r, [i, n] = Z(null), s = q(i);
|
|
731
737
|
J(() => {
|
|
732
738
|
s.current = i;
|
|
733
739
|
}, [i]);
|
|
734
|
-
const
|
|
740
|
+
const c = Y(), p = Y(), u = q(null), x = q(null), g = q(null), h = q(/* @__PURE__ */ new Map()), f = q([]), y = q(a);
|
|
735
741
|
y.current = a;
|
|
736
742
|
const k = q(o);
|
|
737
743
|
k.current = o;
|
|
738
|
-
const w = K((
|
|
739
|
-
|
|
744
|
+
const w = K((M) => {
|
|
745
|
+
M !== y.current && (l || d(M), k.current?.(M));
|
|
740
746
|
}, [l]), C = K(() => {
|
|
741
|
-
y.current && (w(!1),
|
|
747
|
+
y.current && (w(!1), n(null));
|
|
742
748
|
}, [w]), R = K(() => {
|
|
743
749
|
y.current && (C(), x.current?.focus());
|
|
744
750
|
}, [C]), H = K(() => {
|
|
@@ -749,9 +755,9 @@ function Eo({
|
|
|
749
755
|
g.current?.focus({
|
|
750
756
|
preventScroll: !0
|
|
751
757
|
});
|
|
752
|
-
const
|
|
753
|
-
|
|
754
|
-
} else !a && I.current &&
|
|
758
|
+
const M = f.current[0];
|
|
759
|
+
M && n(M);
|
|
760
|
+
} else !a && I.current && n(null);
|
|
755
761
|
I.current = a;
|
|
756
762
|
}, [a]), F(() => {
|
|
757
763
|
if (!i) return;
|
|
@@ -759,19 +765,19 @@ function Eo({
|
|
|
759
765
|
block: "nearest"
|
|
760
766
|
});
|
|
761
767
|
}, [i]);
|
|
762
|
-
const O = K((
|
|
763
|
-
h.current.set(
|
|
768
|
+
const O = K((M, E) => {
|
|
769
|
+
h.current.set(M, E);
|
|
764
770
|
const z = h.current, j = [...z.keys()];
|
|
765
771
|
return j.sort((B, N) => {
|
|
766
772
|
const se = z.get(B), le = z.get(N);
|
|
767
773
|
return !se || !le ? 0 : se.compareDocumentPosition(le) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
768
|
-
}),
|
|
769
|
-
h.current.delete(
|
|
774
|
+
}), f.current = j, () => {
|
|
775
|
+
h.current.delete(M), f.current = f.current.filter((B) => B !== M);
|
|
770
776
|
};
|
|
771
777
|
}, []);
|
|
772
778
|
return F(() => {
|
|
773
|
-
const
|
|
774
|
-
if (!
|
|
779
|
+
const M = g.current;
|
|
780
|
+
if (!M || !a) return;
|
|
775
781
|
function E(z) {
|
|
776
782
|
if (z.key === "Escape") {
|
|
777
783
|
z.preventDefault(), z.stopPropagation(), R();
|
|
@@ -781,29 +787,29 @@ function Eo({
|
|
|
781
787
|
R();
|
|
782
788
|
return;
|
|
783
789
|
}
|
|
784
|
-
const j =
|
|
790
|
+
const j = f.current;
|
|
785
791
|
if (j.length !== 0)
|
|
786
792
|
switch (z.key) {
|
|
787
793
|
case "ArrowDown": {
|
|
788
|
-
z.preventDefault(),
|
|
794
|
+
z.preventDefault(), n((B) => {
|
|
789
795
|
const N = B ? j.indexOf(B) : -1;
|
|
790
796
|
return j[(N + 1) % j.length];
|
|
791
797
|
});
|
|
792
798
|
break;
|
|
793
799
|
}
|
|
794
800
|
case "ArrowUp": {
|
|
795
|
-
z.preventDefault(),
|
|
801
|
+
z.preventDefault(), n((B) => {
|
|
796
802
|
const N = B ? j.indexOf(B) : 0;
|
|
797
803
|
return j[(N - 1 + j.length) % j.length];
|
|
798
804
|
});
|
|
799
805
|
break;
|
|
800
806
|
}
|
|
801
807
|
case "Home": {
|
|
802
|
-
z.preventDefault(),
|
|
808
|
+
z.preventDefault(), n(j[0]);
|
|
803
809
|
break;
|
|
804
810
|
}
|
|
805
811
|
case "End": {
|
|
806
|
-
z.preventDefault(),
|
|
812
|
+
z.preventDefault(), n(j[j.length - 1]);
|
|
807
813
|
break;
|
|
808
814
|
}
|
|
809
815
|
case "Enter":
|
|
@@ -815,22 +821,22 @@ function Eo({
|
|
|
815
821
|
}
|
|
816
822
|
}
|
|
817
823
|
}
|
|
818
|
-
return
|
|
824
|
+
return M.addEventListener("keydown", E), () => M.removeEventListener("keydown", E);
|
|
819
825
|
}, [a, R]), F(() => {
|
|
820
826
|
if (!a) return;
|
|
821
|
-
function
|
|
827
|
+
function M(E) {
|
|
822
828
|
Po(E.target, [g.current, x.current]) && C();
|
|
823
829
|
}
|
|
824
|
-
return document.addEventListener("pointerdown",
|
|
830
|
+
return document.addEventListener("pointerdown", M, !0), () => document.removeEventListener("pointerdown", M, !0);
|
|
825
831
|
}, [a, C]), {
|
|
826
832
|
ctx: {
|
|
827
833
|
open: a,
|
|
828
834
|
toggle: H,
|
|
829
835
|
close: R,
|
|
830
|
-
menuId:
|
|
836
|
+
menuId: c,
|
|
831
837
|
triggerId: p,
|
|
832
838
|
highlightedId: i,
|
|
833
|
-
setHighlightedId:
|
|
839
|
+
setHighlightedId: n,
|
|
834
840
|
registerItem: O,
|
|
835
841
|
triggerRef: x,
|
|
836
842
|
popupRef: g
|
|
@@ -842,89 +848,89 @@ function Bo({
|
|
|
842
848
|
anchor: t,
|
|
843
849
|
popup: e,
|
|
844
850
|
viewport: o,
|
|
845
|
-
side:
|
|
846
|
-
align:
|
|
851
|
+
side: r,
|
|
852
|
+
align: d,
|
|
847
853
|
offset: l
|
|
848
854
|
}) {
|
|
849
|
-
const a = t.top + t.height + l, i = t.top - l - e.height,
|
|
850
|
-
let
|
|
851
|
-
|
|
852
|
-
const p =
|
|
855
|
+
const a = t.top + t.height + l, i = t.top - l - e.height, n = a + e.height <= o.height, s = i >= 0;
|
|
856
|
+
let c = r;
|
|
857
|
+
r === "bottom" && !n && s ? c = "top" : r === "top" && !s && n && (c = "bottom");
|
|
858
|
+
const p = c === "bottom" ? a : i;
|
|
853
859
|
let u = t.left;
|
|
854
|
-
|
|
860
|
+
d === "center" ? u = t.left + (t.width - e.width) / 2 : d === "end" && (u = t.left + t.width - e.width);
|
|
855
861
|
const x = Math.max(0, o.width - e.width);
|
|
856
862
|
return u = Math.min(Math.max(0, u), x), {
|
|
857
863
|
top: p,
|
|
858
864
|
left: u,
|
|
859
|
-
side:
|
|
865
|
+
side: c
|
|
860
866
|
};
|
|
861
867
|
}
|
|
862
868
|
const Oo = A(null);
|
|
863
869
|
function Go(t, e) {
|
|
864
870
|
const o = L.c(5), {
|
|
865
|
-
active:
|
|
866
|
-
} = e,
|
|
871
|
+
active: r
|
|
872
|
+
} = e, d = G(Oo);
|
|
867
873
|
let l, a;
|
|
868
|
-
o[0] !==
|
|
874
|
+
o[0] !== r || o[1] !== d || o[2] !== t ? (l = () => {
|
|
869
875
|
const i = t.current;
|
|
870
|
-
if (!(!
|
|
871
|
-
return
|
|
872
|
-
}, a = [
|
|
876
|
+
if (!(!d || !r || !i))
|
|
877
|
+
return d.register(i);
|
|
878
|
+
}, a = [d, r, t], o[0] = r, o[1] = d, o[2] = t, o[3] = l, o[4] = a) : (l = o[3], a = o[4]), J(l, a);
|
|
873
879
|
}
|
|
874
880
|
function Ao(t) {
|
|
875
881
|
const e = L.c(10), {
|
|
876
882
|
children: o,
|
|
877
|
-
open:
|
|
878
|
-
defaultOpen:
|
|
883
|
+
open: r,
|
|
884
|
+
defaultOpen: d,
|
|
879
885
|
onOpenChange: l
|
|
880
886
|
} = t;
|
|
881
887
|
let a;
|
|
882
|
-
e[0] !==
|
|
883
|
-
open:
|
|
884
|
-
defaultOpen:
|
|
888
|
+
e[0] !== d || e[1] !== l || e[2] !== r ? (a = {
|
|
889
|
+
open: r,
|
|
890
|
+
defaultOpen: d,
|
|
885
891
|
onOpenChange: l
|
|
886
|
-
}, e[0] =
|
|
892
|
+
}, e[0] = d, e[1] = l, e[2] = r, e[3] = a) : a = e[3];
|
|
887
893
|
const {
|
|
888
894
|
ctx: i,
|
|
889
|
-
rootRef:
|
|
895
|
+
rootRef: n
|
|
890
896
|
} = Eo(a);
|
|
891
897
|
let s;
|
|
892
|
-
e[4] !== o || e[5] !==
|
|
893
|
-
let
|
|
894
|
-
return e[7] !== i || e[8] !== s ? (
|
|
898
|
+
e[4] !== o || e[5] !== n ? (s = /* @__PURE__ */ T("div", { "data-element-src": "Menu/Menu.tsx:41", ref: n, ...W(S.div, P.root), children: o }), e[4] = o, e[5] = n, e[6] = s) : s = e[6];
|
|
899
|
+
let c;
|
|
900
|
+
return e[7] !== i || e[8] !== s ? (c = /* @__PURE__ */ T(ye.Provider, { value: i, children: s }), e[7] = i, e[8] = s, e[9] = c) : c = e[9], c;
|
|
895
901
|
}
|
|
896
902
|
const Do = 'button, a[href], input, select, textarea, [role="button"]';
|
|
897
903
|
function Fo({
|
|
898
904
|
children: t,
|
|
899
905
|
"aria-label": e,
|
|
900
906
|
variant: o = "default",
|
|
901
|
-
size:
|
|
902
|
-
ref:
|
|
907
|
+
size: r = "default",
|
|
908
|
+
ref: d
|
|
903
909
|
}) {
|
|
904
910
|
const {
|
|
905
911
|
open: l,
|
|
906
912
|
toggle: a,
|
|
907
913
|
menuId: i,
|
|
908
|
-
triggerId:
|
|
914
|
+
triggerId: n,
|
|
909
915
|
triggerRef: s
|
|
910
|
-
} = ee(),
|
|
911
|
-
s.current = x, p.current = x, typeof
|
|
912
|
-
}, [
|
|
916
|
+
} = ee(), c = He(), p = c.ref, u = K((x) => {
|
|
917
|
+
s.current = x, p.current = x, typeof d == "function" ? d(x) : d && (d.current = x);
|
|
918
|
+
}, [d, s, p]);
|
|
913
919
|
return F(() => {
|
|
914
|
-
s.current?.querySelector(Do) &&
|
|
915
|
-
}, [s]), /* @__PURE__ */
|
|
920
|
+
s.current?.querySelector(Do) && fe("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.");
|
|
921
|
+
}, [s]), /* @__PURE__ */ T("button", { "data-element-src": "Menu/Menu.tsx:100", ref: u, tabIndex: c.tabIndex, onFocus: c.onFocus, id: n, type: "button", onClick: a, "aria-label": e, "aria-expanded": l, "aria-haspopup": "menu", "aria-controls": l ? i : void 0, ...W(S.button, P.trigger, o === "ghost" ? [P.triggerGhost, r === "small" && P.triggerGhostSmall] : r === "small" && P.triggerSmall, c.style), children: t });
|
|
916
922
|
}
|
|
917
923
|
function Vo(t) {
|
|
918
924
|
const e = L.c(26), {
|
|
919
925
|
children: o,
|
|
920
|
-
align:
|
|
921
|
-
} = t,
|
|
926
|
+
align: r
|
|
927
|
+
} = t, d = r === void 0 ? "start" : r, {
|
|
922
928
|
open: l,
|
|
923
929
|
menuId: a,
|
|
924
930
|
triggerId: i,
|
|
925
|
-
highlightedId:
|
|
931
|
+
highlightedId: n,
|
|
926
932
|
triggerRef: s,
|
|
927
|
-
popupRef:
|
|
933
|
+
popupRef: c
|
|
928
934
|
} = ee();
|
|
929
935
|
let p;
|
|
930
936
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (p = {
|
|
@@ -935,14 +941,14 @@ function Vo(t) {
|
|
|
935
941
|
let h;
|
|
936
942
|
e[1] !== l ? (h = {
|
|
937
943
|
active: l
|
|
938
|
-
}, e[1] = l, e[2] = h) : h = e[2], Go(
|
|
939
|
-
let
|
|
940
|
-
if (e[3] !==
|
|
944
|
+
}, e[1] = l, e[2] = h) : h = e[2], Go(c, h);
|
|
945
|
+
let f, y;
|
|
946
|
+
if (e[3] !== d || e[4] !== l || e[5] !== c || e[6] !== s ? (f = () => {
|
|
941
947
|
if (!l)
|
|
942
948
|
return;
|
|
943
949
|
const D = () => {
|
|
944
|
-
const
|
|
945
|
-
if (!
|
|
950
|
+
const M = c.current, E = s.current?.getBoundingClientRect();
|
|
951
|
+
if (!M || !E)
|
|
946
952
|
return;
|
|
947
953
|
const z = Bo({
|
|
948
954
|
anchor: {
|
|
@@ -952,15 +958,15 @@ function Vo(t) {
|
|
|
952
958
|
height: E.height
|
|
953
959
|
},
|
|
954
960
|
popup: {
|
|
955
|
-
width:
|
|
956
|
-
height:
|
|
961
|
+
width: M.offsetWidth,
|
|
962
|
+
height: M.offsetHeight
|
|
957
963
|
},
|
|
958
964
|
viewport: {
|
|
959
965
|
width: window.innerWidth,
|
|
960
966
|
height: window.innerHeight
|
|
961
967
|
},
|
|
962
968
|
side: "bottom",
|
|
963
|
-
align:
|
|
969
|
+
align: d,
|
|
964
970
|
offset: Se.xs
|
|
965
971
|
});
|
|
966
972
|
x((j) => j.top === z.top && j.left === z.left ? j : {
|
|
@@ -971,17 +977,17 @@ function Vo(t) {
|
|
|
971
977
|
return D(), window.addEventListener("resize", D), window.addEventListener("scroll", D, !0), () => {
|
|
972
978
|
window.removeEventListener("resize", D), window.removeEventListener("scroll", D, !0);
|
|
973
979
|
};
|
|
974
|
-
}, y = [l,
|
|
980
|
+
}, y = [l, d, c, s], e[3] = d, e[4] = l, e[5] = c, e[6] = s, e[7] = f, e[8] = y) : (f = e[7], y = e[8]), J(f, y), !l || typeof document > "u")
|
|
975
981
|
return null;
|
|
976
|
-
const k =
|
|
982
|
+
const k = n ?? void 0;
|
|
977
983
|
let w;
|
|
978
984
|
e[9] !== u.left || e[10] !== u.top ? (w = P.popupPosition(u.top, u.left), e[9] = u.left, e[10] = u.top, e[11] = w) : w = e[11];
|
|
979
985
|
let C;
|
|
980
986
|
e[12] !== w ? (C = [P.popup, w], e[12] = w, e[13] = C) : C = e[13];
|
|
981
987
|
let R;
|
|
982
|
-
e[14] !== o ? (R = /* @__PURE__ */
|
|
988
|
+
e[14] !== o ? (R = /* @__PURE__ */ T(Oe, { children: o }), e[14] = o, e[15] = R) : R = e[15];
|
|
983
989
|
let H;
|
|
984
|
-
e[16] !== a || e[17] !==
|
|
990
|
+
e[16] !== a || e[17] !== c || e[18] !== k || e[19] !== C || e[20] !== R || e[21] !== i ? (H = /* @__PURE__ */ T("div", { "data-element-src": "Menu/Menu.tsx:170", ref: c, id: a, role: "menu", tabIndex: -1, "aria-labelledby": i, "aria-activedescendant": k, ...W(S.div, C), children: R }), e[16] = a, e[17] = c, e[18] = k, e[19] = C, e[20] = R, e[21] = i, e[22] = H) : H = e[22];
|
|
985
991
|
const I = g ?? document.body;
|
|
986
992
|
let O;
|
|
987
993
|
return e[23] !== H || e[24] !== I ? (O = We(H, I), e[23] = H, e[24] = I, e[25] = O) : O = e[25], O;
|
|
@@ -989,64 +995,64 @@ function Vo(t) {
|
|
|
989
995
|
function Xo(t) {
|
|
990
996
|
const e = L.c(18), {
|
|
991
997
|
onClick: o,
|
|
992
|
-
children:
|
|
998
|
+
children: r
|
|
993
999
|
} = t, {
|
|
994
|
-
close:
|
|
1000
|
+
close: d,
|
|
995
1001
|
highlightedId: l,
|
|
996
1002
|
setHighlightedId: a,
|
|
997
1003
|
registerItem: i
|
|
998
|
-
} = ee(),
|
|
1004
|
+
} = ee(), n = Y(), s = q(null), c = l === n;
|
|
999
1005
|
let p, u;
|
|
1000
|
-
e[0] !==
|
|
1006
|
+
e[0] !== n || e[1] !== i ? (p = () => {
|
|
1001
1007
|
const w = s.current;
|
|
1002
1008
|
if (w)
|
|
1003
|
-
return i(
|
|
1004
|
-
}, u = [
|
|
1009
|
+
return i(n, w);
|
|
1010
|
+
}, u = [n, i], e[0] = n, e[1] = i, e[2] = p, e[3] = u) : (p = e[2], u = e[3]), F(p, u);
|
|
1005
1011
|
let x;
|
|
1006
|
-
e[4] !==
|
|
1007
|
-
o?.(),
|
|
1008
|
-
}, e[4] =
|
|
1012
|
+
e[4] !== d || e[5] !== o ? (x = () => {
|
|
1013
|
+
o?.(), d();
|
|
1014
|
+
}, e[4] = d, e[5] = o, e[6] = x) : x = e[6];
|
|
1009
1015
|
const g = x;
|
|
1010
1016
|
let h;
|
|
1011
|
-
e[7] !==
|
|
1012
|
-
const
|
|
1017
|
+
e[7] !== n || e[8] !== a ? (h = () => a(n), e[7] = n, e[8] = a, e[9] = h) : h = e[9];
|
|
1018
|
+
const f = c && P.itemHighlighted;
|
|
1013
1019
|
let y;
|
|
1014
|
-
e[10] !==
|
|
1020
|
+
e[10] !== f ? (y = [P.item, f], e[10] = f, e[11] = y) : y = e[11];
|
|
1015
1021
|
let k;
|
|
1016
|
-
return e[12] !==
|
|
1022
|
+
return e[12] !== r || e[13] !== g || e[14] !== n || e[15] !== h || e[16] !== y ? (k = /* @__PURE__ */ T("div", { "data-element-src": "Menu/Menu.tsx:209", ref: s, id: n, role: "menuitem", onClick: g, onPointerEnter: h, ...W(S.div, y), children: r }), e[12] = r, e[13] = g, e[14] = n, e[15] = h, e[16] = y, e[17] = k) : k = e[17], k;
|
|
1017
1023
|
}
|
|
1018
1024
|
function Ko(t) {
|
|
1019
1025
|
const e = L.c(18), {
|
|
1020
1026
|
href: o,
|
|
1021
|
-
children:
|
|
1027
|
+
children: r
|
|
1022
1028
|
} = t, {
|
|
1023
|
-
close:
|
|
1029
|
+
close: d,
|
|
1024
1030
|
highlightedId: l,
|
|
1025
1031
|
setHighlightedId: a,
|
|
1026
1032
|
registerItem: i
|
|
1027
|
-
} = ee(),
|
|
1033
|
+
} = ee(), n = Y(), s = q(null), c = l === n;
|
|
1028
1034
|
let p, u;
|
|
1029
|
-
e[0] !==
|
|
1035
|
+
e[0] !== n || e[1] !== i ? (p = () => {
|
|
1030
1036
|
const k = s.current;
|
|
1031
1037
|
if (k)
|
|
1032
|
-
return i(
|
|
1033
|
-
}, u = [
|
|
1038
|
+
return i(n, k);
|
|
1039
|
+
}, u = [n, i], e[0] = n, e[1] = i, e[2] = p, e[3] = u) : (p = e[2], u = e[3]), F(p, u);
|
|
1034
1040
|
let x;
|
|
1035
|
-
e[4] !==
|
|
1041
|
+
e[4] !== d ? (x = () => d(), e[4] = d, e[5] = x) : x = e[5];
|
|
1036
1042
|
let g;
|
|
1037
|
-
e[6] !==
|
|
1038
|
-
const h =
|
|
1039
|
-
let
|
|
1040
|
-
e[9] !== h ? (
|
|
1043
|
+
e[6] !== n || e[7] !== a ? (g = () => a(n), e[6] = n, e[7] = a, e[8] = g) : g = e[8];
|
|
1044
|
+
const h = c && P.itemHighlighted;
|
|
1045
|
+
let f;
|
|
1046
|
+
e[9] !== h ? (f = [P.item, P.linkItem, h], e[9] = h, e[10] = f) : f = e[10];
|
|
1041
1047
|
let y;
|
|
1042
|
-
return e[11] !==
|
|
1048
|
+
return e[11] !== r || e[12] !== o || e[13] !== n || e[14] !== x || e[15] !== g || e[16] !== f ? (y = /* @__PURE__ */ T("a", { "data-element-src": "Menu/Menu.tsx:241", ref: s, id: n, href: o, onClick: x, role: "menuitem", onPointerEnter: g, ...W(S.a, f), children: r }), e[11] = r, e[12] = o, e[13] = n, e[14] = x, e[15] = g, e[16] = f, e[17] = y) : y = e[17], y;
|
|
1043
1049
|
}
|
|
1044
1050
|
function No() {
|
|
1045
1051
|
const t = L.c(1);
|
|
1046
1052
|
let e;
|
|
1047
|
-
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
1053
|
+
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ T("div", { "data-element-src": "Menu/Menu.tsx:260", role: "separator", "aria-orientation": "horizontal", ...W(S.div, P.separator) }), t[0] = e) : e = t[0], e;
|
|
1048
1054
|
}
|
|
1049
|
-
const
|
|
1055
|
+
const gr = {
|
|
1050
1056
|
Root: Ao,
|
|
1051
1057
|
Trigger: Fo,
|
|
1052
1058
|
Popup: Vo,
|
|
@@ -1269,13 +1275,13 @@ function te() {
|
|
|
1269
1275
|
throw new Error("Table compound components must be used within Table.Root");
|
|
1270
1276
|
return t;
|
|
1271
1277
|
}
|
|
1272
|
-
const
|
|
1278
|
+
const re = A(!1);
|
|
1273
1279
|
function _o(t) {
|
|
1274
1280
|
const e = L.c(2), {
|
|
1275
1281
|
children: o
|
|
1276
1282
|
} = t;
|
|
1277
|
-
let
|
|
1278
|
-
return e[0] !== o ? (
|
|
1283
|
+
let r;
|
|
1284
|
+
return e[0] !== o ? (r = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:55", ...W(S.div, $.container), children: o }), e[0] = o, e[1] = r) : r = e[1], r;
|
|
1279
1285
|
}
|
|
1280
1286
|
function Yo(t) {
|
|
1281
1287
|
let e = "";
|
|
@@ -1286,70 +1292,70 @@ function Yo(t) {
|
|
|
1286
1292
|
function Zo(t) {
|
|
1287
1293
|
let e = t;
|
|
1288
1294
|
for (let o = 0; o < 8 && e && typeof e == "object"; o++) {
|
|
1289
|
-
const
|
|
1290
|
-
if (
|
|
1291
|
-
e =
|
|
1295
|
+
const r = e.type ?? e.render;
|
|
1296
|
+
if (r == null) break;
|
|
1297
|
+
e = r;
|
|
1292
1298
|
}
|
|
1293
1299
|
return e;
|
|
1294
1300
|
}
|
|
1295
1301
|
function Uo(t, e) {
|
|
1296
|
-
const o = [],
|
|
1302
|
+
const o = [], r = [], d = [];
|
|
1297
1303
|
function l(a) {
|
|
1298
1304
|
Q.forEach(a, (i) => {
|
|
1299
|
-
if (!
|
|
1300
|
-
const
|
|
1301
|
-
if (s === ie ||
|
|
1302
|
-
const p =
|
|
1303
|
-
o.push(p),
|
|
1304
|
-
const u = typeof
|
|
1305
|
-
!u && x === "" &&
|
|
1306
|
-
} else
|
|
1305
|
+
if (!Me(i)) return;
|
|
1306
|
+
const n = i.props, s = Zo(i.type), c = s?.displayName || s?.name || "";
|
|
1307
|
+
if (s === ie || c === "HeaderCell") {
|
|
1308
|
+
const p = n.width ? String(ue(n.width)) : `minmax(${ve(e)}, 1fr)`;
|
|
1309
|
+
o.push(p), r.push(n.compactWidth ? String(ue(n.compactWidth)) : p);
|
|
1310
|
+
const u = typeof n.label == "string" ? n.label : void 0, x = Yo(n.children).trim(), g = u ?? x;
|
|
1311
|
+
!u && x === "" && n.children != null && fe("Table", "headerCell-missing-label", "Table.HeaderCell with JSX children must set `label` for stack-mode rendering."), d.push(g);
|
|
1312
|
+
} else n.children && l(n.children);
|
|
1307
1313
|
});
|
|
1308
1314
|
}
|
|
1309
1315
|
return l(t), {
|
|
1310
1316
|
template: o.join(" "),
|
|
1311
|
-
compactTemplate:
|
|
1312
|
-
labels:
|
|
1317
|
+
compactTemplate: r.join(" "),
|
|
1318
|
+
labels: d
|
|
1313
1319
|
};
|
|
1314
1320
|
}
|
|
1315
1321
|
function Jo(t) {
|
|
1316
1322
|
const e = L.c(13), {
|
|
1317
1323
|
children: o
|
|
1318
|
-
} = t,
|
|
1319
|
-
let
|
|
1320
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1324
|
+
} = t, r = q(null);
|
|
1325
|
+
let d;
|
|
1326
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
1321
1327
|
start: !1,
|
|
1322
1328
|
end: !1
|
|
1323
|
-
}, e[0] =
|
|
1324
|
-
const [l, a] = Z(
|
|
1325
|
-
let i,
|
|
1329
|
+
}, e[0] = d) : d = e[0];
|
|
1330
|
+
const [l, a] = Z(d);
|
|
1331
|
+
let i, n;
|
|
1326
1332
|
e[1] === Symbol.for("react.memo_cache_sentinel") ? (i = () => {
|
|
1327
|
-
const h =
|
|
1333
|
+
const h = r.current;
|
|
1328
1334
|
if (!h)
|
|
1329
1335
|
return;
|
|
1330
|
-
const
|
|
1336
|
+
const f = () => {
|
|
1331
1337
|
const k = h.scrollWidth - h.clientWidth > 1;
|
|
1332
1338
|
a({
|
|
1333
1339
|
start: k && h.scrollLeft > 1,
|
|
1334
1340
|
end: k && h.scrollLeft + h.clientWidth < h.scrollWidth - 1
|
|
1335
1341
|
});
|
|
1336
1342
|
};
|
|
1337
|
-
|
|
1343
|
+
f(), h.addEventListener("scroll", f, {
|
|
1338
1344
|
passive: !0
|
|
1339
1345
|
});
|
|
1340
|
-
const y = typeof ResizeObserver < "u" ? new ResizeObserver(
|
|
1346
|
+
const y = typeof ResizeObserver < "u" ? new ResizeObserver(f) : null;
|
|
1341
1347
|
return y?.observe(h), () => {
|
|
1342
|
-
h.removeEventListener("scroll",
|
|
1348
|
+
h.removeEventListener("scroll", f), y?.disconnect();
|
|
1343
1349
|
};
|
|
1344
|
-
},
|
|
1350
|
+
}, n = [], e[1] = i, e[2] = n) : (i = e[1], n = e[2]), F(i, n);
|
|
1345
1351
|
let s;
|
|
1346
|
-
e[3] !== o ? (s = /* @__PURE__ */
|
|
1347
|
-
const
|
|
1352
|
+
e[3] !== o ? (s = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:196", ref: r, ...W(S.div, $.scrollX), children: o }), e[3] = o, e[4] = s) : s = e[4];
|
|
1353
|
+
const c = l.start && $.edgeFadeVisible;
|
|
1348
1354
|
let p;
|
|
1349
|
-
e[5] !==
|
|
1355
|
+
e[5] !== c ? (p = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:199", "aria-hidden": !0, ...W(S.div, $.edgeFade, $.edgeFadeLeft, c) }), e[5] = c, e[6] = p) : p = e[6];
|
|
1350
1356
|
const u = l.end && $.edgeFadeVisible;
|
|
1351
1357
|
let x;
|
|
1352
|
-
e[7] !== u ? (x = /* @__PURE__ */
|
|
1358
|
+
e[7] !== u ? (x = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:203", "aria-hidden": !0, ...W(S.div, $.edgeFade, $.edgeFadeRight, u) }), e[7] = u, e[8] = x) : x = e[8];
|
|
1353
1359
|
let g;
|
|
1354
1360
|
return e[9] !== s || e[10] !== p || e[11] !== x ? (g = /* @__PURE__ */ U("div", { "data-element-src": "Table/Table.tsx:195", ...W(S.div, $.scrollFrame), children: [
|
|
1355
1361
|
s,
|
|
@@ -1361,18 +1367,18 @@ function Qo({
|
|
|
1361
1367
|
children: t,
|
|
1362
1368
|
variant: e = "default",
|
|
1363
1369
|
size: o = "md",
|
|
1364
|
-
responsive:
|
|
1365
|
-
minColumnWidth:
|
|
1370
|
+
responsive: r = !0,
|
|
1371
|
+
minColumnWidth: d = "labelMinW",
|
|
1366
1372
|
sortChip: l,
|
|
1367
1373
|
pagination: a
|
|
1368
1374
|
}) {
|
|
1369
1375
|
const i = q(null), {
|
|
1370
|
-
template:
|
|
1376
|
+
template: n,
|
|
1371
1377
|
compactTemplate: s,
|
|
1372
|
-
labels:
|
|
1373
|
-
} = Uo(t,
|
|
1374
|
-
|
|
1375
|
-
const p = /* @__PURE__ */
|
|
1378
|
+
labels: c
|
|
1379
|
+
} = Uo(t, d);
|
|
1380
|
+
n && (i.current = n);
|
|
1381
|
+
const p = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:257", role: "table", ...W(
|
|
1376
1382
|
S.div,
|
|
1377
1383
|
$.root,
|
|
1378
1384
|
// When responsive, use gridColumnsResponsive so the explicit column
|
|
@@ -1381,149 +1387,149 @@ function Qo({
|
|
|
1381
1387
|
// rootResponsive) causes StyleX conflict resolution to drop the
|
|
1382
1388
|
// column template because rootResponsive's gridTemplateColumns key
|
|
1383
1389
|
// always wins as the later entry in the array.
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
), children: t }), x = /* @__PURE__ */ U(
|
|
1390
|
+
n ? r ? $.gridColumnsResponsive(n, s) : $.gridColumns(n) : void 0,
|
|
1391
|
+
r && $.rootResponsive
|
|
1392
|
+
), children: t }), x = /* @__PURE__ */ U(Te, { children: [
|
|
1387
1393
|
l,
|
|
1388
|
-
|
|
1394
|
+
r ? /* @__PURE__ */ T(Jo, { children: p }) : p,
|
|
1389
1395
|
a
|
|
1390
1396
|
] });
|
|
1391
|
-
return /* @__PURE__ */
|
|
1397
|
+
return /* @__PURE__ */ T(we.Provider, { value: {
|
|
1392
1398
|
variant: e,
|
|
1393
1399
|
size: o,
|
|
1394
|
-
responsive:
|
|
1395
|
-
labels:
|
|
1400
|
+
responsive: r,
|
|
1401
|
+
labels: c,
|
|
1396
1402
|
inferredTemplateRef: i
|
|
1397
|
-
}, children:
|
|
1403
|
+
}, children: r ? /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:299", ...W(S.div, $.rootContainer), children: x }) : x });
|
|
1398
1404
|
}
|
|
1399
|
-
function
|
|
1405
|
+
function er(t) {
|
|
1400
1406
|
const e = L.c(2), {
|
|
1401
1407
|
children: o
|
|
1402
1408
|
} = t;
|
|
1403
|
-
let
|
|
1404
|
-
return e[0] !== o ? (
|
|
1409
|
+
let r;
|
|
1410
|
+
return e[0] !== o ? (r = /* @__PURE__ */ T(re.Provider, { value: !0, children: /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:309", role: "rowgroup", ...W(S.div, $.header), children: o }) }), e[0] = o, e[1] = r) : r = e[1], r;
|
|
1405
1411
|
}
|
|
1406
|
-
function
|
|
1412
|
+
function tr(t) {
|
|
1407
1413
|
const e = L.c(19), {
|
|
1408
1414
|
children: o
|
|
1409
1415
|
} = t, {
|
|
1410
|
-
variant:
|
|
1416
|
+
variant: r
|
|
1411
1417
|
} = te();
|
|
1412
|
-
let
|
|
1413
|
-
if (e[0] !== o || e[1] !==
|
|
1418
|
+
let d, l, a, i, n, s;
|
|
1419
|
+
if (e[0] !== o || e[1] !== r) {
|
|
1414
1420
|
const u = Q.toArray(o);
|
|
1415
|
-
l =
|
|
1421
|
+
l = re.Provider, s = !1, d = Io.div, a = "rowgroup", i = $.body;
|
|
1416
1422
|
let x;
|
|
1417
|
-
e[8] !==
|
|
1423
|
+
e[8] !== r ? (x = (g, h) => r !== "striped" ? g : /* @__PURE__ */ T($e.Provider, { value: h, children: g }, g.key ?? h), e[8] = r, e[9] = x) : x = e[9], n = u.map(x), e[0] = o, e[1] = r, e[2] = d, e[3] = l, e[4] = a, e[5] = i, e[6] = n, e[7] = s;
|
|
1418
1424
|
} else
|
|
1419
|
-
|
|
1420
|
-
let
|
|
1421
|
-
e[10] !==
|
|
1425
|
+
d = e[2], l = e[3], a = e[4], i = e[5], n = e[6], s = e[7];
|
|
1426
|
+
let c;
|
|
1427
|
+
e[10] !== d || e[11] !== a || e[12] !== i || e[13] !== n ? (c = /* @__PURE__ */ T(d, { role: a, style: i, children: n }), e[10] = d, e[11] = a, e[12] = i, e[13] = n, e[14] = c) : c = e[14];
|
|
1422
1428
|
let p;
|
|
1423
|
-
return e[15] !== l || e[16] !== s || e[17] !==
|
|
1429
|
+
return e[15] !== l || e[16] !== s || e[17] !== c ? (p = /* @__PURE__ */ T(l, { value: s, children: c }), e[15] = l, e[16] = s, e[17] = c, e[18] = p) : p = e[18], p;
|
|
1424
1430
|
}
|
|
1425
|
-
const $e = A(-1),
|
|
1426
|
-
function
|
|
1431
|
+
const $e = A(-1), or = 'button, a, input, select, textarea, [role="button"], [role="link"], [role="checkbox"], [role="menuitem"], [role="switch"], [role="tab"], [contenteditable="true"]';
|
|
1432
|
+
function rr(t) {
|
|
1427
1433
|
const e = L.c(17), {
|
|
1428
1434
|
children: o,
|
|
1429
|
-
onClick:
|
|
1430
|
-
"aria-label":
|
|
1435
|
+
onClick: r,
|
|
1436
|
+
"aria-label": d
|
|
1431
1437
|
} = t, {
|
|
1432
1438
|
variant: l
|
|
1433
|
-
} = te(), a = G(
|
|
1439
|
+
} = te(), a = G(re), i = G($e), n = i >= 0 && i % 2 === 1;
|
|
1434
1440
|
let s;
|
|
1435
|
-
if (e[0] !==
|
|
1436
|
-
const
|
|
1441
|
+
if (e[0] !== d || e[1] !== o || e[2] !== n || e[3] !== a || e[4] !== r || e[5] !== l) {
|
|
1442
|
+
const c = Q.toArray(o), p = r !== void 0 && !a;
|
|
1437
1443
|
let u;
|
|
1438
|
-
e[7] !== p || e[8] !==
|
|
1444
|
+
e[7] !== p || e[8] !== r ? (u = p ? (k) => {
|
|
1439
1445
|
const w = k.target;
|
|
1440
|
-
w instanceof Element && w.closest(
|
|
1441
|
-
} : void 0, e[7] = p, e[8] =
|
|
1446
|
+
w instanceof Element && w.closest(or) || r();
|
|
1447
|
+
} : void 0, e[7] = p, e[8] = r, e[9] = u) : u = e[9];
|
|
1442
1448
|
let x;
|
|
1443
|
-
e[10] !== p || e[11] !==
|
|
1444
|
-
(k.key === "Enter" || k.key === " ") &&
|
|
1445
|
-
} : void 0, e[10] = p, e[11] =
|
|
1446
|
-
const g = !a && $.bodyRow, h = !a && l === "striped" &&
|
|
1449
|
+
e[10] !== p || e[11] !== r ? (x = p ? (k) => {
|
|
1450
|
+
(k.key === "Enter" || k.key === " ") && r();
|
|
1451
|
+
} : void 0, e[10] = p, e[11] = r, e[12] = x) : x = e[12];
|
|
1452
|
+
const g = !a && $.bodyRow, h = !a && l === "striped" && n && $.stripedEven, f = p && $.clickableRow;
|
|
1447
1453
|
let y;
|
|
1448
|
-
e[13] !== g || e[14] !== h || e[15] !==
|
|
1454
|
+
e[13] !== g || e[14] !== h || e[15] !== f ? (y = [$.row, g, h, f], e[13] = g, e[14] = h, e[15] = f, e[16] = y) : y = e[16], s = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:381", role: "row", tabIndex: p ? 0 : void 0, "aria-label": p ? d : void 0, onClick: u, onKeyDown: x, ...W(S.div, y), children: c.map((k, w) => /* @__PURE__ */ T(ne.Provider, { value: {
|
|
1449
1455
|
index: w,
|
|
1450
|
-
total:
|
|
1451
|
-
}, children: k }, k.key ?? w)) }), e[0] =
|
|
1456
|
+
total: c.length
|
|
1457
|
+
}, children: k }, k.key ?? w)) }), e[0] = d, e[1] = o, e[2] = n, e[3] = a, e[4] = r, e[5] = l, e[6] = s;
|
|
1452
1458
|
} else
|
|
1453
1459
|
s = e[6];
|
|
1454
1460
|
return s;
|
|
1455
1461
|
}
|
|
1456
|
-
const
|
|
1462
|
+
const ne = A({
|
|
1457
1463
|
index: 0,
|
|
1458
1464
|
total: 0
|
|
1459
1465
|
});
|
|
1460
1466
|
function ie(t) {
|
|
1461
1467
|
const e = L.c(8), {
|
|
1462
1468
|
children: o,
|
|
1463
|
-
"aria-label":
|
|
1469
|
+
"aria-label": r
|
|
1464
1470
|
} = t, {
|
|
1465
|
-
size:
|
|
1471
|
+
size: d,
|
|
1466
1472
|
variant: l
|
|
1467
1473
|
} = te(), {
|
|
1468
1474
|
index: a,
|
|
1469
1475
|
total: i
|
|
1470
|
-
} = G(
|
|
1476
|
+
} = G(ne), n = l === "bordered" && a === i - 1, s = d === "sm" ? $.cellSm : $.cellMd, c = l === "bordered" && $.borderedCell, p = n && $.borderedCellLast;
|
|
1471
1477
|
let u;
|
|
1472
|
-
e[0] !== s || e[1] !==
|
|
1478
|
+
e[0] !== s || e[1] !== c || e[2] !== p ? (u = [$.headerCell, s, c, p], e[0] = s, e[1] = c, e[2] = p, e[3] = u) : u = e[3];
|
|
1473
1479
|
let x;
|
|
1474
|
-
return e[4] !==
|
|
1480
|
+
return e[4] !== r || e[5] !== o || e[6] !== u ? (x = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:467", role: "columnheader", "aria-label": r, ...W(S.div, u), children: o }), e[4] = r, e[5] = o, e[6] = u, e[7] = x) : x = e[7], x;
|
|
1475
1481
|
}
|
|
1476
1482
|
ie.displayName = "HeaderCell";
|
|
1477
|
-
function
|
|
1483
|
+
function nr(t) {
|
|
1478
1484
|
const e = L.c(16), {
|
|
1479
1485
|
children: o,
|
|
1480
|
-
isActions:
|
|
1486
|
+
isActions: r
|
|
1481
1487
|
} = t, {
|
|
1482
|
-
size:
|
|
1488
|
+
size: d,
|
|
1483
1489
|
variant: l,
|
|
1484
1490
|
labels: a,
|
|
1485
1491
|
responsive: i
|
|
1486
1492
|
} = te(), {
|
|
1487
|
-
index:
|
|
1493
|
+
index: n,
|
|
1488
1494
|
total: s
|
|
1489
|
-
} = G(
|
|
1490
|
-
let
|
|
1491
|
-
e[0] !== u || e[1] !== x || e[2] !== g || e[3] !== h ? (
|
|
1495
|
+
} = G(ne), c = l === "bordered" && n === s - 1, p = a[n] ?? "", u = d === "sm" ? $.cellSm : $.cellMd, x = l === "bordered" && $.borderedCell, g = c && $.borderedCellLast, h = r && $.cellActions;
|
|
1496
|
+
let f;
|
|
1497
|
+
e[0] !== u || e[1] !== x || e[2] !== g || e[3] !== h ? (f = [$.cell, u, x, g, h], e[0] = u, e[1] = x, e[2] = g, e[3] = h, e[4] = f) : f = e[4];
|
|
1492
1498
|
let y;
|
|
1493
|
-
e[5] !==
|
|
1499
|
+
e[5] !== r || e[6] !== p || e[7] !== i ? (y = i && !r && p !== "" ? /* @__PURE__ */ T("span", { "data-element-src": "Table/Table.tsx:507", ...W(S.span, $.cellLabel), children: p }) : null, e[5] = r, e[6] = p, e[7] = i, e[8] = y) : y = e[8];
|
|
1494
1500
|
let k;
|
|
1495
|
-
e[9] !== o || e[10] !==
|
|
1501
|
+
e[9] !== o || e[10] !== r ? (k = r ? o : /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:509", ...W(S.div, $.cellValue), children: o }), e[9] = o, e[10] = r, e[11] = k) : k = e[11];
|
|
1496
1502
|
let w;
|
|
1497
|
-
return e[12] !==
|
|
1503
|
+
return e[12] !== f || e[13] !== y || e[14] !== k ? (w = /* @__PURE__ */ U("div", { "data-element-src": "Table/Table.tsx:496", role: "cell", ...W(S.div, f), children: [
|
|
1498
1504
|
y,
|
|
1499
1505
|
k
|
|
1500
|
-
] }), e[12] =
|
|
1506
|
+
] }), e[12] = f, e[13] = y, e[14] = k, e[15] = w) : w = e[15], w;
|
|
1501
1507
|
}
|
|
1502
|
-
const
|
|
1508
|
+
const ir = {
|
|
1503
1509
|
/** @deprecated Wrap behaviour is built into Table.Root. Drop this wrapper from new code. */
|
|
1504
1510
|
Container: _o,
|
|
1505
1511
|
Root: Qo,
|
|
1506
|
-
Header:
|
|
1507
|
-
Body:
|
|
1508
|
-
Row:
|
|
1512
|
+
Header: er,
|
|
1513
|
+
Body: tr,
|
|
1514
|
+
Row: rr,
|
|
1509
1515
|
HeaderCell: ie,
|
|
1510
|
-
Cell:
|
|
1511
|
-
},
|
|
1516
|
+
Cell: nr
|
|
1517
|
+
}, hr = ir;
|
|
1512
1518
|
export {
|
|
1513
1519
|
xe as B,
|
|
1514
1520
|
Oe as C,
|
|
1515
|
-
|
|
1521
|
+
cr as D,
|
|
1516
1522
|
ie as H,
|
|
1517
|
-
|
|
1518
|
-
|
|
1523
|
+
ur as I,
|
|
1524
|
+
gr as M,
|
|
1519
1525
|
Oo as P,
|
|
1520
|
-
|
|
1526
|
+
rr as R,
|
|
1521
1527
|
Se as S,
|
|
1522
|
-
|
|
1528
|
+
pr as T,
|
|
1523
1529
|
Be as a,
|
|
1524
|
-
|
|
1530
|
+
xr as b,
|
|
1525
1531
|
Go as c,
|
|
1526
|
-
|
|
1532
|
+
fe as d,
|
|
1527
1533
|
Bo as e,
|
|
1528
1534
|
Re as f,
|
|
1529
1535
|
ze as g,
|
|
@@ -1531,16 +1537,16 @@ export {
|
|
|
1531
1537
|
pe as i,
|
|
1532
1538
|
Po as j,
|
|
1533
1539
|
ue as k,
|
|
1534
|
-
|
|
1540
|
+
hr as l,
|
|
1535
1541
|
$ as m,
|
|
1536
|
-
|
|
1537
|
-
|
|
1542
|
+
er as n,
|
|
1543
|
+
tr as o,
|
|
1538
1544
|
Qo as p,
|
|
1539
|
-
|
|
1545
|
+
nr as q,
|
|
1540
1546
|
ve as r,
|
|
1541
1547
|
he as s,
|
|
1542
1548
|
_ as t,
|
|
1543
1549
|
He as u,
|
|
1544
|
-
|
|
1550
|
+
ir as v
|
|
1545
1551
|
};
|
|
1546
|
-
//# sourceMappingURL=Table-
|
|
1552
|
+
//# sourceMappingURL=Table-ColfpgKV.js.map
|