@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,21 +1,21 @@
1
1
  import { a as d, _ as c } from "./extends-Cyw62AD_.js";
2
2
  import * as m from "react";
3
- import { P as o } from "./createTheme-CCwx9ptk.js";
4
- import { g as C, u, c as f, a as y } from "./chainPropTypes-CwfDfLEA.js";
5
- import { g, s as v } from "./styled-fcu13kUF.js";
3
+ import { P as o } from "./createStyled-liRRhQcN.js";
4
+ import { g as C, u, c as f, a as y } from "./useThemeProps-BXn-nVhw.js";
5
+ import { g, s as v } from "./styled-Dm8rXzIG.js";
6
6
  import { jsx as x } from "react/jsx-runtime";
7
7
  function N(t) {
8
8
  return g("MuiCardContent", t);
9
9
  }
10
10
  C("MuiCardContent", ["root"]);
11
- const b = ["className", "component"], j = (t) => {
11
+ const T = ["className", "component"], b = (t) => {
12
12
  const {
13
13
  classes: s
14
14
  } = t;
15
15
  return y({
16
16
  root: ["root"]
17
17
  }, N, s);
18
- }, R = v("div", {
18
+ }, h = v("div", {
19
19
  name: "MuiCardContent",
20
20
  slot: "Root",
21
21
  overridesResolver: (t, s) => s.root
@@ -24,28 +24,28 @@ const b = ["className", "component"], j = (t) => {
24
24
  "&:last-child": {
25
25
  paddingBottom: 24
26
26
  }
27
- })), T = /* @__PURE__ */ m.forwardRef(function(s, n) {
27
+ })), j = /* @__PURE__ */ m.forwardRef(function(s, n) {
28
28
  const e = u({
29
29
  props: s,
30
30
  name: "MuiCardContent"
31
31
  }), {
32
32
  className: i,
33
33
  component: r = "div"
34
- } = e, p = d(e, b), a = c({}, e, {
34
+ } = e, p = d(e, T), a = c({}, e, {
35
35
  component: r
36
- }), l = j(a);
37
- return /* @__PURE__ */ x(R, c({
36
+ }), l = b(a);
37
+ return /* @__PURE__ */ x(h, c({
38
38
  as: r,
39
39
  className: f(l.root, i),
40
40
  ownerState: a,
41
41
  ref: n
42
42
  }, p));
43
43
  });
44
- process.env.NODE_ENV !== "production" && (T.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
- // └─────────────────────────────────────────────────────────────────────┘
44
+ process.env.NODE_ENV !== "production" && (j.propTypes = {
45
+ // ----------------------------- Warning --------------------------------
46
+ // | These PropTypes are generated from the TypeScript type definitions |
47
+ // | To update them edit the d.ts file and run "yarn proptypes" |
48
+ // ----------------------------------------------------------------------
49
49
  /**
50
50
  * The content of the component.
51
51
  */
@@ -69,5 +69,5 @@ process.env.NODE_ENV !== "production" && (T.propTypes = {
69
69
  sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
70
70
  });
71
71
  export {
72
- T as C
72
+ j as C
73
73
  };
@@ -1,47 +1,59 @@
1
- import { p as Z, n as ee, P as e, a as P } from "./createTheme-CCwx9ptk.js";
2
- import { e as oe, f as ne, T as te, C as se, g as q, s as F, r as V, a as ce } from "./styled-fcu13kUF.js";
3
- import { c as S, g as T, a as H, u as ae } from "./chainPropTypes-CwfDfLEA.js";
4
- import { a as $, _ as r } from "./extends-Cyw62AD_.js";
5
- import * as I from "react";
6
- import { a as re } from "./useTheme-BWgLzAUj.js";
7
- import { jsx as u, jsxs as ie } from "react/jsx-runtime";
8
- import { u as de } from "./useFormControl-CatNKXAi.js";
9
- import { B as le, r as U } from "./ButtonBase-C875Ww3z.js";
10
- import { u as ue, c as w } from "./createSvgIcon-pajAAvTK.js";
11
- const pe = ["className", "component"];
12
- function fe(o = {}) {
1
+ import { n as Z, s as ee, P as e, a as F } from "./createStyled-liRRhQcN.js";
2
+ import { c as oe, C as ne, g as E, s as S, r as te, a as se } from "./styled-Dm8rXzIG.js";
3
+ import { a as T, _ as r } from "./extends-Cyw62AD_.js";
4
+ import * as B from "react";
5
+ import { b as ce, g as M, c as q, a as V, u as ae } from "./useThemeProps-BXn-nVhw.js";
6
+ import { jsx as u, jsxs as re } from "react/jsx-runtime";
7
+ import { e as ie } from "./Typography-CXe5ytr0.js";
8
+ import { u as le } from "./useFormControl-CatNKXAi.js";
9
+ import { B as de, r as U } from "./ButtonBase-DJz-TFGO.js";
10
+ import { u as ue, c as z } from "./createSvgIcon-Cl8kMTkx.js";
11
+ function H(o) {
12
+ var n, s, t = "";
13
+ if (typeof o == "string" || typeof o == "number") t += o;
14
+ else if (typeof o == "object") if (Array.isArray(o)) {
15
+ var c = o.length;
16
+ for (n = 0; n < c; n++) o[n] && (s = H(o[n])) && (t && (t += " "), t += s);
17
+ } else for (s in o) o[s] && (t && (t += " "), t += s);
18
+ return t;
19
+ }
20
+ function pe() {
21
+ for (var o, n, s = 0, t = "", c = arguments.length; s < c; s++) (o = arguments[s]) && (n = H(o)) && (t && (t += " "), t += n);
22
+ return t;
23
+ }
24
+ const fe = ["className", "component"];
25
+ function me(o = {}) {
13
26
  const {
14
27
  themeId: n,
15
- defaultTheme: t,
16
- defaultClassName: c = "MuiBox-root",
17
- generateClassName: s
28
+ defaultTheme: s,
29
+ defaultClassName: t = "MuiBox-root",
30
+ generateClassName: c
18
31
  } = o, a = Z("div", {
19
32
  shouldForwardProp: (i) => i !== "theme" && i !== "sx" && i !== "as"
20
33
  })(ee);
21
- return /* @__PURE__ */ I.forwardRef(function(C, d) {
22
- const p = re(t), b = oe(C), {
34
+ return /* @__PURE__ */ B.forwardRef(function(b, l) {
35
+ const p = ce(s), h = ie(b), {
23
36
  className: m,
24
- component: k = "div"
25
- } = b, x = $(b, pe);
37
+ component: g = "div"
38
+ } = h, k = T(h, fe);
26
39
  return /* @__PURE__ */ u(a, r({
27
- as: k,
28
- ref: d,
29
- className: S(m, s ? s(c) : c),
40
+ as: g,
41
+ ref: l,
42
+ className: pe(m, c ? c(t) : t),
30
43
  theme: n && p[n] || p
31
- }, x));
44
+ }, k));
32
45
  });
33
46
  }
34
- const me = T("MuiBox", ["root"]), he = ne(), be = fe({
35
- themeId: te,
47
+ const he = oe(), be = me({
36
48
  defaultTheme: he,
37
- defaultClassName: me.root,
38
- generateClassName: se.generate
49
+ defaultClassName: "MuiBox-root",
50
+ generateClassName: ne.generate
39
51
  });
40
52
  process.env.NODE_ENV !== "production" && (be.propTypes = {
41
- // ┌────────────────────────────── Warning ──────────────────────────────┐
42
- // These PropTypes are generated from the TypeScript type definitions.
43
- // To update them, edit the d.ts file and run `pnpm proptypes`.
44
- // └─────────────────────────────────────────────────────────────────────┘
53
+ // ----------------------------- Warning --------------------------------
54
+ // | These PropTypes are generated from the TypeScript type definitions |
55
+ // | To update them edit the d.ts file and run "yarn proptypes" |
56
+ // ----------------------------------------------------------------------
45
57
  /**
46
58
  * @ignore
47
59
  */
@@ -56,22 +68,22 @@ process.env.NODE_ENV !== "production" && (be.propTypes = {
56
68
  */
57
69
  sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
58
70
  });
59
- function Ce(o) {
60
- return q("PrivateSwitchBase", o);
71
+ function ge(o) {
72
+ return E("PrivateSwitchBase", o);
61
73
  }
62
- T("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
74
+ M("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
63
75
  const ke = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked", "disabled", "disableFocusRipple", "edge", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"], xe = (o) => {
64
76
  const {
65
77
  classes: n,
66
- checked: t,
67
- disabled: c,
68
- edge: s
78
+ checked: s,
79
+ disabled: t,
80
+ edge: c
69
81
  } = o, a = {
70
- root: ["root", t && "checked", c && "disabled", s && `edge${P(s)}`],
82
+ root: ["root", s && "checked", t && "disabled", c && `edge${F(c)}`],
71
83
  input: ["input"]
72
84
  };
73
- return H(a, Ce, n);
74
- }, ge = F(le)(({
85
+ return V(a, ge, n);
86
+ }, Ce = S(de)(({
75
87
  ownerState: o
76
88
  }) => r({
77
89
  padding: 9,
@@ -80,9 +92,7 @@ const ke = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked"
80
92
  marginLeft: o.size === "small" ? -3 : -12
81
93
  }, o.edge === "end" && {
82
94
  marginRight: o.size === "small" ? -3 : -12
83
- })), ye = F("input", {
84
- shouldForwardProp: V
85
- })({
95
+ })), ye = S("input")({
86
96
  cursor: "inherit",
87
97
  position: "absolute",
88
98
  opacity: 0,
@@ -93,86 +103,86 @@ const ke = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked"
93
103
  margin: 0,
94
104
  padding: 0,
95
105
  zIndex: 1
96
- }), D = /* @__PURE__ */ I.forwardRef(function(n, t) {
106
+ }), L = /* @__PURE__ */ B.forwardRef(function(n, s) {
97
107
  const {
98
- autoFocus: c,
99
- checked: s,
108
+ autoFocus: t,
109
+ checked: c,
100
110
  checkedIcon: a,
101
- className: h,
111
+ className: I,
102
112
  defaultChecked: i,
103
- disabled: C,
104
- disableFocusRipple: d = !1,
113
+ disabled: b,
114
+ disableFocusRipple: l = !1,
105
115
  edge: p = !1,
106
- icon: b,
116
+ icon: h,
107
117
  id: m,
108
- inputProps: k,
109
- inputRef: x,
118
+ inputProps: g,
119
+ inputRef: k,
110
120
  name: R,
111
- onBlur: g,
112
- onChange: y,
113
- onFocus: v,
114
- readOnly: L,
115
- required: G = !1,
116
- tabIndex: W,
117
- type: z,
118
- value: _
119
- } = n, A = $(n, ke), [j, J] = ue({
120
- controlled: s,
121
+ onBlur: x,
122
+ onChange: C,
123
+ onFocus: y,
124
+ readOnly: D,
125
+ required: A = !1,
126
+ tabIndex: G,
127
+ type: P,
128
+ value: $
129
+ } = n, W = T(n, ke), [w, J] = ue({
130
+ controlled: c,
121
131
  default: !!i,
122
132
  name: "SwitchBase",
123
133
  state: "checked"
124
- }), f = de(), K = (l) => {
125
- v && v(l), f && f.onFocus && f.onFocus(l);
126
- }, Q = (l) => {
127
- g && g(l), f && f.onBlur && f.onBlur(l);
128
- }, X = (l) => {
129
- if (l.nativeEvent.defaultPrevented)
134
+ }), f = le(), K = (d) => {
135
+ y && y(d), f && f.onFocus && f.onFocus(d);
136
+ }, Q = (d) => {
137
+ x && x(d), f && f.onBlur && f.onBlur(d);
138
+ }, X = (d) => {
139
+ if (d.nativeEvent.defaultPrevented)
130
140
  return;
131
- const M = l.target.checked;
132
- J(M), y && y(l, M);
141
+ const _ = d.target.checked;
142
+ J(_), C && C(d, _);
133
143
  };
134
- let B = C;
135
- f && typeof B > "u" && (B = f.disabled);
136
- const Y = z === "checkbox" || z === "radio", N = r({}, n, {
137
- checked: j,
138
- disabled: B,
139
- disableFocusRipple: d,
144
+ let v = b;
145
+ f && typeof v > "u" && (v = f.disabled);
146
+ const Y = P === "checkbox" || P === "radio", N = r({}, n, {
147
+ checked: w,
148
+ disabled: v,
149
+ disableFocusRipple: l,
140
150
  edge: p
141
- }), E = xe(N);
142
- return /* @__PURE__ */ ie(ge, r({
151
+ }), j = xe(N);
152
+ return /* @__PURE__ */ re(Ce, r({
143
153
  component: "span",
144
- className: S(E.root, h),
154
+ className: q(j.root, I),
145
155
  centerRipple: !0,
146
- focusRipple: !d,
147
- disabled: B,
156
+ focusRipple: !l,
157
+ disabled: v,
148
158
  tabIndex: null,
149
159
  role: void 0,
150
160
  onFocus: K,
151
161
  onBlur: Q,
152
162
  ownerState: N,
153
- ref: t
154
- }, A, {
163
+ ref: s
164
+ }, W, {
155
165
  children: [/* @__PURE__ */ u(ye, r({
156
- autoFocus: c,
157
- checked: s,
166
+ autoFocus: t,
167
+ checked: c,
158
168
  defaultChecked: i,
159
- className: E.input,
160
- disabled: B,
169
+ className: j.input,
170
+ disabled: v,
161
171
  id: Y ? m : void 0,
162
172
  name: R,
163
173
  onChange: X,
164
- readOnly: L,
165
- ref: x,
166
- required: G,
174
+ readOnly: D,
175
+ ref: k,
176
+ required: A,
167
177
  ownerState: N,
168
- tabIndex: W,
169
- type: z
170
- }, z === "checkbox" && _ === void 0 ? {} : {
171
- value: _
172
- }, k)), j ? a : b]
178
+ tabIndex: G,
179
+ type: P
180
+ }, P === "checkbox" && $ === void 0 ? {} : {
181
+ value: $
182
+ }, g)), w ? a : h]
173
183
  }));
174
184
  });
175
- process.env.NODE_ENV !== "production" && (D.propTypes = {
185
+ process.env.NODE_ENV !== "production" && (L.propTypes = {
176
186
  /**
177
187
  * If `true`, the `input` element is focused during the first mount.
178
188
  */
@@ -187,6 +197,7 @@ process.env.NODE_ENV !== "production" && (D.propTypes = {
187
197
  checkedIcon: e.node.isRequired,
188
198
  /**
189
199
  * Override or extend the styles applied to the component.
200
+ * See [CSS API](#css) below for more details.
190
201
  */
191
202
  classes: e.object,
192
203
  /**
@@ -275,35 +286,34 @@ process.env.NODE_ENV !== "production" && (D.propTypes = {
275
286
  */
276
287
  value: e.any
277
288
  });
278
- const ve = w(/* @__PURE__ */ u("path", {
289
+ const ve = z(/* @__PURE__ */ u("path", {
279
290
  d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
280
- }), "CheckBoxOutlineBlank"), Be = w(/* @__PURE__ */ u("path", {
291
+ }), "CheckBoxOutlineBlank"), Be = z(/* @__PURE__ */ u("path", {
281
292
  d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
282
- }), "CheckBox"), Ie = w(/* @__PURE__ */ u("path", {
293
+ }), "CheckBox"), Ie = z(/* @__PURE__ */ u("path", {
283
294
  d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
284
295
  }), "IndeterminateCheckBox");
285
- function Pe(o) {
286
- return q("MuiCheckbox", o);
296
+ function Re(o) {
297
+ return E("MuiCheckbox", o);
287
298
  }
288
- const O = T("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]), Re = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size", "className"], ze = (o) => {
299
+ const O = M("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary"]), Pe = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size", "className"], Ne = (o) => {
289
300
  const {
290
301
  classes: n,
291
- indeterminate: t,
292
- color: c,
293
- size: s
294
- } = o, a = {
295
- root: ["root", t && "indeterminate", `color${P(c)}`, `size${P(s)}`]
296
- }, h = H(a, Pe, n);
297
- return r({}, n, h);
298
- }, Ne = F(D, {
299
- shouldForwardProp: (o) => V(o) || o === "classes",
302
+ indeterminate: s,
303
+ color: t
304
+ } = o, c = {
305
+ root: ["root", s && "indeterminate", `color${F(t)}`]
306
+ }, a = V(c, Re, n);
307
+ return r({}, n, a);
308
+ }, Oe = S(L, {
309
+ shouldForwardProp: (o) => te(o) || o === "classes",
300
310
  name: "MuiCheckbox",
301
311
  slot: "Root",
302
312
  overridesResolver: (o, n) => {
303
313
  const {
304
- ownerState: t
314
+ ownerState: s
305
315
  } = o;
306
- return [n.root, t.indeterminate && n.indeterminate, n[`size${P(t.size)}`], t.color !== "default" && n[`color${P(t.color)}`]];
316
+ return [n.root, s.indeterminate && n.indeterminate, s.color !== "default" && n[`color${F(s.color)}`]];
307
317
  }
308
318
  })(({
309
319
  theme: o,
@@ -312,7 +322,7 @@ const O = T("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
312
322
  color: (o.vars || o).palette.text.secondary
313
323
  }, !n.disableRipple && {
314
324
  "&:hover": {
315
- backgroundColor: o.vars ? `rgba(${n.color === "default" ? o.vars.palette.action.activeChannel : o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : ce(n.color === "default" ? o.palette.action.active : o.palette[n.color].main, o.palette.action.hoverOpacity),
325
+ backgroundColor: o.vars ? `rgba(${n.color === "default" ? o.vars.palette.action.activeChannel : o.vars.palette.primary.mainChannel} / ${o.vars.palette.action.hoverOpacity})` : se(n.color === "default" ? o.palette.action.active : o.palette[n.color].main, o.palette.action.hoverOpacity),
316
326
  // Reset on touch devices, it doesn't add specificity
317
327
  "@media (hover: none)": {
318
328
  backgroundColor: "transparent"
@@ -325,48 +335,48 @@ const O = T("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
325
335
  [`&.${O.disabled}`]: {
326
336
  color: (o.vars || o).palette.action.disabled
327
337
  }
328
- })), Oe = /* @__PURE__ */ u(Be, {}), Fe = /* @__PURE__ */ u(ve, {}), Se = /* @__PURE__ */ u(Ie, {}), Te = /* @__PURE__ */ I.forwardRef(function(n, t) {
329
- var c, s;
338
+ })), Fe = /* @__PURE__ */ u(Be, {}), Se = /* @__PURE__ */ u(ve, {}), Te = /* @__PURE__ */ u(Ie, {}), ze = /* @__PURE__ */ B.forwardRef(function(n, s) {
339
+ var t, c;
330
340
  const a = ae({
331
341
  props: n,
332
342
  name: "MuiCheckbox"
333
343
  }), {
334
- checkedIcon: h = Oe,
344
+ checkedIcon: I = Fe,
335
345
  color: i = "primary",
336
- icon: C = Fe,
337
- indeterminate: d = !1,
338
- indeterminateIcon: p = Se,
339
- inputProps: b,
346
+ icon: b = Se,
347
+ indeterminate: l = !1,
348
+ indeterminateIcon: p = Te,
349
+ inputProps: h,
340
350
  size: m = "medium",
341
- className: k
342
- } = a, x = $(a, Re), R = d ? p : C, g = d ? p : h, y = r({}, a, {
351
+ className: g
352
+ } = a, k = T(a, Pe), R = l ? p : b, x = l ? p : I, C = r({}, a, {
343
353
  color: i,
344
- indeterminate: d,
354
+ indeterminate: l,
345
355
  size: m
346
- }), v = ze(y);
347
- return /* @__PURE__ */ u(Ne, r({
356
+ }), y = Ne(C);
357
+ return /* @__PURE__ */ u(Oe, r({
348
358
  type: "checkbox",
349
359
  inputProps: r({
350
- "data-indeterminate": d
351
- }, b),
352
- icon: /* @__PURE__ */ I.cloneElement(R, {
353
- fontSize: (c = R.props.fontSize) != null ? c : m
360
+ "data-indeterminate": l
361
+ }, h),
362
+ icon: /* @__PURE__ */ B.cloneElement(R, {
363
+ fontSize: (t = R.props.fontSize) != null ? t : m
354
364
  }),
355
- checkedIcon: /* @__PURE__ */ I.cloneElement(g, {
356
- fontSize: (s = g.props.fontSize) != null ? s : m
365
+ checkedIcon: /* @__PURE__ */ B.cloneElement(x, {
366
+ fontSize: (c = x.props.fontSize) != null ? c : m
357
367
  }),
358
- ownerState: y,
359
- ref: t,
360
- className: S(v.root, k)
361
- }, x, {
362
- classes: v
368
+ ownerState: C,
369
+ ref: s,
370
+ className: q(y.root, g)
371
+ }, k, {
372
+ classes: y
363
373
  }));
364
374
  });
365
- process.env.NODE_ENV !== "production" && (Te.propTypes = {
366
- // ┌────────────────────────────── Warning ──────────────────────────────┐
367
- // These PropTypes are generated from the TypeScript type definitions.
368
- // To update them, edit the d.ts file and run `pnpm proptypes`.
369
- // └─────────────────────────────────────────────────────────────────────┘
375
+ process.env.NODE_ENV !== "production" && (ze.propTypes = {
376
+ // ----------------------------- Warning --------------------------------
377
+ // | These PropTypes are generated from the TypeScript type definitions |
378
+ // | To update them edit the d.ts file and run "yarn proptypes" |
379
+ // ----------------------------------------------------------------------
370
380
  /**
371
381
  * If `true`, the component is checked.
372
382
  */
@@ -387,7 +397,7 @@ process.env.NODE_ENV !== "production" && (Te.propTypes = {
387
397
  /**
388
398
  * The color of the component.
389
399
  * It supports both default and custom theme colors, which can be added as shown in the
390
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
400
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
391
401
  * @default 'primary'
392
402
  */
393
403
  color: e.oneOfType([e.oneOf(["default", "primary", "secondary", "error", "info", "success", "warning"]), e.string]),
@@ -465,5 +475,5 @@ process.env.NODE_ENV !== "production" && (Te.propTypes = {
465
475
  });
466
476
  export {
467
477
  be as B,
468
- Te as C
478
+ ze as C
469
479
  };