@solostylist/ui-kit 1.0.196 → 1.0.198
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-JWPHrR6I.js → ArrowUpward-D8eqD-si.js} +1 -1
- package/dist/{Box-p3bpOtdn.js → Box-BkXoTbe8.js} +3 -3
- package/dist/{ButtonBase-PbSTzuUP.js → ButtonBase-D73M0QY5.js} +7 -7
- package/dist/{ChevronLeft-BJjuFNNQ.js → ChevronLeft-BmgmPHp9.js} +1 -1
- package/dist/{ChevronRight-5ZX3FodP.js → ChevronRight-DbWSr8yz.js} +1 -1
- package/dist/{Close-C-pCw-CD.js → Close-lHCUMitI.js} +1 -1
- package/dist/{ContentCopy-CNxsEhmq.js → ContentCopy-D4SuJd86.js} +1 -1
- package/dist/{DefaultPropsProvider-2MEHB2yv.js → DefaultPropsProvider-DPuuPIbS.js} +2 -2
- package/dist/{Download-D97XSAig.js → Download-BoRQUwCf.js} +1 -1
- package/dist/{ExpandMore-CTZrSZlF.js → ExpandMore-C7yRQv1-.js} +1 -1
- package/dist/{Favorite-Cvjg7GqN.js → Favorite-Bz_HcMgN.js} +1 -1
- package/dist/{Menu-_ZW9WiF2.js → Menu-GVFDMHCN.js} +137 -131
- package/dist/{MenuItem-DTapLhin.js → MenuItem-2wG8I2HO.js} +5 -5
- package/dist/{Paper-5nSdRRBA.js → Paper-CR019bki.js} +6 -6
- package/dist/{Select-J5gDqfEk.js → Select-80JhW337.js} +7 -7
- package/dist/{Stack-BlwLEm6H.js → Stack-Dfjnuorw.js} +5 -5
- package/dist/{Typography-Cum5_Ehu.js → Typography-PcmlIqm1.js} +4 -4
- package/dist/assets/s-overlay-scrollbar.css +1 -1
- package/dist/{createSvgIcon-DTNHY3_v.js → createSvgIcon-BkbeLOhM.js} +3 -3
- package/dist/{createTheme-CIXJrNxb.js → createTheme-DgoJyWM-.js} +874 -871
- package/dist/defaultTheme-CulFxfLR.js +5 -0
- package/dist/{extendSxProp-CyoueGTe.js → extendSxProp-BJEIxcAx.js} +1 -1
- package/dist/{index-8LcCMmwl.js → index-DtGYsHSv.js} +4 -4
- package/dist/s-accordion/s-accordion.js +89 -89
- package/dist/s-action-overlay/s-action-overlay.js +7 -7
- package/dist/s-ai-tool-bar/s-ai-tool-bar.d.ts +44 -0
- package/dist/s-ai-tool-bar/s-ai-tool-bar.js +241 -272
- package/dist/s-avatar/s-avatar.js +2 -2
- package/dist/s-breadcrumbs/s-breadcrumbs.js +1 -1
- package/dist/s-carousel/s-carousel.d.ts +4 -4
- package/dist/s-carousel/s-carousel.js +4 -4
- package/dist/s-chat-input/s-chat-input.js +4 -4
- package/dist/s-chat-message/s-chat-message.js +135 -124
- package/dist/s-chips/s-chips.js +35 -35
- package/dist/s-code-block/s-code-block.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +5 -5
- package/dist/s-copyable-text/s-copyable-text.js +1 -1
- package/dist/s-countdown/s-count-down.d.ts +15 -10
- package/dist/s-countdown/s-count-down.js +84 -101
- package/dist/s-data-table/s-data-table.js +75 -76
- package/dist/s-date-picker/s-date-picker.js +43 -47
- package/dist/s-datetime-picker/s-datetime-picker.js +782 -782
- package/dist/s-dialog/s-dialog.js +1 -1
- package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
- package/dist/s-dialog-message/s-dialog-message.js +2 -2
- package/dist/s-empty/s-empty.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +4 -4
- package/dist/s-file-icon/s-file-icon.js +15 -15
- package/dist/s-flex-box/s-flex-box.js +1 -1
- package/dist/s-gallery/s-gallery.js +1 -1
- package/dist/s-gradient-icon/s-gradient-icon.js +5 -5
- package/dist/s-image-comparison/s-image-comparison.js +3 -3
- package/dist/s-image-modal/s-image-modal.js +7 -7
- package/dist/s-label/s-label.d.ts +1 -1
- package/dist/s-label/s-label.js +1 -1
- package/dist/s-language-switcher/s-language-switcher.js +8 -8
- package/dist/s-localization-provider/s-localization-provider.js +1 -1
- package/dist/s-moving-border/s-moving-border.d.ts +5 -5
- package/dist/s-multi-select/s-multi-select.js +3 -3
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +6 -6
- package/dist/s-pixel-reveal/s-pixel-reveal.js +76 -71
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +2 -2
- package/dist/s-review/s-review.d.ts +3 -2
- package/dist/s-review/s-review.js +19 -19
- package/dist/s-scroll-to-top/s-scroll-to-top.js +5 -5
- package/dist/s-scroll-velocity/scroll-velocity-container.d.ts +1 -1
- package/dist/s-scroll-velocity/scroll-velocity-row.d.ts +3 -3
- package/dist/s-scroll-velocity/scroll-velocity-row.js +2 -2
- package/dist/s-select/s-select.d.ts +3 -0
- package/dist/s-select/s-select.js +60 -72
- package/dist/s-select-list/s-select-list.js +1 -1
- package/dist/s-stripe/s-stripe-cvc.d.ts +1 -1
- package/dist/s-stripe/s-stripe-expiry.d.ts +1 -1
- package/dist/s-stripe/s-stripe-number.d.ts +1 -1
- package/dist/s-stripe/stripe-input.d.ts +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +64 -60
- package/dist/s-text-editor/s-text-editor.js +1 -1
- package/dist/s-text-field/s-text-field.js +1 -1
- package/dist/s-text-shimmer/s-text-shimmer.js +3 -3
- package/dist/s-theme-demo/s-theme-demo.js +2 -2
- package/dist/s-theme-provider/s-theme-provider.d.ts +1 -1
- package/dist/s-theme-switch/s-theme-switch.js +1 -1
- package/dist/s-tip/s-tip.js +3 -3
- package/dist/{styled-BR6UL29H.js → styled-8Y5KoVix.js} +2 -2
- package/dist/theme/components/avatar.js +1 -1
- package/dist/theme/components/button.d.ts +2 -2
- package/dist/theme/components/button.js +1 -1
- package/dist/theme/components/chip.d.ts +2 -2
- package/dist/theme/components/chip.js +1 -1
- package/dist/theme/components/icon-button.d.ts +2 -2
- package/dist/theme/components/popover.js +2 -2
- package/dist/theme/components/skeleton.js +1 -1
- package/dist/theme/components/tooltip.js +5 -5
- package/dist/theme/customizations/data-display.js +12 -12
- package/dist/theme/customizations/feedback.js +2 -2
- package/dist/theme/customizations/inputs.js +12 -12
- package/dist/theme/customizations/navigation.js +28 -28
- package/dist/theme/customizations/surfaces.js +11 -11
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/{useMobilePicker-C0pYjskU.js → useMobilePicker-DVnEuXv1.js} +3936 -3653
- package/dist/{useTheme-DSvhq4Np.js → useTheme-CWPkv7g3.js} +1 -1
- package/dist/{useThemeProps-C-oV4Fbz.js → useThemeProps-XYgXGzjS.js} +1 -1
- package/dist/utils/logger.d.ts +1 -1
- package/dist/utils-CHdpkEZx.js +33 -0
- package/dist/{warning-BZ61Y8gI.js → warning-Ba-7BBAN.js} +3 -3
- package/package.json +59 -59
- package/dist/defaultTheme-DLue8Fr1.js +0 -5
- package/dist/utils-DJIrqgo5.js +0 -18
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { j as i } from "./jsx-runtime-tc70JA_2.js";
|
|
2
|
-
import { e as y } from "./extendSxProp-
|
|
3
|
-
import { P as e } from "./createTheme-
|
|
4
|
-
import { d as m } from "./defaultTheme-
|
|
2
|
+
import { e as y } from "./extendSxProp-BJEIxcAx.js";
|
|
3
|
+
import { P as e } from "./createTheme-DgoJyWM-.js";
|
|
4
|
+
import { d as m } from "./defaultTheme-CulFxfLR.js";
|
|
5
5
|
import { T as d } from "./identifier-BKLqN993.js";
|
|
6
6
|
import { i as b } from "./index-D3G5Rwl-.js";
|
|
7
|
-
import { u as T } from "./useTheme-
|
|
7
|
+
import { u as T } from "./useTheme-CWPkv7g3.js";
|
|
8
8
|
import { Global as x } from "@emotion/react";
|
|
9
9
|
function E(r) {
|
|
10
10
|
return r == null || Object.keys(r).length === 0;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { E as wo } from "../ExpandMore-
|
|
1
|
+
import { j as s } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { E as wo } from "../ExpandMore-C7yRQv1-.js";
|
|
3
3
|
import * as c from "react";
|
|
4
|
-
import { n as Eo, P as o, k as vo } from "../createTheme-
|
|
4
|
+
import { n as Eo, P as o, k as vo } from "../createTheme-DgoJyWM-.js";
|
|
5
5
|
import { c as L } from "../clsx-OuTLNxxd.js";
|
|
6
|
-
import { u as Q, c as X, m as
|
|
7
|
-
import {
|
|
6
|
+
import { u as Q, c as X, m as z } from "../DefaultPropsProvider-DPuuPIbS.js";
|
|
7
|
+
import { a as Ao, u as Ro, b as x, e as Po, c as jo, B as No } from "../ButtonBase-D73M0QY5.js";
|
|
8
8
|
import { g as Y } from "../generateUtilityClasses-E9gROIFd.js";
|
|
9
9
|
import { g as Z } from "../generateUtilityClass-BhfUaMgk.js";
|
|
10
10
|
import { u as Oo } from "../useControlled-D1L5tREc.js";
|
|
11
|
-
import { s as b } from "../styled-
|
|
12
|
-
import { T as Io, u as Mo, g as io, P as Do } from "../Paper-
|
|
13
|
-
import { S as
|
|
14
|
-
import { T as
|
|
15
|
-
function
|
|
11
|
+
import { s as b } from "../styled-8Y5KoVix.js";
|
|
12
|
+
import { T as Io, u as Mo, g as io, P as Do } from "../Paper-CR019bki.js";
|
|
13
|
+
import { S as Wo } from "../Stack-Dfjnuorw.js";
|
|
14
|
+
import { T as zo } from "../Typography-PcmlIqm1.js";
|
|
15
|
+
function $o(e) {
|
|
16
16
|
return Z("MuiCollapse", e);
|
|
17
17
|
}
|
|
18
18
|
Y("MuiCollapse", ["root", "horizontal", "vertical", "entered", "hidden", "wrapper", "wrapperInner"]);
|
|
@@ -20,14 +20,14 @@ const ko = (e) => {
|
|
|
20
20
|
const {
|
|
21
21
|
orientation: t,
|
|
22
22
|
classes: n
|
|
23
|
-
} = e
|
|
24
|
-
|
|
23
|
+
} = e;
|
|
24
|
+
return X({
|
|
25
|
+
root: ["root", t],
|
|
25
26
|
entered: ["entered"],
|
|
26
27
|
hidden: ["hidden"],
|
|
27
|
-
wrapper: ["wrapper",
|
|
28
|
-
wrapperInner: ["wrapperInner",
|
|
29
|
-
};
|
|
30
|
-
return X(s, zo, n);
|
|
28
|
+
wrapper: ["wrapper", t],
|
|
29
|
+
wrapperInner: ["wrapperInner", t]
|
|
30
|
+
}, $o, n);
|
|
31
31
|
}, Vo = b("div", {
|
|
32
32
|
name: "MuiCollapse",
|
|
33
33
|
slot: "Root",
|
|
@@ -37,7 +37,7 @@ const ko = (e) => {
|
|
|
37
37
|
} = e;
|
|
38
38
|
return [t.root, t[n.orientation], n.state === "entered" && t.entered, n.state === "exited" && !n.in && n.collapsedSize === "0px" && t.hidden];
|
|
39
39
|
}
|
|
40
|
-
})(
|
|
40
|
+
})(z(({
|
|
41
41
|
theme: e
|
|
42
42
|
}) => ({
|
|
43
43
|
height: 0,
|
|
@@ -107,16 +107,16 @@ const ko = (e) => {
|
|
|
107
107
|
}
|
|
108
108
|
}]
|
|
109
109
|
}), K = /* @__PURE__ */ c.forwardRef(function(t, n) {
|
|
110
|
-
const
|
|
110
|
+
const i = Q({
|
|
111
111
|
props: t,
|
|
112
112
|
name: "MuiCollapse"
|
|
113
113
|
}), {
|
|
114
114
|
addEndListener: a,
|
|
115
|
-
children:
|
|
116
|
-
className:
|
|
115
|
+
children: p,
|
|
116
|
+
className: d,
|
|
117
117
|
collapsedSize: u = "0px",
|
|
118
118
|
component: R,
|
|
119
|
-
easing:
|
|
119
|
+
easing: $,
|
|
120
120
|
in: P,
|
|
121
121
|
onEnter: k,
|
|
122
122
|
onEntered: N,
|
|
@@ -132,17 +132,17 @@ const ko = (e) => {
|
|
|
132
132
|
// eslint-disable-next-line react/prop-types
|
|
133
133
|
TransitionComponent: S = Io,
|
|
134
134
|
...M
|
|
135
|
-
} =
|
|
136
|
-
...
|
|
135
|
+
} = i, w = {
|
|
136
|
+
...i,
|
|
137
137
|
orientation: h,
|
|
138
138
|
collapsedSize: u
|
|
139
|
-
}, E = ko(w), l = Mo(), G = Ao(), v = c.useRef(null), _ = c.useRef(), U = typeof u == "number" ? `${u}px` : u, D = h === "horizontal",
|
|
139
|
+
}, E = ko(w), l = Mo(), G = Ao(), v = c.useRef(null), _ = c.useRef(), U = typeof u == "number" ? `${u}px` : u, D = h === "horizontal", W = D ? "width" : "height", H = c.useRef(null), oo = Ro(n, H), j = (r) => (g) => {
|
|
140
140
|
if (r) {
|
|
141
141
|
const y = H.current;
|
|
142
142
|
g === void 0 ? r(y) : r(y, g);
|
|
143
143
|
}
|
|
144
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[
|
|
145
|
+
v.current && D && (v.current.style.position = "absolute"), r.style[W] = U, k && k(r, g);
|
|
146
146
|
}), uo = j((r, g) => {
|
|
147
147
|
const y = eo();
|
|
148
148
|
v.current && D && (v.current.style.position = "");
|
|
@@ -152,7 +152,7 @@ const ko = (e) => {
|
|
|
152
152
|
} = io({
|
|
153
153
|
style: I,
|
|
154
154
|
timeout: m,
|
|
155
|
-
easing:
|
|
155
|
+
easing: $
|
|
156
156
|
}, {
|
|
157
157
|
mode: "enter"
|
|
158
158
|
});
|
|
@@ -161,11 +161,11 @@ const ko = (e) => {
|
|
|
161
161
|
r.style.transitionDuration = `${so}ms`, _.current = so;
|
|
162
162
|
} else
|
|
163
163
|
r.style.transitionDuration = typeof A == "string" ? A : `${A}ms`;
|
|
164
|
-
r.style[
|
|
164
|
+
r.style[W] = `${y}px`, r.style.transitionTimingFunction = q, V && V(r, g);
|
|
165
165
|
}), fo = j((r, g) => {
|
|
166
|
-
r.style[
|
|
166
|
+
r.style[W] = "auto", N && N(r, g);
|
|
167
167
|
}), mo = j((r) => {
|
|
168
|
-
r.style[
|
|
168
|
+
r.style[W] = `${eo()}px`, O && O(r);
|
|
169
169
|
}), go = j(F), yo = j((r) => {
|
|
170
170
|
const g = eo(), {
|
|
171
171
|
duration: y,
|
|
@@ -173,7 +173,7 @@ const ko = (e) => {
|
|
|
173
173
|
} = io({
|
|
174
174
|
style: I,
|
|
175
175
|
timeout: m,
|
|
176
|
-
easing:
|
|
176
|
+
easing: $
|
|
177
177
|
}, {
|
|
178
178
|
mode: "exit"
|
|
179
179
|
});
|
|
@@ -182,7 +182,7 @@ const ko = (e) => {
|
|
|
182
182
|
r.style.transitionDuration = `${q}ms`, _.current = q;
|
|
183
183
|
} else
|
|
184
184
|
r.style.transitionDuration = typeof y == "string" ? y : `${y}ms`;
|
|
185
|
-
r.style[
|
|
185
|
+
r.style[W] = U, r.style.transitionTimingFunction = A, f && f(r);
|
|
186
186
|
}), ho = (r) => {
|
|
187
187
|
m === "auto" && G.start(_.current || 0, r), a && a(H.current, r);
|
|
188
188
|
}, to = {
|
|
@@ -191,7 +191,7 @@ const ko = (e) => {
|
|
|
191
191
|
component: R
|
|
192
192
|
}, [xo, ro] = x("root", {
|
|
193
193
|
ref: oo,
|
|
194
|
-
className: L(E.root,
|
|
194
|
+
className: L(E.root, d),
|
|
195
195
|
elementType: Vo,
|
|
196
196
|
externalForwardedProps: to,
|
|
197
197
|
ownerState: w,
|
|
@@ -213,7 +213,7 @@ const ko = (e) => {
|
|
|
213
213
|
externalForwardedProps: to,
|
|
214
214
|
ownerState: w
|
|
215
215
|
});
|
|
216
|
-
return /* @__PURE__ */
|
|
216
|
+
return /* @__PURE__ */ s.jsx(S, {
|
|
217
217
|
in: P,
|
|
218
218
|
onEnter: po,
|
|
219
219
|
onEntered: fo,
|
|
@@ -233,7 +233,7 @@ const ko = (e) => {
|
|
|
233
233
|
...w,
|
|
234
234
|
state: r
|
|
235
235
|
};
|
|
236
|
-
return /* @__PURE__ */
|
|
236
|
+
return /* @__PURE__ */ s.jsx(xo, {
|
|
237
237
|
...ro,
|
|
238
238
|
className: L(ro.className, {
|
|
239
239
|
entered: E.entered,
|
|
@@ -241,13 +241,13 @@ const ko = (e) => {
|
|
|
241
241
|
}[r]),
|
|
242
242
|
ownerState: A,
|
|
243
243
|
...y,
|
|
244
|
-
children: /* @__PURE__ */
|
|
244
|
+
children: /* @__PURE__ */ s.jsx(bo, {
|
|
245
245
|
...To,
|
|
246
246
|
ownerState: A,
|
|
247
|
-
children: /* @__PURE__ */
|
|
247
|
+
children: /* @__PURE__ */ s.jsx(Co, {
|
|
248
248
|
...So,
|
|
249
249
|
ownerState: A,
|
|
250
|
-
children:
|
|
250
|
+
children: p
|
|
251
251
|
})
|
|
252
252
|
})
|
|
253
253
|
});
|
|
@@ -377,12 +377,12 @@ const J = Y("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
377
377
|
const {
|
|
378
378
|
classes: t,
|
|
379
379
|
square: n,
|
|
380
|
-
expanded:
|
|
380
|
+
expanded: i,
|
|
381
381
|
disabled: a,
|
|
382
|
-
disableGutters:
|
|
382
|
+
disableGutters: p
|
|
383
383
|
} = e;
|
|
384
384
|
return X({
|
|
385
|
-
root: ["root", !n && "rounded",
|
|
385
|
+
root: ["root", !n && "rounded", i && "expanded", a && "disabled", !p && "gutters"],
|
|
386
386
|
heading: ["heading"],
|
|
387
387
|
region: ["region"]
|
|
388
388
|
}, Uo, t);
|
|
@@ -397,7 +397,7 @@ const J = Y("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
397
397
|
[`& .${J.region}`]: t.region
|
|
398
398
|
}, t.root, !n.square && t.rounded, !n.disableGutters && t.gutters];
|
|
399
399
|
}
|
|
400
|
-
})(
|
|
400
|
+
})(z(({
|
|
401
401
|
theme: e
|
|
402
402
|
}) => {
|
|
403
403
|
const t = {
|
|
@@ -444,7 +444,7 @@ const J = Y("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
444
444
|
backgroundColor: (e.vars || e).palette.action.disabledBackground
|
|
445
445
|
}
|
|
446
446
|
};
|
|
447
|
-
}),
|
|
447
|
+
}), z(({
|
|
448
448
|
theme: e
|
|
449
449
|
}) => ({
|
|
450
450
|
variants: [{
|
|
@@ -482,25 +482,25 @@ const J = Y("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
482
482
|
name: "MuiAccordion",
|
|
483
483
|
slot: "Region"
|
|
484
484
|
})({}), ao = /* @__PURE__ */ c.forwardRef(function(t, n) {
|
|
485
|
-
const
|
|
485
|
+
const i = Q({
|
|
486
486
|
props: t,
|
|
487
487
|
name: "MuiAccordion"
|
|
488
488
|
}), {
|
|
489
489
|
children: a,
|
|
490
|
-
className:
|
|
491
|
-
defaultExpanded:
|
|
490
|
+
className: p,
|
|
491
|
+
defaultExpanded: d = !1,
|
|
492
492
|
disabled: u = !1,
|
|
493
493
|
disableGutters: R = !1,
|
|
494
|
-
expanded:
|
|
494
|
+
expanded: $,
|
|
495
495
|
onChange: P,
|
|
496
496
|
slots: k = {},
|
|
497
497
|
slotProps: N = {},
|
|
498
498
|
TransitionComponent: V,
|
|
499
499
|
TransitionProps: O,
|
|
500
500
|
...F
|
|
501
|
-
} =
|
|
502
|
-
controlled:
|
|
503
|
-
default:
|
|
501
|
+
} = i, [f, h] = Oo({
|
|
502
|
+
controlled: $,
|
|
503
|
+
default: d,
|
|
504
504
|
name: "Accordion",
|
|
505
505
|
state: "expanded"
|
|
506
506
|
}), T = c.useCallback((j) => {
|
|
@@ -511,7 +511,7 @@ const J = Y("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
511
511
|
disableGutters: R,
|
|
512
512
|
toggle: T
|
|
513
513
|
}), [f, u, R, T]), S = {
|
|
514
|
-
...
|
|
514
|
+
...i,
|
|
515
515
|
disabled: u,
|
|
516
516
|
disableGutters: R,
|
|
517
517
|
expanded: f
|
|
@@ -530,7 +530,7 @@ const J = Y("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
530
530
|
...l,
|
|
531
531
|
...F
|
|
532
532
|
},
|
|
533
|
-
className: L(M.root,
|
|
533
|
+
className: L(M.root, p),
|
|
534
534
|
shouldForwardComponentProp: !0,
|
|
535
535
|
ownerState: S,
|
|
536
536
|
ref: n
|
|
@@ -539,7 +539,7 @@ const J = Y("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
539
539
|
externalForwardedProps: l,
|
|
540
540
|
className: M.heading,
|
|
541
541
|
ownerState: S
|
|
542
|
-
}), [D,
|
|
542
|
+
}), [D, W] = x("transition", {
|
|
543
543
|
elementType: K,
|
|
544
544
|
externalForwardedProps: l,
|
|
545
545
|
ownerState: S
|
|
@@ -554,19 +554,19 @@ const J = Y("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
|
|
|
554
554
|
role: "region"
|
|
555
555
|
}
|
|
556
556
|
});
|
|
557
|
-
return /* @__PURE__ */
|
|
557
|
+
return /* @__PURE__ */ s.jsxs(G, {
|
|
558
558
|
...v,
|
|
559
|
-
children: [/* @__PURE__ */
|
|
559
|
+
children: [/* @__PURE__ */ s.jsx(_, {
|
|
560
560
|
...U,
|
|
561
|
-
children: /* @__PURE__ */
|
|
561
|
+
children: /* @__PURE__ */ s.jsx(no.Provider, {
|
|
562
562
|
value: m,
|
|
563
563
|
children: C
|
|
564
564
|
})
|
|
565
|
-
}), /* @__PURE__ */
|
|
565
|
+
}), /* @__PURE__ */ s.jsx(D, {
|
|
566
566
|
in: f,
|
|
567
567
|
timeout: "auto",
|
|
568
|
-
|
|
569
|
-
children: /* @__PURE__ */
|
|
568
|
+
...W,
|
|
569
|
+
children: /* @__PURE__ */ s.jsx(H, {
|
|
570
570
|
...oo,
|
|
571
571
|
children: I
|
|
572
572
|
})
|
|
@@ -671,23 +671,23 @@ const Jo = (e) => {
|
|
|
671
671
|
}, Ko = b("div", {
|
|
672
672
|
name: "MuiAccordionDetails",
|
|
673
673
|
slot: "Root"
|
|
674
|
-
})(
|
|
674
|
+
})(z(({
|
|
675
675
|
theme: e
|
|
676
676
|
}) => ({
|
|
677
677
|
padding: e.spacing(1, 2, 2)
|
|
678
678
|
}))), co = /* @__PURE__ */ c.forwardRef(function(t, n) {
|
|
679
|
-
const
|
|
679
|
+
const i = Q({
|
|
680
680
|
props: t,
|
|
681
681
|
name: "MuiAccordionDetails"
|
|
682
682
|
}), {
|
|
683
683
|
className: a,
|
|
684
|
-
...
|
|
685
|
-
} =
|
|
686
|
-
return /* @__PURE__ */
|
|
684
|
+
...p
|
|
685
|
+
} = i, d = i, u = Jo(d);
|
|
686
|
+
return /* @__PURE__ */ s.jsx(Ko, {
|
|
687
687
|
className: L(u.root, a),
|
|
688
688
|
ref: n,
|
|
689
|
-
ownerState:
|
|
690
|
-
...
|
|
689
|
+
ownerState: d,
|
|
690
|
+
...p
|
|
691
691
|
});
|
|
692
692
|
});
|
|
693
693
|
process.env.NODE_ENV !== "production" && (co.propTypes = {
|
|
@@ -719,11 +719,11 @@ const B = Y("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
719
719
|
const {
|
|
720
720
|
classes: t,
|
|
721
721
|
expanded: n,
|
|
722
|
-
disabled:
|
|
722
|
+
disabled: i,
|
|
723
723
|
disableGutters: a
|
|
724
724
|
} = e;
|
|
725
725
|
return X({
|
|
726
|
-
root: ["root", n && "expanded",
|
|
726
|
+
root: ["root", n && "expanded", i && "disabled", !a && "gutters"],
|
|
727
727
|
focusVisible: ["focusVisible"],
|
|
728
728
|
content: ["content", n && "expanded", !a && "contentGutters"],
|
|
729
729
|
expandIconWrapper: ["expandIconWrapper", n && "expanded"]
|
|
@@ -731,7 +731,7 @@ const B = Y("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
731
731
|
}, Yo = b(No, {
|
|
732
732
|
name: "MuiAccordionSummary",
|
|
733
733
|
slot: "Root"
|
|
734
|
-
})(
|
|
734
|
+
})(z(({
|
|
735
735
|
theme: e
|
|
736
736
|
}) => {
|
|
737
737
|
const t = {
|
|
@@ -764,7 +764,7 @@ const B = Y("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
764
764
|
})), Zo = b("span", {
|
|
765
765
|
name: "MuiAccordionSummary",
|
|
766
766
|
slot: "Content"
|
|
767
|
-
})(
|
|
767
|
+
})(z(({
|
|
768
768
|
theme: e
|
|
769
769
|
}) => ({
|
|
770
770
|
display: "flex",
|
|
@@ -785,7 +785,7 @@ const B = Y("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
785
785
|
}))), oe = b("span", {
|
|
786
786
|
name: "MuiAccordionSummary",
|
|
787
787
|
slot: "ExpandIconWrapper"
|
|
788
|
-
})(
|
|
788
|
+
})(z(({
|
|
789
789
|
theme: e
|
|
790
790
|
}) => ({
|
|
791
791
|
display: "flex",
|
|
@@ -798,19 +798,19 @@ const B = Y("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
798
798
|
transform: "rotate(180deg)"
|
|
799
799
|
}
|
|
800
800
|
}))), lo = /* @__PURE__ */ c.forwardRef(function(t, n) {
|
|
801
|
-
const
|
|
801
|
+
const i = Q({
|
|
802
802
|
props: t,
|
|
803
803
|
name: "MuiAccordionSummary"
|
|
804
804
|
}), {
|
|
805
805
|
children: a,
|
|
806
|
-
className:
|
|
807
|
-
expandIcon:
|
|
806
|
+
className: p,
|
|
807
|
+
expandIcon: d,
|
|
808
808
|
focusVisibleClassName: u,
|
|
809
809
|
onClick: R,
|
|
810
|
-
slots:
|
|
810
|
+
slots: $,
|
|
811
811
|
slotProps: P,
|
|
812
812
|
...k
|
|
813
|
-
} =
|
|
813
|
+
} = i, {
|
|
814
814
|
disabled: N = !1,
|
|
815
815
|
disableGutters: V,
|
|
816
816
|
expanded: O,
|
|
@@ -818,17 +818,17 @@ const B = Y("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
818
818
|
} = c.useContext(no), f = (l) => {
|
|
819
819
|
F && F(l), R && R(l);
|
|
820
820
|
}, h = {
|
|
821
|
-
...
|
|
821
|
+
...i,
|
|
822
822
|
expanded: O,
|
|
823
823
|
disabled: N,
|
|
824
824
|
disableGutters: V
|
|
825
825
|
}, T = Xo(h), C = {
|
|
826
|
-
slots:
|
|
826
|
+
slots: $,
|
|
827
827
|
slotProps: P
|
|
828
828
|
}, [I, m] = x("root", {
|
|
829
829
|
ref: n,
|
|
830
830
|
shouldForwardComponentProp: !0,
|
|
831
|
-
className: L(T.root,
|
|
831
|
+
className: L(T.root, p),
|
|
832
832
|
elementType: Yo,
|
|
833
833
|
externalForwardedProps: {
|
|
834
834
|
...C,
|
|
@@ -859,14 +859,14 @@ const B = Y("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
|
|
|
859
859
|
externalForwardedProps: C,
|
|
860
860
|
ownerState: h
|
|
861
861
|
});
|
|
862
|
-
return /* @__PURE__ */
|
|
862
|
+
return /* @__PURE__ */ s.jsxs(I, {
|
|
863
863
|
...m,
|
|
864
|
-
children: [/* @__PURE__ */
|
|
864
|
+
children: [/* @__PURE__ */ s.jsx(S, {
|
|
865
865
|
...M,
|
|
866
866
|
children: a
|
|
867
|
-
}),
|
|
867
|
+
}), d && /* @__PURE__ */ s.jsx(w, {
|
|
868
868
|
...E,
|
|
869
|
-
children:
|
|
869
|
+
children: d
|
|
870
870
|
})]
|
|
871
871
|
});
|
|
872
872
|
});
|
|
@@ -931,16 +931,16 @@ const ee = ({
|
|
|
931
931
|
title: e,
|
|
932
932
|
children: t,
|
|
933
933
|
startIcon: n,
|
|
934
|
-
titleTypographyProps:
|
|
934
|
+
titleTypographyProps: i,
|
|
935
935
|
accordionSummaryProps: a,
|
|
936
|
-
accordionDetailsProps:
|
|
937
|
-
...
|
|
938
|
-
}) => /* @__PURE__ */
|
|
939
|
-
e || n ? /* @__PURE__ */
|
|
936
|
+
accordionDetailsProps: p,
|
|
937
|
+
...d
|
|
938
|
+
}) => /* @__PURE__ */ s.jsxs(ao, { elevation: 0, ...d, children: [
|
|
939
|
+
e || n ? /* @__PURE__ */ s.jsx(lo, { expandIcon: /* @__PURE__ */ s.jsx(wo, {}), ...a, children: /* @__PURE__ */ s.jsxs(Wo, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
940
940
|
n,
|
|
941
|
-
/* @__PURE__ */
|
|
941
|
+
/* @__PURE__ */ s.jsx(zo, { variant: "subtitle1", fontWeight: 600, ...i, children: e })
|
|
942
942
|
] }) }) : null,
|
|
943
|
-
/* @__PURE__ */
|
|
943
|
+
/* @__PURE__ */ s.jsx(co, { ...p, children: t })
|
|
944
944
|
] });
|
|
945
945
|
ee.displayName = "SAccordion";
|
|
946
946
|
export {
|
|
@@ -7,8 +7,8 @@ const k = 40, _ = 16, O = ({
|
|
|
7
7
|
maxWidth: u,
|
|
8
8
|
columns: r = 3,
|
|
9
9
|
children: d,
|
|
10
|
-
showOnHover:
|
|
11
|
-
visible:
|
|
10
|
+
showOnHover: s = !0,
|
|
11
|
+
visible: o,
|
|
12
12
|
position: n = "center",
|
|
13
13
|
backdropColor: p = "background.paper",
|
|
14
14
|
backdropOpacity: x = 0.9,
|
|
@@ -17,10 +17,10 @@ const k = 40, _ = 16, O = ({
|
|
|
17
17
|
overlaySx: y,
|
|
18
18
|
onVisibilityChange: a
|
|
19
19
|
}) => {
|
|
20
|
-
const [h, l] = M(!1), v =
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
|
|
20
|
+
const [h, l] = M(!1), v = o ?? (s && h), b = () => {
|
|
21
|
+
s && o === void 0 && (l(!0), a?.(!0));
|
|
22
|
+
}, j = () => {
|
|
23
|
+
s && o === void 0 && (l(!1), a?.(!1));
|
|
24
24
|
}, C = () => {
|
|
25
25
|
switch (n) {
|
|
26
26
|
case "top-left":
|
|
@@ -53,7 +53,7 @@ const k = 40, _ = 16, O = ({
|
|
|
53
53
|
};
|
|
54
54
|
return (
|
|
55
55
|
// Main container with flex to center the children
|
|
56
|
-
/* @__PURE__ */ e.jsx(i, { display: "flex", children: /* @__PURE__ */ e.jsxs(i, { position: "relative", onMouseEnter:
|
|
56
|
+
/* @__PURE__ */ e.jsx(i, { display: "flex", children: /* @__PURE__ */ e.jsxs(i, { position: "relative", onMouseEnter: b, onMouseLeave: j, children: [
|
|
57
57
|
d,
|
|
58
58
|
v && /* @__PURE__ */ e.jsx(
|
|
59
59
|
i,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { CheckboxProps, SelectProps, SliderProps, TextFieldProps } from '@mui/material';
|
|
2
3
|
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
4
|
/**
|
|
4
5
|
* Possible value types for SAiToolBar inputs
|
|
@@ -59,6 +60,18 @@ export interface SAiToolBarInput {
|
|
|
59
60
|
searchable?: boolean;
|
|
60
61
|
/** Placeholder for search input in select dropdown */
|
|
61
62
|
searchPlaceholder?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Extra props forwarded to the underlying child component.
|
|
65
|
+
* Each key targets the matching input type:
|
|
66
|
+
* - `textarea` / `number` → MUI `TextField`
|
|
67
|
+
* - `slider` → MUI `Slider`
|
|
68
|
+
* - `select` → `SSelect`
|
|
69
|
+
* - `checkbox` → MUI `Checkbox`
|
|
70
|
+
* - `image` → native `<input type="file">`
|
|
71
|
+
*
|
|
72
|
+
* Only the props relevant to the current `type` are used.
|
|
73
|
+
*/
|
|
74
|
+
componentProps?: SAiToolBarComponentProps;
|
|
62
75
|
/** Custom renderer for the input */
|
|
63
76
|
renderInput?: (props: {
|
|
64
77
|
value: SAiToolBarValue;
|
|
@@ -68,6 +81,37 @@ export interface SAiToolBarInput {
|
|
|
68
81
|
disabled?: boolean;
|
|
69
82
|
}) => React.ReactNode;
|
|
70
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Per-type overrides forwarded to the underlying child components.
|
|
86
|
+
* Omit props that are already managed by SAiToolBar to avoid conflicts.
|
|
87
|
+
*/
|
|
88
|
+
export interface SAiToolBarComponentProps {
|
|
89
|
+
/** Extra props for the MUI TextField used in `textarea` inputs */
|
|
90
|
+
textarea?: Omit<TextFieldProps, 'value' | 'onChange' | 'onFocus' | 'onBlur' | 'disabled' | 'multiline' | 'minRows' | 'maxRows' | 'fullWidth' | 'placeholder'>;
|
|
91
|
+
/** Extra props for the MUI TextField used in `number` inputs */
|
|
92
|
+
number?: Omit<TextFieldProps, 'value' | 'onChange' | 'onFocus' | 'onBlur' | 'disabled' | 'type' | 'slotProps'>;
|
|
93
|
+
/** Extra props for the MUI Slider used in `slider` inputs */
|
|
94
|
+
slider?: Omit<SliderProps, 'value' | 'onChange' | 'onMouseDown' | 'onMouseUp' | 'disabled' | 'min' | 'max' | 'step'>;
|
|
95
|
+
/** Extra props for SSelect used in `select` inputs */
|
|
96
|
+
select?: Omit<SelectProps, 'ref' | 'value' | 'onChange' | 'onFocus' | 'onBlur' | 'disabled' | 'error' | 'variant'> & {
|
|
97
|
+
/** Field label displayed above the select */
|
|
98
|
+
label?: string | React.ReactNode;
|
|
99
|
+
/** Error message to display below the field */
|
|
100
|
+
error?: string;
|
|
101
|
+
/** Whether the field is required */
|
|
102
|
+
required?: boolean;
|
|
103
|
+
/** Whether to use simple value rendering */
|
|
104
|
+
simple?: boolean;
|
|
105
|
+
/** HTML id attribute for the select element */
|
|
106
|
+
htmlFor?: string;
|
|
107
|
+
/** Custom render function for dropdown options */
|
|
108
|
+
renderOption?: (option: SAiToolBarOption) => React.ReactNode;
|
|
109
|
+
};
|
|
110
|
+
/** Extra props for the MUI Checkbox used in `checkbox` inputs */
|
|
111
|
+
checkbox?: Omit<CheckboxProps, 'checked' | 'onChange' | 'onFocus' | 'onBlur' | 'disabled'>;
|
|
112
|
+
/** Extra props for the native `<input type="file">` element used in `image` inputs */
|
|
113
|
+
image?: Omit<React.InputHTMLAttributes<HTMLInputElement>, 'ref' | 'type' | 'multiple' | 'onChange' | 'disabled' | 'style'>;
|
|
114
|
+
}
|
|
71
115
|
/**
|
|
72
116
|
* Props interface for SAiToolBar component
|
|
73
117
|
*/
|