@solostylist/ui-kit 2.0.0 → 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 (365) hide show
  1. package/dist/{Add-COc9VdNg.js → Add-CEnTWsXs.js} +1 -1
  2. package/dist/{ArrowUpward-D88i2k4q.js → ArrowUpward-udL1ltj2.js} +1 -1
  3. package/dist/{Button-DgIFcM44.js → Button-DaLr1m20.js} +5 -5
  4. package/dist/{ButtonBase-DxKtpFYs.js → ButtonBase-DovDC6-1.js} +224 -271
  5. package/dist/{Checkbox-BoZu9z2l.js → Checkbox-C-Xjbzzh.js} +7 -7
  6. package/dist/{ChevronRight-BxsM4W78.js → ChevronRight-DsPfsFKB.js} +1 -1
  7. package/dist/{Close-o4HFfK0I.js → Close-CIYOM-Sc.js} +1 -1
  8. package/dist/{Collapse-zgIFP5Sj.js → Collapse-DPUr1cbP.js} +46 -46
  9. package/dist/{ContentCopy-5unyTYXy.js → ContentCopy-Hlh3azVb.js} +1 -1
  10. package/dist/{DialogContent-CAry6lVf.js → DialogContent-b3xbJVC6.js} +5 -5
  11. package/dist/{Download-DtvoRwpl.js → Download-D9PkFi7a.js} +1 -1
  12. package/dist/{ExpandMore-Ba5bg6s-.js → ExpandMore-sOgvEha9.js} +1 -1
  13. package/dist/{Favorite-B_GsElm0.js → Favorite-BP343hjM.js} +1 -1
  14. package/dist/FavoriteBorder-D15j9xEL.js +6 -0
  15. package/dist/{FormControl-BxmM9UP6.js → FormControl-DwMfZCiz.js} +46 -52
  16. package/dist/{FormControlLabel-DzgppcC_.js → FormControlLabel-Ihga1FTB.js} +5 -5
  17. package/dist/{Grow-zRRuwUl-.js → Grow-BQR7x52V.js} +20 -20
  18. package/dist/{elementAcceptingRef-DhkNAkFH.js → IconButton-CE-4GamO.js} +87 -111
  19. package/dist/{InfoOutlined-VC7X46pc.js → InfoOutlined-lpvhO6P8.js} +1 -1
  20. package/dist/{List-CnGIAXAS.js → List-RNcZhRdr.js} +26 -24
  21. package/dist/Menu-CnyB4SDS.js +180 -0
  22. package/dist/{MenuItem-rXJfQzDC.js → MenuItem-Ck30dBOR.js} +15 -14
  23. package/dist/MenuList-Cc98uWXq.js +160 -0
  24. package/dist/{Modal-jAiibALV.js → Modal-CD2EBfU8.js} +116 -121
  25. package/dist/{Paper-ixxCeml9.js → Paper-_3qggtBp.js} +2 -2
  26. package/dist/Popover-BFdKSYI5.js +340 -0
  27. package/dist/{Popper-CVYyMS3c.js → Popper-DYNAMSDd.js} +62 -61
  28. package/dist/{Portal-AnyvFRC4.js → Portal-i_wgIe9-.js} +13 -17
  29. package/dist/Remove-DDEn8ek8.js +6 -0
  30. package/dist/{Stack-UMc4dV4G.js → Stack-C0LGzM4c.js} +1 -1
  31. package/dist/{SwitchBase-D7zqrstO.js → SwitchBase-CjWtDdmE.js} +5 -5
  32. package/dist/{Tooltip-DbCd6rgF.js → Tooltip-B1sn94L0.js} +161 -160
  33. package/dist/{Typography-yXjc7kVP.js → Typography-_P0svrkO.js} +3 -3
  34. package/dist/{UnfoldMoreRounded-DsN0HVDV.js → UnfoldMoreRounded-CuCrdxoy.js} +1 -1
  35. package/dist/{autocomplete-B_4y84Ba.js → autocomplete-BgARERpp.js} +1 -1
  36. package/dist/{avatar-BHuZu3DN.js → avatar-XNOdbbRz.js} +1 -1
  37. package/dist/chainPropTypes-CkMRtDjQ.js +8 -0
  38. package/dist/{checkbox-BKMZEVU5.js → checkbox-D1U_JKqs.js} +3 -3
  39. package/dist/{createSvgIcon-B0SZlJF1.js → createSvgIcon-3y-gS0r1.js} +3 -3
  40. package/dist/elementAcceptingRef-pKEY6jPR.js +25 -0
  41. package/dist/elementTypeAcceptingRef-xl_04Y5-.js +19 -0
  42. package/dist/{objectWithoutPropertiesLoose-Cpds-4w8.js → extends-DXMyyJCW.js} +1 -12
  43. package/dist/{field-label-styles-BOyhp6gw.js → field-label-styles-4praXMaE.js} +1 -1
  44. package/dist/getActiveElement-BfBkhgy6.js +8 -0
  45. package/dist/{gradients-90SYkAC0.js → gradients-mQAYCK0_.js} +1 -1
  46. package/dist/isFocusVisible-4OIE8TST.js +11 -0
  47. package/dist/isLayoutSupported-Btg2X3QE.js +6 -0
  48. package/dist/isMuiElement-CPjhi284.js +10 -0
  49. package/dist/main.js +1 -1
  50. package/dist/mega-menu-trigger-BcOo8I5_.js +53 -0
  51. package/dist/{mergeSlotProps-xl1-PgWL.js → mergeSlotProps-DC8r4QzS.js} +1 -1
  52. package/dist/objectWithoutPropertiesLoose-q4Zwd1RV.js +12 -0
  53. package/dist/{outlinedInputClasses-DECY98u0.js → outlinedInputClasses-ci1zDasn.js} +1 -1
  54. package/dist/ownerDocument-CJjQZweZ.js +6 -0
  55. package/dist/ownerDocument-pYjJiXem.js +5 -0
  56. package/dist/ownerWindow-SSeeoqPT.js +18 -0
  57. package/dist/palettes/index.js +1 -1
  58. package/dist/{palettes-Dw3PEYF5.js → palettes-B1FcGUYs.js} +2 -2
  59. package/dist/refType-j5S9pc_e.js +6 -0
  60. package/dist/s-accordion/index.js +1 -1
  61. package/dist/s-accordion/s-accordion.js +1 -1
  62. package/dist/{s-accordion-B8nlrdFc.js → s-accordion-1oLxQhod.js} +23 -23
  63. package/dist/s-action-overlay/s-action-overlay.js +1 -1
  64. package/dist/s-animated-gradient-text/index.d.ts +2 -0
  65. package/dist/s-animated-gradient-text/index.js +2 -0
  66. package/dist/s-animated-gradient-text/s-animated-gradient-text.d.ts +64 -0
  67. package/dist/s-animated-gradient-text/s-animated-gradient-text.js +93 -0
  68. package/dist/s-announcement-bar/index.d.ts +2 -0
  69. package/dist/s-announcement-bar/index.js +2 -0
  70. package/dist/s-announcement-bar/s-announcement-bar.d.ts +113 -0
  71. package/dist/s-announcement-bar/s-announcement-bar.js +275 -0
  72. package/dist/s-autocomplete/s-autocomplete.js +1 -1
  73. package/dist/s-avatar/s-avatar.js +1 -1
  74. package/dist/s-blur-text/s-blur-text.js +1 -1
  75. package/dist/s-brand-logo/index.js +1 -1
  76. package/dist/s-brand-logo/s-brand-logo.js +1 -1
  77. package/dist/s-breadcrumbs/s-breadcrumbs.js +1 -1
  78. package/dist/s-carousel/index.js +1 -1
  79. package/dist/s-carousel/s-carousel.d.ts +2 -0
  80. package/dist/s-carousel/s-carousel.js +1 -1
  81. package/dist/{s-carousel-Dnjke4JQ.js → s-carousel-CAyAl3ka.js} +7 -5
  82. package/dist/s-category-card/s-category-card.js +1 -1
  83. package/dist/s-chat-input/index.js +1 -1
  84. package/dist/s-chat-input/s-chat-input.js +1 -1
  85. package/dist/{s-chat-input-DCS0mJE4.js → s-chat-input-T3gyan60.js} +8 -8
  86. package/dist/s-chat-message/index.js +1 -1
  87. package/dist/s-chat-message/s-chat-message.js +1 -1
  88. package/dist/{s-chat-message-9oollJJq.js → s-chat-message-NFTpNgt5.js} +4 -4
  89. package/dist/s-checkbox/s-checkbox.js +5 -5
  90. package/dist/s-chips/index.js +1 -1
  91. package/dist/s-chips/s-chips.js +1 -1
  92. package/dist/{s-chips-WqGdqHW9.js → s-chips-Dqq1fgz-.js} +5 -5
  93. package/dist/s-code-block/index.js +1 -1
  94. package/dist/s-code-block/s-code-block.js +1 -1
  95. package/dist/{s-code-block-DzGoGg5e.js → s-code-block-DyDtctGG.js} +2 -2
  96. package/dist/s-comment-message/index.js +1 -1
  97. package/dist/s-comment-message/s-comment-message.js +1 -1
  98. package/dist/{s-comment-message-C6kfgRjv.js → s-comment-message-DpCVBKiE.js} +53 -52
  99. package/dist/s-copyable-text/s-copyable-text.js +2 -2
  100. package/dist/s-countdown/s-count-box.js +1 -1
  101. package/dist/s-data-table/index.js +1 -1
  102. package/dist/s-data-table/s-data-table.js +1 -1
  103. package/dist/{s-data-table-B1TGVupB.js → s-data-table-D4V58HFR.js} +16 -16
  104. package/dist/s-date-picker/index.js +1 -1
  105. package/dist/s-date-picker/s-date-picker.js +1 -1
  106. package/dist/s-date-picker-BFIQOA8C.js +657 -0
  107. package/dist/s-datetime-picker/index.js +1 -1
  108. package/dist/s-datetime-picker/s-datetime-picker.js +1 -1
  109. package/dist/{s-datetime-picker-ByzW44E0.js → s-datetime-picker-zfg7BEOW.js} +623 -615
  110. package/dist/s-dialog/index.js +1 -1
  111. package/dist/s-dialog/s-dialog.js +1 -1
  112. package/dist/{s-dialog-BLiyjLkx.js → s-dialog-BNlXsVVP.js} +10 -10
  113. package/dist/s-dialog-confirm/s-dialog-confirm.js +4 -4
  114. package/dist/s-dialog-message/s-dialog-message.js +4 -4
  115. package/dist/s-drawer/index.d.ts +3 -0
  116. package/dist/s-drawer/index.js +2 -0
  117. package/dist/s-drawer/s-drawer.d.ts +70 -0
  118. package/dist/s-drawer/s-drawer.js +2 -0
  119. package/dist/s-drawer-4h5ZyoM8.js +562 -0
  120. package/dist/s-empty/s-empty.js +2 -2
  121. package/dist/s-file-dropzone/index.js +1 -1
  122. package/dist/s-file-dropzone/s-file-dropzone.js +1 -1
  123. package/dist/{s-file-dropzone-CVQpYRdY.js → s-file-dropzone-Cfzv1Cm8.js} +16 -16
  124. package/dist/s-file-icon/s-file-icon.js +1 -1
  125. package/dist/s-flex-box/s-flex-box.js +1 -1
  126. package/dist/s-form/s-form.js +2 -2
  127. package/dist/s-gallery/s-gallery.js +1 -1
  128. package/dist/s-glow-button/s-glow-button.js +1 -1
  129. package/dist/s-gradient-blob-pulse/index.d.ts +2 -0
  130. package/dist/s-gradient-blob-pulse/index.js +2 -0
  131. package/dist/s-gradient-blob-pulse/s-gradient-blob-pulse.d.ts +62 -0
  132. package/dist/s-gradient-blob-pulse/s-gradient-blob-pulse.js +237 -0
  133. package/dist/s-gradient-icon/index.d.ts +1 -1
  134. package/dist/s-gradient-icon/s-gradient-icon.d.ts +4 -4
  135. package/dist/s-gradient-icon/s-gradient-icon.js +2 -2
  136. package/dist/s-icon-button/s-icon-button.d.ts +6 -2
  137. package/dist/s-icon-button/s-icon-button.js +8 -8
  138. package/dist/s-image-comparison/s-image-comparison.js +3 -3
  139. package/dist/s-image-viewer/image-viewer-thumbnail-dock.js +1 -1
  140. package/dist/s-image-viewer/index.js +1 -1
  141. package/dist/s-image-viewer/s-image-viewer.js +1 -1
  142. package/dist/s-image-viewer/use-image-viewer-navigation.js +1 -1
  143. package/dist/{s-image-viewer-DNIEYdtL.js → s-image-viewer-CjK67-rs.js} +5 -5
  144. package/dist/s-interactive-card/index.d.ts +3 -0
  145. package/dist/s-interactive-card/index.js +2 -0
  146. package/dist/s-interactive-card/s-interactive-card.d.ts +57 -0
  147. package/dist/s-interactive-card/s-interactive-card.js +152 -0
  148. package/dist/s-label/s-label.js +9 -9
  149. package/dist/s-language-switcher/index.js +1 -1
  150. package/dist/s-language-switcher/s-language-switcher.js +1 -1
  151. package/dist/s-language-switcher-PaMgHWc2.js +246 -0
  152. package/dist/s-lazy-image/s-lazy-image.js +2 -2
  153. package/dist/s-link/index.js +1 -1
  154. package/dist/s-link/s-link.js +1 -1
  155. package/dist/{s-link-CAMTGfd9.js → s-link-Db1aabHh.js} +5 -4
  156. package/dist/s-list-action-item/index.d.ts +2 -0
  157. package/dist/s-list-action-item/index.js +2 -0
  158. package/dist/s-list-action-item/s-list-action-item.d.ts +89 -0
  159. package/dist/s-list-action-item/s-list-action-item.js +150 -0
  160. package/dist/s-localization-provider/index.js +1 -1
  161. package/dist/s-localization-provider/s-localization-provider.js +1 -1
  162. package/dist/{s-localization-provider-Xw3NO2uP.js → s-localization-provider-CeyB_SGz.js} +2 -2
  163. package/dist/s-mega-menu/index.d.ts +3 -0
  164. package/dist/s-mega-menu/index.js +2 -0
  165. package/dist/s-mega-menu/mega-menu-panel.d.ts +38 -0
  166. package/dist/s-mega-menu/mega-menu-panel.js +253 -0
  167. package/dist/s-mega-menu/mega-menu-slots.d.ts +65 -0
  168. package/dist/s-mega-menu/mega-menu-slots.js +232 -0
  169. package/dist/s-mega-menu/mega-menu-trigger.d.ts +35 -0
  170. package/dist/s-mega-menu/mega-menu-trigger.js +2 -0
  171. package/dist/s-mega-menu/s-mega-menu.d.ts +23 -0
  172. package/dist/s-mega-menu/s-mega-menu.js +228 -0
  173. package/dist/s-mega-menu/types.d.ts +188 -0
  174. package/dist/s-mega-menu/types.js +0 -0
  175. package/dist/s-mega-menu/utils.d.ts +51 -0
  176. package/dist/s-mega-menu/utils.js +51 -0
  177. package/dist/s-mobile-dock/index.d.ts +3 -0
  178. package/dist/s-mobile-dock/index.js +2 -0
  179. package/dist/s-mobile-dock/s-mobile-dock.d.ts +96 -0
  180. package/dist/s-mobile-dock/s-mobile-dock.js +2 -0
  181. package/dist/s-mobile-dock-8F3UWAb8.js +615 -0
  182. package/dist/s-nav-item/index.d.ts +1 -1
  183. package/dist/s-nav-item/s-nav-item.d.ts +35 -16
  184. package/dist/s-nav-item/s-nav-item.js +56 -77
  185. package/dist/s-nav-items/index.js +2 -2
  186. package/dist/s-nav-items/s-nav-items.js +124 -2
  187. package/dist/s-no-ssr/index.js +1 -1
  188. package/dist/s-no-ssr/s-no-ssr.js +1 -1
  189. package/dist/s-number-range/index.d.ts +3 -0
  190. package/dist/s-number-range/index.js +2 -0
  191. package/dist/s-number-range/s-number-range.d.ts +109 -0
  192. package/dist/s-number-range/s-number-range.js +2 -0
  193. package/dist/s-number-range-Low5QjuD.js +253 -0
  194. package/dist/s-pagination/index.js +1 -1
  195. package/dist/s-pagination/s-pagination.js +1 -1
  196. package/dist/{s-pagination-Dt8Pk5Tp.js → s-pagination-s46hBifh.js} +33 -33
  197. package/dist/s-pixel-reveal/s-pixel-reveal.js +1 -1
  198. package/dist/s-popover/index.d.ts +5 -0
  199. package/dist/s-popover/index.js +3 -0
  200. package/dist/s-popover/placement.d.ts +14 -0
  201. package/dist/s-popover/placement.js +65 -0
  202. package/dist/s-popover/s-popover-content.d.ts +22 -0
  203. package/dist/s-popover/s-popover-content.js +22 -0
  204. package/dist/s-popover/s-popover.d.ts +59 -0
  205. package/dist/s-popover/s-popover.js +68 -0
  206. package/dist/s-product-card/index.d.ts +3 -0
  207. package/dist/s-product-card/index.js +2 -0
  208. package/dist/s-product-card/s-product-card.d.ts +216 -0
  209. package/dist/s-product-card/s-product-card.js +502 -0
  210. package/dist/s-product-gallery/index.d.ts +3 -0
  211. package/dist/s-product-gallery/index.js +2 -0
  212. package/dist/s-product-gallery/s-product-gallery.d.ts +116 -0
  213. package/dist/s-product-gallery/s-product-gallery.js +2 -0
  214. package/dist/s-product-gallery-Dj9eGg5i.js +430 -0
  215. package/dist/s-quantity-input/index.js +1 -1
  216. package/dist/s-quantity-input/s-quantity-input.js +246 -2
  217. package/dist/s-review/index.js +1 -1
  218. package/dist/s-review/s-review.js +1 -1
  219. package/dist/{s-review-DSXXtWlL.js → s-review--Q2C0ngO.js} +4 -4
  220. package/dist/s-scroll-reveal/s-scroll-reveal.js +1 -1
  221. package/dist/s-scroll-to-top/s-scroll-to-top.d.ts +1 -1
  222. package/dist/s-scroll-to-top/s-scroll-to-top.js +2 -2
  223. package/dist/s-scroll-velocity/scroll-velocity-row.js +1 -1
  224. package/dist/s-segmented-control/index.d.ts +3 -0
  225. package/dist/s-segmented-control/index.js +2 -0
  226. package/dist/s-segmented-control/s-segmented-control.d.ts +94 -0
  227. package/dist/s-segmented-control/s-segmented-control.js +302 -0
  228. package/dist/s-select/index.js +1 -1
  229. package/dist/s-select/s-select.js +1 -1
  230. package/dist/{s-select-dwY2DYa9.js → s-select-CtVKEOZ5.js} +3 -3
  231. package/dist/s-select-list/s-select-list.js +5 -5
  232. package/dist/s-skeleton/s-skeleton.js +10 -10
  233. package/dist/s-snackbar-message/index.js +1 -1
  234. package/dist/s-snackbar-message/s-snackbar-message.js +1 -1
  235. package/dist/{s-snackbar-message-3Z6VySlB.js → s-snackbar-message-DsfJlDYd.js} +98 -96
  236. package/dist/s-spotlight-cursor/s-spotlight-cursor.js +1 -1
  237. package/dist/s-status-illustration/s-status-illustration.js +1 -1
  238. package/dist/s-stepper/index.d.ts +3 -0
  239. package/dist/s-stepper/index.js +2 -0
  240. package/dist/s-stepper/s-stepper.d.ts +90 -0
  241. package/dist/s-stepper/s-stepper.js +2 -0
  242. package/dist/s-stepper-BtODHVro.js +892 -0
  243. package/dist/s-stripe/s-stripe.js +2 -2
  244. package/dist/s-stripe/stripe-input.js +1 -1
  245. package/dist/s-swatch/index.d.ts +3 -0
  246. package/dist/s-swatch/index.js +2 -0
  247. package/dist/s-swatch/s-swatch.d.ts +235 -0
  248. package/dist/s-swatch/s-swatch.js +219 -0
  249. package/dist/s-switch/index.js +1 -1
  250. package/dist/s-switch/s-switch.js +1 -1
  251. package/dist/{s-switch-B8bZAzLh.js → s-switch-BCeBoxWf.js} +18 -18
  252. package/dist/s-tabs/s-tabs.js +4 -4
  253. package/dist/s-text-editor/index.js +1 -1
  254. package/dist/s-text-editor/s-text-editor-toolbar.js +1 -1
  255. package/dist/s-text-editor/s-text-editor.js +2 -2
  256. package/dist/{s-text-editor-toolbar-D-XgFQix.js → s-text-editor-toolbar-D5eQ-jCs.js} +708 -705
  257. package/dist/s-text-field/index.js +1 -1
  258. package/dist/s-text-field/s-text-field.js +1 -1
  259. package/dist/{s-text-field-BM4qk0mf.js → s-text-field-HYyDf1Jo.js} +4 -4
  260. package/dist/s-text-shimmer/s-text-shimmer.js +1 -1
  261. package/dist/s-text-truncation/s-text-truncation.js +1 -1
  262. package/dist/s-theme-demo/s-theme-demo.js +1 -1
  263. package/dist/s-theme-demo/theme-demo-color-ramps-section.js +1 -1
  264. package/dist/s-theme-demo/theme-demo-components-section.js +1 -1
  265. package/dist/s-theme-provider/s-theme-provider.js +1 -1
  266. package/dist/s-theme-switch/index.js +1 -1
  267. package/dist/s-theme-switch/s-theme-switch.js +1 -1
  268. package/dist/{s-theme-switch-BLMz1_m2.js → s-theme-switch-BFWpADh3.js} +2 -2
  269. package/dist/s-tip/index.js +1 -1
  270. package/dist/s-tip/s-tip.js +1 -1
  271. package/dist/{s-tip-ty41ePQm.js → s-tip-jbL7vtoU.js} +5 -5
  272. package/dist/s-tool-bar/s-tool-bar.js +3 -3
  273. package/dist/s-tool-bar/tool-bar-action-buttons.js +1 -1
  274. package/dist/s-tool-bar/tool-bar-image-input.js +1 -1
  275. package/dist/s-tool-bar/tool-bar-inputs.js +3 -3
  276. package/dist/s-tool-item/s-tool-item.d.ts +10 -6
  277. package/dist/s-tool-item/s-tool-item.js +13 -13
  278. package/dist/s-two-pane-layout/s-two-pane-layout.js +1 -1
  279. package/dist/s-zoom-image/s-zoom-image.js +2 -2
  280. package/dist/setRef-BWPyWnrr.js +6 -0
  281. package/dist/theme/component-augmentation.d.ts +65 -1
  282. package/dist/theme/components/autocomplete.js +1 -1
  283. package/dist/theme/components/avatar.js +1 -1
  284. package/dist/theme/components/card.js +1 -1
  285. package/dist/theme/components/checkbox.js +1 -1
  286. package/dist/theme/components/chip.js +1 -1
  287. package/dist/theme/components/components.js +4 -4
  288. package/dist/theme/components/drawer.d.ts +1 -0
  289. package/dist/theme/components/drawer.js +4 -1
  290. package/dist/theme/components/field-label-styles.js +1 -1
  291. package/dist/theme/components/form-label.js +1 -1
  292. package/dist/theme/components/list-item-button.js +1 -1
  293. package/dist/theme/components/list-item.js +3 -3
  294. package/dist/theme/components/month-calendar.js +2 -2
  295. package/dist/theme/components/outlined-input.js +2 -2
  296. package/dist/theme/components/pickers-calendar-header.js +2 -2
  297. package/dist/theme/components/select.js +2 -2
  298. package/dist/theme/components/slider.js +18 -1
  299. package/dist/theme/components/step-connector.d.ts +0 -3
  300. package/dist/theme/components/step-connector.js +1 -6
  301. package/dist/theme/components/step-icon.d.ts +3 -12
  302. package/dist/theme/components/step-icon.js +3 -14
  303. package/dist/theme/components/switch.js +1 -1
  304. package/dist/theme/components/table-pagination.js +1 -1
  305. package/dist/theme/components/toggle-button.js +1 -1
  306. package/dist/theme/components/year-calendar.js +2 -2
  307. package/dist/theme/theme-primitives.js +2 -2
  308. package/dist/{theme-demo-components-section-gtIYRngY.js → theme-demo-components-section-C7l_2KAo.js} +4 -4
  309. package/dist/{theme-primitives-Dt_DT9b5.js → theme-primitives-CXtaMdVj.js} +2 -2
  310. package/dist/{toggle-button-Cxi5CfXC.js → toggle-button-BsGb-tOr.js} +1 -1
  311. package/dist/{tool-bar-action-buttons-Dt-pV3GA.js → tool-bar-action-buttons-v1koaasr.js} +3 -3
  312. package/dist/{tool-bar-image-input-BXlll_hV.js → tool-bar-image-input-DtXTyEe1.js} +2 -2
  313. package/dist/unsupportedProp-whMV_uOi.js +11 -0
  314. package/dist/{useControlled-BeB0W_Ui.js → useControlled-DqNPBJNp.js} +1 -1
  315. package/dist/useEventCallback-DGCsaRIu.js +5 -0
  316. package/dist/{useEventCallback-CVqMfiG_.js → useEventCallback-DhCPBxRG.js} +1 -4
  317. package/dist/{useMobilePicker-C4UQFvkj.js → useMobilePicker-CdrT935R.js} +2176 -2172
  318. package/dist/useRovingTabIndex-DPlW997R.js +242 -0
  319. package/dist/{useSlot-iIu8ek6E.js → useSlot-BG8ReOxN.js} +3 -3
  320. package/dist/{isLayoutSupported-Ceir7nyK.js → useSlotProps-BOO3qaI9.js} +4 -9
  321. package/dist/useThemeProps-Dw9dmKyT.js +29 -0
  322. package/dist/useTimeout-CoK-Khfm.js +49 -0
  323. package/dist/{utils-oJyTAkZY.js → utils-Bfqbev5I.js} +45 -11
  324. package/dist/{warning-CNkSZkq6.js → warning-D5YhCbje.js} +3 -2
  325. package/package.json +1 -1
  326. package/dist/ListContext-B1HQt3OD.js +0 -6
  327. package/dist/Menu-C4Zabc9U.js +0 -504
  328. package/dist/MenuList-DDV8J-yd.js +0 -407
  329. package/dist/isFocusVisible-Y7157FQS.js +0 -35
  330. package/dist/listItemButtonClasses-DbL-aTVf.js +0 -18
  331. package/dist/s-date-picker-BpX4HmBp.js +0 -656
  332. package/dist/s-language-switcher-D-1nywT3.js +0 -251
  333. package/dist/s-nav-items-BUp7DddG.js +0 -327
  334. package/dist/s-quantity-input-mYCixlJc.js +0 -246
  335. package/dist/theme/components/components.d.ts +0 -2
  336. package/dist/theme/components/slider.d.ts +0 -34
  337. package/dist/useThemeProps-BI9yq95N.js +0 -19
  338. package/dist/useThemeProps-Cr28OQu3.js +0 -13
  339. /package/dist/{appendOwnerState-CELpvdMz.js → appendOwnerState-CFQTq3pb.js} +0 -0
  340. /package/dist/{buttonBaseClasses-BvBqFLb_.js → buttonBaseClasses-B90LjsNK.js} +0 -0
  341. /package/dist/{capitalize-CccCFNpQ.js → capitalize-C0baBJCm.js} +0 -0
  342. /package/dist/{checkboxClasses-CEsqS4sc.js → checkboxClasses-B1up2lUn.js} +0 -0
  343. /package/dist/{colors-DKqWMRgW.js → colors-Bik9qOU9.js} +0 -0
  344. /package/dist/{contains-WOhYaq1E.js → contains-DnqPQsQU.js} +0 -0
  345. /package/dist/{createSimplePaletteValueFilter-C1gWywW_.js → createSimplePaletteValueFilter-DFvyXHoZ.js} +0 -0
  346. /package/dist/{formLabelClasses-B0Fa-86T.js → formLabelClasses-AuZHWfTs.js} +0 -0
  347. /package/dist/{iconButtonClasses-CkciZuIe.js → iconButtonClasses-CVVRFXRo.js} +0 -0
  348. /package/dist/{inputAdornmentClasses-D5yYK5bM.js → inputAdornmentClasses-BbB8s-Z4.js} +0 -0
  349. /package/dist/{inputBaseClasses-DuWQGq8Z.js → inputBaseClasses-Ce_jjdp9.js} +0 -0
  350. /package/dist/{integerPropType-Disnft4a.js → integerPropType-CCkQD1JY.js} +0 -0
  351. /package/dist/{isEventHandler-8dPdzK9U.js → isEventHandler-QShLXBxE.js} +0 -0
  352. /package/dist/{monthCalendarClasses-BYVHyEfI.js → monthCalendarClasses-b964KRbc.js} +0 -0
  353. /package/dist/{pickersCalendarHeaderClasses-CIj0gBye.js → pickersCalendarHeaderClasses-BAiPN_oY.js} +0 -0
  354. /package/dist/{s-brand-logo-jtAJZQIv.js → s-brand-logo-D7Jovf5K.js} +0 -0
  355. /package/dist/{s-no-ssr-D8tPdDfh.js → s-no-ssr-DH57_uP_.js} +0 -0
  356. /package/dist/{selectClasses-DoUlWfzV.js → selectClasses-CPxME5jE.js} +0 -0
  357. /package/dist/{svgIconClasses-C8D4AsMj.js → svgIconClasses-1kWGzgux.js} +0 -0
  358. /package/dist/{switchClasses-eiq1bkQN.js → switchClasses-BtweO7PC.js} +0 -0
  359. /package/dist/{typographyClasses-BLM3NmYd.js → typographyClasses-BH_-zLwg.js} +0 -0
  360. /package/dist/{useControlled-C4QJnpiR.js → useControlled-uxVKygk1.js} +0 -0
  361. /package/dist/{useEnhancedEffect-Bc3gBClC.js → useEnhancedEffect-dBFfkm1e.js} +0 -0
  362. /package/dist/{useForkRef-CKneCEtr.js → useForkRef-BuNFTXxE.js} +0 -0
  363. /package/dist/{useFormControl-iWLrn7Ek.js → useFormControl-gXwNeUM1.js} +0 -0
  364. /package/dist/{utils-DaSrTYUS.js → utils-DOY6v6ln.js} +0 -0
  365. /package/dist/{yearCalendarClasses-CuAQumpz.js → yearCalendarClasses-D9k_KT38.js} +0 -0
@@ -0,0 +1,502 @@
1
+ import { toSxArray as e } from "../utils/sx.js";
2
+ import { resolveOwnerStateSlotProps as t } from "../utils/slots.js";
3
+ import { t as n } from "../useForkRef-BuNFTXxE.js";
4
+ import { t as ee } from "../useEventCallback-DGCsaRIu.js";
5
+ import { t as r } from "../appendOwnerState-CFQTq3pb.js";
6
+ import { actionHoverMedia as i, getFocusVisibleStyle as a, reducedMotionMedia as o } from "../theme/components/action-styles.js";
7
+ import { t as te } from "../useControlled-DqNPBJNp.js";
8
+ import { t as s } from "../mergeSlotProps-DC8r4QzS.js";
9
+ import { t as ne } from "../Favorite-BP343hjM.js";
10
+ import { t as re } from "../FavoriteBorder-D15j9xEL.js";
11
+ import { SLazyImage as c } from "../s-lazy-image/s-lazy-image.js";
12
+ import { SIconButton as l } from "../s-icon-button/s-icon-button.js";
13
+ import { SSwatch as ie } from "../s-swatch/s-swatch.js";
14
+ import { SRating as ae } from "../s-rating/s-rating.js";
15
+ import { SInteractiveCard as u } from "../s-interactive-card/s-interactive-card.js";
16
+ import * as d from "react";
17
+ import { createElement as oe } from "react";
18
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
19
+ import { Box as m, CardActionArea as h, CardContent as g, CardMedia as _, Typography as v, styled as y, useThemeProps as se } from "@mui/material";
20
+ //#region lib/s-product-card/s-product-card.tsx
21
+ var ce = "clamp(180px, 38%, 240px)", le = 220, ue = 18, de = 2, b = (e) => ({ [i]: { "&:hover": e } }), x = (...e) => ({ ownerState: t }) => e.includes(t.variant), fe = y(u, {
22
+ name: "SProductCard",
23
+ slot: "Root",
24
+ shouldForwardProp: (e) => e !== "ownerState"
25
+ })(({ ownerState: e, theme: t }) => ({
26
+ "--SProductCard-hoverActionsOpacity": "1",
27
+ "--SProductCard-hoverActionsShift": "0px",
28
+ "--SProductCard-hoverImageOpacity": "0",
29
+ "--SProductCard-imageScale": "1",
30
+ display: "flex",
31
+ flexDirection: "column",
32
+ gap: 0,
33
+ height: "100%",
34
+ position: "relative",
35
+ ...e.interactive && !e.disabled && { "@media (hover: hover) and (pointer: fine)": {
36
+ "--SProductCard-hoverActionsOpacity": "0",
37
+ "--SProductCard-hoverActionsShift": `calc(${t.spacing(1.5)} * -1)`,
38
+ "&:hover, &:has(.Mui-focusVisible)": {
39
+ "--SProductCard-hoverActionsOpacity": "1",
40
+ "--SProductCard-hoverActionsShift": "0px"
41
+ }
42
+ } },
43
+ variants: [
44
+ {
45
+ props: x("list"),
46
+ style: {
47
+ flexDirection: "row",
48
+ [t.breakpoints.down("sm")]: { flexDirection: "column" }
49
+ }
50
+ },
51
+ {
52
+ props: x("overlay"),
53
+ style: {
54
+ backgroundColor: "transparent",
55
+ backgroundImage: "none",
56
+ border: 0,
57
+ boxShadow: "none"
58
+ }
59
+ },
60
+ {
61
+ props: ({ ownerState: e }) => e.interactive && !e.disabled && e.mediaZoom,
62
+ style: b({ "--SProductCard-imageScale": String(e.mediaZoomScale) })
63
+ },
64
+ {
65
+ props: ({ ownerState: e }) => e.interactive && !e.disabled && !!e.hoverImage,
66
+ style: b({ "--SProductCard-hoverImageOpacity": "1" })
67
+ },
68
+ {
69
+ props: ({ ownerState: e }) => e.disabled,
70
+ style: {
71
+ "--SProductCard-hoverActionsOpacity": "0",
72
+ "--SProductCard-hoverImageOpacity": "0",
73
+ "--SProductCard-imageScale": "1",
74
+ borderColor: (t.vars ?? t).palette.divider,
75
+ boxShadow: "none"
76
+ }
77
+ }
78
+ ]
79
+ })), pe = y(h, {
80
+ name: "SProductCard",
81
+ slot: "Link",
82
+ shouldForwardProp: (e) => e !== "ownerState"
83
+ })(({ theme: e }) => ({
84
+ borderRadius: "inherit",
85
+ inset: 0,
86
+ position: "absolute",
87
+ zIndex: 1,
88
+ "&.Mui-focusVisible": {
89
+ ...a(e),
90
+ outlineOffset: -2
91
+ }
92
+ })), me = y(_, {
93
+ name: "SProductCard",
94
+ slot: "Media",
95
+ shouldForwardProp: (e) => e !== "ownerState"
96
+ })(({ ownerState: e, theme: t }) => ({
97
+ aspectRatio: e.mediaHeight == null ? String(e.aspectRatio) : void 0,
98
+ backgroundColor: (t.vars ?? t).palette.background.paper,
99
+ display: "grid",
100
+ flexShrink: 0,
101
+ gridTemplateAreas: "\"media\"",
102
+ height: e.mediaHeight,
103
+ overflow: "hidden",
104
+ position: "relative",
105
+ width: "100%",
106
+ "& > *": {
107
+ gridArea: "media",
108
+ minWidth: 0
109
+ },
110
+ variants: [{
111
+ props: x("list"),
112
+ style: {
113
+ aspectRatio: "auto",
114
+ height: e.mediaHeight ?? "auto",
115
+ width: e.mediaWidth ?? ce,
116
+ [t.breakpoints.down("sm")]: {
117
+ height: e.mediaHeight ?? le,
118
+ width: "100%"
119
+ }
120
+ }
121
+ }, {
122
+ props: x("overlay"),
123
+ style: {
124
+ borderEndEndRadius: 0,
125
+ borderEndStartRadius: 0,
126
+ borderStartEndRadius: t.radius.md,
127
+ borderStartStartRadius: t.radius.md
128
+ }
129
+ }]
130
+ })), S = y(c, {
131
+ name: "SProductCard",
132
+ slot: "Image",
133
+ shouldForwardProp: (e) => e !== "ownerState"
134
+ })(({ theme: e }) => ({
135
+ height: "100%",
136
+ width: "100%",
137
+ "& img": {
138
+ objectFit: "cover",
139
+ objectPosition: "center",
140
+ transform: "scale(var(--SProductCard-imageScale))",
141
+ transition: e.transitions.create("transform", {
142
+ duration: e.transitions.duration.complex,
143
+ easing: e.transitions.easing.easeOut
144
+ }),
145
+ [o]: {
146
+ transform: "none",
147
+ transition: "none"
148
+ }
149
+ }
150
+ })), he = y(S, {
151
+ name: "SProductCard",
152
+ slot: "HoverImage",
153
+ shouldForwardProp: (e) => e !== "ownerState"
154
+ })(({ theme: e }) => ({
155
+ opacity: "var(--SProductCard-hoverImageOpacity)",
156
+ transition: e.transitions.create("opacity", { duration: e.transitions.duration.shorter }),
157
+ [o]: { transition: "none" }
158
+ })), ge = y(m, {
159
+ name: "SProductCard",
160
+ slot: "Badge",
161
+ shouldForwardProp: (e) => e !== "ownerState"
162
+ })(({ theme: e }) => ({
163
+ gridArea: "auto",
164
+ position: "absolute",
165
+ pointerEvents: "none",
166
+ zIndex: 2,
167
+ variants: [
168
+ {
169
+ props: ({ ownerState: e }) => e.badgePlacement.startsWith("top"),
170
+ style: { insetBlockStart: e.spacing(2) }
171
+ },
172
+ {
173
+ props: ({ ownerState: e }) => e.badgePlacement.startsWith("bottom"),
174
+ style: { insetBlockEnd: e.spacing(2) }
175
+ },
176
+ {
177
+ props: ({ ownerState: e }) => e.badgePlacement.endsWith("start"),
178
+ style: { insetInlineStart: e.spacing(2) }
179
+ },
180
+ {
181
+ props: ({ ownerState: e }) => e.badgePlacement.endsWith("end"),
182
+ style: { insetInlineEnd: e.spacing(2) }
183
+ }
184
+ ]
185
+ })), _e = y(m, {
186
+ name: "SProductCard",
187
+ slot: "HoverActions",
188
+ shouldForwardProp: (e) => e !== "ownerState"
189
+ })(({ theme: e }) => ({
190
+ alignItems: "center",
191
+ display: "flex",
192
+ flexDirection: "column",
193
+ gap: e.spacing(1),
194
+ gridArea: "auto",
195
+ opacity: "var(--SProductCard-hoverActionsOpacity)",
196
+ position: "absolute",
197
+ insetBlockStart: e.spacing(2),
198
+ insetInlineEnd: e.spacing(2),
199
+ transform: "translateY(var(--SProductCard-hoverActionsShift))",
200
+ transition: e.transitions.create(["opacity", "transform"], { duration: e.transitions.duration.shorter }),
201
+ zIndex: 2,
202
+ [o]: {
203
+ transform: "none",
204
+ transition: "none"
205
+ }
206
+ })), ve = y(g, {
207
+ name: "SProductCard",
208
+ slot: "Content",
209
+ shouldForwardProp: (e) => e !== "ownerState"
210
+ })(({ theme: e }) => ({
211
+ display: "flex",
212
+ flex: 1,
213
+ flexDirection: "column",
214
+ gap: e.spacing(1),
215
+ minWidth: 0,
216
+ padding: e.spacing(2),
217
+ position: "relative",
218
+ "&:last-child": { paddingBottom: e.spacing(2) },
219
+ variants: [
220
+ {
221
+ props: x("grid"),
222
+ style: { borderTop: `1px solid ${(e.vars ?? e).palette.divider}` }
223
+ },
224
+ {
225
+ props: x("mini"),
226
+ style: {
227
+ backgroundColor: (e.vars ?? e).palette.background.paper,
228
+ borderTopLeftRadius: e.radius.xl,
229
+ borderTopRightRadius: e.radius.xl,
230
+ marginTop: e.spacing(-3.5),
231
+ zIndex: 1
232
+ }
233
+ },
234
+ {
235
+ props: x("overlay"),
236
+ style: { textAlign: "center" }
237
+ }
238
+ ]
239
+ })), ye = y(v, {
240
+ name: "SProductCard",
241
+ slot: "Title",
242
+ shouldForwardProp: (e) => e !== "ownerState"
243
+ })({
244
+ display: "-webkit-box",
245
+ overflow: "hidden",
246
+ WebkitBoxOrient: "vertical",
247
+ WebkitLineClamp: de
248
+ }), be = y(m, {
249
+ name: "SProductCard",
250
+ slot: "Rating",
251
+ shouldForwardProp: (e) => e !== "ownerState"
252
+ })(({ theme: e }) => ({
253
+ alignItems: "center",
254
+ display: "flex",
255
+ gap: e.spacing(.5),
256
+ variants: [{
257
+ props: x("overlay"),
258
+ style: { justifyContent: "center" }
259
+ }]
260
+ })), xe = y(m, {
261
+ name: "SProductCard",
262
+ slot: "Meta",
263
+ shouldForwardProp: (e) => e !== "ownerState"
264
+ })(({ theme: e }) => ({
265
+ color: (e.vars ?? e).palette.text.secondary,
266
+ minWidth: 0,
267
+ ...e.typography.body2
268
+ })), Se = y(m, {
269
+ name: "SProductCard",
270
+ slot: "Swatches",
271
+ shouldForwardProp: (e) => e !== "ownerState"
272
+ })(({ theme: e }) => ({
273
+ alignItems: "center",
274
+ display: "flex",
275
+ flexWrap: "wrap",
276
+ gap: e.spacing(.5),
277
+ pointerEvents: "none",
278
+ position: "relative",
279
+ zIndex: 2,
280
+ variants: [{
281
+ props: x("overlay"),
282
+ style: { justifyContent: "center" }
283
+ }]
284
+ })), Ce = y(m, {
285
+ name: "SProductCard",
286
+ slot: "Footer",
287
+ shouldForwardProp: (e) => e !== "ownerState"
288
+ })(({ theme: e }) => ({
289
+ alignItems: "center",
290
+ display: "flex",
291
+ gap: e.spacing(1),
292
+ justifyContent: "space-between",
293
+ marginTop: "auto",
294
+ variants: [{
295
+ props: x("overlay"),
296
+ style: { justifyContent: "center" }
297
+ }]
298
+ })), we = y(v, {
299
+ name: "SProductCard",
300
+ slot: "Price",
301
+ shouldForwardProp: (e) => e !== "ownerState"
302
+ })(({ theme: e }) => ({
303
+ alignItems: "center",
304
+ color: (e.vars ?? e).palette.primary.main,
305
+ display: "flex",
306
+ gap: e.spacing(1),
307
+ minWidth: 0
308
+ })), Te = y(m, {
309
+ name: "SProductCard",
310
+ slot: "OriginalPrice",
311
+ shouldForwardProp: (e) => e !== "ownerState"
312
+ })(({ theme: e }) => ({
313
+ color: (e.vars ?? e).palette.text.secondary,
314
+ textDecoration: "line-through",
315
+ ...e.typography.body2
316
+ })), Ee = y(m, {
317
+ name: "SProductCard",
318
+ slot: "Actions",
319
+ shouldForwardProp: (e) => e !== "ownerState"
320
+ })(({ theme: e }) => ({
321
+ alignItems: "center",
322
+ display: "flex",
323
+ flexShrink: 0,
324
+ gap: e.spacing(.5),
325
+ position: "relative",
326
+ zIndex: 2
327
+ })), De = y(l, {
328
+ name: "SProductCard",
329
+ slot: "FavoriteButton",
330
+ shouldForwardProp: (e) => e !== "ownerState"
331
+ })(({ theme: e }) => ({ variants: [{
332
+ props: ({ ownerState: e }) => e.favorite,
333
+ style: { color: (e.vars ?? e).palette.error.main }
334
+ }] })), C = d.forwardRef(function(i, a) {
335
+ let o = se({
336
+ props: i,
337
+ name: "SProductCard"
338
+ }), { actions: c, alt: l = "", aspectRatio: u = 1, badge: m, badgePlacement: h = "top-start", defaultFavorite: g = !1, disableLift: _ = !1, disabled: y = !1, favorite: ce, favoriteActiveIcon: le = /* @__PURE__ */ f(ne, { fontSize: "inherit" }), favoriteActiveLabel: de = "Remove from wishlist", favoriteIcon: b = /* @__PURE__ */ f(re, { fontSize: "inherit" }), favoriteLabel: x = "Add to wishlist", footerContent: C, hoverActions: w, hoverImage: T, href: E, image: D, interactive: Oe = !0, linkLabel: ke, maxSwatches: Ae = 5, media: O, mediaHeight: je, mediaWidth: Me, mediaZoom: Ne = !0, mediaZoomScale: Pe = 1.08, meta: k, onClick: A, onFavoriteChange: Fe, originalPrice: j, price: M, rating: N, sheen: P = !1, showFavorite: F = !1, slotProps: I, slots: L, swatches: R, swatchesLabel: z, sx: Ie, title: B, variant: V = "grid", ...Le } = o, [H, Re] = te({
339
+ controlled: ce,
340
+ default: g,
341
+ name: "SProductCard",
342
+ state: "favorite"
343
+ }), U = Number.isFinite(Ae) ? Math.max(1, Math.floor(Ae)) : 5, W = !y && (E !== void 0 || A !== void 0), G = {
344
+ ...o,
345
+ alt: l,
346
+ aspectRatio: u,
347
+ badgePlacement: h,
348
+ clickable: W,
349
+ disableLift: _,
350
+ disabled: y,
351
+ favorite: H,
352
+ interactive: Oe,
353
+ maxSwatches: U,
354
+ mediaHeight: je,
355
+ mediaWidth: Me,
356
+ mediaZoom: Ne,
357
+ mediaZoomScale: Pe,
358
+ sheen: P,
359
+ showFavorite: F,
360
+ variant: V
361
+ }, K = L?.root ?? fe, q = L?.link ?? pe, J = L?.media ?? me, Y = L?.image ?? S, ze = L?.hoverImage ?? he, Be = L?.badge ?? ge, Ve = L?.hoverActions ?? _e, He = L?.content ?? ve, Ue = L?.title ?? ye, We = L?.rating ?? be, Ge = L?.meta ?? xe, Ke = L?.swatches ?? Se, qe = L?.footer ?? Ce, Je = L?.price ?? we, Ye = L?.originalPrice ?? Te, Xe = L?.actions ?? Ee, Ze = L?.favoriteButton ?? De, Qe = `${d.useId()}-title`, $e = ee((e) => {
362
+ if (y) return;
363
+ let t = !H;
364
+ Re(t), Fe?.(e, t);
365
+ }), { ref: et, sx: tt, ...nt } = r(K, {
366
+ ...s(t(I?.root, G), Le),
367
+ "aria-disabled": y || void 0,
368
+ disableLift: _,
369
+ disabled: y,
370
+ interactive: Oe,
371
+ sheen: P
372
+ }, G), rt = n(et, a), X = (e, n) => r(n, t(e, G) ?? {}, G), it = X(I?.media, J), at = r(Y, {
373
+ ...s(t(I?.image, G), { variant: "rectangular" }),
374
+ alt: l,
375
+ src: D
376
+ }, G), ot = r(ze, {
377
+ ...s(t(I?.hoverImage, G), { variant: "rectangular" }),
378
+ alt: "",
379
+ src: T
380
+ }, G), st = t(I?.badge, G) ?? {}, ct = r(Be, {
381
+ ...st,
382
+ inert: y || st.inert
383
+ }, G), lt = s(t(I?.hoverActions, G), { inert: y || void 0 }), ut = r(Ve, {
384
+ ...lt,
385
+ inert: y || lt.inert
386
+ }, G), dt = X(I?.content, He), ft = X(I?.rating, We), pt = X(I?.meta, Ge), mt = r(Ke, s(t(I?.swatches, G), {
387
+ "aria-label": z,
388
+ role: z ? "group" : void 0
389
+ }), G), ht = X(I?.footer, qe), gt = X(I?.originalPrice, Ye), _t = s(t(I?.actions, G), { inert: y || void 0 }), vt = r(Xe, {
390
+ ..._t,
391
+ inert: y || _t.inert
392
+ }, G), yt = r(Ue, s(t(I?.title, G), {
393
+ component: "h3",
394
+ id: Qe,
395
+ variant: V === "list" ? "subtitle1" : "body1"
396
+ }), G), bt = yt.id ?? Qe, Z = t(I?.link, G), xt = r(q, {
397
+ ...s(Z, {
398
+ "aria-label": ke,
399
+ "aria-labelledby": !(Z?.["aria-label"] != null || Z?.["aria-labelledby"] != null) && ke == null && B != null ? bt : void 0
400
+ }),
401
+ component: E === void 0 ? "button" : "a",
402
+ href: E,
403
+ nativeButton: E === void 0,
404
+ onClick: A,
405
+ type: E === void 0 ? "button" : void 0
406
+ }, G), St = r(Je, s(t(I?.price, G), {
407
+ component: "p",
408
+ variant: "subtitle1"
409
+ }), G), Q = s(t(I?.favoriteButton, G), {
410
+ "aria-label": H ? de : x,
411
+ "aria-pressed": H,
412
+ onClick: $e
413
+ }), Ct = r(Ze, {
414
+ ...Q,
415
+ disabled: y || Q.disabled,
416
+ size: Q.size ?? "medium"
417
+ }, G), $ = R?.slice(0, U) ?? [], wt = (R?.length ?? 0) - $.length, Tt = M != null || j != null, Et = F || c != null, Dt = Tt || Et || C != null;
418
+ return /* @__PURE__ */ p(K, {
419
+ ...nt,
420
+ ref: rt,
421
+ sx: [...e(Ie), ...e(tt)],
422
+ children: [
423
+ W ? /* @__PURE__ */ f(q, { ...xt }) : null,
424
+ O != null || D != null ? /* @__PURE__ */ p(J, {
425
+ ...it,
426
+ children: [
427
+ O,
428
+ O == null && D != null ? /* @__PURE__ */ f(Y, { ...at }) : null,
429
+ O == null && T != null ? /* @__PURE__ */ f(ze, { ...ot }) : null,
430
+ m == null ? null : /* @__PURE__ */ f(Be, {
431
+ ...ct,
432
+ children: m
433
+ }),
434
+ w == null ? null : /* @__PURE__ */ f(Ve, {
435
+ ...ut,
436
+ children: w
437
+ })
438
+ ]
439
+ }) : null,
440
+ /* @__PURE__ */ p(He, {
441
+ ...dt,
442
+ children: [
443
+ B == null ? null : /* @__PURE__ */ f(Ue, {
444
+ ...yt,
445
+ children: B
446
+ }),
447
+ N == null ? null : /* @__PURE__ */ f(We, {
448
+ ...ft,
449
+ children: typeof N == "number" ? /* @__PURE__ */ f(ae, {
450
+ precision: .5,
451
+ readOnly: !0,
452
+ size: "small",
453
+ value: N
454
+ }) : N
455
+ }),
456
+ k == null ? null : /* @__PURE__ */ f(Ge, {
457
+ ...pt,
458
+ children: k
459
+ }),
460
+ $.length > 0 ? /* @__PURE__ */ p(Ke, {
461
+ ...mt,
462
+ children: [$.map((e) => /* @__PURE__ */ oe(ie, {
463
+ ...e,
464
+ interactive: !1,
465
+ key: e.value,
466
+ shape: "square",
467
+ size: ue
468
+ })), wt > 0 ? /* @__PURE__ */ p(v, {
469
+ component: "span",
470
+ variant: "caption",
471
+ children: ["+", wt]
472
+ }) : null]
473
+ }) : null,
474
+ Dt ? /* @__PURE__ */ p(qe, {
475
+ ...ht,
476
+ children: [
477
+ Tt ? /* @__PURE__ */ p(Je, {
478
+ ...St,
479
+ children: [M, j == null ? null : /* @__PURE__ */ f(Ye, {
480
+ component: "del",
481
+ ...gt,
482
+ children: j
483
+ })]
484
+ }) : null,
485
+ C,
486
+ Et ? /* @__PURE__ */ p(Xe, {
487
+ ...vt,
488
+ children: [F ? /* @__PURE__ */ f(Ze, {
489
+ ...Ct,
490
+ children: H ? le : b
491
+ }) : null, c]
492
+ }) : null
493
+ ]
494
+ }) : null
495
+ ]
496
+ })
497
+ ]
498
+ });
499
+ });
500
+ C.displayName = "SProductCard";
501
+ //#endregion
502
+ export { C as SProductCard, C as default };
@@ -0,0 +1,3 @@
1
+ export { default, default as SProductGallery } from './s-product-gallery';
2
+ export type { SProductGalleryCarouselSlotProps, SProductGalleryImageItem, SProductGalleryItem, SProductGalleryOwnerState, SProductGalleryProps, SProductGallerySlotProps, SProductGallerySlots, SProductGalleryThumbnailOwnerState, SProductGalleryVideoItem, } from './s-product-gallery';
3
+ export type {} from '../theme/component-augmentation';
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../s-product-gallery-Dj9eGg5i.js";
2
+ export { e as SProductGallery, e as default };
@@ -0,0 +1,116 @@
1
+ import { BoxProps, ButtonBaseProps } from '@mui/material';
2
+ import { SCarouselProps } from '../s-carousel';
3
+ import { SLazyImageProps } from '../s-lazy-image';
4
+ import { OwnerStateSlotProps } from '../utils/slots';
5
+ import * as React from 'react';
6
+ interface SProductGalleryItemBase {
7
+ /** Stable identity and the value reported by `onChange`. */
8
+ id: string;
9
+ /** Media URL. */
10
+ src: string;
11
+ }
12
+ /** An image item shown in the product gallery. */
13
+ export interface SProductGalleryImageItem extends SProductGalleryItemBase {
14
+ /** Accessible alternative text. Use an empty string only for a decorative image. */
15
+ alt: string;
16
+ /** Image shown in the thumbnail rail. Defaults to `src`. */
17
+ thumbnailSrc?: string;
18
+ type?: 'image';
19
+ }
20
+ interface SProductGalleryVideoItemBase extends SProductGalleryItemBase {
21
+ /** Accessible name applied to the native video element. */
22
+ ariaLabel: string;
23
+ type: 'video';
24
+ }
25
+ /**
26
+ * A video item. A poster or dedicated thumbnail is required so the thumbnail
27
+ * rail never attempts to render the video URL through an image element.
28
+ */
29
+ export type SProductGalleryVideoItem = SProductGalleryVideoItemBase & ({
30
+ poster: string;
31
+ thumbnailSrc?: string;
32
+ } | {
33
+ poster?: string;
34
+ thumbnailSrc: string;
35
+ });
36
+ /** A single image or video in the product gallery. */
37
+ export type SProductGalleryItem = SProductGalleryImageItem | SProductGalleryVideoItem;
38
+ /** Props for <SProductGallery>. */
39
+ export interface SProductGalleryProps extends Omit<BoxProps, 'children' | 'component' | 'defaultValue' | 'onChange'> {
40
+ /**
41
+ * Stage aspect ratio (width / height). Keeping this fixed prevents layout shift
42
+ * when the selected media changes.
43
+ */
44
+ aspectRatio?: number | string;
45
+ /** Initially selected item id, for uncontrolled usage. Defaults to the first item. */
46
+ defaultValue?: string;
47
+ /** Returns the accessible name for a thumbnail button. */
48
+ getThumbnailAriaLabel?: (item: SProductGalleryItem, index: number, total: number) => string;
49
+ /** Media shown in the stage and the thumbnail rail. */
50
+ items: readonly SProductGalleryItem[];
51
+ /** Called with the newly selected item id. */
52
+ onChange?: (event: React.SyntheticEvent, value: string) => void;
53
+ /** Components used for internal structural slots. */
54
+ slots?: SProductGallerySlots;
55
+ /** Props or owner-state callbacks for internal structural slots. */
56
+ slotProps?: SProductGallerySlotProps;
57
+ /** Accessible name for the thumbnail rail. */
58
+ thumbnailsLabel?: string;
59
+ /** Thumbnails visible at once on wide viewports. Halves below the `sm` breakpoint. */
60
+ thumbnailsToShow?: number;
61
+ /** Selected item id, for controlled usage. */
62
+ value?: string;
63
+ }
64
+ export interface SProductGalleryOwnerState extends SProductGalleryProps {
65
+ /** Resolved fixed stage aspect ratio. */
66
+ aspectRatio: number | string;
67
+ /** The resolved active item, or `null` when there is nothing to show. */
68
+ activeItem: SProductGalleryItem | null;
69
+ /** Index of the active item, or `-1` when there is nothing to show. */
70
+ activeIndex: number;
71
+ thumbnailsLabel: string;
72
+ thumbnailsToShow: number;
73
+ value: string;
74
+ }
75
+ /** Owner state handed to the `thumbnail` slot. */
76
+ export interface SProductGalleryThumbnailOwnerState extends SProductGalleryOwnerState {
77
+ index: number;
78
+ item: SProductGalleryItem;
79
+ selected: boolean;
80
+ }
81
+ export interface SProductGallerySlots {
82
+ /** The embla-backed thumbnail carousel. */
83
+ carousel?: React.ElementType;
84
+ /** Shared media wrapper inside the stage. */
85
+ media?: React.ElementType;
86
+ /** Stage image renderer. */
87
+ image?: React.ElementType;
88
+ root?: React.ElementType;
89
+ /** Aspect-ratio box holding the active media. */
90
+ stage?: React.ElementType;
91
+ /** One thumbnail button. */
92
+ thumbnail?: React.ElementType;
93
+ /** Wrapper around the thumbnail rail. */
94
+ thumbnails?: React.ElementType;
95
+ /** Stage video renderer. */
96
+ video?: React.ElementType;
97
+ }
98
+ export type SProductGalleryCarouselSlotProps = Omit<SCarouselProps, 'apiRef' | 'autoplay' | 'autoplaySpeed' | 'centerMode' | 'centerPadding' | 'children' | 'infinite' | 'responsive' | 'slidesToShow' | 'spaceBetween'>;
99
+ export interface SProductGallerySlotProps {
100
+ carousel?: OwnerStateSlotProps<SProductGalleryCarouselSlotProps, SProductGalleryOwnerState>;
101
+ image?: OwnerStateSlotProps<Omit<SLazyImageProps, 'alt' | 'src'>, SProductGalleryOwnerState>;
102
+ media?: OwnerStateSlotProps<Omit<BoxProps, 'children'>, SProductGalleryOwnerState>;
103
+ root?: OwnerStateSlotProps<Omit<BoxProps, 'children' | 'component'>, SProductGalleryOwnerState>;
104
+ stage?: OwnerStateSlotProps<Omit<BoxProps, 'children'>, SProductGalleryOwnerState>;
105
+ thumbnail?: OwnerStateSlotProps<Omit<ButtonBaseProps, 'children'>, SProductGalleryThumbnailOwnerState>;
106
+ thumbnails?: OwnerStateSlotProps<Omit<BoxProps, 'children'>, SProductGalleryOwnerState>;
107
+ /** Native video props. `children` can provide caption or subtitle `<track>` elements. */
108
+ video?: OwnerStateSlotProps<Omit<React.ComponentPropsWithRef<'video'>, 'poster' | 'src'>, SProductGalleryOwnerState>;
109
+ }
110
+ /**
111
+ * Product media viewer: one stage plus a scrollable thumbnail rail, with both
112
+ * controlled and uncontrolled selection. A sibling of `SGallery` rather than a
113
+ * replacement — `SGallery` stays the masonry/reorder surface.
114
+ */
115
+ export declare const SProductGallery: React.ForwardRefExoticComponent<Omit<SProductGalleryProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
116
+ export default SProductGallery;
@@ -0,0 +1,2 @@
1
+ import { t as e } from "../s-product-gallery-Dj9eGg5i.js";
2
+ export { e as SProductGallery, e as default };