@takecasper/acuity-design-system 1.24.1 → 1.24.2

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,6 +1,6 @@
1
1
  import "./assets/index.css";
2
2
  import * as or from "react";
3
- import w, { useState as ge, useEffect as oe, useLayoutEffect as Hn, useRef as R, createContext as ce, useContext as re, forwardRef as Bn, 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 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";
4
4
  import { createPortal as Ot } from "react-dom";
5
5
  var _r = { exports: {} }, er = {};
6
6
  /**
@@ -43,11 +43,11 @@ var rr = {};
43
43
  var Lt;
44
44
  function Jn() {
45
45
  return Lt || (Lt = 1, process.env.NODE_ENV !== "production" && function() {
46
- var e = w, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), x = Symbol.iterator, C = "@@iterator";
47
- function v(d) {
46
+ var e = w, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), v = Symbol.iterator, C = "@@iterator";
47
+ function x(d) {
48
48
  if (d === null || typeof d != "object")
49
49
  return null;
50
- var h = x && d[x] || d[C];
50
+ var h = v && d[v] || d[C];
51
51
  return typeof h == "function" ? h : null;
52
52
  }
53
53
  var k = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -194,18 +194,18 @@ function Jn() {
194
194
  G < 0 && j("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
195
195
  }
196
196
  }
197
- var ee = k.ReactCurrentDispatcher, D;
197
+ var ee = k.ReactCurrentDispatcher, B;
198
198
  function H(d, h, g) {
199
199
  {
200
- if (D === void 0)
200
+ if (B === void 0)
201
201
  try {
202
202
  throw Error();
203
203
  } catch (N) {
204
204
  var y = N.stack.trim().match(/\n( *(at )?)/);
205
- D = y && y[1] || "";
205
+ B = y && y[1] || "";
206
206
  }
207
207
  return `
208
- ` + D + d;
208
+ ` + B + d;
209
209
  }
210
210
  }
211
211
  var Je = !1, je;
@@ -281,7 +281,7 @@ function Jn() {
281
281
  } finally {
282
282
  Je = !1, ee.current = T, Ke(), Error.prepareStackTrace = N;
283
283
  }
284
- var Be = d ? d.displayName || d.name : "", yt = Be ? H(Be) : "";
284
+ var He = d ? d.displayName || d.name : "", yt = He ? H(He) : "";
285
285
  return typeof d == "function" && je.set(d, yt), yt;
286
286
  }
287
287
  function Xe(d, h, g) {
@@ -470,7 +470,7 @@ function Jn() {
470
470
  }
471
471
  }
472
472
  var Sr = k.ReactCurrentOwner, bt = k.ReactDebugCurrentFrame;
473
- function He(d) {
473
+ function Be(d) {
474
474
  if (d) {
475
475
  var h = d._owner, g = fr(d.type, d._source, h ? h.type : null);
476
476
  bt.setExtraStackFrame(g);
@@ -528,7 +528,7 @@ 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) + "."), He(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), He(null);
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);
532
532
  }
533
533
  }
534
534
  function kt(d, h) {
@@ -543,7 +543,7 @@ Check the top-level render call using <` + g + ">.");
543
543
  else if (Ar(d))
544
544
  d._store && (d._store.validated = !0);
545
545
  else if (d) {
546
- var N = v(d);
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
549
  Ar(M.value) && Ct(M.value, h);
@@ -580,11 +580,11 @@ Check the top-level render call using <` + g + ">.");
580
580
  for (var h = Object.keys(d.props), g = 0; g < h.length; g++) {
581
581
  var y = h[g];
582
582
  if (y !== "children" && y !== "key") {
583
- He(d), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), He(null);
583
+ Be(d), j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", y), Be(null);
584
584
  break;
585
585
  }
586
586
  }
587
- d.ref !== null && (He(d), j("Invalid attribute `ref` supplied to `React.Fragment`."), He(null));
587
+ d.ref !== null && (Be(d), j("Invalid attribute `ref` supplied to `React.Fragment`."), Be(null));
588
588
  }
589
589
  }
590
590
  function wt(d, h, g, y, N, T) {
@@ -606,8 +606,8 @@ Check the top-level render call using <` + g + ">.");
606
606
  if (le !== void 0)
607
607
  if (y)
608
608
  if (Nr(le)) {
609
- for (var Be = 0; Be < le.length; Be++)
610
- kt(le[Be], d);
609
+ for (var He = 0; He < le.length; He++)
610
+ kt(le[He], d);
611
611
  Object.freeze && Object.freeze(le);
612
612
  } else
613
613
  j("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
@@ -2121,7 +2121,7 @@ const Xn = ({
2121
2121
  ]
2122
2122
  }
2123
2123
  );
2124
- }, Ds = Vs, Hs = ({
2124
+ }, Ds = Vs, Bs = ({
2125
2125
  width: e = "24",
2126
2126
  height: r = "24",
2127
2127
  className: n = "",
@@ -2166,7 +2166,7 @@ const Xn = ({
2166
2166
  ]
2167
2167
  }
2168
2168
  );
2169
- }, Bs = Hs, zs = ({
2169
+ }, Hs = Bs, zs = ({
2170
2170
  width: e = "24",
2171
2171
  height: r = "24",
2172
2172
  className: n = "",
@@ -2332,15 +2332,15 @@ const Et = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, $t =
2332
2332
  return m === void 0 || (f[p] = m), f;
2333
2333
  }, {}), c = r == null || (t = r.compoundVariants) === null || t === void 0 ? void 0 : t.reduce((f, u) => {
2334
2334
  let { class: p, className: m, ...b } = u;
2335
- return Object.entries(b).every((x) => {
2336
- let [C, v] = x;
2337
- return Array.isArray(v) ? v.includes({
2335
+ return Object.entries(b).every((v) => {
2336
+ let [C, x] = v;
2337
+ return Array.isArray(x) ? x.includes({
2338
2338
  ...o,
2339
2339
  ...l
2340
2340
  }[C]) : {
2341
2341
  ...o,
2342
2342
  ...l
2343
- }[C] === v;
2343
+ }[C] === x;
2344
2344
  }) ? [
2345
2345
  ...f,
2346
2346
  p,
@@ -2474,25 +2474,25 @@ function ro(e) {
2474
2474
  const l = [];
2475
2475
  let c = 0, f = 0, u;
2476
2476
  for (let C = 0; C < a.length; C++) {
2477
- let v = a[C];
2477
+ let x = a[C];
2478
2478
  if (c === 0) {
2479
- if (v === t && (n || a.slice(C, C + s) === r)) {
2479
+ if (x === t && (n || a.slice(C, C + s) === r)) {
2480
2480
  l.push(a.slice(f, C)), f = C + s;
2481
2481
  continue;
2482
2482
  }
2483
- if (v === "/") {
2483
+ if (x === "/") {
2484
2484
  u = C;
2485
2485
  continue;
2486
2486
  }
2487
2487
  }
2488
- v === "[" ? c++ : v === "]" && c--;
2488
+ x === "[" ? c++ : x === "]" && c--;
2489
2489
  }
2490
- const p = l.length === 0 ? a : a.substring(f), m = p.startsWith(It), b = m ? p.substring(1) : p, x = u && u > f ? u - f : void 0;
2490
+ const p = l.length === 0 ? a : a.substring(f), m = p.startsWith(It), b = m ? p.substring(1) : p, v = u && u > f ? u - f : void 0;
2491
2491
  return {
2492
2492
  modifiers: l,
2493
2493
  hasImportantModifier: m,
2494
2494
  baseClassName: b,
2495
- maybePostfixModifierPosition: x
2495
+ maybePostfixModifierPosition: v
2496
2496
  };
2497
2497
  };
2498
2498
  }
@@ -2621,10 +2621,10 @@ function Ae(e) {
2621
2621
  }
2622
2622
  const bo = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
2623
2623
  function vo(e) {
2624
- return Ge(e, bo, Ht);
2624
+ return Ge(e, bo, Bt);
2625
2625
  }
2626
2626
  function xo(e) {
2627
- return Ge(e, "position", Ht);
2627
+ return Ge(e, "position", Bt);
2628
2628
  }
2629
2629
  const Co = /* @__PURE__ */ new Set(["image", "url"]);
2630
2630
  function ko(e) {
@@ -2643,7 +2643,7 @@ function Ge(e, r, n) {
2643
2643
  function yo(e) {
2644
2644
  return fo.test(e) && !po.test(e);
2645
2645
  }
2646
- function Ht() {
2646
+ function Bt() {
2647
2647
  return !1;
2648
2648
  }
2649
2649
  function jo(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"), x = A("gradientColorStopPositions"), C = A("inset"), v = 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 = 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];
2657
2657
  return {
2658
2658
  cacheSize: 500,
2659
2659
  separator: ":",
@@ -3184,63 +3184,63 @@ function Eo() {
3184
3184
  * @see https://tailwindcss.com/docs/margin
3185
3185
  */
3186
3186
  m: [{
3187
- m: [v]
3187
+ m: [x]
3188
3188
  }],
3189
3189
  /**
3190
3190
  * Margin X
3191
3191
  * @see https://tailwindcss.com/docs/margin
3192
3192
  */
3193
3193
  mx: [{
3194
- mx: [v]
3194
+ mx: [x]
3195
3195
  }],
3196
3196
  /**
3197
3197
  * Margin Y
3198
3198
  * @see https://tailwindcss.com/docs/margin
3199
3199
  */
3200
3200
  my: [{
3201
- my: [v]
3201
+ my: [x]
3202
3202
  }],
3203
3203
  /**
3204
3204
  * Margin Start
3205
3205
  * @see https://tailwindcss.com/docs/margin
3206
3206
  */
3207
3207
  ms: [{
3208
- ms: [v]
3208
+ ms: [x]
3209
3209
  }],
3210
3210
  /**
3211
3211
  * Margin End
3212
3212
  * @see https://tailwindcss.com/docs/margin
3213
3213
  */
3214
3214
  me: [{
3215
- me: [v]
3215
+ me: [x]
3216
3216
  }],
3217
3217
  /**
3218
3218
  * Margin Top
3219
3219
  * @see https://tailwindcss.com/docs/margin
3220
3220
  */
3221
3221
  mt: [{
3222
- mt: [v]
3222
+ mt: [x]
3223
3223
  }],
3224
3224
  /**
3225
3225
  * Margin Right
3226
3226
  * @see https://tailwindcss.com/docs/margin
3227
3227
  */
3228
3228
  mr: [{
3229
- mr: [v]
3229
+ mr: [x]
3230
3230
  }],
3231
3231
  /**
3232
3232
  * Margin Bottom
3233
3233
  * @see https://tailwindcss.com/docs/margin
3234
3234
  */
3235
3235
  mb: [{
3236
- mb: [v]
3236
+ mb: [x]
3237
3237
  }],
3238
3238
  /**
3239
3239
  * Margin Left
3240
3240
  * @see https://tailwindcss.com/docs/margin
3241
3241
  */
3242
3242
  ml: [{
3243
- ml: [v]
3243
+ ml: [x]
3244
3244
  }],
3245
3245
  /**
3246
3246
  * Space Between X
@@ -3624,21 +3624,21 @@ function Eo() {
3624
3624
  * @see https://tailwindcss.com/docs/gradient-color-stops
3625
3625
  */
3626
3626
  "gradient-from-pos": [{
3627
- from: [x]
3627
+ from: [v]
3628
3628
  }],
3629
3629
  /**
3630
3630
  * Gradient Color Stops Via Position
3631
3631
  * @see https://tailwindcss.com/docs/gradient-color-stops
3632
3632
  */
3633
3633
  "gradient-via-pos": [{
3634
- via: [x]
3634
+ via: [v]
3635
3635
  }],
3636
3636
  /**
3637
3637
  * Gradient Color Stops To Position
3638
3638
  * @see https://tailwindcss.com/docs/gradient-color-stops
3639
3639
  */
3640
3640
  "gradient-to-pos": [{
3641
- to: [x]
3641
+ to: [v]
3642
3642
  }],
3643
3643
  /**
3644
3644
  * Gradient Color Stops From
@@ -4668,11 +4668,11 @@ function Eo() {
4668
4668
  }
4669
4669
  };
4670
4670
  }
4671
- const B = /* @__PURE__ */ io(Eo);
4671
+ const D = /* @__PURE__ */ io(Eo);
4672
4672
  function $o() {
4673
4673
  return Math.floor(Math.random() * 1e7);
4674
4674
  }
4675
- const Bt = (e, r, n, t, s) => {
4675
+ const Ht = (e, r, n, t, s) => {
4676
4676
  const o = `preflight ${n}`;
4677
4677
  return {
4678
4678
  settings: /* @__PURE__ */ i.jsx(
@@ -4906,7 +4906,7 @@ const Bt = (e, r, n, t, s) => {
4906
4906
  }
4907
4907
  ),
4908
4908
  check: /* @__PURE__ */ i.jsx(
4909
- Bs,
4909
+ Hs,
4910
4910
  {
4911
4911
  width: e,
4912
4912
  height: r,
@@ -5016,7 +5016,7 @@ const Bt = (e, r, n, t, s) => {
5016
5016
  width: "24",
5017
5017
  height: "24"
5018
5018
  }
5019
- }, c = Bt(
5019
+ }, c = Ht(
5020
5020
  l[e].width,
5021
5021
  l[e].height,
5022
5022
  t,
@@ -5038,7 +5038,7 @@ const Bt = (e, r, n, t, s) => {
5038
5038
  ), p = n && !a ? f[r] || c[r] : a && u[r] || c[r];
5039
5039
  return /* @__PURE__ */ i.jsx(i.Fragment, { children: p });
5040
5040
  }, Te = Mo;
5041
- Object.keys(Bt()).sort(
5041
+ Object.keys(Ht()).sort(
5042
5042
  (e, r) => e.localeCompare(r)
5043
5043
  );
5044
5044
  Object.keys(zt()).sort(
@@ -5066,7 +5066,7 @@ function No() {
5066
5066
  (e = arguments[n]) && (r = Gt(e)) && (t && (t += " "), t += r);
5067
5067
  return t;
5068
5068
  }
5069
- const Vr = (...e) => B(No(...e)), Zt = (e, r, n) => {
5069
+ const Vr = (...e) => D(No(...e)), Zt = (e, r, n) => {
5070
5070
  if (r) {
5071
5071
  e.preventDefault();
5072
5072
  return;
@@ -5205,7 +5205,7 @@ const Vr = (...e) => B(No(...e)), Zt = (e, r, n) => {
5205
5205
  }
5206
5206
  }
5207
5207
  }
5208
- ), Ao = (e) => B(Ro(e)), Po = F("", {
5208
+ ), Ao = (e) => D(Ro(e)), Po = F("", {
5209
5209
  variants: {
5210
5210
  variant: {
5211
5211
  success: "ds-text-success-green-dark",
@@ -5214,7 +5214,7 @@ const Vr = (...e) => B(No(...e)), Zt = (e, r, n) => {
5214
5214
  error: "ds-text-danger-red-dark"
5215
5215
  }
5216
5216
  }
5217
- }), Tt = (e) => B(Po(e)), Fo = F("", {
5217
+ }), Tt = (e) => D(Po(e)), Fo = F("", {
5218
5218
  variants: {
5219
5219
  variant: {
5220
5220
  success: ["ds-text-success-green-darkest", "ds-stroke-success-green-darkest"],
@@ -5223,7 +5223,7 @@ const Vr = (...e) => B(No(...e)), Zt = (e, r, n) => {
5223
5223
  error: ["ds-text-danger-red-darkest", "ds-stroke-danger-red-darkest"]
5224
5224
  }
5225
5225
  }
5226
- }), ze = (e) => B(Fo(e)), Oo = ({
5226
+ }), ze = (e) => D(Fo(e)), Oo = ({
5227
5227
  variant: e = "info",
5228
5228
  isDismissible: r = !0,
5229
5229
  showIcon: n = !0,
@@ -5475,7 +5475,7 @@ const Vr = (...e) => B(No(...e)), Zt = (e, r, n) => {
5475
5475
  )
5476
5476
  ] })
5477
5477
  }
5478
- ) }), Nl = Do, Ho = ({
5478
+ ) }), Nl = Do, Bo = ({
5479
5479
  content: e = void 0,
5480
5480
  iconName: r = void 0,
5481
5481
  title: n = "",
@@ -5486,7 +5486,7 @@ const Vr = (...e) => B(No(...e)), Zt = (e, r, n) => {
5486
5486
  "div",
5487
5487
  {
5488
5488
  ...o,
5489
- className: B(
5489
+ className: D(
5490
5490
  "preflight ds-flex ds-flex-col ds-items-start ds-gap-6 ds-rounded-lg ds-border ds-border-neutrals-light ds-p-5",
5491
5491
  s
5492
5492
  ),
@@ -5508,7 +5508,7 @@ const Vr = (...e) => B(No(...e)), Zt = (e, r, n) => {
5508
5508
  t && /* @__PURE__ */ i.jsx("div", { children: t })
5509
5509
  ]
5510
5510
  }
5511
- ), Tl = Ho, Bo = F(
5511
+ ), Tl = Bo, Ho = F(
5512
5512
  [
5513
5513
  "preflight",
5514
5514
  "ds-h-4",
@@ -5536,7 +5536,7 @@ const Vr = (...e) => B(No(...e)), Zt = (e, r, n) => {
5536
5536
  }
5537
5537
  }
5538
5538
  }
5539
- ), qt = (e) => B(Bo(e)), zo = F(
5539
+ ), qt = (e) => D(Ho(e)), zo = F(
5540
5540
  ["preflight", "ds-font-base", "!ds-font-sans", "ds-ml-2", "ds-text-base"],
5541
5541
  {
5542
5542
  variants: {
@@ -5546,7 +5546,7 @@ const Vr = (...e) => B(No(...e)), Zt = (e, r, n) => {
5546
5546
  }
5547
5547
  }
5548
5548
  }
5549
- ), Kt = (e) => B(zo(e)), rt = {
5549
+ ), Kt = (e) => D(zo(e)), rt = {
5550
5550
  variants: {
5551
5551
  state: {
5552
5552
  default: [
@@ -5689,7 +5689,7 @@ const Ko = F("preflight !ds-font-sans", {
5689
5689
  h2: /* @__PURE__ */ i.jsx("h2", { className: br({ size: e }), children: n }),
5690
5690
  h1: /* @__PURE__ */ i.jsx("h1", { className: br({ size: e }), children: n })
5691
5691
  };
5692
- return /* @__PURE__ */ i.jsxs("div", { className: B(m, r), ...c, children: [
5692
+ return /* @__PURE__ */ i.jsxs("div", { className: D(m, r), ...c, children: [
5693
5693
  f,
5694
5694
  b[l || qo(e)],
5695
5695
  u,
@@ -5759,7 +5759,7 @@ const Ko = F("preflight !ds-font-sans", {
5759
5759
  type: n = "default",
5760
5760
  iconName: t,
5761
5761
  ...s
5762
- }) => /* @__PURE__ */ i.jsxs("a", { href: r, type: n, className: B(ta({ type: n })), ...s, children: [
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
5765
  ] }), Al = na;
@@ -5845,7 +5845,7 @@ function nt() {
5845
5845
  return oe(() => () => e.dispose(), [e]), e;
5846
5846
  }
5847
5847
  let K = (e, r) => {
5848
- Ve.isServer ? oe(e, r) : Hn(e, r);
5848
+ Ve.isServer ? oe(e, r) : Bn(e, r);
5849
5849
  };
5850
5850
  function Ce(e) {
5851
5851
  let r = R(e);
@@ -5899,12 +5899,12 @@ function vr(e, r = {}, n, t, s) {
5899
5899
  let p = {};
5900
5900
  if (r) {
5901
5901
  let m = !1, b = [];
5902
- for (let [x, C] of Object.entries(r))
5903
- typeof C == "boolean" && (m = !0), C === !0 && b.push(x.replace(/([A-Z])/g, (v) => `-${v.toLowerCase()}`));
5902
+ for (let [v, C] of Object.entries(r))
5903
+ typeof C == "boolean" && (m = !0), C === !0 && b.push(v.replace(/([A-Z])/g, (x) => `-${x.toLowerCase()}`));
5904
5904
  if (m) {
5905
5905
  p["data-headlessui-state"] = b.join(" ");
5906
- for (let x of b)
5907
- p[`data-${x}`] = "";
5906
+ for (let v of b)
5907
+ p[`data-${v}`] = "";
5908
5908
  }
5909
5909
  }
5910
5910
  if (o === de && (Object.keys(Ue(c)).length > 0 || Object.keys(Ue(p)).length > 0))
@@ -5915,10 +5915,10 @@ 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, x = typeof b == "function" ? (...k) => ar(b(...k), c.className) : ar(b, c.className), C = x ? { className: x } : {}, v = 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(Fr(c, ["ref"])));
5919
5919
  for (let k in p)
5920
- k in v && delete p[k];
5921
- return Un(u, Object.assign({}, v, p, f, { ref: s(u.ref, f.ref) }, C));
5920
+ k in x && delete p[k];
5921
+ return Un(u, Object.assign({}, x, p, f, { ref: s(u.ref, f.ref) }, C));
5922
5922
  }
5923
5923
  return Gn(o, Object.assign({}, Fr(c, ["ref"]), o !== de && f, o !== de && p), u);
5924
5924
  }
@@ -5956,7 +5956,7 @@ function Xt(...e) {
5956
5956
  }
5957
5957
  function ue(e) {
5958
5958
  var r;
5959
- return Object.assign(Bn(e), { displayName: (r = e.displayName) != null ? r : e.name });
5959
+ return Object.assign(Hn(e), { displayName: (r = e.displayName) != null ? r : e.name });
5960
5960
  }
5961
5961
  function Ue(e) {
5962
5962
  let r = Object.assign({}, e);
@@ -6034,19 +6034,19 @@ let Ca = ce(() => {
6034
6034
  function ka({ value: e, children: r }) {
6035
6035
  return w.createElement(Ca.Provider, { value: e }, r);
6036
6036
  }
6037
- let Hr = /* @__PURE__ */ new Map(), ir = /* @__PURE__ */ new Map();
6037
+ let Br = /* @__PURE__ */ new Map(), ir = /* @__PURE__ */ new Map();
6038
6038
  function Rt(e) {
6039
6039
  var r;
6040
6040
  let n = (r = ir.get(e)) != null ? r : 0;
6041
- return ir.set(e, n + 1), n !== 0 ? () => At(e) : (Hr.set(e, { "aria-hidden": e.getAttribute("aria-hidden"), inert: e.inert }), e.setAttribute("aria-hidden", "true"), e.inert = !0, () => At(e));
6041
+ return ir.set(e, n + 1), n !== 0 ? () => At(e) : (Br.set(e, { "aria-hidden": e.getAttribute("aria-hidden"), inert: e.inert }), e.setAttribute("aria-hidden", "true"), e.inert = !0, () => At(e));
6042
6042
  }
6043
6043
  function At(e) {
6044
6044
  var r;
6045
6045
  let n = (r = ir.get(e)) != null ? r : 1;
6046
6046
  if (n === 1 ? ir.delete(e) : ir.set(e, n - 1), n !== 1)
6047
6047
  return;
6048
- let t = Hr.get(e);
6049
- t && (t["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", t["aria-hidden"]), e.inert = t.inert, Hr.delete(e));
6048
+ let t = Br.get(e);
6049
+ t && (t["aria-hidden"] === null ? e.removeAttribute("aria-hidden") : e.setAttribute("aria-hidden", t["aria-hidden"]), e.inert = t.inert, Br.delete(e));
6050
6050
  }
6051
6051
  function wa({ allowed: e, disallowed: r } = {}, n = !0) {
6052
6052
  K(() => {
@@ -6096,10 +6096,10 @@ function tn(e, r, n = !0) {
6096
6096
  return () => o.dispose();
6097
6097
  }, [e, t, n]);
6098
6098
  }
6099
- let Br = ["[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(","), ya = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
6099
+ let Hr = ["[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(","), ya = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
6100
6100
  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 || {}), zr = ((e) => (e[e.Error = 0] = "Error", e[e.Overflow = 1] = "Overflow", e[e.Success = 2] = "Success", e[e.Underflow = 3] = "Underflow", e))(zr || {}), ja = ((e) => (e[e.Previous = -1] = "Previous", e[e.Next = 1] = "Next", e))(ja || {});
6101
6101
  function La(e = document.body) {
6102
- return e == null ? [] : Array.from(e.querySelectorAll(Br)).sort((r, n) => Math.sign((r.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
6102
+ return e == null ? [] : Array.from(e.querySelectorAll(Hr)).sort((r, n) => Math.sign((r.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
6103
6103
  }
6104
6104
  function Ea(e = document.body) {
6105
6105
  return e == null ? [] : Array.from(e.querySelectorAll(ya)).sort((r, n) => Math.sign((r.tabIndex || Number.MAX_SAFE_INTEGER) - (n.tabIndex || Number.MAX_SAFE_INTEGER)));
@@ -6108,11 +6108,11 @@ var nn = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(nn |
6108
6108
  function $a(e, r = 0) {
6109
6109
  var n;
6110
6110
  return e === ((n = tt(e)) == null ? void 0 : n.body) ? !1 : U(r, { 0() {
6111
- return e.matches(Br);
6111
+ return e.matches(Hr);
6112
6112
  }, 1() {
6113
6113
  let t = e;
6114
6114
  for (; t !== null; ) {
6115
- if (t.matches(Br))
6115
+ if (t.matches(Hr))
6116
6116
  return !0;
6117
6117
  t = t.parentElement;
6118
6118
  }
@@ -6144,7 +6144,7 @@ function Sa(e, r = (n) => n) {
6144
6144
  }
6145
6145
  function lr(e, r, { sorted: n = !0, relativeTo: t = null, skipElements: s = [] } = {}) {
6146
6146
  let o = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e.ownerDocument, a = Array.isArray(e) ? n ? Sa(e) : e : r & 64 ? Ea(e) : La(e);
6147
- s.length > 0 && a.length > 1 && (a = a.filter((b) => !s.some((x) => x != null && "current" in x ? (x == null ? void 0 : x.current) === b : x === b))), t = t != null ? t : o.activeElement;
6147
+ s.length > 0 && a.length > 1 && (a = a.filter((b) => !s.some((v) => v != null && "current" in v ? (v == null ? void 0 : v.current) === b : v === b))), t = t != null ? t : o.activeElement;
6148
6148
  let l = (() => {
6149
6149
  if (r & 5)
6150
6150
  return 1;
@@ -6372,7 +6372,7 @@ function Da(e, r, n = () => ({ containers: [] })) {
6372
6372
  return Ie.dispatch("PUSH", e, n), () => Ie.dispatch("POP", e, n);
6373
6373
  }, [r, e]), o;
6374
6374
  }
6375
- function Ha(e, r, n = () => [document.body]) {
6375
+ function Ba(e, r, n = () => [document.body]) {
6376
6376
  Da(e, r, (t) => {
6377
6377
  var s;
6378
6378
  return { containers: [...(s = t.containers) != null ? s : [], n] };
@@ -6395,7 +6395,7 @@ var se = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closin
6395
6395
  function it() {
6396
6396
  return re(at);
6397
6397
  }
6398
- function Ba({ value: e, children: r }) {
6398
+ function Ha({ value: e, children: r }) {
6399
6399
  return w.createElement(at.Provider, { value: e }, r);
6400
6400
  }
6401
6401
  function za(e) {
@@ -6575,26 +6575,26 @@ function ii(e, r) {
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((v) => {
6578
+ let p = oi(), m = P((x) => {
6579
6579
  let k = n.current;
6580
6580
  k && ((j) => j())(() => {
6581
6581
  U(p.current, { [sr.Forwards]: () => {
6582
- lr(k, Me.First, { skipElements: [v.relatedTarget, o] });
6582
+ lr(k, Me.First, { skipElements: [x.relatedTarget, o] });
6583
6583
  }, [sr.Backwards]: () => {
6584
- lr(k, Me.Last, { skipElements: [v.relatedTarget, o] });
6584
+ lr(k, Me.Last, { skipElements: [x.relatedTarget, o] });
6585
6585
  } });
6586
6586
  });
6587
- }), b = nt(), x = R(!1), C = { ref: t, onKeyDown(v) {
6588
- v.key == "Tab" && (x.current = !0, b.requestAnimationFrame(() => {
6589
- x.current = !1;
6587
+ }), b = nt(), v = R(!1), C = { ref: t, onKeyDown(x) {
6588
+ x.key == "Tab" && (v.current = !0, b.requestAnimationFrame(() => {
6589
+ v.current = !1;
6590
6590
  }));
6591
- }, onBlur(v) {
6591
+ }, onBlur(x) {
6592
6592
  if (!(l & 8))
6593
6593
  return;
6594
6594
  let k = fn(a);
6595
6595
  n.current instanceof HTMLElement && k.add(n.current);
6596
- let j = v.relatedTarget;
6597
- j instanceof HTMLElement && j.dataset.headlessuiFocusGuard !== "true" && (pn(k, j) || (x.current ? lr(n.current, U(p.current, { [sr.Forwards]: () => Me.Next, [sr.Backwards]: () => Me.Previous }) | Me.WrapAround, { relativeTo: v.target }) : v.target instanceof HTMLElement && Ne(v.target)));
6596
+ let j = x.relatedTarget;
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
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 }));
6600
6600
  }
@@ -6697,9 +6697,9 @@ function Ci(e, r) {
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
- let x = it();
6701
- s === void 0 && x !== null && (s = (x & se.Open) === se.Open);
6702
- let C = R(null), v = ke(C, r), k = dr(C), j = e.hasOwnProperty("open") || x !== null, fe = e.hasOwnProperty("onClose");
6700
+ let v = it();
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");
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)
@@ -6713,7 +6713,7 @@ function Ci(e, r) {
6713
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() {
6714
6714
  var W;
6715
6715
  return (W = Z.panelRef.current) != null ? W : C.current;
6716
- } }, { resolveContainers: G, mainTreeNodeRef: pe, MainTreeNode: ve } = ti({ portals: $, defaultContainers: [V] }), he = te ? "parent" : "leaf", z = x !== null ? (x & se.Closing) === se.Closing : !1, ye = te || z ? !1 : X;
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
6717
  wa({ allowed: P(() => {
6718
6718
  var W, xe;
6719
6719
  return [(xe = (W = C.current) == null ? void 0 : W.closest("[data-headlessui-portal]")) != null ? xe : null];
@@ -6726,11 +6726,11 @@ function Ci(e, r) {
6726
6726
  let Q = !(te || S !== 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
- }), Ha(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]), D = ae(() => ({ open: S === 0 }), [S]), H = { ref: v, 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;
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
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) => {
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: D, 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: D, 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(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)));
6734
6734
  }
6735
6735
  let ki = "div";
6736
6736
  function wi(e, r) {
@@ -6855,37 +6855,37 @@ function Mr(e) {
6855
6855
  return "children" in e ? Mr(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, x = Oe.Hidden) => {
6859
- let C = t.current.findIndex(({ el: v }) => v === b);
6860
- C !== -1 && (U(x, { [Oe.Unmount]() {
6858
+ let n = Ce(e), t = R([]), s = ur(), o = nt(), a = P((b, v = Oe.Hidden) => {
6859
+ let C = t.current.findIndex(({ el: x }) => x === b);
6860
+ C !== -1 && (U(v, { [Oe.Unmount]() {
6861
6861
  t.current.splice(C, 1);
6862
6862
  }, [Oe.Hidden]() {
6863
6863
  t.current[C].state = "hidden";
6864
6864
  } }), o.microTask(() => {
6865
- var v;
6866
- !Mr(t) && s.current && ((v = n.current) == null || v.call(n));
6865
+ var x;
6866
+ !Mr(t) && s.current && ((x = n.current) == null || x.call(n));
6867
6867
  }));
6868
6868
  }), l = P((b) => {
6869
- let x = t.current.find(({ el: C }) => C === b);
6870
- return x ? x.state !== "visible" && (x.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, x, C) => {
6872
- c.current.splice(0), r && (r.chains.current[x] = r.chains.current[x].filter(([v]) => v !== b)), r == null || r.chains.current[x].push([b, new Promise((v) => {
6873
- c.current.push(v);
6874
- })]), r == null || r.chains.current[x].push([b, new Promise((v) => {
6875
- Promise.all(u.current[x].map(([k, j]) => j)).then(() => v());
6876
- })]), x === "enter" ? f.current = f.current.then(() => r == null ? void 0 : r.wait.current).then(() => C(x)) : C(x);
6877
- }), m = P((b, x, C) => {
6878
- Promise.all(u.current[x].splice(0).map(([v, k]) => k)).then(() => {
6879
- var v;
6880
- (v = c.current.shift()) == null || v();
6881
- }).then(() => C(x));
6869
+ let v = t.current.find(({ el: C }) => C === b);
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) => {
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
+ c.current.push(x);
6874
+ })]), r == null || r.chains.current[v].push([b, new Promise((x) => {
6875
+ Promise.all(u.current[v].map(([k, j]) => j)).then(() => x());
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) => {
6878
+ Promise.all(u.current[v].splice(0).map(([x, k]) => k)).then(() => {
6879
+ var x;
6880
+ (x = c.current.shift()) == null || x();
6881
+ }).then(() => C(v));
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
6885
  let vn = de, xn = Cr.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: x, leaveTo: C, ...v } = e, k = R(null), j = gn(e), fe = ke(...j ? [k, r] : r === null ? [] : [r]), S = (n = v.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 = 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;
6889
6889
  K(() => ie(k), [ie, k]), K(() => {
6890
6890
  if (S === Oe.Hidden && k.current) {
6891
6891
  if (Z && Y !== "visible") {
@@ -6895,24 +6895,24 @@ function Oi(e, r) {
6895
6895
  return U(Y, { hidden: () => $(k), visible: () => ie(k) });
6896
6896
  }
6897
6897
  }, [Y, k, ie, $, Z, S]);
6898
- let O = Ce({ base: Pe(v.className), enter: Pe(f), enterFrom: Pe(u), enterTo: Pe(p), entered: Pe(m), leave: Pe(b), leaveFrom: Pe(x), leaveTo: Pe(C) }), V = Ce({ beforeEnter: o, afterEnter: a, beforeLeave: l, afterLeave: c }), G = cr();
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();
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
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: () => {
6904
- var D, H;
6905
- z.addFlag(se.Opening), (H = (D = V.current).beforeEnter) == null || H.call(D);
6904
+ var B, H;
6905
+ z.addFlag(se.Opening), (H = (B = V.current).beforeEnter) == null || H.call(B);
6906
6906
  }, leave: () => {
6907
- var D, H;
6908
- z.addFlag(se.Closing), (H = (D = V.current).beforeLeave) == null || H.call(D);
6907
+ var B, H;
6908
+ z.addFlag(se.Closing), (H = (B = V.current).beforeLeave) == null || H.call(B);
6909
6909
  }, idle: () => {
6910
6910
  } })), me = P((ee) => U(ee, { enter: () => {
6911
- var D, H;
6912
- z.removeFlag(se.Opening), (H = (D = V.current).afterEnter) == null || H.call(D);
6911
+ var B, H;
6912
+ z.removeFlag(se.Opening), (H = (B = V.current).afterEnter) == null || H.call(B);
6913
6913
  }, leave: () => {
6914
- var D, H;
6915
- z.removeFlag(se.Closing), (H = (D = V.current).afterLeave) == null || H.call(D);
6914
+ var B, H;
6915
+ z.removeFlag(se.Closing), (H = (B = V.current).afterLeave) == null || H.call(B);
6916
6916
  }, idle: () => {
6917
6917
  } })), Q = R(!1), Se = bn(() => {
6918
6918
  Q.current || (X("hidden"), $(k));
@@ -6922,8 +6922,8 @@ function Oi(e, r) {
6922
6922
  }), onStop: Ce((ee) => {
6923
6923
  Q.current = !1, Se.onStop(k, ee, me), ee === "leave" && !Mr(Se) && (X("hidden"), $(k));
6924
6924
  }) });
6925
- let ne = v, Ke = { ref: fe };
6926
- return ve ? ne = { ...ne, className: ar(v.className, ...O.current.enter, ...O.current.enterFrom) } : Q.current ? (ne.className = ar(v.className, (t = k.current) == null ? void 0 : t.className), ne.className === "" && delete ne.className) : (ne.className = ar(v.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(Ba, { 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" })));
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" })));
6927
6927
  }
6928
6928
  function Wi(e, r) {
6929
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]);
@@ -6933,22 +6933,22 @@ function Wi(e, r) {
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, x] = ge(!0), C = R([n]);
6936
+ }), [b, v] = ge(!0), C = R([n]);
6937
6937
  K(() => {
6938
- b !== !1 && C.current[C.current.length - 1] !== n && (C.current.push(n), x(!1));
6938
+ b !== !1 && C.current[C.current.length - 1] !== n && (C.current.push(n), v(!1));
6939
6939
  }, [C, n]);
6940
- let v = ae(() => ({ show: n, appear: t, initial: b }), [n, t, b]);
6940
+ let x = ae(() => ({ show: n, appear: t, initial: b }), [n, t, b]);
6941
6941
  tn(a, () => p("hidden")), K(() => {
6942
6942
  n ? p("visible") : !Mr(m) && a.current !== null && p("hidden");
6943
6943
  }, [n, m]);
6944
6944
  let k = { unmount: s }, j = P(() => {
6945
6945
  var S;
6946
- b && x(!1), (S = e.beforeEnter) == null || S.call(e);
6946
+ b && v(!1), (S = e.beforeEnter) == null || S.call(e);
6947
6947
  }), fe = P(() => {
6948
6948
  var S;
6949
- b && x(!1), (S = e.beforeLeave) == null || S.call(e);
6949
+ b && v(!1), (S = e.beforeLeave) == null || S.call(e);
6950
6950
  });
6951
- return w.createElement($r.Provider, { value: m }, w.createElement(Er.Provider, { value: v }, 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($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" })));
6952
6952
  }
6953
6953
  function _i(e, r) {
6954
6954
  let n = re(Er) !== null, t = it() !== null;
@@ -7096,7 +7096,7 @@ const Vi = ({
7096
7096
  }
7097
7097
  }
7098
7098
  }
7099
- ), Hi = ({
7099
+ ), Bi = ({
7100
7100
  label: e,
7101
7101
  type: r = "regular",
7102
7102
  color: n = "default",
@@ -7110,7 +7110,7 @@ const Vi = ({
7110
7110
  return /* @__PURE__ */ i.jsxs(
7111
7111
  "div",
7112
7112
  {
7113
- className: B(Di({ color: n, type: r }), o),
7113
+ className: D(Di({ color: n, type: r }), o),
7114
7114
  "aria-label": c,
7115
7115
  ...l,
7116
7116
  children: [
@@ -7131,7 +7131,7 @@ const Vi = ({
7131
7131
  ]
7132
7132
  }
7133
7133
  );
7134
- }, Bi = Hi, zi = F(
7134
+ }, Hi = Bi, zi = F(
7135
7135
  [
7136
7136
  "preflight",
7137
7137
  "ds-transition",
@@ -7190,7 +7190,7 @@ const Vi = ({
7190
7190
  className: a = "",
7191
7191
  ...l
7192
7192
  }) => {
7193
- const c = (f, u, p) => B(
7193
+ const c = (f, u, p) => D(
7194
7194
  zi({ isNested: f }),
7195
7195
  u && !f && "!ds-border-b-acuity-green",
7196
7196
  u && f && "ds-bg-neutrals-white !ds-border-neutrals",
@@ -7209,7 +7209,7 @@ const Vi = ({
7209
7209
  children: [
7210
7210
  e,
7211
7211
  o && /* @__PURE__ */ i.jsx(
7212
- Bi,
7212
+ Hi,
7213
7213
  {
7214
7214
  label: o,
7215
7215
  className: "ds-ml-2 ds-h-5 ds-bg-neutrals-white ds-text-neutrals-black"
@@ -7294,7 +7294,7 @@ const Vi = ({
7294
7294
  }
7295
7295
  }
7296
7296
  }
7297
- ), Ki = (e) => B(qi(e)), Ji = ({
7297
+ ), Ki = (e) => D(qi(e)), Ji = ({
7298
7298
  id: e,
7299
7299
  state: r = "default",
7300
7300
  disabled: n = !1,
@@ -7309,13 +7309,23 @@ const Vi = ({
7309
7309
  {
7310
7310
  variants: {
7311
7311
  state: {
7312
- default: ["[&>label]:focus-within:ds-text-acuity-blue", "ds-mb-6", "ds-pb-2"],
7312
+ default: ["[&>label]:focus-within:ds-text-acuity-blue"],
7313
7313
  error: ["[&>label]:focus-within:ds-text-danger-red-darkest"],
7314
7314
  success: ["[&>label]:focus-within:ds-text-success-green-darkest"]
7315
+ },
7316
+ hasMarginBottom: {
7317
+ true: ""
7315
7318
  }
7316
- }
7319
+ },
7320
+ compoundVariants: [
7321
+ {
7322
+ state: "default",
7323
+ hasMarginBottom: !0,
7324
+ className: ["ds-mb-6", "ds-pb-2"]
7325
+ }
7326
+ ]
7317
7327
  }
7318
- ), el = (e) => B(Qi(e)), rl = F(["ds-form-label", "!ds-font-sans", "ds-text-base"], {
7328
+ ), el = (e) => D(Qi(e)), rl = F(["ds-form-label", "!ds-font-sans", "ds-text-base"], {
7319
7329
  variants: {
7320
7330
  state: {
7321
7331
  default: ["ds-text-neutrals-black", "ds-mt-2"],
@@ -7333,7 +7343,7 @@ const Vi = ({
7333
7343
  true: "!ds-text-neutrals-dark"
7334
7344
  }
7335
7345
  }
7336
- }), tl = (e) => B(rl(e)), nl = ({
7346
+ }), tl = (e) => D(rl(e)), nl = ({
7337
7347
  id: e,
7338
7348
  state: r = "default",
7339
7349
  disabled: n = !1,
@@ -7342,55 +7352,57 @@ const Vi = ({
7342
7352
  helpText: o = [],
7343
7353
  message: a = "",
7344
7354
  child: l,
7345
- isTextarea: c = !1
7355
+ isTextarea: c = !1,
7356
+ className: f = "",
7357
+ hasMarginBottom: u = !0
7346
7358
  }) => {
7347
- let f = null;
7359
+ let p = null;
7348
7360
  switch (r) {
7349
7361
  case "error":
7350
- f = {
7362
+ p = {
7351
7363
  name: "error",
7352
7364
  color: "ds-text-danger-red"
7353
7365
  };
7354
7366
  break;
7355
7367
  case "success":
7356
- f = {
7368
+ p = {
7357
7369
  name: "checkCircle",
7358
7370
  color: "ds-text-success-green"
7359
7371
  };
7360
7372
  break;
7361
7373
  }
7362
- const u = t ? "label_" + e : void 0, p = o && o.length > 0 ? "helptext_" + e : void 0;
7363
- return /* @__PURE__ */ i.jsxs("div", { className: el({ state: r }), children: [
7374
+ const m = t ? "label_" + e : void 0, b = o && o.length > 0 ? "helptext_" + e : void 0;
7375
+ return /* @__PURE__ */ i.jsxs("div", { className: D(el({ state: r, hasMarginBottom: u }), f), children: [
7364
7376
  t && /* @__PURE__ */ i.jsx(
7365
7377
  Xi,
7366
7378
  {
7367
- id: u,
7379
+ id: m,
7368
7380
  htmlFor: e,
7369
7381
  value: t,
7370
7382
  optionalityLabel: s,
7371
7383
  disabled: n
7372
7384
  }
7373
7385
  ),
7374
- o && o.length > 1 && /* @__PURE__ */ i.jsx("ul", { id: p, className: "ds-mt-2 ds-pb-1 ds-pl-6", children: o == null ? void 0 : o.map((m, b) => /* @__PURE__ */ i.jsx("li", { className: "ds-list-disc ds-text-neutrals-dark", children: m }, b)) }),
7375
- o && o.length === 1 && /* @__PURE__ */ i.jsx("p", { id: p, className: "ds-mt-2 ds-pb-1 ds-text-neutrals-dark", children: o }),
7386
+ o && o.length > 1 && /* @__PURE__ */ i.jsx("ul", { id: b, className: "ds-mt-2 ds-pb-1 ds-pl-6", children: o == null ? void 0 : o.map((v, C) => /* @__PURE__ */ i.jsx("li", { className: "ds-list-disc ds-text-neutrals-dark", children: v }, C)) }),
7387
+ o && o.length === 1 && /* @__PURE__ */ i.jsx("p", { id: b, className: "ds-mt-2 ds-pb-1 ds-text-neutrals-dark", children: o }),
7376
7388
  /* @__PURE__ */ i.jsxs("div", { className: "ds-mt-2 ds-flex ds-gap-2", children: [
7377
7389
  /* @__PURE__ */ i.jsx("div", { className: c ? "" : "ds-w-[calc(100%-2rem)]", children: l }),
7378
- /* @__PURE__ */ i.jsx("div", { className: "ds-pt-2", children: f && /* @__PURE__ */ i.jsx(
7390
+ /* @__PURE__ */ i.jsx("div", { className: "ds-pt-2", children: p && /* @__PURE__ */ i.jsx(
7379
7391
  Te,
7380
7392
  {
7381
- name: f.name,
7393
+ name: p.name,
7382
7394
  size: "medium",
7383
- className: f.color,
7395
+ className: p.color,
7384
7396
  role: "graphics-symbol"
7385
7397
  }
7386
7398
  ) })
7387
7399
  ] }),
7388
- f && /* @__PURE__ */ i.jsx("p", { className: tl({ state: r }), children: a })
7400
+ p && /* @__PURE__ */ i.jsx("p", { className: tl({ state: r }), children: a })
7389
7401
  ] });
7390
7402
  }, ct = nl, sl = F(
7391
7403
  ["preflight", "ds-form-input", "ds-rounded", "ds-p-2", "!ds-border", "!ds-font-sans"],
7392
7404
  rt
7393
- ), ol = (e) => B(sl(e)), al = ({
7405
+ ), ol = (e) => D(sl(e)), al = ({
7394
7406
  state: e = "default",
7395
7407
  rows: r = 2,
7396
7408
  cols: n = 50,
@@ -7421,7 +7433,9 @@ const Vi = ({
7421
7433
  helpText: l = [],
7422
7434
  message: c = "",
7423
7435
  disabled: f = !1,
7424
- ...u
7436
+ className: u = "",
7437
+ hasMarginBottom: p = !0,
7438
+ ...m
7425
7439
  }) => /* @__PURE__ */ i.jsx(
7426
7440
  ct,
7427
7441
  {
@@ -7433,6 +7447,8 @@ const Vi = ({
7433
7447
  helpText: l,
7434
7448
  message: c,
7435
7449
  isTextarea: !0,
7450
+ className: u,
7451
+ hasMarginBottom: p,
7436
7452
  child: /* @__PURE__ */ i.jsx(
7437
7453
  il,
7438
7454
  {
@@ -7444,7 +7460,7 @@ const Vi = ({
7444
7460
  cols: s,
7445
7461
  isResizable: o,
7446
7462
  disabled: f,
7447
- ...u
7463
+ ...m
7448
7464
  }
7449
7465
  )
7450
7466
  }
@@ -7460,7 +7476,7 @@ const Vi = ({
7460
7476
  "ds-container"
7461
7477
  ],
7462
7478
  rt
7463
- ), cl = (e) => B(dl(e)), ul = ({
7479
+ ), cl = (e) => D(dl(e)), ul = ({
7464
7480
  state: e = "default",
7465
7481
  disabled: r = !1,
7466
7482
  type: n = "text",
@@ -7483,7 +7499,9 @@ const Vi = ({
7483
7499
  optionalityLabel: o = "",
7484
7500
  helpText: a = [],
7485
7501
  message: l = "",
7486
- ...c
7502
+ className: c = "",
7503
+ hasMarginBottom: f = !0,
7504
+ ...u
7487
7505
  }) => /* @__PURE__ */ i.jsx(
7488
7506
  ct,
7489
7507
  {
@@ -7494,6 +7512,8 @@ const Vi = ({
7494
7512
  optionalityLabel: o,
7495
7513
  helpText: a,
7496
7514
  message: l,
7515
+ className: c,
7516
+ hasMarginBottom: f,
7497
7517
  child: /* @__PURE__ */ i.jsx(
7498
7518
  fl,
7499
7519
  {
@@ -7503,7 +7523,7 @@ const Vi = ({
7503
7523
  type: t,
7504
7524
  state: r,
7505
7525
  disabled: n,
7506
- ...c
7526
+ ...u
7507
7527
  }
7508
7528
  )
7509
7529
  }
@@ -7537,7 +7557,7 @@ const Vi = ({
7537
7557
  "aria-readonly": r,
7538
7558
  tabIndex: r ? -1 : 0,
7539
7559
  style: { backgroundImage: gl },
7540
- className: B(ml({ disabled: r, state: e }), n),
7560
+ className: D(ml({ disabled: r, state: e }), n),
7541
7561
  ...t,
7542
7562
  children: s
7543
7563
  }
@@ -7550,7 +7570,9 @@ const Vi = ({
7550
7570
  optionalityLabel: s = "",
7551
7571
  helpText: o = [],
7552
7572
  message: a = "",
7553
- ...l
7573
+ className: l = "",
7574
+ hasMarginBottom: c = !0,
7575
+ ...f
7554
7576
  }) => /* @__PURE__ */ i.jsx(
7555
7577
  ct,
7556
7578
  {
@@ -7561,6 +7583,8 @@ const Vi = ({
7561
7583
  optionalityLabel: s,
7562
7584
  helpText: o,
7563
7585
  message: a,
7586
+ className: l,
7587
+ hasMarginBottom: c,
7564
7588
  child: /* @__PURE__ */ i.jsx(
7565
7589
  vl,
7566
7590
  {
@@ -7569,7 +7593,7 @@ const Vi = ({
7569
7593
  "aria-describedby": o && o.length > 0 ? "helptext_" + e : void 0,
7570
7594
  state: r,
7571
7595
  disabled: n,
7572
- ...l
7596
+ ...f
7573
7597
  }
7574
7598
  )
7575
7599
  }
@@ -7663,7 +7687,7 @@ const Vi = ({
7663
7687
  /* @__PURE__ */ i.jsx("div", { className: "ds-h-[3px] ds-w-[3px] ds-animate-blink ds-rounded-full ds-bg-neutrals-black [animation-delay:-0.15s]" }),
7664
7688
  /* @__PURE__ */ i.jsx("div", { className: "ds-h-[3px] ds-w-[3px] ds-animate-blink ds-rounded-full ds-bg-neutrals-black" })
7665
7689
  ] }) : null;
7666
- return /* @__PURE__ */ i.jsxs("div", { className: B("preflight ds-min-w-[4.875rem]", t), ...c, children: [
7690
+ return /* @__PURE__ */ i.jsxs("div", { className: D("preflight ds-min-w-[4.875rem]", t), ...c, children: [
7667
7691
  /* @__PURE__ */ i.jsxs("div", { className: "ds-flex ds-h-5 ds-items-center ds-justify-between", children: [
7668
7692
  /* @__PURE__ */ i.jsxs("div", { className: "progress-bar-label ds-flex ds-max-w-[calc(100%-3rem)] ds-overflow-hidden", children: [
7669
7693
  /* @__PURE__ */ i.jsx("p", { className: "ds-overflow-hidden ds-text-nowrap", children: r }),
@@ -7695,7 +7719,7 @@ const Vi = ({
7695
7719
  }, Dl = jl;
7696
7720
  export {
7697
7721
  Ml as Alert,
7698
- Bi as Badge,
7722
+ Hi as Badge,
7699
7723
  Nl as Button,
7700
7724
  Tl as Card,
7701
7725
  Sl as Checkbox,