@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,252 +1,3 @@
1
- import { j as c } from "../jsx-runtime-tc70JA_2.js";
2
- import * as b from "react";
3
- import g, { createElement as j } from "react";
4
- import { useTranslation as E } from "react-i18next";
5
- import { SIconButton as F } from "../s-icon-button/s-icon-button.js";
6
- import { L as R, M as k } from "../Menu-GVFDMHCN.js";
7
- import { g as N, M as P } from "../MenuItem-2wG8I2HO.js";
8
- import { P as a } from "../createTheme-DgoJyWM-.js";
9
- import { c as _ } from "../clsx-OuTLNxxd.js";
10
- import { u as A, c as D, m as M } from "../DefaultPropsProvider-DPuuPIbS.js";
11
- import { s as B } from "../styled-8Y5KoVix.js";
12
- import { T as V } from "../Typography-PcmlIqm1.js";
13
- const $ = (e) => {
14
- const {
15
- alignItems: t,
16
- classes: o
17
- } = e;
18
- return D({
19
- root: ["root", t === "flex-start" && "alignItemsFlexStart"]
20
- }, N, o);
21
- }, z = B("div", {
22
- name: "MuiListItemIcon",
23
- slot: "Root",
24
- overridesResolver: (e, t) => {
25
- const {
26
- ownerState: o
27
- } = e;
28
- return [t.root, o.alignItems === "flex-start" && t.alignItemsFlexStart];
29
- }
30
- })(M(({
31
- theme: e
32
- }) => ({
33
- minWidth: 56,
34
- color: (e.vars || e).palette.action.active,
35
- flexShrink: 0,
36
- display: "inline-flex",
37
- variants: [{
38
- props: {
39
- alignItems: "flex-start"
40
- },
41
- style: {
42
- marginTop: 8
43
- }
44
- }]
45
- }))), S = /* @__PURE__ */ b.forwardRef(function(t, o) {
46
- const n = A({
47
- props: t,
48
- name: "MuiListItemIcon"
49
- }), {
50
- className: s,
51
- ...i
52
- } = n, d = b.useContext(R), l = {
53
- ...n,
54
- alignItems: d.alignItems
55
- }, p = $(l);
56
- return /* @__PURE__ */ c.jsx(z, {
57
- className: _(p.root, s),
58
- ownerState: l,
59
- ref: o,
60
- ...i
61
- });
62
- });
63
- process.env.NODE_ENV !== "production" && (S.propTypes = {
64
- // ┌────────────────────────────── Warning ──────────────────────────────┐
65
- // │ These PropTypes are generated from the TypeScript type definitions. │
66
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
67
- // └─────────────────────────────────────────────────────────────────────┘
68
- /**
69
- * The content of the component, normally `Icon`, `SvgIcon`,
70
- * or a `@mui/icons-material` SVG icon element.
71
- */
72
- children: a.node,
73
- /**
74
- * Override or extend the styles applied to the component.
75
- */
76
- classes: a.object,
77
- /**
78
- * @ignore
79
- */
80
- className: a.string,
81
- /**
82
- * The system prop that allows defining system overrides as well as additional CSS styles.
83
- */
84
- sx: a.oneOfType([a.arrayOf(a.oneOfType([a.func, a.object, a.bool])), a.func, a.object])
85
- });
86
- function x() {
87
- return x = Object.assign ? Object.assign.bind() : function(e) {
88
- for (var t = 1; t < arguments.length; t++) {
89
- var o = arguments[t];
90
- for (var n in o)
91
- Object.prototype.hasOwnProperty.call(o, n) && (e[n] = o[n]);
92
- }
93
- return e;
94
- }, x.apply(this, arguments);
95
- }
96
- function W(e, t) {
97
- if (e == null) return {};
98
- var o = {}, n = Object.keys(e), s, i;
99
- for (i = 0; i < n.length; i++)
100
- s = n[i], !(t.indexOf(s) >= 0) && (o[s] = e[s]);
101
- return o;
102
- }
103
- var G = ["cdnSuffix", "cdnUrl", "countryCode", "style", "svg"], H = "https://cdn.jsdelivr.net/gh/lipis/flag-icons/flags/4x3/", K = "svg", X = 127397, I = function(t) {
104
- var o = t.cdnSuffix, n = o === void 0 ? K : o, s = t.cdnUrl, i = s === void 0 ? H : s, d = t.countryCode, l = t.style, p = t.svg, r = p === void 0 ? !1 : p, u = W(t, G);
105
- if (typeof d != "string")
106
- return null;
107
- if (r) {
108
- var m = "" + i + d.toLowerCase() + "." + n;
109
- return j("img", Object.assign({}, u, {
110
- src: m,
111
- style: x({
112
- display: "inline-block",
113
- width: "1em",
114
- height: "1em",
115
- verticalAlign: "middle"
116
- }, l)
117
- }));
118
- }
119
- var h = d.toUpperCase().replace(/./g, function(v) {
120
- return String.fromCodePoint(v.charCodeAt(0) + X);
121
- });
122
- return j("span", Object.assign({
123
- role: "img"
124
- }, u, {
125
- style: x({
126
- display: "inline-block",
127
- fontSize: "1em",
128
- lineHeight: "1em",
129
- verticalAlign: "middle"
130
- }, l)
131
- }), h);
132
- };
133
- const O = [
134
- { code: "en", label: "English", countryCode: "GB" },
135
- { code: "vi", label: "Vietnamese", countryCode: "VN" }
136
- ], q = ({
137
- anchorEl: e,
138
- onClose: t,
139
- open: o = !1,
140
- onLanguageChange: n,
141
- languages: s = O,
142
- currentLanguage: i,
143
- menuWidth: d = "220px",
144
- flagSize: l = 28
145
- }) => {
146
- const p = g.useCallback(
147
- (r) => {
148
- n?.(r), t?.();
149
- },
150
- [n, t]
151
- );
152
- return /* @__PURE__ */ c.jsx(
153
- k,
154
- {
155
- anchorEl: e,
156
- anchorOrigin: { horizontal: "right", vertical: "bottom" },
157
- onClose: t,
158
- open: o,
159
- slotProps: { paper: { sx: { width: d } } },
160
- transformOrigin: { horizontal: "right", vertical: "top" },
161
- children: s.map((r) => {
162
- const u = i === r.code;
163
- return /* @__PURE__ */ c.jsxs(
164
- P,
165
- {
166
- onClick: () => {
167
- p(r.code);
168
- },
169
- selected: u,
170
- sx: { gap: 1 },
171
- children: [
172
- /* @__PURE__ */ c.jsx(S, { children: /* @__PURE__ */ c.jsx(
173
- I,
174
- {
175
- countryCode: r.countryCode,
176
- svg: !0,
177
- style: { width: l, height: l },
178
- title: r.label
179
- }
180
- ) }),
181
- /* @__PURE__ */ c.jsx(V, { variant: "subtitle2", children: r.label })
182
- ]
183
- },
184
- r.code
185
- );
186
- })
187
- }
188
- );
189
- }, J = ({
190
- languages: e = O,
191
- onLanguageChange: t,
192
- currentLanguage: o,
193
- tooltipText: n,
194
- buttonFlagSize: s = 16,
195
- menuFlagSize: i = 20,
196
- menuWidth: d = "220px",
197
- sx: l,
198
- useI18n: p = !0
199
- }) => {
200
- const r = E(), u = p ? r.t : null, m = p ? r.i18n : null, [h, v] = g.useState(null), y = o ?? m?.language ?? e[0]?.code ?? "en", C = e.find((f) => f.code === y) || e[0], L = g.useCallback((f) => {
201
- v(f.currentTarget);
202
- }, []), T = g.useCallback(() => {
203
- v(null);
204
- }, []), w = g.useCallback(
205
- (f) => {
206
- t ? t(f) : m && m.changeLanguage(f);
207
- },
208
- [t, m]
209
- ), U = n ?? (u ? u("header:language.tooltip") : "Change language");
210
- return /* @__PURE__ */ c.jsxs(g.Fragment, { children: [
211
- /* @__PURE__ */ c.jsx(
212
- F,
213
- {
214
- onClick: L,
215
- sx: { display: { xs: "none", lg: "inline-flex" }, ...l },
216
- tooltipOptions: {
217
- title: U,
218
- placement: "top"
219
- },
220
- children: /* @__PURE__ */ c.jsx(
221
- I,
222
- {
223
- countryCode: C?.countryCode || "US",
224
- svg: !0,
225
- style: { width: s, height: s },
226
- title: C?.label || y
227
- }
228
- )
229
- }
230
- ),
231
- /* @__PURE__ */ c.jsx(
232
- q,
233
- {
234
- anchorEl: h,
235
- onClose: T,
236
- open: !!h,
237
- onLanguageChange: w,
238
- languages: e,
239
- currentLanguage: y,
240
- menuWidth: d,
241
- flagSize: i
242
- }
243
- )
244
- ] });
245
- };
246
- J.displayName = "SLanguageSwitcher";
247
- export {
248
- q as SLanguagePopover,
249
- J as SLanguageSwitcher,
250
- J as default,
251
- O as defaultLanguageOptions
252
- };
1
+ import "../createTheme-DuS5_nJb.js";
2
+ import { n as e, r as t, t as n } from "../s-language-switcher-BJP1r1la.js";
3
+ export { n as SLanguagePopover, e as SLanguageSwitcher, e as default, t as defaultLanguageOptions };
@@ -0,0 +1,198 @@
1
+ import { n as e } from "./chunk-efA98nb6.js";
2
+ import { g as t } from "./createTheme-DuS5_nJb.js";
3
+ import { n, o as r, t as i } from "./DefaultPropsProvider-DpRXvTbj.js";
4
+ import { m as a, t as o } from "./Menu-Dhh4e9H1.js";
5
+ import { r as s } from "./useTheme-BES_k_99.js";
6
+ import { t as c } from "./styled-Dz7rwAje.js";
7
+ import { t as l } from "./Typography-CswuXQLF.js";
8
+ import { SIconButton as u } from "./s-icon-button/s-icon-button.js";
9
+ import { n as d, t as f } from "./MenuItem-aaIy8lan.js";
10
+ import * as p from "react";
11
+ import m, { createElement as h } from "react";
12
+ import { jsx as g, jsxs as _ } from "react/jsx-runtime";
13
+ import { useTranslation as v } from "react-i18next";
14
+ //#region ../../node_modules/@mui/material/esm/ListItemIcon/ListItemIcon.js
15
+ var y = /* @__PURE__ */ e(t()), b = (e) => {
16
+ let { alignItems: t, classes: n } = e;
17
+ return r({ root: ["root", t === "flex-start" && "alignItemsFlexStart"] }, d, n);
18
+ }, x = c("div", {
19
+ name: "MuiListItemIcon",
20
+ slot: "Root",
21
+ overridesResolver: (e, t) => {
22
+ let { ownerState: n } = e;
23
+ return [t.root, n.alignItems === "flex-start" && t.alignItemsFlexStart];
24
+ }
25
+ })(n(({ theme: e }) => ({
26
+ minWidth: 56,
27
+ color: (e.vars || e).palette.action.active,
28
+ flexShrink: 0,
29
+ display: "inline-flex",
30
+ variants: [{
31
+ props: { alignItems: "flex-start" },
32
+ style: { marginTop: 8 }
33
+ }]
34
+ }))), S = /* @__PURE__ */ p.forwardRef(function(e, t) {
35
+ let n = i({
36
+ props: e,
37
+ name: "MuiListItemIcon"
38
+ }), { className: r, ...o } = n, c = p.useContext(a), l = {
39
+ ...n,
40
+ alignItems: c.alignItems
41
+ };
42
+ return /* @__PURE__ */ g(x, {
43
+ className: s(b(l).root, r),
44
+ ownerState: l,
45
+ ref: t,
46
+ ...o
47
+ });
48
+ });
49
+ process.env.NODE_ENV !== "production" && (S.propTypes = {
50
+ children: y.default.node,
51
+ classes: y.default.object,
52
+ className: y.default.string,
53
+ sx: y.default.oneOfType([
54
+ y.default.arrayOf(y.default.oneOfType([
55
+ y.default.func,
56
+ y.default.object,
57
+ y.default.bool
58
+ ])),
59
+ y.default.func,
60
+ y.default.object
61
+ ])
62
+ });
63
+ //#endregion
64
+ //#region ../../node_modules/react-country-flag/dist/react-country-flag.esm.js
65
+ function C() {
66
+ return C = Object.assign ? Object.assign.bind() : function(e) {
67
+ for (var t = 1; t < arguments.length; t++) {
68
+ var n = arguments[t];
69
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
70
+ }
71
+ return e;
72
+ }, C.apply(this, arguments);
73
+ }
74
+ function w(e, t) {
75
+ if (e == null) return {};
76
+ var n = {}, r = Object.keys(e), i, a;
77
+ for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
78
+ return n;
79
+ }
80
+ var T = [
81
+ "cdnSuffix",
82
+ "cdnUrl",
83
+ "countryCode",
84
+ "style",
85
+ "svg"
86
+ ], E = "https://cdn.jsdelivr.net/gh/lipis/flag-icons/flags/4x3/", D = "svg", O = 127397, k = function(e) {
87
+ var t = e.cdnSuffix, n = t === void 0 ? D : t, r = e.cdnUrl, i = r === void 0 ? E : r, a = e.countryCode, o = e.style, s = e.svg, c = s === void 0 ? !1 : s, l = w(e, T);
88
+ if (typeof a != "string") return null;
89
+ if (c) {
90
+ var u = "" + i + a.toLowerCase() + "." + n;
91
+ return h("img", Object.assign({}, l, {
92
+ src: u,
93
+ style: C({
94
+ display: "inline-block",
95
+ width: "1em",
96
+ height: "1em",
97
+ verticalAlign: "middle"
98
+ }, o)
99
+ }));
100
+ }
101
+ var d = a.toUpperCase().replace(/./g, function(e) {
102
+ return String.fromCodePoint(e.charCodeAt(0) + O);
103
+ });
104
+ return h("span", Object.assign({ role: "img" }, l, { style: C({
105
+ display: "inline-block",
106
+ fontSize: "1em",
107
+ lineHeight: "1em",
108
+ verticalAlign: "middle"
109
+ }, o) }), d);
110
+ }, A = [{
111
+ code: "en",
112
+ label: "English",
113
+ countryCode: "GB"
114
+ }, {
115
+ code: "vi",
116
+ label: "Vietnamese",
117
+ countryCode: "VN"
118
+ }], j = ({ anchorEl: e, onClose: t, open: n = !1, onLanguageChange: r, languages: i = A, currentLanguage: a, menuWidth: s = "220px", flagSize: c = 28 }) => {
119
+ let u = m.useCallback((e) => {
120
+ r?.(e), t?.();
121
+ }, [r, t]);
122
+ return /* @__PURE__ */ g(o, {
123
+ anchorEl: e,
124
+ anchorOrigin: {
125
+ horizontal: "right",
126
+ vertical: "bottom"
127
+ },
128
+ onClose: t,
129
+ open: n,
130
+ slotProps: { paper: { sx: { width: s } } },
131
+ transformOrigin: {
132
+ horizontal: "right",
133
+ vertical: "top"
134
+ },
135
+ children: i.map((e) => /* @__PURE__ */ _(f, {
136
+ onClick: () => {
137
+ u(e.code);
138
+ },
139
+ selected: a === e.code,
140
+ sx: { gap: 1 },
141
+ children: [/* @__PURE__ */ g(S, { children: /* @__PURE__ */ g(k, {
142
+ countryCode: e.countryCode,
143
+ svg: !0,
144
+ style: {
145
+ width: c,
146
+ height: c
147
+ },
148
+ title: e.label
149
+ }) }), /* @__PURE__ */ g(l, {
150
+ variant: "subtitle2",
151
+ children: e.label
152
+ })]
153
+ }, e.code))
154
+ });
155
+ }, M = ({ languages: e = A, onLanguageChange: t, currentLanguage: n, tooltipText: r, buttonFlagSize: i = 16, menuFlagSize: a = 20, menuWidth: o = "220px", sx: s, useI18n: c = !0 }) => {
156
+ let l = v(), d = c ? l.t : null, f = c ? l.i18n : null, [p, h] = m.useState(null), y = n ?? f?.language ?? e[0]?.code ?? "en", b = e.find((e) => e.code === y) || e[0], x = m.useCallback((e) => {
157
+ h(e.currentTarget);
158
+ }, []), S = m.useCallback(() => {
159
+ h(null);
160
+ }, []), C = m.useCallback((e) => {
161
+ t ? t(e) : f && f.changeLanguage(e);
162
+ }, [t, f]), w = r ?? (d ? d("header:language.tooltip") : "Change language");
163
+ return /* @__PURE__ */ _(m.Fragment, { children: [/* @__PURE__ */ g(u, {
164
+ onClick: x,
165
+ sx: {
166
+ display: {
167
+ xs: "none",
168
+ lg: "inline-flex"
169
+ },
170
+ ...s
171
+ },
172
+ tooltipOptions: {
173
+ title: w,
174
+ placement: "top"
175
+ },
176
+ children: /* @__PURE__ */ g(k, {
177
+ countryCode: b?.countryCode || "US",
178
+ svg: !0,
179
+ style: {
180
+ width: i,
181
+ height: i
182
+ },
183
+ title: b?.label || y
184
+ })
185
+ }), /* @__PURE__ */ g(j, {
186
+ anchorEl: p,
187
+ onClose: S,
188
+ open: !!p,
189
+ onLanguageChange: C,
190
+ languages: e,
191
+ currentLanguage: y,
192
+ menuWidth: o,
193
+ flagSize: a
194
+ })] });
195
+ };
196
+ M.displayName = "SLanguageSwitcher";
197
+ //#endregion
198
+ export { M as n, A as r, j as t };
@@ -1,4 +1,2 @@
1
- import { default as o } from "./s-lazy-image.js";
2
- export {
3
- o as default
4
- };
1
+ import e from "./s-lazy-image.js";
2
+ export { e as default };
@@ -1,57 +1,42 @@
1
- import { j as a } from "../jsx-runtime-tc70JA_2.js";
2
- import { useId as j, useState as y } from "react";
3
- import { useTheme as L, Box as u, Skeleton as I } from "@mui/material";
4
- const S = ({
5
- src: n,
6
- variant: e = "rounded",
7
- height: o = "100%",
8
- width: s = "100%",
9
- style: r,
10
- minWidth: d = "auto",
11
- minHeight: m = "auto",
12
- onLoad: l,
13
- ...p
14
- }) => {
15
- const c = j(), x = L(), [t, i] = y(!1);
16
- return /* @__PURE__ */ a.jsxs(u, { height: o, width: s, children: [
17
- !t && /* @__PURE__ */ a.jsx(
18
- I,
19
- {
20
- variant: e,
21
- id: `image-skeleton-${c}`,
22
- animation: "wave",
23
- style: {
24
- height: o,
25
- width: s,
26
- minWidth: d,
27
- minHeight: m,
28
- ...r
29
- }
30
- }
31
- ),
32
- /* @__PURE__ */ a.jsx(
33
- u,
34
- {
35
- component: "img",
36
- src: n,
37
- style: {
38
- height: o,
39
- width: s,
40
- minWidth: d,
41
- minHeight: m,
42
- display: t ? "block" : "none",
43
- borderRadius: e === "circular" ? "50%" : e === "rounded" ? x.shape.borderRadius : "0px",
44
- ...r
45
- },
46
- onLoad: (f) => {
47
- i(!0), l?.(f);
48
- },
49
- ...p
50
- }
51
- )
52
- ] });
53
- };
54
- S.displayName = "SLazyImage";
55
- export {
56
- S as default
1
+ import { useId as e, useState as t } from "react";
2
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
3
+ import { Box as i, Skeleton as a, useTheme as o } from "@mui/material";
4
+ //#region lib/s-lazy-image/s-lazy-image.tsx
5
+ var s = ({ src: s, variant: c = "rounded", height: l = "100%", width: u = "100%", style: d, minWidth: f = "auto", minHeight: p = "auto", onLoad: m, ...h }) => {
6
+ let g = e(), _ = o(), [v, y] = t(!1);
7
+ return /* @__PURE__ */ r(i, {
8
+ height: l,
9
+ width: u,
10
+ children: [!v && /* @__PURE__ */ n(a, {
11
+ variant: c,
12
+ id: `image-skeleton-${g}`,
13
+ animation: "wave",
14
+ style: {
15
+ height: l,
16
+ width: u,
17
+ minWidth: f,
18
+ minHeight: p,
19
+ ...d
20
+ }
21
+ }), /* @__PURE__ */ n(i, {
22
+ component: "img",
23
+ src: s,
24
+ style: {
25
+ height: l,
26
+ width: u,
27
+ minWidth: f,
28
+ minHeight: p,
29
+ display: v ? "block" : "none",
30
+ borderRadius: c === "circular" ? "50%" : c === "rounded" ? _.shape.borderRadius : "0px",
31
+ ...d
32
+ },
33
+ onLoad: (e) => {
34
+ y(!0), m?.(e);
35
+ },
36
+ ...h
37
+ })]
38
+ });
57
39
  };
40
+ s.displayName = "SLazyImage";
41
+ //#endregion
42
+ export { s as default };
@@ -1,4 +1,2 @@
1
- import { SLink as f } from "./s-link.js";
2
- export {
3
- f as default
4
- };
1
+ import { SLink as e } from "./s-link.js";
2
+ export { e as default };
@@ -1,37 +1,30 @@
1
- import { j as r } from "../jsx-runtime-tc70JA_2.js";
2
- import { Typography as m, Link as l } from "@mui/material";
3
- const y = ({
4
- onClick: o,
5
- beforeText: i = "",
6
- afterText: t = "",
7
- mainText: e = "",
8
- href: n = "#",
9
- component: s = "a",
10
- target: a,
11
- color: p = "text.secondary",
12
- linkColor: d = void 0,
13
- variant: x = "body2",
14
- lineHeight: c
15
- }) => /* @__PURE__ */ r.jsxs(m, { variant: x, lineHeight: c, color: p, children: [
16
- i,
17
- " ",
18
- /* @__PURE__ */ r.jsx(
19
- l,
20
- {
21
- href: n,
22
- onClick: o,
23
- sx: { cursor: "pointer", fontSize: "inherit" },
24
- component: s,
25
- target: a,
26
- color: d,
27
- children: e
28
- }
29
- ),
30
- " ",
31
- t
32
- ] });
33
- y.displayName = "SLink";
34
- export {
35
- y as SLink,
36
- y as default
37
- };
1
+ import "react";
2
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
3
+ import { Link as n, Typography as r } from "@mui/material";
4
+ //#region lib/s-link/s-link.tsx
5
+ var i = ({ onClick: i, beforeText: a = "", afterText: o = "", mainText: s = "", href: c = "#", component: l = "a", target: u, color: d = "text.secondary", linkColor: f = void 0, variant: p = "body2", lineHeight: m }) => /* @__PURE__ */ t(r, {
6
+ variant: p,
7
+ lineHeight: m,
8
+ color: d,
9
+ children: [
10
+ a,
11
+ " ",
12
+ /* @__PURE__ */ e(n, {
13
+ href: c,
14
+ onClick: i,
15
+ sx: {
16
+ cursor: "pointer",
17
+ fontSize: "inherit"
18
+ },
19
+ component: l,
20
+ target: u,
21
+ color: f,
22
+ children: s
23
+ }),
24
+ " ",
25
+ o
26
+ ]
27
+ });
28
+ i.displayName = "SLink";
29
+ //#endregion
30
+ export { i as SLink, i as default };
@@ -1,4 +1,3 @@
1
- import { SLocalizationProvider as r } from "./s-localization-provider.js";
2
- export {
3
- r as default
4
- };
1
+ import "../createTheme-DuS5_nJb.js";
2
+ import { t as e } from "../s-localization-provider-CeOR72Ti.js";
3
+ export { e as default };