@jigowatts/jigowatts-ui 0.0.1-12
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/README.md +50 -0
- package/dist/AccordionSummary-B4zooGpd.js +831 -0
- package/dist/ButtonBase-pxtIu13Q.js +866 -0
- package/dist/DateTimePicker-DJSOr5wM.js +4653 -0
- package/dist/ListContext-DOVwHqy-.js +180 -0
- package/dist/MenuItem-yBaT3_db.js +470 -0
- package/dist/Paper-COvYqxZa.js +522 -0
- package/dist/Tabs-D3lJRumZ.js +1085 -0
- package/dist/_commonjsHelpers-CT_km90n.js +30 -0
- package/dist/assets/index.css +1 -0
- package/dist/assets/index10.css +1 -0
- package/dist/assets/index11.css +1 -0
- package/dist/assets/index12.css +1 -0
- package/dist/assets/index13.css +1 -0
- package/dist/assets/index14.css +1 -0
- package/dist/assets/index15.css +1 -0
- package/dist/assets/index16.css +1 -0
- package/dist/assets/index17.css +1 -0
- package/dist/assets/index18.css +1 -0
- package/dist/assets/index19.css +1 -0
- package/dist/assets/index2.css +1 -0
- package/dist/assets/index20.css +1 -0
- package/dist/assets/index21.css +1 -0
- package/dist/assets/index22.css +1 -0
- package/dist/assets/index23.css +1 -0
- package/dist/assets/index24.css +1 -0
- package/dist/assets/index25.css +1 -0
- package/dist/assets/index26.css +1 -0
- package/dist/assets/index27.css +1 -0
- package/dist/assets/index3.css +1 -0
- package/dist/assets/index4.css +1 -0
- package/dist/assets/index5.css +1 -0
- package/dist/assets/index6.css +1 -0
- package/dist/assets/index7.css +1 -0
- package/dist/assets/index8.css +1 -0
- package/dist/assets/index9.css +1 -0
- package/dist/browser-DxfwT6rn.js +656 -0
- package/dist/components/Button/index.d.ts +28 -0
- package/dist/components/Button/index.js +18 -0
- package/dist/components/Button/index.test.d.ts +1 -0
- package/dist/components/Button/index.test.js +23 -0
- package/dist/components/Card/index.d.ts +16 -0
- package/dist/components/Card/index.js +37 -0
- package/dist/components/Card/index.test.d.ts +1 -0
- package/dist/components/Card/index.test.js +35 -0
- package/dist/components/CustomLink/index.d.ts +11 -0
- package/dist/components/CustomLink/index.js +1670 -0
- package/dist/components/CustomLink/index.test.d.ts +1 -0
- package/dist/components/CustomLink/index.test.js +40 -0
- package/dist/components/DataTable/index.d.ts +28 -0
- package/dist/components/DataTable/index.js +137 -0
- package/dist/components/DataTable/index.test.d.ts +1 -0
- package/dist/components/DataTable/index.test.js +3010 -0
- package/dist/components/DatePickerController/index.d.ts +16 -0
- package/dist/components/DatePickerController/index.js +83 -0
- package/dist/components/DatePickerController/index.test.d.ts +1 -0
- package/dist/components/DatePickerController/index.test.js +24 -0
- package/dist/components/ErrorMessage/index.d.ts +5 -0
- package/dist/components/ErrorMessage/index.js +11 -0
- package/dist/components/ErrorMessage/index.test.d.ts +1 -0
- package/dist/components/ErrorMessage/index.test.js +17 -0
- package/dist/components/EvseStateLabel/index.d.ts +5 -0
- package/dist/components/EvseStateLabel/index.js +36 -0
- package/dist/components/FlexButtons/index.d.ts +9 -0
- package/dist/components/FlexButtons/index.js +13 -0
- package/dist/components/Form/index.d.ts +8 -0
- package/dist/components/Form/index.js +11 -0
- package/dist/components/Form/index.test.d.ts +1 -0
- package/dist/components/Form/index.test.js +25 -0
- package/dist/components/FormItem/index.d.ts +9 -0
- package/dist/components/FormItem/index.js +19 -0
- package/dist/components/FormItem/index.test.d.ts +1 -0
- package/dist/components/FormItem/index.test.js +15 -0
- package/dist/components/FormTitle/index.d.ts +5 -0
- package/dist/components/FormTitle/index.js +11 -0
- package/dist/components/FormTitle/index.test.d.ts +1 -0
- package/dist/components/FormTitle/index.test.js +15 -0
- package/dist/components/Input/index.d.ts +15 -0
- package/dist/components/Input/index.js +39 -0
- package/dist/components/Input/index.test.d.ts +1 -0
- package/dist/components/Input/index.test.js +39 -0
- package/dist/components/InputController/index.d.ts +20 -0
- package/dist/components/InputController/index.js +81 -0
- package/dist/components/InputController/index.test.d.ts +1 -0
- package/dist/components/InputController/index.test.js +56 -0
- package/dist/components/InputGroup/index.d.ts +7 -0
- package/dist/components/InputGroup/index.js +11 -0
- package/dist/components/InputGroup/index.test.d.ts +1 -0
- package/dist/components/InputGroup/index.test.js +15 -0
- package/dist/components/Label/index.d.ts +7 -0
- package/dist/components/Label/index.js +14 -0
- package/dist/components/Label/index.test.d.ts +1 -0
- package/dist/components/Label/index.test.js +25 -0
- package/dist/components/LabeledContent/index.d.ts +15 -0
- package/dist/components/LabeledContent/index.js +28 -0
- package/dist/components/LabeledContent/index.test.d.ts +1 -0
- package/dist/components/LabeledContent/index.test.js +19 -0
- package/dist/components/LoadingOverlay/index.d.ts +2 -0
- package/dist/components/LoadingOverlay/index.js +134 -0
- package/dist/components/LoadingOverlay/index.test.d.ts +1 -0
- package/dist/components/LoadingOverlay/index.test.js +12 -0
- package/dist/components/Map/index.d.ts +8 -0
- package/dist/components/Map/index.js +6575 -0
- package/dist/components/MaxWidthContainer/index.d.ts +13 -0
- package/dist/components/MaxWidthContainer/index.js +15 -0
- package/dist/components/MaxWidthContainer/index.test.d.ts +1 -0
- package/dist/components/MaxWidthContainer/index.test.js +24 -0
- package/dist/components/NumericFieldController/index.d.ts +53 -0
- package/dist/components/NumericFieldController/index.js +620 -0
- package/dist/components/NumericFieldController/index.test.d.ts +1 -0
- package/dist/components/NumericFieldController/index.test.js +24 -0
- package/dist/components/OfflineLabel/index.d.ts +5 -0
- package/dist/components/OfflineLabel/index.js +34 -0
- package/dist/components/PageSizeSelector/index.d.ts +15 -0
- package/dist/components/PageSizeSelector/index.js +43 -0
- package/dist/components/Pagination/index.d.ts +9 -0
- package/dist/components/Pagination/index.js +7 -0
- package/dist/components/Pagination/index.test.d.ts +1 -0
- package/dist/components/Pagination/index.test.js +34 -0
- package/dist/components/PasswordInputController/index.d.ts +17 -0
- package/dist/components/PasswordInputController/index.js +78 -0
- package/dist/components/PasswordInputController/index.test.d.ts +1 -0
- package/dist/components/PasswordInputController/index.test.js +37 -0
- package/dist/components/RadioButton/index.d.ts +13 -0
- package/dist/components/RadioButton/index.js +7 -0
- package/dist/components/RadioButton/index.test.d.ts +1 -0
- package/dist/components/RadioButton/index.test.js +38 -0
- package/dist/components/RadioGroupController/index.d.ts +15 -0
- package/dist/components/RadioGroupController/index.js +48 -0
- package/dist/components/RadioGroupController/index.test.d.ts +1 -0
- package/dist/components/RadioGroupController/index.test.js +48 -0
- package/dist/components/RangeDatePicker/index.d.ts +14 -0
- package/dist/components/RangeDatePicker/index.js +1594 -0
- package/dist/components/RangeDatePickerController/index.d.ts +21 -0
- package/dist/components/RangeDatePickerController/index.js +123 -0
- package/dist/components/RangeDatePickerController/index.test.d.ts +1 -0
- package/dist/components/RangeDatePickerController/index.test.js +24 -0
- package/dist/components/ReportCard/index.d.ts +12 -0
- package/dist/components/ReportCard/index.js +18 -0
- package/dist/components/ReportCard/index.test.d.ts +1 -0
- package/dist/components/ReportCard/index.test.js +27 -0
- package/dist/components/ReportChart/index.d.ts +22 -0
- package/dist/components/ReportChart/index.js +23101 -0
- package/dist/components/ScrollableDialog/index.d.ts +19 -0
- package/dist/components/ScrollableDialog/index.js +42 -0
- package/dist/components/ScrollableDialog/index.test.d.ts +1 -0
- package/dist/components/ScrollableDialog/index.test.js +59 -0
- package/dist/components/SearchForm/index.d.ts +13 -0
- package/dist/components/SearchForm/index.js +86 -0
- package/dist/components/SelectBox/index.d.ts +18 -0
- package/dist/components/SelectBox/index.js +7 -0
- package/dist/components/SelectBox/index.test.d.ts +1 -0
- package/dist/components/SelectBox/index.test.js +34 -0
- package/dist/components/SelectBoxController/index.d.ts +20 -0
- package/dist/components/SelectBoxController/index.js +87 -0
- package/dist/components/SelectBoxController/index.test.d.ts +1 -0
- package/dist/components/SelectBoxController/index.test.js +52 -0
- package/dist/components/SubMenu/index.d.ts +22 -0
- package/dist/components/SubMenu/index.js +278 -0
- package/dist/components/SubMenu/index.test.d.ts +1 -0
- package/dist/components/SubMenu/index.test.js +41 -0
- package/dist/components/Tabs/index.d.ts +21 -0
- package/dist/components/Tabs/index.js +100 -0
- package/dist/components/Tabs/index.test.d.ts +1 -0
- package/dist/components/Tabs/index.test.js +24 -0
- package/dist/components/Textarea/index.d.ts +18 -0
- package/dist/components/Textarea/index.js +34 -0
- package/dist/components/Textarea/index.test.d.ts +1 -0
- package/dist/components/Textarea/index.test.js +25 -0
- package/dist/components/ToggleButton/index.d.ts +16 -0
- package/dist/components/ToggleButton/index.js +39 -0
- package/dist/components/ToggleButton/index.test.d.ts +1 -0
- package/dist/components/ToggleButton/index.test.js +49 -0
- package/dist/constants/datetime.d.ts +2 -0
- package/dist/constants/datetime.js +5 -0
- package/dist/createSvgIcon-B53UOwxg.js +183 -0
- package/dist/createSvgIcon-Dj8zNxRS.js +72 -0
- package/dist/index-BLPOOjNr.js +184 -0
- package/dist/index-BOjtnFU5.js +34 -0
- package/dist/index-Bs3JCwgu.js +689 -0
- package/dist/index-CICI7n5Y.js +19688 -0
- package/dist/index-CQDJfJT1.js +50 -0
- package/dist/index-C_i0-R5C.js +393 -0
- package/dist/index-DWRHnq8_.js +42 -0
- package/dist/index-Di2gTfPF.js +25175 -0
- package/dist/index-VF82hRp0.js +2522 -0
- package/dist/index-kvi6aotO.js +39 -0
- package/dist/index.d.ts +38 -0
- package/dist/index.esm-ChwJSgnF.js +1052 -0
- package/dist/index.js +77 -0
- package/dist/isEqual-BBhdD79C.js +667 -0
- package/dist/mergeSlotProps-J197zKan.js +63 -0
- package/dist/react.esm-C8amP77L.js +11182 -0
- package/dist/styled-CWju4EfZ.js +2702 -0
- package/dist/unsupportedProp-DZaWZqWQ.js +30 -0
- package/dist/useControlled-BQCJRJNJ.js +64 -0
- package/dist/useIsFocusVisible-BxB-Hdhb.js +124 -0
- package/dist/useSlotProps-Bh7akxXV.js +33 -0
- package/package.json +360 -0
|
@@ -0,0 +1,831 @@
|
|
|
1
|
+
import { i as he, u as ne, g as B, b as H, s as O, a as i, n as xe, _ as j, c as J } from "./styled-CWju4EfZ.js";
|
|
2
|
+
import { r as be } from "./createSvgIcon-Dj8zNxRS.js";
|
|
3
|
+
import ye, { jsx as E, jsxs as re } from "react/jsx-runtime";
|
|
4
|
+
import * as l from "react";
|
|
5
|
+
import { r as ve } from "./index-BLPOOjNr.js";
|
|
6
|
+
import { c as G, P as e } from "./index-Bs3JCwgu.js";
|
|
7
|
+
import { u as Ce, r as Ee, m as Te, a as Se } from "./mergeSlotProps-J197zKan.js";
|
|
8
|
+
import { d as we, u as se } from "./useIsFocusVisible-BxB-Hdhb.js";
|
|
9
|
+
import { T as Re, g as te, P as Pe } from "./Paper-COvYqxZa.js";
|
|
10
|
+
import { a as Ae } from "./useControlled-BQCJRJNJ.js";
|
|
11
|
+
import { e as Ne, c as $e, B as Oe } from "./ButtonBase-pxtIu13Q.js";
|
|
12
|
+
var X = {}, Me = he;
|
|
13
|
+
Object.defineProperty(X, "__esModule", {
|
|
14
|
+
value: !0
|
|
15
|
+
});
|
|
16
|
+
var De = X.default = void 0, je = Me(be()), ze = ye;
|
|
17
|
+
De = X.default = (0, je.default)(/* @__PURE__ */ (0, ze.jsx)("path", {
|
|
18
|
+
d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
|
|
19
|
+
}), "ExpandMore");
|
|
20
|
+
function Y(o) {
|
|
21
|
+
return ne;
|
|
22
|
+
}
|
|
23
|
+
function _e(o) {
|
|
24
|
+
return B("MuiCollapse", o);
|
|
25
|
+
}
|
|
26
|
+
H("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
|
|
27
|
+
const Ie = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"], Ve = (o) => {
|
|
28
|
+
const {
|
|
29
|
+
orientation: t,
|
|
30
|
+
classes: r
|
|
31
|
+
} = o, s = {
|
|
32
|
+
root: ["root", `${t}`],
|
|
33
|
+
entered: ["entered"],
|
|
34
|
+
hidden: ["hidden"],
|
|
35
|
+
wrapper: ["wrapper", `${t}`],
|
|
36
|
+
wrapperInner: ["wrapperInner", `${t}`]
|
|
37
|
+
};
|
|
38
|
+
return J(s, _e, r);
|
|
39
|
+
}, We = O("div", {
|
|
40
|
+
name: "MuiCollapse",
|
|
41
|
+
slot: "Root",
|
|
42
|
+
overridesResolver: (o, t) => {
|
|
43
|
+
const {
|
|
44
|
+
ownerState: r
|
|
45
|
+
} = o;
|
|
46
|
+
return [t.root, t[r.orientation], r.state === "entered" && t.entered, r.state === "exited" && !r.in && r.collapsedSize === "0px" && t.hidden];
|
|
47
|
+
}
|
|
48
|
+
})(({
|
|
49
|
+
theme: o,
|
|
50
|
+
ownerState: t
|
|
51
|
+
}) => i({
|
|
52
|
+
height: 0,
|
|
53
|
+
overflow: "hidden",
|
|
54
|
+
transition: o.transitions.create("height")
|
|
55
|
+
}, t.orientation === "horizontal" && {
|
|
56
|
+
height: "auto",
|
|
57
|
+
width: 0,
|
|
58
|
+
transition: o.transitions.create("width")
|
|
59
|
+
}, t.state === "entered" && i({
|
|
60
|
+
height: "auto",
|
|
61
|
+
overflow: "visible"
|
|
62
|
+
}, t.orientation === "horizontal" && {
|
|
63
|
+
width: "auto"
|
|
64
|
+
}), t.state === "exited" && !t.in && t.collapsedSize === "0px" && {
|
|
65
|
+
visibility: "hidden"
|
|
66
|
+
})), ke = O("div", {
|
|
67
|
+
name: "MuiCollapse",
|
|
68
|
+
slot: "Wrapper",
|
|
69
|
+
overridesResolver: (o, t) => t.wrapper
|
|
70
|
+
})(({
|
|
71
|
+
ownerState: o
|
|
72
|
+
}) => i({
|
|
73
|
+
// Hack to get children with a negative margin to not falsify the height computation.
|
|
74
|
+
display: "flex",
|
|
75
|
+
width: "100%"
|
|
76
|
+
}, o.orientation === "horizontal" && {
|
|
77
|
+
width: "auto",
|
|
78
|
+
height: "100%"
|
|
79
|
+
})), Fe = O("div", {
|
|
80
|
+
name: "MuiCollapse",
|
|
81
|
+
slot: "WrapperInner",
|
|
82
|
+
overridesResolver: (o, t) => t.wrapperInner
|
|
83
|
+
})(({
|
|
84
|
+
ownerState: o
|
|
85
|
+
}) => i({
|
|
86
|
+
width: "100%"
|
|
87
|
+
}, o.orientation === "horizontal" && {
|
|
88
|
+
width: "auto",
|
|
89
|
+
height: "100%"
|
|
90
|
+
})), Z = /* @__PURE__ */ l.forwardRef(function(t, r) {
|
|
91
|
+
const s = ne({
|
|
92
|
+
props: t,
|
|
93
|
+
name: "MuiCollapse"
|
|
94
|
+
}), {
|
|
95
|
+
addEndListener: a,
|
|
96
|
+
children: p,
|
|
97
|
+
className: u,
|
|
98
|
+
collapsedSize: c = "0px",
|
|
99
|
+
component: y,
|
|
100
|
+
easing: T,
|
|
101
|
+
in: f,
|
|
102
|
+
onEnter: S,
|
|
103
|
+
onEntered: w,
|
|
104
|
+
onEntering: v,
|
|
105
|
+
onExit: C,
|
|
106
|
+
onExited: b,
|
|
107
|
+
onExiting: m,
|
|
108
|
+
orientation: d = "vertical",
|
|
109
|
+
style: R,
|
|
110
|
+
timeout: g = xe.standard,
|
|
111
|
+
// eslint-disable-next-line react/prop-types
|
|
112
|
+
TransitionComponent: $ = Re
|
|
113
|
+
} = s, V = j(s, Ie), P = i({}, s, {
|
|
114
|
+
orientation: d,
|
|
115
|
+
collapsedSize: c
|
|
116
|
+
}), h = Ve(P), M = Ce(), K = we(), A = l.useRef(null), W = l.useRef(), z = typeof c == "number" ? `${c}px` : c, D = d === "horizontal", k = D ? "width" : "height", U = l.useRef(null), de = se(r, U), _ = (n) => (x) => {
|
|
117
|
+
if (n) {
|
|
118
|
+
const N = U.current;
|
|
119
|
+
x === void 0 ? n(N) : n(N, x);
|
|
120
|
+
}
|
|
121
|
+
}, Q = () => A.current ? A.current[D ? "clientWidth" : "clientHeight"] : 0, le = _((n, x) => {
|
|
122
|
+
A.current && D && (A.current.style.position = "absolute"), n.style[k] = z, S && S(n, x);
|
|
123
|
+
}), pe = _((n, x) => {
|
|
124
|
+
const N = Q();
|
|
125
|
+
A.current && D && (A.current.style.position = "");
|
|
126
|
+
const {
|
|
127
|
+
duration: F,
|
|
128
|
+
easing: q
|
|
129
|
+
} = te({
|
|
130
|
+
style: R,
|
|
131
|
+
timeout: g,
|
|
132
|
+
easing: T
|
|
133
|
+
}, {
|
|
134
|
+
mode: "enter"
|
|
135
|
+
});
|
|
136
|
+
if (g === "auto") {
|
|
137
|
+
const oe = M.transitions.getAutoHeightDuration(N);
|
|
138
|
+
n.style.transitionDuration = `${oe}ms`, W.current = oe;
|
|
139
|
+
} else
|
|
140
|
+
n.style.transitionDuration = typeof F == "string" ? F : `${F}ms`;
|
|
141
|
+
n.style[k] = `${N}px`, n.style.transitionTimingFunction = q, v && v(n, x);
|
|
142
|
+
}), ue = _((n, x) => {
|
|
143
|
+
n.style[k] = "auto", w && w(n, x);
|
|
144
|
+
}), fe = _((n) => {
|
|
145
|
+
n.style[k] = `${Q()}px`, C && C(n);
|
|
146
|
+
}), me = _(b), ge = _((n) => {
|
|
147
|
+
const x = Q(), {
|
|
148
|
+
duration: N,
|
|
149
|
+
easing: F
|
|
150
|
+
} = te({
|
|
151
|
+
style: R,
|
|
152
|
+
timeout: g,
|
|
153
|
+
easing: T
|
|
154
|
+
}, {
|
|
155
|
+
mode: "exit"
|
|
156
|
+
});
|
|
157
|
+
if (g === "auto") {
|
|
158
|
+
const q = M.transitions.getAutoHeightDuration(x);
|
|
159
|
+
n.style.transitionDuration = `${q}ms`, W.current = q;
|
|
160
|
+
} else
|
|
161
|
+
n.style.transitionDuration = typeof N == "string" ? N : `${N}ms`;
|
|
162
|
+
n.style[k] = z, n.style.transitionTimingFunction = F, m && m(n);
|
|
163
|
+
});
|
|
164
|
+
return /* @__PURE__ */ E($, i({
|
|
165
|
+
in: f,
|
|
166
|
+
onEnter: le,
|
|
167
|
+
onEntered: ue,
|
|
168
|
+
onEntering: pe,
|
|
169
|
+
onExit: fe,
|
|
170
|
+
onExited: me,
|
|
171
|
+
onExiting: ge,
|
|
172
|
+
addEndListener: (n) => {
|
|
173
|
+
g === "auto" && K.start(W.current || 0, n), a && a(U.current, n);
|
|
174
|
+
},
|
|
175
|
+
nodeRef: U,
|
|
176
|
+
timeout: g === "auto" ? null : g
|
|
177
|
+
}, V, {
|
|
178
|
+
children: (n, x) => /* @__PURE__ */ E(We, i({
|
|
179
|
+
as: y,
|
|
180
|
+
className: G(h.root, u, {
|
|
181
|
+
entered: h.entered,
|
|
182
|
+
exited: !f && z === "0px" && h.hidden
|
|
183
|
+
}[n]),
|
|
184
|
+
style: i({
|
|
185
|
+
[D ? "minWidth" : "minHeight"]: z
|
|
186
|
+
}, R),
|
|
187
|
+
ref: de
|
|
188
|
+
}, x, {
|
|
189
|
+
// `ownerState` is set after `childProps` to override any existing `ownerState` property in `childProps`
|
|
190
|
+
// that might have been forwarded from the Transition component.
|
|
191
|
+
ownerState: i({}, P, {
|
|
192
|
+
state: n
|
|
193
|
+
}),
|
|
194
|
+
children: /* @__PURE__ */ E(ke, {
|
|
195
|
+
ownerState: i({}, P, {
|
|
196
|
+
state: n
|
|
197
|
+
}),
|
|
198
|
+
className: h.wrapper,
|
|
199
|
+
ref: A,
|
|
200
|
+
children: /* @__PURE__ */ E(Fe, {
|
|
201
|
+
ownerState: i({}, P, {
|
|
202
|
+
state: n
|
|
203
|
+
}),
|
|
204
|
+
className: h.wrapperInner,
|
|
205
|
+
children: p
|
|
206
|
+
})
|
|
207
|
+
})
|
|
208
|
+
}))
|
|
209
|
+
}));
|
|
210
|
+
});
|
|
211
|
+
process.env.NODE_ENV !== "production" && (Z.propTypes = {
|
|
212
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
213
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
214
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
215
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
216
|
+
/**
|
|
217
|
+
* Add a custom transition end trigger. Called with the transitioning DOM
|
|
218
|
+
* node and a done callback. Allows for more fine grained transition end
|
|
219
|
+
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
220
|
+
*/
|
|
221
|
+
addEndListener: e.func,
|
|
222
|
+
/**
|
|
223
|
+
* The content node to be collapsed.
|
|
224
|
+
*/
|
|
225
|
+
children: e.node,
|
|
226
|
+
/**
|
|
227
|
+
* Override or extend the styles applied to the component.
|
|
228
|
+
*/
|
|
229
|
+
classes: e.object,
|
|
230
|
+
/**
|
|
231
|
+
* @ignore
|
|
232
|
+
*/
|
|
233
|
+
className: e.string,
|
|
234
|
+
/**
|
|
235
|
+
* The width (horizontal) or height (vertical) of the container when collapsed.
|
|
236
|
+
* @default '0px'
|
|
237
|
+
*/
|
|
238
|
+
collapsedSize: e.oneOfType([e.number, e.string]),
|
|
239
|
+
/**
|
|
240
|
+
* The component used for the root node.
|
|
241
|
+
* Either a string to use a HTML element or a component.
|
|
242
|
+
*/
|
|
243
|
+
component: Ne,
|
|
244
|
+
/**
|
|
245
|
+
* The transition timing function.
|
|
246
|
+
* You may specify a single easing or a object containing enter and exit values.
|
|
247
|
+
*/
|
|
248
|
+
easing: e.oneOfType([e.shape({
|
|
249
|
+
enter: e.string,
|
|
250
|
+
exit: e.string
|
|
251
|
+
}), e.string]),
|
|
252
|
+
/**
|
|
253
|
+
* If `true`, the component will transition in.
|
|
254
|
+
*/
|
|
255
|
+
in: e.bool,
|
|
256
|
+
/**
|
|
257
|
+
* @ignore
|
|
258
|
+
*/
|
|
259
|
+
onEnter: e.func,
|
|
260
|
+
/**
|
|
261
|
+
* @ignore
|
|
262
|
+
*/
|
|
263
|
+
onEntered: e.func,
|
|
264
|
+
/**
|
|
265
|
+
* @ignore
|
|
266
|
+
*/
|
|
267
|
+
onEntering: e.func,
|
|
268
|
+
/**
|
|
269
|
+
* @ignore
|
|
270
|
+
*/
|
|
271
|
+
onExit: e.func,
|
|
272
|
+
/**
|
|
273
|
+
* @ignore
|
|
274
|
+
*/
|
|
275
|
+
onExited: e.func,
|
|
276
|
+
/**
|
|
277
|
+
* @ignore
|
|
278
|
+
*/
|
|
279
|
+
onExiting: e.func,
|
|
280
|
+
/**
|
|
281
|
+
* The transition orientation.
|
|
282
|
+
* @default 'vertical'
|
|
283
|
+
*/
|
|
284
|
+
orientation: e.oneOf(["horizontal", "vertical"]),
|
|
285
|
+
/**
|
|
286
|
+
* @ignore
|
|
287
|
+
*/
|
|
288
|
+
style: e.object,
|
|
289
|
+
/**
|
|
290
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
291
|
+
*/
|
|
292
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
293
|
+
/**
|
|
294
|
+
* The duration for the transition, in milliseconds.
|
|
295
|
+
* You may specify a single timeout for all transitions, or individually with an object.
|
|
296
|
+
*
|
|
297
|
+
* Set to 'auto' to automatically calculate transition time based on height.
|
|
298
|
+
* @default duration.standard
|
|
299
|
+
*/
|
|
300
|
+
timeout: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
|
|
301
|
+
appear: e.number,
|
|
302
|
+
enter: e.number,
|
|
303
|
+
exit: e.number
|
|
304
|
+
})])
|
|
305
|
+
});
|
|
306
|
+
Z.muiSupportAuto = !0;
|
|
307
|
+
const Ge = Z, ee = /* @__PURE__ */ l.createContext({});
|
|
308
|
+
process.env.NODE_ENV !== "production" && (ee.displayName = "AccordionContext");
|
|
309
|
+
const Ue = ["className", "elementType", "ownerState", "externalForwardedProps", "getSlotOwnerState", "internalForwardedProps"], qe = ["component", "slots", "slotProps"], Le = ["component"];
|
|
310
|
+
function Be(o, t) {
|
|
311
|
+
const {
|
|
312
|
+
className: r,
|
|
313
|
+
elementType: s,
|
|
314
|
+
ownerState: a,
|
|
315
|
+
externalForwardedProps: p,
|
|
316
|
+
getSlotOwnerState: u,
|
|
317
|
+
internalForwardedProps: c
|
|
318
|
+
} = t, y = j(t, Ue), {
|
|
319
|
+
component: T,
|
|
320
|
+
slots: f = {
|
|
321
|
+
[o]: void 0
|
|
322
|
+
},
|
|
323
|
+
slotProps: S = {
|
|
324
|
+
[o]: void 0
|
|
325
|
+
}
|
|
326
|
+
} = p, w = j(p, qe), v = f[o] || s, C = Ee(S[o], a), b = Te(i({
|
|
327
|
+
className: r
|
|
328
|
+
}, y, {
|
|
329
|
+
externalForwardedProps: o === "root" ? w : void 0,
|
|
330
|
+
externalSlotProps: C
|
|
331
|
+
})), {
|
|
332
|
+
props: {
|
|
333
|
+
component: m
|
|
334
|
+
},
|
|
335
|
+
internalRef: d
|
|
336
|
+
} = b, R = j(b.props, Le), g = se(d, C == null ? void 0 : C.ref, t.ref), $ = u ? u(R) : {}, V = i({}, a, $), P = o === "root" ? m || T : m, h = Se(v, i({}, o === "root" && !T && !f[o] && c, o !== "root" && !f[o] && c, R, P && {
|
|
337
|
+
as: P
|
|
338
|
+
}, {
|
|
339
|
+
ref: g
|
|
340
|
+
}), V);
|
|
341
|
+
return Object.keys($).forEach((M) => {
|
|
342
|
+
delete h[M];
|
|
343
|
+
}), [v, h];
|
|
344
|
+
}
|
|
345
|
+
function He(o) {
|
|
346
|
+
return B("MuiAccordion", o);
|
|
347
|
+
}
|
|
348
|
+
const Je = H("MuiAccordion", ["root", "rounded", "expanded", "disabled", "gutters", "region"]), L = Je, Ke = ["children", "className", "defaultExpanded", "disabled", "disableGutters", "expanded", "onChange", "square", "slots", "slotProps", "TransitionComponent", "TransitionProps"], Qe = Y(), Xe = (o) => {
|
|
349
|
+
const {
|
|
350
|
+
classes: t,
|
|
351
|
+
square: r,
|
|
352
|
+
expanded: s,
|
|
353
|
+
disabled: a,
|
|
354
|
+
disableGutters: p
|
|
355
|
+
} = o;
|
|
356
|
+
return J({
|
|
357
|
+
root: ["root", !r && "rounded", s && "expanded", a && "disabled", !p && "gutters"],
|
|
358
|
+
region: ["region"]
|
|
359
|
+
}, He, t);
|
|
360
|
+
}, Ye = O(Pe, {
|
|
361
|
+
name: "MuiAccordion",
|
|
362
|
+
slot: "Root",
|
|
363
|
+
overridesResolver: (o, t) => {
|
|
364
|
+
const {
|
|
365
|
+
ownerState: r
|
|
366
|
+
} = o;
|
|
367
|
+
return [{
|
|
368
|
+
[`& .${L.region}`]: t.region
|
|
369
|
+
}, t.root, !r.square && t.rounded, !r.disableGutters && t.gutters];
|
|
370
|
+
}
|
|
371
|
+
})(({
|
|
372
|
+
theme: o
|
|
373
|
+
}) => {
|
|
374
|
+
const t = {
|
|
375
|
+
duration: o.transitions.duration.shortest
|
|
376
|
+
};
|
|
377
|
+
return {
|
|
378
|
+
position: "relative",
|
|
379
|
+
transition: o.transitions.create(["margin"], t),
|
|
380
|
+
overflowAnchor: "none",
|
|
381
|
+
// Keep the same scrolling position
|
|
382
|
+
"&::before": {
|
|
383
|
+
position: "absolute",
|
|
384
|
+
left: 0,
|
|
385
|
+
top: -1,
|
|
386
|
+
right: 0,
|
|
387
|
+
height: 1,
|
|
388
|
+
content: '""',
|
|
389
|
+
opacity: 1,
|
|
390
|
+
backgroundColor: (o.vars || o).palette.divider,
|
|
391
|
+
transition: o.transitions.create(["opacity", "background-color"], t)
|
|
392
|
+
},
|
|
393
|
+
"&:first-of-type": {
|
|
394
|
+
"&::before": {
|
|
395
|
+
display: "none"
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
[`&.${L.expanded}`]: {
|
|
399
|
+
"&::before": {
|
|
400
|
+
opacity: 0
|
|
401
|
+
},
|
|
402
|
+
"&:first-of-type": {
|
|
403
|
+
marginTop: 0
|
|
404
|
+
},
|
|
405
|
+
"&:last-of-type": {
|
|
406
|
+
marginBottom: 0
|
|
407
|
+
},
|
|
408
|
+
"& + &": {
|
|
409
|
+
"&::before": {
|
|
410
|
+
display: "none"
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
[`&.${L.disabled}`]: {
|
|
415
|
+
backgroundColor: (o.vars || o).palette.action.disabledBackground
|
|
416
|
+
}
|
|
417
|
+
};
|
|
418
|
+
}, ({
|
|
419
|
+
theme: o
|
|
420
|
+
}) => ({
|
|
421
|
+
variants: [{
|
|
422
|
+
props: (t) => !t.square,
|
|
423
|
+
style: {
|
|
424
|
+
borderRadius: 0,
|
|
425
|
+
"&:first-of-type": {
|
|
426
|
+
borderTopLeftRadius: (o.vars || o).shape.borderRadius,
|
|
427
|
+
borderTopRightRadius: (o.vars || o).shape.borderRadius
|
|
428
|
+
},
|
|
429
|
+
"&:last-of-type": {
|
|
430
|
+
borderBottomLeftRadius: (o.vars || o).shape.borderRadius,
|
|
431
|
+
borderBottomRightRadius: (o.vars || o).shape.borderRadius,
|
|
432
|
+
// Fix a rendering issue on Edge
|
|
433
|
+
"@supports (-ms-ime-align: auto)": {
|
|
434
|
+
borderBottomLeftRadius: 0,
|
|
435
|
+
borderBottomRightRadius: 0
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}, {
|
|
440
|
+
props: (t) => !t.disableGutters,
|
|
441
|
+
style: {
|
|
442
|
+
[`&.${L.expanded}`]: {
|
|
443
|
+
margin: "16px 0"
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}]
|
|
447
|
+
})), ie = /* @__PURE__ */ l.forwardRef(function(t, r) {
|
|
448
|
+
const s = Qe({
|
|
449
|
+
props: t,
|
|
450
|
+
name: "MuiAccordion"
|
|
451
|
+
}), {
|
|
452
|
+
children: a,
|
|
453
|
+
className: p,
|
|
454
|
+
defaultExpanded: u = !1,
|
|
455
|
+
disabled: c = !1,
|
|
456
|
+
disableGutters: y = !1,
|
|
457
|
+
expanded: T,
|
|
458
|
+
onChange: f,
|
|
459
|
+
square: S = !1,
|
|
460
|
+
slots: w = {},
|
|
461
|
+
slotProps: v = {},
|
|
462
|
+
TransitionComponent: C,
|
|
463
|
+
TransitionProps: b
|
|
464
|
+
} = s, m = j(s, Ke), [d, R] = Ae({
|
|
465
|
+
controlled: T,
|
|
466
|
+
default: u,
|
|
467
|
+
name: "Accordion",
|
|
468
|
+
state: "expanded"
|
|
469
|
+
}), g = l.useCallback((D) => {
|
|
470
|
+
R(!d), f && f(D, !d);
|
|
471
|
+
}, [d, f, R]), [$, ...V] = l.Children.toArray(a), P = l.useMemo(() => ({
|
|
472
|
+
expanded: d,
|
|
473
|
+
disabled: c,
|
|
474
|
+
disableGutters: y,
|
|
475
|
+
toggle: g
|
|
476
|
+
}), [d, c, y, g]), h = i({}, s, {
|
|
477
|
+
square: S,
|
|
478
|
+
disabled: c,
|
|
479
|
+
disableGutters: y,
|
|
480
|
+
expanded: d
|
|
481
|
+
}), M = Xe(h), K = i({
|
|
482
|
+
transition: C
|
|
483
|
+
}, w), A = i({
|
|
484
|
+
transition: b
|
|
485
|
+
}, v), [W, z] = Be("transition", {
|
|
486
|
+
elementType: Ge,
|
|
487
|
+
externalForwardedProps: {
|
|
488
|
+
slots: K,
|
|
489
|
+
slotProps: A
|
|
490
|
+
},
|
|
491
|
+
ownerState: h
|
|
492
|
+
});
|
|
493
|
+
return /* @__PURE__ */ re(Ye, i({
|
|
494
|
+
className: G(M.root, p),
|
|
495
|
+
ref: r,
|
|
496
|
+
ownerState: h,
|
|
497
|
+
square: S
|
|
498
|
+
}, m, {
|
|
499
|
+
children: [/* @__PURE__ */ E(ee.Provider, {
|
|
500
|
+
value: P,
|
|
501
|
+
children: $
|
|
502
|
+
}), /* @__PURE__ */ E(W, i({
|
|
503
|
+
in: d,
|
|
504
|
+
timeout: "auto"
|
|
505
|
+
}, z, {
|
|
506
|
+
children: /* @__PURE__ */ E("div", {
|
|
507
|
+
"aria-labelledby": $.props.id,
|
|
508
|
+
id: $.props["aria-controls"],
|
|
509
|
+
role: "region",
|
|
510
|
+
className: M.region,
|
|
511
|
+
children: V
|
|
512
|
+
})
|
|
513
|
+
}))]
|
|
514
|
+
}));
|
|
515
|
+
});
|
|
516
|
+
process.env.NODE_ENV !== "production" && (ie.propTypes = {
|
|
517
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
518
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
519
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
520
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
521
|
+
/**
|
|
522
|
+
* The content of the component.
|
|
523
|
+
*/
|
|
524
|
+
children: $e(e.node.isRequired, (o) => {
|
|
525
|
+
const t = l.Children.toArray(o.children)[0];
|
|
526
|
+
return ve.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.");
|
|
527
|
+
}),
|
|
528
|
+
/**
|
|
529
|
+
* Override or extend the styles applied to the component.
|
|
530
|
+
*/
|
|
531
|
+
classes: e.object,
|
|
532
|
+
/**
|
|
533
|
+
* @ignore
|
|
534
|
+
*/
|
|
535
|
+
className: e.string,
|
|
536
|
+
/**
|
|
537
|
+
* If `true`, expands the accordion by default.
|
|
538
|
+
* @default false
|
|
539
|
+
*/
|
|
540
|
+
defaultExpanded: e.bool,
|
|
541
|
+
/**
|
|
542
|
+
* If `true`, the component is disabled.
|
|
543
|
+
* @default false
|
|
544
|
+
*/
|
|
545
|
+
disabled: e.bool,
|
|
546
|
+
/**
|
|
547
|
+
* If `true`, it removes the margin between two expanded accordion items and the increase of height.
|
|
548
|
+
* @default false
|
|
549
|
+
*/
|
|
550
|
+
disableGutters: e.bool,
|
|
551
|
+
/**
|
|
552
|
+
* If `true`, expands the accordion, otherwise collapse it.
|
|
553
|
+
* Setting this prop enables control over the accordion.
|
|
554
|
+
*/
|
|
555
|
+
expanded: e.bool,
|
|
556
|
+
/**
|
|
557
|
+
* Callback fired when the expand/collapse state is changed.
|
|
558
|
+
*
|
|
559
|
+
* @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
|
560
|
+
* @param {boolean} expanded The `expanded` state of the accordion.
|
|
561
|
+
*/
|
|
562
|
+
onChange: e.func,
|
|
563
|
+
/**
|
|
564
|
+
* The props used for each slot inside.
|
|
565
|
+
* @default {}
|
|
566
|
+
*/
|
|
567
|
+
slotProps: e.shape({
|
|
568
|
+
transition: e.oneOfType([e.func, e.object])
|
|
569
|
+
}),
|
|
570
|
+
/**
|
|
571
|
+
* The components used for each slot inside.
|
|
572
|
+
* @default {}
|
|
573
|
+
*/
|
|
574
|
+
slots: e.shape({
|
|
575
|
+
transition: e.elementType
|
|
576
|
+
}),
|
|
577
|
+
/**
|
|
578
|
+
* If `true`, rounded corners are disabled.
|
|
579
|
+
* @default false
|
|
580
|
+
*/
|
|
581
|
+
square: e.bool,
|
|
582
|
+
/**
|
|
583
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
584
|
+
*/
|
|
585
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
586
|
+
/**
|
|
587
|
+
* The component used for the transition.
|
|
588
|
+
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
589
|
+
* @deprecated Use `slots.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
590
|
+
*/
|
|
591
|
+
TransitionComponent: e.elementType,
|
|
592
|
+
/**
|
|
593
|
+
* Props applied to the transition element.
|
|
594
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
595
|
+
* @deprecated Use `slotProps.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
596
|
+
*/
|
|
597
|
+
TransitionProps: e.object
|
|
598
|
+
});
|
|
599
|
+
const So = ie;
|
|
600
|
+
function Ze(o) {
|
|
601
|
+
return B("MuiAccordionDetails", o);
|
|
602
|
+
}
|
|
603
|
+
H("MuiAccordionDetails", ["root"]);
|
|
604
|
+
const eo = ["className"], oo = Y(), to = (o) => {
|
|
605
|
+
const {
|
|
606
|
+
classes: t
|
|
607
|
+
} = o;
|
|
608
|
+
return J({
|
|
609
|
+
root: ["root"]
|
|
610
|
+
}, Ze, t);
|
|
611
|
+
}, no = O("div", {
|
|
612
|
+
name: "MuiAccordionDetails",
|
|
613
|
+
slot: "Root",
|
|
614
|
+
overridesResolver: (o, t) => t.root
|
|
615
|
+
})(({
|
|
616
|
+
theme: o
|
|
617
|
+
}) => ({
|
|
618
|
+
padding: o.spacing(1, 2, 2)
|
|
619
|
+
})), ae = /* @__PURE__ */ l.forwardRef(function(t, r) {
|
|
620
|
+
const s = oo({
|
|
621
|
+
props: t,
|
|
622
|
+
name: "MuiAccordionDetails"
|
|
623
|
+
}), {
|
|
624
|
+
className: a
|
|
625
|
+
} = s, p = j(s, eo), u = s, c = to(u);
|
|
626
|
+
return /* @__PURE__ */ E(no, i({
|
|
627
|
+
className: G(c.root, a),
|
|
628
|
+
ref: r,
|
|
629
|
+
ownerState: u
|
|
630
|
+
}, p));
|
|
631
|
+
});
|
|
632
|
+
process.env.NODE_ENV !== "production" && (ae.propTypes = {
|
|
633
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
634
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
635
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
636
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
637
|
+
/**
|
|
638
|
+
* The content of the component.
|
|
639
|
+
*/
|
|
640
|
+
children: e.node,
|
|
641
|
+
/**
|
|
642
|
+
* Override or extend the styles applied to the component.
|
|
643
|
+
*/
|
|
644
|
+
classes: e.object,
|
|
645
|
+
/**
|
|
646
|
+
* @ignore
|
|
647
|
+
*/
|
|
648
|
+
className: e.string,
|
|
649
|
+
/**
|
|
650
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
651
|
+
*/
|
|
652
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
653
|
+
});
|
|
654
|
+
const wo = ae;
|
|
655
|
+
function ro(o) {
|
|
656
|
+
return B("MuiAccordionSummary", o);
|
|
657
|
+
}
|
|
658
|
+
const so = H("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disabled", "gutters", "contentGutters", "content", "expandIconWrapper"]), I = so, io = ["children", "className", "expandIcon", "focusVisibleClassName", "onClick"], ao = Y(), co = (o) => {
|
|
659
|
+
const {
|
|
660
|
+
classes: t,
|
|
661
|
+
expanded: r,
|
|
662
|
+
disabled: s,
|
|
663
|
+
disableGutters: a
|
|
664
|
+
} = o;
|
|
665
|
+
return J({
|
|
666
|
+
root: ["root", r && "expanded", s && "disabled", !a && "gutters"],
|
|
667
|
+
focusVisible: ["focusVisible"],
|
|
668
|
+
content: ["content", r && "expanded", !a && "contentGutters"],
|
|
669
|
+
expandIconWrapper: ["expandIconWrapper", r && "expanded"]
|
|
670
|
+
}, ro, t);
|
|
671
|
+
}, lo = O(Oe, {
|
|
672
|
+
name: "MuiAccordionSummary",
|
|
673
|
+
slot: "Root",
|
|
674
|
+
overridesResolver: (o, t) => t.root
|
|
675
|
+
})(({
|
|
676
|
+
theme: o
|
|
677
|
+
}) => {
|
|
678
|
+
const t = {
|
|
679
|
+
duration: o.transitions.duration.shortest
|
|
680
|
+
};
|
|
681
|
+
return {
|
|
682
|
+
display: "flex",
|
|
683
|
+
minHeight: 48,
|
|
684
|
+
padding: o.spacing(0, 2),
|
|
685
|
+
transition: o.transitions.create(["min-height", "background-color"], t),
|
|
686
|
+
[`&.${I.focusVisible}`]: {
|
|
687
|
+
backgroundColor: (o.vars || o).palette.action.focus
|
|
688
|
+
},
|
|
689
|
+
[`&.${I.disabled}`]: {
|
|
690
|
+
opacity: (o.vars || o).palette.action.disabledOpacity
|
|
691
|
+
},
|
|
692
|
+
[`&:hover:not(.${I.disabled})`]: {
|
|
693
|
+
cursor: "pointer"
|
|
694
|
+
},
|
|
695
|
+
variants: [{
|
|
696
|
+
props: (r) => !r.disableGutters,
|
|
697
|
+
style: {
|
|
698
|
+
[`&.${I.expanded}`]: {
|
|
699
|
+
minHeight: 64
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
}]
|
|
703
|
+
};
|
|
704
|
+
}), po = O("div", {
|
|
705
|
+
name: "MuiAccordionSummary",
|
|
706
|
+
slot: "Content",
|
|
707
|
+
overridesResolver: (o, t) => t.content
|
|
708
|
+
})(({
|
|
709
|
+
theme: o
|
|
710
|
+
}) => ({
|
|
711
|
+
display: "flex",
|
|
712
|
+
flexGrow: 1,
|
|
713
|
+
margin: "12px 0",
|
|
714
|
+
variants: [{
|
|
715
|
+
props: (t) => !t.disableGutters,
|
|
716
|
+
style: {
|
|
717
|
+
transition: o.transitions.create(["margin"], {
|
|
718
|
+
duration: o.transitions.duration.shortest
|
|
719
|
+
}),
|
|
720
|
+
[`&.${I.expanded}`]: {
|
|
721
|
+
margin: "20px 0"
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
}]
|
|
725
|
+
})), uo = O("div", {
|
|
726
|
+
name: "MuiAccordionSummary",
|
|
727
|
+
slot: "ExpandIconWrapper",
|
|
728
|
+
overridesResolver: (o, t) => t.expandIconWrapper
|
|
729
|
+
})(({
|
|
730
|
+
theme: o
|
|
731
|
+
}) => ({
|
|
732
|
+
display: "flex",
|
|
733
|
+
color: (o.vars || o).palette.action.active,
|
|
734
|
+
transform: "rotate(0deg)",
|
|
735
|
+
transition: o.transitions.create("transform", {
|
|
736
|
+
duration: o.transitions.duration.shortest
|
|
737
|
+
}),
|
|
738
|
+
[`&.${I.expanded}`]: {
|
|
739
|
+
transform: "rotate(180deg)"
|
|
740
|
+
}
|
|
741
|
+
})), ce = /* @__PURE__ */ l.forwardRef(function(t, r) {
|
|
742
|
+
const s = ao({
|
|
743
|
+
props: t,
|
|
744
|
+
name: "MuiAccordionSummary"
|
|
745
|
+
}), {
|
|
746
|
+
children: a,
|
|
747
|
+
className: p,
|
|
748
|
+
expandIcon: u,
|
|
749
|
+
focusVisibleClassName: c,
|
|
750
|
+
onClick: y
|
|
751
|
+
} = s, T = j(s, io), {
|
|
752
|
+
disabled: f = !1,
|
|
753
|
+
disableGutters: S,
|
|
754
|
+
expanded: w,
|
|
755
|
+
toggle: v
|
|
756
|
+
} = l.useContext(ee), C = (d) => {
|
|
757
|
+
v && v(d), y && y(d);
|
|
758
|
+
}, b = i({}, s, {
|
|
759
|
+
expanded: w,
|
|
760
|
+
disabled: f,
|
|
761
|
+
disableGutters: S
|
|
762
|
+
}), m = co(b);
|
|
763
|
+
return /* @__PURE__ */ re(lo, i({
|
|
764
|
+
focusRipple: !1,
|
|
765
|
+
disableRipple: !0,
|
|
766
|
+
disabled: f,
|
|
767
|
+
component: "div",
|
|
768
|
+
"aria-expanded": w,
|
|
769
|
+
className: G(m.root, p),
|
|
770
|
+
focusVisibleClassName: G(m.focusVisible, c),
|
|
771
|
+
onClick: C,
|
|
772
|
+
ref: r,
|
|
773
|
+
ownerState: b
|
|
774
|
+
}, T, {
|
|
775
|
+
children: [/* @__PURE__ */ E(po, {
|
|
776
|
+
className: m.content,
|
|
777
|
+
ownerState: b,
|
|
778
|
+
children: a
|
|
779
|
+
}), u && /* @__PURE__ */ E(uo, {
|
|
780
|
+
className: m.expandIconWrapper,
|
|
781
|
+
ownerState: b,
|
|
782
|
+
children: u
|
|
783
|
+
})]
|
|
784
|
+
}));
|
|
785
|
+
});
|
|
786
|
+
process.env.NODE_ENV !== "production" && (ce.propTypes = {
|
|
787
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
788
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
789
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
790
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
791
|
+
/**
|
|
792
|
+
* The content of the component.
|
|
793
|
+
*/
|
|
794
|
+
children: e.node,
|
|
795
|
+
/**
|
|
796
|
+
* Override or extend the styles applied to the component.
|
|
797
|
+
*/
|
|
798
|
+
classes: e.object,
|
|
799
|
+
/**
|
|
800
|
+
* @ignore
|
|
801
|
+
*/
|
|
802
|
+
className: e.string,
|
|
803
|
+
/**
|
|
804
|
+
* The icon to display as the expand indicator.
|
|
805
|
+
*/
|
|
806
|
+
expandIcon: e.node,
|
|
807
|
+
/**
|
|
808
|
+
* This prop can help identify which element has keyboard focus.
|
|
809
|
+
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
810
|
+
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
811
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
812
|
+
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
813
|
+
* if needed.
|
|
814
|
+
*/
|
|
815
|
+
focusVisibleClassName: e.string,
|
|
816
|
+
/**
|
|
817
|
+
* @ignore
|
|
818
|
+
*/
|
|
819
|
+
onClick: e.func,
|
|
820
|
+
/**
|
|
821
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
822
|
+
*/
|
|
823
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
824
|
+
});
|
|
825
|
+
const Ro = ce;
|
|
826
|
+
export {
|
|
827
|
+
So as A,
|
|
828
|
+
Ro as a,
|
|
829
|
+
wo as b,
|
|
830
|
+
De as d
|
|
831
|
+
};
|