@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,102 +1,108 @@
1
- import { t as e } from "../Box-BlmynALm.js";
2
- import { t } from "../Stack-BQkLmLFp.js";
3
- import { t as n } from "../Typography-CZ_MYa-E.js";
4
- import { t as r } from "../ExpandMore-DIsT5FOp.js";
5
- import { SNavItem as i } from "../s-nav-item/s-nav-item.js";
6
- import { t as a } from "../Collapse-JUd84Z9O.js";
7
- import * as o from "react";
8
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
1
+ import { toSxArray as e } from "../utils/sx.js";
2
+ import { SNavItem as t } from "../s-nav-item/s-nav-item.js";
3
+ import { styled as n, useThemeProps as r } from "@mui/material/styles";
4
+ import * as i from "react";
5
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
+ import s from "@mui/icons-material/ExpandMore";
7
+ import c from "@mui/material/Typography";
8
+ import l from "@mui/material/Stack";
9
+ import u from "@mui/material/Box";
10
+ import d from "@mui/material/Collapse";
11
+ import f from "@mui/material/ListItemButton";
9
12
  //#region lib/s-nav-items/s-nav-items.tsx
10
- function l(e, t) {
11
- return e.some((e) => e.href && (t === e.href || t.startsWith(e.href + "/")) ? !0 : e.items ? l(e.items, t) : !1);
13
+ var p = n(i.forwardRef(function(e, t) {
14
+ return /* @__PURE__ */ a(l, {
15
+ component: "ul",
16
+ ...e,
17
+ ref: t
18
+ });
19
+ }), {
20
+ name: "SNavItems",
21
+ slot: "Root"
22
+ })({});
23
+ function m(e, t) {
24
+ return e.some((e) => e.href && (t === e.href || t.startsWith(e.href + "/")) ? !0 : e.items ? m(e.items, t) : !1);
12
25
  }
13
- function u(e, t) {
26
+ function h(e, t) {
14
27
  return !!(e.href && (t === e.href || t.startsWith(e.href + "/")));
15
28
  }
16
- function d(e, t) {
29
+ function g(e, t) {
17
30
  let n = e.items ?? [];
18
31
  return {
19
- active: u(e, t),
20
- childActive: n.length > 0 && l(n, t)
32
+ active: h(e, t),
33
+ childActive: n.length > 0 && m(n, t)
21
34
  };
22
35
  }
23
- function f({ item: t, pathname: l, depth: u, component: f }) {
24
- let m = !!(t.items && t.items.length > 0), { active: h, childActive: g } = d(t, l), [_, v] = o.useState(t.defaultOpen ?? g);
25
- if (o.useEffect(() => {
26
- g && v(!0);
27
- }, [g]), !m) return /* @__PURE__ */ s(i, {
28
- active: h,
29
- disabled: t.disabled,
30
- external: t.external,
31
- href: t.href,
32
- component: t.component ?? f,
33
- icon: t.icon ? t.icon(h) : null,
34
- title: t.title,
35
- innerSx: u > 0 ? { pl: `${(u - 1) * 12 + 12}px` } : void 0
36
+ function _({ item: e, pathname: n, depth: r, linkComponent: l }) {
37
+ let p = !!(e.items && e.items.length > 0), { active: m, childActive: h } = g(e, n), [_, y] = i.useState(e.defaultOpen ?? h);
38
+ if (i.useEffect(() => {
39
+ h && y(!0);
40
+ }, [h]), !p) return /* @__PURE__ */ a(t, {
41
+ disabled: e.disabled,
42
+ href: e.href,
43
+ icon: e.icon ? e.icon(m) : null,
44
+ primary: e.title,
45
+ selected: m,
46
+ slotProps: { button: {
47
+ component: e.component ?? l,
48
+ rel: e.rel,
49
+ target: e.target,
50
+ sx: r > 0 ? { pl: `${(r - 1) * 12 + 12}px` } : void 0
51
+ } }
36
52
  });
37
- let y = h || g;
38
- return /* @__PURE__ */ c(e, {
53
+ let b = m || h;
54
+ return /* @__PURE__ */ o(u, {
39
55
  component: "li",
40
56
  sx: {
41
57
  userSelect: "none",
42
58
  display: "block"
43
59
  },
44
- children: [/* @__PURE__ */ c(e, {
45
- component: "button",
46
- type: "button",
47
- onClick: () => v((e) => !e),
60
+ children: [/* @__PURE__ */ o(f, {
61
+ onClick: () => y((e) => !e),
62
+ disabled: e.disabled,
63
+ selected: b,
48
64
  sx: {
49
65
  alignItems: "center",
50
- appearance: "none",
51
- background: "transparent",
52
- border: 0,
53
66
  borderRadius: 1,
54
- color: y ? "text.primary" : "text.secondary",
55
- cursor: t.disabled ? "not-allowed" : "pointer",
67
+ color: b ? "text.primary" : "text.secondary",
56
68
  display: "flex",
57
69
  flex: "0 0 auto",
58
- font: "inherit",
59
70
  gap: 1,
60
71
  justifyContent: "space-between",
61
- margin: 0,
62
72
  p: 1.5,
63
- pl: u > 0 ? `${u * 12 + 12}px` : "12px",
64
- textAlign: "left",
65
- textDecoration: "none",
73
+ pl: r > 0 ? `${r * 12 + 12}px` : "12px",
66
74
  whiteSpace: "nowrap",
67
75
  width: "100%",
68
- ...t.disabled && { color: "text.disabled" },
69
- ...y && { bgcolor: "action.selected" },
70
- "&:hover": { ...!y && !t.disabled && {
76
+ "&.Mui-disabled": {
77
+ color: "text.disabled",
78
+ cursor: "not-allowed"
79
+ },
80
+ "@media (hover: hover) and (pointer: fine)": { "&:hover": { ...!b && !e.disabled && {
71
81
  bgcolor: "action.hover",
72
82
  color: "text.primary"
73
- } }
83
+ } } }
74
84
  },
75
- onKeyDown: (e) => {
76
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), v((e) => !e));
77
- },
78
- "aria-disabled": t.disabled || void 0,
79
85
  "aria-expanded": _,
80
- children: [/* @__PURE__ */ c(e, {
86
+ children: [/* @__PURE__ */ o(u, {
81
87
  sx: {
82
88
  alignItems: "center",
83
89
  display: "flex",
84
90
  gap: 1
85
91
  },
86
- children: [t.icon ? /* @__PURE__ */ s(e, {
92
+ children: [e.icon ? /* @__PURE__ */ a(u, {
87
93
  component: "span",
88
94
  sx: {
89
95
  display: "flex",
90
96
  alignItems: "center",
91
97
  justifyContent: "center"
92
98
  },
93
- children: t.icon(y)
94
- }) : null, /* @__PURE__ */ s(n, {
99
+ children: e.icon(b)
100
+ }) : null, /* @__PURE__ */ a(c, {
95
101
  component: "span",
96
102
  variant: "body1",
97
- children: t.title
103
+ children: e.title
98
104
  })]
99
- }), /* @__PURE__ */ s(e, {
105
+ }), /* @__PURE__ */ a(u, {
100
106
  component: "span",
101
107
  sx: {
102
108
  display: "flex",
@@ -105,47 +111,57 @@ function f({ item: t, pathname: l, depth: u, component: f }) {
105
111
  transition: "transform 200ms ease",
106
112
  transform: _ ? "rotate(0deg)" : "rotate(-90deg)"
107
113
  },
108
- children: /* @__PURE__ */ s(r, {})
114
+ children: /* @__PURE__ */ a(s, {})
109
115
  })]
110
- }), /* @__PURE__ */ s(a, {
116
+ }), /* @__PURE__ */ a(d, {
111
117
  in: _,
112
118
  timeout: 200,
113
119
  unmountOnExit: !0,
114
- children: /* @__PURE__ */ s(e, {
120
+ children: /* @__PURE__ */ a(u, {
115
121
  sx: {
116
- ml: u > 0 ? `${u * 16 + 12}px` : "12px",
122
+ ml: r > 0 ? `${r * 16 + 12}px` : "12px",
117
123
  mt: 1,
118
124
  mb: 1,
119
125
  pl: 1
120
126
  },
121
- children: /* @__PURE__ */ s(p, {
122
- items: t.items,
123
- pathname: l,
124
- depth: u + 1,
125
- component: f
127
+ children: /* @__PURE__ */ a(v, {
128
+ items: e.items,
129
+ pathname: n,
130
+ depth: r + 1,
131
+ linkComponent: l
126
132
  })
127
133
  })
128
134
  })]
129
135
  });
130
136
  }
131
- f.displayName = "SNavGroupItem";
132
- function p({ items: e, pathname: n = "", depth: r = 0, component: i }) {
133
- return /* @__PURE__ */ s(t, {
134
- component: "ul",
137
+ _.displayName = "SNavGroupItem";
138
+ var v = i.forwardRef(function(t, n) {
139
+ let i = r({
140
+ props: t,
141
+ name: "SNavItems"
142
+ }), { depth: o = 0, items: s, linkComponent: c, pathname: l = "", sx: u, ...d } = i, f = {
143
+ ...i,
144
+ depth: o,
145
+ pathname: l
146
+ };
147
+ return /* @__PURE__ */ a(p, {
135
148
  spacing: 1,
136
- sx: {
149
+ ...d,
150
+ ref: n,
151
+ ownerState: f,
152
+ sx: [{
137
153
  listStyle: "none",
138
154
  m: 0,
139
155
  p: 0
140
- },
141
- children: e.map((e) => /* @__PURE__ */ s(f, {
156
+ }, ...e(u)],
157
+ children: s.map((e) => /* @__PURE__ */ a(_, {
142
158
  item: e,
143
- pathname: n,
144
- depth: r,
145
- component: i
159
+ pathname: l,
160
+ depth: o,
161
+ linkComponent: c
146
162
  }, e.key))
147
163
  });
148
- }
149
- p.displayName = "SNavItems";
164
+ });
165
+ v.displayName = "SNavItems";
150
166
  //#endregion
151
- export { f as SNavGroupItem, p as SNavItems, p as default };
167
+ export { _ as SNavGroupItem, v as SNavItems, v as default };
@@ -1,17 +1,5 @@
1
- import * as React from 'react';
2
- /**
3
- * Props for the SNoSSR component
4
- */
5
- export interface SNoSsrProps {
6
- /** Content to render only on the client side */
7
- children?: React.ReactNode;
8
- /** Whether to defer rendering until after initial paint */
9
- defer?: boolean;
10
- /** Content to show during server-side rendering or while loading */
11
- fallback?: React.ReactNode;
12
- }
13
- export declare const SNoSsr: {
14
- (props: SNoSsrProps): React.JSX.Element;
15
- displayName: string;
16
- };
1
+ import { default as NoSsr, NoSsrProps } from '@mui/material/NoSsr';
2
+ /** Exact MUI NoSsr contract exposed under the ui-kit namespace. */
3
+ export type SNoSsrProps = NoSsrProps;
4
+ export declare const SNoSsr: typeof NoSsr;
17
5
  export default SNoSsr;
@@ -1,15 +1,5 @@
1
- import { t as e } from "../useEnhancedEffect-Dsu5K7-Z.js";
2
- import * as t from "react";
3
- import { jsx as n } from "react/jsx-runtime";
1
+ import e from "@mui/material/NoSsr";
4
2
  //#region lib/s-no-ssr/s-no-ssr.tsx
5
- var r = (r) => {
6
- let { children: i, defer: a = !1, fallback: o = null } = r, [s, c] = t.useState(!1);
7
- return e(() => {
8
- a || c(!0);
9
- }, [a]), t.useEffect(() => {
10
- a && c(!0);
11
- }, [a]), /* @__PURE__ */ n(t.Fragment, { children: s ? i : o });
12
- };
13
- r.displayName = "SNoSsr";
3
+ var t = e;
14
4
  //#endregion
15
- export { r as SNoSsr, r as default };
5
+ export { t as SNoSsr, t as default };
@@ -1,2 +1,4 @@
1
1
  export { default, default as SOverlayScrollbar } from './s-overlay-scrollbar';
2
- export type { SOverlayScrollbarProps } from './s-overlay-scrollbar';
2
+ export type { SOverlayScrollbarOwnerState, SOverlayScrollbarProps } from './s-overlay-scrollbar';
3
+ export type {} from '../theme/component-augmentation';
4
+ export type {} from '../theme/optional-component-augmentations/s-overlay-scrollbar';
@@ -1,15 +1,17 @@
1
- import { PropsWithChildren } from 'react';
2
1
  import { SxProps, Theme } from '@mui/material';
2
+ import { OverlayScrollbarsComponentProps, OverlayScrollbarsComponentRef } from 'overlayscrollbars-react';
3
3
  /**
4
4
  * Props interface for SOverlayScrollbar component
5
5
  */
6
- export interface SOverlayScrollbarProps extends PropsWithChildren {
7
- /** Optional id for the scrollbar container */
8
- id?: string;
9
- /** Additional CSS class name */
10
- className?: string;
6
+ export type SOverlayScrollbarProps = Omit<OverlayScrollbarsComponentProps<'div'>, 'ref'> & {
11
7
  /** Material-UI sx prop for custom styling */
12
8
  sx?: SxProps<Theme>;
13
- }
14
- export declare const SOverlayScrollbar: import('react').ForwardRefExoticComponent<SOverlayScrollbarProps & import('react').RefAttributes<import('overlayscrollbars-react').OverlayScrollbarsComponentRef<import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>>>>;
9
+ };
10
+ export type SOverlayScrollbarOwnerState = SOverlayScrollbarProps & {
11
+ defer: boolean | IdleRequestOptions;
12
+ };
13
+ export declare const SOverlayScrollbar: import('react').ForwardRefExoticComponent<Omit<OverlayScrollbarsComponentProps<"div">, "ref"> & {
14
+ /** Material-UI sx prop for custom styling */
15
+ sx?: SxProps<Theme>;
16
+ } & import('react').RefAttributes<OverlayScrollbarsComponentRef<"div">>>;
15
17
  export default SOverlayScrollbar;
@@ -1,9 +1,12 @@
1
1
  import { forwardRef as e } from "react";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
- import { styled as n } from "@mui/material";
4
- import { OverlayScrollbarsComponent as r } from "overlayscrollbars-react";
3
+ import { styled as n, useThemeProps as r } from "@mui/material";
4
+ import { OverlayScrollbarsComponent as i } from "overlayscrollbars-react";
5
5
  import '../assets/s-overlay-scrollbar.css';//#region lib/s-overlay-scrollbar/s-overlay-scrollbar.tsx
6
- var i = n(r)(({ theme: e }) => ({
6
+ var a = n(i, {
7
+ name: "SOverlayScrollbar",
8
+ slot: "Root"
9
+ })(({ theme: e }) => ({
7
10
  maxHeight: "100%",
8
11
  ".os-theme-dark": {
9
12
  "--os-size": "10px",
@@ -16,19 +19,28 @@ var i = n(r)(({ theme: e }) => ({
16
19
  "--os-handle-bg-active": (e.vars ?? e).palette.whiteAlpha.dark
17
20
  })
18
21
  }
19
- })), a = e(({ sx: e, children: n, className: r, id: a, ...o }, s) => /* @__PURE__ */ t(i, {
20
- id: a,
21
- ref: s,
22
- defer: !0,
23
- sx: e,
24
- className: r,
25
- options: { scrollbars: {
22
+ })), o = e(function(e, n) {
23
+ let i = r({
24
+ props: e,
25
+ name: "SOverlayScrollbar"
26
+ }), { children: o, defer: s = !0, options: c = { scrollbars: {
26
27
  autoHide: "leave",
27
28
  autoHideDelay: 100
28
- } },
29
- ...o,
30
- children: n
31
- }));
32
- a.displayName = "SOverlayScrollbar";
29
+ } }, sx: l, ...u } = i, d = {
30
+ ...i,
31
+ defer: s,
32
+ options: c
33
+ };
34
+ return /* @__PURE__ */ t(a, {
35
+ ...u,
36
+ ref: n,
37
+ defer: s,
38
+ options: c,
39
+ ownerState: d,
40
+ sx: l,
41
+ children: o
42
+ });
43
+ });
44
+ o.displayName = "SOverlayScrollbar";
33
45
  //#endregion
34
- export { a as SOverlayScrollbar, a as default };
46
+ export { o as SOverlayScrollbar, o as default };
@@ -1,3 +1,4 @@
1
1
  export { default, default as SPagination } from './s-pagination';
2
- export type { SPaginationProps } from './s-pagination';
2
+ export type { SPaginationOwnerState, SPaginationProps } from './s-pagination';
3
3
  export type { SPaginationColor, SPaginationSize } from './types';
4
+ export type {} from '../theme/component-augmentation';
@@ -1,53 +1,18 @@
1
- import { default as React } from 'react';
2
- import { PaginationProps } from '@mui/material';
3
- import { SPaginationColor, SPaginationSize } from './types';
1
+ import { PaginationProps } from '@mui/material/Pagination';
2
+ import * as React from 'react';
4
3
  export type { SPaginationColor, SPaginationSize } from './types';
5
- /**
6
- * Props for SPagination. Web behavior is sourced from MUI Pagination; custom
7
- * SoloStylist props stay local to the web package.
8
- */
9
- export interface SPaginationProps extends Omit<PaginationProps, 'color' | 'count' | 'shape' | 'size' | 'variant'> {
10
- /** Accessible label for the complete pagination control. */
11
- accessibilityLabel?: string;
12
- /** Number of always-visible pages at the beginning and end. */
13
- boundaryCount?: number;
14
- /** Total number of pages. The component is hidden when count is 0 or less. */
15
- count?: number;
16
- /** Page selected initially when the component is uncontrolled. */
17
- defaultPage?: number;
18
- /** Whether the complete pagination control is disabled. */
19
- disabled?: boolean;
20
- /** Returns the accessible label for an item. */
21
- getItemAriaLabel?: PaginationProps['getItemAriaLabel'];
22
- /** Whether to hide the next-page button. */
23
- hideNextButton?: boolean;
24
- /** Whether to hide the previous-page button. */
25
- hidePrevButton?: boolean;
26
- /** Whether to show the pagination skeleton. */
4
+ /** MUI Pagination props plus a Button-like loading state. */
5
+ export interface SPaginationProps extends PaginationProps {
6
+ /** Total number of pages. The component is hidden when count is 0 or less. @default 0 */
7
+ count?: PaginationProps['count'];
8
+ /** If true, the pagination is replaced by its loading indicator when count is positive. */
27
9
  loading?: boolean;
28
- /** Callback fired when the page changes. */
29
- onChange?: PaginationProps['onChange'];
30
- /** Current page for controlled usage (1-indexed). */
31
- page?: number;
32
- /** Custom item renderer. */
33
- renderItem?: PaginationProps['renderItem'];
34
- /** Active-page color, using the same semantic palette as SButton. */
35
- color?: SPaginationColor;
36
- /** Shape of every pagination item. Defaults to the rounded SIconButton shape. */
37
- shape?: 'circular' | 'rounded';
38
- /** Whether to show the first-page button. */
39
- showFirstButton?: boolean;
40
- /** Whether to show the last-page button. */
41
- showLastButton?: boolean;
42
- /** Number of visible pages before and after the current page. */
43
- siblingCount?: number;
44
- /** Size of pagination items. */
45
- size?: SPaginationSize;
46
- /** Inactive-page visual variant. The active page always uses the contained SButton treatment. */
47
- variant?: 'text' | 'outlined';
10
+ /** Custom content rendered while loading. */
11
+ loadingIndicator?: React.ReactNode;
48
12
  }
49
- export declare const SPagination: {
50
- ({ loading, count, color, shape, size, variant, accessibilityLabel, sx, ...props }: SPaginationProps): React.JSX.Element;
51
- displayName: string;
52
- };
13
+ export interface SPaginationOwnerState extends SPaginationProps {
14
+ loading: boolean;
15
+ size: NonNullable<PaginationProps['size']>;
16
+ }
17
+ export declare const SPagination: React.ForwardRefExoticComponent<Omit<SPaginationProps, "ref"> & React.RefAttributes<HTMLElement>>;
53
18
  export default SPagination;
@@ -1,50 +1,85 @@
1
- import { paginationDimensions as e } from "./types.js";
2
- import { SSkeleton as t } from "../s-skeleton/s-skeleton.js";
3
- import "react";
4
- import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
5
- import { Pagination as a, Stack as o } from "@mui/material";
1
+ import { getPaginationDimensions as e } from "./types.js";
2
+ import { styled as t, useThemeProps as n } from "@mui/material/styles";
3
+ import * as r from "react";
4
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
+ import o from "@mui/material/Stack";
6
+ import s from "@mui/material/Skeleton";
7
+ import c from "@mui/material/Pagination";
6
8
  //#region lib/s-pagination/s-pagination.tsx
7
- var s = ({ size: n, style: a }) => {
8
- let s = e[n];
9
- return /* @__PURE__ */ i(o, {
9
+ var l = 5, u = t(c, {
10
+ name: "SPagination",
11
+ slot: "Root",
12
+ shouldForwardProp: (e) => e !== "ownerState"
13
+ })(({ ownerState: e }) => ({ ...e.loading && { display: "inline-flex" } })), d = r.forwardRef(function(t, c) {
14
+ let d = n({
15
+ props: t,
16
+ name: "SPagination"
17
+ }), { "aria-label": f = "pagination navigation", "aria-busy": p, className: m, color: h = "primary", count: g = 0, loading: _ = !1, loadingIndicator: v, shape: y = "rounded", size: b = "medium", style: x, sx: S, variant: C = "text", ...w } = d;
18
+ if (g <= 0) return null;
19
+ let T = e(b), E = _ || w.disabled, D = {
20
+ ...d,
21
+ "aria-label": f,
22
+ color: h,
23
+ count: g,
24
+ disabled: E,
25
+ loading: _,
26
+ shape: y,
27
+ size: b,
28
+ variant: C
29
+ }, O = /* @__PURE__ */ i(o, {
30
+ "aria-label": `${f} loading`,
10
31
  direction: "row",
11
- style: a,
32
+ role: "progressbar",
12
33
  sx: {
13
34
  alignItems: "center",
14
35
  display: "inline-flex",
15
- gap: `${s.gap}px`
36
+ gap: `${T.gap}px`
16
37
  },
17
- children: [
18
- /* @__PURE__ */ r(t, {
38
+ children: v ?? (y === "circular" ? Array.from({ length: l }, (e, t) => /* @__PURE__ */ i(s, {
39
+ variant: "circular",
40
+ width: T.item,
41
+ height: T.item
42
+ }, t)) : /* @__PURE__ */ a(r.Fragment, { children: [
43
+ /* @__PURE__ */ i(s, {
19
44
  variant: "rounded",
20
- width: s.item,
21
- height: s.item
45
+ width: T.item,
46
+ height: T.item
22
47
  }),
23
- /* @__PURE__ */ r(t, {
48
+ /* @__PURE__ */ i(s, {
24
49
  variant: "rounded",
25
- width: s.bar,
26
- height: s.item
50
+ width: T.bar,
51
+ height: T.item
27
52
  }),
28
- /* @__PURE__ */ r(t, {
53
+ /* @__PURE__ */ i(s, {
29
54
  variant: "rounded",
30
- width: s.item,
31
- height: s.item
55
+ width: T.item,
56
+ height: T.item
32
57
  })
33
- ]
58
+ ] }))
59
+ });
60
+ return /* @__PURE__ */ i(u, {
61
+ ...w,
62
+ "aria-label": f,
63
+ "aria-busy": p ?? (_ || void 0),
64
+ className: m,
65
+ color: h,
66
+ count: _ ? 1 : g,
67
+ disabled: E,
68
+ hideNextButton: _ || w.hideNextButton,
69
+ hidePrevButton: _ || w.hidePrevButton,
70
+ ownerState: D,
71
+ page: w.page,
72
+ ref: c,
73
+ renderItem: _ ? () => O : w.renderItem,
74
+ shape: y,
75
+ showFirstButton: _ ? !1 : w.showFirstButton,
76
+ showLastButton: _ ? !1 : w.showLastButton,
77
+ size: b,
78
+ style: x,
79
+ sx: S,
80
+ variant: C
34
81
  });
35
- }, c = ({ loading: e = !1, count: t = 0, color: i = "primary", shape: o = "rounded", size: c = "medium", variant: l = "text", accessibilityLabel: u = "pagination navigation", sx: d, ...f }) => t <= 0 ? /* @__PURE__ */ r(n, {}) : e ? /* @__PURE__ */ r(s, {
36
- size: c,
37
- style: f.style
38
- }) : /* @__PURE__ */ r(a, {
39
- count: t,
40
- "aria-label": u,
41
- color: i,
42
- shape: o,
43
- size: c,
44
- variant: l,
45
- sx: d,
46
- ...f
47
82
  });
48
- c.displayName = "SPagination";
83
+ d.displayName = "SPagination";
49
84
  //#endregion
50
- export { c as SPagination, c as default };
85
+ export { d as SPagination, d as default };
@@ -1,9 +1,31 @@
1
1
  import { PaginationProps } from '@mui/material';
2
- export type SPaginationSize = NonNullable<PaginationProps['size']>;
2
+ declare module '@mui/material/Pagination' {
3
+ interface PaginationPropsColorOverrides {
4
+ error: true;
5
+ info: true;
6
+ success: true;
7
+ warning: true;
8
+ }
9
+ }
10
+ declare module '@mui/material/PaginationItem' {
11
+ interface PaginationItemPropsColorOverrides {
12
+ error: true;
13
+ info: true;
14
+ success: true;
15
+ warning: true;
16
+ }
17
+ }
18
+ export type SPaginationSize = 'small' | 'medium' | 'large';
3
19
  export type SPaginationColor = 'primary' | 'secondary' | 'success' | 'error' | 'info' | 'warning';
4
20
  export declare const paginationColors: readonly ["primary", "secondary", "success", "error", "info", "warning"];
21
+ export declare const paginationSizes: readonly ["small", "medium", "large"];
5
22
  export declare const paginationDimensions: Record<SPaginationSize, {
6
23
  item: number;
7
24
  gap: number;
8
25
  bar: number;
9
26
  }>;
27
+ export declare const getPaginationDimensions: (size: PaginationProps["size"]) => {
28
+ item: number;
29
+ gap: number;
30
+ bar: number;
31
+ };
@@ -6,10 +6,14 @@ var e = [
6
6
  "error",
7
7
  "info",
8
8
  "warning"
9
- ], t = {
9
+ ], t = [
10
+ "small",
11
+ "medium",
12
+ "large"
13
+ ], n = {
10
14
  small: {
11
15
  item: 26,
12
- gap: 2,
16
+ gap: 6,
13
17
  bar: 90
14
18
  },
15
19
  medium: {
@@ -22,6 +26,6 @@ var e = [
22
26
  gap: 6,
23
27
  bar: 150
24
28
  }
25
- };
29
+ }, r = (e) => n[e] ?? n.medium;
26
30
  //#endregion
27
- export { e as paginationColors, t as paginationDimensions };
31
+ export { r as getPaginationDimensions, e as paginationColors, n as paginationDimensions, t as paginationSizes };
@@ -1,2 +1,3 @@
1
1
  export { default, default as SPixelReveal } from './s-pixel-reveal';
2
- export type { SPixelRevealProps } from './s-pixel-reveal';
2
+ export type { SPixelRevealOwnerState, SPixelRevealProps } from './s-pixel-reveal';
3
+ export type {} from '../theme/component-augmentation';