@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
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
import { styled as
|
|
2
|
-
const
|
|
3
|
-
name: "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
})(({ theme: a }) => ({
|
|
1
|
+
import { styled as t, Card as i, Box as r, Typography as n, Skeleton as l } from "@mui/material";
|
|
2
|
+
const a = (e) => e !== "ownerState", s = t(i, {
|
|
3
|
+
name: "HCCardAlternate",
|
|
4
|
+
slot: "root",
|
|
5
|
+
shouldForwardProp: a
|
|
6
|
+
})(({ theme: e }) => ({
|
|
8
7
|
position: "relative",
|
|
9
8
|
display: "flex",
|
|
10
|
-
padding:
|
|
11
|
-
paddingTop:
|
|
12
|
-
gap:
|
|
9
|
+
padding: e.spacing(3),
|
|
10
|
+
paddingTop: e.spacing(6),
|
|
11
|
+
gap: e.spacing(2),
|
|
13
12
|
"& .MuiCardMedia-root": {
|
|
14
|
-
borderRadius:
|
|
13
|
+
borderRadius: e.shape.borderRadius
|
|
15
14
|
},
|
|
16
15
|
"& .MuiCardContent-root, & .MuiCardContent-root:last-child": {
|
|
17
16
|
display: "flex",
|
|
18
17
|
flex: 1,
|
|
19
|
-
gap:
|
|
18
|
+
gap: e.spacing(3),
|
|
20
19
|
padding: 0,
|
|
21
20
|
margin: 0
|
|
22
21
|
},
|
|
@@ -24,10 +23,17 @@ const r = i(t, {
|
|
|
24
23
|
visibility: "visible",
|
|
25
24
|
opacity: 1
|
|
26
25
|
}
|
|
27
|
-
})),
|
|
28
|
-
name: "
|
|
29
|
-
slot: "
|
|
30
|
-
|
|
26
|
+
})), p = t(r, {
|
|
27
|
+
name: "HCCardAlternate",
|
|
28
|
+
slot: "body",
|
|
29
|
+
shouldForwardProp: a
|
|
30
|
+
})({
|
|
31
|
+
flex: 1
|
|
32
|
+
}), C = t(r, {
|
|
33
|
+
name: "HCCardAlternate",
|
|
34
|
+
slot: "menuContainer",
|
|
35
|
+
shouldForwardProp: a
|
|
36
|
+
})({
|
|
31
37
|
position: "absolute",
|
|
32
38
|
top: 8,
|
|
33
39
|
right: 8,
|
|
@@ -38,8 +44,96 @@ const r = i(t, {
|
|
|
38
44
|
visibility: "hidden",
|
|
39
45
|
opacity: 0,
|
|
40
46
|
transition: "0.3s all"
|
|
41
|
-
})
|
|
47
|
+
}), c = t(r, {
|
|
48
|
+
name: "HCCardAlternate",
|
|
49
|
+
slot: "headerRow",
|
|
50
|
+
shouldForwardProp: a
|
|
51
|
+
})({
|
|
52
|
+
display: "flex",
|
|
53
|
+
alignItems: "center"
|
|
54
|
+
}), b = t(r, {
|
|
55
|
+
name: "HCCardAlternate",
|
|
56
|
+
slot: "avatarContainer",
|
|
57
|
+
shouldForwardProp: a
|
|
58
|
+
})(({ theme: e }) => ({
|
|
59
|
+
marginRight: e.spacing(2)
|
|
60
|
+
})), g = t(r, {
|
|
61
|
+
name: "HCCardAlternate",
|
|
62
|
+
slot: "titleColumn",
|
|
63
|
+
shouldForwardProp: a
|
|
64
|
+
})({
|
|
65
|
+
width: "100%",
|
|
66
|
+
minWidth: 0
|
|
67
|
+
}), w = t(n, {
|
|
68
|
+
name: "HCCardAlternate",
|
|
69
|
+
slot: "title",
|
|
70
|
+
shouldForwardProp: a
|
|
71
|
+
})(({ ownerState: e }) => ({
|
|
72
|
+
marginBottom: 0,
|
|
73
|
+
overflow: "hidden",
|
|
74
|
+
textOverflow: "ellipsis",
|
|
75
|
+
display: "-webkit-box",
|
|
76
|
+
WebkitLineClamp: 3,
|
|
77
|
+
WebkitBoxOrient: "vertical",
|
|
78
|
+
cursor: e.clickable ? "pointer" : "default",
|
|
79
|
+
lineHeight: "22px",
|
|
80
|
+
overflowWrap: "break-word",
|
|
81
|
+
wordBreak: "break-word"
|
|
82
|
+
})), A = t(n, {
|
|
83
|
+
name: "HCCardAlternate",
|
|
84
|
+
slot: "subTitle",
|
|
85
|
+
shouldForwardProp: a
|
|
86
|
+
})(({ theme: e }) => ({
|
|
87
|
+
color: e.palette.text.secondary,
|
|
88
|
+
overflow: "hidden",
|
|
89
|
+
textOverflow: "ellipsis",
|
|
90
|
+
display: "-webkit-box",
|
|
91
|
+
WebkitLineClamp: 4,
|
|
92
|
+
WebkitBoxOrient: "vertical",
|
|
93
|
+
lineHeight: "16px",
|
|
94
|
+
overflowWrap: "break-word",
|
|
95
|
+
wordBreak: "break-word"
|
|
96
|
+
})), k = t(n, {
|
|
97
|
+
name: "HCCardAlternate",
|
|
98
|
+
slot: "text",
|
|
99
|
+
shouldForwardProp: a
|
|
100
|
+
})(({ ownerState: e, theme: o }) => ({
|
|
101
|
+
color: o.palette.text.secondary,
|
|
102
|
+
overflow: "hidden",
|
|
103
|
+
textOverflow: "ellipsis",
|
|
104
|
+
display: "-webkit-box",
|
|
105
|
+
WebkitLineClamp: 4,
|
|
106
|
+
WebkitBoxOrient: "vertical",
|
|
107
|
+
lineHeight: "16px",
|
|
108
|
+
cursor: e.clickable ? "pointer" : "default",
|
|
109
|
+
marginTop: o.spacing(2),
|
|
110
|
+
marginBottom: o.spacing(2),
|
|
111
|
+
overflowWrap: "break-word",
|
|
112
|
+
wordBreak: "break-word"
|
|
113
|
+
})), m = t(r, {
|
|
114
|
+
name: "HCCardAlternate",
|
|
115
|
+
slot: "rightMenu",
|
|
116
|
+
shouldForwardProp: a
|
|
117
|
+
})({}), x = t(l, {
|
|
118
|
+
name: "HCCardAlternate",
|
|
119
|
+
slot: "avatarSkeleton",
|
|
120
|
+
shouldForwardProp: a
|
|
121
|
+
})({}), v = t(l, {
|
|
122
|
+
name: "HCCardAlternate",
|
|
123
|
+
slot: "lineSkeleton",
|
|
124
|
+
shouldForwardProp: a
|
|
125
|
+
})({});
|
|
42
126
|
export {
|
|
43
|
-
|
|
44
|
-
|
|
127
|
+
b as AlternateCardAvatarContainer,
|
|
128
|
+
x as AlternateCardAvatarSkeleton,
|
|
129
|
+
p as AlternateCardBody,
|
|
130
|
+
c as AlternateCardHeaderRow,
|
|
131
|
+
v as AlternateCardLineSkeleton,
|
|
132
|
+
C as AlternateCardMenuContainer,
|
|
133
|
+
m as AlternateCardRightMenu,
|
|
134
|
+
s as AlternateCardRoot,
|
|
135
|
+
A as AlternateCardSubTitle,
|
|
136
|
+
k as AlternateCardText,
|
|
137
|
+
w as AlternateCardTitle,
|
|
138
|
+
g as AlternateCardTitleColumn
|
|
45
139
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import i, { jsx as r, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { r as c, i as l } from "../../createSvgIcon-
|
|
2
|
+
import { r as c, i as l } from "../../createSvgIcon-BM3-TsGy.js";
|
|
3
3
|
import { Container as u } from "../container/index.js";
|
|
4
4
|
import { useCollapsibleCardLogic as s } from "./logic.js";
|
|
5
5
|
import { Accordion as x, AccordionSummary as m, SummaryHeader as f, SummaryActions as h, AccordionDetails as S } from "./styled.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { styled as a, Box as e } from "@mui/material";
|
|
2
|
-
import { A as n, a as t, b as i } from "../../AccordionSummary-
|
|
2
|
+
import { A as n, a as t, b as i } from "../../AccordionSummary-CMg08YSA.js";
|
|
3
3
|
const r = (o) => o !== "ownerState", m = a(n, {
|
|
4
4
|
name: "HCCollapsibleCard",
|
|
5
5
|
slot: "accordion"
|
|
@@ -2,9 +2,9 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react-confirm";
|
|
3
3
|
import "@mui/material";
|
|
4
4
|
import "@mui/icons-material";
|
|
5
|
-
import "../../DialogContent-
|
|
6
|
-
import {
|
|
7
|
-
import "../../
|
|
5
|
+
import "../../DialogContent-CGJ7alb8.js";
|
|
6
|
+
import { D as f } from "../../dialog-cf4HUXXl.js";
|
|
7
|
+
import "../../Modal-DlB6GH-f.js";
|
|
8
8
|
export {
|
|
9
9
|
f as default
|
|
10
10
|
};
|
|
@@ -1,271 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
})
|
|
27
|
-
|
|
28
|
-
})), w = /* @__PURE__ */ T.forwardRef(function(o, t) {
|
|
29
|
-
const a = P({
|
|
30
|
-
props: o,
|
|
31
|
-
name: "MuiCard"
|
|
32
|
-
}), {
|
|
33
|
-
className: d,
|
|
34
|
-
raised: s = !1
|
|
35
|
-
} = a, c = g(a, z), p = i({}, a, {
|
|
36
|
-
raised: s
|
|
37
|
-
}), u = D(p);
|
|
38
|
-
return /* @__PURE__ */ n(I, i({
|
|
39
|
-
className: x(u.root, d),
|
|
40
|
-
elevation: s ? 8 : void 0,
|
|
41
|
-
ref: t,
|
|
42
|
-
ownerState: p
|
|
43
|
-
}, c));
|
|
44
|
-
});
|
|
45
|
-
process.env.NODE_ENV !== "production" && (w.propTypes = {
|
|
46
|
-
// ----------------------------- Warning --------------------------------
|
|
47
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
48
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
49
|
-
// ----------------------------------------------------------------------
|
|
50
|
-
/**
|
|
51
|
-
* The content of the component.
|
|
52
|
-
*/
|
|
53
|
-
children: e.node,
|
|
54
|
-
/**
|
|
55
|
-
* Override or extend the styles applied to the component.
|
|
56
|
-
*/
|
|
57
|
-
classes: e.object,
|
|
58
|
-
/**
|
|
59
|
-
* @ignore
|
|
60
|
-
*/
|
|
61
|
-
className: e.string,
|
|
62
|
-
/**
|
|
63
|
-
* If `true`, the card will use raised styling.
|
|
64
|
-
* @default false
|
|
65
|
-
*/
|
|
66
|
-
raised: S(e.bool, (r) => r.raised && r.variant === "outlined" ? new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.') : null),
|
|
67
|
-
/**
|
|
68
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
69
|
-
*/
|
|
70
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
71
|
-
});
|
|
72
|
-
function V(r) {
|
|
73
|
-
return R("MuiCardHeader", r);
|
|
74
|
-
}
|
|
75
|
-
const v = N("MuiCardHeader", ["root", "avatar", "action", "content", "title", "subheader"]), W = ["action", "avatar", "className", "component", "disableTypography", "subheader", "subheaderTypographyProps", "title", "titleTypographyProps"], B = (r) => {
|
|
76
|
-
const {
|
|
77
|
-
classes: o
|
|
78
|
-
} = r;
|
|
79
|
-
return H({
|
|
80
|
-
root: ["root"],
|
|
81
|
-
avatar: ["avatar"],
|
|
82
|
-
action: ["action"],
|
|
83
|
-
content: ["content"],
|
|
84
|
-
title: ["title"],
|
|
85
|
-
subheader: ["subheader"]
|
|
86
|
-
}, V, o);
|
|
87
|
-
}, L = h("div", {
|
|
88
|
-
name: "MuiCardHeader",
|
|
89
|
-
slot: "Root",
|
|
90
|
-
overridesResolver: (r, o) => i({
|
|
91
|
-
[`& .${v.title}`]: o.title,
|
|
92
|
-
[`& .${v.subheader}`]: o.subheader
|
|
93
|
-
}, o.root)
|
|
94
|
-
})({
|
|
95
|
-
display: "flex",
|
|
96
|
-
alignItems: "center",
|
|
97
|
-
padding: 16
|
|
98
|
-
}), q = h("div", {
|
|
99
|
-
name: "MuiCardHeader",
|
|
100
|
-
slot: "Avatar",
|
|
101
|
-
overridesResolver: (r, o) => o.avatar
|
|
102
|
-
})({
|
|
103
|
-
display: "flex",
|
|
104
|
-
flex: "0 0 auto",
|
|
105
|
-
marginRight: 16
|
|
106
|
-
}), F = h("div", {
|
|
107
|
-
name: "MuiCardHeader",
|
|
108
|
-
slot: "Action",
|
|
109
|
-
overridesResolver: (r, o) => o.action
|
|
110
|
-
})({
|
|
111
|
-
flex: "0 0 auto",
|
|
112
|
-
alignSelf: "flex-start",
|
|
113
|
-
marginTop: -4,
|
|
114
|
-
marginRight: -8,
|
|
115
|
-
marginBottom: -4
|
|
116
|
-
}), G = h("div", {
|
|
117
|
-
name: "MuiCardHeader",
|
|
118
|
-
slot: "Content",
|
|
119
|
-
overridesResolver: (r, o) => o.content
|
|
120
|
-
})({
|
|
121
|
-
flex: "1 1 auto"
|
|
122
|
-
}), M = /* @__PURE__ */ T.forwardRef(function(o, t) {
|
|
123
|
-
const a = P({
|
|
124
|
-
props: o,
|
|
125
|
-
name: "MuiCardHeader"
|
|
126
|
-
}), {
|
|
127
|
-
action: d,
|
|
128
|
-
avatar: s,
|
|
129
|
-
className: c,
|
|
130
|
-
component: p = "div",
|
|
131
|
-
disableTypography: u = !1,
|
|
132
|
-
subheader: j,
|
|
133
|
-
subheaderTypographyProps: A,
|
|
134
|
-
title: O,
|
|
135
|
-
titleTypographyProps: U
|
|
136
|
-
} = a, _ = g(a, W), m = i({}, a, {
|
|
137
|
-
component: p,
|
|
138
|
-
disableTypography: u
|
|
139
|
-
}), l = B(m);
|
|
140
|
-
let y = O;
|
|
141
|
-
y != null && y.type !== b && !u && (y = /* @__PURE__ */ n(b, i({
|
|
142
|
-
variant: s ? "body2" : "h5",
|
|
143
|
-
className: l.title,
|
|
144
|
-
component: "span",
|
|
145
|
-
display: "block"
|
|
146
|
-
}, U, {
|
|
147
|
-
children: y
|
|
148
|
-
})));
|
|
149
|
-
let f = j;
|
|
150
|
-
return f != null && f.type !== b && !u && (f = /* @__PURE__ */ n(b, i({
|
|
151
|
-
variant: s ? "body2" : "body1",
|
|
152
|
-
className: l.subheader,
|
|
153
|
-
color: "text.secondary",
|
|
154
|
-
component: "span",
|
|
155
|
-
display: "block"
|
|
156
|
-
}, A, {
|
|
157
|
-
children: f
|
|
158
|
-
}))), /* @__PURE__ */ C(L, i({
|
|
159
|
-
className: x(l.root, c),
|
|
160
|
-
as: p,
|
|
161
|
-
ref: t,
|
|
162
|
-
ownerState: m
|
|
163
|
-
}, _, {
|
|
164
|
-
children: [s && /* @__PURE__ */ n(q, {
|
|
165
|
-
className: l.avatar,
|
|
166
|
-
ownerState: m,
|
|
167
|
-
children: s
|
|
168
|
-
}), /* @__PURE__ */ C(G, {
|
|
169
|
-
className: l.content,
|
|
170
|
-
ownerState: m,
|
|
171
|
-
children: [y, f]
|
|
172
|
-
}), d && /* @__PURE__ */ n(F, {
|
|
173
|
-
className: l.action,
|
|
174
|
-
ownerState: m,
|
|
175
|
-
children: d
|
|
176
|
-
})]
|
|
177
|
-
}));
|
|
178
|
-
});
|
|
179
|
-
process.env.NODE_ENV !== "production" && (M.propTypes = {
|
|
180
|
-
// ----------------------------- Warning --------------------------------
|
|
181
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
182
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
183
|
-
// ----------------------------------------------------------------------
|
|
184
|
-
/**
|
|
185
|
-
* The action to display in the card header.
|
|
186
|
-
*/
|
|
187
|
-
action: e.node,
|
|
188
|
-
/**
|
|
189
|
-
* The Avatar element to display.
|
|
190
|
-
*/
|
|
191
|
-
avatar: e.node,
|
|
192
|
-
/**
|
|
193
|
-
* @ignore
|
|
194
|
-
*/
|
|
195
|
-
children: e.node,
|
|
196
|
-
/**
|
|
197
|
-
* Override or extend the styles applied to the component.
|
|
198
|
-
*/
|
|
199
|
-
classes: e.object,
|
|
200
|
-
/**
|
|
201
|
-
* @ignore
|
|
202
|
-
*/
|
|
203
|
-
className: e.string,
|
|
204
|
-
/**
|
|
205
|
-
* The component used for the root node.
|
|
206
|
-
* Either a string to use a HTML element or a component.
|
|
207
|
-
*/
|
|
208
|
-
component: e.elementType,
|
|
209
|
-
/**
|
|
210
|
-
* If `true`, `subheader` and `title` won't be wrapped by a Typography component.
|
|
211
|
-
* This can be useful to render an alternative Typography variant by wrapping
|
|
212
|
-
* the `title` text, and optional `subheader` text
|
|
213
|
-
* with the Typography component.
|
|
214
|
-
* @default false
|
|
215
|
-
*/
|
|
216
|
-
disableTypography: e.bool,
|
|
217
|
-
/**
|
|
218
|
-
* The content of the component.
|
|
219
|
-
*/
|
|
220
|
-
subheader: e.node,
|
|
221
|
-
/**
|
|
222
|
-
* These props will be forwarded to the subheader
|
|
223
|
-
* (as long as disableTypography is not `true`).
|
|
224
|
-
*/
|
|
225
|
-
subheaderTypographyProps: e.object,
|
|
226
|
-
/**
|
|
227
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
228
|
-
*/
|
|
229
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
230
|
-
/**
|
|
231
|
-
* The content of the component.
|
|
232
|
-
*/
|
|
233
|
-
title: e.node,
|
|
234
|
-
/**
|
|
235
|
-
* These props will be forwarded to the title
|
|
236
|
-
* (as long as disableTypography is not `true`).
|
|
237
|
-
*/
|
|
238
|
-
titleTypographyProps: e.object
|
|
239
|
-
});
|
|
240
|
-
const ae = ({
|
|
241
|
-
disableHeader: r,
|
|
242
|
-
sx: o,
|
|
243
|
-
headerSx: t,
|
|
244
|
-
contentSx: a,
|
|
245
|
-
elevation: d = 4,
|
|
246
|
-
children: s,
|
|
247
|
-
...c
|
|
248
|
-
}) => /* @__PURE__ */ C(w, { elevation: d, sx: o, children: [
|
|
249
|
-
!r && /* @__PURE__ */ n(
|
|
250
|
-
M,
|
|
251
|
-
{
|
|
252
|
-
sx: [
|
|
253
|
-
{ p: 3, pb: 0 },
|
|
254
|
-
...Array.isArray(t) ? t : [t]
|
|
255
|
-
],
|
|
256
|
-
titleTypographyProps: { sx: { fontSize: "1rem", fontWeight: 500 } },
|
|
257
|
-
subheaderTypographyProps: { sx: { fontSize: ".875rem" } },
|
|
258
|
-
...c
|
|
259
|
-
}
|
|
260
|
-
),
|
|
261
|
-
/* @__PURE__ */ n(
|
|
262
|
-
$,
|
|
263
|
-
{
|
|
264
|
-
sx: [{ p: 3 }, ...Array.isArray(a) ? a : [a]],
|
|
265
|
-
children: s
|
|
266
|
-
}
|
|
267
|
-
)
|
|
268
|
-
] });
|
|
1
|
+
import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useContainerLogic as h } from "./logic.js";
|
|
3
|
+
import { ContainerRoot as f, ContainerHeader as u, ContainerContent as S } from "./styled.js";
|
|
4
|
+
const H = (e) => {
|
|
5
|
+
const { state: n } = h(e), { ownerState: o, elevation: r } = n, {
|
|
6
|
+
disableHeader: i,
|
|
7
|
+
sx: a,
|
|
8
|
+
headerSx: s,
|
|
9
|
+
contentSx: c,
|
|
10
|
+
children: x,
|
|
11
|
+
title: d,
|
|
12
|
+
subheader: m,
|
|
13
|
+
action: C
|
|
14
|
+
} = e;
|
|
15
|
+
return /* @__PURE__ */ l(f, { ownerState: o, elevation: r, sx: a, children: [
|
|
16
|
+
!i && /* @__PURE__ */ t(
|
|
17
|
+
u,
|
|
18
|
+
{
|
|
19
|
+
sx: s,
|
|
20
|
+
title: d,
|
|
21
|
+
subheader: m,
|
|
22
|
+
action: C
|
|
23
|
+
}
|
|
24
|
+
),
|
|
25
|
+
/* @__PURE__ */ t(S, { sx: c, children: x })
|
|
26
|
+
] });
|
|
27
|
+
};
|
|
269
28
|
export {
|
|
270
|
-
|
|
29
|
+
H as Container
|
|
271
30
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useThemeProps as r } from "@mui/material";
|
|
2
|
+
const a = (t) => {
|
|
3
|
+
const o = r({ props: t, name: "HCContainer" }), { elevation: e = 4 } = o, n = { ...o, elevation: e };
|
|
4
|
+
return {
|
|
5
|
+
refs: {},
|
|
6
|
+
state: { ownerState: n, elevation: e },
|
|
7
|
+
actions: {}
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
a as useContainerLogic
|
|
12
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { styled as n, Card as t, CardHeader as o, CardContent as a } from "@mui/material";
|
|
2
|
+
const r = (e) => e !== "ownerState", i = n(t, {
|
|
3
|
+
name: "HCContainer",
|
|
4
|
+
slot: "root",
|
|
5
|
+
shouldForwardProp: r
|
|
6
|
+
})({}), C = n(o, {
|
|
7
|
+
name: "HCContainer",
|
|
8
|
+
slot: "header"
|
|
9
|
+
})(({ theme: e }) => ({
|
|
10
|
+
padding: e.spacing(3),
|
|
11
|
+
paddingBottom: 0,
|
|
12
|
+
"& .MuiCardHeader-title": {
|
|
13
|
+
fontSize: "1rem",
|
|
14
|
+
fontWeight: 500
|
|
15
|
+
},
|
|
16
|
+
"& .MuiCardHeader-subheader": {
|
|
17
|
+
fontSize: ".875rem"
|
|
18
|
+
}
|
|
19
|
+
})), s = n(a, {
|
|
20
|
+
name: "HCContainer",
|
|
21
|
+
slot: "content"
|
|
22
|
+
})(({ theme: e }) => ({
|
|
23
|
+
padding: e.spacing(3)
|
|
24
|
+
}));
|
|
25
|
+
export {
|
|
26
|
+
s as ContainerContent,
|
|
27
|
+
C as ContainerHeader,
|
|
28
|
+
i as ContainerRoot
|
|
29
|
+
};
|