@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,32 +1,33 @@
|
|
|
1
1
|
import { j as t } from "../jsx-runtime-OVHDjVDe.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as i from "react";
|
|
3
3
|
import { C as k } from "../ChevronLeft-CBuFk2Fh.js";
|
|
4
4
|
import { C as z } from "../ChevronRight-CnDWPrOm.js";
|
|
5
|
-
import { Box as
|
|
5
|
+
import { Box as n, IconButton as q } from "@mui/material";
|
|
6
|
+
import "../s-lazy-image/index.js";
|
|
6
7
|
import E from "../s-lazy-image/s-lazy-image.js";
|
|
7
|
-
const
|
|
8
|
-
({ sx:
|
|
9
|
-
const m = Array.isArray(u) ? u : [u],
|
|
10
|
-
if (!
|
|
11
|
-
const
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
}, v = (e) => {
|
|
15
|
-
i && x(e.clientX);
|
|
8
|
+
const g = i.forwardRef(
|
|
9
|
+
({ sx: f, leftImage: u, rightImage: S, altLeft: d = "Left image", altRight: C = "Right image", initialPosition: R = 50, ...P }, s) => {
|
|
10
|
+
const m = Array.isArray(u) ? u : [u], v = Array.isArray(d) ? d : [d], [l, M] = i.useState(0), [o, _] = i.useState(R), [a, x] = i.useState(!1), p = i.useRef(null), A = m.length > 1, y = (e) => {
|
|
11
|
+
if (!p.current) return;
|
|
12
|
+
const r = p.current.getBoundingClientRect();
|
|
13
|
+
let h = (e - r.left) / r.width * 100;
|
|
14
|
+
h = Math.max(0, Math.min(100, h)), _(h);
|
|
16
15
|
}, b = (e) => {
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
|
|
16
|
+
a && y(e.clientX);
|
|
17
|
+
}, w = (e) => {
|
|
18
|
+
a && y(e.touches[0].clientX);
|
|
19
|
+
}, I = () => {
|
|
20
|
+
x(!0);
|
|
20
21
|
}, c = () => {
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
return
|
|
24
|
-
document.removeEventListener("mousemove",
|
|
25
|
-
}), [
|
|
26
|
-
|
|
22
|
+
x(!1);
|
|
23
|
+
}, j = o === 0 || o === 100;
|
|
24
|
+
return i.useEffect(() => (a ? (document.addEventListener("mousemove", b), document.addEventListener("touchmove", w), document.addEventListener("mouseup", c), document.addEventListener("touchend", c), document.body.style.cursor = "ew-resize") : document.body.style.cursor = "", () => {
|
|
25
|
+
document.removeEventListener("mousemove", b), document.removeEventListener("touchmove", w), document.removeEventListener("mouseup", c), document.removeEventListener("touchend", c), document.body.style.cursor = "";
|
|
26
|
+
}), [a]), /* @__PURE__ */ t.jsxs(
|
|
27
|
+
n,
|
|
27
28
|
{
|
|
28
29
|
ref: (e) => {
|
|
29
|
-
|
|
30
|
+
p.current = e, typeof s == "function" ? s(e) : s && (s.current = e);
|
|
30
31
|
},
|
|
31
32
|
sx: {
|
|
32
33
|
position: "relative",
|
|
@@ -34,17 +35,17 @@ const F = s.forwardRef(
|
|
|
34
35
|
height: "100%",
|
|
35
36
|
overflow: "hidden",
|
|
36
37
|
userSelect: "none",
|
|
37
|
-
...
|
|
38
|
+
...f
|
|
38
39
|
},
|
|
39
|
-
onMouseDown:
|
|
40
|
-
onTouchStart:
|
|
41
|
-
...
|
|
40
|
+
onMouseDown: I,
|
|
41
|
+
onTouchStart: I,
|
|
42
|
+
...P,
|
|
42
43
|
children: [
|
|
43
44
|
/* @__PURE__ */ t.jsx(
|
|
44
45
|
E,
|
|
45
46
|
{
|
|
46
|
-
src:
|
|
47
|
-
alt:
|
|
47
|
+
src: S,
|
|
48
|
+
alt: C,
|
|
48
49
|
style: {
|
|
49
50
|
position: "absolute",
|
|
50
51
|
inset: 0,
|
|
@@ -57,7 +58,7 @@ const F = s.forwardRef(
|
|
|
57
58
|
}
|
|
58
59
|
),
|
|
59
60
|
/* @__PURE__ */ t.jsx(
|
|
60
|
-
|
|
61
|
+
n,
|
|
61
62
|
{
|
|
62
63
|
sx: {
|
|
63
64
|
position: "absolute",
|
|
@@ -72,7 +73,7 @@ const F = s.forwardRef(
|
|
|
72
73
|
E,
|
|
73
74
|
{
|
|
74
75
|
src: m[l],
|
|
75
|
-
alt:
|
|
76
|
+
alt: v[l] || v[0],
|
|
76
77
|
style: {
|
|
77
78
|
width: "100%",
|
|
78
79
|
height: "100%",
|
|
@@ -84,7 +85,7 @@ const F = s.forwardRef(
|
|
|
84
85
|
}
|
|
85
86
|
),
|
|
86
87
|
A && /* @__PURE__ */ t.jsx(
|
|
87
|
-
|
|
88
|
+
n,
|
|
88
89
|
{
|
|
89
90
|
sx: {
|
|
90
91
|
position: "absolute",
|
|
@@ -93,7 +94,7 @@ const F = s.forwardRef(
|
|
|
93
94
|
display: "flex",
|
|
94
95
|
gap: 1,
|
|
95
96
|
zIndex: 1,
|
|
96
|
-
pointerEvents:
|
|
97
|
+
pointerEvents: a ? "none" : "auto",
|
|
97
98
|
// Disable bubble click when dragging
|
|
98
99
|
opacity: o > 10 ? 1 : 0,
|
|
99
100
|
// Fade out if left image is mostly hidden
|
|
@@ -101,33 +102,33 @@ const F = s.forwardRef(
|
|
|
101
102
|
},
|
|
102
103
|
onClick: (e) => e.stopPropagation(),
|
|
103
104
|
onMouseDown: (e) => e.stopPropagation(),
|
|
104
|
-
children: m.map((e,
|
|
105
|
-
|
|
105
|
+
children: m.map((e, r) => /* @__PURE__ */ t.jsx(
|
|
106
|
+
n,
|
|
106
107
|
{
|
|
107
|
-
onClick: (
|
|
108
|
-
|
|
108
|
+
onClick: (L) => {
|
|
109
|
+
L.stopPropagation(), M(r);
|
|
109
110
|
},
|
|
110
111
|
sx: {
|
|
111
112
|
width: 8,
|
|
112
113
|
height: 8,
|
|
113
114
|
borderRadius: "50%",
|
|
114
|
-
bgcolor: l ===
|
|
115
|
+
bgcolor: l === r ? "primary.main" : "whiteAlpha.medium",
|
|
115
116
|
cursor: "pointer",
|
|
116
117
|
boxShadow: 1,
|
|
117
118
|
backdropFilter: "blur(4px)",
|
|
118
119
|
transition: "all 0.2s",
|
|
119
120
|
"&:hover": {
|
|
120
121
|
transform: "scale(1.2)",
|
|
121
|
-
bgcolor: l ===
|
|
122
|
+
bgcolor: l === r ? "primary.main" : "whiteAlpha.dark"
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
125
|
},
|
|
125
|
-
|
|
126
|
+
r
|
|
126
127
|
))
|
|
127
128
|
}
|
|
128
129
|
),
|
|
129
130
|
/* @__PURE__ */ t.jsxs(
|
|
130
|
-
|
|
131
|
+
n,
|
|
131
132
|
{
|
|
132
133
|
sx: {
|
|
133
134
|
position: "absolute",
|
|
@@ -139,7 +140,7 @@ const F = s.forwardRef(
|
|
|
139
140
|
},
|
|
140
141
|
children: [
|
|
141
142
|
/* @__PURE__ */ t.jsx(
|
|
142
|
-
|
|
143
|
+
n,
|
|
143
144
|
{
|
|
144
145
|
sx: {
|
|
145
146
|
position: "absolute",
|
|
@@ -151,7 +152,7 @@ const F = s.forwardRef(
|
|
|
151
152
|
}
|
|
152
153
|
),
|
|
153
154
|
/* @__PURE__ */ t.jsx(
|
|
154
|
-
|
|
155
|
+
q,
|
|
155
156
|
{
|
|
156
157
|
sx: {
|
|
157
158
|
position: "absolute",
|
|
@@ -159,7 +160,7 @@ const F = s.forwardRef(
|
|
|
159
160
|
left: "50%",
|
|
160
161
|
transform: "translate(-50%, -50%)",
|
|
161
162
|
cursor: "ew-resize",
|
|
162
|
-
...
|
|
163
|
+
...j ? {
|
|
163
164
|
width: 48,
|
|
164
165
|
height: 48,
|
|
165
166
|
backdropFilter: "blur(10px)"
|
|
@@ -178,7 +179,7 @@ const F = s.forwardRef(
|
|
|
178
179
|
onClick: (e) => {
|
|
179
180
|
e.preventDefault(), e.stopPropagation();
|
|
180
181
|
},
|
|
181
|
-
children:
|
|
182
|
+
children: j && /* @__PURE__ */ t.jsxs(n, { sx: { display: "flex", alignItems: "center" }, children: [
|
|
182
183
|
/* @__PURE__ */ t.jsx(k, {}),
|
|
183
184
|
/* @__PURE__ */ t.jsx(z, {})
|
|
184
185
|
] })
|
|
@@ -192,7 +193,11 @@ const F = s.forwardRef(
|
|
|
192
193
|
);
|
|
193
194
|
}
|
|
194
195
|
);
|
|
195
|
-
|
|
196
|
+
g.displayName = "SImageComparison";
|
|
197
|
+
try {
|
|
198
|
+
g.displayName = "SImageComparison", g.__docgenInfo = { description: "", displayName: "SImageComparison", props: { leftImage: { defaultValue: null, description: "", name: "leftImage", required: !0, type: { name: "string | string[]" } }, rightImage: { defaultValue: null, description: "", name: "rightImage", required: !0, type: { name: "string" } }, altLeft: { defaultValue: { value: "Left image" }, description: "", name: "altLeft", required: !1, type: { name: "string | string[]" } }, altRight: { defaultValue: { value: "Right image" }, description: "", name: "altRight", required: !1, type: { name: "string" } }, initialPosition: { defaultValue: { value: "50" }, description: "", name: "initialPosition", required: !1, type: { name: "number" } } } };
|
|
199
|
+
} catch {
|
|
200
|
+
}
|
|
196
201
|
export {
|
|
197
|
-
|
|
202
|
+
g as default
|
|
198
203
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { ModalProps } from '@mui/material';
|
|
2
3
|
/**
|
|
3
4
|
* Interface for individual media items (images/videos) in the modal
|
|
4
5
|
*/
|
|
@@ -41,7 +42,7 @@ export interface SImageModalProps {
|
|
|
41
42
|
/** Whether to show the item counter */
|
|
42
43
|
showCounter?: boolean;
|
|
43
44
|
/** Custom modal styling */
|
|
44
|
-
modalSx?:
|
|
45
|
+
modalSx?: ModalProps['sx'];
|
|
45
46
|
}
|
|
46
47
|
/**
|
|
47
48
|
* Default MediaItem renderer for images and videos
|
|
@@ -53,23 +54,6 @@ export declare const DefaultMediaItem: React.FC<{
|
|
|
53
54
|
objectFit?: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
|
54
55
|
disableVideoControls?: boolean;
|
|
55
56
|
}>;
|
|
56
|
-
/**
|
|
57
|
-
|
|
58
|
-
*
|
|
59
|
-
* Key features:
|
|
60
|
-
* - Full-screen modal with backdrop blur
|
|
61
|
-
* - Keyboard navigation (arrow keys, escape)
|
|
62
|
-
* - Previous/next navigation buttons (when mediaItems provided)
|
|
63
|
-
* - Draggable thumbnail dock with stacked layout (optional)
|
|
64
|
-
* - Animated transitions with Framer Motion
|
|
65
|
-
* - Item counter display (optional)
|
|
66
|
-
* - Responsive design for all screen sizes
|
|
67
|
-
* - Caption overlays with gradient backgrounds
|
|
68
|
-
* - Custom media item rendering support
|
|
69
|
-
* - Advanced z-index management for proper layering
|
|
70
|
-
*
|
|
71
|
-
* @param props - SImageModalProps with modal state and navigation handlers
|
|
72
|
-
* @returns JSX.Element - Full-screen image modal
|
|
73
|
-
*/
|
|
74
|
-
declare const SImageModal: React.FC<SImageModalProps>;
|
|
57
|
+
/** A reusable full-screen modal for displaying media items with navigation features. */
|
|
58
|
+
export declare const SImageModal: React.FC<SImageModalProps>;
|
|
75
59
|
export default SImageModal;
|