jcicl 0.0.143 → 0.0.145
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/ButtonBase.js +1 -1
- package/.chunks/Portal.js +332 -440
- package/.chunks/TextField.js +907 -979
- package/.chunks/TransitionGroupContext.js +2 -2
- package/.chunks/index.js +114 -0
- package/.chunks/useSlot.js +79 -0
- package/Accordion/Accordion.js +9 -10
- package/AppContainer/AppContainer.js +101 -99
- package/Pagination/Pagination.d.ts +6 -0
- package/Pagination/Pagination.js +781 -0
- package/Pagination/index.d.ts +1 -0
- package/Pagination/index.js +1 -0
- package/Tooltip/Tooltip.js +80 -79
- package/package.json +1 -1
package/.chunks/index.js
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { b as v, P as N } from "./DefaultPropsProvider.js";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
function H({
|
|
5
|
+
controlled: n,
|
|
6
|
+
default: c,
|
|
7
|
+
name: e,
|
|
8
|
+
state: t = "value"
|
|
9
|
+
}) {
|
|
10
|
+
const {
|
|
11
|
+
current: s
|
|
12
|
+
} = o.useRef(n !== void 0), [f, i] = o.useState(c), l = s ? n : f;
|
|
13
|
+
if (process.env.NODE_ENV !== "production") {
|
|
14
|
+
o.useEffect(() => {
|
|
15
|
+
s !== (n !== void 0) && console.error([`MUI: A component is changing the ${s ? "" : "un"}controlled ${t} state of ${e} to be ${s ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled ${e} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
|
|
16
|
+
`));
|
|
17
|
+
}, [t, e, n]);
|
|
18
|
+
const {
|
|
19
|
+
current: u
|
|
20
|
+
} = o.useRef(c);
|
|
21
|
+
o.useEffect(() => {
|
|
22
|
+
!s && !Object.is(u, c) && console.error([`MUI: A component is changing the default ${t} state of an uncontrolled ${e} after being initialized. To suppress this warning opt to use a controlled ${e}.`].join(`
|
|
23
|
+
`));
|
|
24
|
+
}, [JSON.stringify(c)]);
|
|
25
|
+
}
|
|
26
|
+
const r = o.useCallback((u) => {
|
|
27
|
+
s || i(u);
|
|
28
|
+
}, []);
|
|
29
|
+
return [l, r];
|
|
30
|
+
}
|
|
31
|
+
function C(n) {
|
|
32
|
+
return typeof n == "string";
|
|
33
|
+
}
|
|
34
|
+
function k(n, c, e) {
|
|
35
|
+
return n === void 0 || C(n) ? c : {
|
|
36
|
+
...c,
|
|
37
|
+
ownerState: {
|
|
38
|
+
...c.ownerState,
|
|
39
|
+
...e
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function O(n, c = []) {
|
|
44
|
+
if (n === void 0)
|
|
45
|
+
return {};
|
|
46
|
+
const e = {};
|
|
47
|
+
return Object.keys(n).filter((t) => t.match(/^on[A-Z]/) && typeof n[t] == "function" && !c.includes(t)).forEach((t) => {
|
|
48
|
+
e[t] = n[t];
|
|
49
|
+
}), e;
|
|
50
|
+
}
|
|
51
|
+
function E(n) {
|
|
52
|
+
if (n === void 0)
|
|
53
|
+
return {};
|
|
54
|
+
const c = {};
|
|
55
|
+
return Object.keys(n).filter((e) => !(e.match(/^on[A-Z]/) && typeof n[e] == "function")).forEach((e) => {
|
|
56
|
+
c[e] = n[e];
|
|
57
|
+
}), c;
|
|
58
|
+
}
|
|
59
|
+
function V(n) {
|
|
60
|
+
const {
|
|
61
|
+
getSlotProps: c,
|
|
62
|
+
additionalProps: e,
|
|
63
|
+
externalSlotProps: t,
|
|
64
|
+
externalForwardedProps: s,
|
|
65
|
+
className: f
|
|
66
|
+
} = n;
|
|
67
|
+
if (!c) {
|
|
68
|
+
const y = v(e == null ? void 0 : e.className, f, s == null ? void 0 : s.className, t == null ? void 0 : t.className), g = {
|
|
69
|
+
...e == null ? void 0 : e.style,
|
|
70
|
+
...s == null ? void 0 : s.style,
|
|
71
|
+
...t == null ? void 0 : t.style
|
|
72
|
+
}, m = {
|
|
73
|
+
...e,
|
|
74
|
+
...s,
|
|
75
|
+
...t
|
|
76
|
+
};
|
|
77
|
+
return y.length > 0 && (m.className = y), Object.keys(g).length > 0 && (m.style = g), {
|
|
78
|
+
props: m,
|
|
79
|
+
internalRef: void 0
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
const i = O({
|
|
83
|
+
...s,
|
|
84
|
+
...t
|
|
85
|
+
}), l = E(t), r = E(s), u = c(i), h = v(u == null ? void 0 : u.className, e == null ? void 0 : e.className, f, s == null ? void 0 : s.className, t == null ? void 0 : t.className), d = {
|
|
86
|
+
...u == null ? void 0 : u.style,
|
|
87
|
+
...e == null ? void 0 : e.style,
|
|
88
|
+
...s == null ? void 0 : s.style,
|
|
89
|
+
...t == null ? void 0 : t.style
|
|
90
|
+
}, a = {
|
|
91
|
+
...u,
|
|
92
|
+
...e,
|
|
93
|
+
...r,
|
|
94
|
+
...l
|
|
95
|
+
};
|
|
96
|
+
return h.length > 0 && (a.className = h), Object.keys(d).length > 0 && (a.style = d), {
|
|
97
|
+
props: a,
|
|
98
|
+
internalRef: u.ref
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
function A(n, c, e) {
|
|
102
|
+
return typeof n == "function" ? n(c, e) : n;
|
|
103
|
+
}
|
|
104
|
+
const $ = /* @__PURE__ */ o.createContext();
|
|
105
|
+
process.env.NODE_ENV !== "production" && (N.node, N.bool);
|
|
106
|
+
const I = () => o.useContext($) ?? !1;
|
|
107
|
+
export {
|
|
108
|
+
k as a,
|
|
109
|
+
H as b,
|
|
110
|
+
O as e,
|
|
111
|
+
V as m,
|
|
112
|
+
A as r,
|
|
113
|
+
I as u
|
|
114
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { r as R, m as V, a as h } from "./index.js";
|
|
2
|
+
import { u as I } from "./TransitionGroupContext.js";
|
|
3
|
+
function $(e) {
|
|
4
|
+
const t = typeof e;
|
|
5
|
+
switch (t) {
|
|
6
|
+
case "number":
|
|
7
|
+
return Number.isNaN(e) ? "NaN" : Number.isFinite(e) ? e !== Math.floor(e) ? "float" : "number" : "Infinity";
|
|
8
|
+
case "object":
|
|
9
|
+
return e === null ? "null" : e.constructor.name;
|
|
10
|
+
default:
|
|
11
|
+
return t;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
function S(e, t, o, n) {
|
|
15
|
+
const r = e[t];
|
|
16
|
+
if (r == null || !Number.isInteger(r)) {
|
|
17
|
+
const i = $(r);
|
|
18
|
+
return new RangeError(`Invalid ${n} \`${t}\` of type \`${i}\` supplied to \`${o}\`, expected \`integer\`.`);
|
|
19
|
+
}
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
function g(e, t, ...o) {
|
|
23
|
+
return e[t] === void 0 ? null : S(e, t, ...o);
|
|
24
|
+
}
|
|
25
|
+
function l() {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
g.isRequired = S;
|
|
29
|
+
l.isRequired = l;
|
|
30
|
+
const j = process.env.NODE_ENV === "production" ? l : g;
|
|
31
|
+
function k(e, t) {
|
|
32
|
+
const {
|
|
33
|
+
className: o,
|
|
34
|
+
elementType: n,
|
|
35
|
+
ownerState: r,
|
|
36
|
+
externalForwardedProps: i,
|
|
37
|
+
getSlotOwnerState: p,
|
|
38
|
+
internalForwardedProps: c,
|
|
39
|
+
...N
|
|
40
|
+
} = t, {
|
|
41
|
+
component: f,
|
|
42
|
+
slots: u = {
|
|
43
|
+
[e]: void 0
|
|
44
|
+
},
|
|
45
|
+
slotProps: b = {
|
|
46
|
+
[e]: void 0
|
|
47
|
+
},
|
|
48
|
+
...T
|
|
49
|
+
} = i, a = u[e] || n, s = R(b[e], r), {
|
|
50
|
+
props: {
|
|
51
|
+
component: d,
|
|
52
|
+
...y
|
|
53
|
+
},
|
|
54
|
+
internalRef: O
|
|
55
|
+
} = V({
|
|
56
|
+
className: o,
|
|
57
|
+
...N,
|
|
58
|
+
externalForwardedProps: e === "root" ? T : void 0,
|
|
59
|
+
externalSlotProps: s
|
|
60
|
+
}), x = I(O, s == null ? void 0 : s.ref, t.ref), m = p ? p(y) : {}, E = {
|
|
61
|
+
...r,
|
|
62
|
+
...m
|
|
63
|
+
}, w = e === "root" ? d || f : d, P = h(a, {
|
|
64
|
+
...e === "root" && !f && !u[e] && c,
|
|
65
|
+
...e !== "root" && !u[e] && c,
|
|
66
|
+
...y,
|
|
67
|
+
...w && {
|
|
68
|
+
as: w
|
|
69
|
+
},
|
|
70
|
+
ref: x
|
|
71
|
+
}, E);
|
|
72
|
+
return Object.keys(m).forEach((F) => {
|
|
73
|
+
delete P[F];
|
|
74
|
+
}), [a, P];
|
|
75
|
+
}
|
|
76
|
+
export {
|
|
77
|
+
j as i,
|
|
78
|
+
k as u
|
|
79
|
+
};
|
package/Accordion/Accordion.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as r, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
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";
|
|
5
5
|
import c from "../theme.js";
|
|
6
6
|
import { Flex as a } from "../Flex/Flex.js";
|
|
7
7
|
import { c as y } from "../.chunks/createSvgIcon.js";
|
|
8
8
|
import { B as b } from "../.chunks/ButtonBase.js";
|
|
9
|
-
const
|
|
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"), B = n("div")(({ padding: o, shadow: t, width: e }) => ({
|
|
12
12
|
...d`
|
|
13
13
|
h3 {
|
|
14
14
|
margin: 0;
|
|
@@ -24,9 +24,8 @@ const $ = y(/* @__PURE__ */ r("path", {
|
|
|
24
24
|
background-color: ${c.colors.white};
|
|
25
25
|
width: ${e};
|
|
26
26
|
`
|
|
27
|
-
})),
|
|
27
|
+
})), $ = n("div")(({ expanded: o }) => ({
|
|
28
28
|
...d`
|
|
29
|
-
margin-top: ${o ? "1rem" : 0};
|
|
30
29
|
transition: 313ms all ease-in-out;
|
|
31
30
|
display: grid;
|
|
32
31
|
grid-template-rows: ${o ? "1fr" : "0fr"};
|
|
@@ -34,7 +33,7 @@ const $ = y(/* @__PURE__ */ r("path", {
|
|
|
34
33
|
overflow: hidden;
|
|
35
34
|
}
|
|
36
35
|
`
|
|
37
|
-
})),
|
|
36
|
+
})), v = n(b, {
|
|
38
37
|
shouldForwardProp: (o) => u(o) && typeof o == "string"
|
|
39
38
|
})(({ expanded: o }) => ({
|
|
40
39
|
...d`
|
|
@@ -53,16 +52,16 @@ const $ = y(/* @__PURE__ */ r("path", {
|
|
|
53
52
|
shadow: m = c.boxShadows.darkGreen,
|
|
54
53
|
width: p = "360px"
|
|
55
54
|
}) => {
|
|
56
|
-
const [i, f] =
|
|
57
|
-
return /* @__PURE__ */ s(
|
|
55
|
+
const [i, f] = g(!1), h = { padding: l, shadow: m, width: p }, w = { expanded: i }, x = { expanded: i };
|
|
56
|
+
return /* @__PURE__ */ s(B, { ...h, children: [
|
|
58
57
|
/* @__PURE__ */ s(a, { alignItems: "center", justifyContent: "space-between", children: [
|
|
59
58
|
/* @__PURE__ */ s(a, { width: "100%", gap: "1rem", alignItems: "center", children: [
|
|
60
59
|
o && o,
|
|
61
60
|
/* @__PURE__ */ r("h3", { children: t })
|
|
62
61
|
] }),
|
|
63
|
-
/* @__PURE__ */ r(
|
|
62
|
+
/* @__PURE__ */ r(v, { ...w, onClick: () => f(!i), children: /* @__PURE__ */ r(A, {}) })
|
|
64
63
|
] }),
|
|
65
|
-
/* @__PURE__ */ r(
|
|
64
|
+
/* @__PURE__ */ r($, { className: "jcAccordionBody", ...x, children: /* @__PURE__ */ r("div", { children: e }) })
|
|
66
65
|
] });
|
|
67
66
|
};
|
|
68
67
|
export {
|