@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,4 @@
1
- import { default as o } from "./s-category-card.js";
1
+ import { SCategoryCard as e } from "./s-category-card.js";
2
2
  export {
3
- o as default
3
+ e as default
4
4
  };
@@ -8,25 +8,52 @@ export declare const CategoryTitle: import('@emotion/styled').StyledComponent<im
8
8
  titlePosition?: "bottom" | "top" | "center";
9
9
  titleAlignment?: "left" | "center" | "right";
10
10
  }, {}, {}>;
11
+ /**
12
+ * Props interface for SCategoryCard component
13
+ */
11
14
  export interface SCategoryCardProps {
15
+ /** URL or path to the category image source */
12
16
  image: string;
17
+ /** Display title for the category shown as overlay text */
13
18
  title: string;
19
+ /** Width of the category card */
14
20
  width?: number | string;
21
+ /** Height of the category card */
15
22
  height?: number | string;
23
+ /** Alternative text for the image */
16
24
  alt?: string;
25
+ /** Position of the title overlay on the image */
17
26
  titlePosition?: 'bottom' | 'top' | 'center';
27
+ /** Text alignment of the title */
18
28
  titleAlignment?: 'left' | 'center' | 'right';
29
+ /** Typography variant for the title text */
19
30
  titleVariant?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'subtitle1' | 'subtitle2' | 'body1' | 'body2' | 'caption' | 'button' | 'overline';
31
+ /** Color of the title text */
20
32
  titleColor?: string;
33
+ /** Background color of the title overlay */
21
34
  titleBackgroundColor?: string;
35
+ /** Opacity of the title overlay (0-1) */
22
36
  titleOpacity?: number;
37
+ /** Border radius of the card and title overlay */
23
38
  borderRadius?: number | string;
39
+ /** Disable the hover zoom effect on the image */
24
40
  disableHoverEffect?: boolean;
41
+ /** Scale factor for hover zoom effect */
25
42
  hoverScale?: number;
43
+ /** Handler called when the card is clicked */
26
44
  onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
45
+ /** System prop for custom styling of the wrapper */
27
46
  sx?: SxProps<Theme>;
47
+ /** System prop for custom styling of the title overlay */
28
48
  titleSx?: SxProps<Theme>;
49
+ /** System prop for custom styling of the image */
29
50
  imageSx?: SxProps<Theme>;
30
51
  }
31
- declare const SCategoryCard: ({ image, title, width, height, alt, titlePosition, titleAlignment, titleVariant, titleColor, titleBackgroundColor, titleOpacity, borderRadius, disableHoverEffect, hoverScale, onClick, sx, titleSx, imageSx, }: SCategoryCardProps) => import("react/jsx-runtime").JSX.Element;
52
+ /**
53
+ * A stylish category card component that displays an image with an overlaid title.
54
+ */
55
+ export declare const SCategoryCard: {
56
+ ({ image, title, width, height, alt, titlePosition, titleAlignment, titleVariant, titleColor, titleBackgroundColor, titleOpacity, borderRadius, disableHoverEffect, hoverScale, onClick, sx, titleSx, imageSx, }: SCategoryCardProps): import("react/jsx-runtime").JSX.Element;
57
+ displayName: string;
58
+ };
32
59
  export default SCategoryCard;
@@ -1,8 +1,9 @@
1
- import { j as r } from "../jsx-runtime-OVHDjVDe.js";
2
- import { styled as c, Box as i, Typography as v } from "@mui/material";
1
+ import { j as a } from "../jsx-runtime-OVHDjVDe.js";
2
+ import { styled as d, Box as c, Typography as S } from "@mui/material";
3
+ import "../s-lazy-image/index.js";
3
4
  import C from "../s-lazy-image/s-lazy-image.js";
4
- const F = c(i)(
5
- ({ disableHoverEffect: t = !1, hoverScale: o = 1.1 }) => ({
5
+ const r = d(c)(
6
+ ({ disableHoverEffect: e = !1, hoverScale: t = 1.1 }) => ({
6
7
  height: "100%",
7
8
  cursor: "pointer",
8
9
  overflow: "hidden",
@@ -14,90 +15,108 @@ const F = c(i)(
14
15
  transition: "all 0.3s",
15
16
  objectPosition: "center center"
16
17
  },
17
- ...!t && {
18
+ ...!e && {
18
19
  ":hover": {
19
- img: { transform: `scale(${o})` }
20
+ img: { transform: `scale(${t})` }
20
21
  }
21
22
  }
22
23
  })
23
- ), S = c(i)(({ titlePosition: t = "bottom", titleAlignment: o = "center" }) => ({
24
+ ), l = d(c)(({ titlePosition: e = "bottom", titleAlignment: t = "center" }) => ({
24
25
  left: 10,
25
26
  right: 10,
26
27
  padding: 8,
27
- textAlign: o,
28
+ textAlign: t,
28
29
  position: "absolute",
29
30
  transition: "all 0.3s",
30
- ...t === "bottom" && { bottom: 10 },
31
- ...t === "top" && { top: 10 },
32
- ...t === "center" && {
31
+ ...e === "bottom" && { bottom: 10 },
32
+ ...e === "top" && { top: 10 },
33
+ ...e === "center" && {
33
34
  top: "50%",
34
35
  transform: "translateY(-50%)"
35
36
  }
36
- })), B = ({
37
- image: t,
38
- title: o,
39
- width: e = 250,
40
- height: a = 250,
41
- alt: l = "category",
42
- titlePosition: p = "bottom",
43
- titleAlignment: m = "center",
44
- titleVariant: g = "body1",
45
- titleColor: d,
46
- titleBackgroundColor: b = "background.paper",
47
- titleOpacity: f = 1,
48
- borderRadius: s = 2,
49
- disableHoverEffect: x = !1,
50
- hoverScale: y = 1.1,
51
- onClick: n,
52
- sx: j,
53
- titleSx: h,
54
- imageSx: u
55
- }) => /* @__PURE__ */ r.jsxs(
56
- F,
37
+ })), i = ({
38
+ image: e,
39
+ title: t,
40
+ width: o = 250,
41
+ height: n = 250,
42
+ alt: p = "category",
43
+ titlePosition: m = "bottom",
44
+ titleAlignment: f = "center",
45
+ titleVariant: y = "body1",
46
+ titleColor: v,
47
+ titleBackgroundColor: g = "background.paper",
48
+ titleOpacity: h = 1,
49
+ borderRadius: u = 2,
50
+ disableHoverEffect: b = !1,
51
+ hoverScale: V = 1.1,
52
+ onClick: s,
53
+ sx: x,
54
+ titleSx: q,
55
+ imageSx: _
56
+ }) => /* @__PURE__ */ a.jsxs(
57
+ r,
57
58
  {
58
- disableHoverEffect: x,
59
- hoverScale: y,
60
- onClick: n,
59
+ disableHoverEffect: b,
60
+ hoverScale: V,
61
+ onClick: s,
61
62
  sx: {
62
- borderRadius: s,
63
- cursor: n ? "pointer" : "default",
64
- width: e,
65
- height: a,
66
- ...j
63
+ borderRadius: u,
64
+ cursor: s ? "pointer" : "default",
65
+ width: o,
66
+ height: n,
67
+ ...x
67
68
  },
68
69
  children: [
69
- /* @__PURE__ */ r.jsx(
70
+ /* @__PURE__ */ a.jsx(
70
71
  C,
71
72
  {
72
- src: t,
73
- width: e,
74
- height: a,
75
- alt: l,
73
+ src: e,
74
+ width: o,
75
+ height: n,
76
+ alt: p,
76
77
  style: {
77
78
  objectFit: "cover",
78
- ...u
79
+ ..._
79
80
  }
80
81
  }
81
82
  ),
82
- /* @__PURE__ */ r.jsx(
83
- S,
83
+ /* @__PURE__ */ a.jsx(
84
+ l,
84
85
  {
85
- titlePosition: p,
86
- titleAlignment: m,
86
+ titlePosition: m,
87
+ titleAlignment: f,
87
88
  sx: {
88
- borderRadius: s,
89
- bgcolor: b,
90
- opacity: f,
91
- ...h
89
+ borderRadius: u,
90
+ bgcolor: g,
91
+ opacity: h,
92
+ ...q
92
93
  },
93
- children: /* @__PURE__ */ r.jsx(v, { variant: g, color: d, children: o })
94
+ children: /* @__PURE__ */ a.jsx(S, { variant: y, color: v, children: t })
94
95
  }
95
96
  )
96
97
  ]
97
98
  }
98
99
  );
100
+ i.displayName = "SCategoryCard";
101
+ try {
102
+ r.displayName = "Wrapper", r.__docgenInfo = { description: "", displayName: "Wrapper", props: {} };
103
+ } catch {
104
+ }
105
+ try {
106
+ l.displayName = "CategoryTitle", l.__docgenInfo = { description: "", displayName: "CategoryTitle", props: {} };
107
+ } catch {
108
+ }
109
+ try {
110
+ i.displayName = "SCategoryCard", i.__docgenInfo = { description: "A stylish category card component that displays an image with an overlaid title.", displayName: "SCategoryCard", props: { image: { defaultValue: null, description: "URL or path to the category image source", name: "image", required: !0, type: { name: "string" } }, title: { defaultValue: null, description: "Display title for the category shown as overlay text", name: "title", required: !0, type: { name: "string" } }, width: { defaultValue: { value: "250" }, description: "Width of the category card", name: "width", required: !1, type: { name: "string | number" } }, height: { defaultValue: { value: "250" }, description: "Height of the category card", name: "height", required: !1, type: { name: "string | number" } }, alt: { defaultValue: { value: "category" }, description: "Alternative text for the image", name: "alt", required: !1, type: { name: "string" } }, titlePosition: { defaultValue: { value: "bottom" }, description: "Position of the title overlay on the image", name: "titlePosition", required: !1, type: { name: "enum", value: [{ value: '"top"' }, { value: '"bottom"' }, { value: '"center"' }] } }, titleAlignment: { defaultValue: { value: "center" }, description: "Text alignment of the title", name: "titleAlignment", required: !1, type: { name: "enum", value: [{ value: '"right"' }, { value: '"left"' }, { value: '"center"' }] } }, titleVariant: { defaultValue: { value: "body1" }, description: "Typography variant for the title text", name: "titleVariant", required: !1, type: { name: "enum", value: [{ value: '"button"' }, { value: '"caption"' }, { value: '"h1"' }, { value: '"h2"' }, { value: '"h3"' }, { value: '"h4"' }, { value: '"h5"' }, { value: '"h6"' }, { value: '"body2"' }, { value: '"body1"' }, { value: '"subtitle1"' }, { value: '"subtitle2"' }, { value: '"overline"' }] } }, titleColor: { defaultValue: null, description: "Color of the title text", name: "titleColor", required: !1, type: { name: "string" } }, titleBackgroundColor: { defaultValue: { value: "background.paper" }, description: "Background color of the title overlay", name: "titleBackgroundColor", required: !1, type: { name: "string" } }, titleOpacity: { defaultValue: { value: "1" }, description: "Opacity of the title overlay (0-1)", name: "titleOpacity", required: !1, type: { name: "number" } }, borderRadius: { defaultValue: { value: "2" }, description: "Border radius of the card and title overlay", name: "borderRadius", required: !1, type: { name: "string | number" } }, disableHoverEffect: { defaultValue: { value: "false" }, description: "Disable the hover zoom effect on the image", name: "disableHoverEffect", required: !1, type: { name: "boolean" } }, hoverScale: { defaultValue: { value: "1.1" }, description: "Scale factor for hover zoom effect", name: "hoverScale", required: !1, type: { name: "number" } }, onClick: { defaultValue: null, description: "Handler called when the card is clicked", name: "onClick", required: !1, type: { name: "((event: MouseEvent<HTMLDivElement, MouseEvent>) => void)" } }, sx: { defaultValue: null, description: "System prop for custom styling of the wrapper", name: "sx", required: !1, type: { name: "SxProps<Theme>" } }, titleSx: { defaultValue: null, description: "System prop for custom styling of the title overlay", name: "titleSx", required: !1, type: { name: "SxProps<Theme>" } }, imageSx: { defaultValue: null, description: "System prop for custom styling of the image", name: "imageSx", required: !1, type: { name: "SxProps<Theme>" } } } };
111
+ } catch {
112
+ }
113
+ try {
114
+ scategorycard.displayName = "scategorycard", scategorycard.__docgenInfo = { description: "A stylish category card component that displays an image with an overlaid title.", displayName: "scategorycard", props: { image: { defaultValue: null, description: "URL or path to the category image source", name: "image", required: !0, type: { name: "string" } }, title: { defaultValue: null, description: "Display title for the category shown as overlay text", name: "title", required: !0, type: { name: "string" } }, width: { defaultValue: { value: "250" }, description: "Width of the category card", name: "width", required: !1, type: { name: "string | number" } }, height: { defaultValue: { value: "250" }, description: "Height of the category card", name: "height", required: !1, type: { name: "string | number" } }, alt: { defaultValue: { value: "category" }, description: "Alternative text for the image", name: "alt", required: !1, type: { name: "string" } }, titlePosition: { defaultValue: { value: "bottom" }, description: "Position of the title overlay on the image", name: "titlePosition", required: !1, type: { name: "enum", value: [{ value: '"top"' }, { value: '"bottom"' }, { value: '"center"' }] } }, titleAlignment: { defaultValue: { value: "center" }, description: "Text alignment of the title", name: "titleAlignment", required: !1, type: { name: "enum", value: [{ value: '"right"' }, { value: '"left"' }, { value: '"center"' }] } }, titleVariant: { defaultValue: { value: "body1" }, description: "Typography variant for the title text", name: "titleVariant", required: !1, type: { name: "enum", value: [{ value: '"button"' }, { value: '"caption"' }, { value: '"h1"' }, { value: '"h2"' }, { value: '"h3"' }, { value: '"h4"' }, { value: '"h5"' }, { value: '"h6"' }, { value: '"body2"' }, { value: '"body1"' }, { value: '"subtitle1"' }, { value: '"subtitle2"' }, { value: '"overline"' }] } }, titleColor: { defaultValue: null, description: "Color of the title text", name: "titleColor", required: !1, type: { name: "string" } }, titleBackgroundColor: { defaultValue: { value: "background.paper" }, description: "Background color of the title overlay", name: "titleBackgroundColor", required: !1, type: { name: "string" } }, titleOpacity: { defaultValue: { value: "1" }, description: "Opacity of the title overlay (0-1)", name: "titleOpacity", required: !1, type: { name: "number" } }, borderRadius: { defaultValue: { value: "2" }, description: "Border radius of the card and title overlay", name: "borderRadius", required: !1, type: { name: "string | number" } }, disableHoverEffect: { defaultValue: { value: "false" }, description: "Disable the hover zoom effect on the image", name: "disableHoverEffect", required: !1, type: { name: "boolean" } }, hoverScale: { defaultValue: { value: "1.1" }, description: "Scale factor for hover zoom effect", name: "hoverScale", required: !1, type: { name: "number" } }, onClick: { defaultValue: null, description: "Handler called when the card is clicked", name: "onClick", required: !1, type: { name: "((event: MouseEvent<HTMLDivElement, MouseEvent>) => void)" } }, sx: { defaultValue: null, description: "System prop for custom styling of the wrapper", name: "sx", required: !1, type: { name: "SxProps<Theme>" } }, titleSx: { defaultValue: null, description: "System prop for custom styling of the title overlay", name: "titleSx", required: !1, type: { name: "SxProps<Theme>" } }, imageSx: { defaultValue: null, description: "System prop for custom styling of the image", name: "imageSx", required: !1, type: { name: "SxProps<Theme>" } } } };
115
+ } catch {
116
+ }
99
117
  export {
100
- S as CategoryTitle,
101
- F as Wrapper,
102
- B as default
118
+ l as CategoryTitle,
119
+ i as SCategoryCard,
120
+ r as Wrapper,
121
+ i as default
103
122
  };
@@ -1,4 +1,4 @@
1
- import { default as o } from "./s-chat-input.js";
1
+ import { SChatInput as e } from "./s-chat-input.js";
2
2
  export {
3
- o as default
3
+ e as default
4
4
  };
@@ -1,11 +1,22 @@
1
1
  import { default as React } from 'react';
2
2
  import { STextFieldProps } from '../s-text-field';
3
+ /**
4
+ * Props interface for SChatInput component
5
+ */
3
6
  export interface SChatInputProps extends Omit<STextFieldProps, 'onSubmit'> {
7
+ /** Callback function called when message is submitted with Enter key or submit button */
4
8
  onSubmit?: (value: string, files?: File[]) => void;
9
+ /** Optional callback function called when files are selected */
5
10
  onFileSelect?: (files: File[]) => void;
11
+ /** Disable the input and submission */
6
12
  disabled?: boolean;
13
+ /** File types accepted for upload (e.g., "image/*,.pdf,.doc") */
7
14
  acceptedFileTypes?: string;
15
+ /** Maximum file size in bytes for uploaded files */
8
16
  maxFileSize?: number;
9
17
  }
10
- declare const SChatInput: React.ForwardRefExoticComponent<Omit<SChatInputProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
18
+ /**
19
+ * A chat input component with file attachment support, emoji picker, and multiline text input.
20
+ */
21
+ export declare const SChatInput: React.ForwardRefExoticComponent<Omit<SChatInputProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
22
  export default SChatInput;
@@ -1,70 +1,70 @@
1
1
  import { j as r } from "../jsx-runtime-OVHDjVDe.js";
2
- import { forwardRef as K, useState as c, useRef as T, useId as V, useEffect as B } from "react";
3
- import { Box as s, outlinedInputClasses as D, Typography as I, Popper as W, ClickAwayListener as H } from "@mui/material";
4
- import _ from "emoji-picker-react";
5
- import q from "../s-file-icon/s-file-icon.js";
6
- import d from "../s-icon-button/s-icon-button.js";
7
- import G from "../s-text-field/s-text-field.js";
2
+ import { forwardRef as A, useState as c, useRef as L, useId as O, useEffect as D } from "react";
3
+ import { Box as a, outlinedInputClasses as K, Typography as I, Popper as B, ClickAwayListener as N } from "@mui/material";
4
+ import W from "emoji-picker-react";
5
+ import { SFileIcon as H } from "../s-file-icon/s-file-icon.js";
6
+ import { SIconButton as p } from "../s-icon-button/s-icon-button.js";
7
+ import { STextField as G } from "../s-text-field/s-text-field.js";
8
8
  import { C as J } from "../Close-BRlEKA2Q.js";
9
- import { c as E } from "../createSvgIcon-DxwgGAVe.js";
10
- import { A as N } from "../ArrowUpward-DhTFpzoh.js";
11
- const Q = E(/* @__PURE__ */ r.jsx("path", {
9
+ import { c as S } from "../createSvgIcon-DxwgGAVe.js";
10
+ import { A as Q } from "../ArrowUpward-DhTFpzoh.js";
11
+ const X = S(/* @__PURE__ */ r.jsx("path", {
12
12
  d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6z"
13
- }), "AttachFile"), X = E(/* @__PURE__ */ r.jsx("path", {
13
+ }), "AttachFile"), Y = S(/* @__PURE__ */ r.jsx("path", {
14
14
  d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M8.5 8c.83 0 1.5.67 1.5 1.5S9.33 11 8.5 11 7 10.33 7 9.5 7.67 8 8.5 8M12 18c-2.28 0-4.22-1.66-5-4h10c-.78 2.34-2.72 4-5 4m3.5-7c-.83 0-1.5-.67-1.5-1.5S14.67 8 15.5 8s1.5.67 1.5 1.5-.67 1.5-1.5 1.5"
15
- }), "EmojiEmotions"), le = K(
16
- ({ onSubmit: p, onFileSelect: m, disabled: a, acceptedFileTypes: M, maxFileSize: v, ...z }, U) => {
17
- const [u, h] = c(""), [l, x] = c([]), [i, f] = c(/* @__PURE__ */ new Map()), [k, g] = c(!1), C = T(null), y = V(), b = (e) => e.type.startsWith("image/"), $ = (e) => {
18
- const o = `${e.name}-${e.size}-${e.lastModified}`;
19
- if (i.has(o))
20
- return i.get(o);
21
- if (b(e)) {
22
- const n = URL.createObjectURL(e);
23
- return f((t) => new Map(t).set(o, n)), n;
15
+ }), "EmojiEmotions"), j = A(
16
+ ({ onSubmit: l, onFileSelect: u, disabled: i, acceptedFileTypes: E, maxFileSize: v, ...z }, _) => {
17
+ const [m, f] = c(""), [d, h] = c([]), [s, b] = c(/* @__PURE__ */ new Map()), [k, x] = c(!1), C = L(null), w = O(), g = (e) => e.type.startsWith("image/"), V = (e) => {
18
+ const t = `${e.name}-${e.size}-${e.lastModified}`;
19
+ if (s.has(t))
20
+ return s.get(t);
21
+ if (g(e)) {
22
+ const o = URL.createObjectURL(e);
23
+ return b((n) => new Map(n).set(t, o)), o;
24
24
  }
25
25
  return "";
26
+ }, M = (e) => {
27
+ f(e.target.value);
28
+ }, U = (e) => {
29
+ f((t) => t + e.emoji), x(!1);
30
+ }, $ = () => {
31
+ x(!k);
32
+ }, F = () => {
33
+ i || m.trim().length === 0 && d.length === 0 || (l == null || l(m, d), f(""), s.forEach((e) => URL.revokeObjectURL(e)), b(/* @__PURE__ */ new Map()), h([]));
34
+ }, q = (e) => {
35
+ const o = Array.from(e.target.files || []).filter((n) => !(v && n.size > v));
36
+ h((n) => [...n, ...o]), u == null || u(o), e.target.value = "";
26
37
  }, P = (e) => {
27
- h(e.target.value);
28
- }, L = (e) => {
29
- h((o) => o + e.emoji), g(!1);
30
- }, A = () => {
31
- g(!k);
32
- }, w = () => {
33
- a || u.trim().length === 0 && l.length === 0 || (p == null || p(u, l), h(""), i.forEach((e) => URL.revokeObjectURL(e)), f(/* @__PURE__ */ new Map()), x([]));
34
- }, F = (e) => {
35
- const n = Array.from(e.target.files || []).filter((t) => !(v && t.size > v));
36
- x((t) => [...t, ...n]), m == null || m(n), e.target.value = "";
37
- }, O = (e) => {
38
- const o = l[e];
39
- if (o && b(o)) {
40
- const n = `${o.name}-${o.size}-${o.lastModified}`, t = i.get(n);
41
- t && (URL.revokeObjectURL(t), f((j) => {
42
- const R = new Map(j);
43
- return R.delete(n), R;
38
+ const t = d[e];
39
+ if (t && g(t)) {
40
+ const o = `${t.name}-${t.size}-${t.lastModified}`, n = s.get(o);
41
+ n && (URL.revokeObjectURL(n), b((y) => {
42
+ const R = new Map(y);
43
+ return R.delete(o), R;
44
44
  }));
45
45
  }
46
- x((n) => n.filter((t, j) => j !== e));
47
- }, S = (e) => {
48
- e.key === "Enter" && !e.shiftKey && (e.preventDefault(), w());
46
+ h((o) => o.filter((n, y) => y !== e));
47
+ }, T = (e) => {
48
+ e.key === "Enter" && !e.shiftKey && (e.preventDefault(), F());
49
49
  };
50
- return B(() => () => {
51
- i.forEach((e) => URL.revokeObjectURL(e));
52
- }, [i]), /* @__PURE__ */ r.jsxs(s, { border: "1px solid", borderColor: "divider", borderRadius: 2, padding: "8px 12px", children: [
50
+ return D(() => () => {
51
+ s.forEach((e) => URL.revokeObjectURL(e));
52
+ }, [s]), /* @__PURE__ */ r.jsxs(a, { border: "1px solid", borderColor: "divider", borderRadius: 2, padding: "8px 12px", children: [
53
53
  /* @__PURE__ */ r.jsx(
54
54
  G,
55
55
  {
56
56
  placeholder: "Enter your message here...",
57
- disabled: a,
58
- value: u,
59
- onChange: P,
60
- onKeyDown: S,
57
+ disabled: i,
58
+ value: m,
59
+ onChange: M,
60
+ onKeyDown: T,
61
61
  multiline: !0,
62
62
  minRows: 1,
63
63
  maxRows: 10,
64
64
  size: "small",
65
65
  variant: "outlined",
66
66
  fullWidth: !0,
67
- inputRef: U,
67
+ inputRef: _,
68
68
  slotProps: {
69
69
  input: {
70
70
  sx: {
@@ -72,7 +72,7 @@ const Q = E(/* @__PURE__ */ r.jsx("path", {
72
72
  backgroundColor: "transparent",
73
73
  border: "none",
74
74
  padding: 0,
75
- [`&.${D.focused}`]: {
75
+ [`&.${K.focused}`]: {
76
76
  outline: "none"
77
77
  },
78
78
  "& fieldset": {
@@ -90,10 +90,10 @@ const Q = E(/* @__PURE__ */ r.jsx("path", {
90
90
  ...z
91
91
  }
92
92
  ),
93
- l.length > 0 && /* @__PURE__ */ r.jsx(s, { mt: 1, children: l.map((e, o) => {
94
- const n = b(e), t = e.name.split(".").pop();
93
+ d.length > 0 && /* @__PURE__ */ r.jsx(a, { mt: 1, children: d.map((e, t) => {
94
+ const o = g(e), n = e.name.split(".").pop();
95
95
  return /* @__PURE__ */ r.jsxs(
96
- s,
96
+ a,
97
97
  {
98
98
  display: "flex",
99
99
  alignItems: "center",
@@ -107,12 +107,12 @@ const Q = E(/* @__PURE__ */ r.jsx("path", {
107
107
  mb: 0.5
108
108
  },
109
109
  children: [
110
- /* @__PURE__ */ r.jsxs(s, { display: "flex", alignItems: "center", gap: 1, children: [
111
- n ? /* @__PURE__ */ r.jsx(
112
- s,
110
+ /* @__PURE__ */ r.jsxs(a, { display: "flex", alignItems: "center", gap: 1, children: [
111
+ o ? /* @__PURE__ */ r.jsx(
112
+ a,
113
113
  {
114
114
  component: "img",
115
- src: $(e),
115
+ src: V(e),
116
116
  alt: e.name,
117
117
  sx: {
118
118
  width: 40,
@@ -123,8 +123,8 @@ const Q = E(/* @__PURE__ */ r.jsx("path", {
123
123
  borderColor: "divider"
124
124
  }
125
125
  }
126
- ) : /* @__PURE__ */ r.jsx(q, { extension: t }),
127
- /* @__PURE__ */ r.jsxs(s, { display: "flex", flexDirection: "row", alignItems: "center", gap: 1, children: [
126
+ ) : /* @__PURE__ */ r.jsx(H, { extension: n }),
127
+ /* @__PURE__ */ r.jsxs(a, { display: "flex", flexDirection: "row", alignItems: "center", gap: 1, children: [
128
128
  /* @__PURE__ */ r.jsx(I, { variant: "subtitle2", textOverflow: "ellipsis", overflow: "hidden", whiteSpace: "nowrap", children: e.name }),
129
129
  /* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsxs(I, { variant: "caption", color: "text.secondary", children: [
130
130
  "(",
@@ -133,31 +133,31 @@ const Q = E(/* @__PURE__ */ r.jsx("path", {
133
133
  ] }) })
134
134
  ] })
135
135
  ] }),
136
- /* @__PURE__ */ r.jsx(d, { size: "small", onClick: () => O(o), sx: { minWidth: "auto", p: 0.5 }, children: /* @__PURE__ */ r.jsx(J, {}) })
136
+ /* @__PURE__ */ r.jsx(p, { size: "small", onClick: () => P(t), sx: { minWidth: "auto", p: 0.5 }, children: /* @__PURE__ */ r.jsx(J, {}) })
137
137
  ]
138
138
  },
139
- `${e.name}-${o}`
139
+ `${e.name}-${t}`
140
140
  );
141
141
  }) }),
142
- /* @__PURE__ */ r.jsxs(s, { display: "flex", justifyContent: "space-between", alignItems: "center", mt: 1, children: [
143
- /* @__PURE__ */ r.jsxs(s, { display: "flex", gap: 1, children: [
142
+ /* @__PURE__ */ r.jsxs(a, { display: "flex", justifyContent: "space-between", alignItems: "center", mt: 1, children: [
143
+ /* @__PURE__ */ r.jsxs(a, { display: "flex", gap: 1, children: [
144
144
  /* @__PURE__ */ r.jsx(
145
145
  "input",
146
146
  {
147
147
  type: "file",
148
148
  multiple: !0,
149
- accept: M,
150
- onChange: F,
149
+ accept: E,
150
+ onChange: q,
151
151
  style: { display: "none" },
152
- id: `file-attachment-input-${y}`,
153
- disabled: a
152
+ id: `file-attachment-input-${w}`,
153
+ disabled: i
154
154
  }
155
155
  ),
156
- /* @__PURE__ */ r.jsx("label", { htmlFor: `file-attachment-input-${y}`, children: /* @__PURE__ */ r.jsx(
157
- d,
156
+ /* @__PURE__ */ r.jsx("label", { htmlFor: `file-attachment-input-${w}`, children: /* @__PURE__ */ r.jsx(
157
+ p,
158
158
  {
159
159
  component: "span",
160
- disabled: a,
160
+ disabled: i,
161
161
  size: "small",
162
162
  sx: {
163
163
  transition: "transform 0.3s ease",
@@ -165,15 +165,15 @@ const Q = E(/* @__PURE__ */ r.jsx("path", {
165
165
  transform: "scale(1.1)"
166
166
  }
167
167
  },
168
- children: /* @__PURE__ */ r.jsx(Q, {})
168
+ children: /* @__PURE__ */ r.jsx(X, {})
169
169
  }
170
170
  ) }),
171
171
  /* @__PURE__ */ r.jsx(
172
- d,
172
+ p,
173
173
  {
174
174
  ref: C,
175
- onClick: A,
176
- disabled: a,
175
+ onClick: $,
176
+ disabled: i,
177
177
  size: "small",
178
178
  sx: {
179
179
  transition: "transform 0.3s ease",
@@ -181,15 +181,15 @@ const Q = E(/* @__PURE__ */ r.jsx("path", {
181
181
  transform: "scale(1.1)"
182
182
  }
183
183
  },
184
- children: /* @__PURE__ */ r.jsx(X, {})
184
+ children: /* @__PURE__ */ r.jsx(Y, {})
185
185
  }
186
186
  )
187
187
  ] }),
188
188
  /* @__PURE__ */ r.jsx(
189
- d,
189
+ p,
190
190
  {
191
- onClick: w,
192
- disabled: a,
191
+ onClick: F,
192
+ disabled: i,
193
193
  size: "small",
194
194
  sx: {
195
195
  transition: "transform 0.3s ease",
@@ -197,12 +197,12 @@ const Q = E(/* @__PURE__ */ r.jsx("path", {
197
197
  transform: "scale(1.2)"
198
198
  }
199
199
  },
200
- children: /* @__PURE__ */ r.jsx(N, {})
200
+ children: /* @__PURE__ */ r.jsx(Q, {})
201
201
  }
202
202
  )
203
203
  ] }),
204
- /* @__PURE__ */ r.jsx(W, { open: k, anchorEl: C.current, placement: "top-start", sx: { zIndex: 1300 }, children: /* @__PURE__ */ r.jsx(H, { onClickAway: () => g(!1), children: /* @__PURE__ */ r.jsx(
205
- s,
204
+ /* @__PURE__ */ r.jsx(B, { open: k, anchorEl: C.current, placement: "top-start", sx: { zIndex: 1300 }, children: /* @__PURE__ */ r.jsx(N, { onClickAway: () => x(!1), children: /* @__PURE__ */ r.jsx(
205
+ a,
206
206
  {
207
207
  sx: {
208
208
  border: "1px solid",
@@ -292,9 +292,9 @@ const Q = E(/* @__PURE__ */ r.jsx("path", {
292
292
  }
293
293
  },
294
294
  children: /* @__PURE__ */ r.jsx(
295
- _,
295
+ W,
296
296
  {
297
- onEmojiClick: L,
297
+ onEmojiClick: U,
298
298
  width: 300,
299
299
  height: 400,
300
300
  searchDisabled: !1,
@@ -307,6 +307,16 @@ const Q = E(/* @__PURE__ */ r.jsx("path", {
307
307
  ] });
308
308
  }
309
309
  );
310
+ j.displayName = "SChatInput";
311
+ try {
312
+ j.displayName = "SChatInput", j.__docgenInfo = { description: "A chat input component with file attachment support, emoji picker, and multiline text input.", displayName: "SChatInput", props: { onSubmit: { defaultValue: null, description: "Callback function called when message is submitted with Enter key or submit button", name: "onSubmit", required: !1, type: { name: "((value: string, files?: File[]) => void)" } }, disabled: { defaultValue: null, description: "Disable the input and submission", name: "disabled", required: !1, type: { name: "boolean" } }, onFileSelect: { defaultValue: null, description: "Optional callback function called when files are selected", name: "onFileSelect", required: !1, type: { name: "((files: File[]) => void)" } }, acceptedFileTypes: { defaultValue: null, description: 'File types accepted for upload (e.g., "image/*,.pdf,.doc")', name: "acceptedFileTypes", required: !1, type: { name: "string" } }, maxFileSize: { defaultValue: null, description: "Maximum file size in bytes for uploaded files", name: "maxFileSize", required: !1, type: { name: "number" } } } };
313
+ } catch {
314
+ }
315
+ try {
316
+ schatinput.displayName = "schatinput", schatinput.__docgenInfo = { description: "A chat input component with file attachment support, emoji picker, and multiline text input.", displayName: "schatinput", props: { onSubmit: { defaultValue: null, description: "Callback function called when message is submitted with Enter key or submit button", name: "onSubmit", required: !1, type: { name: "((value: string, files?: File[]) => void)" } }, disabled: { defaultValue: null, description: "Disable the input and submission", name: "disabled", required: !1, type: { name: "boolean" } }, onFileSelect: { defaultValue: null, description: "Optional callback function called when files are selected", name: "onFileSelect", required: !1, type: { name: "((files: File[]) => void)" } }, acceptedFileTypes: { defaultValue: null, description: 'File types accepted for upload (e.g., "image/*,.pdf,.doc")', name: "acceptedFileTypes", required: !1, type: { name: "string" } }, maxFileSize: { defaultValue: null, description: "Maximum file size in bytes for uploaded files", name: "maxFileSize", required: !1, type: { name: "number" } } } };
317
+ } catch {
318
+ }
310
319
  export {
311
- le as default
320
+ j as SChatInput,
321
+ j as default
312
322
  };
@@ -1,4 +1,4 @@
1
- import { default as o } from "./s-chat-message.js";
1
+ import { SChatMessage as s } from "./s-chat-message.js";
2
2
  export {
3
- o as default
3
+ s as default
4
4
  };
@@ -9,22 +9,43 @@ export interface ChatAttachment {
9
9
  mimeType?: string;
10
10
  thumbnailUrl?: string;
11
11
  }
12
+ /**
13
+ * Props interface for SChatMessage component
14
+ */
12
15
  export interface SChatMessageProps extends Omit<BoxProps, 'children'> {
16
+ /** The message content to display in the chat bubble */
13
17
  message?: string;
18
+ /** The message variant controlling alignment and styling */
14
19
  variant?: 'sent' | 'received';
20
+ /** The timestamp for the message, displayed when showTimestamp is true */
15
21
  timestamp?: string | Date;
22
+ /** Avatar image URL or base64 string to display next to the message */
16
23
  avatar?: string;
24
+ /** Name of the message sender, displayed above received messages when provided */
17
25
  senderName?: string;
26
+ /** Whether to display the avatar next to the message */
18
27
  showAvatar?: boolean;
28
+ /** Whether to display the formatted timestamp below the message */
19
29
  showTimestamp?: boolean;
30
+ /** Maximum width of the message bubble container */
20
31
  maxWidth?: string | number;
32
+ /** Array of file/image attachments to display with the message */
21
33
  attachments?: ChatAttachment[];
34
+ /** Callback fired when an attachment is clicked */
22
35
  onAttachmentClick?: (attachment: ChatAttachment) => void;
36
+ /** Callback fired when file download button is clicked */
23
37
  onDownload?: (attachment: ChatAttachment) => void;
38
+ /** Whether the message failed to send */
24
39
  hasError?: boolean;
40
+ /** Custom error message to display when hasError is true */
25
41
  errorMessage?: string;
42
+ /** Callback fired when retry button is clicked */
26
43
  onRetry?: () => void;
44
+ /** Whether to show skeleton loading state instead of content */
27
45
  loading?: boolean;
28
46
  }
29
- declare const SChatMessage: React.FC<SChatMessageProps>;
47
+ /**
48
+ * A comprehensive chat message component for conversation interfaces with support for text, images, and file attachments.
49
+ */
50
+ export declare const SChatMessage: React.FC<SChatMessageProps>;
30
51
  export default SChatMessage;