@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
|
@@ -2,16 +2,13 @@ import { a as i, _ as k } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
|
2
2
|
import * as a from "react";
|
|
3
3
|
import { r as le } from "./index-BMS1Otro.js";
|
|
4
4
|
import { P as e } from "./index-C__OZmYy.js";
|
|
5
|
-
import { g as L,
|
|
6
|
-
import { s as E } from "./styled-eZwjUruw.js";
|
|
7
|
-
import { g as F, d as ue } from "./createTheme-DYxDnE9u.js";
|
|
5
|
+
import { g as L, b as B, s as E, u as q, i as pe, c as P, a as F } from "./styled-Bsjp3kFh.js";
|
|
8
6
|
import { jsx as g, jsxs as ne } from "react/jsx-runtime";
|
|
9
|
-
import { u as fe, P as me } from "./Paper-
|
|
7
|
+
import { T as ue, u as fe, g as oe, P as me } from "./Paper-q9kKjAKx.js";
|
|
10
8
|
import { u as ge } from "./useControlled-BYdyS7Pn.js";
|
|
11
|
-
import {
|
|
12
|
-
import { e as he, a as xe, B as ye } from "./ButtonBase-2bPw77UP.js";
|
|
9
|
+
import { e as be, a as he, c as xe, B as ye } from "./ButtonBase-sObABYY2.js";
|
|
13
10
|
function Ce(o) {
|
|
14
|
-
return
|
|
11
|
+
return B("MuiCollapse", o);
|
|
15
12
|
}
|
|
16
13
|
L("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
|
|
17
14
|
const Ee = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"], ve = (o) => {
|
|
@@ -25,7 +22,7 @@ const Ee = ["addEndListener", "children", "className", "collapsedSize", "compone
|
|
|
25
22
|
wrapper: ["wrapper", `${n}`],
|
|
26
23
|
wrapperInner: ["wrapperInner", `${n}`]
|
|
27
24
|
};
|
|
28
|
-
return
|
|
25
|
+
return F(s, Ce, r);
|
|
29
26
|
}, Re = E("div", {
|
|
30
27
|
name: "MuiCollapse",
|
|
31
28
|
slot: "Root",
|
|
@@ -78,7 +75,7 @@ const Ee = ["addEndListener", "children", "className", "collapsedSize", "compone
|
|
|
78
75
|
width: "auto",
|
|
79
76
|
height: "100%"
|
|
80
77
|
})), Q = /* @__PURE__ */ a.forwardRef(function(n, r) {
|
|
81
|
-
const s =
|
|
78
|
+
const s = q({
|
|
82
79
|
props: n,
|
|
83
80
|
name: "MuiCollapse"
|
|
84
81
|
}), {
|
|
@@ -97,9 +94,9 @@ const Ee = ["addEndListener", "children", "className", "collapsedSize", "compone
|
|
|
97
94
|
onExiting: m,
|
|
98
95
|
orientation: C = "vertical",
|
|
99
96
|
style: A,
|
|
100
|
-
timeout: h =
|
|
97
|
+
timeout: h = pe.standard,
|
|
101
98
|
// eslint-disable-next-line react/prop-types
|
|
102
|
-
TransitionComponent: H =
|
|
99
|
+
TransitionComponent: H = ue
|
|
103
100
|
} = s, V = k(s, Ee), w = i({}, s, {
|
|
104
101
|
orientation: C,
|
|
105
102
|
collapsedSize: l
|
|
@@ -107,7 +104,7 @@ const Ee = ["addEndListener", "children", "className", "collapsedSize", "compone
|
|
|
107
104
|
a.useEffect(() => () => {
|
|
108
105
|
clearTimeout(Z.current);
|
|
109
106
|
}, []);
|
|
110
|
-
const G = a.useRef(null), te =
|
|
107
|
+
const G = a.useRef(null), te = he(r, G), O = (t) => (p) => {
|
|
111
108
|
if (t) {
|
|
112
109
|
const x = G.current;
|
|
113
110
|
p === void 0 ? t(x) : t(x, p);
|
|
@@ -232,7 +229,7 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
|
|
|
232
229
|
* The component used for the root node.
|
|
233
230
|
* Either a string to use a HTML element or a component.
|
|
234
231
|
*/
|
|
235
|
-
component:
|
|
232
|
+
component: be,
|
|
236
233
|
/**
|
|
237
234
|
* The transition timing function.
|
|
238
235
|
* You may specify a single easing or a object containing enter and exit values.
|
|
@@ -299,7 +296,7 @@ Q.muiSupportAuto = !0;
|
|
|
299
296
|
const X = /* @__PURE__ */ a.createContext({});
|
|
300
297
|
process.env.NODE_ENV !== "production" && (X.displayName = "AccordionContext");
|
|
301
298
|
function we(o) {
|
|
302
|
-
return
|
|
299
|
+
return B("MuiAccordion", o);
|
|
303
300
|
}
|
|
304
301
|
const _ = L("MuiAccordion", ["root", "rounded", "expanded", "disabled", "gutters", "region"]), Ne = ["children", "className", "defaultExpanded", "disabled", "disableGutters", "expanded", "onChange", "square", "TransitionComponent", "TransitionProps"], Se = (o) => {
|
|
305
302
|
const {
|
|
@@ -309,7 +306,7 @@ const _ = L("MuiAccordion", ["root", "rounded", "expanded", "disabled", "gutters
|
|
|
309
306
|
disabled: d,
|
|
310
307
|
disableGutters: u
|
|
311
308
|
} = o;
|
|
312
|
-
return
|
|
309
|
+
return F({
|
|
313
310
|
root: ["root", !r && "rounded", s && "expanded", d && "disabled", !u && "gutters"],
|
|
314
311
|
region: ["region"]
|
|
315
312
|
}, we, n);
|
|
@@ -394,7 +391,7 @@ const _ = L("MuiAccordion", ["root", "rounded", "expanded", "disabled", "gutters
|
|
|
394
391
|
margin: "16px 0"
|
|
395
392
|
}
|
|
396
393
|
})), Me = /* @__PURE__ */ a.forwardRef(function(n, r) {
|
|
397
|
-
const s =
|
|
394
|
+
const s = q({
|
|
398
395
|
props: n,
|
|
399
396
|
name: "MuiAccordion"
|
|
400
397
|
}), {
|
|
@@ -457,7 +454,7 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
457
454
|
/**
|
|
458
455
|
* The content of the component.
|
|
459
456
|
*/
|
|
460
|
-
children:
|
|
457
|
+
children: xe(e.node.isRequired, (o) => {
|
|
461
458
|
const n = a.Children.toArray(o.children)[0];
|
|
462
459
|
return le.isFragment(n) ? new Error("MUI: The Accordion doesn't accept a Fragment as a child. Consider providing an array instead.") : /* @__PURE__ */ a.isValidElement(n) ? null : new Error("MUI: Expected the first child of Accordion to be a valid element.");
|
|
463
460
|
}),
|
|
@@ -518,14 +515,14 @@ process.env.NODE_ENV !== "production" && (Me.propTypes = {
|
|
|
518
515
|
TransitionProps: e.object
|
|
519
516
|
});
|
|
520
517
|
function Oe(o) {
|
|
521
|
-
return
|
|
518
|
+
return B("MuiAccordionDetails", o);
|
|
522
519
|
}
|
|
523
520
|
L("MuiAccordionDetails", ["root"]);
|
|
524
521
|
const De = ["className"], ze = (o) => {
|
|
525
522
|
const {
|
|
526
523
|
classes: n
|
|
527
524
|
} = o;
|
|
528
|
-
return
|
|
525
|
+
return F({
|
|
529
526
|
root: ["root"]
|
|
530
527
|
}, Oe, n);
|
|
531
528
|
}, Ie = E("div", {
|
|
@@ -537,7 +534,7 @@ const De = ["className"], ze = (o) => {
|
|
|
537
534
|
}) => ({
|
|
538
535
|
padding: o.spacing(1, 2, 2)
|
|
539
536
|
})), je = /* @__PURE__ */ a.forwardRef(function(n, r) {
|
|
540
|
-
const s =
|
|
537
|
+
const s = q({
|
|
541
538
|
props: n,
|
|
542
539
|
name: "MuiAccordionDetails"
|
|
543
540
|
}), {
|
|
@@ -572,7 +569,7 @@ process.env.NODE_ENV !== "production" && (je.propTypes = {
|
|
|
572
569
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
573
570
|
});
|
|
574
571
|
function Pe(o) {
|
|
575
|
-
return
|
|
572
|
+
return B("MuiAccordionSummary", o);
|
|
576
573
|
}
|
|
577
574
|
const D = L("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disabled", "gutters", "contentGutters", "content", "expandIconWrapper"]), Ve = ["children", "className", "expandIcon", "focusVisibleClassName", "onClick"], We = (o) => {
|
|
578
575
|
const {
|
|
@@ -581,7 +578,7 @@ const D = L("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
581
578
|
disabled: s,
|
|
582
579
|
disableGutters: d
|
|
583
580
|
} = o;
|
|
584
|
-
return
|
|
581
|
+
return F({
|
|
585
582
|
root: ["root", r && "expanded", s && "disabled", !d && "gutters"],
|
|
586
583
|
focusVisible: ["focusVisible"],
|
|
587
584
|
content: ["content", r && "expanded", !d && "contentGutters"],
|
|
@@ -652,7 +649,7 @@ const D = L("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
652
649
|
transform: "rotate(180deg)"
|
|
653
650
|
}
|
|
654
651
|
})), ke = /* @__PURE__ */ a.forwardRef(function(n, r) {
|
|
655
|
-
const s =
|
|
652
|
+
const s = q({
|
|
656
653
|
props: n,
|
|
657
654
|
name: "MuiAccordionSummary"
|
|
658
655
|
}), {
|
|
@@ -1,43 +1,41 @@
|
|
|
1
1
|
import { a, _ as z } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
2
2
|
import * as B from "react";
|
|
3
3
|
import { P as o } from "./index-C__OZmYy.js";
|
|
4
|
-
import { g as j,
|
|
4
|
+
import { g as j, b as N, s as u, u as L, c as w, a as E } from "./styled-Bsjp3kFh.js";
|
|
5
5
|
import { darken as O, lighten as S } from "@mui/system";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
function so(e) {
|
|
16
|
-
return E("MuiAlert", e);
|
|
6
|
+
import { c as f } from "./createSvgIcon-DX-SqL8M.js";
|
|
7
|
+
import Q, { jsx as r, jsxs as X } from "react/jsx-runtime";
|
|
8
|
+
import { P as Y } from "./Paper-q9kKjAKx.js";
|
|
9
|
+
import { c as k } from "./capitalize-quqpGCFu.js";
|
|
10
|
+
import { I as oo } from "./IconButton-_opV1iNK.js";
|
|
11
|
+
import { T as eo } from "./Typography-B-Z5Y0Xq.js";
|
|
12
|
+
import { r as to, i as so } from "./createSvgIcon-BM3-TsGy.js";
|
|
13
|
+
function ro(e) {
|
|
14
|
+
return N("MuiAlert", e);
|
|
17
15
|
}
|
|
18
|
-
const P = j("MuiAlert", ["root", "action", "icon", "message", "filled", "filledSuccess", "filledInfo", "filledWarning", "filledError", "outlined", "outlinedSuccess", "outlinedInfo", "outlinedWarning", "outlinedError", "standard", "standardSuccess", "standardInfo", "standardWarning", "standardError"]), no = f(/* @__PURE__ */
|
|
16
|
+
const P = j("MuiAlert", ["root", "action", "icon", "message", "filled", "filledSuccess", "filledInfo", "filledWarning", "filledError", "outlined", "outlinedSuccess", "outlinedInfo", "outlinedWarning", "outlinedError", "standard", "standardSuccess", "standardInfo", "standardWarning", "standardError"]), no = f(/* @__PURE__ */ r("path", {
|
|
19
17
|
d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"
|
|
20
|
-
}), "SuccessOutlined"), lo = f(/* @__PURE__ */
|
|
18
|
+
}), "SuccessOutlined"), lo = f(/* @__PURE__ */ r("path", {
|
|
21
19
|
d: "M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
|
|
22
|
-
}), "ReportProblemOutlined"), ao = f(/* @__PURE__ */
|
|
20
|
+
}), "ReportProblemOutlined"), ao = f(/* @__PURE__ */ r("path", {
|
|
23
21
|
d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
|
|
24
|
-
}), "ErrorOutline"),
|
|
22
|
+
}), "ErrorOutline"), co = f(/* @__PURE__ */ r("path", {
|
|
25
23
|
d: "M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"
|
|
26
|
-
}), "InfoOutlined"),
|
|
24
|
+
}), "InfoOutlined"), io = f(/* @__PURE__ */ r("path", {
|
|
27
25
|
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
28
26
|
}), "Close"), po = ["action", "children", "className", "closeText", "color", "components", "componentsProps", "icon", "iconMapping", "onClose", "role", "severity", "slotProps", "slots", "variant"], uo = (e) => {
|
|
29
27
|
const {
|
|
30
28
|
variant: t,
|
|
31
29
|
color: n,
|
|
32
30
|
severity: l,
|
|
33
|
-
classes:
|
|
34
|
-
} = e,
|
|
31
|
+
classes: s
|
|
32
|
+
} = e, c = {
|
|
35
33
|
root: ["root", `${t}${k(n || l)}`, `${t}`],
|
|
36
34
|
icon: ["icon"],
|
|
37
35
|
message: ["message"],
|
|
38
36
|
action: ["action"]
|
|
39
37
|
};
|
|
40
|
-
return
|
|
38
|
+
return E(c, ro, s);
|
|
41
39
|
}, fo = u(Y, {
|
|
42
40
|
name: "MuiAlert",
|
|
43
41
|
slot: "Root",
|
|
@@ -51,37 +49,37 @@ const P = j("MuiAlert", ["root", "action", "icon", "message", "filled", "filledS
|
|
|
51
49
|
theme: e,
|
|
52
50
|
ownerState: t
|
|
53
51
|
}) => {
|
|
54
|
-
const n = e.palette.mode === "light" ? O : S, l = e.palette.mode === "light" ? S : O,
|
|
52
|
+
const n = e.palette.mode === "light" ? O : S, l = e.palette.mode === "light" ? S : O, s = t.color || t.severity;
|
|
55
53
|
return a({}, e.typography.body2, {
|
|
56
54
|
backgroundColor: "transparent",
|
|
57
55
|
display: "flex",
|
|
58
56
|
padding: "6px 16px"
|
|
59
|
-
},
|
|
60
|
-
color: e.vars ? e.vars.palette.Alert[`${
|
|
61
|
-
backgroundColor: e.vars ? e.vars.palette.Alert[`${
|
|
57
|
+
}, s && t.variant === "standard" && {
|
|
58
|
+
color: e.vars ? e.vars.palette.Alert[`${s}Color`] : n(e.palette[s].light, 0.6),
|
|
59
|
+
backgroundColor: e.vars ? e.vars.palette.Alert[`${s}StandardBg`] : l(e.palette[s].light, 0.9),
|
|
62
60
|
[`& .${P.icon}`]: e.vars ? {
|
|
63
|
-
color: e.vars.palette.Alert[`${
|
|
61
|
+
color: e.vars.palette.Alert[`${s}IconColor`]
|
|
64
62
|
} : {
|
|
65
|
-
color: e.palette[
|
|
63
|
+
color: e.palette[s].main
|
|
66
64
|
}
|
|
67
|
-
},
|
|
68
|
-
color: e.vars ? e.vars.palette.Alert[`${
|
|
69
|
-
border: `1px solid ${(e.vars || e).palette[
|
|
65
|
+
}, s && t.variant === "outlined" && {
|
|
66
|
+
color: e.vars ? e.vars.palette.Alert[`${s}Color`] : n(e.palette[s].light, 0.6),
|
|
67
|
+
border: `1px solid ${(e.vars || e).palette[s].light}`,
|
|
70
68
|
[`& .${P.icon}`]: e.vars ? {
|
|
71
|
-
color: e.vars.palette.Alert[`${
|
|
69
|
+
color: e.vars.palette.Alert[`${s}IconColor`]
|
|
72
70
|
} : {
|
|
73
|
-
color: e.palette[
|
|
71
|
+
color: e.palette[s].main
|
|
74
72
|
}
|
|
75
|
-
},
|
|
73
|
+
}, s && t.variant === "filled" && a({
|
|
76
74
|
fontWeight: e.typography.fontWeightMedium
|
|
77
75
|
}, e.vars ? {
|
|
78
|
-
color: e.vars.palette.Alert[`${
|
|
79
|
-
backgroundColor: e.vars.palette.Alert[`${
|
|
76
|
+
color: e.vars.palette.Alert[`${s}FilledColor`],
|
|
77
|
+
backgroundColor: e.vars.palette.Alert[`${s}FilledBg`]
|
|
80
78
|
} : {
|
|
81
|
-
backgroundColor: e.palette.mode === "dark" ? e.palette[
|
|
82
|
-
color: e.palette.getContrastText(e.palette[
|
|
79
|
+
backgroundColor: e.palette.mode === "dark" ? e.palette[s].dark : e.palette[s].main,
|
|
80
|
+
color: e.palette.getContrastText(e.palette[s].main)
|
|
83
81
|
}));
|
|
84
|
-
}),
|
|
82
|
+
}), vo = u("div", {
|
|
85
83
|
name: "MuiAlert",
|
|
86
84
|
slot: "Icon",
|
|
87
85
|
overridesResolver: (e, t) => t.icon
|
|
@@ -91,7 +89,7 @@ const P = j("MuiAlert", ["root", "action", "icon", "message", "filled", "filledS
|
|
|
91
89
|
display: "flex",
|
|
92
90
|
fontSize: 22,
|
|
93
91
|
opacity: 0.9
|
|
94
|
-
}),
|
|
92
|
+
}), go = u("div", {
|
|
95
93
|
name: "MuiAlert",
|
|
96
94
|
slot: "Message",
|
|
97
95
|
overridesResolver: (e, t) => t.message
|
|
@@ -110,21 +108,21 @@ const P = j("MuiAlert", ["root", "action", "icon", "message", "filled", "filledS
|
|
|
110
108
|
marginLeft: "auto",
|
|
111
109
|
marginRight: -8
|
|
112
110
|
}), _ = {
|
|
113
|
-
success: /* @__PURE__ */
|
|
111
|
+
success: /* @__PURE__ */ r(no, {
|
|
114
112
|
fontSize: "inherit"
|
|
115
113
|
}),
|
|
116
|
-
warning: /* @__PURE__ */
|
|
114
|
+
warning: /* @__PURE__ */ r(lo, {
|
|
117
115
|
fontSize: "inherit"
|
|
118
116
|
}),
|
|
119
|
-
error: /* @__PURE__ */
|
|
117
|
+
error: /* @__PURE__ */ r(ao, {
|
|
120
118
|
fontSize: "inherit"
|
|
121
119
|
}),
|
|
122
|
-
info: /* @__PURE__ */
|
|
120
|
+
info: /* @__PURE__ */ r(co, {
|
|
123
121
|
fontSize: "inherit"
|
|
124
122
|
})
|
|
125
123
|
}, mo = /* @__PURE__ */ B.forwardRef(function(t, n) {
|
|
126
|
-
var l,
|
|
127
|
-
const
|
|
124
|
+
var l, s, c, p, v, y;
|
|
125
|
+
const g = L({
|
|
128
126
|
props: t,
|
|
129
127
|
name: "MuiAlert"
|
|
130
128
|
}), {
|
|
@@ -143,41 +141,41 @@ const P = j("MuiAlert", ["root", "action", "icon", "message", "filled", "filledS
|
|
|
143
141
|
slotProps: b = {},
|
|
144
142
|
slots: $ = {},
|
|
145
143
|
variant: D = "standard"
|
|
146
|
-
} =
|
|
144
|
+
} = g, F = z(g, po), i = a({}, g, {
|
|
147
145
|
color: U,
|
|
148
146
|
severity: A,
|
|
149
147
|
variant: D
|
|
150
|
-
}), d = uo(
|
|
148
|
+
}), d = uo(i), Z = (l = (s = $.closeButton) != null ? s : I.CloseButton) != null ? l : oo, G = (c = (p = $.closeIcon) != null ? p : I.CloseIcon) != null ? c : io, J = (v = b.closeButton) != null ? v : M.closeButton, K = (y = b.closeIcon) != null ? y : M.closeIcon;
|
|
151
149
|
return /* @__PURE__ */ X(fo, a({
|
|
152
150
|
role: q,
|
|
153
151
|
elevation: 0,
|
|
154
|
-
ownerState:
|
|
155
|
-
className:
|
|
152
|
+
ownerState: i,
|
|
153
|
+
className: w(d.root, H),
|
|
156
154
|
ref: n
|
|
157
155
|
}, F, {
|
|
158
|
-
children: [T !== !1 ? /* @__PURE__ */
|
|
159
|
-
ownerState:
|
|
156
|
+
children: [T !== !1 ? /* @__PURE__ */ r(vo, {
|
|
157
|
+
ownerState: i,
|
|
160
158
|
className: d.icon,
|
|
161
159
|
children: T || V[A] || _[A]
|
|
162
|
-
}) : null, /* @__PURE__ */
|
|
163
|
-
ownerState:
|
|
160
|
+
}) : null, /* @__PURE__ */ r(go, {
|
|
161
|
+
ownerState: i,
|
|
164
162
|
className: d.message,
|
|
165
163
|
children: W
|
|
166
|
-
}), m != null ? /* @__PURE__ */
|
|
167
|
-
ownerState:
|
|
164
|
+
}), m != null ? /* @__PURE__ */ r(R, {
|
|
165
|
+
ownerState: i,
|
|
168
166
|
className: d.action,
|
|
169
167
|
children: m
|
|
170
|
-
}) : null, m == null && x ? /* @__PURE__ */
|
|
171
|
-
ownerState:
|
|
168
|
+
}) : null, m == null && x ? /* @__PURE__ */ r(R, {
|
|
169
|
+
ownerState: i,
|
|
172
170
|
className: d.action,
|
|
173
|
-
children: /* @__PURE__ */
|
|
171
|
+
children: /* @__PURE__ */ r(Z, a({
|
|
174
172
|
size: "small",
|
|
175
173
|
"aria-label": h,
|
|
176
174
|
title: h,
|
|
177
175
|
color: "inherit",
|
|
178
176
|
onClick: x
|
|
179
177
|
}, J, {
|
|
180
|
-
children: /* @__PURE__ */
|
|
178
|
+
children: /* @__PURE__ */ r(G, a({
|
|
181
179
|
fontSize: "small"
|
|
182
180
|
}, K))
|
|
183
181
|
}))
|
|
@@ -311,14 +309,14 @@ process.env.NODE_ENV !== "production" && (mo.propTypes = {
|
|
|
311
309
|
variant: o.oneOfType([o.oneOf(["filled", "outlined", "standard"]), o.string])
|
|
312
310
|
});
|
|
313
311
|
function Ao(e) {
|
|
314
|
-
return
|
|
312
|
+
return N("MuiAlertTitle", e);
|
|
315
313
|
}
|
|
316
314
|
j("MuiAlertTitle", ["root"]);
|
|
317
315
|
const Co = ["className"], yo = (e) => {
|
|
318
316
|
const {
|
|
319
317
|
classes: t
|
|
320
318
|
} = e;
|
|
321
|
-
return
|
|
319
|
+
return E({
|
|
322
320
|
root: ["root"]
|
|
323
321
|
}, Ao, t);
|
|
324
322
|
}, ho = u(eo, {
|
|
@@ -331,19 +329,19 @@ const Co = ["className"], yo = (e) => {
|
|
|
331
329
|
fontWeight: e.typography.fontWeightMedium,
|
|
332
330
|
marginTop: -2
|
|
333
331
|
})), Io = /* @__PURE__ */ B.forwardRef(function(t, n) {
|
|
334
|
-
const l =
|
|
332
|
+
const l = L({
|
|
335
333
|
props: t,
|
|
336
334
|
name: "MuiAlertTitle"
|
|
337
335
|
}), {
|
|
338
|
-
className:
|
|
339
|
-
} = l,
|
|
340
|
-
return /* @__PURE__ */
|
|
336
|
+
className: s
|
|
337
|
+
} = l, c = z(l, Co), p = l, v = yo(p);
|
|
338
|
+
return /* @__PURE__ */ r(ho, a({
|
|
341
339
|
gutterBottom: !0,
|
|
342
340
|
component: "div",
|
|
343
341
|
ownerState: p,
|
|
344
342
|
ref: n,
|
|
345
|
-
className:
|
|
346
|
-
},
|
|
343
|
+
className: w(v.root, s)
|
|
344
|
+
}, c));
|
|
347
345
|
});
|
|
348
346
|
process.env.NODE_ENV !== "production" && (Io.propTypes = {
|
|
349
347
|
// ----------------------------- Warning --------------------------------
|
|
@@ -367,7 +365,7 @@ process.env.NODE_ENV !== "production" && (Io.propTypes = {
|
|
|
367
365
|
*/
|
|
368
366
|
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
369
367
|
});
|
|
370
|
-
var C = {}, Mo =
|
|
368
|
+
var C = {}, Mo = so;
|
|
371
369
|
Object.defineProperty(C, "__esModule", {
|
|
372
370
|
value: !0
|
|
373
371
|
});
|