@solostylist/ui-kit 1.0.106 → 1.0.108
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.
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { AccordionProps } from '@mui/material/Accordion';
|
|
3
|
+
import { AccordionDetailsProps } from '@mui/material/AccordionDetails';
|
|
4
|
+
import { AccordionSummaryProps } from '@mui/material/AccordionSummary';
|
|
5
|
+
import { TypographyProps } from '@mui/material/Typography';
|
|
2
6
|
export interface SAccordionProps {
|
|
3
7
|
title: React.ReactNode;
|
|
4
8
|
children: React.ReactNode;
|
|
5
9
|
startIcon?: React.ReactNode;
|
|
6
10
|
defaultExpanded?: boolean;
|
|
11
|
+
titleTypographyProps?: TypographyProps;
|
|
12
|
+
accordionProps?: AccordionProps;
|
|
13
|
+
accordionSummaryProps?: AccordionSummaryProps;
|
|
14
|
+
accordionDetailsProps?: AccordionDetailsProps;
|
|
7
15
|
}
|
|
8
|
-
declare const SAccordion: ({ title, children, startIcon, defaultExpanded }: SAccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare const SAccordion: ({ title, children, startIcon, defaultExpanded, titleTypographyProps, accordionProps, accordionSummaryProps, accordionDetailsProps, }: SAccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
17
|
export default SAccordion;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { j as i } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import { E as mo } from "../ExpandMore-CE1RzE_y.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as u from "react";
|
|
4
4
|
import { l as go, P as o, j as yo } from "../createTheme-YLBX8GSj.js";
|
|
5
|
-
import { u as K, a as L, b as Q, m as
|
|
5
|
+
import { u as K, a as L, b as Q, m as $ } from "../createSvgIcon-DCQI9UV5.js";
|
|
6
6
|
import { b as xo, u as ho, e as bo, d as D, c as To, B as Co } from "../ButtonBase-B-mcxJe8.js";
|
|
7
7
|
import { g as X } from "../generateUtilityClasses-BtVDwGrk.js";
|
|
8
8
|
import { g as Y } from "../colorManipulator-ep5lERxB.js";
|
|
@@ -36,7 +36,7 @@ const Po = (e) => {
|
|
|
36
36
|
} = e;
|
|
37
37
|
return [t.root, t[r.orientation], r.state === "entered" && t.entered, r.state === "exited" && !r.in && r.collapsedSize === "0px" && t.hidden];
|
|
38
38
|
}
|
|
39
|
-
})(
|
|
39
|
+
})($(({
|
|
40
40
|
theme: e
|
|
41
41
|
}) => ({
|
|
42
42
|
height: 0,
|
|
@@ -105,17 +105,17 @@ const Po = (e) => {
|
|
|
105
105
|
height: "100%"
|
|
106
106
|
}
|
|
107
107
|
}]
|
|
108
|
-
}), J = /* @__PURE__ */
|
|
108
|
+
}), J = /* @__PURE__ */ u.forwardRef(function(t, r) {
|
|
109
109
|
const s = K({
|
|
110
110
|
props: t,
|
|
111
111
|
name: "MuiCollapse"
|
|
112
112
|
}), {
|
|
113
|
-
addEndListener:
|
|
114
|
-
children:
|
|
115
|
-
className:
|
|
116
|
-
collapsedSize:
|
|
113
|
+
addEndListener: c,
|
|
114
|
+
children: m,
|
|
115
|
+
className: g,
|
|
116
|
+
collapsedSize: l = "0px",
|
|
117
117
|
component: E,
|
|
118
|
-
easing:
|
|
118
|
+
easing: I,
|
|
119
119
|
in: S,
|
|
120
120
|
onEnter: A,
|
|
121
121
|
onEntered: j,
|
|
@@ -123,65 +123,65 @@ const Po = (e) => {
|
|
|
123
123
|
onExit: P,
|
|
124
124
|
onExited: W,
|
|
125
125
|
onExiting: V,
|
|
126
|
-
orientation:
|
|
127
|
-
style:
|
|
128
|
-
timeout:
|
|
126
|
+
orientation: d = "vertical",
|
|
127
|
+
style: y,
|
|
128
|
+
timeout: p = go.standard,
|
|
129
129
|
// eslint-disable-next-line react/prop-types
|
|
130
130
|
TransitionComponent: N = So,
|
|
131
131
|
...G
|
|
132
132
|
} = s, v = {
|
|
133
133
|
...s,
|
|
134
|
-
orientation:
|
|
135
|
-
collapsedSize:
|
|
136
|
-
},
|
|
134
|
+
orientation: d,
|
|
135
|
+
collapsedSize: l
|
|
136
|
+
}, f = Po(v), w = vo(), U = xo(), a = u.useRef(null), x = u.useRef(), C = typeof l == "number" ? `${l}px` : l, O = d === "horizontal", M = O ? "width" : "height", k = u.useRef(null), Z = ho(r, k), R = (n) => (h) => {
|
|
137
137
|
if (n) {
|
|
138
|
-
const
|
|
139
|
-
|
|
138
|
+
const b = k.current;
|
|
139
|
+
h === void 0 ? n(b) : n(b, h);
|
|
140
140
|
}
|
|
141
|
-
}, H = () => a.current ? a.current[O ? "clientWidth" : "clientHeight"] : 0, oo = R((n,
|
|
142
|
-
a.current && O && (a.current.style.position = "absolute"), n.style[M] = C, A && A(n,
|
|
143
|
-
}), eo = R((n,
|
|
144
|
-
const
|
|
141
|
+
}, H = () => a.current ? a.current[O ? "clientWidth" : "clientHeight"] : 0, oo = R((n, h) => {
|
|
142
|
+
a.current && O && (a.current.style.position = "absolute"), n.style[M] = C, A && A(n, h);
|
|
143
|
+
}), eo = R((n, h) => {
|
|
144
|
+
const b = H();
|
|
145
145
|
a.current && O && (a.current.style.position = "");
|
|
146
146
|
const {
|
|
147
147
|
duration: B,
|
|
148
148
|
easing: q
|
|
149
149
|
} = ro({
|
|
150
|
-
style:
|
|
151
|
-
timeout:
|
|
152
|
-
easing:
|
|
150
|
+
style: y,
|
|
151
|
+
timeout: p,
|
|
152
|
+
easing: I
|
|
153
153
|
}, {
|
|
154
154
|
mode: "enter"
|
|
155
155
|
});
|
|
156
|
-
if (
|
|
157
|
-
const no = w.transitions.getAutoHeightDuration(
|
|
158
|
-
n.style.transitionDuration = `${no}ms`,
|
|
156
|
+
if (p === "auto") {
|
|
157
|
+
const no = w.transitions.getAutoHeightDuration(b);
|
|
158
|
+
n.style.transitionDuration = `${no}ms`, x.current = no;
|
|
159
159
|
} else
|
|
160
160
|
n.style.transitionDuration = typeof B == "string" ? B : `${B}ms`;
|
|
161
|
-
n.style[M] = `${
|
|
162
|
-
}), co = R((n,
|
|
163
|
-
n.style[M] = "auto", j && j(n,
|
|
161
|
+
n.style[M] = `${b}px`, n.style.transitionTimingFunction = q, z && z(n, h);
|
|
162
|
+
}), co = R((n, h) => {
|
|
163
|
+
n.style[M] = "auto", j && j(n, h);
|
|
164
164
|
}), lo = R((n) => {
|
|
165
165
|
n.style[M] = `${H()}px`, P && P(n);
|
|
166
166
|
}), po = R(W), uo = R((n) => {
|
|
167
|
-
const
|
|
168
|
-
duration:
|
|
167
|
+
const h = H(), {
|
|
168
|
+
duration: b,
|
|
169
169
|
easing: B
|
|
170
170
|
} = ro({
|
|
171
|
-
style:
|
|
172
|
-
timeout:
|
|
173
|
-
easing:
|
|
171
|
+
style: y,
|
|
172
|
+
timeout: p,
|
|
173
|
+
easing: I
|
|
174
174
|
}, {
|
|
175
175
|
mode: "exit"
|
|
176
176
|
});
|
|
177
|
-
if (
|
|
178
|
-
const q = w.transitions.getAutoHeightDuration(
|
|
179
|
-
n.style.transitionDuration = `${q}ms`,
|
|
177
|
+
if (p === "auto") {
|
|
178
|
+
const q = w.transitions.getAutoHeightDuration(h);
|
|
179
|
+
n.style.transitionDuration = `${q}ms`, x.current = q;
|
|
180
180
|
} else
|
|
181
|
-
n.style.transitionDuration = typeof
|
|
181
|
+
n.style.transitionDuration = typeof b == "string" ? b : `${b}ms`;
|
|
182
182
|
n.style[M] = C, n.style.transitionTimingFunction = B, V && V(n);
|
|
183
183
|
}), fo = (n) => {
|
|
184
|
-
|
|
184
|
+
p === "auto" && U.start(x.current || 0, n), c && c(k.current, n);
|
|
185
185
|
};
|
|
186
186
|
return /* @__PURE__ */ i.jsx(N, {
|
|
187
187
|
in: S,
|
|
@@ -193,41 +193,41 @@ const Po = (e) => {
|
|
|
193
193
|
onExiting: uo,
|
|
194
194
|
addEndListener: fo,
|
|
195
195
|
nodeRef: k,
|
|
196
|
-
timeout:
|
|
196
|
+
timeout: p === "auto" ? null : p,
|
|
197
197
|
...G,
|
|
198
198
|
children: (n, {
|
|
199
|
-
ownerState:
|
|
200
|
-
...
|
|
199
|
+
ownerState: h,
|
|
200
|
+
...b
|
|
201
201
|
}) => /* @__PURE__ */ i.jsx(No, {
|
|
202
202
|
as: E,
|
|
203
|
-
className: L(
|
|
204
|
-
entered:
|
|
205
|
-
exited: !S && C === "0px" &&
|
|
203
|
+
className: L(f.root, g, {
|
|
204
|
+
entered: f.entered,
|
|
205
|
+
exited: !S && C === "0px" && f.hidden
|
|
206
206
|
}[n]),
|
|
207
207
|
style: {
|
|
208
208
|
[O ? "minWidth" : "minHeight"]: C,
|
|
209
|
-
...
|
|
209
|
+
...y
|
|
210
210
|
},
|
|
211
211
|
ref: Z,
|
|
212
212
|
ownerState: {
|
|
213
213
|
...v,
|
|
214
214
|
state: n
|
|
215
215
|
},
|
|
216
|
-
...
|
|
216
|
+
...b,
|
|
217
217
|
children: /* @__PURE__ */ i.jsx(Oo, {
|
|
218
218
|
ownerState: {
|
|
219
219
|
...v,
|
|
220
220
|
state: n
|
|
221
221
|
},
|
|
222
|
-
className:
|
|
222
|
+
className: f.wrapper,
|
|
223
223
|
ref: a,
|
|
224
224
|
children: /* @__PURE__ */ i.jsx(Mo, {
|
|
225
225
|
ownerState: {
|
|
226
226
|
...v,
|
|
227
227
|
state: n
|
|
228
228
|
},
|
|
229
|
-
className:
|
|
230
|
-
children:
|
|
229
|
+
className: f.wrapperInner,
|
|
230
|
+
children: m
|
|
231
231
|
})
|
|
232
232
|
})
|
|
233
233
|
})
|
|
@@ -329,25 +329,25 @@ process.env.NODE_ENV !== "production" && (J.propTypes = {
|
|
|
329
329
|
})])
|
|
330
330
|
});
|
|
331
331
|
J && (J.muiSupportAuto = !0);
|
|
332
|
-
const to = /* @__PURE__ */
|
|
332
|
+
const to = /* @__PURE__ */ u.createContext({});
|
|
333
333
|
process.env.NODE_ENV !== "production" && (to.displayName = "AccordionContext");
|
|
334
334
|
function Do(e) {
|
|
335
335
|
return Y("MuiAccordion", e);
|
|
336
336
|
}
|
|
337
|
-
const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled", "gutters", "region"]),
|
|
337
|
+
const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled", "gutters", "region"]), $o = (e) => {
|
|
338
338
|
const {
|
|
339
339
|
classes: t,
|
|
340
340
|
square: r,
|
|
341
341
|
expanded: s,
|
|
342
|
-
disabled:
|
|
343
|
-
disableGutters:
|
|
342
|
+
disabled: c,
|
|
343
|
+
disableGutters: m
|
|
344
344
|
} = e;
|
|
345
345
|
return Q({
|
|
346
|
-
root: ["root", !r && "rounded", s && "expanded",
|
|
346
|
+
root: ["root", !r && "rounded", s && "expanded", c && "disabled", !m && "gutters"],
|
|
347
347
|
heading: ["heading"],
|
|
348
348
|
region: ["region"]
|
|
349
349
|
}, Do, t);
|
|
350
|
-
},
|
|
350
|
+
}, Io = T(wo, {
|
|
351
351
|
name: "MuiAccordion",
|
|
352
352
|
slot: "Root",
|
|
353
353
|
overridesResolver: (e, t) => {
|
|
@@ -358,7 +358,7 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
358
358
|
[`& .${_.region}`]: t.region
|
|
359
359
|
}, t.root, !r.square && t.rounded, !r.disableGutters && t.gutters];
|
|
360
360
|
}
|
|
361
|
-
})(
|
|
361
|
+
})($(({
|
|
362
362
|
theme: e
|
|
363
363
|
}) => {
|
|
364
364
|
const t = {
|
|
@@ -405,7 +405,7 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
405
405
|
backgroundColor: (e.vars || e).palette.action.disabledBackground
|
|
406
406
|
}
|
|
407
407
|
};
|
|
408
|
-
}),
|
|
408
|
+
}), $(({
|
|
409
409
|
theme: e
|
|
410
410
|
}) => ({
|
|
411
411
|
variants: [{
|
|
@@ -442,17 +442,17 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
442
442
|
}), Wo = T("div", {
|
|
443
443
|
name: "MuiAccordion",
|
|
444
444
|
slot: "Region"
|
|
445
|
-
})({}), so = /* @__PURE__ */
|
|
445
|
+
})({}), so = /* @__PURE__ */ u.forwardRef(function(t, r) {
|
|
446
446
|
const s = K({
|
|
447
447
|
props: t,
|
|
448
448
|
name: "MuiAccordion"
|
|
449
449
|
}), {
|
|
450
|
-
children:
|
|
451
|
-
className:
|
|
452
|
-
defaultExpanded:
|
|
453
|
-
disabled:
|
|
450
|
+
children: c,
|
|
451
|
+
className: m,
|
|
452
|
+
defaultExpanded: g = !1,
|
|
453
|
+
disabled: l = !1,
|
|
454
454
|
disableGutters: E = !1,
|
|
455
|
-
expanded:
|
|
455
|
+
expanded: I,
|
|
456
456
|
onChange: S,
|
|
457
457
|
square: A = !1,
|
|
458
458
|
slots: j = {},
|
|
@@ -460,59 +460,59 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
460
460
|
TransitionComponent: P,
|
|
461
461
|
TransitionProps: W,
|
|
462
462
|
...V
|
|
463
|
-
} = s, [
|
|
464
|
-
controlled:
|
|
465
|
-
default:
|
|
463
|
+
} = s, [d, y] = Eo({
|
|
464
|
+
controlled: I,
|
|
465
|
+
default: g,
|
|
466
466
|
name: "Accordion",
|
|
467
467
|
state: "expanded"
|
|
468
|
-
}),
|
|
469
|
-
|
|
470
|
-
}, [
|
|
471
|
-
expanded:
|
|
472
|
-
disabled:
|
|
468
|
+
}), p = u.useCallback((eo) => {
|
|
469
|
+
y(!d), S && S(eo, !d);
|
|
470
|
+
}, [d, S, y]), [N, ...G] = u.Children.toArray(c), v = u.useMemo(() => ({
|
|
471
|
+
expanded: d,
|
|
472
|
+
disabled: l,
|
|
473
473
|
disableGutters: E,
|
|
474
|
-
toggle:
|
|
475
|
-
}), [
|
|
474
|
+
toggle: p
|
|
475
|
+
}), [d, l, E, p]), f = {
|
|
476
476
|
...s,
|
|
477
477
|
square: A,
|
|
478
|
-
disabled:
|
|
478
|
+
disabled: l,
|
|
479
479
|
disableGutters: E,
|
|
480
|
-
expanded:
|
|
481
|
-
}, w =
|
|
480
|
+
expanded: d
|
|
481
|
+
}, w = $o(f), U = {
|
|
482
482
|
transition: P,
|
|
483
483
|
...j
|
|
484
484
|
}, a = {
|
|
485
485
|
transition: W,
|
|
486
486
|
...z
|
|
487
|
-
},
|
|
487
|
+
}, x = {
|
|
488
488
|
slots: U,
|
|
489
489
|
slotProps: a
|
|
490
490
|
}, [C, O] = D("root", {
|
|
491
|
-
elementType:
|
|
491
|
+
elementType: Io,
|
|
492
492
|
externalForwardedProps: {
|
|
493
|
-
...
|
|
493
|
+
...x,
|
|
494
494
|
...V
|
|
495
495
|
},
|
|
496
|
-
className: L(w.root,
|
|
496
|
+
className: L(w.root, m),
|
|
497
497
|
shouldForwardComponentProp: !0,
|
|
498
|
-
ownerState:
|
|
498
|
+
ownerState: f,
|
|
499
499
|
ref: r,
|
|
500
500
|
additionalProps: {
|
|
501
501
|
square: A
|
|
502
502
|
}
|
|
503
503
|
}), [M, k] = D("heading", {
|
|
504
504
|
elementType: zo,
|
|
505
|
-
externalForwardedProps:
|
|
505
|
+
externalForwardedProps: x,
|
|
506
506
|
className: w.heading,
|
|
507
|
-
ownerState:
|
|
507
|
+
ownerState: f
|
|
508
508
|
}), [Z, R] = D("transition", {
|
|
509
509
|
elementType: J,
|
|
510
|
-
externalForwardedProps:
|
|
511
|
-
ownerState:
|
|
510
|
+
externalForwardedProps: x,
|
|
511
|
+
ownerState: f
|
|
512
512
|
}), [H, oo] = D("region", {
|
|
513
513
|
elementType: Wo,
|
|
514
|
-
externalForwardedProps:
|
|
515
|
-
ownerState:
|
|
514
|
+
externalForwardedProps: x,
|
|
515
|
+
ownerState: f,
|
|
516
516
|
className: w.region,
|
|
517
517
|
additionalProps: {
|
|
518
518
|
"aria-labelledby": N.props.id,
|
|
@@ -529,7 +529,7 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
529
529
|
children: N
|
|
530
530
|
})
|
|
531
531
|
}), /* @__PURE__ */ i.jsx(Z, {
|
|
532
|
-
in:
|
|
532
|
+
in: d,
|
|
533
533
|
timeout: "auto",
|
|
534
534
|
...R,
|
|
535
535
|
children: /* @__PURE__ */ i.jsx(H, {
|
|
@@ -548,8 +548,8 @@ process.env.NODE_ENV !== "production" && (so.propTypes = {
|
|
|
548
548
|
* The content of the component.
|
|
549
549
|
*/
|
|
550
550
|
children: To(o.node.isRequired, (e) => {
|
|
551
|
-
const t =
|
|
552
|
-
return yo.isFragment(t) ? new Error("MUI: The Accordion doesn't accept a Fragment as a child. Consider providing an array instead.") : /* @__PURE__ */
|
|
551
|
+
const t = u.Children.toArray(e.children)[0];
|
|
552
|
+
return yo.isFragment(t) ? new Error("MUI: The Accordion doesn't accept a Fragment as a child. Consider providing an array instead.") : /* @__PURE__ */ u.isValidElement(t) ? null : new Error("MUI: Expected the first child of Accordion to be a valid element.");
|
|
553
553
|
}),
|
|
554
554
|
/**
|
|
555
555
|
* Override or extend the styles applied to the component.
|
|
@@ -642,23 +642,23 @@ const ko = (e) => {
|
|
|
642
642
|
}, Fo = T("div", {
|
|
643
643
|
name: "MuiAccordionDetails",
|
|
644
644
|
slot: "Root"
|
|
645
|
-
})(
|
|
645
|
+
})($(({
|
|
646
646
|
theme: e
|
|
647
647
|
}) => ({
|
|
648
648
|
padding: e.spacing(1, 2, 2)
|
|
649
|
-
}))), io = /* @__PURE__ */
|
|
649
|
+
}))), io = /* @__PURE__ */ u.forwardRef(function(t, r) {
|
|
650
650
|
const s = K({
|
|
651
651
|
props: t,
|
|
652
652
|
name: "MuiAccordionDetails"
|
|
653
653
|
}), {
|
|
654
|
-
className:
|
|
655
|
-
...
|
|
656
|
-
} = s,
|
|
654
|
+
className: c,
|
|
655
|
+
...m
|
|
656
|
+
} = s, g = s, l = ko(g);
|
|
657
657
|
return /* @__PURE__ */ i.jsx(Fo, {
|
|
658
|
-
className: L(
|
|
658
|
+
className: L(l.root, c),
|
|
659
659
|
ref: r,
|
|
660
|
-
ownerState:
|
|
661
|
-
...
|
|
660
|
+
ownerState: g,
|
|
661
|
+
...m
|
|
662
662
|
});
|
|
663
663
|
});
|
|
664
664
|
process.env.NODE_ENV !== "production" && (io.propTypes = {
|
|
@@ -691,18 +691,18 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
691
691
|
classes: t,
|
|
692
692
|
expanded: r,
|
|
693
693
|
disabled: s,
|
|
694
|
-
disableGutters:
|
|
694
|
+
disableGutters: c
|
|
695
695
|
} = e;
|
|
696
696
|
return Q({
|
|
697
|
-
root: ["root", r && "expanded", s && "disabled", !
|
|
697
|
+
root: ["root", r && "expanded", s && "disabled", !c && "gutters"],
|
|
698
698
|
focusVisible: ["focusVisible"],
|
|
699
|
-
content: ["content", r && "expanded", !
|
|
699
|
+
content: ["content", r && "expanded", !c && "contentGutters"],
|
|
700
700
|
expandIconWrapper: ["expandIconWrapper", r && "expanded"]
|
|
701
701
|
}, Go, t);
|
|
702
702
|
}, Ho = T(Co, {
|
|
703
703
|
name: "MuiAccordionSummary",
|
|
704
704
|
slot: "Root"
|
|
705
|
-
})(
|
|
705
|
+
})($(({
|
|
706
706
|
theme: e
|
|
707
707
|
}) => {
|
|
708
708
|
const t = {
|
|
@@ -735,7 +735,7 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
735
735
|
})), Bo = T("span", {
|
|
736
736
|
name: "MuiAccordionSummary",
|
|
737
737
|
slot: "Content"
|
|
738
|
-
})(
|
|
738
|
+
})($(({
|
|
739
739
|
theme: e
|
|
740
740
|
}) => ({
|
|
741
741
|
display: "flex",
|
|
@@ -756,7 +756,7 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
756
756
|
}))), Lo = T("span", {
|
|
757
757
|
name: "MuiAccordionSummary",
|
|
758
758
|
slot: "ExpandIconWrapper"
|
|
759
|
-
})(
|
|
759
|
+
})($(({
|
|
760
760
|
theme: e
|
|
761
761
|
}) => ({
|
|
762
762
|
display: "flex",
|
|
@@ -768,17 +768,17 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
768
768
|
[`&.${F.expanded}`]: {
|
|
769
769
|
transform: "rotate(180deg)"
|
|
770
770
|
}
|
|
771
|
-
}))), ao = /* @__PURE__ */
|
|
771
|
+
}))), ao = /* @__PURE__ */ u.forwardRef(function(t, r) {
|
|
772
772
|
const s = K({
|
|
773
773
|
props: t,
|
|
774
774
|
name: "MuiAccordionSummary"
|
|
775
775
|
}), {
|
|
776
|
-
children:
|
|
777
|
-
className:
|
|
778
|
-
expandIcon:
|
|
779
|
-
focusVisibleClassName:
|
|
776
|
+
children: c,
|
|
777
|
+
className: m,
|
|
778
|
+
expandIcon: g,
|
|
779
|
+
focusVisibleClassName: l,
|
|
780
780
|
onClick: E,
|
|
781
|
-
slots:
|
|
781
|
+
slots: I,
|
|
782
782
|
slotProps: S,
|
|
783
783
|
...A
|
|
784
784
|
} = s, {
|
|
@@ -786,59 +786,59 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
786
786
|
disableGutters: z,
|
|
787
787
|
expanded: P,
|
|
788
788
|
toggle: W
|
|
789
|
-
} =
|
|
789
|
+
} = u.useContext(to), V = (a) => {
|
|
790
790
|
W && W(a), E && E(a);
|
|
791
|
-
},
|
|
791
|
+
}, d = {
|
|
792
792
|
...s,
|
|
793
793
|
expanded: P,
|
|
794
794
|
disabled: j,
|
|
795
795
|
disableGutters: z
|
|
796
|
-
},
|
|
797
|
-
slots:
|
|
796
|
+
}, y = Uo(d), p = {
|
|
797
|
+
slots: I,
|
|
798
798
|
slotProps: S
|
|
799
799
|
}, [N, G] = D("root", {
|
|
800
800
|
ref: r,
|
|
801
801
|
shouldForwardComponentProp: !0,
|
|
802
|
-
className: L(
|
|
802
|
+
className: L(y.root, m),
|
|
803
803
|
elementType: Ho,
|
|
804
804
|
externalForwardedProps: {
|
|
805
|
-
...
|
|
805
|
+
...p,
|
|
806
806
|
...A
|
|
807
807
|
},
|
|
808
|
-
ownerState:
|
|
808
|
+
ownerState: d,
|
|
809
809
|
additionalProps: {
|
|
810
810
|
focusRipple: !1,
|
|
811
811
|
disableRipple: !0,
|
|
812
812
|
disabled: j,
|
|
813
813
|
"aria-expanded": P,
|
|
814
|
-
focusVisibleClassName: L(
|
|
814
|
+
focusVisibleClassName: L(y.focusVisible, l)
|
|
815
815
|
},
|
|
816
816
|
getSlotProps: (a) => ({
|
|
817
817
|
...a,
|
|
818
|
-
onClick: (
|
|
818
|
+
onClick: (x) => {
|
|
819
819
|
var C;
|
|
820
|
-
(C = a.onClick) == null || C.call(a,
|
|
820
|
+
(C = a.onClick) == null || C.call(a, x), V(x);
|
|
821
821
|
}
|
|
822
822
|
})
|
|
823
|
-
}), [v,
|
|
824
|
-
className:
|
|
823
|
+
}), [v, f] = D("content", {
|
|
824
|
+
className: y.content,
|
|
825
825
|
elementType: Bo,
|
|
826
|
-
externalForwardedProps:
|
|
827
|
-
ownerState:
|
|
826
|
+
externalForwardedProps: p,
|
|
827
|
+
ownerState: d
|
|
828
828
|
}), [w, U] = D("expandIconWrapper", {
|
|
829
|
-
className:
|
|
829
|
+
className: y.expandIconWrapper,
|
|
830
830
|
elementType: Lo,
|
|
831
|
-
externalForwardedProps:
|
|
832
|
-
ownerState:
|
|
831
|
+
externalForwardedProps: p,
|
|
832
|
+
ownerState: d
|
|
833
833
|
});
|
|
834
834
|
return /* @__PURE__ */ i.jsxs(N, {
|
|
835
835
|
...G,
|
|
836
836
|
children: [/* @__PURE__ */ i.jsx(v, {
|
|
837
|
-
...
|
|
838
|
-
children:
|
|
839
|
-
}),
|
|
837
|
+
...f,
|
|
838
|
+
children: c
|
|
839
|
+
}), g && /* @__PURE__ */ i.jsx(w, {
|
|
840
840
|
...U,
|
|
841
|
-
children:
|
|
841
|
+
children: g
|
|
842
842
|
})]
|
|
843
843
|
});
|
|
844
844
|
});
|
|
@@ -899,7 +899,16 @@ process.env.NODE_ENV !== "production" && (ao.propTypes = {
|
|
|
899
899
|
*/
|
|
900
900
|
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
901
901
|
});
|
|
902
|
-
const re = ({
|
|
902
|
+
const re = ({
|
|
903
|
+
title: e,
|
|
904
|
+
children: t,
|
|
905
|
+
startIcon: r,
|
|
906
|
+
defaultExpanded: s = !1,
|
|
907
|
+
titleTypographyProps: c,
|
|
908
|
+
accordionProps: m,
|
|
909
|
+
accordionSummaryProps: g,
|
|
910
|
+
accordionDetailsProps: l
|
|
911
|
+
}) => /* @__PURE__ */ i.jsxs(
|
|
903
912
|
so,
|
|
904
913
|
{
|
|
905
914
|
defaultExpanded: s,
|
|
@@ -909,12 +918,13 @@ const re = ({ title: e, children: t, startIcon: r, defaultExpanded: s = !1 }) =>
|
|
|
909
918
|
borderColor: "divider"
|
|
910
919
|
},
|
|
911
920
|
elevation: 0,
|
|
921
|
+
...m,
|
|
912
922
|
children: [
|
|
913
|
-
/* @__PURE__ */ i.jsx(ao, { expandIcon: /* @__PURE__ */ i.jsx(mo, {}), children: /* @__PURE__ */ i.jsxs(Ro, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
923
|
+
e || r ? /* @__PURE__ */ i.jsx(ao, { expandIcon: /* @__PURE__ */ i.jsx(mo, {}), ...g, children: /* @__PURE__ */ i.jsxs(Ro, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
914
924
|
r,
|
|
915
|
-
/* @__PURE__ */ i.jsx(Ao, { variant: "subtitle1", fontWeight: 600, children: e })
|
|
916
|
-
] }) }),
|
|
917
|
-
/* @__PURE__ */ i.jsx(io, { children: t })
|
|
925
|
+
/* @__PURE__ */ i.jsx(Ao, { variant: "subtitle1", fontWeight: 600, ...c, children: e })
|
|
926
|
+
] }) }) : null,
|
|
927
|
+
/* @__PURE__ */ i.jsx(io, { ...l, children: t })
|
|
918
928
|
]
|
|
919
929
|
}
|
|
920
930
|
);
|