@astryx-vue/core 0.2.3 → 0.2.4

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 (303) hide show
  1. package/THIRD_PARTY_NOTICES.md +2 -0
  2. package/dist/AlertDialog/index.js +1 -1
  3. package/dist/{AlertDialog-ovx4cBjM.js → AlertDialog-B6UeBCE7.js} +2 -2
  4. package/dist/AppShell/index.d.ts +1 -1
  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/Card/index.d.ts +1 -1
  25. package/dist/Carousel/index.js +1 -1
  26. package/dist/{Carousel-JA7ilqI_.js → Carousel-CIKrcA2r.js} +1 -1
  27. package/dist/Chat/index.d.ts +1 -1
  28. package/dist/Chat/index.js +1 -1
  29. package/dist/{Chat-C7WrCOE4.js → Chat-BFox3u9D.js} +1 -1
  30. package/dist/CheckboxInput/index.d.ts +1 -1
  31. package/dist/CheckboxList/index.d.ts +1 -1
  32. package/dist/CheckboxList/index.js +1 -1
  33. package/dist/{CheckboxList-CnCGnkZk.js → CheckboxList-BlPf7vPe.js} +4 -4
  34. package/dist/Citation/index.js +1 -1
  35. package/dist/{Citation-CtwrU33I.js → Citation-BG-vg9ia.js} +1 -1
  36. package/dist/ClickableCard/index.d.ts +1 -1
  37. package/dist/Code/index.d.ts +3 -3
  38. package/dist/Code/index.js +4 -4
  39. package/dist/{Code-BvefYRpx.js → Code-XnPuGxey.js} +1 -1
  40. package/dist/{CodeBlock-BZGzYeoL.js → CodeBlock-B2pnEOJY.js} +145 -15
  41. package/dist/Collapsible/index.d.ts +1 -1
  42. package/dist/CommandPalette/index.js +1 -1
  43. package/dist/{CommandPalette-BNbM9T9y.js → CommandPalette-DKgHzmJk.js} +10 -10
  44. package/dist/ComplexSelector/index.js +1 -1
  45. package/dist/{ComplexSelector-LtbLlrcj.js → ComplexSelector-Dv44FFhN.js} +1 -1
  46. package/dist/ContextMenu/index.d.ts +2 -2
  47. package/dist/ContextMenu/index.js +2 -2
  48. package/dist/{ContextMenu-DVQl0xL5.js → ContextMenu-BeJO5HYx.js} +4 -369
  49. package/dist/DateInput/index.d.ts +1 -1
  50. package/dist/DateInput/index.js +1 -1
  51. package/dist/{DateInput-zm8sNc0t.js → DateInput-D4XFAEMp.js} +3 -3
  52. package/dist/DateRangeInput/index.d.ts +1 -1
  53. package/dist/DateRangeInput/index.js +1 -1
  54. package/dist/{DateRangeInput-DlVFzrf7.js → DateRangeInput-Cp6AZfew.js} +2 -2
  55. package/dist/DateTimeInput/index.d.ts +1 -1
  56. package/dist/DateTimeInput/index.js +1 -1
  57. package/dist/{DateTimeInput-C7Z-p6Yd.js → DateTimeInput-B6MPPp76.js} +3 -3
  58. package/dist/Dialog/index.d.ts +1 -1
  59. package/dist/Divider/index.d.ts +1 -1
  60. package/dist/DropdownMenu/index.d.ts +2 -2
  61. package/dist/DropdownMenu/index.js +3 -3
  62. package/dist/{DropdownMenu-BoZChdev.js → DropdownMenu--lnUeJEG.js} +3 -3
  63. package/dist/{DropdownMenu-u1psFjis.js → DropdownMenu-6E9jFdFe.js} +4 -4
  64. package/dist/{DropdownMenuRadioItem.vue-uVM0FD2f.d.ts → DropdownMenuRadioItem.vue-CXEURBcq.d.ts} +1 -1
  65. package/dist/EmptyState/index.js +1 -1
  66. package/dist/{EmptyState-CUJdTYKV.js → EmptyState-0RWymQUS.js} +2 -2
  67. package/dist/FileInput/index.d.ts +1 -1
  68. package/dist/FileInput/index.js +1 -1
  69. package/dist/{FileInput-QdlZn7qK.js → FileInput-DuNwdbAo.js} +1 -1
  70. package/dist/Grid/index.d.ts +1 -1
  71. package/dist/Heading/index.d.ts +2 -2
  72. package/dist/Heading/index.js +1 -1
  73. package/dist/Heading-B9C3LZlS.js +94 -0
  74. package/dist/Indicator/index.d.ts +2 -2
  75. package/dist/InputGroup/index.d.ts +1 -1
  76. package/dist/Item-DrYJL1TG.js +590 -0
  77. package/dist/Lightbox/index.js +1 -1
  78. package/dist/{Lightbox-BSzfqZ-u.js → Lightbox-Br3o0SyQ.js} +1 -1
  79. package/dist/Link/index.d.ts +3 -2
  80. package/dist/Link/index.js +1 -1
  81. package/dist/Link-DCZ6922-.js +196 -0
  82. package/dist/List/index.d.ts +3 -3
  83. package/dist/List/index.js +2 -2
  84. package/dist/{ListItem-pGxvn6QJ.js → ListItem-CcRHWuEm.js} +8 -2
  85. package/dist/Markdown/index.d.ts +2 -2
  86. package/dist/Markdown/index.js +2 -2
  87. package/dist/{Markdown-B6tSqenv.js → Markdown-Bz0R3kNj.js} +274 -30
  88. package/dist/MetadataList/index.js +1 -1
  89. package/dist/{MetadataList-aN1tRn6W.js → MetadataList-CFaocx6j.js} +1 -1
  90. package/dist/MobileNav/index.js +1 -1
  91. package/dist/{MobileNavToggle-fqcSafkc.js → MobileNavToggle-Dh3uLivq.js} +1 -1
  92. package/dist/MoreMenu/index.d.ts +1 -1
  93. package/dist/MoreMenu/index.js +1 -1
  94. package/dist/{MoreMenu-B3brqdK_.js → MoreMenu-B95nRSe8.js} +2 -2
  95. package/dist/MultiSelector/index.d.ts +1 -1
  96. package/dist/MultiSelector/index.js +1 -1
  97. package/dist/{MultiSelector-BD5PMgez.js → MultiSelector-DuF5TECE.js} +4 -4
  98. package/dist/{NavDisclosure-DbYLDXK0.js → NavDisclosure-C6sPZ89n.js} +4 -1
  99. package/dist/NavHeadingSurface-Cb3x9iDx.js +287 -0
  100. package/dist/NavItem/index.d.ts +1 -1
  101. package/dist/NavMenu/index.d.ts +2 -2
  102. package/dist/NavMenu/index.js +4 -3
  103. package/dist/NavMenu-ClIgMaxE.js +176 -0
  104. package/dist/{NavMenuItem-DrwIMHKO.js → NavMenuItem-E7S8gBh-.js} +1 -1
  105. package/dist/NumberInput/index.d.ts +1 -1
  106. package/dist/NumberInput/index.js +1 -1
  107. package/dist/{NumberInput-CBeU4lEl.js → NumberInput-B4IL3s_8.js} +1 -1
  108. package/dist/Outline/index.js +1 -1
  109. package/dist/{Outline--HVMSB6i.js → Outline-DBUuchi9.js} +1 -1
  110. package/dist/OverflowList/index.d.ts +1 -1
  111. package/dist/OverflowList/index.js +1 -1
  112. package/dist/{OverflowList-FMh7r-r_.js → OverflowList-aDd_oem0.js} +3 -3
  113. package/dist/Pagination/index.d.ts +1 -1
  114. package/dist/Pagination/index.js +1 -1
  115. package/dist/{Pagination-DlIvESjx.js → Pagination-CNe9F6Fl.js} +181 -45
  116. package/dist/Popover/index.d.ts +1 -1
  117. package/dist/PowerSearch/index.d.ts +1 -1
  118. package/dist/PowerSearch/index.js +1 -1
  119. package/dist/{PowerSearch-CMG7Rb69.js → PowerSearch-C6U8Sq1Y.js} +13 -13
  120. package/dist/ProgressBar/index.d.ts +2 -2
  121. package/dist/ProgressBar/index.js +1 -1
  122. package/dist/{ProgressBar-DO9Chic6.js → ProgressBar-DF6WZNCI.js} +45 -6
  123. package/dist/Radio/index.d.ts +1 -1
  124. package/dist/RadioList/index.d.ts +1 -1
  125. package/dist/Resizable/index.js +1 -1
  126. package/dist/{Resizable-CXpvj1TZ.js → ResizeHandle-DYy0e3v9.js} +1 -1
  127. package/dist/ScrollableArea/index.d.ts +1 -1
  128. package/dist/SegmentedControl/index.d.ts +1 -1
  129. package/dist/SelectableCard/index.d.ts +1 -1
  130. package/dist/Selector/index.d.ts +1 -1
  131. package/dist/Selector/index.js +1 -1
  132. package/dist/{Selector-BpPnuWH3.js → Selector-5N-hq2nF.js} +3 -3
  133. package/dist/SideNav/index.d.ts +2 -2
  134. package/dist/SideNav/index.js +1 -1
  135. package/dist/{SideNav-D4TupqgE.js → SideNav-CT9lfspi.js} +225 -229
  136. package/dist/Stack/index.d.ts +1 -1
  137. package/dist/Stepper/index.d.ts +1 -1
  138. package/dist/Stepper/index.js +1 -1
  139. package/dist/{Stepper-H-6-T5Ps.js → Stepper-BqhVCgC-.js} +1 -1
  140. package/dist/Switch/index.d.ts +1 -1
  141. package/dist/TabList/index.d.ts +1 -1
  142. package/dist/Table/index.js +1 -1
  143. package/dist/{Table-nqA_njNz.js → Table-CsdH8fCB.js} +4 -4
  144. package/dist/Text/index.d.ts +3 -3
  145. package/dist/Text/index.js +1 -1
  146. package/dist/Text-DIzZw6FA.js +86 -0
  147. package/dist/TextArea/index.d.ts +1 -1
  148. package/dist/TextInput/index.d.ts +1 -1
  149. package/dist/Theme/index.d.ts +3 -3
  150. package/dist/Theme/index.js +2 -2
  151. package/dist/Theme-CtaUWo4g.js +1246 -0
  152. package/dist/Thumbnail/index.js +1 -1
  153. package/dist/{Thumbnail-CXb3m_Hv.js → Thumbnail-BnQwX1cQ.js} +2 -2
  154. package/dist/{TimeField-B3cndWb0.js → TimeField-Biiuv0hB.js} +1 -1
  155. package/dist/TimeInput/index.d.ts +1 -1
  156. package/dist/TimeInput/index.js +1 -1
  157. package/dist/{TimeInput-BHQ_LKGm.js → TimeInput-C9gptCOK.js} +1 -1
  158. package/dist/Timer/index.d.ts +1 -1
  159. package/dist/Timer/index.js +1 -1
  160. package/dist/{Timer-B7GV6hqd.js → Timer-kxzQx3tp.js} +1 -1
  161. package/dist/Timestamp/index.d.ts +1 -1
  162. package/dist/Timestamp/index.js +1 -1
  163. package/dist/{Timestamp-Cfuxbb3i.js → Timestamp-D7bd_nF3.js} +2 -2
  164. package/dist/ToggleButton/index.d.ts +1 -1
  165. package/dist/Token/index.d.ts +1 -1
  166. package/dist/Token/index.js +1 -1
  167. package/dist/{Token-CdVLH0_H.js → Token-D2GsI_Ei.js} +1 -1
  168. package/dist/Tokenizer/index.js +1 -1
  169. package/dist/{Tokenizer-DlD-S_8-.js → Tokenizer-rwzamZg4.js} +3 -3
  170. package/dist/Toolbar/index.d.ts +1 -1
  171. package/dist/Tooltip/index.d.ts +1 -1
  172. package/dist/Tooltip/index.js +1 -1
  173. package/dist/{Tooltip-mp0NMh_Y.js → Tooltip-C2fh9anJ.js} +23 -8
  174. package/dist/TopNav/index.d.ts +1 -1
  175. package/dist/TopNav/index.js +1 -1
  176. package/dist/{TopNav-DzV874G7.js → TopNav-arWFLTBM.js} +112 -42
  177. package/dist/TreeList/index.js +1 -1
  178. package/dist/{TreeList-DEwvlZRV.js → TreeList-C9xvMpJZ.js} +1 -1
  179. package/dist/Typeahead/index.d.ts +2 -2
  180. package/dist/Typeahead/index.js +3 -2
  181. package/dist/Typeahead-_V11btpv.js +499 -0
  182. package/dist/{TypeaheadMenu-CGvo0Tud.js → TypeaheadMenu-BEObzonz.js} +46 -10
  183. package/dist/composables/index.d.ts +2 -2
  184. package/dist/composables/index.js +4 -4
  185. package/dist/composables-CWw6t-RJ.js +520 -0
  186. package/dist/{context-DmOLCubj.js → context-CPh7kE-a.js} +58 -10
  187. package/dist/{index-BRfR0lhb.d.ts → index-12QYAbiz.d.ts} +1 -1
  188. package/dist/{index-DMQG6kdM.d.ts → index-6yB8BtEu.d.ts} +2 -2
  189. package/dist/{index-f4NGT-e2.d.ts → index-B4OOtNP8.d.ts} +3 -3
  190. package/dist/index-BBtJt5_A.d.ts +26 -0
  191. package/dist/{index-Ch6BbxCP.d.ts → index-BH9PzQ1F.d.ts} +13 -8
  192. package/dist/{index-MPcg1Pm4.d.ts → index-BKr7yvVv.d.ts} +1 -1
  193. package/dist/{index-D_UEJIU5.d.ts → index-BPwD6aBv.d.ts} +1 -1
  194. package/dist/{index-D1Twv_fL.d.ts → index-BcZI402h.d.ts} +4 -4
  195. package/dist/{index-C8wDPDcP.d.ts → index-Bi49IrAJ.d.ts} +50 -8
  196. package/dist/{index-B1x05arQ.d.ts → index-BlOIC_AM.d.ts} +1 -1
  197. package/dist/{index-C5p2NeCr.d.ts → index-Blm197N_.d.ts} +11 -2
  198. package/dist/{index-Bu3oXIIS.d.ts → index-BmmdzwT9.d.ts} +6 -0
  199. package/dist/{index-BMn9ghAX.d.ts → index-Bu0Zd1uw.d.ts} +3 -3
  200. package/dist/{index-Ctu32CLv.d.ts → index-BxhJqiZ7.d.ts} +2 -2
  201. package/dist/{index-CA6RbRWx.d.ts → index-By2mSzUA.d.ts} +1 -1
  202. package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
  203. package/dist/{index-LIyvJTW3.d.ts → index-C3GaPqvJ.d.ts} +84 -8
  204. package/dist/{index-DAiGhkNZ.d.ts → index-CFIXnk5D.d.ts} +1 -1
  205. package/dist/{index-ViSV0RBx.d.ts → index-CI9kyg74.d.ts} +12 -2
  206. package/dist/{index-C-QpeUlQ.d.ts → index-CNjbOgty.d.ts} +2 -2
  207. package/dist/{index-BB5yVIN-.d.ts → index-CUCcYKxl.d.ts} +3 -3
  208. package/dist/{index-Ca8VIE4l.d.ts → index-CVn0GBdB.d.ts} +1 -1
  209. package/dist/{index-xfkEuGLY.d.ts → index-CZeoAr0a.d.ts} +2 -2
  210. package/dist/{index-C2sfHfBw.d.ts → index-D-ezcKaY.d.ts} +3 -3
  211. package/dist/{index-BcJBLWJ0.d.ts → index-DA52oIdw.d.ts} +2 -2
  212. package/dist/{index-D7-WTV6I.d.ts → index-D_nYxnNv.d.ts} +1 -1
  213. package/dist/{index-Cm_TiLXU.d.ts → index-Dgg0bHVM.d.ts} +7 -3
  214. package/dist/index-DxR1FChm.d.ts +158 -0
  215. package/dist/{index-BTAgQRP0.d.ts → index-EtZgovdH.d.ts} +169 -81
  216. package/dist/{index-B9f1rUEv.d.ts → index-XuAAcYiP.d.ts} +1 -1
  217. package/dist/{index-D0TlUOtG.d.ts → index-YmSe1ujk.d.ts} +76 -3
  218. package/dist/{index-BMrggCw-.d.ts → index-bvr3WHvs.d.ts} +1 -1
  219. package/dist/{index-CDDMDHJM.d.ts → index-c67ca7eJ.d.ts} +1 -1
  220. package/dist/{index-D8o50qOE.d.ts → index-cL3q7O4R.d.ts} +32 -3
  221. package/dist/{index-CGZ2xi3r.d.ts → index-eshFLli0.d.ts} +40 -3
  222. package/dist/{index-DkVEBdWa.d.ts → index-fa72tWIU.d.ts} +2 -2
  223. package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
  224. package/dist/{index-foQMNKZO.d.ts → index-hCpxKePE.d.ts} +49 -3
  225. package/dist/{index-DxsKyAxq.d.ts → index-vizlhXVs.d.ts} +131 -2
  226. package/dist/{index-DfgHJE7H.d.ts → index-z3uLM1O6.d.ts} +153 -24
  227. package/dist/index.d.ts +81 -80
  228. package/dist/index.js +118 -115
  229. package/dist/locale/index.d.ts +2 -2
  230. package/dist/locale/index.js +3 -3
  231. package/dist/locale-sLw5Caia.js +917 -0
  232. package/dist/{searchResultMessage-DN0HeRRB.js → searchResultMessage-CCnq-_ce.js} +1 -1
  233. package/dist/syntaxTheme-CwVEcVDk.d.ts +57 -0
  234. package/dist/{syntaxTheme-ClpWALZX.js → syntaxTheme-R7xnu5x5.js} +24 -3
  235. package/dist/{types-Bt-lSgYX.d.ts → types-D9nP_X-c.d.ts} +14 -1
  236. package/dist/{types-CAZY4Xua.d.ts → types-DGYHIu4I.d.ts} +30 -1
  237. package/dist/types-D_J66aPN.d.ts +85 -0
  238. package/dist/types-gKsEkk2g.d.ts +320 -0
  239. package/dist/{useMenuDrillIn-OaEwjK44.js → useMenuDrillIn-BgjJcY3K.js} +1 -1
  240. package/dist/useMenuPress-DUmEy4TB.js +425 -0
  241. package/dist/{composables-DDI08XFF.js → useResizable-B3ahKLoZ.js} +73 -248
  242. package/dist/useTruncation-B5qXQzAP.js +53 -0
  243. package/locales/SOURCE.json +37 -0
  244. package/locales/af-ZA.json +1482 -0
  245. package/locales/ar-SA.json +1482 -0
  246. package/locales/ca-ES.json +1482 -0
  247. package/locales/cs-CZ.json +1482 -0
  248. package/locales/da-DK.json +1482 -0
  249. package/locales/de-DE.json +1482 -0
  250. package/locales/el-GR.json +1482 -0
  251. package/locales/en.json +1646 -0
  252. package/locales/es-ES.json +1482 -0
  253. package/locales/fi-FI.json +1482 -0
  254. package/locales/fr-FR.json +1482 -0
  255. package/locales/he-IL.json +1482 -0
  256. package/locales/hu-HU.json +1482 -0
  257. package/locales/it-IT.json +1482 -0
  258. package/locales/ja-JP.json +1482 -0
  259. package/locales/ko-KR.json +1482 -0
  260. package/locales/nl-NL.json +1482 -0
  261. package/locales/no-NO.json +1482 -0
  262. package/locales/pl-PL.json +1482 -0
  263. package/locales/pt-BR.json +1482 -0
  264. package/locales/pt-PT.json +1482 -0
  265. package/locales/ro-RO.json +1482 -0
  266. package/locales/ru-RU.json +1482 -0
  267. package/locales/sr-SP.json +1482 -0
  268. package/locales/sv-SE.json +1482 -0
  269. package/locales/tr-TR.json +1482 -0
  270. package/locales/uk-UA.json +1482 -0
  271. package/locales/vi-VN.json +1482 -0
  272. package/locales/zh-CN.json +1482 -0
  273. package/locales/zh-TW.json +1482 -0
  274. package/package.json +3 -1
  275. package/styles/bottom-sheet.css +27 -0
  276. package/styles/code.css +62 -0
  277. package/styles/container-reveal.css +104 -0
  278. package/styles/heading.css +47 -0
  279. package/styles/keyboard-hint.css +28 -0
  280. package/styles/link.css +34 -0
  281. package/styles/list.css +88 -1
  282. package/styles/markdown.css +12 -0
  283. package/styles/pagination.css +30 -0
  284. package/styles/progress-bar.css +49 -0
  285. package/styles/side-nav.css +36 -1
  286. package/styles/text.css +18 -0
  287. package/styles/top-nav.css +145 -6
  288. package/styles/typeahead.css +24 -0
  289. package/styles.css +2 -0
  290. package/dist/Heading-Dugosn6j.js +0 -43
  291. package/dist/Item-C1z6gXn8.js +0 -289
  292. package/dist/Link-DqdQZ37C.js +0 -141
  293. package/dist/Text-BHVghsWo.js +0 -53
  294. package/dist/Theme-CejS9MHm.js +0 -447
  295. package/dist/Typeahead-DQ3tmqYe.js +0 -375
  296. package/dist/index-Bqb_Fyju.d.ts +0 -80
  297. package/dist/index-Dg3ZmwEg.d.ts +0 -75
  298. package/dist/locale-CCwVnyMZ.js +0 -42
  299. package/dist/syntaxTheme-Bcs1YMF7.d.ts +0 -38
  300. package/dist/types-jmqqnkKA.d.ts +0 -163
  301. package/dist/useHotkeys-dABSK1o9.js +0 -80
  302. package/dist/useLongPress-Cyxwa73s.js +0 -60
  303. package/dist/{index-BXkNZF3q.d.ts → index-IdK2g5B4.d.ts} +2 -2
@@ -69,15 +69,50 @@ interface NavDisclosureSlots {
69
69
  focusRequest: NavMenuFocusRequest;
70
70
  }) => unknown;
71
71
  }
72
+ interface NavHeadingMenuProps {
73
+ /** 菜单的无障碍名称。标题没传时可以自己写。 */
74
+ label?: string;
75
+ /** 菜单宽度档,也会传给每一项的内边距。 @default 'md' */
76
+ size?: NavMenuSize;
77
+ /** 覆盖按档位算出的最小宽度。数字按像素。 */
78
+ minWidth?: number | string;
79
+ /** 键盘打开后聚焦第一项或最后一项。 */
80
+ focusRequest?: NavMenuFocusRequest;
81
+ }
82
+ interface NavHeadingMenuEmits {
83
+ close: [];
84
+ }
85
+ interface NavHeadingMenuItemProps {
86
+ /** 主文字。自定义内容用默认插槽,插槽优先。 */
87
+ label?: string;
88
+ /** 主文字下面的辅助说明。 */
89
+ description?: string;
90
+ /** 有地址时渲染成链接。 */
91
+ href?: string;
92
+ /** 链接根组件。 */
93
+ as?: NavLinkComponent;
94
+ /** 图标 CSS class。 */
95
+ iconClass?: string;
96
+ /** 禁用后不响应点击,方向键和首字母查找也会跳过。 @default false */
97
+ isDisabled?: boolean;
98
+ }
99
+ interface NavHeadingMenuItemEmits {
100
+ click: [event: MouseEvent];
101
+ }
102
+ interface NavHeadingMenuItemSlots {
103
+ /** 自定义主文字。有插槽时不再显示 `label`。 */
104
+ default?: () => unknown;
105
+ icon?: () => unknown;
106
+ }
72
107
  //#endregion
73
108
  //#region src/NavMenu/NavDisclosure.vue.d.ts
74
109
  type __VLS_Props = NavDisclosureProps;
75
- type __VLS_Slots$2 = NavDisclosureSlots;
110
+ type __VLS_Slots$4 = NavDisclosureSlots;
76
111
  type __VLS_ModelProps = {
77
112
  'isOpen'?: boolean;
78
113
  };
79
114
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
80
- declare const __VLS_base$2: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
115
+ declare const __VLS_base$4: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
81
116
  openChange: (isOpen: boolean) => any;
82
117
  "update:isOpen": (value: boolean) => any;
83
118
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
@@ -90,6 +125,44 @@ declare const __VLS_base$2: import("vue").DefineComponent<__VLS_PublicProps, {},
90
125
  hover: boolean;
91
126
  showDelay: number;
92
127
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
128
+ declare const __VLS_export$4: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
129
+ declare const _default$4: typeof __VLS_export$4;
130
+ type __VLS_WithSlots$4<T, S> = T & {
131
+ new (): {
132
+ $slots: S;
133
+ };
134
+ };
135
+ //#endregion
136
+ //#region src/NavMenu/NavHeadingMenu.vue.d.ts
137
+ declare var __VLS_1$1: {};
138
+ type __VLS_Slots$3 = {} & {
139
+ default?: (props: typeof __VLS_1$1) => any;
140
+ };
141
+ declare const __VLS_base$3: import("vue").DefineComponent<NavHeadingMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
142
+ close: () => any;
143
+ }, string, import("vue").PublicProps, Readonly<NavHeadingMenuProps> & Readonly<{
144
+ onClose?: (() => any) | undefined;
145
+ }>, {
146
+ size: NavMenuSize;
147
+ focusRequest: NavMenuFocusRequest;
148
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
149
+ declare const __VLS_export$3: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
150
+ declare const _default$3: typeof __VLS_export$3;
151
+ type __VLS_WithSlots$3<T, S> = T & {
152
+ new (): {
153
+ $slots: S;
154
+ };
155
+ };
156
+ //#endregion
157
+ //#region src/NavMenu/NavHeadingMenuItem.vue.d.ts
158
+ type __VLS_Slots$2 = NavHeadingMenuItemSlots;
159
+ declare const __VLS_base$2: import("vue").DefineComponent<NavHeadingMenuItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
160
+ click: (event: MouseEvent) => any;
161
+ }, string, import("vue").PublicProps, Readonly<NavHeadingMenuItemProps> & Readonly<{
162
+ onClick?: ((event: MouseEvent) => any) | undefined;
163
+ }>, {
164
+ isDisabled: boolean;
165
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
93
166
  declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
94
167
  declare const _default$2: typeof __VLS_export$2;
95
168
  type __VLS_WithSlots$2<T, S> = T & {
@@ -138,4 +211,4 @@ type __VLS_WithSlots<T, S> = T & {
138
211
  };
139
212
  };
140
213
  //#endregion
141
- export { NavMenuEmits as a, NavMenuProps as c, NavDisclosureProps as i, NavMenuFocusRequest as l, _default$1 as n, NavMenuItemEmits as o, _default$2 as r, NavMenuItemProps as s, _default as t, NavMenuSize as u };
214
+ export { _default$4 as a, NavHeadingMenuItemEmits as c, NavMenuEmits as d, NavMenuItemEmits as f, NavMenuSize as g, NavMenuFocusRequest as h, _default$3 as i, NavHeadingMenuItemProps as l, NavMenuProps as m, _default$1 as n, NavDisclosureProps as o, NavMenuItemProps as p, _default$2 as r, NavHeadingMenuEmits as s, _default as t, NavHeadingMenuProps as u };
@@ -1,4 +1,4 @@
1
- import { a as TextSize, n as TextColor, o as TextType, s as TextWeight } from "./types-Bt-lSgYX.js";
1
+ import { c as TextType, l as TextWeight, n as TextColor, o as TextSize } from "./types-D9nP_X-c.js";
2
2
  //#region src/Timer/format.d.ts
3
3
  type TimerFormat = 'elapsed' | 'clock';
4
4
  interface TimerPresentation {
@@ -142,8 +142,8 @@ type __VLS_Slots$1 = GridSlots;
142
142
  declare const __VLS_base$1: import("vue").DefineComponent<GridProps, {
143
143
  element: Readonly<import("vue").ShallowRef<HTMLDivElement | null>>;
144
144
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<GridProps> & Readonly<{}>, {
145
- align: GridAlignment;
146
145
  justify: GridAlignment;
146
+ align: GridAlignment;
147
147
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
148
148
  declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
149
149
  declare const _default$1: typeof __VLS_export$1;
@@ -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'
@@ -66,12 +93,14 @@ declare const __VLS_base: import("vue").DefineComponent<PaginationProps, {}, {},
66
93
  "onUpdate:page"?: ((value: number) => any) | undefined;
67
94
  "onUpdate:pageSize"?: ((value: number) => any) | undefined;
68
95
  }>, {
69
- variant: PaginationVariant;
70
96
  size: PaginationSize;
97
+ variant: PaginationVariant;
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;
@@ -4,6 +4,10 @@ type HeadingType = 'display-1' | 'display-2' | 'display-3' | 'body' | 'large' |
4
4
  type HeadingColor = 'primary' | 'secondary' | 'accent' | 'inherit';
5
5
  type HeadingWeight = 'regular' | 'medium' | 'semibold' | 'bold';
6
6
  type HeadingDisplay = 'block' | 'inline';
7
+ type HeadingWrap = 'wrap' | 'nowrap' | 'balance' | 'pretty';
8
+ type HeadingWordBreak = 'break-word' | 'break-all';
9
+ type HeadingJustify = 'start' | 'center' | 'end';
10
+ type HeadingTruncateTooltip = boolean | 'above' | 'below' | 'start' | 'end';
7
11
  interface HeadingProps {
8
12
  /**
9
13
  * Heading level (1-6). Determines the semantic HTML element (h1–h6).
@@ -27,22 +31,55 @@ interface HeadingProps {
27
31
  * @default 'block'
28
32
  */
29
33
  display?: HeadingDisplay;
34
+ /**
35
+ * Document outline level when it should differ from the visual `level`.
36
+ * The element stays `h{level}`; assistive technology reads this instead.
37
+ */
38
+ accessibilityLevel?: HeadingLevel;
39
+ /**
40
+ * CSS `text-wrap` behavior.
41
+ */
42
+ textWrap?: HeadingWrap;
43
+ /**
44
+ * How long unbroken strings break. Single-line truncation defaults to
45
+ * `break-all`; more than one line defaults to `break-word`.
46
+ */
47
+ wordBreak?: HeadingWordBreak;
48
+ /**
49
+ * Text alignment. `start` and `end` follow the writing direction.
50
+ * @default 'start'
51
+ */
52
+ justify?: HeadingJustify;
53
+ /**
54
+ * Draws a line through the text.
55
+ * @default false
56
+ */
57
+ hasStrikethrough?: boolean;
30
58
  /**
31
59
  * Maximum lines before truncation. 0 means no truncation.
32
60
  * @default 0
33
61
  */
34
62
  maxLines?: number;
63
+ /**
64
+ * 截断之后要不要把全文放进提示。`true` 出现在上方,方位字符串指定位置,`false` 关掉。
65
+ * @default true
66
+ */
67
+ hasTruncateTooltip?: HeadingTruncateTooltip;
35
68
  }
36
69
  //#endregion
37
70
  //#region src/Heading/Heading.vue.d.ts
38
- declare var __VLS_7: {};
71
+ declare var __VLS_13: {}, __VLS_21: {};
39
72
  type __VLS_Slots = {} & {
40
- default?: (props: typeof __VLS_7) => any;
73
+ default?: (props: typeof __VLS_13) => any;
74
+ } & {
75
+ default?: (props: typeof __VLS_21) => any;
41
76
  };
42
77
  declare const __VLS_base: import("vue").DefineComponent<HeadingProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<HeadingProps> & Readonly<{}>, {
43
78
  color: HeadingColor;
44
79
  display: HeadingDisplay;
80
+ justify: HeadingJustify;
45
81
  maxLines: number;
82
+ hasTruncateTooltip: HeadingTruncateTooltip;
46
83
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
47
84
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
48
85
  declare const _default: typeof __VLS_export;
@@ -52,4 +89,4 @@ type __VLS_WithSlots<T, S> = T & {
52
89
  };
53
90
  };
54
91
  //#endregion
55
- export { HeadingProps as a, HeadingLevel as i, HeadingColor as n, HeadingType as o, HeadingDisplay as r, HeadingWeight as s, _default as t };
92
+ export { HeadingLevel as a, HeadingType as c, HeadingWrap as d, HeadingJustify as i, HeadingWeight as l, HeadingColor as n, HeadingProps as o, HeadingDisplay as r, HeadingTruncateTooltip as s, _default as t, HeadingWordBreak as u };
@@ -24,10 +24,10 @@ declare const __VLS_base: import("vue").DefineComponent<NavItemProps, {}, {}, {}
24
24
  }, string, import("vue").PublicProps, Readonly<NavItemProps> & Readonly<{
25
25
  onClick?: ((event: MouseEvent) => any) | undefined;
26
26
  }>, {
27
- isSelected: boolean;
27
+ size: NavItemSize;
28
28
  isDisabled: boolean;
29
29
  isIconOnly: boolean;
30
- size: NavItemSize;
30
+ isSelected: boolean;
31
31
  block: boolean;
32
32
  plain: boolean;
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -125,8 +125,8 @@ declare const __VLS_base$1: import("vue").DefineComponent<__VLS_PublicProps, {
125
125
  onChange?: ((value: string) => any) | undefined;
126
126
  "onUpdate:modelValue"?: ((...args: unknown[]) => any) | undefined;
127
127
  }>, {
128
- isDisabled: boolean;
129
128
  size: SegmentedControlSize;
129
+ isDisabled: boolean;
130
130
  layout: SegmentedControlLayout;
131
131
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
132
132
  declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
@@ -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
@@ -198,12 +209,13 @@ declare const __VLS_export$1: import("vue").DefineComponent<CodeBlockProps, {
198
209
  }, string, import("vue").PublicProps, Readonly<CodeBlockProps> & Readonly<{
199
210
  onCopy?: (() => any) | undefined;
200
211
  }>, {
201
- width: string;
202
212
  size: CodeBlockSize;
213
+ width: string;
203
214
  container: CodeBlockContainer;
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,7 +1,7 @@
1
1
  import "./useAsyncSource-xpQovjV_.js";
2
2
  import "./useClipboard-CU-kfqeJ.js";
3
3
  import "./useResizable-CUoNPmUw.js";
4
- import { CSSProperties, ComputedRef, InjectionKey, MaybeRefOrGetter, Ref } from "vue";
4
+ import { CSSProperties, Component, ComputedRef, InjectionKey, MaybeRefOrGetter, Ref } from "vue";
5
5
  import { CalendarDate } from "@internationalized/date";
6
6
  //#region src/composables/useDateRange.d.ts
7
7
  interface ISODateRange {
@@ -245,6 +245,47 @@ interface Combobox<T = string | number> {
245
245
  */
246
246
  declare function useCombobox<T = string | number>(options: UseComboboxOptions<T>): Combobox<T>;
247
247
  //#endregion
248
+ //#region src/composables/useContainerReveal.d.ts
249
+ interface UseContainerRevealOptions {
250
+ /**
251
+ * 为 false 时什么样式都不加,里面的内容一直可见。
252
+ * 每次调用都会重新读,所以可以随组件自己的开关变。
253
+ */
254
+ isEnabled?: MaybeRefOrGetter<boolean>;
255
+ }
256
+ interface ContainerRevealOptions {
257
+ /**
258
+ * 指针必须停这么多毫秒,悬停揭示才开始。键盘和粗指针不等待。
259
+ */
260
+ hoverDelay?: number;
261
+ /**
262
+ * 把容器钉在揭示或收起。`inactive` 仍让键盘焦点和粗指针看见内容。
263
+ */
264
+ forceState?: 'active' | 'inactive';
265
+ }
266
+ interface ContentRevealOptions {
267
+ /** 反过来:平时可见,悬停时藏起。只影响指针,键盘和触摸仍看得到。 */
268
+ isRevealInverted?: boolean;
269
+ /** 藏起时仍占位,避免布局跳动。 */
270
+ isLayoutPreserved?: boolean;
271
+ /** 这一块自己的可见性,不跟容器走。`hidden` 在焦点进来时仍会露出。 */
272
+ forceVisibility?: 'shown' | 'hidden';
273
+ }
274
+ /**
275
+ * 悬停或键盘焦点时才露出行内操作。状态写在容器的自定义属性上,
276
+ * 嵌套容器会盖住外层,所以两层不会串。内容用透明度和定位藏起,不从无障碍树里拿掉。
277
+ */
278
+ interface UseContainerReveal {
279
+ containerProps: (reveal?: ContainerRevealOptions) => {
280
+ class?: string | Record<string, boolean>;
281
+ style?: CSSProperties;
282
+ };
283
+ contentProps: (reveal?: ContentRevealOptions) => {
284
+ class?: string | Record<string, boolean>;
285
+ };
286
+ }
287
+ declare function useContainerReveal(options?: UseContainerRevealOptions): UseContainerReveal;
288
+ //#endregion
248
289
  //#region src/composables/useControllableState.d.ts
249
290
  interface UseControllableStateOptions<T> {
250
291
  /**
@@ -492,6 +533,63 @@ interface Hotkey {
492
533
  */
493
534
  declare function useHotkeys(hotkeys: MaybeRefOrGetter<readonly Hotkey[]>): void;
494
535
  //#endregion
536
+ //#region src/composables/useImageMode.d.ts
537
+ interface ImageSampleRegion {
538
+ /** 左边缘,0 是左,1 是右。 */
539
+ x: number;
540
+ /** 上边缘,0 是上,1 是下。 */
541
+ y: number;
542
+ /** 宽度占整张图的比例。 */
543
+ width: number;
544
+ /** 高度占整张图的比例。 */
545
+ height: number;
546
+ }
547
+ interface UseImageModeOptions {
548
+ /** 只采样这一块。不传时用整张图。坐标都是 0 到 1。 */
549
+ region?: ImageSampleRegion;
550
+ /** 低于这个亮度算暗,高于算亮。 */
551
+ threshold?: number;
552
+ /** 还在加载,或者读图失败时返回的值。 */
553
+ fallback?: 'dark' | 'light' | null;
554
+ }
555
+ /**
556
+ * APCA 感知亮度。先把 sRGB 按 2.4 线性化,再用接近 BT.709 的系数合成,
557
+ * 最后做 0.56 次方,让 0.5 接近视觉上的中灰。饱和色比简单的伽马亮度更准。
558
+ */
559
+ declare function perceptualLightness(r: number, g: number, b: number): number;
560
+ /** 一组采样像素的平均亮度,再和阈值比出深浅。 */
561
+ declare function imageModeFromPixels(pixels: Uint8ClampedArray, threshold?: number): 'dark' | 'light';
562
+ /**
563
+ * 按图片亮度判断该用深色还是浅色前景。采样走 OffscreenCanvas,不往页面上画。
564
+ * 跨域或网络失败时返回 `fallback`。
565
+ */
566
+ declare function useImageMode(src: MaybeRefOrGetter<string | null | undefined>, options?: MaybeRefOrGetter<UseImageModeOptions>): Ref<'dark' | 'light' | null>;
567
+ //#endregion
568
+ //#region src/composables/useKeyboardHint.d.ts
569
+ type KeyboardHintOrientation = 'horizontal' | 'vertical' | 'both';
570
+ interface UseKeyboardHintOptions {
571
+ /** 提示里画哪些方向键。 */
572
+ orientation?: KeyboardHintOrientation;
573
+ /** 出现之后多久自己消失,单位毫秒。 */
574
+ dismissAfterMs?: number;
575
+ /** 为 false 时这个实例不再提示。 */
576
+ isEnabled?: boolean;
577
+ }
578
+ interface UseKeyboardHint {
579
+ visible: Ref<boolean>;
580
+ anchor: Ref<HTMLElement | null>;
581
+ orientation: ComputedRef<KeyboardHintOrientation>;
582
+ onFocus: (event: FocusEvent) => void;
583
+ onBlur: (event: FocusEvent) => void;
584
+ onKeyDown: (event: KeyboardEvent) => void;
585
+ Hint: Component;
586
+ }
587
+ /**
588
+ * 一组方向键控件第一次被键盘点进来时,在当前项旁边短暂提示「用方向键移动」。
589
+ * 按过方向键、超时或焦点离开之后不再出现。
590
+ */
591
+ declare function useKeyboardHint(options?: UseKeyboardHintOptions): UseKeyboardHint;
592
+ //#endregion
495
593
  //#region src/composables/useListFocus.d.ts
496
594
  /**
497
595
  * 一维列表的方向。
@@ -614,6 +712,37 @@ declare function useLongPress(options: LongPressOptions): LongPressHandlers;
614
712
  */
615
713
  declare function useMediaQuery(query: string): Ref<boolean>;
616
714
  //#endregion
715
+ //#region src/ContextMenu/useMenuPress.d.ts
716
+ /** Forget an armed swallower. Called when a surface unmounts and in tests. */
717
+ declare function resetMenuPress(): void;
718
+ interface MenuPressOptions {
719
+ /** The element carrying `role="menu"` for this level. */
720
+ menuRef: Ref<HTMLElement | null>;
721
+ /** Whether the surface carries the press model right now. */
722
+ isEnabled: () => boolean;
723
+ /** A mouse press that began inside the menu was released outside it. */
724
+ onDismiss: () => void;
725
+ }
726
+ interface MenuPress {
727
+ /** Attach to the menu root's `pointerdown`. */
728
+ onPointerDown: (event: PointerEvent) => void;
729
+ }
730
+ /**
731
+ * The press model of a painted menu surface.
732
+ *
733
+ * A finger's pointer events stay with the element it landed on, so the gesture
734
+ * is tracked at the document level by `pointerId`:
735
+ *
736
+ * - The highlight follows the finger.
737
+ * - The row under the RELEASE acts, the way its own click would, carrying the
738
+ * release's modifiers; the browser's own click for that gesture is swallowed
739
+ * so the row never acts twice.
740
+ * - A finger released outside leaves the menu open; a mouse released outside
741
+ * dismisses it.
742
+ * - `pointercancel` and a second pointer end the gesture with nothing acting.
743
+ */
744
+ declare function useMenuPress(options: MenuPressOptions): MenuPress;
745
+ //#endregion
617
746
  //#region src/composables/useMonthGrid.d.ts
618
747
  declare function toISODate(date: CalendarDate): string;
619
748
  declare function parseISODate(value: string): CalendarDate;
@@ -884,4 +1013,4 @@ interface UseTypeaheadReturn {
884
1013
  */
885
1014
  declare function useTypeahead(options: UseTypeaheadOptions): UseTypeaheadReturn;
886
1015
  //#endregion
887
- export { UseGridRovingFocusOptions as $, AppShellMobile as $t, computeOverflow as A, parseISOTime as At, useMediaQuery as B, useCoarsePointer as Bt, useRestoreFocus as C, NativePicker as Ct, ComputeOverflowResult as D, formatISOTime as Dt, ComputeOverflowInput as E, formatDisplayTime as Et, addMonths as F, useControllableState as Ft, ListFocusOrientation as G, ChatScrollToBottomOptions as Gt, LongPressOptions as H, INTERACTIVE_SELECTORS as Ht, buildMonthGrid as I, Combobox as It, Hotkey as J, useChatStreamScroll as Jt, UseListFocusOptions as K, UseChatStreamScrollOptions as Kt, parseISODate as L, ComboboxOption as Lt, NumberField as M, shiftTime as Mt, UseNumberFieldOptions as N, ControllableState as Nt, UseOverflowOptions as O, isTimeInRange as Ot, useNumberField as P, UseControllableStateOptions as Pt, GridRovingFocus as Q, useChatNewMessages as Qt, toISODate as R, UseComboboxOptions as Rt, UseRestoreFocusOptions as S, ISOTimeString as St, usePendingChange as T, TimePresentation as Tt, useLongPress as U, UseClickableContainerOptions as Ut, LongPressHandlers as V, ClickableContainerHandlers as Vt, ListFocus as W, useClickableContainer as Wt, HandleRef as X, UseChatNewMessagesOptions as Xt, useHotkeys as Y, CHAT_MESSAGE_CLASS as Yt, useHandleRef as Z, UseChatNewMessagesReturn as Zt, ScrollableAreaState as _, DatePresentation as _t, UseStreamingTextOptions as a, ISODateRange as an, FileSelectionOptions as at, useScrollableArea as b, resolveDateSurface as bt, ScrollOverflowState as c, applyRangeClick as cn, selectFiles as ct, useScrollLock as d, isDayOutsideSpan as dn, useFieldControlState as dt, appShellMobileKey as en, useGridRovingFocus as et, ScrollAxis as f, isRangeWithinSpan as fn, UseDismissOptions as ft, ScrollStickyContainment as g, spanDays as gn, useDisclosureHandle as gt, ScrollRole as h, resolveWeekStart as hn, DisclosureHandleRef as ht, StreamingTextSpeed as i, useAnnounce as in, FileRejection as it, useOverflow as j, resolveTimeSurface as jt, UseOverflowReturn as k, parseDisplayTime as kt, UseScrollOverflowResult as l, compareISODate as ln, FieldControlState as lt, ScrollOverscroll as m, orderRange as mn, DisclosureHandle as mt, UseTypeaheadReturn as n, AnnounceFn as nn, UseFocusTrapOptions as nt, snapToGraphemeBoundary as o, RangeClickResult as on, FileSelectionResult as ot, ScrollAxisState as p, isSameRange as pn, useDismiss as pt, useListFocus as q, UseChatStreamScrollReturn as qt, useTypeahead as r, AnnouncePoliteness as rn, useFocusTrap as rt, useStreamingText as s, WeekStartsOn as sn, formatFileSize as st, UseTypeaheadOptions as t, useAppShellMobile as tn, FocusTrap as tt, useScrollOverflow as u, formatDateRange as un, FieldControlStateInput as ut, UseScrollableAreaOptions as v, DateSurface as vt, PendingChange as w, ParsedTime as wt, RestoreFocus as x, HourFormat as xt, UseScrollableAreaResult as y, resolveDatePresentation as yt, todayISODate as z, useCombobox as zt };
1016
+ export { UseKeyboardHint as $, useContainerReveal as $t, computeOverflow as A, isRangeWithinSpan as An, DatePresentation as At, MenuPress as B, formatISOTime as Bt, useRestoreFocus as C, ISODateRange as Cn, FieldControlStateInput as Ct, ComputeOverflowResult as D, compareISODate as Dn, DisclosureHandle as Dt, ComputeOverflowInput as E, applyRangeClick as En, useDismiss as Et, addMonths as F, ISOTimeString as Ft, LongPressHandlers as G, shiftTime as Gt, resetMenuPress as H, parseDisplayTime as Ht, buildMonthGrid as I, NativePicker as It, ListFocus as J, useControllableState as Jt, LongPressOptions as K, ControllableState as Kt, parseISODate as L, ParsedTime as Lt, NumberField as M, orderRange as Mn, resolveDatePresentation as Mt, UseNumberFieldOptions as N, resolveWeekStart as Nn, resolveDateSurface as Nt, UseOverflowOptions as O, formatDateRange as On, DisclosureHandleRef as Ot, useNumberField as P, spanDays as Pn, HourFormat as Pt, KeyboardHintOrientation as Q, UseContainerRevealOptions as Qt, toISODate as R, TimePresentation as Rt, UseRestoreFocusOptions as S, useAnnounce as Sn, FieldControlState as St, usePendingChange as T, WeekStartsOn as Tn, UseDismissOptions as Tt, useMenuPress as U, parseISOTime as Ut, MenuPressOptions as V, isTimeInRange as Vt, useMediaQuery as W, resolveTimeSurface as Wt, UseListFocusOptions as X, ContentRevealOptions as Xt, ListFocusOrientation as Y, ContainerRevealOptions as Yt, useListFocus as Z, UseContainerReveal as Zt, ScrollableAreaState as _, AppShellMobile as _n, FileRejection as _t, UseStreamingTextOptions as a, ClickableContainerHandlers as an, perceptualLightness as at, useScrollableArea as b, AnnounceFn as bn, formatFileSize as bt, ScrollOverflowState as c, useClickableContainer as cn, useHotkeys as ct, useScrollLock as d, UseChatStreamScrollReturn as dn, GridRovingFocus as dt, Combobox as en, UseKeyboardHintOptions as et, ScrollAxis as f, useChatStreamScroll as fn, UseGridRovingFocusOptions as ft, ScrollStickyContainment as g, useChatNewMessages as gn, useFocusTrap as gt, ScrollRole as h, UseChatNewMessagesReturn as hn, UseFocusTrapOptions as ht, StreamingTextSpeed as i, useCoarsePointer as in, imageModeFromPixels as it, useOverflow as j, isSameRange as jn, DateSurface as jt, UseOverflowReturn as k, isDayOutsideSpan as kn, useDisclosureHandle as kt, UseScrollOverflowResult as l, ChatScrollToBottomOptions as ln, HandleRef as lt, ScrollOverscroll as m, UseChatNewMessagesOptions as mn, FocusTrap as mt, UseTypeaheadReturn as n, UseComboboxOptions as nn, ImageSampleRegion as nt, snapToGraphemeBoundary as o, INTERACTIVE_SELECTORS as on, useImageMode as ot, ScrollAxisState as p, CHAT_MESSAGE_CLASS as pn, useGridRovingFocus as pt, useLongPress as q, UseControllableStateOptions as qt, useTypeahead as r, useCombobox as rn, UseImageModeOptions as rt, useStreamingText as s, UseClickableContainerOptions as sn, Hotkey as st, UseTypeaheadOptions as t, ComboboxOption as tn, useKeyboardHint as tt, useScrollOverflow as u, UseChatStreamScrollOptions as un, useHandleRef as ut, UseScrollableAreaOptions as v, appShellMobileKey as vn, FileSelectionOptions as vt, PendingChange as w, RangeClickResult as wn, useFieldControlState as wt, RestoreFocus as x, AnnouncePoliteness as xn, selectFiles as xt, UseScrollableAreaResult as y, useAppShellMobile as yn, FileSelectionResult as yt, todayISODate as z, formatDisplayTime as zt };