@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,119 +1,116 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
s(this, "isReverse");
|
|
21
|
-
s(this, "isShimmer");
|
|
22
|
-
this.x = i, this.y = n, this.color = l, this.speed = (Math.random() * 0.8 + 0.1) * v, this.size = 0, this.sizeStep = Math.random() * 0.4, this.minSize = 0.5, this.maxSize = M, this.delay = g, this.counter = 0, this.counterStep = b, this.isReverse = !1, this.isShimmer = !1;
|
|
1
|
+
import { j } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { forwardRef as L, useRef as h, useCallback as F, useEffect as Q } from "react";
|
|
3
|
+
import { brand as A } from "../theme/theme-primitives.js";
|
|
4
|
+
class U {
|
|
5
|
+
x;
|
|
6
|
+
y;
|
|
7
|
+
color;
|
|
8
|
+
speed;
|
|
9
|
+
size;
|
|
10
|
+
sizeStep;
|
|
11
|
+
minSize;
|
|
12
|
+
maxSize;
|
|
13
|
+
delay;
|
|
14
|
+
counter;
|
|
15
|
+
counterStep;
|
|
16
|
+
isReverse;
|
|
17
|
+
isShimmer;
|
|
18
|
+
constructor(c, l, o, z, y, M, b) {
|
|
19
|
+
this.x = c, this.y = l, this.color = o, this.speed = (Math.random() * 0.8 + 0.1) * z, this.size = 0, this.sizeStep = Math.random() * 0.4, this.minSize = 0.5, this.maxSize = b, this.delay = y, this.counter = 0, this.counterStep = M, this.isReverse = !1, this.isShimmer = !1;
|
|
23
20
|
}
|
|
24
|
-
update(
|
|
25
|
-
return
|
|
21
|
+
update(c) {
|
|
22
|
+
return c ? this.counter < this.delay ? (this.counter += this.counterStep, !0) : (this.isShimmer ? this.isReverse ? (this.size -= this.speed, this.size <= this.minSize && (this.size = this.minSize, this.isReverse = !1)) : (this.size += this.speed, this.size >= this.maxSize && (this.size = this.maxSize, this.isReverse = !0)) : this.size < this.maxSize ? this.size += this.sizeStep : this.isShimmer = !0, !0) : (this.isShimmer = !1, this.counter = 0, this.size > 0 ? (this.size -= 0.1, !0) : !1);
|
|
26
23
|
}
|
|
27
|
-
draw(
|
|
28
|
-
const
|
|
29
|
-
|
|
24
|
+
draw(c, l) {
|
|
25
|
+
const o = (l - this.size) * 0.5;
|
|
26
|
+
c.fillRect(this.x + o, this.y + o, this.size, this.size);
|
|
30
27
|
}
|
|
31
28
|
}
|
|
32
|
-
const
|
|
29
|
+
const Z = L(
|
|
33
30
|
({
|
|
34
|
-
gap:
|
|
35
|
-
speed:
|
|
36
|
-
colors:
|
|
37
|
-
loading:
|
|
38
|
-
src:
|
|
39
|
-
alt:
|
|
40
|
-
style:
|
|
41
|
-
children:
|
|
42
|
-
instant:
|
|
43
|
-
|
|
44
|
-
},
|
|
45
|
-
const
|
|
31
|
+
gap: s = 5,
|
|
32
|
+
speed: c = 100,
|
|
33
|
+
colors: l = [A[400], A[500], A[600]],
|
|
34
|
+
loading: o = !0,
|
|
35
|
+
src: z,
|
|
36
|
+
alt: y = "",
|
|
37
|
+
style: M,
|
|
38
|
+
children: b,
|
|
39
|
+
instant: q = !0,
|
|
40
|
+
...N
|
|
41
|
+
}, S) => {
|
|
42
|
+
const g = h(null), w = h(null), $ = h(null), p = h(/* @__PURE__ */ new Map()), a = h(null), E = h(1e3 / 60), k = h(performance.now()), I = h(
|
|
46
43
|
typeof window < "u" ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1
|
|
47
|
-
),
|
|
48
|
-
const
|
|
49
|
-
return
|
|
50
|
-
}, []),
|
|
51
|
-
const e =
|
|
52
|
-
if (!e || !
|
|
53
|
-
|
|
54
|
-
const
|
|
55
|
-
for (let f =
|
|
56
|
-
for (let m = T; m <
|
|
57
|
-
const
|
|
58
|
-
let
|
|
59
|
-
if (!
|
|
60
|
-
const
|
|
61
|
-
|
|
44
|
+
), O = F((e, n, u, r) => {
|
|
45
|
+
const t = e - u, i = n - r;
|
|
46
|
+
return t * t + i * i;
|
|
47
|
+
}, []), V = F(() => {
|
|
48
|
+
const e = g.current, n = e?.getContext("2d");
|
|
49
|
+
if (!e || !n) return;
|
|
50
|
+
p.current = /* @__PURE__ */ new Map();
|
|
51
|
+
const u = I.current ? 0 : Math.max(0, Math.min(100, c)) * 1e-3, r = window.devicePixelRatio || 1, t = e.width / r, i = e.height / r, x = 2, X = 0.5, D = (t + i) * 0.01, H = t % s / 2, T = i % s / 2;
|
|
52
|
+
for (let f = H; f < t; f += s)
|
|
53
|
+
for (let m = T; m < i; m += s) {
|
|
54
|
+
const d = l[Math.floor(Math.random() * l.length)];
|
|
55
|
+
let v = 0;
|
|
56
|
+
if (!q && !I.current) {
|
|
57
|
+
const W = f + s / 2, G = m + s / 2, J = t / 2, K = i / 2;
|
|
58
|
+
v = Math.sqrt(O(W, G, J, K));
|
|
62
59
|
}
|
|
63
|
-
const
|
|
64
|
-
|
|
60
|
+
const P = Math.random() * 4 + D, R = Math.random() * (x - X) + X, B = new U(f, m, d, u, v, P, R);
|
|
61
|
+
p.current.has(d) || p.current.set(d, []), p.current.get(d).push(B);
|
|
65
62
|
}
|
|
66
|
-
|
|
63
|
+
a.current && cancelAnimationFrame(a.current);
|
|
67
64
|
const Y = () => {
|
|
68
|
-
|
|
69
|
-
const f = performance.now(), m = f -
|
|
70
|
-
if (m <
|
|
71
|
-
|
|
72
|
-
let
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
for (const R of
|
|
76
|
-
R.update(
|
|
77
|
-
}), !
|
|
65
|
+
a.current = requestAnimationFrame(Y);
|
|
66
|
+
const f = performance.now(), m = f - k.current;
|
|
67
|
+
if (m < E.current) return;
|
|
68
|
+
k.current = f - m % E.current, n.clearRect(0, 0, t, i);
|
|
69
|
+
let d = !1;
|
|
70
|
+
p.current.forEach((v, P) => {
|
|
71
|
+
n.fillStyle = P;
|
|
72
|
+
for (const R of v)
|
|
73
|
+
R.update(o) && (R.draw(n, s), d = !0);
|
|
74
|
+
}), !o && !d && a.current && (cancelAnimationFrame(a.current), a.current = null);
|
|
78
75
|
};
|
|
79
76
|
Y();
|
|
80
|
-
}, [
|
|
81
|
-
const e =
|
|
82
|
-
if (!e || !
|
|
83
|
-
const
|
|
84
|
-
if (
|
|
85
|
-
const
|
|
86
|
-
e.width =
|
|
87
|
-
}, [
|
|
88
|
-
return
|
|
89
|
-
|
|
77
|
+
}, [s, c, l, q, o, O]), C = F(() => {
|
|
78
|
+
const e = g.current, n = w.current, u = e?.getContext("2d");
|
|
79
|
+
if (!e || !n || !u) return;
|
|
80
|
+
const r = n.getBoundingClientRect();
|
|
81
|
+
if (r.width === 0 || r.height === 0) return;
|
|
82
|
+
const t = Math.floor(r.width), i = Math.floor(r.height), x = window.devicePixelRatio || 1;
|
|
83
|
+
e.width = t * x, e.height = i * x, e.style.width = `${t}px`, e.style.height = `${i}px`, u.setTransform(1, 0, 0, 1, 0, 0), u.scale(x, x), V();
|
|
84
|
+
}, [V]);
|
|
85
|
+
return Q(() => {
|
|
86
|
+
C();
|
|
90
87
|
const e = new ResizeObserver(() => {
|
|
91
|
-
requestAnimationFrame(() =>
|
|
88
|
+
requestAnimationFrame(() => C());
|
|
92
89
|
});
|
|
93
|
-
return
|
|
94
|
-
e.disconnect(),
|
|
90
|
+
return w.current && e.observe(w.current), () => {
|
|
91
|
+
e.disconnect(), a.current && cancelAnimationFrame(a.current);
|
|
95
92
|
};
|
|
96
|
-
}, [
|
|
93
|
+
}, [C]), /* @__PURE__ */ j.jsxs(
|
|
97
94
|
"div",
|
|
98
95
|
{
|
|
99
96
|
ref: (e) => {
|
|
100
|
-
|
|
97
|
+
w.current = e, typeof S == "function" ? S(e) : S && (S.current = e);
|
|
101
98
|
},
|
|
102
99
|
style: {
|
|
103
100
|
position: "relative",
|
|
104
101
|
width: "100%",
|
|
105
102
|
height: "100%",
|
|
106
103
|
overflow: "hidden",
|
|
107
|
-
...
|
|
104
|
+
...M
|
|
108
105
|
},
|
|
109
|
-
|
|
106
|
+
...N,
|
|
110
107
|
children: [
|
|
111
|
-
|
|
108
|
+
z && /* @__PURE__ */ j.jsx(
|
|
112
109
|
"img",
|
|
113
110
|
{
|
|
114
|
-
ref:
|
|
115
|
-
src:
|
|
116
|
-
alt:
|
|
111
|
+
ref: $,
|
|
112
|
+
src: z,
|
|
113
|
+
alt: y,
|
|
117
114
|
style: {
|
|
118
115
|
position: "absolute",
|
|
119
116
|
inset: 0,
|
|
@@ -124,11 +121,11 @@ const j = Z(
|
|
|
124
121
|
}
|
|
125
122
|
}
|
|
126
123
|
),
|
|
127
|
-
|
|
128
|
-
/* @__PURE__ */
|
|
124
|
+
b,
|
|
125
|
+
/* @__PURE__ */ j.jsx(
|
|
129
126
|
"canvas",
|
|
130
127
|
{
|
|
131
|
-
ref:
|
|
128
|
+
ref: g,
|
|
132
129
|
style: {
|
|
133
130
|
position: "absolute",
|
|
134
131
|
inset: 0,
|
|
@@ -145,12 +142,8 @@ const j = Z(
|
|
|
145
142
|
);
|
|
146
143
|
}
|
|
147
144
|
);
|
|
148
|
-
|
|
149
|
-
try {
|
|
150
|
-
j.displayName = "SPixelReveal", j.__docgenInfo = { description: "An animated pixel effect component that creates a dynamic canvas overlay with customizable pixel animations.", displayName: "SPixelReveal", props: { gap: { defaultValue: { value: "5" }, description: "Spacing between pixels in the grid", name: "gap", required: !1, type: { name: "number" } }, speed: { defaultValue: { value: "100" }, description: "Animation speed multiplier (0-100)", name: "speed", required: !1, type: { name: "number" } }, colors: { defaultValue: { value: "[brand[400], brand[500], brand[600]]" }, description: "Array of color values randomly assigned to pixels", name: "colors", required: !1, type: { name: "string[]" } }, loading: { defaultValue: { value: "true" }, description: "Controls pixel animation state", name: "loading", required: !1, type: { name: "boolean" } }, src: { defaultValue: null, description: "Image source URL to display beneath the pixel effect overlay", name: "src", required: !1, type: { name: "string" } }, alt: { defaultValue: { value: "" }, description: "Alt text for the background image", name: "alt", required: !1, type: { name: "string" } }, children: { defaultValue: null, description: "Content to render as overlay on top of the pixel canvas effect", name: "children", required: !1, type: { name: "ReactNode" } }, instant: { defaultValue: { value: "true" }, description: "If true, all pixels appear immediately without wave/delay effect", name: "instant", required: !1, type: { name: "boolean" } } } };
|
|
151
|
-
} catch {
|
|
152
|
-
}
|
|
145
|
+
Z.displayName = "SPixelReveal";
|
|
153
146
|
export {
|
|
154
|
-
|
|
155
|
-
|
|
147
|
+
Z as SPixelReveal,
|
|
148
|
+
Z as default
|
|
156
149
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { keyframes as
|
|
1
|
+
import { j as n } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { useRef as x, useEffect as y } from "react";
|
|
3
|
+
import { keyframes as h, styled as l, Box as d } from "@mui/material";
|
|
4
4
|
import { STextShimmer as v } from "../s-text-shimmer/s-text-shimmer.js";
|
|
5
|
-
const b =
|
|
5
|
+
const b = h`
|
|
6
6
|
0% {
|
|
7
7
|
width: 20%;
|
|
8
8
|
height: 20%;
|
|
@@ -13,7 +13,7 @@ const b = g`
|
|
|
13
13
|
height: 100%;
|
|
14
14
|
opacity: 0;
|
|
15
15
|
}
|
|
16
|
-
`,
|
|
16
|
+
`, j = l(d)(({ theme: e }) => ({
|
|
17
17
|
position: "relative",
|
|
18
18
|
display: "flex",
|
|
19
19
|
justifyContent: "center",
|
|
@@ -21,10 +21,10 @@ const b = g`
|
|
|
21
21
|
borderRadius: e.shape.borderRadius,
|
|
22
22
|
border: "1px solid",
|
|
23
23
|
borderColor: (e.vars || e).palette.divider
|
|
24
|
-
})),
|
|
24
|
+
})), R = l(d)(() => ({
|
|
25
25
|
position: "absolute",
|
|
26
26
|
pointerEvents: "none"
|
|
27
|
-
})),
|
|
27
|
+
})), s = l(d)(({ theme: e }) => ({
|
|
28
28
|
position: "absolute",
|
|
29
29
|
top: "50%",
|
|
30
30
|
left: "50%",
|
|
@@ -46,8 +46,8 @@ const b = g`
|
|
|
46
46
|
})), C = () => {
|
|
47
47
|
const e = "s-radial-pulse-particles";
|
|
48
48
|
if (document.getElementById(e)) return;
|
|
49
|
-
const
|
|
50
|
-
|
|
49
|
+
const a = document.createElement("style");
|
|
50
|
+
a.id = e, a.textContent = `
|
|
51
51
|
.s-radial-pulse-particle {
|
|
52
52
|
position: absolute;
|
|
53
53
|
background: var(--s-palette-text-primary);
|
|
@@ -75,67 +75,59 @@ const b = g`
|
|
|
75
75
|
animation: none !important;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
`, document.head.appendChild(
|
|
79
|
-
},
|
|
78
|
+
`, document.head.appendChild(a);
|
|
79
|
+
}, g = ({
|
|
80
80
|
width: e = 300,
|
|
81
|
-
height:
|
|
81
|
+
height: a = 300,
|
|
82
82
|
className: c,
|
|
83
|
-
text:
|
|
83
|
+
text: u = "Generating...",
|
|
84
84
|
particleSize: r = { min: 2, max: 6 }
|
|
85
85
|
}) => {
|
|
86
|
-
const
|
|
87
|
-
return
|
|
86
|
+
const o = x(null);
|
|
87
|
+
return y(() => {
|
|
88
88
|
C();
|
|
89
|
-
const
|
|
90
|
-
if (!
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
|
|
89
|
+
const p = () => {
|
|
90
|
+
if (!o.current) return;
|
|
91
|
+
const i = o.current, t = document.createElement("div");
|
|
92
|
+
t.className = "s-radial-pulse-particle";
|
|
93
|
+
const m = Math.random() * (r.max - r.min) + r.min;
|
|
94
|
+
t.style.width = `${m}px`, t.style.height = `${m}px`, t.style.left = `${Math.random() * e}px`, t.style.top = `${Math.random() * a}px`, t.style.animationDelay = `${Math.random() * 4}s`, t.style.animationDuration = `${Math.random() * 3 + 2}s`, i.appendChild(t), setTimeout(() => {
|
|
95
|
+
t.parentNode && t.parentNode.removeChild(t);
|
|
96
96
|
}, 6e3);
|
|
97
|
-
},
|
|
98
|
-
for (let
|
|
99
|
-
return () => clearInterval(
|
|
100
|
-
}, [e,
|
|
101
|
-
|
|
97
|
+
}, f = setInterval(p, 500);
|
|
98
|
+
for (let i = 0; i < 4; i++) setTimeout(p, i * 100);
|
|
99
|
+
return () => clearInterval(f);
|
|
100
|
+
}, [e, a, r]), /* @__PURE__ */ n.jsxs(
|
|
101
|
+
j,
|
|
102
102
|
{
|
|
103
|
-
ref:
|
|
103
|
+
ref: o,
|
|
104
104
|
className: c,
|
|
105
105
|
sx: {
|
|
106
106
|
width: e,
|
|
107
|
-
height:
|
|
107
|
+
height: a
|
|
108
108
|
},
|
|
109
109
|
children: [
|
|
110
|
-
/* @__PURE__ */
|
|
111
|
-
|
|
110
|
+
/* @__PURE__ */ n.jsxs(
|
|
111
|
+
R,
|
|
112
112
|
{
|
|
113
113
|
sx: {
|
|
114
|
-
width: Math.min(e,
|
|
115
|
-
height: Math.min(e,
|
|
114
|
+
width: Math.min(e, a),
|
|
115
|
+
height: Math.min(e, a)
|
|
116
116
|
},
|
|
117
117
|
children: [
|
|
118
|
-
/* @__PURE__ */
|
|
119
|
-
/* @__PURE__ */
|
|
120
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ n.jsx(s, {}),
|
|
119
|
+
/* @__PURE__ */ n.jsx(s, {}),
|
|
120
|
+
/* @__PURE__ */ n.jsx(s, {})
|
|
121
121
|
]
|
|
122
122
|
}
|
|
123
123
|
),
|
|
124
|
-
/* @__PURE__ */
|
|
124
|
+
/* @__PURE__ */ n.jsx(v, { children: u })
|
|
125
125
|
]
|
|
126
126
|
}
|
|
127
127
|
);
|
|
128
128
|
};
|
|
129
|
-
|
|
130
|
-
try {
|
|
131
|
-
o.displayName = "SRadialPulseAnimate", o.__docgenInfo = { description: "A loading animation component that creates a pulsing radial effect with expanding ripples and floating particles.", displayName: "SRadialPulseAnimate", props: { width: { defaultValue: { value: "300" }, description: "Width of the animation container in pixels", name: "width", required: !1, type: { name: "number" } }, height: { defaultValue: { value: "300" }, description: "Height of the animation container in pixels", name: "height", required: !1, type: { name: "number" } }, className: { defaultValue: null, description: "Additional CSS class name for custom styling", name: "className", required: !1, type: { name: "string" } }, text: { defaultValue: { value: "Generating..." }, description: "Custom text to display in the center of the animation", name: "text", required: !1, type: { name: "string" } }, particleSize: { defaultValue: { value: "{ min: 2, max: 6 }" }, description: "Size range for floating particles in pixels", name: "particleSize", required: !1, type: { name: "{ min: number; max: number; }" } } } };
|
|
132
|
-
} catch {
|
|
133
|
-
}
|
|
134
|
-
try {
|
|
135
|
-
sradialpulseanimate.displayName = "sradialpulseanimate", sradialpulseanimate.__docgenInfo = { description: "A loading animation component that creates a pulsing radial effect with expanding ripples and floating particles.", displayName: "sradialpulseanimate", props: { width: { defaultValue: { value: "300" }, description: "Width of the animation container in pixels", name: "width", required: !1, type: { name: "number" } }, height: { defaultValue: { value: "300" }, description: "Height of the animation container in pixels", name: "height", required: !1, type: { name: "number" } }, className: { defaultValue: null, description: "Additional CSS class name for custom styling", name: "className", required: !1, type: { name: "string" } }, text: { defaultValue: { value: "Generating..." }, description: "Custom text to display in the center of the animation", name: "text", required: !1, type: { name: "string" } }, particleSize: { defaultValue: { value: "{ min: 2, max: 6 }" }, description: "Size range for floating particles in pixels", name: "particleSize", required: !1, type: { name: "{ min: number; max: number; }" } } } };
|
|
136
|
-
} catch {
|
|
137
|
-
}
|
|
129
|
+
g.displayName = "SRadialPulseAnimate";
|
|
138
130
|
export {
|
|
139
|
-
|
|
140
|
-
|
|
131
|
+
g as SRadialPulseAnimate,
|
|
132
|
+
g as default
|
|
141
133
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
|
+
}
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Rating as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
try {
|
|
7
|
-
t.displayName = "SRating", t.__docgenInfo = { description: "A star rating component that allows users to provide feedback and ratings.", displayName: "SRating", props: {} };
|
|
8
|
-
} catch {
|
|
9
|
-
}
|
|
10
|
-
try {
|
|
11
|
-
srating.displayName = "srating", srating.__docgenInfo = { description: "A star rating component that allows users to provide feedback and ratings.", displayName: "srating", props: {} };
|
|
12
|
-
} catch {
|
|
13
|
-
}
|
|
1
|
+
import { j as o } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
+
import { forwardRef as a } from "react";
|
|
3
|
+
import { Rating as i } from "@mui/material";
|
|
4
|
+
const m = a((r, t) => /* @__PURE__ */ o.jsx(i, { ref: t, ...r }));
|
|
5
|
+
m.displayName = "SRating";
|
|
14
6
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
m as SRating,
|
|
8
|
+
m as default
|
|
17
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
|
+
}
|