@duro-app/ui 5.28.0 → 5.30.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.
Files changed (32) hide show
  1. package/dist/{Table-Cw1B14R3.js → Table-ypIvytAS.js} +677 -664
  2. package/dist/Table-ypIvytAS.js.map +1 -0
  3. package/dist/components/List/List.d.ts.map +1 -1
  4. package/dist/components/List/List.stories.d.ts +1 -0
  5. package/dist/components/List/List.stories.d.ts.map +1 -1
  6. package/dist/components/List/styles.css.d.ts +19 -0
  7. package/dist/components/List/styles.css.d.ts.map +1 -1
  8. package/dist/components/Menu/Menu.d.ts +3 -1
  9. package/dist/components/Menu/Menu.d.ts.map +1 -1
  10. package/dist/components/Menu/Menu.stories.d.ts +1 -0
  11. package/dist/components/Menu/Menu.stories.d.ts.map +1 -1
  12. package/dist/components/Menu/MenuContext.d.ts +2 -1
  13. package/dist/components/Menu/MenuContext.d.ts.map +1 -1
  14. package/dist/components/Menu/styles.css.d.ts +4 -0
  15. package/dist/components/Menu/styles.css.d.ts.map +1 -1
  16. package/dist/components/Menu/useMenuRoot.d.ts.map +1 -1
  17. package/dist/index.js +2335 -2295
  18. package/dist/index.js.map +1 -1
  19. package/dist/table.js +1 -1
  20. package/package.json +2 -2
  21. package/src/components/List/List.meta.ts +1 -1
  22. package/src/components/List/List.stories.tsx +54 -0
  23. package/src/components/List/List.tsx +49 -11
  24. package/src/components/List/styles.css.ts +22 -1
  25. package/src/components/Menu/Menu.meta.ts +1 -1
  26. package/src/components/Menu/Menu.native.tsx +18 -3
  27. package/src/components/Menu/Menu.stories.tsx +42 -0
  28. package/src/components/Menu/Menu.tsx +13 -5
  29. package/src/components/Menu/MenuContext.ts +2 -1
  30. package/src/components/Menu/styles.css.ts +4 -0
  31. package/src/components/Menu/useMenuRoot.ts +15 -6
  32. package/dist/Table-Cw1B14R3.js.map +0 -1
@@ -1,8 +1,8 @@
1
- import { jsx as W, jsxs as ae, Fragment as Pe } from "react/jsx-runtime";
2
- import { c as R, m as C, d as H } from "./compiler-runtime-BuugS4D0.js";
3
- import { useContext as O, createContext as A, useId as U, useRef as I, useLayoutEffect as le, useState as ee, useCallback as we, useEffect as _, Children as ce, isValidElement as Ee } from "react";
4
- import { createPortal as Oe } from "react-dom";
5
- const Ge = {
1
+ import { jsx as T, jsxs as ue, Fragment as Fe } from "react/jsx-runtime";
2
+ import { c as B, m as j, d as z } from "./compiler-runtime-BuugS4D0.js";
3
+ import { useContext as D, createContext as F, useId as Z, useRef as q, useLayoutEffect as xe, useState as ee, useCallback as $e, useEffect as V, Children as pe, isValidElement as Xe } from "react";
4
+ import { createPortal as Ve } from "react-dom";
5
+ const _e = {
6
6
  xs: 4,
7
7
  sm: 8,
8
8
  ms: 12,
@@ -11,7 +11,7 @@ const Ge = {
11
11
  xl: 32,
12
12
  xxl: 48,
13
13
  xxxl: 64
14
- }, Hr = {
14
+ }, Ir = {
15
15
  instant: 0,
16
16
  minimal: 1,
17
17
  quick: 120,
@@ -21,7 +21,7 @@ const Ge = {
21
21
  slow: 280,
22
22
  slower: 300,
23
23
  stagger: 100
24
- }, De = ["touchTarget", "controlSm", "controlMd", "controlLg", "indicator", "indicatorDot", "checkMarkW", "checkMarkH", "switchTrackW", "switchTrackH", "switchThumb", "iconButton", "iconButtonSm", "spinnerSm", "spinnerMd", "spinnerLg", "glyphXs", "glyphSm", "glyphMd", "iconSm", "iconMd", "iconLg", "iconXl", "iconXxl", "thumbSm", "mediaTileMinW", "glyphClampMax", "timeReadoutW", "navMarkerW", "navMarkerH", "divider", "tabIndicator", "edgeFade", "scrollbar", "swatchW", "swatchH", "labelMinW", "popupMinW", "listMaxH", "listMaxHSm", "dialogSm", "dialogMd", "dialogLg", "panelSm", "panelMd", "panelLg", "toastMaxW", "gridColSm", "gridColMd", "pageSm", "pageMd", "pageLg", "sidebarW", "pageXs", "pageXl", "asideW", "gridColXs", "fieldMinWSm", "fieldMinW", "popoverWSm", "popoverW", "popupMaxW", "meterH", "skeletonChipW", "dropZoneMinH", "canvasMinH", "editorMinH", "toolbarH", "embedW", "colorPickerW", "colorAreaH", "colorTrackH", "colorSwatch", "colorPreviewH", "handle", "chip", "placeholderMinH", "previewMaxH", "barH", "sheetGrabberW", "sheetGrabberH", "readoutW", "sliderW", "paletteMinW", "deviceBarW", "timeGutterW", "dayHeaderH", "timelineLabelW", "appBarH", "dragThumbW", "dragThumbH"], Q = {
24
+ }, Ke = ["touchTarget", "controlSm", "controlMd", "controlLg", "indicator", "indicatorDot", "checkMarkW", "checkMarkH", "switchTrackW", "switchTrackH", "switchThumb", "iconButton", "iconButtonSm", "spinnerSm", "spinnerMd", "spinnerLg", "glyphXs", "glyphSm", "glyphMd", "iconSm", "iconMd", "iconLg", "iconXl", "iconXxl", "thumbSm", "mediaTileMinW", "glyphClampMax", "timeReadoutW", "navMarkerW", "navMarkerH", "divider", "tabIndicator", "edgeFade", "scrollbar", "swatchW", "swatchH", "labelMinW", "popupMinW", "listMaxH", "listMaxHSm", "dialogSm", "dialogMd", "dialogLg", "panelSm", "panelMd", "panelLg", "toastMaxW", "gridColSm", "gridColMd", "pageSm", "pageMd", "pageLg", "sidebarW", "pageXs", "pageXl", "asideW", "gridColXs", "fieldMinWSm", "fieldMinW", "popoverWSm", "popoverW", "popupMaxW", "meterH", "skeletonChipW", "dropZoneMinH", "canvasMinH", "editorMinH", "toolbarH", "embedW", "colorPickerW", "colorAreaH", "colorTrackH", "colorSwatch", "colorPreviewH", "handle", "chip", "placeholderMinH", "previewMaxH", "barH", "sheetGrabberW", "sheetGrabberH", "readoutW", "sliderW", "paletteMinW", "deviceBarW", "timeGutterW", "dayHeaderH", "timelineLabelW", "appBarH", "dragThumbW", "dragThumbH"], Q = {
25
25
  touchTarget: 44,
26
26
  controlSm: 28,
27
27
  controlMd: 39,
@@ -113,13 +113,13 @@ const Ge = {
113
113
  appBarH: 61,
114
114
  dragThumbW: 132,
115
115
  dragThumbH: 99
116
- }, jr = {
116
+ }, qr = {
117
117
  sm: Q.iconSm,
118
118
  md: Q.iconMd,
119
119
  lg: Q.iconLg,
120
120
  xl: Q.iconXl,
121
121
  xxl: Q.iconXxl
122
- }, Ae = {
122
+ }, Ne = {
123
123
  bg: "var(--bg-xqkwqtp)",
124
124
  bgCard: "var(--bgCard-xj2l5r)",
125
125
  bgCardHover: "var(--bgCardHover-xlxk7vw)",
@@ -196,30 +196,30 @@ const Ge = {
196
196
  * This source code is licensed under the MIT license found in the
197
197
  * LICENSE file in the root directory of this source tree.
198
198
  */
199
- const be = {};
200
- function Fe(o) {
201
- process.env.NODE_ENV !== "test" && be[o] || (be[o] = !0, console.error(`[error] React Strict DOM: ${o}`));
199
+ const we = {};
200
+ function Ye(o) {
201
+ process.env.NODE_ENV !== "test" && we[o] || (we[o] = !0, console.error(`[error] React Strict DOM: ${o}`));
202
202
  }
203
- const Xe = /* @__PURE__ */ new Set(["alt", "aria-activedescendant", "aria-atomic", "aria-autocomplete", "aria-busy", "aria-checked", "aria-colcount", "aria-colindex", "aria-colindextext", "aria-colspan", "aria-controls", "aria-current", "aria-describedby", "aria-details", "aria-disabled", "aria-errormessage", "aria-expanded", "aria-flowto", "aria-haspopup", "aria-hidden", "aria-invalid", "aria-keyshortcuts", "aria-label", "aria-labelledby", "aria-level", "aria-live", "aria-modal", "aria-multiline", "aria-multiselectable", "aria-orientation", "aria-owns", "aria-placeholder", "aria-posinset", "aria-pressed", "aria-readonly", "aria-required", "aria-roledescription", "aria-rowcount", "aria-rowindex", "aria-rowindextext", "aria-rowspan", "aria-selected", "aria-setsize", "aria-sort", "aria-valuemax", "aria-valuemin", "aria-valuenow", "aria-valuetext", "autoCapitalize", "autoComplete", "autoFocus", "checked", "children", "crossOrigin", "decoding", "defaultChecked", "defaultValue", "dir", "disabled", "download", "draggable", "elementTiming", "enterKeyHint", "fetchPriority", "for", "height", "hidden", "href", "id", "inert", "inputMode", "label", "lang", "loading", "max", "maxLength", "min", "minLength", "multiple", "name", "onAuxClick", "onBeforeInput", "onBlur", "onChange", "onClick", "onContextMenu", "onCopy", "onCut", "onError", "onFocus", "onFocusIn", "onFocusOut", "onFullscreenChange", "onFullscreenError", "onGotPointerCapture", "onInput", "onInvalid", "onKeyDown", "onKeyUp", "onLoad", "onLostPointerCapture", "onPaste", "onPointerCancel", "onPointerDown", "onPointerEnter", "onPointerLeave", "onPointerMove", "onPointerOut", "onPointerOver", "onPointerUp", "onScroll", "onSelect", "onSelectionChange", "onWheel", "placeholder", "readOnly", "referrerPolicy", "rel", "required", "role", "rows", "selected", "spellCheck", "src", "srcSet", "step", "style", "tabIndex", "target", "type", "value", "width", "suppressHydrationWarning", "onMouseDown", "onMouseEnter", "onMouseLeave", "onMouseMove", "onMouseOut", "onMouseOver", "onMouseUp", "onTouchCancel", "onTouchEnd", "onTouchMove", "onTouchStart"]);
204
- function Ve(o) {
205
- return Xe.has(o) || o.indexOf("data-") > -1;
203
+ const Ze = /* @__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"]);
204
+ function Ue(o) {
205
+ return Ze.has(o) || o.indexOf("data-") > -1;
206
206
  }
207
- var xe = {};
208
- Object.defineProperty(xe, "__esModule", {
207
+ var me = {};
208
+ Object.defineProperty(me, "__esModule", {
209
209
  value: !0
210
210
  });
211
- var Me = xe.styleq = void 0, _e = /* @__PURE__ */ new WeakMap(), Ke = "$$css";
212
- function Te(o) {
211
+ var Ce = me.styleq = void 0, Je = /* @__PURE__ */ new WeakMap(), Qe = "$$css";
212
+ function He(o) {
213
213
  var e, t, r;
214
214
  return o != null && (e = o.disableCache === !0, t = o.disableMix === !0, r = o.transform), function() {
215
- for (var n = [], c = "", a = null, s = "", i = e ? null : _e, d = new Array(arguments.length), u = 0; u < arguments.length; u++)
216
- d[u] = arguments[u];
217
- for (; d.length > 0; ) {
218
- var p = d.pop();
215
+ for (var n = [], d = "", s = null, l = "", i = e ? null : Je, a = new Array(arguments.length), u = 0; u < arguments.length; u++)
216
+ a[u] = arguments[u];
217
+ for (; a.length > 0; ) {
218
+ var p = a.pop();
219
219
  if (!(p == null || p === !1)) {
220
220
  if (Array.isArray(p)) {
221
221
  for (var x = 0; x < p.length; x++)
222
- d.push(p[x]);
222
+ a.push(p[x]);
223
223
  continue;
224
224
  }
225
225
  var h = r != null ? r(p) : p;
@@ -227,82 +227,82 @@ function Te(o) {
227
227
  var g = "";
228
228
  if (i != null && i.has(h)) {
229
229
  var b = i.get(h);
230
- b != null && (g = b[0], s = b[2], n.push.apply(n, b[1]), i = b[3]);
230
+ b != null && (g = b[0], l = b[2], n.push.apply(n, b[1]), i = b[3]);
231
231
  } else {
232
- var f = [];
232
+ var y = [];
233
233
  for (var m in h) {
234
- var v = h[m];
235
- if (m === Ke) {
236
- var S = h[m];
237
- S !== !0 && (s = s ? S + "; " + s : S);
234
+ var f = h[m];
235
+ if (m === Qe) {
236
+ var W = h[m];
237
+ W !== !0 && (l = l ? W + "; " + l : W);
238
238
  continue;
239
239
  }
240
- typeof v == "string" || v === null ? n.includes(m) || (n.push(m), i != null && f.push(m), typeof v == "string" && (g += g ? " " + v : v)) : console.error("styleq: ".concat(m, " typeof ").concat(String(v), ' is not "string" or "null".'));
240
+ typeof f == "string" || f === null ? n.includes(m) || (n.push(m), i != null && y.push(m), typeof f == "string" && (g += g ? " " + f : f)) : console.error("styleq: ".concat(m, " typeof ").concat(String(f), ' is not "string" or "null".'));
241
241
  }
242
242
  if (i != null) {
243
- var $ = /* @__PURE__ */ new WeakMap();
244
- i.set(h, [g, f, s, $]), i = $;
243
+ var S = /* @__PURE__ */ new WeakMap();
244
+ i.set(h, [g, y, l, S]), i = S;
245
245
  }
246
246
  }
247
- g && (c = c ? g + " " + c : g);
247
+ g && (d = d ? g + " " + d : g);
248
248
  } else if (t)
249
- a == null && (a = {}), a = Object.assign({}, h, a);
249
+ s == null && (s = {}), s = Object.assign({}, h, s);
250
250
  else {
251
- var M = null;
252
- for (var j in h) {
253
- var z = h[j];
254
- z !== void 0 && (n.includes(j) || (z != null && (a == null && (a = {}), M == null && (M = {}), M[j] = z), n.push(j), i = null));
251
+ var $ = null;
252
+ for (var C in h) {
253
+ var H = h[C];
254
+ H !== void 0 && (n.includes(C) || (H != null && (s == null && (s = {}), $ == null && ($ = {}), $[C] = H), n.push(C), i = null));
255
255
  }
256
- M != null && (a = Object.assign(M, a));
256
+ $ != null && (s = Object.assign($, s));
257
257
  }
258
258
  }
259
259
  }
260
- var E = [c, a, s];
260
+ var E = [d, s, l];
261
261
  return E;
262
262
  };
263
263
  }
264
- var Ne = Me = xe.styleq = Te();
265
- Ne.factory = Te;
266
- const Ye = Me.factory({
264
+ var et = Ce = me.styleq = He();
265
+ et.factory = He;
266
+ const tt = Ce.factory({
267
267
  disableMix: !0
268
268
  });
269
- function Ze(...o) {
270
- const [e, t, r] = Ye(o), l = {};
271
- if (e != null && e !== "" && (l.className = e), t != null && (l.style = t), r != null && r !== "") {
272
- const n = r.split(";"), c = {};
273
- for (const a of n) {
274
- const s = a.trim(), [i, d] = s.split(":");
275
- d != null && (c[i] = c[i] != null ? `${c[i]},${d}` : d);
269
+ function ot(...o) {
270
+ const [e, t, r] = tt(o), c = {};
271
+ if (e != null && e !== "" && (c.className = e), t != null && (c.style = t), r != null && r !== "") {
272
+ const n = r.split(";"), d = {};
273
+ for (const s of n) {
274
+ const l = s.trim(), [i, a] = l.split(":");
275
+ a != null && (d[i] = d[i] != null ? `${d[i]},${a}` : a);
276
276
  }
277
- l["data-style-src"] = Object.keys(c).map((a) => `${a}:${c[a]}`).join("; ");
277
+ c["data-style-src"] = Object.keys(d).map((s) => `${s}:${d[s]}`).join("; ");
278
278
  }
279
- return l;
279
+ return c;
280
280
  }
281
- function Ue(o) {
281
+ function rt(o) {
282
282
  Object.keys(o).forEach((e) => {
283
- Ve(e) || (Fe(`invalid prop "${e}"`), delete o[e]);
283
+ Ue(e) || (Ye(`invalid prop "${e}"`), delete o[e]);
284
284
  });
285
285
  }
286
- function k(o, e) {
286
+ function v(o, e) {
287
287
  const t = {
288
288
  $$css: !0,
289
289
  "debug::name": `html-${o}`
290
290
  };
291
291
  function r({
292
- ref: l,
292
+ ref: c,
293
293
  ...n
294
294
  }) {
295
295
  const {
296
- for: c,
297
- style: a,
298
- ...s
299
- } = n, i = s;
300
- Ue(i), c != null && (i.htmlFor = c), n.role != null && (i.role = n.role === "none" ? "presentation" : n.role), o === "button" ? i.type = i.type ? i.type : "button" : (o === "input" || o === "textarea") && (i.dir = i.dir ? i.dir : "auto");
301
- const d = Ze([t, e, a]);
302
- return W(o, {
296
+ for: d,
297
+ style: s,
298
+ ...l
299
+ } = n, i = l;
300
+ rt(i), d != null && (i.htmlFor = d), n.role != null && (i.role = n.role === "none" ? "presentation" : n.role), o === "button" ? i.type = i.type ? i.type : "button" : (o === "input" || o === "textarea") && (i.dir = i.dir ? i.dir : "auto");
301
+ const a = ot([t, e, s]);
302
+ return T(o, {
303
303
  ...i,
304
- ...d,
305
- ref: l
304
+ ...a,
305
+ ref: c
306
306
  });
307
307
  }
308
308
  return r.displayName = `html.${o}`, r;
@@ -375,118 +375,118 @@ const w = {
375
375
  "resize-kHenm0": "resize-x288g5",
376
376
  $$css: ".pnpm:web/index.js:276"
377
377
  }
378
- }, Je = w.inline, Qe = w.block, et = w.block, tt = w.inline, ot = w.inline, rt = w.inline, nt = w.block, it = null, st = [w.inlineblock, w.button], at = [w.inline, w.codePre], lt = null, ct = w.block, dt = w.inline, ut = w.block, xt = w.block, pt = w.block, Z = [w.block, w.heading], gt = w.block, ht = [w.block, w.hr], mt = w.inline, bt = w.img, ft = [w.inlineblock, w.input], vt = null, kt = null, yt = w.inline, wt = w.block, Mt = w.block, Tt = w.inline, Wt = w.block, St = [w.list, w.block], $t = null, Ct = null, Ht = w.block, jt = [w.block, w.codePre], zt = null, Rt = w.block, Bt = w.inlineblock, Lt = w.inline, It = [w.inline, w.strong], qt = w.inline, Pt = w.inline, Et = [w.inlineblock, w.textarea], Ot = null, Gt = [w.list, w.block], y = {
379
- a: Je,
380
- article: Qe,
381
- aside: et,
382
- b: tt,
383
- bdi: ot,
384
- bdo: rt,
385
- blockquote: nt,
386
- br: it,
387
- button: st,
388
- code: at,
389
- del: lt,
390
- div: ct,
391
- em: dt,
392
- fieldset: ut,
393
- footer: xt,
394
- form: pt,
395
- h1: Z,
396
- h2: Z,
397
- h3: Z,
398
- h4: Z,
399
- h5: Z,
400
- h6: Z,
401
- header: gt,
402
- hr: ht,
403
- i: mt,
404
- img: bt,
405
- input: ft,
406
- ins: vt,
407
- kbd: kt,
408
- label: yt,
409
- li: wt,
410
- main: Mt,
411
- mark: Tt,
412
- nav: Wt,
413
- ol: St,
414
- optgroup: $t,
415
- option: Ct,
416
- p: Ht,
417
- pre: jt,
418
- s: zt,
419
- section: Rt,
420
- select: Bt,
421
- span: Lt,
422
- strong: It,
423
- sub: qt,
424
- sup: Pt,
425
- textarea: Et,
426
- u: Ot,
427
- ul: Gt
428
- }, Dt = k("a", y.a), At = k("article", y.article), Ft = k("aside", y.aside), Xt = k("b", y.b), Vt = k("bdi", y.bdi), _t = k("bdo", y.bdo), Kt = k("blockquote", y.blockquote), Nt = k("br", y.br), Yt = k("button", y.button), Zt = k("code", y.code), Ut = k("del", y.del), Jt = k("div", y.div), Qt = k("em", y.em), eo = k("fieldset", y.fieldset), to = k("footer", y.footer), oo = k("form", y.form), ro = k("h1", y.h1), no = k("h2", y.h2), io = k("h3", y.h3), so = k("h4", y.h4), ao = k("h5", y.h5), lo = k("h6", y.h6), co = k("header", y.header), uo = k("hr", y.hr), xo = k("i", y.i), po = k("img", y.img), go = k("input", y.input), ho = k("ins", y.ins), mo = k("kbd", y.kbd), bo = k("label", y.label), fo = k("li", y.li), vo = k("main", y.main), ko = k("mark", y.mark), yo = k("nav", y.nav), wo = k("ol", y.ol), Mo = k("optgroup", y.optgroup), To = k("option", y.option), Wo = k("p", y.p), So = k("pre", y.pre), $o = k("s", y.s), Co = k("section", y.section), Ho = k("select", y.select), jo = k("span", y.span), zo = k("strong", y.strong), Ro = k("sub", y.sub), Bo = k("sup", y.sup), Lo = k("textarea", y.textarea), Io = k("u", y.u), qo = k("ul", y.ul);
429
- var Po = /* @__PURE__ */ Object.freeze({
378
+ }, nt = w.inline, it = w.block, st = w.block, at = w.inline, lt = w.inline, ct = w.inline, dt = w.block, ut = null, xt = [w.inlineblock, w.button], pt = [w.inline, w.codePre], gt = null, ht = w.block, mt = w.inline, bt = w.block, ft = w.block, vt = w.block, Y = [w.block, w.heading], kt = w.block, yt = [w.block, w.hr], wt = w.inline, Mt = w.img, Tt = [w.inlineblock, w.input], Wt = null, St = null, $t = w.inline, Ct = w.block, Ht = w.block, jt = w.inline, zt = w.block, Rt = [w.list, w.block], Bt = null, Lt = null, It = w.block, qt = [w.block, w.codePre], Pt = null, Et = w.block, Ot = w.inlineblock, Gt = w.inline, Dt = [w.inline, w.strong], At = w.inline, Ft = w.inline, Xt = [w.inlineblock, w.textarea], Vt = null, _t = [w.list, w.block], k = {
379
+ a: nt,
380
+ article: it,
381
+ aside: st,
382
+ b: at,
383
+ bdi: lt,
384
+ bdo: ct,
385
+ blockquote: dt,
386
+ br: ut,
387
+ button: xt,
388
+ code: pt,
389
+ del: gt,
390
+ div: ht,
391
+ em: mt,
392
+ fieldset: bt,
393
+ footer: ft,
394
+ form: vt,
395
+ h1: Y,
396
+ h2: Y,
397
+ h3: Y,
398
+ h4: Y,
399
+ h5: Y,
400
+ h6: Y,
401
+ header: kt,
402
+ hr: yt,
403
+ i: wt,
404
+ img: Mt,
405
+ input: Tt,
406
+ ins: Wt,
407
+ kbd: St,
408
+ label: $t,
409
+ li: Ct,
410
+ main: Ht,
411
+ mark: jt,
412
+ nav: zt,
413
+ ol: Rt,
414
+ optgroup: Bt,
415
+ option: Lt,
416
+ p: It,
417
+ pre: qt,
418
+ s: Pt,
419
+ section: Et,
420
+ select: Ot,
421
+ span: Gt,
422
+ strong: Dt,
423
+ sub: At,
424
+ sup: Ft,
425
+ textarea: Xt,
426
+ u: Vt,
427
+ ul: _t
428
+ }, Kt = v("a", k.a), Nt = v("article", k.article), Yt = v("aside", k.aside), Zt = v("b", k.b), Ut = v("bdi", k.bdi), Jt = v("bdo", k.bdo), Qt = v("blockquote", k.blockquote), eo = v("br", k.br), to = v("button", k.button), oo = v("code", k.code), ro = v("del", k.del), no = v("div", k.div), io = v("em", k.em), so = v("fieldset", k.fieldset), ao = v("footer", k.footer), lo = v("form", k.form), co = v("h1", k.h1), uo = v("h2", k.h2), xo = v("h3", k.h3), po = v("h4", k.h4), go = v("h5", k.h5), ho = v("h6", k.h6), mo = v("header", k.header), bo = v("hr", k.hr), fo = v("i", k.i), vo = v("img", k.img), ko = v("input", k.input), yo = v("ins", k.ins), wo = v("kbd", k.kbd), Mo = v("label", k.label), To = v("li", k.li), Wo = v("main", k.main), So = v("mark", k.mark), $o = v("nav", k.nav), Co = v("ol", k.ol), Ho = v("optgroup", k.optgroup), jo = v("option", k.option), zo = v("p", k.p), Ro = v("pre", k.pre), Bo = v("s", k.s), Lo = v("section", k.section), Io = v("select", k.select), qo = v("span", k.span), Po = v("strong", k.strong), Eo = v("sub", k.sub), Oo = v("sup", k.sup), Go = v("textarea", k.textarea), Do = v("u", k.u), Ao = v("ul", k.ul);
429
+ var Fo = /* @__PURE__ */ Object.freeze({
430
430
  __proto__: null,
431
- a: Dt,
432
- article: At,
433
- aside: Ft,
434
- b: Xt,
435
- bdi: Vt,
436
- bdo: _t,
437
- blockquote: Kt,
438
- br: Nt,
439
- button: Yt,
440
- code: Zt,
441
- del: Ut,
442
- div: Jt,
443
- em: Qt,
444
- fieldset: eo,
445
- footer: to,
446
- form: oo,
447
- h1: ro,
448
- h2: no,
449
- h3: io,
450
- h4: so,
451
- h5: ao,
452
- h6: lo,
453
- header: co,
454
- hr: uo,
455
- i: xo,
456
- img: po,
457
- input: go,
458
- ins: ho,
459
- kbd: mo,
460
- label: bo,
461
- li: fo,
462
- main: vo,
463
- mark: ko,
464
- nav: yo,
465
- ol: wo,
466
- optgroup: Mo,
467
- option: To,
468
- p: Wo,
469
- pre: So,
470
- s: $o,
471
- section: Co,
472
- select: Ho,
473
- span: jo,
474
- strong: zo,
475
- sub: Ro,
476
- sup: Bo,
477
- textarea: Lo,
478
- u: Io,
479
- ul: qo
431
+ a: Kt,
432
+ article: Nt,
433
+ aside: Yt,
434
+ b: Zt,
435
+ bdi: Ut,
436
+ bdo: Jt,
437
+ blockquote: Qt,
438
+ br: eo,
439
+ button: to,
440
+ code: oo,
441
+ del: ro,
442
+ div: no,
443
+ em: io,
444
+ fieldset: so,
445
+ footer: ao,
446
+ form: lo,
447
+ h1: co,
448
+ h2: uo,
449
+ h3: xo,
450
+ h4: po,
451
+ h5: go,
452
+ h6: ho,
453
+ header: mo,
454
+ hr: bo,
455
+ i: fo,
456
+ img: vo,
457
+ input: ko,
458
+ ins: yo,
459
+ kbd: wo,
460
+ label: Mo,
461
+ li: To,
462
+ main: Wo,
463
+ mark: So,
464
+ nav: $o,
465
+ ol: Co,
466
+ optgroup: Ho,
467
+ option: jo,
468
+ p: zo,
469
+ pre: Ro,
470
+ s: Bo,
471
+ section: Lo,
472
+ select: Io,
473
+ span: qo,
474
+ strong: Po,
475
+ sub: Eo,
476
+ sup: Oo,
477
+ textarea: Go,
478
+ u: Do,
479
+ ul: Ao
480
480
  });
481
- const We = A(null);
482
- function Eo() {
483
- return O(We);
481
+ const je = F(null);
482
+ function Xo() {
483
+ return D(je);
484
484
  }
485
- const Se = A(null);
486
- function Oo() {
487
- return O(Se);
485
+ const ze = F(null);
486
+ function Vo() {
487
+ return D(ze);
488
488
  }
489
- const K = {
489
+ const N = {
490
490
  item: {
491
491
  "position-kVAEAm": "position-x1n2onr6",
492
492
  "zIndex-kY2c9j": "zIndex-x1lhispz",
@@ -524,74 +524,74 @@ const K = {
524
524
  "marginTop-keoZOQ": "marginTop-xn1ib9x",
525
525
  $$css: "ButtonGroup/attached.css.ts:39"
526
526
  }
527
- }, Go = {
527
+ }, _o = {
528
528
  horizontal: {
529
- first: K.horizontalFirst,
530
- middle: K.horizontalMiddle,
531
- last: K.horizontalLast,
529
+ first: N.horizontalFirst,
530
+ middle: N.horizontalMiddle,
531
+ last: N.horizontalLast,
532
532
  only: null
533
533
  },
534
534
  vertical: {
535
- first: K.verticalFirst,
536
- middle: K.verticalMiddle,
537
- last: K.verticalLast,
535
+ first: N.verticalFirst,
536
+ middle: N.verticalMiddle,
537
+ last: N.verticalLast,
538
538
  only: null
539
539
  }
540
540
  };
541
- function Do(o) {
542
- const e = R.c(26);
541
+ function Ko(o) {
542
+ const e = B.c(26);
543
543
  let t;
544
544
  e[0] !== o ? (t = o === void 0 ? {} : o, e[0] = o, e[1] = t) : t = e[1];
545
545
  const {
546
546
  disabled: r
547
- } = t, l = r === void 0 ? !1 : r, n = U(), c = I(null), a = Oo(), s = Eo(), i = a?.register, d = s?.register;
547
+ } = t, c = r === void 0 ? !1 : r, n = Z(), d = q(null), s = Vo(), l = Xo(), i = s?.register, a = l?.register;
548
548
  let u, p;
549
- e[2] !== l || e[3] !== i || e[4] !== n || e[5] !== d ? (u = () => {
550
- const $ = c.current;
551
- if (!$)
549
+ e[2] !== c || e[3] !== i || e[4] !== n || e[5] !== a ? (u = () => {
550
+ const S = d.current;
551
+ if (!S)
552
552
  return;
553
- const M = i?.(n, $, l), j = d?.(n, $, l);
553
+ const $ = i?.(n, S, c), C = a?.(n, S, c);
554
554
  return () => {
555
- M?.(), j?.();
555
+ $?.(), C?.();
556
556
  };
557
- }, p = [n, l, i, d], e[2] = l, e[3] = i, e[4] = n, e[5] = d, e[6] = u, e[7] = p) : (u = e[6], p = e[7]), le(u, p);
557
+ }, p = [n, c, i, a], e[2] = c, e[3] = i, e[4] = n, e[5] = a, e[6] = u, e[7] = p) : (u = e[6], p = e[7]), xe(u, p);
558
558
  let x;
559
- e[8] !== a || e[9] !== n ? (x = a ? a.positionOf(n) : null, e[8] = a, e[9] = n, e[10] = x) : x = e[10];
559
+ e[8] !== s || e[9] !== n ? (x = s ? s.positionOf(n) : null, e[8] = s, e[9] = n, e[10] = x) : x = e[10];
560
560
  const h = x;
561
561
  let g;
562
- e[11] !== a || e[12] !== h ? (g = a && h ? [K.item, Go[a.orientation][h]] : null, e[11] = a, e[12] = h, e[13] = g) : g = e[13];
563
- const b = g, f = a !== null;
562
+ e[11] !== s || e[12] !== h ? (g = s && h ? [N.item, _o[s.orientation][h]] : null, e[11] = s, e[12] = h, e[13] = g) : g = e[13];
563
+ const b = g, y = s !== null;
564
564
  let m;
565
- e[14] !== n || e[15] !== s ? (m = s?.tabIndexOf(n), e[14] = n, e[15] = s, e[16] = m) : m = e[16];
566
- let v;
567
- e[17] !== n || e[18] !== s ? (v = s ? () => s.onItemFocus(n) : void 0, e[17] = n, e[18] = s, e[19] = v) : v = e[19];
568
- let S;
569
- return e[20] !== h || e[21] !== b || e[22] !== f || e[23] !== m || e[24] !== v ? (S = {
570
- ref: c,
571
- attached: f,
565
+ e[14] !== n || e[15] !== l ? (m = l?.tabIndexOf(n), e[14] = n, e[15] = l, e[16] = m) : m = e[16];
566
+ let f;
567
+ e[17] !== n || e[18] !== l ? (f = l ? () => l.onItemFocus(n) : void 0, e[17] = n, e[18] = l, e[19] = f) : f = e[19];
568
+ let W;
569
+ return e[20] !== h || e[21] !== b || e[22] !== y || e[23] !== m || e[24] !== f ? (W = {
570
+ ref: d,
571
+ attached: y,
572
572
  position: h,
573
573
  style: b,
574
574
  tabIndex: m,
575
- onFocus: v
576
- }, e[20] = h, e[21] = b, e[22] = f, e[23] = m, e[24] = v, e[25] = S) : S = e[25], S;
575
+ onFocus: f
576
+ }, e[20] = h, e[21] = b, e[22] = y, e[23] = m, e[24] = f, e[25] = W) : W = e[25], W;
577
577
  }
578
- const Ao = {
578
+ const No = {
579
579
  xjvd03b: "xoev3oz xjvd03b",
580
580
  $$css: !0
581
- }, Fo = {
581
+ }, Yo = {
582
582
  x13v825q: "x1jk1o70 x13v825q",
583
583
  $$css: !0
584
- }, Xo = {
584
+ }, Zo = {
585
585
  xjvd03b: "x1ud4188 xjvd03b",
586
586
  $$css: !0
587
- }, Vo = {
587
+ }, Uo = {
588
588
  x13v825q: "xc8o4hb x13v825q",
589
589
  $$css: !0
590
- }, fe = A({
590
+ }, Me = F({
591
591
  theme: null,
592
592
  colors: {}
593
593
  });
594
- function _o(o, e, t) {
594
+ function Jo(o, e, t) {
595
595
  const r = o.theme === e ? o.colors : {};
596
596
  return {
597
597
  theme: e,
@@ -601,22 +601,22 @@ function _o(o, e, t) {
601
601
  } : r
602
602
  };
603
603
  }
604
- function Ko(o) {
604
+ function Qo(o) {
605
605
  return /[;{}<>"'\\]/.test(o) ? !1 : /^#[0-9a-f]{3,8}$/i.test(o) || /^(rgba?|hsla?|hwb|lab|lch|oklab|oklch|color)\([^()]*\)$/i.test(o) || /^[a-z]+$/i.test(o);
606
606
  }
607
- function No(o, e, t) {
608
- const r = Object.entries(e).flatMap(([n, c]) => {
609
- const a = t(n);
610
- return a && typeof c == "string" && Ko(c) ? [`${a}: ${c};`] : [];
607
+ function er(o, e, t) {
608
+ const r = Object.entries(e).flatMap(([n, d]) => {
609
+ const s = t(n);
610
+ return s && typeof d == "string" && Qo(d) ? [`${s}: ${d};`] : [];
611
611
  });
612
612
  if (r.length === 0) return null;
613
- const l = `[data-duro-theme="${o}"]`;
614
- return `${l}${l} { ${r.join(" ")} }`;
613
+ const c = `[data-duro-theme="${o}"]`;
614
+ return `${c}${c} { ${r.join(" ")} }`;
615
615
  }
616
- const Yo = {
617
- light: [Ao, Fo],
618
- "high-contrast": [Xo, Vo]
619
- }, ve = {
616
+ const tr = {
617
+ light: [No, Yo],
618
+ "high-contrast": [Zo, Uo]
619
+ }, Te = {
620
620
  root: {
621
621
  "display-k1xSpc": "display-xjp7ctv",
622
622
  "color-kMwMTN": "color-x95150z",
@@ -632,67 +632,67 @@ const Yo = {
632
632
  "zIndex-kY2c9j": "zIndex-x3z26px",
633
633
  $$css: "ThemeProvider/ThemeProvider.tsx:39"
634
634
  }
635
- }, $e = A(null);
636
- function Zo() {
637
- return O($e);
635
+ }, Re = F(null);
636
+ function or() {
637
+ return D(Re);
638
638
  }
639
- function Uo(o) {
640
- const e = String(Ae[o] ?? ""), t = /^var\((--[\w-]+)\)$/.exec(e);
639
+ function rr(o) {
640
+ const e = String(Ne[o] ?? ""), t = /^var\((--[\w-]+)\)$/.exec(e);
641
641
  return t ? t[1] : null;
642
642
  }
643
- function zr(o) {
644
- const e = R.c(25), {
643
+ function Pr(o) {
644
+ const e = B.c(25), {
645
645
  theme: t,
646
646
  overrides: r,
647
- children: l
648
- } = o, n = t === void 0 ? "dark" : t, c = Yo[n], a = c?.[0], s = c?.[1];
647
+ children: c
648
+ } = o, n = t === void 0 ? "dark" : t, d = tr[n], s = d?.[0], l = d?.[1];
649
649
  let i;
650
- e[0] !== a || e[1] !== s ? (i = [a, s, ve.root], e[0] = a, e[1] = s, e[2] = i) : i = e[2];
651
- const d = i, [u, p] = ee(null), x = U(), h = O(fe);
650
+ e[0] !== s || e[1] !== l ? (i = [s, l, Te.root], e[0] = s, e[1] = l, e[2] = i) : i = e[2];
651
+ const a = i, [u, p] = ee(null), x = Z(), h = D(Me);
652
652
  let g;
653
- e[3] !== h || e[4] !== r || e[5] !== n ? (g = _o(h, n, r), e[3] = h, e[4] = r, e[5] = n, e[6] = g) : g = e[6];
653
+ e[3] !== h || e[4] !== r || e[5] !== n ? (g = Jo(h, n, r), e[3] = h, e[4] = r, e[5] = n, e[6] = g) : g = e[6];
654
654
  const b = g;
655
- let f;
656
- e[7] !== b.colors || e[8] !== x ? (f = Object.keys(b.colors).length > 0 ? No(x, b.colors, Uo) : null, e[7] = b.colors, e[8] = x, e[9] = f) : f = e[9];
657
- const m = f, v = m ? x : void 0;
655
+ let y;
656
+ e[7] !== b.colors || e[8] !== x ? (y = Object.keys(b.colors).length > 0 ? er(x, b.colors, rr) : null, e[7] = b.colors, e[8] = x, e[9] = y) : y = e[9];
657
+ const m = y, f = m ? x : void 0;
658
+ let W;
659
+ e[10] !== m ? (W = m ? /* @__PURE__ */ T("style", { children: m }) : null, e[10] = m, e[11] = W) : W = e[11];
658
660
  let S;
659
- e[10] !== m ? (S = m ? /* @__PURE__ */ W("style", { children: m }) : null, e[10] = m, e[11] = S) : S = e[11];
661
+ e[12] !== c || e[13] !== u ? (S = /* @__PURE__ */ T(Re.Provider, { value: u, children: c }), e[12] = c, e[13] = u, e[14] = S) : S = e[14];
660
662
  let $;
661
- e[12] !== l || e[13] !== u ? ($ = /* @__PURE__ */ W($e.Provider, { value: u, children: l }), e[12] = l, e[13] = u, e[14] = $) : $ = e[14];
662
- let M;
663
- e[15] !== b || e[16] !== $ ? (M = /* @__PURE__ */ W(fe.Provider, { value: b, children: $ }), e[15] = b, e[16] = $, e[17] = M) : M = e[17];
664
- let j;
665
- e[18] === Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ W("div", { "data-element-src": "ThemeProvider/ThemeProvider.tsx:96", ref: p, "data-portal-mount": !0, ...C(H.div, ve.portalMount) }), e[18] = j) : j = e[18];
666
- let z;
667
- return e[19] !== d || e[20] !== M || e[21] !== v || e[22] !== S || e[23] !== n ? (z = /* @__PURE__ */ ae("div", { "data-element-src": "ThemeProvider/ThemeProvider.tsx:88", "data-theme": n, "data-duro-theme": v, ...C(H.div, d), children: [
668
- S,
669
- M,
670
- j
671
- ] }), e[19] = d, e[20] = M, e[21] = v, e[22] = S, e[23] = n, e[24] = z) : z = e[24], z;
663
+ e[15] !== b || e[16] !== S ? ($ = /* @__PURE__ */ T(Me.Provider, { value: b, children: S }), e[15] = b, e[16] = S, e[17] = $) : $ = e[17];
664
+ let C;
665
+ e[18] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ T("div", { "data-element-src": "ThemeProvider/ThemeProvider.tsx:96", ref: p, "data-portal-mount": !0, ...j(z.div, Te.portalMount) }), e[18] = C) : C = e[18];
666
+ let H;
667
+ return e[19] !== a || e[20] !== $ || e[21] !== f || e[22] !== W || e[23] !== n ? (H = /* @__PURE__ */ ue("div", { "data-element-src": "ThemeProvider/ThemeProvider.tsx:88", "data-theme": n, "data-duro-theme": f, ...j(z.div, a), children: [
668
+ W,
669
+ $,
670
+ C
671
+ ] }), e[19] = a, e[20] = $, e[21] = f, e[22] = W, e[23] = n, e[24] = H) : H = e[24], H;
672
672
  }
673
- function Jo(o) {
674
- const e = R.c(2), {
673
+ function nr(o) {
674
+ const e = B.c(2), {
675
675
  children: t
676
676
  } = o;
677
677
  let r;
678
- return e[0] !== t ? (r = /* @__PURE__ */ W(Se.Provider, { value: null, children: /* @__PURE__ */ W(We.Provider, { value: null, children: t }) }), e[0] = t, e[1] = r) : r = e[1], r;
678
+ return e[0] !== t ? (r = /* @__PURE__ */ T(ze.Provider, { value: null, children: /* @__PURE__ */ T(je.Provider, { value: null, children: t }) }), e[0] = t, e[1] = r) : r = e[1], r;
679
679
  }
680
- function Ce(o) {
680
+ function Be(o) {
681
681
  return o.button === 0 && !o.metaKey && !o.ctrlKey && !o.shiftKey && !o.altKey && !o.defaultPrevented;
682
682
  }
683
- function Rr(o, e, t) {
683
+ function Er(o, e, t) {
684
684
  if (e)
685
685
  return (r) => {
686
- t != null || !Ce(r) || e(o, r);
686
+ t != null || !Be(r) || e(o, r);
687
687
  };
688
688
  }
689
- const Br = {
689
+ const Or = {
690
690
  xs: 480,
691
691
  sm: 640,
692
692
  md: 768,
693
693
  lg: 1024,
694
694
  xl: 1280
695
- }, He = {
695
+ }, Le = {
696
696
  touchTarget: "var(--touchTarget-x1u5badx)",
697
697
  controlSm: "var(--controlSm-x6ymn93)",
698
698
  controlMd: "var(--controlMd-xkvaeme)",
@@ -785,24 +785,24 @@ const Br = {
785
785
  dragThumbW: "var(--dragThumbW-x1bz26bx)",
786
786
  dragThumbH: "var(--dragThumbH-xbt2de9)",
787
787
  __varGroupHash__: "x1w57kmz"
788
- }, Qo = typeof process < "u" && process.env?.NODE_ENV === "production", ke = /* @__PURE__ */ new Set();
789
- function je(o, e, t) {
788
+ }, ir = typeof process < "u" && process.env?.NODE_ENV === "production", We = /* @__PURE__ */ new Set();
789
+ function Ie(o, e, t) {
790
790
  const r = `${o}:${e}`;
791
- Qo || ke.has(r) || (ke.add(r), console.warn(`[duro-app/ui ${o}] ${t}`));
791
+ ir || We.has(r) || (We.add(r), console.warn(`[duro-app/ui ${o}] ${t}`));
792
792
  }
793
- const ze = new Set(De);
794
- function Re(o) {
795
- return typeof o == "string" && ze.has(o) ? He[o] : o;
793
+ const qe = new Set(Ke);
794
+ function Pe(o) {
795
+ return typeof o == "string" && qe.has(o) ? Le[o] : o;
796
796
  }
797
- function ye(o) {
797
+ function Se(o) {
798
798
  const e = o;
799
799
  if (typeof e != "string") return e;
800
800
  const t = /^(minmax|fit-content)\((.*)\)$/.exec(e);
801
801
  if (t) {
802
- const r = t[2].split(",").map((l) => String(Re(l.trim())));
802
+ const r = t[2].split(",").map((c) => String(Pe(c.trim())));
803
803
  return `${t[1]}(${r.join(", ")})`;
804
804
  }
805
- return ze.has(e) ? He[e] : e;
805
+ return qe.has(e) ? Le[e] : e;
806
806
  }
807
807
  const P = {
808
808
  root: {
@@ -905,13 +905,18 @@ const P = {
905
905
  "transitionDuration-kIyJzY": "transitionDuration-x13k8chi",
906
906
  $$css: "Menu/styles.css.ts:98"
907
907
  },
908
+ itemDisabled: {
909
+ "color-kMwMTN": "color-x1d12y54",
910
+ "cursor-kkrTdU": "cursor-x1h6gzvc",
911
+ $$css: "Menu/styles.css.ts:114"
912
+ },
908
913
  itemHighlighted: {
909
914
  "backgroundColor-kWkggS": "backgroundColor-xlyqa1p",
910
915
  "outlineStyle-k3XXqK": "outlineStyle-xaatb59",
911
916
  "outlineWidth-kMeerF": "outlineWidth-x1a33d5h",
912
917
  "outlineColor-kjBf7l": "outlineColor-x1uczgqu",
913
918
  "outlineOffset-kInvED": "outlineOffset-x186wpgv",
914
- $$css: "Menu/styles.css.ts:116"
919
+ $$css: "Menu/styles.css.ts:120"
915
920
  },
916
921
  separator: {
917
922
  "height-kZKoxP": "height-xqtp20y",
@@ -920,399 +925,407 @@ const P = {
920
925
  "borderTopWidth-kEafiO": "borderTopWidth-xljp14s",
921
926
  "borderTopStyle-kPef9Z": "borderTopStyle-x13fuv20",
922
927
  "borderTopColor-kLZC3w": "borderTopColor-xvuocu",
923
- $$css: "Menu/styles.css.ts:123"
928
+ $$css: "Menu/styles.css.ts:127"
924
929
  },
925
930
  linkItem: {
926
931
  "textDecoration-kybGjl": "textDecoration-x1hl2dhg",
927
932
  "color-kMwMTN": "color-x95150z color-xtolcfe",
928
- $$css: "Menu/styles.css.ts:131"
933
+ $$css: "Menu/styles.css.ts:135"
929
934
  }
930
- }, Be = A(null);
931
- function de() {
932
- const o = O(Be);
935
+ }, Ee = F(null);
936
+ function ge() {
937
+ const o = D(Ee);
933
938
  if (!o)
934
939
  throw new Error("Menu compound components must be used within Menu.Root");
935
940
  return o;
936
941
  }
937
- function er(o, e) {
942
+ function sr(o, e) {
938
943
  return o ? !e.some((t) => t != null && t.contains(o)) : !0;
939
944
  }
940
- function tr({
945
+ function ar({
941
946
  open: o,
942
947
  defaultOpen: e = !1,
943
948
  onOpenChange: t
944
949
  }) {
945
- const [r, l] = ee(e), n = o !== void 0, c = n ? o : r, a = I(c);
946
- a.current = c;
947
- const s = I(t);
948
- s.current = t;
949
- const i = we((d) => {
950
- d !== a.current && (n || l(d), s.current?.(d));
950
+ const [r, c] = ee(e), n = o !== void 0, d = n ? o : r, s = q(d);
951
+ s.current = d;
952
+ const l = q(t);
953
+ l.current = t;
954
+ const i = $e((a) => {
955
+ a !== s.current && (n || c(a), l.current?.(a));
951
956
  }, [n]);
952
957
  return {
953
- open: c,
954
- openRef: a,
958
+ open: d,
959
+ openRef: s,
955
960
  setOpen: i
956
961
  };
957
962
  }
958
- function or(o) {
959
- const e = R.c(37), {
963
+ function lr(o) {
964
+ const e = B.c(39), {
960
965
  open: t,
961
966
  openRef: r,
962
- setOpen: l
963
- } = tr(o), [n, c] = ee(null), a = I(n);
964
- let s, i;
965
- e[0] !== n ? (s = () => {
966
- a.current = n;
967
- }, i = [n], e[0] = n, e[1] = s, e[2] = i) : (s = e[1], i = e[2]), le(s, i);
968
- const d = U(), u = U(), p = I(null), x = I(null), h = I(null);
967
+ setOpen: c
968
+ } = ar(o), [n, d] = ee(null), s = q(n);
969
+ let l, i;
970
+ e[0] !== n ? (l = () => {
971
+ s.current = n;
972
+ }, i = [n], e[0] = n, e[1] = l, e[2] = i) : (l = e[1], i = e[2]), xe(l, i);
973
+ const a = Z(), u = Z(), p = q(null), x = q(null), h = q(null);
969
974
  let g;
970
975
  e[3] === Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ new Map(), e[3] = g) : g = e[3];
971
- const b = I(g);
976
+ const b = q(g);
977
+ let y;
978
+ e[4] === Symbol.for("react.memo_cache_sentinel") ? (y = [], e[4] = y) : y = e[4];
979
+ const m = q(y);
972
980
  let f;
973
- e[4] === Symbol.for("react.memo_cache_sentinel") ? (f = [], e[4] = f) : f = e[4];
974
- const m = I(f);
975
- let v;
976
- e[5] !== r || e[6] !== l ? (v = () => {
977
- r.current && (l(!1), c(null));
978
- }, e[5] = r, e[6] = l, e[7] = v) : v = e[7];
979
- const S = v;
980
- let $;
981
- e[8] !== S || e[9] !== r ? ($ = () => {
982
- r.current && (S(), x.current?.focus());
983
- }, e[8] = S, e[9] = r, e[10] = $) : $ = e[10];
984
- const M = $;
985
- let j;
986
- e[11] !== M || e[12] !== r || e[13] !== l ? (j = () => {
987
- r.current ? M() : l(!0);
988
- }, e[11] = M, e[12] = r, e[13] = l, e[14] = j) : j = e[14];
989
- const z = j, E = I(!1);
990
- let X, G;
991
- e[15] !== t ? (X = () => {
992
- if (t && !E.current) {
981
+ e[5] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ new Set(), e[5] = f) : f = e[5];
982
+ const W = q(f);
983
+ let S;
984
+ e[6] === Symbol.for("react.memo_cache_sentinel") ? (S = () => m.current.filter((R) => !W.current.has(R)), e[6] = S) : S = e[6];
985
+ const $ = S;
986
+ let C;
987
+ e[7] !== r || e[8] !== c ? (C = () => {
988
+ r.current && (c(!1), d(null));
989
+ }, e[7] = r, e[8] = c, e[9] = C) : C = e[9];
990
+ const H = C;
991
+ let E;
992
+ e[10] !== H || e[11] !== r ? (E = () => {
993
+ r.current && (H(), x.current?.focus());
994
+ }, e[10] = H, e[11] = r, e[12] = E) : E = e[12];
995
+ const L = E;
996
+ let A;
997
+ e[13] !== L || e[14] !== r || e[15] !== c ? (A = () => {
998
+ r.current ? L() : c(!0);
999
+ }, e[13] = L, e[14] = r, e[15] = c, e[16] = A) : A = e[16];
1000
+ const X = A, _ = q(!1);
1001
+ let te, oe;
1002
+ e[17] !== t ? (oe = () => {
1003
+ if (t && !_.current) {
993
1004
  h.current?.focus({
994
1005
  preventScroll: !0
995
1006
  });
996
- const B = m.current[0];
997
- B && c(B);
1007
+ const R = $()[0];
1008
+ R && d(R);
998
1009
  } else
999
- !t && E.current && c(null);
1000
- E.current = t;
1001
- }, G = [t], e[15] = t, e[16] = X, e[17] = G) : (X = e[16], G = e[17]), _(X, G);
1002
- let F, V;
1003
- e[18] !== n ? (V = () => {
1010
+ !t && _.current && d(null);
1011
+ _.current = t;
1012
+ }, te = [t, $], e[17] = t, e[18] = te, e[19] = oe) : (te = e[18], oe = e[19]), V(oe, te);
1013
+ let re, ne;
1014
+ e[20] !== n ? (re = () => {
1004
1015
  if (!n)
1005
1016
  return;
1006
1017
  b.current.get(n)?.scrollIntoView?.({
1007
1018
  block: "nearest"
1008
1019
  });
1009
- }, F = [n], e[18] = n, e[19] = F, e[20] = V) : (F = e[19], V = e[20]), _(V, F);
1010
- let te;
1011
- e[21] === Symbol.for("react.memo_cache_sentinel") ? (te = (B, J) => {
1012
- b.current.set(B, J);
1013
- const N = b.current, q = [...N.keys()];
1014
- return q.sort((L, D) => {
1015
- const Y = N.get(L), me = N.get(D);
1016
- return !Y || !me ? 0 : Y.compareDocumentPosition(me) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
1017
- }), m.current = q, () => {
1018
- b.current.delete(B), m.current = m.current.filter((L) => L !== B);
1020
+ }, ne = [n], e[20] = n, e[21] = re, e[22] = ne) : (re = e[21], ne = e[22]), V(re, ne);
1021
+ let ie;
1022
+ e[23] === Symbol.for("react.memo_cache_sentinel") ? (ie = (R, U, J) => {
1023
+ const O = J === void 0 ? !1 : J;
1024
+ b.current.set(R, U), O ? W.current.add(R) : W.current.delete(R);
1025
+ const I = b.current, G = [...I.keys()];
1026
+ return G.sort((K, Ae) => {
1027
+ const ke = I.get(K), ye = I.get(Ae);
1028
+ return !ke || !ye ? 0 : ke.compareDocumentPosition(ye) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
1029
+ }), m.current = G, () => {
1030
+ b.current.delete(R), W.current.delete(R), m.current = m.current.filter((K) => K !== R);
1019
1031
  };
1020
- }, e[21] = te) : te = e[21];
1021
- const qe = te;
1022
- let oe, re;
1023
- e[22] !== M || e[23] !== t ? (oe = () => {
1024
- const B = h.current;
1025
- if (!B || !t)
1032
+ }, e[23] = ie) : ie = e[23];
1033
+ const De = ie;
1034
+ let se, ae;
1035
+ e[24] !== L || e[25] !== t ? (se = () => {
1036
+ const R = h.current;
1037
+ if (!R || !t)
1026
1038
  return;
1027
- const J = function(q) {
1028
- if (q.key === "Escape") {
1029
- q.preventDefault(), q.stopPropagation(), M();
1039
+ const U = function(O) {
1040
+ if (O.key === "Escape") {
1041
+ O.preventDefault(), O.stopPropagation(), L();
1030
1042
  return;
1031
1043
  }
1032
- if (q.key === "Tab") {
1033
- M();
1044
+ if (O.key === "Tab") {
1045
+ L();
1034
1046
  return;
1035
1047
  }
1036
- const L = m.current;
1037
- if (L.length !== 0)
1038
- e: switch (q.key) {
1048
+ const I = $();
1049
+ if (I.length !== 0)
1050
+ e: switch (O.key) {
1039
1051
  case "ArrowDown": {
1040
- q.preventDefault(), c((D) => {
1041
- const Y = D ? L.indexOf(D) : -1;
1042
- return L[(Y + 1) % L.length];
1052
+ O.preventDefault(), d((G) => {
1053
+ const K = G ? I.indexOf(G) : -1;
1054
+ return I[(K + 1) % I.length];
1043
1055
  });
1044
1056
  break e;
1045
1057
  }
1046
1058
  case "ArrowUp": {
1047
- q.preventDefault(), c((D) => {
1048
- const Y = D ? L.indexOf(D) : 0;
1049
- return L[(Y - 1 + L.length) % L.length];
1059
+ O.preventDefault(), d((G) => {
1060
+ const K = G ? I.indexOf(G) : 0;
1061
+ return I[(K - 1 + I.length) % I.length];
1050
1062
  });
1051
1063
  break e;
1052
1064
  }
1053
1065
  case "Home": {
1054
- q.preventDefault(), c(L[0]);
1066
+ O.preventDefault(), d(I[0]);
1055
1067
  break e;
1056
1068
  }
1057
1069
  case "End": {
1058
- q.preventDefault(), c(L[L.length - 1]);
1070
+ O.preventDefault(), d(I[I.length - 1]);
1059
1071
  break e;
1060
1072
  }
1061
1073
  case "Enter":
1062
1074
  case " ": {
1063
- q.preventDefault();
1064
- const D = a.current;
1065
- D && b.current.get(D)?.click();
1075
+ O.preventDefault();
1076
+ const G = s.current;
1077
+ G && !W.current.has(G) && b.current.get(G)?.click();
1066
1078
  }
1067
1079
  }
1068
1080
  };
1069
- return B.addEventListener("keydown", J), () => B.removeEventListener("keydown", J);
1070
- }, re = [t, M], e[22] = M, e[23] = t, e[24] = oe, e[25] = re) : (oe = e[24], re = e[25]), _(oe, re);
1071
- let ne, ie;
1072
- e[26] !== S || e[27] !== t ? (ne = () => {
1081
+ return R.addEventListener("keydown", U), () => R.removeEventListener("keydown", U);
1082
+ }, ae = [t, L, $], e[24] = L, e[25] = t, e[26] = se, e[27] = ae) : (se = e[26], ae = e[27]), V(se, ae);
1083
+ let le, ce;
1084
+ e[28] !== H || e[29] !== t ? (le = () => {
1073
1085
  if (!t)
1074
1086
  return;
1075
- const B = function(N) {
1076
- er(N.target, [h.current, x.current]) && S();
1087
+ const R = function(J) {
1088
+ sr(J.target, [h.current, x.current]) && H();
1077
1089
  };
1078
- return document.addEventListener("pointerdown", B, !0), () => document.removeEventListener("pointerdown", B, !0);
1079
- }, ie = [t, S], e[26] = S, e[27] = t, e[28] = ne, e[29] = ie) : (ne = e[28], ie = e[29]), _(ne, ie);
1080
- let se;
1081
- return e[30] !== M || e[31] !== n || e[32] !== d || e[33] !== t || e[34] !== z || e[35] !== u ? (se = {
1090
+ return document.addEventListener("pointerdown", R, !0), () => document.removeEventListener("pointerdown", R, !0);
1091
+ }, ce = [t, H], e[28] = H, e[29] = t, e[30] = le, e[31] = ce) : (le = e[30], ce = e[31]), V(le, ce);
1092
+ let de;
1093
+ return e[32] !== L || e[33] !== n || e[34] !== a || e[35] !== t || e[36] !== X || e[37] !== u ? (de = {
1082
1094
  ctx: {
1083
1095
  open: t,
1084
- toggle: z,
1085
- close: M,
1086
- menuId: d,
1096
+ toggle: X,
1097
+ close: L,
1098
+ menuId: a,
1087
1099
  triggerId: u,
1088
1100
  highlightedId: n,
1089
- setHighlightedId: c,
1090
- registerItem: qe,
1101
+ setHighlightedId: d,
1102
+ registerItem: De,
1091
1103
  triggerRef: x,
1092
1104
  popupRef: h
1093
1105
  },
1094
1106
  rootRef: p
1095
- }, e[30] = M, e[31] = n, e[32] = d, e[33] = t, e[34] = z, e[35] = u, e[36] = se) : se = e[36], se;
1107
+ }, e[32] = L, e[33] = n, e[34] = a, e[35] = t, e[36] = X, e[37] = u, e[38] = de) : de = e[38], de;
1096
1108
  }
1097
- function rr({
1109
+ function cr({
1098
1110
  anchor: o,
1099
1111
  popup: e,
1100
1112
  viewport: t,
1101
1113
  side: r,
1102
- align: l,
1114
+ align: c,
1103
1115
  offset: n
1104
1116
  }) {
1105
- const c = o.top + o.height + n, a = o.top - n - e.height, s = c + e.height <= t.height, i = a >= 0;
1106
- let d = r;
1107
- r === "bottom" && !s && i ? d = "top" : r === "top" && !i && s && (d = "bottom");
1108
- const u = d === "bottom" ? c : a;
1117
+ const d = o.top + o.height + n, s = o.top - n - e.height, l = d + e.height <= t.height, i = s >= 0;
1118
+ let a = r;
1119
+ r === "bottom" && !l && i ? a = "top" : r === "top" && !i && l && (a = "bottom");
1120
+ const u = a === "bottom" ? d : s;
1109
1121
  let p = o.left;
1110
- l === "center" ? p = o.left + (o.width - e.width) / 2 : l === "end" && (p = o.left + o.width - e.width);
1122
+ c === "center" ? p = o.left + (o.width - e.width) / 2 : c === "end" && (p = o.left + o.width - e.width);
1111
1123
  const x = Math.max(0, t.width - e.width);
1112
1124
  return p = Math.min(Math.max(0, p), x), {
1113
1125
  top: u,
1114
1126
  left: p,
1115
- side: d
1127
+ side: a
1116
1128
  };
1117
1129
  }
1118
- const nr = A(null);
1119
- function ir(o, e) {
1120
- const t = R.c(5), {
1130
+ const dr = F(null);
1131
+ function ur(o, e) {
1132
+ const t = B.c(5), {
1121
1133
  active: r
1122
- } = e, l = O(nr);
1123
- let n, c;
1124
- t[0] !== r || t[1] !== l || t[2] !== o ? (n = () => {
1125
- const a = o.current;
1126
- if (!(!l || !r || !a))
1127
- return l.register(a);
1128
- }, c = [l, r, o], t[0] = r, t[1] = l, t[2] = o, t[3] = n, t[4] = c) : (n = t[3], c = t[4]), le(n, c);
1134
+ } = e, c = D(dr);
1135
+ let n, d;
1136
+ t[0] !== r || t[1] !== c || t[2] !== o ? (n = () => {
1137
+ const s = o.current;
1138
+ if (!(!c || !r || !s))
1139
+ return c.register(s);
1140
+ }, d = [c, r, o], t[0] = r, t[1] = c, t[2] = o, t[3] = n, t[4] = d) : (n = t[3], d = t[4]), xe(n, d);
1129
1141
  }
1130
- function sr(o) {
1131
- const e = R.c(10), {
1142
+ function xr(o) {
1143
+ const e = B.c(10), {
1132
1144
  children: t,
1133
1145
  open: r,
1134
- defaultOpen: l,
1146
+ defaultOpen: c,
1135
1147
  onOpenChange: n
1136
1148
  } = o;
1137
- let c;
1138
- e[0] !== l || e[1] !== n || e[2] !== r ? (c = {
1149
+ let d;
1150
+ e[0] !== c || e[1] !== n || e[2] !== r ? (d = {
1139
1151
  open: r,
1140
- defaultOpen: l,
1152
+ defaultOpen: c,
1141
1153
  onOpenChange: n
1142
- }, e[0] = l, e[1] = n, e[2] = r, e[3] = c) : c = e[3];
1154
+ }, e[0] = c, e[1] = n, e[2] = r, e[3] = d) : d = e[3];
1143
1155
  const {
1144
- ctx: a,
1145
- rootRef: s
1146
- } = or(c);
1156
+ ctx: s,
1157
+ rootRef: l
1158
+ } = lr(d);
1147
1159
  let i;
1148
- e[4] !== t || e[5] !== s ? (i = /* @__PURE__ */ W("div", { "data-element-src": "Menu/Menu.tsx:42", ref: s, ...C(H.div, P.root), children: t }), e[4] = t, e[5] = s, e[6] = i) : i = e[6];
1149
- let d;
1150
- return e[7] !== a || e[8] !== i ? (d = /* @__PURE__ */ W(Be.Provider, { value: a, children: i }), e[7] = a, e[8] = i, e[9] = d) : d = e[9], d;
1160
+ e[4] !== t || e[5] !== l ? (i = /* @__PURE__ */ T("div", { "data-element-src": "Menu/Menu.tsx:42", ref: l, ...j(z.div, P.root), children: t }), e[4] = t, e[5] = l, e[6] = i) : i = e[6];
1161
+ let a;
1162
+ return e[7] !== s || e[8] !== i ? (a = /* @__PURE__ */ T(Ee.Provider, { value: s, children: i }), e[7] = s, e[8] = i, e[9] = a) : a = e[9], a;
1151
1163
  }
1152
- const ar = 'button, a[href], input, select, textarea, [role="button"]';
1153
- function lr({
1164
+ const pr = 'button, a[href], input, select, textarea, [role="button"]';
1165
+ function gr({
1154
1166
  children: o,
1155
1167
  "aria-label": e,
1156
1168
  variant: t = "default",
1157
1169
  size: r = "default",
1158
- ref: l
1170
+ ref: c
1159
1171
  }) {
1160
1172
  const {
1161
1173
  open: n,
1162
- toggle: c,
1163
- menuId: a,
1164
- triggerId: s,
1174
+ toggle: d,
1175
+ menuId: s,
1176
+ triggerId: l,
1165
1177
  triggerRef: i
1166
- } = de(), d = Do(), u = d.ref, p = we((x) => {
1167
- i.current = x, u.current = x, typeof l == "function" ? l(x) : l && (l.current = x);
1168
- }, [l, i, u]);
1169
- return _(() => {
1170
- i.current?.querySelector(ar) && je("Menu", "trigger-nested-control", "Menu.Trigger is itself the button — give it the label (text, an Icon), not a Button, link or other control. A control inside a <button> is invalid HTML: it breaks hydration and hands assistive tech a button inside a button.");
1171
- }, [i]), /* @__PURE__ */ W("button", { "data-element-src": "Menu/Menu.tsx:101", ref: p, tabIndex: d.tabIndex, onFocus: d.onFocus, id: s, type: "button", onClick: c, "aria-label": e, "aria-expanded": n, "aria-haspopup": "menu", "aria-controls": n ? a : void 0, ...C(H.button, P.trigger, t === "ghost" ? [P.triggerGhost, r === "small" && P.triggerGhostSmall] : r === "small" && P.triggerSmall, d.style), children: o });
1178
+ } = ge(), a = Ko(), u = a.ref, p = $e((x) => {
1179
+ i.current = x, u.current = x, typeof c == "function" ? c(x) : c && (c.current = x);
1180
+ }, [c, i, u]);
1181
+ return V(() => {
1182
+ i.current?.querySelector(pr) && Ie("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.");
1183
+ }, [i]), /* @__PURE__ */ T("button", { "data-element-src": "Menu/Menu.tsx:101", ref: p, tabIndex: a.tabIndex, onFocus: a.onFocus, id: l, type: "button", onClick: d, "aria-label": e, "aria-expanded": n, "aria-haspopup": "menu", "aria-controls": n ? s : void 0, ...j(z.button, P.trigger, t === "ghost" ? [P.triggerGhost, r === "small" && P.triggerGhostSmall] : r === "small" && P.triggerSmall, a.style), children: o });
1172
1184
  }
1173
- function cr(o) {
1174
- const e = R.c(26), {
1185
+ function hr(o) {
1186
+ const e = B.c(26), {
1175
1187
  children: t,
1176
1188
  align: r
1177
- } = o, l = r === void 0 ? "start" : r, {
1189
+ } = o, c = r === void 0 ? "start" : r, {
1178
1190
  open: n,
1179
- menuId: c,
1180
- triggerId: a,
1181
- highlightedId: s,
1191
+ menuId: d,
1192
+ triggerId: s,
1193
+ highlightedId: l,
1182
1194
  triggerRef: i,
1183
- popupRef: d
1184
- } = de();
1195
+ popupRef: a
1196
+ } = ge();
1185
1197
  let u;
1186
1198
  e[0] === Symbol.for("react.memo_cache_sentinel") ? (u = {
1187
1199
  top: 0,
1188
1200
  left: 0
1189
1201
  }, e[0] = u) : u = e[0];
1190
- const [p, x] = ee(u), h = Zo();
1202
+ const [p, x] = ee(u), h = or();
1191
1203
  let g;
1192
1204
  e[1] !== n ? (g = {
1193
1205
  active: n
1194
- }, e[1] = n, e[2] = g) : g = e[2], ir(d, g);
1195
- let b, f;
1196
- if (e[3] !== l || e[4] !== n || e[5] !== d || e[6] !== i ? (b = () => {
1206
+ }, e[1] = n, e[2] = g) : g = e[2], ur(a, g);
1207
+ let b, y;
1208
+ if (e[3] !== c || e[4] !== n || e[5] !== a || e[6] !== i ? (b = () => {
1197
1209
  if (!n)
1198
1210
  return;
1199
1211
  const E = () => {
1200
- const X = d.current, G = i.current?.getBoundingClientRect();
1201
- if (!X || !G)
1212
+ const L = a.current, A = i.current?.getBoundingClientRect();
1213
+ if (!L || !A)
1202
1214
  return;
1203
- const F = rr({
1215
+ const X = cr({
1204
1216
  anchor: {
1205
- top: G.top,
1206
- left: G.left,
1207
- width: G.width,
1208
- height: G.height
1217
+ top: A.top,
1218
+ left: A.left,
1219
+ width: A.width,
1220
+ height: A.height
1209
1221
  },
1210
1222
  popup: {
1211
- width: X.offsetWidth,
1212
- height: X.offsetHeight
1223
+ width: L.offsetWidth,
1224
+ height: L.offsetHeight
1213
1225
  },
1214
1226
  viewport: {
1215
1227
  width: window.innerWidth,
1216
1228
  height: window.innerHeight
1217
1229
  },
1218
1230
  side: "bottom",
1219
- align: l,
1220
- offset: Ge.xs
1231
+ align: c,
1232
+ offset: _e.xs
1221
1233
  });
1222
- x((V) => V.top === F.top && V.left === F.left ? V : {
1223
- top: F.top,
1224
- left: F.left
1234
+ x((_) => _.top === X.top && _.left === X.left ? _ : {
1235
+ top: X.top,
1236
+ left: X.left
1225
1237
  });
1226
1238
  };
1227
1239
  return E(), window.addEventListener("resize", E), window.addEventListener("scroll", E, !0), () => {
1228
1240
  window.removeEventListener("resize", E), window.removeEventListener("scroll", E, !0);
1229
1241
  };
1230
- }, f = [n, l, d, i], e[3] = l, e[4] = n, e[5] = d, e[6] = i, e[7] = b, e[8] = f) : (b = e[7], f = e[8]), le(b, f), !n || typeof document > "u")
1242
+ }, y = [n, c, a, i], e[3] = c, e[4] = n, e[5] = a, e[6] = i, e[7] = b, e[8] = y) : (b = e[7], y = e[8]), xe(b, y), !n || typeof document > "u")
1231
1243
  return null;
1232
- const m = s ?? void 0;
1233
- let v;
1234
- e[9] !== p.left || e[10] !== p.top ? (v = P.popupPosition(p.top, p.left), e[9] = p.left, e[10] = p.top, e[11] = v) : v = e[11];
1244
+ const m = l ?? void 0;
1245
+ let f;
1246
+ e[9] !== p.left || e[10] !== p.top ? (f = P.popupPosition(p.top, p.left), e[9] = p.left, e[10] = p.top, e[11] = f) : f = e[11];
1247
+ let W;
1248
+ e[12] !== f ? (W = [P.popup, f], e[12] = f, e[13] = W) : W = e[13];
1235
1249
  let S;
1236
- e[12] !== v ? (S = [P.popup, v], e[12] = v, e[13] = S) : S = e[13];
1250
+ e[14] !== t ? (S = /* @__PURE__ */ T(nr, { children: t }), e[14] = t, e[15] = S) : S = e[15];
1237
1251
  let $;
1238
- e[14] !== t ? ($ = /* @__PURE__ */ W(Jo, { children: t }), e[14] = t, e[15] = $) : $ = e[15];
1239
- let M;
1240
- e[16] !== c || e[17] !== d || e[18] !== m || e[19] !== S || e[20] !== $ || e[21] !== a ? (M = /* @__PURE__ */ W("div", { "data-element-src": "Menu/Menu.tsx:171", ref: d, id: c, role: "menu", tabIndex: -1, "aria-labelledby": a, "aria-activedescendant": m, ...C(H.div, S), children: $ }), e[16] = c, e[17] = d, e[18] = m, e[19] = S, e[20] = $, e[21] = a, e[22] = M) : M = e[22];
1241
- const j = h ?? document.body;
1242
- let z;
1243
- return e[23] !== M || e[24] !== j ? (z = Oe(M, j), e[23] = M, e[24] = j, e[25] = z) : z = e[25], z;
1252
+ e[16] !== d || e[17] !== a || e[18] !== m || e[19] !== W || e[20] !== S || e[21] !== s ? ($ = /* @__PURE__ */ T("div", { "data-element-src": "Menu/Menu.tsx:171", ref: a, id: d, role: "menu", tabIndex: -1, "aria-labelledby": s, "aria-activedescendant": m, ...j(z.div, W), children: S }), e[16] = d, e[17] = a, e[18] = m, e[19] = W, e[20] = S, e[21] = s, e[22] = $) : $ = e[22];
1253
+ const C = h ?? document.body;
1254
+ let H;
1255
+ return e[23] !== $ || e[24] !== C ? (H = Ve($, C), e[23] = $, e[24] = C, e[25] = H) : H = e[25], H;
1244
1256
  }
1245
- function dr(o) {
1246
- const e = R.c(18), {
1257
+ function mr(o) {
1258
+ const e = B.c(23), {
1247
1259
  onClick: t,
1248
- children: r
1249
- } = o, {
1250
- close: l,
1251
- highlightedId: n,
1252
- setHighlightedId: c,
1253
- registerItem: a
1254
- } = de(), s = U(), i = I(null), d = n === s;
1255
- let u, p;
1256
- e[0] !== s || e[1] !== a ? (u = () => {
1257
- const v = i.current;
1258
- if (v)
1259
- return a(s, v);
1260
- }, p = [s, a], e[0] = s, e[1] = a, e[2] = u, e[3] = p) : (u = e[2], p = e[3]), _(u, p);
1261
- let x;
1262
- e[4] !== l || e[5] !== t ? (x = () => {
1263
- t?.(), l();
1264
- }, e[4] = l, e[5] = t, e[6] = x) : x = e[6];
1265
- const h = x;
1260
+ disabled: r,
1261
+ children: c
1262
+ } = o, n = r === void 0 ? !1 : r, {
1263
+ close: d,
1264
+ highlightedId: s,
1265
+ setHighlightedId: l,
1266
+ registerItem: i
1267
+ } = ge(), a = Z(), u = q(null), p = s === a;
1268
+ let x, h;
1269
+ e[0] !== n || e[1] !== a || e[2] !== i ? (x = () => {
1270
+ const C = u.current;
1271
+ if (C)
1272
+ return i(a, C, n);
1273
+ }, h = [n, a, i], e[0] = n, e[1] = a, e[2] = i, e[3] = x, e[4] = h) : (x = e[3], h = e[4]), V(x, h);
1266
1274
  let g;
1267
- e[7] !== s || e[8] !== c ? (g = () => c(s), e[7] = s, e[8] = c, e[9] = g) : g = e[9];
1268
- const b = d && P.itemHighlighted;
1269
- let f;
1270
- e[10] !== b ? (f = [P.item, b], e[10] = b, e[11] = f) : f = e[11];
1275
+ e[5] !== d || e[6] !== n || e[7] !== t ? (g = () => {
1276
+ n || (t?.(), d());
1277
+ }, e[5] = d, e[6] = n, e[7] = t, e[8] = g) : g = e[8];
1278
+ const b = g, y = n || void 0;
1271
1279
  let m;
1272
- return e[12] !== r || e[13] !== h || e[14] !== s || e[15] !== g || e[16] !== f ? (m = /* @__PURE__ */ W("div", { "data-element-src": "Menu/Menu.tsx:210", ref: i, id: s, role: "menuitem", onClick: h, onPointerEnter: g, ...C(H.div, f), children: r }), e[12] = r, e[13] = h, e[14] = s, e[15] = g, e[16] = f, e[17] = m) : m = e[17], m;
1280
+ e[9] !== n || e[10] !== a || e[11] !== l ? (m = n ? void 0 : () => l(a), e[9] = n, e[10] = a, e[11] = l, e[12] = m) : m = e[12];
1281
+ const f = p && P.itemHighlighted, W = n && P.itemDisabled;
1282
+ let S;
1283
+ e[13] !== f || e[14] !== W ? (S = [P.item, f, W], e[13] = f, e[14] = W, e[15] = S) : S = e[15];
1284
+ let $;
1285
+ return e[16] !== c || e[17] !== b || e[18] !== a || e[19] !== y || e[20] !== m || e[21] !== S ? ($ = /* @__PURE__ */ T("div", { "data-element-src": "Menu/Menu.tsx:213", ref: u, id: a, role: "menuitem", "aria-disabled": y, onClick: b, onPointerEnter: m, ...j(z.div, S), children: c }), e[16] = c, e[17] = b, e[18] = a, e[19] = y, e[20] = m, e[21] = S, e[22] = $) : $ = e[22], $;
1273
1286
  }
1274
- function ur(o) {
1275
- const e = R.c(20), {
1287
+ function br(o) {
1288
+ const e = B.c(20), {
1276
1289
  href: t,
1277
1290
  onNavigate: r,
1278
- children: l
1291
+ children: c
1279
1292
  } = o, {
1280
1293
  close: n,
1281
- highlightedId: c,
1282
- setHighlightedId: a,
1283
- registerItem: s
1284
- } = de(), i = U(), d = I(null), u = c === i;
1294
+ highlightedId: d,
1295
+ setHighlightedId: s,
1296
+ registerItem: l
1297
+ } = ge(), i = Z(), a = q(null), u = d === i;
1285
1298
  let p, x;
1286
- e[0] !== i || e[1] !== s ? (p = () => {
1287
- const v = d.current;
1288
- if (v)
1289
- return s(i, v);
1290
- }, x = [i, s], e[0] = i, e[1] = s, e[2] = p, e[3] = x) : (p = e[2], x = e[3]), _(p, x);
1299
+ e[0] !== i || e[1] !== l ? (p = () => {
1300
+ const f = a.current;
1301
+ if (f)
1302
+ return l(i, f);
1303
+ }, x = [i, l], e[0] = i, e[1] = l, e[2] = p, e[3] = x) : (p = e[2], x = e[3]), V(p, x);
1291
1304
  let h;
1292
- e[4] !== n || e[5] !== t || e[6] !== r ? (h = (v) => {
1293
- r && Ce(v) && r(t, v), n();
1305
+ e[4] !== n || e[5] !== t || e[6] !== r ? (h = (f) => {
1306
+ r && Be(f) && r(t, f), n();
1294
1307
  }, e[4] = n, e[5] = t, e[6] = r, e[7] = h) : h = e[7];
1295
1308
  let g;
1296
- e[8] !== i || e[9] !== a ? (g = () => a(i), e[8] = i, e[9] = a, e[10] = g) : g = e[10];
1309
+ e[8] !== i || e[9] !== s ? (g = () => s(i), e[8] = i, e[9] = s, e[10] = g) : g = e[10];
1297
1310
  const b = u && P.itemHighlighted;
1298
- let f;
1299
- e[11] !== b ? (f = [P.item, P.linkItem, b], e[11] = b, e[12] = f) : f = e[12];
1311
+ let y;
1312
+ e[11] !== b ? (y = [P.item, P.linkItem, b], e[11] = b, e[12] = y) : y = e[12];
1300
1313
  let m;
1301
- return e[13] !== l || e[14] !== t || e[15] !== i || e[16] !== h || e[17] !== g || e[18] !== f ? (m = /* @__PURE__ */ W("a", { "data-element-src": "Menu/Menu.tsx:247", ref: d, id: i, href: t, onClick: h, role: "menuitem", onPointerEnter: g, ...C(H.a, f), children: l }), e[13] = l, e[14] = t, e[15] = i, e[16] = h, e[17] = g, e[18] = f, e[19] = m) : m = e[19], m;
1314
+ return e[13] !== c || e[14] !== t || e[15] !== i || e[16] !== h || e[17] !== g || e[18] !== y ? (m = /* @__PURE__ */ T("a", { "data-element-src": "Menu/Menu.tsx:255", ref: a, id: i, href: t, onClick: h, role: "menuitem", onPointerEnter: g, ...j(z.a, y), children: c }), e[13] = c, e[14] = t, e[15] = i, e[16] = h, e[17] = g, e[18] = y, e[19] = m) : m = e[19], m;
1302
1315
  }
1303
- function xr() {
1304
- const o = R.c(1);
1316
+ function fr() {
1317
+ const o = B.c(1);
1305
1318
  let e;
1306
- return o[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ W("div", { "data-element-src": "Menu/Menu.tsx:269", role: "separator", "aria-orientation": "horizontal", ...C(H.div, P.separator) }), o[0] = e) : e = o[0], e;
1319
+ return o[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ T("div", { "data-element-src": "Menu/Menu.tsx:277", role: "separator", "aria-orientation": "horizontal", ...j(z.div, P.separator) }), o[0] = e) : e = o[0], e;
1307
1320
  }
1308
- const Lr = {
1309
- Root: sr,
1310
- Trigger: lr,
1311
- Popup: cr,
1312
- Item: dr,
1313
- LinkItem: ur,
1314
- Separator: xr
1315
- }, T = {
1321
+ const Gr = {
1322
+ Root: xr,
1323
+ Trigger: gr,
1324
+ Popup: hr,
1325
+ Item: mr,
1326
+ LinkItem: br,
1327
+ Separator: fr
1328
+ }, M = {
1316
1329
  container: {
1317
1330
  "containerType-k9g6sI": "containerType-x12h1iku",
1318
1331
  "display-k1xSpc": "display-x78zum5",
@@ -1521,28 +1534,28 @@ const Lr = {
1521
1534
  "--x-1pds3uo": o ?? void 0,
1522
1535
  "--x-1n5740v": e ?? void 0
1523
1536
  }]
1524
- }, Le = A(null);
1525
- function ue() {
1526
- const o = O(Le);
1537
+ }, Oe = F(null);
1538
+ function he() {
1539
+ const o = D(Oe);
1527
1540
  if (!o)
1528
1541
  throw new Error("Table compound components must be used within Table.Root");
1529
1542
  return o;
1530
1543
  }
1531
- const pe = A(!1);
1532
- function pr(o) {
1533
- const e = R.c(2), {
1544
+ const be = F(!1);
1545
+ function vr(o) {
1546
+ const e = B.c(2), {
1534
1547
  children: t
1535
1548
  } = o;
1536
1549
  let r;
1537
- return e[0] !== t ? (r = /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:55", ...C(H.div, T.container), children: t }), e[0] = t, e[1] = r) : r = e[1], r;
1550
+ return e[0] !== t ? (r = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:55", ...j(z.div, M.container), children: t }), e[0] = t, e[1] = r) : r = e[1], r;
1538
1551
  }
1539
- function gr(o) {
1552
+ function kr(o) {
1540
1553
  let e = "";
1541
- return ce.forEach(o, (t) => {
1554
+ return pe.forEach(o, (t) => {
1542
1555
  (typeof t == "string" || typeof t == "number") && (e += String(t));
1543
1556
  }), e;
1544
1557
  }
1545
- function hr(o) {
1558
+ function yr(o) {
1546
1559
  let e = o;
1547
1560
  for (let t = 0; t < 8 && e && typeof e == "object"; t++) {
1548
1561
  const r = e.type ?? e.render;
@@ -1551,44 +1564,44 @@ function hr(o) {
1551
1564
  }
1552
1565
  return e;
1553
1566
  }
1554
- function mr(o, e) {
1555
- const t = [], r = [], l = [];
1556
- function n(c) {
1557
- ce.forEach(c, (a) => {
1558
- if (!Ee(a)) return;
1559
- const s = a.props, i = hr(a.type), d = i?.displayName || i?.name || "";
1560
- if (i === he || d === "HeaderCell") {
1561
- const u = s.width ? String(ye(s.width)) : `minmax(${Re(e)}, 1fr)`;
1562
- t.push(u), r.push(s.compactWidth ? String(ye(s.compactWidth)) : u);
1563
- const p = typeof s.label == "string" ? s.label : void 0, x = gr(s.children).trim(), h = p ?? x;
1564
- !p && x === "" && s.children != null && je("Table", "headerCell-missing-label", "Table.HeaderCell with JSX children must set `label` for stack-mode rendering."), l.push(h);
1565
- } else s.children && n(s.children);
1567
+ function wr(o, e) {
1568
+ const t = [], r = [], c = [];
1569
+ function n(d) {
1570
+ pe.forEach(d, (s) => {
1571
+ if (!Xe(s)) return;
1572
+ const l = s.props, i = yr(s.type), a = i?.displayName || i?.name || "";
1573
+ if (i === ve || a === "HeaderCell") {
1574
+ const u = l.width ? String(Se(l.width)) : `minmax(${Pe(e)}, 1fr)`;
1575
+ t.push(u), r.push(l.compactWidth ? String(Se(l.compactWidth)) : u);
1576
+ const p = typeof l.label == "string" ? l.label : void 0, x = kr(l.children).trim(), h = p ?? x;
1577
+ !p && x === "" && l.children != null && Ie("Table", "headerCell-missing-label", "Table.HeaderCell with JSX children must set `label` for stack-mode rendering."), c.push(h);
1578
+ } else l.children && n(l.children);
1566
1579
  });
1567
1580
  }
1568
1581
  return n(o), {
1569
1582
  template: t.join(" "),
1570
1583
  compactTemplate: r.join(" "),
1571
- labels: l
1584
+ labels: c
1572
1585
  };
1573
1586
  }
1574
- function br(o) {
1575
- const e = R.c(13), {
1587
+ function Mr(o) {
1588
+ const e = B.c(13), {
1576
1589
  children: t
1577
- } = o, r = I(null);
1578
- let l;
1579
- e[0] === Symbol.for("react.memo_cache_sentinel") ? (l = {
1590
+ } = o, r = q(null);
1591
+ let c;
1592
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (c = {
1580
1593
  start: !1,
1581
1594
  end: !1
1582
- }, e[0] = l) : l = e[0];
1583
- const [n, c] = ee(l);
1584
- let a, s;
1585
- e[1] === Symbol.for("react.memo_cache_sentinel") ? (a = () => {
1595
+ }, e[0] = c) : c = e[0];
1596
+ const [n, d] = ee(c);
1597
+ let s, l;
1598
+ e[1] === Symbol.for("react.memo_cache_sentinel") ? (s = () => {
1586
1599
  const g = r.current;
1587
1600
  if (!g)
1588
1601
  return;
1589
1602
  const b = () => {
1590
1603
  const m = g.scrollWidth - g.clientWidth > 1;
1591
- c({
1604
+ d({
1592
1605
  start: m && g.scrollLeft > 1,
1593
1606
  end: m && g.scrollLeft + g.clientWidth < g.scrollWidth - 1
1594
1607
  });
@@ -1596,213 +1609,213 @@ function br(o) {
1596
1609
  b(), g.addEventListener("scroll", b, {
1597
1610
  passive: !0
1598
1611
  });
1599
- const f = typeof ResizeObserver < "u" ? new ResizeObserver(b) : null;
1600
- return f?.observe(g), () => {
1601
- g.removeEventListener("scroll", b), f?.disconnect();
1612
+ const y = typeof ResizeObserver < "u" ? new ResizeObserver(b) : null;
1613
+ return y?.observe(g), () => {
1614
+ g.removeEventListener("scroll", b), y?.disconnect();
1602
1615
  };
1603
- }, s = [], e[1] = a, e[2] = s) : (a = e[1], s = e[2]), _(a, s);
1616
+ }, l = [], e[1] = s, e[2] = l) : (s = e[1], l = e[2]), V(s, l);
1604
1617
  let i;
1605
- e[3] !== t ? (i = /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:196", ref: r, ...C(H.div, T.scrollX), children: t }), e[3] = t, e[4] = i) : i = e[4];
1606
- const d = n.start && T.edgeFadeVisible;
1618
+ e[3] !== t ? (i = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:196", ref: r, ...j(z.div, M.scrollX), children: t }), e[3] = t, e[4] = i) : i = e[4];
1619
+ const a = n.start && M.edgeFadeVisible;
1607
1620
  let u;
1608
- e[5] !== d ? (u = /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:199", "aria-hidden": !0, ...C(H.div, T.edgeFade, T.edgeFadeLeft, d) }), e[5] = d, e[6] = u) : u = e[6];
1609
- const p = n.end && T.edgeFadeVisible;
1621
+ e[5] !== a ? (u = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:199", "aria-hidden": !0, ...j(z.div, M.edgeFade, M.edgeFadeLeft, a) }), e[5] = a, e[6] = u) : u = e[6];
1622
+ const p = n.end && M.edgeFadeVisible;
1610
1623
  let x;
1611
- e[7] !== p ? (x = /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:203", "aria-hidden": !0, ...C(H.div, T.edgeFade, T.edgeFadeRight, p) }), e[7] = p, e[8] = x) : x = e[8];
1624
+ e[7] !== p ? (x = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:203", "aria-hidden": !0, ...j(z.div, M.edgeFade, M.edgeFadeRight, p) }), e[7] = p, e[8] = x) : x = e[8];
1612
1625
  let h;
1613
- return e[9] !== i || e[10] !== u || e[11] !== x ? (h = /* @__PURE__ */ ae("div", { "data-element-src": "Table/Table.tsx:195", ...C(H.div, T.scrollFrame), children: [
1626
+ return e[9] !== i || e[10] !== u || e[11] !== x ? (h = /* @__PURE__ */ ue("div", { "data-element-src": "Table/Table.tsx:195", ...j(z.div, M.scrollFrame), children: [
1614
1627
  i,
1615
1628
  u,
1616
1629
  x
1617
1630
  ] }), e[9] = i, e[10] = u, e[11] = x, e[12] = h) : h = e[12], h;
1618
1631
  }
1619
- function fr({
1632
+ function Tr({
1620
1633
  children: o,
1621
1634
  variant: e = "default",
1622
1635
  size: t = "md",
1623
1636
  responsive: r = !0,
1624
- minColumnWidth: l = "labelMinW",
1637
+ minColumnWidth: c = "labelMinW",
1625
1638
  sortChip: n,
1626
- pagination: c
1639
+ pagination: d
1627
1640
  }) {
1628
- const a = I(null), {
1629
- template: s,
1641
+ const s = q(null), {
1642
+ template: l,
1630
1643
  compactTemplate: i,
1631
- labels: d
1632
- } = mr(o, l);
1633
- s && (a.current = s);
1634
- const u = /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:257", role: "table", ...C(
1635
- H.div,
1636
- T.root,
1644
+ labels: a
1645
+ } = wr(o, c);
1646
+ l && (s.current = l);
1647
+ const u = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:257", role: "table", ...j(
1648
+ z.div,
1649
+ M.root,
1637
1650
  // When responsive, use gridColumnsResponsive so the explicit column
1638
1651
  // template and the stack-mode @container override live in one StyleX
1639
1652
  // style object. Splitting them across two styles (gridColumns +
1640
1653
  // rootResponsive) causes StyleX conflict resolution to drop the
1641
1654
  // column template because rootResponsive's gridTemplateColumns key
1642
1655
  // always wins as the later entry in the array.
1643
- s ? r ? T.gridColumnsResponsive(s, i) : T.gridColumns(s) : void 0,
1644
- r && T.rootResponsive
1645
- ), children: o }), x = /* @__PURE__ */ ae(Pe, { children: [
1656
+ l ? r ? M.gridColumnsResponsive(l, i) : M.gridColumns(l) : void 0,
1657
+ r && M.rootResponsive
1658
+ ), children: o }), x = /* @__PURE__ */ ue(Fe, { children: [
1646
1659
  n,
1647
- r ? /* @__PURE__ */ W(br, { children: u }) : u,
1648
- c
1660
+ r ? /* @__PURE__ */ T(Mr, { children: u }) : u,
1661
+ d
1649
1662
  ] });
1650
- return /* @__PURE__ */ W(Le.Provider, { value: {
1663
+ return /* @__PURE__ */ T(Oe.Provider, { value: {
1651
1664
  variant: e,
1652
1665
  size: t,
1653
1666
  responsive: r,
1654
- labels: d,
1655
- inferredTemplateRef: a
1656
- }, children: r ? /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:299", ...C(H.div, T.rootContainer), children: x }) : x });
1667
+ labels: a,
1668
+ inferredTemplateRef: s
1669
+ }, children: r ? /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:299", ...j(z.div, M.rootContainer), children: x }) : x });
1657
1670
  }
1658
- function vr(o) {
1659
- const e = R.c(2), {
1671
+ function Wr(o) {
1672
+ const e = B.c(2), {
1660
1673
  children: t
1661
1674
  } = o;
1662
1675
  let r;
1663
- return e[0] !== t ? (r = /* @__PURE__ */ W(pe.Provider, { value: !0, children: /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:309", role: "rowgroup", ...C(H.div, T.header), children: t }) }), e[0] = t, e[1] = r) : r = e[1], r;
1676
+ return e[0] !== t ? (r = /* @__PURE__ */ T(be.Provider, { value: !0, children: /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:309", role: "rowgroup", ...j(z.div, M.header), children: t }) }), e[0] = t, e[1] = r) : r = e[1], r;
1664
1677
  }
1665
- function kr(o) {
1666
- const e = R.c(19), {
1678
+ function Sr(o) {
1679
+ const e = B.c(19), {
1667
1680
  children: t
1668
1681
  } = o, {
1669
1682
  variant: r
1670
- } = ue();
1671
- let l, n, c, a, s, i;
1683
+ } = he();
1684
+ let c, n, d, s, l, i;
1672
1685
  if (e[0] !== t || e[1] !== r) {
1673
- const p = ce.toArray(t);
1674
- n = pe.Provider, i = !1, l = Po.div, c = "rowgroup", a = T.body;
1686
+ const p = pe.toArray(t);
1687
+ n = be.Provider, i = !1, c = Fo.div, d = "rowgroup", s = M.body;
1675
1688
  let x;
1676
- e[8] !== r ? (x = (h, g) => r !== "striped" ? h : /* @__PURE__ */ W(Ie.Provider, { value: g, children: h }, h.key ?? g), e[8] = r, e[9] = x) : x = e[9], s = p.map(x), e[0] = t, e[1] = r, e[2] = l, e[3] = n, e[4] = c, e[5] = a, e[6] = s, e[7] = i;
1689
+ e[8] !== r ? (x = (h, g) => r !== "striped" ? h : /* @__PURE__ */ T(Ge.Provider, { value: g, children: h }, h.key ?? g), e[8] = r, e[9] = x) : x = e[9], l = p.map(x), e[0] = t, e[1] = r, e[2] = c, e[3] = n, e[4] = d, e[5] = s, e[6] = l, e[7] = i;
1677
1690
  } else
1678
- l = e[2], n = e[3], c = e[4], a = e[5], s = e[6], i = e[7];
1679
- let d;
1680
- e[10] !== l || e[11] !== c || e[12] !== a || e[13] !== s ? (d = /* @__PURE__ */ W(l, { role: c, style: a, children: s }), e[10] = l, e[11] = c, e[12] = a, e[13] = s, e[14] = d) : d = e[14];
1691
+ c = e[2], n = e[3], d = e[4], s = e[5], l = e[6], i = e[7];
1692
+ let a;
1693
+ e[10] !== c || e[11] !== d || e[12] !== s || e[13] !== l ? (a = /* @__PURE__ */ T(c, { role: d, style: s, children: l }), e[10] = c, e[11] = d, e[12] = s, e[13] = l, e[14] = a) : a = e[14];
1681
1694
  let u;
1682
- return e[15] !== n || e[16] !== i || e[17] !== d ? (u = /* @__PURE__ */ W(n, { value: i, children: d }), e[15] = n, e[16] = i, e[17] = d, e[18] = u) : u = e[18], u;
1695
+ return e[15] !== n || e[16] !== i || e[17] !== a ? (u = /* @__PURE__ */ T(n, { value: i, children: a }), e[15] = n, e[16] = i, e[17] = a, e[18] = u) : u = e[18], u;
1683
1696
  }
1684
- const Ie = A(-1), yr = 'button, a, input, select, textarea, [role="button"], [role="link"], [role="checkbox"], [role="menuitem"], [role="switch"], [role="tab"], [contenteditable="true"]';
1685
- function wr(o) {
1686
- const e = R.c(17), {
1697
+ const Ge = F(-1), $r = 'button, a, input, select, textarea, [role="button"], [role="link"], [role="checkbox"], [role="menuitem"], [role="switch"], [role="tab"], [contenteditable="true"]';
1698
+ function Cr(o) {
1699
+ const e = B.c(17), {
1687
1700
  children: t,
1688
1701
  onClick: r,
1689
- "aria-label": l
1702
+ "aria-label": c
1690
1703
  } = o, {
1691
1704
  variant: n
1692
- } = ue(), c = O(pe), a = O(Ie), s = a >= 0 && a % 2 === 1;
1705
+ } = he(), d = D(be), s = D(Ge), l = s >= 0 && s % 2 === 1;
1693
1706
  let i;
1694
- if (e[0] !== l || e[1] !== t || e[2] !== s || e[3] !== c || e[4] !== r || e[5] !== n) {
1695
- const d = ce.toArray(t), u = r !== void 0 && !c;
1707
+ if (e[0] !== c || e[1] !== t || e[2] !== l || e[3] !== d || e[4] !== r || e[5] !== n) {
1708
+ const a = pe.toArray(t), u = r !== void 0 && !d;
1696
1709
  let p;
1697
1710
  e[7] !== u || e[8] !== r ? (p = u ? (m) => {
1698
- const v = m.target;
1699
- v instanceof Element && v.closest(yr) || r();
1711
+ const f = m.target;
1712
+ f instanceof Element && f.closest($r) || r();
1700
1713
  } : void 0, e[7] = u, e[8] = r, e[9] = p) : p = e[9];
1701
1714
  let x;
1702
1715
  e[10] !== u || e[11] !== r ? (x = u ? (m) => {
1703
1716
  (m.key === "Enter" || m.key === " ") && r();
1704
1717
  } : void 0, e[10] = u, e[11] = r, e[12] = x) : x = e[12];
1705
- const h = !c && T.bodyRow, g = !c && n === "striped" && s && T.stripedEven, b = u && T.clickableRow;
1706
- let f;
1707
- e[13] !== h || e[14] !== g || e[15] !== b ? (f = [T.row, h, g, b], e[13] = h, e[14] = g, e[15] = b, e[16] = f) : f = e[16], i = /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:381", role: "row", tabIndex: u ? 0 : void 0, "aria-label": u ? l : void 0, onClick: p, onKeyDown: x, ...C(H.div, f), children: d.map((m, v) => /* @__PURE__ */ W(ge.Provider, { value: {
1708
- index: v,
1709
- total: d.length
1710
- }, children: m }, m.key ?? v)) }), e[0] = l, e[1] = t, e[2] = s, e[3] = c, e[4] = r, e[5] = n, e[6] = i;
1718
+ const h = !d && M.bodyRow, g = !d && n === "striped" && l && M.stripedEven, b = u && M.clickableRow;
1719
+ let y;
1720
+ e[13] !== h || e[14] !== g || e[15] !== b ? (y = [M.row, h, g, b], e[13] = h, e[14] = g, e[15] = b, e[16] = y) : y = e[16], i = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:381", role: "row", tabIndex: u ? 0 : void 0, "aria-label": u ? c : void 0, onClick: p, onKeyDown: x, ...j(z.div, y), children: a.map((m, f) => /* @__PURE__ */ T(fe.Provider, { value: {
1721
+ index: f,
1722
+ total: a.length
1723
+ }, children: m }, m.key ?? f)) }), e[0] = c, e[1] = t, e[2] = l, e[3] = d, e[4] = r, e[5] = n, e[6] = i;
1711
1724
  } else
1712
1725
  i = e[6];
1713
1726
  return i;
1714
1727
  }
1715
- const ge = A({
1728
+ const fe = F({
1716
1729
  index: 0,
1717
1730
  total: 0
1718
1731
  });
1719
- function he(o) {
1720
- const e = R.c(8), {
1732
+ function ve(o) {
1733
+ const e = B.c(8), {
1721
1734
  children: t,
1722
1735
  "aria-label": r
1723
1736
  } = o, {
1724
- size: l,
1737
+ size: c,
1725
1738
  variant: n
1726
- } = ue(), {
1727
- index: c,
1728
- total: a
1729
- } = O(ge), s = n === "bordered" && c === a - 1, i = l === "sm" ? T.cellSm : T.cellMd, d = n === "bordered" && T.borderedCell, u = s && T.borderedCellLast;
1739
+ } = he(), {
1740
+ index: d,
1741
+ total: s
1742
+ } = D(fe), l = n === "bordered" && d === s - 1, i = c === "sm" ? M.cellSm : M.cellMd, a = n === "bordered" && M.borderedCell, u = l && M.borderedCellLast;
1730
1743
  let p;
1731
- e[0] !== i || e[1] !== d || e[2] !== u ? (p = [T.headerCell, i, d, u], e[0] = i, e[1] = d, e[2] = u, e[3] = p) : p = e[3];
1744
+ e[0] !== i || e[1] !== a || e[2] !== u ? (p = [M.headerCell, i, a, u], e[0] = i, e[1] = a, e[2] = u, e[3] = p) : p = e[3];
1732
1745
  let x;
1733
- return e[4] !== r || e[5] !== t || e[6] !== p ? (x = /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:467", role: "columnheader", "aria-label": r, ...C(H.div, p), children: t }), e[4] = r, e[5] = t, e[6] = p, e[7] = x) : x = e[7], x;
1746
+ return e[4] !== r || e[5] !== t || e[6] !== p ? (x = /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:467", role: "columnheader", "aria-label": r, ...j(z.div, p), children: t }), e[4] = r, e[5] = t, e[6] = p, e[7] = x) : x = e[7], x;
1734
1747
  }
1735
- he.displayName = "HeaderCell";
1736
- function Mr(o) {
1737
- const e = R.c(16), {
1748
+ ve.displayName = "HeaderCell";
1749
+ function Hr(o) {
1750
+ const e = B.c(16), {
1738
1751
  children: t,
1739
1752
  isActions: r
1740
1753
  } = o, {
1741
- size: l,
1754
+ size: c,
1742
1755
  variant: n,
1743
- labels: c,
1744
- responsive: a
1745
- } = ue(), {
1746
- index: s,
1756
+ labels: d,
1757
+ responsive: s
1758
+ } = he(), {
1759
+ index: l,
1747
1760
  total: i
1748
- } = O(ge), d = n === "bordered" && s === i - 1, u = c[s] ?? "", p = l === "sm" ? T.cellSm : T.cellMd, x = n === "bordered" && T.borderedCell, h = d && T.borderedCellLast, g = r && T.cellActions;
1761
+ } = D(fe), a = n === "bordered" && l === i - 1, u = d[l] ?? "", p = c === "sm" ? M.cellSm : M.cellMd, x = n === "bordered" && M.borderedCell, h = a && M.borderedCellLast, g = r && M.cellActions;
1749
1762
  let b;
1750
- e[0] !== p || e[1] !== x || e[2] !== h || e[3] !== g ? (b = [T.cell, p, x, h, g], e[0] = p, e[1] = x, e[2] = h, e[3] = g, e[4] = b) : b = e[4];
1751
- let f;
1752
- e[5] !== r || e[6] !== u || e[7] !== a ? (f = a && !r && u !== "" ? /* @__PURE__ */ W("span", { "data-element-src": "Table/Table.tsx:507", ...C(H.span, T.cellLabel), children: u }) : null, e[5] = r, e[6] = u, e[7] = a, e[8] = f) : f = e[8];
1763
+ e[0] !== p || e[1] !== x || e[2] !== h || e[3] !== g ? (b = [M.cell, p, x, h, g], e[0] = p, e[1] = x, e[2] = h, e[3] = g, e[4] = b) : b = e[4];
1764
+ let y;
1765
+ e[5] !== r || e[6] !== u || e[7] !== s ? (y = s && !r && u !== "" ? /* @__PURE__ */ T("span", { "data-element-src": "Table/Table.tsx:507", ...j(z.span, M.cellLabel), children: u }) : null, e[5] = r, e[6] = u, e[7] = s, e[8] = y) : y = e[8];
1753
1766
  let m;
1754
- e[9] !== t || e[10] !== r ? (m = r ? t : /* @__PURE__ */ W("div", { "data-element-src": "Table/Table.tsx:509", ...C(H.div, T.cellValue), children: t }), e[9] = t, e[10] = r, e[11] = m) : m = e[11];
1755
- let v;
1756
- return e[12] !== b || e[13] !== f || e[14] !== m ? (v = /* @__PURE__ */ ae("div", { "data-element-src": "Table/Table.tsx:496", role: "cell", ...C(H.div, b), children: [
1757
- f,
1767
+ e[9] !== t || e[10] !== r ? (m = r ? t : /* @__PURE__ */ T("div", { "data-element-src": "Table/Table.tsx:509", ...j(z.div, M.cellValue), children: t }), e[9] = t, e[10] = r, e[11] = m) : m = e[11];
1768
+ let f;
1769
+ return e[12] !== b || e[13] !== y || e[14] !== m ? (f = /* @__PURE__ */ ue("div", { "data-element-src": "Table/Table.tsx:496", role: "cell", ...j(z.div, b), children: [
1770
+ y,
1758
1771
  m
1759
- ] }), e[12] = b, e[13] = f, e[14] = m, e[15] = v) : v = e[15], v;
1772
+ ] }), e[12] = b, e[13] = y, e[14] = m, e[15] = f) : f = e[15], f;
1760
1773
  }
1761
- const Tr = {
1774
+ const jr = {
1762
1775
  /** @deprecated Wrap behaviour is built into Table.Root. Drop this wrapper from new code. */
1763
- Container: pr,
1764
- Root: fr,
1765
- Header: vr,
1766
- Body: kr,
1767
- Row: wr,
1768
- HeaderCell: he,
1769
- Cell: Mr
1770
- }, Ir = Tr;
1776
+ Container: vr,
1777
+ Root: Tr,
1778
+ Header: Wr,
1779
+ Body: Sr,
1780
+ Row: Cr,
1781
+ HeaderCell: ve,
1782
+ Cell: Hr
1783
+ }, Dr = jr;
1771
1784
  export {
1772
- Se as B,
1773
- Jo as C,
1774
- Hr as D,
1775
- he as H,
1776
- jr as I,
1777
- Lr as M,
1778
- nr as P,
1779
- wr as R,
1780
- Ge as S,
1781
- zr as T,
1782
- Zo as a,
1783
- Br as b,
1784
- Ae as c,
1785
- je as d,
1786
- ir as e,
1787
- rr as f,
1785
+ ze as B,
1786
+ nr as C,
1787
+ Ir as D,
1788
+ ve as H,
1789
+ qr as I,
1790
+ Gr as M,
1791
+ dr as P,
1792
+ Cr as R,
1793
+ _e as S,
1794
+ Pr as T,
1795
+ or as a,
1796
+ Or as b,
1797
+ Ne as c,
1798
+ Ie as d,
1799
+ ur as e,
1800
+ cr as f,
1788
1801
  Q as g,
1789
- Po as h,
1790
- Ce as i,
1791
- Eo as j,
1792
- Oo as k,
1793
- Rr as l,
1794
- We as m,
1795
- er as n,
1796
- ye as o,
1797
- Ir as p,
1798
- T as q,
1799
- Re as r,
1800
- He as s,
1801
- vr as t,
1802
- Do as u,
1803
- kr as v,
1804
- fr as w,
1805
- Mr as x,
1806
- Tr as y
1802
+ Fo as h,
1803
+ Be as i,
1804
+ Xo as j,
1805
+ Vo as k,
1806
+ Er as l,
1807
+ je as m,
1808
+ sr as n,
1809
+ Se as o,
1810
+ Dr as p,
1811
+ M as q,
1812
+ Pe as r,
1813
+ Le as s,
1814
+ Wr as t,
1815
+ Ko as u,
1816
+ Sr as v,
1817
+ Tr as w,
1818
+ Hr as x,
1819
+ jr as y
1807
1820
  };
1808
- //# sourceMappingURL=Table-Cw1B14R3.js.map
1821
+ //# sourceMappingURL=Table-ypIvytAS.js.map