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