@clearstory/drywall-react 5.2.2 → 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 (89) 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/Dialog/index.js +1 -1
  58. package/dist/components/DialogClose/DialogClose.js +4 -3
  59. package/dist/components/Drawer/index.js +1 -1
  60. package/dist/components/IconButton/index.js +1 -1
  61. package/dist/components/Input/Input.js +1 -1
  62. package/dist/components/InputControl/InputControl.js +6 -5
  63. package/dist/components/Link/index.js +1 -1
  64. package/dist/components/ListItem/index.js +1 -1
  65. package/dist/components/ListItemButton/index.js +1 -1
  66. package/dist/components/Menu/index.js +1 -1
  67. package/dist/components/MenuItem/index.js +1 -1
  68. package/dist/components/NumberInputControl/NumberInputControl.js +1 -0
  69. package/dist/components/Popover/index.js +1 -1
  70. package/dist/components/Radio/index.js +1 -1
  71. package/dist/components/Select/Select.js +1 -1
  72. package/dist/components/Select/index.js +1 -1
  73. package/dist/components/SelectControl/SelectControl.js +1 -0
  74. package/dist/components/StepButton/index.js +1 -1
  75. package/dist/components/StepContent/index.js +1 -1
  76. package/dist/components/Switch/index.js +1 -1
  77. package/dist/components/Tab/index.js +1 -1
  78. package/dist/components/TablePagination/index.js +1 -1
  79. package/dist/components/Tabs/index.js +1 -1
  80. package/dist/components/ToastContainer/useToast.js +5 -4
  81. package/dist/components/ToggleButton/index.js +1 -1
  82. package/dist/elementTypeAcceptingRef-xVpq_4jW.js +24 -0
  83. package/dist/icons/SparkleIcon.d.ts +5 -0
  84. package/dist/icons/SparkleIcon.js +9 -0
  85. package/dist/icons/index.d.ts +1 -0
  86. package/dist/icons/index.js +128 -126
  87. package/dist/main.js +579 -577
  88. package/package.json +6 -6
  89. package/dist/elementTypeAcceptingRef-I_eZHB1B.js +0 -23
@@ -1,14 +1,14 @@
1
1
  import * as u from "react";
2
2
  import { P as e } from "./index-B5q5ym9h.js";
3
- import { c as ge } from "./clsx-OuTLNxxd.js";
4
- import { t as ye, h as Y, r as go, w as yo } from "./createTheme-Cr8frjQ0.js";
5
- import { M as vo } from "./Menu-BExv75wS.js";
3
+ import { c as ve } from "./clsx-OuTLNxxd.js";
4
+ import { t as ye, h as G, r as go, w as vo } from "./createTheme-Cr8frjQ0.js";
5
+ import { M as yo } from "./Menu-CCiom50Z.js";
6
6
  import { g as qe } from "./generateUtilityClasses-E9gROIFd.js";
7
7
  import { g as _e } from "./generateUtilityClass-BhfUaMgk.js";
8
- import { s as y, r as B, a as ho } from "./styled-BKpRY52y.js";
9
- import { jsx as g, jsxs as ve } from "react/jsx-runtime";
10
- import { c as V } from "./composeClasses-2Ou-RZJr.js";
11
- import { r as G } from "./refType-C3kIdphZ.js";
8
+ import { s as v, r as U, a as ho } from "./styled-BKpRY52y.js";
9
+ import { jsx as g, jsxs as he } from "react/jsx-runtime";
10
+ import { c as q } from "./composeClasses-2Ou-RZJr.js";
11
+ import { r as J } from "./refType-C3kIdphZ.js";
12
12
  import { a as Oo } from "./utils-Bf5X_KZD.js";
13
13
  import { u as De } from "./useControlled-D1L5tREc.js";
14
14
  import { u as Ke } from "./useForkRef-9kN4DArm.js";
@@ -16,45 +16,45 @@ import { o as So } from "./ownerDocument-CUrv0DIK.js";
16
16
  import { u as Co } from "./useId-CK6Kn3Tn.js";
17
17
  import { f as Xe } from "./formControlState-vgaj2ksH.js";
18
18
  import { u as He } from "./useFormControl-CatNKXAi.js";
19
- import { g as Io, f as k, a as Ro, i as X, b as wo, o as x, A as Po } from "./ArrowDropDown-CJcUO7Km.js";
19
+ import { g as Io, f as W, a as Ro, i as H, b as wo, o as x, A as To } from "./ArrowDropDown-CpR6Sb-x.js";
20
20
  import { u as re } from "./DefaultPropsProvider-CE6KNOqW.js";
21
- import { g as To } from "./getReactElementRef-DA-Xf2PF.js";
22
- import { m as W } from "./memoTheme-D7rECXXN.js";
23
- import { c as he } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
24
- import { I as Oe, a as Se, r as Ce, b as Ie, c as Re } from "./InputBase-BM3Auzz5.js";
21
+ import { g as Po } from "./getReactElementRef-DA-Xf2PF.js";
22
+ import { m as A } from "./memoTheme-D7rECXXN.js";
23
+ import { c as Oe } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
24
+ import { I as Se, a as Ce, r as Ie, b as Re, c as we } from "./InputBase-C6Ryue4Q.js";
25
25
  import { u as xo } from "./useSlot-CoTIuujp.js";
26
26
  const No = (o) => {
27
27
  const {
28
28
  classes: t,
29
29
  disableUnderline: n,
30
30
  startAdornment: s,
31
- endAdornment: i,
31
+ endAdornment: a,
32
32
  size: p,
33
33
  hiddenLabel: l,
34
34
  multiline: d
35
35
  } = o, I = {
36
- root: ["root", !n && "underline", s && "adornedStart", i && "adornedEnd", p === "small" && `size${Y(p)}`, l && "hiddenLabel", d && "multiline"],
36
+ root: ["root", !n && "underline", s && "adornedStart", a && "adornedEnd", p === "small" && `size${G(p)}`, l && "hiddenLabel", d && "multiline"],
37
37
  input: ["input"]
38
- }, v = V(I, Io, t);
38
+ }, y = q(I, Io, t);
39
39
  return {
40
40
  ...t,
41
41
  // forward classes to the InputBase
42
- ...v
42
+ ...y
43
43
  };
44
- }, $o = y(Se, {
45
- shouldForwardProp: (o) => B(o) || o === "classes",
44
+ }, $o = v(Ce, {
45
+ shouldForwardProp: (o) => U(o) || o === "classes",
46
46
  name: "MuiFilledInput",
47
47
  slot: "Root",
48
48
  overridesResolver: (o, t) => {
49
49
  const {
50
50
  ownerState: n
51
51
  } = o;
52
- return [...Ce(o, t), !n.disableUnderline && t.underline];
52
+ return [...Ie(o, t), !n.disableUnderline && t.underline];
53
53
  }
54
- })(W(({
54
+ })(A(({
55
55
  theme: o
56
56
  }) => {
57
- const t = o.palette.mode === "light", n = t ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)", s = t ? "rgba(0, 0, 0, 0.06)" : "rgba(255, 255, 255, 0.09)", i = t ? "rgba(0, 0, 0, 0.09)" : "rgba(255, 255, 255, 0.13)", p = t ? "rgba(0, 0, 0, 0.12)" : "rgba(255, 255, 255, 0.12)";
57
+ const t = o.palette.mode === "light", n = t ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)", s = t ? "rgba(0, 0, 0, 0.06)" : "rgba(255, 255, 255, 0.09)", a = t ? "rgba(0, 0, 0, 0.09)" : "rgba(255, 255, 255, 0.13)", p = t ? "rgba(0, 0, 0, 0.12)" : "rgba(255, 255, 255, 0.12)";
58
58
  return {
59
59
  position: "relative",
60
60
  backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : s,
@@ -65,16 +65,16 @@ const No = (o) => {
65
65
  easing: o.transitions.easing.easeOut
66
66
  }),
67
67
  "&:hover": {
68
- backgroundColor: o.vars ? o.vars.palette.FilledInput.hoverBg : i,
68
+ backgroundColor: o.vars ? o.vars.palette.FilledInput.hoverBg : a,
69
69
  // Reset on touch devices, it doesn't add specificity
70
70
  "@media (hover: none)": {
71
71
  backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : s
72
72
  }
73
73
  },
74
- [`&.${k.focused}`]: {
74
+ [`&.${W.focused}`]: {
75
75
  backgroundColor: o.vars ? o.vars.palette.FilledInput.bg : s
76
76
  },
77
- [`&.${k.disabled}`]: {
77
+ [`&.${W.disabled}`]: {
78
78
  backgroundColor: o.vars ? o.vars.palette.FilledInput.disabledBg : p
79
79
  },
80
80
  variants: [{
@@ -96,12 +96,12 @@ const No = (o) => {
96
96
  pointerEvents: "none"
97
97
  // Transparent to the hover style.
98
98
  },
99
- [`&.${k.focused}:after`]: {
99
+ [`&.${W.focused}:after`]: {
100
100
  // translateX(0) is a workaround for Safari transform scale bug
101
101
  // See https://github.com/mui/material-ui/issues/31766
102
102
  transform: "scaleX(1) translateX(0)"
103
103
  },
104
- [`&.${k.error}`]: {
104
+ [`&.${W.error}`]: {
105
105
  "&::before, &::after": {
106
106
  borderBottomColor: (o.vars || o).palette.error.main
107
107
  }
@@ -119,14 +119,14 @@ const No = (o) => {
119
119
  pointerEvents: "none"
120
120
  // Transparent to the hover style.
121
121
  },
122
- [`&:hover:not(.${k.disabled}, .${k.error}):before`]: {
122
+ [`&:hover:not(.${W.disabled}, .${W.error}):before`]: {
123
123
  borderBottom: `1px solid ${(o.vars || o).palette.text.primary}`
124
124
  },
125
- [`&.${k.disabled}:before`]: {
125
+ [`&.${W.disabled}:before`]: {
126
126
  borderBottomStyle: "dotted"
127
127
  }
128
128
  }
129
- }, ...Object.entries(o.palette).filter(he()).map(([l]) => ({
129
+ }, ...Object.entries(o.palette).filter(Oe()).map(([l]) => ({
130
130
  props: {
131
131
  disableUnderline: !1,
132
132
  color: l
@@ -184,11 +184,11 @@ const No = (o) => {
184
184
  }
185
185
  }]
186
186
  };
187
- })), Eo = y(Ie, {
187
+ })), Eo = v(Re, {
188
188
  name: "MuiFilledInput",
189
189
  slot: "Input",
190
- overridesResolver: Re
191
- })(W(({
190
+ overridesResolver: we
191
+ })(A(({
192
192
  theme: o
193
193
  }) => ({
194
194
  paddingTop: 25,
@@ -266,54 +266,54 @@ const No = (o) => {
266
266
  paddingRight: 0
267
267
  }
268
268
  }]
269
- }))), we = /* @__PURE__ */ u.forwardRef(function(t, n) {
269
+ }))), Te = /* @__PURE__ */ u.forwardRef(function(t, n) {
270
270
  const s = re({
271
271
  props: t,
272
272
  name: "MuiFilledInput"
273
273
  }), {
274
- disableUnderline: i = !1,
274
+ disableUnderline: a = !1,
275
275
  components: p = {},
276
276
  componentsProps: l,
277
277
  fullWidth: d = !1,
278
278
  hiddenLabel: I,
279
279
  // declare here to prevent spreading to DOM
280
- inputComponent: v = "input",
280
+ inputComponent: y = "input",
281
281
  multiline: h = !1,
282
282
  slotProps: b,
283
283
  slots: R = {},
284
284
  type: w = "text",
285
- ...P
286
- } = s, T = {
285
+ ...T
286
+ } = s, P = {
287
287
  ...s,
288
- disableUnderline: i,
288
+ disableUnderline: a,
289
289
  fullWidth: d,
290
- inputComponent: v,
290
+ inputComponent: y,
291
291
  multiline: h,
292
292
  type: w
293
293
  }, c = No(s), f = {
294
294
  root: {
295
- ownerState: T
295
+ ownerState: P
296
296
  },
297
297
  input: {
298
- ownerState: T
298
+ ownerState: P
299
299
  }
300
300
  }, O = b ?? l ? ye(f, b ?? l) : f, S = R.root ?? p.Root ?? $o, N = R.input ?? p.Input ?? Eo;
301
- return /* @__PURE__ */ g(Oe, {
301
+ return /* @__PURE__ */ g(Se, {
302
302
  slots: {
303
303
  root: S,
304
304
  input: N
305
305
  },
306
306
  slotProps: O,
307
307
  fullWidth: d,
308
- inputComponent: v,
308
+ inputComponent: y,
309
309
  multiline: h,
310
310
  ref: n,
311
311
  type: w,
312
- ...P,
312
+ ...T,
313
313
  classes: c
314
314
  });
315
315
  });
316
- process.env.NODE_ENV !== "production" && (we.propTypes = {
316
+ process.env.NODE_ENV !== "production" && (Te.propTypes = {
317
317
  // ┌────────────────────────────── Warning ──────────────────────────────┐
318
318
  // │ These PropTypes are generated from the TypeScript type definitions. │
319
319
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -415,7 +415,7 @@ process.env.NODE_ENV !== "production" && (we.propTypes = {
415
415
  /**
416
416
  * Pass a ref to the `input` element.
417
417
  */
418
- inputRef: G,
418
+ inputRef: J,
419
419
  /**
420
420
  * If `dense`, will adjust vertical spacing. This is normally obtained via context from
421
421
  * FormControl.
@@ -505,31 +505,31 @@ process.env.NODE_ENV !== "production" && (we.propTypes = {
505
505
  */
506
506
  value: e.any
507
507
  });
508
- we.muiName = "Input";
508
+ Te.muiName = "Input";
509
509
  const Fo = (o) => {
510
510
  const {
511
511
  classes: t,
512
512
  disableUnderline: n
513
- } = o, i = V({
513
+ } = o, a = q({
514
514
  root: ["root", !n && "underline"],
515
515
  input: ["input"]
516
516
  }, Ro, t);
517
517
  return {
518
518
  ...t,
519
519
  // forward classes to the InputBase
520
- ...i
520
+ ...a
521
521
  };
522
- }, jo = y(Se, {
523
- shouldForwardProp: (o) => B(o) || o === "classes",
522
+ }, jo = v(Ce, {
523
+ shouldForwardProp: (o) => U(o) || o === "classes",
524
524
  name: "MuiInput",
525
525
  slot: "Root",
526
526
  overridesResolver: (o, t) => {
527
527
  const {
528
528
  ownerState: n
529
529
  } = o;
530
- return [...Ce(o, t), !n.disableUnderline && t.underline];
530
+ return [...Ie(o, t), !n.disableUnderline && t.underline];
531
531
  }
532
- })(W(({
532
+ })(A(({
533
533
  theme: o
534
534
  }) => {
535
535
  let n = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.42)" : "rgba(255, 255, 255, 0.7)";
@@ -563,12 +563,12 @@ const Fo = (o) => {
563
563
  pointerEvents: "none"
564
564
  // Transparent to the hover style.
565
565
  },
566
- [`&.${X.focused}:after`]: {
566
+ [`&.${H.focused}:after`]: {
567
567
  // translateX(0) is a workaround for Safari transform scale bug
568
568
  // See https://github.com/mui/material-ui/issues/31766
569
569
  transform: "scaleX(1) translateX(0)"
570
570
  },
571
- [`&.${X.error}`]: {
571
+ [`&.${H.error}`]: {
572
572
  "&::before, &::after": {
573
573
  borderBottomColor: (o.vars || o).palette.error.main
574
574
  }
@@ -586,18 +586,18 @@ const Fo = (o) => {
586
586
  pointerEvents: "none"
587
587
  // Transparent to the hover style.
588
588
  },
589
- [`&:hover:not(.${X.disabled}, .${X.error}):before`]: {
589
+ [`&:hover:not(.${H.disabled}, .${H.error}):before`]: {
590
590
  borderBottom: `2px solid ${(o.vars || o).palette.text.primary}`,
591
591
  // Reset on touch devices, it doesn't add specificity
592
592
  "@media (hover: none)": {
593
593
  borderBottom: `1px solid ${n}`
594
594
  }
595
595
  },
596
- [`&.${X.disabled}:before`]: {
596
+ [`&.${H.disabled}:before`]: {
597
597
  borderBottomStyle: "dotted"
598
598
  }
599
599
  }
600
- }, ...Object.entries(o.palette).filter(he()).map(([s]) => ({
600
+ }, ...Object.entries(o.palette).filter(Oe()).map(([s]) => ({
601
601
  props: {
602
602
  color: s,
603
603
  disableUnderline: !1
@@ -609,33 +609,33 @@ const Fo = (o) => {
609
609
  }
610
610
  }))]
611
611
  };
612
- })), Mo = y(Ie, {
612
+ })), Mo = v(Re, {
613
613
  name: "MuiInput",
614
614
  slot: "Input",
615
- overridesResolver: Re
615
+ overridesResolver: we
616
616
  })({}), Pe = /* @__PURE__ */ u.forwardRef(function(t, n) {
617
617
  const s = re({
618
618
  props: t,
619
619
  name: "MuiInput"
620
620
  }), {
621
- disableUnderline: i = !1,
621
+ disableUnderline: a = !1,
622
622
  components: p = {},
623
623
  componentsProps: l,
624
624
  fullWidth: d = !1,
625
625
  inputComponent: I = "input",
626
- multiline: v = !1,
626
+ multiline: y = !1,
627
627
  slotProps: h,
628
628
  slots: b = {},
629
629
  type: R = "text",
630
630
  ...w
631
- } = s, P = Fo(s), c = {
631
+ } = s, T = Fo(s), c = {
632
632
  root: {
633
633
  ownerState: {
634
- disableUnderline: i
634
+ disableUnderline: a
635
635
  }
636
636
  }
637
637
  }, f = h ?? l ? ye(h ?? l, c) : c, O = b.root ?? p.Root ?? jo, S = b.input ?? p.Input ?? Mo;
638
- return /* @__PURE__ */ g(Oe, {
638
+ return /* @__PURE__ */ g(Se, {
639
639
  slots: {
640
640
  root: O,
641
641
  input: S
@@ -643,11 +643,11 @@ const Fo = (o) => {
643
643
  slotProps: f,
644
644
  fullWidth: d,
645
645
  inputComponent: I,
646
- multiline: v,
646
+ multiline: y,
647
647
  ref: n,
648
648
  type: R,
649
649
  ...w,
650
- classes: P
650
+ classes: T
651
651
  });
652
652
  });
653
653
  process.env.NODE_ENV !== "production" && (Pe.propTypes = {
@@ -745,7 +745,7 @@ process.env.NODE_ENV !== "production" && (Pe.propTypes = {
745
745
  /**
746
746
  * Pass a ref to the `input` element.
747
747
  */
748
- inputRef: G,
748
+ inputRef: J,
749
749
  /**
750
750
  * If `dense`, will adjust vertical spacing. This is normally obtained via context from
751
751
  * FormControl.
@@ -839,20 +839,20 @@ Pe.muiName = "Input";
839
839
  function ko(o) {
840
840
  return _e("MuiNativeSelect", o);
841
841
  }
842
- const Te = qe("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]), Bo = (o) => {
842
+ const xe = qe("MuiNativeSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]), Bo = (o) => {
843
843
  const {
844
844
  classes: t,
845
845
  variant: n,
846
846
  disabled: s,
847
- multiple: i,
847
+ multiple: a,
848
848
  open: p,
849
849
  error: l
850
850
  } = o, d = {
851
- select: ["select", n, s && "disabled", i && "multiple", l && "error"],
852
- icon: ["icon", `icon${Y(n)}`, p && "iconOpen", s && "disabled"]
851
+ select: ["select", n, s && "disabled", a && "multiple", l && "error"],
852
+ icon: ["icon", `icon${G(n)}`, p && "iconOpen", s && "disabled"]
853
853
  };
854
- return V(d, ko, t);
855
- }, Ye = y("select", {
854
+ return q(d, ko, t);
855
+ }, Ye = v("select", {
856
856
  name: "MuiNativeSelect"
857
857
  })(({
858
858
  theme: o
@@ -871,7 +871,7 @@ const Te = qe("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
871
871
  // Reset Chrome style
872
872
  borderRadius: 0
873
873
  },
874
- [`&.${Te.disabled}`]: {
874
+ [`&.${xe.disabled}`]: {
875
875
  cursor: "default"
876
876
  },
877
877
  "&[multiple]": {
@@ -916,19 +916,19 @@ const Te = qe("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
916
916
  }
917
917
  }
918
918
  }]
919
- })), Wo = y(Ye, {
919
+ })), Wo = v(Ye, {
920
920
  name: "MuiNativeSelect",
921
921
  slot: "Select",
922
- shouldForwardProp: B,
922
+ shouldForwardProp: U,
923
923
  overridesResolver: (o, t) => {
924
924
  const {
925
925
  ownerState: n
926
926
  } = o;
927
927
  return [t.select, t[n.variant], n.error && t.error, {
928
- [`&.${Te.multiple}`]: t.multiple
928
+ [`&.${xe.multiple}`]: t.multiple
929
929
  }];
930
930
  }
931
- })({}), Ge = y("svg", {
931
+ })({}), Ge = v("svg", {
932
932
  name: "MuiNativeSelect"
933
933
  })(({
934
934
  theme: o
@@ -942,7 +942,7 @@ const Te = qe("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
942
942
  // Don't block pointer events on the select under the icon.
943
943
  pointerEvents: "none",
944
944
  color: (o.vars || o).palette.action.active,
945
- [`&.${Te.disabled}`]: {
945
+ [`&.${xe.disabled}`]: {
946
946
  color: (o.vars || o).palette.action.disabled
947
947
  },
948
948
  variants: [{
@@ -967,37 +967,37 @@ const Te = qe("MuiNativeSelect", ["root", "select", "multiple", "filled", "outli
967
967
  right: 7
968
968
  }
969
969
  }]
970
- })), Uo = y(Ge, {
970
+ })), Uo = v(Ge, {
971
971
  name: "MuiNativeSelect",
972
972
  slot: "Icon",
973
973
  overridesResolver: (o, t) => {
974
974
  const {
975
975
  ownerState: n
976
976
  } = o;
977
- return [t.icon, n.variant && t[`icon${Y(n.variant)}`], n.open && t.iconOpen];
977
+ return [t.icon, n.variant && t[`icon${G(n.variant)}`], n.open && t.iconOpen];
978
978
  }
979
979
  })({}), Je = /* @__PURE__ */ u.forwardRef(function(t, n) {
980
980
  const {
981
981
  className: s,
982
- disabled: i,
982
+ disabled: a,
983
983
  error: p,
984
984
  IconComponent: l,
985
985
  inputRef: d,
986
986
  variant: I = "standard",
987
- ...v
987
+ ...y
988
988
  } = t, h = {
989
989
  ...t,
990
- disabled: i,
990
+ disabled: a,
991
991
  variant: I,
992
992
  error: p
993
993
  }, b = Bo(h);
994
- return /* @__PURE__ */ ve(u.Fragment, {
994
+ return /* @__PURE__ */ he(u.Fragment, {
995
995
  children: [/* @__PURE__ */ g(Wo, {
996
996
  ownerState: h,
997
- className: ge(b.select, s),
998
- disabled: i,
997
+ className: ve(b.select, s),
998
+ disabled: a,
999
999
  ref: d || n,
1000
- ...v
1000
+ ...y
1001
1001
  }), t.multiple ? null : /* @__PURE__ */ g(Uo, {
1002
1002
  as: l,
1003
1003
  ownerState: h,
@@ -1035,7 +1035,7 @@ process.env.NODE_ENV !== "production" && (Je.propTypes = {
1035
1035
  * Use that prop to pass a ref to the native select element.
1036
1036
  * @deprecated
1037
1037
  */
1038
- inputRef: G,
1038
+ inputRef: J,
1039
1039
  /**
1040
1040
  * @ignore
1041
1041
  */
@@ -1061,9 +1061,9 @@ process.env.NODE_ENV !== "production" && (Je.propTypes = {
1061
1061
  variant: e.oneOf(["standard", "outlined", "filled"])
1062
1062
  });
1063
1063
  var Le;
1064
- const Ao = y("fieldset", {
1064
+ const Ao = v("fieldset", {
1065
1065
  name: "MuiNotchedOutlined",
1066
- shouldForwardProp: B
1066
+ shouldForwardProp: U
1067
1067
  })({
1068
1068
  textAlign: "left",
1069
1069
  position: "absolute",
@@ -1079,10 +1079,10 @@ const Ao = y("fieldset", {
1079
1079
  borderWidth: 1,
1080
1080
  overflow: "hidden",
1081
1081
  minWidth: "0%"
1082
- }), Do = y("legend", {
1082
+ }), Do = v("legend", {
1083
1083
  name: "MuiNotchedOutlined",
1084
- shouldForwardProp: B
1085
- })(W(({
1084
+ shouldForwardProp: U
1085
+ })(A(({
1086
1086
  theme: o
1087
1087
  }) => ({
1088
1088
  float: "unset",
@@ -1149,10 +1149,10 @@ function Qe(o) {
1149
1149
  children: t,
1150
1150
  classes: n,
1151
1151
  className: s,
1152
- label: i,
1152
+ label: a,
1153
1153
  notched: p,
1154
1154
  ...l
1155
- } = o, d = i != null && i !== "", I = {
1155
+ } = o, d = a != null && a !== "", I = {
1156
1156
  ...o,
1157
1157
  notched: p,
1158
1158
  withLabel: d
@@ -1165,7 +1165,7 @@ function Qe(o) {
1165
1165
  children: /* @__PURE__ */ g(Do, {
1166
1166
  ownerState: I,
1167
1167
  children: d ? /* @__PURE__ */ g("span", {
1168
- children: i
1168
+ children: a
1169
1169
  }) : (
1170
1170
  // notranslate needed while Google Translate will not fix zero-width space issue
1171
1171
  Le || (Le = /* @__PURE__ */ g("span", {
@@ -1206,7 +1206,7 @@ process.env.NODE_ENV !== "production" && (Qe.propTypes = {
1206
1206
  const Lo = (o) => {
1207
1207
  const {
1208
1208
  classes: t
1209
- } = o, s = V({
1209
+ } = o, s = q({
1210
1210
  root: ["root"],
1211
1211
  notchedOutline: ["notchedOutline"],
1212
1212
  input: ["input"]
@@ -1216,12 +1216,12 @@ const Lo = (o) => {
1216
1216
  // forward classes to the InputBase
1217
1217
  ...s
1218
1218
  };
1219
- }, Vo = y(Se, {
1220
- shouldForwardProp: (o) => B(o) || o === "classes",
1219
+ }, Vo = v(Ce, {
1220
+ shouldForwardProp: (o) => U(o) || o === "classes",
1221
1221
  name: "MuiOutlinedInput",
1222
1222
  slot: "Root",
1223
- overridesResolver: Ce
1224
- })(W(({
1223
+ overridesResolver: Ie
1224
+ })(A(({
1225
1225
  theme: o
1226
1226
  }) => {
1227
1227
  const t = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
@@ -1240,7 +1240,7 @@ const Lo = (o) => {
1240
1240
  [`&.${x.focused} .${x.notchedOutline}`]: {
1241
1241
  borderWidth: 2
1242
1242
  },
1243
- variants: [...Object.entries(o.palette).filter(he()).map(([n]) => ({
1243
+ variants: [...Object.entries(o.palette).filter(Oe()).map(([n]) => ({
1244
1244
  props: {
1245
1245
  color: n
1246
1246
  },
@@ -1291,21 +1291,21 @@ const Lo = (o) => {
1291
1291
  }
1292
1292
  }]
1293
1293
  };
1294
- })), zo = y(Qe, {
1294
+ })), zo = v(Qe, {
1295
1295
  name: "MuiOutlinedInput",
1296
1296
  slot: "NotchedOutline"
1297
- })(W(({
1297
+ })(A(({
1298
1298
  theme: o
1299
1299
  }) => {
1300
1300
  const t = o.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)";
1301
1301
  return {
1302
1302
  borderColor: o.vars ? o.alpha(o.vars.palette.common.onBackground, 0.23) : t
1303
1303
  };
1304
- })), qo = y(Ie, {
1304
+ })), qo = v(Re, {
1305
1305
  name: "MuiOutlinedInput",
1306
1306
  slot: "Input",
1307
- overridesResolver: Re
1308
- })(W(({
1307
+ overridesResolver: we
1308
+ })(A(({
1309
1309
  theme: o
1310
1310
  }) => ({
1311
1311
  padding: "16.5px 14px",
@@ -1358,24 +1358,24 @@ const Lo = (o) => {
1358
1358
  paddingRight: 0
1359
1359
  }
1360
1360
  }]
1361
- }))), xe = /* @__PURE__ */ u.forwardRef(function(t, n) {
1361
+ }))), Ne = /* @__PURE__ */ u.forwardRef(function(t, n) {
1362
1362
  const s = re({
1363
1363
  props: t,
1364
1364
  name: "MuiOutlinedInput"
1365
1365
  }), {
1366
- components: i = {},
1366
+ components: a = {},
1367
1367
  fullWidth: p = !1,
1368
1368
  inputComponent: l = "input",
1369
1369
  label: d,
1370
1370
  multiline: I = !1,
1371
- notched: v,
1371
+ notched: y,
1372
1372
  slots: h = {},
1373
1373
  slotProps: b = {},
1374
1374
  type: R = "text",
1375
1375
  ...w
1376
- } = s, P = Lo(s), T = He(), c = Xe({
1376
+ } = s, T = Lo(s), P = He(), c = Xe({
1377
1377
  props: s,
1378
- muiFormControl: T,
1378
+ muiFormControl: P,
1379
1379
  states: ["color", "disabled", "error", "focused", "hiddenLabel", "size", "required"]
1380
1380
  }), f = {
1381
1381
  ...s,
@@ -1383,15 +1383,15 @@ const Lo = (o) => {
1383
1383
  disabled: c.disabled,
1384
1384
  error: c.error,
1385
1385
  focused: c.focused,
1386
- formControl: T,
1386
+ formControl: P,
1387
1387
  fullWidth: p,
1388
1388
  hiddenLabel: c.hiddenLabel,
1389
1389
  multiline: I,
1390
1390
  size: c.size,
1391
1391
  type: R
1392
- }, O = h.root ?? i.Root ?? Vo, S = h.input ?? i.Input ?? qo, [N, $] = xo("notchedOutline", {
1392
+ }, O = h.root ?? a.Root ?? Vo, S = h.input ?? a.Input ?? qo, [N, $] = xo("notchedOutline", {
1393
1393
  elementType: zo,
1394
- className: P.notchedOutline,
1394
+ className: T.notchedOutline,
1395
1395
  shouldForwardComponentProp: !0,
1396
1396
  ownerState: f,
1397
1397
  externalForwardedProps: {
@@ -1399,12 +1399,12 @@ const Lo = (o) => {
1399
1399
  slotProps: b
1400
1400
  },
1401
1401
  additionalProps: {
1402
- label: d != null && d !== "" && c.required ? /* @__PURE__ */ ve(u.Fragment, {
1402
+ label: d != null && d !== "" && c.required ? /* @__PURE__ */ he(u.Fragment, {
1403
1403
  children: [d, " ", "*"]
1404
1404
  }) : d
1405
1405
  }
1406
1406
  });
1407
- return /* @__PURE__ */ g(Oe, {
1407
+ return /* @__PURE__ */ g(Se, {
1408
1408
  slots: {
1409
1409
  root: O,
1410
1410
  input: S
@@ -1412,7 +1412,7 @@ const Lo = (o) => {
1412
1412
  slotProps: b,
1413
1413
  renderSuffix: (E) => /* @__PURE__ */ g(N, {
1414
1414
  ...$,
1415
- notched: typeof v < "u" ? v : !!(E.startAdornment || E.filled || E.focused)
1415
+ notched: typeof y < "u" ? y : !!(E.startAdornment || E.filled || E.focused)
1416
1416
  }),
1417
1417
  fullWidth: p,
1418
1418
  inputComponent: l,
@@ -1421,12 +1421,12 @@ const Lo = (o) => {
1421
1421
  type: R,
1422
1422
  ...w,
1423
1423
  classes: {
1424
- ...P,
1424
+ ...T,
1425
1425
  notchedOutline: null
1426
1426
  }
1427
1427
  });
1428
1428
  });
1429
- process.env.NODE_ENV !== "production" && (xe.propTypes = {
1429
+ process.env.NODE_ENV !== "production" && (Ne.propTypes = {
1430
1430
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1431
1431
  // │ These PropTypes are generated from the TypeScript type definitions. │
1432
1432
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1504,7 +1504,7 @@ process.env.NODE_ENV !== "production" && (xe.propTypes = {
1504
1504
  /**
1505
1505
  * Pass a ref to the `input` element.
1506
1506
  */
1507
- inputRef: G,
1507
+ inputRef: J,
1508
1508
  /**
1509
1509
  * The label of the `input`. It is only used for layout. The actual labelling
1510
1510
  * is handled by `InputLabel`.
@@ -1598,13 +1598,13 @@ process.env.NODE_ENV !== "production" && (xe.propTypes = {
1598
1598
  */
1599
1599
  value: e.any
1600
1600
  });
1601
- xe.muiName = "Input";
1601
+ Ne.muiName = "Input";
1602
1602
  function Ze(o) {
1603
1603
  return _e("MuiSelect", o);
1604
1604
  }
1605
- const H = qe("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
1605
+ const Y = qe("MuiSelect", ["root", "select", "multiple", "filled", "outlined", "standard", "disabled", "focused", "icon", "iconOpen", "iconFilled", "iconOutlined", "iconStandard", "nativeInput", "error"]);
1606
1606
  var Ve;
1607
- const _o = y(Ye, {
1607
+ const _o = v(Ye, {
1608
1608
  name: "MuiSelect",
1609
1609
  slot: "Select",
1610
1610
  overridesResolver: (o, t) => {
@@ -1614,22 +1614,22 @@ const _o = y(Ye, {
1614
1614
  return [
1615
1615
  // Win specificity over the input base
1616
1616
  {
1617
- [`&.${H.select}`]: t.select
1617
+ [`&.${Y.select}`]: t.select
1618
1618
  },
1619
1619
  {
1620
- [`&.${H.select}`]: t[n.variant]
1620
+ [`&.${Y.select}`]: t[n.variant]
1621
1621
  },
1622
1622
  {
1623
- [`&.${H.error}`]: t.error
1623
+ [`&.${Y.error}`]: t.error
1624
1624
  },
1625
1625
  {
1626
- [`&.${H.multiple}`]: t.multiple
1626
+ [`&.${Y.multiple}`]: t.multiple
1627
1627
  }
1628
1628
  ];
1629
1629
  }
1630
1630
  })({
1631
1631
  // Win specificity over the input base
1632
- [`&.${H.select}`]: {
1632
+ [`&.${Y.select}`]: {
1633
1633
  height: "auto",
1634
1634
  // Resets for multiple select with chips
1635
1635
  minHeight: "1.4375em",
@@ -1638,16 +1638,16 @@ const _o = y(Ye, {
1638
1638
  whiteSpace: "nowrap",
1639
1639
  overflow: "hidden"
1640
1640
  }
1641
- }), Ko = y(Ge, {
1641
+ }), Ko = v(Ge, {
1642
1642
  name: "MuiSelect",
1643
1643
  slot: "Icon",
1644
1644
  overridesResolver: (o, t) => {
1645
1645
  const {
1646
1646
  ownerState: n
1647
1647
  } = o;
1648
- return [t.icon, n.variant && t[`icon${Y(n.variant)}`], n.open && t.iconOpen];
1648
+ return [t.icon, n.variant && t[`icon${G(n.variant)}`], n.open && t.iconOpen];
1649
1649
  }
1650
- })({}), Xo = y("input", {
1650
+ })({}), Xo = v("input", {
1651
1651
  shouldForwardProp: (o) => ho(o) && o !== "classes",
1652
1652
  name: "MuiSelect",
1653
1653
  slot: "NativeInput"
@@ -1671,30 +1671,30 @@ const Yo = (o) => {
1671
1671
  classes: t,
1672
1672
  variant: n,
1673
1673
  disabled: s,
1674
- multiple: i,
1674
+ multiple: a,
1675
1675
  open: p,
1676
1676
  error: l
1677
1677
  } = o, d = {
1678
- select: ["select", n, s && "disabled", i && "multiple", l && "error"],
1679
- icon: ["icon", `icon${Y(n)}`, p && "iconOpen", s && "disabled"],
1678
+ select: ["select", n, s && "disabled", a && "multiple", l && "error"],
1679
+ icon: ["icon", `icon${G(n)}`, p && "iconOpen", s && "disabled"],
1680
1680
  nativeInput: ["nativeInput"]
1681
1681
  };
1682
- return V(d, Ze, t);
1682
+ return q(d, Ze, t);
1683
1683
  }, eo = /* @__PURE__ */ u.forwardRef(function(t, n) {
1684
1684
  const {
1685
1685
  "aria-describedby": s,
1686
- "aria-label": i,
1686
+ "aria-label": a,
1687
1687
  autoFocus: p,
1688
1688
  autoWidth: l,
1689
1689
  children: d,
1690
1690
  className: I,
1691
- defaultOpen: v,
1691
+ defaultOpen: y,
1692
1692
  defaultValue: h,
1693
1693
  disabled: b,
1694
1694
  displayEmpty: R,
1695
1695
  error: w = !1,
1696
- IconComponent: P,
1697
- inputRef: T,
1696
+ IconComponent: T,
1697
+ inputRef: P,
1698
1698
  labelId: c,
1699
1699
  MenuProps: f = {},
1700
1700
  multiple: O,
@@ -1706,75 +1706,86 @@ const Yo = (o) => {
1706
1706
  // eslint-disable-next-line react/prop-types
1707
1707
  onKeyDown: le,
1708
1708
  // eslint-disable-next-line react/prop-types
1709
- onMouseDown: ae,
1710
- onOpen: J,
1711
- open: Q,
1712
- readOnly: z,
1709
+ onMouseDown: ie,
1710
+ onOpen: Q,
1711
+ open: Z,
1712
+ readOnly: _,
1713
1713
  renderValue: F,
1714
- required: j,
1715
- SelectDisplayProps: U = {},
1716
- tabIndex: ie,
1714
+ required: M,
1715
+ SelectDisplayProps: D = {},
1716
+ tabIndex: ae,
1717
1717
  // catching `type` from Input which makes no sense for SelectInput
1718
1718
  type: pe,
1719
- value: q,
1719
+ value: K,
1720
1720
  variant: de = "standard",
1721
- ...$e
1722
- } = t, [m, Ee] = De({
1723
- controlled: q,
1721
+ ...Ee
1722
+ } = t, [m, Fe] = De({
1723
+ controlled: K,
1724
1724
  default: h,
1725
1725
  name: "Select"
1726
- }), [Fe, to] = De({
1727
- controlled: Q,
1728
- default: v,
1726
+ }), [je, to] = De({
1727
+ controlled: Z,
1728
+ default: y,
1729
1729
  name: "Select"
1730
- }), je = u.useRef(null), M = u.useRef(null), [_, no] = u.useState(null), {
1730
+ }), Me = u.useRef(null), k = u.useRef(null), [X, no] = u.useState(null), {
1731
1731
  current: ue
1732
- } = u.useRef(Q != null), [ro, Me] = u.useState(), so = Ke(n, T), lo = u.useCallback((r) => {
1733
- M.current = r, r && no(r);
1734
- }, []), Z = _?.parentNode;
1732
+ } = u.useRef(Z != null), [ro, ce] = u.useState(), so = Ke(n, P), lo = u.useCallback((r) => {
1733
+ k.current = r, r && no(r);
1734
+ }, []), j = X?.parentNode;
1735
1735
  u.useImperativeHandle(so, () => ({
1736
1736
  focus: () => {
1737
- M.current.focus();
1737
+ k.current.focus();
1738
1738
  },
1739
- node: je.current,
1739
+ node: Me.current,
1740
1740
  value: m
1741
- }), [m]), u.useEffect(() => {
1742
- v && Fe && _ && !ue && (Me(l ? null : Z.clientWidth), M.current.focus());
1743
- }, [_, l]), u.useEffect(() => {
1744
- p && M.current.focus();
1741
+ }), [m]);
1742
+ const B = X !== null && je;
1743
+ u.useEffect(() => {
1744
+ if (!B || !j || l || typeof ResizeObserver > "u")
1745
+ return;
1746
+ const r = new ResizeObserver(() => {
1747
+ ce(j.clientWidth);
1748
+ });
1749
+ return r.observe(j), () => {
1750
+ r.disconnect();
1751
+ };
1752
+ }, [B, j, l]), u.useEffect(() => {
1753
+ y && je && X && !ue && (ce(l ? null : j.clientWidth), k.current.focus());
1754
+ }, [X, l]), u.useEffect(() => {
1755
+ p && k.current.focus();
1745
1756
  }, [p]), u.useEffect(() => {
1746
1757
  if (!c)
1747
1758
  return;
1748
- const r = So(M.current).getElementById(c);
1759
+ const r = So(k.current).getElementById(c);
1749
1760
  if (r) {
1750
- const a = () => {
1751
- getSelection().isCollapsed && M.current.focus();
1761
+ const i = () => {
1762
+ getSelection().isCollapsed && k.current.focus();
1752
1763
  };
1753
- return r.addEventListener("click", a), () => {
1754
- r.removeEventListener("click", a);
1764
+ return r.addEventListener("click", i), () => {
1765
+ r.removeEventListener("click", i);
1755
1766
  };
1756
1767
  }
1757
1768
  }, [c]);
1758
- const ee = (r, a) => {
1759
- r ? J && J(a) : E && E(a), ue || (Me(l ? null : Z.clientWidth), to(r));
1760
- }, ao = (r) => {
1761
- ae?.(r), r.button === 0 && (r.preventDefault(), M.current.focus(), ee(!0, r));
1769
+ const ee = (r, i) => {
1770
+ r ? Q && Q(i) : E && E(i), ue || (ce(l ? null : j.clientWidth), to(r));
1762
1771
  }, io = (r) => {
1772
+ ie?.(r), r.button === 0 && (r.preventDefault(), k.current.focus(), ee(!0, r));
1773
+ }, ao = (r) => {
1763
1774
  ee(!1, r);
1764
1775
  }, oe = u.Children.toArray(d), po = (r) => {
1765
- const a = oe.find((C) => C.props.value === r.target.value);
1766
- a !== void 0 && (Ee(a.props.value), $ && $(r, a));
1767
- }, uo = (r) => (a) => {
1776
+ const i = oe.find((C) => C.props.value === r.target.value);
1777
+ i !== void 0 && (Fe(i.props.value), $ && $(r, i));
1778
+ }, uo = (r) => (i) => {
1768
1779
  let C;
1769
- if (a.currentTarget.hasAttribute("tabindex")) {
1780
+ if (i.currentTarget.hasAttribute("tabindex")) {
1770
1781
  if (O) {
1771
1782
  C = Array.isArray(m) ? m.slice() : [];
1772
- const L = m.indexOf(r.props.value);
1773
- L === -1 ? C.push(r.props.value) : C.splice(L, 1);
1783
+ const z = m.indexOf(r.props.value);
1784
+ z === -1 ? C.push(r.props.value) : C.splice(z, 1);
1774
1785
  } else
1775
1786
  C = r.props.value;
1776
- if (r.props.onClick && r.props.onClick(a), m !== C && (Ee(C), $)) {
1777
- const L = a.nativeEvent || a, Ae = new L.constructor(L.type, L);
1787
+ if (r.props.onClick && r.props.onClick(i), m !== C && (Fe(C), $)) {
1788
+ const z = i.nativeEvent || i, Ae = new z.constructor(z.type, z);
1778
1789
  Object.defineProperty(Ae, "target", {
1779
1790
  writable: !0,
1780
1791
  value: {
@@ -1783,10 +1794,10 @@ const Yo = (o) => {
1783
1794
  }
1784
1795
  }), $(Ae, r);
1785
1796
  }
1786
- O || ee(!1, a);
1797
+ O || ee(!1, i);
1787
1798
  }
1788
1799
  }, co = (r) => {
1789
- z || ([
1800
+ _ || ([
1790
1801
  " ",
1791
1802
  "ArrowUp",
1792
1803
  "ArrowDown",
@@ -1794,8 +1805,8 @@ const Yo = (o) => {
1794
1805
  // https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
1795
1806
  "Enter"
1796
1807
  ].includes(r.key) && (r.preventDefault(), ee(!0, r)), le?.(r));
1797
- }, K = _ !== null && Fe, fo = (r) => {
1798
- !K && N && (Object.defineProperty(r, "target", {
1808
+ }, fo = (r) => {
1809
+ !B && N && (Object.defineProperty(r, "target", {
1799
1810
  writable: !0,
1800
1811
  value: {
1801
1812
  value: m,
@@ -1803,33 +1814,33 @@ const Yo = (o) => {
1803
1814
  }
1804
1815
  }), N(r));
1805
1816
  };
1806
- delete $e["aria-invalid"];
1807
- let A, ke;
1817
+ delete Ee["aria-invalid"];
1818
+ let L, ke;
1808
1819
  const te = [];
1809
- let ne = !1, ce = !1;
1820
+ let ne = !1, fe = !1;
1810
1821
  (Oo({
1811
1822
  value: m
1812
- }) || R) && (F ? A = F(m) : ne = !0);
1823
+ }) || R) && (F ? L = F(m) : ne = !0);
1813
1824
  const bo = oe.map((r) => {
1814
1825
  if (!/* @__PURE__ */ u.isValidElement(r))
1815
1826
  return null;
1816
1827
  process.env.NODE_ENV !== "production" && go.isFragment(r) && console.error(["MUI: The Select component doesn't accept a Fragment as a child.", "Consider providing an array instead."].join(`
1817
1828
  `));
1818
- let a;
1829
+ let i;
1819
1830
  if (O) {
1820
1831
  if (!Array.isArray(m))
1821
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : yo(2));
1822
- a = m.some((C) => ze(C, r.props.value)), a && ne && te.push(r.props.children);
1832
+ throw new Error(process.env.NODE_ENV !== "production" ? "MUI: The `value` prop must be an array when using the `Select` component with `multiple`." : vo(2));
1833
+ i = m.some((C) => ze(C, r.props.value)), i && ne && te.push(r.props.children);
1823
1834
  } else
1824
- a = ze(m, r.props.value), a && ne && (ke = r.props.children);
1825
- return a && (ce = !0), /* @__PURE__ */ u.cloneElement(r, {
1826
- "aria-selected": a ? "true" : "false",
1835
+ i = ze(m, r.props.value), i && ne && (ke = r.props.children);
1836
+ return i && (fe = !0), /* @__PURE__ */ u.cloneElement(r, {
1837
+ "aria-selected": i ? "true" : "false",
1827
1838
  onClick: uo(r),
1828
1839
  onKeyUp: (C) => {
1829
1840
  C.key === " " && C.preventDefault(), r.props.onKeyUp && r.props.onKeyUp(C);
1830
1841
  },
1831
1842
  role: "option",
1832
- selected: a,
1843
+ selected: i,
1833
1844
  value: void 0,
1834
1845
  // The value is most likely not a valid HTML attribute.
1835
1846
  "data-value": r.props.value
@@ -1837,83 +1848,83 @@ const Yo = (o) => {
1837
1848
  });
1838
1849
  });
1839
1850
  process.env.NODE_ENV !== "production" && u.useEffect(() => {
1840
- if (!ce && !O && m !== "") {
1841
- const r = oe.map((a) => a.props.value);
1842
- console.warn([`MUI: You have provided an out-of-range value \`${m}\` for the select ${S ? `(name="${S}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${r.filter((a) => a != null).map((a) => `\`${a}\``).join(", ") || '""'}.`].join(`
1851
+ if (!fe && !O && m !== "") {
1852
+ const r = oe.map((i) => i.props.value);
1853
+ console.warn([`MUI: You have provided an out-of-range value \`${m}\` for the select ${S ? `(name="${S}") ` : ""}component.`, "Consider providing a value that matches one of the available options or ''.", `The available values are ${r.filter((i) => i != null).map((i) => `\`${i}\``).join(", ") || '""'}.`].join(`
1843
1854
  `));
1844
1855
  }
1845
- }, [ce, oe, O, S, m]), ne && (O ? te.length === 0 ? A = null : A = te.reduce((r, a, C) => (r.push(a), C < te.length - 1 && r.push(", "), r), []) : A = ke);
1856
+ }, [fe, oe, O, S, m]), ne && (O ? te.length === 0 ? L = null : L = te.reduce((r, i, C) => (r.push(i), C < te.length - 1 && r.push(", "), r), []) : L = ke);
1846
1857
  let Be = ro;
1847
- !l && ue && _ && (Be = Z.clientWidth);
1848
- let fe;
1849
- typeof ie < "u" ? fe = ie : fe = b ? null : 0;
1850
- const We = U.id || (S ? `mui-component-select-${S}` : void 0), D = {
1858
+ !l && ue && X && (Be = j.clientWidth);
1859
+ let be;
1860
+ typeof ae < "u" ? be = ae : be = b ? null : 0;
1861
+ const We = D.id || (S ? `mui-component-select-${S}` : void 0), V = {
1851
1862
  ...t,
1852
1863
  variant: de,
1853
1864
  value: m,
1854
- open: K,
1865
+ open: B,
1855
1866
  error: w
1856
- }, be = Yo(D), me = {
1867
+ }, me = Yo(V), ge = {
1857
1868
  ...f.PaperProps,
1858
- ...typeof f.slotProps?.paper == "function" ? f.slotProps.paper(D) : f.slotProps?.paper
1869
+ ...typeof f.slotProps?.paper == "function" ? f.slotProps.paper(V) : f.slotProps?.paper
1859
1870
  }, mo = {
1860
1871
  ...f.MenuListProps,
1861
- ...typeof f.slotProps?.list == "function" ? f.slotProps.list(D) : f.slotProps?.list
1872
+ ...typeof f.slotProps?.list == "function" ? f.slotProps.list(V) : f.slotProps?.list
1862
1873
  }, Ue = Co();
1863
- return /* @__PURE__ */ ve(u.Fragment, {
1874
+ return /* @__PURE__ */ he(u.Fragment, {
1864
1875
  children: [/* @__PURE__ */ g(_o, {
1865
1876
  as: "div",
1866
1877
  ref: lo,
1867
- tabIndex: fe,
1878
+ tabIndex: be,
1868
1879
  role: "combobox",
1869
- "aria-controls": K ? Ue : void 0,
1880
+ "aria-controls": B ? Ue : void 0,
1870
1881
  "aria-disabled": b ? "true" : void 0,
1871
- "aria-expanded": K ? "true" : "false",
1882
+ "aria-expanded": B ? "true" : "false",
1872
1883
  "aria-haspopup": "listbox",
1873
- "aria-label": i,
1884
+ "aria-label": a,
1874
1885
  "aria-labelledby": [c, We].filter(Boolean).join(" ") || void 0,
1875
1886
  "aria-describedby": s,
1876
- "aria-required": j ? "true" : void 0,
1887
+ "aria-required": M ? "true" : void 0,
1877
1888
  "aria-invalid": w ? "true" : void 0,
1878
1889
  onKeyDown: co,
1879
- onMouseDown: b || z ? null : ao,
1890
+ onMouseDown: b || _ ? null : io,
1880
1891
  onBlur: fo,
1881
1892
  onFocus: se,
1882
- ...U,
1883
- ownerState: D,
1884
- className: ge(U.className, be.select, I),
1893
+ ...D,
1894
+ ownerState: V,
1895
+ className: ve(D.className, me.select, I),
1885
1896
  id: We,
1886
- children: Ho(A) ? (
1897
+ children: Ho(L) ? (
1887
1898
  // notranslate needed while Google Translate will not fix zero-width space issue
1888
1899
  Ve || (Ve = /* @__PURE__ */ g("span", {
1889
1900
  className: "notranslate",
1890
1901
  "aria-hidden": !0,
1891
1902
  children: "​"
1892
1903
  }))
1893
- ) : A
1904
+ ) : L
1894
1905
  }), /* @__PURE__ */ g(Xo, {
1895
1906
  "aria-invalid": w,
1896
1907
  value: Array.isArray(m) ? m.join(",") : m,
1897
1908
  name: S,
1898
- ref: je,
1909
+ ref: Me,
1899
1910
  "aria-hidden": !0,
1900
1911
  onChange: po,
1901
1912
  tabIndex: -1,
1902
1913
  disabled: b,
1903
- className: be.nativeInput,
1914
+ className: me.nativeInput,
1904
1915
  autoFocus: p,
1905
- required: j,
1906
- ...$e,
1907
- ownerState: D
1916
+ required: M,
1917
+ ...Ee,
1918
+ ownerState: V
1908
1919
  }), /* @__PURE__ */ g(Ko, {
1909
- as: P,
1910
- className: be.icon,
1911
- ownerState: D
1912
- }), /* @__PURE__ */ g(vo, {
1920
+ as: T,
1921
+ className: me.icon,
1922
+ ownerState: V
1923
+ }), /* @__PURE__ */ g(yo, {
1913
1924
  id: `menu-${S || ""}`,
1914
- anchorEl: Z,
1915
- open: K,
1916
- onClose: io,
1925
+ anchorEl: j,
1926
+ open: B,
1927
+ onClose: ao,
1917
1928
  anchorOrigin: {
1918
1929
  vertical: "bottom",
1919
1930
  horizontal: "center"
@@ -1934,10 +1945,10 @@ const Yo = (o) => {
1934
1945
  ...mo
1935
1946
  },
1936
1947
  paper: {
1937
- ...me,
1948
+ ...ge,
1938
1949
  style: {
1939
1950
  minWidth: Be,
1940
- ...me != null ? me.style : null
1951
+ ...ge != null ? ge.style : null
1941
1952
  }
1942
1953
  }
1943
1954
  },
@@ -2005,7 +2016,7 @@ process.env.NODE_ENV !== "production" && (eo.propTypes = {
2005
2016
  * Imperative handle implementing `{ value: T, node: HTMLElement, focus(): void }`
2006
2017
  * Equivalent to `ref`
2007
2018
  */
2008
- inputRef: G,
2019
+ inputRef: J,
2009
2020
  /**
2010
2021
  * The ID of an element that acts as an additional label. The Select will
2011
2022
  * be labelled by the additional label and the selected value.
@@ -2096,34 +2107,34 @@ process.env.NODE_ENV !== "production" && (eo.propTypes = {
2096
2107
  const Go = (o) => {
2097
2108
  const {
2098
2109
  classes: t
2099
- } = o, s = V({
2110
+ } = o, s = q({
2100
2111
  root: ["root"]
2101
2112
  }, Ze, t);
2102
2113
  return {
2103
2114
  ...t,
2104
2115
  ...s
2105
2116
  };
2106
- }, Ne = {
2117
+ }, $e = {
2107
2118
  name: "MuiSelect",
2108
2119
  slot: "Root",
2109
- shouldForwardProp: (o) => B(o) && o !== "variant"
2110
- }, Jo = y(Pe, Ne)(""), Qo = y(xe, Ne)(""), Zo = y(we, Ne)(""), oo = /* @__PURE__ */ u.forwardRef(function(t, n) {
2120
+ shouldForwardProp: (o) => U(o) && o !== "variant"
2121
+ }, Jo = v(Pe, $e)(""), Qo = v(Ne, $e)(""), Zo = v(Te, $e)(""), oo = /* @__PURE__ */ u.forwardRef(function(t, n) {
2111
2122
  const s = re({
2112
2123
  name: "MuiSelect",
2113
2124
  props: t
2114
2125
  }), {
2115
- autoWidth: i = !1,
2126
+ autoWidth: a = !1,
2116
2127
  children: p,
2117
2128
  classes: l = {},
2118
2129
  className: d,
2119
2130
  defaultOpen: I = !1,
2120
- displayEmpty: v = !1,
2121
- IconComponent: h = Po,
2131
+ displayEmpty: y = !1,
2132
+ IconComponent: h = To,
2122
2133
  id: b,
2123
2134
  input: R,
2124
2135
  inputProps: w,
2125
- label: P,
2126
- labelId: T,
2136
+ label: T,
2137
+ labelId: P,
2127
2138
  MenuProps: c,
2128
2139
  multiple: f = !1,
2129
2140
  native: O = !1,
@@ -2133,38 +2144,38 @@ const Go = (o) => {
2133
2144
  renderValue: E,
2134
2145
  SelectDisplayProps: se,
2135
2146
  variant: le = "outlined",
2136
- ...ae
2137
- } = s, J = O ? Je : eo, Q = He(), z = Xe({
2147
+ ...ie
2148
+ } = s, Q = O ? Je : eo, Z = He(), _ = Xe({
2138
2149
  props: s,
2139
- muiFormControl: Q,
2150
+ muiFormControl: Z,
2140
2151
  states: ["variant", "error"]
2141
- }), F = z.variant || le, j = {
2152
+ }), F = _.variant || le, M = {
2142
2153
  ...s,
2143
2154
  variant: F,
2144
2155
  classes: l
2145
- }, U = Go(j), {
2146
- root: ie,
2156
+ }, D = Go(M), {
2157
+ root: ae,
2147
2158
  ...pe
2148
- } = U, q = R || {
2159
+ } = D, K = R || {
2149
2160
  standard: /* @__PURE__ */ g(Jo, {
2150
- ownerState: j
2161
+ ownerState: M
2151
2162
  }),
2152
2163
  outlined: /* @__PURE__ */ g(Qo, {
2153
- label: P,
2154
- ownerState: j
2164
+ label: T,
2165
+ ownerState: M
2155
2166
  }),
2156
2167
  filled: /* @__PURE__ */ g(Zo, {
2157
- ownerState: j
2168
+ ownerState: M
2158
2169
  })
2159
- }[F], de = Ke(n, To(q));
2170
+ }[F], de = Ke(n, Po(K));
2160
2171
  return /* @__PURE__ */ g(u.Fragment, {
2161
- children: /* @__PURE__ */ u.cloneElement(q, {
2172
+ children: /* @__PURE__ */ u.cloneElement(K, {
2162
2173
  // Most of the logic is implemented in `SelectInput`.
2163
2174
  // The `Select` component is a simple API wrapper to expose something better to play with.
2164
- inputComponent: J,
2175
+ inputComponent: Q,
2165
2176
  inputProps: {
2166
2177
  children: p,
2167
- error: z.error,
2178
+ error: _.error,
2168
2179
  IconComponent: h,
2169
2180
  variant: F,
2170
2181
  type: void 0,
@@ -2173,10 +2184,10 @@ const Go = (o) => {
2173
2184
  ...O ? {
2174
2185
  id: b
2175
2186
  } : {
2176
- autoWidth: i,
2187
+ autoWidth: a,
2177
2188
  defaultOpen: I,
2178
- displayEmpty: v,
2179
- labelId: T,
2189
+ displayEmpty: y,
2190
+ labelId: P,
2180
2191
  MenuProps: c,
2181
2192
  onClose: S,
2182
2193
  onOpen: N,
@@ -2191,16 +2202,16 @@ const Go = (o) => {
2191
2202
  classes: w ? ye(pe, w.classes) : pe,
2192
2203
  ...R ? R.props.inputProps : {}
2193
2204
  },
2194
- ...(f && O || v) && F === "outlined" ? {
2205
+ ...(f && O || y) && F === "outlined" ? {
2195
2206
  notched: !0
2196
2207
  } : {},
2197
2208
  ref: de,
2198
- className: ge(q.props.className, d, U.root),
2209
+ className: ve(K.props.className, d, D.root),
2199
2210
  // If a custom input is provided via 'input' prop, do not allow 'variant' to be propagated to it's root element. See https://github.com/mui/material-ui/issues/33894.
2200
2211
  ...!R && {
2201
2212
  variant: F
2202
2213
  },
2203
- ...ae
2214
+ ...ie
2204
2215
  })
2205
2216
  });
2206
2217
  });
@@ -2353,10 +2364,10 @@ process.env.NODE_ENV !== "production" && (oo.propTypes = {
2353
2364
  });
2354
2365
  oo.muiName = "Select";
2355
2366
  export {
2356
- we as F,
2367
+ Te as F,
2357
2368
  Pe as I,
2358
- xe as O,
2369
+ Ne as O,
2359
2370
  oo as S,
2360
2371
  Ze as g,
2361
- H as s
2372
+ Y as s
2362
2373
  };