@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,9 +1,9 @@
1
1
  import { toSxArray as e } from "../utils/sx.js";
2
- import { ScrollVelocityContext as t } from "./scroll-velocity-container.js";
3
- import n, { useContext as r, useEffect as i, useRef as a, useState as o } from "react";
4
- import { jsx as s } from "react/jsx-runtime";
5
- import { Box as c, useTheme as l } from "@mui/material";
6
- import { useForkRef as u } from "@mui/material/utils";
2
+ import { t } from "../useForkRef-BuNFTXxE.js";
3
+ import { ScrollVelocityContext as n } from "./scroll-velocity-container.js";
4
+ import r, { useContext as i, useEffect as a, useRef as o, useState as s } from "react";
5
+ import { jsx as c } from "react/jsx-runtime";
6
+ import { Box as l, useTheme as u } from "@mui/material";
7
7
  import { motion as d, useAnimationFrame as f, useMotionValue as p, useScroll as m, useSpring as h, useTransform as g, useVelocity as _ } from "framer-motion";
8
8
  //#region lib/s-scroll-velocity/scroll-velocity-row.tsx
9
9
  var v = (e, t, n) => {
@@ -13,12 +13,12 @@ var v = (e, t, n) => {
13
13
  function y(e) {
14
14
  return Array.from({ length: e }, (e, t) => `scroll-velocity-copy-${t + 1}`);
15
15
  }
16
- var b = n.forwardRef(function({ children: t, baseVelocity: r = 5, direction: m = 1, spacing: h = 0, sx: _, velocityFactor: b, ...x }, S) {
17
- let C = l(), w = a(null), T = u(w, S), E = a(null), [D, O] = o(1), k = p(0), A = a(m >= 0 ? -1 : 1), j = a(m >= 0 ? -1 : 1), M = p(0), N = a(!0), P = a(!0), F = a(!1), I = n.useMemo(() => y(D), [D]), L = C.spacing(h);
18
- i(() => {
16
+ var b = r.forwardRef(function({ children: n, baseVelocity: i = 5, direction: m = 1, spacing: h = 0, sx: _, velocityFactor: b, ...x }, S) {
17
+ let C = u(), w = o(null), T = t(w, S), E = o(null), [D, O] = s(1), k = p(0), A = o(m >= 0 ? -1 : 1), j = o(m >= 0 ? -1 : 1), M = p(0), N = o(!0), P = o(!0), F = o(!1), I = r.useMemo(() => y(D), [D]), L = C.spacing(h);
18
+ a(() => {
19
19
  let e = m >= 0 ? -1 : 1, t = A.current;
20
20
  A.current = e, j.current *= e / t;
21
- }, [m]), i(() => {
21
+ }, [m]), a(() => {
22
22
  let e = w.current, t = E.current, n = t?.parentElement;
23
23
  if (!e || !t || !n) return;
24
24
  let r = () => {
@@ -45,23 +45,23 @@ var b = n.forwardRef(function({ children: t, baseVelocity: r = 5, direction: m =
45
45
  i.disconnect(), a.disconnect(), document.removeEventListener("visibilitychange", o), s.removeEventListener("change", c);
46
46
  };
47
47
  }, [
48
- t,
48
+ n,
49
49
  L,
50
50
  M
51
51
  ]);
52
52
  let R = g([k, M], ([e, t]) => `${-v(0, Number(t) || 1, -(Number(e) || 0))}px`);
53
53
  return f((e, t) => {
54
54
  if (!N.current || !P.current || F.current) return;
55
- let n = t / 1e3, i = b.get(), a = Math.min(5, Math.abs(i)), o = 1 + a;
55
+ let n = t / 1e3, r = b.get(), a = Math.min(5, Math.abs(r)), o = 1 + a;
56
56
  if (a > .1) {
57
- let e = i >= 0 ? 1 : -1;
57
+ let e = r >= 0 ? 1 : -1;
58
58
  j.current = A.current * e;
59
59
  }
60
60
  let s = M.get() ?? 0;
61
61
  if (s <= 0) return;
62
- let c = s * r / 100, l = j.current * c * o * n;
62
+ let c = s * i / 100, l = j.current * c * o * n;
63
63
  k.set(k.get() + l);
64
- }), /* @__PURE__ */ s(c, {
64
+ }), /* @__PURE__ */ c(l, {
65
65
  ref: T,
66
66
  sx: [{
67
67
  width: "100%",
@@ -69,7 +69,7 @@ var b = n.forwardRef(function({ children: t, baseVelocity: r = 5, direction: m =
69
69
  whiteSpace: "nowrap"
70
70
  }, ...e(_)],
71
71
  ...x,
72
- children: /* @__PURE__ */ s(d.div, {
72
+ children: /* @__PURE__ */ c(d.div, {
73
73
  style: {
74
74
  display: "inline-flex",
75
75
  alignItems: "center",
@@ -78,10 +78,10 @@ var b = n.forwardRef(function({ children: t, baseVelocity: r = 5, direction: m =
78
78
  userSelect: "none",
79
79
  x: R
80
80
  },
81
- children: I.map((e, n) => /* @__PURE__ */ s(c, {
82
- ref: n === 0 ? E : null,
83
- "aria-hidden": n !== 0,
84
- inert: n !== 0,
81
+ children: I.map((e, t) => /* @__PURE__ */ c(l, {
82
+ ref: t === 0 ? E : null,
83
+ "aria-hidden": t !== 0,
84
+ inert: t !== 0,
85
85
  sx: {
86
86
  display: "inline-flex",
87
87
  flexShrink: 0,
@@ -89,29 +89,29 @@ var b = n.forwardRef(function({ children: t, baseVelocity: r = 5, direction: m =
89
89
  columnGap: L
90
90
  },
91
91
  component: "div",
92
- children: t
92
+ children: n
93
93
  }, e))
94
94
  })
95
95
  });
96
- }), x = n.forwardRef(function(e, t) {
96
+ }), x = r.forwardRef(function(e, t) {
97
97
  let { scrollY: n } = m(), r = g(h(_(n), {
98
98
  damping: 50,
99
99
  stiffness: 400
100
100
  }), (e) => (e < 0 ? -1 : 1) * Math.min(5, Math.abs(e) / 1e3 * 5));
101
- return /* @__PURE__ */ s(b, {
101
+ return /* @__PURE__ */ c(b, {
102
102
  ...e,
103
103
  ref: t,
104
104
  velocityFactor: r
105
105
  });
106
- }), S = n.forwardRef(function(e, n) {
107
- let i = r(t);
108
- return i ? /* @__PURE__ */ s(b, {
106
+ }), S = r.forwardRef(function(e, t) {
107
+ let r = i(n);
108
+ return r ? /* @__PURE__ */ c(b, {
109
109
  ...e,
110
- ref: n,
111
- velocityFactor: i
112
- }) : /* @__PURE__ */ s(x, {
110
+ ref: t,
111
+ velocityFactor: r
112
+ }) : /* @__PURE__ */ c(x, {
113
113
  ...e,
114
- ref: n
114
+ ref: t
115
115
  });
116
116
  });
117
117
  //#endregion
@@ -0,0 +1,3 @@
1
+ export { default, default as SSegmentedControl } from './s-segmented-control';
2
+ export type { SSegmentedControlOption, SSegmentedControlOptionState, SSegmentedControlOwnerState, SSegmentedControlProps, SSegmentedControlSize, SSegmentedControlSlotProps, SSegmentedControlSlots, } from './s-segmented-control';
3
+ export type {} from '../theme/component-augmentation';
@@ -0,0 +1,2 @@
1
+ import { SSegmentedControl as e } from "./s-segmented-control.js";
2
+ export { e as SSegmentedControl, e as default };
@@ -0,0 +1,94 @@
1
+ import { BoxProps, ButtonBaseProps, TypographyProps } from '@mui/material';
2
+ import { OwnerStateSlotProps as MuiOwnerStateSlotProps } from '../utils/slots';
3
+ import * as React from 'react';
4
+ /** Height tier of the control. */
5
+ export type SSegmentedControlSize = 'small' | 'medium';
6
+ /** A single selectable segment. */
7
+ export interface SSegmentedControlOption<T extends React.Key = string> {
8
+ /** Optional trailing content, e.g. a count or an `SChip`. */
9
+ badge?: React.ReactNode;
10
+ /** Prevents this segment from being selected or focused. */
11
+ disabled?: boolean;
12
+ /** Optional leading content, typically an icon element. */
13
+ icon?: React.ReactNode;
14
+ /** Visible segment label. */
15
+ label: React.ReactNode;
16
+ /** Value committed when this segment becomes selected. */
17
+ value: T;
18
+ }
19
+ /**
20
+ * A `radiogroup` needs an accessible name, so exactly one of `aria-label` /
21
+ * `aria-labelledby` is required.
22
+ */
23
+ type SSegmentedControlAccessibleName = {
24
+ 'aria-label': string;
25
+ 'aria-labelledby'?: string;
26
+ } | {
27
+ 'aria-label'?: never;
28
+ 'aria-labelledby': string;
29
+ };
30
+ export interface SSegmentedControlSlots {
31
+ /** Trailing badge wrapper rendered for options that define `badge`. */
32
+ badge?: React.ElementType;
33
+ /** Leading icon wrapper rendered for options that define `icon`. */
34
+ icon?: React.ElementType;
35
+ /** Absolutely positioned element that slides behind the selected segment. */
36
+ indicator?: React.ElementType;
37
+ /** Option label element. */
38
+ label?: React.ElementType;
39
+ /** Interactive `role="radio"` element rendered for every option. */
40
+ option?: React.ElementType;
41
+ /** Outer `role="radiogroup"` element. */
42
+ root?: React.ElementType;
43
+ }
44
+ export interface SSegmentedControlSlotProps<T extends React.Key = string> {
45
+ /** Props or option-state callback for the badge slot. */
46
+ badge?: MuiOwnerStateSlotProps<Omit<BoxProps, 'children'>, SSegmentedControlOptionState<T>>;
47
+ /** Props or option-state callback for the icon slot. */
48
+ icon?: MuiOwnerStateSlotProps<Omit<BoxProps, 'children'>, SSegmentedControlOptionState<T>>;
49
+ /** Props or owner-state callback for the indicator slot. */
50
+ indicator?: MuiOwnerStateSlotProps<Omit<BoxProps, 'children'>, SSegmentedControlOwnerState<T>>;
51
+ /** Props or option-state callback for the label slot. */
52
+ label?: MuiOwnerStateSlotProps<Omit<TypographyProps, 'children'>, SSegmentedControlOptionState<T>>;
53
+ /** Props or option-state callback for the option slot. */
54
+ option?: MuiOwnerStateSlotProps<Omit<ButtonBaseProps, 'children' | 'disabled' | 'onClick' | 'onKeyDown' | 'tabIndex'>, SSegmentedControlOptionState<T>>;
55
+ /** Props or owner-state callback for the root slot. */
56
+ root?: MuiOwnerStateSlotProps<Omit<BoxProps, 'children'>, SSegmentedControlOwnerState<T>>;
57
+ }
58
+ /** Props for a segmented control built on ARIA radiogroup semantics. */
59
+ export type SSegmentedControlProps<T extends React.Key = string> = Omit<BoxProps, 'children' | 'component' | 'defaultValue' | 'onChange' | 'value'> & SSegmentedControlAccessibleName & {
60
+ /** Initially selected value when the control is uncontrolled. */
61
+ defaultValue?: T;
62
+ /** Disables the whole control. Individual segments use `options[].disabled`. */
63
+ disabled?: boolean;
64
+ /** Stretches the control and distributes segments evenly across its width. */
65
+ fullWidth?: boolean;
66
+ /** Called whenever the selection changes. */
67
+ onChange?: (event: React.SyntheticEvent, value: T) => void;
68
+ /** Segments rendered by the control, in visual order. */
69
+ options: readonly SSegmentedControlOption<T>[];
70
+ /** Height tier of the control. */
71
+ size?: SSegmentedControlSize;
72
+ /** Props or state callbacks for internal structural slots. */
73
+ slotProps?: SSegmentedControlSlotProps<T>;
74
+ /** Components used for internal structural slots. */
75
+ slots?: SSegmentedControlSlots;
76
+ /** Selected value for controlled usage. */
77
+ value?: T;
78
+ };
79
+ export type SSegmentedControlOwnerState<T extends React.Key = string> = SSegmentedControlProps<T> & {
80
+ disabled: boolean;
81
+ fullWidth: boolean;
82
+ selectedDisabled: boolean;
83
+ size: SSegmentedControlSize;
84
+ };
85
+ export type SSegmentedControlOptionState<T extends React.Key = string> = SSegmentedControlOwnerState<T> & {
86
+ option: SSegmentedControlOption<T>;
87
+ selected: boolean;
88
+ };
89
+ interface SSegmentedControlComponent {
90
+ <T extends React.Key = string>(props: SSegmentedControlProps<T> & React.RefAttributes<HTMLDivElement>): React.JSX.Element;
91
+ displayName?: string;
92
+ }
93
+ export declare const SSegmentedControl: SSegmentedControlComponent;
94
+ export default SSegmentedControl;
@@ -0,0 +1,302 @@
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 r } from "../useEventCallback-DGCsaRIu.js";
5
+ import { t as i } from "../appendOwnerState-CFQTq3pb.js";
6
+ import { actionHoverMedia as a, getFocusVisibleStyle as o, getSemanticActionTokens as s, reducedPressMotionStyle as c } from "../theme/components/action-styles.js";
7
+ import { t as l } from "../useEnhancedEffect-dBFfkm1e.js";
8
+ import { t as u } from "../useControlled-DqNPBJNp.js";
9
+ import { t as d } from "../mergeSlotProps-DC8r4QzS.js";
10
+ import * as f from "react";
11
+ import { createElement as p } from "react";
12
+ import { jsx as m, jsxs as h } from "react/jsx-runtime";
13
+ import { Box as g, ButtonBase as _, Typography as v, styled as y, useThemeProps as b } from "@mui/material";
14
+ //#region lib/s-segmented-control/s-segmented-control.tsx
15
+ var x = [
16
+ "ArrowDown",
17
+ "ArrowLeft",
18
+ "ArrowRight",
19
+ "ArrowUp",
20
+ "End",
21
+ "Home"
22
+ ], S = {
23
+ medium: 40,
24
+ small: 36
25
+ }, C = y(g, {
26
+ name: "SSegmentedControl",
27
+ slot: "Root",
28
+ shouldForwardProp: (e) => e !== "ownerState"
29
+ })(({ theme: e }) => ({
30
+ alignItems: "center",
31
+ backgroundColor: (e.vars ?? e).palette.action.hover,
32
+ borderRadius: e.radius.full,
33
+ display: "inline-flex",
34
+ gap: e.spacing(.5),
35
+ isolation: "isolate",
36
+ minHeight: S.medium + 8,
37
+ padding: e.spacing(.5),
38
+ position: "relative",
39
+ width: "fit-content",
40
+ variants: [{
41
+ props: ({ ownerState: e }) => e.size === "small",
42
+ style: {
43
+ gap: e.spacing(.25),
44
+ minHeight: S.small + 8
45
+ }
46
+ }, {
47
+ props: ({ ownerState: e }) => e.fullWidth,
48
+ style: {
49
+ display: "flex",
50
+ width: "100%"
51
+ }
52
+ }]
53
+ })), w = y(g, {
54
+ name: "SSegmentedControl",
55
+ slot: "Indicator",
56
+ shouldForwardProp: (e) => e !== "ownerState"
57
+ })(({ theme: e }) => {
58
+ let t = (e.vars ?? e).palette, n = s(e, "primary");
59
+ return {
60
+ backgroundColor: n.light.containedBackground,
61
+ borderRadius: e.radius.full,
62
+ left: 0,
63
+ pointerEvents: "none",
64
+ position: "absolute",
65
+ top: 0,
66
+ transition: e.transitions.create([
67
+ "height",
68
+ "opacity",
69
+ "transform",
70
+ "width"
71
+ ], {
72
+ duration: e.transitions.duration.standard,
73
+ easing: e.transitions.easing.easeInOut
74
+ }),
75
+ zIndex: 0,
76
+ ...e.applyStyles("dark", { backgroundColor: n.dark.containedBackground }),
77
+ variants: [{
78
+ props: ({ ownerState: e }) => e.disabled || e.selectedDisabled,
79
+ style: {
80
+ backgroundColor: t.action.disabledBackground,
81
+ boxShadow: "none"
82
+ }
83
+ }],
84
+ "@media (prefers-reduced-motion: reduce)": { transition: "none" }
85
+ };
86
+ }), T = y(_, {
87
+ name: "SSegmentedControl",
88
+ slot: "Option",
89
+ shouldForwardProp: (e) => e !== "ownerState"
90
+ })(({ theme: e }) => {
91
+ let t = (e.vars ?? e).palette, n = s(e, "primary");
92
+ return {
93
+ borderRadius: e.radius.full,
94
+ color: t.text.secondary,
95
+ flex: "0 0 auto",
96
+ fontWeight: e.typography.fontWeightRegular,
97
+ gap: e.spacing(1),
98
+ minHeight: S.medium,
99
+ minWidth: 0,
100
+ padding: e.spacing(0, 2),
101
+ position: "relative",
102
+ transition: e.transitions.create(["background-color", "color"], { duration: e.transitions.duration.shorter }),
103
+ zIndex: 1,
104
+ [a]: { "&:hover:not(.Mui-disabled)": {
105
+ backgroundColor: t.action.hover,
106
+ color: t.text.primary
107
+ } },
108
+ "&:active:not(.Mui-disabled)": { backgroundColor: t.action.selected },
109
+ "&.Mui-focusVisible": o(e),
110
+ "&.Mui-disabled": { color: t.action.disabled },
111
+ ...c,
112
+ variants: [
113
+ {
114
+ props: ({ ownerState: e }) => e.size === "small",
115
+ style: {
116
+ gap: e.spacing(.75),
117
+ minHeight: S.small,
118
+ padding: e.spacing(0, 1.5)
119
+ }
120
+ },
121
+ {
122
+ props: ({ ownerState: e }) => e.fullWidth,
123
+ style: { flex: "1 1 0" }
124
+ },
125
+ {
126
+ props: ({ ownerState: e }) => e.selected,
127
+ style: {
128
+ color: n.light.containedColor,
129
+ fontWeight: e.typography.fontWeightMedium,
130
+ [a]: { "&:hover:not(.Mui-disabled)": {
131
+ backgroundColor: "transparent",
132
+ color: n.light.containedColor
133
+ } },
134
+ "&:active:not(.Mui-disabled)": { backgroundColor: "transparent" },
135
+ ...e.applyStyles("dark", {
136
+ color: n.dark.containedColor,
137
+ [a]: { "&:hover:not(.Mui-disabled)": { color: n.dark.containedColor } }
138
+ })
139
+ }
140
+ }
141
+ ]
142
+ };
143
+ }), E = y(g, {
144
+ name: "SSegmentedControl",
145
+ slot: "Icon",
146
+ shouldForwardProp: (e) => e !== "ownerState"
147
+ })({
148
+ alignItems: "center",
149
+ display: "inline-flex",
150
+ flex: "0 0 auto",
151
+ fontSize: 20,
152
+ "& > *": { fontSize: "inherit" },
153
+ variants: [{
154
+ props: ({ ownerState: e }) => e.size === "small",
155
+ style: { fontSize: 18 }
156
+ }]
157
+ }), D = y(v, {
158
+ name: "SSegmentedControl",
159
+ slot: "Label",
160
+ shouldForwardProp: (e) => e !== "ownerState"
161
+ })({
162
+ color: "inherit",
163
+ fontWeight: "inherit",
164
+ minWidth: 0
165
+ }), O = y(g, {
166
+ name: "SSegmentedControl",
167
+ slot: "Badge",
168
+ shouldForwardProp: (e) => e !== "ownerState"
169
+ })({
170
+ alignItems: "center",
171
+ display: "inline-flex",
172
+ flex: "0 0 auto"
173
+ });
174
+ function k(a, o) {
175
+ let s = b({
176
+ props: a,
177
+ name: "SSegmentedControl"
178
+ }), { defaultValue: c, disabled: g = !1, fullWidth: _ = !1, onChange: v, options: y, size: S = "medium", slotProps: k, slots: A, sx: j, value: M, ...N } = s, [P, F] = u({
179
+ controlled: M,
180
+ default: c,
181
+ name: "SSegmentedControl",
182
+ state: "value"
183
+ }), I = y.some((e) => e.value === P && e.disabled), L = {
184
+ ...s,
185
+ disabled: g,
186
+ fullWidth: _,
187
+ selectedDisabled: I,
188
+ size: S
189
+ }, R = f.useRef(null), z = f.useRef(/* @__PURE__ */ new Map()), [B, V] = f.useState(null), H = f.useId();
190
+ l(() => {
191
+ let e = R.current;
192
+ if (!e) return;
193
+ let t = () => {
194
+ let t = P === void 0 ? void 0 : z.current.get(P);
195
+ if (!t) {
196
+ V((e) => e === null ? e : null);
197
+ return;
198
+ }
199
+ let n = e.getBoundingClientRect(), r = t.getBoundingClientRect(), i = {
200
+ height: r.height,
201
+ left: r.left - n.left,
202
+ top: r.top - n.top,
203
+ width: r.width
204
+ };
205
+ V((e) => e && e.height === i.height && e.left === i.left && e.top === i.top && e.width === i.width ? e : i);
206
+ };
207
+ if (t(), window.addEventListener("resize", t), typeof ResizeObserver > "u") return () => window.removeEventListener("resize", t);
208
+ let n = new ResizeObserver(t);
209
+ return n.observe(e), z.current.forEach((e) => n.observe(e)), () => {
210
+ n.disconnect(), window.removeEventListener("resize", t);
211
+ };
212
+ }, [
213
+ _,
214
+ JSON.stringify(y.map((e) => [
215
+ typeof e.value,
216
+ String(e.value),
217
+ !!e.disabled
218
+ ])),
219
+ S,
220
+ P
221
+ ]);
222
+ let U = r((e, t) => {
223
+ e !== P && (F(e), v?.(t, e));
224
+ }), W = r((e) => {
225
+ if (!x.includes(e.key)) return;
226
+ e.preventDefault();
227
+ let t = y.filter((e) => !e.disabled);
228
+ if (t.length === 0) return;
229
+ let n = t.findIndex((e) => e.value === P), r;
230
+ if (e.key === "Home") r = 0;
231
+ else if (e.key === "End") r = t.length - 1;
232
+ else {
233
+ let i = e.key === "ArrowLeft" || e.key === "ArrowUp" ? -1 : 1;
234
+ r = ((n === -1 ? i === 1 ? -1 : 0 : n) + i + t.length) % t.length;
235
+ }
236
+ let i = t[r];
237
+ i && (U(i.value, e), z.current.get(i.value)?.focus());
238
+ }), G = y.filter((e) => !e.disabled).map((e) => e.value), K = P !== void 0 && G.includes(P) ? P : G[0] ?? void 0, q = A?.root ?? C, J = A?.indicator ?? w, Y = A?.option ?? T, X = A?.icon ?? E, Z = A?.label ?? D, Q = A?.badge ?? O, { ref: $, sx: ee, ...te } = i(q, d(t(k?.root, L), N), L), ne = n($, R, o), { style: re, ...ie } = t(k?.indicator, L) ?? {}, ae = i(J, ie, L);
239
+ return /* @__PURE__ */ h(q, {
240
+ ...te,
241
+ "aria-disabled": g || void 0,
242
+ ref: ne,
243
+ role: "radiogroup",
244
+ sx: [...e(j), ...e(ee)],
245
+ children: [/* @__PURE__ */ m(J, {
246
+ "aria-hidden": !0,
247
+ ...ae,
248
+ style: {
249
+ height: B?.height ?? 0,
250
+ opacity: +!!B,
251
+ transform: `translate3d(${B?.left ?? 0}px, ${B?.top ?? 0}px, 0)`,
252
+ width: B?.width ?? 0,
253
+ ...re
254
+ }
255
+ }), y.map((e, n) => {
256
+ let r = e.value === P, a = `${H}-${n}`, o = `${a}-label`, s = `${a}-description`, c = e.badge != null, l = {
257
+ ...L,
258
+ option: e,
259
+ selected: r
260
+ }, u = i(Y, t(k?.option, l) ?? {}, l), d = i(X, t(k?.icon, l) ?? {}, l), f = t(k?.label, l) ?? {}, h = i(Z, {
261
+ component: "span",
262
+ noWrap: !0,
263
+ variant: S === "small" ? "body2" : "body1",
264
+ ...f
265
+ }, l), _ = i(Q, {
266
+ component: "span",
267
+ ...t(k?.badge, l) ?? {}
268
+ }, l);
269
+ return /* @__PURE__ */ p(Y, {
270
+ ...u,
271
+ "aria-checked": r,
272
+ "aria-describedby": c ? s : void 0,
273
+ "aria-labelledby": o,
274
+ disabled: g || e.disabled,
275
+ key: e.value,
276
+ onClick: (t) => U(e.value, t),
277
+ onKeyDown: W,
278
+ ref: (t) => {
279
+ t ? z.current.set(e.value, t) : z.current.delete(e.value);
280
+ },
281
+ role: "radio",
282
+ tabIndex: e.value === K ? 0 : -1
283
+ }, e.icon ? /* @__PURE__ */ m(X, {
284
+ "aria-hidden": !0,
285
+ ...d,
286
+ children: e.icon
287
+ }) : null, /* @__PURE__ */ m(Z, {
288
+ ...h,
289
+ id: o,
290
+ children: e.label
291
+ }), c ? /* @__PURE__ */ m(Q, {
292
+ ..._,
293
+ id: s,
294
+ children: e.badge
295
+ }) : null);
296
+ })]
297
+ });
298
+ }
299
+ var A = f.forwardRef(k);
300
+ A.displayName = "SSegmentedControl";
301
+ //#endregion
302
+ export { A as SSegmentedControl, A as default };
@@ -1,2 +1,2 @@
1
- import { SSelect as e } from "./s-select.js";
1
+ import { t as e } from "../s-select-CtVKEOZ5.js";
2
2
  export { e as SSelect, e as default };