@pismo/marola 1.0.0-beta.28 → 1.0.0-beta.3

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 (127) hide show
  1. package/dist/{Button-BAljjMv3.js → Button-2b1peDFT.js} +2 -2
  2. package/dist/{ClickAwayListener-DbEYZpyh.js → ClickAwayListener-BSW-Nd-y.js} +3 -4
  3. package/dist/Dialog.module-DFEmFdYT.js +30 -0
  4. package/dist/{Popup-Ck3XlWMq.js → Popup-B6ZSGIEI.js} +3 -3
  5. package/dist/{Portal-oY3enyAm.js → Portal-DIeBsWdL.js} +2 -2
  6. package/dist/SelectButton-C8JQKaf4.js +61 -0
  7. package/dist/{Tabs.module-BGGTkDc5.js → Tabs.module-jkH1Qjn7.js} +7 -7
  8. package/dist/Toggle-BCgIItCc.js +142 -0
  9. package/dist/assets/Advice.css +1 -1
  10. package/dist/assets/Button.css +1 -1
  11. package/dist/assets/Checkbox.css +1 -1
  12. package/dist/assets/Dialog.css +1 -1
  13. package/dist/assets/IconButton.css +1 -1
  14. package/dist/assets/Input.css +1 -1
  15. package/dist/assets/PageHeader.css +1 -1
  16. package/dist/assets/Pagination.css +1 -1
  17. package/dist/assets/SelectButton.css +1 -1
  18. package/dist/assets/Snackbar.css +1 -1
  19. package/dist/assets/SortTooltip.css +1 -1
  20. package/dist/assets/Stepper.css +1 -1
  21. package/dist/assets/Table.css +1 -1
  22. package/dist/assets/Tabs.css +1 -1
  23. package/dist/assets/TextDisplay.css +1 -1
  24. package/dist/assets/Toggle.css +1 -1
  25. package/dist/assets/Toggle2.css +1 -1
  26. package/dist/assets/Typography.css +1 -1
  27. package/dist/{combineHooksSlotProps-C-zYvfnF.js → combineHooksSlotProps-DVjg9PRh.js} +1 -1
  28. package/dist/components/Advice/Advice.d.ts +17 -32
  29. package/dist/components/Advice/Advice.js +40 -39
  30. package/dist/components/Advice/Advice.stories.d.ts +3 -4
  31. package/dist/components/Button/Button.d.ts +0 -2
  32. package/dist/components/Button/Button.js +49 -51
  33. package/dist/components/Checkbox/Checkbox.js +52 -52
  34. package/dist/components/Chip/Chip.d.ts +12 -6
  35. package/dist/components/Chip/Chip.js +5 -7
  36. package/dist/components/Chip/Chip.stories.d.ts +14 -5
  37. package/dist/components/Dialog/Actions.js +1 -1
  38. package/dist/components/Dialog/Backdrop.d.ts +3 -3
  39. package/dist/components/Dialog/Backdrop.js +7 -8
  40. package/dist/components/Dialog/CloseIconButton.d.ts +2 -1
  41. package/dist/components/Dialog/CloseIconButton.js +18 -15
  42. package/dist/components/Dialog/Dialog.d.ts +6 -9
  43. package/dist/components/Dialog/Dialog.js +139 -139
  44. package/dist/components/Dialog/Dialog.stories.d.ts +46 -50
  45. package/dist/components/Dialog/DialogTitle.js +1 -1
  46. package/dist/components/EllipsisTooltip/EllipsisTooltip.js +17 -30
  47. package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -2
  48. package/dist/components/Icon/Icon.js +34 -62
  49. package/dist/components/Icon/types.d.ts +1 -1
  50. package/dist/components/IconButton/IconButton.js +42 -42
  51. package/dist/components/Input/Input.d.ts +5 -50
  52. package/dist/components/Input/Input.js +239 -243
  53. package/dist/components/Input/Input.stories.d.ts +3 -4
  54. package/dist/components/InputSearch/InputSearch.stories.d.ts +2 -3
  55. package/dist/components/PageHeader/PageHeader.js +57 -57
  56. package/dist/components/Pagination/Pagination.d.ts +1 -5
  57. package/dist/components/Pagination/Pagination.js +185 -87
  58. package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
  59. package/dist/components/Select/Select.d.ts +0 -7
  60. package/dist/components/Select/Select.js +365 -409
  61. package/dist/components/Select/SelectButton.d.ts +0 -1
  62. package/dist/components/Select/SelectButton.js +1 -1
  63. package/dist/components/Skeleton/Skeleton.d.ts +1 -3
  64. package/dist/components/Skeleton/Skeleton.js +12 -18
  65. package/dist/components/Skeleton/SkeletonTable.stories.d.ts +1 -1
  66. package/dist/components/Snackbar/Snackbar.js +94 -94
  67. package/dist/components/Snackbar/Snackbar.stories.d.ts +3 -3
  68. package/dist/components/SortTooltip/SortTooltip.js +46 -46
  69. package/dist/components/Stepper/Stepper.js +35 -35
  70. package/dist/components/Table/Table.d.ts +1 -3
  71. package/dist/components/Table/Table.js +85 -88
  72. package/dist/components/Table/Table.stories.d.ts +1 -1
  73. package/dist/components/Tabs/Tab.d.ts +3 -5
  74. package/dist/components/Tabs/Tab.js +36 -38
  75. package/dist/components/Tabs/TabPanel.d.ts +2 -4
  76. package/dist/components/Tabs/TabPanel.js +40 -51
  77. package/dist/components/Tabs/Tabs.d.ts +4 -6
  78. package/dist/components/Tabs/Tabs.js +128 -131
  79. package/dist/components/TextDisplay/TextDisplay.d.ts +3 -9
  80. package/dist/components/TextDisplay/TextDisplay.js +31 -45
  81. package/dist/components/TextDisplay/TextDisplay.stories.d.ts +1 -2
  82. package/dist/components/Toggle/Toggle.js +56 -56
  83. package/dist/components/ToggleGroup/Toggle.js +4 -5
  84. package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
  85. package/dist/components/Tooltip/Tooltip.d.ts +1 -3
  86. package/dist/components/Tooltip/Tooltip.js +4 -4
  87. package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -1
  88. package/dist/components/Typography/Typography.js +47 -47
  89. package/dist/{useSlotProps-C_I1kEHr.js → index-CH45lKw7.js} +99 -99
  90. package/dist/{index-bQFToy-I.js → index-CjW42-M-.js} +1 -1
  91. package/dist/main.d.ts +0 -5
  92. package/dist/main.js +76 -85
  93. package/dist/{useButton-DcihopJG.js → useButton-DNk3wrQp.js} +1 -1
  94. package/dist/useCompoundItem-D1iRfg8D.js +84 -0
  95. package/dist/useEventCallback-xTG9piMa.js +45 -0
  96. package/dist/{useList-B9C55YB7.js → useList-B0hog_3-.js} +2 -2
  97. package/package.json +2 -8
  98. package/dist/Dialog.module-D9e4RsKo.js +0 -30
  99. package/dist/SelectButton-BlVl6pJn.js +0 -70
  100. package/dist/Toggle-Buew6bzm.js +0 -182
  101. package/dist/assets/Adornment.css +0 -1
  102. package/dist/assets/Autocomplete.css +0 -1
  103. package/dist/assets/ResultWithChips.css +0 -1
  104. package/dist/assets/StepperNavigator.css +0 -1
  105. package/dist/components/Adornment/Adornment.d.ts +0 -20
  106. package/dist/components/Adornment/Adornment.js +0 -13
  107. package/dist/components/Adornment/Adornment.stories.d.ts +0 -14
  108. package/dist/components/Adornment/adornment.test.d.ts +0 -1
  109. package/dist/components/Autocomplete/Autocomplete.d.ts +0 -20
  110. package/dist/components/Autocomplete/Autocomplete.js +0 -679
  111. package/dist/components/Autocomplete/Autocomplete.stories.d.ts +0 -23
  112. package/dist/components/Pagination/usePagination.d.ts +0 -90
  113. package/dist/components/Pagination/usePagination.js +0 -79
  114. package/dist/components/ResultWithChips/ResultWithChips.d.ts +0 -12
  115. package/dist/components/ResultWithChips/ResultWithChips.js +0 -33
  116. package/dist/components/RowItem/RowItem.d.ts +0 -25
  117. package/dist/components/RowItem/RowItem.js +0 -20
  118. package/dist/components/RowItem/RowItem.stories.d.ts +0 -17
  119. package/dist/components/RowItem/rowItem.test.d.ts +0 -1
  120. package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -43
  121. package/dist/components/StepperNavigator/StepperNavigator.js +0 -56
  122. package/dist/components/StepperNavigator/StepperNavigator.stories.d.ts +0 -16
  123. package/dist/components/StepperNavigator/StepperNavigator.test.d.ts +0 -1
  124. package/dist/ownerDocument-YGhwAnr1.js +0 -33
  125. package/dist/useCompoundItem-B7Eo_qZk.js +0 -68
  126. package/dist/useEventCallback-BAQJJ3ye.js +0 -14
  127. package/dist/useId-BW-oWmul.js +0 -19
@@ -1,18 +1,16 @@
1
- import { jsx as g, jsxs as Re } from "react/jsx-runtime";
1
+ import { jsx as h, jsxs as Oe } from "react/jsx-runtime";
2
+ import { c as _e } from "../../clsx-DB4S2d7J.js";
3
+ import { Typography as Ke } from "../Typography/Typography.js";
4
+ import { s as L, S as ze } from "../../SelectButton-C8JQKaf4.js";
5
+ import { g as Ve, a as we, u as X, f as ne, b as g, P as l, _ as ke, c as le, d as Ie, e as Ne } from "../../index-CH45lKw7.js";
2
6
  import * as s from "react";
3
- import { useId as ze } from "react";
4
- import { c as ne } from "../../clsx-DB4S2d7J.js";
5
- import { Typography as Ve } from "../Typography/Typography.js";
6
- import { s as w, S as We } from "../../SelectButton-BlVl6pJn.js";
7
- import { g as we, a as Ie, u as X, f as le, b as m, P as l, _ as ke, c as se, d as Ne, e as Me } from "../../useSlotProps-C_I1kEHr.js";
8
- import { u as Je, c as re, a as _e, L as Q } from "../../combineHooksSlotProps-C-zYvfnF.js";
9
- import { u as Te } from "../../useButton-DcihopJG.js";
10
- import { u as Le } from "../../useId-BW-oWmul.js";
11
- import { u as Ge, a as Qe, C as Xe } from "../../useCompoundItem-B7Eo_qZk.js";
12
- import { P as Ye } from "../../Popup-Ck3XlWMq.js";
13
- import { m as ye, h as Ze, l as et, u as tt } from "../../useList-B9C55YB7.js";
14
- import { u as ot } from "../../useEnhancedEffect-CJGo-L3B.js";
15
- const nt = {
7
+ import { u as Je, c as se, a as ye, L as Q } from "../../combineHooksSlotProps-DVjg9PRh.js";
8
+ import { u as Me } from "../../useButton-DNk3wrQp.js";
9
+ import { u as Te, a as We, b as Ge, C as Qe } from "../../useCompoundItem-D1iRfg8D.js";
10
+ import { P as Xe } from "../../Popup-B6ZSGIEI.js";
11
+ import { m as ve, h as Ye, l as Ze, u as et } from "../../useList-B0hog_3-.js";
12
+ import { u as tt } from "../../useEnhancedEffect-CJGo-L3B.js";
13
+ const ot = {
16
14
  border: 0,
17
15
  clip: "rect(0 0 0 0)",
18
16
  height: "1px",
@@ -23,17 +21,17 @@ const nt = {
23
21
  whiteSpace: "nowrap",
24
22
  width: "1px"
25
23
  }, Ae = "Option";
26
- function lt(n) {
27
- return we(Ae, n);
24
+ function nt(n) {
25
+ return Ve(Ae, n);
28
26
  }
29
- Ie(Ae, ["root", "disabled", "selected", "highlighted"]);
30
- function st(n) {
27
+ we(Ae, ["root", "disabled", "selected", "highlighted"]);
28
+ function lt(n) {
31
29
  const {
32
30
  value: o,
33
- label: a,
34
- disabled: c,
31
+ label: i,
32
+ disabled: a,
35
33
  rootRef: r,
36
- id: u
34
+ id: c
37
35
  } = n, {
38
36
  getRootProps: p,
39
37
  highlighted: f,
@@ -41,128 +39,128 @@ function st(n) {
41
39
  } = Je({
42
40
  item: o
43
41
  }), {
44
- getRootProps: C,
45
- rootRef: O
46
- } = Te({
47
- disabled: c,
42
+ getRootProps: v,
43
+ rootRef: I
44
+ } = Me({
45
+ disabled: a,
48
46
  focusableWhenDisabled: !0
49
- }), h = Le(u), P = s.useRef(null), v = s.useMemo(() => ({
50
- disabled: c,
51
- label: a,
47
+ }), x = Te(c), y = s.useRef(null), R = s.useMemo(() => ({
48
+ disabled: a,
49
+ label: i,
52
50
  value: o,
53
- ref: P,
54
- id: h
55
- }), [c, a, o, h]), {
56
- index: y
57
- } = Ge(o, v), R = X(r, P, O), I = (b) => (_) => {
58
- var S;
59
- (S = b.onKeyDown) == null || S.call(b, _), !_.defaultMuiPrevented && [" ", "Enter"].includes(_.key) && (_.defaultMuiPrevented = !0);
51
+ ref: y,
52
+ id: x
53
+ }), [a, i, o, x]), {
54
+ index: N
55
+ } = We(o, R), O = X(r, y, I), M = (b) => (C) => {
56
+ var P;
57
+ (P = b.onKeyDown) == null || P.call(b, C), !C.defaultMuiPrevented && [" ", "Enter"].includes(C.key) && (C.defaultMuiPrevented = !0);
60
58
  }, B = (b = {}) => ({
61
- onKeyDown: I(b)
59
+ onKeyDown: M(b)
62
60
  });
63
61
  return {
64
62
  getRootProps: (b = {}) => {
65
- const _ = le(b), S = re(p, re(C, B));
66
- return m({}, b, _, S(_), {
67
- id: h,
68
- ref: R,
63
+ const C = ne(b), P = se(p, se(v, B));
64
+ return g({}, b, C, P(C), {
65
+ id: x,
66
+ ref: O,
69
67
  role: "option",
70
68
  "aria-selected": d
71
69
  });
72
70
  },
73
71
  highlighted: f,
74
- index: y,
72
+ index: N,
75
73
  selected: d,
76
- rootRef: R
74
+ rootRef: O
77
75
  };
78
76
  }
79
- function rt(n) {
80
- const o = s.useContext(_e);
77
+ function st(n) {
78
+ const o = s.useContext(ye);
81
79
  if (!o)
82
80
  throw new Error("Option: ListContext was not found.");
83
81
  const {
84
- getItemState: a,
85
- dispatch: c
82
+ getItemState: i,
83
+ dispatch: a
86
84
  } = o, {
87
85
  highlighted: r,
88
- selected: u,
86
+ selected: c,
89
87
  focusable: p
90
- } = a(n), f = s.useCallback((C) => {
91
- if (C !== n)
88
+ } = i(n), f = s.useCallback((v) => {
89
+ if (v !== n)
92
90
  throw new Error(["Base UI Option: Tried to access the state of another Option.", "This is unsupported when the Option uses the OptionContextStabilizer as a performance optimization."].join("/n"));
93
91
  return {
94
92
  highlighted: r,
95
- selected: u,
93
+ selected: c,
96
94
  focusable: p
97
95
  };
98
- }, [r, u, p, n]);
96
+ }, [r, c, p, n]);
99
97
  return {
100
98
  contextValue: s.useMemo(() => ({
101
- dispatch: c,
99
+ dispatch: a,
102
100
  getItemState: f
103
- }), [c, f])
101
+ }), [a, f])
104
102
  };
105
103
  }
106
- const it = ["children", "disabled", "label", "slotProps", "slots", "value"];
107
- function at(n) {
104
+ const rt = ["children", "disabled", "label", "slotProps", "slots", "value"];
105
+ function ut(n) {
108
106
  const {
109
107
  disabled: o,
110
- highlighted: a,
111
- selected: c
108
+ highlighted: i,
109
+ selected: a
112
110
  } = n;
113
- return Ne({
114
- root: ["root", o && "disabled", a && "highlighted", c && "selected"]
115
- }, Me(lt));
111
+ return Ie({
112
+ root: ["root", o && "disabled", i && "highlighted", a && "selected"]
113
+ }, Ne(nt));
116
114
  }
117
- const ut = /* @__PURE__ */ s.memo(/* @__PURE__ */ s.forwardRef(function(o, a) {
118
- var c, r;
115
+ const it = /* @__PURE__ */ s.memo(/* @__PURE__ */ s.forwardRef(function(o, i) {
116
+ var a, r;
119
117
  const {
120
- children: u,
118
+ children: c,
121
119
  disabled: p = !1,
122
120
  label: f,
123
121
  slotProps: d = {},
124
- slots: C = {},
125
- value: O
126
- } = o, h = ke(o, it), P = (c = C.root) != null ? c : "li", v = s.useRef(null), y = X(v, a), R = f ?? (typeof u == "string" ? u : (r = v.current) == null || (r = r.textContent) == null ? void 0 : r.trim()), {
127
- getRootProps: I,
122
+ slots: v = {},
123
+ value: I
124
+ } = o, x = ke(o, rt), y = (a = v.root) != null ? a : "li", R = s.useRef(null), N = X(R, i), O = f ?? (typeof c == "string" ? c : (r = R.current) == null || (r = r.textContent) == null ? void 0 : r.trim()), {
125
+ getRootProps: M,
128
126
  selected: B,
129
127
  highlighted: b,
130
- index: _
131
- } = st({
128
+ index: C
129
+ } = lt({
132
130
  disabled: p,
133
- label: R,
134
- rootRef: y,
135
- value: O
136
- }), S = m({}, o, {
131
+ label: O,
132
+ rootRef: N,
133
+ value: I
134
+ }), P = g({}, o, {
137
135
  disabled: p,
138
136
  highlighted: b,
139
- index: _,
137
+ index: C,
140
138
  selected: B
141
- }), j = at(S), k = se({
142
- getSlotProps: I,
143
- elementType: P,
139
+ }), j = ut(P), _ = le({
140
+ getSlotProps: M,
141
+ elementType: y,
144
142
  externalSlotProps: d.root,
145
- externalForwardedProps: h,
143
+ externalForwardedProps: x,
146
144
  className: j.root,
147
- ownerState: S
145
+ ownerState: P
148
146
  });
149
- return /* @__PURE__ */ g(P, m({}, k, {
150
- children: u
147
+ return /* @__PURE__ */ h(y, g({}, _, {
148
+ children: c
151
149
  }));
152
- })), Be = /* @__PURE__ */ s.forwardRef(function(o, a) {
150
+ })), Le = /* @__PURE__ */ s.forwardRef(function(o, i) {
153
151
  const {
154
- value: c
152
+ value: a
155
153
  } = o, {
156
154
  contextValue: r
157
- } = rt(c);
158
- return /* @__PURE__ */ g(_e.Provider, {
155
+ } = st(a);
156
+ return /* @__PURE__ */ h(ye.Provider, {
159
157
  value: r,
160
- children: /* @__PURE__ */ g(ut, m({}, o, {
161
- ref: a
158
+ children: /* @__PURE__ */ h(it, g({}, o, {
159
+ ref: i
162
160
  }))
163
161
  });
164
162
  });
165
- process.env.NODE_ENV !== "production" && (Be.propTypes = {
163
+ process.env.NODE_ENV !== "production" && (Le.propTypes = {
166
164
  // ┌────────────────────────────── Warning ──────────────────────────────┐
167
165
  // │ These PropTypes are generated from the TypeScript type definitions. │
168
166
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -205,444 +203,444 @@ process.env.NODE_ENV !== "production" && (Be.propTypes = {
205
203
  */
206
204
  value: l.any.isRequired
207
205
  });
208
- const ie = {
206
+ const re = {
209
207
  buttonClick: "buttonClick",
210
208
  browserAutoFill: "browserAutoFill"
211
- }, Ee = (n) => {
209
+ }, Be = (n) => {
212
210
  const {
213
211
  label: o,
214
- value: a
212
+ value: i
215
213
  } = n;
216
- return typeof o == "string" ? o : typeof a == "string" ? a : String(n);
214
+ return typeof o == "string" ? o : typeof i == "string" ? i : String(n);
217
215
  };
218
- function ct(n, o) {
216
+ function at(n, o) {
219
217
  const {
220
- open: a
218
+ open: i
221
219
  } = n, {
222
220
  context: {
223
- selectionMode: c
221
+ selectionMode: a
224
222
  }
225
223
  } = o;
226
- if (o.type === ie.buttonClick) {
224
+ if (o.type === re.buttonClick) {
227
225
  var r;
228
- const d = (r = n.selectedValues[0]) != null ? r : ye(null, "start", o.context);
229
- return m({}, n, {
230
- open: !a,
231
- highlightedValue: a ? null : d
226
+ const d = (r = n.selectedValues[0]) != null ? r : ve(null, "start", o.context);
227
+ return g({}, n, {
228
+ open: !i,
229
+ highlightedValue: i ? null : d
232
230
  });
233
231
  }
234
- if (o.type === ie.browserAutoFill)
235
- return Ze(o.item, n, o.context);
236
- const u = et(n, o);
232
+ if (o.type === re.browserAutoFill)
233
+ return Ye(o.item, n, o.context);
234
+ const c = Ze(n, o);
237
235
  switch (o.type) {
238
236
  case Q.keyDown:
239
237
  if (n.open) {
240
238
  if (o.event.key === "Escape")
241
- return m({}, u, {
239
+ return g({}, c, {
242
240
  open: !1
243
241
  });
244
242
  } else {
245
243
  if (o.event.key === "ArrowDown") {
246
244
  var p;
247
- return m({}, n, {
245
+ return g({}, n, {
248
246
  open: !0,
249
- highlightedValue: (p = n.selectedValues[0]) != null ? p : ye(null, "start", o.context)
247
+ highlightedValue: (p = n.selectedValues[0]) != null ? p : ve(null, "start", o.context)
250
248
  });
251
249
  }
252
250
  if (o.event.key === "ArrowUp") {
253
251
  var f;
254
- return m({}, n, {
252
+ return g({}, n, {
255
253
  open: !0,
256
- highlightedValue: (f = n.selectedValues[0]) != null ? f : ye(null, "end", o.context)
254
+ highlightedValue: (f = n.selectedValues[0]) != null ? f : ve(null, "end", o.context)
257
255
  });
258
256
  }
259
257
  }
260
258
  break;
261
259
  case Q.itemClick:
262
- if (c === "single")
263
- return m({}, u, {
260
+ if (a === "single")
261
+ return g({}, c, {
264
262
  open: !1
265
263
  });
266
264
  break;
267
265
  case Q.blur:
268
- return m({}, u, {
266
+ return g({}, c, {
269
267
  open: !1
270
268
  });
271
269
  default:
272
- return u;
270
+ return c;
273
271
  }
274
- return u;
272
+ return c;
275
273
  }
276
- function dt(n) {
274
+ function ct(n) {
277
275
  return Array.isArray(n) ? n.length === 0 ? "" : JSON.stringify(n.map((o) => o.value)) : (n == null ? void 0 : n.value) == null ? "" : typeof n.value == "string" || typeof n.value == "number" ? n.value : JSON.stringify(n.value);
278
276
  }
279
- function pt(n) {
277
+ function dt(n) {
280
278
  const {
281
279
  areOptionsEqual: o,
282
- buttonRef: a,
283
- defaultOpen: c = !1,
280
+ buttonRef: i,
281
+ defaultOpen: a = !1,
284
282
  defaultValue: r,
285
- disabled: u = !1,
283
+ disabled: c = !1,
286
284
  listboxId: p,
287
285
  listboxRef: f,
288
286
  multiple: d = !1,
289
- name: C,
290
- required: O,
291
- onChange: h,
292
- onHighlightChange: P,
293
- onOpenChange: v,
294
- open: y,
295
- options: R,
296
- getOptionAsString: I = Ee,
297
- getSerializedValue: B = dt,
287
+ name: v,
288
+ required: I,
289
+ onChange: x,
290
+ onHighlightChange: y,
291
+ onOpenChange: R,
292
+ open: N,
293
+ options: O,
294
+ getOptionAsString: M = Be,
295
+ getSerializedValue: B = ct,
298
296
  value: b,
299
- componentName: _ = "useSelect"
300
- } = n, S = s.useRef(null), j = X(a, S), k = s.useRef(null), H = Le(p);
297
+ componentName: C = "useSelect"
298
+ } = n, P = s.useRef(null), j = X(i, P), _ = s.useRef(null), $ = Te(p);
301
299
  let E;
302
300
  b === void 0 && r === void 0 ? E = [] : r !== void 0 && (d ? E = r : E = r == null ? [] : [r]);
303
301
  const Y = s.useMemo(() => {
304
302
  if (b !== void 0)
305
303
  return d ? b : b == null ? [] : [b];
306
304
  }, [b, d]), {
307
- subitems: L,
305
+ subitems: T,
308
306
  contextValue: F
309
- } = Qe(), N = s.useMemo(() => R != null ? new Map(R.map((e, t) => [e.value, {
307
+ } = Ge(), V = s.useMemo(() => O != null ? new Map(O.map((e, t) => [e.value, {
310
308
  value: e.value,
311
309
  label: e.label,
312
310
  disabled: e.disabled,
313
311
  ref: /* @__PURE__ */ s.createRef(),
314
- id: `${H}_${t}`
315
- }])) : L, [R, L, H]), ae = X(f, k), {
312
+ id: `${$}_${t}`
313
+ }])) : T, [O, T, $]), ue = X(f, _), {
316
314
  getRootProps: Z,
317
- active: ue,
318
- focusVisible: ce,
315
+ active: ie,
316
+ focusVisible: ae,
319
317
  rootRef: U
320
- } = Te({
321
- disabled: u,
318
+ } = Me({
319
+ disabled: c,
322
320
  rootRef: j
323
- }), q = s.useMemo(() => Array.from(N.keys()), [N]), V = s.useCallback((e) => {
321
+ }), q = s.useMemo(() => Array.from(V.keys()), [V]), S = s.useCallback((e) => {
324
322
  if (o !== void 0) {
325
- const t = q.find((i) => o(i, e));
326
- return N.get(t);
323
+ const t = q.find((u) => o(u, e));
324
+ return V.get(t);
327
325
  }
328
- return N.get(e);
329
- }, [N, o, q]), ee = s.useCallback((e) => {
326
+ return V.get(e);
327
+ }, [V, o, q]), ee = s.useCallback((e) => {
330
328
  var t;
331
- const i = V(e);
332
- return (t = i == null ? void 0 : i.disabled) != null ? t : !1;
333
- }, [V]), te = s.useCallback((e) => {
334
- const t = V(e);
335
- return t ? I(t) : "";
336
- }, [V, I]), de = s.useMemo(() => ({
329
+ const u = S(e);
330
+ return (t = u == null ? void 0 : u.disabled) != null ? t : !1;
331
+ }, [S]), te = s.useCallback((e) => {
332
+ const t = S(e);
333
+ return t ? M(t) : "";
334
+ }, [S, M]), ce = s.useMemo(() => ({
337
335
  selectedValues: Y,
338
- open: y
339
- }), [Y, y]), pe = s.useCallback((e) => {
336
+ open: N
337
+ }), [Y, N]), de = s.useCallback((e) => {
340
338
  var t;
341
- return (t = N.get(e)) == null ? void 0 : t.id;
342
- }, [N]), fe = s.useCallback((e, t) => {
339
+ return (t = V.get(e)) == null ? void 0 : t.id;
340
+ }, [V]), pe = s.useCallback((e, t) => {
343
341
  if (d)
344
- h == null || h(e, t);
342
+ x == null || x(e, t);
345
343
  else {
346
- var i;
347
- h == null || h(e, (i = t[0]) != null ? i : null);
344
+ var u;
345
+ x == null || x(e, (u = t[0]) != null ? u : null);
348
346
  }
349
- }, [d, h]), be = s.useCallback((e, t) => {
350
- P == null || P(e, t ?? null);
351
- }, [P]), me = s.useCallback((e, t, i) => {
352
- if (t === "open" && (v == null || v(i), i === !1 && (e == null ? void 0 : e.type) !== "blur")) {
353
- var x;
354
- (x = S.current) == null || x.focus();
347
+ }, [d, x]), fe = s.useCallback((e, t) => {
348
+ y == null || y(e, t ?? null);
349
+ }, [y]), be = s.useCallback((e, t, u) => {
350
+ if (t === "open" && (R == null || R(u), u === !1 && (e == null ? void 0 : e.type) !== "blur")) {
351
+ var m;
352
+ (m = P.current) == null || m.focus();
355
353
  }
356
- }, [v]), ge = s.useCallback((e) => {
357
- var t, i;
358
- return e == null ? null : (t = (i = L.get(e)) == null ? void 0 : i.ref.current) != null ? t : null;
359
- }, [L]), he = {
354
+ }, [R]), ge = s.useCallback((e) => {
355
+ var t, u;
356
+ return e == null ? null : (t = (u = T.get(e)) == null ? void 0 : u.ref.current) != null ? t : null;
357
+ }, [T]), me = {
360
358
  getInitialState: () => {
361
359
  var e;
362
360
  return {
363
361
  highlightedValue: null,
364
362
  selectedValues: (e = E) != null ? e : [],
365
- open: c
363
+ open: a
366
364
  };
367
365
  },
368
- getItemId: pe,
369
- controlledProps: de,
366
+ getItemId: de,
367
+ controlledProps: ce,
370
368
  focusManagement: "DOM",
371
369
  getItemDomElement: ge,
372
370
  itemComparer: o,
373
371
  isItemDisabled: ee,
374
- rootRef: ae,
375
- onChange: fe,
376
- onHighlightChange: be,
377
- onStateChange: me,
372
+ rootRef: ue,
373
+ onChange: pe,
374
+ onHighlightChange: fe,
375
+ onStateChange: be,
378
376
  reducerActionContext: s.useMemo(() => ({
379
377
  multiple: d
380
378
  }), [d]),
381
379
  items: q,
382
380
  getItemAsString: te,
383
381
  selectionMode: d ? "multiple" : "single",
384
- stateReducer: ct,
385
- componentName: _
382
+ stateReducer: at,
383
+ componentName: C
386
384
  }, {
387
385
  dispatch: D,
388
- getRootProps: xe,
386
+ getRootProps: he,
389
387
  contextValue: K,
390
388
  state: {
391
- open: M,
389
+ open: w,
392
390
  highlightedValue: A,
393
- selectedValues: T
391
+ selectedValues: k
394
392
  },
395
393
  rootRef: z
396
- } = tt(he), Ce = s.useRef(M);
397
- ot(() => {
398
- if (M && A !== null) {
394
+ } = et(me), xe = s.useRef(w);
395
+ tt(() => {
396
+ if (w && A !== null) {
399
397
  var e;
400
- const t = (e = V(A)) == null ? void 0 : e.ref;
401
- if (!k.current || !(t != null && t.current))
398
+ const t = (e = S(A)) == null ? void 0 : e.ref;
399
+ if (!_.current || !(t != null && t.current))
402
400
  return;
403
- Ce.current || t.current.focus({
401
+ xe.current || t.current.focus({
404
402
  preventScroll: !0
405
403
  });
406
- const i = k.current.getBoundingClientRect(), x = t.current.getBoundingClientRect();
407
- x.top < i.top ? k.current.scrollTop -= i.top - x.top : x.bottom > i.bottom && (k.current.scrollTop += x.bottom - i.bottom);
404
+ const u = _.current.getBoundingClientRect(), m = t.current.getBoundingClientRect();
405
+ m.top < u.top ? _.current.scrollTop -= u.top - m.top : m.bottom > u.bottom && (_.current.scrollTop += m.bottom - u.bottom);
408
406
  }
409
- }, [M, A, V]);
410
- const W = s.useCallback((e) => V(e), [V]), Pe = (e) => (t) => {
411
- var i;
412
- if (e == null || (i = e.onClick) == null || i.call(e, t), !t.defaultMuiPrevented) {
413
- const x = {
414
- type: ie.buttonClick,
407
+ }, [w, A, S]);
408
+ const J = s.useCallback((e) => S(e), [S]), Ce = (e) => (t) => {
409
+ var u;
410
+ if (e == null || (u = e.onClick) == null || u.call(e, t), !t.defaultMuiPrevented) {
411
+ const m = {
412
+ type: re.buttonClick,
415
413
  event: t
416
414
  };
417
- D(x);
415
+ D(m);
418
416
  }
419
- }, J = (e) => (t) => {
420
- var i;
421
- (i = e.onKeyDown) == null || i.call(e, t), !t.defaultMuiPrevented && (t.key === "ArrowDown" || t.key === "ArrowUp") && (t.preventDefault(), D({
417
+ }, W = (e) => (t) => {
418
+ var u;
419
+ (u = e.onKeyDown) == null || u.call(e, t), !t.defaultMuiPrevented && (t.key === "ArrowDown" || t.key === "ArrowUp") && (t.preventDefault(), D({
422
420
  type: Q.keyDown,
423
421
  key: t.key,
424
422
  event: t
425
423
  }));
426
424
  }, oe = (e = {}) => ({
427
- onClick: Pe(e),
428
- onKeyDown: J(e)
429
- }), $ = (e = {}) => m({}, e, oe(e), {
425
+ onClick: Ce(e),
426
+ onKeyDown: W(e)
427
+ }), H = (e = {}) => g({}, e, oe(e), {
430
428
  role: "combobox",
431
- "aria-expanded": M,
432
- "aria-controls": H
429
+ "aria-expanded": w,
430
+ "aria-controls": $
433
431
  }), He = (e = {}) => {
434
- const t = le(e), i = re($, Z);
435
- return m({}, e, i(t));
436
- }, Fe = (e) => (t) => {
437
- var i, x;
438
- (i = e.onBlur) == null || i.call(e, t), !t.defaultMuiPrevented && ((x = k.current) != null && x.contains(t.relatedTarget) || t.relatedTarget === S.current) && (t.defaultMuiPrevented = !0);
439
- }, qe = (e = {}) => ({
440
- onBlur: Fe(e)
441
- }), je = (e = {}) => {
442
- const t = le(e), i = re(qe, xe);
443
- return m({
444
- id: H,
432
+ const t = ne(e), u = se(H, Z);
433
+ return g({}, e, u(t));
434
+ }, $e = (e) => (t) => {
435
+ var u, m;
436
+ (u = e.onBlur) == null || u.call(e, t), !t.defaultMuiPrevented && ((m = _.current) != null && m.contains(t.relatedTarget) || t.relatedTarget === P.current) && (t.defaultMuiPrevented = !0);
437
+ }, Fe = (e = {}) => ({
438
+ onBlur: $e(e)
439
+ }), qe = (e = {}) => {
440
+ const t = ne(e), u = se(Fe, he);
441
+ return g({
442
+ id: $,
445
443
  role: "listbox",
446
444
  "aria-multiselectable": d ? "true" : void 0
447
- }, e, i(t));
445
+ }, e, u(t));
448
446
  };
449
447
  s.useDebugValue({
450
- selectedOptions: T,
448
+ selectedOptions: k,
451
449
  highlightedOption: A,
452
- open: M
450
+ open: w
453
451
  });
454
- const Ue = s.useMemo(() => m({}, K, F), [K, F]);
452
+ const je = s.useMemo(() => g({}, K, F), [K, F]);
455
453
  let G;
456
- n.multiple ? G = T : G = T.length > 0 ? T[0] : null;
457
- let ve;
454
+ n.multiple ? G = k : G = k.length > 0 ? k[0] : null;
455
+ let Pe;
458
456
  if (d)
459
- ve = G.map((e) => W(e)).filter((e) => e !== void 0);
457
+ Pe = G.map((e) => J(e)).filter((e) => e !== void 0);
460
458
  else {
461
- var Se;
462
- ve = (Se = W(G)) != null ? Se : null;
459
+ var Re;
460
+ Pe = (Re = J(G)) != null ? Re : null;
463
461
  }
464
- const Ke = (e) => (t) => {
465
- var i;
466
- if (e == null || (i = e.onChange) == null || i.call(e, t), t.defaultMuiPrevented)
462
+ const Ue = (e) => (t) => {
463
+ var u;
464
+ if (e == null || (u = e.onChange) == null || u.call(e, t), t.defaultMuiPrevented)
467
465
  return;
468
- const x = N.get(t.target.value);
466
+ const m = V.get(t.target.value);
469
467
  t.target.value === "" ? D({
470
468
  type: Q.clearSelection
471
- }) : x !== void 0 && D({
472
- type: ie.browserAutoFill,
473
- item: x.value,
469
+ }) : m !== void 0 && D({
470
+ type: re.browserAutoFill,
471
+ item: m.value,
474
472
  event: t
475
473
  });
476
474
  };
477
475
  return {
478
- buttonActive: ue,
479
- buttonFocusVisible: ce,
476
+ buttonActive: ie,
477
+ buttonFocusVisible: ae,
480
478
  buttonRef: U,
481
- contextValue: Ue,
482
- disabled: u,
479
+ contextValue: je,
480
+ disabled: c,
483
481
  dispatch: D,
484
482
  getButtonProps: He,
485
483
  getHiddenInputProps: (e = {}) => {
486
- const t = le(e);
487
- return m({
488
- name: C,
484
+ const t = ne(e);
485
+ return g({
486
+ name: v,
489
487
  tabIndex: -1,
490
488
  "aria-hidden": !0,
491
- required: O ? !0 : void 0,
492
- value: B(ve),
493
- style: nt
489
+ required: I ? !0 : void 0,
490
+ value: B(Pe),
491
+ style: ot
494
492
  }, e, {
495
- onChange: Ke(t)
493
+ onChange: Ue(t)
496
494
  });
497
495
  },
498
- getListboxProps: je,
499
- getOptionMetadata: W,
496
+ getListboxProps: qe,
497
+ getOptionMetadata: J,
500
498
  listboxRef: z,
501
- open: M,
499
+ open: w,
502
500
  options: q,
503
501
  value: G,
504
502
  highlightedOption: A
505
503
  };
506
504
  }
507
- function ft(n) {
505
+ function pt(n) {
508
506
  const {
509
507
  value: o,
510
- children: a
508
+ children: i
511
509
  } = n, {
512
- dispatch: c,
510
+ dispatch: a,
513
511
  getItemIndex: r,
514
- getItemState: u,
512
+ getItemState: c,
515
513
  registerItem: p,
516
514
  totalSubitemCount: f
517
515
  } = o, d = s.useMemo(() => ({
518
- dispatch: c,
519
- getItemState: u,
516
+ dispatch: a,
517
+ getItemState: c,
520
518
  getItemIndex: r
521
- }), [c, r, u]), C = s.useMemo(() => ({
519
+ }), [a, r, c]), v = s.useMemo(() => ({
522
520
  getItemIndex: r,
523
521
  registerItem: p,
524
522
  totalSubitemCount: f
525
523
  }), [p, r, f]);
526
- return /* @__PURE__ */ g(Xe.Provider, {
527
- value: C,
528
- children: /* @__PURE__ */ g(_e.Provider, {
524
+ return /* @__PURE__ */ h(Qe.Provider, {
525
+ value: v,
526
+ children: /* @__PURE__ */ h(ye.Provider, {
529
527
  value: d,
530
- children: a
528
+ children: i
531
529
  })
532
530
  });
533
531
  }
534
- const De = "Select";
535
- function bt(n) {
536
- return we(De, n);
532
+ const Ee = "Select";
533
+ function ft(n) {
534
+ return Ve(Ee, n);
537
535
  }
538
- Ie(De, ["root", "button", "listbox", "popup", "active", "expanded", "disabled", "focusVisible"]);
539
- var Oe;
540
- const mt = ["areOptionsEqual", "autoComplete", "autoFocus", "children", "defaultValue", "defaultListboxOpen", "disabled", "getSerializedValue", "listboxId", "listboxOpen", "multiple", "name", "required", "onChange", "onListboxOpenChange", "getOptionAsString", "renderValue", "placeholder", "slotProps", "slots", "value"];
536
+ we(Ee, ["root", "button", "listbox", "popup", "active", "expanded", "disabled", "focusVisible"]);
537
+ var Se;
538
+ const bt = ["areOptionsEqual", "autoComplete", "autoFocus", "children", "defaultValue", "defaultListboxOpen", "disabled", "getSerializedValue", "listboxId", "listboxOpen", "multiple", "name", "required", "onChange", "onListboxOpenChange", "getOptionAsString", "renderValue", "placeholder", "slotProps", "slots", "value"];
541
539
  function gt(n) {
542
540
  var o;
543
- return Array.isArray(n) ? /* @__PURE__ */ g(s.Fragment, {
544
- children: n.map((a) => a.label).join(", ")
541
+ return Array.isArray(n) ? /* @__PURE__ */ h(s.Fragment, {
542
+ children: n.map((i) => i.label).join(", ")
545
543
  }) : (o = n == null ? void 0 : n.label) != null ? o : null;
546
544
  }
547
- function ht(n) {
545
+ function mt(n) {
548
546
  const {
549
547
  active: o,
550
- disabled: a,
551
- open: c,
548
+ disabled: i,
549
+ open: a,
552
550
  focusVisible: r
553
551
  } = n;
554
- return Ne({
555
- root: ["root", a && "disabled", r && "focusVisible", o && "active", c && "expanded"],
556
- listbox: ["listbox", a && "disabled"],
552
+ return Ie({
553
+ root: ["root", i && "disabled", r && "focusVisible", o && "active", a && "expanded"],
554
+ listbox: ["listbox", i && "disabled"],
557
555
  popup: ["popup"]
558
- }, Me(bt));
556
+ }, Ne(ft));
559
557
  }
560
- const $e = /* @__PURE__ */ s.forwardRef(function(o, a) {
561
- var c, r, u, p, f;
558
+ const De = /* @__PURE__ */ s.forwardRef(function(o, i) {
559
+ var a, r, c, p, f;
562
560
  const {
563
561
  areOptionsEqual: d,
564
- autoComplete: C,
565
- autoFocus: O,
566
- children: h,
567
- defaultValue: P,
568
- defaultListboxOpen: v = !1,
569
- disabled: y,
570
- getSerializedValue: R,
571
- listboxId: I,
562
+ autoComplete: v,
563
+ autoFocus: I,
564
+ children: x,
565
+ defaultValue: y,
566
+ defaultListboxOpen: R = !1,
567
+ disabled: N,
568
+ getSerializedValue: O,
569
+ listboxId: M,
572
570
  listboxOpen: B,
573
571
  multiple: b = !1,
574
- name: _,
575
- required: S = !1,
572
+ name: C,
573
+ required: P = !1,
576
574
  onChange: j,
577
- onListboxOpenChange: k,
578
- getOptionAsString: H = Ee,
575
+ onListboxOpenChange: _,
576
+ getOptionAsString: $ = Be,
579
577
  renderValue: E,
580
578
  placeholder: Y,
581
- slotProps: L = {},
579
+ slotProps: T = {},
582
580
  slots: F = {},
583
- value: N
584
- } = o, ae = ke(o, mt), Z = E ?? gt, [ue, ce] = s.useState(!1), U = s.useRef(null), q = s.useRef(null), V = (c = F.root) != null ? c : "button", ee = (r = F.listbox) != null ? r : "ul", te = (u = F.popup) != null ? u : "div", de = s.useCallback(($) => {
585
- ce($ != null);
586
- }, []), pe = X(a, U, de);
581
+ value: V
582
+ } = o, ue = ke(o, bt), Z = E ?? gt, [ie, ae] = s.useState(!1), U = s.useRef(null), q = s.useRef(null), S = (a = F.root) != null ? a : "button", ee = (r = F.listbox) != null ? r : "ul", te = (c = F.popup) != null ? c : "div", ce = s.useCallback((H) => {
583
+ ae(H != null);
584
+ }, []), de = X(i, U, ce);
587
585
  s.useEffect(() => {
588
- O && U.current.focus();
589
- }, [O]);
586
+ I && U.current.focus();
587
+ }, [I]);
590
588
  const {
591
- buttonActive: fe,
592
- buttonFocusVisible: be,
593
- contextValue: me,
589
+ buttonActive: pe,
590
+ buttonFocusVisible: fe,
591
+ contextValue: be,
594
592
  disabled: ge,
595
- getButtonProps: he,
593
+ getButtonProps: me,
596
594
  getListboxProps: D,
597
- getHiddenInputProps: xe,
595
+ getHiddenInputProps: he,
598
596
  getOptionMetadata: K,
599
- value: M,
597
+ value: w,
600
598
  open: A
601
- } = pt({
602
- name: _,
603
- required: S,
604
- getSerializedValue: R,
599
+ } = dt({
600
+ name: C,
601
+ required: P,
602
+ getSerializedValue: O,
605
603
  areOptionsEqual: d,
606
- buttonRef: pe,
607
- defaultOpen: v,
608
- defaultValue: P,
609
- disabled: y,
610
- listboxId: I,
604
+ buttonRef: de,
605
+ defaultOpen: R,
606
+ defaultValue: y,
607
+ disabled: N,
608
+ listboxId: M,
611
609
  multiple: b,
612
610
  open: B,
613
611
  onChange: j,
614
- onOpenChange: k,
615
- getOptionAsString: H,
616
- value: N,
612
+ onOpenChange: _,
613
+ getOptionAsString: $,
614
+ value: V,
617
615
  componentName: "Select"
618
- }), T = m({}, o, {
619
- active: fe,
620
- defaultListboxOpen: v,
616
+ }), k = g({}, o, {
617
+ active: pe,
618
+ defaultListboxOpen: R,
621
619
  disabled: ge,
622
- focusVisible: be,
620
+ focusVisible: fe,
623
621
  open: A,
624
622
  multiple: b,
625
623
  renderValue: Z,
626
- value: M
627
- }), z = ht(T), Ce = se({
628
- elementType: V,
629
- getSlotProps: he,
630
- externalSlotProps: L.root,
631
- externalForwardedProps: ae,
632
- ownerState: T,
624
+ value: w
625
+ }), z = mt(k), xe = le({
626
+ elementType: S,
627
+ getSlotProps: me,
628
+ externalSlotProps: T.root,
629
+ externalForwardedProps: ue,
630
+ ownerState: k,
633
631
  className: z.root
634
- }), W = se({
632
+ }), J = le({
635
633
  elementType: ee,
636
634
  getSlotProps: D,
637
- externalSlotProps: L.listbox,
635
+ externalSlotProps: T.listbox,
638
636
  additionalProps: {
639
637
  ref: q
640
638
  },
641
- ownerState: T,
639
+ ownerState: k,
642
640
  className: z.listbox
643
- }), Pe = se({
641
+ }), Ce = le({
644
642
  elementType: te,
645
- externalSlotProps: L.popup,
643
+ externalSlotProps: T.popup,
646
644
  additionalProps: {
647
645
  anchor: U.current,
648
646
  keepMounted: !0,
@@ -650,43 +648,43 @@ const $e = /* @__PURE__ */ s.forwardRef(function(o, a) {
650
648
  placement: "bottom-start",
651
649
  role: void 0
652
650
  },
653
- ownerState: T,
651
+ ownerState: k,
654
652
  className: z.popup
655
653
  });
656
- let J;
654
+ let W;
657
655
  if (b)
658
- J = M.map(($) => K($)).filter(($) => $ !== void 0);
656
+ W = w.map((H) => K(H)).filter((H) => H !== void 0);
659
657
  else {
660
658
  var oe;
661
- J = (oe = K(M)) != null ? oe : null;
659
+ W = (oe = K(w)) != null ? oe : null;
662
660
  }
663
- return /* @__PURE__ */ Re(s.Fragment, {
664
- children: [/* @__PURE__ */ g(V, m({}, Ce, {
665
- children: (p = (f = Z(J)) != null ? f : Y) != null ? p : (
661
+ return /* @__PURE__ */ Oe(s.Fragment, {
662
+ children: [/* @__PURE__ */ h(S, g({}, xe, {
663
+ children: (p = (f = Z(W)) != null ? f : Y) != null ? p : (
666
664
  // fall back to a zero-width space to prevent layout shift
667
665
  // from https://github.com/mui/material-ui/pull/24563
668
- Oe || (Oe = /* @__PURE__ */ g("span", {
666
+ Se || (Se = /* @__PURE__ */ h("span", {
669
667
  className: "notranslate",
670
668
  children: "​"
671
669
  }))
672
670
  )
673
- })), ue && /* @__PURE__ */ g(Ye, m({
671
+ })), ie && /* @__PURE__ */ h(Xe, g({
674
672
  slots: {
675
673
  root: te
676
674
  }
677
- }, Pe, {
678
- children: /* @__PURE__ */ g(ee, m({}, W, {
679
- children: /* @__PURE__ */ g(ft, {
680
- value: me,
681
- children: h
675
+ }, Ce, {
676
+ children: /* @__PURE__ */ h(ee, g({}, J, {
677
+ children: /* @__PURE__ */ h(pt, {
678
+ value: be,
679
+ children: x
682
680
  })
683
681
  }))
684
- })), /* @__PURE__ */ g("input", m({}, xe(), {
685
- autoComplete: C
682
+ })), /* @__PURE__ */ h("input", g({}, he(), {
683
+ autoComplete: v
686
684
  }))]
687
685
  });
688
686
  });
689
- process.env.NODE_ENV !== "production" && ($e.propTypes = {
687
+ process.env.NODE_ENV !== "production" && (De.propTypes = {
690
688
  // ┌────────────────────────────── Warning ──────────────────────────────┐
691
689
  // │ These PropTypes are generated from the TypeScript type definitions. │
692
690
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -813,89 +811,47 @@ process.env.NODE_ENV !== "production" && ($e.propTypes = {
813
811
  */
814
812
  value: l.any
815
813
  });
816
- const xt = (n) => {
817
- const { children: o, icon: a, className: c, ...r } = n;
818
- return /* @__PURE__ */ Re(
819
- Be,
814
+ const ht = (n) => {
815
+ const { children: o, icon: i, className: a, ...r } = n;
816
+ return /* @__PURE__ */ Oe(
817
+ Le,
820
818
  {
821
819
  ...r,
822
820
  slotProps: {
823
- root: (u) => ({
824
- className: ne(w.select__listbox__option, c, {
825
- [w["select__listbox__option--disabled"]]: u.disabled,
826
- [w["select__listbox__option--selected"]]: u.selected
821
+ root: (c) => ({
822
+ className: _e(L.select__listbox__option, a, {
823
+ [L["select__listbox__option--disabled"]]: c.disabled,
824
+ [L["select__listbox__option--selected"]]: c.selected
827
825
  })
828
826
  })
829
827
  },
830
828
  children: [
831
- a ? /* @__PURE__ */ g("span", { className: w.select__listbox__option__icon, children: a }) : "",
832
- /* @__PURE__ */ g(Ve, { className: w.select__listbox__option__text, children: o })
829
+ i ? /* @__PURE__ */ h("span", { className: L.select__listbox__option__icon, children: i }) : "",
830
+ /* @__PURE__ */ h(Ke, { className: L.select__listbox__option__text, children: o })
833
831
  ]
834
832
  }
835
833
  );
836
- }, Ct = (n) => {
837
- const {
838
- children: o,
839
- className: a,
840
- id: c,
841
- onChange: r,
842
- label: u,
843
- classNameWrapper: p,
844
- classNameLabel: f,
845
- testIdLabel: d,
846
- testIdWrapper: C,
847
- fullWidth: O = !0,
848
- ...h
849
- } = n, P = (R, I) => {
850
- R && (r == null || r(I, R));
851
- }, v = ze(), y = c || `select_${v}`;
852
- return /* @__PURE__ */ Re(
853
- "div",
834
+ }, xt = (n) => {
835
+ const { children: o, className: i, onChange: a, ...r } = n;
836
+ return /* @__PURE__ */ h(
837
+ De,
854
838
  {
855
- className: ne(
856
- w.select__wrapper,
857
- !O && w["select__wrapper--fit-content-width"],
858
- p
859
- ),
860
- "data-testid": C,
861
- id: `${y}_wrapper`,
862
- children: [
863
- u && /* @__PURE__ */ g(
864
- Ve,
865
- {
866
- element: "label",
867
- elementProps: { htmlFor: y, id: `${y}_label` },
868
- className: ne(w.select__label, f),
869
- "data-testid": d,
870
- children: u
871
- }
872
- ),
873
- /* @__PURE__ */ g(
874
- $e,
875
- {
876
- ...h,
877
- id: y,
878
- onChange: P,
879
- className: ne(w.select, a),
880
- slots: { root: We },
881
- slotProps: {
882
- root: { fullWidth: O },
883
- listbox: { className: w.select__listbox },
884
- popup: {
885
- className: w.select__popup,
886
- disablePortal: !0,
887
- strategy: "absolute"
888
- }
889
- },
890
- children: o
891
- }
892
- )
893
- ]
839
+ ...r,
840
+ onChange: (p, f) => {
841
+ p && (a == null || a(f, p));
842
+ },
843
+ className: _e(L.select, i),
844
+ slots: { root: ze },
845
+ slotProps: {
846
+ listbox: { className: L.select__listbox },
847
+ popup: { className: L.select__popup }
848
+ },
849
+ children: o
894
850
  }
895
851
  );
896
852
  };
897
- Ct.Option = xt;
853
+ xt.Option = ht;
898
854
  export {
899
- Ct as Select,
900
- xt as SelectOption
855
+ xt as Select,
856
+ ht as SelectOption
901
857
  };