@solostylist/ui-kit 1.0.174 → 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.
Files changed (206) hide show
  1. package/dist/{ArrowUpward-DhTFpzoh.js → ArrowUpward-CEeqSc-C.js} +2 -2
  2. package/dist/{Box-Ha0cQ4KO.js → Box-CE3rycd-.js} +5 -5
  3. package/dist/ButtonBase-C_YYB9Ry.js +1099 -0
  4. package/dist/{ChevronLeft-CBuFk2Fh.js → ChevronLeft-6gdh4lRt.js} +2 -2
  5. package/dist/{ChevronRight-CnDWPrOm.js → ChevronRight-CC3l-wPC.js} +2 -2
  6. package/dist/{Close-BRlEKA2Q.js → Close-DOHlPcFK.js} +2 -2
  7. package/dist/{ContentCopy-7nFBtjhs.js → ContentCopy-2xxDThyB.js} +2 -2
  8. package/dist/DefaultPropsProvider-sk0uWcA6.js +64 -0
  9. package/dist/{Download-UsLvGg3y.js → Download-Chao5NQl.js} +2 -2
  10. package/dist/{ExpandMore-DTWX_mHf.js → ExpandMore-DIGPB4Mj.js} +2 -2
  11. package/dist/{Favorite-DS5Gpq2s.js → Favorite-wp65zwWq.js} +2 -2
  12. package/dist/{Menu-CWq-a1Wz.js → Menu-DZYzE2Mg.js} +908 -906
  13. package/dist/{MenuItem-DY_qFSPR.js → MenuItem-BXiIhfBS.js} +26 -25
  14. package/dist/Paper-DnctZB5U.js +689 -0
  15. package/dist/{Select-DabtQlJT.js → Select-DY7XGVsv.js} +2152 -2115
  16. package/dist/{Stack-Cq2r2NmC.js → Stack-BScsuyQy.js} +6 -6
  17. package/dist/{Typography-C8jwvSWe.js → Typography-9Kg27dDw.js} +84 -86
  18. package/dist/{_commonjsHelpers-B4e78b8K.js → _commonjsHelpers-ByX85dGu.js} +18 -13
  19. package/dist/assets/s-overlay-scrollbar.css +1 -9
  20. package/dist/createSvgIcon-BKymXuBG.js +242 -0
  21. package/dist/{createTheme-3Wd3hHrj.js → createTheme-f5g1s6ww.js} +859 -906
  22. package/dist/defaultTheme-LSr-S9un.js +5 -0
  23. package/dist/entries/carousel.d.ts +10 -0
  24. package/dist/entries/carousel.js +4 -0
  25. package/dist/entries/chat.d.ts +9 -0
  26. package/dist/entries/chat.js +4 -0
  27. package/dist/entries/code.d.ts +9 -0
  28. package/dist/entries/code.js +4 -0
  29. package/dist/entries/core.d.ts +100 -0
  30. package/dist/entries/core.js +122 -0
  31. package/dist/entries/dates.d.ts +16 -0
  32. package/dist/entries/dates.js +12 -0
  33. package/dist/entries/dropzone.d.ts +9 -0
  34. package/dist/entries/dropzone.js +4 -0
  35. package/dist/entries/editor.d.ts +12 -0
  36. package/dist/entries/editor.js +4 -0
  37. package/dist/entries/gallery.d.ts +17 -0
  38. package/dist/entries/gallery.js +13 -0
  39. package/dist/entries/i18n.d.ts +13 -0
  40. package/dist/entries/i18n.js +8 -0
  41. package/dist/entries/motion.d.ts +29 -0
  42. package/dist/entries/motion.js +28 -0
  43. package/dist/entries/scrollbar.d.ts +9 -0
  44. package/dist/entries/scrollbar.js +4 -0
  45. package/dist/entries/stripe.d.ts +10 -0
  46. package/dist/entries/stripe.js +10 -0
  47. package/dist/extendSxProp-DitxZ8We.js +36 -0
  48. package/dist/hooks/index.js +8 -9
  49. package/dist/hooks/use-is-passed-position.js +10 -10
  50. package/dist/{index-BGvzecIA.js → index-D3G5Rwl-.js} +0 -7
  51. package/dist/{index-CfKHZ86U.js → index-DtYP8YE7.js} +12 -13
  52. package/dist/{jsx-runtime-OVHDjVDe.js → jsx-runtime-tc70JA_2.js} +108 -128
  53. package/dist/main.d.ts +29 -145
  54. package/dist/main.js +187 -187
  55. package/dist/mergeSlotProps-CuzBQdlp.js +62 -0
  56. package/dist/resolveProps-BDH0VJjn.js +39 -0
  57. package/dist/s-accordion/package.json +5 -5
  58. package/dist/s-accordion/s-accordion.js +374 -358
  59. package/dist/s-action-overlay/package.json +5 -5
  60. package/dist/s-action-overlay/s-action-overlay.js +64 -79
  61. package/dist/s-ai-tool-bar/package.json +5 -5
  62. package/dist/s-ai-tool-bar/s-ai-tool-bar.js +260 -275
  63. package/dist/s-autocomplete/s-autocomplete.js +19 -25
  64. package/dist/s-avatar/package.json +5 -5
  65. package/dist/s-avatar/s-avatar.js +14 -25
  66. package/dist/s-blur-text/package.json +5 -5
  67. package/dist/s-blur-text/s-blur-text.js +55 -59
  68. package/dist/s-breadcrumbs/package.json +5 -5
  69. package/dist/s-breadcrumbs/s-breadcrumbs.js +31 -39
  70. package/dist/s-button/package.json +5 -5
  71. package/dist/s-button/s-button.js +7 -15
  72. package/dist/s-button-link/s-button-link.js +28 -36
  73. package/dist/s-carousel/package.json +4 -4
  74. package/dist/s-carousel/s-carousel.js +267 -280
  75. package/dist/s-category-card/package.json +4 -4
  76. package/dist/s-category-card/s-category-card.js +60 -77
  77. package/dist/s-chat-input/package.json +5 -5
  78. package/dist/s-chat-input/s-chat-input.d.ts +4 -0
  79. package/dist/s-chat-input/s-chat-input.js +103 -109
  80. package/dist/s-chat-message/s-chat-message.js +111 -120
  81. package/dist/s-checkbox/s-checkbox.js +12 -20
  82. package/dist/s-chip/package.json +5 -5
  83. package/dist/s-chip/s-chip.js +7 -15
  84. package/dist/s-chips/s-chips.js +47 -56
  85. package/dist/s-code-block/package.json +5 -5
  86. package/dist/s-code-block/s-code-block.js +35 -43
  87. package/dist/s-comment-message/package.json +5 -5
  88. package/dist/s-comment-message/s-comment-message.js +90 -94
  89. package/dist/s-copyable-text/s-copyable-text.js +24 -32
  90. package/dist/s-countdown/s-count-box.js +42 -50
  91. package/dist/s-countdown/s-count-down.js +79 -107
  92. package/dist/s-data-table/s-data-table.js +374 -384
  93. package/dist/s-date-picker/s-date-picker.js +164 -164
  94. package/dist/s-datetime-picker/s-datetime-picker.js +1599 -1603
  95. package/dist/s-dialog/s-dialog.js +24 -32
  96. package/dist/s-dialog-confirm/s-dialog-confirm.js +46 -50
  97. package/dist/s-dialog-message/s-dialog-message.js +40 -44
  98. package/dist/s-empty/s-empty.js +6 -14
  99. package/dist/s-error/s-error.js +9 -17
  100. package/dist/s-error-layout/s-error-layout.js +38 -47
  101. package/dist/s-file-dropzone/s-file-dropzone.js +55 -64
  102. package/dist/s-file-icon/s-file-icon.js +9 -13
  103. package/dist/s-flex-box/s-flex-box.js +6 -14
  104. package/dist/s-form/s-form.js +11 -19
  105. package/dist/s-gallery/index.js +3 -33
  106. package/dist/s-gallery/s-gallery.js +91 -114
  107. package/dist/s-glow-button/s-glow-button.js +22 -26
  108. package/dist/s-gradient-icon/s-gradient-icon.js +49 -59
  109. package/dist/s-i18n-provider/s-i18n-provider.js +17 -25
  110. package/dist/s-icon-button/s-icon-button.js +6 -14
  111. package/dist/s-image-comparison/package.json +5 -5
  112. package/dist/s-image-comparison/s-image-comparison.js +48 -53
  113. package/dist/s-image-modal/package.json +5 -5
  114. package/dist/s-image-modal/s-image-modal.js +137 -150
  115. package/dist/s-item-not-found/s-item-not-found.js +13 -22
  116. package/dist/s-label/s-label.js +12 -20
  117. package/dist/s-language-switcher/s-language-switcher.js +119 -141
  118. package/dist/s-lazy-image/index.js +2 -10
  119. package/dist/s-lazy-image/s-lazy-image.js +33 -37
  120. package/dist/s-localization-provider/s-localization-provider.js +368 -380
  121. package/dist/s-moving-border/s-moving-border.js +52 -67
  122. package/dist/s-multi-select/s-multi-select.js +43 -51
  123. package/dist/s-no-ssr/s-no-ssr.js +13 -21
  124. package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +12 -16
  125. package/dist/s-pagination/s-pagination.js +13 -17
  126. package/dist/s-pixel-reveal/package.json +5 -5
  127. package/dist/s-pixel-reveal/s-pixel-reveal.js +92 -99
  128. package/dist/s-radial-pulse-animate/package.json +5 -5
  129. package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +40 -48
  130. package/dist/s-rating/package.json +5 -5
  131. package/dist/s-rating/s-rating.js +7 -15
  132. package/dist/s-review/package.json +5 -5
  133. package/dist/s-review/s-review.js +101 -106
  134. package/dist/s-scroll-reveal/package.json +5 -5
  135. package/dist/s-scroll-reveal/s-scroll-reveal.js +40 -48
  136. package/dist/s-scroll-to-top/package.json +5 -5
  137. package/dist/s-scroll-to-top/s-scroll-to-top.js +20 -30
  138. package/dist/s-scroll-velocity/package.json +5 -5
  139. package/dist/s-scroll-velocity/s-scroll-velocity.js +5 -19
  140. package/dist/s-scroll-velocity/scroll-velocity-container.js +18 -27
  141. package/dist/s-scroll-velocity/scroll-velocity-row.js +62 -71
  142. package/dist/s-select/s-select.js +67 -75
  143. package/dist/s-select-list/s-select-list.js +28 -32
  144. package/dist/s-skeleton/s-skeleton.js +20 -28
  145. package/dist/s-snackbar-message/s-snackbar-message.js +36 -40
  146. package/dist/s-spotlight-cursor/s-spotlight-cursor.js +31 -35
  147. package/dist/s-stripe/s-stripe-cvc.js +8 -12
  148. package/dist/s-stripe/s-stripe-expiry.js +8 -12
  149. package/dist/s-stripe/s-stripe-number.js +8 -12
  150. package/dist/s-stripe/s-stripe.d.ts +2 -2
  151. package/dist/s-stripe/s-stripe.js +17 -26
  152. package/dist/s-stripe/stripe-input.js +25 -29
  153. package/dist/s-tabs/package.json +3 -3
  154. package/dist/s-tabs/s-tab-panel.js +17 -25
  155. package/dist/s-tabs/s-tab.js +5 -9
  156. package/dist/s-tabs/s-tabs.js +19 -27
  157. package/dist/s-text-editor/s-text-editor-toolbar.js +73 -88
  158. package/dist/s-text-editor/s-text-editor.js +33 -45
  159. package/dist/s-text-field/s-text-field.js +31 -40
  160. package/dist/s-text-shimmer/package.json +4 -4
  161. package/dist/s-text-shimmer/s-text-shimmer.js +19 -27
  162. package/dist/s-text-truncation/s-text-truncation.js +24 -32
  163. package/dist/s-theme-demo/package.json +5 -5
  164. package/dist/s-theme-demo/s-theme-demo.js +219 -234
  165. package/dist/s-theme-provider/s-theme-provider.js +37 -45
  166. package/dist/s-theme-switch/package.json +4 -4
  167. package/dist/s-theme-switch/s-theme-switch.js +19 -23
  168. package/dist/s-tip/s-tip.js +14 -22
  169. package/dist/s-two-pane-layout/index.js +2 -10
  170. package/dist/s-two-pane-layout/s-two-pane-layout.js +47 -55
  171. package/dist/s-typewriter-text/package.json +5 -5
  172. package/dist/s-typewriter-text/s-typewriter-text.js +27 -35
  173. package/dist/s-zoom-image/index.js +2 -10
  174. package/dist/s-zoom-image/package.json +5 -5
  175. package/dist/s-zoom-image/s-zoom-image.js +53 -62
  176. package/dist/styled-B0KflPi-.js +203 -0
  177. package/dist/theme/components/alert.d.ts +484 -264
  178. package/dist/theme/components/avatar.js +2 -2
  179. package/dist/theme/components/button.d.ts +726 -396
  180. package/dist/theme/components/chip.js +2 -2
  181. package/dist/theme/components/components.js +14 -12
  182. package/dist/theme/components/icon-button.d.ts +6191 -0
  183. package/dist/theme/components/icon-button.js +90 -0
  184. package/dist/theme/customizations/data-display.js +1 -1
  185. package/dist/theme/customizations/inputs.js +2 -2
  186. package/dist/theme/customizations/navigation.js +2 -2
  187. package/dist/theme/theme-primitives.d.ts +8 -246
  188. package/dist/theme/theme-primitives.js +76 -87
  189. package/dist/{typographyClasses-DDyl9mok.js → typographyClasses-C7fhAsUD.js} +4 -4
  190. package/dist/{useMobilePicker-C1RZZUWr.js → useMobilePicker-C4AYe0Ch.js} +11249 -11231
  191. package/dist/{useTheme-B5czKfC4.js → useTheme-CtdhfT4P.js} +1 -1
  192. package/dist/{useThemeProps-DqA5BinV.js → useThemeProps-_apS-Aua.js} +2 -2
  193. package/dist/utils/dayjs.js +7 -7
  194. package/dist/utils/logger.js +29 -32
  195. package/dist/{warning-BCwEnWrE.js → warning-DnPRVtW6.js} +4 -4
  196. package/package.json +240 -81
  197. package/README.md +0 -13
  198. package/dist/ButtonBase-DfTfJ_ou.js +0 -1105
  199. package/dist/DefaultPropsProvider-CaCsvQaq.js +0 -78
  200. package/dist/Paper-hkbPWyBT.js +0 -553
  201. package/dist/createSvgIcon-DxwgGAVe.js +0 -247
  202. package/dist/defaultTheme-fEi1x1Gb.js +0 -5
  203. package/dist/extendSxProp-BKWjdW12.js +0 -37
  204. package/dist/mergeSlotProps-Dl_rJtoN.js +0 -62
  205. package/dist/resolveProps-61uUKnlS.js +0 -52
  206. package/dist/styled-B0Z4EDy9.js +0 -206
@@ -1,10 +1,10 @@
1
- import { j as o } from "../jsx-runtime-OVHDjVDe.js";
2
- import * as i from "react";
3
- import { use as l } from "i18next";
4
- import c from "i18next-http-backend";
5
- import { initReactI18next as d, useTranslation as s } from "react-i18next";
6
- import { logger as r } from "../utils/logger.js";
7
- l(c).use(d).init({
1
+ import { j as i } from "../jsx-runtime-tc70JA_2.js";
2
+ import * as o from "react";
3
+ import { use as n } from "i18next";
4
+ import s from "i18next-http-backend";
5
+ import { initReactI18next as m, useTranslation as c } from "react-i18next";
6
+ import { logger as a } from "../utils/logger.js";
7
+ n(s).use(m).init({
8
8
  lng: "en",
9
9
  // Default language
10
10
  fallbackLng: "en",
@@ -12,26 +12,18 @@ l(c).use(d).init({
12
12
  interpolation: { escapeValue: !1 }
13
13
  // React already escapes values
14
14
  }).catch((e) => {
15
- r.error("Failed to initialize i18n", e);
15
+ a.error("Failed to initialize i18n", e);
16
16
  });
17
- const n = ({ children: e, language: a = "en" }) => {
18
- const { i18n: t } = s();
19
- return i.useEffect(() => {
20
- t.changeLanguage(a).catch(() => {
21
- r.error(`Failed to change language to ${a}`);
17
+ const l = ({ children: e, language: r = "en" }) => {
18
+ const { i18n: t } = c();
19
+ return o.useEffect(() => {
20
+ t.changeLanguage(r).catch(() => {
21
+ a.error(`Failed to change language to ${r}`);
22
22
  });
23
- }, [t, a]), /* @__PURE__ */ o.jsx(i.Fragment, { children: e });
23
+ }, [t, r]), /* @__PURE__ */ i.jsx(o.Fragment, { children: e });
24
24
  };
25
- n.displayName = "SI18nProvider";
26
- try {
27
- n.displayName = "SI18nProvider", n.__docgenInfo = { description: "Internationalization provider component with dynamic language switching support.", displayName: "SI18nProvider", props: { children: { defaultValue: null, description: "Child components that will have access to internationalization", name: "children", required: !0, type: { name: "ReactNode" } }, language: { defaultValue: { value: "en" }, description: "Language code to set as active (default: 'en')", name: "language", required: !1, type: { name: "string" } } } };
28
- } catch {
29
- }
30
- try {
31
- si18nprovider.displayName = "si18nprovider", si18nprovider.__docgenInfo = { description: "Internationalization provider component with dynamic language switching support.", displayName: "si18nprovider", props: { children: { defaultValue: null, description: "Child components that will have access to internationalization", name: "children", required: !0, type: { name: "ReactNode" } }, language: { defaultValue: { value: "en" }, description: "Language code to set as active (default: 'en')", name: "language", required: !1, type: { name: "string" } } } };
32
- } catch {
33
- }
25
+ l.displayName = "SI18nProvider";
34
26
  export {
35
- n as SI18nProvider,
36
- n as default
27
+ l as SI18nProvider,
28
+ l as default
37
29
  };
@@ -1,16 +1,8 @@
1
- import { j as o } from "../jsx-runtime-OVHDjVDe.js";
2
- import { Tooltip as l, IconButton as e } from "@mui/material";
3
- const n = ({ tooltipOptions: t, ...i }) => t ? /* @__PURE__ */ o.jsx(l, { ...t, children: /* @__PURE__ */ o.jsx(e, { ...i }) }) : /* @__PURE__ */ o.jsx(e, { ...i });
4
- n.displayName = "SIconButton";
5
- try {
6
- n.displayName = "SIconButton", n.__docgenInfo = { description: "An enhanced icon button component with optional tooltip integration.", displayName: "SIconButton", props: { tooltipOptions: { defaultValue: null, description: "Optional tooltip configuration (excludes 'children' which is handled internally)", name: "tooltipOptions", required: !1, type: { name: 'Omit<TooltipProps, "children">' } } } };
7
- } catch {
8
- }
9
- try {
10
- siconbutton.displayName = "siconbutton", siconbutton.__docgenInfo = { description: "An enhanced icon button component with optional tooltip integration.", displayName: "siconbutton", props: { tooltipOptions: { defaultValue: null, description: "Optional tooltip configuration (excludes 'children' which is handled internally)", name: "tooltipOptions", required: !1, type: { name: 'Omit<TooltipProps, "children">' } } } };
11
- } catch {
12
- }
1
+ import { j as t } from "../jsx-runtime-tc70JA_2.js";
2
+ import { Tooltip as s, IconButton as r } from "@mui/material";
3
+ const e = ({ tooltipOptions: o, ...n }) => o ? /* @__PURE__ */ t.jsx(s, { ...o, children: /* @__PURE__ */ t.jsx(r, { ...n }) }) : /* @__PURE__ */ t.jsx(r, { ...n });
4
+ e.displayName = "SIconButton";
13
5
  export {
14
- n as SIconButton,
15
- n as default
6
+ e as SIconButton,
7
+ e as default
16
8
  };
@@ -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,33 +1,32 @@
1
- import { j as t } from "../jsx-runtime-OVHDjVDe.js";
2
- import * as i from "react";
3
- import { C as k } from "../ChevronLeft-CBuFk2Fh.js";
4
- import { C as z } from "../ChevronRight-CnDWPrOm.js";
5
- import { Box as n, IconButton as q } from "@mui/material";
6
- import "../s-lazy-image/index.js";
1
+ import { j as t } from "../jsx-runtime-tc70JA_2.js";
2
+ import * as s from "react";
3
+ import { C as k } from "../ChevronLeft-6gdh4lRt.js";
4
+ import { C as z } from "../ChevronRight-CC3l-wPC.js";
5
+ import { Box as r, IconButton as D } from "@mui/material";
7
6
  import E from "../s-lazy-image/s-lazy-image.js";
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);
7
+ const F = s.forwardRef(
8
+ ({ sx: I, leftImage: u, rightImage: L, altLeft: d = "Left image", altRight: S = "Right image", initialPosition: C = 50, ...M }, a) => {
9
+ const m = Array.isArray(u) ? u : [u], g = Array.isArray(d) ? d : [d], [l, P] = s.useState(0), [o, R] = s.useState(C), [i, f] = s.useState(!1), h = s.useRef(null), A = m.length > 1, x = (e) => {
10
+ if (!h.current) return;
11
+ const n = h.current.getBoundingClientRect();
12
+ let p = (e - n.left) / n.width * 100;
13
+ p = Math.max(0, Math.min(100, p)), R(p);
14
+ }, v = (e) => {
15
+ i && x(e.clientX);
15
16
  }, b = (e) => {
16
- a && y(e.clientX);
17
- }, w = (e) => {
18
- a && y(e.touches[0].clientX);
19
- }, I = () => {
20
- x(!0);
17
+ i && x(e.touches[0].clientX);
18
+ }, y = () => {
19
+ f(!0);
21
20
  }, c = () => {
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,
21
+ f(!1);
22
+ }, w = o === 0 || o === 100;
23
+ return s.useEffect(() => (i ? (document.addEventListener("mousemove", v), document.addEventListener("touchmove", b), document.addEventListener("mouseup", c), document.addEventListener("touchend", c), document.body.style.cursor = "ew-resize") : document.body.style.cursor = "", () => {
24
+ document.removeEventListener("mousemove", v), document.removeEventListener("touchmove", b), document.removeEventListener("mouseup", c), document.removeEventListener("touchend", c), document.body.style.cursor = "";
25
+ }), [i]), /* @__PURE__ */ t.jsxs(
26
+ r,
28
27
  {
29
28
  ref: (e) => {
30
- p.current = e, typeof s == "function" ? s(e) : s && (s.current = e);
29
+ h.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
31
30
  },
32
31
  sx: {
33
32
  position: "relative",
@@ -35,17 +34,17 @@ const g = i.forwardRef(
35
34
  height: "100%",
36
35
  overflow: "hidden",
37
36
  userSelect: "none",
38
- ...f
37
+ ...I
39
38
  },
40
- onMouseDown: I,
41
- onTouchStart: I,
42
- ...P,
39
+ onMouseDown: y,
40
+ onTouchStart: y,
41
+ ...M,
43
42
  children: [
44
43
  /* @__PURE__ */ t.jsx(
45
44
  E,
46
45
  {
47
- src: S,
48
- alt: C,
46
+ src: L,
47
+ alt: S,
49
48
  style: {
50
49
  position: "absolute",
51
50
  inset: 0,
@@ -58,7 +57,7 @@ const g = i.forwardRef(
58
57
  }
59
58
  ),
60
59
  /* @__PURE__ */ t.jsx(
61
- n,
60
+ r,
62
61
  {
63
62
  sx: {
64
63
  position: "absolute",
@@ -73,7 +72,7 @@ const g = i.forwardRef(
73
72
  E,
74
73
  {
75
74
  src: m[l],
76
- alt: v[l] || v[0],
75
+ alt: g[l] || g[0],
77
76
  style: {
78
77
  width: "100%",
79
78
  height: "100%",
@@ -85,7 +84,7 @@ const g = i.forwardRef(
85
84
  }
86
85
  ),
87
86
  A && /* @__PURE__ */ t.jsx(
88
- n,
87
+ r,
89
88
  {
90
89
  sx: {
91
90
  position: "absolute",
@@ -94,7 +93,7 @@ const g = i.forwardRef(
94
93
  display: "flex",
95
94
  gap: 1,
96
95
  zIndex: 1,
97
- pointerEvents: a ? "none" : "auto",
96
+ pointerEvents: i ? "none" : "auto",
98
97
  // Disable bubble click when dragging
99
98
  opacity: o > 10 ? 1 : 0,
100
99
  // Fade out if left image is mostly hidden
@@ -102,33 +101,33 @@ const g = i.forwardRef(
102
101
  },
103
102
  onClick: (e) => e.stopPropagation(),
104
103
  onMouseDown: (e) => e.stopPropagation(),
105
- children: m.map((e, r) => /* @__PURE__ */ t.jsx(
106
- n,
104
+ children: m.map((e, n) => /* @__PURE__ */ t.jsx(
105
+ r,
107
106
  {
108
- onClick: (L) => {
109
- L.stopPropagation(), M(r);
107
+ onClick: (j) => {
108
+ j.stopPropagation(), P(n);
110
109
  },
111
110
  sx: {
112
111
  width: 8,
113
112
  height: 8,
114
113
  borderRadius: "50%",
115
- bgcolor: l === r ? "primary.main" : "whiteAlpha.medium",
114
+ bgcolor: l === n ? "primary.main" : "whiteAlpha.medium",
116
115
  cursor: "pointer",
117
116
  boxShadow: 1,
118
117
  backdropFilter: "blur(4px)",
119
118
  transition: "all 0.2s",
120
119
  "&:hover": {
121
120
  transform: "scale(1.2)",
122
- bgcolor: l === r ? "primary.main" : "whiteAlpha.dark"
121
+ bgcolor: l === n ? "primary.main" : "whiteAlpha.dark"
123
122
  }
124
123
  }
125
124
  },
126
- r
125
+ n
127
126
  ))
128
127
  }
129
128
  ),
130
129
  /* @__PURE__ */ t.jsxs(
131
- n,
130
+ r,
132
131
  {
133
132
  sx: {
134
133
  position: "absolute",
@@ -140,7 +139,7 @@ const g = i.forwardRef(
140
139
  },
141
140
  children: [
142
141
  /* @__PURE__ */ t.jsx(
143
- n,
142
+ r,
144
143
  {
145
144
  sx: {
146
145
  position: "absolute",
@@ -152,7 +151,7 @@ const g = i.forwardRef(
152
151
  }
153
152
  ),
154
153
  /* @__PURE__ */ t.jsx(
155
- q,
154
+ D,
156
155
  {
157
156
  sx: {
158
157
  position: "absolute",
@@ -160,7 +159,7 @@ const g = i.forwardRef(
160
159
  left: "50%",
161
160
  transform: "translate(-50%, -50%)",
162
161
  cursor: "ew-resize",
163
- ...j ? {
162
+ ...w ? {
164
163
  width: 48,
165
164
  height: 48,
166
165
  backdropFilter: "blur(10px)"
@@ -179,7 +178,7 @@ const g = i.forwardRef(
179
178
  onClick: (e) => {
180
179
  e.preventDefault(), e.stopPropagation();
181
180
  },
182
- children: j && /* @__PURE__ */ t.jsxs(n, { sx: { display: "flex", alignItems: "center" }, children: [
181
+ children: w && /* @__PURE__ */ t.jsxs(r, { sx: { display: "flex", alignItems: "center" }, children: [
183
182
  /* @__PURE__ */ t.jsx(k, {}),
184
183
  /* @__PURE__ */ t.jsx(z, {})
185
184
  ] })
@@ -193,11 +192,7 @@ const g = i.forwardRef(
193
192
  );
194
193
  }
195
194
  );
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
- }
195
+ F.displayName = "SImageComparison";
201
196
  export {
202
- g as default
197
+ F as default
203
198
  };
@@ -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
+ }