@hybridcore/ui 1.0.2 → 1.1.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/ButtonBase-BYmh3G5j.js +967 -0
- package/dist/CardContent-C8PxkJz4.js +73 -0
- package/dist/Checkbox-DostZSwR.js +673 -0
- package/dist/DialogContent-2aPOjKE7.js +2025 -0
- package/dist/FormControl-BiAFm76F.js +1491 -0
- package/dist/IconButton-CQJ8wZE8.js +183 -0
- package/dist/Input-Bf5G3tFN.js +324 -0
- package/dist/OutlinedInput-BEVE8VZQ.js +452 -0
- package/dist/Paper-CaiWdndQ.js +162 -0
- package/dist/Select-DxpxZbJp.js +2526 -0
- package/dist/Source-CnCcu5UP.js +4374 -0
- package/dist/Text-BT5kPHOo.js +2192 -0
- package/dist/Typography-XIiVCSto.js +178 -0
- package/dist/assertThisInitialized-BUtkG-md.js +13 -0
- package/dist/assets/index.css +1 -0
- package/dist/assets/index2.css +1 -0
- package/dist/chainPropTypes-DtBfUj5o.js +96 -0
- package/dist/components/access/helpers.js +32 -0
- package/dist/components/access/index.js +15 -0
- package/dist/components/card/index.js +159 -469
- package/dist/components/card/styled.js +75 -7
- package/dist/components/conditional-wrapper/index.js +9 -0
- package/dist/components/confirm/dialog.js +151 -0
- package/dist/components/confirm/index.js +23 -0
- package/dist/components/container/index.js +270 -0
- package/dist/components/context-menu/index.js +973 -0
- package/dist/components/data-management/instance-form/components/composite-list/index.js +12 -0
- package/dist/components/data-management/instance-form/components/composite-list/styled.js +64 -0
- package/dist/components/data-management/instance-form/components/policy-list/index.js +86 -0
- package/dist/components/data-management/instance-form/components/variable/index.js +15 -0
- package/dist/components/data-management/instance-form/components/variables/index.js +39 -0
- package/dist/components/data-management/instance-form/index.js +437 -0
- package/dist/components/data-security-selectors/dissemination-list/index.js +3201 -0
- package/dist/components/data-security-selectors/security-level/index.js +81 -0
- package/dist/components/date-time-picker/index.js +103 -0
- package/dist/components/geometry-picker/coordinate/index.js +93 -0
- package/dist/components/geometry-picker/edit/index.js +71 -0
- package/dist/components/geometry-picker/geometry/index.js +160 -0
- package/dist/components/geometry-picker/geometry/map-overlay.js +22 -0
- package/dist/components/geometry-picker/index.js +140 -0
- package/dist/components/geometry-picker/kml/index.js +62 -0
- package/dist/components/geometry-picker/kml/select-input-method.js +75 -0
- package/dist/components/geometry-picker/logic.js +69 -0
- package/dist/components/geometry-picker/map/index.js +42 -0
- package/dist/components/geometry-picker/map/logic.js +2360 -0
- package/dist/components/geometry-picker/map/style.js +88 -0
- package/dist/components/geometry-picker/parser/coordinate-input/index.js +78 -0
- package/dist/components/geometry-picker/parser/coordinate-input/logic.js +1305 -0
- package/dist/components/geometry-picker/parser/index.js +179 -0
- package/dist/components/geometry-picker/parser/logic.js +84 -0
- package/dist/components/geometry-picker/parser/styled.js +25 -0
- package/dist/components/geometry-picker/styled.js +48 -0
- package/dist/components/geometry-picker/wkt/index.js +59 -0
- package/dist/components/geometry-picker/wkt/select-input-method.js +75 -0
- package/dist/components/icon-button/index.js +18 -0
- package/dist/components/icon-button/styled.js +51 -0
- package/dist/components/key-protection/index.js +4 -0
- package/dist/components/key-protection/menu.js +85 -0
- package/dist/components/key-protection/utils.js +10 -0
- package/dist/components/loading/index.js +7 -0
- package/dist/components/loading/styled.js +16 -0
- package/dist/components/map/helpers/kml.js +45 -0
- package/dist/components/map/helpers/mapbox.js +48 -0
- package/dist/components/map/helpers/ol.js +25 -0
- package/dist/components/map/helpers/wkt.js +29 -0
- package/dist/components/map/index.js +8 -0
- package/dist/components/map/logic.js +140 -0
- package/dist/components/map/styled.js +8 -0
- package/dist/components/phone-input/index.js +25 -0
- package/dist/components/phone-input/styled.js +26 -0
- package/dist/components/search-input/index.js +76 -0
- package/dist/components/tree-select/index.js +70 -0
- package/dist/components/tree-select/styled.js +64 -0
- package/dist/components/treeview-filter/index.js +621 -0
- package/dist/components/treeview-filter/item/index.js +7 -0
- package/dist/components/treeview-filter/item-label/index.js +44 -0
- package/dist/createTheme-agWfFD64.js +2392 -0
- package/dist/exactProp-CI8dagM-.js +36 -0
- package/dist/extends-C3382pL0.js +22 -0
- package/dist/has-9_asnBxn.js +688 -0
- package/dist/hooks/useMenuLogic.js +21 -0
- package/dist/hooks/useToggle.js +23 -0
- package/dist/index-Bw_m9ult.js +1105 -0
- package/dist/index-IvOfmM1F.js +34 -0
- package/dist/index-wW2D1aTG.js +957 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/isMuiElement-CxT3_ACP.js +13 -0
- package/dist/listItemTextClasses-BvXFz-Oc.js +132 -0
- package/dist/main.d.ts +1317 -0
- package/dist/main.js +41 -2
- package/dist/ol-DXmSLlWv.js +15041 -0
- package/dist/ownerDocument-CUrv0DIK.js +6 -0
- package/dist/ownerWindow-niciwP7I.js +7 -0
- package/dist/styled-C43K9x7T.js +229 -0
- package/dist/styled-Iq9jsO4F.js +1033 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/useId-BHG98T5I.js +26 -0
- package/dist/useTheme-C0Dky5rV.js +17 -0
- package/dist/useTheme-CeyGVuQP.js +10 -0
- package/dist/useThemeProps-CzAjOL6F.js +26 -0
- package/dist/utils/ontology.js +37 -0
- package/dist/utils-Bq0ye5vf.js +115 -0
- package/dist/utils-DLpkeyhZ.js +365 -0
- package/package.json +26 -5
- package/dist/styled-BG5UIpPU.js +0 -3459
|
@@ -1,9 +1,77 @@
|
|
|
1
|
-
import "@mui/material";
|
|
2
|
-
import {
|
|
1
|
+
import { Card as t, Box as o } from "@mui/material";
|
|
2
|
+
import { s as i } from "../../styled-Iq9jsO4F.js";
|
|
3
|
+
const s = i(t, {
|
|
4
|
+
name: "SNCard",
|
|
5
|
+
// The component name
|
|
6
|
+
slot: "root"
|
|
7
|
+
// The slot name
|
|
8
|
+
})(() => ({
|
|
9
|
+
position: "relative",
|
|
10
|
+
"&:hover .extra-actions": {
|
|
11
|
+
visibility: "visible",
|
|
12
|
+
opacity: 1
|
|
13
|
+
}
|
|
14
|
+
})), d = i(o, {
|
|
15
|
+
name: "SNCard",
|
|
16
|
+
slot: "extraActions"
|
|
17
|
+
})(({ theme: a }) => ({
|
|
18
|
+
position: "absolute",
|
|
19
|
+
top: 0,
|
|
20
|
+
right: 0,
|
|
21
|
+
display: "flex",
|
|
22
|
+
gap: a.spacing(1),
|
|
23
|
+
padding: a.spacing(1.5),
|
|
24
|
+
visibility: "hidden",
|
|
25
|
+
opacity: 0,
|
|
26
|
+
transition: "0.3s all"
|
|
27
|
+
})), p = i(t, {
|
|
28
|
+
name: "SNCard",
|
|
29
|
+
// The component name
|
|
30
|
+
slot: "root"
|
|
31
|
+
// The slot name
|
|
32
|
+
})(({ theme: a }) => ({
|
|
33
|
+
display: "flex",
|
|
34
|
+
padding: a.spacing(1.5),
|
|
35
|
+
gap: a.spacing(3),
|
|
36
|
+
"& .MuiCardMedia-root": {
|
|
37
|
+
borderRadius: a.shape.borderRadius
|
|
38
|
+
},
|
|
39
|
+
"& .MuiCardContent-root, & .MuiCardContent-root:last-child": {
|
|
40
|
+
display: "flex",
|
|
41
|
+
flex: 1,
|
|
42
|
+
gap: a.spacing(3),
|
|
43
|
+
padding: 0,
|
|
44
|
+
margin: 0
|
|
45
|
+
}
|
|
46
|
+
})), l = i(o, {
|
|
47
|
+
name: "SNCard",
|
|
48
|
+
// The component name
|
|
49
|
+
slot: "infoBox"
|
|
50
|
+
// The slot name
|
|
51
|
+
})(({ theme: a }) => ({
|
|
52
|
+
display: "flex",
|
|
53
|
+
flexDirection: "column",
|
|
54
|
+
width: 260,
|
|
55
|
+
paddingLeft: a.spacing(2),
|
|
56
|
+
paddingRight: a.spacing(2),
|
|
57
|
+
gap: a.spacing(0.5),
|
|
58
|
+
alignItems: "center",
|
|
59
|
+
borderLeft: "1px solid",
|
|
60
|
+
borderColor: a.palette.divider,
|
|
61
|
+
boxSizing: "border-box"
|
|
62
|
+
})), c = i(o, {
|
|
63
|
+
name: "SNCard",
|
|
64
|
+
slot: "extraActions"
|
|
65
|
+
})(({ theme: a }) => ({
|
|
66
|
+
display: "flex",
|
|
67
|
+
gap: a.spacing(1),
|
|
68
|
+
marginTop: a.spacing(1),
|
|
69
|
+
marginBottom: a.spacing(1)
|
|
70
|
+
}));
|
|
3
71
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
72
|
+
c as LandscapeCardExtraActions,
|
|
73
|
+
p as LandscapeCardRoot,
|
|
74
|
+
l as LandscapeInfoBox,
|
|
75
|
+
d as PortraitCardExtraActions,
|
|
76
|
+
s as PortraitCardRoot
|
|
9
77
|
};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { jsx as s, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { confirmable as x } from "react-confirm";
|
|
3
|
+
import { IconButton as C } from "@mui/material";
|
|
4
|
+
import { Close as D } from "@mui/icons-material";
|
|
5
|
+
import { c as h, g as T, D as b, a as y, b as B, B as p } from "../../DialogContent-2aPOjKE7.js";
|
|
6
|
+
import { _ as j, a as v } from "../../extends-C3382pL0.js";
|
|
7
|
+
import * as u from "react";
|
|
8
|
+
import { P as o } from "../../createTheme-agWfFD64.js";
|
|
9
|
+
import { u as M, c as N, a as O } from "../../chainPropTypes-DtBfUj5o.js";
|
|
10
|
+
import { s as R } from "../../styled-Iq9jsO4F.js";
|
|
11
|
+
import { T as P } from "../../Typography-XIiVCSto.js";
|
|
12
|
+
const _ = ["className", "id"], k = (a) => {
|
|
13
|
+
const {
|
|
14
|
+
classes: t
|
|
15
|
+
} = a;
|
|
16
|
+
return O({
|
|
17
|
+
root: ["root"]
|
|
18
|
+
}, T, t);
|
|
19
|
+
}, w = R(P, {
|
|
20
|
+
name: "MuiDialogTitle",
|
|
21
|
+
slot: "Root",
|
|
22
|
+
overridesResolver: (a, t) => t.root
|
|
23
|
+
})({
|
|
24
|
+
padding: "16px 24px",
|
|
25
|
+
flex: "0 0 auto"
|
|
26
|
+
}), m = /* @__PURE__ */ u.forwardRef(function(t, l) {
|
|
27
|
+
const i = M({
|
|
28
|
+
props: t,
|
|
29
|
+
name: "MuiDialogTitle"
|
|
30
|
+
}), {
|
|
31
|
+
className: e,
|
|
32
|
+
id: n
|
|
33
|
+
} = i, r = j(i, _), c = i, f = k(c), {
|
|
34
|
+
titleId: g = n
|
|
35
|
+
} = u.useContext(h);
|
|
36
|
+
return /* @__PURE__ */ s(w, v({
|
|
37
|
+
component: "h2",
|
|
38
|
+
className: N(f.root, e),
|
|
39
|
+
ownerState: c,
|
|
40
|
+
ref: l,
|
|
41
|
+
variant: "h6",
|
|
42
|
+
id: n ?? g
|
|
43
|
+
}, r));
|
|
44
|
+
});
|
|
45
|
+
process.env.NODE_ENV !== "production" && (m.propTypes = {
|
|
46
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
47
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
48
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
49
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
50
|
+
/**
|
|
51
|
+
* The content of the component.
|
|
52
|
+
*/
|
|
53
|
+
children: o.node,
|
|
54
|
+
/**
|
|
55
|
+
* Override or extend the styles applied to the component.
|
|
56
|
+
*/
|
|
57
|
+
classes: o.object,
|
|
58
|
+
/**
|
|
59
|
+
* @ignore
|
|
60
|
+
*/
|
|
61
|
+
className: o.string,
|
|
62
|
+
/**
|
|
63
|
+
* @ignore
|
|
64
|
+
*/
|
|
65
|
+
id: o.string,
|
|
66
|
+
/**
|
|
67
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
68
|
+
*/
|
|
69
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
70
|
+
});
|
|
71
|
+
const A = {
|
|
72
|
+
confirmButtonText: "OK",
|
|
73
|
+
cancelButtonText: "Cancel",
|
|
74
|
+
disableCancelButton: !1
|
|
75
|
+
}, I = ({
|
|
76
|
+
show: a = !0,
|
|
77
|
+
proceed: t = () => {
|
|
78
|
+
},
|
|
79
|
+
title: l,
|
|
80
|
+
description: i,
|
|
81
|
+
options: e
|
|
82
|
+
}) => {
|
|
83
|
+
e = { ...A, ...e };
|
|
84
|
+
const n = () => {
|
|
85
|
+
t(!1);
|
|
86
|
+
}, r = () => {
|
|
87
|
+
t(!1);
|
|
88
|
+
}, c = () => {
|
|
89
|
+
t(!0);
|
|
90
|
+
};
|
|
91
|
+
return /* @__PURE__ */ d(
|
|
92
|
+
b,
|
|
93
|
+
{
|
|
94
|
+
open: a,
|
|
95
|
+
onClose: n,
|
|
96
|
+
"aria-labelledby": "dialog-title",
|
|
97
|
+
"aria-describedby": "dialog-description",
|
|
98
|
+
sx: {
|
|
99
|
+
"& .MuiDialog-paper": {
|
|
100
|
+
borderRadius: 3
|
|
101
|
+
},
|
|
102
|
+
"& .MuiDialogTitle-root": {
|
|
103
|
+
px: 4,
|
|
104
|
+
py: 3
|
|
105
|
+
},
|
|
106
|
+
"& .MuiDialogContent-root": {
|
|
107
|
+
p: 4,
|
|
108
|
+
pt: 0
|
|
109
|
+
},
|
|
110
|
+
"& .MuiDialogActions-root": {
|
|
111
|
+
p: 4,
|
|
112
|
+
background: "#0439910A"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
children: [
|
|
116
|
+
/* @__PURE__ */ d(
|
|
117
|
+
m,
|
|
118
|
+
{
|
|
119
|
+
id: "dialog-title",
|
|
120
|
+
sx: {
|
|
121
|
+
display: "flex",
|
|
122
|
+
justifyContent: "space-between",
|
|
123
|
+
alignItems: "center"
|
|
124
|
+
},
|
|
125
|
+
children: [
|
|
126
|
+
l,
|
|
127
|
+
/* @__PURE__ */ s(C, { onClick: r, children: /* @__PURE__ */ s(D, {}) })
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
),
|
|
131
|
+
/* @__PURE__ */ s(y, { sx: { minWidth: 400 }, children: i }),
|
|
132
|
+
/* @__PURE__ */ d(B, { children: [
|
|
133
|
+
!e.disableCancelButton && /* @__PURE__ */ s(p, { color: "inherit", onClick: r, children: e.cancelButtonText }),
|
|
134
|
+
/* @__PURE__ */ s(
|
|
135
|
+
p,
|
|
136
|
+
{
|
|
137
|
+
variant: "contained",
|
|
138
|
+
color: "primary",
|
|
139
|
+
onClick: c,
|
|
140
|
+
autoFocus: !0,
|
|
141
|
+
children: e.confirmButtonText
|
|
142
|
+
}
|
|
143
|
+
)
|
|
144
|
+
] })
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
);
|
|
148
|
+
}, z = x(I);
|
|
149
|
+
export {
|
|
150
|
+
z as default
|
|
151
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createConfirmation as r } from "react-confirm";
|
|
2
|
+
import i from "./dialog.js";
|
|
3
|
+
const o = r(i);
|
|
4
|
+
function f(t, n, e = {
|
|
5
|
+
cancelButtonText: "Cancel",
|
|
6
|
+
confirmButtonText: "OK",
|
|
7
|
+
disableCancelButton: !1
|
|
8
|
+
}) {
|
|
9
|
+
return o({ title: t, description: n, options: e });
|
|
10
|
+
}
|
|
11
|
+
function l(t, n) {
|
|
12
|
+
return o({
|
|
13
|
+
title: t,
|
|
14
|
+
description: n,
|
|
15
|
+
options: {
|
|
16
|
+
disableCancelButton: !0
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
l as alert,
|
|
22
|
+
f as confirm
|
|
23
|
+
};
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import { jsx as n, jsxs as C } from "react/jsx-runtime";
|
|
2
|
+
import { _ as g, a as i } from "../../extends-C3382pL0.js";
|
|
3
|
+
import * as T from "react";
|
|
4
|
+
import { P as e } from "../../createTheme-agWfFD64.js";
|
|
5
|
+
import { g as N, u as P, c as x, b as S, a as H } from "../../chainPropTypes-DtBfUj5o.js";
|
|
6
|
+
import { g as R, s as h } from "../../styled-Iq9jsO4F.js";
|
|
7
|
+
import { P as E } from "../../Paper-CaiWdndQ.js";
|
|
8
|
+
import { T as b } from "../../Typography-XIiVCSto.js";
|
|
9
|
+
import { C as $ } from "../../CardContent-C8PxkJz4.js";
|
|
10
|
+
function D(r) {
|
|
11
|
+
return R("MuiCard", r);
|
|
12
|
+
}
|
|
13
|
+
N("MuiCard", ["root"]);
|
|
14
|
+
const k = ["className", "raised"], z = (r) => {
|
|
15
|
+
const {
|
|
16
|
+
classes: o
|
|
17
|
+
} = r;
|
|
18
|
+
return H({
|
|
19
|
+
root: ["root"]
|
|
20
|
+
}, D, o);
|
|
21
|
+
}, I = h(E, {
|
|
22
|
+
name: "MuiCard",
|
|
23
|
+
slot: "Root",
|
|
24
|
+
overridesResolver: (r, o) => o.root
|
|
25
|
+
})(() => ({
|
|
26
|
+
overflow: "hidden"
|
|
27
|
+
})), w = /* @__PURE__ */ T.forwardRef(function(o, t) {
|
|
28
|
+
const a = P({
|
|
29
|
+
props: o,
|
|
30
|
+
name: "MuiCard"
|
|
31
|
+
}), {
|
|
32
|
+
className: d,
|
|
33
|
+
raised: s = !1
|
|
34
|
+
} = a, c = g(a, k), p = i({}, a, {
|
|
35
|
+
raised: s
|
|
36
|
+
}), u = z(p);
|
|
37
|
+
return /* @__PURE__ */ n(I, i({
|
|
38
|
+
className: x(u.root, d),
|
|
39
|
+
elevation: s ? 8 : void 0,
|
|
40
|
+
ref: t,
|
|
41
|
+
ownerState: p
|
|
42
|
+
}, c));
|
|
43
|
+
});
|
|
44
|
+
process.env.NODE_ENV !== "production" && (w.propTypes = {
|
|
45
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
46
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
47
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
48
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
49
|
+
/**
|
|
50
|
+
* The content of the component.
|
|
51
|
+
*/
|
|
52
|
+
children: e.node,
|
|
53
|
+
/**
|
|
54
|
+
* Override or extend the styles applied to the component.
|
|
55
|
+
*/
|
|
56
|
+
classes: e.object,
|
|
57
|
+
/**
|
|
58
|
+
* @ignore
|
|
59
|
+
*/
|
|
60
|
+
className: e.string,
|
|
61
|
+
/**
|
|
62
|
+
* If `true`, the card will use raised styling.
|
|
63
|
+
* @default false
|
|
64
|
+
*/
|
|
65
|
+
raised: S(e.bool, (r) => r.raised && r.variant === "outlined" ? new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.') : null),
|
|
66
|
+
/**
|
|
67
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
68
|
+
*/
|
|
69
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
70
|
+
});
|
|
71
|
+
function V(r) {
|
|
72
|
+
return R("MuiCardHeader", r);
|
|
73
|
+
}
|
|
74
|
+
const v = N("MuiCardHeader", ["root", "avatar", "action", "content", "title", "subheader"]), W = ["action", "avatar", "className", "component", "disableTypography", "subheader", "subheaderTypographyProps", "title", "titleTypographyProps"], B = (r) => {
|
|
75
|
+
const {
|
|
76
|
+
classes: o
|
|
77
|
+
} = r;
|
|
78
|
+
return H({
|
|
79
|
+
root: ["root"],
|
|
80
|
+
avatar: ["avatar"],
|
|
81
|
+
action: ["action"],
|
|
82
|
+
content: ["content"],
|
|
83
|
+
title: ["title"],
|
|
84
|
+
subheader: ["subheader"]
|
|
85
|
+
}, V, o);
|
|
86
|
+
}, L = h("div", {
|
|
87
|
+
name: "MuiCardHeader",
|
|
88
|
+
slot: "Root",
|
|
89
|
+
overridesResolver: (r, o) => i({
|
|
90
|
+
[`& .${v.title}`]: o.title,
|
|
91
|
+
[`& .${v.subheader}`]: o.subheader
|
|
92
|
+
}, o.root)
|
|
93
|
+
})({
|
|
94
|
+
display: "flex",
|
|
95
|
+
alignItems: "center",
|
|
96
|
+
padding: 16
|
|
97
|
+
}), q = h("div", {
|
|
98
|
+
name: "MuiCardHeader",
|
|
99
|
+
slot: "Avatar",
|
|
100
|
+
overridesResolver: (r, o) => o.avatar
|
|
101
|
+
})({
|
|
102
|
+
display: "flex",
|
|
103
|
+
flex: "0 0 auto",
|
|
104
|
+
marginRight: 16
|
|
105
|
+
}), F = h("div", {
|
|
106
|
+
name: "MuiCardHeader",
|
|
107
|
+
slot: "Action",
|
|
108
|
+
overridesResolver: (r, o) => o.action
|
|
109
|
+
})({
|
|
110
|
+
flex: "0 0 auto",
|
|
111
|
+
alignSelf: "flex-start",
|
|
112
|
+
marginTop: -4,
|
|
113
|
+
marginRight: -8,
|
|
114
|
+
marginBottom: -4
|
|
115
|
+
}), G = h("div", {
|
|
116
|
+
name: "MuiCardHeader",
|
|
117
|
+
slot: "Content",
|
|
118
|
+
overridesResolver: (r, o) => o.content
|
|
119
|
+
})({
|
|
120
|
+
flex: "1 1 auto"
|
|
121
|
+
}), M = /* @__PURE__ */ T.forwardRef(function(o, t) {
|
|
122
|
+
const a = P({
|
|
123
|
+
props: o,
|
|
124
|
+
name: "MuiCardHeader"
|
|
125
|
+
}), {
|
|
126
|
+
action: d,
|
|
127
|
+
avatar: s,
|
|
128
|
+
className: c,
|
|
129
|
+
component: p = "div",
|
|
130
|
+
disableTypography: u = !1,
|
|
131
|
+
subheader: j,
|
|
132
|
+
subheaderTypographyProps: A,
|
|
133
|
+
title: O,
|
|
134
|
+
titleTypographyProps: U
|
|
135
|
+
} = a, _ = g(a, W), m = i({}, a, {
|
|
136
|
+
component: p,
|
|
137
|
+
disableTypography: u
|
|
138
|
+
}), l = B(m);
|
|
139
|
+
let y = O;
|
|
140
|
+
y != null && y.type !== b && !u && (y = /* @__PURE__ */ n(b, i({
|
|
141
|
+
variant: s ? "body2" : "h5",
|
|
142
|
+
className: l.title,
|
|
143
|
+
component: "span",
|
|
144
|
+
display: "block"
|
|
145
|
+
}, U, {
|
|
146
|
+
children: y
|
|
147
|
+
})));
|
|
148
|
+
let f = j;
|
|
149
|
+
return f != null && f.type !== b && !u && (f = /* @__PURE__ */ n(b, i({
|
|
150
|
+
variant: s ? "body2" : "body1",
|
|
151
|
+
className: l.subheader,
|
|
152
|
+
color: "text.secondary",
|
|
153
|
+
component: "span",
|
|
154
|
+
display: "block"
|
|
155
|
+
}, A, {
|
|
156
|
+
children: f
|
|
157
|
+
}))), /* @__PURE__ */ C(L, i({
|
|
158
|
+
className: x(l.root, c),
|
|
159
|
+
as: p,
|
|
160
|
+
ref: t,
|
|
161
|
+
ownerState: m
|
|
162
|
+
}, _, {
|
|
163
|
+
children: [s && /* @__PURE__ */ n(q, {
|
|
164
|
+
className: l.avatar,
|
|
165
|
+
ownerState: m,
|
|
166
|
+
children: s
|
|
167
|
+
}), /* @__PURE__ */ C(G, {
|
|
168
|
+
className: l.content,
|
|
169
|
+
ownerState: m,
|
|
170
|
+
children: [y, f]
|
|
171
|
+
}), d && /* @__PURE__ */ n(F, {
|
|
172
|
+
className: l.action,
|
|
173
|
+
ownerState: m,
|
|
174
|
+
children: d
|
|
175
|
+
})]
|
|
176
|
+
}));
|
|
177
|
+
});
|
|
178
|
+
process.env.NODE_ENV !== "production" && (M.propTypes = {
|
|
179
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
180
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
181
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
182
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
183
|
+
/**
|
|
184
|
+
* The action to display in the card header.
|
|
185
|
+
*/
|
|
186
|
+
action: e.node,
|
|
187
|
+
/**
|
|
188
|
+
* The Avatar element to display.
|
|
189
|
+
*/
|
|
190
|
+
avatar: e.node,
|
|
191
|
+
/**
|
|
192
|
+
* @ignore
|
|
193
|
+
*/
|
|
194
|
+
children: e.node,
|
|
195
|
+
/**
|
|
196
|
+
* Override or extend the styles applied to the component.
|
|
197
|
+
*/
|
|
198
|
+
classes: e.object,
|
|
199
|
+
/**
|
|
200
|
+
* @ignore
|
|
201
|
+
*/
|
|
202
|
+
className: e.string,
|
|
203
|
+
/**
|
|
204
|
+
* The component used for the root node.
|
|
205
|
+
* Either a string to use a HTML element or a component.
|
|
206
|
+
*/
|
|
207
|
+
component: e.elementType,
|
|
208
|
+
/**
|
|
209
|
+
* If `true`, `subheader` and `title` won't be wrapped by a Typography component.
|
|
210
|
+
* This can be useful to render an alternative Typography variant by wrapping
|
|
211
|
+
* the `title` text, and optional `subheader` text
|
|
212
|
+
* with the Typography component.
|
|
213
|
+
* @default false
|
|
214
|
+
*/
|
|
215
|
+
disableTypography: e.bool,
|
|
216
|
+
/**
|
|
217
|
+
* The content of the component.
|
|
218
|
+
*/
|
|
219
|
+
subheader: e.node,
|
|
220
|
+
/**
|
|
221
|
+
* These props will be forwarded to the subheader
|
|
222
|
+
* (as long as disableTypography is not `true`).
|
|
223
|
+
*/
|
|
224
|
+
subheaderTypographyProps: e.object,
|
|
225
|
+
/**
|
|
226
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
227
|
+
*/
|
|
228
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
229
|
+
/**
|
|
230
|
+
* The content of the component.
|
|
231
|
+
*/
|
|
232
|
+
title: e.node,
|
|
233
|
+
/**
|
|
234
|
+
* These props will be forwarded to the title
|
|
235
|
+
* (as long as disableTypography is not `true`).
|
|
236
|
+
*/
|
|
237
|
+
titleTypographyProps: e.object
|
|
238
|
+
});
|
|
239
|
+
const re = ({
|
|
240
|
+
disableHeader: r,
|
|
241
|
+
sx: o,
|
|
242
|
+
headerSx: t,
|
|
243
|
+
contentSx: a,
|
|
244
|
+
elevation: d = 4,
|
|
245
|
+
children: s,
|
|
246
|
+
...c
|
|
247
|
+
}) => /* @__PURE__ */ C(w, { elevation: d, sx: o, children: [
|
|
248
|
+
!r && /* @__PURE__ */ n(
|
|
249
|
+
M,
|
|
250
|
+
{
|
|
251
|
+
sx: [
|
|
252
|
+
{ p: 3, pb: 0 },
|
|
253
|
+
...Array.isArray(t) ? t : [t]
|
|
254
|
+
],
|
|
255
|
+
titleTypographyProps: { sx: { fontSize: "1rem", fontWeight: 500 } },
|
|
256
|
+
subheaderTypographyProps: { sx: { fontSize: ".875rem" } },
|
|
257
|
+
...c
|
|
258
|
+
}
|
|
259
|
+
),
|
|
260
|
+
/* @__PURE__ */ n(
|
|
261
|
+
$,
|
|
262
|
+
{
|
|
263
|
+
sx: [{ p: 3 }, ...Array.isArray(a) ? a : [a]],
|
|
264
|
+
children: s
|
|
265
|
+
}
|
|
266
|
+
)
|
|
267
|
+
] });
|
|
268
|
+
export {
|
|
269
|
+
re as Container
|
|
270
|
+
};
|