@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
@@ -1,6 +1,6 @@
1
1
  import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
2
- import { t as _sfc_main$4 } from "./Icon-DAcZMgiJ.js";
3
- import { t as _sfc_main$5 } from "./Item-Dbf2g0Ee.js";
2
+ import { t as _sfc_main$4 } from "./Icon-BCHo7W0x.js";
3
+ import { t as _sfc_main$5 } from "./Item-Cfv4ALls.js";
4
4
  import { t as _sfc_main$6 } from "./CheckboxIndicator-fH4d-JE1.js";
5
5
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, openBlock, provide, ref, renderSlot, toDisplayString, unref, useAttrs, useModel, useSlots, watch, withCtx } from "vue";
6
6
  import "../styles/dropdown-menu.css";
@@ -1,3 +1,4 @@
1
+ import { i as runAsMenuPressActivation, t as armStrayClick } from "./strayClick-CY-_ImKv.js";
1
2
  import { getCurrentScope, onScopeDispose, toValue } from "vue";
2
3
  //#region src/composables/useLongPress.ts
3
4
  const DEFAULT_DELAY_MS = 500;
@@ -183,64 +184,6 @@ function overflowingMenu(menu) {
183
184
  if (menu == null) return null;
184
185
  return menu.scrollHeight > menu.clientHeight + 1 ? menu : null;
185
186
  }
186
- let isModelActivation = false;
187
- /**
188
- * 按压模型派发的那次行激活是不是正在进行。只在那次派发的同步过程中为真,
189
- * 所以把激活转交给里面链接的行,能分清这是模型的 click 还是浏览器多出来的那个。
190
- */
191
- function isMenuPressActivation() {
192
- return isModelActivation;
193
- }
194
- /** 在「模型激活」标记下执行一段同步代码。 */
195
- function runAsMenuPressActivation(run) {
196
- isModelActivation = true;
197
- try {
198
- run();
199
- } finally {
200
- isModelActivation = false;
201
- }
202
- }
203
- let swallower = null;
204
- function disarm() {
205
- if (swallower == null) return;
206
- swallower.isArmed = false;
207
- if (swallower.timer != null) {
208
- clearTimeout(swallower.timer);
209
- swallower.timer = null;
210
- }
211
- }
212
- function onWindowClickCapture(event) {
213
- if (swallower == null || !swallower.isArmed) return;
214
- if (event.detail === 0 || isModelActivation) return;
215
- event.preventDefault();
216
- event.stopImmediatePropagation();
217
- disarm();
218
- }
219
- /** 布下吞 click 的口子。同一个文档只装一次监听。 */
220
- function armStrayClick(doc) {
221
- const view = doc.defaultView;
222
- if (view == null) return;
223
- if (swallower == null || swallower.doc !== doc) {
224
- if (swallower != null) {
225
- swallower.doc.defaultView?.removeEventListener("click", onWindowClickCapture, true);
226
- swallower.doc.removeEventListener("pointerdown", disarm, true);
227
- }
228
- view.addEventListener("click", onWindowClickCapture, true);
229
- doc.addEventListener("pointerdown", disarm, true);
230
- swallower = {
231
- doc,
232
- isArmed: false,
233
- timer: null
234
- };
235
- }
236
- disarm();
237
- swallower.isArmed = true;
238
- swallower.timer = setTimeout(disarm, 400);
239
- }
240
- /** 撤掉已经布下的口子。卸载和测试里用。 */
241
- function resetMenuPress() {
242
- disarm();
243
- }
244
187
  //#endregion
245
188
  //#region src/composables/internal/menuPressDom.ts
246
189
  /** 带这个标记的菜单根用的是按压模型。嵌套的飞出层靠它分清一次按压归哪一层。 */
@@ -761,4 +704,4 @@ function useMenuPress(options) {
761
704
  };
762
705
  }
763
706
  //#endregion
764
- export { isMenuPressActivation as a, MENU_PRESS_MARKER as i, MENU_PRESS_SETTLE_MS as n, resetMenuPress as o, menuPressStep as r, useLongPress as s, useMenuPress as t };
707
+ export { useLongPress as a, MENU_PRESS_MARKER as i, MENU_PRESS_SETTLE_MS as n, menuPressStep as r, useMenuPress as t };
@@ -0,0 +1,49 @@
1
+ import { a as PRESSABLE_ATTRIBUTE, n as installPressFeedback, o as PRESS_ACTION_ATTRIBUTE, s as PRESS_CONTAINER_ATTRIBUTE } from "./pressFeedback-Bwwpex9q.js";
2
+ import { getCurrentInstance, getCurrentScope, onMounted, onScopeDispose } from "vue";
3
+ import "../styles/pressable.css";
4
+ //#region src/composables/usePressFeedback.ts
5
+ const MARKER_ONLY = Object.freeze({ [PRESSABLE_ATTRIBUTE]: "" });
6
+ const WITH_OVERLAY = Object.freeze({
7
+ [PRESSABLE_ATTRIBUTE]: "",
8
+ class: "astryx-pressable"
9
+ });
10
+ const CONTAINER_MARKER_ONLY = Object.freeze({
11
+ ...MARKER_ONLY,
12
+ [PRESS_CONTAINER_ATTRIBUTE]: ""
13
+ });
14
+ const CONTAINER_WITH_OVERLAY = Object.freeze({
15
+ ...WITH_OVERLAY,
16
+ [PRESS_CONTAINER_ATTRIBUTE]: ""
17
+ });
18
+ const ACTION_MARKER = Object.freeze({ [PRESS_ACTION_ATTRIBUTE]: "" });
19
+ /**
20
+ * 对应原版 Astryx 的 `hooks/usePressFeedback`。
21
+ *
22
+ * 把一个元素标成触屏按压模型的可按表面,并确保文档级控制器已经装上。
23
+ *
24
+ * 手指下,CSS 的 `:active` 落手就亮,滚动开始了还可能亮着。按压模型反过来:
25
+ * 滚动视图外,手指落下那一帧就亮;滚动视图里先等 150 毫秒确认是按压。
26
+ * 手指挪动超过 10 像素或者页面滚动,立刻作废,这次手势里不再亮回来;
27
+ * 太快的轻点在抬手时补亮;抬手后按主题的退出时长淡出。鼠标不受影响,`:active` 照旧。
28
+ *
29
+ * 一个文档只有一个控制器:第一个挂载的可按组件装上,最后一个卸载时拆掉。
30
+ * 调用它不会给元素加监听或状态,一次按压只改一个属性。服务端不装。
31
+ */
32
+ function usePressFeedback(options = {}) {
33
+ let release = null;
34
+ const install = () => {
35
+ release ??= installPressFeedback();
36
+ };
37
+ if (getCurrentInstance() != null) onMounted(install);
38
+ else install();
39
+ if (getCurrentScope() != null) onScopeDispose(() => {
40
+ release?.();
41
+ release = null;
42
+ });
43
+ return {
44
+ pressableProps: options.isContainer === true ? options.hasOverlay === false ? CONTAINER_MARKER_ONLY : CONTAINER_WITH_OVERLAY : options.hasOverlay === false ? MARKER_ONLY : WITH_OVERLAY,
45
+ pressActionProps: ACTION_MARKER
46
+ };
47
+ }
48
+ //#endregion
49
+ export { usePressFeedback as t };
@@ -1,10 +1,12 @@
1
+ import { r as registerLayerSurface } from "./layerSurfacePress-C3PjPpJP.js";
1
2
  import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-BmZyeKWE.js";
3
+ import { t as useLayer } from "./useLayer-CED-g4Q2.js";
4
+ import { t as _sfc_main$1 } from "./LayerContentBoundary-CvsKxwwm.js";
5
+ import { n as isTextEntryTap, r as matchesFocusVisible, t as isActionTrigger } from "./tooltipTriggerRules-Bg4tG8w2.js";
2
6
  import { t as useAnnounce } from "./announce-B210eJVf.js";
3
7
  import { i as isFocusable } from "./focus-l8jVTcqd.js";
4
- import { t as useLayer } from "./useLayer-Byjda3dD.js";
5
- import { t as _sfc_main$1 } from "./LayerContentBoundary-CvsKxwwm.js";
6
8
  import { t as useHoverLayerDismiss } from "./useHoverLayerDismiss-kYJ_NqL4.js";
7
- import { Teleport, computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, onMounted, onScopeDispose, openBlock, ref, renderSlot, shallowRef, toDisplayString, toValue, unref, vShow, watch, withCtx, withDirectives } from "vue";
9
+ import { Teleport, computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeProps, onMounted, onScopeDispose, openBlock, ref, renderSlot, shallowRef, toDisplayString, toValue, unref, vShow, watch, withCtx, withDirectives } from "vue";
8
10
  import "../styles/tooltip.css";
9
11
  //#region src/Tooltip/TooltipSurface.vue
10
12
  const _hoisted_1 = ["data-placement"];
@@ -26,6 +28,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
26
28
  const { contentRef } = props.tooltip;
27
29
  function setContentRef(value) {
28
30
  contentRef.value = value;
31
+ registerLayerSurface(value);
29
32
  }
30
33
  return (_ctx, _cache) => {
31
34
  return openBlock(), createBlock(Teleport, { to: unref(target) }, [createCommentVNode(" eslint-disable-next-line vue-a11y/mouse-events-have-key-events, vue-a11y/no-static-element-interactions -- 气泡上的鼠标事件仅用于指针移入气泡时保持显示;键盘焦点由触发元素的 focusin / focusout 处理。 "), withDirectives(createElementVNode("div", mergeProps({
@@ -104,24 +107,26 @@ function renderedText(element) {
104
107
  return parts.join("").replace(/\s+/g, " ").trim();
105
108
  }
106
109
  //#endregion
110
+ //#region src/Tooltip/tooltipPresentInterest.ts
111
+ /** 仅库内部使用,不从 Tooltip 入口导出。 */
112
+ const tooltipPresentInterestKey = Symbol("astryx-tooltip-present-interest");
113
+ /** 提示的触发器刚接上:按提示自己的规则回应让它挂载的那次交互,只回应一次。 */
114
+ function answerPresentInterest(state, trigger, answers) {
115
+ if (state == null || state.isRead) return;
116
+ state.isRead = true;
117
+ const { interest, tapEvent } = state;
118
+ state.tapEvent = null;
119
+ if (interest === "hover") answers.hover();
120
+ else if (interest === "tap") answers.tap(tapEvent);
121
+ else if (interest === "focus") {
122
+ const focused = trigger.ownerDocument.activeElement;
123
+ if (focused instanceof HTMLElement && trigger.contains(focused)) answers.focus(focused);
124
+ }
125
+ }
126
+ //#endregion
107
127
  //#region src/Tooltip/useTooltip.ts
108
128
  const GAP = 4;
109
- /** 指针离开触发器到进入气泡之间的宽限时间。 */
110
129
  const HOVER_BRIDGE_DELAY = 100;
111
- const ACTION_TAGS = [
112
- "A",
113
- "BUTTON",
114
- "INPUT",
115
- "SELECT",
116
- "TEXTAREA"
117
- ];
118
- function matchesFocusVisible(element) {
119
- try {
120
- return element.matches(":focus-visible");
121
- } catch {
122
- return false;
123
- }
124
- }
125
130
  /**
126
131
  * 对应原版 Astryx 的 `hooks/useTooltip`:悬停和焦点触发的文字提示。
127
132
  * 负责延迟显示、焦点处理、`aria-describedby` 关联和定位,`Tooltip` 组件内部也用它。
@@ -136,6 +141,7 @@ function useTooltip(options = {}) {
136
141
  const isTouchPointer = ref(false);
137
142
  let bound = null;
138
143
  const announce = useAnnounce();
144
+ const presentInterest = inject(tooltipPresentInterestKey, null);
139
145
  const layer = useLayer({
140
146
  mode: "context",
141
147
  anchor: triggerRef,
@@ -213,10 +219,10 @@ function useTooltip(options = {}) {
213
219
  if (next instanceof Node && layer.contentRef.value?.contains(next)) return;
214
220
  scheduleHide();
215
221
  }
216
- function onTouchTap() {
222
+ function onTouchTap(tapEvent) {
217
223
  if (!isEnabled() || isControlled.value || touchTriggerMode() === "none") return;
218
224
  const trigger = triggerRef.value;
219
- if (touchTriggerMode() === "auto" && trigger != null && ACTION_TAGS.includes(trigger.tagName)) return;
225
+ if (trigger != null && (touchTriggerMode() === "auto" && isActionTrigger(trigger) || isTextEntryTap(trigger, tapEvent))) return;
220
226
  if (isOpen.value) hideNow();
221
227
  else showNow();
222
228
  }
@@ -243,7 +249,7 @@ function useTooltip(options = {}) {
243
249
  return;
244
250
  }
245
251
  if (event.pointerType === "touch") {
246
- onTouchTap();
252
+ onTouchTap(event);
247
253
  return;
248
254
  }
249
255
  if (isControlled.value) return;
@@ -345,6 +351,14 @@ function useTooltip(options = {}) {
345
351
  }
346
352
  describedByBefore = element.getAttribute("aria-describedby");
347
353
  element.setAttribute("aria-describedby", [describedByBefore, layer.id].filter(Boolean).join(" "));
354
+ answerPresentInterest(presentInterest, element, {
355
+ hover: scheduleShow,
356
+ tap: (tapEvent) => {
357
+ isTouchPointer.value = true;
358
+ onTouchTap(tapEvent);
359
+ },
360
+ focus: (focused) => shouldListenFocus(element) && matchesFocusVisible(focused) && showNow()
361
+ });
348
362
  }
349
363
  function unbind() {
350
364
  if (bound == null) return;
@@ -412,4 +426,4 @@ function useTooltip(options = {}) {
412
426
  };
413
427
  }
414
428
  //#endregion
415
- export { _sfc_main as n, useTooltip as t };
429
+ export { tooltipPresentInterestKey as n, _sfc_main as r, useTooltip as t };
@@ -1,5 +1,5 @@
1
- import { s as useAstryxMessages } from "./context-BLSiTojH.js";
2
- import { t as upstreamMessageMap } from "./upstreamMap-CZUPxbc9.js";
1
+ import { s as useAstryxMessages } from "./context-CV6TrhJY.js";
2
+ import { t as upstreamMessageMap } from "./upstreamMap-DrkVNtXW.js";
3
3
  //#region src/locale/useTranslator.ts
4
4
  /**
5
5
  * 对应原版 Astryx 的 `hooks/useTranslator`。
@@ -0,0 +1,135 @@
1
+ import { n as observeResize, t as isResizeObserved } from "./sharedResizeObserver-BekhnB3E.js";
2
+ import { onScopeDispose, ref, toValue, watch } from "vue";
3
+ //#region src/utils/sharedMutationObserver.ts
4
+ const OPTIONS = {
5
+ characterData: true,
6
+ childList: true,
7
+ subtree: true
8
+ };
9
+ let observer = null;
10
+ const callbacks = /* @__PURE__ */ new Map();
11
+ function dispatch(records) {
12
+ const pending = /* @__PURE__ */ new Set();
13
+ for (const record of records) for (let node = record.target; node; node = node.parentNode) callbacks.get(node)?.forEach((callback) => pending.add(callback));
14
+ pending.forEach((callback) => callback());
15
+ }
16
+ /**
17
+ * Observe text and child changes anywhere inside an element. All registrations
18
+ * share one MutationObserver; the returned function removes only its own callback.
19
+ */
20
+ function observeContent(element, callback) {
21
+ if (typeof MutationObserver === "undefined") return () => {};
22
+ observer ??= new MutationObserver(dispatch);
23
+ const existing = callbacks.get(element);
24
+ if (existing) existing.add(callback);
25
+ else {
26
+ callbacks.set(element, /* @__PURE__ */ new Set([callback]));
27
+ observer.observe(element, OPTIONS);
28
+ }
29
+ let subscribed = true;
30
+ return () => {
31
+ if (!subscribed) return;
32
+ subscribed = false;
33
+ const registered = callbacks.get(element);
34
+ registered?.delete(callback);
35
+ if (registered?.size === 0) callbacks.delete(element);
36
+ if (callbacks.size === 0 && observer) {
37
+ observer.disconnect();
38
+ observer = null;
39
+ }
40
+ };
41
+ }
42
+ //#endregion
43
+ //#region src/Text/useTruncation.ts
44
+ /** `false` 关掉提示。`true` 和缺省都出现在上方。 */
45
+ function truncatePlacement(value) {
46
+ if (value === false) return null;
47
+ if (value == null || value === true) return "above";
48
+ return value;
49
+ }
50
+ /**
51
+ * 量文字有没有被截断:`maxLines` 为 1 比宽度,大于 1 用 Range 量真实高度
52
+ * (`-webkit-line-clamp` 会把 scrollHeight 也夹成容器高度),0 不测量。
53
+ *
54
+ * 尺寸和内容的变化都走全页共用的 ResizeObserver / MutationObserver,
55
+ * 一页几百个表格单元格也只有各一个观察者。新元素的第一次测量交给共用
56
+ * ResizeObserver 的第一次通知,那是浏览器自己排版之后发的,挂载时不额外强制排版;
57
+ * 元素已被别人观察、不会再有第一次通知时,改在渲染提交后的微任务里量。
58
+ */
59
+ function useTruncation(maxLines) {
60
+ const isTruncated = ref(false);
61
+ const fullText = ref("");
62
+ let release;
63
+ let node = null;
64
+ function measure(element) {
65
+ const lines = toValue(maxLines);
66
+ if (lines <= 0) {
67
+ isTruncated.value = false;
68
+ fullText.value = "";
69
+ return;
70
+ }
71
+ fullText.value = element.textContent ?? "";
72
+ if (lines === 1) {
73
+ isTruncated.value = element.scrollWidth > element.clientWidth + 1;
74
+ return;
75
+ }
76
+ let contentHeight = element.scrollHeight;
77
+ try {
78
+ const range = element.ownerDocument.createRange();
79
+ range.selectNodeContents(element);
80
+ contentHeight = range.getBoundingClientRect().height;
81
+ range.detach();
82
+ } catch {}
83
+ isTruncated.value = contentHeight > element.clientHeight + 1;
84
+ }
85
+ function observe(element) {
86
+ let isActive = true;
87
+ const unobserveContent = observeContent(element, () => measure(element));
88
+ let unobserveResize;
89
+ if (typeof ResizeObserver === "undefined") measure(element);
90
+ else {
91
+ let isRegistered = false;
92
+ const wasObserved = isResizeObserved(element);
93
+ unobserveResize = observeResize(element, () => {
94
+ if (isRegistered) measure(element);
95
+ });
96
+ isRegistered = true;
97
+ if (wasObserved) queueMicrotask(() => {
98
+ if (isActive) measure(element);
99
+ });
100
+ }
101
+ return () => {
102
+ isActive = false;
103
+ unobserveContent();
104
+ unobserveResize?.();
105
+ };
106
+ }
107
+ function bind(value) {
108
+ const next = value instanceof HTMLElement ? value : null;
109
+ if (next === node && release != null) return;
110
+ release?.();
111
+ release = void 0;
112
+ node = next;
113
+ if (node && toValue(maxLines) > 0) {
114
+ release = observe(node);
115
+ return;
116
+ }
117
+ isTruncated.value = false;
118
+ fullText.value = "";
119
+ }
120
+ watch(() => toValue(maxLines), () => {
121
+ const current = node;
122
+ release?.();
123
+ release = void 0;
124
+ node = null;
125
+ bind(current);
126
+ });
127
+ onScopeDispose(() => release?.());
128
+ return {
129
+ bind,
130
+ isTruncated,
131
+ fullText
132
+ };
133
+ }
134
+ //#endregion
135
+ export { useTruncation as n, truncatePlacement as t };
@@ -0,0 +1,106 @@
1
+ import { r as trackInteractionModality, t as getInteractionModality } from "./interactionModality-ACpTMhak.js";
2
+ import { r as matchesFocusVisible } from "./tooltipTriggerRules-Bg4tG8w2.js";
3
+ import { n as tooltipPresentInterestKey } from "./useTooltip-D8Tq7-yd.js";
4
+ import { t as _sfc_main$1 } from "./Tooltip-CGHpFMnc.js";
5
+ import { n as useTruncation, t as truncatePlacement } from "./useTruncation-C4pdlaXa.js";
6
+ import { computed, createBlock, createCommentVNode, defineComponent, openBlock, provide, shallowRef } from "vue";
7
+ //#region src/Text/TruncationTooltip.vue
8
+ const _sfc_main = /*@__PURE__*/ defineComponent({
9
+ name: "AstryxTruncationTooltip",
10
+ __name: "TruncationTooltip",
11
+ props: {
12
+ anchor: {},
13
+ content: {},
14
+ placement: {},
15
+ interest: {}
16
+ },
17
+ setup(__props) {
18
+ provide(tooltipPresentInterestKey, __props.interest);
19
+ return (_ctx, _cache) => {
20
+ return __props.anchor ? (openBlock(), createBlock(_sfc_main$1, {
21
+ key: 0,
22
+ anchor: __props.anchor,
23
+ content: __props.content,
24
+ placement: __props.placement,
25
+ "has-hover-indication": false
26
+ }, null, 8, [
27
+ "anchor",
28
+ "content",
29
+ "placement"
30
+ ])) : createCommentVNode("v-if", true);
31
+ };
32
+ }
33
+ });
34
+ //#endregion
35
+ //#region src/Text/useTruncationTooltipInterest.ts
36
+ /**
37
+ * 截断文字的提示不随文字一起挂载,等第一次悬停、轻点或键盘聚焦才挂。
38
+ * 一长串表格单元格因此不会在加载时各挂一个关着的提示层。
39
+ * 这次交互记在 `state` 里,提示挂上后按自己的规则回应:悬停照常等延迟,轻点立刻打开。
40
+ */
41
+ function useTruncationTooltipInterest(isEnabled) {
42
+ const isWanted = shallowRef(false);
43
+ const state = {
44
+ interest: null,
45
+ tapEvent: null,
46
+ isRead: false
47
+ };
48
+ let isTouchPress = false;
49
+ trackInteractionModality();
50
+ function want(interest, tapEvent = null) {
51
+ if (!isEnabled() || state.isRead) return;
52
+ state.interest = interest;
53
+ state.tapEvent = tapEvent;
54
+ isWanted.value = true;
55
+ }
56
+ function forget(interest) {
57
+ if (!state.isRead && state.interest === interest) state.interest = null;
58
+ }
59
+ return {
60
+ isWanted,
61
+ state,
62
+ onPointerenter(event) {
63
+ if (event.pointerType !== "touch") want("hover");
64
+ },
65
+ onPointerleave: () => forget("hover"),
66
+ onPointerdown(event) {
67
+ isTouchPress = event.pointerType === "touch" || event.pointerType === "pen";
68
+ if (event.pointerType === "touch") {
69
+ want("tap", event);
70
+ return;
71
+ }
72
+ forget("hover");
73
+ },
74
+ onFocusin(event) {
75
+ const target = event.target;
76
+ if (!(target instanceof Element) || !matchesFocusVisible(target)) return;
77
+ if (isTouchPress && getInteractionModality() === "pointer") return;
78
+ want("focus");
79
+ },
80
+ onFocusout: () => forget("focus")
81
+ };
82
+ }
83
+ //#endregion
84
+ //#region src/Text/useTruncationTooltip.ts
85
+ /** Text 和 Heading 共用:测量截断,并在第一次交互时才挂载显示全文的提示。 */
86
+ function useTruncationTooltip(maxLines, hasTruncateTooltip) {
87
+ const placement = computed(() => maxLines() > 0 ? truncatePlacement(hasTruncateTooltip()) : null);
88
+ const truncation = useTruncation(() => placement.value == null ? 0 : maxLines());
89
+ const isEnabled = computed(() => placement.value != null && truncation.isTruncated.value);
90
+ const interest = useTruncationTooltipInterest(() => isEnabled.value);
91
+ const element = shallowRef(null);
92
+ function bind(value) {
93
+ element.value = value instanceof HTMLElement ? value : null;
94
+ truncation.bind(value);
95
+ }
96
+ return {
97
+ placement,
98
+ bind,
99
+ element,
100
+ truncation,
101
+ interest,
102
+ isMounted: computed(() => isEnabled.value && interest.isWanted.value)
103
+ };
104
+ }
105
+ //#endregion
106
+ export { _sfc_main as n, useTruncationTooltip as t };
@@ -1,6 +1,6 @@
1
1
  import { n as isSafeUrl, r as sanitizeUrl, t as isSafeDestination } from "../safeUrl-CsvfcZ9m.js";
2
2
  import { n as firstCharacter, r as truncateCharacters, t as characterCount } from "../characters-wTnzjkkR.js";
3
+ import { n as observeResize, r as unobserveResize } from "../sharedResizeObserver-BekhnB3E.js";
3
4
  import { a as presentationFromNativePicker, i as pickerPresentationFromNativePicker, n as effectiveInputPresentation, o as resolveInputPresentation, r as effectivePickerPresentation, s as resolvePickerPresentation, t as DEFAULT_INPUT_PRESENTATION } from "../inputPresentation-BOyHkCDr.js";
4
- import { n as unobserveResize, t as observeResize } from "../sharedResizeObserver-9EFWnSWH.js";
5
5
  import { A as plainDateCreate, B as plainDateIsEqual, C as DATE_FORMAT_WITH_WEEKDAY, D as getTimeZoneParts, E as getDaysInMonth, F as plainDateFromISO, G as plainDateSetFirstOfMonth, H as plainDateMax, I as plainDateFromInstant, J as plainDateToISO, K as plainDateSetStartOfWeek, L as plainDateGetWeekNumber, M as plainDateDiffDays, N as plainDateFormat, O as plainDateAddDays, P as plainDateFromDate, Q as chainEventHandlers, R as plainDateIsAfter, S as DATE_FORMAT_WEEKDAY_ONLY, T as formatSharedDate, U as plainDateMin, V as plainDateIsInRange, W as plainDateSetEndOfWeekExclusive, X as plainDateToday, Y as plainDateToInstant, Z as plainDateWeekFieldName, _ as DATE_FORMAT_MONTH_ONLY, a as formatDisplayTime12h, b as DATE_FORMAT_SHORT_WITH_WEEKDAY, c as parseStyleKey, d as getItemGroup, f as groupItems, g as DATE_FORMAT_LONG, h as parseDateInput, i as createISOTimeString, j as plainDateDayOfWeek, k as plainDateAddMonths, l as getInputARIA, m as isLocaleDayFirst, n as clampTime, o as formatDisplayTime24h, p as normalizeDayOfWeek, q as plainDateToDate, r as compareTime, s as parseTimeInput, t as adjustTime, u as joinAriaIDs, v as DATE_FORMAT_MONTH_YEAR, w as SHARED_DATE_FORMAT_OPTIONS, x as DATE_FORMAT_SHORT_WITH_YEAR, y as DATE_FORMAT_SHORT, z as plainDateIsBefore } from "../utils-BOmFijPc.js";
6
6
  export { DATE_FORMAT_LONG, DATE_FORMAT_MONTH_ONLY, DATE_FORMAT_MONTH_YEAR, DATE_FORMAT_SHORT, DATE_FORMAT_SHORT_WITH_WEEKDAY, DATE_FORMAT_SHORT_WITH_YEAR, DATE_FORMAT_WEEKDAY_ONLY, DATE_FORMAT_WITH_WEEKDAY, DEFAULT_INPUT_PRESENTATION, SHARED_DATE_FORMAT_OPTIONS, adjustTime, chainEventHandlers, characterCount, clampTime, compareTime, createISOTimeString, plainDateToISO as dateToISO, plainDateToISO, effectiveInputPresentation, effectivePickerPresentation, firstCharacter, formatDisplayTime12h, formatDisplayTime24h, formatSharedDate, getDaysInMonth, getInputARIA, getItemGroup, getTimeZoneParts, groupItems, isLocaleDayFirst, isSafeDestination, isSafeUrl, joinAriaIDs, normalizeDayOfWeek, observeResize, parseDateInput, plainDateFromISO as parseISO, plainDateFromISO, parseStyleKey, parseTimeInput, pickerPresentationFromNativePicker, plainDateAddDays, plainDateAddMonths, plainDateCreate, plainDateDayOfWeek, plainDateDiffDays, plainDateFormat, plainDateFromDate, plainDateFromInstant, plainDateGetWeekNumber, plainDateIsAfter, plainDateIsBefore, plainDateIsEqual, plainDateIsInRange, plainDateMax, plainDateMin, plainDateSetEndOfWeekExclusive, plainDateSetFirstOfMonth, plainDateSetStartOfWeek, plainDateToDate, plainDateToInstant, plainDateToday, plainDateWeekFieldName, presentationFromNativePicker, resolveInputPresentation, resolvePickerPresentation, sanitizeUrl, truncateCharacters, unobserveResize };
@@ -1,9 +1,10 @@
1
1
  import { t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
2
+ import { t as unicodeRegExp } from "./unicodeRegExp-B7yQnpFC.js";
2
3
  //#region src/AvatarGroup/context.ts
3
4
  const AvatarGroupContext = defineLayerScopedKey("AvatarGroupContext", void 0);
4
5
  //#endregion
5
6
  //#region src/Avatar/utils.ts
6
- const INITIAL_CHARACTER = /[\p{L}\p{N}\p{Extended_Pictographic}\p{Regional_Indicator}]/u;
7
+ const INITIAL_CHARACTER = unicodeRegExp("[\\p{L}\\p{N}\\p{Extended_Pictographic}\\p{Regional_Indicator}]");
7
8
  const characterSegmenter = typeof Intl !== "undefined" && typeof Intl.Segmenter === "function" ? new Intl.Segmenter(void 0, { granularity: "grapheme" }) : null;
8
9
  /** 用户眼里的第一个字,避免把表情切成半个。 */
9
10
  function firstCharacter(value) {
package/locales/en.json CHANGED
@@ -1323,6 +1323,14 @@
1323
1323
  "defaultMessage": "Zoomed out",
1324
1324
  "description": "Polite screen-reader announcement after zooming back out of a Lightbox image. Pairs with `lightbox.zoomedIn`."
1325
1325
  },
1326
+ "@astryx.lightbox.captionMore": {
1327
+ "defaultMessage": "more",
1328
+ "description": "Visible label of the button after a gallery caption that two lines cut short in a Lightbox. It opens the full caption over the photo. Pairs with `lightbox.captionLess`."
1329
+ },
1330
+ "@astryx.lightbox.captionLess": {
1331
+ "defaultMessage": "less",
1332
+ "description": "Visible label of the same button while a Lightbox gallery's full caption is open over the photo. It closes the full caption. Pairs with `lightbox.captionMore`."
1333
+ },
1326
1334
  "@astryx.metadataList.showMore": {
1327
1335
  "defaultMessage": "Show more",
1328
1336
  "description": "Button label under a MetadataList that reveals items hidden beyond the configured maximum. Toggles with `metadataList.showLess` — keep the pair parallel in your language."
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astryx-vue/core",
3
3
  "type": "module",
4
- "version": "0.7.25",
4
+ "version": "0.7.27",
5
5
  "description": "Vue 3 components for the unofficial astryx-vue port of Astryx. Not affiliated with Meta.",
6
6
  "author": "ShenQingchuan",
7
7
  "license": "MIT",
@@ -13,6 +13,8 @@
13
13
  min-height: 0;
14
14
  overflow: auto;
15
15
  overflow-wrap: anywhere;
16
+ /* Text 和 Heading 在里面也按 anywhere 换行。 */
17
+ --_astryx-text-overflow-wrap: anywhere;
16
18
  }
17
19
 
18
20
  /* Two classes so the level-2 scale from Heading still loses to this rule
@@ -44,4 +46,21 @@
44
46
  max-width: 100%;
45
47
  min-width: 0;
46
48
  }
49
+
50
+ /*
51
+ * 跟踪滑动时(触屏为主的设备上),沿着按钮排列方向的拖动留给滑动选按钮,另一个方向照常滚动页面,
52
+ * 按住也不选中文字、不弹系统菜单。
53
+ */
54
+ .astryx-alert-dialog__footer[data-press-tracking] {
55
+ -webkit-touch-callout: none;
56
+ user-select: none;
57
+ }
58
+
59
+ .astryx-alert-dialog[data-layout='row'] .astryx-alert-dialog__footer[data-press-tracking] {
60
+ touch-action: pan-y pinch-zoom;
61
+ }
62
+
63
+ .astryx-alert-dialog[data-layout='stacked'] .astryx-alert-dialog__footer[data-press-tracking] {
64
+ touch-action: pan-x pinch-zoom;
65
+ }
47
66
  }
package/styles/badge.css CHANGED
@@ -41,11 +41,16 @@
41
41
  min-width: 0;
42
42
  overflow: hidden;
43
43
  text-overflow: ellipsis;
44
+ unicode-bidi: isolate;
44
45
  }
45
46
 
47
+ /*
48
+ * 放在主要或危险按钮里时,中性底色叠在按钮底色上对比度不够。
49
+ * 这时把按钮的底色和文字反过来用:按钮文字色做徽标底色,按钮底色做徽标文字。
50
+ */
46
51
  .astryx-badge[data-variant='neutral'] {
47
- color: var(--astryx-badge-neutral-foreground);
48
- background-color: var(--astryx-badge-neutral-background);
52
+ color: var(--_button-fill, var(--astryx-badge-neutral-foreground));
53
+ background-color: var(--_button-on-fill, var(--astryx-badge-neutral-background));
49
54
  }
50
55
 
51
56
  .astryx-badge[data-variant='info'] {
package/styles/banner.css CHANGED
@@ -72,6 +72,8 @@
72
72
  font-weight: var(--astryx-font-weight-semibold, 600);
73
73
  line-height: var(--astryx-text-label-leading, 1.4286);
74
74
  overflow-wrap: anywhere;
75
+ /* Text 和 Heading 在里面也按 anywhere 换行。 */
76
+ --_astryx-text-overflow-wrap: anywhere;
75
77
  }
76
78
 
77
79
  .astryx-banner[data-status] .astryx-banner-title,
@@ -85,6 +87,8 @@
85
87
  font-weight: var(--astryx-font-weight-regular, 400);
86
88
  line-height: var(--astryx-text-supporting-leading, 1.6667);
87
89
  overflow-wrap: anywhere;
90
+ /* Text 和 Heading 在里面也按 anywhere 换行。 */
91
+ --_astryx-text-overflow-wrap: anywhere;
88
92
  }
89
93
 
90
94
  .astryx-banner-icon {
@@ -146,6 +150,8 @@
146
150
  font-size: var(--astryx-text-label-size, 14px);
147
151
  line-height: 1.5;
148
152
  overflow-wrap: anywhere;
153
+ /* Text 和 Heading 在里面也按 anywhere 换行。 */
154
+ --_astryx-text-overflow-wrap: anywhere;
149
155
  }
150
156
 
151
157
  .astryx-banner-frame[data-expanded] .astryx-banner-header {
@@ -75,6 +75,23 @@
75
75
  --astryx-button-separator: var(--astryx-button-solid-separator);
76
76
  }
77
77
 
78
+ /*
79
+ * 跟踪滑动时(触屏为主的设备上),沿着按钮排列方向的拖动留给滑动选按钮,另一个方向照常滚动页面,
80
+ * 按住也不选中文字、不弹系统菜单。
81
+ */
82
+ .astryx-button-group[data-press-tracking] {
83
+ -webkit-touch-callout: none;
84
+ user-select: none;
85
+ }
86
+
87
+ .astryx-button-group[data-orientation='horizontal'][data-press-tracking] {
88
+ touch-action: pan-y pinch-zoom;
89
+ }
90
+
91
+ .astryx-button-group[data-orientation='vertical'][data-press-tracking] {
92
+ touch-action: pan-x pinch-zoom;
93
+ }
94
+
78
95
  @media (forced-colors: active) {
79
96
  /*
80
97
  * 强制配色下实心按钮各自画一圈边。相邻两个按钮的边会叠成双线,所以末尾成员以外