@solostylist/ui-kit 2.0.2 → 2.0.4

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 (310) hide show
  1. package/dist/{gradients-mQAYCK0_.js → gradients-DSnBONEQ.js} +1 -1
  2. package/dist/main.js +1 -1
  3. package/dist/palettes/index.js +1 -1
  4. package/dist/{palettes-B1FcGUYs.js → palettes-CJLuEy1m.js} +163 -163
  5. package/dist/s-accordion/index.js +1 -1
  6. package/dist/s-accordion/s-accordion.js +70 -2
  7. package/dist/s-action-overlay/s-action-overlay.js +21 -21
  8. package/dist/s-animated-gradient-text/s-animated-gradient-text.js +18 -19
  9. package/dist/s-announcement-bar/s-announcement-bar.js +50 -53
  10. package/dist/s-autocomplete/s-autocomplete.js +1 -1
  11. package/dist/s-avatar/s-avatar.js +17 -17
  12. package/dist/s-blur-text/s-blur-text.js +16 -16
  13. package/dist/s-brand-logo/index.js +1 -1
  14. package/dist/s-brand-logo/s-brand-logo.js +1 -1
  15. package/dist/s-breadcrumbs/s-breadcrumbs.js +19 -19
  16. package/dist/s-carousel/index.js +1 -1
  17. package/dist/s-carousel/s-carousel.js +186 -2
  18. package/dist/s-category-card/s-category-card.js +22 -22
  19. package/dist/s-chat-input/index.js +1 -1
  20. package/dist/s-chat-input/s-chat-input.js +398 -2
  21. package/dist/s-chat-message/index.js +1 -1
  22. package/dist/s-chat-message/s-chat-message.js +314 -2
  23. package/dist/s-checkbox/s-checkbox.js +18 -19
  24. package/dist/s-chips/index.js +1 -1
  25. package/dist/s-chips/s-chips.js +174 -2
  26. package/dist/s-code-block/index.js +1 -1
  27. package/dist/s-code-block/s-code-block.js +103 -2
  28. package/dist/s-comment-message/index.js +1 -1
  29. package/dist/s-comment-message/s-comment-message.js +189 -2
  30. package/dist/s-copyable-text/s-copyable-text.js +18 -18
  31. package/dist/s-countdown/s-count-box.js +18 -18
  32. package/dist/s-data-table/index.js +1 -1
  33. package/dist/s-data-table/s-data-table.js +213 -2
  34. package/dist/s-date-picker/index.js +1 -1
  35. package/dist/s-date-picker/s-date-picker.js +106 -2
  36. package/dist/s-datetime-picker/index.js +1 -1
  37. package/dist/s-datetime-picker/s-datetime-picker.js +108 -2
  38. package/dist/s-dialog/index.js +1 -1
  39. package/dist/s-dialog/s-dialog.js +80 -2
  40. package/dist/s-dialog-confirm/s-dialog-confirm.js +32 -33
  41. package/dist/s-dialog-message/s-dialog-message.js +31 -32
  42. package/dist/s-drawer/index.js +1 -1
  43. package/dist/s-drawer/s-drawer.js +139 -2
  44. package/dist/s-empty/s-empty.js +13 -14
  45. package/dist/s-file-dropzone/index.js +1 -1
  46. package/dist/s-file-dropzone/s-file-dropzone.js +219 -2
  47. package/dist/s-file-icon/s-file-icon.js +87 -88
  48. package/dist/s-flex-box/s-flex-box.js +11 -12
  49. package/dist/s-form/s-form.js +15 -15
  50. package/dist/s-gallery/s-gallery.js +1 -1
  51. package/dist/s-glow-button/s-glow-button.js +9 -10
  52. package/dist/s-gradient-blob-pulse/s-gradient-blob-pulse.js +23 -24
  53. package/dist/s-icon-button/s-icon-button.js +13 -14
  54. package/dist/s-image-comparison/s-image-comparison.js +29 -31
  55. package/dist/s-image-viewer/image-viewer-thumbnail-dock.js +1 -1
  56. package/dist/s-image-viewer/index.js +3 -3
  57. package/dist/s-image-viewer/s-image-viewer.js +266 -2
  58. package/dist/s-image-viewer/use-image-viewer-navigation.js +7 -7
  59. package/dist/s-interactive-card/s-interactive-card.js +39 -41
  60. package/dist/s-label/s-label.js +25 -26
  61. package/dist/s-language-switcher/index.js +2 -2
  62. package/dist/s-language-switcher/s-language-switcher.js +145 -2
  63. package/dist/s-lazy-image/s-lazy-image.js +17 -18
  64. package/dist/s-link/index.js +1 -1
  65. package/dist/s-link/s-link.js +5 -2
  66. package/dist/s-list-action-item/s-list-action-item.js +38 -39
  67. package/dist/s-localization-provider/index.js +1 -1
  68. package/dist/s-localization-provider/s-localization-provider.js +12 -2
  69. package/dist/s-mega-menu/mega-menu-panel.js +132 -134
  70. package/dist/s-mega-menu/mega-menu-trigger.js +49 -2
  71. package/dist/s-mega-menu/s-mega-menu.js +80 -83
  72. package/dist/s-mobile-dock/index.js +1 -1
  73. package/dist/s-mobile-dock/s-mobile-dock.js +145 -2
  74. package/dist/s-nav-item/s-nav-item.js +19 -20
  75. package/dist/s-nav-items/s-nav-items.js +51 -52
  76. package/dist/s-no-ssr/index.js +1 -1
  77. package/dist/s-no-ssr/s-no-ssr.js +5 -2
  78. package/dist/s-number-range/index.js +1 -1
  79. package/dist/s-number-range/s-number-range.js +250 -2
  80. package/dist/s-pagination/index.js +1 -1
  81. package/dist/s-pagination/s-pagination.js +85 -2
  82. package/dist/s-pixel-reveal/s-pixel-reveal.js +20 -20
  83. package/dist/s-popover/s-popover-content.js +11 -12
  84. package/dist/s-popover/s-popover.js +22 -24
  85. package/dist/s-product-card/s-product-card.js +177 -180
  86. package/dist/s-product-gallery/index.js +1 -1
  87. package/dist/s-product-gallery/s-product-gallery.js +427 -2
  88. package/dist/s-quantity-input/s-quantity-input.js +24 -24
  89. package/dist/s-review/index.js +1 -1
  90. package/dist/s-review/s-review.js +272 -2
  91. package/dist/s-scroll-reveal/s-scroll-reveal.js +7 -8
  92. package/dist/s-scroll-to-top/s-scroll-to-top.js +27 -28
  93. package/dist/s-scroll-velocity/scroll-velocity-row.js +29 -29
  94. package/dist/s-segmented-control/s-segmented-control.js +64 -68
  95. package/dist/s-select/index.js +1 -1
  96. package/dist/s-select/s-select.js +201 -2
  97. package/dist/s-select-list/s-select-list.js +47 -50
  98. package/dist/s-skeleton/s-skeleton.js +12 -13
  99. package/dist/s-snackbar-message/index.js +2 -2
  100. package/dist/s-snackbar-message/s-snackbar-message.js +89 -2
  101. package/dist/s-spotlight-cursor/s-spotlight-cursor.js +27 -27
  102. package/dist/s-status-illustration/s-status-illustration.js +74 -74
  103. package/dist/s-stepper/index.js +1 -1
  104. package/dist/s-stepper/s-stepper.js +102 -2
  105. package/dist/s-stripe/s-stripe.js +11 -12
  106. package/dist/s-stripe/stripe-input.js +3 -2
  107. package/dist/s-swatch/s-swatch.js +34 -35
  108. package/dist/s-switch/index.js +1 -1
  109. package/dist/s-switch/s-switch.js +48 -2
  110. package/dist/s-tabs/s-tabs.js +48 -50
  111. package/dist/s-text-editor/index.js +1 -1
  112. package/dist/s-text-editor/s-text-editor-toolbar.js +213 -2
  113. package/dist/s-text-editor/s-text-editor.js +25 -26
  114. package/dist/s-text-field/index.js +1 -1
  115. package/dist/s-text-field/s-text-field.js +52 -2
  116. package/dist/s-text-shimmer/s-text-shimmer.js +1 -3
  117. package/dist/s-text-truncation/s-text-truncation.js +20 -20
  118. package/dist/s-theme-demo/s-theme-demo.js +8 -8
  119. package/dist/s-theme-demo/theme-demo-color-palette-section.js +1 -1
  120. package/dist/s-theme-demo/theme-demo-color-ramps-section.js +1 -1
  121. package/dist/s-theme-demo/theme-demo-components-section.js +265 -2
  122. package/dist/s-theme-demo/theme-demo-typography-section.js +10 -10
  123. package/dist/s-theme-provider/s-theme-provider.js +1 -1
  124. package/dist/s-theme-switch/index.js +1 -1
  125. package/dist/s-theme-switch/s-theme-switch.js +60 -2
  126. package/dist/s-tip/index.js +1 -1
  127. package/dist/s-tip/s-tip.js +61 -2
  128. package/dist/s-tool-bar/s-tool-bar.js +28 -28
  129. package/dist/s-tool-bar/tool-bar-action-buttons.js +55 -2
  130. package/dist/s-tool-bar/tool-bar-image-input.js +148 -2
  131. package/dist/s-tool-bar/tool-bar-inputs.js +55 -55
  132. package/dist/s-tool-item/s-tool-item.js +22 -22
  133. package/dist/s-two-pane-layout/s-two-pane-layout.js +32 -32
  134. package/dist/s-zoom-image/s-zoom-image.js +18 -19
  135. package/dist/theme/components/autocomplete.js +43 -2
  136. package/dist/theme/components/avatar.js +9 -2
  137. package/dist/theme/components/card.js +3 -3
  138. package/dist/theme/components/checkbox.js +90 -2
  139. package/dist/theme/components/chip.js +3 -3
  140. package/dist/theme/components/components.js +20 -20
  141. package/dist/theme/components/date-calendar.js +1 -0
  142. package/dist/theme/components/day-calendar.js +1 -0
  143. package/dist/theme/components/drawer.js +1 -1
  144. package/dist/theme/components/field-label-styles.js +19 -2
  145. package/dist/theme/components/form-label.js +1 -1
  146. package/dist/theme/components/list-item-button.js +1 -1
  147. package/dist/theme/components/list-item.js +7 -7
  148. package/dist/theme/components/month-calendar.js +14 -13
  149. package/dist/theme/components/multi-section-digital-clock-section.js +1 -0
  150. package/dist/theme/components/outlined-input.js +6 -6
  151. package/dist/theme/components/picker-day.js +1 -0
  152. package/dist/theme/components/pickers-arrow-switcher.js +1 -0
  153. package/dist/theme/components/pickers-calendar-header.js +3 -2
  154. package/dist/theme/components/select.js +6 -6
  155. package/dist/theme/components/switch.js +1 -1
  156. package/dist/theme/components/table-pagination.js +1 -1
  157. package/dist/theme/components/toggle-button.js +93 -2
  158. package/dist/theme/components/year-calendar.js +14 -13
  159. package/dist/theme/theme-primitives.js +2 -2
  160. package/dist/{theme-primitives-CXtaMdVj.js → theme-primitives-CRfnMsNy.js} +108 -109
  161. package/dist/utils/dayjs.js +9 -146
  162. package/package.json +8 -3
  163. package/dist/Add-CEnTWsXs.js +0 -6
  164. package/dist/ArrowUpward-udL1ltj2.js +0 -6
  165. package/dist/Box-9oeZgA1U.js +0 -46
  166. package/dist/Button-DaLr1m20.js +0 -534
  167. package/dist/ButtonBase-DovDC6-1.js +0 -700
  168. package/dist/Checkbox-C-Xjbzzh.js +0 -152
  169. package/dist/ChevronRight-DsPfsFKB.js +0 -6
  170. package/dist/Close-CIYOM-Sc.js +0 -6
  171. package/dist/Collapse-DPUr1cbP.js +0 -266
  172. package/dist/ContentCopy-Hlh3azVb.js +0 -6
  173. package/dist/DefaultPropsProvider-ebWx4_5E.js +0 -128
  174. package/dist/DialogContent-b3xbJVC6.js +0 -450
  175. package/dist/Download-D9PkFi7a.js +0 -6
  176. package/dist/ExpandMore-sOgvEha9.js +0 -6
  177. package/dist/Favorite-BP343hjM.js +0 -6
  178. package/dist/FavoriteBorder-D15j9xEL.js +0 -6
  179. package/dist/FormControl-DwMfZCiz.js +0 -215
  180. package/dist/FormControlLabel-Ihga1FTB.js +0 -173
  181. package/dist/Grow-BQR7x52V.js +0 -121
  182. package/dist/IconButton-CE-4GamO.js +0 -448
  183. package/dist/InfoOutlined-lpvhO6P8.js +0 -6
  184. package/dist/List-RNcZhRdr.js +0 -105
  185. package/dist/Menu-CnyB4SDS.js +0 -180
  186. package/dist/MenuItem-Ck30dBOR.js +0 -224
  187. package/dist/MenuList-Cc98uWXq.js +0 -160
  188. package/dist/Modal-CD2EBfU8.js +0 -702
  189. package/dist/Paper-_3qggtBp.js +0 -115
  190. package/dist/Popover-BFdKSYI5.js +0 -340
  191. package/dist/Popper-DYNAMSDd.js +0 -1351
  192. package/dist/Portal-i_wgIe9-.js +0 -49
  193. package/dist/Remove-DDEn8ek8.js +0 -6
  194. package/dist/RtlProvider-B7uVJXUY.js +0 -19
  195. package/dist/Skeleton-iZFynl7z.js +0 -220
  196. package/dist/Stack-C0LGzM4c.js +0 -158
  197. package/dist/SwitchBase-CjWtDdmE.js +0 -198
  198. package/dist/Tooltip-B1sn94L0.js +0 -448
  199. package/dist/Typography-_P0svrkO.js +0 -168
  200. package/dist/UnfoldMoreRounded-CuCrdxoy.js +0 -6
  201. package/dist/appendOwnerState-CFQTq3pb.js +0 -17
  202. package/dist/assets/stripe-input.css +0 -1
  203. package/dist/autocomplete-BgARERpp.js +0 -43
  204. package/dist/avatar-XNOdbbRz.js +0 -10
  205. package/dist/buttonBaseClasses-B90LjsNK.js +0 -13
  206. package/dist/capitalize-C0baBJCm.js +0 -5
  207. package/dist/chainPropTypes-CkMRtDjQ.js +0 -8
  208. package/dist/checkbox-D1U_JKqs.js +0 -88
  209. package/dist/checkboxClasses-B1up2lUn.js +0 -18
  210. package/dist/chunk-C_CI6nMA.js +0 -13
  211. package/dist/clsx-DGZSe4Nt.js +0 -16
  212. package/dist/colorManipulator-DmUjcif3.js +0 -129
  213. package/dist/contains-DnqPQsQU.js +0 -16
  214. package/dist/createSimplePaletteValueFilter-DFvyXHoZ.js +0 -14
  215. package/dist/createSvgIcon-3y-gS0r1.js +0 -155
  216. package/dist/createTheme-xB2Em0Na.js +0 -1869
  217. package/dist/defaultTheme-BaGcIzCh.js +0 -210
  218. package/dist/elementAcceptingRef-pKEY6jPR.js +0 -25
  219. package/dist/elementTypeAcceptingRef-xl_04Y5-.js +0 -19
  220. package/dist/exactProp-C_IsucXf.js +0 -13
  221. package/dist/extends-DXMyyJCW.js +0 -12
  222. package/dist/field-label-styles-4praXMaE.js +0 -50
  223. package/dist/formLabelClasses-AuZHWfTs.js +0 -18
  224. package/dist/generateUtilityClass-PAIOm1jC.js +0 -34
  225. package/dist/generateUtilityClasses-DvX505Gy.js +0 -10
  226. package/dist/getActiveElement-BfBkhgy6.js +0 -8
  227. package/dist/iconButtonClasses-CVVRFXRo.js +0 -27
  228. package/dist/inputAdornmentClasses-BbB8s-Z4.js +0 -19
  229. package/dist/inputBaseClasses-Ce_jjdp9.js +0 -25
  230. package/dist/integerPropType-CCkQD1JY.js +0 -27
  231. package/dist/isEventHandler-QShLXBxE.js +0 -7
  232. package/dist/isFocusVisible-4OIE8TST.js +0 -11
  233. package/dist/isLayoutSupported-Btg2X3QE.js +0 -6
  234. package/dist/isMuiElement-CPjhi284.js +0 -10
  235. package/dist/mega-menu-trigger-BcOo8I5_.js +0 -53
  236. package/dist/memoTheme-qFyKAk7y.js +0 -15
  237. package/dist/mergeSlotProps-DC8r4QzS.js +0 -45
  238. package/dist/monthCalendarClasses-b964KRbc.js +0 -14
  239. package/dist/objectWithoutPropertiesLoose-q4Zwd1RV.js +0 -12
  240. package/dist/outlinedInputClasses-ci1zDasn.js +0 -17
  241. package/dist/ownerDocument-CJjQZweZ.js +0 -6
  242. package/dist/ownerDocument-pYjJiXem.js +0 -5
  243. package/dist/ownerWindow-SSeeoqPT.js +0 -18
  244. package/dist/pickersCalendarHeaderClasses-BAiPN_oY.js +0 -12
  245. package/dist/prop-types-BzYPyWN7.js +0 -516
  246. package/dist/refType-j5S9pc_e.js +0 -6
  247. package/dist/resolveProps-7jIA45vn.js +0 -30
  248. package/dist/s-accordion-1oLxQhod.js +0 -487
  249. package/dist/s-carousel-CAyAl3ka.js +0 -1355
  250. package/dist/s-chat-input-T3gyan60.js +0 -419
  251. package/dist/s-chat-message-NFTpNgt5.js +0 -315
  252. package/dist/s-chips-Dqq1fgz-.js +0 -176
  253. package/dist/s-code-block-DyDtctGG.js +0 -658
  254. package/dist/s-comment-message-DpCVBKiE.js +0 -192
  255. package/dist/s-data-table-D4V58HFR.js +0 -805
  256. package/dist/s-date-picker-BFIQOA8C.js +0 -657
  257. package/dist/s-datetime-picker-zfg7BEOW.js +0 -3886
  258. package/dist/s-dialog-BNlXsVVP.js +0 -123
  259. package/dist/s-drawer-4h5ZyoM8.js +0 -562
  260. package/dist/s-file-dropzone-Cfzv1Cm8.js +0 -422
  261. package/dist/s-image-viewer-CjK67-rs.js +0 -269
  262. package/dist/s-language-switcher-PaMgHWc2.js +0 -246
  263. package/dist/s-link-Db1aabHh.js +0 -235
  264. package/dist/s-localization-provider-CeyB_SGz.js +0 -519
  265. package/dist/s-mobile-dock-8F3UWAb8.js +0 -615
  266. package/dist/s-no-ssr-DH57_uP_.js +0 -25
  267. package/dist/s-number-range-Low5QjuD.js +0 -253
  268. package/dist/s-pagination-s46hBifh.js +0 -606
  269. package/dist/s-product-gallery-Dj9eGg5i.js +0 -430
  270. package/dist/s-review--Q2C0ngO.js +0 -272
  271. package/dist/s-select-CtVKEOZ5.js +0 -204
  272. package/dist/s-snackbar-message-DsfJlDYd.js +0 -810
  273. package/dist/s-stepper-BtODHVro.js +0 -892
  274. package/dist/s-switch-BCeBoxWf.js +0 -307
  275. package/dist/s-text-editor-toolbar-D5eQ-jCs.js +0 -2124
  276. package/dist/s-text-field-HYyDf1Jo.js +0 -51
  277. package/dist/s-theme-switch-BFWpADh3.js +0 -60
  278. package/dist/s-tip-jbL7vtoU.js +0 -62
  279. package/dist/selectClasses-CPxME5jE.js +0 -22
  280. package/dist/setRef-BWPyWnrr.js +0 -6
  281. package/dist/styled-Bog8QCl3.js +0 -163
  282. package/dist/svgIconClasses-1kWGzgux.js +0 -20
  283. package/dist/switchClasses-BtweO7PC.js +0 -23
  284. package/dist/theme-demo-components-section-C7l_2KAo.js +0 -267
  285. package/dist/toggle-button-BsGb-tOr.js +0 -104
  286. package/dist/tool-bar-action-buttons-v1koaasr.js +0 -54
  287. package/dist/tool-bar-image-input-DtXTyEe1.js +0 -148
  288. package/dist/typographyClasses-BH_-zLwg.js +0 -31
  289. package/dist/unsupportedProp-whMV_uOi.js +0 -11
  290. package/dist/useControlled-DqNPBJNp.js +0 -5
  291. package/dist/useControlled-uxVKygk1.js +0 -29
  292. package/dist/useEnhancedEffect-DFq_FMGX.js +0 -5
  293. package/dist/useEnhancedEffect-dBFfkm1e.js +0 -5
  294. package/dist/useEventCallback-DGCsaRIu.js +0 -5
  295. package/dist/useEventCallback-DhCPBxRG.js +0 -11
  296. package/dist/useForkRef-BuNFTXxE.js +0 -29
  297. package/dist/useFormControl-gXwNeUM1.js +0 -18
  298. package/dist/useMobilePicker-CdrT935R.js +0 -7584
  299. package/dist/useRovingTabIndex-DPlW997R.js +0 -242
  300. package/dist/useSlot-BG8ReOxN.js +0 -83
  301. package/dist/useSlotProps-BOO3qaI9.js +0 -16
  302. package/dist/useTheme-BIWMbX3i.js +0 -9
  303. package/dist/useThemeProps-Dw9dmKyT.js +0 -29
  304. package/dist/useTimeout-CoK-Khfm.js +0 -49
  305. package/dist/utils-Bfqbev5I.js +0 -248
  306. package/dist/warning-D5YhCbje.js +0 -99
  307. package/dist/yearCalendarClasses-D9k_KT38.js +0 -14
  308. /package/dist/{colors-Bik9qOU9.js → colors-CNjL5fhq.js} +0 -0
  309. /package/dist/{s-brand-logo-D7Jovf5K.js → s-brand-logo-CErW9Slg.js} +0 -0
  310. /package/dist/{utils-DOY6v6ln.js → utils-CMeAWSRO.js} +0 -0
@@ -1,67 +1,64 @@
1
1
  import { toSxArray as e } from "../utils/sx.js";
2
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 { t as ee } from "../useControlled-DqNPBJNp.js";
7
- import { t as a } from "../mergeSlotProps-DC8r4QzS.js";
8
- import { t as te } from "../mega-menu-trigger-BcOo8I5_.js";
9
- import { contains as o, focusAdjacentTrigger as s, getFirstRow as c } from "./utils.js";
10
- import { SMegaMenuPopover as ne, SMegaMenuRoot as re } from "./mega-menu-slots.js";
11
- import { MegaMenuPanelContent as ie } from "./mega-menu-panel.js";
12
- import * as l from "react";
13
- import { jsx as u, jsxs as ae } from "react/jsx-runtime";
14
- import { useMediaQuery as oe, useThemeProps as se } from "@mui/material";
3
+ import { contains as n, focusAdjacentTrigger as r, getFirstRow as i } from "./utils.js";
4
+ import { SMegaMenuPopover as a, SMegaMenuRoot as ee } from "./mega-menu-slots.js";
5
+ import { MegaMenuPanelContent as te } from "./mega-menu-panel.js";
6
+ import { MegaMenuTriggerButton as ne } from "./mega-menu-trigger.js";
7
+ import * as o from "react";
8
+ import { jsx as s, jsxs as re } from "react/jsx-runtime";
9
+ import { useMediaQuery as ie, useThemeProps as ae } from "@mui/material";
10
+ import { mergeSlotProps as c, useControlled as oe, useEventCallback as l, useForkRef as u } from "@mui/material/utils";
11
+ import d from "@mui/utils/appendOwnerState";
15
12
  //#region lib/s-mega-menu/s-mega-menu.tsx
16
- var ce = 0;
17
- function d(e, t) {
18
- return e.href === t || !!e.children?.some((e) => d(e, t));
13
+ var se = 0;
14
+ function f(e, t) {
15
+ return e.href === t || !!e.children?.some((e) => f(e, t));
19
16
  }
20
- function f(f, p) {
21
- let { activeHref: m, closeDelay: h = ce, defaultOpenId: g = null, getIsActive: _, items: v, keepMounted: y = !1, layout: b = "auto", linkComponent: x, onOpenChange: S, openDelay: C = 0, openId: le, renderItem: ue, renderTrigger: de, slotProps: w, slots: T, sx: fe, ...E } = se({
22
- props: f,
17
+ function p(p, m) {
18
+ let { activeHref: h, closeDelay: g = se, defaultOpenId: _ = null, getIsActive: v, items: y, keepMounted: b = !1, layout: x = "auto", linkComponent: S, onOpenChange: C, openDelay: w = 0, openId: ce, renderItem: le, renderTrigger: ue, slotProps: T, slots: E, sx: de, ...fe } = ae({
19
+ props: p,
23
20
  name: "SMegaMenu"
24
- }), [D, O] = ee({
25
- controlled: le,
26
- default: g,
21
+ }), [D, O] = oe({
22
+ controlled: ce,
23
+ default: _,
27
24
  name: "SMegaMenu",
28
25
  state: "openId"
29
- }), [k, A] = l.useState(null), pe = oe("(prefers-reduced-motion: reduce)", { noSsr: !0 }), j = l.useId(), M = `${j}-panel`, N = l.useRef(null), P = l.useRef(/* @__PURE__ */ new Map()), F = l.useRef(void 0), I = l.useRef(void 0), L = l.useRef(!1), R = l.useRef(0), me = n(N, p), [z, he] = l.useState(g);
26
+ }), [k, A] = o.useState(null), pe = ie("(prefers-reduced-motion: reduce)", { noSsr: !0 }), j = o.useId(), M = `${j}-panel`, N = o.useRef(null), P = o.useRef(/* @__PURE__ */ new Map()), F = o.useRef(void 0), I = o.useRef(void 0), L = o.useRef(!1), R = o.useRef(0), me = u(N, m), [z, he] = o.useState(_);
30
27
  D != null && D !== z && he(D);
31
- let B = v.find((e) => e.id === (D ?? z)) ?? null, V = B ? v.indexOf(B) : -1, ge = V >= 0 ? `${j}-trigger-${V}` : void 0, H = !!(D == null ? null : B)?.children?.length && k != null, U = {
32
- activeHref: m,
33
- closeDelay: h,
34
- items: v,
35
- keepMounted: y,
36
- layout: b,
37
- openDelay: C,
28
+ let B = y.find((e) => e.id === (D ?? z)) ?? null, V = B ? y.indexOf(B) : -1, ge = V >= 0 ? `${j}-trigger-${V}` : void 0, H = !!(D == null ? null : B)?.children?.length && k != null, U = {
29
+ activeHref: h,
30
+ closeDelay: g,
31
+ items: y,
32
+ keepMounted: b,
33
+ layout: x,
34
+ openDelay: w,
38
35
  openId: D ?? null
39
36
  };
40
- l.useEffect(() => {}, [v, b]);
41
- let W = l.useCallback(() => typeof document > "u" ? null : document.getElementById(M), [M]), G = l.useCallback(() => {
37
+ o.useEffect(() => {}, [y, x]);
38
+ let W = o.useCallback(() => typeof document > "u" ? null : document.getElementById(M), [M]), G = o.useCallback(() => {
42
39
  F.current &&= (clearTimeout(F.current), void 0), I.current &&= (clearTimeout(I.current), void 0);
43
40
  }, []);
44
- l.useEffect(() => G, [G]);
45
- let K = r((e) => _ ? _(e) : !!(m && d(e, m))), q = r((e, t, n, r, i = !1) => {
46
- G(), !(e.disabled || D === e.id) && (L.current = i, A(t), O(e.id), S?.(n, e.id, e, r));
47
- }), J = r(({ event: e, focusTrigger: t = !1, reason: n }) => {
48
- G(), D != null && (t && P.current.get(D)?.focus(), L.current = !1, O(null), S?.(e, null, null, n));
49
- }), Y = r((e) => {
41
+ o.useEffect(() => G, [G]);
42
+ let K = l((e) => v ? v(e) : !!(h && f(e, h))), q = l((e, t, n, r, i = !1) => {
43
+ G(), !(e.disabled || D === e.id) && (L.current = i, A(t), O(e.id), C?.(n, e.id, e, r));
44
+ }), J = l(({ event: e, focusTrigger: t = !1, reason: n }) => {
45
+ G(), D != null && (t && P.current.get(D)?.focus(), L.current = !1, O(null), C?.(e, null, null, n));
46
+ }), Y = l((e) => {
50
47
  G(), I.current = setTimeout(() => J({
51
48
  event: e,
52
49
  reason: "pointerLeave"
53
- }), h);
50
+ }), g);
54
51
  });
55
- l.useEffect(() => {
52
+ o.useEffect(() => {
56
53
  if (D == null) return;
57
54
  let e = P.current.get(D);
58
55
  e && e !== k && A(e);
59
- }, [k, D]), l.useEffect(() => {
60
- H && L.current && (L.current = !1, c(W())?.focus());
61
- }, [W, H]), l.useEffect(() => {
56
+ }, [k, D]), o.useEffect(() => {
57
+ H && L.current && (L.current = !1, i(W())?.focus());
58
+ }, [W, H]), o.useEffect(() => {
62
59
  if (!H) return;
63
60
  let e = (e) => {
64
- o(W(), e.target) || o(N.current, e.target) || J({
61
+ n(W(), e.target) || n(N.current, e.target) || J({
65
62
  event: e,
66
63
  reason: "outsidePress"
67
64
  });
@@ -72,25 +69,25 @@ function f(f, p) {
72
69
  W,
73
70
  H
74
71
  ]);
75
- let _e = l.useCallback((e, t) => {
72
+ let _e = o.useCallback((e, t) => {
76
73
  t ? P.current.set(e, t) : P.current.delete(e);
77
- }, []), X = r((e) => {
74
+ }, []), X = l((e) => {
78
75
  let t = e.relatedTarget;
79
- !t || o(N.current, t) || o(W(), t) || J({
76
+ !t || n(N.current, t) || n(W(), t) || J({
80
77
  event: e,
81
78
  reason: "blur"
82
79
  });
83
- }), ve = r((e, t) => {
80
+ }), ve = l((e, t) => {
84
81
  if (e.disabled || t.pointerType === "touch" || Date.now() < R.current || !e.children?.length) return;
85
82
  let n = t.currentTarget, r = t.nativeEvent;
86
- if (G(), C > 0 && D == null) {
87
- F.current = setTimeout(() => q(e, n, r, "triggerHover"), C);
83
+ if (G(), w > 0 && D == null) {
84
+ F.current = setTimeout(() => q(e, n, r, "triggerHover"), w);
88
85
  return;
89
86
  }
90
87
  q(e, n, t, "triggerHover");
91
- }), ye = r((e) => {
88
+ }), ye = l((e) => {
92
89
  Date.now() >= R.current && (R.current = 0), e.pointerType !== "touch" && Y(e.nativeEvent);
93
- }), be = r((e, t) => {
90
+ }), be = l((e, t) => {
94
91
  let n = !!e.children?.length;
95
92
  if (n && D !== e.id) {
96
93
  q(e, t.currentTarget, t, "triggerClick");
@@ -107,23 +104,23 @@ function f(f, p) {
107
104
  event: t,
108
105
  reason: "itemClick"
109
106
  });
110
- }), xe = r((e, t) => {
107
+ }), xe = l((e, t) => {
111
108
  D != null && D !== e.id && J({
112
109
  event: t,
113
110
  reason: "triggerFocus"
114
111
  });
115
- }), Se = r((e, t) => {
116
- let n = t.currentTarget, r = !!e.children?.length;
112
+ }), Se = l((e, t) => {
113
+ let n = t.currentTarget, a = !!e.children?.length;
117
114
  switch (t.key) {
118
115
  case "ArrowDown":
119
- if (!r) break;
120
- t.preventDefault(), D === e.id ? c(W())?.focus() : q(e, n, t, "triggerKeyDown", !0);
116
+ if (!a) break;
117
+ t.preventDefault(), D === e.id ? i(W())?.focus() : q(e, n, t, "triggerKeyDown", !0);
121
118
  break;
122
119
  case "ArrowRight":
123
- t.preventDefault(), s(N.current, n, 1);
120
+ t.preventDefault(), r(N.current, n, 1);
124
121
  break;
125
122
  case "ArrowLeft":
126
- t.preventDefault(), s(N.current, n, -1);
123
+ t.preventDefault(), r(N.current, n, -1);
127
124
  break;
128
125
  case "Escape":
129
126
  D != null && (t.preventDefault(), J({
@@ -133,11 +130,11 @@ function f(f, p) {
133
130
  break;
134
131
  default: break;
135
132
  }
136
- }), Ce = r((e) => {
133
+ }), Ce = l((e) => {
137
134
  e.pointerType !== "touch" && G();
138
- }), we = r((e) => {
135
+ }), we = l((e) => {
139
136
  e.pointerType !== "touch" && Y(e.nativeEvent);
140
- }), Z = r((e) => {
137
+ }), Z = l((e) => {
141
138
  e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), J({
142
139
  event: e,
143
140
  focusTrigger: !0,
@@ -146,16 +143,16 @@ function f(f, p) {
146
143
  }), Te = {
147
144
  closeMenu: J,
148
145
  getIsActive: K,
149
- keepMounted: y,
150
- linkComponent: x,
146
+ keepMounted: b,
147
+ linkComponent: S,
151
148
  ownerState: U,
152
- renderItem: ue,
153
- slotProps: w,
154
- slots: T
155
- }, Q = T?.root ?? re, $ = T?.popover ?? ne, { ref: Ee, sx: De, ...Oe } = i(Q, a(t(w?.root, U), {
156
- ...E,
149
+ renderItem: le,
150
+ slotProps: T,
151
+ slots: E
152
+ }, Q = E?.root ?? ee, $ = E?.popover ?? a, { ref: Ee, sx: De, ...Oe } = d(Q, c(t(T?.root, U), {
153
+ ...fe,
157
154
  onBlurCapture: X
158
- }), U), ke = n(Ee, me), { slotProps: Ae, sx: je, ...Me } = t(w?.popover, U) ?? {}, Ne = a(Ae?.paper, {
155
+ }), U), ke = u(Ee, me), { slotProps: Ae, sx: je, ...Me } = t(T?.popover, U) ?? {}, Ne = c(Ae?.paper, {
159
156
  "aria-labelledby": ge,
160
157
  id: M,
161
158
  onBlurCapture: X,
@@ -171,14 +168,14 @@ function f(f, p) {
171
168
  })],
172
169
  role: "region",
173
170
  tabIndex: -1
174
- }), Pe = i($, a(Me, {
171
+ }), Pe = d($, c(Me, {
175
172
  anchorEl: k,
176
173
  disableAutoFocus: !0,
177
174
  disableEnforceFocus: !0,
178
175
  disableRestoreFocus: !0,
179
176
  disableScrollLock: !0,
180
177
  hideBackdrop: !0,
181
- keepMounted: y,
178
+ keepMounted: b,
182
179
  onClose: (e, t) => J({
183
180
  event: e,
184
181
  focusTrigger: t === "escapeKeyDown",
@@ -187,15 +184,15 @@ function f(f, p) {
187
184
  placement: "bottom-start",
188
185
  transitionDuration: pe ? 0 : void 0
189
186
  }), U);
190
- return /* @__PURE__ */ ae(Q, {
187
+ return /* @__PURE__ */ re(Q, {
191
188
  ...Oe,
192
189
  ref: ke,
193
- sx: [...e(De), ...e(fe)],
194
- children: [v.map((e, t) => /* @__PURE__ */ u(te, {
190
+ sx: [...e(De), ...e(de)],
191
+ children: [y.map((e, t) => /* @__PURE__ */ s(ne, {
195
192
  active: K(e),
196
193
  hasPanel: !!e.children?.length,
197
194
  item: e,
198
- linkComponent: x,
195
+ linkComponent: S,
199
196
  onClick: (t) => be(e, t),
200
197
  onFocus: (t) => xe(e, t),
201
198
  onKeyDown: (t) => Se(e, t),
@@ -205,16 +202,16 @@ function f(f, p) {
205
202
  ownerState: U,
206
203
  panelId: M,
207
204
  registerRef: _e,
208
- renderTrigger: de,
209
- slotProps: w,
210
- slots: T,
205
+ renderTrigger: ue,
206
+ slotProps: T,
207
+ slots: E,
211
208
  triggerId: `${j}-trigger-${t}`
212
- }, e.id)), /* @__PURE__ */ u($, {
209
+ }, e.id)), /* @__PURE__ */ s($, {
213
210
  ...Pe,
214
211
  open: H,
215
212
  slotProps: { paper: Ne },
216
213
  sx: [...e(je)],
217
- children: B?.children?.length ? /* @__PURE__ */ u(ie, {
214
+ children: B?.children?.length ? /* @__PURE__ */ s(te, {
218
215
  ctx: Te,
219
216
  depth: 0,
220
217
  items: B.children
@@ -222,7 +219,7 @@ function f(f, p) {
222
219
  })]
223
220
  });
224
221
  }
225
- var p = l.forwardRef(f);
226
- p.displayName = "SMegaMenu";
222
+ var m = o.forwardRef(p);
223
+ m.displayName = "SMegaMenu";
227
224
  //#endregion
228
- export { p as SMegaMenu, p as default };
225
+ export { m as SMegaMenu, m as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-mobile-dock-8F3UWAb8.js";
1
+ import { SMobileDock as e } from "./s-mobile-dock.js";
2
2
  export { e as SMobileDock, e as default };
@@ -1,2 +1,145 @@
1
- import { t as e } from "../s-mobile-dock-8F3UWAb8.js";
2
- export { e as SMobileDock, e as default };
1
+ import { resolveOwnerStateSlotProps as e } from "../utils/slots.js";
2
+ import { actionHoverMedia as t, getFocusVisibleStyle as n, reducedMotionMedia as r } from "../theme/components/action-styles.js";
3
+ import { styled as i, useThemeProps as a } from "@mui/material/styles";
4
+ import * as o from "react";
5
+ import { createElement as s } from "react";
6
+ import { jsx as c } from "react/jsx-runtime";
7
+ import { mergeSlotProps as l, useControlled as u, useEventCallback as d, useForkRef as f } from "@mui/material/utils";
8
+ import p from "@mui/utils/appendOwnerState";
9
+ import { visuallyHidden as m } from "@mui/utils";
10
+ import h from "@mui/material/Box";
11
+ import g from "@mui/material/Badge";
12
+ import _ from "@mui/material/BottomNavigation";
13
+ import v, { bottomNavigationActionClasses as y } from "@mui/material/BottomNavigationAction";
14
+ //#region lib/s-mobile-dock/s-mobile-dock.tsx
15
+ var b = 416, x = 44, S = i(_, {
16
+ name: "SMobileDock",
17
+ slot: "Root",
18
+ shouldForwardProp: (e) => e !== "ownerState"
19
+ })(({ theme: e }) => ({
20
+ backgroundColor: (e.vars ?? e).palette.background.paper,
21
+ border: `1px solid ${(e.vars ?? e).palette.divider}`,
22
+ borderRadius: e.radius.full,
23
+ boxShadow: e.shadows[8],
24
+ gap: e.spacing(.5),
25
+ height: "auto",
26
+ justifyContent: "space-around",
27
+ marginInline: "auto",
28
+ maxWidth: `calc(100% - ${e.spacing(3)})`,
29
+ padding: e.spacing(.75),
30
+ paddingBottom: `calc(${e.spacing(.75)} + env(safe-area-inset-bottom))`,
31
+ width: b
32
+ })), C = i(v, {
33
+ name: "SMobileDock",
34
+ slot: "Action"
35
+ })(({ theme: e, ownerState: i }) => ({
36
+ borderRadius: e.radius.full,
37
+ color: (e.vars ?? e).palette.text.secondary,
38
+ gap: e.spacing(.5),
39
+ minHeight: x,
40
+ minWidth: x,
41
+ padding: e.spacing(.75, 1),
42
+ transition: e.transitions.create(["background-color", "color"], { duration: e.transitions.duration.shorter }),
43
+ [`& .${y.label}`]: {
44
+ fontSize: e.typography.body2.fontSize,
45
+ lineHeight: e.typography.body2.lineHeight,
46
+ [`&.${y.selected}`]: { fontSize: e.typography.body2.fontSize },
47
+ ...i.labelVisibility === "never" && m
48
+ },
49
+ [`&.${y.selected}`]: {
50
+ backgroundColor: e.alpha((e.vars ?? e).palette.primary.main, (e.vars ?? e).palette.action.selectedOpacity),
51
+ color: (e.vars ?? e).palette.primary.main
52
+ },
53
+ "&.Mui-disabled": { color: (e.vars ?? e).palette.action.disabled },
54
+ [`&.${y.selected}.Mui-disabled`]: { backgroundColor: (e.vars ?? e).palette.action.disabledBackground },
55
+ "&.Mui-focusVisible": n(e),
56
+ [t]: {
57
+ "&:hover": {
58
+ backgroundColor: (e.vars ?? e).palette.action.hover,
59
+ color: (e.vars ?? e).palette.text.primary
60
+ },
61
+ [`&.${y.selected}:hover`]: {
62
+ backgroundColor: e.alpha((e.vars ?? e).palette.primary.main, Math.min(e.palette.action.selectedOpacity + e.palette.action.hoverOpacity, 1)),
63
+ color: (e.vars ?? e).palette.primary.main
64
+ }
65
+ },
66
+ [r]: { transition: "none" }
67
+ })), w = i(h, {
68
+ name: "SMobileDock",
69
+ slot: "Icon"
70
+ })({
71
+ alignItems: "center",
72
+ display: "flex",
73
+ justifyContent: "center"
74
+ }), T = i(g, {
75
+ name: "SMobileDock",
76
+ slot: "Badge"
77
+ })({}), E = i("span", {
78
+ name: "SMobileDock",
79
+ slot: "Label"
80
+ })({});
81
+ function D(t, n) {
82
+ let r = a({
83
+ props: t,
84
+ name: "SMobileDock"
85
+ }), { defaultValue: i, items: o, labelVisibility: m = "always", linkComponent: h, onChange: g, slotProps: _, slots: v, value: y, ...b } = r, [x, D] = u({
86
+ controlled: y,
87
+ default: i ?? null,
88
+ name: "SMobileDock",
89
+ state: "value"
90
+ }), O = {
91
+ ...r,
92
+ labelVisibility: m,
93
+ value: x
94
+ }, k = v?.root ?? S, A = v?.action ?? C, j = v?.icon ?? w, M = v?.badge ?? T, N = v?.label ?? E, P = d((e, t) => {
95
+ D(t), g?.(e, t);
96
+ }), { ref: F, ...I } = p(k, l(e(_?.root, O), {
97
+ ...b,
98
+ onChange: P,
99
+ showLabels: !0,
100
+ value: x
101
+ }), O), L = f(n, F);
102
+ return /* @__PURE__ */ c(k, {
103
+ ...I,
104
+ ref: L,
105
+ component: "nav",
106
+ children: o.map((t) => {
107
+ let n = t.value === x, r = {
108
+ ...O,
109
+ item: t,
110
+ selected: n
111
+ }, i = t.component ?? (t.href == null ? "button" : h ?? "a"), a = p(A, l(e(_?.action, r), {
112
+ "aria-current": n ? "page" : void 0,
113
+ "aria-label": t.ariaLabel,
114
+ component: i,
115
+ disabled: t.disabled,
116
+ href: t.disabled ? void 0 : t.href,
117
+ nativeButton: i === "button",
118
+ onClick: t.onClick,
119
+ rel: t.rel,
120
+ target: t.target
121
+ }), r), o = p(j, e(_?.icon, r) ?? {}, r), u = p(M, e(_?.badge, r) ?? {}, r), d = p(N, e(_?.label, r) ?? {}, r);
122
+ return /* @__PURE__ */ s(A, {
123
+ ...a,
124
+ key: t.value,
125
+ icon: /* @__PURE__ */ c(j, {
126
+ ...o,
127
+ children: t.badge == null ? t.icon : /* @__PURE__ */ c(M, {
128
+ badgeContent: t.badge,
129
+ color: "error",
130
+ ...u,
131
+ children: t.icon
132
+ })
133
+ }),
134
+ label: t.label,
135
+ slotProps: { label: d },
136
+ slots: { label: N },
137
+ value: t.value
138
+ });
139
+ })
140
+ });
141
+ }
142
+ var O = o.forwardRef(D);
143
+ O.displayName = "SMobileDock";
144
+ //#endregion
145
+ export { O as SMobileDock, O as default };
@@ -1,21 +1,20 @@
1
1
  import { toSxArray as e } from "../utils/sx.js";
2
2
  import { resolveOwnerStateSlotProps as t } from "../utils/slots.js";
3
- import { t as n } from "../useForkRef-BuNFTXxE.js";
4
- import { t as r } from "../appendOwnerState-CFQTq3pb.js";
5
- import { actionHoverMedia as i } from "../theme/components/action-styles.js";
6
- import { t as a } from "../mergeSlotProps-DC8r4QzS.js";
7
- import { SListActionItem as o } from "../s-list-action-item/s-list-action-item.js";
8
- import * as s from "react";
9
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
10
- import { styled as u, useThemeProps as d } from "@mui/material";
3
+ import { actionHoverMedia as n } from "../theme/components/action-styles.js";
4
+ import { SListActionItem as r } from "../s-list-action-item/s-list-action-item.js";
5
+ import * as i from "react";
6
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
+ import { styled as s, useThemeProps as c } from "@mui/material";
8
+ import { mergeSlotProps as l, useForkRef as u } from "@mui/material/utils";
9
+ import d from "@mui/utils/appendOwnerState";
11
10
  //#region lib/s-nav-item/s-nav-item.tsx
12
- var f = u("li", {
11
+ var f = s("li", {
13
12
  name: "SNavItem",
14
13
  slot: "Root"
15
14
  })({
16
15
  display: "block",
17
16
  userSelect: "none"
18
- }), p = u(o, {
17
+ }), p = s(r, {
19
18
  name: "SNavItem",
20
19
  slot: "Item",
21
20
  shouldForwardProp: (e) => e !== "ownerState"
@@ -24,16 +23,16 @@ var f = u("li", {
24
23
  color: (e.vars ?? e).palette.text.secondary,
25
24
  padding: e.spacing(1.5),
26
25
  "&.Mui-selected": { color: (e.vars ?? e).palette.text.primary },
27
- [i]: { "&:hover": { color: (e.vars ?? e).palette.text.primary } }
28
- })), m = s.forwardRef(function(i, o) {
29
- let s = d({
30
- props: i,
26
+ [n]: { "&:hover": { color: (e.vars ?? e).palette.text.primary } }
27
+ })), m = i.forwardRef(function(n, r) {
28
+ let i = c({
29
+ props: n,
31
30
  name: "SNavItem"
32
- }), { children: u, disabled: m = !1, href: h, icon: g, label: _, onClick: v, selected: y = !1, slotProps: b, slots: x, sx: S, trailing: C, ...w } = s, T = {
33
- ...s,
31
+ }), { children: s, disabled: m = !1, href: h, icon: g, label: _, onClick: v, selected: y = !1, slotProps: b, slots: x, sx: S, trailing: C, ...w } = i, T = {
32
+ ...i,
34
33
  disabled: m,
35
34
  selected: y
36
- }, E = x?.root ?? f, D = x?.item ?? p, { ref: O, sx: k, ...A } = r(E, a(t(b?.root, T), w), T), j = n(O, o), M = r(D, a(t(b?.item, T), {
35
+ }, E = x?.root ?? f, D = x?.item ?? p, { ref: O, sx: k, ...A } = d(E, l(t(b?.root, T), w), T), j = u(O, r), M = d(D, l(t(b?.item, T), {
37
36
  disabled: m,
38
37
  href: h,
39
38
  icon: g,
@@ -51,14 +50,14 @@ var f = u("li", {
51
50
  },
52
51
  trailing: C
53
52
  }), T);
54
- return /* @__PURE__ */ l(E, {
53
+ return /* @__PURE__ */ o(E, {
55
54
  ...A,
56
55
  ref: j,
57
56
  sx: [...e(k), ...e(S)],
58
- children: [/* @__PURE__ */ c(D, {
57
+ children: [/* @__PURE__ */ a(D, {
59
58
  ...M,
60
59
  label: _
61
- }), u]
60
+ }), s]
62
61
  });
63
62
  });
64
63
  m.displayName = "SNavItem";
@@ -1,17 +1,16 @@
1
- import { t as e } from "../Box-9oeZgA1U.js";
2
- import { t } from "../styled-Bog8QCl3.js";
3
- import { t as n } from "../Stack-C0LGzM4c.js";
4
- import { t as r } from "../useThemeProps-Dw9dmKyT.js";
5
- import { toSxArray as i } from "../utils/sx.js";
6
- import { reducedMotionMedia as a } from "../theme/components/action-styles.js";
7
- import { t as o } from "../ExpandMore-sOgvEha9.js";
8
- import { SNavItem as s } from "../s-nav-item/s-nav-item.js";
9
- import { t as c } from "../Collapse-DPUr1cbP.js";
10
- import * as l from "react";
11
- import { jsx as u } from "react/jsx-runtime";
1
+ import { toSxArray as e } from "../utils/sx.js";
2
+ import { reducedMotionMedia as t } from "../theme/components/action-styles.js";
3
+ import { SNavItem as n } from "../s-nav-item/s-nav-item.js";
4
+ import { styled as r, useThemeProps as i } from "@mui/material/styles";
5
+ import * as a from "react";
6
+ import { jsx as o } from "react/jsx-runtime";
7
+ import s from "@mui/icons-material/ExpandMore";
8
+ import c from "@mui/material/Stack";
9
+ import l from "@mui/material/Box";
10
+ import u from "@mui/material/Collapse";
12
11
  //#region lib/s-nav-items/s-nav-items.tsx
13
- var d = t(l.forwardRef(function(e, t) {
14
- return /* @__PURE__ */ u(n, {
12
+ var d = r(a.forwardRef(function(e, t) {
13
+ return /* @__PURE__ */ o(c, {
15
14
  component: "ul",
16
15
  ...e,
17
16
  ref: t
@@ -33,89 +32,89 @@ function m(e, t) {
33
32
  childActive: n.length > 0 && f(n, t)
34
33
  };
35
34
  }
36
- function h({ item: t, pathname: n, depth: r, linkComponent: i }) {
37
- let d = !!(t.items && t.items.length > 0), { active: f, childActive: p } = m(t, n), [h, _] = l.useState(t.defaultOpen ?? p);
38
- if (l.useEffect(() => {
35
+ function h({ item: e, pathname: r, depth: i, linkComponent: c }) {
36
+ let d = !!(e.items && e.items.length > 0), { active: f, childActive: p } = m(e, r), [h, _] = a.useState(e.defaultOpen ?? p);
37
+ if (a.useEffect(() => {
39
38
  p && _(!0);
40
- }, [p]), !d) return /* @__PURE__ */ u(s, {
41
- disabled: t.disabled,
42
- href: t.href,
43
- icon: t.icon ? t.icon(f) : null,
44
- label: t.title,
39
+ }, [p]), !d) return /* @__PURE__ */ o(n, {
40
+ disabled: e.disabled,
41
+ href: e.href,
42
+ icon: e.icon ? e.icon(f) : null,
43
+ label: e.title,
45
44
  selected: f,
46
45
  slotProps: { item: {
47
- component: t.component ?? i,
48
- rel: t.rel,
49
- target: t.target,
50
- sx: r > 0 ? { pl: `${(r - 1) * 12 + 12}px` } : void 0
46
+ component: e.component ?? c,
47
+ rel: e.rel,
48
+ target: e.target,
49
+ sx: i > 0 ? { pl: `${(i - 1) * 12 + 12}px` } : void 0
51
50
  } }
52
51
  });
53
52
  let v = f || p;
54
- return /* @__PURE__ */ u(s, {
55
- disabled: t.disabled,
56
- icon: t.icon ? t.icon(v) : null,
57
- label: t.title,
53
+ return /* @__PURE__ */ o(n, {
54
+ disabled: e.disabled,
55
+ icon: e.icon ? e.icon(v) : null,
56
+ label: e.title,
58
57
  onClick: () => _((e) => !e),
59
58
  selected: v,
60
59
  slotProps: {
61
60
  item: {
62
61
  "aria-current": void 0,
63
62
  "aria-expanded": h,
64
- sx: { pl: r > 0 ? `${r * 12 + 12}px` : "12px" }
63
+ sx: { pl: i > 0 ? `${i * 12 + 12}px` : "12px" }
65
64
  },
66
65
  trailing: { sx: {
67
66
  transform: h ? "rotate(0deg)" : "rotate(-90deg)",
68
67
  transition: (e) => e.transitions.create("transform", { duration: e.transitions.duration.shorter }),
69
- [a]: { transition: "none" }
68
+ [t]: { transition: "none" }
70
69
  } }
71
70
  },
72
- trailing: /* @__PURE__ */ u(o, {}),
73
- children: /* @__PURE__ */ u(c, {
71
+ trailing: /* @__PURE__ */ o(s, {}),
72
+ children: /* @__PURE__ */ o(u, {
74
73
  in: h,
75
74
  timeout: 200,
76
75
  unmountOnExit: !0,
77
- children: /* @__PURE__ */ u(e, {
76
+ children: /* @__PURE__ */ o(l, {
78
77
  sx: {
79
- ml: r > 0 ? `${r * 16 + 12}px` : "12px",
78
+ ml: i > 0 ? `${i * 16 + 12}px` : "12px",
80
79
  mt: 1,
81
80
  mb: 1,
82
81
  pl: 1
83
82
  },
84
- children: /* @__PURE__ */ u(g, {
85
- items: t.items,
86
- pathname: n,
87
- depth: r + 1,
88
- linkComponent: i
83
+ children: /* @__PURE__ */ o(g, {
84
+ items: e.items,
85
+ pathname: r,
86
+ depth: i + 1,
87
+ linkComponent: c
89
88
  })
90
89
  })
91
90
  })
92
91
  });
93
92
  }
94
93
  h.displayName = "SNavGroupItem";
95
- var g = l.forwardRef(function(e, t) {
96
- let n = r({
97
- props: e,
94
+ var g = a.forwardRef(function(t, n) {
95
+ let r = i({
96
+ props: t,
98
97
  name: "SNavItems"
99
- }), { depth: a = 0, items: o, linkComponent: s, pathname: c = "", sx: l, ...f } = n, p = {
100
- ...n,
98
+ }), { depth: a = 0, items: s, linkComponent: c, pathname: l = "", sx: u, ...f } = r, p = {
99
+ ...r,
101
100
  depth: a,
102
- pathname: c
101
+ pathname: l
103
102
  };
104
- return /* @__PURE__ */ u(d, {
103
+ return /* @__PURE__ */ o(d, {
105
104
  spacing: 1,
106
105
  ...f,
107
- ref: t,
106
+ ref: n,
108
107
  ownerState: p,
109
108
  sx: [{
110
109
  listStyle: "none",
111
110
  m: 0,
112
111
  p: 0
113
- }, ...i(l)],
114
- children: o.map((e) => /* @__PURE__ */ u(h, {
112
+ }, ...e(u)],
113
+ children: s.map((e) => /* @__PURE__ */ o(h, {
115
114
  item: e,
116
- pathname: c,
115
+ pathname: l,
117
116
  depth: a,
118
- linkComponent: s
117
+ linkComponent: c
119
118
  }, e.key))
120
119
  });
121
120
  });