@solostylist/ui-kit 1.0.175 → 1.0.176
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-DhTFpzoh.js → ArrowUpward-CEeqSc-C.js} +2 -2
- package/dist/{Box-Ha0cQ4KO.js → Box-CE3rycd-.js} +5 -5
- package/dist/ButtonBase-C_YYB9Ry.js +1099 -0
- package/dist/{ChevronLeft-CBuFk2Fh.js → ChevronLeft-6gdh4lRt.js} +2 -2
- package/dist/{ChevronRight-CnDWPrOm.js → ChevronRight-CC3l-wPC.js} +2 -2
- package/dist/{Close-BRlEKA2Q.js → Close-DOHlPcFK.js} +2 -2
- package/dist/{ContentCopy-7nFBtjhs.js → ContentCopy-2xxDThyB.js} +2 -2
- package/dist/DefaultPropsProvider-sk0uWcA6.js +64 -0
- package/dist/{Download-UsLvGg3y.js → Download-Chao5NQl.js} +2 -2
- package/dist/{ExpandMore-DTWX_mHf.js → ExpandMore-DIGPB4Mj.js} +2 -2
- package/dist/{Favorite-DS5Gpq2s.js → Favorite-wp65zwWq.js} +2 -2
- package/dist/{Menu-CWq-a1Wz.js → Menu-DZYzE2Mg.js} +908 -906
- package/dist/{MenuItem-DY_qFSPR.js → MenuItem-BXiIhfBS.js} +26 -25
- package/dist/Paper-DnctZB5U.js +689 -0
- package/dist/{Select-DabtQlJT.js → Select-DY7XGVsv.js} +2152 -2115
- package/dist/{Stack-Cq2r2NmC.js → Stack-BScsuyQy.js} +6 -6
- package/dist/{Typography-C8jwvSWe.js → Typography-9Kg27dDw.js} +84 -86
- package/dist/{_commonjsHelpers-B4e78b8K.js → _commonjsHelpers-ByX85dGu.js} +18 -13
- package/dist/assets/s-overlay-scrollbar.css +1 -9
- package/dist/createSvgIcon-BKymXuBG.js +242 -0
- package/dist/{createTheme-3Wd3hHrj.js → createTheme-f5g1s6ww.js} +859 -906
- package/dist/defaultTheme-LSr-S9un.js +5 -0
- package/dist/entries/carousel.d.ts +10 -0
- package/dist/entries/carousel.js +4 -0
- package/dist/entries/chat.d.ts +9 -0
- package/dist/entries/chat.js +4 -0
- package/dist/entries/code.d.ts +9 -0
- package/dist/entries/code.js +4 -0
- package/dist/entries/core.d.ts +100 -0
- package/dist/entries/core.js +122 -0
- package/dist/entries/dates.d.ts +16 -0
- package/dist/entries/dates.js +12 -0
- package/dist/entries/dropzone.d.ts +9 -0
- package/dist/entries/dropzone.js +4 -0
- package/dist/entries/editor.d.ts +12 -0
- package/dist/entries/editor.js +4 -0
- package/dist/entries/gallery.d.ts +17 -0
- package/dist/entries/gallery.js +13 -0
- package/dist/entries/i18n.d.ts +13 -0
- package/dist/entries/i18n.js +8 -0
- package/dist/entries/motion.d.ts +29 -0
- package/dist/entries/motion.js +28 -0
- package/dist/entries/scrollbar.d.ts +9 -0
- package/dist/entries/scrollbar.js +4 -0
- package/dist/entries/stripe.d.ts +10 -0
- package/dist/entries/stripe.js +10 -0
- package/dist/extendSxProp-DitxZ8We.js +36 -0
- package/dist/hooks/index.js +8 -9
- package/dist/hooks/use-is-passed-position.js +10 -10
- package/dist/{index-BGvzecIA.js → index-D3G5Rwl-.js} +0 -7
- package/dist/{index-CfKHZ86U.js → index-DtYP8YE7.js} +12 -13
- package/dist/{jsx-runtime-OVHDjVDe.js → jsx-runtime-tc70JA_2.js} +108 -128
- package/dist/main.d.ts +29 -145
- package/dist/main.js +187 -187
- package/dist/mergeSlotProps-CuzBQdlp.js +62 -0
- package/dist/resolveProps-BDH0VJjn.js +39 -0
- package/dist/s-accordion/package.json +5 -5
- package/dist/s-accordion/s-accordion.js +374 -358
- package/dist/s-action-overlay/package.json +5 -5
- package/dist/s-action-overlay/s-action-overlay.js +64 -79
- package/dist/s-ai-tool-bar/package.json +5 -5
- package/dist/s-ai-tool-bar/s-ai-tool-bar.js +260 -275
- package/dist/s-autocomplete/s-autocomplete.js +19 -25
- package/dist/s-avatar/package.json +5 -5
- package/dist/s-avatar/s-avatar.js +14 -25
- package/dist/s-blur-text/package.json +5 -5
- package/dist/s-blur-text/s-blur-text.js +55 -59
- package/dist/s-breadcrumbs/package.json +5 -5
- package/dist/s-breadcrumbs/s-breadcrumbs.js +31 -39
- package/dist/s-button/package.json +5 -5
- package/dist/s-button/s-button.js +7 -15
- package/dist/s-button-link/s-button-link.js +28 -36
- package/dist/s-carousel/package.json +4 -4
- package/dist/s-carousel/s-carousel.js +267 -280
- package/dist/s-category-card/package.json +4 -4
- package/dist/s-category-card/s-category-card.js +60 -77
- package/dist/s-chat-input/package.json +5 -5
- package/dist/s-chat-input/s-chat-input.js +84 -92
- package/dist/s-chat-message/s-chat-message.js +111 -120
- package/dist/s-checkbox/s-checkbox.js +12 -20
- package/dist/s-chip/package.json +5 -5
- package/dist/s-chip/s-chip.js +7 -15
- package/dist/s-chips/s-chips.js +47 -56
- package/dist/s-code-block/package.json +5 -5
- package/dist/s-code-block/s-code-block.js +35 -43
- package/dist/s-comment-message/package.json +5 -5
- package/dist/s-comment-message/s-comment-message.js +90 -94
- package/dist/s-copyable-text/s-copyable-text.js +24 -32
- package/dist/s-countdown/s-count-box.js +42 -50
- package/dist/s-countdown/s-count-down.js +79 -107
- package/dist/s-data-table/s-data-table.js +374 -384
- package/dist/s-date-picker/s-date-picker.js +164 -164
- package/dist/s-datetime-picker/s-datetime-picker.js +1599 -1603
- package/dist/s-dialog/s-dialog.js +24 -32
- package/dist/s-dialog-confirm/s-dialog-confirm.js +46 -50
- package/dist/s-dialog-message/s-dialog-message.js +40 -44
- package/dist/s-empty/s-empty.js +6 -14
- package/dist/s-error/s-error.js +9 -17
- package/dist/s-error-layout/s-error-layout.js +38 -47
- package/dist/s-file-dropzone/s-file-dropzone.js +55 -64
- package/dist/s-file-icon/s-file-icon.js +9 -13
- package/dist/s-flex-box/s-flex-box.js +6 -14
- package/dist/s-form/s-form.js +11 -19
- package/dist/s-gallery/index.js +3 -33
- package/dist/s-gallery/s-gallery.js +91 -114
- package/dist/s-glow-button/s-glow-button.js +22 -26
- package/dist/s-gradient-icon/s-gradient-icon.js +49 -59
- package/dist/s-i18n-provider/s-i18n-provider.js +17 -25
- package/dist/s-icon-button/s-icon-button.js +6 -14
- package/dist/s-image-comparison/package.json +5 -5
- package/dist/s-image-comparison/s-image-comparison.js +48 -53
- package/dist/s-image-modal/package.json +5 -5
- package/dist/s-image-modal/s-image-modal.js +137 -150
- package/dist/s-item-not-found/s-item-not-found.js +13 -22
- package/dist/s-label/s-label.js +12 -20
- package/dist/s-language-switcher/s-language-switcher.js +119 -141
- package/dist/s-lazy-image/index.js +2 -10
- package/dist/s-lazy-image/s-lazy-image.js +33 -37
- package/dist/s-localization-provider/s-localization-provider.js +368 -380
- package/dist/s-moving-border/s-moving-border.js +52 -67
- package/dist/s-multi-select/s-multi-select.js +43 -51
- package/dist/s-no-ssr/s-no-ssr.js +13 -21
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +12 -16
- package/dist/s-pagination/s-pagination.js +13 -17
- package/dist/s-pixel-reveal/package.json +5 -5
- package/dist/s-pixel-reveal/s-pixel-reveal.js +92 -99
- package/dist/s-radial-pulse-animate/package.json +5 -5
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +40 -48
- package/dist/s-rating/package.json +5 -5
- package/dist/s-rating/s-rating.js +7 -15
- package/dist/s-review/package.json +5 -5
- package/dist/s-review/s-review.js +101 -106
- package/dist/s-scroll-reveal/package.json +5 -5
- package/dist/s-scroll-reveal/s-scroll-reveal.js +40 -48
- package/dist/s-scroll-to-top/package.json +5 -5
- package/dist/s-scroll-to-top/s-scroll-to-top.js +20 -30
- package/dist/s-scroll-velocity/package.json +5 -5
- package/dist/s-scroll-velocity/s-scroll-velocity.js +5 -19
- package/dist/s-scroll-velocity/scroll-velocity-container.js +18 -27
- package/dist/s-scroll-velocity/scroll-velocity-row.js +62 -71
- package/dist/s-select/s-select.js +67 -75
- package/dist/s-select-list/s-select-list.js +28 -32
- package/dist/s-skeleton/s-skeleton.js +20 -28
- package/dist/s-snackbar-message/s-snackbar-message.js +36 -40
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +31 -35
- package/dist/s-stripe/s-stripe-cvc.js +8 -12
- package/dist/s-stripe/s-stripe-expiry.js +8 -12
- package/dist/s-stripe/s-stripe-number.js +8 -12
- package/dist/s-stripe/s-stripe.d.ts +2 -2
- package/dist/s-stripe/s-stripe.js +17 -26
- package/dist/s-stripe/stripe-input.js +25 -29
- package/dist/s-tabs/package.json +3 -3
- package/dist/s-tabs/s-tab-panel.js +17 -25
- package/dist/s-tabs/s-tab.js +5 -9
- package/dist/s-tabs/s-tabs.js +19 -27
- package/dist/s-text-editor/s-text-editor-toolbar.js +73 -88
- package/dist/s-text-editor/s-text-editor.js +33 -45
- package/dist/s-text-field/s-text-field.js +31 -40
- package/dist/s-text-shimmer/package.json +4 -4
- package/dist/s-text-shimmer/s-text-shimmer.js +19 -27
- package/dist/s-text-truncation/s-text-truncation.js +24 -32
- package/dist/s-theme-demo/package.json +5 -5
- package/dist/s-theme-demo/s-theme-demo.js +219 -234
- package/dist/s-theme-provider/s-theme-provider.js +37 -45
- package/dist/s-theme-switch/package.json +4 -4
- package/dist/s-theme-switch/s-theme-switch.js +19 -23
- package/dist/s-tip/s-tip.js +14 -22
- package/dist/s-two-pane-layout/index.js +2 -10
- package/dist/s-two-pane-layout/s-two-pane-layout.js +47 -55
- package/dist/s-typewriter-text/package.json +5 -5
- package/dist/s-typewriter-text/s-typewriter-text.js +27 -35
- package/dist/s-zoom-image/index.js +2 -10
- package/dist/s-zoom-image/package.json +5 -5
- package/dist/s-zoom-image/s-zoom-image.js +53 -62
- package/dist/styled-B0KflPi-.js +203 -0
- package/dist/theme/components/alert.d.ts +484 -264
- package/dist/theme/components/avatar.js +2 -2
- package/dist/theme/components/button.d.ts +726 -396
- package/dist/theme/components/chip.js +2 -2
- package/dist/theme/components/icon-button.d.ts +726 -396
- package/dist/theme/customizations/data-display.js +1 -1
- package/dist/theme/customizations/inputs.js +2 -2
- package/dist/theme/customizations/navigation.js +2 -2
- package/dist/theme/theme-primitives.d.ts +8 -246
- package/dist/theme/theme-primitives.js +76 -87
- package/dist/{typographyClasses-DDyl9mok.js → typographyClasses-C7fhAsUD.js} +4 -4
- package/dist/{useMobilePicker-C1RZZUWr.js → useMobilePicker-C4AYe0Ch.js} +11249 -11231
- package/dist/{useTheme-B5czKfC4.js → useTheme-CtdhfT4P.js} +1 -1
- package/dist/{useThemeProps-DqA5BinV.js → useThemeProps-_apS-Aua.js} +2 -2
- package/dist/utils/dayjs.js +7 -7
- package/dist/utils/logger.js +29 -32
- package/dist/{warning-BCwEnWrE.js → warning-DnPRVtW6.js} +4 -4
- package/package.json +240 -81
- package/README.md +0 -13
- package/dist/ButtonBase-DfTfJ_ou.js +0 -1105
- package/dist/DefaultPropsProvider-CaCsvQaq.js +0 -78
- package/dist/Paper-hkbPWyBT.js +0 -553
- package/dist/createSvgIcon-DxwgGAVe.js +0 -247
- package/dist/defaultTheme-fEi1x1Gb.js +0 -5
- package/dist/extendSxProp-BKWjdW12.js +0 -37
- package/dist/mergeSlotProps-Dl_rJtoN.js +0 -62
- package/dist/resolveProps-61uUKnlS.js +0 -52
- package/dist/styled-B0Z4EDy9.js +0 -206
|
@@ -1,41 +1,40 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import { Box as
|
|
4
|
-
import { AnimatePresence as
|
|
5
|
-
import { SImageModal as
|
|
6
|
-
import "../s-lazy-image/
|
|
7
|
-
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
return v(() => {
|
|
1
|
+
import { j as t } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { useState as g, useId as $, useEffect as b, useRef as D } from "react";
|
|
3
|
+
import { Box as p, Paper as w, Skeleton as E, Typography as j } from "@mui/material";
|
|
4
|
+
import { AnimatePresence as M, motion as I } from "framer-motion";
|
|
5
|
+
import { SImageModal as V } from "../s-image-modal/s-image-modal.js";
|
|
6
|
+
import F from "../s-lazy-image/s-lazy-image.js";
|
|
7
|
+
const P = ({ item: s, sx: o, onClick: r }) => {
|
|
8
|
+
const e = D(null), [n, a] = g(!1), [u, h] = g(!0);
|
|
9
|
+
return b(() => {
|
|
11
10
|
const l = {
|
|
12
11
|
root: null,
|
|
13
12
|
rootMargin: "50px",
|
|
14
13
|
// Start loading 50px before entering viewport
|
|
15
14
|
threshold: 0.1
|
|
16
15
|
// Trigger when 10% of video is visible
|
|
17
|
-
},
|
|
18
|
-
|
|
16
|
+
}, f = new IntersectionObserver((c) => {
|
|
17
|
+
c.forEach((i) => a(i.isIntersecting));
|
|
19
18
|
}, l);
|
|
20
|
-
return e.current &&
|
|
21
|
-
e.current &&
|
|
19
|
+
return e.current && f.observe(e.current), () => {
|
|
20
|
+
e.current && f.unobserve(e.current);
|
|
22
21
|
};
|
|
23
|
-
}, []),
|
|
22
|
+
}, []), b(() => {
|
|
24
23
|
let l = !0;
|
|
25
24
|
return n ? (async () => {
|
|
26
25
|
if (!(!e.current || !n || !l))
|
|
27
26
|
try {
|
|
28
|
-
e.current.readyState >= 3 ? (
|
|
29
|
-
e.current && (e.current.oncanplay = () =>
|
|
30
|
-
}), l && (
|
|
31
|
-
} catch (
|
|
32
|
-
console.warn("Video playback failed:",
|
|
27
|
+
e.current.readyState >= 3 ? (h(!1), await e.current.play()) : (h(!0), await new Promise((c) => {
|
|
28
|
+
e.current && (e.current.oncanplay = () => c());
|
|
29
|
+
}), l && (h(!1), await e.current.play()));
|
|
30
|
+
} catch (c) {
|
|
31
|
+
console.warn("Video playback failed:", c);
|
|
33
32
|
}
|
|
34
33
|
})() : e.current && e.current.pause(), () => {
|
|
35
34
|
l = !1, e.current && (e.current.pause(), e.current.removeAttribute("src"), e.current.load());
|
|
36
35
|
};
|
|
37
|
-
}, [n]),
|
|
38
|
-
|
|
36
|
+
}, [n]), s.type === "video" ? /* @__PURE__ */ t.jsxs(
|
|
37
|
+
p,
|
|
39
38
|
{
|
|
40
39
|
sx: {
|
|
41
40
|
position: "relative",
|
|
@@ -45,8 +44,8 @@ const b = ({ item: t, sx: o, onClick: r }) => {
|
|
|
45
44
|
...o
|
|
46
45
|
},
|
|
47
46
|
children: [
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
|
|
47
|
+
/* @__PURE__ */ t.jsx(
|
|
48
|
+
p,
|
|
50
49
|
{
|
|
51
50
|
component: "video",
|
|
52
51
|
ref: e,
|
|
@@ -59,17 +58,17 @@ const b = ({ item: t, sx: o, onClick: r }) => {
|
|
|
59
58
|
width: "100%",
|
|
60
59
|
height: "100%",
|
|
61
60
|
objectFit: "cover",
|
|
62
|
-
opacity:
|
|
61
|
+
opacity: u ? 0.8 : 1,
|
|
63
62
|
transition: "opacity 0.2s",
|
|
64
63
|
transform: "translateZ(0)",
|
|
65
64
|
willChange: "transform",
|
|
66
65
|
display: "block"
|
|
67
66
|
},
|
|
68
|
-
children: /* @__PURE__ */
|
|
67
|
+
children: /* @__PURE__ */ t.jsx("source", { src: s.url, type: "video/mp4" })
|
|
69
68
|
}
|
|
70
69
|
),
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
u && /* @__PURE__ */ t.jsx(
|
|
71
|
+
p,
|
|
73
72
|
{
|
|
74
73
|
sx: {
|
|
75
74
|
position: "absolute",
|
|
@@ -79,8 +78,8 @@ const b = ({ item: t, sx: o, onClick: r }) => {
|
|
|
79
78
|
justifyContent: "center",
|
|
80
79
|
bgcolor: "action.disabled"
|
|
81
80
|
},
|
|
82
|
-
children: /* @__PURE__ */
|
|
83
|
-
|
|
81
|
+
children: /* @__PURE__ */ t.jsx(
|
|
82
|
+
p,
|
|
84
83
|
{
|
|
85
84
|
sx: {
|
|
86
85
|
width: 24,
|
|
@@ -100,15 +99,15 @@ const b = ({ item: t, sx: o, onClick: r }) => {
|
|
|
100
99
|
)
|
|
101
100
|
]
|
|
102
101
|
}
|
|
103
|
-
) : /* @__PURE__ */
|
|
104
|
-
|
|
102
|
+
) : /* @__PURE__ */ t.jsx(p, { onClick: r, sx: { width: "100%", height: "100%", ...o }, children: /* @__PURE__ */ t.jsx(
|
|
103
|
+
F,
|
|
105
104
|
{
|
|
106
|
-
src:
|
|
107
|
-
alt:
|
|
105
|
+
src: s.url,
|
|
106
|
+
alt: s.title || "",
|
|
108
107
|
width: "100%",
|
|
109
108
|
height: "100%",
|
|
110
109
|
style: {
|
|
111
|
-
objectFit: o
|
|
110
|
+
objectFit: o?.objectFit ? o.objectFit : "cover",
|
|
112
111
|
cursor: r ? "pointer" : "default",
|
|
113
112
|
display: "block",
|
|
114
113
|
width: "100%",
|
|
@@ -116,54 +115,54 @@ const b = ({ item: t, sx: o, onClick: r }) => {
|
|
|
116
115
|
}
|
|
117
116
|
}
|
|
118
117
|
) });
|
|
119
|
-
},
|
|
118
|
+
}, k = (s, o) => {
|
|
120
119
|
let r = 1, e = 2;
|
|
121
120
|
switch (o) {
|
|
122
121
|
case "grid":
|
|
123
122
|
r = 1, e = 2;
|
|
124
123
|
break;
|
|
125
124
|
case "masonry":
|
|
126
|
-
r = 1, e =
|
|
125
|
+
r = 1, e = s % 3 === 0 ? 3 : s % 2 === 0 ? 2 : 4;
|
|
127
126
|
break;
|
|
128
127
|
case "spotlight":
|
|
129
|
-
|
|
128
|
+
s === 0 ? (r = 2, e = 4) : (r = 1, e = 2);
|
|
130
129
|
break;
|
|
131
130
|
case "featured":
|
|
132
|
-
|
|
131
|
+
s === 0 ? (r = 2, e = 6) : (r = 1, e = 2);
|
|
133
132
|
break;
|
|
134
133
|
case "highlight":
|
|
135
|
-
|
|
134
|
+
s === 0 ? (r = 3, e = 6) : (r = 1, e = 2);
|
|
136
135
|
break;
|
|
137
136
|
case "custom":
|
|
138
137
|
r = 1, e = 2;
|
|
139
138
|
break;
|
|
140
139
|
}
|
|
141
140
|
return { colSpan: r, rowSpan: e };
|
|
142
|
-
}, S = (
|
|
143
|
-
const { colSpan: n, rowSpan:
|
|
144
|
-
return { ...r, colSpan: n, rowSpan:
|
|
145
|
-
}),
|
|
146
|
-
mediaItems:
|
|
141
|
+
}, S = (s, o) => o === "custom" ? s : s.map((r, e) => {
|
|
142
|
+
const { colSpan: n, rowSpan: a } = k(e, o);
|
|
143
|
+
return { ...r, colSpan: n, rowSpan: a };
|
|
144
|
+
}), A = ({
|
|
145
|
+
mediaItems: s,
|
|
147
146
|
variant: o = "masonry",
|
|
148
147
|
loading: r = !1,
|
|
149
148
|
skeletonCount: e = 6
|
|
150
149
|
}) => {
|
|
151
|
-
const [n,
|
|
152
|
-
return
|
|
153
|
-
|
|
154
|
-
}, [
|
|
155
|
-
/* @__PURE__ */
|
|
156
|
-
|
|
150
|
+
const [n, a] = g(null), [u, h] = g(() => S(s, o)), [l, f] = g(!1), c = $();
|
|
151
|
+
return b(() => {
|
|
152
|
+
h(S(s, o));
|
|
153
|
+
}, [s, o]), /* @__PURE__ */ t.jsxs(p, { sx: { width: "100%", position: "relative", zIndex: 1 }, children: [
|
|
154
|
+
/* @__PURE__ */ t.jsx(
|
|
155
|
+
V,
|
|
157
156
|
{
|
|
158
157
|
selectedItem: n,
|
|
159
158
|
isOpen: !!n,
|
|
160
|
-
onClose: () =>
|
|
161
|
-
onItemChange:
|
|
162
|
-
mediaItems:
|
|
159
|
+
onClose: () => a(null),
|
|
160
|
+
onItemChange: a,
|
|
161
|
+
mediaItems: u
|
|
163
162
|
}
|
|
164
163
|
),
|
|
165
|
-
/* @__PURE__ */
|
|
166
|
-
|
|
164
|
+
/* @__PURE__ */ t.jsx(M, { mode: "wait", children: !n && /* @__PURE__ */ t.jsx(
|
|
165
|
+
I.div,
|
|
167
166
|
{
|
|
168
167
|
initial: "hidden",
|
|
169
168
|
animate: "visible",
|
|
@@ -176,8 +175,8 @@ const b = ({ item: t, sx: o, onClick: r }) => {
|
|
|
176
175
|
// Stagger child animations
|
|
177
176
|
}
|
|
178
177
|
},
|
|
179
|
-
children: /* @__PURE__ */
|
|
180
|
-
|
|
178
|
+
children: /* @__PURE__ */ t.jsx(
|
|
179
|
+
p,
|
|
181
180
|
{
|
|
182
181
|
sx: {
|
|
183
182
|
display: "grid",
|
|
@@ -191,10 +190,10 @@ const b = ({ item: t, sx: o, onClick: r }) => {
|
|
|
191
190
|
position: "relative"
|
|
192
191
|
// Ensure proper stacking context
|
|
193
192
|
},
|
|
194
|
-
children: r ? Array.from({ length: e }).map((i,
|
|
195
|
-
const { colSpan: x, rowSpan: y } =
|
|
196
|
-
return /* @__PURE__ */
|
|
197
|
-
|
|
193
|
+
children: r ? Array.from({ length: e }).map((i, d) => {
|
|
194
|
+
const { colSpan: x, rowSpan: y } = k(d, o);
|
|
195
|
+
return /* @__PURE__ */ t.jsx(
|
|
196
|
+
w,
|
|
198
197
|
{
|
|
199
198
|
sx: {
|
|
200
199
|
position: "relative",
|
|
@@ -203,8 +202,8 @@ const b = ({ item: t, sx: o, onClick: r }) => {
|
|
|
203
202
|
gridRow: `span ${y}`,
|
|
204
203
|
gridColumn: `span ${x}`
|
|
205
204
|
},
|
|
206
|
-
children: /* @__PURE__ */
|
|
207
|
-
|
|
205
|
+
children: /* @__PURE__ */ t.jsx(
|
|
206
|
+
E,
|
|
208
207
|
{
|
|
209
208
|
variant: "rectangular",
|
|
210
209
|
animation: "wave",
|
|
@@ -216,13 +215,13 @@ const b = ({ item: t, sx: o, onClick: r }) => {
|
|
|
216
215
|
}
|
|
217
216
|
)
|
|
218
217
|
},
|
|
219
|
-
|
|
218
|
+
d
|
|
220
219
|
);
|
|
221
|
-
}) :
|
|
222
|
-
|
|
220
|
+
}) : u.map((i, d) => /* @__PURE__ */ t.jsx(
|
|
221
|
+
I.div,
|
|
223
222
|
{
|
|
224
|
-
layoutId: `media-${i.id}-${
|
|
225
|
-
onClick: () => !l &&
|
|
223
|
+
layoutId: `media-${i.id}-${c}`,
|
|
224
|
+
onClick: () => !l && a(i),
|
|
226
225
|
variants: {
|
|
227
226
|
hidden: { y: 50, scale: 0.9, opacity: 0 },
|
|
228
227
|
visible: {
|
|
@@ -233,7 +232,7 @@ const b = ({ item: t, sx: o, onClick: r }) => {
|
|
|
233
232
|
type: "spring",
|
|
234
233
|
stiffness: 350,
|
|
235
234
|
damping: 25,
|
|
236
|
-
delay:
|
|
235
|
+
delay: d * 0.05
|
|
237
236
|
}
|
|
238
237
|
}
|
|
239
238
|
},
|
|
@@ -241,13 +240,13 @@ const b = ({ item: t, sx: o, onClick: r }) => {
|
|
|
241
240
|
drag: !0,
|
|
242
241
|
dragConstraints: { left: 0, right: 0, top: 0, bottom: 0 },
|
|
243
242
|
dragElastic: 1,
|
|
244
|
-
onDragStart: () =>
|
|
243
|
+
onDragStart: () => f(!0),
|
|
245
244
|
onDragEnd: (x, y) => {
|
|
246
|
-
|
|
247
|
-
const
|
|
248
|
-
if (Math.abs(
|
|
249
|
-
const
|
|
250
|
-
|
|
245
|
+
f(!1);
|
|
246
|
+
const v = y.offset.x + y.offset.y;
|
|
247
|
+
if (Math.abs(v) > 50) {
|
|
248
|
+
const m = [...u], C = m[d], R = v > 0 ? Math.min(d + 1, u.length - 1) : Math.max(d - 1, 0);
|
|
249
|
+
m.splice(d, 1), m.splice(R, 0, C), h(m);
|
|
251
250
|
}
|
|
252
251
|
},
|
|
253
252
|
style: {
|
|
@@ -255,8 +254,8 @@ const b = ({ item: t, sx: o, onClick: r }) => {
|
|
|
255
254
|
gridRow: i.rowSpan ? `span ${i.rowSpan}` : "span 2",
|
|
256
255
|
gridColumn: i.colSpan ? `span ${i.colSpan}` : "span 1"
|
|
257
256
|
},
|
|
258
|
-
children: /* @__PURE__ */
|
|
259
|
-
|
|
257
|
+
children: /* @__PURE__ */ t.jsxs(
|
|
258
|
+
w,
|
|
260
259
|
{
|
|
261
260
|
sx: {
|
|
262
261
|
position: "relative",
|
|
@@ -271,16 +270,16 @@ const b = ({ item: t, sx: o, onClick: r }) => {
|
|
|
271
270
|
}
|
|
272
271
|
},
|
|
273
272
|
children: [
|
|
274
|
-
/* @__PURE__ */
|
|
275
|
-
|
|
273
|
+
/* @__PURE__ */ t.jsx(
|
|
274
|
+
P,
|
|
276
275
|
{
|
|
277
276
|
item: i,
|
|
278
277
|
sx: { position: "absolute", inset: 0, width: "100%", height: "100%" },
|
|
279
|
-
onClick: () => !l &&
|
|
278
|
+
onClick: () => !l && a(i)
|
|
280
279
|
}
|
|
281
280
|
),
|
|
282
|
-
(i.title || i.desc) && /* @__PURE__ */
|
|
283
|
-
|
|
281
|
+
(i.title || i.desc) && /* @__PURE__ */ t.jsxs(
|
|
282
|
+
p,
|
|
284
283
|
{
|
|
285
284
|
className: "hover-overlay",
|
|
286
285
|
sx: {
|
|
@@ -297,8 +296,8 @@ const b = ({ item: t, sx: o, onClick: r }) => {
|
|
|
297
296
|
backdropFilter: "blur(8px)"
|
|
298
297
|
},
|
|
299
298
|
children: [
|
|
300
|
-
i.title && /* @__PURE__ */
|
|
301
|
-
|
|
299
|
+
i.title && /* @__PURE__ */ t.jsx(
|
|
300
|
+
j,
|
|
302
301
|
{
|
|
303
302
|
variant: "subtitle2",
|
|
304
303
|
sx: {
|
|
@@ -310,8 +309,8 @@ const b = ({ item: t, sx: o, onClick: r }) => {
|
|
|
310
309
|
children: i.title
|
|
311
310
|
}
|
|
312
311
|
),
|
|
313
|
-
i.desc && /* @__PURE__ */
|
|
314
|
-
|
|
312
|
+
i.desc && /* @__PURE__ */ t.jsx(
|
|
313
|
+
j,
|
|
315
314
|
{
|
|
316
315
|
variant: "caption",
|
|
317
316
|
sx: {
|
|
@@ -331,7 +330,7 @@ const b = ({ item: t, sx: o, onClick: r }) => {
|
|
|
331
330
|
}
|
|
332
331
|
)
|
|
333
332
|
},
|
|
334
|
-
`${i.id}-${
|
|
333
|
+
`${i.id}-${c}`
|
|
335
334
|
))
|
|
336
335
|
}
|
|
337
336
|
)
|
|
@@ -339,31 +338,9 @@ const b = ({ item: t, sx: o, onClick: r }) => {
|
|
|
339
338
|
) })
|
|
340
339
|
] });
|
|
341
340
|
};
|
|
342
|
-
|
|
343
|
-
try {
|
|
344
|
-
b.displayName = "MediaItem", b.__docgenInfo = { description: `MediaItem - Renders individual media items (images or videos) with optimized loading and playback.
|
|
345
|
-
|
|
346
|
-
For videos:
|
|
347
|
-
- Intersection Observer for viewport-based autoplay/pause
|
|
348
|
-
- Buffering state management with loading indicator
|
|
349
|
-
- Muted autoplay with loop for engagement
|
|
350
|
-
- Preloading for smooth playback
|
|
351
|
-
|
|
352
|
-
For images:
|
|
353
|
-
- Lazy loading via SLazyImage component
|
|
354
|
-
- Optimized object-fit handling`, displayName: "MediaItem", props: {} };
|
|
355
|
-
} catch {
|
|
356
|
-
}
|
|
357
|
-
try {
|
|
358
|
-
w.displayName = "SGallery", w.__docgenInfo = { description: "A sophisticated media gallery with drag-and-drop reordering, modal viewing, and multiple layout variants.", displayName: "SGallery", props: { mediaItems: { defaultValue: null, description: "Array of media items to display in the gallery", name: "mediaItems", required: !0, type: { name: "MediaItemType[]" } }, variant: { defaultValue: { value: "masonry" }, description: "Layout variant to use (default: 'masonry')", name: "variant", required: !1, type: { name: "enum", value: [{ value: '"grid"' }, { value: '"masonry"' }, { value: '"spotlight"' }, { value: '"featured"' }, { value: '"highlight"' }, { value: '"custom"' }] } }, loading: { defaultValue: { value: "false" }, description: "Loading state - shows skeleton placeholders matching the variant layout", name: "loading", required: !1, type: { name: "boolean" } }, skeletonCount: { defaultValue: { value: "6" }, description: "Number of skeleton items to show when loading (default: 6)", name: "skeletonCount", required: !1, type: { name: "number" } } } };
|
|
359
|
-
} catch {
|
|
360
|
-
}
|
|
361
|
-
try {
|
|
362
|
-
sgallery.displayName = "sgallery", sgallery.__docgenInfo = { description: "A sophisticated media gallery with drag-and-drop reordering, modal viewing, and multiple layout variants.", displayName: "sgallery", props: { mediaItems: { defaultValue: null, description: "Array of media items to display in the gallery", name: "mediaItems", required: !0, type: { name: "MediaItemType[]" } }, variant: { defaultValue: { value: "masonry" }, description: "Layout variant to use (default: 'masonry')", name: "variant", required: !1, type: { name: "enum", value: [{ value: '"grid"' }, { value: '"masonry"' }, { value: '"spotlight"' }, { value: '"featured"' }, { value: '"highlight"' }, { value: '"custom"' }] } }, loading: { defaultValue: { value: "false" }, description: "Loading state - shows skeleton placeholders matching the variant layout", name: "loading", required: !1, type: { name: "boolean" } }, skeletonCount: { defaultValue: { value: "6" }, description: "Number of skeleton items to show when loading (default: 6)", name: "skeletonCount", required: !1, type: { name: "number" } } } };
|
|
363
|
-
} catch {
|
|
364
|
-
}
|
|
341
|
+
A.displayName = "SGallery";
|
|
365
342
|
export {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
343
|
+
P as MediaItem,
|
|
344
|
+
A as SGallery,
|
|
345
|
+
A as default
|
|
369
346
|
};
|
|
@@ -1,47 +1,43 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { hslToRgb as s, Button as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
borderRadius:
|
|
7
|
-
children:
|
|
1
|
+
import { j as e } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { hslToRgb as s, Button as u } from "@mui/material";
|
|
3
|
+
import { blue as f } from "../theme/theme-primitives.js";
|
|
4
|
+
import { SMovingBorder as x } from "../s-moving-border/s-moving-border.js";
|
|
5
|
+
const a = ({
|
|
6
|
+
borderRadius: t = 12,
|
|
7
|
+
children: l,
|
|
8
8
|
duration: n = 3e3,
|
|
9
9
|
width: o = "fit-content",
|
|
10
10
|
height: r = "60px",
|
|
11
|
-
glowSize:
|
|
12
|
-
glowColor:
|
|
13
|
-
...
|
|
14
|
-
}) => /* @__PURE__ */
|
|
15
|
-
|
|
11
|
+
glowSize: p = 60,
|
|
12
|
+
glowColor: i = s(f[500]),
|
|
13
|
+
...m
|
|
14
|
+
}) => /* @__PURE__ */ e.jsx(
|
|
15
|
+
x,
|
|
16
16
|
{
|
|
17
17
|
width: o,
|
|
18
18
|
height: r,
|
|
19
19
|
duration: n,
|
|
20
|
-
borderRadius:
|
|
21
|
-
glowSize:
|
|
22
|
-
glowColor:
|
|
20
|
+
borderRadius: t,
|
|
21
|
+
glowSize: p,
|
|
22
|
+
glowColor: i,
|
|
23
23
|
padding: 0.3,
|
|
24
|
-
children: /* @__PURE__ */
|
|
25
|
-
|
|
24
|
+
children: /* @__PURE__ */ e.jsx(
|
|
25
|
+
u,
|
|
26
26
|
{
|
|
27
27
|
sx: {
|
|
28
|
-
borderRadius:
|
|
28
|
+
borderRadius: t,
|
|
29
29
|
width: o,
|
|
30
30
|
height: r
|
|
31
31
|
},
|
|
32
32
|
disableRipple: !0,
|
|
33
|
-
...
|
|
33
|
+
...m,
|
|
34
34
|
fullWidth: !0,
|
|
35
|
-
children:
|
|
35
|
+
children: l
|
|
36
36
|
}
|
|
37
37
|
)
|
|
38
38
|
}
|
|
39
39
|
);
|
|
40
|
-
|
|
41
|
-
try {
|
|
42
|
-
t.displayName = "SGlowButton", t.__docgenInfo = { description: "A visually striking button with animated glowing border effects and gradient text.", displayName: "SGlowButton", props: { borderRadius: { defaultValue: { value: "12" }, description: "Border radius for the button (defaults to 12px)", name: "borderRadius", required: !1, type: { name: "string | number" } }, children: { defaultValue: null, description: "Button content", name: "children", required: !0, type: { name: "ReactNode" } }, duration: { defaultValue: { value: "3000" }, description: "Duration of the moving border animation in milliseconds (defaults to 6000ms)", name: "duration", required: !1, type: { name: "number" } }, width: { defaultValue: { value: "fit-content" }, description: "Button width (defaults to 'fit-content')", name: "width", required: !1, type: { name: "string" } }, height: { defaultValue: { value: "60px" }, description: "Button height (defaults to '60px')", name: "height", required: !1, type: { name: "string" } }, glowSize: { defaultValue: { value: "60" }, description: "Size of the glow effect in pixels (defaults to 60)", name: "glowSize", required: !1, type: { name: "number" } }, glowColor: { defaultValue: { value: "hslToRgb(blue[500])" }, description: "Color of the glow effect (defaults to blue[500])", name: "glowColor", required: !1, type: { name: "string" } } } };
|
|
43
|
-
} catch {
|
|
44
|
-
}
|
|
40
|
+
a.displayName = "SGlowButton";
|
|
45
41
|
export {
|
|
46
|
-
|
|
42
|
+
a as default
|
|
47
43
|
};
|
|
@@ -1,91 +1,81 @@
|
|
|
1
|
-
import { j as e } from "../jsx-runtime-
|
|
2
|
-
const
|
|
3
|
-
hovered:
|
|
4
|
-
IconComponent:
|
|
5
|
-
sx:
|
|
6
|
-
strokeWidth:
|
|
7
|
-
gradientTheme:
|
|
8
|
-
customGradient:
|
|
9
|
-
gradientDirection:
|
|
10
|
-
animationDuration:
|
|
11
|
-
animationEasing:
|
|
12
|
-
autoHover:
|
|
13
|
-
gradientId:
|
|
14
|
-
alwaysGradient:
|
|
15
|
-
fallbackColor:
|
|
16
|
-
...
|
|
1
|
+
import { j as e } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
const C = ({
|
|
3
|
+
hovered: x = !1,
|
|
4
|
+
IconComponent: n,
|
|
5
|
+
sx: c,
|
|
6
|
+
strokeWidth: p = 0,
|
|
7
|
+
gradientTheme: m = "blue-cyan",
|
|
8
|
+
customGradient: t,
|
|
9
|
+
gradientDirection: a = "diagonal",
|
|
10
|
+
animationDuration: y = 300,
|
|
11
|
+
animationEasing: h = "ease",
|
|
12
|
+
autoHover: i = !1,
|
|
13
|
+
gradientId: u,
|
|
14
|
+
alwaysGradient: f = !1,
|
|
15
|
+
fallbackColor: g,
|
|
16
|
+
...d
|
|
17
17
|
}) => {
|
|
18
|
-
if (!
|
|
18
|
+
if (!n)
|
|
19
19
|
return null;
|
|
20
|
-
const
|
|
20
|
+
const o = u || `gradient-${Math.random().toString(36).substr(2, 9)}`, s = {
|
|
21
21
|
"blue-cyan": { start: "#1469be", end: "#43ecff" },
|
|
22
22
|
"purple-pink": { start: "#8b5cf6", end: "#ec4899" },
|
|
23
23
|
"orange-red": { start: "#f97316", end: "#ef4444" },
|
|
24
24
|
"green-teal": { start: "#10b981", end: "#06b6d4" },
|
|
25
25
|
"indigo-purple": { start: "#6366f1", end: "#a855f7" },
|
|
26
|
-
custom:
|
|
27
|
-
start:
|
|
28
|
-
end:
|
|
29
|
-
middle:
|
|
30
|
-
middlePos:
|
|
26
|
+
custom: t ? {
|
|
27
|
+
start: t.startColor,
|
|
28
|
+
end: t.endColor,
|
|
29
|
+
middle: t.middleColor,
|
|
30
|
+
middlePos: t.middlePosition || 0.5
|
|
31
31
|
} : { start: "#1469be", end: "#43ecff" }
|
|
32
|
-
}[
|
|
32
|
+
}[m], r = {
|
|
33
33
|
horizontal: { x1: "0", y1: "0", x2: "1", y2: "0" },
|
|
34
34
|
vertical: { x1: "0", y1: "0", x2: "0", y2: "1" },
|
|
35
35
|
diagonal: { x1: "0", y1: "0", x2: "1", y2: "1" },
|
|
36
36
|
radial: { x1: "0.5", y1: "0.5", x2: "0.5", y2: "0.5" }
|
|
37
|
-
}[
|
|
37
|
+
}[a], j = f || x ? `url(#${o})` : g || "var(--s-palette-text-primary)";
|
|
38
38
|
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
39
|
-
/* @__PURE__ */ e.jsx("svg", { width: 0, height: 0, children:
|
|
40
|
-
/* @__PURE__ */ e.jsx("stop", { offset: "0%", stopColor:
|
|
41
|
-
|
|
42
|
-
/* @__PURE__ */ e.jsx("stop", { offset: "100%", stopColor:
|
|
43
|
-
] }) : /* @__PURE__ */ e.jsxs("linearGradient", { id:
|
|
44
|
-
/* @__PURE__ */ e.jsx("stop", { offset: "0%", stopColor:
|
|
45
|
-
|
|
46
|
-
/* @__PURE__ */ e.jsx("stop", { offset: "100%", stopColor:
|
|
39
|
+
/* @__PURE__ */ e.jsx("svg", { width: 0, height: 0, children: a === "radial" ? /* @__PURE__ */ e.jsxs("radialGradient", { id: o, cx: "50%", cy: "50%", r: "50%", children: [
|
|
40
|
+
/* @__PURE__ */ e.jsx("stop", { offset: "0%", stopColor: s.start }),
|
|
41
|
+
s.middle && /* @__PURE__ */ e.jsx("stop", { offset: `${(s.middlePos || 0.5) * 100}%`, stopColor: s.middle }),
|
|
42
|
+
/* @__PURE__ */ e.jsx("stop", { offset: "100%", stopColor: s.end })
|
|
43
|
+
] }) : /* @__PURE__ */ e.jsxs("linearGradient", { id: o, x1: r.x1, y1: r.y1, x2: r.x2, y2: r.y2, children: [
|
|
44
|
+
/* @__PURE__ */ e.jsx("stop", { offset: "0%", stopColor: s.start }),
|
|
45
|
+
s.middle && /* @__PURE__ */ e.jsx("stop", { offset: `${(s.middlePos || 0.5) * 100}%`, stopColor: s.middle }),
|
|
46
|
+
/* @__PURE__ */ e.jsx("stop", { offset: "100%", stopColor: s.end })
|
|
47
47
|
] }) }),
|
|
48
48
|
/* @__PURE__ */ e.jsx(
|
|
49
|
-
|
|
49
|
+
n,
|
|
50
50
|
{
|
|
51
|
-
...
|
|
51
|
+
...d,
|
|
52
52
|
sx: {
|
|
53
|
-
fill:
|
|
54
|
-
strokeWidth:
|
|
55
|
-
transition: `fill ${
|
|
53
|
+
fill: j,
|
|
54
|
+
strokeWidth: p,
|
|
55
|
+
transition: `fill ${y}ms ${h}`,
|
|
56
56
|
// Auto hover functionality
|
|
57
|
-
...
|
|
57
|
+
...i && {
|
|
58
58
|
"&:hover": {
|
|
59
|
-
fill: `url(#${
|
|
59
|
+
fill: `url(#${o})`
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
|
-
...
|
|
62
|
+
...c
|
|
63
63
|
// Allow custom styling to override defaults
|
|
64
64
|
},
|
|
65
|
-
...
|
|
66
|
-
onMouseEnter: (
|
|
67
|
-
|
|
68
|
-
(i = t.onMouseEnter) == null || i.call(t, d);
|
|
65
|
+
...i && !f && {
|
|
66
|
+
onMouseEnter: (l) => {
|
|
67
|
+
d.onMouseEnter?.(l);
|
|
69
68
|
},
|
|
70
|
-
onMouseLeave: (
|
|
71
|
-
|
|
72
|
-
(i = t.onMouseLeave) == null || i.call(t, d);
|
|
69
|
+
onMouseLeave: (l) => {
|
|
70
|
+
d.onMouseLeave?.(l);
|
|
73
71
|
}
|
|
74
72
|
}
|
|
75
73
|
}
|
|
76
74
|
)
|
|
77
75
|
] });
|
|
78
76
|
};
|
|
79
|
-
|
|
80
|
-
try {
|
|
81
|
-
s.displayName = "SGradientIcon", s.__docgenInfo = { description: "A customizable icon component that applies gradient effects with multiple themes and animations.", displayName: "SGradientIcon", props: { hovered: { defaultValue: { value: "false" }, description: "Whether the icon should show the gradient fill (hover state)", name: "hovered", required: !1, type: { name: "boolean" } }, IconComponent: { defaultValue: null, description: "The Material-UI icon component to render with gradient effect", name: "IconComponent", required: !0, type: { name: "IconComponent" } }, sx: { defaultValue: null, description: "Additional styling props", name: "sx", required: !1, type: { name: "SxProps" } }, strokeWidth: { defaultValue: { value: "0" }, description: "Stroke width for the icon (default: 0)", name: "strokeWidth", required: !1, type: { name: "number" } }, gradientTheme: { defaultValue: { value: "blue-cyan" }, description: "Predefined gradient theme (default: 'blue-cyan')", name: "gradientTheme", required: !1, type: { name: "enum", value: [{ value: '"custom"' }, { value: '"blue-cyan"' }, { value: '"purple-pink"' }, { value: '"orange-red"' }, { value: '"green-teal"' }, { value: '"indigo-purple"' }] } }, customGradient: { defaultValue: null, description: "Custom gradient colors when theme is 'custom'", name: "customGradient", required: !1, type: { name: "CustomGradient" } }, gradientDirection: { defaultValue: { value: "diagonal" }, description: "Direction of the gradient (default: 'diagonal')", name: "gradientDirection", required: !1, type: { name: "enum", value: [{ value: '"horizontal"' }, { value: '"vertical"' }, { value: '"diagonal"' }, { value: '"radial"' }] } }, animationDuration: { defaultValue: { value: "300" }, description: "Animation duration in milliseconds (default: 300)", name: "animationDuration", required: !1, type: { name: "number" } }, animationEasing: { defaultValue: { value: "ease" }, description: "Animation easing function (default: 'ease')", name: "animationEasing", required: !1, type: { name: "enum", value: [{ value: '"ease"' }, { value: '"ease-in"' }, { value: '"ease-in-out"' }, { value: '"ease-out"' }, { value: '"linear"' }] } }, autoHover: { defaultValue: { value: "false" }, description: "Whether to automatically detect hover state (default: false)", name: "autoHover", required: !1, type: { name: "boolean" } }, gradientId: { defaultValue: null, description: "Unique identifier for the gradient (auto-generated if not provided)", name: "gradientId", required: !1, type: { name: "string" } }, alwaysGradient: { defaultValue: { value: "false" }, description: "Whether to always show gradient (overrides hovered state)", name: "alwaysGradient", required: !1, type: { name: "boolean" } }, fallbackColor: { defaultValue: null, description: "Fallback color when gradient is not shown", name: "fallbackColor", required: !1, type: { name: "string" } } } };
|
|
82
|
-
} catch {
|
|
83
|
-
}
|
|
84
|
-
try {
|
|
85
|
-
sgradienticon.displayName = "sgradienticon", sgradienticon.__docgenInfo = { description: "A customizable icon component that applies gradient effects with multiple themes and animations.", displayName: "sgradienticon", props: { hovered: { defaultValue: { value: "false" }, description: "Whether the icon should show the gradient fill (hover state)", name: "hovered", required: !1, type: { name: "boolean" } }, IconComponent: { defaultValue: null, description: "The Material-UI icon component to render with gradient effect", name: "IconComponent", required: !0, type: { name: "IconComponent" } }, sx: { defaultValue: null, description: "Additional styling props", name: "sx", required: !1, type: { name: "SxProps" } }, strokeWidth: { defaultValue: { value: "0" }, description: "Stroke width for the icon (default: 0)", name: "strokeWidth", required: !1, type: { name: "number" } }, gradientTheme: { defaultValue: { value: "blue-cyan" }, description: "Predefined gradient theme (default: 'blue-cyan')", name: "gradientTheme", required: !1, type: { name: "enum", value: [{ value: '"custom"' }, { value: '"blue-cyan"' }, { value: '"purple-pink"' }, { value: '"orange-red"' }, { value: '"green-teal"' }, { value: '"indigo-purple"' }] } }, customGradient: { defaultValue: null, description: "Custom gradient colors when theme is 'custom'", name: "customGradient", required: !1, type: { name: "CustomGradient" } }, gradientDirection: { defaultValue: { value: "diagonal" }, description: "Direction of the gradient (default: 'diagonal')", name: "gradientDirection", required: !1, type: { name: "enum", value: [{ value: '"horizontal"' }, { value: '"vertical"' }, { value: '"diagonal"' }, { value: '"radial"' }] } }, animationDuration: { defaultValue: { value: "300" }, description: "Animation duration in milliseconds (default: 300)", name: "animationDuration", required: !1, type: { name: "number" } }, animationEasing: { defaultValue: { value: "ease" }, description: "Animation easing function (default: 'ease')", name: "animationEasing", required: !1, type: { name: "enum", value: [{ value: '"ease"' }, { value: '"ease-in"' }, { value: '"ease-in-out"' }, { value: '"ease-out"' }, { value: '"linear"' }] } }, autoHover: { defaultValue: { value: "false" }, description: "Whether to automatically detect hover state (default: false)", name: "autoHover", required: !1, type: { name: "boolean" } }, gradientId: { defaultValue: null, description: "Unique identifier for the gradient (auto-generated if not provided)", name: "gradientId", required: !1, type: { name: "string" } }, alwaysGradient: { defaultValue: { value: "false" }, description: "Whether to always show gradient (overrides hovered state)", name: "alwaysGradient", required: !1, type: { name: "boolean" } }, fallbackColor: { defaultValue: null, description: "Fallback color when gradient is not shown", name: "fallbackColor", required: !1, type: { name: "string" } } } };
|
|
86
|
-
} catch {
|
|
87
|
-
}
|
|
77
|
+
C.displayName = "SGradientIcon";
|
|
88
78
|
export {
|
|
89
|
-
|
|
90
|
-
|
|
79
|
+
C as SGradientIcon,
|
|
80
|
+
C as default
|
|
91
81
|
};
|