jcicl 0.0.227 → 0.0.229
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/.chunks/AppContainer.js +17 -15
- package/.chunks/DefaultPropsProvider.js +8 -6
- package/.chunks/Paper.js +155 -0
- package/.chunks/Popper.js +1 -1
- package/.chunks/Portal.js +183 -201
- package/.chunks/TextField.js +1067 -1209
- package/.chunks/index.js +6 -83
- package/.chunks/integerPropType.js +31 -0
- package/.chunks/resolveComponentProps.js +80 -0
- package/.chunks/useSlot.js +41 -70
- package/.chunks/useTheme.js +23 -0
- package/Button/Button.js +1 -1
- package/LabeledDropdown/LabeledDropdown.js +21 -19
- package/Pagination/Pagination.js +139 -138
- package/Stepper/Stepper.d.ts +9 -0
- package/Stepper/Stepper.js +687 -0
- package/Stepper/index.d.ts +1 -0
- package/Stepper/index.js +4 -0
- package/Tooltip/Tooltip.js +20 -18
- package/package.json +1 -1
package/Pagination/Pagination.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { jsx as d, jsxs as Z } from "react/jsx-runtime";
|
|
2
|
-
import { n as
|
|
3
|
-
import { c as
|
|
2
|
+
import { n as tt } from "../.chunks/emotion-styled.browser.esm.js";
|
|
3
|
+
import { c as at } from "../.chunks/emotion-react.browser.esm.js";
|
|
4
4
|
import * as G from "react";
|
|
5
|
-
import { a as _, g as H, s as B, e as N, u as q, b as U, P as
|
|
6
|
-
import { u as
|
|
7
|
-
import {
|
|
8
|
-
import { u as
|
|
5
|
+
import { a as _, g as H, s as B, e as N, u as q, b as U, P as a, c as I, d as J } from "../.chunks/DefaultPropsProvider.js";
|
|
6
|
+
import { u as et } from "../.chunks/useControlled.js";
|
|
7
|
+
import { i as w } from "../.chunks/integerPropType.js";
|
|
8
|
+
import { u as ot } from "../.chunks/index.js";
|
|
9
9
|
import { c as D } from "../.chunks/createSimplePaletteValueFilter.js";
|
|
10
10
|
import { c as h } from "../.chunks/createSvgIcon.js";
|
|
11
|
+
import { u as j } from "../.chunks/useSlot.js";
|
|
11
12
|
import { m as V } from "../.chunks/memoTheme.js";
|
|
12
|
-
import { B as
|
|
13
|
-
function
|
|
14
|
-
return H("MuiPagination",
|
|
13
|
+
import { B as st } from "../.chunks/ButtonBase.js";
|
|
14
|
+
function nt(t) {
|
|
15
|
+
return H("MuiPagination", t);
|
|
15
16
|
}
|
|
16
17
|
_("MuiPagination", ["root", "ul", "outlined", "text"]);
|
|
17
|
-
function
|
|
18
|
+
function it(t = {}) {
|
|
18
19
|
const {
|
|
19
20
|
boundaryCount: e = 1,
|
|
20
21
|
componentName: o = "usePagination",
|
|
@@ -29,7 +30,7 @@ function ia(a = {}) {
|
|
|
29
30
|
showLastButton: R = !1,
|
|
30
31
|
siblingCount: m = 1,
|
|
31
32
|
...O
|
|
32
|
-
} =
|
|
33
|
+
} = t, [l, p] = et({
|
|
33
34
|
controlled: P,
|
|
34
35
|
default: y,
|
|
35
36
|
name: o,
|
|
@@ -110,23 +111,23 @@ function ia(a = {}) {
|
|
|
110
111
|
...O
|
|
111
112
|
};
|
|
112
113
|
}
|
|
113
|
-
function
|
|
114
|
-
return H("MuiPaginationItem",
|
|
114
|
+
function rt(t) {
|
|
115
|
+
return H("MuiPaginationItem", t);
|
|
115
116
|
}
|
|
116
|
-
const r = _("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "text", "textPrimary", "textSecondary", "outlined", "outlinedPrimary", "outlinedSecondary", "rounded", "ellipsis", "firstLast", "previousNext", "focusVisible", "disabled", "selected", "icon", "colorPrimary", "colorSecondary"]),
|
|
117
|
+
const r = _("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "text", "textPrimary", "textSecondary", "outlined", "outlinedPrimary", "outlinedSecondary", "rounded", "ellipsis", "firstLast", "previousNext", "focusVisible", "disabled", "selected", "icon", "colorPrimary", "colorSecondary"]), lt = h(/* @__PURE__ */ d("path", {
|
|
117
118
|
d: "M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"
|
|
118
|
-
}), "FirstPage"),
|
|
119
|
+
}), "FirstPage"), pt = h(/* @__PURE__ */ d("path", {
|
|
119
120
|
d: "M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"
|
|
120
|
-
}), "LastPage"),
|
|
121
|
+
}), "LastPage"), ct = h(/* @__PURE__ */ d("path", {
|
|
121
122
|
d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
|
|
122
|
-
}), "NavigateBefore"),
|
|
123
|
+
}), "NavigateBefore"), dt = h(/* @__PURE__ */ d("path", {
|
|
123
124
|
d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
124
|
-
}), "NavigateNext"), K = (
|
|
125
|
+
}), "NavigateNext"), K = (t, e) => {
|
|
125
126
|
const {
|
|
126
127
|
ownerState: o
|
|
127
|
-
} =
|
|
128
|
+
} = t;
|
|
128
129
|
return [e.root, e[o.variant], e[`size${I(o.size)}`], o.variant === "text" && e[`text${I(o.color)}`], o.variant === "outlined" && e[`outlined${I(o.color)}`], o.shape === "rounded" && e.rounded, o.type === "page" && e.page, (o.type === "start-ellipsis" || o.type === "end-ellipsis") && e.ellipsis, (o.type === "previous" || o.type === "next") && e.previousNext, (o.type === "first" || o.type === "last") && e.firstLast];
|
|
129
|
-
},
|
|
130
|
+
}, ut = (t) => {
|
|
130
131
|
const {
|
|
131
132
|
classes: e,
|
|
132
133
|
color: o,
|
|
@@ -136,7 +137,7 @@ const r = _("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
136
137
|
shape: x,
|
|
137
138
|
type: u,
|
|
138
139
|
variant: g
|
|
139
|
-
} =
|
|
140
|
+
} = t, P = {
|
|
140
141
|
root: ["root", `size${I(b)}`, g, x, o !== "standard" && `color${I(o)}`, o !== "standard" && `${g}${I(o)}`, n && "disabled", y && "selected", {
|
|
141
142
|
page: "page",
|
|
142
143
|
first: "firstLast",
|
|
@@ -148,25 +149,25 @@ const r = _("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
148
149
|
}[u]],
|
|
149
150
|
icon: ["icon"]
|
|
150
151
|
};
|
|
151
|
-
return J(P,
|
|
152
|
-
},
|
|
152
|
+
return J(P, rt, e);
|
|
153
|
+
}, gt = B("div", {
|
|
153
154
|
name: "MuiPaginationItem",
|
|
154
155
|
slot: "Root",
|
|
155
156
|
overridesResolver: K
|
|
156
157
|
})(V(({
|
|
157
|
-
theme:
|
|
158
|
+
theme: t
|
|
158
159
|
}) => ({
|
|
159
|
-
...
|
|
160
|
+
...t.typography.body2,
|
|
160
161
|
borderRadius: 32 / 2,
|
|
161
162
|
textAlign: "center",
|
|
162
163
|
boxSizing: "border-box",
|
|
163
164
|
minWidth: 32,
|
|
164
165
|
padding: "0 6px",
|
|
165
166
|
margin: "0 3px",
|
|
166
|
-
color: (
|
|
167
|
+
color: (t.vars || t).palette.text.primary,
|
|
167
168
|
height: "auto",
|
|
168
169
|
[`&.${r.disabled}`]: {
|
|
169
|
-
opacity: (
|
|
170
|
+
opacity: (t.vars || t).palette.action.disabledOpacity
|
|
170
171
|
},
|
|
171
172
|
variants: [{
|
|
172
173
|
props: {
|
|
@@ -186,17 +187,17 @@ const r = _("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
186
187
|
minWidth: 40,
|
|
187
188
|
borderRadius: 40 / 2,
|
|
188
189
|
padding: "0 10px",
|
|
189
|
-
fontSize:
|
|
190
|
+
fontSize: t.typography.pxToRem(15)
|
|
190
191
|
}
|
|
191
192
|
}]
|
|
192
|
-
}))),
|
|
193
|
+
}))), ft = B(st, {
|
|
193
194
|
name: "MuiPaginationItem",
|
|
194
195
|
slot: "Root",
|
|
195
196
|
overridesResolver: K
|
|
196
197
|
})(V(({
|
|
197
|
-
theme:
|
|
198
|
+
theme: t
|
|
198
199
|
}) => ({
|
|
199
|
-
...
|
|
200
|
+
...t.typography.body2,
|
|
200
201
|
borderRadius: 32 / 2,
|
|
201
202
|
textAlign: "center",
|
|
202
203
|
boxSizing: "border-box",
|
|
@@ -204,39 +205,39 @@ const r = _("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
204
205
|
height: 32,
|
|
205
206
|
padding: "0 6px",
|
|
206
207
|
margin: "0 3px",
|
|
207
|
-
color: (
|
|
208
|
+
color: (t.vars || t).palette.text.primary,
|
|
208
209
|
[`&.${r.focusVisible}`]: {
|
|
209
|
-
backgroundColor: (
|
|
210
|
+
backgroundColor: (t.vars || t).palette.action.focus
|
|
210
211
|
},
|
|
211
212
|
[`&.${r.disabled}`]: {
|
|
212
|
-
opacity: (
|
|
213
|
+
opacity: (t.vars || t).palette.action.disabledOpacity
|
|
213
214
|
},
|
|
214
|
-
transition:
|
|
215
|
-
duration:
|
|
215
|
+
transition: t.transitions.create(["color", "background-color"], {
|
|
216
|
+
duration: t.transitions.duration.short
|
|
216
217
|
}),
|
|
217
218
|
"&:hover": {
|
|
218
|
-
backgroundColor: (
|
|
219
|
+
backgroundColor: (t.vars || t).palette.action.hover,
|
|
219
220
|
// Reset on touch devices, it doesn't add specificity
|
|
220
221
|
"@media (hover: none)": {
|
|
221
222
|
backgroundColor: "transparent"
|
|
222
223
|
}
|
|
223
224
|
},
|
|
224
225
|
[`&.${r.selected}`]: {
|
|
225
|
-
backgroundColor: (
|
|
226
|
+
backgroundColor: (t.vars || t).palette.action.selected,
|
|
226
227
|
"&:hover": {
|
|
227
|
-
backgroundColor:
|
|
228
|
+
backgroundColor: t.vars ? `rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))` : N(t.palette.action.selected, t.palette.action.selectedOpacity + t.palette.action.hoverOpacity),
|
|
228
229
|
// Reset on touch devices, it doesn't add specificity
|
|
229
230
|
"@media (hover: none)": {
|
|
230
|
-
backgroundColor: (
|
|
231
|
+
backgroundColor: (t.vars || t).palette.action.selected
|
|
231
232
|
}
|
|
232
233
|
},
|
|
233
234
|
[`&.${r.focusVisible}`]: {
|
|
234
|
-
backgroundColor:
|
|
235
|
+
backgroundColor: t.vars ? `rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))` : N(t.palette.action.selected, t.palette.action.selectedOpacity + t.palette.action.focusOpacity)
|
|
235
236
|
},
|
|
236
237
|
[`&.${r.disabled}`]: {
|
|
237
238
|
opacity: 1,
|
|
238
|
-
color: (
|
|
239
|
-
backgroundColor: (
|
|
239
|
+
color: (t.vars || t).palette.action.disabled,
|
|
240
|
+
backgroundColor: (t.vars || t).palette.action.selected
|
|
240
241
|
}
|
|
241
242
|
},
|
|
242
243
|
variants: [{
|
|
@@ -259,25 +260,25 @@ const r = _("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
259
260
|
height: 40,
|
|
260
261
|
borderRadius: 40 / 2,
|
|
261
262
|
padding: "0 10px",
|
|
262
|
-
fontSize:
|
|
263
|
+
fontSize: t.typography.pxToRem(15)
|
|
263
264
|
}
|
|
264
265
|
}, {
|
|
265
266
|
props: {
|
|
266
267
|
shape: "rounded"
|
|
267
268
|
},
|
|
268
269
|
style: {
|
|
269
|
-
borderRadius: (
|
|
270
|
+
borderRadius: (t.vars || t).shape.borderRadius
|
|
270
271
|
}
|
|
271
272
|
}, {
|
|
272
273
|
props: {
|
|
273
274
|
variant: "outlined"
|
|
274
275
|
},
|
|
275
276
|
style: {
|
|
276
|
-
border:
|
|
277
|
+
border: t.vars ? `1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${t.palette.mode === "light" ? "rgba(0, 0, 0, 0.23)" : "rgba(255, 255, 255, 0.23)"}`,
|
|
277
278
|
[`&.${r.selected}`]: {
|
|
278
279
|
[`&.${r.disabled}`]: {
|
|
279
|
-
borderColor: (
|
|
280
|
-
color: (
|
|
280
|
+
borderColor: (t.vars || t).palette.action.disabledBackground,
|
|
281
|
+
color: (t.vars || t).palette.action.disabled
|
|
281
282
|
}
|
|
282
283
|
}
|
|
283
284
|
}
|
|
@@ -288,79 +289,79 @@ const r = _("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
288
289
|
style: {
|
|
289
290
|
[`&.${r.selected}`]: {
|
|
290
291
|
[`&.${r.disabled}`]: {
|
|
291
|
-
color: (
|
|
292
|
+
color: (t.vars || t).palette.action.disabled
|
|
292
293
|
}
|
|
293
294
|
}
|
|
294
295
|
}
|
|
295
|
-
}, ...Object.entries(
|
|
296
|
+
}, ...Object.entries(t.palette).filter(D(["dark", "contrastText"])).map(([e]) => ({
|
|
296
297
|
props: {
|
|
297
298
|
variant: "text",
|
|
298
299
|
color: e
|
|
299
300
|
},
|
|
300
301
|
style: {
|
|
301
302
|
[`&.${r.selected}`]: {
|
|
302
|
-
color: (
|
|
303
|
-
backgroundColor: (
|
|
303
|
+
color: (t.vars || t).palette[e].contrastText,
|
|
304
|
+
backgroundColor: (t.vars || t).palette[e].main,
|
|
304
305
|
"&:hover": {
|
|
305
|
-
backgroundColor: (
|
|
306
|
+
backgroundColor: (t.vars || t).palette[e].dark,
|
|
306
307
|
// Reset on touch devices, it doesn't add specificity
|
|
307
308
|
"@media (hover: none)": {
|
|
308
|
-
backgroundColor: (
|
|
309
|
+
backgroundColor: (t.vars || t).palette[e].main
|
|
309
310
|
}
|
|
310
311
|
},
|
|
311
312
|
[`&.${r.focusVisible}`]: {
|
|
312
|
-
backgroundColor: (
|
|
313
|
+
backgroundColor: (t.vars || t).palette[e].dark
|
|
313
314
|
},
|
|
314
315
|
[`&.${r.disabled}`]: {
|
|
315
|
-
color: (
|
|
316
|
+
color: (t.vars || t).palette.action.disabled
|
|
316
317
|
}
|
|
317
318
|
}
|
|
318
319
|
}
|
|
319
|
-
})), ...Object.entries(
|
|
320
|
+
})), ...Object.entries(t.palette).filter(D(["light"])).map(([e]) => ({
|
|
320
321
|
props: {
|
|
321
322
|
variant: "outlined",
|
|
322
323
|
color: e
|
|
323
324
|
},
|
|
324
325
|
style: {
|
|
325
326
|
[`&.${r.selected}`]: {
|
|
326
|
-
color: (
|
|
327
|
-
border: `1px solid ${
|
|
328
|
-
backgroundColor:
|
|
327
|
+
color: (t.vars || t).palette[e].main,
|
|
328
|
+
border: `1px solid ${t.vars ? `rgba(${t.vars.palette[e].mainChannel} / 0.5)` : N(t.palette[e].main, 0.5)}`,
|
|
329
|
+
backgroundColor: t.vars ? `rgba(${t.vars.palette[e].mainChannel} / ${t.vars.palette.action.activatedOpacity})` : N(t.palette[e].main, t.palette.action.activatedOpacity),
|
|
329
330
|
"&:hover": {
|
|
330
|
-
backgroundColor:
|
|
331
|
+
backgroundColor: t.vars ? `rgba(${t.vars.palette[e].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))` : N(t.palette[e].main, t.palette.action.activatedOpacity + t.palette.action.focusOpacity),
|
|
331
332
|
// Reset on touch devices, it doesn't add specificity
|
|
332
333
|
"@media (hover: none)": {
|
|
333
334
|
backgroundColor: "transparent"
|
|
334
335
|
}
|
|
335
336
|
},
|
|
336
337
|
[`&.${r.focusVisible}`]: {
|
|
337
|
-
backgroundColor:
|
|
338
|
+
backgroundColor: t.vars ? `rgba(${t.vars.palette[e].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))` : N(t.palette[e].main, t.palette.action.activatedOpacity + t.palette.action.focusOpacity)
|
|
338
339
|
}
|
|
339
340
|
}
|
|
340
341
|
}
|
|
341
342
|
}))]
|
|
342
|
-
}))),
|
|
343
|
+
}))), vt = B("div", {
|
|
343
344
|
name: "MuiPaginationItem",
|
|
344
345
|
slot: "Icon",
|
|
345
|
-
overridesResolver: (
|
|
346
|
+
overridesResolver: (t, e) => e.icon
|
|
346
347
|
})(V(({
|
|
347
|
-
theme:
|
|
348
|
+
theme: t
|
|
348
349
|
}) => ({
|
|
349
|
-
fontSize:
|
|
350
|
+
fontSize: t.typography.pxToRem(20),
|
|
350
351
|
margin: "0 -8px",
|
|
351
352
|
variants: [{
|
|
352
353
|
props: {
|
|
353
354
|
size: "small"
|
|
354
355
|
},
|
|
355
356
|
style: {
|
|
356
|
-
fontSize:
|
|
357
|
+
fontSize: t.typography.pxToRem(18)
|
|
357
358
|
}
|
|
358
359
|
}, {
|
|
359
360
|
props: {
|
|
360
361
|
size: "large"
|
|
361
362
|
},
|
|
362
363
|
style: {
|
|
363
|
-
fontSize:
|
|
364
|
+
fontSize: t.typography.pxToRem(22)
|
|
364
365
|
}
|
|
365
366
|
}]
|
|
366
367
|
}))), Q = /* @__PURE__ */ G.forwardRef(function(e, o) {
|
|
@@ -391,7 +392,7 @@ const r = _("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
391
392
|
size: m,
|
|
392
393
|
type: p,
|
|
393
394
|
variant: C
|
|
394
|
-
}, k =
|
|
395
|
+
}, k = ot(), v = ut(c), f = {
|
|
395
396
|
slots: {
|
|
396
397
|
previous: O.previous ?? u.previous,
|
|
397
398
|
next: O.next ?? u.next,
|
|
@@ -400,19 +401,19 @@ const r = _("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
400
401
|
},
|
|
401
402
|
slotProps: l
|
|
402
403
|
}, [L, S] = j("previous", {
|
|
403
|
-
elementType:
|
|
404
|
+
elementType: ct,
|
|
404
405
|
externalForwardedProps: f,
|
|
405
406
|
ownerState: c
|
|
406
407
|
}), [z, s] = j("next", {
|
|
407
|
-
elementType:
|
|
408
|
+
elementType: dt,
|
|
408
409
|
externalForwardedProps: f,
|
|
409
410
|
ownerState: c
|
|
410
411
|
}), [i, M] = j("first", {
|
|
411
|
-
elementType:
|
|
412
|
+
elementType: lt,
|
|
412
413
|
externalForwardedProps: f,
|
|
413
414
|
ownerState: c
|
|
414
415
|
}), [W, F] = j("last", {
|
|
415
|
-
elementType:
|
|
416
|
+
elementType: pt,
|
|
416
417
|
externalForwardedProps: f,
|
|
417
418
|
ownerState: c
|
|
418
419
|
}), A = k ? {
|
|
@@ -431,19 +432,19 @@ const r = _("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
431
432
|
first: M,
|
|
432
433
|
last: F
|
|
433
434
|
}[A];
|
|
434
|
-
return p === "start-ellipsis" || p === "end-ellipsis" ? /* @__PURE__ */ d(
|
|
435
|
+
return p === "start-ellipsis" || p === "end-ellipsis" ? /* @__PURE__ */ d(gt, {
|
|
435
436
|
ref: o,
|
|
436
437
|
ownerState: c,
|
|
437
438
|
className: U(v.root, y),
|
|
438
439
|
children: "…"
|
|
439
|
-
}) : /* @__PURE__ */ Z(
|
|
440
|
+
}) : /* @__PURE__ */ Z(ft, {
|
|
440
441
|
ref: o,
|
|
441
442
|
ownerState: c,
|
|
442
443
|
component: x,
|
|
443
444
|
disabled: g,
|
|
444
445
|
className: U(v.root, y),
|
|
445
446
|
...$,
|
|
446
|
-
children: [p === "page" && P, E ? /* @__PURE__ */ d(
|
|
447
|
+
children: [p === "page" && P, E ? /* @__PURE__ */ d(vt, {
|
|
447
448
|
...Y,
|
|
448
449
|
className: v.icon,
|
|
449
450
|
as: E
|
|
@@ -458,27 +459,27 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
|
|
|
458
459
|
/**
|
|
459
460
|
* @ignore
|
|
460
461
|
*/
|
|
461
|
-
children:
|
|
462
|
+
children: a.node,
|
|
462
463
|
/**
|
|
463
464
|
* Override or extend the styles applied to the component.
|
|
464
465
|
*/
|
|
465
|
-
classes:
|
|
466
|
+
classes: a.object,
|
|
466
467
|
/**
|
|
467
468
|
* @ignore
|
|
468
469
|
*/
|
|
469
|
-
className:
|
|
470
|
+
className: a.string,
|
|
470
471
|
/**
|
|
471
472
|
* The active color.
|
|
472
473
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
473
474
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
474
475
|
* @default 'standard'
|
|
475
476
|
*/
|
|
476
|
-
color:
|
|
477
|
+
color: a.oneOfType([a.oneOf(["primary", "secondary", "standard"]), a.string]),
|
|
477
478
|
/**
|
|
478
479
|
* The component used for the root node.
|
|
479
480
|
* Either a string to use a HTML element or a component.
|
|
480
481
|
*/
|
|
481
|
-
component:
|
|
482
|
+
component: a.elementType,
|
|
482
483
|
/**
|
|
483
484
|
* The components used for each slot inside.
|
|
484
485
|
*
|
|
@@ -488,93 +489,93 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
|
|
|
488
489
|
* @default {}
|
|
489
490
|
* @deprecated use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
490
491
|
*/
|
|
491
|
-
components:
|
|
492
|
-
first:
|
|
493
|
-
last:
|
|
494
|
-
next:
|
|
495
|
-
previous:
|
|
492
|
+
components: a.shape({
|
|
493
|
+
first: a.elementType,
|
|
494
|
+
last: a.elementType,
|
|
495
|
+
next: a.elementType,
|
|
496
|
+
previous: a.elementType
|
|
496
497
|
}),
|
|
497
498
|
/**
|
|
498
499
|
* If `true`, the component is disabled.
|
|
499
500
|
* @default false
|
|
500
501
|
*/
|
|
501
|
-
disabled:
|
|
502
|
+
disabled: a.bool,
|
|
502
503
|
/**
|
|
503
504
|
* The current page number.
|
|
504
505
|
*/
|
|
505
|
-
page:
|
|
506
|
+
page: a.node,
|
|
506
507
|
/**
|
|
507
508
|
* If `true` the pagination item is selected.
|
|
508
509
|
* @default false
|
|
509
510
|
*/
|
|
510
|
-
selected:
|
|
511
|
+
selected: a.bool,
|
|
511
512
|
/**
|
|
512
513
|
* The shape of the pagination item.
|
|
513
514
|
* @default 'circular'
|
|
514
515
|
*/
|
|
515
|
-
shape:
|
|
516
|
+
shape: a.oneOf(["circular", "rounded"]),
|
|
516
517
|
/**
|
|
517
518
|
* The size of the component.
|
|
518
519
|
* @default 'medium'
|
|
519
520
|
*/
|
|
520
|
-
size:
|
|
521
|
+
size: a.oneOfType([a.oneOf(["small", "medium", "large"]), a.string]),
|
|
521
522
|
/**
|
|
522
523
|
* The props used for each slot inside.
|
|
523
524
|
* @default {}
|
|
524
525
|
*/
|
|
525
|
-
slotProps:
|
|
526
|
-
first:
|
|
527
|
-
last:
|
|
528
|
-
next:
|
|
529
|
-
previous:
|
|
526
|
+
slotProps: a.shape({
|
|
527
|
+
first: a.oneOfType([a.func, a.object]),
|
|
528
|
+
last: a.oneOfType([a.func, a.object]),
|
|
529
|
+
next: a.oneOfType([a.func, a.object]),
|
|
530
|
+
previous: a.oneOfType([a.func, a.object])
|
|
530
531
|
}),
|
|
531
532
|
/**
|
|
532
533
|
* The components used for each slot inside.
|
|
533
534
|
* @default {}
|
|
534
535
|
*/
|
|
535
|
-
slots:
|
|
536
|
-
first:
|
|
537
|
-
last:
|
|
538
|
-
next:
|
|
539
|
-
previous:
|
|
536
|
+
slots: a.shape({
|
|
537
|
+
first: a.elementType,
|
|
538
|
+
last: a.elementType,
|
|
539
|
+
next: a.elementType,
|
|
540
|
+
previous: a.elementType
|
|
540
541
|
}),
|
|
541
542
|
/**
|
|
542
543
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
543
544
|
*/
|
|
544
|
-
sx:
|
|
545
|
+
sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object]),
|
|
545
546
|
/**
|
|
546
547
|
* The type of pagination item.
|
|
547
548
|
* @default 'page'
|
|
548
549
|
*/
|
|
549
|
-
type:
|
|
550
|
+
type: a.oneOf(["end-ellipsis", "first", "last", "next", "page", "previous", "start-ellipsis"]),
|
|
550
551
|
/**
|
|
551
552
|
* The variant to use.
|
|
552
553
|
* @default 'text'
|
|
553
554
|
*/
|
|
554
|
-
variant:
|
|
555
|
+
variant: a.oneOfType([a.oneOf(["outlined", "text"]), a.string])
|
|
555
556
|
});
|
|
556
|
-
const
|
|
557
|
+
const yt = (t) => {
|
|
557
558
|
const {
|
|
558
559
|
classes: e,
|
|
559
560
|
variant: o
|
|
560
|
-
} =
|
|
561
|
+
} = t;
|
|
561
562
|
return J({
|
|
562
563
|
root: ["root", o],
|
|
563
564
|
ul: ["ul"]
|
|
564
|
-
},
|
|
565
|
-
},
|
|
565
|
+
}, nt, e);
|
|
566
|
+
}, bt = B("nav", {
|
|
566
567
|
name: "MuiPagination",
|
|
567
568
|
slot: "Root",
|
|
568
|
-
overridesResolver: (
|
|
569
|
+
overridesResolver: (t, e) => {
|
|
569
570
|
const {
|
|
570
571
|
ownerState: o
|
|
571
|
-
} =
|
|
572
|
+
} = t;
|
|
572
573
|
return [e.root, e[o.variant]];
|
|
573
574
|
}
|
|
574
|
-
})({}),
|
|
575
|
+
})({}), xt = B("ul", {
|
|
575
576
|
name: "MuiPagination",
|
|
576
577
|
slot: "Ul",
|
|
577
|
-
overridesResolver: (
|
|
578
|
+
overridesResolver: (t, e) => e.ul
|
|
578
579
|
})({
|
|
579
580
|
display: "flex",
|
|
580
581
|
flexWrap: "wrap",
|
|
@@ -583,8 +584,8 @@ const ya = (a) => {
|
|
|
583
584
|
margin: 0,
|
|
584
585
|
listStyle: "none"
|
|
585
586
|
});
|
|
586
|
-
function
|
|
587
|
-
return
|
|
587
|
+
function Pt(t, e, o) {
|
|
588
|
+
return t === "page" ? `${o ? "" : "Go to "}page ${e}` : `Go to ${t} page`;
|
|
588
589
|
}
|
|
589
590
|
const X = /* @__PURE__ */ G.forwardRef(function(e, o) {
|
|
590
591
|
const n = q({
|
|
@@ -597,7 +598,7 @@ const X = /* @__PURE__ */ G.forwardRef(function(e, o) {
|
|
|
597
598
|
count: u = 1,
|
|
598
599
|
defaultPage: g = 1,
|
|
599
600
|
disabled: P = !1,
|
|
600
|
-
getItemAriaLabel: T =
|
|
601
|
+
getItemAriaLabel: T = Pt,
|
|
601
602
|
hideNextButton: R = !1,
|
|
602
603
|
hidePrevButton: m = !1,
|
|
603
604
|
onChange: O,
|
|
@@ -614,7 +615,7 @@ const X = /* @__PURE__ */ G.forwardRef(function(e, o) {
|
|
|
614
615
|
...L
|
|
615
616
|
} = n, {
|
|
616
617
|
items: S
|
|
617
|
-
} =
|
|
618
|
+
} = it({
|
|
618
619
|
...n,
|
|
619
620
|
componentName: "Pagination"
|
|
620
621
|
}), z = {
|
|
@@ -634,14 +635,14 @@ const X = /* @__PURE__ */ G.forwardRef(function(e, o) {
|
|
|
634
635
|
siblingCount: k,
|
|
635
636
|
size: v,
|
|
636
637
|
variant: f
|
|
637
|
-
}, s =
|
|
638
|
-
return /* @__PURE__ */ d(
|
|
638
|
+
}, s = yt(z);
|
|
639
|
+
return /* @__PURE__ */ d(bt, {
|
|
639
640
|
"aria-label": "pagination navigation",
|
|
640
641
|
className: U(s.root, b),
|
|
641
642
|
ownerState: z,
|
|
642
643
|
ref: o,
|
|
643
644
|
...L,
|
|
644
|
-
children: /* @__PURE__ */ d(
|
|
645
|
+
children: /* @__PURE__ */ d(xt, {
|
|
645
646
|
className: s.ul,
|
|
646
647
|
ownerState: z,
|
|
647
648
|
children: S.map((i, M) => /* @__PURE__ */ d("li", {
|
|
@@ -670,18 +671,18 @@ process.env.NODE_ENV !== "production" && (X.propTypes = {
|
|
|
670
671
|
/**
|
|
671
672
|
* Override or extend the styles applied to the component.
|
|
672
673
|
*/
|
|
673
|
-
classes:
|
|
674
|
+
classes: a.object,
|
|
674
675
|
/**
|
|
675
676
|
* @ignore
|
|
676
677
|
*/
|
|
677
|
-
className:
|
|
678
|
+
className: a.string,
|
|
678
679
|
/**
|
|
679
680
|
* The active color.
|
|
680
681
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
681
682
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
682
683
|
* @default 'standard'
|
|
683
684
|
*/
|
|
684
|
-
color:
|
|
685
|
+
color: a.oneOfType([a.oneOf(["primary", "secondary", "standard"]), a.string]),
|
|
685
686
|
/**
|
|
686
687
|
* The total number of pages.
|
|
687
688
|
* @default 1
|
|
@@ -696,7 +697,7 @@ process.env.NODE_ENV !== "production" && (X.propTypes = {
|
|
|
696
697
|
* If `true`, the component is disabled.
|
|
697
698
|
* @default false
|
|
698
699
|
*/
|
|
699
|
-
disabled:
|
|
700
|
+
disabled: a.bool,
|
|
700
701
|
/**
|
|
701
702
|
* Accepts a function which returns a string value that provides a user-friendly name for the current page.
|
|
702
703
|
* This is important for screen reader users.
|
|
@@ -707,24 +708,24 @@ process.env.NODE_ENV !== "production" && (X.propTypes = {
|
|
|
707
708
|
* @param {boolean} selected If true, the current page is selected.
|
|
708
709
|
* @returns {string}
|
|
709
710
|
*/
|
|
710
|
-
getItemAriaLabel:
|
|
711
|
+
getItemAriaLabel: a.func,
|
|
711
712
|
/**
|
|
712
713
|
* If `true`, hide the next-page button.
|
|
713
714
|
* @default false
|
|
714
715
|
*/
|
|
715
|
-
hideNextButton:
|
|
716
|
+
hideNextButton: a.bool,
|
|
716
717
|
/**
|
|
717
718
|
* If `true`, hide the previous-page button.
|
|
718
719
|
* @default false
|
|
719
720
|
*/
|
|
720
|
-
hidePrevButton:
|
|
721
|
+
hidePrevButton: a.bool,
|
|
721
722
|
/**
|
|
722
723
|
* Callback fired when the page is changed.
|
|
723
724
|
*
|
|
724
725
|
* @param {React.ChangeEvent<unknown>} event The event source of the callback.
|
|
725
726
|
* @param {number} page The page selected.
|
|
726
727
|
*/
|
|
727
|
-
onChange:
|
|
728
|
+
onChange: a.func,
|
|
728
729
|
/**
|
|
729
730
|
* The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.
|
|
730
731
|
*/
|
|
@@ -735,22 +736,22 @@ process.env.NODE_ENV !== "production" && (X.propTypes = {
|
|
|
735
736
|
* @returns {ReactNode}
|
|
736
737
|
* @default (item) => <PaginationItem {...item} />
|
|
737
738
|
*/
|
|
738
|
-
renderItem:
|
|
739
|
+
renderItem: a.func,
|
|
739
740
|
/**
|
|
740
741
|
* The shape of the pagination items.
|
|
741
742
|
* @default 'circular'
|
|
742
743
|
*/
|
|
743
|
-
shape:
|
|
744
|
+
shape: a.oneOf(["circular", "rounded"]),
|
|
744
745
|
/**
|
|
745
746
|
* If `true`, show the first-page button.
|
|
746
747
|
* @default false
|
|
747
748
|
*/
|
|
748
|
-
showFirstButton:
|
|
749
|
+
showFirstButton: a.bool,
|
|
749
750
|
/**
|
|
750
751
|
* If `true`, show the last-page button.
|
|
751
752
|
* @default false
|
|
752
753
|
*/
|
|
753
|
-
showLastButton:
|
|
754
|
+
showLastButton: a.bool,
|
|
754
755
|
/**
|
|
755
756
|
* Number of always visible pages before and after the current page.
|
|
756
757
|
* @default 1
|
|
@@ -760,20 +761,20 @@ process.env.NODE_ENV !== "production" && (X.propTypes = {
|
|
|
760
761
|
* The size of the component.
|
|
761
762
|
* @default 'medium'
|
|
762
763
|
*/
|
|
763
|
-
size:
|
|
764
|
+
size: a.oneOfType([a.oneOf(["small", "medium", "large"]), a.string]),
|
|
764
765
|
/**
|
|
765
766
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
766
767
|
*/
|
|
767
|
-
sx:
|
|
768
|
+
sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object]),
|
|
768
769
|
/**
|
|
769
770
|
* The variant to use.
|
|
770
771
|
* @default 'text'
|
|
771
772
|
*/
|
|
772
|
-
variant:
|
|
773
|
+
variant: a.oneOfType([a.oneOf(["outlined", "text"]), a.string])
|
|
773
774
|
});
|
|
774
|
-
const
|
|
775
|
-
...
|
|
776
|
-
})),
|
|
775
|
+
const mt = tt(X)(() => ({
|
|
776
|
+
...at``
|
|
777
|
+
})), wt = (t) => /* @__PURE__ */ d(mt, { ...t });
|
|
777
778
|
export {
|
|
778
|
-
|
|
779
|
+
wt as default
|
|
779
780
|
};
|