@astryx-vue/core 0.2.3 → 0.2.5

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/README.md +28 -26
  2. package/THIRD_PARTY_NOTICES.md +2 -0
  3. package/dist/AlertDialog/index.js +1 -1
  4. package/dist/{AlertDialog-ovx4cBjM.js → AlertDialog-B6UeBCE7.js} +2 -2
  5. package/dist/AppShell/index.js +1 -1
  6. package/dist/{AppShell-Dd-D4bA2.js → AppShell-CeBmB0Q9.js} +2 -2
  7. package/dist/Avatar/index.d.ts +1 -1
  8. package/dist/Avatar/index.js +1 -1
  9. package/dist/{Avatar-jmHInHwj.js → Avatar-BB4Z4LF1.js} +10 -4
  10. package/dist/AvatarGroup/index.d.ts +1 -1
  11. package/dist/Banner/index.d.ts +1 -1
  12. package/dist/BottomSheet/index.d.ts +2 -2
  13. package/dist/BottomSheet/index.js +3 -2
  14. package/dist/{BottomSheet-Dg95HB1s.js → BottomSheet-BV6vfgGu.js} +82 -22
  15. package/dist/BottomSheet-o7xw-TOi.js +153 -0
  16. package/dist/Breadcrumbs/index.d.ts +2 -2
  17. package/dist/Breadcrumbs/index.js +2 -2
  18. package/dist/{Breadcrumbs-CWGfgLNK.js → Breadcrumbs-D6G7f5WL.js} +1 -1
  19. package/dist/Button/index.d.ts +1 -1
  20. package/dist/ButtonGroup/index.d.ts +1 -1
  21. package/dist/Calendar/index.d.ts +1 -1
  22. package/dist/Calendar/index.js +1 -1
  23. package/dist/{Calendar-CnOsSjMY.js → Calendar-DmTeM7PO.js} +2 -2
  24. package/dist/Carousel/index.js +1 -1
  25. package/dist/{Carousel-JA7ilqI_.js → Carousel-CIKrcA2r.js} +1 -1
  26. package/dist/Chat/index.js +1 -1
  27. package/dist/{Chat-C7WrCOE4.js → Chat-BFox3u9D.js} +1 -1
  28. package/dist/CheckboxInput/index.d.ts +1 -1
  29. package/dist/CheckboxList/index.d.ts +1 -1
  30. package/dist/CheckboxList/index.js +1 -1
  31. package/dist/{CheckboxList-CnCGnkZk.js → CheckboxList-BlPf7vPe.js} +4 -4
  32. package/dist/Citation/index.js +1 -1
  33. package/dist/{Citation-CtwrU33I.js → Citation-BG-vg9ia.js} +1 -1
  34. package/dist/ClickableCard/index.d.ts +1 -1
  35. package/dist/Code/index.d.ts +3 -3
  36. package/dist/Code/index.js +4 -4
  37. package/dist/{Code-BvefYRpx.js → Code-XnPuGxey.js} +1 -1
  38. package/dist/{CodeBlock-BZGzYeoL.js → CodeBlock-B2pnEOJY.js} +145 -15
  39. package/dist/CommandPalette/index.js +1 -1
  40. package/dist/{CommandPalette-BNbM9T9y.js → CommandPalette-DKgHzmJk.js} +10 -10
  41. package/dist/ComplexSelector/index.js +1 -1
  42. package/dist/{ComplexSelector-LtbLlrcj.js → ComplexSelector-Dv44FFhN.js} +1 -1
  43. package/dist/ContextMenu/index.d.ts +2 -2
  44. package/dist/ContextMenu/index.js +2 -2
  45. package/dist/{ContextMenu-DVQl0xL5.js → ContextMenu-BeJO5HYx.js} +4 -369
  46. package/dist/DateInput/index.d.ts +1 -1
  47. package/dist/DateInput/index.js +1 -1
  48. package/dist/{DateInput-zm8sNc0t.js → DateInput-D4XFAEMp.js} +3 -3
  49. package/dist/DateRangeInput/index.d.ts +1 -1
  50. package/dist/DateRangeInput/index.js +1 -1
  51. package/dist/{DateRangeInput-DlVFzrf7.js → DateRangeInput-Cp6AZfew.js} +2 -2
  52. package/dist/DateTimeInput/index.d.ts +1 -1
  53. package/dist/DateTimeInput/index.js +1 -1
  54. package/dist/{DateTimeInput-C7Z-p6Yd.js → DateTimeInput-B6MPPp76.js} +3 -3
  55. package/dist/DropdownMenu/index.d.ts +2 -2
  56. package/dist/DropdownMenu/index.js +3 -3
  57. package/dist/{DropdownMenu-BoZChdev.js → DropdownMenu--lnUeJEG.js} +3 -3
  58. package/dist/{DropdownMenu-u1psFjis.js → DropdownMenu-6E9jFdFe.js} +4 -4
  59. package/dist/{DropdownMenuRadioItem.vue-uVM0FD2f.d.ts → DropdownMenuRadioItem.vue-CXEURBcq.d.ts} +1 -1
  60. package/dist/EmptyState/index.js +1 -1
  61. package/dist/{EmptyState-CUJdTYKV.js → EmptyState-0RWymQUS.js} +2 -2
  62. package/dist/FileInput/index.d.ts +1 -1
  63. package/dist/FileInput/index.js +1 -1
  64. package/dist/{FileInput-QdlZn7qK.js → FileInput-DuNwdbAo.js} +1 -1
  65. package/dist/Grid/index.d.ts +1 -1
  66. package/dist/Heading/index.d.ts +2 -2
  67. package/dist/Heading/index.js +1 -1
  68. package/dist/Heading-B9C3LZlS.js +94 -0
  69. package/dist/Indicator/index.d.ts +2 -2
  70. package/dist/InputGroup/index.d.ts +1 -1
  71. package/dist/Item-DrYJL1TG.js +590 -0
  72. package/dist/Lightbox/index.js +1 -1
  73. package/dist/{Lightbox-BSzfqZ-u.js → Lightbox-Br3o0SyQ.js} +1 -1
  74. package/dist/Link/index.d.ts +3 -2
  75. package/dist/Link/index.js +1 -1
  76. package/dist/Link-DCZ6922-.js +196 -0
  77. package/dist/List/index.d.ts +3 -3
  78. package/dist/List/index.js +2 -2
  79. package/dist/{ListItem-pGxvn6QJ.js → ListItem-CcRHWuEm.js} +8 -2
  80. package/dist/Markdown/index.d.ts +2 -2
  81. package/dist/Markdown/index.js +2 -2
  82. package/dist/{Markdown-B6tSqenv.js → Markdown-Bz0R3kNj.js} +274 -30
  83. package/dist/MetadataList/index.js +1 -1
  84. package/dist/{MetadataList-aN1tRn6W.js → MetadataList-CFaocx6j.js} +1 -1
  85. package/dist/MobileNav/index.js +1 -1
  86. package/dist/{MobileNavToggle-fqcSafkc.js → MobileNavToggle-Dh3uLivq.js} +1 -1
  87. package/dist/MoreMenu/index.d.ts +1 -1
  88. package/dist/MoreMenu/index.js +1 -1
  89. package/dist/{MoreMenu-B3brqdK_.js → MoreMenu-B95nRSe8.js} +2 -2
  90. package/dist/MultiSelector/index.d.ts +1 -1
  91. package/dist/MultiSelector/index.js +1 -1
  92. package/dist/{MultiSelector-BD5PMgez.js → MultiSelector-DuF5TECE.js} +4 -4
  93. package/dist/{NavDisclosure-DbYLDXK0.js → NavDisclosure-C6sPZ89n.js} +4 -1
  94. package/dist/NavHeadingSurface-Cb3x9iDx.js +287 -0
  95. package/dist/NavItem/index.d.ts +1 -1
  96. package/dist/NavMenu/index.d.ts +2 -2
  97. package/dist/NavMenu/index.js +4 -3
  98. package/dist/NavMenu-ClIgMaxE.js +176 -0
  99. package/dist/{NavMenuItem-DrwIMHKO.js → NavMenuItem-E7S8gBh-.js} +1 -1
  100. package/dist/NumberInput/index.d.ts +1 -1
  101. package/dist/NumberInput/index.js +1 -1
  102. package/dist/{NumberInput-CBeU4lEl.js → NumberInput-B4IL3s_8.js} +1 -1
  103. package/dist/Outline/index.js +1 -1
  104. package/dist/{Outline--HVMSB6i.js → Outline-DBUuchi9.js} +1 -1
  105. package/dist/OverflowList/index.d.ts +1 -1
  106. package/dist/OverflowList/index.js +1 -1
  107. package/dist/{OverflowList-FMh7r-r_.js → OverflowList-aDd_oem0.js} +3 -3
  108. package/dist/Pagination/index.d.ts +1 -1
  109. package/dist/Pagination/index.js +1 -1
  110. package/dist/{Pagination-DlIvESjx.js → Pagination-CNe9F6Fl.js} +181 -45
  111. package/dist/Popover/index.d.ts +1 -1
  112. package/dist/PowerSearch/index.d.ts +1 -1
  113. package/dist/PowerSearch/index.js +1 -1
  114. package/dist/{PowerSearch-CMG7Rb69.js → PowerSearch-C6U8Sq1Y.js} +13 -13
  115. package/dist/ProgressBar/index.d.ts +2 -2
  116. package/dist/ProgressBar/index.js +1 -1
  117. package/dist/{ProgressBar-DO9Chic6.js → ProgressBar-DF6WZNCI.js} +45 -6
  118. package/dist/Radio/index.d.ts +1 -1
  119. package/dist/RadioList/index.d.ts +1 -1
  120. package/dist/Resizable/index.d.ts +1 -1
  121. package/dist/Resizable/index.js +1 -1
  122. package/dist/{Resizable-CXpvj1TZ.js → ResizeHandle-DYy0e3v9.js} +1 -1
  123. package/dist/ScrollableArea/index.d.ts +1 -1
  124. package/dist/SelectableCard/index.d.ts +1 -1
  125. package/dist/Selector/index.d.ts +1 -1
  126. package/dist/Selector/index.js +1 -1
  127. package/dist/{Selector-BpPnuWH3.js → Selector-5N-hq2nF.js} +3 -3
  128. package/dist/SideNav/index.d.ts +2 -2
  129. package/dist/SideNav/index.js +1 -1
  130. package/dist/{SideNav-D4TupqgE.js → SideNav-CT9lfspi.js} +225 -229
  131. package/dist/Stack/index.d.ts +1 -1
  132. package/dist/Stepper/index.js +1 -1
  133. package/dist/{Stepper-H-6-T5Ps.js → Stepper-BqhVCgC-.js} +1 -1
  134. package/dist/Switch/index.d.ts +1 -1
  135. package/dist/Table/index.js +1 -1
  136. package/dist/{Table-nqA_njNz.js → Table-CsdH8fCB.js} +4 -4
  137. package/dist/Text/index.d.ts +3 -3
  138. package/dist/Text/index.js +1 -1
  139. package/dist/Text-DIzZw6FA.js +86 -0
  140. package/dist/TextArea/index.d.ts +1 -1
  141. package/dist/TextInput/index.d.ts +1 -1
  142. package/dist/Theme/index.d.ts +3 -3
  143. package/dist/Theme/index.js +2 -2
  144. package/dist/Theme-CtaUWo4g.js +1246 -0
  145. package/dist/Thumbnail/index.js +1 -1
  146. package/dist/{Thumbnail-CXb3m_Hv.js → Thumbnail-BnQwX1cQ.js} +2 -2
  147. package/dist/{TimeField-B3cndWb0.js → TimeField-Biiuv0hB.js} +1 -1
  148. package/dist/TimeInput/index.d.ts +1 -1
  149. package/dist/TimeInput/index.js +1 -1
  150. package/dist/{TimeInput-BHQ_LKGm.js → TimeInput-C9gptCOK.js} +1 -1
  151. package/dist/Timer/index.d.ts +1 -1
  152. package/dist/Timer/index.js +1 -1
  153. package/dist/{Timer-B7GV6hqd.js → Timer-kxzQx3tp.js} +1 -1
  154. package/dist/Timestamp/index.d.ts +1 -1
  155. package/dist/Timestamp/index.js +1 -1
  156. package/dist/{Timestamp-Cfuxbb3i.js → Timestamp-D7bd_nF3.js} +2 -2
  157. package/dist/ToggleButton/index.d.ts +1 -1
  158. package/dist/Token/index.d.ts +1 -1
  159. package/dist/Token/index.js +1 -1
  160. package/dist/{Token-CdVLH0_H.js → Token-D2GsI_Ei.js} +1 -1
  161. package/dist/Tokenizer/index.js +1 -1
  162. package/dist/{Tokenizer-DlD-S_8-.js → Tokenizer-rwzamZg4.js} +3 -3
  163. package/dist/Toolbar/index.d.ts +1 -1
  164. package/dist/Tooltip/index.d.ts +1 -1
  165. package/dist/Tooltip/index.js +1 -1
  166. package/dist/{Tooltip-mp0NMh_Y.js → Tooltip-C2fh9anJ.js} +23 -8
  167. package/dist/TopNav/index.d.ts +1 -1
  168. package/dist/TopNav/index.js +1 -1
  169. package/dist/{TopNav-DzV874G7.js → TopNav-arWFLTBM.js} +112 -42
  170. package/dist/TreeList/index.js +1 -1
  171. package/dist/{TreeList-DEwvlZRV.js → TreeList-C9xvMpJZ.js} +1 -1
  172. package/dist/Typeahead/index.d.ts +2 -2
  173. package/dist/Typeahead/index.js +3 -2
  174. package/dist/Typeahead-_V11btpv.js +499 -0
  175. package/dist/{TypeaheadMenu-CGvo0Tud.js → TypeaheadMenu-BEObzonz.js} +46 -10
  176. package/dist/composables/index.d.ts +2 -2
  177. package/dist/composables/index.js +4 -4
  178. package/dist/composables-CWw6t-RJ.js +520 -0
  179. package/dist/{context-DmOLCubj.js → context-CPh7kE-a.js} +58 -10
  180. package/dist/{index-BRfR0lhb.d.ts → index-12QYAbiz.d.ts} +1 -1
  181. package/dist/{index-D1Twv_fL.d.ts → index-4TRnFGxv.d.ts} +6 -6
  182. package/dist/{index-BTAgQRP0.d.ts → index-B9rqmYxh.d.ts} +150 -62
  183. package/dist/index-BBtJt5_A.d.ts +26 -0
  184. package/dist/{index-Ch6BbxCP.d.ts → index-BH9PzQ1F.d.ts} +13 -8
  185. package/dist/{index-C2sfHfBw.d.ts → index-BK9T1TPZ.d.ts} +4 -4
  186. package/dist/{index-D_UEJIU5.d.ts → index-BPwD6aBv.d.ts} +1 -1
  187. package/dist/{index-B1x05arQ.d.ts → index-BlOIC_AM.d.ts} +1 -1
  188. package/dist/{index-C5p2NeCr.d.ts → index-Blm197N_.d.ts} +11 -2
  189. package/dist/{index-Bu3oXIIS.d.ts → index-BmmdzwT9.d.ts} +6 -0
  190. package/dist/{index-MPcg1Pm4.d.ts → index-BpH4wvsg.d.ts} +2 -2
  191. package/dist/{index-BMn9ghAX.d.ts → index-C1HIqW_H.d.ts} +2 -2
  192. package/dist/{index-LIyvJTW3.d.ts → index-C3GaPqvJ.d.ts} +84 -8
  193. package/dist/{index-DkVEBdWa.d.ts → index-CB9Srua5.d.ts} +1 -1
  194. package/dist/{index-C8wDPDcP.d.ts → index-CLmKfnqf.d.ts} +49 -7
  195. package/dist/{index-DMQG6kdM.d.ts → index-CPwzSbQQ.d.ts} +2 -2
  196. package/dist/{index-DAiGhkNZ.d.ts → index-D4I_obqR.d.ts} +1 -1
  197. package/dist/{index-foQMNKZO.d.ts → index-D5N9ikrS.d.ts} +48 -2
  198. package/dist/{index-D8o50qOE.d.ts → index-DFbvnBlf.d.ts} +31 -2
  199. package/dist/{index-Cm_TiLXU.d.ts → index-Dgg0bHVM.d.ts} +7 -3
  200. package/dist/{index-ViSV0RBx.d.ts → index-DjMwF8ET.d.ts} +11 -1
  201. package/dist/{index-nCEmW6wa.d.ts → index-DtePJ_w_.d.ts} +1 -1
  202. package/dist/index-DxR1FChm.d.ts +158 -0
  203. package/dist/{index-f4NGT-e2.d.ts → index-EFqQF2Bx.d.ts} +1 -1
  204. package/dist/{index-BB5yVIN-.d.ts → index-JL4auphT.d.ts} +2 -2
  205. package/dist/{index-B9f1rUEv.d.ts → index-XuAAcYiP.d.ts} +1 -1
  206. package/dist/{index-D0TlUOtG.d.ts → index-YmSe1ujk.d.ts} +76 -3
  207. package/dist/{index-BMrggCw-.d.ts → index-bvr3WHvs.d.ts} +1 -1
  208. package/dist/{index-CDDMDHJM.d.ts → index-c67ca7eJ.d.ts} +1 -1
  209. package/dist/{index-CGZ2xi3r.d.ts → index-eshFLli0.d.ts} +40 -3
  210. package/dist/{index-DxsKyAxq.d.ts → index-vizlhXVs.d.ts} +131 -2
  211. package/dist/{index-DfgHJE7H.d.ts → index-z3uLM1O6.d.ts} +153 -24
  212. package/dist/index.d.ts +80 -79
  213. package/dist/index.js +118 -115
  214. package/dist/locale/index.d.ts +2 -2
  215. package/dist/locale/index.js +3 -3
  216. package/dist/locale-sLw5Caia.js +917 -0
  217. package/dist/{searchResultMessage-DN0HeRRB.js → searchResultMessage-CCnq-_ce.js} +1 -1
  218. package/dist/syntaxTheme-CwVEcVDk.d.ts +57 -0
  219. package/dist/{syntaxTheme-ClpWALZX.js → syntaxTheme-R7xnu5x5.js} +24 -3
  220. package/dist/{types-Bt-lSgYX.d.ts → types-D9nP_X-c.d.ts} +14 -1
  221. package/dist/{types-CAZY4Xua.d.ts → types-DGYHIu4I.d.ts} +30 -1
  222. package/dist/types-D_J66aPN.d.ts +85 -0
  223. package/dist/types-gKsEkk2g.d.ts +320 -0
  224. package/dist/{useMenuDrillIn-OaEwjK44.js → useMenuDrillIn-BgjJcY3K.js} +1 -1
  225. package/dist/useMenuPress-DUmEy4TB.js +425 -0
  226. package/dist/{composables-DDI08XFF.js → useResizable-B3ahKLoZ.js} +73 -248
  227. package/dist/useTruncation-B5qXQzAP.js +53 -0
  228. package/locales/SOURCE.json +37 -0
  229. package/locales/af-ZA.json +1482 -0
  230. package/locales/ar-SA.json +1482 -0
  231. package/locales/ca-ES.json +1482 -0
  232. package/locales/cs-CZ.json +1482 -0
  233. package/locales/da-DK.json +1482 -0
  234. package/locales/de-DE.json +1482 -0
  235. package/locales/el-GR.json +1482 -0
  236. package/locales/en.json +1646 -0
  237. package/locales/es-ES.json +1482 -0
  238. package/locales/fi-FI.json +1482 -0
  239. package/locales/fr-FR.json +1482 -0
  240. package/locales/he-IL.json +1482 -0
  241. package/locales/hu-HU.json +1482 -0
  242. package/locales/it-IT.json +1482 -0
  243. package/locales/ja-JP.json +1482 -0
  244. package/locales/ko-KR.json +1482 -0
  245. package/locales/nl-NL.json +1482 -0
  246. package/locales/no-NO.json +1482 -0
  247. package/locales/pl-PL.json +1482 -0
  248. package/locales/pt-BR.json +1482 -0
  249. package/locales/pt-PT.json +1482 -0
  250. package/locales/ro-RO.json +1482 -0
  251. package/locales/ru-RU.json +1482 -0
  252. package/locales/sr-SP.json +1482 -0
  253. package/locales/sv-SE.json +1482 -0
  254. package/locales/tr-TR.json +1482 -0
  255. package/locales/uk-UA.json +1482 -0
  256. package/locales/vi-VN.json +1482 -0
  257. package/locales/zh-CN.json +1482 -0
  258. package/locales/zh-TW.json +1482 -0
  259. package/package.json +4 -2
  260. package/styles/bottom-sheet.css +27 -0
  261. package/styles/code.css +62 -0
  262. package/styles/container-reveal.css +104 -0
  263. package/styles/heading.css +47 -0
  264. package/styles/keyboard-hint.css +28 -0
  265. package/styles/link.css +34 -0
  266. package/styles/list.css +88 -1
  267. package/styles/markdown.css +12 -0
  268. package/styles/pagination.css +30 -0
  269. package/styles/progress-bar.css +49 -0
  270. package/styles/side-nav.css +36 -1
  271. package/styles/text.css +18 -0
  272. package/styles/top-nav.css +145 -6
  273. package/styles/typeahead.css +24 -0
  274. package/styles.css +2 -0
  275. package/dist/Heading-Dugosn6j.js +0 -43
  276. package/dist/Item-C1z6gXn8.js +0 -289
  277. package/dist/Link-DqdQZ37C.js +0 -141
  278. package/dist/Text-BHVghsWo.js +0 -53
  279. package/dist/Theme-CejS9MHm.js +0 -447
  280. package/dist/Typeahead-DQ3tmqYe.js +0 -375
  281. package/dist/index-Bqb_Fyju.d.ts +0 -80
  282. package/dist/index-Dg3ZmwEg.d.ts +0 -75
  283. package/dist/locale-CCwVnyMZ.js +0 -42
  284. package/dist/syntaxTheme-Bcs1YMF7.d.ts +0 -38
  285. package/dist/types-jmqqnkKA.d.ts +0 -163
  286. package/dist/useHotkeys-dABSK1o9.js +0 -80
  287. package/dist/useLongPress-Cyxwa73s.js +0 -60
  288. package/dist/{index-BXkNZF3q.d.ts → index-CpiWVbRZ.d.ts} +1 -1
@@ -36,14 +36,22 @@ interface TooltipProps {
36
36
  isOpen?: boolean;
37
37
  /** 挂载时是否默认显示。 */
38
38
  isDefaultOpen?: boolean;
39
+ /**
40
+ * 为 true 时不再包一层 span,默认插槽的根元素自己当触发器。
41
+ * 标题和段落不能放进 span。
42
+ * @default false
43
+ */
44
+ anchorsOnSelf?: boolean;
39
45
  }
40
46
  //#endregion
41
47
  //#region src/Tooltip/Tooltip.vue.d.ts
42
- declare var __VLS_1: {}, __VLS_9: {};
48
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_11: {};
43
49
  type __VLS_Slots = {} & {
44
50
  default?: (props: typeof __VLS_1) => any;
45
51
  } & {
46
- content?: (props: typeof __VLS_9) => any;
52
+ default?: (props: typeof __VLS_3) => any;
53
+ } & {
54
+ content?: (props: typeof __VLS_11) => any;
47
55
  };
48
56
  declare const __VLS_base: import("vue").DefineComponent<TooltipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
49
57
  openChange: (isOpen: boolean) => any;
@@ -61,6 +69,7 @@ declare const __VLS_base: import("vue").DefineComponent<TooltipProps, {}, {}, {}
61
69
  isEnabled: boolean;
62
70
  hasHoverIndication: boolean | "auto";
63
71
  isDefaultOpen: boolean;
72
+ anchorsOnSelf: boolean;
64
73
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
65
74
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
66
75
  declare const _default: typeof __VLS_export;
@@ -1,3 +1,4 @@
1
+ import { r as LinkRoot } from "./types-D_J66aPN.js";
1
2
  //#region src/Avatar/types.d.ts
2
3
  type AvatarNamedSize = 'xsm' | 'sm' | 'md' | 'lg' | 'xl';
3
4
  type AvatarNumericSize = 16 | 20 | 24 | 32 | 36 | 40 | 48 | 60 | 64 | 72 | 96 | 128 | 144 | 180;
@@ -36,6 +37,11 @@ interface AvatarProps {
36
37
  * When set, the avatar renders as a link.
37
38
  */
38
39
  href?: string;
40
+ /**
41
+ * Custom link component used when `href` is set. Receives `href` and `to`.
42
+ * Without `href`, the avatar stays a button or a span.
43
+ */
44
+ as?: LinkRoot;
39
45
  /**
40
46
  * HTML target for the link. Only applies when `href` is set.
41
47
  */
@@ -18,8 +18,8 @@ type __VLS_Slots$2 = {
18
18
  };
19
19
  declare const __VLS_base$2: import("vue").DefineComponent<StackProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StackProps> & Readonly<{}>, {
20
20
  as: StackElement;
21
- wrap: StackWrap;
22
21
  direction: StackDirection;
22
+ wrap: StackWrap;
23
23
  isScrollable: boolean;
24
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
25
  declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
@@ -35,8 +35,8 @@ type __VLS_Slots$1 = {
35
35
  default: () => unknown;
36
36
  };
37
37
  declare const __VLS_base$1: import("vue").DefineComponent<StackItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<StackItemProps> & Readonly<{}>, {
38
- as: StackElement;
39
38
  size: StackItemSize;
39
+ as: StackElement;
40
40
  isScrollable: boolean;
41
41
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
42
42
  declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
@@ -18,9 +18,9 @@ declare const __VLS_base: import("vue").DefineComponent<PopoverProps, {}, {}, {}
18
18
  isOpen: boolean;
19
19
  placement: LayerPlacement;
20
20
  alignment: LayerAlignment;
21
- hasAutoFocus: boolean;
22
- isEnabled: boolean;
23
21
  role: PopoverRole;
22
+ isEnabled: boolean;
23
+ hasAutoFocus: boolean;
24
24
  isModal: boolean;
25
25
  hasCloseButton: boolean;
26
26
  closeButtonLabel: string;
@@ -1,6 +1,7 @@
1
1
  import { t as PowerSearchMessages } from "./power-search-DrDfcoL1.js";
2
2
  import { ComputedRef, InjectionKey, MaybeRefOrGetter } from "vue";
3
3
  //#region src/locale/types.d.ts
4
+ /** 内置文案的两种语言。其他语言用 `loadAstryxCatalog` 接原版 JSON。 */
4
5
  type AstryxLocale = 'en' | 'zh-CN';
5
6
  //#endregion
6
7
  //#region src/locale/messages/calendar.d.ts
@@ -141,6 +142,12 @@ interface InputMessages {
141
142
  statusSuccess: string;
142
143
  }
143
144
  //#endregion
145
+ //#region src/locale/messages/keyboard-hint.d.ts
146
+ interface KeyboardHintMessages {
147
+ /** 方向键提示里,按键后面的那句说明。 */
148
+ navigate: string;
149
+ }
150
+ //#endregion
144
151
  //#region src/locale/messages/layout.d.ts
145
152
  interface LayoutMessages {
146
153
  skipToContent: string;
@@ -208,6 +215,8 @@ interface NavMessages {
208
215
  expandItem: (label: string) => string;
209
216
  collapseItem: (label: string) => string;
210
217
  submenu: (label: string) => string;
218
+ resizeSidebar: string;
219
+ opensInNewTab: string;
211
220
  }
212
221
  //#endregion
213
222
  //#region src/locale/messages/number-input.d.ts
@@ -235,6 +244,20 @@ interface PaginationMessages {
235
244
  compact: (page: number, totalPages: number) => string;
236
245
  /** compact 变体的「Page X of Y」。 */
237
246
  pageOf: (page: number, totalPages: number) => string;
247
+ /** 跳到第一页。 */
248
+ first: string;
249
+ /** 跳到最后一页。 */
250
+ last: string;
251
+ /** 一次后退多页时,上一页按钮的无障碍名。 */
252
+ previousBy: (step: number) => string;
253
+ /** 一次前进多页时,下一页按钮的无障碍名。 */
254
+ nextBy: (step: number) => string;
255
+ /** `input` 变体输入框前面的名词,例如 Page。 */
256
+ pageLabel: string;
257
+ /** 输入框自己的无障碍名。 */
258
+ goToPage: string;
259
+ /** 输入框后面的「/ 总页数」。 */
260
+ ofTotal: (totalPages: number) => string;
238
261
  }
239
262
  //#endregion
240
263
  //#region src/locale/messages/selector.d.ts
@@ -366,6 +389,7 @@ interface AstryxMessages {
366
389
  dropdownMenu: DropdownMenuMessages;
367
390
  fileInput: FileInputMessages;
368
391
  input: InputMessages;
392
+ keyboardHint: KeyboardHintMessages;
369
393
  layout: LayoutMessages;
370
394
  lightbox: LightboxMessages;
371
395
  markdown: MarkdownMessages;
@@ -389,14 +413,66 @@ interface AstryxMessages {
389
413
  }
390
414
  //#endregion
391
415
  //#region src/locale/context.d.ts
392
- declare const astryxLocaleKey: InjectionKey<MaybeRefOrGetter<AstryxLocale>>;
393
- declare function normalizeLocale(locale: string | null | undefined): AstryxLocale;
394
- declare function provideAstryxLocale(locale: MaybeRefOrGetter<string>): void;
395
- declare function useAstryxLocale(): ComputedRef<AstryxLocale>;
416
+ declare const astryxLocaleKey: InjectionKey<MaybeRefOrGetter<string>>;
417
+ declare const astryxMessagesKey: InjectionKey<MaybeRefOrGetter<AstryxMessages>>;
418
+ /**
419
+ * 把语言标签收成组件能用的写法。
420
+ * `en` 和 `en-*` 收成 `en`。`zh`、`zh-CN`、`zh-Hans` 收成 `zh-CN`。
421
+ * `zh-TW` 以及其他标签保留规范写法,用来接 `loadAstryxCatalog` 的结果。
422
+ * 空值和解析不了的标签回到 `en`。
423
+ */
424
+ declare function normalizeLocale(locale: string | null | undefined): string;
425
+ declare function provideAstryxLocale(locale: MaybeRefOrGetter<string>, messages?: MaybeRefOrGetter<AstryxMessages>): void;
426
+ declare function useAstryxLocale(): ComputedRef<string>;
396
427
  declare function useAstryxMessages(): ComputedRef<AstryxMessages>;
397
428
  //#endregion
398
429
  //#region src/locale/format.d.ts
399
- declare function formatCalendarMonth(year: number, month: number, locale: AstryxLocale): string;
400
- declare function weekdayNames(locale: AstryxLocale, style: 'long' | 'narrow'): string[];
401
- //#endregion
402
- export { provideAstryxLocale as a, AstryxMessages as c, normalizeLocale as i, AstryxLocale as l, weekdayNames as n, useAstryxLocale as o, astryxLocaleKey as r, useAstryxMessages as s, formatCalendarMonth as t };
430
+ declare function formatCalendarMonth(year: number, month: number, locale: string): string;
431
+ declare function weekdayNames(locale: string, style: 'long' | 'narrow' | 'short'): string[];
432
+ //#endregion
433
+ //#region src/locale/loadCatalog.d.ts
434
+ /** 原版 `locales/*.json` 里的一条。运行时目录也可以只给字符串。 */
435
+ type AstryxUpstreamMessage = string | {
436
+ defaultMessage: string;
437
+ description?: string;
438
+ };
439
+ /** 原版语言目录。键是 `@astryx.*`。 */
440
+ type AstryxUpstreamCatalog = Record<string, AstryxUpstreamMessage>;
441
+ type UnmappedUpstreamReason = 'no-slot' | 'invalid-entry' | 'unsupported-message' | 'placeholder-mismatch' | 'slot-taken';
442
+ interface UnmappedUpstreamEntry {
443
+ key: string;
444
+ /** 原句。解析不了时保留目录里的原文,不丢掉。 */
445
+ message: string;
446
+ reason: UnmappedUpstreamReason;
447
+ }
448
+ interface LoadedAstryxLocale {
449
+ locale: string;
450
+ messages: AstryxMessages;
451
+ /** 这份 JSON 里没有写进 `messages` 的键,原文在 `message`。 */
452
+ unmapped: readonly UnmappedUpstreamEntry[];
453
+ /** 映射表里有,但这份 JSON 没给的键。这些字段继续用英文。 */
454
+ missingKeys: readonly string[];
455
+ /** 没有任何原版键写进来、因此仍是英文的字段路径。 */
456
+ fallbackFields: readonly string[];
457
+ }
458
+ /**
459
+ * 把一份原版 Astryx locale JSON 映射成 `AstryxMessages`。
460
+ * 内置的 `en` 和 `zh-CN` 不会被改掉。返回值要交给 `provideAstryxLocale` 的第二个参数。
461
+ * `unmapped` 列出每一个没写进文案树的键。
462
+ */
463
+ declare function loadAstryxCatalog(locale: string, catalog: AstryxUpstreamCatalog): LoadedAstryxLocale;
464
+ //#endregion
465
+ //#region src/locale/useCollator.d.ts
466
+ /**
467
+ * 按当前语言比较字符串,对应原版的 `useCollator`。
468
+ * 没提供语言时用 `en`。`options` 用 ref 或 computed 包起来,变了才会重建比较器。
469
+ *
470
+ * @example
471
+ * ```ts
472
+ * const collator = useCollator({ numeric: true })
473
+ * items.sort((a, b) => collator.value.compare(a.name, b.name))
474
+ * ```
475
+ */
476
+ declare function useCollator(options?: MaybeRefOrGetter<Intl.CollatorOptions | undefined>): ComputedRef<Intl.Collator>;
477
+ //#endregion
478
+ export { AstryxLocale as _, UnmappedUpstreamEntry as a, formatCalendarMonth as c, astryxMessagesKey as d, normalizeLocale as f, AstryxMessages as g, useAstryxMessages as h, LoadedAstryxLocale as i, weekdayNames as l, useAstryxLocale as m, AstryxUpstreamCatalog as n, UnmappedUpstreamReason as o, provideAstryxLocale as p, AstryxUpstreamMessage as r, loadAstryxCatalog as s, useCollator as t, astryxLocaleKey as u };
@@ -26,8 +26,8 @@ declare const __VLS_base: import("vue").DefineComponent<NavItemProps, {}, {}, {}
26
26
  }>, {
27
27
  isSelected: boolean;
28
28
  isDisabled: boolean;
29
- isIconOnly: boolean;
30
29
  size: NavItemSize;
30
+ isIconOnly: boolean;
31
31
  block: boolean;
32
32
  plain: boolean;
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -45,6 +45,11 @@ interface BottomSheetProps {
45
45
  * heading to derive a name from.
46
46
  */
47
47
  label: string;
48
+ /**
49
+ * 放进 `BottomSheetSwitcher` 时的名字。切换器靠它决定哪一张是当前页。
50
+ * 单独使用时可以不传。
51
+ */
52
+ sheetId?: string;
48
53
  /**
49
54
  * Renders the panel in the document flow instead of a native `<dialog>`,
50
55
  * without a scrim, focus trap, or motion. Used to preview the surface inside
@@ -107,13 +112,13 @@ interface BottomSheetSlots {
107
112
  }
108
113
  //#endregion
109
114
  //#region src/BottomSheet/BottomSheet.vue.d.ts
110
- type __VLS_Props = BottomSheetProps;
111
- type __VLS_Slots = BottomSheetSlots;
112
- type __VLS_ModelProps = {
115
+ type __VLS_Props$1 = BottomSheetProps;
116
+ type __VLS_Slots$1 = BottomSheetSlots;
117
+ type __VLS_ModelProps$1 = {
113
118
  'isOpen'?: boolean;
114
119
  };
115
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
116
- declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
120
+ type __VLS_PublicProps$1 = __VLS_Props$1 & __VLS_ModelProps$1;
121
+ declare const __VLS_base$1: import("vue").DefineComponent<__VLS_PublicProps$1, {
117
122
  element: import("vue").ComputedRef<HTMLElement | null>;
118
123
  focus: (options?: FocusOptions) => void | undefined;
119
124
  blur: () => void | undefined;
@@ -123,7 +128,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
123
128
  motionStart: (motion: BottomSheetMotion) => any;
124
129
  motionComplete: (motion: BottomSheetMotion) => any;
125
130
  snap: (visibleHeight: number) => any;
126
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
131
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps$1> & Readonly<{
127
132
  onOpenChange?: ((isOpen: boolean) => any) | undefined;
128
133
  "onUpdate:isOpen"?: ((...args: unknown[]) => any) | undefined;
129
134
  onMotionStart?: ((motion: BottomSheetMotion) => any) | undefined;
@@ -138,6 +143,43 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
138
143
  hasScrim: boolean;
139
144
  finalFocusRef: import("vue").MaybeRef<HTMLElement | null>;
140
145
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
146
+ declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
147
+ declare const _default$1: typeof __VLS_export$1;
148
+ type __VLS_WithSlots$1<T, S> = T & {
149
+ new (): {
150
+ $slots: S;
151
+ };
152
+ };
153
+ //#endregion
154
+ //#region src/BottomSheet/BottomSheetSwitcher.vue.d.ts
155
+ type __VLS_Props = {
156
+ /** 整段流程的无障碍名。不传时用当前那张底栏的 `label`。 */
157
+ label?: string;
158
+ /**
159
+ * 整段流程怎么被关掉。不传时跟当前那张底栏的 `purpose` 走。
160
+ */
161
+ purpose?: BottomSheetPurpose;
162
+ /**
163
+ * 是否给整段流程一块遮罩。换页时遮罩留着,直到流程关掉。
164
+ * @default true
165
+ */
166
+ hasScrim?: boolean;
167
+ };
168
+ type __VLS_ModelProps = {
169
+ 'activeSheet'?: string | null;
170
+ };
171
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
172
+ declare var __VLS_1: {};
173
+ type __VLS_Slots = {} & {
174
+ default?: (props: typeof __VLS_1) => any;
175
+ };
176
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
177
+ "update:activeSheet": (value: string | null) => any;
178
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
179
+ "onUpdate:activeSheet"?: ((value: string | null) => any) | undefined;
180
+ }>, {
181
+ hasScrim: boolean;
182
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
141
183
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
142
184
  declare const _default: typeof __VLS_export;
143
185
  type __VLS_WithSlots<T, S> = T & {
@@ -146,4 +188,4 @@ type __VLS_WithSlots<T, S> = T & {
146
188
  };
147
189
  };
148
190
  //#endregion
149
- export { BottomSheetPadding as a, BottomSheetSlots as c, BottomSheetMotion as i, BottomSheetSnapPoint as l, BottomSheetEmits as n, BottomSheetProps as o, BottomSheetHeight as r, BottomSheetPurpose as s, _default as t, BottomSheetState as u };
191
+ export { BottomSheetMotion as a, BottomSheetPurpose as c, BottomSheetState as d, BottomSheetHeight as i, BottomSheetSlots as l, _default$1 as n, BottomSheetPadding as o, BottomSheetEmits as r, BottomSheetProps as s, _default as t, BottomSheetSnapPoint as u };
@@ -373,12 +373,12 @@ declare const __VLS_base: import("vue").DefineComponent<PowerSearchProps, {
373
373
  onFocus?: ((event: FocusEvent) => any) | undefined;
374
374
  "onUpdate:filters"?: ((filters: PowerSearchFilter[]) => any) | undefined;
375
375
  }>, {
376
- status: PowerSearchStatus;
377
376
  size: PowerSearchSize;
377
+ status: PowerSearchStatus;
378
378
  statusVariant: PowerSearchStatusVariant;
379
379
  disabled: boolean;
380
- labelHidden: boolean;
381
380
  clearable: boolean;
381
+ labelHidden: boolean;
382
382
  overflow: PowerSearchOverflow;
383
383
  readOnly: boolean;
384
384
  maxTokenLength: number;
@@ -47,8 +47,8 @@ declare const __VLS_export: import("vue").DefineComponent<NumberInputProps, {},
47
47
  onChange?: ((value: number | null) => any) | undefined;
48
48
  "onUpdate:modelValue"?: ((value: number | null) => any) | undefined;
49
49
  }>, {
50
- step: number;
51
50
  size: "sm" | "md" | "lg";
51
+ step: number;
52
52
  modelValue: number | null;
53
53
  placeholder: string;
54
54
  disabled: boolean;
@@ -1,4 +1,4 @@
1
- import { a as SyntaxTokenKey, i as SyntaxThemeTokens, n as SyntaxThemeDefinition } from "./syntaxTheme-Bcs1YMF7.js";
1
+ import { i as SyntaxThemeDefinition, o as SyntaxThemeTokens, s as SyntaxTokenKey } from "./syntaxTheme-CwVEcVDk.js";
2
2
  import "./useClipboard-CU-kfqeJ.js";
3
3
  import { ComputedRef, VNodeChild } from "vue";
4
4
  //#region src/Code/types.d.ts
@@ -96,6 +96,17 @@ interface CodeBlockProps {
96
96
  hasLineNumbers?: boolean;
97
97
  /** One-indexed line numbers to emphasize with an accent background. */
98
98
  highlightLines?: number[];
99
+ /**
100
+ * Paint the code as a unified diff over `language`.
101
+ *
102
+ * A line starting with `+` is added, `-` is removed, and `@@` is a hunk
103
+ * header. A `--- ` line directly followed by a `+++ ` line and then `@@`
104
+ * is a file header. The glyph sits in its own column. The rest of every
105
+ * line keeps this language's syntax colors. Copy still writes `code`,
106
+ * glyphs included. The header reads `diff`, or `<language> diff`.
107
+ * @default false
108
+ */
109
+ isDiff?: boolean;
99
110
  /**
100
111
  * Whether to show the copy button.
101
112
  * @default true
@@ -204,6 +215,7 @@ declare const __VLS_export$1: import("vue").DefineComponent<CodeBlockProps, {
204
215
  language: string;
205
216
  hasLanguageLabel: boolean;
206
217
  hasLineNumbers: boolean;
218
+ isDiff: boolean;
207
219
  hasCopyButton: boolean;
208
220
  isWrapped: boolean;
209
221
  isCollapsible: boolean;
@@ -215,6 +227,40 @@ declare const __VLS_export$1: import("vue").DefineComponent<CodeBlockProps, {
215
227
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
216
228
  declare const _default$1: typeof __VLS_export$1;
217
229
  //#endregion
230
+ //#region src/Code/diff.d.ts
231
+ /** How a unified-diff line reads: what it adds, removes, frames, or keeps. */
232
+ type DiffLineKind = 'added' | 'removed' | 'header' | 'context';
233
+ interface DiffLines {
234
+ kinds: DiffLineKind[];
235
+ glyphs: string[];
236
+ content: string[];
237
+ }
238
+ /**
239
+ * Read a fence info string the way a diff layer does.
240
+ * `diff` is the layer over plaintext. `diff-<lang>` is the layer over that
241
+ * language. Anything else, including `patch`, is just a language name.
242
+ */
243
+ declare function parseFenceLanguage(info: string | undefined): {
244
+ language: string;
245
+ isDiff: boolean;
246
+ };
247
+ /**
248
+ * Split a diff into the glyph column and the code the base language sees.
249
+ * Added, removed, and space-led context lines lose their first character.
250
+ * A context line with no leading space keeps all of it. Header lines
251
+ * contribute an empty line so token offsets stay per line; the renderer
252
+ * paints those rows from the original text.
253
+ */
254
+ declare function splitDiffLines(lines: readonly string[]): DiffLines;
255
+ /**
256
+ * Classify one line by its first character.
257
+ * `+` is added, `-` is removed, `@@` is a hunk header. A `--- ` line
258
+ * directly followed by a `+++ ` line and then an `@@` line is a file header
259
+ * wherever it occurs. Every other `---` or `+++` line is a change, so
260
+ * `---i;` is never mistaken for a header.
261
+ */
262
+ declare function diffLineKind(line: string, isFileHeader?: boolean): DiffLineKind;
263
+ //#endregion
218
264
  //#region src/Code/highlightRanges.d.ts
219
265
  /** Token types painted by the stylesheet, so they never need a generated rule. */
220
266
  declare const HIGHLIGHTED_TOKEN_TYPES: readonly ["keyword", "string", "comment", "number", "function", "type", "tag", "attribute", "property", "operator", "constant", "punctuation", "variable"];
@@ -306,4 +352,4 @@ interface UseSyntaxThemeReturn {
306
352
  */
307
353
  declare function useSyntaxTheme(): UseSyntaxThemeReturn | null;
308
354
  //#endregion
309
- export { CodeBlockTokenizer as A, applyHighlightRanges as C, CodeBlockEmits as D, CodeBlockContainer as E, CodeSlots as F, SyntaxToken as I, TokenLine as L, CodeHighlightMode as M, CodeProps as N, CodeBlockProps as O, CodeSize as P, HIGHLIGHTED_TOKEN_TYPES as S, _default$2 as T, oneDarkPro as _, tokenize as a, tokyoNight as b, allSyntaxPresets as c, darkSyntaxPresets as d, dracula as f, nord as g, monokai as h, flatTokensToLines as i, CodeColor as j, CodeBlockSize as k, catppuccinLatte as l, lightSyntaxPresets as m, useSyntaxTheme as n, tokenizeAsync as o, githubLight as p, SYNC_TOKENIZE_THRESHOLD as r, _default as s, UseSyntaxThemeReturn as t, catppuccinMocha as u, oneLight as v, _default$1 as w, tokyoNightLight as x, solarizedLight as y };
355
+ export { _default$2 as A, CodeSlots as B, applyHighlightRanges as C, parseFenceLanguage as D, diffLineKind as E, CodeBlockTokenizer as F, TokenLine as H, CodeColor as I, CodeHighlightMode as L, CodeBlockEmits as M, CodeBlockProps as N, splitDiffLines as O, CodeBlockSize as P, CodeProps as R, HIGHLIGHTED_TOKEN_TYPES as S, DiffLines as T, SyntaxToken as V, oneDarkPro as _, tokenize as a, tokyoNight as b, allSyntaxPresets as c, darkSyntaxPresets as d, dracula as f, nord as g, monokai as h, flatTokensToLines as i, CodeBlockContainer as j, _default$1 as k, catppuccinLatte as l, lightSyntaxPresets as m, useSyntaxTheme as n, tokenizeAsync as o, githubLight as p, SYNC_TOKENIZE_THRESHOLD as r, _default as s, UseSyntaxThemeReturn as t, catppuccinMocha as u, oneLight as v, DiffLineKind as w, tokyoNightLight as x, solarizedLight as y, CodeSize as z };
@@ -1,6 +1,6 @@
1
1
  //#region src/Pagination/types.d.ts
2
2
  /** 上一页和下一页之间显示什么。 */
3
- type PaginationVariant = 'pages' | 'count' | 'compact' | 'dots' | 'none';
3
+ type PaginationVariant = 'pages' | 'count' | 'compact' | 'dots' | 'input' | 'none';
4
4
  /** 控件尺寸。 */
5
5
  type PaginationSize = 'sm' | 'md';
6
6
  interface PaginationProps {
@@ -17,10 +17,37 @@ interface PaginationProps {
17
17
  /**
18
18
  * 中间区域的形态。
19
19
  * `pages` 是页码,`count` 是「起–止 / 总数」,`compact` 是「第几页 / 共几页」,
20
- * `dots` 是圆点,`none` 只留上一页和下一页。
20
+ * `dots` 是圆点,`input` 是可输入的页码,`none` 只留上一页和下一页。
21
21
  * @default 'pages'
22
22
  */
23
23
  variant?: PaginationVariant;
24
+ /**
25
+ * `pages` 形态下,当前页两侧各留几个页码。不传时宽容器是 1,窄容器会再收一档。
26
+ */
27
+ siblingCount?: number;
28
+ /**
29
+ * 上一页 / 下一页每次跳几页。越过边界时停在第一页或最后一页。
30
+ * @default 1
31
+ */
32
+ step?: number;
33
+ /**
34
+ * 总数还不知道时,后面是否还有内容。`total` 大于 0 时以总条目数为准,这个值不再生效。
35
+ */
36
+ hasMore?: boolean;
37
+ /**
38
+ * `input` 形态里,输入框前面的名词。不传时用当前语言的「Page」或「页」。
39
+ */
40
+ pageLabel?: string;
41
+ /**
42
+ * 是否在上一页 / 下一页外侧放跳到首尾的按钮。
43
+ * 不传时只在 `input` 形态、并且总页数已知时显示。
44
+ * `null` 和缺省是同一件事。布尔属性缺省会被当成 false,所以这里用 null 表示没指定。
45
+ */
46
+ hasFirstLast?: boolean | null;
47
+ /**
48
+ * 页码已经提交之后再跑的动作。控件会在它结束前标成忙碌,失败也不会把页码改回去。
49
+ */
50
+ changeAction?: (page: number) => void | Promise<void>;
24
51
  /**
25
52
  * 控件高度。
26
53
  * @default 'md'
@@ -68,10 +95,12 @@ declare const __VLS_base: import("vue").DefineComponent<PaginationProps, {}, {},
68
95
  }>, {
69
96
  variant: PaginationVariant;
70
97
  size: PaginationSize;
98
+ step: number;
71
99
  disabled: boolean;
72
100
  page: number;
73
101
  pageSize: number;
74
102
  total: number;
103
+ hasFirstLast: boolean | null;
75
104
  showSizeChanger: boolean;
76
105
  pageSizeOptions: number[];
77
106
  showTotal: boolean;
@@ -1,15 +1,19 @@
1
- import { i as TextProps, n as TextColor, o as TextType, r as TextDisplay, t as TextAs } from "./types-Bt-lSgYX.js";
1
+ import { a as TextProps, c as TextType, i as TextJustify, n as TextColor, r as TextDisplay, s as TextTruncateTooltip, t as TextAs } from "./types-D9nP_X-c.js";
2
2
  //#region src/Text/Text.vue.d.ts
3
- declare var __VLS_7: {};
3
+ declare var __VLS_13: {}, __VLS_21: {};
4
4
  type __VLS_Slots = {} & {
5
- default?: (props: typeof __VLS_7) => any;
5
+ default?: (props: typeof __VLS_13) => any;
6
+ } & {
7
+ default?: (props: typeof __VLS_21) => any;
6
8
  };
7
9
  declare const __VLS_base: import("vue").DefineComponent<TextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TextProps> & Readonly<{}>, {
8
10
  type: TextType;
9
11
  as: TextAs;
10
12
  color: TextColor;
11
13
  display: TextDisplay;
14
+ justify: TextJustify;
12
15
  maxLines: number;
16
+ hasTruncateTooltip: TextTruncateTooltip;
13
17
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
18
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
15
19
  declare const _default: typeof __VLS_export;
@@ -1,6 +1,11 @@
1
1
  //#region src/ProgressBar/types.d.ts
2
2
  type ProgressBarSize = 'sm' | 'md' | 'lg';
3
3
  type ProgressBarVariant = 'accent' | 'neutral' | 'success' | 'warning' | 'error' | 'info';
4
+ /** 轨道上的目标刻度。`value` 和进度条用同一把尺子,`label` 是无障碍名,也是悬停和聚焦时的提示。 */
5
+ interface ProgressBarMark {
6
+ value: number;
7
+ label: string;
8
+ }
4
9
  interface ProgressBarProps {
5
10
  value?: number;
6
11
  min?: number;
@@ -23,6 +28,11 @@ interface ProgressBarProps {
23
28
  valueText?: string;
24
29
  /** 用当前值和最大值生成数值文案,例如 `3.2 GB / 5 GB`。 */
25
30
  formatValueLabel?: (value: number, max: number) => string;
31
+ /**
32
+ * 轨道上的目标刻度。不确定进度时不画。
33
+ * 落在填充色里的刻度用填充色上的前景色,还在轨道上的用主要文字色。
34
+ */
35
+ marks?: readonly ProgressBarMark[];
26
36
  width?: number | string;
27
37
  }
28
38
  //#endregion
@@ -37,4 +47,4 @@ declare const __VLS_export: import("vue").DefineComponent<ProgressBarProps, {},
37
47
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
38
48
  declare const _default: typeof __VLS_export;
39
49
  //#endregion
40
- export { ProgressBarVariant as i, ProgressBarProps as n, ProgressBarSize as r, _default as t };
50
+ export { ProgressBarVariant as a, ProgressBarSize as i, ProgressBarMark as n, ProgressBarProps as r, _default as t };
@@ -36,8 +36,8 @@ declare const __VLS_base: import("vue").DefineComponent<ResizeHandleProps, {
36
36
  element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
37
37
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ResizeHandleProps> & Readonly<{}>, {
38
38
  isDisabled: boolean;
39
- position: ResizePosition;
40
39
  direction: ResizeDirection;
40
+ position: ResizePosition;
41
41
  isReversed: boolean;
42
42
  hasDivider: boolean;
43
43
  isAlwaysVisible: boolean;