@astryx-vue/core 0.3.0 → 0.4.0

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 (505) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-RAVA_cT1.js → AlertDialog-C2inDZWG.js} +5 -5
  3. package/dist/AppShell/index.js +1 -1
  4. package/dist/{AppShell-0wTvOo3H.js → AppShell-CumzH-8z.js} +3 -3
  5. package/dist/Avatar/index.js +1 -1
  6. package/dist/{Avatar-pPZ4dI_s.js → Avatar-BW0TE8t9.js} +47 -34
  7. package/dist/AvatarGroup/index.d.ts +1 -1
  8. package/dist/AvatarGroup/index.js +1 -1
  9. package/dist/{AvatarGroup-B--NQSB3.js → AvatarGroup-DLC_FFR5.js} +57 -13
  10. package/dist/Banner/index.d.ts +1 -1
  11. package/dist/Banner/index.js +1 -1
  12. package/dist/{Banner-GbGxrqQO.js → Banner-C5VAwo4D.js} +68 -34
  13. package/dist/Blockquote/index.js +1 -1
  14. package/dist/Blockquote-DRoKdcxZ.js +27 -0
  15. package/dist/BottomSheet/index.d.ts +1 -1
  16. package/dist/BottomSheet/index.js +2 -2
  17. package/dist/{BottomSheet-pt7m4CvC.js → BottomSheet-B4sc3F1S.js} +286 -140
  18. package/dist/{BottomSheet-JYMB_Ofl.js → BottomSheet-m54uCMJN.js} +20 -4
  19. package/dist/Breadcrumbs/index.d.ts +2 -2
  20. package/dist/Breadcrumbs/index.js +2 -2
  21. package/dist/Breadcrumbs-CTaz7Kh4.js +223 -0
  22. package/dist/Button/index.d.ts +1 -1
  23. package/dist/Button/index.js +1 -1
  24. package/dist/{Button-B6Hj_O_s.js → Button-ONOoHdkg.js} +25 -15
  25. package/dist/ButtonGroup/index.d.ts +1 -1
  26. package/dist/ButtonGroup/index.js +1 -1
  27. package/dist/ButtonGroup-DnkSZ9a5.js +87 -0
  28. package/dist/{ButtonTooltip-nWWrth8j.js → ButtonTooltip-CNKOQHYR.js} +7 -4
  29. package/dist/Calendar/index.d.ts +1 -1
  30. package/dist/Calendar/index.js +1 -1
  31. package/dist/{Calendar-B7vIowKq.js → Calendar-BAqzzQm2.js} +5 -5
  32. package/dist/Card/index.d.ts +2 -2
  33. package/dist/Carousel/index.js +1 -1
  34. package/dist/{Carousel-CA8zpD9v.js → Carousel-DXC22UWq.js} +4 -4
  35. package/dist/Chat/index.d.ts +1 -1
  36. package/dist/Chat/index.js +1 -1
  37. package/dist/{Chat-Bmna9EOA.js → Chat-BdJW6IX5.js} +147 -83
  38. package/dist/CheckboxIndicator/index.js +1 -1
  39. package/dist/{CheckboxIndicator-D37cm2Rh.js → CheckboxIndicator-fH4d-JE1.js} +9 -3
  40. package/dist/CheckboxInput/index.d.ts +1 -1
  41. package/dist/CheckboxInput/index.js +1 -1
  42. package/dist/{CheckboxInput-BS9J6edf.js → CheckboxInput-DJHCbwgC.js} +19 -11
  43. package/dist/CheckboxList/index.d.ts +1 -1
  44. package/dist/CheckboxList/index.js +1 -1
  45. package/dist/{CheckboxList-CX1i_jVP.js → CheckboxList-BdZIP4_J.js} +155 -38
  46. package/dist/Citation/index.js +1 -1
  47. package/dist/{Citation-Djgwa0ko.js → Citation-DbZn2vms.js} +8 -3
  48. package/dist/ClickableCard/index.d.ts +1 -1
  49. package/dist/ClickableCard/index.js +1 -1
  50. package/dist/{ClickableCard-DUsC-j03.js → ClickableCard-ChAfiw9T.js} +9 -6
  51. package/dist/Code/index.js +3 -3
  52. package/dist/{Code-XnPuGxey.js → Code-Bg7GBdxy.js} +2 -1
  53. package/dist/{CodeBlock-D0BFubut.js → CodeBlock-Caaflp7C.js} +3 -3
  54. package/dist/Collapsible/index.d.ts +1 -1
  55. package/dist/Collapsible/index.js +1 -1
  56. package/dist/{Collapsible-Cov3Pyq5.js → Collapsible-Bdj0WYpb.js} +13 -11
  57. package/dist/CommandPalette/index.d.ts +1 -1
  58. package/dist/CommandPalette/index.js +1 -1
  59. package/dist/{CommandPalette-YHsUNg3V.js → CommandPalette-C_MClfAg.js} +143 -63
  60. package/dist/ComplexSelector/index.d.ts +1 -1
  61. package/dist/ComplexSelector/index.js +1 -1
  62. package/dist/{ComplexSelector-DWLdKPGI.js → ComplexSelector-BeVQaqRf.js} +85 -20
  63. package/dist/ContextMenu/index.d.ts +2 -2
  64. package/dist/ContextMenu/index.js +2 -2
  65. package/dist/{ContextMenu-Bq9b3Ti5.js → ContextMenu-C6hPYvYz.js} +297 -179
  66. package/dist/DateInput/index.d.ts +1 -1
  67. package/dist/DateInput/index.js +1 -1
  68. package/dist/{DateInput-DT518j5E.js → DateInput-BjLdmYor.js} +567 -76
  69. package/dist/DateRangeInput/index.d.ts +1 -1
  70. package/dist/DateRangeInput/index.js +1 -1
  71. package/dist/{DateRangeInput-Bqi5tlIA.js → DateRangeInput-Br3wVEfD.js} +85 -20
  72. package/dist/DateTimeInput/index.d.ts +1 -1
  73. package/dist/DateTimeInput/index.js +1 -1
  74. package/dist/DateTimeInput-CAZBwoRe.js +562 -0
  75. package/dist/Dialog/index.d.ts +1 -1
  76. package/dist/Dialog/index.js +2 -2
  77. package/dist/{Dialog-BiOSKQso.js → Dialog-Dce4Y97V.js} +28 -11
  78. package/dist/{Dialog-FGHfDu5M.js → Dialog-fhyxB00e.js} +32 -5
  79. package/dist/Divider/index.d.ts +1 -1
  80. package/dist/Divider/index.js +1 -1
  81. package/dist/{Divider-BtwnL18I.js → Divider-mOZ6vIQw.js} +5 -1
  82. package/dist/DropdownMenu/index.d.ts +2 -2
  83. package/dist/DropdownMenu/index.js +3 -3
  84. package/dist/{DropdownMenu-CoOQVlRp.js → DropdownMenu-BdGmQVb1.js} +85 -57
  85. package/dist/{DropdownMenu-DEb2dSSP.js → DropdownMenu-BzQrNV9C.js} +479 -264
  86. package/dist/{DropdownMenuRadioItem.vue-CXEURBcq.d.ts → DropdownMenuRadioItem.vue-Qd-8Rg4Q.d.ts} +236 -230
  87. package/dist/EmptyState/index.js +1 -1
  88. package/dist/{EmptyState-C_GH7IV5.js → EmptyState-CmOQf2SH.js} +2 -2
  89. package/dist/Field/index.d.ts +4 -3
  90. package/dist/Field/index.js +4 -3
  91. package/dist/{Field-D5gUEGw4.js → Field--OEsLBfE.js} +4 -3
  92. package/dist/{FieldInfoTip-Ds-sW_jY.js → FieldInfoTip-gxsnfkZw.js} +3 -3
  93. package/dist/{FieldLabel-BNeXRuGH.js → FieldLabel-jxIiWgLw.js} +12 -7
  94. package/dist/FieldStatus/index.d.ts +1 -1
  95. package/dist/FileInput/index.d.ts +1 -1
  96. package/dist/FileInput/index.js +1 -1
  97. package/dist/{FileInput-BpdiO1V8.js → FileInput-B_pUxB0Y.js} +106 -29
  98. package/dist/FormLayout/index.d.ts +1 -1
  99. package/dist/FormLayout/index.js +1 -1
  100. package/dist/{FormLayout-D47FjiOq.js → FormLayout-B9dUB6Ps.js} +1 -1
  101. package/dist/Heading/index.d.ts +1 -1
  102. package/dist/Heading/index.js +1 -1
  103. package/dist/{Heading-BnwWEWkp.js → Heading-BzBunfN7.js} +1 -1
  104. package/dist/HoverCard/index.js +1 -1
  105. package/dist/{HoverCard-ycY50pRN.js → HoverCard-BpJhT0sn.js} +35 -22
  106. package/dist/Icon/index.d.ts +4 -4
  107. package/dist/Icon/index.js +1 -1
  108. package/dist/{Icon-bteSId7T.js → Icon-KDnUyY7f.js} +12 -20
  109. package/dist/IconButton/index.js +1 -1
  110. package/dist/{IconButton-DDNgNl7B.js → IconButton-DI-XBbtV.js} +1 -1
  111. package/dist/Indicator/index.d.ts +2 -2
  112. package/dist/Indicator/index.js +2 -1
  113. package/dist/InputClearButton-CwXPan8c.js +40 -0
  114. package/dist/InputGroup/index.d.ts +1 -1
  115. package/dist/InputGroup/index.js +2 -2
  116. package/dist/{InputGroup-CA03Smrs.js → InputGroup-DiiocoIW.js} +2 -2
  117. package/dist/InternationalizationProvider/index.d.ts +1 -1
  118. package/dist/InternationalizationProvider/index.js +1 -1
  119. package/dist/{InternationalizationProvider-DJay_w3B.js → InternationalizationProvider-kBapgKAQ.js} +5 -9
  120. package/dist/{Item-KhFKX9St.js → Item-DWMIjN8n.js} +34 -9
  121. package/dist/Kbd/index.js +1 -1
  122. package/dist/{Kbd-BB-Dw6zE.js → Kbd-CV3LO2Ge.js} +18 -2
  123. package/dist/LayerContentBoundary-CvsKxwwm.js +27 -0
  124. package/dist/LayerProvider/index.js +1 -1
  125. package/dist/{LayerProvider-D9NsQFzL.js → LayerProvider-B6zpMBWC.js} +15 -3
  126. package/dist/Layout/index.d.ts +1 -1
  127. package/dist/Layout/index.js +2 -2
  128. package/dist/{Layout-C6RHllr-.js → Layout-JJRCG7Mf.js} +1 -1
  129. package/dist/{LayoutPanel-DXOsaeQb.js → LayoutPanel-zM5vjrKS.js} +12 -8
  130. package/dist/Lightbox/index.js +1 -1
  131. package/dist/{Lightbox-DTF9EdTG.js → Lightbox-D8wyPgMK.js} +8 -6
  132. package/dist/Link/index.js +1 -1
  133. package/dist/{Link-BqHCtiyt.js → Link-DweIpOtN.js} +29 -12
  134. package/dist/List/index.d.ts +1 -1
  135. package/dist/List/index.js +2 -2
  136. package/dist/{ListItem-8RWT8XAG.js → ListItem-BQXMu1Tb.js} +1 -1
  137. package/dist/Markdown/index.d.ts +5 -2
  138. package/dist/Markdown/index.js +5 -2
  139. package/dist/Markdown/parser/index.d.ts +4 -0
  140. package/dist/Markdown/parser/index.js +3 -0
  141. package/dist/Markdown/plugin-protocol/index.d.ts +35 -0
  142. package/dist/Markdown/plugin-protocol/index.js +107 -0
  143. package/dist/Markdown/plugin-renderer/index.d.ts +31 -0
  144. package/dist/Markdown/plugin-renderer/index.js +42 -0
  145. package/dist/{Markdown-CvtN7HnF.js → Markdown-DhVfOvXk.js} +195 -484
  146. package/dist/MediaTheme-DlLqYhDy.js +433 -0
  147. package/dist/MetadataList/index.js +1 -1
  148. package/dist/{MetadataList-B-OelQlt.js → MetadataList-CEYceIlN.js} +15 -7
  149. package/dist/MobileNav/index.js +1 -1
  150. package/dist/{MobileNavToggle-DxGz0xKA.js → MobileNavToggle-pdoJFZHx.js} +52 -17
  151. package/dist/MoreMenu/index.d.ts +1 -1
  152. package/dist/MoreMenu/index.js +1 -1
  153. package/dist/{MoreMenu-Dlb7MLlW.js → MoreMenu-CFNqSRev.js} +72 -59
  154. package/dist/MultiSelector/index.d.ts +1 -1
  155. package/dist/MultiSelector/index.js +1 -1
  156. package/dist/MultiSelector-DuVatmq5.js +1456 -0
  157. package/dist/{NavDisclosure-C_fugrQ3.js → NavDisclosure-Bq9DTZLO.js} +29 -7
  158. package/dist/{NavHeadingSurface-B3yJspSN.js → NavHeadingSurface-C4v_MtkX.js} +29 -26
  159. package/dist/NavItem/index.d.ts +1 -1
  160. package/dist/NavItem/index.js +2 -2
  161. package/dist/{NavItem-BBIGSvDj.js → NavItem-BPb3yfgz.js} +17 -4
  162. package/dist/NavMenu/index.d.ts +1 -1
  163. package/dist/NavMenu/index.js +3 -3
  164. package/dist/{NavMenu-ThXguZAz.js → NavMenu-BYIDzjix.js} +42 -15
  165. package/dist/{NavMenuItem-BvJNsDFC.js → NavMenuItem-D3FO90GR.js} +14 -12
  166. package/dist/NumberInput/index.d.ts +1 -1
  167. package/dist/NumberInput/index.js +1 -1
  168. package/dist/NumberInput-B0vzOg3N.js +727 -0
  169. package/dist/Outline/index.d.ts +2 -2
  170. package/dist/Outline/index.js +2 -2
  171. package/dist/{Outline-755h-lMP.js → Outline-CfGv2F1o.js} +91 -6
  172. package/dist/OverflowList/index.d.ts +2 -2
  173. package/dist/OverflowList/index.js +1 -1
  174. package/dist/{OverflowList-NmrSMbxb.js → OverflowList-BgRLZ3dh.js} +23 -6
  175. package/dist/Pagination/index.d.ts +1 -1
  176. package/dist/Pagination/index.js +1 -1
  177. package/dist/{Pagination-DqwNQFRp.js → Pagination-Bfe12018.js} +2 -2
  178. package/dist/PickerWheel-CSwUYfes.js +69 -0
  179. package/dist/Popover/index.d.ts +1 -1
  180. package/dist/Popover/index.js +1 -1
  181. package/dist/{Popover-DJf8POzL.js → Popover-78dFjTb9.js} +20 -15
  182. package/dist/PowerSearch/index.d.ts +1 -1
  183. package/dist/PowerSearch/index.js +1 -1
  184. package/dist/{PowerSearch-DvjiPqMZ.js → PowerSearch-BoAMdFaT.js} +774 -586
  185. package/dist/ProgressBar/index.d.ts +1 -1
  186. package/dist/ProgressBar/index.js +1 -1
  187. package/dist/{ProgressBar-CVLzdoBK.js → ProgressBar-VP4JS7vm.js} +10 -7
  188. package/dist/Radio/index.d.ts +1 -1
  189. package/dist/Radio/index.js +1 -1
  190. package/dist/{RadioGroup-Bfu6JSNV.js → RadioGroup-BIipql-L.js} +94 -26
  191. package/dist/RadioList/index.d.ts +1 -1
  192. package/dist/RadioList/index.js +1 -1
  193. package/dist/{RadioList-xY1cwLdZ.js → RadioList-GyhgBg4j.js} +57 -8
  194. package/dist/Resizable/index.d.ts +1 -1
  195. package/dist/Resizable/index.js +1 -1
  196. package/dist/{ResizeHandle-q4nD_586.js → ResizeHandle-TPlUCAHD.js} +103 -50
  197. package/dist/ScrollableArea/index.d.ts +1 -1
  198. package/dist/ScrollableArea/index.js +1 -1
  199. package/dist/{ScrollableArea-D4dCJv9I.js → ScrollableArea-0u6RWtGG.js} +1 -1
  200. package/dist/SegmentedControl/index.d.ts +1 -1
  201. package/dist/SegmentedControl/index.js +1 -1
  202. package/dist/{SegmentedControl-ChHmFrrC.js → SegmentedControl-D1wWGBZo.js} +11 -5
  203. package/dist/SelectableCard/index.d.ts +1 -1
  204. package/dist/SelectableCard/index.js +1 -1
  205. package/dist/{SelectableCard-Cku4dRzc.js → SelectableCard-BEqnhPaX.js} +16 -11
  206. package/dist/Selector/index.d.ts +1 -1
  207. package/dist/Selector/index.js +1 -1
  208. package/dist/Selector-CPISLzp7.js +1049 -0
  209. package/dist/SideNav/index.d.ts +1 -1
  210. package/dist/SideNav/index.js +1 -1
  211. package/dist/{SideNav-BF8mYDxl.js → SideNav-CN2QeAtY.js} +51 -37
  212. package/dist/Slider/index.d.ts +1 -1
  213. package/dist/Slider/index.js +1 -1
  214. package/dist/{Slider-DWobsPgm.js → Slider-pdC0jpHu.js} +172 -46
  215. package/dist/Spinner/index.js +1 -1
  216. package/dist/Spinner-DdVUadii.js +200 -0
  217. package/dist/Stack/index.d.ts +1 -1
  218. package/dist/Stack/index.js +2 -2
  219. package/dist/{Stack-CTsTFfar.js → Stack-Bb_h60t3.js} +1 -1
  220. package/dist/{Stack-kQlYbbL4.js → Stack-Bp-XN9J4.js} +12 -7
  221. package/dist/StatusDot/index.d.ts +1 -1
  222. package/dist/StatusDot/index.js +1 -1
  223. package/dist/{StatusDot-BPUhMOff.js → StatusDot-BS_ohXhd.js} +8 -4
  224. package/dist/Stepper/index.js +1 -1
  225. package/dist/{Stepper-CE8dHysu.js → Stepper-CyaSRSdu.js} +101 -79
  226. package/dist/Switch/index.d.ts +1 -1
  227. package/dist/Switch/index.js +1 -1
  228. package/dist/{Switch-DaVPRxvN.js → Switch-Z2Vfiiic.js} +38 -22
  229. package/dist/TabList/index.d.ts +2 -2
  230. package/dist/TabList/index.js +1 -1
  231. package/dist/{TabList-DIkK9sgK.js → TabList-DRqP0Hrv.js} +205 -63
  232. package/dist/Table/index.d.ts +3 -3
  233. package/dist/Table/index.js +1 -1
  234. package/dist/{Table-fecqnm7P.js → Table-BcrrylMX.js} +726 -452
  235. package/dist/Text/index.d.ts +1 -1
  236. package/dist/Text/index.js +1 -1
  237. package/dist/{Text-CV3LmscH.js → Text-CmTOgYXf.js} +1 -1
  238. package/dist/TextArea/index.d.ts +1 -1
  239. package/dist/TextArea/index.js +1 -1
  240. package/dist/{TextArea-Ab5Sw60T.js → TextArea-DA9CCG_J.js} +104 -50
  241. package/dist/TextInput/index.d.ts +1 -1
  242. package/dist/TextInput/index.js +1 -1
  243. package/dist/{TextInput-zFT1_qgI.js → TextInput-CI96einV.js} +71 -38
  244. package/dist/Theme/index.d.ts +3 -3
  245. package/dist/Theme/index.js +3 -2
  246. package/dist/Theme-BbDT8B_C.js +2125 -0
  247. package/dist/Thumbnail/index.js +1 -1
  248. package/dist/{Thumbnail-C3NnJUFG.js → Thumbnail-B2ZAY59J.js} +13 -10
  249. package/dist/{TimeField-CoHDGmsP.js → TimeField-CpAgja9D.js} +297 -40
  250. package/dist/TimeInput/index.d.ts +1 -1
  251. package/dist/TimeInput/index.js +1 -1
  252. package/dist/{TimeInput-D2k3Ux3p.js → TimeInput-Bw_lHS4M.js} +78 -9
  253. package/dist/Timer/index.d.ts +1 -1
  254. package/dist/Timer/index.js +1 -1
  255. package/dist/{Timer-avMQk5DN.js → Timer-CH7GsEVu.js} +1 -1
  256. package/dist/Timestamp/index.d.ts +1 -1
  257. package/dist/Timestamp/index.js +1 -1
  258. package/dist/{Timestamp-xpQKCk0d.js → Timestamp-BFNuoTZ0.js} +5 -5
  259. package/dist/Toast/index.d.ts +1 -1
  260. package/dist/Toast/index.js +1 -1
  261. package/dist/Toast-DwnPjx6j.js +685 -0
  262. package/dist/ToggleButton/index.d.ts +1 -1
  263. package/dist/ToggleButton/index.js +1 -1
  264. package/dist/{ToggleButton-B-C-Q7XP.js → ToggleButton-cLjh9W-x.js} +5 -4
  265. package/dist/Token/index.d.ts +1 -1
  266. package/dist/Token/index.js +1 -1
  267. package/dist/{Token-DsntTYhQ.js → Token-BfS4vi__.js} +32 -17
  268. package/dist/Tokenizer/index.d.ts +1 -1
  269. package/dist/Tokenizer/index.js +1 -1
  270. package/dist/{Tokenizer-B5C_qY7t.js → Tokenizer-Ci3E5bvP.js} +107 -23
  271. package/dist/Toolbar/index.d.ts +2 -2
  272. package/dist/Toolbar/index.js +1 -1
  273. package/dist/{Toolbar-BrgvvTCk.js → Toolbar-C0pMWL4S.js} +1 -1
  274. package/dist/Tooltip/index.d.ts +1 -1
  275. package/dist/Tooltip/index.js +1 -1
  276. package/dist/{Tooltip-C4Vaqd3G.js → Tooltip-sAM8i1eO.js} +23 -19
  277. package/dist/TopNav/index.d.ts +1 -1
  278. package/dist/TopNav/index.js +1 -1
  279. package/dist/{TopNav-Ciq0l1w7.js → TopNav-gW59zp1o.js} +16 -15
  280. package/dist/TreeList/index.d.ts +1 -1
  281. package/dist/TreeList/index.js +1 -1
  282. package/dist/{TreeList-BUz-KZJd.js → TreeList-DaoI7zaH.js} +124 -41
  283. package/dist/Typeahead/index.d.ts +1 -1
  284. package/dist/Typeahead/index.js +2 -2
  285. package/dist/{Typeahead-JP9RT87x.js → Typeahead-D4JjvjK4.js} +123 -26
  286. package/dist/{TypeaheadMenu-DBW6rHeO.js → TypeaheadMenu-BQlMrfqX.js} +141 -51
  287. package/dist/{announce-Cnio10Wk.js → announce-B210eJVf.js} +17 -2
  288. package/dist/characterReferences-BJ-jLhsR.js +65 -0
  289. package/dist/characters-rcDbGt71.d.ts +29 -0
  290. package/dist/characters-wTnzjkkR.js +58 -0
  291. package/dist/{colorMode-CBgdgDSn.js → colorMode-BxqfDP4P.js} +1 -4
  292. package/dist/composables/index.d.ts +5 -4
  293. package/dist/composables/index.js +23 -18
  294. package/dist/{composables-CbKx9C1Y.js → composables-Bc02zKAO.js} +167 -197
  295. package/dist/context-B6UElI5X.js +5 -0
  296. package/dist/{context-Cfjh8te1.js → context-Cfml4jaK.js} +5 -3
  297. package/dist/{context-iABt_ueM.js → context-DWfi56sq.js} +451 -122
  298. package/dist/context-IvbU9c3T.js +8 -0
  299. package/dist/context-pjBxaMSh.js +28 -0
  300. package/dist/fieldParts--SyRZVQG.js +44 -0
  301. package/dist/fieldParts-LXpQMKE8.d.ts +27 -0
  302. package/dist/{focus-CpficIgf.js → focus-l8jVTcqd.js} +1 -1
  303. package/dist/hoverIntent-DMHGb85c.js +115 -0
  304. package/dist/{index-Cde5JvtX.d.ts → index-B-nESNam.d.ts} +8 -7
  305. package/dist/{index-CsNi1I8j.d.ts → index-B08-Uxhv.d.ts} +4 -2
  306. package/dist/{index-Cn-sSds-.d.ts → index-B56j4eI2.d.ts} +24 -1
  307. package/dist/{index-BkjSF265.d.ts → index-BEZ4ezJk.d.ts} +3 -3
  308. package/dist/{index-DeQwYJbg.d.ts → index-BNaRK-s5.d.ts} +10 -1
  309. package/dist/{index-0QGtSf3r.d.ts → index-BO9TY87G.d.ts} +3 -2
  310. package/dist/{index-IBAInumL.d.ts → index-BQEJj72c.d.ts} +23 -10
  311. package/dist/{index-D97pQbua.d.ts → index-BV2D2x_u.d.ts} +1 -1
  312. package/dist/{index-Crp3NFLW.d.ts → index-BZKgbyN9.d.ts} +1 -1
  313. package/dist/index-BkUkm6Al.d.ts +11 -0
  314. package/dist/{index-ClNU2Th8.d.ts → index-Bn-v89Vt.d.ts} +10 -6
  315. package/dist/{index-Bu8NA2SD.d.ts → index-BnEhvmdR.d.ts} +16 -7
  316. package/dist/index-Bo-ofFyg.d.ts +166 -0
  317. package/dist/{index-i0tNFWfz.d.ts → index-BqhgeAT4.d.ts} +2 -0
  318. package/dist/{index-DWh2WC8W.d.ts → index-C4Cjz6OK.d.ts} +2 -2
  319. package/dist/{index-B7yhzGUT.d.ts → index-C7sam-SB.d.ts} +2 -2
  320. package/dist/{index-BrJzFA5X.d.ts → index-C90l2rH1.d.ts} +1 -1
  321. package/dist/{index-vP0EtrJJ.d.ts → index-C9gAlDt_.d.ts} +6 -3
  322. package/dist/{index-xrzJC4wm.d.ts → index-CJ6ajsUC.d.ts} +1 -1
  323. package/dist/{index-B9e52paP.d.ts → index-CK-Dbh0f.d.ts} +1 -1
  324. package/dist/index-CKUfpmFL.d.ts +375 -0
  325. package/dist/{index-DXpSFlPG.d.ts → index-CKgBTAzC.d.ts} +4 -4
  326. package/dist/{index-gW0HW02U.d.ts → index-COxy6LEW.d.ts} +1 -1
  327. package/dist/{index-B4OOtNP8.d.ts → index-CPtDjmcX.d.ts} +3 -3
  328. package/dist/{index-12QYAbiz.d.ts → index-CRrSHbok.d.ts} +3 -2
  329. package/dist/{index-DG52Bg0W.d.ts → index-CTf3SK0b.d.ts} +6 -0
  330. package/dist/{index-BVKivP59.d.ts → index-CTjkJP4x.d.ts} +32 -3
  331. package/dist/{index-COgrQZIL.d.ts → index-CdvmnNMH.d.ts} +1 -1
  332. package/dist/{index-GI9xIV9l.d.ts → index-CikMzeab.d.ts} +2 -2
  333. package/dist/{index-DUaLJO7l.d.ts → index-CpNlPLBF.d.ts} +172 -126
  334. package/dist/{index-yT1yiiww.d.ts → index-Cs1xsHKi.d.ts} +24 -12
  335. package/dist/{index-Cyb9Du5Z.d.ts → index-CtTGt6Dv.d.ts} +1 -1
  336. package/dist/{index-Byar3h1e.d.ts → index-D05JGsT3.d.ts} +6 -3
  337. package/dist/{index-B3Fomy15.d.ts → index-D0_HsuC3.d.ts} +3 -3
  338. package/dist/{index-BgT6mH3U.d.ts → index-D7ShT2c-.d.ts} +1 -1
  339. package/dist/{index-CkKPMIeX.d.ts → index-D7XRtUTY.d.ts} +9 -0
  340. package/dist/{index-TntQsADQ.d.ts → index-DEm3kRBO.d.ts} +4 -3
  341. package/dist/{index-C2nbK2AA.d.ts → index-DLAG3m9W.d.ts} +13 -3
  342. package/dist/{index-DVmgNb78.d.ts → index-DRJZ-v1E.d.ts} +4 -4
  343. package/dist/{index-CL1T2j4y.d.ts → index-DY8Wph-A.d.ts} +3 -3
  344. package/dist/{index-B1WJxt-n.d.ts → index-DfC05uKG.d.ts} +17 -7
  345. package/dist/{index-C5e-7Obr.d.ts → index-Dj1_1t3j.d.ts} +19 -6
  346. package/dist/{index-D41_xqjs.d.ts → index-Dr4b_oji.d.ts} +20 -13
  347. package/dist/{index-CqE4Bf3Q.d.ts → index-Ds201-d2.d.ts} +16 -2
  348. package/dist/{index-DIXAzTKL.d.ts → index-DxxudRgB.d.ts} +1 -1
  349. package/dist/{index-B42oE_F-.d.ts → index-IfsSCj8J.d.ts} +18 -5
  350. package/dist/{index-XuAAcYiP.d.ts → index-f3d9cVtj.d.ts} +1 -1
  351. package/dist/{index-T2FOcOuI.d.ts → index-jOwU3YoR.d.ts} +400 -90
  352. package/dist/{index-CICeEoZV.d.ts → index-pNtfr-RW.d.ts} +1 -1
  353. package/dist/{index-BhpAUzUr.d.ts → index-unAZVFGz.d.ts} +2 -2
  354. package/dist/index.d.ts +80 -74
  355. package/dist/index.js +149 -134
  356. package/dist/inlineSize-BNe8wggI.js +66 -0
  357. package/dist/inputPresentation-BOyHkCDr.js +62 -0
  358. package/dist/interactionModality-ACpTMhak.js +44 -0
  359. package/dist/isApplePlatform-B1ju6F5B.js +27 -0
  360. package/dist/isRenderable-BnKHIqfd.js +21 -0
  361. package/dist/layerDepth-CNDh-IHb.js +181 -0
  362. package/dist/link-DuuA2eCL.js +30 -0
  363. package/dist/{loadCatalog-BGHKG_9N.d.ts → loadCatalog-DlLFZreI.d.ts} +281 -7
  364. package/dist/loadCatalog-eopw74qb.js +424 -0
  365. package/dist/locale/index.d.ts +2 -2
  366. package/dist/locale/index.js +4 -3
  367. package/dist/locale-CabGJlGp.js +343 -0
  368. package/dist/modalOutlet-CUOcrhIu.js +56 -0
  369. package/dist/optionAction-Cg7xQLUA.d.ts +6 -0
  370. package/dist/{power-search-DrDfcoL1.d.ts → power-search-gHLIYXs5.d.ts} +2 -0
  371. package/dist/protocol-DHxY0NI8.js +113 -0
  372. package/dist/protocol-RSeMzAN1.d.ts +238 -0
  373. package/dist/publicParser-B0MRoikr.d.ts +141 -0
  374. package/dist/publicParser-uHC_T0Fo.js +895 -0
  375. package/dist/resizableChannel-3vivrEcT.js +20 -0
  376. package/dist/safeUrl-CsvfcZ9m.js +54 -0
  377. package/dist/scopedProvide-C-Df7c15.js +30 -0
  378. package/dist/scrollKeyboardDelegation-D7cumnOl.js +238 -0
  379. package/dist/scrollLock-C3aT4-0z.js +102 -0
  380. package/dist/{searchResultMessage-hXXNOFJP.js → searchResultMessage-mCpJBvra.js} +5 -14
  381. package/dist/{semantic-CKH9XVqa.d.ts → semantic-BF_AjLvk.d.ts} +6 -3
  382. package/dist/slug-C65CUsf9.js +32 -0
  383. package/dist/syntaxContext-DmIfNNtb.js +4 -0
  384. package/dist/triggerVariant-BsL8jMHs.js +16 -0
  385. package/dist/{types-0Q_SJv_F.d.ts → types-Bb7OGivY.d.ts} +6 -1
  386. package/dist/{types-CwyibrRB.d.ts → types-C5GQ2KCK.d.ts} +23 -3
  387. package/dist/{types-gKsEkk2g.d.ts → types-CsqwQkf1.d.ts} +143 -10
  388. package/dist/upstreamMap-xr3gvREu.js +731 -0
  389. package/dist/{useAnchoredListbox-DwztMNjP.js → useAnchoredListbox-DGxxKHZb.js} +2 -2
  390. package/dist/{useAsyncSource-xpQovjV_.d.ts → useAsyncSource-aGzrvRkI.d.ts} +3 -0
  391. package/dist/{useClickableContainer-DyNpnSEa.js → useClickableContainer-CdGp_Cev.js} +1 -1
  392. package/dist/{useClipboard-BDfbEsWd.js → useClipboard-Dk8cS810.js} +1 -1
  393. package/dist/useHoverLayerDismiss-kYJ_NqL4.js +27 -0
  394. package/dist/{useIndicator-i1NORM7W.js → useIndicator-MZmfBWid.js} +5 -23
  395. package/dist/{useInputContainer-CpgDe2-4.js → useInputContainer-CLcYrby4.js} +1 -1
  396. package/dist/{useInputStatusIcon-DBOwxV4x.js → useInputStatusIcon-DAE7PExr.js} +1 -1
  397. package/dist/useLayerMountTarget-BmZyeKWE.js +156 -0
  398. package/dist/{useListFocus-D0iOJl39.js → useListFocus-ChxLg0b4.js} +3 -2
  399. package/dist/{useMenuDrillIn-DzKGkTho.js → useMenuDrillIn-DhUnPvKs.js} +6 -5
  400. package/dist/useMenuHover-Djreu23i.js +170 -0
  401. package/dist/useMenuPress-8foxY8z4.js +764 -0
  402. package/dist/{useMergedRefs-CfHHlCsn.js → useMergedRefs-Cb6_w93m.js} +24 -4
  403. package/dist/{useNumberField-4-dIGVed.js → useNumberField-Dk1BE3-K.js} +3 -3
  404. package/dist/useOptionActionGrid-CkJcuvaU.js +97 -0
  405. package/dist/{usePositionedLayer-Cru9_00b.js → usePositionedLayer-B7cvG-_v.js} +43 -49
  406. package/dist/usePressFeedback-BJCpjEpv.js +319 -0
  407. package/dist/{useResizable-DDwPpPe6.d.ts → useResizable-1MHPNaRD.d.ts} +19 -1
  408. package/dist/{useResizable-B3ahKLoZ.js → useResizable-I3BCiLSL.js} +72 -40
  409. package/dist/useResolvedLabelHidden-B2rlWiaI.js +30 -0
  410. package/dist/{useRestoreFocus-Djw9RUIf.js → useRestoreFocus-XEKs5-gp.js} +49 -7
  411. package/dist/useScrollOverflow-DuMoGXmm.js +67 -0
  412. package/dist/useScrollableArea-BE8b3qm7.js +222 -0
  413. package/dist/{useTimeValue-6ufHM15W.js → useTimeValue-BJd0xBhG.js} +4 -22
  414. package/dist/useTranslator-BmWt2BBt.js +35 -0
  415. package/dist/{useTypeahead-PAK8lMYz.js → useTypeahead-BvtflkRk.js} +4 -5
  416. package/dist/utils/index.d.ts +3 -0
  417. package/dist/utils/index.js +5 -0
  418. package/dist/{utils-D33VQDnk.js → utils-ClVseK2w.js} +29 -2
  419. package/dist/utils-z3Q6BGIJ.js +819 -0
  420. package/locales/SOURCE.json +1 -1
  421. package/package.json +18 -2
  422. package/reset.css +364 -1
  423. package/styles/avatar-group.css +9 -1
  424. package/styles/badge.css +8 -5
  425. package/styles/banner.css +124 -26
  426. package/styles/blockquote.css +1 -0
  427. package/styles/bordered-control.css +1 -1
  428. package/styles/bottom-sheet.css +74 -6
  429. package/styles/breadcrumbs.css +16 -2
  430. package/styles/button-group.css +3 -1
  431. package/styles/button.css +53 -11
  432. package/styles/card.css +1 -1
  433. package/styles/chat.css +16 -6
  434. package/styles/checkbox-input.css +10 -0
  435. package/styles/clickable-card.css +10 -3
  436. package/styles/collapsible.css +12 -5
  437. package/styles/command-palette.css +29 -14
  438. package/styles/complex-selector.css +22 -5
  439. package/styles/context-menu.css +3 -3
  440. package/styles/date-input.css +111 -1
  441. package/styles/dialog-header.css +4 -1
  442. package/styles/dialog.css +7 -0
  443. package/styles/dropdown-menu.css +12 -3
  444. package/styles/field.css +5 -0
  445. package/styles/form-layout.css +1 -0
  446. package/styles/heading.css +18 -8
  447. package/styles/icon.css +4 -0
  448. package/styles/kbd.css +1 -1
  449. package/styles/layer.css +72 -0
  450. package/styles/list.css +9 -2
  451. package/styles/metadata-list.css +1 -0
  452. package/styles/mobile-nav.css +4 -1
  453. package/styles/multi-selector.css +48 -1
  454. package/styles/nav-item.css +9 -2
  455. package/styles/nav-menu.css +12 -2
  456. package/styles/number-input.css +9 -1
  457. package/styles/overflow-list.css +1 -1
  458. package/styles/popover.css +2 -1
  459. package/styles/power-search.css +5 -3
  460. package/styles/pressable.css +63 -22
  461. package/styles/progress-bar.css +15 -3
  462. package/styles/radio.css +16 -0
  463. package/styles/resize-handle.css +42 -0
  464. package/styles/segmented-control.css +12 -4
  465. package/styles/selector.css +53 -1
  466. package/styles/side-nav.css +19 -0
  467. package/styles/slider.css +4 -3
  468. package/styles/spinner.css +48 -42
  469. package/styles/stepper.css +58 -4
  470. package/styles/switch.css +26 -0
  471. package/styles/tab-list.css +132 -3
  472. package/styles/table.css +88 -10
  473. package/styles/text-area.css +1 -1
  474. package/styles/text-input.css +1 -1
  475. package/styles/text.css +6 -6
  476. package/styles/thumbnail.css +11 -3
  477. package/styles/time-input.css +8 -0
  478. package/styles/toast.css +37 -3
  479. package/styles/token.css +2 -2
  480. package/styles/tokenizer.css +1 -1
  481. package/styles/toolbar.css +4 -1
  482. package/styles/tree-list.css +1 -1
  483. package/styles/typeahead.css +34 -1
  484. package/styles.css +1 -0
  485. package/dist/Blockquote-DFqBv_oJ.js +0 -18
  486. package/dist/Breadcrumbs-DIm4figq.js +0 -141
  487. package/dist/ButtonGroup-ySQWanDP.js +0 -125
  488. package/dist/DateTimeInput-A7m2O3bg.js +0 -268
  489. package/dist/MultiSelector-BtAUfQ3t.js +0 -990
  490. package/dist/NumberInput-AZ9x3oja.js +0 -473
  491. package/dist/Selector-DJ2BhUTV.js +0 -677
  492. package/dist/Spinner-9cYUCnDy.js +0 -84
  493. package/dist/Theme-CtaUWo4g.js +0 -1246
  494. package/dist/Toast-BuqIZV5z.js +0 -322
  495. package/dist/context-4PuqD1Ic.js +0 -4
  496. package/dist/context-D5-MwxnN.js +0 -4
  497. package/dist/index-BH9PzQ1F.d.ts +0 -87
  498. package/dist/link-C4_WogdF.js +0 -18
  499. package/dist/loadCatalog-CXKqEB9s.js +0 -877
  500. package/dist/locale-DgkZEMTn.js +0 -105
  501. package/dist/platform-B_9W_aHW.js +0 -33
  502. package/dist/scrollLock-BzIvIimL.js +0 -42
  503. package/dist/useMenuPress-D-FRNrBW.js +0 -573
  504. package/dist/useScrollableArea-DDk_CluT.js +0 -172
  505. /package/dist/{index-lgvUFSCO.d.ts → index-CryFtTT6.d.ts} +0 -0
@@ -1,8 +1,10 @@
1
- import { n as useDismiss, t as usePositionedLayer } from "./usePositionedLayer-Cru9_00b.js";
1
+ import { t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
2
+ import { n as useDismiss, t as usePositionedLayer } from "./usePositionedLayer-B7cvG-_v.js";
2
3
  import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeModels, nextTick, normalizeClass, normalizeStyle, openBlock, provide, ref, renderSlot, unref, useId, useModel, watch } from "vue";
4
+ import "../styles/layer.css";
3
5
  import "../styles/nav-menu.css";
4
6
  //#region src/NavMenu/context.ts
5
- const navMenuKey = Symbol("astryx-nav-menu");
7
+ const navMenuKey = defineLayerScopedKey("astryx-nav-menu", null);
6
8
  const navMenuCloseKey = Symbol("astryx-nav-menu-close");
7
9
  /** 弹出层要求菜单把焦点放在哪一项。菜单可以自己收,调用方也可以用插槽参数盖过它。 */
8
10
  const navMenuFocusKey = Symbol("astryx-nav-menu-focus");
@@ -41,6 +43,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
41
43
  const panelId = `astryx-nav-panel-${useId()}`;
42
44
  let showTimer;
43
45
  let hideTimer;
46
+ let hoverOpenedAt = 0;
47
+ let closedAt = 0;
44
48
  const placement = computed(() => props.placement);
45
49
  const alignment = computed(() => props.alignment);
46
50
  const dismissEnabled = computed(() => isOpen.value);
@@ -67,6 +71,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
67
71
  }
68
72
  function close(restoreFocus = false) {
69
73
  clearTimers();
74
+ hoverOpenedAt = 0;
75
+ closedAt = Date.now();
70
76
  const shouldRestore = restoreFocus || (surfaceRef.value?.contains(document.activeElement) ?? false);
71
77
  focusRequest.value = null;
72
78
  if (!isOpen.value) return;
@@ -81,11 +87,23 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
81
87
  function onTriggerClick(event) {
82
88
  const target = event.target;
83
89
  if (target instanceof Element && target.closest("a")) return;
84
- if (isOpen.value) {
85
- close(event.detail === 0);
90
+ clearTimers();
91
+ if (event.detail === 0) {
92
+ hoverOpenedAt = 0;
93
+ if (isOpen.value) close(true);
94
+ else open("first");
95
+ return;
96
+ }
97
+ if (!isOpen.value) {
98
+ hoverOpenedAt = 0;
99
+ open(null);
100
+ return;
101
+ }
102
+ if (hoverOpenedAt > 0 && Date.now() - hoverOpenedAt < 500) {
103
+ hoverOpenedAt = 0;
86
104
  return;
87
105
  }
88
- open(event.detail === 0 ? "first" : null);
106
+ close(false);
89
107
  }
90
108
  function onTriggerKeydown(event) {
91
109
  if (event.target instanceof Element && event.target.closest("a, input, textarea, select")) return;
@@ -105,11 +123,15 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
105
123
  }
106
124
  function onPointerEnter() {
107
125
  if (!props.hover) return;
126
+ if (closedAt > 0 && Date.now() - closedAt < 300) return;
108
127
  clearTimeout(hideTimer);
109
128
  hideTimer = void 0;
110
129
  if (isOpen.value) return;
111
130
  clearTimeout(showTimer);
112
- showTimer = setTimeout(open, props.showDelay, null);
131
+ showTimer = setTimeout(() => {
132
+ hoverOpenedAt = Date.now();
133
+ open(null);
134
+ }, props.showDelay);
113
135
  }
114
136
  function onPointerLeave() {
115
137
  if (!props.hover) return;
@@ -150,7 +172,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
150
172
  id: panelId,
151
173
  ref_key: "surfaceRef",
152
174
  ref: surfaceRef,
153
- class: normalizeClass(["astryx-nav-disclosure__panel", __props.panelClass]),
175
+ class: normalizeClass(["astryx-nav-disclosure__panel astryx-layer", __props.panelClass]),
154
176
  style: normalizeStyle(panelStyle.value),
155
177
  "data-placement": unref(position).placement,
156
178
  onPointerenter: onPointerEnter,
@@ -1,8 +1,8 @@
1
1
  import { n as useLinkComponent } from "./context-C_peZbXf.js";
2
- import { o as useAstryxMessages } from "./context-iABt_ueM.js";
3
- import { t as _sfc_main$2 } from "./Icon-bteSId7T.js";
4
- import { n as resolveNavRoot } from "./link-C4_WogdF.js";
5
- import { t as _sfc_main$3 } from "./NavDisclosure-C_fugrQ3.js";
2
+ import { s as useAstryxMessages } from "./context-DWfi56sq.js";
3
+ import { t as _sfc_main$2 } from "./Icon-KDnUyY7f.js";
4
+ import { i as safeNavHref, n as isNavigableHref, r as resolveNavRoot } from "./link-DuuA2eCL.js";
5
+ import { t as _sfc_main$3 } from "./NavDisclosure-Bq9DTZLO.js";
6
6
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeClass, normalizeProps, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, unref, useSlots, withCtx, withModifiers } from "vue";
7
7
  //#region src/NavMenu/navHeadingMode.ts
8
8
  /** 标题的点击边界:整段链接、整段打开菜单,或链接和箭头各管各的。 */
@@ -37,13 +37,13 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
37
37
  /** 自己的 `as` 优先,其次是 LinkProvider 给的默认链接组件。 */
38
38
  const customLink = computed(() => props.as ?? linkComponent.value);
39
39
  function root(href) {
40
- return props.independent && href ? resolveNavRoot(href, false, customLink.value) : "span";
40
+ return props.independent && isNavigableHref(href) ? resolveNavRoot(href, false, customLink.value) : "span";
41
41
  }
42
42
  function hrefOf(href) {
43
- return props.independent ? href : void 0;
43
+ return props.independent && isNavigableHref(href) ? href : void 0;
44
44
  }
45
45
  function toOf(href) {
46
- return props.independent && customLink.value != null ? href : void 0;
46
+ return props.independent && isNavigableHref(href) && customLink.value != null ? href : void 0;
47
47
  }
48
48
  function stopIfLink(event, href) {
49
49
  if (props.independent && href) event.stopPropagation();
@@ -128,33 +128,36 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
128
128
  const customLink = computed(() => props.as ?? linkComponent.value);
129
129
  const block = computed(() => props.kind === "top" ? "astryx-top-nav-heading" : "astryx-side-nav-heading");
130
130
  const hasMenu = computed(() => slots.menu != null);
131
+ const safeHeadingHref = computed(() => safeNavHref(props.headingHref));
132
+ const safeSuperheadingHref = computed(() => safeNavHref(props.superheadingHref));
133
+ const safeSubheadingHref = computed(() => safeNavHref(props.subheadingHref));
131
134
  const mode = computed(() => resolveNavHeadingMode({
132
135
  hasHeading: Boolean(props.heading),
133
136
  hasMenu: hasMenu.value,
134
- headingHref: props.headingHref,
135
- superheadingHref: props.superheadingHref,
136
- subheadingHref: props.subheadingHref
137
+ headingHref: safeHeadingHref.value,
138
+ superheadingHref: safeSuperheadingHref.value,
139
+ subheadingHref: safeSubheadingHref.value
137
140
  }));
138
- const headingRoot = computed(() => resolveNavRoot(props.headingHref, false, customLink.value));
141
+ const headingRoot = computed(() => resolveNavRoot(safeHeadingHref.value, false, customLink.value));
139
142
  const logoName = computed(() => props.logoLabel || props.heading);
140
- const logoIsLink = computed(() => Boolean(props.headingHref) && mode.value !== "whole-link" && mode.value !== "logo");
143
+ const logoIsLink = computed(() => Boolean(safeHeadingHref.value) && mode.value !== "whole-link" && mode.value !== "logo");
141
144
  const textProps = computed(() => ({
142
145
  as: customLink.value,
143
146
  block: block.value,
144
147
  heading: props.heading,
145
- headingHref: props.headingHref,
148
+ headingHref: safeHeadingHref.value,
146
149
  subheading: props.subheading,
147
- subheadingHref: props.subheadingHref,
150
+ subheadingHref: safeSubheadingHref.value,
148
151
  superheading: props.superheading,
149
- superheadingHref: props.superheadingHref
152
+ superheadingHref: safeSuperheadingHref.value
150
153
  }));
151
154
  return (_ctx, _cache) => {
152
- return mode.value === "logo" ? (openBlock(), createBlock(resolveDynamicComponent(__props.headingHref ? headingRoot.value : "div"), {
155
+ return mode.value === "logo" ? (openBlock(), createBlock(resolveDynamicComponent(safeHeadingHref.value ? headingRoot.value : "div"), {
153
156
  key: 0,
154
- class: normalizeClass([block.value, { [`${block.value}--link`]: __props.headingHref }]),
155
- href: __props.headingHref,
156
- to: customLink.value != null ? __props.headingHref : void 0,
157
- "aria-label": __props.headingHref ? logoName.value : void 0
157
+ class: normalizeClass([block.value, { [`${block.value}--link`]: safeHeadingHref.value }]),
158
+ href: safeHeadingHref.value,
159
+ to: safeHeadingHref.value && customLink.value != null ? safeHeadingHref.value : void 0,
160
+ "aria-label": safeHeadingHref.value ? logoName.value : void 0
158
161
  }, {
159
162
  default: withCtx(() => [_ctx.$slots.icon ? (openBlock(), createElementBlock("span", {
160
163
  key: 0,
@@ -169,8 +172,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
169
172
  ])) : mode.value === "whole-link" ? (openBlock(), createBlock(resolveDynamicComponent(headingRoot.value), {
170
173
  key: 1,
171
174
  class: normalizeClass([block.value, `${block.value}--link`]),
172
- href: __props.headingHref,
173
- to: customLink.value != null ? __props.headingHref : void 0
175
+ href: safeHeadingHref.value,
176
+ to: safeHeadingHref.value && customLink.value != null ? safeHeadingHref.value : void 0
174
177
  }, {
175
178
  default: withCtx(() => [
176
179
  _ctx.$slots.icon ? (openBlock(), createElementBlock("span", {
@@ -201,8 +204,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
201
204
  logoIsLink.value && _ctx.$slots.icon ? (openBlock(), createBlock(resolveDynamicComponent(headingRoot.value), {
202
205
  key: 0,
203
206
  class: normalizeClass(`${block.value}__icon`),
204
- href: __props.headingHref,
205
- to: customLink.value != null ? __props.headingHref : void 0,
207
+ href: safeHeadingHref.value,
208
+ to: safeHeadingHref.value && customLink.value != null ? safeHeadingHref.value : void 0,
206
209
  "aria-label": logoName.value,
207
210
  onClick: _cache[0] || (_cache[0] = withModifiers(() => {}, ["stop"]))
208
211
  }, {
@@ -266,8 +269,8 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
266
269
  logoIsLink.value && _ctx.$slots.icon ? (openBlock(), createBlock(resolveDynamicComponent(headingRoot.value), {
267
270
  key: 0,
268
271
  class: normalizeClass(`${block.value}__icon`),
269
- href: __props.headingHref,
270
- to: customLink.value != null ? __props.headingHref : void 0,
272
+ href: safeHeadingHref.value,
273
+ to: safeHeadingHref.value && customLink.value != null ? safeHeadingHref.value : void 0,
271
274
  "aria-label": logoName.value
272
275
  }, {
273
276
  default: withCtx(() => [renderSlot(_ctx.$slots, "icon")]),
@@ -1,3 +1,3 @@
1
1
  import { a as NavItemSize, i as NavItemProps, n as NavIconSlots, o as NavItemSlots, r as NavItemEmits, s as NavLinkComponent, t as NavIconProps } from "../types-BG23kC3S.js";
2
- import { n as _default, r as resolveNavRoot, t as _default$1 } from "../index-CL1T2j4y.js";
2
+ import { n as _default, r as resolveNavRoot, t as _default$1 } from "../index-DY8Wph-A.js";
3
3
  export { _default as NavIcon, type NavIconProps, type NavIconSlots, _default$1 as NavItem, type NavItemEmits, type NavItemProps, type NavItemSize, type NavItemSlots, type NavLinkComponent, resolveNavRoot };
@@ -1,4 +1,4 @@
1
- import { n as resolveNavRoot } from "../link-C4_WogdF.js";
1
+ import { r as resolveNavRoot } from "../link-DuuA2eCL.js";
2
2
  import { t as _sfc_main } from "../NavItem-thEKXyJA.js";
3
- import { t as _sfc_main$1 } from "../NavItem-BBIGSvDj.js";
3
+ import { t as _sfc_main$1 } from "../NavItem-BPb3yfgz.js";
4
4
  export { _sfc_main as NavIcon, _sfc_main$1 as NavItem, resolveNavRoot };
@@ -1,5 +1,6 @@
1
+ import { t as usePressFeedback } from "./usePressFeedback-BJCpjEpv.js";
1
2
  import { n as useLinkComponent } from "./context-C_peZbXf.js";
2
- import { n as resolveNavRoot, t as isExternalNavTarget } from "./link-C4_WogdF.js";
3
+ import { n as isNavigableHref, r as resolveNavRoot, t as isExternalNavTarget } from "./link-DuuA2eCL.js";
3
4
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, mergeProps, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, unref, useAttrs, useSlots, withCtx } from "vue";
4
5
  import "../styles/nav-item.css";
5
6
  //#region src/NavItem/NavItem.vue
@@ -60,10 +61,22 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
60
61
  const slots = useSlots();
61
62
  const attrs = useAttrs();
62
63
  const linkComponent = useLinkComponent();
64
+ /** 触屏按压模型只标记,按压色由 nav-item.css 自己画。 */
65
+ const { pressableProps } = usePressFeedback({ hasOverlay: false });
63
66
  function forwardedAttrs() {
64
- return Object.fromEntries(Object.entries(attrs).filter(([key]) => key !== "class" && key !== "style"));
67
+ const forwarded = Object.fromEntries(Object.entries(attrs).filter(([key]) => key !== "class" && key !== "style"));
68
+ return props.isDisabled ? forwarded : {
69
+ ...pressableProps,
70
+ ...forwarded
71
+ };
65
72
  }
66
- const isLink = computed(() => props.href != null && props.href !== "" && !props.isDisabled);
73
+ const isLink = computed(() => isNavigableHref(props.href, props.isDisabled));
74
+ const iconOnlyName = computed(() => {
75
+ const given = attrs["aria-label"];
76
+ if (!props.isIconOnly) return typeof given === "string" ? given : void 0;
77
+ if (typeof given === "string" && given.trim() !== "") return given;
78
+ return props.label;
79
+ });
67
80
  /** 自己的 `as` 优先,其次是 LinkProvider 给的默认链接组件。 */
68
81
  const customLink = computed(() => props.as ?? linkComponent.value);
69
82
  const root = computed(() => resolveNavRoot(props.href, props.isDisabled, customLink.value));
@@ -111,7 +124,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
111
124
  disabled: isLink.value ? void 0 : __props.isDisabled,
112
125
  "aria-current": __props.isSelected ? "page" : void 0,
113
126
  "aria-disabled": __props.isDisabled || void 0,
114
- "aria-label": __props.isIconOnly ? __props.label : void 0,
127
+ "aria-label": iconOnlyName.value,
115
128
  "aria-expanded": __props.expanded == null ? void 0 : __props.expanded ? "true" : "false",
116
129
  "aria-controls": __props.controls,
117
130
  "aria-haspopup": __props.hasPopup,
@@ -1,2 +1,2 @@
1
- import { a as _default, c as NavHeadingMenuItemEmits, d as NavMenuEmits, f as NavMenuItemEmits, g as NavMenuSize, h as NavMenuFocusRequest, i as _default$1, l as NavHeadingMenuItemProps, m as NavMenuProps, n as _default$3, o as NavDisclosureProps, p as NavMenuItemProps, r as _default$2, s as NavHeadingMenuEmits, t as _default$4, u as NavHeadingMenuProps } from "../index-lgvUFSCO.js";
1
+ import { a as _default, c as NavHeadingMenuItemEmits, d as NavMenuEmits, f as NavMenuItemEmits, g as NavMenuSize, h as NavMenuFocusRequest, i as _default$1, l as NavHeadingMenuItemProps, m as NavMenuProps, n as _default$3, o as NavDisclosureProps, p as NavMenuItemProps, r as _default$2, s as NavHeadingMenuEmits, t as _default$4, u as NavHeadingMenuProps } from "../index-CryFtTT6.js";
2
2
  export { _default as NavDisclosure, type NavDisclosureProps, _default$1 as NavHeadingMenu, type NavHeadingMenuEmits, _default$2 as NavHeadingMenuItem, type NavHeadingMenuItemEmits, type NavHeadingMenuItemProps, type NavHeadingMenuProps, _default$3 as NavMenu, type NavMenuEmits, type NavMenuFocusRequest, _default$4 as NavMenuItem, type NavMenuItemEmits, type NavMenuItemProps, type NavMenuProps, type NavMenuSize };
@@ -1,4 +1,4 @@
1
- import { t as _sfc_main } from "../NavDisclosure-C_fugrQ3.js";
2
- import { n as _sfc_main$1, t as _sfc_main$2 } from "../NavMenu-ThXguZAz.js";
3
- import { n as _sfc_main$3, t as _sfc_main$4 } from "../NavMenuItem-BvJNsDFC.js";
1
+ import { t as _sfc_main } from "../NavDisclosure-Bq9DTZLO.js";
2
+ import { n as _sfc_main$1, t as _sfc_main$2 } from "../NavMenu-BYIDzjix.js";
3
+ import { n as _sfc_main$3, t as _sfc_main$4 } from "../NavMenuItem-D3FO90GR.js";
4
4
  export { _sfc_main as NavDisclosure, _sfc_main$1 as NavHeadingMenu, _sfc_main$2 as NavHeadingMenuItem, _sfc_main$3 as NavMenu, _sfc_main$4 as NavMenuItem };
@@ -1,13 +1,16 @@
1
+ import { n as readLayerScoped } from "./scopedProvide-C-Df7c15.js";
1
2
  import { n as useLinkComponent } from "./context-C_peZbXf.js";
2
- import { t as useListFocus } from "./useListFocus-D0iOJl39.js";
3
- import { t as useTypeahead } from "./useTypeahead-PAK8lMYz.js";
4
- import { i as navMenuKey, n as navMenuCloseKey, r as navMenuFocusKey } from "./NavDisclosure-C_fugrQ3.js";
5
- import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, inject, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, watch, withCtx } from "vue";
3
+ import { t as useListFocus } from "./useListFocus-ChxLg0b4.js";
4
+ import { t as useTypeahead } from "./useTypeahead-BvtflkRk.js";
5
+ import { n as isNavigableHref } from "./link-DuuA2eCL.js";
6
+ import { i as navMenuKey, n as navMenuCloseKey, r as navMenuFocusKey } from "./NavDisclosure-Bq9DTZLO.js";
7
+ import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, inject, mergeProps, nextTick, normalizeClass, onMounted, openBlock, provide, ref, renderSlot, resolveDynamicComponent, toDisplayString, toRaw, useAttrs, watch, withCtx } from "vue";
6
8
  import "../styles/nav-menu.css";
7
9
  //#region src/NavMenu/NavHeadingMenu.vue
8
10
  const _hoisted_1$1 = ["aria-label"];
9
11
  const _sfc_main$1 = /*@__PURE__*/ defineComponent({
10
12
  name: "AstryxNavHeadingMenu",
13
+ inheritAttrs: false,
11
14
  __name: "NavHeadingMenu",
12
15
  props: {
13
16
  label: {},
@@ -41,7 +44,28 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
41
44
  onMatch: focusItem,
42
45
  getCurrentIndex: () => menuItems().findIndex((element) => element === document.activeElement || element.contains(document.activeElement))
43
46
  });
47
+ const attrs = useAttrs();
48
+ /** 调用者挂在菜单上的 keydown 监听,先于菜单自己的键盘处理执行。 */
49
+ const forwardedAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([key]) => key !== "onKeydown" && key !== "onKeydownCapture")));
50
+ /** 捕获阶段就已经被取消的按键。这些按键不是菜单项取消的,菜单要照这个取消结果不再导航。 */
51
+ const cancelledBeforeItems = /* @__PURE__ */ new WeakSet();
52
+ function callHandlers(handler, event) {
53
+ for (const fn of Array.isArray(handler) ? handler : [handler]) fn?.(event);
54
+ }
55
+ function onKeyDownCapture(event) {
56
+ callHandlers(attrs.onKeydownCapture, event);
57
+ if (event.defaultPrevented) cancelledBeforeItems.add(event);
58
+ }
59
+ /**
60
+ * 菜单项自己的处理函数取消了按键(比如 preventDefault)时,方向键导航照常工作;
61
+ * 调用者在菜单上取消,才会让菜单不再导航。
62
+ */
44
63
  function onKeyDown(event) {
64
+ const cancelledByItem = event.defaultPrevented && !cancelledBeforeItems.has(event);
65
+ callHandlers(attrs.onKeydown, event);
66
+ if (cancelledByItem || !event.defaultPrevented) navigate(event);
67
+ }
68
+ function navigate(event) {
45
69
  if (event.key === "Enter" || event.key === " ") {
46
70
  const focused = document.activeElement;
47
71
  if (focused instanceof HTMLElement && focused.getAttribute("role") === "menuitem") {
@@ -78,16 +102,18 @@ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
78
102
  size
79
103
  });
80
104
  return (_ctx, _cache) => {
81
- return openBlock(), createElementBlock("div", {
105
+ return openBlock(), createElementBlock("div", mergeProps({
82
106
  ref_key: "listRef",
83
- ref: listRef,
84
- class: normalizeClass(["astryx-nav-heading-menu astryx-nav-menu", `astryx-nav-menu--${size.value}`]),
107
+ ref: listRef
108
+ }, forwardedAttrs.value, {
109
+ class: ["astryx-nav-heading-menu astryx-nav-menu", `astryx-nav-menu--${size.value}`],
85
110
  role: "menu",
86
111
  tabindex: "-1",
87
112
  "aria-label": __props.label,
88
- style: normalizeStyle(minWidthStyle.value),
113
+ style: minWidthStyle.value,
114
+ onKeydownCapture: onKeyDownCapture,
89
115
  onKeydown: onKeyDown
90
- }, [renderSlot(_ctx.$slots, "default")], 46, _hoisted_1$1);
116
+ }), [renderSlot(_ctx.$slots, "default")], 16, _hoisted_1$1);
91
117
  };
92
118
  }
93
119
  });
@@ -113,6 +139,7 @@ const _hoisted_5 = {
113
139
  };
114
140
  const _sfc_main = /*@__PURE__*/ defineComponent({
115
141
  name: "AstryxNavHeadingMenuItem",
142
+ inheritAttrs: false,
116
143
  __name: "NavHeadingMenuItem",
117
144
  props: {
118
145
  label: {},
@@ -129,11 +156,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
129
156
  setup(__props, { emit: __emit }) {
130
157
  const props = __props;
131
158
  const emit = __emit;
132
- const menu = inject(navMenuKey, null);
159
+ const menu = readLayerScoped(navMenuKey);
133
160
  const closeMenu = inject(navMenuCloseKey, void 0);
134
161
  const linkComponent = useLinkComponent();
135
162
  const size = computed(() => menu?.size.value ?? "md");
136
- const isLink = computed(() => props.href != null && props.href !== "" && !props.isDisabled);
163
+ const isLink = computed(() => isNavigableHref(props.href, props.isDisabled));
137
164
  /** 自己的 `as` 优先,其次是 LinkProvider 给的默认链接组件。 */
138
165
  const customLink = computed(() => props.as ?? linkComponent.value);
139
166
  const root = computed(() => {
@@ -152,21 +179,21 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
152
179
  else closeMenu?.();
153
180
  }
154
181
  return (_ctx, _cache) => {
155
- return openBlock(), createBlock(resolveDynamicComponent(root.value), {
156
- class: normalizeClass(["astryx-nav-heading-menu-item astryx-nav-menu-item", [`astryx-nav-menu-item--${size.value}`, { "astryx-nav-menu-item--disabled": __props.isDisabled }]]),
182
+ return openBlock(), createBlock(resolveDynamicComponent(root.value), mergeProps(_ctx.$attrs, {
183
+ class: ["astryx-nav-heading-menu-item astryx-nav-menu-item", [`astryx-nav-menu-item--${size.value}`, { "astryx-nav-menu-item--disabled": __props.isDisabled }]],
157
184
  role: "menuitem",
158
185
  href: isLink.value ? __props.href : void 0,
159
186
  to: isLink.value && customLink.value != null ? __props.href : void 0,
160
187
  "aria-disabled": __props.isDisabled || void 0,
161
188
  tabindex: __props.isDisabled ? void 0 : -1,
162
189
  onClick
163
- }, {
190
+ }), {
164
191
  default: withCtx(() => [__props.iconClass || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1, [renderSlot(_ctx.$slots, "icon", {}, () => [__props.iconClass ? (openBlock(), createElementBlock("span", {
165
192
  key: 0,
166
193
  class: normalizeClass(["astryx-nav-menu-item__glyph", __props.iconClass])
167
194
  }, null, 2)) : createCommentVNode("v-if", true)])])) : createCommentVNode("v-if", true), createElementVNode("span", _hoisted_2, [_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3, [renderSlot(_ctx.$slots, "default")])) : (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(__props.label), 1)), __props.description ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(__props.description), 1)) : createCommentVNode("v-if", true)])]),
168
195
  _: 3
169
- }, 8, [
196
+ }, 16, [
170
197
  "class",
171
198
  "href",
172
199
  "to",
@@ -1,8 +1,10 @@
1
+ import { t as usePressFeedback } from "./usePressFeedback-BJCpjEpv.js";
2
+ import { n as readLayerScoped } from "./scopedProvide-C-Df7c15.js";
1
3
  import { n as useLinkComponent } from "./context-C_peZbXf.js";
2
- import { t as useListFocus } from "./useListFocus-D0iOJl39.js";
3
- import { n as resolveNavRoot } from "./link-C4_WogdF.js";
4
- import { i as navMenuKey, n as navMenuCloseKey } from "./NavDisclosure-C_fugrQ3.js";
5
- import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, inject, nextTick, normalizeClass, onMounted, openBlock, provide, renderSlot, resolveDynamicComponent, toDisplayString, watch, withCtx } from "vue";
4
+ import { t as useListFocus } from "./useListFocus-ChxLg0b4.js";
5
+ import { n as isNavigableHref, r as resolveNavRoot } from "./link-DuuA2eCL.js";
6
+ import { i as navMenuKey, n as navMenuCloseKey } from "./NavDisclosure-Bq9DTZLO.js";
7
+ import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, inject, mergeProps, nextTick, normalizeClass, onMounted, openBlock, provide, renderSlot, resolveDynamicComponent, toDisplayString, unref, watch, withCtx } from "vue";
6
8
  import "../styles/nav-menu.css";
7
9
  //#region src/NavMenu/NavMenu.vue
8
10
  const _hoisted_1$1 = ["aria-label"];
@@ -117,11 +119,12 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
117
119
  setup(__props, { emit: __emit }) {
118
120
  const props = __props;
119
121
  const emit = __emit;
120
- const menu = inject(navMenuKey, null);
122
+ const menu = readLayerScoped(navMenuKey);
121
123
  const closeMenu = inject(navMenuCloseKey, void 0);
122
124
  const linkComponent = useLinkComponent();
123
125
  const size = computed(() => menu?.size.value ?? "md");
124
- const isLink = computed(() => props.href != null && props.href !== "" && !props.isDisabled);
126
+ const isLink = computed(() => isNavigableHref(props.href, props.isDisabled));
127
+ const { pressableProps } = usePressFeedback({ hasOverlay: false });
125
128
  /** 自己的 `as` 优先,其次是 LinkProvider 给的默认链接组件。 */
126
129
  const customLink = computed(() => props.as ?? linkComponent.value);
127
130
  const root = computed(() => resolveNavRoot(props.href, props.isDisabled, customLink.value));
@@ -137,17 +140,16 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
137
140
  menu?.close();
138
141
  }
139
142
  return (_ctx, _cache) => {
140
- return openBlock(), createBlock(resolveDynamicComponent(root.value), {
141
- class: normalizeClass(["astryx-nav-menu-item", [`astryx-nav-menu-item--${size.value}`, { "astryx-nav-menu-item--disabled": __props.isDisabled }]]),
143
+ return openBlock(), createBlock(resolveDynamicComponent(root.value), mergeProps({
144
+ class: ["astryx-nav-menu-item", [`astryx-nav-menu-item--${size.value}`, { "astryx-nav-menu-item--disabled": __props.isDisabled }]],
142
145
  role: __props.isMenuItem ? "menuitem" : void 0,
143
146
  href: isLink.value ? __props.href : void 0,
144
147
  to: isLink.value && customLink.value != null ? __props.href : void 0,
145
148
  type: isLink.value ? void 0 : "button",
146
149
  disabled: isLink.value ? void 0 : __props.isDisabled,
147
150
  "aria-disabled": __props.isDisabled || void 0,
148
- tabindex: __props.isMenuItem && !__props.isDisabled ? -1 : void 0,
149
- onClick
150
- }, {
151
+ tabindex: __props.isMenuItem && !__props.isDisabled ? -1 : void 0
152
+ }, __props.isDisabled ? {} : unref(pressableProps), { onClick }), {
151
153
  default: withCtx(() => [
152
154
  __props.iconClass || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1, [renderSlot(_ctx.$slots, "icon", {}, () => [__props.iconClass ? (openBlock(), createElementBlock("span", {
153
155
  key: 0,
@@ -157,7 +159,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
157
159
  _ctx.$slots.end ? (openBlock(), createElementBlock("span", _hoisted_5, [renderSlot(_ctx.$slots, "end")])) : createCommentVNode("v-if", true)
158
160
  ]),
159
161
  _: 3
160
- }, 8, [
162
+ }, 16, [
161
163
  "class",
162
164
  "role",
163
165
  "href",
@@ -1,2 +1,2 @@
1
- import { Jr as NumberInputEmits, Xr as NumberInputStatus, Yr as NumberInputProps, qr as _default } from "../index-DUaLJO7l.js";
1
+ import { Jr as _default, Xr as NumberInputProps, Yr as NumberInputEmits, Zr as NumberInputStatus } from "../index-CpNlPLBF.js";
2
2
  export { _default as NumberInput, type NumberInputEmits, type NumberInputProps, type NumberInputStatus };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../NumberInput-AZ9x3oja.js";
1
+ import { t as _sfc_main } from "../NumberInput-B0vzOg3N.js";
2
2
  export { _sfc_main as NumberInput };