@takecasper/acuity-design-system 1.24.2 → 1.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import "./assets/index.css";
2
2
  import * as or from "react";
3
- import w, { useState as ge, useEffect as oe, useLayoutEffect as Bn, useRef as R, createContext as ce, useContext as re, forwardRef as Hn, Fragment as de, isValidElement as zn, cloneElement as Un, createElement as Gn, useId as yr, useMemo as ae, useSyncExternalStore as Zn, useReducer as Yn, createRef as qn, useCallback as mr } from "react";
3
+ import w, { useState as ge, useEffect as oe, useLayoutEffect as Bn, useRef as A, createContext as ce, useContext as re, forwardRef as Hn, Fragment as de, isValidElement as zn, cloneElement as Un, createElement as Gn, useId as jr, useMemo as ae, useSyncExternalStore as Zn, useReducer as Yn, createRef as qn, useCallback as gr } from "react";
4
4
  import { createPortal as Ot } from "react-dom";
5
- var _r = { exports: {} }, er = {};
5
+ var Ir = { exports: {} }, er = {};
6
6
  /**
7
7
  * @license React
8
8
  * react-jsx-runtime.production.min.js
@@ -68,10 +68,10 @@ function Jn() {
68
68
  T.unshift("Warning: " + h), Function.prototype.apply.call(console[d], console, T);
69
69
  }
70
70
  }
71
- var S = !1, Z = !1, we = !1, J = !1, Y = !1, X;
71
+ var R = !1, Z = !1, we = !1, J = !1, Y = !1, X;
72
72
  X = Symbol.for("react.module.reference");
73
73
  function te(d) {
74
- return !!(typeof d == "string" || typeof d == "function" || d === t || d === o || Y || d === s || d === f || d === u || J || d === b || S || Z || we || typeof d == "object" && d !== null && (d.$$typeof === m || d.$$typeof === p || d.$$typeof === a || d.$$typeof === l || d.$$typeof === c || // This needs to include all possible module reference object
74
+ return !!(typeof d == "string" || typeof d == "function" || d === t || d === o || Y || d === s || d === f || d === u || J || d === b || R || Z || we || typeof d == "object" && d !== null && (d.$$typeof === m || d.$$typeof === p || d.$$typeof === a || d.$$typeof === l || d.$$typeof === c || // This needs to include all possible module reference object
75
75
  // types supported by any Flight configuration anywhere since
76
76
  // we don't know which Flight build this will end up being used
77
77
  // with.
@@ -291,7 +291,7 @@ function Jn() {
291
291
  var h = d.prototype;
292
292
  return !!(h && h.isReactComponent);
293
293
  }
294
- function fr(d, h, g) {
294
+ function pr(d, h, g) {
295
295
  if (d == null)
296
296
  return "";
297
297
  if (typeof d == "function")
@@ -309,28 +309,28 @@ function Jn() {
309
309
  case c:
310
310
  return Xe(d.render);
311
311
  case p:
312
- return fr(d.type, h, g);
312
+ return pr(d.type, h, g);
313
313
  case m: {
314
314
  var y = d, N = y._payload, T = y._init;
315
315
  try {
316
- return fr(T(N), h, g);
316
+ return pr(T(N), h, g);
317
317
  } catch (M) {
318
318
  }
319
319
  }
320
320
  }
321
321
  return "";
322
322
  }
323
- var pr = Object.prototype.hasOwnProperty, ut = {}, ft = k.ReactDebugCurrentFrame;
324
- function hr(d) {
323
+ var hr = Object.prototype.hasOwnProperty, ut = {}, ft = k.ReactDebugCurrentFrame;
324
+ function mr(d) {
325
325
  if (d) {
326
- var h = d._owner, g = fr(d.type, d._source, h ? h.type : null);
326
+ var h = d._owner, g = pr(d.type, d._source, h ? h.type : null);
327
327
  ft.setExtraStackFrame(g);
328
328
  } else
329
329
  ft.setExtraStackFrame(null);
330
330
  }
331
331
  function wn(d, h, g, y, N) {
332
332
  {
333
- var T = Function.call.bind(pr);
333
+ var T = Function.call.bind(hr);
334
334
  for (var M in d)
335
335
  if (T(d, M)) {
336
336
  var E = void 0;
@@ -343,12 +343,12 @@ function Jn() {
343
343
  } catch (_) {
344
344
  E = _;
345
345
  }
346
- E && !(E instanceof Error) && (hr(N), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", y || "React class", g, M, typeof E), hr(null)), E instanceof Error && !(E.message in ut) && (ut[E.message] = !0, hr(N), j("Failed %s type: %s", g, E.message), hr(null));
346
+ E && !(E instanceof Error) && (mr(N), j("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", y || "React class", g, M, typeof E), mr(null)), E instanceof Error && !(E.message in ut) && (ut[E.message] = !0, mr(N), j("Failed %s type: %s", g, E.message), mr(null));
347
347
  }
348
348
  }
349
349
  }
350
350
  var yn = Array.isArray;
351
- function Nr(d) {
351
+ function Tr(d) {
352
352
  return yn(d);
353
353
  }
354
354
  function jn(d) {
@@ -376,10 +376,10 @@ function Jn() {
376
376
  ref: !0,
377
377
  __self: !0,
378
378
  __source: !0
379
- }, mt, gt, Tr;
380
- Tr = {};
379
+ }, mt, gt, Sr;
380
+ Sr = {};
381
381
  function $n(d) {
382
- if (pr.call(d, "ref")) {
382
+ if (hr.call(d, "ref")) {
383
383
  var h = Object.getOwnPropertyDescriptor(d, "ref").get;
384
384
  if (h && h.isReactWarning)
385
385
  return !1;
@@ -387,7 +387,7 @@ function Jn() {
387
387
  return d.ref !== void 0;
388
388
  }
389
389
  function Mn(d) {
390
- if (pr.call(d, "key")) {
390
+ if (hr.call(d, "key")) {
391
391
  var h = Object.getOwnPropertyDescriptor(d, "key").get;
392
392
  if (h && h.isReactWarning)
393
393
  return !1;
@@ -397,7 +397,7 @@ function Jn() {
397
397
  function Nn(d, h) {
398
398
  if (typeof d.ref == "string" && Qe.current && h && Qe.current.stateNode !== h) {
399
399
  var g = O(Qe.current.type);
400
- Tr[g] || (j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', O(Qe.current.type), d.ref), Tr[g] = !0);
400
+ Sr[g] || (j('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', O(Qe.current.type), d.ref), Sr[g] = !0);
401
401
  }
402
402
  }
403
403
  function Tn(d, h) {
@@ -456,7 +456,7 @@ function Jn() {
456
456
  var T, M = {}, E = null, q = null;
457
457
  g !== void 0 && (ht(g), E = "" + g), Mn(h) && (ht(h.key), E = "" + h.key), $n(h) && (q = h.ref, Nn(h, N));
458
458
  for (T in h)
459
- pr.call(h, T) && !En.hasOwnProperty(T) && (M[T] = h[T]);
459
+ hr.call(h, T) && !En.hasOwnProperty(T) && (M[T] = h[T]);
460
460
  if (d && d.defaultProps) {
461
461
  var _ = d.defaultProps;
462
462
  for (T in _)
@@ -469,23 +469,23 @@ function Jn() {
469
469
  return Rn(d, E, q, N, y, Qe.current, M);
470
470
  }
471
471
  }
472
- var Sr = k.ReactCurrentOwner, bt = k.ReactDebugCurrentFrame;
472
+ var Rr = k.ReactCurrentOwner, bt = k.ReactDebugCurrentFrame;
473
473
  function Be(d) {
474
474
  if (d) {
475
- var h = d._owner, g = fr(d.type, d._source, h ? h.type : null);
475
+ var h = d._owner, g = pr(d.type, d._source, h ? h.type : null);
476
476
  bt.setExtraStackFrame(g);
477
477
  } else
478
478
  bt.setExtraStackFrame(null);
479
479
  }
480
- var Rr;
481
- Rr = !1;
482
- function Ar(d) {
480
+ var Ar;
481
+ Ar = !1;
482
+ function Pr(d) {
483
483
  return typeof d == "object" && d !== null && d.$$typeof === r;
484
484
  }
485
485
  function vt() {
486
486
  {
487
- if (Sr.current) {
488
- var d = O(Sr.current.type);
487
+ if (Rr.current) {
488
+ var d = O(Rr.current.type);
489
489
  if (d)
490
490
  return `
491
491
 
@@ -528,25 +528,25 @@ Check the top-level render call using <` + g + ">.");
528
528
  return;
529
529
  xt[g] = !0;
530
530
  var y = "";
531
- d && d._owner && d._owner !== Sr.current && (y = " It was passed a child from " + O(d._owner.type) + "."), Be(d), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, y), Be(null);
531
+ d && d._owner && d._owner !== Rr.current && (y = " It was passed a child from " + O(d._owner.type) + "."), Be(d), j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, y), Be(null);
532
532
  }
533
533
  }
534
534
  function kt(d, h) {
535
535
  {
536
536
  if (typeof d != "object")
537
537
  return;
538
- if (Nr(d))
538
+ if (Tr(d))
539
539
  for (var g = 0; g < d.length; g++) {
540
540
  var y = d[g];
541
- Ar(y) && Ct(y, h);
541
+ Pr(y) && Ct(y, h);
542
542
  }
543
- else if (Ar(d))
543
+ else if (Pr(d))
544
544
  d._store && (d._store.validated = !0);
545
545
  else if (d) {
546
546
  var N = x(d);
547
547
  if (typeof N == "function" && N !== d.entries)
548
548
  for (var T = N.call(d), M; !(M = T.next()).done; )
549
- Ar(M.value) && Ct(M.value, h);
549
+ Pr(M.value) && Ct(M.value, h);
550
550
  }
551
551
  }
552
552
  }
@@ -567,8 +567,8 @@ Check the top-level render call using <` + g + ">.");
567
567
  if (g) {
568
568
  var y = O(h);
569
569
  wn(g, d.props, "prop", y, d);
570
- } else if (h.PropTypes !== void 0 && !Rr) {
571
- Rr = !0;
570
+ } else if (h.PropTypes !== void 0 && !Ar) {
571
+ Ar = !0;
572
572
  var N = O(h);
573
573
  j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
574
574
  }
@@ -596,7 +596,7 @@ Check the top-level render call using <` + g + ">.");
596
596
  var q = Pn(N);
597
597
  q ? E += q : E += vt();
598
598
  var _;
599
- d === null ? _ = "null" : Nr(d) ? _ = "array" : d !== void 0 && d.$$typeof === r ? (_ = "<" + (O(d.type) || "Unknown") + " />", E = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof d, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, E);
599
+ d === null ? _ = "null" : Tr(d) ? _ = "array" : d !== void 0 && d.$$typeof === r ? (_ = "<" + (O(d.type) || "Unknown") + " />", E = " Did you accidentally export a JSX literal instead of a component?") : _ = typeof d, j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", _, E);
600
600
  }
601
601
  var I = An(d, h, g, N, T);
602
602
  if (I == null)
@@ -605,7 +605,7 @@ Check the top-level render call using <` + g + ">.");
605
605
  var le = h.children;
606
606
  if (le !== void 0)
607
607
  if (y)
608
- if (Nr(le)) {
608
+ if (Tr(le)) {
609
609
  for (var He = 0; He < le.length; He++)
610
610
  kt(le[He], d);
611
611
  Object.freeze && Object.freeze(le);
@@ -627,8 +627,8 @@ Check the top-level render call using <` + g + ">.");
627
627
  rr.Fragment = t, rr.jsx = Vn, rr.jsxs = Dn;
628
628
  }()), rr;
629
629
  }
630
- process.env.NODE_ENV === "production" ? _r.exports = Kn() : _r.exports = Jn();
631
- var i = _r.exports;
630
+ process.env.NODE_ENV === "production" ? Ir.exports = Kn() : Ir.exports = Jn();
631
+ var i = Ir.exports;
632
632
  const Xn = ({
633
633
  width: e = "24",
634
634
  height: r = "24",
@@ -2317,7 +2317,7 @@ function Ys() {
2317
2317
  (e = arguments[n++]) && (r = Wt(e)) && (t && (t += " "), t += r);
2318
2318
  return t;
2319
2319
  }
2320
- const Et = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, $t = Ys, F = (e, r) => (n) => {
2320
+ const Et = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, $t = Ys, S = (e, r) => (n) => {
2321
2321
  var t;
2322
2322
  if ((r == null ? void 0 : r.variants) == null)
2323
2323
  return $t(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
@@ -2398,10 +2398,10 @@ function Js(e) {
2398
2398
  validators: []
2399
2399
  };
2400
2400
  return Qs(Object.entries(e.classGroups), n).forEach(([o, a]) => {
2401
- Ir(a, t, o, r);
2401
+ Vr(a, t, o, r);
2402
2402
  }), t;
2403
2403
  }
2404
- function Ir(e, r, n, t) {
2404
+ function Vr(e, r, n, t) {
2405
2405
  e.forEach((s) => {
2406
2406
  if (typeof s == "string") {
2407
2407
  const o = s === "" ? r : Nt(r, s);
@@ -2410,7 +2410,7 @@ function Ir(e, r, n, t) {
2410
2410
  }
2411
2411
  if (typeof s == "function") {
2412
2412
  if (Xs(s)) {
2413
- Ir(s(t), r, n, t);
2413
+ Vr(s(t), r, n, t);
2414
2414
  return;
2415
2415
  }
2416
2416
  r.validators.push({
@@ -2420,7 +2420,7 @@ function Ir(e, r, n, t) {
2420
2420
  return;
2421
2421
  }
2422
2422
  Object.entries(s).forEach(([o, a]) => {
2423
- Ir(a, Nt(r, o), n, t);
2423
+ Vr(a, Nt(r, o), n, t);
2424
2424
  });
2425
2425
  });
2426
2426
  }
@@ -2590,7 +2590,7 @@ function io(e, ...r) {
2590
2590
  return o(ao.apply(null, arguments));
2591
2591
  };
2592
2592
  }
2593
- function A(e) {
2593
+ function P(e) {
2594
2594
  const r = (n) => n[e] || [];
2595
2595
  return r.isThemeGetter = !0, r;
2596
2596
  }
@@ -2604,7 +2604,7 @@ function Re(e) {
2604
2604
  function _e(e) {
2605
2605
  return !!e && !Number.isNaN(Number(e));
2606
2606
  }
2607
- function gr(e) {
2607
+ function br(e) {
2608
2608
  return Ge(e, "number", _e);
2609
2609
  }
2610
2610
  function tr(e) {
@@ -2653,7 +2653,7 @@ function Lo(e) {
2653
2653
  return mo.test(e);
2654
2654
  }
2655
2655
  function Eo() {
2656
- const e = A("colors"), r = A("spacing"), n = A("blur"), t = A("brightness"), s = A("borderColor"), o = A("borderRadius"), a = A("borderSpacing"), l = A("borderWidth"), c = A("contrast"), f = A("grayscale"), u = A("hueRotate"), p = A("invert"), m = A("gap"), b = A("gradientColorStops"), v = A("gradientColorStopPositions"), C = A("inset"), x = A("margin"), k = A("opacity"), j = A("padding"), fe = A("saturate"), S = A("scale"), Z = A("sepia"), we = A("skew"), J = A("space"), Y = A("translate"), X = () => ["auto", "contain", "none"], te = () => ["auto", "hidden", "clip", "visible", "scroll"], ie = () => ["auto", L, r], $ = () => [L, r], O = () => ["", Ee, Re], V = () => ["auto", _e, L], G = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], pe = () => ["solid", "dashed", "dotted", "double", "none"], ve = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], he = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], z = () => ["", "0", L], ye = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], me = () => [_e, gr], Q = () => [_e, L];
2656
+ const e = P("colors"), r = P("spacing"), n = P("blur"), t = P("brightness"), s = P("borderColor"), o = P("borderRadius"), a = P("borderSpacing"), l = P("borderWidth"), c = P("contrast"), f = P("grayscale"), u = P("hueRotate"), p = P("invert"), m = P("gap"), b = P("gradientColorStops"), v = P("gradientColorStopPositions"), C = P("inset"), x = P("margin"), k = P("opacity"), j = P("padding"), fe = P("saturate"), R = P("scale"), Z = P("sepia"), we = P("skew"), J = P("space"), Y = P("translate"), X = () => ["auto", "contain", "none"], te = () => ["auto", "hidden", "clip", "visible", "scroll"], ie = () => ["auto", L, r], $ = () => [L, r], O = () => ["", Ee, Re], V = () => ["auto", _e, L], G = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], pe = () => ["solid", "dashed", "dotted", "double", "none"], ve = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], he = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], z = () => ["", "0", L], ye = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], me = () => [_e, br], Q = () => [_e, L];
2657
2657
  return {
2658
2658
  cacheSize: 500,
2659
2659
  separator: ":",
@@ -3341,7 +3341,7 @@ function Eo() {
3341
3341
  * @see https://tailwindcss.com/docs/font-weight
3342
3342
  */
3343
3343
  "font-weight": [{
3344
- font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", gr]
3344
+ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", br]
3345
3345
  }],
3346
3346
  /**
3347
3347
  * Font Family
@@ -3392,7 +3392,7 @@ function Eo() {
3392
3392
  * @see https://tailwindcss.com/docs/line-clamp
3393
3393
  */
3394
3394
  "line-clamp": [{
3395
- "line-clamp": ["none", _e, gr]
3395
+ "line-clamp": ["none", _e, br]
3396
3396
  }],
3397
3397
  /**
3398
3398
  * Line Height
@@ -4277,21 +4277,21 @@ function Eo() {
4277
4277
  * @see https://tailwindcss.com/docs/scale
4278
4278
  */
4279
4279
  scale: [{
4280
- scale: [S]
4280
+ scale: [R]
4281
4281
  }],
4282
4282
  /**
4283
4283
  * Scale X
4284
4284
  * @see https://tailwindcss.com/docs/scale
4285
4285
  */
4286
4286
  "scale-x": [{
4287
- "scale-x": [S]
4287
+ "scale-x": [R]
4288
4288
  }],
4289
4289
  /**
4290
4290
  * Scale Y
4291
4291
  * @see https://tailwindcss.com/docs/scale
4292
4292
  */
4293
4293
  "scale-y": [{
4294
- "scale-y": [S]
4294
+ "scale-y": [R]
4295
4295
  }],
4296
4296
  /**
4297
4297
  * Rotate
@@ -4592,7 +4592,7 @@ function Eo() {
4592
4592
  * @see https://tailwindcss.com/docs/stroke-width
4593
4593
  */
4594
4594
  "stroke-w": [{
4595
- stroke: [Ee, Re, gr]
4595
+ stroke: [Ee, Re, br]
4596
4596
  }],
4597
4597
  /**
4598
4598
  * Stroke
@@ -5066,19 +5066,19 @@ function No() {
5066
5066
  (e = arguments[n]) && (r = Gt(e)) && (t && (t += " "), t += r);
5067
5067
  return t;
5068
5068
  }
5069
- const Vr = (...e) => D(No(...e)), Zt = (e, r, n) => {
5069
+ const dr = (...e) => D(No(...e)), Zt = (e, r, n) => {
5070
5070
  if (r) {
5071
5071
  e.preventDefault();
5072
5072
  return;
5073
5073
  }
5074
5074
  n(e);
5075
- }, jr = (e, r, n) => {
5075
+ }, Lr = (e, r, n) => {
5076
5076
  if (r) {
5077
5077
  e.preventDefault();
5078
5078
  return;
5079
5079
  }
5080
5080
  n(e);
5081
- }, To = F(
5081
+ }, To = S(
5082
5082
  [
5083
5083
  "preflight",
5084
5084
  "!ds-font-sans",
@@ -5155,10 +5155,10 @@ const Vr = (...e) => D(No(...e)), Zt = (e, r, n) => {
5155
5155
  }) => /* @__PURE__ */ i.jsxs(
5156
5156
  "button",
5157
5157
  {
5158
- onClick: (m) => jr(m, n, s),
5158
+ onClick: (m) => Lr(m, n, s),
5159
5159
  "aria-disabled": n,
5160
5160
  "aria-label": r,
5161
- className: Vr(To({ variant: e, isTransparent: f, disabled: n }), t),
5161
+ className: dr(To({ variant: e, isTransparent: f, disabled: n }), t),
5162
5162
  ...p,
5163
5163
  children: [
5164
5164
  /* @__PURE__ */ i.jsx(
@@ -5181,7 +5181,7 @@ const Vr = (...e) => D(No(...e)), Zt = (e, r, n) => {
5181
5181
  )
5182
5182
  ]
5183
5183
  }
5184
- ), et = So, Ro = F(
5184
+ ), et = So, Ro = S(
5185
5185
  [
5186
5186
  "preflight",
5187
5187
  "ds-flex",
@@ -5205,7 +5205,7 @@ const Vr = (...e) => D(No(...e)), Zt = (e, r, n) => {
5205
5205
  }
5206
5206
  }
5207
5207
  }
5208
- ), Ao = (e) => D(Ro(e)), Po = F("", {
5208
+ ), Ao = (e) => D(Ro(e)), Po = S("", {
5209
5209
  variants: {
5210
5210
  variant: {
5211
5211
  success: "ds-text-success-green-dark",
@@ -5214,7 +5214,7 @@ const Vr = (...e) => D(No(...e)), Zt = (e, r, n) => {
5214
5214
  error: "ds-text-danger-red-dark"
5215
5215
  }
5216
5216
  }
5217
- }), Tt = (e) => D(Po(e)), Fo = F("", {
5217
+ }), Tt = (e) => D(Po(e)), Fo = S("", {
5218
5218
  variants: {
5219
5219
  variant: {
5220
5220
  success: ["ds-text-success-green-darkest", "ds-stroke-success-green-darkest"],
@@ -5306,7 +5306,7 @@ const Vr = (...e) => D(No(...e)), Zt = (e, r, n) => {
5306
5306
  }
5307
5307
  ) })
5308
5308
  ] });
5309
- }, Ml = Oo, Yt = [
5309
+ }, Sl = Oo, Yt = [
5310
5310
  "preflight",
5311
5311
  // Need to specify the font because disabling preflight makes the button not inherit the font
5312
5312
  // Lato is defined as font-sans in our tailwind theme configuration
@@ -5344,7 +5344,7 @@ const Vr = (...e) => D(No(...e)), Zt = (e, r, n) => {
5344
5344
  "focus-visible:ds-ring-neutrals-black",
5345
5345
  "!focus-visible:ds-border-neutrals-light",
5346
5346
  "active:ds-border-neutrals-lighter"
5347
- ], Io = F(Yt, {
5347
+ ], Io = S(Yt, {
5348
5348
  variants: {
5349
5349
  variant: {
5350
5350
  primary: [
@@ -5431,7 +5431,7 @@ const Vr = (...e) => D(No(...e)), Zt = (e, r, n) => {
5431
5431
  class: "focus-visible:ds-ring-neutrals-black"
5432
5432
  }
5433
5433
  ]
5434
- }), Vo = (e, r, n) => e === "inline" && r === !0 ? Vr(_o) : Vr(Io({ variant: e, disabled: r }), n), Do = ({
5434
+ }), Vo = (e, r, n) => e === "inline" && r === !0 ? dr(_o) : dr(Io({ variant: e, disabled: r }), n), Do = ({
5435
5435
  variant: e = "primary",
5436
5436
  text: r,
5437
5437
  label: n = "",
@@ -5447,7 +5447,7 @@ const Vr = (...e) => D(No(...e)), Zt = (e, r, n) => {
5447
5447
  "button",
5448
5448
  {
5449
5449
  "aria-disabled": t,
5450
- onClick: (p) => jr(p, t, o),
5450
+ onClick: (p) => Lr(p, t, o),
5451
5451
  className: Vo(e, t, s),
5452
5452
  "aria-label": n,
5453
5453
  ...u,
@@ -5475,7 +5475,7 @@ const Vr = (...e) => D(No(...e)), Zt = (e, r, n) => {
5475
5475
  )
5476
5476
  ] })
5477
5477
  }
5478
- ) }), Nl = Do, Bo = ({
5478
+ ) }), Rl = Do, Bo = ({
5479
5479
  content: e = void 0,
5480
5480
  iconName: r = void 0,
5481
5481
  title: n = "",
@@ -5508,7 +5508,7 @@ const Vr = (...e) => D(No(...e)), Zt = (e, r, n) => {
5508
5508
  t && /* @__PURE__ */ i.jsx("div", { children: t })
5509
5509
  ]
5510
5510
  }
5511
- ), Tl = Bo, Ho = F(
5511
+ ), Al = Bo, Ho = S(
5512
5512
  [
5513
5513
  "preflight",
5514
5514
  "ds-h-4",
@@ -5536,7 +5536,7 @@ const Vr = (...e) => D(No(...e)), Zt = (e, r, n) => {
5536
5536
  }
5537
5537
  }
5538
5538
  }
5539
- ), qt = (e) => D(Ho(e)), zo = F(
5539
+ ), qt = (e) => D(Ho(e)), zo = S(
5540
5540
  ["preflight", "ds-font-base", "!ds-font-sans", "ds-ml-2", "ds-text-base"],
5541
5541
  {
5542
5542
  variants: {
@@ -5611,14 +5611,14 @@ const Vr = (...e) => D(No(...e)), Zt = (e, r, n) => {
5611
5611
  className: `ds-form-checkbox ds-mt-1 ${qt({ disabled: s })} ds-rounded`,
5612
5612
  checked: t,
5613
5613
  ref: (u) => u && (u.indeterminate = o),
5614
- onClick: (u) => jr(u, s, l),
5614
+ onClick: (u) => Lr(u, s, l),
5615
5615
  onChange: (u) => Zt(u, s, a),
5616
5616
  ...c
5617
5617
  }
5618
5618
  ),
5619
5619
  r && /* @__PURE__ */ i.jsx("label", { htmlFor: e, className: Kt({ disabled: s }), children: r })
5620
5620
  ] });
5621
- }, Sl = Uo, De = "large", Ze = "medium", Ye = "small", qe = "extra-large", St = "h1", Go = "h2", Zo = "h3", Yo = "div";
5621
+ }, Pl = Uo, De = "large", Ze = "medium", Ye = "small", qe = "extra-large", St = "h1", Go = "h2", Zo = "h3", Yo = "div";
5622
5622
  function qo(e) {
5623
5623
  return {
5624
5624
  [De]: St,
@@ -5627,7 +5627,7 @@ function qo(e) {
5627
5627
  [qe]: Yo
5628
5628
  }[e] || St;
5629
5629
  }
5630
- const Ko = F("preflight !ds-font-sans", {
5630
+ const Ko = S("preflight !ds-font-sans", {
5631
5631
  variants: {
5632
5632
  size: {
5633
5633
  [Ye]: "ds-mb-3",
@@ -5636,7 +5636,7 @@ const Ko = F("preflight !ds-font-sans", {
5636
5636
  [qe]: "ds-mb-6"
5637
5637
  }
5638
5638
  }
5639
- }), br = F("ds-text-neutrals-darker !ds-font-sans", {
5639
+ }), vr = S("ds-text-neutrals-darker !ds-font-sans", {
5640
5640
  variants: {
5641
5641
  size: {
5642
5642
  [Ye]: "ds-text-xl ds-font-semibold",
@@ -5645,7 +5645,7 @@ const Ko = F("preflight !ds-font-sans", {
5645
5645
  [qe]: "ds-text-4xl ds-font-semibold"
5646
5646
  }
5647
5647
  }
5648
- }), Jo = F("ds-mt-0 ds-font-bold ds-text-neutrals-dark", {
5648
+ }), Jo = S("ds-mt-0 ds-font-bold ds-text-neutrals-dark", {
5649
5649
  variants: {
5650
5650
  size: {
5651
5651
  [Ye]: "ds-mb-1 ds-text-sm",
@@ -5654,7 +5654,7 @@ const Ko = F("preflight !ds-font-sans", {
5654
5654
  [qe]: "ds-mb-3 ds-text-base"
5655
5655
  }
5656
5656
  }
5657
- }), Xo = F("ds-mb-0 ds-text-neutrals-dark", {
5657
+ }), Xo = S("ds-mb-0 ds-text-neutrals-dark", {
5658
5658
  variants: {
5659
5659
  size: {
5660
5660
  [Ye]: "ds-mt-1 ds-text-base",
@@ -5663,7 +5663,7 @@ const Ko = F("preflight !ds-font-sans", {
5663
5663
  [qe]: "ds-mt-3 ds-text-base"
5664
5664
  }
5665
5665
  }
5666
- }), Qo = F("ds-text-neutrals-light", {
5666
+ }), Qo = S("ds-text-neutrals-light", {
5667
5667
  variants: {
5668
5668
  size: {
5669
5669
  [Ye]: "ds-mt-2",
@@ -5684,10 +5684,10 @@ const Ko = F("preflight !ds-font-sans", {
5684
5684
  ...c
5685
5685
  }) => {
5686
5686
  const f = t ? /* @__PURE__ */ i.jsx("p", { className: Jo({ size: e }), children: t }) : null, u = s ? /* @__PURE__ */ i.jsx("p", { className: Xo({ size: e }), children: s }) : null, p = o ? /* @__PURE__ */ i.jsx("hr", { className: Qo({ size: e }) }) : null, m = a ? Ko({ size: e }) : "preflight", b = {
5687
- div: /* @__PURE__ */ i.jsx("div", { className: br({ size: e }), children: n }),
5688
- h3: /* @__PURE__ */ i.jsx("h3", { className: br({ size: e }), children: n }),
5689
- h2: /* @__PURE__ */ i.jsx("h2", { className: br({ size: e }), children: n }),
5690
- h1: /* @__PURE__ */ i.jsx("h1", { className: br({ size: e }), children: n })
5687
+ div: /* @__PURE__ */ i.jsx("div", { className: vr({ size: e }), children: n }),
5688
+ h3: /* @__PURE__ */ i.jsx("h3", { className: vr({ size: e }), children: n }),
5689
+ h2: /* @__PURE__ */ i.jsx("h2", { className: vr({ size: e }), children: n }),
5690
+ h1: /* @__PURE__ */ i.jsx("h1", { className: vr({ size: e }), children: n })
5691
5691
  };
5692
5692
  return /* @__PURE__ */ i.jsxs("div", { className: D(m, r), ...c, children: [
5693
5693
  f,
@@ -5715,12 +5715,12 @@ const Ko = F("preflight !ds-font-sans", {
5715
5715
  className: `ds-form-radio ${qt({ disabled: t })}`,
5716
5716
  "aria-disabled": t,
5717
5717
  onChange: (l) => Zt(l, t, s),
5718
- onClick: (l) => jr(l, t, o),
5718
+ onClick: (l) => Lr(l, t, o),
5719
5719
  ...a
5720
5720
  }
5721
5721
  ),
5722
5722
  /* @__PURE__ */ i.jsx("label", { htmlFor: n, className: Kt({ disabled: t }), children: e })
5723
- ] }), Rl = ra, ta = F(
5723
+ ] }), Fl = ra, ta = S(
5724
5724
  [
5725
5725
  "preflight",
5726
5726
  "!ds-font-sans",
@@ -5762,11 +5762,11 @@ const Ko = F("preflight !ds-font-sans", {
5762
5762
  }) => /* @__PURE__ */ i.jsxs("a", { href: r, type: n, className: D(ta({ type: n })), ...s, children: [
5763
5763
  e,
5764
5764
  t && /* @__PURE__ */ i.jsx(Te, { altText: e, name: t, size: "small" })
5765
- ] }), Al = na;
5766
- var sa = Object.defineProperty, oa = (e, r, n) => r in e ? sa(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n, Pr = (e, r, n) => (oa(e, typeof r != "symbol" ? r + "" : r, n), n);
5765
+ ] }), Ol = na;
5766
+ var sa = Object.defineProperty, oa = (e, r, n) => r in e ? sa(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n, Fr = (e, r, n) => (oa(e, typeof r != "symbol" ? r + "" : r, n), n);
5767
5767
  let aa = class {
5768
5768
  constructor() {
5769
- Pr(this, "current", this.detect()), Pr(this, "handoffState", "pending"), Pr(this, "currentId", 0);
5769
+ Fr(this, "current", this.detect()), Fr(this, "handoffState", "pending"), Fr(this, "currentId", 0);
5770
5770
  }
5771
5771
  set(r) {
5772
5772
  this.current !== r && (this.handoffState = "pending", this.currentId = 0, this.current = r);
@@ -5796,7 +5796,7 @@ let aa = class {
5796
5796
  function tt(e) {
5797
5797
  return Ve.isServer ? null : e instanceof Node ? e.ownerDocument : e != null && e.hasOwnProperty("current") && e.current instanceof Node ? e.current.ownerDocument : document;
5798
5798
  }
5799
- function Lr(e) {
5799
+ function Er(e) {
5800
5800
  typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((r) => setTimeout(() => {
5801
5801
  throw r;
5802
5802
  }));
@@ -5814,7 +5814,7 @@ function We() {
5814
5814
  return r.add(() => clearTimeout(t));
5815
5815
  }, microTask(...n) {
5816
5816
  let t = { current: !0 };
5817
- return Lr(() => {
5817
+ return Er(() => {
5818
5818
  t.current && n[0]();
5819
5819
  }), r.add(() => {
5820
5820
  t.current = !1;
@@ -5848,12 +5848,12 @@ let K = (e, r) => {
5848
5848
  Ve.isServer ? oe(e, r) : Bn(e, r);
5849
5849
  };
5850
5850
  function Ce(e) {
5851
- let r = R(e);
5851
+ let r = A(e);
5852
5852
  return K(() => {
5853
5853
  r.current = e;
5854
5854
  }, [e]), r;
5855
5855
  }
5856
- let P = function(e) {
5856
+ let F = function(e) {
5857
5857
  let r = Ce(e);
5858
5858
  return w.useCallback((...n) => r.current(...n), [r]);
5859
5859
  }, ia = ce(void 0);
@@ -5871,30 +5871,30 @@ function U(e, r, ...n) {
5871
5871
  let t = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(r).map((s) => `"${s}"`).join(", ")}.`);
5872
5872
  throw Error.captureStackTrace && Error.captureStackTrace(t, U), t;
5873
5873
  }
5874
- var Cr = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(Cr || {}), Oe = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Oe || {});
5874
+ var kr = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(kr || {}), Oe = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Oe || {});
5875
5875
  function be({ ourProps: e, theirProps: r, slot: n, defaultTag: t, features: s, visible: o = !0, name: a, mergeRefs: l }) {
5876
5876
  l = l != null ? l : da;
5877
5877
  let c = Xt(r, e);
5878
5878
  if (o)
5879
- return vr(c, n, t, a, l);
5879
+ return xr(c, n, t, a, l);
5880
5880
  let f = s != null ? s : 0;
5881
5881
  if (f & 2) {
5882
5882
  let { static: u = !1, ...p } = c;
5883
5883
  if (u)
5884
- return vr(p, n, t, a, l);
5884
+ return xr(p, n, t, a, l);
5885
5885
  }
5886
5886
  if (f & 1) {
5887
5887
  let { unmount: u = !0, ...p } = c;
5888
5888
  return U(u ? 0 : 1, { 0() {
5889
5889
  return null;
5890
5890
  }, 1() {
5891
- return vr({ ...p, hidden: !0, style: { display: "none" } }, n, t, a, l);
5891
+ return xr({ ...p, hidden: !0, style: { display: "none" } }, n, t, a, l);
5892
5892
  } });
5893
5893
  }
5894
- return vr(c, n, t, a, l);
5894
+ return xr(c, n, t, a, l);
5895
5895
  }
5896
- function vr(e, r = {}, n, t, s) {
5897
- let { as: o = n, children: a, refName: l = "ref", ...c } = Fr(e, ["unmount", "static"]), f = e.ref !== void 0 ? { [l]: e.ref } : {}, u = typeof a == "function" ? a(r) : a;
5896
+ function xr(e, r = {}, n, t, s) {
5897
+ let { as: o = n, children: a, refName: l = "ref", ...c } = Or(e, ["unmount", "static"]), f = e.ref !== void 0 ? { [l]: e.ref } : {}, u = typeof a == "function" ? a(r) : a;
5898
5898
  "className" in c && c.className && typeof c.className == "function" && (c.className = c.className(r)), c["aria-labelledby"] && c["aria-labelledby"] === c.id && (c["aria-labelledby"] = void 0);
5899
5899
  let p = {};
5900
5900
  if (r) {
@@ -5915,12 +5915,12 @@ function vr(e, r = {}, n, t, s) {
5915
5915
  `)].join(`
5916
5916
  `));
5917
5917
  } else {
5918
- let m = u.props, b = m == null ? void 0 : m.className, v = typeof b == "function" ? (...k) => ar(b(...k), c.className) : ar(b, c.className), C = v ? { className: v } : {}, x = Xt(u.props, Ue(Fr(c, ["ref"])));
5918
+ let m = u.props, b = m == null ? void 0 : m.className, v = typeof b == "function" ? (...k) => ar(b(...k), c.className) : ar(b, c.className), C = v ? { className: v } : {}, x = Xt(u.props, Ue(Or(c, ["ref"])));
5919
5919
  for (let k in p)
5920
5920
  k in x && delete p[k];
5921
5921
  return Un(u, Object.assign({}, x, p, f, { ref: s(u.ref, f.ref) }, C));
5922
5922
  }
5923
- return Gn(o, Object.assign({}, Fr(c, ["ref"]), o !== de && f, o !== de && p), u);
5923
+ return Gn(o, Object.assign({}, Or(c, ["ref"]), o !== de && f, o !== de && p), u);
5924
5924
  }
5925
5925
  function da(...e) {
5926
5926
  return e.every((r) => r == null) ? void 0 : (r) => {
@@ -5964,14 +5964,14 @@ function Ue(e) {
5964
5964
  r[n] === void 0 && delete r[n];
5965
5965
  return r;
5966
5966
  }
5967
- function Fr(e, r = []) {
5967
+ function Or(e, r = []) {
5968
5968
  let n = Object.assign({}, e);
5969
5969
  for (let t of r)
5970
5970
  t in n && delete n[t];
5971
5971
  return n;
5972
5972
  }
5973
5973
  let ca = "div";
5974
- var kr = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(kr || {});
5974
+ var wr = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(wr || {});
5975
5975
  function ua(e, r) {
5976
5976
  var n;
5977
5977
  let { features: t = 1, ...s } = e, o = { ref: r, "aria-hidden": (t & 2) === 2 ? !0 : (n = s["aria-hidden"]) != null ? n : void 0, hidden: (t & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(t & 4) === 4 && (t & 2) !== 2 && { display: "none" } } };
@@ -5990,11 +5990,11 @@ function ha(e, r = !0) {
5990
5990
  return Object.assign(e, { [Qt]: r });
5991
5991
  }
5992
5992
  function ke(...e) {
5993
- let r = R(e);
5993
+ let r = A(e);
5994
5994
  oe(() => {
5995
5995
  r.current = e;
5996
5996
  }, [e]);
5997
- let n = P((t) => {
5997
+ let n = F((t) => {
5998
5998
  for (let s of r.current)
5999
5999
  s != null && (typeof s == "function" ? s(t) : s.current = t);
6000
6000
  });
@@ -6013,7 +6013,7 @@ function en() {
6013
6013
  function ma() {
6014
6014
  let [e, r] = ge([]);
6015
6015
  return [e.length > 0 ? e.join(" ") : void 0, ae(() => function(n) {
6016
- let t = P((o) => (r((a) => [...a, o]), () => r((a) => {
6016
+ let t = F((o) => (r((a) => [...a, o]), () => r((a) => {
6017
6017
  let l = a.slice(), c = l.indexOf(o);
6018
6018
  return c !== -1 && l.splice(c, 1), l;
6019
6019
  }))), s = ae(() => ({ register: t, slot: n.slot, name: n.name, props: n.props, value: n.value }), [t, n.slot, n.name, n.props, n.value]);
@@ -6022,7 +6022,7 @@ function ma() {
6022
6022
  }
6023
6023
  let ga = "p";
6024
6024
  function ba(e, r) {
6025
- let n = yr(), t = la(), { id: s = `headlessui-description-${n}`, ...o } = e, a = en(), l = ke(r);
6025
+ let n = jr(), t = la(), { id: s = `headlessui-description-${n}`, ...o } = e, a = en(), l = ke(r);
6026
6026
  K(() => a.register(s), [s, a.register]);
6027
6027
  let c = t || !1, f = ae(() => ({ ...a.slot, disabled: c }), [a.slot, c]), u = { ref: l, ...a.props, id: s };
6028
6028
  return be({ ourProps: u, theirProps: o, slot: f, defaultTag: ga, name: a.name || "Description" });
@@ -6187,7 +6187,7 @@ function Ra() {
6187
6187
  function Aa() {
6188
6188
  return sn() || Ra();
6189
6189
  }
6190
- function xr(e, r, n) {
6190
+ function Cr(e, r, n) {
6191
6191
  let t = Ce(r);
6192
6192
  oe(() => {
6193
6193
  function s(o) {
@@ -6206,7 +6206,7 @@ function on(e, r, n) {
6206
6206
  }, [e, n]);
6207
6207
  }
6208
6208
  function Pa(e, r, n = !0) {
6209
- let t = R(!1);
6209
+ let t = A(!1);
6210
6210
  oe(() => {
6211
6211
  requestAnimationFrame(() => {
6212
6212
  t.current = n;
@@ -6230,18 +6230,18 @@ function Pa(e, r, n = !0) {
6230
6230
  }
6231
6231
  return !$a(c, nn.Loose) && c.tabIndex !== -1 && a.preventDefault(), r(a, c);
6232
6232
  }
6233
- let o = R(null);
6234
- xr("pointerdown", (a) => {
6233
+ let o = A(null);
6234
+ Cr("pointerdown", (a) => {
6235
6235
  var l, c;
6236
6236
  t.current && (o.current = ((c = (l = a.composedPath) == null ? void 0 : l.call(a)) == null ? void 0 : c[0]) || a.target);
6237
- }, !0), xr("mousedown", (a) => {
6237
+ }, !0), Cr("mousedown", (a) => {
6238
6238
  var l, c;
6239
6239
  t.current && (o.current = ((c = (l = a.composedPath) == null ? void 0 : l.call(a)) == null ? void 0 : c[0]) || a.target);
6240
- }, !0), xr("click", (a) => {
6240
+ }, !0), Cr("click", (a) => {
6241
6241
  Aa() || o.current && (s(a, () => o.current), o.current = null);
6242
- }, !0), xr("touchend", (a) => s(a, () => a.target instanceof HTMLElement ? a.target : null), !0), on("blur", (a) => s(a, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
6242
+ }, !0), Cr("touchend", (a) => s(a, () => a.target instanceof HTMLElement ? a.target : null), !0), on("blur", (a) => s(a, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
6243
6243
  }
6244
- function dr(...e) {
6244
+ function cr(...e) {
6245
6245
  return ae(() => tt(...e), [...e]);
6246
6246
  }
6247
6247
  function an(e, r, n, t) {
@@ -6379,7 +6379,7 @@ function Ba(e, r, n = () => [document.body]) {
6379
6379
  });
6380
6380
  }
6381
6381
  function ot(e, r) {
6382
- let n = R([]), t = P(e);
6382
+ let n = A([]), t = F(e);
6383
6383
  oe(() => {
6384
6384
  let s = [...n.current];
6385
6385
  for (let [o, a] of r.entries())
@@ -6412,9 +6412,9 @@ za(() => {
6412
6412
  window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
6413
6413
  });
6414
6414
  function ln(e) {
6415
- let r = P(e), n = R(!1);
6415
+ let r = F(e), n = A(!1);
6416
6416
  oe(() => (n.current = !1, () => {
6417
- n.current = !0, Lr(() => {
6417
+ n.current = !0, Er(() => {
6418
6418
  n.current && r();
6419
6419
  });
6420
6420
  }), [r]);
@@ -6424,7 +6424,7 @@ function Ua() {
6424
6424
  return "useSyncExternalStore" in or ? ((r) => r.useSyncExternalStore)(or)(() => () => {
6425
6425
  }, () => !1, () => !e) : !1;
6426
6426
  }
6427
- function cr() {
6427
+ function ur() {
6428
6428
  let e = Ua(), [r, n] = or.useState(Ve.isHandoffComplete);
6429
6429
  return r && Ve.isHandoffComplete === !1 && n(!1), or.useEffect(() => {
6430
6430
  r !== !0 && n(!0);
@@ -6438,7 +6438,7 @@ function Pt(e) {
6438
6438
  return w.createElement(dn.Provider, { value: e.force }, e.children);
6439
6439
  }
6440
6440
  function Za(e) {
6441
- let r = Ga(), n = re(un), t = dr(e), [s, o] = ge(() => {
6441
+ let r = Ga(), n = re(un), t = cr(e), [s, o] = ge(() => {
6442
6442
  var a;
6443
6443
  if (!r && n !== null)
6444
6444
  return (a = n.current) != null ? a : null;
@@ -6459,12 +6459,12 @@ function Za(e) {
6459
6459
  }, [n, o, r]), s;
6460
6460
  }
6461
6461
  let cn = de, Ya = ue(function(e, r) {
6462
- let n = e, t = R(null), s = ke(ha((u) => {
6462
+ let n = e, t = A(null), s = ke(ha((u) => {
6463
6463
  t.current = u;
6464
- }), r), o = dr(t), a = Za(t), [l] = ge(() => {
6464
+ }), r), o = cr(t), a = Za(t), [l] = ge(() => {
6465
6465
  var u;
6466
6466
  return Ve.isServer ? null : (u = o == null ? void 0 : o.createElement("div")) != null ? u : null;
6467
- }), c = re(Ur), f = cr();
6467
+ }), c = re(Ur), f = ur();
6468
6468
  return K(() => {
6469
6469
  !a || !l || a.contains(l) || (l.setAttribute("data-headlessui-portal", ""), a.appendChild(l));
6470
6470
  }, [a, l]), K(() => {
@@ -6486,7 +6486,7 @@ function Ja(e, r) {
6486
6486
  }
6487
6487
  let Ur = ce(null);
6488
6488
  function Xa() {
6489
- let e = re(Ur), r = R([]), n = P((o) => (r.current.push(o), e && e.register(o), () => t(o))), t = P((o) => {
6489
+ let e = re(Ur), r = A([]), n = F((o) => (r.current.push(o), e && e.register(o), () => t(o))), t = F((o) => {
6490
6490
  let a = r.current.indexOf(o);
6491
6491
  a !== -1 && r.current.splice(a, 1), e && e.unregister(o);
6492
6492
  }), s = ae(() => ({ register: n, unregister: t, portals: r }), [n, t, r]);
@@ -6509,7 +6509,7 @@ function ri() {
6509
6509
  }
6510
6510
  function ti({ defaultContainers: e = [], portals: r, mainTreeNodeRef: n } = {}) {
6511
6511
  var t;
6512
- let s = R((t = n == null ? void 0 : n.current) != null ? t : null), o = dr(s), a = P(() => {
6512
+ let s = A((t = n == null ? void 0 : n.current) != null ? t : null), o = cr(s), a = F(() => {
6513
6513
  var l, c, f;
6514
6514
  let u = [];
6515
6515
  for (let p of e)
@@ -6521,8 +6521,8 @@ function ti({ defaultContainers: e = [], portals: r, mainTreeNodeRef: n } = {})
6521
6521
  p !== document.body && p !== document.head && p instanceof HTMLElement && p.id !== "headlessui-portal-root" && (p.contains(s.current) || p.contains((f = (c = s.current) == null ? void 0 : c.getRootNode()) == null ? void 0 : f.host) || u.some((m) => p.contains(m)) || u.push(p));
6522
6522
  return u;
6523
6523
  });
6524
- return { resolveContainers: a, contains: P((l) => a().some((c) => c.contains(l))), mainTreeNodeRef: s, MainTreeNode: ae(() => function() {
6525
- return n != null ? null : w.createElement(Dr, { features: kr.Hidden, ref: s });
6524
+ return { resolveContainers: a, contains: F((l) => a().some((c) => c.contains(l))), mainTreeNodeRef: s, MainTreeNode: ae(() => function() {
6525
+ return n != null ? null : w.createElement(Dr, { features: wr.Hidden, ref: s });
6526
6526
  }, [s, n]) };
6527
6527
  }
6528
6528
  let lt = ce(() => {
@@ -6533,7 +6533,7 @@ function ni() {
6533
6533
  return re(lt);
6534
6534
  }
6535
6535
  function si({ children: e, onUpdate: r, type: n, element: t, enabled: s }) {
6536
- let o = ni(), a = P((...l) => {
6536
+ let o = ni(), a = F((...l) => {
6537
6537
  r == null || r(...l), o(...l);
6538
6538
  });
6539
6539
  return K(() => {
@@ -6543,15 +6543,15 @@ function si({ children: e, onUpdate: r, type: n, element: t, enabled: s }) {
6543
6543
  };
6544
6544
  }, [a, n, t, s]), w.createElement(lt.Provider, { value: a }, e);
6545
6545
  }
6546
- function ur() {
6547
- let e = R(!1);
6546
+ function fr() {
6547
+ let e = A(!1);
6548
6548
  return K(() => (e.current = !0, () => {
6549
6549
  e.current = !1;
6550
6550
  }), []), e;
6551
6551
  }
6552
6552
  var sr = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(sr || {});
6553
6553
  function oi() {
6554
- let e = R(0);
6554
+ let e = A(0);
6555
6555
  return on("keydown", (r) => {
6556
6556
  r.key === "Tab" && (e.current = r.shiftKey ? 1 : 0);
6557
6557
  }, !0), e;
@@ -6569,13 +6569,13 @@ function fn(e) {
6569
6569
  let ai = "div";
6570
6570
  var $e = ((e) => (e[e.None = 1] = "None", e[e.InitialFocus = 2] = "InitialFocus", e[e.TabLock = 4] = "TabLock", e[e.FocusLock = 8] = "FocusLock", e[e.RestoreFocus = 16] = "RestoreFocus", e[e.AutoFocus = 32] = "AutoFocus", e[e.All = 30] = "All", e))($e || {});
6571
6571
  function ii(e, r) {
6572
- let n = R(null), t = ke(n, r), { initialFocus: s, initialFocusFallback: o, containers: a, features: l = 30, ...c } = e;
6573
- cr() || (l = 1);
6574
- let f = dr(n);
6572
+ let n = A(null), t = ke(n, r), { initialFocus: s, initialFocusFallback: o, containers: a, features: l = 30, ...c } = e;
6573
+ ur() || (l = 1);
6574
+ let f = cr(n);
6575
6575
  ui({ ownerDocument: f }, !!(l & 16));
6576
6576
  let u = fi({ ownerDocument: f, container: n, initialFocus: s, initialFocusFallback: o }, l);
6577
6577
  pi({ ownerDocument: f, container: n, containers: a, previousActiveElement: u }, !!(l & 8));
6578
- let p = oi(), m = P((x) => {
6578
+ let p = oi(), m = F((x) => {
6579
6579
  let k = n.current;
6580
6580
  k && ((j) => j())(() => {
6581
6581
  U(p.current, { [sr.Forwards]: () => {
@@ -6584,7 +6584,7 @@ function ii(e, r) {
6584
6584
  lr(k, Me.Last, { skipElements: [x.relatedTarget, o] });
6585
6585
  } });
6586
6586
  });
6587
- }), b = nt(), v = R(!1), C = { ref: t, onKeyDown(x) {
6587
+ }), b = nt(), v = A(!1), C = { ref: t, onKeyDown(x) {
6588
6588
  x.key == "Tab" && (v.current = !0, b.requestAnimationFrame(() => {
6589
6589
  v.current = !1;
6590
6590
  }));
@@ -6596,16 +6596,16 @@ function ii(e, r) {
6596
6596
  let j = x.relatedTarget;
6597
6597
  j instanceof HTMLElement && j.dataset.headlessuiFocusGuard !== "true" && (pn(k, j) || (v.current ? lr(n.current, U(p.current, { [sr.Forwards]: () => Me.Next, [sr.Backwards]: () => Me.Previous }) | Me.WrapAround, { relativeTo: x.target }) : x.target instanceof HTMLElement && Ne(x.target)));
6598
6598
  } };
6599
- return w.createElement(w.Fragment, null, !!(l & 4) && w.createElement(Dr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: kr.Focusable }), be({ ourProps: C, theirProps: c, defaultTag: ai, name: "FocusTrap" }), !!(l & 4) && w.createElement(Dr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: kr.Focusable }));
6599
+ return w.createElement(w.Fragment, null, !!(l & 4) && w.createElement(Dr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: wr.Focusable }), be({ ourProps: C, theirProps: c, defaultTag: ai, name: "FocusTrap" }), !!(l & 4) && w.createElement(Dr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: wr.Focusable }));
6600
6600
  }
6601
6601
  let li = ue(ii), di = Object.assign(li, { features: $e });
6602
6602
  function ci(e = !0) {
6603
- let r = R(Fe.slice());
6603
+ let r = A(Fe.slice());
6604
6604
  return ot(([n], [t]) => {
6605
- t === !0 && n === !1 && Lr(() => {
6605
+ t === !0 && n === !1 && Er(() => {
6606
6606
  r.current.splice(0);
6607
6607
  }), t === !1 && n === !0 && (r.current = Fe.slice());
6608
- }, [e, Fe, r]), P(() => {
6608
+ }, [e, Fe, r]), F(() => {
6609
6609
  var n;
6610
6610
  return (n = r.current.find((t) => t != null && t.isConnected)) != null ? n : null;
6611
6611
  });
@@ -6619,14 +6619,14 @@ function ui({ ownerDocument: e }, r) {
6619
6619
  });
6620
6620
  }
6621
6621
  function fi({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallback: t }, s) {
6622
- let o = !!(s & 2), a = R(null), l = ur();
6622
+ let o = !!(s & 2), a = A(null), l = fr();
6623
6623
  return ot(() => {
6624
6624
  if (!o) {
6625
6625
  t != null && t.current && Ne(t.current);
6626
6626
  return;
6627
6627
  }
6628
6628
  let c = r.current;
6629
- c && Lr(() => {
6629
+ c && Er(() => {
6630
6630
  if (!l.current)
6631
6631
  return;
6632
6632
  let f = e == null ? void 0 : e.activeElement;
@@ -6656,7 +6656,7 @@ function fi({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallb
6656
6656
  }, [t, o, s]), a;
6657
6657
  }
6658
6658
  function pi({ ownerDocument: e, container: r, containers: n, previousActiveElement: t }, s) {
6659
- let o = ur();
6659
+ let o = fr();
6660
6660
  an(e == null ? void 0 : e.defaultView, "focus", (a) => {
6661
6661
  if (!s || !o.current)
6662
6662
  return;
@@ -6678,10 +6678,10 @@ function pn(e, r) {
6678
6678
  var hi = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(hi || {}), mi = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(mi || {});
6679
6679
  let gi = { 0(e, r) {
6680
6680
  return e.titleId === r.id ? e : { ...e, titleId: r.id };
6681
- } }, wr = ce(null);
6682
- wr.displayName = "DialogContext";
6681
+ } }, yr = ce(null);
6682
+ yr.displayName = "DialogContext";
6683
6683
  function dt(e) {
6684
- let r = re(wr);
6684
+ let r = re(yr);
6685
6685
  if (r === null) {
6686
6686
  let n = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
6687
6687
  throw Error.captureStackTrace && Error.captureStackTrace(n, dt), n;
@@ -6691,15 +6691,15 @@ function dt(e) {
6691
6691
  function bi(e, r) {
6692
6692
  return U(r.type, gi, e, r);
6693
6693
  }
6694
- let vi = "div", xi = Cr.RenderStrategy | Cr.Static;
6694
+ let vi = "div", xi = kr.RenderStrategy | kr.Static;
6695
6695
  function Ci(e, r) {
6696
- let n = yr(), { id: t = `headlessui-dialog-${n}`, open: s, onClose: o, initialFocus: a, role: l = "dialog", autoFocus: c = !0, __demoMode: f = !1, ...u } = e, [p, m] = ge(0), b = R(!1);
6696
+ let n = jr(), { id: t = `headlessui-dialog-${n}`, open: s, onClose: o, initialFocus: a, role: l = "dialog", autoFocus: c = !0, __demoMode: f = !1, ...u } = e, [p, m] = ge(0), b = A(!1);
6697
6697
  l = function() {
6698
6698
  return l === "dialog" || l === "alertdialog" ? l : (b.current || (b.current = !0, console.warn(`Invalid role [${l}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
6699
6699
  }();
6700
6700
  let v = it();
6701
6701
  s === void 0 && v !== null && (s = (v & se.Open) === se.Open);
6702
- let C = R(null), x = ke(C, r), k = dr(C), j = e.hasOwnProperty("open") || v !== null, fe = e.hasOwnProperty("onClose");
6702
+ let C = A(null), x = ke(C, r), k = cr(C), j = e.hasOwnProperty("open") || v !== null, fe = e.hasOwnProperty("onClose");
6703
6703
  if (!j && !fe)
6704
6704
  throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
6705
6705
  if (!j)
@@ -6710,49 +6710,49 @@ function Ci(e, r) {
6710
6710
  throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${s}`);
6711
6711
  if (typeof o != "function")
6712
6712
  throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${o}`);
6713
- let S = s ? 0 : 1, [Z, we] = Yn(bi, { titleId: null, descriptionId: null, panelRef: qn() }), J = P(() => o(!1)), Y = P((W) => we({ type: 0, id: W })), X = cr() ? S === 0 : !1, te = p > 1, ie = re(wr) !== null, [$, O] = Xa(), V = { get current() {
6713
+ let R = s ? 0 : 1, [Z, we] = Yn(bi, { titleId: null, descriptionId: null, panelRef: qn() }), J = F(() => o(!1)), Y = F((W) => we({ type: 0, id: W })), X = ur() ? R === 0 : !1, te = p > 1, ie = re(yr) !== null, [$, O] = Xa(), V = { get current() {
6714
6714
  var W;
6715
6715
  return (W = Z.panelRef.current) != null ? W : C.current;
6716
6716
  } }, { resolveContainers: G, mainTreeNodeRef: pe, MainTreeNode: ve } = ti({ portals: $, defaultContainers: [V] }), he = te ? "parent" : "leaf", z = v !== null ? (v & se.Closing) === se.Closing : !1, ye = te || z ? !1 : X;
6717
- wa({ allowed: P(() => {
6717
+ wa({ allowed: F(() => {
6718
6718
  var W, xe;
6719
6719
  return [(xe = (W = C.current) == null ? void 0 : W.closest("[data-headlessui-portal]")) != null ? xe : null];
6720
- }), disallowed: P(() => {
6720
+ }), disallowed: F(() => {
6721
6721
  var W, xe;
6722
6722
  return [(xe = (W = pe.current) == null ? void 0 : W.closest("body > *:not(#headlessui-portal-root)")) != null ? xe : null];
6723
6723
  }) }, f ? !1 : ye), Pa(G, (W) => {
6724
6724
  W.preventDefault(), J();
6725
6725
  }, !(!X || te));
6726
- let Q = !(te || S !== 0);
6726
+ let Q = !(te || R !== 0);
6727
6727
  an(k == null ? void 0 : k.defaultView, "keydown", (W) => {
6728
6728
  Q && (W.defaultPrevented || W.key === rn.Escape && (W.preventDefault(), W.stopPropagation(), J()));
6729
- }), Ba(k, f ? !1 : !(z || S !== 0 || ie), G), tn(C, J, S === 0);
6730
- let [ne, Ke] = ma(), ee = ae(() => [{ dialogState: S, close: J, setTitleId: Y }, Z], [S, Z, J, Y]), B = ae(() => ({ open: S === 0 }), [S]), H = { ref: x, id: t, role: l, tabIndex: -1, "aria-modal": S === 0 ? !0 : void 0, "aria-labelledby": Z.titleId, "aria-describedby": ne }, Je = !ri(), je = X ? U(he, { parent: $e.RestoreFocus, leaf: $e.All & ~$e.FocusLock }) : $e.None;
6731
- return c && (je |= $e.AutoFocus), Je || (je &= ~$e.InitialFocus), f && (je = $e.None), w.createElement(si, { type: "Dialog", enabled: S === 0, element: C, onUpdate: P((W, xe) => {
6729
+ }), Ba(k, f ? !1 : !(z || R !== 0 || ie), G), tn(C, J, R === 0);
6730
+ let [ne, Ke] = ma(), ee = ae(() => [{ dialogState: R, close: J, setTitleId: Y }, Z], [R, Z, J, Y]), B = ae(() => ({ open: R === 0 }), [R]), H = { ref: x, id: t, role: l, tabIndex: -1, "aria-modal": R === 0 ? !0 : void 0, "aria-labelledby": Z.titleId, "aria-describedby": ne }, Je = !ri(), je = X ? U(he, { parent: $e.RestoreFocus, leaf: $e.All & ~$e.FocusLock }) : $e.None;
6731
+ return c && (je |= $e.AutoFocus), Je || (je &= ~$e.InitialFocus), f && (je = $e.None), w.createElement(si, { type: "Dialog", enabled: R === 0, element: C, onUpdate: F((W, xe) => {
6732
6732
  xe === "Dialog" && U(W, { [Gr.Add]: () => m((Xe) => Xe + 1), [Gr.Remove]: () => m((Xe) => Xe - 1) });
6733
- }) }, w.createElement(Pt, { force: !0 }, w.createElement(Ft, null, w.createElement(wr.Provider, { value: ee }, w.createElement(Ft.Group, { target: C }, w.createElement(Pt, { force: !1 }, w.createElement(Ke, { slot: B, name: "Dialog.Description" }, w.createElement(O, null, w.createElement(di, { initialFocus: a, initialFocusFallback: C, containers: G, features: je }, w.createElement(ka, { value: J }, be({ ourProps: H, theirProps: u, slot: B, defaultTag: vi, features: xi, visible: S === 0, name: "Dialog" })))))))))), w.createElement(pa, null, w.createElement(ve, null)));
6733
+ }) }, w.createElement(Pt, { force: !0 }, w.createElement(Ft, null, w.createElement(yr.Provider, { value: ee }, w.createElement(Ft.Group, { target: C }, w.createElement(Pt, { force: !1 }, w.createElement(Ke, { slot: B, name: "Dialog.Description" }, w.createElement(O, null, w.createElement(di, { initialFocus: a, initialFocusFallback: C, containers: G, features: je }, w.createElement(ka, { value: J }, be({ ourProps: H, theirProps: u, slot: B, defaultTag: vi, features: xi, visible: R === 0, name: "Dialog" })))))))))), w.createElement(pa, null, w.createElement(ve, null)));
6734
6734
  }
6735
6735
  let ki = "div";
6736
6736
  function wi(e, r) {
6737
- let n = yr(), { id: t = `headlessui-dialog-panel-${n}`, ...s } = e, [{ dialogState: o }, a] = dt("Dialog.Panel"), l = ke(r, a.panelRef), c = ae(() => ({ open: o === 0 }), [o]), f = P((u) => {
6737
+ let n = jr(), { id: t = `headlessui-dialog-panel-${n}`, ...s } = e, [{ dialogState: o }, a] = dt("Dialog.Panel"), l = ke(r, a.panelRef), c = ae(() => ({ open: o === 0 }), [o]), f = F((u) => {
6738
6738
  u.stopPropagation();
6739
6739
  });
6740
6740
  return be({ ourProps: { ref: l, id: t, onClick: f }, theirProps: s, slot: c, defaultTag: ki, name: "Dialog.Panel" });
6741
6741
  }
6742
6742
  let yi = "h2";
6743
6743
  function ji(e, r) {
6744
- let n = yr(), { id: t = `headlessui-dialog-title-${n}`, ...s } = e, [{ dialogState: o, setTitleId: a }] = dt("Dialog.Title"), l = ke(r);
6744
+ let n = jr(), { id: t = `headlessui-dialog-title-${n}`, ...s } = e, [{ dialogState: o, setTitleId: a }] = dt("Dialog.Title"), l = ke(r);
6745
6745
  oe(() => (a(t), () => a(null)), [t, a]);
6746
6746
  let c = ae(() => ({ open: o === 0 }), [o]);
6747
6747
  return be({ ourProps: { ref: l, id: t }, theirProps: s, slot: c, defaultTag: yi, name: "Dialog.Title" });
6748
6748
  }
6749
6749
  let Li = ue(Ci), hn = ue(wi), Ei = ue(ji), $i = Object.assign(Li, { Panel: hn, Title: Ei, Description: xa });
6750
6750
  function Mi(e = 0) {
6751
- let [r, n] = ge(e), t = ur(), s = mr((c) => {
6751
+ let [r, n] = ge(e), t = fr(), s = gr((c) => {
6752
6752
  t.current && n((f) => f | c);
6753
- }, [r, t]), o = mr((c) => !!(r & c), [r]), a = mr((c) => {
6753
+ }, [r, t]), o = gr((c) => !!(r & c), [r]), a = gr((c) => {
6754
6754
  t.current && n((f) => f & ~c);
6755
- }, [n, t]), l = mr((c) => {
6755
+ }, [n, t]), l = gr((c) => {
6756
6756
  t.current && n((f) => f ^ c);
6757
6757
  }, [n]);
6758
6758
  return { flags: r, addFlag: s, hasFlag: o, removeFlag: a, toggleFlag: l };
@@ -6764,10 +6764,10 @@ function mn(e) {
6764
6764
  return r.called = !0, e(...n);
6765
6765
  };
6766
6766
  }
6767
- function Or(e, ...r) {
6767
+ function Wr(e, ...r) {
6768
6768
  e && r.length > 0 && e.classList.add(...r);
6769
6769
  }
6770
- function Wr(e, ...r) {
6770
+ function _r(e, ...r) {
6771
6771
  e && r.length > 0 && e.classList.remove(...r);
6772
6772
  }
6773
6773
  function Ni(e, r) {
@@ -6802,9 +6802,9 @@ function Ti(e, { direction: r, done: n, classes: t, inFlight: s }) {
6802
6802
  r === "enter" && (e.removeAttribute("hidden"), e.style.display = "");
6803
6803
  let l = U(r, { enter: () => t.enter, leave: () => t.leave }), c = U(r, { enter: () => t.enterTo, leave: () => t.leaveTo }), f = U(r, { enter: () => t.enterFrom, leave: () => t.leaveFrom });
6804
6804
  return Si(e, { prepare() {
6805
- Wr(e, ...t.base, ...t.enter, ...t.enterTo, ...t.enterFrom, ...t.leave, ...t.leaveFrom, ...t.leaveTo, ...t.entered), Or(e, ...t.base, ...l, ...f);
6805
+ _r(e, ...t.base, ...t.enter, ...t.enterTo, ...t.enterFrom, ...t.leave, ...t.leaveFrom, ...t.leaveTo, ...t.entered), Wr(e, ...t.base, ...l, ...f);
6806
6806
  }, inFlight: s }), s && (s.current = !0), o.nextFrame(() => {
6807
- o.add(Ni(e, () => (Wr(e, ...t.base, ...l), Or(e, ...t.base, ...t.entered, ...c), s && (s.current = !1), a()))), Wr(e, ...t.base, ...l, ...f), Or(e, ...t.base, ...l, ...c);
6807
+ o.add(Ni(e, () => (_r(e, ...t.base, ...l), Wr(e, ...t.base, ...t.entered, ...c), s && (s.current = !1), a()))), _r(e, ...t.base, ...l, ...f), Wr(e, ...t.base, ...l, ...c);
6808
6808
  }), o.dispose;
6809
6809
  }
6810
6810
  function Si(e, { inFlight: r, prepare: n }) {
@@ -6816,7 +6816,7 @@ function Si(e, { inFlight: r, prepare: n }) {
6816
6816
  e.style.transition = "none", n(), e.offsetHeight, e.style.transition = t;
6817
6817
  }
6818
6818
  function Ri({ container: e, direction: r, classes: n, onStart: t, onStop: s }) {
6819
- let o = ur(), a = nt(), l = R(!1);
6819
+ let o = fr(), a = nt(), l = A(!1);
6820
6820
  K(() => {
6821
6821
  if (r === "idle" || !o.current)
6822
6822
  return;
@@ -6834,28 +6834,28 @@ function gn(e) {
6834
6834
  var r;
6835
6835
  return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((r = e.as) != null ? r : vn) !== de || w.Children.count(e.children) === 1;
6836
6836
  }
6837
- let Er = ce(null);
6838
- Er.displayName = "TransitionContext";
6837
+ let $r = ce(null);
6838
+ $r.displayName = "TransitionContext";
6839
6839
  var Ai = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(Ai || {});
6840
6840
  function Pi() {
6841
- let e = re(Er);
6841
+ let e = re($r);
6842
6842
  if (e === null)
6843
6843
  throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
6844
6844
  return e;
6845
6845
  }
6846
6846
  function Fi() {
6847
- let e = re($r);
6847
+ let e = re(Mr);
6848
6848
  if (e === null)
6849
6849
  throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
6850
6850
  return e;
6851
6851
  }
6852
- let $r = ce(null);
6853
- $r.displayName = "NestingContext";
6854
- function Mr(e) {
6855
- return "children" in e ? Mr(e.children) : e.current.filter(({ el: r }) => r.current !== null).filter(({ state: r }) => r === "visible").length > 0;
6852
+ let Mr = ce(null);
6853
+ Mr.displayName = "NestingContext";
6854
+ function Nr(e) {
6855
+ return "children" in e ? Nr(e.children) : e.current.filter(({ el: r }) => r.current !== null).filter(({ state: r }) => r === "visible").length > 0;
6856
6856
  }
6857
6857
  function bn(e, r) {
6858
- let n = Ce(e), t = R([]), s = ur(), o = nt(), a = P((b, v = Oe.Hidden) => {
6858
+ let n = Ce(e), t = A([]), s = fr(), o = nt(), a = F((b, v = Oe.Hidden) => {
6859
6859
  let C = t.current.findIndex(({ el: x }) => x === b);
6860
6860
  C !== -1 && (U(v, { [Oe.Unmount]() {
6861
6861
  t.current.splice(C, 1);
@@ -6863,18 +6863,18 @@ function bn(e, r) {
6863
6863
  t.current[C].state = "hidden";
6864
6864
  } }), o.microTask(() => {
6865
6865
  var x;
6866
- !Mr(t) && s.current && ((x = n.current) == null || x.call(n));
6866
+ !Nr(t) && s.current && ((x = n.current) == null || x.call(n));
6867
6867
  }));
6868
- }), l = P((b) => {
6868
+ }), l = F((b) => {
6869
6869
  let v = t.current.find(({ el: C }) => C === b);
6870
6870
  return v ? v.state !== "visible" && (v.state = "visible") : t.current.push({ el: b, state: "visible" }), () => a(b, Oe.Unmount);
6871
- }), c = R([]), f = R(Promise.resolve()), u = R({ enter: [], leave: [], idle: [] }), p = P((b, v, C) => {
6871
+ }), c = A([]), f = A(Promise.resolve()), u = A({ enter: [], leave: [], idle: [] }), p = F((b, v, C) => {
6872
6872
  c.current.splice(0), r && (r.chains.current[v] = r.chains.current[v].filter(([x]) => x !== b)), r == null || r.chains.current[v].push([b, new Promise((x) => {
6873
6873
  c.current.push(x);
6874
6874
  })]), r == null || r.chains.current[v].push([b, new Promise((x) => {
6875
6875
  Promise.all(u.current[v].map(([k, j]) => j)).then(() => x());
6876
6876
  })]), v === "enter" ? f.current = f.current.then(() => r == null ? void 0 : r.wait.current).then(() => C(v)) : C(v);
6877
- }), m = P((b, v, C) => {
6877
+ }), m = F((b, v, C) => {
6878
6878
  Promise.all(u.current[v].splice(0).map(([x, k]) => k)).then(() => {
6879
6879
  var x;
6880
6880
  (x = c.current.shift()) == null || x();
@@ -6882,76 +6882,76 @@ function bn(e, r) {
6882
6882
  });
6883
6883
  return ae(() => ({ children: t, register: l, unregister: a, onStart: p, onStop: m, wait: f, chains: u }), [l, a, t, p, m, u, f]);
6884
6884
  }
6885
- let vn = de, xn = Cr.RenderStrategy;
6885
+ let vn = de, xn = kr.RenderStrategy;
6886
6886
  function Oi(e, r) {
6887
6887
  var n, t, s;
6888
- let { beforeEnter: o, afterEnter: a, beforeLeave: l, afterLeave: c, enter: f, enterFrom: u, enterTo: p, entered: m, leave: b, leaveFrom: v, leaveTo: C, ...x } = e, k = R(null), j = gn(e), fe = ke(...j ? [k, r] : r === null ? [] : [r]), S = (n = x.unmount) == null || n ? Oe.Unmount : Oe.Hidden, { show: Z, appear: we, initial: J } = Pi(), [Y, X] = ge(Z ? "visible" : "hidden"), te = Fi(), { register: ie, unregister: $ } = te;
6888
+ let { beforeEnter: o, afterEnter: a, beforeLeave: l, afterLeave: c, enter: f, enterFrom: u, enterTo: p, entered: m, leave: b, leaveFrom: v, leaveTo: C, ...x } = e, k = A(null), j = gn(e), fe = ke(...j ? [k, r] : r === null ? [] : [r]), R = (n = x.unmount) == null || n ? Oe.Unmount : Oe.Hidden, { show: Z, appear: we, initial: J } = Pi(), [Y, X] = ge(Z ? "visible" : "hidden"), te = Fi(), { register: ie, unregister: $ } = te;
6889
6889
  K(() => ie(k), [ie, k]), K(() => {
6890
- if (S === Oe.Hidden && k.current) {
6890
+ if (R === Oe.Hidden && k.current) {
6891
6891
  if (Z && Y !== "visible") {
6892
6892
  X("visible");
6893
6893
  return;
6894
6894
  }
6895
6895
  return U(Y, { hidden: () => $(k), visible: () => ie(k) });
6896
6896
  }
6897
- }, [Y, k, ie, $, Z, S]);
6898
- let O = Ce({ base: Pe(x.className), enter: Pe(f), enterFrom: Pe(u), enterTo: Pe(p), entered: Pe(m), leave: Pe(b), leaveFrom: Pe(v), leaveTo: Pe(C) }), V = Ce({ beforeEnter: o, afterEnter: a, beforeLeave: l, afterLeave: c }), G = cr();
6897
+ }, [Y, k, ie, $, Z, R]);
6898
+ let O = Ce({ base: Pe(x.className), enter: Pe(f), enterFrom: Pe(u), enterTo: Pe(p), entered: Pe(m), leave: Pe(b), leaveFrom: Pe(v), leaveTo: Pe(C) }), V = Ce({ beforeEnter: o, afterEnter: a, beforeLeave: l, afterLeave: c }), G = ur();
6899
6899
  K(() => {
6900
6900
  if (j && G && Y === "visible" && k.current === null)
6901
6901
  throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
6902
6902
  }, [k, Y, G, j]);
6903
- let pe = J && !we, ve = we && Z && J, he = ve ? "enter" : !G || pe ? "idle" : Z ? "enter" : "leave", z = Mi(0), ye = P((ee) => U(ee, { enter: () => {
6903
+ let pe = J && !we, ve = we && Z && J, he = ve ? "enter" : !G || pe ? "idle" : Z ? "enter" : "leave", z = Mi(0), ye = F((ee) => U(ee, { enter: () => {
6904
6904
  var B, H;
6905
6905
  z.addFlag(se.Opening), (H = (B = V.current).beforeEnter) == null || H.call(B);
6906
6906
  }, leave: () => {
6907
6907
  var B, H;
6908
6908
  z.addFlag(se.Closing), (H = (B = V.current).beforeLeave) == null || H.call(B);
6909
6909
  }, idle: () => {
6910
- } })), me = P((ee) => U(ee, { enter: () => {
6910
+ } })), me = F((ee) => U(ee, { enter: () => {
6911
6911
  var B, H;
6912
6912
  z.removeFlag(se.Opening), (H = (B = V.current).afterEnter) == null || H.call(B);
6913
6913
  }, leave: () => {
6914
6914
  var B, H;
6915
6915
  z.removeFlag(se.Closing), (H = (B = V.current).afterLeave) == null || H.call(B);
6916
6916
  }, idle: () => {
6917
- } })), Q = R(!1), Se = bn(() => {
6917
+ } })), Q = A(!1), Se = bn(() => {
6918
6918
  Q.current || (X("hidden"), $(k));
6919
6919
  }, te);
6920
6920
  Ri({ container: k, classes: O, direction: he, onStart: Ce((ee) => {
6921
6921
  Q.current = !0, Se.onStart(k, ee, ye);
6922
6922
  }), onStop: Ce((ee) => {
6923
- Q.current = !1, Se.onStop(k, ee, me), ee === "leave" && !Mr(Se) && (X("hidden"), $(k));
6923
+ Q.current = !1, Se.onStop(k, ee, me), ee === "leave" && !Nr(Se) && (X("hidden"), $(k));
6924
6924
  }) });
6925
6925
  let ne = x, Ke = { ref: fe };
6926
- return ve ? ne = { ...ne, className: ar(x.className, ...O.current.enter, ...O.current.enterFrom) } : Q.current ? (ne.className = ar(x.className, (t = k.current) == null ? void 0 : t.className), ne.className === "" && delete ne.className) : (ne.className = ar(x.className, (s = k.current) == null ? void 0 : s.className, ...U(he, { enter: [...O.current.enterTo, ...O.current.entered], leave: O.current.leaveTo, idle: [] })), ne.className === "" && delete ne.className), w.createElement($r.Provider, { value: Se }, w.createElement(Ha, { value: U(Y, { visible: se.Open, hidden: se.Closed }) | z.flags }, be({ ourProps: Ke, theirProps: ne, defaultTag: vn, features: xn, visible: Y === "visible", name: "Transition.Child" })));
6926
+ return ve ? ne = { ...ne, className: ar(x.className, ...O.current.enter, ...O.current.enterFrom) } : Q.current ? (ne.className = ar(x.className, (t = k.current) == null ? void 0 : t.className), ne.className === "" && delete ne.className) : (ne.className = ar(x.className, (s = k.current) == null ? void 0 : s.className, ...U(he, { enter: [...O.current.enterTo, ...O.current.entered], leave: O.current.leaveTo, idle: [] })), ne.className === "" && delete ne.className), w.createElement(Mr.Provider, { value: Se }, w.createElement(Ha, { value: U(Y, { visible: se.Open, hidden: se.Closed }) | z.flags }, be({ ourProps: Ke, theirProps: ne, defaultTag: vn, features: xn, visible: Y === "visible", name: "Transition.Child" })));
6927
6927
  }
6928
6928
  function Wi(e, r) {
6929
- let { show: n, appear: t = !1, unmount: s = !0, ...o } = e, a = R(null), l = gn(e), c = ke(...l ? [a, r] : r === null ? [] : [r]);
6930
- cr();
6929
+ let { show: n, appear: t = !1, unmount: s = !0, ...o } = e, a = A(null), l = gn(e), c = ke(...l ? [a, r] : r === null ? [] : [r]);
6930
+ ur();
6931
6931
  let f = it();
6932
6932
  if (n === void 0 && f !== null && (n = (f & se.Open) === se.Open), n === void 0)
6933
6933
  throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
6934
6934
  let [u, p] = ge(n ? "visible" : "hidden"), m = bn(() => {
6935
6935
  n || p("hidden");
6936
- }), [b, v] = ge(!0), C = R([n]);
6936
+ }), [b, v] = ge(!0), C = A([n]);
6937
6937
  K(() => {
6938
6938
  b !== !1 && C.current[C.current.length - 1] !== n && (C.current.push(n), v(!1));
6939
6939
  }, [C, n]);
6940
6940
  let x = ae(() => ({ show: n, appear: t, initial: b }), [n, t, b]);
6941
6941
  tn(a, () => p("hidden")), K(() => {
6942
- n ? p("visible") : !Mr(m) && a.current !== null && p("hidden");
6942
+ n ? p("visible") : !Nr(m) && a.current !== null && p("hidden");
6943
6943
  }, [n, m]);
6944
- let k = { unmount: s }, j = P(() => {
6945
- var S;
6946
- b && v(!1), (S = e.beforeEnter) == null || S.call(e);
6947
- }), fe = P(() => {
6948
- var S;
6949
- b && v(!1), (S = e.beforeLeave) == null || S.call(e);
6944
+ let k = { unmount: s }, j = F(() => {
6945
+ var R;
6946
+ b && v(!1), (R = e.beforeEnter) == null || R.call(e);
6947
+ }), fe = F(() => {
6948
+ var R;
6949
+ b && v(!1), (R = e.beforeLeave) == null || R.call(e);
6950
6950
  });
6951
- return w.createElement($r.Provider, { value: m }, w.createElement(Er.Provider, { value: x }, be({ ourProps: { ...k, as: de, children: w.createElement(Cn, { ref: c, ...k, ...o, beforeEnter: j, beforeLeave: fe }) }, theirProps: {}, defaultTag: de, features: xn, visible: u === "visible", name: "Transition" })));
6951
+ return w.createElement(Mr.Provider, { value: m }, w.createElement($r.Provider, { value: x }, be({ ourProps: { ...k, as: de, children: w.createElement(Cn, { ref: c, ...k, ...o, beforeEnter: j, beforeLeave: fe }) }, theirProps: {}, defaultTag: de, features: xn, visible: u === "visible", name: "Transition" })));
6952
6952
  }
6953
6953
  function _i(e, r) {
6954
- let n = re(Er) !== null, t = it() !== null;
6954
+ let n = re($r) !== null, t = it() !== null;
6955
6955
  return w.createElement(w.Fragment, null, !n && t ? w.createElement(Zr, { ref: r, ...e }) : w.createElement(Cn, { ref: r, ...e }));
6956
6956
  }
6957
6957
  let Zr = ue(Wi), Cn = ue(Oi), Yr = ue(_i), Ii = Object.assign(Zr, { Child: Yr, Root: Zr });
@@ -7054,7 +7054,7 @@ const Vi = ({
7054
7054
  ]
7055
7055
  }
7056
7056
  ) });
7057
- }, Fl = Vi, Di = F(
7057
+ }, _l = Vi, Di = S(
7058
7058
  [
7059
7059
  "preflight",
7060
7060
  "ds-rounded-xl",
@@ -7131,7 +7131,7 @@ const Vi = ({
7131
7131
  ]
7132
7132
  }
7133
7133
  );
7134
- }, Hi = Bi, zi = F(
7134
+ }, Hi = Bi, zi = S(
7135
7135
  [
7136
7136
  "preflight",
7137
7137
  "ds-transition",
@@ -7273,7 +7273,7 @@ const Vi = ({
7273
7273
  `panel-${c}`
7274
7274
  ))
7275
7275
  ] });
7276
- }, Ol = Zi, Yi = ({ children: e }) => e, Wl = Yi, qi = F(
7276
+ }, Il = Zi, Yi = ({ children: e }) => e, Vl = Yi, qi = S(
7277
7277
  [
7278
7278
  "preflight",
7279
7279
  "ds-form-label",
@@ -7304,7 +7304,7 @@ const Vi = ({
7304
7304
  }) => /* @__PURE__ */ i.jsxs("label", { id: e, htmlFor: t, className: Ki({ state: r, disabled: n }), children: [
7305
7305
  s,
7306
7306
  o && /* @__PURE__ */ i.jsx("span", { className: "ds-text-sm ds-text-neutrals-darker", children: ` (${o})` })
7307
- ] }), Xi = Ji, Qi = F(
7307
+ ] }), Xi = Ji, Qi = S(
7308
7308
  ["preflight", "group", "ds-flex", "ds-flex-col", "ds-container"],
7309
7309
  {
7310
7310
  variants: {
@@ -7325,7 +7325,7 @@ const Vi = ({
7325
7325
  }
7326
7326
  ]
7327
7327
  }
7328
- ), el = (e) => D(Qi(e)), rl = F(["ds-form-label", "!ds-font-sans", "ds-text-base"], {
7328
+ ), el = (e) => D(Qi(e)), rl = S(["ds-form-label", "!ds-font-sans", "ds-text-base"], {
7329
7329
  variants: {
7330
7330
  state: {
7331
7331
  default: ["ds-text-neutrals-black", "ds-mt-2"],
@@ -7399,7 +7399,7 @@ const Vi = ({
7399
7399
  ] }),
7400
7400
  p && /* @__PURE__ */ i.jsx("p", { className: tl({ state: r }), children: a })
7401
7401
  ] });
7402
- }, ct = nl, sl = F(
7402
+ }, ct = nl, sl = S(
7403
7403
  ["preflight", "ds-form-input", "ds-rounded", "ds-p-2", "!ds-border", "!ds-font-sans"],
7404
7404
  rt
7405
7405
  ), ol = (e) => D(sl(e)), al = ({
@@ -7464,7 +7464,7 @@ const Vi = ({
7464
7464
  }
7465
7465
  )
7466
7466
  }
7467
- ), _l = ll, dl = F(
7467
+ ), Dl = ll, dl = S(
7468
7468
  [
7469
7469
  "preflight",
7470
7470
  "ds-form-input",
@@ -7527,7 +7527,7 @@ const Vi = ({
7527
7527
  }
7528
7528
  )
7529
7529
  }
7530
- ), Il = pl, hl = F(
7530
+ ), Bl = pl, hl = S(
7531
7531
  [
7532
7532
  "preflight",
7533
7533
  "ds-form-select",
@@ -7597,14 +7597,14 @@ const Vi = ({
7597
7597
  }
7598
7598
  )
7599
7599
  }
7600
- ), Vl = xl, Cl = F("ds-overflow-hidden ds-bg-neutrals-light", {
7600
+ ), Hl = xl, Cl = S("ds-overflow-hidden ds-bg-neutrals-light", {
7601
7601
  variants: {
7602
7602
  size: {
7603
7603
  small: ["ds-h-2", "ds-rounded-sm"],
7604
7604
  large: ["ds-h-4", "ds-rounded"]
7605
7605
  }
7606
7606
  }
7607
- }), kl = F("", {
7607
+ }), kl = S("", {
7608
7608
  variants: {
7609
7609
  size: {
7610
7610
  small: ["ds-h-2", "ds-rounded-sm"],
@@ -7617,7 +7617,7 @@ const Vi = ({
7617
7617
  indeterminate: ["ds-bg-acuity-blue", "ds-animate-progress"]
7618
7618
  }
7619
7619
  }
7620
- }), wl = F(
7620
+ }), wl = S(
7621
7621
  "ds-w-[3rem] ds-justify-end ds-flex ds-items-center ds-text-neutrals-dark",
7622
7622
  {
7623
7623
  variants: {
@@ -7627,7 +7627,7 @@ const Vi = ({
7627
7627
  }
7628
7628
  }
7629
7629
  }
7630
- ), yl = F("ds-text-sm", {
7630
+ ), yl = S("ds-text-sm", {
7631
7631
  variants: {
7632
7632
  state: {
7633
7633
  error: "ds-text-danger-red",
@@ -7716,28 +7716,69 @@ const Vi = ({
7716
7716
  ),
7717
7717
  /* @__PURE__ */ i.jsx("p", { className: yl({ state: s }), children: n })
7718
7718
  ] });
7719
- }, Dl = jl;
7719
+ }, zl = jl, Ll = S(
7720
+ "ds-rounded-full ds-border-t-acuity-blue ds-border-x-acuity-blue ds-border-b-neutrals-transparent ds-border-solid ds-animate-spin",
7721
+ {
7722
+ variants: {
7723
+ size: {
7724
+ small: ["ds-w-4", "ds-h-4", "ds-border"],
7725
+ medium: ["ds-w-5", "ds-h-5", "ds-border-2"],
7726
+ large: ["ds-w-7", "ds-h-7", "ds-border-[3px]"],
7727
+ "extra-large": ["ds-w-[6.5rem]", "ds-h-[6.5rem]", "ds-border-[6px]"]
7728
+ }
7729
+ }
7730
+ }
7731
+ ), El = S(
7732
+ "preflight ds-inline-block ds-rounded focus-visible:ds-outline-none focus-visible:ds-ring-2 focus-visible:ds-ring-acuity-blue",
7733
+ {
7734
+ variants: {
7735
+ size: {
7736
+ small: "ds-p-1",
7737
+ medium: "ds-p-2",
7738
+ large: "ds-p-3",
7739
+ "extra-large": "ds-p-4"
7740
+ }
7741
+ }
7742
+ }
7743
+ ), $l = ({
7744
+ size: e = "medium",
7745
+ focusable: r = !0,
7746
+ label: n = "",
7747
+ ariaLive: t = "assertive",
7748
+ className: s = ""
7749
+ }) => /* @__PURE__ */ i.jsx(
7750
+ "div",
7751
+ {
7752
+ tabIndex: r ? 0 : void 0,
7753
+ "aria-label": n,
7754
+ "aria-live": t,
7755
+ className: r ? dr(El({ size: e }), s) : `preflight ds-rounded ${s}`,
7756
+ role: "status",
7757
+ children: /* @__PURE__ */ i.jsx("div", { className: dr(Ll({ size: e })) })
7758
+ }
7759
+ ), Ul = $l;
7720
7760
  export {
7721
- Ml as Alert,
7761
+ Sl as Alert,
7722
7762
  Hi as Badge,
7723
- Nl as Button,
7724
- Tl as Card,
7725
- Sl as Checkbox,
7726
- Vl as Dropdown,
7763
+ Rl as Button,
7764
+ Al as Card,
7765
+ Pl as Checkbox,
7766
+ Hl as Dropdown,
7727
7767
  vl as DropdownAtom,
7728
7768
  Jt as Heading,
7729
7769
  Te as Icon,
7730
7770
  et as IconButton,
7731
7771
  Xi as LabelAtom,
7732
- Al as Link,
7733
- Fl as Modal,
7734
- Dl as ProgressBar,
7735
- Rl as Radio,
7736
- Wl as Tab,
7737
- Ol as Tabs,
7738
- Il as TextInput,
7772
+ Ol as Link,
7773
+ _l as Modal,
7774
+ zl as ProgressBar,
7775
+ Fl as Radio,
7776
+ Ul as Spinner,
7777
+ Vl as Tab,
7778
+ Il as Tabs,
7779
+ Bl as TextInput,
7739
7780
  fl as TextInputAtom,
7740
- _l as Textarea,
7781
+ Dl as Textarea,
7741
7782
  il as TextareaAtom
7742
7783
  };
7743
7784
  //# sourceMappingURL=index.es.js.map