@solostylist/ui-kit 1.0.172 → 1.0.174
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-ai-tool-bar/s-ai-tool-bar.js +63 -63
- package/dist/s-breadcrumbs/s-breadcrumbs.js +2 -2
- package/dist/s-button-link/s-button-link.js +2 -2
- package/dist/s-category-card/s-category-card.js +2 -2
- package/dist/s-chat-input/s-chat-input.js +1 -1
- package/dist/s-chat-message/s-chat-message.js +17 -17
- package/dist/s-countdown/s-count-box.js +2 -2
- package/dist/s-countdown/s-count-down.js +2 -2
- package/dist/s-error-layout/s-error-layout.js +2 -2
- package/dist/s-glow-button/s-glow-button.d.ts +3 -1
- package/dist/s-glow-button/s-glow-button.js +20 -17
- package/dist/s-gradient-icon/s-gradient-icon.js +2 -2
- package/dist/s-select/s-select.js +20 -20
- package/dist/s-skeleton/s-skeleton.js +2 -2
- package/dist/s-stripe/s-stripe.js +2 -2
- package/dist/s-stripe/stripe-input.d.ts +0 -16
- package/dist/s-stripe/stripe-input.js +76 -35
- package/dist/s-text-editor/s-text-editor.js +1 -1
- package/dist/s-theme-provider/s-theme-provider.js +2 -2
- package/dist/s-theme-switch/s-theme-switch.js +1 -1
- package/dist/s-zoom-image/index.js +1 -1
- package/dist/s-zoom-image/s-zoom-image.js +2 -2
- package/dist/theme/components/button.d.ts +6 -0
- package/dist/theme/components/button.js +10 -8
- package/dist/theme/components/components.js +11 -9
- package/dist/theme/components/skeleton.d.ts +2 -0
- package/dist/theme/components/skeleton.js +10 -0
- package/dist/theme/customizations/inputs.js +8 -8
- package/dist/theme/theme-primitives.js +1 -1
- package/package.json +1 -1
|
@@ -4,24 +4,24 @@ import { c as S } from "../createSvgIcon-DxwgGAVe.js";
|
|
|
4
4
|
import { C as Q } from "../Close-BRlEKA2Q.js";
|
|
5
5
|
import { D as Y } from "../Download-UsLvGg3y.js";
|
|
6
6
|
import { TextField as K, Typography as Z, Box as a, Slider as ee, IconButton as A, Checkbox as te, Divider as oe, Tooltip as _, Dialog as ne, DialogTitle as le, DialogContent as ae } from "@mui/material";
|
|
7
|
-
import { createPortal as
|
|
8
|
-
import { SSelect as
|
|
7
|
+
import { createPortal as se } from "react-dom";
|
|
8
|
+
import { SSelect as re } from "../s-select/s-select.js";
|
|
9
9
|
const ie = S(/* @__PURE__ */ e.jsx("path", {
|
|
10
10
|
d: "M19 7v2.99s-1.99.01-2 0V7h-3s.01-1.99 0-2h3V2h2v3h3v2zm-3 4V8h-3V5H5c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-8zM5 19l3-4 2 3 3-4 4 5z"
|
|
11
11
|
}), "AddPhotoAlternate"), de = S(/* @__PURE__ */ e.jsx("path", {
|
|
12
|
+
d: "m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z"
|
|
13
|
+
}), "AutoAwesome"), ue = S(/* @__PURE__ */ e.jsx("path", {
|
|
12
14
|
d: "M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6m6.76 1.74L17.3 9.2c.44.84.7 1.79.7 2.8 0 3.31-2.69 6-6 6v-3l-4 4 4 4v-3c4.42 0 8-3.58 8-8 0-1.57-.46-3.03-1.24-4.26"
|
|
13
|
-
}), "Autorenew"),
|
|
15
|
+
}), "Autorenew"), ce = S(/* @__PURE__ */ e.jsx("path", {
|
|
14
16
|
d: "M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"
|
|
15
|
-
}), "InfoOutlined")
|
|
16
|
-
|
|
17
|
-
})
|
|
18
|
-
var N = /* @__PURE__ */ ((t) => (t.TEXTAREA = "textarea", t.SLIDER = "slider", t.IMAGE = "image", t.NUMBER = "number", t.SELECT = "select", t.CHECKBOX = "checkbox", t))(N || {});
|
|
19
|
-
const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, disabled: d }) => /* @__PURE__ */ e.jsx(
|
|
17
|
+
}), "InfoOutlined");
|
|
18
|
+
var M = /* @__PURE__ */ ((t) => (t.TEXTAREA = "textarea", t.SLIDER = "slider", t.IMAGE = "image", t.NUMBER = "number", t.SELECT = "select", t.CHECKBOX = "checkbox", t))(M || {});
|
|
19
|
+
const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: s, onBlur: p, disabled: d }) => /* @__PURE__ */ e.jsx(
|
|
20
20
|
K,
|
|
21
21
|
{
|
|
22
22
|
value: l,
|
|
23
23
|
onChange: (c) => u(c.target.value),
|
|
24
|
-
onFocus:
|
|
24
|
+
onFocus: s,
|
|
25
25
|
onBlur: p,
|
|
26
26
|
placeholder: t.placeholder || t.label,
|
|
27
27
|
disabled: d,
|
|
@@ -43,7 +43,7 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
43
43
|
},
|
|
44
44
|
children: t.label
|
|
45
45
|
}
|
|
46
|
-
)), pe = g.memo(({ input: t, value: l, onChange: u, onFocus:
|
|
46
|
+
)), pe = g.memo(({ input: t, value: l, onChange: u, onFocus: s, onBlur: p, disabled: d }) => /* @__PURE__ */ e.jsxs(
|
|
47
47
|
a,
|
|
48
48
|
{
|
|
49
49
|
sx: {
|
|
@@ -59,7 +59,7 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
59
59
|
type: "number",
|
|
60
60
|
value: l ?? t.defaultValue ?? 0,
|
|
61
61
|
onChange: (c) => u(Number(c.target.value)),
|
|
62
|
-
onFocus:
|
|
62
|
+
onFocus: s,
|
|
63
63
|
onBlur: p,
|
|
64
64
|
disabled: d,
|
|
65
65
|
size: "small",
|
|
@@ -79,7 +79,7 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
79
79
|
)
|
|
80
80
|
]
|
|
81
81
|
}
|
|
82
|
-
)), me = g.memo(({ input: t, value: l, onChange: u, onFocus:
|
|
82
|
+
)), me = g.memo(({ input: t, value: l, onChange: u, onFocus: s, onBlur: p, disabled: d }) => /* @__PURE__ */ e.jsxs(
|
|
83
83
|
a,
|
|
84
84
|
{
|
|
85
85
|
sx: {
|
|
@@ -90,11 +90,11 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
90
90
|
children: [
|
|
91
91
|
/* @__PURE__ */ e.jsx(P, { label: t.label }),
|
|
92
92
|
/* @__PURE__ */ e.jsx(
|
|
93
|
-
|
|
93
|
+
re,
|
|
94
94
|
{
|
|
95
95
|
value: l ?? t.defaultValue ?? "",
|
|
96
96
|
onChange: (c) => u(c.target.value),
|
|
97
|
-
onFocus:
|
|
97
|
+
onFocus: s,
|
|
98
98
|
onBlur: p,
|
|
99
99
|
disabled: d,
|
|
100
100
|
placeholder: t.placeholder,
|
|
@@ -108,7 +108,7 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
108
108
|
)
|
|
109
109
|
]
|
|
110
110
|
}
|
|
111
|
-
)), he = g.memo(({ input: t, value: l, onChange: u, onFocus:
|
|
111
|
+
)), he = g.memo(({ input: t, value: l, onChange: u, onFocus: s, onBlur: p, disabled: d }) => /* @__PURE__ */ e.jsxs(
|
|
112
112
|
a,
|
|
113
113
|
{
|
|
114
114
|
sx: {
|
|
@@ -124,7 +124,7 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
124
124
|
{
|
|
125
125
|
value: l ?? t.defaultValue ?? t.min ?? 0,
|
|
126
126
|
onChange: (c, b) => u(b),
|
|
127
|
-
onMouseDown:
|
|
127
|
+
onMouseDown: s,
|
|
128
128
|
onMouseUp: p,
|
|
129
129
|
disabled: d,
|
|
130
130
|
min: t.min ?? 0,
|
|
@@ -149,13 +149,13 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
149
149
|
] })
|
|
150
150
|
]
|
|
151
151
|
}
|
|
152
|
-
)), xe = g.memo(({ input: t, value: l, onChange: u, disabled:
|
|
152
|
+
)), xe = g.memo(({ input: t, value: l, onChange: u, disabled: s }) => {
|
|
153
153
|
const p = g.useRef(null), [d, c] = g.useState([]), [b, R] = g.useState(null), j = t.multiple ?? !1, w = t.maxImages ?? 5;
|
|
154
154
|
$(() => {
|
|
155
155
|
let m = [];
|
|
156
|
-
return c(((
|
|
157
|
-
if (!
|
|
158
|
-
const v = Array.isArray(
|
|
156
|
+
return c(((r) => {
|
|
157
|
+
if (!r) return [];
|
|
158
|
+
const v = Array.isArray(r) ? r : [r], i = [];
|
|
159
159
|
return v.forEach((I) => {
|
|
160
160
|
if (I instanceof File) {
|
|
161
161
|
const T = URL.createObjectURL(I);
|
|
@@ -163,14 +163,14 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
163
163
|
} else typeof I == "string" && i.push(I);
|
|
164
164
|
}), i;
|
|
165
165
|
})(l)), () => {
|
|
166
|
-
m.forEach((
|
|
166
|
+
m.forEach((r) => URL.revokeObjectURL(r));
|
|
167
167
|
};
|
|
168
168
|
}, [l]);
|
|
169
169
|
const h = (m) => {
|
|
170
170
|
const f = m.target.files;
|
|
171
171
|
if (!(!f || f.length === 0)) {
|
|
172
172
|
if (j) {
|
|
173
|
-
const
|
|
173
|
+
const r = Array.isArray(l) ? l : l instanceof File || typeof l == "string" ? [l] : [], v = Array.from(f).slice(0, w - r.length), i = [...r, ...v];
|
|
174
174
|
u(i);
|
|
175
175
|
} else
|
|
176
176
|
u(f[0]);
|
|
@@ -178,14 +178,14 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
178
178
|
}
|
|
179
179
|
}, B = (m, f) => {
|
|
180
180
|
if (m.stopPropagation(), j && Array.isArray(l)) {
|
|
181
|
-
const
|
|
182
|
-
u(
|
|
181
|
+
const r = l.filter((v, i) => i !== f);
|
|
182
|
+
u(r.length > 0 ? r : null);
|
|
183
183
|
} else
|
|
184
184
|
u(null);
|
|
185
185
|
}, F = () => {
|
|
186
186
|
var m;
|
|
187
|
-
|
|
188
|
-
},
|
|
187
|
+
s || j && d.length >= w || (m = p.current) == null || m.click();
|
|
188
|
+
}, L = j && d.length < w;
|
|
189
189
|
return /* @__PURE__ */ e.jsxs(a, { sx: { display: "flex", alignItems: "center", gap: 0.75 }, children: [
|
|
190
190
|
/* @__PURE__ */ e.jsx(
|
|
191
191
|
"input",
|
|
@@ -195,7 +195,7 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
195
195
|
accept: "image/*",
|
|
196
196
|
multiple: j,
|
|
197
197
|
onChange: h,
|
|
198
|
-
disabled:
|
|
198
|
+
disabled: s,
|
|
199
199
|
style: { display: "none" }
|
|
200
200
|
}
|
|
201
201
|
),
|
|
@@ -208,12 +208,12 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
208
208
|
width: 50,
|
|
209
209
|
height: 50,
|
|
210
210
|
border: 1,
|
|
211
|
-
borderColor:
|
|
211
|
+
borderColor: s ? "action.disabled" : "divider",
|
|
212
212
|
borderRadius: 1,
|
|
213
213
|
display: "flex",
|
|
214
214
|
alignItems: "center",
|
|
215
215
|
justifyContent: "center",
|
|
216
|
-
cursor:
|
|
216
|
+
cursor: s ? "not-allowed" : "default",
|
|
217
217
|
position: "relative",
|
|
218
218
|
overflow: "hidden",
|
|
219
219
|
transition: "all 0.2s"
|
|
@@ -232,10 +232,10 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
),
|
|
235
|
-
!
|
|
235
|
+
!s && b === f && /* @__PURE__ */ e.jsx(
|
|
236
236
|
a,
|
|
237
237
|
{
|
|
238
|
-
onClick: (
|
|
238
|
+
onClick: (r) => B(r, f),
|
|
239
239
|
sx: {
|
|
240
240
|
position: "absolute",
|
|
241
241
|
top: 0,
|
|
@@ -246,14 +246,14 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
246
246
|
alignItems: "center",
|
|
247
247
|
justifyContent: "center"
|
|
248
248
|
},
|
|
249
|
-
children: /* @__PURE__ */ e.jsx(A, { onClick: (
|
|
249
|
+
children: /* @__PURE__ */ e.jsx(A, { onClick: (r) => B(r, f), children: /* @__PURE__ */ e.jsx(Q, {}) })
|
|
250
250
|
}
|
|
251
251
|
)
|
|
252
252
|
]
|
|
253
253
|
},
|
|
254
254
|
f
|
|
255
255
|
)),
|
|
256
|
-
(d.length === 0 ||
|
|
256
|
+
(d.length === 0 || L) && /* @__PURE__ */ e.jsx(
|
|
257
257
|
a,
|
|
258
258
|
{
|
|
259
259
|
onClick: F,
|
|
@@ -261,12 +261,12 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
261
261
|
width: 50,
|
|
262
262
|
height: 50,
|
|
263
263
|
border: 1,
|
|
264
|
-
borderColor:
|
|
264
|
+
borderColor: s ? "action.disabled" : "divider",
|
|
265
265
|
borderRadius: 1,
|
|
266
266
|
display: "flex",
|
|
267
267
|
alignItems: "center",
|
|
268
268
|
justifyContent: "center",
|
|
269
|
-
cursor:
|
|
269
|
+
cursor: s ? "not-allowed" : "pointer",
|
|
270
270
|
transition: "all 0.2s",
|
|
271
271
|
"&:hover": {
|
|
272
272
|
bgcolor: "action.hover"
|
|
@@ -277,14 +277,14 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
277
277
|
{
|
|
278
278
|
sx: {
|
|
279
279
|
fontSize: 20,
|
|
280
|
-
color:
|
|
280
|
+
color: s ? "action.disabled" : "divider"
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
)
|
|
284
284
|
}
|
|
285
285
|
)
|
|
286
286
|
] });
|
|
287
|
-
}), ye = g.memo(({ input: t, value: l, onChange: u, onFocus:
|
|
287
|
+
}), ye = g.memo(({ input: t, value: l, onChange: u, onFocus: s, onBlur: p, disabled: d }) => /* @__PURE__ */ e.jsxs(
|
|
288
288
|
a,
|
|
289
289
|
{
|
|
290
290
|
sx: {
|
|
@@ -300,7 +300,7 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
300
300
|
{
|
|
301
301
|
checked: l ?? t.defaultValue ?? !1,
|
|
302
302
|
onChange: (c) => u(c.target.checked),
|
|
303
|
-
onFocus:
|
|
303
|
+
onFocus: s,
|
|
304
304
|
onBlur: p,
|
|
305
305
|
disabled: d,
|
|
306
306
|
size: "small"
|
|
@@ -308,7 +308,7 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
308
308
|
)
|
|
309
309
|
]
|
|
310
310
|
}
|
|
311
|
-
)),
|
|
311
|
+
)), E = (t) => {
|
|
312
312
|
switch (t.input.type) {
|
|
313
313
|
case "textarea":
|
|
314
314
|
return /* @__PURE__ */ e.jsx(fe, { ...t });
|
|
@@ -325,11 +325,11 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
325
325
|
default:
|
|
326
326
|
return null;
|
|
327
327
|
}
|
|
328
|
-
},
|
|
328
|
+
}, N = ({
|
|
329
329
|
inputs: t = [],
|
|
330
330
|
onProcess: l,
|
|
331
331
|
onReset: u,
|
|
332
|
-
onDownload:
|
|
332
|
+
onDownload: s,
|
|
333
333
|
processing: p = !1,
|
|
334
334
|
uploading: d = !1,
|
|
335
335
|
inputValues: c = {},
|
|
@@ -340,10 +340,10 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
340
340
|
getInputDisabled: h,
|
|
341
341
|
processTooltip: B = "Process",
|
|
342
342
|
downloadTooltip: F = "Download",
|
|
343
|
-
resetTooltip:
|
|
343
|
+
resetTooltip: L = "Reset",
|
|
344
344
|
infoTooltip: m = "Information",
|
|
345
345
|
infoTitle: f = "Tool Information",
|
|
346
|
-
infoContent:
|
|
346
|
+
infoContent: r,
|
|
347
347
|
position: v = "bottom",
|
|
348
348
|
relative: i = !1
|
|
349
349
|
}) => {
|
|
@@ -351,7 +351,7 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
351
351
|
if (!o.required) return !0;
|
|
352
352
|
const n = c[o.key];
|
|
353
353
|
return o.type === "textarea" ? n && typeof n == "string" && n.trim() !== "" : o.type === "number" || o.type === "slider" ? n != null : o.type === "select" ? n != null && n !== "" : !0;
|
|
354
|
-
}), [t, c]), { imageInputs: z, textareaInputs: W, paramInputs:
|
|
354
|
+
}), [t, c]), { imageInputs: z, textareaInputs: W, paramInputs: D } = H(() => t.reduce(
|
|
355
355
|
(o, n) => (n.type === "image" ? o.imageInputs.push(n) : n.type === "textarea" ? o.textareaInputs.push(n) : o.paramInputs.push(n), o),
|
|
356
356
|
{
|
|
357
357
|
imageInputs: [],
|
|
@@ -403,7 +403,7 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
403
403
|
onBlur: k,
|
|
404
404
|
disabled: y
|
|
405
405
|
}) }, o.key) : /* @__PURE__ */ e.jsx(
|
|
406
|
-
|
|
406
|
+
E,
|
|
407
407
|
{
|
|
408
408
|
input: o,
|
|
409
409
|
value: n,
|
|
@@ -425,7 +425,7 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
425
425
|
gap: 2,
|
|
426
426
|
flex: 1
|
|
427
427
|
},
|
|
428
|
-
children: (z.length > 0 ||
|
|
428
|
+
children: (z.length > 0 || D.length > 0) && /* @__PURE__ */ e.jsxs(a, { sx: { display: "flex", alignItems: "flex-end", gap: 1.5 }, children: [
|
|
429
429
|
z.map((o) => {
|
|
430
430
|
const n = c[o.key], y = (h == null ? void 0 : h(o.key)) ?? !1;
|
|
431
431
|
return o.renderInput ? /* @__PURE__ */ e.jsx(a, { children: o.renderInput({
|
|
@@ -435,7 +435,7 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
435
435
|
onBlur: k,
|
|
436
436
|
disabled: y
|
|
437
437
|
}) }, o.key) : /* @__PURE__ */ e.jsx(
|
|
438
|
-
|
|
438
|
+
E,
|
|
439
439
|
{
|
|
440
440
|
input: o,
|
|
441
441
|
value: n,
|
|
@@ -447,7 +447,7 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
447
447
|
o.key
|
|
448
448
|
);
|
|
449
449
|
}),
|
|
450
|
-
|
|
450
|
+
D.map((o) => {
|
|
451
451
|
const n = c[o.key], y = (h == null ? void 0 : h(o.key)) ?? !1;
|
|
452
452
|
return o.renderInput ? /* @__PURE__ */ e.jsx(a, { children: o.renderInput({
|
|
453
453
|
value: n,
|
|
@@ -456,7 +456,7 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
456
456
|
onBlur: k,
|
|
457
457
|
disabled: y
|
|
458
458
|
}) }, o.key) : /* @__PURE__ */ e.jsx(
|
|
459
|
-
|
|
459
|
+
E,
|
|
460
460
|
{
|
|
461
461
|
input: o,
|
|
462
462
|
value: n,
|
|
@@ -471,12 +471,12 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
471
471
|
] })
|
|
472
472
|
}
|
|
473
473
|
),
|
|
474
|
-
(z.length > 0 ||
|
|
474
|
+
(z.length > 0 || D.length > 0) && /* @__PURE__ */ e.jsx(oe, { orientation: "vertical", flexItem: !0, sx: { mx: 0.5, flexShrink: 0 } }),
|
|
475
475
|
/* @__PURE__ */ e.jsxs(a, { sx: { display: "flex", alignItems: "center", gap: 0.75, ml: "auto" }, children: [
|
|
476
476
|
R,
|
|
477
|
-
|
|
478
|
-
/* @__PURE__ */ e.jsx(_, { title: F, children: /* @__PURE__ */ e.jsx(A, { onClick:
|
|
479
|
-
/* @__PURE__ */ e.jsx(_, { title:
|
|
477
|
+
r && /* @__PURE__ */ e.jsx(_, { title: m, children: /* @__PURE__ */ e.jsx(A, { onClick: X, children: /* @__PURE__ */ e.jsx(ce, {}) }) }),
|
|
478
|
+
/* @__PURE__ */ e.jsx(_, { title: F, children: /* @__PURE__ */ e.jsx(A, { onClick: s, children: /* @__PURE__ */ e.jsx(Y, {}) }) }),
|
|
479
|
+
/* @__PURE__ */ e.jsx(_, { title: L, children: /* @__PURE__ */ e.jsx(A, { onClick: u, children: /* @__PURE__ */ e.jsx(ue, {}) }) }),
|
|
480
480
|
!j && /* @__PURE__ */ e.jsx(_, { title: B, children: /* @__PURE__ */ e.jsx("span", { children: /* @__PURE__ */ e.jsx(
|
|
481
481
|
A,
|
|
482
482
|
{
|
|
@@ -484,7 +484,7 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
484
484
|
disabled: w || !O || d || p,
|
|
485
485
|
size: "large",
|
|
486
486
|
children: /* @__PURE__ */ e.jsx(
|
|
487
|
-
|
|
487
|
+
de,
|
|
488
488
|
{
|
|
489
489
|
color: w || !O || d || p ? "disabled" : "primary"
|
|
490
490
|
}
|
|
@@ -496,22 +496,22 @@ const fe = g.memo(({ input: t, value: l, onChange: u, onFocus: r, onBlur: p, dis
|
|
|
496
496
|
]
|
|
497
497
|
}
|
|
498
498
|
),
|
|
499
|
-
|
|
499
|
+
r && /* @__PURE__ */ e.jsxs(ne, { open: I, onClose: G, maxWidth: "sm", fullWidth: !0, children: [
|
|
500
500
|
/* @__PURE__ */ e.jsx(le, { children: f }),
|
|
501
|
-
/* @__PURE__ */ e.jsx(ae, { children:
|
|
501
|
+
/* @__PURE__ */ e.jsx(ae, { children: r })
|
|
502
502
|
] })
|
|
503
503
|
]
|
|
504
504
|
}
|
|
505
505
|
);
|
|
506
|
-
return !i && typeof window < "u" ?
|
|
506
|
+
return !i && typeof window < "u" ? se(U, document.body) : U;
|
|
507
507
|
};
|
|
508
|
-
|
|
508
|
+
N.displayName = "SAiToolBar";
|
|
509
509
|
try {
|
|
510
|
-
|
|
510
|
+
M.displayName = "SAiToolBarInputType", M.__docgenInfo = { description: "Supported input types for SAiToolBar", displayName: "SAiToolBarInputType", props: {} };
|
|
511
511
|
} catch {
|
|
512
512
|
}
|
|
513
513
|
try {
|
|
514
|
-
|
|
514
|
+
N.displayName = "SAiToolBar", N.__docgenInfo = { description: `A dynamic floating toolbar for AI tools with inputs and action buttons.
|
|
515
515
|
Features multiple input types, built-in validation, and portal rendering for proper z-index handling.`, displayName: "SAiToolBar", props: { inputs: { defaultValue: { value: "[]" }, description: "Configuration for input fields", name: "inputs", required: !1, type: { name: "SAiToolBarInput[]" } }, onProcess: { defaultValue: null, description: "Callback when process button is clicked", name: "onProcess", required: !1, type: { name: "(() => void)" } }, onReset: { defaultValue: null, description: "Callback when reset button is clicked", name: "onReset", required: !1, type: { name: "(() => void)" } }, onDownload: { defaultValue: null, description: "Callback when download button is clicked", name: "onDownload", required: !1, type: { name: "(() => void)" } }, processing: { defaultValue: { value: "false" }, description: "Whether the toolbar is in processing state", name: "processing", required: !1, type: { name: "boolean" } }, uploading: { defaultValue: { value: "false" }, description: "Whether the toolbar is in uploading state", name: "uploading", required: !1, type: { name: "boolean" } }, inputValues: { defaultValue: { value: "{}" }, description: "Input values controlled externally", name: "inputValues", required: !1, type: { name: "Record<string, SAiToolBarValue>" } }, onInputChange: { defaultValue: null, description: "Callback when input values change", name: "onInputChange", required: !1, type: { name: "((key: string, value: SAiToolBarValue, file?: File) => void)" } }, customActionButtons: { defaultValue: null, description: "Custom action buttons between inputs and standard actions", name: "customActionButtons", required: !1, type: { name: "ReactNode" } }, hideProcessButton: { defaultValue: { value: "false" }, description: "Hide the main process button", name: "hideProcessButton", required: !1, type: { name: "boolean" } }, processButtonDisabled: { defaultValue: { value: "false" }, description: "Override to disable the process button", name: "processButtonDisabled", required: !1, type: { name: "boolean" } }, getInputDisabled: { defaultValue: null, description: "Function to check if an input should be disabled", name: "getInputDisabled", required: !1, type: { name: "((inputKey: string) => boolean)" } }, processTooltip: { defaultValue: { value: "Process" }, description: "Tooltip for process button", name: "processTooltip", required: !1, type: { name: "string" } }, downloadTooltip: { defaultValue: { value: "Download" }, description: "Tooltip for download button", name: "downloadTooltip", required: !1, type: { name: "string" } }, resetTooltip: { defaultValue: { value: "Reset" }, description: "Tooltip for reset button", name: "resetTooltip", required: !1, type: { name: "string" } }, infoTooltip: { defaultValue: { value: "Information" }, description: "Tooltip for info button", name: "infoTooltip", required: !1, type: { name: "string" } }, infoTitle: { defaultValue: { value: "Tool Information" }, description: "Info dialog title", name: "infoTitle", required: !1, type: { name: "string" } }, infoContent: { defaultValue: null, description: "Info dialog content", name: "infoContent", required: !1, type: { name: "ReactNode" } }, position: { defaultValue: { value: "bottom" }, description: "Position of the toolbar", name: "position", required: !1, type: { name: "enum", value: [{ value: '"top"' }, { value: '"bottom"' }] } }, relative: { defaultValue: { value: "false" }, description: "Use relative positioning within container instead of fixed viewport positioning", name: "relative", required: !1, type: { name: "boolean" } } } };
|
|
516
516
|
} catch {
|
|
517
517
|
}
|
|
@@ -521,7 +521,7 @@ Features multiple input types, built-in validation, and portal rendering for pro
|
|
|
521
521
|
} catch {
|
|
522
522
|
}
|
|
523
523
|
export {
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
524
|
+
N as SAiToolBar,
|
|
525
|
+
M as SAiToolBarInputType,
|
|
526
|
+
N as default
|
|
527
527
|
};
|
|
@@ -39,11 +39,11 @@ const l = b(
|
|
|
39
39
|
);
|
|
40
40
|
l.displayName = "SBreadcrumbs";
|
|
41
41
|
try {
|
|
42
|
-
l.displayName = "SBreadcrumbs", l.__docgenInfo = { description: "A breadcrumb navigation component for displaying hierarchical navigation paths.", displayName: "SBreadcrumbs", props: {
|
|
42
|
+
l.displayName = "SBreadcrumbs", l.__docgenInfo = { description: "A breadcrumb navigation component for displaying hierarchical navigation paths.", displayName: "SBreadcrumbs", props: { sx: { defaultValue: null, description: "System prop for custom styling", name: "sx", required: !1, type: { name: "SxProps<Theme>" } }, separator: { defaultValue: { value: '<ChevronRightIcon fontSize="small" />' }, description: "Custom separator element between breadcrumb items", name: "separator", required: !1, type: { name: "ReactNode" } }, LinkComponent: { defaultValue: null, description: "Custom link component (e.g., React Router Link) for navigation", name: "LinkComponent", required: !1, type: { name: "ElementType<any, keyof IntrinsicElements>" } }, items: { defaultValue: null, description: "Array of breadcrumb items to display", name: "items", required: !0, type: { name: "BreadcrumbItem[]" } }, currentColor: { defaultValue: { value: "text.primary" }, description: "Color of the current (active) breadcrumb item", name: "currentColor", required: !1, type: { name: "string" } }, linkColor: { defaultValue: { value: "primary.main" }, description: "Color of clickable breadcrumb links", name: "linkColor", required: !1, type: { name: "string" } } } };
|
|
43
43
|
} catch {
|
|
44
44
|
}
|
|
45
45
|
try {
|
|
46
|
-
sbreadcrumbs.displayName = "sbreadcrumbs", sbreadcrumbs.__docgenInfo = { description: "A breadcrumb navigation component for displaying hierarchical navigation paths.", displayName: "sbreadcrumbs", props: {
|
|
46
|
+
sbreadcrumbs.displayName = "sbreadcrumbs", sbreadcrumbs.__docgenInfo = { description: "A breadcrumb navigation component for displaying hierarchical navigation paths.", displayName: "sbreadcrumbs", props: { sx: { defaultValue: null, description: "System prop for custom styling", name: "sx", required: !1, type: { name: "SxProps<Theme>" } }, separator: { defaultValue: { value: '<ChevronRightIcon fontSize="small" />' }, description: "Custom separator element between breadcrumb items", name: "separator", required: !1, type: { name: "ReactNode" } }, LinkComponent: { defaultValue: null, description: "Custom link component (e.g., React Router Link) for navigation", name: "LinkComponent", required: !1, type: { name: "ElementType<any, keyof IntrinsicElements>" } }, items: { defaultValue: null, description: "Array of breadcrumb items to display", name: "items", required: !0, type: { name: "BreadcrumbItem[]" } }, currentColor: { defaultValue: { value: "text.primary" }, description: "Color of the current (active) breadcrumb item", name: "currentColor", required: !1, type: { name: "string" } }, linkColor: { defaultValue: { value: "primary.main" }, description: "Color of clickable breadcrumb links", name: "linkColor", required: !1, type: { name: "string" } } } };
|
|
47
47
|
} catch {
|
|
48
48
|
}
|
|
49
49
|
export {
|
|
@@ -32,11 +32,11 @@ const t = ({
|
|
|
32
32
|
] });
|
|
33
33
|
t.displayName = "SButtonLink";
|
|
34
34
|
try {
|
|
35
|
-
t.displayName = "SButtonLink", t.__docgenInfo = { description: "A flexible link component that combines text and a clickable link element.", displayName: "SButtonLink", props: { beforeText: { defaultValue: { value: "" }, description: "Text or element displayed before the main link", name: "beforeText", required: !1, type: { name: "ReactNode" } }, afterText: { defaultValue: { value: "" }, description: "Text or element displayed after the main link", name: "afterText", required: !1, type: { name: "ReactNode" } }, mainText: { defaultValue: { value: "" }, description: "The main clickable link text or element", name: "mainText", required: !1, type: { name: "ReactNode" } }, href: { defaultValue: { value: "#" }, description: "URL for the link (defaults to '#')", name: "href", required: !1, type: { name: "string" } }, component: { defaultValue: { value: "a" }, description: "Component to render the link as (e.g., RouterLink for client-side routing)", name: "component", required: !1, type: { name: "ElementType<any, keyof IntrinsicElements>" } }, target: { defaultValue: null, description: "Target attribute for the link (e.g., '_blank' for new tab)", name: "target", required: !1, type: { name: "string" } }, color: { defaultValue: { value: "text.secondary" }, description: "Color of the surrounding text", name: "color", required: !1, type: { name: '(string & {}) | OverridableStringUnion<"
|
|
35
|
+
t.displayName = "SButtonLink", t.__docgenInfo = { description: "A flexible link component that combines text and a clickable link element.", displayName: "SButtonLink", props: { beforeText: { defaultValue: { value: "" }, description: "Text or element displayed before the main link", name: "beforeText", required: !1, type: { name: "ReactNode" } }, afterText: { defaultValue: { value: "" }, description: "Text or element displayed after the main link", name: "afterText", required: !1, type: { name: "ReactNode" } }, mainText: { defaultValue: { value: "" }, description: "The main clickable link text or element", name: "mainText", required: !1, type: { name: "ReactNode" } }, href: { defaultValue: { value: "#" }, description: "URL for the link (defaults to '#')", name: "href", required: !1, type: { name: "string" } }, component: { defaultValue: { value: "a" }, description: "Component to render the link as (e.g., RouterLink for client-side routing)", name: "component", required: !1, type: { name: "ElementType<any, keyof IntrinsicElements>" } }, target: { defaultValue: null, description: "Target attribute for the link (e.g., '_blank' for new tab)", name: "target", required: !1, type: { name: "string" } }, color: { defaultValue: { value: "text.secondary" }, description: "Color of the surrounding text", name: "color", required: !1, type: { name: '(string & {}) | OverridableStringUnion<"error" | "primary" | "secondary" | "info" | "success" | "warning" | "textDisabled" | "textPrimary" | "textSecondary", TypographyPropsColorOverrides>' } }, linkColor: { defaultValue: { value: "undefined" }, description: "Color of the link itself (overrides default link color)", name: "linkColor", required: !1, type: { name: '(string & {}) | OverridableStringUnion<"error" | "primary" | "secondary" | "info" | "success" | "warning" | "textDisabled" | "textPrimary" | "textSecondary", TypographyPropsColorOverrides>' } }, lineHeight: { defaultValue: null, description: "Line height for the typography", name: "lineHeight", required: !1, type: { name: "ResponsiveStyleValue<LineHeight<string | number> | readonly NonNullable<LineHeight<string | number>>[]> | ((theme: Theme) => ResponsiveStyleValue<...>)" } }, variant: { defaultValue: { value: "body2" }, description: "Typography variant for the container text", name: "variant", required: !1, type: { name: "enum", value: [{ value: '"button"' }, { value: '"caption"' }, { value: '"h1"' }, { value: '"h2"' }, { value: '"h3"' }, { value: '"h4"' }, { value: '"h5"' }, { value: '"h6"' }, { value: '"inherit"' }, { value: '"body2"' }, { value: '"body1"' }, { value: '"subtitle1"' }, { value: '"subtitle2"' }, { value: '"overline"' }] } }, onClick: { defaultValue: null, description: "Click handler for the link", name: "onClick", required: !1, type: { name: "MouseEventHandler<HTMLAnchorElement>" } } } };
|
|
36
36
|
} catch {
|
|
37
37
|
}
|
|
38
38
|
try {
|
|
39
|
-
sbuttonlink.displayName = "sbuttonlink", sbuttonlink.__docgenInfo = { description: "A flexible link component that combines text and a clickable link element.", displayName: "sbuttonlink", props: { beforeText: { defaultValue: { value: "" }, description: "Text or element displayed before the main link", name: "beforeText", required: !1, type: { name: "ReactNode" } }, afterText: { defaultValue: { value: "" }, description: "Text or element displayed after the main link", name: "afterText", required: !1, type: { name: "ReactNode" } }, mainText: { defaultValue: { value: "" }, description: "The main clickable link text or element", name: "mainText", required: !1, type: { name: "ReactNode" } }, href: { defaultValue: { value: "#" }, description: "URL for the link (defaults to '#')", name: "href", required: !1, type: { name: "string" } }, component: { defaultValue: { value: "a" }, description: "Component to render the link as (e.g., RouterLink for client-side routing)", name: "component", required: !1, type: { name: "ElementType<any, keyof IntrinsicElements>" } }, target: { defaultValue: null, description: "Target attribute for the link (e.g., '_blank' for new tab)", name: "target", required: !1, type: { name: "string" } }, color: { defaultValue: { value: "text.secondary" }, description: "Color of the surrounding text", name: "color", required: !1, type: { name: '(string & {}) | OverridableStringUnion<"
|
|
39
|
+
sbuttonlink.displayName = "sbuttonlink", sbuttonlink.__docgenInfo = { description: "A flexible link component that combines text and a clickable link element.", displayName: "sbuttonlink", props: { beforeText: { defaultValue: { value: "" }, description: "Text or element displayed before the main link", name: "beforeText", required: !1, type: { name: "ReactNode" } }, afterText: { defaultValue: { value: "" }, description: "Text or element displayed after the main link", name: "afterText", required: !1, type: { name: "ReactNode" } }, mainText: { defaultValue: { value: "" }, description: "The main clickable link text or element", name: "mainText", required: !1, type: { name: "ReactNode" } }, href: { defaultValue: { value: "#" }, description: "URL for the link (defaults to '#')", name: "href", required: !1, type: { name: "string" } }, component: { defaultValue: { value: "a" }, description: "Component to render the link as (e.g., RouterLink for client-side routing)", name: "component", required: !1, type: { name: "ElementType<any, keyof IntrinsicElements>" } }, target: { defaultValue: null, description: "Target attribute for the link (e.g., '_blank' for new tab)", name: "target", required: !1, type: { name: "string" } }, color: { defaultValue: { value: "text.secondary" }, description: "Color of the surrounding text", name: "color", required: !1, type: { name: '(string & {}) | OverridableStringUnion<"error" | "primary" | "secondary" | "info" | "success" | "warning" | "textDisabled" | "textPrimary" | "textSecondary", TypographyPropsColorOverrides>' } }, linkColor: { defaultValue: { value: "undefined" }, description: "Color of the link itself (overrides default link color)", name: "linkColor", required: !1, type: { name: '(string & {}) | OverridableStringUnion<"error" | "primary" | "secondary" | "info" | "success" | "warning" | "textDisabled" | "textPrimary" | "textSecondary", TypographyPropsColorOverrides>' } }, lineHeight: { defaultValue: null, description: "Line height for the typography", name: "lineHeight", required: !1, type: { name: "ResponsiveStyleValue<LineHeight<string | number> | readonly NonNullable<LineHeight<string | number>>[]> | ((theme: Theme) => ResponsiveStyleValue<...>)" } }, variant: { defaultValue: { value: "body2" }, description: "Typography variant for the container text", name: "variant", required: !1, type: { name: "enum", value: [{ value: '"button"' }, { value: '"caption"' }, { value: '"h1"' }, { value: '"h2"' }, { value: '"h3"' }, { value: '"h4"' }, { value: '"h5"' }, { value: '"h6"' }, { value: '"inherit"' }, { value: '"body2"' }, { value: '"body1"' }, { value: '"subtitle1"' }, { value: '"subtitle2"' }, { value: '"overline"' }] } }, onClick: { defaultValue: null, description: "Click handler for the link", name: "onClick", required: !1, type: { name: "MouseEventHandler<HTMLAnchorElement>" } } } };
|
|
40
40
|
} catch {
|
|
41
41
|
}
|
|
42
42
|
export {
|
|
@@ -107,11 +107,11 @@ try {
|
|
|
107
107
|
} catch {
|
|
108
108
|
}
|
|
109
109
|
try {
|
|
110
|
-
i.displayName = "SCategoryCard", i.__docgenInfo = { description: "A stylish category card component that displays an image with an overlaid title.", displayName: "SCategoryCard", props: { image: { defaultValue: null, description: "URL or path to the category image source", name: "image", required: !0, type: { name: "string" } }, title: { defaultValue: null, description: "Display title for the category shown as overlay text", name: "title", required: !0, type: { name: "string" } }, width: { defaultValue: { value: "250" }, description: "Width of the category card", name: "width", required: !1, type: { name: "string | number" } }, height: { defaultValue: { value: "250" }, description: "Height of the category card", name: "height", required: !1, type: { name: "string | number" } }, alt: { defaultValue: { value: "category" }, description: "Alternative text for the image", name: "alt", required: !1, type: { name: "string" } }, titlePosition: { defaultValue: { value: "bottom" }, description: "Position of the title overlay on the image", name: "titlePosition", required: !1, type: { name: "enum", value: [{ value: '"top"' }, { value: '"bottom"' }, { value: '"center"' }] } }, titleAlignment: { defaultValue: { value: "center" }, description: "Text alignment of the title", name: "titleAlignment", required: !1, type: { name: "enum", value: [{ value: '"right"' }, { value: '"left"' }, { value: '"center"' }] } }, titleVariant: { defaultValue: { value: "body1" }, description: "Typography variant for the title text", name: "titleVariant", required: !1, type: { name: "enum", value: [{ value: '"button"' }, { value: '"caption"' }, { value: '"h1"' }, { value: '"h2"' }, { value: '"h3"' }, { value: '"h4"' }, { value: '"h5"' }, { value: '"h6"' }, { value: '"
|
|
110
|
+
i.displayName = "SCategoryCard", i.__docgenInfo = { description: "A stylish category card component that displays an image with an overlaid title.", displayName: "SCategoryCard", props: { image: { defaultValue: null, description: "URL or path to the category image source", name: "image", required: !0, type: { name: "string" } }, title: { defaultValue: null, description: "Display title for the category shown as overlay text", name: "title", required: !0, type: { name: "string" } }, width: { defaultValue: { value: "250" }, description: "Width of the category card", name: "width", required: !1, type: { name: "string | number" } }, height: { defaultValue: { value: "250" }, description: "Height of the category card", name: "height", required: !1, type: { name: "string | number" } }, alt: { defaultValue: { value: "category" }, description: "Alternative text for the image", name: "alt", required: !1, type: { name: "string" } }, titlePosition: { defaultValue: { value: "bottom" }, description: "Position of the title overlay on the image", name: "titlePosition", required: !1, type: { name: "enum", value: [{ value: '"top"' }, { value: '"bottom"' }, { value: '"center"' }] } }, titleAlignment: { defaultValue: { value: "center" }, description: "Text alignment of the title", name: "titleAlignment", required: !1, type: { name: "enum", value: [{ value: '"right"' }, { value: '"left"' }, { value: '"center"' }] } }, titleVariant: { defaultValue: { value: "body1" }, description: "Typography variant for the title text", name: "titleVariant", required: !1, type: { name: "enum", value: [{ value: '"button"' }, { value: '"caption"' }, { value: '"h1"' }, { value: '"h2"' }, { value: '"h3"' }, { value: '"h4"' }, { value: '"h5"' }, { value: '"h6"' }, { value: '"body2"' }, { value: '"body1"' }, { value: '"subtitle1"' }, { value: '"subtitle2"' }, { value: '"overline"' }] } }, titleColor: { defaultValue: null, description: "Color of the title text", name: "titleColor", required: !1, type: { name: "string" } }, titleBackgroundColor: { defaultValue: { value: "background.paper" }, description: "Background color of the title overlay", name: "titleBackgroundColor", required: !1, type: { name: "string" } }, titleOpacity: { defaultValue: { value: "1" }, description: "Opacity of the title overlay (0-1)", name: "titleOpacity", required: !1, type: { name: "number" } }, borderRadius: { defaultValue: { value: "2" }, description: "Border radius of the card and title overlay", name: "borderRadius", required: !1, type: { name: "string | number" } }, disableHoverEffect: { defaultValue: { value: "false" }, description: "Disable the hover zoom effect on the image", name: "disableHoverEffect", required: !1, type: { name: "boolean" } }, hoverScale: { defaultValue: { value: "1.1" }, description: "Scale factor for hover zoom effect", name: "hoverScale", required: !1, type: { name: "number" } }, onClick: { defaultValue: null, description: "Handler called when the card is clicked", name: "onClick", required: !1, type: { name: "((event: MouseEvent<HTMLDivElement, MouseEvent>) => void)" } }, sx: { defaultValue: null, description: "System prop for custom styling of the wrapper", name: "sx", required: !1, type: { name: "SxProps<Theme>" } }, titleSx: { defaultValue: null, description: "System prop for custom styling of the title overlay", name: "titleSx", required: !1, type: { name: "SxProps<Theme>" } }, imageSx: { defaultValue: null, description: "System prop for custom styling of the image", name: "imageSx", required: !1, type: { name: "SxProps<Theme>" } } } };
|
|
111
111
|
} catch {
|
|
112
112
|
}
|
|
113
113
|
try {
|
|
114
|
-
scategorycard.displayName = "scategorycard", scategorycard.__docgenInfo = { description: "A stylish category card component that displays an image with an overlaid title.", displayName: "scategorycard", props: { image: { defaultValue: null, description: "URL or path to the category image source", name: "image", required: !0, type: { name: "string" } }, title: { defaultValue: null, description: "Display title for the category shown as overlay text", name: "title", required: !0, type: { name: "string" } }, width: { defaultValue: { value: "250" }, description: "Width of the category card", name: "width", required: !1, type: { name: "string | number" } }, height: { defaultValue: { value: "250" }, description: "Height of the category card", name: "height", required: !1, type: { name: "string | number" } }, alt: { defaultValue: { value: "category" }, description: "Alternative text for the image", name: "alt", required: !1, type: { name: "string" } }, titlePosition: { defaultValue: { value: "bottom" }, description: "Position of the title overlay on the image", name: "titlePosition", required: !1, type: { name: "enum", value: [{ value: '"top"' }, { value: '"bottom"' }, { value: '"center"' }] } }, titleAlignment: { defaultValue: { value: "center" }, description: "Text alignment of the title", name: "titleAlignment", required: !1, type: { name: "enum", value: [{ value: '"right"' }, { value: '"left"' }, { value: '"center"' }] } }, titleVariant: { defaultValue: { value: "body1" }, description: "Typography variant for the title text", name: "titleVariant", required: !1, type: { name: "enum", value: [{ value: '"button"' }, { value: '"caption"' }, { value: '"h1"' }, { value: '"h2"' }, { value: '"h3"' }, { value: '"h4"' }, { value: '"h5"' }, { value: '"h6"' }, { value: '"
|
|
114
|
+
scategorycard.displayName = "scategorycard", scategorycard.__docgenInfo = { description: "A stylish category card component that displays an image with an overlaid title.", displayName: "scategorycard", props: { image: { defaultValue: null, description: "URL or path to the category image source", name: "image", required: !0, type: { name: "string" } }, title: { defaultValue: null, description: "Display title for the category shown as overlay text", name: "title", required: !0, type: { name: "string" } }, width: { defaultValue: { value: "250" }, description: "Width of the category card", name: "width", required: !1, type: { name: "string | number" } }, height: { defaultValue: { value: "250" }, description: "Height of the category card", name: "height", required: !1, type: { name: "string | number" } }, alt: { defaultValue: { value: "category" }, description: "Alternative text for the image", name: "alt", required: !1, type: { name: "string" } }, titlePosition: { defaultValue: { value: "bottom" }, description: "Position of the title overlay on the image", name: "titlePosition", required: !1, type: { name: "enum", value: [{ value: '"top"' }, { value: '"bottom"' }, { value: '"center"' }] } }, titleAlignment: { defaultValue: { value: "center" }, description: "Text alignment of the title", name: "titleAlignment", required: !1, type: { name: "enum", value: [{ value: '"right"' }, { value: '"left"' }, { value: '"center"' }] } }, titleVariant: { defaultValue: { value: "body1" }, description: "Typography variant for the title text", name: "titleVariant", required: !1, type: { name: "enum", value: [{ value: '"button"' }, { value: '"caption"' }, { value: '"h1"' }, { value: '"h2"' }, { value: '"h3"' }, { value: '"h4"' }, { value: '"h5"' }, { value: '"h6"' }, { value: '"body2"' }, { value: '"body1"' }, { value: '"subtitle1"' }, { value: '"subtitle2"' }, { value: '"overline"' }] } }, titleColor: { defaultValue: null, description: "Color of the title text", name: "titleColor", required: !1, type: { name: "string" } }, titleBackgroundColor: { defaultValue: { value: "background.paper" }, description: "Background color of the title overlay", name: "titleBackgroundColor", required: !1, type: { name: "string" } }, titleOpacity: { defaultValue: { value: "1" }, description: "Opacity of the title overlay (0-1)", name: "titleOpacity", required: !1, type: { name: "number" } }, borderRadius: { defaultValue: { value: "2" }, description: "Border radius of the card and title overlay", name: "borderRadius", required: !1, type: { name: "string | number" } }, disableHoverEffect: { defaultValue: { value: "false" }, description: "Disable the hover zoom effect on the image", name: "disableHoverEffect", required: !1, type: { name: "boolean" } }, hoverScale: { defaultValue: { value: "1.1" }, description: "Scale factor for hover zoom effect", name: "hoverScale", required: !1, type: { name: "number" } }, onClick: { defaultValue: null, description: "Handler called when the card is clicked", name: "onClick", required: !1, type: { name: "((event: MouseEvent<HTMLDivElement, MouseEvent>) => void)" } }, sx: { defaultValue: null, description: "System prop for custom styling of the wrapper", name: "sx", required: !1, type: { name: "SxProps<Theme>" } }, titleSx: { defaultValue: null, description: "System prop for custom styling of the title overlay", name: "titleSx", required: !1, type: { name: "SxProps<Theme>" } }, imageSx: { defaultValue: null, description: "System prop for custom styling of the image", name: "imageSx", required: !1, type: { name: "SxProps<Theme>" } } } };
|
|
115
115
|
} catch {
|
|
116
116
|
}
|
|
117
117
|
export {
|