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