@duro-app/ui 3.4.2 → 3.6.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-P-UHkEqJ.js → Table-B4F8XyqK.js} +222 -216
- package/dist/{Table-P-UHkEqJ.js.map → Table-B4F8XyqK.js.map} +1 -1
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/InputGroup/InputGroup.stories.d.ts +1 -0
- package/dist/components/InputGroup/InputGroup.stories.d.ts.map +1 -1
- package/dist/components/Tree/Tree.d.ts +35 -0
- package/dist/components/Tree/Tree.d.ts.map +1 -0
- package/dist/components/Tree/Tree.meta.d.ts +3 -0
- package/dist/components/Tree/Tree.meta.d.ts.map +1 -0
- package/dist/components/Tree/Tree.stories.d.ts +9 -0
- package/dist/components/Tree/Tree.stories.d.ts.map +1 -0
- package/dist/components/Tree/TreeContext.d.ts +18 -0
- package/dist/components/Tree/TreeContext.d.ts.map +1 -0
- package/dist/components/Tree/styles.css.d.ts +84 -0
- package/dist/components/Tree/styles.css.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 +2525 -2215
- package/dist/index.js.map +1 -1
- package/dist/table.js +1 -1
- package/package.json +2 -2
- package/src/components/Icon/Icon.tsx +20 -0
- package/src/components/InputGroup/InputGroup.stories.tsx +21 -0
- package/src/components/Tree/Tree.meta.ts +41 -0
- package/src/components/Tree/Tree.stories.tsx +151 -0
- package/src/components/Tree/Tree.tsx +304 -0
- package/src/components/Tree/TreeContext.ts +26 -0
- package/src/components/Tree/styles.css.ts +96 -0
- package/src/index.ts +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as T, jsxs as Y, Fragment as be } from "react/jsx-runtime";
|
|
2
|
-
import xe, { useContext as
|
|
2
|
+
import xe, { useContext as G, createContext as F, useState as te, useId as oe, useRef as O, useEffect as V, Children as J, isValidElement as $e } from "react";
|
|
3
3
|
/**
|
|
4
4
|
* @license react-strict-dom
|
|
5
5
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(ne, "__esModule", {
|
|
|
12
12
|
value: !0
|
|
13
13
|
});
|
|
14
14
|
var ge = ne.styleq = void 0, we = /* @__PURE__ */ new WeakMap(), Te = "$$css";
|
|
15
|
-
function
|
|
15
|
+
function ke(t) {
|
|
16
16
|
var e, i, o;
|
|
17
17
|
return t != null && (e = t.disableCache === !0, i = t.disableMix === !0, o = t.transform), function() {
|
|
18
18
|
for (var d = [], l = "", s = null, n = "", r = e ? null : we, b = new Array(arguments.length), a = 0; a < arguments.length; a++)
|
|
@@ -64,13 +64,13 @@ function fe(t) {
|
|
|
64
64
|
return H;
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
var Ce = ge = ne.styleq =
|
|
68
|
-
Ce.factory =
|
|
69
|
-
const
|
|
67
|
+
var Ce = ge = ne.styleq = ke();
|
|
68
|
+
Ce.factory = ke;
|
|
69
|
+
const Se = ge.factory({
|
|
70
70
|
disableMix: !0
|
|
71
71
|
});
|
|
72
72
|
function R(...t) {
|
|
73
|
-
const [e, i, o] =
|
|
73
|
+
const [e, i, o] = Se(t), c = {};
|
|
74
74
|
if (e != null && e !== "" && (c.className = e), i != null && (c.style = i), o != null && o !== "") {
|
|
75
75
|
const d = o.split(";"), l = {};
|
|
76
76
|
for (const s of d) {
|
|
@@ -81,7 +81,7 @@ function R(...t) {
|
|
|
81
81
|
}
|
|
82
82
|
return c;
|
|
83
83
|
}
|
|
84
|
-
const
|
|
84
|
+
const S = {
|
|
85
85
|
block: {
|
|
86
86
|
"margin-kogj98": "margin-x1ghz6dp",
|
|
87
87
|
"padding-kmVPX3": "padding-x1717udv",
|
|
@@ -115,14 +115,18 @@ const W = {
|
|
|
115
115
|
"borderStyle-ksu8eU": "borderStyle-x1y0btm7",
|
|
116
116
|
$$css: ".pnpm:web/runtime.js:202"
|
|
117
117
|
},
|
|
118
|
+
list: {
|
|
119
|
+
"listStyle-kB88ic": "listStyle-xe8uvvx",
|
|
120
|
+
$$css: ".pnpm:web/runtime.js:206"
|
|
121
|
+
},
|
|
118
122
|
textarea: {
|
|
119
123
|
"borderWidth-kMzoRj": "borderWidth-xmkeg23",
|
|
120
124
|
"borderStyle-ksu8eU": "borderStyle-x1y0btm7",
|
|
121
125
|
"resize-kHenm0": "resize-x288g5",
|
|
122
126
|
$$css: ".pnpm:web/runtime.js:212"
|
|
123
127
|
}
|
|
124
|
-
},
|
|
125
|
-
a:
|
|
128
|
+
}, Re = S.inline, We = [S.inlineblock, S.button], Me = S.block, je = S.block, _ = [S.block, S.heading], ze = S.block, Ie = [S.inlineblock, S.input], qe = S.inline, Ee = S.block, Oe = S.block, De = S.block, Pe = S.block, Ae = S.inline, Le = [S.inlineblock, S.textarea], He = [S.list, S.block], W = {
|
|
129
|
+
a: Re,
|
|
126
130
|
button: We,
|
|
127
131
|
div: Me,
|
|
128
132
|
form: je,
|
|
@@ -135,11 +139,13 @@ const W = {
|
|
|
135
139
|
header: ze,
|
|
136
140
|
input: Ie,
|
|
137
141
|
label: qe,
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
142
|
+
li: Ee,
|
|
143
|
+
main: Oe,
|
|
144
|
+
nav: De,
|
|
145
|
+
p: Pe,
|
|
146
|
+
span: Ae,
|
|
147
|
+
textarea: Le,
|
|
148
|
+
ul: He
|
|
143
149
|
};
|
|
144
150
|
var U = { exports: {} }, Z = {};
|
|
145
151
|
/**
|
|
@@ -152,7 +158,7 @@ var U = { exports: {} }, Z = {};
|
|
|
152
158
|
* LICENSE file in the root directory of this source tree.
|
|
153
159
|
*/
|
|
154
160
|
var ae;
|
|
155
|
-
function
|
|
161
|
+
function _e() {
|
|
156
162
|
if (ae) return Z;
|
|
157
163
|
ae = 1;
|
|
158
164
|
var t = xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
@@ -171,7 +177,7 @@ var ee = {};
|
|
|
171
177
|
* LICENSE file in the root directory of this source tree.
|
|
172
178
|
*/
|
|
173
179
|
var ce;
|
|
174
|
-
function
|
|
180
|
+
function Be() {
|
|
175
181
|
return ce || (ce = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
176
182
|
var t = xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
177
183
|
ee.c = function(e) {
|
|
@@ -185,10 +191,10 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
185
191
|
})()), ee;
|
|
186
192
|
}
|
|
187
193
|
var de;
|
|
188
|
-
function
|
|
189
|
-
return de || (de = 1, process.env.NODE_ENV === "production" ? U.exports =
|
|
194
|
+
function Ge() {
|
|
195
|
+
return de || (de = 1, process.env.NODE_ENV === "production" ? U.exports = _e() : U.exports = Be()), U.exports;
|
|
190
196
|
}
|
|
191
|
-
var I =
|
|
197
|
+
var I = Ge();
|
|
192
198
|
const D = {
|
|
193
199
|
root: {
|
|
194
200
|
"position-kVAEAm": "position-x1n2onr6",
|
|
@@ -273,14 +279,14 @@ const D = {
|
|
|
273
279
|
"color-kMwMTN": "color-x95150z color-xtolcfe",
|
|
274
280
|
$$css: "Menu/styles.css.ts:83"
|
|
275
281
|
}
|
|
276
|
-
},
|
|
282
|
+
}, me = F(null);
|
|
277
283
|
function X() {
|
|
278
|
-
const t =
|
|
284
|
+
const t = G(me);
|
|
279
285
|
if (!t)
|
|
280
286
|
throw new Error("Menu compound components must be used within Menu.Root");
|
|
281
287
|
return t;
|
|
282
288
|
}
|
|
283
|
-
function
|
|
289
|
+
function Ve() {
|
|
284
290
|
const t = I.c(15), [e, i] = te(!1), [o, c] = te(null), d = oe(), l = O(null), s = O(null);
|
|
285
291
|
let n;
|
|
286
292
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ new Map(), t[0] = n) : n = t[0];
|
|
@@ -378,19 +384,19 @@ function Ge() {
|
|
|
378
384
|
rootRef: l
|
|
379
385
|
}, t[11] = o, t[12] = d, t[13] = e, t[14] = z) : z = t[14], z;
|
|
380
386
|
}
|
|
381
|
-
function
|
|
387
|
+
function Fe(t) {
|
|
382
388
|
const e = I.c(6), {
|
|
383
389
|
children: i
|
|
384
390
|
} = t, {
|
|
385
391
|
ctx: o,
|
|
386
392
|
rootRef: c
|
|
387
|
-
} =
|
|
393
|
+
} = Ve();
|
|
388
394
|
let d;
|
|
389
|
-
e[0] !== i || e[1] !== c ? (d = /* @__PURE__ */ T("div", { "data-element-src": "Menu/Menu.tsx:17", ref: c, ...R(
|
|
395
|
+
e[0] !== i || e[1] !== c ? (d = /* @__PURE__ */ T("div", { "data-element-src": "Menu/Menu.tsx:17", ref: c, ...R(W.div, D.root), children: i }), e[0] = i, e[1] = c, e[2] = d) : d = e[2];
|
|
390
396
|
let l;
|
|
391
|
-
return e[3] !== o || e[4] !== d ? (l = /* @__PURE__ */ T(
|
|
397
|
+
return e[3] !== o || e[4] !== d ? (l = /* @__PURE__ */ T(me.Provider, { value: o, children: d }), e[3] = o, e[4] = d, e[5] = l) : l = e[5], l;
|
|
392
398
|
}
|
|
393
|
-
function
|
|
399
|
+
function Ne(t) {
|
|
394
400
|
const e = I.c(7), {
|
|
395
401
|
children: i
|
|
396
402
|
} = t, {
|
|
@@ -405,9 +411,9 @@ function Ve(t) {
|
|
|
405
411
|
}, e[0] = l, e[1] = n) : n = e[1], V(n);
|
|
406
412
|
const r = o ? d : void 0;
|
|
407
413
|
let b;
|
|
408
|
-
return e[2] !== i || e[3] !== o || e[4] !== r || e[5] !== c ? (b = /* @__PURE__ */ T("button", { "data-element-src": "Menu/Menu.tsx:35", ref: s, type: "button", onClick: c, "aria-expanded": o, "aria-haspopup": "menu", "aria-controls": r, ...R(
|
|
414
|
+
return e[2] !== i || e[3] !== o || e[4] !== r || e[5] !== c ? (b = /* @__PURE__ */ T("button", { "data-element-src": "Menu/Menu.tsx:35", ref: s, type: "button", onClick: c, "aria-expanded": o, "aria-haspopup": "menu", "aria-controls": r, ...R(W.button, D.trigger), children: i }), e[2] = i, e[3] = o, e[4] = r, e[5] = c, e[6] = b) : b = e[6], b;
|
|
409
415
|
}
|
|
410
|
-
function
|
|
416
|
+
function Ue(t) {
|
|
411
417
|
const e = I.c(12), {
|
|
412
418
|
children: i,
|
|
413
419
|
align: o
|
|
@@ -420,19 +426,19 @@ function Fe(t) {
|
|
|
420
426
|
if (!d)
|
|
421
427
|
return null;
|
|
422
428
|
let r;
|
|
423
|
-
e[0] !== l ? (r = /* @__PURE__ */ T("div", { "data-element-src": "Menu/Menu.tsx:62", ...R(
|
|
429
|
+
e[0] !== l ? (r = /* @__PURE__ */ T("div", { "data-element-src": "Menu/Menu.tsx:62", ...R(W.div, D.backdrop), onClick: l }), e[0] = l, e[1] = r) : r = e[1];
|
|
424
430
|
const b = n ?? void 0, a = c === "end" && D.popupEnd;
|
|
425
431
|
let u;
|
|
426
432
|
e[2] !== a ? (u = [D.popup, a], e[2] = a, e[3] = u) : u = e[3];
|
|
427
433
|
let p;
|
|
428
|
-
e[4] !== i || e[5] !== s || e[6] !== b || e[7] !== u ? (p = /* @__PURE__ */ T("div", { "data-element-src": "Menu/Menu.tsx:63", id: s, role: "menu", "aria-activedescendant": b, ...R(
|
|
434
|
+
e[4] !== i || e[5] !== s || e[6] !== b || e[7] !== u ? (p = /* @__PURE__ */ T("div", { "data-element-src": "Menu/Menu.tsx:63", id: s, role: "menu", "aria-activedescendant": b, ...R(W.div, u), children: i }), e[4] = i, e[5] = s, e[6] = b, e[7] = u, e[8] = p) : p = e[8];
|
|
429
435
|
let x;
|
|
430
436
|
return e[9] !== r || e[10] !== p ? (x = /* @__PURE__ */ Y(be, { children: [
|
|
431
437
|
r,
|
|
432
438
|
p
|
|
433
439
|
] }), e[9] = r, e[10] = p, e[11] = x) : x = e[11], x;
|
|
434
440
|
}
|
|
435
|
-
function
|
|
441
|
+
function Ye(t) {
|
|
436
442
|
const e = I.c(18), {
|
|
437
443
|
onClick: i,
|
|
438
444
|
children: o
|
|
@@ -459,9 +465,9 @@ function Ne(t) {
|
|
|
459
465
|
let y;
|
|
460
466
|
e[10] !== v ? (y = [D.item, v], e[10] = v, e[11] = y) : y = e[11];
|
|
461
467
|
let h;
|
|
462
|
-
return e[12] !== o || e[13] !== x || e[14] !== n || e[15] !== g || e[16] !== y ? (h = /* @__PURE__ */ T("div", { "data-element-src": "Menu/Menu.tsx:99", ref: r, id: n, role: "menuitem", onClick: x, onPointerEnter: g, ...R(
|
|
468
|
+
return e[12] !== o || e[13] !== x || e[14] !== n || e[15] !== g || e[16] !== y ? (h = /* @__PURE__ */ T("div", { "data-element-src": "Menu/Menu.tsx:99", ref: r, id: n, role: "menuitem", onClick: x, onPointerEnter: g, ...R(W.div, y), children: o }), e[12] = o, e[13] = x, e[14] = n, e[15] = g, e[16] = y, e[17] = h) : h = e[17], h;
|
|
463
469
|
}
|
|
464
|
-
function
|
|
470
|
+
function Je(t) {
|
|
465
471
|
const e = I.c(16), {
|
|
466
472
|
href: i,
|
|
467
473
|
children: o
|
|
@@ -483,14 +489,14 @@ function Ue(t) {
|
|
|
483
489
|
let g;
|
|
484
490
|
e[7] !== x ? (g = [D.item, D.linkItem, x], e[7] = x, e[8] = g) : g = e[8];
|
|
485
491
|
let v;
|
|
486
|
-
return e[9] !== o || e[10] !== c || e[11] !== i || e[12] !== n || e[13] !== p || e[14] !== g ? (v = /* @__PURE__ */ T("a", { "data-element-src": "Menu/Menu.tsx:131", ref: r, id: n, href: i, onClick: c, role: "menuitem", onPointerEnter: p, ...R(
|
|
492
|
+
return e[9] !== o || e[10] !== c || e[11] !== i || e[12] !== n || e[13] !== p || e[14] !== g ? (v = /* @__PURE__ */ T("a", { "data-element-src": "Menu/Menu.tsx:131", ref: r, id: n, href: i, onClick: c, role: "menuitem", onPointerEnter: p, ...R(W.a, g), children: o }), e[9] = o, e[10] = c, e[11] = i, e[12] = n, e[13] = p, e[14] = g, e[15] = v) : v = e[15], v;
|
|
487
493
|
}
|
|
488
|
-
const
|
|
489
|
-
Root:
|
|
490
|
-
Trigger:
|
|
491
|
-
Popup:
|
|
492
|
-
Item:
|
|
493
|
-
LinkItem:
|
|
494
|
+
const an = {
|
|
495
|
+
Root: Fe,
|
|
496
|
+
Trigger: Ne,
|
|
497
|
+
Popup: Ue,
|
|
498
|
+
Item: Ye,
|
|
499
|
+
LinkItem: Je
|
|
494
500
|
};
|
|
495
501
|
/**
|
|
496
502
|
* @license react-strict-dom
|
|
@@ -500,22 +506,22 @@ const sn = {
|
|
|
500
506
|
* LICENSE file in the root directory of this source tree.
|
|
501
507
|
*/
|
|
502
508
|
const ue = {};
|
|
503
|
-
function
|
|
509
|
+
function Xe(t) {
|
|
504
510
|
process.env.NODE_ENV !== "test" && ue[t] || (ue[t] = !0, console.error(`[error] React Strict DOM: ${t}`));
|
|
505
511
|
}
|
|
506
|
-
const
|
|
507
|
-
function
|
|
508
|
-
return
|
|
512
|
+
const Ke = /* @__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"]);
|
|
513
|
+
function Qe(t) {
|
|
514
|
+
return Ke.has(t) || t.indexOf("data-") > -1;
|
|
509
515
|
}
|
|
510
516
|
var re = {};
|
|
511
517
|
Object.defineProperty(re, "__esModule", {
|
|
512
518
|
value: !0
|
|
513
519
|
});
|
|
514
|
-
var
|
|
520
|
+
var fe = re.styleq = void 0, Ze = /* @__PURE__ */ new WeakMap(), et = "$$css";
|
|
515
521
|
function he(t) {
|
|
516
522
|
var e, i, o;
|
|
517
523
|
return t != null && (e = t.disableCache === !0, i = t.disableMix === !0, o = t.transform), function() {
|
|
518
|
-
for (var d = [], l = "", s = null, n = "", r = e ? null :
|
|
524
|
+
for (var d = [], l = "", s = null, n = "", r = e ? null : Ze, b = new Array(arguments.length), a = 0; a < arguments.length; a++)
|
|
519
525
|
b[a] = arguments[a];
|
|
520
526
|
for (; b.length > 0; ) {
|
|
521
527
|
var u = b.pop();
|
|
@@ -535,7 +541,7 @@ function he(t) {
|
|
|
535
541
|
var y = [];
|
|
536
542
|
for (var h in x) {
|
|
537
543
|
var w = x[h];
|
|
538
|
-
if (h ===
|
|
544
|
+
if (h === et) {
|
|
539
545
|
var P = x[h];
|
|
540
546
|
P !== !0 && (n = n ? P + "; " + n : P);
|
|
541
547
|
continue;
|
|
@@ -564,13 +570,13 @@ function he(t) {
|
|
|
564
570
|
return H;
|
|
565
571
|
};
|
|
566
572
|
}
|
|
567
|
-
var
|
|
568
|
-
|
|
569
|
-
const
|
|
573
|
+
var tt = fe = re.styleq = he();
|
|
574
|
+
tt.factory = he;
|
|
575
|
+
const ot = fe.factory({
|
|
570
576
|
disableMix: !0
|
|
571
577
|
});
|
|
572
|
-
function
|
|
573
|
-
const [e, i, o] =
|
|
578
|
+
function nt(...t) {
|
|
579
|
+
const [e, i, o] = ot(t), c = {};
|
|
574
580
|
if (e != null && e !== "" && (c.className = e), i != null && (c.style = i), o != null && o !== "") {
|
|
575
581
|
const d = o.split(";"), l = {};
|
|
576
582
|
for (const s of d) {
|
|
@@ -581,12 +587,12 @@ function tt(...t) {
|
|
|
581
587
|
}
|
|
582
588
|
return c;
|
|
583
589
|
}
|
|
584
|
-
function
|
|
590
|
+
function rt(t) {
|
|
585
591
|
Object.keys(t).forEach((e) => {
|
|
586
|
-
|
|
592
|
+
Qe(e) || (Xe(`invalid prop "${e}"`), delete t[e]);
|
|
587
593
|
});
|
|
588
594
|
}
|
|
589
|
-
function
|
|
595
|
+
function k(t, e) {
|
|
590
596
|
const i = {
|
|
591
597
|
$$css: !0,
|
|
592
598
|
"debug::name": `html-${t}`
|
|
@@ -600,8 +606,8 @@ function f(t, e) {
|
|
|
600
606
|
style: s,
|
|
601
607
|
...n
|
|
602
608
|
} = d, r = n;
|
|
603
|
-
|
|
604
|
-
const b =
|
|
609
|
+
rt(r), l != null && (r.htmlFor = l), d.role != null && (r.role = d.role === "none" ? "presentation" : d.role), t === "button" ? r.type = r.type ? r.type : "button" : (t === "input" || t === "textarea") && (r.dir = r.dir ? r.dir : "auto");
|
|
610
|
+
const b = nt([i, e, s]);
|
|
605
611
|
return T(t, {
|
|
606
612
|
...r,
|
|
607
613
|
...b,
|
|
@@ -610,7 +616,7 @@ function f(t, e) {
|
|
|
610
616
|
}
|
|
611
617
|
return o.displayName = `html.${t}`, o;
|
|
612
618
|
}
|
|
613
|
-
const
|
|
619
|
+
const f = {
|
|
614
620
|
block: {
|
|
615
621
|
"margin-kogj98": "margin-x1ghz6dp",
|
|
616
622
|
"padding-kmVPX3": "padding-x1717udv",
|
|
@@ -678,110 +684,110 @@ const m = {
|
|
|
678
684
|
"resize-kHenm0": "resize-x288g5",
|
|
679
685
|
$$css: ".pnpm:web/index.js:276"
|
|
680
686
|
}
|
|
681
|
-
},
|
|
682
|
-
a:
|
|
683
|
-
article:
|
|
684
|
-
aside:
|
|
685
|
-
b:
|
|
686
|
-
bdi:
|
|
687
|
-
bdo:
|
|
688
|
-
blockquote:
|
|
689
|
-
br:
|
|
690
|
-
button:
|
|
691
|
-
code:
|
|
692
|
-
del:
|
|
693
|
-
div:
|
|
694
|
-
em:
|
|
687
|
+
}, it = f.inline, st = f.block, lt = f.block, at = f.inline, ct = f.inline, dt = f.inline, ut = f.block, pt = null, bt = [f.inlineblock, f.button], xt = [f.inline, f.codePre], gt = null, kt = f.block, mt = f.inline, ft = f.block, ht = f.block, vt = f.block, B = [f.block, f.heading], yt = f.block, $t = [f.block, f.hr], wt = f.inline, Tt = f.img, Ct = [f.inlineblock, f.input], St = null, Rt = null, Wt = f.inline, Mt = f.block, jt = f.block, zt = f.inline, It = f.block, qt = [f.list, f.block], Et = null, Ot = null, Dt = f.block, Pt = [f.block, f.codePre], At = null, Lt = f.block, Ht = f.inlineblock, _t = f.inline, Bt = [f.inline, f.strong], Gt = f.inline, Vt = f.inline, Ft = [f.inlineblock, f.textarea], Nt = null, Ut = [f.list, f.block], m = {
|
|
688
|
+
a: it,
|
|
689
|
+
article: st,
|
|
690
|
+
aside: lt,
|
|
691
|
+
b: at,
|
|
692
|
+
bdi: ct,
|
|
693
|
+
bdo: dt,
|
|
694
|
+
blockquote: ut,
|
|
695
|
+
br: pt,
|
|
696
|
+
button: bt,
|
|
697
|
+
code: xt,
|
|
698
|
+
del: gt,
|
|
699
|
+
div: kt,
|
|
700
|
+
em: mt,
|
|
695
701
|
fieldset: ft,
|
|
696
|
-
footer:
|
|
697
|
-
form:
|
|
698
|
-
h1:
|
|
699
|
-
h2:
|
|
700
|
-
h3:
|
|
701
|
-
h4:
|
|
702
|
-
h5:
|
|
703
|
-
h6:
|
|
704
|
-
header:
|
|
705
|
-
hr:
|
|
706
|
-
i:
|
|
707
|
-
img:
|
|
708
|
-
input:
|
|
709
|
-
ins:
|
|
710
|
-
kbd:
|
|
711
|
-
label:
|
|
712
|
-
li:
|
|
713
|
-
main:
|
|
714
|
-
mark:
|
|
715
|
-
nav:
|
|
716
|
-
ol:
|
|
717
|
-
optgroup:
|
|
718
|
-
option:
|
|
719
|
-
p:
|
|
720
|
-
pre:
|
|
721
|
-
s:
|
|
722
|
-
section:
|
|
723
|
-
select:
|
|
724
|
-
span:
|
|
725
|
-
strong:
|
|
726
|
-
sub:
|
|
727
|
-
sup:
|
|
728
|
-
textarea:
|
|
729
|
-
u:
|
|
730
|
-
ul:
|
|
731
|
-
},
|
|
732
|
-
var
|
|
702
|
+
footer: ht,
|
|
703
|
+
form: vt,
|
|
704
|
+
h1: B,
|
|
705
|
+
h2: B,
|
|
706
|
+
h3: B,
|
|
707
|
+
h4: B,
|
|
708
|
+
h5: B,
|
|
709
|
+
h6: B,
|
|
710
|
+
header: yt,
|
|
711
|
+
hr: $t,
|
|
712
|
+
i: wt,
|
|
713
|
+
img: Tt,
|
|
714
|
+
input: Ct,
|
|
715
|
+
ins: St,
|
|
716
|
+
kbd: Rt,
|
|
717
|
+
label: Wt,
|
|
718
|
+
li: Mt,
|
|
719
|
+
main: jt,
|
|
720
|
+
mark: zt,
|
|
721
|
+
nav: It,
|
|
722
|
+
ol: qt,
|
|
723
|
+
optgroup: Et,
|
|
724
|
+
option: Ot,
|
|
725
|
+
p: Dt,
|
|
726
|
+
pre: Pt,
|
|
727
|
+
s: At,
|
|
728
|
+
section: Lt,
|
|
729
|
+
select: Ht,
|
|
730
|
+
span: _t,
|
|
731
|
+
strong: Bt,
|
|
732
|
+
sub: Gt,
|
|
733
|
+
sup: Vt,
|
|
734
|
+
textarea: Ft,
|
|
735
|
+
u: Nt,
|
|
736
|
+
ul: Ut
|
|
737
|
+
}, Yt = k("a", m.a), Jt = k("article", m.article), Xt = k("aside", m.aside), Kt = k("b", m.b), Qt = k("bdi", m.bdi), Zt = k("bdo", m.bdo), eo = k("blockquote", m.blockquote), to = k("br", m.br), oo = k("button", m.button), no = k("code", m.code), ro = k("del", m.del), io = k("div", m.div), so = k("em", m.em), lo = k("fieldset", m.fieldset), ao = k("footer", m.footer), co = k("form", m.form), uo = k("h1", m.h1), po = k("h2", m.h2), bo = k("h3", m.h3), xo = k("h4", m.h4), go = k("h5", m.h5), ko = k("h6", m.h6), mo = k("header", m.header), fo = k("hr", m.hr), ho = k("i", m.i), vo = k("img", m.img), yo = k("input", m.input), $o = k("ins", m.ins), wo = k("kbd", m.kbd), To = k("label", m.label), Co = k("li", m.li), So = k("main", m.main), Ro = k("mark", m.mark), Wo = k("nav", m.nav), Mo = k("ol", m.ol), jo = k("optgroup", m.optgroup), zo = k("option", m.option), Io = k("p", m.p), qo = k("pre", m.pre), Eo = k("s", m.s), Oo = k("section", m.section), Do = k("select", m.select), Po = k("span", m.span), Ao = k("strong", m.strong), Lo = k("sub", m.sub), Ho = k("sup", m.sup), _o = k("textarea", m.textarea), Bo = k("u", m.u), Go = k("ul", m.ul);
|
|
738
|
+
var Vo = /* @__PURE__ */ Object.freeze({
|
|
733
739
|
__proto__: null,
|
|
734
|
-
a:
|
|
735
|
-
article:
|
|
736
|
-
aside:
|
|
737
|
-
b:
|
|
738
|
-
bdi:
|
|
739
|
-
bdo:
|
|
740
|
-
blockquote:
|
|
741
|
-
br:
|
|
742
|
-
button:
|
|
743
|
-
code:
|
|
744
|
-
del:
|
|
745
|
-
div:
|
|
746
|
-
em:
|
|
747
|
-
fieldset:
|
|
748
|
-
footer:
|
|
749
|
-
form:
|
|
750
|
-
h1:
|
|
751
|
-
h2:
|
|
752
|
-
h3:
|
|
753
|
-
h4:
|
|
754
|
-
h5:
|
|
755
|
-
h6:
|
|
756
|
-
header:
|
|
740
|
+
a: Yt,
|
|
741
|
+
article: Jt,
|
|
742
|
+
aside: Xt,
|
|
743
|
+
b: Kt,
|
|
744
|
+
bdi: Qt,
|
|
745
|
+
bdo: Zt,
|
|
746
|
+
blockquote: eo,
|
|
747
|
+
br: to,
|
|
748
|
+
button: oo,
|
|
749
|
+
code: no,
|
|
750
|
+
del: ro,
|
|
751
|
+
div: io,
|
|
752
|
+
em: so,
|
|
753
|
+
fieldset: lo,
|
|
754
|
+
footer: ao,
|
|
755
|
+
form: co,
|
|
756
|
+
h1: uo,
|
|
757
|
+
h2: po,
|
|
758
|
+
h3: bo,
|
|
759
|
+
h4: xo,
|
|
760
|
+
h5: go,
|
|
761
|
+
h6: ko,
|
|
762
|
+
header: mo,
|
|
757
763
|
hr: fo,
|
|
758
|
-
i:
|
|
759
|
-
img:
|
|
760
|
-
input:
|
|
761
|
-
ins:
|
|
762
|
-
kbd:
|
|
763
|
-
label:
|
|
764
|
-
li:
|
|
765
|
-
main:
|
|
766
|
-
mark:
|
|
767
|
-
nav:
|
|
768
|
-
ol:
|
|
769
|
-
optgroup:
|
|
770
|
-
option:
|
|
771
|
-
p:
|
|
772
|
-
pre:
|
|
773
|
-
s:
|
|
774
|
-
section:
|
|
775
|
-
select:
|
|
776
|
-
span:
|
|
777
|
-
strong:
|
|
778
|
-
sub:
|
|
779
|
-
sup:
|
|
780
|
-
textarea:
|
|
781
|
-
u:
|
|
782
|
-
ul:
|
|
764
|
+
i: ho,
|
|
765
|
+
img: vo,
|
|
766
|
+
input: yo,
|
|
767
|
+
ins: $o,
|
|
768
|
+
kbd: wo,
|
|
769
|
+
label: To,
|
|
770
|
+
li: Co,
|
|
771
|
+
main: So,
|
|
772
|
+
mark: Ro,
|
|
773
|
+
nav: Wo,
|
|
774
|
+
ol: Mo,
|
|
775
|
+
optgroup: jo,
|
|
776
|
+
option: zo,
|
|
777
|
+
p: Io,
|
|
778
|
+
pre: qo,
|
|
779
|
+
s: Eo,
|
|
780
|
+
section: Oo,
|
|
781
|
+
select: Do,
|
|
782
|
+
span: Po,
|
|
783
|
+
strong: Ao,
|
|
784
|
+
sub: Lo,
|
|
785
|
+
sup: Ho,
|
|
786
|
+
textarea: _o,
|
|
787
|
+
u: Bo,
|
|
788
|
+
ul: Go
|
|
783
789
|
});
|
|
784
|
-
const
|
|
790
|
+
const cn = {
|
|
785
791
|
xs: 480,
|
|
786
792
|
sm: 640,
|
|
787
793
|
md: 768,
|
|
@@ -998,29 +1004,29 @@ const ln = {
|
|
|
998
1004
|
}]
|
|
999
1005
|
}, ve = F(null);
|
|
1000
1006
|
function K() {
|
|
1001
|
-
const t =
|
|
1007
|
+
const t = G(ve);
|
|
1002
1008
|
if (!t)
|
|
1003
1009
|
throw new Error("Table compound components must be used within Table.Root");
|
|
1004
1010
|
return t;
|
|
1005
1011
|
}
|
|
1006
|
-
const ie = F(!1),
|
|
1007
|
-
function
|
|
1008
|
-
|
|
1012
|
+
const ie = F(!1), Fo = typeof process < "u" && process.env?.NODE_ENV === "production", pe = /* @__PURE__ */ new Set();
|
|
1013
|
+
function No(t, e) {
|
|
1014
|
+
Fo || pe.has(t) || (pe.add(t), console.warn(`[duro-app/ui Table] ${e}`));
|
|
1009
1015
|
}
|
|
1010
|
-
function
|
|
1016
|
+
function Uo(t) {
|
|
1011
1017
|
const e = I.c(2), {
|
|
1012
1018
|
children: i
|
|
1013
1019
|
} = t;
|
|
1014
1020
|
let o;
|
|
1015
|
-
return e[0] !== i ? (o = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:66", ...R(
|
|
1021
|
+
return e[0] !== i ? (o = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:66", ...R(W.div, $.container), children: i }), e[0] = i, e[1] = o) : o = e[1], o;
|
|
1016
1022
|
}
|
|
1017
|
-
function
|
|
1023
|
+
function Yo(t) {
|
|
1018
1024
|
let e = "";
|
|
1019
1025
|
return J.forEach(t, (i) => {
|
|
1020
1026
|
(typeof i == "string" || typeof i == "number") && (e += String(i));
|
|
1021
1027
|
}), e;
|
|
1022
1028
|
}
|
|
1023
|
-
function
|
|
1029
|
+
function Jo(t) {
|
|
1024
1030
|
let e = t;
|
|
1025
1031
|
for (let i = 0; i < 8 && e && typeof e == "object"; i++) {
|
|
1026
1032
|
const o = e.type ?? e.render;
|
|
@@ -1029,17 +1035,17 @@ function Uo(t) {
|
|
|
1029
1035
|
}
|
|
1030
1036
|
return e;
|
|
1031
1037
|
}
|
|
1032
|
-
function
|
|
1038
|
+
function Xo(t, e) {
|
|
1033
1039
|
const i = [], o = [], c = [];
|
|
1034
1040
|
function d(l) {
|
|
1035
1041
|
J.forEach(l, (s) => {
|
|
1036
1042
|
if (!$e(s)) return;
|
|
1037
|
-
const n = s.props, r =
|
|
1043
|
+
const n = s.props, r = Jo(s.type), b = r?.displayName || r?.name || "";
|
|
1038
1044
|
if (r === le || b === "HeaderCell") {
|
|
1039
1045
|
const a = n.width || `minmax(${e}px, 1fr)`;
|
|
1040
1046
|
i.push(a), o.push(n.compactWidth || a);
|
|
1041
|
-
const u = typeof n.label == "string" ? n.label : void 0, p =
|
|
1042
|
-
!u && p === "" && n.children != null &&
|
|
1047
|
+
const u = typeof n.label == "string" ? n.label : void 0, p = Yo(n.children).trim(), x = u ?? p;
|
|
1048
|
+
!u && p === "" && n.children != null && No("headerCell-missing-label", "Table.HeaderCell with JSX children must set `label` for stack-mode rendering."), c.push(x);
|
|
1043
1049
|
} else n.children && d(n.children);
|
|
1044
1050
|
});
|
|
1045
1051
|
}
|
|
@@ -1049,7 +1055,7 @@ function Yo(t, e) {
|
|
|
1049
1055
|
labels: c
|
|
1050
1056
|
};
|
|
1051
1057
|
}
|
|
1052
|
-
function
|
|
1058
|
+
function Ko(t) {
|
|
1053
1059
|
const e = I.c(13), {
|
|
1054
1060
|
children: i
|
|
1055
1061
|
} = t, o = O(null);
|
|
@@ -1080,21 +1086,21 @@ function Jo(t) {
|
|
|
1080
1086
|
};
|
|
1081
1087
|
}, n = [], e[1] = s, e[2] = n) : (s = e[1], n = e[2]), V(s, n);
|
|
1082
1088
|
let r;
|
|
1083
|
-
e[3] !== i ? (r = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:204", ref: o, ...R(
|
|
1089
|
+
e[3] !== i ? (r = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:204", ref: o, ...R(W.div, $.scrollX), children: i }), e[3] = i, e[4] = r) : r = e[4];
|
|
1084
1090
|
const b = d.start && $.edgeFadeVisible;
|
|
1085
1091
|
let a;
|
|
1086
|
-
e[5] !== b ? (a = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:207", "aria-hidden": !0, ...R(
|
|
1092
|
+
e[5] !== b ? (a = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:207", "aria-hidden": !0, ...R(W.div, $.edgeFade, $.edgeFadeLeft, b) }), e[5] = b, e[6] = a) : a = e[6];
|
|
1087
1093
|
const u = d.end && $.edgeFadeVisible;
|
|
1088
1094
|
let p;
|
|
1089
|
-
e[7] !== u ? (p = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:211", "aria-hidden": !0, ...R(
|
|
1095
|
+
e[7] !== u ? (p = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:211", "aria-hidden": !0, ...R(W.div, $.edgeFade, $.edgeFadeRight, u) }), e[7] = u, e[8] = p) : p = e[8];
|
|
1090
1096
|
let x;
|
|
1091
|
-
return e[9] !== r || e[10] !== a || e[11] !== p ? (x = /* @__PURE__ */ Y("div", { "data-element-src": "Table/Table.tsx:203", ...R(
|
|
1097
|
+
return e[9] !== r || e[10] !== a || e[11] !== p ? (x = /* @__PURE__ */ Y("div", { "data-element-src": "Table/Table.tsx:203", ...R(W.div, $.scrollFrame), children: [
|
|
1092
1098
|
r,
|
|
1093
1099
|
a,
|
|
1094
1100
|
p
|
|
1095
1101
|
] }), e[9] = r, e[10] = a, e[11] = p, e[12] = x) : x = e[12], x;
|
|
1096
1102
|
}
|
|
1097
|
-
function
|
|
1103
|
+
function Qo({
|
|
1098
1104
|
children: t,
|
|
1099
1105
|
variant: e = "default",
|
|
1100
1106
|
size: i = "md",
|
|
@@ -1107,10 +1113,10 @@ function Xo({
|
|
|
1107
1113
|
template: n,
|
|
1108
1114
|
compactTemplate: r,
|
|
1109
1115
|
labels: b
|
|
1110
|
-
} =
|
|
1116
|
+
} = Xo(t, c);
|
|
1111
1117
|
n && (s.current = n);
|
|
1112
1118
|
const a = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:264", role: "table", ...R(
|
|
1113
|
-
|
|
1119
|
+
W.div,
|
|
1114
1120
|
$.root,
|
|
1115
1121
|
// When responsive, use gridColumnsResponsive so the explicit column
|
|
1116
1122
|
// template and the stack-mode @container override live in one StyleX
|
|
@@ -1122,7 +1128,7 @@ function Xo({
|
|
|
1122
1128
|
o && $.rootResponsive
|
|
1123
1129
|
), children: t }), p = /* @__PURE__ */ Y(be, { children: [
|
|
1124
1130
|
d,
|
|
1125
|
-
o ? /* @__PURE__ */ T(
|
|
1131
|
+
o ? /* @__PURE__ */ T(Ko, { children: a }) : a,
|
|
1126
1132
|
l
|
|
1127
1133
|
] });
|
|
1128
1134
|
return /* @__PURE__ */ T(ve.Provider, { value: {
|
|
@@ -1131,16 +1137,16 @@ function Xo({
|
|
|
1131
1137
|
responsive: o,
|
|
1132
1138
|
labels: b,
|
|
1133
1139
|
inferredTemplateRef: s
|
|
1134
|
-
}, children: o ? /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:306", ...R(
|
|
1140
|
+
}, children: o ? /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:306", ...R(W.div, $.rootContainer), children: p }) : p });
|
|
1135
1141
|
}
|
|
1136
|
-
function
|
|
1142
|
+
function Zo(t) {
|
|
1137
1143
|
const e = I.c(2), {
|
|
1138
1144
|
children: i
|
|
1139
1145
|
} = t;
|
|
1140
1146
|
let o;
|
|
1141
|
-
return e[0] !== i ? (o = /* @__PURE__ */ T(ie.Provider, { value: !0, children: /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:316", role: "rowgroup", ...R(
|
|
1147
|
+
return e[0] !== i ? (o = /* @__PURE__ */ T(ie.Provider, { value: !0, children: /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:316", role: "rowgroup", ...R(W.div, $.header), children: i }) }), e[0] = i, e[1] = o) : o = e[1], o;
|
|
1142
1148
|
}
|
|
1143
|
-
function
|
|
1149
|
+
function en(t) {
|
|
1144
1150
|
const e = I.c(19), {
|
|
1145
1151
|
children: i
|
|
1146
1152
|
} = t, {
|
|
@@ -1149,7 +1155,7 @@ function Qo(t) {
|
|
|
1149
1155
|
let c, d, l, s, n, r;
|
|
1150
1156
|
if (e[0] !== i || e[1] !== o) {
|
|
1151
1157
|
const u = J.toArray(i);
|
|
1152
|
-
d = ie.Provider, r = !1, c =
|
|
1158
|
+
d = ie.Provider, r = !1, c = Vo.div, l = "rowgroup", s = $.body;
|
|
1153
1159
|
let p;
|
|
1154
1160
|
e[8] !== o ? (p = (x, g) => o !== "striped" ? x : /* @__PURE__ */ T(ye.Provider, { value: g, children: x }, x.key ?? g), e[8] = o, e[9] = p) : p = e[9], n = u.map(p), e[0] = i, e[1] = o, e[2] = c, e[3] = d, e[4] = l, e[5] = s, e[6] = n, e[7] = r;
|
|
1155
1161
|
} else
|
|
@@ -1159,22 +1165,22 @@ function Qo(t) {
|
|
|
1159
1165
|
let a;
|
|
1160
1166
|
return e[15] !== d || e[16] !== r || e[17] !== b ? (a = /* @__PURE__ */ T(d, { value: r, children: b }), e[15] = d, e[16] = r, e[17] = b, e[18] = a) : a = e[18], a;
|
|
1161
1167
|
}
|
|
1162
|
-
const ye = F(-1),
|
|
1163
|
-
function
|
|
1168
|
+
const ye = F(-1), tn = 'button, a, input, select, textarea, [role="button"], [role="link"], [role="checkbox"], [role="menuitem"], [role="switch"], [role="tab"], [contenteditable="true"]';
|
|
1169
|
+
function on(t) {
|
|
1164
1170
|
const e = I.c(17), {
|
|
1165
1171
|
children: i,
|
|
1166
1172
|
onClick: o,
|
|
1167
1173
|
"aria-label": c
|
|
1168
1174
|
} = t, {
|
|
1169
1175
|
variant: d
|
|
1170
|
-
} = K(), l =
|
|
1176
|
+
} = K(), l = G(ie), s = G(ye), n = s >= 0 && s % 2 === 1;
|
|
1171
1177
|
let r;
|
|
1172
1178
|
if (e[0] !== c || e[1] !== i || e[2] !== n || e[3] !== l || e[4] !== o || e[5] !== d) {
|
|
1173
1179
|
const b = J.toArray(i), a = o !== void 0 && !l;
|
|
1174
1180
|
let u;
|
|
1175
1181
|
e[7] !== a || e[8] !== o ? (u = a ? (h) => {
|
|
1176
1182
|
const w = h.target;
|
|
1177
|
-
w instanceof Element && w.closest(
|
|
1183
|
+
w instanceof Element && w.closest(tn) || o();
|
|
1178
1184
|
} : void 0, e[7] = a, e[8] = o, e[9] = u) : u = e[9];
|
|
1179
1185
|
let p;
|
|
1180
1186
|
e[10] !== a || e[11] !== o ? (p = a ? (h) => {
|
|
@@ -1182,7 +1188,7 @@ function en(t) {
|
|
|
1182
1188
|
} : void 0, e[10] = a, e[11] = o, e[12] = p) : p = e[12];
|
|
1183
1189
|
const x = !l && $.bodyRow, g = !l && d === "striped" && n && $.stripedEven, v = a && $.clickableRow;
|
|
1184
1190
|
let y;
|
|
1185
|
-
e[13] !== x || e[14] !== g || e[15] !== v ? (y = [$.row, x, g, v], e[13] = x, e[14] = g, e[15] = v, e[16] = y) : y = e[16], r = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:388", role: "row", tabIndex: a ? 0 : void 0, "aria-label": a ? c : void 0, onClick: u, onKeyDown: p, ...R(
|
|
1191
|
+
e[13] !== x || e[14] !== g || e[15] !== v ? (y = [$.row, x, g, v], e[13] = x, e[14] = g, e[15] = v, e[16] = y) : y = e[16], r = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:388", role: "row", tabIndex: a ? 0 : void 0, "aria-label": a ? c : void 0, onClick: u, onKeyDown: p, ...R(W.div, y), children: b.map((h, w) => /* @__PURE__ */ T(se.Provider, { value: {
|
|
1186
1192
|
index: w,
|
|
1187
1193
|
total: b.length
|
|
1188
1194
|
}, children: h }, h.key ?? w)) }), e[0] = c, e[1] = i, e[2] = n, e[3] = l, e[4] = o, e[5] = d, e[6] = r;
|
|
@@ -1204,14 +1210,14 @@ function le(t) {
|
|
|
1204
1210
|
} = K(), {
|
|
1205
1211
|
index: l,
|
|
1206
1212
|
total: s
|
|
1207
|
-
} =
|
|
1213
|
+
} = G(se), n = d === "bordered" && l === s - 1, r = c === "sm" ? $.cellSm : $.cellMd, b = d === "bordered" && $.borderedCell, a = n && $.borderedCellLast;
|
|
1208
1214
|
let u;
|
|
1209
1215
|
e[0] !== r || e[1] !== b || e[2] !== a ? (u = [$.headerCell, r, b, a], e[0] = r, e[1] = b, e[2] = a, e[3] = u) : u = e[3];
|
|
1210
1216
|
let p;
|
|
1211
|
-
return e[4] !== o || e[5] !== i || e[6] !== u ? (p = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:474", role: "columnheader", "aria-label": o, ...R(
|
|
1217
|
+
return e[4] !== o || e[5] !== i || e[6] !== u ? (p = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:474", role: "columnheader", "aria-label": o, ...R(W.div, u), children: i }), e[4] = o, e[5] = i, e[6] = u, e[7] = p) : p = e[7], p;
|
|
1212
1218
|
}
|
|
1213
1219
|
le.displayName = "HeaderCell";
|
|
1214
|
-
function
|
|
1220
|
+
function nn(t) {
|
|
1215
1221
|
const e = I.c(16), {
|
|
1216
1222
|
children: i,
|
|
1217
1223
|
isActions: o
|
|
@@ -1223,43 +1229,43 @@ function tn(t) {
|
|
|
1223
1229
|
} = K(), {
|
|
1224
1230
|
index: n,
|
|
1225
1231
|
total: r
|
|
1226
|
-
} =
|
|
1232
|
+
} = G(se), b = d === "bordered" && n === r - 1, a = l[n] ?? "", u = c === "sm" ? $.cellSm : $.cellMd, p = d === "bordered" && $.borderedCell, x = b && $.borderedCellLast, g = o && $.cellActions;
|
|
1227
1233
|
let v;
|
|
1228
1234
|
e[0] !== u || e[1] !== p || e[2] !== x || e[3] !== g ? (v = [$.cell, u, p, x, g], e[0] = u, e[1] = p, e[2] = x, e[3] = g, e[4] = v) : v = e[4];
|
|
1229
1235
|
let y;
|
|
1230
|
-
e[5] !== o || e[6] !== a || e[7] !== s ? (y = s && !o && a !== "" ? /* @__PURE__ */ T("span", { "data-element-src": "Table/Table.tsx:514", ...R(
|
|
1236
|
+
e[5] !== o || e[6] !== a || e[7] !== s ? (y = s && !o && a !== "" ? /* @__PURE__ */ T("span", { "data-element-src": "Table/Table.tsx:514", ...R(W.span, $.cellLabel), children: a }) : null, e[5] = o, e[6] = a, e[7] = s, e[8] = y) : y = e[8];
|
|
1231
1237
|
let h;
|
|
1232
|
-
e[9] !== i || e[10] !== o ? (h = o ? i : /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:516", ...R(
|
|
1238
|
+
e[9] !== i || e[10] !== o ? (h = o ? i : /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:516", ...R(W.div, $.cellValue), children: i }), e[9] = i, e[10] = o, e[11] = h) : h = e[11];
|
|
1233
1239
|
let w;
|
|
1234
|
-
return e[12] !== v || e[13] !== y || e[14] !== h ? (w = /* @__PURE__ */ Y("div", { "data-element-src": "Table/Table.tsx:503", role: "cell", ...R(
|
|
1240
|
+
return e[12] !== v || e[13] !== y || e[14] !== h ? (w = /* @__PURE__ */ Y("div", { "data-element-src": "Table/Table.tsx:503", role: "cell", ...R(W.div, v), children: [
|
|
1235
1241
|
y,
|
|
1236
1242
|
h
|
|
1237
1243
|
] }), e[12] = v, e[13] = y, e[14] = h, e[15] = w) : w = e[15], w;
|
|
1238
1244
|
}
|
|
1239
|
-
const
|
|
1245
|
+
const rn = {
|
|
1240
1246
|
/** @deprecated Wrap behaviour is built into Table.Root. Drop this wrapper from new code. */
|
|
1241
|
-
Container:
|
|
1242
|
-
Root:
|
|
1243
|
-
Header:
|
|
1244
|
-
Body:
|
|
1245
|
-
Row:
|
|
1247
|
+
Container: Uo,
|
|
1248
|
+
Root: Qo,
|
|
1249
|
+
Header: Zo,
|
|
1250
|
+
Body: en,
|
|
1251
|
+
Row: on,
|
|
1246
1252
|
HeaderCell: le,
|
|
1247
|
-
Cell:
|
|
1248
|
-
},
|
|
1253
|
+
Cell: nn
|
|
1254
|
+
}, dn = rn;
|
|
1249
1255
|
export {
|
|
1250
|
-
|
|
1251
|
-
|
|
1256
|
+
en as B,
|
|
1257
|
+
nn as C,
|
|
1252
1258
|
le as H,
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1259
|
+
an as M,
|
|
1260
|
+
on as R,
|
|
1261
|
+
dn as T,
|
|
1262
|
+
Zo as a,
|
|
1263
|
+
cn as b,
|
|
1258
1264
|
I as c,
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1265
|
+
W as d,
|
|
1266
|
+
Qo as e,
|
|
1267
|
+
rn as f,
|
|
1262
1268
|
R as m,
|
|
1263
1269
|
$ as s
|
|
1264
1270
|
};
|
|
1265
|
-
//# sourceMappingURL=Table-
|
|
1271
|
+
//# sourceMappingURL=Table-B4F8XyqK.js.map
|