@solostylist/ui-kit 2.0.1 → 2.0.2

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 (379) hide show
  1. package/dist/Add-CEnTWsXs.js +6 -0
  2. package/dist/ArrowUpward-udL1ltj2.js +6 -0
  3. package/dist/Box-9oeZgA1U.js +46 -0
  4. package/dist/Button-DaLr1m20.js +534 -0
  5. package/dist/ButtonBase-DovDC6-1.js +700 -0
  6. package/dist/Checkbox-C-Xjbzzh.js +152 -0
  7. package/dist/ChevronRight-DsPfsFKB.js +6 -0
  8. package/dist/Close-CIYOM-Sc.js +6 -0
  9. package/dist/Collapse-DPUr1cbP.js +266 -0
  10. package/dist/ContentCopy-Hlh3azVb.js +6 -0
  11. package/dist/DefaultPropsProvider-ebWx4_5E.js +128 -0
  12. package/dist/DialogContent-b3xbJVC6.js +450 -0
  13. package/dist/Download-D9PkFi7a.js +6 -0
  14. package/dist/ExpandMore-sOgvEha9.js +6 -0
  15. package/dist/Favorite-BP343hjM.js +6 -0
  16. package/dist/FavoriteBorder-D15j9xEL.js +6 -0
  17. package/dist/FormControl-DwMfZCiz.js +215 -0
  18. package/dist/FormControlLabel-Ihga1FTB.js +173 -0
  19. package/dist/Grow-BQR7x52V.js +121 -0
  20. package/dist/IconButton-CE-4GamO.js +448 -0
  21. package/dist/InfoOutlined-lpvhO6P8.js +6 -0
  22. package/dist/List-RNcZhRdr.js +105 -0
  23. package/dist/Menu-CnyB4SDS.js +180 -0
  24. package/dist/MenuItem-Ck30dBOR.js +224 -0
  25. package/dist/MenuList-Cc98uWXq.js +160 -0
  26. package/dist/Modal-CD2EBfU8.js +702 -0
  27. package/dist/Paper-_3qggtBp.js +115 -0
  28. package/dist/Popover-BFdKSYI5.js +340 -0
  29. package/dist/Popper-DYNAMSDd.js +1351 -0
  30. package/dist/Portal-i_wgIe9-.js +49 -0
  31. package/dist/Remove-DDEn8ek8.js +6 -0
  32. package/dist/RtlProvider-B7uVJXUY.js +19 -0
  33. package/dist/Skeleton-iZFynl7z.js +220 -0
  34. package/dist/Stack-C0LGzM4c.js +158 -0
  35. package/dist/SwitchBase-CjWtDdmE.js +198 -0
  36. package/dist/Tooltip-B1sn94L0.js +448 -0
  37. package/dist/Typography-_P0svrkO.js +168 -0
  38. package/dist/UnfoldMoreRounded-CuCrdxoy.js +6 -0
  39. package/dist/appendOwnerState-CFQTq3pb.js +17 -0
  40. package/dist/assets/stripe-input.css +1 -0
  41. package/dist/autocomplete-BgARERpp.js +43 -0
  42. package/dist/avatar-XNOdbbRz.js +10 -0
  43. package/dist/buttonBaseClasses-B90LjsNK.js +13 -0
  44. package/dist/capitalize-C0baBJCm.js +5 -0
  45. package/dist/chainPropTypes-CkMRtDjQ.js +8 -0
  46. package/dist/checkbox-D1U_JKqs.js +88 -0
  47. package/dist/checkboxClasses-B1up2lUn.js +18 -0
  48. package/dist/chunk-C_CI6nMA.js +13 -0
  49. package/dist/clsx-DGZSe4Nt.js +16 -0
  50. package/dist/colorManipulator-DmUjcif3.js +129 -0
  51. package/dist/contains-DnqPQsQU.js +16 -0
  52. package/dist/createSimplePaletteValueFilter-DFvyXHoZ.js +14 -0
  53. package/dist/createSvgIcon-3y-gS0r1.js +155 -0
  54. package/dist/createTheme-xB2Em0Na.js +1869 -0
  55. package/dist/defaultTheme-BaGcIzCh.js +210 -0
  56. package/dist/elementAcceptingRef-pKEY6jPR.js +25 -0
  57. package/dist/elementTypeAcceptingRef-xl_04Y5-.js +19 -0
  58. package/dist/exactProp-C_IsucXf.js +13 -0
  59. package/dist/extends-DXMyyJCW.js +12 -0
  60. package/dist/field-label-styles-4praXMaE.js +50 -0
  61. package/dist/formLabelClasses-AuZHWfTs.js +18 -0
  62. package/dist/generateUtilityClass-PAIOm1jC.js +34 -0
  63. package/dist/generateUtilityClasses-DvX505Gy.js +10 -0
  64. package/dist/getActiveElement-BfBkhgy6.js +8 -0
  65. package/dist/{gradients-DSnBONEQ.js → gradients-mQAYCK0_.js} +1 -1
  66. package/dist/iconButtonClasses-CVVRFXRo.js +27 -0
  67. package/dist/inputAdornmentClasses-BbB8s-Z4.js +19 -0
  68. package/dist/inputBaseClasses-Ce_jjdp9.js +25 -0
  69. package/dist/integerPropType-CCkQD1JY.js +27 -0
  70. package/dist/isEventHandler-QShLXBxE.js +7 -0
  71. package/dist/isFocusVisible-4OIE8TST.js +11 -0
  72. package/dist/isLayoutSupported-Btg2X3QE.js +6 -0
  73. package/dist/isMuiElement-CPjhi284.js +10 -0
  74. package/dist/main.js +1 -1
  75. package/dist/mega-menu-trigger-BcOo8I5_.js +53 -0
  76. package/dist/memoTheme-qFyKAk7y.js +15 -0
  77. package/dist/mergeSlotProps-DC8r4QzS.js +45 -0
  78. package/dist/monthCalendarClasses-b964KRbc.js +14 -0
  79. package/dist/objectWithoutPropertiesLoose-q4Zwd1RV.js +12 -0
  80. package/dist/outlinedInputClasses-ci1zDasn.js +17 -0
  81. package/dist/ownerDocument-CJjQZweZ.js +6 -0
  82. package/dist/ownerDocument-pYjJiXem.js +5 -0
  83. package/dist/ownerWindow-SSeeoqPT.js +18 -0
  84. package/dist/palettes/index.js +1 -1
  85. package/dist/{palettes-CJLuEy1m.js → palettes-B1FcGUYs.js} +163 -163
  86. package/dist/pickersCalendarHeaderClasses-BAiPN_oY.js +12 -0
  87. package/dist/prop-types-BzYPyWN7.js +516 -0
  88. package/dist/refType-j5S9pc_e.js +6 -0
  89. package/dist/resolveProps-7jIA45vn.js +30 -0
  90. package/dist/s-accordion/index.js +1 -1
  91. package/dist/s-accordion/s-accordion.js +2 -70
  92. package/dist/s-accordion-1oLxQhod.js +487 -0
  93. package/dist/s-action-overlay/s-action-overlay.js +21 -21
  94. package/dist/s-animated-gradient-text/index.d.ts +2 -0
  95. package/dist/s-animated-gradient-text/index.js +2 -0
  96. package/dist/s-animated-gradient-text/s-animated-gradient-text.d.ts +64 -0
  97. package/dist/s-animated-gradient-text/s-animated-gradient-text.js +93 -0
  98. package/dist/s-announcement-bar/index.d.ts +2 -0
  99. package/dist/s-announcement-bar/index.js +2 -0
  100. package/dist/s-announcement-bar/s-announcement-bar.d.ts +113 -0
  101. package/dist/s-announcement-bar/s-announcement-bar.js +275 -0
  102. package/dist/s-autocomplete/s-autocomplete.js +1 -1
  103. package/dist/s-avatar/s-avatar.js +17 -17
  104. package/dist/s-blur-text/s-blur-text.js +16 -16
  105. package/dist/s-brand-logo/index.js +1 -1
  106. package/dist/s-brand-logo/s-brand-logo.js +1 -1
  107. package/dist/s-breadcrumbs/s-breadcrumbs.js +19 -19
  108. package/dist/s-carousel/index.js +1 -1
  109. package/dist/s-carousel/s-carousel.d.ts +2 -0
  110. package/dist/s-carousel/s-carousel.js +2 -184
  111. package/dist/s-carousel-CAyAl3ka.js +1355 -0
  112. package/dist/s-category-card/s-category-card.js +22 -22
  113. package/dist/s-chat-input/index.js +1 -1
  114. package/dist/s-chat-input/s-chat-input.js +2 -398
  115. package/dist/s-chat-input-T3gyan60.js +419 -0
  116. package/dist/s-chat-message/index.js +1 -1
  117. package/dist/s-chat-message/s-chat-message.js +2 -314
  118. package/dist/s-chat-message-NFTpNgt5.js +315 -0
  119. package/dist/s-checkbox/s-checkbox.js +19 -18
  120. package/dist/s-chips/index.js +1 -1
  121. package/dist/s-chips/s-chips.js +2 -174
  122. package/dist/s-chips-Dqq1fgz-.js +176 -0
  123. package/dist/s-code-block/index.js +1 -1
  124. package/dist/s-code-block/s-code-block.js +2 -103
  125. package/dist/s-code-block-DyDtctGG.js +658 -0
  126. package/dist/s-comment-message/index.js +1 -1
  127. package/dist/s-comment-message/s-comment-message.js +2 -189
  128. package/dist/s-comment-message-DpCVBKiE.js +192 -0
  129. package/dist/s-copyable-text/s-copyable-text.js +18 -18
  130. package/dist/s-countdown/s-count-box.js +18 -18
  131. package/dist/s-data-table/index.js +1 -1
  132. package/dist/s-data-table/s-data-table.js +2 -213
  133. package/dist/s-data-table-D4V58HFR.js +805 -0
  134. package/dist/s-date-picker/index.js +1 -1
  135. package/dist/s-date-picker/s-date-picker.js +2 -106
  136. package/dist/s-date-picker-BFIQOA8C.js +657 -0
  137. package/dist/s-datetime-picker/index.js +1 -1
  138. package/dist/s-datetime-picker/s-datetime-picker.js +2 -108
  139. package/dist/s-datetime-picker-zfg7BEOW.js +3886 -0
  140. package/dist/s-dialog/index.js +1 -1
  141. package/dist/s-dialog/s-dialog.js +2 -80
  142. package/dist/s-dialog-BNlXsVVP.js +123 -0
  143. package/dist/s-dialog-confirm/s-dialog-confirm.js +33 -32
  144. package/dist/s-dialog-message/s-dialog-message.js +32 -31
  145. package/dist/s-drawer/index.d.ts +3 -0
  146. package/dist/s-drawer/index.js +2 -0
  147. package/dist/s-drawer/s-drawer.d.ts +70 -0
  148. package/dist/s-drawer/s-drawer.js +2 -0
  149. package/dist/s-drawer-4h5ZyoM8.js +562 -0
  150. package/dist/s-empty/s-empty.js +14 -13
  151. package/dist/s-file-dropzone/index.js +1 -1
  152. package/dist/s-file-dropzone/s-file-dropzone.js +2 -219
  153. package/dist/s-file-dropzone-Cfzv1Cm8.js +422 -0
  154. package/dist/s-file-icon/s-file-icon.js +88 -87
  155. package/dist/s-flex-box/s-flex-box.js +12 -11
  156. package/dist/s-form/s-form.js +15 -15
  157. package/dist/s-gallery/s-gallery.js +1 -1
  158. package/dist/s-glow-button/s-glow-button.js +10 -9
  159. package/dist/s-gradient-blob-pulse/index.d.ts +2 -0
  160. package/dist/s-gradient-blob-pulse/index.js +2 -0
  161. package/dist/s-gradient-blob-pulse/s-gradient-blob-pulse.d.ts +62 -0
  162. package/dist/s-gradient-blob-pulse/s-gradient-blob-pulse.js +237 -0
  163. package/dist/s-gradient-icon/index.d.ts +1 -1
  164. package/dist/s-gradient-icon/s-gradient-icon.d.ts +4 -4
  165. package/dist/s-gradient-icon/s-gradient-icon.js +2 -2
  166. package/dist/s-icon-button/s-icon-button.d.ts +6 -2
  167. package/dist/s-icon-button/s-icon-button.js +14 -13
  168. package/dist/s-image-comparison/s-image-comparison.js +31 -29
  169. package/dist/s-image-viewer/image-viewer-thumbnail-dock.js +1 -1
  170. package/dist/s-image-viewer/index.js +3 -3
  171. package/dist/s-image-viewer/s-image-viewer.js +2 -266
  172. package/dist/s-image-viewer/use-image-viewer-navigation.js +7 -7
  173. package/dist/s-image-viewer-CjK67-rs.js +269 -0
  174. package/dist/s-interactive-card/index.d.ts +3 -0
  175. package/dist/s-interactive-card/index.js +2 -0
  176. package/dist/s-interactive-card/s-interactive-card.d.ts +57 -0
  177. package/dist/s-interactive-card/s-interactive-card.js +152 -0
  178. package/dist/s-label/s-label.js +26 -25
  179. package/dist/s-language-switcher/index.js +2 -2
  180. package/dist/s-language-switcher/s-language-switcher.js +2 -150
  181. package/dist/s-language-switcher-PaMgHWc2.js +246 -0
  182. package/dist/s-lazy-image/s-lazy-image.js +18 -17
  183. package/dist/s-link/index.js +1 -1
  184. package/dist/s-link/s-link.js +2 -5
  185. package/dist/s-link-Db1aabHh.js +235 -0
  186. package/dist/s-list-action-item/index.d.ts +2 -0
  187. package/dist/s-list-action-item/index.js +2 -0
  188. package/dist/s-list-action-item/s-list-action-item.d.ts +89 -0
  189. package/dist/s-list-action-item/s-list-action-item.js +150 -0
  190. package/dist/s-localization-provider/index.js +1 -1
  191. package/dist/s-localization-provider/s-localization-provider.js +2 -12
  192. package/dist/s-localization-provider-CeyB_SGz.js +519 -0
  193. package/dist/s-mega-menu/index.d.ts +3 -0
  194. package/dist/s-mega-menu/index.js +2 -0
  195. package/dist/s-mega-menu/mega-menu-panel.d.ts +38 -0
  196. package/dist/s-mega-menu/mega-menu-panel.js +253 -0
  197. package/dist/s-mega-menu/mega-menu-slots.d.ts +65 -0
  198. package/dist/s-mega-menu/mega-menu-slots.js +232 -0
  199. package/dist/s-mega-menu/mega-menu-trigger.d.ts +35 -0
  200. package/dist/s-mega-menu/mega-menu-trigger.js +2 -0
  201. package/dist/s-mega-menu/s-mega-menu.d.ts +23 -0
  202. package/dist/s-mega-menu/s-mega-menu.js +228 -0
  203. package/dist/s-mega-menu/types.d.ts +188 -0
  204. package/dist/s-mega-menu/types.js +0 -0
  205. package/dist/s-mega-menu/utils.d.ts +51 -0
  206. package/dist/s-mega-menu/utils.js +51 -0
  207. package/dist/s-mobile-dock/index.d.ts +3 -0
  208. package/dist/s-mobile-dock/index.js +2 -0
  209. package/dist/s-mobile-dock/s-mobile-dock.d.ts +96 -0
  210. package/dist/s-mobile-dock/s-mobile-dock.js +2 -0
  211. package/dist/s-mobile-dock-8F3UWAb8.js +615 -0
  212. package/dist/s-nav-item/index.d.ts +1 -1
  213. package/dist/s-nav-item/s-nav-item.d.ts +35 -16
  214. package/dist/s-nav-item/s-nav-item.js +56 -77
  215. package/dist/s-nav-items/s-nav-items.js +78 -121
  216. package/dist/s-no-ssr/index.js +1 -1
  217. package/dist/s-no-ssr/s-no-ssr.js +2 -5
  218. package/dist/s-no-ssr-DH57_uP_.js +25 -0
  219. package/dist/s-number-range/index.d.ts +3 -0
  220. package/dist/s-number-range/index.js +2 -0
  221. package/dist/s-number-range/s-number-range.d.ts +109 -0
  222. package/dist/s-number-range/s-number-range.js +2 -0
  223. package/dist/s-number-range-Low5QjuD.js +253 -0
  224. package/dist/s-pagination/index.js +1 -1
  225. package/dist/s-pagination/s-pagination.js +2 -85
  226. package/dist/s-pagination-s46hBifh.js +606 -0
  227. package/dist/s-pixel-reveal/s-pixel-reveal.js +20 -20
  228. package/dist/s-popover/index.d.ts +5 -0
  229. package/dist/s-popover/index.js +3 -0
  230. package/dist/s-popover/placement.d.ts +14 -0
  231. package/dist/s-popover/placement.js +65 -0
  232. package/dist/s-popover/s-popover-content.d.ts +22 -0
  233. package/dist/s-popover/s-popover-content.js +22 -0
  234. package/dist/s-popover/s-popover.d.ts +59 -0
  235. package/dist/s-popover/s-popover.js +68 -0
  236. package/dist/s-product-card/index.d.ts +3 -0
  237. package/dist/s-product-card/index.js +2 -0
  238. package/dist/s-product-card/s-product-card.d.ts +216 -0
  239. package/dist/s-product-card/s-product-card.js +502 -0
  240. package/dist/s-product-gallery/index.d.ts +3 -0
  241. package/dist/s-product-gallery/index.js +2 -0
  242. package/dist/s-product-gallery/s-product-gallery.d.ts +116 -0
  243. package/dist/s-product-gallery/s-product-gallery.js +2 -0
  244. package/dist/s-product-gallery-Dj9eGg5i.js +430 -0
  245. package/dist/s-quantity-input/s-quantity-input.js +24 -24
  246. package/dist/s-review/index.js +1 -1
  247. package/dist/s-review/s-review.js +2 -272
  248. package/dist/s-review--Q2C0ngO.js +272 -0
  249. package/dist/s-scroll-reveal/s-scroll-reveal.js +8 -7
  250. package/dist/s-scroll-to-top/s-scroll-to-top.d.ts +1 -1
  251. package/dist/s-scroll-to-top/s-scroll-to-top.js +28 -27
  252. package/dist/s-scroll-velocity/scroll-velocity-row.js +29 -29
  253. package/dist/s-segmented-control/index.d.ts +3 -0
  254. package/dist/s-segmented-control/index.js +2 -0
  255. package/dist/s-segmented-control/s-segmented-control.d.ts +94 -0
  256. package/dist/s-segmented-control/s-segmented-control.js +302 -0
  257. package/dist/s-select/index.js +1 -1
  258. package/dist/s-select/s-select.js +2 -201
  259. package/dist/s-select-CtVKEOZ5.js +204 -0
  260. package/dist/s-select-list/s-select-list.js +50 -47
  261. package/dist/s-skeleton/s-skeleton.js +13 -12
  262. package/dist/s-snackbar-message/index.js +2 -2
  263. package/dist/s-snackbar-message/s-snackbar-message.js +2 -89
  264. package/dist/s-snackbar-message-DsfJlDYd.js +810 -0
  265. package/dist/s-spotlight-cursor/s-spotlight-cursor.js +27 -27
  266. package/dist/s-status-illustration/s-status-illustration.js +74 -74
  267. package/dist/s-stepper/index.d.ts +3 -0
  268. package/dist/s-stepper/index.js +2 -0
  269. package/dist/s-stepper/s-stepper.d.ts +90 -0
  270. package/dist/s-stepper/s-stepper.js +2 -0
  271. package/dist/s-stepper-BtODHVro.js +892 -0
  272. package/dist/s-stripe/s-stripe.js +12 -11
  273. package/dist/s-stripe/stripe-input.js +2 -3
  274. package/dist/s-swatch/index.d.ts +3 -0
  275. package/dist/s-swatch/index.js +2 -0
  276. package/dist/s-swatch/s-swatch.d.ts +235 -0
  277. package/dist/s-swatch/s-swatch.js +219 -0
  278. package/dist/s-switch/index.js +1 -1
  279. package/dist/s-switch/s-switch.js +2 -48
  280. package/dist/s-switch-BCeBoxWf.js +307 -0
  281. package/dist/s-tabs/s-tabs.js +50 -48
  282. package/dist/s-text-editor/index.js +1 -1
  283. package/dist/s-text-editor/s-text-editor-toolbar.js +2 -216
  284. package/dist/s-text-editor/s-text-editor.js +26 -25
  285. package/dist/s-text-editor-toolbar-D5eQ-jCs.js +2124 -0
  286. package/dist/s-text-field/index.js +1 -1
  287. package/dist/s-text-field/s-text-field.js +2 -52
  288. package/dist/s-text-field-HYyDf1Jo.js +51 -0
  289. package/dist/s-text-shimmer/s-text-shimmer.js +3 -1
  290. package/dist/s-text-truncation/s-text-truncation.js +20 -20
  291. package/dist/s-theme-demo/s-theme-demo.js +8 -8
  292. package/dist/s-theme-demo/theme-demo-color-palette-section.js +1 -1
  293. package/dist/s-theme-demo/theme-demo-color-ramps-section.js +1 -1
  294. package/dist/s-theme-demo/theme-demo-components-section.js +2 -265
  295. package/dist/s-theme-demo/theme-demo-typography-section.js +10 -10
  296. package/dist/s-theme-provider/s-theme-provider.js +1 -1
  297. package/dist/s-theme-switch/index.js +1 -1
  298. package/dist/s-theme-switch/s-theme-switch.js +2 -60
  299. package/dist/s-theme-switch-BFWpADh3.js +60 -0
  300. package/dist/s-tip/index.js +1 -1
  301. package/dist/s-tip/s-tip.js +2 -61
  302. package/dist/s-tip-jbL7vtoU.js +62 -0
  303. package/dist/s-tool-bar/s-tool-bar.js +28 -28
  304. package/dist/s-tool-bar/tool-bar-action-buttons.js +2 -55
  305. package/dist/s-tool-bar/tool-bar-image-input.js +2 -148
  306. package/dist/s-tool-bar/tool-bar-inputs.js +55 -55
  307. package/dist/s-tool-item/s-tool-item.d.ts +10 -6
  308. package/dist/s-tool-item/s-tool-item.js +29 -29
  309. package/dist/s-two-pane-layout/s-two-pane-layout.js +32 -32
  310. package/dist/s-zoom-image/s-zoom-image.js +19 -18
  311. package/dist/selectClasses-CPxME5jE.js +22 -0
  312. package/dist/setRef-BWPyWnrr.js +6 -0
  313. package/dist/styled-Bog8QCl3.js +163 -0
  314. package/dist/svgIconClasses-1kWGzgux.js +20 -0
  315. package/dist/switchClasses-BtweO7PC.js +23 -0
  316. package/dist/theme/component-augmentation.d.ts +65 -1
  317. package/dist/theme/components/autocomplete.js +2 -43
  318. package/dist/theme/components/avatar.js +2 -9
  319. package/dist/theme/components/card.js +3 -3
  320. package/dist/theme/components/checkbox.js +2 -90
  321. package/dist/theme/components/chip.js +3 -3
  322. package/dist/theme/components/components.js +20 -20
  323. package/dist/theme/components/date-calendar.js +0 -1
  324. package/dist/theme/components/day-calendar.js +0 -1
  325. package/dist/theme/components/drawer.d.ts +1 -0
  326. package/dist/theme/components/drawer.js +4 -1
  327. package/dist/theme/components/field-label-styles.js +2 -19
  328. package/dist/theme/components/form-label.js +1 -1
  329. package/dist/theme/components/list-item-button.js +1 -1
  330. package/dist/theme/components/list-item.js +7 -7
  331. package/dist/theme/components/month-calendar.js +13 -14
  332. package/dist/theme/components/multi-section-digital-clock-section.js +0 -1
  333. package/dist/theme/components/outlined-input.js +6 -6
  334. package/dist/theme/components/picker-day.js +0 -1
  335. package/dist/theme/components/pickers-arrow-switcher.js +0 -1
  336. package/dist/theme/components/pickers-calendar-header.js +2 -3
  337. package/dist/theme/components/select.js +6 -6
  338. package/dist/theme/components/slider.js +18 -1
  339. package/dist/theme/components/step-connector.d.ts +0 -3
  340. package/dist/theme/components/step-connector.js +1 -6
  341. package/dist/theme/components/step-icon.d.ts +3 -12
  342. package/dist/theme/components/step-icon.js +3 -14
  343. package/dist/theme/components/switch.js +1 -1
  344. package/dist/theme/components/table-pagination.js +1 -1
  345. package/dist/theme/components/toggle-button.js +2 -93
  346. package/dist/theme/components/year-calendar.js +13 -14
  347. package/dist/theme/theme-primitives.js +2 -2
  348. package/dist/theme-demo-components-section-C7l_2KAo.js +267 -0
  349. package/dist/{theme-primitives-CRfnMsNy.js → theme-primitives-CXtaMdVj.js} +109 -108
  350. package/dist/toggle-button-BsGb-tOr.js +104 -0
  351. package/dist/tool-bar-action-buttons-v1koaasr.js +54 -0
  352. package/dist/tool-bar-image-input-DtXTyEe1.js +148 -0
  353. package/dist/typographyClasses-BH_-zLwg.js +31 -0
  354. package/dist/unsupportedProp-whMV_uOi.js +11 -0
  355. package/dist/useControlled-DqNPBJNp.js +5 -0
  356. package/dist/useControlled-uxVKygk1.js +29 -0
  357. package/dist/useEnhancedEffect-DFq_FMGX.js +5 -0
  358. package/dist/useEnhancedEffect-dBFfkm1e.js +5 -0
  359. package/dist/useEventCallback-DGCsaRIu.js +5 -0
  360. package/dist/useEventCallback-DhCPBxRG.js +11 -0
  361. package/dist/useForkRef-BuNFTXxE.js +29 -0
  362. package/dist/useFormControl-gXwNeUM1.js +18 -0
  363. package/dist/useMobilePicker-CdrT935R.js +7584 -0
  364. package/dist/useRovingTabIndex-DPlW997R.js +242 -0
  365. package/dist/useSlot-BG8ReOxN.js +83 -0
  366. package/dist/useSlotProps-BOO3qaI9.js +16 -0
  367. package/dist/useTheme-BIWMbX3i.js +9 -0
  368. package/dist/useThemeProps-Dw9dmKyT.js +29 -0
  369. package/dist/useTimeout-CoK-Khfm.js +49 -0
  370. package/dist/utils/dayjs.js +146 -9
  371. package/dist/utils-Bfqbev5I.js +248 -0
  372. package/dist/warning-D5YhCbje.js +99 -0
  373. package/dist/yearCalendarClasses-D9k_KT38.js +14 -0
  374. package/package.json +1 -1
  375. package/dist/theme/components/components.d.ts +0 -2
  376. package/dist/theme/components/slider.d.ts +0 -34
  377. /package/dist/{colors-CNjL5fhq.js → colors-Bik9qOU9.js} +0 -0
  378. /package/dist/{s-brand-logo-CErW9Slg.js → s-brand-logo-D7Jovf5K.js} +0 -0
  379. /package/dist/{utils-CMeAWSRO.js → utils-DOY6v6ln.js} +0 -0
@@ -1,272 +1,2 @@
1
- import { i as e } from "../utils-CMeAWSRO.js";
2
- import { toSxArray as t } from "../utils/sx.js";
3
- import { SLazyImage as n } from "../s-lazy-image/s-lazy-image.js";
4
- import { SSkeleton as r } from "../s-skeleton/s-skeleton.js";
5
- import { SAvatar as i } from "../s-avatar/s-avatar.js";
6
- import { SImageViewer as a } from "../s-image-viewer/s-image-viewer.js";
7
- import { SRating as ee } from "../s-rating/s-rating.js";
8
- import o, { useId as s, useState as c } from "react";
9
- import { jsx as l, jsxs as u } from "react/jsx-runtime";
10
- import { ThumbDown as te, ThumbUp as d } from "@mui/icons-material";
11
- import { Box as f, ButtonBase as ne, Divider as p, IconButton as m, Stack as h, Typography as g, styled as _, useTheme as re, useThemeProps as ie } from "@mui/material";
12
- import { useControlled as v } from "@mui/material/utils";
13
- //#region lib/s-review/s-review.tsx
14
- var y = _(f, {
15
- name: "SReview",
16
- slot: "Root"
17
- })({}), b = o.forwardRef(function(o, _) {
18
- let b = ie({
19
- props: o,
20
- name: "SReview"
21
- }), ae = re(), { reviewId: x, userName: S, userAvatar: C, rating: w, onRatingChange: oe, reviewContent: T, datetime: E, images: D, userHelpfulVote: O, defaultUserHelpfulVote: k = null, helpfulYes: A, defaultHelpfulYes: j = 0, helpfulNo: se, defaultHelpfulNo: M = 0, onHelpfulVote: ce, showHelpfulSection: N = !0, avatarSize: P = 48, maxRating: F = 5, readOnly: I = !0, showDivider: L = !0, loading: R = !1, sx: z, ...B } = b, V = s(), H = x ?? B.id ?? V, [U, W] = v({
22
- controlled: O,
23
- default: k,
24
- name: "SReview",
25
- state: "userHelpfulVote"
26
- }), [G, le] = v({
27
- controlled: A,
28
- default: j,
29
- name: "SReview",
30
- state: "helpfulYes"
31
- }), [K, ue] = v({
32
- controlled: se,
33
- default: M,
34
- name: "SReview",
35
- state: "helpfulNo"
36
- }), q = {
37
- ...b,
38
- avatarSize: P,
39
- defaultHelpfulNo: M,
40
- defaultHelpfulYes: j,
41
- defaultUserHelpfulVote: k,
42
- helpfulNo: K,
43
- helpfulYes: G,
44
- maxRating: F,
45
- loading: R,
46
- readOnly: I,
47
- reviewId: H,
48
- showDivider: L,
49
- showHelpfulSection: N,
50
- userHelpfulVote: U
51
- }, [de, J] = c(!1), [Y, X] = c(null), Z = (e, t) => {
52
- let n = U === t ? null : t, r = G, i = K;
53
- U === "yes" && (r = Math.max(0, r - 1)), U === "no" && (i = Math.max(0, i - 1)), n === "yes" && (r += 1), n === "no" && (i += 1), W(n), le(r), ue(i), ce?.(e, H, n);
54
- }, Q = D?.map((e, t) => ({
55
- id: `review-${H}-image-${t}`,
56
- type: "image",
57
- url: e,
58
- title: `Review image ${t + 1}`,
59
- desc: `Image ${t + 1} from ${S}'s review`
60
- })) ?? [], fe = (e) => {
61
- let t = Q[e];
62
- t && (X(t), J(!0));
63
- }, $ = () => {
64
- J(!1), X(null);
65
- }, pe = (e, t) => {
66
- X(t);
67
- }, me = e(E);
68
- return R ? /* @__PURE__ */ u(y, {
69
- ...B,
70
- ref: _,
71
- ownerState: q,
72
- sx: [{ py: 2 }, ...t(z)],
73
- children: [/* @__PURE__ */ u(h, {
74
- direction: "row",
75
- spacing: 2,
76
- sx: { alignItems: "flex-start" },
77
- children: [/* @__PURE__ */ l(r, {
78
- variant: "circular",
79
- width: P,
80
- height: P,
81
- sx: { flexShrink: 0 }
82
- }), /* @__PURE__ */ u(f, {
83
- sx: { flex: 1 },
84
- children: [
85
- /* @__PURE__ */ u(h, {
86
- direction: "row",
87
- spacing: 2,
88
- sx: {
89
- alignItems: "center",
90
- mb: 1
91
- },
92
- children: [/* @__PURE__ */ l(r, {
93
- width: 120,
94
- height: 20
95
- }), /* @__PURE__ */ l(r, {
96
- width: 80,
97
- height: 16
98
- })]
99
- }),
100
- /* @__PURE__ */ l(f, {
101
- sx: { mb: 1 },
102
- children: /* @__PURE__ */ l(r, {
103
- width: 100,
104
- height: 20
105
- })
106
- }),
107
- /* @__PURE__ */ l(r, {
108
- height: 16,
109
- sx: { mb: .5 }
110
- }),
111
- N && /* @__PURE__ */ u(h, {
112
- direction: "row",
113
- spacing: 1,
114
- sx: {
115
- display: "inline-flex",
116
- alignItems: "center"
117
- },
118
- children: [
119
- /* @__PURE__ */ l(r, {
120
- width: 140,
121
- height: 16,
122
- sx: { mr: 2 }
123
- }),
124
- /* @__PURE__ */ l(r, { preset: "icon-button" }),
125
- /* @__PURE__ */ l(r, {
126
- width: 20,
127
- height: 16
128
- }),
129
- /* @__PURE__ */ l(r, { preset: "icon-button" }),
130
- /* @__PURE__ */ l(r, {
131
- width: 20,
132
- height: 16
133
- })
134
- ]
135
- })
136
- ]
137
- })]
138
- }), L && /* @__PURE__ */ l(p, { sx: { mt: 2 } })]
139
- }) : /* @__PURE__ */ u(y, {
140
- ...B,
141
- ref: _,
142
- ownerState: q,
143
- sx: [{ py: 2 }, ...t(z)],
144
- children: [
145
- /* @__PURE__ */ u(h, {
146
- direction: "row",
147
- spacing: 2,
148
- sx: { alignItems: "flex-start" },
149
- children: [/* @__PURE__ */ l(i, {
150
- src: C,
151
- name: S,
152
- size: P
153
- }), /* @__PURE__ */ u(f, {
154
- sx: { flex: 1 },
155
- children: [
156
- /* @__PURE__ */ l(g, {
157
- variant: "subtitle1",
158
- children: S
159
- }),
160
- /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(ee, {
161
- value: w,
162
- max: F,
163
- onChange: oe,
164
- readOnly: I
165
- }) }),
166
- /* @__PURE__ */ l(g, {
167
- variant: "body1",
168
- sx: { lineHeight: 1.6 },
169
- children: T
170
- }),
171
- /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(g, {
172
- variant: "caption",
173
- sx: { mb: 2 },
174
- children: me
175
- }) }),
176
- D && D.length > 0 && /* @__PURE__ */ l(h, {
177
- direction: "row",
178
- sx: {
179
- mt: 1,
180
- mb: 2,
181
- flexWrap: "wrap",
182
- gap: 1
183
- },
184
- children: D.map((e, t) => /* @__PURE__ */ l(ne, {
185
- "aria-label": `Open review image ${t + 1}`,
186
- component: "div",
187
- onClick: () => fe(t),
188
- sx: {
189
- borderRadius: 1,
190
- transition: (e) => e.transitions.create("opacity", { duration: e.transitions.duration.shorter }),
191
- "&.Mui-focusVisible": {
192
- outline: "2px solid",
193
- outlineColor: "primary.main",
194
- outlineOffset: 2
195
- },
196
- "@media (hover: hover) and (pointer: fine)": { "&:hover": { opacity: ae.interaction.mediaHoverOpacity } }
197
- },
198
- children: /* @__PURE__ */ l(n, {
199
- src: e,
200
- alt: `Review image ${t + 1}`,
201
- width: 80,
202
- height: 80,
203
- slotProps: { image: { sx: { objectFit: "cover" } } }
204
- })
205
- }, `${e}-${t}`))
206
- }),
207
- N && /* @__PURE__ */ u(h, {
208
- direction: "row",
209
- spacing: 1,
210
- sx: {
211
- display: "inline-flex",
212
- alignItems: "center"
213
- },
214
- children: [
215
- /* @__PURE__ */ l(g, {
216
- variant: "body2",
217
- sx: { mr: 2 },
218
- children: "Was this review helpful?"
219
- }),
220
- /* @__PURE__ */ l(m, {
221
- "aria-label": "Mark review as helpful",
222
- "aria-pressed": U === "yes",
223
- onClick: (e) => Z(e, "yes"),
224
- sx: {
225
- color: U === "yes" ? "primary.main" : "text.secondary",
226
- "&:hover": { backgroundColor: "action.hover" }
227
- },
228
- children: /* @__PURE__ */ l(d, { fontSize: "small" })
229
- }),
230
- /* @__PURE__ */ l(g, {
231
- variant: "caption",
232
- children: G
233
- }),
234
- /* @__PURE__ */ l(m, {
235
- "aria-label": "Mark review as not helpful",
236
- "aria-pressed": U === "no",
237
- onClick: (e) => Z(e, "no"),
238
- sx: {
239
- color: U === "no" ? "error.main" : "text.secondary",
240
- ml: 1,
241
- "&:hover": { backgroundColor: "action.hover" }
242
- },
243
- children: /* @__PURE__ */ l(te, { fontSize: "small" })
244
- }),
245
- /* @__PURE__ */ l(g, {
246
- variant: "caption",
247
- children: K
248
- })
249
- ]
250
- })
251
- ]
252
- })]
253
- }),
254
- L && /* @__PURE__ */ l(p, { sx: { mt: 2 } }),
255
- /* @__PURE__ */ l(a, {
256
- "aria-label": "Review media viewer",
257
- open: de,
258
- onClose: $,
259
- onCloseButtonClick: $,
260
- selectedItem: Y,
261
- onItemChange: pe,
262
- mediaItems: Q,
263
- showNavigation: Q.length > 1,
264
- showThumbnailDock: Q.length > 1,
265
- showCounter: Q.length > 1
266
- })
267
- ]
268
- });
269
- });
270
- b.displayName = "SReview";
271
- //#endregion
272
- export { b as SReview, b as default };
1
+ import { t as e } from "../s-review--Q2C0ngO.js";
2
+ export { e as SReview, e as default };
@@ -0,0 +1,272 @@
1
+ import { i as e } from "./utils-DOY6v6ln.js";
2
+ import { toSxArray as t } from "./utils/sx.js";
3
+ import { t as n } from "./createSvgIcon-3y-gS0r1.js";
4
+ import { t as r } from "./useControlled-DqNPBJNp.js";
5
+ import { t as i } from "./s-image-viewer-CjK67-rs.js";
6
+ import { SLazyImage as a } from "./s-lazy-image/s-lazy-image.js";
7
+ import { SSkeleton as o } from "./s-skeleton/s-skeleton.js";
8
+ import { SAvatar as s } from "./s-avatar/s-avatar.js";
9
+ import { SRating as ee } from "./s-rating/s-rating.js";
10
+ import c, { useId as l, useState as u } from "react";
11
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
12
+ import { Box as p, ButtonBase as m, Divider as h, IconButton as g, Stack as _, Typography as v, styled as y, useTheme as b, useThemeProps as te } from "@mui/material";
13
+ //#region ../../node_modules/@mui/icons-material/ThumbDown.mjs
14
+ var ne = n(/* @__PURE__ */ d("path", { d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2m4 0v12h4V3z" }), "ThumbDown"), x = n(/* @__PURE__ */ d("path", { d: "M1 21h4V9H1zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73z" }), "ThumbUp"), S = y(p, {
15
+ name: "SReview",
16
+ slot: "Root"
17
+ })({}), C = c.forwardRef(function(n, c) {
18
+ let y = te({
19
+ props: n,
20
+ name: "SReview"
21
+ }), C = b(), { reviewId: re, userName: w, userAvatar: T, rating: E, onRatingChange: ie, reviewContent: ae, datetime: D, images: O, userHelpfulVote: k, defaultUserHelpfulVote: A = null, helpfulYes: j, defaultHelpfulYes: M = 0, helpfulNo: oe, defaultHelpfulNo: N = 0, onHelpfulVote: se, showHelpfulSection: P = !0, avatarSize: F = 48, maxRating: I = 5, readOnly: L = !0, showDivider: R = !0, loading: z = !1, sx: B, ...V } = y, H = l(), U = re ?? V.id ?? H, [W, G] = r({
22
+ controlled: k,
23
+ default: A,
24
+ name: "SReview",
25
+ state: "userHelpfulVote"
26
+ }), [K, ce] = r({
27
+ controlled: j,
28
+ default: M,
29
+ name: "SReview",
30
+ state: "helpfulYes"
31
+ }), [q, le] = r({
32
+ controlled: oe,
33
+ default: N,
34
+ name: "SReview",
35
+ state: "helpfulNo"
36
+ }), J = {
37
+ ...y,
38
+ avatarSize: F,
39
+ defaultHelpfulNo: N,
40
+ defaultHelpfulYes: M,
41
+ defaultUserHelpfulVote: A,
42
+ helpfulNo: q,
43
+ helpfulYes: K,
44
+ maxRating: I,
45
+ loading: z,
46
+ readOnly: L,
47
+ reviewId: U,
48
+ showDivider: R,
49
+ showHelpfulSection: P,
50
+ userHelpfulVote: W
51
+ }, [ue, Y] = u(!1), [de, X] = u(null), Z = (e, t) => {
52
+ let n = W === t ? null : t, r = K, i = q;
53
+ W === "yes" && (r = Math.max(0, r - 1)), W === "no" && (i = Math.max(0, i - 1)), n === "yes" && (r += 1), n === "no" && (i += 1), G(n), ce(r), le(i), se?.(e, U, n);
54
+ }, Q = O?.map((e, t) => ({
55
+ id: `review-${U}-image-${t}`,
56
+ type: "image",
57
+ url: e,
58
+ title: `Review image ${t + 1}`,
59
+ desc: `Image ${t + 1} from ${w}'s review`
60
+ })) ?? [], fe = (e) => {
61
+ let t = Q[e];
62
+ t && (X(t), Y(!0));
63
+ }, $ = () => {
64
+ Y(!1), X(null);
65
+ }, pe = (e, t) => {
66
+ X(t);
67
+ }, me = e(D);
68
+ return z ? /* @__PURE__ */ f(S, {
69
+ ...V,
70
+ ref: c,
71
+ ownerState: J,
72
+ sx: [{ py: 2 }, ...t(B)],
73
+ children: [/* @__PURE__ */ f(_, {
74
+ direction: "row",
75
+ spacing: 2,
76
+ sx: { alignItems: "flex-start" },
77
+ children: [/* @__PURE__ */ d(o, {
78
+ variant: "circular",
79
+ width: F,
80
+ height: F,
81
+ sx: { flexShrink: 0 }
82
+ }), /* @__PURE__ */ f(p, {
83
+ sx: { flex: 1 },
84
+ children: [
85
+ /* @__PURE__ */ f(_, {
86
+ direction: "row",
87
+ spacing: 2,
88
+ sx: {
89
+ alignItems: "center",
90
+ mb: 1
91
+ },
92
+ children: [/* @__PURE__ */ d(o, {
93
+ width: 120,
94
+ height: 20
95
+ }), /* @__PURE__ */ d(o, {
96
+ width: 80,
97
+ height: 16
98
+ })]
99
+ }),
100
+ /* @__PURE__ */ d(p, {
101
+ sx: { mb: 1 },
102
+ children: /* @__PURE__ */ d(o, {
103
+ width: 100,
104
+ height: 20
105
+ })
106
+ }),
107
+ /* @__PURE__ */ d(o, {
108
+ height: 16,
109
+ sx: { mb: .5 }
110
+ }),
111
+ P && /* @__PURE__ */ f(_, {
112
+ direction: "row",
113
+ spacing: 1,
114
+ sx: {
115
+ display: "inline-flex",
116
+ alignItems: "center"
117
+ },
118
+ children: [
119
+ /* @__PURE__ */ d(o, {
120
+ width: 140,
121
+ height: 16,
122
+ sx: { mr: 2 }
123
+ }),
124
+ /* @__PURE__ */ d(o, { preset: "icon-button" }),
125
+ /* @__PURE__ */ d(o, {
126
+ width: 20,
127
+ height: 16
128
+ }),
129
+ /* @__PURE__ */ d(o, { preset: "icon-button" }),
130
+ /* @__PURE__ */ d(o, {
131
+ width: 20,
132
+ height: 16
133
+ })
134
+ ]
135
+ })
136
+ ]
137
+ })]
138
+ }), R && /* @__PURE__ */ d(h, { sx: { mt: 2 } })]
139
+ }) : /* @__PURE__ */ f(S, {
140
+ ...V,
141
+ ref: c,
142
+ ownerState: J,
143
+ sx: [{ py: 2 }, ...t(B)],
144
+ children: [
145
+ /* @__PURE__ */ f(_, {
146
+ direction: "row",
147
+ spacing: 2,
148
+ sx: { alignItems: "flex-start" },
149
+ children: [/* @__PURE__ */ d(s, {
150
+ src: T,
151
+ name: w,
152
+ size: F
153
+ }), /* @__PURE__ */ f(p, {
154
+ sx: { flex: 1 },
155
+ children: [
156
+ /* @__PURE__ */ d(v, {
157
+ variant: "subtitle1",
158
+ children: w
159
+ }),
160
+ /* @__PURE__ */ d(p, { children: /* @__PURE__ */ d(ee, {
161
+ value: E,
162
+ max: I,
163
+ onChange: ie,
164
+ readOnly: L
165
+ }) }),
166
+ /* @__PURE__ */ d(v, {
167
+ variant: "body1",
168
+ sx: { lineHeight: 1.6 },
169
+ children: ae
170
+ }),
171
+ /* @__PURE__ */ d(p, { children: /* @__PURE__ */ d(v, {
172
+ variant: "caption",
173
+ sx: { mb: 2 },
174
+ children: me
175
+ }) }),
176
+ O && O.length > 0 && /* @__PURE__ */ d(_, {
177
+ direction: "row",
178
+ sx: {
179
+ mt: 1,
180
+ mb: 2,
181
+ flexWrap: "wrap",
182
+ gap: 1
183
+ },
184
+ children: O.map((e, t) => /* @__PURE__ */ d(m, {
185
+ "aria-label": `Open review image ${t + 1}`,
186
+ component: "div",
187
+ onClick: () => fe(t),
188
+ sx: {
189
+ borderRadius: 1,
190
+ transition: (e) => e.transitions.create("opacity", { duration: e.transitions.duration.shorter }),
191
+ "&.Mui-focusVisible": {
192
+ outline: "2px solid",
193
+ outlineColor: "primary.main",
194
+ outlineOffset: 2
195
+ },
196
+ "@media (hover: hover) and (pointer: fine)": { "&:hover": { opacity: C.interaction.mediaHoverOpacity } }
197
+ },
198
+ children: /* @__PURE__ */ d(a, {
199
+ src: e,
200
+ alt: `Review image ${t + 1}`,
201
+ width: 80,
202
+ height: 80,
203
+ slotProps: { image: { sx: { objectFit: "cover" } } }
204
+ })
205
+ }, `${e}-${t}`))
206
+ }),
207
+ P && /* @__PURE__ */ f(_, {
208
+ direction: "row",
209
+ spacing: 1,
210
+ sx: {
211
+ display: "inline-flex",
212
+ alignItems: "center"
213
+ },
214
+ children: [
215
+ /* @__PURE__ */ d(v, {
216
+ variant: "body2",
217
+ sx: { mr: 2 },
218
+ children: "Was this review helpful?"
219
+ }),
220
+ /* @__PURE__ */ d(g, {
221
+ "aria-label": "Mark review as helpful",
222
+ "aria-pressed": W === "yes",
223
+ onClick: (e) => Z(e, "yes"),
224
+ sx: {
225
+ color: W === "yes" ? "primary.main" : "text.secondary",
226
+ "&:hover": { backgroundColor: "action.hover" }
227
+ },
228
+ children: /* @__PURE__ */ d(x, { fontSize: "small" })
229
+ }),
230
+ /* @__PURE__ */ d(v, {
231
+ variant: "caption",
232
+ children: K
233
+ }),
234
+ /* @__PURE__ */ d(g, {
235
+ "aria-label": "Mark review as not helpful",
236
+ "aria-pressed": W === "no",
237
+ onClick: (e) => Z(e, "no"),
238
+ sx: {
239
+ color: W === "no" ? "error.main" : "text.secondary",
240
+ ml: 1,
241
+ "&:hover": { backgroundColor: "action.hover" }
242
+ },
243
+ children: /* @__PURE__ */ d(ne, { fontSize: "small" })
244
+ }),
245
+ /* @__PURE__ */ d(v, {
246
+ variant: "caption",
247
+ children: q
248
+ })
249
+ ]
250
+ })
251
+ ]
252
+ })]
253
+ }),
254
+ R && /* @__PURE__ */ d(h, { sx: { mt: 2 } }),
255
+ /* @__PURE__ */ d(i, {
256
+ "aria-label": "Review media viewer",
257
+ open: ue,
258
+ onClose: $,
259
+ onCloseButtonClick: $,
260
+ selectedItem: de,
261
+ onItemChange: pe,
262
+ mediaItems: Q,
263
+ showNavigation: Q.length > 1,
264
+ showThumbnailDock: Q.length > 1,
265
+ showCounter: Q.length > 1
266
+ })
267
+ ]
268
+ });
269
+ });
270
+ C.displayName = "SReview";
271
+ //#endregion
272
+ export { C as t };
@@ -1,11 +1,12 @@
1
- import { useScrollAnimation as e } from "../hooks/use-scroll-animation.js";
2
- import { styled as t, useThemeProps as n } from "@mui/material/styles";
1
+ import { t as e } from "../styled-Bog8QCl3.js";
2
+ import { t } from "../useThemeProps-Dw9dmKyT.js";
3
+ import { useScrollAnimation as n } from "../hooks/use-scroll-animation.js";
3
4
  import r from "react";
4
5
  import { jsx as i } from "react/jsx-runtime";
5
6
  import { Box as a } from "@mui/material";
6
7
  import { motion as o, useReducedMotion as s } from "framer-motion";
7
8
  //#region lib/s-scroll-reveal/s-scroll-reveal.tsx
8
- var c = t(a, {
9
+ var c = e(a, {
9
10
  name: "SScrollReveal",
10
11
  slot: "Root"
11
12
  })({ overflow: "hidden" });
@@ -15,9 +16,9 @@ function l(e) {
15
16
  function u(e, t, n, r) {
16
17
  return t ? e ? "visible" : "hidden" : e ? r : n;
17
18
  }
18
- var d = r.forwardRef(function(t, d) {
19
- let f = n({
20
- props: t,
19
+ var d = r.forwardRef(function(e, d) {
20
+ let f = t({
21
+ props: e,
21
22
  name: "SScrollReveal"
22
23
  }), { children: p, duration: m = .6, ease: h = "easeOut", threshold: g, rootMargin: _, delay: v, direction: y, distance: b, scaleOnReveal: x = !0, rotateOnReveal: S = !1, stagger: C = !0, staggerDelay: w = .1, sx: T, ...E } = f, D = {
23
24
  ...f,
@@ -27,7 +28,7 @@ var d = r.forwardRef(function(t, d) {
27
28
  scaleOnReveal: x,
28
29
  stagger: C,
29
30
  staggerDelay: w
30
- }, O = s(), { ref: k, animate: A, initialPosition: j, finalPosition: M } = e({
31
+ }, O = s(), { ref: k, animate: A, initialPosition: j, finalPosition: M } = n({
31
32
  threshold: g,
32
33
  rootMargin: _,
33
34
  delay: v,
@@ -1,6 +1,6 @@
1
1
  import { SIconButtonProps } from '../s-icon-button';
2
2
  import * as React from 'react';
3
- export interface SScrollToTopProps extends Omit<SIconButtonProps, 'children' | 'component' | 'variant'> {
3
+ export interface SScrollToTopProps extends Omit<SIconButtonProps, 'children' | 'component' | 'target' | 'variant'> {
4
4
  /** Icon rendered inside the button. */
5
5
  icon?: React.ReactNode;
6
6
  /** Scroll target monitored by MUI's scroll trigger; defaults to the window. */
@@ -1,36 +1,37 @@
1
- import { reducedMotionMedia as e } from "../theme/components/action-styles.js";
2
- import { SIconButton as t } from "../s-icon-button/s-icon-button.js";
3
- import { styled as n, useThemeProps as r } from "@mui/material/styles";
4
- import * as i from "react";
5
- import { jsx as a } from "react/jsx-runtime";
6
- import { useMediaQuery as o, useScrollTrigger as s } from "@mui/material";
7
- import c from "@mui/icons-material/ArrowUpward";
1
+ import { t as e } from "../styled-Bog8QCl3.js";
2
+ import { t } from "../useThemeProps-Dw9dmKyT.js";
3
+ import { reducedMotionMedia as n } from "../theme/components/action-styles.js";
4
+ import { t as r } from "../ArrowUpward-udL1ltj2.js";
5
+ import { SIconButton as i } from "../s-icon-button/s-icon-button.js";
6
+ import * as a from "react";
7
+ import { jsx as o } from "react/jsx-runtime";
8
+ import { useMediaQuery as s, useScrollTrigger as c } from "@mui/material";
8
9
  //#region lib/s-scroll-to-top/s-scroll-to-top.tsx
9
- var l = n(t, {
10
+ var l = e(i, {
10
11
  name: "SScrollToTop",
11
12
  slot: "Root"
12
- })(({ theme: t, ownerState: n }) => {
13
- let r = t.vars ?? t;
13
+ })(({ theme: e, ownerState: t }) => {
14
+ let r = e.vars ?? e;
14
15
  return {
15
16
  position: "fixed",
16
- bottom: t.spacing(2),
17
- right: t.spacing(2),
17
+ bottom: e.spacing(2),
18
+ right: e.spacing(2),
18
19
  zIndex: r.zIndex.fab,
19
- opacity: +!!n.isScrolled,
20
- visibility: n.isScrolled ? "visible" : "hidden",
21
- transition: [t.transitions.create(["opacity", "visibility"]), t.transitions.create(["background-color", "color"], { duration: t.transitions.duration.shorter })].join(","),
22
- [e]: { transition: "none" }
20
+ opacity: +!!t.isScrolled,
21
+ visibility: t.isScrolled ? "visible" : "hidden",
22
+ transition: [e.transitions.create(["opacity", "visibility"]), e.transitions.create(["background-color", "color"], { duration: e.transitions.duration.shorter })].join(","),
23
+ [n]: { transition: "none" }
23
24
  };
24
- }), u = i.forwardRef(function(e, t) {
25
- let { target: n, ...i } = r({
25
+ }), u = a.forwardRef(function(e, n) {
26
+ let { target: i, ...a } = t({
26
27
  props: e,
27
28
  name: "SScrollToTop"
28
- }), { "aria-label": u = "Scroll to top", disableHysteresis: d = !0, icon: f, onClick: p, sx: m, tabIndex: h = 0, threshold: g = 100, ..._ } = i, v = s({
29
+ }), { "aria-label": u = "Scroll to top", disableHysteresis: d = !0, icon: f, onClick: p, sx: m, tabIndex: h = 0, threshold: g = 100, ..._ } = a, v = c({
29
30
  disableHysteresis: d,
30
- target: n,
31
+ target: i,
31
32
  threshold: g
32
- }), y = o("(prefers-reduced-motion: reduce)"), b = {
33
- ...i,
33
+ }), y = s("(prefers-reduced-motion: reduce)"), b = {
34
+ ...a,
34
35
  "aria-label": u,
35
36
  disableHysteresis: d,
36
37
  isScrolled: v,
@@ -38,15 +39,15 @@ var l = n(t, {
38
39
  threshold: g
39
40
  }, x = (e) => {
40
41
  if (p?.(e), e.defaultPrevented) return;
41
- let t = n === void 0 ? typeof window > "u" ? null : window : n;
42
+ let t = i === void 0 ? typeof window > "u" ? null : window : i;
42
43
  typeof t?.scrollTo == "function" && t.scrollTo({
43
44
  top: 0,
44
45
  behavior: y ? "auto" : "smooth"
45
46
  });
46
47
  };
47
- return /* @__PURE__ */ a(l, {
48
+ return /* @__PURE__ */ o(l, {
48
49
  ..._,
49
- ref: t,
50
+ ref: n,
50
51
  "aria-hidden": v ? void 0 : !0,
51
52
  "aria-label": u,
52
53
  onClick: x,
@@ -54,9 +55,9 @@ var l = n(t, {
54
55
  tabIndex: v ? h : -1,
55
56
  variant: "overlay",
56
57
  sx: m,
57
- children: f ?? /* @__PURE__ */ a(c, {})
58
+ children: f ?? /* @__PURE__ */ o(r, {})
58
59
  });
59
- }), d = i.memo(u);
60
+ }), d = a.memo(u);
60
61
  d.displayName = "SScrollToTop";
61
62
  //#endregion
62
63
  export { d as SScrollToTop, d as default };