@duro-app/ui 5.8.1 → 5.10.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-gRiLI243.js} +300 -298
- package/dist/Table-gRiLI243.js.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.js +15 -2
- package/dist/index.js.map +1 -1
- package/dist/table.js +1 -1
- package/package.json +2 -2
- package/src/components/Icon/Icon.stories.tsx +111 -0
- package/src/components/Icon/Icon.tsx +20 -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", "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,37 +97,37 @@ 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
133
|
xjvd03b: "x27mww3 xjvd03b",
|
|
@@ -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,
|
|
@@ -279,6 +279,8 @@ const gn = {
|
|
|
279
279
|
dayHeaderH: "var(--dayHeaderH-x1j7gty0)",
|
|
280
280
|
timelineLabelW: "var(--timelineLabelW-xx6mz1f)",
|
|
281
281
|
appBarH: "var(--appBarH-x12xs6hi)",
|
|
282
|
+
dragThumbW: "var(--dragThumbW-x1bz26bx)",
|
|
283
|
+
dragThumbH: "var(--dragThumbH-xbt2de9)",
|
|
282
284
|
__varGroupHash__: "x1w57kmz"
|
|
283
285
|
};
|
|
284
286
|
/**
|
|
@@ -288,9 +290,9 @@ const gn = {
|
|
|
288
290
|
* This source code is licensed under the MIT license found in the
|
|
289
291
|
* LICENSE file in the root directory of this source tree.
|
|
290
292
|
*/
|
|
291
|
-
const
|
|
293
|
+
const de = {};
|
|
292
294
|
function Ge(t) {
|
|
293
|
-
process.env.NODE_ENV !== "test" &&
|
|
295
|
+
process.env.NODE_ENV !== "test" && de[t] || (de[t] = !0, console.error(`[error] React Strict DOM: ${t}`));
|
|
294
296
|
}
|
|
295
297
|
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
298
|
function De(t) {
|
|
@@ -301,39 +303,39 @@ Object.defineProperty(oe, "__esModule", {
|
|
|
301
303
|
value: !0
|
|
302
304
|
});
|
|
303
305
|
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 =
|
|
306
|
+
function be(t) {
|
|
307
|
+
var e, o, r;
|
|
308
|
+
return t != null && (e = t.disableCache === !0, o = t.disableMix === !0, r = t.transform), function() {
|
|
309
|
+
for (var l = [], a = "", i = null, n = "", s = e ? null : Fe, c = new Array(arguments.length), p = 0; p < arguments.length; p++)
|
|
310
|
+
c[p] = arguments[p];
|
|
311
|
+
for (; c.length > 0; ) {
|
|
312
|
+
var u = c.pop();
|
|
311
313
|
if (!(u == null || u === !1)) {
|
|
312
314
|
if (Array.isArray(u)) {
|
|
313
315
|
for (var x = 0; x < u.length; x++)
|
|
314
|
-
|
|
316
|
+
c.push(u[x]);
|
|
315
317
|
continue;
|
|
316
318
|
}
|
|
317
|
-
var g =
|
|
319
|
+
var g = r != null ? r(u) : u;
|
|
318
320
|
if (g.$$css != null) {
|
|
319
321
|
var h = "";
|
|
320
322
|
if (s != null && s.has(g)) {
|
|
321
|
-
var
|
|
322
|
-
|
|
323
|
+
var f = s.get(g);
|
|
324
|
+
f != null && (h = f[0], n = f[2], l.push.apply(l, f[1]), s = f[3]);
|
|
323
325
|
} else {
|
|
324
326
|
var y = [];
|
|
325
327
|
for (var k in g) {
|
|
326
328
|
var w = g[k];
|
|
327
329
|
if (k === Ve) {
|
|
328
330
|
var C = g[k];
|
|
329
|
-
C !== !0 && (
|
|
331
|
+
C !== !0 && (n = n ? C + "; " + n : C);
|
|
330
332
|
continue;
|
|
331
333
|
}
|
|
332
334
|
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
335
|
}
|
|
334
336
|
if (s != null) {
|
|
335
337
|
var R = /* @__PURE__ */ new WeakMap();
|
|
336
|
-
s.set(g, [h, y,
|
|
338
|
+
s.set(g, [h, y, n, R]), s = R;
|
|
337
339
|
}
|
|
338
340
|
}
|
|
339
341
|
h && (a = a ? h + " " + a : h);
|
|
@@ -349,26 +351,26 @@ function fe(t) {
|
|
|
349
351
|
}
|
|
350
352
|
}
|
|
351
353
|
}
|
|
352
|
-
var D = [a, i,
|
|
354
|
+
var D = [a, i, n];
|
|
353
355
|
return D;
|
|
354
356
|
};
|
|
355
357
|
}
|
|
356
|
-
var Xe = me = oe.styleq =
|
|
357
|
-
Xe.factory =
|
|
358
|
+
var Xe = me = oe.styleq = be();
|
|
359
|
+
Xe.factory = be;
|
|
358
360
|
const Ke = me.factory({
|
|
359
361
|
disableMix: !0
|
|
360
362
|
});
|
|
361
363
|
function Ne(...t) {
|
|
362
|
-
const [e, o,
|
|
363
|
-
if (e != null && e !== "" && (
|
|
364
|
-
const l =
|
|
364
|
+
const [e, o, r] = Ke(t), d = {};
|
|
365
|
+
if (e != null && e !== "" && (d.className = e), o != null && (d.style = o), r != null && r !== "") {
|
|
366
|
+
const l = r.split(";"), a = {};
|
|
365
367
|
for (const i of l) {
|
|
366
|
-
const
|
|
367
|
-
|
|
368
|
+
const n = i.trim(), [s, c] = n.split(":");
|
|
369
|
+
c != null && (a[s] = a[s] != null ? `${a[s]},${c}` : c);
|
|
368
370
|
}
|
|
369
|
-
|
|
371
|
+
d["data-style-src"] = Object.keys(a).map((i) => `${i}:${a[i]}`).join("; ");
|
|
370
372
|
}
|
|
371
|
-
return
|
|
373
|
+
return d;
|
|
372
374
|
}
|
|
373
375
|
function _e(t) {
|
|
374
376
|
Object.keys(t).forEach((e) => {
|
|
@@ -380,24 +382,24 @@ function m(t, e) {
|
|
|
380
382
|
$$css: !0,
|
|
381
383
|
"debug::name": `html-${t}`
|
|
382
384
|
};
|
|
383
|
-
function
|
|
384
|
-
ref:
|
|
385
|
+
function r({
|
|
386
|
+
ref: d,
|
|
385
387
|
...l
|
|
386
388
|
}) {
|
|
387
389
|
const {
|
|
388
390
|
for: a,
|
|
389
391
|
style: i,
|
|
390
|
-
...
|
|
391
|
-
} = l, s =
|
|
392
|
+
...n
|
|
393
|
+
} = l, s = n;
|
|
392
394
|
_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
|
|
395
|
+
const c = Ne([o, e, i]);
|
|
396
|
+
return T(t, {
|
|
395
397
|
...s,
|
|
396
|
-
...
|
|
397
|
-
ref:
|
|
398
|
+
...c,
|
|
399
|
+
ref: d
|
|
398
400
|
});
|
|
399
401
|
}
|
|
400
|
-
return
|
|
402
|
+
return r.displayName = `html.${t}`, r;
|
|
401
403
|
}
|
|
402
404
|
const v = {
|
|
403
405
|
block: {
|
|
@@ -467,7 +469,7 @@ const v = {
|
|
|
467
469
|
"resize-kHenm0": "resize-x288g5",
|
|
468
470
|
$$css: ".pnpm:web/index.js:276"
|
|
469
471
|
}
|
|
470
|
-
}, Ye = v.inline, Ze = v.block, Ue = v.block, Je = v.inline, Qe = v.inline, et = v.inline, tt = v.block, ot = null,
|
|
472
|
+
}, 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
473
|
a: Ye,
|
|
472
474
|
article: Ze,
|
|
473
475
|
aside: Ue,
|
|
@@ -476,14 +478,14 @@ const v = {
|
|
|
476
478
|
bdo: et,
|
|
477
479
|
blockquote: tt,
|
|
478
480
|
br: ot,
|
|
479
|
-
button:
|
|
480
|
-
code:
|
|
481
|
+
button: rt,
|
|
482
|
+
code: nt,
|
|
481
483
|
del: it,
|
|
482
484
|
div: st,
|
|
483
485
|
em: lt,
|
|
484
486
|
fieldset: at,
|
|
485
|
-
footer:
|
|
486
|
-
form:
|
|
487
|
+
footer: dt,
|
|
488
|
+
form: ct,
|
|
487
489
|
h1: X,
|
|
488
490
|
h2: X,
|
|
489
491
|
h3: X,
|
|
@@ -496,15 +498,15 @@ const v = {
|
|
|
496
498
|
img: gt,
|
|
497
499
|
input: ht,
|
|
498
500
|
ins: mt,
|
|
499
|
-
kbd:
|
|
500
|
-
label:
|
|
501
|
+
kbd: bt,
|
|
502
|
+
label: ft,
|
|
501
503
|
li: kt,
|
|
502
504
|
main: vt,
|
|
503
505
|
mark: yt,
|
|
504
506
|
nav: wt,
|
|
505
507
|
ol: $t,
|
|
506
|
-
optgroup:
|
|
507
|
-
option:
|
|
508
|
+
optgroup: Tt,
|
|
509
|
+
option: Mt,
|
|
508
510
|
p: Wt,
|
|
509
511
|
pre: St,
|
|
510
512
|
s: Ct,
|
|
@@ -517,7 +519,7 @@ const v = {
|
|
|
517
519
|
textarea: qt,
|
|
518
520
|
u: Pt,
|
|
519
521
|
ul: Et
|
|
520
|
-
}, Bt = m("a",
|
|
522
|
+
}, 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
523
|
var Io = /* @__PURE__ */ Object.freeze({
|
|
522
524
|
__proto__: null,
|
|
523
525
|
a: Bt,
|
|
@@ -539,8 +541,8 @@ var Io = /* @__PURE__ */ Object.freeze({
|
|
|
539
541
|
h1: eo,
|
|
540
542
|
h2: to,
|
|
541
543
|
h3: oo,
|
|
542
|
-
h4:
|
|
543
|
-
h5:
|
|
544
|
+
h4: ro,
|
|
545
|
+
h5: no,
|
|
544
546
|
h6: io,
|
|
545
547
|
header: so,
|
|
546
548
|
hr: lo,
|
|
@@ -552,15 +554,15 @@ var Io = /* @__PURE__ */ Object.freeze({
|
|
|
552
554
|
label: go,
|
|
553
555
|
li: ho,
|
|
554
556
|
main: mo,
|
|
555
|
-
mark:
|
|
556
|
-
nav:
|
|
557
|
+
mark: bo,
|
|
558
|
+
nav: fo,
|
|
557
559
|
ol: ko,
|
|
558
560
|
optgroup: vo,
|
|
559
561
|
option: yo,
|
|
560
562
|
p: wo,
|
|
561
563
|
pre: $o,
|
|
562
|
-
s:
|
|
563
|
-
section:
|
|
564
|
+
s: To,
|
|
565
|
+
section: Mo,
|
|
564
566
|
select: Wo,
|
|
565
567
|
span: So,
|
|
566
568
|
strong: Co,
|
|
@@ -570,10 +572,10 @@ var Io = /* @__PURE__ */ Object.freeze({
|
|
|
570
572
|
u: Ho,
|
|
571
573
|
ul: Lo
|
|
572
574
|
});
|
|
573
|
-
const qo = typeof process < "u" && process.env?.NODE_ENV === "production",
|
|
574
|
-
function
|
|
575
|
-
const
|
|
576
|
-
qo ||
|
|
575
|
+
const qo = typeof process < "u" && process.env?.NODE_ENV === "production", ce = /* @__PURE__ */ new Set();
|
|
576
|
+
function fe(t, e, o) {
|
|
577
|
+
const r = `${t}:${e}`;
|
|
578
|
+
qo || ce.has(r) || (ce.add(r), console.warn(`[duro-app/ui ${t}] ${o}`));
|
|
577
579
|
}
|
|
578
580
|
const ke = new Set(Ce);
|
|
579
581
|
function ve(t) {
|
|
@@ -584,8 +586,8 @@ function ue(t) {
|
|
|
584
586
|
if (typeof e != "string") return e;
|
|
585
587
|
const o = /^(minmax|fit-content)\((.*)\)$/.exec(e);
|
|
586
588
|
if (o) {
|
|
587
|
-
const
|
|
588
|
-
return `${o[1]}(${
|
|
589
|
+
const r = o[2].split(",").map((d) => String(ve(d.trim())));
|
|
590
|
+
return `${o[1]}(${r.join(", ")})`;
|
|
589
591
|
}
|
|
590
592
|
return ke.has(e) ? he[e] : e;
|
|
591
593
|
}
|
|
@@ -727,18 +729,18 @@ function Eo({
|
|
|
727
729
|
defaultOpen: e = !1,
|
|
728
730
|
onOpenChange: o
|
|
729
731
|
}) {
|
|
730
|
-
const [
|
|
732
|
+
const [r, d] = Z(e), l = t !== void 0, a = l ? t : r, [i, n] = Z(null), s = q(i);
|
|
731
733
|
J(() => {
|
|
732
734
|
s.current = i;
|
|
733
735
|
}, [i]);
|
|
734
|
-
const
|
|
736
|
+
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
737
|
y.current = a;
|
|
736
738
|
const k = q(o);
|
|
737
739
|
k.current = o;
|
|
738
|
-
const w = K((
|
|
739
|
-
|
|
740
|
+
const w = K((M) => {
|
|
741
|
+
M !== y.current && (l || d(M), k.current?.(M));
|
|
740
742
|
}, [l]), C = K(() => {
|
|
741
|
-
y.current && (w(!1),
|
|
743
|
+
y.current && (w(!1), n(null));
|
|
742
744
|
}, [w]), R = K(() => {
|
|
743
745
|
y.current && (C(), x.current?.focus());
|
|
744
746
|
}, [C]), H = K(() => {
|
|
@@ -749,9 +751,9 @@ function Eo({
|
|
|
749
751
|
g.current?.focus({
|
|
750
752
|
preventScroll: !0
|
|
751
753
|
});
|
|
752
|
-
const
|
|
753
|
-
|
|
754
|
-
} else !a && I.current &&
|
|
754
|
+
const M = f.current[0];
|
|
755
|
+
M && n(M);
|
|
756
|
+
} else !a && I.current && n(null);
|
|
755
757
|
I.current = a;
|
|
756
758
|
}, [a]), F(() => {
|
|
757
759
|
if (!i) return;
|
|
@@ -759,19 +761,19 @@ function Eo({
|
|
|
759
761
|
block: "nearest"
|
|
760
762
|
});
|
|
761
763
|
}, [i]);
|
|
762
|
-
const O = K((
|
|
763
|
-
h.current.set(
|
|
764
|
+
const O = K((M, E) => {
|
|
765
|
+
h.current.set(M, E);
|
|
764
766
|
const z = h.current, j = [...z.keys()];
|
|
765
767
|
return j.sort((B, N) => {
|
|
766
768
|
const se = z.get(B), le = z.get(N);
|
|
767
769
|
return !se || !le ? 0 : se.compareDocumentPosition(le) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
768
|
-
}),
|
|
769
|
-
h.current.delete(
|
|
770
|
+
}), f.current = j, () => {
|
|
771
|
+
h.current.delete(M), f.current = f.current.filter((B) => B !== M);
|
|
770
772
|
};
|
|
771
773
|
}, []);
|
|
772
774
|
return F(() => {
|
|
773
|
-
const
|
|
774
|
-
if (!
|
|
775
|
+
const M = g.current;
|
|
776
|
+
if (!M || !a) return;
|
|
775
777
|
function E(z) {
|
|
776
778
|
if (z.key === "Escape") {
|
|
777
779
|
z.preventDefault(), z.stopPropagation(), R();
|
|
@@ -781,29 +783,29 @@ function Eo({
|
|
|
781
783
|
R();
|
|
782
784
|
return;
|
|
783
785
|
}
|
|
784
|
-
const j =
|
|
786
|
+
const j = f.current;
|
|
785
787
|
if (j.length !== 0)
|
|
786
788
|
switch (z.key) {
|
|
787
789
|
case "ArrowDown": {
|
|
788
|
-
z.preventDefault(),
|
|
790
|
+
z.preventDefault(), n((B) => {
|
|
789
791
|
const N = B ? j.indexOf(B) : -1;
|
|
790
792
|
return j[(N + 1) % j.length];
|
|
791
793
|
});
|
|
792
794
|
break;
|
|
793
795
|
}
|
|
794
796
|
case "ArrowUp": {
|
|
795
|
-
z.preventDefault(),
|
|
797
|
+
z.preventDefault(), n((B) => {
|
|
796
798
|
const N = B ? j.indexOf(B) : 0;
|
|
797
799
|
return j[(N - 1 + j.length) % j.length];
|
|
798
800
|
});
|
|
799
801
|
break;
|
|
800
802
|
}
|
|
801
803
|
case "Home": {
|
|
802
|
-
z.preventDefault(),
|
|
804
|
+
z.preventDefault(), n(j[0]);
|
|
803
805
|
break;
|
|
804
806
|
}
|
|
805
807
|
case "End": {
|
|
806
|
-
z.preventDefault(),
|
|
808
|
+
z.preventDefault(), n(j[j.length - 1]);
|
|
807
809
|
break;
|
|
808
810
|
}
|
|
809
811
|
case "Enter":
|
|
@@ -815,22 +817,22 @@ function Eo({
|
|
|
815
817
|
}
|
|
816
818
|
}
|
|
817
819
|
}
|
|
818
|
-
return
|
|
820
|
+
return M.addEventListener("keydown", E), () => M.removeEventListener("keydown", E);
|
|
819
821
|
}, [a, R]), F(() => {
|
|
820
822
|
if (!a) return;
|
|
821
|
-
function
|
|
823
|
+
function M(E) {
|
|
822
824
|
Po(E.target, [g.current, x.current]) && C();
|
|
823
825
|
}
|
|
824
|
-
return document.addEventListener("pointerdown",
|
|
826
|
+
return document.addEventListener("pointerdown", M, !0), () => document.removeEventListener("pointerdown", M, !0);
|
|
825
827
|
}, [a, C]), {
|
|
826
828
|
ctx: {
|
|
827
829
|
open: a,
|
|
828
830
|
toggle: H,
|
|
829
831
|
close: R,
|
|
830
|
-
menuId:
|
|
832
|
+
menuId: c,
|
|
831
833
|
triggerId: p,
|
|
832
834
|
highlightedId: i,
|
|
833
|
-
setHighlightedId:
|
|
835
|
+
setHighlightedId: n,
|
|
834
836
|
registerItem: O,
|
|
835
837
|
triggerRef: x,
|
|
836
838
|
popupRef: g
|
|
@@ -842,89 +844,89 @@ function Bo({
|
|
|
842
844
|
anchor: t,
|
|
843
845
|
popup: e,
|
|
844
846
|
viewport: o,
|
|
845
|
-
side:
|
|
846
|
-
align:
|
|
847
|
+
side: r,
|
|
848
|
+
align: d,
|
|
847
849
|
offset: l
|
|
848
850
|
}) {
|
|
849
|
-
const a = t.top + t.height + l, i = t.top - l - e.height,
|
|
850
|
-
let
|
|
851
|
-
|
|
852
|
-
const p =
|
|
851
|
+
const a = t.top + t.height + l, i = t.top - l - e.height, n = a + e.height <= o.height, s = i >= 0;
|
|
852
|
+
let c = r;
|
|
853
|
+
r === "bottom" && !n && s ? c = "top" : r === "top" && !s && n && (c = "bottom");
|
|
854
|
+
const p = c === "bottom" ? a : i;
|
|
853
855
|
let u = t.left;
|
|
854
|
-
|
|
856
|
+
d === "center" ? u = t.left + (t.width - e.width) / 2 : d === "end" && (u = t.left + t.width - e.width);
|
|
855
857
|
const x = Math.max(0, o.width - e.width);
|
|
856
858
|
return u = Math.min(Math.max(0, u), x), {
|
|
857
859
|
top: p,
|
|
858
860
|
left: u,
|
|
859
|
-
side:
|
|
861
|
+
side: c
|
|
860
862
|
};
|
|
861
863
|
}
|
|
862
864
|
const Oo = A(null);
|
|
863
865
|
function Go(t, e) {
|
|
864
866
|
const o = L.c(5), {
|
|
865
|
-
active:
|
|
866
|
-
} = e,
|
|
867
|
+
active: r
|
|
868
|
+
} = e, d = G(Oo);
|
|
867
869
|
let l, a;
|
|
868
|
-
o[0] !==
|
|
870
|
+
o[0] !== r || o[1] !== d || o[2] !== t ? (l = () => {
|
|
869
871
|
const i = t.current;
|
|
870
|
-
if (!(!
|
|
871
|
-
return
|
|
872
|
-
}, a = [
|
|
872
|
+
if (!(!d || !r || !i))
|
|
873
|
+
return d.register(i);
|
|
874
|
+
}, 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
875
|
}
|
|
874
876
|
function Ao(t) {
|
|
875
877
|
const e = L.c(10), {
|
|
876
878
|
children: o,
|
|
877
|
-
open:
|
|
878
|
-
defaultOpen:
|
|
879
|
+
open: r,
|
|
880
|
+
defaultOpen: d,
|
|
879
881
|
onOpenChange: l
|
|
880
882
|
} = t;
|
|
881
883
|
let a;
|
|
882
|
-
e[0] !==
|
|
883
|
-
open:
|
|
884
|
-
defaultOpen:
|
|
884
|
+
e[0] !== d || e[1] !== l || e[2] !== r ? (a = {
|
|
885
|
+
open: r,
|
|
886
|
+
defaultOpen: d,
|
|
885
887
|
onOpenChange: l
|
|
886
|
-
}, e[0] =
|
|
888
|
+
}, e[0] = d, e[1] = l, e[2] = r, e[3] = a) : a = e[3];
|
|
887
889
|
const {
|
|
888
890
|
ctx: i,
|
|
889
|
-
rootRef:
|
|
891
|
+
rootRef: n
|
|
890
892
|
} = Eo(a);
|
|
891
893
|
let s;
|
|
892
|
-
e[4] !== o || e[5] !==
|
|
893
|
-
let
|
|
894
|
-
return e[7] !== i || e[8] !== s ? (
|
|
894
|
+
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];
|
|
895
|
+
let c;
|
|
896
|
+
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
897
|
}
|
|
896
898
|
const Do = 'button, a[href], input, select, textarea, [role="button"]';
|
|
897
899
|
function Fo({
|
|
898
900
|
children: t,
|
|
899
901
|
"aria-label": e,
|
|
900
902
|
variant: o = "default",
|
|
901
|
-
size:
|
|
902
|
-
ref:
|
|
903
|
+
size: r = "default",
|
|
904
|
+
ref: d
|
|
903
905
|
}) {
|
|
904
906
|
const {
|
|
905
907
|
open: l,
|
|
906
908
|
toggle: a,
|
|
907
909
|
menuId: i,
|
|
908
|
-
triggerId:
|
|
910
|
+
triggerId: n,
|
|
909
911
|
triggerRef: s
|
|
910
|
-
} = ee(),
|
|
911
|
-
s.current = x, p.current = x, typeof
|
|
912
|
-
}, [
|
|
912
|
+
} = ee(), c = He(), p = c.ref, u = K((x) => {
|
|
913
|
+
s.current = x, p.current = x, typeof d == "function" ? d(x) : d && (d.current = x);
|
|
914
|
+
}, [d, s, p]);
|
|
913
915
|
return F(() => {
|
|
914
|
-
s.current?.querySelector(Do) &&
|
|
915
|
-
}, [s]), /* @__PURE__ */
|
|
916
|
+
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.");
|
|
917
|
+
}, [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
918
|
}
|
|
917
919
|
function Vo(t) {
|
|
918
920
|
const e = L.c(26), {
|
|
919
921
|
children: o,
|
|
920
|
-
align:
|
|
921
|
-
} = t,
|
|
922
|
+
align: r
|
|
923
|
+
} = t, d = r === void 0 ? "start" : r, {
|
|
922
924
|
open: l,
|
|
923
925
|
menuId: a,
|
|
924
926
|
triggerId: i,
|
|
925
|
-
highlightedId:
|
|
927
|
+
highlightedId: n,
|
|
926
928
|
triggerRef: s,
|
|
927
|
-
popupRef:
|
|
929
|
+
popupRef: c
|
|
928
930
|
} = ee();
|
|
929
931
|
let p;
|
|
930
932
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (p = {
|
|
@@ -935,14 +937,14 @@ function Vo(t) {
|
|
|
935
937
|
let h;
|
|
936
938
|
e[1] !== l ? (h = {
|
|
937
939
|
active: l
|
|
938
|
-
}, e[1] = l, e[2] = h) : h = e[2], Go(
|
|
939
|
-
let
|
|
940
|
-
if (e[3] !==
|
|
940
|
+
}, e[1] = l, e[2] = h) : h = e[2], Go(c, h);
|
|
941
|
+
let f, y;
|
|
942
|
+
if (e[3] !== d || e[4] !== l || e[5] !== c || e[6] !== s ? (f = () => {
|
|
941
943
|
if (!l)
|
|
942
944
|
return;
|
|
943
945
|
const D = () => {
|
|
944
|
-
const
|
|
945
|
-
if (!
|
|
946
|
+
const M = c.current, E = s.current?.getBoundingClientRect();
|
|
947
|
+
if (!M || !E)
|
|
946
948
|
return;
|
|
947
949
|
const z = Bo({
|
|
948
950
|
anchor: {
|
|
@@ -952,15 +954,15 @@ function Vo(t) {
|
|
|
952
954
|
height: E.height
|
|
953
955
|
},
|
|
954
956
|
popup: {
|
|
955
|
-
width:
|
|
956
|
-
height:
|
|
957
|
+
width: M.offsetWidth,
|
|
958
|
+
height: M.offsetHeight
|
|
957
959
|
},
|
|
958
960
|
viewport: {
|
|
959
961
|
width: window.innerWidth,
|
|
960
962
|
height: window.innerHeight
|
|
961
963
|
},
|
|
962
964
|
side: "bottom",
|
|
963
|
-
align:
|
|
965
|
+
align: d,
|
|
964
966
|
offset: Se.xs
|
|
965
967
|
});
|
|
966
968
|
x((j) => j.top === z.top && j.left === z.left ? j : {
|
|
@@ -971,17 +973,17 @@ function Vo(t) {
|
|
|
971
973
|
return D(), window.addEventListener("resize", D), window.addEventListener("scroll", D, !0), () => {
|
|
972
974
|
window.removeEventListener("resize", D), window.removeEventListener("scroll", D, !0);
|
|
973
975
|
};
|
|
974
|
-
}, y = [l,
|
|
976
|
+
}, 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
977
|
return null;
|
|
976
|
-
const k =
|
|
978
|
+
const k = n ?? void 0;
|
|
977
979
|
let w;
|
|
978
980
|
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
981
|
let C;
|
|
980
982
|
e[12] !== w ? (C = [P.popup, w], e[12] = w, e[13] = C) : C = e[13];
|
|
981
983
|
let R;
|
|
982
|
-
e[14] !== o ? (R = /* @__PURE__ */
|
|
984
|
+
e[14] !== o ? (R = /* @__PURE__ */ T(Oe, { children: o }), e[14] = o, e[15] = R) : R = e[15];
|
|
983
985
|
let H;
|
|
984
|
-
e[16] !== a || e[17] !==
|
|
986
|
+
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
987
|
const I = g ?? document.body;
|
|
986
988
|
let O;
|
|
987
989
|
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 +991,64 @@ function Vo(t) {
|
|
|
989
991
|
function Xo(t) {
|
|
990
992
|
const e = L.c(18), {
|
|
991
993
|
onClick: o,
|
|
992
|
-
children:
|
|
994
|
+
children: r
|
|
993
995
|
} = t, {
|
|
994
|
-
close:
|
|
996
|
+
close: d,
|
|
995
997
|
highlightedId: l,
|
|
996
998
|
setHighlightedId: a,
|
|
997
999
|
registerItem: i
|
|
998
|
-
} = ee(),
|
|
1000
|
+
} = ee(), n = Y(), s = q(null), c = l === n;
|
|
999
1001
|
let p, u;
|
|
1000
|
-
e[0] !==
|
|
1002
|
+
e[0] !== n || e[1] !== i ? (p = () => {
|
|
1001
1003
|
const w = s.current;
|
|
1002
1004
|
if (w)
|
|
1003
|
-
return i(
|
|
1004
|
-
}, u = [
|
|
1005
|
+
return i(n, w);
|
|
1006
|
+
}, 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
1007
|
let x;
|
|
1006
|
-
e[4] !==
|
|
1007
|
-
o?.(),
|
|
1008
|
-
}, e[4] =
|
|
1008
|
+
e[4] !== d || e[5] !== o ? (x = () => {
|
|
1009
|
+
o?.(), d();
|
|
1010
|
+
}, e[4] = d, e[5] = o, e[6] = x) : x = e[6];
|
|
1009
1011
|
const g = x;
|
|
1010
1012
|
let h;
|
|
1011
|
-
e[7] !==
|
|
1012
|
-
const
|
|
1013
|
+
e[7] !== n || e[8] !== a ? (h = () => a(n), e[7] = n, e[8] = a, e[9] = h) : h = e[9];
|
|
1014
|
+
const f = c && P.itemHighlighted;
|
|
1013
1015
|
let y;
|
|
1014
|
-
e[10] !==
|
|
1016
|
+
e[10] !== f ? (y = [P.item, f], e[10] = f, e[11] = y) : y = e[11];
|
|
1015
1017
|
let k;
|
|
1016
|
-
return e[12] !==
|
|
1018
|
+
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
1019
|
}
|
|
1018
1020
|
function Ko(t) {
|
|
1019
1021
|
const e = L.c(18), {
|
|
1020
1022
|
href: o,
|
|
1021
|
-
children:
|
|
1023
|
+
children: r
|
|
1022
1024
|
} = t, {
|
|
1023
|
-
close:
|
|
1025
|
+
close: d,
|
|
1024
1026
|
highlightedId: l,
|
|
1025
1027
|
setHighlightedId: a,
|
|
1026
1028
|
registerItem: i
|
|
1027
|
-
} = ee(),
|
|
1029
|
+
} = ee(), n = Y(), s = q(null), c = l === n;
|
|
1028
1030
|
let p, u;
|
|
1029
|
-
e[0] !==
|
|
1031
|
+
e[0] !== n || e[1] !== i ? (p = () => {
|
|
1030
1032
|
const k = s.current;
|
|
1031
1033
|
if (k)
|
|
1032
|
-
return i(
|
|
1033
|
-
}, u = [
|
|
1034
|
+
return i(n, k);
|
|
1035
|
+
}, 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
1036
|
let x;
|
|
1035
|
-
e[4] !==
|
|
1037
|
+
e[4] !== d ? (x = () => d(), e[4] = d, e[5] = x) : x = e[5];
|
|
1036
1038
|
let g;
|
|
1037
|
-
e[6] !==
|
|
1038
|
-
const h =
|
|
1039
|
-
let
|
|
1040
|
-
e[9] !== h ? (
|
|
1039
|
+
e[6] !== n || e[7] !== a ? (g = () => a(n), e[6] = n, e[7] = a, e[8] = g) : g = e[8];
|
|
1040
|
+
const h = c && P.itemHighlighted;
|
|
1041
|
+
let f;
|
|
1042
|
+
e[9] !== h ? (f = [P.item, P.linkItem, h], e[9] = h, e[10] = f) : f = e[10];
|
|
1041
1043
|
let y;
|
|
1042
|
-
return e[11] !==
|
|
1044
|
+
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
1045
|
}
|
|
1044
1046
|
function No() {
|
|
1045
1047
|
const t = L.c(1);
|
|
1046
1048
|
let e;
|
|
1047
|
-
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
1049
|
+
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
1050
|
}
|
|
1049
|
-
const
|
|
1051
|
+
const gr = {
|
|
1050
1052
|
Root: Ao,
|
|
1051
1053
|
Trigger: Fo,
|
|
1052
1054
|
Popup: Vo,
|
|
@@ -1269,13 +1271,13 @@ function te() {
|
|
|
1269
1271
|
throw new Error("Table compound components must be used within Table.Root");
|
|
1270
1272
|
return t;
|
|
1271
1273
|
}
|
|
1272
|
-
const
|
|
1274
|
+
const re = A(!1);
|
|
1273
1275
|
function _o(t) {
|
|
1274
1276
|
const e = L.c(2), {
|
|
1275
1277
|
children: o
|
|
1276
1278
|
} = t;
|
|
1277
|
-
let
|
|
1278
|
-
return e[0] !== o ? (
|
|
1279
|
+
let r;
|
|
1280
|
+
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
1281
|
}
|
|
1280
1282
|
function Yo(t) {
|
|
1281
1283
|
let e = "";
|
|
@@ -1286,70 +1288,70 @@ function Yo(t) {
|
|
|
1286
1288
|
function Zo(t) {
|
|
1287
1289
|
let e = t;
|
|
1288
1290
|
for (let o = 0; o < 8 && e && typeof e == "object"; o++) {
|
|
1289
|
-
const
|
|
1290
|
-
if (
|
|
1291
|
-
e =
|
|
1291
|
+
const r = e.type ?? e.render;
|
|
1292
|
+
if (r == null) break;
|
|
1293
|
+
e = r;
|
|
1292
1294
|
}
|
|
1293
1295
|
return e;
|
|
1294
1296
|
}
|
|
1295
1297
|
function Uo(t, e) {
|
|
1296
|
-
const o = [],
|
|
1298
|
+
const o = [], r = [], d = [];
|
|
1297
1299
|
function l(a) {
|
|
1298
1300
|
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
|
|
1301
|
+
if (!Me(i)) return;
|
|
1302
|
+
const n = i.props, s = Zo(i.type), c = s?.displayName || s?.name || "";
|
|
1303
|
+
if (s === ie || c === "HeaderCell") {
|
|
1304
|
+
const p = n.width ? String(ue(n.width)) : `minmax(${ve(e)}, 1fr)`;
|
|
1305
|
+
o.push(p), r.push(n.compactWidth ? String(ue(n.compactWidth)) : p);
|
|
1306
|
+
const u = typeof n.label == "string" ? n.label : void 0, x = Yo(n.children).trim(), g = u ?? x;
|
|
1307
|
+
!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);
|
|
1308
|
+
} else n.children && l(n.children);
|
|
1307
1309
|
});
|
|
1308
1310
|
}
|
|
1309
1311
|
return l(t), {
|
|
1310
1312
|
template: o.join(" "),
|
|
1311
|
-
compactTemplate:
|
|
1312
|
-
labels:
|
|
1313
|
+
compactTemplate: r.join(" "),
|
|
1314
|
+
labels: d
|
|
1313
1315
|
};
|
|
1314
1316
|
}
|
|
1315
1317
|
function Jo(t) {
|
|
1316
1318
|
const e = L.c(13), {
|
|
1317
1319
|
children: o
|
|
1318
|
-
} = t,
|
|
1319
|
-
let
|
|
1320
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1320
|
+
} = t, r = q(null);
|
|
1321
|
+
let d;
|
|
1322
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
1321
1323
|
start: !1,
|
|
1322
1324
|
end: !1
|
|
1323
|
-
}, e[0] =
|
|
1324
|
-
const [l, a] = Z(
|
|
1325
|
-
let i,
|
|
1325
|
+
}, e[0] = d) : d = e[0];
|
|
1326
|
+
const [l, a] = Z(d);
|
|
1327
|
+
let i, n;
|
|
1326
1328
|
e[1] === Symbol.for("react.memo_cache_sentinel") ? (i = () => {
|
|
1327
|
-
const h =
|
|
1329
|
+
const h = r.current;
|
|
1328
1330
|
if (!h)
|
|
1329
1331
|
return;
|
|
1330
|
-
const
|
|
1332
|
+
const f = () => {
|
|
1331
1333
|
const k = h.scrollWidth - h.clientWidth > 1;
|
|
1332
1334
|
a({
|
|
1333
1335
|
start: k && h.scrollLeft > 1,
|
|
1334
1336
|
end: k && h.scrollLeft + h.clientWidth < h.scrollWidth - 1
|
|
1335
1337
|
});
|
|
1336
1338
|
};
|
|
1337
|
-
|
|
1339
|
+
f(), h.addEventListener("scroll", f, {
|
|
1338
1340
|
passive: !0
|
|
1339
1341
|
});
|
|
1340
|
-
const y = typeof ResizeObserver < "u" ? new ResizeObserver(
|
|
1342
|
+
const y = typeof ResizeObserver < "u" ? new ResizeObserver(f) : null;
|
|
1341
1343
|
return y?.observe(h), () => {
|
|
1342
|
-
h.removeEventListener("scroll",
|
|
1344
|
+
h.removeEventListener("scroll", f), y?.disconnect();
|
|
1343
1345
|
};
|
|
1344
|
-
},
|
|
1346
|
+
}, n = [], e[1] = i, e[2] = n) : (i = e[1], n = e[2]), F(i, n);
|
|
1345
1347
|
let s;
|
|
1346
|
-
e[3] !== o ? (s = /* @__PURE__ */
|
|
1347
|
-
const
|
|
1348
|
+
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];
|
|
1349
|
+
const c = l.start && $.edgeFadeVisible;
|
|
1348
1350
|
let p;
|
|
1349
|
-
e[5] !==
|
|
1351
|
+
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
1352
|
const u = l.end && $.edgeFadeVisible;
|
|
1351
1353
|
let x;
|
|
1352
|
-
e[7] !== u ? (x = /* @__PURE__ */
|
|
1354
|
+
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
1355
|
let g;
|
|
1354
1356
|
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
1357
|
s,
|
|
@@ -1361,18 +1363,18 @@ function Qo({
|
|
|
1361
1363
|
children: t,
|
|
1362
1364
|
variant: e = "default",
|
|
1363
1365
|
size: o = "md",
|
|
1364
|
-
responsive:
|
|
1365
|
-
minColumnWidth:
|
|
1366
|
+
responsive: r = !0,
|
|
1367
|
+
minColumnWidth: d = "labelMinW",
|
|
1366
1368
|
sortChip: l,
|
|
1367
1369
|
pagination: a
|
|
1368
1370
|
}) {
|
|
1369
1371
|
const i = q(null), {
|
|
1370
|
-
template:
|
|
1372
|
+
template: n,
|
|
1371
1373
|
compactTemplate: s,
|
|
1372
|
-
labels:
|
|
1373
|
-
} = Uo(t,
|
|
1374
|
-
|
|
1375
|
-
const p = /* @__PURE__ */
|
|
1374
|
+
labels: c
|
|
1375
|
+
} = Uo(t, d);
|
|
1376
|
+
n && (i.current = n);
|
|
1377
|
+
const p = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:257", role: "table", ...W(
|
|
1376
1378
|
S.div,
|
|
1377
1379
|
$.root,
|
|
1378
1380
|
// When responsive, use gridColumnsResponsive so the explicit column
|
|
@@ -1381,149 +1383,149 @@ function Qo({
|
|
|
1381
1383
|
// rootResponsive) causes StyleX conflict resolution to drop the
|
|
1382
1384
|
// column template because rootResponsive's gridTemplateColumns key
|
|
1383
1385
|
// always wins as the later entry in the array.
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
), children: t }), x = /* @__PURE__ */ U(
|
|
1386
|
+
n ? r ? $.gridColumnsResponsive(n, s) : $.gridColumns(n) : void 0,
|
|
1387
|
+
r && $.rootResponsive
|
|
1388
|
+
), children: t }), x = /* @__PURE__ */ U(Te, { children: [
|
|
1387
1389
|
l,
|
|
1388
|
-
|
|
1390
|
+
r ? /* @__PURE__ */ T(Jo, { children: p }) : p,
|
|
1389
1391
|
a
|
|
1390
1392
|
] });
|
|
1391
|
-
return /* @__PURE__ */
|
|
1393
|
+
return /* @__PURE__ */ T(we.Provider, { value: {
|
|
1392
1394
|
variant: e,
|
|
1393
1395
|
size: o,
|
|
1394
|
-
responsive:
|
|
1395
|
-
labels:
|
|
1396
|
+
responsive: r,
|
|
1397
|
+
labels: c,
|
|
1396
1398
|
inferredTemplateRef: i
|
|
1397
|
-
}, children:
|
|
1399
|
+
}, children: r ? /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:299", ...W(S.div, $.rootContainer), children: x }) : x });
|
|
1398
1400
|
}
|
|
1399
|
-
function
|
|
1401
|
+
function er(t) {
|
|
1400
1402
|
const e = L.c(2), {
|
|
1401
1403
|
children: o
|
|
1402
1404
|
} = t;
|
|
1403
|
-
let
|
|
1404
|
-
return e[0] !== o ? (
|
|
1405
|
+
let r;
|
|
1406
|
+
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
1407
|
}
|
|
1406
|
-
function
|
|
1408
|
+
function tr(t) {
|
|
1407
1409
|
const e = L.c(19), {
|
|
1408
1410
|
children: o
|
|
1409
1411
|
} = t, {
|
|
1410
|
-
variant:
|
|
1412
|
+
variant: r
|
|
1411
1413
|
} = te();
|
|
1412
|
-
let
|
|
1413
|
-
if (e[0] !== o || e[1] !==
|
|
1414
|
+
let d, l, a, i, n, s;
|
|
1415
|
+
if (e[0] !== o || e[1] !== r) {
|
|
1414
1416
|
const u = Q.toArray(o);
|
|
1415
|
-
l =
|
|
1417
|
+
l = re.Provider, s = !1, d = Io.div, a = "rowgroup", i = $.body;
|
|
1416
1418
|
let x;
|
|
1417
|
-
e[8] !==
|
|
1419
|
+
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
1420
|
} else
|
|
1419
|
-
|
|
1420
|
-
let
|
|
1421
|
-
e[10] !==
|
|
1421
|
+
d = e[2], l = e[3], a = e[4], i = e[5], n = e[6], s = e[7];
|
|
1422
|
+
let c;
|
|
1423
|
+
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
1424
|
let p;
|
|
1423
|
-
return e[15] !== l || e[16] !== s || e[17] !==
|
|
1425
|
+
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
1426
|
}
|
|
1425
|
-
const $e = A(-1),
|
|
1426
|
-
function
|
|
1427
|
+
const $e = A(-1), or = 'button, a, input, select, textarea, [role="button"], [role="link"], [role="checkbox"], [role="menuitem"], [role="switch"], [role="tab"], [contenteditable="true"]';
|
|
1428
|
+
function rr(t) {
|
|
1427
1429
|
const e = L.c(17), {
|
|
1428
1430
|
children: o,
|
|
1429
|
-
onClick:
|
|
1430
|
-
"aria-label":
|
|
1431
|
+
onClick: r,
|
|
1432
|
+
"aria-label": d
|
|
1431
1433
|
} = t, {
|
|
1432
1434
|
variant: l
|
|
1433
|
-
} = te(), a = G(
|
|
1435
|
+
} = te(), a = G(re), i = G($e), n = i >= 0 && i % 2 === 1;
|
|
1434
1436
|
let s;
|
|
1435
|
-
if (e[0] !==
|
|
1436
|
-
const
|
|
1437
|
+
if (e[0] !== d || e[1] !== o || e[2] !== n || e[3] !== a || e[4] !== r || e[5] !== l) {
|
|
1438
|
+
const c = Q.toArray(o), p = r !== void 0 && !a;
|
|
1437
1439
|
let u;
|
|
1438
|
-
e[7] !== p || e[8] !==
|
|
1440
|
+
e[7] !== p || e[8] !== r ? (u = p ? (k) => {
|
|
1439
1441
|
const w = k.target;
|
|
1440
|
-
w instanceof Element && w.closest(
|
|
1441
|
-
} : void 0, e[7] = p, e[8] =
|
|
1442
|
+
w instanceof Element && w.closest(or) || r();
|
|
1443
|
+
} : void 0, e[7] = p, e[8] = r, e[9] = u) : u = e[9];
|
|
1442
1444
|
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" &&
|
|
1445
|
+
e[10] !== p || e[11] !== r ? (x = p ? (k) => {
|
|
1446
|
+
(k.key === "Enter" || k.key === " ") && r();
|
|
1447
|
+
} : void 0, e[10] = p, e[11] = r, e[12] = x) : x = e[12];
|
|
1448
|
+
const g = !a && $.bodyRow, h = !a && l === "striped" && n && $.stripedEven, f = p && $.clickableRow;
|
|
1447
1449
|
let y;
|
|
1448
|
-
e[13] !== g || e[14] !== h || e[15] !==
|
|
1450
|
+
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
1451
|
index: w,
|
|
1450
|
-
total:
|
|
1451
|
-
}, children: k }, k.key ?? w)) }), e[0] =
|
|
1452
|
+
total: c.length
|
|
1453
|
+
}, 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
1454
|
} else
|
|
1453
1455
|
s = e[6];
|
|
1454
1456
|
return s;
|
|
1455
1457
|
}
|
|
1456
|
-
const
|
|
1458
|
+
const ne = A({
|
|
1457
1459
|
index: 0,
|
|
1458
1460
|
total: 0
|
|
1459
1461
|
});
|
|
1460
1462
|
function ie(t) {
|
|
1461
1463
|
const e = L.c(8), {
|
|
1462
1464
|
children: o,
|
|
1463
|
-
"aria-label":
|
|
1465
|
+
"aria-label": r
|
|
1464
1466
|
} = t, {
|
|
1465
|
-
size:
|
|
1467
|
+
size: d,
|
|
1466
1468
|
variant: l
|
|
1467
1469
|
} = te(), {
|
|
1468
1470
|
index: a,
|
|
1469
1471
|
total: i
|
|
1470
|
-
} = G(
|
|
1472
|
+
} = G(ne), n = l === "bordered" && a === i - 1, s = d === "sm" ? $.cellSm : $.cellMd, c = l === "bordered" && $.borderedCell, p = n && $.borderedCellLast;
|
|
1471
1473
|
let u;
|
|
1472
|
-
e[0] !== s || e[1] !==
|
|
1474
|
+
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
1475
|
let x;
|
|
1474
|
-
return e[4] !==
|
|
1476
|
+
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
1477
|
}
|
|
1476
1478
|
ie.displayName = "HeaderCell";
|
|
1477
|
-
function
|
|
1479
|
+
function nr(t) {
|
|
1478
1480
|
const e = L.c(16), {
|
|
1479
1481
|
children: o,
|
|
1480
|
-
isActions:
|
|
1482
|
+
isActions: r
|
|
1481
1483
|
} = t, {
|
|
1482
|
-
size:
|
|
1484
|
+
size: d,
|
|
1483
1485
|
variant: l,
|
|
1484
1486
|
labels: a,
|
|
1485
1487
|
responsive: i
|
|
1486
1488
|
} = te(), {
|
|
1487
|
-
index:
|
|
1489
|
+
index: n,
|
|
1488
1490
|
total: s
|
|
1489
|
-
} = G(
|
|
1490
|
-
let
|
|
1491
|
-
e[0] !== u || e[1] !== x || e[2] !== g || e[3] !== h ? (
|
|
1491
|
+
} = 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;
|
|
1492
|
+
let f;
|
|
1493
|
+
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
1494
|
let y;
|
|
1493
|
-
e[5] !==
|
|
1495
|
+
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
1496
|
let k;
|
|
1495
|
-
e[9] !== o || e[10] !==
|
|
1497
|
+
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
1498
|
let w;
|
|
1497
|
-
return e[12] !==
|
|
1499
|
+
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
1500
|
y,
|
|
1499
1501
|
k
|
|
1500
|
-
] }), e[12] =
|
|
1502
|
+
] }), e[12] = f, e[13] = y, e[14] = k, e[15] = w) : w = e[15], w;
|
|
1501
1503
|
}
|
|
1502
|
-
const
|
|
1504
|
+
const ir = {
|
|
1503
1505
|
/** @deprecated Wrap behaviour is built into Table.Root. Drop this wrapper from new code. */
|
|
1504
1506
|
Container: _o,
|
|
1505
1507
|
Root: Qo,
|
|
1506
|
-
Header:
|
|
1507
|
-
Body:
|
|
1508
|
-
Row:
|
|
1508
|
+
Header: er,
|
|
1509
|
+
Body: tr,
|
|
1510
|
+
Row: rr,
|
|
1509
1511
|
HeaderCell: ie,
|
|
1510
|
-
Cell:
|
|
1511
|
-
},
|
|
1512
|
+
Cell: nr
|
|
1513
|
+
}, hr = ir;
|
|
1512
1514
|
export {
|
|
1513
1515
|
xe as B,
|
|
1514
1516
|
Oe as C,
|
|
1515
|
-
|
|
1517
|
+
cr as D,
|
|
1516
1518
|
ie as H,
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
+
ur as I,
|
|
1520
|
+
gr as M,
|
|
1519
1521
|
Oo as P,
|
|
1520
|
-
|
|
1522
|
+
rr as R,
|
|
1521
1523
|
Se as S,
|
|
1522
|
-
|
|
1524
|
+
pr as T,
|
|
1523
1525
|
Be as a,
|
|
1524
|
-
|
|
1526
|
+
xr as b,
|
|
1525
1527
|
Go as c,
|
|
1526
|
-
|
|
1528
|
+
fe as d,
|
|
1527
1529
|
Bo as e,
|
|
1528
1530
|
Re as f,
|
|
1529
1531
|
ze as g,
|
|
@@ -1531,16 +1533,16 @@ export {
|
|
|
1531
1533
|
pe as i,
|
|
1532
1534
|
Po as j,
|
|
1533
1535
|
ue as k,
|
|
1534
|
-
|
|
1536
|
+
hr as l,
|
|
1535
1537
|
$ as m,
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
+
er as n,
|
|
1539
|
+
tr as o,
|
|
1538
1540
|
Qo as p,
|
|
1539
|
-
|
|
1541
|
+
nr as q,
|
|
1540
1542
|
ve as r,
|
|
1541
1543
|
he as s,
|
|
1542
1544
|
_ as t,
|
|
1543
1545
|
He as u,
|
|
1544
|
-
|
|
1546
|
+
ir as v
|
|
1545
1547
|
};
|
|
1546
|
-
//# sourceMappingURL=Table-
|
|
1548
|
+
//# sourceMappingURL=Table-gRiLI243.js.map
|