@amateescu/portal-ui-components 0.0.7-beta2 → 0.0.7-beta3
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/{GridPagination-DX1ANwBF.js → GridPagination-DrNedBid.js} +93 -93
- package/dist/components/CustomPagination/index.d.ts +7 -9
- package/dist/components/CustomPagination/index.js +266 -267
- package/dist/components/TotalDataGrid/index.js +1 -1
- package/dist/types/CustomSvg.d.ts +5 -0
- package/dist/types/CustomSvg.js +1 -0
- package/package.json +1 -1
|
@@ -7577,114 +7577,114 @@ process.env.NODE_ENV !== "production" && (Ea.propTypes = {
|
|
|
7577
7577
|
component: t.elementType
|
|
7578
7578
|
});
|
|
7579
7579
|
export {
|
|
7580
|
-
|
|
7580
|
+
Li as $,
|
|
7581
7581
|
Cr as A,
|
|
7582
|
-
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7582
|
+
Xo as B,
|
|
7583
|
+
Wt as C,
|
|
7584
|
+
qt as D,
|
|
7585
|
+
K as E,
|
|
7586
7586
|
Hs as F,
|
|
7587
7587
|
Ea as G,
|
|
7588
7588
|
at as H,
|
|
7589
7589
|
rt as I,
|
|
7590
|
-
|
|
7591
|
-
|
|
7590
|
+
re as J,
|
|
7591
|
+
Mi as K,
|
|
7592
7592
|
qs as L,
|
|
7593
|
-
|
|
7594
|
-
|
|
7593
|
+
Nn as M,
|
|
7594
|
+
en as N,
|
|
7595
7595
|
Kt as O,
|
|
7596
7596
|
yt as P,
|
|
7597
|
-
|
|
7598
|
-
|
|
7597
|
+
_a as Q,
|
|
7598
|
+
Ha as R,
|
|
7599
7599
|
Yt as S,
|
|
7600
|
-
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
|
|
7606
|
-
|
|
7607
|
-
|
|
7600
|
+
Ya as T,
|
|
7601
|
+
qa as U,
|
|
7602
|
+
Qi as V,
|
|
7603
|
+
Ji as W,
|
|
7604
|
+
na as X,
|
|
7605
|
+
Ni as Y,
|
|
7606
|
+
Ka as Z,
|
|
7607
|
+
Aa as _,
|
|
7608
7608
|
Gn as a,
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
|
|
7622
|
-
|
|
7623
|
-
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
|
|
7629
|
-
|
|
7630
|
-
|
|
7631
|
-
|
|
7632
|
-
|
|
7633
|
-
|
|
7634
|
-
|
|
7635
|
-
|
|
7609
|
+
$a as a0,
|
|
7610
|
+
dt as a1,
|
|
7611
|
+
ro as a2,
|
|
7612
|
+
ea as a3,
|
|
7613
|
+
Zt as a4,
|
|
7614
|
+
aa as a5,
|
|
7615
|
+
il as a6,
|
|
7616
|
+
lo as a7,
|
|
7617
|
+
ra as a8,
|
|
7618
|
+
xt as a9,
|
|
7619
|
+
nl as aA,
|
|
7620
|
+
Ja as aB,
|
|
7621
|
+
el as aC,
|
|
7622
|
+
rl as aD,
|
|
7623
|
+
Wa as aE,
|
|
7624
|
+
Hi as aF,
|
|
7625
|
+
Fa as aG,
|
|
7626
|
+
Mo as aH,
|
|
7627
|
+
Qa as aI,
|
|
7628
|
+
ja as aJ,
|
|
7629
|
+
Ua as aK,
|
|
7630
|
+
oa as aL,
|
|
7631
|
+
ia as aM,
|
|
7632
|
+
Va as aN,
|
|
7633
|
+
Io as aO,
|
|
7634
|
+
ol as aP,
|
|
7635
|
+
ya as aQ,
|
|
7636
7636
|
Vn as aR,
|
|
7637
7637
|
Ae as aS,
|
|
7638
7638
|
No as aT,
|
|
7639
|
-
|
|
7640
|
-
|
|
7641
|
-
|
|
7642
|
-
|
|
7643
|
-
|
|
7644
|
-
|
|
7645
|
-
|
|
7646
|
-
|
|
7647
|
-
|
|
7648
|
-
|
|
7649
|
-
|
|
7650
|
-
|
|
7651
|
-
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
|
|
7660
|
-
|
|
7661
|
-
|
|
7662
|
-
|
|
7663
|
-
|
|
7664
|
-
|
|
7665
|
-
|
|
7639
|
+
Qt as aa,
|
|
7640
|
+
La as ab,
|
|
7641
|
+
So as ac,
|
|
7642
|
+
ki as ad,
|
|
7643
|
+
Bi as ae,
|
|
7644
|
+
za as af,
|
|
7645
|
+
Xa as ag,
|
|
7646
|
+
ko as ah,
|
|
7647
|
+
sl as ai,
|
|
7648
|
+
pt as aj,
|
|
7649
|
+
To as ak,
|
|
7650
|
+
Ba as al,
|
|
7651
|
+
Zi as am,
|
|
7652
|
+
Da as an,
|
|
7653
|
+
Co as ao,
|
|
7654
|
+
Eo as ap,
|
|
7655
|
+
xo as aq,
|
|
7656
|
+
Oo as ar,
|
|
7657
|
+
Za as as,
|
|
7658
|
+
ga as at,
|
|
7659
|
+
Jt as au,
|
|
7660
|
+
Ga as av,
|
|
7661
|
+
Ro as aw,
|
|
7662
|
+
wt as ax,
|
|
7663
|
+
tl as ay,
|
|
7664
|
+
va as az,
|
|
7665
|
+
Dt as b,
|
|
7666
7666
|
ut as c,
|
|
7667
|
-
|
|
7668
|
-
|
|
7669
|
-
|
|
7670
|
-
|
|
7671
|
-
|
|
7667
|
+
Ge as d,
|
|
7668
|
+
Xn as e,
|
|
7669
|
+
Be as f,
|
|
7670
|
+
Ke as g,
|
|
7671
|
+
ke as h,
|
|
7672
7672
|
st as i,
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7673
|
+
Qe as j,
|
|
7674
|
+
Ut as k,
|
|
7675
|
+
ct as l,
|
|
7676
|
+
jn as m,
|
|
7677
|
+
Na as n,
|
|
7678
7678
|
ge as o,
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7679
|
+
Oa as p,
|
|
7680
|
+
Jn as q,
|
|
7681
|
+
Vt as r,
|
|
7682
|
+
jt as s,
|
|
7683
|
+
Et as t,
|
|
7684
7684
|
dn as u,
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7685
|
+
Ma as v,
|
|
7686
|
+
ka as w,
|
|
7687
|
+
yn as x,
|
|
7688
|
+
Ht as y,
|
|
7689
|
+
zt as z
|
|
7690
7690
|
};
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type PortalSvg = FunctionComponent<SVGProps<SVGSVGElement> & {
|
|
3
|
-
title?: string;
|
|
4
|
-
}>;
|
|
1
|
+
import { default as CustomSvg } from '../../types/CustomSvg';
|
|
5
2
|
type ExternalPaginationProps = {
|
|
6
3
|
isRtl: boolean;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
pageCount: number;
|
|
5
|
+
arrowFirstIcon: CustomSvg;
|
|
6
|
+
arrowLastIcon: CustomSvg;
|
|
7
|
+
nextIcon: CustomSvg;
|
|
8
|
+
previousIcon: CustomSvg;
|
|
11
9
|
};
|
|
12
|
-
export declare function CustomPagination({ isRtl, arrowFirstIcon, arrowLastIcon, nextIcon, previousIcon }: ExternalPaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function CustomPagination({ isRtl, pageCount, arrowFirstIcon, arrowLastIcon, nextIcon, previousIcon }: ExternalPaginationProps): import("react/jsx-runtime").JSX.Element;
|
|
13
11
|
export {};
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import { _, a as c } from "../../index-kNWC7pFF.js";
|
|
1
|
+
import { jsx as b, jsxs as Y } from "react/jsx-runtime";
|
|
2
|
+
import { _, a as l } from "../../index-kNWC7pFF.js";
|
|
4
3
|
import * as D from "react";
|
|
5
|
-
import { g as
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
import { g as G, a as S, u as w, c as T, b as q, s as A, d as W, m as B, P as o } from "../../generateUtilityClasses-BzhjuzcK.js";
|
|
5
|
+
import { u as Z, c as H, a as aa, L as U, F, i as M, G as ta } from "../../GridPagination-DrNedBid.js";
|
|
6
|
+
import { B as oa } from "../../ButtonBase-CHdm_9Jj.js";
|
|
7
|
+
function ea(a) {
|
|
8
|
+
return G("MuiPagination", a);
|
|
9
9
|
}
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
function
|
|
10
|
+
S("MuiPagination", ["root", "ul", "outlined", "text"]);
|
|
11
|
+
const na = ["boundaryCount", "componentName", "count", "defaultPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "showFirstButton", "showLastButton", "siblingCount"];
|
|
12
|
+
function sa(a = {}) {
|
|
13
13
|
const {
|
|
14
|
-
boundaryCount:
|
|
14
|
+
boundaryCount: t = 1,
|
|
15
15
|
componentName: e = "usePagination",
|
|
16
16
|
count: n = 1,
|
|
17
|
-
defaultPage:
|
|
18
|
-
disabled:
|
|
19
|
-
hideNextButton:
|
|
20
|
-
hidePrevButton:
|
|
21
|
-
onChange:
|
|
22
|
-
page:
|
|
23
|
-
showFirstButton:
|
|
24
|
-
showLastButton:
|
|
25
|
-
siblingCount:
|
|
26
|
-
} = a,
|
|
27
|
-
controlled:
|
|
28
|
-
default:
|
|
17
|
+
defaultPage: c = 1,
|
|
18
|
+
disabled: p = !1,
|
|
19
|
+
hideNextButton: u = !1,
|
|
20
|
+
hidePrevButton: r = !1,
|
|
21
|
+
onChange: g,
|
|
22
|
+
page: f,
|
|
23
|
+
showFirstButton: C = !1,
|
|
24
|
+
showLastButton: I = !1,
|
|
25
|
+
siblingCount: P = 1
|
|
26
|
+
} = a, d = _(a, na), [i, k] = Z({
|
|
27
|
+
controlled: f,
|
|
28
|
+
default: c,
|
|
29
29
|
name: e,
|
|
30
30
|
state: "page"
|
|
31
31
|
}), N = (s, O) => {
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
const
|
|
32
|
+
f || k(O), g && g(s, O);
|
|
33
|
+
}, y = (s, O) => {
|
|
34
|
+
const Q = O - s + 1;
|
|
35
35
|
return Array.from({
|
|
36
|
-
length:
|
|
37
|
-
}, (
|
|
38
|
-
},
|
|
36
|
+
length: Q
|
|
37
|
+
}, (xa, X) => s + X);
|
|
38
|
+
}, z = y(1, Math.min(t, n)), x = y(Math.max(n - t + 1, t + 1), n), R = Math.max(
|
|
39
39
|
Math.min(
|
|
40
40
|
// Natural start
|
|
41
|
-
i -
|
|
41
|
+
i - P,
|
|
42
42
|
// Lower boundary when page is high
|
|
43
|
-
n -
|
|
43
|
+
n - t - P * 2 - 1
|
|
44
44
|
),
|
|
45
45
|
// Greater than startPages
|
|
46
|
-
|
|
47
|
-
),
|
|
46
|
+
t + 2
|
|
47
|
+
), $ = Math.min(
|
|
48
48
|
Math.max(
|
|
49
49
|
// Natural end
|
|
50
|
-
i +
|
|
50
|
+
i + P,
|
|
51
51
|
// Upper boundary when page is low
|
|
52
|
-
|
|
52
|
+
t + P * 2 + 2
|
|
53
53
|
),
|
|
54
54
|
// Less than endPages
|
|
55
|
-
|
|
55
|
+
x.length > 0 ? x[0] - 2 : n - 1
|
|
56
56
|
), h = [
|
|
57
|
-
...
|
|
58
|
-
...
|
|
59
|
-
...
|
|
57
|
+
...C ? ["first"] : [],
|
|
58
|
+
...r ? [] : ["previous"],
|
|
59
|
+
...z,
|
|
60
60
|
// Start ellipsis
|
|
61
61
|
// eslint-disable-next-line no-nested-ternary
|
|
62
|
-
...
|
|
62
|
+
...R > t + 2 ? ["start-ellipsis"] : t + 1 < n - t ? [t + 1] : [],
|
|
63
63
|
// Sibling pages
|
|
64
|
-
...
|
|
64
|
+
...y(R, $),
|
|
65
65
|
// End ellipsis
|
|
66
66
|
// eslint-disable-next-line no-nested-ternary
|
|
67
|
-
|
|
68
|
-
...
|
|
69
|
-
...
|
|
70
|
-
|
|
67
|
+
...$ < n - t - 1 ? ["end-ellipsis"] : n - t > t ? [n - t] : [],
|
|
68
|
+
...x,
|
|
69
|
+
...u ? [] : ["next"],
|
|
70
|
+
...I ? ["last"] : []
|
|
71
71
|
], L = (s) => {
|
|
72
72
|
switch (s) {
|
|
73
73
|
case "first":
|
|
@@ -88,7 +88,7 @@ function pa(a = {}) {
|
|
|
88
88
|
type: "page",
|
|
89
89
|
page: s,
|
|
90
90
|
selected: s === i,
|
|
91
|
-
disabled:
|
|
91
|
+
disabled: p,
|
|
92
92
|
"aria-current": s === i ? "true" : void 0
|
|
93
93
|
} : {
|
|
94
94
|
onClick: (O) => {
|
|
@@ -97,36 +97,36 @@ function pa(a = {}) {
|
|
|
97
97
|
type: s,
|
|
98
98
|
page: L(s),
|
|
99
99
|
selected: !1,
|
|
100
|
-
disabled:
|
|
100
|
+
disabled: p || s.indexOf("ellipsis") === -1 && (s === "next" || s === "last" ? i >= n : i <= 1)
|
|
101
101
|
});
|
|
102
|
-
return
|
|
102
|
+
return l({
|
|
103
103
|
items: m
|
|
104
|
-
},
|
|
104
|
+
}, d);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
return
|
|
106
|
+
function ia(a) {
|
|
107
|
+
return G("MuiPaginationItem", a);
|
|
108
108
|
}
|
|
109
|
-
const
|
|
109
|
+
const v = S("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "text", "textPrimary", "textSecondary", "outlined", "outlinedPrimary", "outlinedSecondary", "rounded", "ellipsis", "firstLast", "previousNext", "focusVisible", "disabled", "selected", "icon", "colorPrimary", "colorSecondary"]), V = H(/* @__PURE__ */ b("path", {
|
|
110
110
|
d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
|
|
111
|
-
}), "NavigateBefore"),
|
|
111
|
+
}), "NavigateBefore"), E = H(/* @__PURE__ */ b("path", {
|
|
112
112
|
d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
113
|
-
}), "NavigateNext"),
|
|
113
|
+
}), "NavigateNext"), ra = ["className", "color", "component", "components", "disabled", "page", "selected", "shape", "size", "slots", "type", "variant"], J = (a, t) => {
|
|
114
114
|
const {
|
|
115
115
|
ownerState: e
|
|
116
116
|
} = a;
|
|
117
|
-
return [
|
|
118
|
-
},
|
|
117
|
+
return [t.root, t[e.variant], t[`size${T(e.size)}`], e.variant === "text" && t[`text${T(e.color)}`], e.variant === "outlined" && t[`outlined${T(e.color)}`], e.shape === "rounded" && t.rounded, e.type === "page" && t.page, (e.type === "start-ellipsis" || e.type === "end-ellipsis") && t.ellipsis, (e.type === "previous" || e.type === "next") && t.previousNext, (e.type === "first" || e.type === "last") && t.firstLast];
|
|
118
|
+
}, la = (a) => {
|
|
119
119
|
const {
|
|
120
|
-
classes:
|
|
120
|
+
classes: t,
|
|
121
121
|
color: e,
|
|
122
122
|
disabled: n,
|
|
123
|
-
selected:
|
|
124
|
-
size:
|
|
125
|
-
shape:
|
|
126
|
-
type:
|
|
127
|
-
variant:
|
|
128
|
-
} = a,
|
|
129
|
-
root: ["root", `size${
|
|
123
|
+
selected: c,
|
|
124
|
+
size: p,
|
|
125
|
+
shape: u,
|
|
126
|
+
type: r,
|
|
127
|
+
variant: g
|
|
128
|
+
} = a, f = {
|
|
129
|
+
root: ["root", `size${T(p)}`, g, u, e !== "standard" && `color${T(e)}`, e !== "standard" && `${g}${T(e)}`, n && "disabled", c && "selected", {
|
|
130
130
|
page: "page",
|
|
131
131
|
first: "firstLast",
|
|
132
132
|
last: "firstLast",
|
|
@@ -134,18 +134,18 @@ const g = q("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
134
134
|
"end-ellipsis": "ellipsis",
|
|
135
135
|
previous: "previousNext",
|
|
136
136
|
next: "previousNext"
|
|
137
|
-
}[
|
|
137
|
+
}[r]],
|
|
138
138
|
icon: ["icon"]
|
|
139
139
|
};
|
|
140
|
-
return
|
|
141
|
-
},
|
|
140
|
+
return q(f, ia, t);
|
|
141
|
+
}, ca = A("div", {
|
|
142
142
|
name: "MuiPaginationItem",
|
|
143
143
|
slot: "Root",
|
|
144
|
-
overridesResolver:
|
|
144
|
+
overridesResolver: J
|
|
145
145
|
})(({
|
|
146
146
|
theme: a,
|
|
147
|
-
ownerState:
|
|
148
|
-
}) =>
|
|
147
|
+
ownerState: t
|
|
148
|
+
}) => l({}, a.typography.body2, {
|
|
149
149
|
borderRadius: 32 / 2,
|
|
150
150
|
textAlign: "center",
|
|
151
151
|
boxSizing: "border-box",
|
|
@@ -154,27 +154,27 @@ const g = q("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
154
154
|
margin: "0 3px",
|
|
155
155
|
color: (a.vars || a).palette.text.primary,
|
|
156
156
|
height: "auto",
|
|
157
|
-
[`&.${
|
|
157
|
+
[`&.${v.disabled}`]: {
|
|
158
158
|
opacity: (a.vars || a).palette.action.disabledOpacity
|
|
159
159
|
}
|
|
160
|
-
},
|
|
160
|
+
}, t.size === "small" && {
|
|
161
161
|
minWidth: 26,
|
|
162
162
|
borderRadius: 26 / 2,
|
|
163
163
|
margin: "0 1px",
|
|
164
164
|
padding: "0 4px"
|
|
165
|
-
},
|
|
165
|
+
}, t.size === "large" && {
|
|
166
166
|
minWidth: 40,
|
|
167
167
|
borderRadius: 40 / 2,
|
|
168
168
|
padding: "0 10px",
|
|
169
169
|
fontSize: a.typography.pxToRem(15)
|
|
170
|
-
})),
|
|
170
|
+
})), pa = A(oa, {
|
|
171
171
|
name: "MuiPaginationItem",
|
|
172
172
|
slot: "Root",
|
|
173
|
-
overridesResolver:
|
|
173
|
+
overridesResolver: J
|
|
174
174
|
})(({
|
|
175
175
|
theme: a,
|
|
176
|
-
ownerState:
|
|
177
|
-
}) =>
|
|
176
|
+
ownerState: t
|
|
177
|
+
}) => l({}, a.typography.body2, {
|
|
178
178
|
borderRadius: 32 / 2,
|
|
179
179
|
textAlign: "center",
|
|
180
180
|
boxSizing: "border-box",
|
|
@@ -183,10 +183,10 @@ const g = q("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
183
183
|
padding: "0 6px",
|
|
184
184
|
margin: "0 3px",
|
|
185
185
|
color: (a.vars || a).palette.text.primary,
|
|
186
|
-
[`&.${
|
|
186
|
+
[`&.${v.focusVisible}`]: {
|
|
187
187
|
backgroundColor: (a.vars || a).palette.action.focus
|
|
188
188
|
},
|
|
189
|
-
[`&.${
|
|
189
|
+
[`&.${v.disabled}`]: {
|
|
190
190
|
opacity: (a.vars || a).palette.action.disabledOpacity
|
|
191
191
|
},
|
|
192
192
|
transition: a.transitions.create(["color", "background-color"], {
|
|
@@ -199,7 +199,7 @@ const g = q("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
199
199
|
backgroundColor: "transparent"
|
|
200
200
|
}
|
|
201
201
|
},
|
|
202
|
-
[`&.${
|
|
202
|
+
[`&.${v.selected}`]: {
|
|
203
203
|
backgroundColor: (a.vars || a).palette.action.selected,
|
|
204
204
|
"&:hover": {
|
|
205
205
|
backgroundColor: a.vars ? `rgba(${a.vars.palette.action.selectedChannel} / calc(${a.vars.palette.action.selectedOpacity} + ${a.vars.palette.action.hoverOpacity}))` : B(a.palette.action.selected, a.palette.action.selectedOpacity + a.palette.action.hoverOpacity),
|
|
@@ -208,139 +208,139 @@ const g = q("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
208
208
|
backgroundColor: (a.vars || a).palette.action.selected
|
|
209
209
|
}
|
|
210
210
|
},
|
|
211
|
-
[`&.${
|
|
211
|
+
[`&.${v.focusVisible}`]: {
|
|
212
212
|
backgroundColor: a.vars ? `rgba(${a.vars.palette.action.selectedChannel} / calc(${a.vars.palette.action.selectedOpacity} + ${a.vars.palette.action.focusOpacity}))` : B(a.palette.action.selected, a.palette.action.selectedOpacity + a.palette.action.focusOpacity)
|
|
213
213
|
},
|
|
214
|
-
[`&.${
|
|
214
|
+
[`&.${v.disabled}`]: {
|
|
215
215
|
opacity: 1,
|
|
216
216
|
color: (a.vars || a).palette.action.disabled,
|
|
217
217
|
backgroundColor: (a.vars || a).palette.action.selected
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
},
|
|
220
|
+
}, t.size === "small" && {
|
|
221
221
|
minWidth: 26,
|
|
222
222
|
height: 26,
|
|
223
223
|
borderRadius: 26 / 2,
|
|
224
224
|
margin: "0 1px",
|
|
225
225
|
padding: "0 4px"
|
|
226
|
-
},
|
|
226
|
+
}, t.size === "large" && {
|
|
227
227
|
minWidth: 40,
|
|
228
228
|
height: 40,
|
|
229
229
|
borderRadius: 40 / 2,
|
|
230
230
|
padding: "0 10px",
|
|
231
231
|
fontSize: a.typography.pxToRem(15)
|
|
232
|
-
},
|
|
232
|
+
}, t.shape === "rounded" && {
|
|
233
233
|
borderRadius: (a.vars || a).shape.borderRadius
|
|
234
234
|
}), ({
|
|
235
235
|
theme: a,
|
|
236
|
-
ownerState:
|
|
237
|
-
}) =>
|
|
238
|
-
[`&.${
|
|
239
|
-
color: (a.vars || a).palette[
|
|
240
|
-
backgroundColor: (a.vars || a).palette[
|
|
236
|
+
ownerState: t
|
|
237
|
+
}) => l({}, t.variant === "text" && {
|
|
238
|
+
[`&.${v.selected}`]: l({}, t.color !== "standard" && {
|
|
239
|
+
color: (a.vars || a).palette[t.color].contrastText,
|
|
240
|
+
backgroundColor: (a.vars || a).palette[t.color].main,
|
|
241
241
|
"&:hover": {
|
|
242
|
-
backgroundColor: (a.vars || a).palette[
|
|
242
|
+
backgroundColor: (a.vars || a).palette[t.color].dark,
|
|
243
243
|
// Reset on touch devices, it doesn't add specificity
|
|
244
244
|
"@media (hover: none)": {
|
|
245
|
-
backgroundColor: (a.vars || a).palette[
|
|
245
|
+
backgroundColor: (a.vars || a).palette[t.color].main
|
|
246
246
|
}
|
|
247
247
|
},
|
|
248
|
-
[`&.${
|
|
249
|
-
backgroundColor: (a.vars || a).palette[
|
|
248
|
+
[`&.${v.focusVisible}`]: {
|
|
249
|
+
backgroundColor: (a.vars || a).palette[t.color].dark
|
|
250
250
|
}
|
|
251
251
|
}, {
|
|
252
|
-
[`&.${
|
|
252
|
+
[`&.${v.disabled}`]: {
|
|
253
253
|
color: (a.vars || a).palette.action.disabled
|
|
254
254
|
}
|
|
255
255
|
})
|
|
256
|
-
},
|
|
256
|
+
}, t.variant === "outlined" && {
|
|
257
257
|
border: a.vars ? `1px solid rgba(${a.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${a.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)"}`,
|
|
258
|
-
[`&.${
|
|
259
|
-
color: (a.vars || a).palette[
|
|
260
|
-
border: `1px solid ${a.vars ? `rgba(${a.vars.palette[
|
|
261
|
-
backgroundColor: a.vars ? `rgba(${a.vars.palette[
|
|
258
|
+
[`&.${v.selected}`]: l({}, t.color !== "standard" && {
|
|
259
|
+
color: (a.vars || a).palette[t.color].main,
|
|
260
|
+
border: `1px solid ${a.vars ? `rgba(${a.vars.palette[t.color].mainChannel} / 0.5)` : B(a.palette[t.color].main, 0.5)}`,
|
|
261
|
+
backgroundColor: a.vars ? `rgba(${a.vars.palette[t.color].mainChannel} / ${a.vars.palette.action.activatedOpacity})` : B(a.palette[t.color].main, a.palette.action.activatedOpacity),
|
|
262
262
|
"&:hover": {
|
|
263
|
-
backgroundColor: a.vars ? `rgba(${a.vars.palette[
|
|
263
|
+
backgroundColor: a.vars ? `rgba(${a.vars.palette[t.color].mainChannel} / calc(${a.vars.palette.action.activatedOpacity} + ${a.vars.palette.action.focusOpacity}))` : B(a.palette[t.color].main, a.palette.action.activatedOpacity + a.palette.action.focusOpacity),
|
|
264
264
|
// Reset on touch devices, it doesn't add specificity
|
|
265
265
|
"@media (hover: none)": {
|
|
266
266
|
backgroundColor: "transparent"
|
|
267
267
|
}
|
|
268
268
|
},
|
|
269
|
-
[`&.${
|
|
270
|
-
backgroundColor: a.vars ? `rgba(${a.vars.palette[
|
|
269
|
+
[`&.${v.focusVisible}`]: {
|
|
270
|
+
backgroundColor: a.vars ? `rgba(${a.vars.palette[t.color].mainChannel} / calc(${a.vars.palette.action.activatedOpacity} + ${a.vars.palette.action.focusOpacity}))` : B(a.palette[t.color].main, a.palette.action.activatedOpacity + a.palette.action.focusOpacity)
|
|
271
271
|
}
|
|
272
272
|
}, {
|
|
273
|
-
[`&.${
|
|
273
|
+
[`&.${v.disabled}`]: {
|
|
274
274
|
borderColor: (a.vars || a).palette.action.disabledBackground,
|
|
275
275
|
color: (a.vars || a).palette.action.disabled
|
|
276
276
|
}
|
|
277
277
|
})
|
|
278
|
-
})),
|
|
278
|
+
})), da = A("div", {
|
|
279
279
|
name: "MuiPaginationItem",
|
|
280
280
|
slot: "Icon",
|
|
281
|
-
overridesResolver: (a,
|
|
281
|
+
overridesResolver: (a, t) => t.icon
|
|
282
282
|
})(({
|
|
283
283
|
theme: a,
|
|
284
|
-
ownerState:
|
|
285
|
-
}) =>
|
|
284
|
+
ownerState: t
|
|
285
|
+
}) => l({
|
|
286
286
|
fontSize: a.typography.pxToRem(20),
|
|
287
287
|
margin: "0 -8px"
|
|
288
|
-
},
|
|
288
|
+
}, t.size === "small" && {
|
|
289
289
|
fontSize: a.typography.pxToRem(18)
|
|
290
|
-
},
|
|
290
|
+
}, t.size === "large" && {
|
|
291
291
|
fontSize: a.typography.pxToRem(22)
|
|
292
|
-
})), j = /* @__PURE__ */ D.forwardRef(function(
|
|
293
|
-
const n =
|
|
294
|
-
props:
|
|
292
|
+
})), j = /* @__PURE__ */ D.forwardRef(function(t, e) {
|
|
293
|
+
const n = w({
|
|
294
|
+
props: t,
|
|
295
295
|
name: "MuiPaginationItem"
|
|
296
296
|
}), {
|
|
297
|
-
className:
|
|
298
|
-
color:
|
|
299
|
-
component:
|
|
300
|
-
components:
|
|
301
|
-
disabled:
|
|
302
|
-
page:
|
|
303
|
-
selected:
|
|
304
|
-
shape:
|
|
305
|
-
size:
|
|
306
|
-
slots:
|
|
297
|
+
className: c,
|
|
298
|
+
color: p = "standard",
|
|
299
|
+
component: u,
|
|
300
|
+
components: r = {},
|
|
301
|
+
disabled: g = !1,
|
|
302
|
+
page: f,
|
|
303
|
+
selected: C = !1,
|
|
304
|
+
shape: I = "circular",
|
|
305
|
+
size: P = "medium",
|
|
306
|
+
slots: d = {},
|
|
307
307
|
type: i = "page",
|
|
308
|
-
variant:
|
|
309
|
-
} = n, N = _(n,
|
|
310
|
-
color:
|
|
311
|
-
disabled:
|
|
312
|
-
selected:
|
|
313
|
-
shape:
|
|
314
|
-
size:
|
|
308
|
+
variant: k = "text"
|
|
309
|
+
} = n, N = _(n, ra), y = l({}, n, {
|
|
310
|
+
color: p,
|
|
311
|
+
disabled: g,
|
|
312
|
+
selected: C,
|
|
313
|
+
shape: I,
|
|
314
|
+
size: P,
|
|
315
315
|
type: i,
|
|
316
|
-
variant:
|
|
317
|
-
}),
|
|
318
|
-
previous:
|
|
319
|
-
next:
|
|
320
|
-
last:
|
|
321
|
-
first:
|
|
316
|
+
variant: k
|
|
317
|
+
}), z = aa(), x = la(y), $ = (z ? {
|
|
318
|
+
previous: d.next || r.next || E,
|
|
319
|
+
next: d.previous || r.previous || V,
|
|
320
|
+
last: d.first || r.first || F,
|
|
321
|
+
first: d.last || r.last || U
|
|
322
322
|
} : {
|
|
323
|
-
previous:
|
|
324
|
-
next:
|
|
325
|
-
first:
|
|
326
|
-
last:
|
|
323
|
+
previous: d.previous || r.previous || V,
|
|
324
|
+
next: d.next || r.next || E,
|
|
325
|
+
first: d.first || r.first || F,
|
|
326
|
+
last: d.last || r.last || U
|
|
327
327
|
})[i];
|
|
328
|
-
return i === "start-ellipsis" || i === "end-ellipsis" ? /* @__PURE__ */
|
|
328
|
+
return i === "start-ellipsis" || i === "end-ellipsis" ? /* @__PURE__ */ b(ca, {
|
|
329
329
|
ref: e,
|
|
330
|
-
ownerState:
|
|
331
|
-
className: W(
|
|
330
|
+
ownerState: y,
|
|
331
|
+
className: W(x.root, c),
|
|
332
332
|
children: "…"
|
|
333
|
-
}) : /* @__PURE__ */
|
|
333
|
+
}) : /* @__PURE__ */ Y(pa, l({
|
|
334
334
|
ref: e,
|
|
335
|
-
ownerState:
|
|
336
|
-
component:
|
|
337
|
-
disabled:
|
|
338
|
-
className: W(
|
|
335
|
+
ownerState: y,
|
|
336
|
+
component: u,
|
|
337
|
+
disabled: g,
|
|
338
|
+
className: W(x.root, c)
|
|
339
339
|
}, N, {
|
|
340
|
-
children: [i === "page" &&
|
|
341
|
-
as:
|
|
342
|
-
ownerState:
|
|
343
|
-
className:
|
|
340
|
+
children: [i === "page" && f, $ ? /* @__PURE__ */ b(da, {
|
|
341
|
+
as: $,
|
|
342
|
+
ownerState: y,
|
|
343
|
+
className: x.icon
|
|
344
344
|
}) : null]
|
|
345
345
|
}));
|
|
346
346
|
});
|
|
@@ -352,27 +352,27 @@ process.env.NODE_ENV !== "production" && (j.propTypes = {
|
|
|
352
352
|
/**
|
|
353
353
|
* @ignore
|
|
354
354
|
*/
|
|
355
|
-
children:
|
|
355
|
+
children: o.node,
|
|
356
356
|
/**
|
|
357
357
|
* Override or extend the styles applied to the component.
|
|
358
358
|
*/
|
|
359
|
-
classes:
|
|
359
|
+
classes: o.object,
|
|
360
360
|
/**
|
|
361
361
|
* @ignore
|
|
362
362
|
*/
|
|
363
|
-
className:
|
|
363
|
+
className: o.string,
|
|
364
364
|
/**
|
|
365
365
|
* The active color.
|
|
366
366
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
367
367
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
368
368
|
* @default 'standard'
|
|
369
369
|
*/
|
|
370
|
-
color:
|
|
370
|
+
color: o.oneOfType([o.oneOf(["primary", "secondary", "standard"]), o.string]),
|
|
371
371
|
/**
|
|
372
372
|
* The component used for the root node.
|
|
373
373
|
* Either a string to use a HTML element or a component.
|
|
374
374
|
*/
|
|
375
|
-
component:
|
|
375
|
+
component: o.elementType,
|
|
376
376
|
/**
|
|
377
377
|
* The components used for each slot inside.
|
|
378
378
|
*
|
|
@@ -381,36 +381,36 @@ process.env.NODE_ENV !== "production" && (j.propTypes = {
|
|
|
381
381
|
*
|
|
382
382
|
* @default {}
|
|
383
383
|
*/
|
|
384
|
-
components:
|
|
385
|
-
first:
|
|
386
|
-
last:
|
|
387
|
-
next:
|
|
388
|
-
previous:
|
|
384
|
+
components: o.shape({
|
|
385
|
+
first: o.elementType,
|
|
386
|
+
last: o.elementType,
|
|
387
|
+
next: o.elementType,
|
|
388
|
+
previous: o.elementType
|
|
389
389
|
}),
|
|
390
390
|
/**
|
|
391
391
|
* If `true`, the component is disabled.
|
|
392
392
|
* @default false
|
|
393
393
|
*/
|
|
394
|
-
disabled:
|
|
394
|
+
disabled: o.bool,
|
|
395
395
|
/**
|
|
396
396
|
* The current page number.
|
|
397
397
|
*/
|
|
398
|
-
page:
|
|
398
|
+
page: o.node,
|
|
399
399
|
/**
|
|
400
400
|
* If `true` the pagination item is selected.
|
|
401
401
|
* @default false
|
|
402
402
|
*/
|
|
403
|
-
selected:
|
|
403
|
+
selected: o.bool,
|
|
404
404
|
/**
|
|
405
405
|
* The shape of the pagination item.
|
|
406
406
|
* @default 'circular'
|
|
407
407
|
*/
|
|
408
|
-
shape:
|
|
408
|
+
shape: o.oneOf(["circular", "rounded"]),
|
|
409
409
|
/**
|
|
410
410
|
* The size of the component.
|
|
411
411
|
* @default 'medium'
|
|
412
412
|
*/
|
|
413
|
-
size:
|
|
413
|
+
size: o.oneOfType([o.oneOf(["small", "medium", "large"]), o.string]),
|
|
414
414
|
/**
|
|
415
415
|
* The components used for each slot inside.
|
|
416
416
|
*
|
|
@@ -418,49 +418,49 @@ process.env.NODE_ENV !== "production" && (j.propTypes = {
|
|
|
418
418
|
*
|
|
419
419
|
* @default {}
|
|
420
420
|
*/
|
|
421
|
-
slots:
|
|
422
|
-
first:
|
|
423
|
-
last:
|
|
424
|
-
next:
|
|
425
|
-
previous:
|
|
421
|
+
slots: o.shape({
|
|
422
|
+
first: o.elementType,
|
|
423
|
+
last: o.elementType,
|
|
424
|
+
next: o.elementType,
|
|
425
|
+
previous: o.elementType
|
|
426
426
|
}),
|
|
427
427
|
/**
|
|
428
428
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
429
429
|
*/
|
|
430
|
-
sx:
|
|
430
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
431
431
|
/**
|
|
432
432
|
* The type of pagination item.
|
|
433
433
|
* @default 'page'
|
|
434
434
|
*/
|
|
435
|
-
type:
|
|
435
|
+
type: o.oneOf(["end-ellipsis", "first", "last", "next", "page", "previous", "start-ellipsis"]),
|
|
436
436
|
/**
|
|
437
437
|
* The variant to use.
|
|
438
438
|
* @default 'text'
|
|
439
439
|
*/
|
|
440
|
-
variant:
|
|
440
|
+
variant: o.oneOfType([o.oneOf(["outlined", "text"]), o.string])
|
|
441
441
|
});
|
|
442
|
-
const
|
|
442
|
+
const ua = ["boundaryCount", "className", "color", "count", "defaultPage", "disabled", "getItemAriaLabel", "hideNextButton", "hidePrevButton", "onChange", "page", "renderItem", "shape", "showFirstButton", "showLastButton", "siblingCount", "size", "variant"], ga = (a) => {
|
|
443
443
|
const {
|
|
444
|
-
classes:
|
|
444
|
+
classes: t,
|
|
445
445
|
variant: e
|
|
446
446
|
} = a;
|
|
447
|
-
return
|
|
447
|
+
return q({
|
|
448
448
|
root: ["root", e],
|
|
449
449
|
ul: ["ul"]
|
|
450
|
-
},
|
|
451
|
-
},
|
|
450
|
+
}, ea, t);
|
|
451
|
+
}, fa = A("nav", {
|
|
452
452
|
name: "MuiPagination",
|
|
453
453
|
slot: "Root",
|
|
454
|
-
overridesResolver: (a,
|
|
454
|
+
overridesResolver: (a, t) => {
|
|
455
455
|
const {
|
|
456
456
|
ownerState: e
|
|
457
457
|
} = a;
|
|
458
|
-
return [
|
|
458
|
+
return [t.root, t[e.variant]];
|
|
459
459
|
}
|
|
460
|
-
})({}),
|
|
460
|
+
})({}), va = A("ul", {
|
|
461
461
|
name: "MuiPagination",
|
|
462
462
|
slot: "Ul",
|
|
463
|
-
overridesResolver: (a,
|
|
463
|
+
overridesResolver: (a, t) => t.ul
|
|
464
464
|
})({
|
|
465
465
|
display: "flex",
|
|
466
466
|
flexWrap: "wrap",
|
|
@@ -469,73 +469,73 @@ const ya = ["boundaryCount", "className", "color", "count", "defaultPage", "disa
|
|
|
469
469
|
margin: 0,
|
|
470
470
|
listStyle: "none"
|
|
471
471
|
});
|
|
472
|
-
function
|
|
473
|
-
return a === "page" ? `${e ? "" : "Go to "}page ${
|
|
472
|
+
function ba(a, t, e) {
|
|
473
|
+
return a === "page" ? `${e ? "" : "Go to "}page ${t}` : `Go to ${a} page`;
|
|
474
474
|
}
|
|
475
|
-
const
|
|
476
|
-
const n =
|
|
477
|
-
props:
|
|
475
|
+
const K = /* @__PURE__ */ D.forwardRef(function(t, e) {
|
|
476
|
+
const n = w({
|
|
477
|
+
props: t,
|
|
478
478
|
name: "MuiPagination"
|
|
479
479
|
}), {
|
|
480
|
-
boundaryCount:
|
|
481
|
-
className:
|
|
482
|
-
color:
|
|
483
|
-
count:
|
|
484
|
-
defaultPage:
|
|
485
|
-
disabled:
|
|
486
|
-
getItemAriaLabel:
|
|
487
|
-
hideNextButton:
|
|
488
|
-
hidePrevButton:
|
|
489
|
-
renderItem:
|
|
480
|
+
boundaryCount: c = 1,
|
|
481
|
+
className: p,
|
|
482
|
+
color: u = "standard",
|
|
483
|
+
count: r = 1,
|
|
484
|
+
defaultPage: g = 1,
|
|
485
|
+
disabled: f = !1,
|
|
486
|
+
getItemAriaLabel: C = ba,
|
|
487
|
+
hideNextButton: I = !1,
|
|
488
|
+
hidePrevButton: P = !1,
|
|
489
|
+
renderItem: d = (m) => /* @__PURE__ */ b(j, l({}, m)),
|
|
490
490
|
shape: i = "circular",
|
|
491
|
-
showFirstButton:
|
|
491
|
+
showFirstButton: k = !1,
|
|
492
492
|
showLastButton: N = !1,
|
|
493
|
-
siblingCount:
|
|
494
|
-
size:
|
|
495
|
-
variant:
|
|
496
|
-
} = n,
|
|
497
|
-
items:
|
|
498
|
-
} =
|
|
493
|
+
siblingCount: y = 1,
|
|
494
|
+
size: z = "medium",
|
|
495
|
+
variant: x = "text"
|
|
496
|
+
} = n, R = _(n, ua), {
|
|
497
|
+
items: $
|
|
498
|
+
} = sa(l({}, n, {
|
|
499
499
|
componentName: "Pagination"
|
|
500
|
-
})), h =
|
|
501
|
-
boundaryCount:
|
|
502
|
-
color:
|
|
503
|
-
count:
|
|
504
|
-
defaultPage:
|
|
505
|
-
disabled:
|
|
506
|
-
getItemAriaLabel:
|
|
507
|
-
hideNextButton:
|
|
508
|
-
hidePrevButton:
|
|
509
|
-
renderItem:
|
|
500
|
+
})), h = l({}, n, {
|
|
501
|
+
boundaryCount: c,
|
|
502
|
+
color: u,
|
|
503
|
+
count: r,
|
|
504
|
+
defaultPage: g,
|
|
505
|
+
disabled: f,
|
|
506
|
+
getItemAriaLabel: C,
|
|
507
|
+
hideNextButton: I,
|
|
508
|
+
hidePrevButton: P,
|
|
509
|
+
renderItem: d,
|
|
510
510
|
shape: i,
|
|
511
|
-
showFirstButton:
|
|
511
|
+
showFirstButton: k,
|
|
512
512
|
showLastButton: N,
|
|
513
|
-
siblingCount:
|
|
514
|
-
size:
|
|
515
|
-
variant:
|
|
516
|
-
}), L =
|
|
517
|
-
return /* @__PURE__ */
|
|
513
|
+
siblingCount: y,
|
|
514
|
+
size: z,
|
|
515
|
+
variant: x
|
|
516
|
+
}), L = ga(h);
|
|
517
|
+
return /* @__PURE__ */ b(fa, l({
|
|
518
518
|
"aria-label": "pagination navigation",
|
|
519
|
-
className: W(L.root,
|
|
519
|
+
className: W(L.root, p),
|
|
520
520
|
ownerState: h,
|
|
521
521
|
ref: e
|
|
522
|
-
},
|
|
523
|
-
children: /* @__PURE__ */
|
|
522
|
+
}, R, {
|
|
523
|
+
children: /* @__PURE__ */ b(va, {
|
|
524
524
|
className: L.ul,
|
|
525
525
|
ownerState: h,
|
|
526
|
-
children:
|
|
527
|
-
children:
|
|
528
|
-
color:
|
|
529
|
-
"aria-label":
|
|
526
|
+
children: $.map((m, s) => /* @__PURE__ */ b("li", {
|
|
527
|
+
children: d(l({}, m, {
|
|
528
|
+
color: u,
|
|
529
|
+
"aria-label": C(m.type, m.page, m.selected),
|
|
530
530
|
shape: i,
|
|
531
|
-
size:
|
|
532
|
-
variant:
|
|
531
|
+
size: z,
|
|
532
|
+
variant: x
|
|
533
533
|
}))
|
|
534
534
|
}, s))
|
|
535
535
|
})
|
|
536
536
|
}));
|
|
537
537
|
});
|
|
538
|
-
process.env.NODE_ENV !== "production" && (
|
|
538
|
+
process.env.NODE_ENV !== "production" && (K.propTypes = {
|
|
539
539
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
540
540
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
541
541
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -548,18 +548,18 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
|
|
|
548
548
|
/**
|
|
549
549
|
* Override or extend the styles applied to the component.
|
|
550
550
|
*/
|
|
551
|
-
classes:
|
|
551
|
+
classes: o.object,
|
|
552
552
|
/**
|
|
553
553
|
* @ignore
|
|
554
554
|
*/
|
|
555
|
-
className:
|
|
555
|
+
className: o.string,
|
|
556
556
|
/**
|
|
557
557
|
* The active color.
|
|
558
558
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
559
559
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
560
560
|
* @default 'standard'
|
|
561
561
|
*/
|
|
562
|
-
color:
|
|
562
|
+
color: o.oneOfType([o.oneOf(["primary", "secondary", "standard"]), o.string]),
|
|
563
563
|
/**
|
|
564
564
|
* The total number of pages.
|
|
565
565
|
* @default 1
|
|
@@ -574,7 +574,7 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
|
|
|
574
574
|
* If `true`, the component is disabled.
|
|
575
575
|
* @default false
|
|
576
576
|
*/
|
|
577
|
-
disabled:
|
|
577
|
+
disabled: o.bool,
|
|
578
578
|
/**
|
|
579
579
|
* Accepts a function which returns a string value that provides a user-friendly name for the current page.
|
|
580
580
|
* This is important for screen reader users.
|
|
@@ -585,24 +585,24 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
|
|
|
585
585
|
* @param {bool} selected If true, the current page is selected.
|
|
586
586
|
* @returns {string}
|
|
587
587
|
*/
|
|
588
|
-
getItemAriaLabel:
|
|
588
|
+
getItemAriaLabel: o.func,
|
|
589
589
|
/**
|
|
590
590
|
* If `true`, hide the next-page button.
|
|
591
591
|
* @default false
|
|
592
592
|
*/
|
|
593
|
-
hideNextButton:
|
|
593
|
+
hideNextButton: o.bool,
|
|
594
594
|
/**
|
|
595
595
|
* If `true`, hide the previous-page button.
|
|
596
596
|
* @default false
|
|
597
597
|
*/
|
|
598
|
-
hidePrevButton:
|
|
598
|
+
hidePrevButton: o.bool,
|
|
599
599
|
/**
|
|
600
600
|
* Callback fired when the page is changed.
|
|
601
601
|
*
|
|
602
602
|
* @param {React.ChangeEvent<unknown>} event The event source of the callback.
|
|
603
603
|
* @param {number} page The page selected.
|
|
604
604
|
*/
|
|
605
|
-
onChange:
|
|
605
|
+
onChange: o.func,
|
|
606
606
|
/**
|
|
607
607
|
* The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.
|
|
608
608
|
*/
|
|
@@ -613,22 +613,22 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
|
|
|
613
613
|
* @returns {ReactNode}
|
|
614
614
|
* @default (item) => <PaginationItem {...item} />
|
|
615
615
|
*/
|
|
616
|
-
renderItem:
|
|
616
|
+
renderItem: o.func,
|
|
617
617
|
/**
|
|
618
618
|
* The shape of the pagination items.
|
|
619
619
|
* @default 'circular'
|
|
620
620
|
*/
|
|
621
|
-
shape:
|
|
621
|
+
shape: o.oneOf(["circular", "rounded"]),
|
|
622
622
|
/**
|
|
623
623
|
* If `true`, show the first-page button.
|
|
624
624
|
* @default false
|
|
625
625
|
*/
|
|
626
|
-
showFirstButton:
|
|
626
|
+
showFirstButton: o.bool,
|
|
627
627
|
/**
|
|
628
628
|
* If `true`, show the last-page button.
|
|
629
629
|
* @default false
|
|
630
630
|
*/
|
|
631
|
-
showLastButton:
|
|
631
|
+
showLastButton: o.bool,
|
|
632
632
|
/**
|
|
633
633
|
* Number of always visible pages before and after the current page.
|
|
634
634
|
* @default 1
|
|
@@ -638,47 +638,46 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
|
|
|
638
638
|
* The size of the component.
|
|
639
639
|
* @default 'medium'
|
|
640
640
|
*/
|
|
641
|
-
size:
|
|
641
|
+
size: o.oneOfType([o.oneOf(["small", "medium", "large"]), o.string]),
|
|
642
642
|
/**
|
|
643
643
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
644
644
|
*/
|
|
645
|
-
sx:
|
|
645
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
646
646
|
/**
|
|
647
647
|
* The variant to use.
|
|
648
648
|
* @default 'text'
|
|
649
649
|
*/
|
|
650
|
-
variant:
|
|
650
|
+
variant: o.oneOfType([o.oneOf(["outlined", "text"]), o.string])
|
|
651
651
|
});
|
|
652
|
-
|
|
653
|
-
function $a({
|
|
652
|
+
function ya({
|
|
654
653
|
isRtl: a,
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
654
|
+
pageCount: t,
|
|
655
|
+
arrowFirstIcon: e,
|
|
656
|
+
arrowLastIcon: n,
|
|
657
|
+
nextIcon: c,
|
|
658
658
|
previousIcon: p,
|
|
659
659
|
page: u,
|
|
660
|
-
onPageChange:
|
|
661
|
-
className:
|
|
660
|
+
onPageChange: r,
|
|
661
|
+
className: g
|
|
662
662
|
}) {
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
Q,
|
|
663
|
+
return /* @__PURE__ */ b(
|
|
664
|
+
K,
|
|
666
665
|
{
|
|
667
666
|
showFirstButton: !0,
|
|
668
667
|
showLastButton: !0,
|
|
669
|
-
className:
|
|
670
|
-
count:
|
|
668
|
+
className: g,
|
|
669
|
+
count: t,
|
|
671
670
|
page: u + 1,
|
|
672
|
-
onChange: (
|
|
673
|
-
|
|
671
|
+
onChange: (f, C) => {
|
|
672
|
+
r(f, C - 1);
|
|
674
673
|
},
|
|
675
674
|
boundaryCount: 0,
|
|
676
675
|
siblingCount: 1,
|
|
677
|
-
renderItem: (
|
|
676
|
+
renderItem: (f) => /* @__PURE__ */ b(
|
|
678
677
|
j,
|
|
679
678
|
{
|
|
680
|
-
slots: { previous: a ?
|
|
681
|
-
...
|
|
679
|
+
slots: { previous: a ? c : p, next: a ? p : c, first: a ? n : e, last: a ? e : n },
|
|
680
|
+
...f
|
|
682
681
|
}
|
|
683
682
|
),
|
|
684
683
|
sx: {
|
|
@@ -697,9 +696,9 @@ function $a({
|
|
|
697
696
|
}
|
|
698
697
|
);
|
|
699
698
|
}
|
|
700
|
-
function
|
|
701
|
-
return /* @__PURE__ */
|
|
699
|
+
function Na({ isRtl: a, pageCount: t, arrowFirstIcon: e, arrowLastIcon: n, nextIcon: c, previousIcon: p }) {
|
|
700
|
+
return /* @__PURE__ */ b(ta, { ActionsComponent: (u) => /* @__PURE__ */ b(ya, { isRtl: a, pageCount: t, arrowFirstIcon: e, arrowLastIcon: n, nextIcon: c, previousIcon: p, ...u }) });
|
|
702
701
|
}
|
|
703
702
|
export {
|
|
704
|
-
|
|
703
|
+
Na as CustomPagination
|
|
705
704
|
};
|
|
@@ -3,7 +3,7 @@ import { _ as Z, a as f } from "../../index-kNWC7pFF.js";
|
|
|
3
3
|
import * as a from "react";
|
|
4
4
|
import Pc, { createElement as un } from "react";
|
|
5
5
|
import { f as oi, w as Ic, h as Oc, x as Mc, i as Ec, c as se, y as Tc, r as kc, o as jl, z as Rc, A as ql, B as Mr, D as Fc, p as $c, E as Ul, F as Dc, j as ni, b as xe, g as et, d as fe, P as o, n as Nc, T as Vc, a as tt, u as Ze, s as ve, H as Hc, e as Kn, m as ot, l as tl, t as Lc, v as _c } from "../../generateUtilityClasses-BzhjuzcK.js";
|
|
6
|
-
import { c as Ve,
|
|
6
|
+
import { c as Ve, b as Ke, u as dn, o as jt, P as Ac, d as Lr, H as qo, e as ur, A as Gc, f as _o, g as Io, h as Wl, j as Er, I as dr, i as zc, k as Zo, l as ri, m as Bc, n as jc, p as qc, q as Kl, r as li, s as pr, t as si, v as Uc, w as Wc, x as Ql, y as _r, z as Jo, a as Kc, B as $n, O as Qc, C as Yc, D as Xc, S as ii, E as pt, J as Pn, K as he, M as ue, N as xt, Q as fr, R as Zc, T as Jc, U as eu, V as mn, W as Bt, X as In, Y as Fe, Z as ai, _ as tu, $ as ou, a0 as ol, a1 as ci, a2 as nl, a3 as mo, a4 as Vo, a5 as Gn, a6 as ui, a7 as oo, a8 as Ht, a9 as nu, aa as Mo, ab as di, ac as ut, ad as pi, ae as ru, af as lu, ag as fi, ah as su, ai as iu, aj as rl, ak as gr, al as mr, am as Co, an as ll, ao as gi, ap as au, aq as cu, ar as wo, as as We, at as Ce, au as zn, av as uu, aw as to, ax as ao, ay as du, az as pu, aA as mi, aB as fu, aC as hi, aD as gu, aE as sn, aF as sl, aG as mu, aH as Dn, aI as hu, aJ as Qn, aK as Yl, aL as bi, aM as bu, aN as vu, aO as Cu, aP as wu, aQ as yu, aR as vi, aS as Su, G as xu, aT as Pu } from "../../GridPagination-DrNedBid.js";
|
|
7
7
|
import { t as hn } from "../../toPropertyKey-Dgu5PCQm.js";
|
|
8
8
|
import { b as lt, s as Iu, u as vt, a as nt, r as ro, B as Ar, c as Nn, d as Ou, f as Mu } from "../../ButtonBase-CHdm_9Jj.js";
|
|
9
9
|
import { r as Ci } from "../../index-D2lG1Jv0.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|