@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.
Files changed (239) hide show
  1. package/dist/{Typography-B7LOtCzI.js → Typography-C8jwvSWe.js} +1 -1
  2. package/dist/main.d.ts +3 -3
  3. package/dist/main.js +182 -174
  4. package/dist/s-accordion/index.js +2 -2
  5. package/dist/s-accordion/s-accordion.d.ts +17 -1
  6. package/dist/s-accordion/s-accordion.js +252 -238
  7. package/dist/s-action-overlay/index.js +1 -1
  8. package/dist/s-action-overlay/s-action-overlay.d.ts +34 -1
  9. package/dist/s-action-overlay/s-action-overlay.js +67 -55
  10. package/dist/s-ai-tool-bar/index.d.ts +2 -0
  11. package/dist/s-ai-tool-bar/index.js +3 -2
  12. package/dist/s-ai-tool-bar/s-ai-tool-bar.d.ts +33 -22
  13. package/dist/s-ai-tool-bar/s-ai-tool-bar.js +295 -247
  14. package/dist/s-autocomplete/index.js +2 -2
  15. package/dist/s-autocomplete/s-autocomplete.d.ts +13 -15
  16. package/dist/s-autocomplete/s-autocomplete.js +25 -17
  17. package/dist/s-avatar/index.js +2 -2
  18. package/dist/s-avatar/s-avatar.d.ts +16 -1
  19. package/dist/s-avatar/s-avatar.js +23 -10
  20. package/dist/s-blur-text/index.js +2 -2
  21. package/dist/s-blur-text/s-blur-text.d.ts +4 -13
  22. package/dist/s-blur-text/s-blur-text.js +57 -51
  23. package/dist/s-breadcrumbs/index.js +2 -2
  24. package/dist/s-breadcrumbs/s-breadcrumbs.d.ts +20 -1
  25. package/dist/s-breadcrumbs/s-breadcrumbs.js +39 -30
  26. package/dist/s-button/index.js +2 -2
  27. package/dist/s-button/s-button.d.ts +7 -1
  28. package/dist/s-button/s-button.js +15 -5
  29. package/dist/s-button-link/index.js +2 -2
  30. package/dist/s-button-link/s-button-link.d.ts +12 -26
  31. package/dist/s-button-link/s-button-link.js +36 -26
  32. package/dist/s-carousel/index.js +1 -1
  33. package/dist/s-carousel/s-carousel.d.ts +11 -1
  34. package/dist/s-carousel/s-carousel.js +233 -223
  35. package/dist/s-category-card/index.js +2 -2
  36. package/dist/s-category-card/s-category-card.d.ts +28 -1
  37. package/dist/s-category-card/s-category-card.js +77 -58
  38. package/dist/s-chat-input/index.js +2 -2
  39. package/dist/s-chat-input/s-chat-input.d.ts +12 -1
  40. package/dist/s-chat-input/s-chat-input.js +92 -82
  41. package/dist/s-chat-message/index.js +2 -2
  42. package/dist/s-chat-message/s-chat-message.d.ts +22 -1
  43. package/dist/s-chat-message/s-chat-message.js +144 -133
  44. package/dist/s-checkbox/index.js +2 -2
  45. package/dist/s-checkbox/s-checkbox.d.ts +2 -15
  46. package/dist/s-checkbox/s-checkbox.js +20 -10
  47. package/dist/s-chip/index.js +2 -2
  48. package/dist/s-chip/s-chip.d.ts +7 -1
  49. package/dist/s-chip/s-chip.js +15 -5
  50. package/dist/s-chips/index.js +2 -2
  51. package/dist/s-chips/s-chips.d.ts +5 -18
  52. package/dist/s-chips/s-chips.js +56 -41
  53. package/dist/s-comment-message/index.js +2 -2
  54. package/dist/s-comment-message/s-comment-message.d.ts +26 -1
  55. package/dist/s-comment-message/s-comment-message.js +95 -89
  56. package/dist/s-copyable-text/index.js +1 -1
  57. package/dist/s-copyable-text/s-copyable-text.d.ts +9 -36
  58. package/dist/s-copyable-text/s-copyable-text.js +31 -21
  59. package/dist/s-countdown/index.d.ts +3 -2
  60. package/dist/s-countdown/index.js +4 -3
  61. package/dist/s-countdown/s-count-box.d.ts +39 -0
  62. package/dist/s-countdown/s-count-box.js +112 -0
  63. package/dist/s-countdown/s-count-down.d.ts +6 -50
  64. package/dist/s-countdown/s-count-down.js +110 -175
  65. package/dist/s-data-table/index.js +2 -2
  66. package/dist/s-data-table/s-data-table.d.ts +9 -65
  67. package/dist/s-data-table/s-data-table.js +381 -371
  68. package/dist/s-date-picker/index.js +2 -2
  69. package/dist/s-date-picker/s-date-picker.d.ts +6 -17
  70. package/dist/s-date-picker/s-date-picker.js +124 -107
  71. package/dist/s-datetime-picker/index.js +2 -2
  72. package/dist/s-datetime-picker/s-datetime-picker.d.ts +5 -16
  73. package/dist/s-datetime-picker/s-datetime-picker.js +897 -887
  74. package/dist/s-dialog/index.js +2 -2
  75. package/dist/s-dialog/s-dialog.d.ts +3 -16
  76. package/dist/s-dialog/s-dialog.js +32 -23
  77. package/dist/s-dialog-confirm/index.js +3 -3
  78. package/dist/s-dialog-confirm/s-dialog-confirm.d.ts +5 -13
  79. package/dist/s-dialog-confirm/s-dialog-confirm.js +55 -48
  80. package/dist/s-dialog-message/index.js +4 -4
  81. package/dist/s-dialog-message/s-dialog-message.d.ts +5 -15
  82. package/dist/s-dialog-message/s-dialog-message.js +45 -38
  83. package/dist/s-empty/index.js +2 -2
  84. package/dist/s-empty/s-empty.d.ts +5 -20
  85. package/dist/s-empty/s-empty.js +14 -4
  86. package/dist/s-error/index.js +2 -2
  87. package/dist/s-error/s-error.d.ts +5 -20
  88. package/dist/s-error/s-error.js +16 -6
  89. package/dist/s-error-layout/index.js +2 -2
  90. package/dist/s-error-layout/s-error-layout.d.ts +6 -1
  91. package/dist/s-error-layout/s-error-layout.js +60 -51
  92. package/dist/s-file-dropzone/index.js +2 -2
  93. package/dist/s-file-dropzone/s-file-dropzone.d.ts +6 -51
  94. package/dist/s-file-dropzone/s-file-dropzone.js +64 -54
  95. package/dist/s-file-icon/index.js +2 -2
  96. package/dist/s-file-icon/s-file-icon.d.ts +5 -25
  97. package/dist/s-file-icon/s-file-icon.js +14 -8
  98. package/dist/s-flex-box/index.js +2 -2
  99. package/dist/s-flex-box/s-flex-box.d.ts +10 -1
  100. package/dist/s-flex-box/s-flex-box.js +14 -4
  101. package/dist/s-form/index.js +2 -2
  102. package/dist/s-form/s-form.d.ts +5 -14
  103. package/dist/s-form/s-form.js +19 -9
  104. package/dist/s-gallery/index.js +33 -3
  105. package/dist/s-gallery/s-gallery.d.ts +3 -36
  106. package/dist/s-gallery/s-gallery.js +108 -78
  107. package/dist/s-glow-button/s-glow-button.d.ts +6 -42
  108. package/dist/s-glow-button/s-glow-button.js +29 -47
  109. package/dist/s-gradient-icon/index.d.ts +1 -1
  110. package/dist/s-gradient-icon/index.js +1 -1
  111. package/dist/s-gradient-icon/s-gradient-icon.d.ts +8 -68
  112. package/dist/s-gradient-icon/s-gradient-icon.js +54 -44
  113. package/dist/s-i18n-provider/index.js +1 -1
  114. package/dist/s-i18n-provider/s-i18n-provider.d.ts +5 -33
  115. package/dist/s-i18n-provider/s-i18n-provider.js +25 -15
  116. package/dist/s-icon-button/index.js +2 -2
  117. package/dist/s-icon-button/s-icon-button.d.ts +6 -19
  118. package/dist/s-icon-button/s-icon-button.js +14 -4
  119. package/dist/s-image-comparison/s-image-comparison.js +50 -45
  120. package/dist/s-image-modal/index.js +3 -3
  121. package/dist/s-image-modal/s-image-modal.d.ts +4 -20
  122. package/dist/s-image-modal/s-image-modal.js +150 -135
  123. package/dist/s-item-not-found/index.js +2 -2
  124. package/dist/s-item-not-found/s-item-not-found.d.ts +14 -1
  125. package/dist/s-item-not-found/s-item-not-found.js +21 -10
  126. package/dist/s-label/index.js +2 -2
  127. package/dist/s-label/s-label.d.ts +9 -25
  128. package/dist/s-label/s-label.js +19 -9
  129. package/dist/s-language-switcher/index.js +3 -3
  130. package/dist/s-language-switcher/s-language-switcher.d.ts +20 -33
  131. package/dist/s-language-switcher/s-language-switcher.js +137 -115
  132. package/dist/s-lazy-image/index.js +10 -2
  133. package/dist/s-lazy-image/s-lazy-image.d.ts +12 -58
  134. package/dist/s-lazy-image/s-lazy-image.js +53 -58
  135. package/dist/s-localization-provider/index.js +2 -2
  136. package/dist/s-localization-provider/s-localization-provider.d.ts +6 -27
  137. package/dist/s-localization-provider/s-localization-provider.js +157 -149
  138. package/dist/s-moving-border/index.js +2 -2
  139. package/dist/s-moving-border/s-moving-border.d.ts +3 -33
  140. package/dist/s-moving-border/s-moving-border.js +65 -55
  141. package/dist/s-multi-select/index.js +2 -2
  142. package/dist/s-multi-select/s-multi-select.d.ts +5 -15
  143. package/dist/s-multi-select/s-multi-select.js +54 -45
  144. package/dist/s-no-ssr/index.js +2 -2
  145. package/dist/s-no-ssr/s-no-ssr.d.ts +5 -33
  146. package/dist/s-no-ssr/s-no-ssr.js +21 -11
  147. package/dist/s-overlay-scrollbar/index.js +2 -2
  148. package/dist/s-overlay-scrollbar/s-overlay-scrollbar.d.ts +10 -1
  149. package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +16 -11
  150. package/dist/s-pagination/index.js +2 -2
  151. package/dist/s-pagination/s-pagination.d.ts +5 -23
  152. package/dist/s-pagination/s-pagination.js +17 -11
  153. package/dist/s-pixel-reveal/index.js +2 -2
  154. package/dist/s-pixel-reveal/s-pixel-reveal.d.ts +15 -1
  155. package/dist/s-pixel-reveal/s-pixel-reveal.js +83 -78
  156. package/dist/s-radial-pulse-animate/index.js +2 -2
  157. package/dist/s-radial-pulse-animate/s-radial-pulse-animate.d.ts +12 -1
  158. package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +52 -42
  159. package/dist/s-rating/index.js +2 -2
  160. package/dist/s-rating/s-rating.d.ts +7 -1
  161. package/dist/s-rating/s-rating.js +15 -5
  162. package/dist/s-review/index.js +2 -2
  163. package/dist/s-review/s-review.d.ts +25 -1
  164. package/dist/s-review/s-review.js +104 -97
  165. package/dist/s-scroll-reveal/index.js +2 -2
  166. package/dist/s-scroll-reveal/s-scroll-reveal.d.ts +17 -36
  167. package/dist/s-scroll-reveal/s-scroll-reveal.js +43 -33
  168. package/dist/s-scroll-to-top/index.js +2 -2
  169. package/dist/s-scroll-to-top/s-scroll-to-top.d.ts +12 -17
  170. package/dist/s-scroll-to-top/s-scroll-to-top.js +20 -15
  171. package/dist/s-select/index.js +2 -2
  172. package/dist/s-select/s-select.d.ts +3 -22
  173. package/dist/s-select/s-select.js +76 -72
  174. package/dist/s-select-list/index.js +2 -2
  175. package/dist/s-select-list/s-select-list.d.ts +16 -19
  176. package/dist/s-select-list/s-select-list.js +33 -28
  177. package/dist/s-skeleton/index.js +2 -2
  178. package/dist/s-skeleton/s-skeleton.d.ts +6 -22
  179. package/dist/s-skeleton/s-skeleton.js +28 -18
  180. package/dist/s-snackbar-message/index.js +4 -4
  181. package/dist/s-snackbar-message/s-snackbar-message.d.ts +5 -23
  182. package/dist/s-snackbar-message/s-snackbar-message.js +38 -31
  183. package/dist/s-spotlight-cursor/index.js +2 -2
  184. package/dist/s-spotlight-cursor/s-spotlight-cursor.d.ts +10 -44
  185. package/dist/s-spotlight-cursor/s-spotlight-cursor.js +35 -29
  186. package/dist/s-stripe/index.d.ts +4 -1
  187. package/dist/s-stripe/index.js +7 -4
  188. package/dist/s-stripe/s-stripe-cvc.d.ts +8 -0
  189. package/dist/s-stripe/s-stripe-cvc.js +15 -0
  190. package/dist/s-stripe/s-stripe-expiry.d.ts +8 -0
  191. package/dist/s-stripe/s-stripe-expiry.js +15 -0
  192. package/dist/s-stripe/s-stripe-number.d.ts +8 -0
  193. package/dist/s-stripe/s-stripe-number.js +15 -0
  194. package/dist/s-stripe/s-stripe.d.ts +6 -85
  195. package/dist/s-stripe/s-stripe.js +24 -27
  196. package/dist/s-stripe/stripe-input.js +22 -18
  197. package/dist/s-tabs/index.js +6 -6
  198. package/dist/s-tabs/s-tab-panel.d.ts +11 -1
  199. package/dist/s-tabs/s-tab-panel.js +25 -16
  200. package/dist/s-tabs/s-tab.js +9 -5
  201. package/dist/s-tabs/s-tabs.d.ts +24 -3
  202. package/dist/s-tabs/s-tabs.js +34 -25
  203. package/dist/s-text-editor/index.js +3 -3
  204. package/dist/s-text-editor/s-text-editor-toolbar.js +91 -76
  205. package/dist/s-text-editor/s-text-editor.d.ts +13 -11
  206. package/dist/s-text-editor/s-text-editor.js +44 -30
  207. package/dist/s-text-field/index.js +2 -2
  208. package/dist/s-text-field/s-text-field.d.ts +6 -15
  209. package/dist/s-text-field/s-text-field.js +38 -28
  210. package/dist/s-text-shimmer/index.js +2 -2
  211. package/dist/s-text-shimmer/s-text-shimmer.d.ts +10 -1
  212. package/dist/s-text-shimmer/s-text-shimmer.js +27 -18
  213. package/dist/s-text-truncation/index.js +2 -2
  214. package/dist/s-text-truncation/s-text-truncation.d.ts +9 -38
  215. package/dist/s-text-truncation/s-text-truncation.js +34 -20
  216. package/dist/s-theme-demo/s-theme-demo.js +238 -223
  217. package/dist/s-theme-provider/index.js +1 -1
  218. package/dist/s-theme-provider/s-theme-provider.d.ts +5 -17
  219. package/dist/s-theme-provider/s-theme-provider.js +44 -34
  220. package/dist/s-theme-switch/s-theme-switch.js +23 -19
  221. package/dist/s-tip/index.js +2 -2
  222. package/dist/s-tip/s-tip.d.ts +5 -22
  223. package/dist/s-tip/s-tip.js +22 -12
  224. package/dist/s-two-pane-layout/index.js +10 -2
  225. package/dist/s-two-pane-layout/s-two-pane-layout.d.ts +7 -1
  226. package/dist/s-two-pane-layout/s-two-pane-layout.js +58 -48
  227. package/dist/s-typewriter-text/index.js +2 -2
  228. package/dist/s-typewriter-text/s-typewriter-text.d.ts +17 -1
  229. package/dist/s-typewriter-text/s-typewriter-text.js +37 -27
  230. package/dist/s-zoom-image/index.js +10 -2
  231. package/dist/s-zoom-image/s-zoom-image.d.ts +10 -42
  232. package/dist/s-zoom-image/s-zoom-image.js +62 -52
  233. package/dist/theme/components/alert.d.ts +1436 -1436
  234. package/dist/theme/components/button.d.ts +2150 -2150
  235. package/dist/theme/components/chip.d.ts +2 -2
  236. package/dist/theme/customizations/data-display.js +1 -1
  237. package/dist/{typographyClasses-C7fhAsUD.js → typographyClasses-DDyl9mok.js} +4 -4
  238. package/dist/{useMobilePicker-DgxcRrRB.js → useMobilePicker-C1RZZUWr.js} +1 -1
  239. package/package.json +10 -4
@@ -1,4 +1,12 @@
1
- import { default as o } from "./s-zoom-image.js";
1
+ import { SZoomImage as r } from "./s-zoom-image.js";
2
+ try {
3
+ szoomimage.displayName = "szoomimage", szoomimage.__docgenInfo = { description: "An interactive image component with smooth zoom-on-hover functionality and built-in lazy loading.", displayName: "szoomimage", props: { borderRadius: { defaultValue: { value: "1.5" }, description: "Border radius (number uses theme spacing, string accepts any CSS unit)", name: "borderRadius", required: !1, type: { name: "string | number" } }, width: { defaultValue: { value: "100%" }, description: "Image width for lazy loading skeleton", name: "width", required: !1, type: { name: "string | number" } }, height: { defaultValue: { value: "100%" }, description: "Image height for lazy loading skeleton", name: "height", required: !1, type: { name: "string | number" } }, transitionDuration: { defaultValue: { value: "0.3" }, description: "Duration of the spring animation in seconds", name: "transitionDuration", required: !1, type: { name: "number" } }, src: { defaultValue: null, description: "Image source URL", name: "src", required: !0, type: { name: "string" } }, alt: { defaultValue: null, description: "Alternative text for accessibility", name: "alt", required: !0, type: { name: "string" } }, zoomScale: { defaultValue: { value: "1.2" }, description: "Scale factor to apply on zoom", name: "zoomScale", required: !1, type: { name: "number" } }, imgStyle: { defaultValue: null, description: "Custom styles applied to the image element", name: "imgStyle", required: !1, type: { name: "CSSProperties" } }, imgClassName: { defaultValue: null, description: "Custom class name for the image element", name: "imgClassName", required: !1, type: { name: "string" } }, skeletonVariant: { defaultValue: { value: "rounded" }, description: "Skeleton variant while loading", name: "skeletonVariant", required: !1, type: { name: "enum", value: [{ value: '"text"' }, { value: '"rectangular"' }, { value: '"rounded"' }, { value: '"circular"' }] } } } };
4
+ } catch {
5
+ }
6
+ try {
7
+ SZoomImageProps.displayName = "SZoomImageProps", SZoomImageProps.__docgenInfo = { description: "Props interface for SZoomImage component", displayName: "SZoomImageProps", props: {} };
8
+ } catch {
9
+ }
2
10
  export {
3
- o as default
11
+ r as default
4
12
  };
@@ -1,25 +1,18 @@
1
1
  import { default as React } from 'react';
2
2
  import { BoxProps, SkeletonProps } from '@mui/material';
3
3
  /**
4
- * Props interface for SZoomImage component with advanced zoom capabilities
5
- *
6
- * Extends Material-UI Box props while providing configuration for zoom behavior,
7
- * animation settings, transform origin tracking based on mouse position, and lazy loading.
4
+ * Props interface for SZoomImage component
8
5
  */
9
6
  export interface SZoomImageProps extends Omit<BoxProps, 'component'> {
10
- /** Image source URL - the image to display and zoom */
7
+ /** Image source URL */
11
8
  src: string;
12
- /** Alternative text for the image, for accessibility and screen readers */
9
+ /** Alternative text for accessibility */
13
10
  alt: string;
14
- /** The scale factor to apply on zoom - controls how much the image enlarges on hover */
11
+ /** Scale factor to apply on zoom */
15
12
  zoomScale?: number;
16
- /** The duration of the spring animation in seconds - affects zoom speed */
13
+ /** Duration of the spring animation in seconds */
17
14
  transitionDuration?: number;
18
- /**
19
- * The border radius of the component
20
- * - number: multiplied by theme spacing (default 8px), e.g., 2 = 16px
21
- * - string: any valid CSS unit ('1rem', '8px', '50%', etc.)
22
- */
15
+ /** Border radius (number uses theme spacing, string accepts any CSS unit) */
23
16
  borderRadius?: number | string;
24
17
  /** Custom styles applied to the image element */
25
18
  imgStyle?: React.CSSProperties;
@@ -27,38 +20,13 @@ export interface SZoomImageProps extends Omit<BoxProps, 'component'> {
27
20
  imgClassName?: string;
28
21
  /** Skeleton variant while loading */
29
22
  skeletonVariant?: SkeletonProps['variant'];
30
- /** Image height - supports responsive units, useful for lazy loading skeleton */
23
+ /** Image height for lazy loading skeleton */
31
24
  height?: number | string;
32
- /** Image width - supports responsive units, useful for lazy loading skeleton */
25
+ /** Image width for lazy loading skeleton */
33
26
  width?: number | string;
34
27
  }
35
28
  /**
36
- * SZoomImage - An interactive image component with smooth zoom-on-hover functionality and built-in lazy loading.
37
- *
38
- * This component creates an engaging user experience by zooming the image on hover
39
- * with the zoom origin following the mouse cursor position. Built with framer-motion
40
- * for smooth, physics-based animations and proper Material-UI integration. Integrates
41
- * with SLazyImage for skeleton loading states to improve perceived performance.
42
- *
43
- * Key features:
44
- * - **Mouse-Tracked Zoom**: Zoom origin dynamically follows cursor position for natural interaction
45
- * - **Spring Physics**: Smooth, natural animations using configurable spring physics
46
- * - **Lazy Loading**: Built-in skeleton placeholder while image loads for better UX
47
- * - **Theme Integration**: Full Material-UI Box component integration with sx prop support
48
- * - **Responsive Design**: Works seamlessly across different viewport sizes
49
- * - **Performance Optimized**: Uses GPU-accelerated transforms and efficient motion values
50
- * - **Customizable Behavior**: Configurable zoom scale, animation duration, and border radius
51
- * - **Accessibility Ready**: Maintains proper alt text and image semantics
52
- *
53
- * Technical implementation:
54
- * - Uses framer-motion's useMotionValue for efficient mouse position tracking
55
- * - Applies useSpring for smooth, natural transitions with configurable physics
56
- * - Leverages useTransform to calculate dynamic transform-origin based on mouse position
57
- * - Implements proper overflow handling to contain zoomed image within container
58
- * - Integrates SLazyImage for optimized loading with skeleton placeholders
59
- *
60
- * @param props - SZoomImageProps configuration object
61
- * @returns JSX.Element - Interactive zoom image component with hover effects
29
+ * An interactive image component with smooth zoom-on-hover functionality and built-in lazy loading.
62
30
  */
63
- declare const SZoomImage: React.ForwardRefExoticComponent<Omit<SZoomImageProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
31
+ export declare const SZoomImage: React.ForwardRefExoticComponent<Omit<SZoomImageProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
64
32
  export default SZoomImage;
@@ -1,78 +1,79 @@
1
- import { j as n } from "../jsx-runtime-OVHDjVDe.js";
2
- import H, { useState as N } from "react";
3
- import { Box as r } from "@mui/material";
4
- import { useMotionValue as m, useSpring as c, useTransform as T, motion as Z } from "framer-motion";
5
- import _ from "../s-lazy-image/s-lazy-image.js";
6
- const $ = H.forwardRef(
1
+ import { j as r } from "../jsx-runtime-OVHDjVDe.js";
2
+ import L, { useState as j } from "react";
3
+ import { Box as u } from "@mui/material";
4
+ import { useMotionValue as m, useSpring as d, useTransform as D, motion as A } from "framer-motion";
5
+ import "../s-lazy-image/index.js";
6
+ import B from "../s-lazy-image/s-lazy-image.js";
7
+ const o = L.forwardRef(
7
8
  ({
8
- src: d,
9
- alt: u,
10
- zoomScale: l = 1.2,
11
- transitionDuration: f = 0.3,
12
- borderRadius: g = 1.5,
13
- imgStyle: h,
14
- imgClassName: p,
9
+ src: a,
10
+ alt: c,
11
+ zoomScale: p = 1.2,
12
+ transitionDuration: g = 0.3,
13
+ borderRadius: f = 1.5,
14
+ imgStyle: y,
15
+ imgClassName: h,
15
16
  skeletonVariant: v = "rounded",
16
- height: M = "100%",
17
- width: x = "100%",
18
- sx: j,
19
- ...y
20
- }, L) => {
21
- const [i, w] = N(!1), o = m(50), t = m(50), a = { damping: 20, stiffness: 150, mass: 0.5 }, R = c(o, a), S = c(t, a), b = T(
22
- [R, S],
23
- ([e, s]) => `${e}% ${s}%`
24
- ), I = (e) => {
25
- if (!i) return;
26
- const { left: s, top: Y, width: B, height: C } = e.currentTarget.getBoundingClientRect();
27
- o.set((e.clientX - s) / B * 100), t.set((e.clientY - Y) / C * 100);
28
- }, X = () => {
29
- o.set(50), t.set(50);
17
+ height: S = "100%",
18
+ width: V = "100%",
19
+ sx: b,
20
+ ...q
21
+ }, z) => {
22
+ const [l, _] = j(!1), t = m(50), n = m(50), s = { damping: 20, stiffness: 150, mass: 0.5 }, w = d(t, s), C = d(n, s), I = D(
23
+ [w, C],
24
+ ([e, i]) => `${e}% ${i}%`
25
+ ), x = (e) => {
26
+ if (!l) return;
27
+ const { left: i, top: R, width: N, height: M } = e.currentTarget.getBoundingClientRect();
28
+ t.set((e.clientX - i) / N * 100), n.set((e.clientY - R) / M * 100);
29
+ }, k = () => {
30
+ t.set(50), n.set(50);
30
31
  };
31
- return /* @__PURE__ */ n.jsx(
32
- r,
32
+ return /* @__PURE__ */ r.jsx(
33
+ u,
33
34
  {
34
- ref: L,
35
- onMouseMove: I,
36
- onMouseLeave: X,
35
+ ref: z,
36
+ onMouseMove: x,
37
+ onMouseLeave: k,
37
38
  sx: {
38
39
  position: "relative",
39
40
  width: "100%",
40
41
  height: "auto",
41
42
  overflow: "hidden",
42
- borderRadius: g,
43
- ...j
43
+ borderRadius: f,
44
+ ...b
44
45
  },
45
- ...y,
46
- children: /* @__PURE__ */ n.jsx(
47
- r,
46
+ ...q,
47
+ children: /* @__PURE__ */ r.jsx(
48
+ u,
48
49
  {
49
- component: Z.div,
50
+ component: A.div,
50
51
  style: {
51
- transformOrigin: b
52
+ transformOrigin: I
52
53
  },
53
54
  animate: { scale: 1 },
54
- whileHover: i ? { scale: l } : { scale: 1 },
55
+ whileHover: l ? { scale: p } : { scale: 1 },
55
56
  transition: {
56
57
  type: "spring",
57
- duration: f,
58
+ duration: g,
58
59
  bounce: 0
59
60
  },
60
- children: /* @__PURE__ */ n.jsx(
61
- _,
61
+ children: /* @__PURE__ */ r.jsx(
62
+ B,
62
63
  {
63
- src: d,
64
- alt: u,
64
+ src: a,
65
+ alt: c,
65
66
  variant: v,
66
- height: M,
67
- width: x,
68
- className: p,
67
+ height: S,
68
+ width: V,
69
+ className: h,
69
70
  style: {
70
71
  objectFit: "cover",
71
72
  display: "block",
72
73
  borderRadius: "inherit",
73
- ...h
74
+ ...y
74
75
  },
75
- onLoad: () => w(!0)
76
+ onLoad: () => _(!0)
76
77
  }
77
78
  )
78
79
  }
@@ -81,7 +82,16 @@ const $ = H.forwardRef(
81
82
  );
82
83
  }
83
84
  );
84
- $.displayName = "SZoomImage";
85
+ o.displayName = "SZoomImage";
86
+ try {
87
+ o.displayName = "SZoomImage", o.__docgenInfo = { description: "An interactive image component with smooth zoom-on-hover functionality and built-in lazy loading.", displayName: "SZoomImage", props: { borderRadius: { defaultValue: { value: "1.5" }, description: "Border radius (number uses theme spacing, string accepts any CSS unit)", name: "borderRadius", required: !1, type: { name: "string | number" } }, width: { defaultValue: { value: "100%" }, description: "Image width for lazy loading skeleton", name: "width", required: !1, type: { name: "string | number" } }, height: { defaultValue: { value: "100%" }, description: "Image height for lazy loading skeleton", name: "height", required: !1, type: { name: "string | number" } }, transitionDuration: { defaultValue: { value: "0.3" }, description: "Duration of the spring animation in seconds", name: "transitionDuration", required: !1, type: { name: "number" } }, src: { defaultValue: null, description: "Image source URL", name: "src", required: !0, type: { name: "string" } }, alt: { defaultValue: null, description: "Alternative text for accessibility", name: "alt", required: !0, type: { name: "string" } }, zoomScale: { defaultValue: { value: "1.2" }, description: "Scale factor to apply on zoom", name: "zoomScale", required: !1, type: { name: "number" } }, imgStyle: { defaultValue: null, description: "Custom styles applied to the image element", name: "imgStyle", required: !1, type: { name: "CSSProperties" } }, imgClassName: { defaultValue: null, description: "Custom class name for the image element", name: "imgClassName", required: !1, type: { name: "string" } }, skeletonVariant: { defaultValue: { value: "rounded" }, description: "Skeleton variant while loading", name: "skeletonVariant", required: !1, type: { name: "enum", value: [{ value: '"text"' }, { value: '"rectangular"' }, { value: '"rounded"' }, { value: '"circular"' }] } } } };
88
+ } catch {
89
+ }
90
+ try {
91
+ szoomimage.displayName = "szoomimage", szoomimage.__docgenInfo = { description: "An interactive image component with smooth zoom-on-hover functionality and built-in lazy loading.", displayName: "szoomimage", props: { borderRadius: { defaultValue: { value: "1.5" }, description: "Border radius (number uses theme spacing, string accepts any CSS unit)", name: "borderRadius", required: !1, type: { name: "string | number" } }, width: { defaultValue: { value: "100%" }, description: "Image width for lazy loading skeleton", name: "width", required: !1, type: { name: "string | number" } }, height: { defaultValue: { value: "100%" }, description: "Image height for lazy loading skeleton", name: "height", required: !1, type: { name: "string | number" } }, transitionDuration: { defaultValue: { value: "0.3" }, description: "Duration of the spring animation in seconds", name: "transitionDuration", required: !1, type: { name: "number" } }, src: { defaultValue: null, description: "Image source URL", name: "src", required: !0, type: { name: "string" } }, alt: { defaultValue: null, description: "Alternative text for accessibility", name: "alt", required: !0, type: { name: "string" } }, zoomScale: { defaultValue: { value: "1.2" }, description: "Scale factor to apply on zoom", name: "zoomScale", required: !1, type: { name: "number" } }, imgStyle: { defaultValue: null, description: "Custom styles applied to the image element", name: "imgStyle", required: !1, type: { name: "CSSProperties" } }, imgClassName: { defaultValue: null, description: "Custom class name for the image element", name: "imgClassName", required: !1, type: { name: "string" } }, skeletonVariant: { defaultValue: { value: "rounded" }, description: "Skeleton variant while loading", name: "skeletonVariant", required: !1, type: { name: "enum", value: [{ value: '"text"' }, { value: '"rectangular"' }, { value: '"rounded"' }, { value: '"circular"' }] } } } };
92
+ } catch {
93
+ }
85
94
  export {
86
- $ as default
95
+ o as SZoomImage,
96
+ o as default
87
97
  };