@hybridcore/ui 1.3.3 → 1.3.5

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 (67) hide show
  1. package/dist/{ButtonBase-DE8d_U2E.js → ButtonBase-D6qhsxB0.js} +201 -210
  2. package/dist/{CardContent-Du2i427Y.js → CardContent-B8hqgH-I.js} +15 -15
  3. package/dist/{Checkbox-BGNAqLl0.js → Checkbox-BFWhj3s-.js} +154 -144
  4. package/dist/{Collapse-FRd0_2Pt.js → Collapse-D_TjnyE5.js} +96 -87
  5. package/dist/DialogContent-BCYm_d1s.js +864 -0
  6. package/dist/{FormControl-ChTmxscy.js → FormControl-BMRUQKHh.js} +479 -449
  7. package/dist/FormControlLabel-DENNVXWL.js +639 -0
  8. package/dist/{IconButton-Cu_XEJB2.js → IconButton-D8bwME9t.js} +22 -22
  9. package/dist/{Input-DU22-Zbo.js → Input-Dxzguyp5.js} +34 -34
  10. package/dist/{InputAdornment-6aeADcPO.js → InputAdornment-B8ERE7Zv.js} +12 -12
  11. package/dist/{List-nOXr-cFJ.js → List-DEWyK9IO.js} +12 -12
  12. package/dist/{MenuItem-DF45rx2m.js → MenuItem-DstAFfik.js} +26 -26
  13. package/dist/Modal-DNGEQJ1M.js +1267 -0
  14. package/dist/{OutlinedInput-DJCHjkR3.js → OutlinedInput-w2Cj9STF.js} +75 -78
  15. package/dist/{Paper-CD_ma6NJ.js → Paper-BseeergJ.js} +15 -15
  16. package/dist/Select-NDq3WyLt.js +2175 -0
  17. package/dist/Typography-Dg-ROiTA.js +201 -0
  18. package/dist/components/card/index.js +17 -17
  19. package/dist/components/card/styled.js +1 -1
  20. package/dist/components/collapsible-card/style.js +222 -302
  21. package/dist/components/confirm/dialog.js +13 -13
  22. package/dist/components/container/index.js +19 -19
  23. package/dist/components/context-menu/index.js +616 -203
  24. package/dist/components/data-management/instance-form/components/composite-list/index.js +1 -1
  25. package/dist/components/data-management/instance-form/components/variable/index.js +6 -6
  26. package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
  27. package/dist/components/geometry-picker/index.js +3 -3
  28. package/dist/components/icon-button/index.js +1 -1
  29. package/dist/components/map/styled.js +14 -14
  30. package/dist/components/search-input/index.js +4 -4
  31. package/dist/components/template-property-filters/index.js +1 -1
  32. package/dist/components/template-property-filters/property.js +209 -10
  33. package/dist/components/tree-select/index.js +4 -4
  34. package/dist/components/treeview-filter/index.js +29 -30
  35. package/dist/components/treeview-filter/item/index.js +1 -1
  36. package/dist/components/treeview-filter/item-label/index.js +2 -2
  37. package/dist/createStyled-B96gjom1.js +1887 -0
  38. package/dist/createSvgIcon-B2WT0K4k.js +87 -0
  39. package/dist/{createSvgIcon-DPZ7UbxM.js → createSvgIcon-BNrb7rDY.js} +82 -85
  40. package/dist/{exactProp--3vlJ9a9.js → exactProp-CI_rjX83.js} +2 -2
  41. package/dist/{index-CtuBGOmk.js → index-B3Oj04nl.js} +5 -5
  42. package/dist/{index-DzFccwzL.js → index-CSfSVkKj.js} +204 -218
  43. package/dist/{listItemTextClasses-2BAu-hye.js → listItemTextClasses-CFiI_U7B.js} +2 -2
  44. package/dist/main.js +150 -144
  45. package/dist/styled-cPJbqF0E.js +677 -0
  46. package/dist/useTheme-C-T6Qisa.js +10 -0
  47. package/dist/useThemeProps-DeftUmqJ.js +107 -0
  48. package/dist/{utils-qcu0RzdN.js → utils-CCkxV0lZ.js} +15 -15
  49. package/package.json +3 -3
  50. package/dist/DialogContent-CKeAZ3Ts.js +0 -1982
  51. package/dist/FormControlLabel-Df7csguX.js +0 -827
  52. package/dist/ListItem-RJvRMwkZ.js +0 -428
  53. package/dist/Select-C1jD_gBQ.js +0 -2305
  54. package/dist/Typography-C2BkMNk-.js +0 -178
  55. package/dist/chainPropTypes-GRMJ22CO.js +0 -96
  56. package/dist/createSvgIcon-6wv0RQr3.js +0 -63
  57. package/dist/createTheme-C3DKplhE.js +0 -2395
  58. package/dist/property-BSufYw1E.js +0 -6888
  59. package/dist/requirePropFactory-BItwGLRQ.js +0 -18
  60. package/dist/resolveComponentProps-DozbaB8e.js +0 -54
  61. package/dist/styled-CVWGE9ik.js +0 -142
  62. package/dist/styled-iyoioZCr.js +0 -1033
  63. package/dist/unsupportedProp-BuVD30Gh.js +0 -9
  64. package/dist/useTheme--x3BjP9A.js +0 -17
  65. package/dist/useTheme-pWltVFb2.js +0 -10
  66. package/dist/useThemeProps-C90JF0Qc.js +0 -62
  67. package/dist/useThemeProps-DNZoozBw.js +0 -26
@@ -0,0 +1,201 @@
1
+ import { a as f, _ as p } from "./extends-Cyw62AD_.js";
2
+ import * as B from "react";
3
+ import { d as C, i as O, a as d, P as r } from "./createStyled-B96gjom1.js";
4
+ import { g as W, u as j, c as _, a as M } from "./useThemeProps-DeftUmqJ.js";
5
+ import { g as N, s as R } from "./styled-cPJbqF0E.js";
6
+ import { jsx as $ } from "react/jsx-runtime";
7
+ const U = ["sx"], A = (o) => {
8
+ var t, a;
9
+ const n = {
10
+ systemProps: {},
11
+ otherProps: {}
12
+ }, s = (t = o == null || (a = o.theme) == null ? void 0 : a.unstable_sxConfig) != null ? t : C;
13
+ return Object.keys(o).forEach((e) => {
14
+ s[e] ? n.systemProps[e] = o[e] : n.otherProps[e] = o[e];
15
+ }), n;
16
+ };
17
+ function E(o) {
18
+ const {
19
+ sx: t
20
+ } = o, a = f(o, U), {
21
+ systemProps: n,
22
+ otherProps: s
23
+ } = A(a);
24
+ let e;
25
+ return Array.isArray(t) ? e = [n, ...t] : typeof t == "function" ? e = (...l) => {
26
+ const i = t(...l);
27
+ return O(i) ? p({}, n, i) : n;
28
+ } : e = p({}, n, t), p({}, s, {
29
+ sx: e
30
+ });
31
+ }
32
+ function D(o) {
33
+ return N("MuiTypography", o);
34
+ }
35
+ W("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
36
+ const L = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], S = (o) => {
37
+ const {
38
+ align: t,
39
+ gutterBottom: a,
40
+ noWrap: n,
41
+ paragraph: s,
42
+ variant: e,
43
+ classes: l
44
+ } = o, i = {
45
+ root: ["root", e, o.align !== "inherit" && `align${d(t)}`, a && "gutterBottom", n && "noWrap", s && "paragraph"]
46
+ };
47
+ return M(i, D, l);
48
+ }, V = R("span", {
49
+ name: "MuiTypography",
50
+ slot: "Root",
51
+ overridesResolver: (o, t) => {
52
+ const {
53
+ ownerState: a
54
+ } = o;
55
+ return [t.root, a.variant && t[a.variant], a.align !== "inherit" && t[`align${d(a.align)}`], a.noWrap && t.noWrap, a.gutterBottom && t.gutterBottom, a.paragraph && t.paragraph];
56
+ }
57
+ })(({
58
+ theme: o,
59
+ ownerState: t
60
+ }) => p({
61
+ margin: 0
62
+ }, t.variant && o.typography[t.variant], t.align !== "inherit" && {
63
+ textAlign: t.align
64
+ }, t.noWrap && {
65
+ overflow: "hidden",
66
+ textOverflow: "ellipsis",
67
+ whiteSpace: "nowrap"
68
+ }, t.gutterBottom && {
69
+ marginBottom: "0.35em"
70
+ }, t.paragraph && {
71
+ marginBottom: 16
72
+ })), y = {
73
+ h1: "h1",
74
+ h2: "h2",
75
+ h3: "h3",
76
+ h4: "h4",
77
+ h5: "h5",
78
+ h6: "h6",
79
+ subtitle1: "h6",
80
+ subtitle2: "h6",
81
+ body1: "p",
82
+ body2: "p",
83
+ inherit: "p"
84
+ }, k = {
85
+ primary: "primary.main",
86
+ textPrimary: "text.primary",
87
+ secondary: "secondary.main",
88
+ textSecondary: "text.secondary",
89
+ error: "error.main"
90
+ }, w = (o) => k[o] || o, z = /* @__PURE__ */ B.forwardRef(function(t, a) {
91
+ const n = j({
92
+ props: t,
93
+ name: "MuiTypography"
94
+ }), s = w(n.color), e = E(p({}, n, {
95
+ color: s
96
+ })), {
97
+ align: l = "inherit",
98
+ className: i,
99
+ component: h,
100
+ gutterBottom: b = !1,
101
+ noWrap: x = !1,
102
+ paragraph: g = !1,
103
+ variant: c = "body1",
104
+ variantMapping: m = y
105
+ } = e, v = f(e, L), u = p({}, e, {
106
+ align: l,
107
+ color: s,
108
+ className: i,
109
+ component: h,
110
+ gutterBottom: b,
111
+ noWrap: x,
112
+ paragraph: g,
113
+ variant: c,
114
+ variantMapping: m
115
+ }), T = h || (g ? "p" : m[c] || y[c]) || "span", P = S(u);
116
+ return /* @__PURE__ */ $(V, p({
117
+ as: T,
118
+ ref: a,
119
+ ownerState: u,
120
+ className: _(P.root, i)
121
+ }, v));
122
+ });
123
+ process.env.NODE_ENV !== "production" && (z.propTypes = {
124
+ // ----------------------------- Warning --------------------------------
125
+ // | These PropTypes are generated from the TypeScript type definitions |
126
+ // | To update them edit the d.ts file and run "yarn proptypes" |
127
+ // ----------------------------------------------------------------------
128
+ /**
129
+ * Set the text-align on the component.
130
+ * @default 'inherit'
131
+ */
132
+ align: r.oneOf(["center", "inherit", "justify", "left", "right"]),
133
+ /**
134
+ * The content of the component.
135
+ */
136
+ children: r.node,
137
+ /**
138
+ * Override or extend the styles applied to the component.
139
+ */
140
+ classes: r.object,
141
+ /**
142
+ * @ignore
143
+ */
144
+ className: r.string,
145
+ /**
146
+ * The component used for the root node.
147
+ * Either a string to use a HTML element or a component.
148
+ */
149
+ component: r.elementType,
150
+ /**
151
+ * If `true`, the text will have a bottom margin.
152
+ * @default false
153
+ */
154
+ gutterBottom: r.bool,
155
+ /**
156
+ * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
157
+ *
158
+ * Note that text overflow can only happen with block or inline-block level elements
159
+ * (the element needs to have a width in order to overflow).
160
+ * @default false
161
+ */
162
+ noWrap: r.bool,
163
+ /**
164
+ * If `true`, the element will be a paragraph element.
165
+ * @default false
166
+ */
167
+ paragraph: r.bool,
168
+ /**
169
+ * The system prop that allows defining system overrides as well as additional CSS styles.
170
+ */
171
+ sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object]),
172
+ /**
173
+ * Applies the theme typography styles.
174
+ * @default 'body1'
175
+ */
176
+ variant: r.oneOfType([r.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), r.string]),
177
+ /**
178
+ * The component maps the variant prop to a range of different HTML element types.
179
+ * For instance, subtitle1 to `<h6>`.
180
+ * If you wish to change that mapping, you can provide your own.
181
+ * Alternatively, you can use the `component` prop.
182
+ * @default {
183
+ * h1: 'h1',
184
+ * h2: 'h2',
185
+ * h3: 'h3',
186
+ * h4: 'h4',
187
+ * h5: 'h5',
188
+ * h6: 'h6',
189
+ * subtitle1: 'h6',
190
+ * subtitle2: 'h6',
191
+ * body1: 'p',
192
+ * body2: 'p',
193
+ * inherit: 'p',
194
+ * }
195
+ */
196
+ variantMapping: r.object
197
+ });
198
+ export {
199
+ z as T,
200
+ E as e
201
+ };
@@ -3,16 +3,16 @@ import { Box as p, Avatar as b } from "@mui/material";
3
3
  import { LandscapeCardRoot as A, LandscapeInfoBox as I, LandscapeCardExtraActions as P, PortraitCardRoot as _, PortraitCardExtraActions as L } from "./styled.js";
4
4
  import { _ as m, a as v } from "../../extends-Cyw62AD_.js";
5
5
  import * as M from "react";
6
- import { P as t } from "../../createTheme-C3DKplhE.js";
7
- import { g as w, u as O, c as N, a as S, b as B } from "../../chainPropTypes-GRMJ22CO.js";
8
- import { g as T, s as j } from "../../styled-iyoioZCr.js";
9
- import { C as y } from "../../CardContent-Du2i427Y.js";
10
- import { T as d } from "../../Typography-C2BkMNk-.js";
6
+ import { P as t } from "../../createStyled-B96gjom1.js";
7
+ import { g as w, u as O, c as N, a as S, b as B } from "../../useThemeProps-DeftUmqJ.js";
8
+ import { g as T, s as j } from "../../styled-cPJbqF0E.js";
9
+ import { C as y } from "../../CardContent-B8hqgH-I.js";
10
+ import { T as d } from "../../Typography-Dg-ROiTA.js";
11
11
  function U(e) {
12
12
  return T("MuiCardActions", e);
13
13
  }
14
14
  w("MuiCardActions", ["root", "spacing"]);
15
- const D = ["disableSpacing", "className"], H = (e) => {
15
+ const H = ["disableSpacing", "className"], D = (e) => {
16
16
  const {
17
17
  classes: i,
18
18
  disableSpacing: n
@@ -36,7 +36,7 @@ const D = ["disableSpacing", "className"], H = (e) => {
36
36
  alignItems: "center",
37
37
  padding: 8
38
38
  }, !e.disableSpacing && {
39
- "& > :not(style) ~ :not(style)": {
39
+ "& > :not(:first-of-type)": {
40
40
  marginLeft: 8
41
41
  }
42
42
  })), k = /* @__PURE__ */ M.forwardRef(function(i, n) {
@@ -46,9 +46,9 @@ const D = ["disableSpacing", "className"], H = (e) => {
46
46
  }), {
47
47
  disableSpacing: s = !1,
48
48
  className: h
49
- } = r, a = v(r, D), l = m({}, r, {
49
+ } = r, a = v(r, H), l = m({}, r, {
50
50
  disableSpacing: s
51
- }), u = H(l);
51
+ }), u = D(l);
52
52
  return /* @__PURE__ */ o(z, m({
53
53
  className: N(u.root, h),
54
54
  ownerState: l,
@@ -56,10 +56,10 @@ const D = ["disableSpacing", "className"], H = (e) => {
56
56
  }, a));
57
57
  });
58
58
  process.env.NODE_ENV !== "production" && (k.propTypes = {
59
- // ┌────────────────────────────── Warning ──────────────────────────────┐
60
- // These PropTypes are generated from the TypeScript type definitions.
61
- // To update them, edit the d.ts file and run `pnpm proptypes`.
62
- // └─────────────────────────────────────────────────────────────────────┘
59
+ // ----------------------------- Warning --------------------------------
60
+ // | These PropTypes are generated from the TypeScript type definitions |
61
+ // | To update them edit the d.ts file and run "yarn proptypes" |
62
+ // ----------------------------------------------------------------------
63
63
  /**
64
64
  * The content of the component.
65
65
  */
@@ -150,10 +150,10 @@ const V = ["children", "className", "component", "image", "src", "style"], F = (
150
150
  }));
151
151
  });
152
152
  process.env.NODE_ENV !== "production" && (x.propTypes = {
153
- // ┌────────────────────────────── Warning ──────────────────────────────┐
154
- // These PropTypes are generated from the TypeScript type definitions.
155
- // To update them, edit the d.ts file and run `pnpm proptypes`.
156
- // └─────────────────────────────────────────────────────────────────────┘
153
+ // ----------------------------- Warning --------------------------------
154
+ // | These PropTypes are generated from the TypeScript type definitions |
155
+ // | To update them edit the d.ts file and run "yarn proptypes" |
156
+ // ----------------------------------------------------------------------
157
157
  /**
158
158
  * The content of the component.
159
159
  */
@@ -1,5 +1,5 @@
1
1
  import { Card as t, Box as o } from "@mui/material";
2
- import { s as i } from "../../styled-iyoioZCr.js";
2
+ import { s as i } from "../../styled-cPJbqF0E.js";
3
3
  const s = i(t, {
4
4
  name: "SNCard",
5
5
  // The component name