@astryx-vue/core 0.38.0 → 0.40.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 (269) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-BVTKz7re.js → AlertDialog-McG6w72O.js} +6 -6
  3. package/dist/AppShell/index.js +1 -1
  4. package/dist/{AppShell-C2y8U6wp.js → AppShell-lv3WDlCi.js} +5 -5
  5. package/dist/AvatarGroup/index.d.ts +1 -1
  6. package/dist/Banner/index.d.ts +1 -1
  7. package/dist/Banner/index.js +1 -1
  8. package/dist/{Banner-NCI6aOKt.js → Banner-CmWBciT7.js} +2 -2
  9. package/dist/BottomSheet/index.d.ts +1 -1
  10. package/dist/BottomSheet/index.js +2 -2
  11. package/dist/BottomSheet-BOEmV4QT.js +527 -0
  12. package/dist/{BottomSheet-CFdGLVIF.js → BottomSheet-BkBRbF1_.js} +1381 -194
  13. package/dist/Breadcrumbs/index.js +2 -2
  14. package/dist/{Breadcrumbs-CwEfccnT.js → Breadcrumbs-D7dac2Vx.js} +2 -2
  15. package/dist/Button/index.d.ts +1 -1
  16. package/dist/Button/index.js +1 -1
  17. package/dist/{Button-BZV5wL4j.js → Button-pAwKXPpg.js} +2 -2
  18. package/dist/ButtonGroup/index.d.ts +1 -1
  19. package/dist/ButtonGroup/index.js +1 -1
  20. package/dist/{ButtonGroup-CaQ7bir4.js → ButtonGroup-CuxHcLGQ.js} +2 -2
  21. package/dist/Calendar/index.d.ts +1 -1
  22. package/dist/Calendar/index.js +1 -1
  23. package/dist/{Calendar-S5IjkDsY.js → Calendar-CfhOlgQJ.js} +1 -1
  24. package/dist/Carousel/index.d.ts +1 -1
  25. package/dist/Carousel/index.js +1 -1
  26. package/dist/{Carousel-CbOusMO0.js → Carousel-CS2e2A7m.js} +2 -2
  27. package/dist/Chat/index.d.ts +1 -1
  28. package/dist/Chat/index.js +1 -1
  29. package/dist/{Chat-BrHbv7Ah.js → Chat-BpZRcgDp.js} +5 -5
  30. package/dist/CheckboxInput/index.d.ts +1 -1
  31. package/dist/CheckboxInput/index.js +1 -1
  32. package/dist/{CheckboxInput-CV8aHb9r.js → CheckboxInput-DhacWPUS.js} +4 -4
  33. package/dist/CheckboxList/index.d.ts +1 -1
  34. package/dist/CheckboxList/index.js +1 -1
  35. package/dist/{CheckboxListItem-SyF1JdT3.js → CheckboxListItem-D7PdrL6R.js} +3 -3
  36. package/dist/Citation/index.js +1 -1
  37. package/dist/{Citation-Ijf06x0V.js → Citation-DXMQVSi5.js} +1 -1
  38. package/dist/ClickableCard/index.d.ts +1 -1
  39. package/dist/Code/index.js +2 -2
  40. package/dist/{Code-BNOzyQX4.js → Code-CpOHgCdF.js} +4 -3
  41. package/dist/{CodeBlock-DYXx_9Kj.js → CodeBlock-CkGp6dGF.js} +3 -3
  42. package/dist/Collapsible/index.js +1 -1
  43. package/dist/{Collapsible-48Q1GfRw.js → Collapsible-CaKmR3yE.js} +3 -3
  44. package/dist/CommandPalette/index.js +1 -1
  45. package/dist/{CommandPalette-Ct70AcIK.js → CommandPalette-DiM8MlSa.js} +3 -3
  46. package/dist/ComplexSelector/index.d.ts +1 -1
  47. package/dist/ComplexSelector/index.js +1 -1
  48. package/dist/{ComplexSelector-NnPRhI6t.js → ComplexSelector-BmXhD8Oe.js} +5 -5
  49. package/dist/{ComponentIcon-Dw4xQxg3.js → ComponentIcon-B67QcA-d.js} +2 -2
  50. package/dist/ContextMenu/index.d.ts +1 -1
  51. package/dist/ContextMenu/index.js +2 -2
  52. package/dist/{ContextMenu-C7m059d4.js → ContextMenu-DcqcObzD.js} +6 -6
  53. package/dist/DateInput/index.d.ts +1 -1
  54. package/dist/DateInput/index.js +1 -1
  55. package/dist/{DateInput-D-NIlF5P.js → DateInput-C3KNWKD5.js} +9 -9
  56. package/dist/DateRangeInput/index.d.ts +1 -1
  57. package/dist/DateRangeInput/index.js +1 -1
  58. package/dist/{DateRangeInput-BYl649eD.js → DateRangeInput-C7qeaG20.js} +6 -6
  59. package/dist/DateTimeInput/index.d.ts +1 -1
  60. package/dist/DateTimeInput/index.js +1 -1
  61. package/dist/{DateTimeInput-CBzae6EW.js → DateTimeInput-L0EZbgPe.js} +9 -9
  62. package/dist/Dialog/index.js +3 -3
  63. package/dist/{Dialog-BP2KWnEi.js → Dialog-DLg0POKn.js} +1 -1
  64. package/dist/{Dialog-BUl1lqE6.js → Dialog-iVqfWx9T.js} +1 -1
  65. package/dist/{DialogHeader-DKt_lREy.js → DialogHeader-B0B8oATV.js} +1 -1
  66. package/dist/Divider/index.d.ts +1 -1
  67. package/dist/Drawer/index.d.ts +1 -1
  68. package/dist/Drawer/index.js +1 -1
  69. package/dist/{Drawer-D63qUfxP.js → Drawer-C0x5HNmD.js} +2 -2
  70. package/dist/DropdownMenu/index.js +2 -2
  71. package/dist/{DropdownMenu-BkTjcbtP.js → DropdownMenu-pqhotFvD.js} +7 -7
  72. package/dist/Field/index.js +3 -3
  73. package/dist/{Field-DgtZ9Czv.js → Field-D3W-qMmn.js} +2 -2
  74. package/dist/{FieldIcon-BU1ZWAuo.js → FieldIcon-C6A69-um.js} +1 -1
  75. package/dist/{FieldInfoTip-D4vkQb2F.js → FieldInfoTip-K-cUaCBk.js} +2 -2
  76. package/dist/{FieldLabel-DkElUlTP.js → FieldLabel-CIe1tEyM.js} +2 -2
  77. package/dist/FieldStatus/index.js +1 -1
  78. package/dist/{FieldStatus-DmCWPT6U.js → FieldStatus-QjwGygl3.js} +1 -1
  79. package/dist/FileInput/index.js +1 -1
  80. package/dist/{FileInput-epZuREvN.js → FileInput-Crb5znnx.js} +5 -5
  81. package/dist/Heading/index.d.ts +1 -1
  82. package/dist/Icon/index.js +2 -2
  83. package/dist/{Icon-Dk0jccgU.js → Icon-BUSj1-Th.js} +1 -1
  84. package/dist/{Icon-M1Rlknd0.js → Icon-CYXC4iYF.js} +1 -1
  85. package/dist/IconButton/index.js +1 -1
  86. package/dist/{IconButton-ddP2kBOE.js → IconButton-Cug4YcFk.js} +1 -1
  87. package/dist/Indicator/index.d.ts +2 -2
  88. package/dist/Indicator/index.js +1 -1
  89. package/dist/InfoTip/index.d.ts +1 -1
  90. package/dist/InfoTip/index.js +1 -1
  91. package/dist/{InfoTip-D2rbGvF9.js → InfoTip-Cu4a1mi4.js} +2 -2
  92. package/dist/{InputClearButton-pGsDJl26.js → InputClearButton-CgUhJflI.js} +2 -2
  93. package/dist/InputGroup/index.js +1 -1
  94. package/dist/{InputGroup-BIVCj2rq.js → InputGroup-BRsu7Tbv.js} +1 -1
  95. package/dist/Layout/index.js +2 -2
  96. package/dist/{Layout-DIs9FbLS.js → Layout-DTSKNAzq.js} +1 -1
  97. package/dist/{LayoutPanel-DPueklAW.js → LayoutPanel-CH4HZGLR.js} +1 -1
  98. package/dist/Lightbox/index.js +1 -1
  99. package/dist/{Lightbox-CYFqIuYF.js → Lightbox-_RBPOxDZ.js} +2 -2
  100. package/dist/Link/index.d.ts +1 -1
  101. package/dist/Link/index.js +1 -1
  102. package/dist/{Link-Bte02xvC.js → Link-BsmxrY3Y.js} +1 -1
  103. package/dist/List/index.d.ts +1 -1
  104. package/dist/List/index.js +1 -1
  105. package/dist/{ListItem-DyJ5nTUB.js → ListItem-DZwU5RrZ.js} +2 -2
  106. package/dist/Markdown/index.d.ts +1 -1
  107. package/dist/Markdown/index.js +1 -1
  108. package/dist/{Markdown-DLOM7sua.js → Markdown-CiLkzTFi.js} +3 -3
  109. package/dist/{MediaTheme-CBkEmVe4.js → MediaTheme-BavxpAJt.js} +5 -77
  110. package/dist/MoreMenu/index.d.ts +1 -1
  111. package/dist/MoreMenu/index.js +1 -1
  112. package/dist/{MoreMenu-Dfw9RqEG.js → MoreMenu-BWuzaT3K.js} +4 -4
  113. package/dist/MultiSelector/index.d.ts +1 -1
  114. package/dist/MultiSelector/index.js +1 -1
  115. package/dist/{MultiSelector-670gfK2P.js → MultiSelector-geUPBvlE.js} +8 -8
  116. package/dist/{NavHeadingSurface-CyzeGig1.js → NavHeadingSurface-C3QJ64vm.js} +1 -1
  117. package/dist/NumberInput/index.d.ts +1 -1
  118. package/dist/NumberInput/index.js +1 -1
  119. package/dist/{NumberInput-CoozsQxb.js → NumberInput--sai94t9.js} +6 -6
  120. package/dist/OverflowList/index.d.ts +1 -1
  121. package/dist/Overlay/index.d.ts +1 -1
  122. package/dist/Pagination/index.js +1 -1
  123. package/dist/{Pagination-HRiDkiv1.js → Pagination-C10gbfyv.js} +2 -2
  124. package/dist/{PickerWheel-BH7fotFp.js → PickerWheel-CpAyp6NS.js} +5 -4
  125. package/dist/Popover/index.d.ts +2 -2
  126. package/dist/Popover/index.js +1 -1
  127. package/dist/{Popover-CIfmPr2b.js → Popover-C6_p8KAA.js} +4 -4
  128. package/dist/PowerSearch/index.d.ts +1 -1
  129. package/dist/PowerSearch/index.js +1 -1
  130. package/dist/{PowerSearch-lZ7C-9_i.js → PowerSearch-D47zbO7s.js} +21 -21
  131. package/dist/Radio/index.d.ts +1 -1
  132. package/dist/Radio/index.js +1 -1
  133. package/dist/{RadioGroup-DE0vl44p.js → RadioGroup-C1VXRBSf.js} +3 -3
  134. package/dist/RadioList/index.d.ts +1 -1
  135. package/dist/RadioList/index.js +1 -1
  136. package/dist/{RadioListItem-CMH7E4o4.js → RadioListItem-DrAwYoOz.js} +1 -1
  137. package/dist/Resizable/index.js +1 -1
  138. package/dist/{ResizeHandle-IXhzcM0r.js → ResizeHandle-ruXeaXUT.js} +1 -1
  139. package/dist/ScrollableArea/index.d.ts +1 -1
  140. package/dist/SegmentedControl/index.js +1 -1
  141. package/dist/{SegmentedControl-DfQbw_Kx.js → SegmentedControl-D9atngIc.js} +2 -2
  142. package/dist/SelectableCard/index.d.ts +1 -1
  143. package/dist/Selector/index.d.ts +1 -1
  144. package/dist/Selector/index.js +1 -1
  145. package/dist/{Selector-BA_Br1PQ.js → Selector-DFTryuh1.js} +7 -7
  146. package/dist/SideNav/index.d.ts +1 -1
  147. package/dist/SideNav/index.js +2 -2
  148. package/dist/{SideNav-iTVaFVr8.js → SideNav-Bjk5ACqf.js} +7 -7
  149. package/dist/Slider/index.js +1 -1
  150. package/dist/{Slider-Dd-7-KDB.js → Slider-rOwQQK6G.js} +1 -1
  151. package/dist/Spinner/index.js +1 -1
  152. package/dist/{Spinner-D1adu3uH.js → Spinner-lLOYfbOY.js} +1 -1
  153. package/dist/Stack/index.d.ts +1 -1
  154. package/dist/Stepper/index.d.ts +1 -1
  155. package/dist/Stepper/index.js +1 -1
  156. package/dist/{Stepper-2Pzjo2X6.js → Stepper-0ycdCwND.js} +1 -1
  157. package/dist/Switch/index.d.ts +1 -1
  158. package/dist/Switch/index.js +1 -1
  159. package/dist/{Switch-CDzpdofs.js → Switch-BBfZ6XqA.js} +3 -3
  160. package/dist/TabList/index.js +1 -1
  161. package/dist/{TabList-2WI0pFSQ.js → TabList-BnLUktgm.js} +1 -1
  162. package/dist/Table/index.d.ts +1 -1
  163. package/dist/Table/index.js +1 -1
  164. package/dist/{Table-Dv2v2Qn1.js → Table-D0yjxm9X.js} +13 -13
  165. package/dist/Text/index.d.ts +1 -1
  166. package/dist/TextArea/index.d.ts +1 -1
  167. package/dist/TextArea/index.js +1 -1
  168. package/dist/{TextArea-DVaMUVoM.js → TextArea-Cr00OL0D.js} +6 -6
  169. package/dist/TextInput/index.d.ts +1 -1
  170. package/dist/TextInput/index.js +1 -1
  171. package/dist/{TextInput-CuZ0_q-W.js → TextInput-CVfvRHOa.js} +6 -6
  172. package/dist/Theme/index.d.ts +3 -3
  173. package/dist/Theme/index.js +3 -3
  174. package/dist/{Theme-CwruhtLu.js → Theme-B_kAJHy2.js} +111 -23
  175. package/dist/Thumbnail/index.js +1 -1
  176. package/dist/{Thumbnail-DdWfJKHa.js → Thumbnail-CJPZ299u.js} +3 -3
  177. package/dist/{TimeField-BxM1p1iV.js → TimeField-Csp1-lRo.js} +7 -7
  178. package/dist/TimeInput/index.d.ts +1 -1
  179. package/dist/TimeInput/index.js +1 -1
  180. package/dist/{TimeInput-OazN0w6r.js → TimeInput-B4JLpJ2N.js} +2 -2
  181. package/dist/Timer/index.d.ts +1 -1
  182. package/dist/Timestamp/index.d.ts +1 -1
  183. package/dist/Timestamp/index.js +1 -1
  184. package/dist/{Timestamp-B6Ob-xlj.js → Timestamp-BmH-CQ8p.js} +2 -2
  185. package/dist/Toast/index.js +1 -1
  186. package/dist/{Toast-CW2ML8tU.js → Toast-Cuc1o3ph.js} +6 -7
  187. package/dist/ToggleButton/index.d.ts +1 -1
  188. package/dist/ToggleButton/index.js +1 -1
  189. package/dist/{ToggleButton-8XAM4Mko.js → ToggleButton-BsAi9ln1.js} +3 -3
  190. package/dist/Tokenizer/index.d.ts +1 -1
  191. package/dist/Tokenizer/index.js +1 -1
  192. package/dist/{Tokenizer-OZbI0TqN.js → Tokenizer-CXCnZtY3.js} +258 -176
  193. package/dist/Toolbar/index.d.ts +1 -1
  194. package/dist/TopNav/index.d.ts +1 -1
  195. package/dist/TopNav/index.js +1 -1
  196. package/dist/{TopNav-Bea1f-4t.js → TopNav-GvK-XIRl.js} +3 -3
  197. package/dist/TreeList/index.js +1 -1
  198. package/dist/{TreeList-DEGpCrNi.js → TreeList-CfELZwbQ.js} +5 -5
  199. package/dist/Typeahead/index.js +2 -2
  200. package/dist/{Typeahead-BONCIm6m.js → Typeahead-Csob3tst.js} +5 -5
  201. package/dist/{accessibleName-YrrAARQX.js → accessibleName-CYV4uRm9.js} +3 -3
  202. package/dist/{adaptationTypes-D874ONPJ.d.ts → adaptationTypes-D5HrfPSt.d.ts} +9 -0
  203. package/dist/{assertOptions-Byu4Yqfg.js → assertOptions-BOwrrTT-.js} +1 -1
  204. package/dist/colorMode-DVs86FF2.js +49 -0
  205. package/dist/{compactDefinition-CMTR5KqU.d.ts → compactDefinition-BPg0hR8Q.d.ts} +1 -1
  206. package/dist/{compactDefinition-BeFUKEFg.js → compactDefinition-D32f2O_H.js} +1 -1
  207. package/dist/composables/index.d.ts +2 -2
  208. package/dist/composables/index.js +7 -7
  209. package/dist/{composables-BJfZbXeW.js → composables-DqaKLASV.js} +2 -2
  210. package/dist/{context-DArta_KP.js → context-CLCiYDtY.js} +1 -1
  211. package/dist/context-CwV8eyUd.js +12 -0
  212. package/dist/contrast-B0fsdq4U.js +75 -0
  213. package/dist/{index-Pad9p8CU.d.ts → index-Ak1b0V24.d.ts} +1 -1
  214. package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
  215. package/dist/{index-BgT6mH3U.d.ts → index-BB9acgK8.d.ts} +1 -1
  216. package/dist/{index-CTASAiq2.d.ts → index-BFPb14Xj.d.ts} +4 -4
  217. package/dist/{index-CQi9WGWE.d.ts → index-BfOs5BQj.d.ts} +3 -3
  218. package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
  219. package/dist/{index-Dgl2rXqH.d.ts → index-BzaRSOA3.d.ts} +2 -1
  220. package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
  221. package/dist/index-CDZhxbEp.d.ts +44 -0
  222. package/dist/{index-DkYOGpsC.d.ts → index-CTo75wH5.d.ts} +1 -1
  223. package/dist/{index-V6uruC4Z.d.ts → index-CqvIpZ-t.d.ts} +1 -1
  224. package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
  225. package/dist/{index--kbwaSXW.d.ts → index-CuW4AQ7M.d.ts} +1 -1
  226. package/dist/{index-C8wfe0Mr.d.ts → index-D05JGsT3.d.ts} +1 -1
  227. package/dist/{index-DxFU2kv3.d.ts → index-DN2b-w3H.d.ts} +52 -52
  228. package/dist/{index-J83fLEyo.d.ts → index-DgNCHxvu.d.ts} +2 -2
  229. package/dist/{index-JE1HrzdJ.d.ts → index-Ds4dOCSy.d.ts} +5 -2
  230. package/dist/{index-DXGoFpRN.d.ts → index-LvZ3vP29.d.ts} +1 -1
  231. package/dist/{index-EUzmHHm6.d.ts → index-WBF_zxXX.d.ts} +2 -2
  232. package/dist/{index-BrY-v2wz.d.ts → index-YP5WRwXH.d.ts} +5 -5
  233. package/dist/index.d.ts +25 -23
  234. package/dist/index.js +88 -87
  235. package/dist/{landing-CwF_76em.js → landing-DjJvKu3c.js} +1 -1
  236. package/dist/{lazyBottomSheet-COX_Z3-V.js → lazyBottomSheet-0H4ih8Oh.js} +1 -1
  237. package/dist/{modalOutlet-BwR9AAlm.js → modalOutlet-C2nqIYUt.js} +7 -6
  238. package/dist/motionTokenDefaults-EFzpiAF5.js +38 -0
  239. package/dist/palette/index.d.ts +3 -0
  240. package/dist/palette/index.js +2 -0
  241. package/dist/palette-DlNBLR8U.js +2114 -0
  242. package/dist/{presentationHold-ZKixVLcz.js → presentationHold-Bjjux3fp.js} +1 -1
  243. package/dist/{reportChange-DuOzs-8h.js → reportChange-wIeU3q3y.js} +1 -1
  244. package/dist/{resizableChannel-6oZZNYYM.js → resizableChannel-b7iQNnCj.js} +2 -2
  245. package/dist/{themeTiming-Cv_hsTJU.js → themeTiming-DOf0j6SM.js} +2 -1
  246. package/dist/{tokenReferences-sKpv-7_O.js → tokenReferences-CdmofltU.js} +1 -38
  247. package/dist/{triggerVariant-DPuBmzpp.js → triggerVariant-CRQoD-4F.js} +1 -1
  248. package/dist/{types-D97oBk6c.d.ts → types-DTlpQo7j.d.ts} +1 -1
  249. package/dist/types-DypDQlbk.d.ts +176 -0
  250. package/dist/{useActionGroupTracking-DB5xIxPW.js → useActionGroupTracking-SVkaaOzz.js} +1 -1
  251. package/dist/{useAnimatedLayout-CVYflMPG.js → useAnimatedLayout-CXjd5pjG.js} +1 -1
  252. package/dist/{useChatStreamScroll-3mJvbNtI.js → useChatStreamScroll-BQpGHGAr.js} +1 -1
  253. package/dist/{useHeldPresentation-CaIKTwUh.js → useHeldPresentation-0Z0Untra.js} +1 -1
  254. package/dist/{useIndicator-PFDBNOvX.js → useIndicator-Co1ERlg-.js} +2 -2
  255. package/dist/{useInputStatusIcon-CV8qfqzK.js → useInputStatusIcon-CRG-be-K.js} +2 -2
  256. package/dist/{useMediaQuery-BzXGT1Aw.js → useMediaQuery-DKnSDG3S.js} +1 -1
  257. package/dist/{useMenuHover-DoBatZeD.js → useMenuHover-Dahcf3qo.js} +1 -1
  258. package/dist/{useMobileKeyboard-DOa93Ek2.js → useMobileKeyboard-Cibxl8ZC.js} +1 -1
  259. package/dist/{useResizable-9WyAIDnz.js → useResizable-CJQAV_tU.js} +1 -1
  260. package/dist/useResolvedColorMode-CyZjLvfj.js +159 -0
  261. package/dist/{useTouchHitArea-DvKV21NY.js → useTouchHitArea-BdpeksgK.js} +225 -43
  262. package/dist/{useTypeaheadMenuConfig-DUZD3GqE.js → useTypeaheadMenuConfig-0glQWHQd.js} +1 -1
  263. package/package.json +5 -1
  264. package/styles/bottom-sheet.css +61 -19
  265. package/styles/date-input.css +76 -0
  266. package/styles/tokenizer.css +88 -0
  267. package/dist/BottomSheet-dgHDqtQg.js +0 -203
  268. package/dist/context-Cws_tXTr.js +0 -7
  269. package/dist/useResolvedColorMode-Df97_9w_.js +0 -78
@@ -235,6 +235,94 @@
235
235
  transition: none;
236
236
  }
237
237
  }
238
+
239
+ /*
240
+ * InputGroup 里的 Tokenizer:整行由组定高、画边框和焦点,Tokenizer 只留内容。
241
+ * 一行放不下就横向滚动,不换行,否则第二行会溢出组的边框;
242
+ * 只有标签和输入这条轨道在滚,结尾的控件是它的兄弟,不会被标签盖住。
243
+ */
244
+ .astryx-input-group-field .astryx-tokenizer.in-group {
245
+ flex: 1;
246
+ width: 100%;
247
+ min-width: 0;
248
+ height: 100%;
249
+ }
250
+
251
+ .astryx-input-group-field .astryx-tokenizer.in-group .astryx-tokenizer-control {
252
+ flex-wrap: nowrap;
253
+ height: 100%;
254
+ min-height: 0;
255
+ border: 0;
256
+ border-radius: 0;
257
+ box-shadow: none;
258
+ background: transparent;
259
+ }
260
+
261
+ .astryx-tokenizer.in-group .astryx-tokenizer-track {
262
+ --_fade-inset: calc(var(--astryx-spacing-1, 4px) + var(--astryx-spacing-6, 24px));
263
+ display: flex;
264
+ flex: 1 1 0;
265
+ align-items: center;
266
+ align-self: stretch;
267
+ min-width: 0;
268
+ /* 滚动容器在自己的内边距处裁切;向外撑回外框的内边距,标签的焦点环才有地方画。 */
269
+ margin: calc(-1 * var(--astryx-spacing-1, 4px));
270
+ padding: var(--astryx-spacing-1, 4px);
271
+ scrollbar-width: none;
272
+ scroll-padding-inline: var(--_fade-inset);
273
+ }
274
+
275
+ .astryx-tokenizer.in-group .astryx-tokenizer-track-content {
276
+ display: flex;
277
+ flex: none;
278
+ align-items: center;
279
+ gap: var(--astryx-spacing-1, 4px);
280
+ /* 至少和轨道一样宽,输入框才能拿到标签剩下的地方;标签更多时才超出,轨道才有得滚。 */
281
+ min-width: 100%;
282
+ }
283
+
284
+ /* 轨道里标签和输入框排成一行,不再各自占一个弹性行。 */
285
+ .astryx-tokenizer.in-group .astryx-tokenizer-tokens {
286
+ display: flex;
287
+ flex: none;
288
+ flex-wrap: nowrap;
289
+ gap: var(--astryx-spacing-1, 4px);
290
+ max-width: none;
291
+ }
292
+
293
+ .astryx-tokenizer.in-group .astryx-tokenizer-tokens.is-collapsed {
294
+ flex: 1 1 auto;
295
+ }
296
+
297
+ /* 藏着标签的那一侧淡出,代替滚动条。 */
298
+ .astryx-tokenizer.in-group .astryx-tokenizer-track[data-scrollable-inline='true']:not([data-scroll-inline-start='true']):not([data-scroll-inline-end='true']) {
299
+ mask-image: linear-gradient(to right, transparent var(--astryx-spacing-1, 4px), black var(--_fade-inset), black calc(100% - var(--_fade-inset)), transparent calc(100% - var(--astryx-spacing-1, 4px)));
300
+ }
301
+
302
+ .astryx-tokenizer.in-group .astryx-tokenizer-track[data-scrollable-inline='true'][data-scroll-inline-start='true']:not([data-scroll-inline-end='true']) {
303
+ mask-image: linear-gradient(to left, transparent var(--astryx-spacing-1, 4px), black var(--_fade-inset));
304
+ }
305
+
306
+ .astryx-tokenizer.in-group .astryx-tokenizer-track[data-scrollable-inline='true'][data-scroll-inline-end='true']:not([data-scroll-inline-start='true']) {
307
+ mask-image: linear-gradient(to right, transparent var(--astryx-spacing-1, 4px), black var(--_fade-inset));
308
+ }
309
+
310
+ /* 从右往左排版:淡出的方向跟着翻过来。 */
311
+ .astryx-tokenizer.in-group .astryx-tokenizer-track:dir(rtl)[data-scrollable-inline='true'][data-scroll-inline-start='true']:not([data-scroll-inline-end='true']) {
312
+ mask-image: linear-gradient(to right, transparent var(--astryx-spacing-1, 4px), black var(--_fade-inset));
313
+ }
314
+
315
+ .astryx-tokenizer.in-group .astryx-tokenizer-track:dir(rtl)[data-scrollable-inline='true'][data-scroll-inline-end='true']:not([data-scroll-inline-start='true']) {
316
+ mask-image: linear-gradient(to left, transparent var(--astryx-spacing-1, 4px), black var(--_fade-inset));
317
+ }
318
+
319
+ /* 强制颜色下滚动条回来了,淡出让位。 */
320
+ @media (forced-colors: active) {
321
+ .astryx-tokenizer.in-group .astryx-tokenizer-track {
322
+ mask-image: none;
323
+ scrollbar-width: thin;
324
+ }
325
+ }
238
326
  }
239
327
 
240
328
  /* 不分层:输入框的焦点由外框承担,避免文档页再套一层品牌绿环。 */
@@ -1,203 +0,0 @@
1
- import { a as focusSheetOnOpen, i as bottomSheetSwitcherKey, r as useSheetLayerDismiss } from "./BottomSheet-CFdGLVIF.js";
2
- import { r as provideNestedLayerMountTarget } from "./mount-7R_s-bHB.js";
3
- import { t as isImeKeyEvent } from "./ime-VY8-80S8.js";
4
- import { t as useFocusTrap } from "./useFocusTrap-Bj9GskLh.js";
5
- import { t as useScrollLock } from "./scrollLock-CoVg9lLU.js";
6
- import { n as restoreLayerFocus, r as trackLayerFocus, t as isLayerFocusStranded } from "./layerFocusReturn-uixUCSc8.js";
7
- import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, getCurrentInstance, mergeModels, mergeProps, nextTick, onBeforeUnmount, onMounted, openBlock, provide, ref, renderSlot, shallowRef, useModel, useTemplateRef, watch } from "vue";
8
- import "../styles/bottom-sheet.css";
9
- //#region src/BottomSheet/BottomSheetSwitcher.vue
10
- const _hoisted_1 = [
11
- "data-settled",
12
- "aria-label",
13
- "aria-modal"
14
- ];
15
- const _hoisted_2 = {
16
- ref: "layerHost",
17
- class: "astryx-bottom-sheet__layer-host"
18
- };
19
- const _sfc_main = /*@__PURE__*/ defineComponent({
20
- name: "AstryxBottomSheetSwitcher",
21
- inheritAttrs: false,
22
- __name: "BottomSheetSwitcher",
23
- props: /*@__PURE__*/ mergeModels({
24
- label: {},
25
- purpose: {},
26
- hasScrim: {
27
- type: Boolean,
28
- default: true
29
- }
30
- }, {
31
- "activeSheet": { default: null },
32
- "activeSheetModifiers": {}
33
- }),
34
- emits: /*@__PURE__*/ mergeModels(["cancel"], ["update:activeSheet"]),
35
- setup(__props, { emit: __emit }) {
36
- const props = __props;
37
- const emit = __emit;
38
- const activeSheet = useModel(__props, "activeSheet");
39
- const retainedId = ref(null);
40
- const alignmentOffset = ref(0);
41
- const sheets = shallowRef(/* @__PURE__ */ new Map());
42
- const dialog = useTemplateRef("dialog");
43
- provideNestedLayerMountTarget(useTemplateRef("layerHost"));
44
- const isScrollLocked = ref(false);
45
- const isSettled = ref(getCurrentInstance()?.vnode.el != null && activeSheet.value != null);
46
- let focusRecord = null;
47
- let handoffTimer;
48
- useScrollLock(isScrollLocked);
49
- function registration(id) {
50
- return id == null ? void 0 : sheets.value.get(id);
51
- }
52
- const activeElement = computed(() => registration(activeSheet.value)?.getElement() ?? null);
53
- const flowPurpose = computed(() => props.purpose ?? registration(activeSheet.value)?.purpose() ?? "info");
54
- const dialogLabel = computed(() => props.label ?? registration(activeSheet.value)?.label() ?? "Bottom sheet");
55
- useFocusTrap({
56
- container: activeElement,
57
- isEnabled: computed(() => activeSheet.value != null && props.hasScrim)
58
- });
59
- function setActive(id) {
60
- const previous = activeSheet.value;
61
- if (previous === id) return;
62
- if (handoffTimer != null) clearTimeout(handoffTimer);
63
- if (previous != null && id != null) {
64
- retainedId.value = previous;
65
- alignmentOffset.value = 0;
66
- activeSheet.value = id;
67
- nextTick(() => {
68
- const previousHeight = registration(previous)?.getElement()?.offsetHeight ?? 0;
69
- const nextHeight = registration(id)?.getElement()?.offsetHeight ?? 0;
70
- alignmentOffset.value = Math.max(0, previousHeight - nextHeight);
71
- });
72
- handoffTimer = setTimeout(() => {
73
- if (retainedId.value === previous) {
74
- retainedId.value = null;
75
- alignmentOffset.value = 0;
76
- }
77
- }, 420);
78
- return;
79
- }
80
- retainedId.value = null;
81
- alignmentOffset.value = 0;
82
- activeSheet.value = id;
83
- }
84
- function register(id, entry) {
85
- const next = new Map(sheets.value);
86
- next.set(id, entry);
87
- sheets.value = next;
88
- }
89
- function unregister(id) {
90
- const next = new Map(sheets.value);
91
- next.delete(id);
92
- sheets.value = next;
93
- }
94
- provide(bottomSheetSwitcherKey, {
95
- activeId: activeSheet,
96
- retainedId,
97
- alignmentOffset,
98
- setActive,
99
- register,
100
- unregister
101
- });
102
- function openDialog() {
103
- const element = dialog.value;
104
- if (!element) return;
105
- if (!element.open) {
106
- focusRecord?.stop();
107
- focusRecord = trackLayerFocus({ getLayer: () => dialog.value });
108
- if (props.hasScrim) element.showModal();
109
- else element.show();
110
- }
111
- isScrollLocked.value = props.hasScrim;
112
- nextTick(() => focusSheetOnOpen(activeElement.value, true));
113
- }
114
- function returnFocus(record, wasStranded) {
115
- if (wasStranded) restoreLayerFocus(record, {
116
- layer: null,
117
- name: "BottomSheetSwitcher"
118
- });
119
- record.stop();
120
- }
121
- function closeDialog() {
122
- const record = focusRecord;
123
- focusRecord = null;
124
- const wasStranded = record != null && isLayerFocusStranded(record, dialog.value);
125
- dialog.value?.close();
126
- if (record != null) returnFocus(record, wasStranded);
127
- isScrollLocked.value = false;
128
- retainedId.value = null;
129
- alignmentOffset.value = 0;
130
- }
131
- function requestClose() {
132
- if (flowPurpose.value === "required") return;
133
- setActive(null);
134
- }
135
- const flowVisible = computed(() => activeSheet.value != null || retainedId.value != null);
136
- const layerEscape = computed(() => {
137
- if (activeSheet.value == null || flowPurpose.value === "required") return "block";
138
- if (!props.hasScrim) return "ignore";
139
- return "close";
140
- });
141
- const layer = useSheetLayerDismiss({
142
- isActive: flowVisible,
143
- escape: layerEscape,
144
- getContainer: () => dialog.value ?? null,
145
- isPresent: () => dialog.value?.open ?? false,
146
- onDismiss: requestClose
147
- });
148
- function onKeydown(event) {
149
- if (event.key !== "Escape" || !layer.isTop()) return;
150
- event.preventDefault();
151
- if (isImeKeyEvent(event)) return;
152
- requestClose();
153
- }
154
- function onCancel(event) {
155
- if (event.target !== dialog.value) return;
156
- emit("cancel", event);
157
- if (event.defaultPrevented) return;
158
- event.preventDefault();
159
- if (!layer.isTop()) return;
160
- requestClose();
161
- }
162
- function onDialogClick(event) {
163
- if (event.target !== event.currentTarget) return;
164
- if (props.hasScrim && flowPurpose.value === "info") setActive(null);
165
- }
166
- watch(activeSheet, (id, previous) => {
167
- if (previous != null) isSettled.value = false;
168
- if (id) openDialog();
169
- else closeDialog();
170
- }, { flush: "post" });
171
- onMounted(() => {
172
- if (activeSheet.value) openDialog();
173
- });
174
- onBeforeUnmount(() => {
175
- const record = focusRecord;
176
- focusRecord = null;
177
- if (record != null) {
178
- const wasStranded = isLayerFocusStranded(record, dialog.value);
179
- queueMicrotask(() => returnFocus(record, wasStranded));
180
- }
181
- if (handoffTimer != null) clearTimeout(handoffTimer);
182
- isScrollLocked.value = false;
183
- });
184
- return (_ctx, _cache) => {
185
- return openBlock(), createElementBlock(Fragment, null, [createCommentVNode(" eslint-disable-next-line vue-a11y/no-static-element-interactions -- 点在对话框空白处才关闭;键盘用 Escape,不给对话框再加一个按钮。 "), createElementVNode("dialog", mergeProps(_ctx.$attrs, {
186
- ref_key: "dialog",
187
- ref: dialog,
188
- class: ["astryx-bottom-sheet-dialog astryx-bottom-sheet-switcher", {
189
- "astryx-bottom-sheet-dialog--scrim": __props.hasScrim,
190
- "astryx-bottom-sheet-dialog--closing": activeSheet.value == null
191
- }],
192
- "data-settled": isSettled.value || void 0,
193
- "aria-label": dialogLabel.value,
194
- "aria-modal": isScrollLocked.value && activeSheet.value != null ? "true" : void 0,
195
- onCancel,
196
- onClick: onDialogClick,
197
- onKeydown
198
- }), [renderSlot(_ctx.$slots, "default"), createElementVNode("div", _hoisted_2, null, 512)], 16, _hoisted_1)], 2112);
199
- };
200
- }
201
- });
202
- //#endregion
203
- export { _sfc_main as t };
@@ -1,7 +0,0 @@
1
- //#region src/Theme/context.ts
2
- const themeContextKey = Symbol("astryx-theme");
3
- /** Present when this component is already inside a Theme. */
4
- const themeNestingKey = Symbol("astryx-theme-nesting");
5
- const mediaThemeKey = Symbol("astryx-media-theme");
6
- //#endregion
7
- export { themeContextKey as n, themeNestingKey as r, mediaThemeKey as t };
@@ -1,78 +0,0 @@
1
- import { t as useMediaQuery } from "./useMediaQuery-BzXGT1Aw.js";
2
- import { computed, getCurrentInstance, onMounted, ref } from "vue";
3
- //#region src/Theme/colorMode.ts
4
- /**
5
- * Split `light-dark(light, dark)` at the top-level comma.
6
- * Nested functions such as `rgb()` keep their own commas.
7
- */
8
- function splitLightDark(value) {
9
- const trimmed = value.trim();
10
- if (!trimmed.startsWith("light-dark(") || !trimmed.endsWith(")")) return null;
11
- const body = trimmed.slice(11, -1);
12
- let depth = 0;
13
- for (let index = 0; index < body.length; index += 1) {
14
- const char = body[index];
15
- if (char === "(") depth += 1;
16
- else if (char === ")") depth -= 1;
17
- else if (char === "," && depth === 0) {
18
- const light = body.slice(0, index).trim();
19
- const dark = body.slice(index + 1).trim();
20
- return light && dark ? [light, dark] : null;
21
- }
22
- }
23
- return null;
24
- }
25
- /**
26
- * Pick the stop `light-dark()` would use for the effective mode.
27
- * A value that is not `light-dark()` is returned unchanged.
28
- */
29
- function resolveLightDark(value, mode) {
30
- const parts = splitLightDark(value);
31
- if (!parts) return value.trim();
32
- return mode === "dark" ? parts[1] : parts[0];
33
- }
34
- /**
35
- * The mode `light-dark()` is using on the page.
36
- *
37
- * An explicit theme mode is handled by the caller. This reads the document
38
- * attribute, the docs site's `dark` class, then the OS preference that was
39
- * already measured.
40
- */
41
- function readColorMode(prefersDark) {
42
- if (typeof document !== "undefined") {
43
- const attr = document.documentElement.getAttribute("data-astryx-color-mode");
44
- if (attr === "light" || attr === "dark") return attr;
45
- if (document.documentElement.classList.contains("dark")) return "dark";
46
- }
47
- return prefersDark ? "dark" : "light";
48
- }
49
- //#endregion
50
- //#region src/Theme/useResolvedColorMode.ts
51
- /**
52
- * 能不能读读者的页面(文档属性、计算样式、系统偏好)。
53
- *
54
- * 组件里挂载后才为 true:服务端看不到读者的页面,hydration 那一趟也必须和服务端算得一样,
55
- * 否则深色页面或页面自己的 CSS 变量会让第一次渲染和服务端 HTML 对不上。
56
- * 组件外调用时没有挂载这一步,直接为 true。
57
- */
58
- function usePageReadable() {
59
- const readable = ref(getCurrentInstance() == null);
60
- if (!readable.value) onMounted(() => {
61
- readable.value = true;
62
- });
63
- return readable;
64
- }
65
- /**
66
- * 主题明确给了 light 或 dark 就用它;否则跟随页面(文档属性、`dark` 类、系统偏好)。
67
- * 跟随页面的那一半挂载前按服务端的 light 算,见 `usePageReadable`。
68
- */
69
- function useResolvedColorMode(requested, pageReadable = usePageReadable()) {
70
- const prefersDark = useMediaQuery("(prefers-color-scheme: dark)");
71
- return computed(() => {
72
- const mode = requested();
73
- if (mode === "light" || mode === "dark") return mode;
74
- return pageReadable.value ? readColorMode(prefersDark.value) : "light";
75
- });
76
- }
77
- //#endregion
78
- export { useResolvedColorMode as n, resolveLightDark as r, usePageReadable as t };