@takecasper/acuity-design-system 1.27.7 → 1.27.9

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 y, { useState as Z, useEffect as oe, useLayoutEffect as Un, useRef as P, createContext as fe, useContext as ae, forwardRef as Kr, Fragment as ue, isValidElement as Gn, cloneElement as Zn, createElement as Yn, useId as jr, useMemo as de, useSyncExternalStore as qn, useReducer as Kn, createRef as Jn, useCallback as gr } from "react";
3
+ import y, { useState as Z, useEffect as oe, useLayoutEffect as Un, useRef as P, createContext as fe, useContext as ae, forwardRef as cr, Fragment as ue, isValidElement as Gn, cloneElement as Zn, createElement as Yn, useId as Lr, useMemo as de, useSyncExternalStore as qn, useReducer as Kn, createRef as Jn, useCallback as br } from "react";
4
4
  import { createPortal as _t } from "react-dom";
5
- var Vr = { exports: {} }, er = {};
5
+ var Ir = { exports: {} }, er = {};
6
6
  /**
7
7
  * @license React
8
8
  * react-jsx-runtime.production.min.js
@@ -291,7 +291,7 @@ function Qn() {
291
291
  var h = d.prototype;
292
292
  return !!(h && h.isReactComponent);
293
293
  }
294
- function pr(d, h, b) {
294
+ function hr(d, h, b) {
295
295
  if (d == null)
296
296
  return "";
297
297
  if (typeof d == "function")
@@ -309,28 +309,28 @@ function Qn() {
309
309
  case c:
310
310
  return Xe(d.render);
311
311
  case p:
312
- return pr(d.type, h, b);
312
+ return hr(d.type, h, b);
313
313
  case m: {
314
314
  var L = d, T = L._payload, R = L._init;
315
315
  try {
316
- return pr(R(T), h, b);
316
+ return hr(R(T), h, b);
317
317
  } catch (N) {
318
318
  }
319
319
  }
320
320
  }
321
321
  return "";
322
322
  }
323
- var hr = Object.prototype.hasOwnProperty, pt = {}, ht = w.ReactDebugCurrentFrame;
324
- function mr(d) {
323
+ var mr = Object.prototype.hasOwnProperty, pt = {}, ht = w.ReactDebugCurrentFrame;
324
+ function gr(d) {
325
325
  if (d) {
326
- var h = d._owner, b = pr(d.type, d._source, h ? h.type : null);
326
+ var h = d._owner, b = hr(d.type, d._source, h ? h.type : null);
327
327
  ht.setExtraStackFrame(b);
328
328
  } else
329
329
  ht.setExtraStackFrame(null);
330
330
  }
331
331
  function Ln(d, h, b, L, T) {
332
332
  {
333
- var R = Function.call.bind(hr);
333
+ var R = Function.call.bind(mr);
334
334
  for (var N in d)
335
335
  if (R(d, N)) {
336
336
  var $ = void 0;
@@ -343,12 +343,12 @@ function Qn() {
343
343
  } catch (V) {
344
344
  $ = V;
345
345
  }
346
- $ && !($ instanceof Error) && (mr(T), 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).", L || "React class", b, N, typeof $), mr(null)), $ instanceof Error && !($.message in pt) && (pt[$.message] = !0, mr(T), j("Failed %s type: %s", b, $.message), mr(null));
346
+ $ && !($ instanceof Error) && (gr(T), 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).", L || "React class", b, N, typeof $), gr(null)), $ instanceof Error && !($.message in pt) && (pt[$.message] = !0, gr(T), j("Failed %s type: %s", b, $.message), gr(null));
347
347
  }
348
348
  }
349
349
  }
350
350
  var En = Array.isArray;
351
- function Tr(d) {
351
+ function Sr(d) {
352
352
  return En(d);
353
353
  }
354
354
  function $n(d) {
@@ -376,10 +376,10 @@ function Qn() {
376
376
  ref: !0,
377
377
  __self: !0,
378
378
  __source: !0
379
- }, bt, vt, Sr;
380
- Sr = {};
379
+ }, bt, vt, Rr;
380
+ Rr = {};
381
381
  function Tn(d) {
382
- if (hr.call(d, "ref")) {
382
+ if (mr.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 Qn() {
387
387
  return d.ref !== void 0;
388
388
  }
389
389
  function Sn(d) {
390
- if (hr.call(d, "key")) {
390
+ if (mr.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 Qn() {
397
397
  function Rn(d, h) {
398
398
  if (typeof d.ref == "string" && Qe.current && h && Qe.current.stateNode !== h) {
399
399
  var b = M(Qe.current.type);
400
- Sr[b] || (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', M(Qe.current.type), d.ref), Sr[b] = !0);
400
+ Rr[b] || (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', M(Qe.current.type), d.ref), Rr[b] = !0);
401
401
  }
402
402
  }
403
403
  function An(d, h) {
@@ -456,7 +456,7 @@ function Qn() {
456
456
  var R, N = {}, $ = null, ee = null;
457
457
  b !== void 0 && (gt(b), $ = "" + b), Sn(h) && (gt(h.key), $ = "" + h.key), Tn(h) && (ee = h.ref, Rn(h, T));
458
458
  for (R in h)
459
- hr.call(h, R) && !Nn.hasOwnProperty(R) && (N[R] = h[R]);
459
+ mr.call(h, R) && !Nn.hasOwnProperty(R) && (N[R] = h[R]);
460
460
  if (d && d.defaultProps) {
461
461
  var V = d.defaultProps;
462
462
  for (R in V)
@@ -469,23 +469,23 @@ function Qn() {
469
469
  return Fn(d, $, ee, T, L, Qe.current, N);
470
470
  }
471
471
  }
472
- var Rr = w.ReactCurrentOwner, xt = w.ReactDebugCurrentFrame;
472
+ var Ar = w.ReactCurrentOwner, xt = w.ReactDebugCurrentFrame;
473
473
  function Be(d) {
474
474
  if (d) {
475
- var h = d._owner, b = pr(d.type, d._source, h ? h.type : null);
475
+ var h = d._owner, b = hr(d.type, d._source, h ? h.type : null);
476
476
  xt.setExtraStackFrame(b);
477
477
  } else
478
478
  xt.setExtraStackFrame(null);
479
479
  }
480
- var Ar;
481
- Ar = !1;
482
- function Pr(d) {
480
+ var Pr;
481
+ Pr = !1;
482
+ function Fr(d) {
483
483
  return typeof d == "object" && d !== null && d.$$typeof === r;
484
484
  }
485
485
  function Ct() {
486
486
  {
487
- if (Rr.current) {
488
- var d = M(Rr.current.type);
487
+ if (Ar.current) {
488
+ var d = M(Ar.current.type);
489
489
  if (d)
490
490
  return `
491
491
 
@@ -528,25 +528,25 @@ Check the top-level render call using <` + b + ">.");
528
528
  return;
529
529
  wt[b] = !0;
530
530
  var L = "";
531
- d && d._owner && d._owner !== Rr.current && (L = " It was passed a child from " + M(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.', b, L), Be(null);
531
+ d && d._owner && d._owner !== Ar.current && (L = " It was passed a child from " + M(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.', b, L), Be(null);
532
532
  }
533
533
  }
534
534
  function yt(d, h) {
535
535
  {
536
536
  if (typeof d != "object")
537
537
  return;
538
- if (Tr(d))
538
+ if (Sr(d))
539
539
  for (var b = 0; b < d.length; b++) {
540
540
  var L = d[b];
541
- Pr(L) && kt(L, h);
541
+ Fr(L) && kt(L, h);
542
542
  }
543
- else if (Pr(d))
543
+ else if (Fr(d))
544
544
  d._store && (d._store.validated = !0);
545
545
  else if (d) {
546
546
  var T = x(d);
547
547
  if (typeof T == "function" && T !== d.entries)
548
548
  for (var R = T.call(d), N; !(N = R.next()).done; )
549
- Pr(N.value) && kt(N.value, h);
549
+ Fr(N.value) && kt(N.value, h);
550
550
  }
551
551
  }
552
552
  }
@@ -567,8 +567,8 @@ Check the top-level render call using <` + b + ">.");
567
567
  if (b) {
568
568
  var L = M(h);
569
569
  Ln(b, d.props, "prop", L, d);
570
- } else if (h.PropTypes !== void 0 && !Ar) {
571
- Ar = !0;
570
+ } else if (h.PropTypes !== void 0 && !Pr) {
571
+ Pr = !0;
572
572
  var T = M(h);
573
573
  j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", T || "Unknown");
574
574
  }
@@ -596,7 +596,7 @@ Check the top-level render call using <` + b + ">.");
596
596
  var ee = Wn(T);
597
597
  ee ? $ += ee : $ += Ct();
598
598
  var V;
599
- d === null ? V = "null" : Tr(d) ? V = "array" : d !== void 0 && d.$$typeof === r ? (V = "<" + (M(d.type) || "Unknown") + " />", $ = " Did you accidentally export a JSX literal instead of a component?") : V = 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", V, $);
599
+ d === null ? V = "null" : Sr(d) ? V = "array" : d !== void 0 && d.$$typeof === r ? (V = "<" + (M(d.type) || "Unknown") + " />", $ = " Did you accidentally export a JSX literal instead of a component?") : V = 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", V, $);
600
600
  }
601
601
  var I = On(d, h, b, T, R);
602
602
  if (I == null)
@@ -605,7 +605,7 @@ Check the top-level render call using <` + b + ">.");
605
605
  var ce = h.children;
606
606
  if (ce !== void 0)
607
607
  if (L)
608
- if (Tr(ce)) {
608
+ if (Sr(ce)) {
609
609
  for (var He = 0; He < ce.length; He++)
610
610
  yt(ce[He], d);
611
611
  Object.freeze && Object.freeze(ce);
@@ -627,8 +627,8 @@ Check the top-level render call using <` + b + ">.");
627
627
  rr.Fragment = t, rr.jsx = Hn, rr.jsxs = zn;
628
628
  }()), rr;
629
629
  }
630
- process.env.NODE_ENV === "production" ? Vr.exports = Xn() : Vr.exports = Qn();
631
- var i = Vr.exports;
630
+ process.env.NODE_ENV === "production" ? Ir.exports = Xn() : Ir.exports = Qn();
631
+ var i = Ir.exports;
632
632
  const es = ({
633
633
  width: e = "24",
634
634
  height: r = "24",
@@ -2398,10 +2398,10 @@ function Qs(e) {
2398
2398
  validators: []
2399
2399
  };
2400
2400
  return ro(Object.entries(e.classGroups), n).forEach(([o, a]) => {
2401
- Ir(a, t, o, r);
2401
+ Dr(a, t, o, r);
2402
2402
  }), t;
2403
2403
  }
2404
- function Ir(e, r, n, t) {
2404
+ function Dr(e, r, n, t) {
2405
2405
  e.forEach((s) => {
2406
2406
  if (typeof s == "string") {
2407
2407
  const o = s === "" ? r : St(r, s);
@@ -2410,7 +2410,7 @@ function Ir(e, r, n, t) {
2410
2410
  }
2411
2411
  if (typeof s == "function") {
2412
2412
  if (eo(s)) {
2413
- Ir(s(t), r, n, t);
2413
+ Dr(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, St(r, o), n, t);
2423
+ Dr(a, St(r, o), n, t);
2424
2424
  });
2425
2425
  });
2426
2426
  }
@@ -2604,7 +2604,7 @@ function Re(e) {
2604
2604
  function _e(e) {
2605
2605
  return !!e && !Number.isNaN(Number(e));
2606
2606
  }
2607
- function br(e) {
2607
+ function vr(e) {
2608
2608
  return Ge(e, "number", _e);
2609
2609
  }
2610
2610
  function tr(e) {
@@ -2653,7 +2653,7 @@ function $o(e) {
2653
2653
  return bo.test(e);
2654
2654
  }
2655
2655
  function Mo() {
2656
- const e = F("colors"), r = F("spacing"), n = F("blur"), t = F("brightness"), s = F("borderColor"), o = F("borderRadius"), a = F("borderSpacing"), l = F("borderWidth"), c = F("contrast"), f = F("grayscale"), u = F("hueRotate"), p = F("invert"), m = F("gap"), g = F("gradientColorStops"), v = F("gradientColorStopPositions"), C = F("inset"), x = F("margin"), w = F("opacity"), j = F("padding"), q = F("saturate"), S = F("scale"), z = F("sepia"), he = F("skew"), K = F("space"), U = F("translate"), J = () => ["auto", "contain", "none"], X = () => ["auto", "hidden", "clip", "visible", "scroll"], te = () => ["auto", E, r], k = () => [E, r], M = () => ["", Ee, Re], W = () => ["auto", _e, E], Q = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], me = () => ["solid", "dashed", "dotted", "double", "none"], xe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], ge = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], G = () => ["", "0", E], ye = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], be = () => [_e, br], ne = () => [_e, E];
2656
+ const e = F("colors"), r = F("spacing"), n = F("blur"), t = F("brightness"), s = F("borderColor"), o = F("borderRadius"), a = F("borderSpacing"), l = F("borderWidth"), c = F("contrast"), f = F("grayscale"), u = F("hueRotate"), p = F("invert"), m = F("gap"), g = F("gradientColorStops"), v = F("gradientColorStopPositions"), C = F("inset"), x = F("margin"), w = F("opacity"), j = F("padding"), q = F("saturate"), S = F("scale"), z = F("sepia"), he = F("skew"), K = F("space"), U = F("translate"), J = () => ["auto", "contain", "none"], X = () => ["auto", "hidden", "clip", "visible", "scroll"], te = () => ["auto", E, r], k = () => [E, r], M = () => ["", Ee, Re], W = () => ["auto", _e, E], Q = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], me = () => ["solid", "dashed", "dotted", "double", "none"], xe = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], ge = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], G = () => ["", "0", E], ye = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], be = () => [_e, vr], ne = () => [_e, E];
2657
2657
  return {
2658
2658
  cacheSize: 500,
2659
2659
  separator: ":",
@@ -3341,7 +3341,7 @@ function Mo() {
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", br]
3344
+ font: ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black", vr]
3345
3345
  }],
3346
3346
  /**
3347
3347
  * Font Family
@@ -3392,7 +3392,7 @@ function Mo() {
3392
3392
  * @see https://tailwindcss.com/docs/line-clamp
3393
3393
  */
3394
3394
  "line-clamp": [{
3395
- "line-clamp": ["none", _e, br]
3395
+ "line-clamp": ["none", _e, vr]
3396
3396
  }],
3397
3397
  /**
3398
3398
  * Line Height
@@ -4592,7 +4592,7 @@ function Mo() {
4592
4592
  * @see https://tailwindcss.com/docs/stroke-width
4593
4593
  */
4594
4594
  "stroke-w": [{
4595
- stroke: [Ee, Re, br]
4595
+ stroke: [Ee, Re, vr]
4596
4596
  }],
4597
4597
  /**
4598
4598
  * Stroke
@@ -5106,13 +5106,13 @@ const dr = (...e) => D(To(...e)), So = A(
5106
5106
  role: "status",
5107
5107
  children: /* @__PURE__ */ i.jsx("div", { className: dr(So({ size: e })) })
5108
5108
  }
5109
- ), Dr = Ao, Kt = (e, r, n) => {
5109
+ ), Br = Ao, Kt = (e, r, n) => {
5110
5110
  if (r) {
5111
5111
  e.preventDefault();
5112
5112
  return;
5113
5113
  }
5114
5114
  n(e);
5115
- }, Lr = (e, r, n) => {
5115
+ }, Er = (e, r, n) => {
5116
5116
  if (r) {
5117
5117
  e.preventDefault();
5118
5118
  return;
@@ -5198,7 +5198,7 @@ const dr = (...e) => D(To(...e)), So = A(
5198
5198
  return /* @__PURE__ */ i.jsxs(
5199
5199
  "button",
5200
5200
  {
5201
- onClick: (v) => Lr(v, g, s),
5201
+ onClick: (v) => Er(v, g, s),
5202
5202
  "aria-disabled": g,
5203
5203
  "aria-label": r,
5204
5204
  "aria-pressed": p,
@@ -5209,7 +5209,7 @@ const dr = (...e) => D(To(...e)), So = A(
5209
5209
  ),
5210
5210
  ...m,
5211
5211
  children: [
5212
- p && e === "default" ? /* @__PURE__ */ i.jsx(Dr, { size: "medium", focusable: !1, label: r, ariaLive: "off" }) : /* @__PURE__ */ i.jsx(
5212
+ p && e === "default" ? /* @__PURE__ */ i.jsx(Br, { size: "medium", focusable: !1, label: r, ariaLive: "off" }) : /* @__PURE__ */ i.jsx(
5213
5213
  Te,
5214
5214
  {
5215
5215
  size: e === "small" ? "small" : a,
@@ -5501,14 +5501,14 @@ const dr = (...e) => D(To(...e)), So = A(
5501
5501
  {
5502
5502
  "aria-disabled": m,
5503
5503
  "aria-pressed": u,
5504
- onClick: (g) => Lr(g, m, o),
5504
+ onClick: (g) => Er(g, m, o),
5505
5505
  className: Uo(e, m, s),
5506
5506
  "aria-label": n,
5507
5507
  "aria-live": u ? "assertive" : "off",
5508
5508
  ...p,
5509
5509
  children: /* @__PURE__ */ i.jsxs("div", { className: "ds-flex ds-flex-wrap ds-content-center ds-justify-center", children: [
5510
5510
  c && (u ? /* @__PURE__ */ i.jsx(
5511
- Dr,
5511
+ Br,
5512
5512
  {
5513
5513
  size: "small",
5514
5514
  className: "ds-mr-2 ds-self-center",
@@ -5528,7 +5528,7 @@ const dr = (...e) => D(To(...e)), So = A(
5528
5528
  )),
5529
5529
  /* @__PURE__ */ i.jsx("span", { children: r }),
5530
5530
  f && (u ? /* @__PURE__ */ i.jsx(
5531
- Dr,
5531
+ Br,
5532
5532
  {
5533
5533
  size: "small",
5534
5534
  className: "ds-ml-2 ds-self-center",
@@ -5685,7 +5685,7 @@ const dr = (...e) => D(To(...e)), So = A(
5685
5685
  className: `ds-form-checkbox ds-mt-1 ${Xt({ disabled: s })} ds-rounded`,
5686
5686
  checked: t,
5687
5687
  ref: (u) => u && (u.indeterminate = o),
5688
- onClick: (u) => Lr(u, s, l),
5688
+ onClick: (u) => Er(u, s, l),
5689
5689
  onChange: (u) => Kt(u, s, a),
5690
5690
  ...c
5691
5691
  }
@@ -5777,7 +5777,7 @@ const sa = A("preflight !ds-font-sans", {
5777
5777
  [qe]: "ds-mb-6"
5778
5778
  }
5779
5779
  }
5780
- }), vr = A("ds-text-neutrals-darker !ds-font-sans", {
5780
+ }), xr = A("ds-text-neutrals-darker !ds-font-sans", {
5781
5781
  variants: {
5782
5782
  size: {
5783
5783
  [Ye]: "ds-text-xl ds-font-semibold",
@@ -5825,10 +5825,10 @@ const sa = A("preflight !ds-font-sans", {
5825
5825
  ...c
5826
5826
  }) => {
5827
5827
  const f = t ? /* @__PURE__ */ i.jsx("p", { className: oa({ size: e }), children: t }) : null, u = s ? /* @__PURE__ */ i.jsx("p", { className: aa({ size: e }), children: s }) : null, p = o ? /* @__PURE__ */ i.jsx("hr", { className: ia({ size: e }) }) : null, m = a ? sa({ size: e }) : "preflight", g = {
5828
- div: /* @__PURE__ */ i.jsx("div", { className: vr({ size: e }), children: n }),
5829
- h3: /* @__PURE__ */ i.jsx("h3", { className: vr({ size: e }), children: n }),
5830
- h2: /* @__PURE__ */ i.jsx("h2", { className: vr({ size: e }), children: n }),
5831
- h1: /* @__PURE__ */ i.jsx("h1", { className: vr({ size: e }), children: n })
5828
+ div: /* @__PURE__ */ i.jsx("div", { className: xr({ size: e }), children: n }),
5829
+ h3: /* @__PURE__ */ i.jsx("h3", { className: xr({ size: e }), children: n }),
5830
+ h2: /* @__PURE__ */ i.jsx("h2", { className: xr({ size: e }), children: n }),
5831
+ h1: /* @__PURE__ */ i.jsx("h1", { className: xr({ size: e }), children: n })
5832
5832
  };
5833
5833
  return /* @__PURE__ */ i.jsxs("div", { className: D(m, r), ...c, children: [
5834
5834
  f,
@@ -5856,7 +5856,7 @@ const sa = A("preflight !ds-font-sans", {
5856
5856
  className: `ds-form-radio ${Xt({ disabled: t })}`,
5857
5857
  "aria-disabled": t,
5858
5858
  onChange: (l) => Kt(l, t, s),
5859
- onClick: (l) => Lr(l, t, o),
5859
+ onClick: (l) => Er(l, t, o),
5860
5860
  ...a
5861
5861
  }
5862
5862
  ),
@@ -5904,10 +5904,10 @@ const sa = A("preflight !ds-font-sans", {
5904
5904
  e,
5905
5905
  t && /* @__PURE__ */ i.jsx(Te, { altText: e, name: t, size: "small" })
5906
5906
  ] }), Il = ua;
5907
- var fa = Object.defineProperty, pa = (e, r, n) => r in e ? fa(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n, Fr = (e, r, n) => (pa(e, typeof r != "symbol" ? r + "" : r, n), n);
5907
+ var fa = Object.defineProperty, pa = (e, r, n) => r in e ? fa(e, r, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[r] = n, Or = (e, r, n) => (pa(e, typeof r != "symbol" ? r + "" : r, n), n);
5908
5908
  let ha = class {
5909
5909
  constructor() {
5910
- Fr(this, "current", this.detect()), Fr(this, "handoffState", "pending"), Fr(this, "currentId", 0);
5910
+ Or(this, "current", this.detect()), Or(this, "handoffState", "pending"), Or(this, "currentId", 0);
5911
5911
  }
5912
5912
  set(r) {
5913
5913
  this.current !== r && (this.handoffState = "pending", this.currentId = 0, this.current = r);
@@ -5937,7 +5937,7 @@ let ha = class {
5937
5937
  function st(e) {
5938
5938
  return Ie.isServer ? null : e instanceof Node ? e.ownerDocument : e != null && e.hasOwnProperty("current") && e.current instanceof Node ? e.current.ownerDocument : document;
5939
5939
  }
5940
- function Er(e) {
5940
+ function $r(e) {
5941
5941
  typeof queueMicrotask == "function" ? queueMicrotask(e) : Promise.resolve().then(e).catch((r) => setTimeout(() => {
5942
5942
  throw r;
5943
5943
  }));
@@ -5955,7 +5955,7 @@ function We() {
5955
5955
  return r.add(() => clearTimeout(t));
5956
5956
  }, microTask(...n) {
5957
5957
  let t = { current: !0 };
5958
- return Er(() => {
5958
+ return $r(() => {
5959
5959
  t.current && n[0]();
5960
5960
  }), r.add(() => {
5961
5961
  t.current = !1;
@@ -6012,30 +6012,30 @@ function Y(e, r, ...n) {
6012
6012
  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(", ")}.`);
6013
6013
  throw Error.captureStackTrace && Error.captureStackTrace(t, Y), t;
6014
6014
  }
6015
- var wr = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(wr || {}), Oe = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(Oe || {});
6015
+ 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 || {});
6016
6016
  function ve({ ourProps: e, theirProps: r, slot: n, defaultTag: t, features: s, visible: o = !0, name: a, mergeRefs: l }) {
6017
6017
  l = l != null ? l : ba;
6018
6018
  let c = rn(r, e);
6019
6019
  if (o)
6020
- return xr(c, n, t, a, l);
6020
+ return Cr(c, n, t, a, l);
6021
6021
  let f = s != null ? s : 0;
6022
6022
  if (f & 2) {
6023
6023
  let { static: u = !1, ...p } = c;
6024
6024
  if (u)
6025
- return xr(p, n, t, a, l);
6025
+ return Cr(p, n, t, a, l);
6026
6026
  }
6027
6027
  if (f & 1) {
6028
6028
  let { unmount: u = !0, ...p } = c;
6029
6029
  return Y(u ? 0 : 1, { 0() {
6030
6030
  return null;
6031
6031
  }, 1() {
6032
- return xr({ ...p, hidden: !0, style: { display: "none" } }, n, t, a, l);
6032
+ return Cr({ ...p, hidden: !0, style: { display: "none" } }, n, t, a, l);
6033
6033
  } });
6034
6034
  }
6035
- return xr(c, n, t, a, l);
6035
+ return Cr(c, n, t, a, l);
6036
6036
  }
6037
- function xr(e, r = {}, n, t, s) {
6038
- 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;
6037
+ function Cr(e, r = {}, n, t, s) {
6038
+ let { as: o = n, children: a, refName: l = "ref", ...c } = Wr(e, ["unmount", "static"]), f = e.ref !== void 0 ? { [l]: e.ref } : {}, u = typeof a == "function" ? a(r) : a;
6039
6039
  "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);
6040
6040
  let p = {};
6041
6041
  if (r) {
@@ -6056,12 +6056,12 @@ function xr(e, r = {}, n, t, s) {
6056
6056
  `)].join(`
6057
6057
  `));
6058
6058
  } else {
6059
- let m = u.props, g = m == null ? void 0 : m.className, v = typeof g == "function" ? (...w) => ar(g(...w), c.className) : ar(g, c.className), C = v ? { className: v } : {}, x = rn(u.props, Ue(Or(c, ["ref"])));
6059
+ let m = u.props, g = m == null ? void 0 : m.className, v = typeof g == "function" ? (...w) => ar(g(...w), c.className) : ar(g, c.className), C = v ? { className: v } : {}, x = rn(u.props, Ue(Wr(c, ["ref"])));
6060
6060
  for (let w in p)
6061
6061
  w in x && delete p[w];
6062
6062
  return Zn(u, Object.assign({}, x, p, f, { ref: s(u.ref, f.ref) }, C));
6063
6063
  }
6064
- return Yn(o, Object.assign({}, Or(c, ["ref"]), o !== ue && f, o !== ue && p), u);
6064
+ return Yn(o, Object.assign({}, Wr(c, ["ref"]), o !== ue && f, o !== ue && p), u);
6065
6065
  }
6066
6066
  function ba(...e) {
6067
6067
  return e.every((r) => r == null) ? void 0 : (r) => {
@@ -6097,7 +6097,7 @@ function rn(...e) {
6097
6097
  }
6098
6098
  function pe(e) {
6099
6099
  var r;
6100
- return Object.assign(Kr(e), { displayName: (r = e.displayName) != null ? r : e.name });
6100
+ return Object.assign(cr(e), { displayName: (r = e.displayName) != null ? r : e.name });
6101
6101
  }
6102
6102
  function Ue(e) {
6103
6103
  let r = Object.assign({}, e);
@@ -6105,20 +6105,20 @@ function Ue(e) {
6105
6105
  r[n] === void 0 && delete r[n];
6106
6106
  return r;
6107
6107
  }
6108
- function Or(e, r = []) {
6108
+ function Wr(e, r = []) {
6109
6109
  let n = Object.assign({}, e);
6110
6110
  for (let t of r)
6111
6111
  t in n && delete n[t];
6112
6112
  return n;
6113
6113
  }
6114
6114
  let va = "div";
6115
- var kr = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(kr || {});
6115
+ var yr = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(yr || {});
6116
6116
  function xa(e, r) {
6117
6117
  var n;
6118
6118
  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" } } };
6119
6119
  return ve({ ourProps: o, theirProps: s, slot: {}, defaultTag: va, name: "Hidden" });
6120
6120
  }
6121
- let Br = pe(xa), Ca = fe(null);
6121
+ let Hr = pe(xa), Ca = fe(null);
6122
6122
  function wa({ children: e }) {
6123
6123
  let r = ae(Ca);
6124
6124
  if (!r)
@@ -6163,7 +6163,7 @@ function ya() {
6163
6163
  }
6164
6164
  let ja = "p";
6165
6165
  function La(e, r) {
6166
- let n = jr(), t = ga(), { id: s = `headlessui-description-${n}`, ...o } = e, a = nn(), l = ke(r);
6166
+ let n = Lr(), t = ga(), { id: s = `headlessui-description-${n}`, ...o } = e, a = nn(), l = ke(r);
6167
6167
  re(() => a.register(s), [s, a.register]);
6168
6168
  let c = t || !1, f = de(() => ({ ...a.slot, disabled: c }), [a.slot, c]), u = { ref: l, ...a.props, id: s };
6169
6169
  return ve({ ourProps: u, theirProps: o, slot: f, defaultTag: ja, name: a.name || "Description" });
@@ -6175,19 +6175,19 @@ let Ma = fe(() => {
6175
6175
  function Na({ value: e, children: r }) {
6176
6176
  return y.createElement(Ma.Provider, { value: e }, r);
6177
6177
  }
6178
- let Hr = /* @__PURE__ */ new Map(), ir = /* @__PURE__ */ new Map();
6178
+ let zr = /* @__PURE__ */ new Map(), ir = /* @__PURE__ */ new Map();
6179
6179
  function Pt(e) {
6180
6180
  var r;
6181
6181
  let n = (r = ir.get(e)) != null ? r : 0;
6182
- return ir.set(e, n + 1), n !== 0 ? () => Ft(e) : (Hr.set(e, { "aria-hidden": e.getAttribute("aria-hidden"), inert: e.inert }), e.setAttribute("aria-hidden", "true"), e.inert = !0, () => Ft(e));
6182
+ return ir.set(e, n + 1), n !== 0 ? () => Ft(e) : (zr.set(e, { "aria-hidden": e.getAttribute("aria-hidden"), inert: e.inert }), e.setAttribute("aria-hidden", "true"), e.inert = !0, () => Ft(e));
6183
6183
  }
6184
6184
  function Ft(e) {
6185
6185
  var r;
6186
6186
  let n = (r = ir.get(e)) != null ? r : 1;
6187
6187
  if (n === 1 ? ir.delete(e) : ir.set(e, n - 1), n !== 1)
6188
6188
  return;
6189
- let t = Hr.get(e);
6190
- t && (t["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", t["aria-hidden"]), e.inert = t.inert, Hr.delete(e));
6189
+ let t = zr.get(e);
6190
+ t && (t["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", t["aria-hidden"]), e.inert = t.inert, zr.delete(e));
6191
6191
  }
6192
6192
  function Ta({ allowed: e, disallowed: r } = {}, n = !0) {
6193
6193
  re(() => {
@@ -6237,10 +6237,10 @@ function on(e, r, n = !0) {
6237
6237
  return () => o.dispose();
6238
6238
  }, [e, t, n]);
6239
6239
  }
6240
- let zr = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","), Sa = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
6241
- var Me = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(Me || {}), Ur = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(Ur || {}), Ra = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(Ra || {});
6240
+ let Ur = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","), Sa = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
6241
+ var Me = ((e) => (e[e.First = 1] = "First", e[e.Previous = 2] = "Previous", e[e.Next = 4] = "Next", e[e.Last = 8] = "Last", e[e.WrapAround = 16] = "WrapAround", e[e.NoScroll = 32] = "NoScroll", e[e.AutoFocus = 64] = "AutoFocus", e))(Me || {}), Gr = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(Gr || {}), Ra = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(Ra || {});
6242
6242
  function Aa(e = document.body) {
6243
- return e == null ? [] : Array.from(e.querySelectorAll(zr)).sort((r, n) => Math.sign((r.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
6243
+ return e == null ? [] : Array.from(e.querySelectorAll(Ur)).sort((r, n) => Math.sign((r.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
6244
6244
  }
6245
6245
  function Pa(e = document.body) {
6246
6246
  return e == null ? [] : Array.from(e.querySelectorAll(Sa)).sort((r, n) => Math.sign((r.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
@@ -6249,11 +6249,11 @@ var an = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(an |
6249
6249
  function Fa(e, r = 0) {
6250
6250
  var n;
6251
6251
  return e === ((n = st(e)) == null ? void 0 : n.body) ? !1 : Y(r, { 0() {
6252
- return e.matches(zr);
6252
+ return e.matches(Ur);
6253
6253
  }, 1() {
6254
6254
  let t = e;
6255
6255
  for (; t !== null; ) {
6256
- if (t.matches(zr))
6256
+ if (t.matches(Ur))
6257
6257
  return !0;
6258
6258
  t = t.parentElement;
6259
6259
  }
@@ -6328,7 +6328,7 @@ function Ia() {
6328
6328
  function Da() {
6329
6329
  return ln() || Ia();
6330
6330
  }
6331
- function Cr(e, r, n) {
6331
+ function wr(e, r, n) {
6332
6332
  let t = we(r);
6333
6333
  oe(() => {
6334
6334
  function s(o) {
@@ -6372,17 +6372,17 @@ function Ba(e, r, n = !0) {
6372
6372
  return !Fa(c, an.Loose) && c.tabIndex !== -1 && a.preventDefault(), r(a, c);
6373
6373
  }
6374
6374
  let o = P(null);
6375
- Cr("pointerdown", (a) => {
6375
+ wr("pointerdown", (a) => {
6376
6376
  var l, c;
6377
6377
  t.current && (o.current = ((c = (l = a.composedPath) == null ? void 0 : l.call(a)) == null ? void 0 : c[0]) || a.target);
6378
- }, !0), Cr("mousedown", (a) => {
6378
+ }, !0), wr("mousedown", (a) => {
6379
6379
  var l, c;
6380
6380
  t.current && (o.current = ((c = (l = a.composedPath) == null ? void 0 : l.call(a)) == null ? void 0 : c[0]) || a.target);
6381
- }, !0), Cr("click", (a) => {
6381
+ }, !0), wr("click", (a) => {
6382
6382
  Da() || o.current && (s(a, () => o.current), o.current = null);
6383
- }, !0), Cr("touchend", (a) => s(a, () => a.target instanceof HTMLElement ? a.target : null), !0), dn("blur", (a) => s(a, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
6383
+ }, !0), wr("touchend", (a) => s(a, () => a.target instanceof HTMLElement ? a.target : null), !0), dn("blur", (a) => s(a, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
6384
6384
  }
6385
- function cr(...e) {
6385
+ function ur(...e) {
6386
6386
  return de(() => st(...e), [...e]);
6387
6387
  }
6388
6388
  function cn(e, r, n, t) {
@@ -6555,7 +6555,7 @@ Xa(() => {
6555
6555
  function un(e) {
6556
6556
  let r = O(e), n = P(!1);
6557
6557
  oe(() => (n.current = !1, () => {
6558
- n.current = !0, Er(() => {
6558
+ n.current = !0, $r(() => {
6559
6559
  n.current && r();
6560
6560
  });
6561
6561
  }), [r]);
@@ -6565,7 +6565,7 @@ function Qa() {
6565
6565
  return "useSyncExternalStore" in or ? ((r) => r.useSyncExternalStore)(or)(() => () => {
6566
6566
  }, () => !1, () => !e) : !1;
6567
6567
  }
6568
- function ur() {
6568
+ function fr() {
6569
6569
  let e = Qa(), [r, n] = or.useState(Ie.isHandoffComplete);
6570
6570
  return r && Ie.isHandoffComplete === !1 && n(!1), or.useEffect(() => {
6571
6571
  r !== !0 && n(!0);
@@ -6579,7 +6579,7 @@ function Ot(e) {
6579
6579
  return y.createElement(fn.Provider, { value: e.force }, e.children);
6580
6580
  }
6581
6581
  function ri(e) {
6582
- let r = ei(), n = ae(hn), t = cr(e), [s, o] = Z(() => {
6582
+ let r = ei(), n = ae(hn), t = ur(e), [s, o] = Z(() => {
6583
6583
  var a;
6584
6584
  if (!r && n !== null)
6585
6585
  return (a = n.current) != null ? a : null;
@@ -6602,10 +6602,10 @@ function ri(e) {
6602
6602
  let pn = ue, ti = pe(function(e, r) {
6603
6603
  let n = e, t = P(null), s = ke(ka((u) => {
6604
6604
  t.current = u;
6605
- }), r), o = cr(t), a = ri(t), [l] = Z(() => {
6605
+ }), r), o = ur(t), a = ri(t), [l] = Z(() => {
6606
6606
  var u;
6607
6607
  return Ie.isServer ? null : (u = o == null ? void 0 : o.createElement("div")) != null ? u : null;
6608
- }), c = ae(Gr), f = ur();
6608
+ }), c = ae(Zr), f = fr();
6609
6609
  return re(() => {
6610
6610
  !a || !l || a.contains(l) || (l.setAttribute("data-headlessui-portal", ""), a.appendChild(l));
6611
6611
  }, [a, l]), re(() => {
@@ -6625,14 +6625,14 @@ function oi(e, r) {
6625
6625
  let { target: n, ...t } = e, s = { ref: ke(r) };
6626
6626
  return y.createElement(hn.Provider, { value: n }, ve({ ourProps: s, theirProps: t, defaultTag: si, name: "Popover.Group" }));
6627
6627
  }
6628
- let Gr = fe(null);
6628
+ let Zr = fe(null);
6629
6629
  function ai() {
6630
- let e = ae(Gr), r = P([]), n = O((o) => (r.current.push(o), e && e.register(o), () => t(o))), t = O((o) => {
6630
+ let e = ae(Zr), r = P([]), n = O((o) => (r.current.push(o), e && e.register(o), () => t(o))), t = O((o) => {
6631
6631
  let a = r.current.indexOf(o);
6632
6632
  a !== -1 && r.current.splice(a, 1), e && e.unregister(o);
6633
6633
  }), s = de(() => ({ register: n, unregister: t, portals: r }), [n, t, r]);
6634
6634
  return [r, de(() => function({ children: o }) {
6635
- return y.createElement(Gr.Provider, { value: s }, o);
6635
+ return y.createElement(Zr.Provider, { value: s }, o);
6636
6636
  }, [s])];
6637
6637
  }
6638
6638
  let ii = pe(ni), li = pe(oi), Wt = Object.assign(ii, { Group: li });
@@ -6650,7 +6650,7 @@ function di() {
6650
6650
  }
6651
6651
  function ci({ defaultContainers: e = [], portals: r, mainTreeNodeRef: n } = {}) {
6652
6652
  var t;
6653
- let s = P((t = n == null ? void 0 : n.current) != null ? t : null), o = cr(s), a = O(() => {
6653
+ let s = P((t = n == null ? void 0 : n.current) != null ? t : null), o = ur(s), a = O(() => {
6654
6654
  var l, c, f;
6655
6655
  let u = [];
6656
6656
  for (let p of e)
@@ -6663,13 +6663,13 @@ function ci({ defaultContainers: e = [], portals: r, mainTreeNodeRef: n } = {})
6663
6663
  return u;
6664
6664
  });
6665
6665
  return { resolveContainers: a, contains: O((l) => a().some((c) => c.contains(l))), mainTreeNodeRef: s, MainTreeNode: de(() => function() {
6666
- return n != null ? null : y.createElement(Br, { features: kr.Hidden, ref: s });
6666
+ return n != null ? null : y.createElement(Hr, { features: yr.Hidden, ref: s });
6667
6667
  }, [s, n]) };
6668
6668
  }
6669
6669
  let ct = fe(() => {
6670
6670
  });
6671
6671
  ct.displayName = "StackContext";
6672
- var Zr = ((e) => (e[e.Add = 0] = "Add", e[e.Remove = 1] = "Remove", e))(Zr || {});
6672
+ var Yr = ((e) => (e[e.Add = 0] = "Add", e[e.Remove = 1] = "Remove", e))(Yr || {});
6673
6673
  function ui() {
6674
6674
  return ae(ct);
6675
6675
  }
@@ -6684,7 +6684,7 @@ function fi({ children: e, onUpdate: r, type: n, element: t, enabled: s }) {
6684
6684
  };
6685
6685
  }, [a, n, t, s]), y.createElement(ct.Provider, { value: a }, e);
6686
6686
  }
6687
- function fr() {
6687
+ function pr() {
6688
6688
  let e = P(!1);
6689
6689
  return re(() => (e.current = !0, () => {
6690
6690
  e.current = !1;
@@ -6711,8 +6711,8 @@ let hi = "div";
6711
6711
  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 || {});
6712
6712
  function mi(e, r) {
6713
6713
  let n = P(null), t = ke(n, r), { initialFocus: s, initialFocusFallback: o, containers: a, features: l = 30, ...c } = e;
6714
- ur() || (l = 1);
6715
- let f = cr(n);
6714
+ fr() || (l = 1);
6715
+ let f = ur(n);
6716
6716
  xi({ ownerDocument: f }, !!(l & 16));
6717
6717
  let u = Ci({ ownerDocument: f, container: n, initialFocus: s, initialFocusFallback: o }, l);
6718
6718
  wi({ ownerDocument: f, container: n, containers: a, previousActiveElement: u }, !!(l & 8));
@@ -6737,13 +6737,13 @@ function mi(e, r) {
6737
6737
  let j = x.relatedTarget;
6738
6738
  j instanceof HTMLElement && j.dataset.headlessuiFocusGuard !== "true" && (gn(w, j) || (v.current ? lr(n.current, Y(p.current, { [sr.Forwards]: () => Me.Next, [sr.Backwards]: () => Me.Previous }) | Me.WrapAround, { relativeTo: x.target }) : x.target instanceof HTMLElement && Ne(x.target)));
6739
6739
  } };
6740
- return y.createElement(y.Fragment, null, !!(l & 4) && y.createElement(Br, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: kr.Focusable }), ve({ ourProps: C, theirProps: c, defaultTag: hi, name: "FocusTrap" }), !!(l & 4) && y.createElement(Br, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: kr.Focusable }));
6740
+ return y.createElement(y.Fragment, null, !!(l & 4) && y.createElement(Hr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: yr.Focusable }), ve({ ourProps: C, theirProps: c, defaultTag: hi, name: "FocusTrap" }), !!(l & 4) && y.createElement(Hr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: m, features: yr.Focusable }));
6741
6741
  }
6742
6742
  let gi = pe(mi), bi = Object.assign(gi, { features: $e });
6743
6743
  function vi(e = !0) {
6744
6744
  let r = P(Fe.slice());
6745
6745
  return it(([n], [t]) => {
6746
- t === !0 && n === !1 && Er(() => {
6746
+ t === !0 && n === !1 && $r(() => {
6747
6747
  r.current.splice(0);
6748
6748
  }), t === !1 && n === !0 && (r.current = Fe.slice());
6749
6749
  }, [e, Fe, r]), O(() => {
@@ -6760,14 +6760,14 @@ function xi({ ownerDocument: e }, r) {
6760
6760
  });
6761
6761
  }
6762
6762
  function Ci({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallback: t }, s) {
6763
- let o = !!(s & 2), a = P(null), l = fr();
6763
+ let o = !!(s & 2), a = P(null), l = pr();
6764
6764
  return it(() => {
6765
6765
  if (!o) {
6766
6766
  t != null && t.current && Ne(t.current);
6767
6767
  return;
6768
6768
  }
6769
6769
  let c = r.current;
6770
- c && Er(() => {
6770
+ c && $r(() => {
6771
6771
  if (!l.current)
6772
6772
  return;
6773
6773
  let f = e == null ? void 0 : e.activeElement;
@@ -6784,9 +6784,9 @@ function Ci({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallb
6784
6784
  Ne(n.current);
6785
6785
  else {
6786
6786
  if (s & 32) {
6787
- if (lr(c, Me.First | Me.AutoFocus) !== Ur.Error)
6787
+ if (lr(c, Me.First | Me.AutoFocus) !== Gr.Error)
6788
6788
  return;
6789
- } else if (lr(c, Me.First) !== Ur.Error)
6789
+ } else if (lr(c, Me.First) !== Gr.Error)
6790
6790
  return;
6791
6791
  if (t != null && t.current && (Ne(t.current), (e == null ? void 0 : e.activeElement) === t.current))
6792
6792
  return;
@@ -6797,7 +6797,7 @@ function Ci({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallb
6797
6797
  }, [t, o, s]), a;
6798
6798
  }
6799
6799
  function wi({ ownerDocument: e, container: r, containers: n, previousActiveElement: t }, s) {
6800
- let o = fr();
6800
+ let o = pr();
6801
6801
  cn(e == null ? void 0 : e.defaultView, "focus", (a) => {
6802
6802
  if (!s || !o.current)
6803
6803
  return;
@@ -6819,10 +6819,10 @@ function gn(e, r) {
6819
6819
  var ki = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(ki || {}), yi = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(yi || {});
6820
6820
  let ji = { 0(e, r) {
6821
6821
  return e.titleId === r.id ? e : { ...e, titleId: r.id };
6822
- } }, yr = fe(null);
6823
- yr.displayName = "DialogContext";
6822
+ } }, jr = fe(null);
6823
+ jr.displayName = "DialogContext";
6824
6824
  function ut(e) {
6825
- let r = ae(yr);
6825
+ let r = ae(jr);
6826
6826
  if (r === null) {
6827
6827
  let n = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
6828
6828
  throw Error.captureStackTrace && Error.captureStackTrace(n, ut), n;
@@ -6832,15 +6832,15 @@ function ut(e) {
6832
6832
  function Li(e, r) {
6833
6833
  return Y(r.type, ji, e, r);
6834
6834
  }
6835
- let Ei = "div", $i = wr.RenderStrategy | wr.Static;
6835
+ let Ei = "div", $i = kr.RenderStrategy | kr.Static;
6836
6836
  function Mi(e, r) {
6837
- 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] = Z(0), g = P(!1);
6837
+ let n = Lr(), { id: t = `headlessui-dialog-${n}`, open: s, onClose: o, initialFocus: a, role: l = "dialog", autoFocus: c = !0, __demoMode: f = !1, ...u } = e, [p, m] = Z(0), g = P(!1);
6838
6838
  l = function() {
6839
6839
  return l === "dialog" || l === "alertdialog" ? l : (g.current || (g.current = !0, console.warn(`Invalid role [${l}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
6840
6840
  }();
6841
6841
  let v = dt();
6842
6842
  s === void 0 && v !== null && (s = (v & le.Open) === le.Open);
6843
- let C = P(null), x = ke(C, r), w = cr(C), j = e.hasOwnProperty("open") || v !== null, q = e.hasOwnProperty("onClose");
6843
+ let C = P(null), x = ke(C, r), w = ur(C), j = e.hasOwnProperty("open") || v !== null, q = e.hasOwnProperty("onClose");
6844
6844
  if (!j && !q)
6845
6845
  throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
6846
6846
  if (!j)
@@ -6851,7 +6851,7 @@ function Mi(e, r) {
6851
6851
  throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${s}`);
6852
6852
  if (typeof o != "function")
6853
6853
  throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${o}`);
6854
- let S = s ? 0 : 1, [z, he] = Kn(Li, { titleId: null, descriptionId: null, panelRef: Jn() }), K = O(() => o(!1)), U = O((_) => he({ type: 0, id: _ })), J = ur() ? S === 0 : !1, X = p > 1, te = ae(yr) !== null, [k, M] = ai(), W = { get current() {
6854
+ let S = s ? 0 : 1, [z, he] = Kn(Li, { titleId: null, descriptionId: null, panelRef: Jn() }), K = O(() => o(!1)), U = O((_) => he({ type: 0, id: _ })), J = fr() ? S === 0 : !1, X = p > 1, te = ae(jr) !== null, [k, M] = ai(), W = { get current() {
6855
6855
  var _;
6856
6856
  return (_ = z.panelRef.current) != null ? _ : C.current;
6857
6857
  } }, { resolveContainers: Q, mainTreeNodeRef: me, MainTreeNode: xe } = ci({ portals: k, defaultContainers: [W] }), ge = X ? "parent" : "leaf", G = v !== null ? (v & le.Closing) === le.Closing : !1, ye = X || G ? !1 : J;
@@ -6870,30 +6870,30 @@ function Mi(e, r) {
6870
6870
  }), Ka(w, f ? !1 : !(G || S !== 0 || te), Q), on(C, K, S === 0);
6871
6871
  let [ie, Ke] = ya(), se = de(() => [{ dialogState: S, close: K, setTitleId: U }, z], [S, z, K, U]), B = de(() => ({ 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": ie }, Je = !di(), je = J ? Y(ge, { parent: $e.RestoreFocus, leaf: $e.All & ~$e.FocusLock }) : $e.None;
6872
6872
  return c && (je |= $e.AutoFocus), Je || (je &= ~$e.InitialFocus), f && (je = $e.None), y.createElement(fi, { type: "Dialog", enabled: S === 0, element: C, onUpdate: O((_, Ce) => {
6873
- Ce === "Dialog" && Y(_, { [Zr.Add]: () => m((Xe) => Xe + 1), [Zr.Remove]: () => m((Xe) => Xe - 1) });
6874
- }) }, y.createElement(Ot, { force: !0 }, y.createElement(Wt, null, y.createElement(yr.Provider, { value: se }, y.createElement(Wt.Group, { target: C }, y.createElement(Ot, { force: !1 }, y.createElement(Ke, { slot: B, name: "Dialog.Description" }, y.createElement(M, null, y.createElement(bi, { initialFocus: a, initialFocusFallback: C, containers: Q, features: je }, y.createElement(Na, { value: K }, ve({ ourProps: H, theirProps: u, slot: B, defaultTag: Ei, features: $i, visible: S === 0, name: "Dialog" })))))))))), y.createElement(wa, null, y.createElement(xe, null)));
6873
+ Ce === "Dialog" && Y(_, { [Yr.Add]: () => m((Xe) => Xe + 1), [Yr.Remove]: () => m((Xe) => Xe - 1) });
6874
+ }) }, y.createElement(Ot, { force: !0 }, y.createElement(Wt, null, y.createElement(jr.Provider, { value: se }, y.createElement(Wt.Group, { target: C }, y.createElement(Ot, { force: !1 }, y.createElement(Ke, { slot: B, name: "Dialog.Description" }, y.createElement(M, null, y.createElement(bi, { initialFocus: a, initialFocusFallback: C, containers: Q, features: je }, y.createElement(Na, { value: K }, ve({ ourProps: H, theirProps: u, slot: B, defaultTag: Ei, features: $i, visible: S === 0, name: "Dialog" })))))))))), y.createElement(wa, null, y.createElement(xe, null)));
6875
6875
  }
6876
6876
  let Ni = "div";
6877
6877
  function Ti(e, r) {
6878
- let n = jr(), { id: t = `headlessui-dialog-panel-${n}`, ...s } = e, [{ dialogState: o }, a] = ut("Dialog.Panel"), l = ke(r, a.panelRef), c = de(() => ({ open: o === 0 }), [o]), f = O((u) => {
6878
+ let n = Lr(), { id: t = `headlessui-dialog-panel-${n}`, ...s } = e, [{ dialogState: o }, a] = ut("Dialog.Panel"), l = ke(r, a.panelRef), c = de(() => ({ open: o === 0 }), [o]), f = O((u) => {
6879
6879
  u.stopPropagation();
6880
6880
  });
6881
6881
  return ve({ ourProps: { ref: l, id: t, onClick: f }, theirProps: s, slot: c, defaultTag: Ni, name: "Dialog.Panel" });
6882
6882
  }
6883
6883
  let Si = "h2";
6884
6884
  function Ri(e, r) {
6885
- let n = jr(), { id: t = `headlessui-dialog-title-${n}`, ...s } = e, [{ dialogState: o, setTitleId: a }] = ut("Dialog.Title"), l = ke(r);
6885
+ let n = Lr(), { id: t = `headlessui-dialog-title-${n}`, ...s } = e, [{ dialogState: o, setTitleId: a }] = ut("Dialog.Title"), l = ke(r);
6886
6886
  oe(() => (a(t), () => a(null)), [t, a]);
6887
6887
  let c = de(() => ({ open: o === 0 }), [o]);
6888
6888
  return ve({ ourProps: { ref: l, id: t }, theirProps: s, slot: c, defaultTag: Si, name: "Dialog.Title" });
6889
6889
  }
6890
6890
  let Ai = pe(Mi), bn = pe(Ti), Pi = pe(Ri), Fi = Object.assign(Ai, { Panel: bn, Title: Pi, Description: $a });
6891
6891
  function Oi(e = 0) {
6892
- let [r, n] = Z(e), t = fr(), s = gr((c) => {
6892
+ let [r, n] = Z(e), t = pr(), s = br((c) => {
6893
6893
  t.current && n((f) => f | c);
6894
- }, [r, t]), o = gr((c) => !!(r & c), [r]), a = gr((c) => {
6894
+ }, [r, t]), o = br((c) => !!(r & c), [r]), a = br((c) => {
6895
6895
  t.current && n((f) => f & ~c);
6896
- }, [n, t]), l = gr((c) => {
6896
+ }, [n, t]), l = br((c) => {
6897
6897
  t.current && n((f) => f ^ c);
6898
6898
  }, [n]);
6899
6899
  return { flags: r, addFlag: s, hasFlag: o, removeFlag: a, toggleFlag: l };
@@ -6905,10 +6905,10 @@ function vn(e) {
6905
6905
  return r.called = !0, e(...n);
6906
6906
  };
6907
6907
  }
6908
- function Wr(e, ...r) {
6908
+ function _r(e, ...r) {
6909
6909
  e && r.length > 0 && e.classList.add(...r);
6910
6910
  }
6911
- function _r(e, ...r) {
6911
+ function Vr(e, ...r) {
6912
6912
  e && r.length > 0 && e.classList.remove(...r);
6913
6913
  }
6914
6914
  function Wi(e, r) {
@@ -6943,9 +6943,9 @@ function _i(e, { direction: r, done: n, classes: t, inFlight: s }) {
6943
6943
  r === "enter" && (e.removeAttribute("hidden"), e.style.display = "");
6944
6944
  let l = Y(r, { enter: () => t.enter, leave: () => t.leave }), c = Y(r, { enter: () => t.enterTo, leave: () => t.leaveTo }), f = Y(r, { enter: () => t.enterFrom, leave: () => t.leaveFrom });
6945
6945
  return Vi(e, { prepare() {
6946
- _r(e, ...t.base, ...t.enter, ...t.enterTo, ...t.enterFrom, ...t.leave, ...t.leaveFrom, ...t.leaveTo, ...t.entered), Wr(e, ...t.base, ...l, ...f);
6946
+ Vr(e, ...t.base, ...t.enter, ...t.enterTo, ...t.enterFrom, ...t.leave, ...t.leaveFrom, ...t.leaveTo, ...t.entered), _r(e, ...t.base, ...l, ...f);
6947
6947
  }, inFlight: s }), s && (s.current = !0), o.nextFrame(() => {
6948
- o.add(Wi(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);
6948
+ o.add(Wi(e, () => (Vr(e, ...t.base, ...l), _r(e, ...t.base, ...t.entered, ...c), s && (s.current = !1), a()))), Vr(e, ...t.base, ...l, ...f), _r(e, ...t.base, ...l, ...c);
6949
6949
  }), o.dispose;
6950
6950
  }
6951
6951
  function Vi(e, { inFlight: r, prepare: n }) {
@@ -6957,7 +6957,7 @@ function Vi(e, { inFlight: r, prepare: n }) {
6957
6957
  e.style.transition = "none", n(), e.offsetHeight, e.style.transition = t;
6958
6958
  }
6959
6959
  function Ii({ container: e, direction: r, classes: n, onStart: t, onStop: s }) {
6960
- let o = fr(), a = ot(), l = P(!1);
6960
+ let o = pr(), a = ot(), l = P(!1);
6961
6961
  re(() => {
6962
6962
  if (r === "idle" || !o.current)
6963
6963
  return;
@@ -6975,28 +6975,28 @@ function xn(e) {
6975
6975
  var r;
6976
6976
  return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || ((r = e.as) != null ? r : wn) !== ue || y.Children.count(e.children) === 1;
6977
6977
  }
6978
- let $r = fe(null);
6979
- $r.displayName = "TransitionContext";
6978
+ let Mr = fe(null);
6979
+ Mr.displayName = "TransitionContext";
6980
6980
  var Di = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(Di || {});
6981
6981
  function Bi() {
6982
- let e = ae($r);
6982
+ let e = ae(Mr);
6983
6983
  if (e === null)
6984
6984
  throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
6985
6985
  return e;
6986
6986
  }
6987
6987
  function Hi() {
6988
- let e = ae(Mr);
6988
+ let e = ae(Nr);
6989
6989
  if (e === null)
6990
6990
  throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
6991
6991
  return e;
6992
6992
  }
6993
- let Mr = fe(null);
6994
- Mr.displayName = "NestingContext";
6995
- function Nr(e) {
6996
- return "children" in e ? Nr(e.children) : e.current.filter(({ el: r }) => r.current !== null).filter(({ state: r }) => r === "visible").length > 0;
6993
+ let Nr = fe(null);
6994
+ Nr.displayName = "NestingContext";
6995
+ function Tr(e) {
6996
+ return "children" in e ? Tr(e.children) : e.current.filter(({ el: r }) => r.current !== null).filter(({ state: r }) => r === "visible").length > 0;
6997
6997
  }
6998
6998
  function Cn(e, r) {
6999
- let n = we(e), t = P([]), s = fr(), o = ot(), a = O((g, v = Oe.Hidden) => {
6999
+ let n = we(e), t = P([]), s = pr(), o = ot(), a = O((g, v = Oe.Hidden) => {
7000
7000
  let C = t.current.findIndex(({ el: x }) => x === g);
7001
7001
  C !== -1 && (Y(v, { [Oe.Unmount]() {
7002
7002
  t.current.splice(C, 1);
@@ -7004,7 +7004,7 @@ function Cn(e, r) {
7004
7004
  t.current[C].state = "hidden";
7005
7005
  } }), o.microTask(() => {
7006
7006
  var x;
7007
- !Nr(t) && s.current && ((x = n.current) == null || x.call(n));
7007
+ !Tr(t) && s.current && ((x = n.current) == null || x.call(n));
7008
7008
  }));
7009
7009
  }), l = O((g) => {
7010
7010
  let v = t.current.find(({ el: C }) => C === g);
@@ -7023,7 +7023,7 @@ function Cn(e, r) {
7023
7023
  });
7024
7024
  return de(() => ({ children: t, register: l, unregister: a, onStart: p, onStop: m, wait: f, chains: u }), [l, a, t, p, m, u, f]);
7025
7025
  }
7026
- let wn = ue, kn = wr.RenderStrategy;
7026
+ let wn = ue, kn = kr.RenderStrategy;
7027
7027
  function zi(e, r) {
7028
7028
  var n, t, s;
7029
7029
  let { beforeEnter: o, afterEnter: a, beforeLeave: l, afterLeave: c, enter: f, enterFrom: u, enterTo: p, entered: m, leave: g, leaveFrom: v, leaveTo: C, ...x } = e, w = P(null), j = xn(e), q = ke(...j ? [w, r] : r === null ? [] : [r]), S = (n = x.unmount) == null || n ? Oe.Unmount : Oe.Hidden, { show: z, appear: he, initial: K } = Bi(), [U, J] = Z(z ? "visible" : "hidden"), X = Hi(), { register: te, unregister: k } = X;
@@ -7036,7 +7036,7 @@ function zi(e, r) {
7036
7036
  return Y(U, { hidden: () => k(w), visible: () => te(w) });
7037
7037
  }
7038
7038
  }, [U, w, te, k, z, S]);
7039
- let M = we({ base: Pe(x.className), enter: Pe(f), enterFrom: Pe(u), enterTo: Pe(p), entered: Pe(m), leave: Pe(g), leaveFrom: Pe(v), leaveTo: Pe(C) }), W = we({ beforeEnter: o, afterEnter: a, beforeLeave: l, afterLeave: c }), Q = ur();
7039
+ let M = we({ base: Pe(x.className), enter: Pe(f), enterFrom: Pe(u), enterTo: Pe(p), entered: Pe(m), leave: Pe(g), leaveFrom: Pe(v), leaveTo: Pe(C) }), W = we({ beforeEnter: o, afterEnter: a, beforeLeave: l, afterLeave: c }), Q = fr();
7040
7040
  re(() => {
7041
7041
  if (j && Q && U === "visible" && w.current === null)
7042
7042
  throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
@@ -7061,14 +7061,14 @@ function zi(e, r) {
7061
7061
  Ii({ container: w, classes: M, direction: ge, onStart: we((se) => {
7062
7062
  ne.current = !0, Se.onStart(w, se, ye);
7063
7063
  }), onStop: we((se) => {
7064
- ne.current = !1, Se.onStop(w, se, be), se === "leave" && !Nr(Se) && (J("hidden"), k(w));
7064
+ ne.current = !1, Se.onStop(w, se, be), se === "leave" && !Tr(Se) && (J("hidden"), k(w));
7065
7065
  }) });
7066
7066
  let ie = x, Ke = { ref: q };
7067
- return xe ? ie = { ...ie, className: ar(x.className, ...M.current.enter, ...M.current.enterFrom) } : ne.current ? (ie.className = ar(x.className, (t = w.current) == null ? void 0 : t.className), ie.className === "" && delete ie.className) : (ie.className = ar(x.className, (s = w.current) == null ? void 0 : s.className, ...Y(ge, { enter: [...M.current.enterTo, ...M.current.entered], leave: M.current.leaveTo, idle: [] })), ie.className === "" && delete ie.className), y.createElement(Mr.Provider, { value: Se }, y.createElement(Ja, { value: Y(U, { visible: le.Open, hidden: le.Closed }) | G.flags }, ve({ ourProps: Ke, theirProps: ie, defaultTag: wn, features: kn, visible: U === "visible", name: "Transition.Child" })));
7067
+ return xe ? ie = { ...ie, className: ar(x.className, ...M.current.enter, ...M.current.enterFrom) } : ne.current ? (ie.className = ar(x.className, (t = w.current) == null ? void 0 : t.className), ie.className === "" && delete ie.className) : (ie.className = ar(x.className, (s = w.current) == null ? void 0 : s.className, ...Y(ge, { enter: [...M.current.enterTo, ...M.current.entered], leave: M.current.leaveTo, idle: [] })), ie.className === "" && delete ie.className), y.createElement(Nr.Provider, { value: Se }, y.createElement(Ja, { value: Y(U, { visible: le.Open, hidden: le.Closed }) | G.flags }, ve({ ourProps: Ke, theirProps: ie, defaultTag: wn, features: kn, visible: U === "visible", name: "Transition.Child" })));
7068
7068
  }
7069
7069
  function Ui(e, r) {
7070
7070
  let { show: n, appear: t = !1, unmount: s = !0, ...o } = e, a = P(null), l = xn(e), c = ke(...l ? [a, r] : r === null ? [] : [r]);
7071
- ur();
7071
+ fr();
7072
7072
  let f = dt();
7073
7073
  if (n === void 0 && f !== null && (n = (f & le.Open) === le.Open), n === void 0)
7074
7074
  throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
@@ -7080,7 +7080,7 @@ function Ui(e, r) {
7080
7080
  }, [C, n]);
7081
7081
  let x = de(() => ({ show: n, appear: t, initial: g }), [n, t, g]);
7082
7082
  on(a, () => p("hidden")), re(() => {
7083
- n ? p("visible") : !Nr(m) && a.current !== null && p("hidden");
7083
+ n ? p("visible") : !Tr(m) && a.current !== null && p("hidden");
7084
7084
  }, [n, m]);
7085
7085
  let w = { unmount: s }, j = O(() => {
7086
7086
  var S;
@@ -7089,13 +7089,13 @@ function Ui(e, r) {
7089
7089
  var S;
7090
7090
  g && v(!1), (S = e.beforeLeave) == null || S.call(e);
7091
7091
  });
7092
- return y.createElement(Mr.Provider, { value: m }, y.createElement($r.Provider, { value: x }, ve({ ourProps: { ...w, as: ue, children: y.createElement(yn, { ref: c, ...w, ...o, beforeEnter: j, beforeLeave: q }) }, theirProps: {}, defaultTag: ue, features: kn, visible: u === "visible", name: "Transition" })));
7092
+ return y.createElement(Nr.Provider, { value: m }, y.createElement(Mr.Provider, { value: x }, ve({ ourProps: { ...w, as: ue, children: y.createElement(yn, { ref: c, ...w, ...o, beforeEnter: j, beforeLeave: q }) }, theirProps: {}, defaultTag: ue, features: kn, visible: u === "visible", name: "Transition" })));
7093
7093
  }
7094
7094
  function Gi(e, r) {
7095
- let n = ae($r) !== null, t = dt() !== null;
7096
- return y.createElement(y.Fragment, null, !n && t ? y.createElement(Yr, { ref: r, ...e }) : y.createElement(yn, { ref: r, ...e }));
7095
+ let n = ae(Mr) !== null, t = dt() !== null;
7096
+ return y.createElement(y.Fragment, null, !n && t ? y.createElement(qr, { ref: r, ...e }) : y.createElement(yn, { ref: r, ...e }));
7097
7097
  }
7098
- let Yr = pe(Ui), yn = pe(zi), qr = pe(Gi), Zi = Object.assign(Yr, { Child: qr, Root: Yr });
7098
+ let qr = pe(Ui), yn = pe(zi), Kr = pe(Gi), Zi = Object.assign(qr, { Child: Kr, Root: qr });
7099
7099
  const Yi = ({
7100
7100
  open: e = !1,
7101
7101
  onClose: r,
@@ -7120,7 +7120,7 @@ const Yi = ({
7120
7120
  "aria-labelledby": "modal-title",
7121
7121
  children: [
7122
7122
  t !== "none" && /* @__PURE__ */ i.jsx(
7123
- qr,
7123
+ Kr,
7124
7124
  {
7125
7125
  as: ue,
7126
7126
  enter: "ease-out duration-300",
@@ -7139,7 +7139,7 @@ const Yi = ({
7139
7139
  }
7140
7140
  ),
7141
7141
  /* @__PURE__ */ i.jsx("div", { className: "ds-fixed ds-inset-0 ds-z-20 ds-w-screen ds-overflow-y-auto", children: /* @__PURE__ */ i.jsx("div", { className: "ds-flex ds-min-h-full ds-items-center ds-justify-center ds-p-4", children: /* @__PURE__ */ i.jsx(
7142
- qr,
7142
+ Kr,
7143
7143
  {
7144
7144
  as: ue,
7145
7145
  enter: "ease-out duration-300",
@@ -7462,7 +7462,7 @@ const Yi = ({
7462
7462
  {
7463
7463
  state: "default",
7464
7464
  hasMarginBottom: !0,
7465
- className: ["ds-mb-6", "ds-pb-2"]
7465
+ className: ["ds-mb-6"]
7466
7466
  }
7467
7467
  ]
7468
7468
  }
@@ -7470,15 +7470,12 @@ const Yi = ({
7470
7470
  variants: {
7471
7471
  state: {
7472
7472
  default: ["ds-text-neutrals-black", "ds-mt-2"],
7473
- error: ["ds-text-danger-red", "ds-pb-6", "ds-mt-2"],
7474
- success: [
7475
- "ds-text-success-green-dark",
7476
- "ds-h-6",
7477
- "ds-truncate",
7478
- "ds-text-sm",
7479
- "ds-mt-1",
7480
- "ds-mb-1"
7481
- ]
7473
+ error: ["ds-text-danger-red", "ds-mt-2"],
7474
+ success: ["ds-text-success-green-dark", "ds-truncate", "ds-text-sm", "ds-mt-1"]
7475
+ },
7476
+ hasMarginBottom: {
7477
+ true: ["ds-mb-6"],
7478
+ false: ["ds-mb-0"]
7482
7479
  },
7483
7480
  disabled: {
7484
7481
  true: "!ds-text-neutrals-dark"
@@ -7538,7 +7535,7 @@ const Yi = ({
7538
7535
  }
7539
7536
  ) })
7540
7537
  ] }),
7541
- p && /* @__PURE__ */ i.jsx("p", { className: cl({ state: r }), children: a })
7538
+ p && /* @__PURE__ */ i.jsx("p", { className: cl({ state: r, hasMarginBottom: u }), children: a })
7542
7539
  ] });
7543
7540
  }, ft = ul, fl = A(
7544
7541
  ["preflight", "ds-form-input", "ds-rounded", "ds-p-2", "!ds-border", "!ds-font-sans"],
@@ -7619,7 +7616,7 @@ const Yi = ({
7619
7616
  "ds-container"
7620
7617
  ],
7621
7618
  nt
7622
- ), vl = (e) => D(bl(e)), xl = Kr(
7619
+ ), vl = (e) => D(bl(e)), xl = cr(
7623
7620
  ({
7624
7621
  state: e = "default",
7625
7622
  disabled: r = !1,
@@ -7636,7 +7633,7 @@ const Yi = ({
7636
7633
  ...t
7637
7634
  }
7638
7635
  )
7639
- ), Cl = xl, wl = Kr(
7636
+ ), Cl = xl, wl = cr(
7640
7637
  ({
7641
7638
  id: e,
7642
7639
  state: r = "default",
@@ -7691,64 +7688,70 @@ const Yi = ({
7691
7688
  "ds-bg-[center_right_0.25rem]"
7692
7689
  ],
7693
7690
  nt
7694
- ), yl = (e) => kl(e), jl = `url('data:image/svg+xml,<svg width="16" height="16" viewBox="5 -5 15 35" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="%23949494" ><path d="M21.375 8.09253L12.4417 17.025C12.3837 17.0831 12.3148 17.1291 12.2391 17.1605C12.1632 17.192 12.082 17.2082 12 17.2082C11.918 17.2082 11.8368 17.192 11.7609 17.1605C11.6852 17.1291 11.6163 17.0831 11.5583 17.025L2.625 8.09253" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" stroke="%23000000" /></svg>')`, Ll = ({
7695
- state: e = "default",
7696
- disabled: r = !1,
7697
- className: n = "",
7698
- ...t
7699
- }) => {
7700
- let s = t.children;
7701
- return r && (s = (y.isValidElement(t.children) ? y.Children.toArray(
7702
- t.children.props.children
7703
- ) : y.Children.toArray(t.children)).map((a) => y.isValidElement(a) ? y.cloneElement(a, {
7704
- disabled: !0
7705
- }) : a)), /* @__PURE__ */ i.jsx(
7706
- "select",
7707
- {
7708
- "aria-disabled": r,
7709
- style: { backgroundImage: jl },
7710
- className: D(yl({ disabled: r, state: e }), n),
7711
- ...t,
7712
- children: s
7713
- }
7714
- );
7715
- }, El = Ll, $l = ({
7716
- id: e,
7717
- state: r = "default",
7718
- disabled: n = !1,
7719
- label: t,
7720
- optionalityLabel: s = "",
7721
- helpText: o = [],
7722
- message: a = "",
7723
- className: l = "",
7724
- hasMarginBottom: c = !0,
7725
- onBlur: f,
7726
- ...u
7727
- }) => /* @__PURE__ */ i.jsx(
7728
- ft,
7729
- {
7730
- id: e,
7731
- state: r,
7732
- disabled: n,
7733
- label: t,
7734
- optionalityLabel: s,
7735
- helpText: o,
7736
- message: a,
7737
- className: l,
7738
- hasMarginBottom: c,
7739
- child: /* @__PURE__ */ i.jsx(
7740
- El,
7691
+ ), yl = (e) => kl(e), jl = `url('data:image/svg+xml,<svg width="16" height="16" viewBox="5 -5 15 35" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="%23949494" ><path d="M21.375 8.09253L12.4417 17.025C12.3837 17.0831 12.3148 17.1291 12.2391 17.1605C12.1632 17.192 12.082 17.2082 12 17.2082C11.918 17.2082 11.8368 17.192 11.7609 17.1605C11.6852 17.1291 11.6163 17.0831 11.5583 17.025L2.625 8.09253" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" stroke="%23000000" /></svg>')`, Ll = cr(
7692
+ ({
7693
+ state: e = "default",
7694
+ disabled: r = !1,
7695
+ className: n = "",
7696
+ ...t
7697
+ }, s) => {
7698
+ let o = t.children;
7699
+ return r && (o = (y.isValidElement(t.children) ? y.Children.toArray(
7700
+ t.children.props.children
7701
+ ) : y.Children.toArray(t.children)).map((l) => y.isValidElement(l) ? y.cloneElement(l, {
7702
+ disabled: !0
7703
+ }) : l)), /* @__PURE__ */ i.jsx(
7704
+ "select",
7741
7705
  {
7742
- id: e,
7743
- "aria-labelledby": t ? "label_" + e : void 0,
7744
- "aria-describedby": o && o.length > 0 ? "helptext_" + e : void 0,
7745
- state: r,
7746
- disabled: n,
7747
- onBlur: f,
7748
- ...u
7706
+ ref: s,
7707
+ "aria-disabled": r,
7708
+ style: { backgroundImage: jl },
7709
+ className: D(yl({ disabled: r, state: e }), n),
7710
+ ...t,
7711
+ children: o
7749
7712
  }
7750
- )
7713
+ );
7751
7714
  }
7715
+ ), El = Ll, $l = cr(
7716
+ ({
7717
+ id: e,
7718
+ state: r = "default",
7719
+ disabled: n = !1,
7720
+ label: t,
7721
+ optionalityLabel: s = "",
7722
+ helpText: o = [],
7723
+ message: a = "",
7724
+ className: l = "",
7725
+ hasMarginBottom: c = !0,
7726
+ onBlur: f,
7727
+ ...u
7728
+ }, p) => /* @__PURE__ */ i.jsx(
7729
+ ft,
7730
+ {
7731
+ id: e,
7732
+ state: r,
7733
+ disabled: n,
7734
+ label: t,
7735
+ optionalityLabel: s,
7736
+ helpText: o,
7737
+ message: a,
7738
+ className: l,
7739
+ hasMarginBottom: c,
7740
+ child: /* @__PURE__ */ i.jsx(
7741
+ El,
7742
+ {
7743
+ id: e,
7744
+ "aria-labelledby": t ? "label_" + e : void 0,
7745
+ "aria-describedby": o && o.length > 0 ? "helptext_" + e : void 0,
7746
+ state: r,
7747
+ disabled: n,
7748
+ onBlur: f,
7749
+ ref: p,
7750
+ ...u
7751
+ }
7752
+ )
7753
+ }
7754
+ )
7752
7755
  ), Zl = $l, Ml = A("ds-overflow-hidden ds-bg-neutrals-light", {
7753
7756
  variants: {
7754
7757
  size: {
@@ -7886,7 +7889,7 @@ export {
7886
7889
  Bl as Modal,
7887
7890
  Yl as ProgressBar,
7888
7891
  Vl as Radio,
7889
- Dr as Spinner,
7892
+ Br as Spinner,
7890
7893
  zl as Tab,
7891
7894
  Hl as Tabs,
7892
7895
  Gl as TextInput,