@astryx-vue/core 0.25.0 → 0.26.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 (288) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-Cub9_aPC.js → AlertDialog-Sku86l_R.js} +191 -5
  3. package/dist/AppShell/index.js +1 -1
  4. package/dist/{AppShell-D62A7lqZ.js → AppShell-CJWvaqgZ.js} +5 -5
  5. package/dist/Avatar/index.js +1 -1
  6. package/dist/{Avatar-BKoSK75s.js → Avatar-C5KaulzE.js} +1 -1
  7. package/dist/AvatarGroup/index.d.ts +1 -1
  8. package/dist/Badge/index.d.ts +1 -2
  9. package/dist/Banner/index.d.ts +1 -1
  10. package/dist/BottomSheet/index.d.ts +1 -1
  11. package/dist/BottomSheet/index.js +2 -2
  12. package/dist/{BottomSheet-DGhRZLw4.js → BottomSheet-BtuF3uH6.js} +6 -3
  13. package/dist/{BottomSheet-CpLYy3vb.js → BottomSheet-DKrJyrhw.js} +1 -1
  14. package/dist/Breadcrumbs/index.js +2 -2
  15. package/dist/{Breadcrumbs-D-nHDHV8.js → Breadcrumbs-Cvzwy6sZ.js} +1 -1
  16. package/dist/Button/index.d.ts +1 -1
  17. package/dist/ButtonGroup/index.d.ts +1 -1
  18. package/dist/Calendar/index.d.ts +1 -1
  19. package/dist/Carousel/index.d.ts +1 -1
  20. package/dist/Chat/index.d.ts +1 -1
  21. package/dist/Chat/index.js +1 -1
  22. package/dist/{Chat-U1qq8gkF.js → Chat-BIHEfSec.js} +202 -40
  23. package/dist/CheckboxInput/index.d.ts +1 -1
  24. package/dist/CheckboxInput/index.js +1 -1
  25. package/dist/{CheckboxInput-qm6lkjAw.js → CheckboxInput-wmX3Ekj-.js} +5 -5
  26. package/dist/CheckboxList/index.d.ts +1 -1
  27. package/dist/CheckboxList/index.js +1 -1
  28. package/dist/{CheckboxList-DuCKhJHJ.js → CheckboxList-JWXHHU-u.js} +4 -4
  29. package/dist/ClickableCard/index.d.ts +1 -1
  30. package/dist/Collapsible/index.js +1 -1
  31. package/dist/{Collapsible-BmUloCSR.js → Collapsible-BDCJRfFN.js} +2 -2
  32. package/dist/CommandPalette/index.js +1 -1
  33. package/dist/{CommandPalette-Cy7trpD3.js → CommandPalette-CJyQd7P-.js} +1 -1
  34. package/dist/ComplexSelector/index.d.ts +1 -1
  35. package/dist/ComplexSelector/index.js +1 -1
  36. package/dist/{ComplexSelector-DMBiVQWp.js → ComplexSelector-DIb8LjYJ.js} +4 -4
  37. package/dist/ContextMenu/index.d.ts +1 -1
  38. package/dist/ContextMenu/index.js +2 -2
  39. package/dist/{ContextMenu-63ay7EE-.js → ContextMenu-HLvsROcS.js} +4 -4
  40. package/dist/DateInput/index.d.ts +1 -1
  41. package/dist/DateInput/index.js +1 -1
  42. package/dist/{DateInput-B3Q91FDT.js → DateInput-D5YBijbb.js} +14 -33
  43. package/dist/DateRangeInput/index.d.ts +1 -1
  44. package/dist/DateRangeInput/index.js +1 -1
  45. package/dist/{DateRangeInput-B6Z66OsH.js → DateRangeInput-BlcHsqgx.js} +5 -5
  46. package/dist/DateTimeInput/index.d.ts +1 -1
  47. package/dist/DateTimeInput/index.js +1 -1
  48. package/dist/{DateTimeInput-B_7cn7ze.js → DateTimeInput-Bx3LWb9Y.js} +6 -6
  49. package/dist/Dialog/index.d.ts +1 -1
  50. package/dist/Dialog/index.js +3 -3
  51. package/dist/{Dialog-CBPD5b-S.js → Dialog-CNLEL4Mf.js} +1 -1
  52. package/dist/{Dialog-C4FZ7p7Q.js → Dialog-CxeXQTqH.js} +1 -1
  53. package/dist/{DialogHeader-CQ3pnLYi.js → DialogHeader-CjXS_wba.js} +1 -1
  54. package/dist/Divider/index.d.ts +1 -1
  55. package/dist/Drawer/index.d.ts +1 -1
  56. package/dist/Drawer/index.js +1 -1
  57. package/dist/{Drawer-BOwQLKm9.js → Drawer-B_4HN6v5.js} +2 -2
  58. package/dist/DropdownMenu/index.js +3 -3
  59. package/dist/{DropdownMenu-9CR9TiKG.js → DropdownMenu-CvdeExRQ.js} +3 -3
  60. package/dist/{DropdownMenu-DwIfoTnV.js → DropdownMenu-D_fBzKvf.js} +38 -9
  61. package/dist/EmptyState/index.js +1 -1
  62. package/dist/{EmptyState-BG5g2jwJ.js → EmptyState-DUaFClsX.js} +4 -50
  63. package/dist/Field/index.d.ts +3 -3
  64. package/dist/Field/index.js +2 -2
  65. package/dist/{Field-eAowUUMX.js → Field-Btyrw1hd.js} +2 -2
  66. package/dist/{FieldLabel-CgYk-ORu.js → FieldLabel-B4l3sS4O.js} +3 -3
  67. package/dist/FieldStatus/index.d.ts +1 -1
  68. package/dist/FileInput/index.d.ts +1 -1
  69. package/dist/FileInput/index.js +1 -1
  70. package/dist/{FileInput-B7zeePbM.js → FileInput-BUwV9fQa.js} +135 -85
  71. package/dist/FormLayout/index.js +1 -1
  72. package/dist/{FormLayout-CGJVeNsL.js → FormLayout-0_X9o-L4.js} +1 -1
  73. package/dist/Heading/index.js +1 -1
  74. package/dist/{Heading-B1dNZQtu.js → Heading-BuZaxfIK.js} +1 -1
  75. package/dist/HoverCard/index.d.ts +1 -1
  76. package/dist/Indicator/index.d.ts +2 -2
  77. package/dist/InfoTip/index.d.ts +1 -1
  78. package/dist/InfoTip/index.js +1 -1
  79. package/dist/{InfoTip-LJi9llxi.js → InfoTip-BDo2xI8h.js} +1 -1
  80. package/dist/InputGroup/index.d.ts +1 -1
  81. package/dist/InputGroup/index.js +1 -1
  82. package/dist/{InputGroup-B8PGJZKH.js → InputGroup-1Ukiu-dg.js} +6 -6
  83. package/dist/InternationalizationProvider/index.d.ts +1 -1
  84. package/dist/InternationalizationProvider/index.js +1 -1
  85. package/dist/{InternationalizationProvider-DaZS5Dch.js → InternationalizationProvider-B2Gv5yAm.js} +1 -1
  86. package/dist/Link/index.d.ts +1 -1
  87. package/dist/Link/index.js +1 -1
  88. package/dist/{Link-B75ygGzG.js → Link-ruNSnGtC.js} +1 -1
  89. package/dist/List/index.d.ts +1 -1
  90. package/dist/Markdown/index.d.ts +1 -1
  91. package/dist/Markdown/index.js +1 -1
  92. package/dist/{Markdown-Cqrcj-ct.js → Markdown-C-KT_riK.js} +2 -2
  93. package/dist/MobileNav/index.js +1 -1
  94. package/dist/{MobileNavToggle-DLpEONfs.js → MobileNavToggle-BGNYwwfI.js} +1 -1
  95. package/dist/MoreMenu/index.d.ts +1 -1
  96. package/dist/MoreMenu/index.js +1 -1
  97. package/dist/{MoreMenu-aR88r9xp.js → MoreMenu-DnwzVBEE.js} +2 -2
  98. package/dist/MultiSelector/index.d.ts +1 -1
  99. package/dist/MultiSelector/index.js +1 -1
  100. package/dist/{MultiSelector-UTaDe-YT.js → MultiSelector-Cl_HzKvn.js} +6 -6
  101. package/dist/NavItem/index.d.ts +1 -1
  102. package/dist/NavMenu/index.js +2 -2
  103. package/dist/{NavMenu-DS6y8ZAY.js → NavMenu-pCZjhMHe.js} +1 -1
  104. package/dist/{NavMenuItem-BqIi3o3D.js → NavMenuItem-BIqpJmH6.js} +1 -1
  105. package/dist/NumberInput/index.d.ts +2 -2
  106. package/dist/NumberInput/index.js +1 -1
  107. package/dist/{NumberInput-ClkOGF5j.js → NumberInput-Dz0H_XPw.js} +384 -97
  108. package/dist/OverflowList/index.d.ts +1 -1
  109. package/dist/OverflowList/index.js +1 -1
  110. package/dist/{OverflowList-UnVXBDIW.js → OverflowList-MCN1PhBB.js} +1 -1
  111. package/dist/Overlay/index.d.ts +1 -1
  112. package/dist/Pagination/index.d.ts +1 -1
  113. package/dist/Pagination/index.js +1 -1
  114. package/dist/{Pagination-CTCLE02h.js → Pagination-Cq9BIzPe.js} +59 -48
  115. package/dist/Popover/index.d.ts +3 -3
  116. package/dist/Popover/index.js +1 -1
  117. package/dist/Popover-BJAyg1Qh.js +1247 -0
  118. package/dist/PowerSearch/index.d.ts +1 -1
  119. package/dist/PowerSearch/index.js +1 -1
  120. package/dist/{PowerSearch-BBOum0TP.js → PowerSearch-wXnusKnz.js} +14 -14
  121. package/dist/ProgressBar/index.d.ts +1 -1
  122. package/dist/ProgressBar/index.js +1 -1
  123. package/dist/{ProgressBar-Bgg6zsKR.js → ProgressBar-C6x0E-BF.js} +1 -1
  124. package/dist/Radio/index.d.ts +1 -1
  125. package/dist/Radio/index.js +1 -1
  126. package/dist/{RadioGroup-DPy5JQhm.js → RadioGroup-LUDji_LA.js} +5 -5
  127. package/dist/RadioList/index.d.ts +1 -1
  128. package/dist/RadioList/index.js +1 -1
  129. package/dist/{RadioList-UN7IxQg8.js → RadioList-CmeUUgn-.js} +1 -1
  130. package/dist/Resizable/index.d.ts +1 -1
  131. package/dist/ScrollableArea/index.d.ts +1 -1
  132. package/dist/SelectableCard/index.d.ts +1 -1
  133. package/dist/Selector/index.d.ts +1 -1
  134. package/dist/Selector/index.js +1 -1
  135. package/dist/{Selector-CCtsUveZ.js → Selector-BL_JH51H.js} +6 -6
  136. package/dist/SideNav/index.d.ts +1 -1
  137. package/dist/SideNav/index.js +2 -2
  138. package/dist/{SideNav-COl5ApOz.js → SideNav-DtAQA-o-.js} +5 -5
  139. package/dist/Slider/index.d.ts +1 -1
  140. package/dist/Slider/index.js +1 -1
  141. package/dist/{Slider-CYie9hWm.js → Slider-DEMdW9An.js} +3 -3
  142. package/dist/StatusDot/index.js +1 -1
  143. package/dist/{StatusDot-CHfgSYmv.js → StatusDot-_rucEf3d.js} +1 -1
  144. package/dist/Stepper/index.d.ts +1 -1
  145. package/dist/Switch/index.d.ts +1 -1
  146. package/dist/Switch/index.js +1 -1
  147. package/dist/{Switch-D24CvhDS.js → Switch-BxRYZTQV.js} +5 -5
  148. package/dist/TabList/index.d.ts +1 -1
  149. package/dist/TabList/index.js +1 -1
  150. package/dist/{TabList-DToCh5JW.js → TabList-D8KzfcGB.js} +1 -1
  151. package/dist/Table/index.d.ts +1 -1
  152. package/dist/Table/index.js +1 -1
  153. package/dist/{Table-D3mzxBr0.js → Table-DYDBgr3y.js} +14 -14
  154. package/dist/Text/index.js +1 -1
  155. package/dist/{Text-5p-eZodt.js → Text-CHauN5So.js} +1 -1
  156. package/dist/TextArea/index.d.ts +1 -1
  157. package/dist/TextArea/index.js +1 -1
  158. package/dist/{TextArea-Bp6D-riO.js → TextArea-BJl6YH4p.js} +53 -19
  159. package/dist/TextInput/index.d.ts +1 -1
  160. package/dist/TextInput/index.js +1 -1
  161. package/dist/{TextInput-BYslwBDZ.js → TextInput-CGOVY0Zk.js} +77 -33
  162. package/dist/Theme/index.d.ts +2 -2
  163. package/dist/Thumbnail/index.js +1 -1
  164. package/dist/{Thumbnail-B_a8tOS7.js → Thumbnail-C3MvJ67s.js} +1 -1
  165. package/dist/{TimeField-MDSJny9m.js → TimeField-C2of7Ok5.js} +12 -31
  166. package/dist/TimeInput/index.d.ts +1 -1
  167. package/dist/TimeInput/index.js +1 -1
  168. package/dist/{TimeInput-B19amuxi.js → TimeInput-B_YY-IHW.js} +3 -3
  169. package/dist/Timer/index.js +1 -1
  170. package/dist/{Timer-BD3tfzrF.js → Timer-OULaFQFf.js} +1 -1
  171. package/dist/Timestamp/index.d.ts +1 -1
  172. package/dist/Timestamp/index.js +1 -1
  173. package/dist/{Timestamp-CqWoZUKM.js → Timestamp-B6J0nfYH.js} +1 -1
  174. package/dist/ToggleButton/index.d.ts +1 -1
  175. package/dist/Token/index.d.ts +1 -1
  176. package/dist/Tokenizer/index.d.ts +1 -1
  177. package/dist/Tokenizer/index.js +1 -1
  178. package/dist/{Tokenizer-C-eorFsF.js → Tokenizer-CSmIMDc4.js} +2 -2
  179. package/dist/Toolbar/index.d.ts +1 -1
  180. package/dist/Tooltip/index.d.ts +1 -1
  181. package/dist/Tooltip/index.js +2 -2
  182. package/dist/{Tooltip-88zhGfzF.js → Tooltip-gT9_hIEv.js} +1 -1
  183. package/dist/TopNav/index.d.ts +1 -1
  184. package/dist/TopNav/index.js +1 -1
  185. package/dist/{TopNav-DMFIsFwy.js → TopNav-BsrhSbkn.js} +2 -2
  186. package/dist/TreeList/index.d.ts +1 -1
  187. package/dist/TreeList/index.js +1 -1
  188. package/dist/{TreeList-nU2gSmQm.js → TreeList-BEPHdVYu.js} +2 -2
  189. package/dist/Typeahead/index.d.ts +2 -2
  190. package/dist/Typeahead/index.js +1 -1
  191. package/dist/{Typeahead-DUQfmy_r.js → Typeahead-CdLc7S2v.js} +3 -3
  192. package/dist/{types-fRasDCe4.d.ts → adaptationTypes-Cn_pfrsw.d.ts} +155 -155
  193. package/dist/animator-BooLoGyI.js +3164 -0
  194. package/dist/announceRenderedText-CslZ0cev.js +50 -0
  195. package/dist/{assertOptions-DVRsfCk1.js → assertOptions-CFn7Gdcr.js} +1 -1
  196. package/dist/{batch-DR5SgbnX.js → batch-CM-vJhQg.js} +2 -278
  197. package/dist/{handle-ma1yF_B_.js → bezier-Cts7gENO.js} +1 -21
  198. package/dist/composables/index.d.ts +2 -2
  199. package/dist/composables/index.js +3 -3
  200. package/dist/{composables-Do86VAmM.js → composables-D9DVeNnL.js} +4 -3162
  201. package/dist/{context-DsNhYm5O.js → context-CrVCeUUK.js} +1 -1
  202. package/dist/context-DH8E-qjm.js +173 -0
  203. package/dist/{edge-qfeek_VV.js → edge-BYXwSggM.js} +1 -1
  204. package/dist/{edgeRide-iWUNdlxe.js → edgeRide-B5mlN2Q4.js} +3 -3
  205. package/dist/escape-DzSxSmez.js +10 -0
  206. package/dist/{field-CehUqCe0.js → field-BaUBjqf5.js} +4 -2
  207. package/dist/{fieldParts-CbWvZLhH.js → fieldParts-CuE5V12i.js} +1 -1
  208. package/dist/handle-BazRxHwq.js +22 -0
  209. package/dist/holdEntranceInput-DMCOeRqu.js +37 -0
  210. package/dist/{index-CuW4AQ7M.d.ts → index--kbwaSXW.d.ts} +1 -1
  211. package/dist/{index-CsYDrQ9R.d.ts → index-668zPVsH.d.ts} +1 -1
  212. package/dist/{index-_FjbcSgD.d.ts → index-7Q-wnbe7.d.ts} +1 -1
  213. package/dist/{index-CO9GW-ik.d.ts → index-B-3EGjfQ.d.ts} +1 -1
  214. package/dist/{index-Dcxqzk_d.d.ts → index-B3uBbehw.d.ts} +4 -4
  215. package/dist/{index-CnVjgLP5.d.ts → index-BCW6qCcS.d.ts} +1 -1
  216. package/dist/{index-QnlWyUxN.d.ts → index-BFGtLIp8.d.ts} +2 -2
  217. package/dist/{index-DDAcxZAP.d.ts → index-BZUVNr2c.d.ts} +1 -1
  218. package/dist/{index-BhdxP-OG.d.ts → index-BcRvRqWU.d.ts} +2 -2
  219. package/dist/{index-CEjvYAUZ.d.ts → index-BenG-F5d.d.ts} +1 -1
  220. package/dist/{index-ZKBj_1nu.d.ts → index-BfFpUr1B.d.ts} +1 -1
  221. package/dist/{index-DofC9Rll.d.ts → index-BtqvPjAf.d.ts} +1 -1
  222. package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
  223. package/dist/{index-BtgkNd0Q.d.ts → index-C2HVLdNb.d.ts} +2 -2
  224. package/dist/{index-mK1ICsVg.d.ts → index-C3JmGujU.d.ts} +1 -1
  225. package/dist/{index-CKnr0JlT.d.ts → index-C4S65SAW.d.ts} +1 -1
  226. package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
  227. package/dist/{index-CiVrhGUJ.d.ts → index-C9ZssPUV.d.ts} +1 -1
  228. package/dist/{index-CbA8rR_b.d.ts → index-CBOv5j3c.d.ts} +1 -1
  229. package/dist/{index-BfoazhEu.d.ts → index-CTXG-KKT.d.ts} +1 -1
  230. package/dist/{index-COgrQZIL.d.ts → index-CdvmnNMH.d.ts} +1 -1
  231. package/dist/{index-lmd9LZKB.d.ts → index-ClJINYPl.d.ts} +5 -2
  232. package/dist/index-CuFLztiI.d.ts +49 -0
  233. package/dist/{index-BxWCX2pJ.d.ts → index-DFLPv9io.d.ts} +3 -3
  234. package/dist/index-DHUCHxn2.d.ts +69 -0
  235. package/dist/{index-B52PMrO7.d.ts → index-DHsYyqMP.d.ts} +3 -3
  236. package/dist/{index-GmoeIuhl.d.ts → index-DMZ5SKJJ.d.ts} +35 -3
  237. package/dist/{index-DYabo8TI.d.ts → index-DPhQZXYw.d.ts} +1 -1
  238. package/dist/{index-BjmMJ_4E.d.ts → index-DSEEgvak.d.ts} +1149 -211
  239. package/dist/{index-DxR6cZBf.d.ts → index-DZCpswvp.d.ts} +1 -1
  240. package/dist/{index-etx25Eq-.d.ts → index-NOxH5oYj.d.ts} +1 -1
  241. package/dist/{index-CH-xSiJz.d.ts → index-XY0rleGM.d.ts} +2 -2
  242. package/dist/{index-0RIgvtdm.d.ts → index-ZXrvTM3A.d.ts} +2 -2
  243. package/dist/{index-DGXCnzOL.d.ts → index-aHC2C89h.d.ts} +1 -1
  244. package/dist/{index-0pBqcQXV.d.ts → index-tpkJfk6X.d.ts} +6 -1
  245. package/dist/index.d.ts +44 -45
  246. package/dist/index.js +74 -74
  247. package/dist/{holdEntranceInput-DjEzfGRU.js → inputHold-BmChuR9x.js} +87 -85
  248. package/dist/inputHoldState-pblUT4oh.js +39 -0
  249. package/dist/{landing-qVsYAZ-v.js → landing-B9Uvex6x.js} +3 -2
  250. package/dist/lazyBottomSheet-CL_PrTxb.js +16 -0
  251. package/dist/{loadCatalog-C8mRnC0E.d.ts → loadCatalog-2Hu-xisJ.d.ts} +2 -0
  252. package/dist/{loadCatalog-BeQt6Uq-.js → loadCatalog-umh_C97k.js} +2 -1
  253. package/dist/locale/index.d.ts +2 -2
  254. package/dist/locale/index.js +3 -3
  255. package/dist/{locale-B4FpGKpc.js → locale-BDPlcO62.js} +1 -1
  256. package/dist/{useHeldPresentation-fQsuYFhz.js → presentationHold-7IkbR4d8.js} +14 -22
  257. package/dist/progress-FQfSgLZC.js +38 -0
  258. package/dist/renderedText-BwJdmps3.js +32 -0
  259. package/dist/textEntryTraits-cb0LZSNl.js +11 -0
  260. package/dist/themeTiming-CWEvdh31.js +287 -0
  261. package/dist/{context-WY1ippwe.js → transientCopy-VAsg2a46.js} +1 -172
  262. package/dist/{types-OGMYGejX.d.ts → types-BA1veIoa.d.ts} +25 -2
  263. package/dist/{types-bAQk3F8G.d.ts → types-Cvh2VwQZ.d.ts} +4 -2
  264. package/dist/{types-C1ydeFiu.d.ts → types-DL-hRibg.d.ts} +1 -1
  265. package/dist/{useChatStreamScroll-BIMKffDA.js → useChatStreamScroll-Cv51kRT0.js} +91 -30
  266. package/dist/useEntryErrorReport-Wee3N8IA.js +51 -0
  267. package/dist/useHeldPresentation-7MH-RlSF.js +24 -0
  268. package/dist/{useInputStatusIcon-B6m_t8cK.d.ts → useInputStatusIcon-CFkOmDS4.d.ts} +1 -1
  269. package/dist/{useMenuDrillIn-CDn2na4X.js → useMenuDrillIn-CP0P49ej.js} +1 -1
  270. package/dist/{useMenuPress-CxUqSUZ9.js → useMenuPress-Di_3jhOx.js} +3 -1
  271. package/dist/{useTooltip-CJHbG8Pv.js → useTooltip-BpBMQ815.js} +2 -32
  272. package/dist/{useTruncationTooltip-BTcr1LCR.js → useTruncationTooltip-t5G978XB.js} +2 -2
  273. package/package.json +1 -1
  274. package/styles/alert-dialog.css +5 -0
  275. package/styles/chat.css +45 -17
  276. package/styles/dropdown-menu.css +47 -38
  277. package/styles/file-input.css +8 -1
  278. package/styles/input-group.css +0 -15
  279. package/styles/number-input.css +49 -4
  280. package/styles/pagination.css +0 -22
  281. package/styles/popover.css +13 -0
  282. package/styles/text-area.css +16 -1
  283. package/styles/text-input.css +26 -5
  284. package/dist/Popover-CZvRSqqD.js +0 -374
  285. package/dist/index-B63NOJRc.d.ts +0 -957
  286. package/dist/index-B9WzWqzk.d.ts +0 -18
  287. package/dist/types-DIYwbkpe.d.ts +0 -33
  288. package/dist/{index-CHx33xGa.d.ts → index-BqhgeAT4.d.ts} +2 -2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astryx-vue/core",
3
3
  "type": "module",
4
- "version": "0.25.0",
4
+ "version": "0.26.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",
@@ -63,4 +63,9 @@
63
63
  .astryx-alert-dialog[data-layout='stacked'] .astryx-alert-dialog__footer[data-press-tracking] {
64
64
  touch-action: pan-x pinch-zoom;
65
65
  }
66
+
67
+ /* 手指下弹窗的缩放和淡入由脚本动效驱动,主题的 CSS 进场让位。 */
68
+ .astryx-alert-dialog[data-touch-motion][open] {
69
+ animation: none;
70
+ }
66
71
  }
package/styles/chat.css CHANGED
@@ -17,10 +17,6 @@
17
17
  overflow-y: auto;
18
18
  }
19
19
 
20
- .astryx-chat-layout[data-astryx-scrolling] {
21
- scrollbar-width: none;
22
- }
23
-
24
20
  .astryx-chat-layout__messages {
25
21
  display: flex;
26
22
  flex-direction: column;
@@ -173,9 +169,10 @@
173
169
  outline: none;
174
170
  }
175
171
 
172
+ /* 列表撑满滚动它的区域,边缘会被裁掉,所以键盘焦点环画在自己的盒子里面。 */
176
173
  .astryx-chat-message-list:focus-visible {
177
- outline: 2px solid var(--astryx-chat-focus, var(--astryx-focus-outline-color));
178
- outline-offset: 2px;
174
+ outline: var(--astryx-focus-outline-width, 2px) var(--astryx-focus-outline-style, solid) var(--astryx-chat-focus, var(--astryx-focus-outline-color, currentcolor));
175
+ outline-offset: calc(-1 * var(--astryx-focus-outline-width, 2px));
179
176
  }
180
177
 
181
178
  .astryx-chat-message-list__inner {
@@ -261,12 +258,21 @@
261
258
  .astryx-chat-message:has(.astryx-chat-message__avatar)[data-density='balanced'] { gap: var(--astryx-spacing-2, 8px); }
262
259
  .astryx-chat-message:has(.astryx-chat-message__avatar)[data-density='spacious'] { gap: var(--astryx-spacing-3, 12px); }
263
260
 
264
- .astryx-chat-message__avatar {
265
- flex-shrink: 0;
261
+ /*
262
+ * 头像顶部的偏移由每条消息自己根据自己的内容设定(只看自己,不看兄弟),
263
+ * 嵌套的消息各设各的,不会继承外层那条的值。
264
+ */
265
+ .astryx-chat-message {
266
+ --_chat-avatar-offset: 0px;
266
267
  }
267
268
 
268
- .astryx-chat-message:has([data-chat-name]) .astryx-chat-message__avatar {
269
- margin-block-start: var(--astryx-spacing-5, 20px);
269
+ .astryx-chat-message:has([data-chat-name]) {
270
+ --_chat-avatar-offset: var(--astryx-spacing-5, 20px);
271
+ }
272
+
273
+ .astryx-chat-message__avatar {
274
+ flex-shrink: 0;
275
+ margin-block-start: var(--_chat-avatar-offset);
270
276
  }
271
277
 
272
278
  .astryx-chat-message__column {
@@ -482,8 +488,7 @@
482
488
  padding-block: var(--astryx-spacing-1, 4px);
483
489
  color: var(--astryx-chat-foreground-secondary, var(--astryx-color-text-secondary));
484
490
  font-size: var(--astryx-text-supporting-size, 0.75rem);
485
- /* Original default system rows measure 18px, not the 20px supporting leading. */
486
- line-height: 1.5;
491
+ line-height: var(--astryx-text-supporting-leading, 1.6667);
487
492
  text-align: center;
488
493
  }
489
494
 
@@ -896,6 +901,13 @@
896
901
  border-color var(--astryx-duration-fast, 125ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
897
902
  }
898
903
 
904
+ /* 点一下输入区就会升起键盘,聚焦外观淡入会在升起的每一帧重绘,所以粗指针下立刻显示。 */
905
+ @media (pointer: coarse) {
906
+ .astryx-chat-composer__body {
907
+ transition-duration: 0s;
908
+ }
909
+ }
910
+
899
911
  .astryx-chat-composer__body:is(:disabled, [aria-disabled='true']) {
900
912
  cursor: default;
901
913
  }
@@ -970,6 +982,17 @@
970
982
  gap: var(--astryx-spacing-1, 4px);
971
983
  }
972
984
 
985
+ /* 调用方的操作在页脚里换行,发送操作始终留在输入区里;比页脚还宽的操作仍然截断。 */
986
+ .astryx-chat-composer__footer-start {
987
+ flex-wrap: wrap;
988
+ min-width: 0;
989
+ }
990
+
991
+ /* 主操作从不为调用方的操作让出宽度。 */
992
+ .astryx-chat-composer__footer-end {
993
+ flex-shrink: 0;
994
+ }
995
+
973
996
  .astryx-chat-composer__header-end {
974
997
  display: flex;
975
998
  align-items: center;
@@ -1064,6 +1087,8 @@
1064
1087
  }
1065
1088
 
1066
1089
  .astryx-chat-composer-input__editable {
1090
+ /* 编辑区是会滚动的 flex 子项,自动最小高度为 0:重新排版后空的编辑区可能塌成 0px,点击就落不到它身上。 */
1091
+ min-height: 22px;
1067
1092
  outline: none;
1068
1093
  white-space: pre-wrap;
1069
1094
  word-break: break-word;
@@ -1110,8 +1135,10 @@
1110
1135
  }
1111
1136
 
1112
1137
  .astryx-chat-send {
1138
+ /* 发送键自己声明按钮圆角:输入区的同心圆角靠继承传给别的按钮,发送键在里面仍保持圆形。 */
1139
+ --astryx-button-radius: var(--astryx-radius-full, 9999px);
1113
1140
  flex-shrink: 0;
1114
- border-radius: var(--astryx-button-radius, var(--astryx-radius-full, 9999px));
1141
+ border-radius: var(--astryx-button-radius);
1115
1142
  }
1116
1143
 
1117
1144
  .astryx-chat-drawer {
@@ -1123,12 +1150,13 @@
1123
1150
  box-sizing: border-box;
1124
1151
  padding-inline: var(--astryx-spacing-4, 16px);
1125
1152
  padding-block-start: var(--astryx-spacing-3, 12px);
1126
- padding-block-end: calc(var(--astryx-spacing-3, 12px) + var(--astryx-radius-chat, 28px));
1127
- margin-block-end: calc(-1 * var(--astryx-radius-chat, 28px));
1153
+ /* 抽屉塞在输入区正文后面一个圆角的高度,顶部圆角和这段塞入量都跟着输入区自己的圆角;单独使用时取聊天圆角。 */
1154
+ padding-block-end: calc(var(--astryx-spacing-3, 12px) + var(--_chat-composer-radius, var(--astryx-radius-chat, 28px)));
1155
+ margin-block-end: calc(-1 * var(--_chat-composer-radius, var(--astryx-radius-chat, 28px)));
1128
1156
  background-color: var(--astryx-color-background-surface);
1129
1157
  background-image: linear-gradient(var(--astryx-color-background-muted), var(--astryx-color-background-muted));
1130
- border-start-start-radius: var(--astryx-radius-chat, 28px);
1131
- border-start-end-radius: var(--astryx-radius-chat, 28px);
1158
+ border-start-start-radius: var(--_chat-composer-radius, var(--astryx-radius-chat, 28px));
1159
+ border-start-end-radius: var(--_chat-composer-radius, var(--astryx-radius-chat, 28px));
1132
1160
  }
1133
1161
 
1134
1162
  .astryx-chat-drawer__toggle {
@@ -81,47 +81,44 @@
81
81
  outline: none;
82
82
  }
83
83
 
84
- .astryx-dropdown-menu-enter-active,
84
+ /*
85
+ * The anchored layer entrance (layer.css): the panel slides in from the side
86
+ * the positioning runtime writes, and scales about the point where it meets
87
+ * its trigger. It is a CSS animation, so it is running the moment the panel
88
+ * shows, and the entrance hold can wait for it.
89
+ */
90
+ .astryx-dropdown-menu[data-placement] {
91
+ animation-name: astryx-layer-enter;
92
+ animation-duration: var(--astryx-duration-fast-max, 165ms);
93
+ animation-fill-mode: backwards;
94
+ animation-timing-function: var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
95
+ transform-origin: var(--_astryx-layer-enter-origin, 50% 50%);
96
+ }
97
+
98
+ .astryx-dropdown-menu-popover[data-placement] {
99
+ animation-name: astryx-layer-enter;
100
+ animation-duration: var(--astryx-duration-fast-max, 165ms);
101
+ animation-fill-mode: backwards;
102
+ animation-timing-function: var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
103
+ transform-origin: var(--_astryx-layer-enter-origin, 50% 50%);
104
+ }
105
+
106
+ /* The leave runs back toward the trigger and keeps its last frame until Vue takes the panel away. */
85
107
  .astryx-dropdown-menu-leave-active {
108
+ animation: none;
86
109
  transition:
87
110
  opacity var(--astryx-duration-fast-max, 165ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1)),
88
111
  transform var(--astryx-duration-fast-max, 165ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
89
112
  }
90
113
 
91
- .astryx-dropdown-menu-enter-from,
92
114
  .astryx-dropdown-menu-leave-to {
93
115
  opacity: 0;
94
- }
95
-
96
- /* The panel grows out of the edge it is anchored to. */
97
- .astryx-dropdown-menu-enter-from[data-placement='above'],
98
- .astryx-dropdown-menu-leave-to[data-placement='above'] {
99
- transform: translateY(var(--astryx-spacing-2, 8px)) scale(0.95);
100
- }
101
-
102
- .astryx-dropdown-menu-enter-from[data-placement='below'],
103
- .astryx-dropdown-menu-leave-to[data-placement='below'] {
104
- transform: translateY(calc(-1 * var(--astryx-spacing-2, 8px))) scale(0.95);
105
- }
106
-
107
- .astryx-dropdown-menu-enter-from[data-placement='start'],
108
- .astryx-dropdown-menu-leave-to[data-placement='start'] {
109
- transform: translateX(var(--astryx-spacing-2, 8px)) scale(0.95);
110
- }
111
-
112
- .astryx-dropdown-menu-enter-from[data-placement='end'],
113
- .astryx-dropdown-menu-leave-to[data-placement='end'] {
114
- transform: translateX(calc(-1 * var(--astryx-spacing-2, 8px))) scale(0.95);
115
- }
116
-
117
- .astryx-dropdown-menu-enter-from[data-placement='start']:is([dir='rtl'] *),
118
- .astryx-dropdown-menu-leave-to[data-placement='start']:is([dir='rtl'] *) {
119
- transform: translateX(calc(-1 * var(--astryx-spacing-2, 8px))) scale(0.95);
120
- }
121
-
122
- .astryx-dropdown-menu-enter-from[data-placement='end']:is([dir='rtl'] *),
123
- .astryx-dropdown-menu-leave-to[data-placement='end']:is([dir='rtl'] *) {
124
- transform: translateX(var(--astryx-spacing-2, 8px)) scale(0.95);
116
+ transform:
117
+ translate(
118
+ calc(var(--_astryx-layer-enter-x, var(--_astryx-layer-enter-from-x, 0)) * min(var(--astryx-spacing-2, 8px), var(--_astryx-layer-enter-gap, var(--astryx-spacing-2, 8px)))),
119
+ calc(var(--_astryx-layer-enter-y, var(--_astryx-layer-enter-from-y, -1)) * min(var(--astryx-spacing-2, 8px), var(--_astryx-layer-enter-gap, var(--astryx-spacing-2, 8px))))
120
+ )
121
+ scale(0.95);
125
122
  }
126
123
 
127
124
  /*
@@ -394,15 +391,11 @@
394
391
  }
395
392
 
396
393
  @media (prefers-reduced-motion: reduce) {
397
- .astryx-dropdown-menu-enter-active,
398
394
  .astryx-dropdown-menu-leave-active {
399
395
  transition: none;
400
396
  }
401
397
 
402
- .astryx-dropdown-menu-enter-from,
403
- .astryx-dropdown-menu-leave-to,
404
- .astryx-dropdown-menu-enter-from[data-placement],
405
- .astryx-dropdown-menu-leave-to[data-placement] {
398
+ .astryx-dropdown-menu-leave-to {
406
399
  opacity: 1;
407
400
  transform: none;
408
401
  }
@@ -412,6 +405,22 @@
412
405
  }
413
406
  }
414
407
 
408
+ @media (prefers-reduced-motion: reduce) and (not (pointer: coarse)) {
409
+ .astryx-dropdown-menu[data-placement],
410
+ .astryx-dropdown-menu-popover[data-placement] {
411
+ animation: none;
412
+ }
413
+ }
414
+
415
+ @media (prefers-reduced-motion: reduce) and (pointer: coarse) {
416
+ .astryx-dropdown-menu[data-placement],
417
+ .astryx-dropdown-menu-popover[data-placement] {
418
+ animation-name: astryx-layer-fade-in;
419
+ animation-duration: var(--_astryx-reduced-motion-fade-duration, 200ms);
420
+ animation-timing-function: var(--_astryx-reduced-motion-fade-easing, cubic-bezier(0.42, 0, 0.58, 1));
421
+ }
422
+ }
423
+
415
424
  @media (forced-colors: active) {
416
425
  /* 强制配色把半透明的焦点叠色换成页面色,聚焦的行就看不出来了:用系统的 Highlight / HighlightText 配对涂出来。 */
417
426
  .astryx-dropdown-menu [role='menuitem']:focus,
@@ -54,10 +54,17 @@
54
54
  }
55
55
 
56
56
  .astryx-file-input-trigger:disabled,
57
- .astryx-file-input[data-disabled='true'] .astryx-file-input-trigger {
57
+ .astryx-file-input[data-disabled='true'] .astryx-file-input-trigger,
58
+ .astryx-file-input[data-busy='true'] .astryx-file-input-trigger {
58
59
  cursor: default;
59
60
  }
60
61
 
62
+ /* 忙碌时不再接受新的选择:不画可点光标,也不画悬停和拖入的反馈,但不套禁用的淡化。 */
63
+ .astryx-file-input[data-busy='true'] {
64
+ cursor: default;
65
+ box-shadow: none;
66
+ }
67
+
61
68
  .astryx-file-input-text {
62
69
  min-width: 0;
63
70
  overflow: hidden;
@@ -33,21 +33,6 @@
33
33
  cursor: default;
34
34
  }
35
35
 
36
- .astryx-input-group.status-error {
37
- --astryx-input-focus: var(--astryx-input-error, var(--astryx-color-border-error, #e33f4a));
38
- border-color: var(--astryx-input-error, var(--astryx-color-border-error, #e33f4a));
39
- }
40
-
41
- .astryx-input-group.status-warning {
42
- --astryx-input-focus: var(--astryx-input-warning, var(--astryx-color-border-warning, #a67a00));
43
- border-color: var(--astryx-input-warning, var(--astryx-color-border-warning, #a67a00));
44
- }
45
-
46
- .astryx-input-group.status-success {
47
- --astryx-input-focus: var(--astryx-input-success, var(--astryx-color-border-success, #198100));
48
- border-color: var(--astryx-input-success, var(--astryx-color-border-success, #198100));
49
- }
50
-
51
36
  .astryx-input-group-shell {
52
37
  width: 100%;
53
38
  min-width: 0;
@@ -82,10 +82,16 @@
82
82
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--astryx-input-focus, #262626) 15%, transparent);
83
83
  }
84
84
 
85
- .astryx-number-input:has(.astryx-number-input-field:disabled) {
85
+ .astryx-number-input[data-disabled='true'] {
86
86
  opacity: 0.5;
87
87
  }
88
88
 
89
+ /* 禁用的输入框还留在 Tab 顺序里:键盘聚焦时仍画聚焦环,和整块字段一样被淡化。 */
90
+ .astryx-number-input[data-disabled='true']:has(.astryx-number-input-field:focus-visible) {
91
+ border-color: var(--astryx-input-focus, #262626);
92
+ box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--astryx-input-focus, #262626) 15%, transparent);
93
+ }
94
+
89
95
  .astryx-number-input-field {
90
96
  box-sizing: border-box;
91
97
  flex: 1;
@@ -105,7 +111,8 @@
105
111
  opacity: 1;
106
112
  }
107
113
 
108
- .astryx-number-input-field:disabled {
114
+ .astryx-number-input-field:disabled,
115
+ .astryx-number-input-field[aria-disabled='true'] {
109
116
  cursor: default;
110
117
  }
111
118
 
@@ -114,6 +121,11 @@
114
121
  }
115
122
 
116
123
  @media (pointer: coarse) {
124
+ /* 点一下输入框就会升起键盘,聚焦外观淡入会在升起的每一帧重绘,所以粗指针下立刻显示。 */
125
+ .astryx-number-input {
126
+ transition-duration: 0s;
127
+ }
128
+
117
129
  @supports (-webkit-touch-callout: none) {
118
130
  .astryx-number-input-field {
119
131
  font-size: max(1rem, var(--astryx-text-body-size, 14px));
@@ -139,6 +151,9 @@
139
151
  background: var(--astryx-input-background, #fff);
140
152
  color: var(--astryx-color-text-secondary, #525252);
141
153
  cursor: pointer;
154
+ user-select: none;
155
+ -webkit-user-select: none;
156
+ -webkit-touch-callout: none;
142
157
  }
143
158
 
144
159
  .astryx-number-input-chevron {
@@ -146,6 +161,13 @@
146
161
  flex: none;
147
162
  }
148
163
 
164
+ /* 这两个小按钮是细指针的便利:触屏直接输入数字,键盘仍可用方向键步进。 */
165
+ @media (pointer: coarse) {
166
+ .astryx-number-input-buttons {
167
+ display: none;
168
+ }
169
+ }
170
+
149
171
  .astryx-number-input-button.increment .astryx-number-input-chevron {
150
172
  transform: rotate(180deg);
151
173
  }
@@ -154,13 +176,13 @@
154
176
  border-block-start: var(--astryx-border-width, 1px) solid var(--astryx-color-border-emphasized, #d4d4d4);
155
177
  }
156
178
 
157
- .astryx-number-input-button:disabled {
179
+ .astryx-number-input-button[aria-disabled='true'] {
158
180
  color: var(--astryx-color-text-secondary, #525252);
159
181
  cursor: default;
160
182
  }
161
183
 
162
184
  @media (hover: hover) {
163
- .astryx-number-input-button:hover:not(:disabled) {
185
+ .astryx-number-input-button:hover:not([aria-disabled='true']) {
164
186
  background: var(--astryx-dropdown-menu-hover-background, light-dark(#0536590c, #ffffff0c));
165
187
  }
166
188
  }
@@ -170,6 +192,29 @@
170
192
  transition: none;
171
193
  }
172
194
  }
195
+
196
+ @media (forced-colors: active) {
197
+ .astryx-number-input {
198
+ border-color: ButtonText;
199
+ color: CanvasText;
200
+ background: Canvas;
201
+ box-shadow: none;
202
+ }
203
+
204
+ .astryx-number-input:focus-within {
205
+ border-color: Highlight;
206
+ }
207
+
208
+ .astryx-number-input[data-disabled='true'] {
209
+ color: GrayText;
210
+ border-color: GrayText;
211
+ opacity: 1;
212
+ }
213
+
214
+ .astryx-number-input[data-disabled='true']:has(.astryx-number-input-field:focus-visible) {
215
+ border-color: Highlight;
216
+ }
217
+ }
173
218
  }
174
219
 
175
220
  /* Unlayered: the field chrome owns focus. A page ring on the inner input stacks a second outline. */
@@ -176,28 +176,6 @@
176
176
  white-space: nowrap;
177
177
  }
178
178
 
179
- .astryx-pagination-input-field {
180
- box-sizing: border-box;
181
- width: var(--astryx-size-element-md, 36px);
182
- height: var(--astryx-size-element-md, 36px);
183
- padding: 0;
184
- border: var(--astryx-border-width, 1px) solid var(--astryx-color-border, #d4d4d4);
185
- border-radius: var(--astryx-radius-element, 0.625rem);
186
- background: transparent;
187
- color: inherit;
188
- font: inherit;
189
- text-align: center;
190
- }
191
-
192
- .astryx-pagination--sm .astryx-pagination-input-field {
193
- width: var(--astryx-size-element-sm, 28px);
194
- height: var(--astryx-size-element-sm, 28px);
195
- }
196
-
197
- .astryx-pagination-input-field:disabled {
198
- opacity: 0.4;
199
- }
200
-
201
179
  .astryx-pagination-size-changer .astryx-selector {
202
180
  width: 7.5rem;
203
181
  }
@@ -66,6 +66,19 @@
66
66
  padding-block-start: var(--astryx-spacing-1, 4px);
67
67
  }
68
68
 
69
+ /* 底部弹层里的后备关闭按钮:平时移出排版并裁掉,聚焦时回到内容下方,留出焦点环的位置。 */
70
+ .astryx-popover__sheet-close:not(:focus) {
71
+ position: absolute;
72
+ clip-path: inset(50%);
73
+ }
74
+
75
+ .astryx-popover__sheet-close:focus {
76
+ position: relative;
77
+ display: flex;
78
+ width: fit-content;
79
+ margin-block-start: var(--astryx-spacing-3, 12px);
80
+ }
81
+
69
82
  @media (prefers-reduced-motion: reduce) and (not (pointer: coarse)) {
70
83
  .astryx-popover[data-placement] {
71
84
  animation: none;
@@ -71,6 +71,12 @@
71
71
  cursor: default;
72
72
  }
73
73
 
74
+ /* 禁用的文本框还留在 Tab 顺序里:键盘聚焦时仍画聚焦环,和整块字段一样被淡化。 */
75
+ .astryx-text-area[data-disabled='true']:has(> [aria-disabled='true']:focus-visible) {
76
+ border-color: var(--astryx-input-focus, #262626);
77
+ box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--astryx-input-focus, #262626) 15%, transparent);
78
+ }
79
+
74
80
  .astryx-text-area-control {
75
81
  box-sizing: border-box;
76
82
  display: block;
@@ -122,13 +128,19 @@
122
128
  right: var(--astryx-spacing-1, 4px);
123
129
  }
124
130
 
125
- .astryx-text-area-control:disabled {
131
+ .astryx-text-area-control:disabled,
132
+ .astryx-text-area-control[aria-disabled='true'] {
126
133
  color: inherit;
127
134
  cursor: default;
128
135
  -webkit-text-fill-color: currentcolor;
129
136
  }
130
137
 
131
138
  @media (pointer: coarse) {
139
+ /* 点一下文本框就会升起键盘,聚焦外观淡入会在升起的每一帧重绘,所以粗指针下立刻显示。 */
140
+ .astryx-text-area {
141
+ transition-duration: 0s;
142
+ }
143
+
132
144
  @supports (-webkit-touch-callout: none) {
133
145
  .astryx-text-area-control {
134
146
  font-size: max(1rem, var(--astryx-text-body-size, 14px));
@@ -157,6 +169,9 @@
157
169
  border-color: GrayText;
158
170
  opacity: 1;
159
171
  }
172
+ .astryx-text-area[data-disabled='true']:has(> [aria-disabled='true']:focus-visible) {
173
+ border-color: Highlight;
174
+ }
160
175
  }
161
176
  }
162
177
 
@@ -9,21 +9,23 @@
9
9
  align-items: center;
10
10
  gap: var(--astryx-spacing-2, 8px);
11
11
  min-width: 0;
12
- height: var(--astryx-input-height-md, 32px);
12
+ height: max(var(--astryx-input-height-md, 32px), var(--astryx-text-input-line, 1.5rem));
13
13
  padding: var(--astryx-input-padding-block, var(--astryx-spacing-1, 4px)) var(--astryx-input-padding-inline, var(--astryx-spacing-2, 8px));
14
14
  border: 1px solid var(--astryx-input-status-color, var(--astryx-input-border, #d4d4d4));
15
15
  border-radius: var(--astryx-radius-element, 0.625rem);
16
16
  color: var(--astryx-color-text-primary, #171717);
17
17
  background: var(--astryx-input-background, #fff);
18
+ /* 行高跟着正文字号走:一行字加上下边框就是行的下限,字放大到 200% 时输入框跟着长高,不会切掉字。 */
19
+ --astryx-text-input-line: calc(var(--astryx-text-body-size, 14px) * var(--astryx-text-body-leading, 1.4286) + 2 * var(--astryx-border-width, 1px));
18
20
  transition: border-color 130ms cubic-bezier(0.24, 1, 0.4, 1), box-shadow 130ms cubic-bezier(0.24, 1, 0.4, 1);
19
21
  }
20
22
 
21
23
  .astryx-text-input[data-size='sm'] {
22
- height: var(--astryx-input-height-sm, 28px);
24
+ height: max(var(--astryx-input-height-sm, 28px), var(--astryx-text-input-line, 1.5rem));
23
25
  }
24
26
 
25
27
  .astryx-text-input[data-size='lg'] {
26
- height: var(--astryx-input-height-lg, 36px);
28
+ height: max(var(--astryx-input-height-lg, 36px), var(--astryx-text-input-line, 1.5rem));
27
29
  }
28
30
 
29
31
  @media (hover: hover) {
@@ -57,7 +59,7 @@
57
59
  font-family: inherit;
58
60
  font-size: var(--astryx-text-body-size, 14px);
59
61
  font-weight: 400;
60
- line-height: 1.4286;
62
+ line-height: var(--astryx-text-body-leading, 1.4286);
61
63
  appearance: none;
62
64
  }
63
65
 
@@ -91,14 +93,30 @@
91
93
  color: var(--astryx-input-status-color);
92
94
  }
93
95
 
94
- .astryx-text-input-control:disabled {
96
+ /* 禁用的输入框还留在 Tab 顺序里:键盘聚焦时仍画聚焦环,和整块字段一样被淡化。 */
97
+ .astryx-text-input[data-disabled='true']:has(> [aria-disabled='true']:focus-visible) {
98
+ border-color: var(--astryx-input-focus, #262626);
99
+ box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--astryx-input-focus, #262626) 15%, transparent);
100
+ }
101
+
102
+ .astryx-text-input-control:disabled,
103
+ .astryx-text-input-control[aria-disabled='true'] {
95
104
  color: inherit;
96
105
  cursor: default;
97
106
  -webkit-text-fill-color: currentcolor;
98
107
  }
99
108
 
100
109
  @media (pointer: coarse) {
110
+ /* 点一下输入框就会升起键盘,聚焦外观淡入会在升起的每一帧重绘,所以粗指针下立刻显示。 */
111
+ .astryx-text-input {
112
+ transition-duration: 0s;
113
+ }
114
+
101
115
  @supports (-webkit-touch-callout: none) {
116
+ .astryx-text-input {
117
+ --astryx-text-input-line: calc(max(1rem, var(--astryx-text-body-size, 14px)) * var(--astryx-text-body-leading, 1.4286) + 2 * var(--astryx-border-width, 1px));
118
+ }
119
+
102
120
  .astryx-text-input-control {
103
121
  font-size: max(1rem, var(--astryx-text-body-size, 14px));
104
122
  }
@@ -126,6 +144,9 @@
126
144
  border-color: GrayText;
127
145
  opacity: 1;
128
146
  }
147
+ .astryx-text-input[data-disabled='true']:has(> [aria-disabled='true']:focus-visible) {
148
+ border-color: Highlight;
149
+ }
129
150
  }
130
151
  }
131
152