@hybridcore/ui 1.6.17 → 1.6.19
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-DUtr16g6.js → AccordionSummary-c6-Buzbq.js} +186 -185
- package/dist/Add-CB4mPrke.js +77 -0
- package/dist/Alert-BsT46Tgd.js +334 -0
- package/dist/{Button-Cem3nbwc.js → Button-BMUZn0cT.js} +3 -3
- package/dist/ButtonBase-DG5J0YgP.js +823 -0
- package/dist/Delete-ofipLwkd.js +23 -0
- package/dist/{FormGroup-BRj1o7-E.js → FormGroup-LH368jad.js} +2 -2
- package/dist/{Delete-CVJ6FeDn.js → IconButton-SJfF1cr9.js} +71 -90
- package/dist/{InputLabel-CjD30ZHz.js → InputLabel-jPm6Xuco.js} +2 -2
- package/dist/{MenuItem-BKvRGLvM.js → MenuItem-BjnnhDbD.js} +5 -5
- package/dist/{Modal-BVYydOr5.js → Modal-Djf5pMjD.js} +10 -9
- package/dist/{Paper-B1HV8GyO.js → Paper-BFDcMa0t.js} +99 -99
- package/dist/{Select-Bfhvigsx.js → Select-nL91eUH9.js} +16 -15
- package/dist/{SwitchBase-BEK49kdS.js → SwitchBase-BcJAJYsB.js} +4 -4
- package/dist/{TextField-Ca9ykixI.js → TextField-Db63_GNb.js} +19 -19
- package/dist/TransitionGroupContext-C_aW1Tei.js +37 -0
- package/dist/{Typography-D3X-Y5fh.js → Typography-B_LKrxyI.js} +2 -2
- package/dist/components/button/styled.js +1 -1
- package/dist/components/charts/forecast-cone/index.js +108 -48
- package/dist/components/charts/forecast-cone/logic.js +271 -191
- package/dist/components/charts/forecast-cone/styled.js +26 -5
- package/dist/components/collapsible-card/index.js +2 -2
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/color-picker/index.js +5 -5
- package/dist/components/color-picker/styled.js +1 -1
- package/dist/components/confirm/dialog.js +2 -2
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/data-security-selectors/dissemination-list/index.js +1 -1
- package/dist/components/duration-select/index.js +1 -1
- package/dist/components/duration-select/styled.js +1 -1
- package/dist/components/instance-hierarchy-table/styled.js +1 -1
- package/dist/components/range-selector/components/enum-range/index.js +66 -0
- package/dist/components/range-selector/index.js +40 -30
- package/dist/components/range-selector/styled.js +11 -11
- package/dist/components/sortable-list/index.js +3 -3
- package/dist/components/template-form/components/property-list/index.js +30 -28
- package/dist/components/template-form/components/property-list/property-list-columns.js +23 -22
- package/dist/components/template-form/components/property-list/property-list-form.js +264 -223
- package/dist/components/template-form/components/recognition-property-list/index.js +16 -15
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +4 -3
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +7 -7
- package/dist/components/tree-select/index.js +1 -1
- package/dist/{createSvgIcon-D7U1nd99.js → createSvgIcon-Bx0mTP6n.js} +2 -2
- package/dist/{createSvgIcon-BghzB2Y9.js → createSvgIcon-jKAqRXE2.js} +8 -8
- package/dist/{dialog-BtJhjyF5.js → dialog-CNxZ7uox.js} +6 -6
- package/dist/main.d.ts +44 -1
- package/dist/{generateUtilityClasses-Cc-owZ4J.js → styled-Ckq8ALHh.js} +907 -905
- package/dist/{styled-DD4BkuVf.js → styled-DObpn_Bi.js} +5 -5
- package/dist/useIsFocusVisible-BHPF-Pml.js +69 -0
- package/dist/{useSlot-u4t0X96G.js → useSlot-gpKOd92R.js} +3 -3
- package/dist/useTimeout-CM6EsHyp.js +60 -0
- package/package.json +1 -1
- package/dist/Add-Bk8R160M.js +0 -403
- package/dist/ButtonBase-DObmf4Q_.js +0 -886
- package/dist/TransitionGroupContext-Ja2CgIob.js +0 -96
- package/dist/{extends-C3382pL0.js → objectWithoutPropertiesLoose-DJteAcBH.js} +9 -9
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { styled as l, Box as h, ButtonBase as U } from "@mui/material";
|
|
2
|
-
import { a as i, _ as D } from "./
|
|
2
|
+
import { a as i, _ as D } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
3
3
|
import * as d from "react";
|
|
4
4
|
import { P as e } from "./index-CblbdqjE.js";
|
|
5
5
|
import { c as F } from "./clsx-OuTLNxxd.js";
|
|
6
|
-
import { s as f, r as I, g as H, a as G, b as u, d as V, u as W, c as q } from "./
|
|
7
|
-
import { S as L } from "./SwitchBase-
|
|
8
|
-
import { c as z } from "./createSvgIcon-
|
|
6
|
+
import { s as f, r as I, g as H, a as G, b as u, d as V, u as W, c as q } from "./styled-Ckq8ALHh.js";
|
|
7
|
+
import { S as L } from "./SwitchBase-BcJAJYsB.js";
|
|
8
|
+
import { c as z } from "./createSvgIcon-Bx0mTP6n.js";
|
|
9
9
|
import { jsx as s, jsxs as Z } from "react/jsx-runtime";
|
|
10
10
|
import { c as A } from "./createChainedFunction-C0nujS3O.js";
|
|
11
|
-
import { r as J } from "./TransitionGroupContext-
|
|
11
|
+
import { r as J } from "./TransitionGroupContext-C_aW1Tei.js";
|
|
12
12
|
const P = /* @__PURE__ */ d.createContext(void 0);
|
|
13
13
|
process.env.NODE_ENV !== "production" && (P.displayName = "RadioGroupContext");
|
|
14
14
|
function K() {
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import * as a from "react";
|
|
2
|
+
import { T as o } from "./useTimeout-CM6EsHyp.js";
|
|
3
|
+
let n = !0, s = !1;
|
|
4
|
+
const c = new o(), f = {
|
|
5
|
+
text: !0,
|
|
6
|
+
search: !0,
|
|
7
|
+
url: !0,
|
|
8
|
+
tel: !0,
|
|
9
|
+
email: !0,
|
|
10
|
+
password: !0,
|
|
11
|
+
number: !0,
|
|
12
|
+
date: !0,
|
|
13
|
+
month: !0,
|
|
14
|
+
week: !0,
|
|
15
|
+
time: !0,
|
|
16
|
+
datetime: !0,
|
|
17
|
+
"datetime-local": !0
|
|
18
|
+
};
|
|
19
|
+
function d(e) {
|
|
20
|
+
const {
|
|
21
|
+
type: t,
|
|
22
|
+
tagName: r
|
|
23
|
+
} = e;
|
|
24
|
+
return !!(r === "INPUT" && f[t] && !e.readOnly || r === "TEXTAREA" && !e.readOnly || e.isContentEditable);
|
|
25
|
+
}
|
|
26
|
+
function h(e) {
|
|
27
|
+
e.metaKey || e.altKey || e.ctrlKey || (n = !0);
|
|
28
|
+
}
|
|
29
|
+
function i() {
|
|
30
|
+
n = !1;
|
|
31
|
+
}
|
|
32
|
+
function y() {
|
|
33
|
+
this.visibilityState === "hidden" && s && (n = !0);
|
|
34
|
+
}
|
|
35
|
+
function m(e) {
|
|
36
|
+
e.addEventListener("keydown", h, !0), e.addEventListener("mousedown", i, !0), e.addEventListener("pointerdown", i, !0), e.addEventListener("touchstart", i, !0), e.addEventListener("visibilitychange", y, !0);
|
|
37
|
+
}
|
|
38
|
+
function b(e) {
|
|
39
|
+
const {
|
|
40
|
+
target: t
|
|
41
|
+
} = e;
|
|
42
|
+
try {
|
|
43
|
+
return t.matches(":focus-visible");
|
|
44
|
+
} catch {
|
|
45
|
+
}
|
|
46
|
+
return n || d(t);
|
|
47
|
+
}
|
|
48
|
+
function w() {
|
|
49
|
+
const e = a.useCallback((u) => {
|
|
50
|
+
u != null && m(u.ownerDocument);
|
|
51
|
+
}, []), t = a.useRef(!1);
|
|
52
|
+
function r() {
|
|
53
|
+
return t.current ? (s = !0, c.start(100, () => {
|
|
54
|
+
s = !1;
|
|
55
|
+
}), t.current = !1, !0) : !1;
|
|
56
|
+
}
|
|
57
|
+
function l(u) {
|
|
58
|
+
return b(u) ? (t.current = !0, !0) : !1;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
isFocusVisibleRef: t,
|
|
62
|
+
onFocus: l,
|
|
63
|
+
onBlur: r,
|
|
64
|
+
ref: e
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
export {
|
|
68
|
+
w as u
|
|
69
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as s, a as n } from "./
|
|
2
|
-
import { r as v, m as b, a as j } from "./Paper-
|
|
3
|
-
import { u as k } from "./
|
|
1
|
+
import { _ as s, a as n } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
2
|
+
import { r as v, m as b, a as j } from "./Paper-BFDcMa0t.js";
|
|
3
|
+
import { u as k } from "./useTimeout-CM6EsHyp.js";
|
|
4
4
|
const E = ["className", "elementType", "ownerState", "externalForwardedProps", "getSlotOwnerState", "internalForwardedProps"], L = ["component", "slots", "slotProps"], N = ["component"];
|
|
5
5
|
function z(o, e) {
|
|
6
6
|
const {
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as u from "react";
|
|
2
|
+
function s(t, e) {
|
|
3
|
+
typeof t == "function" ? t(e) : t && (t.current = e);
|
|
4
|
+
}
|
|
5
|
+
const i = typeof window < "u" ? u.useLayoutEffect : u.useEffect;
|
|
6
|
+
function l(t) {
|
|
7
|
+
const e = u.useRef(t);
|
|
8
|
+
return i(() => {
|
|
9
|
+
e.current = t;
|
|
10
|
+
}), u.useRef((...n) => (
|
|
11
|
+
// @ts-expect-error hide `this`
|
|
12
|
+
(0, e.current)(...n)
|
|
13
|
+
)).current;
|
|
14
|
+
}
|
|
15
|
+
function d(...t) {
|
|
16
|
+
return u.useMemo(() => t.every((e) => e == null) ? null : (e) => {
|
|
17
|
+
t.forEach((n) => {
|
|
18
|
+
s(n, e);
|
|
19
|
+
});
|
|
20
|
+
}, t);
|
|
21
|
+
}
|
|
22
|
+
const c = {};
|
|
23
|
+
function o(t, e) {
|
|
24
|
+
const n = u.useRef(c);
|
|
25
|
+
return n.current === c && (n.current = t(e)), n;
|
|
26
|
+
}
|
|
27
|
+
const f = [];
|
|
28
|
+
function a(t) {
|
|
29
|
+
u.useEffect(t, f);
|
|
30
|
+
}
|
|
31
|
+
class r {
|
|
32
|
+
constructor() {
|
|
33
|
+
this.currentId = null, this.clear = () => {
|
|
34
|
+
this.currentId !== null && (clearTimeout(this.currentId), this.currentId = null);
|
|
35
|
+
}, this.disposeEffect = () => this.clear;
|
|
36
|
+
}
|
|
37
|
+
static create() {
|
|
38
|
+
return new r();
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Executes `fn` after `delay`, clearing any previously scheduled call.
|
|
42
|
+
*/
|
|
43
|
+
start(e, n) {
|
|
44
|
+
this.clear(), this.currentId = setTimeout(() => {
|
|
45
|
+
this.currentId = null, n();
|
|
46
|
+
}, e);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function h() {
|
|
50
|
+
const t = o(r.create).current;
|
|
51
|
+
return a(t.disposeEffect), t;
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
r as T,
|
|
55
|
+
i as a,
|
|
56
|
+
h as b,
|
|
57
|
+
l as c,
|
|
58
|
+
s,
|
|
59
|
+
d as u
|
|
60
|
+
};
|
package/package.json
CHANGED
package/dist/Add-Bk8R160M.js
DELETED
|
@@ -1,403 +0,0 @@
|
|
|
1
|
-
import { a as l, _ as j } from "./extends-C3382pL0.js";
|
|
2
|
-
import * as P from "react";
|
|
3
|
-
import { P as e } from "./index-CblbdqjE.js";
|
|
4
|
-
import { c as R } from "./clsx-OuTLNxxd.js";
|
|
5
|
-
import { g as w, a as z, s as d, b as m, k as M, l as I, u as N, c as _, i as Z } from "./generateUtilityClasses-Cc-owZ4J.js";
|
|
6
|
-
import { u as x } from "./useSlot-u4t0X96G.js";
|
|
7
|
-
import { c as u } from "./createSvgIcon-D7U1nd99.js";
|
|
8
|
-
import G, { jsx as s, jsxs as J } from "react/jsx-runtime";
|
|
9
|
-
import { P as K } from "./Paper-B1HV8GyO.js";
|
|
10
|
-
import { I as Q } from "./Delete-CVJ6FeDn.js";
|
|
11
|
-
import { T as X } from "./Typography-D3X-Y5fh.js";
|
|
12
|
-
import { r as Y } from "./createSvgIcon-BghzB2Y9.js";
|
|
13
|
-
function ee(o) {
|
|
14
|
-
return z("MuiAlert", o);
|
|
15
|
-
}
|
|
16
|
-
const O = w("MuiAlert", ["root", "action", "icon", "message", "filled", "colorSuccess", "colorInfo", "colorWarning", "colorError", "filledSuccess", "filledInfo", "filledWarning", "filledError", "outlined", "outlinedSuccess", "outlinedInfo", "outlinedWarning", "outlinedError", "standard", "standardSuccess", "standardInfo", "standardWarning", "standardError"]), oe = u(/* @__PURE__ */ s("path", {
|
|
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"
|
|
18
|
-
}), "SuccessOutlined"), te = u(/* @__PURE__ */ s("path", {
|
|
19
|
-
d: "M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
|
|
20
|
-
}), "ReportProblemOutlined"), re = u(/* @__PURE__ */ s("path", {
|
|
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"
|
|
22
|
-
}), "ErrorOutline"), se = u(/* @__PURE__ */ s("path", {
|
|
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"
|
|
24
|
-
}), "InfoOutlined"), ne = u(/* @__PURE__ */ s("path", {
|
|
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"
|
|
26
|
-
}), "Close"), le = ["action", "children", "className", "closeText", "color", "components", "componentsProps", "icon", "iconMapping", "onClose", "role", "severity", "slotProps", "slots", "variant"], ae = (o) => {
|
|
27
|
-
const {
|
|
28
|
-
variant: r,
|
|
29
|
-
color: n,
|
|
30
|
-
severity: t,
|
|
31
|
-
classes: i
|
|
32
|
-
} = o, c = {
|
|
33
|
-
root: ["root", `color${m(n || t)}`, `${r}${m(n || t)}`, `${r}`],
|
|
34
|
-
icon: ["icon"],
|
|
35
|
-
message: ["message"],
|
|
36
|
-
action: ["action"]
|
|
37
|
-
};
|
|
38
|
-
return _(c, ee, i);
|
|
39
|
-
}, ie = d(K, {
|
|
40
|
-
name: "MuiAlert",
|
|
41
|
-
slot: "Root",
|
|
42
|
-
overridesResolver: (o, r) => {
|
|
43
|
-
const {
|
|
44
|
-
ownerState: n
|
|
45
|
-
} = o;
|
|
46
|
-
return [r.root, r[n.variant], r[`${n.variant}${m(n.color || n.severity)}`]];
|
|
47
|
-
}
|
|
48
|
-
})(({
|
|
49
|
-
theme: o
|
|
50
|
-
}) => {
|
|
51
|
-
const r = o.palette.mode === "light" ? M : I, n = o.palette.mode === "light" ? I : M;
|
|
52
|
-
return l({}, o.typography.body2, {
|
|
53
|
-
backgroundColor: "transparent",
|
|
54
|
-
display: "flex",
|
|
55
|
-
padding: "6px 16px",
|
|
56
|
-
variants: [...Object.entries(o.palette).filter(([, t]) => t.main && t.light).map(([t]) => ({
|
|
57
|
-
props: {
|
|
58
|
-
colorSeverity: t,
|
|
59
|
-
variant: "standard"
|
|
60
|
-
},
|
|
61
|
-
style: {
|
|
62
|
-
color: o.vars ? o.vars.palette.Alert[`${t}Color`] : r(o.palette[t].light, 0.6),
|
|
63
|
-
backgroundColor: o.vars ? o.vars.palette.Alert[`${t}StandardBg`] : n(o.palette[t].light, 0.9),
|
|
64
|
-
[`& .${O.icon}`]: o.vars ? {
|
|
65
|
-
color: o.vars.palette.Alert[`${t}IconColor`]
|
|
66
|
-
} : {
|
|
67
|
-
color: o.palette[t].main
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
})), ...Object.entries(o.palette).filter(([, t]) => t.main && t.light).map(([t]) => ({
|
|
71
|
-
props: {
|
|
72
|
-
colorSeverity: t,
|
|
73
|
-
variant: "outlined"
|
|
74
|
-
},
|
|
75
|
-
style: {
|
|
76
|
-
color: o.vars ? o.vars.palette.Alert[`${t}Color`] : r(o.palette[t].light, 0.6),
|
|
77
|
-
border: `1px solid ${(o.vars || o).palette[t].light}`,
|
|
78
|
-
[`& .${O.icon}`]: o.vars ? {
|
|
79
|
-
color: o.vars.palette.Alert[`${t}IconColor`]
|
|
80
|
-
} : {
|
|
81
|
-
color: o.palette[t].main
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
})), ...Object.entries(o.palette).filter(([, t]) => t.main && t.dark).map(([t]) => ({
|
|
85
|
-
props: {
|
|
86
|
-
colorSeverity: t,
|
|
87
|
-
variant: "filled"
|
|
88
|
-
},
|
|
89
|
-
style: l({
|
|
90
|
-
fontWeight: o.typography.fontWeightMedium
|
|
91
|
-
}, o.vars ? {
|
|
92
|
-
color: o.vars.palette.Alert[`${t}FilledColor`],
|
|
93
|
-
backgroundColor: o.vars.palette.Alert[`${t}FilledBg`]
|
|
94
|
-
} : {
|
|
95
|
-
backgroundColor: o.palette.mode === "dark" ? o.palette[t].dark : o.palette[t].main,
|
|
96
|
-
color: o.palette.getContrastText(o.palette[t].main)
|
|
97
|
-
})
|
|
98
|
-
}))]
|
|
99
|
-
});
|
|
100
|
-
}), ce = d("div", {
|
|
101
|
-
name: "MuiAlert",
|
|
102
|
-
slot: "Icon",
|
|
103
|
-
overridesResolver: (o, r) => r.icon
|
|
104
|
-
})({
|
|
105
|
-
marginRight: 12,
|
|
106
|
-
padding: "7px 0",
|
|
107
|
-
display: "flex",
|
|
108
|
-
fontSize: 22,
|
|
109
|
-
opacity: 0.9
|
|
110
|
-
}), pe = d("div", {
|
|
111
|
-
name: "MuiAlert",
|
|
112
|
-
slot: "Message",
|
|
113
|
-
overridesResolver: (o, r) => r.message
|
|
114
|
-
})({
|
|
115
|
-
padding: "8px 0",
|
|
116
|
-
minWidth: 0,
|
|
117
|
-
overflow: "auto"
|
|
118
|
-
}), b = d("div", {
|
|
119
|
-
name: "MuiAlert",
|
|
120
|
-
slot: "Action",
|
|
121
|
-
overridesResolver: (o, r) => r.action
|
|
122
|
-
})({
|
|
123
|
-
display: "flex",
|
|
124
|
-
alignItems: "flex-start",
|
|
125
|
-
padding: "4px 0 0 16px",
|
|
126
|
-
marginLeft: "auto",
|
|
127
|
-
marginRight: -8
|
|
128
|
-
}), $ = {
|
|
129
|
-
success: /* @__PURE__ */ s(oe, {
|
|
130
|
-
fontSize: "inherit"
|
|
131
|
-
}),
|
|
132
|
-
warning: /* @__PURE__ */ s(te, {
|
|
133
|
-
fontSize: "inherit"
|
|
134
|
-
}),
|
|
135
|
-
error: /* @__PURE__ */ s(re, {
|
|
136
|
-
fontSize: "inherit"
|
|
137
|
-
}),
|
|
138
|
-
info: /* @__PURE__ */ s(se, {
|
|
139
|
-
fontSize: "inherit"
|
|
140
|
-
})
|
|
141
|
-
}, de = /* @__PURE__ */ P.forwardRef(function(r, n) {
|
|
142
|
-
const t = N({
|
|
143
|
-
props: r,
|
|
144
|
-
name: "MuiAlert"
|
|
145
|
-
}), {
|
|
146
|
-
action: i,
|
|
147
|
-
children: c,
|
|
148
|
-
className: f,
|
|
149
|
-
closeText: g = "Close",
|
|
150
|
-
color: A,
|
|
151
|
-
components: C = {},
|
|
152
|
-
componentsProps: B = {},
|
|
153
|
-
icon: S,
|
|
154
|
-
iconMapping: L = $,
|
|
155
|
-
onClose: T,
|
|
156
|
-
role: k = "alert",
|
|
157
|
-
severity: v = "success",
|
|
158
|
-
slotProps: E = {},
|
|
159
|
-
slots: W = {},
|
|
160
|
-
variant: H = "standard"
|
|
161
|
-
} = t, U = j(t, le), a = l({}, t, {
|
|
162
|
-
color: A,
|
|
163
|
-
severity: v,
|
|
164
|
-
variant: H,
|
|
165
|
-
colorSeverity: A || v
|
|
166
|
-
}), p = ae(a), h = {
|
|
167
|
-
slots: l({
|
|
168
|
-
closeButton: C.CloseButton,
|
|
169
|
-
closeIcon: C.CloseIcon
|
|
170
|
-
}, W),
|
|
171
|
-
slotProps: l({}, B, E)
|
|
172
|
-
}, [V, D] = x("closeButton", {
|
|
173
|
-
elementType: Q,
|
|
174
|
-
externalForwardedProps: h,
|
|
175
|
-
ownerState: a
|
|
176
|
-
}), [q, F] = x("closeIcon", {
|
|
177
|
-
elementType: ne,
|
|
178
|
-
externalForwardedProps: h,
|
|
179
|
-
ownerState: a
|
|
180
|
-
});
|
|
181
|
-
return /* @__PURE__ */ J(ie, l({
|
|
182
|
-
role: k,
|
|
183
|
-
elevation: 0,
|
|
184
|
-
ownerState: a,
|
|
185
|
-
className: R(p.root, f),
|
|
186
|
-
ref: n
|
|
187
|
-
}, U, {
|
|
188
|
-
children: [S !== !1 ? /* @__PURE__ */ s(ce, {
|
|
189
|
-
ownerState: a,
|
|
190
|
-
className: p.icon,
|
|
191
|
-
children: S || L[v] || $[v]
|
|
192
|
-
}) : null, /* @__PURE__ */ s(pe, {
|
|
193
|
-
ownerState: a,
|
|
194
|
-
className: p.message,
|
|
195
|
-
children: c
|
|
196
|
-
}), i != null ? /* @__PURE__ */ s(b, {
|
|
197
|
-
ownerState: a,
|
|
198
|
-
className: p.action,
|
|
199
|
-
children: i
|
|
200
|
-
}) : null, i == null && T ? /* @__PURE__ */ s(b, {
|
|
201
|
-
ownerState: a,
|
|
202
|
-
className: p.action,
|
|
203
|
-
children: /* @__PURE__ */ s(V, l({
|
|
204
|
-
size: "small",
|
|
205
|
-
"aria-label": g,
|
|
206
|
-
title: g,
|
|
207
|
-
color: "inherit",
|
|
208
|
-
onClick: T
|
|
209
|
-
}, D, {
|
|
210
|
-
children: /* @__PURE__ */ s(q, l({
|
|
211
|
-
fontSize: "small"
|
|
212
|
-
}, F))
|
|
213
|
-
}))
|
|
214
|
-
}) : null]
|
|
215
|
-
}));
|
|
216
|
-
});
|
|
217
|
-
process.env.NODE_ENV !== "production" && (de.propTypes = {
|
|
218
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
219
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
220
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
221
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
222
|
-
/**
|
|
223
|
-
* The action to display. It renders after the message, at the end of the alert.
|
|
224
|
-
*/
|
|
225
|
-
action: e.node,
|
|
226
|
-
/**
|
|
227
|
-
* The content of the component.
|
|
228
|
-
*/
|
|
229
|
-
children: e.node,
|
|
230
|
-
/**
|
|
231
|
-
* Override or extend the styles applied to the component.
|
|
232
|
-
*/
|
|
233
|
-
classes: e.object,
|
|
234
|
-
/**
|
|
235
|
-
* @ignore
|
|
236
|
-
*/
|
|
237
|
-
className: e.string,
|
|
238
|
-
/**
|
|
239
|
-
* Override the default label for the *close popup* icon button.
|
|
240
|
-
*
|
|
241
|
-
* For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
|
|
242
|
-
* @default 'Close'
|
|
243
|
-
*/
|
|
244
|
-
closeText: e.string,
|
|
245
|
-
/**
|
|
246
|
-
* The color of the component. Unless provided, the value is taken from the `severity` prop.
|
|
247
|
-
* It supports both default and custom theme colors, which can be added as shown in the
|
|
248
|
-
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
249
|
-
*/
|
|
250
|
-
color: e.oneOfType([e.oneOf(["error", "info", "success", "warning"]), e.string]),
|
|
251
|
-
/**
|
|
252
|
-
* The components used for each slot inside.
|
|
253
|
-
*
|
|
254
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
255
|
-
*
|
|
256
|
-
* @default {}
|
|
257
|
-
*/
|
|
258
|
-
components: e.shape({
|
|
259
|
-
CloseButton: e.elementType,
|
|
260
|
-
CloseIcon: e.elementType
|
|
261
|
-
}),
|
|
262
|
-
/**
|
|
263
|
-
* The extra props for the slot components.
|
|
264
|
-
* You can override the existing props or add new ones.
|
|
265
|
-
*
|
|
266
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
267
|
-
*
|
|
268
|
-
* @default {}
|
|
269
|
-
*/
|
|
270
|
-
componentsProps: e.shape({
|
|
271
|
-
closeButton: e.object,
|
|
272
|
-
closeIcon: e.object
|
|
273
|
-
}),
|
|
274
|
-
/**
|
|
275
|
-
* Override the icon displayed before the children.
|
|
276
|
-
* Unless provided, the icon is mapped to the value of the `severity` prop.
|
|
277
|
-
* Set to `false` to remove the `icon`.
|
|
278
|
-
*/
|
|
279
|
-
icon: e.node,
|
|
280
|
-
/**
|
|
281
|
-
* The component maps the `severity` prop to a range of different icons,
|
|
282
|
-
* for instance success to `<SuccessOutlined>`.
|
|
283
|
-
* If you wish to change this mapping, you can provide your own.
|
|
284
|
-
* Alternatively, you can use the `icon` prop to override the icon displayed.
|
|
285
|
-
*/
|
|
286
|
-
iconMapping: e.shape({
|
|
287
|
-
error: e.node,
|
|
288
|
-
info: e.node,
|
|
289
|
-
success: e.node,
|
|
290
|
-
warning: e.node
|
|
291
|
-
}),
|
|
292
|
-
/**
|
|
293
|
-
* Callback fired when the component requests to be closed.
|
|
294
|
-
* When provided and no `action` prop is set, a close icon button is displayed that triggers the callback when clicked.
|
|
295
|
-
* @param {React.SyntheticEvent} event The event source of the callback.
|
|
296
|
-
*/
|
|
297
|
-
onClose: e.func,
|
|
298
|
-
/**
|
|
299
|
-
* The ARIA role attribute of the element.
|
|
300
|
-
* @default 'alert'
|
|
301
|
-
*/
|
|
302
|
-
role: e.string,
|
|
303
|
-
/**
|
|
304
|
-
* The severity of the alert. This defines the color and icon used.
|
|
305
|
-
* @default 'success'
|
|
306
|
-
*/
|
|
307
|
-
severity: e.oneOfType([e.oneOf(["error", "info", "success", "warning"]), e.string]),
|
|
308
|
-
/**
|
|
309
|
-
* The props used for each slot inside.
|
|
310
|
-
* @default {}
|
|
311
|
-
*/
|
|
312
|
-
slotProps: e.shape({
|
|
313
|
-
closeButton: e.oneOfType([e.func, e.object]),
|
|
314
|
-
closeIcon: e.oneOfType([e.func, e.object])
|
|
315
|
-
}),
|
|
316
|
-
/**
|
|
317
|
-
* The components used for each slot inside.
|
|
318
|
-
* @default {}
|
|
319
|
-
*/
|
|
320
|
-
slots: e.shape({
|
|
321
|
-
closeButton: e.elementType,
|
|
322
|
-
closeIcon: e.elementType
|
|
323
|
-
}),
|
|
324
|
-
/**
|
|
325
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
326
|
-
*/
|
|
327
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
328
|
-
/**
|
|
329
|
-
* The variant to use.
|
|
330
|
-
* @default 'standard'
|
|
331
|
-
*/
|
|
332
|
-
variant: e.oneOfType([e.oneOf(["filled", "outlined", "standard"]), e.string])
|
|
333
|
-
});
|
|
334
|
-
function ue(o) {
|
|
335
|
-
return z("MuiAlertTitle", o);
|
|
336
|
-
}
|
|
337
|
-
w("MuiAlertTitle", ["root"]);
|
|
338
|
-
const fe = ["className"], ge = (o) => {
|
|
339
|
-
const {
|
|
340
|
-
classes: r
|
|
341
|
-
} = o;
|
|
342
|
-
return _({
|
|
343
|
-
root: ["root"]
|
|
344
|
-
}, ue, r);
|
|
345
|
-
}, ve = d(X, {
|
|
346
|
-
name: "MuiAlertTitle",
|
|
347
|
-
slot: "Root",
|
|
348
|
-
overridesResolver: (o, r) => r.root
|
|
349
|
-
})(({
|
|
350
|
-
theme: o
|
|
351
|
-
}) => ({
|
|
352
|
-
fontWeight: o.typography.fontWeightMedium,
|
|
353
|
-
marginTop: -2
|
|
354
|
-
})), me = /* @__PURE__ */ P.forwardRef(function(r, n) {
|
|
355
|
-
const t = N({
|
|
356
|
-
props: r,
|
|
357
|
-
name: "MuiAlertTitle"
|
|
358
|
-
}), {
|
|
359
|
-
className: i
|
|
360
|
-
} = t, c = j(t, fe), f = t, g = ge(f);
|
|
361
|
-
return /* @__PURE__ */ s(ve, l({
|
|
362
|
-
gutterBottom: !0,
|
|
363
|
-
component: "div",
|
|
364
|
-
ownerState: f,
|
|
365
|
-
ref: n,
|
|
366
|
-
className: R(g.root, i)
|
|
367
|
-
}, c));
|
|
368
|
-
});
|
|
369
|
-
process.env.NODE_ENV !== "production" && (me.propTypes = {
|
|
370
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
371
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
372
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
373
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
374
|
-
/**
|
|
375
|
-
* The content of the component.
|
|
376
|
-
*/
|
|
377
|
-
children: e.node,
|
|
378
|
-
/**
|
|
379
|
-
* Override or extend the styles applied to the component.
|
|
380
|
-
*/
|
|
381
|
-
classes: e.object,
|
|
382
|
-
/**
|
|
383
|
-
* @ignore
|
|
384
|
-
*/
|
|
385
|
-
className: e.string,
|
|
386
|
-
/**
|
|
387
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
388
|
-
*/
|
|
389
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
390
|
-
});
|
|
391
|
-
var y = {}, ye = Z;
|
|
392
|
-
Object.defineProperty(y, "__esModule", {
|
|
393
|
-
value: !0
|
|
394
|
-
});
|
|
395
|
-
var Ae = y.default = void 0, Ce = ye(Y()), Se = G;
|
|
396
|
-
Ae = y.default = (0, Ce.default)(/* @__PURE__ */ (0, Se.jsx)("path", {
|
|
397
|
-
d: "M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"
|
|
398
|
-
}), "Add");
|
|
399
|
-
export {
|
|
400
|
-
de as A,
|
|
401
|
-
me as a,
|
|
402
|
-
Ae as d
|
|
403
|
-
};
|