@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.
Files changed (128) hide show
  1. package/dist/{AccordionSummary-DgAwVTk8.js → AccordionSummary-CMg08YSA.js} +20 -23
  2. package/dist/{Add-DJLrrVHm.js → Add-DuVVJeQU.js} +65 -67
  3. package/dist/{ButtonBase-2bPw77UP.js → ButtonBase-sObABYY2.js} +60 -56
  4. package/dist/{Delete-CW0UZv1m.js → Delete-fBLhTHbF.js} +1 -1
  5. package/dist/{DialogContent-B3nbEbuv.js → DialogContent-CGJ7alb8.js} +8 -10
  6. package/dist/{FormControl-BLbrq4C7.js → FormControl-BCurCxRj.js} +377 -719
  7. package/dist/FormControlLabel-BkRfrhNy.js +601 -0
  8. package/dist/{IconButton-CHwRQF-g.js → IconButton-_opV1iNK.js} +26 -28
  9. package/dist/{InputAdornment-DLxWUE6H.js → InputAdornment-C7PEvvYr.js} +16 -18
  10. package/dist/InputLabel-rEwwnD4_.js +354 -0
  11. package/dist/{MenuItem-xZx_w7zA.js → MenuItem-DrE50M_p.js} +92 -70
  12. package/dist/Modal-DlB6GH-f.js +1659 -0
  13. package/dist/Paper-q9kKjAKx.js +527 -0
  14. package/dist/{Select-BgYwkZgI.js → TextField-DSDIEEKu.js} +1449 -901
  15. package/dist/{Typography-CxbneZy_.js → Typography-B-Z5Y0Xq.js} +46 -48
  16. package/dist/{capitalize-ciszXJ7R.js → capitalize-quqpGCFu.js} +1 -1
  17. package/dist/components/access/index.js +8 -15
  18. package/dist/components/access/logic.js +25 -0
  19. package/dist/components/card/index.js +158 -498
  20. package/dist/components/card/logic.js +24 -0
  21. package/dist/components/card/styled.js +226 -51
  22. package/dist/components/card-alternate/index.js +111 -139
  23. package/dist/components/card-alternate/logic.js +17 -0
  24. package/dist/components/card-alternate/styled.js +113 -19
  25. package/dist/components/collapsible-card/index.js +1 -1
  26. package/dist/components/collapsible-card/styled.js +1 -1
  27. package/dist/components/confirm/dialog.js +3 -3
  28. package/dist/components/confirm/index.js +1 -1
  29. package/dist/components/container/index.js +28 -269
  30. package/dist/components/container/logic.js +12 -0
  31. package/dist/components/container/styled.js +29 -0
  32. package/dist/components/context-menu/index.js +25 -457
  33. package/dist/components/context-menu/logic.js +14 -0
  34. package/dist/components/context-menu/styled.js +40 -0
  35. package/dist/components/data-security-selectors/security-level/index.js +36 -91
  36. package/dist/components/data-security-selectors/security-level/logic.js +73 -0
  37. package/dist/components/data-security-selectors/security-level/styled.js +47 -0
  38. package/dist/components/date-picker-with-custom-range/index.js +1 -1
  39. package/dist/components/geometry-picker/index.js +13 -12
  40. package/dist/components/instance-form/components/composite-list/index.js +1 -1
  41. package/dist/components/instance-form/components/variable/index.js +7 -9
  42. package/dist/components/instance-form/components/variables/index.js +1 -1
  43. package/dist/components/instance-form/index.js +1 -1
  44. package/dist/components/instance-hierarchy-table/index.js +32 -37
  45. package/dist/components/instance-hierarchy-table/logic.js +16 -0
  46. package/dist/components/instance-hierarchy-table/styled.js +53 -12
  47. package/dist/components/instance-table/index.js +30 -135
  48. package/dist/components/instance-table/logic.js +122 -0
  49. package/dist/components/instance-table/styled.js +53 -11
  50. package/dist/components/key-protection/index.js +45 -2
  51. package/dist/components/key-protection/logic.js +40 -0
  52. package/dist/components/key-protection/styled.js +45 -0
  53. package/dist/components/key-protection/utils.js +1 -1
  54. package/dist/components/loading/index.js +15 -9
  55. package/dist/components/loading/logic.js +15 -0
  56. package/dist/components/loading/styled.js +26 -19
  57. package/dist/components/phone-input/index.js +18 -22
  58. package/dist/components/phone-input/logic.js +14 -0
  59. package/dist/components/phone-input/styled.js +12 -4
  60. package/dist/components/property-mapping/index.js +1 -1
  61. package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
  62. package/dist/components/range-selector/components/date-range/index.js +87 -4221
  63. package/dist/components/range-selector/components/geometry-range/index.js +11 -17
  64. package/dist/components/range-selector/components/number-range/index.js +48 -53
  65. package/dist/components/range-selector/components/string-range/index.js +15 -17
  66. package/dist/components/range-selector/index.js +63 -57
  67. package/dist/components/range-selector/logic.js +12 -0
  68. package/dist/components/range-selector/styled.js +4222 -0
  69. package/dist/components/template-filters/components/filter/index.js +13 -18
  70. package/dist/components/template-filters/components/tab-panel/index.js +8 -16
  71. package/dist/components/template-filters/index.js +21 -29
  72. package/dist/components/template-filters/logic.js +18 -0
  73. package/dist/components/template-filters/styled.js +44 -1
  74. package/dist/components/template-form/components/property-list/index.js +8 -8
  75. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  76. package/dist/components/template-form/components/property-list/property-list-form.js +8 -10
  77. package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
  78. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  79. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +8 -9
  80. package/dist/components/template-form/index.js +32 -33
  81. package/dist/components/template-property-filters/index.js +45 -95
  82. package/dist/components/template-property-filters/logic.js +27 -0
  83. package/dist/components/template-property-filters/property.js +105 -165
  84. package/dist/components/template-property-filters/styled.js +121 -20
  85. package/dist/components/tree-select/index.js +52 -67
  86. package/dist/components/tree-select/logic.js +59 -0
  87. package/dist/components/tree-select/styled.js +45 -62
  88. package/dist/components/treeview-filter/index.js +43 -65
  89. package/dist/components/treeview-filter/item/index.js +43 -42
  90. package/dist/components/treeview-filter/item-label/index.js +17 -37
  91. package/dist/components/treeview-filter/logic.js +28 -0
  92. package/dist/components/treeview-filter/styled.js +86 -0
  93. package/dist/components/uploader/index.js +532 -567
  94. package/dist/components/uploader/logic.js +74 -0
  95. package/dist/components/uploader/styled.js +93 -46
  96. package/dist/{createSvgIcon-BjpIhJ30.js → createSvgIcon-BM3-TsGy.js} +25 -26
  97. package/dist/{createSvgIcon-DrtgaibK.js → createSvgIcon-DX-SqL8M.js} +23 -25
  98. package/dist/{dialog-DcwXug9J.js → dialog-cf4HUXXl.js} +26 -27
  99. package/dist/{index-syTc6m_V.js → index-C8C3YXle.js} +92 -94
  100. package/dist/{index-CcdvNlgr.js → index-DPKUmQnz.js} +11 -13
  101. package/dist/isMuiElement-BkJ72LB3.js +26 -0
  102. package/dist/main.d.ts +734 -298
  103. package/dist/main.js +15 -15
  104. package/dist/{property-list-form-zZQfpR0X.js → property-list-form-DL_dEoNn.js} +56 -61
  105. package/dist/{createTheme-DYxDnE9u.js → styled-Bsjp3kFh.js} +232 -176
  106. package/dist/{useMobilePicker-BLg3Blg8.js → useMobilePicker-B-M3dnTn.js} +2692 -2288
  107. package/dist/{utils-Bq0ye5vf.js → utils-Cxu-fHjQ.js} +7 -7
  108. package/package.json +1 -1
  109. package/dist/Box-p6OtTUEo.js +0 -30
  110. package/dist/Button-CvE2gnly.js +0 -370
  111. package/dist/CardContent-CSHh-ZlM.js +0 -74
  112. package/dist/Checkbox-CWRMFTBp.js +0 -421
  113. package/dist/FormControlLabel-C8SPv14J.js +0 -195
  114. package/dist/List-tqElle9C.js +0 -121
  115. package/dist/ListItem-CfjsIg4B.js +0 -430
  116. package/dist/Modal-DhPpOoGB.js +0 -1299
  117. package/dist/Paper-2B03OBmZ.js +0 -169
  118. package/dist/TextField-1yCesIbH.js +0 -457
  119. package/dist/components/key-protection/menu.js +0 -85
  120. package/dist/components/treeview-filter/item/styled.js +0 -39
  121. package/dist/debounce-46wSf_lW.js +0 -15
  122. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  123. package/dist/isMuiElement-CxT3_ACP.js +0 -13
  124. package/dist/listItemTextClasses-C3lndiXO.js +0 -16
  125. package/dist/styled-eZwjUruw.js +0 -12
  126. package/dist/useFormControl-CatNKXAi.js +0 -10
  127. package/dist/useThemeProps-BzzHcQyd.js +0 -58
  128. package/dist/utils-BDNynJcd.js +0 -365
@@ -1,22 +1,21 @@
1
- import { styled as i, Card as t, Box as n } from "@mui/material";
2
- const r = i(t, {
3
- name: "SNAlternateCard",
4
- // The component name
5
- slot: "root"
6
- // The slot name
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: a.spacing(3),
11
- paddingTop: a.spacing(6),
12
- gap: a.spacing(2),
9
+ padding: e.spacing(3),
10
+ paddingTop: e.spacing(6),
11
+ gap: e.spacing(2),
13
12
  "& .MuiCardMedia-root": {
14
- borderRadius: a.shape.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: a.spacing(3),
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
- })), e = i(n, {
28
- name: "SNAlternateCard",
29
- slot: "menuContainer"
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
- e as AlternateCardMenuContainer,
44
- r as AlternateCardRoot
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-BjpIhJ30.js";
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-DgAwVTk8.js";
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-B3nbEbuv.js";
6
- import { a as f } from "../../dialog-DcwXug9J.js";
7
- import "../../Button-CvE2gnly.js";
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,5 +1,5 @@
1
1
  import { createConfirmation as r } from "react-confirm";
2
- import { a as i } from "../../dialog-DcwXug9J.js";
2
+ import { D as i } from "../../dialog-cf4HUXXl.js";
3
3
  const o = r(i);
4
4
  function f(t, n, e = {
5
5
  cancelButtonText: "Cancel",
@@ -1,271 +1,30 @@
1
- import { jsx as n, jsxs as C } from "react/jsx-runtime";
2
- import { _ as g, a as i } from "../../objectWithoutPropertiesLoose-DJteAcBH.js";
3
- import * as T from "react";
4
- import { P as e } from "../../index-C__OZmYy.js";
5
- import { g as N, u as P, c as x, b as S, a as H } from "../../useThemeProps-BzzHcQyd.js";
6
- import { s as h } from "../../styled-eZwjUruw.js";
7
- import { g as R } from "../../createTheme-DYxDnE9u.js";
8
- import { P as E } from "../../Paper-2B03OBmZ.js";
9
- import { T as b } from "../../Typography-CxbneZy_.js";
10
- import { C as $ } from "../../CardContent-CSHh-ZlM.js";
11
- function k(r) {
12
- return R("MuiCard", r);
13
- }
14
- N("MuiCard", ["root"]);
15
- const z = ["className", "raised"], D = (r) => {
16
- const {
17
- classes: o
18
- } = r;
19
- return H({
20
- root: ["root"]
21
- }, k, o);
22
- }, I = h(E, {
23
- name: "MuiCard",
24
- slot: "Root",
25
- overridesResolver: (r, o) => o.root
26
- })(() => ({
27
- overflow: "hidden"
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
- ae as Container
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
+ };