@hybridcore/ui 1.3.2 → 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 (68) hide show
  1. package/dist/{ButtonBase-C875Ww3z.js → ButtonBase-DJz-TFGO.js} +200 -208
  2. package/dist/{CardContent-pWhEcyoR.js → CardContent-DZnCVGy9.js} +15 -15
  3. package/dist/{Checkbox-COCZU8Yl.js → Checkbox-DzmWBCrt.js} +154 -144
  4. package/dist/{Collapse-CZFw4GZs.js → Collapse-NqW0GIK_.js} +79 -77
  5. package/dist/DialogContent-D51w7KVX.js +2119 -0
  6. package/dist/FormControl-aXQs42m6.js +1363 -0
  7. package/dist/FormControlLabel-hDa-xf_q.js +639 -0
  8. package/dist/{IconButton-DM-0JFx9.js → IconButton-SnBOFQ43.js} +22 -22
  9. package/dist/{Input-DgIhcA8j.js → Input-CeVb6kjv.js} +34 -34
  10. package/dist/InputAdornment-fM3loNyx.js +155 -0
  11. package/dist/{List-Dz3Z1qJk.js → List-DLIiXc6r.js} +10 -10
  12. package/dist/{ListItem-DnyWDeDF.js → ListItem-BkxmqFI8.js} +23 -23
  13. package/dist/{MenuItem-BjC83iWq.js → MenuItem-BEW28T9O.js} +27 -27
  14. package/dist/{OutlinedInput-CS2BwiVg.js → OutlinedInput-DkzLHRTd.js} +75 -78
  15. package/dist/{Paper-seBMlMwu.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/date-time-picker/index.js +4 -4
  28. package/dist/components/geometry-picker/index.js +7 -6
  29. package/dist/components/icon-button/index.js +1 -1
  30. package/dist/components/map/styled.js +14 -14
  31. package/dist/components/search-input/index.js +10 -9
  32. package/dist/components/template-property-filters/index.js +1 -1
  33. package/dist/components/template-property-filters/property.js +4 -4
  34. package/dist/components/tree-select/index.js +4 -4
  35. package/dist/components/treeview-filter/index.js +29 -30
  36. package/dist/components/treeview-filter/item/index.js +1 -1
  37. package/dist/components/treeview-filter/item-label/index.js +2 -2
  38. package/dist/createStyled-liRRhQcN.js +1910 -0
  39. package/dist/createSvgIcon-B4TFefhd.js +73 -0
  40. package/dist/{createSvgIcon-pajAAvTK.js → createSvgIcon-Cl8kMTkx.js} +82 -85
  41. package/dist/{exactProp-D0xuoiRB.js → exactProp-CT2wqJXE.js} +2 -2
  42. package/dist/{index-tNZngrO0.js → index-D9TdkXAs.js} +10 -10
  43. package/dist/{index-DlFdC7eU.js → index-DRy8nExS.js} +205 -218
  44. package/dist/{listItemTextClasses-DRMkDW2V.js → listItemTextClasses-BrCbmCR1.js} +2 -2
  45. package/dist/main.js +248 -326
  46. package/dist/property-BsU8ijQF.js +6857 -0
  47. package/dist/requirePropFactory-BItwGLRQ.js +18 -0
  48. package/dist/styled-Dm8rXzIG.js +677 -0
  49. package/dist/useTheme-CTuK-wFF.js +10 -0
  50. package/dist/useThemeProps-BXn-nVhw.js +107 -0
  51. package/dist/{utils-Cbb4HUTT.js → utils-DY9Jk4Ah.js} +2 -2
  52. package/package.json +4 -4
  53. package/dist/DialogContent-DhcqAG-q.js +0 -1982
  54. package/dist/FormControl-BhwmBUAq.js +0 -1479
  55. package/dist/FormControlLabel-BL6c4YAN.js +0 -827
  56. package/dist/Select-C8Iimh3g.js +0 -2305
  57. package/dist/Typography-CqyjdT7p.js +0 -178
  58. package/dist/chainPropTypes-CwfDfLEA.js +0 -96
  59. package/dist/createSvgIcon-CTQMsmqJ.js +0 -77
  60. package/dist/createTheme-CCwx9ptk.js +0 -2395
  61. package/dist/property-CKak9_tn.js +0 -7020
  62. package/dist/resolveComponentProps-DVsx78bV.js +0 -54
  63. package/dist/styled-CPg13iuX.js +0 -142
  64. package/dist/styled-fcu13kUF.js +0 -1033
  65. package/dist/useTheme-BWgLzAUj.js +0 -18
  66. package/dist/useTheme-pp7LSyyX.js +0 -10
  67. package/dist/useThemeProps-CDWnyqCh.js +0 -62
  68. package/dist/useThemeProps-DOuXhu3E.js +0 -27
@@ -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-CCwx9ptk.js";
4
- import { g as C, u as M, c as O, a as j } from "./chainPropTypes-CwfDfLEA.js";
5
- import { g as P, s as N, e as R } from "./styled-fcu13kUF.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-CCwx9ptk.js";
3
- import "react/jsx-runtime";
4
- import { _ as c } from "./extends-Cyw62AD_.js";
5
- import { g as h } from "./styled-fcu13kUF.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,77 +0,0 @@
1
- import { a as g, b as v } from "./createTheme-CCwx9ptk.js";
2
- import { c as b, u as _ } from "./createSvgIcon-pajAAvTK.js";
3
- import { C as y } from "./styled-fcu13kUF.js";
4
- import { c as E, u as C } from "./useId-BHG98T5I.js";
5
- import { d as N } from "./debounce-46wSf_lW.js";
6
- import { o as S } from "./ownerWindow-niciwP7I.js";
7
- import { _ as I } from "./extends-Cyw62AD_.js";
8
- import { s as $, u as T, a as P, b as w, d as O } from "./ButtonBase-C875Ww3z.js";
9
- import { i as j } from "./isMuiElement-CxT3_ACP.js";
10
- import { o as q } from "./ownerDocument-CUrv0DIK.js";
11
- import { u as F } from "./unsupportedProp-BuVD30Gh.js";
12
- function k(e, r) {
13
- return process.env.NODE_ENV === "production" ? () => null : (n, u, s, t, o) => {
14
- const a = s || "<<anonymous>>", i = o || u;
15
- return typeof n[u] < "u" ? new Error(`The ${t} \`${i}\` of \`${a}\` is deprecated. ${r}`) : null;
16
- };
17
- }
18
- function D(e, r) {
19
- if (process.env.NODE_ENV === "production")
20
- return () => null;
21
- const n = r ? I({}, r.propTypes) : null;
22
- return (s) => (t, o, a, i, l, ...h) => {
23
- const m = l || o, f = n == null ? void 0 : n[m];
24
- if (f) {
25
- const d = f(t, o, a, i, l, ...h);
26
- if (d)
27
- return d;
28
- }
29
- return typeof t[o] < "u" && !t[s] ? new Error(`The prop \`${m}\` of \`${e}\` can only be used together with the \`${s}\` prop.`) : null;
30
- };
31
- }
32
- const G = {
33
- configure: (e) => {
34
- 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(`
35
- `)), y.configure(e);
36
- }
37
- }, M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
38
- __proto__: null,
39
- capitalize: g,
40
- createChainedFunction: E,
41
- createSvgIcon: b,
42
- debounce: N,
43
- deprecatedPropType: k,
44
- isMuiElement: j,
45
- ownerDocument: q,
46
- ownerWindow: S,
47
- requirePropFactory: D,
48
- setRef: $,
49
- unstable_ClassNameGenerator: G,
50
- unstable_useEnhancedEffect: T,
51
- unstable_useId: C,
52
- unsupportedProp: F,
53
- useControlled: _,
54
- useEventCallback: P,
55
- useForkRef: w,
56
- useIsFocusVisible: O
57
- }, Symbol.toStringTag, { value: "Module" }));
58
- var c = {};
59
- const R = /* @__PURE__ */ v(M);
60
- var p;
61
- function L() {
62
- return p || (p = 1, function(e) {
63
- "use client";
64
- Object.defineProperty(e, "__esModule", {
65
- value: !0
66
- }), Object.defineProperty(e, "default", {
67
- enumerable: !0,
68
- get: function() {
69
- return r.createSvgIcon;
70
- }
71
- });
72
- var r = R;
73
- }(c)), c;
74
- }
75
- export {
76
- L as r
77
- };