@pismo/marola 1.1.22 → 2.0.0
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-BAljjMv3.js → Button-cCziLrIy.js} +2 -2
- package/dist/{ClickAwayListener-DbEYZpyh.js → ClickAwayListener-CUayzVlD.js} +3 -3
- package/dist/Dialog.module-BtKUNFVu.js +13 -0
- package/dist/{Group-BKXO7GzU.js → Group-Cyc1W1kV.js} +1 -1
- package/dist/{Popup-Ck3XlWMq.js → Popup-C7AXLoP0.js} +5 -7
- package/dist/{Portal-oY3enyAm.js → Portal-CYV5TK_i.js} +2 -2
- package/dist/SelectButton-k61YYjLu.js +58 -0
- package/dist/Tabs.module-DyJgAZt8.js +28 -0
- package/dist/{Toggle-Bkf8bKbA.js → Toggle-DEVeyo2f.js} +3 -3
- package/dist/assets/Tabs.css +1 -1
- package/dist/assets/Tooltip.css +1 -1
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/{combineHooksSlotProps-C-zYvfnF.js → combineHooksSlotProps-BCXoX9Nx.js} +20 -21
- package/dist/components/Adornment/Adornment.d.ts +2 -3
- package/dist/components/Adornment/Adornment.js +1 -1
- package/dist/components/Adornment/Adornment.stories.d.ts +0 -1
- package/dist/components/Advice/Advice.d.ts +2 -3
- package/dist/components/Advice/Advice.js +1 -1
- package/dist/components/Advice/Advice.stories.d.ts +0 -1
- package/dist/components/Alert/Alert.d.ts +0 -1
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Alert/Alert.stories.d.ts +0 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +1 -2
- package/dist/components/Autocomplete/Autocomplete.js +282 -298
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +0 -1
- package/dist/components/Avatar/Avatar.d.ts +0 -1
- package/dist/components/Avatar/Avatar.js +1 -1
- package/dist/components/Avatar/Avatar.stories.d.ts +0 -1
- package/dist/components/Badge/Badge.d.ts +0 -1
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/Badge/Badge.stories.d.ts +1 -2
- package/dist/components/BankCard/BankCard.js +1 -1
- package/dist/components/BankCard/BankCard.stories.d.ts +0 -1
- package/dist/components/Button/Button.d.ts +2 -3
- package/dist/components/Button/Button.js +2 -2
- package/dist/components/Button/Button.stories.d.ts +1 -2
- package/dist/components/Calendar/Calendar.js +1 -1
- package/dist/components/Calendar/Calendar.stories.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checkbox/Checkbox.stories.d.ts +0 -1
- package/dist/components/Chip/Chip.d.ts +1 -2
- package/dist/components/Chip/Chip.js +4 -4
- package/dist/components/Chip/Chip.stories.d.ts +0 -1
- package/dist/components/ConfirmationDialog/ConfirmationDialog.d.ts +0 -1
- package/dist/components/ConfirmationDialog/ConfirmationDialog.stories.d.ts +1 -2
- package/dist/components/Description/Description.d.ts +0 -1
- package/dist/components/Description/Description.js +27 -42
- package/dist/components/Description/Description.stories.d.ts +0 -1
- package/dist/components/Dialog/Actions.d.ts +0 -1
- package/dist/components/Dialog/Actions.js +1 -1
- package/dist/components/Dialog/Backdrop.d.ts +0 -1
- package/dist/components/Dialog/Backdrop.js +2 -2
- package/dist/components/Dialog/CloseIconButton.js +2 -2
- package/dist/components/Dialog/Content.d.ts +0 -1
- package/dist/components/Dialog/Dialog.d.ts +5 -6
- package/dist/components/Dialog/Dialog.js +6 -6
- package/dist/components/Dialog/Dialog.stories.d.ts +0 -1
- package/dist/components/Dialog/DialogTitle.d.ts +1 -2
- package/dist/components/Dialog/DialogTitle.js +1 -1
- package/dist/components/EllipsisTooltip/EllipsisTooltip.d.ts +0 -1
- package/dist/components/EllipsisTooltip/EllipsisTooltip.js +1 -1
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +9 -5
- package/dist/components/Icon/Icon.d.ts +0 -1
- package/dist/components/Icon/Icon.stories.d.ts +1 -2
- package/dist/components/IconButton/Icon.stories.d.ts +0 -1
- package/dist/components/IconButton/IconButton.d.ts +1 -2
- package/dist/components/IconButton/IconButton.js +2 -2
- package/dist/components/Input/Input.d.ts +0 -1
- package/dist/components/Input/Input.js +259 -274
- package/dist/components/Input/Input.stories.d.ts +0 -1
- package/dist/components/InputSearch/InputSearch.d.ts +0 -1
- package/dist/components/InputSearch/InputSearch.js +1 -1
- package/dist/components/InputSearch/InputSearch.stories.d.ts +0 -1
- package/dist/components/LoadingSpinner/LoadingSpinner.js +1 -1
- package/dist/components/LoadingSpinner/LoadingSpinner.stories.d.ts +0 -1
- package/dist/components/PageHeader/PageHeader.d.ts +1 -2
- package/dist/components/PageHeader/PageHeader.js +65 -80
- package/dist/components/PageHeader/PageHeader.stories.d.ts +0 -1
- package/dist/components/Pagination/Pagination.d.ts +0 -1
- package/dist/components/Pagination/Pagination.js +43 -58
- package/dist/components/Pagination/Pagination.stories.d.ts +1 -2
- package/dist/components/Popover/Popover.d.ts +0 -1
- package/dist/components/Popover/Popover.js +3 -3
- package/dist/components/Popover/Popover.stories.d.ts +1 -2
- package/dist/components/RadioButton/RadioButton.js +1 -1
- package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -1
- package/dist/components/ResultWithChips/ResultWithChips.d.ts +0 -1
- package/dist/components/ResultWithChips/ResultWithChips.js +1 -1
- package/dist/components/RowItem/RowItem.d.ts +2 -3
- package/dist/components/RowItem/RowItem.js +3 -3
- package/dist/components/RowItem/RowItem.stories.d.ts +0 -1
- package/dist/components/Select/Select.d.ts +0 -1
- package/dist/components/Select/Select.js +21 -21
- package/dist/components/Select/Select.stories.d.ts +1 -2
- package/dist/components/Select/SelectButton.d.ts +0 -1
- package/dist/components/Select/SelectButton.js +2 -2
- package/dist/components/Skeleton/Skeleton.js +1 -1
- package/dist/components/Skeleton/Skeleton.stories.d.ts +0 -1
- package/dist/components/Skeleton/SkeletonCircle.stories.d.ts +0 -1
- package/dist/components/Skeleton/SkeletonTable.stories.d.ts +0 -1
- package/dist/components/Snackbar/Snackbar.d.ts +0 -1
- package/dist/components/Snackbar/Snackbar.js +7 -8
- package/dist/components/Snackbar/Snackbar.stories.d.ts +1 -2
- package/dist/components/SortTooltip/SortTooltip.d.ts +0 -1
- package/dist/components/SortTooltip/SortTooltip.js +34 -51
- package/dist/components/Stepper/Stepper.d.ts +0 -1
- package/dist/components/Stepper/Stepper.js +19 -34
- package/dist/components/Stepper/Stepper.stories.d.ts +1 -2
- package/dist/components/StepperNavigator/StepperNavigator.js +1 -1
- package/dist/components/StepperNavigator/StepperNavigator.stories.d.ts +0 -1
- package/dist/components/Table/Table.d.ts +3 -4
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/Table.stories.d.ts +0 -1
- package/dist/components/Table/TableContext.d.ts +2 -3
- package/dist/components/Table/TableContext.js +4 -4
- package/dist/components/Table/_Table.TBody.stories.d.ts +1 -2
- package/dist/components/Table/_Table.THead.stories.d.ts +1 -2
- package/dist/components/Table/_Table.Td.stories.d.ts +1 -2
- package/dist/components/Table/_Table.Th.stories.d.ts +1 -2
- package/dist/components/Table/_Table.Tr.stories.d.ts +1 -2
- package/dist/components/Tabs/Tab.d.ts +4 -2
- package/dist/components/Tabs/Tab.js +102 -100
- package/dist/components/Tabs/Tab.stories.d.ts +3 -2
- package/dist/components/Tabs/TabPanel.d.ts +0 -1
- package/dist/components/Tabs/TabPanel.js +3 -3
- package/dist/components/Tabs/TabPanel.stories.d.ts +1 -2
- package/dist/components/Tabs/Tabs.d.ts +0 -1
- package/dist/components/Tabs/Tabs.js +5 -5
- package/dist/components/Tabs/Tabs.stories.d.ts +2 -2
- package/dist/components/Tag/Tag.d.ts +0 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Tag/Tag.stories.d.ts +1 -2
- package/dist/components/TextDisplay/TextDisplay.d.ts +1 -2
- package/dist/components/TextDisplay/TextDisplay.js +1 -1
- package/dist/components/TextDisplay/TextDisplay.stories.d.ts +0 -1
- package/dist/components/ToastCard/ToastCard.d.ts +0 -1
- package/dist/components/ToastCard/ToastCard.js +1 -1
- package/dist/components/ToastCard/ToastCard.stories.d.ts +0 -1
- package/dist/components/Toggle/Toggle.d.ts +0 -1
- package/dist/components/Toggle/Toggle.js +102 -117
- package/dist/components/Toggle/Toggle.stories.d.ts +0 -1
- package/dist/components/ToggleGroup/Group.d.ts +1 -2
- package/dist/components/ToggleGroup/Group.js +2 -2
- package/dist/components/ToggleGroup/Toggle.js +3 -3
- package/dist/components/ToggleGroup/ToggleGroup.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +2 -3
- package/dist/components/Tooltip/Tooltip.d.ts +13 -9
- package/dist/components/Tooltip/Tooltip.js +146 -105
- package/dist/components/Tooltip/Tooltip.stories.d.ts +18 -10
- package/dist/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/dist/components/TransactionRow/TransactionRow.d.ts +0 -1
- package/dist/components/TransactionRow/TransactionRow.stories.d.ts +0 -1
- package/dist/components/Typography/Typography.d.ts +0 -1
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/Typography/Typography.stories.d.ts +0 -1
- package/dist/contexts/SnackbarProvider/SnackbarProvider.d.ts +0 -1
- package/dist/contexts/SnackbarProvider/SnackbarProvider.js +5 -5
- package/dist/contexts/SnackbarProvider/SnackbarProvider.stories.d.ts +1 -2
- package/dist/{index-bQFToy-I.js → index-CATDT7fJ.js} +7927 -8368
- package/dist/main.js +2 -2
- package/dist/{ownerDocument-YGhwAnr1.js → ownerDocument-CAHSRRik.js} +1 -1
- package/dist/{useButton-DcihopJG.js → useButton-eF8MXAli.js} +1 -1
- package/dist/{useList-B9C55YB7.js → useList-CPY2roI7.js} +3 -4
- package/dist/{useSlotProps-C_I1kEHr.js → useSlotProps-DSnfx453.js} +123 -126
- package/dist/utils/inputNumberAsText.d.ts +0 -1
- package/dist/utils/inputNumberAsText.js +2 -4
- package/dist/utils/styleStrings.d.ts +0 -1
- package/package.json +1 -1
- package/dist/Dialog.module-CE1Q-5tJ.js +0 -28
- package/dist/SelectButton-DbiTJagF.js +0 -74
- package/dist/Tabs.module-ia-imLti.js +0 -25
- package/dist/clsx-DB4S2d7J.js +0 -22
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as m, jsxs as Y } from "react/jsx-runtime";
|
|
2
2
|
import * as r from "react";
|
|
3
|
-
import { createContext as We,
|
|
4
|
-
import { c as K } from "../../clsx-
|
|
3
|
+
import { createContext as We, useId as Je, useContext as Ge } from "react";
|
|
4
|
+
import { c as K } from "../../clsx-OuTLNxxd.js";
|
|
5
5
|
import { Checkbox as Qe } from "../Checkbox/Checkbox.js";
|
|
6
6
|
import { Icon as Xe } from "../Icon/Icon.js";
|
|
7
7
|
import { Typography as _e } from "../Typography/Typography.js";
|
|
8
|
-
import { s as y, S as Ye } from "../../SelectButton-
|
|
9
|
-
import { g as we, a as Ie, u as ee, f as se, b as g,
|
|
10
|
-
import {
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
8
|
+
import { s as y, S as Ye } from "../../SelectButton-k61YYjLu.js";
|
|
9
|
+
import { g as we, a as Ie, u as ee, f as se, b as g, _ as Ne, c as re, d as ke, e as Me, P as l } from "../../useSlotProps-DSnfx453.js";
|
|
10
|
+
import { P as Ze } from "../../Popup-C7AXLoP0.js";
|
|
11
|
+
import { u as et, c as ae, a as Se, L as Z } from "../../combineHooksSlotProps-BCXoX9Nx.js";
|
|
12
|
+
import { u as tt, a as ot, C as nt } from "../../useCompoundItem-B7Eo_qZk.js";
|
|
13
|
+
import { m as Re, h as lt, l as st, u as rt } from "../../useList-CPY2roI7.js";
|
|
14
|
+
import { u as Te } from "../../useId-BW-oWmul.js";
|
|
15
|
+
import { u as Le } from "../../useButton-eF8MXAli.js";
|
|
16
16
|
import { u as at } from "../../useEnhancedEffect-CJGo-L3B.js";
|
|
17
17
|
const it = {
|
|
18
18
|
border: 0,
|
|
@@ -40,15 +40,15 @@ function ct(n) {
|
|
|
40
40
|
getRootProps: p,
|
|
41
41
|
highlighted: f,
|
|
42
42
|
selected: d
|
|
43
|
-
} =
|
|
43
|
+
} = et({
|
|
44
44
|
item: o
|
|
45
45
|
}), {
|
|
46
46
|
getRootProps: _,
|
|
47
47
|
rootRef: k
|
|
48
|
-
} =
|
|
48
|
+
} = Le({
|
|
49
49
|
disabled: c,
|
|
50
50
|
focusableWhenDisabled: !0
|
|
51
|
-
}), h =
|
|
51
|
+
}), h = Te(u), S = r.useRef(null), R = r.useMemo(() => ({
|
|
52
52
|
disabled: c,
|
|
53
53
|
label: i,
|
|
54
54
|
value: o,
|
|
@@ -56,7 +56,7 @@ function ct(n) {
|
|
|
56
56
|
id: h
|
|
57
57
|
}), [c, i, o, h]), {
|
|
58
58
|
index: I
|
|
59
|
-
} =
|
|
59
|
+
} = tt(o, R), O = ee(s, S, k), x = (b) => (C) => {
|
|
60
60
|
var P;
|
|
61
61
|
(P = b.onKeyDown) == null || P.call(b, C), !C.defaultMuiPrevented && [" ", "Enter"].includes(C.key) && (C.defaultMuiPrevented = !0);
|
|
62
62
|
}, A = (b = {}) => ({
|
|
@@ -299,7 +299,7 @@ function ht(n) {
|
|
|
299
299
|
getSerializedValue: A = gt,
|
|
300
300
|
value: b,
|
|
301
301
|
componentName: C = "useSelect"
|
|
302
|
-
} = n, P = r.useRef(null), B = ee(i, P), V = r.useRef(null), D =
|
|
302
|
+
} = n, P = r.useRef(null), B = ee(i, P), V = r.useRef(null), D = Te(p);
|
|
303
303
|
let w;
|
|
304
304
|
b === void 0 && s === void 0 ? w = [] : s !== void 0 && (d ? w = s : w = s == null ? [] : [s]);
|
|
305
305
|
const H = r.useMemo(() => {
|
|
@@ -308,7 +308,7 @@ function ht(n) {
|
|
|
308
308
|
}, [b, d]), {
|
|
309
309
|
subitems: M,
|
|
310
310
|
contextValue: j
|
|
311
|
-
} =
|
|
311
|
+
} = ot(), T = r.useMemo(() => O != null ? new Map(O.map((e, t) => [e.value, {
|
|
312
312
|
value: e.value,
|
|
313
313
|
label: e.label,
|
|
314
314
|
disabled: e.disabled,
|
|
@@ -319,7 +319,7 @@ function ht(n) {
|
|
|
319
319
|
active: ce,
|
|
320
320
|
focusVisible: de,
|
|
321
321
|
rootRef: z
|
|
322
|
-
} =
|
|
322
|
+
} = Le({
|
|
323
323
|
disabled: u,
|
|
324
324
|
rootRef: B
|
|
325
325
|
}), U = r.useMemo(() => Array.from(T.keys()), [T]), N = r.useCallback((e) => {
|
|
@@ -525,7 +525,7 @@ function xt(n) {
|
|
|
525
525
|
registerItem: p,
|
|
526
526
|
totalSubitemCount: f
|
|
527
527
|
}), [p, s, f]);
|
|
528
|
-
return /* @__PURE__ */ m(
|
|
528
|
+
return /* @__PURE__ */ m(nt.Provider, {
|
|
529
529
|
value: _,
|
|
530
530
|
children: /* @__PURE__ */ m(Se.Provider, {
|
|
531
531
|
value: d,
|
|
@@ -672,7 +672,7 @@ const $e = /* @__PURE__ */ r.forwardRef(function(o, i) {
|
|
|
672
672
|
children: ""
|
|
673
673
|
}))
|
|
674
674
|
)
|
|
675
|
-
})), ce && /* @__PURE__ */ m(
|
|
675
|
+
})), ce && /* @__PURE__ */ m(Ze, g({
|
|
676
676
|
slots: {
|
|
677
677
|
root: ne
|
|
678
678
|
}
|
|
@@ -815,7 +815,7 @@ process.env.NODE_ENV !== "production" && ($e.propTypes = {
|
|
|
815
815
|
*/
|
|
816
816
|
value: l.any
|
|
817
817
|
});
|
|
818
|
-
const He = We({}), Rt = () =>
|
|
818
|
+
const He = We({}), Rt = () => Ge(He), _t = (n) => {
|
|
819
819
|
const { children: o, icon: i, className: c, ...s } = n, { multiple: u, selectedValue: p = [] } = Rt();
|
|
820
820
|
return /* @__PURE__ */ Y(
|
|
821
821
|
Ee,
|
|
@@ -862,7 +862,7 @@ const He = We({}), Rt = () => Je(He), _t = (n) => {
|
|
|
862
862
|
...B
|
|
863
863
|
} = n, V = (H, M) => {
|
|
864
864
|
H && (s == null || s(M, H));
|
|
865
|
-
}, D =
|
|
865
|
+
}, D = Je(), w = c || `select_${D}`;
|
|
866
866
|
return /* @__PURE__ */ Y(
|
|
867
867
|
"div",
|
|
868
868
|
{
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import "../../clsx-
|
|
3
|
+
import "../../clsx-OuTLNxxd.js";
|
|
4
4
|
import "../Icon/Icon.js";
|
|
5
5
|
import "../Typography/Typography.js";
|
|
6
|
-
import { S } from "../../SelectButton-
|
|
6
|
+
import { S } from "../../SelectButton-k61YYjLu.js";
|
|
7
7
|
export {
|
|
8
8
|
S as SelectButton
|
|
9
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, jsxs as N } from "react/jsx-runtime";
|
|
2
|
-
import { c as r } from "../../clsx-
|
|
2
|
+
import { c as r } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import '../../assets/Skeleton.css';const u = "_skeleton_mst8q_1", b = "_skeletonLoading_mst8q_1", o = {
|
|
4
4
|
skeleton: u,
|
|
5
5
|
skeletonLoading: b,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as h, jsxs as Y } from "react/jsx-runtime";
|
|
2
2
|
import * as N from "react";
|
|
3
3
|
import S, { useState as V, useRef as X } from "react";
|
|
4
|
-
import { c as R } from "../../clsx-
|
|
4
|
+
import { c as R } from "../../clsx-OuTLNxxd.js";
|
|
5
5
|
import { Icon as K } from "../Icon/Icon.js";
|
|
6
6
|
import { Text as $ } from "../Typography/Typography.js";
|
|
7
|
-
import { g as z, a as J, b as D, f as H, _ as j, c as U,
|
|
7
|
+
import { g as z, a as J, b as D, f as H, _ as j, c as U, d as Q, e as Z, P as n } from "../../useSlotProps-DSnfx453.js";
|
|
8
8
|
import { u as ee } from "../../useTimeout-DxF9kiZL.js";
|
|
9
9
|
import { u as I } from "../../useEventCallback-BAQJJ3ye.js";
|
|
10
|
-
import { C as B } from "../../ClickAwayListener-
|
|
11
|
-
import { R as P } from "../../index-
|
|
10
|
+
import { C as B } from "../../ClickAwayListener-CUayzVlD.js";
|
|
11
|
+
import { R as P } from "../../index-CATDT7fJ.js";
|
|
12
12
|
import '../../assets/Snackbar.css';const W = "Snackbar";
|
|
13
13
|
function te(u) {
|
|
14
14
|
return z(W, u);
|
|
@@ -273,10 +273,9 @@ var ie = function(s) {
|
|
|
273
273
|
this.performEnter(t);
|
|
274
274
|
} else
|
|
275
275
|
this.performExit();
|
|
276
|
-
else
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
});
|
|
276
|
+
else this.props.unmountOnExit && this.state.status === v && this.setState({
|
|
277
|
+
status: C
|
|
278
|
+
});
|
|
280
279
|
}, i.performEnter = function(t) {
|
|
281
280
|
var e = this, o = this.props.enter, a = this.context ? this.context.isMounting : t, d = this.props.nodeRef ? [a] : [P.findDOMNode(this), a], m = d[0], p = d[1], E = this.getTimeouts(), b = a ? E.appear : E.enter;
|
|
282
281
|
if (!t && !o || F.disabled) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { SnackbarProps } from './Snackbar';
|
|
2
1
|
import { StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
2
|
+
import { SnackbarProps } from './Snackbar';
|
|
4
3
|
declare const meta: {
|
|
5
4
|
title: string;
|
|
6
5
|
component: ({ snackbarMessage, variant, autoHideDuration, open, onClose, onClosed, classNameWrapper, "data-testid": dataTestId, }: SnackbarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,26 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { Tooltip as
|
|
1
|
+
import { jsx as o, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { c as f } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import { Tooltip as H } from "../Tooltip/Tooltip.js";
|
|
4
4
|
import * as t from "react";
|
|
5
|
-
import '../../assets/SortTooltip.css';const
|
|
6
|
-
"u-typography-h1": "_u-typography-h1_3hhsf_1",
|
|
7
|
-
"u-typography-h2": "_u-typography-h2_3hhsf_8",
|
|
8
|
-
"u-typography-h3": "_u-typography-h3_3hhsf_15",
|
|
9
|
-
"u-typography-h4": "_u-typography-h4_3hhsf_22",
|
|
10
|
-
"u-typography-h5": "_u-typography-h5_3hhsf_29",
|
|
11
|
-
"u-typography-h6": "_u-typography-h6_3hhsf_36",
|
|
12
|
-
"u-typography-base": "_u-typography-base_3hhsf_43",
|
|
5
|
+
import '../../assets/SortTooltip.css';const g = (e) => /* @__PURE__ */ t.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ t.createElement("path", { d: "M4.73768 14.6906C4.35893 15.105 3.64205 15.105 3.26299 14.6906L0.541112 11.6878C0.167987 11.28 0.195487 10.6469 0.602643 10.2731C1.00952 9.89969 1.64233 9.92812 2.01577 10.3348L3.00017 11.4406V2.00094C3.00017 1.44781 3.44799 1 4.00017 1C4.55236 1 5.00017 1.44781 5.00017 2.00094V11.4384L6.01267 10.3325C6.3708 9.94219 7.00236 9.88281 7.4258 10.2708C7.83299 10.6443 7.86018 11.2777 7.48733 11.6855L4.73768 14.6906Z", fill: "#1897F3" }), /* @__PURE__ */ t.createElement("path", { opacity: 0.4, d: "M14.0001 13H12.4141L14.7073 10.7069C14.9934 10.4208 15.0788 9.99098 14.9241 9.61691C14.7693 9.24285 14.4032 9.00004 13.972 9.00004H9.97196C9.44696 9.00004 9.00008 9.44691 9.00008 10C9.00008 10.5532 9.4479 11 10.0001 11H11.586L9.2929 13.2932C9.00677 13.5793 8.92133 14.0091 9.07608 14.3832C9.23083 14.7572 9.59696 15 9.97196 15H13.9438C14.5532 15 15.0001 14.5532 15.0001 14C15.0001 13.4469 14.5532 13 14.0001 13ZM15.3938 6.54066L12.8941 1.53754C12.5554 0.855977 11.4441 0.855977 11.1054 1.53754L8.60633 6.54066C8.35927 7.03785 8.55946 7.64191 9.05352 7.89035C9.54946 8.13791 10.1485 7.93651 10.3951 7.44035L10.6186 6.99066H13.3821L13.6056 7.44035C13.7986 7.82879 14.3547 8.18629 14.9472 7.89035C15.4407 7.64379 15.6407 7.03754 15.3938 6.54066ZM11.4938 5.23129L12.0001 4.20941L12.507 5.2291H11.4938V5.23129Z", fill: "#1897F3" })), u = (e) => /* @__PURE__ */ t.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ t.createElement("path", { d: "M0.512792 11.6594C0.139667 11.2516 0.167167 10.6184 0.574323 10.2447C0.766229 10.0688 1.00839 9.98175 1.24964 9.98175C1.52063 9.98175 1.79026 10.0912 1.98745 10.3064L2.99998 11.4406V2.00094C2.99998 1.44781 3.44779 1 3.99998 1C4.55217 1 4.99998 1.44781 4.99998 2.00094V11.4384L6.01248 10.3325C6.38748 9.92812 7.01873 9.89687 7.42498 10.2719C7.83216 10.6453 7.85935 11.2787 7.48651 11.6866L4.76463 14.6894C4.38588 15.1037 3.66901 15.1037 3.28995 14.6894L0.512792 11.6594Z", fill: "#1897F3" }), /* @__PURE__ */ t.createElement("path", { opacity: 0.4, d: "M10.0002 3H11.5862L9.29303 5.29313C9.00691 5.57925 8.92147 6.00906 9.07622 6.38313C9.23097 6.75719 9.59591 7 9.99997 7H13.9718C14.5533 6.97188 15.0002 6.55313 15.0002 6C15.0002 5.44688 14.5524 5 14.0002 5H12.4143L14.7074 2.70688C14.9935 2.42075 15.079 1.99094 14.9242 1.61688C14.7695 1.24281 14.4033 1 13.9721 1H10.0002C9.44709 1 9.00022 1.44719 9.00022 2C9.00022 2.55281 9.44709 3 10.0002 3ZM15.394 13.5406L12.8943 8.5375C12.5555 7.85594 11.4443 7.85594 11.1055 8.5375L8.60584 13.5406C8.35878 14.0378 8.55897 14.6419 9.05303 14.8903C9.54897 15.1379 10.148 14.9365 10.3946 14.4403L10.6182 13.9906H13.3816L13.6052 14.4403C13.7981 14.8288 14.3542 15.1863 14.9467 14.8903C15.4408 14.6438 15.6408 14.0375 15.394 13.5406ZM11.494 12.2313L12.0002 11.2094L12.5071 12.2291H11.494V12.2313Z", fill: "#1897F3" })), l = {
|
|
13
6
|
"sort-tooltip": "_sort-tooltip_3hhsf_43",
|
|
14
|
-
"u-typography-base--xxl": "_u-typography-base--xxl_3hhsf_49",
|
|
15
|
-
"u-typography-base--xl": "_u-typography-base--xl_3hhsf_53",
|
|
16
|
-
"u-typography-base--lg": "_u-typography-base--lg_3hhsf_57",
|
|
17
|
-
"u-typography-base--sm": "_u-typography-base--sm_3hhsf_61",
|
|
18
|
-
"u-typography-base--bold": "_u-typography-base--bold_3hhsf_65",
|
|
19
|
-
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_3hhsf_68",
|
|
20
|
-
"u-typography-base--underlined": "_u-typography-base--underlined_3hhsf_71",
|
|
21
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_3hhsf_74",
|
|
22
7
|
"button--selected": "_button--selected_3hhsf_95"
|
|
23
|
-
},
|
|
8
|
+
}, b = {
|
|
24
9
|
pt: {
|
|
25
10
|
asc: "Ascendente",
|
|
26
11
|
desc: "Descendente"
|
|
@@ -29,64 +14,62 @@ import '../../assets/SortTooltip.css';const f = (e) => /* @__PURE__ */ t.createE
|
|
|
29
14
|
asc: "Sort ascending",
|
|
30
15
|
desc: "Sort descending"
|
|
31
16
|
}
|
|
32
|
-
},
|
|
17
|
+
}, E = ({
|
|
33
18
|
children: e,
|
|
34
|
-
className:
|
|
35
|
-
language:
|
|
36
|
-
onClose:
|
|
37
|
-
onSort:
|
|
38
|
-
show:
|
|
39
|
-
sortType:
|
|
40
|
-
t:
|
|
41
|
-
...
|
|
19
|
+
className: r,
|
|
20
|
+
language: a,
|
|
21
|
+
onClose: s,
|
|
22
|
+
onSort: C,
|
|
23
|
+
show: L,
|
|
24
|
+
sortType: c,
|
|
25
|
+
t: d,
|
|
26
|
+
...p
|
|
42
27
|
}) => {
|
|
43
|
-
const
|
|
44
|
-
return /* @__PURE__ */
|
|
45
|
-
|
|
28
|
+
const h = f(l["sort-tooltip"], r), m = d || b[a || "en"], i = (w) => m[w];
|
|
29
|
+
return /* @__PURE__ */ o(
|
|
30
|
+
H,
|
|
46
31
|
{
|
|
47
|
-
className:
|
|
48
|
-
onClose:
|
|
49
|
-
open:
|
|
50
|
-
theme: "white",
|
|
51
|
-
padding: "normal",
|
|
32
|
+
className: h,
|
|
33
|
+
onClose: s,
|
|
34
|
+
open: L,
|
|
52
35
|
position: "bottom-start",
|
|
53
36
|
disableHoverListener: !0,
|
|
54
|
-
|
|
55
|
-
/* @__PURE__ */
|
|
37
|
+
content: /* @__PURE__ */ n("ul", { children: [
|
|
38
|
+
/* @__PURE__ */ o("li", { children: /* @__PURE__ */ n(
|
|
56
39
|
"button",
|
|
57
40
|
{
|
|
58
41
|
type: "button",
|
|
59
42
|
onClick: () => {
|
|
60
|
-
|
|
43
|
+
s(), C("ASC");
|
|
61
44
|
},
|
|
62
|
-
className:
|
|
45
|
+
className: c === "ASC" ? l["button--selected"] : "",
|
|
63
46
|
children: [
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
-
|
|
47
|
+
/* @__PURE__ */ o(g, {}),
|
|
48
|
+
i`asc`
|
|
66
49
|
]
|
|
67
50
|
}
|
|
68
51
|
) }),
|
|
69
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ o("li", { children: /* @__PURE__ */ n(
|
|
70
53
|
"button",
|
|
71
54
|
{
|
|
72
55
|
type: "button",
|
|
73
56
|
onClick: () => {
|
|
74
|
-
|
|
57
|
+
s(), C("DESC");
|
|
75
58
|
},
|
|
76
|
-
className:
|
|
59
|
+
className: c === "DESC" ? l["button--selected"] : "",
|
|
77
60
|
children: [
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
|
|
61
|
+
/* @__PURE__ */ o(u, {}),
|
|
62
|
+
i`desc`
|
|
80
63
|
]
|
|
81
64
|
}
|
|
82
65
|
) })
|
|
83
66
|
] }),
|
|
84
|
-
...
|
|
67
|
+
...p,
|
|
85
68
|
children: e
|
|
86
69
|
}
|
|
87
70
|
);
|
|
88
71
|
};
|
|
89
72
|
export {
|
|
90
|
-
|
|
91
|
-
|
|
73
|
+
E as SortTooltip,
|
|
74
|
+
b as sortTooltipDefaultTranslations
|
|
92
75
|
};
|
|
@@ -1,45 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import '../../assets/Stepper.css';const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"u-typography-h4": "_u-typography-h4_1h8au_22",
|
|
8
|
-
"u-typography-h5": "_u-typography-h5_1h8au_29",
|
|
9
|
-
"u-typography-h6": "_u-typography-h6_1h8au_36",
|
|
10
|
-
"u-typography-base": "_u-typography-base_1h8au_43",
|
|
11
|
-
"u-typography-base--xxl": "_u-typography-base--xxl_1h8au_49",
|
|
12
|
-
"u-typography-base--xl": "_u-typography-base--xl_1h8au_53",
|
|
13
|
-
"u-typography-base--lg": "_u-typography-base--lg_1h8au_57",
|
|
14
|
-
"u-typography-base--sm": "_u-typography-base--sm_1h8au_61",
|
|
15
|
-
stepper: m,
|
|
16
|
-
item: c,
|
|
17
|
-
name: n,
|
|
18
|
-
"u-typography-base--bold": "_u-typography-base--bold_1h8au_65",
|
|
1
|
+
import { jsx as i, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { c as s } from "../../clsx-OuTLNxxd.js";
|
|
3
|
+
import '../../assets/Stepper.css';const u = "_stepper_1h8au_61", h = "_item_1h8au_61", v = "_name_1h8au_61", N = "_counter_1h8au_65", t = {
|
|
4
|
+
stepper: u,
|
|
5
|
+
item: h,
|
|
6
|
+
name: v,
|
|
19
7
|
"item--active": "_item--active_1h8au_65",
|
|
20
8
|
"item--completed": "_item--completed_1h8au_65",
|
|
21
|
-
counter:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}, x = ({ currentStep: u = 0, steps: _, classNameItem: y, classNameCounter: r, classNameName: s, ...t }) => /* @__PURE__ */ h("div", { className: p(a.stepper, t.className), "data-testid": t["data-testid"], children: _.map((o, e) => {
|
|
26
|
-
const i = e < u, g = e === u;
|
|
27
|
-
return /* @__PURE__ */ d(
|
|
9
|
+
counter: N
|
|
10
|
+
}, x = ({ currentStep: c = 0, steps: m, classNameItem: d, classNameCounter: o, classNameName: n, ...e }) => /* @__PURE__ */ i("div", { className: s(t.stepper, e.className), "data-testid": e["data-testid"], children: m.map((_, a) => {
|
|
11
|
+
const p = a < c, r = a === c;
|
|
12
|
+
return /* @__PURE__ */ l(
|
|
28
13
|
"div",
|
|
29
14
|
{
|
|
30
|
-
className:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
15
|
+
className: s(
|
|
16
|
+
t.item,
|
|
17
|
+
p && t["item--completed"],
|
|
18
|
+
r && t["item--active"],
|
|
19
|
+
d
|
|
35
20
|
),
|
|
36
|
-
"data-testid":
|
|
21
|
+
"data-testid": e["data-testid-item"],
|
|
37
22
|
children: [
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */
|
|
23
|
+
/* @__PURE__ */ i("div", { className: s(t.counter, o), "data-testid": e["data-testid-counter"], children: a + 1 }),
|
|
24
|
+
/* @__PURE__ */ i("div", { className: s(t.name, n), "data-testid": e["data-testid-name"], children: _ })
|
|
40
25
|
]
|
|
41
26
|
},
|
|
42
|
-
|
|
27
|
+
a
|
|
43
28
|
);
|
|
44
29
|
}) });
|
|
45
30
|
export {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { StepperProps } from './Stepper';
|
|
2
1
|
import { StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
2
|
+
import { StepperProps } from './Stepper';
|
|
4
3
|
declare const meta: {
|
|
5
4
|
title: string;
|
|
6
5
|
component: ({ currentStep, steps, classNameItem, classNameCounter, classNameName, ...rest }: StepperProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as _, jsx as I } from "react/jsx-runtime";
|
|
2
|
-
import { c as g } from "../../clsx-
|
|
2
|
+
import { c as g } from "../../clsx-OuTLNxxd.js";
|
|
3
3
|
import { Button as c } from "../Button/Button.js";
|
|
4
4
|
import '../../assets/StepperNavigator.css';const b = {
|
|
5
5
|
"stepper-navigator": "_stepper-navigator_v6lmn_1",
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
|
-
|
|
3
2
|
declare const meta: {
|
|
4
3
|
title: string;
|
|
5
4
|
component: ({ hideNext, hidePrevious, hideCancel, hideFinish, disableNext, disablePrevious, disableCancel, disableFinish, lang, labelNext, labelPrevious, labelCancel, labelFinish, className, "data-testid": dataTestId, previousButtonProps, cancelButtonProps, nextButtonProps, finishButtonProps, onNext, onPrevious, onCancel, onFinish, }: import('./StepperNavigator').StepperNavigatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { TableTranslations } from './TableContext';
|
|
2
|
-
import { SortType } from '../SortTooltip/SortTooltip';
|
|
3
|
-
import { PaginationProps } from '../Pagination/Pagination';
|
|
4
1
|
import { default as React } from 'react';
|
|
5
|
-
|
|
2
|
+
import { PaginationProps } from '../Pagination/Pagination';
|
|
3
|
+
import { SortType } from '../SortTooltip/SortTooltip';
|
|
4
|
+
import { TableTranslations } from './TableContext';
|
|
6
5
|
export type ChildrenProps = {
|
|
7
6
|
/** Children of the component */
|
|
8
7
|
children: React.ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as g, jsx as r, Fragment as B } from "react/jsx-runtime";
|
|
2
2
|
import * as n from "react";
|
|
3
3
|
import T, { useState as C } from "react";
|
|
4
|
-
import { c as f } from "../../clsx-
|
|
4
|
+
import { c as f } from "../../clsx-OuTLNxxd.js";
|
|
5
5
|
import { paginationDefaultTranslations as x, Pagination as F } from "../Pagination/Pagination.js";
|
|
6
6
|
import { sortTooltipDefaultTranslations as u, SortTooltip as k } from "../SortTooltip/SortTooltip.js";
|
|
7
7
|
import { TableProvider as D, useTable as H } from "./TableContext.js";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { SortTranslationsByKeys } from '../SortTooltip/SortTooltip';
|
|
2
|
-
import { PaginationTranslations } from '../Pagination/Pagination';
|
|
3
1
|
import { ReactNode } from 'react';
|
|
4
|
-
|
|
2
|
+
import { PaginationTranslations } from '../Pagination/Pagination';
|
|
3
|
+
import { SortTranslationsByKeys } from '../SortTooltip/SortTooltip';
|
|
5
4
|
export type TableTranslationsKeys = keyof PaginationTranslations | keyof SortTranslationsByKeys;
|
|
6
5
|
export type TableTranslations = {
|
|
7
6
|
[key in TableTranslationsKeys]?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { createContext as n,
|
|
2
|
+
import { createContext as n, useContext as u, useState as x, useEffect as a } from "react";
|
|
3
3
|
const o = n({}), b = ({ initialTranslations: e, children: r }) => {
|
|
4
|
-
const [s, t] =
|
|
5
|
-
return
|
|
4
|
+
const [s, t] = x(e);
|
|
5
|
+
return a(() => {
|
|
6
6
|
t(e);
|
|
7
7
|
}, [e]), /* @__PURE__ */ c(
|
|
8
8
|
o.Provider,
|
|
@@ -14,7 +14,7 @@ const o = n({}), b = ({ initialTranslations: e, children: r }) => {
|
|
|
14
14
|
children: r
|
|
15
15
|
}
|
|
16
16
|
);
|
|
17
|
-
}, p = () =>
|
|
17
|
+
}, p = () => u(o);
|
|
18
18
|
export {
|
|
19
19
|
b as TableProvider,
|
|
20
20
|
p as useTable
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ChildrenProps } from './Table';
|
|
2
1
|
import { StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
2
|
+
import { ChildrenProps } from './Table';
|
|
4
3
|
declare const meta: {
|
|
5
4
|
title: string;
|
|
6
5
|
component: ({ children, ...rest }: ChildrenProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ChildrenProps } from './Table';
|
|
2
1
|
import { StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
2
|
+
import { ChildrenProps } from './Table';
|
|
4
3
|
declare const meta: {
|
|
5
4
|
title: string;
|
|
6
5
|
component: ({ children, ...rest }: ChildrenProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { TdProps } from './Table';
|
|
2
1
|
import { StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
2
|
+
import { TdProps } from './Table';
|
|
4
3
|
declare const meta: {
|
|
5
4
|
title: string;
|
|
6
5
|
component: ({ children, onClick, disabled, className, align, width, ...rest }: TdProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { ThProps } from './Table';
|
|
2
1
|
import { StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
2
|
+
import { ThProps } from './Table';
|
|
4
3
|
declare const meta: {
|
|
5
4
|
title: string;
|
|
6
5
|
component: ({ children, onSort, sortType, className, classNameTooltip, align, width, ...rest }: ThProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { TrProps } from './Table';
|
|
2
1
|
import { StoryObj } from '@storybook/react';
|
|
3
|
-
|
|
2
|
+
import { TrProps } from './Table';
|
|
4
3
|
declare const meta: {
|
|
5
4
|
title: string;
|
|
6
5
|
component: ({ children, onClick, disabled, className, lastRow, expandable, expandLabel, expandedRows, defaultExpanded, level, ...rest }: TrProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IconName } from '../Icon/types.ts';
|
|
2
1
|
import { ReactNode } from 'react';
|
|
3
|
-
|
|
2
|
+
import { IconName } from '../Icon/types.ts';
|
|
3
|
+
export type IndicativeType = 'empty' | 'success';
|
|
4
4
|
export interface TabProps {
|
|
5
5
|
/** The value to be showing in the tab */
|
|
6
6
|
children: ReactNode;
|
|
@@ -15,6 +15,8 @@ export interface TabProps {
|
|
|
15
15
|
'data-testid'?: string;
|
|
16
16
|
/** Icon to be displayed in the tab */
|
|
17
17
|
icon?: IconName | ReactNode;
|
|
18
|
+
/** Ref to be passed to the container element */
|
|
19
|
+
indicative?: IndicativeType;
|
|
18
20
|
/** Is the tab a chip */
|
|
19
21
|
chip?: boolean;
|
|
20
22
|
/** Show a loading skeleton */
|