@astryx-vue/core 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (300) hide show
  1. package/dist/AlertDialog/index.d.ts +1 -1
  2. package/dist/AlertDialog/index.js +1 -1
  3. package/dist/{AlertDialog-C2inDZWG.js → AlertDialog-Dorcqkwf.js} +2 -2
  4. package/dist/AppShell/index.d.ts +1 -1
  5. package/dist/AppShell/index.js +1 -1
  6. package/dist/{AppShell-awAKicsc.js → AppShell-CqDS_G4G.js} +2 -2
  7. package/dist/Avatar/index.d.ts +1 -1
  8. package/dist/Avatar/index.js +1 -1
  9. package/dist/{Avatar-DXBjJ88C.js → Avatar-BSsueavl.js} +1 -1
  10. package/dist/AvatarGroup/index.d.ts +1 -1
  11. package/dist/AvatarGroup/index.js +1 -1
  12. package/dist/{AvatarGroup-kpAeKLNq.js → AvatarGroup-DhVBdHeQ.js} +1 -1
  13. package/dist/Banner/index.d.ts +1 -1
  14. package/dist/Banner/index.js +1 -1
  15. package/dist/{Banner-BdvuyzAe.js → Banner-Df9SFUhh.js} +3 -3
  16. package/dist/Breadcrumbs/index.d.ts +2 -2
  17. package/dist/Breadcrumbs/index.js +2 -2
  18. package/dist/{Breadcrumbs-D4ZzHEB0.js → Breadcrumbs-kPETVOpi.js} +2 -2
  19. package/dist/Button/index.d.ts +2 -2
  20. package/dist/Button/index.js +1 -1
  21. package/dist/{Button-ONOoHdkg.js → Button-bxKFDhhg.js} +10 -6
  22. package/dist/ButtonGroup/index.d.ts +1 -1
  23. package/dist/Calendar/index.d.ts +1 -1
  24. package/dist/Calendar/index.js +1 -1
  25. package/dist/{Calendar-CjK-JUDM.js → Calendar-Gx77cbI3.js} +7 -7
  26. package/dist/Card/index.d.ts +1 -1
  27. package/dist/Carousel/index.js +1 -1
  28. package/dist/{Carousel-D262qigj.js → Carousel-CeRJOasP.js} +3 -3
  29. package/dist/Chat/index.d.ts +1 -1
  30. package/dist/Chat/index.js +1 -1
  31. package/dist/{Chat-DD_mlIP3.js → Chat-CfvndIgD.js} +22 -22
  32. package/dist/CheckboxInput/index.d.ts +1 -1
  33. package/dist/CheckboxInput/index.js +1 -1
  34. package/dist/{CheckboxInput-D8vTmAMZ.js → CheckboxInput-CMtJ0qXQ.js} +4 -4
  35. package/dist/CheckboxList/index.d.ts +1 -1
  36. package/dist/CheckboxList/index.js +1 -1
  37. package/dist/{CheckboxList-DCvHewHB.js → CheckboxList-Cg8GC1l2.js} +3 -3
  38. package/dist/Citation/index.js +1 -1
  39. package/dist/{Citation-C69BgxW3.js → Citation-D-El27C6.js} +2 -2
  40. package/dist/ClickableCard/index.d.ts +1 -1
  41. package/dist/Code/index.d.ts +1 -1
  42. package/dist/Code/index.js +2 -2
  43. package/dist/{CodeBlock-DsbwTBiT.js → CodeBlock-DSjv__N9.js} +7 -7
  44. package/dist/Collapsible/index.d.ts +1 -1
  45. package/dist/Collapsible/index.js +1 -1
  46. package/dist/{Collapsible-Bdj0WYpb.js → Collapsible-DPC_G0Me.js} +1 -1
  47. package/dist/CommandPalette/index.js +1 -1
  48. package/dist/{CommandPalette-CZ7CZglZ.js → CommandPalette-DFxk2sil.js} +3 -3
  49. package/dist/ComplexSelector/index.d.ts +1 -1
  50. package/dist/ComplexSelector/index.js +1 -1
  51. package/dist/{ComplexSelector-CIz6DDmY.js → ComplexSelector-DcPOOrZp.js} +5 -5
  52. package/dist/ContextMenu/index.d.ts +2 -2
  53. package/dist/ContextMenu/index.js +2 -2
  54. package/dist/{ContextMenu-CxoiRh_h.js → ContextMenu-BH_yV1xZ.js} +4 -4
  55. package/dist/DateInput/index.d.ts +1 -1
  56. package/dist/DateInput/index.js +1 -1
  57. package/dist/{DateInput-C67HCOU-.js → DateInput-BfR_bV-E.js} +21 -21
  58. package/dist/DateRangeInput/index.d.ts +1 -1
  59. package/dist/DateRangeInput/index.js +1 -1
  60. package/dist/{DateRangeInput-Dsf5Tyf-.js → DateRangeInput-DholSURy.js} +16 -16
  61. package/dist/DateTimeInput/index.d.ts +1 -1
  62. package/dist/DateTimeInput/index.js +1 -1
  63. package/dist/{DateTimeInput-tfM1y5nZ.js → DateTimeInput-B6-bHZlz.js} +8 -8
  64. package/dist/Dialog/index.d.ts +1 -1
  65. package/dist/Dialog/index.js +1 -1
  66. package/dist/{Dialog-DT1GzCrB.js → Dialog-C2qblOuT.js} +2 -2
  67. package/dist/DropdownMenu/index.d.ts +2 -2
  68. package/dist/DropdownMenu/index.js +3 -3
  69. package/dist/{DropdownMenu-G-pWSiBk.js → DropdownMenu-BwsljguO.js} +8 -8
  70. package/dist/{DropdownMenu-C6wBC18g.js → DropdownMenu-DaxYMyco.js} +5 -5
  71. package/dist/{DropdownMenuRadioItem.vue-Qd-8Rg4Q.d.ts → DropdownMenuRadioItem.vue-C6W2wPLv.d.ts} +1 -1
  72. package/dist/EmptyState/index.js +1 -1
  73. package/dist/{EmptyState-CmOQf2SH.js → EmptyState-QNsJMLv1.js} +1 -1
  74. package/dist/Field/index.js +3 -3
  75. package/dist/{Field-JIxT3xCh.js → Field-ff-Jmtg1.js} +2 -2
  76. package/dist/{FieldIcon-BFSHZEs_.js → FieldIcon--Qng2Cup.js} +1 -1
  77. package/dist/{FieldInfoTip-BbgLt4ug.js → FieldInfoTip-DRXvsWkr.js} +3 -3
  78. package/dist/{FieldLabel-CHqp1y3z.js → FieldLabel-CCA3AmQX.js} +2 -2
  79. package/dist/FieldStatus/index.js +1 -1
  80. package/dist/{FieldStatus-DaAB3TIt.js → FieldStatus-BGM4IlHy.js} +1 -1
  81. package/dist/FileInput/index.d.ts +1 -1
  82. package/dist/FileInput/index.js +1 -1
  83. package/dist/{FileInput-Bi1uty-F.js → FileInput-CnBaHvNx.js} +13 -13
  84. package/dist/Heading/index.d.ts +1 -1
  85. package/dist/HoverCard/index.d.ts +1 -1
  86. package/dist/Icon/index.js +1 -1
  87. package/dist/{Icon-KDnUyY7f.js → Icon-Dosui-zD.js} +28 -3
  88. package/dist/IconButton/index.d.ts +1 -1
  89. package/dist/IconButton/index.js +1 -1
  90. package/dist/{IconButton-DI-XBbtV.js → IconButton-BkR7nVB3.js} +6 -1
  91. package/dist/Indicator/index.js +1 -1
  92. package/dist/{InputClearButton-CfSIqc-V.js → InputClearButton-DKnC8sst.js} +3 -3
  93. package/dist/InputGroup/index.js +1 -1
  94. package/dist/{InputGroup-D3F-QnET.js → InputGroup-BBspcJsS.js} +1 -1
  95. package/dist/InternationalizationProvider/index.d.ts +1 -1
  96. package/dist/InternationalizationProvider/index.js +1 -1
  97. package/dist/{InternationalizationProvider-CVV5QDgp.js → InternationalizationProvider-qkLAE9Gm.js} +3 -3
  98. package/dist/Layout/index.d.ts +1 -1
  99. package/dist/Lightbox/index.js +1 -1
  100. package/dist/{Lightbox-CjXhbDPc.js → Lightbox-DclM0Brf.js} +3 -3
  101. package/dist/Link/index.d.ts +2 -2
  102. package/dist/Link/index.js +1 -1
  103. package/dist/{Link-ClNkTN1Q.js → Link-C50dTXDc.js} +1 -1
  104. package/dist/List/index.d.ts +1 -1
  105. package/dist/Markdown/index.js +2 -2
  106. package/dist/Markdown/parser/index.js +1 -1
  107. package/dist/{Markdown-EIBrwQrb.js → Markdown-Cs8R5hG6.js} +8 -7
  108. package/dist/MetadataList/index.js +1 -1
  109. package/dist/{MetadataList-DLlSLX1n.js → MetadataList-CzOUB43j.js} +1 -1
  110. package/dist/MobileNav/index.js +1 -1
  111. package/dist/{MobileNavToggle-DgJYyzT6.js → MobileNavToggle-DvC9xZIC.js} +1 -1
  112. package/dist/MoreMenu/index.d.ts +1 -1
  113. package/dist/MoreMenu/index.js +1 -1
  114. package/dist/{MoreMenu-C8BEt6-O.js → MoreMenu-BAgTOJL3.js} +3 -3
  115. package/dist/MultiSelector/index.d.ts +1 -1
  116. package/dist/MultiSelector/index.js +1 -1
  117. package/dist/{MultiSelector-C7NCAtwW.js → MultiSelector-V_VrLRdF.js} +14 -14
  118. package/dist/{NavHeadingSurface-DQXisuaX.js → NavHeadingSurface-8AYa4tfY.js} +2 -2
  119. package/dist/NavItem/index.d.ts +1 -1
  120. package/dist/NumberInput/index.d.ts +1 -1
  121. package/dist/NumberInput/index.js +1 -1
  122. package/dist/{NumberInput-3u3NZWnv.js → NumberInput-C8iCWQih.js} +14 -14
  123. package/dist/Outline/index.js +1 -1
  124. package/dist/{Outline-8szj9eXu.js → Outline-1Sh26FpE.js} +2 -2
  125. package/dist/OverflowList/index.d.ts +1 -1
  126. package/dist/OverflowList/index.js +1 -1
  127. package/dist/{OverflowList-BizpEwH8.js → OverflowList-COGSq_Mi.js} +6 -4
  128. package/dist/Overlay/index.d.ts +1 -1
  129. package/dist/Pagination/index.d.ts +1 -1
  130. package/dist/Pagination/index.js +1 -1
  131. package/dist/{Pagination-Cihr1CjD.js → Pagination-DfsCrTIx.js} +2 -2
  132. package/dist/Popover/index.d.ts +1 -1
  133. package/dist/Popover/index.js +1 -1
  134. package/dist/{Popover-78dFjTb9.js → Popover-Dmpyfb45.js} +1 -1
  135. package/dist/PowerSearch/index.d.ts +1 -1
  136. package/dist/PowerSearch/index.js +1 -1
  137. package/dist/{PowerSearch-BHx91ypY.js → PowerSearch-BX8pD6L4.js} +23 -23
  138. package/dist/ProgressBar/index.d.ts +1 -1
  139. package/dist/Radio/index.d.ts +1 -1
  140. package/dist/Radio/index.js +1 -1
  141. package/dist/{RadioGroup-DeSIRrgt.js → RadioGroup-Bcu-oL8r.js} +2 -2
  142. package/dist/RadioList/index.d.ts +1 -1
  143. package/dist/RadioList/index.js +1 -1
  144. package/dist/{RadioList-Co2lmetC.js → RadioList-C8Y3PhDF.js} +1 -1
  145. package/dist/Resizable/index.d.ts +1 -1
  146. package/dist/Resizable/index.js +1 -1
  147. package/dist/{ResizeHandle-DjLZ2pcq.js → ResizeHandle-DhDxFvOI.js} +1 -1
  148. package/dist/ScrollableArea/index.d.ts +1 -1
  149. package/dist/SegmentedControl/index.d.ts +1 -1
  150. package/dist/SelectableCard/index.d.ts +1 -1
  151. package/dist/Selector/index.d.ts +1 -1
  152. package/dist/Selector/index.js +1 -1
  153. package/dist/{Selector-swa3RNQI.js → Selector-PBkInp3I.js} +18 -18
  154. package/dist/SideNav/index.d.ts +1 -1
  155. package/dist/SideNav/index.js +1 -1
  156. package/dist/{SideNav-BH6XKsW2.js → SideNav-CzhSOS4W.js} +9 -9
  157. package/dist/Slider/index.js +1 -1
  158. package/dist/{Slider-DG2YXll8.js → Slider-BZwZrqCw.js} +2 -2
  159. package/dist/Spinner/index.js +1 -1
  160. package/dist/{Spinner-BY8iQz--.js → Spinner-B7xuy3ZA.js} +1 -1
  161. package/dist/StatusDot/index.d.ts +1 -1
  162. package/dist/Stepper/index.d.ts +1 -1
  163. package/dist/Stepper/index.js +1 -1
  164. package/dist/{Stepper-FtkTq5qR.js → Stepper-q1ieKrJM.js} +6 -6
  165. package/dist/Switch/index.d.ts +1 -1
  166. package/dist/Switch/index.js +1 -1
  167. package/dist/{Switch-0JKvJluV.js → Switch-D145VGQZ.js} +4 -4
  168. package/dist/TabList/index.d.ts +1 -1
  169. package/dist/TabList/index.js +1 -1
  170. package/dist/{TabList-cpjvnbhx.js → TabList-npiEQK-q.js} +2 -2
  171. package/dist/Table/index.d.ts +2 -2
  172. package/dist/Table/index.js +1 -1
  173. package/dist/{Table-fWs_ZQBF.js → Table-B2bj8INX.js} +104 -66
  174. package/dist/Text/index.d.ts +2 -2
  175. package/dist/Text/index.js +1 -1
  176. package/dist/{Text-CmTOgYXf.js → Text-D5Cc7BMp.js} +4 -2
  177. package/dist/TextArea/index.d.ts +1 -1
  178. package/dist/TextArea/index.js +1 -1
  179. package/dist/{TextArea-CwSfEjT1.js → TextArea-Dxl4UuIg.js} +12 -12
  180. package/dist/TextInput/index.d.ts +1 -1
  181. package/dist/TextInput/index.js +1 -1
  182. package/dist/{TextInput-CavITage.js → TextInput-Ciy-VyBn.js} +5 -5
  183. package/dist/Theme/index.js +2 -2
  184. package/dist/{Theme-BbDT8B_C.js → Theme-BpgmIGCo.js} +1 -1
  185. package/dist/Thumbnail/index.js +1 -1
  186. package/dist/{Thumbnail-DpJnaNbg.js → Thumbnail-DnWOc0od.js} +4 -4
  187. package/dist/{TimeField-DefNjDIT.js → TimeField-Bglx_QpO.js} +11 -11
  188. package/dist/TimeInput/index.d.ts +1 -1
  189. package/dist/TimeInput/index.js +1 -1
  190. package/dist/{TimeInput-j5vzN8MG.js → TimeInput-T_kjTVaa.js} +2 -2
  191. package/dist/Timer/index.d.ts +1 -1
  192. package/dist/Timer/index.js +1 -1
  193. package/dist/{Timer-CH7GsEVu.js → Timer-DFC8PhJl.js} +1 -1
  194. package/dist/Timestamp/index.d.ts +1 -1
  195. package/dist/Timestamp/index.js +1 -1
  196. package/dist/{Timestamp-dtT4yADD.js → Timestamp-DUUoQOjg.js} +4 -4
  197. package/dist/Toast/index.js +1 -1
  198. package/dist/{Toast-igtJYSw0.js → Toast-CCbbZ8RK.js} +2 -2
  199. package/dist/ToggleButton/index.d.ts +1 -1
  200. package/dist/ToggleButton/index.js +1 -1
  201. package/dist/{ToggleButton-cLjh9W-x.js → ToggleButton-BaTlbgA5.js} +1 -1
  202. package/dist/Token/index.d.ts +1 -1
  203. package/dist/Token/index.js +1 -1
  204. package/dist/{Token-DhsAtAH6.js → Token-BHzLrzib.js} +1 -1
  205. package/dist/Tokenizer/index.d.ts +1 -1
  206. package/dist/Tokenizer/index.js +1 -1
  207. package/dist/{Tokenizer-BGdj78UK.js → Tokenizer-BxJM9mMl.js} +5 -5
  208. package/dist/Toolbar/index.d.ts +2 -2
  209. package/dist/Toolbar/index.js +1 -1
  210. package/dist/Toolbar-DKld_COt.js +79 -0
  211. package/dist/Tooltip/index.d.ts +1 -1
  212. package/dist/TopNav/index.d.ts +1 -1
  213. package/dist/TopNav/index.js +1 -1
  214. package/dist/{TopNav-Dw0m387B.js → TopNav-CY-c_THZ.js} +4 -4
  215. package/dist/TreeList/index.js +1 -1
  216. package/dist/{TreeList-Bunn7u3T.js → TreeList-A_YrW4iI.js} +2 -2
  217. package/dist/Typeahead/index.d.ts +1 -1
  218. package/dist/Typeahead/index.js +2 -2
  219. package/dist/{Typeahead-DRyf2HEh.js → Typeahead-C7e2vky1.js} +6 -6
  220. package/dist/{TypeaheadMenu-BY5__sPC.js → TypeaheadMenu-wfBWRFQ6.js} +1 -1
  221. package/dist/composables/index.d.ts +2 -2
  222. package/dist/composables/index.js +2 -2
  223. package/dist/{composables-CnsDaMuU.js → composables-Csqd3fts.js} +1 -1
  224. package/dist/{context-CM-cjGg_.js → context-CVUee2tp.js} +76 -0
  225. package/dist/{index-CUVmtB5-.d.ts → index-8px-LKw_.d.ts} +3 -3
  226. package/dist/{index-DLAG3m9W.d.ts → index-B7Jz5i9a.d.ts} +3 -3
  227. package/dist/{index-5LVG3QyV.d.ts → index-B9e52paP.d.ts} +1 -1
  228. package/dist/{index-BI6jikpA.d.ts → index-BUSp3po9.d.ts} +8 -8
  229. package/dist/{index-CT5OEUxd.d.ts → index-BUlAPQW0.d.ts} +3 -3
  230. package/dist/{index-pNtfr-RW.d.ts → index-BbArm3_c.d.ts} +2 -2
  231. package/dist/{index-pYh4gqgl.d.ts → index-BhLLG-Gi.d.ts} +3 -3
  232. package/dist/{index-jOwU3YoR.d.ts → index-Bjzub4sT.d.ts} +1 -1
  233. package/dist/{index-BaxM-pFP.d.ts → index-BnEhvmdR.d.ts} +4 -4
  234. package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
  235. package/dist/{index-CL8JvxHW.d.ts → index-C1zwvxPH.d.ts} +2 -2
  236. package/dist/{index-BULhhnGf.d.ts → index-CHuSkU5Q.d.ts} +1 -1
  237. package/dist/{index-CTf3SK0b.d.ts → index-CMiF_a__.d.ts} +1 -1
  238. package/dist/{index-YKCx03zD.d.ts → index-COgrQZIL.d.ts} +2 -2
  239. package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
  240. package/dist/{index-JL4auphT.d.ts → index-CUCcYKxl.d.ts} +1 -1
  241. package/dist/{index-DTuhnqHb.d.ts → index-CUMQD-uy.d.ts} +6 -6
  242. package/dist/{index-Ca8VIE4l.d.ts → index-CVn0GBdB.d.ts} +1 -1
  243. package/dist/{index-CMme-xmL.d.ts → index-CfSSGJgv.d.ts} +9 -9
  244. package/dist/{index-xrzJC4wm.d.ts → index-ChCcxRFB.d.ts} +1 -1
  245. package/dist/{index-B08-Uxhv.d.ts → index-CuEB_3NR.d.ts} +1 -1
  246. package/dist/{index-BV2D2x_u.d.ts → index-D97pQbua.d.ts} +1 -1
  247. package/dist/{index-BZKgbyN9.d.ts → index-DAMHLkmd.d.ts} +1 -1
  248. package/dist/{index-UA93Im7H.d.ts → index-DDUqIVGW.d.ts} +69 -69
  249. package/dist/{index-CfR2Z0uG.d.ts → index-DPocrd8C.d.ts} +1 -1
  250. package/dist/{index-C4Cjz6OK.d.ts → index-DUnLj1kn.d.ts} +1 -1
  251. package/dist/{index-CWaSYtk9.d.ts → index-D_8RGgF1.d.ts} +1 -1
  252. package/dist/{index-C7sam-SB.d.ts → index-Dl4Kx5Pl.d.ts} +1 -1
  253. package/dist/{index-C732aNMY.d.ts → index-Ds201-d2.d.ts} +2 -2
  254. package/dist/{index-DNA2l1RN.d.ts → index-G935Rujh.d.ts} +1 -1
  255. package/dist/{index-Cq31D3fJ.d.ts → index-GpET2_oj.d.ts} +1 -1
  256. package/dist/{index-Yl4kJKpq.d.ts → index-QWh122EV.d.ts} +1 -1
  257. package/dist/{index-B1eCxBCY.d.ts → index-TXcNH86P.d.ts} +1 -1
  258. package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
  259. package/dist/{index-D5N9ikrS.d.ts → index-hCpxKePE.d.ts} +1 -1
  260. package/dist/{index-TA1zVibb.d.ts → index-j0WJTviq.d.ts} +2 -2
  261. package/dist/{index-CRrSHbok.d.ts → index-jBub29ti.d.ts} +1 -1
  262. package/dist/{index-CGEC2zgy.d.ts → index-mcNmCMqs.d.ts} +1 -1
  263. package/dist/{index-3t5RAfNP.d.ts → index-mkbGYz8f.d.ts} +2 -2
  264. package/dist/{index-BEZ4ezJk.d.ts → index-wY6dKz6c.d.ts} +2 -2
  265. package/dist/index.d.ts +48 -48
  266. package/dist/index.js +88 -87
  267. package/dist/{loadCatalog-CsZFr9dg.js → loadCatalog-BvoQXMpW.js} +2 -2
  268. package/dist/{loadCatalog-opk5hs94.d.ts → loadCatalog-yVGfaB20.d.ts} +40 -0
  269. package/dist/locale/index.d.ts +2 -2
  270. package/dist/locale/index.js +4 -4
  271. package/dist/{locale-D1Z3K290.js → locale-D4DoSjrL.js} +1 -1
  272. package/dist/{publicParser-DWUMCx7j.js → publicParser-C8RBKNLA.js} +19 -3
  273. package/dist/{searchResultMessage-DtyScdZs.js → searchResultMessage-Do17kweN.js} +7 -7
  274. package/dist/{types-Ckih2YJi.d.ts → types-BymI5mmm.d.ts} +1 -2
  275. package/dist/{types-BnNTzEnd.d.ts → types-CbiqoBoG.d.ts} +1 -1
  276. package/dist/{types-WlmsNL1I.d.ts → types-DnrU3HYQ.d.ts} +8 -1
  277. package/dist/{upstreamMap-ocuIRfI2.js → upstreamMap-BFXZHlnp.js} +36 -1
  278. package/dist/{useIndicator-D9Y0dJsm.js → useIndicator-fTOZfYVI.js} +1 -1
  279. package/dist/{useInputStatusIcon-CWkCeMyX.js → useInputStatusIcon-yj_rY6TQ.js} +2 -2
  280. package/dist/{useMenuDrillIn-DhUnPvKs.js → useMenuDrillIn-CjU_ZMhh.js} +1 -1
  281. package/dist/{useResizable-1MHPNaRD.d.ts → useResizable-BJ0DaMml.d.ts} +8 -3
  282. package/dist/{useTranslator-PEXMxDpv.js → useTranslator-BQ1KFNSZ.js} +2 -2
  283. package/package.json +1 -1
  284. package/styles/icon.css +8 -0
  285. package/styles/link.css +10 -9
  286. package/styles/markdown.css +23 -8
  287. package/styles/power-search.css +4 -2
  288. package/styles/progress-bar.css +7 -1
  289. package/styles/status-dot.css +8 -0
  290. package/styles/tab-list.css +4 -3
  291. package/styles/table.css +47 -60
  292. package/styles/text-input.css +0 -1
  293. package/styles/text.css +18 -16
  294. package/styles/token.css +1 -2
  295. package/styles/toolbar.css +18 -14
  296. package/dist/Toolbar-C0pMWL4S.js +0 -73
  297. package/dist/context-pjBxaMSh.js +0 -28
  298. package/dist/{Code-Bg7GBdxy.js → Code-U7yN4bwZ.js} +1 -1
  299. package/dist/{MediaTheme-DlLqYhDy.js → MediaTheme-p2hOnZaR.js} +1 -1
  300. package/dist/{index-D8lv2BiD.d.ts → index-BJ9Wim6J.d.ts} +1 -1
@@ -4,7 +4,7 @@ import { CSSProperties, MaybeRefOrGetter, Ref, VNode, VNodeChild } from "vue";
4
4
  //#region src/Toolbar/types.d.ts
5
5
  type ToolbarSize = 'sm' | 'md' | 'lg';
6
6
  type ToolbarOrientation = 'horizontal' | 'vertical';
7
- type ToolbarVariant = 'transparent' | 'muted';
7
+ type ToolbarVariant = 'section' | 'transparent' | 'muted';
8
8
  type ToolbarDivider = 'top' | 'bottom' | 'start' | 'end';
9
9
  interface ToolbarProps {
10
10
  /** 工具栏的无障碍名称。 */
@@ -15,7 +15,7 @@ interface ToolbarProps {
15
15
  gap?: SpacingStep;
16
16
  /** 方向键沿哪一根轴移动焦点。 @default 'horizontal' */
17
17
  orientation?: ToolbarOrientation;
18
- /** 底色。muted 用来标出批量操作条。 @default 'transparent' */
18
+ /** 底色,和 Section 的 variant 一致。muted 用来标出批量操作条。 @default 'transparent' */
19
19
  variant?: ToolbarVariant;
20
20
  /** 在指定边上画分隔线。 */
21
21
  dividers?: ToolbarDivider[];
@@ -105,9 +105,14 @@ interface TableSortEntry<TSortKey extends string = string> {
105
105
  direction: TableSortDirection;
106
106
  }
107
107
  type TableSortState<TSortKey extends string = string> = TableSortEntry<TSortKey>[];
108
+ type TableColumnHeader = string | (() => VNodeChild);
108
109
  interface TableColumn<T extends Record<string, unknown> = Record<string, unknown>> {
109
110
  key: string;
110
- header?: string;
111
+ /**
112
+ * 列头内容。字符串直接显示;函数返回的 VNode 用函数式组件渲染(对应原版收
113
+ * ReactNode)。可访问名称等需要纯文本的地方,函数形式回退到 `key`。
114
+ */
115
+ header?: TableColumnHeader;
111
116
  width?: ColumnWidth;
112
117
  align?: TableColumnAlign;
113
118
  verticalAlign?: TableVerticalAlign;
@@ -1,5 +1,5 @@
1
- import { s as useAstryxMessages } from "./context-CM-cjGg_.js";
2
- import { t as upstreamMessageMap } from "./upstreamMap-ocuIRfI2.js";
1
+ import { s as useAstryxMessages } from "./context-CVUee2tp.js";
2
+ import { t as upstreamMessageMap } from "./upstreamMap-BFXZHlnp.js";
3
3
  //#region src/locale/useTranslator.ts
4
4
  /**
5
5
  * 对应原版 Astryx 的 `hooks/useTranslator`。
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astryx-vue/core",
3
3
  "type": "module",
4
- "version": "0.4.1",
4
+ "version": "0.5.0",
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",
package/styles/icon.css CHANGED
@@ -56,6 +56,14 @@
56
56
  display: block;
57
57
  width: 100%;
58
58
  height: 100%;
59
+ }
60
+
61
+ /*
62
+ * An SVG that declares its own fill (a stroked glyph says fill="none") keeps
63
+ * it. Only artwork without a fill attribute is painted with the current color.
64
+ */
65
+ .astryx-icon > svg:not([fill]),
66
+ .astryx-icon__svg > svg:not([fill]) {
59
67
  fill: currentcolor;
60
68
  }
61
69
 
package/styles/link.css CHANGED
@@ -55,15 +55,16 @@
55
55
  line-height: 1;
56
56
  }
57
57
 
58
- .astryx-link--size-sm { font-size: var(--astryx-text-sm-size, 0.75rem); }
59
- .astryx-link--size-md { font-size: var(--astryx-text-md-size, 0.875rem); }
60
- .astryx-link--size-lg { font-size: var(--astryx-text-lg-size, 1rem); }
61
- .astryx-link--size-xl { font-size: var(--astryx-text-xl-size, 1.25rem); }
62
-
63
- .astryx-link--weight-regular { font-weight: var(--astryx-font-weight-regular, 400); }
64
- .astryx-link--weight-medium { font-weight: var(--astryx-font-weight-medium, 500); }
65
- .astryx-link--weight-semibold { font-weight: var(--astryx-font-weight-semibold, 600); }
66
- .astryx-link--weight-bold { font-weight: var(--astryx-font-weight-bold, 700); }
58
+ /* 修饰类与基础规则同特异性,排在后面所以生效:基础里的 `font: inherit` 不会盖掉它们。 */
59
+ .astryx-link.astryx-link--size-sm { font-size: var(--astryx-text-sm-size, 0.75rem); }
60
+ .astryx-link.astryx-link--size-md { font-size: var(--astryx-text-md-size, 0.875rem); }
61
+ .astryx-link.astryx-link--size-lg { font-size: var(--astryx-text-lg-size, 1rem); }
62
+ .astryx-link.astryx-link--size-xl { font-size: var(--astryx-text-xl-size, 1.25rem); }
63
+
64
+ .astryx-link.astryx-link--weight-regular { font-weight: var(--astryx-font-weight-regular, 400); }
65
+ .astryx-link.astryx-link--weight-medium { font-weight: var(--astryx-font-weight-medium, 500); }
66
+ .astryx-link.astryx-link--weight-semibold { font-weight: var(--astryx-font-weight-semibold, 600); }
67
+ .astryx-link.astryx-link--weight-bold { font-weight: var(--astryx-font-weight-bold, 700); }
67
68
 
68
69
  .astryx-link__label {
69
70
  min-width: 0;
@@ -34,14 +34,18 @@
34
34
  margin-inline: auto;
35
35
  }
36
36
 
37
- .astryx-markdown :is(h1, h2, h3, h4, h5, h6).astryx-heading.astryx-markdown__heading {
38
- margin-block: var(--astryx-spacing-4, 16px) var(--astryx-spacing-2, 8px);
37
+ /* 标题间距看源文档里的标题深度(data-depth),不看渲染出来的 h 级别:
38
+ `headingLevelStart` 把 `#` 渲染成 h2 时,它仍然是"深度 1",取大间距。
39
+ 深度 1–3 是大标题(上 24 / 下 12),4–6 是小标题(上 16 / 下 8)。 */
40
+ .astryx-markdown .astryx-heading.astryx-markdown__heading {
41
+ margin-block: var(--_md-heading-top, var(--astryx-spacing-4, 16px)) var(--_md-heading-bottom, var(--astryx-spacing-2, 8px));
39
42
  color: var(--astryx-color-text-primary, #171717);
40
43
  font-family: var(--astryx-font-family-heading, Figtree, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
41
44
  }
42
45
 
43
- .astryx-markdown :is(h1, h2).astryx-heading.astryx-markdown__heading {
44
- margin-block: var(--astryx-spacing-6, 24px) var(--astryx-spacing-3, 12px);
46
+ .astryx-markdown__heading:is([data-depth='1'], [data-depth='2'], [data-depth='3']) {
47
+ --_md-heading-top: var(--astryx-spacing-6, 24px);
48
+ --_md-heading-bottom: var(--astryx-spacing-3, 12px);
45
49
  }
46
50
 
47
51
  .astryx-markdown h1.astryx-heading.astryx-markdown__heading {
@@ -113,12 +117,14 @@
113
117
  border-block-start: var(--astryx-border-width, 1px) solid var(--astryx-color-border, #ebebeb);
114
118
  }
115
119
 
116
- .astryx-markdown[data-density='compact'] :is(h1, h2).astryx-heading.astryx-markdown__heading {
117
- margin-block: var(--astryx-spacing-4, 16px) var(--astryx-spacing-2, 8px);
120
+ .astryx-markdown[data-density='compact'] .astryx-markdown__heading {
121
+ --_md-heading-top: var(--astryx-spacing-3, 12px);
122
+ --_md-heading-bottom: var(--astryx-spacing-1, 4px);
118
123
  }
119
124
 
120
- .astryx-markdown[data-density='compact'] :is(h3, h4, h5, h6).astryx-heading.astryx-markdown__heading {
121
- margin-block: var(--astryx-spacing-3, 12px) var(--astryx-spacing-1, 4px);
125
+ .astryx-markdown[data-density='compact'] .astryx-markdown__heading:is([data-depth='1'], [data-depth='2'], [data-depth='3']) {
126
+ --_md-heading-top: var(--astryx-spacing-4, 16px);
127
+ --_md-heading-bottom: var(--astryx-spacing-2, 8px);
122
128
  }
123
129
 
124
130
  .astryx-markdown[data-density='compact'] :is(.astryx-markdown__paragraph, .astryx-markdown__list) {
@@ -145,6 +151,15 @@
145
151
  margin-block-end: 0;
146
152
  }
147
153
 
154
+ /* 标题自己的间距规则特异性更高,首尾去边距要跟上。 */
155
+ .astryx-markdown > .astryx-heading.astryx-markdown__heading:first-child {
156
+ margin-block-start: 0;
157
+ }
158
+
159
+ .astryx-markdown > .astryx-heading.astryx-markdown__heading:last-child {
160
+ margin-block-end: 0;
161
+ }
162
+
148
163
  .astryx-markdown strong {
149
164
  font-weight: var(--astryx-font-weight-semibold, 600);
150
165
  }
@@ -94,9 +94,10 @@
94
94
  cursor: pointer;
95
95
  }
96
96
 
97
+ /* 空着不占位:剩余宽度全给输入框(原版 Tokenizer 里输入框 flex 1 1 40px)。 */
97
98
  .astryx-power-search-tokens {
98
99
  display: flex;
99
- flex: 1 1 auto;
100
+ flex: 0 1 auto;
100
101
  flex-wrap: wrap;
101
102
  align-items: center;
102
103
  gap: var(--astryx-spacing-1, 4px);
@@ -138,10 +139,11 @@
138
139
  white-space: nowrap;
139
140
  }
140
141
 
142
+ /* 高度交给内容(原版输入框不定高),字段的 min-height 和 padding 说了算。 */
141
143
  .astryx-power-search-input {
142
144
  flex: 1 1 8rem;
143
145
  min-width: 4rem;
144
- height: var(--astryx-input-height-sm, 28px);
146
+ height: auto;
145
147
  margin: 0;
146
148
  padding: 0 var(--astryx-spacing-1, 4px);
147
149
  border: 0;
@@ -6,7 +6,8 @@
6
6
  display: flex;
7
7
  flex-direction: column;
8
8
  gap: var(--astryx-spacing-1, 4px);
9
- min-width: 0;
9
+ width: 100%;
10
+ min-width: 48px;
10
11
  }
11
12
 
12
13
  .astryx-progress-bar-header {
@@ -133,6 +134,11 @@
133
134
  background: var(--astryx-progress-bar-info-fill, var(--astryx-input-info, #6d9cfe));
134
135
  }
135
136
 
137
+ /* 原版 neutral 填充是 disabled 灰,不是前景近黑。 */
138
+ .astryx-progress-bar[data-variant='neutral'] .astryx-progress-bar-fill {
139
+ background: var(--astryx-progress-bar-neutral-fill, var(--astryx-color-text-disabled, light-dark(#a3a3a3, #525252)));
140
+ }
141
+
136
142
  /* A disabled bar dims everything it draws: the fill drops the variant color
137
143
  for the disabled foreground, and the label, value and marks step down to
138
144
  the muted ramp. */
@@ -13,6 +13,10 @@
13
13
  background-color: var(--astryx-status-dot-neutral-background, #a3a3a3);
14
14
  }
15
15
 
16
+ .astryx-status-dot[data-variant='accent'] {
17
+ background-color: var(--astryx-status-dot-accent-background, var(--astryx-color-accent, #1b1b1b));
18
+ }
19
+
16
20
  .astryx-status-dot[data-variant='info'] {
17
21
  background-color: var(--astryx-status-dot-info-background, #0074e2);
18
22
  }
@@ -43,6 +47,10 @@
43
47
  height: 75%;
44
48
  }
45
49
 
50
+ .astryx-status-dot[data-variant='accent'] .astryx-status-dot__icon {
51
+ color: var(--astryx-status-dot-accent-icon-foreground, var(--astryx-color-on-accent, #fff));
52
+ }
53
+
46
54
  .astryx-status-dot[data-variant='warning'] .astryx-status-dot__icon {
47
55
  color: var(--astryx-status-dot-warning-icon-foreground, #171717);
48
56
  }
@@ -187,19 +187,20 @@
187
187
  flex: 1 1 0;
188
188
  }
189
189
 
190
+ /* 原版三个尺寸都用 label 字号(14px),不随尺寸变化。 */
190
191
  .astryx-tab--size-sm {
191
192
  min-height: 28px;
192
- font-size: 0.8125rem;
193
+ font-size: var(--astryx-text-label-size, 0.875rem);
193
194
  }
194
195
 
195
196
  .astryx-tab--size-md {
196
197
  min-height: 32px;
197
- font-size: var(--astryx-text-body-size, 0.875rem);
198
+ font-size: var(--astryx-text-label-size, 0.875rem);
198
199
  }
199
200
 
200
201
  .astryx-tab--size-lg {
201
202
  min-height: 36px;
202
- font-size: 0.9375rem;
203
+ font-size: var(--astryx-text-label-size, 0.875rem);
203
204
  }
204
205
 
205
206
  .astryx-tab:hover:not(:disabled, [aria-disabled='true']) {
package/styles/table.css CHANGED
@@ -22,7 +22,13 @@
22
22
  border-spacing: 0;
23
23
  color: var(--astryx-color-text-primary, light-dark(#171717, #fafafa));
24
24
  font-family: inherit;
25
- font-size: var(--astryx-text-body-size, 1rem);
25
+ /* 原版表格元素不设字号:分组头等自定义内容继承环境字号(16px),
26
+ 数据格的字号由 td 自己带(见下),所以两边分开。 */
27
+ }
28
+
29
+ /* 数据模式(传 data 和 columns)按声明的列宽比例严格分配;手写行列的模式按内容定宽。 */
30
+ .astryx-table[data-layout='fixed'] {
31
+ table-layout: fixed;
26
32
  }
27
33
 
28
34
  .astryx-table :is(th, td) {
@@ -39,43 +45,47 @@
39
45
  vertical-align: bottom;
40
46
  }
41
47
 
42
- .astryx-table[data-density='compact'] :is(th, td) {
43
- padding-block: var(--astryx-spacing-1, 4px);
44
- padding-inline: var(--astryx-spacing-2, 8px);
45
- }
46
-
47
- .astryx-table[data-density='balanced'] :is(th, td) {
48
- padding-block: var(--astryx-spacing-2, 8px);
49
- padding-inline: var(--astryx-spacing-3, 12px);
48
+ /* 密度只决定两个变量。内边距由下面一条规则读变量,并且只管表格自己的格子:
49
+ 分组头、展开面板是插件渲染的整行格,内边距归它们自己的规则(__group、__panel)。
50
+ 用 :where 排除它们,不抬特异性,插件格子也就不必和密度规则比特异性。 */
51
+ .astryx-table[data-density='compact'] {
52
+ --_cell-block: var(--astryx-spacing-1, 4px);
53
+ --_cell-inline: var(--astryx-spacing-2, 8px);
50
54
  }
51
55
 
52
- .astryx-table[data-density='spacious'] :is(th, td) {
53
- padding-block: var(--astryx-spacing-3, 12px);
54
- padding-inline: var(--astryx-spacing-4, 16px);
56
+ .astryx-table[data-density='balanced'] {
57
+ --_cell-block: var(--astryx-spacing-2, 8px);
58
+ --_cell-inline: var(--astryx-spacing-3, 12px);
55
59
  }
56
60
 
57
- .astryx-table[data-density='compact'] :is(th, td):first-child {
58
- padding-inline-start: max(var(--container-padding-inline-start, var(--astryx-spacing-2, 8px)), var(--astryx-spacing-2, 8px));
61
+ .astryx-table[data-density='spacious'] {
62
+ --_cell-block: var(--astryx-spacing-3, 12px);
63
+ --_cell-inline: var(--astryx-spacing-4, 16px);
59
64
  }
60
65
 
61
- .astryx-table[data-density='compact'] :is(th, td):last-child {
62
- padding-inline-end: max(var(--container-padding-inline-end, var(--astryx-spacing-2, 8px)), var(--astryx-spacing-2, 8px));
66
+ .astryx-table :is(th, td):where(:not(.astryx-table__group, .astryx-table__panel)) {
67
+ padding-block: var(--_cell-block, var(--astryx-spacing-2, 8px));
68
+ padding-inline: var(--_cell-inline, var(--astryx-spacing-3, 12px));
63
69
  }
64
70
 
65
- .astryx-table[data-density='balanced'] :is(th, td):first-child {
66
- padding-inline-start: max(var(--container-padding-inline-start, var(--astryx-spacing-3, 12px)), var(--astryx-spacing-2, 8px));
71
+ /* 原版里带右键菜单的格子(可展开行的每一格)把内边距挪给了菜单触发层,
72
+ `<td>` 自己只剩浏览器默认的 1px,所以这些格子上下各比普通格多 1px。 */
73
+ .astryx-table td[data-row-menu] {
74
+ padding-block: calc(var(--_cell-block, var(--astryx-spacing-2, 8px)) + 1px);
67
75
  }
68
76
 
69
- .astryx-table[data-density='balanced'] :is(th, td):last-child {
70
- padding-inline-end: max(var(--container-padding-inline-end, var(--astryx-spacing-3, 12px)), var(--astryx-spacing-2, 8px));
77
+ .astryx-table :is(th, td):where(:not(.astryx-table__group, .astryx-table__panel)):first-child {
78
+ padding-inline-start: max(var(--container-padding-inline-start, var(--_cell-inline, var(--astryx-spacing-3, 12px))), var(--astryx-spacing-2, 8px));
71
79
  }
72
80
 
73
- .astryx-table[data-density='spacious'] :is(th, td):first-child {
74
- padding-inline-start: max(var(--container-padding-inline-start, var(--astryx-spacing-4, 16px)), var(--astryx-spacing-2, 8px));
81
+ .astryx-table :is(th, td):where(:not(.astryx-table__group, .astryx-table__panel)):last-child {
82
+ padding-inline-end: max(var(--container-padding-inline-end, var(--_cell-inline, var(--astryx-spacing-3, 12px))), var(--astryx-spacing-2, 8px));
75
83
  }
76
84
 
77
- .astryx-table[data-density='spacious'] :is(th, td):last-child {
78
- padding-inline-end: max(var(--container-padding-inline-end, var(--astryx-spacing-4, 16px)), var(--astryx-spacing-2, 8px));
85
+ /* 原版 TableCell 给普通数据格带正文字号;分组头、展开面板、空态这些
86
+ 插件渲染的格子不设字号,继承环境字号。 */
87
+ .astryx-table td:not(.astryx-table__group, .astryx-table__panel, .astryx-table__empty) {
88
+ font-size: var(--astryx-text-body-size, 0.875rem);
79
89
  }
80
90
 
81
91
  .astryx-table th {
@@ -292,12 +302,6 @@
292
302
  text-align: center;
293
303
  }
294
304
 
295
- .astryx-table__select {
296
- width: 48px;
297
- min-width: 48px;
298
- max-width: 48px;
299
- }
300
-
301
305
  .astryx-table__filter {
302
306
  min-width: 0;
303
307
  }
@@ -381,11 +385,6 @@
381
385
  * 选择工具栏复用 Toolbar 的骨架:产品操作排在逻辑起点,计数文字和清空命令排在末端。
382
386
  */
383
387
 
384
- /* Toolbar 只有透明和弱化底,表面色这一档在这里补上。 */
385
- .astryx-table-selection-toolbar--section {
386
- background: var(--astryx-color-background-surface, #fff);
387
- }
388
-
389
388
  .astryx-table-selection-toolbar__label {
390
389
  font-size: var(--astryx-text-body-size, 0.875rem);
391
390
  line-height: var(--astryx-text-body-leading, 1.4286);
@@ -412,10 +411,13 @@
412
411
  border-bottom: var(--astryx-border-width, 1px) solid var(--astryx-color-border, light-dark(#ebebeb, #ffffff1a));
413
412
  }
414
413
 
414
+ /* 原版分组头固定 8px 12px 8px 0(块向 8、结束侧 12、起始侧 0),不随密度变。 */
415
415
  .astryx-table td.astryx-table__group {
416
416
  max-width: none;
417
417
  overflow: visible;
418
+ padding-block: var(--astryx-spacing-2, 8px);
418
419
  padding-inline-start: 0;
420
+ padding-inline-end: var(--astryx-spacing-3, 12px);
419
421
  background: var(--astryx-color-background-muted, light-dark(#f1f1f1, #1b1b1b));
420
422
  }
421
423
 
@@ -529,20 +531,12 @@
529
531
  width: 40px;
530
532
  min-width: 40px;
531
533
  max-width: 40px;
532
- padding-inline-start: 0;
533
534
  padding-inline-end: 0;
534
535
  }
535
536
 
536
- .astryx-table[data-density='compact'] .astryx-table__expander--column {
537
- margin-inline-start: calc((40px - min(var(--astryx-spacing-6, 24px), 40px)) / 2 - var(--astryx-spacing-2, 8px));
538
- }
539
-
540
- .astryx-table[data-density='balanced'] .astryx-table__expander--column {
541
- margin-inline-start: calc((40px - min(var(--astryx-spacing-6, 24px), 40px)) / 2 - var(--astryx-spacing-3, 12px));
542
- }
543
-
544
- .astryx-table[data-density='spacious'] .astryx-table__expander--column {
545
- margin-inline-start: calc((40px - min(var(--astryx-spacing-6, 24px), 40px)) / 2 - var(--astryx-spacing-4, 16px));
537
+ /* 展开列的起始侧内边距就是密度的横向内边距,按钮往回缩这一段,居中在 40px 的列里。 */
538
+ .astryx-table .astryx-table__expander--column {
539
+ margin-inline-start: calc((40px - min(var(--astryx-spacing-6, 24px), 40px)) / 2 - var(--_cell-inline, var(--astryx-spacing-3, 12px)));
546
540
  }
547
541
 
548
542
  .astryx-table[data-dividers='rows'] tbody tr[data-expanded] > td,
@@ -554,30 +548,23 @@
554
548
  background: var(--astryx-color-background-muted, light-dark(#f1f1f1, #1b1b1b));
555
549
  }
556
550
 
557
- .astryx-table__panel {
551
+ /* 面板的块向 16、结束侧 20 固定不变;起始侧让出 40px 的展开列再加密度的横向内边距。 */
552
+ .astryx-table td.astryx-table__panel {
558
553
  max-width: none;
559
554
  padding-inline-end: var(--astryx-spacing-5, 20px);
560
555
  padding-block: var(--astryx-spacing-4, 16px);
561
556
  }
562
557
 
563
- .astryx-table[data-density='compact'] .astryx-table__panel {
564
- padding-inline-start: calc(40px + var(--astryx-spacing-2, 8px));
565
- }
566
-
567
- .astryx-table[data-density='balanced'] .astryx-table__panel {
568
- padding-inline-start: calc(40px + var(--astryx-spacing-3, 12px));
569
- }
570
-
571
- .astryx-table[data-density='spacious'] .astryx-table__panel {
572
- padding-inline-start: calc(40px + var(--astryx-spacing-4, 16px));
558
+ .astryx-table td.astryx-table__panel {
559
+ padding-inline-start: calc(40px + var(--_cell-inline, var(--astryx-spacing-3, 12px)));
573
560
  }
574
561
 
575
- .astryx-table[data-dividers='rows'] .astryx-table__panel,
576
- .astryx-table[data-dividers='grid'] .astryx-table__panel {
562
+ .astryx-table[data-dividers='rows'] td.astryx-table__panel,
563
+ .astryx-table[data-dividers='grid'] td.astryx-table__panel {
577
564
  border-bottom: var(--astryx-border-width, 1px) solid var(--astryx-color-border, light-dark(#ebebeb, #ffffff1a));
578
565
  }
579
566
 
580
- .astryx-table tbody tr:last-child > .astryx-table__panel {
567
+ .astryx-table tbody tr:last-child > td.astryx-table__panel {
581
568
  border-bottom-width: 0;
582
569
  }
583
570
 
@@ -47,7 +47,6 @@
47
47
  box-sizing: border-box;
48
48
  display: block;
49
49
  flex: 1;
50
- width: 100%;
51
50
  min-width: 0;
52
51
  min-height: 0;
53
52
  padding: 0;
package/styles/text.css CHANGED
@@ -13,22 +13,6 @@
13
13
  display: block;
14
14
  }
15
15
 
16
- .astryx-text--weight-regular {
17
- font-weight: var(--astryx-font-weight-regular, 400);
18
- }
19
-
20
- .astryx-text--weight-medium {
21
- font-weight: var(--astryx-font-weight-medium, 500);
22
- }
23
-
24
- .astryx-text--weight-semibold {
25
- font-weight: var(--astryx-font-weight-semibold, 600);
26
- }
27
-
28
- .astryx-text--weight-bold {
29
- font-weight: var(--astryx-font-weight-bold, 700);
30
- }
31
-
32
16
  .astryx-text--type-body {
33
17
  font-size: var(--astryx-text-body-size, 0.875rem);
34
18
  line-height: var(--astryx-text-body-leading, 1.4286);
@@ -75,6 +59,24 @@
75
59
  line-height: var(--astryx-text-display-3-leading, 1.2);
76
60
  }
77
61
 
62
+ /* 显式 weight 排在 type 规则之后:调用方写了 weight 就赢过 display-* 的默认 300。 */
63
+
64
+ .astryx-text--weight-regular {
65
+ font-weight: var(--astryx-font-weight-regular, 400);
66
+ }
67
+
68
+ .astryx-text--weight-medium {
69
+ font-weight: var(--astryx-font-weight-medium, 500);
70
+ }
71
+
72
+ .astryx-text--weight-semibold {
73
+ font-weight: var(--astryx-font-weight-semibold, 600);
74
+ }
75
+
76
+ .astryx-text--weight-bold {
77
+ font-weight: var(--astryx-font-weight-bold, 700);
78
+ }
79
+
78
80
  .astryx-text--color-primary {
79
81
  color: var(--astryx-color-text-primary, light-dark(#171717, #fafafa));
80
82
  }
package/styles/token.css CHANGED
@@ -19,13 +19,12 @@
19
19
  line-height: var(--astryx-text-supporting-leading, 1.6667);
20
20
  text-decoration: none;
21
21
  white-space: nowrap;
22
- vertical-align: middle;
23
22
  transition: background-color var(--astryx-duration-fast-max, 165ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
24
23
  }
25
24
 
25
+ /* 原版 sm 不换内边距,和 md/lg 一样留 8px。 */
26
26
  .astryx-token.size-sm {
27
27
  height: calc(var(--astryx-input-height-sm, 28px) - 8px);
28
- padding-inline: var(--astryx-spacing-1, 4px);
29
28
  }
30
29
 
31
30
  .astryx-token.size-lg {
@@ -9,22 +9,10 @@
9
9
  gap: var(--astryx-toolbar-gap, var(--astryx-spacing-2, 8px));
10
10
  width: 100%;
11
11
  min-width: 0;
12
- padding-block: var(--astryx-spacing-2, 8px);
12
+ /* 原版三个尺寸的最小高度都是小号控件高;更高的尺寸由里面的按钮撑开。 */
13
+ min-height: var(--astryx-input-height-sm, 28px);
13
14
  }
14
15
 
15
- .astryx-toolbar--muted {
16
- background: var(--astryx-color-background-muted);
17
- }
18
-
19
- .astryx-toolbar--divider-top { border-top: var(--astryx-border-width, 1px) solid var(--astryx-color-border); }
20
- .astryx-toolbar--divider-bottom { border-bottom: var(--astryx-border-width, 1px) solid var(--astryx-color-border); }
21
- .astryx-toolbar--divider-start { border-inline-start: var(--astryx-border-width, 1px) solid var(--astryx-color-border); }
22
- .astryx-toolbar--divider-end { border-inline-end: var(--astryx-border-width, 1px) solid var(--astryx-color-border); }
23
-
24
- .astryx-toolbar--sm { min-height: 28px; }
25
- .astryx-toolbar--md { min-height: 32px; }
26
- .astryx-toolbar--lg { min-height: 36px; }
27
-
28
16
  .astryx-toolbar--centered {
29
17
  display: grid;
30
18
  grid-template-columns: 1fr auto 1fr;
@@ -58,6 +46,22 @@
58
46
  min-width: 0;
59
47
  }
60
48
 
49
+ /*
50
+ * 首尾的幽灵按钮自带透明内边距。工具栏把这一侧的槽往外拉回
51
+ * 「容器内边距 − 工具栏块向内边距」,按钮的字形才落在内容边上。
52
+ */
53
+ .astryx-toolbar__slot {
54
+ --_edge-comp-inset: calc(var(--container-padding-inline-start, var(--astryx-spacing-4, 16px)) - var(--astryx-spacing-2, 8px));
55
+ }
56
+
57
+ .astryx-toolbar__slot:has(> [data-astryx-edge-comp]:first-child) {
58
+ margin-inline-start: calc(-1 * var(--_edge-comp-inset));
59
+ }
60
+
61
+ .astryx-toolbar__slot:has(> [data-astryx-edge-comp]:last-child) {
62
+ margin-inline-end: calc(-1 * var(--_edge-comp-inset));
63
+ }
64
+
61
65
  .astryx-toolbar__slot--center {
62
66
  justify-content: center;
63
67
  min-width: 0;
@@ -1,73 +0,0 @@
1
- import { t as useListFocus } from "./useListFocus-ChxLg0b4.js";
2
- import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, openBlock, renderSlot, unref } from "vue";
3
- import "../styles/toolbar.css";
4
- //#region src/Toolbar/Toolbar.vue
5
- const _hoisted_1 = ["aria-label", "aria-orientation"];
6
- const _hoisted_2 = {
7
- key: 0,
8
- class: "astryx-toolbar__slot astryx-toolbar__slot--start"
9
- };
10
- const _hoisted_3 = {
11
- key: 1,
12
- class: "astryx-toolbar__slot astryx-toolbar__slot--center"
13
- };
14
- const _hoisted_4 = {
15
- key: 2,
16
- class: "astryx-toolbar__slot astryx-toolbar__slot--end"
17
- };
18
- const _sfc_main = /*@__PURE__*/ defineComponent({
19
- name: "AstryxToolbar",
20
- __name: "Toolbar",
21
- props: {
22
- label: {},
23
- size: { default: "md" },
24
- gap: { default: 1 },
25
- orientation: { default: "horizontal" },
26
- variant: { default: "transparent" },
27
- dividers: {}
28
- },
29
- setup(__props) {
30
- const props = __props;
31
- const gapToken = computed(() => String(props.gap).replace(".", "-"));
32
- const { listRef, handleKeyDown, handleFocus } = useListFocus({
33
- boundarySelector: "[role=\"toolbar\"], [role=\"menu\"], [role=\"dialog\"]",
34
- hasHomeEnd: true,
35
- hasRovingTabIndex: true,
36
- itemSelector: "a[href], button:not([disabled]), input:not([disabled]):not([type=\"hidden\"]), select:not([disabled]), textarea:not([disabled])",
37
- hasCaretGuard: true,
38
- orientation: props.orientation === "vertical" ? "vertical" : "horizontal",
39
- wrap: true
40
- });
41
- listRef.value;
42
- return (_ctx, _cache) => {
43
- return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" eslint-disable-next-line vue-a11y/no-static-element-interactions -- role=\"toolbar\" 的焦点在内部控件上循环,容器只接收冒泡的方向键。 "), createElementVNode("div", {
44
- ref_key: "listRef",
45
- ref: listRef,
46
- class: normalizeClass(["astryx-toolbar", [
47
- `astryx-toolbar--${__props.size}`,
48
- `astryx-toolbar--${__props.orientation}`,
49
- {
50
- "astryx-toolbar--centered": _ctx.$slots.center,
51
- "astryx-toolbar--muted": __props.variant === "muted",
52
- "astryx-toolbar--divider-top": __props.dividers?.includes("top"),
53
- "astryx-toolbar--divider-bottom": __props.dividers?.includes("bottom"),
54
- "astryx-toolbar--divider-start": __props.dividers?.includes("start"),
55
- "astryx-toolbar--divider-end": __props.dividers?.includes("end")
56
- }
57
- ]]),
58
- role: "toolbar",
59
- "aria-label": __props.label,
60
- "aria-orientation": __props.orientation,
61
- style: normalizeStyle({ "--astryx-toolbar-gap": `var(--astryx-spacing-${gapToken.value})` }),
62
- onFocusin: _cache[0] || (_cache[0] = (...args) => unref(handleFocus) && unref(handleFocus)(...args)),
63
- onKeydown: _cache[1] || (_cache[1] = (...args) => unref(handleKeyDown) && unref(handleKeyDown)(...args))
64
- }, [
65
- _ctx.$slots.start ? (openBlock(), createElementBlock("div", _hoisted_2, [renderSlot(_ctx.$slots, "start")])) : createCommentVNode("v-if", true),
66
- _ctx.$slots.center ? (openBlock(), createElementBlock("div", _hoisted_3, [renderSlot(_ctx.$slots, "center")])) : createCommentVNode("v-if", true),
67
- _ctx.$slots.end ? (openBlock(), createElementBlock("div", _hoisted_4, [renderSlot(_ctx.$slots, "end")])) : createCommentVNode("v-if", true)
68
- ], 46, _hoisted_1)], 2112);
69
- };
70
- }
71
- });
72
- //#endregion
73
- export { _sfc_main as t };
@@ -1,28 +0,0 @@
1
- import { n as readLayerScoped, t as defineLayerScopedKey } from "./scopedProvide-C-Df7c15.js";
2
- import { computed, provide, toValue } from "vue";
3
- //#region src/Icon/context.ts
4
- /**
5
- * The size an owning component supplies to the icons in its slots.
6
- *
7
- * The value is stored as given, so a caller can pass a ref or a computed and
8
- * keep the default in step with its own props.
9
- */
10
- const ICON_DEFAULT_SIZE_KEY = defineLayerScopedKey("astryx-icon-default-size", void 0);
11
- /**
12
- * Let the icons inside a component follow that component's own size.
13
- *
14
- * Call it in the component's setup with a ref or computed so the inherited size
15
- * stays reactive.
16
- */
17
- function provideIconSize(size) {
18
- provide(ICON_DEFAULT_SIZE_KEY, size);
19
- }
20
- /**
21
- * The size inherited from the nearest owner, or `undefined` when there is none.
22
- */
23
- function useIconDefaultSize() {
24
- const inherited = readLayerScoped(ICON_DEFAULT_SIZE_KEY);
25
- return computed(() => inherited == null ? void 0 : toValue(inherited));
26
- }
27
- //#endregion
28
- export { useIconDefaultSize as n, provideIconSize as t };