@amateescu/portal-ui-components 0.0.47 → 0.0.49
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/Box-DU079Glg.js +57 -0
- package/dist/{Button-Bx3LbSbV.js → Button-BgsadnaR.js} +13 -13
- package/dist/{ButtonBase-DV7q7wxh.js → ButtonBase-ugYh038t.js} +8 -8
- package/dist/{CheckBox-YBX2j1qt.js → CheckBox-D9YmAV-l.js} +1 -1
- package/dist/{CircularProgress-BXi3nXc9.js → CircularProgress-D1FWO7Cz.js} +1 -1
- package/dist/{Clear-Bz9hw2Wj.js → Clear-B32X2R1T.js} +1 -1
- package/dist/Close-IqnCWZPM.js +8 -0
- package/dist/{DefaultPropsProvider-ByENA_w0.js → DefaultPropsProvider-BQx1AiAq.js} +20 -19
- package/dist/ExpandMore-CHNJSd5N.js +8 -0
- package/dist/ListItem-1DiNy9oq.js +422 -0
- package/dist/ListItemText-VX0lo95z.js +434 -0
- package/dist/Modal-BnD35xWv.js +1325 -0
- package/dist/{Search-D_9Ptbky.js → Search-DnJ3yLMg.js} +1 -1
- package/dist/assets/PassportDateRangeWrapper.css +1 -1
- package/dist/assets/PassportFilter.css +1 -0
- package/dist/assets/PassportFilterDrawer.css +1 -0
- package/dist/assets/PassportFilterFreeTextFilter.css +1 -0
- package/dist/components/LoadingAnimation/LoadingAnimation.js +8 -60
- package/dist/components/Login/Login.js +1 -1
- package/dist/components/PassportButton/PassportButton.js +1 -1
- package/dist/components/PassportDatePicker/PassportDatePicker.js +21 -20
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.js +298 -291
- package/dist/components/PassportDatesFilter/PassportDatesFilter.js +24 -26
- package/dist/components/PassportFilter/PassportFilter.d.ts +5 -0
- package/dist/components/PassportFilter/PassportFilter.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilter.js +154 -0
- package/dist/components/PassportFilter/PassportFilter.stories.d.ts +13 -0
- package/dist/components/PassportFilter/PassportFilter.stories.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilter.types.d.ts +61 -0
- package/dist/components/PassportFilter/PassportFilter.types.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilter.types.js +5 -0
- package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.d.ts +5 -0
- package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.js +756 -0
- package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.types.d.ts +28 -0
- package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.types.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterDrawer/PassportFilterDrawer.types.js +1 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.d.ts +4 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.js +94 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.types.d.ts +16 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.types.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextButtons/PassportFilterFreeTextButtons.types.js +1 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.d.ts +4 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.js +736 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.types.d.ts +37 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.types.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterFreeTextFilter/PassportFilterFreeTextFilter.types.js +1 -0
- package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.d.ts +4 -0
- package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.js +180 -0
- package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.types.d.ts +17 -0
- package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.types.d.ts.map +1 -0
- package/dist/components/PassportFilter/PassportFilterSelectionList/PassportFilterSelectionList.types.js +1 -0
- package/dist/components/PassportInput/PassportInput.js +2 -2
- package/dist/components/PassportMultiSelect/PassportMultiSelect.js +1 -1
- package/dist/components/PassportPagination/PassportPagination.js +96 -94
- package/dist/components/PassportSearchableMultiSelect/PassportSearchableMultiSelect.js +1 -1
- package/dist/components/PassportSearchableMultiSelectDetailed/PassportSearchableMultiSelectDetailed.js +1 -1
- package/dist/components/PassportTreeSelect/PassportTreeSelect.js +82 -79
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +4 -2
- package/dist/{createSvgIcon-D5xeIEZ_.js → createSvgIcon-Crk7qT6j.js} +1 -1
- package/dist/{extendSxProp-BtJlbIOl.js → extendSxProp-BHclE0DL.js} +1 -1
- package/dist/getReactElementRef-CIbXfZbo.js +45 -0
- package/dist/index-DfCFE9GG.js +9 -0
- package/dist/listItemButtonClasses-BLTBU8Yh.js +476 -0
- package/dist/listItemIconClasses-B_UAYnw7.js +9 -0
- package/dist/listItemTextClasses-D5in-Wsc.js +9 -0
- package/dist/main.js +41 -37
- package/dist/portal-utils/arrays.d.ts +2 -0
- package/dist/portal-utils/arrays.d.ts.map +1 -0
- package/dist/portal-utils/arrays.js +10 -0
- package/dist/portal-utils/index.d.ts +1 -0
- package/dist/portal-utils/index.d.ts.map +1 -1
- package/dist/portal-utils/index.js +17 -15
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/useControlled-D1L5tREc.js +31 -0
- package/dist/useFormControl-Ivp9nwoj.js +53 -0
- package/dist/{useMobilePicker-CFsW9hUG.js → useMobilePicker-BombQ5QA.js} +5381 -7587
- package/dist/useSlot-B1oIMjd_.js +126 -0
- package/dist/useTheme-9dlwNzrD.js +10 -0
- package/dist/{useTheme-Cz8ZipjJ.js → useTheme-Dxbczges.js} +3 -3
- package/dist/useThemeProps-j6Er0aGl.js +27 -0
- package/dist/{useFormControl-MVwkyimi.js → utils-6k-H8qFR.js} +155 -231
- package/package.json +1 -1
- package/dist/useSlot-Bm5YJQBR.js +0 -160
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
1
|
+
import { jsx as s, jsxs as et } from "react/jsx-runtime";
|
|
2
2
|
import { PaginationItem as at } from "@mui/material";
|
|
3
3
|
import * as c from "react";
|
|
4
|
-
import {
|
|
5
|
-
import { u as rt
|
|
4
|
+
import { b as J, g as K, u as Q, s as B, c as W, e as h, f as X, m as F, P as o } from "../../DefaultPropsProvider-BQx1AiAq.js";
|
|
5
|
+
import { u as rt } from "../../index-DfCFE9GG.js";
|
|
6
6
|
import { c as D } from "../../createSimplePaletteValueFilter-Bz8RuRaa.js";
|
|
7
|
-
import { c as j } from "../../createSvgIcon-
|
|
8
|
-
import {
|
|
7
|
+
import { c as j } from "../../createSvgIcon-Crk7qT6j.js";
|
|
8
|
+
import { u as R } from "../../useSlot-B1oIMjd_.js";
|
|
9
|
+
import { B as nt } from "../../ButtonBase-ugYh038t.js";
|
|
10
|
+
import { u as st } from "../../useControlled-D1L5tREc.js";
|
|
9
11
|
import { i as N } from "../../integerPropType-BihGt2aU.js";
|
|
10
12
|
function it(t) {
|
|
11
13
|
return J("MuiPagination", t);
|
|
@@ -13,7 +15,7 @@ function it(t) {
|
|
|
13
15
|
K("MuiPagination", ["root", "ul", "outlined", "text"]);
|
|
14
16
|
function lt(t = {}) {
|
|
15
17
|
const {
|
|
16
|
-
boundaryCount:
|
|
18
|
+
boundaryCount: e = 1,
|
|
17
19
|
componentName: a = "usePagination",
|
|
18
20
|
count: r = 1,
|
|
19
21
|
defaultPage: v = 1,
|
|
@@ -26,7 +28,7 @@ function lt(t = {}) {
|
|
|
26
28
|
showLastButton: $ = !1,
|
|
27
29
|
siblingCount: w = 1,
|
|
28
30
|
...C
|
|
29
|
-
} = t, [d, u] =
|
|
31
|
+
} = t, [d, u] = st({
|
|
30
32
|
controlled: P,
|
|
31
33
|
default: v,
|
|
32
34
|
name: a,
|
|
@@ -38,36 +40,36 @@ function lt(t = {}) {
|
|
|
38
40
|
return Array.from({
|
|
39
41
|
length: I
|
|
40
42
|
}, (A, E) => n + E);
|
|
41
|
-
}, g = k(1, Math.min(
|
|
43
|
+
}, g = k(1, Math.min(e, r)), z = k(Math.max(r - e + 1, e + 1), r), m = Math.max(
|
|
42
44
|
Math.min(
|
|
43
45
|
// Natural start
|
|
44
46
|
d - w,
|
|
45
47
|
// Lower boundary when page is high
|
|
46
|
-
r -
|
|
48
|
+
r - e - w * 2 - 1
|
|
47
49
|
),
|
|
48
50
|
// Greater than startPages
|
|
49
|
-
|
|
51
|
+
e + 2
|
|
50
52
|
), x = Math.min(
|
|
51
53
|
Math.max(
|
|
52
54
|
// Natural end
|
|
53
55
|
d + w,
|
|
54
56
|
// Upper boundary when page is low
|
|
55
|
-
|
|
57
|
+
e + w * 2 + 2
|
|
56
58
|
),
|
|
57
59
|
// Less than endPages
|
|
58
|
-
r -
|
|
60
|
+
r - e - 1
|
|
59
61
|
), M = [
|
|
60
62
|
...S ? ["first"] : [],
|
|
61
63
|
...y ? [] : ["previous"],
|
|
62
64
|
...g,
|
|
63
65
|
// Start ellipsis
|
|
64
66
|
// eslint-disable-next-line no-nested-ternary
|
|
65
|
-
...m >
|
|
67
|
+
...m > e + 2 ? ["start-ellipsis"] : e + 1 < r - e ? [e + 1] : [],
|
|
66
68
|
// Sibling pages
|
|
67
69
|
...k(m, x),
|
|
68
70
|
// End ellipsis
|
|
69
71
|
// eslint-disable-next-line no-nested-ternary
|
|
70
|
-
...x < r -
|
|
72
|
+
...x < r - e - 1 ? ["end-ellipsis"] : r - e > e ? [r - e] : [],
|
|
71
73
|
...z,
|
|
72
74
|
...f ? [] : ["next"],
|
|
73
75
|
...$ ? ["last"] : []
|
|
@@ -118,14 +120,14 @@ const l = K("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
118
120
|
d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
|
|
119
121
|
}), "NavigateBefore"), gt = j(/* @__PURE__ */ s("path", {
|
|
120
122
|
d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
121
|
-
}), "NavigateNext"), Y = (t,
|
|
123
|
+
}), "NavigateNext"), Y = (t, e) => {
|
|
122
124
|
const {
|
|
123
125
|
ownerState: a
|
|
124
126
|
} = t;
|
|
125
|
-
return [
|
|
127
|
+
return [e.root, e[a.variant], e[`size${h(a.size)}`], a.variant === "text" && e[`text${h(a.color)}`], a.variant === "outlined" && e[`outlined${h(a.color)}`], a.shape === "rounded" && e.rounded, a.type === "page" && e.page, (a.type === "start-ellipsis" || a.type === "end-ellipsis") && e.ellipsis, (a.type === "previous" || a.type === "next") && e.previousNext, (a.type === "first" || a.type === "last") && e.firstLast];
|
|
126
128
|
}, vt = (t) => {
|
|
127
129
|
const {
|
|
128
|
-
classes:
|
|
130
|
+
classes: e,
|
|
129
131
|
color: a,
|
|
130
132
|
disabled: r,
|
|
131
133
|
selected: v,
|
|
@@ -145,7 +147,7 @@ const l = K("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
145
147
|
}[y]],
|
|
146
148
|
icon: ["icon"]
|
|
147
149
|
};
|
|
148
|
-
return X(P, pt,
|
|
150
|
+
return X(P, pt, e);
|
|
149
151
|
}, ft = B("div", {
|
|
150
152
|
name: "MuiPaginationItem",
|
|
151
153
|
slot: "Root",
|
|
@@ -186,7 +188,7 @@ const l = K("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
186
188
|
fontSize: t.typography.pxToRem(15)
|
|
187
189
|
}
|
|
188
190
|
}]
|
|
189
|
-
}))), yt = B(
|
|
191
|
+
}))), yt = B(nt, {
|
|
190
192
|
name: "MuiPaginationItem",
|
|
191
193
|
slot: "Root",
|
|
192
194
|
overridesResolver: Y
|
|
@@ -289,49 +291,49 @@ const l = K("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
289
291
|
}
|
|
290
292
|
}
|
|
291
293
|
}
|
|
292
|
-
}, ...Object.entries(t.palette).filter(D(["dark", "contrastText"])).map(([
|
|
294
|
+
}, ...Object.entries(t.palette).filter(D(["dark", "contrastText"])).map(([e]) => ({
|
|
293
295
|
props: {
|
|
294
296
|
variant: "text",
|
|
295
|
-
color:
|
|
297
|
+
color: e
|
|
296
298
|
},
|
|
297
299
|
style: {
|
|
298
300
|
[`&.${l.selected}`]: {
|
|
299
|
-
color: (t.vars || t).palette[
|
|
300
|
-
backgroundColor: (t.vars || t).palette[
|
|
301
|
+
color: (t.vars || t).palette[e].contrastText,
|
|
302
|
+
backgroundColor: (t.vars || t).palette[e].main,
|
|
301
303
|
"&:hover": {
|
|
302
|
-
backgroundColor: (t.vars || t).palette[
|
|
304
|
+
backgroundColor: (t.vars || t).palette[e].dark,
|
|
303
305
|
// Reset on touch devices, it doesn't add specificity
|
|
304
306
|
"@media (hover: none)": {
|
|
305
|
-
backgroundColor: (t.vars || t).palette[
|
|
307
|
+
backgroundColor: (t.vars || t).palette[e].main
|
|
306
308
|
}
|
|
307
309
|
},
|
|
308
310
|
[`&.${l.focusVisible}`]: {
|
|
309
|
-
backgroundColor: (t.vars || t).palette[
|
|
311
|
+
backgroundColor: (t.vars || t).palette[e].dark
|
|
310
312
|
},
|
|
311
313
|
[`&.${l.disabled}`]: {
|
|
312
314
|
color: (t.vars || t).palette.action.disabled
|
|
313
315
|
}
|
|
314
316
|
}
|
|
315
317
|
}
|
|
316
|
-
})), ...Object.entries(t.palette).filter(D(["light"])).map(([
|
|
318
|
+
})), ...Object.entries(t.palette).filter(D(["light"])).map(([e]) => ({
|
|
317
319
|
props: {
|
|
318
320
|
variant: "outlined",
|
|
319
|
-
color:
|
|
321
|
+
color: e
|
|
320
322
|
},
|
|
321
323
|
style: {
|
|
322
324
|
[`&.${l.selected}`]: {
|
|
323
|
-
color: (t.vars || t).palette[
|
|
324
|
-
border: `1px solid ${t.alpha((t.vars || t).palette[
|
|
325
|
-
backgroundColor: t.alpha((t.vars || t).palette[
|
|
325
|
+
color: (t.vars || t).palette[e].main,
|
|
326
|
+
border: `1px solid ${t.alpha((t.vars || t).palette[e].main, 0.5)}`,
|
|
327
|
+
backgroundColor: t.alpha((t.vars || t).palette[e].main, (t.vars || t).palette.action.activatedOpacity),
|
|
326
328
|
"&:hover": {
|
|
327
|
-
backgroundColor: t.alpha((t.vars || t).palette[
|
|
329
|
+
backgroundColor: t.alpha((t.vars || t).palette[e].main, `${(t.vars || t).palette.action.activatedOpacity} + ${(t.vars || t).palette.action.focusOpacity}`),
|
|
328
330
|
// Reset on touch devices, it doesn't add specificity
|
|
329
331
|
"@media (hover: none)": {
|
|
330
332
|
backgroundColor: "transparent"
|
|
331
333
|
}
|
|
332
334
|
},
|
|
333
335
|
[`&.${l.focusVisible}`]: {
|
|
334
|
-
backgroundColor: t.alpha((t.vars || t).palette[
|
|
336
|
+
backgroundColor: t.alpha((t.vars || t).palette[e].main, `${(t.vars || t).palette.action.activatedOpacity} + ${(t.vars || t).palette.action.focusOpacity}`)
|
|
335
337
|
}
|
|
336
338
|
}
|
|
337
339
|
}
|
|
@@ -359,9 +361,9 @@ const l = K("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
359
361
|
fontSize: t.typography.pxToRem(22)
|
|
360
362
|
}
|
|
361
363
|
}]
|
|
362
|
-
}))), Z = /* @__PURE__ */ c.forwardRef(function(
|
|
364
|
+
}))), Z = /* @__PURE__ */ c.forwardRef(function(e, a) {
|
|
363
365
|
const r = Q({
|
|
364
|
-
props:
|
|
366
|
+
props: e,
|
|
365
367
|
name: "MuiPaginationItem"
|
|
366
368
|
}), {
|
|
367
369
|
className: v,
|
|
@@ -387,7 +389,7 @@ const l = K("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
387
389
|
size: w,
|
|
388
390
|
type: u,
|
|
389
391
|
variant: L
|
|
390
|
-
}, z =
|
|
392
|
+
}, z = rt(), m = vt(g), x = {
|
|
391
393
|
slots: {
|
|
392
394
|
previous: C.previous ?? y.previous,
|
|
393
395
|
next: C.next ?? y.next,
|
|
@@ -421,7 +423,7 @@ const l = K("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
421
423
|
next: T,
|
|
422
424
|
first: i,
|
|
423
425
|
last: A
|
|
424
|
-
}[U],
|
|
426
|
+
}[U], ot = {
|
|
425
427
|
previous: O,
|
|
426
428
|
next: n,
|
|
427
429
|
first: I,
|
|
@@ -432,7 +434,7 @@ const l = K("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
432
434
|
ownerState: g,
|
|
433
435
|
className: W(m.root, v),
|
|
434
436
|
children: "…"
|
|
435
|
-
}) : /* @__PURE__ */
|
|
437
|
+
}) : /* @__PURE__ */ et(yt, {
|
|
436
438
|
ref: a,
|
|
437
439
|
ownerState: g,
|
|
438
440
|
component: f,
|
|
@@ -440,7 +442,7 @@ const l = K("MuiPaginationItem", ["root", "page", "sizeSmall", "sizeLarge", "tex
|
|
|
440
442
|
className: W(m.root, v),
|
|
441
443
|
...k,
|
|
442
444
|
children: [u === "page" && P, V ? /* @__PURE__ */ s(bt, {
|
|
443
|
-
...
|
|
445
|
+
...ot,
|
|
444
446
|
className: m.icon,
|
|
445
447
|
as: V
|
|
446
448
|
}) : null]
|
|
@@ -454,27 +456,27 @@ process.env.NODE_ENV !== "production" && (Z.propTypes = {
|
|
|
454
456
|
/**
|
|
455
457
|
* @ignore
|
|
456
458
|
*/
|
|
457
|
-
children:
|
|
459
|
+
children: o.node,
|
|
458
460
|
/**
|
|
459
461
|
* Override or extend the styles applied to the component.
|
|
460
462
|
*/
|
|
461
|
-
classes:
|
|
463
|
+
classes: o.object,
|
|
462
464
|
/**
|
|
463
465
|
* @ignore
|
|
464
466
|
*/
|
|
465
|
-
className:
|
|
467
|
+
className: o.string,
|
|
466
468
|
/**
|
|
467
469
|
* The active color.
|
|
468
470
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
469
471
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
470
472
|
* @default 'standard'
|
|
471
473
|
*/
|
|
472
|
-
color:
|
|
474
|
+
color: o.oneOfType([o.oneOf(["primary", "secondary", "standard"]), o.string]),
|
|
473
475
|
/**
|
|
474
476
|
* The component used for the root node.
|
|
475
477
|
* Either a string to use a HTML element or a component.
|
|
476
478
|
*/
|
|
477
|
-
component:
|
|
479
|
+
component: o.elementType,
|
|
478
480
|
/**
|
|
479
481
|
* The components used for each slot inside.
|
|
480
482
|
*
|
|
@@ -484,88 +486,88 @@ process.env.NODE_ENV !== "production" && (Z.propTypes = {
|
|
|
484
486
|
* @default {}
|
|
485
487
|
* @deprecated use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
486
488
|
*/
|
|
487
|
-
components:
|
|
488
|
-
first:
|
|
489
|
-
last:
|
|
490
|
-
next:
|
|
491
|
-
previous:
|
|
489
|
+
components: o.shape({
|
|
490
|
+
first: o.elementType,
|
|
491
|
+
last: o.elementType,
|
|
492
|
+
next: o.elementType,
|
|
493
|
+
previous: o.elementType
|
|
492
494
|
}),
|
|
493
495
|
/**
|
|
494
496
|
* If `true`, the component is disabled.
|
|
495
497
|
* @default false
|
|
496
498
|
*/
|
|
497
|
-
disabled:
|
|
499
|
+
disabled: o.bool,
|
|
498
500
|
/**
|
|
499
501
|
* The current page number.
|
|
500
502
|
*/
|
|
501
|
-
page:
|
|
503
|
+
page: o.node,
|
|
502
504
|
/**
|
|
503
505
|
* If `true` the pagination item is selected.
|
|
504
506
|
* @default false
|
|
505
507
|
*/
|
|
506
|
-
selected:
|
|
508
|
+
selected: o.bool,
|
|
507
509
|
/**
|
|
508
510
|
* The shape of the pagination item.
|
|
509
511
|
* @default 'circular'
|
|
510
512
|
*/
|
|
511
|
-
shape:
|
|
513
|
+
shape: o.oneOf(["circular", "rounded"]),
|
|
512
514
|
/**
|
|
513
515
|
* The size of the component.
|
|
514
516
|
* @default 'medium'
|
|
515
517
|
*/
|
|
516
|
-
size:
|
|
518
|
+
size: o.oneOfType([o.oneOf(["small", "medium", "large"]), o.string]),
|
|
517
519
|
/**
|
|
518
520
|
* The props used for each slot inside.
|
|
519
521
|
* @default {}
|
|
520
522
|
*/
|
|
521
|
-
slotProps:
|
|
522
|
-
first:
|
|
523
|
-
last:
|
|
524
|
-
next:
|
|
525
|
-
previous:
|
|
523
|
+
slotProps: o.shape({
|
|
524
|
+
first: o.oneOfType([o.func, o.object]),
|
|
525
|
+
last: o.oneOfType([o.func, o.object]),
|
|
526
|
+
next: o.oneOfType([o.func, o.object]),
|
|
527
|
+
previous: o.oneOfType([o.func, o.object])
|
|
526
528
|
}),
|
|
527
529
|
/**
|
|
528
530
|
* The components used for each slot inside.
|
|
529
531
|
* @default {}
|
|
530
532
|
*/
|
|
531
|
-
slots:
|
|
532
|
-
first:
|
|
533
|
-
last:
|
|
534
|
-
next:
|
|
535
|
-
previous:
|
|
533
|
+
slots: o.shape({
|
|
534
|
+
first: o.elementType,
|
|
535
|
+
last: o.elementType,
|
|
536
|
+
next: o.elementType,
|
|
537
|
+
previous: o.elementType
|
|
536
538
|
}),
|
|
537
539
|
/**
|
|
538
540
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
539
541
|
*/
|
|
540
|
-
sx:
|
|
542
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
541
543
|
/**
|
|
542
544
|
* The type of pagination item.
|
|
543
545
|
* @default 'page'
|
|
544
546
|
*/
|
|
545
|
-
type:
|
|
547
|
+
type: o.oneOf(["end-ellipsis", "first", "last", "next", "page", "previous", "start-ellipsis"]),
|
|
546
548
|
/**
|
|
547
549
|
* The variant to use.
|
|
548
550
|
* @default 'text'
|
|
549
551
|
*/
|
|
550
|
-
variant:
|
|
552
|
+
variant: o.oneOfType([o.oneOf(["outlined", "text"]), o.string])
|
|
551
553
|
});
|
|
552
554
|
const xt = (t) => {
|
|
553
555
|
const {
|
|
554
|
-
classes:
|
|
556
|
+
classes: e,
|
|
555
557
|
variant: a
|
|
556
558
|
} = t;
|
|
557
559
|
return X({
|
|
558
560
|
root: ["root", a],
|
|
559
561
|
ul: ["ul"]
|
|
560
|
-
}, it,
|
|
562
|
+
}, it, e);
|
|
561
563
|
}, mt = B("nav", {
|
|
562
564
|
name: "MuiPagination",
|
|
563
565
|
slot: "Root",
|
|
564
|
-
overridesResolver: (t,
|
|
566
|
+
overridesResolver: (t, e) => {
|
|
565
567
|
const {
|
|
566
568
|
ownerState: a
|
|
567
569
|
} = t;
|
|
568
|
-
return [
|
|
570
|
+
return [e.root, e[a.variant]];
|
|
569
571
|
}
|
|
570
572
|
})({}), Pt = B("ul", {
|
|
571
573
|
name: "MuiPagination",
|
|
@@ -578,12 +580,12 @@ const xt = (t) => {
|
|
|
578
580
|
margin: 0,
|
|
579
581
|
listStyle: "none"
|
|
580
582
|
});
|
|
581
|
-
function wt(t,
|
|
582
|
-
return t === "page" ? `${a ? "" : "Go to "}page ${
|
|
583
|
+
function wt(t, e, a) {
|
|
584
|
+
return t === "page" ? `${a ? "" : "Go to "}page ${e}` : `Go to ${t} page`;
|
|
583
585
|
}
|
|
584
|
-
const tt = /* @__PURE__ */ c.forwardRef(function(
|
|
586
|
+
const tt = /* @__PURE__ */ c.forwardRef(function(e, a) {
|
|
585
587
|
const r = Q({
|
|
586
|
-
props:
|
|
588
|
+
props: e,
|
|
587
589
|
name: "MuiPagination"
|
|
588
590
|
}), {
|
|
589
591
|
boundaryCount: v = 1,
|
|
@@ -665,18 +667,18 @@ process.env.NODE_ENV !== "production" && (tt.propTypes = {
|
|
|
665
667
|
/**
|
|
666
668
|
* Override or extend the styles applied to the component.
|
|
667
669
|
*/
|
|
668
|
-
classes:
|
|
670
|
+
classes: o.object,
|
|
669
671
|
/**
|
|
670
672
|
* @ignore
|
|
671
673
|
*/
|
|
672
|
-
className:
|
|
674
|
+
className: o.string,
|
|
673
675
|
/**
|
|
674
676
|
* The active color.
|
|
675
677
|
* It supports both default and custom theme colors, which can be added as shown in the
|
|
676
678
|
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
677
679
|
* @default 'standard'
|
|
678
680
|
*/
|
|
679
|
-
color:
|
|
681
|
+
color: o.oneOfType([o.oneOf(["primary", "secondary", "standard"]), o.string]),
|
|
680
682
|
/**
|
|
681
683
|
* The total number of pages.
|
|
682
684
|
* @default 1
|
|
@@ -691,7 +693,7 @@ process.env.NODE_ENV !== "production" && (tt.propTypes = {
|
|
|
691
693
|
* If `true`, the component is disabled.
|
|
692
694
|
* @default false
|
|
693
695
|
*/
|
|
694
|
-
disabled:
|
|
696
|
+
disabled: o.bool,
|
|
695
697
|
/**
|
|
696
698
|
* Accepts a function which returns a string value that provides a user-friendly name for the current page.
|
|
697
699
|
* This is important for screen reader users.
|
|
@@ -702,24 +704,24 @@ process.env.NODE_ENV !== "production" && (tt.propTypes = {
|
|
|
702
704
|
* @param {boolean} selected If true, the current page is selected.
|
|
703
705
|
* @returns {string}
|
|
704
706
|
*/
|
|
705
|
-
getItemAriaLabel:
|
|
707
|
+
getItemAriaLabel: o.func,
|
|
706
708
|
/**
|
|
707
709
|
* If `true`, hide the next-page button.
|
|
708
710
|
* @default false
|
|
709
711
|
*/
|
|
710
|
-
hideNextButton:
|
|
712
|
+
hideNextButton: o.bool,
|
|
711
713
|
/**
|
|
712
714
|
* If `true`, hide the previous-page button.
|
|
713
715
|
* @default false
|
|
714
716
|
*/
|
|
715
|
-
hidePrevButton:
|
|
717
|
+
hidePrevButton: o.bool,
|
|
716
718
|
/**
|
|
717
719
|
* Callback fired when the page is changed.
|
|
718
720
|
*
|
|
719
721
|
* @param {React.ChangeEvent<unknown>} event The event source of the callback.
|
|
720
722
|
* @param {number} page The page selected.
|
|
721
723
|
*/
|
|
722
|
-
onChange:
|
|
724
|
+
onChange: o.func,
|
|
723
725
|
/**
|
|
724
726
|
* The current page. Unlike `TablePagination`, which starts numbering from `0`, this pagination starts from `1`.
|
|
725
727
|
*/
|
|
@@ -730,22 +732,22 @@ process.env.NODE_ENV !== "production" && (tt.propTypes = {
|
|
|
730
732
|
* @returns {ReactNode}
|
|
731
733
|
* @default (item) => <PaginationItem {...item} />
|
|
732
734
|
*/
|
|
733
|
-
renderItem:
|
|
735
|
+
renderItem: o.func,
|
|
734
736
|
/**
|
|
735
737
|
* The shape of the pagination items.
|
|
736
738
|
* @default 'circular'
|
|
737
739
|
*/
|
|
738
|
-
shape:
|
|
740
|
+
shape: o.oneOf(["circular", "rounded"]),
|
|
739
741
|
/**
|
|
740
742
|
* If `true`, show the first-page button.
|
|
741
743
|
* @default false
|
|
742
744
|
*/
|
|
743
|
-
showFirstButton:
|
|
745
|
+
showFirstButton: o.bool,
|
|
744
746
|
/**
|
|
745
747
|
* If `true`, show the last-page button.
|
|
746
748
|
* @default false
|
|
747
749
|
*/
|
|
748
|
-
showLastButton:
|
|
750
|
+
showLastButton: o.bool,
|
|
749
751
|
/**
|
|
750
752
|
* Number of always visible pages before and after the current page.
|
|
751
753
|
* @default 1
|
|
@@ -755,21 +757,21 @@ process.env.NODE_ENV !== "production" && (tt.propTypes = {
|
|
|
755
757
|
* The size of the component.
|
|
756
758
|
* @default 'medium'
|
|
757
759
|
*/
|
|
758
|
-
size:
|
|
760
|
+
size: o.oneOfType([o.oneOf(["small", "medium", "large"]), o.string]),
|
|
759
761
|
/**
|
|
760
762
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
761
763
|
*/
|
|
762
|
-
sx:
|
|
764
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
763
765
|
/**
|
|
764
766
|
* The variant to use.
|
|
765
767
|
* @default 'text'
|
|
766
768
|
*/
|
|
767
|
-
variant:
|
|
769
|
+
variant: o.oneOfType([o.oneOf(["outlined", "text"]), o.string])
|
|
768
770
|
});
|
|
769
771
|
const G = (t) => /* @__PURE__ */ c.createElement("svg", { width: 25, height: 24, viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ c.createElement("g", { id: "arrow/chevron/</default-first" }, /* @__PURE__ */ c.createElement("path", { id: "vector", d: "M17.5 5L10.5 12L17.5 19M7.5 5L7.5 19", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }))), _ = (t) => /* @__PURE__ */ c.createElement("svg", { width: 25, height: 24, viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ c.createElement("g", { id: "arrow/chevron/>/end" }, /* @__PURE__ */ c.createElement("path", { id: "vector", d: "M7.5 4.99998L14.5 12L7.5 19M17.5 4.99998L17.5 19", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }))), H = (t) => /* @__PURE__ */ c.createElement("svg", { width: 10, height: 16, viewBox: "0 0 10 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ c.createElement("path", { d: "M1.5 1L8.5 8L1.5 15", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), q = (t) => /* @__PURE__ */ c.createElement("svg", { width: 10, height: 16, viewBox: "0 0 10 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ c.createElement("path", { d: "M8.5 15L1.5 8L8.5 1", stroke: "currentColor", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
770
|
-
function
|
|
772
|
+
function It({
|
|
771
773
|
isRtl: t,
|
|
772
|
-
pageCount:
|
|
774
|
+
pageCount: e,
|
|
773
775
|
page: a,
|
|
774
776
|
onPageChange: r,
|
|
775
777
|
className: v
|
|
@@ -780,7 +782,7 @@ function zt({
|
|
|
780
782
|
showFirstButton: !0,
|
|
781
783
|
showLastButton: !0,
|
|
782
784
|
className: v,
|
|
783
|
-
count:
|
|
785
|
+
count: e,
|
|
784
786
|
page: a + 1,
|
|
785
787
|
onChange: (p, f) => {
|
|
786
788
|
r(p, f - 1);
|
|
@@ -816,5 +818,5 @@ function zt({
|
|
|
816
818
|
);
|
|
817
819
|
}
|
|
818
820
|
export {
|
|
819
|
-
|
|
821
|
+
It as PassportPagination
|
|
820
822
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as l, jsxs as g } from "react/jsx-runtime";
|
|
2
2
|
import { Autocomplete as h, TextField as y, Checkbox as O } from "@mui/material";
|
|
3
|
-
import { C as A, a as S } from "../../CheckBox-
|
|
3
|
+
import { C as A, a as S } from "../../CheckBox-D9YmAV-l.js";
|
|
4
4
|
const m = /* @__PURE__ */ l(S, { fontSize: "small" }), C = /* @__PURE__ */ l(A, { fontSize: "small" });
|
|
5
5
|
function P({
|
|
6
6
|
label: u,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as n, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { Autocomplete as g, TextField as k, Checkbox as S, Box as O, Typography as x } from "@mui/material";
|
|
3
|
-
import { C as z, a as A } from "../../CheckBox-
|
|
3
|
+
import { C as z, a as A } from "../../CheckBox-D9YmAV-l.js";
|
|
4
4
|
const B = /* @__PURE__ */ n(A, { fontSize: "small" }), C = /* @__PURE__ */ n(z, { fontSize: "small" });
|
|
5
5
|
function P({
|
|
6
6
|
label: f,
|