@solostylist/ui-kit 1.0.90 → 1.0.91
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/s-accordion/s-accordion.js +19 -18
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import { b as xo, u as ho, e as bo, d as I, c as To, B as Co } from "../ButtonBa
|
|
|
6
6
|
import { g as X } from "../generateUtilityClasses-BtVDwGrk.js";
|
|
7
7
|
import { g as Y } from "../colorManipulator-ep5lERxB.js";
|
|
8
8
|
import { u as So } from "../useControlled-nm4pBabJ.js";
|
|
9
|
-
import { T as
|
|
9
|
+
import { T as vo, u as Eo, g as ro, P as wo } from "../Paper-CH6cuu9i.js";
|
|
10
10
|
import { S as Ro } from "../Stack-CIrlOUXL.js";
|
|
11
11
|
import { T as Ao } from "../Typography-D-VP4V1G.js";
|
|
12
12
|
const jo = mo(/* @__PURE__ */ s.jsx("path", {
|
|
@@ -117,7 +117,7 @@ const No = (e) => {
|
|
|
117
117
|
collapsedSize: f = "0px",
|
|
118
118
|
component: S,
|
|
119
119
|
easing: $,
|
|
120
|
-
in:
|
|
120
|
+
in: v,
|
|
121
121
|
onEnter: A,
|
|
122
122
|
onEntered: j,
|
|
123
123
|
onEntering: z,
|
|
@@ -128,13 +128,13 @@ const No = (e) => {
|
|
|
128
128
|
style: m,
|
|
129
129
|
timeout: d = go.standard,
|
|
130
130
|
// eslint-disable-next-line react/prop-types
|
|
131
|
-
TransitionComponent: N =
|
|
131
|
+
TransitionComponent: N = vo,
|
|
132
132
|
...G
|
|
133
|
-
} = i,
|
|
133
|
+
} = i, E = {
|
|
134
134
|
...i,
|
|
135
135
|
orientation: c,
|
|
136
136
|
collapsedSize: f
|
|
137
|
-
}, u = No(
|
|
137
|
+
}, u = No(E), w = Eo(), U = xo(), a = l.useRef(null), g = l.useRef(), C = typeof f == "number" ? `${f}px` : f, O = c === "horizontal", M = O ? "width" : "height", V = l.useRef(null), Z = ho(r, V), R = (n) => (y) => {
|
|
138
138
|
if (n) {
|
|
139
139
|
const x = V.current;
|
|
140
140
|
y === void 0 ? n(x) : n(x, y);
|
|
@@ -185,7 +185,7 @@ const No = (e) => {
|
|
|
185
185
|
d === "auto" && U.start(g.current || 0, n), p && p(V.current, n);
|
|
186
186
|
};
|
|
187
187
|
return /* @__PURE__ */ s.jsx(N, {
|
|
188
|
-
in:
|
|
188
|
+
in: v,
|
|
189
189
|
onEnter: oo,
|
|
190
190
|
onEntered: co,
|
|
191
191
|
onEntering: eo,
|
|
@@ -203,7 +203,7 @@ const No = (e) => {
|
|
|
203
203
|
as: S,
|
|
204
204
|
className: L(u.root, b, {
|
|
205
205
|
entered: u.entered,
|
|
206
|
-
exited: !
|
|
206
|
+
exited: !v && C === "0px" && u.hidden
|
|
207
207
|
}[n]),
|
|
208
208
|
style: {
|
|
209
209
|
[O ? "minWidth" : "minHeight"]: C,
|
|
@@ -211,20 +211,20 @@ const No = (e) => {
|
|
|
211
211
|
},
|
|
212
212
|
ref: Z,
|
|
213
213
|
ownerState: {
|
|
214
|
-
...
|
|
214
|
+
...E,
|
|
215
215
|
state: n
|
|
216
216
|
},
|
|
217
217
|
...x,
|
|
218
218
|
children: /* @__PURE__ */ s.jsx(Mo, {
|
|
219
219
|
ownerState: {
|
|
220
|
-
...
|
|
220
|
+
...E,
|
|
221
221
|
state: n
|
|
222
222
|
},
|
|
223
223
|
className: u.wrapper,
|
|
224
224
|
ref: a,
|
|
225
225
|
children: /* @__PURE__ */ s.jsx(Io, {
|
|
226
226
|
ownerState: {
|
|
227
|
-
...
|
|
227
|
+
...E,
|
|
228
228
|
state: n
|
|
229
229
|
},
|
|
230
230
|
className: u.wrapperInner,
|
|
@@ -454,7 +454,7 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
454
454
|
disabled: f = !1,
|
|
455
455
|
disableGutters: S = !1,
|
|
456
456
|
expanded: $,
|
|
457
|
-
onChange:
|
|
457
|
+
onChange: v,
|
|
458
458
|
square: A = !1,
|
|
459
459
|
slots: j = {},
|
|
460
460
|
slotProps: z = {},
|
|
@@ -467,8 +467,8 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
467
467
|
name: "Accordion",
|
|
468
468
|
state: "expanded"
|
|
469
469
|
}), d = l.useCallback((eo) => {
|
|
470
|
-
m(!c),
|
|
471
|
-
}, [c,
|
|
470
|
+
m(!c), v && v(eo, !c);
|
|
471
|
+
}, [c, v, m]), [N, ...G] = l.Children.toArray(p), E = l.useMemo(() => ({
|
|
472
472
|
expanded: c,
|
|
473
473
|
disabled: f,
|
|
474
474
|
disableGutters: S,
|
|
@@ -526,7 +526,7 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
526
526
|
children: [/* @__PURE__ */ s.jsx(M, {
|
|
527
527
|
...V,
|
|
528
528
|
children: /* @__PURE__ */ s.jsx(to.Provider, {
|
|
529
|
-
value:
|
|
529
|
+
value: E,
|
|
530
530
|
children: N
|
|
531
531
|
})
|
|
532
532
|
}), /* @__PURE__ */ s.jsx(Z, {
|
|
@@ -780,7 +780,7 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
780
780
|
focusVisibleClassName: f,
|
|
781
781
|
onClick: S,
|
|
782
782
|
slots: $,
|
|
783
|
-
slotProps:
|
|
783
|
+
slotProps: v,
|
|
784
784
|
...A
|
|
785
785
|
} = i, {
|
|
786
786
|
disabled: j = !1,
|
|
@@ -796,7 +796,7 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
796
796
|
disableGutters: z
|
|
797
797
|
}, m = Ho(c), d = {
|
|
798
798
|
slots: $,
|
|
799
|
-
slotProps:
|
|
799
|
+
slotProps: v
|
|
800
800
|
}, [N, G] = I("root", {
|
|
801
801
|
ref: r,
|
|
802
802
|
shouldForwardComponentProp: !0,
|
|
@@ -821,7 +821,7 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
821
821
|
(C = a.onClick) == null || C.call(a, g), k(g);
|
|
822
822
|
}
|
|
823
823
|
})
|
|
824
|
-
}), [
|
|
824
|
+
}), [E, u] = I("content", {
|
|
825
825
|
className: m.content,
|
|
826
826
|
elementType: Lo,
|
|
827
827
|
externalForwardedProps: d,
|
|
@@ -834,7 +834,7 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
834
834
|
});
|
|
835
835
|
return /* @__PURE__ */ s.jsxs(N, {
|
|
836
836
|
...G,
|
|
837
|
-
children: [/* @__PURE__ */ s.jsx(
|
|
837
|
+
children: [/* @__PURE__ */ s.jsx(E, {
|
|
838
838
|
...u,
|
|
839
839
|
children: p
|
|
840
840
|
}), b && /* @__PURE__ */ s.jsx(w, {
|
|
@@ -908,6 +908,7 @@ const ne = ({ title: e, children: t, startIcon: r, defaultExpanded: i = !1 }) =>
|
|
|
908
908
|
borderRadius: 1,
|
|
909
909
|
border: "1px solid var(--s-palette-divider) !important"
|
|
910
910
|
},
|
|
911
|
+
elevation: 0,
|
|
911
912
|
children: [
|
|
912
913
|
/* @__PURE__ */ s.jsx(ao, { expandIcon: /* @__PURE__ */ s.jsx(jo, {}), children: /* @__PURE__ */ s.jsxs(Ro, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
913
914
|
r && /* @__PURE__ */ s.jsx("span", { children: r }),
|