@pismo/marola 2.1.63 → 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/Input.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.d.ts +2 -0
- package/dist/components/Input/Input.js +361 -340
- package/dist/components/Input/Input.stories.d.ts +2 -0
- package/dist/components/InputSearch/InputSearch.d.ts +31 -30
- package/dist/components/InputSearch/InputSearch.stories.d.ts +31 -30
- 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 +5 -4
- 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,32 +1,32 @@
|
|
|
1
|
-
import { jsxs as s, jsx as a, Fragment as
|
|
1
|
+
import { jsxs as s, jsx as a, Fragment as f } from "react/jsx-runtime";
|
|
2
2
|
import { c as d } from "../../clsx-OuTLNxxd.js";
|
|
3
|
-
import { Icon as
|
|
4
|
-
import { IconButton as
|
|
5
|
-
import '../../assets/ToastCard.css';const
|
|
6
|
-
"toast-card": "_toast-
|
|
7
|
-
divider:
|
|
8
|
-
"toast-card-padding": "_toast-card-
|
|
9
|
-
"toast-card-title": "_toast-card-
|
|
10
|
-
"close-btn": "_close-
|
|
11
|
-
"toast-card-title--success": "_toast-card-title--
|
|
12
|
-
"toast-card-title--danger": "_toast-card-title--
|
|
13
|
-
"toast-card-title--warning": "_toast-card-title--
|
|
14
|
-
"toast-card-title--info": "_toast-card-title--
|
|
15
|
-
"toast-card-title--default": "_toast-card-title--
|
|
3
|
+
import { Icon as u } from "../Icon/Icon.js";
|
|
4
|
+
import { IconButton as N } from "../IconButton/IconButton.js";
|
|
5
|
+
import '../../assets/ToastCard.css';const h = "_divider_19nbp_6", t = {
|
|
6
|
+
"toast-card": "_toast-card_19nbp_1",
|
|
7
|
+
divider: h,
|
|
8
|
+
"toast-card-padding": "_toast-card-padding_19nbp_10",
|
|
9
|
+
"toast-card-title": "_toast-card-title_19nbp_13",
|
|
10
|
+
"close-btn": "_close-btn_19nbp_24",
|
|
11
|
+
"toast-card-title--success": "_toast-card-title--success_19nbp_43",
|
|
12
|
+
"toast-card-title--danger": "_toast-card-title--danger_19nbp_46",
|
|
13
|
+
"toast-card-title--warning": "_toast-card-title--warning_19nbp_49",
|
|
14
|
+
"toast-card-title--info": "_toast-card-title--info_19nbp_52",
|
|
15
|
+
"toast-card-title--default": "_toast-card-title--default_19nbp_55"
|
|
16
16
|
}, C = ({
|
|
17
17
|
variant: i = "default",
|
|
18
18
|
className: r,
|
|
19
19
|
"data-testid": c,
|
|
20
20
|
title: o,
|
|
21
|
-
"data-testid-title-wrapper":
|
|
22
|
-
classNameTitleWrapper:
|
|
23
|
-
children:
|
|
24
|
-
"data-testid-children-wrapper":
|
|
25
|
-
classNameChildrenWrapper:
|
|
21
|
+
"data-testid-title-wrapper": n,
|
|
22
|
+
classNameTitleWrapper: l,
|
|
23
|
+
children: _,
|
|
24
|
+
"data-testid-children-wrapper": p,
|
|
25
|
+
classNameChildrenWrapper: m,
|
|
26
26
|
footer: e,
|
|
27
|
-
"data-testid-footer-wrapper":
|
|
28
|
-
classNameFooterWrapper:
|
|
29
|
-
onClose:
|
|
27
|
+
"data-testid-footer-wrapper": b,
|
|
28
|
+
classNameFooterWrapper: g,
|
|
29
|
+
onClose: v
|
|
30
30
|
}) => /* @__PURE__ */ s("div", { className: d(t["toast-card"], t[`toast-card--${i}`], r), "data-testid": c, children: [
|
|
31
31
|
/* @__PURE__ */ s(
|
|
32
32
|
"div",
|
|
@@ -35,12 +35,12 @@ import '../../assets/ToastCard.css';const w = "_divider_pnmml_6", t = {
|
|
|
35
35
|
t["toast-card-padding"],
|
|
36
36
|
t["toast-card-title"],
|
|
37
37
|
t[`toast-card-title--${i}`],
|
|
38
|
-
|
|
38
|
+
l
|
|
39
39
|
),
|
|
40
|
-
"data-testid":
|
|
40
|
+
"data-testid": n,
|
|
41
41
|
children: [
|
|
42
42
|
o,
|
|
43
|
-
/* @__PURE__ */ a(
|
|
43
|
+
/* @__PURE__ */ a(N, { className: t["close-btn"], icon: /* @__PURE__ */ a(u, { icon: "xmark", size: "1rem" }), onClick: v })
|
|
44
44
|
]
|
|
45
45
|
}
|
|
46
46
|
),
|
|
@@ -48,18 +48,18 @@ import '../../assets/ToastCard.css';const w = "_divider_pnmml_6", t = {
|
|
|
48
48
|
/* @__PURE__ */ a(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
|
-
className: d(t["toast-card-padding"],
|
|
52
|
-
"data-testid":
|
|
53
|
-
children:
|
|
51
|
+
className: d(t["toast-card-padding"], m),
|
|
52
|
+
"data-testid": p,
|
|
53
|
+
children: _
|
|
54
54
|
}
|
|
55
55
|
),
|
|
56
|
-
e && /* @__PURE__ */ s(
|
|
56
|
+
e && /* @__PURE__ */ s(f, { children: [
|
|
57
57
|
/* @__PURE__ */ a("div", { className: t.divider }),
|
|
58
58
|
/* @__PURE__ */ a(
|
|
59
59
|
"div",
|
|
60
60
|
{
|
|
61
|
-
className: d(t["toast-card-padding"],
|
|
62
|
-
"data-testid":
|
|
61
|
+
className: d(t["toast-card-padding"], g),
|
|
62
|
+
"data-testid": b,
|
|
63
63
|
children: e
|
|
64
64
|
}
|
|
65
65
|
)
|
|
@@ -1,130 +1,140 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { c as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { u as
|
|
6
|
-
import {
|
|
7
|
-
import '../../assets/Toggle.css';function
|
|
1
|
+
import { jsxs as j, jsx as k } from "react/jsx-runtime";
|
|
2
|
+
import { c as T } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import * as S from "react";
|
|
4
|
+
import { u as v, g as A, a as D, b as O, c as z, d as G, P as e } from "../../ClassNameConfigurator-CVRWfyIa.js";
|
|
5
|
+
import { u as J } from "../../useControlled-BYdyS7Pn.js";
|
|
6
|
+
import { i as B } from "../../isFocusVisible-CPZqtjv2.js";
|
|
7
|
+
import '../../assets/Toggle.css';function K(l) {
|
|
8
8
|
const {
|
|
9
|
-
checked:
|
|
10
|
-
defaultChecked:
|
|
11
|
-
disabled:
|
|
12
|
-
onBlur:
|
|
9
|
+
checked: o,
|
|
10
|
+
defaultChecked: n,
|
|
11
|
+
disabled: r,
|
|
12
|
+
onBlur: i,
|
|
13
13
|
onChange: g,
|
|
14
|
-
onFocus:
|
|
15
|
-
onFocusVisible:
|
|
16
|
-
readOnly:
|
|
17
|
-
required:
|
|
18
|
-
} = l, [
|
|
19
|
-
controlled:
|
|
20
|
-
default: !!
|
|
14
|
+
onFocus: u,
|
|
15
|
+
onFocusVisible: b,
|
|
16
|
+
readOnly: m,
|
|
17
|
+
required: d
|
|
18
|
+
} = l, [w, P] = J({
|
|
19
|
+
controlled: o,
|
|
20
|
+
default: !!n,
|
|
21
21
|
name: "Switch",
|
|
22
22
|
state: "checked"
|
|
23
|
-
}),
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} =
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
const k = V.useRef(null), R = (t) => (o) => {
|
|
36
|
-
var b;
|
|
37
|
-
k.current || (k.current = o.currentTarget), f(o), _.current === !0 && (P(!0), u == null || u(o)), r == null || r(o), (b = t.onFocus) == null || b.call(t, o);
|
|
38
|
-
}, O = (t) => (o) => {
|
|
39
|
-
var b;
|
|
40
|
-
w(o), _.current === !1 && P(!1), a == null || a(o), (b = t.onBlur) == null || b.call(t, o);
|
|
41
|
-
}, C = v(m, k);
|
|
23
|
+
}), f = (t) => (s) => {
|
|
24
|
+
var c;
|
|
25
|
+
s.nativeEvent.defaultPrevented || (P(s.target.checked), g == null || g(s), (c = t.onChange) == null || c.call(t, s));
|
|
26
|
+
}, [p, _] = S.useState(!1);
|
|
27
|
+
r && p && _(!1);
|
|
28
|
+
const h = S.useRef(null), N = (t) => (s) => {
|
|
29
|
+
var c;
|
|
30
|
+
h.current || (h.current = s.currentTarget), B(s.target) && (_(!0), b == null || b(s)), u == null || u(s), (c = t.onFocus) == null || c.call(t, s);
|
|
31
|
+
}, C = (t) => (s) => {
|
|
32
|
+
var c;
|
|
33
|
+
B(s.target) || _(!1), i == null || i(s), (c = t.onBlur) == null || c.call(t, s);
|
|
34
|
+
}, y = v(h);
|
|
42
35
|
return {
|
|
43
|
-
checked:
|
|
44
|
-
disabled: !!
|
|
45
|
-
focusVisible:
|
|
46
|
-
getInputProps: (t = {}) =>
|
|
47
|
-
checked:
|
|
48
|
-
defaultChecked:
|
|
49
|
-
disabled:
|
|
50
|
-
readOnly:
|
|
51
|
-
ref:
|
|
52
|
-
required:
|
|
36
|
+
checked: w,
|
|
37
|
+
disabled: !!r,
|
|
38
|
+
focusVisible: p,
|
|
39
|
+
getInputProps: (t = {}) => ({
|
|
40
|
+
checked: o,
|
|
41
|
+
defaultChecked: n,
|
|
42
|
+
disabled: r,
|
|
43
|
+
readOnly: m,
|
|
44
|
+
ref: y,
|
|
45
|
+
required: d,
|
|
53
46
|
type: "checkbox",
|
|
54
47
|
role: "switch",
|
|
55
|
-
"aria-checked":
|
|
56
|
-
|
|
57
|
-
onChange:
|
|
58
|
-
onFocus:
|
|
59
|
-
onBlur:
|
|
48
|
+
"aria-checked": o,
|
|
49
|
+
...t,
|
|
50
|
+
onChange: f(t),
|
|
51
|
+
onFocus: N(t),
|
|
52
|
+
onBlur: C(t)
|
|
60
53
|
}),
|
|
61
|
-
inputRef:
|
|
62
|
-
readOnly: !!
|
|
54
|
+
inputRef: y,
|
|
55
|
+
readOnly: !!m
|
|
63
56
|
};
|
|
64
57
|
}
|
|
65
|
-
const
|
|
66
|
-
function
|
|
67
|
-
return
|
|
58
|
+
const I = "Switch";
|
|
59
|
+
function L(l) {
|
|
60
|
+
return A(I, l);
|
|
68
61
|
}
|
|
69
|
-
|
|
70
|
-
const
|
|
62
|
+
D(I, ["root", "input", "track", "thumb", "checked", "disabled", "focusVisible", "readOnly"]);
|
|
63
|
+
const Q = (l) => {
|
|
71
64
|
const {
|
|
72
|
-
checked:
|
|
73
|
-
disabled:
|
|
74
|
-
focusVisible:
|
|
75
|
-
readOnly:
|
|
65
|
+
checked: o,
|
|
66
|
+
disabled: n,
|
|
67
|
+
focusVisible: r,
|
|
68
|
+
readOnly: i
|
|
76
69
|
} = l;
|
|
77
|
-
return
|
|
78
|
-
root: ["root",
|
|
70
|
+
return z({
|
|
71
|
+
root: ["root", o && "checked", n && "disabled", r && "focusVisible", i && "readOnly"],
|
|
79
72
|
thumb: ["thumb"],
|
|
80
73
|
input: ["input"],
|
|
81
74
|
track: ["track"]
|
|
82
|
-
},
|
|
83
|
-
}, E = /* @__PURE__ */
|
|
84
|
-
var c, a, g, r;
|
|
75
|
+
}, G(L));
|
|
76
|
+
}, E = /* @__PURE__ */ S.forwardRef(function(o, n) {
|
|
85
77
|
const {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
readOnly: w
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
78
|
+
checked: r,
|
|
79
|
+
defaultChecked: i,
|
|
80
|
+
disabled: g,
|
|
81
|
+
onBlur: u,
|
|
82
|
+
onChange: b,
|
|
83
|
+
onFocus: m,
|
|
84
|
+
onFocusVisible: d,
|
|
85
|
+
readOnly: w,
|
|
86
|
+
required: P,
|
|
87
|
+
slotProps: f = {},
|
|
88
|
+
slots: p = {},
|
|
89
|
+
..._
|
|
90
|
+
} = o, {
|
|
91
|
+
getInputProps: h,
|
|
92
|
+
checked: N,
|
|
93
|
+
disabled: C,
|
|
94
|
+
focusVisible: y,
|
|
95
|
+
readOnly: x
|
|
96
|
+
} = K(o), t = {
|
|
97
|
+
...o,
|
|
98
|
+
checked: N,
|
|
99
|
+
disabled: C,
|
|
100
|
+
focusVisible: y,
|
|
101
|
+
readOnly: x
|
|
102
|
+
}, s = Q(t), c = p.root ?? "span", U = O({
|
|
103
|
+
elementType: c,
|
|
104
|
+
externalSlotProps: f.root,
|
|
105
|
+
externalForwardedProps: _,
|
|
103
106
|
additionalProps: {
|
|
104
|
-
ref:
|
|
107
|
+
ref: n
|
|
105
108
|
},
|
|
106
|
-
ownerState:
|
|
107
|
-
className:
|
|
108
|
-
}),
|
|
109
|
-
elementType:
|
|
110
|
-
externalSlotProps:
|
|
111
|
-
ownerState:
|
|
112
|
-
className:
|
|
113
|
-
}),
|
|
114
|
-
elementType:
|
|
115
|
-
getSlotProps:
|
|
116
|
-
externalSlotProps:
|
|
117
|
-
ownerState:
|
|
118
|
-
className:
|
|
119
|
-
}),
|
|
120
|
-
elementType:
|
|
121
|
-
externalSlotProps:
|
|
122
|
-
ownerState:
|
|
123
|
-
className:
|
|
109
|
+
ownerState: t,
|
|
110
|
+
className: s.root
|
|
111
|
+
}), V = p.thumb ?? "span", q = O({
|
|
112
|
+
elementType: V,
|
|
113
|
+
externalSlotProps: f.thumb,
|
|
114
|
+
ownerState: t,
|
|
115
|
+
className: s.thumb
|
|
116
|
+
}), F = p.input ?? "input", H = O({
|
|
117
|
+
elementType: F,
|
|
118
|
+
getSlotProps: h,
|
|
119
|
+
externalSlotProps: f.input,
|
|
120
|
+
ownerState: t,
|
|
121
|
+
className: s.input
|
|
122
|
+
}), R = p.track === null ? () => null : p.track ?? "span", M = O({
|
|
123
|
+
elementType: R,
|
|
124
|
+
externalSlotProps: f.track,
|
|
125
|
+
ownerState: t,
|
|
126
|
+
className: s.track
|
|
127
|
+
});
|
|
128
|
+
return /* @__PURE__ */ j(c, {
|
|
129
|
+
...U,
|
|
130
|
+
children: [/* @__PURE__ */ k(R, {
|
|
131
|
+
...M
|
|
132
|
+
}), /* @__PURE__ */ k(V, {
|
|
133
|
+
...q
|
|
134
|
+
}), /* @__PURE__ */ k(F, {
|
|
135
|
+
...H
|
|
136
|
+
})]
|
|
124
137
|
});
|
|
125
|
-
return /* @__PURE__ */ I(h, y({}, P, {
|
|
126
|
-
children: [/* @__PURE__ */ T(j, y({}, t)), /* @__PURE__ */ T(k, y({}, R)), /* @__PURE__ */ T(O, y({}, C))]
|
|
127
|
-
}));
|
|
128
138
|
});
|
|
129
139
|
process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
130
140
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -197,54 +207,54 @@ process.env.NODE_ENV !== "production" && (E.propTypes = {
|
|
|
197
207
|
track: e.oneOfType([e.elementType, e.oneOf([null])])
|
|
198
208
|
})
|
|
199
209
|
});
|
|
200
|
-
const
|
|
201
|
-
toggle__label:
|
|
202
|
-
toggle:
|
|
210
|
+
const W = "_toggle__label_spoae_44", X = "_toggle_spoae_44", Y = "_input_spoae_90", Z = "_thumb_spoae_101", $ = "_track_spoae_115", a = {
|
|
211
|
+
toggle__label: W,
|
|
212
|
+
toggle: X,
|
|
203
213
|
"toggle__toggle-el-wrapper": "_toggle__toggle-el-wrapper_spoae_86",
|
|
204
|
-
input:
|
|
205
|
-
thumb:
|
|
206
|
-
track:
|
|
214
|
+
input: Y,
|
|
215
|
+
thumb: Z,
|
|
216
|
+
track: $,
|
|
207
217
|
"toggle--focus-visible": "_toggle--focus-visible_spoae_125",
|
|
208
218
|
"toggle--checked": "_toggle--checked_spoae_129",
|
|
209
219
|
"toggle--disabled": "_toggle--disabled_spoae_142"
|
|
210
|
-
},
|
|
220
|
+
}, le = ({
|
|
211
221
|
label: l,
|
|
212
|
-
checked:
|
|
213
|
-
disabled:
|
|
214
|
-
classNameWrapper:
|
|
215
|
-
classNameInput:
|
|
222
|
+
checked: o,
|
|
223
|
+
disabled: n,
|
|
224
|
+
classNameWrapper: r,
|
|
225
|
+
classNameInput: i,
|
|
216
226
|
"data-testid": g,
|
|
217
|
-
onChange:
|
|
218
|
-
classNameLabel:
|
|
227
|
+
onChange: u,
|
|
228
|
+
classNameLabel: b
|
|
219
229
|
}) => {
|
|
220
|
-
const
|
|
221
|
-
|
|
230
|
+
const m = (d) => {
|
|
231
|
+
u == null || u(d);
|
|
222
232
|
};
|
|
223
|
-
return /* @__PURE__ */
|
|
224
|
-
/* @__PURE__ */
|
|
233
|
+
return /* @__PURE__ */ j("div", { className: T(a.toggle, r), "data-testid": g, children: [
|
|
234
|
+
/* @__PURE__ */ k(
|
|
225
235
|
E,
|
|
226
236
|
{
|
|
227
|
-
checked:
|
|
228
|
-
disabled:
|
|
229
|
-
onChange:
|
|
237
|
+
checked: o === !0,
|
|
238
|
+
disabled: n,
|
|
239
|
+
onChange: m,
|
|
230
240
|
"aria-label": l,
|
|
231
241
|
slotProps: {
|
|
232
|
-
root: (
|
|
233
|
-
className:
|
|
234
|
-
[
|
|
235
|
-
[
|
|
236
|
-
[
|
|
242
|
+
root: (d) => ({
|
|
243
|
+
className: T(a["toggle__toggle-el-wrapper"], {
|
|
244
|
+
[a["toggle--disabled"]]: d.disabled,
|
|
245
|
+
[a["toggle--focus-visible"]]: d.focusVisible,
|
|
246
|
+
[a["toggle--checked"]]: d.checked
|
|
237
247
|
})
|
|
238
248
|
}),
|
|
239
|
-
input: { className:
|
|
240
|
-
thumb: { className:
|
|
241
|
-
track: { className:
|
|
249
|
+
input: { className: T(a.input, i) },
|
|
250
|
+
thumb: { className: a.thumb },
|
|
251
|
+
track: { className: a.track }
|
|
242
252
|
}
|
|
243
253
|
}
|
|
244
254
|
),
|
|
245
|
-
l && /* @__PURE__ */
|
|
255
|
+
l && /* @__PURE__ */ k("label", { className: T(a.toggle__label, b), children: l })
|
|
246
256
|
] });
|
|
247
257
|
};
|
|
248
258
|
export {
|
|
249
|
-
|
|
259
|
+
le as Toggle
|
|
250
260
|
};
|
|
@@ -2,11 +2,11 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
4
|
component: ({ label, checked, disabled, classNameWrapper, classNameInput, "data-testid": dataTestId, onChange, classNameLabel, }: import('react').InputHTMLAttributes<HTMLInputElement> & {
|
|
5
|
-
label?: string
|
|
6
|
-
classNameWrapper?: string
|
|
7
|
-
classNameInput?: string
|
|
8
|
-
classNameLabel?: string
|
|
9
|
-
'data-testid'?: string
|
|
5
|
+
label?: string;
|
|
6
|
+
classNameWrapper?: string;
|
|
7
|
+
classNameInput?: string;
|
|
8
|
+
classNameLabel?: string;
|
|
9
|
+
'data-testid'?: string;
|
|
10
10
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
tags: string[];
|
|
12
12
|
parameters: {
|
|
@@ -6,10 +6,10 @@ import "../Typography/Typography.js";
|
|
|
6
6
|
import "../Input/Input.js";
|
|
7
7
|
import "../Avatar/Avatar.js";
|
|
8
8
|
import "../Button/Button.js";
|
|
9
|
-
import { T as q } from "../../Toggle-
|
|
9
|
+
import { T as q } from "../../Toggle-nnDfpqI1.js";
|
|
10
10
|
import "../Dialog/Dialog.js";
|
|
11
11
|
import "../DatePicker/DatePicker.js";
|
|
12
|
-
import "../../index-
|
|
12
|
+
import "../../index-ew-96uBP.js";
|
|
13
13
|
import "../Draggable/useDraggable.js";
|
|
14
14
|
import "../IconButton/IconButton.js";
|
|
15
15
|
import "../InputSearch/InputSearch.js";
|
|
@@ -8,7 +8,7 @@ declare const meta: {
|
|
|
8
8
|
decorators: ((Story: import('@storybook/core/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
9
9
|
legend?: import('react').ReactNode;
|
|
10
10
|
error?: import('react').ReactNode;
|
|
11
|
-
children: import('react').ReactElement<import('./Toggle.tsx').ToggleGroupItemProps<string | number
|
|
11
|
+
children: Array<import('react').ReactElement<import('./Toggle.tsx').ToggleGroupItemProps<string | number>>>;
|
|
12
12
|
'data-testid'?: string | undefined;
|
|
13
13
|
equalWidth?: boolean | undefined;
|
|
14
14
|
classNameForOptions?: string | undefined;
|