@astryx-vue/core 0.2.3 → 0.2.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 (303) hide show
  1. package/THIRD_PARTY_NOTICES.md +2 -0
  2. package/dist/AlertDialog/index.js +1 -1
  3. package/dist/{AlertDialog-ovx4cBjM.js → AlertDialog-B6UeBCE7.js} +2 -2
  4. package/dist/AppShell/index.d.ts +1 -1
  5. package/dist/AppShell/index.js +1 -1
  6. package/dist/{AppShell-Dd-D4bA2.js → AppShell-CeBmB0Q9.js} +2 -2
  7. package/dist/Avatar/index.d.ts +1 -1
  8. package/dist/Avatar/index.js +1 -1
  9. package/dist/{Avatar-jmHInHwj.js → Avatar-BB4Z4LF1.js} +10 -4
  10. package/dist/AvatarGroup/index.d.ts +1 -1
  11. package/dist/Banner/index.d.ts +1 -1
  12. package/dist/BottomSheet/index.d.ts +2 -2
  13. package/dist/BottomSheet/index.js +3 -2
  14. package/dist/{BottomSheet-Dg95HB1s.js → BottomSheet-BV6vfgGu.js} +82 -22
  15. package/dist/BottomSheet-o7xw-TOi.js +153 -0
  16. package/dist/Breadcrumbs/index.d.ts +2 -2
  17. package/dist/Breadcrumbs/index.js +2 -2
  18. package/dist/{Breadcrumbs-CWGfgLNK.js → Breadcrumbs-D6G7f5WL.js} +1 -1
  19. package/dist/Button/index.d.ts +1 -1
  20. package/dist/ButtonGroup/index.d.ts +1 -1
  21. package/dist/Calendar/index.d.ts +1 -1
  22. package/dist/Calendar/index.js +1 -1
  23. package/dist/{Calendar-CnOsSjMY.js → Calendar-DmTeM7PO.js} +2 -2
  24. package/dist/Card/index.d.ts +1 -1
  25. package/dist/Carousel/index.js +1 -1
  26. package/dist/{Carousel-JA7ilqI_.js → Carousel-CIKrcA2r.js} +1 -1
  27. package/dist/Chat/index.d.ts +1 -1
  28. package/dist/Chat/index.js +1 -1
  29. package/dist/{Chat-C7WrCOE4.js → Chat-BFox3u9D.js} +1 -1
  30. package/dist/CheckboxInput/index.d.ts +1 -1
  31. package/dist/CheckboxList/index.d.ts +1 -1
  32. package/dist/CheckboxList/index.js +1 -1
  33. package/dist/{CheckboxList-CnCGnkZk.js → CheckboxList-BlPf7vPe.js} +4 -4
  34. package/dist/Citation/index.js +1 -1
  35. package/dist/{Citation-CtwrU33I.js → Citation-BG-vg9ia.js} +1 -1
  36. package/dist/ClickableCard/index.d.ts +1 -1
  37. package/dist/Code/index.d.ts +3 -3
  38. package/dist/Code/index.js +4 -4
  39. package/dist/{Code-BvefYRpx.js → Code-XnPuGxey.js} +1 -1
  40. package/dist/{CodeBlock-BZGzYeoL.js → CodeBlock-B2pnEOJY.js} +145 -15
  41. package/dist/Collapsible/index.d.ts +1 -1
  42. package/dist/CommandPalette/index.js +1 -1
  43. package/dist/{CommandPalette-BNbM9T9y.js → CommandPalette-DKgHzmJk.js} +10 -10
  44. package/dist/ComplexSelector/index.js +1 -1
  45. package/dist/{ComplexSelector-LtbLlrcj.js → ComplexSelector-Dv44FFhN.js} +1 -1
  46. package/dist/ContextMenu/index.d.ts +2 -2
  47. package/dist/ContextMenu/index.js +2 -2
  48. package/dist/{ContextMenu-DVQl0xL5.js → ContextMenu-BeJO5HYx.js} +4 -369
  49. package/dist/DateInput/index.d.ts +1 -1
  50. package/dist/DateInput/index.js +1 -1
  51. package/dist/{DateInput-zm8sNc0t.js → DateInput-D4XFAEMp.js} +3 -3
  52. package/dist/DateRangeInput/index.d.ts +1 -1
  53. package/dist/DateRangeInput/index.js +1 -1
  54. package/dist/{DateRangeInput-DlVFzrf7.js → DateRangeInput-Cp6AZfew.js} +2 -2
  55. package/dist/DateTimeInput/index.d.ts +1 -1
  56. package/dist/DateTimeInput/index.js +1 -1
  57. package/dist/{DateTimeInput-C7Z-p6Yd.js → DateTimeInput-B6MPPp76.js} +3 -3
  58. package/dist/Dialog/index.d.ts +1 -1
  59. package/dist/Divider/index.d.ts +1 -1
  60. package/dist/DropdownMenu/index.d.ts +2 -2
  61. package/dist/DropdownMenu/index.js +3 -3
  62. package/dist/{DropdownMenu-BoZChdev.js → DropdownMenu--lnUeJEG.js} +3 -3
  63. package/dist/{DropdownMenu-u1psFjis.js → DropdownMenu-6E9jFdFe.js} +4 -4
  64. package/dist/{DropdownMenuRadioItem.vue-uVM0FD2f.d.ts → DropdownMenuRadioItem.vue-CXEURBcq.d.ts} +1 -1
  65. package/dist/EmptyState/index.js +1 -1
  66. package/dist/{EmptyState-CUJdTYKV.js → EmptyState-0RWymQUS.js} +2 -2
  67. package/dist/FileInput/index.d.ts +1 -1
  68. package/dist/FileInput/index.js +1 -1
  69. package/dist/{FileInput-QdlZn7qK.js → FileInput-DuNwdbAo.js} +1 -1
  70. package/dist/Grid/index.d.ts +1 -1
  71. package/dist/Heading/index.d.ts +2 -2
  72. package/dist/Heading/index.js +1 -1
  73. package/dist/Heading-B9C3LZlS.js +94 -0
  74. package/dist/Indicator/index.d.ts +2 -2
  75. package/dist/InputGroup/index.d.ts +1 -1
  76. package/dist/Item-DrYJL1TG.js +590 -0
  77. package/dist/Lightbox/index.js +1 -1
  78. package/dist/{Lightbox-BSzfqZ-u.js → Lightbox-Br3o0SyQ.js} +1 -1
  79. package/dist/Link/index.d.ts +3 -2
  80. package/dist/Link/index.js +1 -1
  81. package/dist/Link-DCZ6922-.js +196 -0
  82. package/dist/List/index.d.ts +3 -3
  83. package/dist/List/index.js +2 -2
  84. package/dist/{ListItem-pGxvn6QJ.js → ListItem-CcRHWuEm.js} +8 -2
  85. package/dist/Markdown/index.d.ts +2 -2
  86. package/dist/Markdown/index.js +2 -2
  87. package/dist/{Markdown-B6tSqenv.js → Markdown-Bz0R3kNj.js} +274 -30
  88. package/dist/MetadataList/index.js +1 -1
  89. package/dist/{MetadataList-aN1tRn6W.js → MetadataList-CFaocx6j.js} +1 -1
  90. package/dist/MobileNav/index.js +1 -1
  91. package/dist/{MobileNavToggle-fqcSafkc.js → MobileNavToggle-Dh3uLivq.js} +1 -1
  92. package/dist/MoreMenu/index.d.ts +1 -1
  93. package/dist/MoreMenu/index.js +1 -1
  94. package/dist/{MoreMenu-B3brqdK_.js → MoreMenu-B95nRSe8.js} +2 -2
  95. package/dist/MultiSelector/index.d.ts +1 -1
  96. package/dist/MultiSelector/index.js +1 -1
  97. package/dist/{MultiSelector-BD5PMgez.js → MultiSelector-DuF5TECE.js} +4 -4
  98. package/dist/{NavDisclosure-DbYLDXK0.js → NavDisclosure-C6sPZ89n.js} +4 -1
  99. package/dist/NavHeadingSurface-Cb3x9iDx.js +287 -0
  100. package/dist/NavItem/index.d.ts +1 -1
  101. package/dist/NavMenu/index.d.ts +2 -2
  102. package/dist/NavMenu/index.js +4 -3
  103. package/dist/NavMenu-ClIgMaxE.js +176 -0
  104. package/dist/{NavMenuItem-DrwIMHKO.js → NavMenuItem-E7S8gBh-.js} +1 -1
  105. package/dist/NumberInput/index.d.ts +1 -1
  106. package/dist/NumberInput/index.js +1 -1
  107. package/dist/{NumberInput-CBeU4lEl.js → NumberInput-B4IL3s_8.js} +1 -1
  108. package/dist/Outline/index.js +1 -1
  109. package/dist/{Outline--HVMSB6i.js → Outline-DBUuchi9.js} +1 -1
  110. package/dist/OverflowList/index.d.ts +1 -1
  111. package/dist/OverflowList/index.js +1 -1
  112. package/dist/{OverflowList-FMh7r-r_.js → OverflowList-aDd_oem0.js} +3 -3
  113. package/dist/Pagination/index.d.ts +1 -1
  114. package/dist/Pagination/index.js +1 -1
  115. package/dist/{Pagination-DlIvESjx.js → Pagination-CNe9F6Fl.js} +181 -45
  116. package/dist/Popover/index.d.ts +1 -1
  117. package/dist/PowerSearch/index.d.ts +1 -1
  118. package/dist/PowerSearch/index.js +1 -1
  119. package/dist/{PowerSearch-CMG7Rb69.js → PowerSearch-C6U8Sq1Y.js} +13 -13
  120. package/dist/ProgressBar/index.d.ts +2 -2
  121. package/dist/ProgressBar/index.js +1 -1
  122. package/dist/{ProgressBar-DO9Chic6.js → ProgressBar-DF6WZNCI.js} +45 -6
  123. package/dist/Radio/index.d.ts +1 -1
  124. package/dist/RadioList/index.d.ts +1 -1
  125. package/dist/Resizable/index.js +1 -1
  126. package/dist/{Resizable-CXpvj1TZ.js → ResizeHandle-DYy0e3v9.js} +1 -1
  127. package/dist/ScrollableArea/index.d.ts +1 -1
  128. package/dist/SegmentedControl/index.d.ts +1 -1
  129. package/dist/SelectableCard/index.d.ts +1 -1
  130. package/dist/Selector/index.d.ts +1 -1
  131. package/dist/Selector/index.js +1 -1
  132. package/dist/{Selector-BpPnuWH3.js → Selector-5N-hq2nF.js} +3 -3
  133. package/dist/SideNav/index.d.ts +2 -2
  134. package/dist/SideNav/index.js +1 -1
  135. package/dist/{SideNav-D4TupqgE.js → SideNav-CT9lfspi.js} +225 -229
  136. package/dist/Stack/index.d.ts +1 -1
  137. package/dist/Stepper/index.d.ts +1 -1
  138. package/dist/Stepper/index.js +1 -1
  139. package/dist/{Stepper-H-6-T5Ps.js → Stepper-BqhVCgC-.js} +1 -1
  140. package/dist/Switch/index.d.ts +1 -1
  141. package/dist/TabList/index.d.ts +1 -1
  142. package/dist/Table/index.js +1 -1
  143. package/dist/{Table-nqA_njNz.js → Table-CsdH8fCB.js} +4 -4
  144. package/dist/Text/index.d.ts +3 -3
  145. package/dist/Text/index.js +1 -1
  146. package/dist/Text-DIzZw6FA.js +86 -0
  147. package/dist/TextArea/index.d.ts +1 -1
  148. package/dist/TextInput/index.d.ts +1 -1
  149. package/dist/Theme/index.d.ts +3 -3
  150. package/dist/Theme/index.js +2 -2
  151. package/dist/Theme-CtaUWo4g.js +1246 -0
  152. package/dist/Thumbnail/index.js +1 -1
  153. package/dist/{Thumbnail-CXb3m_Hv.js → Thumbnail-BnQwX1cQ.js} +2 -2
  154. package/dist/{TimeField-B3cndWb0.js → TimeField-Biiuv0hB.js} +1 -1
  155. package/dist/TimeInput/index.d.ts +1 -1
  156. package/dist/TimeInput/index.js +1 -1
  157. package/dist/{TimeInput-BHQ_LKGm.js → TimeInput-C9gptCOK.js} +1 -1
  158. package/dist/Timer/index.d.ts +1 -1
  159. package/dist/Timer/index.js +1 -1
  160. package/dist/{Timer-B7GV6hqd.js → Timer-kxzQx3tp.js} +1 -1
  161. package/dist/Timestamp/index.d.ts +1 -1
  162. package/dist/Timestamp/index.js +1 -1
  163. package/dist/{Timestamp-Cfuxbb3i.js → Timestamp-D7bd_nF3.js} +2 -2
  164. package/dist/ToggleButton/index.d.ts +1 -1
  165. package/dist/Token/index.d.ts +1 -1
  166. package/dist/Token/index.js +1 -1
  167. package/dist/{Token-CdVLH0_H.js → Token-D2GsI_Ei.js} +1 -1
  168. package/dist/Tokenizer/index.js +1 -1
  169. package/dist/{Tokenizer-DlD-S_8-.js → Tokenizer-rwzamZg4.js} +3 -3
  170. package/dist/Toolbar/index.d.ts +1 -1
  171. package/dist/Tooltip/index.d.ts +1 -1
  172. package/dist/Tooltip/index.js +1 -1
  173. package/dist/{Tooltip-mp0NMh_Y.js → Tooltip-C2fh9anJ.js} +23 -8
  174. package/dist/TopNav/index.d.ts +1 -1
  175. package/dist/TopNav/index.js +1 -1
  176. package/dist/{TopNav-DzV874G7.js → TopNav-arWFLTBM.js} +112 -42
  177. package/dist/TreeList/index.js +1 -1
  178. package/dist/{TreeList-DEwvlZRV.js → TreeList-C9xvMpJZ.js} +1 -1
  179. package/dist/Typeahead/index.d.ts +2 -2
  180. package/dist/Typeahead/index.js +3 -2
  181. package/dist/Typeahead-_V11btpv.js +499 -0
  182. package/dist/{TypeaheadMenu-CGvo0Tud.js → TypeaheadMenu-BEObzonz.js} +46 -10
  183. package/dist/composables/index.d.ts +2 -2
  184. package/dist/composables/index.js +4 -4
  185. package/dist/composables-CWw6t-RJ.js +520 -0
  186. package/dist/{context-DmOLCubj.js → context-CPh7kE-a.js} +58 -10
  187. package/dist/{index-BRfR0lhb.d.ts → index-12QYAbiz.d.ts} +1 -1
  188. package/dist/{index-DMQG6kdM.d.ts → index-6yB8BtEu.d.ts} +2 -2
  189. package/dist/{index-f4NGT-e2.d.ts → index-B4OOtNP8.d.ts} +3 -3
  190. package/dist/index-BBtJt5_A.d.ts +26 -0
  191. package/dist/{index-Ch6BbxCP.d.ts → index-BH9PzQ1F.d.ts} +13 -8
  192. package/dist/{index-MPcg1Pm4.d.ts → index-BKr7yvVv.d.ts} +1 -1
  193. package/dist/{index-D_UEJIU5.d.ts → index-BPwD6aBv.d.ts} +1 -1
  194. package/dist/{index-D1Twv_fL.d.ts → index-BcZI402h.d.ts} +4 -4
  195. package/dist/{index-C8wDPDcP.d.ts → index-Bi49IrAJ.d.ts} +50 -8
  196. package/dist/{index-B1x05arQ.d.ts → index-BlOIC_AM.d.ts} +1 -1
  197. package/dist/{index-C5p2NeCr.d.ts → index-Blm197N_.d.ts} +11 -2
  198. package/dist/{index-Bu3oXIIS.d.ts → index-BmmdzwT9.d.ts} +6 -0
  199. package/dist/{index-BMn9ghAX.d.ts → index-Bu0Zd1uw.d.ts} +3 -3
  200. package/dist/{index-Ctu32CLv.d.ts → index-BxhJqiZ7.d.ts} +2 -2
  201. package/dist/{index-CA6RbRWx.d.ts → index-By2mSzUA.d.ts} +1 -1
  202. package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
  203. package/dist/{index-LIyvJTW3.d.ts → index-C3GaPqvJ.d.ts} +84 -8
  204. package/dist/{index-DAiGhkNZ.d.ts → index-CFIXnk5D.d.ts} +1 -1
  205. package/dist/{index-ViSV0RBx.d.ts → index-CI9kyg74.d.ts} +12 -2
  206. package/dist/{index-C-QpeUlQ.d.ts → index-CNjbOgty.d.ts} +2 -2
  207. package/dist/{index-BB5yVIN-.d.ts → index-CUCcYKxl.d.ts} +3 -3
  208. package/dist/{index-Ca8VIE4l.d.ts → index-CVn0GBdB.d.ts} +1 -1
  209. package/dist/{index-xfkEuGLY.d.ts → index-CZeoAr0a.d.ts} +2 -2
  210. package/dist/{index-C2sfHfBw.d.ts → index-D-ezcKaY.d.ts} +3 -3
  211. package/dist/{index-BcJBLWJ0.d.ts → index-DA52oIdw.d.ts} +2 -2
  212. package/dist/{index-D7-WTV6I.d.ts → index-D_nYxnNv.d.ts} +1 -1
  213. package/dist/{index-Cm_TiLXU.d.ts → index-Dgg0bHVM.d.ts} +7 -3
  214. package/dist/index-DxR1FChm.d.ts +158 -0
  215. package/dist/{index-BTAgQRP0.d.ts → index-EtZgovdH.d.ts} +169 -81
  216. package/dist/{index-B9f1rUEv.d.ts → index-XuAAcYiP.d.ts} +1 -1
  217. package/dist/{index-D0TlUOtG.d.ts → index-YmSe1ujk.d.ts} +76 -3
  218. package/dist/{index-BMrggCw-.d.ts → index-bvr3WHvs.d.ts} +1 -1
  219. package/dist/{index-CDDMDHJM.d.ts → index-c67ca7eJ.d.ts} +1 -1
  220. package/dist/{index-D8o50qOE.d.ts → index-cL3q7O4R.d.ts} +32 -3
  221. package/dist/{index-CGZ2xi3r.d.ts → index-eshFLli0.d.ts} +40 -3
  222. package/dist/{index-DkVEBdWa.d.ts → index-fa72tWIU.d.ts} +2 -2
  223. package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
  224. package/dist/{index-foQMNKZO.d.ts → index-hCpxKePE.d.ts} +49 -3
  225. package/dist/{index-DxsKyAxq.d.ts → index-vizlhXVs.d.ts} +131 -2
  226. package/dist/{index-DfgHJE7H.d.ts → index-z3uLM1O6.d.ts} +153 -24
  227. package/dist/index.d.ts +81 -80
  228. package/dist/index.js +118 -115
  229. package/dist/locale/index.d.ts +2 -2
  230. package/dist/locale/index.js +3 -3
  231. package/dist/locale-sLw5Caia.js +917 -0
  232. package/dist/{searchResultMessage-DN0HeRRB.js → searchResultMessage-CCnq-_ce.js} +1 -1
  233. package/dist/syntaxTheme-CwVEcVDk.d.ts +57 -0
  234. package/dist/{syntaxTheme-ClpWALZX.js → syntaxTheme-R7xnu5x5.js} +24 -3
  235. package/dist/{types-Bt-lSgYX.d.ts → types-D9nP_X-c.d.ts} +14 -1
  236. package/dist/{types-CAZY4Xua.d.ts → types-DGYHIu4I.d.ts} +30 -1
  237. package/dist/types-D_J66aPN.d.ts +85 -0
  238. package/dist/types-gKsEkk2g.d.ts +320 -0
  239. package/dist/{useMenuDrillIn-OaEwjK44.js → useMenuDrillIn-BgjJcY3K.js} +1 -1
  240. package/dist/useMenuPress-DUmEy4TB.js +425 -0
  241. package/dist/{composables-DDI08XFF.js → useResizable-B3ahKLoZ.js} +73 -248
  242. package/dist/useTruncation-B5qXQzAP.js +53 -0
  243. package/locales/SOURCE.json +37 -0
  244. package/locales/af-ZA.json +1482 -0
  245. package/locales/ar-SA.json +1482 -0
  246. package/locales/ca-ES.json +1482 -0
  247. package/locales/cs-CZ.json +1482 -0
  248. package/locales/da-DK.json +1482 -0
  249. package/locales/de-DE.json +1482 -0
  250. package/locales/el-GR.json +1482 -0
  251. package/locales/en.json +1646 -0
  252. package/locales/es-ES.json +1482 -0
  253. package/locales/fi-FI.json +1482 -0
  254. package/locales/fr-FR.json +1482 -0
  255. package/locales/he-IL.json +1482 -0
  256. package/locales/hu-HU.json +1482 -0
  257. package/locales/it-IT.json +1482 -0
  258. package/locales/ja-JP.json +1482 -0
  259. package/locales/ko-KR.json +1482 -0
  260. package/locales/nl-NL.json +1482 -0
  261. package/locales/no-NO.json +1482 -0
  262. package/locales/pl-PL.json +1482 -0
  263. package/locales/pt-BR.json +1482 -0
  264. package/locales/pt-PT.json +1482 -0
  265. package/locales/ro-RO.json +1482 -0
  266. package/locales/ru-RU.json +1482 -0
  267. package/locales/sr-SP.json +1482 -0
  268. package/locales/sv-SE.json +1482 -0
  269. package/locales/tr-TR.json +1482 -0
  270. package/locales/uk-UA.json +1482 -0
  271. package/locales/vi-VN.json +1482 -0
  272. package/locales/zh-CN.json +1482 -0
  273. package/locales/zh-TW.json +1482 -0
  274. package/package.json +3 -1
  275. package/styles/bottom-sheet.css +27 -0
  276. package/styles/code.css +62 -0
  277. package/styles/container-reveal.css +104 -0
  278. package/styles/heading.css +47 -0
  279. package/styles/keyboard-hint.css +28 -0
  280. package/styles/link.css +34 -0
  281. package/styles/list.css +88 -1
  282. package/styles/markdown.css +12 -0
  283. package/styles/pagination.css +30 -0
  284. package/styles/progress-bar.css +49 -0
  285. package/styles/side-nav.css +36 -1
  286. package/styles/text.css +18 -0
  287. package/styles/top-nav.css +145 -6
  288. package/styles/typeahead.css +24 -0
  289. package/styles.css +2 -0
  290. package/dist/Heading-Dugosn6j.js +0 -43
  291. package/dist/Item-C1z6gXn8.js +0 -289
  292. package/dist/Link-DqdQZ37C.js +0 -141
  293. package/dist/Text-BHVghsWo.js +0 -53
  294. package/dist/Theme-CejS9MHm.js +0 -447
  295. package/dist/Typeahead-DQ3tmqYe.js +0 -375
  296. package/dist/index-Bqb_Fyju.d.ts +0 -80
  297. package/dist/index-Dg3ZmwEg.d.ts +0 -75
  298. package/dist/locale-CCwVnyMZ.js +0 -42
  299. package/dist/syntaxTheme-Bcs1YMF7.d.ts +0 -38
  300. package/dist/types-jmqqnkKA.d.ts +0 -163
  301. package/dist/useHotkeys-dABSK1o9.js +0 -80
  302. package/dist/useLongPress-Cyxwa73s.js +0 -60
  303. package/dist/{index-BXkNZF3q.d.ts → index-IdK2g5B4.d.ts} +2 -2
@@ -2,15 +2,15 @@ import { t as useAnnounce } from "./announce-Cnio10Wk.js";
2
2
  import { t as useCombobox } from "./useCombobox-CTo5C-gc.js";
3
3
  import { t as useDismiss } from "./useDismiss-Cj8x_51F.js";
4
4
  import { t as useFieldControlState } from "./useFieldControlState-voICDrys.js";
5
- import { a as useAstryxMessages } from "./context-DmOLCubj.js";
5
+ import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
6
6
  import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
7
- import { t as _sfc_main$1 } from "./BottomSheet-Dg95HB1s.js";
7
+ import { t as _sfc_main$1 } from "./BottomSheet-BV6vfgGu.js";
8
8
  import { t as _sfc_main$2 } from "./Icon-bteSId7T.js";
9
9
  import { t as _sfc_main$3 } from "./Spinner-9cYUCnDy.js";
10
10
  import { t as useIndicator } from "./useIndicator-i1NORM7W.js";
11
11
  import { t as _sfc_main$4 } from "./Field-8zRxzDHE.js";
12
12
  import { t as INPUT_GROUP_KEY } from "./context-D5-MwxnN.js";
13
- import { n as fieldStatusPlacement, r as _sfc_main$5, t as searchResultMessage } from "./searchResultMessage-DN0HeRRB.js";
13
+ import { n as fieldStatusPlacement, r as _sfc_main$5, t as searchResultMessage } from "./searchResultMessage-CCnq-_ce.js";
14
14
  import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useId, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
15
15
  import "../styles/visually-hidden-utility.css";
16
16
  import "../styles/selector.css";
@@ -1,2 +1,2 @@
1
- import { Bt as _default$1, Gt as SideNavHeadingProps, Ht as SideNavCollapseButtonProps, Jt as SideNavProps, Kt as SideNavItemEmits, Lt as _default$4, Rt as _default$3, Ut as SideNavCollapsible, Vt as _default, Wt as SideNavEmits, Xt as SideNavCollapseContext, Yt as SideNavSectionProps, Zt as useSideNavCollapse, qt as SideNavItemProps, zt as _default$2 } from "../index-BTAgQRP0.js";
2
- export { _default as SideNav, _default$1 as SideNavCollapseButton, type SideNavCollapseButtonProps, type SideNavCollapseContext, type SideNavCollapsible, type SideNavEmits, _default$2 as SideNavHeading, type SideNavHeadingProps, _default$3 as SideNavItem, type SideNavItemEmits, type SideNavItemProps, type SideNavProps, _default$4 as SideNavSection, type SideNavSectionProps, useSideNavCollapse };
1
+ import { $t as useSideNavCollapse, Bt as _default$1, Gt as SideNavHandle, Ht as SideNavCollapseButtonProps, Jt as SideNavItemProps, Kt as SideNavHeadingProps, Lt as _default$4, Qt as SideNavCollapseContext, Rt as _default$3, Ut as SideNavCollapsible, Vt as _default, Wt as SideNavEmits, Xt as SideNavResizable, Yt as SideNavProps, Zt as SideNavSectionProps, qt as SideNavItemEmits, zt as _default$2 } from "../index-EtZgovdH.js";
2
+ export { _default as SideNav, _default$1 as SideNavCollapseButton, type SideNavCollapseButtonProps, type SideNavCollapseContext, type SideNavCollapsible, type SideNavEmits, type SideNavHandle, _default$2 as SideNavHeading, type SideNavHeadingProps, _default$3 as SideNavItem, type SideNavItemEmits, type SideNavItemProps, type SideNavProps, type SideNavResizable, _default$4 as SideNavSection, type SideNavSectionProps, useSideNavCollapse };
@@ -1,3 +1,3 @@
1
1
  import { r as useSideNavCollapse } from "../context-BjNya0v8.js";
2
- import { a as _sfc_main$1, i as _sfc_main, n as _sfc_main$3, r as _sfc_main$2, t as _sfc_main$4 } from "../SideNav-D4TupqgE.js";
2
+ import { a as _sfc_main$1, i as _sfc_main, n as _sfc_main$3, r as _sfc_main$2, t as _sfc_main$4 } from "../SideNav-CT9lfspi.js";
3
3
  export { _sfc_main as SideNav, _sfc_main$1 as SideNavCollapseButton, _sfc_main$2 as SideNavHeading, _sfc_main$3 as SideNavItem, _sfc_main$4 as SideNavSection, useSideNavCollapse };
@@ -1,12 +1,15 @@
1
- import { t as useHotkeys } from "./useHotkeys-dABSK1o9.js";
2
- import { a as useAstryxMessages } from "./context-DmOLCubj.js";
1
+ import { t as useHandleRef } from "./useHandleRef-6cdKugm8.js";
2
+ import { n as useResizable, r as useHotkeys } from "./useResizable-B3ahKLoZ.js";
3
+ import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
4
+ import { t as _sfc_main$5 } from "./Tooltip-C2fh9anJ.js";
3
5
  import { i as useSideNavRenderMode, r as useSideNavCollapse, t as sideNavCollapseKey } from "./context-BjNya0v8.js";
4
- import { t as _sfc_main$5 } from "./Tooltip-mp0NMh_Y.js";
5
6
  import { t as _sfc_main$6 } from "./Icon-bteSId7T.js";
6
7
  import { n as resolveNavRoot } from "./link-CdcUSxAj.js";
7
8
  import { t as _sfc_main$7 } from "./NavItem-FFOisITc.js";
8
- import { t as _sfc_main$8 } from "./NavDisclosure-DbYLDXK0.js";
9
- import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, getCurrentInstance, normalizeClass, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useId, useSlots, watch, withCtx, withModifiers } from "vue";
9
+ import { t as _sfc_main$8 } from "./NavDisclosure-C6sPZ89n.js";
10
+ import { t as _sfc_main$9 } from "./ResizeHandle-DYy0e3v9.js";
11
+ import { t as _sfc_main$10 } from "./NavHeadingSurface-Cb3x9iDx.js";
12
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, getCurrentInstance, guardReactiveProps, normalizeClass, normalizeProps, normalizeStyle, openBlock, provide, reactive, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useId, useSlots, watch, watchEffect, withCtx, withModifiers } from "vue";
10
13
  import "../styles/visually-hidden.css";
11
14
  import "../styles/side-nav.css";
12
15
  //#region src/SideNav/SideNavCollapseButton.vue
@@ -64,6 +67,102 @@ const _sfc_main$4 = /*@__PURE__*/ defineComponent({
64
67
  }
65
68
  });
66
69
  //#endregion
70
+ //#region src/SideNav/useSideNavResize.ts
71
+ /** 拖到这条宽度以下就收起。收起后的视觉宽度仍由图标栏样式决定。 */
72
+ const COLLAPSE_THRESHOLD = 160;
73
+ function resizeConfig(value) {
74
+ return typeof value === "object" && value != null ? value : {};
75
+ }
76
+ function collapseConfig(value) {
77
+ return typeof value === "object" && value != null ? value : {};
78
+ }
79
+ function ownsCollapseState(config) {
80
+ return config.defaultIsCollapsed !== void 0 || config.isCollapsed !== void 0 || config.onCollapseChange !== void 0;
81
+ }
82
+ function describeCollapseConflict(collapsible, resizable) {
83
+ const fromCollapsible = [collapsible.defaultIsCollapsed !== void 0 && "defaultIsCollapsed", collapsible.isCollapsed !== void 0 && "isCollapsed"].filter((key) => key !== false);
84
+ const fromResizable = [
85
+ resizable.defaultIsCollapsed !== void 0 && "defaultIsCollapsed",
86
+ resizable.isCollapsed !== void 0 && "isCollapsed",
87
+ resizable.onCollapseChange !== void 0 && "onCollapseChange"
88
+ ].filter((key) => key !== false);
89
+ if (fromCollapsible.length === 0 || fromResizable.length === 0) return null;
90
+ return `collapsible 和 resizable 都写了收起状态(${fromResizable.join("、")})。拖拽这边生效。`;
91
+ }
92
+ function useSideNavResize(source) {
93
+ const initialResize = resizeConfig(source.resizable());
94
+ const initialCollapse = collapseConfig(source.collapsible());
95
+ const initialOwns = ownsCollapseState(initialResize);
96
+ const controlled = source.isCollapsed();
97
+ const input = reactive({
98
+ defaultSize: initialResize.defaultWidth ?? 260,
99
+ minSize: initialResize.minWidth ?? 180,
100
+ maxSize: initialResize.maxWidth ?? 480,
101
+ collapsible: Boolean(source.collapsible()) || initialOwns,
102
+ collapsedSize: COLLAPSE_THRESHOLD,
103
+ autoSaveId: initialResize.autoSaveId,
104
+ defaultIsCollapsed: (initialOwns ? initialResize.defaultIsCollapsed : initialCollapse.defaultIsCollapsed) ?? false,
105
+ isCollapsed: controlled,
106
+ onSizeChange(width) {
107
+ resizeConfig(source.resizable()).onWidthChange?.(width);
108
+ source.onWidthChange(width);
109
+ },
110
+ onCollapseChange(next) {
111
+ resizeConfig(source.resizable()).onCollapseChange?.(next);
112
+ source.onCollapseChange(next);
113
+ }
114
+ });
115
+ const region = useResizable(input);
116
+ const resizing = ref(false);
117
+ const enabled = computed(() => Boolean(source.resizable()));
118
+ const ownsCollapse = computed(() => ownsCollapseState(resizeConfig(source.resizable())));
119
+ watch(() => source.isCollapsed(), (value) => {
120
+ input.isCollapsed = value;
121
+ });
122
+ let warnedConflict = false;
123
+ watchEffect(() => {
124
+ if (warnedConflict) return;
125
+ const message = describeCollapseConflict(collapseConfig(source.collapsible()), resizeConfig(source.resizable()));
126
+ if (!message) return;
127
+ warnedConflict = true;
128
+ console.warn(`[SideNav] ${message}`);
129
+ });
130
+ const handleProps = computed(() => {
131
+ const current = region.props;
132
+ return {
133
+ ...current,
134
+ _onResizeStart() {
135
+ resizing.value = true;
136
+ current._onResizeStart();
137
+ },
138
+ _onResizeEnd() {
139
+ resizing.value = false;
140
+ current._onResizeEnd();
141
+ },
142
+ _onResizeCancel() {
143
+ resizing.value = false;
144
+ current._onResizeCancel?.();
145
+ }
146
+ };
147
+ });
148
+ const widthStyle = computed(() => {
149
+ if (!enabled.value || region.isCollapsed) return void 0;
150
+ return { width: `${region.size}px` };
151
+ });
152
+ return {
153
+ enabled,
154
+ ownsCollapse,
155
+ isCollapsed: computed(() => region.isCollapsed),
156
+ widthStyle,
157
+ resizing,
158
+ handleProps,
159
+ setCollapsed(next) {
160
+ if (next) region.collapse();
161
+ else region.expand();
162
+ }
163
+ };
164
+ }
165
+ //#endregion
67
166
  //#region src/SideNav/SideNav.vue
68
167
  const _hoisted_1$3 = {
69
168
  key: 0,
@@ -88,29 +187,29 @@ const _hoisted_6$2 = {
88
187
  key: 1,
89
188
  class: "astryx-side-nav__bottom"
90
189
  };
91
- const _hoisted_7$2 = {
190
+ const _hoisted_7$1 = {
92
191
  key: 0,
93
192
  class: "astryx-side-nav__footer-icons"
94
193
  };
95
- const _hoisted_8$2 = ["aria-label", "data-collapsed"];
96
- const _hoisted_9$1 = {
194
+ const _hoisted_8$1 = ["aria-label", "data-collapsed"];
195
+ const _hoisted_9 = {
97
196
  key: 0,
98
197
  class: "astryx-side-nav__top"
99
198
  };
100
- const _hoisted_10$1 = {
199
+ const _hoisted_10 = {
101
200
  key: 0,
102
201
  class: "astryx-side-nav__heading-row"
103
202
  };
104
- const _hoisted_11$1 = {
203
+ const _hoisted_11 = {
105
204
  key: 1,
106
205
  class: "astryx-side-nav__top-content"
107
206
  };
108
- const _hoisted_12$1 = { class: "astryx-side-nav__body" };
109
- const _hoisted_13$1 = {
207
+ const _hoisted_12 = { class: "astryx-side-nav__body" };
208
+ const _hoisted_13 = {
110
209
  key: 1,
111
210
  class: "astryx-side-nav__bottom"
112
211
  };
113
- const _hoisted_14$1 = {
212
+ const _hoisted_14 = {
114
213
  key: 0,
115
214
  class: "astryx-side-nav__footer-icons"
116
215
  };
@@ -126,9 +225,18 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
126
225
  isCollapsed: {
127
226
  type: Boolean,
128
227
  default: void 0
129
- }
228
+ },
229
+ resizable: {
230
+ type: [Boolean, Object],
231
+ default: false
232
+ },
233
+ handleRef: {}
130
234
  },
131
- emits: ["update:isCollapsed", "collapsedChange"],
235
+ emits: [
236
+ "update:isCollapsed",
237
+ "collapsedChange",
238
+ "widthChange"
239
+ ],
132
240
  setup(__props, { emit: __emit }) {
133
241
  const props = __props;
134
242
  const emit = __emit;
@@ -137,13 +245,35 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
137
245
  const navId = `astryx-side-nav-${useId()}`;
138
246
  const localCollapsed = ref(false);
139
247
  const config = computed(() => typeof props.collapsible === "object" ? props.collapsible : {});
140
- const isCollapsible = computed(() => Boolean(props.collapsible));
248
+ function controlledCollapsed() {
249
+ if (props.isCollapsed !== void 0) return props.isCollapsed;
250
+ if (typeof props.resizable === "object") {
251
+ const resizable = props.resizable;
252
+ if (resizable.defaultIsCollapsed !== void 0 || resizable.isCollapsed !== void 0 || resizable.onCollapseChange !== void 0) return resizable.isCollapsed;
253
+ }
254
+ return config.value.isCollapsed;
255
+ }
256
+ const resize = useSideNavResize({
257
+ collapsible: () => props.collapsible,
258
+ isCollapsed: controlledCollapsed,
259
+ onCollapseChange(next) {
260
+ emit("update:isCollapsed", next);
261
+ emit("collapsedChange", next);
262
+ },
263
+ onWidthChange(width) {
264
+ emit("widthChange", width);
265
+ },
266
+ resizable: () => props.resizable
267
+ });
268
+ const isCollapsible = computed(() => Boolean(props.collapsible) || resize.ownsCollapse.value);
141
269
  const isCollapsed = computed(() => {
142
270
  if (!isCollapsible.value) return false;
143
- if (props.isCollapsed !== void 0) return props.isCollapsed;
144
- if (config.value.isCollapsed !== void 0) return config.value.isCollapsed;
271
+ const controlled = controlledCollapsed();
272
+ if (controlled !== void 0) return controlled;
273
+ if (resize.enabled.value) return resize.isCollapsed.value;
145
274
  return localCollapsed.value;
146
275
  });
276
+ const showResizeHandle = computed(() => resize.enabled.value && !isCollapsed.value);
147
277
  const showButton = computed(() => isCollapsible.value && (config.value.hasButton ?? true));
148
278
  const hasTop = computed(() => slots.header != null || slots.top != null || showButton.value);
149
279
  const hasBottom = computed(() => slots.footer != null || slots.footerIcons != null);
@@ -154,6 +284,10 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
154
284
  }, { immediate: true });
155
285
  function setCollapsed(next) {
156
286
  if (!isCollapsible.value || next === isCollapsed.value) return;
287
+ if (resize.enabled.value) {
288
+ resize.setCollapsed(next);
289
+ return;
290
+ }
157
291
  if (props.isCollapsed === void 0 && config.value.isCollapsed === void 0) localCollapsed.value = next;
158
292
  emit("update:isCollapsed", next);
159
293
  emit("collapsedChange", next);
@@ -161,6 +295,14 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
161
295
  function toggle() {
162
296
  setCollapsed(!isCollapsed.value);
163
297
  }
298
+ useHandleRef(() => props.handleRef, {
299
+ collapse: () => setCollapsed(true),
300
+ expand: () => setCollapsed(false),
301
+ get isCollapsed() {
302
+ return isCollapsed.value;
303
+ },
304
+ toggle
305
+ });
164
306
  useHotkeys(computed(() => {
165
307
  const keys = config.value.hotkey;
166
308
  if (!isCollapsible.value || keys == null || keys === "") return [];
@@ -179,21 +321,37 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
179
321
  return unref(renderMode) === "topbar" ? (openBlock(), createElementBlock("div", _hoisted_1$3, [renderSlot(_ctx.$slots, "header"), slots.footerIcons ? (openBlock(), createElementBlock("div", _hoisted_2$3, [renderSlot(_ctx.$slots, "footerIcons")])) : createCommentVNode("v-if", true)])) : unref(renderMode) === "drawer" || unref(renderMode) === "drawer-content" ? (openBlock(), createElementBlock("div", _hoisted_3$3, [
180
322
  slots.top ? (openBlock(), createElementBlock("div", _hoisted_4$3, [renderSlot(_ctx.$slots, "top")])) : createCommentVNode("v-if", true),
181
323
  createElementVNode("div", _hoisted_5$2, [renderSlot(_ctx.$slots, "default")]),
182
- hasBottom.value ? (openBlock(), createElementBlock("div", _hoisted_6$2, [renderSlot(_ctx.$slots, "footer"), slots.footerIcons ? (openBlock(), createElementBlock("div", _hoisted_7$2, [renderSlot(_ctx.$slots, "footerIcons")])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true)
183
- ])) : (openBlock(), createElementBlock("nav", {
324
+ hasBottom.value ? (openBlock(), createElementBlock("div", _hoisted_6$2, [renderSlot(_ctx.$slots, "footer"), slots.footerIcons ? (openBlock(), createElementBlock("div", _hoisted_7$1, [renderSlot(_ctx.$slots, "footerIcons")])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true)
325
+ ])) : (openBlock(), createElementBlock("div", {
184
326
  key: 2,
327
+ class: normalizeClass(["astryx-side-nav-frame", { "astryx-side-nav-frame--resizable": showResizeHandle.value }])
328
+ }, [createElementVNode("nav", {
185
329
  id: navId,
186
- class: normalizeClass(["astryx-side-nav", { "astryx-side-nav--collapsed": isCollapsed.value }]),
330
+ class: normalizeClass(["astryx-side-nav", {
331
+ "astryx-side-nav--collapsed": isCollapsed.value,
332
+ "astryx-side-nav--resizing": unref(resize).resizing.value
333
+ }]),
334
+ style: normalizeStyle(unref(resize).widthStyle.value),
187
335
  "aria-label": label.value,
188
336
  "data-collapsed": isCollapsed.value || void 0
189
337
  }, [
190
- hasTop.value ? (openBlock(), createElementBlock("div", _hoisted_9$1, [slots.header || showButton.value ? (openBlock(), createElementBlock("div", _hoisted_10$1, [renderSlot(_ctx.$slots, "header"), showButton.value ? (openBlock(), createBlock(_sfc_main$4, {
338
+ hasTop.value ? (openBlock(), createElementBlock("div", _hoisted_9, [slots.header || showButton.value ? (openBlock(), createElementBlock("div", _hoisted_10, [renderSlot(_ctx.$slots, "header"), showButton.value ? (openBlock(), createBlock(_sfc_main$4, {
191
339
  key: 0,
192
340
  label: config.value.buttonLabel
193
- }, null, 8, ["label"])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true), slots.top ? (openBlock(), createElementBlock("div", _hoisted_11$1, [renderSlot(_ctx.$slots, "top")])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true),
194
- createElementVNode("div", _hoisted_12$1, [renderSlot(_ctx.$slots, "default")]),
195
- hasBottom.value ? (openBlock(), createElementBlock("div", _hoisted_13$1, [renderSlot(_ctx.$slots, "footer"), slots.footerIcons ? (openBlock(), createElementBlock("div", _hoisted_14$1, [renderSlot(_ctx.$slots, "footerIcons")])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true)
196
- ], 10, _hoisted_8$2));
341
+ }, null, 8, ["label"])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true), slots.top ? (openBlock(), createElementBlock("div", _hoisted_11, [renderSlot(_ctx.$slots, "top")])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true),
342
+ createElementVNode("div", _hoisted_12, [renderSlot(_ctx.$slots, "default")]),
343
+ hasBottom.value ? (openBlock(), createElementBlock("div", _hoisted_13, [renderSlot(_ctx.$slots, "footer"), slots.footerIcons ? (openBlock(), createElementBlock("div", _hoisted_14, [renderSlot(_ctx.$slots, "footerIcons")])) : createCommentVNode("v-if", true)])) : createCommentVNode("v-if", true)
344
+ ], 14, _hoisted_8$1), showResizeHandle.value ? (openBlock(), createBlock(_sfc_main$9, {
345
+ key: 0,
346
+ "data-testid": "astryx-sidenav-resize-handle",
347
+ direction: "horizontal",
348
+ position: "overlay",
349
+ "pill-placement": "end",
350
+ "is-always-visible": false,
351
+ resizable: unref(resize).handleProps.value,
352
+ label: unref(messages).nav.resizeSidebar,
353
+ "aria-controls": navId
354
+ }, null, 8, ["resizable", "label"])) : createCommentVNode("v-if", true)], 2));
197
355
  };
198
356
  }
199
357
  });
@@ -212,78 +370,6 @@ const _hoisted_5$1 = {
212
370
  class: "astryx-side-nav-heading astryx-side-nav-heading--collapsed"
213
371
  };
214
372
  const _hoisted_6$1 = { class: "astryx-side-nav-heading__icon" };
215
- const _hoisted_7$1 = {
216
- key: 0,
217
- class: "astryx-side-nav-heading__icon"
218
- };
219
- const _hoisted_8$1 = { class: "astryx-side-nav-heading__text" };
220
- const _hoisted_9 = {
221
- key: 0,
222
- class: "astryx-side-nav-heading__super"
223
- };
224
- const _hoisted_10 = { class: "astryx-side-nav-heading__title" };
225
- const _hoisted_11 = {
226
- key: 1,
227
- class: "astryx-side-nav-heading__sub"
228
- };
229
- const _hoisted_12 = {
230
- key: 1,
231
- class: "astryx-side-nav-heading__end"
232
- };
233
- const _hoisted_13 = ["data-open"];
234
- const _hoisted_14 = {
235
- key: 1,
236
- class: "astryx-side-nav-heading__icon"
237
- };
238
- const _hoisted_15 = { class: "astryx-side-nav-heading__text" };
239
- const _hoisted_16 = {
240
- key: 1,
241
- class: "astryx-side-nav-heading__super"
242
- };
243
- const _hoisted_17 = { class: "astryx-side-nav-heading__row" };
244
- const _hoisted_18 = {
245
- key: 1,
246
- class: "astryx-side-nav-heading__title"
247
- };
248
- const _hoisted_19 = [
249
- "aria-label",
250
- "aria-expanded",
251
- "aria-controls"
252
- ];
253
- const _hoisted_20 = {
254
- key: 3,
255
- class: "astryx-side-nav-heading__sub"
256
- };
257
- const _hoisted_21 = {
258
- key: 2,
259
- class: "astryx-side-nav-heading__end"
260
- };
261
- const _hoisted_22 = { class: "astryx-side-nav-heading__menu" };
262
- const _hoisted_23 = {
263
- key: 3,
264
- class: "astryx-side-nav-heading"
265
- };
266
- const _hoisted_24 = {
267
- key: 1,
268
- class: "astryx-side-nav-heading__icon"
269
- };
270
- const _hoisted_25 = { class: "astryx-side-nav-heading__text" };
271
- const _hoisted_26 = {
272
- key: 1,
273
- class: "astryx-side-nav-heading__super"
274
- };
275
- const _hoisted_27 = {
276
- key: 3,
277
- class: "astryx-side-nav-heading__title"
278
- };
279
- const _hoisted_28 = {
280
- key: 5,
281
- class: "astryx-side-nav-heading__sub"
282
- };
283
- const _hoisted_29 = {
284
- key: 2,
285
- class: "astryx-side-nav-heading__end"
286
- };
287
373
  const _sfc_main$2 = /*@__PURE__*/ defineComponent({
288
374
  name: "AstryxSideNavHeading",
289
375
  __name: "SideNavHeading",
@@ -294,17 +380,16 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
294
380
  superheadingHref: {},
295
381
  subheading: {},
296
382
  subheadingHref: {},
383
+ logoLabel: {},
297
384
  as: {}
298
385
  },
299
386
  setup(__props) {
300
387
  const props = __props;
301
388
  const slots = useSlots();
302
389
  const collapse = useSideNavCollapse();
303
- const messages = useAstryxMessages();
304
390
  const collapsed = computed(() => collapse.isCollapsed.value);
305
391
  const hasIcon = computed(() => slots.icon != null);
306
392
  const hasMenu = computed(() => slots.menu != null);
307
- const wholeLink = computed(() => Boolean(props.headingHref) && !hasMenu.value && !props.superheadingHref && !props.subheadingHref);
308
393
  const linkRoot = computed(() => resolveNavRoot(props.headingHref, false, props.as));
309
394
  return (_ctx, _cache) => {
310
395
  return collapsed.value && hasIcon.value ? (openBlock(), createBlock(_sfc_main$5, {
@@ -326,7 +411,10 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
326
411
  "aria-controls": panelId,
327
412
  "aria-haspopup": "menu"
328
413
  }, [createElementVNode("span", _hoisted_2$2, [renderSlot(_ctx.$slots, "icon")])], 8, _hoisted_1$2)]),
329
- default: withCtx(({ close }) => [createElementVNode("div", _hoisted_3$2, [renderSlot(_ctx.$slots, "menu", { close })])]),
414
+ default: withCtx(({ close, focusRequest }) => [createElementVNode("div", _hoisted_3$2, [renderSlot(_ctx.$slots, "menu", {
415
+ close,
416
+ focusRequest
417
+ })])]),
330
418
  _: 3
331
419
  }, 8, ["label"])) : __props.headingHref ? (openBlock(), createBlock(resolveDynamicComponent(linkRoot.value), {
332
420
  key: 1,
@@ -343,135 +431,43 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
343
431
  "aria-label"
344
432
  ])) : (openBlock(), createElementBlock("div", _hoisted_5$1, [createElementVNode("span", _hoisted_6$1, [renderSlot(_ctx.$slots, "icon")])]))]),
345
433
  _: 3
346
- }, 8, ["content"])) : !collapsed.value && wholeLink.value ? (openBlock(), createBlock(resolveDynamicComponent(linkRoot.value), {
434
+ }, 8, ["content"])) : (openBlock(), createBlock(_sfc_main$10, {
347
435
  key: 1,
348
- class: "astryx-side-nav-heading astryx-side-nav-heading--link",
349
- href: __props.headingHref,
350
- to: __props.as != null ? __props.headingHref : void 0
351
- }, {
352
- default: withCtx(() => [
353
- hasIcon.value ? (openBlock(), createElementBlock("span", _hoisted_7$1, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("v-if", true),
354
- createElementVNode("span", _hoisted_8$1, [
355
- __props.superheading ? (openBlock(), createElementBlock("span", _hoisted_9, toDisplayString(__props.superheading), 1)) : createCommentVNode("v-if", true),
356
- createElementVNode("span", _hoisted_10, toDisplayString(__props.heading), 1),
357
- __props.subheading ? (openBlock(), createElementBlock("span", _hoisted_11, toDisplayString(__props.subheading), 1)) : createCommentVNode("v-if", true)
358
- ]),
359
- _ctx.$slots.end ? (openBlock(), createElementBlock("span", _hoisted_12, [renderSlot(_ctx.$slots, "end")])) : createCommentVNode("v-if", true)
360
- ]),
361
- _: 3
362
- }, 8, ["href", "to"])) : !collapsed.value && hasMenu.value ? (openBlock(), createBlock(_sfc_main$8, {
363
- key: 2,
364
- hover: "",
365
- label: __props.heading
366
- }, {
367
- trigger: withCtx(({ isOpen, panelId }) => [createElementVNode("div", {
368
- class: "astryx-side-nav-heading",
369
- "data-open": isOpen || void 0
370
- }, [
371
- __props.headingHref ? (openBlock(), createBlock(resolveDynamicComponent(linkRoot.value), {
372
- key: 0,
373
- class: "astryx-side-nav-heading__icon",
374
- href: __props.headingHref,
375
- to: __props.as != null ? __props.headingHref : void 0,
376
- "aria-label": __props.heading
377
- }, {
378
- default: withCtx(() => [renderSlot(_ctx.$slots, "icon")]),
379
- _: 3
380
- }, 8, [
381
- "href",
382
- "to",
383
- "aria-label"
384
- ])) : hasIcon.value ? (openBlock(), createElementBlock("span", _hoisted_14, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("v-if", true),
385
- createElementVNode("span", _hoisted_15, [
386
- __props.superheading && __props.superheadingHref ? (openBlock(), createBlock(resolveDynamicComponent(unref(resolveNavRoot)(__props.superheadingHref, false, __props.as)), {
387
- key: 0,
388
- class: "astryx-side-nav-heading__super astryx-side-nav-heading__link",
389
- href: __props.superheadingHref,
390
- to: __props.as != null ? __props.superheadingHref : void 0
391
- }, {
392
- default: withCtx(() => [createTextVNode(toDisplayString(__props.superheading), 1)]),
393
- _: 1
394
- }, 8, ["href", "to"])) : __props.superheading ? (openBlock(), createElementBlock("span", _hoisted_16, toDisplayString(__props.superheading), 1)) : createCommentVNode("v-if", true),
395
- createElementVNode("span", _hoisted_17, [__props.headingHref ? (openBlock(), createBlock(resolveDynamicComponent(linkRoot.value), {
396
- key: 0,
397
- class: "astryx-side-nav-heading__title astryx-side-nav-heading__link",
398
- href: __props.headingHref,
399
- to: __props.as != null ? __props.headingHref : void 0
400
- }, {
401
- default: withCtx(() => [createTextVNode(toDisplayString(__props.heading), 1)]),
402
- _: 1
403
- }, 8, ["href", "to"])) : (openBlock(), createElementBlock("span", _hoisted_18, toDisplayString(__props.heading), 1)), createElementVNode("button", {
404
- type: "button",
405
- class: "astryx-side-nav-heading__chevron",
406
- "aria-label": unref(messages).nav.openMenu,
407
- "aria-expanded": isOpen ? "true" : "false",
408
- "aria-controls": panelId,
409
- "aria-haspopup": "menu"
410
- }, [createVNode(_sfc_main$6, {
411
- icon: "chevronDown",
412
- size: "sm",
413
- class: normalizeClass({ "astryx-side-nav-heading__chevron-icon--open": isOpen })
414
- }, null, 8, ["class"])], 8, _hoisted_19)]),
415
- __props.subheading && __props.subheadingHref ? (openBlock(), createBlock(resolveDynamicComponent(unref(resolveNavRoot)(__props.subheadingHref, false, __props.as)), {
416
- key: 2,
417
- class: "astryx-side-nav-heading__sub astryx-side-nav-heading__link",
418
- href: __props.subheadingHref,
419
- to: __props.as != null ? __props.subheadingHref : void 0
420
- }, {
421
- default: withCtx(() => [createTextVNode(toDisplayString(__props.subheading), 1)]),
422
- _: 1
423
- }, 8, ["href", "to"])) : __props.subheading ? (openBlock(), createElementBlock("span", _hoisted_20, toDisplayString(__props.subheading), 1)) : createCommentVNode("v-if", true)
424
- ]),
425
- _ctx.$slots.end ? (openBlock(), createElementBlock("span", _hoisted_21, [renderSlot(_ctx.$slots, "end")])) : createCommentVNode("v-if", true)
426
- ], 8, _hoisted_13)]),
427
- default: withCtx(({ close }) => [createElementVNode("div", _hoisted_22, [renderSlot(_ctx.$slots, "menu", { close })])]),
428
- _: 3
429
- }, 8, ["label"])) : !collapsed.value ? (openBlock(), createElementBlock("div", _hoisted_23, [
430
- hasIcon.value && __props.headingHref ? (openBlock(), createBlock(resolveDynamicComponent(linkRoot.value), {
431
- key: 0,
432
- class: "astryx-side-nav-heading__icon",
433
- href: __props.headingHref,
434
- to: __props.as != null ? __props.headingHref : void 0,
435
- "aria-label": __props.heading
436
- }, {
437
- default: withCtx(() => [renderSlot(_ctx.$slots, "icon")]),
438
- _: 3
439
- }, 8, [
440
- "href",
441
- "to",
442
- "aria-label"
443
- ])) : hasIcon.value ? (openBlock(), createElementBlock("span", _hoisted_24, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("v-if", true),
444
- createElementVNode("span", _hoisted_25, [
445
- __props.superheading && __props.superheadingHref ? (openBlock(), createBlock(resolveDynamicComponent(unref(resolveNavRoot)(__props.superheadingHref, false, __props.as)), {
446
- key: 0,
447
- class: "astryx-side-nav-heading__super astryx-side-nav-heading__link",
448
- href: __props.superheadingHref,
449
- to: __props.as != null ? __props.superheadingHref : void 0
450
- }, {
451
- default: withCtx(() => [createTextVNode(toDisplayString(__props.superheading), 1)]),
452
- _: 1
453
- }, 8, ["href", "to"])) : __props.superheading ? (openBlock(), createElementBlock("span", _hoisted_26, toDisplayString(__props.superheading), 1)) : createCommentVNode("v-if", true),
454
- __props.headingHref ? (openBlock(), createBlock(resolveDynamicComponent(linkRoot.value), {
455
- key: 2,
456
- class: "astryx-side-nav-heading__title astryx-side-nav-heading__link",
457
- href: __props.headingHref,
458
- to: __props.as != null ? __props.headingHref : void 0
459
- }, {
460
- default: withCtx(() => [createTextVNode(toDisplayString(__props.heading), 1)]),
461
- _: 1
462
- }, 8, ["href", "to"])) : (openBlock(), createElementBlock("span", _hoisted_27, toDisplayString(__props.heading), 1)),
463
- __props.subheading && __props.subheadingHref ? (openBlock(), createBlock(resolveDynamicComponent(unref(resolveNavRoot)(__props.subheadingHref, false, __props.as)), {
464
- key: 4,
465
- class: "astryx-side-nav-heading__sub astryx-side-nav-heading__link",
466
- href: __props.subheadingHref,
467
- to: __props.as != null ? __props.subheadingHref : void 0
468
- }, {
469
- default: withCtx(() => [createTextVNode(toDisplayString(__props.subheading), 1)]),
470
- _: 1
471
- }, 8, ["href", "to"])) : __props.subheading ? (openBlock(), createElementBlock("span", _hoisted_28, toDisplayString(__props.subheading), 1)) : createCommentVNode("v-if", true)
472
- ]),
473
- _ctx.$slots.end ? (openBlock(), createElementBlock("span", _hoisted_29, [renderSlot(_ctx.$slots, "end")])) : createCommentVNode("v-if", true)
474
- ])) : createCommentVNode("v-if", true);
436
+ kind: "side",
437
+ as: __props.as,
438
+ heading: __props.heading,
439
+ "heading-href": __props.headingHref,
440
+ "logo-label": __props.logoLabel,
441
+ subheading: __props.subheading,
442
+ "subheading-href": __props.subheadingHref,
443
+ superheading: __props.superheading,
444
+ "superheading-href": __props.superheadingHref
445
+ }, createSlots({ _: 2 }, [
446
+ hasIcon.value ? {
447
+ name: "icon",
448
+ fn: withCtx(() => [renderSlot(_ctx.$slots, "icon")]),
449
+ key: "0"
450
+ } : void 0,
451
+ unref(slots).end ? {
452
+ name: "end",
453
+ fn: withCtx(() => [renderSlot(_ctx.$slots, "end")]),
454
+ key: "1"
455
+ } : void 0,
456
+ hasMenu.value ? {
457
+ name: "menu",
458
+ fn: withCtx((scope) => [renderSlot(_ctx.$slots, "menu", normalizeProps(guardReactiveProps(scope)))]),
459
+ key: "2"
460
+ } : void 0
461
+ ]), 1032, [
462
+ "as",
463
+ "heading",
464
+ "heading-href",
465
+ "logo-label",
466
+ "subheading",
467
+ "subheading-href",
468
+ "superheading",
469
+ "superheading-href"
470
+ ]));
475
471
  };
476
472
  }
477
473
  });
@@ -1,3 +1,3 @@
1
1
  import { a as StackDirection, c as StackItemProps, d as StackProps, f as StackSizeValue, i as StackCrossAlignment, l as StackItemSize, m as VStackProps, n as SpacingStep, o as StackElement, p as StackWrap, r as StackAlignment, s as StackItemCrossAlignSelf, t as HStackProps, u as StackMainAlignment } from "../types-D7QNSqoN.js";
2
- import { i as _default, n as _default$2, r as _default$1, t as _default$3 } from "../index-MPcg1Pm4.js";
2
+ import { i as _default, n as _default$2, r as _default$1, t as _default$3 } from "../index-BKr7yvVv.js";
3
3
  export { _default as HStack, type HStackProps, type SpacingStep, _default$1 as Stack, type StackAlignment, type StackCrossAlignment, type StackDirection, type StackElement, _default$2 as StackItem, type StackItemCrossAlignSelf, type StackItemProps, type StackItemSize, type StackMainAlignment, type StackProps, type StackSizeValue, type StackWrap, _default$3 as VStack, type VStackProps };
@@ -1,2 +1,2 @@
1
- import { a as StepProps, c as StepperCollapsedVariant, d as StepperIndicatorPosition, f as StepperOrientation, i as StepProgress, l as StepperDensity, m as StepperSlots, n as _default, o as StepSlots, p as StepperProps, r as StepIndicator, s as StepStatus, t as _default$1, u as StepperHorizontalOptions } from "../index-Ca8VIE4l.js";
1
+ import { a as StepProps, c as StepperCollapsedVariant, d as StepperIndicatorPosition, f as StepperOrientation, i as StepProgress, l as StepperDensity, m as StepperSlots, n as _default, o as StepSlots, p as StepperProps, r as StepIndicator, s as StepStatus, t as _default$1, u as StepperHorizontalOptions } from "../index-CVn0GBdB.js";
2
2
  export { _default as Step, type StepIndicator, type StepProgress, type StepProps, type StepSlots, type StepStatus, _default$1 as Stepper, type StepperCollapsedVariant, type StepperDensity, type StepperHorizontalOptions, type StepperIndicatorPosition, type StepperOrientation, type StepperProps, type StepperSlots };
@@ -1,2 +1,2 @@
1
- import { n as _sfc_main, t as _sfc_main$1 } from "../Stepper-H-6-T5Ps.js";
1
+ import { n as _sfc_main, t as _sfc_main$1 } from "../Stepper-BqhVCgC-.js";
2
2
  export { _sfc_main as Step, _sfc_main$1 as Stepper };
@@ -1,5 +1,5 @@
1
1
  import { t as _sfc_main$3 } from "./VisuallyHidden-C7NN3VEP.js";
2
- import { a as useAstryxMessages } from "./context-DmOLCubj.js";
2
+ import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
3
3
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, onMounted, onUnmounted, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, useTemplateRef, watch, withCtx } from "vue";
4
4
  import "../styles/stepper.css";
5
5
  //#region src/Stepper/context.ts
@@ -1,2 +1,2 @@
1
- import { At as SwitchChangeEvent, Ft as SwitchStatus, It as SwitchStatusType, Mt as SwitchProps, Nt as SwitchSize, Ot as _default, Pt as SwitchSlots, jt as SwitchEmits, kt as SwitchChangeAction } from "../index-BTAgQRP0.js";
1
+ import { At as SwitchChangeEvent, Ft as SwitchStatus, It as SwitchStatusType, Mt as SwitchProps, Nt as SwitchSize, Ot as _default, Pt as SwitchSlots, jt as SwitchEmits, kt as SwitchChangeAction } from "../index-EtZgovdH.js";
2
2
  export { _default as Switch, type SwitchChangeAction, type SwitchChangeEvent, type SwitchEmits, type SwitchProps, type SwitchSize, type SwitchSlots, type SwitchStatus, type SwitchStatusType };
@@ -1,2 +1,2 @@
1
- import { a as TabListProps, c as TabMenuOption, i as TabListLayout, l as TabMenuProps, n as _default$1, o as TabListSize, r as _default, s as TabListTab, t as _default$2, u as TabProps } from "../index-C-QpeUlQ.js";
1
+ import { a as TabListProps, c as TabMenuOption, i as TabListLayout, l as TabMenuProps, n as _default$1, o as TabListSize, r as _default, s as TabListTab, t as _default$2, u as TabProps } from "../index-CNjbOgty.js";
2
2
  export { _default as Tab, _default$1 as TabList, type TabListLayout, type TabListProps, type TabListSize, type TabListTab, _default$2 as TabMenu, type TabMenuOption, type TabMenuProps, type TabProps };