@pismo/marola 2.1.64 → 2.1.65

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 (112) hide show
  1. package/dist/Button-CJaBSdv1.js +135 -0
  2. package/dist/ClassNameConfigurator-CVRWfyIa.js +847 -0
  3. package/dist/{ClickAwayListener-Z08peX_P.js → ClickAwayListener-BnYMO5Ki.js} +26 -33
  4. package/dist/Popup-D267EI4e.js +1338 -0
  5. package/dist/{Portal-DJapUCn6.js → Portal-BrGvxB96.js} +32 -36
  6. package/dist/RadioOption-DyRY8xlF.js +1094 -0
  7. package/dist/{Toggle-DcZTfLrC.js → Toggle-nnDfpqI1.js} +31 -31
  8. package/dist/assets/Checkbox.css +1 -1
  9. package/dist/assets/DropdownMenu.css +1 -1
  10. package/dist/assets/ToastCard.css +1 -1
  11. package/dist/assets/Toggle2.css +1 -1
  12. package/dist/combineHooksSlotProps-j-8UVeYo.js +86 -0
  13. package/dist/components/Alert/Alert.stories.d.ts +6 -6
  14. package/dist/components/Autocomplete/Autocomplete.d.ts +1 -1
  15. package/dist/components/Autocomplete/Autocomplete.js +311 -320
  16. package/dist/components/Autocomplete/Autocomplete.stories.d.ts +1 -1
  17. package/dist/components/Avatar/Avatar.stories.d.ts +4 -4
  18. package/dist/components/BankingCard/BankingCard.d.ts +0 -1
  19. package/dist/components/Button/Button.js +1 -1
  20. package/dist/components/Checkbox/Checkbox.js +56 -56
  21. package/dist/components/Checkbox/Checkbox.stories.d.ts +8 -8
  22. package/dist/components/Chip/Chip.js +3 -3
  23. package/dist/components/DatePicker/DatePicker.js +742 -639
  24. package/dist/components/DatePicker/DatePicker.stories.d.ts +8 -8
  25. package/dist/components/DatePicker/dateUtils.d.ts +2 -2
  26. package/dist/components/DatePicker/dateUtils.js +1 -1
  27. package/dist/components/DatePicker/keyboardNavigation.d.ts +1 -1
  28. package/dist/components/DatePicker/renderCalendarDays.js +1 -1
  29. package/dist/components/DatePicker/renderPeriodSelection.js +1 -1
  30. package/dist/components/Dialog/CloseIconButton.js +1 -1
  31. package/dist/components/Dialog/Dialog.js +372 -352
  32. package/dist/components/Dialog/Dialog.stories.d.ts +96 -135
  33. package/dist/components/DoubleAutocomplete/DoubleAutocomplete.d.ts +1 -1
  34. package/dist/components/DoubleAutocomplete/DoubleAutocomplete.js +2 -2
  35. package/dist/components/DoubleAutocomplete/DoubleAutocomplete.stories.d.ts +1 -1
  36. package/dist/components/DoubleInput/DoubleInput.stories.d.ts +1 -1
  37. package/dist/components/Draggable/Draggable.d.ts +0 -1
  38. package/dist/components/Draggable/Draggable.js +1 -1
  39. package/dist/components/Draggable/Draggable.stories.d.ts +2 -3
  40. package/dist/components/Draggable/useDraggable.js +1 -1
  41. package/dist/components/DropdownMenu/DropdownMenu.d.ts +3 -1
  42. package/dist/components/DropdownMenu/DropdownMenu.js +39 -34
  43. package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +6 -4
  44. package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +4 -4
  45. package/dist/components/IconButton/IconButton.js +1 -1
  46. package/dist/components/Input/Input.js +335 -320
  47. package/dist/components/InputSearch/InputSearch.d.ts +31 -31
  48. package/dist/components/InputSearch/InputSearch.stories.d.ts +31 -31
  49. package/dist/components/Popover/Popover.d.ts +3 -3
  50. package/dist/components/Popover/Popover.js +2 -2
  51. package/dist/components/Popover/Popover.stories.d.ts +3 -3
  52. package/dist/components/Popover/PopoverBody.d.ts +0 -1
  53. package/dist/components/Popover/PopoverFooter.d.ts +0 -1
  54. package/dist/components/Popover/PopoverHeader.d.ts +0 -1
  55. package/dist/components/RadioButton/RadioButton.d.ts +0 -1
  56. package/dist/components/RadioButton/RadioButton.js +684 -769
  57. package/dist/components/RadioButton/RadioOption.d.ts +0 -1
  58. package/dist/components/RadioButton/RadioOption.js +3 -3
  59. package/dist/components/ResultContainer/ResultContainer.d.ts +0 -1
  60. package/dist/components/ResultContainer/ResultContainer.stories.d.ts +9 -9
  61. package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
  62. package/dist/components/ResultWithChips/ResultWithChips.stories.d.ts +9 -9
  63. package/dist/components/RowItem/RowItem.js +2 -2
  64. package/dist/components/Select/Select.js +625 -591
  65. package/dist/components/Skeleton/Skeleton.d.ts +0 -1
  66. package/dist/components/Snackbar/Snackbar.js +295 -239
  67. package/dist/components/Snackbar/Snackbar.stories.d.ts +113 -113
  68. package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -1
  69. package/dist/components/Table/Table.stories.d.ts +5 -5
  70. package/dist/components/Tabs/Tab.js +107 -98
  71. package/dist/components/Tabs/TabPanel.js +58 -55
  72. package/dist/components/Tabs/Tabs.js +246 -231
  73. package/dist/components/ToastCard/ToastCard.js +31 -31
  74. package/dist/components/Toggle/Toggle.js +147 -137
  75. package/dist/components/Toggle/Toggle.stories.d.ts +5 -5
  76. package/dist/components/ToggleGroup/Toggle.d.ts +0 -1
  77. package/dist/components/ToggleGroup/Toggle.js +2 -2
  78. package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
  79. package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +1 -1
  80. package/dist/components/Tooltip/Tooltip.js +266 -325
  81. package/dist/components/Tooltip/Tooltip.stories.d.ts +4 -4
  82. package/dist/components/TransactionRow/TransactionRow.stories.d.ts +21 -21
  83. package/dist/contexts/DraggableProvider/DraggableProvider.d.ts +0 -1
  84. package/dist/contexts/DraggableProvider/DraggableProvider.js +1 -1
  85. package/dist/contexts/SnackbarProvider/SnackbarProvider.js +1 -1
  86. package/dist/{dayjs.min-ClQKmc--.js → dayjs.min-BtgZiFZY.js} +14 -14
  87. package/dist/getReactElementRef-iorwYm2A.js +19 -0
  88. package/dist/{index-1UpBa69h.js → index-ew-96uBP.js} +2129 -2128
  89. package/dist/isFocusVisible-CPZqtjv2.js +12 -0
  90. package/dist/main.js +2 -2
  91. package/dist/{ownerDocument-By592Iy6.js → ownerDocument-CU-LCrtd.js} +1 -1
  92. package/dist/react-BTbo_5A3.js +526 -0
  93. package/dist/setRef-Bo0HEdBB.js +6 -0
  94. package/dist/useButton-C2E_LFJp.js +90 -0
  95. package/dist/useControlled-BYdyS7Pn.js +31 -0
  96. package/dist/useId-CK6Kn3Tn.js +21 -0
  97. package/dist/useList-BLW78Lq7.js +446 -0
  98. package/dist/utils/draggable.d.ts +2 -2
  99. package/package.json +1 -1
  100. package/dist/Button-BrEDdtHO.js +0 -130
  101. package/dist/Popup-Dffqo7wT.js +0 -1246
  102. package/dist/RadioOption-DYovqiwF.js +0 -720
  103. package/dist/combineHooksSlotProps-BhQ14uyD.js +0 -79
  104. package/dist/exactProp-SYjL19cU.js +0 -13
  105. package/dist/react-BvI-Sw9b.js +0 -509
  106. package/dist/useButton-CezPDte8.js +0 -105
  107. package/dist/useControlled-CCMYYdCM.js +0 -31
  108. package/dist/useId-BW-oWmul.js +0 -19
  109. package/dist/useIsFocusVisible-BH4IAdcw.js +0 -69
  110. package/dist/useList-nqLfZem8.js +0 -435
  111. package/dist/useSlotProps-CYHDC4TN.js +0 -834
  112. package/dist/useTimeout-DxF9kiZL.js +0 -36
@@ -1,134 +1,141 @@
1
- import { jsx as T } from "react/jsx-runtime";
2
- import * as r from "react";
3
- import { forwardRef as q } from "react";
4
- import { c as B } from "../../clsx-OuTLNxxd.js";
5
- import { T as G, u as J, s as Q } from "../../Tabs.module-DyJgAZt8.js";
6
- import { Tab as Ie } from "./Tab.js";
7
- import { TabPanel as Fe } from "./TabPanel.js";
8
- import { g as I, a as _, _ as C, b as F, c as $, d as N, e as w, P as t } from "../../useSlotProps-CYHDC4TN.js";
1
+ import { jsx as v } from "react/jsx-runtime";
2
+ import * as a from "react";
3
+ import { forwardRef as $ } from "react";
4
+ import { c as H } from "../../clsx-OuTLNxxd.js";
5
+ import { T as K, u as q, s as B } from "../../Tabs.module-DyJgAZt8.js";
6
+ import { Tab as Pe } from "./Tab.js";
7
+ import { TabPanel as Ve } from "./TabPanel.js";
8
+ import { g as R, a as L, b as I, c as F, d as N, P as t } from "../../ClassNameConfigurator-CVRWfyIa.js";
9
9
  import { a as M, C as O } from "../../useCompoundItem-B7Eo_qZk.js";
10
- import { u as X } from "../../useControlled-CCMYYdCM.js";
11
- import { L as Y, a as Z } from "../../combineHooksSlotProps-BhQ14uyD.js";
12
- import { l as ee, m as te, u as oe } from "../../useList-nqLfZem8.js";
10
+ import { u as G } from "../../useControlled-BYdyS7Pn.js";
11
+ import { L as J, a as Q } from "../../combineHooksSlotProps-j-8UVeYo.js";
12
+ import { l as W, m as X, u as Y } from "../../useList-BLW78Lq7.js";
13
13
  const k = "Tabs";
14
- function se(s) {
15
- return I(k, s);
14
+ function Z(n) {
15
+ return R(k, n);
16
16
  }
17
- _(k, ["root", "horizontal", "vertical"]);
18
- function ne(s) {
17
+ L(k, ["root", "horizontal", "vertical"]);
18
+ function ee(n) {
19
19
  const {
20
20
  value: e,
21
21
  defaultValue: o,
22
22
  onChange: l,
23
- orientation: a = "horizontal",
24
- direction: c = "ltr",
25
- selectionFollowsFocus: n = !1
26
- } = s, [d, i] = X({
23
+ orientation: i = "horizontal",
24
+ direction: r = "ltr",
25
+ selectionFollowsFocus: c = !1
26
+ } = n, [u, s] = G({
27
27
  controlled: e,
28
28
  default: o,
29
29
  name: "Tabs",
30
30
  state: "value"
31
- }), u = r.useCallback((x, y) => {
32
- i(y), l == null || l(x, y);
33
- }, [l, i]), {
34
- subitems: m,
35
- contextValue: h
36
- } = M(), p = r.useRef(() => {
37
- }), f = r.useCallback((x) => {
38
- var y;
39
- return (y = m.get(x)) == null ? void 0 : y.id;
40
- }, [m]), b = r.useCallback((x) => p.current(x), []), P = r.useCallback((x) => {
41
- p.current = x;
31
+ }), m = a.useCallback((p, P) => {
32
+ s(P), l == null || l(p, P);
33
+ }, [l, s]), {
34
+ subitems: f,
35
+ contextValue: b
36
+ } = M(), h = a.useRef(() => {
37
+ }), d = a.useCallback((p) => {
38
+ var P;
39
+ return (P = f.get(p)) == null ? void 0 : P.id;
40
+ }, [f]), g = a.useCallback((p) => h.current(p), []), x = a.useCallback((p) => {
41
+ h.current = p;
42
42
  }, []);
43
43
  return {
44
- contextValue: C({
45
- direction: c,
46
- getTabId: b,
47
- getTabPanelId: f,
48
- onSelected: u,
49
- orientation: a,
50
- registerTabIdLookup: P,
51
- selectionFollowsFocus: n,
52
- value: d
53
- }, h)
44
+ contextValue: {
45
+ direction: r,
46
+ getTabId: g,
47
+ getTabPanelId: d,
48
+ onSelected: m,
49
+ orientation: i,
50
+ registerTabIdLookup: x,
51
+ selectionFollowsFocus: c,
52
+ value: u,
53
+ ...b
54
+ }
54
55
  };
55
56
  }
56
- function le(s) {
57
+ function te(n) {
57
58
  const {
58
59
  value: e,
59
60
  children: o
60
- } = s, {
61
- direction: l,
62
- getItemIndex: a,
63
- onSelected: c,
64
- orientation: n,
65
- registerItem: d,
66
- registerTabIdLookup: i,
67
- selectionFollowsFocus: u,
68
- totalSubitemCount: m,
69
- value: h,
70
- getTabId: p,
71
- getTabPanelId: f
72
- } = e, b = r.useMemo(() => ({
73
- getItemIndex: a,
74
- registerItem: d,
75
- totalSubitemCount: m
76
- }), [d, a, m]), P = r.useMemo(() => ({
61
+ } = n, {
77
62
  direction: l,
78
- getTabId: p,
79
- getTabPanelId: f,
80
- onSelected: c,
81
- orientation: n,
82
- registerTabIdLookup: i,
83
- selectionFollowsFocus: u,
84
- value: h
85
- }), [l, p, f, c, n, i, u, h]);
86
- return /* @__PURE__ */ T(O.Provider, {
63
+ getItemIndex: i,
64
+ onSelected: r,
65
+ orientation: c,
66
+ registerItem: u,
67
+ registerTabIdLookup: s,
68
+ selectionFollowsFocus: m,
69
+ totalSubitemCount: f,
87
70
  value: b,
88
- children: /* @__PURE__ */ T(G.Provider, {
89
- value: P,
71
+ getTabId: h,
72
+ getTabPanelId: d
73
+ } = e, g = a.useMemo(() => ({
74
+ getItemIndex: i,
75
+ registerItem: u,
76
+ totalSubitemCount: f
77
+ }), [u, i, f]), x = a.useMemo(() => ({
78
+ direction: l,
79
+ getTabId: h,
80
+ getTabPanelId: d,
81
+ onSelected: r,
82
+ orientation: c,
83
+ registerTabIdLookup: s,
84
+ selectionFollowsFocus: m,
85
+ value: b
86
+ }), [l, h, d, r, c, s, m, b]);
87
+ return /* @__PURE__ */ v(O.Provider, {
88
+ value: g,
89
+ children: /* @__PURE__ */ v(K.Provider, {
90
+ value: x,
90
91
  children: o
91
92
  })
92
93
  });
93
94
  }
94
- const re = ["children", "value", "defaultValue", "orientation", "direction", "onChange", "selectionFollowsFocus", "slotProps", "slots"], ae = (s) => {
95
+ const oe = (n) => {
95
96
  const {
96
97
  orientation: e
97
- } = s;
98
- return N({
98
+ } = n;
99
+ return F({
99
100
  root: ["root", e]
100
- }, w(se));
101
- }, S = /* @__PURE__ */ r.forwardRef(function(e, o) {
102
- var l;
101
+ }, N(Z));
102
+ }, w = /* @__PURE__ */ a.forwardRef(function(e, o) {
103
103
  const {
104
- children: a,
104
+ children: l,
105
+ value: i,
106
+ defaultValue: r,
105
107
  orientation: c = "horizontal",
106
- direction: n = "ltr",
107
- slotProps: d = {},
108
- slots: i = {}
109
- } = e, u = F(e, re), m = C({}, e, {
108
+ direction: u = "ltr",
109
+ onChange: s,
110
+ selectionFollowsFocus: m,
111
+ slotProps: f = {},
112
+ slots: b = {},
113
+ ...h
114
+ } = e, d = {
115
+ ...e,
110
116
  orientation: c,
111
- direction: n
112
- }), {
113
- contextValue: h
114
- } = ne(m), p = ae(m), f = (l = i.root) != null ? l : "div", b = $({
115
- elementType: f,
116
- externalSlotProps: d.root,
117
- externalForwardedProps: u,
117
+ direction: u
118
+ }, {
119
+ contextValue: g
120
+ } = ee(d), x = oe(d), p = b.root ?? "div", P = I({
121
+ elementType: p,
122
+ externalSlotProps: f.root,
123
+ externalForwardedProps: h,
118
124
  additionalProps: {
119
125
  ref: o
120
126
  },
121
- ownerState: m,
122
- className: p.root
127
+ ownerState: d,
128
+ className: x.root
123
129
  });
124
- return /* @__PURE__ */ T(f, C({}, b, {
125
- children: /* @__PURE__ */ T(le, {
126
- value: h,
127
- children: a
130
+ return /* @__PURE__ */ v(p, {
131
+ ...P,
132
+ children: /* @__PURE__ */ v(te, {
133
+ value: g,
134
+ children: l
128
135
  })
129
- }));
136
+ });
130
137
  });
131
- process.env.NODE_ENV !== "production" && (S.propTypes = {
138
+ process.env.NODE_ENV !== "production" && (w.propTypes = {
132
139
  // ┌────────────────────────────── Warning ──────────────────────────────┐
133
140
  // │ These PropTypes are generated from the TypeScript type definitions. │
134
141
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -185,182 +192,190 @@ process.env.NODE_ENV !== "production" && (S.propTypes = {
185
192
  */
186
193
  value: t.oneOfType([t.number, t.string])
187
194
  });
188
- const E = "TabsList";
189
- function ie(s) {
190
- return I(E, s);
195
+ const S = "TabsList";
196
+ function se(n) {
197
+ return R(S, n);
191
198
  }
192
- _(E, ["root", "horizontal", "vertical"]);
193
- const z = {
199
+ L(S, ["root", "horizontal", "vertical"]);
200
+ const E = {
194
201
  valueChange: "valueChange"
195
202
  };
196
- function ue(s, e) {
197
- if (e.type === z.valueChange)
198
- return C({}, s, {
203
+ function ne(n, e) {
204
+ if (e.type === E.valueChange)
205
+ return {
206
+ ...n,
199
207
  highlightedValue: e.value
200
- });
201
- const o = ee(s, e), {
208
+ };
209
+ const o = W(n, e), {
202
210
  context: {
203
211
  selectionFollowsFocus: l
204
212
  }
205
213
  } = e;
206
- if (e.type === Y.itemsChange) {
214
+ if (e.type === J.itemsChange) {
207
215
  if (o.selectedValues.length > 0)
208
- return C({}, o, {
216
+ return {
217
+ ...o,
209
218
  highlightedValue: o.selectedValues[0]
210
- });
211
- te(null, "reset", e.context);
219
+ };
220
+ X(null, "reset", e.context);
212
221
  }
213
- return l && o.highlightedValue != null ? C({}, o, {
222
+ return l && o.highlightedValue != null ? {
223
+ ...o,
214
224
  selectedValues: [o.highlightedValue]
215
- }) : o;
225
+ } : o;
216
226
  }
217
- function ce(s) {
218
- var e;
227
+ function le(n) {
219
228
  const {
220
- rootRef: o
221
- } = s, {
222
- direction: l = "ltr",
223
- onSelected: a,
224
- orientation: c = "horizontal",
225
- value: n,
226
- registerTabIdLookup: d,
227
- selectionFollowsFocus: i
228
- } = J(), {
229
- subitems: u,
229
+ rootRef: e
230
+ } = n, {
231
+ direction: o = "ltr",
232
+ onSelected: l,
233
+ orientation: i = "horizontal",
234
+ value: r,
235
+ registerTabIdLookup: c,
236
+ selectionFollowsFocus: u
237
+ } = q(), {
238
+ subitems: s,
230
239
  contextValue: m
231
- } = M(), h = r.useCallback((g) => {
232
- var v;
233
- return (v = u.get(g)) == null ? void 0 : v.id;
234
- }, [u]);
235
- d(h);
236
- const p = r.useMemo(() => Array.from(u.keys()), [u]), f = r.useCallback((g) => {
237
- var v, V;
238
- return g == null ? null : (v = (V = u.get(g)) == null ? void 0 : V.ref.current) != null ? v : null;
239
- }, [u]), b = l === "rtl";
240
- let P;
241
- c === "vertical" ? P = "vertical" : P = b ? "horizontal-rtl" : "horizontal-ltr";
242
- const x = r.useCallback((g, v) => {
243
- var V;
244
- a(g, (V = v[0]) != null ? V : null);
245
- }, [a]), y = r.useMemo(() => n === void 0 ? {} : n != null ? {
246
- selectedValues: [n]
240
+ } = M(), f = a.useCallback((C) => {
241
+ var T;
242
+ return (T = s.get(C)) == null ? void 0 : T.id;
243
+ }, [s]);
244
+ c(f);
245
+ const b = a.useMemo(() => Array.from(s.keys()), [s]), h = a.useCallback((C) => {
246
+ var T;
247
+ return C == null ? null : ((T = s.get(C)) == null ? void 0 : T.ref.current) ?? null;
248
+ }, [s]), d = o === "rtl";
249
+ let g;
250
+ i === "vertical" ? g = "vertical" : g = d ? "horizontal-rtl" : "horizontal-ltr";
251
+ const x = a.useCallback((C, T) => {
252
+ l(C, T[0] ?? null);
253
+ }, [l]), p = a.useMemo(() => r === void 0 ? {} : r != null ? {
254
+ selectedValues: [r]
247
255
  } : {
248
256
  selectedValues: []
249
- }, [n]), U = r.useCallback((g) => {
250
- var v, V;
251
- return (v = (V = u.get(g)) == null ? void 0 : V.disabled) != null ? v : !1;
252
- }, [u]), {
253
- contextValue: L,
254
- dispatch: R,
255
- getRootProps: D,
257
+ }, [r]), P = a.useCallback((C) => {
258
+ var T;
259
+ return ((T = s.get(C)) == null ? void 0 : T.disabled) ?? !1;
260
+ }, [s]), {
261
+ contextValue: y,
262
+ dispatch: V,
263
+ getRootProps: A,
256
264
  state: {
257
- highlightedValue: j,
258
- selectedValues: H
265
+ highlightedValue: U,
266
+ selectedValues: D
259
267
  },
260
- rootRef: K
261
- } = oe({
262
- controlledProps: y,
263
- disabledItemsFocusable: !i,
268
+ rootRef: _
269
+ } = Y({
270
+ controlledProps: p,
271
+ disabledItemsFocusable: !u,
264
272
  focusManagement: "DOM",
265
- getItemDomElement: f,
266
- isItemDisabled: U,
267
- items: p,
268
- rootRef: o,
273
+ getItemDomElement: h,
274
+ isItemDisabled: P,
275
+ items: b,
276
+ rootRef: e,
269
277
  onChange: x,
270
- orientation: P,
271
- reducerActionContext: r.useMemo(() => ({
272
- selectionFollowsFocus: i || !1
273
- }), [i]),
278
+ orientation: g,
279
+ reducerActionContext: a.useMemo(() => ({
280
+ selectionFollowsFocus: u || !1
281
+ }), [u]),
274
282
  selectionMode: "single",
275
- stateReducer: ue
283
+ stateReducer: ne
276
284
  });
277
- r.useEffect(() => {
278
- n !== void 0 && n != null && R({
279
- type: z.valueChange,
280
- value: n
285
+ a.useEffect(() => {
286
+ r !== void 0 && r != null && V({
287
+ type: E.valueChange,
288
+ value: r
281
289
  });
282
- }, [R, n]);
283
- const W = (g = {}) => C({}, g, D(g), {
284
- "aria-orientation": c === "vertical" ? "vertical" : void 0,
290
+ }, [V, r]);
291
+ const j = (C = {}) => ({
292
+ ...C,
293
+ ...A(C),
294
+ "aria-orientation": i === "vertical" ? "vertical" : void 0,
285
295
  role: "tablist"
286
296
  });
287
297
  return {
288
- contextValue: r.useMemo(() => C({}, m, L), [m, L]),
289
- dispatch: R,
290
- getRootProps: W,
291
- highlightedValue: j,
292
- isRtl: b,
293
- orientation: c,
294
- rootRef: K,
295
- selectedValue: (e = H[0]) != null ? e : null
298
+ contextValue: a.useMemo(() => ({
299
+ ...m,
300
+ ...y
301
+ }), [m, y]),
302
+ dispatch: V,
303
+ getRootProps: j,
304
+ highlightedValue: U,
305
+ isRtl: d,
306
+ orientation: i,
307
+ rootRef: _,
308
+ selectedValue: D[0] ?? null
296
309
  };
297
310
  }
298
- function de(s) {
311
+ function re(n) {
299
312
  const {
300
313
  value: e,
301
314
  children: o
302
- } = s, {
315
+ } = n, {
303
316
  dispatch: l,
304
- getItemIndex: a,
305
- getItemState: c,
306
- registerItem: n,
307
- totalSubitemCount: d
308
- } = e, i = r.useMemo(() => ({
317
+ getItemIndex: i,
318
+ getItemState: r,
319
+ registerItem: c,
320
+ totalSubitemCount: u
321
+ } = e, s = a.useMemo(() => ({
309
322
  dispatch: l,
310
- getItemState: c,
311
- getItemIndex: a
312
- }), [l, a, c]), u = r.useMemo(() => ({
313
- getItemIndex: a,
314
- registerItem: n,
315
- totalSubitemCount: d
316
- }), [n, a, d]);
317
- return /* @__PURE__ */ T(O.Provider, {
318
- value: u,
319
- children: /* @__PURE__ */ T(Z.Provider, {
320
- value: i,
323
+ getItemState: r,
324
+ getItemIndex: i
325
+ }), [l, i, r]), m = a.useMemo(() => ({
326
+ getItemIndex: i,
327
+ registerItem: c,
328
+ totalSubitemCount: u
329
+ }), [c, i, u]);
330
+ return /* @__PURE__ */ v(O.Provider, {
331
+ value: m,
332
+ children: /* @__PURE__ */ v(Q.Provider, {
333
+ value: s,
321
334
  children: o
322
335
  })
323
336
  });
324
337
  }
325
- const me = ["children", "slotProps", "slots"], pe = (s) => {
338
+ const ae = (n) => {
326
339
  const {
327
340
  orientation: e
328
- } = s;
329
- return N({
341
+ } = n;
342
+ return F({
330
343
  root: ["root", e]
331
- }, w(ie));
332
- }, A = /* @__PURE__ */ r.forwardRef(function(e, o) {
333
- var l;
344
+ }, N(se));
345
+ }, z = /* @__PURE__ */ a.forwardRef(function(e, o) {
334
346
  const {
335
- children: a,
336
- slotProps: c = {},
337
- slots: n = {}
338
- } = e, d = F(e, me), {
339
- isRtl: i,
340
- orientation: u,
347
+ children: l,
348
+ slotProps: i = {},
349
+ slots: r = {},
350
+ ...c
351
+ } = e, {
352
+ isRtl: u,
353
+ orientation: s,
341
354
  getRootProps: m,
342
- contextValue: h
343
- } = ce({
355
+ contextValue: f
356
+ } = le({
344
357
  rootRef: o
345
- }), p = C({}, e, {
346
- isRtl: i,
347
- orientation: u
348
- }), f = pe(p), b = (l = n.root) != null ? l : "div", P = $({
349
- elementType: b,
358
+ }), b = {
359
+ ...e,
360
+ isRtl: u,
361
+ orientation: s
362
+ }, h = ae(b), d = r.root ?? "div", g = I({
363
+ elementType: d,
350
364
  getSlotProps: m,
351
- externalSlotProps: c.root,
352
- externalForwardedProps: d,
353
- ownerState: p,
354
- className: f.root
365
+ externalSlotProps: i.root,
366
+ externalForwardedProps: c,
367
+ ownerState: b,
368
+ className: h.root
355
369
  });
356
- return /* @__PURE__ */ T(de, {
357
- value: h,
358
- children: /* @__PURE__ */ T(b, C({}, P, {
359
- children: a
360
- }))
370
+ return /* @__PURE__ */ v(re, {
371
+ value: f,
372
+ children: /* @__PURE__ */ v(d, {
373
+ ...g,
374
+ children: l
375
+ })
361
376
  });
362
377
  });
363
- process.env.NODE_ENV !== "production" && (A.propTypes = {
378
+ process.env.NODE_ENV !== "production" && (z.propTypes = {
364
379
  // ┌────────────────────────────── Warning ──────────────────────────────┐
365
380
  // │ These PropTypes are generated from the TypeScript type definitions. │
366
381
  // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
@@ -389,16 +404,16 @@ process.env.NODE_ENV !== "production" && (A.propTypes = {
389
404
  root: t.elementType
390
405
  })
391
406
  });
392
- const ye = q(
393
- ({ value: s, className: e, "data-testid": o, children: l, onChange: a }, c) => {
394
- const n = (d, i) => {
395
- a && a(i, d);
407
+ const Ce = $(
408
+ ({ value: n, className: e, "data-testid": o, children: l, onChange: i }, r) => {
409
+ const c = (u, s) => {
410
+ i && i(s, u);
396
411
  };
397
- return /* @__PURE__ */ T(S, { "data-testid": o, value: s, onChange: (d, i) => n(d, i), ref: c, children: /* @__PURE__ */ T(A, { className: B(Q.tabs, e), children: l }) });
412
+ return /* @__PURE__ */ v(w, { "data-testid": o, value: n, onChange: (u, s) => c(u, s), ref: r, children: /* @__PURE__ */ v(z, { className: H(B.tabs, e), children: l }) });
398
413
  }
399
414
  );
400
415
  export {
401
- Ie as Tab,
402
- Fe as TabPanel,
403
- ye as Tabs
416
+ Pe as Tab,
417
+ Ve as TabPanel,
418
+ Ce as Tabs
404
419
  };