@duro-app/ui 4.0.0 → 4.2.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-Bj5u2Q-k.js → Table-JTgcR_Fh.js} +241 -226
- package/dist/Table-JTgcR_Fh.js.map +1 -0
- package/dist/components/Menu/Menu.d.ts +2 -0
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/Menu/Menu.meta.d.ts.map +1 -1
- package/dist/components/Menu/Menu.stories.d.ts +1 -0
- package/dist/components/Menu/Menu.stories.d.ts.map +1 -1
- package/dist/components/Menu/styles.css.d.ts +8 -0
- package/dist/components/Menu/styles.css.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/table.js +1 -1
- package/package.json +2 -2
- package/src/components/Menu/Menu.meta.ts +2 -1
- package/src/components/Menu/Menu.stories.tsx +26 -0
- package/src/components/Menu/Menu.tsx +9 -0
- package/src/components/Menu/styles.css.ts +8 -0
- package/dist/Table-Bj5u2Q-k.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as w, jsxs as _, Fragment as re } from "react/jsx-runtime";
|
|
2
2
|
import { c as R, m as C, d as S } from "./compiler-runtime-B2IcI8_O.js";
|
|
3
|
-
import { useContext as H, createContext as G, useState as Y, useId as X, useRef as
|
|
4
|
-
const
|
|
3
|
+
import { useContext as H, createContext as G, useState as Y, useId as X, useRef as E, useEffect as D, Children as K, isValidElement as ue } from "react";
|
|
4
|
+
const j = {
|
|
5
5
|
root: {
|
|
6
6
|
"position-kVAEAm": "position-x1n2onr6",
|
|
7
7
|
"display-k1xSpc": "display-x3nfvp2",
|
|
@@ -80,31 +80,40 @@ const E = {
|
|
|
80
80
|
"backgroundColor-kWkggS": "backgroundColor-xlyqa1p",
|
|
81
81
|
$$css: "Menu/styles.css.ts:80"
|
|
82
82
|
},
|
|
83
|
+
separator: {
|
|
84
|
+
"height-kZKoxP": "height-xqtp20y",
|
|
85
|
+
"marginTop-keoZOQ": "marginTop-xuerg7n",
|
|
86
|
+
"marginBottom-k1K539": "marginBottom-xnccn3x",
|
|
87
|
+
"borderTopWidth-kEafiO": "borderTopWidth-x178xt8z",
|
|
88
|
+
"borderTopStyle-kPef9Z": "borderTopStyle-x13fuv20",
|
|
89
|
+
"borderTopColor-kLZC3w": "borderTopColor-xvuocu",
|
|
90
|
+
$$css: "Menu/styles.css.ts:83"
|
|
91
|
+
},
|
|
83
92
|
linkItem: {
|
|
84
93
|
"textDecoration-kybGjl": "textDecoration-x1hl2dhg",
|
|
85
94
|
"color-kMwMTN": "color-x95150z color-xtolcfe",
|
|
86
|
-
$$css: "Menu/styles.css.ts:
|
|
95
|
+
$$css: "Menu/styles.css.ts:91"
|
|
87
96
|
}
|
|
88
97
|
}, ie = G(null);
|
|
89
|
-
function
|
|
98
|
+
function N() {
|
|
90
99
|
const t = H(ie);
|
|
91
100
|
if (!t)
|
|
92
101
|
throw new Error("Menu compound components must be used within Menu.Root");
|
|
93
102
|
return t;
|
|
94
103
|
}
|
|
95
104
|
function pe() {
|
|
96
|
-
const t = R.c(15), [e, i] = Y(!1), [o, c] = Y(null), p = X(), d =
|
|
105
|
+
const t = R.c(15), [e, i] = Y(!1), [o, c] = Y(null), p = X(), d = E(null), l = E(null);
|
|
97
106
|
let n;
|
|
98
107
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ new Map(), t[0] = n) : n = t[0];
|
|
99
|
-
const r =
|
|
108
|
+
const r = E(n);
|
|
100
109
|
let x;
|
|
101
110
|
t[1] === Symbol.for("react.memo_cache_sentinel") ? (x = [], t[1] = x) : x = t[1];
|
|
102
|
-
const s =
|
|
111
|
+
const s = E(x), a = E(!1);
|
|
103
112
|
let u;
|
|
104
113
|
t[2] === Symbol.for("react.memo_cache_sentinel") ? (u = () => {
|
|
105
114
|
i(!1), c(null), a.current = !1, l.current?.focus();
|
|
106
115
|
}, t[2] = u) : u = t[2];
|
|
107
|
-
const
|
|
116
|
+
const m = u;
|
|
108
117
|
let g;
|
|
109
118
|
t[3] === Symbol.for("react.memo_cache_sentinel") ? (g = () => {
|
|
110
119
|
i((W) => (W ? (c(null), a.current = !1) : a.current = !0, !W));
|
|
@@ -121,66 +130,66 @@ function pe() {
|
|
|
121
130
|
let T;
|
|
122
131
|
t[7] === Symbol.for("react.memo_cache_sentinel") ? (T = (W, A) => {
|
|
123
132
|
r.current.set(W, A);
|
|
124
|
-
const V = r.current,
|
|
125
|
-
return
|
|
126
|
-
const
|
|
127
|
-
return !
|
|
128
|
-
}), s.current =
|
|
133
|
+
const V = r.current, q = [...V.keys()];
|
|
134
|
+
return q.sort((M, P) => {
|
|
135
|
+
const I = V.get(M), U = V.get(P);
|
|
136
|
+
return !I || !U ? 0 : I.compareDocumentPosition(U) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
137
|
+
}), s.current = q, () => {
|
|
129
138
|
r.current.delete(W), s.current = s.current.filter((M) => M !== W);
|
|
130
139
|
};
|
|
131
140
|
}, t[7] = T) : T = t[7];
|
|
132
141
|
const F = T;
|
|
133
|
-
let L,
|
|
142
|
+
let L, z;
|
|
134
143
|
t[8] !== e ? (L = () => {
|
|
135
144
|
const W = d.current;
|
|
136
145
|
if (!W || !e)
|
|
137
146
|
return;
|
|
138
|
-
const A = function(
|
|
147
|
+
const A = function(q) {
|
|
139
148
|
const M = s.current;
|
|
140
149
|
if (M.length !== 0)
|
|
141
|
-
e: switch (
|
|
150
|
+
e: switch (q.key) {
|
|
142
151
|
case "ArrowDown": {
|
|
143
|
-
|
|
144
|
-
const
|
|
145
|
-
return M[(
|
|
152
|
+
q.preventDefault(), c((P) => {
|
|
153
|
+
const I = P ? M.indexOf(P) : -1;
|
|
154
|
+
return M[(I + 1) % M.length];
|
|
146
155
|
});
|
|
147
156
|
break e;
|
|
148
157
|
}
|
|
149
158
|
case "ArrowUp": {
|
|
150
|
-
|
|
151
|
-
const
|
|
152
|
-
return M[(
|
|
159
|
+
q.preventDefault(), c((P) => {
|
|
160
|
+
const I = P ? M.indexOf(P) : 0;
|
|
161
|
+
return M[(I - 1 + M.length) % M.length];
|
|
153
162
|
});
|
|
154
163
|
break e;
|
|
155
164
|
}
|
|
156
165
|
case "Home": {
|
|
157
|
-
|
|
166
|
+
q.preventDefault(), c(M[0]);
|
|
158
167
|
break e;
|
|
159
168
|
}
|
|
160
169
|
case "End": {
|
|
161
|
-
|
|
170
|
+
q.preventDefault(), c(M[M.length - 1]);
|
|
162
171
|
break e;
|
|
163
172
|
}
|
|
164
173
|
case "Enter":
|
|
165
174
|
case " ": {
|
|
166
|
-
|
|
175
|
+
q.preventDefault();
|
|
167
176
|
const P = r.current;
|
|
168
|
-
c((
|
|
177
|
+
c((I) => (I && P.get(I)?.click(), I));
|
|
169
178
|
break e;
|
|
170
179
|
}
|
|
171
180
|
case "Escape":
|
|
172
181
|
case "Tab":
|
|
173
|
-
|
|
182
|
+
m();
|
|
174
183
|
}
|
|
175
184
|
};
|
|
176
185
|
return W.addEventListener("keydown", A), () => W.removeEventListener("keydown", A);
|
|
177
|
-
},
|
|
178
|
-
let
|
|
179
|
-
return t[11] !== o || t[12] !== p || t[13] !== e ? (
|
|
186
|
+
}, z = [e, m], t[8] = e, t[9] = L, t[10] = z) : (L = t[9], z = t[10]), D(L, z);
|
|
187
|
+
let O;
|
|
188
|
+
return t[11] !== o || t[12] !== p || t[13] !== e ? (O = {
|
|
180
189
|
ctx: {
|
|
181
190
|
open: e,
|
|
182
191
|
toggle: v,
|
|
183
|
-
close:
|
|
192
|
+
close: m,
|
|
184
193
|
menuId: p,
|
|
185
194
|
highlightedId: o,
|
|
186
195
|
setHighlightedId: c,
|
|
@@ -188,7 +197,7 @@ function pe() {
|
|
|
188
197
|
triggerRef: l
|
|
189
198
|
},
|
|
190
199
|
rootRef: d
|
|
191
|
-
}, t[11] = o, t[12] = p, t[13] = e, t[14] =
|
|
200
|
+
}, t[11] = o, t[12] = p, t[13] = e, t[14] = O) : O = t[14], O;
|
|
192
201
|
}
|
|
193
202
|
const xe = typeof process < "u" && process.env?.NODE_ENV === "production", oe = /* @__PURE__ */ new Set();
|
|
194
203
|
function se(t, e, i) {
|
|
@@ -203,7 +212,7 @@ function be(t) {
|
|
|
203
212
|
rootRef: c
|
|
204
213
|
} = pe();
|
|
205
214
|
let p;
|
|
206
|
-
e[0] !== i || e[1] !== c ? (p = /* @__PURE__ */ w("div", { "data-element-src": "Menu/Menu.tsx:18", ref: c, ...C(S.div,
|
|
215
|
+
e[0] !== i || e[1] !== c ? (p = /* @__PURE__ */ w("div", { "data-element-src": "Menu/Menu.tsx:18", ref: c, ...C(S.div, j.root), children: i }), e[0] = i, e[1] = c, e[2] = p) : p = e[2];
|
|
207
216
|
let d;
|
|
208
217
|
return e[3] !== o || e[4] !== p ? (d = /* @__PURE__ */ w(ie.Provider, { value: o, children: p }), e[3] = o, e[4] = p, e[5] = d) : d = e[5], d;
|
|
209
218
|
}
|
|
@@ -216,7 +225,7 @@ function ge(t) {
|
|
|
216
225
|
toggle: c,
|
|
217
226
|
menuId: p,
|
|
218
227
|
triggerRef: d
|
|
219
|
-
} =
|
|
228
|
+
} = N(), l = E(null);
|
|
220
229
|
let n;
|
|
221
230
|
e[0] !== d ? (n = () => {
|
|
222
231
|
d.current = l.current;
|
|
@@ -227,9 +236,9 @@ function ge(t) {
|
|
|
227
236
|
}, x = [], e[2] = r, e[3] = x) : (r = e[2], x = e[3]), D(r, x);
|
|
228
237
|
const s = o ? p : void 0;
|
|
229
238
|
let a;
|
|
230
|
-
return e[4] !== i || e[5] !== o || e[6] !== s || e[7] !== c ? (a = /* @__PURE__ */ w("button", { "data-element-src": "Menu/Menu.tsx:52", ref: l, type: "button", onClick: c, "aria-expanded": o, "aria-haspopup": "menu", "aria-controls": s, ...C(S.button,
|
|
239
|
+
return e[4] !== i || e[5] !== o || e[6] !== s || e[7] !== c ? (a = /* @__PURE__ */ w("button", { "data-element-src": "Menu/Menu.tsx:52", ref: l, type: "button", onClick: c, "aria-expanded": o, "aria-haspopup": "menu", "aria-controls": s, ...C(S.button, j.trigger), children: i }), e[4] = i, e[5] = o, e[6] = s, e[7] = c, e[8] = a) : a = e[8], a;
|
|
231
240
|
}
|
|
232
|
-
function
|
|
241
|
+
function me(t) {
|
|
233
242
|
const e = R.c(12), {
|
|
234
243
|
children: i,
|
|
235
244
|
align: o
|
|
@@ -238,23 +247,23 @@ function fe(t) {
|
|
|
238
247
|
close: d,
|
|
239
248
|
menuId: l,
|
|
240
249
|
highlightedId: n
|
|
241
|
-
} =
|
|
250
|
+
} = N();
|
|
242
251
|
if (!p)
|
|
243
252
|
return null;
|
|
244
253
|
let r;
|
|
245
|
-
e[0] !== d ? (r = /* @__PURE__ */ w("div", { "data-element-src": "Menu/Menu.tsx:79", ...C(S.div,
|
|
246
|
-
const x = n ?? void 0, s = c === "end" &&
|
|
254
|
+
e[0] !== d ? (r = /* @__PURE__ */ w("div", { "data-element-src": "Menu/Menu.tsx:79", ...C(S.div, j.backdrop), onClick: d }), e[0] = d, e[1] = r) : r = e[1];
|
|
255
|
+
const x = n ?? void 0, s = c === "end" && j.popupEnd;
|
|
247
256
|
let a;
|
|
248
|
-
e[2] !== s ? (a = [
|
|
257
|
+
e[2] !== s ? (a = [j.popup, s], e[2] = s, e[3] = a) : a = e[3];
|
|
249
258
|
let u;
|
|
250
259
|
e[4] !== i || e[5] !== l || e[6] !== x || e[7] !== a ? (u = /* @__PURE__ */ w("div", { "data-element-src": "Menu/Menu.tsx:80", id: l, role: "menu", "aria-activedescendant": x, ...C(S.div, a), children: i }), e[4] = i, e[5] = l, e[6] = x, e[7] = a, e[8] = u) : u = e[8];
|
|
251
|
-
let
|
|
252
|
-
return e[9] !== r || e[10] !== u ? (
|
|
260
|
+
let m;
|
|
261
|
+
return e[9] !== r || e[10] !== u ? (m = /* @__PURE__ */ _(re, { children: [
|
|
253
262
|
r,
|
|
254
263
|
u
|
|
255
|
-
] }), e[9] = r, e[10] = u, e[11] =
|
|
264
|
+
] }), e[9] = r, e[10] = u, e[11] = m) : m = e[11], m;
|
|
256
265
|
}
|
|
257
|
-
function
|
|
266
|
+
function fe(t) {
|
|
258
267
|
const e = R.c(18), {
|
|
259
268
|
onClick: i,
|
|
260
269
|
children: o
|
|
@@ -263,7 +272,7 @@ function me(t) {
|
|
|
263
272
|
highlightedId: p,
|
|
264
273
|
setHighlightedId: d,
|
|
265
274
|
registerItem: l
|
|
266
|
-
} =
|
|
275
|
+
} = N(), n = X(), r = E(null), x = p === n;
|
|
267
276
|
let s, a;
|
|
268
277
|
e[0] !== n || e[1] !== l ? (s = () => {
|
|
269
278
|
const T = r.current;
|
|
@@ -274,14 +283,14 @@ function me(t) {
|
|
|
274
283
|
e[4] !== c || e[5] !== i ? (u = () => {
|
|
275
284
|
i?.(), c();
|
|
276
285
|
}, e[4] = c, e[5] = i, e[6] = u) : u = e[6];
|
|
277
|
-
const
|
|
286
|
+
const m = u;
|
|
278
287
|
let g;
|
|
279
288
|
e[7] !== n || e[8] !== d ? (g = () => d(n), e[7] = n, e[8] = d, e[9] = g) : g = e[9];
|
|
280
|
-
const v = x &&
|
|
289
|
+
const v = x && j.itemHighlighted;
|
|
281
290
|
let $;
|
|
282
|
-
e[10] !== v ? ($ = [
|
|
291
|
+
e[10] !== v ? ($ = [j.item, v], e[10] = v, e[11] = $) : $ = e[11];
|
|
283
292
|
let h;
|
|
284
|
-
return e[12] !== o || e[13] !==
|
|
293
|
+
return e[12] !== o || e[13] !== m || e[14] !== n || e[15] !== g || e[16] !== $ ? (h = /* @__PURE__ */ w("div", { "data-element-src": "Menu/Menu.tsx:116", ref: r, id: n, role: "menuitem", onClick: m, onPointerEnter: g, ...C(S.div, $), children: o }), e[12] = o, e[13] = m, e[14] = n, e[15] = g, e[16] = $, e[17] = h) : h = e[17], h;
|
|
285
294
|
}
|
|
286
295
|
function he(t) {
|
|
287
296
|
const e = R.c(16), {
|
|
@@ -292,7 +301,7 @@ function he(t) {
|
|
|
292
301
|
highlightedId: p,
|
|
293
302
|
setHighlightedId: d,
|
|
294
303
|
registerItem: l
|
|
295
|
-
} =
|
|
304
|
+
} = N(), n = X(), r = E(null), x = p === n;
|
|
296
305
|
let s, a;
|
|
297
306
|
e[0] !== n || e[1] !== l ? (s = () => {
|
|
298
307
|
const $ = r.current;
|
|
@@ -301,18 +310,24 @@ function he(t) {
|
|
|
301
310
|
}, a = [n, l], e[0] = n, e[1] = l, e[2] = s, e[3] = a) : (s = e[2], a = e[3]), D(s, a);
|
|
302
311
|
let u;
|
|
303
312
|
e[4] !== n || e[5] !== d ? (u = () => d(n), e[4] = n, e[5] = d, e[6] = u) : u = e[6];
|
|
304
|
-
const
|
|
313
|
+
const m = x && j.itemHighlighted;
|
|
305
314
|
let g;
|
|
306
|
-
e[7] !==
|
|
315
|
+
e[7] !== m ? (g = [j.item, j.linkItem, m], e[7] = m, e[8] = g) : g = e[8];
|
|
307
316
|
let v;
|
|
308
317
|
return e[9] !== o || e[10] !== c || e[11] !== i || e[12] !== n || e[13] !== u || e[14] !== g ? (v = /* @__PURE__ */ w("a", { "data-element-src": "Menu/Menu.tsx:148", ref: r, id: n, href: i, onClick: c, role: "menuitem", onPointerEnter: u, ...C(S.a, g), children: o }), e[9] = o, e[10] = c, e[11] = i, e[12] = n, e[13] = u, e[14] = g, e[15] = v) : v = e[15], v;
|
|
309
318
|
}
|
|
310
|
-
|
|
319
|
+
function ye() {
|
|
320
|
+
const t = R.c(1);
|
|
321
|
+
let e;
|
|
322
|
+
return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ w("div", { "data-element-src": "Menu/Menu.tsx:167", role: "separator", "aria-orientation": "horizontal", ...C(S.div, j.separator) }), t[0] = e) : e = t[0], e;
|
|
323
|
+
}
|
|
324
|
+
const zo = {
|
|
311
325
|
Root: be,
|
|
312
326
|
Trigger: ge,
|
|
313
|
-
Popup:
|
|
314
|
-
Item:
|
|
315
|
-
LinkItem: he
|
|
327
|
+
Popup: me,
|
|
328
|
+
Item: fe,
|
|
329
|
+
LinkItem: he,
|
|
330
|
+
Separator: ye
|
|
316
331
|
};
|
|
317
332
|
/**
|
|
318
333
|
* @license react-strict-dom
|
|
@@ -322,22 +337,22 @@ const jo = {
|
|
|
322
337
|
* LICENSE file in the root directory of this source tree.
|
|
323
338
|
*/
|
|
324
339
|
const ne = {};
|
|
325
|
-
function
|
|
340
|
+
function ve(t) {
|
|
326
341
|
process.env.NODE_ENV !== "test" && ne[t] || (ne[t] = !0, console.error(`[error] React Strict DOM: ${t}`));
|
|
327
342
|
}
|
|
328
|
-
const
|
|
329
|
-
function
|
|
330
|
-
return
|
|
343
|
+
const $e = /* @__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"]);
|
|
344
|
+
function we(t) {
|
|
345
|
+
return $e.has(t) || t.indexOf("data-") > -1;
|
|
331
346
|
}
|
|
332
347
|
var Q = {};
|
|
333
348
|
Object.defineProperty(Q, "__esModule", {
|
|
334
349
|
value: !0
|
|
335
350
|
});
|
|
336
|
-
var le = Q.styleq = void 0,
|
|
351
|
+
var le = Q.styleq = void 0, Te = /* @__PURE__ */ new WeakMap(), Ce = "$$css";
|
|
337
352
|
function ae(t) {
|
|
338
353
|
var e, i, o;
|
|
339
354
|
return t != null && (e = t.disableCache === !0, i = t.disableMix === !0, o = t.transform), function() {
|
|
340
|
-
for (var p = [], d = "", l = null, n = "", r = e ? null :
|
|
355
|
+
for (var p = [], d = "", l = null, n = "", r = e ? null : Te, x = new Array(arguments.length), s = 0; s < arguments.length; s++)
|
|
341
356
|
x[s] = arguments[s];
|
|
342
357
|
for (; x.length > 0; ) {
|
|
343
358
|
var a = x.pop();
|
|
@@ -347,18 +362,18 @@ function ae(t) {
|
|
|
347
362
|
x.push(a[u]);
|
|
348
363
|
continue;
|
|
349
364
|
}
|
|
350
|
-
var
|
|
351
|
-
if (
|
|
365
|
+
var m = o != null ? o(a) : a;
|
|
366
|
+
if (m.$$css != null) {
|
|
352
367
|
var g = "";
|
|
353
|
-
if (r != null && r.has(
|
|
354
|
-
var v = r.get(
|
|
368
|
+
if (r != null && r.has(m)) {
|
|
369
|
+
var v = r.get(m);
|
|
355
370
|
v != null && (g = v[0], n = v[2], p.push.apply(p, v[1]), r = v[3]);
|
|
356
371
|
} else {
|
|
357
372
|
var $ = [];
|
|
358
|
-
for (var h in
|
|
359
|
-
var T =
|
|
360
|
-
if (h ===
|
|
361
|
-
var F =
|
|
373
|
+
for (var h in m) {
|
|
374
|
+
var T = m[h];
|
|
375
|
+
if (h === Ce) {
|
|
376
|
+
var F = m[h];
|
|
362
377
|
F !== !0 && (n = n ? F + "; " + n : F);
|
|
363
378
|
continue;
|
|
364
379
|
}
|
|
@@ -366,19 +381,19 @@ function ae(t) {
|
|
|
366
381
|
}
|
|
367
382
|
if (r != null) {
|
|
368
383
|
var L = /* @__PURE__ */ new WeakMap();
|
|
369
|
-
r.set(
|
|
384
|
+
r.set(m, [g, $, n, L]), r = L;
|
|
370
385
|
}
|
|
371
386
|
}
|
|
372
387
|
g && (d = d ? g + " " + d : g);
|
|
373
388
|
} else if (i)
|
|
374
|
-
l == null && (l = {}), l = Object.assign({},
|
|
389
|
+
l == null && (l = {}), l = Object.assign({}, m, l);
|
|
375
390
|
else {
|
|
376
|
-
var
|
|
377
|
-
for (var
|
|
378
|
-
var W =
|
|
379
|
-
W !== void 0 && (p.includes(
|
|
391
|
+
var z = null;
|
|
392
|
+
for (var O in m) {
|
|
393
|
+
var W = m[O];
|
|
394
|
+
W !== void 0 && (p.includes(O) || (W != null && (l == null && (l = {}), z == null && (z = {}), z[O] = W), p.push(O), r = null));
|
|
380
395
|
}
|
|
381
|
-
|
|
396
|
+
z != null && (l = Object.assign(z, l));
|
|
382
397
|
}
|
|
383
398
|
}
|
|
384
399
|
}
|
|
@@ -386,13 +401,13 @@ function ae(t) {
|
|
|
386
401
|
return A;
|
|
387
402
|
};
|
|
388
403
|
}
|
|
389
|
-
var
|
|
390
|
-
|
|
391
|
-
const
|
|
404
|
+
var Se = le = Q.styleq = ae();
|
|
405
|
+
Se.factory = ae;
|
|
406
|
+
const We = le.factory({
|
|
392
407
|
disableMix: !0
|
|
393
408
|
});
|
|
394
|
-
function
|
|
395
|
-
const [e, i, o] =
|
|
409
|
+
function Me(...t) {
|
|
410
|
+
const [e, i, o] = We(t), c = {};
|
|
396
411
|
if (e != null && e !== "" && (c.className = e), i != null && (c.style = i), o != null && o !== "") {
|
|
397
412
|
const p = o.split(";"), d = {};
|
|
398
413
|
for (const l of p) {
|
|
@@ -403,9 +418,9 @@ function We(...t) {
|
|
|
403
418
|
}
|
|
404
419
|
return c;
|
|
405
420
|
}
|
|
406
|
-
function
|
|
421
|
+
function Re(t) {
|
|
407
422
|
Object.keys(t).forEach((e) => {
|
|
408
|
-
|
|
423
|
+
we(e) || (ve(`invalid prop "${e}"`), delete t[e]);
|
|
409
424
|
});
|
|
410
425
|
}
|
|
411
426
|
function b(t, e) {
|
|
@@ -422,8 +437,8 @@ function b(t, e) {
|
|
|
422
437
|
style: l,
|
|
423
438
|
...n
|
|
424
439
|
} = p, r = n;
|
|
425
|
-
|
|
426
|
-
const x =
|
|
440
|
+
Re(r), d != null && (r.htmlFor = d), p.role != null && (r.role = p.role === "none" ? "presentation" : p.role), t === "button" ? r.type = r.type ? r.type : "button" : (t === "input" || t === "textarea") && (r.dir = r.dir ? r.dir : "auto");
|
|
441
|
+
const x = Me([i, e, l]);
|
|
427
442
|
return w(t, {
|
|
428
443
|
...r,
|
|
429
444
|
...x,
|
|
@@ -432,7 +447,7 @@ function b(t, e) {
|
|
|
432
447
|
}
|
|
433
448
|
return o.displayName = `html.${t}`, o;
|
|
434
449
|
}
|
|
435
|
-
const
|
|
450
|
+
const f = {
|
|
436
451
|
block: {
|
|
437
452
|
"margin-kogj98": "margin-x1ghz6dp",
|
|
438
453
|
"padding-kmVPX3": "padding-x1717udv",
|
|
@@ -500,110 +515,110 @@ const m = {
|
|
|
500
515
|
"resize-kHenm0": "resize-x288g5",
|
|
501
516
|
$$css: ".pnpm:web/index.js:276"
|
|
502
517
|
}
|
|
503
|
-
},
|
|
504
|
-
a:
|
|
505
|
-
article:
|
|
506
|
-
aside:
|
|
507
|
-
b:
|
|
508
|
-
bdi:
|
|
518
|
+
}, je = f.inline, ze = f.block, Ie = f.block, Ee = f.inline, Oe = f.inline, qe = f.inline, Pe = f.block, Le = null, De = [f.inlineblock, f.button], Ae = [f.inline, f.codePre], Be = null, He = f.block, Fe = f.inline, Ge = f.block, Ve = f.block, _e = f.block, B = [f.block, f.heading], Ke = f.block, Ne = [f.block, f.hr], Je = f.inline, Ue = f.img, Ye = [f.inlineblock, f.input], Xe = null, Qe = null, Ze = f.inline, et = f.block, tt = f.block, ot = f.inline, nt = f.block, rt = [f.list, f.block], it = null, st = null, lt = f.block, at = [f.block, f.codePre], ct = null, dt = f.block, ut = f.inlineblock, pt = f.inline, xt = [f.inline, f.strong], bt = f.inline, kt = f.inline, gt = [f.inlineblock, f.textarea], mt = null, ft = [f.list, f.block], k = {
|
|
519
|
+
a: je,
|
|
520
|
+
article: ze,
|
|
521
|
+
aside: Ie,
|
|
522
|
+
b: Ee,
|
|
523
|
+
bdi: Oe,
|
|
509
524
|
bdo: qe,
|
|
510
|
-
blockquote:
|
|
511
|
-
br:
|
|
512
|
-
button:
|
|
513
|
-
code:
|
|
514
|
-
del:
|
|
515
|
-
div:
|
|
516
|
-
em:
|
|
517
|
-
fieldset:
|
|
518
|
-
footer:
|
|
519
|
-
form:
|
|
525
|
+
blockquote: Pe,
|
|
526
|
+
br: Le,
|
|
527
|
+
button: De,
|
|
528
|
+
code: Ae,
|
|
529
|
+
del: Be,
|
|
530
|
+
div: He,
|
|
531
|
+
em: Fe,
|
|
532
|
+
fieldset: Ge,
|
|
533
|
+
footer: Ve,
|
|
534
|
+
form: _e,
|
|
520
535
|
h1: B,
|
|
521
536
|
h2: B,
|
|
522
537
|
h3: B,
|
|
523
538
|
h4: B,
|
|
524
539
|
h5: B,
|
|
525
540
|
h6: B,
|
|
526
|
-
header:
|
|
541
|
+
header: Ke,
|
|
527
542
|
hr: Ne,
|
|
528
|
-
i:
|
|
529
|
-
img:
|
|
530
|
-
input:
|
|
531
|
-
ins:
|
|
532
|
-
kbd:
|
|
533
|
-
label:
|
|
534
|
-
li:
|
|
535
|
-
main:
|
|
536
|
-
mark:
|
|
537
|
-
nav:
|
|
538
|
-
ol:
|
|
539
|
-
optgroup:
|
|
540
|
-
option:
|
|
541
|
-
p:
|
|
542
|
-
pre:
|
|
543
|
-
s:
|
|
544
|
-
section:
|
|
545
|
-
select:
|
|
546
|
-
span:
|
|
547
|
-
strong:
|
|
548
|
-
sub:
|
|
549
|
-
sup:
|
|
550
|
-
textarea:
|
|
551
|
-
u:
|
|
543
|
+
i: Je,
|
|
544
|
+
img: Ue,
|
|
545
|
+
input: Ye,
|
|
546
|
+
ins: Xe,
|
|
547
|
+
kbd: Qe,
|
|
548
|
+
label: Ze,
|
|
549
|
+
li: et,
|
|
550
|
+
main: tt,
|
|
551
|
+
mark: ot,
|
|
552
|
+
nav: nt,
|
|
553
|
+
ol: rt,
|
|
554
|
+
optgroup: it,
|
|
555
|
+
option: st,
|
|
556
|
+
p: lt,
|
|
557
|
+
pre: at,
|
|
558
|
+
s: ct,
|
|
559
|
+
section: dt,
|
|
560
|
+
select: ut,
|
|
561
|
+
span: pt,
|
|
562
|
+
strong: xt,
|
|
563
|
+
sub: bt,
|
|
564
|
+
sup: kt,
|
|
565
|
+
textarea: gt,
|
|
566
|
+
u: mt,
|
|
552
567
|
ul: ft
|
|
553
|
-
},
|
|
554
|
-
var
|
|
568
|
+
}, ht = b("a", k.a), yt = b("article", k.article), vt = b("aside", k.aside), $t = b("b", k.b), wt = b("bdi", k.bdi), Tt = b("bdo", k.bdo), Ct = b("blockquote", k.blockquote), St = b("br", k.br), Wt = b("button", k.button), Mt = b("code", k.code), Rt = b("del", k.del), jt = b("div", k.div), zt = b("em", k.em), It = b("fieldset", k.fieldset), Et = b("footer", k.footer), Ot = b("form", k.form), qt = b("h1", k.h1), Pt = b("h2", k.h2), Lt = b("h3", k.h3), Dt = b("h4", k.h4), At = b("h5", k.h5), Bt = b("h6", k.h6), Ht = b("header", k.header), Ft = b("hr", k.hr), Gt = b("i", k.i), Vt = b("img", k.img), _t = b("input", k.input), Kt = b("ins", k.ins), Nt = b("kbd", k.kbd), Jt = b("label", k.label), Ut = b("li", k.li), Yt = b("main", k.main), Xt = b("mark", k.mark), Qt = b("nav", k.nav), Zt = b("ol", k.ol), eo = b("optgroup", k.optgroup), to = b("option", k.option), oo = b("p", k.p), no = b("pre", k.pre), ro = b("s", k.s), io = b("section", k.section), so = b("select", k.select), lo = b("span", k.span), ao = b("strong", k.strong), co = b("sub", k.sub), uo = b("sup", k.sup), po = b("textarea", k.textarea), xo = b("u", k.u), bo = b("ul", k.ul);
|
|
569
|
+
var ko = /* @__PURE__ */ Object.freeze({
|
|
555
570
|
__proto__: null,
|
|
556
|
-
a:
|
|
557
|
-
article:
|
|
558
|
-
aside:
|
|
559
|
-
b:
|
|
560
|
-
bdi:
|
|
561
|
-
bdo:
|
|
562
|
-
blockquote:
|
|
563
|
-
br:
|
|
564
|
-
button:
|
|
565
|
-
code:
|
|
566
|
-
del:
|
|
567
|
-
div:
|
|
568
|
-
em:
|
|
569
|
-
fieldset:
|
|
570
|
-
footer:
|
|
571
|
-
form:
|
|
571
|
+
a: ht,
|
|
572
|
+
article: yt,
|
|
573
|
+
aside: vt,
|
|
574
|
+
b: $t,
|
|
575
|
+
bdi: wt,
|
|
576
|
+
bdo: Tt,
|
|
577
|
+
blockquote: Ct,
|
|
578
|
+
br: St,
|
|
579
|
+
button: Wt,
|
|
580
|
+
code: Mt,
|
|
581
|
+
del: Rt,
|
|
582
|
+
div: jt,
|
|
583
|
+
em: zt,
|
|
584
|
+
fieldset: It,
|
|
585
|
+
footer: Et,
|
|
586
|
+
form: Ot,
|
|
572
587
|
h1: qt,
|
|
573
|
-
h2:
|
|
574
|
-
h3:
|
|
575
|
-
h4:
|
|
576
|
-
h5:
|
|
577
|
-
h6:
|
|
578
|
-
header:
|
|
579
|
-
hr:
|
|
580
|
-
i:
|
|
581
|
-
img:
|
|
582
|
-
input:
|
|
583
|
-
ins:
|
|
588
|
+
h2: Pt,
|
|
589
|
+
h3: Lt,
|
|
590
|
+
h4: Dt,
|
|
591
|
+
h5: At,
|
|
592
|
+
h6: Bt,
|
|
593
|
+
header: Ht,
|
|
594
|
+
hr: Ft,
|
|
595
|
+
i: Gt,
|
|
596
|
+
img: Vt,
|
|
597
|
+
input: _t,
|
|
598
|
+
ins: Kt,
|
|
584
599
|
kbd: Nt,
|
|
585
|
-
label:
|
|
586
|
-
li:
|
|
587
|
-
main:
|
|
588
|
-
mark:
|
|
589
|
-
nav:
|
|
590
|
-
ol:
|
|
591
|
-
optgroup:
|
|
592
|
-
option:
|
|
593
|
-
p:
|
|
594
|
-
pre:
|
|
595
|
-
s:
|
|
596
|
-
section:
|
|
597
|
-
select:
|
|
598
|
-
span:
|
|
599
|
-
strong:
|
|
600
|
-
sub:
|
|
601
|
-
sup:
|
|
602
|
-
textarea:
|
|
603
|
-
u:
|
|
604
|
-
ul:
|
|
600
|
+
label: Jt,
|
|
601
|
+
li: Ut,
|
|
602
|
+
main: Yt,
|
|
603
|
+
mark: Xt,
|
|
604
|
+
nav: Qt,
|
|
605
|
+
ol: Zt,
|
|
606
|
+
optgroup: eo,
|
|
607
|
+
option: to,
|
|
608
|
+
p: oo,
|
|
609
|
+
pre: no,
|
|
610
|
+
s: ro,
|
|
611
|
+
section: io,
|
|
612
|
+
select: so,
|
|
613
|
+
span: lo,
|
|
614
|
+
strong: ao,
|
|
615
|
+
sub: co,
|
|
616
|
+
sup: uo,
|
|
617
|
+
textarea: po,
|
|
618
|
+
u: xo,
|
|
619
|
+
ul: bo
|
|
605
620
|
});
|
|
606
|
-
const
|
|
621
|
+
const Io = {
|
|
607
622
|
xs: 480,
|
|
608
623
|
sm: 640,
|
|
609
624
|
md: 768,
|
|
@@ -826,16 +841,16 @@ function J() {
|
|
|
826
841
|
return t;
|
|
827
842
|
}
|
|
828
843
|
const Z = G(!1);
|
|
829
|
-
function
|
|
844
|
+
function go(t) {
|
|
830
845
|
const e = R.c(2), {
|
|
831
846
|
children: i
|
|
832
847
|
} = t;
|
|
833
848
|
let o;
|
|
834
849
|
return e[0] !== i ? (o = /* @__PURE__ */ w("div", { "data-element-src": "Table/Table.tsx:54", ...C(S.div, y.container), children: i }), e[0] = i, e[1] = o) : o = e[1], o;
|
|
835
850
|
}
|
|
836
|
-
function
|
|
851
|
+
function mo(t) {
|
|
837
852
|
let e = "";
|
|
838
|
-
return
|
|
853
|
+
return K.forEach(t, (i) => {
|
|
839
854
|
(typeof i == "string" || typeof i == "number") && (e += String(i));
|
|
840
855
|
}), e;
|
|
841
856
|
}
|
|
@@ -848,17 +863,17 @@ function fo(t) {
|
|
|
848
863
|
}
|
|
849
864
|
return e;
|
|
850
865
|
}
|
|
851
|
-
function
|
|
866
|
+
function ho(t, e) {
|
|
852
867
|
const i = [], o = [], c = [];
|
|
853
868
|
function p(d) {
|
|
854
|
-
|
|
869
|
+
K.forEach(d, (l) => {
|
|
855
870
|
if (!ue(l)) return;
|
|
856
871
|
const n = l.props, r = fo(l.type), x = r?.displayName || r?.name || "";
|
|
857
872
|
if (r === te || x === "HeaderCell") {
|
|
858
873
|
const s = n.width || `minmax(${e}px, 1fr)`;
|
|
859
874
|
i.push(s), o.push(n.compactWidth || s);
|
|
860
|
-
const a = typeof n.label == "string" ? n.label : void 0, u =
|
|
861
|
-
!a && u === "" && n.children != null && se("Table", "headerCell-missing-label", "Table.HeaderCell with JSX children must set `label` for stack-mode rendering."), c.push(
|
|
875
|
+
const a = typeof n.label == "string" ? n.label : void 0, u = mo(n.children).trim(), m = a ?? u;
|
|
876
|
+
!a && u === "" && n.children != null && se("Table", "headerCell-missing-label", "Table.HeaderCell with JSX children must set `label` for stack-mode rendering."), c.push(m);
|
|
862
877
|
} else n.children && p(n.children);
|
|
863
878
|
});
|
|
864
879
|
}
|
|
@@ -868,10 +883,10 @@ function mo(t, e) {
|
|
|
868
883
|
labels: c
|
|
869
884
|
};
|
|
870
885
|
}
|
|
871
|
-
function
|
|
886
|
+
function yo(t) {
|
|
872
887
|
const e = R.c(13), {
|
|
873
888
|
children: i
|
|
874
|
-
} = t, o =
|
|
889
|
+
} = t, o = E(null);
|
|
875
890
|
let c;
|
|
876
891
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (c = {
|
|
877
892
|
start: !1,
|
|
@@ -906,14 +921,14 @@ function ho(t) {
|
|
|
906
921
|
const a = p.end && y.edgeFadeVisible;
|
|
907
922
|
let u;
|
|
908
923
|
e[7] !== a ? (u = /* @__PURE__ */ w("div", { "data-element-src": "Table/Table.tsx:200", "aria-hidden": !0, ...C(S.div, y.edgeFade, y.edgeFadeRight, a) }), e[7] = a, e[8] = u) : u = e[8];
|
|
909
|
-
let
|
|
910
|
-
return e[9] !== r || e[10] !== s || e[11] !== u ? (
|
|
924
|
+
let m;
|
|
925
|
+
return e[9] !== r || e[10] !== s || e[11] !== u ? (m = /* @__PURE__ */ _("div", { "data-element-src": "Table/Table.tsx:192", ...C(S.div, y.scrollFrame), children: [
|
|
911
926
|
r,
|
|
912
927
|
s,
|
|
913
928
|
u
|
|
914
|
-
] }), e[9] = r, e[10] = s, e[11] = u, e[12] =
|
|
929
|
+
] }), e[9] = r, e[10] = s, e[11] = u, e[12] = m) : m = e[12], m;
|
|
915
930
|
}
|
|
916
|
-
function
|
|
931
|
+
function vo({
|
|
917
932
|
children: t,
|
|
918
933
|
variant: e = "default",
|
|
919
934
|
size: i = "md",
|
|
@@ -922,11 +937,11 @@ function yo({
|
|
|
922
937
|
sortChip: p,
|
|
923
938
|
pagination: d
|
|
924
939
|
}) {
|
|
925
|
-
const l =
|
|
940
|
+
const l = E(null), {
|
|
926
941
|
template: n,
|
|
927
942
|
compactTemplate: r,
|
|
928
943
|
labels: x
|
|
929
|
-
} =
|
|
944
|
+
} = ho(t, c);
|
|
930
945
|
n && (l.current = n);
|
|
931
946
|
const s = /* @__PURE__ */ w("div", { "data-element-src": "Table/Table.tsx:253", role: "table", ...C(
|
|
932
947
|
S.div,
|
|
@@ -941,7 +956,7 @@ function yo({
|
|
|
941
956
|
o && y.rootResponsive
|
|
942
957
|
), children: t }), u = /* @__PURE__ */ _(re, { children: [
|
|
943
958
|
p,
|
|
944
|
-
o ? /* @__PURE__ */ w(
|
|
959
|
+
o ? /* @__PURE__ */ w(yo, { children: s }) : s,
|
|
945
960
|
d
|
|
946
961
|
] });
|
|
947
962
|
return /* @__PURE__ */ w(ce.Provider, { value: {
|
|
@@ -952,14 +967,14 @@ function yo({
|
|
|
952
967
|
inferredTemplateRef: l
|
|
953
968
|
}, children: o ? /* @__PURE__ */ w("div", { "data-element-src": "Table/Table.tsx:295", ...C(S.div, y.rootContainer), children: u }) : u });
|
|
954
969
|
}
|
|
955
|
-
function
|
|
970
|
+
function $o(t) {
|
|
956
971
|
const e = R.c(2), {
|
|
957
972
|
children: i
|
|
958
973
|
} = t;
|
|
959
974
|
let o;
|
|
960
975
|
return e[0] !== i ? (o = /* @__PURE__ */ w(Z.Provider, { value: !0, children: /* @__PURE__ */ w("div", { "data-element-src": "Table/Table.tsx:305", role: "rowgroup", ...C(S.div, y.header), children: i }) }), e[0] = i, e[1] = o) : o = e[1], o;
|
|
961
976
|
}
|
|
962
|
-
function
|
|
977
|
+
function wo(t) {
|
|
963
978
|
const e = R.c(19), {
|
|
964
979
|
children: i
|
|
965
980
|
} = t, {
|
|
@@ -967,10 +982,10 @@ function $o(t) {
|
|
|
967
982
|
} = J();
|
|
968
983
|
let c, p, d, l, n, r;
|
|
969
984
|
if (e[0] !== i || e[1] !== o) {
|
|
970
|
-
const a =
|
|
971
|
-
p = Z.Provider, r = !1, c =
|
|
985
|
+
const a = K.toArray(i);
|
|
986
|
+
p = Z.Provider, r = !1, c = ko.div, d = "rowgroup", l = y.body;
|
|
972
987
|
let u;
|
|
973
|
-
e[8] !== o ? (u = (
|
|
988
|
+
e[8] !== o ? (u = (m, g) => o !== "striped" ? m : /* @__PURE__ */ w(de.Provider, { value: g, children: m }, m.key ?? g), e[8] = o, e[9] = u) : u = e[9], n = a.map(u), e[0] = i, e[1] = o, e[2] = c, e[3] = p, e[4] = d, e[5] = l, e[6] = n, e[7] = r;
|
|
974
989
|
} else
|
|
975
990
|
c = e[2], p = e[3], d = e[4], l = e[5], n = e[6], r = e[7];
|
|
976
991
|
let x;
|
|
@@ -978,8 +993,8 @@ function $o(t) {
|
|
|
978
993
|
let s;
|
|
979
994
|
return e[15] !== p || e[16] !== r || e[17] !== x ? (s = /* @__PURE__ */ w(p, { value: r, children: x }), e[15] = p, e[16] = r, e[17] = x, e[18] = s) : s = e[18], s;
|
|
980
995
|
}
|
|
981
|
-
const de = G(-1),
|
|
982
|
-
function
|
|
996
|
+
const de = G(-1), To = 'button, a, input, select, textarea, [role="button"], [role="link"], [role="checkbox"], [role="menuitem"], [role="switch"], [role="tab"], [contenteditable="true"]';
|
|
997
|
+
function Co(t) {
|
|
983
998
|
const e = R.c(17), {
|
|
984
999
|
children: i,
|
|
985
1000
|
onClick: o,
|
|
@@ -989,19 +1004,19 @@ function To(t) {
|
|
|
989
1004
|
} = J(), d = H(Z), l = H(de), n = l >= 0 && l % 2 === 1;
|
|
990
1005
|
let r;
|
|
991
1006
|
if (e[0] !== c || e[1] !== i || e[2] !== n || e[3] !== d || e[4] !== o || e[5] !== p) {
|
|
992
|
-
const x =
|
|
1007
|
+
const x = K.toArray(i), s = o !== void 0 && !d;
|
|
993
1008
|
let a;
|
|
994
1009
|
e[7] !== s || e[8] !== o ? (a = s ? (h) => {
|
|
995
1010
|
const T = h.target;
|
|
996
|
-
T instanceof Element && T.closest(
|
|
1011
|
+
T instanceof Element && T.closest(To) || o();
|
|
997
1012
|
} : void 0, e[7] = s, e[8] = o, e[9] = a) : a = e[9];
|
|
998
1013
|
let u;
|
|
999
1014
|
e[10] !== s || e[11] !== o ? (u = s ? (h) => {
|
|
1000
1015
|
(h.key === "Enter" || h.key === " ") && o();
|
|
1001
1016
|
} : void 0, e[10] = s, e[11] = o, e[12] = u) : u = e[12];
|
|
1002
|
-
const
|
|
1017
|
+
const m = !d && y.bodyRow, g = !d && p === "striped" && n && y.stripedEven, v = s && y.clickableRow;
|
|
1003
1018
|
let $;
|
|
1004
|
-
e[13] !==
|
|
1019
|
+
e[13] !== m || e[14] !== g || e[15] !== v ? ($ = [y.row, m, g, v], e[13] = m, e[14] = g, e[15] = v, e[16] = $) : $ = e[16], r = /* @__PURE__ */ w("div", { "data-element-src": "Table/Table.tsx:377", role: "row", tabIndex: s ? 0 : void 0, "aria-label": s ? c : void 0, onClick: a, onKeyDown: u, ...C(S.div, $), children: x.map((h, T) => /* @__PURE__ */ w(ee.Provider, { value: {
|
|
1005
1020
|
index: T,
|
|
1006
1021
|
total: x.length
|
|
1007
1022
|
}, children: h }, h.key ?? T)) }), e[0] = c, e[1] = i, e[2] = n, e[3] = d, e[4] = o, e[5] = p, e[6] = r;
|
|
@@ -1030,7 +1045,7 @@ function te(t) {
|
|
|
1030
1045
|
return e[4] !== o || e[5] !== i || e[6] !== a ? (u = /* @__PURE__ */ w("div", { "data-element-src": "Table/Table.tsx:463", role: "columnheader", "aria-label": o, ...C(S.div, a), children: i }), e[4] = o, e[5] = i, e[6] = a, e[7] = u) : u = e[7], u;
|
|
1031
1046
|
}
|
|
1032
1047
|
te.displayName = "HeaderCell";
|
|
1033
|
-
function
|
|
1048
|
+
function So(t) {
|
|
1034
1049
|
const e = R.c(16), {
|
|
1035
1050
|
children: i,
|
|
1036
1051
|
isActions: o
|
|
@@ -1042,9 +1057,9 @@ function Co(t) {
|
|
|
1042
1057
|
} = J(), {
|
|
1043
1058
|
index: n,
|
|
1044
1059
|
total: r
|
|
1045
|
-
} = H(ee), x = p === "bordered" && n === r - 1, s = d[n] ?? "", a = c === "sm" ? y.cellSm : y.cellMd, u = p === "bordered" && y.borderedCell,
|
|
1060
|
+
} = H(ee), x = p === "bordered" && n === r - 1, s = d[n] ?? "", a = c === "sm" ? y.cellSm : y.cellMd, u = p === "bordered" && y.borderedCell, m = x && y.borderedCellLast, g = o && y.cellActions;
|
|
1046
1061
|
let v;
|
|
1047
|
-
e[0] !== a || e[1] !== u || e[2] !==
|
|
1062
|
+
e[0] !== a || e[1] !== u || e[2] !== m || e[3] !== g ? (v = [y.cell, a, u, m, g], e[0] = a, e[1] = u, e[2] = m, e[3] = g, e[4] = v) : v = e[4];
|
|
1048
1063
|
let $;
|
|
1049
1064
|
e[5] !== o || e[6] !== s || e[7] !== l ? ($ = l && !o && s !== "" ? /* @__PURE__ */ w("span", { "data-element-src": "Table/Table.tsx:503", ...C(S.span, y.cellLabel), children: s }) : null, e[5] = o, e[6] = s, e[7] = l, e[8] = $) : $ = e[8];
|
|
1050
1065
|
let h;
|
|
@@ -1055,27 +1070,27 @@ function Co(t) {
|
|
|
1055
1070
|
h
|
|
1056
1071
|
] }), e[12] = v, e[13] = $, e[14] = h, e[15] = T) : T = e[15], T;
|
|
1057
1072
|
}
|
|
1058
|
-
const
|
|
1073
|
+
const Wo = {
|
|
1059
1074
|
/** @deprecated Wrap behaviour is built into Table.Root. Drop this wrapper from new code. */
|
|
1060
|
-
Container:
|
|
1061
|
-
Root:
|
|
1062
|
-
Header:
|
|
1063
|
-
Body:
|
|
1064
|
-
Row:
|
|
1075
|
+
Container: go,
|
|
1076
|
+
Root: vo,
|
|
1077
|
+
Header: $o,
|
|
1078
|
+
Body: wo,
|
|
1079
|
+
Row: Co,
|
|
1065
1080
|
HeaderCell: te,
|
|
1066
|
-
Cell:
|
|
1067
|
-
},
|
|
1081
|
+
Cell: So
|
|
1082
|
+
}, Eo = Wo;
|
|
1068
1083
|
export {
|
|
1069
|
-
|
|
1070
|
-
|
|
1084
|
+
wo as B,
|
|
1085
|
+
So as C,
|
|
1071
1086
|
te as H,
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1087
|
+
zo as M,
|
|
1088
|
+
Co as R,
|
|
1089
|
+
Eo as T,
|
|
1090
|
+
$o as a,
|
|
1091
|
+
Io as b,
|
|
1092
|
+
vo as c,
|
|
1093
|
+
Wo as d,
|
|
1079
1094
|
y as s
|
|
1080
1095
|
};
|
|
1081
|
-
//# sourceMappingURL=Table-
|
|
1096
|
+
//# sourceMappingURL=Table-JTgcR_Fh.js.map
|