@pismo/marola 1.0.0-beta.1 → 1.0.0-beta.11
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-2b1peDFT.js → Button-DiLqcAJG.js} +2 -2
- package/dist/{ClickAwayListener-BSW-Nd-y.js → ClickAwayListener-BaJ-OV_7.js} +4 -3
- package/dist/Dialog.module-DFcZsVAd.js +30 -0
- package/dist/Input.module-ZTRZRcNt.js +405 -0
- package/dist/{Popup-B6ZSGIEI.js → Popup-lLWZt2wk.js} +3 -3
- package/dist/{Portal-DIeBsWdL.js → Portal-B_Es6eUL.js} +2 -2
- package/dist/SelectButton-CoOT2txy.js +61 -0
- package/dist/Toggle-C7W0gYOI.js +175 -0
- package/dist/assets/Adornment.css +1 -0
- package/dist/assets/Advice.css +1 -1
- package/dist/assets/Autocomplete.css +1 -0
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/Dialog.css +1 -1
- package/dist/assets/IconButton.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/PageHeader.css +1 -1
- package/dist/assets/Pagination.css +1 -1
- package/dist/assets/SelectButton.css +1 -1
- package/dist/assets/Snackbar.css +1 -1
- package/dist/assets/SortTooltip.css +1 -1
- package/dist/assets/Stepper.css +1 -1
- package/dist/assets/Table.css +1 -1
- package/dist/assets/TextDisplay.css +1 -1
- package/dist/assets/Toggle.css +1 -1
- package/dist/assets/Toggle2.css +1 -1
- package/dist/assets/Typography.css +1 -1
- package/dist/{combineHooksSlotProps-DVjg9PRh.js → combineHooksSlotProps-BtBYUV_B.js} +1 -1
- package/dist/components/Adornment/Adornment.d.ts +19 -0
- package/dist/components/Adornment/Adornment.js +13 -0
- package/dist/components/Advice/Advice.d.ts +32 -17
- package/dist/components/Advice/Advice.js +39 -40
- package/dist/components/Advice/Advice.stories.d.ts +4 -3
- package/dist/components/Autocomplete/Autocomplete.d.ts +50 -0
- package/dist/components/Autocomplete/Autocomplete.js +689 -0
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +45 -0
- package/dist/components/Button/Button.d.ts +2 -0
- package/dist/components/Button/Button.js +49 -47
- package/dist/components/Button/Button.stories.d.ts +8 -52
- package/dist/components/Checkbox/Checkbox.js +52 -52
- package/dist/components/Chip/Chip.d.ts +3 -11
- package/dist/components/Chip/Chip.js +5 -4
- package/dist/components/Chip/Chip.stories.d.ts +3 -2
- package/dist/components/Dialog/Actions.js +1 -1
- package/dist/components/Dialog/Backdrop.js +1 -1
- package/dist/components/Dialog/CloseIconButton.js +2 -2
- package/dist/components/Dialog/Dialog.js +13 -12
- package/dist/components/Dialog/Dialog.stories.d.ts +44 -44
- package/dist/components/Dialog/DialogTitle.js +1 -1
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -1
- package/dist/components/Icon/Icon.js +27 -21
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/IconButton/IconButton.js +42 -42
- package/dist/components/Input/Input.d.ts +4 -2
- package/dist/components/Input/Input.js +74 -471
- package/dist/components/Input/Input.stories.d.ts +1 -1
- package/dist/components/InputSearch/InputSearch.stories.d.ts +1 -1
- package/dist/components/PageHeader/PageHeader.js +57 -57
- package/dist/components/Pagination/Pagination.d.ts +7 -1
- package/dist/components/Pagination/Pagination.js +104 -182
- package/dist/components/Pagination/usePagination.d.ts +90 -0
- package/dist/components/Pagination/usePagination.js +79 -0
- package/dist/components/RowItem/RowItem.d.ts +25 -0
- package/dist/components/RowItem/RowItem.js +19 -0
- package/dist/components/Select/Select.js +9 -8
- package/dist/components/Select/SelectButton.js +1 -1
- package/dist/components/Snackbar/Snackbar.js +94 -94
- package/dist/components/Snackbar/Snackbar.stories.d.ts +3 -3
- package/dist/components/SortTooltip/SortTooltip.js +46 -46
- package/dist/components/Stepper/Stepper.js +35 -35
- package/dist/components/Table/Table.js +96 -96
- package/dist/components/Tabs/Tab.js +18 -17
- package/dist/components/Tabs/TabPanel.js +27 -26
- package/dist/components/Tabs/Tabs.js +25 -25
- package/dist/components/TextDisplay/TextDisplay.d.ts +3 -1
- package/dist/components/TextDisplay/TextDisplay.js +37 -30
- package/dist/components/TextDisplay/TextDisplay.stories.d.ts +1 -1
- package/dist/components/Toggle/Toggle.js +56 -56
- package/dist/components/ToggleGroup/Toggle.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +3 -3
- package/dist/components/Typography/Typography.js +47 -47
- package/dist/{index-CjW42-M-.js → index-D3Wj0eid.js} +1 -1
- package/dist/main.d.ts +3 -0
- package/dist/main.js +81 -76
- package/dist/ownerDocument-B61GUaFs.js +33 -0
- package/dist/{useButton-DNk3wrQp.js → useButton-Bn3MNH8I.js} +1 -1
- package/dist/useCompoundItem-B7Eo_qZk.js +68 -0
- package/dist/useEventCallback-BAQJJ3ye.js +14 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/{useList-B0hog_3-.js → useList-BpJT77u3.js} +2 -2
- package/dist/{index-CH45lKw7.js → useSlotProps-kRhf7Gil.js} +93 -94
- package/package.json +6 -2
- package/dist/Dialog.module-DFEmFdYT.js +0 -30
- package/dist/SelectButton-C8JQKaf4.js +0 -61
- package/dist/Toggle-BCgIItCc.js +0 -142
- package/dist/useCompoundItem-D1iRfg8D.js +0 -84
- package/dist/useEventCallback-xTG9piMa.js +0 -45
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import '../../assets/SortTooltip.css';
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as h, jsxs as s } from "react/jsx-runtime";
|
|
3
3
|
import { c as d } from "../../clsx-DB4S2d7J.js";
|
|
4
4
|
import { Tooltip as b } from "../Tooltip/Tooltip.js";
|
|
5
5
|
import * as t from "react";
|
|
6
|
-
const
|
|
7
|
-
"u-typography-h1": "_u-typography-
|
|
8
|
-
"u-typography-h2": "_u-typography-
|
|
9
|
-
"u-typography-h3": "_u-typography-
|
|
10
|
-
"u-typography-h4": "_u-typography-
|
|
11
|
-
"u-typography-h5": "_u-typography-
|
|
12
|
-
"u-typography-h6": "_u-typography-
|
|
13
|
-
"u-typography-base": "_u-typography-
|
|
14
|
-
"sort-tooltip": "_sort-
|
|
15
|
-
"u-typography-base--xxl": "_u-typography-base--
|
|
16
|
-
"u-typography-base--xl": "_u-typography-base--
|
|
17
|
-
"u-typography-base--lg": "_u-typography-base--
|
|
18
|
-
"u-typography-base--sm": "_u-typography-base--
|
|
19
|
-
"u-typography-base--bold": "_u-typography-base--
|
|
20
|
-
"u-typography-base--strikethrough": "_u-typography-base--
|
|
21
|
-
"u-typography-base--underlined": "_u-typography-base--
|
|
22
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-
|
|
23
|
-
"button--selected": "_button--
|
|
24
|
-
},
|
|
6
|
+
const f = (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" })), m = (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" })), a = {
|
|
7
|
+
"u-typography-h1": "_u-typography-h1_3hhsf_1",
|
|
8
|
+
"u-typography-h2": "_u-typography-h2_3hhsf_8",
|
|
9
|
+
"u-typography-h3": "_u-typography-h3_3hhsf_15",
|
|
10
|
+
"u-typography-h4": "_u-typography-h4_3hhsf_22",
|
|
11
|
+
"u-typography-h5": "_u-typography-h5_3hhsf_29",
|
|
12
|
+
"u-typography-h6": "_u-typography-h6_3hhsf_36",
|
|
13
|
+
"u-typography-base": "_u-typography-base_3hhsf_43",
|
|
14
|
+
"sort-tooltip": "_sort-tooltip_3hhsf_43",
|
|
15
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_3hhsf_49",
|
|
16
|
+
"u-typography-base--xl": "_u-typography-base--xl_3hhsf_53",
|
|
17
|
+
"u-typography-base--lg": "_u-typography-base--lg_3hhsf_57",
|
|
18
|
+
"u-typography-base--sm": "_u-typography-base--sm_3hhsf_61",
|
|
19
|
+
"u-typography-base--bold": "_u-typography-base--bold_3hhsf_65",
|
|
20
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_3hhsf_68",
|
|
21
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_3hhsf_71",
|
|
22
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_3hhsf_74",
|
|
23
|
+
"button--selected": "_button--selected_3hhsf_95"
|
|
24
|
+
}, L = {
|
|
25
25
|
pt: {
|
|
26
26
|
asc: "Ascendente",
|
|
27
27
|
desc: "Descendente"
|
|
@@ -31,63 +31,63 @@ const m = (h) => /* @__PURE__ */ t.createElement("svg", { width: 16, height: 16,
|
|
|
31
31
|
desc: "Sort descending"
|
|
32
32
|
}
|
|
33
33
|
}, Z = ({
|
|
34
|
-
children:
|
|
35
|
-
className:
|
|
36
|
-
language:
|
|
34
|
+
children: e,
|
|
35
|
+
className: l,
|
|
36
|
+
language: n,
|
|
37
37
|
onClose: o,
|
|
38
|
-
onSort:
|
|
39
|
-
show:
|
|
40
|
-
sortType:
|
|
41
|
-
t:
|
|
42
|
-
...
|
|
38
|
+
onSort: p,
|
|
39
|
+
show: i,
|
|
40
|
+
sortType: r,
|
|
41
|
+
t: _,
|
|
42
|
+
...u
|
|
43
43
|
}) => {
|
|
44
|
-
const
|
|
45
|
-
return /* @__PURE__ */
|
|
44
|
+
const g = d(a["sort-tooltip"], l), C = _ || L[n || "en"], y = (c) => C[c];
|
|
45
|
+
return /* @__PURE__ */ h(
|
|
46
46
|
b,
|
|
47
47
|
{
|
|
48
|
-
className:
|
|
48
|
+
className: g,
|
|
49
49
|
onClose: o,
|
|
50
|
-
open:
|
|
50
|
+
open: i,
|
|
51
51
|
theme: "white",
|
|
52
52
|
padding: "normal",
|
|
53
53
|
position: "bottom-start",
|
|
54
54
|
disableHoverListener: !0,
|
|
55
|
-
title: /* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */
|
|
55
|
+
title: /* @__PURE__ */ s("ul", { children: [
|
|
56
|
+
/* @__PURE__ */ h("li", { children: /* @__PURE__ */ s(
|
|
57
57
|
"button",
|
|
58
58
|
{
|
|
59
59
|
type: "button",
|
|
60
60
|
onClick: () => {
|
|
61
|
-
o(),
|
|
61
|
+
o(), p("ASC");
|
|
62
62
|
},
|
|
63
|
-
className:
|
|
63
|
+
className: r === "ASC" ? a["button--selected"] : "",
|
|
64
64
|
children: [
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
|
|
65
|
+
/* @__PURE__ */ h(f, {}),
|
|
66
|
+
y`asc`
|
|
67
67
|
]
|
|
68
68
|
}
|
|
69
69
|
) }),
|
|
70
|
-
/* @__PURE__ */
|
|
70
|
+
/* @__PURE__ */ h("li", { children: /* @__PURE__ */ s(
|
|
71
71
|
"button",
|
|
72
72
|
{
|
|
73
73
|
type: "button",
|
|
74
74
|
onClick: () => {
|
|
75
|
-
o(),
|
|
75
|
+
o(), p("DESC");
|
|
76
76
|
},
|
|
77
|
-
className:
|
|
77
|
+
className: r === "DESC" ? a["button--selected"] : "",
|
|
78
78
|
children: [
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
|
|
79
|
+
/* @__PURE__ */ h(m, {}),
|
|
80
|
+
y`desc`
|
|
81
81
|
]
|
|
82
82
|
}
|
|
83
83
|
) })
|
|
84
84
|
] }),
|
|
85
|
-
...
|
|
86
|
-
children:
|
|
85
|
+
...u,
|
|
86
|
+
children: e
|
|
87
87
|
}
|
|
88
88
|
);
|
|
89
89
|
};
|
|
90
90
|
export {
|
|
91
91
|
Z as SortTooltip,
|
|
92
|
-
|
|
92
|
+
L as sortTooltipDefaultTranslations
|
|
93
93
|
};
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import '../../assets/Stepper.css';
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { c as
|
|
4
|
-
const
|
|
5
|
-
"u-typography-h1": "_u-typography-
|
|
6
|
-
"u-typography-h2": "_u-typography-
|
|
7
|
-
"u-typography-h3": "_u-typography-
|
|
8
|
-
"u-typography-h4": "_u-typography-
|
|
9
|
-
"u-typography-h5": "_u-typography-
|
|
10
|
-
"u-typography-h6": "_u-typography-
|
|
11
|
-
"u-typography-base": "_u-typography-
|
|
12
|
-
"u-typography-base--xxl": "_u-typography-base--
|
|
13
|
-
"u-typography-base--xl": "_u-typography-base--
|
|
14
|
-
"u-typography-base--lg": "_u-typography-base--
|
|
15
|
-
"u-typography-base--sm": "_u-typography-base--
|
|
16
|
-
stepper:
|
|
17
|
-
item:
|
|
18
|
-
name:
|
|
19
|
-
"u-typography-base--bold": "_u-typography-base--
|
|
20
|
-
"item--active": "_item--
|
|
21
|
-
"item--completed": "_item--
|
|
2
|
+
import { jsx as s, jsxs as g } from "react/jsx-runtime";
|
|
3
|
+
import { c as r } from "../../clsx-DB4S2d7J.js";
|
|
4
|
+
const d = "_stepper_7fsnr_61", m = "_item_7fsnr_61", c = "_name_7fsnr_61", l = "_counter_7fsnr_65", t = {
|
|
5
|
+
"u-typography-h1": "_u-typography-h1_7fsnr_1",
|
|
6
|
+
"u-typography-h2": "_u-typography-h2_7fsnr_8",
|
|
7
|
+
"u-typography-h3": "_u-typography-h3_7fsnr_15",
|
|
8
|
+
"u-typography-h4": "_u-typography-h4_7fsnr_22",
|
|
9
|
+
"u-typography-h5": "_u-typography-h5_7fsnr_29",
|
|
10
|
+
"u-typography-h6": "_u-typography-h6_7fsnr_36",
|
|
11
|
+
"u-typography-base": "_u-typography-base_7fsnr_43",
|
|
12
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_7fsnr_49",
|
|
13
|
+
"u-typography-base--xl": "_u-typography-base--xl_7fsnr_53",
|
|
14
|
+
"u-typography-base--lg": "_u-typography-base--lg_7fsnr_57",
|
|
15
|
+
"u-typography-base--sm": "_u-typography-base--sm_7fsnr_61",
|
|
16
|
+
stepper: d,
|
|
17
|
+
item: m,
|
|
18
|
+
name: c,
|
|
19
|
+
"u-typography-base--bold": "_u-typography-base--bold_7fsnr_65",
|
|
20
|
+
"item--active": "_item--active_7fsnr_65",
|
|
21
|
+
"item--completed": "_item--completed_7fsnr_65",
|
|
22
22
|
counter: l,
|
|
23
|
-
"u-typography-base--strikethrough": "_u-typography-base--
|
|
24
|
-
"u-typography-base--underlined": "_u-typography-base--
|
|
25
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-
|
|
26
|
-
}, v = ({ currentStep:
|
|
27
|
-
const
|
|
28
|
-
return /* @__PURE__ */
|
|
23
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_7fsnr_68",
|
|
24
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_7fsnr_71",
|
|
25
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_7fsnr_74"
|
|
26
|
+
}, v = ({ currentStep: p = 0, steps: _, classNameItem: y, classNameCounter: o, classNameName: h, ...e }) => /* @__PURE__ */ s("div", { className: r(t.stepper, e.className), "data-testid": e["data-testid"], children: _.map((n, a) => {
|
|
27
|
+
const u = a < p, i = a === p;
|
|
28
|
+
return /* @__PURE__ */ g(
|
|
29
29
|
"div",
|
|
30
30
|
{
|
|
31
|
-
className:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
className: r(
|
|
32
|
+
t.item,
|
|
33
|
+
u && t["item--completed"],
|
|
34
|
+
i && t["item--active"],
|
|
35
|
+
y
|
|
36
36
|
),
|
|
37
|
-
"data-testid":
|
|
37
|
+
"data-testid": e["data-testid-item"],
|
|
38
38
|
children: [
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
/* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ s("div", { className: r(t.counter, o), "data-testid": e["data-testid-counter"], children: a + 1 }),
|
|
40
|
+
/* @__PURE__ */ s("div", { className: r(t.name, h), "data-testid": e["data-testid-name"], children: n })
|
|
41
41
|
]
|
|
42
42
|
},
|
|
43
|
-
|
|
43
|
+
a
|
|
44
44
|
);
|
|
45
45
|
}) });
|
|
46
46
|
export {
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import '../../assets/Table.css';
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import * as
|
|
2
|
+
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import * as c from "react";
|
|
4
4
|
import { useState as w } from "react";
|
|
5
|
-
import { c as
|
|
6
|
-
import { paginationDefaultTranslations as
|
|
7
|
-
import { sortTooltipDefaultTranslations as
|
|
8
|
-
import { TableProvider as
|
|
9
|
-
const
|
|
10
|
-
"u-typography-h1": "_u-typography-
|
|
11
|
-
"u-typography-h2": "_u-typography-
|
|
12
|
-
"u-typography-h3": "_u-typography-
|
|
13
|
-
"u-typography-h4": "_u-typography-
|
|
14
|
-
"u-typography-h5": "_u-typography-
|
|
15
|
-
"u-typography-h6": "_u-typography-
|
|
16
|
-
"u-typography-base": "_u-typography-
|
|
17
|
-
table:
|
|
18
|
-
"u-typography-base--xxl": "_u-typography-base--
|
|
19
|
-
"u-typography-base--xl": "_u-typography-base--
|
|
20
|
-
"u-typography-base--lg": "_u-typography-base--
|
|
21
|
-
"u-typography-base--sm": "_u-typography-base--
|
|
22
|
-
"u-typography-base--bold": "_u-typography-base--
|
|
23
|
-
"u-typography-base--strikethrough": "_u-typography-base--
|
|
24
|
-
"u-typography-base--underlined": "_u-typography-base--
|
|
25
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-
|
|
26
|
-
"table--full-width": "_table--full-
|
|
27
|
-
"table--white-theme": "_table--white-
|
|
28
|
-
"table--transparent-theme": "_table--transparent-
|
|
29
|
-
"cell--left-alignment": "_cell--left-
|
|
30
|
-
"cell--center-alignment": "_cell--center-
|
|
31
|
-
"cell--right-alignment": "_cell--right-
|
|
32
|
-
th__wrapper:
|
|
33
|
-
"th__wrapper--pressed": "_th__wrapper--
|
|
34
|
-
"th__wrapper--clickable": "_th__wrapper--
|
|
35
|
-
"th__sort-icon-container": "_th__sort-icon-
|
|
36
|
-
"tr__row-or-cell--disabled": "_tr__row-or-cell--
|
|
37
|
-
tr:
|
|
38
|
-
td:
|
|
39
|
-
"tr__row-or-cell--clickable": "_tr__row-or-cell--
|
|
40
|
-
"td__row-or-cell--clickable": "_td__row-or-cell--
|
|
41
|
-
"td__row-or-cell--disabled": "_td__row-or-cell--
|
|
42
|
-
"td-wrapper": "_td-
|
|
43
|
-
},
|
|
5
|
+
import { c as i } from "../../clsx-DB4S2d7J.js";
|
|
6
|
+
import { paginationDefaultTranslations as u, Pagination as T } from "../Pagination/Pagination.js";
|
|
7
|
+
import { sortTooltipDefaultTranslations as b, SortTooltip as j } from "../SortTooltip/SortTooltip.js";
|
|
8
|
+
import { TableProvider as f, useTable as N } from "./TableContext.js";
|
|
9
|
+
const x = (a) => /* @__PURE__ */ c.createElement("svg", { width: 7, height: 10, viewBox: "0 0 7 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ c.createElement("g", { clipPath: "url(#clip0_2291_2457)" }, /* @__PURE__ */ c.createElement("path", { d: "M6.41658 3.93794C6.26731 3.93794 6.11798 3.88301 6.00423 3.77314L3.49991 1.35923L0.995768 3.77271C0.767904 3.99243 0.398763 3.99243 0.170898 3.77271C-0.0569661 3.55298 -0.0569661 3.19702 0.170898 2.97729L3.08756 0.164795C3.31543 -0.0549316 3.68457 -0.0549316 3.91243 0.164795L6.8291 2.97729C7.05697 3.19702 7.05697 3.55298 6.8291 3.77271C6.71553 3.88345 6.56605 3.93794 6.41658 3.93794Z", fill: "#1897F3" }), /* @__PURE__ */ c.createElement("path", { opacity: 0.4, d: "M6.41663 5.38022C6.26737 5.38022 6.11804 5.43516 6.00429 5.54502L3.49997 7.95894L0.99528 5.5437C0.767415 5.32397 0.398275 5.32397 0.17041 5.5437C-0.0574544 5.76343 -0.0574544 6.11938 0.17041 6.33911L3.08708 9.15161C3.31494 9.37134 3.68408 9.37134 3.91195 9.15161L6.82861 6.33911C7.05648 6.11938 7.05648 5.76343 6.82861 5.5437C6.71559 5.43472 6.56611 5.38022 6.41663 5.38022Z", fill: "#1897F3" })), /* @__PURE__ */ c.createElement("defs", null, /* @__PURE__ */ c.createElement("clipPath", { id: "clip0_2291_2457" }, /* @__PURE__ */ c.createElement("rect", { width: 7, height: 10, fill: "white" })))), C = "_table_9cjay_43", L = "_th__wrapper_9cjay_115", E = "_tr_9cjay_131", k = "_td_9cjay_135", t = {
|
|
10
|
+
"u-typography-h1": "_u-typography-h1_9cjay_1",
|
|
11
|
+
"u-typography-h2": "_u-typography-h2_9cjay_8",
|
|
12
|
+
"u-typography-h3": "_u-typography-h3_9cjay_15",
|
|
13
|
+
"u-typography-h4": "_u-typography-h4_9cjay_22",
|
|
14
|
+
"u-typography-h5": "_u-typography-h5_9cjay_29",
|
|
15
|
+
"u-typography-h6": "_u-typography-h6_9cjay_36",
|
|
16
|
+
"u-typography-base": "_u-typography-base_9cjay_43",
|
|
17
|
+
table: C,
|
|
18
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_9cjay_49",
|
|
19
|
+
"u-typography-base--xl": "_u-typography-base--xl_9cjay_53",
|
|
20
|
+
"u-typography-base--lg": "_u-typography-base--lg_9cjay_57",
|
|
21
|
+
"u-typography-base--sm": "_u-typography-base--sm_9cjay_61",
|
|
22
|
+
"u-typography-base--bold": "_u-typography-base--bold_9cjay_65",
|
|
23
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_9cjay_68",
|
|
24
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_9cjay_71",
|
|
25
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_9cjay_74",
|
|
26
|
+
"table--full-width": "_table--full-width_9cjay_82",
|
|
27
|
+
"table--white-theme": "_table--white-theme_9cjay_85",
|
|
28
|
+
"table--transparent-theme": "_table--transparent-theme_9cjay_88",
|
|
29
|
+
"cell--left-alignment": "_cell--left-alignment_9cjay_91",
|
|
30
|
+
"cell--center-alignment": "_cell--center-alignment_9cjay_95",
|
|
31
|
+
"cell--right-alignment": "_cell--right-alignment_9cjay_99",
|
|
32
|
+
th__wrapper: L,
|
|
33
|
+
"th__wrapper--pressed": "_th__wrapper--pressed_9cjay_118",
|
|
34
|
+
"th__wrapper--clickable": "_th__wrapper--clickable_9cjay_122",
|
|
35
|
+
"th__sort-icon-container": "_th__sort-icon-container_9cjay_125",
|
|
36
|
+
"tr__row-or-cell--disabled": "_tr__row-or-cell--disabled_9cjay_131",
|
|
37
|
+
tr: E,
|
|
38
|
+
td: k,
|
|
39
|
+
"tr__row-or-cell--clickable": "_tr__row-or-cell--clickable_9cjay_140",
|
|
40
|
+
"td__row-or-cell--clickable": "_td__row-or-cell--clickable_9cjay_141",
|
|
41
|
+
"td__row-or-cell--disabled": "_td__row-or-cell--disabled_9cjay_145",
|
|
42
|
+
"td-wrapper": "_td-wrapper_9cjay_149"
|
|
43
|
+
}, v = {
|
|
44
44
|
pt: {
|
|
45
|
-
...
|
|
46
|
-
...
|
|
45
|
+
...u.pt,
|
|
46
|
+
...b.pt
|
|
47
47
|
},
|
|
48
48
|
en: {
|
|
49
|
-
...
|
|
50
|
-
...
|
|
49
|
+
...u.en,
|
|
50
|
+
...b.en
|
|
51
51
|
},
|
|
52
52
|
// example to add a new language translation
|
|
53
53
|
es: {
|
|
@@ -59,79 +59,79 @@ const C = (p) => /* @__PURE__ */ h.createElement("svg", { width: 7, height: 10,
|
|
|
59
59
|
of: "de",
|
|
60
60
|
results: "resultados"
|
|
61
61
|
}
|
|
62
|
-
},
|
|
63
|
-
children:
|
|
62
|
+
}, _ = ({
|
|
63
|
+
children: a,
|
|
64
64
|
theme: e = "white",
|
|
65
|
-
fullWidth:
|
|
66
|
-
className:
|
|
65
|
+
fullWidth: l = !0,
|
|
66
|
+
className: p,
|
|
67
67
|
paginationProps: s,
|
|
68
|
-
language:
|
|
69
|
-
translations:
|
|
68
|
+
language: o,
|
|
69
|
+
translations: y,
|
|
70
70
|
...d
|
|
71
71
|
}) => {
|
|
72
|
-
const
|
|
72
|
+
const h = i(
|
|
73
73
|
t.table,
|
|
74
|
-
|
|
74
|
+
l ? t["table--full-width"] : "",
|
|
75
75
|
t[`table--${e}-theme`],
|
|
76
|
-
|
|
77
|
-
),
|
|
78
|
-
return /* @__PURE__ */
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
s && /* @__PURE__ */
|
|
76
|
+
p
|
|
77
|
+
), n = o && v[o] || y;
|
|
78
|
+
return /* @__PURE__ */ m(f, { initialTranslations: n, children: [
|
|
79
|
+
/* @__PURE__ */ r("table", { ...d, className: h, children: a }),
|
|
80
|
+
s && /* @__PURE__ */ r(T, { ...s, t: n })
|
|
81
81
|
] });
|
|
82
|
-
},
|
|
83
|
-
const
|
|
82
|
+
}, B = ({ children: a, ...e }) => /* @__PURE__ */ r("thead", { ...e, children: a }), H = ({ children: a, ...e }) => /* @__PURE__ */ r("tbody", { ...e, children: a }), P = ({ children: a, onClick: e, disabled: l, className: p, ...s }) => {
|
|
83
|
+
const o = i(
|
|
84
84
|
t.tr,
|
|
85
|
-
e && !
|
|
86
|
-
|
|
85
|
+
e && !l ? t["tr__row-or-cell--clickable"] : l ? t["tr__row-or-cell--disabled"] : "",
|
|
86
|
+
p
|
|
87
87
|
);
|
|
88
|
-
return /* @__PURE__ */
|
|
89
|
-
},
|
|
90
|
-
const
|
|
88
|
+
return /* @__PURE__ */ r("tr", { ...s, className: o, onClick: () => !l && (e == null ? void 0 : e()), children: a });
|
|
89
|
+
}, D = ({ children: a, onClick: e, disabled: l, className: p, align: s = "left", ...o }) => {
|
|
90
|
+
const y = i(
|
|
91
91
|
t.td,
|
|
92
|
-
e && !
|
|
92
|
+
e && !l ? t["td__row-or-cell--clickable"] : l ? t["td__row-or-cell--disabled"] : "",
|
|
93
93
|
t[`cell--${s}-alignment`],
|
|
94
|
-
|
|
94
|
+
p
|
|
95
95
|
);
|
|
96
|
-
return /* @__PURE__ */
|
|
97
|
-
},
|
|
98
|
-
const { translations: d } =
|
|
96
|
+
return /* @__PURE__ */ r("td", { ...o, className: y, onClick: () => !l && (e == null ? void 0 : e()), children: /* @__PURE__ */ r("span", { className: t["td-wrapper"], children: a }) });
|
|
97
|
+
}, M = ({ children: a, onSort: e, sortType: l, className: p, classNameTooltip: s, align: o = "left", ...y }) => {
|
|
98
|
+
const { translations: d } = N(), [h, n] = w(!1), g = i(
|
|
99
99
|
t.th__wrapper,
|
|
100
|
-
|
|
100
|
+
h ? t["th__wrapper--pressed"] : "",
|
|
101
101
|
e ? t["th__wrapper--clickable"] : "",
|
|
102
|
-
|
|
102
|
+
p
|
|
103
103
|
);
|
|
104
|
-
return /* @__PURE__ */
|
|
105
|
-
|
|
104
|
+
return /* @__PURE__ */ r("th", { ...y, className: t[`cell--${o}-alignment`], children: /* @__PURE__ */ r("span", { className: g, onClick: e && (() => n(!h)), children: e ? /* @__PURE__ */ m(
|
|
105
|
+
j,
|
|
106
106
|
{
|
|
107
|
-
onClose: () =>
|
|
107
|
+
onClose: () => n(!1),
|
|
108
108
|
onSort: e,
|
|
109
|
-
show:
|
|
110
|
-
sortType:
|
|
109
|
+
show: h,
|
|
110
|
+
sortType: l,
|
|
111
111
|
className: s,
|
|
112
112
|
t: d,
|
|
113
113
|
children: [
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ r("span", { children: a }),
|
|
115
|
+
/* @__PURE__ */ r("span", { className: t["th__sort-icon-container"], children: /* @__PURE__ */ r(x, {}) })
|
|
116
116
|
]
|
|
117
117
|
}
|
|
118
|
-
) : /* @__PURE__ */
|
|
118
|
+
) : /* @__PURE__ */ r("span", { children: a }) }) });
|
|
119
119
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
120
|
+
_.THead = B;
|
|
121
|
+
_.THead.displayName = "Table.THead";
|
|
122
|
+
_.TBody = H;
|
|
123
|
+
_.TBody.displayName = "Table.TBody";
|
|
124
|
+
_.Tr = P;
|
|
125
|
+
_.Tr.displayName = "Table.Tr";
|
|
126
|
+
_.Td = D;
|
|
127
|
+
_.Td.displayName = "Table.Td";
|
|
128
|
+
_.Th = M;
|
|
129
|
+
_.Th.displayName = "Table.Th";
|
|
130
130
|
export {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
131
|
+
H as TBody,
|
|
132
|
+
B as THead,
|
|
133
|
+
_ as Table,
|
|
134
|
+
D as Td,
|
|
135
|
+
M as Th,
|
|
136
|
+
P as Tr
|
|
137
137
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsx as N } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
2
|
+
import * as f from "react";
|
|
3
3
|
import { forwardRef as H, useContext as U, useMemo as j } from "react";
|
|
4
4
|
import { c as k } from "../../clsx-DB4S2d7J.js";
|
|
5
5
|
import { u as B, T as D, s as y } from "../../Tabs.module-jkH1Qjn7.js";
|
|
6
|
-
import { g as L, a as W, u as O, f as $, b as d, _ as q, c as z, P as e, d as A, e as G } from "../../
|
|
7
|
-
import { u as J, c as K } from "../../combineHooksSlotProps-
|
|
8
|
-
import { u as Q
|
|
9
|
-
import { u as
|
|
6
|
+
import { g as L, a as W, u as O, f as $, b as d, _ as q, c as z, P as e, d as A, e as G } from "../../useSlotProps-kRhf7Gil.js";
|
|
7
|
+
import { u as J, c as K } from "../../combineHooksSlotProps-BtBYUV_B.js";
|
|
8
|
+
import { u as Q } from "../../useId-BW-oWmul.js";
|
|
9
|
+
import { u as X } from "../../useButton-Bn3MNH8I.js";
|
|
10
|
+
import { u as Y } from "../../useCompoundItem-B7Eo_qZk.js";
|
|
10
11
|
const E = "Tab";
|
|
11
12
|
function Z(o) {
|
|
12
13
|
return L(E, o);
|
|
@@ -21,11 +22,11 @@ function te(o) {
|
|
|
21
22
|
rootRef: s,
|
|
22
23
|
disabled: n = !1,
|
|
23
24
|
id: c
|
|
24
|
-
} = o, a =
|
|
25
|
-
value:
|
|
25
|
+
} = o, a = f.useRef(null), r = Q(c), {
|
|
26
|
+
value: b,
|
|
26
27
|
selectionFollowsFocus: p,
|
|
27
28
|
getTabPanelId: m
|
|
28
|
-
} = B(), P =
|
|
29
|
+
} = B(), P = f.useMemo(() => ({
|
|
29
30
|
disabled: n,
|
|
30
31
|
ref: a,
|
|
31
32
|
id: r
|
|
@@ -33,7 +34,7 @@ function te(o) {
|
|
|
33
34
|
id: l,
|
|
34
35
|
index: R,
|
|
35
36
|
totalItemCount: g
|
|
36
|
-
} =
|
|
37
|
+
} = Y(t ?? ee, P), {
|
|
37
38
|
getRootProps: h,
|
|
38
39
|
highlighted: T,
|
|
39
40
|
selected: i
|
|
@@ -45,7 +46,7 @@ function te(o) {
|
|
|
45
46
|
active: v,
|
|
46
47
|
focusVisible: I,
|
|
47
48
|
setFocusVisible: V
|
|
48
|
-
} =
|
|
49
|
+
} = X({
|
|
49
50
|
disabled: n,
|
|
50
51
|
focusableWhenDisabled: !p,
|
|
51
52
|
type: "button"
|
|
@@ -68,7 +69,7 @@ function te(o) {
|
|
|
68
69
|
rootRef: _,
|
|
69
70
|
// the `selected` state isn't set on the server (it relies on effects to be calculated),
|
|
70
71
|
// so we fall back to checking the `value` prop with the selectedValue from the TabsContext
|
|
71
|
-
selected: i || l ===
|
|
72
|
+
selected: i || l === b,
|
|
72
73
|
setFocusVisible: V,
|
|
73
74
|
totalTabsCount: g
|
|
74
75
|
};
|
|
@@ -81,15 +82,15 @@ const oe = ["action", "children", "disabled", "onChange", "onClick", "onFocus",
|
|
|
81
82
|
return A({
|
|
82
83
|
root: ["root", t && "selected", s && "disabled"]
|
|
83
84
|
}, G(Z));
|
|
84
|
-
}, F = /* @__PURE__ */
|
|
85
|
+
}, F = /* @__PURE__ */ f.forwardRef(function(t, s) {
|
|
85
86
|
var n;
|
|
86
87
|
const {
|
|
87
88
|
children: c,
|
|
88
89
|
disabled: a = !1,
|
|
89
90
|
slotProps: r = {},
|
|
90
|
-
slots:
|
|
91
|
+
slots: b = {},
|
|
91
92
|
value: p
|
|
92
|
-
} = t, m = q(t, oe), P =
|
|
93
|
+
} = t, m = q(t, oe), P = f.useRef(), l = O(P, s), {
|
|
93
94
|
active: R,
|
|
94
95
|
highlighted: g,
|
|
95
96
|
selected: h,
|
|
@@ -102,7 +103,7 @@ const oe = ["action", "children", "disabled", "onChange", "onClick", "onFocus",
|
|
|
102
103
|
disabled: a,
|
|
103
104
|
highlighted: g,
|
|
104
105
|
selected: h
|
|
105
|
-
}), C = se(i), u = (n =
|
|
106
|
+
}), C = se(i), u = (n = b.root) != null ? n : "button", v = z({
|
|
106
107
|
elementType: u,
|
|
107
108
|
getSlotProps: T,
|
|
108
109
|
externalSlotProps: r.root,
|
|
@@ -163,7 +164,7 @@ process.env.NODE_ENV !== "production" && (F.propTypes = {
|
|
|
163
164
|
*/
|
|
164
165
|
value: e.oneOfType([e.number, e.string])
|
|
165
166
|
});
|
|
166
|
-
const
|
|
167
|
+
const pe = H(
|
|
167
168
|
({ children: o, value: t, disabled: s, dataTestId: n }, c) => {
|
|
168
169
|
const a = U(D), r = j(
|
|
169
170
|
() => k(
|
|
@@ -177,5 +178,5 @@ const fe = H(
|
|
|
177
178
|
}
|
|
178
179
|
);
|
|
179
180
|
export {
|
|
180
|
-
|
|
181
|
+
pe as Tab
|
|
181
182
|
};
|