@loopr-ai/craft 0.7.0 → 0.7.2
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-8cd400c2.js +58 -0
- package/dist/{ButtonBase-c303b1df.js → ButtonBase-fc1e48eb.js} +3 -3
- package/dist/{Grow-d188a215.js → Grow-a906cda2.js} +5 -5
- package/dist/{TextField-b13f5aff.js → TextField-a534df29.js} +7 -7
- package/dist/{TransitionGroupContext-7cd3ef83.js → TransitionGroupContext-ba502e63.js} +1 -1
- package/dist/{Typography-c0106ed0.js → Typography-65e5f8a8.js} +8 -8
- package/dist/{ZoomControllers-2e737c18.js → ZoomControllers-8a147df0.js} +1065 -1114
- package/dist/components/cell/AvatarGroup/index.js +3 -3
- package/dist/components/cell/Button/index.js +3 -3
- package/dist/components/cell/Chip/index.js +5 -5
- package/dist/components/cell/ProgressBar/index.js +3 -3
- package/dist/components/cell/Search/index.js +2 -2
- package/dist/components/cell/Typography/index.js +1 -1
- package/dist/components/organ/Form/FieldInput.js +115 -113
- package/dist/components/organ/Form/Form.interfaces.d.ts +2 -0
- package/dist/components/organ/Form/Form.styles.d.ts +2 -2
- package/dist/components/organ/Form/Form.styles.js +1 -1
- package/dist/components/organ/Form/Form.utils.d.ts +1 -0
- package/dist/components/organ/Form/Form.utils.js +20 -15
- package/dist/components/organ/Form/index.d.ts +3 -1
- package/dist/components/organ/Form/index.js +84 -72
- package/dist/components/organ/ZoomControlWithDrag/ZoomControllers.js +3 -2
- package/dist/components/organ/ZoomControlWithDrag/index.js +18 -17
- package/dist/{createSvgIcon-78477fc1.js → createSvgIcon-8e5d9dc7.js} +6 -6
- package/dist/{createSvgIcon-5180e4db.js → createSvgIcon-bb3d4825.js} +5 -5
- package/dist/{createTheme-54078d82.js → createTheme-ca1567c6.js} +4 -4
- package/dist/{dividerClasses-68f129df.js → dividerClasses-0233db5a.js} +2 -2
- package/dist/{exactProp-893ad662.js → exactProp-3d9df1ae.js} +1 -1
- package/dist/{extendSxProp-8c660b3a.js → extendSxProp-fc2654e5.js} +1 -1
- package/dist/global/theme.js +1 -1
- package/dist/providers/CraftThemeProvider.js +2 -2
- package/dist/{styled-2bc0b59e.js → styled-80b57810.js} +38 -38
- package/dist/{useTheme-e2efed29.js → useTheme-16446f25.js} +1 -1
- package/package.json +1 -1
|
@@ -1,130 +1,142 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { createNestedObject as
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsxs as g, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { useState as j, useCallback as w, useEffect as A } from "react";
|
|
3
|
+
import F from "../../cell/Button/index.js";
|
|
4
|
+
import K from "./FieldInput.js";
|
|
5
|
+
import V from "./Form.styles.js";
|
|
6
|
+
import { createNestedObject as L, deepMergeObjects as P, getLocalDateTime as R } from "./Form.utils.js";
|
|
7
|
+
import { B as $ } from "../../../Box-8cd400c2.js";
|
|
8
|
+
const X = ({
|
|
9
|
+
config: r,
|
|
9
10
|
submitText: _ = "Submit",
|
|
10
11
|
handleSubmit: v,
|
|
11
|
-
handleInvalidData:
|
|
12
|
-
cancelText:
|
|
13
|
-
handleCancel:
|
|
14
|
-
onChange:
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
handleInvalidData: p,
|
|
13
|
+
cancelText: S = "Cancel",
|
|
14
|
+
handleCancel: O,
|
|
15
|
+
onChange: c,
|
|
16
|
+
formStyles: C = {},
|
|
17
|
+
buttonWrapperStyles: D = {},
|
|
18
|
+
customFields: B = {}
|
|
17
19
|
}) => {
|
|
18
|
-
const [o,
|
|
19
|
-
function
|
|
20
|
-
|
|
21
|
-
...
|
|
20
|
+
const [o, f] = j({}), [E, d] = j([]);
|
|
21
|
+
function x(e, s) {
|
|
22
|
+
f((n) => ({
|
|
23
|
+
...n,
|
|
22
24
|
[e]: s
|
|
23
|
-
})),
|
|
25
|
+
})), c == null || c(e, s);
|
|
24
26
|
}
|
|
25
|
-
function
|
|
27
|
+
function y() {
|
|
26
28
|
const e = {};
|
|
27
|
-
|
|
29
|
+
r == null || r.forEach((s) => {
|
|
28
30
|
e[s.name] = s.defaultValue || "";
|
|
29
|
-
}),
|
|
31
|
+
}), f(e), d([]);
|
|
30
32
|
}
|
|
31
|
-
function
|
|
33
|
+
function M() {
|
|
32
34
|
const e = [];
|
|
33
|
-
return
|
|
34
|
-
const { name:
|
|
35
|
+
return r == null || r.forEach((s) => {
|
|
36
|
+
const { name: n, label: a, type: u, validation: t, required: h } = s, m = o[n], i = n;
|
|
35
37
|
if (t)
|
|
36
|
-
if (
|
|
37
|
-
const
|
|
38
|
-
t.min &&
|
|
38
|
+
if (u === "number") {
|
|
39
|
+
const b = parseInt(m);
|
|
40
|
+
t.min && b < t.min && e.push({
|
|
39
41
|
field: i,
|
|
40
|
-
value:
|
|
42
|
+
value: m,
|
|
41
43
|
message: t.invalid_message
|
|
42
|
-
}), t.max &&
|
|
44
|
+
}), t.max && b > t.max && e.push({
|
|
43
45
|
field: i,
|
|
44
|
-
value:
|
|
46
|
+
value: m,
|
|
45
47
|
message: t.invalid_message
|
|
46
|
-
}), isNaN(
|
|
48
|
+
}), isNaN(b) && e.push({
|
|
47
49
|
field: i,
|
|
48
|
-
value:
|
|
50
|
+
value: m,
|
|
49
51
|
message: "Invalid number"
|
|
50
52
|
});
|
|
51
53
|
} else
|
|
52
|
-
|
|
54
|
+
u === "text" && (t.min_length && m.length < t.min_length && e.push({
|
|
53
55
|
field: i,
|
|
54
|
-
value:
|
|
56
|
+
value: m,
|
|
55
57
|
message: t.invalid_message
|
|
56
|
-
}), t.max_length &&
|
|
58
|
+
}), t.max_length && m.length > t.max_length && e.push({
|
|
57
59
|
field: i,
|
|
58
|
-
value:
|
|
60
|
+
value: m,
|
|
59
61
|
message: t.invalid_message
|
|
60
|
-
}), t.pattern && !new RegExp(t.pattern).test(
|
|
62
|
+
}), t.pattern && !new RegExp(t.pattern).test(m) && e.push({
|
|
61
63
|
field: i,
|
|
62
|
-
value:
|
|
64
|
+
value: m,
|
|
63
65
|
message: t.invalid_message
|
|
64
66
|
}));
|
|
65
|
-
|
|
67
|
+
h && !m && e.push({
|
|
66
68
|
field: i,
|
|
67
|
-
value:
|
|
69
|
+
value: m,
|
|
68
70
|
message: `${a} is required`
|
|
69
71
|
});
|
|
70
|
-
}),
|
|
72
|
+
}), d(e), e.length && (p == null || p(e)), !e.length;
|
|
71
73
|
}
|
|
72
|
-
const
|
|
74
|
+
const k = w(
|
|
73
75
|
(e) => {
|
|
74
76
|
let s = {};
|
|
75
|
-
return e.forEach((
|
|
76
|
-
const { name: a, type:
|
|
77
|
+
return e == null || e.forEach((n) => {
|
|
78
|
+
const { name: a, type: u, submitDataKey: t } = n;
|
|
77
79
|
if (t) {
|
|
78
|
-
const
|
|
80
|
+
const h = L(
|
|
79
81
|
t,
|
|
80
|
-
|
|
82
|
+
u,
|
|
81
83
|
o[a]
|
|
82
84
|
);
|
|
83
|
-
s =
|
|
85
|
+
s = P(s, h);
|
|
84
86
|
} else
|
|
85
|
-
s[a] =
|
|
87
|
+
s[a] = u === "number" ? parseInt(o[a]) : o[a];
|
|
86
88
|
}), s;
|
|
87
89
|
},
|
|
88
90
|
[o]
|
|
89
91
|
);
|
|
90
|
-
function
|
|
91
|
-
if (e.preventDefault(),
|
|
92
|
-
const
|
|
93
|
-
v(
|
|
92
|
+
function N(e) {
|
|
93
|
+
if (e.preventDefault(), M()) {
|
|
94
|
+
const n = k(r);
|
|
95
|
+
v(n);
|
|
94
96
|
}
|
|
95
97
|
}
|
|
96
|
-
function
|
|
97
|
-
|
|
98
|
+
function T() {
|
|
99
|
+
y(), O();
|
|
98
100
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
+
A(() => {
|
|
102
|
+
y();
|
|
101
103
|
}, []);
|
|
102
|
-
const
|
|
103
|
-
...
|
|
104
|
-
...
|
|
104
|
+
const q = {
|
|
105
|
+
...V.alignVertical,
|
|
106
|
+
...C
|
|
107
|
+
}, W = {
|
|
108
|
+
...V.alignVertical,
|
|
109
|
+
...D
|
|
105
110
|
};
|
|
106
|
-
return /* @__PURE__ */
|
|
107
|
-
Object.keys(o).length &&
|
|
108
|
-
const s =
|
|
111
|
+
return /* @__PURE__ */ g("form", { style: q, children: [
|
|
112
|
+
Object.keys(o).length && (r == null ? void 0 : r.map((e) => {
|
|
113
|
+
const s = E.find(
|
|
109
114
|
(a) => a.field === e.name
|
|
110
|
-
)
|
|
115
|
+
);
|
|
116
|
+
if (e.preFillWithDateTime && e.type === "text") {
|
|
117
|
+
const a = R();
|
|
118
|
+
o[e.name] || x(e.name, a);
|
|
119
|
+
}
|
|
120
|
+
const n = {
|
|
111
121
|
...e,
|
|
112
122
|
value: o[e.name],
|
|
113
|
-
handleChange:
|
|
123
|
+
handleChange: x,
|
|
114
124
|
error: !!s,
|
|
115
125
|
helperText: s == null ? void 0 : s.message
|
|
116
126
|
};
|
|
117
127
|
if (e.type === "custom" && e.customComponent) {
|
|
118
|
-
const a =
|
|
128
|
+
const a = B[e.customComponent];
|
|
119
129
|
if (a)
|
|
120
|
-
return /* @__PURE__ */ l(a, { ...
|
|
130
|
+
return /* @__PURE__ */ l(a, { ...n }, e.name);
|
|
121
131
|
} else
|
|
122
|
-
return /* @__PURE__ */ l(
|
|
123
|
-
}),
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
-
|
|
132
|
+
return /* @__PURE__ */ l(K, { ...n }, e.name);
|
|
133
|
+
})),
|
|
134
|
+
/* @__PURE__ */ g($, { sx: W, children: [
|
|
135
|
+
/* @__PURE__ */ l(F, { type: "submit", onClick: N, children: _ }),
|
|
136
|
+
/* @__PURE__ */ l(F, { onClick: T, children: S })
|
|
137
|
+
] })
|
|
126
138
|
] });
|
|
127
139
|
};
|
|
128
140
|
export {
|
|
129
|
-
|
|
141
|
+
X as default
|
|
130
142
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { jsx as t, jsxs as y } from "react/jsx-runtime";
|
|
2
2
|
import { useState as x, useEffect as n, useMemo as w } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { T as C, Z as S, a as W } from "../../../ZoomControllers-8a147df0.js";
|
|
4
|
+
import { B as m } from "../../../Box-8cd400c2.js";
|
|
4
5
|
const D = {
|
|
5
6
|
position: "relative",
|
|
6
7
|
borderRadius: "1rem",
|
|
7
8
|
overflow: "hidden"
|
|
8
|
-
},
|
|
9
|
+
}, B = ({
|
|
9
10
|
children: c,
|
|
10
|
-
parentContainerProps:
|
|
11
|
-
zoomControllerProps:
|
|
11
|
+
parentContainerProps: f,
|
|
12
|
+
zoomControllerProps: l,
|
|
12
13
|
defaultRotationAngle: p,
|
|
13
14
|
onRotate: o,
|
|
14
15
|
height: s,
|
|
@@ -16,38 +17,38 @@ const D = {
|
|
|
16
17
|
rotatedImageScale: i = 0.55,
|
|
17
18
|
...d
|
|
18
19
|
}) => {
|
|
19
|
-
const [
|
|
20
|
+
const [e, h] = x(p ?? "0");
|
|
20
21
|
function u() {
|
|
21
|
-
h((
|
|
22
|
+
h((r) => ((parseInt(r) + 90) % 360).toString());
|
|
22
23
|
}
|
|
23
24
|
n(() => {
|
|
24
|
-
const
|
|
25
|
-
|
|
25
|
+
const r = document.querySelector(".react-transform-wrapper");
|
|
26
|
+
r && (r.style.width = "100%", r.style.height = "100%");
|
|
26
27
|
}, []), n(() => {
|
|
27
|
-
const
|
|
28
|
-
|
|
28
|
+
const r = document.querySelector(".react-transform-component");
|
|
29
|
+
r && (r.style.transformOrigin = "center center", r.style.height = s ?? "100%", r.style.width = a ?? "100%");
|
|
29
30
|
}, [a, s]), n(() => {
|
|
30
|
-
o == null || o(
|
|
31
|
-
}, [
|
|
31
|
+
o == null || o(e);
|
|
32
|
+
}, [e]);
|
|
32
33
|
const g = w(() => ({
|
|
33
|
-
transform: `rotate(${
|
|
34
|
+
transform: `rotate(${e}deg) scale(${parseInt(e) === 0 || parseInt(e) === 180 ? 1 : i})`,
|
|
34
35
|
width: "100%",
|
|
35
36
|
height: "100%",
|
|
36
37
|
"& img": {
|
|
37
38
|
height: "100%"
|
|
38
39
|
}
|
|
39
|
-
}), [
|
|
40
|
+
}), [e, i]);
|
|
40
41
|
return /* @__PURE__ */ t(
|
|
41
42
|
m,
|
|
42
43
|
{
|
|
43
44
|
sx: D,
|
|
44
|
-
...
|
|
45
|
+
...f,
|
|
45
46
|
children: /* @__PURE__ */ y(C, { ...d, children: [
|
|
46
47
|
/* @__PURE__ */ t(
|
|
47
48
|
S,
|
|
48
49
|
{
|
|
49
50
|
handleRotate: u,
|
|
50
|
-
...
|
|
51
|
+
...l
|
|
51
52
|
}
|
|
52
53
|
),
|
|
53
54
|
/* @__PURE__ */ t(W, { children: /* @__PURE__ */ t(m, { sx: g, children: c }) })
|
|
@@ -56,5 +57,5 @@ const D = {
|
|
|
56
57
|
);
|
|
57
58
|
};
|
|
58
59
|
export {
|
|
59
|
-
|
|
60
|
+
B as default
|
|
60
61
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as _, C as g,
|
|
2
|
-
import { c as y } from "./createSvgIcon-
|
|
3
|
-
import { c as C, d as N, i as S, o as I, a as $, u as x, b as T } from "./Grow-
|
|
4
|
-
import { s as q, a as P, b as w, u as D, c as O } from "./TransitionGroupContext-
|
|
1
|
+
import { a as _, C as g, b, h as E } from "./createTheme-ca1567c6.js";
|
|
2
|
+
import { c as y } from "./createSvgIcon-bb3d4825.js";
|
|
3
|
+
import { c as C, d as N, i as S, o as I, a as $, u as x, b as T } from "./Grow-a906cda2.js";
|
|
4
|
+
import { s as q, a as P, b as w, u as D, c as O } from "./TransitionGroupContext-ba502e63.js";
|
|
5
5
|
import { u as R } from "./unsupportedProp-3dbf01f6.js";
|
|
6
6
|
function M(e, r) {
|
|
7
7
|
return process.env.NODE_ENV === "production" ? () => null : (t, u, s, n, o) => {
|
|
@@ -30,7 +30,7 @@ const k = {
|
|
|
30
30
|
}
|
|
31
31
|
}, G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
32
32
|
__proto__: null,
|
|
33
|
-
capitalize:
|
|
33
|
+
capitalize: b,
|
|
34
34
|
createChainedFunction: C,
|
|
35
35
|
createSvgIcon: y,
|
|
36
36
|
debounce: N,
|
|
@@ -59,7 +59,7 @@ var h = { exports: {} };
|
|
|
59
59
|
e.exports = r, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
60
60
|
})(h);
|
|
61
61
|
var Y = h.exports, c = {};
|
|
62
|
-
const V = /* @__PURE__ */
|
|
62
|
+
const V = /* @__PURE__ */ E(G);
|
|
63
63
|
var m;
|
|
64
64
|
function B() {
|
|
65
65
|
return m || (m = 1, function(e) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { g as
|
|
1
|
+
import { g as I, b as h, _ as w, a as y, P as o } from "./createTheme-ca1567c6.js";
|
|
2
2
|
import * as v from "react";
|
|
3
3
|
import { jsxs as C, jsx as z } from "react/jsx-runtime";
|
|
4
|
-
import { g as T,
|
|
4
|
+
import { g as T, a as N, b as R, c as O, e as B } from "./styled-80b57810.js";
|
|
5
5
|
function j(e) {
|
|
6
|
-
return
|
|
6
|
+
return I("MuiSvgIcon", e);
|
|
7
7
|
}
|
|
8
8
|
T("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
9
9
|
const A = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], E = (e) => {
|
|
@@ -78,10 +78,10 @@ const A = ["children", "className", "color", "component", "fontSize", "htmlColor
|
|
|
78
78
|
hasSvgAsChild: l
|
|
79
79
|
}), x = {};
|
|
80
80
|
m || (x.viewBox = a);
|
|
81
|
-
const
|
|
81
|
+
const b = E($);
|
|
82
82
|
return /* @__PURE__ */ C(V, y({
|
|
83
83
|
as: c,
|
|
84
|
-
className: O(
|
|
84
|
+
className: O(b.root, d),
|
|
85
85
|
focusable: "false",
|
|
86
86
|
color: u,
|
|
87
87
|
"aria-hidden": s ? void 0 : !0,
|
package/dist/global/theme.js
CHANGED
|
@@ -2,9 +2,9 @@ import { jsx as u } from "react/jsx-runtime";
|
|
|
2
2
|
import * as p from "react";
|
|
3
3
|
import { useMemo as O } from "react";
|
|
4
4
|
import { defaultTheme as P } from "../global/theme.js";
|
|
5
|
-
import { P as n, a as c, _ as D,
|
|
5
|
+
import { P as n, a as c, _ as D, c as j, n as V } from "../createTheme-ca1567c6.js";
|
|
6
6
|
import { c as b, a as g, T as f } from "../useThemeWithoutDefault-188598a8.js";
|
|
7
|
-
import { e as v } from "../exactProp-
|
|
7
|
+
import { e as v } from "../exactProp-3d9df1ae.js";
|
|
8
8
|
const l = /* @__PURE__ */ p.createContext(null);
|
|
9
9
|
process.env.NODE_ENV !== "production" && (l.displayName = "ThemeContext");
|
|
10
10
|
const E = l;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as E, g as we, j as re, _ as ne,
|
|
1
|
+
import { a as E, g as we, j as re, _ as ne, b as z, s as Ce, c as xe } from "./createTheme-ca1567c6.js";
|
|
2
2
|
import { m as ke, w as Oe, a as $e, g as Ae, s as Fe, r as Me, b as Ie, i as Le, c as Ne, T as oe } from "./useThemeWithoutDefault-188598a8.js";
|
|
3
3
|
import * as F from "react";
|
|
4
4
|
var V = { exports: {} }, f = {};
|
|
@@ -16,7 +16,7 @@ function De() {
|
|
|
16
16
|
if (X)
|
|
17
17
|
return f;
|
|
18
18
|
X = 1;
|
|
19
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), a = Symbol.for("react.context"), S = Symbol.for("react.server_context"), m = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"),
|
|
19
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), a = Symbol.for("react.context"), S = Symbol.for("react.server_context"), m = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), g;
|
|
20
20
|
g = Symbol.for("react.module.reference");
|
|
21
21
|
function c(o) {
|
|
22
22
|
if (typeof o == "object" && o !== null) {
|
|
@@ -35,7 +35,7 @@ function De() {
|
|
|
35
35
|
case S:
|
|
36
36
|
case a:
|
|
37
37
|
case m:
|
|
38
|
-
case
|
|
38
|
+
case _:
|
|
39
39
|
case v:
|
|
40
40
|
case l:
|
|
41
41
|
return o;
|
|
@@ -48,7 +48,7 @@ function De() {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
return f.ContextConsumer = a, f.ContextProvider = l, f.Element = e, f.ForwardRef = m, f.Fragment = n, f.Lazy =
|
|
51
|
+
return f.ContextConsumer = a, f.ContextProvider = l, f.Element = e, f.ForwardRef = m, f.Fragment = n, f.Lazy = _, f.Memo = v, f.Portal = t, f.Profiler = i, f.StrictMode = r, f.Suspense = h, f.SuspenseList = p, f.isAsyncMode = function() {
|
|
52
52
|
return !1;
|
|
53
53
|
}, f.isConcurrentMode = function() {
|
|
54
54
|
return !1;
|
|
@@ -63,7 +63,7 @@ function De() {
|
|
|
63
63
|
}, f.isFragment = function(o) {
|
|
64
64
|
return c(o) === n;
|
|
65
65
|
}, f.isLazy = function(o) {
|
|
66
|
-
return c(o) ===
|
|
66
|
+
return c(o) === _;
|
|
67
67
|
}, f.isMemo = function(o) {
|
|
68
68
|
return c(o) === v;
|
|
69
69
|
}, f.isPortal = function(o) {
|
|
@@ -77,7 +77,7 @@ function De() {
|
|
|
77
77
|
}, f.isSuspenseList = function(o) {
|
|
78
78
|
return c(o) === p;
|
|
79
79
|
}, f.isValidElementType = function(o) {
|
|
80
|
-
return typeof o == "string" || typeof o == "function" || o === n || o === i || o === r || o === h || o === p || o === P || typeof o == "object" && o !== null && (o.$$typeof ===
|
|
80
|
+
return typeof o == "string" || typeof o == "function" || o === n || o === i || o === r || o === h || o === p || o === P || typeof o == "object" && o !== null && (o.$$typeof === _ || o.$$typeof === v || o.$$typeof === l || o.$$typeof === a || o.$$typeof === m || o.$$typeof === g || o.getModuleId !== void 0);
|
|
81
81
|
}, f.typeOf = c, f;
|
|
82
82
|
}
|
|
83
83
|
var d = {};
|
|
@@ -93,10 +93,10 @@ var d = {};
|
|
|
93
93
|
var B;
|
|
94
94
|
function ze() {
|
|
95
95
|
return B || (B = 1, process.env.NODE_ENV !== "production" && function() {
|
|
96
|
-
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), a = Symbol.for("react.context"), S = Symbol.for("react.server_context"), m = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"),
|
|
96
|
+
var e = Symbol.for("react.element"), t = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), r = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), a = Symbol.for("react.context"), S = Symbol.for("react.server_context"), m = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), g = !1, c = !1, o = !1, T = !1, k = !1, R;
|
|
97
97
|
R = Symbol.for("react.module.reference");
|
|
98
|
-
function
|
|
99
|
-
return !!(typeof s == "string" || typeof s == "function" || s === n || s === i || k || s === r || s === h || s === p || T || s === P || g || c || o || typeof s == "object" && s !== null && (s.$$typeof ===
|
|
98
|
+
function b(s) {
|
|
99
|
+
return !!(typeof s == "string" || typeof s == "function" || s === n || s === i || k || s === r || s === h || s === p || T || s === P || g || c || o || typeof s == "object" && s !== null && (s.$$typeof === _ || s.$$typeof === v || s.$$typeof === l || s.$$typeof === a || s.$$typeof === m || // This needs to include all possible module reference object
|
|
100
100
|
// types supported by any Flight configuration anywhere since
|
|
101
101
|
// we don't know which Flight build this will end up being used
|
|
102
102
|
// with.
|
|
@@ -121,7 +121,7 @@ function ze() {
|
|
|
121
121
|
case S:
|
|
122
122
|
case a:
|
|
123
123
|
case m:
|
|
124
|
-
case
|
|
124
|
+
case _:
|
|
125
125
|
case v:
|
|
126
126
|
case l:
|
|
127
127
|
return W;
|
|
@@ -134,7 +134,7 @@ function ze() {
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
var w = a, O = l, $ = e, C = m, u = n, x =
|
|
137
|
+
var w = a, O = l, $ = e, C = m, u = n, x = _, L = v, N = t, Y = i, A = r, ue = h, fe = p, q = !1, H = !1;
|
|
138
138
|
function de(s) {
|
|
139
139
|
return q || (q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
|
|
140
140
|
}
|
|
@@ -157,12 +157,12 @@ function ze() {
|
|
|
157
157
|
return y(s) === n;
|
|
158
158
|
}
|
|
159
159
|
function Se(s) {
|
|
160
|
-
return y(s) ===
|
|
160
|
+
return y(s) === _;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function be(s) {
|
|
163
163
|
return y(s) === v;
|
|
164
164
|
}
|
|
165
|
-
function
|
|
165
|
+
function _e(s) {
|
|
166
166
|
return y(s) === t;
|
|
167
167
|
}
|
|
168
168
|
function Ee(s) {
|
|
@@ -177,7 +177,7 @@ function ze() {
|
|
|
177
177
|
function Re(s) {
|
|
178
178
|
return y(s) === p;
|
|
179
179
|
}
|
|
180
|
-
d.ContextConsumer = w, d.ContextProvider = O, d.Element = $, d.ForwardRef = C, d.Fragment = u, d.Lazy = x, d.Memo = L, d.Portal = N, d.Profiler = Y, d.StrictMode = A, d.Suspense = ue, d.SuspenseList = fe, d.isAsyncMode = de, d.isConcurrentMode = me, d.isContextConsumer = pe, d.isContextProvider = he, d.isElement = ye, d.isForwardRef = ve, d.isFragment = ge, d.isLazy = Se, d.isMemo =
|
|
180
|
+
d.ContextConsumer = w, d.ContextProvider = O, d.Element = $, d.ForwardRef = C, d.Fragment = u, d.Lazy = x, d.Memo = L, d.Portal = N, d.Profiler = Y, d.StrictMode = A, d.Suspense = ue, d.SuspenseList = fe, d.isAsyncMode = de, d.isConcurrentMode = me, d.isContextConsumer = pe, d.isContextProvider = he, d.isElement = ye, d.isForwardRef = ve, d.isFragment = ge, d.isLazy = Se, d.isMemo = be, d.isPortal = _e, d.isProfiler = Ee, d.isStrictMode = Te, d.isSuspense = Pe, d.isSuspenseList = Re, d.isValidElementType = b, d.typeOf = y;
|
|
181
181
|
}()), d;
|
|
182
182
|
}
|
|
183
183
|
process.env.NODE_ENV === "production" ? V.exports = De() : V.exports = ze();
|
|
@@ -289,19 +289,19 @@ You may have forgotten to import it.`);
|
|
|
289
289
|
v.push.apply(v, p);
|
|
290
290
|
else {
|
|
291
291
|
process.env.NODE_ENV !== "production" && p[0][0] === void 0 && console.error(Q), v.push(p[0][0]);
|
|
292
|
-
for (var
|
|
292
|
+
for (var _ = p.length, P = 1; P < _; P++)
|
|
293
293
|
process.env.NODE_ENV !== "production" && p[0][P] === void 0 && console.error(Q), v.push(p[P], p[0][P]);
|
|
294
294
|
}
|
|
295
295
|
var g = Oe(function(c, o, T) {
|
|
296
|
-
var k = h && c.as || i, R = "",
|
|
296
|
+
var k = h && c.as || i, R = "", b = [], y = c;
|
|
297
297
|
if (c.theme == null) {
|
|
298
298
|
y = {};
|
|
299
299
|
for (var w in c)
|
|
300
300
|
y[w] = c[w];
|
|
301
301
|
y.theme = F.useContext($e);
|
|
302
302
|
}
|
|
303
|
-
typeof c.className == "string" ? R = Ae(o.registered,
|
|
304
|
-
var O = Fe(v.concat(
|
|
303
|
+
typeof c.className == "string" ? R = Ae(o.registered, b, c.className) : c.className != null && (R = c.className + " ");
|
|
304
|
+
var O = Fe(v.concat(b), o.registered, y);
|
|
305
305
|
R += o.key + "-" + O.name, a !== void 0 && (R += " " + a);
|
|
306
306
|
var $ = h && S === void 0 ? J(k) : m, C = {};
|
|
307
307
|
for (var u in c)
|
|
@@ -572,7 +572,7 @@ function ct(e = {}) {
|
|
|
572
572
|
}))
|
|
573
573
|
}));
|
|
574
574
|
return l.__mui_systemSx = !0, (a, S = {}) => {
|
|
575
|
-
Je(a, (
|
|
575
|
+
Je(a, (b) => b.filter((y) => !(y != null && y.__mui_systemSx)));
|
|
576
576
|
const {
|
|
577
577
|
name: m,
|
|
578
578
|
slot: h,
|
|
@@ -580,7 +580,7 @@ function ct(e = {}) {
|
|
|
580
580
|
skipSx: v,
|
|
581
581
|
// TODO v6: remove `lowercaseFirstLetter()` in the next major release
|
|
582
582
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
583
|
-
overridesResolver:
|
|
583
|
+
overridesResolver: _ = lt(te(h))
|
|
584
584
|
} = S, P = ne(S, tt), g = p !== void 0 ? p : (
|
|
585
585
|
// TODO v6: remove `Root` in the next major release
|
|
586
586
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
@@ -593,15 +593,15 @@ function ct(e = {}) {
|
|
|
593
593
|
const k = Ke(a, E({
|
|
594
594
|
shouldForwardProp: T,
|
|
595
595
|
label: o
|
|
596
|
-
}, P)), R = (
|
|
596
|
+
}, P)), R = (b, ...y) => {
|
|
597
597
|
const w = y ? y.map((u) => typeof u == "function" && u.__emotion_real !== u ? (x) => u(E({}, x, {
|
|
598
598
|
theme: M(E({}, x, {
|
|
599
599
|
defaultTheme: n,
|
|
600
600
|
themeId: t
|
|
601
601
|
}))
|
|
602
602
|
})) : u) : [];
|
|
603
|
-
let O =
|
|
604
|
-
m &&
|
|
603
|
+
let O = b;
|
|
604
|
+
m && _ && w.push((u) => {
|
|
605
605
|
const x = M(E({}, u, {
|
|
606
606
|
defaultTheme: n,
|
|
607
607
|
themeId: t
|
|
@@ -612,7 +612,7 @@ function ct(e = {}) {
|
|
|
612
612
|
N[Y] = typeof A == "function" ? A(E({}, u, {
|
|
613
613
|
theme: x
|
|
614
614
|
})) : A;
|
|
615
|
-
}),
|
|
615
|
+
}), _(u, N);
|
|
616
616
|
}
|
|
617
617
|
return null;
|
|
618
618
|
}), m && !g && w.push((u) => {
|
|
@@ -623,14 +623,14 @@ function ct(e = {}) {
|
|
|
623
623
|
return st(u, it(m, x), x, m);
|
|
624
624
|
}), c || w.push(l);
|
|
625
625
|
const $ = w.length - y.length;
|
|
626
|
-
if (Array.isArray(
|
|
626
|
+
if (Array.isArray(b) && $ > 0) {
|
|
627
627
|
const u = new Array($).fill("");
|
|
628
|
-
O = [...
|
|
628
|
+
O = [...b, ...u], O.raw = [...b.raw, ...u];
|
|
629
629
|
} else
|
|
630
|
-
typeof
|
|
630
|
+
typeof b == "function" && // On the server Emotion doesn't use React.forwardRef for creating components, so the created
|
|
631
631
|
// component stays as a function. This condition makes sure that we do not interpolate functions
|
|
632
632
|
// which are basically components used as a selectors.
|
|
633
|
-
|
|
633
|
+
b.__emotion_real !== b && (O = (u) => b(E({}, u, {
|
|
634
634
|
theme: M(E({}, u, {
|
|
635
635
|
defaultTheme: n,
|
|
636
636
|
themeId: t
|
|
@@ -668,7 +668,7 @@ function ft({
|
|
|
668
668
|
});
|
|
669
669
|
}
|
|
670
670
|
const dt = xe(), ce = dt;
|
|
671
|
-
function
|
|
671
|
+
function bt({
|
|
672
672
|
props: e,
|
|
673
673
|
name: t
|
|
674
674
|
}) {
|
|
@@ -679,22 +679,22 @@ function _t({
|
|
|
679
679
|
themeId: oe
|
|
680
680
|
});
|
|
681
681
|
}
|
|
682
|
-
const mt = (e) => I(e) && e !== "classes",
|
|
682
|
+
const mt = (e) => I(e) && e !== "classes", _t = I, pt = ct({
|
|
683
683
|
themeId: oe,
|
|
684
684
|
defaultTheme: ce,
|
|
685
685
|
rootShouldForwardProp: mt
|
|
686
686
|
}), Et = pt;
|
|
687
687
|
export {
|
|
688
|
-
|
|
689
|
-
|
|
688
|
+
Et as a,
|
|
689
|
+
bt as b,
|
|
690
690
|
St as c,
|
|
691
691
|
ce as d,
|
|
692
|
-
|
|
693
|
-
|
|
692
|
+
vt as e,
|
|
693
|
+
se as f,
|
|
694
694
|
gt as g,
|
|
695
|
-
|
|
696
|
-
|
|
695
|
+
G as h,
|
|
696
|
+
_t as i,
|
|
697
697
|
mt as r,
|
|
698
|
-
|
|
698
|
+
Ke as s,
|
|
699
699
|
Qe as u
|
|
700
700
|
};
|