@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.
- package/dist/Button-CJaBSdv1.js +135 -0
- package/dist/ClassNameConfigurator-CVRWfyIa.js +847 -0
- package/dist/{ClickAwayListener-Z08peX_P.js → ClickAwayListener-BnYMO5Ki.js} +26 -33
- package/dist/Popup-D267EI4e.js +1338 -0
- package/dist/{Portal-DJapUCn6.js → Portal-BrGvxB96.js} +32 -36
- package/dist/RadioOption-DyRY8xlF.js +1094 -0
- package/dist/{Toggle-DcZTfLrC.js → Toggle-nnDfpqI1.js} +31 -31
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/DropdownMenu.css +1 -1
- package/dist/assets/ToastCard.css +1 -1
- package/dist/assets/Toggle2.css +1 -1
- package/dist/combineHooksSlotProps-j-8UVeYo.js +86 -0
- package/dist/components/Alert/Alert.stories.d.ts +6 -6
- package/dist/components/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +311 -320
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +1 -1
- package/dist/components/Avatar/Avatar.stories.d.ts +4 -4
- package/dist/components/BankingCard/BankingCard.d.ts +0 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +56 -56
- package/dist/components/Checkbox/Checkbox.stories.d.ts +8 -8
- package/dist/components/Chip/Chip.js +3 -3
- package/dist/components/DatePicker/DatePicker.js +742 -639
- package/dist/components/DatePicker/DatePicker.stories.d.ts +8 -8
- package/dist/components/DatePicker/dateUtils.d.ts +2 -2
- package/dist/components/DatePicker/dateUtils.js +1 -1
- package/dist/components/DatePicker/keyboardNavigation.d.ts +1 -1
- package/dist/components/DatePicker/renderCalendarDays.js +1 -1
- package/dist/components/DatePicker/renderPeriodSelection.js +1 -1
- package/dist/components/Dialog/CloseIconButton.js +1 -1
- package/dist/components/Dialog/Dialog.js +372 -352
- package/dist/components/Dialog/Dialog.stories.d.ts +96 -135
- package/dist/components/DoubleAutocomplete/DoubleAutocomplete.d.ts +1 -1
- package/dist/components/DoubleAutocomplete/DoubleAutocomplete.js +2 -2
- package/dist/components/DoubleAutocomplete/DoubleAutocomplete.stories.d.ts +1 -1
- package/dist/components/DoubleInput/DoubleInput.stories.d.ts +1 -1
- package/dist/components/Draggable/Draggable.d.ts +0 -1
- package/dist/components/Draggable/Draggable.js +1 -1
- package/dist/components/Draggable/Draggable.stories.d.ts +2 -3
- package/dist/components/Draggable/useDraggable.js +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +3 -1
- package/dist/components/DropdownMenu/DropdownMenu.js +39 -34
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +6 -4
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +4 -4
- package/dist/components/IconButton/IconButton.js +1 -1
- package/dist/components/Input/Input.js +335 -320
- package/dist/components/InputSearch/InputSearch.d.ts +31 -31
- package/dist/components/InputSearch/InputSearch.stories.d.ts +31 -31
- package/dist/components/Popover/Popover.d.ts +3 -3
- package/dist/components/Popover/Popover.js +2 -2
- package/dist/components/Popover/Popover.stories.d.ts +3 -3
- package/dist/components/Popover/PopoverBody.d.ts +0 -1
- package/dist/components/Popover/PopoverFooter.d.ts +0 -1
- package/dist/components/Popover/PopoverHeader.d.ts +0 -1
- package/dist/components/RadioButton/RadioButton.d.ts +0 -1
- package/dist/components/RadioButton/RadioButton.js +684 -769
- package/dist/components/RadioButton/RadioOption.d.ts +0 -1
- package/dist/components/RadioButton/RadioOption.js +3 -3
- package/dist/components/ResultContainer/ResultContainer.d.ts +0 -1
- package/dist/components/ResultContainer/ResultContainer.stories.d.ts +9 -9
- package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
- package/dist/components/ResultWithChips/ResultWithChips.stories.d.ts +9 -9
- package/dist/components/RowItem/RowItem.js +2 -2
- package/dist/components/Select/Select.js +625 -591
- package/dist/components/Skeleton/Skeleton.d.ts +0 -1
- package/dist/components/Snackbar/Snackbar.js +295 -239
- package/dist/components/Snackbar/Snackbar.stories.d.ts +113 -113
- package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -1
- package/dist/components/Table/Table.stories.d.ts +5 -5
- package/dist/components/Tabs/Tab.js +107 -98
- package/dist/components/Tabs/TabPanel.js +58 -55
- package/dist/components/Tabs/Tabs.js +246 -231
- package/dist/components/ToastCard/ToastCard.js +31 -31
- package/dist/components/Toggle/Toggle.js +147 -137
- package/dist/components/Toggle/Toggle.stories.d.ts +5 -5
- package/dist/components/ToggleGroup/Toggle.d.ts +0 -1
- package/dist/components/ToggleGroup/Toggle.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.js +266 -325
- package/dist/components/Tooltip/Tooltip.stories.d.ts +4 -4
- package/dist/components/TransactionRow/TransactionRow.stories.d.ts +21 -21
- package/dist/contexts/DraggableProvider/DraggableProvider.d.ts +0 -1
- package/dist/contexts/DraggableProvider/DraggableProvider.js +1 -1
- package/dist/contexts/SnackbarProvider/SnackbarProvider.js +1 -1
- package/dist/{dayjs.min-ClQKmc--.js → dayjs.min-BtgZiFZY.js} +14 -14
- package/dist/getReactElementRef-iorwYm2A.js +19 -0
- package/dist/{index-1UpBa69h.js → index-ew-96uBP.js} +2129 -2128
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/main.js +2 -2
- package/dist/{ownerDocument-By592Iy6.js → ownerDocument-CU-LCrtd.js} +1 -1
- package/dist/react-BTbo_5A3.js +526 -0
- package/dist/setRef-Bo0HEdBB.js +6 -0
- package/dist/useButton-C2E_LFJp.js +90 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/useId-CK6Kn3Tn.js +21 -0
- package/dist/useList-BLW78Lq7.js +446 -0
- package/dist/utils/draggable.d.ts +2 -2
- package/package.json +1 -1
- package/dist/Button-BrEDdtHO.js +0 -130
- package/dist/Popup-Dffqo7wT.js +0 -1246
- package/dist/RadioOption-DYovqiwF.js +0 -720
- package/dist/combineHooksSlotProps-BhQ14uyD.js +0 -79
- package/dist/exactProp-SYjL19cU.js +0 -13
- package/dist/react-BvI-Sw9b.js +0 -509
- package/dist/useButton-CezPDte8.js +0 -105
- package/dist/useControlled-CCMYYdCM.js +0 -31
- package/dist/useId-BW-oWmul.js +0 -19
- package/dist/useIsFocusVisible-BH4IAdcw.js +0 -69
- package/dist/useList-nqLfZem8.js +0 -435
- package/dist/useSlotProps-CYHDC4TN.js +0 -834
- package/dist/useTimeout-DxF9kiZL.js +0 -36
|
@@ -1,134 +1,141 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import * as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { c as
|
|
5
|
-
import { T as
|
|
6
|
-
import { Tab as
|
|
7
|
-
import { TabPanel as
|
|
8
|
-
import { g as
|
|
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
|
|
11
|
-
import { L as
|
|
12
|
-
import { l as
|
|
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
|
|
15
|
-
return
|
|
14
|
+
function Z(n) {
|
|
15
|
+
return R(k, n);
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
function
|
|
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:
|
|
24
|
-
direction:
|
|
25
|
-
selectionFollowsFocus:
|
|
26
|
-
} =
|
|
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
|
-
}),
|
|
32
|
-
|
|
33
|
-
}, [l,
|
|
34
|
-
subitems:
|
|
35
|
-
contextValue:
|
|
36
|
-
} = M(),
|
|
37
|
-
}),
|
|
38
|
-
var
|
|
39
|
-
return (
|
|
40
|
-
}, [
|
|
41
|
-
|
|
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:
|
|
45
|
-
direction:
|
|
46
|
-
getTabId:
|
|
47
|
-
getTabPanelId:
|
|
48
|
-
onSelected:
|
|
49
|
-
orientation:
|
|
50
|
-
registerTabIdLookup:
|
|
51
|
-
selectionFollowsFocus:
|
|
52
|
-
value:
|
|
53
|
-
|
|
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
|
|
57
|
+
function te(n) {
|
|
57
58
|
const {
|
|
58
59
|
value: e,
|
|
59
60
|
children: o
|
|
60
|
-
} =
|
|
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
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
registerTabIdLookup:
|
|
83
|
-
selectionFollowsFocus:
|
|
84
|
-
|
|
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
|
-
|
|
89
|
-
|
|
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
|
|
95
|
+
const oe = (n) => {
|
|
95
96
|
const {
|
|
96
97
|
orientation: e
|
|
97
|
-
} =
|
|
98
|
-
return
|
|
98
|
+
} = n;
|
|
99
|
+
return F({
|
|
99
100
|
root: ["root", e]
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
var l;
|
|
101
|
+
}, N(Z));
|
|
102
|
+
}, w = /* @__PURE__ */ a.forwardRef(function(e, o) {
|
|
103
103
|
const {
|
|
104
|
-
children:
|
|
104
|
+
children: l,
|
|
105
|
+
value: i,
|
|
106
|
+
defaultValue: r,
|
|
105
107
|
orientation: c = "horizontal",
|
|
106
|
-
direction:
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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:
|
|
112
|
-
}
|
|
113
|
-
contextValue:
|
|
114
|
-
} =
|
|
115
|
-
elementType:
|
|
116
|
-
externalSlotProps:
|
|
117
|
-
externalForwardedProps:
|
|
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:
|
|
122
|
-
className:
|
|
127
|
+
ownerState: d,
|
|
128
|
+
className: x.root
|
|
123
129
|
});
|
|
124
|
-
return /* @__PURE__ */
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
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" && (
|
|
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
|
|
189
|
-
function
|
|
190
|
-
return
|
|
195
|
+
const S = "TabsList";
|
|
196
|
+
function se(n) {
|
|
197
|
+
return R(S, n);
|
|
191
198
|
}
|
|
192
|
-
|
|
193
|
-
const
|
|
199
|
+
L(S, ["root", "horizontal", "vertical"]);
|
|
200
|
+
const E = {
|
|
194
201
|
valueChange: "valueChange"
|
|
195
202
|
};
|
|
196
|
-
function
|
|
197
|
-
if (e.type ===
|
|
198
|
-
return
|
|
203
|
+
function ne(n, e) {
|
|
204
|
+
if (e.type === E.valueChange)
|
|
205
|
+
return {
|
|
206
|
+
...n,
|
|
199
207
|
highlightedValue: e.value
|
|
200
|
-
}
|
|
201
|
-
const o =
|
|
208
|
+
};
|
|
209
|
+
const o = W(n, e), {
|
|
202
210
|
context: {
|
|
203
211
|
selectionFollowsFocus: l
|
|
204
212
|
}
|
|
205
213
|
} = e;
|
|
206
|
-
if (e.type ===
|
|
214
|
+
if (e.type === J.itemsChange) {
|
|
207
215
|
if (o.selectedValues.length > 0)
|
|
208
|
-
return
|
|
216
|
+
return {
|
|
217
|
+
...o,
|
|
209
218
|
highlightedValue: o.selectedValues[0]
|
|
210
|
-
}
|
|
211
|
-
|
|
219
|
+
};
|
|
220
|
+
X(null, "reset", e.context);
|
|
212
221
|
}
|
|
213
|
-
return l && o.highlightedValue != null ?
|
|
222
|
+
return l && o.highlightedValue != null ? {
|
|
223
|
+
...o,
|
|
214
224
|
selectedValues: [o.highlightedValue]
|
|
215
|
-
}
|
|
225
|
+
} : o;
|
|
216
226
|
}
|
|
217
|
-
function
|
|
218
|
-
var e;
|
|
227
|
+
function le(n) {
|
|
219
228
|
const {
|
|
220
|
-
rootRef:
|
|
221
|
-
} =
|
|
222
|
-
direction:
|
|
223
|
-
onSelected:
|
|
224
|
-
orientation:
|
|
225
|
-
value:
|
|
226
|
-
registerTabIdLookup:
|
|
227
|
-
selectionFollowsFocus:
|
|
228
|
-
} =
|
|
229
|
-
subitems:
|
|
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(),
|
|
232
|
-
var
|
|
233
|
-
return (
|
|
234
|
-
}, [
|
|
235
|
-
|
|
236
|
-
const
|
|
237
|
-
var
|
|
238
|
-
return
|
|
239
|
-
}, [
|
|
240
|
-
let
|
|
241
|
-
|
|
242
|
-
const x =
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
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
|
-
}, [
|
|
250
|
-
var
|
|
251
|
-
return (
|
|
252
|
-
}, [
|
|
253
|
-
contextValue:
|
|
254
|
-
dispatch:
|
|
255
|
-
getRootProps:
|
|
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:
|
|
258
|
-
selectedValues:
|
|
265
|
+
highlightedValue: U,
|
|
266
|
+
selectedValues: D
|
|
259
267
|
},
|
|
260
|
-
rootRef:
|
|
261
|
-
} =
|
|
262
|
-
controlledProps:
|
|
263
|
-
disabledItemsFocusable: !
|
|
268
|
+
rootRef: _
|
|
269
|
+
} = Y({
|
|
270
|
+
controlledProps: p,
|
|
271
|
+
disabledItemsFocusable: !u,
|
|
264
272
|
focusManagement: "DOM",
|
|
265
|
-
getItemDomElement:
|
|
266
|
-
isItemDisabled:
|
|
267
|
-
items:
|
|
268
|
-
rootRef:
|
|
273
|
+
getItemDomElement: h,
|
|
274
|
+
isItemDisabled: P,
|
|
275
|
+
items: b,
|
|
276
|
+
rootRef: e,
|
|
269
277
|
onChange: x,
|
|
270
|
-
orientation:
|
|
271
|
-
reducerActionContext:
|
|
272
|
-
selectionFollowsFocus:
|
|
273
|
-
}), [
|
|
278
|
+
orientation: g,
|
|
279
|
+
reducerActionContext: a.useMemo(() => ({
|
|
280
|
+
selectionFollowsFocus: u || !1
|
|
281
|
+
}), [u]),
|
|
274
282
|
selectionMode: "single",
|
|
275
|
-
stateReducer:
|
|
283
|
+
stateReducer: ne
|
|
276
284
|
});
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
type:
|
|
280
|
-
value:
|
|
285
|
+
a.useEffect(() => {
|
|
286
|
+
r !== void 0 && r != null && V({
|
|
287
|
+
type: E.valueChange,
|
|
288
|
+
value: r
|
|
281
289
|
});
|
|
282
|
-
}, [
|
|
283
|
-
const
|
|
284
|
-
|
|
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:
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
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
|
|
311
|
+
function re(n) {
|
|
299
312
|
const {
|
|
300
313
|
value: e,
|
|
301
314
|
children: o
|
|
302
|
-
} =
|
|
315
|
+
} = n, {
|
|
303
316
|
dispatch: l,
|
|
304
|
-
getItemIndex:
|
|
305
|
-
getItemState:
|
|
306
|
-
registerItem:
|
|
307
|
-
totalSubitemCount:
|
|
308
|
-
} = e,
|
|
317
|
+
getItemIndex: i,
|
|
318
|
+
getItemState: r,
|
|
319
|
+
registerItem: c,
|
|
320
|
+
totalSubitemCount: u
|
|
321
|
+
} = e, s = a.useMemo(() => ({
|
|
309
322
|
dispatch: l,
|
|
310
|
-
getItemState:
|
|
311
|
-
getItemIndex:
|
|
312
|
-
}), [l,
|
|
313
|
-
getItemIndex:
|
|
314
|
-
registerItem:
|
|
315
|
-
totalSubitemCount:
|
|
316
|
-
}), [
|
|
317
|
-
return /* @__PURE__ */
|
|
318
|
-
value:
|
|
319
|
-
children: /* @__PURE__ */
|
|
320
|
-
value:
|
|
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
|
|
338
|
+
const ae = (n) => {
|
|
326
339
|
const {
|
|
327
340
|
orientation: e
|
|
328
|
-
} =
|
|
329
|
-
return
|
|
341
|
+
} = n;
|
|
342
|
+
return F({
|
|
330
343
|
root: ["root", e]
|
|
331
|
-
},
|
|
332
|
-
},
|
|
333
|
-
var l;
|
|
344
|
+
}, N(se));
|
|
345
|
+
}, z = /* @__PURE__ */ a.forwardRef(function(e, o) {
|
|
334
346
|
const {
|
|
335
|
-
children:
|
|
336
|
-
slotProps:
|
|
337
|
-
slots:
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
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:
|
|
343
|
-
} =
|
|
355
|
+
contextValue: f
|
|
356
|
+
} = le({
|
|
344
357
|
rootRef: o
|
|
345
|
-
}),
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
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:
|
|
352
|
-
externalForwardedProps:
|
|
353
|
-
ownerState:
|
|
354
|
-
className:
|
|
365
|
+
externalSlotProps: i.root,
|
|
366
|
+
externalForwardedProps: c,
|
|
367
|
+
ownerState: b,
|
|
368
|
+
className: h.root
|
|
355
369
|
});
|
|
356
|
-
return /* @__PURE__ */
|
|
357
|
-
value:
|
|
358
|
-
children: /* @__PURE__ */
|
|
359
|
-
|
|
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" && (
|
|
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
|
|
393
|
-
({ value:
|
|
394
|
-
const
|
|
395
|
-
|
|
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__ */
|
|
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
|
-
|
|
402
|
-
|
|
403
|
-
|
|
416
|
+
Pe as Tab,
|
|
417
|
+
Ve as TabPanel,
|
|
418
|
+
Ce as Tabs
|
|
404
419
|
};
|