@hybridcore/ui 1.3.3 → 1.3.5
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-D6qhsxB0.js} +201 -210
- package/dist/{CardContent-Du2i427Y.js → CardContent-B8hqgH-I.js} +15 -15
- package/dist/{Checkbox-BGNAqLl0.js → Checkbox-BFWhj3s-.js} +154 -144
- package/dist/{Collapse-FRd0_2Pt.js → Collapse-D_TjnyE5.js} +96 -87
- package/dist/DialogContent-BCYm_d1s.js +864 -0
- package/dist/{FormControl-ChTmxscy.js → FormControl-BMRUQKHh.js} +479 -449
- package/dist/FormControlLabel-DENNVXWL.js +639 -0
- package/dist/{IconButton-Cu_XEJB2.js → IconButton-D8bwME9t.js} +22 -22
- package/dist/{Input-DU22-Zbo.js → Input-Dxzguyp5.js} +34 -34
- package/dist/{InputAdornment-6aeADcPO.js → InputAdornment-B8ERE7Zv.js} +12 -12
- package/dist/{List-nOXr-cFJ.js → List-DEWyK9IO.js} +12 -12
- package/dist/{MenuItem-DF45rx2m.js → MenuItem-DstAFfik.js} +26 -26
- package/dist/Modal-DNGEQJ1M.js +1267 -0
- package/dist/{OutlinedInput-DJCHjkR3.js → OutlinedInput-w2Cj9STF.js} +75 -78
- package/dist/{Paper-CD_ma6NJ.js → Paper-BseeergJ.js} +15 -15
- package/dist/Select-NDq3WyLt.js +2175 -0
- package/dist/Typography-Dg-ROiTA.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 +616 -203
- 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 +209 -10
- 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-B96gjom1.js +1887 -0
- package/dist/createSvgIcon-B2WT0K4k.js +87 -0
- package/dist/{createSvgIcon-DPZ7UbxM.js → createSvgIcon-BNrb7rDY.js} +82 -85
- package/dist/{exactProp--3vlJ9a9.js → exactProp-CI_rjX83.js} +2 -2
- package/dist/{index-CtuBGOmk.js → index-B3Oj04nl.js} +5 -5
- package/dist/{index-DzFccwzL.js → index-CSfSVkKj.js} +204 -218
- package/dist/{listItemTextClasses-2BAu-hye.js → listItemTextClasses-CFiI_U7B.js} +2 -2
- package/dist/main.js +150 -144
- package/dist/styled-cPJbqF0E.js +677 -0
- package/dist/useTheme-C-T6Qisa.js +10 -0
- package/dist/useThemeProps-DeftUmqJ.js +107 -0
- package/dist/{utils-qcu0RzdN.js → utils-CCkxV0lZ.js} +15 -15
- package/package.json +3 -3
- package/dist/DialogContent-CKeAZ3Ts.js +0 -1982
- package/dist/FormControlLabel-Df7csguX.js +0 -827
- package/dist/ListItem-RJvRMwkZ.js +0 -428
- 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/property-BSufYw1E.js +0 -6888
- package/dist/requirePropFactory-BItwGLRQ.js +0 -18
- package/dist/resolveComponentProps-DozbaB8e.js +0 -54
- package/dist/styled-CVWGE9ik.js +0 -142
- package/dist/styled-iyoioZCr.js +0 -1033
- package/dist/unsupportedProp-BuVD30Gh.js +0 -9
- 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,88 +1,49 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import * as
|
|
6
|
-
import {
|
|
7
|
-
import { g as
|
|
8
|
-
import {
|
|
9
|
-
import { u as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Object.defineProperty(k, "__esModule", {
|
|
1
|
+
import L, { jsxs as V, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { r as F, i as z } from "../../createSvgIcon-B2WT0K4k.js";
|
|
3
|
+
import { g as M, s as u } from "../../styled-cPJbqF0E.js";
|
|
4
|
+
import { _ as d, a as w } from "../../extends-Cyw62AD_.js";
|
|
5
|
+
import * as i from "react";
|
|
6
|
+
import { r as H, P as e } from "../../createStyled-B96gjom1.js";
|
|
7
|
+
import { g as E, u as I, c as R, b as J, a as $ } from "../../useThemeProps-DeftUmqJ.js";
|
|
8
|
+
import { P as K } from "../../Paper-BseeergJ.js";
|
|
9
|
+
import { u as Q } from "../../createSvgIcon-BNrb7rDY.js";
|
|
10
|
+
import { C as X } from "../../Collapse-D_TjnyE5.js";
|
|
11
|
+
import { B as Y } from "../../ButtonBase-D6qhsxB0.js";
|
|
12
|
+
var j = {}, Z = z;
|
|
13
|
+
Object.defineProperty(j, "__esModule", {
|
|
15
14
|
value: !0
|
|
16
15
|
});
|
|
17
|
-
var
|
|
18
|
-
|
|
16
|
+
var G = j.default = void 0, oo = Z(F()), eo = L;
|
|
17
|
+
G = j.default = (0, oo.default)(/* @__PURE__ */ (0, eo.jsx)("path", {
|
|
19
18
|
d: "M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"
|
|
20
19
|
}), "ArrowForwardIosSharp");
|
|
21
|
-
const
|
|
22
|
-
process.env.NODE_ENV !== "production" && (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
const {
|
|
26
|
-
className: t,
|
|
27
|
-
elementType: s,
|
|
28
|
-
ownerState: n,
|
|
29
|
-
externalForwardedProps: i,
|
|
30
|
-
getSlotOwnerState: d,
|
|
31
|
-
internalForwardedProps: p
|
|
32
|
-
} = r, m = A(r, fo), {
|
|
33
|
-
component: T,
|
|
34
|
-
slots: u = {
|
|
35
|
-
[o]: void 0
|
|
36
|
-
},
|
|
37
|
-
slotProps: C = {
|
|
38
|
-
[o]: void 0
|
|
39
|
-
}
|
|
40
|
-
} = i;
|
|
41
|
-
A(i, mo);
|
|
42
|
-
const v = u[o] || s, b = eo(C[o], n), S = ro(c({
|
|
43
|
-
className: t
|
|
44
|
-
}, m, {
|
|
45
|
-
externalForwardedProps: void 0,
|
|
46
|
-
externalSlotProps: b
|
|
47
|
-
})), {
|
|
48
|
-
props: {
|
|
49
|
-
component: g
|
|
50
|
-
},
|
|
51
|
-
internalRef: x
|
|
52
|
-
} = S, a = A(S.props, bo), N = so(x, b == null ? void 0 : b.ref, r.ref), P = d ? d(a) : {}, R = c({}, n, P), E = g, M = to(v, c({}, o === "root", !u[o] && p, a, E && {
|
|
53
|
-
as: E
|
|
54
|
-
}, {
|
|
55
|
-
ref: N
|
|
56
|
-
}), R);
|
|
57
|
-
return Object.keys(P).forEach((w) => {
|
|
58
|
-
delete M[w];
|
|
59
|
-
}), [v, M];
|
|
20
|
+
const D = /* @__PURE__ */ i.createContext({});
|
|
21
|
+
process.env.NODE_ENV !== "production" && (D.displayName = "AccordionContext");
|
|
22
|
+
function ro(o) {
|
|
23
|
+
return M("MuiAccordion", o);
|
|
60
24
|
}
|
|
61
|
-
|
|
62
|
-
return _("MuiAccordion", o);
|
|
63
|
-
}
|
|
64
|
-
const O = $("MuiAccordion", ["root", "rounded", "expanded", "disabled", "gutters", "region"]), yo = ["children", "className", "defaultExpanded", "disabled", "disableGutters", "expanded", "onChange", "square", "slots", "slotProps", "TransitionComponent", "TransitionProps"], vo = (o) => {
|
|
25
|
+
const h = E("MuiAccordion", ["root", "rounded", "expanded", "disabled", "gutters", "region"]), so = ["children", "className", "defaultExpanded", "disabled", "disableGutters", "expanded", "onChange", "square", "TransitionComponent", "TransitionProps"], to = (o) => {
|
|
65
26
|
const {
|
|
66
27
|
classes: r,
|
|
67
|
-
square:
|
|
68
|
-
expanded:
|
|
69
|
-
disabled:
|
|
70
|
-
disableGutters:
|
|
28
|
+
square: s,
|
|
29
|
+
expanded: t,
|
|
30
|
+
disabled: a,
|
|
31
|
+
disableGutters: l
|
|
71
32
|
} = o;
|
|
72
|
-
return
|
|
73
|
-
root: ["root", !
|
|
33
|
+
return $({
|
|
34
|
+
root: ["root", !s && "rounded", t && "expanded", a && "disabled", !l && "gutters"],
|
|
74
35
|
region: ["region"]
|
|
75
|
-
},
|
|
76
|
-
},
|
|
36
|
+
}, ro, r);
|
|
37
|
+
}, no = u(K, {
|
|
77
38
|
name: "MuiAccordion",
|
|
78
39
|
slot: "Root",
|
|
79
40
|
overridesResolver: (o, r) => {
|
|
80
41
|
const {
|
|
81
|
-
ownerState:
|
|
42
|
+
ownerState: s
|
|
82
43
|
} = o;
|
|
83
44
|
return [{
|
|
84
|
-
[`& .${
|
|
85
|
-
}, r.root, !
|
|
45
|
+
[`& .${h.region}`]: r.region
|
|
46
|
+
}, r.root, !s.square && r.rounded, !s.disableGutters && r.gutters];
|
|
86
47
|
}
|
|
87
48
|
})(({
|
|
88
49
|
theme: o
|
|
@@ -95,7 +56,7 @@ const O = $("MuiAccordion", ["root", "rounded", "expanded", "disabled", "gutters
|
|
|
95
56
|
transition: o.transitions.create(["margin"], r),
|
|
96
57
|
overflowAnchor: "none",
|
|
97
58
|
// Keep the same scrolling position
|
|
98
|
-
"
|
|
59
|
+
"&:before": {
|
|
99
60
|
position: "absolute",
|
|
100
61
|
left: 0,
|
|
101
62
|
top: -1,
|
|
@@ -107,12 +68,12 @@ const O = $("MuiAccordion", ["root", "rounded", "expanded", "disabled", "gutters
|
|
|
107
68
|
transition: o.transitions.create(["opacity", "background-color"], r)
|
|
108
69
|
},
|
|
109
70
|
"&:first-of-type": {
|
|
110
|
-
"
|
|
71
|
+
"&:before": {
|
|
111
72
|
display: "none"
|
|
112
73
|
}
|
|
113
74
|
},
|
|
114
|
-
[`&.${
|
|
115
|
-
"
|
|
75
|
+
[`&.${h.expanded}`]: {
|
|
76
|
+
"&:before": {
|
|
116
77
|
opacity: 0
|
|
117
78
|
},
|
|
118
79
|
"&:first-of-type": {
|
|
@@ -122,124 +83,104 @@ const O = $("MuiAccordion", ["root", "rounded", "expanded", "disabled", "gutters
|
|
|
122
83
|
marginBottom: 0
|
|
123
84
|
},
|
|
124
85
|
"& + &": {
|
|
125
|
-
"
|
|
86
|
+
"&:before": {
|
|
126
87
|
display: "none"
|
|
127
88
|
}
|
|
128
89
|
}
|
|
129
90
|
},
|
|
130
|
-
[`&.${
|
|
91
|
+
[`&.${h.disabled}`]: {
|
|
131
92
|
backgroundColor: (o.vars || o).palette.action.disabledBackground
|
|
132
93
|
}
|
|
133
94
|
};
|
|
134
95
|
}, ({
|
|
135
|
-
theme: o
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
borderBottomLeftRadius: 0,
|
|
151
|
-
borderBottomRightRadius: 0
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}, {
|
|
156
|
-
props: (r) => !r.disableGutters,
|
|
157
|
-
style: {
|
|
158
|
-
[`&.${O.expanded}`]: {
|
|
159
|
-
margin: "16px 0"
|
|
160
|
-
}
|
|
96
|
+
theme: o,
|
|
97
|
+
ownerState: r
|
|
98
|
+
}) => d({}, !r.square && {
|
|
99
|
+
borderRadius: 0,
|
|
100
|
+
"&:first-of-type": {
|
|
101
|
+
borderTopLeftRadius: (o.vars || o).shape.borderRadius,
|
|
102
|
+
borderTopRightRadius: (o.vars || o).shape.borderRadius
|
|
103
|
+
},
|
|
104
|
+
"&:last-of-type": {
|
|
105
|
+
borderBottomLeftRadius: (o.vars || o).shape.borderRadius,
|
|
106
|
+
borderBottomRightRadius: (o.vars || o).shape.borderRadius,
|
|
107
|
+
// Fix a rendering issue on Edge
|
|
108
|
+
"@supports (-ms-ime-align: auto)": {
|
|
109
|
+
borderBottomLeftRadius: 0,
|
|
110
|
+
borderBottomRightRadius: 0
|
|
161
111
|
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
112
|
+
}
|
|
113
|
+
}, !r.disableGutters && {
|
|
114
|
+
[`&.${h.expanded}`]: {
|
|
115
|
+
margin: "16px 0"
|
|
116
|
+
}
|
|
117
|
+
})), P = /* @__PURE__ */ i.forwardRef(function(r, s) {
|
|
118
|
+
const t = I({
|
|
165
119
|
props: r,
|
|
166
120
|
name: "MuiAccordion"
|
|
167
121
|
}), {
|
|
168
|
-
children:
|
|
169
|
-
className:
|
|
170
|
-
defaultExpanded:
|
|
171
|
-
disabled:
|
|
172
|
-
disableGutters:
|
|
173
|
-
expanded:
|
|
174
|
-
onChange:
|
|
175
|
-
square:
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
controlled: T,
|
|
182
|
-
default: d,
|
|
122
|
+
children: a,
|
|
123
|
+
className: l,
|
|
124
|
+
defaultExpanded: p = !1,
|
|
125
|
+
disabled: f = !1,
|
|
126
|
+
disableGutters: b = !1,
|
|
127
|
+
expanded: S,
|
|
128
|
+
onChange: g,
|
|
129
|
+
square: v = !1,
|
|
130
|
+
TransitionComponent: C = X,
|
|
131
|
+
TransitionProps: A
|
|
132
|
+
} = t, N = w(t, so), [n, m] = Q({
|
|
133
|
+
controlled: S,
|
|
134
|
+
default: p,
|
|
183
135
|
name: "Accordion",
|
|
184
136
|
state: "expanded"
|
|
185
|
-
}),
|
|
186
|
-
|
|
187
|
-
}, [
|
|
188
|
-
expanded:
|
|
189
|
-
disabled:
|
|
190
|
-
disableGutters:
|
|
191
|
-
toggle:
|
|
192
|
-
}), [
|
|
193
|
-
square:
|
|
194
|
-
disabled:
|
|
195
|
-
disableGutters:
|
|
196
|
-
expanded:
|
|
197
|
-
}),
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
return /* @__PURE__ */ q(Co, c({
|
|
210
|
-
className: I(G.root, i),
|
|
211
|
-
ref: t,
|
|
212
|
-
ownerState: w,
|
|
213
|
-
square: C
|
|
214
|
-
}, x, {
|
|
215
|
-
children: [/* @__PURE__ */ f(V.Provider, {
|
|
216
|
-
value: M,
|
|
217
|
-
children: R
|
|
218
|
-
}), /* @__PURE__ */ f(H, c({
|
|
219
|
-
in: a,
|
|
137
|
+
}), y = i.useCallback((W) => {
|
|
138
|
+
m(!n), g && g(W, !n);
|
|
139
|
+
}, [n, g, m]), [T, ...B] = i.Children.toArray(a), U = i.useMemo(() => ({
|
|
140
|
+
expanded: n,
|
|
141
|
+
disabled: f,
|
|
142
|
+
disableGutters: b,
|
|
143
|
+
toggle: y
|
|
144
|
+
}), [n, f, b, y]), _ = d({}, t, {
|
|
145
|
+
square: v,
|
|
146
|
+
disabled: f,
|
|
147
|
+
disableGutters: b,
|
|
148
|
+
expanded: n
|
|
149
|
+
}), O = to(_);
|
|
150
|
+
return /* @__PURE__ */ V(no, d({
|
|
151
|
+
className: R(O.root, l),
|
|
152
|
+
ref: s,
|
|
153
|
+
ownerState: _,
|
|
154
|
+
square: v
|
|
155
|
+
}, N, {
|
|
156
|
+
children: [/* @__PURE__ */ c(D.Provider, {
|
|
157
|
+
value: U,
|
|
158
|
+
children: T
|
|
159
|
+
}), /* @__PURE__ */ c(C, d({
|
|
160
|
+
in: n,
|
|
220
161
|
timeout: "auto"
|
|
221
|
-
},
|
|
222
|
-
children: /* @__PURE__ */
|
|
223
|
-
"aria-labelledby":
|
|
224
|
-
id:
|
|
162
|
+
}, A, {
|
|
163
|
+
children: /* @__PURE__ */ c("div", {
|
|
164
|
+
"aria-labelledby": T.props.id,
|
|
165
|
+
id: T.props["aria-controls"],
|
|
225
166
|
role: "region",
|
|
226
|
-
className:
|
|
227
|
-
children:
|
|
167
|
+
className: O.region,
|
|
168
|
+
children: B
|
|
228
169
|
})
|
|
229
170
|
}))]
|
|
230
171
|
}));
|
|
231
172
|
});
|
|
232
|
-
process.env.NODE_ENV !== "production" && (
|
|
233
|
-
//
|
|
234
|
-
//
|
|
235
|
-
//
|
|
236
|
-
//
|
|
173
|
+
process.env.NODE_ENV !== "production" && (P.propTypes = {
|
|
174
|
+
// ----------------------------- Warning --------------------------------
|
|
175
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
176
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
177
|
+
// ----------------------------------------------------------------------
|
|
237
178
|
/**
|
|
238
179
|
* The content of the component.
|
|
239
180
|
*/
|
|
240
|
-
children:
|
|
241
|
-
const r =
|
|
242
|
-
return
|
|
181
|
+
children: J(e.node.isRequired, (o) => {
|
|
182
|
+
const r = i.Children.toArray(o.children)[0];
|
|
183
|
+
return H.isFragment(r) ? new Error("MUI: The Accordion doesn't accept a Fragment as a child. Consider providing an array instead.") : /* @__PURE__ */ i.isValidElement(r) ? null : new Error("MUI: Expected the first child of Accordion to be a valid element.");
|
|
243
184
|
}),
|
|
244
185
|
/**
|
|
245
186
|
* Override or extend the styles applied to the component.
|
|
@@ -276,20 +217,6 @@ process.env.NODE_ENV !== "production" && (B.propTypes = {
|
|
|
276
217
|
* @param {boolean} expanded The `expanded` state of the accordion.
|
|
277
218
|
*/
|
|
278
219
|
onChange: e.func,
|
|
279
|
-
/**
|
|
280
|
-
* The props used for each slot inside.
|
|
281
|
-
* @default {}
|
|
282
|
-
*/
|
|
283
|
-
slotProps: e.shape({
|
|
284
|
-
transition: e.oneOfType([e.func, e.object])
|
|
285
|
-
}),
|
|
286
|
-
/**
|
|
287
|
-
* The components used for each slot inside.
|
|
288
|
-
* @default {}
|
|
289
|
-
*/
|
|
290
|
-
slots: e.shape({
|
|
291
|
-
transition: e.elementType
|
|
292
|
-
}),
|
|
293
220
|
/**
|
|
294
221
|
* If `true`, rounded corners are disabled.
|
|
295
222
|
* @default false
|
|
@@ -302,87 +229,80 @@ process.env.NODE_ENV !== "production" && (B.propTypes = {
|
|
|
302
229
|
/**
|
|
303
230
|
* The component used for the transition.
|
|
304
231
|
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
305
|
-
* @
|
|
232
|
+
* @default Collapse
|
|
306
233
|
*/
|
|
307
234
|
TransitionComponent: e.elementType,
|
|
308
235
|
/**
|
|
309
236
|
* Props applied to the transition element.
|
|
310
|
-
* By default, the element is based on this [`Transition`](
|
|
311
|
-
* @deprecated Use `slotProps.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
237
|
+
* By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
|
|
312
238
|
*/
|
|
313
239
|
TransitionProps: e.object
|
|
314
240
|
});
|
|
315
|
-
function
|
|
316
|
-
return
|
|
241
|
+
function ao(o) {
|
|
242
|
+
return M("MuiAccordionSummary", o);
|
|
317
243
|
}
|
|
318
|
-
const
|
|
244
|
+
const x = E("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disabled", "gutters", "contentGutters", "content", "expandIconWrapper"]), io = ["children", "className", "expandIcon", "focusVisibleClassName", "onClick"], co = (o) => {
|
|
319
245
|
const {
|
|
320
246
|
classes: r,
|
|
321
|
-
expanded:
|
|
322
|
-
disabled:
|
|
323
|
-
disableGutters:
|
|
247
|
+
expanded: s,
|
|
248
|
+
disabled: t,
|
|
249
|
+
disableGutters: a
|
|
324
250
|
} = o;
|
|
325
|
-
return
|
|
326
|
-
root: ["root",
|
|
251
|
+
return $({
|
|
252
|
+
root: ["root", s && "expanded", t && "disabled", !a && "gutters"],
|
|
327
253
|
focusVisible: ["focusVisible"],
|
|
328
|
-
content: ["content",
|
|
329
|
-
expandIconWrapper: ["expandIconWrapper",
|
|
330
|
-
},
|
|
331
|
-
},
|
|
254
|
+
content: ["content", s && "expanded", !a && "contentGutters"],
|
|
255
|
+
expandIconWrapper: ["expandIconWrapper", s && "expanded"]
|
|
256
|
+
}, ao, r);
|
|
257
|
+
}, lo = u(Y, {
|
|
332
258
|
name: "MuiAccordionSummary",
|
|
333
259
|
slot: "Root",
|
|
334
260
|
overridesResolver: (o, r) => r.root
|
|
335
261
|
})(({
|
|
336
|
-
theme: o
|
|
262
|
+
theme: o,
|
|
263
|
+
ownerState: r
|
|
337
264
|
}) => {
|
|
338
|
-
const
|
|
265
|
+
const s = {
|
|
339
266
|
duration: o.transitions.duration.shortest
|
|
340
267
|
};
|
|
341
|
-
return {
|
|
268
|
+
return d({
|
|
342
269
|
display: "flex",
|
|
343
270
|
minHeight: 48,
|
|
344
271
|
padding: o.spacing(0, 2),
|
|
345
|
-
transition: o.transitions.create(["min-height", "background-color"],
|
|
346
|
-
[`&.${
|
|
272
|
+
transition: o.transitions.create(["min-height", "background-color"], s),
|
|
273
|
+
[`&.${x.focusVisible}`]: {
|
|
347
274
|
backgroundColor: (o.vars || o).palette.action.focus
|
|
348
275
|
},
|
|
349
|
-
[`&.${
|
|
276
|
+
[`&.${x.disabled}`]: {
|
|
350
277
|
opacity: (o.vars || o).palette.action.disabledOpacity
|
|
351
278
|
},
|
|
352
|
-
[`&:hover:not(.${
|
|
279
|
+
[`&:hover:not(.${x.disabled})`]: {
|
|
353
280
|
cursor: "pointer"
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
}
|
|
362
|
-
}]
|
|
363
|
-
};
|
|
364
|
-
}), Ro = y("div", {
|
|
281
|
+
}
|
|
282
|
+
}, !r.disableGutters && {
|
|
283
|
+
[`&.${x.expanded}`]: {
|
|
284
|
+
minHeight: 64
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
}), po = u("div", {
|
|
365
288
|
name: "MuiAccordionSummary",
|
|
366
289
|
slot: "Content",
|
|
367
290
|
overridesResolver: (o, r) => r.content
|
|
368
291
|
})(({
|
|
369
|
-
theme: o
|
|
370
|
-
|
|
292
|
+
theme: o,
|
|
293
|
+
ownerState: r
|
|
294
|
+
}) => d({
|
|
371
295
|
display: "flex",
|
|
372
296
|
flexGrow: 1,
|
|
373
|
-
margin: "12px 0"
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
}]
|
|
385
|
-
})), wo = y("div", {
|
|
297
|
+
margin: "12px 0"
|
|
298
|
+
}, !r.disableGutters && {
|
|
299
|
+
transition: o.transitions.create(["margin"], {
|
|
300
|
+
duration: o.transitions.duration.shortest
|
|
301
|
+
}),
|
|
302
|
+
[`&.${x.expanded}`]: {
|
|
303
|
+
margin: "20px 0"
|
|
304
|
+
}
|
|
305
|
+
})), uo = u("div", {
|
|
386
306
|
name: "MuiAccordionSummary",
|
|
387
307
|
slot: "ExpandIconWrapper",
|
|
388
308
|
overridesResolver: (o, r) => r.expandIconWrapper
|
|
@@ -395,59 +315,59 @@ const h = $("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
395
315
|
transition: o.transitions.create("transform", {
|
|
396
316
|
duration: o.transitions.duration.shortest
|
|
397
317
|
}),
|
|
398
|
-
[`&.${
|
|
318
|
+
[`&.${x.expanded}`]: {
|
|
399
319
|
transform: "rotate(180deg)"
|
|
400
320
|
}
|
|
401
|
-
})),
|
|
402
|
-
const
|
|
321
|
+
})), q = /* @__PURE__ */ i.forwardRef(function(r, s) {
|
|
322
|
+
const t = I({
|
|
403
323
|
props: r,
|
|
404
324
|
name: "MuiAccordionSummary"
|
|
405
325
|
}), {
|
|
406
|
-
children:
|
|
407
|
-
className:
|
|
408
|
-
expandIcon:
|
|
409
|
-
focusVisibleClassName:
|
|
410
|
-
onClick:
|
|
411
|
-
} =
|
|
412
|
-
disabled:
|
|
413
|
-
disableGutters:
|
|
414
|
-
expanded:
|
|
415
|
-
toggle:
|
|
416
|
-
} =
|
|
417
|
-
|
|
418
|
-
},
|
|
419
|
-
expanded:
|
|
420
|
-
disabled:
|
|
421
|
-
disableGutters:
|
|
422
|
-
}),
|
|
423
|
-
return /* @__PURE__ */
|
|
326
|
+
children: a,
|
|
327
|
+
className: l,
|
|
328
|
+
expandIcon: p,
|
|
329
|
+
focusVisibleClassName: f,
|
|
330
|
+
onClick: b
|
|
331
|
+
} = t, S = w(t, io), {
|
|
332
|
+
disabled: g = !1,
|
|
333
|
+
disableGutters: v,
|
|
334
|
+
expanded: C,
|
|
335
|
+
toggle: A
|
|
336
|
+
} = i.useContext(D), N = (y) => {
|
|
337
|
+
A && A(y), b && b(y);
|
|
338
|
+
}, n = d({}, t, {
|
|
339
|
+
expanded: C,
|
|
340
|
+
disabled: g,
|
|
341
|
+
disableGutters: v
|
|
342
|
+
}), m = co(n);
|
|
343
|
+
return /* @__PURE__ */ V(lo, d({
|
|
424
344
|
focusRipple: !1,
|
|
425
345
|
disableRipple: !0,
|
|
426
|
-
disabled:
|
|
346
|
+
disabled: g,
|
|
427
347
|
component: "div",
|
|
428
|
-
"aria-expanded":
|
|
429
|
-
className:
|
|
430
|
-
focusVisibleClassName:
|
|
431
|
-
onClick:
|
|
432
|
-
ref:
|
|
433
|
-
ownerState:
|
|
434
|
-
},
|
|
435
|
-
children: [/* @__PURE__ */
|
|
436
|
-
className:
|
|
437
|
-
ownerState:
|
|
438
|
-
children:
|
|
439
|
-
}),
|
|
440
|
-
className:
|
|
441
|
-
ownerState:
|
|
442
|
-
children:
|
|
348
|
+
"aria-expanded": C,
|
|
349
|
+
className: R(m.root, l),
|
|
350
|
+
focusVisibleClassName: R(m.focusVisible, f),
|
|
351
|
+
onClick: N,
|
|
352
|
+
ref: s,
|
|
353
|
+
ownerState: n
|
|
354
|
+
}, S, {
|
|
355
|
+
children: [/* @__PURE__ */ c(po, {
|
|
356
|
+
className: m.content,
|
|
357
|
+
ownerState: n,
|
|
358
|
+
children: a
|
|
359
|
+
}), p && /* @__PURE__ */ c(uo, {
|
|
360
|
+
className: m.expandIconWrapper,
|
|
361
|
+
ownerState: n,
|
|
362
|
+
children: p
|
|
443
363
|
})]
|
|
444
364
|
}));
|
|
445
365
|
});
|
|
446
|
-
process.env.NODE_ENV !== "production" && (
|
|
447
|
-
//
|
|
448
|
-
//
|
|
449
|
-
//
|
|
450
|
-
//
|
|
366
|
+
process.env.NODE_ENV !== "production" && (q.propTypes = {
|
|
367
|
+
// ----------------------------- Warning --------------------------------
|
|
368
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
369
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
370
|
+
// ----------------------------------------------------------------------
|
|
451
371
|
/**
|
|
452
372
|
* The content of the component.
|
|
453
373
|
*/
|
|
@@ -482,18 +402,18 @@ process.env.NODE_ENV !== "production" && (U.propTypes = {
|
|
|
482
402
|
*/
|
|
483
403
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
484
404
|
});
|
|
485
|
-
function
|
|
486
|
-
return
|
|
405
|
+
function fo(o) {
|
|
406
|
+
return M("MuiAccordionDetails", o);
|
|
487
407
|
}
|
|
488
|
-
|
|
489
|
-
const
|
|
408
|
+
E("MuiAccordionDetails", ["root"]);
|
|
409
|
+
const mo = ["className"], bo = (o) => {
|
|
490
410
|
const {
|
|
491
411
|
classes: r
|
|
492
412
|
} = o;
|
|
493
|
-
return
|
|
413
|
+
return $({
|
|
494
414
|
root: ["root"]
|
|
495
|
-
},
|
|
496
|
-
},
|
|
415
|
+
}, fo, r);
|
|
416
|
+
}, go = u("div", {
|
|
497
417
|
name: "MuiAccordionDetails",
|
|
498
418
|
slot: "Root",
|
|
499
419
|
overridesResolver: (o, r) => r.root
|
|
@@ -501,24 +421,24 @@ const No = ["className"], Eo = (o) => {
|
|
|
501
421
|
theme: o
|
|
502
422
|
}) => ({
|
|
503
423
|
padding: o.spacing(1, 2, 2)
|
|
504
|
-
})),
|
|
505
|
-
const
|
|
424
|
+
})), k = /* @__PURE__ */ i.forwardRef(function(r, s) {
|
|
425
|
+
const t = I({
|
|
506
426
|
props: r,
|
|
507
427
|
name: "MuiAccordionDetails"
|
|
508
428
|
}), {
|
|
509
|
-
className:
|
|
510
|
-
} =
|
|
511
|
-
return /* @__PURE__ */
|
|
512
|
-
className:
|
|
513
|
-
ref:
|
|
514
|
-
ownerState:
|
|
515
|
-
},
|
|
429
|
+
className: a
|
|
430
|
+
} = t, l = w(t, mo), p = t, f = bo(p);
|
|
431
|
+
return /* @__PURE__ */ c(go, d({
|
|
432
|
+
className: R(f.root, a),
|
|
433
|
+
ref: s,
|
|
434
|
+
ownerState: p
|
|
435
|
+
}, l));
|
|
516
436
|
});
|
|
517
|
-
process.env.NODE_ENV !== "production" && (
|
|
518
|
-
//
|
|
519
|
-
//
|
|
520
|
-
//
|
|
521
|
-
//
|
|
437
|
+
process.env.NODE_ENV !== "production" && (k.propTypes = {
|
|
438
|
+
// ----------------------------- Warning --------------------------------
|
|
439
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
440
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
441
|
+
// ----------------------------------------------------------------------
|
|
522
442
|
/**
|
|
523
443
|
* The content of the component.
|
|
524
444
|
*/
|
|
@@ -536,17 +456,17 @@ process.env.NODE_ENV !== "production" && (W.propTypes = {
|
|
|
536
456
|
*/
|
|
537
457
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
538
458
|
});
|
|
539
|
-
const
|
|
459
|
+
const Mo = u((o) => /* @__PURE__ */ c(P, { disableGutters: !0, elevation: 0, square: !0, ...o }))(() => ({
|
|
540
460
|
"&:not(:last-child)": {
|
|
541
461
|
borderBottom: 0
|
|
542
462
|
},
|
|
543
463
|
"&:before": {
|
|
544
464
|
display: "none"
|
|
545
465
|
}
|
|
546
|
-
})),
|
|
547
|
-
|
|
466
|
+
})), wo = u((o) => /* @__PURE__ */ c(
|
|
467
|
+
q,
|
|
548
468
|
{
|
|
549
|
-
expandIcon: /* @__PURE__ */
|
|
469
|
+
expandIcon: /* @__PURE__ */ c(G, { sx: { fontSize: 12 } }),
|
|
550
470
|
...o
|
|
551
471
|
}
|
|
552
472
|
))(({ theme: o }) => ({
|
|
@@ -564,12 +484,12 @@ const Bo = y((o) => /* @__PURE__ */ f(B, { disableGutters: !0, elevation: 0, squ
|
|
|
564
484
|
justifyContent: "space-between",
|
|
565
485
|
alignItems: "center"
|
|
566
486
|
}
|
|
567
|
-
})),
|
|
487
|
+
})), Eo = u(k)(({ theme: o }) => ({
|
|
568
488
|
padding: o.spacing(2),
|
|
569
489
|
paddingTop: 0
|
|
570
490
|
}));
|
|
571
491
|
export {
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
492
|
+
Mo as Accordion,
|
|
493
|
+
Eo as AccordionDetails,
|
|
494
|
+
wo as AccordionSummary
|
|
575
495
|
};
|