@solostylist/ui-kit 1.0.203 → 1.0.205

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 (365) hide show
  1. package/dist/ArrowUpward-CDLbIMHR.js +6 -0
  2. package/dist/Box-CCxGQYgC.js +46 -0
  3. package/dist/ButtonBase-BpUvp8ep.js +801 -0
  4. package/dist/ChevronLeft-C7DUyLoc.js +6 -0
  5. package/dist/ChevronRight-VFk57Tte.js +6 -0
  6. package/dist/Close-OtVsJy75.js +6 -0
  7. package/dist/ContentCopy-DHDP4d6g.js +6 -0
  8. package/dist/DefaultPropsProvider-DpRXvTbj.js +157 -0
  9. package/dist/Download-Bbx6BZUJ.js +6 -0
  10. package/dist/ExpandMore-BTC1yHzp.js +6 -0
  11. package/dist/Favorite-mcH9KX-m.js +6 -0
  12. package/dist/Menu-Dhh4e9H1.js +1662 -0
  13. package/dist/MenuItem-aaIy8lan.js +213 -0
  14. package/dist/Paper--8Q3qCqb.js +329 -0
  15. package/dist/Select-B5RvkbDO.js +2545 -0
  16. package/dist/Stack-D-aoKnaS.js +158 -0
  17. package/dist/Typography-CswuXQLF.js +187 -0
  18. package/dist/assets/s-carousel.css +1 -1
  19. package/dist/assets/s-overlay-scrollbar.css +10 -1
  20. package/dist/assets/stripe-input.css +1 -1
  21. package/dist/avatar-BVV8tT0K.js +10 -0
  22. package/dist/buttonBaseClasses-CzfJbQi5.js +13 -0
  23. package/dist/checkbox-Dd2nIREk.js +57 -0
  24. package/dist/chunk-efA98nb6.js +13 -0
  25. package/dist/createSimplePaletteValueFilter-dAWZ3p3z.js +14 -0
  26. package/dist/createSvgIcon-KjKEsKNV.js +153 -0
  27. package/dist/createTheme-DuS5_nJb.js +2430 -0
  28. package/dist/defaultTheme-DBynruYK.js +5 -0
  29. package/dist/entries/carousel.js +3 -4
  30. package/dist/entries/chat.js +3 -4
  31. package/dist/entries/code.js +3 -4
  32. package/dist/entries/core.js +56 -122
  33. package/dist/entries/dates.js +7 -12
  34. package/dist/entries/dropzone.js +3 -4
  35. package/dist/entries/editor.js +2 -4
  36. package/dist/entries/gallery.js +7 -13
  37. package/dist/entries/i18n.js +3 -7
  38. package/dist/entries/motion.js +14 -27
  39. package/dist/entries/scrollbar.js +2 -4
  40. package/dist/entries/stripe.js +6 -10
  41. package/dist/extendSxProp-YPyfzlEb.js +29 -0
  42. package/dist/generateUtilityClass-DdqZpZoW.js +34 -0
  43. package/dist/generateUtilityClasses-BMwEKe3O.js +10 -0
  44. package/dist/hooks/index.js +5 -11
  45. package/dist/hooks/use-count-down.js +85 -76
  46. package/dist/hooks/use-dialog.js +21 -18
  47. package/dist/hooks/use-is-passed-position.js +20 -20
  48. package/dist/hooks/use-popover.js +18 -18
  49. package/dist/hooks/use-scroll-animation.js +74 -56
  50. package/dist/iconButtonClasses-ApDUTw5e.js +27 -0
  51. package/dist/identifier-_S1f0Pg2.js +190 -0
  52. package/dist/main.js +103 -196
  53. package/dist/mergeSlotProps-BG-pTgpj.js +48 -0
  54. package/dist/objectWithoutPropertiesLoose-BdL2_POW.js +23 -0
  55. package/dist/outlinedInputClasses-bgmdcolQ.js +43 -0
  56. package/dist/resolveProps-CcZ6Bxlf.js +30 -0
  57. package/dist/s-accordion/index.js +3 -4
  58. package/dist/s-accordion/s-accordion.js +3 -949
  59. package/dist/s-accordion-Da1IZflX.js +712 -0
  60. package/dist/s-action-overlay/index.js +2 -4
  61. package/dist/s-action-overlay/s-action-overlay.js +108 -109
  62. package/dist/s-autocomplete/index.js +2 -4
  63. package/dist/s-autocomplete/s-autocomplete.js +25 -31
  64. package/dist/s-avatar/index.js +2 -4
  65. package/dist/s-avatar/s-avatar.js +32 -22
  66. package/dist/s-blur-text/index.js +2 -4
  67. package/dist/s-blur-text/s-blur-text.js +67 -81
  68. package/dist/s-breadcrumbs/index.js +2 -3
  69. package/dist/s-breadcrumbs/s-breadcrumbs.js +49 -44
  70. package/dist/s-button/index.js +2 -4
  71. package/dist/s-button/s-button.js +11 -9
  72. package/dist/s-carousel/index.js +3 -4
  73. package/dist/s-carousel/s-carousel.js +3 -2480
  74. package/dist/s-carousel-BoDg9pKU.js +125 -0
  75. package/dist/s-category-card/index.js +1 -3
  76. package/dist/s-category-card/s-category-card.js +70 -105
  77. package/dist/s-chat-input/index.js +3 -4
  78. package/dist/s-chat-input/s-chat-input.js +3 -319
  79. package/dist/s-chat-input-v_XIZVGk.js +283 -0
  80. package/dist/s-chat-message/index.js +3 -4
  81. package/dist/s-chat-message/s-chat-message.js +3 -283
  82. package/dist/s-chat-message-CWtxsicj.js +281 -0
  83. package/dist/s-checkbox/index.js +2 -4
  84. package/dist/s-checkbox/s-checkbox.js +27 -17
  85. package/dist/s-chip/index.js +2 -4
  86. package/dist/s-chip/s-chip.js +11 -9
  87. package/dist/s-chips/index.js +2 -4
  88. package/dist/s-chips/s-chips.js +91 -86
  89. package/dist/s-code-block/index.js +3 -4
  90. package/dist/s-code-block/s-code-block.js +3 -1052
  91. package/dist/s-code-block-BqYdR0Em.js +608 -0
  92. package/dist/s-comment-message/index.js +3 -4
  93. package/dist/s-comment-message/s-comment-message.js +3 -123
  94. package/dist/s-comment-message-DDAHdQqY.js +195 -0
  95. package/dist/s-copyable-text/index.js +3 -4
  96. package/dist/s-copyable-text/s-copyable-text.js +50 -54
  97. package/dist/s-countdown/index.js +3 -5
  98. package/dist/s-countdown/s-count-box.js +102 -106
  99. package/dist/s-countdown/s-count-down.js +101 -109
  100. package/dist/s-data-table/index.js +3 -4
  101. package/dist/s-data-table/s-data-table.js +3 -1291
  102. package/dist/s-data-table-BjqqIsFX.js +893 -0
  103. package/dist/s-date-picker/index.js +3 -4
  104. package/dist/s-date-picker/s-date-picker.js +3 -1521
  105. package/dist/s-date-picker-BYqxsjPU.js +581 -0
  106. package/dist/s-datetime-picker/index.js +3 -4
  107. package/dist/s-datetime-picker/s-datetime-picker.js +3 -5180
  108. package/dist/s-datetime-picker-BtwGoxL3.js +3808 -0
  109. package/dist/s-dialog/index.js +2 -3
  110. package/dist/s-dialog/s-dialog.js +44 -36
  111. package/dist/s-dialog-confirm/index.js +3 -6
  112. package/dist/s-dialog-confirm/s-dialog-confirm.js +85 -74
  113. package/dist/s-dialog-message/index.js +3 -6
  114. package/dist/s-dialog-message/s-dialog-message.js +75 -66
  115. package/dist/s-empty/index.js +1 -3
  116. package/dist/s-empty/s-empty.js +13 -8
  117. package/dist/s-error/index.js +2 -4
  118. package/dist/s-error/s-error.js +31 -20
  119. package/dist/s-error-layout/index.js +2 -4
  120. package/dist/s-error-layout/s-error-layout.js +78 -56
  121. package/dist/s-file-dropzone/index.js +3 -4
  122. package/dist/s-file-dropzone/s-file-dropzone.js +3 -124
  123. package/dist/s-file-dropzone-BJBNFC_b.js +134 -0
  124. package/dist/s-file-icon/index.js +3 -4
  125. package/dist/s-file-icon/s-file-icon.js +327 -272
  126. package/dist/s-flex-box/index.js +3 -4
  127. package/dist/s-flex-box/s-flex-box.js +12 -8
  128. package/dist/s-form/index.js +2 -4
  129. package/dist/s-form/s-form.js +23 -15
  130. package/dist/s-gallery/index.js +3 -5
  131. package/dist/s-gallery/s-gallery.js +310 -346
  132. package/dist/s-glow-button/index.js +3 -4
  133. package/dist/s-glow-button/s-glow-button.js +29 -42
  134. package/dist/s-gradient-icon/index.js +2 -4
  135. package/dist/s-gradient-icon/s-gradient-icon.js +124 -79
  136. package/dist/s-i18n-provider/index.js +2 -4
  137. package/dist/s-i18n-provider/s-i18n-provider.js +23 -27
  138. package/dist/s-icon-button/index.js +2 -4
  139. package/dist/s-icon-button/s-icon-button.js +11 -8
  140. package/dist/s-image-comparison/index.js +3 -4
  141. package/dist/s-image-comparison/s-image-comparison.js +169 -207
  142. package/dist/s-image-modal/index.js +3 -5
  143. package/dist/s-image-modal/s-image-modal.js +396 -387
  144. package/dist/s-item-not-found/index.js +1 -3
  145. package/dist/s-item-not-found/s-item-not-found.js +240 -262
  146. package/dist/s-label/index.js +3 -4
  147. package/dist/s-label/s-label.js +3 -17
  148. package/dist/s-label-Bt4vQGGN.js +30 -0
  149. package/dist/s-language-switcher/index.js +3 -6
  150. package/dist/s-language-switcher/s-language-switcher.js +3 -252
  151. package/dist/s-language-switcher-BJP1r1la.js +198 -0
  152. package/dist/s-lazy-image/index.js +2 -4
  153. package/dist/s-lazy-image/s-lazy-image.js +41 -56
  154. package/dist/s-link/index.js +2 -4
  155. package/dist/s-link/s-link.js +30 -37
  156. package/dist/s-localization-provider/index.js +3 -4
  157. package/dist/s-localization-provider/s-localization-provider.js +3 -562
  158. package/dist/s-localization-provider-CeOR72Ti.js +537 -0
  159. package/dist/s-moving-border/index.js +1 -3
  160. package/dist/s-moving-border/s-moving-border.js +117 -131
  161. package/dist/s-multi-select/index.js +3 -4
  162. package/dist/s-multi-select/s-multi-select.js +3 -82
  163. package/dist/s-multi-select-xKP4heeG.js +64 -0
  164. package/dist/s-no-ssr/index.js +2 -4
  165. package/dist/s-no-ssr/s-no-ssr.js +13 -14
  166. package/dist/s-overlay-scrollbar/index.js +2 -4
  167. package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +34 -37
  168. package/dist/s-pagination/index.js +2 -4
  169. package/dist/s-pagination/s-pagination.js +32 -15
  170. package/dist/s-pixel-reveal/index.js +3 -4
  171. package/dist/s-pixel-reveal/s-pixel-reveal.js +138 -156
  172. package/dist/s-radial-pulse-animate/index.js +3 -4
  173. package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +80 -122
  174. package/dist/s-rating/index.js +1 -3
  175. package/dist/s-rating/s-rating.js +11 -9
  176. package/dist/s-review/index.js +3 -4
  177. package/dist/s-review/s-review.js +3 -160
  178. package/dist/s-review-DOBlCEU2.js +241 -0
  179. package/dist/s-scroll-reveal/index.js +2 -4
  180. package/dist/s-scroll-reveal/s-scroll-reveal.js +68 -64
  181. package/dist/s-scroll-to-top/index.js +3 -4
  182. package/dist/s-scroll-to-top/s-scroll-to-top.js +45 -44
  183. package/dist/s-scroll-velocity/index.js +4 -8
  184. package/dist/s-scroll-velocity/s-scroll-velocity.js +14 -8
  185. package/dist/s-scroll-velocity/scroll-velocity-container.js +25 -30
  186. package/dist/s-scroll-velocity/scroll-velocity-row.js +97 -118
  187. package/dist/s-select/index.js +3 -4
  188. package/dist/s-select/s-select.js +3 -112
  189. package/dist/s-select-DXbeZ0CG.js +110 -0
  190. package/dist/s-select-list/index.js +2 -4
  191. package/dist/s-select-list/s-select-list.js +44 -49
  192. package/dist/s-skeleton/index.js +2 -4
  193. package/dist/s-skeleton/s-skeleton.js +69 -35
  194. package/dist/s-snackbar-message/index.js +2 -6
  195. package/dist/s-snackbar-message/s-snackbar-message.js +48 -61
  196. package/dist/s-spotlight-cursor/index.js +2 -4
  197. package/dist/s-spotlight-cursor/s-spotlight-cursor.js +58 -61
  198. package/dist/s-stripe/index.js +6 -10
  199. package/dist/s-stripe/s-stripe-cvc.js +14 -10
  200. package/dist/s-stripe/s-stripe-expiry.js +14 -10
  201. package/dist/s-stripe/s-stripe-number.js +14 -10
  202. package/dist/s-stripe/s-stripe.js +31 -37
  203. package/dist/s-stripe/stripe-input.js +57 -81
  204. package/dist/s-switch/index.js +1 -3
  205. package/dist/s-switch/s-switch.js +27 -17
  206. package/dist/s-tabs/index.js +4 -8
  207. package/dist/s-tabs/s-tab-panel.js +23 -29
  208. package/dist/s-tabs/s-tab.js +11 -8
  209. package/dist/s-tabs/s-tabs.js +39 -35
  210. package/dist/s-text-editor/index.js +3 -5
  211. package/dist/s-text-editor/s-text-editor-toolbar.js +3 -207
  212. package/dist/s-text-editor/s-text-editor.js +75 -81
  213. package/dist/s-text-editor-toolbar-BDDttdIt.js +177 -0
  214. package/dist/s-text-field/index.js +3 -4
  215. package/dist/s-text-field/s-text-field.js +3 -49
  216. package/dist/s-text-field-ni42E-1x.js +41 -0
  217. package/dist/s-text-shimmer/index.js +3 -4
  218. package/dist/s-text-shimmer/s-text-shimmer.js +31 -32
  219. package/dist/s-text-truncation/index.js +1 -3
  220. package/dist/s-text-truncation/s-text-truncation.js +79 -81
  221. package/dist/s-theme-demo/index.js +3 -4
  222. package/dist/s-theme-demo/s-theme-demo.js +3 -380
  223. package/dist/s-theme-demo-B4pz6fse.js +828 -0
  224. package/dist/s-theme-provider/index.js +3 -4
  225. package/dist/s-theme-provider/s-theme-provider.js +35 -50
  226. package/dist/s-theme-switch/index.js +3 -4
  227. package/dist/s-theme-switch/s-theme-switch.js +3 -41
  228. package/dist/s-theme-switch-CCEdponC.js +37 -0
  229. package/dist/s-tip/index.js +3 -4
  230. package/dist/s-tip/s-tip.js +3 -34
  231. package/dist/s-tip-CG51Q6oR.js +34 -0
  232. package/dist/s-tool-bar/index.js +3 -4
  233. package/dist/s-tool-bar/s-tool-bar.js +3 -478
  234. package/dist/s-tool-bar-C2lZhhJm.js +404 -0
  235. package/dist/s-two-pane-layout/index.js +2 -3
  236. package/dist/s-two-pane-layout/s-two-pane-layout.js +102 -101
  237. package/dist/s-typewriter-text/index.js +2 -4
  238. package/dist/s-typewriter-text/s-typewriter-text.js +39 -45
  239. package/dist/s-zoom-image/index.js +1 -3
  240. package/dist/s-zoom-image/s-zoom-image.js +62 -88
  241. package/dist/select-D9KH9LAz.js +11 -0
  242. package/dist/styled-Dz7rwAje.js +168 -0
  243. package/dist/svgIconClasses-CygVMw0E.js +20 -0
  244. package/dist/tabClasses-CIRFQ-PB.js +21 -0
  245. package/dist/theme/components/accordion-details.js +7 -8
  246. package/dist/theme/components/accordion-summary.js +12 -17
  247. package/dist/theme/components/accordion.js +24 -32
  248. package/dist/theme/components/alert.js +45 -72
  249. package/dist/theme/components/app-bar.js +12 -18
  250. package/dist/theme/components/autocomplete.js +19 -30
  251. package/dist/theme/components/avatar.js +3 -13
  252. package/dist/theme/components/backdrop.js +13 -12
  253. package/dist/theme/components/button-base.js +12 -14
  254. package/dist/theme/components/button.js +92 -138
  255. package/dist/theme/components/card-actions.js +4 -10
  256. package/dist/theme/components/card-content.js +4 -11
  257. package/dist/theme/components/card-header.js +4 -10
  258. package/dist/theme/components/card.js +23 -35
  259. package/dist/theme/components/checkbox.js +3 -65
  260. package/dist/theme/components/chip.js +67 -106
  261. package/dist/theme/components/components.js +112 -111
  262. package/dist/theme/components/container.js +4 -6
  263. package/dist/theme/components/dialog-actions.js +4 -10
  264. package/dist/theme/components/dialog.js +11 -17
  265. package/dist/theme/components/drawer.js +4 -10
  266. package/dist/theme/components/form-control.js +4 -10
  267. package/dist/theme/components/form-label.js +7 -11
  268. package/dist/theme/components/icon-button.js +82 -132
  269. package/dist/theme/components/icon.js +9 -21
  270. package/dist/theme/components/input-adornment.js +7 -13
  271. package/dist/theme/components/input-base.js +10 -16
  272. package/dist/theme/components/linear-progress.js +11 -16
  273. package/dist/theme/components/link.js +31 -37
  274. package/dist/theme/components/list-item-button.js +27 -44
  275. package/dist/theme/components/list-item-icon.js +4 -10
  276. package/dist/theme/components/list-item-text.js +14 -16
  277. package/dist/theme/components/list-item.js +12 -20
  278. package/dist/theme/components/list-subheader.js +10 -14
  279. package/dist/theme/components/list.js +9 -13
  280. package/dist/theme/components/menu-item.js +7 -8
  281. package/dist/theme/components/menu.js +20 -22
  282. package/dist/theme/components/outlined-input.js +41 -64
  283. package/dist/theme/components/pagination-item.js +8 -18
  284. package/dist/theme/components/paper.js +4 -8
  285. package/dist/theme/components/popover.js +11 -13
  286. package/dist/theme/components/rating.js +4 -8
  287. package/dist/theme/components/select.js +3 -13
  288. package/dist/theme/components/skeleton.js +4 -10
  289. package/dist/theme/components/slider.js +4 -8
  290. package/dist/theme/components/step-connector.js +9 -13
  291. package/dist/theme/components/step-icon.js +39 -46
  292. package/dist/theme/components/step-label.js +7 -13
  293. package/dist/theme/components/svg-icon.js +20 -37
  294. package/dist/theme/components/tab.js +20 -34
  295. package/dist/theme/components/table-cell.js +4 -10
  296. package/dist/theme/components/table-pagination.js +14 -18
  297. package/dist/theme/components/tabs.js +20 -24
  298. package/dist/theme/components/toggle-button-group.js +3 -23
  299. package/dist/theme/components/toggle-button.js +3 -21
  300. package/dist/theme/components/tooltip.js +23 -23
  301. package/dist/theme/theme-primitives.js +3 -410
  302. package/dist/theme-primitives-BG66N-x4.js +398 -0
  303. package/dist/toggle-button-BI6z89CX.js +26 -0
  304. package/dist/toggle-button-group-Dzzh9mXv.js +28 -0
  305. package/dist/typographyClasses-C0nDz5e6.js +32 -0
  306. package/dist/useControlled-CvWtMQJF.js +32 -0
  307. package/dist/useEnhancedEffect-NLLl34XR.js +5 -0
  308. package/dist/useFormControl-ngLNi8dL.js +11 -0
  309. package/dist/useMobilePicker-DdH0AzNe.js +10635 -0
  310. package/dist/useTheme-BES_k_99.js +34 -0
  311. package/dist/useThemeProps-CJRFdjVv.js +19 -0
  312. package/dist/utils/dayjs.js +161 -113
  313. package/dist/utils/index.js +3 -11
  314. package/dist/utils/logger.js +45 -46
  315. package/dist/utils-Cu16ybRR.js +72 -0
  316. package/dist/warning-D7iWhOZI.js +110 -0
  317. package/package.json +29 -29
  318. package/dist/ArrowUpward-D8eqD-si.js +0 -8
  319. package/dist/Box-BkXoTbe8.js +0 -62
  320. package/dist/ButtonBase-D73M0QY5.js +0 -1099
  321. package/dist/ChevronLeft-BmgmPHp9.js +0 -8
  322. package/dist/ChevronRight-DbWSr8yz.js +0 -8
  323. package/dist/Close-lHCUMitI.js +0 -8
  324. package/dist/ContentCopy-D4SuJd86.js +0 -11
  325. package/dist/DefaultPropsProvider-DPuuPIbS.js +0 -64
  326. package/dist/Download-BoRQUwCf.js +0 -8
  327. package/dist/ExpandMore-C7yRQv1-.js +0 -8
  328. package/dist/Favorite-Bz_HcMgN.js +0 -8
  329. package/dist/Menu-GVFDMHCN.js +0 -2441
  330. package/dist/MenuItem-2wG8I2HO.js +0 -269
  331. package/dist/Paper-CR019bki.js +0 -553
  332. package/dist/Select-D2l9rDWL.js +0 -3966
  333. package/dist/Stack-Dfjnuorw.js +0 -174
  334. package/dist/Typography-PcmlIqm1.js +0 -253
  335. package/dist/_commonjsHelpers-ByX85dGu.js +0 -33
  336. package/dist/buttonBaseClasses-jtnoTmPn.js +0 -10
  337. package/dist/clsx-OuTLNxxd.js +0 -16
  338. package/dist/createSimplePaletteValueFilter-B7--0ryQ.js +0 -17
  339. package/dist/createSvgIcon-BkbeLOhM.js +0 -242
  340. package/dist/createTheme-DgoJyWM-.js +0 -2929
  341. package/dist/defaultTheme-CulFxfLR.js +0 -5
  342. package/dist/extendSxProp-BJEIxcAx.js +0 -36
  343. package/dist/generateUtilityClass-BhfUaMgk.js +0 -35
  344. package/dist/generateUtilityClasses-E9gROIFd.js +0 -10
  345. package/dist/iconButtonClasses-BMfIhNTh.js +0 -10
  346. package/dist/identifier-BKLqN993.js +0 -4
  347. package/dist/index-D3G5Rwl-.js +0 -211
  348. package/dist/index-DtGYsHSv.js +0 -94
  349. package/dist/jsx-runtime-tc70JA_2.js +0 -264
  350. package/dist/mergeSlotProps-CuzBQdlp.js +0 -62
  351. package/dist/objectWithoutPropertiesLoose-DiWPeE4c.js +0 -22
  352. package/dist/outlinedInputClasses-DnwW3ujt.js +0 -19
  353. package/dist/resolveProps-BDH0VJjn.js +0 -39
  354. package/dist/styled-8Y5KoVix.js +0 -203
  355. package/dist/svgIconClasses-C6auqaBA.js +0 -10
  356. package/dist/tabClasses-DFvXsFrN.js +0 -10
  357. package/dist/typographyClasses-jmoWZuXc.js +0 -10
  358. package/dist/useControlled-D1L5tREc.js +0 -31
  359. package/dist/useEnhancedEffect-CJGo-L3B.js +0 -5
  360. package/dist/useFormControl-CatNKXAi.js +0 -10
  361. package/dist/useMobilePicker-B-bNHHXB.js +0 -13498
  362. package/dist/useTheme-CWPkv7g3.js +0 -18
  363. package/dist/useThemeProps-XYgXGzjS.js +0 -27
  364. package/dist/utils-D1UMIV0b.js +0 -40
  365. package/dist/warning-Ba-7BBAN.js +0 -135
@@ -1,156 +1,138 @@
1
- import { j as q } from "../jsx-runtime-tc70JA_2.js";
2
- import { forwardRef as Q, useRef as u, useEffect as N, useCallback as y } from "react";
3
- import { brand as E } from "../theme/theme-primitives.js";
4
- class U {
5
- x;
6
- y;
7
- color;
8
- speed;
9
- size;
10
- sizeStep;
11
- minSize;
12
- maxSize;
13
- delay;
14
- counter;
15
- counterStep;
16
- isReverse;
17
- isShimmer;
18
- constructor(a, f, h, d, M, b, g) {
19
- this.x = a, this.y = f, this.color = h, this.speed = (Math.random() * 0.8 + 0.1) * d, this.size = 0, this.sizeStep = Math.random() * 0.4, this.minSize = 0.5, this.maxSize = g, this.delay = M, this.counter = 0, this.counterStep = b, this.isReverse = !1, this.isShimmer = !1;
20
- }
21
- update(a) {
22
- return a ? this.counter < this.delay ? (this.counter += this.counterStep, !0) : (this.isShimmer ? this.isReverse ? (this.size -= this.speed, this.size <= this.minSize && (this.size = this.minSize, this.isReverse = !1)) : (this.size += this.speed, this.size >= this.maxSize && (this.size = this.maxSize, this.isReverse = !0)) : this.size < this.maxSize ? this.size += this.sizeStep : this.isShimmer = !0, !0) : (this.isShimmer = !1, this.counter = 0, this.size > 0 ? (this.size -= 0.1, !0) : !1);
23
- }
24
- draw(a, f) {
25
- const h = (f - this.size) * 0.5;
26
- a.fillRect(this.x + h, this.y + h, this.size, this.size);
27
- }
28
- }
29
- const Z = Q(
30
- ({
31
- gap: n = 5,
32
- speed: a = 100,
33
- colors: f = [E[400], E[500], E[600]],
34
- loading: h = !0,
35
- src: d,
36
- alt: M = "",
37
- style: b,
38
- children: g,
39
- instant: k = !0,
40
- ...$
41
- }, p) => {
42
- const C = u(null), z = u(null), D = u(null), m = u(/* @__PURE__ */ new Map()), l = u(null), I = u(1e3 / 60), P = u(0), j = u(!1);
43
- N(() => {
44
- j.current = typeof window < "u" ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1;
45
- }, []);
46
- const O = y((e, r, c, s) => {
47
- const t = e - c, i = r - s;
48
- return t * t + i * i;
49
- }, []), V = y(
50
- (e, r, c) => {
51
- l.current && cancelAnimationFrame(l.current), P.current = performance.now();
52
- const s = () => {
53
- l.current = requestAnimationFrame(s);
54
- const t = performance.now(), i = t - P.current;
55
- if (i < I.current) return;
56
- P.current = t - i % I.current, e.clearRect(0, 0, r, c);
57
- let o = !1;
58
- m.current.forEach((x, F) => {
59
- e.fillStyle = F;
60
- for (const S of x)
61
- S.update(h) && (S.draw(e, n), o = !0);
62
- }), !h && !o && l.current && (cancelAnimationFrame(l.current), l.current = null);
63
- };
64
- s();
65
- },
66
- [h, n]
67
- ), X = y(() => {
68
- const e = C.current, r = e?.getContext("2d");
69
- if (!e || !r) return;
70
- m.current = /* @__PURE__ */ new Map();
71
- const c = j.current ? 0 : Math.max(0, Math.min(100, a)) * 1e-3, s = window.devicePixelRatio ?? 1, t = e.width / s, i = e.height / s, o = 2, x = 0.5, F = (t + i) * 0.01, S = t % n / 2, Y = i % n / 2;
72
- for (let w = S; w < t; w += n)
73
- for (let v = Y; v < i; v += n) {
74
- const R = f[Math.floor(Math.random() * f.length)];
75
- let B = 0;
76
- if (!k && !j.current) {
77
- const W = w + n / 2, G = v + n / 2, J = t / 2, K = i / 2;
78
- B = Math.sqrt(O(W, G, J, K));
79
- }
80
- const H = Math.random() * 4 + F, L = Math.random() * (o - x) + x, T = new U(w, v, R, c, B, H, L);
81
- m.current.has(R) || m.current.set(R, []), m.current.get(R).push(T);
82
- }
83
- V(r, t, i);
84
- }, [n, a, f, k, O, V]), A = y(() => {
85
- const e = C.current, r = z.current, c = e?.getContext("2d");
86
- if (!e || !r || !c) return;
87
- const s = r.getBoundingClientRect();
88
- if (s.width === 0 || s.height === 0) return;
89
- const t = Math.floor(s.width), i = Math.floor(s.height), o = window.devicePixelRatio ?? 1;
90
- e.width = t * o, e.height = i * o, e.style.width = `${t}px`, e.style.height = `${i}px`, c.setTransform(1, 0, 0, 1, 0, 0), c.scale(o, o), X();
91
- }, [X]);
92
- return N(() => {
93
- A();
94
- const e = new ResizeObserver(() => {
95
- requestAnimationFrame(() => A());
96
- });
97
- return z.current && e.observe(z.current), () => {
98
- e.disconnect(), l.current && cancelAnimationFrame(l.current);
99
- };
100
- }, [A]), /* @__PURE__ */ q.jsxs(
101
- "div",
102
- {
103
- ref: (e) => {
104
- z.current = e, typeof p == "function" ? p(e) : p && (p.current = e);
105
- },
106
- style: {
107
- position: "relative",
108
- width: "100%",
109
- height: "100%",
110
- overflow: "hidden",
111
- ...b
112
- },
113
- ...$,
114
- children: [
115
- d && /* @__PURE__ */ q.jsx(
116
- "img",
117
- {
118
- ref: D,
119
- src: d,
120
- alt: M,
121
- style: {
122
- position: "absolute",
123
- inset: 0,
124
- width: "100%",
125
- height: "100%",
126
- objectFit: "cover",
127
- display: "block"
128
- }
129
- }
130
- ),
131
- g,
132
- /* @__PURE__ */ q.jsx(
133
- "canvas",
134
- {
135
- ref: C,
136
- style: {
137
- position: "absolute",
138
- inset: 0,
139
- display: "block",
140
- width: "100%",
141
- height: "100%",
142
- pointerEvents: "none",
143
- zIndex: 1
144
- }
145
- }
146
- )
147
- ]
148
- }
149
- );
150
- }
151
- );
152
- Z.displayName = "SPixelReveal";
153
- export {
154
- Z as SPixelReveal,
155
- Z as default
156
- };
1
+ import "../createTheme-DuS5_nJb.js";
2
+ import { o as e } from "../theme-primitives-BG66N-x4.js";
3
+ import { forwardRef as t, useCallback as n, useEffect as r, useRef as i } from "react";
4
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
5
+ //#region lib/s-pixel-reveal/s-pixel-reveal.tsx
6
+ var s = class {
7
+ x;
8
+ y;
9
+ color;
10
+ speed;
11
+ size;
12
+ sizeStep;
13
+ minSize;
14
+ maxSize;
15
+ delay;
16
+ counter;
17
+ counterStep;
18
+ isReverse;
19
+ isShimmer;
20
+ constructor(e, t, n, r, i, a, o) {
21
+ this.x = e, this.y = t, this.color = n, this.speed = (Math.random() * .8 + .1) * r, this.size = 0, this.sizeStep = Math.random() * .4, this.minSize = .5, this.maxSize = o, this.delay = i, this.counter = 0, this.counterStep = a, this.isReverse = !1, this.isShimmer = !1;
22
+ }
23
+ update(e) {
24
+ return e ? this.counter < this.delay ? (this.counter += this.counterStep, !0) : (this.isShimmer ? this.isReverse ? (this.size -= this.speed, this.size <= this.minSize && (this.size = this.minSize, this.isReverse = !1)) : (this.size += this.speed, this.size >= this.maxSize && (this.size = this.maxSize, this.isReverse = !0)) : this.size < this.maxSize ? this.size += this.sizeStep : this.isShimmer = !0, !0) : (this.isShimmer = !1, this.counter = 0, this.size > 0 ? (this.size -= .1, !0) : !1);
25
+ }
26
+ draw(e, t) {
27
+ let n = (t - this.size) * .5;
28
+ e.fillRect(this.x + n, this.y + n, this.size, this.size);
29
+ }
30
+ }, c = t(({ gap: t = 5, speed: c = 100, colors: l = [
31
+ e[400],
32
+ e[500],
33
+ e[600]
34
+ ], loading: u = !0, src: d, alt: f = "", style: p, children: m, instant: h = !0, ...g }, _) => {
35
+ let v = i(null), y = i(null), b = i(null), x = i(/* @__PURE__ */ new Map()), S = i(null), C = i(1e3 / 60), w = i(0), T = i(!1);
36
+ r(() => {
37
+ T.current = typeof window < "u" ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1;
38
+ }, []);
39
+ let E = n((e, t, n, r) => {
40
+ let i = e - n, a = t - r;
41
+ return i * i + a * a;
42
+ }, []), D = n((e, n, r) => {
43
+ S.current && cancelAnimationFrame(S.current), w.current = performance.now();
44
+ let i = () => {
45
+ S.current = requestAnimationFrame(i);
46
+ let a = performance.now(), o = a - w.current;
47
+ if (o < C.current) return;
48
+ w.current = a - o % C.current, e.clearRect(0, 0, n, r);
49
+ let s = !1;
50
+ x.current.forEach((n, r) => {
51
+ e.fillStyle = r;
52
+ for (let r of n) r.update(u) && (r.draw(e, t), s = !0);
53
+ }), !u && !s && S.current && (cancelAnimationFrame(S.current), S.current = null);
54
+ };
55
+ i();
56
+ }, [u, t]), O = n(() => {
57
+ let e = v.current, n = e?.getContext("2d");
58
+ if (!e || !n) return;
59
+ x.current = /* @__PURE__ */ new Map();
60
+ let r = T.current ? 0 : Math.max(0, Math.min(100, c)) * .001, i = window.devicePixelRatio ?? 1, a = e.width / i, o = e.height / i, u = .5, d = (a + o) * .01, f = a % t / 2, p = o % t / 2;
61
+ for (let e = f; e < a; e += t) for (let n = p; n < o; n += t) {
62
+ let i = l[Math.floor(Math.random() * l.length)], c = 0;
63
+ if (!h && !T.current) {
64
+ let r = e + t / 2, i = n + t / 2, s = a / 2, l = o / 2;
65
+ c = Math.sqrt(E(r, i, s, l));
66
+ }
67
+ let f = Math.random() * 4 + d, p = Math.random() * (2 - u) + u, m = new s(e, n, i, r, c, f, p);
68
+ x.current.has(i) || x.current.set(i, []), x.current.get(i).push(m);
69
+ }
70
+ D(n, a, o);
71
+ }, [
72
+ t,
73
+ c,
74
+ l,
75
+ h,
76
+ E,
77
+ D
78
+ ]), k = n(() => {
79
+ let e = v.current, t = y.current, n = e?.getContext("2d");
80
+ if (!e || !t || !n) return;
81
+ let r = t.getBoundingClientRect();
82
+ if (r.width === 0 || r.height === 0) return;
83
+ let i = Math.floor(r.width), a = Math.floor(r.height), o = window.devicePixelRatio ?? 1;
84
+ e.width = i * o, e.height = a * o, e.style.width = `${i}px`, e.style.height = `${a}px`, n.setTransform(1, 0, 0, 1, 0, 0), n.scale(o, o), O();
85
+ }, [O]);
86
+ return r(() => {
87
+ k();
88
+ let e = new ResizeObserver(() => {
89
+ requestAnimationFrame(() => k());
90
+ });
91
+ return y.current && e.observe(y.current), () => {
92
+ e.disconnect(), S.current && cancelAnimationFrame(S.current);
93
+ };
94
+ }, [k]), /* @__PURE__ */ o("div", {
95
+ ref: (e) => {
96
+ y.current = e, typeof _ == "function" ? _(e) : _ && (_.current = e);
97
+ },
98
+ style: {
99
+ position: "relative",
100
+ width: "100%",
101
+ height: "100%",
102
+ overflow: "hidden",
103
+ ...p
104
+ },
105
+ ...g,
106
+ children: [
107
+ d && /* @__PURE__ */ a("img", {
108
+ ref: b,
109
+ src: d,
110
+ alt: f,
111
+ style: {
112
+ position: "absolute",
113
+ inset: 0,
114
+ width: "100%",
115
+ height: "100%",
116
+ objectFit: "cover",
117
+ display: "block"
118
+ }
119
+ }),
120
+ m,
121
+ /* @__PURE__ */ a("canvas", {
122
+ ref: v,
123
+ style: {
124
+ position: "absolute",
125
+ inset: 0,
126
+ display: "block",
127
+ width: "100%",
128
+ height: "100%",
129
+ pointerEvents: "none",
130
+ zIndex: 1
131
+ }
132
+ })
133
+ ]
134
+ });
135
+ });
136
+ c.displayName = "SPixelReveal";
137
+ //#endregion
138
+ export { c as SPixelReveal, c as default };
@@ -1,4 +1,3 @@
1
- import { SRadialPulseAnimate as l } from "./s-radial-pulse-animate.js";
2
- export {
3
- l as default
4
- };
1
+ import "../createTheme-DuS5_nJb.js";
2
+ import { SRadialPulseAnimate as e } from "./s-radial-pulse-animate.js";
3
+ export { e as default };
@@ -1,8 +1,10 @@
1
- import { j as n } from "../jsx-runtime-tc70JA_2.js";
2
- import { useRef as x, useEffect as y } from "react";
3
- import { keyframes as h, styled as l, Box as d } from "@mui/material";
4
- import { STextShimmer as v } from "../s-text-shimmer/s-text-shimmer.js";
5
- const b = h`
1
+ import "../createTheme-DuS5_nJb.js";
2
+ import { STextShimmer as e } from "../s-text-shimmer/s-text-shimmer.js";
3
+ import { useEffect as t, useRef as n } from "react";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ import { Box as a, keyframes as o, styled as s } from "@mui/material";
6
+ //#region lib/s-radial-pulse-animate/s-radial-pulse-animate.tsx
7
+ var c = o`
6
8
  0% {
7
9
  width: 20%;
8
10
  height: 20%;
@@ -13,121 +15,77 @@ const b = h`
13
15
  height: 100%;
14
16
  opacity: 0;
15
17
  }
16
- `, j = l(d)(({ theme: e }) => ({
17
- position: "relative",
18
- display: "flex",
19
- justifyContent: "center",
20
- alignItems: "center",
21
- borderRadius: e.shape.borderRadius,
22
- border: "1px solid",
23
- borderColor: (e.vars ?? e).palette.divider
24
- })), R = l(d)(() => ({
25
- position: "absolute",
26
- pointerEvents: "none"
27
- })), s = l(d)(({ theme: e }) => ({
28
- position: "absolute",
29
- top: "50%",
30
- left: "50%",
31
- transform: "translate(-50%, -50%)",
32
- width: "60px",
33
- height: "60px",
34
- background: (e.vars ?? e).palette.ui.pulse.radialGradient,
35
- borderRadius: "50%",
36
- animation: `${b} 3s ease-out infinite`,
37
- "&:nth-of-type(2)": {
38
- animationDelay: "1s"
39
- },
40
- "&:nth-of-type(3)": {
41
- animationDelay: "2s"
42
- },
43
- "@media (prefers-reduced-motion: reduce)": {
44
- animation: "none !important"
45
- }
46
- })), C = () => {
47
- const e = "s-radial-pulse-particles";
48
- if (document.getElementById(e)) return;
49
- const a = document.createElement("style");
50
- a.id = e, a.textContent = `
51
- .s-radial-pulse-particle {
52
- position: absolute;
53
- background: var(--s-palette-text-primary);
54
- border-radius: 50%;
55
- animation: s-radial-pulse-float 4s ease-in-out infinite;
56
- }
57
-
58
- .s-radial-pulse-particle:nth-child(odd) {
59
- animation-direction: reverse;
60
- }
61
-
62
- @keyframes s-radial-pulse-float {
63
- 0%, 100% {
64
- transform: translateY(0px) rotate(0deg);
65
- opacity: 0.5;
66
- }
67
- 50% {
68
- transform: translateY(-20px) rotate(180deg);
69
- opacity: 1;
70
- }
71
- }
72
-
73
- @media (prefers-reduced-motion: reduce) {
74
- .s-radial-pulse-particle {
75
- animation: none !important;
76
- }
77
- }
78
- `, document.head.appendChild(a);
79
- }, g = ({
80
- width: e = 300,
81
- height: a = 300,
82
- className: c,
83
- text: u = "Generating...",
84
- particleSize: r = { min: 2, max: 6 }
85
- }) => {
86
- const o = x(null);
87
- return y(() => {
88
- C();
89
- const p = () => {
90
- if (!o.current) return;
91
- const i = o.current, t = document.createElement("div");
92
- t.className = "s-radial-pulse-particle";
93
- const m = Math.random() * (r.max - r.min) + r.min;
94
- t.style.width = `${m}px`, t.style.height = `${m}px`, t.style.left = `${Math.random() * e}px`, t.style.top = `${Math.random() * a}px`, t.style.animationDelay = `${Math.random() * 4}s`, t.style.animationDuration = `${Math.random() * 3 + 2}s`, i.appendChild(t), setTimeout(() => {
95
- t.parentNode && t.parentNode.removeChild(t);
96
- }, 6e3);
97
- }, f = setInterval(p, 500);
98
- for (let i = 0; i < 4; i++) setTimeout(p, i * 100);
99
- return () => clearInterval(f);
100
- }, [e, a, r]), /* @__PURE__ */ n.jsxs(
101
- j,
102
- {
103
- ref: o,
104
- className: c,
105
- sx: {
106
- width: e,
107
- height: a
108
- },
109
- children: [
110
- /* @__PURE__ */ n.jsxs(
111
- R,
112
- {
113
- sx: {
114
- width: Math.min(e, a),
115
- height: Math.min(e, a)
116
- },
117
- children: [
118
- /* @__PURE__ */ n.jsx(s, {}),
119
- /* @__PURE__ */ n.jsx(s, {}),
120
- /* @__PURE__ */ n.jsx(s, {})
121
- ]
122
- }
123
- ),
124
- /* @__PURE__ */ n.jsx(v, { children: u })
125
- ]
126
- }
127
- );
128
- };
129
- g.displayName = "SRadialPulseAnimate";
130
- export {
131
- g as SRadialPulseAnimate,
132
- g as default
18
+ `, l = s(a)(({ theme: e }) => ({
19
+ position: "relative",
20
+ display: "flex",
21
+ justifyContent: "center",
22
+ alignItems: "center",
23
+ borderRadius: e.shape.borderRadius,
24
+ border: "1px solid",
25
+ borderColor: (e.vars ?? e).palette.divider
26
+ })), u = s(a)(() => ({
27
+ position: "absolute",
28
+ pointerEvents: "none"
29
+ })), d = s(a)(({ theme: e }) => ({
30
+ position: "absolute",
31
+ top: "50%",
32
+ left: "50%",
33
+ transform: "translate(-50%, -50%)",
34
+ width: "60px",
35
+ height: "60px",
36
+ background: (e.vars ?? e).palette.ui.pulse.radialGradient,
37
+ borderRadius: "50%",
38
+ animation: `${c} 3s ease-out infinite`,
39
+ "&:nth-of-type(2)": { animationDelay: "1s" },
40
+ "&:nth-of-type(3)": { animationDelay: "2s" },
41
+ "@media (prefers-reduced-motion: reduce)": { animation: "none !important" }
42
+ })), f = () => {
43
+ let e = "s-radial-pulse-particles";
44
+ if (document.getElementById(e)) return;
45
+ let t = document.createElement("style");
46
+ t.id = e, t.textContent = "\n .s-radial-pulse-particle {\n position: absolute;\n background: var(--s-palette-text-primary);\n border-radius: 50%;\n animation: s-radial-pulse-float 4s ease-in-out infinite;\n }\n \n .s-radial-pulse-particle:nth-child(odd) {\n animation-direction: reverse;\n }\n \n @keyframes s-radial-pulse-float {\n 0%, 100% {\n transform: translateY(0px) rotate(0deg);\n opacity: 0.5;\n }\n 50% {\n transform: translateY(-20px) rotate(180deg);\n opacity: 1;\n }\n }\n \n @media (prefers-reduced-motion: reduce) {\n .s-radial-pulse-particle {\n animation: none !important;\n }\n }\n ", document.head.appendChild(t);
47
+ }, p = ({ width: a = 300, height: o = 300, className: s, text: c = "Generating...", particleSize: p = {
48
+ min: 2,
49
+ max: 6
50
+ } }) => {
51
+ let m = n(null);
52
+ return t(() => {
53
+ f();
54
+ let e = () => {
55
+ if (!m.current) return;
56
+ let e = m.current, t = document.createElement("div");
57
+ t.className = "s-radial-pulse-particle";
58
+ let n = Math.random() * (p.max - p.min) + p.min;
59
+ t.style.width = `${n}px`, t.style.height = `${n}px`, t.style.left = `${Math.random() * a}px`, t.style.top = `${Math.random() * o}px`, t.style.animationDelay = `${Math.random() * 4}s`, t.style.animationDuration = `${Math.random() * 3 + 2}s`, e.appendChild(t), setTimeout(() => {
60
+ t.parentNode && t.parentNode.removeChild(t);
61
+ }, 6e3);
62
+ }, t = setInterval(e, 500);
63
+ for (let t = 0; t < 4; t++) setTimeout(e, t * 100);
64
+ return () => clearInterval(t);
65
+ }, [
66
+ a,
67
+ o,
68
+ p
69
+ ]), /* @__PURE__ */ i(l, {
70
+ ref: m,
71
+ className: s,
72
+ sx: {
73
+ width: a,
74
+ height: o
75
+ },
76
+ children: [/* @__PURE__ */ i(u, {
77
+ sx: {
78
+ width: Math.min(a, o),
79
+ height: Math.min(a, o)
80
+ },
81
+ children: [
82
+ /* @__PURE__ */ r(d, {}),
83
+ /* @__PURE__ */ r(d, {}),
84
+ /* @__PURE__ */ r(d, {})
85
+ ]
86
+ }), /* @__PURE__ */ r(e, { children: c })]
87
+ });
133
88
  };
89
+ p.displayName = "SRadialPulseAnimate";
90
+ //#endregion
91
+ export { p as SRadialPulseAnimate, p as default };
@@ -1,4 +1,2 @@
1
1
  import { SRating as e } from "./s-rating.js";
2
- export {
3
- e as default
4
- };
2
+ export { e as default };
@@ -1,9 +1,11 @@
1
- import { j as o } from "../jsx-runtime-tc70JA_2.js";
2
- import { forwardRef as a } from "react";
3
- import { Rating as i } from "@mui/material";
4
- const m = a((r, t) => /* @__PURE__ */ o.jsx(i, { ref: t, ...r }));
5
- m.displayName = "SRating";
6
- export {
7
- m as SRating,
8
- m as default
9
- };
1
+ import { forwardRef as e } from "react";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ import { Rating as n } from "@mui/material";
4
+ //#region lib/s-rating/s-rating.tsx
5
+ var r = e((e, r) => /* @__PURE__ */ t(n, {
6
+ ref: r,
7
+ ...e
8
+ }));
9
+ r.displayName = "SRating";
10
+ //#endregion
11
+ export { r as SRating, r as default };
@@ -1,4 +1,3 @@
1
- import { SReview as f } from "./s-review.js";
2
- export {
3
- f as default
4
- };
1
+ import "../createTheme-DuS5_nJb.js";
2
+ import { t as e } from "../s-review-DOBlCEU2.js";
3
+ export { e as default };