@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.
- package/dist/{ButtonBase-DE8d_U2E.js → ButtonBase-DJz-TFGO.js} +199 -207
- package/dist/{CardContent-Du2i427Y.js → CardContent-DZnCVGy9.js} +15 -15
- package/dist/{Checkbox-BGNAqLl0.js → Checkbox-DzmWBCrt.js} +154 -144
- package/dist/{Collapse-FRd0_2Pt.js → Collapse-NqW0GIK_.js} +79 -77
- package/dist/DialogContent-D51w7KVX.js +2119 -0
- package/dist/{FormControl-ChTmxscy.js → FormControl-aXQs42m6.js} +496 -466
- package/dist/FormControlLabel-hDa-xf_q.js +639 -0
- package/dist/{IconButton-Cu_XEJB2.js → IconButton-SnBOFQ43.js} +22 -22
- package/dist/{Input-DU22-Zbo.js → Input-CeVb6kjv.js} +34 -34
- package/dist/{InputAdornment-6aeADcPO.js → InputAdornment-fM3loNyx.js} +12 -12
- package/dist/{List-nOXr-cFJ.js → List-DLIiXc6r.js} +10 -10
- package/dist/{ListItem-RJvRMwkZ.js → ListItem-BkxmqFI8.js} +23 -23
- package/dist/{MenuItem-DF45rx2m.js → MenuItem-BEW28T9O.js} +27 -27
- package/dist/{OutlinedInput-DJCHjkR3.js → OutlinedInput-DkzLHRTd.js} +75 -78
- package/dist/{Paper-CD_ma6NJ.js → Paper-Dp3qO0cK.js} +18 -18
- package/dist/Select-Cdmu0dQ4.js +2175 -0
- package/dist/Typography-CXe5ytr0.js +201 -0
- package/dist/components/card/index.js +17 -17
- package/dist/components/card/styled.js +1 -1
- package/dist/components/collapsible-card/style.js +222 -302
- package/dist/components/confirm/dialog.js +13 -13
- package/dist/components/container/index.js +19 -19
- package/dist/components/context-menu/index.js +32 -32
- package/dist/components/data-management/instance-form/components/composite-list/index.js +1 -1
- package/dist/components/data-management/instance-form/components/variable/index.js +6 -6
- package/dist/components/data-management/instance-form/components/variables/index.js +1 -1
- package/dist/components/geometry-picker/index.js +3 -3
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/map/styled.js +14 -14
- package/dist/components/search-input/index.js +4 -4
- package/dist/components/template-property-filters/index.js +1 -1
- package/dist/components/template-property-filters/property.js +4 -4
- package/dist/components/tree-select/index.js +4 -4
- package/dist/components/treeview-filter/index.js +29 -30
- package/dist/components/treeview-filter/item/index.js +1 -1
- package/dist/components/treeview-filter/item-label/index.js +2 -2
- package/dist/createStyled-liRRhQcN.js +1910 -0
- package/dist/createSvgIcon-B4TFefhd.js +73 -0
- package/dist/{createSvgIcon-DPZ7UbxM.js → createSvgIcon-Cl8kMTkx.js} +82 -85
- package/dist/{exactProp--3vlJ9a9.js → exactProp-CT2wqJXE.js} +2 -2
- package/dist/{index-CtuBGOmk.js → index-D9TdkXAs.js} +5 -5
- package/dist/{index-DzFccwzL.js → index-DRy8nExS.js} +205 -218
- package/dist/{listItemTextClasses-2BAu-hye.js → listItemTextClasses-BrCbmCR1.js} +2 -2
- package/dist/main.js +2 -2
- package/dist/{property-BSufYw1E.js → property-BsU8ijQF.js} +1056 -1087
- package/dist/styled-Dm8rXzIG.js +677 -0
- package/dist/useTheme-CTuK-wFF.js +10 -0
- package/dist/useThemeProps-BXn-nVhw.js +107 -0
- package/dist/{utils-qcu0RzdN.js → utils-DY9Jk4Ah.js} +2 -2
- package/package.json +3 -3
- package/dist/DialogContent-CKeAZ3Ts.js +0 -1982
- package/dist/FormControlLabel-Df7csguX.js +0 -827
- package/dist/Select-C1jD_gBQ.js +0 -2305
- package/dist/Typography-C2BkMNk-.js +0 -178
- package/dist/chainPropTypes-GRMJ22CO.js +0 -96
- package/dist/createSvgIcon-6wv0RQr3.js +0 -63
- package/dist/createTheme-C3DKplhE.js +0 -2395
- package/dist/resolveComponentProps-DozbaB8e.js +0 -54
- package/dist/styled-CVWGE9ik.js +0 -142
- package/dist/styled-iyoioZCr.js +0 -1033
- package/dist/useTheme--x3BjP9A.js +0 -17
- package/dist/useTheme-pWltVFb2.js +0 -10
- package/dist/useThemeProps-C90JF0Qc.js +0 -62
- package/dist/useThemeProps-DNZoozBw.js +0 -26
|
@@ -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 "./
|
|
4
|
-
import { g as C, u, c as f, a as y } from "./
|
|
5
|
-
import { g, s as v } from "./styled-
|
|
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
|
|
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
|
-
},
|
|
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
|
-
})),
|
|
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,
|
|
34
|
+
} = e, p = d(e, T), a = c({}, e, {
|
|
35
35
|
component: r
|
|
36
|
-
}), l =
|
|
37
|
-
return /* @__PURE__ */ x(
|
|
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" && (
|
|
45
|
-
//
|
|
46
|
-
//
|
|
47
|
-
//
|
|
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
|
-
|
|
72
|
+
j as C
|
|
73
73
|
};
|
|
@@ -1,47 +1,59 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { u as re } from "
|
|
7
|
-
import {
|
|
8
|
-
import { u as
|
|
9
|
-
import { B as
|
|
10
|
-
import { u as ue, c as
|
|
11
|
-
|
|
12
|
-
|
|
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:
|
|
16
|
-
defaultClassName:
|
|
17
|
-
generateClassName:
|
|
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__ */
|
|
22
|
-
const p =
|
|
34
|
+
return /* @__PURE__ */ B.forwardRef(function(b, l) {
|
|
35
|
+
const p = ce(s), h = ie(b), {
|
|
23
36
|
className: m,
|
|
24
|
-
component:
|
|
25
|
-
} =
|
|
37
|
+
component: g = "div"
|
|
38
|
+
} = h, k = T(h, fe);
|
|
26
39
|
return /* @__PURE__ */ u(a, r({
|
|
27
|
-
as:
|
|
28
|
-
ref:
|
|
29
|
-
className:
|
|
40
|
+
as: g,
|
|
41
|
+
ref: l,
|
|
42
|
+
className: pe(m, c ? c(t) : t),
|
|
30
43
|
theme: n && p[n] || p
|
|
31
|
-
},
|
|
44
|
+
}, k));
|
|
32
45
|
});
|
|
33
46
|
}
|
|
34
|
-
const
|
|
35
|
-
themeId: te,
|
|
47
|
+
const he = oe(), be = me({
|
|
36
48
|
defaultTheme: he,
|
|
37
|
-
defaultClassName:
|
|
38
|
-
generateClassName:
|
|
49
|
+
defaultClassName: "MuiBox-root",
|
|
50
|
+
generateClassName: ne.generate
|
|
39
51
|
});
|
|
40
52
|
process.env.NODE_ENV !== "production" && (be.propTypes = {
|
|
41
|
-
//
|
|
42
|
-
//
|
|
43
|
-
//
|
|
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
|
|
60
|
-
return
|
|
71
|
+
function ge(o) {
|
|
72
|
+
return E("PrivateSwitchBase", o);
|
|
61
73
|
}
|
|
62
|
-
|
|
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:
|
|
67
|
-
disabled:
|
|
68
|
-
edge:
|
|
78
|
+
checked: s,
|
|
79
|
+
disabled: t,
|
|
80
|
+
edge: c
|
|
69
81
|
} = o, a = {
|
|
70
|
-
root: ["root",
|
|
82
|
+
root: ["root", s && "checked", t && "disabled", c && `edge${F(c)}`],
|
|
71
83
|
input: ["input"]
|
|
72
84
|
};
|
|
73
|
-
return
|
|
74
|
-
},
|
|
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 =
|
|
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
|
-
}),
|
|
106
|
+
}), L = /* @__PURE__ */ B.forwardRef(function(n, s) {
|
|
97
107
|
const {
|
|
98
|
-
autoFocus:
|
|
99
|
-
checked:
|
|
108
|
+
autoFocus: t,
|
|
109
|
+
checked: c,
|
|
100
110
|
checkedIcon: a,
|
|
101
|
-
className:
|
|
111
|
+
className: I,
|
|
102
112
|
defaultChecked: i,
|
|
103
|
-
disabled:
|
|
104
|
-
disableFocusRipple:
|
|
113
|
+
disabled: b,
|
|
114
|
+
disableFocusRipple: l = !1,
|
|
105
115
|
edge: p = !1,
|
|
106
|
-
icon:
|
|
116
|
+
icon: h,
|
|
107
117
|
id: m,
|
|
108
|
-
inputProps:
|
|
109
|
-
inputRef:
|
|
118
|
+
inputProps: g,
|
|
119
|
+
inputRef: k,
|
|
110
120
|
name: R,
|
|
111
|
-
onBlur:
|
|
112
|
-
onChange:
|
|
113
|
-
onFocus:
|
|
114
|
-
readOnly:
|
|
115
|
-
required:
|
|
116
|
-
tabIndex:
|
|
117
|
-
type:
|
|
118
|
-
value:
|
|
119
|
-
} = n,
|
|
120
|
-
controlled:
|
|
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 =
|
|
125
|
-
|
|
126
|
-
}, Q = (
|
|
127
|
-
|
|
128
|
-
}, X = (
|
|
129
|
-
if (
|
|
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
|
|
132
|
-
J(
|
|
141
|
+
const _ = d.target.checked;
|
|
142
|
+
J(_), C && C(d, _);
|
|
133
143
|
};
|
|
134
|
-
let
|
|
135
|
-
f && typeof
|
|
136
|
-
const Y =
|
|
137
|
-
checked:
|
|
138
|
-
disabled:
|
|
139
|
-
disableFocusRipple:
|
|
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
|
-
}),
|
|
142
|
-
return /* @__PURE__ */
|
|
151
|
+
}), j = xe(N);
|
|
152
|
+
return /* @__PURE__ */ re(Ce, r({
|
|
143
153
|
component: "span",
|
|
144
|
-
className:
|
|
154
|
+
className: q(j.root, I),
|
|
145
155
|
centerRipple: !0,
|
|
146
|
-
focusRipple: !
|
|
147
|
-
disabled:
|
|
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:
|
|
154
|
-
},
|
|
163
|
+
ref: s
|
|
164
|
+
}, W, {
|
|
155
165
|
children: [/* @__PURE__ */ u(ye, r({
|
|
156
|
-
autoFocus:
|
|
157
|
-
checked:
|
|
166
|
+
autoFocus: t,
|
|
167
|
+
checked: c,
|
|
158
168
|
defaultChecked: i,
|
|
159
|
-
className:
|
|
160
|
-
disabled:
|
|
169
|
+
className: j.input,
|
|
170
|
+
disabled: v,
|
|
161
171
|
id: Y ? m : void 0,
|
|
162
172
|
name: R,
|
|
163
173
|
onChange: X,
|
|
164
|
-
readOnly:
|
|
165
|
-
ref:
|
|
166
|
-
required:
|
|
174
|
+
readOnly: D,
|
|
175
|
+
ref: k,
|
|
176
|
+
required: A,
|
|
167
177
|
ownerState: N,
|
|
168
|
-
tabIndex:
|
|
169
|
-
type:
|
|
170
|
-
},
|
|
171
|
-
value:
|
|
172
|
-
},
|
|
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" && (
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
|
286
|
-
return
|
|
296
|
+
function Re(o) {
|
|
297
|
+
return E("MuiCheckbox", o);
|
|
287
298
|
}
|
|
288
|
-
const 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:
|
|
292
|
-
color:
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
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:
|
|
314
|
+
ownerState: s
|
|
305
315
|
} = o;
|
|
306
|
-
return [n.root,
|
|
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
|
|
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
|
-
})),
|
|
329
|
-
var
|
|
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:
|
|
344
|
+
checkedIcon: I = Fe,
|
|
335
345
|
color: i = "primary",
|
|
336
|
-
icon:
|
|
337
|
-
indeterminate:
|
|
338
|
-
indeterminateIcon: p =
|
|
339
|
-
inputProps:
|
|
346
|
+
icon: b = Se,
|
|
347
|
+
indeterminate: l = !1,
|
|
348
|
+
indeterminateIcon: p = Te,
|
|
349
|
+
inputProps: h,
|
|
340
350
|
size: m = "medium",
|
|
341
|
-
className:
|
|
342
|
-
} = 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:
|
|
354
|
+
indeterminate: l,
|
|
345
355
|
size: m
|
|
346
|
-
}),
|
|
347
|
-
return /* @__PURE__ */ u(
|
|
356
|
+
}), y = Ne(C);
|
|
357
|
+
return /* @__PURE__ */ u(Oe, r({
|
|
348
358
|
type: "checkbox",
|
|
349
359
|
inputProps: r({
|
|
350
|
-
"data-indeterminate":
|
|
351
|
-
},
|
|
352
|
-
icon: /* @__PURE__ */
|
|
353
|
-
fontSize: (
|
|
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__ */
|
|
356
|
-
fontSize: (
|
|
365
|
+
checkedIcon: /* @__PURE__ */ B.cloneElement(x, {
|
|
366
|
+
fontSize: (c = x.props.fontSize) != null ? c : m
|
|
357
367
|
}),
|
|
358
|
-
ownerState:
|
|
359
|
-
ref:
|
|
360
|
-
className:
|
|
361
|
-
},
|
|
362
|
-
classes:
|
|
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" && (
|
|
366
|
-
//
|
|
367
|
-
//
|
|
368
|
-
//
|
|
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/#
|
|
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
|
-
|
|
478
|
+
ze as C
|
|
469
479
|
};
|