@hybridcore/ui 1.6.0 → 1.6.1
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/{AccordionSummary-DgAwVTk8.js → AccordionSummary-CMg08YSA.js} +20 -23
- package/dist/{Add-DJLrrVHm.js → Add-DuVVJeQU.js} +65 -67
- package/dist/{ButtonBase-2bPw77UP.js → ButtonBase-sObABYY2.js} +60 -56
- package/dist/{Delete-CW0UZv1m.js → Delete-fBLhTHbF.js} +1 -1
- package/dist/{DialogContent-B3nbEbuv.js → DialogContent-CGJ7alb8.js} +8 -10
- package/dist/{FormControl-BLbrq4C7.js → FormControl-BCurCxRj.js} +377 -719
- package/dist/FormControlLabel-BkRfrhNy.js +601 -0
- package/dist/{IconButton-CHwRQF-g.js → IconButton-_opV1iNK.js} +26 -28
- package/dist/{InputAdornment-DLxWUE6H.js → InputAdornment-C7PEvvYr.js} +16 -18
- package/dist/InputLabel-rEwwnD4_.js +354 -0
- package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DrE50M_p.js} +92 -70
- package/dist/Modal-DlB6GH-f.js +1659 -0
- package/dist/Paper-q9kKjAKx.js +527 -0
- package/dist/{Select-BgYwkZgI.js → TextField-DSDIEEKu.js} +1449 -901
- package/dist/{Typography-CxbneZy_.js → Typography-B-Z5Y0Xq.js} +46 -48
- package/dist/{capitalize-ciszXJ7R.js → capitalize-quqpGCFu.js} +1 -1
- package/dist/components/access/index.js +8 -15
- package/dist/components/access/logic.js +25 -0
- package/dist/components/card/index.js +158 -498
- package/dist/components/card/logic.js +24 -0
- package/dist/components/card/styled.js +226 -51
- package/dist/components/card-alternate/index.js +111 -139
- package/dist/components/card-alternate/logic.js +17 -0
- package/dist/components/card-alternate/styled.js +113 -19
- package/dist/components/collapsible-card/index.js +1 -1
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/confirm/dialog.js +3 -3
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +28 -269
- package/dist/components/container/logic.js +12 -0
- package/dist/components/container/styled.js +29 -0
- package/dist/components/context-menu/index.js +25 -457
- package/dist/components/context-menu/logic.js +14 -0
- package/dist/components/context-menu/styled.js +40 -0
- package/dist/components/data-security-selectors/security-level/index.js +36 -91
- package/dist/components/data-security-selectors/security-level/logic.js +73 -0
- package/dist/components/data-security-selectors/security-level/styled.js +47 -0
- package/dist/components/date-picker-with-custom-range/index.js +1 -1
- package/dist/components/geometry-picker/index.js +13 -12
- package/dist/components/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/instance-form/components/variable/index.js +7 -9
- package/dist/components/instance-form/components/variables/index.js +1 -1
- package/dist/components/instance-form/index.js +1 -1
- package/dist/components/instance-hierarchy-table/index.js +32 -37
- package/dist/components/instance-hierarchy-table/logic.js +16 -0
- package/dist/components/instance-hierarchy-table/styled.js +53 -12
- package/dist/components/instance-table/index.js +30 -135
- package/dist/components/instance-table/logic.js +122 -0
- package/dist/components/instance-table/styled.js +53 -11
- package/dist/components/key-protection/index.js +45 -2
- package/dist/components/key-protection/logic.js +40 -0
- package/dist/components/key-protection/styled.js +45 -0
- package/dist/components/key-protection/utils.js +1 -1
- package/dist/components/loading/index.js +15 -9
- package/dist/components/loading/logic.js +15 -0
- package/dist/components/loading/styled.js +26 -19
- package/dist/components/phone-input/index.js +18 -22
- package/dist/components/phone-input/logic.js +14 -0
- package/dist/components/phone-input/styled.js +12 -4
- package/dist/components/property-mapping/index.js +1 -1
- package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
- package/dist/components/range-selector/components/date-range/index.js +87 -4221
- package/dist/components/range-selector/components/geometry-range/index.js +11 -17
- package/dist/components/range-selector/components/number-range/index.js +48 -53
- package/dist/components/range-selector/components/string-range/index.js +15 -17
- package/dist/components/range-selector/index.js +63 -57
- package/dist/components/range-selector/logic.js +12 -0
- package/dist/components/range-selector/styled.js +4222 -0
- package/dist/components/template-filters/components/filter/index.js +13 -18
- package/dist/components/template-filters/components/tab-panel/index.js +8 -16
- package/dist/components/template-filters/index.js +21 -29
- package/dist/components/template-filters/logic.js +18 -0
- package/dist/components/template-filters/styled.js +44 -1
- package/dist/components/template-form/components/property-list/index.js +8 -8
- package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +8 -10
- package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +8 -9
- package/dist/components/template-form/index.js +32 -33
- package/dist/components/template-property-filters/index.js +45 -95
- package/dist/components/template-property-filters/logic.js +27 -0
- package/dist/components/template-property-filters/property.js +105 -165
- package/dist/components/template-property-filters/styled.js +121 -20
- package/dist/components/tree-select/index.js +52 -67
- package/dist/components/tree-select/logic.js +59 -0
- package/dist/components/tree-select/styled.js +45 -62
- package/dist/components/treeview-filter/index.js +43 -65
- package/dist/components/treeview-filter/item/index.js +43 -42
- package/dist/components/treeview-filter/item-label/index.js +17 -37
- package/dist/components/treeview-filter/logic.js +28 -0
- package/dist/components/treeview-filter/styled.js +86 -0
- package/dist/components/uploader/index.js +532 -567
- package/dist/components/uploader/logic.js +74 -0
- package/dist/components/uploader/styled.js +93 -46
- package/dist/{createSvgIcon-BjpIhJ30.js → createSvgIcon-BM3-TsGy.js} +25 -26
- package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-DX-SqL8M.js} +23 -25
- package/dist/{dialog-DcwXug9J.js → dialog-cf4HUXXl.js} +26 -27
- package/dist/{index-syTc6m_V.js → index-C8C3YXle.js} +92 -94
- package/dist/{index-CcdvNlgr.js → index-DPKUmQnz.js} +11 -13
- package/dist/isMuiElement-BkJ72LB3.js +26 -0
- package/dist/main.d.ts +734 -298
- package/dist/main.js +15 -15
- package/dist/{property-list-form-zZQfpR0X.js → property-list-form-DL_dEoNn.js} +56 -61
- package/dist/{createTheme-DYxDnE9u.js → styled-Bsjp3kFh.js} +232 -176
- package/dist/{useMobilePicker-BLg3Blg8.js → useMobilePicker-B-M3dnTn.js} +2692 -2288
- package/dist/{utils-Bq0ye5vf.js → utils-Cxu-fHjQ.js} +7 -7
- package/package.json +1 -1
- package/dist/Box-p6OtTUEo.js +0 -30
- package/dist/Button-CvE2gnly.js +0 -370
- package/dist/CardContent-CSHh-ZlM.js +0 -74
- package/dist/Checkbox-CWRMFTBp.js +0 -421
- package/dist/FormControlLabel-C8SPv14J.js +0 -195
- package/dist/List-tqElle9C.js +0 -121
- package/dist/ListItem-CfjsIg4B.js +0 -430
- package/dist/Modal-DhPpOoGB.js +0 -1299
- package/dist/Paper-2B03OBmZ.js +0 -169
- package/dist/TextField-1yCesIbH.js +0 -457
- package/dist/components/key-protection/menu.js +0 -85
- package/dist/components/treeview-filter/item/styled.js +0 -39
- package/dist/debounce-46wSf_lW.js +0 -15
- package/dist/isHostComponent-kiaBvYVo.js +0 -6
- package/dist/isMuiElement-CxT3_ACP.js +0 -13
- package/dist/listItemTextClasses-C3lndiXO.js +0 -16
- package/dist/styled-eZwjUruw.js +0 -12
- package/dist/useFormControl-CatNKXAi.js +0 -10
- package/dist/useThemeProps-BzzHcQyd.js +0 -58
- package/dist/utils-BDNynJcd.js +0 -365
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { useThemeProps as I } from "@mui/material";
|
|
2
|
+
import g from "lodash";
|
|
3
|
+
import { useState as w } from "react";
|
|
4
|
+
import { confirm as S, alert as h } from "../confirm/index.js";
|
|
5
|
+
const N = (C) => {
|
|
6
|
+
const l = I({ props: C, name: "HCUploader" }), {
|
|
7
|
+
type: r = "IMAGE",
|
|
8
|
+
allowedExtensions: i = ["JPG", "PNG", "GIF"],
|
|
9
|
+
urls: o = [],
|
|
10
|
+
inputName: m = "file",
|
|
11
|
+
multiple: p = !1,
|
|
12
|
+
maxSize: a = 5,
|
|
13
|
+
minSize: c,
|
|
14
|
+
uploadAction: E,
|
|
15
|
+
onChange: n
|
|
16
|
+
} = l, [d, f] = w(!1), [M, u] = w(null), y = {
|
|
17
|
+
...l,
|
|
18
|
+
type: r,
|
|
19
|
+
allowedExtensions: i,
|
|
20
|
+
urls: o,
|
|
21
|
+
inputName: m,
|
|
22
|
+
multiple: p,
|
|
23
|
+
maxSize: a,
|
|
24
|
+
minSize: c,
|
|
25
|
+
uploading: d
|
|
26
|
+
};
|
|
27
|
+
return {
|
|
28
|
+
refs: {},
|
|
29
|
+
state: {
|
|
30
|
+
ownerState: y,
|
|
31
|
+
uploading: d,
|
|
32
|
+
imageModal: M,
|
|
33
|
+
type: r,
|
|
34
|
+
allowedExtensions: i,
|
|
35
|
+
urls: o,
|
|
36
|
+
inputName: m,
|
|
37
|
+
multiple: p,
|
|
38
|
+
maxSize: a,
|
|
39
|
+
minSize: c
|
|
40
|
+
},
|
|
41
|
+
actions: {
|
|
42
|
+
handleChange: async (e) => {
|
|
43
|
+
f(!0);
|
|
44
|
+
const s = await E(e);
|
|
45
|
+
f(!1), s && n && n([...o, s].filter((t) => t));
|
|
46
|
+
},
|
|
47
|
+
handleRemove: (e) => async () => {
|
|
48
|
+
await S(
|
|
49
|
+
"Are you sure?",
|
|
50
|
+
`${g.startCase(g.lowerCase(r))} will be removed!`
|
|
51
|
+
) && n && n(o.filter((t) => t !== e));
|
|
52
|
+
},
|
|
53
|
+
onTypeError: () => {
|
|
54
|
+
h("Error!", "Type error");
|
|
55
|
+
},
|
|
56
|
+
onSizeError: () => {
|
|
57
|
+
h("Error!", `File size is out of allowed limits!
|
|
58
|
+
Max: ${a}mb`);
|
|
59
|
+
},
|
|
60
|
+
onOpenImageModal: (e) => () => {
|
|
61
|
+
u(e);
|
|
62
|
+
},
|
|
63
|
+
onCloseImageModal: () => {
|
|
64
|
+
u(null);
|
|
65
|
+
},
|
|
66
|
+
onOpenFile: (e) => () => {
|
|
67
|
+
window.open(e, "_blank");
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
export {
|
|
73
|
+
N as useUploaderLogic
|
|
74
|
+
};
|
|
@@ -1,33 +1,18 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
const
|
|
3
|
-
name: "
|
|
4
|
-
slot: "
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
userSelect: "none",
|
|
17
|
-
"&:hover:not([aria-disabled=true])": {
|
|
18
|
-
borderColor: r.palette.primary.main
|
|
19
|
-
},
|
|
20
|
-
"& .MuiSvgIcon-root": {
|
|
21
|
-
fontSize: 58
|
|
22
|
-
},
|
|
23
|
-
"&[aria-disabled=true]": {
|
|
24
|
-
cursor: "default",
|
|
25
|
-
opacity: 0.5
|
|
26
|
-
}
|
|
27
|
-
})), i = o(e, {
|
|
28
|
-
name: "SNUploader",
|
|
29
|
-
slot: "imageThumbContainer"
|
|
30
|
-
})(({ theme: r }) => ({
|
|
1
|
+
import { styled as e, Box as r, Grid as n, Chip as i, Typography as a, Dialog as l, IconButton as p } from "@mui/material";
|
|
2
|
+
const s = (o) => o !== "ownerState", c = e(r, {
|
|
3
|
+
name: "HCUploader",
|
|
4
|
+
slot: "root",
|
|
5
|
+
shouldForwardProp: s
|
|
6
|
+
})({}), m = e(n, {
|
|
7
|
+
name: "HCUploader",
|
|
8
|
+
slot: "imageGrid"
|
|
9
|
+
})(({ theme: o }) => ({
|
|
10
|
+
marginBottom: o.spacing(1)
|
|
11
|
+
})), g = e(r, {
|
|
12
|
+
name: "HCUploader",
|
|
13
|
+
slot: "imageThumb",
|
|
14
|
+
shouldForwardProp: (o) => o !== "url"
|
|
15
|
+
})(({ theme: o, url: t }) => ({
|
|
31
16
|
display: "flex",
|
|
32
17
|
alignItems: "center",
|
|
33
18
|
justifyContent: "center",
|
|
@@ -35,8 +20,10 @@ const t = o(e, {
|
|
|
35
20
|
borderRadius: 12,
|
|
36
21
|
height: 120,
|
|
37
22
|
transition: "all .3s",
|
|
23
|
+
background: `url(${t}) no-repeat center`,
|
|
24
|
+
backgroundSize: "cover",
|
|
38
25
|
"&:hover": {
|
|
39
|
-
borderColor:
|
|
26
|
+
borderColor: o.palette.primary.main,
|
|
40
27
|
"& .MuiButtonBase-root": {
|
|
41
28
|
opacity: 1
|
|
42
29
|
}
|
|
@@ -44,26 +31,86 @@ const t = o(e, {
|
|
|
44
31
|
"& .MuiButtonBase-root": {
|
|
45
32
|
marginLeft: 2,
|
|
46
33
|
marginRight: 2,
|
|
47
|
-
background:
|
|
34
|
+
background: o.palette.common.white,
|
|
48
35
|
transition: "all .3s",
|
|
49
36
|
opacity: 0
|
|
50
37
|
}
|
|
51
|
-
})),
|
|
52
|
-
name: "
|
|
53
|
-
slot: "
|
|
54
|
-
})(({ theme:
|
|
38
|
+
})), u = e(i, {
|
|
39
|
+
name: "HCUploader",
|
|
40
|
+
slot: "fileChip"
|
|
41
|
+
})(({ theme: o }) => ({
|
|
42
|
+
marginRight: o.spacing(1),
|
|
43
|
+
marginBottom: o.spacing(1)
|
|
44
|
+
})), C = e(r, {
|
|
45
|
+
name: "HCUploader",
|
|
46
|
+
slot: "chipIcon"
|
|
47
|
+
})(({ theme: o }) => ({
|
|
48
|
+
display: "inline-flex",
|
|
49
|
+
marginLeft: o.spacing(1)
|
|
50
|
+
})), b = e(r, {
|
|
51
|
+
name: "HCUploader",
|
|
52
|
+
slot: "dropArea"
|
|
53
|
+
})(({ theme: o }) => ({
|
|
55
54
|
display: "flex",
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
flexDirection: "column",
|
|
56
|
+
justifyContent: "center",
|
|
57
|
+
alignItems: "center",
|
|
58
|
+
border: "1px dashed",
|
|
59
|
+
borderColor: o.palette.divider,
|
|
60
|
+
borderRadius: 5,
|
|
61
|
+
padding: o.spacing(3),
|
|
60
62
|
transition: "all .3s",
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
+
cursor: "pointer",
|
|
64
|
+
userSelect: "none",
|
|
65
|
+
"&:hover:not([aria-disabled=true])": {
|
|
66
|
+
borderColor: o.palette.primary.main
|
|
67
|
+
},
|
|
68
|
+
"& .MuiSvgIcon-root": {
|
|
69
|
+
fontSize: 58
|
|
70
|
+
},
|
|
71
|
+
"&[aria-disabled=true]": {
|
|
72
|
+
cursor: "default",
|
|
73
|
+
opacity: 0.5
|
|
63
74
|
}
|
|
64
|
-
}))
|
|
75
|
+
})), f = e(r, {
|
|
76
|
+
name: "HCUploader",
|
|
77
|
+
slot: "dropAreaIcon"
|
|
78
|
+
})({
|
|
79
|
+
display: "inline-flex"
|
|
80
|
+
}), h = e(a, {
|
|
81
|
+
name: "HCUploader",
|
|
82
|
+
slot: "dropAreaTitle"
|
|
83
|
+
})({}), y = e(a, {
|
|
84
|
+
name: "HCUploader",
|
|
85
|
+
slot: "dropAreaCaption"
|
|
86
|
+
})({}), U = e(l, {
|
|
87
|
+
name: "HCUploader",
|
|
88
|
+
slot: "previewDialog"
|
|
89
|
+
})({}), w = e(p, {
|
|
90
|
+
name: "HCUploader",
|
|
91
|
+
slot: "previewCloseButton"
|
|
92
|
+
})(({ theme: o }) => ({
|
|
93
|
+
position: "absolute",
|
|
94
|
+
right: o.spacing(1),
|
|
95
|
+
top: o.spacing(1),
|
|
96
|
+
backgroundColor: `${o.palette.common.white} !important`
|
|
97
|
+
})), H = e("img", {
|
|
98
|
+
name: "HCUploader",
|
|
99
|
+
slot: "previewImage"
|
|
100
|
+
})({
|
|
101
|
+
width: "100%"
|
|
102
|
+
});
|
|
65
103
|
export {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
104
|
+
C as ChipIconRoot,
|
|
105
|
+
y as DropAreaCaption,
|
|
106
|
+
b as DropAreaContainer,
|
|
107
|
+
f as DropAreaIcon,
|
|
108
|
+
h as DropAreaTitle,
|
|
109
|
+
u as FileChip,
|
|
110
|
+
m as ImageGrid,
|
|
111
|
+
g as ImageThumbContainer,
|
|
112
|
+
w as PreviewCloseButton,
|
|
113
|
+
U as PreviewDialog,
|
|
114
|
+
H as PreviewImage,
|
|
115
|
+
c as UploaderRoot
|
|
69
116
|
};
|
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
import { g as f } from "./_commonjsHelpers-BVfed4GL.js";
|
|
2
|
-
import { c as p } from "./createSvgIcon-
|
|
3
|
-
import { C as d } from "./
|
|
2
|
+
import { c as p } from "./createSvgIcon-DX-SqL8M.js";
|
|
3
|
+
import { C as d } from "./styled-Bsjp3kFh.js";
|
|
4
4
|
import { c as g, o as _, a as v, u as b } from "./useId-B4-oF9Mq.js";
|
|
5
|
-
import { d as h } from "./
|
|
6
|
-
import { r as
|
|
7
|
-
import { s as
|
|
8
|
-
import { c as
|
|
9
|
-
import { i as $ } from "./isMuiElement-CxT3_ACP.js";
|
|
5
|
+
import { d as h, i as E } from "./isMuiElement-BkJ72LB3.js";
|
|
6
|
+
import { r as N, u as C } from "./unsupportedProp-BND8AB6O.js";
|
|
7
|
+
import { s as I, u as S, b as x, a as y, d as q } from "./ButtonBase-sObABYY2.js";
|
|
8
|
+
import { c as $ } from "./capitalize-quqpGCFu.js";
|
|
10
9
|
import { u as D } from "./useControlled-BYdyS7Pn.js";
|
|
11
|
-
function M(e, t) {
|
|
12
|
-
return process.env.NODE_ENV === "production" ? () => null : (r, a, u, i, c) => {
|
|
13
|
-
const m = u || "<<anonymous>>", l = c || a;
|
|
14
|
-
return typeof r[a] < "u" ? new Error(`The ${i} \`${l}\` of \`${m}\` is deprecated. ${t}`) : null;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
10
|
var n = { exports: {} };
|
|
18
11
|
(function(e) {
|
|
19
12
|
function t(r) {
|
|
@@ -23,7 +16,13 @@ var n = { exports: {} };
|
|
|
23
16
|
}
|
|
24
17
|
e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
25
18
|
})(n);
|
|
26
|
-
var
|
|
19
|
+
var U = n.exports, o = {};
|
|
20
|
+
function M(e, t) {
|
|
21
|
+
return process.env.NODE_ENV === "production" ? () => null : (r, a, u, i, c) => {
|
|
22
|
+
const l = u || "<<anonymous>>", m = c || a;
|
|
23
|
+
return typeof r[a] < "u" ? new Error(`The ${i} \`${m}\` of \`${l}\` is deprecated. ${t}`) : null;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
27
26
|
const O = {
|
|
28
27
|
configure: (e) => {
|
|
29
28
|
process.env.NODE_ENV !== "production" && console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.", "", "You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead", "", "The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401", "", "The updated documentation: https://mui.com/guides/classname-generator/"].join(`
|
|
@@ -31,27 +30,27 @@ const O = {
|
|
|
31
30
|
}
|
|
32
31
|
}, P = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
33
32
|
__proto__: null,
|
|
34
|
-
capitalize:
|
|
33
|
+
capitalize: $,
|
|
35
34
|
createChainedFunction: g,
|
|
36
35
|
createSvgIcon: p,
|
|
37
36
|
debounce: h,
|
|
38
37
|
deprecatedPropType: M,
|
|
39
|
-
isMuiElement:
|
|
38
|
+
isMuiElement: E,
|
|
40
39
|
ownerDocument: _,
|
|
41
40
|
ownerWindow: v,
|
|
42
|
-
requirePropFactory:
|
|
43
|
-
setRef:
|
|
41
|
+
requirePropFactory: N,
|
|
42
|
+
setRef: I,
|
|
44
43
|
unstable_ClassNameGenerator: O,
|
|
45
|
-
unstable_useEnhancedEffect:
|
|
44
|
+
unstable_useEnhancedEffect: S,
|
|
46
45
|
unstable_useId: b,
|
|
47
|
-
unsupportedProp:
|
|
46
|
+
unsupportedProp: C,
|
|
48
47
|
useControlled: D,
|
|
49
|
-
useEventCallback:
|
|
50
|
-
useForkRef:
|
|
51
|
-
useIsFocusVisible:
|
|
48
|
+
useEventCallback: x,
|
|
49
|
+
useForkRef: y,
|
|
50
|
+
useIsFocusVisible: q
|
|
52
51
|
}, Symbol.toStringTag, { value: "Module" })), R = /* @__PURE__ */ f(P);
|
|
53
52
|
var s;
|
|
54
|
-
function
|
|
53
|
+
function W() {
|
|
55
54
|
return s || (s = 1, function(e) {
|
|
56
55
|
"use client";
|
|
57
56
|
Object.defineProperty(e, "__esModule", {
|
|
@@ -66,6 +65,6 @@ function Y() {
|
|
|
66
65
|
}(o)), o;
|
|
67
66
|
}
|
|
68
67
|
export {
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
U as i,
|
|
69
|
+
W as r
|
|
71
70
|
};
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { _ as
|
|
1
|
+
import { _ as b, a as $ } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
2
2
|
import * as _ from "react";
|
|
3
|
-
import { jsxs as
|
|
3
|
+
import { jsxs as I, jsx as w } from "react/jsx-runtime";
|
|
4
4
|
import { P as o } from "./index-C__OZmYy.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { g as B } from "./createTheme-DYxDnE9u.js";
|
|
8
|
-
import { c as y } from "./capitalize-ciszXJ7R.js";
|
|
5
|
+
import { b as T, g as N, s as C, u as R, c as O, a as B } from "./styled-Bsjp3kFh.js";
|
|
6
|
+
import { c as y } from "./capitalize-quqpGCFu.js";
|
|
9
7
|
function j(e) {
|
|
10
|
-
return
|
|
8
|
+
return T("MuiSvgIcon", e);
|
|
11
9
|
}
|
|
12
|
-
|
|
10
|
+
N("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
13
11
|
const E = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"], M = (e) => {
|
|
14
12
|
const {
|
|
15
13
|
color: t,
|
|
@@ -18,8 +16,8 @@ const E = ["children", "className", "color", "component", "fontSize", "htmlColor
|
|
|
18
16
|
} = e, r = {
|
|
19
17
|
root: ["root", t !== "inherit" && `color${y(t)}`, `fontSize${y(n)}`]
|
|
20
18
|
};
|
|
21
|
-
return
|
|
22
|
-
}, V =
|
|
19
|
+
return B(r, j, i);
|
|
20
|
+
}, V = C("svg", {
|
|
23
21
|
name: "MuiSvgIcon",
|
|
24
22
|
slot: "Root",
|
|
25
23
|
overridesResolver: (e, t) => {
|
|
@@ -32,7 +30,7 @@ const E = ["children", "className", "color", "component", "fontSize", "htmlColor
|
|
|
32
30
|
theme: e,
|
|
33
31
|
ownerState: t
|
|
34
32
|
}) => {
|
|
35
|
-
var n, i, r, f, a, c, p, v, s, l,
|
|
33
|
+
var n, i, r, f, a, c, p, v, s, l, d, h, m, u, g, x, z;
|
|
36
34
|
return {
|
|
37
35
|
userSelect: "none",
|
|
38
36
|
width: "1em",
|
|
@@ -50,14 +48,14 @@ const E = ["children", "className", "color", "component", "fontSize", "htmlColor
|
|
|
50
48
|
large: ((s = e.typography) == null || (l = s.pxToRem) == null ? void 0 : l.call(s, 35)) || "2.1875rem"
|
|
51
49
|
}[t.fontSize],
|
|
52
50
|
// TODO v5 deprecate, v6 remove for sx
|
|
53
|
-
color: (
|
|
54
|
-
action: (u = (e.vars || e).palette) == null || (
|
|
51
|
+
color: (d = (h = (e.vars || e).palette) == null || (m = h[t.color]) == null ? void 0 : m.main) != null ? d : {
|
|
52
|
+
action: (u = (e.vars || e).palette) == null || (g = u.action) == null ? void 0 : g.active,
|
|
55
53
|
disabled: (x = (e.vars || e).palette) == null || (z = x.action) == null ? void 0 : z.disabled,
|
|
56
54
|
inherit: void 0
|
|
57
55
|
}[t.color]
|
|
58
56
|
};
|
|
59
57
|
}), S = /* @__PURE__ */ _.forwardRef(function(t, n) {
|
|
60
|
-
const i =
|
|
58
|
+
const i = R({
|
|
61
59
|
props: t,
|
|
62
60
|
name: "MuiSvgIcon"
|
|
63
61
|
}), {
|
|
@@ -69,27 +67,27 @@ const E = ["children", "className", "color", "component", "fontSize", "htmlColor
|
|
|
69
67
|
htmlColor: v,
|
|
70
68
|
inheritViewBox: s = !1,
|
|
71
69
|
titleAccess: l,
|
|
72
|
-
viewBox:
|
|
73
|
-
} = i,
|
|
70
|
+
viewBox: d = "0 0 24 24"
|
|
71
|
+
} = i, h = b(i, E), m = $({}, i, {
|
|
74
72
|
color: a,
|
|
75
73
|
component: c,
|
|
76
74
|
fontSize: p,
|
|
77
75
|
instanceFontSize: t.fontSize,
|
|
78
76
|
inheritViewBox: s,
|
|
79
|
-
viewBox:
|
|
77
|
+
viewBox: d
|
|
80
78
|
}), u = {};
|
|
81
|
-
s || (u.viewBox =
|
|
82
|
-
const
|
|
83
|
-
return /* @__PURE__ */
|
|
79
|
+
s || (u.viewBox = d);
|
|
80
|
+
const g = M(m);
|
|
81
|
+
return /* @__PURE__ */ I(V, $({
|
|
84
82
|
as: c,
|
|
85
|
-
className:
|
|
83
|
+
className: O(g.root, f),
|
|
86
84
|
focusable: "false",
|
|
87
85
|
color: v,
|
|
88
86
|
"aria-hidden": l ? void 0 : !0,
|
|
89
87
|
role: l ? "img" : void 0,
|
|
90
88
|
ref: n
|
|
91
|
-
}, u,
|
|
92
|
-
ownerState:
|
|
89
|
+
}, u, h, {
|
|
90
|
+
ownerState: m,
|
|
93
91
|
children: [r, l ? /* @__PURE__ */ w("title", {
|
|
94
92
|
children: l
|
|
95
93
|
}) : null]
|
|
@@ -168,7 +166,7 @@ process.env.NODE_ENV !== "production" && (S.propTypes = {
|
|
|
168
166
|
viewBox: o.string
|
|
169
167
|
});
|
|
170
168
|
S.muiName = "SvgIcon";
|
|
171
|
-
function
|
|
169
|
+
function L(e, t) {
|
|
172
170
|
function n(i, r) {
|
|
173
171
|
return /* @__PURE__ */ w(S, $({
|
|
174
172
|
"data-testid": `${t}Icon`,
|
|
@@ -180,5 +178,5 @@ function W(e, t) {
|
|
|
180
178
|
return process.env.NODE_ENV !== "production" && (n.displayName = `${t}Icon`), n.muiName = S.muiName, /* @__PURE__ */ _.memo(/* @__PURE__ */ _.forwardRef(n));
|
|
181
179
|
}
|
|
182
180
|
export {
|
|
183
|
-
|
|
181
|
+
L as c
|
|
184
182
|
};
|
|
@@ -1,47 +1,46 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
1
|
+
import { jsx as s, jsxs as d } from "react/jsx-runtime";
|
|
2
2
|
import { confirmable as x } from "react-confirm";
|
|
3
3
|
import { IconButton as h } from "@mui/material";
|
|
4
4
|
import { Close as C } from "@mui/icons-material";
|
|
5
|
-
import {
|
|
5
|
+
import { b as D, g as T, D as b, a as y, c as B } from "./DialogContent-CGJ7alb8.js";
|
|
6
6
|
import { _ as j, a as v } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
7
|
-
import * as
|
|
7
|
+
import * as p from "react";
|
|
8
8
|
import { P as o } from "./index-C__OZmYy.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { B as m } from "./Button-CvE2gnly.js";
|
|
9
|
+
import { s as M, u as N, c as O, a as R } from "./styled-Bsjp3kFh.js";
|
|
10
|
+
import { T as P } from "./Typography-B-Z5Y0Xq.js";
|
|
11
|
+
import { B as m } from "./Modal-DlB6GH-f.js";
|
|
13
12
|
const _ = ["className", "id"], k = (a) => {
|
|
14
13
|
const {
|
|
15
14
|
classes: t
|
|
16
15
|
} = a;
|
|
17
|
-
return
|
|
16
|
+
return R({
|
|
18
17
|
root: ["root"]
|
|
19
18
|
}, T, t);
|
|
20
|
-
}, w =
|
|
19
|
+
}, w = M(P, {
|
|
21
20
|
name: "MuiDialogTitle",
|
|
22
21
|
slot: "Root",
|
|
23
22
|
overridesResolver: (a, t) => t.root
|
|
24
23
|
})({
|
|
25
24
|
padding: "16px 24px",
|
|
26
25
|
flex: "0 0 auto"
|
|
27
|
-
}), u = /* @__PURE__ */
|
|
28
|
-
const i =
|
|
26
|
+
}), u = /* @__PURE__ */ p.forwardRef(function(t, l) {
|
|
27
|
+
const i = N({
|
|
29
28
|
props: t,
|
|
30
29
|
name: "MuiDialogTitle"
|
|
31
30
|
}), {
|
|
32
31
|
className: e,
|
|
33
32
|
id: n
|
|
34
|
-
} = i,
|
|
33
|
+
} = i, r = j(i, _), c = i, f = k(c), {
|
|
35
34
|
titleId: g = n
|
|
36
|
-
} =
|
|
35
|
+
} = p.useContext(D);
|
|
37
36
|
return /* @__PURE__ */ s(w, v({
|
|
38
37
|
component: "h2",
|
|
39
|
-
className:
|
|
38
|
+
className: O(f.root, e),
|
|
40
39
|
ownerState: c,
|
|
41
|
-
ref:
|
|
40
|
+
ref: l,
|
|
42
41
|
variant: "h6",
|
|
43
42
|
id: n ?? g
|
|
44
|
-
},
|
|
43
|
+
}, r));
|
|
45
44
|
});
|
|
46
45
|
process.env.NODE_ENV !== "production" && (u.propTypes = {
|
|
47
46
|
// ----------------------------- Warning --------------------------------
|
|
@@ -77,19 +76,19 @@ const I = {
|
|
|
77
76
|
show: a = !0,
|
|
78
77
|
proceed: t = () => {
|
|
79
78
|
},
|
|
80
|
-
title:
|
|
79
|
+
title: l,
|
|
81
80
|
description: i,
|
|
82
81
|
options: e
|
|
83
82
|
}) => {
|
|
84
83
|
e = { ...I, ...e };
|
|
85
84
|
const n = () => {
|
|
86
85
|
t(!1);
|
|
87
|
-
},
|
|
86
|
+
}, r = () => {
|
|
88
87
|
t(!1);
|
|
89
88
|
}, c = () => {
|
|
90
89
|
t(!0);
|
|
91
90
|
};
|
|
92
|
-
return /* @__PURE__ */
|
|
91
|
+
return /* @__PURE__ */ d(
|
|
93
92
|
b,
|
|
94
93
|
{
|
|
95
94
|
open: a,
|
|
@@ -115,7 +114,7 @@ const I = {
|
|
|
115
114
|
}
|
|
116
115
|
},
|
|
117
116
|
children: [
|
|
118
|
-
/* @__PURE__ */
|
|
117
|
+
/* @__PURE__ */ d(
|
|
119
118
|
u,
|
|
120
119
|
{
|
|
121
120
|
id: "dialog-title",
|
|
@@ -125,14 +124,14 @@ const I = {
|
|
|
125
124
|
alignItems: "center"
|
|
126
125
|
},
|
|
127
126
|
children: [
|
|
128
|
-
|
|
129
|
-
/* @__PURE__ */ s(h, { onClick:
|
|
127
|
+
l,
|
|
128
|
+
/* @__PURE__ */ s(h, { onClick: r, children: /* @__PURE__ */ s(C, {}) })
|
|
130
129
|
]
|
|
131
130
|
}
|
|
132
131
|
),
|
|
133
132
|
/* @__PURE__ */ s(y, { sx: { minWidth: 400 }, children: i }),
|
|
134
|
-
/* @__PURE__ */
|
|
135
|
-
!e.disableCancelButton && /* @__PURE__ */ s(m, { color: "inherit", onClick:
|
|
133
|
+
/* @__PURE__ */ d(B, { children: [
|
|
134
|
+
!e.disableCancelButton && /* @__PURE__ */ s(m, { color: "inherit", onClick: r, children: e.cancelButtonText }),
|
|
136
135
|
/* @__PURE__ */ s(
|
|
137
136
|
m,
|
|
138
137
|
{
|
|
@@ -147,8 +146,8 @@ const I = {
|
|
|
147
146
|
]
|
|
148
147
|
}
|
|
149
148
|
);
|
|
150
|
-
},
|
|
149
|
+
}, q = x(A);
|
|
151
150
|
export {
|
|
152
|
-
|
|
153
|
-
|
|
151
|
+
q as D,
|
|
152
|
+
u as a
|
|
154
153
|
};
|