@clearstory/drywall-react 5.2.1 → 5.3.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.
Files changed (90) hide show
  1. package/dist/{Accordion-m2AFrwDc.js → Accordion-DsTwQkV4.js} +68 -78
  2. package/dist/{AccordionSummary-Db2tRAW5.js → AccordionSummary-CmaoAjhY.js} +1 -1
  3. package/dist/{AdapterDayjs-BeNOjkDj.js → AdapterDayjs-CROwpFLu.js} +1 -1
  4. package/dist/{Alert-CUOGimrv.js → Alert-CMRw5H2i.js} +81 -81
  5. package/dist/{ArrowDropDown-CJcUO7Km.js → ArrowDropDown-CpR6Sb-x.js} +1 -1
  6. package/dist/{Autocomplete-BG3jpE2X.js → Autocomplete-ByiENcHd.js} +337 -328
  7. package/dist/{Backdrop-CfSoI3NV.js → Backdrop-CvXmU9nP.js} +32 -33
  8. package/dist/{Breadcrumbs-DCnGkMd5.js → Breadcrumbs-C6IvNkJk.js} +1 -1
  9. package/dist/{Button-CdA9C690.js → Button-CUl6Z1bM.js} +1 -1
  10. package/dist/{ButtonBase-es4rY3j-.js → ButtonBase-sOMllYPF.js} +1 -1
  11. package/dist/{ButtonGroup-Btb5I3qo.js → ButtonGroup-BCAFY0lq.js} +15 -18
  12. package/dist/{CardActionArea-DFoDWYk5.js → CardActionArea-BOqtC3NS.js} +13 -14
  13. package/dist/{Checkbox-l14tfKVr.js → Checkbox-0V6Yy2lG.js} +1 -1
  14. package/dist/{Chip-Dvsr-37n.js → Chip-DAwDUQgy.js} +1 -1
  15. package/dist/{Collapse-BorUfOHf.js → Collapse-C2AFUmVW.js} +1 -1
  16. package/dist/{Datepicker-D3cWtwmS.js → Datepicker-BbdXCdvk.js} +27 -16
  17. package/dist/{Dialog-Cn2dsmZm.js → Dialog-oPKzro59.js} +24 -23
  18. package/dist/{Drawer-BVvVj14Z.js → Drawer-C5QtOOvf.js} +1 -1
  19. package/dist/{IconButton-C233MDPx.js → IconButton-CxPeGp7M.js} +1 -1
  20. package/dist/{InputBase-BM3Auzz5.js → InputBase-C6Ryue4Q.js} +1 -1
  21. package/dist/{KeyboardArrowRight-Cm6Izw7f.js → KeyboardArrowRight-Blb72ZVb.js} +2 -2
  22. package/dist/{Link-B6cIxbWI.js → Link-CaDghPux.js} +1 -1
  23. package/dist/{ListItem-ZE8vLL1k.js → ListItem-Cy6ddrqC.js} +1 -1
  24. package/dist/{ListItemButton-DQtMbD5o.js → ListItemButton-D17P7zbm.js} +1 -1
  25. package/dist/{Menu-BExv75wS.js → Menu-CCiom50Z.js} +1 -1
  26. package/dist/{MenuItem-D15dnYfh.js → MenuItem-DHXbU6OE.js} +1 -1
  27. package/dist/{Modal-DWjk-ELn.js → Modal-BC16DZHY.js} +136 -134
  28. package/dist/{Popover-CsFfsZ3j.js → Popover-BV7s_KXx.js} +2 -2
  29. package/dist/{Radio-Bd2tUvwi.js → Radio-BVPgbnjg.js} +1 -1
  30. package/dist/{Select-De55ndN6.js → Select-NMI0Dg3g.js} +281 -270
  31. package/dist/{StepButton-BGCwBo-2.js → StepButton-yiMA6Gky.js} +1 -1
  32. package/dist/{StepContent-DP-2AduZ.js → StepContent-DoTaN9XK.js} +1 -1
  33. package/dist/{Switch-UrF12x0u.js → Switch-9nD-9uqh.js} +1 -1
  34. package/dist/{SwitchBase-CbbeqU9c.js → SwitchBase-D6IsSQaW.js} +34 -34
  35. package/dist/{Tab-CfdValV7.js → Tab-mGJoNbh1.js} +1 -1
  36. package/dist/{TablePagination-DfEbbPT0.js → TablePagination-CmvSEXbm.js} +5 -5
  37. package/dist/{Tabs-b6WnXeJW.js → Tabs-CLLc_rdV.js} +3 -3
  38. package/dist/{ToggleButton-DktXGko4.js → ToggleButton-ChGvFY9f.js} +1 -1
  39. package/dist/components/Accordion/index.js +1 -1
  40. package/dist/components/AccordionSummary/index.js +1 -1
  41. package/dist/components/Alert/index.js +1 -1
  42. package/dist/components/Autocomplete/Autocomplete.js +4 -3
  43. package/dist/components/Autocomplete/index.js +1 -1
  44. package/dist/components/AutocompleteControl/AutocompleteControl.js +7 -6
  45. package/dist/components/Backdrop/index.js +1 -1
  46. package/dist/components/Breadcrumbs/index.js +1 -1
  47. package/dist/components/Button/index.js +1 -1
  48. package/dist/components/ButtonBase/index.js +1 -1
  49. package/dist/components/ButtonGroup/index.js +1 -1
  50. package/dist/components/CardActionArea/index.js +1 -1
  51. package/dist/components/Checkbox/index.js +1 -1
  52. package/dist/components/Chip/index.js +1 -1
  53. package/dist/components/Collapse/index.js +1 -1
  54. package/dist/components/Datepicker/Datepicker.js +2 -2
  55. package/dist/components/Datepicker/index.js +2 -2
  56. package/dist/components/DatepickerControl/DatepickerControl.js +2 -1
  57. package/dist/components/DescriptionList/DescriptionList.js +13 -4
  58. package/dist/components/Dialog/index.js +1 -1
  59. package/dist/components/DialogClose/DialogClose.js +4 -3
  60. package/dist/components/Drawer/index.js +1 -1
  61. package/dist/components/IconButton/index.js +1 -1
  62. package/dist/components/Input/Input.js +1 -1
  63. package/dist/components/InputControl/InputControl.js +6 -5
  64. package/dist/components/Link/index.js +1 -1
  65. package/dist/components/ListItem/index.js +1 -1
  66. package/dist/components/ListItemButton/index.js +1 -1
  67. package/dist/components/Menu/index.js +1 -1
  68. package/dist/components/MenuItem/index.js +1 -1
  69. package/dist/components/NumberInputControl/NumberInputControl.js +1 -0
  70. package/dist/components/Popover/index.js +1 -1
  71. package/dist/components/Radio/index.js +1 -1
  72. package/dist/components/Select/Select.js +1 -1
  73. package/dist/components/Select/index.js +1 -1
  74. package/dist/components/SelectControl/SelectControl.js +1 -0
  75. package/dist/components/StepButton/index.js +1 -1
  76. package/dist/components/StepContent/index.js +1 -1
  77. package/dist/components/Switch/index.js +1 -1
  78. package/dist/components/Tab/index.js +1 -1
  79. package/dist/components/TablePagination/index.js +1 -1
  80. package/dist/components/Tabs/index.js +1 -1
  81. package/dist/components/ToastContainer/useToast.js +5 -4
  82. package/dist/components/ToggleButton/index.js +1 -1
  83. package/dist/elementTypeAcceptingRef-xVpq_4jW.js +24 -0
  84. package/dist/icons/SparkleIcon.d.ts +5 -0
  85. package/dist/icons/SparkleIcon.js +9 -0
  86. package/dist/icons/index.d.ts +1 -0
  87. package/dist/icons/index.js +128 -126
  88. package/dist/main.js +579 -577
  89. package/package.json +8 -8
  90. package/dist/elementTypeAcceptingRef-I_eZHB1B.js +0 -23
@@ -10,7 +10,7 @@ import { u as V } from "./DefaultPropsProvider-CE6KNOqW.js";
10
10
  import { u as F } from "./useEnhancedEffect-CJGo-L3B.js";
11
11
  import { u as S } from "./useForkRef-9kN4DArm.js";
12
12
  import { c as E } from "./composeClasses-2Ou-RZJr.js";
13
- import { B as G } from "./ButtonBase-es4rY3j-.js";
13
+ import { B as G } from "./ButtonBase-sOMllYPF.js";
14
14
  const P = (o, s) => {
15
15
  const {
16
16
  ownerState: e
@@ -11,7 +11,7 @@ import { jsx as E } from "react/jsx-runtime";
11
11
  import { u as J } from "./DefaultPropsProvider-CE6KNOqW.js";
12
12
  import { u as Q } from "./useSlotProps-DzlqyROF.js";
13
13
  import { c as X } from "./composeClasses-2Ou-RZJr.js";
14
- import { c as Y, P as Z } from "./Popover-CsFfsZ3j.js";
14
+ import { c as Y, P as Z } from "./Popover-BV7s_KXx.js";
15
15
  import { M as $ } from "./MenuList-C5RKUMIo.js";
16
16
  import { H as oo } from "./HTMLElementType-Co_vUhOX.js";
17
17
  function eo(t) {
@@ -11,7 +11,7 @@ import { u as U } from "./DefaultPropsProvider-CE6KNOqW.js";
11
11
  import { u as j } from "./useEnhancedEffect-CJGo-L3B.js";
12
12
  import { u as D } from "./useForkRef-9kN4DArm.js";
13
13
  import { c as F } from "./composeClasses-2Ou-RZJr.js";
14
- import { B as G } from "./ButtonBase-es4rY3j-.js";
14
+ import { B as G } from "./ButtonBase-sOMllYPF.js";
15
15
  import { l as I } from "./listItemIconClasses-LHpZGozK.js";
16
16
  import { l as M } from "./listItemTextClasses-BIe1gxVs.js";
17
17
  import { d as $ } from "./dividerClasses-pnfF5xNS.js";
@@ -3,8 +3,8 @@ import { P as n } from "./index-B5q5ym9h.js";
3
3
  import { c as Q } from "./clsx-OuTLNxxd.js";
4
4
  import { m as be } from "./memoTheme-D7rECXXN.js";
5
5
  import { g as he } from "./getScrollbarSize-ChzNFR-0.js";
6
- import { o as q } from "./ownerWindow-niciwP7I.js";
7
- import { o as M } from "./ownerDocument-CUrv0DIK.js";
6
+ import { o as $ } from "./ownerWindow-niciwP7I.js";
7
+ import { o as C } from "./ownerDocument-CUrv0DIK.js";
8
8
  import { u as se } from "./useForkRef-9kN4DArm.js";
9
9
  import { u as Z } from "./useEventCallback-BAQJJ3ye.js";
10
10
  import { c as ee } from "./createChainedFunction-C0nujS3O.js";
@@ -12,26 +12,26 @@ import { e as ge } from "./mergeSlotProps-CbCv_7BY.js";
12
12
  import { g as Ee } from "./generateUtilityClass-BhfUaMgk.js";
13
13
  import { g as Te } from "./generateUtilityClasses-E9gROIFd.js";
14
14
  import { u as te } from "./useSlot-CoTIuujp.js";
15
- import { jsxs as ie, jsx as B } from "react/jsx-runtime";
15
+ import { jsxs as ie, jsx as D } from "react/jsx-runtime";
16
16
  import { u as ye } from "./DefaultPropsProvider-CE6KNOqW.js";
17
17
  import { s as ae } from "./styled-BKpRY52y.js";
18
18
  import { P as xe } from "./Portal-DdS5LtfN.js";
19
19
  import { g as Re } from "./getReactElementRef-DA-Xf2PF.js";
20
- import { a as U } from "./getActiveElement-DQsgVmYn.js";
20
+ import { a as K } from "./getActiveElement-DQsgVmYn.js";
21
21
  import { e as ce } from "./elementAcceptingRef-DuLJFUGe.js";
22
22
  import { e as Pe } from "./exactProp-C1Lmtwf_.js";
23
- import { B as ke } from "./Backdrop-CfSoI3NV.js";
23
+ import { B as ke } from "./Backdrop-CvXmU9nP.js";
24
24
  import { c as ve } from "./composeClasses-2Ou-RZJr.js";
25
- import { H as Ie } from "./HTMLElementType-Co_vUhOX.js";
26
- function Ne(e) {
27
- const t = M(e);
28
- return t.body === e ? q(e).innerWidth > t.documentElement.clientWidth : e.scrollHeight > e.clientHeight;
25
+ import { H as Ne } from "./HTMLElementType-Co_vUhOX.js";
26
+ function Ie(e) {
27
+ const t = C(e);
28
+ return t.body === e ? $(e).innerWidth > t.documentElement.clientWidth : e.scrollHeight > e.clientHeight;
29
29
  }
30
- function H(e, t) {
30
+ function B(e, t) {
31
31
  t ? e.setAttribute("aria-hidden", "true") : e.removeAttribute("aria-hidden");
32
32
  }
33
33
  function oe(e) {
34
- return parseInt(q(e).getComputedStyle(e).paddingRight, 10) || 0;
34
+ return parseFloat($(e).getComputedStyle(e).paddingRight) || 0;
35
35
  }
36
36
  function Fe(e) {
37
37
  const r = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].includes(e.tagName), o = e.tagName === "INPUT" && e.getAttribute("type") === "hidden";
@@ -41,24 +41,24 @@ function ne(e, t, r, o, i) {
41
41
  const s = [t, r, ...o];
42
42
  [].forEach.call(e.children, (a) => {
43
43
  const c = !s.includes(a), p = !Fe(a);
44
- c && p && H(a, i);
44
+ c && p && B(a, i);
45
45
  });
46
46
  }
47
- function _(e, t) {
47
+ function Y(e, t) {
48
48
  let r = -1;
49
49
  return e.some((o, i) => t(o) ? (r = i, !0) : !1), r;
50
50
  }
51
51
  function Se(e, t) {
52
52
  const r = [], o = e.container;
53
53
  if (!t.disableScrollLock) {
54
- if (Ne(o)) {
55
- const a = he(q(o));
54
+ if (Ie(o)) {
55
+ const a = he($(o));
56
56
  r.push({
57
57
  value: o.style.paddingRight,
58
58
  property: "padding-right",
59
59
  el: o
60
60
  }), o.style.paddingRight = `${oe(o) + a}px`;
61
- const c = M(o).querySelectorAll(".mui-fixed");
61
+ const c = C(o).querySelectorAll(".mui-fixed");
62
62
  [].forEach.call(c, (p) => {
63
63
  r.push({
64
64
  value: p.style.paddingRight,
@@ -69,9 +69,9 @@ function Se(e, t) {
69
69
  }
70
70
  let s;
71
71
  if (o.parentNode instanceof DocumentFragment)
72
- s = M(o).body;
72
+ s = C(o).body;
73
73
  else {
74
- const a = o.parentElement, c = q(o);
74
+ const a = o.parentElement, c = $(o);
75
75
  s = a?.nodeName === "HTML" && c.getComputedStyle(a).overflowY === "scroll" ? a : o;
76
76
  }
77
77
  r.push({
@@ -112,10 +112,10 @@ class Me {
112
112
  let o = this.modals.indexOf(t);
113
113
  if (o !== -1)
114
114
  return o;
115
- o = this.modals.length, this.modals.push(t), t.modalRef && H(t.modalRef, !1);
115
+ o = this.modals.length, this.modals.push(t), t.modalRef && B(t.modalRef, !1);
116
116
  const i = Ce(r);
117
117
  ne(r, t.mount, t.modalRef, i, !0);
118
- const s = _(this.containers, (a) => a.container === r);
118
+ const s = Y(this.containers, (a) => a.container === r);
119
119
  return s !== -1 ? (this.containers[s].modals.push(t), o) : (this.containers.push({
120
120
  modals: [t],
121
121
  container: r,
@@ -124,19 +124,19 @@ class Me {
124
124
  }), o);
125
125
  }
126
126
  mount(t, r) {
127
- const o = _(this.containers, (s) => s.modals.includes(t)), i = this.containers[o];
127
+ const o = Y(this.containers, (s) => s.modals.includes(t)), i = this.containers[o];
128
128
  i.restore || (i.restore = Se(i, r));
129
129
  }
130
130
  remove(t, r = !0) {
131
131
  const o = this.modals.indexOf(t);
132
132
  if (o === -1)
133
133
  return o;
134
- const i = _(this.containers, (a) => a.modals.includes(t)), s = this.containers[i];
134
+ const i = Y(this.containers, (a) => a.modals.includes(t)), s = this.containers[i];
135
135
  if (s.modals.splice(s.modals.indexOf(t), 1), this.modals.splice(o, 1), s.modals.length === 0)
136
- s.restore && s.restore(), t.modalRef && H(t.modalRef, r), ne(s.container, t.mount, t.modalRef, s.hiddenSiblings, !1), this.containers.splice(i, 1);
136
+ s.restore && s.restore(), t.modalRef && B(t.modalRef, r), ne(s.container, t.mount, t.modalRef, s.hiddenSiblings, !1), this.containers.splice(i, 1);
137
137
  else {
138
138
  const a = s.modals[s.modals.length - 1];
139
- a.modalRef && H(a.modalRef, !1);
139
+ a.modalRef && B(a.modalRef, !1);
140
140
  }
141
141
  return o;
142
142
  }
@@ -173,7 +173,7 @@ function Be(e) {
173
173
  function He() {
174
174
  return !0;
175
175
  }
176
- function z(e) {
176
+ function q(e) {
177
177
  const {
178
178
  children: t,
179
179
  disableAutoFocus: r = !1,
@@ -182,80 +182,82 @@ function z(e) {
182
182
  getTabbable: s = Be,
183
183
  isEnabled: a = He,
184
184
  open: c
185
- } = e, p = l.useRef(!1), y = l.useRef(null), P = l.useRef(null), g = l.useRef(null), x = l.useRef(null), b = l.useRef(!1), f = l.useRef(null), S = se(Re(t), f), v = l.useRef(null);
185
+ } = e, p = l.useRef(!1), y = l.useRef(null), k = l.useRef(null), E = l.useRef(null), x = l.useRef(null), b = l.useRef(!1), f = l.useRef(null), F = se(Re(t), f), N = l.useRef(null);
186
186
  l.useEffect(() => {
187
187
  !c || !f.current || (b.current = !r);
188
188
  }, [r, c]), l.useEffect(() => {
189
189
  if (!c || !f.current)
190
190
  return;
191
- const u = M(f.current), E = U(u);
192
- return f.current.contains(E) || (f.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
191
+ const u = C(f.current), h = K(u);
192
+ return f.current.contains(h) || (f.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
193
193
  `)), f.current.setAttribute("tabIndex", "-1")), b.current && f.current.focus()), () => {
194
- i || (g.current && g.current.focus && (p.current = !0, g.current.focus()), g.current = null);
194
+ i || (E.current && E.current.focus && (p.current = !0, E.current.focus()), E.current = null);
195
195
  };
196
196
  }, [c]), l.useEffect(() => {
197
197
  if (!c || !f.current)
198
198
  return;
199
- const u = M(f.current), E = U(u), N = (T) => {
200
- v.current = T, !(o || !a() || T.key !== "Tab") && E === f.current && T.shiftKey && (p.current = !0, P.current && P.current.focus());
201
- }, F = () => {
202
- const T = f.current;
203
- if (T === null)
199
+ const u = C(f.current), h = (g) => {
200
+ if (N.current = g, o || !a() || g.key !== "Tab")
204
201
  return;
205
- const h = U(u);
202
+ K(u) === f.current && g.shiftKey && (p.current = !0, k.current && k.current.focus());
203
+ }, v = () => {
204
+ const g = f.current;
205
+ if (g === null)
206
+ return;
207
+ const P = K(u);
206
208
  if (!u.hasFocus() || !a() || p.current) {
207
209
  p.current = !1;
208
210
  return;
209
211
  }
210
- if (T.contains(h) || o && h !== y.current && h !== P.current)
212
+ if (g.contains(P) || o && P !== y.current && P !== k.current)
211
213
  return;
212
- if (h !== x.current)
214
+ if (P !== x.current)
213
215
  x.current = null;
214
216
  else if (x.current !== null)
215
217
  return;
216
218
  if (!b.current)
217
219
  return;
218
- let k = [];
219
- if ((h === y.current || h === P.current) && (k = s(f.current)), k.length > 0) {
220
- const w = !!(v.current?.shiftKey && v.current?.key === "Tab"), L = k[0], O = k[k.length - 1];
221
- typeof L != "string" && typeof O != "string" && (w ? O.focus() : L.focus());
220
+ let T = [];
221
+ if ((P === y.current || P === k.current) && (T = s(f.current)), T.length > 0) {
222
+ const w = !!(N.current?.shiftKey && N.current?.key === "Tab"), S = T[0], H = T[T.length - 1];
223
+ typeof S != "string" && typeof H != "string" && (w ? H.focus() : S.focus());
222
224
  } else
223
- T.focus();
225
+ g.focus();
224
226
  };
225
- u.addEventListener("focusin", F), u.addEventListener("keydown", N, !0);
226
- const C = setInterval(() => {
227
- const T = U(u);
228
- T && T.tagName === "BODY" && F();
227
+ u.addEventListener("focusin", v), u.addEventListener("keydown", h, !0);
228
+ const M = setInterval(() => {
229
+ const g = K(u);
230
+ g && g.tagName === "BODY" && v();
229
231
  }, 50);
230
232
  return () => {
231
- clearInterval(C), u.removeEventListener("focusin", F), u.removeEventListener("keydown", N, !0);
233
+ clearInterval(M), u.removeEventListener("focusin", v), u.removeEventListener("keydown", h, !0);
232
234
  };
233
235
  }, [r, o, i, a, c, s]);
234
236
  const I = (u) => {
235
- g.current === null && (g.current = u.relatedTarget), b.current = !0, x.current = u.target;
236
- const E = t.props.onFocus;
237
- E && E(u);
237
+ E.current === null && (E.current = u.relatedTarget), b.current = !0, x.current = u.target;
238
+ const h = t.props.onFocus;
239
+ h && h(u);
238
240
  }, R = (u) => {
239
- g.current === null && (g.current = u.relatedTarget), b.current = !0;
241
+ E.current === null && (E.current = u.relatedTarget), b.current = !0;
240
242
  };
241
243
  return /* @__PURE__ */ ie(l.Fragment, {
242
- children: [/* @__PURE__ */ B("div", {
244
+ children: [/* @__PURE__ */ D("div", {
243
245
  tabIndex: c ? 0 : -1,
244
246
  onFocus: R,
245
247
  ref: y,
246
248
  "data-testid": "sentinelStart"
247
249
  }), /* @__PURE__ */ l.cloneElement(t, {
248
- ref: S,
250
+ ref: F,
249
251
  onFocus: I
250
- }), /* @__PURE__ */ B("div", {
252
+ }), /* @__PURE__ */ D("div", {
251
253
  tabIndex: c ? 0 : -1,
252
254
  onFocus: R,
253
- ref: P,
255
+ ref: k,
254
256
  "data-testid": "sentinelEnd"
255
257
  })]
256
258
  });
257
259
  }
258
- process.env.NODE_ENV !== "production" && (z.propTypes = {
260
+ process.env.NODE_ENV !== "production" && (q.propTypes = {
259
261
  // ┌────────────────────────────── Warning ──────────────────────────────┐
260
262
  // │ These PropTypes are generated from the TypeScript type definitions. │
261
263
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -309,7 +311,7 @@ process.env.NODE_ENV !== "production" && (z.propTypes = {
309
311
  */
310
312
  open: n.bool.isRequired
311
313
  });
312
- process.env.NODE_ENV !== "production" && (z.propTypes = Pe(z.propTypes));
314
+ process.env.NODE_ENV !== "production" && (q.propTypes = Pe(q.propTypes));
313
315
  function Le(e) {
314
316
  return typeof e == "function" ? e() : e;
315
317
  }
@@ -317,7 +319,7 @@ function je(e) {
317
319
  return e ? e.props.hasOwnProperty("in") : !1;
318
320
  }
319
321
  const re = () => {
320
- }, $ = new Me();
322
+ }, U = new Me();
321
323
  function Ke(e) {
322
324
  const {
323
325
  container: t,
@@ -329,38 +331,38 @@ function Ke(e) {
329
331
  children: c,
330
332
  onClose: p,
331
333
  open: y,
332
- rootRef: P
333
- } = e, g = l.useRef({}), x = l.useRef(null), b = l.useRef(null), f = se(b, P), [S, v] = l.useState(!y), I = je(c);
334
+ rootRef: k
335
+ } = e, E = l.useRef({}), x = l.useRef(null), b = l.useRef(null), f = se(b, k), [F, N] = l.useState(!y), I = je(c);
334
336
  let R = !0;
335
337
  (e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (R = !1);
336
- const u = () => M(x.current), E = () => (g.current.modalRef = b.current, g.current.mount = x.current, g.current), N = () => {
337
- $.mount(E(), {
338
+ const u = () => C(x.current), h = () => (E.current.modalRef = b.current, E.current.mount = x.current, E.current), v = () => {
339
+ U.mount(h(), {
338
340
  disableScrollLock: o
339
341
  }), b.current && (b.current.scrollTop = 0);
340
- }, F = Z(() => {
342
+ }, M = Z(() => {
341
343
  const m = Le(t) || u().body;
342
- $.add(E(), m), b.current && N();
343
- }), C = () => $.isTopModal(E()), T = Z((m) => {
344
- x.current = m, m && (y && C() ? N() : b.current && H(b.current, R));
345
- }), h = l.useCallback(() => {
346
- $.remove(E(), R);
344
+ U.add(h(), m), b.current && v();
345
+ }), g = () => U.isTopModal(h()), P = Z((m) => {
346
+ x.current = m, m && (y && g() ? v() : b.current && B(b.current, R));
347
+ }), T = l.useCallback(() => {
348
+ U.remove(h(), R);
347
349
  }, [R]);
348
350
  l.useEffect(() => () => {
349
- h();
350
- }, [h]), l.useEffect(() => {
351
- y ? F() : (!I || !i) && h();
352
- }, [y, h, I, i, F]);
353
- const k = (m) => (d) => {
351
+ T();
352
+ }, [T]), l.useEffect(() => {
353
+ y ? M() : (!I || !i) && T();
354
+ }, [y, T, I, i, M]);
355
+ const w = (m) => (d) => {
354
356
  m.onKeyDown?.(d), !(d.key !== "Escape" || d.which === 229 || // Wait until IME is settled.
355
- !C()) && (r || (d.stopPropagation(), p && p(d, "escapeKeyDown")));
356
- }, w = (m) => (d) => {
357
+ !g()) && (r || (d.stopPropagation(), p && p(d, "escapeKeyDown")));
358
+ }, S = (m) => (d) => {
357
359
  m.onClick?.(d), d.target === d.currentTarget && p && p(d, "backdropClick");
358
360
  };
359
361
  return {
360
362
  getRootProps: (m = {}) => {
361
363
  const d = ge(e);
362
364
  delete d.onTransitionEnter, delete d.onTransitionExited;
363
- const j = {
365
+ const L = {
364
366
  ...d,
365
367
  ...m
366
368
  };
@@ -372,8 +374,8 @@ function Ke(e) {
372
374
  * https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-static-element-interactions.md
373
375
  */
374
376
  role: "presentation",
375
- ...j,
376
- onKeyDown: k(j),
377
+ ...L,
378
+ onKeyDown: w(L),
377
379
  ref: f
378
380
  };
379
381
  },
@@ -382,15 +384,15 @@ function Ke(e) {
382
384
  return {
383
385
  "aria-hidden": !0,
384
386
  ...d,
385
- onClick: w(d),
387
+ onClick: S(d),
386
388
  open: y
387
389
  };
388
390
  },
389
391
  getTransitionProps: () => {
390
392
  const m = () => {
391
- v(!1), s && s();
393
+ N(!1), s && s();
392
394
  }, d = () => {
393
- v(!0), a && a(), i && h();
395
+ N(!0), a && a(), i && T();
394
396
  };
395
397
  return {
396
398
  onEnter: ee(m, c?.props.onEnter ?? re),
@@ -398,9 +400,9 @@ function Ke(e) {
398
400
  };
399
401
  },
400
402
  rootRef: f,
401
- portalRef: T,
402
- isTopModal: C,
403
- exited: S,
403
+ portalRef: P,
404
+ isTopModal: g,
405
+ exited: F,
404
406
  hasTransition: I
405
407
  };
406
408
  }
@@ -460,111 +462,111 @@ const $e = (e) => {
460
462
  className: c,
461
463
  closeAfterTransition: p = !1,
462
464
  children: y,
463
- container: P,
464
- component: g,
465
+ container: k,
466
+ component: E,
465
467
  components: x = {},
466
468
  componentsProps: b = {},
467
469
  disableAutoFocus: f = !1,
468
- disableEnforceFocus: S = !1,
469
- disableEscapeKeyDown: v = !1,
470
+ disableEnforceFocus: F = !1,
471
+ disableEscapeKeyDown: N = !1,
470
472
  disablePortal: I = !1,
471
473
  disableRestoreFocus: R = !1,
472
474
  disableScrollLock: u = !1,
473
- hideBackdrop: E = !1,
474
- keepMounted: N = !1,
475
- onClose: F,
476
- onTransitionEnter: C,
477
- onTransitionExited: T,
478
- open: h,
479
- slotProps: k = {},
480
- slots: w = {},
475
+ hideBackdrop: h = !1,
476
+ keepMounted: v = !1,
477
+ onClose: M,
478
+ onTransitionEnter: g,
479
+ onTransitionExited: P,
480
+ open: T,
481
+ slotProps: w = {},
482
+ slots: S = {},
481
483
  // eslint-disable-next-line react/prop-types
482
- theme: L,
483
- ...O
484
- } = o, V = {
484
+ theme: H,
485
+ ..._
486
+ } = o, z = {
485
487
  ...o,
486
488
  closeAfterTransition: p,
487
489
  disableAutoFocus: f,
488
- disableEnforceFocus: S,
489
- disableEscapeKeyDown: v,
490
+ disableEnforceFocus: F,
491
+ disableEscapeKeyDown: N,
490
492
  disablePortal: I,
491
493
  disableRestoreFocus: R,
492
494
  disableScrollLock: u,
493
- hideBackdrop: E,
494
- keepMounted: N
495
+ hideBackdrop: h,
496
+ keepMounted: v
495
497
  }, {
496
498
  getRootProps: m,
497
499
  getBackdropProps: d,
498
- getTransitionProps: j,
500
+ getTransitionProps: L,
499
501
  portalRef: le,
500
502
  isTopModal: de,
501
503
  exited: G,
502
504
  hasTransition: X
503
505
  } = Ke({
504
- ...V,
506
+ ...z,
505
507
  rootRef: r
506
- }), A = {
507
- ...V,
508
+ }), O = {
509
+ ...z,
508
510
  exited: G
509
- }, W = $e(A), K = {};
510
- if (y.props.tabIndex === void 0 && (K.tabIndex = "-1"), X) {
511
+ }, V = $e(O), j = {};
512
+ if (y.props.tabIndex === void 0 && (j.tabIndex = "-1"), X) {
511
513
  const {
512
- onEnter: D,
513
- onExited: Y
514
- } = j();
515
- K.onEnter = D, K.onExited = Y;
514
+ onEnter: A,
515
+ onExited: W
516
+ } = L();
517
+ j.onEnter = A, j.onExited = W;
516
518
  }
517
519
  const J = {
518
520
  slots: {
519
521
  root: x.Root,
520
522
  backdrop: x.Backdrop,
521
- ...w
523
+ ...S
522
524
  },
523
525
  slotProps: {
524
526
  ...b,
525
- ...k
527
+ ...w
526
528
  }
527
529
  }, [ue, fe] = te("root", {
528
530
  ref: r,
529
531
  elementType: qe,
530
532
  externalForwardedProps: {
531
533
  ...J,
532
- ...O,
533
- component: g
534
+ ..._,
535
+ component: E
534
536
  },
535
537
  getSlotProps: m,
536
- ownerState: A,
537
- className: Q(c, W?.root, !A.open && A.exited && W?.hidden)
538
+ ownerState: O,
539
+ className: Q(c, V?.root, !O.open && O.exited && V?.hidden)
538
540
  }), [pe, me] = te("backdrop", {
539
541
  ref: s?.ref,
540
542
  elementType: i,
541
543
  externalForwardedProps: J,
542
544
  shouldForwardComponentProp: !0,
543
545
  additionalProps: s,
544
- getSlotProps: (D) => d({
545
- ...D,
546
- onClick: (Y) => {
547
- D?.onClick && D.onClick(Y);
546
+ getSlotProps: (A) => d({
547
+ ...A,
548
+ onClick: (W) => {
549
+ A?.onClick && A.onClick(W);
548
550
  }
549
551
  }),
550
- className: Q(s?.className, W?.backdrop),
551
- ownerState: A
552
+ className: Q(s?.className, V?.backdrop),
553
+ ownerState: O
552
554
  });
553
- return !N && !h && (!X || G) ? null : /* @__PURE__ */ B(xe, {
555
+ return !v && !T && (!X || G) ? null : /* @__PURE__ */ D(xe, {
554
556
  ref: le,
555
- container: P,
557
+ container: k,
556
558
  disablePortal: I,
557
559
  children: /* @__PURE__ */ ie(ue, {
558
560
  ...fe,
559
- children: [!E && i ? /* @__PURE__ */ B(pe, {
561
+ children: [!h && i ? /* @__PURE__ */ D(pe, {
560
562
  ...me
561
- }) : null, /* @__PURE__ */ B(z, {
562
- disableEnforceFocus: S,
563
+ }) : null, /* @__PURE__ */ D(q, {
564
+ disableEnforceFocus: F,
563
565
  disableAutoFocus: f,
564
566
  disableRestoreFocus: R,
565
567
  isEnabled: de,
566
- open: h,
567
- children: /* @__PURE__ */ l.cloneElement(y, K)
568
+ open: T,
569
+ children: /* @__PURE__ */ l.cloneElement(y, j)
568
570
  })]
569
571
  })
570
572
  });
@@ -646,7 +648,7 @@ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
646
648
  * By default, it uses the body of the top-level document object,
647
649
  * so it's simply `document.body` most of the time.
648
650
  */
649
- container: n.oneOfType([Ie, n.func]),
651
+ container: n.oneOfType([Ne, n.func]),
650
652
  /**
651
653
  * If `true`, the modal will not automatically shift focus to itself when it opens, and
652
654
  * replace it to the last focused element when it closes.
@@ -741,6 +743,6 @@ process.env.NODE_ENV !== "production" && (Ve.propTypes = {
741
743
  sx: n.oneOfType([n.arrayOf(n.oneOfType([n.func, n.object, n.bool])), n.func, n.object])
742
744
  });
743
745
  export {
744
- z as F,
746
+ q as F,
745
747
  Ve as M
746
748
  };
@@ -15,11 +15,11 @@ import { G as Ee } from "./Grow-BxcnX1h6.js";
15
15
  import { m as Oe } from "./mergeSlotProps-CuzBQdlp.js";
16
16
  import { i as we } from "./isHostComponent-kiaBvYVo.js";
17
17
  import { c as Re } from "./composeClasses-2Ou-RZJr.js";
18
- import { M as xe } from "./Modal-DWjk-ELn.js";
18
+ import { M as xe } from "./Modal-BC16DZHY.js";
19
19
  import { i as Ce } from "./integerPropType-BihGt2aU.js";
20
20
  import { c as ke } from "./chainPropTypes-D9lkm76m.js";
21
21
  import { r as Me } from "./refType-C3kIdphZ.js";
22
- import { e as Se } from "./elementTypeAcceptingRef-I_eZHB1B.js";
22
+ import { e as Se } from "./elementTypeAcceptingRef-xVpq_4jW.js";
23
23
  import { H as X } from "./HTMLElementType-Co_vUhOX.js";
24
24
  function Ne(t) {
25
25
  return ge("MuiPopover", t);
@@ -1,7 +1,7 @@
1
1
  import * as b from "react";
2
2
  import { P as e } from "./index-B5q5ym9h.js";
3
3
  import { c as _ } from "./clsx-OuTLNxxd.js";
4
- import { S as Z } from "./SwitchBase-CbbeqU9c.js";
4
+ import { S as Z } from "./SwitchBase-D6IsSQaW.js";
5
5
  import { c as T } from "./createSvgIcon-CuFjlgU2.js";
6
6
  import { jsx as n, jsxs as A } from "react/jsx-runtime";
7
7
  import { s as p, r as B } from "./styled-BKpRY52y.js";