@solostylist/ui-kit 1.0.230 → 2.0.1

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 (553) hide show
  1. package/dist/colors-CNjL5fhq.js +180 -0
  2. package/dist/gradients-DSnBONEQ.js +199 -0
  3. package/dist/hooks/index.d.ts +0 -1
  4. package/dist/hooks/index.js +4 -5
  5. package/dist/hooks/use-countdown.js +69 -47
  6. package/dist/main.d.ts +7 -2
  7. package/dist/main.js +2 -0
  8. package/dist/palettes/index.d.ts +11 -0
  9. package/dist/palettes/index.js +2 -0
  10. package/dist/palettes-CJLuEy1m.js +1765 -0
  11. package/dist/s-accordion/index.d.ts +2 -1
  12. package/dist/s-accordion/index.js +1 -1
  13. package/dist/s-accordion/s-accordion.d.ts +39 -19
  14. package/dist/s-accordion/s-accordion.js +70 -2
  15. package/dist/s-action-overlay/index.d.ts +2 -1
  16. package/dist/s-action-overlay/s-action-overlay.d.ts +52 -51
  17. package/dist/s-action-overlay/s-action-overlay.js +106 -107
  18. package/dist/s-autocomplete/index.d.ts +2 -1
  19. package/dist/s-autocomplete/s-autocomplete.d.ts +25 -8
  20. package/dist/s-autocomplete/s-autocomplete.js +33 -22
  21. package/dist/s-avatar/index.d.ts +2 -1
  22. package/dist/s-avatar/s-avatar.d.ts +36 -18
  23. package/dist/s-avatar/s-avatar.js +53 -27
  24. package/dist/s-blur-text/index.d.ts +1 -0
  25. package/dist/s-blur-text/s-blur-text.d.ts +3 -3
  26. package/dist/s-blur-text/s-blur-text.js +68 -40
  27. package/dist/s-brand-logo/index.d.ts +3 -0
  28. package/dist/s-brand-logo/index.js +2 -0
  29. package/dist/s-brand-logo/s-brand-logo.d.ts +15 -0
  30. package/dist/s-brand-logo/s-brand-logo.js +2 -0
  31. package/dist/s-brand-logo-CErW9Slg.js +123 -0
  32. package/dist/s-breadcrumbs/index.d.ts +2 -1
  33. package/dist/s-breadcrumbs/s-breadcrumbs.d.ts +5 -1
  34. package/dist/s-breadcrumbs/s-breadcrumbs.js +71 -36
  35. package/dist/s-button/s-button.d.ts +3 -5
  36. package/dist/s-button/s-button.js +3 -9
  37. package/dist/s-carousel/index.d.ts +3 -1
  38. package/dist/s-carousel/index.js +1 -1
  39. package/dist/s-carousel/s-carousel.d.ts +18 -8
  40. package/dist/s-carousel/s-carousel.js +184 -2
  41. package/dist/s-category-card/index.d.ts +2 -1
  42. package/dist/s-category-card/s-category-card.d.ts +38 -51
  43. package/dist/s-category-card/s-category-card.js +88 -56
  44. package/dist/s-chat-input/index.d.ts +2 -1
  45. package/dist/s-chat-input/index.js +1 -1
  46. package/dist/s-chat-input/s-chat-input.d.ts +41 -6
  47. package/dist/s-chat-input/s-chat-input.js +398 -2
  48. package/dist/s-chat-message/index.d.ts +2 -1
  49. package/dist/s-chat-message/index.js +1 -1
  50. package/dist/s-chat-message/s-chat-message.d.ts +6 -3
  51. package/dist/s-chat-message/s-chat-message.js +314 -2
  52. package/dist/s-checkbox/index.d.ts +2 -1
  53. package/dist/s-checkbox/s-checkbox.d.ts +33 -11
  54. package/dist/s-checkbox/s-checkbox.js +44 -34
  55. package/dist/s-chip/s-chip.d.ts +3 -5
  56. package/dist/s-chip/s-chip.js +3 -9
  57. package/dist/s-chips/index.d.ts +2 -1
  58. package/dist/s-chips/index.js +1 -1
  59. package/dist/s-chips/s-chips.d.ts +50 -28
  60. package/dist/s-chips/s-chips.js +174 -2
  61. package/dist/s-code-block/index.d.ts +3 -1
  62. package/dist/s-code-block/index.js +1 -1
  63. package/dist/s-code-block/s-code-block.d.ts +30 -28
  64. package/dist/s-code-block/s-code-block.js +103 -2
  65. package/dist/s-comment-message/index.d.ts +1 -0
  66. package/dist/s-comment-message/index.js +1 -1
  67. package/dist/s-comment-message/s-comment-message.d.ts +6 -8
  68. package/dist/s-comment-message/s-comment-message.js +189 -2
  69. package/dist/s-copyable-text/index.d.ts +2 -1
  70. package/dist/s-copyable-text/s-copyable-text.d.ts +34 -17
  71. package/dist/s-copyable-text/s-copyable-text.js +55 -33
  72. package/dist/s-countdown/index.d.ts +4 -3
  73. package/dist/s-countdown/index.js +1 -1
  74. package/dist/s-countdown/s-count-box.d.ts +39 -32
  75. package/dist/s-countdown/s-count-box.js +104 -87
  76. package/dist/s-countdown/s-countdown.d.ts +3 -10
  77. package/dist/s-countdown/s-countdown.js +86 -70
  78. package/dist/s-data-table/index.d.ts +2 -1
  79. package/dist/s-data-table/index.js +1 -1
  80. package/dist/s-data-table/s-data-table.d.ts +15 -7
  81. package/dist/s-data-table/s-data-table.js +213 -2
  82. package/dist/s-date-picker/index.d.ts +3 -1
  83. package/dist/s-date-picker/index.js +1 -1
  84. package/dist/s-date-picker/picker-action-bar.js +43 -42
  85. package/dist/s-date-picker/s-date-picker.d.ts +9 -5
  86. package/dist/s-date-picker/s-date-picker.js +106 -2
  87. package/dist/s-datetime-picker/index.d.ts +3 -1
  88. package/dist/s-datetime-picker/index.js +1 -1
  89. package/dist/s-datetime-picker/s-datetime-picker.d.ts +9 -5
  90. package/dist/s-datetime-picker/s-datetime-picker.js +108 -2
  91. package/dist/s-dialog/index.d.ts +2 -1
  92. package/dist/s-dialog/s-dialog.d.ts +44 -22
  93. package/dist/s-dialog/s-dialog.js +76 -39
  94. package/dist/s-dialog-confirm/index.d.ts +2 -1
  95. package/dist/s-dialog-confirm/s-dialog-confirm.d.ts +46 -62
  96. package/dist/s-dialog-confirm/s-dialog-confirm.js +89 -71
  97. package/dist/s-dialog-message/index.d.ts +2 -1
  98. package/dist/s-dialog-message/s-dialog-message.d.ts +34 -51
  99. package/dist/s-dialog-message/s-dialog-message.js +74 -67
  100. package/dist/s-empty/index.d.ts +1 -0
  101. package/dist/s-empty/s-empty.d.ts +5 -10
  102. package/dist/s-empty/s-empty.js +27 -9
  103. package/dist/s-file-dropzone/index.d.ts +3 -1
  104. package/dist/s-file-dropzone/index.js +1 -1
  105. package/dist/s-file-dropzone/s-file-dropzone.d.ts +49 -26
  106. package/dist/s-file-dropzone/s-file-dropzone.js +219 -2
  107. package/dist/s-file-icon/index.d.ts +1 -0
  108. package/dist/s-file-icon/s-file-icon.d.ts +3 -5
  109. package/dist/s-file-icon/s-file-icon.js +118 -98
  110. package/dist/s-flex-box/index.d.ts +2 -1
  111. package/dist/s-flex-box/s-flex-box.d.ts +12 -14
  112. package/dist/s-flex-box/s-flex-box.js +19 -19
  113. package/dist/s-form/index.d.ts +2 -1
  114. package/dist/s-form/s-form.d.ts +33 -18
  115. package/dist/s-form/s-form.js +50 -21
  116. package/dist/s-gallery/gallery-grid-item.d.ts +3 -1
  117. package/dist/s-gallery/gallery-grid-item.js +128 -99
  118. package/dist/s-gallery/gallery-layout.d.ts +1 -1
  119. package/dist/s-gallery/gallery-media-item.d.ts +3 -3
  120. package/dist/s-gallery/gallery-media-item.js +45 -50
  121. package/dist/s-gallery/index.d.ts +2 -1
  122. package/dist/s-gallery/s-gallery.d.ts +14 -3
  123. package/dist/s-gallery/s-gallery.js +70 -51
  124. package/dist/s-glow-button/index.d.ts +2 -1
  125. package/dist/s-glow-button/index.js +1 -1
  126. package/dist/s-glow-button/s-glow-button.d.ts +14 -9
  127. package/dist/s-glow-button/s-glow-button.js +46 -25
  128. package/dist/s-gradient-icon/index.d.ts +2 -1
  129. package/dist/s-gradient-icon/s-gradient-icon.d.ts +17 -9
  130. package/dist/s-gradient-icon/s-gradient-icon.js +81 -69
  131. package/dist/s-icon-button/index.d.ts +2 -1
  132. package/dist/s-icon-button/s-icon-button.d.ts +31 -13
  133. package/dist/s-icon-button/s-icon-button.js +47 -9
  134. package/dist/s-image-comparison/index.d.ts +2 -1
  135. package/dist/s-image-comparison/index.js +1 -1
  136. package/dist/s-image-comparison/s-image-comparison.d.ts +13 -3
  137. package/dist/s-image-comparison/s-image-comparison.js +195 -98
  138. package/dist/{s-image-modal → s-image-viewer}/default-media-item.d.ts +0 -1
  139. package/dist/s-image-viewer/default-media-item.js +30 -0
  140. package/dist/s-image-viewer/image-viewer-thumbnail-dock.d.ts +12 -0
  141. package/dist/s-image-viewer/image-viewer-thumbnail-dock.js +102 -0
  142. package/dist/s-image-viewer/index.d.ts +4 -0
  143. package/dist/s-image-viewer/index.js +3 -0
  144. package/dist/s-image-viewer/s-image-viewer.d.ts +4 -0
  145. package/dist/s-image-viewer/s-image-viewer.js +266 -0
  146. package/dist/{s-image-modal → s-image-viewer}/types.d.ts +27 -10
  147. package/dist/s-image-viewer/use-image-viewer-navigation.d.ts +29 -0
  148. package/dist/s-image-viewer/use-image-viewer-navigation.js +75 -0
  149. package/dist/s-label/index.d.ts +2 -1
  150. package/dist/s-label/s-label.d.ts +35 -18
  151. package/dist/s-label/s-label.js +64 -23
  152. package/dist/s-language-switcher/index.d.ts +2 -1
  153. package/dist/s-language-switcher/index.js +2 -2
  154. package/dist/s-language-switcher/s-language-switcher.d.ts +25 -18
  155. package/dist/s-language-switcher/s-language-switcher.js +150 -2
  156. package/dist/s-lazy-image/index.d.ts +2 -1
  157. package/dist/s-lazy-image/index.js +1 -1
  158. package/dist/s-lazy-image/s-lazy-image.d.ts +45 -24
  159. package/dist/s-lazy-image/s-lazy-image.js +77 -40
  160. package/dist/s-link/s-link.d.ts +4 -33
  161. package/dist/s-link/s-link.js +3 -35
  162. package/dist/s-localization-provider/index.js +1 -1
  163. package/dist/s-localization-provider/s-localization-provider.d.ts +3 -5
  164. package/dist/s-localization-provider/s-localization-provider.js +12 -2
  165. package/dist/s-moving-border/index.d.ts +2 -1
  166. package/dist/s-moving-border/s-moving-border.d.ts +8 -2
  167. package/dist/s-moving-border/s-moving-border.js +100 -71
  168. package/dist/s-nav-item/index.d.ts +2 -1
  169. package/dist/s-nav-item/s-nav-item.d.ts +39 -31
  170. package/dist/s-nav-item/s-nav-item.js +65 -66
  171. package/dist/s-nav-items/index.d.ts +2 -1
  172. package/dist/s-nav-items/s-nav-items.d.ts +13 -10
  173. package/dist/s-nav-items/s-nav-items.js +95 -79
  174. package/dist/s-no-ssr/s-no-ssr.d.ts +4 -16
  175. package/dist/s-no-ssr/s-no-ssr.js +3 -13
  176. package/dist/s-overlay-scrollbar/index.d.ts +3 -1
  177. package/dist/s-overlay-scrollbar/s-overlay-scrollbar.d.ts +10 -8
  178. package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +28 -16
  179. package/dist/s-pagination/index.d.ts +2 -1
  180. package/dist/s-pagination/s-pagination.d.ts +14 -49
  181. package/dist/s-pagination/s-pagination.js +70 -35
  182. package/dist/s-pagination/types.d.ts +23 -1
  183. package/dist/s-pagination/types.js +8 -4
  184. package/dist/s-pixel-reveal/index.d.ts +2 -1
  185. package/dist/s-pixel-reveal/s-pixel-reveal.d.ts +10 -2
  186. package/dist/s-pixel-reveal/s-pixel-reveal.js +124 -86
  187. package/dist/s-quantity-input/index.d.ts +3 -0
  188. package/dist/s-quantity-input/index.js +2 -0
  189. package/dist/s-quantity-input/s-quantity-input.d.ts +114 -0
  190. package/dist/s-quantity-input/s-quantity-input.js +246 -0
  191. package/dist/s-radial-pulse-animate/index.d.ts +2 -1
  192. package/dist/s-radial-pulse-animate/s-radial-pulse-animate.d.ts +7 -7
  193. package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +50 -52
  194. package/dist/s-rating/s-rating.d.ts +3 -5
  195. package/dist/s-rating/s-rating.js +3 -9
  196. package/dist/s-review/index.d.ts +2 -1
  197. package/dist/s-review/index.js +1 -1
  198. package/dist/s-review/s-review.d.ts +25 -10
  199. package/dist/s-review/s-review.js +272 -2
  200. package/dist/s-scroll-reveal/index.d.ts +3 -1
  201. package/dist/s-scroll-reveal/s-scroll-reveal.d.ts +14 -6
  202. package/dist/s-scroll-reveal/s-scroll-reveal.js +78 -60
  203. package/dist/s-scroll-to-top/index.d.ts +2 -1
  204. package/dist/s-scroll-to-top/s-scroll-to-top.d.ts +15 -16
  205. package/dist/s-scroll-to-top/s-scroll-to-top.js +55 -28
  206. package/dist/s-scroll-velocity/index.d.ts +2 -1
  207. package/dist/s-scroll-velocity/s-scroll-velocity.d.ts +11 -7
  208. package/dist/s-scroll-velocity/s-scroll-velocity.js +27 -10
  209. package/dist/s-scroll-velocity/scroll-velocity-container.d.ts +2 -2
  210. package/dist/s-scroll-velocity/scroll-velocity-container.js +18 -18
  211. package/dist/s-scroll-velocity/scroll-velocity-row.d.ts +5 -3
  212. package/dist/s-scroll-velocity/scroll-velocity-row.js +81 -67
  213. package/dist/s-select/index.d.ts +2 -1
  214. package/dist/s-select/index.js +1 -1
  215. package/dist/s-select/s-select.d.ts +25 -11
  216. package/dist/s-select/s-select.js +201 -2
  217. package/dist/s-select-list/index.d.ts +2 -1
  218. package/dist/s-select-list/s-select-list.d.ts +57 -18
  219. package/dist/s-select-list/s-select-list.js +156 -32
  220. package/dist/s-skeleton/index.d.ts +2 -1
  221. package/dist/s-skeleton/s-skeleton.d.ts +21 -22
  222. package/dist/s-skeleton/s-skeleton.js +40 -39
  223. package/dist/s-snackbar-message/index.d.ts +2 -1
  224. package/dist/s-snackbar-message/s-snackbar-message.d.ts +40 -51
  225. package/dist/s-snackbar-message/s-snackbar-message.js +81 -44
  226. package/dist/s-spotlight-cursor/index.d.ts +2 -1
  227. package/dist/s-spotlight-cursor/s-spotlight-cursor.d.ts +23 -20
  228. package/dist/s-spotlight-cursor/s-spotlight-cursor.js +83 -58
  229. package/dist/s-status-illustration/index.d.ts +3 -0
  230. package/dist/s-status-illustration/index.js +2 -0
  231. package/dist/s-status-illustration/s-status-illustration.d.ts +57 -0
  232. package/dist/s-status-illustration/s-status-illustration.js +429 -0
  233. package/dist/s-stripe/index.d.ts +6 -1
  234. package/dist/s-stripe/s-stripe-cvc.d.ts +3 -1
  235. package/dist/s-stripe/s-stripe-expiry.d.ts +3 -1
  236. package/dist/s-stripe/s-stripe-number.d.ts +3 -1
  237. package/dist/s-stripe/s-stripe.d.ts +10 -3
  238. package/dist/s-stripe/s-stripe.js +53 -27
  239. package/dist/s-stripe/stripe-input.js +48 -20
  240. package/dist/s-switch/index.d.ts +2 -1
  241. package/dist/s-switch/s-switch.d.ts +33 -11
  242. package/dist/s-switch/s-switch.js +44 -34
  243. package/dist/s-tabs/index.d.ts +5 -3
  244. package/dist/s-tabs/index.js +5 -4
  245. package/dist/s-tabs/s-tab-panel.d.ts +12 -10
  246. package/dist/s-tabs/s-tab-panel.js +26 -19
  247. package/dist/s-tabs/s-tab.d.ts +3 -2
  248. package/dist/s-tabs/s-tab.js +3 -9
  249. package/dist/s-tabs/s-tabs.d.ts +46 -32
  250. package/dist/s-tabs/s-tabs.js +76 -37
  251. package/dist/s-tabs/tab-ids.d.ts +3 -0
  252. package/dist/s-tabs/tab-ids.js +9 -0
  253. package/dist/s-text-editor/index.d.ts +4 -2
  254. package/dist/s-text-editor/index.js +1 -1
  255. package/dist/s-text-editor/s-text-editor-toolbar.d.ts +9 -2
  256. package/dist/s-text-editor/s-text-editor-toolbar.js +216 -2
  257. package/dist/s-text-editor/s-text-editor.d.ts +7 -2
  258. package/dist/s-text-editor/s-text-editor.js +62 -39
  259. package/dist/s-text-field/index.d.ts +2 -1
  260. package/dist/s-text-field/index.js +1 -1
  261. package/dist/s-text-field/s-text-field.d.ts +6 -11
  262. package/dist/s-text-field/s-text-field.js +52 -2
  263. package/dist/s-text-shimmer/index.d.ts +2 -1
  264. package/dist/s-text-shimmer/s-text-shimmer.d.ts +16 -2
  265. package/dist/s-text-shimmer/s-text-shimmer.js +48 -25
  266. package/dist/s-text-truncation/index.d.ts +2 -1
  267. package/dist/s-text-truncation/s-text-truncation.d.ts +38 -14
  268. package/dist/s-text-truncation/s-text-truncation.js +105 -58
  269. package/dist/s-theme-demo/index.d.ts +2 -1
  270. package/dist/s-theme-demo/index.js +1 -1
  271. package/dist/s-theme-demo/s-theme-demo.d.ts +2 -12
  272. package/dist/s-theme-demo/s-theme-demo.js +77 -2
  273. package/dist/s-theme-demo/theme-demo-color-palette-section.d.ts +5 -0
  274. package/dist/s-theme-demo/theme-demo-color-palette-section.js +185 -0
  275. package/dist/s-theme-demo/theme-demo-color-ramps-section.d.ts +5 -0
  276. package/dist/s-theme-demo/theme-demo-color-ramps-section.js +125 -0
  277. package/dist/s-theme-demo/theme-demo-components-section.d.ts +2 -0
  278. package/dist/s-theme-demo/theme-demo-components-section.js +265 -0
  279. package/dist/s-theme-demo/theme-demo-data.d.ts +7 -0
  280. package/dist/s-theme-demo/theme-demo-data.js +45 -0
  281. package/dist/s-theme-demo/theme-demo-interactive-section.d.ts +2 -0
  282. package/dist/s-theme-demo/theme-demo-interactive-section.js +95 -0
  283. package/dist/s-theme-demo/theme-demo-shadow-section.d.ts +5 -0
  284. package/dist/s-theme-demo/theme-demo-shadow-section.js +52 -0
  285. package/dist/s-theme-demo/theme-demo-typography-section.d.ts +5 -0
  286. package/dist/s-theme-demo/theme-demo-typography-section.js +129 -0
  287. package/dist/s-theme-demo/types.d.ts +17 -0
  288. package/dist/s-theme-demo/types.js +0 -0
  289. package/dist/s-theme-demo/utils.d.ts +2 -0
  290. package/dist/s-theme-demo/utils.js +9 -0
  291. package/dist/s-theme-provider/index.d.ts +1 -0
  292. package/dist/s-theme-provider/s-theme-provider.js +30 -31
  293. package/dist/s-theme-switch/index.d.ts +2 -1
  294. package/dist/s-theme-switch/index.js +1 -1
  295. package/dist/s-theme-switch/s-theme-switch.d.ts +6 -4
  296. package/dist/s-theme-switch/s-theme-switch.js +60 -2
  297. package/dist/s-tip/index.d.ts +2 -1
  298. package/dist/s-tip/index.js +1 -1
  299. package/dist/s-tip/s-tip.d.ts +29 -11
  300. package/dist/s-tip/s-tip.js +61 -2
  301. package/dist/s-toggle-button/index.d.ts +2 -0
  302. package/dist/s-toggle-button/index.js +2 -0
  303. package/dist/s-toggle-button/s-toggle-button.d.ts +6 -0
  304. package/dist/s-toggle-button/s-toggle-button.js +5 -0
  305. package/dist/s-tool-bar/index.d.ts +2 -1
  306. package/dist/s-tool-bar/s-tool-bar.d.ts +2 -5
  307. package/dist/s-tool-bar/s-tool-bar.js +101 -72
  308. package/dist/s-tool-bar/tool-bar-action-buttons.d.ts +3 -3
  309. package/dist/s-tool-bar/tool-bar-action-buttons.js +55 -2
  310. package/dist/s-tool-bar/tool-bar-image-input.d.ts +2 -2
  311. package/dist/s-tool-bar/tool-bar-image-input.js +148 -2
  312. package/dist/s-tool-bar/tool-bar-inputs.js +139 -112
  313. package/dist/s-tool-bar/types.d.ts +45 -35
  314. package/dist/s-tool-bar/utils.d.ts +1 -0
  315. package/dist/s-tool-bar/utils.js +10 -7
  316. package/dist/s-tool-item/index.d.ts +2 -1
  317. package/dist/s-tool-item/s-tool-item.d.ts +35 -30
  318. package/dist/s-tool-item/s-tool-item.js +111 -56
  319. package/dist/s-two-pane-layout/index.d.ts +3 -1
  320. package/dist/s-two-pane-layout/s-two-pane-layout.d.ts +56 -50
  321. package/dist/s-two-pane-layout/s-two-pane-layout.js +154 -85
  322. package/dist/s-typewriter-text/index.d.ts +2 -1
  323. package/dist/s-typewriter-text/s-typewriter-text.d.ts +16 -5
  324. package/dist/s-typewriter-text/s-typewriter-text.js +50 -27
  325. package/dist/s-zoom-image/index.d.ts +2 -1
  326. package/dist/s-zoom-image/s-zoom-image.d.ts +14 -5
  327. package/dist/s-zoom-image/s-zoom-image.js +65 -44
  328. package/dist/theme/component-augmentation.d.ts +265 -0
  329. package/dist/theme/component-augmentation.js +0 -0
  330. package/dist/theme/components/accordion-summary.d.ts +41 -38
  331. package/dist/theme/components/accordion-summary.js +7 -7
  332. package/dist/theme/components/accordion.d.ts +21 -13
  333. package/dist/theme/components/accordion.js +15 -12
  334. package/dist/theme/components/action-styles.d.ts +1075 -0
  335. package/dist/theme/components/action-styles.js +71 -0
  336. package/dist/theme/components/alert.d.ts +169 -140
  337. package/dist/theme/components/alert.js +15 -4
  338. package/dist/theme/components/app-bar.d.ts +2 -2
  339. package/dist/theme/components/autocomplete.js +43 -2
  340. package/dist/theme/components/avatar.js +9 -2
  341. package/dist/theme/components/backdrop.js +1 -1
  342. package/dist/theme/components/button-base.d.ts +0 -5
  343. package/dist/theme/components/button-base.js +1 -10
  344. package/dist/theme/components/button.d.ts +111 -5275
  345. package/dist/theme/components/button.js +58 -74
  346. package/dist/theme/components/card.d.ts +69 -69
  347. package/dist/theme/components/card.js +11 -10
  348. package/dist/theme/components/checkbox.d.ts +34 -34
  349. package/dist/theme/components/checkbox.js +90 -2
  350. package/dist/theme/components/chip.d.ts +1 -7
  351. package/dist/theme/components/chip.js +91 -67
  352. package/dist/theme/components/components.js +22 -22
  353. package/dist/theme/components/date-calendar.js +1 -0
  354. package/dist/theme/components/day-calendar.js +1 -0
  355. package/dist/theme/components/dialog-title.d.ts +2 -2
  356. package/dist/theme/components/field-label-styles.d.ts +9 -0
  357. package/dist/theme/components/field-label-styles.js +19 -0
  358. package/dist/theme/components/form-control.d.ts +1 -1
  359. package/dist/theme/components/form-control.js +1 -1
  360. package/dist/theme/components/form-label.d.ts +2 -2
  361. package/dist/theme/components/form-label.js +1 -1
  362. package/dist/theme/components/icon-button.d.ts +85 -5228
  363. package/dist/theme/components/icon-button.js +27 -47
  364. package/dist/theme/components/input-adornment.d.ts +2 -2
  365. package/dist/theme/components/linear-progress.d.ts +35 -35
  366. package/dist/theme/components/linear-progress.js +5 -6
  367. package/dist/theme/components/link.d.ts +2 -2
  368. package/dist/theme/components/link.js +7 -9
  369. package/dist/theme/components/list-item-button.d.ts +120 -46
  370. package/dist/theme/components/list-item-button.js +27 -20
  371. package/dist/theme/components/list-item.d.ts +61 -24
  372. package/dist/theme/components/list-item.js +7 -7
  373. package/dist/theme/components/list-subheader.d.ts +2 -2
  374. package/dist/theme/components/month-calendar.d.ts +1049 -6
  375. package/dist/theme/components/month-calendar.js +25 -15
  376. package/dist/theme/components/multi-section-digital-clock-section.d.ts +2 -0
  377. package/dist/theme/components/multi-section-digital-clock-section.js +16 -17
  378. package/dist/theme/components/outlined-input.d.ts +42 -8
  379. package/dist/theme/components/outlined-input.js +41 -30
  380. package/dist/theme/components/pagination-item.d.ts +1038 -1043
  381. package/dist/theme/components/pagination-item.js +21 -53
  382. package/dist/theme/components/pagination.js +2 -2
  383. package/dist/theme/components/picker-day.d.ts +1034 -5
  384. package/dist/theme/components/picker-day.js +12 -13
  385. package/dist/theme/components/pickers-arrow-switcher.js +1 -0
  386. package/dist/theme/components/pickers-calendar-header.d.ts +51 -19
  387. package/dist/theme/components/pickers-calendar-header.js +49 -25
  388. package/dist/theme/components/rating.d.ts +12 -0
  389. package/dist/theme/components/rating.js +4 -1
  390. package/dist/theme/components/select.js +6 -6
  391. package/dist/theme/components/slider.d.ts +4 -4
  392. package/dist/theme/components/step-icon.d.ts +34 -34
  393. package/dist/theme/components/step-icon.js +9 -10
  394. package/dist/theme/components/step-label.d.ts +36 -36
  395. package/dist/theme/components/switch.d.ts +36 -36
  396. package/dist/theme/components/switch.js +48 -2
  397. package/dist/theme/components/tab.d.ts +14 -1015
  398. package/dist/theme/components/tab.js +18 -17
  399. package/dist/theme/components/table-pagination.js +1 -1
  400. package/dist/theme/components/tabs.d.ts +20 -1030
  401. package/dist/theme/components/tabs.js +14 -14
  402. package/dist/theme/components/toggle-button-group.d.ts +1 -1013
  403. package/dist/theme/components/toggle-button-group.js +3 -1
  404. package/dist/theme/components/toggle-button.d.ts +1135 -1014
  405. package/dist/theme/components/toggle-button.js +93 -2
  406. package/dist/theme/components/year-calendar.d.ts +1051 -6
  407. package/dist/theme/components/year-calendar.js +39 -29
  408. package/dist/theme/optional-component-augmentations/s-carousel.d.ts +14 -0
  409. package/dist/theme/optional-component-augmentations/s-carousel.js +0 -0
  410. package/dist/theme/optional-component-augmentations/s-code-block.d.ts +14 -0
  411. package/dist/theme/optional-component-augmentations/s-code-block.js +0 -0
  412. package/dist/theme/optional-component-augmentations/s-date-picker.d.ts +14 -0
  413. package/dist/theme/optional-component-augmentations/s-date-picker.js +0 -0
  414. package/dist/theme/optional-component-augmentations/s-datetime-picker.d.ts +14 -0
  415. package/dist/theme/optional-component-augmentations/s-datetime-picker.js +0 -0
  416. package/dist/theme/optional-component-augmentations/s-file-dropzone.d.ts +14 -0
  417. package/dist/theme/optional-component-augmentations/s-file-dropzone.js +0 -0
  418. package/dist/theme/optional-component-augmentations/s-overlay-scrollbar.d.ts +14 -0
  419. package/dist/theme/optional-component-augmentations/s-overlay-scrollbar.js +0 -0
  420. package/dist/theme/optional-component-augmentations/s-scroll-reveal.d.ts +14 -0
  421. package/dist/theme/optional-component-augmentations/s-scroll-reveal.js +0 -0
  422. package/dist/theme/optional-component-augmentations/s-stripe.d.ts +14 -0
  423. package/dist/theme/optional-component-augmentations/s-stripe.js +0 -0
  424. package/dist/theme/optional-component-augmentations/s-text-editor.d.ts +18 -0
  425. package/dist/theme/optional-component-augmentations/s-text-editor.js +0 -0
  426. package/dist/theme/optional-component-augmentations/s-two-pane-layout.d.ts +14 -0
  427. package/dist/theme/optional-component-augmentations/s-two-pane-layout.js +0 -0
  428. package/dist/theme/theme-primitives.d.ts +51 -8
  429. package/dist/theme/theme-primitives.js +3 -2
  430. package/dist/theme-primitives-CRfnMsNy.js +254 -0
  431. package/dist/utils/canvas-color.d.ts +7 -0
  432. package/dist/utils/canvas-color.js +62 -0
  433. package/dist/utils/dayjs.js +9 -146
  434. package/dist/utils/index.d.ts +4 -0
  435. package/dist/utils/index.js +6 -3
  436. package/dist/utils/slots.d.ts +12 -0
  437. package/dist/utils/slots.js +6 -0
  438. package/dist/utils/sx.d.ts +11 -0
  439. package/dist/utils/sx.js +4 -0
  440. package/package.json +1 -1
  441. package/dist/ArrowUpward-CNiENJp2.js +0 -6
  442. package/dist/Box-BlmynALm.js +0 -45
  443. package/dist/ButtonBase-BDefit5I.js +0 -720
  444. package/dist/ChevronRight-gZJ3kc6N.js +0 -6
  445. package/dist/Close-CJu3iF1p.js +0 -6
  446. package/dist/Collapse-JUd84Z9O.js +0 -261
  447. package/dist/ContentCopy-BMQ2JTA0.js +0 -6
  448. package/dist/Download-SNal6U7j.js +0 -6
  449. package/dist/ExpandMore-DIsT5FOp.js +0 -6
  450. package/dist/Favorite-CbvuQfe4.js +0 -6
  451. package/dist/FormControl-DsRIRfTs.js +0 -686
  452. package/dist/InfoOutlined-BCzG-5py.js +0 -6
  453. package/dist/MenuItem-IOMcBScJ.js +0 -220
  454. package/dist/MenuList-vtqACjea.js +0 -403
  455. package/dist/Modal-CLdC2-Th.js +0 -1027
  456. package/dist/Paper-CPC6sMxx.js +0 -133
  457. package/dist/Popover-ZneFWo2r.js +0 -333
  458. package/dist/Stack-BQkLmLFp.js +0 -157
  459. package/dist/Typography-CZ_MYa-E.js +0 -166
  460. package/dist/UnfoldMoreRounded-tvqQS6eb.js +0 -6
  461. package/dist/assets/stripe-input.css +0 -1
  462. package/dist/autocomplete-Dd4zjpaF.js +0 -43
  463. package/dist/avatar-DFQ5F7pY.js +0 -10
  464. package/dist/buttonBaseClasses-BVDyR-hz.js +0 -13
  465. package/dist/checkbox-DC-OoGvh.js +0 -74
  466. package/dist/checkboxClasses-DANc9lnq.js +0 -18
  467. package/dist/chunk-C_CI6nMA.js +0 -13
  468. package/dist/clsx-Bv8WXdlr.js +0 -34
  469. package/dist/createSimplePaletteValueFilter-5v48HHyU.js +0 -14
  470. package/dist/createSvgIcon-HW-tbFcL.js +0 -153
  471. package/dist/createTheme-Bnw5w28O.js +0 -2506
  472. package/dist/defaultTheme-Bi3OTfLN.js +0 -5
  473. package/dist/extends-DM-C9PwL.js +0 -12
  474. package/dist/formLabelClasses-LXZqWZfM.js +0 -18
  475. package/dist/generateUtilityClass-tRYNDrlH.js +0 -34
  476. package/dist/generateUtilityClasses-XrPHiTcM.js +0 -10
  477. package/dist/hooks/use-is-passed-position.d.ts +0 -1
  478. package/dist/hooks/use-is-passed-position.js +0 -21
  479. package/dist/iconButtonClasses-LyjwljJq.js +0 -27
  480. package/dist/inputAdornmentClasses-ZoGTcUz5.js +0 -19
  481. package/dist/memoTheme-QMocAblm.js +0 -150
  482. package/dist/mergeSlotProps-slENzJO5.js +0 -45
  483. package/dist/monthCalendarClasses-BLfBep-t.js +0 -14
  484. package/dist/objectWithoutPropertiesLoose-kj3TmhoA.js +0 -12
  485. package/dist/outlinedInputClasses-DPwt_pSZ.js +0 -38
  486. package/dist/resolveProps-DrnBChYC.js +0 -30
  487. package/dist/s-accordion-xPDelTvP.js +0 -453
  488. package/dist/s-carousel-CvmWl6Sc.js +0 -1324
  489. package/dist/s-chat-input-BHMymKij.js +0 -352
  490. package/dist/s-chat-message-C-d9amiC.js +0 -270
  491. package/dist/s-chips-CAC_vVd0.js +0 -99
  492. package/dist/s-code-block-DEojINTt.js +0 -630
  493. package/dist/s-comment-message-Dum0P6de.js +0 -169
  494. package/dist/s-data-table-DfGYIIvn.js +0 -951
  495. package/dist/s-date-picker-C06rlE6_.js +0 -640
  496. package/dist/s-datetime-picker-DnIK-QnQ.js +0 -3837
  497. package/dist/s-error/index.d.ts +0 -1
  498. package/dist/s-error/index.js +0 -2
  499. package/dist/s-error/s-error.d.ts +0 -6
  500. package/dist/s-error/s-error.js +0 -33
  501. package/dist/s-error-layout/index.d.ts +0 -2
  502. package/dist/s-error-layout/index.js +0 -2
  503. package/dist/s-error-layout/s-error-layout.d.ts +0 -58
  504. package/dist/s-error-layout/s-error-layout.js +0 -81
  505. package/dist/s-file-dropzone-C4_hCsN8.js +0 -139
  506. package/dist/s-image-modal/default-media-item.js +0 -34
  507. package/dist/s-image-modal/image-modal-thumbnail-dock.d.ts +0 -11
  508. package/dist/s-image-modal/image-modal-thumbnail-dock.js +0 -102
  509. package/dist/s-image-modal/index.d.ts +0 -3
  510. package/dist/s-image-modal/index.js +0 -3
  511. package/dist/s-image-modal/s-image-modal.d.ts +0 -4
  512. package/dist/s-image-modal/s-image-modal.js +0 -2
  513. package/dist/s-image-modal/use-image-modal-navigation.d.ts +0 -29
  514. package/dist/s-image-modal/use-image-modal-navigation.js +0 -57
  515. package/dist/s-image-modal-D-Jh-5b3.js +0 -243
  516. package/dist/s-item-not-found/index.d.ts +0 -2
  517. package/dist/s-item-not-found/index.js +0 -2
  518. package/dist/s-item-not-found/s-item-not-found.d.ts +0 -20
  519. package/dist/s-item-not-found/s-item-not-found.js +0 -243
  520. package/dist/s-language-switcher-B96dUknj.js +0 -192
  521. package/dist/s-localization-provider-l5J7myJJ.js +0 -519
  522. package/dist/s-review-CvTVBxTZ.js +0 -223
  523. package/dist/s-select-HMWY7frm.js +0 -149
  524. package/dist/s-text-editor-toolbar-ChtNCg2A.js +0 -2253
  525. package/dist/s-text-field-DD6nnwwU.js +0 -42
  526. package/dist/s-theme-demo-Bnv7lPIh.js +0 -867
  527. package/dist/s-theme-switch-DzXoVmQH.js +0 -37
  528. package/dist/s-tip-BOGEH1v8.js +0 -34
  529. package/dist/selectClasses-C-QpiLPi.js +0 -22
  530. package/dist/styled-BTDmdi4c.js +0 -164
  531. package/dist/styled-engine-DOxAQ3qw.js +0 -190
  532. package/dist/svgIconClasses-BtHvkhy5.js +0 -20
  533. package/dist/switch-BSg1TGWH.js +0 -62
  534. package/dist/tabClasses-CmFw6sbs.js +0 -20
  535. package/dist/theme-primitives-CiQYd9Cc.js +0 -431
  536. package/dist/toggle-button-TmtJ4nSp.js +0 -26
  537. package/dist/toggle-button-group-BCkdd3Jj.js +0 -26
  538. package/dist/tool-bar-action-buttons-CSXNDen6.js +0 -50
  539. package/dist/tool-bar-image-input-IdA6l71Y.js +0 -138
  540. package/dist/typographyClasses-CiDYRanL.js +0 -31
  541. package/dist/useControlled-BtZNCHV0.js +0 -5
  542. package/dist/useControlled-DuSwFVhD.js +0 -29
  543. package/dist/useEnhancedEffect-Dsu5K7-Z.js +0 -5
  544. package/dist/useForkRef-yOYCJHzF.js +0 -29
  545. package/dist/useFormControl-CUs308br.js +0 -18
  546. package/dist/useMobilePicker-CQA6fYLQ.js +0 -9864
  547. package/dist/useSlot-IwEDsR9t.js +0 -171
  548. package/dist/useThemeProps-D4jtjo2I.js +0 -19
  549. package/dist/utils-CU6O7jrX.js +0 -214
  550. package/dist/warning-CFMmJJnf.js +0 -111
  551. package/dist/yearCalendarClasses-DypEe_Vn.js +0 -14
  552. /package/dist/{s-image-modal → s-image-viewer}/types.js +0 -0
  553. /package/dist/{utils-B5Rl6Zwv.js → utils-CMeAWSRO.js} +0 -0
@@ -1,8 +1,9 @@
1
1
  import { default as React } from 'react';
2
+ import { BoxProps } from '@mui/material';
2
3
  /**
3
4
  * Props interface for SRadialPulseAnimate component
4
5
  */
5
- export interface SRadialPulseAnimateProps {
6
+ export interface SRadialPulseAnimateProps extends Omit<BoxProps, 'children' | 'component' | 'height' | 'width'> {
6
7
  /** Width of the animation container in pixels */
7
8
  width?: number;
8
9
  /** Height of the animation container in pixels */
@@ -11,11 +12,10 @@ export interface SRadialPulseAnimateProps {
11
12
  className?: string;
12
13
  /** Custom text to display in the center of the animation */
13
14
  text?: string;
14
- /** Size range for floating particles in pixels */
15
- particleSize?: {
16
- min: number;
17
- max: number;
18
- };
19
15
  }
20
- export declare const SRadialPulseAnimate: React.FC<SRadialPulseAnimateProps>;
16
+ export interface SRadialPulseAnimateOwnerState extends SRadialPulseAnimateProps {
17
+ height: number;
18
+ width: number;
19
+ }
20
+ export declare const SRadialPulseAnimate: React.ForwardRefExoticComponent<Omit<SRadialPulseAnimateProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
21
21
  export default SRadialPulseAnimate;
@@ -1,9 +1,10 @@
1
- import { STextShimmer as e } from "../s-text-shimmer/s-text-shimmer.js";
2
- import { useEffect as t, useRef as n } from "react";
1
+ import { toSxArray as e } from "../utils/sx.js";
2
+ import { STextShimmer as t } from "../s-text-shimmer/s-text-shimmer.js";
3
+ import n from "react";
3
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
- import { Box as a, keyframes as o, styled as s } from "@mui/material";
5
+ import { Box as a, keyframes as o, styled as s, useThemeProps as c } from "@mui/material";
5
6
  //#region lib/s-radial-pulse-animate/s-radial-pulse-animate.tsx
6
- var c = o`
7
+ var l = o`
7
8
  0% {
8
9
  width: 20%;
9
10
  height: 20%;
@@ -14,7 +15,10 @@ var c = o`
14
15
  height: 100%;
15
16
  opacity: 0;
16
17
  }
17
- `, l = s(a)(({ theme: e }) => ({
18
+ `, u = s(a, {
19
+ name: "SRadialPulseAnimate",
20
+ slot: "Root"
21
+ })(({ theme: e }) => ({
18
22
  position: "relative",
19
23
  display: "flex",
20
24
  justifyContent: "center",
@@ -22,10 +26,17 @@ var c = o`
22
26
  borderRadius: e.shape.borderRadius,
23
27
  border: "1px solid",
24
28
  borderColor: (e.vars ?? e).palette.divider
25
- })), u = s(a)(() => ({
29
+ })), d = s(a)(() => ({
26
30
  position: "absolute",
27
31
  pointerEvents: "none"
28
- })), d = s(a)(({ theme: e }) => ({
32
+ })), f = s(a, {
33
+ name: "SRadialPulseAnimate",
34
+ slot: "Label"
35
+ })({
36
+ display: "inline-flex",
37
+ position: "relative",
38
+ zIndex: 1
39
+ }), p = s(a)(({ theme: e }) => ({
29
40
  position: "absolute",
30
41
  top: "50%",
31
42
  left: "50%",
@@ -34,57 +45,44 @@ var c = o`
34
45
  height: "60px",
35
46
  background: (e.vars ?? e).palette.ui.pulse.radialGradient,
36
47
  borderRadius: "50%",
37
- animation: `${c} 3s ease-out infinite`,
48
+ animation: `${l} 3s ease-out infinite`,
38
49
  "&:nth-of-type(2)": { animationDelay: "1s" },
39
50
  "&:nth-of-type(3)": { animationDelay: "2s" },
40
51
  "@media (prefers-reduced-motion: reduce)": { animation: "none !important" }
41
- })), f = () => {
42
- let e = "s-radial-pulse-particles";
43
- if (document.getElementById(e)) return;
44
- let t = document.createElement("style");
45
- t.id = e, t.textContent = "\n .s-radial-pulse-particle {\n position: absolute;\n background: var(--s-palette-text-primary);\n border-radius: 50%;\n animation: s-radial-pulse-float 4s ease-in-out infinite;\n }\n \n .s-radial-pulse-particle:nth-child(odd) {\n animation-direction: reverse;\n }\n \n @keyframes s-radial-pulse-float {\n 0%, 100% {\n transform: translateY(0px) rotate(0deg);\n opacity: 0.5;\n }\n 50% {\n transform: translateY(-20px) rotate(180deg);\n opacity: 1;\n }\n }\n \n @media (prefers-reduced-motion: reduce) {\n .s-radial-pulse-particle {\n animation: none !important;\n }\n }\n ", document.head.appendChild(t);
46
- }, p = ({ width: a = 300, height: o = 300, className: s, text: c = "Generating...", particleSize: p = {
47
- min: 2,
48
- max: 6
49
- } }) => {
50
- let m = n(null);
51
- return t(() => {
52
- f();
53
- let e = () => {
54
- if (!m.current) return;
55
- let e = m.current, t = document.createElement("div");
56
- t.className = "s-radial-pulse-particle";
57
- let n = Math.random() * (p.max - p.min) + p.min;
58
- t.style.width = `${n}px`, t.style.height = `${n}px`, t.style.left = `${Math.random() * a}px`, t.style.top = `${Math.random() * o}px`, t.style.animationDelay = `${Math.random() * 4}s`, t.style.animationDuration = `${Math.random() * 3 + 2}s`, e.appendChild(t), setTimeout(() => {
59
- t.parentNode && t.parentNode.removeChild(t);
60
- }, 6e3);
61
- }, t = setInterval(e, 500);
62
- for (let t = 0; t < 4; t++) setTimeout(e, t * 100);
63
- return () => clearInterval(t);
64
- }, [
65
- a,
66
- o,
67
- p
68
- ]), /* @__PURE__ */ i(l, {
69
- ref: m,
70
- className: s,
71
- sx: {
72
- width: a,
73
- height: o
74
- },
75
- children: [/* @__PURE__ */ i(u, {
52
+ })), m = n.forwardRef(function(n, a) {
53
+ let o = c({
54
+ props: n,
55
+ name: "SRadialPulseAnimate"
56
+ }), { height: s = 300, sx: l, text: m = "Generating...", width: h = 300, ...g } = o, _ = {
57
+ ...o,
58
+ height: s,
59
+ text: m,
60
+ width: h
61
+ };
62
+ return /* @__PURE__ */ i(u, {
63
+ ...g,
64
+ ownerState: _,
65
+ ref: a,
66
+ sx: [{
67
+ height: s,
68
+ width: h
69
+ }, ...e(l)],
70
+ children: [/* @__PURE__ */ i(d, {
76
71
  sx: {
77
- width: Math.min(a, o),
78
- height: Math.min(a, o)
72
+ width: Math.min(h, s),
73
+ height: Math.min(h, s)
79
74
  },
80
75
  children: [
81
- /* @__PURE__ */ r(d, {}),
82
- /* @__PURE__ */ r(d, {}),
83
- /* @__PURE__ */ r(d, {})
76
+ /* @__PURE__ */ r(p, {}),
77
+ /* @__PURE__ */ r(p, {}),
78
+ /* @__PURE__ */ r(p, {})
84
79
  ]
85
- }), /* @__PURE__ */ r(e, { children: c })]
80
+ }), /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(t, {
81
+ component: "span",
82
+ children: m
83
+ }) })]
86
84
  });
87
- };
88
- p.displayName = "SRadialPulseAnimate";
85
+ });
86
+ m.displayName = "SRadialPulseAnimate";
89
87
  //#endregion
90
- export { p as SRadialPulseAnimate, p as default };
88
+ export { m as SRadialPulseAnimate, m as default };
@@ -1,8 +1,6 @@
1
- import { default as React } from 'react';
2
1
  import { RatingProps } from '@mui/material';
3
- /**
4
- * Props interface for SRating component
5
- */
2
+ /** Exact MUI Rating props and ref contract. */
6
3
  export type SRatingProps = RatingProps;
7
- export declare const SRating: React.ForwardRefExoticComponent<Omit<SRatingProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ /** SoloStylist export of the unmodified MUI Rating contract. */
5
+ export declare const SRating: import('@mui/material/OverridableComponent').OverridableComponent<import('@mui/material').RatingTypeMap<{}, "span">>;
8
6
  export default SRating;
@@ -1,11 +1,5 @@
1
- import { forwardRef as e } from "react";
2
- import { jsx as t } from "react/jsx-runtime";
3
- import { Rating as n } from "@mui/material";
1
+ import { Rating as e } from "@mui/material";
4
2
  //#region lib/s-rating/s-rating.tsx
5
- var r = e((e, r) => /* @__PURE__ */ t(n, {
6
- ref: r,
7
- ...e
8
- }));
9
- r.displayName = "SRating";
3
+ var t = e;
10
4
  //#endregion
11
- export { r as SRating, r as default };
5
+ export { t as SRating, t as default };
@@ -1,2 +1,3 @@
1
1
  export { default, default as SReview } from './s-review';
2
- export type { SReviewProps } from './s-review';
2
+ export type { HelpfulVote, SReviewOwnerState, SReviewProps } from './s-review';
3
+ export type {} from '../theme/component-augmentation';
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-review-CvTVBxTZ.js";
1
+ import { SReview as e } from "./s-review.js";
2
2
  export { e as SReview, e as default };
@@ -1,18 +1,20 @@
1
1
  import { default as React } from 'react';
2
- import { SxProps } from '@mui/material';
2
+ import { BoxProps, RatingProps } from '@mui/material';
3
3
  /**
4
4
  * Props interface for SReview component
5
5
  */
6
6
  export type HelpfulVote = 'yes' | 'no' | null;
7
- export interface SReviewProps {
8
- /** Unique identifier for the review (default: Date.now()) */
9
- id?: string | number;
7
+ export interface SReviewProps extends Omit<BoxProps, 'children' | 'component'> {
8
+ /** Stable identifier used by review callbacks. */
9
+ reviewId?: string | number;
10
10
  /** Name of the reviewer */
11
11
  userName: string;
12
12
  /** URL for the user avatar image (falls back to initials if not provided) */
13
13
  userAvatar?: string;
14
14
  /** Rating value */
15
15
  rating: number;
16
+ /** Callback fired first with the MUI rating event, then the next rating value. */
17
+ onRatingChange?: RatingProps['onChange'];
16
18
  /** The review text content */
17
19
  reviewContent: string;
18
20
  /** Date and time of the review (automatically converts to relative time) */
@@ -21,12 +23,18 @@ export interface SReviewProps {
21
23
  images?: string[];
22
24
  /** Current user vote status for this review (default: null) */
23
25
  userHelpfulVote?: HelpfulVote;
24
- /** Number of "Yes" votes for helpfulness (default: 0) */
26
+ /** Initial user vote when `userHelpfulVote` is uncontrolled. */
27
+ defaultUserHelpfulVote?: HelpfulVote;
28
+ /** Controlled number of "Yes" votes for helpfulness. */
25
29
  helpfulYes?: number;
26
- /** Number of "No" votes for helpfulness (default: 0) */
30
+ /** Initial number of "Yes" votes when `helpfulYes` is uncontrolled. */
31
+ defaultHelpfulYes?: number;
32
+ /** Controlled number of "No" votes for helpfulness. */
27
33
  helpfulNo?: number;
34
+ /** Initial number of "No" votes when `helpfulNo` is uncontrolled. */
35
+ defaultHelpfulNo?: number;
28
36
  /** Callback when user votes on helpfulness (returns null when un-voting) */
29
- onHelpfulVote?: (reviewId: string | number, vote: HelpfulVote) => void;
37
+ onHelpfulVote?: (event: React.MouseEvent<HTMLButtonElement>, reviewId: string | number, vote: HelpfulVote) => void;
30
38
  /** Whether to show the helpful voting section (default: true) */
31
39
  showHelpfulSection?: boolean;
32
40
  /** Size of the avatar in pixels (default: 48) */
@@ -39,8 +47,15 @@ export interface SReviewProps {
39
47
  showDivider?: boolean;
40
48
  /** Whether to show skeleton loading state instead of content (default: false) */
41
49
  loading?: boolean;
42
- /** MUI sx prop for custom styling */
43
- sx?: SxProps;
44
50
  }
45
- export declare const SReview: React.FC<SReviewProps>;
51
+ export interface SReviewOwnerState extends SReviewProps {
52
+ helpfulNo: number;
53
+ helpfulYes: number;
54
+ loading: boolean;
55
+ readOnly: boolean;
56
+ showDivider: boolean;
57
+ showHelpfulSection: boolean;
58
+ userHelpfulVote: HelpfulVote;
59
+ }
60
+ export declare const SReview: React.ForwardRefExoticComponent<Omit<SReviewProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
46
61
  export default SReview;
@@ -1,2 +1,272 @@
1
- import { t as e } from "../s-review-CvTVBxTZ.js";
2
- export { e as SReview, e as default };
1
+ import { i as e } from "../utils-CMeAWSRO.js";
2
+ import { toSxArray as t } from "../utils/sx.js";
3
+ import { SLazyImage as n } from "../s-lazy-image/s-lazy-image.js";
4
+ import { SSkeleton as r } from "../s-skeleton/s-skeleton.js";
5
+ import { SAvatar as i } from "../s-avatar/s-avatar.js";
6
+ import { SImageViewer as a } from "../s-image-viewer/s-image-viewer.js";
7
+ import { SRating as ee } from "../s-rating/s-rating.js";
8
+ import o, { useId as s, useState as c } from "react";
9
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
10
+ import { ThumbDown as te, ThumbUp as d } from "@mui/icons-material";
11
+ import { Box as f, ButtonBase as ne, Divider as p, IconButton as m, Stack as h, Typography as g, styled as _, useTheme as re, useThemeProps as ie } from "@mui/material";
12
+ import { useControlled as v } from "@mui/material/utils";
13
+ //#region lib/s-review/s-review.tsx
14
+ var y = _(f, {
15
+ name: "SReview",
16
+ slot: "Root"
17
+ })({}), b = o.forwardRef(function(o, _) {
18
+ let b = ie({
19
+ props: o,
20
+ name: "SReview"
21
+ }), ae = re(), { reviewId: x, userName: S, userAvatar: C, rating: w, onRatingChange: oe, reviewContent: T, datetime: E, images: D, userHelpfulVote: O, defaultUserHelpfulVote: k = null, helpfulYes: A, defaultHelpfulYes: j = 0, helpfulNo: se, defaultHelpfulNo: M = 0, onHelpfulVote: ce, showHelpfulSection: N = !0, avatarSize: P = 48, maxRating: F = 5, readOnly: I = !0, showDivider: L = !0, loading: R = !1, sx: z, ...B } = b, V = s(), H = x ?? B.id ?? V, [U, W] = v({
22
+ controlled: O,
23
+ default: k,
24
+ name: "SReview",
25
+ state: "userHelpfulVote"
26
+ }), [G, le] = v({
27
+ controlled: A,
28
+ default: j,
29
+ name: "SReview",
30
+ state: "helpfulYes"
31
+ }), [K, ue] = v({
32
+ controlled: se,
33
+ default: M,
34
+ name: "SReview",
35
+ state: "helpfulNo"
36
+ }), q = {
37
+ ...b,
38
+ avatarSize: P,
39
+ defaultHelpfulNo: M,
40
+ defaultHelpfulYes: j,
41
+ defaultUserHelpfulVote: k,
42
+ helpfulNo: K,
43
+ helpfulYes: G,
44
+ maxRating: F,
45
+ loading: R,
46
+ readOnly: I,
47
+ reviewId: H,
48
+ showDivider: L,
49
+ showHelpfulSection: N,
50
+ userHelpfulVote: U
51
+ }, [de, J] = c(!1), [Y, X] = c(null), Z = (e, t) => {
52
+ let n = U === t ? null : t, r = G, i = K;
53
+ U === "yes" && (r = Math.max(0, r - 1)), U === "no" && (i = Math.max(0, i - 1)), n === "yes" && (r += 1), n === "no" && (i += 1), W(n), le(r), ue(i), ce?.(e, H, n);
54
+ }, Q = D?.map((e, t) => ({
55
+ id: `review-${H}-image-${t}`,
56
+ type: "image",
57
+ url: e,
58
+ title: `Review image ${t + 1}`,
59
+ desc: `Image ${t + 1} from ${S}'s review`
60
+ })) ?? [], fe = (e) => {
61
+ let t = Q[e];
62
+ t && (X(t), J(!0));
63
+ }, $ = () => {
64
+ J(!1), X(null);
65
+ }, pe = (e, t) => {
66
+ X(t);
67
+ }, me = e(E);
68
+ return R ? /* @__PURE__ */ u(y, {
69
+ ...B,
70
+ ref: _,
71
+ ownerState: q,
72
+ sx: [{ py: 2 }, ...t(z)],
73
+ children: [/* @__PURE__ */ u(h, {
74
+ direction: "row",
75
+ spacing: 2,
76
+ sx: { alignItems: "flex-start" },
77
+ children: [/* @__PURE__ */ l(r, {
78
+ variant: "circular",
79
+ width: P,
80
+ height: P,
81
+ sx: { flexShrink: 0 }
82
+ }), /* @__PURE__ */ u(f, {
83
+ sx: { flex: 1 },
84
+ children: [
85
+ /* @__PURE__ */ u(h, {
86
+ direction: "row",
87
+ spacing: 2,
88
+ sx: {
89
+ alignItems: "center",
90
+ mb: 1
91
+ },
92
+ children: [/* @__PURE__ */ l(r, {
93
+ width: 120,
94
+ height: 20
95
+ }), /* @__PURE__ */ l(r, {
96
+ width: 80,
97
+ height: 16
98
+ })]
99
+ }),
100
+ /* @__PURE__ */ l(f, {
101
+ sx: { mb: 1 },
102
+ children: /* @__PURE__ */ l(r, {
103
+ width: 100,
104
+ height: 20
105
+ })
106
+ }),
107
+ /* @__PURE__ */ l(r, {
108
+ height: 16,
109
+ sx: { mb: .5 }
110
+ }),
111
+ N && /* @__PURE__ */ u(h, {
112
+ direction: "row",
113
+ spacing: 1,
114
+ sx: {
115
+ display: "inline-flex",
116
+ alignItems: "center"
117
+ },
118
+ children: [
119
+ /* @__PURE__ */ l(r, {
120
+ width: 140,
121
+ height: 16,
122
+ sx: { mr: 2 }
123
+ }),
124
+ /* @__PURE__ */ l(r, { preset: "icon-button" }),
125
+ /* @__PURE__ */ l(r, {
126
+ width: 20,
127
+ height: 16
128
+ }),
129
+ /* @__PURE__ */ l(r, { preset: "icon-button" }),
130
+ /* @__PURE__ */ l(r, {
131
+ width: 20,
132
+ height: 16
133
+ })
134
+ ]
135
+ })
136
+ ]
137
+ })]
138
+ }), L && /* @__PURE__ */ l(p, { sx: { mt: 2 } })]
139
+ }) : /* @__PURE__ */ u(y, {
140
+ ...B,
141
+ ref: _,
142
+ ownerState: q,
143
+ sx: [{ py: 2 }, ...t(z)],
144
+ children: [
145
+ /* @__PURE__ */ u(h, {
146
+ direction: "row",
147
+ spacing: 2,
148
+ sx: { alignItems: "flex-start" },
149
+ children: [/* @__PURE__ */ l(i, {
150
+ src: C,
151
+ name: S,
152
+ size: P
153
+ }), /* @__PURE__ */ u(f, {
154
+ sx: { flex: 1 },
155
+ children: [
156
+ /* @__PURE__ */ l(g, {
157
+ variant: "subtitle1",
158
+ children: S
159
+ }),
160
+ /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(ee, {
161
+ value: w,
162
+ max: F,
163
+ onChange: oe,
164
+ readOnly: I
165
+ }) }),
166
+ /* @__PURE__ */ l(g, {
167
+ variant: "body1",
168
+ sx: { lineHeight: 1.6 },
169
+ children: T
170
+ }),
171
+ /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(g, {
172
+ variant: "caption",
173
+ sx: { mb: 2 },
174
+ children: me
175
+ }) }),
176
+ D && D.length > 0 && /* @__PURE__ */ l(h, {
177
+ direction: "row",
178
+ sx: {
179
+ mt: 1,
180
+ mb: 2,
181
+ flexWrap: "wrap",
182
+ gap: 1
183
+ },
184
+ children: D.map((e, t) => /* @__PURE__ */ l(ne, {
185
+ "aria-label": `Open review image ${t + 1}`,
186
+ component: "div",
187
+ onClick: () => fe(t),
188
+ sx: {
189
+ borderRadius: 1,
190
+ transition: (e) => e.transitions.create("opacity", { duration: e.transitions.duration.shorter }),
191
+ "&.Mui-focusVisible": {
192
+ outline: "2px solid",
193
+ outlineColor: "primary.main",
194
+ outlineOffset: 2
195
+ },
196
+ "@media (hover: hover) and (pointer: fine)": { "&:hover": { opacity: ae.interaction.mediaHoverOpacity } }
197
+ },
198
+ children: /* @__PURE__ */ l(n, {
199
+ src: e,
200
+ alt: `Review image ${t + 1}`,
201
+ width: 80,
202
+ height: 80,
203
+ slotProps: { image: { sx: { objectFit: "cover" } } }
204
+ })
205
+ }, `${e}-${t}`))
206
+ }),
207
+ N && /* @__PURE__ */ u(h, {
208
+ direction: "row",
209
+ spacing: 1,
210
+ sx: {
211
+ display: "inline-flex",
212
+ alignItems: "center"
213
+ },
214
+ children: [
215
+ /* @__PURE__ */ l(g, {
216
+ variant: "body2",
217
+ sx: { mr: 2 },
218
+ children: "Was this review helpful?"
219
+ }),
220
+ /* @__PURE__ */ l(m, {
221
+ "aria-label": "Mark review as helpful",
222
+ "aria-pressed": U === "yes",
223
+ onClick: (e) => Z(e, "yes"),
224
+ sx: {
225
+ color: U === "yes" ? "primary.main" : "text.secondary",
226
+ "&:hover": { backgroundColor: "action.hover" }
227
+ },
228
+ children: /* @__PURE__ */ l(d, { fontSize: "small" })
229
+ }),
230
+ /* @__PURE__ */ l(g, {
231
+ variant: "caption",
232
+ children: G
233
+ }),
234
+ /* @__PURE__ */ l(m, {
235
+ "aria-label": "Mark review as not helpful",
236
+ "aria-pressed": U === "no",
237
+ onClick: (e) => Z(e, "no"),
238
+ sx: {
239
+ color: U === "no" ? "error.main" : "text.secondary",
240
+ ml: 1,
241
+ "&:hover": { backgroundColor: "action.hover" }
242
+ },
243
+ children: /* @__PURE__ */ l(te, { fontSize: "small" })
244
+ }),
245
+ /* @__PURE__ */ l(g, {
246
+ variant: "caption",
247
+ children: K
248
+ })
249
+ ]
250
+ })
251
+ ]
252
+ })]
253
+ }),
254
+ L && /* @__PURE__ */ l(p, { sx: { mt: 2 } }),
255
+ /* @__PURE__ */ l(a, {
256
+ "aria-label": "Review media viewer",
257
+ open: de,
258
+ onClose: $,
259
+ onCloseButtonClick: $,
260
+ selectedItem: Y,
261
+ onItemChange: pe,
262
+ mediaItems: Q,
263
+ showNavigation: Q.length > 1,
264
+ showThumbnailDock: Q.length > 1,
265
+ showCounter: Q.length > 1
266
+ })
267
+ ]
268
+ });
269
+ });
270
+ b.displayName = "SReview";
271
+ //#endregion
272
+ export { b as SReview, b as default };
@@ -1,2 +1,4 @@
1
- export type { SScrollRevealProps } from './s-scroll-reveal';
1
+ export type { SScrollRevealOwnerState, SScrollRevealProps } from './s-scroll-reveal';
2
2
  export { default, default as SScrollReveal } from './s-scroll-reveal';
3
+ export type {} from '../theme/component-augmentation';
4
+ export type {} from '../theme/optional-component-augmentations/s-scroll-reveal';
@@ -4,7 +4,7 @@ import { Easing } from 'framer-motion';
4
4
  /**
5
5
  * Props interface for SScrollReveal component
6
6
  */
7
- export interface SScrollRevealProps extends Omit<BoxProps, 'children'> {
7
+ export interface SScrollRevealProps extends Omit<BoxProps, 'children' | 'component'> {
8
8
  /** The content to be revealed with animation */
9
9
  children: React.ReactNode;
10
10
  /** Animation duration in seconds (default: 0.6) */
@@ -21,14 +21,22 @@ export interface SScrollRevealProps extends Omit<BoxProps, 'children'> {
21
21
  direction?: 'up' | 'down' | 'left' | 'right';
22
22
  /** Distance in pixels that elements travel during animation */
23
23
  distance?: number;
24
- /** Whether to include scaling effect in the animation (default: true) */
25
- scale?: boolean;
26
- /** Whether to include rotation effect in the animation (default: false) */
27
- rotate?: boolean;
24
+ /** Whether content grows from 85% to full size while being revealed (default: true) */
25
+ scaleOnReveal?: boolean;
26
+ /** Whether content rotates from -2 degrees to its resting position while being revealed (default: false) */
27
+ rotateOnReveal?: boolean;
28
28
  /** Whether to stagger animations for multiple children (default: true) */
29
29
  stagger?: boolean;
30
30
  /** Delay between staggered child animations in seconds (default: 0.1) */
31
31
  staggerDelay?: number;
32
32
  }
33
- export declare const SScrollReveal: React.FC<SScrollRevealProps>;
33
+ export type SScrollRevealOwnerState = SScrollRevealProps & {
34
+ duration: number;
35
+ ease: Easing;
36
+ rotateOnReveal: boolean;
37
+ scaleOnReveal: boolean;
38
+ stagger: boolean;
39
+ staggerDelay: number;
40
+ };
41
+ export declare const SScrollReveal: React.ForwardRefExoticComponent<Omit<SScrollRevealProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
34
42
  export default SScrollReveal;