@solostylist/ui-kit 1.0.87 → 1.0.89
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/{Box-Cf99MewL.js → Box-CJmG1mTu.js} +3 -3
- package/dist/ButtonBase-C0g54hXq.js +910 -0
- package/dist/ChevronRight-CtkI4XwH.js +11 -0
- package/dist/{Close-CKpTrk7X.js → Close--Sf9yZGB.js} +1 -1
- package/dist/{Menu-D2LDo0yd.js → Menu-BuktPpzX.js} +914 -1453
- package/dist/{MenuItem-JkMrBIMD.js → MenuItem-sL2AcofB.js} +8 -8
- package/dist/Paper-CH6cuu9i.js +553 -0
- package/dist/{Select-4BjFewNI.js → Select-D2lV25sl.js} +16 -15
- package/dist/{Stack-UjxgGQu9.js → Stack-CIrlOUXL.js} +4 -4
- package/dist/{TransitionGroup-DzGaAPUk.js → TransitionGroup-SToIdl-5.js} +3 -3
- package/dist/{Typography-CGoVq27h.js → Typography-D-VP4V1G.js} +3 -3
- package/dist/{createSvgIcon-vJH0FaMW.js → createSvgIcon-DpVs_nKR.js} +5 -5
- package/dist/{createTheme-DjqDAiZm.js → createTheme-DbdaZ0Ku.js} +3 -2
- package/dist/{defaultTheme-CaAxts6z.js → defaultTheme-CFAmbghg.js} +1 -1
- package/dist/{extendSxProp-BnfiUPQK.js → extendSxProp-CQnEn3aw.js} +1 -1
- package/dist/{index-DcImsw9J.js → index-CjPqjRDL.js} +4 -4
- package/dist/main.d.ts +6 -0
- package/dist/main.js +117 -111
- package/dist/mergeSlotProps-N47mO9C9.js +62 -0
- package/dist/s-accordion/index.d.ts +2 -0
- package/dist/s-accordion/index.js +4 -0
- package/dist/s-accordion/package.json +5 -0
- package/dist/s-accordion/s-accordion.d.ts +9 -0
- package/dist/s-accordion/s-accordion.js +924 -0
- package/dist/s-avatar/index.d.ts +2 -0
- package/dist/s-avatar/index.js +4 -0
- package/dist/s-avatar/package.json +5 -0
- package/dist/s-avatar/s-avatar.d.ts +10 -0
- package/dist/s-avatar/s-avatar.js +9 -0
- package/dist/s-chat-input/s-chat-input.js +6 -6
- package/dist/s-copyable-text/s-copyable-text.js +1 -1
- package/dist/s-data-table/s-data-table.js +12 -10
- package/dist/s-date-picker/s-date-picker.js +24 -24
- package/dist/s-datetime-picker/s-datetime-picker.js +13 -12
- package/dist/s-dialog/s-dialog.js +1 -1
- package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
- package/dist/s-dialog-message/s-dialog-message.js +2 -2
- package/dist/s-file-dropzone/s-file-dropzone.js +8 -8
- package/dist/s-file-icon/s-file-icon.js +1 -1
- package/dist/s-image-comparison/index.d.ts +2 -0
- package/dist/s-image-comparison/index.js +4 -0
- package/dist/s-image-comparison/package.json +5 -0
- package/dist/s-image-comparison/s-image-comparison.d.ts +11 -0
- package/dist/s-image-comparison/s-image-comparison.js +155 -0
- package/dist/s-image-modal/s-image-modal.js +94 -98
- package/dist/s-interactive-gallery/s-interactive-gallery.js +69 -69
- package/dist/s-label/s-label.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.js +1 -1
- package/dist/s-multi-select/s-multi-select.js +5 -5
- package/dist/s-smart-text-field/s-smart-text-field.js +2 -2
- package/dist/s-text-editor/s-text-editor-toolbar.js +8 -8
- package/dist/s-text-editor/s-text-editor.js +1 -1
- package/dist/s-text-field/s-text-field.js +13 -4
- package/dist/s-tip/s-tip.js +3 -3
- package/dist/theme/components/avatar.js +3 -3
- package/dist/theme/components/button.d.ts +2 -2
- package/dist/theme/components/chip.js +1 -1
- package/dist/theme/components/components.d.ts +2 -2
- package/dist/theme/customizations/inputs.js +1 -1
- package/dist/theme/customizations/navigation.js +1 -1
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/useControlled-nm4pBabJ.js +31 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/{useMobilePicker-DmFQ075P.js → useMobilePicker-CRxlxUeh.js} +100 -98
- package/dist/{useTheme-DPtt6ExE.js → useTheme-CjYoxoob.js} +1 -1
- package/dist/{useThemeProps-DQiCrjPQ.js → useThemeProps-DdCEfRBE.js} +2 -2
- package/dist/{warning-UxpRUL3s.js → warning-CiVr8tE6.js} +3 -3
- package/package.json +1 -1
- package/dist/useFormControl-B3RPiDsz.js +0 -38
- package/dist/useSlot-DFSsVuMw.js +0 -969
|
@@ -0,0 +1,924 @@
|
|
|
1
|
+
import { j as s } from "../jsx-runtime-DywqP_6a.js";
|
|
2
|
+
import { b as mo, u as K, s as T, c as L, a as Q, m as D } from "../createSvgIcon-DpVs_nKR.js";
|
|
3
|
+
import * as l from "react";
|
|
4
|
+
import { k as go, P as o, l as yo } from "../createTheme-DbdaZ0Ku.js";
|
|
5
|
+
import { b as xo, u as ho, e as bo, d as I, c as To, B as Co } from "../ButtonBase-C0g54hXq.js";
|
|
6
|
+
import { g as X } from "../generateUtilityClasses-BtVDwGrk.js";
|
|
7
|
+
import { g as Y } from "../colorManipulator-ep5lERxB.js";
|
|
8
|
+
import { u as vo } from "../useControlled-nm4pBabJ.js";
|
|
9
|
+
import { T as So, u as Eo, g as ro, P as wo } from "../Paper-CH6cuu9i.js";
|
|
10
|
+
import { S as Ro } from "../Stack-CIrlOUXL.js";
|
|
11
|
+
import { T as Ao } from "../Typography-D-VP4V1G.js";
|
|
12
|
+
const jo = mo(/* @__PURE__ */ s.jsx("path", {
|
|
13
|
+
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
14
|
+
}), "ExpandMore");
|
|
15
|
+
function Po(e) {
|
|
16
|
+
return Y("MuiCollapse", e);
|
|
17
|
+
}
|
|
18
|
+
X("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
|
|
19
|
+
const No = (e) => {
|
|
20
|
+
const {
|
|
21
|
+
orientation: t,
|
|
22
|
+
classes: r
|
|
23
|
+
} = e, i = {
|
|
24
|
+
root: ["root", `${t}`],
|
|
25
|
+
entered: ["entered"],
|
|
26
|
+
hidden: ["hidden"],
|
|
27
|
+
wrapper: ["wrapper", `${t}`],
|
|
28
|
+
wrapperInner: ["wrapperInner", `${t}`]
|
|
29
|
+
};
|
|
30
|
+
return Q(i, Po, r);
|
|
31
|
+
}, Oo = T("div", {
|
|
32
|
+
name: "MuiCollapse",
|
|
33
|
+
slot: "Root",
|
|
34
|
+
overridesResolver: (e, t) => {
|
|
35
|
+
const {
|
|
36
|
+
ownerState: r
|
|
37
|
+
} = e;
|
|
38
|
+
return [t.root, t[r.orientation], r.state === "entered" && t.entered, r.state === "exited" && !r.in && r.collapsedSize === "0px" && t.hidden];
|
|
39
|
+
}
|
|
40
|
+
})(D(({
|
|
41
|
+
theme: e
|
|
42
|
+
}) => ({
|
|
43
|
+
height: 0,
|
|
44
|
+
overflow: "hidden",
|
|
45
|
+
transition: e.transitions.create("height"),
|
|
46
|
+
variants: [{
|
|
47
|
+
props: {
|
|
48
|
+
orientation: "horizontal"
|
|
49
|
+
},
|
|
50
|
+
style: {
|
|
51
|
+
height: "auto",
|
|
52
|
+
width: 0,
|
|
53
|
+
transition: e.transitions.create("width")
|
|
54
|
+
}
|
|
55
|
+
}, {
|
|
56
|
+
props: {
|
|
57
|
+
state: "entered"
|
|
58
|
+
},
|
|
59
|
+
style: {
|
|
60
|
+
height: "auto",
|
|
61
|
+
overflow: "visible"
|
|
62
|
+
}
|
|
63
|
+
}, {
|
|
64
|
+
props: {
|
|
65
|
+
state: "entered",
|
|
66
|
+
orientation: "horizontal"
|
|
67
|
+
},
|
|
68
|
+
style: {
|
|
69
|
+
width: "auto"
|
|
70
|
+
}
|
|
71
|
+
}, {
|
|
72
|
+
props: ({
|
|
73
|
+
ownerState: t
|
|
74
|
+
}) => t.state === "exited" && !t.in && t.collapsedSize === "0px",
|
|
75
|
+
style: {
|
|
76
|
+
visibility: "hidden"
|
|
77
|
+
}
|
|
78
|
+
}]
|
|
79
|
+
}))), Mo = T("div", {
|
|
80
|
+
name: "MuiCollapse",
|
|
81
|
+
slot: "Wrapper"
|
|
82
|
+
})({
|
|
83
|
+
// Hack to get children with a negative margin to not falsify the height computation.
|
|
84
|
+
display: "flex",
|
|
85
|
+
width: "100%",
|
|
86
|
+
variants: [{
|
|
87
|
+
props: {
|
|
88
|
+
orientation: "horizontal"
|
|
89
|
+
},
|
|
90
|
+
style: {
|
|
91
|
+
width: "auto",
|
|
92
|
+
height: "100%"
|
|
93
|
+
}
|
|
94
|
+
}]
|
|
95
|
+
}), Io = T("div", {
|
|
96
|
+
name: "MuiCollapse",
|
|
97
|
+
slot: "WrapperInner"
|
|
98
|
+
})({
|
|
99
|
+
width: "100%",
|
|
100
|
+
variants: [{
|
|
101
|
+
props: {
|
|
102
|
+
orientation: "horizontal"
|
|
103
|
+
},
|
|
104
|
+
style: {
|
|
105
|
+
width: "auto",
|
|
106
|
+
height: "100%"
|
|
107
|
+
}
|
|
108
|
+
}]
|
|
109
|
+
}), J = /* @__PURE__ */ l.forwardRef(function(t, r) {
|
|
110
|
+
const i = K({
|
|
111
|
+
props: t,
|
|
112
|
+
name: "MuiCollapse"
|
|
113
|
+
}), {
|
|
114
|
+
addEndListener: p,
|
|
115
|
+
children: h,
|
|
116
|
+
className: b,
|
|
117
|
+
collapsedSize: f = "0px",
|
|
118
|
+
component: v,
|
|
119
|
+
easing: $,
|
|
120
|
+
in: S,
|
|
121
|
+
onEnter: A,
|
|
122
|
+
onEntered: j,
|
|
123
|
+
onEntering: z,
|
|
124
|
+
onExit: P,
|
|
125
|
+
onExited: W,
|
|
126
|
+
onExiting: k,
|
|
127
|
+
orientation: c = "vertical",
|
|
128
|
+
style: m,
|
|
129
|
+
timeout: d = go.standard,
|
|
130
|
+
// eslint-disable-next-line react/prop-types
|
|
131
|
+
TransitionComponent: N = So,
|
|
132
|
+
...G
|
|
133
|
+
} = i, E = {
|
|
134
|
+
...i,
|
|
135
|
+
orientation: c,
|
|
136
|
+
collapsedSize: f
|
|
137
|
+
}, u = No(E), w = Eo(), U = xo(), a = l.useRef(null), g = l.useRef(), C = typeof f == "number" ? `${f}px` : f, O = c === "horizontal", M = O ? "width" : "height", V = l.useRef(null), Z = ho(r, V), R = (n) => (y) => {
|
|
138
|
+
if (n) {
|
|
139
|
+
const x = V.current;
|
|
140
|
+
y === void 0 ? n(x) : n(x, y);
|
|
141
|
+
}
|
|
142
|
+
}, H = () => a.current ? a.current[O ? "clientWidth" : "clientHeight"] : 0, oo = R((n, y) => {
|
|
143
|
+
a.current && O && (a.current.style.position = "absolute"), n.style[M] = C, A && A(n, y);
|
|
144
|
+
}), eo = R((n, y) => {
|
|
145
|
+
const x = H();
|
|
146
|
+
a.current && O && (a.current.style.position = "");
|
|
147
|
+
const {
|
|
148
|
+
duration: B,
|
|
149
|
+
easing: q
|
|
150
|
+
} = ro({
|
|
151
|
+
style: m,
|
|
152
|
+
timeout: d,
|
|
153
|
+
easing: $
|
|
154
|
+
}, {
|
|
155
|
+
mode: "enter"
|
|
156
|
+
});
|
|
157
|
+
if (d === "auto") {
|
|
158
|
+
const no = w.transitions.getAutoHeightDuration(x);
|
|
159
|
+
n.style.transitionDuration = `${no}ms`, g.current = no;
|
|
160
|
+
} else
|
|
161
|
+
n.style.transitionDuration = typeof B == "string" ? B : `${B}ms`;
|
|
162
|
+
n.style[M] = `${x}px`, n.style.transitionTimingFunction = q, z && z(n, y);
|
|
163
|
+
}), co = R((n, y) => {
|
|
164
|
+
n.style[M] = "auto", j && j(n, y);
|
|
165
|
+
}), lo = R((n) => {
|
|
166
|
+
n.style[M] = `${H()}px`, P && P(n);
|
|
167
|
+
}), po = R(W), uo = R((n) => {
|
|
168
|
+
const y = H(), {
|
|
169
|
+
duration: x,
|
|
170
|
+
easing: B
|
|
171
|
+
} = ro({
|
|
172
|
+
style: m,
|
|
173
|
+
timeout: d,
|
|
174
|
+
easing: $
|
|
175
|
+
}, {
|
|
176
|
+
mode: "exit"
|
|
177
|
+
});
|
|
178
|
+
if (d === "auto") {
|
|
179
|
+
const q = w.transitions.getAutoHeightDuration(y);
|
|
180
|
+
n.style.transitionDuration = `${q}ms`, g.current = q;
|
|
181
|
+
} else
|
|
182
|
+
n.style.transitionDuration = typeof x == "string" ? x : `${x}ms`;
|
|
183
|
+
n.style[M] = C, n.style.transitionTimingFunction = B, k && k(n);
|
|
184
|
+
}), fo = (n) => {
|
|
185
|
+
d === "auto" && U.start(g.current || 0, n), p && p(V.current, n);
|
|
186
|
+
};
|
|
187
|
+
return /* @__PURE__ */ s.jsx(N, {
|
|
188
|
+
in: S,
|
|
189
|
+
onEnter: oo,
|
|
190
|
+
onEntered: co,
|
|
191
|
+
onEntering: eo,
|
|
192
|
+
onExit: lo,
|
|
193
|
+
onExited: po,
|
|
194
|
+
onExiting: uo,
|
|
195
|
+
addEndListener: fo,
|
|
196
|
+
nodeRef: V,
|
|
197
|
+
timeout: d === "auto" ? null : d,
|
|
198
|
+
...G,
|
|
199
|
+
children: (n, {
|
|
200
|
+
ownerState: y,
|
|
201
|
+
...x
|
|
202
|
+
}) => /* @__PURE__ */ s.jsx(Oo, {
|
|
203
|
+
as: v,
|
|
204
|
+
className: L(u.root, b, {
|
|
205
|
+
entered: u.entered,
|
|
206
|
+
exited: !S && C === "0px" && u.hidden
|
|
207
|
+
}[n]),
|
|
208
|
+
style: {
|
|
209
|
+
[O ? "minWidth" : "minHeight"]: C,
|
|
210
|
+
...m
|
|
211
|
+
},
|
|
212
|
+
ref: Z,
|
|
213
|
+
ownerState: {
|
|
214
|
+
...E,
|
|
215
|
+
state: n
|
|
216
|
+
},
|
|
217
|
+
...x,
|
|
218
|
+
children: /* @__PURE__ */ s.jsx(Mo, {
|
|
219
|
+
ownerState: {
|
|
220
|
+
...E,
|
|
221
|
+
state: n
|
|
222
|
+
},
|
|
223
|
+
className: u.wrapper,
|
|
224
|
+
ref: a,
|
|
225
|
+
children: /* @__PURE__ */ s.jsx(Io, {
|
|
226
|
+
ownerState: {
|
|
227
|
+
...E,
|
|
228
|
+
state: n
|
|
229
|
+
},
|
|
230
|
+
className: u.wrapperInner,
|
|
231
|
+
children: h
|
|
232
|
+
})
|
|
233
|
+
})
|
|
234
|
+
})
|
|
235
|
+
});
|
|
236
|
+
});
|
|
237
|
+
process.env.NODE_ENV !== "production" && (J.propTypes = {
|
|
238
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
239
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
240
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
241
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
242
|
+
/**
|
|
243
|
+
* Add a custom transition end trigger. Called with the transitioning DOM
|
|
244
|
+
* node and a done callback. Allows for more fine grained transition end
|
|
245
|
+
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
246
|
+
*/
|
|
247
|
+
addEndListener: o.func,
|
|
248
|
+
/**
|
|
249
|
+
* The content node to be collapsed.
|
|
250
|
+
*/
|
|
251
|
+
children: o.node,
|
|
252
|
+
/**
|
|
253
|
+
* Override or extend the styles applied to the component.
|
|
254
|
+
*/
|
|
255
|
+
classes: o.object,
|
|
256
|
+
/**
|
|
257
|
+
* @ignore
|
|
258
|
+
*/
|
|
259
|
+
className: o.string,
|
|
260
|
+
/**
|
|
261
|
+
* The width (horizontal) or height (vertical) of the container when collapsed.
|
|
262
|
+
* @default '0px'
|
|
263
|
+
*/
|
|
264
|
+
collapsedSize: o.oneOfType([o.number, o.string]),
|
|
265
|
+
/**
|
|
266
|
+
* The component used for the root node.
|
|
267
|
+
* Either a string to use a HTML element or a component.
|
|
268
|
+
*/
|
|
269
|
+
component: bo,
|
|
270
|
+
/**
|
|
271
|
+
* The transition timing function.
|
|
272
|
+
* You may specify a single easing or a object containing enter and exit values.
|
|
273
|
+
*/
|
|
274
|
+
easing: o.oneOfType([o.shape({
|
|
275
|
+
enter: o.string,
|
|
276
|
+
exit: o.string
|
|
277
|
+
}), o.string]),
|
|
278
|
+
/**
|
|
279
|
+
* If `true`, the component will transition in.
|
|
280
|
+
*/
|
|
281
|
+
in: o.bool,
|
|
282
|
+
/**
|
|
283
|
+
* @ignore
|
|
284
|
+
*/
|
|
285
|
+
onEnter: o.func,
|
|
286
|
+
/**
|
|
287
|
+
* @ignore
|
|
288
|
+
*/
|
|
289
|
+
onEntered: o.func,
|
|
290
|
+
/**
|
|
291
|
+
* @ignore
|
|
292
|
+
*/
|
|
293
|
+
onEntering: o.func,
|
|
294
|
+
/**
|
|
295
|
+
* @ignore
|
|
296
|
+
*/
|
|
297
|
+
onExit: o.func,
|
|
298
|
+
/**
|
|
299
|
+
* @ignore
|
|
300
|
+
*/
|
|
301
|
+
onExited: o.func,
|
|
302
|
+
/**
|
|
303
|
+
* @ignore
|
|
304
|
+
*/
|
|
305
|
+
onExiting: o.func,
|
|
306
|
+
/**
|
|
307
|
+
* The transition orientation.
|
|
308
|
+
* @default 'vertical'
|
|
309
|
+
*/
|
|
310
|
+
orientation: o.oneOf(["horizontal", "vertical"]),
|
|
311
|
+
/**
|
|
312
|
+
* @ignore
|
|
313
|
+
*/
|
|
314
|
+
style: o.object,
|
|
315
|
+
/**
|
|
316
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
317
|
+
*/
|
|
318
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
319
|
+
/**
|
|
320
|
+
* The duration for the transition, in milliseconds.
|
|
321
|
+
* You may specify a single timeout for all transitions, or individually with an object.
|
|
322
|
+
*
|
|
323
|
+
* Set to 'auto' to automatically calculate transition time based on height.
|
|
324
|
+
* @default duration.standard
|
|
325
|
+
*/
|
|
326
|
+
timeout: o.oneOfType([o.oneOf(["auto"]), o.number, o.shape({
|
|
327
|
+
appear: o.number,
|
|
328
|
+
enter: o.number,
|
|
329
|
+
exit: o.number
|
|
330
|
+
})])
|
|
331
|
+
});
|
|
332
|
+
J && (J.muiSupportAuto = !0);
|
|
333
|
+
const to = /* @__PURE__ */ l.createContext({});
|
|
334
|
+
process.env.NODE_ENV !== "production" && (to.displayName = "AccordionContext");
|
|
335
|
+
function Do(e) {
|
|
336
|
+
return Y("MuiAccordion", e);
|
|
337
|
+
}
|
|
338
|
+
const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled", "gutters", "region"]), $o = (e) => {
|
|
339
|
+
const {
|
|
340
|
+
classes: t,
|
|
341
|
+
square: r,
|
|
342
|
+
expanded: i,
|
|
343
|
+
disabled: p,
|
|
344
|
+
disableGutters: h
|
|
345
|
+
} = e;
|
|
346
|
+
return Q({
|
|
347
|
+
root: ["root", !r && "rounded", i && "expanded", p && "disabled", !h && "gutters"],
|
|
348
|
+
heading: ["heading"],
|
|
349
|
+
region: ["region"]
|
|
350
|
+
}, Do, t);
|
|
351
|
+
}, zo = T(wo, {
|
|
352
|
+
name: "MuiAccordion",
|
|
353
|
+
slot: "Root",
|
|
354
|
+
overridesResolver: (e, t) => {
|
|
355
|
+
const {
|
|
356
|
+
ownerState: r
|
|
357
|
+
} = e;
|
|
358
|
+
return [{
|
|
359
|
+
[`& .${_.region}`]: t.region
|
|
360
|
+
}, t.root, !r.square && t.rounded, !r.disableGutters && t.gutters];
|
|
361
|
+
}
|
|
362
|
+
})(D(({
|
|
363
|
+
theme: e
|
|
364
|
+
}) => {
|
|
365
|
+
const t = {
|
|
366
|
+
duration: e.transitions.duration.shortest
|
|
367
|
+
};
|
|
368
|
+
return {
|
|
369
|
+
position: "relative",
|
|
370
|
+
transition: e.transitions.create(["margin"], t),
|
|
371
|
+
overflowAnchor: "none",
|
|
372
|
+
// Keep the same scrolling position
|
|
373
|
+
"&::before": {
|
|
374
|
+
position: "absolute",
|
|
375
|
+
left: 0,
|
|
376
|
+
top: -1,
|
|
377
|
+
right: 0,
|
|
378
|
+
height: 1,
|
|
379
|
+
content: '""',
|
|
380
|
+
opacity: 1,
|
|
381
|
+
backgroundColor: (e.vars || e).palette.divider,
|
|
382
|
+
transition: e.transitions.create(["opacity", "background-color"], t)
|
|
383
|
+
},
|
|
384
|
+
"&:first-of-type": {
|
|
385
|
+
"&::before": {
|
|
386
|
+
display: "none"
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
[`&.${_.expanded}`]: {
|
|
390
|
+
"&::before": {
|
|
391
|
+
opacity: 0
|
|
392
|
+
},
|
|
393
|
+
"&:first-of-type": {
|
|
394
|
+
marginTop: 0
|
|
395
|
+
},
|
|
396
|
+
"&:last-of-type": {
|
|
397
|
+
marginBottom: 0
|
|
398
|
+
},
|
|
399
|
+
"& + &": {
|
|
400
|
+
"&::before": {
|
|
401
|
+
display: "none"
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
[`&.${_.disabled}`]: {
|
|
406
|
+
backgroundColor: (e.vars || e).palette.action.disabledBackground
|
|
407
|
+
}
|
|
408
|
+
};
|
|
409
|
+
}), D(({
|
|
410
|
+
theme: e
|
|
411
|
+
}) => ({
|
|
412
|
+
variants: [{
|
|
413
|
+
props: (t) => !t.square,
|
|
414
|
+
style: {
|
|
415
|
+
borderRadius: 0,
|
|
416
|
+
"&:first-of-type": {
|
|
417
|
+
borderTopLeftRadius: (e.vars || e).shape.borderRadius,
|
|
418
|
+
borderTopRightRadius: (e.vars || e).shape.borderRadius
|
|
419
|
+
},
|
|
420
|
+
"&:last-of-type": {
|
|
421
|
+
borderBottomLeftRadius: (e.vars || e).shape.borderRadius,
|
|
422
|
+
borderBottomRightRadius: (e.vars || e).shape.borderRadius,
|
|
423
|
+
// Fix a rendering issue on Edge
|
|
424
|
+
"@supports (-ms-ime-align: auto)": {
|
|
425
|
+
borderBottomLeftRadius: 0,
|
|
426
|
+
borderBottomRightRadius: 0
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}, {
|
|
431
|
+
props: (t) => !t.disableGutters,
|
|
432
|
+
style: {
|
|
433
|
+
[`&.${_.expanded}`]: {
|
|
434
|
+
margin: "16px 0"
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}]
|
|
438
|
+
}))), Wo = T("h3", {
|
|
439
|
+
name: "MuiAccordion",
|
|
440
|
+
slot: "Heading"
|
|
441
|
+
})({
|
|
442
|
+
all: "unset"
|
|
443
|
+
}), ko = T("div", {
|
|
444
|
+
name: "MuiAccordion",
|
|
445
|
+
slot: "Region"
|
|
446
|
+
})({}), so = /* @__PURE__ */ l.forwardRef(function(t, r) {
|
|
447
|
+
const i = K({
|
|
448
|
+
props: t,
|
|
449
|
+
name: "MuiAccordion"
|
|
450
|
+
}), {
|
|
451
|
+
children: p,
|
|
452
|
+
className: h,
|
|
453
|
+
defaultExpanded: b = !1,
|
|
454
|
+
disabled: f = !1,
|
|
455
|
+
disableGutters: v = !1,
|
|
456
|
+
expanded: $,
|
|
457
|
+
onChange: S,
|
|
458
|
+
square: A = !1,
|
|
459
|
+
slots: j = {},
|
|
460
|
+
slotProps: z = {},
|
|
461
|
+
TransitionComponent: P,
|
|
462
|
+
TransitionProps: W,
|
|
463
|
+
...k
|
|
464
|
+
} = i, [c, m] = vo({
|
|
465
|
+
controlled: $,
|
|
466
|
+
default: b,
|
|
467
|
+
name: "Accordion",
|
|
468
|
+
state: "expanded"
|
|
469
|
+
}), d = l.useCallback((eo) => {
|
|
470
|
+
m(!c), S && S(eo, !c);
|
|
471
|
+
}, [c, S, m]), [N, ...G] = l.Children.toArray(p), E = l.useMemo(() => ({
|
|
472
|
+
expanded: c,
|
|
473
|
+
disabled: f,
|
|
474
|
+
disableGutters: v,
|
|
475
|
+
toggle: d
|
|
476
|
+
}), [c, f, v, d]), u = {
|
|
477
|
+
...i,
|
|
478
|
+
square: A,
|
|
479
|
+
disabled: f,
|
|
480
|
+
disableGutters: v,
|
|
481
|
+
expanded: c
|
|
482
|
+
}, w = $o(u), U = {
|
|
483
|
+
transition: P,
|
|
484
|
+
...j
|
|
485
|
+
}, a = {
|
|
486
|
+
transition: W,
|
|
487
|
+
...z
|
|
488
|
+
}, g = {
|
|
489
|
+
slots: U,
|
|
490
|
+
slotProps: a
|
|
491
|
+
}, [C, O] = I("root", {
|
|
492
|
+
elementType: zo,
|
|
493
|
+
externalForwardedProps: {
|
|
494
|
+
...g,
|
|
495
|
+
...k
|
|
496
|
+
},
|
|
497
|
+
className: L(w.root, h),
|
|
498
|
+
shouldForwardComponentProp: !0,
|
|
499
|
+
ownerState: u,
|
|
500
|
+
ref: r,
|
|
501
|
+
additionalProps: {
|
|
502
|
+
square: A
|
|
503
|
+
}
|
|
504
|
+
}), [M, V] = I("heading", {
|
|
505
|
+
elementType: Wo,
|
|
506
|
+
externalForwardedProps: g,
|
|
507
|
+
className: w.heading,
|
|
508
|
+
ownerState: u
|
|
509
|
+
}), [Z, R] = I("transition", {
|
|
510
|
+
elementType: J,
|
|
511
|
+
externalForwardedProps: g,
|
|
512
|
+
ownerState: u
|
|
513
|
+
}), [H, oo] = I("region", {
|
|
514
|
+
elementType: ko,
|
|
515
|
+
externalForwardedProps: g,
|
|
516
|
+
ownerState: u,
|
|
517
|
+
className: w.region,
|
|
518
|
+
additionalProps: {
|
|
519
|
+
"aria-labelledby": N.props.id,
|
|
520
|
+
id: N.props["aria-controls"],
|
|
521
|
+
role: "region"
|
|
522
|
+
}
|
|
523
|
+
});
|
|
524
|
+
return /* @__PURE__ */ s.jsxs(C, {
|
|
525
|
+
...O,
|
|
526
|
+
children: [/* @__PURE__ */ s.jsx(M, {
|
|
527
|
+
...V,
|
|
528
|
+
children: /* @__PURE__ */ s.jsx(to.Provider, {
|
|
529
|
+
value: E,
|
|
530
|
+
children: N
|
|
531
|
+
})
|
|
532
|
+
}), /* @__PURE__ */ s.jsx(Z, {
|
|
533
|
+
in: c,
|
|
534
|
+
timeout: "auto",
|
|
535
|
+
...R,
|
|
536
|
+
children: /* @__PURE__ */ s.jsx(H, {
|
|
537
|
+
...oo,
|
|
538
|
+
children: G
|
|
539
|
+
})
|
|
540
|
+
})]
|
|
541
|
+
});
|
|
542
|
+
});
|
|
543
|
+
process.env.NODE_ENV !== "production" && (so.propTypes = {
|
|
544
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
545
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
546
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
547
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
548
|
+
/**
|
|
549
|
+
* The content of the component.
|
|
550
|
+
*/
|
|
551
|
+
children: To(o.node.isRequired, (e) => {
|
|
552
|
+
const t = l.Children.toArray(e.children)[0];
|
|
553
|
+
return yo.isFragment(t) ? new Error("MUI: The Accordion doesn't accept a Fragment as a child. Consider providing an array instead.") : /* @__PURE__ */ l.isValidElement(t) ? null : new Error("MUI: Expected the first child of Accordion to be a valid element.");
|
|
554
|
+
}),
|
|
555
|
+
/**
|
|
556
|
+
* Override or extend the styles applied to the component.
|
|
557
|
+
*/
|
|
558
|
+
classes: o.object,
|
|
559
|
+
/**
|
|
560
|
+
* @ignore
|
|
561
|
+
*/
|
|
562
|
+
className: o.string,
|
|
563
|
+
/**
|
|
564
|
+
* If `true`, expands the accordion by default.
|
|
565
|
+
* @default false
|
|
566
|
+
*/
|
|
567
|
+
defaultExpanded: o.bool,
|
|
568
|
+
/**
|
|
569
|
+
* If `true`, the component is disabled.
|
|
570
|
+
* @default false
|
|
571
|
+
*/
|
|
572
|
+
disabled: o.bool,
|
|
573
|
+
/**
|
|
574
|
+
* If `true`, it removes the margin between two expanded accordion items and the increase of height.
|
|
575
|
+
* @default false
|
|
576
|
+
*/
|
|
577
|
+
disableGutters: o.bool,
|
|
578
|
+
/**
|
|
579
|
+
* If `true`, expands the accordion, otherwise collapse it.
|
|
580
|
+
* Setting this prop enables control over the accordion.
|
|
581
|
+
*/
|
|
582
|
+
expanded: o.bool,
|
|
583
|
+
/**
|
|
584
|
+
* Callback fired when the expand/collapse state is changed.
|
|
585
|
+
*
|
|
586
|
+
* @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
|
587
|
+
* @param {boolean} expanded The `expanded` state of the accordion.
|
|
588
|
+
*/
|
|
589
|
+
onChange: o.func,
|
|
590
|
+
/**
|
|
591
|
+
* The props used for each slot inside.
|
|
592
|
+
* @default {}
|
|
593
|
+
*/
|
|
594
|
+
slotProps: o.shape({
|
|
595
|
+
heading: o.oneOfType([o.func, o.object]),
|
|
596
|
+
region: o.oneOfType([o.func, o.object]),
|
|
597
|
+
root: o.oneOfType([o.func, o.object]),
|
|
598
|
+
transition: o.oneOfType([o.func, o.object])
|
|
599
|
+
}),
|
|
600
|
+
/**
|
|
601
|
+
* The components used for each slot inside.
|
|
602
|
+
* @default {}
|
|
603
|
+
*/
|
|
604
|
+
slots: o.shape({
|
|
605
|
+
heading: o.elementType,
|
|
606
|
+
region: o.elementType,
|
|
607
|
+
root: o.elementType,
|
|
608
|
+
transition: o.elementType
|
|
609
|
+
}),
|
|
610
|
+
/**
|
|
611
|
+
* If `true`, rounded corners are disabled.
|
|
612
|
+
* @default false
|
|
613
|
+
*/
|
|
614
|
+
square: o.bool,
|
|
615
|
+
/**
|
|
616
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
617
|
+
*/
|
|
618
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object]),
|
|
619
|
+
/**
|
|
620
|
+
* The component used for the transition.
|
|
621
|
+
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
622
|
+
* @deprecated Use `slots.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
623
|
+
*/
|
|
624
|
+
TransitionComponent: o.elementType,
|
|
625
|
+
/**
|
|
626
|
+
* Props applied to the transition element.
|
|
627
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
628
|
+
* @deprecated Use `slotProps.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
629
|
+
*/
|
|
630
|
+
TransitionProps: o.object
|
|
631
|
+
});
|
|
632
|
+
function Vo(e) {
|
|
633
|
+
return Y("MuiAccordionDetails", e);
|
|
634
|
+
}
|
|
635
|
+
X("MuiAccordionDetails", ["root"]);
|
|
636
|
+
const Fo = (e) => {
|
|
637
|
+
const {
|
|
638
|
+
classes: t
|
|
639
|
+
} = e;
|
|
640
|
+
return Q({
|
|
641
|
+
root: ["root"]
|
|
642
|
+
}, Vo, t);
|
|
643
|
+
}, Go = T("div", {
|
|
644
|
+
name: "MuiAccordionDetails",
|
|
645
|
+
slot: "Root"
|
|
646
|
+
})(D(({
|
|
647
|
+
theme: e
|
|
648
|
+
}) => ({
|
|
649
|
+
padding: e.spacing(1, 2, 2)
|
|
650
|
+
}))), io = /* @__PURE__ */ l.forwardRef(function(t, r) {
|
|
651
|
+
const i = K({
|
|
652
|
+
props: t,
|
|
653
|
+
name: "MuiAccordionDetails"
|
|
654
|
+
}), {
|
|
655
|
+
className: p,
|
|
656
|
+
...h
|
|
657
|
+
} = i, b = i, f = Fo(b);
|
|
658
|
+
return /* @__PURE__ */ s.jsx(Go, {
|
|
659
|
+
className: L(f.root, p),
|
|
660
|
+
ref: r,
|
|
661
|
+
ownerState: b,
|
|
662
|
+
...h
|
|
663
|
+
});
|
|
664
|
+
});
|
|
665
|
+
process.env.NODE_ENV !== "production" && (io.propTypes = {
|
|
666
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
667
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
668
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
669
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
670
|
+
/**
|
|
671
|
+
* The content of the component.
|
|
672
|
+
*/
|
|
673
|
+
children: o.node,
|
|
674
|
+
/**
|
|
675
|
+
* Override or extend the styles applied to the component.
|
|
676
|
+
*/
|
|
677
|
+
classes: o.object,
|
|
678
|
+
/**
|
|
679
|
+
* @ignore
|
|
680
|
+
*/
|
|
681
|
+
className: o.string,
|
|
682
|
+
/**
|
|
683
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
684
|
+
*/
|
|
685
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
686
|
+
});
|
|
687
|
+
function Uo(e) {
|
|
688
|
+
return Y("MuiAccordionSummary", e);
|
|
689
|
+
}
|
|
690
|
+
const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disabled", "gutters", "contentGutters", "content", "expandIconWrapper"]), Ho = (e) => {
|
|
691
|
+
const {
|
|
692
|
+
classes: t,
|
|
693
|
+
expanded: r,
|
|
694
|
+
disabled: i,
|
|
695
|
+
disableGutters: p
|
|
696
|
+
} = e;
|
|
697
|
+
return Q({
|
|
698
|
+
root: ["root", r && "expanded", i && "disabled", !p && "gutters"],
|
|
699
|
+
focusVisible: ["focusVisible"],
|
|
700
|
+
content: ["content", r && "expanded", !p && "contentGutters"],
|
|
701
|
+
expandIconWrapper: ["expandIconWrapper", r && "expanded"]
|
|
702
|
+
}, Uo, t);
|
|
703
|
+
}, Bo = T(Co, {
|
|
704
|
+
name: "MuiAccordionSummary",
|
|
705
|
+
slot: "Root"
|
|
706
|
+
})(D(({
|
|
707
|
+
theme: e
|
|
708
|
+
}) => {
|
|
709
|
+
const t = {
|
|
710
|
+
duration: e.transitions.duration.shortest
|
|
711
|
+
};
|
|
712
|
+
return {
|
|
713
|
+
display: "flex",
|
|
714
|
+
width: "100%",
|
|
715
|
+
minHeight: 48,
|
|
716
|
+
padding: e.spacing(0, 2),
|
|
717
|
+
transition: e.transitions.create(["min-height", "background-color"], t),
|
|
718
|
+
[`&.${F.focusVisible}`]: {
|
|
719
|
+
backgroundColor: (e.vars || e).palette.action.focus
|
|
720
|
+
},
|
|
721
|
+
[`&.${F.disabled}`]: {
|
|
722
|
+
opacity: (e.vars || e).palette.action.disabledOpacity
|
|
723
|
+
},
|
|
724
|
+
[`&:hover:not(.${F.disabled})`]: {
|
|
725
|
+
cursor: "pointer"
|
|
726
|
+
},
|
|
727
|
+
variants: [{
|
|
728
|
+
props: (r) => !r.disableGutters,
|
|
729
|
+
style: {
|
|
730
|
+
[`&.${F.expanded}`]: {
|
|
731
|
+
minHeight: 64
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
}]
|
|
735
|
+
};
|
|
736
|
+
})), Lo = T("span", {
|
|
737
|
+
name: "MuiAccordionSummary",
|
|
738
|
+
slot: "Content"
|
|
739
|
+
})(D(({
|
|
740
|
+
theme: e
|
|
741
|
+
}) => ({
|
|
742
|
+
display: "flex",
|
|
743
|
+
textAlign: "start",
|
|
744
|
+
flexGrow: 1,
|
|
745
|
+
margin: "12px 0",
|
|
746
|
+
variants: [{
|
|
747
|
+
props: (t) => !t.disableGutters,
|
|
748
|
+
style: {
|
|
749
|
+
transition: e.transitions.create(["margin"], {
|
|
750
|
+
duration: e.transitions.duration.shortest
|
|
751
|
+
}),
|
|
752
|
+
[`&.${F.expanded}`]: {
|
|
753
|
+
margin: "20px 0"
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
}]
|
|
757
|
+
}))), qo = T("span", {
|
|
758
|
+
name: "MuiAccordionSummary",
|
|
759
|
+
slot: "ExpandIconWrapper"
|
|
760
|
+
})(D(({
|
|
761
|
+
theme: e
|
|
762
|
+
}) => ({
|
|
763
|
+
display: "flex",
|
|
764
|
+
color: (e.vars || e).palette.action.active,
|
|
765
|
+
transform: "rotate(0deg)",
|
|
766
|
+
transition: e.transitions.create("transform", {
|
|
767
|
+
duration: e.transitions.duration.shortest
|
|
768
|
+
}),
|
|
769
|
+
[`&.${F.expanded}`]: {
|
|
770
|
+
transform: "rotate(180deg)"
|
|
771
|
+
}
|
|
772
|
+
}))), ao = /* @__PURE__ */ l.forwardRef(function(t, r) {
|
|
773
|
+
const i = K({
|
|
774
|
+
props: t,
|
|
775
|
+
name: "MuiAccordionSummary"
|
|
776
|
+
}), {
|
|
777
|
+
children: p,
|
|
778
|
+
className: h,
|
|
779
|
+
expandIcon: b,
|
|
780
|
+
focusVisibleClassName: f,
|
|
781
|
+
onClick: v,
|
|
782
|
+
slots: $,
|
|
783
|
+
slotProps: S,
|
|
784
|
+
...A
|
|
785
|
+
} = i, {
|
|
786
|
+
disabled: j = !1,
|
|
787
|
+
disableGutters: z,
|
|
788
|
+
expanded: P,
|
|
789
|
+
toggle: W
|
|
790
|
+
} = l.useContext(to), k = (a) => {
|
|
791
|
+
W && W(a), v && v(a);
|
|
792
|
+
}, c = {
|
|
793
|
+
...i,
|
|
794
|
+
expanded: P,
|
|
795
|
+
disabled: j,
|
|
796
|
+
disableGutters: z
|
|
797
|
+
}, m = Ho(c), d = {
|
|
798
|
+
slots: $,
|
|
799
|
+
slotProps: S
|
|
800
|
+
}, [N, G] = I("root", {
|
|
801
|
+
ref: r,
|
|
802
|
+
shouldForwardComponentProp: !0,
|
|
803
|
+
className: L(m.root, h),
|
|
804
|
+
elementType: Bo,
|
|
805
|
+
externalForwardedProps: {
|
|
806
|
+
...d,
|
|
807
|
+
...A
|
|
808
|
+
},
|
|
809
|
+
ownerState: c,
|
|
810
|
+
additionalProps: {
|
|
811
|
+
focusRipple: !1,
|
|
812
|
+
disableRipple: !0,
|
|
813
|
+
disabled: j,
|
|
814
|
+
"aria-expanded": P,
|
|
815
|
+
focusVisibleClassName: L(m.focusVisible, f)
|
|
816
|
+
},
|
|
817
|
+
getSlotProps: (a) => ({
|
|
818
|
+
...a,
|
|
819
|
+
onClick: (g) => {
|
|
820
|
+
var C;
|
|
821
|
+
(C = a.onClick) == null || C.call(a, g), k(g);
|
|
822
|
+
}
|
|
823
|
+
})
|
|
824
|
+
}), [E, u] = I("content", {
|
|
825
|
+
className: m.content,
|
|
826
|
+
elementType: Lo,
|
|
827
|
+
externalForwardedProps: d,
|
|
828
|
+
ownerState: c
|
|
829
|
+
}), [w, U] = I("expandIconWrapper", {
|
|
830
|
+
className: m.expandIconWrapper,
|
|
831
|
+
elementType: qo,
|
|
832
|
+
externalForwardedProps: d,
|
|
833
|
+
ownerState: c
|
|
834
|
+
});
|
|
835
|
+
return /* @__PURE__ */ s.jsxs(N, {
|
|
836
|
+
...G,
|
|
837
|
+
children: [/* @__PURE__ */ s.jsx(E, {
|
|
838
|
+
...u,
|
|
839
|
+
children: p
|
|
840
|
+
}), b && /* @__PURE__ */ s.jsx(w, {
|
|
841
|
+
...U,
|
|
842
|
+
children: b
|
|
843
|
+
})]
|
|
844
|
+
});
|
|
845
|
+
});
|
|
846
|
+
process.env.NODE_ENV !== "production" && (ao.propTypes = {
|
|
847
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
848
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
849
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
850
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
851
|
+
/**
|
|
852
|
+
* The content of the component.
|
|
853
|
+
*/
|
|
854
|
+
children: o.node,
|
|
855
|
+
/**
|
|
856
|
+
* Override or extend the styles applied to the component.
|
|
857
|
+
*/
|
|
858
|
+
classes: o.object,
|
|
859
|
+
/**
|
|
860
|
+
* @ignore
|
|
861
|
+
*/
|
|
862
|
+
className: o.string,
|
|
863
|
+
/**
|
|
864
|
+
* The icon to display as the expand indicator.
|
|
865
|
+
*/
|
|
866
|
+
expandIcon: o.node,
|
|
867
|
+
/**
|
|
868
|
+
* This prop can help identify which element has keyboard focus.
|
|
869
|
+
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
870
|
+
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
871
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
872
|
+
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
873
|
+
* if needed.
|
|
874
|
+
*/
|
|
875
|
+
focusVisibleClassName: o.string,
|
|
876
|
+
/**
|
|
877
|
+
* @ignore
|
|
878
|
+
*/
|
|
879
|
+
onClick: o.func,
|
|
880
|
+
/**
|
|
881
|
+
* The props used for each slot inside.
|
|
882
|
+
* @default {}
|
|
883
|
+
*/
|
|
884
|
+
slotProps: o.shape({
|
|
885
|
+
content: o.oneOfType([o.func, o.object]),
|
|
886
|
+
expandIconWrapper: o.oneOfType([o.func, o.object]),
|
|
887
|
+
root: o.oneOfType([o.func, o.object])
|
|
888
|
+
}),
|
|
889
|
+
/**
|
|
890
|
+
* The components used for each slot inside.
|
|
891
|
+
* @default {}
|
|
892
|
+
*/
|
|
893
|
+
slots: o.shape({
|
|
894
|
+
content: o.elementType,
|
|
895
|
+
expandIconWrapper: o.elementType,
|
|
896
|
+
root: o.elementType
|
|
897
|
+
}),
|
|
898
|
+
/**
|
|
899
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
900
|
+
*/
|
|
901
|
+
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
902
|
+
});
|
|
903
|
+
const ne = ({ title: e, children: t, startIcon: r, defaultExpanded: i = !1 }) => /* @__PURE__ */ s.jsxs(
|
|
904
|
+
so,
|
|
905
|
+
{
|
|
906
|
+
defaultExpanded: i,
|
|
907
|
+
sx: {
|
|
908
|
+
borderRadius: 1,
|
|
909
|
+
border: "1px solid var(--s-palette-divider) !important",
|
|
910
|
+
backgroundColor: "background.paper"
|
|
911
|
+
},
|
|
912
|
+
variant: "elevation",
|
|
913
|
+
children: [
|
|
914
|
+
/* @__PURE__ */ s.jsx(ao, { expandIcon: /* @__PURE__ */ s.jsx(jo, {}), children: /* @__PURE__ */ s.jsxs(Ro, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
915
|
+
r && /* @__PURE__ */ s.jsx("span", { children: r }),
|
|
916
|
+
/* @__PURE__ */ s.jsx(Ao, { variant: "subtitle1", fontWeight: 600, children: e })
|
|
917
|
+
] }) }),
|
|
918
|
+
/* @__PURE__ */ s.jsx(io, { children: t })
|
|
919
|
+
]
|
|
920
|
+
}
|
|
921
|
+
);
|
|
922
|
+
export {
|
|
923
|
+
ne as default
|
|
924
|
+
};
|