@hybridcore/ui 1.3.3 → 1.3.4

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 (64) hide show
  1. package/dist/{ButtonBase-DE8d_U2E.js → ButtonBase-DJz-TFGO.js} +199 -207
  2. package/dist/{CardContent-Du2i427Y.js → CardContent-DZnCVGy9.js} +15 -15
  3. package/dist/{Checkbox-BGNAqLl0.js → Checkbox-DzmWBCrt.js} +154 -144
  4. package/dist/{Collapse-FRd0_2Pt.js → Collapse-NqW0GIK_.js} +79 -77
  5. package/dist/DialogContent-D51w7KVX.js +2119 -0
  6. package/dist/{FormControl-ChTmxscy.js → FormControl-aXQs42m6.js} +496 -466
  7. package/dist/FormControlLabel-hDa-xf_q.js +639 -0
  8. package/dist/{IconButton-Cu_XEJB2.js → IconButton-SnBOFQ43.js} +22 -22
  9. package/dist/{Input-DU22-Zbo.js → Input-CeVb6kjv.js} +34 -34
  10. package/dist/{InputAdornment-6aeADcPO.js → InputAdornment-fM3loNyx.js} +12 -12
  11. package/dist/{List-nOXr-cFJ.js → List-DLIiXc6r.js} +10 -10
  12. package/dist/{ListItem-RJvRMwkZ.js → ListItem-BkxmqFI8.js} +23 -23
  13. package/dist/{MenuItem-DF45rx2m.js → MenuItem-BEW28T9O.js} +27 -27
  14. package/dist/{OutlinedInput-DJCHjkR3.js → OutlinedInput-DkzLHRTd.js} +75 -78
  15. package/dist/{Paper-CD_ma6NJ.js → Paper-Dp3qO0cK.js} +18 -18
  16. package/dist/Select-Cdmu0dQ4.js +2175 -0
  17. package/dist/Typography-CXe5ytr0.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 +32 -32
  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 +4 -4
  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-liRRhQcN.js +1910 -0
  38. package/dist/createSvgIcon-B4TFefhd.js +73 -0
  39. package/dist/{createSvgIcon-DPZ7UbxM.js → createSvgIcon-Cl8kMTkx.js} +82 -85
  40. package/dist/{exactProp--3vlJ9a9.js → exactProp-CT2wqJXE.js} +2 -2
  41. package/dist/{index-CtuBGOmk.js → index-D9TdkXAs.js} +5 -5
  42. package/dist/{index-DzFccwzL.js → index-DRy8nExS.js} +205 -218
  43. package/dist/{listItemTextClasses-2BAu-hye.js → listItemTextClasses-BrCbmCR1.js} +2 -2
  44. package/dist/main.js +2 -2
  45. package/dist/{property-BSufYw1E.js → property-BsU8ijQF.js} +1056 -1087
  46. package/dist/styled-Dm8rXzIG.js +677 -0
  47. package/dist/useTheme-CTuK-wFF.js +10 -0
  48. package/dist/useThemeProps-BXn-nVhw.js +107 -0
  49. package/dist/{utils-qcu0RzdN.js → utils-DY9Jk4Ah.js} +2 -2
  50. package/package.json +3 -3
  51. package/dist/DialogContent-CKeAZ3Ts.js +0 -1982
  52. package/dist/FormControlLabel-Df7csguX.js +0 -827
  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/resolveComponentProps-DozbaB8e.js +0 -54
  59. package/dist/styled-CVWGE9ik.js +0 -142
  60. package/dist/styled-iyoioZCr.js +0 -1033
  61. package/dist/useTheme--x3BjP9A.js +0 -17
  62. package/dist/useTheme-pWltVFb2.js +0 -10
  63. package/dist/useThemeProps-C90JF0Qc.js +0 -62
  64. package/dist/useThemeProps-DNZoozBw.js +0 -26
@@ -1,178 +0,0 @@
1
- import { _ as s, a as B } from "./extends-Cyw62AD_.js";
2
- import * as W from "react";
3
- import { a as f, P as t } from "./createTheme-C3DKplhE.js";
4
- import { g as C, u as M, c as O, a as j } from "./chainPropTypes-GRMJ22CO.js";
5
- import { g as P, s as N, e as R } from "./styled-iyoioZCr.js";
6
- import { jsx as _ } from "react/jsx-runtime";
7
- function U(a) {
8
- return P("MuiTypography", a);
9
- }
10
- C("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
11
- const D = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"], E = (a) => {
12
- const {
13
- align: o,
14
- gutterBottom: r,
15
- noWrap: e,
16
- paragraph: i,
17
- variant: n,
18
- classes: h
19
- } = a, p = {
20
- root: ["root", n, a.align !== "inherit" && `align${f(o)}`, r && "gutterBottom", e && "noWrap", i && "paragraph"]
21
- };
22
- return j(p, U, h);
23
- }, L = N("span", {
24
- name: "MuiTypography",
25
- slot: "Root",
26
- overridesResolver: (a, o) => {
27
- const {
28
- ownerState: r
29
- } = a;
30
- return [o.root, r.variant && o[r.variant], r.align !== "inherit" && o[`align${f(r.align)}`], r.noWrap && o.noWrap, r.gutterBottom && o.gutterBottom, r.paragraph && o.paragraph];
31
- }
32
- })(({
33
- theme: a,
34
- ownerState: o
35
- }) => s({
36
- margin: 0
37
- }, o.variant === "inherit" && {
38
- // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
39
- font: "inherit"
40
- }, o.variant !== "inherit" && a.typography[o.variant], o.align !== "inherit" && {
41
- textAlign: o.align
42
- }, o.noWrap && {
43
- overflow: "hidden",
44
- textOverflow: "ellipsis",
45
- whiteSpace: "nowrap"
46
- }, o.gutterBottom && {
47
- marginBottom: "0.35em"
48
- }, o.paragraph && {
49
- marginBottom: 16
50
- })), u = {
51
- h1: "h1",
52
- h2: "h2",
53
- h3: "h3",
54
- h4: "h4",
55
- h5: "h5",
56
- h6: "h6",
57
- subtitle1: "h6",
58
- subtitle2: "h6",
59
- body1: "p",
60
- body2: "p",
61
- inherit: "p"
62
- }, V = {
63
- primary: "primary.main",
64
- textPrimary: "text.primary",
65
- secondary: "secondary.main",
66
- textSecondary: "text.secondary",
67
- error: "error.main"
68
- }, $ = (a) => V[a] || a, z = /* @__PURE__ */ W.forwardRef(function(o, r) {
69
- const e = M({
70
- props: o,
71
- name: "MuiTypography"
72
- }), i = $(e.color), n = R(s({}, e, {
73
- color: i
74
- })), {
75
- align: h = "inherit",
76
- className: p,
77
- component: g,
78
- gutterBottom: d = !1,
79
- noWrap: b = !1,
80
- paragraph: c = !1,
81
- variant: l = "body1",
82
- variantMapping: m = u
83
- } = n, v = B(n, D), y = s({}, n, {
84
- align: h,
85
- color: i,
86
- className: p,
87
- component: g,
88
- gutterBottom: d,
89
- noWrap: b,
90
- paragraph: c,
91
- variant: l,
92
- variantMapping: m
93
- }), T = g || (c ? "p" : m[l] || u[l]) || "span", x = E(y);
94
- return /* @__PURE__ */ _(L, s({
95
- as: T,
96
- ref: r,
97
- ownerState: y,
98
- className: O(x.root, p)
99
- }, v));
100
- });
101
- process.env.NODE_ENV !== "production" && (z.propTypes = {
102
- // ┌────────────────────────────── Warning ──────────────────────────────┐
103
- // │ These PropTypes are generated from the TypeScript type definitions. │
104
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
105
- // └─────────────────────────────────────────────────────────────────────┘
106
- /**
107
- * Set the text-align on the component.
108
- * @default 'inherit'
109
- */
110
- align: t.oneOf(["center", "inherit", "justify", "left", "right"]),
111
- /**
112
- * The content of the component.
113
- */
114
- children: t.node,
115
- /**
116
- * Override or extend the styles applied to the component.
117
- */
118
- classes: t.object,
119
- /**
120
- * @ignore
121
- */
122
- className: t.string,
123
- /**
124
- * The component used for the root node.
125
- * Either a string to use a HTML element or a component.
126
- */
127
- component: t.elementType,
128
- /**
129
- * If `true`, the text will have a bottom margin.
130
- * @default false
131
- */
132
- gutterBottom: t.bool,
133
- /**
134
- * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
135
- *
136
- * Note that text overflow can only happen with block or inline-block level elements
137
- * (the element needs to have a width in order to overflow).
138
- * @default false
139
- */
140
- noWrap: t.bool,
141
- /**
142
- * If `true`, the element will be a paragraph element.
143
- * @default false
144
- */
145
- paragraph: t.bool,
146
- /**
147
- * The system prop that allows defining system overrides as well as additional CSS styles.
148
- */
149
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
150
- /**
151
- * Applies the theme typography styles.
152
- * @default 'body1'
153
- */
154
- variant: t.oneOfType([t.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), t.string]),
155
- /**
156
- * The component maps the variant prop to a range of different HTML element types.
157
- * For instance, subtitle1 to `<h6>`.
158
- * If you wish to change that mapping, you can provide your own.
159
- * Alternatively, you can use the `component` prop.
160
- * @default {
161
- * h1: 'h1',
162
- * h2: 'h2',
163
- * h3: 'h3',
164
- * h4: 'h4',
165
- * h5: 'h5',
166
- * h6: 'h6',
167
- * subtitle1: 'h6',
168
- * subtitle2: 'h6',
169
- * body1: 'p',
170
- * body2: 'p',
171
- * inherit: 'p',
172
- * }
173
- */
174
- variantMapping: t.object
175
- });
176
- export {
177
- z as T
178
- };
@@ -1,96 +0,0 @@
1
- import * as a from "react";
2
- import { P as u } from "./createTheme-C3DKplhE.js";
3
- import "react/jsx-runtime";
4
- import { _ as c } from "./extends-Cyw62AD_.js";
5
- import { g as h } from "./styled-iyoioZCr.js";
6
- function d(e) {
7
- var o, n, t = "";
8
- if (typeof e == "string" || typeof e == "number") t += e;
9
- else if (typeof e == "object") if (Array.isArray(e)) {
10
- var r = e.length;
11
- for (o = 0; o < r; o++) e[o] && (n = d(e[o])) && (t && (t += " "), t += n);
12
- } else for (n in e) e[n] && (t && (t += " "), t += n);
13
- return t;
14
- }
15
- function O() {
16
- for (var e, o, n = 0, t = "", r = arguments.length; n < r; n++) (e = arguments[n]) && (o = d(e)) && (t && (t += " "), t += o);
17
- return t;
18
- }
19
- function P(e, o, n = void 0) {
20
- const t = {};
21
- return Object.keys(e).forEach(
22
- // `Object.keys(slots)` can't be wider than `T` because we infer `T` from `slots`.
23
- // @ts-expect-error https://github.com/microsoft/TypeScript/pull/12253#issuecomment-263132208
24
- (r) => {
25
- t[r] = e[r].reduce((s, i) => {
26
- if (i) {
27
- const l = o(i);
28
- l !== "" && s.push(l), n && n[i] && s.push(n[i]);
29
- }
30
- return s;
31
- }, []).join(" ");
32
- }
33
- ), t;
34
- }
35
- function f(e, o) {
36
- const n = c({}, o);
37
- return Object.keys(e).forEach((t) => {
38
- if (t.toString().match(/^(components|slots)$/))
39
- n[t] = c({}, e[t], n[t]);
40
- else if (t.toString().match(/^(componentsProps|slotProps)$/)) {
41
- const r = e[t] || {}, s = o[t];
42
- n[t] = {}, !s || !Object.keys(s) ? n[t] = r : !r || !Object.keys(r) ? n[t] = s : (n[t] = c({}, s), Object.keys(r).forEach((i) => {
43
- n[t][i] = f(r[i], s[i]);
44
- }));
45
- } else n[t] === void 0 && (n[t] = e[t]);
46
- }), n;
47
- }
48
- const v = /* @__PURE__ */ a.createContext(void 0);
49
- process.env.NODE_ENV !== "production" && (u.node, u.object);
50
- function y(e) {
51
- const {
52
- theme: o,
53
- name: n,
54
- props: t
55
- } = e;
56
- if (!o || !o.components || !o.components[n])
57
- return t;
58
- const r = o.components[n];
59
- return r.defaultProps ? f(r.defaultProps, t) : !r.styleOverrides && !r.variants ? f(r, t) : t;
60
- }
61
- function g({
62
- props: e,
63
- name: o
64
- }) {
65
- const n = a.useContext(v);
66
- return y({
67
- props: e,
68
- name: o,
69
- theme: {
70
- components: n
71
- }
72
- });
73
- }
74
- process.env.NODE_ENV !== "production" && (u.node, u.object.isRequired);
75
- function p(e) {
76
- return g(e);
77
- }
78
- function x(e, o, n = "Mui") {
79
- const t = {};
80
- return o.forEach((r) => {
81
- t[r] = h(e, r, n);
82
- }), t;
83
- }
84
- function C(e, o) {
85
- return process.env.NODE_ENV === "production" ? () => null : function(...t) {
86
- return e(...t) || o(...t);
87
- };
88
- }
89
- export {
90
- P as a,
91
- C as b,
92
- O as c,
93
- x as g,
94
- f as r,
95
- p as u
96
- };
@@ -1,63 +0,0 @@
1
- import { a as l, e as f } from "./createTheme-C3DKplhE.js";
2
- import { c as d, u as p } from "./createSvgIcon-DPZ7UbxM.js";
3
- import { C as g } from "./styled-iyoioZCr.js";
4
- import { c as b, u as v } from "./useId-BHG98T5I.js";
5
- import { d as h } from "./debounce-46wSf_lW.js";
6
- import { o as _ } from "./ownerWindow-niciwP7I.js";
7
- import { r as E } from "./requirePropFactory-BItwGLRQ.js";
8
- import { s as N, b as C, a as I, u as S, d as y } from "./ButtonBase-DE8d_U2E.js";
9
- import { i as $ } from "./isMuiElement-CxT3_ACP.js";
10
- import { o as O } from "./ownerDocument-CUrv0DIK.js";
11
- import { u as P } from "./unsupportedProp-BuVD30Gh.js";
12
- function j(e, r) {
13
- return process.env.NODE_ENV === "production" ? () => null : (s, o, n, u, i) => {
14
- const c = n || "<<anonymous>>", m = i || o;
15
- return typeof s[o] < "u" ? new Error(`The ${u} \`${m}\` of \`${c}\` is deprecated. ${r}`) : null;
16
- };
17
- }
18
- const w = {
19
- configure: (e) => {
20
- process.env.NODE_ENV !== "production" && console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.", "", "You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead", "", "The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401", "", "The updated documentation: https://mui.com/guides/classname-generator/"].join(`
21
- `)), g.configure(e);
22
- }
23
- }, F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
24
- __proto__: null,
25
- capitalize: l,
26
- createChainedFunction: b,
27
- createSvgIcon: d,
28
- debounce: h,
29
- deprecatedPropType: j,
30
- isMuiElement: $,
31
- ownerDocument: O,
32
- ownerWindow: _,
33
- requirePropFactory: E,
34
- setRef: N,
35
- unstable_ClassNameGenerator: w,
36
- unstable_useEnhancedEffect: C,
37
- unstable_useId: v,
38
- unsupportedProp: P,
39
- useControlled: p,
40
- useEventCallback: I,
41
- useForkRef: S,
42
- useIsFocusVisible: y
43
- }, Symbol.toStringTag, { value: "Module" }));
44
- var t = {};
45
- const T = /* @__PURE__ */ f(F);
46
- var a;
47
- function W() {
48
- return a || (a = 1, function(e) {
49
- "use client";
50
- Object.defineProperty(e, "__esModule", {
51
- value: !0
52
- }), Object.defineProperty(e, "default", {
53
- enumerable: !0,
54
- get: function() {
55
- return r.createSvgIcon;
56
- }
57
- });
58
- var r = T;
59
- }(t)), t;
60
- }
61
- export {
62
- W as r
63
- };