@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,75 +1,93 @@
1
1
  import { useScrollAnimation as e } from "../hooks/use-scroll-animation.js";
2
- import t from "react";
3
- import { jsx as n } from "react/jsx-runtime";
4
- import { Box as r } from "@mui/material";
5
- import { motion as i } from "framer-motion";
2
+ import { styled as t, useThemeProps as n } from "@mui/material/styles";
3
+ import r from "react";
4
+ import { jsx as i } from "react/jsx-runtime";
5
+ import { Box as a } from "@mui/material";
6
+ import { motion as o, useReducedMotion as s } from "framer-motion";
6
7
  //#region lib/s-scroll-reveal/s-scroll-reveal.tsx
7
- function a(e) {
8
- return t.isValidElement(e) && e.key != null ? e.key : typeof e == "string" || typeof e == "number" ? e : null;
8
+ var c = t(a, {
9
+ name: "SScrollReveal",
10
+ slot: "Root"
11
+ })({ overflow: "hidden" });
12
+ function l(e) {
13
+ return r.isValidElement(e) && e.key != null ? e.key : typeof e == "string" || typeof e == "number" ? e : null;
9
14
  }
10
- function o(e, t, n, r) {
15
+ function u(e, t, n, r) {
11
16
  return t ? e ? "visible" : "hidden" : e ? r : n;
12
17
  }
13
- var s = ({ children: s, duration: c = .6, ease: l = "easeOut", threshold: u, rootMargin: d, delay: f, direction: p, distance: m, scale: h = !0, rotate: g = !1, stagger: _ = !0, staggerDelay: v = .1, sx: y, ...b }) => {
14
- let { ref: x, animate: S, initialPosition: C, finalPosition: w } = e({
15
- threshold: u,
16
- rootMargin: d,
17
- delay: f,
18
- direction: p,
19
- distance: m
20
- }), T = h ? {
21
- ...C,
18
+ var d = r.forwardRef(function(t, d) {
19
+ let f = n({
20
+ props: t,
21
+ name: "SScrollReveal"
22
+ }), { children: p, duration: m = .6, ease: h = "easeOut", threshold: g, rootMargin: _, delay: v, direction: y, distance: b, scaleOnReveal: x = !0, rotateOnReveal: S = !1, stagger: C = !0, staggerDelay: w = .1, sx: T, ...E } = f, D = {
23
+ ...f,
24
+ duration: m,
25
+ ease: h,
26
+ rotateOnReveal: S,
27
+ scaleOnReveal: x,
28
+ stagger: C,
29
+ staggerDelay: w
30
+ }, O = s(), { ref: k, animate: A, initialPosition: j, finalPosition: M } = e({
31
+ threshold: g,
32
+ rootMargin: _,
33
+ delay: v,
34
+ direction: y,
35
+ distance: b
36
+ }), N = x ? {
37
+ ...j,
22
38
  scale: .85
23
- } : C, E = h ? {
24
- ...w,
39
+ } : j, P = x ? {
40
+ ...M,
25
41
  scale: 1
26
- } : w, D = g ? {
27
- ...T,
42
+ } : M, F = S ? {
43
+ ...N,
28
44
  rotate: -2
29
- } : T, O = g ? {
30
- ...E,
45
+ } : N, I = S ? {
46
+ ...P,
31
47
  rotate: 0
32
- } : E, k = {
33
- hidden: { opacity: 0 },
48
+ } : P, L = {
49
+ duration: m,
50
+ ease: h,
51
+ type: "tween"
52
+ }, R = {
53
+ hidden: {},
54
+ visible: { transition: { staggerChildren: C ? w : 0 } }
55
+ }, z = {
56
+ hidden: F,
34
57
  visible: {
35
- opacity: 1,
36
- transition: {
37
- staggerChildren: _ ? v : 0,
38
- delayChildren: f ? f / 1e3 : 0
39
- }
58
+ ...I,
59
+ transition: L
40
60
  }
41
- }, A = {
42
- hidden: D,
43
- visible: O
44
- }, j = o(S, _, D, O);
45
- return /* @__PURE__ */ n(r, {
46
- sx: {
47
- overflow: "hidden",
48
- ...y
49
- },
50
- ...b,
51
- children: /* @__PURE__ */ n(r, {
52
- component: i.div,
53
- ref: x,
54
- variants: _ ? k : void 0,
55
- initial: _ ? "hidden" : D,
56
- animate: j,
57
- transition: {
58
- duration: c,
59
- ease: l,
60
- type: "spring",
61
- stiffness: 80,
62
- damping: 20,
63
- mass: .8
64
- },
65
- children: _ ? t.Children.toArray(s).map((e) => /* @__PURE__ */ n(r, {
66
- component: i.div,
67
- variants: A,
61
+ }, B = u(A, C, F, I);
62
+ return O ? /* @__PURE__ */ i(c, {
63
+ ...E,
64
+ ownerState: D,
65
+ ref: d,
66
+ sx: T,
67
+ children: /* @__PURE__ */ i(a, {
68
+ ref: k,
69
+ children: p
70
+ })
71
+ }) : /* @__PURE__ */ i(c, {
72
+ ...E,
73
+ ownerState: D,
74
+ ref: d,
75
+ sx: T,
76
+ children: /* @__PURE__ */ i(a, {
77
+ component: o.div,
78
+ ref: k,
79
+ variants: C ? R : void 0,
80
+ initial: C ? "hidden" : F,
81
+ animate: B,
82
+ transition: C ? void 0 : L,
83
+ children: C ? r.Children.toArray(p).map((e) => /* @__PURE__ */ i(a, {
84
+ component: o.div,
85
+ variants: z,
68
86
  children: e
69
- }, a(e))) : s
87
+ }, l(e))) : p
70
88
  })
71
89
  });
72
- };
73
- s.displayName = "SScrollReveal";
90
+ });
91
+ d.displayName = "SScrollReveal";
74
92
  //#endregion
75
- export { s as SScrollReveal, s as default };
93
+ export { d as SScrollReveal, d as default };
@@ -1,2 +1,3 @@
1
1
  export { default, default as SScrollToTop } from './s-scroll-to-top';
2
- export type { SScrollToTopProps } from './s-scroll-to-top';
2
+ export type { SScrollToTopOwnerState, SScrollToTopProps } from './s-scroll-to-top';
3
+ export type {} from '../theme/component-augmentation';
@@ -1,19 +1,18 @@
1
- import { default as React } from 'react';
2
- import { SxProps, Theme } from '@mui/material/styles';
3
- /**
4
- * Props interface for SScrollToTop component
5
- */
6
- export interface SScrollToTopProps {
7
- /** Handler called when the scroll-to-top button is clicked */
8
- onClick?: () => void;
9
- /** ID of the scrollable element to monitor. If not provided, monitors the window scroll */
10
- scrollElementId?: string;
11
- /** Scroll position (in pixels) after which the button becomes visible (default: 100) */
12
- threshold?: number;
13
- /** Custom icon to display instead of the default arrow */
1
+ import { SIconButtonProps } from '../s-icon-button';
2
+ import * as React from 'react';
3
+ export interface SScrollToTopProps extends Omit<SIconButtonProps, 'children' | 'component' | 'variant'> {
4
+ /** Icon rendered inside the button. */
14
5
  icon?: React.ReactNode;
15
- /** System prop for custom styling */
16
- sx?: SxProps<Theme>;
6
+ /** Scroll target monitored by MUI's scroll trigger; defaults to the window. */
7
+ target?: Node | Window | null;
8
+ /** If true, visibility depends only on the threshold instead of scroll direction. @default true */
9
+ disableHysteresis?: boolean;
10
+ /** Scroll position after which the button becomes visible. */
11
+ threshold?: number;
17
12
  }
18
- export declare const SScrollToTop: React.MemoExoticComponent<({ onClick, scrollElementId, threshold, icon, sx }: SScrollToTopProps) => import("react/jsx-runtime").JSX.Element>;
13
+ export type SScrollToTopOwnerState = Omit<SScrollToTopProps, 'target'> & {
14
+ isScrolled: boolean;
15
+ threshold: number;
16
+ };
17
+ export declare const SScrollToTop: React.NamedExoticComponent<Omit<SScrollToTopProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
19
18
  export default SScrollToTop;
@@ -1,35 +1,62 @@
1
- import { t as e } from "../styled-BTDmdi4c.js";
2
- import { t } from "../ArrowUpward-CNiENJp2.js";
3
- import { useIsPassedPosition as n } from "../hooks/use-is-passed-position.js";
4
- import { SIconButton as r } from "../s-icon-button/s-icon-button.js";
5
- import i from "react";
1
+ import { reducedMotionMedia as e } from "../theme/components/action-styles.js";
2
+ import { SIconButton as t } from "../s-icon-button/s-icon-button.js";
3
+ import { styled as n, useThemeProps as r } from "@mui/material/styles";
4
+ import * as i from "react";
6
5
  import { jsx as a } from "react/jsx-runtime";
6
+ import { useMediaQuery as o, useScrollTrigger as s } from "@mui/material";
7
+ import c from "@mui/icons-material/ArrowUpward";
7
8
  //#region lib/s-scroll-to-top/s-scroll-to-top.tsx
8
- var o = e(r)({
9
- position: "fixed",
10
- bottom: 20,
11
- right: 20,
12
- zIndex: 100
13
- }), s = i.memo(({ onClick: e, scrollElementId: r, threshold: i = 100, icon: s, sx: c }) => {
14
- let l = n(r ?? window, i), u = () => {
15
- e ? e() : r ? document.getElementById(r)?.scrollTo({
16
- top: 0,
17
- behavior: "smooth"
18
- }) : window.scrollTo({
9
+ var l = n(t, {
10
+ name: "SScrollToTop",
11
+ slot: "Root"
12
+ })(({ theme: t, ownerState: n }) => {
13
+ let r = t.vars ?? t;
14
+ return {
15
+ position: "fixed",
16
+ bottom: t.spacing(2),
17
+ right: t.spacing(2),
18
+ zIndex: r.zIndex.fab,
19
+ opacity: +!!n.isScrolled,
20
+ visibility: n.isScrolled ? "visible" : "hidden",
21
+ transition: [t.transitions.create(["opacity", "visibility"]), t.transitions.create(["background-color", "color"], { duration: t.transitions.duration.shorter })].join(","),
22
+ [e]: { transition: "none" }
23
+ };
24
+ }), u = i.forwardRef(function(e, t) {
25
+ let { target: n, ...i } = r({
26
+ props: e,
27
+ name: "SScrollToTop"
28
+ }), { "aria-label": u = "Scroll to top", disableHysteresis: d = !0, icon: f, onClick: p, sx: m, tabIndex: h = 0, threshold: g = 100, ..._ } = i, v = s({
29
+ disableHysteresis: d,
30
+ target: n,
31
+ threshold: g
32
+ }), y = o("(prefers-reduced-motion: reduce)"), b = {
33
+ ...i,
34
+ "aria-label": u,
35
+ disableHysteresis: d,
36
+ isScrolled: v,
37
+ tabIndex: h,
38
+ threshold: g
39
+ }, x = (e) => {
40
+ if (p?.(e), e.defaultPrevented) return;
41
+ let t = n === void 0 ? typeof window > "u" ? null : window : n;
42
+ typeof t?.scrollTo == "function" && t.scrollTo({
19
43
  top: 0,
20
- behavior: "smooth"
44
+ behavior: y ? "auto" : "smooth"
21
45
  });
22
46
  };
23
- return /* @__PURE__ */ a(o, {
24
- sx: {
25
- opacity: +!!l,
26
- visibility: l ? "visible" : "hidden",
27
- ...c
28
- },
29
- onClick: u,
30
- children: s ?? /* @__PURE__ */ a(t, {})
47
+ return /* @__PURE__ */ a(l, {
48
+ ..._,
49
+ ref: t,
50
+ "aria-hidden": v ? void 0 : !0,
51
+ "aria-label": u,
52
+ onClick: x,
53
+ ownerState: b,
54
+ tabIndex: v ? h : -1,
55
+ variant: "overlay",
56
+ sx: m,
57
+ children: f ?? /* @__PURE__ */ a(c, {})
31
58
  });
32
- });
33
- s.displayName = "SScrollToTop";
59
+ }), d = i.memo(u);
60
+ d.displayName = "SScrollToTop";
34
61
  //#endregion
35
- export { s as SScrollToTop, s as default };
62
+ export { d as SScrollToTop, d as default };
@@ -1,6 +1,7 @@
1
1
  export { default, default as SScrollVelocity } from './s-scroll-velocity';
2
- export type { SScrollVelocityProps } from './s-scroll-velocity';
2
+ export type { SScrollVelocityOwnerState, SScrollVelocityProps } from './s-scroll-velocity';
3
3
  export { ScrollVelocityContainer } from './scroll-velocity-container';
4
4
  export type { ScrollVelocityContainerProps } from './scroll-velocity-container';
5
5
  export { ScrollVelocityRow } from './scroll-velocity-row';
6
6
  export type { ScrollVelocityRowProps } from './scroll-velocity-row';
7
+ export type {} from '../theme/component-augmentation';
@@ -1,18 +1,22 @@
1
- import { default as React } from 'react';
2
1
  import { BoxProps } from '@mui/material';
2
+ import * as React from 'react';
3
3
  /**
4
4
  * Props for the SScrollVelocity component
5
5
  */
6
- export interface SScrollVelocityProps extends BoxProps {
7
- /** Content to display in the scrolling marquee */
6
+ export interface SScrollVelocityProps extends Omit<BoxProps, 'component'> {
7
+ /** Items to display in the scrolling marquee */
8
8
  children: React.ReactNode;
9
9
  /** Base scrolling speed (default: 5) */
10
10
  baseVelocity?: number;
11
11
  /** Scroll direction: 1 for right, -1 for left (default: 1) */
12
12
  direction?: 1 | -1;
13
+ /** Continuous spacing between direct children, in theme spacing units (default: 0) */
14
+ spacing?: number;
13
15
  }
14
- export declare const SScrollVelocity: {
15
- ({ children, baseVelocity, direction, sx, ...props }: SScrollVelocityProps): import("react/jsx-runtime").JSX.Element;
16
- displayName: string;
17
- };
16
+ export interface SScrollVelocityOwnerState {
17
+ baseVelocity: number;
18
+ direction: 1 | -1;
19
+ spacing: number;
20
+ }
21
+ export declare const SScrollVelocity: React.ForwardRefExoticComponent<Omit<SScrollVelocityProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
18
22
  export default SScrollVelocity;
@@ -1,14 +1,31 @@
1
1
  import { ScrollVelocityRow as e } from "./scroll-velocity-row.js";
2
- import "react";
3
- import { jsx as t } from "react/jsx-runtime";
2
+ import * as t from "react";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ import { styled as r, useThemeProps as i } from "@mui/material";
4
5
  //#region lib/s-scroll-velocity/s-scroll-velocity.tsx
5
- var n = ({ children: n, baseVelocity: r, direction: i, sx: a, ...o }) => /* @__PURE__ */ t(e, {
6
- baseVelocity: r,
7
- direction: i,
8
- sx: a,
9
- ...o,
10
- children: n
6
+ var a = r(e, {
7
+ name: "SScrollVelocity",
8
+ slot: "Root",
9
+ shouldForwardProp: (e) => e !== "ownerState"
10
+ })({}), o = t.forwardRef(function(e, t) {
11
+ let { baseVelocity: r = 5, children: o, direction: s = 1, spacing: c = 0, ...l } = i({
12
+ props: e,
13
+ name: "SScrollVelocity"
14
+ }), u = {
15
+ baseVelocity: r,
16
+ direction: s,
17
+ spacing: c
18
+ };
19
+ return /* @__PURE__ */ n(a, {
20
+ ...l,
21
+ baseVelocity: r,
22
+ direction: s,
23
+ ownerState: u,
24
+ ref: t,
25
+ spacing: c,
26
+ children: o
27
+ });
11
28
  });
12
- n.displayName = "SScrollVelocity";
29
+ o.displayName = "SScrollVelocity";
13
30
  //#endregion
14
- export { n as SScrollVelocity, n as default };
31
+ export { o as SScrollVelocity, o as default };
@@ -5,9 +5,9 @@ export declare const ScrollVelocityContext: React.Context<MotionValue<number> |
5
5
  /**
6
6
  * Props for the ScrollVelocityContainer component
7
7
  */
8
- export interface ScrollVelocityContainerProps extends BoxProps {
8
+ export interface ScrollVelocityContainerProps extends Omit<BoxProps, 'component'> {
9
9
  /** Content to render inside the container */
10
10
  readonly children: React.ReactNode;
11
11
  }
12
- export declare function ScrollVelocityContainer({ children, sx, ...props }: ScrollVelocityContainerProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare const ScrollVelocityContainer: React.ForwardRefExoticComponent<Omit<ScrollVelocityContainerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
13
  export default ScrollVelocityContainer;
@@ -1,26 +1,26 @@
1
- import e from "react";
2
- import { jsx as t } from "react/jsx-runtime";
3
- import { Box as n } from "@mui/material";
4
- import { useScroll as r, useSpring as i, useTransform as a, useVelocity as o } from "framer-motion";
1
+ import { toSxArray as e } from "../utils/sx.js";
2
+ import t from "react";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ import { Box as r } from "@mui/material";
5
+ import { useScroll as i, useSpring as a, useTransform as o, useVelocity as s } from "framer-motion";
5
6
  //#region lib/s-scroll-velocity/scroll-velocity-container.tsx
6
- var s = e.createContext(null);
7
- function c({ children: e, sx: c, ...l }) {
8
- let { scrollY: u } = r(), d = a(i(o(u), {
7
+ var c = t.createContext(null), l = t.forwardRef(function({ children: t, sx: l, ...u }, d) {
8
+ let { scrollY: f } = i(), p = o(a(s(f), {
9
9
  damping: 50,
10
10
  stiffness: 400
11
11
  }), (e) => (e < 0 ? -1 : 1) * Math.min(5, Math.abs(e) / 1e3 * 5));
12
- return /* @__PURE__ */ t(s.Provider, {
13
- value: d,
14
- children: /* @__PURE__ */ t(n, {
15
- sx: {
12
+ return /* @__PURE__ */ n(c.Provider, {
13
+ value: p,
14
+ children: /* @__PURE__ */ n(r, {
15
+ ref: d,
16
+ sx: [{
16
17
  position: "relative",
17
- width: "100%",
18
- ...c
19
- },
20
- ...l,
21
- children: e
18
+ width: "100%"
19
+ }, ...e(l)],
20
+ ...u,
21
+ children: t
22
22
  })
23
23
  });
24
- }
24
+ });
25
25
  //#endregion
26
- export { c as ScrollVelocityContainer, c as default, s as ScrollVelocityContext };
26
+ export { l as ScrollVelocityContainer, l as default, c as ScrollVelocityContext };
@@ -11,13 +11,15 @@ export declare const wrap: (min: number, max: number, v: number) => number;
11
11
  /**
12
12
  * Props for the ScrollVelocityRow component
13
13
  */
14
- export interface ScrollVelocityRowProps extends BoxProps {
15
- /** Content to repeat in the scrolling row */
14
+ export interface ScrollVelocityRowProps extends Omit<BoxProps, 'component'> {
15
+ /** Items to display in the scrolling row */
16
16
  readonly children: React.ReactNode;
17
17
  /** Base scrolling speed (default: 5) */
18
18
  readonly baseVelocity?: number;
19
19
  /** Scroll direction: 1 for right, -1 for left (default: 1) */
20
20
  readonly direction?: 1 | -1;
21
+ /** Continuous spacing between direct children, in theme spacing units (default: 0) */
22
+ readonly spacing?: number;
21
23
  }
22
- export declare function ScrollVelocityRow(props: ScrollVelocityRowProps): import("react/jsx-runtime").JSX.Element;
24
+ export declare const ScrollVelocityRow: React.ForwardRefExoticComponent<Omit<ScrollVelocityRowProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
25
  export default ScrollVelocityRow;
@@ -1,104 +1,118 @@
1
- import { ScrollVelocityContext as e } from "./scroll-velocity-container.js";
2
- import t, { useContext as n, useEffect as r, useRef as i, useState as a } from "react";
3
- import { jsx as o } from "react/jsx-runtime";
4
- import { Box as s } from "@mui/material";
5
- import { motion as c, useAnimationFrame as l, useMotionValue as u, useScroll as d, useSpring as f, useTransform as p, useVelocity as m } from "framer-motion";
1
+ import { toSxArray as e } from "../utils/sx.js";
2
+ import { ScrollVelocityContext as t } from "./scroll-velocity-container.js";
3
+ import n, { useContext as r, useEffect as i, useRef as a, useState as o } from "react";
4
+ import { jsx as s } from "react/jsx-runtime";
5
+ import { Box as c, useTheme as l } from "@mui/material";
6
+ import { useForkRef as u } from "@mui/material/utils";
7
+ import { motion as d, useAnimationFrame as f, useMotionValue as p, useScroll as m, useSpring as h, useTransform as g, useVelocity as _ } from "framer-motion";
6
8
  //#region lib/s-scroll-velocity/scroll-velocity-row.tsx
7
- var h = (e, t, n) => {
9
+ var v = (e, t, n) => {
8
10
  let r = t - e;
9
11
  return ((n - e) % r + r) % r + e;
10
12
  };
11
- function g(e) {
13
+ function y(e) {
12
14
  return Array.from({ length: e }, (e, t) => `scroll-velocity-copy-${t + 1}`);
13
15
  }
14
- function _({ children: e, baseVelocity: n = 5, direction: d = 1, sx: f, velocityFactor: m, ..._ }) {
15
- let v = i(null), y = i(null), [b, x] = a(1), S = u(0), C = i(d >= 0 ? 1 : -1), w = i(d >= 0 ? 1 : -1), T = u(0), E = i(!0), D = i(!0), O = i(!1), k = t.useMemo(() => g(b), [b]);
16
- r(() => {
17
- let e = v.current, t = y.current;
18
- if (!e || !t) return;
19
- let n = () => {
20
- let n = e.offsetWidth ?? 0, r = t.scrollWidth ?? 0;
21
- T.set(r);
22
- let i = r > 0 ? Math.max(3, Math.ceil(n / r) + 2) : 1;
23
- x((e) => e === i ? e : i);
16
+ var b = n.forwardRef(function({ children: t, baseVelocity: r = 5, direction: m = 1, spacing: h = 0, sx: _, velocityFactor: b, ...x }, S) {
17
+ let C = l(), w = a(null), T = u(w, S), E = a(null), [D, O] = o(1), k = p(0), A = a(m >= 0 ? -1 : 1), j = a(m >= 0 ? -1 : 1), M = p(0), N = a(!0), P = a(!0), F = a(!1), I = n.useMemo(() => y(D), [D]), L = C.spacing(h);
18
+ i(() => {
19
+ let e = m >= 0 ? -1 : 1, t = A.current;
20
+ A.current = e, j.current *= e / t;
21
+ }, [m]), i(() => {
22
+ let e = w.current, t = E.current, n = t?.parentElement;
23
+ if (!e || !t || !n) return;
24
+ let r = () => {
25
+ let r = e.offsetWidth ?? 0, i = Math.max(t.scrollWidth, t.getBoundingClientRect().width) + (Number.parseFloat(getComputedStyle(n).columnGap) || 0);
26
+ M.set(i);
27
+ let a = i > 0 ? Math.max(3, Math.ceil(r / i) + 2) : 1;
28
+ O((e) => e === a ? e : a);
24
29
  };
25
- n();
26
- let r = new ResizeObserver(n);
27
- r.observe(e), r.observe(t);
28
- let i = new IntersectionObserver(([e]) => {
29
- E.current = e.isIntersecting;
30
+ r();
31
+ let i = new ResizeObserver(r);
32
+ i.observe(e), i.observe(t), i.observe(n);
33
+ let a = new IntersectionObserver(([e]) => {
34
+ N.current = e.isIntersecting;
30
35
  });
31
- i.observe(e);
32
- let a = () => {
33
- D.current = document.visibilityState === "visible";
36
+ a.observe(e);
37
+ let o = () => {
38
+ P.current = document.visibilityState === "visible";
34
39
  };
35
- document.addEventListener("visibilitychange", a, { passive: !0 }), a();
36
- let o = window.matchMedia("(prefers-reduced-motion: reduce)"), s = () => {
37
- O.current = o.matches;
40
+ document.addEventListener("visibilitychange", o, { passive: !0 }), o();
41
+ let s = window.matchMedia("(prefers-reduced-motion: reduce)"), c = () => {
42
+ F.current = s.matches;
38
43
  };
39
- return o.addEventListener("change", s), s(), () => {
40
- r.disconnect(), i.disconnect(), document.removeEventListener("visibilitychange", a), o.removeEventListener("change", s);
44
+ return s.addEventListener("change", c), c(), () => {
45
+ i.disconnect(), a.disconnect(), document.removeEventListener("visibilitychange", o), s.removeEventListener("change", c);
41
46
  };
42
- }, [e, T]);
43
- let A = p([S, T], ([e, t]) => `${-h(0, Number(t) || 1, Number(e) || 0)}px`);
44
- return l((e, t) => {
45
- if (!E.current || !D.current) return;
46
- let r = t / 1e3, i = m.get(), a = Math.min(5, Math.abs(i)), o = O.current ? 1 : 1 + a;
47
+ }, [
48
+ t,
49
+ L,
50
+ M
51
+ ]);
52
+ let R = g([k, M], ([e, t]) => `${-v(0, Number(t) || 1, -(Number(e) || 0))}px`);
53
+ return f((e, t) => {
54
+ if (!N.current || !P.current || F.current) return;
55
+ let n = t / 1e3, i = b.get(), a = Math.min(5, Math.abs(i)), o = 1 + a;
47
56
  if (a > .1) {
48
57
  let e = i >= 0 ? 1 : -1;
49
- w.current = C.current * e;
58
+ j.current = A.current * e;
50
59
  }
51
- let s = T.get() ?? 0;
60
+ let s = M.get() ?? 0;
52
61
  if (s <= 0) return;
53
- let c = s * n / 100, l = w.current * c * o * r;
54
- S.set(S.get() + l);
55
- }), /* @__PURE__ */ o(s, {
56
- ref: v,
57
- sx: {
62
+ let c = s * r / 100, l = j.current * c * o * n;
63
+ k.set(k.get() + l);
64
+ }), /* @__PURE__ */ s(c, {
65
+ ref: T,
66
+ sx: [{
58
67
  width: "100%",
59
68
  overflow: "hidden",
60
- whiteSpace: "nowrap",
61
- ...f
62
- },
63
- ..._,
64
- children: /* @__PURE__ */ o(c.div, {
69
+ whiteSpace: "nowrap"
70
+ }, ...e(_)],
71
+ ...x,
72
+ children: /* @__PURE__ */ s(d.div, {
65
73
  style: {
66
74
  display: "inline-flex",
67
75
  alignItems: "center",
76
+ columnGap: L,
68
77
  willChange: "transform",
69
78
  userSelect: "none",
70
- x: A
79
+ x: R
71
80
  },
72
- children: k.map((t, n) => /* @__PURE__ */ o(s, {
73
- ref: n === 0 ? y : null,
81
+ children: I.map((e, n) => /* @__PURE__ */ s(c, {
82
+ ref: n === 0 ? E : null,
74
83
  "aria-hidden": n !== 0,
84
+ inert: n !== 0,
75
85
  sx: {
76
86
  display: "inline-flex",
77
87
  flexShrink: 0,
78
- alignItems: "center"
88
+ alignItems: "center",
89
+ columnGap: L
79
90
  },
80
91
  component: "div",
81
- children: e
82
- }, t))
92
+ children: t
93
+ }, e))
83
94
  })
84
95
  });
85
- }
86
- function v(e) {
87
- let { scrollY: t } = d(), n = p(f(m(t), {
96
+ }), x = n.forwardRef(function(e, t) {
97
+ let { scrollY: n } = m(), r = g(h(_(n), {
88
98
  damping: 50,
89
99
  stiffness: 400
90
100
  }), (e) => (e < 0 ? -1 : 1) * Math.min(5, Math.abs(e) / 1e3 * 5));
91
- return /* @__PURE__ */ o(_, {
101
+ return /* @__PURE__ */ s(b, {
92
102
  ...e,
93
- velocityFactor: n
94
- });
95
- }
96
- function y(t) {
97
- let r = n(e);
98
- return r ? /* @__PURE__ */ o(_, {
99
- ...t,
103
+ ref: t,
100
104
  velocityFactor: r
101
- }) : /* @__PURE__ */ o(v, { ...t });
102
- }
105
+ });
106
+ }), S = n.forwardRef(function(e, n) {
107
+ let i = r(t);
108
+ return i ? /* @__PURE__ */ s(b, {
109
+ ...e,
110
+ ref: n,
111
+ velocityFactor: i
112
+ }) : /* @__PURE__ */ s(x, {
113
+ ...e,
114
+ ref: n
115
+ });
116
+ });
103
117
  //#endregion
104
- export { y as ScrollVelocityRow, y as default, h as wrap };
118
+ export { S as ScrollVelocityRow, S as default, v as wrap };
@@ -1,2 +1,3 @@
1
1
  export { default, default as SSelect } from './s-select';
2
- export type { SSelectProps } from './s-select';
2
+ export type { SSelectComponent, SSelectOwnerState, SSelectProps } from './s-select';
3
+ export type {} from '../theme/component-augmentation';