@commercetools/nimbus 0.0.5-rc1 → 0.0.5-rc4

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/index.js CHANGED
@@ -1,14 +1,14 @@
1
- import { defineRecipe as H, createRecipeContext as U, Image as St, Box as kt, defaultSystem as Be, mergeRefs as M, Dialog as A, Portal as Pt, List as Fe, GridItem as _e, SimpleGrid as Rt, Table as _, Text as Tt, defineAnimationStyles as At, defineGlobalStyles as zt, defineLayerStyles as Et, defineSemanticTokens as he, defineSlotRecipe as D, defineTextStyles as It, defineTokens as P, createSystem as Nt, defaultBaseConfig as Ht, defineConfig as Dt, ChakraProvider as Lt, createSlotRecipeContext as q, useSlotRecipe as be, Stack as Bt, useRecipe as Ft, Grid as _t, chakra as Wt, Flex as ie, mergeProps as Ot } from "@chakra-ui/react";
2
- import { Bleed as ka, Code as Pa, Em as Ra, Flex as Ta, Heading as Aa, Highlight as za, Kbd as Ea, List as Ia, Table as Na } from "@chakra-ui/react";
1
+ import { defineRecipe as N, createRecipeContext as U, Image as St, Box as kt, defaultSystem as Be, mergeRefs as M, Dialog as A, Portal as Pt, List as Fe, GridItem as _e, SimpleGrid as Rt, Table as _, Text as Tt, defineAnimationStyles as At, defineGlobalStyles as zt, defineLayerStyles as Et, defineSemanticTokens as he, defineSlotRecipe as H, defineTextStyles as It, defineTokens as P, createSystem as Nt, defaultBaseConfig as Ht, defineConfig as Dt, ChakraProvider as Lt, createSlotRecipeContext as q, useSlotRecipe as be, Stack as Bt, useRecipe as Ft, Grid as _t, chakra as Wt, Flex as ie, mergeProps as Ot } from "@chakra-ui/react";
2
+ import { Bleed as Sa, Code as ka, Em as Pa, Flex as Ra, Heading as Ta, Highlight as Aa, Kbd as za, List as Ea, Table as Ia } from "@chakra-ui/react";
3
3
  import { themeTokens as y } from "@commercetools/nimbus-tokens";
4
4
  import * as S from "react";
5
- import Te, { forwardRef as g, useRef as z, isValidElement as We, cloneElement as Oe, useState as N, useEffect as T, useContext as R, createContext as X, useMemo as Ve, Children as Vt, useCallback as ae, useLayoutEffect as $t } from "react";
5
+ import Te, { forwardRef as g, useRef as z, isValidElement as We, cloneElement as Oe, useContext as R, createContext as X, useState as F, useMemo as Ve, useEffect as T, Children as Vt, useCallback as ae, useLayoutEffect as $t } from "react";
6
6
  import { jsx as n, jsxs as C, Fragment as Mt } from "react/jsx-runtime";
7
7
  import { useObjectRef as Y, useButton as $e, mergeProps as G, useLink as Gt, useFocusable as jt, useCheckbox as Kt, useFocusRing as ve, VisuallyHidden as Ut, useId as qt, useDisclosure as Xt, useProgressBar as Yt, useField as Jt } from "react-aria";
8
8
  import { Tooltip as Zt, TooltipTrigger as Qt, TextField as eo, Input as to, SelectStateContext as oo, Select as ro, Button as no, SelectValue as io, Popover as Me, ListBox as ao, ListBoxItem as lo, ListBoxSection as so, Header as co, Collection as uo, ToggleButtonGroup as po, ToggleButton as mo, DialogTrigger as fo, Dialog as go } from "react-aria-components";
9
9
  import { useToggleState as ho, useDisclosureGroupState as bo, useDisclosureState as vo } from "react-stately";
10
10
  import { Check as yo, Remove as xo, Close as Co, Loop as wo, KeyboardArrowDown as So, KeyboardArrowRight as ko, CheckCircleOutline as Po, WarningAmber as Ro, Info as To, ErrorOutline as Ge, Clear as Ao, HelpOutline as zo } from "@commercetools/nimbus-icons";
11
- const je = H({
11
+ const je = N({
12
12
  className: "avatar",
13
13
  base: {
14
14
  display: "inline-flex",
@@ -46,20 +46,20 @@ function No(e, t) {
46
46
  return e.split("")[0].toUpperCase() + t.split("")[0].toUpperCase();
47
47
  }
48
48
  const Ho = g((e, t) => {
49
- const { firstName: o, lastName: r, src: a, alt: i, ...c } = e, l = `${o} ${r}`, d = {
50
- "aria-label": `${l} avatar`,
49
+ const { firstName: o, lastName: r, src: l, alt: i, ...c } = e, a = `${o} ${r}`, d = {
50
+ "aria-label": `${a} avatar`,
51
51
  ref: t,
52
52
  ...c
53
53
  };
54
- return /* @__PURE__ */ n(Io, { ...d, children: a ? (
54
+ return /* @__PURE__ */ n(Io, { ...d, children: l ? (
55
55
  // TODO: implement more robust error handling for image
56
- /* @__PURE__ */ n(St, { src: a, alt: i || l })
56
+ /* @__PURE__ */ n(St, { src: l, alt: i || a })
57
57
  ) : No(o, r) });
58
58
  });
59
59
  Ho.displayName = "Avatar";
60
60
  const O = g((e, t) => /* @__PURE__ */ n(kt, { ref: t, ...e }));
61
61
  O.displayName = "Box";
62
- const K = H({
62
+ const K = N({
63
63
  className: "nimbus-button",
64
64
  base: {
65
65
  borderRadius: "200",
@@ -273,14 +273,14 @@ const { withContext: Fo } = U({
273
273
  }
274
274
  ), ye = g(
275
275
  (e, t) => {
276
- const { as: o, asChild: r, children: a, ...i } = e, c = z(null), l = Y(M(c, t)), d = o || (r ? "a" : "button") || "button", { buttonProps: p } = $e(
276
+ const { as: o, asChild: r, children: l, ...i } = e, c = z(null), a = Y(M(c, t)), d = o || (r ? "a" : "button") || "button", { buttonProps: p } = $e(
277
277
  {
278
278
  ...i,
279
279
  elementType: d
280
280
  },
281
- l
281
+ a
282
282
  );
283
- return /* @__PURE__ */ n(_o, { ...G(i, p, { as: o, asChild: r, ref: l }), children: a });
283
+ return /* @__PURE__ */ n(_o, { ...G(i, p, { as: o, asChild: r, ref: a }), children: l });
284
284
  }
285
285
  );
286
286
  ye.displayName = "Button";
@@ -288,14 +288,14 @@ const Wi = g(
288
288
  function(t, o) {
289
289
  const {
290
290
  children: r,
291
- portalled: a = !0,
291
+ portalled: l = !0,
292
292
  portalRef: i,
293
293
  backdrop: c = !0,
294
- ...l
294
+ ...a
295
295
  } = t;
296
- return /* @__PURE__ */ C(Pt, { disabled: !a, container: i, children: [
296
+ return /* @__PURE__ */ C(Pt, { disabled: !l, container: i, children: [
297
297
  c && /* @__PURE__ */ n(A.Backdrop, {}),
298
- /* @__PURE__ */ n(A.Positioner, { children: /* @__PURE__ */ n(A.Content, { ref: o, ...l, asChild: !1, children: r }) })
298
+ /* @__PURE__ */ n(A.Positioner, { children: /* @__PURE__ */ n(A.Content, { ref: o, ...a, asChild: !1, children: r }) })
299
299
  ] });
300
300
  }
301
301
  ), Oi = g(function(t, o) {
@@ -314,7 +314,7 @@ const Wi = g(
314
314
  ({ children: e, ...t }, o) => /* @__PURE__ */ n(ye, { px: 0, py: 0, ref: o, ...t, children: e })
315
315
  );
316
316
  le.displayName = "IconButton";
317
- const Ke = H({
317
+ const Ke = N({
318
318
  className: "nimbus-link",
319
319
  // Base styles applied to all instances of the component
320
320
  base: {
@@ -361,8 +361,8 @@ const Ke = H({
361
361
  }
362
362
  }), { withContext: Wo } = U({ recipe: Ke }), Oo = Wo("a"), Vo = g(
363
363
  (e, t) => {
364
- const { as: o, asChild: r, children: a, ...i } = e, c = z(null), l = Y(M(c, t)), d = o || (r ? "span" : "a") || "a", { linkProps: p } = Gt({ ...i, elementType: d }, l);
365
- return /* @__PURE__ */ n(Oo, { ...G(i, p, { as: o, asChild: r, ref: l }), children: a });
364
+ const { as: o, asChild: r, children: l, ...i } = e, c = z(null), a = Y(M(c, t)), d = o || (r ? "span" : "a") || "a", { linkProps: p } = Gt({ ...i, elementType: d }, a);
365
+ return /* @__PURE__ */ n(Oo, { ...G(i, p, { as: o, asChild: r, ref: a }), children: l });
366
366
  }
367
367
  );
368
368
  Vo.displayName = "Link";
@@ -376,7 +376,7 @@ const Zi = Object.assign(Ue, {
376
376
  (e, t) => /* @__PURE__ */ n(Tt, { ref: t, ...e })
377
377
  );
378
378
  $o.displayName = "Text";
379
- const qe = H({
379
+ const qe = N({
380
380
  // Unique class name prefix for the component
381
381
  className: "nimbus-tooltip",
382
382
  // Base styles applied to all instances of the component
@@ -395,36 +395,36 @@ const qe = H({
395
395
  boxShadow: "1"
396
396
  }
397
397
  }), { withContext: Mo } = U({ recipe: qe }), Go = Mo("div"), jo = g(
398
- function({ children: t, placement: o = "bottom", ...r }, a) {
399
- return /* @__PURE__ */ n(Go, { ref: a, asChild: !0, ...r, children: /* @__PURE__ */ n(Zt, { placement: o, ...r, children: t }) });
398
+ function({ children: t, placement: o = "bottom", ...r }, l) {
399
+ return /* @__PURE__ */ n(Go, { ref: l, asChild: !0, ...r, children: /* @__PURE__ */ n(Zt, { placement: o, ...r, children: t }) });
400
400
  }
401
401
  );
402
402
  jo.displayName = "Tooltip";
403
403
  const Ko = Qt;
404
404
  Ko.displayName = "TooltipTrigger";
405
405
  const Uo = g(function(t, o) {
406
- const r = z(null), a = Y(M(r, o)), { focusableProps: i } = jt(t, a);
406
+ const r = z(null), l = Y(M(r, o)), { focusableProps: i } = jt(t, l);
407
407
  if (We(t.children))
408
408
  return Oe(
409
409
  t.children,
410
410
  G(
411
411
  i,
412
412
  t.children.props,
413
- { ref: a }
413
+ { ref: l }
414
414
  )
415
415
  );
416
416
  });
417
417
  Uo.displayName = "MakeElementFocusable";
418
- var qo = (e, t, o, r, a, i, c, l) => {
418
+ var qo = (e, t, o, r, l, i, c, a) => {
419
419
  let d = document.documentElement, p = ["light", "dark"];
420
420
  function m(s) {
421
421
  (Array.isArray(e) ? e : [e]).forEach((h) => {
422
- let x = h === "class", k = x && i ? a.map((w) => i[w] || w) : a;
422
+ let x = h === "class", k = x && i ? l.map((w) => i[w] || w) : l;
423
423
  x ? (d.classList.remove(...k), d.classList.add(i && i[s] ? i[s] : s)) : d.setAttribute(h, s);
424
424
  }), v(s);
425
425
  }
426
426
  function v(s) {
427
- l && p.includes(s) && (d.style.colorScheme = s);
427
+ a && p.includes(s) && (d.style.colorScheme = s);
428
428
  }
429
429
  function u() {
430
430
  return window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
@@ -439,45 +439,45 @@ var qo = (e, t, o, r, a, i, c, l) => {
439
439
  }, themes: [] }, Jo = () => {
440
440
  var e;
441
441
  return (e = S.useContext(xe)) != null ? e : Yo;
442
- }, Zo = (e) => S.useContext(xe) ? S.createElement(S.Fragment, null, e.children) : S.createElement(er, { ...e }), Qo = ["light", "dark"], er = ({ forcedTheme: e, disableTransitionOnChange: t = !1, enableSystem: o = !0, enableColorScheme: r = !0, storageKey: a = "theme", themes: i = Qo, defaultTheme: c = o ? "system" : "light", attribute: l = "data-theme", value: d, children: p, nonce: m, scriptProps: v }) => {
443
- let [u, s] = S.useState(() => or(a, c)), [h, x] = S.useState(() => u === "system" ? ce() : u), k = d ? Object.values(d) : i, w = S.useCallback((b) => {
442
+ }, Zo = (e) => S.useContext(xe) ? S.createElement(S.Fragment, null, e.children) : S.createElement(er, { ...e }), Qo = ["light", "dark"], er = ({ forcedTheme: e, disableTransitionOnChange: t = !1, enableSystem: o = !0, enableColorScheme: r = !0, storageKey: l = "theme", themes: i = Qo, defaultTheme: c = o ? "system" : "light", attribute: a = "data-theme", value: d, children: p, nonce: m, scriptProps: v }) => {
443
+ let [u, s] = S.useState(() => or(l, c)), [h, x] = S.useState(() => u === "system" ? ce() : u), k = d ? Object.values(d) : i, w = S.useCallback((b) => {
444
444
  let f = b;
445
445
  if (!f) return;
446
446
  b === "system" && o && (f = ce());
447
- let E = d ? d[f] : f, Z = t ? rr(m) : null, I = document.documentElement, ne = (F) => {
448
- F === "class" ? (I.classList.remove(...k), E && I.classList.add(E)) : F.startsWith("data-") && (E ? I.setAttribute(F, E) : I.removeAttribute(F));
447
+ let E = d ? d[f] : f, Z = t ? rr(m) : null, I = document.documentElement, ne = (B) => {
448
+ B === "class" ? (I.classList.remove(...k), E && I.classList.add(E)) : B.startsWith("data-") && (E ? I.setAttribute(B, E) : I.removeAttribute(B));
449
449
  };
450
- if (Array.isArray(l) ? l.forEach(ne) : ne(l), r) {
451
- let F = Ae.includes(c) ? c : null, j = Ae.includes(f) ? f : F;
450
+ if (Array.isArray(a) ? a.forEach(ne) : ne(a), r) {
451
+ let B = Ae.includes(c) ? c : null, j = Ae.includes(f) ? f : B;
452
452
  I.style.colorScheme = j;
453
453
  }
454
454
  Z == null || Z();
455
- }, [m]), L = S.useCallback((b) => {
455
+ }, [m]), D = S.useCallback((b) => {
456
456
  let f = typeof b == "function" ? b(u) : b;
457
457
  s(f);
458
458
  try {
459
- localStorage.setItem(a, f);
459
+ localStorage.setItem(l, f);
460
460
  } catch {
461
461
  }
462
- }, [u]), B = S.useCallback((b) => {
462
+ }, [u]), L = S.useCallback((b) => {
463
463
  let f = ce(b);
464
464
  x(f), u === "system" && o && !e && w("system");
465
465
  }, [u, e]);
466
466
  S.useEffect(() => {
467
467
  let b = window.matchMedia(Xe);
468
- return b.addListener(B), B(b), () => b.removeListener(B);
469
- }, [B]), S.useEffect(() => {
468
+ return b.addListener(L), L(b), () => b.removeListener(L);
469
+ }, [L]), S.useEffect(() => {
470
470
  let b = (f) => {
471
- f.key === a && (f.newValue ? s(f.newValue) : L(c));
471
+ f.key === l && (f.newValue ? s(f.newValue) : D(c));
472
472
  };
473
473
  return window.addEventListener("storage", b), () => window.removeEventListener("storage", b);
474
- }, [L]), S.useEffect(() => {
474
+ }, [D]), S.useEffect(() => {
475
475
  w(e ?? u);
476
476
  }, [e, u]);
477
- let W = S.useMemo(() => ({ theme: u, setTheme: L, forcedTheme: e, resolvedTheme: u === "system" ? h : u, themes: o ? [...i, "system"] : i, systemTheme: o ? h : void 0 }), [u, L, e, h, o, i]);
478
- return S.createElement(xe.Provider, { value: W }, S.createElement(tr, { forcedTheme: e, storageKey: a, attribute: l, enableSystem: o, enableColorScheme: r, defaultTheme: c, value: d, themes: i, nonce: m, scriptProps: v }), p);
479
- }, tr = S.memo(({ forcedTheme: e, storageKey: t, attribute: o, enableSystem: r, enableColorScheme: a, defaultTheme: i, value: c, themes: l, nonce: d, scriptProps: p }) => {
480
- let m = JSON.stringify([o, t, i, e, l, c, r, a]).slice(1, -1);
477
+ let W = S.useMemo(() => ({ theme: u, setTheme: D, forcedTheme: e, resolvedTheme: u === "system" ? h : u, themes: o ? [...i, "system"] : i, systemTheme: o ? h : void 0 }), [u, D, e, h, o, i]);
478
+ return S.createElement(xe.Provider, { value: W }, S.createElement(tr, { forcedTheme: e, storageKey: l, attribute: a, enableSystem: o, enableColorScheme: r, defaultTheme: c, value: d, themes: i, nonce: m, scriptProps: v }), p);
479
+ }, tr = S.memo(({ forcedTheme: e, storageKey: t, attribute: o, enableSystem: r, enableColorScheme: l, defaultTheme: i, value: c, themes: a, nonce: d, scriptProps: p }) => {
480
+ let m = JSON.stringify([o, t, i, e, a, c, r, l]).slice(1, -1);
481
481
  return S.createElement("script", { ...p, suppressHydrationWarning: !0, nonce: typeof window > "u" ? d : "", dangerouslySetInnerHTML: { __html: `(${qo.toString()})(${m})` } });
482
482
  }), or = (e, t) => {
483
483
  if (Xo) return;
@@ -817,7 +817,7 @@ const lr = ar(y.breakpoints), sr = zt({
817
817
  cursor: "not-allowed"
818
818
  }
819
819
  }
820
- }), ur = H({
820
+ }), ur = N({
821
821
  className: "nimbus-code",
822
822
  base: {
823
823
  fontFamily: "mono",
@@ -877,7 +877,7 @@ const lr = ar(y.breakpoints), sr = zt({
877
877
  variant: "solid",
878
878
  size: "md"
879
879
  }
880
- }), pr = H({
880
+ }), pr = N({
881
881
  className: "nimbus-heading",
882
882
  base: {
883
883
  fontFamily: "heading",
@@ -923,7 +923,7 @@ const lr = ar(y.breakpoints), sr = zt({
923
923
  defaultVariants: {
924
924
  size: "xl"
925
925
  }
926
- }), mr = H({
926
+ }), mr = N({
927
927
  className: "nimbus-kbd",
928
928
  base: {
929
929
  display: "inline-flex",
@@ -977,7 +977,7 @@ const lr = ar(y.breakpoints), sr = zt({
977
977
  size: "md",
978
978
  variant: "raised"
979
979
  }
980
- }), Ce = H({
980
+ }), Ce = N({
981
981
  // Unique class name prefix for the component
982
982
  className: "nimbus-text-input",
983
983
  // Base styles applied to all instances of the component
@@ -1096,7 +1096,7 @@ const lr = ar(y.breakpoints), sr = zt({
1096
1096
  colors: gr,
1097
1097
  shadows: hr,
1098
1098
  radii: br
1099
- }, yr = D({
1099
+ }, yr = H({
1100
1100
  slots: [
1101
1101
  "trigger",
1102
1102
  "backdrop",
@@ -1347,7 +1347,7 @@ const lr = ar(y.breakpoints), sr = zt({
1347
1347
  placement: "top",
1348
1348
  motionPreset: "scale"
1349
1349
  }
1350
- }), xr = D({
1350
+ }), xr = H({
1351
1351
  className: "chakra-list",
1352
1352
  slots: ["root", "item", "indicator"],
1353
1353
  base: {
@@ -1412,7 +1412,7 @@ const lr = ar(y.breakpoints), sr = zt({
1412
1412
  defaultVariants: {
1413
1413
  variant: "marker"
1414
1414
  }
1415
- }), Cr = D({
1415
+ }), Cr = H({
1416
1416
  className: "chakra-table",
1417
1417
  slots: [
1418
1418
  "root",
@@ -1579,7 +1579,7 @@ const lr = ar(y.breakpoints), sr = zt({
1579
1579
  variant: "line",
1580
1580
  size: "md"
1581
1581
  }
1582
- }), wr = D({
1582
+ }), wr = H({
1583
1583
  slots: ["root", "label", "indicator"],
1584
1584
  // Unique class name prefix for the component
1585
1585
  className: "nimbus-checkbox",
@@ -1677,7 +1677,7 @@ const lr = ar(y.breakpoints), sr = zt({
1677
1677
  defaultVariants: {
1678
1678
  size: "md"
1679
1679
  }
1680
- }), Je = D({
1680
+ }), Je = H({
1681
1681
  slots: [
1682
1682
  "root",
1683
1683
  "trigger",
@@ -1874,7 +1874,7 @@ const lr = ar(y.breakpoints), sr = zt({
1874
1874
  size: "md",
1875
1875
  variant: "outline"
1876
1876
  }
1877
- }), Sr = D({
1877
+ }), Sr = H({
1878
1878
  slots: [
1879
1879
  "root",
1880
1880
  "disclosure",
@@ -1975,8 +1975,8 @@ const lr = ar(y.breakpoints), sr = zt({
1975
1975
  ...y.color["blacks-and-whites"]
1976
1976
  }), Ir = P.durations(y.duration), Nr = P.easings(y.easing), Hr = P.fonts(y.fontFamily), Dr = P.fontSizes(y.fontSize), Lr = P.fontWeights(y.fontWeight), Br = (e) => Object.keys(e).reduce(
1977
1977
  (t, o) => {
1978
- const a = parseFloat(e[o].value) / 100;
1979
- return t[o] = { value: `${a}em` }, t;
1978
+ const l = parseFloat(e[o].value) / 100;
1979
+ return t[o] = { value: `${l}em` }, t;
1980
1980
  },
1981
1981
  {}
1982
1982
  ), Fr = P.letterSpacings(
@@ -2132,23 +2132,7 @@ const lr = ar(y.breakpoints), sr = zt({
2132
2132
  animationStyles: ir
2133
2133
  }
2134
2134
  }), Kr = Nt(Ht, jr);
2135
- function da() {
2136
- const [e, t] = N(o());
2137
- function o() {
2138
- return document.documentElement.style.getPropertyValue("color-scheme") || localStorage.getItem("theme") || "light";
2139
- }
2140
- return T(() => {
2141
- const r = document.documentElement, a = new MutationObserver(() => {
2142
- const i = o();
2143
- t(i);
2144
- });
2145
- return a.observe(r, {
2146
- attributes: !0,
2147
- attributeFilter: ["style"]
2148
- }), () => a.disconnect();
2149
- }, []), e;
2150
- }
2151
- function ua({ children: e, ...t }) {
2135
+ function da({ children: e, ...t }) {
2152
2136
  return /* @__PURE__ */ n(Lt, { value: Kr, children: /* @__PURE__ */ n(nr, { enableSystem: !1, ...t, children: /* @__PURE__ */ n(Mt, { children: e }) }) });
2153
2137
  }
2154
2138
  function se(e) {
@@ -2167,7 +2151,7 @@ const { withProvider: Ur, withContext: Ze } = q({
2167
2151
  "label"
2168
2152
  ), Yr = Ze("span", "indicator"), Jr = g(
2169
2153
  (e, t) => {
2170
- const o = z(null), r = Y(M(o, t)), a = be({ key: "checkbox" }), [i] = a.splitVariantProps(e), [c, l] = se(e), d = ho(e), { inputProps: p } = Kt(l, d, r), { isFocused: m, focusProps: v } = ve(), u = d.isSelected && !e.isIndeterminate, s = e.isIndeterminate, h = {
2154
+ const o = z(null), r = Y(M(o, t)), l = be({ key: "checkbox" }), [i] = l.splitVariantProps(e), [c, a] = se(e), d = ho(e), { inputProps: p } = Kt(a, d, r), { isFocused: m, focusProps: v } = ve(), u = d.isSelected && !e.isIndeterminate, s = e.isIndeterminate, h = {
2171
2155
  "data-selected": u,
2172
2156
  "data-indeterminate": s,
2173
2157
  "data-invalid": e.isInvalid,
@@ -2205,14 +2189,14 @@ const { withContext: Zr } = U({ recipe: Ce }), Qr = Zr(
2205
2189
  "input"
2206
2190
  ), en = g(
2207
2191
  (e, t) => {
2208
- const o = z(null), r = Y(M(o, t)), a = Ft({ recipe: Ce }), [i, c] = a.splitVariantProps(e), [l, d] = se(c);
2209
- return /* @__PURE__ */ n(eo, { ...d, children: /* @__PURE__ */ n(Qr, { ref: r, ...i, ...l, asChild: !0, children: /* @__PURE__ */ n(to, {}) }) });
2192
+ const o = z(null), r = Y(M(o, t)), l = Ft({ recipe: Ce }), [i, c] = l.splitVariantProps(e), [a, d] = se(c);
2193
+ return /* @__PURE__ */ n(eo, { ...d, children: /* @__PURE__ */ n(Qr, { ref: r, ...i, ...a, asChild: !0, children: /* @__PURE__ */ n(to, {}) }) });
2210
2194
  }
2211
2195
  );
2212
2196
  en.displayName = "TextInput";
2213
2197
  const et = g((e, t) => /* @__PURE__ */ n(_t, { ref: t, ...e }));
2214
2198
  et.displayName = "Grid";
2215
- const pa = Object.assign(et, {
2199
+ const ua = Object.assign(et, {
2216
2200
  Item: _e
2217
2201
  }), { withProvider: tn, withContext: Q } = q({
2218
2202
  key: "select"
@@ -2238,12 +2222,12 @@ const pa = Object.assign(et, {
2238
2222
  };
2239
2223
  tt.displayName = "Select.ClearButton";
2240
2224
  const ot = g(
2241
- ({ children: e, isLoading: t, isDisabled: o, ...r }, a) => {
2242
- const i = be({ recipe: Je }), [c, l] = i.splitVariantProps(r), [d, p] = se(l), m = {
2225
+ ({ children: e, isLoading: t, isDisabled: o, ...r }, l) => {
2226
+ const i = be({ recipe: Je }), [c, a] = i.splitVariantProps(r), [d, p] = se(a), m = {
2243
2227
  ...p,
2244
2228
  isDisabled: t || o
2245
2229
  };
2246
- return /* @__PURE__ */ n(on, { asChild: !0, ref: a, ...c, ...d, children: /* @__PURE__ */ C(ro, { ...m, children: [
2230
+ return /* @__PURE__ */ n(on, { asChild: !0, ref: l, ...c, ...d, children: /* @__PURE__ */ C(ro, { ...m, children: [
2247
2231
  /* @__PURE__ */ C(Wt.div, { position: "relative", children: [
2248
2232
  /* @__PURE__ */ n(rn, { zIndex: 0, asChild: !0, children: /* @__PURE__ */ n(no, { children: /* @__PURE__ */ n(nn, { asChild: !0, children: /* @__PURE__ */ n(io, {}) }) }) }),
2249
2233
  /* @__PURE__ */ C(
@@ -2279,19 +2263,19 @@ const nt = Se(
2279
2263
  );
2280
2264
  nt.displayName = "Select.Option";
2281
2265
  const it = Se(
2282
- ({ label: e, items: t, children: o, ...r }, a) => {
2266
+ ({ label: e, items: t, children: o, ...r }, l) => {
2283
2267
  if (t && typeof o != "function")
2284
2268
  throw new Error(
2285
2269
  'SelectOptionGroup: When "items" is provided, "children" must be a function'
2286
2270
  );
2287
- return /* @__PURE__ */ C(so, { ref: a, ...r, children: [
2271
+ return /* @__PURE__ */ C(so, { ref: l, ...r, children: [
2288
2272
  /* @__PURE__ */ n(sn, { asChild: !0, children: /* @__PURE__ */ n(co, { children: e }) }),
2289
2273
  t ? /* @__PURE__ */ n(uo, { items: t, children: (i) => typeof o == "function" ? o(i) : null }) : o
2290
2274
  ] });
2291
2275
  }
2292
2276
  );
2293
2277
  it.displayName = "Select.OptionGroup";
2294
- const ma = {
2278
+ const pa = {
2295
2279
  Root: ot,
2296
2280
  Options: rt,
2297
2281
  Option: nt,
@@ -2303,20 +2287,20 @@ const ma = {
2303
2287
  "root"
2304
2288
  ), un = ee("div", "disclosure"), pn = ee("button", "trigger"), mn = ee("div", "panel"), fn = ee("div", "accordionTitle"), fe = ee("div", "headerContentRight"), ke = X(null), at = X(null), gn = g(
2305
2289
  ({ children: e, onExpandedChange: t, ...o }, r) => {
2306
- const a = bo({
2290
+ const l = bo({
2307
2291
  ...o,
2308
- onExpandedChange: (l) => {
2309
- t == null || t(l.size > 0);
2292
+ onExpandedChange: (a) => {
2293
+ t == null || t(a.size > 0);
2310
2294
  }
2311
2295
  }), i = be({ key: "accordion" }), [c] = i.splitVariantProps(o);
2312
- return /* @__PURE__ */ n(at.Provider, { value: a, children: /* @__PURE__ */ n(dn, { "data-slot": "root", ref: r, ...c, children: e }) });
2296
+ return /* @__PURE__ */ n(at.Provider, { value: l, children: /* @__PURE__ */ n(dn, { "data-slot": "root", ref: r, ...c, children: e }) });
2313
2297
  }
2314
2298
  ), hn = g(({ children: e }, t) => {
2315
2299
  const o = R(ke);
2316
2300
  if (!o)
2317
2301
  throw new Error("Accordion.Header must be used within Accordion.Item");
2318
2302
  const r = Te.Children.toArray(e).reduce(
2319
- (a, i) => (Te.isValidElement(i) && i.type === fe ? a.rightContent.push(i) : a.main.push(i), a),
2303
+ (l, i) => (Te.isValidElement(i) && i.type === fe ? l.rightContent.push(i) : l.main.push(i), l),
2320
2304
  { main: [], rightContent: [] }
2321
2305
  );
2322
2306
  return /* @__PURE__ */ C(
@@ -2361,11 +2345,11 @@ const ma = {
2361
2345
  )
2362
2346
  );
2363
2347
  }), vn = g(
2364
- ({ children: e, id: t, isDisabled: o, isExpanded: r, onExpandedChange: a, value: i }, c) => {
2365
- const l = qt(), p = i || (t || l), m = R(at), v = m ? m.expandedKeys.has(p) : r, u = vo({
2348
+ ({ children: e, id: t, isDisabled: o, isExpanded: r, onExpandedChange: l, value: i }, c) => {
2349
+ const a = qt(), p = i || (t || a), m = R(at), v = m ? m.expandedKeys.has(p) : r, u = vo({
2366
2350
  isExpanded: v,
2367
2351
  onExpandedChange: (f) => {
2368
- m && m.toggleKey(p), a == null || a(f);
2352
+ m && m.toggleKey(p), l == null || l(f);
2369
2353
  }
2370
2354
  }), s = z(null), h = z(null), x = o || (m == null ? void 0 : m.isDisabled) || !1, { buttonProps: k, panelProps: w } = Xt(
2371
2355
  {
@@ -2374,14 +2358,14 @@ const ma = {
2374
2358
  },
2375
2359
  u,
2376
2360
  s
2377
- ), { buttonProps: L } = $e(
2361
+ ), { buttonProps: D } = $e(
2378
2362
  k,
2379
2363
  h
2380
- ), { focusProps: B, isFocusVisible: W } = ve(), b = {
2364
+ ), { focusProps: L, isFocusVisible: W } = ve(), b = {
2381
2365
  isExpanded: u.isExpanded,
2382
2366
  triggerRef: h,
2383
2367
  panelRef: s,
2384
- buttonProps: G(L, B),
2368
+ buttonProps: G(D, L),
2385
2369
  panelProps: w,
2386
2370
  isFocusVisible: W
2387
2371
  };
@@ -2396,13 +2380,13 @@ const ma = {
2396
2380
  }
2397
2381
  ) });
2398
2382
  }
2399
- ), fa = {
2383
+ ), ma = {
2400
2384
  Root: gn,
2401
2385
  Item: vn,
2402
2386
  Header: hn,
2403
2387
  Content: bn,
2404
2388
  HeaderRightContent: fe
2405
- }, yn = H({
2389
+ }, yn = N({
2406
2390
  className: "nimbus-loading-spinner",
2407
2391
  base: {
2408
2392
  display: "inline-flex",
@@ -2501,7 +2485,7 @@ const ma = {
2501
2485
  }
2502
2486
  );
2503
2487
  kn.displayName = "LoadingSpinner";
2504
- const Pn = D({
2488
+ const Pn = H({
2505
2489
  slots: ["root", "header", "content"],
2506
2490
  className: "nimbus-card",
2507
2491
  base: {
@@ -2576,12 +2560,12 @@ const Pn = D({
2576
2560
  void 0
2577
2561
  ), st = g(
2578
2562
  ({ children: e, ...t }, o) => {
2579
- const { isFocused: r, isFocusVisible: a, focusProps: i } = ve(), [c, l] = N(null), [d, p] = N(null), m = Ve(
2563
+ const { isFocused: r, isFocusVisible: l, focusProps: i } = ve(), [c, a] = F(null), [d, p] = F(null), m = Ve(
2580
2564
  () => ({
2581
- setHeader: l,
2565
+ setHeader: a,
2582
2566
  setContent: p
2583
2567
  }),
2584
- [l, p]
2568
+ [a, p]
2585
2569
  );
2586
2570
  return /* @__PURE__ */ n(Pe.Provider, { value: m, children: /* @__PURE__ */ C(
2587
2571
  Tn,
@@ -2589,7 +2573,7 @@ const Pn = D({
2589
2573
  ref: o,
2590
2574
  ...G(t, i),
2591
2575
  "data-focus": r || void 0,
2592
- "data-focus-visible": a || void 0,
2576
+ "data-focus-visible": l || void 0,
2593
2577
  tabIndex: 0,
2594
2578
  children: [
2595
2579
  /* @__PURE__ */ C(we, { direction: "column", gap: "200", children: [
@@ -2623,11 +2607,11 @@ const dt = ({ children: e, ...t }) => {
2623
2607
  }, [e, t]), null;
2624
2608
  };
2625
2609
  dt.displayName = "Card.Content";
2626
- const ga = {
2610
+ const fa = {
2627
2611
  Root: st,
2628
2612
  Header: ct,
2629
2613
  Content: dt
2630
- }, En = H({
2614
+ }, En = N({
2631
2615
  className: "nimbus-badge",
2632
2616
  // Base styles applied to all instances of the component
2633
2617
  base: {
@@ -2689,12 +2673,12 @@ const ga = {
2689
2673
  defaultVariants: {
2690
2674
  size: "md"
2691
2675
  }
2692
- }), { withContext: In } = U({ recipe: En }), Nn = In("span"), ha = g(
2676
+ }), { withContext: In } = U({ recipe: En }), Nn = In("span"), ga = g(
2693
2677
  (e, t) => {
2694
- const { as: o, asChild: r, children: a, ...i } = e, c = z(null), l = Y(M(c, t));
2695
- return /* @__PURE__ */ n(Nn, { as: o || "span", ...G(i, { ref: l }), children: a });
2678
+ const { as: o, asChild: r, children: l, ...i } = e, c = z(null), a = Y(M(c, t));
2679
+ return /* @__PURE__ */ n(Nn, { as: o || "span", ...G(i, { ref: a }), children: l });
2696
2680
  }
2697
- ), Hn = D({
2681
+ ), Hn = H({
2698
2682
  slots: ["root", "title", "description", "icon", "actions", "dismissButton"],
2699
2683
  // Unique class name prefix for the component
2700
2684
  className: "nimbus-alert",
@@ -2779,14 +2763,14 @@ const ga = {
2779
2763
  }, oe = X(
2780
2764
  void 0
2781
2765
  ), ut = g(({ children: e, ...t }, o) => {
2782
- const [r, a] = N(null), [i, c] = N(null), [l, d] = N(null), [p, m] = N(null), v = Ve(
2766
+ const [r, l] = F(null), [i, c] = F(null), [a, d] = F(null), [p, m] = F(null), v = Ve(
2783
2767
  () => ({
2784
- setTitle: a,
2768
+ setTitle: l,
2785
2769
  setDescription: c,
2786
2770
  setActions: d,
2787
2771
  setDismiss: m
2788
2772
  }),
2789
- [a, c, d, m]
2773
+ [l, c, d, m]
2790
2774
  );
2791
2775
  return /* @__PURE__ */ n(oe.Provider, { value: v, children: /* @__PURE__ */ C(Ln, { ref: o, ...t, role: "alert", children: [
2792
2776
  /* @__PURE__ */ n(_n, { alignItems: "flex-start", children: Vn(t.tone) }),
@@ -2795,7 +2779,7 @@ const ga = {
2795
2779
  r,
2796
2780
  i
2797
2781
  ] }),
2798
- l
2782
+ a
2799
2783
  ] }),
2800
2784
  p,
2801
2785
  e
@@ -2857,7 +2841,7 @@ const gt = ({
2857
2841
  }, [e, t]), null;
2858
2842
  };
2859
2843
  gt.displayName = "Alert.DismissButton";
2860
- const ba = {
2844
+ const ha = {
2861
2845
  Root: ut,
2862
2846
  Title: pt,
2863
2847
  Description: mt,
@@ -2865,7 +2849,7 @@ const ba = {
2865
2849
  DismissButton: gt
2866
2850
  };
2867
2851
  var Ne, He, De, Le;
2868
- const $n = D({
2852
+ const $n = H({
2869
2853
  slots: ["root", "button"],
2870
2854
  // Unique class name prefix for the component
2871
2855
  className: "nimbus-toggle-button-group",
@@ -2928,7 +2912,7 @@ const $n = D({
2928
2912
  ht.displayName = "ToggleButtonGroup.Root";
2929
2913
  const bt = g(({ children: e, ...t }, o) => /* @__PURE__ */ n(Kn, { ...t, ref: o, children: e }));
2930
2914
  bt.displayName = "ToggleButtonGroup.Button";
2931
- const va = {
2915
+ const ba = {
2932
2916
  Root: ht,
2933
2917
  Button: bt
2934
2918
  }, Un = `
@@ -2940,7 +2924,7 @@ const va = {
2940
2924
  "label input"
2941
2925
  "label description"
2942
2926
  "label error"
2943
- `, Xn = D({
2927
+ `, Xn = H({
2944
2928
  slots: ["root", "label", "input", "description", "error", "popover"],
2945
2929
  // Unique class name prefix for the component
2946
2930
  className: "nimbus-ui-form-field",
@@ -3041,8 +3025,8 @@ const va = {
3041
3025
  }), { withProvider: Yn, withContext: re } = q({
3042
3026
  recipe: Xn
3043
3027
  }), Jn = Yn("div", "root"), Zn = re("div", "label"), Qn = re("div", "input"), ei = re("div", "description"), ti = re("div", "error"), oi = re("div", "popover"), ri = g(
3044
- ({ isInvalid: e, isRequired: t, isDisabled: o, isReadOnly: r, children: a, ...i }, c) => {
3045
- const [l, d] = N({
3028
+ ({ isInvalid: e, isRequired: t, isDisabled: o, isReadOnly: r, children: l, ...i }, c) => {
3029
+ const [a, d] = F({
3046
3030
  label: null,
3047
3031
  description: null,
3048
3032
  error: null,
@@ -3053,9 +3037,9 @@ const va = {
3053
3037
  isDisabled: o,
3054
3038
  isReadOnly: r
3055
3039
  }), { labelProps: p, fieldProps: m, descriptionProps: v, errorMessageProps: u } = Jt({
3056
- label: l.label,
3057
- description: l.description,
3058
- errorMessage: l.error
3040
+ label: a.label,
3041
+ description: a.description,
3042
+ errorMessage: a.error
3059
3043
  });
3060
3044
  T(() => {
3061
3045
  d((h) => ({
@@ -3073,13 +3057,13 @@ const va = {
3073
3057
  isDisabled: o,
3074
3058
  isReadOnly: r
3075
3059
  };
3076
- return /* @__PURE__ */ n(J.Provider, { value: { context: l, setContext: d }, children: /* @__PURE__ */ C(Jn, { ref: c, ...i, children: [
3077
- l.label && /* @__PURE__ */ C(Zn, { ...l.labelSlotProps, children: [
3060
+ return /* @__PURE__ */ n(J.Provider, { value: { context: a, setContext: d }, children: /* @__PURE__ */ C(Jn, { ref: c, ...i, children: [
3061
+ a.label && /* @__PURE__ */ C(Zn, { ...a.labelSlotProps, children: [
3078
3062
  /* @__PURE__ */ C("label", { ...p, children: [
3079
- l.label,
3063
+ a.label,
3080
3064
  t && /* @__PURE__ */ n("sup", { "aria-hidden": "true", children: "*" })
3081
3065
  ] }),
3082
- l.info && /* @__PURE__ */ C(fo, { children: [
3066
+ a.info && /* @__PURE__ */ C(fo, { children: [
3083
3067
  /* @__PURE__ */ n(
3084
3068
  O,
3085
3069
  {
@@ -3112,23 +3096,23 @@ const va = {
3112
3096
  )
3113
3097
  }
3114
3098
  ),
3115
- /* @__PURE__ */ n(Me, { children: /* @__PURE__ */ n(oi, { asChild: !0, children: /* @__PURE__ */ n(go, { children: /* @__PURE__ */ n(O, { p: "300", children: l.info }) }) }) })
3099
+ /* @__PURE__ */ n(Me, { children: /* @__PURE__ */ n(oi, { asChild: !0, children: /* @__PURE__ */ n(go, { children: /* @__PURE__ */ n(O, { p: "300", children: a.info }) }) }) })
3116
3100
  ] })
3117
3101
  ] }),
3118
- l.input && /* @__PURE__ */ n(Qn, { ...l.inputSlotProps, children: Vt.map(l.input, (h) => We(h) ? Oe(h, s) : h) }),
3119
- l.description && /* @__PURE__ */ n(
3102
+ a.input && /* @__PURE__ */ n(Qn, { ...a.inputSlotProps, children: Vt.map(a.input, (h) => We(h) ? Oe(h, s) : h) }),
3103
+ a.description && /* @__PURE__ */ n(
3120
3104
  ei,
3121
3105
  {
3122
3106
  ...v,
3123
- ...l.descriptionSlotProps,
3124
- children: l.description
3107
+ ...a.descriptionSlotProps,
3108
+ children: a.description
3125
3109
  }
3126
3110
  ),
3127
- e && l.error && /* @__PURE__ */ C(
3111
+ e && a.error && /* @__PURE__ */ C(
3128
3112
  ti,
3129
3113
  {
3130
3114
  ...u,
3131
- ...l.errorSlotProps,
3115
+ ...a.errorSlotProps,
3132
3116
  children: [
3133
3117
  /* @__PURE__ */ n(
3134
3118
  O,
@@ -3140,11 +3124,11 @@ const va = {
3140
3124
  mr: "100"
3141
3125
  }
3142
3126
  ),
3143
- l.error
3127
+ a.error
3144
3128
  ]
3145
3129
  }
3146
3130
  ),
3147
- a
3131
+ l
3148
3132
  ] }) });
3149
3133
  }
3150
3134
  ), ni = ({
@@ -3213,7 +3197,7 @@ const va = {
3213
3197
  },
3214
3198
  setContext: () => {
3215
3199
  }
3216
- }), ya = {
3200
+ }), va = {
3217
3201
  Root: ri,
3218
3202
  Label: ni,
3219
3203
  Input: ii,
@@ -3264,7 +3248,7 @@ function ue(e, t, o) {
3264
3248
  t === void 0 && (t = "+");
3265
3249
  var r = e.toLocaleLowerCase().split(t).map(function(c) {
3266
3250
  return V(c);
3267
- }), a = {
3251
+ }), l = {
3268
3252
  alt: r.includes("alt"),
3269
3253
  ctrl: r.includes("ctrl") || r.includes("control"),
3270
3254
  shift: r.includes("shift"),
@@ -3273,7 +3257,7 @@ function ue(e, t, o) {
3273
3257
  }, i = r.filter(function(c) {
3274
3258
  return !vt.includes(c);
3275
3259
  });
3276
- return ge({}, a, {
3260
+ return ge({}, l, {
3277
3261
  keys: i,
3278
3262
  description: o,
3279
3263
  hotkey: e
@@ -3324,11 +3308,11 @@ function fi(e) {
3324
3308
  }
3325
3309
  function Ct(e, t) {
3326
3310
  t === void 0 && (t = !1);
3327
- var o = e.target, r = e.composed, a = null;
3328
- return gi(o) && r ? a = e.composedPath()[0] && e.composedPath()[0].tagName : a = o && o.tagName, Re(t) ? !!(a && t && t.some(function(i) {
3311
+ var o = e.target, r = e.composed, l = null;
3312
+ return gi(o) && r ? l = e.composedPath()[0] && e.composedPath()[0].tagName : l = o && o.tagName, Re(t) ? !!(l && t && t.some(function(i) {
3329
3313
  var c;
3330
- return i.toLowerCase() === ((c = a) == null ? void 0 : c.toLowerCase());
3331
- })) : !!(a && t && t);
3314
+ return i.toLowerCase() === ((c = l) == null ? void 0 : c.toLowerCase());
3315
+ })) : !!(l && t && t);
3332
3316
  }
3333
3317
  function gi(e) {
3334
3318
  return !!e.tagName && !e.tagName.startsWith("-") && e.tagName.includes("-");
@@ -3340,11 +3324,11 @@ function hi(e, t) {
3340
3324
  }
3341
3325
  var bi = function(t, o, r) {
3342
3326
  r === void 0 && (r = !1);
3343
- var a = o.alt, i = o.meta, c = o.mod, l = o.shift, d = o.ctrl, p = o.keys, m = t.key, v = t.code, u = t.ctrlKey, s = t.metaKey, h = t.shiftKey, x = t.altKey, k = V(v), w = m.toLowerCase();
3327
+ var l = o.alt, i = o.meta, c = o.mod, a = o.shift, d = o.ctrl, p = o.keys, m = t.key, v = t.code, u = t.ctrlKey, s = t.metaKey, h = t.shiftKey, x = t.altKey, k = V(v), w = m.toLowerCase();
3344
3328
  if (!(p != null && p.includes(k)) && !(p != null && p.includes(w)) && !["ctrl", "control", "unknown", "meta", "alt", "shift", "os"].includes(k))
3345
3329
  return !1;
3346
3330
  if (!r) {
3347
- if (a === !x && w !== "alt" || l === !h && w !== "shift")
3331
+ if (l === !x && w !== "alt" || a === !h && w !== "shift")
3348
3332
  return !1;
3349
3333
  if (c) {
3350
3334
  if (!s && !u)
@@ -3381,8 +3365,8 @@ function wi(e) {
3381
3365
  var ze = function(t) {
3382
3366
  t.stopPropagation(), t.preventDefault(), t.stopImmediatePropagation();
3383
3367
  }, Si = typeof window < "u" ? $t : T;
3384
- function xa(e, t, o, r) {
3385
- var a = N(null), i = a[0], c = a[1], l = z(!1), d = o instanceof Array ? r instanceof Array ? void 0 : r : o, p = Re(e) ? e.join(d == null ? void 0 : d.splitKey) : e, m = o instanceof Array ? o : r instanceof Array ? r : void 0, v = ae(t, m ?? []), u = z(v);
3368
+ function ya(e, t, o, r) {
3369
+ var l = F(null), i = l[0], c = l[1], a = z(!1), d = o instanceof Array ? r instanceof Array ? void 0 : r : o, p = Re(e) ? e.join(d == null ? void 0 : d.splitKey) : e, m = o instanceof Array ? o : r instanceof Array ? r : void 0, v = ae(t, m ?? []), u = z(v);
3386
3370
  m ? u.current = v : u.current = t;
3387
3371
  var s = wi(d), h = Ci(), x = h.enabledScopes, k = yi();
3388
3372
  return Si(function() {
@@ -3398,27 +3382,27 @@ function xa(e, t, o, r) {
3398
3382
  }
3399
3383
  }
3400
3384
  (Z = f.target) != null && Z.isContentEditable && !(s != null && s.enableOnContentEditable) || de(p, s == null ? void 0 : s.splitKey).forEach(function(ne) {
3401
- var F, j = ue(ne, s == null ? void 0 : s.combinationKey);
3402
- if (bi(f, j, s == null ? void 0 : s.ignoreModifiers) || (F = j.keys) != null && F.includes("*")) {
3403
- if (s != null && s.ignoreEventWhen != null && s.ignoreEventWhen(f) || E && l.current)
3385
+ var B, j = ue(ne, s == null ? void 0 : s.combinationKey);
3386
+ if (bi(f, j, s == null ? void 0 : s.ignoreModifiers) || (B = j.keys) != null && B.includes("*")) {
3387
+ if (s != null && s.ignoreEventWhen != null && s.ignoreEventWhen(f) || E && a.current)
3404
3388
  return;
3405
3389
  if (pi(f, j, s == null ? void 0 : s.preventDefault), !mi(f, j, s == null ? void 0 : s.enabled)) {
3406
3390
  ze(f);
3407
3391
  return;
3408
3392
  }
3409
- u.current(f, j), E || (l.current = !0);
3393
+ u.current(f, j), E || (a.current = !0);
3410
3394
  }
3411
3395
  });
3412
3396
  }
3413
- }, L = function(f) {
3397
+ }, D = function(f) {
3414
3398
  f.key !== void 0 && (yt(V(f.code)), ((s == null ? void 0 : s.keydown) === void 0 && (s == null ? void 0 : s.keyup) !== !0 || s != null && s.keydown) && w(f));
3415
- }, B = function(f) {
3416
- f.key !== void 0 && (xt(V(f.code)), l.current = !1, s != null && s.keyup && w(f, !0));
3399
+ }, L = function(f) {
3400
+ f.key !== void 0 && (xt(V(f.code)), a.current = !1, s != null && s.keyup && w(f, !0));
3417
3401
  }, W = i || (d == null ? void 0 : d.document) || document;
3418
- return W.addEventListener("keyup", B), W.addEventListener("keydown", L), k && de(p, s == null ? void 0 : s.splitKey).forEach(function(b) {
3402
+ return W.addEventListener("keyup", L), W.addEventListener("keydown", D), k && de(p, s == null ? void 0 : s.splitKey).forEach(function(b) {
3419
3403
  return k.addHotkey(ue(b, s == null ? void 0 : s.combinationKey, s == null ? void 0 : s.description));
3420
3404
  }), function() {
3421
- W.removeEventListener("keyup", B), W.removeEventListener("keydown", L), k && de(p, s == null ? void 0 : s.splitKey).forEach(function(b) {
3405
+ W.removeEventListener("keyup", L), W.removeEventListener("keydown", D), k && de(p, s == null ? void 0 : s.splitKey).forEach(function(b) {
3422
3406
  return k.removeHotkey(ue(b, s == null ? void 0 : s.combinationKey, s == null ? void 0 : s.description));
3423
3407
  });
3424
3408
  };
@@ -3437,12 +3421,12 @@ function ki() {
3437
3421
  }
3438
3422
  var Pi = function(e) {
3439
3423
  e === void 0 && (e = {});
3440
- var t = N(e), o = t[0], r = t[1], a = ae(function(i) {
3424
+ var t = F(e), o = t[0], r = t[1], l = ae(function(i) {
3441
3425
  r(function(c) {
3442
3426
  return Object.assign({}, c, i instanceof Function ? i(c) : i);
3443
3427
  });
3444
3428
  }, []);
3445
- return [o, a];
3429
+ return [o, l];
3446
3430
  };
3447
3431
  function Ri(e) {
3448
3432
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -3467,8 +3451,8 @@ function Ti() {
3467
3451
  break;
3468
3452
  }
3469
3453
  return e.removeAllRanges(), function() {
3470
- e.type === "Caret" && e.removeAllRanges(), e.rangeCount || o.forEach(function(a) {
3471
- e.addRange(a);
3454
+ e.type === "Caret" && e.removeAllRanges(), e.rangeCount || o.forEach(function(l) {
3455
+ e.addRange(l);
3472
3456
  }), t && t.focus();
3473
3457
  };
3474
3458
  }), pe;
@@ -3486,14 +3470,14 @@ function Ai() {
3486
3470
  var c = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
3487
3471
  return i.replace(/#{\s*key\s*}/g, c);
3488
3472
  }
3489
- function a(i, c) {
3490
- var l, d, p, m, v, u, s = !1;
3491
- c || (c = {}), l = c.debug || !1;
3473
+ function l(i, c) {
3474
+ var a, d, p, m, v, u, s = !1;
3475
+ c || (c = {}), a = c.debug || !1;
3492
3476
  try {
3493
3477
  p = e(), m = document.createRange(), v = document.getSelection(), u = document.createElement("span"), u.textContent = i, u.ariaHidden = "true", u.style.all = "unset", u.style.position = "fixed", u.style.top = 0, u.style.clip = "rect(0, 0, 0, 0)", u.style.whiteSpace = "pre", u.style.webkitUserSelect = "text", u.style.MozUserSelect = "text", u.style.msUserSelect = "text", u.style.userSelect = "text", u.addEventListener("copy", function(x) {
3494
3478
  if (x.stopPropagation(), c.format)
3495
3479
  if (x.preventDefault(), typeof x.clipboardData > "u") {
3496
- l && console.warn("unable to use e.clipboardData"), l && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
3480
+ a && console.warn("unable to use e.clipboardData"), a && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
3497
3481
  var k = t[c.format] || t.default;
3498
3482
  window.clipboardData.setData(k, i);
3499
3483
  } else
@@ -3505,29 +3489,29 @@ function Ai() {
3505
3489
  throw new Error("copy command was unsuccessful");
3506
3490
  s = !0;
3507
3491
  } catch (x) {
3508
- l && console.error("unable to copy using execCommand: ", x), l && console.warn("trying IE specific stuff");
3492
+ a && console.error("unable to copy using execCommand: ", x), a && console.warn("trying IE specific stuff");
3509
3493
  try {
3510
3494
  window.clipboardData.setData(c.format || "text", i), c.onCopy && c.onCopy(window.clipboardData), s = !0;
3511
3495
  } catch (k) {
3512
- l && console.error("unable to copy using clipboardData: ", k), l && console.error("falling back to prompt"), d = r("message" in c ? c.message : o), window.prompt(d, i);
3496
+ a && console.error("unable to copy using clipboardData: ", k), a && console.error("falling back to prompt"), d = r("message" in c ? c.message : o), window.prompt(d, i);
3513
3497
  }
3514
3498
  } finally {
3515
3499
  v && (typeof v.removeRange == "function" ? v.removeRange(m) : v.removeAllRanges()), u && document.body.removeChild(u), p();
3516
3500
  }
3517
3501
  return s;
3518
3502
  }
3519
- return me = a, me;
3503
+ return me = l, me;
3520
3504
  }
3521
3505
  var zi = Ai();
3522
3506
  const Ei = /* @__PURE__ */ Ri(zi);
3523
- var Ca = function() {
3507
+ var xa = function() {
3524
3508
  var e = ki(), t = Pi({
3525
3509
  value: void 0,
3526
3510
  error: void 0,
3527
3511
  noUserInteraction: !0
3528
- }), o = t[0], r = t[1], a = ae(function(i) {
3512
+ }), o = t[0], r = t[1], l = ae(function(i) {
3529
3513
  if (e()) {
3530
- var c, l;
3514
+ var c, a;
3531
3515
  try {
3532
3516
  if (typeof i != "string" && typeof i != "number") {
3533
3517
  var d = new Error("Cannot copy typeof " + typeof i + " to clipboard, must be a string");
@@ -3546,36 +3530,36 @@ var Ca = function() {
3546
3530
  });
3547
3531
  return;
3548
3532
  }
3549
- l = i.toString(), c = Ei(l), r({
3550
- value: l,
3533
+ a = i.toString(), c = Ei(a), r({
3534
+ value: a,
3551
3535
  error: void 0,
3552
3536
  noUserInteraction: c
3553
3537
  });
3554
3538
  } catch (p) {
3555
3539
  r({
3556
- value: l,
3540
+ value: a,
3557
3541
  error: p,
3558
3542
  noUserInteraction: c
3559
3543
  });
3560
3544
  }
3561
3545
  }
3562
3546
  }, []);
3563
- return [o, a];
3547
+ return [o, l];
3564
3548
  };
3565
3549
  export {
3566
- fa as Accordion,
3567
- ba as Alert,
3550
+ ma as Accordion,
3551
+ ha as Alert,
3568
3552
  Ho as Avatar,
3569
- ha as Badge,
3570
- ka as Bleed,
3553
+ ga as Badge,
3554
+ Sa as Bleed,
3571
3555
  O as Box,
3572
3556
  ye as Button,
3573
- ga as Card,
3557
+ fa as Card,
3574
3558
  dt as CardContent,
3575
3559
  ct as CardHeader,
3576
3560
  st as CardRoot,
3577
3561
  Jr as Checkbox,
3578
- Pa as Code,
3562
+ ka as Code,
3579
3563
  ca as ColorModeLabel,
3580
3564
  Xi as DialogActionTrigger,
3581
3565
  ji as DialogBackdrop,
@@ -3588,26 +3572,26 @@ export {
3588
3572
  Vi as DialogRoot,
3589
3573
  Ki as DialogTitle,
3590
3574
  qi as DialogTrigger,
3591
- Ra as Em,
3592
- Ta as Flex,
3593
- ya as FormField,
3575
+ Pa as Em,
3576
+ Ra as Flex,
3577
+ va as FormField,
3594
3578
  J as FormFieldContext,
3595
- pa as Grid,
3596
- Aa as Heading,
3597
- za as Highlight,
3579
+ ua as Grid,
3580
+ Ta as Heading,
3581
+ Aa as Highlight,
3598
3582
  le as IconButton,
3599
- Ea as Kbd,
3583
+ za as Kbd,
3600
3584
  Vo as Link,
3601
- Ia as List,
3585
+ Ea as List,
3602
3586
  Ji as ListItem,
3603
3587
  Yi as ListRoot,
3604
3588
  kn as LoadingSpinner,
3605
3589
  Uo as MakeElementFocusable,
3606
- ua as NimbusProvider,
3607
- ma as Select,
3590
+ da as NimbusProvider,
3591
+ pa as Select,
3608
3592
  Zi as SimpleGrid,
3609
3593
  we as Stack,
3610
- Na as Table,
3594
+ Ia as Table,
3611
3595
  aa as TableBody,
3612
3596
  ia as TableCell,
3613
3597
  ta as TableColumn,
@@ -3619,7 +3603,7 @@ export {
3619
3603
  na as TableRow,
3620
3604
  $o as Text,
3621
3605
  en as TextInput,
3622
- va as ToggleButtonGroup,
3606
+ ba as ToggleButtonGroup,
3623
3607
  bt as ToggleButtonGroupButton,
3624
3608
  ht as ToggleButtonGroupRoot,
3625
3609
  jo as Tooltip,
@@ -3632,8 +3616,7 @@ export {
3632
3616
  Kr as system,
3633
3617
  Ye as useColorMode,
3634
3618
  sa as useColorModeValue,
3635
- da as useColorScheme,
3636
- Ca as useCopyToClipboard,
3637
- xa as useHotkeys
3619
+ xa as useCopyToClipboard,
3620
+ ya as useHotkeys
3638
3621
  };
3639
3622
  //# sourceMappingURL=index.js.map