@pismo/marola 1.0.0-beta.7 → 1.0.0-beta.9
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-f5brSwAI.js +175 -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/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/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.js +48 -48
- package/dist/components/Checkbox/Checkbox.js +52 -52
- package/dist/components/Chip/Chip.js +3 -3
- 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 +43 -43
- package/dist/components/Dialog/DialogTitle.js +1 -1
- package/dist/components/EllipsisTooltip/EllipsisTooltip.stories.d.ts +1 -1
- package/dist/components/IconButton/IconButton.js +42 -42
- package/dist/components/Input/Input.js +74 -471
- package/dist/components/PageHeader/PageHeader.js +57 -57
- package/dist/components/Pagination/Pagination.js +70 -70
- package/dist/components/RowItem/RowItem.js +2 -2
- package/dist/components/Select/Select.js +8 -7
- 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/Toggle/Toggle.js +55 -55
- 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 +1 -0
- package/dist/main.js +77 -75
- 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 +1 -1
- package/dist/Dialog.module-DFEmFdYT.js +0 -30
- package/dist/SelectButton-K3OIfR5m.js +0 -61
- package/dist/Toggle-BWF0-SPB.js +0 -175
- package/dist/useCompoundItem-D1iRfg8D.js +0 -84
- package/dist/useEventCallback-xTG9piMa.js +0 -45
|
@@ -1,85 +1,85 @@
|
|
|
1
1
|
import '../../assets/PageHeader.css';
|
|
2
|
-
import { jsx as a, jsxs as
|
|
2
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
3
3
|
import { useMemo as L } from "react";
|
|
4
|
-
import { c as
|
|
4
|
+
import { c as h } from "../../clsx-DB4S2d7J.js";
|
|
5
5
|
import { Icon as B } from "../Icon/Icon.js";
|
|
6
6
|
import { IconButton as C } from "../IconButton/IconButton.js";
|
|
7
|
-
const j = "
|
|
8
|
-
"u-typography-h1": "_u-typography-
|
|
9
|
-
"u-typography-h2": "_u-typography-
|
|
10
|
-
"u-typography-h3": "_u-typography-
|
|
11
|
-
"u-typography-h4": "_u-typography-
|
|
12
|
-
"page-header__main-left-content": "_page-header__main-left-
|
|
7
|
+
const j = "_title_1qpkd_22", w = "_subtitle_1qpkd_43", e = {
|
|
8
|
+
"u-typography-h1": "_u-typography-h1_1qpkd_1",
|
|
9
|
+
"u-typography-h2": "_u-typography-h2_1qpkd_8",
|
|
10
|
+
"u-typography-h3": "_u-typography-h3_1qpkd_15",
|
|
11
|
+
"u-typography-h4": "_u-typography-h4_1qpkd_22",
|
|
12
|
+
"page-header__main-left-content": "_page-header__main-left-content_1qpkd_22",
|
|
13
13
|
title: j,
|
|
14
|
-
"u-typography-h5": "_u-typography-
|
|
15
|
-
"u-typography-h6": "_u-typography-
|
|
16
|
-
"u-typography-base": "_u-typography-
|
|
14
|
+
"u-typography-h5": "_u-typography-h5_1qpkd_29",
|
|
15
|
+
"u-typography-h6": "_u-typography-h6_1qpkd_36",
|
|
16
|
+
"u-typography-base": "_u-typography-base_1qpkd_43",
|
|
17
17
|
subtitle: w,
|
|
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
|
-
"page-header": "_page-
|
|
27
|
-
"page-header__top-content": "_page-header__top-
|
|
28
|
-
"page-header__main-content": "_page-header__main-
|
|
29
|
-
"page-header__bottom-content": "_page-header__bottom-
|
|
30
|
-
"page-header__breadcrumb": "_page-
|
|
31
|
-
"page-header__breadcrumb__separator": "_page-
|
|
32
|
-
"page-header__main-right-content": "_page-header__main-right-
|
|
18
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_1qpkd_49",
|
|
19
|
+
"u-typography-base--xl": "_u-typography-base--xl_1qpkd_53",
|
|
20
|
+
"u-typography-base--lg": "_u-typography-base--lg_1qpkd_57",
|
|
21
|
+
"u-typography-base--sm": "_u-typography-base--sm_1qpkd_61",
|
|
22
|
+
"u-typography-base--bold": "_u-typography-base--bold_1qpkd_65",
|
|
23
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_1qpkd_68",
|
|
24
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_1qpkd_71",
|
|
25
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_1qpkd_74",
|
|
26
|
+
"page-header": "_page-header_1qpkd_22",
|
|
27
|
+
"page-header__top-content": "_page-header__top-content_1qpkd_87",
|
|
28
|
+
"page-header__main-content": "_page-header__main-content_1qpkd_90",
|
|
29
|
+
"page-header__bottom-content": "_page-header__bottom-content_1qpkd_90",
|
|
30
|
+
"page-header__breadcrumb": "_page-header__breadcrumb_1qpkd_104",
|
|
31
|
+
"page-header__breadcrumb__separator": "_page-header__breadcrumb__separator_1qpkd_109",
|
|
32
|
+
"page-header__main-right-content": "_page-header__main-right-content_1qpkd_132"
|
|
33
33
|
}, P = ({
|
|
34
|
-
title:
|
|
35
|
-
subtitle:
|
|
36
|
-
rightChildren:
|
|
37
|
-
bottomChildren:
|
|
38
|
-
classNameWrapper:
|
|
39
|
-
classNameTitle:
|
|
40
|
-
classNameSubtitle:
|
|
34
|
+
title: g,
|
|
35
|
+
subtitle: y,
|
|
36
|
+
rightChildren: n,
|
|
37
|
+
bottomChildren: c,
|
|
38
|
+
classNameWrapper: u,
|
|
39
|
+
classNameTitle: b,
|
|
40
|
+
classNameSubtitle: k,
|
|
41
41
|
"data-testid-wrapper": m,
|
|
42
|
-
"data-testid-title":
|
|
42
|
+
"data-testid-title": q,
|
|
43
43
|
"data-testid-subtitle": N,
|
|
44
44
|
...f
|
|
45
45
|
}) => {
|
|
46
46
|
const {
|
|
47
|
-
breadcrumb:
|
|
48
|
-
backLinkText:
|
|
49
|
-
onBackLinkClick:
|
|
50
|
-
classNameBackLink:
|
|
51
|
-
"data-testid-backLink":
|
|
47
|
+
breadcrumb: _,
|
|
48
|
+
backLinkText: r,
|
|
49
|
+
onBackLinkClick: d,
|
|
50
|
+
classNameBackLink: i,
|
|
51
|
+
"data-testid-backLink": l,
|
|
52
52
|
...x
|
|
53
53
|
} = f, v = L(() => {
|
|
54
|
-
const
|
|
55
|
-
return
|
|
56
|
-
label:
|
|
57
|
-
className:
|
|
58
|
-
"data-testid":
|
|
59
|
-
onClick:
|
|
60
|
-
}),
|
|
54
|
+
const p = [];
|
|
55
|
+
return r && d && p.push({
|
|
56
|
+
label: r,
|
|
57
|
+
className: i,
|
|
58
|
+
"data-testid": l,
|
|
59
|
+
onClick: d
|
|
60
|
+
}), _ && p.push(..._), /* @__PURE__ */ a("div", { className: e["page-header__top-content"], children: /* @__PURE__ */ a("div", { className: e["page-header__breadcrumb"], children: p.map((t, s) => /* @__PURE__ */ a(
|
|
61
61
|
C,
|
|
62
62
|
{
|
|
63
|
-
icon:
|
|
63
|
+
icon: s === 0 ? /* @__PURE__ */ a(B, { icon: "arrow-left" }) : /* @__PURE__ */ a("span", { className: e["page-header__breadcrumb__separator"], children: "/" }),
|
|
64
64
|
onClick: () => t.onClick && t.onClick(),
|
|
65
65
|
className: t.className,
|
|
66
66
|
"data-testid": t["data-testid"],
|
|
67
|
-
disabled:
|
|
67
|
+
disabled: p.length === 1 ? !1 : s === p.length - 1,
|
|
68
68
|
children: t.label
|
|
69
69
|
},
|
|
70
|
-
`${t.label}_${
|
|
70
|
+
`${t.label}_${s}`
|
|
71
71
|
)) }) });
|
|
72
|
-
}, [
|
|
73
|
-
return /* @__PURE__ */
|
|
72
|
+
}, [_, r, i, l, d]);
|
|
73
|
+
return /* @__PURE__ */ o("div", { className: h([e["page-header"], u]), "data-testid": m, ...x, children: [
|
|
74
74
|
v,
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
/* @__PURE__ */
|
|
77
|
-
/* @__PURE__ */ a("h1", { className:
|
|
78
|
-
/* @__PURE__ */ a("h2", { className:
|
|
75
|
+
/* @__PURE__ */ o("div", { className: e["page-header__main-content"], children: [
|
|
76
|
+
/* @__PURE__ */ o("div", { className: e["page-header__main-left-content"], children: [
|
|
77
|
+
/* @__PURE__ */ a("h1", { className: h(e.title, b), "data-testid": q, children: g }),
|
|
78
|
+
/* @__PURE__ */ a("h2", { className: h(e.subtitle, k), "data-testid": N, children: y })
|
|
79
79
|
] }),
|
|
80
|
-
|
|
80
|
+
n && /* @__PURE__ */ a("div", { className: e["page-header__main-right-content"], children: n })
|
|
81
81
|
] }),
|
|
82
|
-
|
|
82
|
+
c && /* @__PURE__ */ a("div", { className: e["page-header__bottom-content"], children: c })
|
|
83
83
|
] });
|
|
84
84
|
};
|
|
85
85
|
export {
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import '../../assets/Pagination.css';
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as s, Fragment as p, jsx as t } from "react/jsx-runtime";
|
|
3
3
|
import { c as o } from "../../clsx-DB4S2d7J.js";
|
|
4
|
-
import { Select as
|
|
4
|
+
import { Select as d } from "../Select/Select.js";
|
|
5
5
|
import I from "./usePagination.js";
|
|
6
|
-
const C = "
|
|
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-
|
|
6
|
+
const C = "_pagination_2n0nk_43", a = {
|
|
7
|
+
"u-typography-h1": "_u-typography-h1_2n0nk_1",
|
|
8
|
+
"u-typography-h2": "_u-typography-h2_2n0nk_8",
|
|
9
|
+
"u-typography-h3": "_u-typography-h3_2n0nk_15",
|
|
10
|
+
"u-typography-h4": "_u-typography-h4_2n0nk_22",
|
|
11
|
+
"u-typography-h5": "_u-typography-h5_2n0nk_29",
|
|
12
|
+
"u-typography-h6": "_u-typography-h6_2n0nk_36",
|
|
13
|
+
"u-typography-base": "_u-typography-base_2n0nk_43",
|
|
14
14
|
pagination: C,
|
|
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
|
-
},
|
|
15
|
+
"per-page-container": "_per-page-container_2n0nk_43",
|
|
16
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_2n0nk_49",
|
|
17
|
+
"u-typography-base--xl": "_u-typography-base--xl_2n0nk_53",
|
|
18
|
+
"u-typography-base--lg": "_u-typography-base--lg_2n0nk_57",
|
|
19
|
+
"u-typography-base--sm": "_u-typography-base--sm_2n0nk_61",
|
|
20
|
+
"u-typography-base--bold": "_u-typography-base--bold_2n0nk_65",
|
|
21
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_2n0nk_68",
|
|
22
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_2n0nk_71",
|
|
23
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_2n0nk_74",
|
|
24
|
+
"per-page-container__select": "_per-page-container__select_2n0nk_91",
|
|
25
|
+
"pages-navigator-container": "_pages-navigator-container_2n0nk_98",
|
|
26
|
+
"page-item": "_page-item_2n0nk_115",
|
|
27
|
+
"page-number__btn": "_page-number__btn_2n0nk_115",
|
|
28
|
+
"pages-navigator-container__previous-next-btn": "_pages-navigator-container__previous-next-btn_2n0nk_134",
|
|
29
|
+
"page-number__btn--selected": "_page-number__btn--selected_2n0nk_159"
|
|
30
|
+
}, w = {
|
|
31
31
|
pt: {
|
|
32
32
|
showing: "Exibindo",
|
|
33
33
|
of: "de",
|
|
@@ -44,8 +44,8 @@ const C = "_pagination_19imj_43", n = {
|
|
|
44
44
|
next: "Next",
|
|
45
45
|
perPage: "Items per page"
|
|
46
46
|
}
|
|
47
|
-
},
|
|
48
|
-
const l = Math.ceil(e.totalItems / e.perPage),
|
|
47
|
+
}, j = ({ perPageOptions: g = [5, 10, 25, 50, 100], language: y = "en", ...e }) => {
|
|
48
|
+
const l = Math.ceil(e.totalItems / e.perPage), b = e.currentPage <= 1, m = e.currentPage >= l, k = { ...w[y], ...e.t || {} }, i = (n) => k[n], { items: v } = I({
|
|
49
49
|
count: l,
|
|
50
50
|
hideNextButton: !0,
|
|
51
51
|
hidePrevButton: !0,
|
|
@@ -53,53 +53,53 @@ const C = "_pagination_19imj_43", n = {
|
|
|
53
53
|
siblingCount: 1,
|
|
54
54
|
boundaryCount: 2
|
|
55
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__ */
|
|
57
|
-
/* @__PURE__ */
|
|
56
|
+
return /* @__PURE__ */ s("div", { className: o(a.pagination, e.className), "data-testid": e["data-testid"], children: [
|
|
57
|
+
/* @__PURE__ */ s(
|
|
58
58
|
"div",
|
|
59
59
|
{
|
|
60
|
-
className: o(
|
|
60
|
+
className: o(a["per-page-container"], e.classNamePerPage),
|
|
61
61
|
"data-testid": e["data-testid-per-page"],
|
|
62
62
|
children: [
|
|
63
|
-
g && /* @__PURE__ */
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
|
|
63
|
+
g && /* @__PURE__ */ s(p, { children: [
|
|
64
|
+
/* @__PURE__ */ t("span", { children: i`perPage` }),
|
|
65
|
+
/* @__PURE__ */ t(
|
|
66
|
+
d,
|
|
67
67
|
{
|
|
68
|
-
className:
|
|
68
|
+
className: a["per-page-container__select"],
|
|
69
69
|
value: String(e.perPage),
|
|
70
|
-
onChange: (
|
|
71
|
-
children: g == null ? void 0 : g.map((
|
|
72
|
-
const
|
|
73
|
-
return /* @__PURE__ */
|
|
74
|
-
|
|
70
|
+
onChange: (n) => e.onRowsPerPageChange(Number(n)),
|
|
71
|
+
children: g == null ? void 0 : g.map((n) => {
|
|
72
|
+
const r = typeof n == "number";
|
|
73
|
+
return /* @__PURE__ */ t(
|
|
74
|
+
d.Option,
|
|
75
75
|
{
|
|
76
|
-
value: String(
|
|
77
|
-
children:
|
|
76
|
+
value: String(r ? n : n.value),
|
|
77
|
+
children: r ? n : n.label
|
|
78
78
|
},
|
|
79
|
-
`per-page__${
|
|
79
|
+
`per-page__${r ? n : n.value}`
|
|
80
80
|
);
|
|
81
81
|
})
|
|
82
82
|
}
|
|
83
83
|
)
|
|
84
84
|
] }),
|
|
85
|
-
/* @__PURE__ */
|
|
85
|
+
/* @__PURE__ */ s(
|
|
86
86
|
"div",
|
|
87
87
|
{
|
|
88
|
-
className: o(
|
|
88
|
+
className: o(a["page-infos"], e.classNamePagesInfo),
|
|
89
89
|
"data-testid": e["data-testid-pages-info"],
|
|
90
90
|
children: [
|
|
91
|
-
/* @__PURE__ */
|
|
91
|
+
/* @__PURE__ */ s("span", { children: [
|
|
92
92
|
c,
|
|
93
93
|
" - ",
|
|
94
94
|
P
|
|
95
95
|
] }),
|
|
96
96
|
" ",
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
|
|
97
|
+
/* @__PURE__ */ s("span", { children: [
|
|
98
|
+
i`of`,
|
|
99
99
|
" ",
|
|
100
|
-
/* @__PURE__ */
|
|
100
|
+
/* @__PURE__ */ t("strong", { children: e.totalItems }),
|
|
101
101
|
" ",
|
|
102
|
-
|
|
102
|
+
i`results`
|
|
103
103
|
] })
|
|
104
104
|
]
|
|
105
105
|
}
|
|
@@ -107,44 +107,44 @@ const C = "_pagination_19imj_43", n = {
|
|
|
107
107
|
]
|
|
108
108
|
}
|
|
109
109
|
),
|
|
110
|
-
/* @__PURE__ */
|
|
110
|
+
/* @__PURE__ */ s(
|
|
111
111
|
"div",
|
|
112
112
|
{
|
|
113
|
-
className: o(
|
|
113
|
+
className: o(a["pages-navigator-container"], e.classNamePagesNav),
|
|
114
114
|
"data-testid": e["data-testid-pages-nav"],
|
|
115
115
|
children: [
|
|
116
|
-
/* @__PURE__ */
|
|
116
|
+
/* @__PURE__ */ t(
|
|
117
117
|
"button",
|
|
118
118
|
{
|
|
119
|
-
className:
|
|
120
|
-
disabled:
|
|
119
|
+
className: a["pages-navigator-container__previous-next-btn"],
|
|
120
|
+
disabled: b,
|
|
121
121
|
onClick: () => e.onPageChange(e.currentPage - 1),
|
|
122
122
|
type: "button",
|
|
123
|
-
children:
|
|
123
|
+
children: i`previous`
|
|
124
124
|
},
|
|
125
125
|
"page__previous"
|
|
126
126
|
),
|
|
127
|
-
/* @__PURE__ */
|
|
128
|
-
let _ = /* @__PURE__ */
|
|
129
|
-
return
|
|
127
|
+
/* @__PURE__ */ t("ul", { children: v.map(({ page: n, type: r, selected: N, ...f }, h) => {
|
|
128
|
+
let _ = /* @__PURE__ */ t(p, {});
|
|
129
|
+
return r === "start-ellipsis" || r === "end-ellipsis" ? _ = /* @__PURE__ */ t("span", { className: a["page-item"], children: "..." }) : r === "page" ? _ = /* @__PURE__ */ t(
|
|
130
130
|
"button",
|
|
131
131
|
{
|
|
132
|
-
className: o(
|
|
133
|
-
onClick: () => e.onPageChange(
|
|
132
|
+
className: o(a["page-number__btn"], N && a["page-number__btn--selected"]),
|
|
133
|
+
onClick: () => e.onPageChange(n || 0),
|
|
134
134
|
type: "button",
|
|
135
|
-
children:
|
|
135
|
+
children: n
|
|
136
136
|
},
|
|
137
137
|
`page__${h}`
|
|
138
|
-
) : _ = /* @__PURE__ */
|
|
138
|
+
) : _ = /* @__PURE__ */ t("button", { type: "button", ...f, children: r }), /* @__PURE__ */ t("li", { children: _ }, h);
|
|
139
139
|
}) }),
|
|
140
|
-
/* @__PURE__ */
|
|
140
|
+
/* @__PURE__ */ t(
|
|
141
141
|
"button",
|
|
142
142
|
{
|
|
143
|
-
className:
|
|
144
|
-
disabled:
|
|
143
|
+
className: a["pages-navigator-container__previous-next-btn"],
|
|
144
|
+
disabled: m,
|
|
145
145
|
onClick: () => e.onPageChange(e.currentPage + 1),
|
|
146
146
|
type: "button",
|
|
147
|
-
children:
|
|
147
|
+
children: i`next`
|
|
148
148
|
},
|
|
149
149
|
"page__next"
|
|
150
150
|
)
|
|
@@ -154,6 +154,6 @@ const C = "_pagination_19imj_43", n = {
|
|
|
154
154
|
] });
|
|
155
155
|
};
|
|
156
156
|
export {
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
j as Pagination,
|
|
158
|
+
w as paginationDefaultTranslations
|
|
159
159
|
};
|
|
@@ -3,10 +3,10 @@ import "react";
|
|
|
3
3
|
import "../../clsx-DB4S2d7J.js";
|
|
4
4
|
import "../Adornment/Adornment.js";
|
|
5
5
|
import "../Icon/Icon.js";
|
|
6
|
+
import "../Typography/Typography.js";
|
|
6
7
|
import "../Button/Button.js";
|
|
7
|
-
import { R as I, R as b } from "../../Toggle-
|
|
8
|
+
import { R as I, R as b } from "../../Toggle-f5brSwAI.js";
|
|
8
9
|
import "../Dialog/Backdrop.js";
|
|
9
|
-
import "../Typography/Typography.js";
|
|
10
10
|
import "../IconButton/IconButton.js";
|
|
11
11
|
import "../Select/Select.js";
|
|
12
12
|
import "../Table/Table.js";
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { jsx as h, jsxs as Oe } from "react/jsx-runtime";
|
|
2
2
|
import { c as _e } from "../../clsx-DB4S2d7J.js";
|
|
3
3
|
import { Typography as Ke } from "../Typography/Typography.js";
|
|
4
|
-
import { s as L, S as ze } from "../../SelectButton-
|
|
5
|
-
import { g as Ve, a as we, u as X, f as ne, b as g, P as l, _ as ke, c as le, d as Ie, e as Ne } from "../../
|
|
4
|
+
import { s as L, S as ze } from "../../SelectButton-CoOT2txy.js";
|
|
5
|
+
import { g as Ve, a as we, u as X, f as ne, b as g, P as l, _ as ke, c as le, d as Ie, e as Ne } from "../../useSlotProps-kRhf7Gil.js";
|
|
6
6
|
import * as s from "react";
|
|
7
|
-
import { u as Je, c as se, a as ye, L as Q } from "../../combineHooksSlotProps-
|
|
8
|
-
import { u as Me } from "../../useButton-
|
|
9
|
-
import { u as Te
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
7
|
+
import { u as Je, c as se, a as ye, L as Q } from "../../combineHooksSlotProps-BtBYUV_B.js";
|
|
8
|
+
import { u as Me } from "../../useButton-Bn3MNH8I.js";
|
|
9
|
+
import { u as Te } from "../../useId-BW-oWmul.js";
|
|
10
|
+
import { u as We, a as Ge, C as Qe } from "../../useCompoundItem-B7Eo_qZk.js";
|
|
11
|
+
import { P as Xe } from "../../Popup-lLWZt2wk.js";
|
|
12
|
+
import { m as ve, h as Ye, l as Ze, u as et } from "../../useList-BpJT77u3.js";
|
|
12
13
|
import { u as tt } from "../../useEnhancedEffect-CJGo-L3B.js";
|
|
13
14
|
const ot = {
|
|
14
15
|
border: 0,
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../clsx-DB4S2d7J.js";
|
|
4
4
|
import "../Typography/Typography.js";
|
|
5
|
-
import { S as e } from "../../SelectButton-
|
|
5
|
+
import { S as e } from "../../SelectButton-CoOT2txy.js";
|
|
6
6
|
export {
|
|
7
7
|
e as SelectButton
|
|
8
8
|
};
|