@pismo/marola 0.0.1-alpha.19 → 0.0.1-alpha.20
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/Dialog.module-DFEmFdYT.js +30 -0
- package/dist/SelectButton-C8JQKaf4.js +61 -0
- package/dist/assets/Advice.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Checkbox.css +1 -1
- package/dist/assets/Chip.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/Typography.css +1 -1
- package/dist/components/Advice/Advice.js +32 -17
- package/dist/components/Button/Button.js +56 -85
- package/dist/components/Checkbox/Checkbox.js +57 -42
- package/dist/components/Chip/Chip.js +81 -111
- package/dist/components/Dialog/Actions.js +1 -1
- package/dist/components/Dialog/Backdrop.js +1 -1
- package/dist/components/Dialog/CloseIconButton.js +1 -1
- package/dist/components/Dialog/Dialog.d.ts +1 -1
- package/dist/components/Dialog/Dialog.js +2 -2
- package/dist/components/Dialog/{Title.d.ts → DialogTitle.d.ts} +3 -3
- package/dist/components/Dialog/DialogTitle.js +29 -0
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.js +31 -25
- package/dist/components/IconButton/IconButton.js +34 -64
- package/dist/components/Input/Input.js +241 -229
- package/dist/components/PageHeader/PageHeader.js +52 -37
- package/dist/components/Pagination/Pagination.js +127 -113
- package/dist/components/Select/Select.js +2 -2
- package/dist/components/Select/SelectButton.js +1 -1
- package/dist/components/Snackbar/Snackbar.js +176 -161
- package/dist/components/SortTooltip/SortTooltip.js +53 -38
- package/dist/components/Stepper/Stepper.js +37 -22
- package/dist/components/Table/Table.d.ts +33 -16
- package/dist/components/Table/Table.js +98 -81
- package/dist/components/Table/Table.stories.d.ts +29 -0
- package/dist/components/Table/_Table.TBody.stories.d.ts +14 -0
- package/dist/components/Table/_Table.THead.stories.d.ts +14 -0
- package/dist/components/Table/_Table.Td.stories.d.ts +16 -0
- package/dist/components/Table/_Table.Th.stories.d.ts +15 -0
- package/dist/components/Table/_Table.Tr.stories.d.ts +15 -0
- package/dist/components/TextDisplay/TextDisplay.js +13 -13
- package/dist/components/Toggle/Toggle.js +138 -123
- package/dist/components/Typography/Typography.d.ts +1 -1
- package/dist/components/Typography/Typography.js +54 -84
- package/dist/main.js +42 -37
- package/dist/marola.css +1 -1
- package/dist/utils/styleStrings.d.ts +1 -1
- package/dist/utils/styleStrings.js +7 -7
- package/package.json +1 -1
- package/dist/Dialog.module-B8COssqi.js +0 -15
- package/dist/SelectButton-pciwIWcj.js +0 -46
- package/dist/components/Dialog/Title.js +0 -29
|
@@ -1,51 +1,66 @@
|
|
|
1
1
|
import '../../assets/PageHeader.css';
|
|
2
2
|
import { jsxs as a, jsx as t } from "react/jsx-runtime";
|
|
3
|
-
import { c as
|
|
4
|
-
import * as
|
|
5
|
-
const
|
|
3
|
+
import { c as _ } from "../../clsx-DB4S2d7J.js";
|
|
4
|
+
import * as g from "react";
|
|
5
|
+
const j = (r) => /* @__PURE__ */ g.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", "data-waves-icon": "fa/solid/arrow-left", fill: "currentColor", color: "currentColor", width: "1em", height: "1em", style: {
|
|
6
6
|
fill: "currentcolor",
|
|
7
7
|
color: "currentcolor",
|
|
8
8
|
width: "1em",
|
|
9
9
|
height: "1em"
|
|
10
|
-
}, ...
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"page-header__main-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
10
|
+
}, ...r }, /* @__PURE__ */ g.createElement("path", { d: "M447.1 256C447.1 273.7 433.7 288 416 288H109.3l105.4 105.4c12.5 12.5 12.5 32.75 0 45.25C208.4 444.9 200.2 448 192 448s-16.38-3.125-22.62-9.375l-160-160c-12.5-12.5-12.5-32.75 0-45.25l160-160c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25L109.3 224H416C433.7 224 447.1 238.3 447.1 256z" })), f = "_subtitle_8gwjb_43", v = "_title_8gwjb_48", e = {
|
|
11
|
+
"u-typography-h1": "_u-typography-h1_8gwjb_1",
|
|
12
|
+
"u-typography-h2": "_u-typography-h2_8gwjb_8",
|
|
13
|
+
"u-typography-h3": "_u-typography-h3_8gwjb_15",
|
|
14
|
+
"u-typography-h4": "_u-typography-h4_8gwjb_22",
|
|
15
|
+
"u-typography-h5": "_u-typography-h5_8gwjb_29",
|
|
16
|
+
"u-typography-h6": "_u-typography-h6_8gwjb_36",
|
|
17
|
+
"u-typography-base": "_u-typography-base_8gwjb_43",
|
|
18
|
+
"page-header__main-left-content": "_page-header__main-left-content_8gwjb_43",
|
|
19
|
+
subtitle: f,
|
|
20
|
+
"page-header__top-content": "_page-header__top-content_8gwjb_43",
|
|
21
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_8gwjb_48",
|
|
22
|
+
title: v,
|
|
23
|
+
"u-typography-base--xl": "_u-typography-base--xl_8gwjb_52",
|
|
24
|
+
"u-typography-base--lg": "_u-typography-base--lg_8gwjb_56",
|
|
25
|
+
"u-typography-base--sm": "_u-typography-base--sm_8gwjb_60",
|
|
26
|
+
"u-typography-base--bold": "_u-typography-base--bold_8gwjb_64",
|
|
27
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_8gwjb_67",
|
|
28
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_8gwjb_70",
|
|
29
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_8gwjb_73",
|
|
30
|
+
"page-header": "_page-header_8gwjb_43",
|
|
31
|
+
"page-header__main-content": "_page-header__main-content_8gwjb_89",
|
|
32
|
+
"page-header__bottom-content": "_page-header__bottom-content_8gwjb_89",
|
|
33
|
+
"page-header__main-right-content": "_page-header__main-right-content_8gwjb_128"
|
|
34
|
+
}, k = ({
|
|
35
|
+
title: r,
|
|
36
|
+
subtitle: s,
|
|
37
|
+
backLinkText: o,
|
|
38
|
+
onBackLinkClick: n,
|
|
39
|
+
rightChildren: p,
|
|
40
|
+
bottomChildren: h,
|
|
41
|
+
classNameWrapper: i,
|
|
42
|
+
classNameBackLink: d,
|
|
43
|
+
classNameTitle: l,
|
|
44
|
+
classNameSubtitle: y,
|
|
45
|
+
"data-testid-wrapper": c,
|
|
46
|
+
"data-testid-backLink": b,
|
|
47
|
+
"data-testid-title": u,
|
|
48
|
+
"data-testid-subtitle": m,
|
|
49
|
+
...w
|
|
50
|
+
}) => /* @__PURE__ */ a("div", { className: _([e["page-header"], i]), "data-testid": c, ...w, children: [
|
|
51
|
+
o && /* @__PURE__ */ t("div", { className: e["page-header__top-content"], children: /* @__PURE__ */ a("button", { type: "button", onClick: n, className: d, "data-testid": b, children: [
|
|
52
|
+
/* @__PURE__ */ t(j, { fontSize: 16 }),
|
|
53
|
+
o
|
|
39
54
|
] }) }),
|
|
40
55
|
/* @__PURE__ */ a("div", { className: e["page-header__main-content"], children: [
|
|
41
56
|
/* @__PURE__ */ a("div", { className: e["page-header__main-left-content"], children: [
|
|
42
|
-
/* @__PURE__ */ t("h1", { className:
|
|
43
|
-
/* @__PURE__ */ t("h2", { className:
|
|
57
|
+
/* @__PURE__ */ t("h1", { className: _(e.title, l), "data-testid": u, children: r }),
|
|
58
|
+
/* @__PURE__ */ t("h2", { className: _(e.subtitle, y), "data-testid": m, children: s })
|
|
44
59
|
] }),
|
|
45
|
-
|
|
60
|
+
p && /* @__PURE__ */ t("div", { className: e["page-header__main-right-content"], children: p })
|
|
46
61
|
] }),
|
|
47
|
-
|
|
62
|
+
h && /* @__PURE__ */ t("div", { className: e["page-header__bottom-content"], children: h })
|
|
48
63
|
] });
|
|
49
64
|
export {
|
|
50
|
-
|
|
65
|
+
k as PageHeader
|
|
51
66
|
};
|
|
@@ -1,114 +1,128 @@
|
|
|
1
1
|
import '../../assets/Pagination.css';
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { c as
|
|
4
|
-
import { Select as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { u as
|
|
7
|
-
const
|
|
8
|
-
function
|
|
2
|
+
import { jsxs as b, jsx as r, Fragment as k } from "react/jsx-runtime";
|
|
3
|
+
import { c as y } from "../../clsx-DB4S2d7J.js";
|
|
4
|
+
import { Select as w } from "../Select/Select.js";
|
|
5
|
+
import { _ as I, b as A } from "../../index-CH45lKw7.js";
|
|
6
|
+
import { u as E } from "../../useControlled-CCMYYdCM.js";
|
|
7
|
+
const $ = ["boundaryCount", "componentName", "count", "defaultPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "showFirstButton", "showLastButton", "siblingCount"];
|
|
8
|
+
function R(g = {}) {
|
|
9
9
|
const {
|
|
10
10
|
boundaryCount: a = 1,
|
|
11
11
|
componentName: e = "usePagination",
|
|
12
|
-
count:
|
|
13
|
-
defaultPage:
|
|
14
|
-
disabled:
|
|
15
|
-
hideNextButton:
|
|
16
|
-
hidePrevButton:
|
|
17
|
-
onChange:
|
|
18
|
-
page:
|
|
19
|
-
showFirstButton:
|
|
12
|
+
count: o = 1,
|
|
13
|
+
defaultPage: m = 1,
|
|
14
|
+
disabled: h = !1,
|
|
15
|
+
hideNextButton: v = !1,
|
|
16
|
+
hidePrevButton: d = !1,
|
|
17
|
+
onChange: c,
|
|
18
|
+
page: t,
|
|
19
|
+
showFirstButton: i = !1,
|
|
20
20
|
showLastButton: x = !1,
|
|
21
|
-
siblingCount:
|
|
22
|
-
} = g,
|
|
23
|
-
controlled:
|
|
24
|
-
default:
|
|
21
|
+
siblingCount: _ = 1
|
|
22
|
+
} = g, p = I(g, $), [s, M] = E({
|
|
23
|
+
controlled: t,
|
|
24
|
+
default: m,
|
|
25
25
|
name: e,
|
|
26
26
|
state: "page"
|
|
27
|
-
}),
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
const
|
|
27
|
+
}), P = (n, l) => {
|
|
28
|
+
t || M(l), c && c(n, l);
|
|
29
|
+
}, f = (n, l) => {
|
|
30
|
+
const D = l - n + 1;
|
|
31
31
|
return Array.from({
|
|
32
|
-
length:
|
|
33
|
-
}, (
|
|
34
|
-
},
|
|
32
|
+
length: D
|
|
33
|
+
}, (q, F) => n + F);
|
|
34
|
+
}, S = f(1, Math.min(a, o)), C = f(Math.max(o - a + 1, a + 1), o), z = Math.max(
|
|
35
35
|
Math.min(
|
|
36
36
|
// Natural start
|
|
37
|
-
|
|
37
|
+
s - _,
|
|
38
38
|
// Lower boundary when page is high
|
|
39
|
-
|
|
39
|
+
o - a - _ * 2 - 1
|
|
40
40
|
),
|
|
41
41
|
// Greater than startPages
|
|
42
42
|
a + 2
|
|
43
|
-
),
|
|
43
|
+
), N = Math.min(
|
|
44
44
|
Math.max(
|
|
45
45
|
// Natural end
|
|
46
|
-
|
|
46
|
+
s + _,
|
|
47
47
|
// Upper boundary when page is low
|
|
48
|
-
a +
|
|
48
|
+
a + _ * 2 + 2
|
|
49
49
|
),
|
|
50
50
|
// Less than endPages
|
|
51
|
-
|
|
52
|
-
),
|
|
53
|
-
...
|
|
54
|
-
...
|
|
55
|
-
...
|
|
51
|
+
C.length > 0 ? C[0] - 2 : o - 1
|
|
52
|
+
), L = [
|
|
53
|
+
...i ? ["first"] : [],
|
|
54
|
+
...d ? [] : ["previous"],
|
|
55
|
+
...S,
|
|
56
56
|
// Start ellipsis
|
|
57
57
|
// eslint-disable-next-line no-nested-ternary
|
|
58
|
-
...
|
|
58
|
+
...z > a + 2 ? ["start-ellipsis"] : a + 1 < o - a ? [a + 1] : [],
|
|
59
59
|
// Sibling pages
|
|
60
|
-
...
|
|
60
|
+
...f(z, N),
|
|
61
61
|
// End ellipsis
|
|
62
62
|
// eslint-disable-next-line no-nested-ternary
|
|
63
|
-
...
|
|
64
|
-
...
|
|
65
|
-
...
|
|
63
|
+
...N < o - a - 1 ? ["end-ellipsis"] : o - a > a ? [o - a] : [],
|
|
64
|
+
...C,
|
|
65
|
+
...v ? [] : ["next"],
|
|
66
66
|
...x ? ["last"] : []
|
|
67
|
-
],
|
|
68
|
-
switch (
|
|
67
|
+
], B = (n) => {
|
|
68
|
+
switch (n) {
|
|
69
69
|
case "first":
|
|
70
70
|
return 1;
|
|
71
71
|
case "previous":
|
|
72
|
-
return
|
|
72
|
+
return s - 1;
|
|
73
73
|
case "next":
|
|
74
|
-
return
|
|
74
|
+
return s + 1;
|
|
75
75
|
case "last":
|
|
76
|
-
return
|
|
76
|
+
return o;
|
|
77
77
|
default:
|
|
78
78
|
return null;
|
|
79
79
|
}
|
|
80
|
-
},
|
|
81
|
-
onClick: (
|
|
82
|
-
|
|
80
|
+
}, j = L.map((n) => typeof n == "number" ? {
|
|
81
|
+
onClick: (l) => {
|
|
82
|
+
P(l, n);
|
|
83
83
|
},
|
|
84
84
|
type: "page",
|
|
85
|
-
page:
|
|
86
|
-
selected:
|
|
87
|
-
disabled:
|
|
88
|
-
"aria-current":
|
|
85
|
+
page: n,
|
|
86
|
+
selected: n === s,
|
|
87
|
+
disabled: h,
|
|
88
|
+
"aria-current": n === s ? "true" : void 0
|
|
89
89
|
} : {
|
|
90
|
-
onClick: (
|
|
91
|
-
|
|
90
|
+
onClick: (l) => {
|
|
91
|
+
P(l, B(n));
|
|
92
92
|
},
|
|
93
|
-
type:
|
|
94
|
-
page:
|
|
93
|
+
type: n,
|
|
94
|
+
page: B(n),
|
|
95
95
|
selected: !1,
|
|
96
|
-
disabled:
|
|
96
|
+
disabled: h || n.indexOf("ellipsis") === -1 && (n === "next" || n === "last" ? s >= o : s <= 1)
|
|
97
97
|
});
|
|
98
|
-
return
|
|
99
|
-
items:
|
|
100
|
-
},
|
|
98
|
+
return A({
|
|
99
|
+
items: j
|
|
100
|
+
}, p);
|
|
101
101
|
}
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
|
|
111
|
-
|
|
102
|
+
const T = "_pagination_ondmz_43", u = {
|
|
103
|
+
"u-typography-h1": "_u-typography-h1_ondmz_1",
|
|
104
|
+
"u-typography-h2": "_u-typography-h2_ondmz_8",
|
|
105
|
+
"u-typography-h3": "_u-typography-h3_ondmz_15",
|
|
106
|
+
"u-typography-h4": "_u-typography-h4_ondmz_22",
|
|
107
|
+
"u-typography-h5": "_u-typography-h5_ondmz_29",
|
|
108
|
+
"u-typography-h6": "_u-typography-h6_ondmz_36",
|
|
109
|
+
"u-typography-base": "_u-typography-base_ondmz_43",
|
|
110
|
+
pagination: T,
|
|
111
|
+
"per-page-container": "_per-page-container_ondmz_43",
|
|
112
|
+
"u-typography-base--xxl": "_u-typography-base--xxl_ondmz_48",
|
|
113
|
+
"u-typography-base--xl": "_u-typography-base--xl_ondmz_52",
|
|
114
|
+
"u-typography-base--lg": "_u-typography-base--lg_ondmz_56",
|
|
115
|
+
"u-typography-base--sm": "_u-typography-base--sm_ondmz_60",
|
|
116
|
+
"u-typography-base--bold": "_u-typography-base--bold_ondmz_64",
|
|
117
|
+
"u-typography-base--strikethrough": "_u-typography-base--strikethrough_ondmz_67",
|
|
118
|
+
"u-typography-base--underlined": "_u-typography-base--underlined_ondmz_70",
|
|
119
|
+
"u-typography-base--strikethrough-underlined": "_u-typography-base--strikethrough-underlined_ondmz_73",
|
|
120
|
+
"pages-navigator-container": "_pages-navigator-container_ondmz_96",
|
|
121
|
+
"pages-navigator-container__label": "_pages-navigator-container__label_ondmz_107",
|
|
122
|
+
"page-number__btn": "_page-number__btn_ondmz_107",
|
|
123
|
+
"pages-navigator-container__previous-next-btn": "_pages-navigator-container__previous-next-btn_ondmz_120",
|
|
124
|
+
"page-number__btn--selected": "_page-number__btn--selected_ondmz_145"
|
|
125
|
+
}, W = {
|
|
112
126
|
pt: {
|
|
113
127
|
showing: "Exibindo",
|
|
114
128
|
of: "de",
|
|
@@ -124,90 +138,90 @@ const W = "_pagination_n3y7g_1", l = {
|
|
|
124
138
|
next: "Next"
|
|
125
139
|
}
|
|
126
140
|
}, U = ({ perPageOptions: g = [5, 10, 25, 50, 100], language: a = "en", ...e }) => {
|
|
127
|
-
const
|
|
128
|
-
count:
|
|
141
|
+
const o = Math.ceil(e.totalItems / e.perPage), m = e.currentPage <= 1, h = e.currentPage >= o, v = e.t || W[a], d = (t) => v[t], { items: c } = R({
|
|
142
|
+
count: o,
|
|
129
143
|
hideNextButton: !0,
|
|
130
144
|
hidePrevButton: !0,
|
|
131
145
|
page: e.currentPage,
|
|
132
146
|
siblingCount: 1,
|
|
133
147
|
boundaryCount: 2,
|
|
134
|
-
onChange: (
|
|
148
|
+
onChange: (t, i) => e.onPageChange(i)
|
|
135
149
|
});
|
|
136
|
-
return /* @__PURE__ */
|
|
137
|
-
/* @__PURE__ */
|
|
150
|
+
return /* @__PURE__ */ b("div", { className: y(u.pagination, e.className), "data-testid": e["data-testid"], children: [
|
|
151
|
+
/* @__PURE__ */ r(
|
|
138
152
|
"div",
|
|
139
153
|
{
|
|
140
|
-
className:
|
|
154
|
+
className: y(u["per-page-container"], e.classNamePerPage),
|
|
141
155
|
"data-testid": e["data-testid-per-page"],
|
|
142
|
-
children: g && /* @__PURE__ */
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
-
|
|
156
|
+
children: g && /* @__PURE__ */ b(k, { children: [
|
|
157
|
+
/* @__PURE__ */ r("span", { children: d`showing` }),
|
|
158
|
+
/* @__PURE__ */ r(
|
|
159
|
+
w,
|
|
146
160
|
{
|
|
147
|
-
className:
|
|
161
|
+
className: u["per-page-container__select"],
|
|
148
162
|
value: String(e.perPage),
|
|
149
|
-
onChange: (
|
|
150
|
-
children: g == null ? void 0 : g.map((
|
|
151
|
-
const
|
|
152
|
-
return /* @__PURE__ */
|
|
153
|
-
|
|
163
|
+
onChange: (t) => e.onRowsPerPageChange(Number(t)),
|
|
164
|
+
children: g == null ? void 0 : g.map((t) => {
|
|
165
|
+
const i = typeof t == "number";
|
|
166
|
+
return /* @__PURE__ */ r(
|
|
167
|
+
w.Option,
|
|
154
168
|
{
|
|
155
|
-
value: String(
|
|
156
|
-
children:
|
|
169
|
+
value: String(i ? t : t.value),
|
|
170
|
+
children: i ? t : t.label
|
|
157
171
|
},
|
|
158
|
-
`per-page__${
|
|
172
|
+
`per-page__${i ? t : t.value}`
|
|
159
173
|
);
|
|
160
174
|
})
|
|
161
175
|
}
|
|
162
176
|
),
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
|
|
177
|
+
/* @__PURE__ */ b("span", { children: [
|
|
178
|
+
d`of`,
|
|
165
179
|
" ",
|
|
166
|
-
/* @__PURE__ */
|
|
180
|
+
/* @__PURE__ */ r("strong", { children: e.totalItems }),
|
|
167
181
|
" ",
|
|
168
|
-
|
|
182
|
+
d`results`
|
|
169
183
|
] })
|
|
170
184
|
] })
|
|
171
185
|
}
|
|
172
186
|
),
|
|
173
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ b(
|
|
174
188
|
"div",
|
|
175
189
|
{
|
|
176
|
-
className:
|
|
190
|
+
className: y(u["pages-navigator-container"], e.classNamePagesNav),
|
|
177
191
|
"data-testid": e["data-testid-pages-nav"],
|
|
178
192
|
children: [
|
|
179
|
-
/* @__PURE__ */
|
|
193
|
+
/* @__PURE__ */ r(
|
|
180
194
|
"button",
|
|
181
195
|
{
|
|
182
|
-
className:
|
|
183
|
-
disabled:
|
|
196
|
+
className: u["pages-navigator-container__previous-next-btn"],
|
|
197
|
+
disabled: m,
|
|
184
198
|
onClick: () => e.onPageChange(e.currentPage - 1),
|
|
185
199
|
type: "button",
|
|
186
|
-
children:
|
|
200
|
+
children: d`previous`
|
|
187
201
|
},
|
|
188
202
|
"page__previous"
|
|
189
203
|
),
|
|
190
|
-
/* @__PURE__ */
|
|
191
|
-
let
|
|
192
|
-
return
|
|
204
|
+
/* @__PURE__ */ r("ul", { children: c.map(({ page: t, type: i, selected: x, ..._ }, p) => {
|
|
205
|
+
let s = /* @__PURE__ */ r(k, {});
|
|
206
|
+
return i === "start-ellipsis" || i === "end-ellipsis" ? s = /* @__PURE__ */ r("span", { className: u["pages-navigator-container__label"], children: "..." }) : i === "page" ? s = /* @__PURE__ */ r(
|
|
193
207
|
"button",
|
|
194
208
|
{
|
|
195
|
-
className:
|
|
196
|
-
onClick: () => e.onPageChange(
|
|
209
|
+
className: y(u["page-number__btn"], x && u["page-number__btn--selected"]),
|
|
210
|
+
onClick: () => e.onPageChange(t || 0),
|
|
197
211
|
type: "button",
|
|
198
|
-
children:
|
|
212
|
+
children: t
|
|
199
213
|
},
|
|
200
|
-
`page__${
|
|
201
|
-
) :
|
|
214
|
+
`page__${p}`
|
|
215
|
+
) : s = /* @__PURE__ */ r("button", { type: "button", ..._, children: i }), /* @__PURE__ */ r("li", { children: s }, p);
|
|
202
216
|
}) }),
|
|
203
|
-
/* @__PURE__ */
|
|
217
|
+
/* @__PURE__ */ r(
|
|
204
218
|
"button",
|
|
205
219
|
{
|
|
206
|
-
className:
|
|
207
|
-
disabled:
|
|
220
|
+
className: u["pages-navigator-container__previous-next-btn"],
|
|
221
|
+
disabled: h,
|
|
208
222
|
onClick: () => e.onPageChange(e.currentPage + 1),
|
|
209
223
|
type: "button",
|
|
210
|
-
children:
|
|
224
|
+
children: d`next`
|
|
211
225
|
},
|
|
212
226
|
"page__next"
|
|
213
227
|
)
|
|
@@ -218,5 +232,5 @@ const W = "_pagination_n3y7g_1", l = {
|
|
|
218
232
|
};
|
|
219
233
|
export {
|
|
220
234
|
U as Pagination,
|
|
221
|
-
|
|
235
|
+
W as paginationDefaultTranslations
|
|
222
236
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
4
|
+
import { s as L, S as ze } from "../../SelectButton-C8JQKaf4.js";
|
|
5
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 "../../index-CH45lKw7.js";
|
|
6
6
|
import * as s from "react";
|
|
7
7
|
import { u as Je, c as se, a as ye, L as Q } from "../../combineHooksSlotProps-DVjg9PRh.js";
|
|
@@ -827,7 +827,7 @@ const ht = (n) => {
|
|
|
827
827
|
},
|
|
828
828
|
children: [
|
|
829
829
|
i ? /* @__PURE__ */ h("span", { className: L.select__listbox__option__icon, children: i }) : "",
|
|
830
|
-
/* @__PURE__ */ h(Ke, {
|
|
830
|
+
/* @__PURE__ */ h(Ke, { className: L.select__listbox__option__text, children: o })
|
|
831
831
|
]
|
|
832
832
|
}
|
|
833
833
|
);
|
|
@@ -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-C8JQKaf4.js";
|
|
6
6
|
export {
|
|
7
7
|
e as SelectButton
|
|
8
8
|
};
|