@astryx-vue/core 0.7.25 → 0.7.27

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 (380) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog--9IcMdY3.js → AlertDialog-DZpJzvOC.js} +30 -15
  3. package/dist/AppShell/index.d.ts +1 -1
  4. package/dist/AppShell/index.js +1 -1
  5. package/dist/{AppShell--izaf9Fx.js → AppShell-D7ik41g-.js} +3 -3
  6. package/dist/Avatar/index.js +1 -1
  7. package/dist/{Avatar-CqPpL59Q.js → Avatar-D_C9RBJb.js} +6 -5
  8. package/dist/AvatarGroup/index.d.ts +1 -1
  9. package/dist/AvatarGroup/index.js +1 -1
  10. package/dist/{AvatarGroup-lmO-a3Eq.js → AvatarGroup-CFvNDgU-.js} +3 -3
  11. package/dist/Badge/index.js +1 -1
  12. package/dist/{Badge-DByZSDmu.js → Badge-BbPS_49c.js} +7 -3
  13. package/dist/Banner/index.d.ts +1 -1
  14. package/dist/Banner/index.js +1 -1
  15. package/dist/{Banner-BpiQjQvG.js → Banner-C1B7DsHS.js} +3 -3
  16. package/dist/BottomSheet/index.js +2 -2
  17. package/dist/{BottomSheet-BKeyoL9N.js → BottomSheet-BECeWtEy.js} +2 -2
  18. package/dist/{BottomSheet-CMukh1iI.js → BottomSheet-CgOzQHaA.js} +4 -2
  19. package/dist/Breadcrumbs/index.js +2 -2
  20. package/dist/{Breadcrumbs-CH-rcc_-.js → Breadcrumbs-BgiZY7un.js} +8 -7
  21. package/dist/Button/index.d.ts +1 -1
  22. package/dist/Button/index.js +1 -1
  23. package/dist/{Button-7W3G5gok.js → Button-DsjdehLZ.js} +179 -17
  24. package/dist/ButtonGroup/index.d.ts +1 -1
  25. package/dist/ButtonGroup/index.js +1 -1
  26. package/dist/{ButtonGroup-UgiGP61q.js → ButtonGroup-CSW7a9vq.js} +14 -2
  27. package/dist/Calendar/index.d.ts +1 -1
  28. package/dist/Calendar/index.js +1 -1
  29. package/dist/{Calendar-DjhwshS8.js → Calendar-Bzgi-XyF.js} +12 -3
  30. package/dist/Card/index.d.ts +1 -1
  31. package/dist/Card/index.js +1 -1
  32. package/dist/{Card-H4571ZKi.js → Card-BbKFHWuD.js} +2 -0
  33. package/dist/Carousel/index.js +1 -1
  34. package/dist/{Carousel-RN3BV6qj.js → Carousel--VycM-Sa.js} +3 -3
  35. package/dist/Chat/index.d.ts +1 -1
  36. package/dist/Chat/index.js +1 -1
  37. package/dist/{Chat-D5cXLYlh.js → Chat-C1DlnlCQ.js} +30 -28
  38. package/dist/CheckboxInput/index.d.ts +1 -1
  39. package/dist/CheckboxInput/index.js +1 -1
  40. package/dist/{CheckboxInput-GFjf15n3.js → CheckboxInput-uk8nuCEf.js} +4 -4
  41. package/dist/CheckboxList/index.d.ts +1 -1
  42. package/dist/CheckboxList/index.js +1 -1
  43. package/dist/{CheckboxList-CJzRo5vd.js → CheckboxList-Dr4kQ-BC.js} +6 -6
  44. package/dist/Citation/index.js +1 -1
  45. package/dist/{Citation-C_XMPOpv.js → Citation-BAFsn6N1.js} +2 -2
  46. package/dist/ClickableCard/index.d.ts +1 -1
  47. package/dist/ClickableCard/index.js +1 -1
  48. package/dist/{ClickableCard-qeVRS9dw.js → ClickableCard-CvxSKkXh.js} +3 -2
  49. package/dist/Code/index.d.ts +1 -1
  50. package/dist/Code/index.js +1 -1
  51. package/dist/{CodeBlock-9NMYGL48.js → CodeBlock-PSnUWX57.js} +5 -3
  52. package/dist/Collapsible/index.d.ts +1 -1
  53. package/dist/Collapsible/index.js +1 -1
  54. package/dist/{Collapsible-CifnTLlc.js → Collapsible-C_tl5-L0.js} +2 -2
  55. package/dist/CommandPalette/index.js +1 -1
  56. package/dist/{CommandPalette-BbGFrwAI.js → CommandPalette-lewtyQrO.js} +7 -7
  57. package/dist/ComplexSelector/index.d.ts +1 -1
  58. package/dist/ComplexSelector/index.js +1 -1
  59. package/dist/{ComplexSelector-DMnzBMY1.js → ComplexSelector-BUnqjeW5.js} +14 -6
  60. package/dist/{ComponentIcon-hPmWTSXE.js → ComponentIcon-BRXBBKeG.js} +1 -1
  61. package/dist/ContextMenu/index.d.ts +1 -1
  62. package/dist/ContextMenu/index.js +2 -2
  63. package/dist/{ContextMenu-BD3pObnQ.js → ContextMenu-IDkvorRp.js} +10 -9
  64. package/dist/DateInput/index.d.ts +1 -1
  65. package/dist/DateInput/index.js +1 -1
  66. package/dist/{DateInput-CYFPGd__.js → DateInput-DTxxFz9-.js} +10 -10
  67. package/dist/DateRangeInput/index.d.ts +1 -1
  68. package/dist/DateRangeInput/index.js +1 -1
  69. package/dist/{DateRangeInput-BOdKqQUw.js → DateRangeInput-D4Us58KW.js} +8 -8
  70. package/dist/DateTimeInput/index.d.ts +1 -1
  71. package/dist/DateTimeInput/index.js +1 -1
  72. package/dist/{DateTimeInput-Bs4T8KWb.js → DateTimeInput-CliLnI7P.js} +9 -9
  73. package/dist/Dialog/index.d.ts +1 -1
  74. package/dist/Dialog/index.js +3 -3
  75. package/dist/{Dialog-vPGLWE3o.js → Dialog-B_s-w66_.js} +1 -1
  76. package/dist/{Dialog-D4V2ZnuS.js → Dialog-BtPktuiy.js} +3 -1
  77. package/dist/{DialogHeader-Dii5B7vE.js → DialogHeader-Hk419KW1.js} +4 -4
  78. package/dist/Drawer/index.d.ts +1 -1
  79. package/dist/Drawer/index.js +1 -1
  80. package/dist/{Drawer-CtuxdSAd.js → Drawer-DoQ9hjKz.js} +2 -2
  81. package/dist/DropdownMenu/index.js +3 -3
  82. package/dist/{DropdownMenu-CXyECszu.js → DropdownMenu-B2iga1fe.js} +18 -13
  83. package/dist/{DropdownMenu-BmAeVIu5.js → DropdownMenu-BF2Z5T4h.js} +9 -9
  84. package/dist/EmptyState/index.js +1 -1
  85. package/dist/{EmptyState-DaVNSbYi.js → EmptyState-v1cvHKav.js} +2 -2
  86. package/dist/Field/index.js +3 -3
  87. package/dist/{Field-CdrGdY7U.js → Field-if5a58LO.js} +2 -2
  88. package/dist/{FieldIcon-BB08VXf7.js → FieldIcon-DMtfe1Ne.js} +1 -1
  89. package/dist/{FieldInfoTip-CPhFmGaY.js → FieldInfoTip-BJAaKJjM.js} +2 -2
  90. package/dist/{FieldLabel-lJ1exgvq.js → FieldLabel-C-IaUcP4.js} +3 -3
  91. package/dist/FieldStatus/index.js +1 -1
  92. package/dist/{FieldStatus-CR-cK1rW.js → FieldStatus-DSUCli4W.js} +1 -1
  93. package/dist/FileInput/index.d.ts +1 -1
  94. package/dist/FileInput/index.js +1 -1
  95. package/dist/{FileInput-C85funO_.js → FileInput-0zBWfO8h.js} +8 -8
  96. package/dist/Grid/index.d.ts +1 -1
  97. package/dist/Grid/index.js +1 -1
  98. package/dist/{Grid-D1onTzyC.js → Grid-C0mp7fha.js} +1 -1
  99. package/dist/Heading/index.d.ts +1 -1
  100. package/dist/Heading/index.js +1 -1
  101. package/dist/Heading-C10qO8wg.js +114 -0
  102. package/dist/HoverCard/index.js +1 -1
  103. package/dist/{HoverCard-B9uadAzT.js → HoverCard-CLcbBLBN.js} +4 -3
  104. package/dist/Icon/index.js +1 -1
  105. package/dist/{Icon-DAcZMgiJ.js → Icon-BCHo7W0x.js} +1 -1
  106. package/dist/IconButton/index.js +1 -1
  107. package/dist/{IconButton-Cn4re9lo.js → IconButton-Crtfruc0.js} +1 -1
  108. package/dist/Indicator/index.js +1 -1
  109. package/dist/InfoTip/index.d.ts +1 -1
  110. package/dist/InfoTip/index.js +1 -1
  111. package/dist/{InfoTip-CQmrs5nz.js → InfoTip-DNQy7wqB.js} +3 -3
  112. package/dist/{InputClearButton-gGlttFrg.js → InputClearButton-DhvxPkK6.js} +3 -3
  113. package/dist/InputGroup/index.js +1 -1
  114. package/dist/{InputGroup-DQpDwkjF.js → InputGroup-B1kG0rBN.js} +22 -5
  115. package/dist/InternationalizationProvider/index.d.ts +1 -1
  116. package/dist/InternationalizationProvider/index.js +1 -1
  117. package/dist/{InternationalizationProvider-CWJDt7Qb.js → InternationalizationProvider-CUEIHCf4.js} +3 -3
  118. package/dist/{Item-Dbf2g0Ee.js → Item-Cfv4ALls.js} +5 -2
  119. package/dist/Kbd/index.js +1 -1
  120. package/dist/{Kbd-Dn1LTcNY.js → Kbd-DyxKNYtE.js} +41 -30
  121. package/dist/Layout/index.js +2 -2
  122. package/dist/{Layout-mHcy28k7.js → Layout-OHKb6r7D.js} +8 -5
  123. package/dist/{LayoutPanel-DpbBk6rj.js → LayoutPanel-D-rpTtC-.js} +6 -3
  124. package/dist/Lightbox/index.js +1 -1
  125. package/dist/{Lightbox-Duz-OrsN.js → Lightbox-B8uMFPOS.js} +96 -17
  126. package/dist/Link/index.d.ts +1 -1
  127. package/dist/Link/index.js +1 -1
  128. package/dist/{Link-C0NPH_Zy.js → Link-Kc2RQFHc.js} +4 -4
  129. package/dist/List/index.d.ts +1 -1
  130. package/dist/List/index.js +2 -2
  131. package/dist/{ListItem-C8F4r-3e.js → ListItem-2evjQQ7n.js} +1 -1
  132. package/dist/Markdown/index.js +2 -2
  133. package/dist/{Markdown-B0K6WhMg.js → Markdown-NVkHi_tk.js} +6 -6
  134. package/dist/MetadataList/index.js +1 -1
  135. package/dist/{MetadataList-wOngshS5.js → MetadataList-4GnMi6s9.js} +1 -1
  136. package/dist/MobileNav/index.js +1 -1
  137. package/dist/{MobileNavToggle-C8KAzhRl.js → MobileNavToggle-TMDrnXfG.js} +2 -2
  138. package/dist/MoreMenu/index.d.ts +1 -1
  139. package/dist/MoreMenu/index.js +1 -1
  140. package/dist/{MoreMenu-CPp7nRqq.js → MoreMenu-CpGEXWCd.js} +10 -10
  141. package/dist/MultiSelector/index.d.ts +1 -1
  142. package/dist/MultiSelector/index.js +1 -1
  143. package/dist/{MultiSelector-EuMT3jk8.js → MultiSelector-Baca6xNx.js} +12 -12
  144. package/dist/{NavDisclosure-BbRWuyhq.js → NavDisclosure-DG4jls5z.js} +1 -1
  145. package/dist/{NavHeadingSurface-DemUziLF.js → NavHeadingSurface-j2gzMVKt.js} +3 -3
  146. package/dist/NavItem/index.d.ts +1 -1
  147. package/dist/NavItem/index.js +1 -1
  148. package/dist/{NavItem-B_c92jqW.js → NavItem-BZLN0U5a.js} +1 -1
  149. package/dist/NavMenu/index.js +3 -3
  150. package/dist/{NavMenu-mZVfqNxt.js → NavMenu-t7WN2bcq.js} +1 -1
  151. package/dist/{NavMenuItem-Crc0y9_s.js → NavMenuItem-DIMQohIa.js} +2 -2
  152. package/dist/NumberInput/index.d.ts +1 -1
  153. package/dist/NumberInput/index.js +1 -1
  154. package/dist/{NumberInput-nhsOtHSM.js → NumberInput-BBFGZ4Fg.js} +17 -8
  155. package/dist/Outline/index.js +1 -1
  156. package/dist/{Outline-CXQKfopf.js → Outline-BgDOI3ar.js} +3 -3
  157. package/dist/OverflowList/index.d.ts +1 -1
  158. package/dist/OverflowList/index.js +1 -1
  159. package/dist/{OverflowList-BGHiFBEV.js → OverflowList-D4fC5s_q.js} +3 -3
  160. package/dist/Pagination/index.d.ts +1 -1
  161. package/dist/Pagination/index.js +1 -1
  162. package/dist/{Pagination-DtItBecM.js → Pagination-Do_MIlo4.js} +16 -4
  163. package/dist/Popover/index.d.ts +1 -1
  164. package/dist/Popover/index.js +1 -1
  165. package/dist/{Popover-DE_a8vx0.js → Popover-Bd93LlDd.js} +7 -7
  166. package/dist/PowerSearch/index.d.ts +1 -1
  167. package/dist/PowerSearch/index.js +1 -1
  168. package/dist/{PowerSearch-BPqinhNg.js → PowerSearch-DyqItMHo.js} +110 -41
  169. package/dist/ProgressBar/index.d.ts +1 -1
  170. package/dist/ProgressBar/index.js +1 -1
  171. package/dist/{ProgressBar-Dt5AS0GY.js → ProgressBar-gsm2A_cR.js} +1 -1
  172. package/dist/Radio/index.d.ts +1 -1
  173. package/dist/Radio/index.js +1 -1
  174. package/dist/{RadioGroup-DgD_qw8h.js → RadioGroup-Dzp4qSgm.js} +4 -4
  175. package/dist/RadioList/index.d.ts +1 -1
  176. package/dist/RadioList/index.js +1 -1
  177. package/dist/{RadioList-BTfVjABV.js → RadioList-CAIgB1j_.js} +1 -1
  178. package/dist/Resizable/index.d.ts +1 -1
  179. package/dist/Resizable/index.js +1 -1
  180. package/dist/{ResizeHandle-5JnYYMyi.js → ResizeHandle-GAmiHb0-.js} +1 -1
  181. package/dist/ScrollableArea/index.d.ts +1 -1
  182. package/dist/SegmentedControl/index.js +1 -1
  183. package/dist/{SegmentedControl-BOFsp4zL.js → SegmentedControl-Bs74LlvS.js} +3 -2
  184. package/dist/SelectableCard/index.d.ts +1 -1
  185. package/dist/SelectableCard/index.js +1 -1
  186. package/dist/{SelectableCard-DkAtLqr0.js → SelectableCard-BFCwgtWf.js} +3 -2
  187. package/dist/Selector/index.d.ts +1 -1
  188. package/dist/Selector/index.js +1 -1
  189. package/dist/{Selector-Bb0Tw0IX.js → Selector-B9lINQRM.js} +11 -10
  190. package/dist/SideNav/index.d.ts +1 -1
  191. package/dist/SideNav/index.js +1 -1
  192. package/dist/{SideNav-woP0TsbV.js → SideNav-DzZ12DIq.js} +8 -8
  193. package/dist/Slider/index.js +1 -1
  194. package/dist/{Slider-DPNiq0HG.js → Slider-Cuk2ul9w.js} +3 -3
  195. package/dist/Spinner/index.js +1 -1
  196. package/dist/{Spinner-CTWLR75x.js → Spinner-ke63bQPv.js} +1 -1
  197. package/dist/StatusDot/index.js +1 -1
  198. package/dist/{StatusDot-Bu_nCu0I.js → StatusDot-DF5wK42f.js} +1 -1
  199. package/dist/Stepper/index.d.ts +1 -1
  200. package/dist/Stepper/index.js +1 -1
  201. package/dist/{Stepper-Ca1DQGyG.js → Stepper-C68f_iJG.js} +3 -3
  202. package/dist/Switch/index.d.ts +1 -1
  203. package/dist/Switch/index.js +1 -1
  204. package/dist/{Switch-yKKscO-i.js → Switch-bnxiN6Qe.js} +4 -4
  205. package/dist/TabList/index.d.ts +1 -1
  206. package/dist/TabList/index.js +1 -1
  207. package/dist/{TabList-cg8Mrbs_.js → TabList-8dlO0Ws6.js} +12 -7
  208. package/dist/Table/index.d.ts +1 -1
  209. package/dist/Table/index.js +1 -1
  210. package/dist/{Table-rUgNSJgQ.js → Table-j_DCDbcI.js} +93 -44
  211. package/dist/Text/index.d.ts +2 -2
  212. package/dist/Text/index.js +3 -2
  213. package/dist/{Text-BShV9dky.js → Text-WB-fpFne.js} +32 -29
  214. package/dist/TextArea/index.d.ts +1 -1
  215. package/dist/TextArea/index.js +1 -1
  216. package/dist/{TextArea-D8703Iin.js → TextArea-Bzz_KcKT.js} +10 -10
  217. package/dist/TextInput/index.d.ts +1 -1
  218. package/dist/TextInput/index.js +1 -1
  219. package/dist/{TextInput-C3TcHG4h.js → TextInput-givkH9HQ.js} +9 -9
  220. package/dist/Theme/index.js +1 -1
  221. package/dist/{Theme-DkFv7FGK.js → Theme-BQe--DY6.js} +19 -6
  222. package/dist/Thumbnail/index.js +1 -1
  223. package/dist/{Thumbnail-7hvPR8TA.js → Thumbnail-CZOWP5HN.js} +6 -6
  224. package/dist/{TimeField-D2vnhUvT.js → TimeField-ByoS5s_I.js} +8 -8
  225. package/dist/TimeInput/index.d.ts +1 -1
  226. package/dist/TimeInput/index.js +1 -1
  227. package/dist/{TimeInput-D31lgw-s.js → TimeInput-D9kvMQso.js} +2 -2
  228. package/dist/Timer/index.js +1 -1
  229. package/dist/{Timer-D0A9hh4O.js → Timer-BD2gSoQ3.js} +1 -1
  230. package/dist/Timestamp/index.d.ts +1 -1
  231. package/dist/Timestamp/index.js +1 -1
  232. package/dist/{Timestamp-BCYaQaDQ.js → Timestamp-CEdNhKc5.js} +5 -5
  233. package/dist/Toast/index.js +1 -1
  234. package/dist/{Toast-BpumSIBN.js → Toast-CnZrcU-G.js} +4 -4
  235. package/dist/ToggleButton/index.d.ts +1 -1
  236. package/dist/ToggleButton/index.js +1 -1
  237. package/dist/{ToggleButton-DYGsPjtx.js → ToggleButton-BMn4yJXe.js} +27 -8
  238. package/dist/Token/index.d.ts +1 -1
  239. package/dist/Token/index.js +1 -1
  240. package/dist/{Token-DV53YBsy.js → Token-DWCDMawn.js} +96 -28
  241. package/dist/Tokenizer/index.d.ts +1 -1
  242. package/dist/Tokenizer/index.js +1 -1
  243. package/dist/{Tokenizer-DlptPLpP.js → Tokenizer-R0eC1BOk.js} +92 -9
  244. package/dist/Toolbar/index.d.ts +1 -1
  245. package/dist/Toolbar/index.js +1 -1
  246. package/dist/{Toolbar-D5UI1JLe.js → Toolbar-BH_E0F0G.js} +4 -1
  247. package/dist/Tooltip/index.js +2 -2
  248. package/dist/{Tooltip-BfKegFfq.js → Tooltip-CGHpFMnc.js} +1 -1
  249. package/dist/TopNav/index.d.ts +1 -1
  250. package/dist/TopNav/index.js +1 -1
  251. package/dist/{TopNav-ZTKVEADp.js → TopNav-DHunql9h.js} +7 -7
  252. package/dist/TreeList/index.js +1 -1
  253. package/dist/{TreeList-CLWHRRDM.js → TreeList-Dg5gtkOu.js} +6 -4
  254. package/dist/Typeahead/index.d.ts +1 -1
  255. package/dist/Typeahead/index.js +2 -2
  256. package/dist/{Typeahead-Dd8pq0fI.js → Typeahead-BkmCC6DX.js} +47 -24
  257. package/dist/{TypeaheadMenu-Bu9HO-wZ.js → TypeaheadMenu-CFeJCv-6.js} +1 -1
  258. package/dist/composables/index.d.ts +2 -2
  259. package/dist/composables/index.js +12 -9
  260. package/dist/{composables-DamLUqw3.js → composables-DqJzanJ5.js} +5 -24
  261. package/dist/{context-BLSiTojH.js → context-CV6TrhJY.js} +57 -3
  262. package/dist/context-CZP3jfy-.js +125 -0
  263. package/dist/{context-Bv6lAoqu.js → context-CjX2RSDn.js} +14 -2
  264. package/dist/{index-mkbGYz8f.d.ts → index-3t5RAfNP.d.ts} +2 -2
  265. package/dist/{index-CO9GW-ik.d.ts → index-B-3EGjfQ.d.ts} +1 -1
  266. package/dist/{index-TXcNH86P.d.ts → index-B1eCxBCY.d.ts} +1 -1
  267. package/dist/{index-wY6dKz6c.d.ts → index-BEZ4ezJk.d.ts} +2 -2
  268. package/dist/{index-EvhMa33P.d.ts → index-BSlzqFzV.d.ts} +10 -5
  269. package/dist/{index-DEQ5cnUV.d.ts → index-BTljzczH.d.ts} +4 -1
  270. package/dist/{index-D4BeRDzX.d.ts → index-Be7N3B5F.d.ts} +3 -3
  271. package/dist/{index-CTjkJP4x.d.ts → index-Bgk1Rj2A.d.ts} +1 -1
  272. package/dist/{index-CFm1rPma.d.ts → index-BjbPK91B.d.ts} +1 -1
  273. package/dist/{index-UFlyBbRd.d.ts → index-C3f1zsJR.d.ts} +2 -2
  274. package/dist/{index-D97pQbua.d.ts → index-C89cIh4E.d.ts} +3 -5
  275. package/dist/{index-C1zwvxPH.d.ts → index-CL8JvxHW.d.ts} +2 -2
  276. package/dist/{index--uIQXVJ7.d.ts → index-CM8KfpBL.d.ts} +2 -2
  277. package/dist/{index-BMCjAlq6.d.ts → index-CfPGC9aW.d.ts} +1 -1
  278. package/dist/index-CtYlR9Cu.d.ts +46 -0
  279. package/dist/{index-Uh-ddE5F.d.ts → index-D21zdEgS.d.ts} +1 -1
  280. package/dist/{index-CCYGMtZy.d.ts → index-D4zmrP2a.d.ts} +65 -65
  281. package/dist/{index-DX4HQToB.d.ts → index-D6pP-H_N.d.ts} +1 -1
  282. package/dist/{index-DAs54mND.d.ts → index-DCU6dy7n.d.ts} +12 -2
  283. package/dist/{index-MEix_m1o.d.ts → index-DaXzQxos.d.ts} +2 -2
  284. package/dist/{index-Ds4OafGN.d.ts → index-DkF8wxHr.d.ts} +4 -4
  285. package/dist/{index-BnEhvmdR.d.ts → index-DyALKpjX.d.ts} +6 -4
  286. package/dist/{index-DZKv1WNB.d.ts → index-IfiA8CSr.d.ts} +3 -3
  287. package/dist/{index-COgrQZIL.d.ts → index-YKCx03zD.d.ts} +2 -2
  288. package/dist/{index-CEHqYyz5.d.ts → index-_VG-Bc2K.d.ts} +4 -4
  289. package/dist/{index-HLkEFNeu.d.ts → index-gw92L7ZG.d.ts} +13 -3
  290. package/dist/{index-GksCg4a4.d.ts → index-rbhycKiu.d.ts} +4 -4
  291. package/dist/{index-Cy1rEWC-.d.ts → index-rszZajcw.d.ts} +1 -1
  292. package/dist/index.d.ts +31 -31
  293. package/dist/index.js +128 -124
  294. package/dist/layerSurfacePress-C3PjPpJP.js +29 -0
  295. package/dist/{loadCatalog-85MyL2bm.js → loadCatalog-Bulk4H7U.js} +2 -2
  296. package/dist/{loadCatalog-DSRSkHnY.d.ts → loadCatalog-D_uf2uX1.d.ts} +36 -0
  297. package/dist/locale/index.d.ts +2 -2
  298. package/dist/locale/index.js +4 -4
  299. package/dist/{locale-C7RSY-JG.js → locale-BA52q_fh.js} +1 -1
  300. package/dist/{usePressFeedback-Dt76SpLj.js → pressFeedback-Bwwpex9q.js} +11 -49
  301. package/dist/{searchResultMessage-U_4q8zX3.js → searchResultMessage-CFmIy2Da.js} +2 -2
  302. package/dist/{sharedResizeObserver-9EFWnSWH.js → sharedResizeObserver-BekhnB3E.js} +5 -1
  303. package/dist/slotContent-CNWOrGOr.js +14 -0
  304. package/dist/{slug-DAK6hdbr.js → slug-D6ln5PTq.js} +3 -1
  305. package/dist/strayClick-CY-_ImKv.js +60 -0
  306. package/dist/textDirection-D4ObTwbB.js +32 -0
  307. package/dist/tooltipTriggerRules-Bg4tG8w2.js +53 -0
  308. package/dist/unicodeRegExp-B7yQnpFC.js +14 -0
  309. package/dist/{upstreamMap-CZUPxbc9.js → upstreamMap-DrkVNtXW.js} +2 -0
  310. package/dist/useActionGroupTracking-BncJjk1A.js +131 -0
  311. package/dist/{useAnchoredListbox-6t5zSSz1.js → useAnchoredListbox-9Gn8asBR.js} +3 -2
  312. package/dist/useCoarsePointer-GItEMrjX.js +21 -0
  313. package/dist/{usePositionedLayer-psKf3ano.js → useDismiss-0-Z-9D0A.js} +52 -52
  314. package/dist/{useFileSelection-BPtaegqK.js → useFileSelection-B44UpbvF.js} +14 -4
  315. package/dist/{useIndicator-DGWEjVpB.js → useIndicator--9mGGlT2.js} +2 -2
  316. package/dist/{useInputContainer-BP3u3hGz.js → useInputContainer-BpLtCA-U.js} +1 -1
  317. package/dist/{useInputStatusIcon-CTF4yF3e.js → useInputStatusIcon-DCnx00BM.js} +2 -2
  318. package/dist/{useLayer-Byjda3dD.js → useLayer-CED-g4Q2.js} +1 -1
  319. package/dist/{useMenuDrillIn-DJ4U_hF7.js → useMenuDrillIn-C5eJCuO1.js} +2 -2
  320. package/dist/{useMenuPress-8foxY8z4.js → useMenuPress-BLPwY_m1.js} +2 -59
  321. package/dist/usePressFeedback-Bcjsw9vv.js +49 -0
  322. package/dist/{useTooltip-BKsCTWdb.js → useTooltip-D8Tq7-yd.js} +36 -22
  323. package/dist/{useTranslator-BDUOzbP_.js → useTranslator-Q85hi4qz.js} +2 -2
  324. package/dist/useTruncation-C4pdlaXa.js +135 -0
  325. package/dist/useTruncationTooltip-BNk2xslw.js +106 -0
  326. package/dist/utils/index.js +1 -1
  327. package/dist/{utils-DsFqXaGf.js → utils-BTkg5Ie9.js} +2 -1
  328. package/locales/en.json +8 -0
  329. package/package.json +1 -1
  330. package/styles/alert-dialog.css +19 -0
  331. package/styles/badge.css +7 -2
  332. package/styles/banner.css +6 -0
  333. package/styles/button-group.css +17 -0
  334. package/styles/button.css +13 -4
  335. package/styles/calendar.css +38 -0
  336. package/styles/chat.css +4 -0
  337. package/styles/checkbox-indicator.css +9 -9
  338. package/styles/checkbox-input.css +4 -1
  339. package/styles/code.css +4 -1
  340. package/styles/context-menu.css +4 -0
  341. package/styles/dialog-header.css +2 -0
  342. package/styles/dropdown-menu.css +2 -0
  343. package/styles/empty-state.css +2 -0
  344. package/styles/field.css +2 -0
  345. package/styles/heading.css +4 -0
  346. package/styles/hover-card.css +2 -0
  347. package/styles/input-group.css +1 -0
  348. package/styles/layer.css +2 -0
  349. package/styles/lightbox.css +78 -0
  350. package/styles/link.css +5 -0
  351. package/styles/list.css +10 -1
  352. package/styles/markdown.css +1 -0
  353. package/styles/metadata-list.css +1 -1
  354. package/styles/more-menu.css +7 -0
  355. package/styles/multi-selector.css +2 -0
  356. package/styles/pagination.css +1 -0
  357. package/styles/power-search.css +2 -0
  358. package/styles/radio-indicator.css +21 -4
  359. package/styles/segmented-control.css +1 -0
  360. package/styles/side-nav.css +1 -0
  361. package/styles/slider.css +3 -0
  362. package/styles/stepper.css +1 -0
  363. package/styles/switch.css +2 -1
  364. package/styles/tab-list.css +3 -0
  365. package/styles/table.css +4 -1
  366. package/styles/text-area.css +1 -0
  367. package/styles/text-input.css +1 -0
  368. package/styles/text.css +8 -0
  369. package/styles/theme.css +5 -1
  370. package/styles/toast.css +2 -0
  371. package/styles/toggle-button.css +17 -0
  372. package/styles/token.css +14 -9
  373. package/styles/tokenizer.css +1 -0
  374. package/styles/toolbar.css +19 -0
  375. package/dist/Heading-D0zL1j5T.js +0 -99
  376. package/dist/context-B6UElI5X.js +0 -5
  377. package/dist/index-LySSG_PR.d.ts +0 -27
  378. package/dist/useTruncation-C02rA1-c.js +0 -102
  379. package/dist/{index-BJ9Wim6J.d.ts → index-BqhgeAT4.d.ts} +1 -1
  380. package/dist/{useRestoreFocus-XEKs5-gp.js → useRestoreFocus-CEG0n2AK.js} +1 -1
@@ -191,16 +191,19 @@
191
191
  .astryx-tab--size-sm {
192
192
  min-height: 28px;
193
193
  font-size: var(--astryx-text-label-size, 0.875rem);
194
+ line-height: var(--astryx-text-label-leading, 1.4286);
194
195
  }
195
196
 
196
197
  .astryx-tab--size-md {
197
198
  min-height: 32px;
198
199
  font-size: var(--astryx-text-label-size, 0.875rem);
200
+ line-height: var(--astryx-text-label-leading, 1.4286);
199
201
  }
200
202
 
201
203
  .astryx-tab--size-lg {
202
204
  min-height: 36px;
203
205
  font-size: var(--astryx-text-label-size, 0.875rem);
206
+ line-height: var(--astryx-text-label-leading, 1.4286);
204
207
  }
205
208
 
206
209
  .astryx-tab:hover:not(:disabled, [aria-disabled='true']) {
package/styles/table.css CHANGED
@@ -118,11 +118,13 @@
118
118
  插件渲染的格子不设字号,继承环境字号。 */
119
119
  .astryx-table td:not(.astryx-table__group, .astryx-table__panel, .astryx-table__empty) {
120
120
  font-size: var(--astryx-text-body-size, 0.875rem);
121
+ line-height: var(--astryx-text-body-leading, 1.4286);
121
122
  }
122
123
 
123
124
  .astryx-table th {
124
125
  color: var(--astryx-color-text-secondary, light-dark(#525252, #a3a3a3));
125
126
  font-size: var(--astryx-text-label-size, 1rem);
127
+ line-height: var(--astryx-text-label-leading, 1.4286);
126
128
  font-weight: var(--astryx-font-weight-semibold, 600);
127
129
  border-bottom: var(--astryx-border-width, 1px) solid var(--astryx-color-border, light-dark(#ebebeb, #ffffff1a));
128
130
  overflow: hidden;
@@ -239,7 +241,7 @@
239
241
  }
240
242
 
241
243
  .astryx-table__sort-rank {
242
- color: var(--astryx-color-accent, light-dark(#262626, #ebebeb));
244
+ color: var(--astryx-color-text-accent, light-dark(#262626, #ebebeb));
243
245
  font-size: 10px;
244
246
  line-height: 1;
245
247
  }
@@ -630,6 +632,7 @@
630
632
  .astryx-table__row-index {
631
633
  font-family: var(--astryx-font-family-code, ui-monospace, monospace);
632
634
  font-size: var(--astryx-text-supporting-size, 0.75rem);
635
+ line-height: var(--astryx-text-supporting-leading, 1.6667);
633
636
  font-variant-numeric: tabular-nums;
634
637
  color: var(--astryx-color-text-secondary, light-dark(#525252, #a3a3a3));
635
638
  }
@@ -103,6 +103,7 @@
103
103
  align-items: center;
104
104
  color: var(--astryx-color-text-secondary, #525252);
105
105
  font-size: var(--astryx-text-supporting-size, 12px);
106
+ line-height: var(--astryx-text-supporting-leading, 1.6667);
106
107
  }
107
108
 
108
109
  .astryx-text-area-icon,
@@ -73,6 +73,7 @@
73
73
  align-items: center;
74
74
  color: var(--astryx-color-text-secondary, #525252);
75
75
  font-size: var(--astryx-text-supporting-size, 12px);
76
+ line-height: var(--astryx-text-supporting-leading, 1.6667);
76
77
  }
77
78
 
78
79
  .astryx-text-input-icon,
package/styles/text.css CHANGED
@@ -7,6 +7,12 @@
7
7
  font-family: var(--astryx-font-family-body, Figtree, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
8
8
  font-size: var(--astryx-text-body-size, 0.875rem);
9
9
  line-height: var(--astryx-text-body-leading, 1.4286);
10
+ /*
11
+ * 比一行还长的串(URL、ID)换行,不撑出横向滚动(WCAG 2.2 1.4.10)。
12
+ * break-word 不改最小内容宽度,表格和自适应列照旧排版;flex 子项仍要容器给 min-width: 0。
13
+ * 用 anywhere 换行的容器设置私有变量,里面的文字跟着用 anywhere。截断的类在后面会覆盖它。
14
+ */
15
+ overflow-wrap: var(--_astryx-text-overflow-wrap, break-word);
10
16
  }
11
17
 
12
18
  .astryx-text--block {
@@ -139,6 +145,8 @@
139
145
 
140
146
  .astryx-text--word-break-word {
141
147
  overflow-wrap: anywhere;
148
+ /* Text 和 Heading 在里面也按 anywhere 换行。 */
149
+ --_astryx-text-overflow-wrap: anywhere;
142
150
  word-break: break-word;
143
151
  }
144
152
 
package/styles/theme.css CHANGED
@@ -9,8 +9,12 @@
9
9
  display: contents;
10
10
  color: var(--astryx-color-text-primary, light-dark(#171717, #fafafa));
11
11
  font-family: var(--astryx-font-family-body, Figtree, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
12
- /* 只继承字号的文字取主题正文字号,嵌套主题也一样(同上游 dda98593dc)。 */
12
+ /*
13
+ * 只继承字号和行高的文字取主题的正文字号和正文行高,嵌套主题也一样。
14
+ * 不这样写的话,行高会落回 reset 里的 1.5,不跟主题走。
15
+ */
13
16
  font-size: var(--astryx-text-body-size, 0.875rem);
17
+ line-height: var(--astryx-text-body-leading, 1.4286);
14
18
  /*
15
19
  * These aliases are also declared on :root, where var() is substituted
16
20
  * once. Restating them here makes the subtree resolve them again, including
package/styles/toast.css CHANGED
@@ -195,6 +195,8 @@
195
195
  flex: 1;
196
196
  min-width: 0;
197
197
  overflow-wrap: anywhere;
198
+ /* Text 和 Heading 在里面也按 anywhere 换行。 */
199
+ --_astryx-text-overflow-wrap: anywhere;
198
200
  }
199
201
 
200
202
  /* 高度固定成一行正文,28px 的关闭按钮居中溢出,卡片不被它撑高。 */
@@ -64,4 +64,21 @@
64
64
  background-color: Highlight;
65
65
  }
66
66
  }
67
+
68
+ /*
69
+ * 跟踪滑动时(触屏为主的设备上),沿着按钮排列方向的拖动留给滑动选按钮,另一个方向照常滚动页面,
70
+ * 按住也不选中文字、不弹系统菜单。
71
+ */
72
+ .astryx-toggle-button-group[data-press-tracking] {
73
+ -webkit-touch-callout: none;
74
+ user-select: none;
75
+ }
76
+
77
+ .astryx-toggle-button-group[data-orientation='horizontal'][data-press-tracking] {
78
+ touch-action: pan-y pinch-zoom;
79
+ }
80
+
81
+ .astryx-toggle-button-group[data-orientation='vertical'][data-press-tracking] {
82
+ touch-action: pan-x pinch-zoom;
83
+ }
67
84
  }
package/styles/token.css CHANGED
@@ -87,10 +87,12 @@
87
87
  align-items: center;
88
88
  }
89
89
 
90
+ /* 标签和两侧内容互相隔离,混排方向时不会把旁边的字符拉进来重排。 */
90
91
  .astryx-token-label {
91
92
  min-width: 0;
92
93
  overflow: hidden;
93
94
  text-overflow: ellipsis;
95
+ unicode-bidi: isolate;
94
96
  }
95
97
 
96
98
  .astryx-token-label.is-hidden {
@@ -150,11 +152,6 @@
150
152
  }
151
153
  }
152
154
 
153
- .astryx-token.is-interactive:focus-within {
154
- outline: var(--astryx-focus-outline-width, 2px) var(--astryx-focus-outline-style, solid) var(--astryx-focus-outline-color, var(--astryx-color-accent));
155
- outline-offset: 1px;
156
- }
157
-
158
155
  .astryx-token.is-disabled {
159
156
  cursor: default;
160
157
  opacity: 0.5;
@@ -172,15 +169,23 @@
172
169
  }
173
170
  }
174
171
 
175
- /* 不分层:文档页的 :focus-visible 会盖过分层里的 outline。 */
172
+ /*
173
+ * 不分层:文档页的 :focus-visible 会盖过分层里的 outline。
174
+ * 焦点环只画一个:token 自己的按钮或链接获得焦点时整颗 token 画环,删除按钮自己画环。
175
+ */
176
176
  .astryx-token-action:focus,
177
177
  .astryx-token-action:focus-visible,
178
- .astryx-token-remove:focus,
179
- .astryx-token-remove:focus-visible {
178
+ .astryx-token-remove:focus {
180
179
  outline: none;
181
180
  }
182
181
 
183
- .astryx-token.is-interactive:focus-within {
182
+ .astryx-token.is-interactive:focus-visible,
183
+ .astryx-token.is-interactive:has(> .astryx-token-action:focus-visible) {
184
184
  outline: var(--astryx-focus-outline-width, 2px) var(--astryx-focus-outline-style, solid) var(--astryx-focus-outline-color, var(--astryx-color-accent));
185
185
  outline-offset: 1px;
186
186
  }
187
+
188
+ .astryx-token-remove:focus-visible {
189
+ outline: var(--astryx-focus-outline-width, 2px) var(--astryx-focus-outline-style, solid) var(--astryx-focus-outline-color, var(--astryx-color-accent));
190
+ outline-offset: 0;
191
+ }
@@ -165,6 +165,7 @@
165
165
  flex: none;
166
166
  color: var(--astryx-color-text-secondary, #525252);
167
167
  font-size: var(--astryx-text-supporting-size, 0.75rem);
168
+ line-height: var(--astryx-text-supporting-leading, 1.6667);
168
169
  font-weight: var(--astryx-font-weight-medium, 500);
169
170
  }
170
171
 
@@ -71,5 +71,24 @@
71
71
  min-width: 0;
72
72
  }
73
73
  .astryx-toolbar__slot--end { justify-content: flex-end; margin-inline-start: auto; }
74
+
75
+ /*
76
+ * 只有首尾两条道时,每条道的控件尽量排在一行里,宽度以工具栏为上限。
77
+ * 两条道挤不下就整行换行,尾部那条挪到下一行,而不是把首部挤到标题折行、徽标被截。
78
+ * 尾部那条撑满它所在的行,换到下一行后控件仍然靠行尾。
79
+ */
80
+ .astryx-toolbar--two-lane {
81
+ flex-wrap: wrap;
82
+ }
83
+
84
+ .astryx-toolbar--two-lane > .astryx-toolbar__slot--start,
85
+ .astryx-toolbar--two-lane > .astryx-toolbar__slot--end {
86
+ flex-wrap: wrap;
87
+ min-width: fit-content;
88
+ }
89
+
90
+ .astryx-toolbar--two-lane > .astryx-toolbar__slot--end {
91
+ flex-grow: 1;
92
+ }
74
93
  .astryx-toolbar--centered .astryx-toolbar__slot--end { margin-inline-start: 0; }
75
94
  }
@@ -1,99 +0,0 @@
1
- import { n as useTruncation, t as truncatePlacement } from "./useTruncation-C02rA1-c.js";
2
- import { t as _sfc_main$1 } from "./Tooltip-BfKegFfq.js";
3
- import { computed, createBlock, defineComponent, mergeProps, openBlock, renderSlot, resolveDynamicComponent, unref, useAttrs, withCtx } from "vue";
4
- import "../styles/heading.css";
5
- //#region src/Heading/Heading.vue
6
- const _sfc_main = /*@__PURE__*/ defineComponent({
7
- inheritAttrs: false,
8
- __name: "Heading",
9
- props: {
10
- level: {},
11
- type: {},
12
- color: { default: "primary" },
13
- weight: {},
14
- display: { default: "block" },
15
- accessibilityLevel: {},
16
- textWrap: {},
17
- wordBreak: {},
18
- justify: { default: "start" },
19
- hasCapsize: {
20
- type: Boolean,
21
- default: false
22
- },
23
- hasStrikethrough: { type: Boolean },
24
- maxLines: { default: 0 },
25
- hasTruncateTooltip: {
26
- type: [Boolean, String],
27
- default: true
28
- }
29
- },
30
- setup(__props) {
31
- const props = __props;
32
- const tag = computed(() => `h${props.level}`);
33
- const placement = computed(() => props.maxLines > 0 ? truncatePlacement(props.hasTruncateTooltip) : null);
34
- const wordBreak = computed(() => props.wordBreak ?? (props.maxLines === 1 ? "break-all" : props.maxLines > 1 ? "break-word" : void 0));
35
- const truncation = useTruncation(computed(() => props.maxLines));
36
- const ariaLevel = computed(() => props.accessibilityLevel != null && props.accessibilityLevel !== props.level ? props.accessibilityLevel : void 0);
37
- const attrs = useAttrs();
38
- const classes = computed(() => [
39
- "astryx-heading",
40
- `astryx-heading--level-${props.level}`,
41
- props.type && `astryx-heading--type-${props.type}`,
42
- `astryx-heading--color-${props.color}`,
43
- props.weight && `astryx-heading--weight-${props.weight}`,
44
- props.display === "inline" && props.maxLines === 0 && !props.hasCapsize && "astryx-heading--inline",
45
- props.hasCapsize && "astryx-heading--capsize",
46
- props.textWrap && `astryx-heading--wrap-${props.textWrap}`,
47
- wordBreak.value && `astryx-heading--word-${wordBreak.value}`,
48
- props.justify !== "start" && `astryx-heading--justify-${props.justify}`,
49
- props.hasStrikethrough && "astryx-heading--strike",
50
- props.maxLines === 1 && "astryx-heading--truncate-single",
51
- props.maxLines > 1 && "astryx-heading--truncate-multi"
52
- ]);
53
- const style = computed(() => {
54
- if (props.maxLines > 1) return { WebkitLineClamp: props.maxLines };
55
- return {};
56
- });
57
- return (_ctx, _cache) => {
58
- return placement.value ? (openBlock(), createBlock(_sfc_main$1, {
59
- key: 0,
60
- "anchors-on-self": "",
61
- "has-hover-indication": false,
62
- content: unref(truncation).fullText.value,
63
- "is-enabled": unref(truncation).isTruncated.value,
64
- placement: placement.value
65
- }, {
66
- default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(tag.value), mergeProps({ ref: unref(truncation).bind }, unref(attrs), {
67
- class: ["astryx-heading", classes.value],
68
- style: style.value,
69
- "aria-level": ariaLevel.value
70
- }), {
71
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
72
- _: 3
73
- }, 16, [
74
- "class",
75
- "style",
76
- "aria-level"
77
- ]))]),
78
- _: 3
79
- }, 8, [
80
- "content",
81
- "is-enabled",
82
- "placement"
83
- ])) : (openBlock(), createBlock(resolveDynamicComponent(tag.value), mergeProps({ key: 1 }, unref(attrs), {
84
- class: ["astryx-heading", classes.value],
85
- style: style.value,
86
- "aria-level": ariaLevel.value
87
- }), {
88
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
89
- _: 3
90
- }, 16, [
91
- "class",
92
- "style",
93
- "aria-level"
94
- ]));
95
- };
96
- }
97
- });
98
- //#endregion
99
- export { _sfc_main as t };
@@ -1,5 +0,0 @@
1
- import { t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
2
- //#region src/Button/context.ts
3
- const buttonGroupContextKey = defineLayerScopedKey("astryx-button-group", null);
4
- //#endregion
5
- export { buttonGroupContextKey as t };
@@ -1,27 +0,0 @@
1
- import { a as TextProps, c as TextType, i as TextJustify, n as TextColor, r as TextDisplay, s as TextTruncateTooltip, t as TextAs } from "./types-B8suOGP8.js";
2
- //#region src/Text/Text.vue.d.ts
3
- declare var __VLS_13: {}, __VLS_21: {};
4
- type __VLS_Slots = {} & {
5
- default?: (props: typeof __VLS_13) => any;
6
- } & {
7
- default?: (props: typeof __VLS_21) => any;
8
- };
9
- declare const __VLS_base: import("vue").DefineComponent<TextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TextProps> & Readonly<{}>, {
10
- type: TextType;
11
- as: TextAs;
12
- color: TextColor;
13
- hasCapsize: boolean;
14
- display: TextDisplay;
15
- justify: TextJustify;
16
- maxLines: number;
17
- hasTruncateTooltip: TextTruncateTooltip;
18
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
- declare const _default: typeof __VLS_export;
21
- type __VLS_WithSlots<T, S> = T & {
22
- new (): {
23
- $slots: S;
24
- };
25
- };
26
- //#endregion
27
- export { _default as t };
@@ -1,102 +0,0 @@
1
- import { onBeforeUnmount, ref, watch } from "vue";
2
- //#region src/utils/sharedMutationObserver.ts
3
- const OPTIONS = {
4
- characterData: true,
5
- childList: true,
6
- subtree: true
7
- };
8
- let observer = null;
9
- const callbacks = /* @__PURE__ */ new Map();
10
- function dispatch(records) {
11
- const pending = /* @__PURE__ */ new Set();
12
- for (const record of records) for (let node = record.target; node; node = node.parentNode) callbacks.get(node)?.forEach((callback) => pending.add(callback));
13
- pending.forEach((callback) => callback());
14
- }
15
- /**
16
- * Observe text and child changes anywhere inside an element. All registrations
17
- * share one MutationObserver; the returned function removes only its own callback.
18
- */
19
- function observeContent(element, callback) {
20
- if (typeof MutationObserver === "undefined") return () => {};
21
- observer ??= new MutationObserver(dispatch);
22
- const existing = callbacks.get(element);
23
- if (existing) existing.add(callback);
24
- else {
25
- callbacks.set(element, /* @__PURE__ */ new Set([callback]));
26
- observer.observe(element, OPTIONS);
27
- }
28
- let subscribed = true;
29
- return () => {
30
- if (!subscribed) return;
31
- subscribed = false;
32
- const registered = callbacks.get(element);
33
- registered?.delete(callback);
34
- if (registered?.size === 0) callbacks.delete(element);
35
- if (callbacks.size === 0 && observer) {
36
- observer.disconnect();
37
- observer = null;
38
- }
39
- };
40
- }
41
- //#endregion
42
- //#region src/Text/useTruncation.ts
43
- /** `false` 关掉提示。`true` 和缺省都出现在上方。 */
44
- function truncatePlacement(value) {
45
- if (value === false) return null;
46
- if (value == null || value === true) return "above";
47
- return value;
48
- }
49
- function useTruncation(maxLines) {
50
- const isTruncated = ref(false);
51
- const fullText = ref("");
52
- let observer;
53
- let unobserveContent;
54
- let node = null;
55
- function measure() {
56
- if (!node || maxLines.value <= 0) {
57
- isTruncated.value = false;
58
- fullText.value = "";
59
- return;
60
- }
61
- fullText.value = node.textContent ?? "";
62
- if (maxLines.value === 1) {
63
- isTruncated.value = node.scrollWidth > node.clientWidth + 1;
64
- return;
65
- }
66
- let contentHeight = node.scrollHeight;
67
- try {
68
- const range = node.ownerDocument.createRange();
69
- range.selectNodeContents(node);
70
- contentHeight = range.getBoundingClientRect().height;
71
- range.detach();
72
- } catch {}
73
- isTruncated.value = contentHeight > node.clientHeight + 1;
74
- }
75
- function bind(value) {
76
- observer?.disconnect();
77
- observer = void 0;
78
- unobserveContent?.();
79
- unobserveContent = void 0;
80
- node = value instanceof HTMLElement ? value : null;
81
- if (node && maxLines.value > 0) {
82
- if (typeof ResizeObserver !== "undefined") {
83
- observer = new ResizeObserver(() => measure());
84
- observer.observe(node);
85
- }
86
- unobserveContent = observeContent(node, measure);
87
- }
88
- measure();
89
- }
90
- watch(maxLines, () => bind(node));
91
- onBeforeUnmount(() => {
92
- observer?.disconnect();
93
- unobserveContent?.();
94
- });
95
- return {
96
- bind,
97
- isTruncated,
98
- fullText
99
- };
100
- }
101
- //#endregion
102
- export { useTruncation as n, truncatePlacement as t };
@@ -44,8 +44,8 @@ declare const __VLS_base: import("vue").DefineComponent<TokenProps, {}, {}, {},
44
44
  }>, {
45
45
  size: TokenSize;
46
46
  labelHidden: boolean;
47
- color: "default" | "blue" | "cyan" | "gray" | "green" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow";
48
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>;
@@ -1,6 +1,6 @@
1
1
  import { a as isImeKeyEvent } from "./layerDepth-CNDh-IHb.js";
2
- import { r as getFocusables } from "./focus-l8jVTcqd.js";
3
2
  import { r as trackInteractionModality, t as getInteractionModality } from "./interactionModality-ACpTMhak.js";
3
+ import { r as getFocusables } from "./focus-l8jVTcqd.js";
4
4
  import { onScopeDispose, ref, toValue, watch } from "vue";
5
5
  //#region src/composables/internal/focusReturn.ts
6
6
  function isTextEntry(element) {