@solostylist/ui-kit 1.0.174 → 1.0.176
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/{ArrowUpward-DhTFpzoh.js → ArrowUpward-CEeqSc-C.js} +2 -2
- package/dist/{Box-Ha0cQ4KO.js → Box-CE3rycd-.js} +5 -5
- package/dist/ButtonBase-C_YYB9Ry.js +1099 -0
- package/dist/{ChevronLeft-CBuFk2Fh.js → ChevronLeft-6gdh4lRt.js} +2 -2
- package/dist/{ChevronRight-CnDWPrOm.js → ChevronRight-CC3l-wPC.js} +2 -2
- package/dist/{Close-BRlEKA2Q.js → Close-DOHlPcFK.js} +2 -2
- package/dist/{ContentCopy-7nFBtjhs.js → ContentCopy-2xxDThyB.js} +2 -2
- package/dist/DefaultPropsProvider-sk0uWcA6.js +64 -0
- package/dist/{Download-UsLvGg3y.js → Download-Chao5NQl.js} +2 -2
- package/dist/{ExpandMore-DTWX_mHf.js → ExpandMore-DIGPB4Mj.js} +2 -2
- package/dist/{Favorite-DS5Gpq2s.js → Favorite-wp65zwWq.js} +2 -2
- package/dist/{Menu-CWq-a1Wz.js → Menu-DZYzE2Mg.js} +908 -906
- package/dist/{MenuItem-DY_qFSPR.js → MenuItem-BXiIhfBS.js} +26 -25
- package/dist/Paper-DnctZB5U.js +689 -0
- package/dist/{Select-DabtQlJT.js → Select-DY7XGVsv.js} +2152 -2115
- package/dist/{Stack-Cq2r2NmC.js → Stack-BScsuyQy.js} +6 -6
- package/dist/{Typography-C8jwvSWe.js → Typography-9Kg27dDw.js} +84 -86
- package/dist/{_commonjsHelpers-B4e78b8K.js → _commonjsHelpers-ByX85dGu.js} +18 -13
- package/dist/assets/s-overlay-scrollbar.css +1 -9
- package/dist/createSvgIcon-BKymXuBG.js +242 -0
- package/dist/{createTheme-3Wd3hHrj.js → createTheme-f5g1s6ww.js} +859 -906
- package/dist/defaultTheme-LSr-S9un.js +5 -0
- package/dist/entries/carousel.d.ts +10 -0
- package/dist/entries/carousel.js +4 -0
- package/dist/entries/chat.d.ts +9 -0
- package/dist/entries/chat.js +4 -0
- package/dist/entries/code.d.ts +9 -0
- package/dist/entries/code.js +4 -0
- package/dist/entries/core.d.ts +100 -0
- package/dist/entries/core.js +122 -0
- package/dist/entries/dates.d.ts +16 -0
- package/dist/entries/dates.js +12 -0
- package/dist/entries/dropzone.d.ts +9 -0
- package/dist/entries/dropzone.js +4 -0
- package/dist/entries/editor.d.ts +12 -0
- package/dist/entries/editor.js +4 -0
- package/dist/entries/gallery.d.ts +17 -0
- package/dist/entries/gallery.js +13 -0
- package/dist/entries/i18n.d.ts +13 -0
- package/dist/entries/i18n.js +8 -0
- package/dist/entries/motion.d.ts +29 -0
- package/dist/entries/motion.js +28 -0
- package/dist/entries/scrollbar.d.ts +9 -0
- package/dist/entries/scrollbar.js +4 -0
- package/dist/entries/stripe.d.ts +10 -0
- package/dist/entries/stripe.js +10 -0
- package/dist/extendSxProp-DitxZ8We.js +36 -0
- package/dist/hooks/index.js +8 -9
- package/dist/hooks/use-is-passed-position.js +10 -10
- package/dist/{index-BGvzecIA.js → index-D3G5Rwl-.js} +0 -7
- package/dist/{index-CfKHZ86U.js → index-DtYP8YE7.js} +12 -13
- package/dist/{jsx-runtime-OVHDjVDe.js → jsx-runtime-tc70JA_2.js} +108 -128
- package/dist/main.d.ts +29 -145
- package/dist/main.js +187 -187
- package/dist/mergeSlotProps-CuzBQdlp.js +62 -0
- package/dist/resolveProps-BDH0VJjn.js +39 -0
- package/dist/s-accordion/package.json +5 -5
- package/dist/s-accordion/s-accordion.js +374 -358
- package/dist/s-action-overlay/package.json +5 -5
- package/dist/s-action-overlay/s-action-overlay.js +64 -79
- package/dist/s-ai-tool-bar/package.json +5 -5
- package/dist/s-ai-tool-bar/s-ai-tool-bar.js +260 -275
- package/dist/s-autocomplete/s-autocomplete.js +19 -25
- package/dist/s-avatar/package.json +5 -5
- package/dist/s-avatar/s-avatar.js +14 -25
- package/dist/s-blur-text/package.json +5 -5
- package/dist/s-blur-text/s-blur-text.js +55 -59
- package/dist/s-breadcrumbs/package.json +5 -5
- package/dist/s-breadcrumbs/s-breadcrumbs.js +31 -39
- package/dist/s-button/package.json +5 -5
- package/dist/s-button/s-button.js +7 -15
- package/dist/s-button-link/s-button-link.js +28 -36
- package/dist/s-carousel/package.json +4 -4
- package/dist/s-carousel/s-carousel.js +267 -280
- package/dist/s-category-card/package.json +4 -4
- package/dist/s-category-card/s-category-card.js +60 -77
- package/dist/s-chat-input/package.json +5 -5
- package/dist/s-chat-input/s-chat-input.d.ts +4 -0
- package/dist/s-chat-input/s-chat-input.js +103 -109
- package/dist/s-chat-message/s-chat-message.js +111 -120
- package/dist/s-checkbox/s-checkbox.js +12 -20
- package/dist/s-chip/package.json +5 -5
- package/dist/s-chip/s-chip.js +7 -15
- package/dist/s-chips/s-chips.js +47 -56
- package/dist/s-code-block/package.json +5 -5
- package/dist/s-code-block/s-code-block.js +35 -43
- package/dist/s-comment-message/package.json +5 -5
- package/dist/s-comment-message/s-comment-message.js +90 -94
- package/dist/s-copyable-text/s-copyable-text.js +24 -32
- package/dist/s-countdown/s-count-box.js +42 -50
- package/dist/s-countdown/s-count-down.js +79 -107
- package/dist/s-data-table/s-data-table.js +374 -384
- package/dist/s-date-picker/s-date-picker.js +164 -164
- package/dist/s-datetime-picker/s-datetime-picker.js +1599 -1603
- package/dist/s-dialog/s-dialog.js +24 -32
- package/dist/s-dialog-confirm/s-dialog-confirm.js +46 -50
- package/dist/s-dialog-message/s-dialog-message.js +40 -44
- package/dist/s-empty/s-empty.js +6 -14
- package/dist/s-error/s-error.js +9 -17
- package/dist/s-error-layout/s-error-layout.js +38 -47
- package/dist/s-file-dropzone/s-file-dropzone.js +55 -64
- package/dist/s-file-icon/s-file-icon.js +9 -13
- package/dist/s-flex-box/s-flex-box.js +6 -14
- package/dist/s-form/s-form.js +11 -19
- package/dist/s-gallery/index.js +3 -33
- package/dist/s-gallery/s-gallery.js +91 -114
- package/dist/s-glow-button/s-glow-button.js +22 -26
- package/dist/s-gradient-icon/s-gradient-icon.js +49 -59
- package/dist/s-i18n-provider/s-i18n-provider.js +17 -25
- package/dist/s-icon-button/s-icon-button.js +6 -14
- package/dist/s-image-comparison/package.json +5 -5
- package/dist/s-image-comparison/s-image-comparison.js +48 -53
- package/dist/s-image-modal/package.json +5 -5
- package/dist/s-image-modal/s-image-modal.js +137 -150
- package/dist/s-item-not-found/s-item-not-found.js +13 -22
- package/dist/s-label/s-label.js +12 -20
- package/dist/s-language-switcher/s-language-switcher.js +119 -141
- package/dist/s-lazy-image/index.js +2 -10
- package/dist/s-lazy-image/s-lazy-image.js +33 -37
- package/dist/s-localization-provider/s-localization-provider.js +368 -380
- package/dist/s-moving-border/s-moving-border.js +52 -67
- package/dist/s-multi-select/s-multi-select.js +43 -51
- package/dist/s-no-ssr/s-no-ssr.js +13 -21
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +12 -16
- package/dist/s-pagination/s-pagination.js +13 -17
- package/dist/s-pixel-reveal/package.json +5 -5
- package/dist/s-pixel-reveal/s-pixel-reveal.js +92 -99
- package/dist/s-radial-pulse-animate/package.json +5 -5
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +40 -48
- package/dist/s-rating/package.json +5 -5
- package/dist/s-rating/s-rating.js +7 -15
- package/dist/s-review/package.json +5 -5
- package/dist/s-review/s-review.js +101 -106
- package/dist/s-scroll-reveal/package.json +5 -5
- package/dist/s-scroll-reveal/s-scroll-reveal.js +40 -48
- package/dist/s-scroll-to-top/package.json +5 -5
- package/dist/s-scroll-to-top/s-scroll-to-top.js +20 -30
- package/dist/s-scroll-velocity/package.json +5 -5
- package/dist/s-scroll-velocity/s-scroll-velocity.js +5 -19
- package/dist/s-scroll-velocity/scroll-velocity-container.js +18 -27
- package/dist/s-scroll-velocity/scroll-velocity-row.js +62 -71
- package/dist/s-select/s-select.js +67 -75
- package/dist/s-select-list/s-select-list.js +28 -32
- package/dist/s-skeleton/s-skeleton.js +20 -28
- package/dist/s-snackbar-message/s-snackbar-message.js +36 -40
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +31 -35
- package/dist/s-stripe/s-stripe-cvc.js +8 -12
- package/dist/s-stripe/s-stripe-expiry.js +8 -12
- package/dist/s-stripe/s-stripe-number.js +8 -12
- package/dist/s-stripe/s-stripe.d.ts +2 -2
- package/dist/s-stripe/s-stripe.js +17 -26
- package/dist/s-stripe/stripe-input.js +25 -29
- package/dist/s-tabs/package.json +3 -3
- package/dist/s-tabs/s-tab-panel.js +17 -25
- package/dist/s-tabs/s-tab.js +5 -9
- package/dist/s-tabs/s-tabs.js +19 -27
- package/dist/s-text-editor/s-text-editor-toolbar.js +73 -88
- package/dist/s-text-editor/s-text-editor.js +33 -45
- package/dist/s-text-field/s-text-field.js +31 -40
- package/dist/s-text-shimmer/package.json +4 -4
- package/dist/s-text-shimmer/s-text-shimmer.js +19 -27
- package/dist/s-text-truncation/s-text-truncation.js +24 -32
- package/dist/s-theme-demo/package.json +5 -5
- package/dist/s-theme-demo/s-theme-demo.js +219 -234
- package/dist/s-theme-provider/s-theme-provider.js +37 -45
- package/dist/s-theme-switch/package.json +4 -4
- package/dist/s-theme-switch/s-theme-switch.js +19 -23
- package/dist/s-tip/s-tip.js +14 -22
- package/dist/s-two-pane-layout/index.js +2 -10
- package/dist/s-two-pane-layout/s-two-pane-layout.js +47 -55
- package/dist/s-typewriter-text/package.json +5 -5
- package/dist/s-typewriter-text/s-typewriter-text.js +27 -35
- package/dist/s-zoom-image/index.js +2 -10
- package/dist/s-zoom-image/package.json +5 -5
- package/dist/s-zoom-image/s-zoom-image.js +53 -62
- package/dist/styled-B0KflPi-.js +203 -0
- package/dist/theme/components/alert.d.ts +484 -264
- package/dist/theme/components/avatar.js +2 -2
- package/dist/theme/components/button.d.ts +726 -396
- package/dist/theme/components/chip.js +2 -2
- package/dist/theme/components/components.js +14 -12
- package/dist/theme/components/icon-button.d.ts +6191 -0
- package/dist/theme/components/icon-button.js +90 -0
- package/dist/theme/customizations/data-display.js +1 -1
- package/dist/theme/customizations/inputs.js +2 -2
- package/dist/theme/customizations/navigation.js +2 -2
- package/dist/theme/theme-primitives.d.ts +8 -246
- package/dist/theme/theme-primitives.js +76 -87
- package/dist/{typographyClasses-DDyl9mok.js → typographyClasses-C7fhAsUD.js} +4 -4
- package/dist/{useMobilePicker-C1RZZUWr.js → useMobilePicker-C4AYe0Ch.js} +11249 -11231
- package/dist/{useTheme-B5czKfC4.js → useTheme-CtdhfT4P.js} +1 -1
- package/dist/{useThemeProps-DqA5BinV.js → useThemeProps-_apS-Aua.js} +2 -2
- package/dist/utils/dayjs.js +7 -7
- package/dist/utils/logger.js +29 -32
- package/dist/{warning-BCwEnWrE.js → warning-DnPRVtW6.js} +4 -4
- package/package.json +240 -81
- package/README.md +0 -13
- package/dist/ButtonBase-DfTfJ_ou.js +0 -1105
- package/dist/DefaultPropsProvider-CaCsvQaq.js +0 -78
- package/dist/Paper-hkbPWyBT.js +0 -553
- package/dist/createSvgIcon-DxwgGAVe.js +0 -247
- package/dist/defaultTheme-fEi1x1Gb.js +0 -5
- package/dist/extendSxProp-BKWjdW12.js +0 -37
- package/dist/mergeSlotProps-Dl_rJtoN.js +0 -62
- package/dist/resolveProps-61uUKnlS.js +0 -52
- package/dist/styled-B0Z4EDy9.js +0 -206
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import { j as i } from "../jsx-runtime-
|
|
2
|
-
import { E as
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { j as i } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { E as wo } from "../ExpandMore-DIGPB4Mj.js";
|
|
3
|
+
import * as c from "react";
|
|
4
|
+
import { T as Eo, u as vo, g as io, P as Ao, r as Ro } from "../Paper-DnctZB5U.js";
|
|
5
|
+
import { k as Po, P as o } from "../createTheme-f5g1s6ww.js";
|
|
6
|
+
import { c as L } from "../clsx-OuTLNxxd.js";
|
|
7
|
+
import { u as Q, c as X, m as W } from "../DefaultPropsProvider-sk0uWcA6.js";
|
|
8
|
+
import { b as jo, u as No, c as x, e as Oo, d as Io, B as Mo } from "../ButtonBase-C_YYB9Ry.js";
|
|
9
|
+
import { g as Y } from "../generateUtilityClasses-BtVDwGrk.js";
|
|
10
|
+
import { g as Z } from "../colorManipulator-ep5lERxB.js";
|
|
11
|
+
import { u as Do } from "../useControlled-D1L5tREc.js";
|
|
12
|
+
import { s as b } from "../styled-B0KflPi-.js";
|
|
13
|
+
import { S as $o } from "../Stack-BScsuyQy.js";
|
|
14
|
+
import { T as Wo } from "../Typography-9Kg27dDw.js";
|
|
15
|
+
function zo(e) {
|
|
16
|
+
return Z("MuiCollapse", e);
|
|
16
17
|
}
|
|
17
|
-
|
|
18
|
-
const
|
|
18
|
+
Y("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
|
|
19
|
+
const ko = (e) => {
|
|
19
20
|
const {
|
|
20
21
|
orientation: t,
|
|
21
|
-
classes:
|
|
22
|
+
classes: n
|
|
22
23
|
} = e, s = {
|
|
23
24
|
root: ["root", `${t}`],
|
|
24
25
|
entered: ["entered"],
|
|
@@ -26,17 +27,17 @@ const No = (e) => {
|
|
|
26
27
|
wrapper: ["wrapper", `${t}`],
|
|
27
28
|
wrapperInner: ["wrapperInner", `${t}`]
|
|
28
29
|
};
|
|
29
|
-
return
|
|
30
|
-
},
|
|
30
|
+
return X(s, zo, n);
|
|
31
|
+
}, Vo = b("div", {
|
|
31
32
|
name: "MuiCollapse",
|
|
32
33
|
slot: "Root",
|
|
33
34
|
overridesResolver: (e, t) => {
|
|
34
35
|
const {
|
|
35
|
-
ownerState:
|
|
36
|
+
ownerState: n
|
|
36
37
|
} = e;
|
|
37
|
-
return [t.root, t[
|
|
38
|
+
return [t.root, t[n.orientation], n.state === "entered" && t.entered, n.state === "exited" && !n.in && n.collapsedSize === "0px" && t.hidden];
|
|
38
39
|
}
|
|
39
|
-
})(
|
|
40
|
+
})(W(({
|
|
40
41
|
theme: e
|
|
41
42
|
}) => ({
|
|
42
43
|
height: 0,
|
|
@@ -75,7 +76,7 @@ const No = (e) => {
|
|
|
75
76
|
visibility: "hidden"
|
|
76
77
|
}
|
|
77
78
|
}]
|
|
78
|
-
}))),
|
|
79
|
+
}))), Fo = b("div", {
|
|
79
80
|
name: "MuiCollapse",
|
|
80
81
|
slot: "Wrapper"
|
|
81
82
|
})({
|
|
@@ -91,7 +92,7 @@ const No = (e) => {
|
|
|
91
92
|
height: "100%"
|
|
92
93
|
}
|
|
93
94
|
}]
|
|
94
|
-
}),
|
|
95
|
+
}), Go = b("div", {
|
|
95
96
|
name: "MuiCollapse",
|
|
96
97
|
slot: "WrapperInner"
|
|
97
98
|
})({
|
|
@@ -105,135 +106,155 @@ const No = (e) => {
|
|
|
105
106
|
height: "100%"
|
|
106
107
|
}
|
|
107
108
|
}]
|
|
108
|
-
}),
|
|
109
|
-
const s =
|
|
109
|
+
}), K = /* @__PURE__ */ c.forwardRef(function(t, n) {
|
|
110
|
+
const s = Q({
|
|
110
111
|
props: t,
|
|
111
112
|
name: "MuiCollapse"
|
|
112
113
|
}), {
|
|
113
|
-
addEndListener:
|
|
114
|
-
children:
|
|
115
|
-
className:
|
|
116
|
-
collapsedSize:
|
|
117
|
-
component:
|
|
114
|
+
addEndListener: a,
|
|
115
|
+
children: d,
|
|
116
|
+
className: p,
|
|
117
|
+
collapsedSize: u = "0px",
|
|
118
|
+
component: R,
|
|
118
119
|
easing: z,
|
|
119
|
-
in:
|
|
120
|
-
onEnter:
|
|
121
|
-
onEntered:
|
|
120
|
+
in: P,
|
|
121
|
+
onEnter: k,
|
|
122
|
+
onEntered: N,
|
|
122
123
|
onEntering: V,
|
|
123
|
-
onExit:
|
|
124
|
-
onExited:
|
|
125
|
-
onExiting:
|
|
126
|
-
orientation:
|
|
127
|
-
|
|
128
|
-
|
|
124
|
+
onExit: O,
|
|
125
|
+
onExited: F,
|
|
126
|
+
onExiting: f,
|
|
127
|
+
orientation: h = "vertical",
|
|
128
|
+
slots: T = {},
|
|
129
|
+
slotProps: C = {},
|
|
130
|
+
style: I,
|
|
131
|
+
timeout: m = Po.standard,
|
|
129
132
|
// eslint-disable-next-line react/prop-types
|
|
130
|
-
TransitionComponent:
|
|
131
|
-
...
|
|
132
|
-
} = s,
|
|
133
|
+
TransitionComponent: S = Eo,
|
|
134
|
+
...M
|
|
135
|
+
} = s, w = {
|
|
133
136
|
...s,
|
|
134
|
-
orientation:
|
|
135
|
-
collapsedSize:
|
|
136
|
-
},
|
|
137
|
-
if (
|
|
138
|
-
const
|
|
139
|
-
|
|
137
|
+
orientation: h,
|
|
138
|
+
collapsedSize: u
|
|
139
|
+
}, E = ko(w), l = vo(), G = jo(), v = c.useRef(null), _ = c.useRef(), U = typeof u == "number" ? `${u}px` : u, D = h === "horizontal", $ = D ? "width" : "height", H = c.useRef(null), oo = No(n, H), j = (r) => (g) => {
|
|
140
|
+
if (r) {
|
|
141
|
+
const y = H.current;
|
|
142
|
+
g === void 0 ? r(y) : r(y, g);
|
|
140
143
|
}
|
|
141
|
-
},
|
|
142
|
-
|
|
143
|
-
}),
|
|
144
|
-
const
|
|
145
|
-
|
|
144
|
+
}, eo = () => v.current ? v.current[D ? "clientWidth" : "clientHeight"] : 0, po = j((r, g) => {
|
|
145
|
+
v.current && D && (v.current.style.position = "absolute"), r.style[$] = U, k && k(r, g);
|
|
146
|
+
}), uo = j((r, g) => {
|
|
147
|
+
const y = eo();
|
|
148
|
+
v.current && D && (v.current.style.position = "");
|
|
146
149
|
const {
|
|
147
|
-
duration:
|
|
148
|
-
easing:
|
|
149
|
-
} =
|
|
150
|
-
style:
|
|
151
|
-
timeout:
|
|
150
|
+
duration: A,
|
|
151
|
+
easing: q
|
|
152
|
+
} = io({
|
|
153
|
+
style: I,
|
|
154
|
+
timeout: m,
|
|
152
155
|
easing: z
|
|
153
156
|
}, {
|
|
154
157
|
mode: "enter"
|
|
155
158
|
});
|
|
156
|
-
if (
|
|
157
|
-
const
|
|
158
|
-
|
|
159
|
+
if (m === "auto") {
|
|
160
|
+
const so = l.transitions.getAutoHeightDuration(y);
|
|
161
|
+
r.style.transitionDuration = `${so}ms`, _.current = so;
|
|
159
162
|
} else
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
}),
|
|
163
|
-
|
|
164
|
-
}),
|
|
165
|
-
|
|
166
|
-
}),
|
|
167
|
-
const
|
|
168
|
-
duration:
|
|
169
|
-
easing:
|
|
170
|
-
} =
|
|
171
|
-
style:
|
|
172
|
-
timeout:
|
|
163
|
+
r.style.transitionDuration = typeof A == "string" ? A : `${A}ms`;
|
|
164
|
+
r.style[$] = `${y}px`, r.style.transitionTimingFunction = q, V && V(r, g);
|
|
165
|
+
}), fo = j((r, g) => {
|
|
166
|
+
r.style[$] = "auto", N && N(r, g);
|
|
167
|
+
}), mo = j((r) => {
|
|
168
|
+
r.style[$] = `${eo()}px`, O && O(r);
|
|
169
|
+
}), go = j(F), yo = j((r) => {
|
|
170
|
+
const g = eo(), {
|
|
171
|
+
duration: y,
|
|
172
|
+
easing: A
|
|
173
|
+
} = io({
|
|
174
|
+
style: I,
|
|
175
|
+
timeout: m,
|
|
173
176
|
easing: z
|
|
174
177
|
}, {
|
|
175
178
|
mode: "exit"
|
|
176
179
|
});
|
|
177
|
-
if (
|
|
178
|
-
const
|
|
179
|
-
|
|
180
|
+
if (m === "auto") {
|
|
181
|
+
const q = l.transitions.getAutoHeightDuration(g);
|
|
182
|
+
r.style.transitionDuration = `${q}ms`, _.current = q;
|
|
180
183
|
} else
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
}),
|
|
184
|
-
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
timeout: l === "auto" ? null : l,
|
|
197
|
-
...F,
|
|
198
|
-
children: (n, {
|
|
199
|
-
ownerState: x,
|
|
200
|
-
...b
|
|
201
|
-
}) => /* @__PURE__ */ i.jsx(Oo, {
|
|
202
|
-
as: A,
|
|
203
|
-
className: H(u.root, f, {
|
|
204
|
-
entered: u.entered,
|
|
205
|
-
exited: !S && P === "0px" && u.hidden
|
|
206
|
-
}[n]),
|
|
184
|
+
r.style.transitionDuration = typeof y == "string" ? y : `${y}ms`;
|
|
185
|
+
r.style[$] = U, r.style.transitionTimingFunction = A, f && f(r);
|
|
186
|
+
}), ho = (r) => {
|
|
187
|
+
m === "auto" && G.start(_.current || 0, r), a && a(H.current, r);
|
|
188
|
+
}, to = {
|
|
189
|
+
slots: T,
|
|
190
|
+
slotProps: C,
|
|
191
|
+
component: R
|
|
192
|
+
}, [xo, ro] = x("root", {
|
|
193
|
+
ref: oo,
|
|
194
|
+
className: L(E.root, p),
|
|
195
|
+
elementType: Vo,
|
|
196
|
+
externalForwardedProps: to,
|
|
197
|
+
ownerState: w,
|
|
198
|
+
additionalProps: {
|
|
207
199
|
style: {
|
|
208
|
-
[
|
|
209
|
-
...
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
200
|
+
[D ? "minWidth" : "minHeight"]: U,
|
|
201
|
+
...I
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}), [bo, To] = x("wrapper", {
|
|
205
|
+
ref: v,
|
|
206
|
+
className: E.wrapper,
|
|
207
|
+
elementType: Fo,
|
|
208
|
+
externalForwardedProps: to,
|
|
209
|
+
ownerState: w
|
|
210
|
+
}), [Co, So] = x("wrapperInner", {
|
|
211
|
+
className: E.wrapperInner,
|
|
212
|
+
elementType: Go,
|
|
213
|
+
externalForwardedProps: to,
|
|
214
|
+
ownerState: w
|
|
215
|
+
});
|
|
216
|
+
return /* @__PURE__ */ i.jsx(S, {
|
|
217
|
+
in: P,
|
|
218
|
+
onEnter: po,
|
|
219
|
+
onEntered: fo,
|
|
220
|
+
onEntering: uo,
|
|
221
|
+
onExit: mo,
|
|
222
|
+
onExited: go,
|
|
223
|
+
onExiting: yo,
|
|
224
|
+
addEndListener: ho,
|
|
225
|
+
nodeRef: H,
|
|
226
|
+
timeout: m === "auto" ? null : m,
|
|
227
|
+
...M,
|
|
228
|
+
children: (r, {
|
|
229
|
+
ownerState: g,
|
|
230
|
+
...y
|
|
231
|
+
}) => {
|
|
232
|
+
const A = {
|
|
233
|
+
...w,
|
|
234
|
+
state: r
|
|
235
|
+
};
|
|
236
|
+
return /* @__PURE__ */ i.jsx(xo, {
|
|
237
|
+
...ro,
|
|
238
|
+
className: L(ro.className, {
|
|
239
|
+
entered: E.entered,
|
|
240
|
+
exited: !P && U === "0px" && E.hidden
|
|
241
|
+
}[r]),
|
|
242
|
+
ownerState: A,
|
|
243
|
+
...y,
|
|
244
|
+
children: /* @__PURE__ */ i.jsx(bo, {
|
|
245
|
+
...To,
|
|
246
|
+
ownerState: A,
|
|
247
|
+
children: /* @__PURE__ */ i.jsx(Co, {
|
|
248
|
+
...So,
|
|
249
|
+
ownerState: A,
|
|
250
|
+
children: d
|
|
251
|
+
})
|
|
231
252
|
})
|
|
232
|
-
})
|
|
233
|
-
}
|
|
253
|
+
});
|
|
254
|
+
}
|
|
234
255
|
});
|
|
235
256
|
});
|
|
236
|
-
process.env.NODE_ENV !== "production" && (
|
|
257
|
+
process.env.NODE_ENV !== "production" && (K.propTypes = {
|
|
237
258
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
238
259
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
239
260
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -265,7 +286,7 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
|
|
|
265
286
|
* The component used for the root node.
|
|
266
287
|
* Either a string to use a HTML element or a component.
|
|
267
288
|
*/
|
|
268
|
-
component:
|
|
289
|
+
component: Oo,
|
|
269
290
|
/**
|
|
270
291
|
* The transition timing function.
|
|
271
292
|
* You may specify a single easing or a object containing enter and exit values.
|
|
@@ -307,6 +328,24 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
|
|
|
307
328
|
* @default 'vertical'
|
|
308
329
|
*/
|
|
309
330
|
orientation: o.oneOf(["horizontal", "vertical"]),
|
|
331
|
+
/**
|
|
332
|
+
* The props used for each slot inside.
|
|
333
|
+
* @default {}
|
|
334
|
+
*/
|
|
335
|
+
slotProps: o.shape({
|
|
336
|
+
root: o.oneOfType([o.func, o.object]),
|
|
337
|
+
wrapper: o.oneOfType([o.func, o.object]),
|
|
338
|
+
wrapperInner: o.oneOfType([o.func, o.object])
|
|
339
|
+
}),
|
|
340
|
+
/**
|
|
341
|
+
* The components used for each slot inside.
|
|
342
|
+
* @default {}
|
|
343
|
+
*/
|
|
344
|
+
slots: o.shape({
|
|
345
|
+
root: o.elementType,
|
|
346
|
+
wrapper: o.elementType,
|
|
347
|
+
wrapperInner: o.elementType
|
|
348
|
+
}),
|
|
310
349
|
/**
|
|
311
350
|
* @ignore
|
|
312
351
|
*/
|
|
@@ -328,37 +367,37 @@ process.env.NODE_ENV !== "production" && (Q.propTypes = {
|
|
|
328
367
|
exit: o.number
|
|
329
368
|
})])
|
|
330
369
|
});
|
|
331
|
-
|
|
332
|
-
const no = /* @__PURE__ */
|
|
370
|
+
K && (K.muiSupportAuto = !0);
|
|
371
|
+
const no = /* @__PURE__ */ c.createContext({});
|
|
333
372
|
process.env.NODE_ENV !== "production" && (no.displayName = "AccordionContext");
|
|
334
|
-
function
|
|
335
|
-
return
|
|
373
|
+
function Uo(e) {
|
|
374
|
+
return Z("MuiAccordion", e);
|
|
336
375
|
}
|
|
337
|
-
const
|
|
376
|
+
const J = Y("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled", "gutters", "region"]), Ho = (e) => {
|
|
338
377
|
const {
|
|
339
378
|
classes: t,
|
|
340
|
-
square:
|
|
379
|
+
square: n,
|
|
341
380
|
expanded: s,
|
|
342
|
-
disabled:
|
|
343
|
-
disableGutters:
|
|
381
|
+
disabled: a,
|
|
382
|
+
disableGutters: d
|
|
344
383
|
} = e;
|
|
345
|
-
return
|
|
346
|
-
root: ["root", !
|
|
384
|
+
return X({
|
|
385
|
+
root: ["root", !n && "rounded", s && "expanded", a && "disabled", !d && "gutters"],
|
|
347
386
|
heading: ["heading"],
|
|
348
387
|
region: ["region"]
|
|
349
|
-
},
|
|
350
|
-
},
|
|
388
|
+
}, Uo, t);
|
|
389
|
+
}, Bo = b(Ao, {
|
|
351
390
|
name: "MuiAccordion",
|
|
352
391
|
slot: "Root",
|
|
353
392
|
overridesResolver: (e, t) => {
|
|
354
393
|
const {
|
|
355
|
-
ownerState:
|
|
394
|
+
ownerState: n
|
|
356
395
|
} = e;
|
|
357
396
|
return [{
|
|
358
|
-
[`& .${
|
|
359
|
-
}, t.root, !
|
|
397
|
+
[`& .${J.region}`]: t.region
|
|
398
|
+
}, t.root, !n.square && t.rounded, !n.disableGutters && t.gutters];
|
|
360
399
|
}
|
|
361
|
-
})(
|
|
400
|
+
})(W(({
|
|
362
401
|
theme: e
|
|
363
402
|
}) => {
|
|
364
403
|
const t = {
|
|
@@ -385,7 +424,7 @@ const L = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
385
424
|
display: "none"
|
|
386
425
|
}
|
|
387
426
|
},
|
|
388
|
-
[`&.${
|
|
427
|
+
[`&.${J.expanded}`]: {
|
|
389
428
|
"&::before": {
|
|
390
429
|
opacity: 0
|
|
391
430
|
},
|
|
@@ -401,11 +440,11 @@ const L = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
401
440
|
}
|
|
402
441
|
}
|
|
403
442
|
},
|
|
404
|
-
[`&.${
|
|
443
|
+
[`&.${J.disabled}`]: {
|
|
405
444
|
backgroundColor: (e.vars || e).palette.action.disabledBackground
|
|
406
445
|
}
|
|
407
446
|
};
|
|
408
|
-
}),
|
|
447
|
+
}), W(({
|
|
409
448
|
theme: e
|
|
410
449
|
}) => ({
|
|
411
450
|
variants: [{
|
|
@@ -429,117 +468,112 @@ const L = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
429
468
|
}, {
|
|
430
469
|
props: (t) => !t.disableGutters,
|
|
431
470
|
style: {
|
|
432
|
-
[`&.${
|
|
471
|
+
[`&.${J.expanded}`]: {
|
|
433
472
|
margin: "16px 0"
|
|
434
473
|
}
|
|
435
474
|
}
|
|
436
475
|
}]
|
|
437
|
-
}))),
|
|
476
|
+
}))), Lo = b("h3", {
|
|
438
477
|
name: "MuiAccordion",
|
|
439
478
|
slot: "Heading"
|
|
440
479
|
})({
|
|
441
480
|
all: "unset"
|
|
442
|
-
}), _o =
|
|
481
|
+
}), _o = b("div", {
|
|
443
482
|
name: "MuiAccordion",
|
|
444
483
|
slot: "Region"
|
|
445
|
-
})({}),
|
|
446
|
-
const s =
|
|
484
|
+
})({}), ao = /* @__PURE__ */ c.forwardRef(function(t, n) {
|
|
485
|
+
const s = Q({
|
|
447
486
|
props: t,
|
|
448
487
|
name: "MuiAccordion"
|
|
449
488
|
}), {
|
|
450
|
-
children:
|
|
451
|
-
className:
|
|
452
|
-
defaultExpanded:
|
|
453
|
-
disabled:
|
|
454
|
-
disableGutters:
|
|
489
|
+
children: a,
|
|
490
|
+
className: d,
|
|
491
|
+
defaultExpanded: p = !1,
|
|
492
|
+
disabled: u = !1,
|
|
493
|
+
disableGutters: R = !1,
|
|
455
494
|
expanded: z,
|
|
456
|
-
onChange:
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
} = s, [d, g] = So({
|
|
495
|
+
onChange: P,
|
|
496
|
+
slots: k = {},
|
|
497
|
+
slotProps: N = {},
|
|
498
|
+
TransitionComponent: V,
|
|
499
|
+
TransitionProps: O,
|
|
500
|
+
...F
|
|
501
|
+
} = s, [f, h] = Do({
|
|
464
502
|
controlled: z,
|
|
465
|
-
default:
|
|
503
|
+
default: p,
|
|
466
504
|
name: "Accordion",
|
|
467
505
|
state: "expanded"
|
|
468
|
-
}),
|
|
469
|
-
|
|
470
|
-
}, [
|
|
471
|
-
expanded:
|
|
472
|
-
disabled:
|
|
473
|
-
disableGutters:
|
|
474
|
-
toggle:
|
|
475
|
-
}), [
|
|
506
|
+
}), T = c.useCallback((j) => {
|
|
507
|
+
h(!f), P && P(j, !f);
|
|
508
|
+
}, [f, P, h]), [C, ...I] = c.Children.toArray(a), m = c.useMemo(() => ({
|
|
509
|
+
expanded: f,
|
|
510
|
+
disabled: u,
|
|
511
|
+
disableGutters: R,
|
|
512
|
+
toggle: T
|
|
513
|
+
}), [f, u, R, T]), S = {
|
|
476
514
|
...s,
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
elementType: Vo,
|
|
515
|
+
disabled: u,
|
|
516
|
+
disableGutters: R,
|
|
517
|
+
expanded: f
|
|
518
|
+
}, M = Ho(S), w = {
|
|
519
|
+
transition: V,
|
|
520
|
+
...k
|
|
521
|
+
}, E = {
|
|
522
|
+
transition: O,
|
|
523
|
+
...N
|
|
524
|
+
}, l = {
|
|
525
|
+
slots: w,
|
|
526
|
+
slotProps: E
|
|
527
|
+
}, [G, v] = x("root", {
|
|
528
|
+
elementType: Bo,
|
|
492
529
|
externalForwardedProps: {
|
|
493
|
-
...
|
|
494
|
-
...
|
|
530
|
+
...l,
|
|
531
|
+
...F
|
|
495
532
|
},
|
|
496
|
-
className:
|
|
533
|
+
className: L(M.root, d),
|
|
497
534
|
shouldForwardComponentProp: !0,
|
|
498
|
-
ownerState:
|
|
499
|
-
ref:
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
externalForwardedProps: h,
|
|
511
|
-
ownerState: u
|
|
512
|
-
}), [U, oo] = I("region", {
|
|
535
|
+
ownerState: S,
|
|
536
|
+
ref: n
|
|
537
|
+
}), [_, U] = x("heading", {
|
|
538
|
+
elementType: Lo,
|
|
539
|
+
externalForwardedProps: l,
|
|
540
|
+
className: M.heading,
|
|
541
|
+
ownerState: S
|
|
542
|
+
}), [D, $] = x("transition", {
|
|
543
|
+
elementType: K,
|
|
544
|
+
externalForwardedProps: l,
|
|
545
|
+
ownerState: S
|
|
546
|
+
}), [H, oo] = x("region", {
|
|
513
547
|
elementType: _o,
|
|
514
|
-
externalForwardedProps:
|
|
515
|
-
ownerState:
|
|
516
|
-
className:
|
|
548
|
+
externalForwardedProps: l,
|
|
549
|
+
ownerState: S,
|
|
550
|
+
className: M.region,
|
|
517
551
|
additionalProps: {
|
|
518
|
-
"aria-labelledby":
|
|
519
|
-
id:
|
|
552
|
+
"aria-labelledby": C.props.id,
|
|
553
|
+
id: C.props["aria-controls"],
|
|
520
554
|
role: "region"
|
|
521
555
|
}
|
|
522
556
|
});
|
|
523
|
-
return /* @__PURE__ */ i.jsxs(
|
|
524
|
-
...
|
|
525
|
-
children: [/* @__PURE__ */ i.jsx(
|
|
526
|
-
...
|
|
557
|
+
return /* @__PURE__ */ i.jsxs(G, {
|
|
558
|
+
...v,
|
|
559
|
+
children: [/* @__PURE__ */ i.jsx(_, {
|
|
560
|
+
...U,
|
|
527
561
|
children: /* @__PURE__ */ i.jsx(no.Provider, {
|
|
528
|
-
value:
|
|
529
|
-
children:
|
|
562
|
+
value: m,
|
|
563
|
+
children: C
|
|
530
564
|
})
|
|
531
|
-
}), /* @__PURE__ */ i.jsx(
|
|
532
|
-
in:
|
|
565
|
+
}), /* @__PURE__ */ i.jsx(D, {
|
|
566
|
+
in: f,
|
|
533
567
|
timeout: "auto",
|
|
534
|
-
|
|
535
|
-
children: /* @__PURE__ */ i.jsx(
|
|
568
|
+
...$,
|
|
569
|
+
children: /* @__PURE__ */ i.jsx(H, {
|
|
536
570
|
...oo,
|
|
537
|
-
children:
|
|
571
|
+
children: I
|
|
538
572
|
})
|
|
539
573
|
})]
|
|
540
574
|
});
|
|
541
575
|
});
|
|
542
|
-
process.env.NODE_ENV !== "production" && (
|
|
576
|
+
process.env.NODE_ENV !== "production" && (ao.propTypes = {
|
|
543
577
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
544
578
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
545
579
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -547,9 +581,9 @@ process.env.NODE_ENV !== "production" && (io.propTypes = {
|
|
|
547
581
|
/**
|
|
548
582
|
* The content of the component.
|
|
549
583
|
*/
|
|
550
|
-
children:
|
|
551
|
-
const t =
|
|
552
|
-
return
|
|
584
|
+
children: Io(o.node.isRequired, (e) => {
|
|
585
|
+
const t = c.Children.toArray(e.children)[0];
|
|
586
|
+
return Ro.isFragment(t) ? new Error("MUI: The Accordion doesn't accept a Fragment as a child. Consider providing an array instead.") : /* @__PURE__ */ c.isValidElement(t) ? null : new Error("MUI: Expected the first child of Accordion to be a valid element.");
|
|
553
587
|
}),
|
|
554
588
|
/**
|
|
555
589
|
* Override or extend the styles applied to the component.
|
|
@@ -570,12 +604,12 @@ process.env.NODE_ENV !== "production" && (io.propTypes = {
|
|
|
570
604
|
*/
|
|
571
605
|
disabled: o.bool,
|
|
572
606
|
/**
|
|
573
|
-
* If `true`, it removes the margin between two expanded accordion items and the
|
|
607
|
+
* If `true`, it removes the margin between two expanded accordion items and prevents the increased height when expanded.
|
|
574
608
|
* @default false
|
|
575
609
|
*/
|
|
576
610
|
disableGutters: o.bool,
|
|
577
611
|
/**
|
|
578
|
-
* If `true`, expands the accordion, otherwise
|
|
612
|
+
* If `true`, expands the accordion, otherwise collapses it.
|
|
579
613
|
* Setting this prop enables control over the accordion.
|
|
580
614
|
*/
|
|
581
615
|
expanded: o.bool,
|
|
@@ -606,11 +640,6 @@ process.env.NODE_ENV !== "production" && (io.propTypes = {
|
|
|
606
640
|
root: o.elementType,
|
|
607
641
|
transition: o.elementType
|
|
608
642
|
}),
|
|
609
|
-
/**
|
|
610
|
-
* If `true`, rounded corners are disabled.
|
|
611
|
-
* @default false
|
|
612
|
-
*/
|
|
613
|
-
square: o.bool,
|
|
614
643
|
/**
|
|
615
644
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
616
645
|
*/
|
|
@@ -628,40 +657,40 @@ process.env.NODE_ENV !== "production" && (io.propTypes = {
|
|
|
628
657
|
*/
|
|
629
658
|
TransitionProps: o.object
|
|
630
659
|
});
|
|
631
|
-
function
|
|
632
|
-
return
|
|
660
|
+
function qo(e) {
|
|
661
|
+
return Z("MuiAccordionDetails", e);
|
|
633
662
|
}
|
|
634
|
-
|
|
635
|
-
const
|
|
663
|
+
Y("MuiAccordionDetails", ["root"]);
|
|
664
|
+
const Jo = (e) => {
|
|
636
665
|
const {
|
|
637
666
|
classes: t
|
|
638
667
|
} = e;
|
|
639
|
-
return
|
|
668
|
+
return X({
|
|
640
669
|
root: ["root"]
|
|
641
|
-
},
|
|
642
|
-
},
|
|
670
|
+
}, qo, t);
|
|
671
|
+
}, Ko = b("div", {
|
|
643
672
|
name: "MuiAccordionDetails",
|
|
644
673
|
slot: "Root"
|
|
645
|
-
})(
|
|
674
|
+
})(W(({
|
|
646
675
|
theme: e
|
|
647
676
|
}) => ({
|
|
648
677
|
padding: e.spacing(1, 2, 2)
|
|
649
|
-
}))),
|
|
650
|
-
const s =
|
|
678
|
+
}))), co = /* @__PURE__ */ c.forwardRef(function(t, n) {
|
|
679
|
+
const s = Q({
|
|
651
680
|
props: t,
|
|
652
681
|
name: "MuiAccordionDetails"
|
|
653
682
|
}), {
|
|
654
|
-
className:
|
|
655
|
-
...
|
|
656
|
-
} = s,
|
|
657
|
-
return /* @__PURE__ */ i.jsx(
|
|
658
|
-
className:
|
|
659
|
-
ref:
|
|
660
|
-
ownerState:
|
|
661
|
-
...
|
|
683
|
+
className: a,
|
|
684
|
+
...d
|
|
685
|
+
} = s, p = s, u = Jo(p);
|
|
686
|
+
return /* @__PURE__ */ i.jsx(Ko, {
|
|
687
|
+
className: L(u.root, a),
|
|
688
|
+
ref: n,
|
|
689
|
+
ownerState: p,
|
|
690
|
+
...d
|
|
662
691
|
});
|
|
663
692
|
});
|
|
664
|
-
process.env.NODE_ENV !== "production" && (
|
|
693
|
+
process.env.NODE_ENV !== "production" && (co.propTypes = {
|
|
665
694
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
666
695
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
667
696
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -683,26 +712,26 @@ process.env.NODE_ENV !== "production" && (ao.propTypes = {
|
|
|
683
712
|
*/
|
|
684
713
|
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
685
714
|
});
|
|
686
|
-
function
|
|
687
|
-
return
|
|
715
|
+
function Qo(e) {
|
|
716
|
+
return Z("MuiAccordionSummary", e);
|
|
688
717
|
}
|
|
689
|
-
const
|
|
718
|
+
const B = Y("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disabled", "gutters", "contentGutters", "content", "expandIconWrapper"]), Xo = (e) => {
|
|
690
719
|
const {
|
|
691
720
|
classes: t,
|
|
692
|
-
expanded:
|
|
721
|
+
expanded: n,
|
|
693
722
|
disabled: s,
|
|
694
|
-
disableGutters:
|
|
723
|
+
disableGutters: a
|
|
695
724
|
} = e;
|
|
696
|
-
return
|
|
697
|
-
root: ["root",
|
|
725
|
+
return X({
|
|
726
|
+
root: ["root", n && "expanded", s && "disabled", !a && "gutters"],
|
|
698
727
|
focusVisible: ["focusVisible"],
|
|
699
|
-
content: ["content",
|
|
700
|
-
expandIconWrapper: ["expandIconWrapper",
|
|
701
|
-
},
|
|
702
|
-
},
|
|
728
|
+
content: ["content", n && "expanded", !a && "contentGutters"],
|
|
729
|
+
expandIconWrapper: ["expandIconWrapper", n && "expanded"]
|
|
730
|
+
}, Qo, t);
|
|
731
|
+
}, Yo = b(Mo, {
|
|
703
732
|
name: "MuiAccordionSummary",
|
|
704
733
|
slot: "Root"
|
|
705
|
-
})(
|
|
734
|
+
})(W(({
|
|
706
735
|
theme: e
|
|
707
736
|
}) => {
|
|
708
737
|
const t = {
|
|
@@ -714,28 +743,28 @@ const q = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
714
743
|
minHeight: 48,
|
|
715
744
|
padding: e.spacing(0, 2),
|
|
716
745
|
transition: e.transitions.create(["min-height", "background-color"], t),
|
|
717
|
-
[`&.${
|
|
746
|
+
[`&.${B.focusVisible}`]: {
|
|
718
747
|
backgroundColor: (e.vars || e).palette.action.focus
|
|
719
748
|
},
|
|
720
|
-
[`&.${
|
|
749
|
+
[`&.${B.disabled}`]: {
|
|
721
750
|
opacity: (e.vars || e).palette.action.disabledOpacity
|
|
722
751
|
},
|
|
723
|
-
[`&:hover:not(.${
|
|
752
|
+
[`&:hover:not(.${B.disabled})`]: {
|
|
724
753
|
cursor: "pointer"
|
|
725
754
|
},
|
|
726
755
|
variants: [{
|
|
727
|
-
props: (
|
|
756
|
+
props: (n) => !n.disableGutters,
|
|
728
757
|
style: {
|
|
729
|
-
[`&.${
|
|
758
|
+
[`&.${B.expanded}`]: {
|
|
730
759
|
minHeight: 64
|
|
731
760
|
}
|
|
732
761
|
}
|
|
733
762
|
}]
|
|
734
763
|
};
|
|
735
|
-
})),
|
|
764
|
+
})), Zo = b("span", {
|
|
736
765
|
name: "MuiAccordionSummary",
|
|
737
766
|
slot: "Content"
|
|
738
|
-
})(
|
|
767
|
+
})(W(({
|
|
739
768
|
theme: e
|
|
740
769
|
}) => ({
|
|
741
770
|
display: "flex",
|
|
@@ -748,15 +777,15 @@ const q = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
748
777
|
transition: e.transitions.create(["margin"], {
|
|
749
778
|
duration: e.transitions.duration.shortest
|
|
750
779
|
}),
|
|
751
|
-
[`&.${
|
|
780
|
+
[`&.${B.expanded}`]: {
|
|
752
781
|
margin: "20px 0"
|
|
753
782
|
}
|
|
754
783
|
}
|
|
755
784
|
}]
|
|
756
|
-
}))),
|
|
785
|
+
}))), oe = b("span", {
|
|
757
786
|
name: "MuiAccordionSummary",
|
|
758
787
|
slot: "ExpandIconWrapper"
|
|
759
|
-
})(
|
|
788
|
+
})(W(({
|
|
760
789
|
theme: e
|
|
761
790
|
}) => ({
|
|
762
791
|
display: "flex",
|
|
@@ -765,84 +794,83 @@ const q = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
765
794
|
transition: e.transitions.create("transform", {
|
|
766
795
|
duration: e.transitions.duration.shortest
|
|
767
796
|
}),
|
|
768
|
-
[`&.${
|
|
797
|
+
[`&.${B.expanded}`]: {
|
|
769
798
|
transform: "rotate(180deg)"
|
|
770
799
|
}
|
|
771
|
-
}))),
|
|
772
|
-
const s =
|
|
800
|
+
}))), lo = /* @__PURE__ */ c.forwardRef(function(t, n) {
|
|
801
|
+
const s = Q({
|
|
773
802
|
props: t,
|
|
774
803
|
name: "MuiAccordionSummary"
|
|
775
804
|
}), {
|
|
776
|
-
children:
|
|
777
|
-
className:
|
|
778
|
-
expandIcon:
|
|
779
|
-
focusVisibleClassName:
|
|
780
|
-
onClick:
|
|
805
|
+
children: a,
|
|
806
|
+
className: d,
|
|
807
|
+
expandIcon: p,
|
|
808
|
+
focusVisibleClassName: u,
|
|
809
|
+
onClick: R,
|
|
781
810
|
slots: z,
|
|
782
|
-
slotProps:
|
|
783
|
-
...
|
|
811
|
+
slotProps: P,
|
|
812
|
+
...k
|
|
784
813
|
} = s, {
|
|
785
|
-
disabled:
|
|
814
|
+
disabled: N = !1,
|
|
786
815
|
disableGutters: V,
|
|
787
|
-
expanded:
|
|
788
|
-
toggle:
|
|
789
|
-
} =
|
|
790
|
-
|
|
791
|
-
},
|
|
816
|
+
expanded: O,
|
|
817
|
+
toggle: F
|
|
818
|
+
} = c.useContext(no), f = (l) => {
|
|
819
|
+
F && F(l), R && R(l);
|
|
820
|
+
}, h = {
|
|
792
821
|
...s,
|
|
793
|
-
expanded:
|
|
794
|
-
disabled:
|
|
822
|
+
expanded: O,
|
|
823
|
+
disabled: N,
|
|
795
824
|
disableGutters: V
|
|
796
|
-
},
|
|
825
|
+
}, T = Xo(h), C = {
|
|
797
826
|
slots: z,
|
|
798
|
-
slotProps:
|
|
799
|
-
}, [
|
|
800
|
-
ref:
|
|
827
|
+
slotProps: P
|
|
828
|
+
}, [I, m] = x("root", {
|
|
829
|
+
ref: n,
|
|
801
830
|
shouldForwardComponentProp: !0,
|
|
802
|
-
className:
|
|
803
|
-
elementType:
|
|
831
|
+
className: L(T.root, d),
|
|
832
|
+
elementType: Yo,
|
|
804
833
|
externalForwardedProps: {
|
|
805
|
-
...
|
|
806
|
-
...
|
|
834
|
+
...C,
|
|
835
|
+
...k
|
|
807
836
|
},
|
|
808
|
-
ownerState:
|
|
837
|
+
ownerState: h,
|
|
809
838
|
additionalProps: {
|
|
810
839
|
focusRipple: !1,
|
|
811
840
|
disableRipple: !0,
|
|
812
|
-
disabled:
|
|
813
|
-
"aria-expanded":
|
|
814
|
-
focusVisibleClassName:
|
|
841
|
+
disabled: N,
|
|
842
|
+
"aria-expanded": O,
|
|
843
|
+
focusVisibleClassName: L(T.focusVisible, u)
|
|
815
844
|
},
|
|
816
|
-
getSlotProps: (
|
|
817
|
-
...
|
|
818
|
-
onClick: (
|
|
819
|
-
|
|
820
|
-
(P = a.onClick) == null || P.call(a, h), _(h);
|
|
845
|
+
getSlotProps: (l) => ({
|
|
846
|
+
...l,
|
|
847
|
+
onClick: (G) => {
|
|
848
|
+
l.onClick?.(G), f(G);
|
|
821
849
|
}
|
|
822
850
|
})
|
|
823
|
-
}), [
|
|
824
|
-
className:
|
|
825
|
-
elementType:
|
|
826
|
-
externalForwardedProps:
|
|
827
|
-
ownerState:
|
|
828
|
-
}), [
|
|
829
|
-
className:
|
|
830
|
-
elementType:
|
|
831
|
-
externalForwardedProps:
|
|
832
|
-
ownerState:
|
|
851
|
+
}), [S, M] = x("content", {
|
|
852
|
+
className: T.content,
|
|
853
|
+
elementType: Zo,
|
|
854
|
+
externalForwardedProps: C,
|
|
855
|
+
ownerState: h
|
|
856
|
+
}), [w, E] = x("expandIconWrapper", {
|
|
857
|
+
className: T.expandIconWrapper,
|
|
858
|
+
elementType: oe,
|
|
859
|
+
externalForwardedProps: C,
|
|
860
|
+
ownerState: h
|
|
833
861
|
});
|
|
834
|
-
return /* @__PURE__ */ i.jsxs(
|
|
835
|
-
...
|
|
836
|
-
children: [/* @__PURE__ */ i.jsx(
|
|
837
|
-
...
|
|
838
|
-
children:
|
|
839
|
-
}),
|
|
840
|
-
...
|
|
841
|
-
children:
|
|
862
|
+
return /* @__PURE__ */ i.jsxs(I, {
|
|
863
|
+
...m,
|
|
864
|
+
children: [/* @__PURE__ */ i.jsx(S, {
|
|
865
|
+
...M,
|
|
866
|
+
children: a
|
|
867
|
+
}), p && /* @__PURE__ */ i.jsx(w, {
|
|
868
|
+
...E,
|
|
869
|
+
children: p
|
|
842
870
|
})]
|
|
843
871
|
});
|
|
844
872
|
});
|
|
845
|
-
process.env.NODE_ENV !== "production" && (
|
|
873
|
+
process.env.NODE_ENV !== "production" && (lo.propTypes = {
|
|
846
874
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
847
875
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
848
876
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -899,35 +927,23 @@ process.env.NODE_ENV !== "production" && (co.propTypes = {
|
|
|
899
927
|
*/
|
|
900
928
|
sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
|
|
901
929
|
});
|
|
902
|
-
const
|
|
930
|
+
const ee = ({
|
|
903
931
|
title: e,
|
|
904
932
|
children: t,
|
|
905
|
-
startIcon:
|
|
933
|
+
startIcon: n,
|
|
906
934
|
titleTypographyProps: s,
|
|
907
|
-
accordionSummaryProps:
|
|
908
|
-
accordionDetailsProps:
|
|
909
|
-
...
|
|
910
|
-
}) => /* @__PURE__ */ i.jsxs(
|
|
911
|
-
e ||
|
|
912
|
-
|
|
913
|
-
/* @__PURE__ */ i.jsx(
|
|
935
|
+
accordionSummaryProps: a,
|
|
936
|
+
accordionDetailsProps: d,
|
|
937
|
+
...p
|
|
938
|
+
}) => /* @__PURE__ */ i.jsxs(ao, { elevation: 0, ...p, children: [
|
|
939
|
+
e || n ? /* @__PURE__ */ i.jsx(lo, { expandIcon: /* @__PURE__ */ i.jsx(wo, {}), ...a, children: /* @__PURE__ */ i.jsxs($o, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
940
|
+
n,
|
|
941
|
+
/* @__PURE__ */ i.jsx(Wo, { variant: "subtitle1", fontWeight: 600, ...s, children: e })
|
|
914
942
|
] }) }) : null,
|
|
915
|
-
/* @__PURE__ */ i.jsx(
|
|
943
|
+
/* @__PURE__ */ i.jsx(co, { ...d, children: t })
|
|
916
944
|
] });
|
|
917
|
-
|
|
918
|
-
try {
|
|
919
|
-
to.displayName = "SAccordion", to.__docgenInfo = { description: `A collapsible accordion component built on Material-UI Accordion with custom theming,
|
|
920
|
-
optional icons, and smooth expand/collapse animations. Perfect for organizing content
|
|
921
|
-
sections and FAQs.`, displayName: "SAccordion", props: { title: { defaultValue: null, description: "The title/header content of the accordion", name: "title", required: !0, type: { name: "ReactNode" } }, startIcon: { defaultValue: null, description: "Optional icon to display at the start of the accordion header", name: "startIcon", required: !1, type: { name: "ReactNode" } }, titleTypographyProps: { defaultValue: null, description: "Props to pass to the Typography component for the title", name: "titleTypographyProps", required: !1, type: { name: "TypographyProps" } }, accordionSummaryProps: { defaultValue: null, description: "Props to pass to the AccordionSummary component for customization", name: "accordionSummaryProps", required: !1, type: { name: "AccordionSummaryProps" } }, accordionDetailsProps: { defaultValue: null, description: "Props to pass to the AccordionDetails component for customization", name: "accordionDetailsProps", required: !1, type: { name: "AccordionDetailsProps" } } } };
|
|
922
|
-
} catch {
|
|
923
|
-
}
|
|
924
|
-
try {
|
|
925
|
-
saccordion.displayName = "saccordion", saccordion.__docgenInfo = { description: `A collapsible accordion component built on Material-UI Accordion with custom theming,
|
|
926
|
-
optional icons, and smooth expand/collapse animations. Perfect for organizing content
|
|
927
|
-
sections and FAQs.`, displayName: "saccordion", props: { title: { defaultValue: null, description: "The title/header content of the accordion", name: "title", required: !0, type: { name: "ReactNode" } }, startIcon: { defaultValue: null, description: "Optional icon to display at the start of the accordion header", name: "startIcon", required: !1, type: { name: "ReactNode" } }, titleTypographyProps: { defaultValue: null, description: "Props to pass to the Typography component for the title", name: "titleTypographyProps", required: !1, type: { name: "TypographyProps" } }, accordionSummaryProps: { defaultValue: null, description: "Props to pass to the AccordionSummary component for customization", name: "accordionSummaryProps", required: !1, type: { name: "AccordionSummaryProps" } }, accordionDetailsProps: { defaultValue: null, description: "Props to pass to the AccordionDetails component for customization", name: "accordionDetailsProps", required: !1, type: { name: "AccordionDetailsProps" } } } };
|
|
928
|
-
} catch {
|
|
929
|
-
}
|
|
945
|
+
ee.displayName = "SAccordion";
|
|
930
946
|
export {
|
|
931
|
-
|
|
932
|
-
|
|
947
|
+
ee as SAccordion,
|
|
948
|
+
ee as default
|
|
933
949
|
};
|