@hybridcore/ui 1.6.1 → 1.6.3
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/CATALOG.md +179 -0
- package/README.md +1 -2
- package/dist/AccordionSummary-CJppWeqF.js +781 -0
- package/dist/Add-CqcD1PWb.js +403 -0
- package/dist/Box-DqUMmZjL.js +31 -0
- package/dist/Button-C5yquWAB.js +357 -0
- package/dist/ButtonBase-BEF7oTOe.js +887 -0
- package/dist/{Delete-fBLhTHbF.js → Delete-BdyYpINH.js} +9 -8
- package/dist/{DialogContent-CGJ7alb8.js → DialogContent-BvVjD9z3.js} +127 -122
- package/dist/FormGroup-CpBsIyYR.js +89 -0
- package/dist/{IconButton-_opV1iNK.js → IconButton-BoGwbvrP.js} +26 -26
- package/dist/{InputLabel-rEwwnD4_.js → InputLabel-Dd8RrneV.js} +140 -153
- package/dist/{MenuItem-DrE50M_p.js → MenuItem-DwqJqzuM.js} +65 -89
- package/dist/Modal-MUZygjmQ.js +1158 -0
- package/dist/Paper-BkQLdsCI.js +582 -0
- package/dist/Select-DHUl_uG3.js +3916 -0
- package/dist/SwitchBase-DTndTqI8.js +235 -0
- package/dist/TextField-e2oKaUN1.js +669 -0
- package/dist/TransitionGroupContext-BDAp2T0O.js +96 -0
- package/dist/{Typography-B-Z5Y0Xq.js → Typography-DgsSLCFC.js} +28 -26
- package/dist/assertThisInitialized-C1dAyb4j.js +7 -0
- package/dist/assets/index4.css +1 -0
- package/dist/clsx-OuTLNxxd.js +16 -0
- package/dist/components/access/helpers.js +1 -1
- package/dist/components/access/logic.js +1 -1
- package/dist/components/button/index.js +10 -0
- package/dist/components/button/logic.js +26 -0
- package/dist/components/button/styled.js +9 -0
- package/dist/components/charts/_common/chart-error.js +19 -0
- package/dist/components/charts/candlestick/index.js +3 -3
- package/dist/components/charts/candlestick/logic.js +123 -113
- package/dist/components/charts/chart-wrapper/index.js +5 -5
- package/dist/components/charts/column-line-mix/index.js +9 -8
- package/dist/components/charts/column-line-mix/logic.js +68 -71
- package/dist/components/charts/drill-down-treemap/index.js +8 -7
- package/dist/components/charts/drill-down-treemap/logic.js +138 -144
- package/dist/components/charts/drill-down-voronoi-treemap/index.js +9 -8
- package/dist/components/charts/drill-down-voronoi-treemap/logic.js +222 -228
- package/dist/components/charts/heatmap/index.js +9 -8
- package/dist/components/charts/heatmap/logic.js +167 -173
- package/dist/components/charts/highlighting-line-data/index.js +3 -3
- package/dist/components/charts/line/index.js +9 -8
- package/dist/components/charts/line/logic.js +74 -79
- package/dist/components/charts/logaritmic-scale/index.js +9 -8
- package/dist/components/charts/logaritmic-scale/logic.js +63 -69
- package/dist/components/charts/multiple-value-axes/index.js +9 -8
- package/dist/components/charts/multiple-value-axes/logic.js +101 -107
- package/dist/components/charts/nested-pie/index.js +9 -8
- package/dist/components/charts/nested-pie/logic.js +62 -68
- package/dist/components/charts/packed-circles/index.js +7 -6
- package/dist/components/charts/packed-circles/logic.js +50 -56
- package/dist/components/charts/pie-chart/index.js +9 -8
- package/dist/components/charts/pie-chart/logic.js +49 -54
- package/dist/components/charts/stacked-area-radar/index.js +8 -7
- package/dist/components/charts/stacked-area-radar/logic.js +113 -118
- package/dist/components/charts/stacked-column-chart/index.js +9 -8
- package/dist/components/charts/stacked-column-chart/logic.js +78 -84
- package/dist/components/charts/xy-chart/index.js +9 -8
- package/dist/components/charts/xy-chart/logic.js +56 -60
- package/dist/components/collapsible-card/index.js +11 -10
- package/dist/components/collapsible-card/styled.js +1 -1
- package/dist/components/color-picker/index.js +7120 -0
- package/dist/components/color-picker/logic.js +18 -0
- package/dist/components/color-picker/styled.js +7 -0
- package/dist/components/confirm/dialog.js +3 -3
- package/dist/components/confirm/index.js +1 -1
- package/dist/components/data-grid/index.js +22 -0
- package/dist/components/data-grid/logic.js +15 -0
- package/dist/components/data-grid/styled.js +20 -0
- package/dist/components/data-map/components/controls/index.js +4 -6
- package/dist/components/data-map/index.js +11 -11
- package/dist/components/data-security-selectors/dissemination-list/index.js +192 -191
- package/dist/components/data-security-selectors/dissemination-list/styled.js +12 -12
- package/dist/components/data-security-selectors/security-level/index.js +18 -15
- package/dist/components/data-security-selectors/security-level/logic.js +18 -63
- package/dist/components/data-security-selectors/security-level/styled.js +23 -17
- package/dist/components/date-picker-with-custom-range/index.js +1 -1
- package/dist/components/date-range-picker/index.js +2748 -0
- package/dist/components/date-range-picker/styled.js +14 -0
- package/dist/components/date-time-picker/index.js +45 -46
- package/dist/components/divider/index.js +11 -11
- package/dist/components/document-viewer/components/action-buttons/index.js +15 -15
- package/dist/components/document-viewer/components/navigation/index.js +9 -9
- package/dist/components/document-viewer/components/viewer/index.js +31 -35
- package/dist/components/document-viewer/index.js +31 -39
- package/dist/components/document-viewer/logic.js +41 -34
- package/dist/components/document-viewer/styled.js +115 -27
- package/dist/components/duration-select/index.js +27 -0
- package/dist/components/duration-select/logic.js +21 -0
- package/dist/components/duration-select/styled.js +26 -0
- package/dist/components/editable-text/index.js +20 -0
- package/dist/components/editable-text/logic.js +18 -0
- package/dist/components/editable-text/styled.js +22 -0
- package/dist/components/geometry-picker/coordinate/index.js +29 -29
- package/dist/components/geometry-picker/edit/index.js +18 -18
- package/dist/components/geometry-picker/geometry/index.js +67 -67
- package/dist/components/geometry-picker/geometry/map-overlay.js +6 -6
- package/dist/components/geometry-picker/index.js +69 -86
- package/dist/components/geometry-picker/kml/index.js +16 -16
- package/dist/components/geometry-picker/logic.js +50 -57
- package/dist/components/geometry-picker/map/index.js +8 -8
- package/dist/components/geometry-picker/parser/coordinate-input/index.js +4 -4
- package/dist/components/geometry-picker/parser/index.js +46 -50
- package/dist/components/geometry-picker/parser/styled.js +22 -4
- package/dist/components/geometry-picker/styled.js +97 -37
- package/dist/components/geometry-picker/wkt/index.js +13 -13
- package/dist/components/heat-map/components/controls/index.js +4 -6
- package/dist/components/heat-map/components/legend/index.js +15 -17
- package/dist/components/heat-map/index.js +7 -7
- package/dist/components/instance-form/components/TopLabelWrapper.js +8 -48
- package/dist/components/instance-form/components/composite-list/index.js +5 -3
- package/dist/components/instance-form/components/composite-matrix/components/editable-table/index.js +83 -74
- package/dist/components/instance-form/components/composite-matrix/components/editor/index.js +45 -66
- package/dist/components/instance-form/components/composite-matrix/components/form/index.js +60 -75
- package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +2425 -2422
- package/dist/components/instance-form/components/composite-matrix/components/table/index.js +33 -52
- package/dist/components/instance-form/components/composite-matrix/index.js +30 -36
- package/dist/components/instance-form/components/policy-list/index.js +47 -81
- package/dist/components/instance-form/components/variable/index.js +6 -9
- package/dist/components/instance-form/components/variables/index.js +48 -55
- package/dist/components/instance-form/helpers.js +9 -0
- package/dist/components/instance-form/index.js +402 -518
- package/dist/components/instance-form/logic.js +115 -0
- package/dist/components/instance-form/styled.js +487 -0
- package/dist/components/instance-hierarchy-table/styled.js +1 -1
- package/dist/components/instance-variable-list/index.js +11 -11
- package/dist/components/map/index.js +28 -6
- package/dist/components/map/styled.js +1 -1
- package/dist/components/notification/index.js +67 -0
- package/dist/components/notification/logic.js +30 -0
- package/dist/components/notification/store.js +23 -0
- package/dist/components/notification/styled.js +52 -0
- package/dist/components/object-profile-card/components/avatar/index.js +9 -10
- package/dist/components/object-profile-card/index.js +19 -20
- package/dist/components/paginated-list/index.js +2 -3
- package/dist/components/placeholder/index.js +10 -0
- package/dist/components/placeholder/logic.js +12 -0
- package/dist/components/placeholder/styled.js +32 -0
- package/dist/components/positional-tooltip/index.js +24 -0
- package/dist/components/positional-tooltip/styled.js +17 -0
- package/dist/components/property-mapping/index.js +204 -423
- package/dist/components/property-mapping/logic.js +156 -0
- package/dist/components/property-mapping/styled.js +199 -0
- package/dist/components/prr-map/components/controls/index.js +4 -6
- package/dist/components/prr-map/components/legend/index.js +26 -28
- package/dist/components/prr-map/index.js +5 -5
- package/dist/components/range-selector/styled.js +1106 -1034
- package/dist/components/raster-grid-map/components/controls/index.js +4 -6
- package/dist/components/raster-grid-map/components/legend/index.js +4 -6
- package/dist/components/raster-grid-map/index.js +5 -5
- package/dist/components/scroll-drag/index.js +22 -0
- package/dist/components/scroll-drag/logic.js +39 -0
- package/dist/components/scroll-drag/styled.js +17 -0
- package/dist/components/search-input/logic.js +35 -33
- package/dist/components/simple-pivot-table/index.js +12 -12
- package/dist/components/sortable-list/index.js +599 -0
- package/dist/components/sortable-list/logic.js +18 -0
- package/dist/components/sortable-list/styled.js +38 -0
- package/dist/components/static-text/index.js +6 -6
- package/dist/components/stats-box/index.js +12 -0
- package/dist/components/stats-box/styled.js +36 -0
- package/dist/components/template-form/components/property-list/index.js +27 -26
- package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
- package/dist/components/template-form/components/property-list/property-list-form.js +758 -12
- package/dist/components/template-form/components/recognition-property-list/index.js +11 -11
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
- package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +24 -22
- package/dist/components/template-form/components/select-icon/index.js +24 -24
- package/dist/components/template-form/helpers.js +17 -0
- package/dist/components/template-form/index.js +270 -308
- package/dist/components/template-form/logic.js +69 -0
- package/dist/components/template-form/styled.js +84 -0
- package/dist/components/text-overflow/index.js +6 -0
- package/dist/components/text-overflow/styled.js +13 -0
- package/dist/components/timeline/index.js +12 -12
- package/dist/components/toggle-view-button/index.js +35 -0
- package/dist/components/toggle-view-button/logic.js +22 -0
- package/dist/components/toggle-view-button/styled.js +11 -0
- package/dist/components/tree-select/index.js +1 -1
- package/dist/components/visually-hidden-input/index.js +4 -0
- package/dist/components/visually-hidden-input/styled.js +18 -0
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/{createSvgIcon-DX-SqL8M.js → createSvgIcon-Ch_cT8az.js} +68 -65
- package/dist/createSvgIcon-DuDuASu1.js +62 -0
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/{dialog-cf4HUXXl.js → dialog-BYRnCztH.js} +30 -29
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/generateUtilityClasses-C3ivN9Ie.js +2973 -0
- package/dist/{helpers-B4UL9NMD.js → helpers-D4uXfBfO.js} +2 -2
- package/dist/index-BtlzPygz.js +470 -0
- package/dist/index-DH6qsPBn.js +153 -0
- package/dist/{index-C8C3YXle.js → index-e9xTIYWt.js} +139 -137
- package/dist/main.d.ts +1066 -328
- package/dist/main.js +165 -130
- package/dist/ownerWindow-wg6foiOE.js +10 -0
- package/dist/setPrototypeOf-NPgp4cYc.js +8 -0
- package/dist/styled-Db1RdcPA.js +323 -0
- package/dist/unsupportedProp-DuqR2hj9.js +36 -0
- package/dist/useFormControl-CatNKXAi.js +10 -0
- package/dist/useId-BW-oWmul.js +19 -0
- package/dist/{useMobilePicker-B-M3dnTn.js → useMobilePicker-CY8ndYRL.js} +4777 -4491
- package/dist/useSlot-B_Q4vnX5.js +42 -0
- package/package.json +15 -7
- package/dist/AccordionSummary-CMg08YSA.js +0 -739
- package/dist/Add-DuVVJeQU.js +0 -380
- package/dist/ButtonBase-sObABYY2.js +0 -965
- package/dist/FormControl-BCurCxRj.js +0 -1294
- package/dist/FormControlLabel-BkRfrhNy.js +0 -601
- package/dist/InputAdornment-C7PEvvYr.js +0 -155
- package/dist/Modal-DlB6GH-f.js +0 -1659
- package/dist/Paper-q9kKjAKx.js +0 -527
- package/dist/TextField-DSDIEEKu.js +0 -3161
- package/dist/assertThisInitialized-BUtkG-md.js +0 -13
- package/dist/capitalize-quqpGCFu.js +0 -9
- package/dist/components/instance-form/components/composite-list/styled.js +0 -73
- package/dist/components/instance-form/components/composite-matrix/components/editor/styled.js +0 -1
- package/dist/components/instance-form/components/composite-matrix/styled.js +0 -69
- package/dist/components/key-protection/index.js +0 -47
- package/dist/components/key-protection/logic.js +0 -40
- package/dist/components/key-protection/styled.js +0 -45
- package/dist/components/key-protection/utils.js +0 -10
- package/dist/createSvgIcon-BM3-TsGy.js +0 -70
- package/dist/index-BMS1Otro.js +0 -183
- package/dist/index-DPKUmQnz.js +0 -501
- package/dist/index-kCJ_Zvl8.js +0 -34
- package/dist/isMuiElement-BkJ72LB3.js +0 -26
- package/dist/property-list-form-DL_dEoNn.js +0 -381
- package/dist/styled-Bsjp3kFh.js +0 -668
- package/dist/unsupportedProp-BND8AB6O.js +0 -25
- package/dist/useId-B4-oF9Mq.js +0 -34
- package/dist/utils-Cxu-fHjQ.js +0 -115
|
@@ -0,0 +1,781 @@
|
|
|
1
|
+
import { a as i, _ as B } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import { r as le } from "./index-DH6qsPBn.js";
|
|
4
|
+
import { P as e } from "./index-C__OZmYy.js";
|
|
5
|
+
import { c as G } from "./clsx-OuTLNxxd.js";
|
|
6
|
+
import { u as pe } from "./useSlot-B_Q4vnX5.js";
|
|
7
|
+
import { g as q, a as F, s as T, u as H, j as ue, c as J } from "./generateUtilityClasses-C3ivN9Ie.js";
|
|
8
|
+
import { jsx as g, jsxs as te } from "react/jsx-runtime";
|
|
9
|
+
import { T as fe, u as me, g as oe, P as ge } from "./Paper-BkQLdsCI.js";
|
|
10
|
+
import { u as be } from "./useControlled-BYdyS7Pn.js";
|
|
11
|
+
import { e as he, u as xe, f as ye, c as Ce } from "./TransitionGroupContext-BDAp2T0O.js";
|
|
12
|
+
import { B as ve } from "./ButtonBase-BEF7oTOe.js";
|
|
13
|
+
function Ee(o) {
|
|
14
|
+
return F("MuiCollapse", o);
|
|
15
|
+
}
|
|
16
|
+
q("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
|
|
17
|
+
const Te = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"], Re = (o) => {
|
|
18
|
+
const {
|
|
19
|
+
orientation: t,
|
|
20
|
+
classes: r
|
|
21
|
+
} = o, s = {
|
|
22
|
+
root: ["root", `${t}`],
|
|
23
|
+
entered: ["entered"],
|
|
24
|
+
hidden: ["hidden"],
|
|
25
|
+
wrapper: ["wrapper", `${t}`],
|
|
26
|
+
wrapperInner: ["wrapperInner", `${t}`]
|
|
27
|
+
};
|
|
28
|
+
return J(s, Ee, r);
|
|
29
|
+
}, we = T("div", {
|
|
30
|
+
name: "MuiCollapse",
|
|
31
|
+
slot: "Root",
|
|
32
|
+
overridesResolver: (o, t) => {
|
|
33
|
+
const {
|
|
34
|
+
ownerState: r
|
|
35
|
+
} = o;
|
|
36
|
+
return [t.root, t[r.orientation], r.state === "entered" && t.entered, r.state === "exited" && !r.in && r.collapsedSize === "0px" && t.hidden];
|
|
37
|
+
}
|
|
38
|
+
})(({
|
|
39
|
+
theme: o,
|
|
40
|
+
ownerState: t
|
|
41
|
+
}) => i({
|
|
42
|
+
height: 0,
|
|
43
|
+
overflow: "hidden",
|
|
44
|
+
transition: o.transitions.create("height")
|
|
45
|
+
}, t.orientation === "horizontal" && {
|
|
46
|
+
height: "auto",
|
|
47
|
+
width: 0,
|
|
48
|
+
transition: o.transitions.create("width")
|
|
49
|
+
}, t.state === "entered" && i({
|
|
50
|
+
height: "auto",
|
|
51
|
+
overflow: "visible"
|
|
52
|
+
}, t.orientation === "horizontal" && {
|
|
53
|
+
width: "auto"
|
|
54
|
+
}), t.state === "exited" && !t.in && t.collapsedSize === "0px" && {
|
|
55
|
+
visibility: "hidden"
|
|
56
|
+
})), Ae = T("div", {
|
|
57
|
+
name: "MuiCollapse",
|
|
58
|
+
slot: "Wrapper",
|
|
59
|
+
overridesResolver: (o, t) => t.wrapper
|
|
60
|
+
})(({
|
|
61
|
+
ownerState: o
|
|
62
|
+
}) => i({
|
|
63
|
+
// Hack to get children with a negative margin to not falsify the height computation.
|
|
64
|
+
display: "flex",
|
|
65
|
+
width: "100%"
|
|
66
|
+
}, o.orientation === "horizontal" && {
|
|
67
|
+
width: "auto",
|
|
68
|
+
height: "100%"
|
|
69
|
+
})), Se = T("div", {
|
|
70
|
+
name: "MuiCollapse",
|
|
71
|
+
slot: "WrapperInner",
|
|
72
|
+
overridesResolver: (o, t) => t.wrapperInner
|
|
73
|
+
})(({
|
|
74
|
+
ownerState: o
|
|
75
|
+
}) => i({
|
|
76
|
+
width: "100%"
|
|
77
|
+
}, o.orientation === "horizontal" && {
|
|
78
|
+
width: "auto",
|
|
79
|
+
height: "100%"
|
|
80
|
+
})), Y = /* @__PURE__ */ a.forwardRef(function(t, r) {
|
|
81
|
+
const s = H({
|
|
82
|
+
props: t,
|
|
83
|
+
name: "MuiCollapse"
|
|
84
|
+
}), {
|
|
85
|
+
addEndListener: c,
|
|
86
|
+
children: u,
|
|
87
|
+
className: f,
|
|
88
|
+
collapsedSize: l = "0px",
|
|
89
|
+
component: v,
|
|
90
|
+
easing: N,
|
|
91
|
+
in: b,
|
|
92
|
+
onEnter: R,
|
|
93
|
+
onEntered: w,
|
|
94
|
+
onEntering: A,
|
|
95
|
+
onExit: P,
|
|
96
|
+
onExited: E,
|
|
97
|
+
onExiting: h,
|
|
98
|
+
orientation: d = "vertical",
|
|
99
|
+
style: $,
|
|
100
|
+
timeout: m = ue.standard,
|
|
101
|
+
// eslint-disable-next-line react/prop-types
|
|
102
|
+
TransitionComponent: j = fe
|
|
103
|
+
} = s, K = B(s, Te), O = i({}, s, {
|
|
104
|
+
orientation: d,
|
|
105
|
+
collapsedSize: l
|
|
106
|
+
}), x = Re(O), I = me(), Q = he(), y = a.useRef(null), V = a.useRef(), D = typeof l == "number" ? `${l}px` : l, S = d === "horizontal", W = S ? "width" : "height", U = a.useRef(null), ne = xe(r, U), M = (n) => (p) => {
|
|
107
|
+
if (n) {
|
|
108
|
+
const C = U.current;
|
|
109
|
+
p === void 0 ? n(C) : n(C, p);
|
|
110
|
+
}
|
|
111
|
+
}, X = () => y.current ? y.current[S ? "clientWidth" : "clientHeight"] : 0, re = M((n, p) => {
|
|
112
|
+
y.current && S && (y.current.style.position = "absolute"), n.style[W] = D, R && R(n, p);
|
|
113
|
+
}), se = M((n, p) => {
|
|
114
|
+
const C = X();
|
|
115
|
+
y.current && S && (y.current.style.position = "");
|
|
116
|
+
const {
|
|
117
|
+
duration: k,
|
|
118
|
+
easing: _
|
|
119
|
+
} = oe({
|
|
120
|
+
style: $,
|
|
121
|
+
timeout: m,
|
|
122
|
+
easing: N
|
|
123
|
+
}, {
|
|
124
|
+
mode: "enter"
|
|
125
|
+
});
|
|
126
|
+
if (m === "auto") {
|
|
127
|
+
const ee = I.transitions.getAutoHeightDuration(C);
|
|
128
|
+
n.style.transitionDuration = `${ee}ms`, V.current = ee;
|
|
129
|
+
} else
|
|
130
|
+
n.style.transitionDuration = typeof k == "string" ? k : `${k}ms`;
|
|
131
|
+
n.style[W] = `${C}px`, n.style.transitionTimingFunction = _, A && A(n, p);
|
|
132
|
+
}), ie = M((n, p) => {
|
|
133
|
+
n.style[W] = "auto", w && w(n, p);
|
|
134
|
+
}), ae = M((n) => {
|
|
135
|
+
n.style[W] = `${X()}px`, P && P(n);
|
|
136
|
+
}), ce = M(E), de = M((n) => {
|
|
137
|
+
const p = X(), {
|
|
138
|
+
duration: C,
|
|
139
|
+
easing: k
|
|
140
|
+
} = oe({
|
|
141
|
+
style: $,
|
|
142
|
+
timeout: m,
|
|
143
|
+
easing: N
|
|
144
|
+
}, {
|
|
145
|
+
mode: "exit"
|
|
146
|
+
});
|
|
147
|
+
if (m === "auto") {
|
|
148
|
+
const _ = I.transitions.getAutoHeightDuration(p);
|
|
149
|
+
n.style.transitionDuration = `${_}ms`, V.current = _;
|
|
150
|
+
} else
|
|
151
|
+
n.style.transitionDuration = typeof C == "string" ? C : `${C}ms`;
|
|
152
|
+
n.style[W] = D, n.style.transitionTimingFunction = k, h && h(n);
|
|
153
|
+
});
|
|
154
|
+
return /* @__PURE__ */ g(j, i({
|
|
155
|
+
in: b,
|
|
156
|
+
onEnter: re,
|
|
157
|
+
onEntered: ie,
|
|
158
|
+
onEntering: se,
|
|
159
|
+
onExit: ae,
|
|
160
|
+
onExited: ce,
|
|
161
|
+
onExiting: de,
|
|
162
|
+
addEndListener: (n) => {
|
|
163
|
+
m === "auto" && Q.start(V.current || 0, n), c && c(U.current, n);
|
|
164
|
+
},
|
|
165
|
+
nodeRef: U,
|
|
166
|
+
timeout: m === "auto" ? null : m
|
|
167
|
+
}, K, {
|
|
168
|
+
children: (n, p) => /* @__PURE__ */ g(we, i({
|
|
169
|
+
as: v,
|
|
170
|
+
className: G(x.root, f, {
|
|
171
|
+
entered: x.entered,
|
|
172
|
+
exited: !b && D === "0px" && x.hidden
|
|
173
|
+
}[n]),
|
|
174
|
+
style: i({
|
|
175
|
+
[S ? "minWidth" : "minHeight"]: D
|
|
176
|
+
}, $),
|
|
177
|
+
ref: ne
|
|
178
|
+
}, p, {
|
|
179
|
+
// `ownerState` is set after `childProps` to override any existing `ownerState` property in `childProps`
|
|
180
|
+
// that might have been forwarded from the Transition component.
|
|
181
|
+
ownerState: i({}, O, {
|
|
182
|
+
state: n
|
|
183
|
+
}),
|
|
184
|
+
children: /* @__PURE__ */ g(Ae, {
|
|
185
|
+
ownerState: i({}, O, {
|
|
186
|
+
state: n
|
|
187
|
+
}),
|
|
188
|
+
className: x.wrapper,
|
|
189
|
+
ref: y,
|
|
190
|
+
children: /* @__PURE__ */ g(Se, {
|
|
191
|
+
ownerState: i({}, O, {
|
|
192
|
+
state: n
|
|
193
|
+
}),
|
|
194
|
+
className: x.wrapperInner,
|
|
195
|
+
children: u
|
|
196
|
+
})
|
|
197
|
+
})
|
|
198
|
+
}))
|
|
199
|
+
}));
|
|
200
|
+
});
|
|
201
|
+
process.env.NODE_ENV !== "production" && (Y.propTypes = {
|
|
202
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
203
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
204
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
205
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
206
|
+
/**
|
|
207
|
+
* Add a custom transition end trigger. Called with the transitioning DOM
|
|
208
|
+
* node and a done callback. Allows for more fine grained transition end
|
|
209
|
+
* logic. Note: Timeouts are still used as a fallback if provided.
|
|
210
|
+
*/
|
|
211
|
+
addEndListener: e.func,
|
|
212
|
+
/**
|
|
213
|
+
* The content node to be collapsed.
|
|
214
|
+
*/
|
|
215
|
+
children: e.node,
|
|
216
|
+
/**
|
|
217
|
+
* Override or extend the styles applied to the component.
|
|
218
|
+
*/
|
|
219
|
+
classes: e.object,
|
|
220
|
+
/**
|
|
221
|
+
* @ignore
|
|
222
|
+
*/
|
|
223
|
+
className: e.string,
|
|
224
|
+
/**
|
|
225
|
+
* The width (horizontal) or height (vertical) of the container when collapsed.
|
|
226
|
+
* @default '0px'
|
|
227
|
+
*/
|
|
228
|
+
collapsedSize: e.oneOfType([e.number, e.string]),
|
|
229
|
+
/**
|
|
230
|
+
* The component used for the root node.
|
|
231
|
+
* Either a string to use a HTML element or a component.
|
|
232
|
+
*/
|
|
233
|
+
component: ye,
|
|
234
|
+
/**
|
|
235
|
+
* The transition timing function.
|
|
236
|
+
* You may specify a single easing or a object containing enter and exit values.
|
|
237
|
+
*/
|
|
238
|
+
easing: e.oneOfType([e.shape({
|
|
239
|
+
enter: e.string,
|
|
240
|
+
exit: e.string
|
|
241
|
+
}), e.string]),
|
|
242
|
+
/**
|
|
243
|
+
* If `true`, the component will transition in.
|
|
244
|
+
*/
|
|
245
|
+
in: e.bool,
|
|
246
|
+
/**
|
|
247
|
+
* @ignore
|
|
248
|
+
*/
|
|
249
|
+
onEnter: e.func,
|
|
250
|
+
/**
|
|
251
|
+
* @ignore
|
|
252
|
+
*/
|
|
253
|
+
onEntered: e.func,
|
|
254
|
+
/**
|
|
255
|
+
* @ignore
|
|
256
|
+
*/
|
|
257
|
+
onEntering: e.func,
|
|
258
|
+
/**
|
|
259
|
+
* @ignore
|
|
260
|
+
*/
|
|
261
|
+
onExit: e.func,
|
|
262
|
+
/**
|
|
263
|
+
* @ignore
|
|
264
|
+
*/
|
|
265
|
+
onExited: e.func,
|
|
266
|
+
/**
|
|
267
|
+
* @ignore
|
|
268
|
+
*/
|
|
269
|
+
onExiting: e.func,
|
|
270
|
+
/**
|
|
271
|
+
* The transition orientation.
|
|
272
|
+
* @default 'vertical'
|
|
273
|
+
*/
|
|
274
|
+
orientation: e.oneOf(["horizontal", "vertical"]),
|
|
275
|
+
/**
|
|
276
|
+
* @ignore
|
|
277
|
+
*/
|
|
278
|
+
style: e.object,
|
|
279
|
+
/**
|
|
280
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
281
|
+
*/
|
|
282
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
283
|
+
/**
|
|
284
|
+
* The duration for the transition, in milliseconds.
|
|
285
|
+
* You may specify a single timeout for all transitions, or individually with an object.
|
|
286
|
+
*
|
|
287
|
+
* Set to 'auto' to automatically calculate transition time based on height.
|
|
288
|
+
* @default duration.standard
|
|
289
|
+
*/
|
|
290
|
+
timeout: e.oneOfType([e.oneOf(["auto"]), e.number, e.shape({
|
|
291
|
+
appear: e.number,
|
|
292
|
+
enter: e.number,
|
|
293
|
+
exit: e.number
|
|
294
|
+
})])
|
|
295
|
+
});
|
|
296
|
+
Y.muiSupportAuto = !0;
|
|
297
|
+
const Z = /* @__PURE__ */ a.createContext({});
|
|
298
|
+
process.env.NODE_ENV !== "production" && (Z.displayName = "AccordionContext");
|
|
299
|
+
function Ne(o) {
|
|
300
|
+
return F("MuiAccordion", o);
|
|
301
|
+
}
|
|
302
|
+
const L = q("MuiAccordion", ["root", "rounded", "expanded", "disabled", "gutters", "region"]), Pe = ["children", "className", "defaultExpanded", "disabled", "disableGutters", "expanded", "onChange", "square", "slots", "slotProps", "TransitionComponent", "TransitionProps"], $e = (o) => {
|
|
303
|
+
const {
|
|
304
|
+
classes: t,
|
|
305
|
+
square: r,
|
|
306
|
+
expanded: s,
|
|
307
|
+
disabled: c,
|
|
308
|
+
disableGutters: u
|
|
309
|
+
} = o;
|
|
310
|
+
return J({
|
|
311
|
+
root: ["root", !r && "rounded", s && "expanded", c && "disabled", !u && "gutters"],
|
|
312
|
+
region: ["region"]
|
|
313
|
+
}, Ne, t);
|
|
314
|
+
}, Oe = T(ge, {
|
|
315
|
+
name: "MuiAccordion",
|
|
316
|
+
slot: "Root",
|
|
317
|
+
overridesResolver: (o, t) => {
|
|
318
|
+
const {
|
|
319
|
+
ownerState: r
|
|
320
|
+
} = o;
|
|
321
|
+
return [{
|
|
322
|
+
[`& .${L.region}`]: t.region
|
|
323
|
+
}, t.root, !r.square && t.rounded, !r.disableGutters && t.gutters];
|
|
324
|
+
}
|
|
325
|
+
})(({
|
|
326
|
+
theme: o
|
|
327
|
+
}) => {
|
|
328
|
+
const t = {
|
|
329
|
+
duration: o.transitions.duration.shortest
|
|
330
|
+
};
|
|
331
|
+
return {
|
|
332
|
+
position: "relative",
|
|
333
|
+
transition: o.transitions.create(["margin"], t),
|
|
334
|
+
overflowAnchor: "none",
|
|
335
|
+
// Keep the same scrolling position
|
|
336
|
+
"&::before": {
|
|
337
|
+
position: "absolute",
|
|
338
|
+
left: 0,
|
|
339
|
+
top: -1,
|
|
340
|
+
right: 0,
|
|
341
|
+
height: 1,
|
|
342
|
+
content: '""',
|
|
343
|
+
opacity: 1,
|
|
344
|
+
backgroundColor: (o.vars || o).palette.divider,
|
|
345
|
+
transition: o.transitions.create(["opacity", "background-color"], t)
|
|
346
|
+
},
|
|
347
|
+
"&:first-of-type": {
|
|
348
|
+
"&::before": {
|
|
349
|
+
display: "none"
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
[`&.${L.expanded}`]: {
|
|
353
|
+
"&::before": {
|
|
354
|
+
opacity: 0
|
|
355
|
+
},
|
|
356
|
+
"&:first-of-type": {
|
|
357
|
+
marginTop: 0
|
|
358
|
+
},
|
|
359
|
+
"&:last-of-type": {
|
|
360
|
+
marginBottom: 0
|
|
361
|
+
},
|
|
362
|
+
"& + &": {
|
|
363
|
+
"&::before": {
|
|
364
|
+
display: "none"
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
[`&.${L.disabled}`]: {
|
|
369
|
+
backgroundColor: (o.vars || o).palette.action.disabledBackground
|
|
370
|
+
}
|
|
371
|
+
};
|
|
372
|
+
}, ({
|
|
373
|
+
theme: o
|
|
374
|
+
}) => ({
|
|
375
|
+
variants: [{
|
|
376
|
+
props: (t) => !t.square,
|
|
377
|
+
style: {
|
|
378
|
+
borderRadius: 0,
|
|
379
|
+
"&:first-of-type": {
|
|
380
|
+
borderTopLeftRadius: (o.vars || o).shape.borderRadius,
|
|
381
|
+
borderTopRightRadius: (o.vars || o).shape.borderRadius
|
|
382
|
+
},
|
|
383
|
+
"&:last-of-type": {
|
|
384
|
+
borderBottomLeftRadius: (o.vars || o).shape.borderRadius,
|
|
385
|
+
borderBottomRightRadius: (o.vars || o).shape.borderRadius,
|
|
386
|
+
// Fix a rendering issue on Edge
|
|
387
|
+
"@supports (-ms-ime-align: auto)": {
|
|
388
|
+
borderBottomLeftRadius: 0,
|
|
389
|
+
borderBottomRightRadius: 0
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
}, {
|
|
394
|
+
props: (t) => !t.disableGutters,
|
|
395
|
+
style: {
|
|
396
|
+
[`&.${L.expanded}`]: {
|
|
397
|
+
margin: "16px 0"
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
}]
|
|
401
|
+
})), De = /* @__PURE__ */ a.forwardRef(function(t, r) {
|
|
402
|
+
const s = H({
|
|
403
|
+
props: t,
|
|
404
|
+
name: "MuiAccordion"
|
|
405
|
+
}), {
|
|
406
|
+
children: c,
|
|
407
|
+
className: u,
|
|
408
|
+
defaultExpanded: f = !1,
|
|
409
|
+
disabled: l = !1,
|
|
410
|
+
disableGutters: v = !1,
|
|
411
|
+
expanded: N,
|
|
412
|
+
onChange: b,
|
|
413
|
+
square: R = !1,
|
|
414
|
+
slots: w = {},
|
|
415
|
+
slotProps: A = {},
|
|
416
|
+
TransitionComponent: P,
|
|
417
|
+
TransitionProps: E
|
|
418
|
+
} = s, h = B(s, Pe), [d, $] = be({
|
|
419
|
+
controlled: N,
|
|
420
|
+
default: f,
|
|
421
|
+
name: "Accordion",
|
|
422
|
+
state: "expanded"
|
|
423
|
+
}), m = a.useCallback((S) => {
|
|
424
|
+
$(!d), b && b(S, !d);
|
|
425
|
+
}, [d, b, $]), [j, ...K] = a.Children.toArray(c), O = a.useMemo(() => ({
|
|
426
|
+
expanded: d,
|
|
427
|
+
disabled: l,
|
|
428
|
+
disableGutters: v,
|
|
429
|
+
toggle: m
|
|
430
|
+
}), [d, l, v, m]), x = i({}, s, {
|
|
431
|
+
square: R,
|
|
432
|
+
disabled: l,
|
|
433
|
+
disableGutters: v,
|
|
434
|
+
expanded: d
|
|
435
|
+
}), I = $e(x), Q = i({
|
|
436
|
+
transition: P
|
|
437
|
+
}, w), y = i({
|
|
438
|
+
transition: E
|
|
439
|
+
}, A), [V, D] = pe("transition", {
|
|
440
|
+
elementType: Y,
|
|
441
|
+
externalForwardedProps: {
|
|
442
|
+
slots: Q,
|
|
443
|
+
slotProps: y
|
|
444
|
+
},
|
|
445
|
+
ownerState: x
|
|
446
|
+
});
|
|
447
|
+
return /* @__PURE__ */ te(Oe, i({
|
|
448
|
+
className: G(I.root, u),
|
|
449
|
+
ref: r,
|
|
450
|
+
ownerState: x,
|
|
451
|
+
square: R
|
|
452
|
+
}, h, {
|
|
453
|
+
children: [/* @__PURE__ */ g(Z.Provider, {
|
|
454
|
+
value: O,
|
|
455
|
+
children: j
|
|
456
|
+
}), /* @__PURE__ */ g(V, i({
|
|
457
|
+
in: d,
|
|
458
|
+
timeout: "auto"
|
|
459
|
+
}, D, {
|
|
460
|
+
children: /* @__PURE__ */ g("div", {
|
|
461
|
+
"aria-labelledby": j.props.id,
|
|
462
|
+
id: j.props["aria-controls"],
|
|
463
|
+
role: "region",
|
|
464
|
+
className: I.region,
|
|
465
|
+
children: K
|
|
466
|
+
})
|
|
467
|
+
}))]
|
|
468
|
+
}));
|
|
469
|
+
});
|
|
470
|
+
process.env.NODE_ENV !== "production" && (De.propTypes = {
|
|
471
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
472
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
473
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
474
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
475
|
+
/**
|
|
476
|
+
* The content of the component.
|
|
477
|
+
*/
|
|
478
|
+
children: Ce(e.node.isRequired, (o) => {
|
|
479
|
+
const t = a.Children.toArray(o.children)[0];
|
|
480
|
+
return le.isFragment(t) ? new Error("MUI: The Accordion doesn't accept a Fragment as a child. Consider providing an array instead.") : /* @__PURE__ */ a.isValidElement(t) ? null : new Error("MUI: Expected the first child of Accordion to be a valid element.");
|
|
481
|
+
}),
|
|
482
|
+
/**
|
|
483
|
+
* Override or extend the styles applied to the component.
|
|
484
|
+
*/
|
|
485
|
+
classes: e.object,
|
|
486
|
+
/**
|
|
487
|
+
* @ignore
|
|
488
|
+
*/
|
|
489
|
+
className: e.string,
|
|
490
|
+
/**
|
|
491
|
+
* If `true`, expands the accordion by default.
|
|
492
|
+
* @default false
|
|
493
|
+
*/
|
|
494
|
+
defaultExpanded: e.bool,
|
|
495
|
+
/**
|
|
496
|
+
* If `true`, the component is disabled.
|
|
497
|
+
* @default false
|
|
498
|
+
*/
|
|
499
|
+
disabled: e.bool,
|
|
500
|
+
/**
|
|
501
|
+
* If `true`, it removes the margin between two expanded accordion items and the increase of height.
|
|
502
|
+
* @default false
|
|
503
|
+
*/
|
|
504
|
+
disableGutters: e.bool,
|
|
505
|
+
/**
|
|
506
|
+
* If `true`, expands the accordion, otherwise collapse it.
|
|
507
|
+
* Setting this prop enables control over the accordion.
|
|
508
|
+
*/
|
|
509
|
+
expanded: e.bool,
|
|
510
|
+
/**
|
|
511
|
+
* Callback fired when the expand/collapse state is changed.
|
|
512
|
+
*
|
|
513
|
+
* @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
|
514
|
+
* @param {boolean} expanded The `expanded` state of the accordion.
|
|
515
|
+
*/
|
|
516
|
+
onChange: e.func,
|
|
517
|
+
/**
|
|
518
|
+
* The props used for each slot inside.
|
|
519
|
+
* @default {}
|
|
520
|
+
*/
|
|
521
|
+
slotProps: e.shape({
|
|
522
|
+
transition: e.oneOfType([e.func, e.object])
|
|
523
|
+
}),
|
|
524
|
+
/**
|
|
525
|
+
* The components used for each slot inside.
|
|
526
|
+
* @default {}
|
|
527
|
+
*/
|
|
528
|
+
slots: e.shape({
|
|
529
|
+
transition: e.elementType
|
|
530
|
+
}),
|
|
531
|
+
/**
|
|
532
|
+
* If `true`, rounded corners are disabled.
|
|
533
|
+
* @default false
|
|
534
|
+
*/
|
|
535
|
+
square: e.bool,
|
|
536
|
+
/**
|
|
537
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
538
|
+
*/
|
|
539
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
|
540
|
+
/**
|
|
541
|
+
* The component used for the transition.
|
|
542
|
+
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
|
543
|
+
* @deprecated Use `slots.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
544
|
+
*/
|
|
545
|
+
TransitionComponent: e.elementType,
|
|
546
|
+
/**
|
|
547
|
+
* Props applied to the transition element.
|
|
548
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
549
|
+
* @deprecated Use `slotProps.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
550
|
+
*/
|
|
551
|
+
TransitionProps: e.object
|
|
552
|
+
});
|
|
553
|
+
function Me(o) {
|
|
554
|
+
return F("MuiAccordionDetails", o);
|
|
555
|
+
}
|
|
556
|
+
q("MuiAccordionDetails", ["root"]);
|
|
557
|
+
const ze = ["className"], je = (o) => {
|
|
558
|
+
const {
|
|
559
|
+
classes: t
|
|
560
|
+
} = o;
|
|
561
|
+
return J({
|
|
562
|
+
root: ["root"]
|
|
563
|
+
}, Me, t);
|
|
564
|
+
}, Ie = T("div", {
|
|
565
|
+
name: "MuiAccordionDetails",
|
|
566
|
+
slot: "Root",
|
|
567
|
+
overridesResolver: (o, t) => t.root
|
|
568
|
+
})(({
|
|
569
|
+
theme: o
|
|
570
|
+
}) => ({
|
|
571
|
+
padding: o.spacing(1, 2, 2)
|
|
572
|
+
})), Ve = /* @__PURE__ */ a.forwardRef(function(t, r) {
|
|
573
|
+
const s = H({
|
|
574
|
+
props: t,
|
|
575
|
+
name: "MuiAccordionDetails"
|
|
576
|
+
}), {
|
|
577
|
+
className: c
|
|
578
|
+
} = s, u = B(s, ze), f = s, l = je(f);
|
|
579
|
+
return /* @__PURE__ */ g(Ie, i({
|
|
580
|
+
className: G(l.root, c),
|
|
581
|
+
ref: r,
|
|
582
|
+
ownerState: f
|
|
583
|
+
}, u));
|
|
584
|
+
});
|
|
585
|
+
process.env.NODE_ENV !== "production" && (Ve.propTypes = {
|
|
586
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
587
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
588
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
589
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
590
|
+
/**
|
|
591
|
+
* The content of the component.
|
|
592
|
+
*/
|
|
593
|
+
children: e.node,
|
|
594
|
+
/**
|
|
595
|
+
* Override or extend the styles applied to the component.
|
|
596
|
+
*/
|
|
597
|
+
classes: e.object,
|
|
598
|
+
/**
|
|
599
|
+
* @ignore
|
|
600
|
+
*/
|
|
601
|
+
className: e.string,
|
|
602
|
+
/**
|
|
603
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
604
|
+
*/
|
|
605
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
606
|
+
});
|
|
607
|
+
function We(o) {
|
|
608
|
+
return F("MuiAccordionSummary", o);
|
|
609
|
+
}
|
|
610
|
+
const z = q("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disabled", "gutters", "contentGutters", "content", "expandIconWrapper"]), ke = ["children", "className", "expandIcon", "focusVisibleClassName", "onClick"], Ge = (o) => {
|
|
611
|
+
const {
|
|
612
|
+
classes: t,
|
|
613
|
+
expanded: r,
|
|
614
|
+
disabled: s,
|
|
615
|
+
disableGutters: c
|
|
616
|
+
} = o;
|
|
617
|
+
return J({
|
|
618
|
+
root: ["root", r && "expanded", s && "disabled", !c && "gutters"],
|
|
619
|
+
focusVisible: ["focusVisible"],
|
|
620
|
+
content: ["content", r && "expanded", !c && "contentGutters"],
|
|
621
|
+
expandIconWrapper: ["expandIconWrapper", r && "expanded"]
|
|
622
|
+
}, We, t);
|
|
623
|
+
}, Ue = T(ve, {
|
|
624
|
+
name: "MuiAccordionSummary",
|
|
625
|
+
slot: "Root",
|
|
626
|
+
overridesResolver: (o, t) => t.root
|
|
627
|
+
})(({
|
|
628
|
+
theme: o
|
|
629
|
+
}) => {
|
|
630
|
+
const t = {
|
|
631
|
+
duration: o.transitions.duration.shortest
|
|
632
|
+
};
|
|
633
|
+
return {
|
|
634
|
+
display: "flex",
|
|
635
|
+
minHeight: 48,
|
|
636
|
+
padding: o.spacing(0, 2),
|
|
637
|
+
transition: o.transitions.create(["min-height", "background-color"], t),
|
|
638
|
+
[`&.${z.focusVisible}`]: {
|
|
639
|
+
backgroundColor: (o.vars || o).palette.action.focus
|
|
640
|
+
},
|
|
641
|
+
[`&.${z.disabled}`]: {
|
|
642
|
+
opacity: (o.vars || o).palette.action.disabledOpacity
|
|
643
|
+
},
|
|
644
|
+
[`&:hover:not(.${z.disabled})`]: {
|
|
645
|
+
cursor: "pointer"
|
|
646
|
+
},
|
|
647
|
+
variants: [{
|
|
648
|
+
props: (r) => !r.disableGutters,
|
|
649
|
+
style: {
|
|
650
|
+
[`&.${z.expanded}`]: {
|
|
651
|
+
minHeight: 64
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
}]
|
|
655
|
+
};
|
|
656
|
+
}), _e = T("div", {
|
|
657
|
+
name: "MuiAccordionSummary",
|
|
658
|
+
slot: "Content",
|
|
659
|
+
overridesResolver: (o, t) => t.content
|
|
660
|
+
})(({
|
|
661
|
+
theme: o
|
|
662
|
+
}) => ({
|
|
663
|
+
display: "flex",
|
|
664
|
+
flexGrow: 1,
|
|
665
|
+
margin: "12px 0",
|
|
666
|
+
variants: [{
|
|
667
|
+
props: (t) => !t.disableGutters,
|
|
668
|
+
style: {
|
|
669
|
+
transition: o.transitions.create(["margin"], {
|
|
670
|
+
duration: o.transitions.duration.shortest
|
|
671
|
+
}),
|
|
672
|
+
[`&.${z.expanded}`]: {
|
|
673
|
+
margin: "20px 0"
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
}]
|
|
677
|
+
})), Le = T("div", {
|
|
678
|
+
name: "MuiAccordionSummary",
|
|
679
|
+
slot: "ExpandIconWrapper",
|
|
680
|
+
overridesResolver: (o, t) => t.expandIconWrapper
|
|
681
|
+
})(({
|
|
682
|
+
theme: o
|
|
683
|
+
}) => ({
|
|
684
|
+
display: "flex",
|
|
685
|
+
color: (o.vars || o).palette.action.active,
|
|
686
|
+
transform: "rotate(0deg)",
|
|
687
|
+
transition: o.transitions.create("transform", {
|
|
688
|
+
duration: o.transitions.duration.shortest
|
|
689
|
+
}),
|
|
690
|
+
[`&.${z.expanded}`]: {
|
|
691
|
+
transform: "rotate(180deg)"
|
|
692
|
+
}
|
|
693
|
+
})), Be = /* @__PURE__ */ a.forwardRef(function(t, r) {
|
|
694
|
+
const s = H({
|
|
695
|
+
props: t,
|
|
696
|
+
name: "MuiAccordionSummary"
|
|
697
|
+
}), {
|
|
698
|
+
children: c,
|
|
699
|
+
className: u,
|
|
700
|
+
expandIcon: f,
|
|
701
|
+
focusVisibleClassName: l,
|
|
702
|
+
onClick: v
|
|
703
|
+
} = s, N = B(s, ke), {
|
|
704
|
+
disabled: b = !1,
|
|
705
|
+
disableGutters: R,
|
|
706
|
+
expanded: w,
|
|
707
|
+
toggle: A
|
|
708
|
+
} = a.useContext(Z), P = (d) => {
|
|
709
|
+
A && A(d), v && v(d);
|
|
710
|
+
}, E = i({}, s, {
|
|
711
|
+
expanded: w,
|
|
712
|
+
disabled: b,
|
|
713
|
+
disableGutters: R
|
|
714
|
+
}), h = Ge(E);
|
|
715
|
+
return /* @__PURE__ */ te(Ue, i({
|
|
716
|
+
focusRipple: !1,
|
|
717
|
+
disableRipple: !0,
|
|
718
|
+
disabled: b,
|
|
719
|
+
component: "div",
|
|
720
|
+
"aria-expanded": w,
|
|
721
|
+
className: G(h.root, u),
|
|
722
|
+
focusVisibleClassName: G(h.focusVisible, l),
|
|
723
|
+
onClick: P,
|
|
724
|
+
ref: r,
|
|
725
|
+
ownerState: E
|
|
726
|
+
}, N, {
|
|
727
|
+
children: [/* @__PURE__ */ g(_e, {
|
|
728
|
+
className: h.content,
|
|
729
|
+
ownerState: E,
|
|
730
|
+
children: c
|
|
731
|
+
}), f && /* @__PURE__ */ g(Le, {
|
|
732
|
+
className: h.expandIconWrapper,
|
|
733
|
+
ownerState: E,
|
|
734
|
+
children: f
|
|
735
|
+
})]
|
|
736
|
+
}));
|
|
737
|
+
});
|
|
738
|
+
process.env.NODE_ENV !== "production" && (Be.propTypes = {
|
|
739
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
740
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
741
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
742
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
743
|
+
/**
|
|
744
|
+
* The content of the component.
|
|
745
|
+
*/
|
|
746
|
+
children: e.node,
|
|
747
|
+
/**
|
|
748
|
+
* Override or extend the styles applied to the component.
|
|
749
|
+
*/
|
|
750
|
+
classes: e.object,
|
|
751
|
+
/**
|
|
752
|
+
* @ignore
|
|
753
|
+
*/
|
|
754
|
+
className: e.string,
|
|
755
|
+
/**
|
|
756
|
+
* The icon to display as the expand indicator.
|
|
757
|
+
*/
|
|
758
|
+
expandIcon: e.node,
|
|
759
|
+
/**
|
|
760
|
+
* This prop can help identify which element has keyboard focus.
|
|
761
|
+
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
762
|
+
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
763
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
764
|
+
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
765
|
+
* if needed.
|
|
766
|
+
*/
|
|
767
|
+
focusVisibleClassName: e.string,
|
|
768
|
+
/**
|
|
769
|
+
* @ignore
|
|
770
|
+
*/
|
|
771
|
+
onClick: e.func,
|
|
772
|
+
/**
|
|
773
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
774
|
+
*/
|
|
775
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
776
|
+
});
|
|
777
|
+
export {
|
|
778
|
+
De as A,
|
|
779
|
+
Be as a,
|
|
780
|
+
Ve as b
|
|
781
|
+
};
|