@pismo/marola 0.0.1-alpha.32 → 0.0.1-alpha.5

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 (170) hide show
  1. package/README.md +2 -13
  2. package/dist/{Button-2b1peDFT.js → Button-D--uN90N.js} +26 -25
  3. package/dist/Dialog.module-BKWFakxu.js +15 -0
  4. package/dist/ListContext-Dj2Va7Iv.js +18 -0
  5. package/dist/Tabs.module-BKlNuSPH.js +66 -0
  6. package/dist/assets/Button.css +1 -1
  7. package/dist/assets/Dialog.css +1 -1
  8. package/dist/assets/IconButton.css +1 -1
  9. package/dist/assets/PageHeader.css +1 -1
  10. package/dist/assets/Pagination.css +1 -1
  11. package/dist/assets/Tabs.css +1 -1
  12. package/dist/assets/Typography.css +1 -1
  13. package/dist/assets/main.css +1 -0
  14. package/dist/components/Button/Button.d.ts +2 -13
  15. package/dist/components/Button/Button.js +49 -60
  16. package/dist/components/Dialog/Actions.js +1 -1
  17. package/dist/components/Dialog/Backdrop.d.ts +1 -1
  18. package/dist/components/Dialog/Backdrop.js +1 -1
  19. package/dist/components/Dialog/CloseIconButton.js +124 -12
  20. package/dist/components/Dialog/Dialog.d.ts +3 -4
  21. package/dist/components/Dialog/Dialog.js +20098 -444
  22. package/dist/components/Dialog/{DialogTitle.d.ts → Title.d.ts} +3 -3
  23. package/dist/components/Dialog/Title.js +29 -0
  24. package/dist/components/IconButton/IconButton.d.ts +5 -21
  25. package/dist/components/IconButton/IconButton.js +76 -60
  26. package/dist/components/LoadingSpinner/LoadingSpinner.d.ts +0 -2
  27. package/dist/components/PageHeader/PageHeader.d.ts +16 -56
  28. package/dist/components/PageHeader/PageHeader.js +65 -83
  29. package/dist/components/Pagination/Pagination.d.ts +6 -25
  30. package/dist/components/Pagination/Pagination.js +113 -131
  31. package/dist/components/SortTooltip/SortTooltip.d.ts +0 -28
  32. package/dist/components/SortTooltip/SortTooltip.js +1 -93
  33. package/dist/components/Table/Table.d.ts +0 -56
  34. package/dist/components/Table/Table.js +1 -137
  35. package/dist/components/Table/TableContext.d.ts +0 -19
  36. package/dist/components/Table/TableContext.js +1 -21
  37. package/dist/components/Tabs/Tab.d.ts +1 -6
  38. package/dist/components/Tabs/Tab.js +173 -113
  39. package/dist/components/Tabs/TabPanel.d.ts +1 -5
  40. package/dist/components/Tabs/TabPanel.js +16 -15
  41. package/dist/components/Tabs/Tabs.d.ts +2 -8
  42. package/dist/components/Tabs/Tabs.js +664 -242
  43. package/dist/components/Tooltip/Tooltip.d.ts +0 -33
  44. package/dist/components/Tooltip/Tooltip.js +1 -141
  45. package/dist/components/Typography/Typography.d.ts +6 -17
  46. package/dist/components/Typography/Typography.js +58 -58
  47. package/dist/{index-CH45lKw7.js → index-BvA1HyDs.js} +300 -322
  48. package/dist/main.d.ts +8 -27
  49. package/dist/main.js +28 -75
  50. package/dist/objectWithoutPropertiesLoose-ClNcje2_.js +22 -0
  51. package/dist/types/helpers.d.ts +0 -8
  52. package/dist/useButton-abQpo0za.js +187 -0
  53. package/dist/useCompoundItem-wTwXbURC.js +41 -0
  54. package/package.json +9 -30
  55. package/dist/ClickAwayListener-BSW-Nd-y.js +0 -107
  56. package/dist/Dialog.module-DFEmFdYT.js +0 -30
  57. package/dist/Group-B3p31ftp.js +0 -26
  58. package/dist/Popup-B6ZSGIEI.js +0 -1248
  59. package/dist/Portal-DIeBsWdL.js +0 -73
  60. package/dist/SelectButton-C8JQKaf4.js +0 -61
  61. package/dist/Tabs.module-jkH1Qjn7.js +0 -22
  62. package/dist/Toggle-BCgIItCc.js +0 -142
  63. package/dist/assets/Advice.css +0 -1
  64. package/dist/assets/Checkbox.css +0 -1
  65. package/dist/assets/EllipsisTooltip.css +0 -1
  66. package/dist/assets/Group.css +0 -1
  67. package/dist/assets/Input.css +0 -1
  68. package/dist/assets/InputSearch.css +0 -1
  69. package/dist/assets/SelectButton.css +0 -1
  70. package/dist/assets/Skeleton.css +0 -1
  71. package/dist/assets/Snackbar.css +0 -1
  72. package/dist/assets/SortTooltip.css +0 -1
  73. package/dist/assets/Stepper.css +0 -1
  74. package/dist/assets/Table.css +0 -1
  75. package/dist/assets/TextDisplay.css +0 -1
  76. package/dist/assets/Toggle.css +0 -1
  77. package/dist/assets/Toggle2.css +0 -1
  78. package/dist/assets/Tooltip.css +0 -1
  79. package/dist/combineHooksSlotProps-DVjg9PRh.js +0 -80
  80. package/dist/components/Advice/Advice.d.ts +0 -30
  81. package/dist/components/Advice/Advice.js +0 -47
  82. package/dist/components/Advice/Advice.stories.d.ts +0 -18
  83. package/dist/components/Button/Button.stories.d.ts +0 -62
  84. package/dist/components/Checkbox/Checkbox.d.ts +0 -34
  85. package/dist/components/Checkbox/Checkbox.js +0 -71
  86. package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -31
  87. package/dist/components/Chip/Chip.d.ts +0 -39
  88. package/dist/components/Chip/Chip.js +0 -19
  89. package/dist/components/Chip/Chip.stories.d.ts +0 -42
  90. package/dist/components/Chip/chip.test.d.ts +0 -1
  91. package/dist/components/Dialog/Dialog.stories.d.ts +0 -343
  92. package/dist/components/Dialog/DialogTitle.js +0 -29
  93. package/dist/components/EllipsisTooltip/EllipsisTooltip.d.ts +0 -7
  94. package/dist/components/EllipsisTooltip/EllipsisTooltip.js +0 -23
  95. package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +0 -31
  96. package/dist/components/Icon/Icon.d.ts +0 -11
  97. package/dist/components/Icon/Icon.js +0 -127
  98. package/dist/components/Icon/Icon.stories.d.ts +0 -15
  99. package/dist/components/Icon/types.d.ts +0 -5
  100. package/dist/components/Icon/types.js +0 -1
  101. package/dist/components/IconButton/Icon.stories.d.ts +0 -15
  102. package/dist/components/Input/Input.d.ts +0 -44
  103. package/dist/components/Input/Input.js +0 -508
  104. package/dist/components/Input/Input.stories.d.ts +0 -43
  105. package/dist/components/InputSearch/InputSearch.d.ts +0 -9
  106. package/dist/components/InputSearch/InputSearch.js +0 -34
  107. package/dist/components/InputSearch/InputSearch.stories.d.ts +0 -39
  108. package/dist/components/LoadingSpinner/LoadingSpinner.stories.d.ts +0 -14
  109. package/dist/components/PageHeader/PageHeader.stories.d.ts +0 -14
  110. package/dist/components/Pagination/Pagination.stories.d.ts +0 -17
  111. package/dist/components/Select/Select.d.ts +0 -26
  112. package/dist/components/Select/Select.js +0 -857
  113. package/dist/components/Select/Select.stories.d.ts +0 -22
  114. package/dist/components/Select/SelectButton.d.ts +0 -12
  115. package/dist/components/Select/SelectButton.js +0 -8
  116. package/dist/components/Skeleton/Skeleton.d.ts +0 -25
  117. package/dist/components/Skeleton/Skeleton.js +0 -23
  118. package/dist/components/Skeleton/Skeleton.stories.d.ts +0 -14
  119. package/dist/components/Skeleton/SkeletonCircle.stories.d.ts +0 -14
  120. package/dist/components/Skeleton/SkeletonTable.stories.d.ts +0 -16
  121. package/dist/components/Snackbar/Snackbar.d.ts +0 -27
  122. package/dist/components/Snackbar/Snackbar.js +0 -639
  123. package/dist/components/Snackbar/Snackbar.stories.d.ts +0 -319
  124. package/dist/components/Stepper/Stepper.d.ts +0 -26
  125. package/dist/components/Stepper/Stepper.js +0 -48
  126. package/dist/components/Stepper/Stepper.stories.d.ts +0 -16
  127. package/dist/components/Table/Table.stories.d.ts +0 -29
  128. package/dist/components/Table/_Table.TBody.stories.d.ts +0 -14
  129. package/dist/components/Table/_Table.THead.stories.d.ts +0 -14
  130. package/dist/components/Table/_Table.Td.stories.d.ts +0 -16
  131. package/dist/components/Table/_Table.Th.stories.d.ts +0 -15
  132. package/dist/components/Table/_Table.Tr.stories.d.ts +0 -15
  133. package/dist/components/Tabs/Tab.stories.d.ts +0 -15
  134. package/dist/components/Tabs/TabPanel.stories.d.ts +0 -14
  135. package/dist/components/Tabs/Tabs.stories.d.ts +0 -14
  136. package/dist/components/TextDisplay/TextDisplay.d.ts +0 -23
  137. package/dist/components/TextDisplay/TextDisplay.js +0 -37
  138. package/dist/components/TextDisplay/TextDisplay.stories.d.ts +0 -13
  139. package/dist/components/TextDisplay/textDisplay.test.d.ts +0 -1
  140. package/dist/components/Toggle/Toggle.d.ts +0 -11
  141. package/dist/components/Toggle/Toggle.js +0 -266
  142. package/dist/components/Toggle/Toggle.stories.d.ts +0 -21
  143. package/dist/components/ToggleGroup/Group.d.ts +0 -18
  144. package/dist/components/ToggleGroup/Group.js +0 -7
  145. package/dist/components/ToggleGroup/Group.test.d.ts +0 -1
  146. package/dist/components/ToggleGroup/Toggle.d.ts +0 -15
  147. package/dist/components/ToggleGroup/Toggle.js +0 -17
  148. package/dist/components/ToggleGroup/Toggle.test.d.ts +0 -1
  149. package/dist/components/ToggleGroup/ToggleGroup.d.ts +0 -2
  150. package/dist/components/ToggleGroup/ToggleGroup.js +0 -6
  151. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +0 -25
  152. package/dist/components/Tooltip/Tooltip.stories.d.ts +0 -35
  153. package/dist/components/Typography/Typography.stories.d.ts +0 -32
  154. package/dist/components/Typography/typography.test.d.ts +0 -1
  155. package/dist/contexts/SnackbarProvider/SnackbarProvider.d.ts +0 -11
  156. package/dist/contexts/SnackbarProvider/SnackbarProvider.js +0 -50
  157. package/dist/contexts/SnackbarProvider/SnackbarProvider.stories.d.ts +0 -21
  158. package/dist/index-CjW42-M-.js +0 -19584
  159. package/dist/marola.css +0 -1
  160. package/dist/test-utils/assertStyles.d.ts +0 -1
  161. package/dist/test-utils/assertStyles.js +0 -11
  162. package/dist/useButton-DNk3wrQp.js +0 -105
  163. package/dist/useCompoundItem-D1iRfg8D.js +0 -84
  164. package/dist/useEventCallback-xTG9piMa.js +0 -45
  165. package/dist/useIsFocusVisible-BH4IAdcw.js +0 -69
  166. package/dist/useList-B0hog_3-.js +0 -436
  167. package/dist/useTimeout-DxF9kiZL.js +0 -36
  168. package/dist/utils/styleStrings.d.ts +0 -6
  169. package/dist/utils/styleStrings.js +0 -10
  170. package/dist/utils/styleStrings.test.d.ts +0 -1
@@ -1,133 +1,557 @@
1
- import { jsx as T } from "react/jsx-runtime";
2
- import * as r from "react";
3
- import { forwardRef as q, useState as B } from "react";
4
- import { T as G, u as J, s as Q } from "../../Tabs.module-jkH1Qjn7.js";
5
- import { Tab as Le } from "./Tab.js";
6
- import { TabPanel as _e } from "./TabPanel.js";
7
- import { g as I, a as _, b as C, _ as F, c as $, P as t, d as N, e as M } from "../../index-CH45lKw7.js";
8
- import { b as O, C as S } from "../../useCompoundItem-D1iRfg8D.js";
9
- import { u as X } from "../../useControlled-CCMYYdCM.js";
10
- import { L as Y, a as Z } from "../../combineHooksSlotProps-DVjg9PRh.js";
11
- import { l as ee, m as te, u as oe } from "../../useList-B0hog_3-.js";
12
- const k = "Tabs";
13
- function se(s) {
14
- return I(k, s);
1
+ import { jsx as E } from "react/jsx-runtime";
2
+ import * as i from "react";
3
+ import { forwardRef as xe, useState as Ve } from "react";
4
+ import { a as Q, C as Z, T as Te, u as Ie, s as Se } from "../../Tabs.module-BKlNuSPH.js";
5
+ import { a as b, _ as ee } from "../../objectWithoutPropertiesLoose-ClNcje2_.js";
6
+ import { f as Re, h as we, g as te, a as ne, u as oe, P as v, c as le, b as se } from "../../index-BvA1HyDs.js";
7
+ import { u as Pe } from "../../useControlled-CCMYYdCM.js";
8
+ import { a as S, L as ye } from "../../ListContext-Dj2Va7Iv.js";
9
+ function J(t, e, l = (n, o) => n === o) {
10
+ return t.length === e.length && t.every((n, o) => l(n, e[o]));
15
11
  }
16
- _(k, ["root", "horizontal", "vertical"]);
17
- function ne(s) {
12
+ function De(t, e) {
13
+ return t === e;
14
+ }
15
+ const W = {}, Y = () => {
16
+ };
17
+ function q(t, e) {
18
+ const l = b({}, t);
19
+ return Object.keys(e).forEach((n) => {
20
+ e[n] !== void 0 && (l[n] = e[n]);
21
+ }), l;
22
+ }
23
+ function Ee(t) {
24
+ const {
25
+ nextState: e,
26
+ initialState: l,
27
+ stateComparers: n,
28
+ onStateChange: o,
29
+ controlledProps: a,
30
+ lastActionRef: s
31
+ } = t, u = i.useRef(l);
32
+ i.useEffect(() => {
33
+ if (s.current === null)
34
+ return;
35
+ const r = q(u.current, a);
36
+ Object.keys(e).forEach((d) => {
37
+ var m;
38
+ const g = (m = n[d]) != null ? m : De, h = e[d], f = r[d];
39
+ if (f == null && h != null || f != null && h == null || f != null && h != null && !g(h, f)) {
40
+ var c, C;
41
+ o == null || o((c = s.current.event) != null ? c : null, d, h, (C = s.current.type) != null ? C : "", e);
42
+ }
43
+ }), u.current = e, s.current = null;
44
+ }, [u, e, s, o, n, a]);
45
+ }
46
+ function Me(t) {
47
+ const e = i.useRef(null), {
48
+ reducer: l,
49
+ initialState: n,
50
+ controlledProps: o = W,
51
+ stateComparers: a = W,
52
+ onStateChange: s = Y,
53
+ actionContext: u,
54
+ componentName: r = ""
55
+ } = t, d = i.useRef(o);
56
+ process.env.NODE_ENV !== "production" && i.useEffect(() => {
57
+ Object.keys(o).forEach((c) => {
58
+ d.current[c] !== void 0 && o[c] === void 0 && console.error(`useControllableReducer: ${r ? `The ${r} component` : "A component"} is changing a controlled prop to be uncontrolled: ${c}`), d.current[c] === void 0 && o[c] !== void 0 && console.error(`useControllableReducer: ${r ? `The ${r} component` : "A component"} is changing an uncontrolled prop to be controlled: ${c}`);
59
+ });
60
+ }, [o, r]);
61
+ const m = i.useCallback((c, C) => {
62
+ e.current = C;
63
+ const V = q(c, o);
64
+ return l(V, C);
65
+ }, [o, l]), [g, h] = i.useReducer(m, n), f = i.useCallback((c) => {
66
+ h(b({}, c, {
67
+ context: u
68
+ }));
69
+ }, [u]);
70
+ return Ee({
71
+ nextState: g,
72
+ initialState: n,
73
+ stateComparers: a ?? W,
74
+ onStateChange: s ?? Y,
75
+ controlledProps: o,
76
+ lastActionRef: e
77
+ }), [q(g, o), f];
78
+ }
79
+ function Oe(t, e, l, n, o, a) {
80
+ if (l.length === 0 || !n && l.every((u, r) => o(u, r)))
81
+ return -1;
82
+ let s = t;
83
+ for (; ; ) {
84
+ if (!a && e === "next" && s === l.length || !a && e === "previous" && s === -1)
85
+ return -1;
86
+ if (n ? !1 : o(l[s], s))
87
+ s += e === "next" ? 1 : -1, a && (s = (s + l.length) % l.length);
88
+ else
89
+ return s;
90
+ }
91
+ }
92
+ function w(t, e, l) {
93
+ var n;
94
+ const {
95
+ items: o,
96
+ isItemDisabled: a,
97
+ disableListWrap: s,
98
+ disabledItemsFocusable: u,
99
+ itemComparer: r,
100
+ focusManagement: d
101
+ } = l, m = d === "DOM" ? 0 : -1, g = o.length - 1, h = t == null ? -1 : o.findIndex((T) => r(T, t));
102
+ let f, c, C = !s;
103
+ switch (e) {
104
+ case "reset":
105
+ if (m === -1)
106
+ return null;
107
+ f = 0, c = "next", C = !1;
108
+ break;
109
+ case "start":
110
+ f = 0, c = "next", C = !1;
111
+ break;
112
+ case "end":
113
+ f = g, c = "previous", C = !1;
114
+ break;
115
+ default: {
116
+ const T = h + e;
117
+ T < 0 ? !C && h !== -1 || Math.abs(e) > 1 ? (f = 0, c = "next") : (f = g, c = "previous") : T > g ? !C || Math.abs(e) > 1 ? (f = g, c = "previous") : (f = 0, c = "next") : (f = T, c = e >= 0 ? "next" : "previous");
118
+ }
119
+ }
120
+ const V = Oe(f, c, o, u, a, C);
121
+ return V === -1 && t !== null && !a(t, h) ? t : (n = o[V]) != null ? n : null;
122
+ }
123
+ function ke(t, e, l, n) {
124
+ return l === "none" ? [] : l === "single" ? n(e[0], t) ? e : [t] : e.some((o) => n(o, t)) ? e.filter((o) => !n(o, t)) : [...e, t];
125
+ }
126
+ function re(t, e, l) {
127
+ const {
128
+ itemComparer: n,
129
+ isItemDisabled: o,
130
+ selectionMode: a,
131
+ items: s
132
+ } = l, {
133
+ selectedValues: u
134
+ } = e, r = s.findIndex((m) => n(t, m));
135
+ if (o(t, r))
136
+ return e;
137
+ const d = ke(t, u, a, n);
138
+ return b({}, e, {
139
+ selectedValues: d,
140
+ highlightedValue: t
141
+ });
142
+ }
143
+ function Le(t, e, l) {
144
+ const n = e.highlightedValue, {
145
+ orientation: o,
146
+ pageSize: a
147
+ } = l;
148
+ switch (t) {
149
+ case "Home":
150
+ return b({}, e, {
151
+ highlightedValue: w(n, "start", l)
152
+ });
153
+ case "End":
154
+ return b({}, e, {
155
+ highlightedValue: w(n, "end", l)
156
+ });
157
+ case "PageUp":
158
+ return b({}, e, {
159
+ highlightedValue: w(n, -a, l)
160
+ });
161
+ case "PageDown":
162
+ return b({}, e, {
163
+ highlightedValue: w(n, a, l)
164
+ });
165
+ case "ArrowUp":
166
+ if (o !== "vertical")
167
+ break;
168
+ return b({}, e, {
169
+ highlightedValue: w(n, -1, l)
170
+ });
171
+ case "ArrowDown":
172
+ if (o !== "vertical")
173
+ break;
174
+ return b({}, e, {
175
+ highlightedValue: w(n, 1, l)
176
+ });
177
+ case "ArrowLeft": {
178
+ if (o === "vertical")
179
+ break;
180
+ return b({}, e, {
181
+ highlightedValue: w(n, o === "horizontal-ltr" ? -1 : 1, l)
182
+ });
183
+ }
184
+ case "ArrowRight": {
185
+ if (o === "vertical")
186
+ break;
187
+ return b({}, e, {
188
+ highlightedValue: w(n, o === "horizontal-ltr" ? 1 : -1, l)
189
+ });
190
+ }
191
+ case "Enter":
192
+ case " ":
193
+ return e.highlightedValue === null ? e : re(e.highlightedValue, e, l);
194
+ }
195
+ return e;
196
+ }
197
+ function Ne(t, e) {
198
+ return e.focusManagement === "DOM" ? t : b({}, t, {
199
+ highlightedValue: null
200
+ });
201
+ }
202
+ function $e(t, e, l) {
203
+ var n;
204
+ const o = (n = l(t)) == null ? void 0 : n.trim().toLowerCase();
205
+ return !o || o.length === 0 ? !1 : o.indexOf(e) === 0;
206
+ }
207
+ function _e(t, e, l) {
208
+ const {
209
+ items: n,
210
+ isItemDisabled: o,
211
+ disabledItemsFocusable: a,
212
+ getItemAsString: s
213
+ } = l, u = e.length > 1;
214
+ let r = u ? t.highlightedValue : w(t.highlightedValue, 1, l);
215
+ for (let d = 0; d < n.length; d += 1) {
216
+ if (!r || !u && t.highlightedValue === r)
217
+ return t;
218
+ if ($e(r, e, s) && (!o(r, n.indexOf(r)) || a))
219
+ return b({}, t, {
220
+ highlightedValue: r
221
+ });
222
+ r = w(r, 1, l);
223
+ }
224
+ return t;
225
+ }
226
+ function Ae(t, e, l, n) {
227
+ var o;
228
+ const {
229
+ itemComparer: a,
230
+ focusManagement: s
231
+ } = n;
232
+ let u = null;
233
+ if (l.highlightedValue != null) {
234
+ var r;
235
+ u = (r = t.find((g) => a(g, l.highlightedValue))) != null ? r : null;
236
+ } else
237
+ s === "DOM" && e.length === 0 && (u = w(null, "reset", n));
238
+ const m = ((o = l.selectedValues) != null ? o : []).filter((g) => t.some((h) => a(h, g)));
239
+ return b({}, l, {
240
+ highlightedValue: u,
241
+ selectedValues: m
242
+ });
243
+ }
244
+ function Fe(t, e) {
245
+ return b({}, t, {
246
+ highlightedValue: w(null, "reset", e)
247
+ });
248
+ }
249
+ function He(t, e) {
250
+ return b({}, t, {
251
+ highlightedValue: w(null, "end", e)
252
+ });
253
+ }
254
+ function ze(t, e) {
255
+ return b({}, t, {
256
+ selectedValues: [],
257
+ highlightedValue: w(null, "reset", e)
258
+ });
259
+ }
260
+ function ae(t, e) {
261
+ const {
262
+ type: l,
263
+ context: n
264
+ } = e;
265
+ switch (l) {
266
+ case S.keyDown:
267
+ return Le(e.key, t, n);
268
+ case S.itemClick:
269
+ return re(e.item, t, n);
270
+ case S.blur:
271
+ return Ne(t, n);
272
+ case S.textNavigation:
273
+ return _e(t, e.searchString, n);
274
+ case S.itemsChange:
275
+ return Ae(e.items, e.previousItems, t, n);
276
+ case S.resetHighlight:
277
+ return Fe(t, n);
278
+ case S.highlightLast:
279
+ return He(t, n);
280
+ case S.clearSelection:
281
+ return ze(t, n);
282
+ default:
283
+ return t;
284
+ }
285
+ }
286
+ const Ue = 500;
287
+ function je(t) {
288
+ const e = i.useRef({
289
+ searchString: "",
290
+ lastTime: null
291
+ });
292
+ return i.useCallback((l) => {
293
+ if (l.key.length === 1 && l.key !== " ") {
294
+ const n = e.current, o = l.key.toLowerCase(), a = performance.now();
295
+ n.searchString.length > 0 && n.lastTime && a - n.lastTime > Ue ? n.searchString = o : (n.searchString.length !== 1 || o !== n.searchString) && (n.searchString += o), n.lastTime = a, t(n.searchString, l);
296
+ }
297
+ }, [t]);
298
+ }
299
+ const X = {}, Be = () => {
300
+ }, Ke = (t, e) => t === e, We = () => !1, qe = (t) => typeof t == "string" ? t : String(t), Ge = () => ({
301
+ highlightedValue: null,
302
+ selectedValues: []
303
+ });
304
+ function Je(t) {
305
+ const {
306
+ controlledProps: e = X,
307
+ disabledItemsFocusable: l = !1,
308
+ disableListWrap: n = !1,
309
+ focusManagement: o = "activeDescendant",
310
+ getInitialState: a = Ge,
311
+ getItemDomElement: s,
312
+ getItemId: u,
313
+ isItemDisabled: r = We,
314
+ rootRef: d,
315
+ onStateChange: m = Be,
316
+ items: g,
317
+ itemComparer: h = Ke,
318
+ getItemAsString: f = qe,
319
+ onChange: c,
320
+ onHighlightChange: C,
321
+ onItemsChange: V,
322
+ orientation: T = "vertical",
323
+ pageSize: $ = 5,
324
+ reducerActionContext: L = X,
325
+ selectionMode: O = "single",
326
+ stateReducer: _,
327
+ componentName: U = "useList"
328
+ } = t;
329
+ if (process.env.NODE_ENV !== "production") {
330
+ if (o === "DOM" && s == null)
331
+ throw new Error("useList: The `getItemDomElement` prop is required when using the `DOM` focus management.");
332
+ if (o === "activeDescendant" && u == null)
333
+ throw new Error("useList: The `getItemId` prop is required when using the `activeDescendant` focus management.");
334
+ }
335
+ const A = i.useRef(null), F = Re(d, A), k = i.useCallback((x, p, I) => {
336
+ if (C == null || C(x, p, I), o === "DOM" && p != null && (I === S.itemClick || I === S.keyDown || I === S.textNavigation)) {
337
+ var R;
338
+ s == null || (R = s(p)) == null || R.focus();
339
+ }
340
+ }, [s, C, o]), H = i.useMemo(() => ({
341
+ highlightedValue: h,
342
+ selectedValues: (x, p) => J(x, p, h)
343
+ }), [h]), P = i.useCallback((x, p, I, R, z) => {
344
+ switch (m == null || m(x, p, I, R, z), p) {
345
+ case "highlightedValue":
346
+ k(x, I, R);
347
+ break;
348
+ case "selectedValues":
349
+ c == null || c(x, I, R);
350
+ break;
351
+ }
352
+ }, [k, c, m]), y = i.useMemo(() => ({
353
+ disabledItemsFocusable: l,
354
+ disableListWrap: n,
355
+ focusManagement: o,
356
+ isItemDisabled: r,
357
+ itemComparer: h,
358
+ items: g,
359
+ getItemAsString: f,
360
+ onHighlightChange: k,
361
+ orientation: T,
362
+ pageSize: $,
363
+ selectionMode: O,
364
+ stateComparers: H
365
+ }), [l, n, o, r, h, g, f, k, T, $, O, H]), D = a(), ge = _ ?? ae, fe = i.useMemo(() => b({}, L, y), [L, y]), [j, M] = Me({
366
+ reducer: ge,
367
+ actionContext: fe,
368
+ initialState: D,
369
+ controlledProps: e,
370
+ stateComparers: H,
371
+ onStateChange: P,
372
+ componentName: U
373
+ }), {
374
+ highlightedValue: N,
375
+ selectedValues: B
376
+ } = j, me = je((x, p) => M({
377
+ type: S.textNavigation,
378
+ event: p,
379
+ searchString: x
380
+ })), K = i.useRef([]);
381
+ i.useEffect(() => {
382
+ J(K.current, g, h) || (M({
383
+ type: S.itemsChange,
384
+ event: null,
385
+ items: g,
386
+ previousItems: K.current
387
+ }), K.current = g, V == null || V(g));
388
+ }, [g, h, M, V]);
389
+ const pe = (x) => (p) => {
390
+ var I;
391
+ if ((I = x.onKeyDown) == null || I.call(x, p), p.defaultMuiPrevented)
392
+ return;
393
+ const R = ["Home", "End", "PageUp", "PageDown"];
394
+ T === "vertical" ? R.push("ArrowUp", "ArrowDown") : R.push("ArrowLeft", "ArrowRight"), o === "activeDescendant" && R.push(" ", "Enter"), R.includes(p.key) && p.preventDefault(), M({
395
+ type: S.keyDown,
396
+ key: p.key,
397
+ event: p
398
+ }), me(p);
399
+ }, be = (x) => (p) => {
400
+ var I, R;
401
+ (I = x.onBlur) == null || I.call(x, p), !p.defaultMuiPrevented && ((R = A.current) != null && R.contains(p.relatedTarget) || M({
402
+ type: S.blur,
403
+ event: p
404
+ }));
405
+ }, Ce = (x = {}) => {
406
+ const p = we(x);
407
+ return b({}, x, {
408
+ "aria-activedescendant": o === "activeDescendant" && N != null ? u(N) : void 0,
409
+ tabIndex: o === "DOM" ? -1 : 0,
410
+ ref: F
411
+ }, p, {
412
+ onBlur: be(p),
413
+ onKeyDown: pe(p)
414
+ });
415
+ }, G = i.useCallback((x) => {
416
+ const p = (B ?? []).some((z) => z != null && h(x, z)), I = N != null && h(x, N);
417
+ return {
418
+ focusable: o === "DOM",
419
+ highlighted: I,
420
+ selected: p
421
+ };
422
+ }, [h, B, N, o]), ve = i.useMemo(() => ({
423
+ dispatch: M,
424
+ getItemState: G
425
+ }), [M, G]);
426
+ return i.useDebugValue({
427
+ state: j
428
+ }), {
429
+ contextValue: ve,
430
+ dispatch: M,
431
+ getRootProps: Ce,
432
+ rootRef: F,
433
+ state: j
434
+ };
435
+ }
436
+ const ie = "Tabs";
437
+ function Ye(t) {
438
+ return te(ie, t);
439
+ }
440
+ ne(ie, ["root", "horizontal", "vertical"]);
441
+ function Xe(t) {
18
442
  const {
19
443
  value: e,
20
- defaultValue: o,
444
+ defaultValue: l,
21
445
  onChange: n,
22
- orientation: i = "horizontal",
23
- direction: c = "ltr",
24
- selectionFollowsFocus: l = !1
25
- } = s, [d, u] = X({
446
+ orientation: o = "horizontal",
447
+ direction: a = "ltr",
448
+ selectionFollowsFocus: s = !1
449
+ } = t, [u, r] = Pe({
26
450
  controlled: e,
27
- default: o,
451
+ default: l,
28
452
  name: "Tabs",
29
453
  state: "value"
30
- }), a = r.useCallback((x, y) => {
31
- u(y), n == null || n(x, y);
32
- }, [n, u]), {
454
+ }), d = i.useCallback((V, T) => {
455
+ r(T), n == null || n(V, T);
456
+ }, [n, r]), {
33
457
  subitems: m,
34
458
  contextValue: g
35
- } = O(), p = r.useRef(() => {
36
- }), b = r.useCallback((x) => {
37
- var y;
38
- return (y = m.get(x)) == null ? void 0 : y.id;
39
- }, [m]), f = r.useCallback((x) => p.current(x), []), P = r.useCallback((x) => {
40
- p.current = x;
459
+ } = Q(), h = i.useRef(() => {
460
+ }), f = i.useCallback((V) => {
461
+ var T;
462
+ return (T = m.get(V)) == null ? void 0 : T.id;
463
+ }, [m]), c = i.useCallback((V) => h.current(V), []), C = i.useCallback((V) => {
464
+ h.current = V;
41
465
  }, []);
42
466
  return {
43
- contextValue: C({
44
- direction: c,
45
- getTabId: f,
46
- getTabPanelId: b,
47
- onSelected: a,
48
- orientation: i,
49
- registerTabIdLookup: P,
50
- selectionFollowsFocus: l,
51
- value: d
467
+ contextValue: b({
468
+ direction: a,
469
+ getTabId: c,
470
+ getTabPanelId: f,
471
+ onSelected: d,
472
+ orientation: o,
473
+ registerTabIdLookup: C,
474
+ selectionFollowsFocus: s,
475
+ value: u
52
476
  }, g)
53
477
  };
54
478
  }
55
- function le(s) {
479
+ function Qe(t) {
56
480
  const {
57
481
  value: e,
58
- children: o
59
- } = s, {
482
+ children: l
483
+ } = t, {
60
484
  direction: n,
61
- getItemIndex: i,
62
- onSelected: c,
63
- orientation: l,
64
- registerItem: d,
65
- registerTabIdLookup: u,
66
- selectionFollowsFocus: a,
485
+ getItemIndex: o,
486
+ onSelected: a,
487
+ orientation: s,
488
+ registerItem: u,
489
+ registerTabIdLookup: r,
490
+ selectionFollowsFocus: d,
67
491
  totalSubitemCount: m,
68
492
  value: g,
69
- getTabId: p,
70
- getTabPanelId: b
71
- } = e, f = r.useMemo(() => ({
72
- getItemIndex: i,
73
- registerItem: d,
493
+ getTabId: h,
494
+ getTabPanelId: f
495
+ } = e, c = i.useMemo(() => ({
496
+ getItemIndex: o,
497
+ registerItem: u,
74
498
  totalSubitemCount: m
75
- }), [d, i, m]), P = r.useMemo(() => ({
499
+ }), [u, o, m]), C = i.useMemo(() => ({
76
500
  direction: n,
77
- getTabId: p,
78
- getTabPanelId: b,
79
- onSelected: c,
80
- orientation: l,
81
- registerTabIdLookup: u,
82
- selectionFollowsFocus: a,
501
+ getTabId: h,
502
+ getTabPanelId: f,
503
+ onSelected: a,
504
+ orientation: s,
505
+ registerTabIdLookup: r,
506
+ selectionFollowsFocus: d,
83
507
  value: g
84
- }), [n, p, b, c, l, u, a, g]);
85
- return /* @__PURE__ */ T(S.Provider, {
86
- value: f,
87
- children: /* @__PURE__ */ T(G.Provider, {
88
- value: P,
89
- children: o
508
+ }), [n, h, f, a, s, r, d, g]);
509
+ return /* @__PURE__ */ E(Z.Provider, {
510
+ value: c,
511
+ children: /* @__PURE__ */ E(Te.Provider, {
512
+ value: C,
513
+ children: l
90
514
  })
91
515
  });
92
516
  }
93
- const re = ["children", "value", "defaultValue", "orientation", "direction", "onChange", "selectionFollowsFocus", "slotProps", "slots"], ae = (s) => {
517
+ const Ze = ["children", "value", "defaultValue", "orientation", "direction", "onChange", "selectionFollowsFocus", "slotProps", "slots"], et = (t) => {
94
518
  const {
95
519
  orientation: e
96
- } = s;
97
- return N({
520
+ } = t;
521
+ return le({
98
522
  root: ["root", e]
99
- }, M(se));
100
- }, w = /* @__PURE__ */ r.forwardRef(function(e, o) {
523
+ }, se(Ye));
524
+ }, ue = /* @__PURE__ */ i.forwardRef(function(e, l) {
101
525
  var n;
102
526
  const {
103
- children: i,
104
- orientation: c = "horizontal",
105
- direction: l = "ltr",
106
- slotProps: d = {},
107
- slots: u = {}
108
- } = e, a = F(e, re), m = C({}, e, {
109
- orientation: c,
110
- direction: l
527
+ children: o,
528
+ orientation: a = "horizontal",
529
+ direction: s = "ltr",
530
+ slotProps: u = {},
531
+ slots: r = {}
532
+ } = e, d = ee(e, Ze), m = b({}, e, {
533
+ orientation: a,
534
+ direction: s
111
535
  }), {
112
536
  contextValue: g
113
- } = ne(m), p = ae(m), b = (n = u.root) != null ? n : "div", f = $({
114
- elementType: b,
115
- externalSlotProps: d.root,
116
- externalForwardedProps: a,
537
+ } = Xe(m), h = et(m), f = (n = r.root) != null ? n : "div", c = oe({
538
+ elementType: f,
539
+ externalSlotProps: u.root,
540
+ externalForwardedProps: d,
117
541
  additionalProps: {
118
- ref: o
542
+ ref: l
119
543
  },
120
544
  ownerState: m,
121
- className: p.root
545
+ className: h.root
122
546
  });
123
- return /* @__PURE__ */ T(b, C({}, f, {
124
- children: /* @__PURE__ */ T(le, {
547
+ return /* @__PURE__ */ E(f, b({}, c, {
548
+ children: /* @__PURE__ */ E(Qe, {
125
549
  value: g,
126
- children: i
550
+ children: o
127
551
  })
128
552
  }));
129
553
  });
130
- process.env.NODE_ENV !== "production" && (w.propTypes = {
554
+ process.env.NODE_ENV !== "production" && (ue.propTypes = {
131
555
  // ┌────────────────────────────── Warning ──────────────────────────────┐
132
556
  // │ These PropTypes are generated from the TypeScript type definitions. │
133
557
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -135,231 +559,231 @@ process.env.NODE_ENV !== "production" && (w.propTypes = {
135
559
  /**
136
560
  * The content of the component.
137
561
  */
138
- children: t.node,
562
+ children: v.node,
139
563
  /**
140
564
  * @ignore
141
565
  */
142
- className: t.string,
566
+ className: v.string,
143
567
  /**
144
568
  * The default value. Use when the component is not controlled.
145
569
  */
146
- defaultValue: t.oneOfType([t.number, t.string]),
570
+ defaultValue: v.oneOfType([v.number, v.string]),
147
571
  /**
148
572
  * The direction of the text.
149
573
  * @default 'ltr'
150
574
  */
151
- direction: t.oneOf(["ltr", "rtl"]),
575
+ direction: v.oneOf(["ltr", "rtl"]),
152
576
  /**
153
577
  * Callback invoked when new value is being set.
154
578
  */
155
- onChange: t.func,
579
+ onChange: v.func,
156
580
  /**
157
581
  * The component orientation (layout flow direction).
158
582
  * @default 'horizontal'
159
583
  */
160
- orientation: t.oneOf(["horizontal", "vertical"]),
584
+ orientation: v.oneOf(["horizontal", "vertical"]),
161
585
  /**
162
586
  * If `true` the selected tab changes on focus. Otherwise it only
163
587
  * changes on activation.
164
588
  */
165
- selectionFollowsFocus: t.bool,
589
+ selectionFollowsFocus: v.bool,
166
590
  /**
167
591
  * The props used for each slot inside the Tabs.
168
592
  * @default {}
169
593
  */
170
- slotProps: t.shape({
171
- root: t.oneOfType([t.func, t.object])
594
+ slotProps: v.shape({
595
+ root: v.oneOfType([v.func, v.object])
172
596
  }),
173
597
  /**
174
598
  * The components used for each slot inside the Tabs.
175
599
  * Either a string to use a HTML element or a component.
176
600
  * @default {}
177
601
  */
178
- slots: t.shape({
179
- root: t.elementType
602
+ slots: v.shape({
603
+ root: v.elementType
180
604
  }),
181
605
  /**
182
606
  * The value of the currently selected `Tab`.
183
607
  * If you don't want any selected `Tab`, you can set this prop to `null`.
184
608
  */
185
- value: t.oneOfType([t.number, t.string])
609
+ value: v.oneOfType([v.number, v.string])
186
610
  });
187
- const E = "TabsList";
188
- function ie(s) {
189
- return I(E, s);
611
+ const ce = "TabsList";
612
+ function tt(t) {
613
+ return te(ce, t);
190
614
  }
191
- _(E, ["root", "horizontal", "vertical"]);
192
- const z = {
615
+ ne(ce, ["root", "horizontal", "vertical"]);
616
+ const de = {
193
617
  valueChange: "valueChange"
194
618
  };
195
- function ue(s, e) {
196
- if (e.type === z.valueChange)
197
- return C({}, s, {
619
+ function nt(t, e) {
620
+ if (e.type === de.valueChange)
621
+ return b({}, t, {
198
622
  highlightedValue: e.value
199
623
  });
200
- const o = ee(s, e), {
624
+ const l = ae(t, e), {
201
625
  context: {
202
626
  selectionFollowsFocus: n
203
627
  }
204
628
  } = e;
205
- if (e.type === Y.itemsChange) {
206
- if (o.selectedValues.length > 0)
207
- return C({}, o, {
208
- highlightedValue: o.selectedValues[0]
629
+ if (e.type === S.itemsChange) {
630
+ if (l.selectedValues.length > 0)
631
+ return b({}, l, {
632
+ highlightedValue: l.selectedValues[0]
209
633
  });
210
- te(null, "reset", e.context);
634
+ w(null, "reset", e.context);
211
635
  }
212
- return n && o.highlightedValue != null ? C({}, o, {
213
- selectedValues: [o.highlightedValue]
214
- }) : o;
636
+ return n && l.highlightedValue != null ? b({}, l, {
637
+ selectedValues: [l.highlightedValue]
638
+ }) : l;
215
639
  }
216
- function ce(s) {
640
+ function ot(t) {
217
641
  var e;
218
642
  const {
219
- rootRef: o
220
- } = s, {
643
+ rootRef: l
644
+ } = t, {
221
645
  direction: n = "ltr",
222
- onSelected: i,
223
- orientation: c = "horizontal",
224
- value: l,
225
- registerTabIdLookup: d,
226
- selectionFollowsFocus: u
227
- } = J(), {
228
- subitems: a,
646
+ onSelected: o,
647
+ orientation: a = "horizontal",
648
+ value: s,
649
+ registerTabIdLookup: u,
650
+ selectionFollowsFocus: r
651
+ } = Ie(), {
652
+ subitems: d,
229
653
  contextValue: m
230
- } = O(), g = r.useCallback((h) => {
231
- var v;
232
- return (v = a.get(h)) == null ? void 0 : v.id;
233
- }, [a]);
234
- d(g);
235
- const p = r.useMemo(() => Array.from(a.keys()), [a]), b = r.useCallback((h) => {
236
- var v, V;
237
- return h == null ? null : (v = (V = a.get(h)) == null ? void 0 : V.ref.current) != null ? v : null;
238
- }, [a]), f = n === "rtl";
239
- let P;
240
- c === "vertical" ? P = "vertical" : P = f ? "horizontal-rtl" : "horizontal-ltr";
241
- const x = r.useCallback((h, v) => {
242
- var V;
243
- i(h, (V = v[0]) != null ? V : null);
244
- }, [i]), y = r.useMemo(() => l === void 0 ? {} : l != null ? {
245
- selectedValues: [l]
654
+ } = Q(), g = i.useCallback((P) => {
655
+ var y;
656
+ return (y = d.get(P)) == null ? void 0 : y.id;
657
+ }, [d]);
658
+ u(g);
659
+ const h = i.useMemo(() => Array.from(d.keys()), [d]), f = i.useCallback((P) => {
660
+ var y, D;
661
+ return P == null ? null : (y = (D = d.get(P)) == null ? void 0 : D.ref.current) != null ? y : null;
662
+ }, [d]), c = n === "rtl";
663
+ let C;
664
+ a === "vertical" ? C = "vertical" : C = c ? "horizontal-rtl" : "horizontal-ltr";
665
+ const V = i.useCallback((P, y) => {
666
+ var D;
667
+ o(P, (D = y[0]) != null ? D : null);
668
+ }, [o]), T = i.useMemo(() => s === void 0 ? {} : s != null ? {
669
+ selectedValues: [s]
246
670
  } : {
247
671
  selectedValues: []
248
- }, [l]), U = r.useCallback((h) => {
249
- var v, V;
250
- return (v = (V = a.get(h)) == null ? void 0 : V.disabled) != null ? v : !1;
251
- }, [a]), {
672
+ }, [s]), $ = i.useCallback((P) => {
673
+ var y, D;
674
+ return (y = (D = d.get(P)) == null ? void 0 : D.disabled) != null ? y : !1;
675
+ }, [d]), {
252
676
  contextValue: L,
253
- dispatch: R,
254
- getRootProps: D,
677
+ dispatch: O,
678
+ getRootProps: _,
255
679
  state: {
256
- highlightedValue: j,
257
- selectedValues: H
680
+ highlightedValue: U,
681
+ selectedValues: A
258
682
  },
259
- rootRef: K
260
- } = oe({
261
- controlledProps: y,
262
- disabledItemsFocusable: !u,
683
+ rootRef: F
684
+ } = Je({
685
+ controlledProps: T,
686
+ disabledItemsFocusable: !r,
263
687
  focusManagement: "DOM",
264
- getItemDomElement: b,
265
- isItemDisabled: U,
266
- items: p,
267
- rootRef: o,
268
- onChange: x,
269
- orientation: P,
270
- reducerActionContext: r.useMemo(() => ({
271
- selectionFollowsFocus: u || !1
272
- }), [u]),
688
+ getItemDomElement: f,
689
+ isItemDisabled: $,
690
+ items: h,
691
+ rootRef: l,
692
+ onChange: V,
693
+ orientation: C,
694
+ reducerActionContext: i.useMemo(() => ({
695
+ selectionFollowsFocus: r || !1
696
+ }), [r]),
273
697
  selectionMode: "single",
274
- stateReducer: ue
698
+ stateReducer: nt
275
699
  });
276
- r.useEffect(() => {
277
- l !== void 0 && l != null && R({
278
- type: z.valueChange,
279
- value: l
700
+ i.useEffect(() => {
701
+ s !== void 0 && s != null && O({
702
+ type: de.valueChange,
703
+ value: s
280
704
  });
281
- }, [R, l]);
282
- const W = (h = {}) => C({}, h, D(h), {
283
- "aria-orientation": c === "vertical" ? "vertical" : void 0,
705
+ }, [O, s]);
706
+ const k = (P = {}) => b({}, P, _(P), {
707
+ "aria-orientation": a === "vertical" ? "vertical" : void 0,
284
708
  role: "tablist"
285
709
  });
286
710
  return {
287
- contextValue: r.useMemo(() => C({}, m, L), [m, L]),
288
- dispatch: R,
289
- getRootProps: W,
290
- highlightedValue: j,
291
- isRtl: f,
292
- orientation: c,
293
- rootRef: K,
294
- selectedValue: (e = H[0]) != null ? e : null
711
+ contextValue: i.useMemo(() => b({}, m, L), [m, L]),
712
+ dispatch: O,
713
+ getRootProps: k,
714
+ highlightedValue: U,
715
+ isRtl: c,
716
+ orientation: a,
717
+ rootRef: F,
718
+ selectedValue: (e = A[0]) != null ? e : null
295
719
  };
296
720
  }
297
- function de(s) {
721
+ function lt(t) {
298
722
  const {
299
723
  value: e,
300
- children: o
301
- } = s, {
724
+ children: l
725
+ } = t, {
302
726
  dispatch: n,
303
- getItemIndex: i,
304
- getItemState: c,
305
- registerItem: l,
306
- totalSubitemCount: d
307
- } = e, u = r.useMemo(() => ({
727
+ getItemIndex: o,
728
+ getItemState: a,
729
+ registerItem: s,
730
+ totalSubitemCount: u
731
+ } = e, r = i.useMemo(() => ({
308
732
  dispatch: n,
309
- getItemState: c,
310
- getItemIndex: i
311
- }), [n, i, c]), a = r.useMemo(() => ({
312
- getItemIndex: i,
313
- registerItem: l,
314
- totalSubitemCount: d
315
- }), [l, i, d]);
316
- return /* @__PURE__ */ T(S.Provider, {
317
- value: a,
318
- children: /* @__PURE__ */ T(Z.Provider, {
319
- value: u,
320
- children: o
733
+ getItemState: a,
734
+ getItemIndex: o
735
+ }), [n, o, a]), d = i.useMemo(() => ({
736
+ getItemIndex: o,
737
+ registerItem: s,
738
+ totalSubitemCount: u
739
+ }), [s, o, u]);
740
+ return /* @__PURE__ */ E(Z.Provider, {
741
+ value: d,
742
+ children: /* @__PURE__ */ E(ye.Provider, {
743
+ value: r,
744
+ children: l
321
745
  })
322
746
  });
323
747
  }
324
- const me = ["children", "slotProps", "slots"], pe = (s) => {
748
+ const st = ["children", "slotProps", "slots"], rt = (t) => {
325
749
  const {
326
750
  orientation: e
327
- } = s;
328
- return N({
751
+ } = t;
752
+ return le({
329
753
  root: ["root", e]
330
- }, M(ie));
331
- }, A = /* @__PURE__ */ r.forwardRef(function(e, o) {
754
+ }, se(tt));
755
+ }, he = /* @__PURE__ */ i.forwardRef(function(e, l) {
332
756
  var n;
333
757
  const {
334
- children: i,
335
- slotProps: c = {},
336
- slots: l = {}
337
- } = e, d = F(e, me), {
338
- isRtl: u,
339
- orientation: a,
758
+ children: o,
759
+ slotProps: a = {},
760
+ slots: s = {}
761
+ } = e, u = ee(e, st), {
762
+ isRtl: r,
763
+ orientation: d,
340
764
  getRootProps: m,
341
765
  contextValue: g
342
- } = ce({
343
- rootRef: o
344
- }), p = C({}, e, {
345
- isRtl: u,
346
- orientation: a
347
- }), b = pe(p), f = (n = l.root) != null ? n : "div", P = $({
348
- elementType: f,
766
+ } = ot({
767
+ rootRef: l
768
+ }), h = b({}, e, {
769
+ isRtl: r,
770
+ orientation: d
771
+ }), f = rt(h), c = (n = s.root) != null ? n : "div", C = oe({
772
+ elementType: c,
349
773
  getSlotProps: m,
350
- externalSlotProps: c.root,
351
- externalForwardedProps: d,
352
- ownerState: p,
353
- className: b.root
774
+ externalSlotProps: a.root,
775
+ externalForwardedProps: u,
776
+ ownerState: h,
777
+ className: f.root
354
778
  });
355
- return /* @__PURE__ */ T(de, {
779
+ return /* @__PURE__ */ E(lt, {
356
780
  value: g,
357
- children: /* @__PURE__ */ T(f, C({}, P, {
358
- children: i
781
+ children: /* @__PURE__ */ E(c, b({}, C, {
782
+ children: o
359
783
  }))
360
784
  });
361
785
  });
362
- process.env.NODE_ENV !== "production" && (A.propTypes = {
786
+ process.env.NODE_ENV !== "production" && (he.propTypes = {
363
787
  // ┌────────────────────────────── Warning ──────────────────────────────┐
364
788
  // │ These PropTypes are generated from the TypeScript type definitions. │
365
789
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -367,35 +791,33 @@ process.env.NODE_ENV !== "production" && (A.propTypes = {
367
791
  /**
368
792
  * The content of the component.
369
793
  */
370
- children: t.node,
794
+ children: v.node,
371
795
  /**
372
796
  * @ignore
373
797
  */
374
- className: t.string,
798
+ className: v.string,
375
799
  /**
376
800
  * The props used for each slot inside the TabsList.
377
801
  * @default {}
378
802
  */
379
- slotProps: t.shape({
380
- root: t.oneOfType([t.func, t.object])
803
+ slotProps: v.shape({
804
+ root: v.oneOfType([v.func, v.object])
381
805
  }),
382
806
  /**
383
807
  * The components used for each slot inside the TabsList.
384
808
  * Either a string to use a HTML element or a component.
385
809
  * @default {}
386
810
  */
387
- slots: t.shape({
388
- root: t.elementType
811
+ slots: v.shape({
812
+ root: v.elementType
389
813
  })
390
814
  });
391
- const Ve = q(({ children: s, onChange: e, dataTestId: o }, n) => {
392
- const [i, c] = B("1");
393
- return /* @__PURE__ */ T(w, { "data-testid": o, value: i, onChange: (d, u) => {
394
- c(u), e && e(u, d);
395
- }, ref: n, children: /* @__PURE__ */ T(A, { className: Q.tabs, children: s }) });
815
+ const ft = xe(({ children: t, onChange: e, dataTestId: l }, n) => {
816
+ const [o, a] = Ve("1");
817
+ return /* @__PURE__ */ E(ue, { "data-testid": l, value: o, onChange: (u, r) => {
818
+ a(r), e && e(r, u);
819
+ }, ref: n, children: /* @__PURE__ */ E(he, { className: Se.tabs, children: t }) });
396
820
  });
397
821
  export {
398
- Le as Tab,
399
- _e as TabPanel,
400
- Ve as Tabs
822
+ ft as Tabs
401
823
  };