@takecasper/acuity-design-system 1.14.2 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./assets/index.css";
2
2
  import * as sr from "react";
3
- import j, { useRef as R, useEffect as Q, useState as me, useLayoutEffect as Vn, createContext as le, useContext as ee, forwardRef as Dn, Fragment as ae, isValidElement as Hn, cloneElement as Bn, createElement as zn, useId as yr, useMemo as oe, useSyncExternalStore as Un, useReducer as Gn, createRef as Yn, useCallback as mr } from "react";
3
+ import j, { useState as me, useEffect as ne, useLayoutEffect as Vn, useRef as P, createContext as le, useContext as Q, forwardRef as Dn, Fragment as ae, isValidElement as Hn, cloneElement as Bn, createElement as zn, useId as yr, useMemo as oe, useSyncExternalStore as Un, useReducer as Gn, createRef as Yn, useCallback as mr } from "react";
4
4
  import { createPortal as Rt } from "react-dom";
5
5
  var Wr = { exports: {} }, er = {};
6
6
  /**
@@ -68,10 +68,10 @@ function qn() {
68
68
  S.unshift("Warning: " + h), Function.prototype.apply.call(console[l], console, S);
69
69
  }
70
70
  }
71
- var P = !1, U = !1, we = !1, q = !1, G = !1, K;
71
+ var R = !1, U = !1, we = !1, q = !1, G = !1, K;
72
72
  K = Symbol.for("react.module.reference");
73
- function re(l) {
74
- return !!(typeof l == "string" || typeof l == "function" || l === t || l === s || G || l === o || l === f || l === u || q || l === v || P || U || we || typeof l == "object" && l !== null && (l.$$typeof === g || l.$$typeof === p || l.$$typeof === a || l.$$typeof === d || l.$$typeof === c || // This needs to include all possible module reference object
73
+ function ee(l) {
74
+ return !!(typeof l == "string" || typeof l == "function" || l === t || l === s || G || l === o || l === f || l === u || q || l === v || R || U || we || typeof l == "object" && l !== null && (l.$$typeof === g || l.$$typeof === p || l.$$typeof === a || l.$$typeof === d || l.$$typeof === c || // This needs to include all possible module reference object
75
75
  // types supported by any Flight configuration anywhere since
76
76
  // we don't know which Flight build this will end up being used
77
77
  // with.
@@ -136,7 +136,7 @@ function qn() {
136
136
  function Se() {
137
137
  }
138
138
  Se.__reactDisabledLog = !0;
139
- function te() {
139
+ function re() {
140
140
  {
141
141
  if (z === 0) {
142
142
  fe = console.log, ve = console.info, pe = console.warn, H = console.error, ke = console.group, he = console.groupCollapsed, J = console.groupEnd;
@@ -226,7 +226,7 @@ function qn() {
226
226
  var M = Error.prepareStackTrace;
227
227
  Error.prepareStackTrace = void 0;
228
228
  var S;
229
- S = X.current, X.current = null, te();
229
+ S = X.current, X.current = null, re();
230
230
  try {
231
231
  if (h) {
232
232
  var T = function() {
@@ -589,7 +589,7 @@ Check the top-level render call using <` + m + ">.");
589
589
  }
590
590
  function ht(l, h, m, k, M, S) {
591
591
  {
592
- var T = re(l);
592
+ var T = ee(l);
593
593
  if (!T) {
594
594
  var L = "";
595
595
  (l === void 0 || typeof l == "object" && l !== null && Object.keys(l).length === 0) && (L += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
@@ -2434,7 +2434,7 @@ function gs(e) {
2434
2434
  return is.test(e);
2435
2435
  }
2436
2436
  function vs() {
2437
- const e = N("colors"), r = N("spacing"), n = N("blur"), t = N("brightness"), o = N("borderColor"), s = N("borderRadius"), a = N("borderSpacing"), d = N("borderWidth"), c = N("contrast"), f = N("grayscale"), u = N("hueRotate"), p = N("invert"), g = N("gap"), v = N("gradientColorStops"), C = N("gradientColorStopPositions"), x = N("inset"), b = N("margin"), w = N("opacity"), y = N("padding"), ue = N("saturate"), P = N("scale"), U = N("sepia"), we = N("skew"), q = N("space"), G = N("translate"), K = () => ["auto", "contain", "none"], re = () => ["auto", "hidden", "clip", "visible", "scroll"], se = () => ["auto", E, r], $ = () => [E, r], F = () => ["", Ee, Re], I = () => ["auto", _e, E], z = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], fe = () => ["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"], pe = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], H = () => ["", "0", E], ke = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], he = () => [_e, gr], J = () => [_e, E];
2437
+ const e = N("colors"), r = N("spacing"), n = N("blur"), t = N("brightness"), o = N("borderColor"), s = N("borderRadius"), a = N("borderSpacing"), d = N("borderWidth"), c = N("contrast"), f = N("grayscale"), u = N("hueRotate"), p = N("invert"), g = N("gap"), v = N("gradientColorStops"), C = N("gradientColorStopPositions"), x = N("inset"), b = N("margin"), w = N("opacity"), y = N("padding"), ue = N("saturate"), R = N("scale"), U = N("sepia"), we = N("skew"), q = N("space"), G = N("translate"), K = () => ["auto", "contain", "none"], ee = () => ["auto", "hidden", "clip", "visible", "scroll"], se = () => ["auto", E, r], $ = () => [E, r], F = () => ["", Ee, Re], I = () => ["auto", _e, E], z = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], fe = () => ["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"], pe = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], H = () => ["", "0", E], ke = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], he = () => [_e, gr], J = () => [_e, E];
2438
2438
  return {
2439
2439
  cacheSize: 500,
2440
2440
  separator: ":",
@@ -2564,21 +2564,21 @@ function vs() {
2564
2564
  * @see https://tailwindcss.com/docs/overflow
2565
2565
  */
2566
2566
  overflow: [{
2567
- overflow: re()
2567
+ overflow: ee()
2568
2568
  }],
2569
2569
  /**
2570
2570
  * Overflow X
2571
2571
  * @see https://tailwindcss.com/docs/overflow
2572
2572
  */
2573
2573
  "overflow-x": [{
2574
- "overflow-x": re()
2574
+ "overflow-x": ee()
2575
2575
  }],
2576
2576
  /**
2577
2577
  * Overflow Y
2578
2578
  * @see https://tailwindcss.com/docs/overflow
2579
2579
  */
2580
2580
  "overflow-y": [{
2581
- "overflow-y": re()
2581
+ "overflow-y": ee()
2582
2582
  }],
2583
2583
  /**
2584
2584
  * Overscroll Behavior
@@ -4058,21 +4058,21 @@ function vs() {
4058
4058
  * @see https://tailwindcss.com/docs/scale
4059
4059
  */
4060
4060
  scale: [{
4061
- scale: [P]
4061
+ scale: [R]
4062
4062
  }],
4063
4063
  /**
4064
4064
  * Scale X
4065
4065
  * @see https://tailwindcss.com/docs/scale
4066
4066
  */
4067
4067
  "scale-x": [{
4068
- "scale-x": [P]
4068
+ "scale-x": [R]
4069
4069
  }],
4070
4070
  /**
4071
4071
  * Scale Y
4072
4072
  * @see https://tailwindcss.com/docs/scale
4073
4073
  */
4074
4074
  "scale-y": [{
4075
- "scale-y": [P]
4075
+ "scale-y": [R]
4076
4076
  }],
4077
4077
  /**
4078
4078
  * Rotate
@@ -4463,7 +4463,7 @@ const Cs = de(
4463
4463
  "ds-rounded",
4464
4464
  "ds-px-4",
4465
4465
  "ds-py-4",
4466
- "ds-font-sans"
4466
+ "!ds-font-sans"
4467
4467
  ],
4468
4468
  {
4469
4469
  variants: {
@@ -4702,7 +4702,7 @@ const yt = (...e) => Me(Es(...e)), Nr = [
4702
4702
  // Need to specify the font because disabling preflight makes the button not inherit the font
4703
4703
  // Lato is defined as font-sans in our tailwind theme configuration
4704
4704
  // Check src/theme/theme.js
4705
- "ds-font-sans",
4705
+ "!ds-font-sans",
4706
4706
  "ds-rounded",
4707
4707
  "ds-text-base",
4708
4708
  "ds-font-semibold",
@@ -4743,8 +4743,8 @@ const yt = (...e) => Me(Es(...e)), Nr = [
4743
4743
  "ds-border-neutrals",
4744
4744
  "hover:ds-bg-neutrals-lighter",
4745
4745
  "hover:ds-border-neutrals-darker",
4746
- "active:ds-bg-acuity-blue-darkest",
4747
- "active:ds-border-acuity-blue-darkest",
4746
+ "active:ds-bg-neutrals-dark",
4747
+ "active:ds-border-neutrals-dark",
4748
4748
  "active:ds-text-neutrals-white",
4749
4749
  "focus-visible:ds-text-neutrals-black",
4750
4750
  "focus-visible:ds-bg-neutrals-lighter",
@@ -4873,10 +4873,10 @@ const yt = (...e) => Me(Es(...e)), Nr = [
4873
4873
  ] })
4874
4874
  }
4875
4875
  ) }), $s = Ls, Ts = ({
4876
- bodyContent: e = void 0,
4876
+ content: e = void 0,
4877
4877
  iconName: r = void 0,
4878
4878
  title: n = "",
4879
- footerContent: t = void 0,
4879
+ footer: t = void 0,
4880
4880
  className: o = ""
4881
4881
  }) => /* @__PURE__ */ i.jsxs(
4882
4882
  "div",
@@ -4931,42 +4931,40 @@ const yt = (...e) => Me(Es(...e)), Nr = [
4931
4931
  }
4932
4932
  }
4933
4933
  }
4934
- ), Yt = (e) => Me(Ms(e)), Ss = de(["preflight", "ds-font-base", "ds-ml-2", "ds-text-base"], {
4935
- variants: {
4936
- disabled: {
4937
- false: "ds-cursor-pointer",
4938
- true: "ds-text-neutrals"
4934
+ ), Yt = (e) => Me(Ms(e)), Ss = de(
4935
+ ["preflight", "ds-font-base", "!ds-font-sans", "ds-ml-2", "ds-text-base"],
4936
+ {
4937
+ variants: {
4938
+ disabled: {
4939
+ false: "ds-cursor-pointer",
4940
+ true: "ds-text-neutrals"
4941
+ }
4939
4942
  }
4940
4943
  }
4941
- }), Zt = (e) => Me(Ss(e)), Rs = ({
4942
- id: e = "",
4944
+ ), Zt = (e) => Me(Ss(e)), Rs = ({
4945
+ id: e,
4943
4946
  label: r = "",
4944
4947
  name: n = "",
4945
4948
  checked: t = !1,
4946
4949
  disabled: o = !1,
4947
4950
  indeterminate: s = !1,
4948
4951
  ...a
4949
- }) => {
4950
- const d = R(null);
4951
- return Q(() => {
4952
- d.current && (d.current.indeterminate = s);
4953
- }, [s, d]), /* @__PURE__ */ i.jsxs("div", { className: "ds-flex ds-h-4 ds-items-center", children: [
4954
- /* @__PURE__ */ i.jsx(
4955
- "input",
4956
- {
4957
- id: e,
4958
- name: n,
4959
- disabled: o,
4960
- type: "checkbox",
4961
- className: `ds-form-checkbox ${Yt({ disabled: o })} ds-rounded`,
4962
- checked: t,
4963
- ref: d,
4964
- ...a
4965
- }
4966
- ),
4967
- /* @__PURE__ */ i.jsx("label", { htmlFor: e, className: Zt({ disabled: o }), children: r })
4968
- ] });
4969
- }, Pa = Rs, De = "large", Ye = "medium", Ze = "small", qe = "extra-large", Lt = "h1", Ps = "h2", Ns = "h3", As = "div";
4952
+ }) => /* @__PURE__ */ i.jsxs("div", { className: "ds-flex ds-h-4 ds-items-center", children: [
4953
+ /* @__PURE__ */ i.jsx(
4954
+ "input",
4955
+ {
4956
+ id: e,
4957
+ name: n,
4958
+ disabled: o,
4959
+ type: "checkbox",
4960
+ className: `ds-form-checkbox ${Yt({ disabled: o })} ds-rounded`,
4961
+ checked: t,
4962
+ ref: (d) => d && (d.indeterminate = s),
4963
+ ...a
4964
+ }
4965
+ ),
4966
+ /* @__PURE__ */ i.jsx("label", { htmlFor: e, className: Zt({ disabled: o }), children: r })
4967
+ ] }), Pa = Rs, De = "large", Ye = "medium", Ze = "small", qe = "extra-large", Lt = "h1", Ps = "h2", Ns = "h3", As = "div";
4970
4968
  function Fs(e) {
4971
4969
  return {
4972
4970
  [De]: Lt,
@@ -4975,7 +4973,7 @@ function Fs(e) {
4975
4973
  [qe]: As
4976
4974
  }[e] || Lt;
4977
4975
  }
4978
- const Os = de("preflight ds-font-sans", {
4976
+ const Os = de("preflight !ds-font-sans", {
4979
4977
  variants: {
4980
4978
  size: {
4981
4979
  [Ze]: "ds-mb-3",
@@ -4984,7 +4982,7 @@ const Os = de("preflight ds-font-sans", {
4984
4982
  [qe]: "ds-mb-6"
4985
4983
  }
4986
4984
  }
4987
- }), vr = de("ds-text-neutrals-darker", {
4985
+ }), vr = de("ds-text-neutrals-darker !ds-font-sans", {
4988
4986
  variants: {
4989
4987
  size: {
4990
4988
  [Ze]: "ds-text-xl ds-font-semibold",
@@ -5059,7 +5057,7 @@ const Os = de("preflight ds-font-sans", {
5059
5057
  ] }), Na = Ds, Hs = de(
5060
5058
  [
5061
5059
  "preflight",
5062
- "ds-font-sans",
5060
+ "!ds-font-sans",
5063
5061
  "ds-inline-flex",
5064
5062
  "ds-items-center",
5065
5063
  "ds-gap-1",
@@ -5178,13 +5176,13 @@ function Oe() {
5178
5176
  }
5179
5177
  function Kr() {
5180
5178
  let [e] = me(Oe);
5181
- return Q(() => () => e.dispose(), [e]), e;
5179
+ return ne(() => () => e.dispose(), [e]), e;
5182
5180
  }
5183
5181
  let Z = (e, r) => {
5184
- Ve.isServer ? Q(e, r) : Vn(e, r);
5182
+ Ve.isServer ? ne(e, r) : Vn(e, r);
5185
5183
  };
5186
5184
  function Ce(e) {
5187
- let r = R(e);
5185
+ let r = P(e);
5188
5186
  return Z(() => {
5189
5187
  r.current = e;
5190
5188
  }, [e]), r;
@@ -5194,7 +5192,7 @@ let A = function(e) {
5194
5192
  return j.useCallback((...n) => r.current(...n), [r]);
5195
5193
  }, Ys = le(void 0);
5196
5194
  function Zs() {
5197
- return ee(Ys);
5195
+ return Q(Ys);
5198
5196
  }
5199
5197
  function ir(...e) {
5200
5198
  return Array.from(new Set(e.flatMap((r) => typeof r == "string" ? r.split(" ") : []))).filter(Boolean).join(" ");
@@ -5315,7 +5313,7 @@ function Js(e, r) {
5315
5313
  }
5316
5314
  let Vr = ce(Js), Xs = le(null);
5317
5315
  function Qs({ children: e }) {
5318
- let r = ee(Xs);
5316
+ let r = Q(Xs);
5319
5317
  if (!r)
5320
5318
  return j.createElement(j.Fragment, null, e);
5321
5319
  let { target: n } = r;
@@ -5326,8 +5324,8 @@ function ei(e, r = !0) {
5326
5324
  return Object.assign(e, { [Jt]: r });
5327
5325
  }
5328
5326
  function xe(...e) {
5329
- let r = R(e);
5330
- Q(() => {
5327
+ let r = P(e);
5328
+ ne(() => {
5331
5329
  r.current = e;
5332
5330
  }, [e]);
5333
5331
  let n = A((t) => {
@@ -5339,7 +5337,7 @@ function xe(...e) {
5339
5337
  let Jr = le(null);
5340
5338
  Jr.displayName = "DescriptionContext";
5341
5339
  function Xt() {
5342
- let e = ee(Jr);
5340
+ let e = Q(Jr);
5343
5341
  if (e === null) {
5344
5342
  let r = new Error("You used a <Description /> component, but it is not inside a relevant parent.");
5345
5343
  throw Error.captureStackTrace && Error.captureStackTrace(r, Xt), r;
@@ -5414,7 +5412,7 @@ function en(e, r, n = !0) {
5414
5412
  let s = o.getBoundingClientRect();
5415
5413
  s.x === 0 && s.y === 0 && s.width === 0 && s.height === 0 && r();
5416
5414
  });
5417
- Q(() => {
5415
+ ne(() => {
5418
5416
  if (!n)
5419
5417
  return;
5420
5418
  let o = e === null ? null : e instanceof HTMLElement ? e : e.current;
@@ -5525,7 +5523,7 @@ function Ci() {
5525
5523
  }
5526
5524
  function Cr(e, r, n) {
5527
5525
  let t = Ce(r);
5528
- Q(() => {
5526
+ ne(() => {
5529
5527
  function o(s) {
5530
5528
  t.current(s);
5531
5529
  }
@@ -5534,7 +5532,7 @@ function Cr(e, r, n) {
5534
5532
  }
5535
5533
  function nn(e, r, n) {
5536
5534
  let t = Ce(r);
5537
- Q(() => {
5535
+ ne(() => {
5538
5536
  function o(s) {
5539
5537
  t.current(s);
5540
5538
  }
@@ -5542,8 +5540,8 @@ function nn(e, r, n) {
5542
5540
  }, [e, n]);
5543
5541
  }
5544
5542
  function xi(e, r, n = !0) {
5545
- let t = R(!1);
5546
- Q(() => {
5543
+ let t = P(!1);
5544
+ ne(() => {
5547
5545
  requestAnimationFrame(() => {
5548
5546
  t.current = n;
5549
5547
  });
@@ -5566,7 +5564,7 @@ function xi(e, r, n = !0) {
5566
5564
  }
5567
5565
  return !pi(c, rn.Loose) && c.tabIndex !== -1 && a.preventDefault(), r(a, c);
5568
5566
  }
5569
- let s = R(null);
5567
+ let s = P(null);
5570
5568
  Cr("pointerdown", (a) => {
5571
5569
  var d, c;
5572
5570
  t.current && (s.current = ((c = (d = a.composedPath) == null ? void 0 : d.call(a)) == null ? void 0 : c[0]) || a.target);
@@ -5582,7 +5580,7 @@ function dr(...e) {
5582
5580
  }
5583
5581
  function on(e, r, n, t) {
5584
5582
  let o = Ce(n);
5585
- Q(() => {
5583
+ ne(() => {
5586
5584
  e = e != null ? e : window;
5587
5585
  function s(a) {
5588
5586
  o.current(a);
@@ -5715,8 +5713,8 @@ function Ti(e, r, n = () => [document.body]) {
5715
5713
  });
5716
5714
  }
5717
5715
  function Xr(e, r) {
5718
- let n = R([]), t = A(e);
5719
- Q(() => {
5716
+ let n = P([]), t = A(e);
5717
+ ne(() => {
5720
5718
  let o = [...n.current];
5721
5719
  for (let [s, a] of r.entries())
5722
5720
  if (n.current[s] !== a) {
@@ -5727,9 +5725,9 @@ function Xr(e, r) {
5727
5725
  }
5728
5726
  let Qr = le(null);
5729
5727
  Qr.displayName = "OpenClosedContext";
5730
- var ne = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(ne || {});
5728
+ var te = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(te || {});
5731
5729
  function et() {
5732
- return ee(Qr);
5730
+ return Q(Qr);
5733
5731
  }
5734
5732
  function Mi({ value: e, children: r }) {
5735
5733
  return j.createElement(Qr.Provider, { value: e }, r);
@@ -5748,8 +5746,8 @@ Si(() => {
5748
5746
  window.addEventListener("click", e, { capture: !0 }), window.addEventListener("mousedown", e, { capture: !0 }), window.addEventListener("focus", e, { capture: !0 }), document.body.addEventListener("click", e, { capture: !0 }), document.body.addEventListener("mousedown", e, { capture: !0 }), document.body.addEventListener("focus", e, { capture: !0 });
5749
5747
  });
5750
5748
  function sn(e) {
5751
- let r = A(e), n = R(!1);
5752
- Q(() => (n.current = !1, () => {
5749
+ let r = A(e), n = P(!1);
5750
+ ne(() => (n.current = !1, () => {
5753
5751
  n.current = !0, jr(() => {
5754
5752
  n.current && r();
5755
5753
  });
@@ -5768,13 +5766,13 @@ function cr() {
5768
5766
  }
5769
5767
  let an = le(!1);
5770
5768
  function Pi() {
5771
- return ee(an);
5769
+ return Q(an);
5772
5770
  }
5773
5771
  function Mt(e) {
5774
5772
  return j.createElement(an.Provider, { value: e.force }, e.children);
5775
5773
  }
5776
5774
  function Ni(e) {
5777
- let r = Pi(), n = ee(dn), t = dr(e), [o, s] = me(() => {
5775
+ let r = Pi(), n = Q(dn), t = dr(e), [o, s] = me(() => {
5778
5776
  var a;
5779
5777
  if (!r && n !== null)
5780
5778
  return (a = n.current) != null ? a : null;
@@ -5788,19 +5786,19 @@ function Ni(e) {
5788
5786
  let c = t.createElement("div");
5789
5787
  return c.setAttribute("id", "headlessui-portal-root"), t.body.appendChild(c);
5790
5788
  });
5791
- return Q(() => {
5789
+ return ne(() => {
5792
5790
  o !== null && (t != null && t.body.contains(o) || t == null || t.body.appendChild(o));
5793
- }, [o, t]), Q(() => {
5791
+ }, [o, t]), ne(() => {
5794
5792
  r || n !== null && s(n.current);
5795
5793
  }, [n, s, r]), o;
5796
5794
  }
5797
5795
  let ln = ae, Ai = ce(function(e, r) {
5798
- let n = e, t = R(null), o = xe(ei((u) => {
5796
+ let n = e, t = P(null), o = xe(ei((u) => {
5799
5797
  t.current = u;
5800
5798
  }), r), s = dr(t), a = Ni(t), [d] = me(() => {
5801
5799
  var u;
5802
5800
  return Ve.isServer ? null : (u = s == null ? void 0 : s.createElement("div")) != null ? u : null;
5803
- }), c = ee(zr), f = cr();
5801
+ }), c = Q(zr), f = cr();
5804
5802
  return Z(() => {
5805
5803
  !a || !d || a.contains(d) || (d.setAttribute("data-headlessui-portal", ""), a.appendChild(d));
5806
5804
  }, [a, d]), Z(() => {
@@ -5822,7 +5820,7 @@ function _i(e, r) {
5822
5820
  }
5823
5821
  let zr = le(null);
5824
5822
  function Wi() {
5825
- let e = ee(zr), r = R([]), n = A((s) => (r.current.push(s), e && e.register(s), () => t(s))), t = A((s) => {
5823
+ let e = Q(zr), r = P([]), n = A((s) => (r.current.push(s), e && e.register(s), () => t(s))), t = A((s) => {
5826
5824
  let a = r.current.indexOf(s);
5827
5825
  a !== -1 && r.current.splice(a, 1), e && e.unregister(s);
5828
5826
  }), o = oe(() => ({ register: n, unregister: t, portals: r }), [n, t, r]);
@@ -5845,7 +5843,7 @@ function Di() {
5845
5843
  }
5846
5844
  function Hi({ defaultContainers: e = [], portals: r, mainTreeNodeRef: n } = {}) {
5847
5845
  var t;
5848
- let o = R((t = n == null ? void 0 : n.current) != null ? t : null), s = dr(o), a = A(() => {
5846
+ let o = P((t = n == null ? void 0 : n.current) != null ? t : null), s = dr(o), a = A(() => {
5849
5847
  var d, c, f;
5850
5848
  let u = [];
5851
5849
  for (let p of e)
@@ -5866,7 +5864,7 @@ let rt = le(() => {
5866
5864
  rt.displayName = "StackContext";
5867
5865
  var Ur = ((e) => (e[e.Add = 0] = "Add", e[e.Remove = 1] = "Remove", e))(Ur || {});
5868
5866
  function Bi() {
5869
- return ee(rt);
5867
+ return Q(rt);
5870
5868
  }
5871
5869
  function zi({ children: e, onUpdate: r, type: n, element: t, enabled: o }) {
5872
5870
  let s = Bi(), a = A((...d) => {
@@ -5880,14 +5878,14 @@ function zi({ children: e, onUpdate: r, type: n, element: t, enabled: o }) {
5880
5878
  }, [a, n, t, o]), j.createElement(rt.Provider, { value: a }, e);
5881
5879
  }
5882
5880
  function ur() {
5883
- let e = R(!1);
5881
+ let e = P(!1);
5884
5882
  return Z(() => (e.current = !0, () => {
5885
5883
  e.current = !1;
5886
5884
  }), []), e;
5887
5885
  }
5888
5886
  var or = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(or || {});
5889
5887
  function Ui() {
5890
- let e = R(0);
5888
+ let e = P(0);
5891
5889
  return nn("keydown", (r) => {
5892
5890
  r.key === "Tab" && (e.current = r.shiftKey ? 1 : 0);
5893
5891
  }, !0), e;
@@ -5905,7 +5903,7 @@ function cn(e) {
5905
5903
  let Gi = "div";
5906
5904
  var Le = ((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))(Le || {});
5907
5905
  function Yi(e, r) {
5908
- let n = R(null), t = xe(n, r), { initialFocus: o, initialFocusFallback: s, containers: a, features: d = 30, ...c } = e;
5906
+ let n = P(null), t = xe(n, r), { initialFocus: o, initialFocusFallback: s, containers: a, features: d = 30, ...c } = e;
5909
5907
  cr() || (d = 1);
5910
5908
  let f = dr(n);
5911
5909
  Ji({ ownerDocument: f }, !!(d & 16));
@@ -5920,7 +5918,7 @@ function Yi(e, r) {
5920
5918
  lr(w, $e.Last, { skipElements: [b.relatedTarget, s] });
5921
5919
  } });
5922
5920
  });
5923
- }), v = Kr(), C = R(!1), x = { ref: t, onKeyDown(b) {
5921
+ }), v = Kr(), C = P(!1), x = { ref: t, onKeyDown(b) {
5924
5922
  b.key == "Tab" && (C.current = !0, v.requestAnimationFrame(() => {
5925
5923
  C.current = !1;
5926
5924
  }));
@@ -5936,7 +5934,7 @@ function Yi(e, r) {
5936
5934
  }
5937
5935
  let Zi = ce(Yi), qi = Object.assign(Zi, { features: Le });
5938
5936
  function Ki(e = !0) {
5939
- let r = R(Ae.slice());
5937
+ let r = P(Ae.slice());
5940
5938
  return Xr(([n], [t]) => {
5941
5939
  t === !0 && n === !1 && jr(() => {
5942
5940
  r.current.splice(0);
@@ -5955,7 +5953,7 @@ function Ji({ ownerDocument: e }, r) {
5955
5953
  });
5956
5954
  }
5957
5955
  function Xi({ ownerDocument: e, container: r, initialFocus: n, initialFocusFallback: t }, o) {
5958
- let s = !!(o & 2), a = R(null), d = ur();
5956
+ let s = !!(o & 2), a = P(null), d = ur();
5959
5957
  return Xr(() => {
5960
5958
  if (!s) {
5961
5959
  t != null && t.current && Te(t.current);
@@ -6017,7 +6015,7 @@ let ta = { 0(e, r) {
6017
6015
  } }, kr = le(null);
6018
6016
  kr.displayName = "DialogContext";
6019
6017
  function tt(e) {
6020
- let r = ee(kr);
6018
+ let r = Q(kr);
6021
6019
  if (r === null) {
6022
6020
  let n = new Error(`<${e} /> is missing a parent <Dialog /> component.`);
6023
6021
  throw Error.captureStackTrace && Error.captureStackTrace(n, tt), n;
@@ -6029,13 +6027,13 @@ function na(e, r) {
6029
6027
  }
6030
6028
  let oa = "div", sa = xr.RenderStrategy | xr.Static;
6031
6029
  function ia(e, r) {
6032
- let n = yr(), { id: t = `headlessui-dialog-${n}`, open: o, onClose: s, initialFocus: a, role: d = "dialog", autoFocus: c = !0, __demoMode: f = !1, ...u } = e, [p, g] = me(0), v = R(!1);
6030
+ let n = yr(), { id: t = `headlessui-dialog-${n}`, open: o, onClose: s, initialFocus: a, role: d = "dialog", autoFocus: c = !0, __demoMode: f = !1, ...u } = e, [p, g] = me(0), v = P(!1);
6033
6031
  d = function() {
6034
6032
  return d === "dialog" || d === "alertdialog" ? d : (v.current || (v.current = !0, console.warn(`Invalid role [${d}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
6035
6033
  }();
6036
6034
  let C = et();
6037
- o === void 0 && C !== null && (o = (C & ne.Open) === ne.Open);
6038
- let x = R(null), b = xe(x, r), w = dr(x), y = e.hasOwnProperty("open") || C !== null, ue = e.hasOwnProperty("onClose");
6035
+ o === void 0 && C !== null && (o = (C & te.Open) === te.Open);
6036
+ let x = P(null), b = xe(x, r), w = dr(x), y = e.hasOwnProperty("open") || C !== null, ue = e.hasOwnProperty("onClose");
6039
6037
  if (!y && !ue)
6040
6038
  throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
6041
6039
  if (!y)
@@ -6046,10 +6044,10 @@ function ia(e, r) {
6046
6044
  throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${o}`);
6047
6045
  if (typeof s != "function")
6048
6046
  throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${s}`);
6049
- let P = o ? 0 : 1, [U, we] = Gn(na, { titleId: null, descriptionId: null, panelRef: Yn() }), q = A(() => s(!1)), G = A((O) => we({ type: 0, id: O })), K = cr() ? P === 0 : !1, re = p > 1, se = ee(kr) !== null, [$, F] = Wi(), I = { get current() {
6047
+ let R = o ? 0 : 1, [U, we] = Gn(na, { titleId: null, descriptionId: null, panelRef: Yn() }), q = A(() => s(!1)), G = A((O) => we({ type: 0, id: O })), K = cr() ? R === 0 : !1, ee = p > 1, se = Q(kr) !== null, [$, F] = Wi(), I = { get current() {
6050
6048
  var O;
6051
6049
  return (O = U.panelRef.current) != null ? O : x.current;
6052
- } }, { resolveContainers: z, mainTreeNodeRef: fe, MainTreeNode: ve } = Hi({ portals: $, defaultContainers: [I] }), pe = re ? "parent" : "leaf", H = C !== null ? (C & ne.Closing) === ne.Closing : !1, ke = re || H ? !1 : K;
6050
+ } }, { resolveContainers: z, mainTreeNodeRef: fe, MainTreeNode: ve } = Hi({ portals: $, defaultContainers: [I] }), pe = ee ? "parent" : "leaf", H = C !== null ? (C & te.Closing) === te.Closing : !1, ke = ee || H ? !1 : K;
6053
6051
  li({ allowed: A(() => {
6054
6052
  var O, be;
6055
6053
  return [(be = (O = x.current) == null ? void 0 : O.closest("[data-headlessui-portal]")) != null ? be : null];
@@ -6058,15 +6056,15 @@ function ia(e, r) {
6058
6056
  return [(be = (O = fe.current) == null ? void 0 : O.closest("body > *:not(#headlessui-portal-root)")) != null ? be : null];
6059
6057
  }) }, f ? !1 : ke), xi(z, (O) => {
6060
6058
  O.preventDefault(), q();
6061
- }, !(!K || re));
6062
- let J = !(re || P !== 0);
6059
+ }, !(!K || ee));
6060
+ let J = !(ee || R !== 0);
6063
6061
  on(w == null ? void 0 : w.defaultView, "keydown", (O) => {
6064
6062
  J && (O.defaultPrevented || O.key === Qt.Escape && (O.preventDefault(), O.stopPropagation(), q()));
6065
- }), Ti(w, f ? !1 : !(H || P !== 0 || se), z), en(x, q, P === 0);
6066
- let [te, Ke] = ri(), X = oe(() => [{ dialogState: P, close: q, setTitleId: G }, U], [P, U, q, G]), V = oe(() => ({ open: P === 0 }), [P]), D = { ref: b, id: t, role: d, tabIndex: -1, "aria-modal": P === 0 ? !0 : void 0, "aria-labelledby": U.titleId, "aria-describedby": te }, Je = !Di(), ye = K ? B(pe, { parent: Le.RestoreFocus, leaf: Le.All & ~Le.FocusLock }) : Le.None;
6067
- return c && (ye |= Le.AutoFocus), Je || (ye &= ~Le.InitialFocus), f && (ye = Le.None), j.createElement(zi, { type: "Dialog", enabled: P === 0, element: x, onUpdate: A((O, be) => {
6063
+ }), Ti(w, f ? !1 : !(H || R !== 0 || se), z), en(x, q, R === 0);
6064
+ let [re, Ke] = ri(), X = oe(() => [{ dialogState: R, close: q, setTitleId: G }, U], [R, U, q, G]), V = oe(() => ({ open: R === 0 }), [R]), D = { ref: b, id: t, role: d, tabIndex: -1, "aria-modal": R === 0 ? !0 : void 0, "aria-labelledby": U.titleId, "aria-describedby": re }, Je = !Di(), ye = K ? B(pe, { parent: Le.RestoreFocus, leaf: Le.All & ~Le.FocusLock }) : Le.None;
6065
+ return c && (ye |= Le.AutoFocus), Je || (ye &= ~Le.InitialFocus), f && (ye = Le.None), j.createElement(zi, { type: "Dialog", enabled: R === 0, element: x, onUpdate: A((O, be) => {
6068
6066
  be === "Dialog" && B(O, { [Ur.Add]: () => g((Xe) => Xe + 1), [Ur.Remove]: () => g((Xe) => Xe - 1) });
6069
- }) }, j.createElement(Mt, { force: !0 }, j.createElement(St, null, j.createElement(kr.Provider, { value: X }, j.createElement(St.Group, { target: x }, j.createElement(Mt, { force: !1 }, j.createElement(Ke, { slot: V, name: "Dialog.Description" }, j.createElement(F, null, j.createElement(qi, { initialFocus: a, initialFocusFallback: x, containers: z, features: ye }, j.createElement(ai, { value: q }, ge({ ourProps: D, theirProps: u, slot: V, defaultTag: oa, features: sa, visible: P === 0, name: "Dialog" })))))))))), j.createElement(Qs, null, j.createElement(ve, null)));
6067
+ }) }, j.createElement(Mt, { force: !0 }, j.createElement(St, null, j.createElement(kr.Provider, { value: X }, j.createElement(St.Group, { target: x }, j.createElement(Mt, { force: !1 }, j.createElement(Ke, { slot: V, name: "Dialog.Description" }, j.createElement(F, null, j.createElement(qi, { initialFocus: a, initialFocusFallback: x, containers: z, features: ye }, j.createElement(ai, { value: q }, ge({ ourProps: D, theirProps: u, slot: V, defaultTag: oa, features: sa, visible: R === 0, name: "Dialog" })))))))))), j.createElement(Qs, null, j.createElement(ve, null)));
6070
6068
  }
6071
6069
  let aa = "div";
6072
6070
  function la(e, r) {
@@ -6078,7 +6076,7 @@ function la(e, r) {
6078
6076
  let da = "h2";
6079
6077
  function ca(e, r) {
6080
6078
  let n = yr(), { id: t = `headlessui-dialog-title-${n}`, ...o } = e, [{ dialogState: s, setTitleId: a }] = tt("Dialog.Title"), d = xe(r);
6081
- Q(() => (a(t), () => a(null)), [t, a]);
6079
+ ne(() => (a(t), () => a(null)), [t, a]);
6082
6080
  let c = oe(() => ({ open: s === 0 }), [s]);
6083
6081
  return ge({ ourProps: { ref: d, id: t }, theirProps: o, slot: c, defaultTag: da, name: "Dialog.Title" });
6084
6082
  }
@@ -6152,7 +6150,7 @@ function va(e, { inFlight: r, prepare: n }) {
6152
6150
  e.style.transition = "none", n(), e.offsetHeight, e.style.transition = t;
6153
6151
  }
6154
6152
  function ba({ container: e, direction: r, classes: n, onStart: t, onStop: o }) {
6155
- let s = ur(), a = Kr(), d = R(!1);
6153
+ let s = ur(), a = Kr(), d = P(!1);
6156
6154
  Z(() => {
6157
6155
  if (r === "idle" || !s.current)
6158
6156
  return;
@@ -6174,13 +6172,13 @@ let Er = le(null);
6174
6172
  Er.displayName = "TransitionContext";
6175
6173
  var Ca = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(Ca || {});
6176
6174
  function xa() {
6177
- let e = ee(Er);
6175
+ let e = Q(Er);
6178
6176
  if (e === null)
6179
6177
  throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
6180
6178
  return e;
6181
6179
  }
6182
6180
  function wa() {
6183
- let e = ee(Lr);
6181
+ let e = Q(Lr);
6184
6182
  if (e === null)
6185
6183
  throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
6186
6184
  return e;
@@ -6191,7 +6189,7 @@ function $r(e) {
6191
6189
  return "children" in e ? $r(e.children) : e.current.filter(({ el: r }) => r.current !== null).filter(({ state: r }) => r === "visible").length > 0;
6192
6190
  }
6193
6191
  function mn(e, r) {
6194
- let n = Ce(e), t = R([]), o = ur(), s = Kr(), a = A((v, C = Fe.Hidden) => {
6192
+ let n = Ce(e), t = P([]), o = ur(), s = Kr(), a = A((v, C = Fe.Hidden) => {
6195
6193
  let x = t.current.findIndex(({ el: b }) => b === v);
6196
6194
  x !== -1 && (B(C, { [Fe.Unmount]() {
6197
6195
  t.current.splice(x, 1);
@@ -6204,7 +6202,7 @@ function mn(e, r) {
6204
6202
  }), d = A((v) => {
6205
6203
  let C = t.current.find(({ el: x }) => x === v);
6206
6204
  return C ? C.state !== "visible" && (C.state = "visible") : t.current.push({ el: v, state: "visible" }), () => a(v, Fe.Unmount);
6207
- }), c = R([]), f = R(Promise.resolve()), u = R({ enter: [], leave: [], idle: [] }), p = A((v, C, x) => {
6205
+ }), c = P([]), f = P(Promise.resolve()), u = P({ enter: [], leave: [], idle: [] }), p = A((v, C, x) => {
6208
6206
  c.current.splice(0), r && (r.chains.current[C] = r.chains.current[C].filter(([b]) => b !== v)), r == null || r.chains.current[C].push([v, new Promise((b) => {
6209
6207
  c.current.push(b);
6210
6208
  })]), r == null || r.chains.current[C].push([v, new Promise((b) => {
@@ -6221,16 +6219,16 @@ function mn(e, r) {
6221
6219
  let gn = ae, vn = xr.RenderStrategy;
6222
6220
  function ka(e, r) {
6223
6221
  var n, t, o;
6224
- let { beforeEnter: s, afterEnter: a, beforeLeave: d, afterLeave: c, enter: f, enterFrom: u, enterTo: p, entered: g, leave: v, leaveFrom: C, leaveTo: x, ...b } = e, w = R(null), y = hn(e), ue = xe(...y ? [w, r] : r === null ? [] : [r]), P = (n = b.unmount) == null || n ? Fe.Unmount : Fe.Hidden, { show: U, appear: we, initial: q } = xa(), [G, K] = me(U ? "visible" : "hidden"), re = wa(), { register: se, unregister: $ } = re;
6222
+ let { beforeEnter: s, afterEnter: a, beforeLeave: d, afterLeave: c, enter: f, enterFrom: u, enterTo: p, entered: g, leave: v, leaveFrom: C, leaveTo: x, ...b } = e, w = P(null), y = hn(e), ue = xe(...y ? [w, r] : r === null ? [] : [r]), R = (n = b.unmount) == null || n ? Fe.Unmount : Fe.Hidden, { show: U, appear: we, initial: q } = xa(), [G, K] = me(U ? "visible" : "hidden"), ee = wa(), { register: se, unregister: $ } = ee;
6225
6223
  Z(() => se(w), [se, w]), Z(() => {
6226
- if (P === Fe.Hidden && w.current) {
6224
+ if (R === Fe.Hidden && w.current) {
6227
6225
  if (U && G !== "visible") {
6228
6226
  K("visible");
6229
6227
  return;
6230
6228
  }
6231
6229
  return B(G, { hidden: () => $(w), visible: () => se(w) });
6232
6230
  }
6233
- }, [G, w, se, $, U, P]);
6231
+ }, [G, w, se, $, U, R]);
6234
6232
  let F = Ce({ base: Ne(b.className), enter: Ne(f), enterFrom: Ne(u), enterTo: Ne(p), entered: Ne(g), leave: Ne(v), leaveFrom: Ne(C), leaveTo: Ne(x) }), I = Ce({ beforeEnter: s, afterEnter: a, beforeLeave: d, afterLeave: c }), z = cr();
6235
6233
  Z(() => {
6236
6234
  if (y && z && G === "visible" && w.current === null)
@@ -6238,38 +6236,38 @@ function ka(e, r) {
6238
6236
  }, [w, G, z, y]);
6239
6237
  let fe = q && !we, ve = we && U && q, pe = ve ? "enter" : !z || fe ? "idle" : U ? "enter" : "leave", H = ha(0), ke = A((X) => B(X, { enter: () => {
6240
6238
  var V, D;
6241
- H.addFlag(ne.Opening), (D = (V = I.current).beforeEnter) == null || D.call(V);
6239
+ H.addFlag(te.Opening), (D = (V = I.current).beforeEnter) == null || D.call(V);
6242
6240
  }, leave: () => {
6243
6241
  var V, D;
6244
- H.addFlag(ne.Closing), (D = (V = I.current).beforeLeave) == null || D.call(V);
6242
+ H.addFlag(te.Closing), (D = (V = I.current).beforeLeave) == null || D.call(V);
6245
6243
  }, idle: () => {
6246
6244
  } })), he = A((X) => B(X, { enter: () => {
6247
6245
  var V, D;
6248
- H.removeFlag(ne.Opening), (D = (V = I.current).afterEnter) == null || D.call(V);
6246
+ H.removeFlag(te.Opening), (D = (V = I.current).afterEnter) == null || D.call(V);
6249
6247
  }, leave: () => {
6250
6248
  var V, D;
6251
- H.removeFlag(ne.Closing), (D = (V = I.current).afterLeave) == null || D.call(V);
6249
+ H.removeFlag(te.Closing), (D = (V = I.current).afterLeave) == null || D.call(V);
6252
6250
  }, idle: () => {
6253
- } })), J = R(!1), Se = mn(() => {
6251
+ } })), J = P(!1), Se = mn(() => {
6254
6252
  J.current || (K("hidden"), $(w));
6255
- }, re);
6253
+ }, ee);
6256
6254
  ba({ container: w, classes: F, direction: pe, onStart: Ce((X) => {
6257
6255
  J.current = !0, Se.onStart(w, X, ke);
6258
6256
  }), onStop: Ce((X) => {
6259
6257
  J.current = !1, Se.onStop(w, X, he), X === "leave" && !$r(Se) && (K("hidden"), $(w));
6260
6258
  }) });
6261
- let te = b, Ke = { ref: ue };
6262
- return ve ? te = { ...te, className: ir(b.className, ...F.current.enter, ...F.current.enterFrom) } : J.current ? (te.className = ir(b.className, (t = w.current) == null ? void 0 : t.className), te.className === "" && delete te.className) : (te.className = ir(b.className, (o = w.current) == null ? void 0 : o.className, ...B(pe, { enter: [...F.current.enterTo, ...F.current.entered], leave: F.current.leaveTo, idle: [] })), te.className === "" && delete te.className), j.createElement(Lr.Provider, { value: Se }, j.createElement(Mi, { value: B(G, { visible: ne.Open, hidden: ne.Closed }) | H.flags }, ge({ ourProps: Ke, theirProps: te, defaultTag: gn, features: vn, visible: G === "visible", name: "Transition.Child" })));
6259
+ let re = b, Ke = { ref: ue };
6260
+ return ve ? re = { ...re, className: ir(b.className, ...F.current.enter, ...F.current.enterFrom) } : J.current ? (re.className = ir(b.className, (t = w.current) == null ? void 0 : t.className), re.className === "" && delete re.className) : (re.className = ir(b.className, (o = w.current) == null ? void 0 : o.className, ...B(pe, { enter: [...F.current.enterTo, ...F.current.entered], leave: F.current.leaveTo, idle: [] })), re.className === "" && delete re.className), j.createElement(Lr.Provider, { value: Se }, j.createElement(Mi, { value: B(G, { visible: te.Open, hidden: te.Closed }) | H.flags }, ge({ ourProps: Ke, theirProps: re, defaultTag: gn, features: vn, visible: G === "visible", name: "Transition.Child" })));
6263
6261
  }
6264
6262
  function ya(e, r) {
6265
- let { show: n, appear: t = !1, unmount: o = !0, ...s } = e, a = R(null), d = hn(e), c = xe(...d ? [a, r] : r === null ? [] : [r]);
6263
+ let { show: n, appear: t = !1, unmount: o = !0, ...s } = e, a = P(null), d = hn(e), c = xe(...d ? [a, r] : r === null ? [] : [r]);
6266
6264
  cr();
6267
6265
  let f = et();
6268
- if (n === void 0 && f !== null && (n = (f & ne.Open) === ne.Open), n === void 0)
6266
+ if (n === void 0 && f !== null && (n = (f & te.Open) === te.Open), n === void 0)
6269
6267
  throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
6270
6268
  let [u, p] = me(n ? "visible" : "hidden"), g = mn(() => {
6271
6269
  n || p("hidden");
6272
- }), [v, C] = me(!0), x = R([n]);
6270
+ }), [v, C] = me(!0), x = P([n]);
6273
6271
  Z(() => {
6274
6272
  v !== !1 && x.current[x.current.length - 1] !== n && (x.current.push(n), C(!1));
6275
6273
  }, [x, n]);
@@ -6278,16 +6276,16 @@ function ya(e, r) {
6278
6276
  n ? p("visible") : !$r(g) && a.current !== null && p("hidden");
6279
6277
  }, [n, g]);
6280
6278
  let w = { unmount: o }, y = A(() => {
6281
- var P;
6282
- v && C(!1), (P = e.beforeEnter) == null || P.call(e);
6279
+ var R;
6280
+ v && C(!1), (R = e.beforeEnter) == null || R.call(e);
6283
6281
  }), ue = A(() => {
6284
- var P;
6285
- v && C(!1), (P = e.beforeLeave) == null || P.call(e);
6282
+ var R;
6283
+ v && C(!1), (R = e.beforeLeave) == null || R.call(e);
6286
6284
  });
6287
6285
  return j.createElement(Lr.Provider, { value: g }, j.createElement(Er.Provider, { value: b }, ge({ ourProps: { ...w, as: ae, children: j.createElement(bn, { ref: c, ...w, ...s, beforeEnter: y, beforeLeave: ue }) }, theirProps: {}, defaultTag: ae, features: vn, visible: u === "visible", name: "Transition" })));
6288
6286
  }
6289
6287
  function ja(e, r) {
6290
- let n = ee(Er) !== null, t = et() !== null;
6288
+ let n = Q(Er) !== null, t = et() !== null;
6291
6289
  return j.createElement(j.Fragment, null, !n && t ? j.createElement(Gr, { ref: r, ...e }) : j.createElement(bn, { ref: r, ...e }));
6292
6290
  }
6293
6291
  let Gr = ce(ya), bn = ce(ka), Yr = ce(ja), Ea = Object.assign(Gr, { Child: Yr, Root: Gr });