@hybridcore/ui 1.3.6 → 1.4.0
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/AccordionDetails-CGs6GZQK.js +454 -0
- package/dist/Add-eepk2WTM.js +379 -0
- package/dist/Box-BPyg-Ybm.js +70 -0
- package/dist/Button-DLwB_sKd.js +354 -0
- package/dist/{ButtonBase-D6qhsxB0.js → ButtonBase-D0qccOVb.js} +6 -5
- package/dist/{CardContent-B8hqgH-I.js → CardContent-DFsCCOWk.js} +4 -4
- package/dist/{Checkbox-BFWhj3s-.js → Checkbox-qy3cjvnb.js} +134 -195
- package/dist/{Collapse-D_TjnyE5.js → Collapse-CL6LGGZw.js} +68 -75
- package/dist/Delete-OHEw9lDi.js +22 -0
- package/dist/DialogContent-CxOSq6h9.js +519 -0
- package/dist/FormControlLabel-D9KFjcIx.js +193 -0
- package/dist/{IconButton-D8bwME9t.js → IconButton-BaiyAtmS.js} +5 -5
- package/dist/{Input-Dxzguyp5.js → Input-CmCkXczh.js} +6 -6
- package/dist/{InputAdornment-B8ERE7Zv.js → InputAdornment-CZUPEeia.js} +5 -5
- package/dist/{FormControl-BMRUQKHh.js → InputLabel-CWkW8NtU.js} +316 -316
- package/dist/{List-DEWyK9IO.js → List-PpNAWJ_I.js} +4 -4
- package/dist/ListItem-CZbZ91vp.js +428 -0
- package/dist/{MenuItem-DstAFfik.js → MenuItem-D-INSvZa.js} +7 -7
- package/dist/{Modal-DNGEQJ1M.js → Modal-KrI5qFIq.js} +61 -57
- package/dist/{OutlinedInput-w2Cj9STF.js → OutlinedInput-DkIUD30e.js} +6 -6
- package/dist/{Paper-BseeergJ.js → Paper-btu3j72o.js} +5 -5
- package/dist/{Select-NDq3WyLt.js → Select-ClaBvSqf.js} +20 -18
- package/dist/Tabs-BzelDJKy.js +787 -0
- package/dist/TextField-D87qTh1k.js +457 -0
- package/dist/Typography-Bm7PFqUT.js +176 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/components/card/index.js +6 -6
- package/dist/components/card/styled.js +1 -1
- package/dist/components/collapsible-card/style.js +20 -466
- package/dist/components/confirm/dialog.js +8 -149
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/container/index.js +7 -7
- package/dist/components/context-menu/index.js +191 -604
- package/dist/components/data-security-selectors/dissemination-list/index.js +12 -6
- package/dist/components/data-security-selectors/security-level/index.js +46 -45
- package/dist/components/date-time-picker/index.js +85 -64
- package/dist/components/geometry-picker/coordinate/index.js +1 -1
- package/dist/components/geometry-picker/edit/index.js +16 -16
- package/dist/components/geometry-picker/geometry/index.js +35 -35
- package/dist/components/geometry-picker/index.js +60 -56
- package/dist/components/geometry-picker/kml/index.js +14 -14
- package/dist/components/geometry-picker/map/index.js +1 -1
- package/dist/components/geometry-picker/map/logic.js +38 -37
- package/dist/components/geometry-picker/parser/coordinate-input/logic.js +63 -59
- package/dist/components/geometry-picker/parser/logic.js +33 -32
- package/dist/components/geometry-picker/styled.js +22 -14
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/icon-button/styled.js +0 -2
- package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/index.js +2 -2
- package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/styled.js +15 -6
- package/dist/components/instance-form/components/variable/index.js +19 -0
- package/dist/components/instance-form/components/variables/index.js +40 -0
- package/dist/components/{data-management/instance-form → instance-form}/index.js +174 -155
- package/dist/components/instance-hierarchy-table/index.js +58 -0
- package/dist/components/instance-hierarchy-table/styled.js +29 -0
- package/dist/components/instance-table/index.js +125 -0
- package/dist/components/instance-table/styled.js +13 -0
- package/dist/components/map/helpers/ol.js +1 -1
- package/dist/components/map/index.js +1 -1
- package/dist/components/map/logic.js +1 -1
- package/dist/components/map/styled.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/property-mapping/index.js +558 -0
- package/dist/components/range-selector/components/composite-list-range/index.js +81 -0
- package/dist/components/range-selector/components/date-range/index.js +9 -0
- package/dist/components/range-selector/components/geometry-range/index.js +26 -0
- package/dist/components/range-selector/components/number-range/index.js +86 -0
- package/dist/components/range-selector/components/string-range/index.js +31 -0
- package/dist/components/range-selector/index.js +59 -0
- package/dist/components/search-input/index.js +4 -4
- package/dist/components/tabs/appleTabs.style.js +55 -0
- package/dist/components/tabs/index.js +93 -0
- package/dist/components/tabs/tab-panel.js +18 -0
- package/dist/components/template-form/components/catalogue-instance-selector/index.js +158 -0
- package/dist/components/template-form/components/property-list/index.js +72 -0
- package/dist/components/template-form/components/property-list/property-list-columns.js +125 -0
- package/dist/components/template-form/components/property-list/property-list-form.js +16 -0
- package/dist/components/template-form/components/property-list/property-list-logic.js +66 -0
- package/dist/components/template-form/components/property-list/types.js +8 -0
- package/dist/components/template-form/components/recognition-property-list/index.js +69 -0
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +50 -0
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +174 -0
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-logic.js +64 -0
- package/dist/components/template-form/components/recognition-property-list/types.js +8 -0
- package/dist/components/template-form/components/select-icon/index.js +186 -0
- package/dist/components/template-form/components/select-icon/styled.js +76 -0
- package/dist/components/template-form/index.js +338 -0
- package/dist/components/template-property-filters/property.js +48 -46
- package/dist/components/tree-select/index.js +51 -49
- package/dist/components/tree-select/styled.js +2 -2
- package/dist/components/treeview-filter/index.js +8 -8
- package/dist/components/treeview-filter/item/index.js +1 -1
- package/dist/components/treeview-filter/item-label/index.js +18 -17
- package/dist/constants/index.js +41 -0
- package/dist/{createStyled-B96gjom1.js → createStyled-BzvgQjjR.js} +487 -464
- package/dist/createSvgIcon-Cfm1LkEe.js +73 -0
- package/dist/{createSvgIcon-BNrb7rDY.js → createSvgIcon-DEXLbMwp.js} +62 -90
- package/dist/dialog-v5-nL5yy.js +153 -0
- package/dist/{exactProp-CI_rjX83.js → exactProp-DkmnwNVS.js} +3 -3
- package/dist/extendSxProp-qqdkfHzS.js +30 -0
- package/dist/{index-CSfSVkKj.js → index-B0JPwFI9.js} +6 -5
- package/dist/index-C1fczHEW.js +11042 -0
- package/dist/index-DPf5olog.js +288 -0
- package/dist/{index-JrtqxUdI.js → index-DlnzUkwe.js} +1 -1
- package/dist/{listItemTextClasses-CFiI_U7B.js → listItemTextClasses-DsHGzpPM.js} +2 -2
- package/dist/main.d.ts +569 -81
- package/dist/main.js +157 -157
- package/dist/{ol-BUKJ1urU.js → ol-CHaVTXvL.js} +24 -24
- package/dist/property-list-form-BfP9gzSo.js +391 -0
- package/dist/requirePropFactory-BjhhI-AW.js +18 -0
- package/dist/{styled-cPJbqF0E.js → styled-LNCprp4n.js} +24 -22
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/useControlled-BYdyS7Pn.js +31 -0
- package/dist/{useTheme-C-T6Qisa.js → useTheme-DBiahn6p.js} +2 -2
- package/dist/{useThemeProps-DeftUmqJ.js → useThemeProps-uYx_RkOH.js} +16 -14
- package/dist/utils/ontology.js +52 -30
- package/dist/{utils-CCkxV0lZ.js → utils-DNe_YYjm.js} +16 -16
- package/package.json +2 -1
- package/dist/DialogContent-BCYm_d1s.js +0 -864
- package/dist/FormControlLabel-DENNVXWL.js +0 -639
- package/dist/Typography-Dg-ROiTA.js +0 -201
- package/dist/components/data-management/instance-form/components/variable/index.js +0 -17
- package/dist/components/data-management/instance-form/components/variables/index.js +0 -39
- package/dist/createSvgIcon-B2WT0K4k.js +0 -87
- package/dist/index-B3Oj04nl.js +0 -287
- package/dist/components/{data-management/instance-form → instance-form}/components/policy-list/index.js +0 -0
- package/dist/{extends-Cyw62AD_.js → objectWithoutPropertiesLoose-BK36oJDi.js} +9 -9
|
@@ -1,89 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
function
|
|
12
|
-
|
|
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;
|
|
1
|
+
import { _ as r, a as _ } from "./objectWithoutPropertiesLoose-BK36oJDi.js";
|
|
2
|
+
import * as x from "react";
|
|
3
|
+
import { P as e, a as z } from "./createStyled-BzvgQjjR.js";
|
|
4
|
+
import { g as q, c as E, a as M, u as Y } from "./useThemeProps-uYx_RkOH.js";
|
|
5
|
+
import { g as U, s as S, r as Z, a as ee } from "./styled-LNCprp4n.js";
|
|
6
|
+
import { u as oe } from "./useFormControl-CatNKXAi.js";
|
|
7
|
+
import { jsxs as ne, jsx as l } from "react/jsx-runtime";
|
|
8
|
+
import { B as te, r as V } from "./ButtonBase-D0qccOVb.js";
|
|
9
|
+
import { u as ce } from "./useControlled-BYdyS7Pn.js";
|
|
10
|
+
import { c as w } from "./createSvgIcon-DEXLbMwp.js";
|
|
11
|
+
function se(o) {
|
|
12
|
+
return U("PrivateSwitchBase", o);
|
|
19
13
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return t;
|
|
23
|
-
}
|
|
24
|
-
const fe = ["className", "component"];
|
|
25
|
-
function me(o = {}) {
|
|
26
|
-
const {
|
|
27
|
-
themeId: n,
|
|
28
|
-
defaultTheme: s,
|
|
29
|
-
defaultClassName: t = "MuiBox-root",
|
|
30
|
-
generateClassName: c
|
|
31
|
-
} = o, a = Z("div", {
|
|
32
|
-
shouldForwardProp: (i) => i !== "theme" && i !== "sx" && i !== "as"
|
|
33
|
-
})(ee);
|
|
34
|
-
return /* @__PURE__ */ B.forwardRef(function(b, l) {
|
|
35
|
-
const p = ce(s), h = ie(b), {
|
|
36
|
-
className: m,
|
|
37
|
-
component: g = "div"
|
|
38
|
-
} = h, k = T(h, fe);
|
|
39
|
-
return /* @__PURE__ */ u(a, r({
|
|
40
|
-
as: g,
|
|
41
|
-
ref: l,
|
|
42
|
-
className: pe(m, c ? c(t) : t),
|
|
43
|
-
theme: n && p[n] || p
|
|
44
|
-
}, k));
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
const he = oe(), be = me({
|
|
48
|
-
defaultTheme: he,
|
|
49
|
-
defaultClassName: "MuiBox-root",
|
|
50
|
-
generateClassName: ne.generate
|
|
51
|
-
});
|
|
52
|
-
process.env.NODE_ENV !== "production" && (be.propTypes = {
|
|
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
|
-
// ----------------------------------------------------------------------
|
|
57
|
-
/**
|
|
58
|
-
* @ignore
|
|
59
|
-
*/
|
|
60
|
-
children: e.node,
|
|
61
|
-
/**
|
|
62
|
-
* The component used for the root node.
|
|
63
|
-
* Either a string to use a HTML element or a component.
|
|
64
|
-
*/
|
|
65
|
-
component: e.elementType,
|
|
66
|
-
/**
|
|
67
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
68
|
-
*/
|
|
69
|
-
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
70
|
-
});
|
|
71
|
-
function ge(o) {
|
|
72
|
-
return E("PrivateSwitchBase", o);
|
|
73
|
-
}
|
|
74
|
-
M("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
|
|
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) => {
|
|
14
|
+
q("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
|
|
15
|
+
const ae = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked", "disabled", "disableFocusRipple", "edge", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"], re = (o) => {
|
|
76
16
|
const {
|
|
77
17
|
classes: n,
|
|
78
|
-
checked:
|
|
79
|
-
disabled:
|
|
18
|
+
checked: t,
|
|
19
|
+
disabled: i,
|
|
80
20
|
edge: c
|
|
81
|
-
} = o,
|
|
82
|
-
root: ["root",
|
|
21
|
+
} = o, s = {
|
|
22
|
+
root: ["root", t && "checked", i && "disabled", c && `edge${z(c)}`],
|
|
83
23
|
input: ["input"]
|
|
84
24
|
};
|
|
85
|
-
return
|
|
86
|
-
},
|
|
25
|
+
return M(s, se, n);
|
|
26
|
+
}, ie = S(te)(({
|
|
87
27
|
ownerState: o
|
|
88
28
|
}) => r({
|
|
89
29
|
padding: 9,
|
|
@@ -92,7 +32,7 @@ const ke = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked"
|
|
|
92
32
|
marginLeft: o.size === "small" ? -3 : -12
|
|
93
33
|
}, o.edge === "end" && {
|
|
94
34
|
marginRight: o.size === "small" ? -3 : -12
|
|
95
|
-
})),
|
|
35
|
+
})), de = S("input")({
|
|
96
36
|
cursor: "inherit",
|
|
97
37
|
position: "absolute",
|
|
98
38
|
opacity: 0,
|
|
@@ -103,86 +43,86 @@ const ke = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked"
|
|
|
103
43
|
margin: 0,
|
|
104
44
|
padding: 0,
|
|
105
45
|
zIndex: 1
|
|
106
|
-
}),
|
|
46
|
+
}), H = /* @__PURE__ */ x.forwardRef(function(n, t) {
|
|
107
47
|
const {
|
|
108
|
-
autoFocus:
|
|
48
|
+
autoFocus: i,
|
|
109
49
|
checked: c,
|
|
110
|
-
checkedIcon:
|
|
111
|
-
className:
|
|
112
|
-
defaultChecked:
|
|
113
|
-
disabled:
|
|
114
|
-
disableFocusRipple:
|
|
115
|
-
edge:
|
|
116
|
-
icon:
|
|
117
|
-
id:
|
|
118
|
-
inputProps:
|
|
119
|
-
inputRef:
|
|
120
|
-
name:
|
|
121
|
-
onBlur:
|
|
122
|
-
onChange:
|
|
123
|
-
onFocus:
|
|
124
|
-
readOnly:
|
|
125
|
-
required:
|
|
126
|
-
tabIndex:
|
|
127
|
-
type:
|
|
128
|
-
value:
|
|
129
|
-
} = n,
|
|
50
|
+
checkedIcon: s,
|
|
51
|
+
className: v,
|
|
52
|
+
defaultChecked: k,
|
|
53
|
+
disabled: I,
|
|
54
|
+
disableFocusRipple: u = !1,
|
|
55
|
+
edge: C = !1,
|
|
56
|
+
icon: B,
|
|
57
|
+
id: p,
|
|
58
|
+
inputProps: R,
|
|
59
|
+
inputRef: P,
|
|
60
|
+
name: g,
|
|
61
|
+
onBlur: f,
|
|
62
|
+
onChange: h,
|
|
63
|
+
onFocus: m,
|
|
64
|
+
readOnly: L,
|
|
65
|
+
required: D = !1,
|
|
66
|
+
tabIndex: W,
|
|
67
|
+
type: y,
|
|
68
|
+
value: N
|
|
69
|
+
} = n, A = _(n, ae), [$, G] = ce({
|
|
130
70
|
controlled: c,
|
|
131
|
-
default: !!
|
|
71
|
+
default: !!k,
|
|
132
72
|
name: "SwitchBase",
|
|
133
73
|
state: "checked"
|
|
134
|
-
}),
|
|
135
|
-
|
|
136
|
-
},
|
|
137
|
-
|
|
138
|
-
},
|
|
139
|
-
if (
|
|
74
|
+
}), d = oe(), J = (a) => {
|
|
75
|
+
m && m(a), d && d.onFocus && d.onFocus(a);
|
|
76
|
+
}, K = (a) => {
|
|
77
|
+
f && f(a), d && d.onBlur && d.onBlur(a);
|
|
78
|
+
}, Q = (a) => {
|
|
79
|
+
if (a.nativeEvent.defaultPrevented)
|
|
140
80
|
return;
|
|
141
|
-
const
|
|
142
|
-
|
|
81
|
+
const T = a.target.checked;
|
|
82
|
+
G(T), h && h(a, T);
|
|
143
83
|
};
|
|
144
|
-
let
|
|
145
|
-
|
|
146
|
-
const
|
|
147
|
-
checked:
|
|
148
|
-
disabled:
|
|
149
|
-
disableFocusRipple:
|
|
150
|
-
edge:
|
|
151
|
-
}), j =
|
|
152
|
-
return /* @__PURE__ */
|
|
84
|
+
let b = I;
|
|
85
|
+
d && typeof b > "u" && (b = d.disabled);
|
|
86
|
+
const X = y === "checkbox" || y === "radio", F = r({}, n, {
|
|
87
|
+
checked: $,
|
|
88
|
+
disabled: b,
|
|
89
|
+
disableFocusRipple: u,
|
|
90
|
+
edge: C
|
|
91
|
+
}), j = re(F);
|
|
92
|
+
return /* @__PURE__ */ ne(ie, r({
|
|
153
93
|
component: "span",
|
|
154
|
-
className:
|
|
94
|
+
className: E(j.root, v),
|
|
155
95
|
centerRipple: !0,
|
|
156
|
-
focusRipple: !
|
|
157
|
-
disabled:
|
|
96
|
+
focusRipple: !u,
|
|
97
|
+
disabled: b,
|
|
158
98
|
tabIndex: null,
|
|
159
99
|
role: void 0,
|
|
160
|
-
onFocus:
|
|
161
|
-
onBlur:
|
|
162
|
-
ownerState:
|
|
163
|
-
ref:
|
|
164
|
-
},
|
|
165
|
-
children: [/* @__PURE__ */
|
|
166
|
-
autoFocus:
|
|
100
|
+
onFocus: J,
|
|
101
|
+
onBlur: K,
|
|
102
|
+
ownerState: F,
|
|
103
|
+
ref: t
|
|
104
|
+
}, A, {
|
|
105
|
+
children: [/* @__PURE__ */ l(de, r({
|
|
106
|
+
autoFocus: i,
|
|
167
107
|
checked: c,
|
|
168
|
-
defaultChecked:
|
|
108
|
+
defaultChecked: k,
|
|
169
109
|
className: j.input,
|
|
170
|
-
disabled:
|
|
171
|
-
id:
|
|
172
|
-
name:
|
|
173
|
-
onChange:
|
|
174
|
-
readOnly:
|
|
175
|
-
ref:
|
|
176
|
-
required:
|
|
177
|
-
ownerState:
|
|
178
|
-
tabIndex:
|
|
179
|
-
type:
|
|
180
|
-
},
|
|
181
|
-
value:
|
|
182
|
-
},
|
|
110
|
+
disabled: b,
|
|
111
|
+
id: X ? p : void 0,
|
|
112
|
+
name: g,
|
|
113
|
+
onChange: Q,
|
|
114
|
+
readOnly: L,
|
|
115
|
+
ref: P,
|
|
116
|
+
required: D,
|
|
117
|
+
ownerState: F,
|
|
118
|
+
tabIndex: W,
|
|
119
|
+
type: y
|
|
120
|
+
}, y === "checkbox" && N === void 0 ? {} : {
|
|
121
|
+
value: N
|
|
122
|
+
}, R)), $ ? s : B]
|
|
183
123
|
}));
|
|
184
124
|
});
|
|
185
|
-
process.env.NODE_ENV !== "production" && (
|
|
125
|
+
process.env.NODE_ENV !== "production" && (H.propTypes = {
|
|
186
126
|
/**
|
|
187
127
|
* If `true`, the `input` element is focused during the first mount.
|
|
188
128
|
*/
|
|
@@ -240,7 +180,7 @@ process.env.NODE_ENV !== "production" && (L.propTypes = {
|
|
|
240
180
|
/**
|
|
241
181
|
* Pass a ref to the `input` element.
|
|
242
182
|
*/
|
|
243
|
-
inputRef:
|
|
183
|
+
inputRef: V,
|
|
244
184
|
/*
|
|
245
185
|
* @ignore
|
|
246
186
|
*/
|
|
@@ -286,34 +226,34 @@ process.env.NODE_ENV !== "production" && (L.propTypes = {
|
|
|
286
226
|
*/
|
|
287
227
|
value: e.any
|
|
288
228
|
});
|
|
289
|
-
const
|
|
229
|
+
const le = w(/* @__PURE__ */ l("path", {
|
|
290
230
|
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"
|
|
291
|
-
}), "CheckBoxOutlineBlank"),
|
|
231
|
+
}), "CheckBoxOutlineBlank"), ue = w(/* @__PURE__ */ l("path", {
|
|
292
232
|
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"
|
|
293
|
-
}), "CheckBox"),
|
|
233
|
+
}), "CheckBox"), pe = w(/* @__PURE__ */ l("path", {
|
|
294
234
|
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"
|
|
295
235
|
}), "IndeterminateCheckBox");
|
|
296
|
-
function
|
|
297
|
-
return
|
|
236
|
+
function fe(o) {
|
|
237
|
+
return U("MuiCheckbox", o);
|
|
298
238
|
}
|
|
299
|
-
const O =
|
|
239
|
+
const O = q("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary"]), he = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size", "className"], me = (o) => {
|
|
300
240
|
const {
|
|
301
241
|
classes: n,
|
|
302
|
-
indeterminate:
|
|
303
|
-
color:
|
|
242
|
+
indeterminate: t,
|
|
243
|
+
color: i
|
|
304
244
|
} = o, c = {
|
|
305
|
-
root: ["root",
|
|
306
|
-
},
|
|
307
|
-
return r({}, n,
|
|
308
|
-
},
|
|
309
|
-
shouldForwardProp: (o) =>
|
|
245
|
+
root: ["root", t && "indeterminate", `color${z(i)}`]
|
|
246
|
+
}, s = M(c, fe, n);
|
|
247
|
+
return r({}, n, s);
|
|
248
|
+
}, be = S(H, {
|
|
249
|
+
shouldForwardProp: (o) => Z(o) || o === "classes",
|
|
310
250
|
name: "MuiCheckbox",
|
|
311
251
|
slot: "Root",
|
|
312
252
|
overridesResolver: (o, n) => {
|
|
313
253
|
const {
|
|
314
|
-
ownerState:
|
|
254
|
+
ownerState: t
|
|
315
255
|
} = o;
|
|
316
|
-
return [n.root,
|
|
256
|
+
return [n.root, t.indeterminate && n.indeterminate, t.color !== "default" && n[`color${z(t.color)}`]];
|
|
317
257
|
}
|
|
318
258
|
})(({
|
|
319
259
|
theme: o,
|
|
@@ -322,7 +262,7 @@ const O = M("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
|
|
|
322
262
|
color: (o.vars || o).palette.text.secondary
|
|
323
263
|
}, !n.disableRipple && {
|
|
324
264
|
"&:hover": {
|
|
325
|
-
backgroundColor: o.vars ? `rgba(${n.color === "default" ? o.vars.palette.action.activeChannel : o.vars.palette.primary.mainChannel} / ${o.vars.palette.action.hoverOpacity})` :
|
|
265
|
+
backgroundColor: o.vars ? `rgba(${n.color === "default" ? o.vars.palette.action.activeChannel : o.vars.palette.primary.mainChannel} / ${o.vars.palette.action.hoverOpacity})` : ee(n.color === "default" ? o.palette.action.active : o.palette[n.color].main, o.palette.action.hoverOpacity),
|
|
326
266
|
// Reset on touch devices, it doesn't add specificity
|
|
327
267
|
"@media (hover: none)": {
|
|
328
268
|
backgroundColor: "transparent"
|
|
@@ -335,44 +275,44 @@ const O = M("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "col
|
|
|
335
275
|
[`&.${O.disabled}`]: {
|
|
336
276
|
color: (o.vars || o).palette.action.disabled
|
|
337
277
|
}
|
|
338
|
-
})),
|
|
339
|
-
var
|
|
340
|
-
const
|
|
278
|
+
})), ke = /* @__PURE__ */ l(ue, {}), Ce = /* @__PURE__ */ l(le, {}), ge = /* @__PURE__ */ l(pe, {}), ye = /* @__PURE__ */ x.forwardRef(function(n, t) {
|
|
279
|
+
var i, c;
|
|
280
|
+
const s = Y({
|
|
341
281
|
props: n,
|
|
342
282
|
name: "MuiCheckbox"
|
|
343
283
|
}), {
|
|
344
|
-
checkedIcon:
|
|
345
|
-
color:
|
|
346
|
-
icon:
|
|
347
|
-
indeterminate:
|
|
348
|
-
indeterminateIcon:
|
|
349
|
-
inputProps:
|
|
350
|
-
size:
|
|
351
|
-
className:
|
|
352
|
-
} =
|
|
353
|
-
color:
|
|
354
|
-
indeterminate:
|
|
355
|
-
size:
|
|
356
|
-
}),
|
|
357
|
-
return /* @__PURE__ */
|
|
284
|
+
checkedIcon: v = ke,
|
|
285
|
+
color: k = "primary",
|
|
286
|
+
icon: I = Ce,
|
|
287
|
+
indeterminate: u = !1,
|
|
288
|
+
indeterminateIcon: C = ge,
|
|
289
|
+
inputProps: B,
|
|
290
|
+
size: p = "medium",
|
|
291
|
+
className: R
|
|
292
|
+
} = s, P = _(s, he), g = u ? C : I, f = u ? C : v, h = r({}, s, {
|
|
293
|
+
color: k,
|
|
294
|
+
indeterminate: u,
|
|
295
|
+
size: p
|
|
296
|
+
}), m = me(h);
|
|
297
|
+
return /* @__PURE__ */ l(be, r({
|
|
358
298
|
type: "checkbox",
|
|
359
299
|
inputProps: r({
|
|
360
|
-
"data-indeterminate":
|
|
361
|
-
},
|
|
362
|
-
icon: /* @__PURE__ */
|
|
363
|
-
fontSize: (
|
|
300
|
+
"data-indeterminate": u
|
|
301
|
+
}, B),
|
|
302
|
+
icon: /* @__PURE__ */ x.cloneElement(g, {
|
|
303
|
+
fontSize: (i = g.props.fontSize) != null ? i : p
|
|
364
304
|
}),
|
|
365
|
-
checkedIcon: /* @__PURE__ */
|
|
366
|
-
fontSize: (c =
|
|
305
|
+
checkedIcon: /* @__PURE__ */ x.cloneElement(f, {
|
|
306
|
+
fontSize: (c = f.props.fontSize) != null ? c : p
|
|
367
307
|
}),
|
|
368
|
-
ownerState:
|
|
369
|
-
ref:
|
|
370
|
-
className:
|
|
371
|
-
},
|
|
372
|
-
classes:
|
|
308
|
+
ownerState: h,
|
|
309
|
+
ref: t,
|
|
310
|
+
className: E(m.root, R)
|
|
311
|
+
}, P, {
|
|
312
|
+
classes: m
|
|
373
313
|
}));
|
|
374
314
|
});
|
|
375
|
-
process.env.NODE_ENV !== "production" && (
|
|
315
|
+
process.env.NODE_ENV !== "production" && (ye.propTypes = {
|
|
376
316
|
// ----------------------------- Warning --------------------------------
|
|
377
317
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
378
318
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -444,7 +384,7 @@ process.env.NODE_ENV !== "production" && (ze.propTypes = {
|
|
|
444
384
|
/**
|
|
445
385
|
* Pass a ref to the `input` element.
|
|
446
386
|
*/
|
|
447
|
-
inputRef:
|
|
387
|
+
inputRef: V,
|
|
448
388
|
/**
|
|
449
389
|
* Callback fired when the state is changed.
|
|
450
390
|
*
|
|
@@ -474,6 +414,5 @@ process.env.NODE_ENV !== "production" && (ze.propTypes = {
|
|
|
474
414
|
value: e.any
|
|
475
415
|
});
|
|
476
416
|
export {
|
|
477
|
-
|
|
478
|
-
ze as C
|
|
417
|
+
ye as C
|
|
479
418
|
};
|