@pismo/marola 1.0.0-beta.69 → 1.0.0-beta.8
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-DiLqcAJG.js} +2 -2
- package/dist/{ClickAwayListener-DbEYZpyh.js → ClickAwayListener-BaJ-OV_7.js} +3 -3
- package/dist/Dialog.module-DFEmFdYT.js +30 -0
- package/dist/Group-B3p31ftp.js +26 -0
- package/dist/Input.module-iOYlI_1w.js +405 -0
- package/dist/{Popup-Ck3XlWMq.js → Popup-lLWZt2wk.js} +3 -3
- package/dist/{Portal-oY3enyAm.js → Portal-B_Es6eUL.js} +2 -2
- package/dist/SelectButton-K3OIfR5m.js +61 -0
- package/dist/{Tabs.module-BGGTkDc5.js → Tabs.module-jkH1Qjn7.js} +7 -7
- package/dist/Toggle-BSvvbKBp.js +175 -0
- package/dist/assets/Advice.css +1 -1
- package/dist/assets/Autocomplete.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/Dialog.css +1 -1
- package/dist/assets/EllipsisTooltip.css +1 -1
- package/dist/assets/Group.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/Skeleton.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/Tabs.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-C-zYvfnF.js → combineHooksSlotProps-BtBYUV_B.js} +1 -1
- package/dist/components/Adornment/Adornment.d.ts +2 -11
- package/dist/components/Adornment/Adornment.js +6 -6
- package/dist/components/Advice/Advice.d.ts +17 -32
- package/dist/components/Advice/Advice.js +40 -39
- package/dist/components/Advice/Advice.stories.d.ts +3 -4
- package/dist/components/Autocomplete/Autocomplete.d.ts +42 -12
- package/dist/components/Autocomplete/Autocomplete.js +435 -425
- package/dist/components/Autocomplete/Autocomplete.stories.d.ts +25 -3
- package/dist/components/Button/Button.d.ts +0 -2
- package/dist/components/Button/Button.js +49 -51
- package/dist/components/Checkbox/Checkbox.js +52 -52
- package/dist/components/Chip/Chip.d.ts +4 -6
- package/dist/components/Chip/Chip.js +6 -10
- package/dist/components/Chip/Chip.stories.d.ts +15 -6
- package/dist/components/Dialog/Actions.js +1 -1
- package/dist/components/Dialog/Backdrop.d.ts +3 -3
- package/dist/components/Dialog/Backdrop.js +7 -8
- package/dist/components/Dialog/CloseIconButton.d.ts +2 -1
- package/dist/components/Dialog/CloseIconButton.js +18 -15
- package/dist/components/Dialog/Dialog.d.ts +10 -16
- package/dist/components/Dialog/Dialog.js +167 -167
- package/dist/components/Dialog/Dialog.stories.d.ts +69 -75
- package/dist/components/Dialog/DialogTitle.d.ts +2 -5
- package/dist/components/Dialog/DialogTitle.js +16 -22
- package/dist/components/EllipsisTooltip/EllipsisTooltip.js +17 -30
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -2
- package/dist/components/Icon/Icon.js +51 -331
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/IconButton/IconButton.js +42 -42
- package/dist/components/Input/Input.d.ts +5 -26
- package/dist/components/Input/Input.js +102 -514
- package/dist/components/Input/Input.stories.d.ts +21 -2
- package/dist/components/InputSearch/InputSearch.d.ts +7 -37
- package/dist/components/InputSearch/InputSearch.js +29 -27
- package/dist/components/InputSearch/InputSearch.stories.d.ts +3 -15
- package/dist/components/LoadingSpinner/LoadingSpinner.stories.d.ts +1 -1
- package/dist/components/PageHeader/PageHeader.d.ts +2 -6
- package/dist/components/PageHeader/PageHeader.js +71 -78
- package/dist/components/PageHeader/PageHeader.stories.d.ts +1 -3
- package/dist/components/Pagination/Pagination.d.ts +1 -5
- package/dist/components/Pagination/Pagination.js +91 -90
- package/dist/components/Pagination/Pagination.stories.d.ts +1 -1
- package/dist/components/RowItem/RowItem.d.ts +2 -2
- package/dist/components/RowItem/RowItem.js +5 -9
- package/dist/components/Select/Select.d.ts +0 -22
- package/dist/components/Select/Select.js +414 -476
- package/dist/components/Select/SelectButton.d.ts +0 -2
- package/dist/components/Select/SelectButton.js +2 -3
- package/dist/components/Skeleton/Skeleton.d.ts +1 -3
- package/dist/components/Skeleton/Skeleton.js +14 -20
- package/dist/components/Skeleton/SkeletonTable.stories.d.ts +1 -1
- package/dist/components/Snackbar/Snackbar.js +93 -93
- package/dist/components/Snackbar/Snackbar.stories.d.ts +1 -1
- package/dist/components/SortTooltip/SortTooltip.js +46 -46
- package/dist/components/Stepper/Stepper.js +35 -35
- package/dist/components/Table/Table.d.ts +1 -3
- package/dist/components/Table/Table.js +99 -87
- package/dist/components/Table/Table.stories.d.ts +1 -1
- package/dist/components/Tabs/Tab.d.ts +3 -5
- package/dist/components/Tabs/Tab.js +35 -36
- package/dist/components/Tabs/TabPanel.d.ts +2 -4
- package/dist/components/Tabs/TabPanel.js +38 -48
- package/dist/components/Tabs/Tabs.d.ts +4 -6
- package/dist/components/Tabs/Tabs.js +112 -115
- package/dist/components/TextDisplay/TextDisplay.d.ts +3 -7
- package/dist/components/TextDisplay/TextDisplay.js +37 -44
- package/dist/components/TextDisplay/TextDisplay.stories.d.ts +1 -2
- package/dist/components/Toggle/Toggle.js +55 -55
- package/dist/components/ToggleGroup/Group.d.ts +0 -2
- package/dist/components/ToggleGroup/Group.js +2 -4
- package/dist/components/ToggleGroup/Toggle.d.ts +0 -2
- package/dist/components/ToggleGroup/Toggle.js +4 -8
- package/dist/components/ToggleGroup/ToggleGroup.js +2 -2
- package/dist/components/ToggleGroup/ToggleGroup.stories.d.ts +1 -3
- package/dist/components/Tooltip/Tooltip.d.ts +1 -3
- package/dist/components/Tooltip/Tooltip.js +4 -4
- package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -2
- package/dist/components/Typography/Typography.js +47 -47
- package/dist/components/Typography/Typography.stories.d.ts +1 -1
- package/dist/contexts/SnackbarProvider/SnackbarProvider.js +30 -34
- package/dist/contexts/SnackbarProvider/SnackbarProvider.stories.d.ts +1 -1
- package/dist/{index-bQFToy-I.js → index-D3Wj0eid.js} +1 -1
- package/dist/main.d.ts +0 -8
- package/dist/main.js +79 -95
- package/dist/marola.css +1 -1
- package/dist/{ownerDocument-YGhwAnr1.js → ownerDocument-B61GUaFs.js} +1 -1
- package/dist/test-utils/assertStyles.d.ts +1 -1
- package/dist/{useButton-DcihopJG.js → useButton-Bn3MNH8I.js} +1 -1
- package/dist/{useList-B9C55YB7.js → useList-BpJT77u3.js} +2 -2
- package/dist/{useSlotProps-C_I1kEHr.js → useSlotProps-kRhf7Gil.js} +72 -73
- package/package.json +13 -22
- package/dist/Dialog.module-W7UCXlf3.js +0 -29
- package/dist/Group-DspH8hyO.js +0 -30
- package/dist/Popover.module-B4boCutS.js +0 -10
- package/dist/SelectButton-B38avP9u.js +0 -75
- package/dist/Toggle-MfR7l8Wn.js +0 -190
- package/dist/assets/Alert.css +0 -1
- package/dist/assets/Avatar.css +0 -1
- package/dist/assets/Description.css +0 -1
- package/dist/assets/Popover.css +0 -1
- package/dist/assets/RadioButton.css +0 -1
- package/dist/assets/ResultWithChips.css +0 -1
- package/dist/assets/StepperNavigator.css +0 -1
- package/dist/components/Adornment/Adornment.stories.d.ts +0 -14
- package/dist/components/Adornment/adornment.test.d.ts +0 -1
- package/dist/components/Alert/Alert.d.ts +0 -11
- package/dist/components/Alert/Alert.js +0 -46
- package/dist/components/Alert/Alert.stories.d.ts +0 -24
- package/dist/components/Alert/Alert.test.d.ts +0 -1
- package/dist/components/Avatar/Avatar.d.ts +0 -15
- package/dist/components/Avatar/Avatar.js +0 -51
- package/dist/components/Avatar/Avatar.stories.d.ts +0 -25
- package/dist/components/ConfirmationDialog/ConfirmationDialog.d.ts +0 -14
- package/dist/components/ConfirmationDialog/ConfirmationDialog.js +0 -37
- package/dist/components/ConfirmationDialog/ConfirmationDialog.stories.d.ts +0 -23
- package/dist/components/ConfirmationDialog/ConfirmationModal.test.d.ts +0 -1
- package/dist/components/Description/Description.d.ts +0 -21
- package/dist/components/Description/Description.js +0 -66
- package/dist/components/Description/Description.stories.d.ts +0 -22
- package/dist/components/Description/Description.test.d.ts +0 -1
- package/dist/components/PageHeader/PageHeader.test.d.ts +0 -1
- package/dist/components/Popover/Popover.d.ts +0 -32
- package/dist/components/Popover/Popover.js +0 -24
- package/dist/components/Popover/Popover.stories.d.ts +0 -34
- package/dist/components/Popover/PopoverBody.d.ts +0 -6
- package/dist/components/Popover/PopoverBody.js +0 -6
- package/dist/components/Popover/PopoverFooter.d.ts +0 -6
- package/dist/components/Popover/PopoverFooter.js +0 -6
- package/dist/components/Popover/PopoverHeader.d.ts +0 -6
- package/dist/components/Popover/PopoverHeader.js +0 -6
- package/dist/components/RadioButton/RadioButton.d.ts +0 -19
- package/dist/components/RadioButton/RadioButton.js +0 -37
- package/dist/components/RadioButton/RadioButton.stories.d.ts +0 -24
- package/dist/components/RadioButton/RadioButton.test.d.ts +0 -1
- package/dist/components/ResultWithChips/ResultWithChips.d.ts +0 -12
- package/dist/components/ResultWithChips/ResultWithChips.js +0 -33
- package/dist/components/RowItem/RowItem.stories.d.ts +0 -17
- package/dist/components/RowItem/rowItem.test.d.ts +0 -1
- package/dist/components/StepperNavigator/StepperNavigator.d.ts +0 -58
- package/dist/components/StepperNavigator/StepperNavigator.js +0 -115
- package/dist/components/StepperNavigator/StepperNavigator.stories.d.ts +0 -18
- package/dist/components/StepperNavigator/StepperNavigator.test.d.ts +0 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import '../../assets/Pagination.css';
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { c as
|
|
4
|
-
import { Select as
|
|
5
|
-
import
|
|
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
|
-
pagination:
|
|
15
|
-
"per-page-container": "_per-page-
|
|
16
|
-
"u-typography-base--xxl": "_u-typography-base--
|
|
17
|
-
"u-typography-base--xl": "_u-typography-base--
|
|
18
|
-
"u-typography-base--lg": "_u-typography-base--
|
|
19
|
-
"u-typography-base--sm": "_u-typography-base--
|
|
20
|
-
"u-typography-base--bold": "_u-typography-base--
|
|
21
|
-
"u-typography-base--strikethrough": "_u-typography-base--
|
|
22
|
-
"u-typography-base--underlined": "_u-typography-base--
|
|
23
|
-
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-
|
|
24
|
-
"per-page-container__select": "_per-page-
|
|
25
|
-
"pages-navigator-container": "_pages-navigator-
|
|
26
|
-
"page-item": "_page-
|
|
27
|
-
"page-number__btn": "_page-
|
|
28
|
-
"pages-navigator-container__previous-next-btn": "_pages-navigator-container__previous-next-
|
|
29
|
-
"page-number__btn--selected": "_page-number__btn--
|
|
30
|
-
},
|
|
2
|
+
import { jsxs as r, Fragment as p, jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import { c as o } from "../../clsx-DB4S2d7J.js";
|
|
4
|
+
import { Select as m } from "../Select/Select.js";
|
|
5
|
+
import I from "./usePagination.js";
|
|
6
|
+
const C = "_pagination_19imj_43", n = {
|
|
7
|
+
"u-typography-h1": "_u-typography-h1_19imj_1",
|
|
8
|
+
"u-typography-h2": "_u-typography-h2_19imj_8",
|
|
9
|
+
"u-typography-h3": "_u-typography-h3_19imj_15",
|
|
10
|
+
"u-typography-h4": "_u-typography-h4_19imj_22",
|
|
11
|
+
"u-typography-h5": "_u-typography-h5_19imj_29",
|
|
12
|
+
"u-typography-h6": "_u-typography-h6_19imj_36",
|
|
13
|
+
"u-typography-base": "_u-typography-base_19imj_43",
|
|
14
|
+
pagination: C,
|
|
15
|
+
"per-page-container": "_per-page-container_19imj_43",
|
|
16
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_19imj_48",
|
|
17
|
+
"u-typography-base--xl": "_u-typography-base--xl_19imj_52",
|
|
18
|
+
"u-typography-base--lg": "_u-typography-base--lg_19imj_56",
|
|
19
|
+
"u-typography-base--sm": "_u-typography-base--sm_19imj_60",
|
|
20
|
+
"u-typography-base--bold": "_u-typography-base--bold_19imj_64",
|
|
21
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_19imj_67",
|
|
22
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_19imj_70",
|
|
23
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_19imj_73",
|
|
24
|
+
"per-page-container__select": "_per-page-container__select_19imj_90",
|
|
25
|
+
"pages-navigator-container": "_pages-navigator-container_19imj_97",
|
|
26
|
+
"page-item": "_page-item_19imj_114",
|
|
27
|
+
"page-number__btn": "_page-number__btn_19imj_114",
|
|
28
|
+
"pages-navigator-container__previous-next-btn": "_pages-navigator-container__previous-next-btn_19imj_133",
|
|
29
|
+
"page-number__btn--selected": "_page-number__btn--selected_19imj_158"
|
|
30
|
+
}, k = {
|
|
31
31
|
pt: {
|
|
32
32
|
showing: "Exibindo",
|
|
33
33
|
of: "de",
|
|
@@ -44,106 +44,107 @@ const w = "_pagination_2n0nk_43", a = {
|
|
|
44
44
|
next: "Next",
|
|
45
45
|
perPage: "Items per page"
|
|
46
46
|
}
|
|
47
|
-
},
|
|
48
|
-
|
|
49
|
-
language: y = "en",
|
|
50
|
-
usePaginationProps: b = {},
|
|
51
|
-
...e
|
|
52
|
-
}) => {
|
|
53
|
-
const l = Math.ceil(e.totalItems / e.perPage), m = e.currentPage <= 1, k = e.currentPage >= l, v = { ...B[y], ...e.t || {} }, i = (n) => v[n], { items: x } = C({
|
|
47
|
+
}, L = ({ perPageOptions: g = [5, 10, 25, 50, 100], language: d = "en", ...e }) => {
|
|
48
|
+
const l = Math.ceil(e.totalItems / e.perPage), y = e.currentPage <= 1, b = e.currentPage >= l, v = { ...k[d], ...e.t || {} }, s = (t) => v[t], { items: j } = I({
|
|
54
49
|
count: l,
|
|
55
|
-
page: e.currentPage,
|
|
56
50
|
hideNextButton: !0,
|
|
57
51
|
hidePrevButton: !0,
|
|
52
|
+
page: e.currentPage,
|
|
58
53
|
siblingCount: 1,
|
|
59
|
-
boundaryCount: 2
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
/* @__PURE__ */ s(
|
|
54
|
+
boundaryCount: 2
|
|
55
|
+
}), c = e.perPage * (e.currentPage - 1) + 1, u = c + e.perPage - 1, x = u > e.totalItems ? u - e.totalItems : 0, P = u - x;
|
|
56
|
+
return /* @__PURE__ */ r("div", { className: o(n.pagination, e.className), "data-testid": e["data-testid"], children: [
|
|
57
|
+
/* @__PURE__ */ r(
|
|
64
58
|
"div",
|
|
65
59
|
{
|
|
66
|
-
className:
|
|
60
|
+
className: o(n["per-page-container"], e.classNamePerPage),
|
|
67
61
|
"data-testid": e["data-testid-per-page"],
|
|
68
62
|
children: [
|
|
69
|
-
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
|
|
63
|
+
g && /* @__PURE__ */ r(p, { children: [
|
|
64
|
+
/* @__PURE__ */ a("span", { children: s`perPage` }),
|
|
65
|
+
/* @__PURE__ */ a(
|
|
66
|
+
m,
|
|
73
67
|
{
|
|
74
|
-
className:
|
|
68
|
+
className: n["per-page-container__select"],
|
|
75
69
|
value: String(e.perPage),
|
|
76
|
-
onChange: (
|
|
77
|
-
children:
|
|
78
|
-
const
|
|
79
|
-
return /* @__PURE__ */
|
|
80
|
-
|
|
70
|
+
onChange: (t) => e.onRowsPerPageChange(Number(t)),
|
|
71
|
+
children: g == null ? void 0 : g.map((t) => {
|
|
72
|
+
const i = typeof t == "number";
|
|
73
|
+
return /* @__PURE__ */ a(
|
|
74
|
+
m.Option,
|
|
81
75
|
{
|
|
82
|
-
value: String(
|
|
83
|
-
children:
|
|
76
|
+
value: String(i ? t : t.value),
|
|
77
|
+
children: i ? t : t.label
|
|
84
78
|
},
|
|
85
|
-
`per-page__${
|
|
79
|
+
`per-page__${i ? t : t.value}`
|
|
86
80
|
);
|
|
87
81
|
})
|
|
88
82
|
}
|
|
89
83
|
)
|
|
90
84
|
] }),
|
|
91
|
-
/* @__PURE__ */
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
85
|
+
/* @__PURE__ */ r(
|
|
86
|
+
"div",
|
|
87
|
+
{
|
|
88
|
+
className: o(n["page-infos"], e.classNamePagesInfo),
|
|
89
|
+
"data-testid": e["data-testid-pages-info"],
|
|
90
|
+
children: [
|
|
91
|
+
/* @__PURE__ */ r("span", { children: [
|
|
92
|
+
c,
|
|
93
|
+
" - ",
|
|
94
|
+
P
|
|
95
|
+
] }),
|
|
96
|
+
" ",
|
|
97
|
+
/* @__PURE__ */ r("span", { children: [
|
|
98
|
+
s`of`,
|
|
99
|
+
" ",
|
|
100
|
+
/* @__PURE__ */ a("strong", { children: e.totalItems }),
|
|
101
|
+
" ",
|
|
102
|
+
s`results`
|
|
103
|
+
] })
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
)
|
|
106
107
|
]
|
|
107
108
|
}
|
|
108
109
|
),
|
|
109
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ r(
|
|
110
111
|
"div",
|
|
111
112
|
{
|
|
112
|
-
className:
|
|
113
|
+
className: o(n["pages-navigator-container"], e.classNamePagesNav),
|
|
113
114
|
"data-testid": e["data-testid-pages-nav"],
|
|
114
115
|
children: [
|
|
115
|
-
/* @__PURE__ */
|
|
116
|
+
/* @__PURE__ */ a(
|
|
116
117
|
"button",
|
|
117
118
|
{
|
|
118
|
-
className:
|
|
119
|
-
disabled:
|
|
119
|
+
className: n["pages-navigator-container__previous-next-btn"],
|
|
120
|
+
disabled: y,
|
|
120
121
|
onClick: () => e.onPageChange(e.currentPage - 1),
|
|
121
122
|
type: "button",
|
|
122
|
-
children:
|
|
123
|
+
children: s`previous`
|
|
123
124
|
},
|
|
124
125
|
"page__previous"
|
|
125
126
|
),
|
|
126
|
-
/* @__PURE__ */
|
|
127
|
-
let
|
|
128
|
-
return
|
|
127
|
+
/* @__PURE__ */ a("ul", { children: j.map(({ page: t, type: i, selected: N, ...f }, h) => {
|
|
128
|
+
let _ = /* @__PURE__ */ a(p, {});
|
|
129
|
+
return i === "start-ellipsis" || i === "end-ellipsis" ? _ = /* @__PURE__ */ a("span", { className: n["page-item"], children: "..." }) : i === "page" ? _ = /* @__PURE__ */ a(
|
|
129
130
|
"button",
|
|
130
131
|
{
|
|
131
|
-
className:
|
|
132
|
-
onClick: () => e.onPageChange(
|
|
132
|
+
className: o(n["page-number__btn"], N && n["page-number__btn--selected"]),
|
|
133
|
+
onClick: () => e.onPageChange(t || 0),
|
|
133
134
|
type: "button",
|
|
134
|
-
children:
|
|
135
|
+
children: t
|
|
135
136
|
},
|
|
136
137
|
`page__${h}`
|
|
137
|
-
) :
|
|
138
|
+
) : _ = /* @__PURE__ */ a("button", { type: "button", ...f, children: i }), /* @__PURE__ */ a("li", { children: _ }, h);
|
|
138
139
|
}) }),
|
|
139
|
-
/* @__PURE__ */
|
|
140
|
+
/* @__PURE__ */ a(
|
|
140
141
|
"button",
|
|
141
142
|
{
|
|
142
|
-
className:
|
|
143
|
-
disabled:
|
|
143
|
+
className: n["pages-navigator-container__previous-next-btn"],
|
|
144
|
+
disabled: b,
|
|
144
145
|
onClick: () => e.onPageChange(e.currentPage + 1),
|
|
145
146
|
type: "button",
|
|
146
|
-
children:
|
|
147
|
+
children: s`next`
|
|
147
148
|
},
|
|
148
149
|
"page__next"
|
|
149
150
|
)
|
|
@@ -153,6 +154,6 @@ const w = "_pagination_2n0nk_43", a = {
|
|
|
153
154
|
] });
|
|
154
155
|
};
|
|
155
156
|
export {
|
|
156
|
-
|
|
157
|
-
|
|
157
|
+
L as Pagination,
|
|
158
|
+
k as paginationDefaultTranslations
|
|
158
159
|
};
|
|
@@ -3,7 +3,7 @@ import { StoryObj } from '@storybook/react';
|
|
|
3
3
|
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: ({ perPageOptions, language,
|
|
6
|
+
component: ({ perPageOptions, language, ...props }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
tags: string[];
|
|
8
8
|
parameters: {
|
|
9
9
|
layout: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RequireAllOrNone } from '../../types/helpers';
|
|
2
|
-
import {
|
|
2
|
+
import { AdornmentSlotProps } from '../../main';
|
|
3
3
|
import { KeyboardEvent, MouseEvent, ReactNode } from 'react';
|
|
4
4
|
|
|
5
5
|
export type RowItemBaseProps = {
|
|
@@ -8,7 +8,7 @@ export type RowItemBaseProps = {
|
|
|
8
8
|
/** Buttons to render */
|
|
9
9
|
buttons?: ReactNode;
|
|
10
10
|
/** Left adornment */
|
|
11
|
-
leftAdornment?:
|
|
11
|
+
leftAdornment?: AdornmentSlotProps;
|
|
12
12
|
/** Whether the row is disabled (not interactable */
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
/** Space seperated list of CSS classes to apply */
|
|
@@ -4,20 +4,16 @@ import "../../clsx-DB4S2d7J.js";
|
|
|
4
4
|
import "../Adornment/Adornment.js";
|
|
5
5
|
import "../Icon/Icon.js";
|
|
6
6
|
import "../Typography/Typography.js";
|
|
7
|
-
import "../Input/Input.js";
|
|
8
|
-
import "../Avatar/Avatar.js";
|
|
9
7
|
import "../Button/Button.js";
|
|
10
|
-
import { R as
|
|
11
|
-
import "../Dialog/
|
|
8
|
+
import { R as I, R as b } from "../../Toggle-BSvvbKBp.js";
|
|
9
|
+
import "../Dialog/Backdrop.js";
|
|
12
10
|
import "../IconButton/IconButton.js";
|
|
13
|
-
import "../InputSearch/InputSearch.js";
|
|
14
11
|
import "../Select/Select.js";
|
|
15
|
-
import "../Popover/Popover.js";
|
|
16
12
|
import "../Table/Table.js";
|
|
17
13
|
import "../Tabs/Tabs.js";
|
|
18
|
-
import "../../Group-
|
|
14
|
+
import "../../Group-B3p31ftp.js";
|
|
19
15
|
import "../../contexts/SnackbarProvider/SnackbarProvider.js";
|
|
20
16
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
I as RowItem,
|
|
18
|
+
b as default
|
|
23
19
|
};
|
|
@@ -15,31 +15,9 @@ export type SelectProps = {
|
|
|
15
15
|
placeholder?: string;
|
|
16
16
|
prefix?: string;
|
|
17
17
|
className?: string;
|
|
18
|
-
name?: string;
|
|
19
|
-
id?: string;
|
|
20
18
|
value?: string;
|
|
21
|
-
label?: string;
|
|
22
|
-
classNameWrapper?: string;
|
|
23
|
-
classNameLabel?: string;
|
|
24
|
-
testIdLabel?: string;
|
|
25
|
-
testIdWrapper?: string;
|
|
26
19
|
'data-testid'?: string;
|
|
27
20
|
onChange?: (value: string | null, event?: React.SyntheticEvent<Element, Event> | null) => void;
|
|
28
|
-
fullWidth?: boolean;
|
|
29
|
-
/** Info message text */
|
|
30
|
-
infoMessage?: string;
|
|
31
|
-
/** Show the field layout as an error */
|
|
32
|
-
error?: boolean;
|
|
33
|
-
/** Error message text, if has "errorMessage", the "error" props will be "true" */
|
|
34
|
-
errorMessage?: string;
|
|
35
|
-
/** CSS classes to be applied on the info message element */
|
|
36
|
-
classNameInfoMessage?: string;
|
|
37
|
-
/** CSS classes to be applied on the error message element */
|
|
38
|
-
classNameErrorMessage?: string;
|
|
39
|
-
/** Id to be applied as `data-testid` on the info message element */
|
|
40
|
-
'data-testid-infoMessage'?: string;
|
|
41
|
-
/** Id to be applied as `data-testid` on the error message element */
|
|
42
|
-
'data-testid-errorMessage'?: string;
|
|
43
21
|
};
|
|
44
22
|
declare const Select: {
|
|
45
23
|
(props: SelectProps): import("react/jsx-runtime").JSX.Element;
|