@pismo/marola 2.1.64 → 2.1.66
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/Icon/types.d.ts +1 -1
- 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/dist/utils/iconsList.js +118 -112
- 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,70 +1,72 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as b } from "react/jsx-runtime";
|
|
2
2
|
import * as P from "react";
|
|
3
|
-
import { forwardRef as
|
|
3
|
+
import { forwardRef as g } from "react";
|
|
4
4
|
import { c as y } from "../../clsx-OuTLNxxd.js";
|
|
5
|
-
import { u as
|
|
6
|
-
import { g as N, a as
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as
|
|
9
|
-
const
|
|
10
|
-
function
|
|
11
|
-
return N(
|
|
5
|
+
import { u as v, s as C } from "../../Tabs.module-DyJgAZt8.js";
|
|
6
|
+
import { g as N, a as x, u as w, b as O, c as E, d as I, P as e } from "../../ClassNameConfigurator-CVRWfyIa.js";
|
|
7
|
+
import { u as S } from "../../useId-CK6Kn3Tn.js";
|
|
8
|
+
import { u as U } from "../../useCompoundItem-B7Eo_qZk.js";
|
|
9
|
+
const T = "TabPanel";
|
|
10
|
+
function _(o) {
|
|
11
|
+
return N(T, o);
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
function
|
|
15
|
-
return
|
|
13
|
+
x(T, ["root", "hidden"]);
|
|
14
|
+
function M(o) {
|
|
15
|
+
return o.size;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function V(o) {
|
|
18
18
|
const {
|
|
19
|
-
value:
|
|
19
|
+
value: t,
|
|
20
20
|
id: s,
|
|
21
|
-
rootRef:
|
|
22
|
-
} =
|
|
23
|
-
if (
|
|
21
|
+
rootRef: a
|
|
22
|
+
} = o, n = v();
|
|
23
|
+
if (n === null)
|
|
24
24
|
throw new Error("No TabContext provided");
|
|
25
25
|
const {
|
|
26
|
-
value:
|
|
27
|
-
getTabId:
|
|
28
|
-
} =
|
|
26
|
+
value: p,
|
|
27
|
+
getTabId: f
|
|
28
|
+
} = n, r = S(s), l = P.useRef(null), c = w(l, a), u = P.useMemo(() => ({
|
|
29
29
|
id: r,
|
|
30
30
|
ref: l
|
|
31
31
|
}), [r]), {
|
|
32
32
|
id: d
|
|
33
|
-
} =
|
|
33
|
+
} = U(t ?? M, u), i = d !== p, m = d !== void 0 ? f(d) : void 0;
|
|
34
34
|
return {
|
|
35
35
|
hidden: i,
|
|
36
|
-
getRootProps: (
|
|
37
|
-
"aria-labelledby":
|
|
36
|
+
getRootProps: (h = {}) => ({
|
|
37
|
+
"aria-labelledby": m ?? void 0,
|
|
38
38
|
hidden: i,
|
|
39
|
-
id: r ?? void 0
|
|
40
|
-
|
|
39
|
+
id: r ?? void 0,
|
|
40
|
+
...h,
|
|
41
41
|
ref: c
|
|
42
42
|
}),
|
|
43
43
|
rootRef: c
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
const
|
|
46
|
+
const j = (o) => {
|
|
47
47
|
const {
|
|
48
|
-
hidden:
|
|
49
|
-
} =
|
|
50
|
-
return
|
|
51
|
-
root: ["root",
|
|
52
|
-
},
|
|
53
|
-
}, R = /* @__PURE__ */ P.forwardRef(function(
|
|
54
|
-
var n;
|
|
48
|
+
hidden: t
|
|
49
|
+
} = o;
|
|
50
|
+
return E({
|
|
51
|
+
root: ["root", t && "hidden"]
|
|
52
|
+
}, I(_));
|
|
53
|
+
}, R = /* @__PURE__ */ P.forwardRef(function(t, s) {
|
|
55
54
|
const {
|
|
56
55
|
children: a,
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
value: n,
|
|
57
|
+
slotProps: p = {},
|
|
58
|
+
slots: f = {},
|
|
59
|
+
...r
|
|
60
|
+
} = t, {
|
|
60
61
|
hidden: l,
|
|
61
62
|
getRootProps: c
|
|
62
|
-
} =
|
|
63
|
+
} = V(t), u = {
|
|
64
|
+
...t,
|
|
63
65
|
hidden: l
|
|
64
|
-
}
|
|
66
|
+
}, d = j(u), i = f.root ?? "div", m = O({
|
|
65
67
|
elementType: i,
|
|
66
68
|
getSlotProps: c,
|
|
67
|
-
externalSlotProps:
|
|
69
|
+
externalSlotProps: p.root,
|
|
68
70
|
externalForwardedProps: r,
|
|
69
71
|
additionalProps: {
|
|
70
72
|
role: "tabpanel",
|
|
@@ -73,9 +75,10 @@ const $ = ["children", "value", "slotProps", "slots"], k = (t) => {
|
|
|
73
75
|
ownerState: u,
|
|
74
76
|
className: d.root
|
|
75
77
|
});
|
|
76
|
-
return /* @__PURE__ */
|
|
78
|
+
return /* @__PURE__ */ b(i, {
|
|
79
|
+
...m,
|
|
77
80
|
children: !l && a
|
|
78
|
-
})
|
|
81
|
+
});
|
|
79
82
|
});
|
|
80
83
|
process.env.NODE_ENV !== "production" && (R.propTypes = {
|
|
81
84
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -85,45 +88,45 @@ process.env.NODE_ENV !== "production" && (R.propTypes = {
|
|
|
85
88
|
/**
|
|
86
89
|
* The content of the component.
|
|
87
90
|
*/
|
|
88
|
-
children:
|
|
91
|
+
children: e.node,
|
|
89
92
|
/**
|
|
90
93
|
* @ignore
|
|
91
94
|
*/
|
|
92
|
-
className:
|
|
95
|
+
className: e.string,
|
|
93
96
|
/**
|
|
94
97
|
* The props used for each slot inside the TabPanel.
|
|
95
98
|
* @default {}
|
|
96
99
|
*/
|
|
97
|
-
slotProps:
|
|
98
|
-
root:
|
|
100
|
+
slotProps: e.shape({
|
|
101
|
+
root: e.oneOfType([e.func, e.object])
|
|
99
102
|
}),
|
|
100
103
|
/**
|
|
101
104
|
* The components used for each slot inside the TabPanel.
|
|
102
105
|
* Either a string to use a HTML element or a component.
|
|
103
106
|
* @default {}
|
|
104
107
|
*/
|
|
105
|
-
slots:
|
|
106
|
-
root:
|
|
108
|
+
slots: e.shape({
|
|
109
|
+
root: e.elementType
|
|
107
110
|
}),
|
|
108
111
|
/**
|
|
109
112
|
* The value of the TabPanel. It will be shown when the Tab with the corresponding value is selected.
|
|
110
113
|
* If not provided, it will fall back to the index of the panel.
|
|
111
114
|
* It is recommended to explicitly provide it, as it's required for the tab panel to be rendered on the server.
|
|
112
115
|
*/
|
|
113
|
-
value:
|
|
116
|
+
value: e.oneOfType([e.number, e.string])
|
|
114
117
|
});
|
|
115
|
-
const
|
|
116
|
-
({ children:
|
|
118
|
+
const B = g(
|
|
119
|
+
({ children: o, value: t, className: s, "data-testid": a }, n) => /* @__PURE__ */ b(
|
|
117
120
|
R,
|
|
118
121
|
{
|
|
119
122
|
className: y(C["tabs__tab-panel"], s),
|
|
120
|
-
value:
|
|
121
|
-
"data-testid":
|
|
122
|
-
ref:
|
|
123
|
-
children:
|
|
123
|
+
value: t,
|
|
124
|
+
"data-testid": a,
|
|
125
|
+
ref: n,
|
|
126
|
+
children: o
|
|
124
127
|
}
|
|
125
128
|
)
|
|
126
129
|
);
|
|
127
130
|
export {
|
|
128
|
-
|
|
131
|
+
B as TabPanel
|
|
129
132
|
};
|