@astryx-vue/core 0.7.20 → 0.7.22

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 (405) hide show
  1. package/dist/AlertDialog/index.d.ts +1 -1
  2. package/dist/AlertDialog/index.js +1 -1
  3. package/dist/{AlertDialog-pPXTwJ2L.js → AlertDialog-Clj4LQbD.js} +14 -8
  4. package/dist/AppShell/index.d.ts +1 -1
  5. package/dist/AppShell/index.js +1 -1
  6. package/dist/{AppShell-ggoyfRU8.js → AppShell--izaf9Fx.js} +3 -3
  7. package/dist/Avatar/index.d.ts +1 -1
  8. package/dist/Avatar/index.js +1 -1
  9. package/dist/{Avatar-CP5bJN1n.js → Avatar-cNntRBEo.js} +18 -14
  10. package/dist/AvatarGroup/index.d.ts +1 -1
  11. package/dist/AvatarGroup/index.js +1 -1
  12. package/dist/{AvatarGroup-DkdSw1yf.js → AvatarGroup-DbWLEmi1.js} +3 -3
  13. package/dist/Banner/index.d.ts +1 -1
  14. package/dist/Banner/index.js +1 -1
  15. package/dist/{Banner-BAq0N2B5.js → Banner-B_mAF0Cw.js} +7 -5
  16. package/dist/BottomSheet/index.d.ts +1 -1
  17. package/dist/BottomSheet/index.js +2 -2
  18. package/dist/{BottomSheet-ChaxnQlr.js → BottomSheet-BKeyoL9N.js} +1 -1
  19. package/dist/{BottomSheet-BTFPLoGw.js → BottomSheet-CMukh1iI.js} +1 -1
  20. package/dist/Breadcrumbs/index.js +2 -2
  21. package/dist/{Breadcrumbs-CXRXlVmX.js → Breadcrumbs-b00jtj_I.js} +2 -2
  22. package/dist/Button/index.d.ts +1 -1
  23. package/dist/Button/index.js +1 -1
  24. package/dist/{Button-xMGOU3Wj.js → Button-DVXOKWAy.js} +11 -78
  25. package/dist/ButtonGroup/index.d.ts +1 -1
  26. package/dist/ButtonGroup/index.js +1 -1
  27. package/dist/{ButtonGroup-DnkSZ9a5.js → ButtonGroup-B9sj-OvC.js} +5 -3
  28. package/dist/Calendar/index.d.ts +1 -1
  29. package/dist/Calendar/index.js +1 -1
  30. package/dist/{Calendar-CJQCND7M.js → Calendar-d_uOkvFE.js} +4 -4
  31. package/dist/Card/index.d.ts +1 -1
  32. package/dist/Card/index.js +1 -1
  33. package/dist/{Card-B-I24X9S.js → Card-H4571ZKi.js} +1 -1
  34. package/dist/Carousel/index.js +1 -1
  35. package/dist/{Carousel-v8MoIvkj.js → Carousel-CUtC-6st.js} +3 -3
  36. package/dist/Center/index.d.ts +1 -1
  37. package/dist/Center/index.js +1 -1
  38. package/dist/{Center-DVaZaTGP.js → Center-B7FTd7Hw.js} +2 -10
  39. package/dist/Chat/index.d.ts +1 -1
  40. package/dist/Chat/index.js +1 -1
  41. package/dist/{Chat-CZqMkxNN.js → Chat-BCeC0sHI.js} +19 -10
  42. package/dist/CheckboxInput/index.d.ts +1 -1
  43. package/dist/CheckboxInput/index.js +1 -1
  44. package/dist/{CheckboxInput-D0SSjziv.js → CheckboxInput-B4pDfjvr.js} +6 -6
  45. package/dist/CheckboxList/index.d.ts +1 -1
  46. package/dist/CheckboxList/index.js +1 -1
  47. package/dist/{CheckboxList-Dd6Vn_0N.js → CheckboxList-DtxfdHRI.js} +14 -10
  48. package/dist/Citation/index.js +1 -1
  49. package/dist/{Citation-BDHIuvX3.js → Citation-CCu6QWG7.js} +2 -2
  50. package/dist/ClickableCard/index.d.ts +1 -1
  51. package/dist/ClickableCard/index.js +1 -1
  52. package/dist/{ClickableCard-CGjr4c7g.js → ClickableCard-jEBZbzHE.js} +3 -3
  53. package/dist/Code/index.d.ts +1 -1
  54. package/dist/Code/index.js +2 -2
  55. package/dist/{Code-U7yN4bwZ.js → Code-PDhTfE2w.js} +2 -8
  56. package/dist/{CodeBlock-Dnv5SexJ.js → CodeBlock-C8ZQsnEc.js} +31 -9
  57. package/dist/Collapsible/index.d.ts +1 -1
  58. package/dist/Collapsible/index.js +1 -1
  59. package/dist/{Collapsible-DPC_G0Me.js → Collapsible-BsPZ8CoN.js} +2 -2
  60. package/dist/CommandPalette/index.js +1 -1
  61. package/dist/{CommandPalette-CM5VyZTp.js → CommandPalette-0Kg-dJg3.js} +5 -5
  62. package/dist/ComplexSelector/index.js +1 -1
  63. package/dist/{ComplexSelector-BiKaDteS.js → ComplexSelector-xJGZLLyu.js} +6 -6
  64. package/dist/ContextMenu/index.d.ts +1 -1
  65. package/dist/ContextMenu/index.js +2 -2
  66. package/dist/{ContextMenu-DPY3WDdI.js → ContextMenu-CgSIWUYh.js} +7 -7
  67. package/dist/DateInput/index.d.ts +1 -1
  68. package/dist/DateInput/index.js +1 -1
  69. package/dist/{DateInput-CDesWR4P.js → DateInput-B0t3u-_h.js} +17 -15
  70. package/dist/DateRangeInput/index.d.ts +1 -1
  71. package/dist/DateRangeInput/index.js +1 -1
  72. package/dist/{DateRangeInput-xT3wXhbh.js → DateRangeInput-CZcASUxa.js} +15 -13
  73. package/dist/DateTimeInput/index.d.ts +1 -1
  74. package/dist/DateTimeInput/index.js +1 -1
  75. package/dist/{DateTimeInput-oZKJG12g.js → DateTimeInput-vkdQJjsh.js} +15 -13
  76. package/dist/Dialog/index.d.ts +1 -1
  77. package/dist/Dialog/index.js +1 -1
  78. package/dist/{DialogHeader-CAvunUP_.js → DialogHeader-Doo2W2Ni.js} +26 -17
  79. package/dist/Divider/index.d.ts +1 -1
  80. package/dist/Drawer/index.d.ts +1 -1
  81. package/dist/Drawer/index.js +1 -1
  82. package/dist/{Drawer-AYHh8GOH.js → Drawer-Ca7Dny6L.js} +1 -1
  83. package/dist/DropdownMenu/index.js +3 -3
  84. package/dist/{DropdownMenu-CjM_IQIU.js → DropdownMenu-ogcv4KxT.js} +8 -8
  85. package/dist/{DropdownMenu-C1-Fx_uu.js → DropdownMenu-xdyXj4Mb.js} +7 -7
  86. package/dist/EmptyState/index.js +1 -1
  87. package/dist/{EmptyState-CVbtVcRb.js → EmptyState-BQrzgh2f.js} +2 -2
  88. package/dist/Field/index.js +3 -3
  89. package/dist/{Field-Dw53vhfK.js → Field-DLg-trP2.js} +2 -2
  90. package/dist/{FieldIcon--Qng2Cup.js → FieldIcon-CxTnEb4Y.js} +1 -1
  91. package/dist/{FieldInfoTip-Ci5usYvE.js → FieldInfoTip-gWPWGd3Q.js} +3 -3
  92. package/dist/{FieldLabel-MeJlcRRG.js → FieldLabel-D5_Pap_W.js} +9 -5
  93. package/dist/FieldStatus/index.js +1 -1
  94. package/dist/{FieldStatus-BGM4IlHy.js → FieldStatus-D6Vo_dU5.js} +5 -4
  95. package/dist/FileInput/index.d.ts +1 -1
  96. package/dist/FileInput/index.js +1 -1
  97. package/dist/{FileInput-jPcAv4-1.js → FileInput-eBk4ZBY8.js} +10 -10
  98. package/dist/Heading/index.d.ts +1 -1
  99. package/dist/Heading/index.js +1 -1
  100. package/dist/{Heading-CwMG-5tj.js → Heading-D0zL1j5T.js} +1 -1
  101. package/dist/HoverCard/index.d.ts +1 -1
  102. package/dist/HoverCard/index.js +1 -1
  103. package/dist/{HoverCard-SuGMVIZR.js → HoverCard-B9uadAzT.js} +2 -1
  104. package/dist/Icon/index.js +1 -1
  105. package/dist/{Icon-Dosui-zD.js → Icon-CU3412Fe.js} +6 -1
  106. package/dist/IconButton/index.js +1 -1
  107. package/dist/{IconButton-BmMIccb4.js → IconButton-C5U75I5C.js} +1 -1
  108. package/dist/Indicator/index.js +1 -1
  109. package/dist/InfoTip/index.d.ts +2 -0
  110. package/dist/InfoTip/index.js +5 -0
  111. package/dist/InfoTip-BlOySTNC.js +95 -0
  112. package/dist/{InputClearButton-Dd1GgItq.js → InputClearButton-DjLXIYX4.js} +3 -3
  113. package/dist/InputGroup/index.d.ts +1 -1
  114. package/dist/InputGroup/index.js +1 -1
  115. package/dist/{InputGroup-C1z9qkGA.js → InputGroup-BleRgc6W.js} +8 -4
  116. package/dist/InternationalizationProvider/index.d.ts +1 -1
  117. package/dist/InternationalizationProvider/index.js +1 -1
  118. package/dist/{InternationalizationProvider-DKNYYBp5.js → InternationalizationProvider-CWJDt7Qb.js} +2 -2
  119. package/dist/{Item-DWMIjN8n.js → Item-X9wgYWoD.js} +1 -1
  120. package/dist/Layout/index.d.ts +1 -1
  121. package/dist/Layout/index.js +2 -2
  122. package/dist/{Layout-JJRCG7Mf.js → Layout-mHcy28k7.js} +3 -2
  123. package/dist/{LayoutPanel-zM5vjrKS.js → LayoutPanel-DpbBk6rj.js} +4 -27
  124. package/dist/Lightbox/index.js +1 -1
  125. package/dist/{Lightbox-Bx1uvH61.js → Lightbox-BKIn3xh8.js} +3 -3
  126. package/dist/Link/index.d.ts +3 -3
  127. package/dist/Link/index.js +1 -1
  128. package/dist/{Link-DdLdry4N.js → Link-Qhzs2lcO.js} +27 -20
  129. package/dist/List/index.d.ts +1 -1
  130. package/dist/List/index.js +2 -2
  131. package/dist/{ListItem-Cq_nU1YV.js → ListItem-CertehfW.js} +1 -1
  132. package/dist/Markdown/index.d.ts +1 -1
  133. package/dist/Markdown/index.js +1 -1
  134. package/dist/{Markdown-u-bXd7Z_.js → Markdown-BJFwe_pB.js} +10 -8
  135. package/dist/{MediaTheme-p2hOnZaR.js → MediaTheme-CnSOALNj.js} +4 -9
  136. package/dist/MetadataList/index.js +1 -1
  137. package/dist/{MetadataList-sNNwmmXa.js → MetadataList-wOngshS5.js} +1 -1
  138. package/dist/MobileNav/index.js +1 -1
  139. package/dist/{MobileNavToggle-DgEwchpj.js → MobileNavToggle-C8KAzhRl.js} +2 -2
  140. package/dist/MoreMenu/index.d.ts +1 -1
  141. package/dist/MoreMenu/index.js +1 -1
  142. package/dist/{MoreMenu-CUWP3WTs.js → MoreMenu-VgbqyoGW.js} +117 -99
  143. package/dist/MultiSelector/index.d.ts +1 -1
  144. package/dist/MultiSelector/index.js +1 -1
  145. package/dist/{MultiSelector-DXFen6nf.js → MultiSelector-BTIeCFDV.js} +36 -38
  146. package/dist/{NavDisclosure-snipr7Cd.js → NavDisclosure-BbRWuyhq.js} +1 -1
  147. package/dist/{NavHeadingSurface-tn7cGNlX.js → NavHeadingSurface-B2HkXx6S.js} +3 -3
  148. package/dist/NavItem/index.d.ts +1 -1
  149. package/dist/NavItem/index.js +1 -1
  150. package/dist/{NavItem-BPb3yfgz.js → NavItem-DfHMmSsw.js} +1 -1
  151. package/dist/NavMenu/index.js +3 -3
  152. package/dist/{NavMenu-BA5lW02j.js → NavMenu-CZS5pRUv.js} +1 -1
  153. package/dist/{NavMenuItem-BuIgWJq8.js → NavMenuItem-duQuvU1o.js} +2 -2
  154. package/dist/NumberInput/index.d.ts +1 -1
  155. package/dist/NumberInput/index.js +1 -1
  156. package/dist/{NumberInput-47pYh8M8.js → NumberInput-CkYRY1KW.js} +19 -32
  157. package/dist/Outline/index.js +1 -1
  158. package/dist/{Outline-C6xBCP2y.js → Outline-D3g7Vq7-.js} +2 -2
  159. package/dist/OverflowList/index.d.ts +1 -1
  160. package/dist/OverflowList/index.js +1 -1
  161. package/dist/{OverflowList-BHnarnHA.js → OverflowList-WwL2NPbI.js} +3 -3
  162. package/dist/Overlay/index.d.ts +1 -1
  163. package/dist/Pagination/index.d.ts +1 -1
  164. package/dist/Pagination/index.js +1 -1
  165. package/dist/{Pagination-CBjcLsLG.js → Pagination-Cn53Nqe3.js} +2 -2
  166. package/dist/Popover/index.d.ts +1 -1
  167. package/dist/Popover/index.js +1 -1
  168. package/dist/{Popover-DOqAuY-b.js → Popover-Cbv5LUWL.js} +10 -6
  169. package/dist/PowerSearch/index.d.ts +1 -1
  170. package/dist/PowerSearch/index.js +1 -1
  171. package/dist/{PowerSearch-BnsPW_Xe.js → PowerSearch-DtncqsYh.js} +88 -73
  172. package/dist/ProgressBar/index.d.ts +1 -1
  173. package/dist/ProgressBar/index.js +1 -1
  174. package/dist/{ProgressBar-Cmbhdfla.js → ProgressBar-Dt5AS0GY.js} +1 -1
  175. package/dist/Radio/index.d.ts +1 -1
  176. package/dist/Radio/index.js +1 -1
  177. package/dist/{RadioGroup-Dcmqx9p_.js → RadioGroup-B2lYTCeV.js} +5 -5
  178. package/dist/RadioList/index.d.ts +1 -1
  179. package/dist/RadioList/index.js +1 -1
  180. package/dist/{RadioList-BnM8hmMZ.js → RadioList-CieZtXzY.js} +1 -1
  181. package/dist/Resizable/index.d.ts +1 -1
  182. package/dist/Resizable/index.js +1 -1
  183. package/dist/{ResizeHandle-Bxt3HOsd.js → ResizeHandle-uBJj4W1M.js} +1 -1
  184. package/dist/ScrollableArea/index.d.ts +1 -1
  185. package/dist/ScrollableArea/index.js +1 -1
  186. package/dist/{ScrollableArea-0u6RWtGG.js → ScrollableArea-BgIytCxo.js} +3 -8
  187. package/dist/Scrollbars/index.js +2 -2
  188. package/dist/{Scrollbars-D_93hJYK.js → Scrollbars-Gvu4QVaF.js} +1 -1
  189. package/dist/Section/index.js +1 -1
  190. package/dist/{Section-v2QuWBBJ.js → Section-Km_FjJ-i.js} +2 -7
  191. package/dist/SegmentedControl/index.d.ts +1 -1
  192. package/dist/SegmentedControl/index.js +1 -1
  193. package/dist/{SegmentedControl-D1wWGBZo.js → SegmentedControl-BmDn1avo.js} +6 -4
  194. package/dist/SelectableCard/index.d.ts +1 -1
  195. package/dist/SelectableCard/index.js +1 -1
  196. package/dist/{SelectableCard-BEqnhPaX.js → SelectableCard-2a2gsxys.js} +3 -3
  197. package/dist/Selector/index.d.ts +1 -1
  198. package/dist/Selector/index.js +1 -1
  199. package/dist/{Selector-DJqfjwFd.js → Selector-CgrXQtte.js} +122 -52
  200. package/dist/SideNav/index.d.ts +1 -1
  201. package/dist/SideNav/index.js +1 -1
  202. package/dist/{SideNav-DeE9XA0M.js → SideNav-B_atCEBH.js} +45 -27
  203. package/dist/SizeContext/index.d.ts +2 -0
  204. package/dist/SizeContext/index.js +2 -0
  205. package/dist/SizeContext-BbaF-SEx.js +37 -0
  206. package/dist/Slider/index.js +1 -1
  207. package/dist/{Slider-CDssBPWC.js → Slider-CEhy-D-R.js} +4 -4
  208. package/dist/Spinner/index.js +1 -1
  209. package/dist/{Spinner-D8YW_EgO.js → Spinner-CTWLR75x.js} +1 -1
  210. package/dist/Stack/index.js +2 -2
  211. package/dist/{Stack-Bp-XN9J4.js → Stack-DPB-Ztf7.js} +3 -11
  212. package/dist/{Stack-Bb_h60t3.js → Stack-Tw4I_dt-.js} +2 -2
  213. package/dist/StatusDot/index.js +1 -1
  214. package/dist/{StatusDot-DhNtAVEN.js → StatusDot-Bu_nCu0I.js} +1 -1
  215. package/dist/Stepper/index.d.ts +1 -1
  216. package/dist/Stepper/index.js +1 -1
  217. package/dist/{Stepper-D_tzl2pr.js → Stepper-DVXisudw.js} +149 -67
  218. package/dist/Switch/index.d.ts +2 -2
  219. package/dist/Switch/index.js +1 -1
  220. package/dist/{Switch-GIld457S.js → Switch-DXShvaDA.js} +12 -6
  221. package/dist/TabList/index.d.ts +1 -1
  222. package/dist/TabList/index.js +1 -1
  223. package/dist/{TabList-B9RRmiqV.js → TabList-DIEm4YKM.js} +10 -8
  224. package/dist/Table/index.d.ts +2 -2
  225. package/dist/Table/index.js +1 -1
  226. package/dist/{Table-B9F3DkX-.js → Table-RQ5wklzn.js} +28 -20
  227. package/dist/Text/index.d.ts +2 -2
  228. package/dist/Text/index.js +1 -1
  229. package/dist/{Text-D8ZIQxgB.js → Text-Wk-iDAzh.js} +2 -2
  230. package/dist/TextArea/index.d.ts +1 -1
  231. package/dist/TextArea/index.js +1 -1
  232. package/dist/{TextArea-zVh5qj-c.js → TextArea-D1QHRYUp.js} +24 -14
  233. package/dist/TextInput/index.d.ts +1 -1
  234. package/dist/TextInput/index.js +1 -1
  235. package/dist/{TextInput-Bfr1Igjs.js → TextInput-ZSr9jgdk.js} +11 -8
  236. package/dist/Theme/index.js +2 -2
  237. package/dist/{Theme-BpgmIGCo.js → Theme-D7_fQWgb.js} +570 -4
  238. package/dist/Thumbnail/index.js +1 -1
  239. package/dist/{Thumbnail-BvXGkihb.js → Thumbnail-CYRPjf1Y.js} +6 -6
  240. package/dist/{TimeField-BcGkQvY4.js → TimeField-DnfFPnBT.js} +10 -10
  241. package/dist/TimeInput/index.d.ts +1 -1
  242. package/dist/TimeInput/index.js +1 -1
  243. package/dist/{TimeInput-CwCYQa51.js → TimeInput-Dj5b3rL3.js} +6 -4
  244. package/dist/Timer/index.d.ts +1 -1
  245. package/dist/Timer/index.js +1 -1
  246. package/dist/{Timer-cp10vcti.js → Timer-DL_MPa_h.js} +1 -1
  247. package/dist/Timestamp/index.d.ts +1 -1
  248. package/dist/Timestamp/index.js +1 -1
  249. package/dist/{Timestamp-DAfry9GA.js → Timestamp-hepTGx5N.js} +5 -5
  250. package/dist/Toast/index.js +1 -1
  251. package/dist/{Toast-CN6C5mZ4.js → Toast-DRIZNfyy.js} +24 -18
  252. package/dist/ToggleButton/index.d.ts +1 -1
  253. package/dist/ToggleButton/index.js +1 -1
  254. package/dist/{ToggleButton-Cq82SwPx.js → ToggleButton-zpHmL_yH.js} +1 -1
  255. package/dist/Token/index.d.ts +1 -1
  256. package/dist/Token/index.js +1 -1
  257. package/dist/{Token-rBcE4hYh.js → Token-BJDLztV6.js} +2 -2
  258. package/dist/Tokenizer/index.js +1 -1
  259. package/dist/{Tokenizer-CIviljVO.js → Tokenizer-yz0873oG.js} +45 -37
  260. package/dist/Toolbar/index.d.ts +2 -2
  261. package/dist/Toolbar/index.js +1 -1
  262. package/dist/{Toolbar-DKld_COt.js → Toolbar-CbVhy7K9.js} +3 -1
  263. package/dist/Tooltip/index.d.ts +1 -1
  264. package/dist/Tooltip/index.js +2 -1
  265. package/dist/Tooltip-BfKegFfq.js +126 -0
  266. package/dist/TopNav/index.d.ts +1 -1
  267. package/dist/TopNav/index.js +1 -1
  268. package/dist/{TopNav-Dwu7beKR.js → TopNav-aCHKxMyk.js} +7 -7
  269. package/dist/TreeList/index.d.ts +1 -1
  270. package/dist/TreeList/index.js +1 -1
  271. package/dist/{TreeList-XMAHW9fH.js → TreeList-tcEjVfb0.js} +34 -26
  272. package/dist/Typeahead/index.js +2 -2
  273. package/dist/{Typeahead-DrziC_-X.js → Typeahead-ClidGB0O.js} +8 -8
  274. package/dist/{TypeaheadMenu-CafYGgVa.js → TypeaheadMenu-Bu9HO-wZ.js} +1 -1
  275. package/dist/VisuallyHidden/index.js +1 -1
  276. package/dist/{VisuallyHidden-C7NN3VEP.js → VisuallyHidden-cpmsV-0M.js} +25 -2
  277. package/dist/composables/index.d.ts +2 -2
  278. package/dist/composables/index.js +6 -5
  279. package/dist/{composables-rlh0LyHP.js → composables-BWDrzi3J.js} +1 -1
  280. package/dist/{context-dY6CBI-t.js → context-BLSiTojH.js} +12 -2
  281. package/dist/context-Bv6lAoqu.js +26 -0
  282. package/dist/{index-gW0HW02U.d.ts → index-6kd7pher.d.ts} +0 -1
  283. package/dist/{index-ChCcxRFB.d.ts → index-9eluGe3a.d.ts} +1 -1
  284. package/dist/{index-TXcNH86P.d.ts → index-B1eCxBCY.d.ts} +1 -1
  285. package/dist/{index-DxSmMU5p.d.ts → index-B7VpAZYk.d.ts} +20 -7
  286. package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
  287. package/dist/{index-wY6dKz6c.d.ts → index-BEZ4ezJk.d.ts} +2 -2
  288. package/dist/{index-BfS1MA8W.d.ts → index-BRXgpLcd.d.ts} +5 -6
  289. package/dist/{index-G935Rujh.d.ts → index-BUZDSd-n.d.ts} +96 -2
  290. package/dist/{index-2nF5Y3RN.d.ts → index-Be7N3B5F.d.ts} +2 -3
  291. package/dist/{index-DbiZvj1P.d.ts → index-BfQ85cS8.d.ts} +0 -1
  292. package/dist/{index-CTjkJP4x.d.ts → index-Bgk1Rj2A.d.ts} +1 -1
  293. package/dist/{index-BOCb89V9.d.ts → index-BxWCX2pJ.d.ts} +1 -1
  294. package/dist/{index-UFlyBbRd.d.ts → index-C3f1zsJR.d.ts} +2 -2
  295. package/dist/{index-C-tFz2Yx.d.ts → index-C9ZssPUV.d.ts} +1 -1
  296. package/dist/{index-CRPSZ4nY.d.ts → index-CFm1rPma.d.ts} +1 -1
  297. package/dist/{index-C1zwvxPH.d.ts → index-CL8JvxHW.d.ts} +2 -2
  298. package/dist/{index-B7Jz5i9a.d.ts → index-CM8KfpBL.d.ts} +3 -4
  299. package/dist/{index-DpXXD9nP.d.ts → index-CfOpGR_m.d.ts} +215 -147
  300. package/dist/{index-DAMHLkmd.d.ts → index-CfPGC9aW.d.ts} +1 -1
  301. package/dist/{index-GpET2_oj.d.ts → index-Cun6cXGP.d.ts} +1 -1
  302. package/dist/{index-C8wfe0Mr.d.ts → index-D05JGsT3.d.ts} +1 -1
  303. package/dist/{index-Uh-ddE5F.d.ts → index-D21zdEgS.d.ts} +1 -1
  304. package/dist/{index-DUnLj1kn.d.ts → index-DLq_N8bd.d.ts} +1 -1
  305. package/dist/{index-Dl4Kx5Pl.d.ts → index-DTfA4uE3.d.ts} +13 -3
  306. package/dist/{index-CKpz_Eed.d.ts → index-DX4HQToB.d.ts} +1 -1
  307. package/dist/{index-D97pQbua.d.ts → index-DXhtlG4u.d.ts} +2 -2
  308. package/dist/{index-B2kcUxGA.d.ts → index-D_K1wfRa.d.ts} +1 -1
  309. package/dist/{index-MEix_m1o.d.ts → index-DaXzQxos.d.ts} +2 -2
  310. package/dist/{index-Do0iakTm.d.ts → index-DgmlhvRV.d.ts} +1 -1
  311. package/dist/{index-CAttPKaF.d.ts → index-DjVJDoz4.d.ts} +1 -1
  312. package/dist/{index-qayqGnJT.d.ts → index-IfiA8CSr.d.ts} +2 -2
  313. package/dist/{index-BbArm3_c.d.ts → index-MIv3YJ_j.d.ts} +3 -3
  314. package/dist/{index-BNaRK-s5.d.ts → index-O9y23OPJ.d.ts} +11 -1
  315. package/dist/{index-COgrQZIL.d.ts → index-YKCx03zD.d.ts} +2 -2
  316. package/dist/{index-BKnyTWPM.d.ts → index-ZbNwGVkS.d.ts} +1 -1
  317. package/dist/index-q7fVtnQc.d.ts +48 -0
  318. package/dist/{index-Cy1rEWC-.d.ts → index-rszZajcw.d.ts} +1 -1
  319. package/dist/{index-mcNmCMqs.d.ts → index-uqEqPcmR.d.ts} +2 -2
  320. package/dist/index.d.ts +67 -68
  321. package/dist/index.js +132 -125
  322. package/dist/{loadCatalog-Cr3451_V.js → loadCatalog-85MyL2bm.js} +1 -1
  323. package/dist/{loadCatalog-DNIEPF3f.d.ts → loadCatalog-DSRSkHnY.d.ts} +9 -0
  324. package/dist/locale/index.d.ts +2 -2
  325. package/dist/locale/index.js +4 -4
  326. package/dist/{locale-BdA3CTlQ.js → locale-C7RSY-JG.js} +77 -77
  327. package/dist/{searchResultMessage-u1rOubPl.js → searchResultMessage-T4H3r8Vz.js} +3 -3
  328. package/dist/sharedResizeObserver-9EFWnSWH.js +87 -0
  329. package/dist/{size-Cpn_wzXi.js → size-BfginNaZ.js} +19 -1
  330. package/dist/{types-BymI5mmm.d.ts → types-B8suOGP8.d.ts} +3 -2
  331. package/dist/{useAnchoredListbox-DwQTMWjI.js → useAnchoredListbox-6t5zSSz1.js} +1 -1
  332. package/dist/useButtonTooltip-DjCaZMp_.js +73 -0
  333. package/dist/{useIndicator-fTOZfYVI.js → useIndicator-BvF_KY9S.js} +1 -1
  334. package/dist/{useInputStatusIcon-BZPOzGDC.js → useInputStatusIcon-Dax94Gdd.js} +2 -2
  335. package/dist/{useMergedRefs-CG0YVRL-.js → useLayer-Byjda3dD.js} +2 -23
  336. package/dist/{useMenuDrillIn-B6jh8tv8.js → useMenuDrillIn-C36Z89W3.js} +3 -3
  337. package/dist/useMergedRefs-DTGo1cEU.js +22 -0
  338. package/dist/{usePositionedLayer-HrhF3lEZ.js → usePositionedLayer-psKf3ano.js} +13 -3
  339. package/dist/{usePressFeedback-BJCpjEpv.js → usePressFeedback-Dhnfc3ee.js} +19 -2
  340. package/dist/{useResizable-BJ0DaMml.d.ts → useResizable-fEGAFziz.d.ts} +2 -0
  341. package/dist/{colorMode-BxqfDP4P.js → useResolvedColorMode-CHOh3Yz-.js} +31 -1
  342. package/dist/{useScrollbars-C2NJ6Qwq.js → useScrollbars-Ch0xqJWO.js} +3 -0
  343. package/dist/useTooltip-BKsCTWdb.js +415 -0
  344. package/dist/{useTranslator-DZBywLvR.js → useTranslator-BDUOzbP_.js} +1 -1
  345. package/dist/utils/index.js +2 -1
  346. package/dist/{utils-BE5HBOBX.js → utils-BOmFijPc.js} +1 -87
  347. package/package.json +9 -1
  348. package/styles/app-shell.css +12 -0
  349. package/styles/avatar.css +14 -2
  350. package/styles/banner.css +35 -27
  351. package/styles/bottom-sheet.css +8 -1
  352. package/styles/button.css +26 -12
  353. package/styles/calendar.css +3 -1
  354. package/styles/chat.css +53 -32
  355. package/styles/clickable-card.css +3 -3
  356. package/styles/code.css +5 -7
  357. package/styles/collapsible.css +10 -0
  358. package/styles/complex-selector.css +3 -3
  359. package/styles/container-reveal.css +161 -69
  360. package/styles/dialog-header.css +6 -0
  361. package/styles/dialog.css +29 -9
  362. package/styles/dropdown-menu.css +7 -6
  363. package/styles/empty-state.css +0 -4
  364. package/styles/field.css +37 -20
  365. package/styles/heading.css +20 -9
  366. package/styles/icon.css +11 -6
  367. package/styles/info-tip.css +45 -0
  368. package/styles/layout.css +2 -1
  369. package/styles/link.css +54 -7
  370. package/styles/list.css +1 -1
  371. package/styles/markdown.css +46 -2
  372. package/styles/more-menu.css +3 -2
  373. package/styles/multi-selector.css +6 -6
  374. package/styles/number-input.css +1 -2
  375. package/styles/popover.css +2 -2
  376. package/styles/power-search.css +10 -1
  377. package/styles/pressable.css +4 -4
  378. package/styles/radio.css +2 -3
  379. package/styles/section.css +3 -0
  380. package/styles/segmented-control.css +13 -0
  381. package/styles/selector.css +25 -10
  382. package/styles/side-nav.css +75 -2
  383. package/styles/slider.css +5 -2
  384. package/styles/stepper-track.css +57 -0
  385. package/styles/stepper.css +81 -46
  386. package/styles/switch.css +22 -11
  387. package/styles/tab-list.css +7 -6
  388. package/styles/tab-menu.css +0 -1
  389. package/styles/table.css +38 -3
  390. package/styles/text-area.css +5 -8
  391. package/styles/text.css +21 -1
  392. package/styles/theme.css +2 -0
  393. package/styles/thumbnail.css +1 -1
  394. package/styles/toast.css +11 -21
  395. package/styles/token.css +1 -1
  396. package/styles/tokenizer.css +8 -1
  397. package/styles/toolbar.css +5 -1
  398. package/styles/top-nav.css +19 -6
  399. package/styles/tree-list.css +2 -3
  400. package/styles.css +2 -0
  401. package/dist/Tooltip-sESBLZwR.js +0 -339
  402. package/dist/index-CHuSkU5Q.d.ts +0 -26
  403. package/dist/types-CbiqoBoG.d.ts +0 -89
  404. package/dist/{index-CHx33xGa.d.ts → index-BqhgeAT4.d.ts} +2 -2
  405. /package/dist/{index-Ca8VIE4l.d.ts → index-Q1oG9yIT.d.ts} +0 -0
@@ -40,16 +40,20 @@
40
40
  gap: var(--astryx-spacing-2, 8px);
41
41
  box-sizing: border-box;
42
42
  min-width: 0;
43
- min-height: 32px;
43
+ min-height: var(--astryx-spacing-8, 2rem);
44
44
  padding-inline: var(--astryx-spacing-2, 8px);
45
45
  border-radius: var(--astryx-radius-element, 0.625rem);
46
46
  color: var(--astryx-color-text-primary);
47
- font-size: var(--astryx-font-size-lg, 1.0625rem);
47
+ font-size: var(--astryx-text-large-size, 1.0625rem);
48
48
  font-weight: var(--astryx-font-weight-semibold, 600);
49
- line-height: 1.4118;
49
+ line-height: var(--astryx-text-large-leading, 1.4118);
50
50
  text-decoration: none;
51
51
  }
52
52
 
53
+ .astryx-top-nav-heading:has(.astryx-nav-icon) {
54
+ padding-inline-start: 0;
55
+ }
56
+
53
57
  .astryx-top-nav-heading--link:hover,
54
58
  .astryx-top-nav-heading--echo:hover {
55
59
  background: var(--astryx-color-overlay-hover);
@@ -95,9 +99,9 @@
95
99
 
96
100
  .astryx-top-nav-heading__title {
97
101
  overflow: hidden;
98
- font-size: var(--astryx-font-size-lg, 1.0625rem);
102
+ font-size: var(--astryx-text-large-size, 1.0625rem);
99
103
  font-weight: var(--astryx-font-weight-semibold, 600);
100
- line-height: 1.4118;
104
+ line-height: var(--astryx-text-large-leading, 1.4118);
101
105
  text-overflow: ellipsis;
102
106
  white-space: nowrap;
103
107
  }
@@ -160,7 +164,9 @@
160
164
  padding-block: var(--astryx-spacing-1-5, 6px);
161
165
  padding-inline: var(--astryx-spacing-3, 12px);
162
166
  color: var(--astryx-color-text-secondary, #525252);
167
+ font-size: var(--astryx-text-label-size, 0.875rem);
163
168
  font-weight: var(--astryx-font-weight-medium, 500);
169
+ line-height: var(--astryx-text-label-leading, 1.4286);
164
170
  text-decoration: none;
165
171
  }
166
172
 
@@ -174,7 +180,7 @@
174
180
  .astryx-top-nav-menu__trigger {
175
181
  display: inline-flex;
176
182
  align-items: center;
177
- gap: var(--astryx-spacing-1, 4px);
183
+ gap: var(--astryx-spacing-2, 8px);
178
184
  height: 32px;
179
185
  padding-inline: var(--astryx-spacing-3, 12px);
180
186
  border: 0;
@@ -199,6 +205,13 @@
199
205
  outline-offset: var(--astryx-focus-outline-offset);
200
206
  }
201
207
 
208
+ /* 原版把下拉箭头钉在 1em(跟随标签字号),不用 sm 的 16px 盒子。 */
209
+ .astryx-top-nav-menu__trigger .astryx-icon.astryx-top-nav-menu__chevron {
210
+ width: 1em;
211
+ height: 1em;
212
+ font-size: inherit;
213
+ }
214
+
202
215
  .astryx-top-nav-menu__chevron {
203
216
  transition: transform var(--astryx-duration-fast-max) var(--astryx-ease-standard);
204
217
  }
@@ -64,7 +64,7 @@
64
64
  border-radius: inherit;
65
65
  background-color: transparent;
66
66
  pointer-events: none;
67
- transition: background-color var(--astryx-duration-fast, 125ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
67
+ transition: background-color var(--astryx-duration-exit, 175ms) var(--astryx-ease-exit, cubic-bezier(0.3, 0, 0.6, 0.6));
68
68
  }
69
69
 
70
70
  .astryx-tree-list__content[data-density='compact'] {
@@ -178,7 +178,6 @@
178
178
  justify-content: center;
179
179
  width: var(--astryx-spacing-4, 16px);
180
180
  height: var(--astryx-spacing-4, 16px);
181
- margin-inline: var(--astryx-spacing-1, 4px) calc(var(--astryx-spacing-1, 4px) * -1);
182
181
  padding: 0;
183
182
  border: 0;
184
183
  border-radius: var(--astryx-radius-inner, 0.375rem);
@@ -191,7 +190,7 @@
191
190
  width: var(--astryx-spacing-4, 16px);
192
191
  height: var(--astryx-spacing-4, 16px);
193
192
  font-size: var(--astryx-spacing-4, 16px);
194
- transition: transform var(--astryx-duration-fast, 125ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
193
+ transition: transform var(--astryx-duration-fast, 125ms) var(--astryx-ease-move, cubic-bezier(0.24, 1, 0.4, 1));
195
194
  }
196
195
 
197
196
  .astryx-tree-list__chevron[data-state='expanded'] .astryx-icon {
package/styles.css CHANGED
@@ -44,6 +44,7 @@
44
44
  @import './styles/hover-card.css';
45
45
  @import './styles/icon.css';
46
46
  @import './styles/indicator-focus-ring.css';
47
+ @import './styles/info-tip.css';
47
48
  @import './styles/kbd.css';
48
49
  @import './styles/keyboard-hint.css';
49
50
  @import './styles/layer.css';
@@ -80,6 +81,7 @@
80
81
  @import './styles/stack.css';
81
82
  @import './styles/status-dot.css';
82
83
  @import './styles/stepper.css';
84
+ @import './styles/stepper-track.css';
83
85
  @import './styles/switch.css';
84
86
  @import './styles/tab-list.css';
85
87
  @import './styles/tab-menu.css';
@@ -1,339 +0,0 @@
1
- import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-BmZyeKWE.js";
2
- import { i as isFocusable } from "./focus-l8jVTcqd.js";
3
- import { n as useLayer, t as useMergedRefs } from "./useMergedRefs-CG0YVRL-.js";
4
- import { t as _sfc_main$1 } from "./LayerContentBoundary-CvsKxwwm.js";
5
- import { t as useHoverLayerDismiss } from "./useHoverLayerDismiss-kYJ_NqL4.js";
6
- import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, mergeProps, nextTick, onMounted, onScopeDispose, onUpdated, openBlock, ref, renderSlot, shallowRef, toDisplayString, toValue, unref, useAttrs, vShow, watch, withCtx, withDirectives } from "vue";
7
- import "../styles/tooltip.css";
8
- //#region src/Tooltip/useTooltip.ts
9
- const GAP = 4;
10
- /** 指针离开触发器到进入气泡之间的宽限时间。 */
11
- const HOVER_BRIDGE_DELAY = 100;
12
- const ACTION_TAGS = [
13
- "A",
14
- "BUTTON",
15
- "INPUT",
16
- "SELECT",
17
- "TEXTAREA"
18
- ];
19
- function matchesFocusVisible(element) {
20
- try {
21
- return element.matches(":focus-visible");
22
- } catch {
23
- return false;
24
- }
25
- }
26
- /**
27
- * 对应原版 Astryx 的 `hooks/useTooltip`:悬停和焦点触发的文字提示。
28
- * 负责延迟显示、焦点处理、`aria-describedby` 关联和定位,`Tooltip` 组件内部也用它。
29
- *
30
- * ```ts
31
- * const { triggerRef, contentRef, contentStyle, contentProps } = useTooltip()
32
- * ```
33
- */
34
- function useTooltip(options = {}) {
35
- const triggerRef = shallowRef(null);
36
- const isControlled = computed(() => toValue(options.isOpen) !== void 0);
37
- const isTouchPointer = ref(false);
38
- const layer = useLayer({
39
- mode: "context",
40
- anchor: triggerRef,
41
- placement: () => toValue(options.placement) ?? "above",
42
- alignment: () => toValue(options.alignment) ?? "center",
43
- gap: GAP,
44
- onShow: () => options.onShow?.(),
45
- onHide: () => options.onHide?.()
46
- });
47
- const isOpen = computed(() => toValue(options.isOpen) ?? layer.isOpen.value);
48
- function isEnabled() {
49
- return toValue(options.isEnabled) ?? true;
50
- }
51
- function focusTriggerMode() {
52
- return toValue(options.focusTrigger) ?? "auto";
53
- }
54
- function touchTriggerMode() {
55
- return toValue(options.touchTrigger) ?? "auto";
56
- }
57
- let showTimer;
58
- let hideTimer;
59
- function clearTimers() {
60
- clearTimeout(showTimer);
61
- clearTimeout(hideTimer);
62
- showTimer = void 0;
63
- hideTimer = void 0;
64
- }
65
- function showNow() {
66
- clearTimers();
67
- if (!isEnabled() || isControlled.value) return;
68
- layer.show();
69
- }
70
- function hideNow() {
71
- clearTimers();
72
- if (isControlled.value) return;
73
- layer.hide();
74
- }
75
- function scheduleShow() {
76
- if (!isEnabled() || isControlled.value) return;
77
- clearTimers();
78
- showTimer = setTimeout(showNow, toValue(options.delay) ?? 200);
79
- }
80
- function scheduleHide() {
81
- if (isControlled.value) return;
82
- clearTimers();
83
- const wait = toValue(options.hideDelay) ?? 0;
84
- hideTimer = setTimeout(hideNow, wait > 0 ? wait : HOVER_BRIDGE_DELAY);
85
- }
86
- function cancelHide() {
87
- clearTimeout(hideTimer);
88
- hideTimer = void 0;
89
- }
90
- function onPointerEnter(event) {
91
- isTouchPointer.value = event.pointerType === "touch";
92
- }
93
- function onMouseEnter() {
94
- if (isTouchPointer.value) return;
95
- scheduleShow();
96
- }
97
- function onMouseLeave(event) {
98
- if (isTouchPointer.value) return;
99
- const next = event.relatedTarget;
100
- if (next instanceof Node && layer.contentRef.value?.contains(next)) return;
101
- scheduleHide();
102
- }
103
- function onTouchTap() {
104
- if (!isEnabled() || isControlled.value || touchTriggerMode() === "none") return;
105
- const trigger = triggerRef.value;
106
- if (touchTriggerMode() === "auto" && trigger != null && ACTION_TAGS.includes(trigger.tagName)) return;
107
- if (isOpen.value) hideNow();
108
- else showNow();
109
- }
110
- function onPointerDown(event) {
111
- if (event.pointerType === "touch") {
112
- onTouchTap();
113
- return;
114
- }
115
- if (isControlled.value) return;
116
- hideNow();
117
- }
118
- function onFocusIn(event) {
119
- if (!isEnabled() || isTouchPointer.value) return;
120
- if (!matchesFocusVisible(event.target)) return;
121
- showNow();
122
- }
123
- function onFocusOut() {
124
- scheduleHide();
125
- }
126
- useHoverLayerDismiss({
127
- isPresent: () => isOpen.value,
128
- getContainer: () => layer.contentRef.value,
129
- onDismiss() {
130
- clearTimers();
131
- if (isControlled.value) {
132
- options.onHide?.();
133
- return;
134
- }
135
- layer.hide();
136
- }
137
- });
138
- function shouldListenFocus(element) {
139
- return focusTriggerMode() === "always" || focusTriggerMode() === "auto" && isFocusable(element);
140
- }
141
- let bound = null;
142
- let describedByBefore = null;
143
- function bind(element) {
144
- if (bound === element) return;
145
- unbind();
146
- bound = element;
147
- element.addEventListener("pointerenter", onPointerEnter);
148
- element.addEventListener("mouseenter", onMouseEnter);
149
- element.addEventListener("mouseleave", onMouseLeave);
150
- element.addEventListener("pointerdown", onPointerDown);
151
- if (shouldListenFocus(element)) {
152
- element.addEventListener("focusin", onFocusIn);
153
- element.addEventListener("focusout", onFocusOut);
154
- }
155
- describedByBefore = element.getAttribute("aria-describedby");
156
- element.setAttribute("aria-describedby", [describedByBefore, layer.id].filter(Boolean).join(" "));
157
- }
158
- function unbind() {
159
- if (bound == null) return;
160
- bound.removeEventListener("pointerenter", onPointerEnter);
161
- bound.removeEventListener("mouseenter", onMouseEnter);
162
- bound.removeEventListener("mouseleave", onMouseLeave);
163
- bound.removeEventListener("pointerdown", onPointerDown);
164
- bound.removeEventListener("focusin", onFocusIn);
165
- bound.removeEventListener("focusout", onFocusOut);
166
- if (describedByBefore) bound.setAttribute("aria-describedby", describedByBefore);
167
- else bound.removeAttribute("aria-describedby");
168
- bound = null;
169
- describedByBefore = null;
170
- }
171
- watch(triggerRef, (element) => {
172
- if (element == null) unbind();
173
- else bind(element);
174
- }, { flush: "sync" });
175
- watch(() => toValue(options.isEnabled), (enabled) => {
176
- if (enabled !== false) return;
177
- clearTimeout(showTimer);
178
- showTimer = void 0;
179
- }, { flush: "sync" });
180
- function syncControlled(open) {
181
- layer.isOpen.value = open;
182
- }
183
- watch(() => toValue(options.isOpen), (open) => {
184
- clearTimers();
185
- if (open === void 0) return;
186
- syncControlled(open);
187
- });
188
- onMounted(() => {
189
- if (isControlled.value) {
190
- if (toValue(options.isOpen) === true) syncControlled(true);
191
- return;
192
- }
193
- if (options.isDefaultOpen === true) showNow();
194
- });
195
- onScopeDispose(() => {
196
- clearTimers();
197
- unbind();
198
- });
199
- const contentProps = computed(() => ({
200
- id: layer.id,
201
- role: "tooltip",
202
- onMouseenter: cancelHide,
203
- onMouseleave: scheduleHide
204
- }));
205
- return {
206
- isOpen,
207
- triggerRef,
208
- contentRef: layer.contentRef,
209
- id: layer.id,
210
- anchorId: layer.anchorId,
211
- describedBy: layer.id,
212
- contentStyle: layer.contentStyle,
213
- resolvedPlacement: layer.resolvedPlacement,
214
- contentProps
215
- };
216
- }
217
- //#endregion
218
- //#region src/Tooltip/Tooltip.vue
219
- const _hoisted_1 = ["data-placement"];
220
- const _sfc_main = /*@__PURE__*/ defineComponent({
221
- name: "AstryxTooltip",
222
- inheritAttrs: false,
223
- __name: "Tooltip",
224
- props: {
225
- content: { default: "" },
226
- placement: { default: "above" },
227
- alignment: { default: "center" },
228
- delay: { default: 200 },
229
- hideDelay: { default: 0 },
230
- focusTrigger: { default: "auto" },
231
- touchTrigger: { default: "auto" },
232
- isEnabled: {
233
- type: Boolean,
234
- default: true
235
- },
236
- hasHoverIndication: {
237
- type: [String, Boolean],
238
- default: "auto"
239
- },
240
- isOpen: {
241
- type: Boolean,
242
- default: void 0
243
- },
244
- isDefaultOpen: {
245
- type: Boolean,
246
- default: false
247
- },
248
- anchorsOnSelf: {
249
- type: Boolean,
250
- default: false
251
- },
252
- anchor: { default: void 0 }
253
- },
254
- emits: ["openChange"],
255
- setup(__props, { emit: __emit }) {
256
- const props = __props;
257
- const emit = __emit;
258
- const attrs = useAttrs();
259
- const instance = getCurrentInstance();
260
- const { triggerRef, contentRef, isOpen, contentStyle: bubbleStyle, resolvedPlacement, contentProps } = useTooltip({
261
- placement: () => props.placement,
262
- alignment: () => props.alignment,
263
- delay: () => props.delay,
264
- hideDelay: () => props.hideDelay,
265
- focusTrigger: () => props.focusTrigger,
266
- touchTrigger: () => props.touchTrigger,
267
- isEnabled: () => props.isEnabled,
268
- isOpen: () => props.isOpen,
269
- isDefaultOpen: props.isDefaultOpen,
270
- onShow: () => emit("openChange", true),
271
- onHide: () => emit("openChange", false)
272
- });
273
- const setContentRef = useMergedRefs([contentRef]);
274
- const wrapperRef = ref(null);
275
- const teleportTarget = useResolvedLayerTeleport(computed(() => props.anchor ?? wrapperRef.value));
276
- const isTextTrigger = ref(false);
277
- const showIndication = computed(() => props.hasHoverIndication === true || props.hasHoverIndication === "auto" && isTextTrigger.value);
278
- function resolveTrigger() {
279
- if (props.anchor) {
280
- isTextTrigger.value = false;
281
- return props.anchor;
282
- }
283
- const wrapper = wrapperRef.value;
284
- if (!wrapper) return null;
285
- if (props.anchorsOnSelf) {
286
- isTextTrigger.value = false;
287
- return wrapper;
288
- }
289
- const child = wrapper.firstElementChild;
290
- isTextTrigger.value = child == null && (wrapper.textContent ?? "").trim() !== "";
291
- if (child) return child;
292
- if (isTextTrigger.value) {
293
- wrapper.tabIndex = 0;
294
- return wrapper;
295
- }
296
- return null;
297
- }
298
- function findAnchorElement(vnode) {
299
- if (vnode.el instanceof HTMLElement) return vnode.el;
300
- if (vnode.component) return findAnchorElement(vnode.component.subTree);
301
- if (vnode.type === Teleport || !Array.isArray(vnode.children)) return null;
302
- for (const child of vnode.children) {
303
- if (child == null || typeof child !== "object") continue;
304
- const element = findAnchorElement(child);
305
- if (element) return element;
306
- }
307
- return null;
308
- }
309
- function syncTrigger() {
310
- if (props.anchorsOnSelf && !props.anchor) wrapperRef.value = instance ? findAnchorElement(instance.subTree) : null;
311
- triggerRef.value = resolveTrigger();
312
- }
313
- watch(() => props.anchor, () => {
314
- nextTick(syncTrigger);
315
- });
316
- onMounted(syncTrigger);
317
- onUpdated(syncTrigger);
318
- return (_ctx, _cache) => {
319
- return openBlock(), createElementBlock(Fragment, null, [!__props.anchorsOnSelf && !__props.anchor ? (openBlock(), createElementBlock("span", mergeProps({
320
- key: 0,
321
- ref_key: "wrapperRef",
322
- ref: wrapperRef
323
- }, unref(attrs), { class: ["astryx-tooltip-trigger", {
324
- "astryx-tooltip-trigger--text": isTextTrigger.value,
325
- "astryx-tooltip-trigger--indicated": showIndication.value
326
- }] }), [renderSlot(_ctx.$slots, "default")], 16)) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1), (openBlock(), createBlock(Teleport, { to: unref(teleportTarget) }, [createCommentVNode(" eslint-disable-next-line vue-a11y/mouse-events-have-key-events, vue-a11y/no-static-element-interactions -- 气泡上的鼠标事件仅用于指针移入气泡时保持显示;键盘焦点由触发元素的 focusin / focusout 处理。 "), withDirectives(createElementVNode("div", mergeProps({
327
- ref: unref(setContentRef),
328
- class: "astryx-tooltip",
329
- "data-placement": unref(resolvedPlacement),
330
- style: unref(bubbleStyle)
331
- }, unref(contentProps)), [createVNode(_sfc_main$1, null, {
332
- default: withCtx(() => [renderSlot(_ctx.$slots, "content", {}, () => [createTextVNode(toDisplayString(__props.content), 1)])]),
333
- _: 3
334
- })], 16, _hoisted_1), [[vShow, unref(isOpen)]])], 8, ["to"]))], 64);
335
- };
336
- }
337
- });
338
- //#endregion
339
- export { useTooltip as n, _sfc_main as t };
@@ -1,26 +0,0 @@
1
- import { n as LinkProps, t as LinkColor } from "./types-CbiqoBoG.js";
2
- //#region src/Link/Link.vue.d.ts
3
- type __VLS_Slots = {
4
- default: () => unknown;
5
- };
6
- declare const __VLS_base: import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
- click: (event: MouseEvent) => any;
8
- }, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{
9
- onClick?: ((event: MouseEvent) => any) | undefined;
10
- }>, {
11
- isDisabled: boolean;
12
- color: LinkColor;
13
- maxLines: number;
14
- isExternalLink: boolean;
15
- hasUnderline: boolean;
16
- isStandalone: boolean;
17
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
19
- declare const _default: typeof __VLS_export;
20
- type __VLS_WithSlots<T, S> = T & {
21
- new (): {
22
- $slots: S;
23
- };
24
- };
25
- //#endregion
26
- export { _default as t };
@@ -1,89 +0,0 @@
1
- import { l as TextWeight, o as TextSize } from "./types-BymI5mmm.js";
2
- import { Component } from "vue";
3
- //#region src/Link/types.d.ts
4
- type LinkColor = 'primary' | 'secondary' | 'accent' | 'inherit';
5
- type LinkSize = TextSize;
6
- type LinkWeight = TextWeight;
7
- /** Custom root used instead of `<a>` when `href` is set. Pass `RouterLink` or another component that accepts `href` and `to`. */
8
- type LinkRoot = string | Component;
9
- interface LinkProps {
10
- /**
11
- * Custom root used instead of `<a>` when `href` is set and the link is enabled.
12
- * The component receives `href` and `to`. Disabled links stay a plain anchor.
13
- */
14
- as?: LinkRoot;
15
- /**
16
- * Accessible name. Set this when the visible content is not the name,
17
- * for example an icon-only link. It replaces the link text for assistive technology.
18
- */
19
- label?: string;
20
- /**
21
- * Link destination URL.
22
- */
23
- href?: string;
24
- /**
25
- * Whether the link opens in a new tab and shows an external indicator.
26
- * @default false
27
- */
28
- isExternalLink?: boolean;
29
- /**
30
- * Screen-reader text after an external link. Defaults to the current locale.
31
- */
32
- newTabLabel?: string;
33
- /**
34
- * Whether the link always shows an underline.
35
- * @default false
36
- */
37
- hasUnderline?: boolean;
38
- /**
39
- * Text color.
40
- * @default 'accent'
41
- */
42
- color?: LinkColor;
43
- /**
44
- * Whether the link is disabled.
45
- * @default false
46
- */
47
- isDisabled?: boolean;
48
- /**
49
- * HTML target attribute.
50
- */
51
- target?: string;
52
- /**
53
- * HTML rel attribute.
54
- */
55
- rel?: string;
56
- /**
57
- * Causes the browser to download the linked URL.
58
- */
59
- download?: string | boolean;
60
- /**
61
- * 链接的 referrer 策略,原样转成 `referrerpolicy` 属性。
62
- */
63
- referrerPolicy?: string;
64
- /**
65
- * Tooltip text shown on hover and keyboard focus.
66
- */
67
- tooltip?: string;
68
- /**
69
- * Whether the link stands alone, rather than sitting inside body text.
70
- * Applies body font size and line height.
71
- * @default false
72
- */
73
- isStandalone?: boolean;
74
- /**
75
- * Font size. Uses the same steps as Text.
76
- */
77
- size?: LinkSize;
78
- /**
79
- * Font weight. `normal` is the same as `regular`.
80
- */
81
- weight?: LinkWeight;
82
- /**
83
- * Maximum lines before the label truncates. `0` does not truncate.
84
- * @default 0
85
- */
86
- maxLines?: number;
87
- }
88
- //#endregion
89
- export { LinkWeight as a, LinkSize as i, LinkProps as n, LinkRoot as r, LinkColor as t };
@@ -43,9 +43,9 @@ declare const __VLS_base: import("vue").DefineComponent<TokenProps, {}, {}, {},
43
43
  onRemove?: ((event: Event) => any) | undefined;
44
44
  }>, {
45
45
  size: TokenSize;
46
- color: "default" | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow";
47
- disabled: boolean;
48
46
  labelHidden: boolean;
47
+ disabled: boolean;
48
+ color: "default" | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow";
49
49
  removable: boolean;
50
50
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
51
51
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;