kdpa-components 1.0.0 → 1.2.0
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/CHANGELOG.md +7 -0
- package/dist/Accordion/index.js +17 -19
- package/dist/Alert/index.js +19 -20
- package/dist/{ArrowDropDown-4bc3084f.js → ArrowDropDown-07b9ccae.js} +19 -20
- package/dist/Avatar/index.js +7 -8
- package/dist/Badge/index.js +22 -24
- package/dist/{Box-af81b133.js → Box-032e9a1d.js} +25 -27
- package/dist/{Button-da8592f4.js → Button-9d9cc0bd.js} +18 -20
- package/dist/{ButtonBase-496494a5.js → ButtonBase-fa4630c8.js} +35 -37
- package/dist/Buttons/index.js +28 -30
- package/dist/{CSSTransition-5496e075.js → CSSTransition-7e2d0e80.js} +3 -3
- package/dist/Cards/index.d.ts +2 -0
- package/dist/Cards/index.d.ts.map +1 -1
- package/dist/Cards/index.js +150 -1
- package/dist/CheckBox/index.js +13 -14
- package/dist/Chip/index.js +17 -19
- package/dist/{Chip-2dfcd6e9.js → Chip-e5751770.js} +25 -27
- package/dist/{CircularProgress-e1f22f2a.js → CircularProgress-01a8929e.js} +19 -21
- package/dist/{Close-319784e1.js → Close-db7afda5.js} +2 -2
- package/dist/Collapse/index.js +10 -12
- package/dist/{Collapse-75d5ed79.js → Collapse-547e6c7a.js} +27 -30
- package/dist/CopyToClipboard/index.js +24 -26
- package/dist/{Dialog-0eadb508.js → Dialog-652a3ad4.js} +19 -21
- package/dist/Divider/index.js +7 -8
- package/dist/DropZone/index.js +34 -36
- package/dist/{Fade-6a96fc41.js → Fade-7ee2c0a4.js} +23 -25
- package/dist/FormControl/index.js +12 -13
- package/dist/{FormControl-c914b3de.js → FormControl-ca7447ab.js} +13 -15
- package/dist/FullScreenDialog/index.js +20 -22
- package/dist/Grid/index.js +9 -10
- package/dist/{Grid-4cbef6c7.js → Grid-9708b9ca.js} +65 -67
- package/dist/{Grow-8a97586f.js → Grow-55d0786d.js} +17 -19
- package/dist/{IconButton-b4e677f7.js → IconButton-48d87778.js} +30 -32
- package/dist/Input/index.js +27 -29
- package/dist/{KdpaAccordions-60fefaf0.js → KdpaAccordions-2ae65dd1.js} +126 -115
- package/dist/{KdpaAlertTitle-497100ba.js → KdpaAlertTitle-f1549035.js} +93 -82
- package/dist/{KdpaAutoComplete-9c0b8d4d.js → KdpaAutoComplete-8a11974a.js} +237 -234
- package/dist/{KdpaAvatar-da84b516.js → KdpaAvatar-d297ef8a.js} +75 -72
- package/dist/{KdpaCheckBox-d06c93b0.js → KdpaCheckBox-84d56486.js} +33 -30
- package/dist/KdpaChip-10899788.js +51 -0
- package/dist/KdpaCircularProgress-6c4605cd.js +76 -0
- package/dist/KdpaCollapse-2d23c312.js +12 -0
- package/dist/KdpaCollapse-73c03e02.js +23 -0
- package/dist/{KdpaCopyToClipboard-2c36d593.js → KdpaCopyToClipboard-53aa97d3.js} +196 -160
- package/dist/{KdpaDateTimePicker-8e9da3c8.js → KdpaDateTimePicker-cb4a16d0.js} +10530 -13197
- package/dist/{KdpaDivider-10de74db.js → KdpaDivider-1c62c65a.js} +95 -84
- package/dist/{KdpaDropZone-85943160.js → KdpaDropZone-b21d2304.js} +631 -531
- package/dist/KdpaFormControl-135b070d.js +10 -0
- package/dist/{KdpaFormControlLabel-8a6ff2a6.js → KdpaFormControlLabel-249b7622.js} +57 -54
- package/dist/KdpaFullScreenDialog-e56db731.js +24 -0
- package/dist/KdpaGrid-2a3f9346.js +12 -0
- package/dist/{KdpaGridBadge-d8a8e388.js → KdpaGridBadge-65b88a7a.js} +123 -104
- package/dist/KdpaIconButton-a0ee669c.js +35 -0
- package/dist/KdpaInputMultiline-231a2be1.js +68 -0
- package/dist/{KdpaLazyDrop-347b6e24.js → KdpaLazyDrop-1985fc75.js} +254 -217
- package/dist/KdpaMenuItem-99cde871.js +56 -0
- package/dist/{KdpaSimpleModal-6ab72b9c.js → KdpaModalImage-eb732bf0.js} +176 -185
- package/dist/{KdpaPaginationGrid-6e4cd782.js → KdpaPaginationGrid-97a5b164.js} +343 -283
- package/dist/{KdpaRadioGroup-de6c67d4.js → KdpaRadioGroup-87122ec7.js} +129 -122
- package/dist/{KdpaRtlProvider-d7cc5029.js → KdpaRtlProvider-495e4bb0.js} +169 -162
- package/dist/KdpaSecondaryButton-a70aafe5.js +44 -0
- package/dist/KdpaSkeleton-f8f3aefc.js +580 -0
- package/dist/{KdpaSlider-93a991f0.js → KdpaSlider-b7226e20.js} +196 -182
- package/dist/{KdpaSwitch-2f07cd38.js → KdpaSwitch-b2ba7c23.js} +50 -43
- package/dist/KdpaTabs-ab618f36.js +50 -0
- package/dist/{KdpaTooltip-e30e1eea.js → KdpaTooltip-653424c7.js} +95 -88
- package/dist/{KdpaTree-8428a368.js → KdpaTree-2e1df83d.js} +348 -304
- package/dist/{KdpaTreeSelect-7fe5581c.js → KdpaTreeSelect-0152302e.js} +625 -609
- package/dist/KdpaTypography-763c3238.js +10 -0
- package/dist/KdpaZoom-1b0f3404.js +22 -0
- package/dist/KpdaPrimaryButton-5416aa2c.js +79 -0
- package/dist/LazyDrop/index.js +24 -24
- package/dist/{ListItem-da6701a3.js → ListItem-ddec0b28.js} +14 -16
- package/dist/Loading/KdpaProgress/index.js +12 -13
- package/dist/Loading/index.js +11 -12
- package/dist/{MenuItem-b9a45c1d.js → MenuItem-057c85a3.js} +44 -46
- package/dist/Modal/index.d.ts +0 -2
- package/dist/Modal/index.d.ts.map +1 -1
- package/dist/Modal/index.js +3 -17
- package/dist/{Modal-1e4a342f.js → Modal-daf2a588.js} +18 -20
- package/dist/PaginationGrid/index.js +33 -34
- package/dist/{Paper-ad7ba238.js → Paper-00aea968.js} +16 -18
- package/dist/Pickers/index.d.ts +2 -1
- package/dist/Pickers/index.d.ts.map +1 -1
- package/dist/Pickers/index.js +43 -45
- package/dist/{Popper-20f4d1e9.js → Popper-7adcd815.js} +13 -15
- package/dist/{Portal-1b00a402.js → Portal-de5e310c.js} +6 -7
- package/dist/Radio/index.js +14 -15
- package/dist/Selects/index.js +39 -40
- package/dist/{Slide-d61a6d2b.js → Slide-803fd098.js} +17 -19
- package/dist/Slider/index.js +8 -9
- package/dist/Switch/index.js +12 -13
- package/dist/{SwitchBase-e8b18f94.js → SwitchBase-64e5662e.js} +14 -16
- package/dist/Tabs/index.js +16 -17
- package/dist/{Tabs-1cc5862d.js → Tabs-1140d353.js} +87 -89
- package/dist/{TextField-c2c0172a.js → TextField-57c51dbe.js} +52 -54
- package/dist/ThemeProvider/index.js +7 -8
- package/dist/Tooltips/index.js +16 -18
- package/dist/{TransitionGroup-68fd1866.js → TransitionGroup-f9877c5b.js} +2 -2
- package/dist/Transitions/index.js +22 -24
- package/dist/Tree/index.js +2 -2
- package/dist/TreeSelect/index.js +3 -3
- package/dist/Typography/index.js +8 -9
- package/dist/{Typography-9a28b393.js → Typography-db7e5ea2.js} +42 -44
- package/dist/{Zoom-64a4beac.js → Zoom-36a189bb.js} +22 -24
- package/dist/{createSvgIcon-5cb90f79.js → createSvgIcon-1aa1b2b2.js} +20 -22
- package/dist/{dividerClasses-6f4cb6be.js → dividerClasses-a9b8b1ae.js} +2 -2
- package/dist/{elementAcceptingRef-332a290a.js → elementAcceptingRef-bd96c731.js} +1 -1
- package/dist/{elementTypeAcceptingRef-05dea79e.js → elementTypeAcceptingRef-dea9e62a.js} +1 -1
- package/dist/{emotion-react.browser.esm-921c014a.js → emotion-react.browser.esm-3fa5f721.js} +1 -1
- package/dist/{exactProp-7fadf441.js → exactProp-86f148d5.js} +1 -1
- package/dist/{extendSxProp-eacd850e.js → extendSxProp-d294b946.js} +2 -2
- package/dist/{extends-393586f3.js → extends-135d7828.js} +2 -2
- package/dist/identifier-2647f844.js +3775 -0
- package/dist/{index-456f3e1b.js → index-5f8afc53.js} +5 -5
- package/dist/index.js +140 -142
- package/dist/jsx-dev-runtime-48fdc504.js +615 -0
- package/dist/kdpaSelect-4ed993c7.js +1 -0
- package/dist/{listItemTextClasses-f7759ba4.js → listItemTextClasses-da281500.js} +2 -2
- package/dist/{refType-7c2b090c.js → refType-450337d6.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useSlotProps-db1ead27.js → useSlotProps-3b927bcb.js} +2 -2
- package/dist/{useTheme-2bb6b2df.js → useTheme-6ea322ec.js} +2 -2
- package/dist/{useThemeProps-114e8d66.js → useThemeProps-ea792506.js} +11 -11
- package/dist/{Transition-2ecbc61d.js → utils-acd98a68.js} +113 -98
- package/package.json +90 -87
- package/dist/KdpaChip-f94c5b7e.js +0 -31
- package/dist/KdpaCircularProgress-aed28149.js +0 -44
- package/dist/KdpaCollapse-73e5e40c.js +0 -8
- package/dist/KdpaCollapse-7f12a32a.js +0 -11
- package/dist/KdpaFormControl-ae8f7241.js +0 -6
- package/dist/KdpaFullScreenDialog-f60e21f3.js +0 -16
- package/dist/KdpaGrid-b93fab29.js +0 -8
- package/dist/KdpaIconButton-f5146164.js +0 -23
- package/dist/KdpaInputMultiline-71dfbfe5.js +0 -48
- package/dist/KdpaMenuItem-9a9ece89.js +0 -35
- package/dist/KdpaSecondaryButton-9b81f97d.js +0 -28
- package/dist/KdpaSkeleton-4696fadd.js +0 -541
- package/dist/KdpaTabs-a76a17a7.js +0 -38
- package/dist/KdpaTypography-17403558.js +0 -6
- package/dist/KdpaZoom-96a648cb.js +0 -10
- package/dist/KpdaPrimaryButton-9a5d8d6d.js +0 -47
- package/dist/Sanitizer/index.d.ts +0 -3
- package/dist/Sanitizer/index.d.ts.map +0 -1
- package/dist/Sanitizer/index.js +0 -492
- package/dist/identifier-5cabf5ae.js +0 -2481
- package/dist/index-f4329b29.js +0 -669
- package/dist/jsx-runtime-944c88e2.js +0 -631
- package/dist/utils-8a7b223e.js +0 -18
|
@@ -1,143 +1,142 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { e as
|
|
3
|
-
import { K as
|
|
4
|
-
import {
|
|
1
|
+
import { j as g } from "./jsx-dev-runtime-48fdc504.js";
|
|
2
|
+
import { e as K } from "./index-5f8afc53.js";
|
|
3
|
+
import { K as ea, a as F } from "./KdpaMenuItem-99cde871.js";
|
|
4
|
+
import { _ as V, a as d } from "./extends-135d7828.js";
|
|
5
5
|
import * as S from "react";
|
|
6
|
-
import { P as
|
|
7
|
-
import { g as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return q("MuiPagination", a);
|
|
6
|
+
import { g as w, j as m, a as I, P as o, c as B } from "./identifier-2647f844.js";
|
|
7
|
+
import { g as H, s as D, u as q, c as E, a as J } from "./useThemeProps-ea792506.js";
|
|
8
|
+
import { u as oa } from "./useControlled-cc2d41cb.js";
|
|
9
|
+
import { i as L } from "./Paper-00aea968.js";
|
|
10
|
+
import { u as na } from "./useTheme-6ea322ec.js";
|
|
11
|
+
import { c as R } from "./createSvgIcon-1aa1b2b2.js";
|
|
12
|
+
import { B as ta } from "./ButtonBase-fa4630c8.js";
|
|
13
|
+
function ia(a) {
|
|
14
|
+
return w("MuiPagination", a);
|
|
16
15
|
}
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
function
|
|
16
|
+
H("MuiPagination", ["root", "ul", "outlined", "text"]);
|
|
17
|
+
const sa = ["boundaryCount", "componentName", "count", "defaultPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "showFirstButton", "showLastButton", "siblingCount"];
|
|
18
|
+
function ra(a = {}) {
|
|
20
19
|
const {
|
|
21
20
|
boundaryCount: e = 1,
|
|
22
|
-
componentName:
|
|
23
|
-
count:
|
|
24
|
-
defaultPage:
|
|
21
|
+
componentName: n = "usePagination",
|
|
22
|
+
count: t = 1,
|
|
23
|
+
defaultPage: c = 1,
|
|
25
24
|
disabled: f = !1,
|
|
26
|
-
hideNextButton:
|
|
27
|
-
hidePrevButton:
|
|
25
|
+
hideNextButton: v = !1,
|
|
26
|
+
hidePrevButton: l = !1,
|
|
28
27
|
onChange: i,
|
|
29
|
-
page:
|
|
30
|
-
showFirstButton:
|
|
31
|
-
showLastButton:
|
|
32
|
-
siblingCount:
|
|
33
|
-
} = a,
|
|
34
|
-
controlled:
|
|
35
|
-
default:
|
|
36
|
-
name:
|
|
28
|
+
page: u,
|
|
29
|
+
showFirstButton: C = !1,
|
|
30
|
+
showLastButton: T = !1,
|
|
31
|
+
siblingCount: P = 1
|
|
32
|
+
} = a, p = V(a, sa), [r, j] = oa({
|
|
33
|
+
controlled: u,
|
|
34
|
+
default: c,
|
|
35
|
+
name: n,
|
|
37
36
|
state: "page"
|
|
38
|
-
}),
|
|
39
|
-
|
|
40
|
-
}, x = (
|
|
41
|
-
const
|
|
37
|
+
}), $ = (s, h) => {
|
|
38
|
+
u || j(h), i && i(s, h);
|
|
39
|
+
}, x = (s, h) => {
|
|
40
|
+
const Z = h - s + 1;
|
|
42
41
|
return Array.from({
|
|
43
|
-
length:
|
|
44
|
-
}, (
|
|
45
|
-
},
|
|
42
|
+
length: Z
|
|
43
|
+
}, (ha, aa) => s + aa);
|
|
44
|
+
}, O = x(1, Math.min(e, t)), y = x(Math.max(t - e + 1, e + 1), t), z = Math.max(
|
|
46
45
|
Math.min(
|
|
47
46
|
// Natural start
|
|
48
|
-
|
|
47
|
+
r - P,
|
|
49
48
|
// Lower boundary when page is high
|
|
50
|
-
|
|
49
|
+
t - e - P * 2 - 1
|
|
51
50
|
),
|
|
52
51
|
// Greater than startPages
|
|
53
52
|
e + 2
|
|
54
|
-
),
|
|
53
|
+
), k = Math.min(
|
|
55
54
|
Math.max(
|
|
56
55
|
// Natural end
|
|
57
|
-
|
|
56
|
+
r + P,
|
|
58
57
|
// Upper boundary when page is low
|
|
59
|
-
e +
|
|
58
|
+
e + P * 2 + 2
|
|
60
59
|
),
|
|
61
60
|
// Less than endPages
|
|
62
|
-
y.length > 0 ? y[0] - 2 :
|
|
63
|
-
),
|
|
64
|
-
|
|
65
|
-
...
|
|
66
|
-
...
|
|
61
|
+
y.length > 0 ? y[0] - 2 : t - 1
|
|
62
|
+
), M = [
|
|
63
|
+
...C ? ["first"] : [],
|
|
64
|
+
...l ? [] : ["previous"],
|
|
65
|
+
...O,
|
|
67
66
|
// Start ellipsis
|
|
68
67
|
// eslint-disable-next-line no-nested-ternary
|
|
69
|
-
...
|
|
68
|
+
...z > e + 2 ? ["start-ellipsis"] : e + 1 < t - e ? [e + 1] : [],
|
|
70
69
|
// Sibling pages
|
|
71
|
-
...x(
|
|
70
|
+
...x(z, k),
|
|
72
71
|
// End ellipsis
|
|
73
72
|
// eslint-disable-next-line no-nested-ternary
|
|
74
|
-
...
|
|
73
|
+
...k < t - e - 1 ? ["end-ellipsis"] : t - e > e ? [t - e] : [],
|
|
75
74
|
...y,
|
|
76
|
-
...
|
|
77
|
-
...
|
|
78
|
-
],
|
|
79
|
-
switch (
|
|
75
|
+
...v ? [] : ["next"],
|
|
76
|
+
...T ? ["last"] : []
|
|
77
|
+
], G = (s) => {
|
|
78
|
+
switch (s) {
|
|
80
79
|
case "first":
|
|
81
80
|
return 1;
|
|
82
81
|
case "previous":
|
|
83
|
-
return
|
|
82
|
+
return r - 1;
|
|
84
83
|
case "next":
|
|
85
|
-
return
|
|
84
|
+
return r + 1;
|
|
86
85
|
case "last":
|
|
87
|
-
return
|
|
86
|
+
return t;
|
|
88
87
|
default:
|
|
89
88
|
return null;
|
|
90
89
|
}
|
|
91
|
-
},
|
|
92
|
-
onClick: (
|
|
93
|
-
|
|
90
|
+
}, N = M.map((s) => typeof s == "number" ? {
|
|
91
|
+
onClick: (h) => {
|
|
92
|
+
$(h, s);
|
|
94
93
|
},
|
|
95
94
|
type: "page",
|
|
96
|
-
page:
|
|
97
|
-
selected:
|
|
95
|
+
page: s,
|
|
96
|
+
selected: s === r,
|
|
98
97
|
disabled: f,
|
|
99
|
-
"aria-current":
|
|
98
|
+
"aria-current": s === r ? "true" : void 0
|
|
100
99
|
} : {
|
|
101
|
-
onClick: (
|
|
102
|
-
|
|
100
|
+
onClick: (h) => {
|
|
101
|
+
$(h, G(s));
|
|
103
102
|
},
|
|
104
|
-
type:
|
|
105
|
-
page:
|
|
103
|
+
type: s,
|
|
104
|
+
page: G(s),
|
|
106
105
|
selected: !1,
|
|
107
|
-
disabled: f ||
|
|
106
|
+
disabled: f || s.indexOf("ellipsis") === -1 && (s === "next" || s === "last" ? r >= t : r <= 1)
|
|
108
107
|
});
|
|
109
|
-
return
|
|
110
|
-
items:
|
|
111
|
-
},
|
|
108
|
+
return d({
|
|
109
|
+
items: N
|
|
110
|
+
}, p);
|
|
112
111
|
}
|
|
113
|
-
function
|
|
114
|
-
return
|
|
112
|
+
function la(a) {
|
|
113
|
+
return w("MuiPaginationItem", a);
|
|
115
114
|
}
|
|
116
|
-
const
|
|
115
|
+
const ca = H("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "text", "textPrimary", "textSecondary", "outlined", "outlinedPrimary", "outlinedSecondary", "rounded", "ellipsis", "firstLast", "previousNext", "focusVisible", "disabled", "selected", "icon"]), b = ca, W = R(/* @__PURE__ */ m.jsx("path", {
|
|
117
116
|
d: "M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"
|
|
118
|
-
}), "FirstPage"),
|
|
117
|
+
}), "FirstPage"), _ = R(/* @__PURE__ */ m.jsx("path", {
|
|
119
118
|
d: "M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"
|
|
120
|
-
}), "LastPage"),
|
|
119
|
+
}), "LastPage"), U = R(/* @__PURE__ */ m.jsx("path", {
|
|
121
120
|
d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
|
|
122
|
-
}), "NavigateBefore"),
|
|
121
|
+
}), "NavigateBefore"), A = R(/* @__PURE__ */ m.jsx("path", {
|
|
123
122
|
d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
124
|
-
}), "NavigateNext"),
|
|
123
|
+
}), "NavigateNext"), da = ["className", "color", "component", "components", "disabled", "page", "selected", "shape", "size", "slots", "type", "variant"], Q = (a, e) => {
|
|
125
124
|
const {
|
|
126
|
-
ownerState:
|
|
125
|
+
ownerState: n
|
|
127
126
|
} = a;
|
|
128
|
-
return [e.root, e[
|
|
129
|
-
},
|
|
127
|
+
return [e.root, e[n.variant], e[`size${B(n.size)}`], n.variant === "text" && e[`text${B(n.color)}`], n.variant === "outlined" && e[`outlined${B(n.color)}`], n.shape === "rounded" && e.rounded, n.type === "page" && e.page, (n.type === "start-ellipsis" || n.type === "end-ellipsis") && e.ellipsis, (n.type === "previous" || n.type === "next") && e.previousNext, (n.type === "first" || n.type === "last") && e.firstLast];
|
|
128
|
+
}, pa = (a) => {
|
|
130
129
|
const {
|
|
131
130
|
classes: e,
|
|
132
|
-
color:
|
|
133
|
-
disabled:
|
|
134
|
-
selected:
|
|
131
|
+
color: n,
|
|
132
|
+
disabled: t,
|
|
133
|
+
selected: c,
|
|
135
134
|
size: f,
|
|
136
|
-
shape:
|
|
137
|
-
type:
|
|
135
|
+
shape: v,
|
|
136
|
+
type: l,
|
|
138
137
|
variant: i
|
|
139
|
-
} = a,
|
|
140
|
-
root: ["root", `size${
|
|
138
|
+
} = a, u = {
|
|
139
|
+
root: ["root", `size${B(f)}`, i, v, n !== "standard" && `${i}${B(n)}`, t && "disabled", c && "selected", {
|
|
141
140
|
page: "page",
|
|
142
141
|
first: "firstLast",
|
|
143
142
|
last: "firstLast",
|
|
@@ -145,18 +144,18 @@ const la = w("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
145
144
|
"end-ellipsis": "ellipsis",
|
|
146
145
|
previous: "previousNext",
|
|
147
146
|
next: "previousNext"
|
|
148
|
-
}[
|
|
147
|
+
}[l]],
|
|
149
148
|
icon: ["icon"]
|
|
150
149
|
};
|
|
151
|
-
return
|
|
152
|
-
},
|
|
150
|
+
return J(u, la, e);
|
|
151
|
+
}, ua = D("div", {
|
|
153
152
|
name: "MuiPaginationItem",
|
|
154
153
|
slot: "Root",
|
|
155
|
-
overridesResolver:
|
|
154
|
+
overridesResolver: Q
|
|
156
155
|
})(({
|
|
157
156
|
theme: a,
|
|
158
157
|
ownerState: e
|
|
159
|
-
}) =>
|
|
158
|
+
}) => d({}, a.typography.body2, {
|
|
160
159
|
borderRadius: 32 / 2,
|
|
161
160
|
textAlign: "center",
|
|
162
161
|
boxSizing: "border-box",
|
|
@@ -165,7 +164,7 @@ const la = w("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
165
164
|
margin: "0 3px",
|
|
166
165
|
color: (a.vars || a).palette.text.primary,
|
|
167
166
|
height: "auto",
|
|
168
|
-
[`&.${
|
|
167
|
+
[`&.${b.disabled}`]: {
|
|
169
168
|
opacity: (a.vars || a).palette.action.disabledOpacity
|
|
170
169
|
}
|
|
171
170
|
}, e.size === "small" && {
|
|
@@ -178,14 +177,14 @@ const la = w("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
178
177
|
borderRadius: 40 / 2,
|
|
179
178
|
padding: "0 10px",
|
|
180
179
|
fontSize: a.typography.pxToRem(15)
|
|
181
|
-
})),
|
|
180
|
+
})), ga = D(ta, {
|
|
182
181
|
name: "MuiPaginationItem",
|
|
183
182
|
slot: "Root",
|
|
184
|
-
overridesResolver:
|
|
183
|
+
overridesResolver: Q
|
|
185
184
|
})(({
|
|
186
185
|
theme: a,
|
|
187
186
|
ownerState: e
|
|
188
|
-
}) =>
|
|
187
|
+
}) => d({}, a.typography.body2, {
|
|
189
188
|
borderRadius: 32 / 2,
|
|
190
189
|
textAlign: "center",
|
|
191
190
|
boxSizing: "border-box",
|
|
@@ -194,10 +193,10 @@ const la = w("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
194
193
|
padding: "0 6px",
|
|
195
194
|
margin: "0 3px",
|
|
196
195
|
color: (a.vars || a).palette.text.primary,
|
|
197
|
-
[`&.${
|
|
196
|
+
[`&.${b.focusVisible}`]: {
|
|
198
197
|
backgroundColor: (a.vars || a).palette.action.focus
|
|
199
198
|
},
|
|
200
|
-
[`&.${
|
|
199
|
+
[`&.${b.disabled}`]: {
|
|
201
200
|
opacity: (a.vars || a).palette.action.disabledOpacity
|
|
202
201
|
},
|
|
203
202
|
transition: a.transitions.create(["color", "background-color"], {
|
|
@@ -210,7 +209,7 @@ const la = w("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
210
209
|
backgroundColor: "transparent"
|
|
211
210
|
}
|
|
212
211
|
},
|
|
213
|
-
[`&.${
|
|
212
|
+
[`&.${b.selected}`]: {
|
|
214
213
|
backgroundColor: (a.vars || a).palette.action.selected,
|
|
215
214
|
"&:hover": {
|
|
216
215
|
backgroundColor: a.vars ? `rgba(${a.vars.palette.action.selected} / calc(${a.vars.palette.action.selectedOpacity} + ${a.vars.palette.action.hoverOpacity}))` : I(a.palette.action.selected, a.palette.action.selectedOpacity + a.palette.action.hoverOpacity),
|
|
@@ -219,10 +218,10 @@ const la = w("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
219
218
|
backgroundColor: (a.vars || a).palette.action.selected
|
|
220
219
|
}
|
|
221
220
|
},
|
|
222
|
-
[`&.${
|
|
221
|
+
[`&.${b.focusVisible}`]: {
|
|
223
222
|
backgroundColor: a.vars ? `rgba(${a.vars.palette.action.selected} / calc(${a.vars.palette.action.selectedOpacity} + ${a.vars.palette.action.focusOpacity}))` : I(a.palette.action.selected, a.palette.action.selectedOpacity + a.palette.action.focusOpacity)
|
|
224
223
|
},
|
|
225
|
-
[`&.${
|
|
224
|
+
[`&.${b.disabled}`]: {
|
|
226
225
|
opacity: 1,
|
|
227
226
|
color: (a.vars || a).palette.action.disabled,
|
|
228
227
|
backgroundColor: (a.vars || a).palette.action.selected
|
|
@@ -245,8 +244,8 @@ const la = w("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
245
244
|
}), ({
|
|
246
245
|
theme: a,
|
|
247
246
|
ownerState: e
|
|
248
|
-
}) =>
|
|
249
|
-
[`&.${
|
|
247
|
+
}) => d({}, e.variant === "text" && {
|
|
248
|
+
[`&.${b.selected}`]: d({}, e.color !== "standard" && {
|
|
250
249
|
color: (a.vars || a).palette[e.color].contrastText,
|
|
251
250
|
backgroundColor: (a.vars || a).palette[e.color].main,
|
|
252
251
|
"&:hover": {
|
|
@@ -256,17 +255,17 @@ const la = w("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
256
255
|
backgroundColor: (a.vars || a).palette[e.color].main
|
|
257
256
|
}
|
|
258
257
|
},
|
|
259
|
-
[`&.${
|
|
258
|
+
[`&.${b.focusVisible}`]: {
|
|
260
259
|
backgroundColor: (a.vars || a).palette[e.color].dark
|
|
261
260
|
}
|
|
262
261
|
}, {
|
|
263
|
-
[`&.${
|
|
262
|
+
[`&.${b.disabled}`]: {
|
|
264
263
|
color: (a.vars || a).palette.action.disabled
|
|
265
264
|
}
|
|
266
265
|
})
|
|
267
266
|
}, e.variant === "outlined" && {
|
|
268
267
|
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)"}`,
|
|
269
|
-
[`&.${
|
|
268
|
+
[`&.${b.selected}`]: d({}, e.color !== "standard" && {
|
|
270
269
|
color: (a.vars || a).palette[e.color].main,
|
|
271
270
|
border: `1px solid ${a.vars ? `rgba(${a.vars.palette[e.color].mainChannel} / 0.5)` : I(a.palette[e.color].main, 0.5)}`,
|
|
272
271
|
backgroundColor: a.vars ? `rgba(${a.vars.palette[e.color].mainChannel} / ${a.vars.palette.action.activatedOpacity})` : I(a.palette[e.color].main, a.palette.action.activatedOpacity),
|
|
@@ -277,85 +276,85 @@ const la = w("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "te
|
|
|
277
276
|
backgroundColor: "transparent"
|
|
278
277
|
}
|
|
279
278
|
},
|
|
280
|
-
[`&.${
|
|
279
|
+
[`&.${b.focusVisible}`]: {
|
|
281
280
|
backgroundColor: a.vars ? `rgba(${a.vars.palette[e.color].mainChannel} / calc(${a.vars.palette.action.activatedOpacity} + ${a.vars.palette.action.focusOpacity}))` : I(a.palette[e.color].main, a.palette.action.activatedOpacity + a.palette.action.focusOpacity)
|
|
282
281
|
}
|
|
283
282
|
}, {
|
|
284
|
-
[`&.${
|
|
283
|
+
[`&.${b.disabled}`]: {
|
|
285
284
|
borderColor: (a.vars || a).palette.action.disabledBackground,
|
|
286
285
|
color: (a.vars || a).palette.action.disabled
|
|
287
286
|
}
|
|
288
287
|
})
|
|
289
|
-
})),
|
|
288
|
+
})), ba = D("div", {
|
|
290
289
|
name: "MuiPaginationItem",
|
|
291
290
|
slot: "Icon",
|
|
292
291
|
overridesResolver: (a, e) => e.icon
|
|
293
292
|
})(({
|
|
294
293
|
theme: a,
|
|
295
294
|
ownerState: e
|
|
296
|
-
}) =>
|
|
295
|
+
}) => d({
|
|
297
296
|
fontSize: a.typography.pxToRem(20),
|
|
298
297
|
margin: "0 -8px"
|
|
299
298
|
}, e.size === "small" && {
|
|
300
299
|
fontSize: a.typography.pxToRem(18)
|
|
301
300
|
}, e.size === "large" && {
|
|
302
301
|
fontSize: a.typography.pxToRem(22)
|
|
303
|
-
})),
|
|
304
|
-
const
|
|
302
|
+
})), X = /* @__PURE__ */ S.forwardRef(function(e, n) {
|
|
303
|
+
const t = q({
|
|
305
304
|
props: e,
|
|
306
305
|
name: "MuiPaginationItem"
|
|
307
306
|
}), {
|
|
308
|
-
className:
|
|
307
|
+
className: c,
|
|
309
308
|
color: f = "standard",
|
|
310
|
-
component:
|
|
311
|
-
components:
|
|
309
|
+
component: v,
|
|
310
|
+
components: l = {},
|
|
312
311
|
disabled: i = !1,
|
|
313
|
-
page:
|
|
314
|
-
selected:
|
|
315
|
-
shape:
|
|
316
|
-
size:
|
|
317
|
-
slots:
|
|
318
|
-
type:
|
|
319
|
-
variant:
|
|
320
|
-
} =
|
|
312
|
+
page: u,
|
|
313
|
+
selected: C = !1,
|
|
314
|
+
shape: T = "circular",
|
|
315
|
+
size: P = "medium",
|
|
316
|
+
slots: p = {},
|
|
317
|
+
type: r = "page",
|
|
318
|
+
variant: j = "text"
|
|
319
|
+
} = t, $ = V(t, da), x = d({}, t, {
|
|
321
320
|
color: f,
|
|
322
321
|
disabled: i,
|
|
323
|
-
selected:
|
|
324
|
-
shape:
|
|
325
|
-
size:
|
|
326
|
-
type:
|
|
327
|
-
variant:
|
|
328
|
-
}),
|
|
329
|
-
previous:
|
|
330
|
-
next:
|
|
331
|
-
last:
|
|
332
|
-
first:
|
|
322
|
+
selected: C,
|
|
323
|
+
shape: T,
|
|
324
|
+
size: P,
|
|
325
|
+
type: r,
|
|
326
|
+
variant: j
|
|
327
|
+
}), O = na(), y = pa(x), k = (O.direction === "rtl" ? {
|
|
328
|
+
previous: p.next || l.next || A,
|
|
329
|
+
next: p.previous || l.previous || U,
|
|
330
|
+
last: p.first || l.first || W,
|
|
331
|
+
first: p.last || l.last || _
|
|
333
332
|
} : {
|
|
334
|
-
previous:
|
|
335
|
-
next:
|
|
336
|
-
first:
|
|
337
|
-
last:
|
|
338
|
-
})[
|
|
339
|
-
return
|
|
340
|
-
ref:
|
|
333
|
+
previous: p.previous || l.previous || U,
|
|
334
|
+
next: p.next || l.next || A,
|
|
335
|
+
first: p.first || l.first || W,
|
|
336
|
+
last: p.last || l.last || _
|
|
337
|
+
})[r];
|
|
338
|
+
return r === "start-ellipsis" || r === "end-ellipsis" ? /* @__PURE__ */ m.jsx(ua, {
|
|
339
|
+
ref: n,
|
|
341
340
|
ownerState: x,
|
|
342
|
-
className:
|
|
341
|
+
className: E(y.root, c),
|
|
343
342
|
children: "…"
|
|
344
|
-
}) : /* @__PURE__ */
|
|
345
|
-
ref:
|
|
343
|
+
}) : /* @__PURE__ */ m.jsxs(ga, d({
|
|
344
|
+
ref: n,
|
|
346
345
|
ownerState: x,
|
|
347
|
-
component:
|
|
346
|
+
component: v,
|
|
348
347
|
disabled: i,
|
|
349
|
-
className:
|
|
350
|
-
},
|
|
351
|
-
children: [
|
|
352
|
-
as:
|
|
348
|
+
className: E(y.root, c)
|
|
349
|
+
}, $, {
|
|
350
|
+
children: [r === "page" && u, k ? /* @__PURE__ */ m.jsx(ba, {
|
|
351
|
+
as: k,
|
|
353
352
|
ownerState: x,
|
|
354
353
|
className: y.icon
|
|
355
354
|
}) : null]
|
|
356
355
|
}));
|
|
357
356
|
});
|
|
358
|
-
process.env.NODE_ENV !== "production" && (
|
|
357
|
+
process.env.NODE_ENV !== "production" && (X.propTypes = {
|
|
359
358
|
// ----------------------------- Warning --------------------------------
|
|
360
359
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
361
360
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -363,27 +362,27 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
|
|
|
363
362
|
/**
|
|
364
363
|
* @ignore
|
|
365
364
|
*/
|
|
366
|
-
children:
|
|
365
|
+
children: o.node,
|
|
367
366
|
/**
|
|
368
367
|
* Override or extend the styles applied to the component.
|
|
369
368
|
*/
|
|
370
|
-
classes:
|
|
369
|
+
classes: o.object,
|
|
371
370
|
/**
|
|
372
371
|
* @ignore
|
|
373
372
|
*/
|
|
374
|
-
className:
|
|
373
|
+
className: o.string,
|
|
375
374
|
/**
|
|
376
375
|
* The active color.
|
|
377
376
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
378
377
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
379
378
|
* @default 'standard'
|
|
380
379
|
*/
|
|
381
|
-
color:
|
|
380
|
+
color: o.oneOfType([o.oneOf(["primary", "secondary", "standard"]), o.string]),
|
|
382
381
|
/**
|
|
383
382
|
* The component used for the root node.
|
|
384
383
|
* Either a string to use a HTML element or a component.
|
|
385
384
|
*/
|
|
386
|
-
component:
|
|
385
|
+
component: o.elementType,
|
|
387
386
|
/**
|
|
388
387
|
* The components used for each slot inside.
|
|
389
388
|
*
|
|
@@ -392,36 +391,36 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
|
|
|
392
391
|
*
|
|
393
392
|
* @default {}
|
|
394
393
|
*/
|
|
395
|
-
components:
|
|
396
|
-
first:
|
|
397
|
-
last:
|
|
398
|
-
next:
|
|
399
|
-
previous:
|
|
394
|
+
components: o.shape({
|
|
395
|
+
first: o.elementType,
|
|
396
|
+
last: o.elementType,
|
|
397
|
+
next: o.elementType,
|
|
398
|
+
previous: o.elementType
|
|
400
399
|
}),
|
|
401
400
|
/**
|
|
402
401
|
* If `true`, the component is disabled.
|
|
403
402
|
* @default false
|
|
404
403
|
*/
|
|
405
|
-
disabled:
|
|
404
|
+
disabled: o.bool,
|
|
406
405
|
/**
|
|
407
406
|
* The current page number.
|
|
408
407
|
*/
|
|
409
|
-
page:
|
|
408
|
+
page: o.node,
|
|
410
409
|
/**
|
|
411
410
|
* If `true` the pagination item is selected.
|
|
412
411
|
* @default false
|
|
413
412
|
*/
|
|
414
|
-
selected:
|
|
413
|
+
selected: o.bool,
|
|
415
414
|
/**
|
|
416
415
|
* The shape of the pagination item.
|
|
417
416
|
* @default 'circular'
|
|
418
417
|
*/
|
|
419
|
-
shape:
|
|
418
|
+
shape: o.oneOf(["circular", "rounded"]),
|
|
420
419
|
/**
|
|
421
420
|
* The size of the component.
|
|
422
421
|
* @default 'medium'
|
|
423
422
|
*/
|
|
424
|
-
size:
|
|
423
|
+
size: o.oneOfType([o.oneOf(["small", "medium", "large"]), o.string]),
|
|
425
424
|
/**
|
|
426
425
|
* The components used for each slot inside.
|
|
427
426
|
*
|
|
@@ -429,46 +428,46 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
|
|
|
429
428
|
*
|
|
430
429
|
* @default {}
|
|
431
430
|
*/
|
|
432
|
-
slots:
|
|
433
|
-
first:
|
|
434
|
-
last:
|
|
435
|
-
next:
|
|
436
|
-
previous:
|
|
431
|
+
slots: o.shape({
|
|
432
|
+
first: o.elementType,
|
|
433
|
+
last: o.elementType,
|
|
434
|
+
next: o.elementType,
|
|
435
|
+
previous: o.elementType
|
|
437
436
|
}),
|
|
438
437
|
/**
|
|
439
438
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
440
439
|
*/
|
|
441
|
-
sx:
|
|
440
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
442
441
|
/**
|
|
443
442
|
* The type of pagination item.
|
|
444
443
|
* @default 'page'
|
|
445
444
|
*/
|
|
446
|
-
type:
|
|
445
|
+
type: o.oneOf(["end-ellipsis", "first", "last", "next", "page", "previous", "start-ellipsis"]),
|
|
447
446
|
/**
|
|
448
447
|
* The variant to use.
|
|
449
448
|
* @default 'text'
|
|
450
449
|
*/
|
|
451
|
-
variant:
|
|
450
|
+
variant: o.oneOfType([o.oneOf(["outlined", "text"]), o.string])
|
|
452
451
|
});
|
|
453
|
-
const
|
|
452
|
+
const fa = X, ma = ["boundaryCount", "className", "color", "count", "defaultPage", "disabled", "getItemAriaLabel", "hideNextButton", "hidePrevButton", "onChange", "page", "renderItem", "shape", "showFirstButton", "showLastButton", "siblingCount", "size", "variant"], va = (a) => {
|
|
454
453
|
const {
|
|
455
454
|
classes: e,
|
|
456
|
-
variant:
|
|
455
|
+
variant: n
|
|
457
456
|
} = a;
|
|
458
|
-
return
|
|
459
|
-
root: ["root",
|
|
457
|
+
return J({
|
|
458
|
+
root: ["root", n],
|
|
460
459
|
ul: ["ul"]
|
|
461
|
-
},
|
|
462
|
-
}, xa =
|
|
460
|
+
}, ia, e);
|
|
461
|
+
}, xa = D("nav", {
|
|
463
462
|
name: "MuiPagination",
|
|
464
463
|
slot: "Root",
|
|
465
464
|
overridesResolver: (a, e) => {
|
|
466
465
|
const {
|
|
467
|
-
ownerState:
|
|
466
|
+
ownerState: n
|
|
468
467
|
} = a;
|
|
469
|
-
return [e.root, e[
|
|
468
|
+
return [e.root, e[n.variant]];
|
|
470
469
|
}
|
|
471
|
-
})({}), ya =
|
|
470
|
+
})({}), ya = D("ul", {
|
|
472
471
|
name: "MuiPagination",
|
|
473
472
|
slot: "Ul",
|
|
474
473
|
overridesResolver: (a, e) => e.ul
|
|
@@ -480,73 +479,73 @@ const va = Q, fa = ["boundaryCount", "className", "color", "count", "defaultPage
|
|
|
480
479
|
margin: 0,
|
|
481
480
|
listStyle: "none"
|
|
482
481
|
});
|
|
483
|
-
function
|
|
484
|
-
return a === "page" ? `${
|
|
482
|
+
function Pa(a, e, n) {
|
|
483
|
+
return a === "page" ? `${n ? "" : "Go to "}page ${e}` : `Go to ${a} page`;
|
|
485
484
|
}
|
|
486
|
-
const
|
|
487
|
-
const
|
|
485
|
+
const Y = /* @__PURE__ */ S.forwardRef(function(e, n) {
|
|
486
|
+
const t = q({
|
|
488
487
|
props: e,
|
|
489
488
|
name: "MuiPagination"
|
|
490
489
|
}), {
|
|
491
|
-
boundaryCount:
|
|
490
|
+
boundaryCount: c = 1,
|
|
492
491
|
className: f,
|
|
493
|
-
color:
|
|
494
|
-
count:
|
|
492
|
+
color: v = "standard",
|
|
493
|
+
count: l = 1,
|
|
495
494
|
defaultPage: i = 1,
|
|
496
|
-
disabled:
|
|
497
|
-
getItemAriaLabel:
|
|
498
|
-
hideNextButton:
|
|
499
|
-
hidePrevButton:
|
|
500
|
-
renderItem:
|
|
501
|
-
shape:
|
|
502
|
-
showFirstButton:
|
|
503
|
-
showLastButton:
|
|
495
|
+
disabled: u = !1,
|
|
496
|
+
getItemAriaLabel: C = Pa,
|
|
497
|
+
hideNextButton: T = !1,
|
|
498
|
+
hidePrevButton: P = !1,
|
|
499
|
+
renderItem: p = (N) => /* @__PURE__ */ m.jsx(fa, d({}, N)),
|
|
500
|
+
shape: r = "circular",
|
|
501
|
+
showFirstButton: j = !1,
|
|
502
|
+
showLastButton: $ = !1,
|
|
504
503
|
siblingCount: x = 1,
|
|
505
|
-
size:
|
|
504
|
+
size: O = "medium",
|
|
506
505
|
variant: y = "text"
|
|
507
|
-
} =
|
|
508
|
-
items:
|
|
509
|
-
} =
|
|
506
|
+
} = t, z = V(t, ma), {
|
|
507
|
+
items: k
|
|
508
|
+
} = ra(d({}, t, {
|
|
510
509
|
componentName: "Pagination"
|
|
511
|
-
})),
|
|
512
|
-
boundaryCount:
|
|
513
|
-
color:
|
|
514
|
-
count:
|
|
510
|
+
})), M = d({}, t, {
|
|
511
|
+
boundaryCount: c,
|
|
512
|
+
color: v,
|
|
513
|
+
count: l,
|
|
515
514
|
defaultPage: i,
|
|
516
|
-
disabled:
|
|
517
|
-
getItemAriaLabel:
|
|
518
|
-
hideNextButton:
|
|
519
|
-
hidePrevButton:
|
|
520
|
-
renderItem:
|
|
521
|
-
shape:
|
|
522
|
-
showFirstButton:
|
|
523
|
-
showLastButton:
|
|
515
|
+
disabled: u,
|
|
516
|
+
getItemAriaLabel: C,
|
|
517
|
+
hideNextButton: T,
|
|
518
|
+
hidePrevButton: P,
|
|
519
|
+
renderItem: p,
|
|
520
|
+
shape: r,
|
|
521
|
+
showFirstButton: j,
|
|
522
|
+
showLastButton: $,
|
|
524
523
|
siblingCount: x,
|
|
525
|
-
size:
|
|
524
|
+
size: O,
|
|
526
525
|
variant: y
|
|
527
|
-
}),
|
|
528
|
-
return /* @__PURE__ */
|
|
526
|
+
}), G = va(M);
|
|
527
|
+
return /* @__PURE__ */ m.jsx(xa, d({
|
|
529
528
|
"aria-label": "pagination navigation",
|
|
530
|
-
className:
|
|
531
|
-
ownerState:
|
|
532
|
-
ref:
|
|
533
|
-
},
|
|
534
|
-
children: /* @__PURE__ */
|
|
535
|
-
className:
|
|
536
|
-
ownerState:
|
|
537
|
-
children:
|
|
538
|
-
children:
|
|
539
|
-
color:
|
|
540
|
-
"aria-label":
|
|
541
|
-
shape:
|
|
542
|
-
size:
|
|
529
|
+
className: E(G.root, f),
|
|
530
|
+
ownerState: M,
|
|
531
|
+
ref: n
|
|
532
|
+
}, z, {
|
|
533
|
+
children: /* @__PURE__ */ m.jsx(ya, {
|
|
534
|
+
className: G.ul,
|
|
535
|
+
ownerState: M,
|
|
536
|
+
children: k.map((N, s) => /* @__PURE__ */ m.jsx("li", {
|
|
537
|
+
children: p(d({}, N, {
|
|
538
|
+
color: v,
|
|
539
|
+
"aria-label": C(N.type, N.page, N.selected),
|
|
540
|
+
shape: r,
|
|
541
|
+
size: O,
|
|
543
542
|
variant: y
|
|
544
543
|
}))
|
|
545
|
-
},
|
|
544
|
+
}, s))
|
|
546
545
|
})
|
|
547
546
|
}));
|
|
548
547
|
});
|
|
549
|
-
process.env.NODE_ENV !== "production" && (
|
|
548
|
+
process.env.NODE_ENV !== "production" && (Y.propTypes = {
|
|
550
549
|
// ----------------------------- Warning --------------------------------
|
|
551
550
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
552
551
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -555,37 +554,37 @@ process.env.NODE_ENV !== "production" && (X.propTypes = {
|
|
|
555
554
|
* Number of always visible pages at the beginning and end.
|
|
556
555
|
* @default 1
|
|
557
556
|
*/
|
|
558
|
-
boundaryCount:
|
|
557
|
+
boundaryCount: L,
|
|
559
558
|
/**
|
|
560
559
|
* Override or extend the styles applied to the component.
|
|
561
560
|
*/
|
|
562
|
-
classes:
|
|
561
|
+
classes: o.object,
|
|
563
562
|
/**
|
|
564
563
|
* @ignore
|
|
565
564
|
*/
|
|
566
|
-
className:
|
|
565
|
+
className: o.string,
|
|
567
566
|
/**
|
|
568
567
|
* The active color.
|
|
569
568
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
570
569
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
571
570
|
* @default 'standard'
|
|
572
571
|
*/
|
|
573
|
-
color:
|
|
572
|
+
color: o.oneOfType([o.oneOf(["primary", "secondary", "standard"]), o.string]),
|
|
574
573
|
/**
|
|
575
574
|
* The total number of pages.
|
|
576
575
|
* @default 1
|
|
577
576
|
*/
|
|
578
|
-
count:
|
|
577
|
+
count: L,
|
|
579
578
|
/**
|
|
580
579
|
* The page selected by default when the component is uncontrolled.
|
|
581
580
|
* @default 1
|
|
582
581
|
*/
|
|
583
|
-
defaultPage:
|
|
582
|
+
defaultPage: L,
|
|
584
583
|
/**
|
|
585
584
|
* If `true`, the component is disabled.
|
|
586
585
|
* @default false
|
|
587
586
|
*/
|
|
588
|
-
disabled:
|
|
587
|
+
disabled: o.bool,
|
|
589
588
|
/**
|
|
590
589
|
* Accepts a function which returns a string value that provides a user-friendly name for the current page.
|
|
591
590
|
* This is important for screen reader users.
|
|
@@ -596,76 +595,77 @@ process.env.NODE_ENV !== "production" && (X.propTypes = {
|
|
|
596
595
|
* @param {bool} selected If true, the current page is selected.
|
|
597
596
|
* @returns {string}
|
|
598
597
|
*/
|
|
599
|
-
getItemAriaLabel:
|
|
598
|
+
getItemAriaLabel: o.func,
|
|
600
599
|
/**
|
|
601
600
|
* If `true`, hide the next-page button.
|
|
602
601
|
* @default false
|
|
603
602
|
*/
|
|
604
|
-
hideNextButton:
|
|
603
|
+
hideNextButton: o.bool,
|
|
605
604
|
/**
|
|
606
605
|
* If `true`, hide the previous-page button.
|
|
607
606
|
* @default false
|
|
608
607
|
*/
|
|
609
|
-
hidePrevButton:
|
|
608
|
+
hidePrevButton: o.bool,
|
|
610
609
|
/**
|
|
611
610
|
* Callback fired when the page is changed.
|
|
612
611
|
*
|
|
613
612
|
* @param {React.ChangeEvent<unknown>} event The event source of the callback.
|
|
614
613
|
* @param {number} page The page selected.
|
|
615
614
|
*/
|
|
616
|
-
onChange:
|
|
615
|
+
onChange: o.func,
|
|
617
616
|
/**
|
|
618
617
|
* The current page.
|
|
619
618
|
*/
|
|
620
|
-
page:
|
|
619
|
+
page: L,
|
|
621
620
|
/**
|
|
622
621
|
* Render the item.
|
|
623
622
|
* @param {PaginationRenderItemParams} params The props to spread on a PaginationItem.
|
|
624
623
|
* @returns {ReactNode}
|
|
625
624
|
* @default (item) => <PaginationItem {...item} />
|
|
626
625
|
*/
|
|
627
|
-
renderItem:
|
|
626
|
+
renderItem: o.func,
|
|
628
627
|
/**
|
|
629
628
|
* The shape of the pagination items.
|
|
630
629
|
* @default 'circular'
|
|
631
630
|
*/
|
|
632
|
-
shape:
|
|
631
|
+
shape: o.oneOf(["circular", "rounded"]),
|
|
633
632
|
/**
|
|
634
633
|
* If `true`, show the first-page button.
|
|
635
634
|
* @default false
|
|
636
635
|
*/
|
|
637
|
-
showFirstButton:
|
|
636
|
+
showFirstButton: o.bool,
|
|
638
637
|
/**
|
|
639
638
|
* If `true`, show the last-page button.
|
|
640
639
|
* @default false
|
|
641
640
|
*/
|
|
642
|
-
showLastButton:
|
|
641
|
+
showLastButton: o.bool,
|
|
643
642
|
/**
|
|
644
643
|
* Number of always visible pages before and after the current page.
|
|
645
644
|
* @default 1
|
|
646
645
|
*/
|
|
647
|
-
siblingCount:
|
|
646
|
+
siblingCount: L,
|
|
648
647
|
/**
|
|
649
648
|
* The size of the component.
|
|
650
649
|
* @default 'medium'
|
|
651
650
|
*/
|
|
652
|
-
size:
|
|
651
|
+
size: o.oneOfType([o.oneOf(["small", "medium", "large"]), o.string]),
|
|
653
652
|
/**
|
|
654
653
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
655
654
|
*/
|
|
656
|
-
sx:
|
|
655
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
657
656
|
/**
|
|
658
657
|
* The variant to use.
|
|
659
658
|
* @default 'text'
|
|
660
659
|
*/
|
|
661
|
-
variant:
|
|
660
|
+
variant: o.oneOfType([o.oneOf(["outlined", "text"]), o.string])
|
|
662
661
|
});
|
|
663
|
-
const
|
|
662
|
+
const Na = Y;
|
|
663
|
+
const Ba = ({
|
|
664
664
|
onChange: a,
|
|
665
665
|
totalCount: e,
|
|
666
|
-
page:
|
|
667
|
-
pageSize:
|
|
668
|
-
pageTotalCount:
|
|
666
|
+
page: n,
|
|
667
|
+
pageSize: t,
|
|
668
|
+
pageTotalCount: c = [
|
|
669
669
|
{
|
|
670
670
|
value: "5",
|
|
671
671
|
label: "5"
|
|
@@ -685,44 +685,92 @@ const Pa = X, Ta = ({
|
|
|
685
685
|
],
|
|
686
686
|
disabled: f
|
|
687
687
|
}) => {
|
|
688
|
-
function
|
|
688
|
+
function v(i) {
|
|
689
689
|
a(1, +i.target.value);
|
|
690
690
|
}
|
|
691
|
-
function
|
|
692
|
-
a(
|
|
691
|
+
function l(i, u) {
|
|
692
|
+
a(u, t);
|
|
693
693
|
}
|
|
694
|
-
return /* @__PURE__ */
|
|
695
|
-
/* @__PURE__ */
|
|
696
|
-
/* @__PURE__ */
|
|
697
|
-
|
|
698
|
-
|
|
694
|
+
return /* @__PURE__ */ g.jsxDEV("div", { className: "kdpa-pagination", children: [
|
|
695
|
+
/* @__PURE__ */ g.jsxDEV("div", { className: "kdpa-pagination-content", children: [
|
|
696
|
+
/* @__PURE__ */ g.jsxDEV(K.Label, { className: "paginationInput-lable", for: "exampleSelectMulti", children: /* @__PURE__ */ g.jsxDEV("span", { className: "text-muted", children: "تعداد" }, void 0, !1, {
|
|
697
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/PaginationGrid/KdpaPaginationGrid.tsx",
|
|
698
|
+
lineNumber: 54,
|
|
699
|
+
columnNumber: 11
|
|
700
|
+
}, globalThis) }, void 0, !1, {
|
|
701
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/PaginationGrid/KdpaPaginationGrid.tsx",
|
|
702
|
+
lineNumber: 53,
|
|
703
|
+
columnNumber: 9
|
|
704
|
+
}, globalThis),
|
|
705
|
+
/* @__PURE__ */ g.jsxDEV("div", { className: "kdpa-pagination-container", children: /* @__PURE__ */ g.jsxDEV(
|
|
706
|
+
ea,
|
|
699
707
|
{
|
|
700
|
-
onChange: (i) =>
|
|
701
|
-
value:
|
|
708
|
+
onChange: (i) => v(i),
|
|
709
|
+
value: t,
|
|
702
710
|
disabled: f,
|
|
703
|
-
children: (
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
711
|
+
children: (c == null ? void 0 : c.length) === 0 ? /* @__PURE__ */ g.jsxDEV(F, { children: "بدون مقدار" }, void 0, !1, {
|
|
712
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/PaginationGrid/KdpaPaginationGrid.tsx",
|
|
713
|
+
lineNumber: 63,
|
|
714
|
+
columnNumber: 15
|
|
715
|
+
}, globalThis) : c == null ? void 0 : c.map((i, u) => /* @__PURE__ */ g.jsxDEV(F, { value: i == null ? void 0 : i.value, children: i == null ? void 0 : i.label }, u, !1, {
|
|
716
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/PaginationGrid/KdpaPaginationGrid.tsx",
|
|
717
|
+
lineNumber: 66,
|
|
718
|
+
columnNumber: 17
|
|
719
|
+
}, globalThis))
|
|
720
|
+
},
|
|
721
|
+
void 0,
|
|
722
|
+
!1,
|
|
723
|
+
{
|
|
724
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/PaginationGrid/KdpaPaginationGrid.tsx",
|
|
725
|
+
lineNumber: 57,
|
|
726
|
+
columnNumber: 11
|
|
727
|
+
},
|
|
728
|
+
globalThis
|
|
729
|
+
) }, void 0, !1, {
|
|
730
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/PaginationGrid/KdpaPaginationGrid.tsx",
|
|
731
|
+
lineNumber: 56,
|
|
732
|
+
columnNumber: 9
|
|
733
|
+
}, globalThis),
|
|
734
|
+
/* @__PURE__ */ g.jsxDEV(
|
|
735
|
+
K.Label,
|
|
708
736
|
{
|
|
709
|
-
className: "paginationInput-lable
|
|
737
|
+
className: "paginationInput-lable kdpa-pagination-container-lable",
|
|
710
738
|
for: "exampleSelectMulti",
|
|
711
739
|
children: [
|
|
712
|
-
/* @__PURE__ */
|
|
713
|
-
|
|
740
|
+
/* @__PURE__ */ g.jsxDEV("span", { className: "text-muted kdpa-pagination-container-span", children: "تعداد کل" }, void 0, !1, {
|
|
741
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/PaginationGrid/KdpaPaginationGrid.tsx",
|
|
742
|
+
lineNumber: 77,
|
|
743
|
+
columnNumber: 11
|
|
744
|
+
}, globalThis),
|
|
745
|
+
/* @__PURE__ */ g.jsxDEV("span", { children: e }, void 0, !1, {
|
|
746
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/PaginationGrid/KdpaPaginationGrid.tsx",
|
|
747
|
+
lineNumber: 80,
|
|
748
|
+
columnNumber: 11
|
|
749
|
+
}, globalThis)
|
|
714
750
|
]
|
|
715
|
-
}
|
|
751
|
+
},
|
|
752
|
+
void 0,
|
|
753
|
+
!0,
|
|
754
|
+
{
|
|
755
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/PaginationGrid/KdpaPaginationGrid.tsx",
|
|
756
|
+
lineNumber: 73,
|
|
757
|
+
columnNumber: 9
|
|
758
|
+
},
|
|
759
|
+
globalThis
|
|
716
760
|
)
|
|
717
|
-
] }
|
|
718
|
-
|
|
719
|
-
|
|
761
|
+
] }, void 0, !0, {
|
|
762
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/PaginationGrid/KdpaPaginationGrid.tsx",
|
|
763
|
+
lineNumber: 52,
|
|
764
|
+
columnNumber: 7
|
|
765
|
+
}, globalThis),
|
|
766
|
+
/* @__PURE__ */ g.jsxDEV(
|
|
767
|
+
Na,
|
|
720
768
|
{
|
|
721
769
|
variant: "outlined",
|
|
722
770
|
shape: "rounded",
|
|
723
|
-
page:
|
|
724
|
-
count: Math.ceil(e /
|
|
725
|
-
onChange:
|
|
771
|
+
page: n,
|
|
772
|
+
count: Math.ceil(e / t),
|
|
773
|
+
onChange: l,
|
|
726
774
|
disabled: f,
|
|
727
775
|
sx: {
|
|
728
776
|
"& .MuiPagination-ul li": {
|
|
@@ -738,10 +786,22 @@ const Pa = X, Ta = ({
|
|
|
738
786
|
borderColor: "#7367F0"
|
|
739
787
|
}
|
|
740
788
|
}
|
|
741
|
-
}
|
|
789
|
+
},
|
|
790
|
+
void 0,
|
|
791
|
+
!1,
|
|
792
|
+
{
|
|
793
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/PaginationGrid/KdpaPaginationGrid.tsx",
|
|
794
|
+
lineNumber: 83,
|
|
795
|
+
columnNumber: 7
|
|
796
|
+
},
|
|
797
|
+
globalThis
|
|
742
798
|
)
|
|
743
|
-
] }
|
|
799
|
+
] }, void 0, !0, {
|
|
800
|
+
fileName: "D:/a.dakhili/kdpa/packages/components/src/components/PaginationGrid/KdpaPaginationGrid.tsx",
|
|
801
|
+
lineNumber: 51,
|
|
802
|
+
columnNumber: 5
|
|
803
|
+
}, globalThis);
|
|
744
804
|
};
|
|
745
805
|
export {
|
|
746
|
-
|
|
806
|
+
Ba as K
|
|
747
807
|
};
|