@solostylist/ui-kit 1.0.167 → 1.0.168
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/{Typography-B7LOtCzI.js → Typography-C8jwvSWe.js} +1 -1
- package/dist/main.d.ts +3 -3
- package/dist/main.js +182 -174
- package/dist/s-accordion/index.js +2 -2
- package/dist/s-accordion/s-accordion.d.ts +17 -1
- package/dist/s-accordion/s-accordion.js +252 -238
- package/dist/s-action-overlay/index.js +1 -1
- package/dist/s-action-overlay/s-action-overlay.d.ts +34 -1
- package/dist/s-action-overlay/s-action-overlay.js +67 -55
- package/dist/s-ai-tool-bar/index.d.ts +2 -0
- package/dist/s-ai-tool-bar/index.js +3 -2
- package/dist/s-ai-tool-bar/s-ai-tool-bar.d.ts +33 -22
- package/dist/s-ai-tool-bar/s-ai-tool-bar.js +295 -247
- package/dist/s-autocomplete/index.js +2 -2
- package/dist/s-autocomplete/s-autocomplete.d.ts +13 -15
- package/dist/s-autocomplete/s-autocomplete.js +25 -17
- package/dist/s-avatar/index.js +2 -2
- package/dist/s-avatar/s-avatar.d.ts +16 -1
- package/dist/s-avatar/s-avatar.js +23 -10
- package/dist/s-blur-text/index.js +2 -2
- package/dist/s-blur-text/s-blur-text.d.ts +4 -13
- package/dist/s-blur-text/s-blur-text.js +57 -51
- package/dist/s-breadcrumbs/index.js +2 -2
- package/dist/s-breadcrumbs/s-breadcrumbs.d.ts +20 -1
- package/dist/s-breadcrumbs/s-breadcrumbs.js +39 -30
- package/dist/s-button/index.js +2 -2
- package/dist/s-button/s-button.d.ts +7 -1
- package/dist/s-button/s-button.js +15 -5
- package/dist/s-button-link/index.js +2 -2
- package/dist/s-button-link/s-button-link.d.ts +12 -26
- package/dist/s-button-link/s-button-link.js +36 -26
- package/dist/s-carousel/index.js +1 -1
- package/dist/s-carousel/s-carousel.d.ts +11 -1
- package/dist/s-carousel/s-carousel.js +233 -223
- package/dist/s-category-card/index.js +2 -2
- package/dist/s-category-card/s-category-card.d.ts +28 -1
- package/dist/s-category-card/s-category-card.js +77 -58
- package/dist/s-chat-input/index.js +2 -2
- package/dist/s-chat-input/s-chat-input.d.ts +12 -1
- package/dist/s-chat-input/s-chat-input.js +92 -82
- package/dist/s-chat-message/index.js +2 -2
- package/dist/s-chat-message/s-chat-message.d.ts +22 -1
- package/dist/s-chat-message/s-chat-message.js +144 -133
- package/dist/s-checkbox/index.js +2 -2
- package/dist/s-checkbox/s-checkbox.d.ts +2 -15
- package/dist/s-checkbox/s-checkbox.js +20 -10
- package/dist/s-chip/index.js +2 -2
- package/dist/s-chip/s-chip.d.ts +7 -1
- package/dist/s-chip/s-chip.js +15 -5
- package/dist/s-chips/index.js +2 -2
- package/dist/s-chips/s-chips.d.ts +5 -18
- package/dist/s-chips/s-chips.js +56 -41
- package/dist/s-comment-message/index.js +2 -2
- package/dist/s-comment-message/s-comment-message.d.ts +26 -1
- package/dist/s-comment-message/s-comment-message.js +95 -89
- package/dist/s-copyable-text/index.js +1 -1
- package/dist/s-copyable-text/s-copyable-text.d.ts +9 -36
- package/dist/s-copyable-text/s-copyable-text.js +31 -21
- package/dist/s-countdown/index.d.ts +3 -2
- package/dist/s-countdown/index.js +4 -3
- package/dist/s-countdown/s-count-box.d.ts +39 -0
- package/dist/s-countdown/s-count-box.js +112 -0
- package/dist/s-countdown/s-count-down.d.ts +6 -50
- package/dist/s-countdown/s-count-down.js +110 -175
- package/dist/s-data-table/index.js +2 -2
- package/dist/s-data-table/s-data-table.d.ts +9 -65
- package/dist/s-data-table/s-data-table.js +381 -371
- package/dist/s-date-picker/index.js +2 -2
- package/dist/s-date-picker/s-date-picker.d.ts +6 -17
- package/dist/s-date-picker/s-date-picker.js +124 -107
- package/dist/s-datetime-picker/index.js +2 -2
- package/dist/s-datetime-picker/s-datetime-picker.d.ts +5 -16
- package/dist/s-datetime-picker/s-datetime-picker.js +897 -887
- package/dist/s-dialog/index.js +2 -2
- package/dist/s-dialog/s-dialog.d.ts +3 -16
- package/dist/s-dialog/s-dialog.js +32 -23
- package/dist/s-dialog-confirm/index.js +3 -3
- package/dist/s-dialog-confirm/s-dialog-confirm.d.ts +5 -13
- package/dist/s-dialog-confirm/s-dialog-confirm.js +55 -48
- package/dist/s-dialog-message/index.js +4 -4
- package/dist/s-dialog-message/s-dialog-message.d.ts +5 -15
- package/dist/s-dialog-message/s-dialog-message.js +45 -38
- package/dist/s-empty/index.js +2 -2
- package/dist/s-empty/s-empty.d.ts +5 -20
- package/dist/s-empty/s-empty.js +14 -4
- package/dist/s-error/index.js +2 -2
- package/dist/s-error/s-error.d.ts +5 -20
- package/dist/s-error/s-error.js +16 -6
- package/dist/s-error-layout/index.js +2 -2
- package/dist/s-error-layout/s-error-layout.d.ts +6 -1
- package/dist/s-error-layout/s-error-layout.js +60 -51
- package/dist/s-file-dropzone/index.js +2 -2
- package/dist/s-file-dropzone/s-file-dropzone.d.ts +6 -51
- package/dist/s-file-dropzone/s-file-dropzone.js +64 -54
- package/dist/s-file-icon/index.js +2 -2
- package/dist/s-file-icon/s-file-icon.d.ts +5 -25
- package/dist/s-file-icon/s-file-icon.js +14 -8
- package/dist/s-flex-box/index.js +2 -2
- package/dist/s-flex-box/s-flex-box.d.ts +10 -1
- package/dist/s-flex-box/s-flex-box.js +14 -4
- package/dist/s-form/index.js +2 -2
- package/dist/s-form/s-form.d.ts +5 -14
- package/dist/s-form/s-form.js +19 -9
- package/dist/s-gallery/index.js +33 -3
- package/dist/s-gallery/s-gallery.d.ts +3 -36
- package/dist/s-gallery/s-gallery.js +108 -78
- package/dist/s-glow-button/s-glow-button.d.ts +6 -42
- package/dist/s-glow-button/s-glow-button.js +29 -47
- package/dist/s-gradient-icon/index.d.ts +1 -1
- package/dist/s-gradient-icon/index.js +1 -1
- package/dist/s-gradient-icon/s-gradient-icon.d.ts +8 -68
- package/dist/s-gradient-icon/s-gradient-icon.js +54 -44
- package/dist/s-i18n-provider/index.js +1 -1
- package/dist/s-i18n-provider/s-i18n-provider.d.ts +5 -33
- package/dist/s-i18n-provider/s-i18n-provider.js +25 -15
- package/dist/s-icon-button/index.js +2 -2
- package/dist/s-icon-button/s-icon-button.d.ts +6 -19
- package/dist/s-icon-button/s-icon-button.js +14 -4
- package/dist/s-image-comparison/s-image-comparison.js +50 -45
- package/dist/s-image-modal/index.js +3 -3
- package/dist/s-image-modal/s-image-modal.d.ts +4 -20
- package/dist/s-image-modal/s-image-modal.js +150 -135
- package/dist/s-item-not-found/index.js +2 -2
- package/dist/s-item-not-found/s-item-not-found.d.ts +14 -1
- package/dist/s-item-not-found/s-item-not-found.js +21 -10
- package/dist/s-label/index.js +2 -2
- package/dist/s-label/s-label.d.ts +9 -25
- package/dist/s-label/s-label.js +19 -9
- package/dist/s-language-switcher/index.js +3 -3
- package/dist/s-language-switcher/s-language-switcher.d.ts +20 -33
- package/dist/s-language-switcher/s-language-switcher.js +137 -115
- package/dist/s-lazy-image/index.js +10 -2
- package/dist/s-lazy-image/s-lazy-image.d.ts +12 -58
- package/dist/s-lazy-image/s-lazy-image.js +53 -58
- package/dist/s-localization-provider/index.js +2 -2
- package/dist/s-localization-provider/s-localization-provider.d.ts +6 -27
- package/dist/s-localization-provider/s-localization-provider.js +157 -149
- package/dist/s-moving-border/index.js +2 -2
- package/dist/s-moving-border/s-moving-border.d.ts +3 -33
- package/dist/s-moving-border/s-moving-border.js +65 -55
- package/dist/s-multi-select/index.js +2 -2
- package/dist/s-multi-select/s-multi-select.d.ts +5 -15
- package/dist/s-multi-select/s-multi-select.js +54 -45
- package/dist/s-no-ssr/index.js +2 -2
- package/dist/s-no-ssr/s-no-ssr.d.ts +5 -33
- package/dist/s-no-ssr/s-no-ssr.js +21 -11
- package/dist/s-overlay-scrollbar/index.js +2 -2
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.d.ts +10 -1
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +16 -11
- package/dist/s-pagination/index.js +2 -2
- package/dist/s-pagination/s-pagination.d.ts +5 -23
- package/dist/s-pagination/s-pagination.js +17 -11
- package/dist/s-pixel-reveal/index.js +2 -2
- package/dist/s-pixel-reveal/s-pixel-reveal.d.ts +15 -1
- package/dist/s-pixel-reveal/s-pixel-reveal.js +83 -78
- package/dist/s-radial-pulse-animate/index.js +2 -2
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.d.ts +12 -1
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +52 -42
- package/dist/s-rating/index.js +2 -2
- package/dist/s-rating/s-rating.d.ts +7 -1
- package/dist/s-rating/s-rating.js +15 -5
- package/dist/s-review/index.js +2 -2
- package/dist/s-review/s-review.d.ts +25 -1
- package/dist/s-review/s-review.js +104 -97
- package/dist/s-scroll-reveal/index.js +2 -2
- package/dist/s-scroll-reveal/s-scroll-reveal.d.ts +17 -36
- package/dist/s-scroll-reveal/s-scroll-reveal.js +43 -33
- package/dist/s-scroll-to-top/index.js +2 -2
- package/dist/s-scroll-to-top/s-scroll-to-top.d.ts +12 -17
- package/dist/s-scroll-to-top/s-scroll-to-top.js +20 -15
- package/dist/s-select/index.js +2 -2
- package/dist/s-select/s-select.d.ts +3 -22
- package/dist/s-select/s-select.js +76 -72
- package/dist/s-select-list/index.js +2 -2
- package/dist/s-select-list/s-select-list.d.ts +16 -19
- package/dist/s-select-list/s-select-list.js +33 -28
- package/dist/s-skeleton/index.js +2 -2
- package/dist/s-skeleton/s-skeleton.d.ts +6 -22
- package/dist/s-skeleton/s-skeleton.js +28 -18
- package/dist/s-snackbar-message/index.js +4 -4
- package/dist/s-snackbar-message/s-snackbar-message.d.ts +5 -23
- package/dist/s-snackbar-message/s-snackbar-message.js +38 -31
- package/dist/s-spotlight-cursor/index.js +2 -2
- package/dist/s-spotlight-cursor/s-spotlight-cursor.d.ts +10 -44
- package/dist/s-spotlight-cursor/s-spotlight-cursor.js +35 -29
- package/dist/s-stripe/index.d.ts +4 -1
- package/dist/s-stripe/index.js +7 -4
- package/dist/s-stripe/s-stripe-cvc.d.ts +8 -0
- package/dist/s-stripe/s-stripe-cvc.js +15 -0
- package/dist/s-stripe/s-stripe-expiry.d.ts +8 -0
- package/dist/s-stripe/s-stripe-expiry.js +15 -0
- package/dist/s-stripe/s-stripe-number.d.ts +8 -0
- package/dist/s-stripe/s-stripe-number.js +15 -0
- package/dist/s-stripe/s-stripe.d.ts +6 -85
- package/dist/s-stripe/s-stripe.js +24 -27
- package/dist/s-stripe/stripe-input.js +22 -18
- package/dist/s-tabs/index.js +6 -6
- package/dist/s-tabs/s-tab-panel.d.ts +11 -1
- package/dist/s-tabs/s-tab-panel.js +25 -16
- package/dist/s-tabs/s-tab.js +9 -5
- package/dist/s-tabs/s-tabs.d.ts +24 -3
- package/dist/s-tabs/s-tabs.js +34 -25
- package/dist/s-text-editor/index.js +3 -3
- package/dist/s-text-editor/s-text-editor-toolbar.js +91 -76
- package/dist/s-text-editor/s-text-editor.d.ts +13 -11
- package/dist/s-text-editor/s-text-editor.js +44 -30
- package/dist/s-text-field/index.js +2 -2
- package/dist/s-text-field/s-text-field.d.ts +6 -15
- package/dist/s-text-field/s-text-field.js +38 -28
- package/dist/s-text-shimmer/index.js +2 -2
- package/dist/s-text-shimmer/s-text-shimmer.d.ts +10 -1
- package/dist/s-text-shimmer/s-text-shimmer.js +27 -18
- package/dist/s-text-truncation/index.js +2 -2
- package/dist/s-text-truncation/s-text-truncation.d.ts +9 -38
- package/dist/s-text-truncation/s-text-truncation.js +34 -20
- package/dist/s-theme-demo/s-theme-demo.js +238 -223
- package/dist/s-theme-provider/index.js +1 -1
- package/dist/s-theme-provider/s-theme-provider.d.ts +5 -17
- package/dist/s-theme-provider/s-theme-provider.js +44 -34
- package/dist/s-theme-switch/s-theme-switch.js +23 -19
- package/dist/s-tip/index.js +2 -2
- package/dist/s-tip/s-tip.d.ts +5 -22
- package/dist/s-tip/s-tip.js +22 -12
- package/dist/s-two-pane-layout/index.js +10 -2
- package/dist/s-two-pane-layout/s-two-pane-layout.d.ts +7 -1
- package/dist/s-two-pane-layout/s-two-pane-layout.js +58 -48
- package/dist/s-typewriter-text/index.js +2 -2
- package/dist/s-typewriter-text/s-typewriter-text.d.ts +17 -1
- package/dist/s-typewriter-text/s-typewriter-text.js +37 -27
- package/dist/s-zoom-image/index.js +10 -2
- package/dist/s-zoom-image/s-zoom-image.d.ts +10 -42
- package/dist/s-zoom-image/s-zoom-image.js +62 -52
- package/dist/theme/components/alert.d.ts +1436 -1436
- package/dist/theme/components/button.d.ts +2150 -2150
- package/dist/theme/components/chip.d.ts +2 -2
- package/dist/theme/customizations/data-display.js +1 -1
- package/dist/{typographyClasses-C7fhAsUD.js → typographyClasses-DDyl9mok.js} +4 -4
- package/dist/{useMobilePicker-DgxcRrRB.js → useMobilePicker-C1RZZUWr.js} +1 -1
- package/package.json +10 -4
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { Box as
|
|
4
|
-
import { useMotionValue as
|
|
5
|
-
const
|
|
1
|
+
import { j as e } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
+
import { useRef as f, useEffect as w } from "react";
|
|
3
|
+
import { Box as a } from "@mui/material";
|
|
4
|
+
import { useMotionValue as _, useAnimationFrame as j, useTransform as g, useMotionTemplate as S, motion as C } from "framer-motion";
|
|
5
|
+
const N = 250, V = "#38bdf8", h = (n, r) => ({
|
|
6
6
|
position: "absolute",
|
|
7
7
|
left: "50%",
|
|
8
8
|
top: "50%",
|
|
9
|
-
width: `${
|
|
10
|
-
height: `${
|
|
9
|
+
width: `${n}px`,
|
|
10
|
+
height: `${n}px`,
|
|
11
11
|
transform: "translate(-50%, -50%)",
|
|
12
12
|
opacity: 0.5,
|
|
13
13
|
background: `radial-gradient(${r} 40%, transparent 60%)`,
|
|
@@ -16,31 +16,31 @@ const E = 250, A = "#38bdf8", d = (o, r) => ({
|
|
|
16
16
|
pointerEvents: "none"
|
|
17
17
|
// Prevents interference with user interactions
|
|
18
18
|
});
|
|
19
|
-
function
|
|
20
|
-
children:
|
|
19
|
+
function x({
|
|
20
|
+
children: n,
|
|
21
21
|
duration: r,
|
|
22
|
-
rx:
|
|
23
|
-
ry:
|
|
22
|
+
rx: p,
|
|
23
|
+
ry: d,
|
|
24
24
|
phase: c = 0
|
|
25
25
|
}) {
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
var
|
|
29
|
-
const
|
|
30
|
-
if (
|
|
31
|
-
const
|
|
32
|
-
|
|
26
|
+
const i = f(null), s = _(0);
|
|
27
|
+
j((l) => {
|
|
28
|
+
var o;
|
|
29
|
+
const t = (o = i.current) == null ? void 0 : o.getTotalLength();
|
|
30
|
+
if (t) {
|
|
31
|
+
const v = t / r;
|
|
32
|
+
s.set((l * v + t * c) % t);
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
|
-
const
|
|
36
|
-
var
|
|
37
|
-
return (
|
|
38
|
-
}),
|
|
39
|
-
var
|
|
40
|
-
return (
|
|
41
|
-
}),
|
|
42
|
-
return /* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
35
|
+
const u = g(s, (l) => {
|
|
36
|
+
var t, o;
|
|
37
|
+
return (o = (t = i.current) == null ? void 0 : t.getPointAtLength(l)) == null ? void 0 : o.x;
|
|
38
|
+
}), b = g(s, (l) => {
|
|
39
|
+
var t, o;
|
|
40
|
+
return (o = (t = i.current) == null ? void 0 : t.getPointAtLength(l)) == null ? void 0 : o.y;
|
|
41
|
+
}), y = S`translateX(${u}px) translateY(${b}px) translateX(-50%) translateY(-50%)`;
|
|
42
|
+
return /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
43
|
+
/* @__PURE__ */ e.jsx(
|
|
44
44
|
"svg",
|
|
45
45
|
{
|
|
46
46
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -48,38 +48,38 @@ function m({
|
|
|
48
48
|
width: "100%",
|
|
49
49
|
height: "100%",
|
|
50
50
|
style: { position: "absolute", inset: 0 },
|
|
51
|
-
children: /* @__PURE__ */
|
|
51
|
+
children: /* @__PURE__ */ e.jsx("rect", { fill: "none", width: "100%", height: "100%", rx: p, ry: d, ref: i })
|
|
52
52
|
}
|
|
53
53
|
),
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
|
|
54
|
+
/* @__PURE__ */ e.jsx(
|
|
55
|
+
C.div,
|
|
56
56
|
{
|
|
57
57
|
style: {
|
|
58
58
|
position: "absolute",
|
|
59
59
|
top: 0,
|
|
60
60
|
left: 0,
|
|
61
61
|
display: "inline-block",
|
|
62
|
-
transform:
|
|
62
|
+
transform: y
|
|
63
63
|
},
|
|
64
|
-
children:
|
|
64
|
+
children: n
|
|
65
65
|
}
|
|
66
66
|
)
|
|
67
67
|
] });
|
|
68
68
|
}
|
|
69
|
-
|
|
70
|
-
className:
|
|
69
|
+
const m = ({
|
|
70
|
+
className: n,
|
|
71
71
|
duration: r = 6e3,
|
|
72
|
-
children:
|
|
73
|
-
glowColor:
|
|
74
|
-
glowSize: c =
|
|
75
|
-
...
|
|
76
|
-
}) {
|
|
77
|
-
const
|
|
72
|
+
children: p,
|
|
73
|
+
glowColor: d = V,
|
|
74
|
+
glowSize: c = N,
|
|
75
|
+
...i
|
|
76
|
+
}) => {
|
|
77
|
+
const s = f(null), u = f(null);
|
|
78
78
|
return w(() => () => {
|
|
79
|
-
|
|
79
|
+
u.current !== null && window.cancelAnimationFrame(u.current);
|
|
80
80
|
}, []), // Main container with relative positioning for absolute children
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
-
|
|
81
|
+
/* @__PURE__ */ e.jsxs(
|
|
82
|
+
a,
|
|
83
83
|
{
|
|
84
84
|
position: "relative",
|
|
85
85
|
overflow: "hidden",
|
|
@@ -89,15 +89,15 @@ function k({
|
|
|
89
89
|
sx: {
|
|
90
90
|
backgroundColor: "transparent"
|
|
91
91
|
},
|
|
92
|
-
className:
|
|
93
|
-
...
|
|
92
|
+
className: n,
|
|
93
|
+
...i,
|
|
94
94
|
children: [
|
|
95
|
-
/* @__PURE__ */
|
|
96
|
-
/* @__PURE__ */
|
|
97
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ e.jsxs(a, { position: "absolute", top: 0, left: 0, right: 0, bottom: 0, children: [
|
|
96
|
+
/* @__PURE__ */ e.jsx(x, { duration: r, rx: "100%", ry: "100%", phase: 0, children: /* @__PURE__ */ e.jsx(a, { sx: h(c, d) }) }),
|
|
97
|
+
/* @__PURE__ */ e.jsx(x, { duration: r, rx: "100%", ry: "100%", phase: 0.5, children: /* @__PURE__ */ e.jsx(a, { sx: h(c, d) }) })
|
|
98
98
|
] }),
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
|
|
99
|
+
/* @__PURE__ */ e.jsx(
|
|
100
|
+
a,
|
|
101
101
|
{
|
|
102
102
|
sx: {
|
|
103
103
|
position: "absolute",
|
|
@@ -108,10 +108,10 @@ function k({
|
|
|
108
108
|
height: "100%",
|
|
109
109
|
zIndex: 2
|
|
110
110
|
},
|
|
111
|
-
children: /* @__PURE__ */
|
|
112
|
-
|
|
111
|
+
children: /* @__PURE__ */ e.jsx(
|
|
112
|
+
a,
|
|
113
113
|
{
|
|
114
|
-
ref:
|
|
114
|
+
ref: s,
|
|
115
115
|
sx: {
|
|
116
116
|
position: "absolute",
|
|
117
117
|
left: "50%",
|
|
@@ -129,11 +129,21 @@ function k({
|
|
|
129
129
|
)
|
|
130
130
|
}
|
|
131
131
|
),
|
|
132
|
-
|
|
132
|
+
p
|
|
133
133
|
]
|
|
134
134
|
}
|
|
135
135
|
);
|
|
136
|
+
};
|
|
137
|
+
m.displayName = "SMovingBorder";
|
|
138
|
+
try {
|
|
139
|
+
m.displayName = "SMovingBorder", m.__docgenInfo = { description: "An animated border effect component that creates smooth moving light effects around the element perimeter.", displayName: "SMovingBorder", props: { duration: { defaultValue: { value: "6000" }, description: "Duration of one complete animation cycle in milliseconds (default: 6000)", name: "duration", required: !1, type: { name: "number" } }, className: { defaultValue: null, description: "Additional CSS class name for styling", name: "className", required: !1, type: { name: "string" } }, glowColor: { defaultValue: { value: "#38bdf8" }, description: "Color of the glow effect (default: '#38bdf8')", name: "glowColor", required: !1, type: { name: "string" } }, glowSize: { defaultValue: { value: "250" }, description: "Size of the glow effect in pixels (default: 250)", name: "glowSize", required: !1, type: { name: "number" } }, children: { defaultValue: null, description: "Content to render inside the moving border container", name: "children", required: !0, type: { name: "ReactNode" } } } };
|
|
140
|
+
} catch {
|
|
141
|
+
}
|
|
142
|
+
try {
|
|
143
|
+
smovingborder.displayName = "smovingborder", smovingborder.__docgenInfo = { description: "An animated border effect component that creates smooth moving light effects around the element perimeter.", displayName: "smovingborder", props: { duration: { defaultValue: { value: "6000" }, description: "Duration of one complete animation cycle in milliseconds (default: 6000)", name: "duration", required: !1, type: { name: "number" } }, className: { defaultValue: null, description: "Additional CSS class name for styling", name: "className", required: !1, type: { name: "string" } }, glowColor: { defaultValue: { value: "#38bdf8" }, description: "Color of the glow effect (default: '#38bdf8')", name: "glowColor", required: !1, type: { name: "string" } }, glowSize: { defaultValue: { value: "250" }, description: "Size of the glow effect in pixels (default: 250)", name: "glowSize", required: !1, type: { name: "number" } }, children: { defaultValue: null, description: "Content to render inside the moving border container", name: "children", required: !0, type: { name: "ReactNode" } } } };
|
|
144
|
+
} catch {
|
|
136
145
|
}
|
|
137
146
|
export {
|
|
138
|
-
|
|
147
|
+
m as SMovingBorder,
|
|
148
|
+
m as default
|
|
139
149
|
};
|
|
@@ -19,19 +19,9 @@ export interface SMultiSelectProps<T = string> {
|
|
|
19
19
|
/** Additional props to pass to the chips component */
|
|
20
20
|
chipProps?: Omit<SChipsProps, 'chips'>;
|
|
21
21
|
}
|
|
22
|
-
/**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
* - Popover-based dropdown menu for option selection
|
|
28
|
-
* - Selected values displayed as removable chips below the input
|
|
29
|
-
* - Dynamic menu width matching the input field
|
|
30
|
-
* - Toggle selection behavior (click to select/deselect)
|
|
31
|
-
* - Integration with SChips component for consistent chip styling
|
|
32
|
-
*
|
|
33
|
-
* @param props - SMultiSelectProps with options, values, and configuration
|
|
34
|
-
* @returns JSX.Element - Multi-select input with chip display
|
|
35
|
-
*/
|
|
36
|
-
declare function SMultiSelect<T = string>({ label, onChange, options, value, chipProps, }: SMultiSelectProps<T>): React.JSX.Element;
|
|
22
|
+
/** A multi-selection dropdown component that displays selected items as chips. */
|
|
23
|
+
export declare const SMultiSelect: {
|
|
24
|
+
<T = string>({ label, onChange, options, value, chipProps, }: SMultiSelectProps<T>): React.JSX.Element;
|
|
25
|
+
displayName: string;
|
|
26
|
+
};
|
|
37
27
|
export default SMultiSelect;
|
|
@@ -1,42 +1,41 @@
|
|
|
1
1
|
import { j as t } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
-
import * as
|
|
3
|
-
import { c as
|
|
4
|
-
import { Stack as
|
|
5
|
-
import { usePopover as
|
|
6
|
-
import
|
|
7
|
-
import { M as
|
|
8
|
-
import { M as
|
|
9
|
-
const
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { c as v } from "../createSvgIcon-DxwgGAVe.js";
|
|
4
|
+
import { Stack as x, OutlinedInput as b } from "@mui/material";
|
|
5
|
+
import { usePopover as _ } from "../hooks/use-popover.js";
|
|
6
|
+
import { SChips as S } from "../s-chips/s-chips.js";
|
|
7
|
+
import { M as g } from "../Menu-CWq-a1Wz.js";
|
|
8
|
+
import { M as C } from "../MenuItem-DY_qFSPR.js";
|
|
9
|
+
const V = v(/* @__PURE__ */ t.jsx("path", {
|
|
10
10
|
d: "M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15z"
|
|
11
|
-
}), "UnfoldMore")
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
s ? n.push(e) : n = n.filter((x) => x !== e), o == null || o(n);
|
|
11
|
+
}), "UnfoldMore"), u = ({
|
|
12
|
+
label: o,
|
|
13
|
+
onChange: a,
|
|
14
|
+
options: c,
|
|
15
|
+
value: i = [],
|
|
16
|
+
chipProps: m
|
|
17
|
+
}) => {
|
|
18
|
+
const l = _(), p = r.useRef(null), [d, f] = r.useState();
|
|
19
|
+
r.useEffect(() => {
|
|
20
|
+
p.current && f(p.current.offsetWidth);
|
|
21
|
+
}, [l.open]);
|
|
22
|
+
const h = r.useCallback(
|
|
23
|
+
(e, n) => {
|
|
24
|
+
let s = [...i];
|
|
25
|
+
n ? s.push(e) : s = s.filter((y) => y !== e), a == null || a(s);
|
|
27
26
|
},
|
|
28
|
-
[
|
|
27
|
+
[a, i]
|
|
29
28
|
);
|
|
30
|
-
return /* @__PURE__ */ t.jsxs(
|
|
29
|
+
return /* @__PURE__ */ t.jsxs(x, { direction: "column", gap: 1, children: [
|
|
31
30
|
/* @__PURE__ */ t.jsx(
|
|
32
|
-
|
|
31
|
+
b,
|
|
33
32
|
{
|
|
34
|
-
endAdornment: /* @__PURE__ */ t.jsx(
|
|
35
|
-
onClick:
|
|
33
|
+
endAdornment: /* @__PURE__ */ t.jsx(V, { fontSize: "small", sx: { color: "action.active", position: "absolute", right: "7px" } }),
|
|
34
|
+
onClick: l.handleOpen,
|
|
36
35
|
ref: (e) => {
|
|
37
|
-
|
|
36
|
+
l.anchorRef.current = e, p.current = e;
|
|
38
37
|
},
|
|
39
|
-
value:
|
|
38
|
+
value: o,
|
|
40
39
|
sx: {
|
|
41
40
|
input: {
|
|
42
41
|
color: "text.secondary"
|
|
@@ -45,21 +44,21 @@ function P({
|
|
|
45
44
|
}
|
|
46
45
|
),
|
|
47
46
|
/* @__PURE__ */ t.jsx(
|
|
48
|
-
|
|
47
|
+
g,
|
|
49
48
|
{
|
|
50
|
-
anchorEl:
|
|
51
|
-
onClose:
|
|
52
|
-
open:
|
|
53
|
-
slotProps: { paper: { sx: { width:
|
|
54
|
-
children:
|
|
55
|
-
const
|
|
49
|
+
anchorEl: l.anchorRef.current,
|
|
50
|
+
onClose: l.handleClose,
|
|
51
|
+
open: l.open,
|
|
52
|
+
slotProps: { paper: { sx: { width: d ? `${d}px` : void 0 } } },
|
|
53
|
+
children: c.map((e) => {
|
|
54
|
+
const n = i.includes(e.value);
|
|
56
55
|
return /* @__PURE__ */ t.jsx(
|
|
57
|
-
|
|
56
|
+
C,
|
|
58
57
|
{
|
|
59
58
|
onClick: () => {
|
|
60
|
-
|
|
59
|
+
h(e.value, !n);
|
|
61
60
|
},
|
|
62
|
-
selected:
|
|
61
|
+
selected: n,
|
|
63
62
|
children: e.label
|
|
64
63
|
},
|
|
65
64
|
e.label
|
|
@@ -68,14 +67,24 @@ function P({
|
|
|
68
67
|
}
|
|
69
68
|
),
|
|
70
69
|
/* @__PURE__ */ t.jsx(
|
|
71
|
-
|
|
70
|
+
S,
|
|
72
71
|
{
|
|
73
|
-
chips:
|
|
74
|
-
...
|
|
72
|
+
chips: c.filter((e) => i.includes(e.value)).map((e) => e.label),
|
|
73
|
+
...m
|
|
75
74
|
}
|
|
76
75
|
)
|
|
77
76
|
] });
|
|
77
|
+
};
|
|
78
|
+
u.displayName = "SMultiSelect";
|
|
79
|
+
try {
|
|
80
|
+
u.displayName = "SMultiSelect", u.__docgenInfo = { description: "A multi-selection dropdown component that displays selected items as chips.", displayName: "SMultiSelect", props: { label: { defaultValue: null, description: "Label text displayed in the input field", name: "label", required: !0, type: { name: "string" } }, onChange: { defaultValue: null, description: "Callback fired when the selection changes", name: "onChange", required: !1, type: { name: "((value: T[]) => void)" } }, options: { defaultValue: null, description: "Array of options with label and value pairs", name: "options", required: !0, type: { name: "readonly { label: string; value: T; }[]" } }, value: { defaultValue: { value: "[]" }, description: "Currently selected values", name: "value", required: !1, type: { name: "T[]" } }, chipProps: { defaultValue: null, description: "Additional props to pass to the chips component", name: "chipProps", required: !1, type: { name: 'Omit<SChipsProps, "chips">' } } } };
|
|
81
|
+
} catch {
|
|
82
|
+
}
|
|
83
|
+
try {
|
|
84
|
+
smultiselect.displayName = "smultiselect", smultiselect.__docgenInfo = { description: "A multi-selection dropdown component that displays selected items as chips.", displayName: "smultiselect", props: { label: { defaultValue: null, description: "Label text displayed in the input field", name: "label", required: !0, type: { name: "string" } }, onChange: { defaultValue: null, description: "Callback fired when the selection changes", name: "onChange", required: !1, type: { name: "((value: T[]) => void)" } }, options: { defaultValue: null, description: "Array of options with label and value pairs", name: "options", required: !0, type: { name: "readonly { label: string; value: T; }[]" } }, value: { defaultValue: { value: "[]" }, description: "Currently selected values", name: "value", required: !1, type: { name: "T[]" } }, chipProps: { defaultValue: null, description: "Additional props to pass to the chips component", name: "chipProps", required: !1, type: { name: 'Omit<SChipsProps, "chips">' } } } };
|
|
85
|
+
} catch {
|
|
78
86
|
}
|
|
79
87
|
export {
|
|
80
|
-
|
|
88
|
+
u as SMultiSelect,
|
|
89
|
+
u as default
|
|
81
90
|
};
|
package/dist/s-no-ssr/index.js
CHANGED
|
@@ -10,37 +10,9 @@ export interface SNoSsrProps {
|
|
|
10
10
|
/** Content to show during server-side rendering or while loading */
|
|
11
11
|
fallback?: React.ReactNode;
|
|
12
12
|
}
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* - Depend on browser-only APIs (localStorage, document, window)
|
|
19
|
-
* - Have different server vs client rendering (e.g., dynamic content)
|
|
20
|
-
* - Need to avoid hydration mismatches
|
|
21
|
-
* - Require client-side only libraries
|
|
22
|
-
*
|
|
23
|
-
* The component uses Material-UI's enhanced effect hook to ensure proper
|
|
24
|
-
* timing with React's concurrent features and server-side rendering.
|
|
25
|
-
*
|
|
26
|
-
* @param children - Content that should only render on client side
|
|
27
|
-
* @param defer - If true, delays rendering until after initial paint (default: false)
|
|
28
|
-
* @param fallback - Content to show during SSR and initial client load (default: null)
|
|
29
|
-
* @returns JSX fragment containing either fallback or children based on mount state
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```tsx
|
|
33
|
-
* <SNoSSR fallback={<div>Loading...</div>}>
|
|
34
|
-
* <ComponentThatUsesLocalStorage />
|
|
35
|
-
* </SNoSSR>
|
|
36
|
-
*
|
|
37
|
-
* // With defer for performance
|
|
38
|
-
* <SNoSSR defer fallback={<Skeleton />}>
|
|
39
|
-
* <ExpensiveClientOnlyComponent />
|
|
40
|
-
* </SNoSSR>
|
|
41
|
-
* ```
|
|
42
|
-
*
|
|
43
|
-
* @see https://github.com/mui/material-ui/blob/master/packages/mui-base/src/NoSsr/NoSsr.tsx
|
|
44
|
-
*/
|
|
45
|
-
declare const SNoSsr: (props: SNoSsrProps) => React.JSX.Element;
|
|
13
|
+
/** Component that prevents server-side rendering of its children. */
|
|
14
|
+
export declare const SNoSsr: {
|
|
15
|
+
(props: SNoSsrProps): React.JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
46
18
|
export default SNoSsr;
|
|
@@ -1,14 +1,24 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import * as
|
|
3
|
-
import { u } from "../useEnhancedEffect-CJGo-L3B.js";
|
|
4
|
-
const
|
|
5
|
-
const { children:
|
|
6
|
-
return
|
|
7
|
-
e ||
|
|
8
|
-
}, [e]),
|
|
9
|
-
e &&
|
|
10
|
-
}, [e]), /* @__PURE__ */
|
|
1
|
+
import { j as d } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
+
import * as n from "react";
|
|
3
|
+
import { u as s } from "../useEnhancedEffect-CJGo-L3B.js";
|
|
4
|
+
const t = (r) => {
|
|
5
|
+
const { children: i, defer: e = !1, fallback: o = null } = r, [l, a] = n.useState(!1);
|
|
6
|
+
return s(() => {
|
|
7
|
+
e || a(!0);
|
|
8
|
+
}, [e]), n.useEffect(() => {
|
|
9
|
+
e && a(!0);
|
|
10
|
+
}, [e]), /* @__PURE__ */ d.jsx(n.Fragment, { children: l ? i : o });
|
|
11
11
|
};
|
|
12
|
+
t.displayName = "SNoSsr";
|
|
13
|
+
try {
|
|
14
|
+
t.displayName = "SNoSsr", t.__docgenInfo = { description: "Component that prevents server-side rendering of its children.", displayName: "SNoSsr", props: { children: { defaultValue: null, description: "Content to render only on the client side", name: "children", required: !1, type: { name: "ReactNode" } }, defer: { defaultValue: null, description: "Whether to defer rendering until after initial paint", name: "defer", required: !1, type: { name: "boolean" } }, fallback: { defaultValue: null, description: "Content to show during server-side rendering or while loading", name: "fallback", required: !1, type: { name: "ReactNode" } } } };
|
|
15
|
+
} catch {
|
|
16
|
+
}
|
|
17
|
+
try {
|
|
18
|
+
snossr.displayName = "snossr", snossr.__docgenInfo = { description: "Component that prevents server-side rendering of its children.", displayName: "snossr", props: { children: { defaultValue: null, description: "Content to render only on the client side", name: "children", required: !1, type: { name: "ReactNode" } }, defer: { defaultValue: null, description: "Whether to defer rendering until after initial paint", name: "defer", required: !1, type: { name: "boolean" } }, fallback: { defaultValue: null, description: "Content to show during server-side rendering or while loading", name: "fallback", required: !1, type: { name: "ReactNode" } } } };
|
|
19
|
+
} catch {
|
|
20
|
+
}
|
|
12
21
|
export {
|
|
13
|
-
|
|
22
|
+
t as SNoSsr,
|
|
23
|
+
t as default
|
|
14
24
|
};
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { SxProps, Theme } from '@mui/material';
|
|
3
|
+
/**
|
|
4
|
+
* Props interface for SOverlayScrollbar component
|
|
5
|
+
*/
|
|
3
6
|
export interface SOverlayScrollbarProps extends PropsWithChildren {
|
|
7
|
+
/** Optional id for the scrollbar container */
|
|
4
8
|
id?: string;
|
|
9
|
+
/** Additional CSS class name */
|
|
5
10
|
className?: string;
|
|
11
|
+
/** Material-UI sx prop for custom styling */
|
|
6
12
|
sx?: SxProps<Theme>;
|
|
7
13
|
}
|
|
8
|
-
|
|
14
|
+
/**
|
|
15
|
+
* A custom scrollbar component with overlay styling, auto-hide functionality, and smooth animations.
|
|
16
|
+
*/
|
|
17
|
+
export declare const SOverlayScrollbar: import('react').ForwardRefExoticComponent<SOverlayScrollbarProps & import('react').RefAttributes<import('overlayscrollbars-react').OverlayScrollbarsComponentRef<import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>>>>;
|
|
9
18
|
export default SOverlayScrollbar;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { forwardRef as
|
|
1
|
+
import { j as i } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
+
import { forwardRef as n } from "react";
|
|
3
3
|
import { styled as d } from "@mui/material";
|
|
4
|
-
import { OverlayScrollbarsComponent as
|
|
5
|
-
import '../assets/s-overlay-scrollbar.css';const
|
|
4
|
+
import { OverlayScrollbarsComponent as p } from "overlayscrollbars-react";
|
|
5
|
+
import '../assets/s-overlay-scrollbar.css';const c = d(p)(({ theme: a }) => ({
|
|
6
6
|
maxHeight: "100%",
|
|
7
7
|
".os-theme-dark": {
|
|
8
8
|
"--os-size": "10px",
|
|
@@ -15,22 +15,27 @@ import '../assets/s-overlay-scrollbar.css';const b = d(i)(({ theme: a }) => ({
|
|
|
15
15
|
"--os-handle-bg-active": (a.vars || a).palette.whiteAlpha.dark
|
|
16
16
|
})
|
|
17
17
|
}
|
|
18
|
-
})),
|
|
19
|
-
({ sx: a, children: r, className:
|
|
20
|
-
|
|
18
|
+
})), l = n(
|
|
19
|
+
({ sx: a, children: r, className: e, id: o, ...s }, t) => /* @__PURE__ */ i.jsx(
|
|
20
|
+
c,
|
|
21
21
|
{
|
|
22
22
|
id: o,
|
|
23
|
-
ref:
|
|
23
|
+
ref: t,
|
|
24
24
|
defer: !0,
|
|
25
25
|
sx: a,
|
|
26
|
-
className:
|
|
26
|
+
className: e,
|
|
27
27
|
options: { scrollbars: { autoHide: "leave", autoHideDelay: 100 } },
|
|
28
28
|
...s,
|
|
29
29
|
children: r
|
|
30
30
|
}
|
|
31
31
|
)
|
|
32
32
|
);
|
|
33
|
-
|
|
33
|
+
l.displayName = "SOverlayScrollbar";
|
|
34
|
+
try {
|
|
35
|
+
l.displayName = "SOverlayScrollbar", l.__docgenInfo = { description: "A custom scrollbar component with overlay styling, auto-hide functionality, and smooth animations.", displayName: "SOverlayScrollbar", props: { id: { defaultValue: null, description: "Optional id for the scrollbar container", name: "id", required: !1, type: { name: "string" } }, className: { defaultValue: null, description: "Additional CSS class name", name: "className", required: !1, type: { name: "string" } }, sx: { defaultValue: null, description: "Material-UI sx prop for custom styling", name: "sx", required: !1, type: { name: "SxProps<Theme>" } } } };
|
|
36
|
+
} catch {
|
|
37
|
+
}
|
|
34
38
|
export {
|
|
35
|
-
|
|
39
|
+
l as SOverlayScrollbar,
|
|
40
|
+
l as default
|
|
36
41
|
};
|
|
@@ -10,28 +10,10 @@ export interface SPaginationProps extends PaginationProps {
|
|
|
10
10
|
count?: number;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
|
-
* Enhanced pagination component with responsive sizing and loading states
|
|
14
|
-
*
|
|
15
|
-
* Features:
|
|
16
|
-
* - Responsive sizing (small on mobile, medium on larger screens)
|
|
17
|
-
* - Loading skeleton state
|
|
18
|
-
* - Conditional rendering (hidden when count is 0)
|
|
19
|
-
* - Full-width container layout
|
|
20
|
-
*
|
|
21
|
-
* @param loading - When true, displays loading skeleton instead of pagination
|
|
22
|
-
* @param count - Total number of pages (defaults to 0, hides component when 0)
|
|
23
|
-
* @param props - All other Material-UI Pagination props
|
|
24
|
-
* @returns JSX element containing responsive pagination or loading skeleton
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```tsx
|
|
28
|
-
* <SPagination
|
|
29
|
-
* count={totalPages}
|
|
30
|
-
* page={currentPage}
|
|
31
|
-
* onChange={handlePageChange}
|
|
32
|
-
* loading={isLoading}
|
|
33
|
-
* />
|
|
34
|
-
* ```
|
|
13
|
+
* Enhanced pagination component with responsive sizing and loading states.
|
|
35
14
|
*/
|
|
36
|
-
declare const SPagination:
|
|
15
|
+
export declare const SPagination: {
|
|
16
|
+
({ loading, count, ...props }: SPaginationProps): React.JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
37
19
|
export default SPagination;
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useTheme as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
/* @__PURE__ */
|
|
6
|
-
/* @__PURE__ */
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
] }),
|
|
9
|
-
const r =
|
|
10
|
-
return o === 0 ? /* @__PURE__ */
|
|
1
|
+
import { j as e } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
+
import { useTheme as l, useMediaQuery as d, Box as m, Pagination as p, Stack as u } from "@mui/material";
|
|
3
|
+
import { SSkeleton as t } from "../s-skeleton/s-skeleton.js";
|
|
4
|
+
const c = ({ style: n }) => /* @__PURE__ */ e.jsxs(u, { direction: "row", flexWrap: "wrap", gap: 1, justifyContent: "center", style: n, children: [
|
|
5
|
+
/* @__PURE__ */ e.jsx(t, { component: "icon-button" }),
|
|
6
|
+
/* @__PURE__ */ e.jsx(t, { variant: "rounded", width: 120 }),
|
|
7
|
+
/* @__PURE__ */ e.jsx(t, { component: "icon-button" })
|
|
8
|
+
] }), a = ({ loading: n, count: o = 0, ...i }) => {
|
|
9
|
+
const r = l(), s = d(r.breakpoints.down("sm"));
|
|
10
|
+
return o === 0 ? /* @__PURE__ */ e.jsx(e.Fragment, {}) : n ? /* @__PURE__ */ e.jsx(c, { style: i.style }) : /* @__PURE__ */ e.jsx(m, { width: "100%", children: /* @__PURE__ */ e.jsx(p, { size: s ? "small" : "medium", count: o, ...i }) });
|
|
11
11
|
};
|
|
12
|
+
a.displayName = "SPagination";
|
|
13
|
+
try {
|
|
14
|
+
a.displayName = "SPagination", a.__docgenInfo = { description: "Enhanced pagination component with responsive sizing and loading states.", displayName: "SPagination", props: { loading: { defaultValue: null, description: "Whether the pagination is in a loading state - shows skeleton when true", name: "loading", required: !1, type: { name: "boolean" } }, count: { defaultValue: { value: "0" }, description: "Total number of pages - component returns empty fragment when 0", name: "count", required: !1, type: { name: "number" } } } };
|
|
15
|
+
} catch {
|
|
16
|
+
}
|
|
12
17
|
export {
|
|
13
|
-
|
|
18
|
+
a as SPagination,
|
|
19
|
+
a as default
|
|
14
20
|
};
|
|
@@ -1,13 +1,27 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props interface for SPixelReveal component
|
|
4
|
+
*/
|
|
2
5
|
export interface SPixelRevealProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
6
|
+
/** Spacing between pixels in the grid */
|
|
3
7
|
gap?: number;
|
|
8
|
+
/** Animation speed multiplier (0-100) */
|
|
4
9
|
speed?: number;
|
|
10
|
+
/** Array of color values randomly assigned to pixels */
|
|
5
11
|
colors?: string[];
|
|
12
|
+
/** Controls pixel animation state */
|
|
6
13
|
loading?: boolean;
|
|
14
|
+
/** Image source URL to display beneath the pixel effect overlay */
|
|
7
15
|
src?: string;
|
|
16
|
+
/** Alt text for the background image */
|
|
8
17
|
alt?: string;
|
|
18
|
+
/** Content to render as overlay on top of the pixel canvas effect */
|
|
9
19
|
children?: React.ReactNode;
|
|
20
|
+
/** If true, all pixels appear immediately without wave/delay effect */
|
|
10
21
|
instant?: boolean;
|
|
11
22
|
}
|
|
12
|
-
|
|
23
|
+
/**
|
|
24
|
+
* An animated pixel effect component that creates a dynamic canvas overlay with customizable pixel animations.
|
|
25
|
+
*/
|
|
26
|
+
export declare const SPixelReveal: React.ForwardRefExoticComponent<SPixelRevealProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
27
|
export default SPixelReveal;
|