@astryx-vue/core 0.2.2 → 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 (347) hide show
  1. package/THIRD_PARTY_NOTICES.md +4 -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.js +1 -1
  5. package/dist/{AppShell-Cb41gIAj.js → AppShell-CeBmB0Q9.js} +2 -2
  6. package/dist/Avatar/index.d.ts +1 -1
  7. package/dist/Avatar/index.js +1 -1
  8. package/dist/{Avatar-jmHInHwj.js → Avatar-BB4Z4LF1.js} +10 -4
  9. package/dist/AvatarGroup/index.d.ts +1 -1
  10. package/dist/Banner/index.d.ts +1 -1
  11. package/dist/BottomSheet/index.d.ts +2 -2
  12. package/dist/BottomSheet/index.js +3 -2
  13. package/dist/{BottomSheet-Dg95HB1s.js → BottomSheet-BV6vfgGu.js} +82 -22
  14. package/dist/BottomSheet-o7xw-TOi.js +153 -0
  15. package/dist/Breadcrumbs/index.d.ts +3 -2
  16. package/dist/Breadcrumbs/index.js +3 -2
  17. package/dist/{Breadcrumbs-CTQ7fjDn.js → Breadcrumbs-D6G7f5WL.js} +13 -8
  18. package/dist/Button/index.d.ts +1 -1
  19. package/dist/ButtonGroup/index.d.ts +1 -1
  20. package/dist/Calendar/index.d.ts +2 -2
  21. package/dist/Calendar/index.js +1 -1
  22. package/dist/Calendar-DmTeM7PO.js +656 -0
  23. package/dist/Carousel/index.js +1 -1
  24. package/dist/{Carousel-X0cuQkvg.js → Carousel-CIKrcA2r.js} +2 -2
  25. package/dist/Chat/index.d.ts +1 -1
  26. package/dist/Chat/index.js +1 -1
  27. package/dist/{Chat-M0tiGrNT.js → Chat-BFox3u9D.js} +3 -3
  28. package/dist/CheckboxIndicator/index.js +1 -1
  29. package/dist/CheckboxIndicator-D37cm2Rh.js +68 -0
  30. package/dist/CheckboxInput/index.d.ts +1 -1
  31. package/dist/CheckboxInput/index.js +1 -1
  32. package/dist/{CheckboxInput-CMsEE1_4.js → CheckboxInput-25Q8ItH-.js} +10 -9
  33. package/dist/CheckboxList/index.d.ts +1 -1
  34. package/dist/CheckboxList/index.js +1 -1
  35. package/dist/{CheckboxList-BbCPiend.js → CheckboxList-BlPf7vPe.js} +78 -25
  36. package/dist/Citation/index.js +1 -1
  37. package/dist/{Citation-C1veUk5p.js → Citation-BG-vg9ia.js} +2 -2
  38. package/dist/ClickableCard/index.d.ts +1 -1
  39. package/dist/Code/index.d.ts +3 -3
  40. package/dist/Code/index.js +4 -4
  41. package/dist/{Code-yb_KOFtJ.js → Code-XnPuGxey.js} +3 -2
  42. package/dist/{CodeBlock-DesTJAkm.js → CodeBlock-B2pnEOJY.js} +146 -16
  43. package/dist/Collapsible/index.js +1 -1
  44. package/dist/{Collapsible-BestK35V.js → Collapsible-3YerR-FO.js} +1 -1
  45. package/dist/CommandPalette/index.js +1 -1
  46. package/dist/{CommandPalette-BArt97V8.js → CommandPalette-DKgHzmJk.js} +10 -10
  47. package/dist/ComplexSelector/index.d.ts +1 -1
  48. package/dist/ComplexSelector/index.js +1 -1
  49. package/dist/{ComplexSelector-CAoig1RK.js → ComplexSelector-Dv44FFhN.js} +3 -3
  50. package/dist/ContextMenu/index.d.ts +3 -2
  51. package/dist/ContextMenu/index.js +3 -2
  52. package/dist/{ContextMenu-9Im6i43E.js → ContextMenu-BeJO5HYx.js} +206 -423
  53. package/dist/DateInput/index.d.ts +2 -2
  54. package/dist/DateInput/index.js +1 -1
  55. package/dist/DateInput-D4XFAEMp.js +743 -0
  56. package/dist/DateRangeInput/index.d.ts +1 -1
  57. package/dist/DateRangeInput/index.js +1 -1
  58. package/dist/{DateRangeInput-DwDy3eRo.js → DateRangeInput-Cp6AZfew.js} +54 -19
  59. package/dist/DateTimeInput/index.d.ts +1 -1
  60. package/dist/DateTimeInput/index.js +1 -1
  61. package/dist/{DateTimeInput-BYiaC9bn.js → DateTimeInput-B6MPPp76.js} +54 -15
  62. package/dist/Divider/index.d.ts +1 -1
  63. package/dist/DropdownMenu/index.d.ts +3 -3
  64. package/dist/DropdownMenu/index.js +4 -3
  65. package/dist/{DropdownMenu-Dh-WAHKb.js → DropdownMenu--lnUeJEG.js} +309 -64
  66. package/dist/DropdownMenu-6E9jFdFe.js +325 -0
  67. package/dist/DropdownMenuRadioItem.vue-CXEURBcq.d.ts +564 -0
  68. package/dist/EmptyState/index.js +1 -1
  69. package/dist/{EmptyState-CUJdTYKV.js → EmptyState-0RWymQUS.js} +2 -2
  70. package/dist/FileInput/index.d.ts +1 -1
  71. package/dist/FileInput/index.js +1 -1
  72. package/dist/{FileInput-DLO6V12n.js → FileInput-DuNwdbAo.js} +2 -2
  73. package/dist/Grid/index.d.ts +1 -1
  74. package/dist/Heading/index.d.ts +2 -2
  75. package/dist/Heading/index.js +1 -1
  76. package/dist/Heading-B9C3LZlS.js +94 -0
  77. package/dist/Icon/index.d.ts +4 -3
  78. package/dist/Icon/index.js +2 -2
  79. package/dist/{Icon-CJKjdJy-.js → Icon-bteSId7T.js} +113 -18
  80. package/dist/Indicator/index.d.ts +3 -0
  81. package/dist/Indicator/index.js +2 -0
  82. package/dist/InputGroup/index.d.ts +2 -2
  83. package/dist/InputGroup/index.js +3 -2
  84. package/dist/InputGroup-BzR6JRZb.js +129 -0
  85. package/dist/Item-DrYJL1TG.js +590 -0
  86. package/dist/Lightbox/index.js +1 -1
  87. package/dist/{Lightbox-CdFCS_EA.js → Lightbox-Br3o0SyQ.js} +2 -2
  88. package/dist/Link/index.d.ts +3 -2
  89. package/dist/Link/index.js +1 -1
  90. package/dist/Link-DCZ6922-.js +196 -0
  91. package/dist/List/index.d.ts +3 -3
  92. package/dist/List/index.js +2 -2
  93. package/dist/{ListItem-pGxvn6QJ.js → ListItem-CcRHWuEm.js} +8 -2
  94. package/dist/Markdown/index.d.ts +2 -2
  95. package/dist/Markdown/index.js +2 -2
  96. package/dist/{Markdown-BqKloI3w.js → Markdown-Bz0R3kNj.js} +280 -33
  97. package/dist/MetadataList/index.js +1 -1
  98. package/dist/{MetadataList-CvZkmisf.js → MetadataList-CFaocx6j.js} +1 -1
  99. package/dist/MobileNav/index.js +1 -1
  100. package/dist/{MobileNavToggle-Bwi0qXXM.js → MobileNavToggle-Dh3uLivq.js} +1 -1
  101. package/dist/MoreMenu/index.d.ts +1 -1
  102. package/dist/MoreMenu/index.js +1 -1
  103. package/dist/{MoreMenu-BwJaJrkB.js → MoreMenu-B95nRSe8.js} +3 -3
  104. package/dist/MultiSelector/index.d.ts +2 -2
  105. package/dist/MultiSelector/index.js +1 -1
  106. package/dist/{MultiSelector-C-ETfFy_.js → MultiSelector-DuF5TECE.js} +304 -122
  107. package/dist/{NavDisclosure-DHrSNRDR.js → NavDisclosure-C6sPZ89n.js} +5 -2
  108. package/dist/NavHeadingSurface-Cb3x9iDx.js +287 -0
  109. package/dist/NavMenu/index.d.ts +2 -2
  110. package/dist/NavMenu/index.js +4 -3
  111. package/dist/NavMenu-ClIgMaxE.js +176 -0
  112. package/dist/{NavMenuItem-B-k7olt5.js → NavMenuItem-E7S8gBh-.js} +1 -1
  113. package/dist/NumberInput/index.d.ts +1 -1
  114. package/dist/NumberInput/index.js +1 -1
  115. package/dist/{NumberInput-DjetVB8O.js → NumberInput-B4IL3s_8.js} +1 -1
  116. package/dist/Outline/index.js +1 -1
  117. package/dist/{Outline-Bz9c-u5y.js → Outline-DBUuchi9.js} +1 -1
  118. package/dist/OverflowList/index.d.ts +1 -1
  119. package/dist/OverflowList/index.js +1 -1
  120. package/dist/{OverflowList-ED-KN9Y5.js → OverflowList-aDd_oem0.js} +3 -3
  121. package/dist/Pagination/index.d.ts +1 -1
  122. package/dist/Pagination/index.js +1 -1
  123. package/dist/{Pagination-Cb66HMEf.js → Pagination-CNe9F6Fl.js} +181 -45
  124. package/dist/Popover/index.js +1 -1
  125. package/dist/{Popover-Crhk9PNP.js → Popover-D7zqpFwU.js} +1 -1
  126. package/dist/PowerSearch/index.d.ts +1 -1
  127. package/dist/PowerSearch/index.js +1 -1
  128. package/dist/{PowerSearch-CjU8y4mi.js → PowerSearch-C6U8Sq1Y.js} +16 -16
  129. package/dist/ProgressBar/index.d.ts +2 -2
  130. package/dist/ProgressBar/index.js +1 -1
  131. package/dist/{ProgressBar-DO9Chic6.js → ProgressBar-DF6WZNCI.js} +45 -6
  132. package/dist/Radio/index.d.ts +1 -1
  133. package/dist/Radio/index.js +1 -1
  134. package/dist/{RadioGroup-BqjdSCfJ.js → RadioGroup-CBqUPq_L.js} +16 -8
  135. package/dist/RadioList/index.d.ts +1 -1
  136. package/dist/RadioList/index.js +1 -1
  137. package/dist/{RadioList-DI8ujXcT.js → RadioList-CPOJn9Th.js} +1 -1
  138. package/dist/Resizable/index.js +1 -1
  139. package/dist/{Resizable-D-TBCg0Y.js → ResizeHandle-DYy0e3v9.js} +1 -1
  140. package/dist/ScrollableArea/index.d.ts +1 -1
  141. package/dist/SelectableCard/index.d.ts +1 -1
  142. package/dist/Selector/index.d.ts +2 -2
  143. package/dist/Selector/index.js +1 -1
  144. package/dist/Selector-5N-hq2nF.js +618 -0
  145. package/dist/SideNav/index.d.ts +2 -2
  146. package/dist/SideNav/index.js +1 -1
  147. package/dist/{SideNav-DonEfiAx.js → SideNav-CT9lfspi.js} +226 -230
  148. package/dist/Stepper/index.js +1 -1
  149. package/dist/{Stepper-D2ZIcUNx.js → Stepper-BqhVCgC-.js} +1 -1
  150. package/dist/Switch/index.d.ts +1 -1
  151. package/dist/TabList/index.js +1 -1
  152. package/dist/{TabList-D3F-stq-.js → TabList-BlzkrObv.js} +2 -2
  153. package/dist/Table/index.js +1 -1
  154. package/dist/{Table-CrP2Uffq.js → Table-CsdH8fCB.js} +7 -7
  155. package/dist/Text/index.d.ts +3 -3
  156. package/dist/Text/index.js +1 -1
  157. package/dist/Text-DIzZw6FA.js +86 -0
  158. package/dist/TextArea/index.d.ts +1 -1
  159. package/dist/TextInput/index.d.ts +1 -1
  160. package/dist/Theme/index.d.ts +3 -2
  161. package/dist/Theme/index.js +2 -2
  162. package/dist/Theme-CtaUWo4g.js +1246 -0
  163. package/dist/Thumbnail/index.js +1 -1
  164. package/dist/{Thumbnail-BC5JGPGZ.js → Thumbnail-BnQwX1cQ.js} +3 -3
  165. package/dist/{TimeField-DpHFrNv0.js → TimeField-Biiuv0hB.js} +2 -2
  166. package/dist/TimeInput/index.d.ts +1 -1
  167. package/dist/TimeInput/index.js +1 -1
  168. package/dist/{TimeInput-DJLV0_4z.js → TimeInput-C9gptCOK.js} +1 -1
  169. package/dist/Timer/index.d.ts +1 -1
  170. package/dist/Timer/index.js +1 -1
  171. package/dist/{Timer-B7GV6hqd.js → Timer-kxzQx3tp.js} +1 -1
  172. package/dist/Timestamp/index.d.ts +1 -1
  173. package/dist/Timestamp/index.js +1 -1
  174. package/dist/{Timestamp-GKNjjt5g.js → Timestamp-D7bd_nF3.js} +3 -3
  175. package/dist/ToggleButton/index.d.ts +1 -1
  176. package/dist/Token/index.d.ts +1 -1
  177. package/dist/Token/index.js +1 -1
  178. package/dist/{Token-Chu_eCVs.js → Token-D2GsI_Ei.js} +2 -2
  179. package/dist/Tokenizer/index.d.ts +1 -1
  180. package/dist/Tokenizer/index.js +1 -1
  181. package/dist/{Tokenizer-DRDpvQ_l.js → Tokenizer-rwzamZg4.js} +4 -4
  182. package/dist/Toolbar/index.d.ts +1 -1
  183. package/dist/Tooltip/index.d.ts +1 -1
  184. package/dist/Tooltip/index.js +1 -1
  185. package/dist/{Tooltip-mp0NMh_Y.js → Tooltip-C2fh9anJ.js} +23 -8
  186. package/dist/TopNav/index.d.ts +1 -1
  187. package/dist/TopNav/index.js +1 -1
  188. package/dist/{TopNav-CEyWddtA.js → TopNav-arWFLTBM.js} +113 -43
  189. package/dist/TreeList/index.js +1 -1
  190. package/dist/{TreeList-COS8US8e.js → TreeList-C9xvMpJZ.js} +2 -2
  191. package/dist/Typeahead/index.d.ts +2 -2
  192. package/dist/Typeahead/index.js +3 -2
  193. package/dist/Typeahead-_V11btpv.js +499 -0
  194. package/dist/{TypeaheadMenu-CGvo0Tud.js → TypeaheadMenu-BEObzonz.js} +46 -10
  195. package/dist/{context-O2Vb8cJl.js → colorMode-CBgdgDSn.js} +1 -7
  196. package/dist/composables/index.d.ts +2 -2
  197. package/dist/composables/index.js +12 -7
  198. package/dist/composables-CWw6t-RJ.js +520 -0
  199. package/dist/{context-CiKncNSH.js → context-CPh7kE-a.js} +140 -18
  200. package/dist/context-Cws_tXTr.js +7 -0
  201. package/dist/context-D5-MwxnN.js +4 -0
  202. package/dist/{index-CJlBAXwj.d.ts → index-12QYAbiz.d.ts} +41 -4
  203. package/dist/{index-Cs5pcwY3.d.ts → index-6yB8BtEu.d.ts} +3 -3
  204. package/dist/{index-C7mxUcDR.d.ts → index-B4OOtNP8.d.ts} +2 -2
  205. package/dist/index-BBtJt5_A.d.ts +26 -0
  206. package/dist/{index-CRizexSC.d.ts → index-BH9PzQ1F.d.ts} +13 -73
  207. package/dist/index-BPwD6aBv.d.ts +83 -0
  208. package/dist/{index-DOUEn7V0.d.ts → index-BcZI402h.d.ts} +64 -5
  209. package/dist/{index-C8wDPDcP.d.ts → index-Bi49IrAJ.d.ts} +50 -8
  210. package/dist/{index-DimuSES0.d.ts → index-BlOIC_AM.d.ts} +3 -1
  211. package/dist/{index-C5p2NeCr.d.ts → index-Blm197N_.d.ts} +11 -2
  212. package/dist/{index-Bu3oXIIS.d.ts → index-BmmdzwT9.d.ts} +6 -0
  213. package/dist/{index-kVhSuA9t.d.ts → index-BxhJqiZ7.d.ts} +6 -6
  214. package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
  215. package/dist/{index-qiZtHnGK.d.ts → index-C3GaPqvJ.d.ts} +123 -8
  216. package/dist/{index-D4I_obqR.d.ts → index-CFIXnk5D.d.ts} +1 -1
  217. package/dist/{index-cGagYM1g.d.ts → index-CI9kyg74.d.ts} +11 -1
  218. package/dist/{index-D-ZuubCK.d.ts → index-CUCcYKxl.d.ts} +1 -1
  219. package/dist/{index-DWH_HzXi.d.ts → index-ChWlKHjc.d.ts} +1 -1
  220. package/dist/{index-DGXviOlp.d.ts → index-D-ezcKaY.d.ts} +30 -4
  221. package/dist/{index-Cm_TiLXU.d.ts → index-Dgg0bHVM.d.ts} +7 -3
  222. package/dist/index-DxR1FChm.d.ts +158 -0
  223. package/dist/{index-DNRBbwp_.d.ts → index-EtZgovdH.d.ts} +842 -107
  224. package/dist/{index-BHqRH7QW.d.ts → index-FEy8qFSD.d.ts} +2 -2
  225. package/dist/index-XuAAcYiP.d.ts +77 -0
  226. package/dist/{index-D0TlUOtG.d.ts → index-YmSe1ujk.d.ts} +76 -3
  227. package/dist/{index-BMrggCw-.d.ts → index-bvr3WHvs.d.ts} +1 -1
  228. package/dist/{index-CDDMDHJM.d.ts → index-c67ca7eJ.d.ts} +1 -1
  229. package/dist/{index-c_TaW8mM.d.ts → index-cL3q7O4R.d.ts} +31 -2
  230. package/dist/{index-CGZ2xi3r.d.ts → index-eshFLli0.d.ts} +40 -3
  231. package/dist/{index-DsyKhauk.d.ts → index-hCpxKePE.d.ts} +48 -2
  232. package/dist/{index-u5ozu0G7.d.ts → index-vP0EtrJJ.d.ts} +13 -3
  233. package/dist/{index-B1TG2GPS.d.ts → index-vizlhXVs.d.ts} +246 -45
  234. package/dist/{index-DfgHJE7H.d.ts → index-z3uLM1O6.d.ts} +153 -24
  235. package/dist/index.d.ts +82 -80
  236. package/dist/index.js +127 -116
  237. package/dist/locale/index.d.ts +2 -2
  238. package/dist/locale/index.js +3 -3
  239. package/dist/locale-sLw5Caia.js +917 -0
  240. package/dist/searchResultMessage-CCnq-_ce.js +94 -0
  241. package/dist/semantic-CKH9XVqa.d.ts +54 -0
  242. package/dist/syntaxTheme-CwVEcVDk.d.ts +57 -0
  243. package/dist/{syntaxTheme-ClpWALZX.js → syntaxTheme-R7xnu5x5.js} +24 -3
  244. package/dist/{types-pnljWjEE.d.ts → types-CwyibrRB.d.ts} +12 -11
  245. package/dist/{types-Bt-lSgYX.d.ts → types-D9nP_X-c.d.ts} +14 -1
  246. package/dist/{types-CAZY4Xua.d.ts → types-DGYHIu4I.d.ts} +30 -1
  247. package/dist/types-D_J66aPN.d.ts +85 -0
  248. package/dist/types-gKsEkk2g.d.ts +320 -0
  249. package/dist/{useAnchoredListbox-7W90Ny-9.js → useAnchoredListbox-BN9LQnon.js} +1 -1
  250. package/dist/useDatePresentation-C07PnOCw.js +21 -0
  251. package/dist/{useMonthGrid-CmJsZTcB.js → useDateRange-CIXoE_8k.js} +1 -42
  252. package/dist/useDisclosureHandle-Df3HhAfC.js +24 -0
  253. package/dist/{useDismiss-CAiHU6QD.js → useDismiss-Cj8x_51F.js} +8 -4
  254. package/dist/useFieldControlState-voICDrys.js +18 -0
  255. package/dist/useHandleRef-6cdKugm8.js +17 -0
  256. package/dist/useIndicator-i1NORM7W.js +147 -0
  257. package/dist/useMenuDrillIn-BgjJcY3K.js +520 -0
  258. package/dist/useMenuPress-DUmEy4TB.js +425 -0
  259. package/dist/useMonthGrid-fGHSSrFc.js +43 -0
  260. package/dist/usePendingChange-ib-h8FZK.js +25 -0
  261. package/dist/{composables-CVfjp9h4.js → useResizable-B3ahKLoZ.js} +74 -152
  262. package/dist/useSubmenuMode-CZN9qrUo.js +37 -0
  263. package/dist/useTruncation-B5qXQzAP.js +53 -0
  264. package/locales/SOURCE.json +37 -0
  265. package/locales/af-ZA.json +1482 -0
  266. package/locales/ar-SA.json +1482 -0
  267. package/locales/ca-ES.json +1482 -0
  268. package/locales/cs-CZ.json +1482 -0
  269. package/locales/da-DK.json +1482 -0
  270. package/locales/de-DE.json +1482 -0
  271. package/locales/el-GR.json +1482 -0
  272. package/locales/en.json +1646 -0
  273. package/locales/es-ES.json +1482 -0
  274. package/locales/fi-FI.json +1482 -0
  275. package/locales/fr-FR.json +1482 -0
  276. package/locales/he-IL.json +1482 -0
  277. package/locales/hu-HU.json +1482 -0
  278. package/locales/it-IT.json +1482 -0
  279. package/locales/ja-JP.json +1482 -0
  280. package/locales/ko-KR.json +1482 -0
  281. package/locales/nl-NL.json +1482 -0
  282. package/locales/no-NO.json +1482 -0
  283. package/locales/pl-PL.json +1482 -0
  284. package/locales/pt-BR.json +1482 -0
  285. package/locales/pt-PT.json +1482 -0
  286. package/locales/ro-RO.json +1482 -0
  287. package/locales/ru-RU.json +1482 -0
  288. package/locales/sr-SP.json +1482 -0
  289. package/locales/sv-SE.json +1482 -0
  290. package/locales/tr-TR.json +1482 -0
  291. package/locales/uk-UA.json +1482 -0
  292. package/locales/vi-VN.json +1482 -0
  293. package/locales/zh-CN.json +1482 -0
  294. package/locales/zh-TW.json +1482 -0
  295. package/package.json +7 -1
  296. package/styles/bottom-sheet.css +27 -0
  297. package/styles/calendar.css +38 -3
  298. package/styles/check-indicator.css +17 -0
  299. package/styles/checkbox-indicator.css +29 -10
  300. package/styles/checkbox-input.css +0 -11
  301. package/styles/code.css +62 -0
  302. package/styles/container-reveal.css +104 -0
  303. package/styles/date-input.css +48 -0
  304. package/styles/dropdown-menu.css +163 -0
  305. package/styles/field.css +48 -0
  306. package/styles/heading.css +47 -0
  307. package/styles/icon.css +51 -3
  308. package/styles/input-group.css +32 -3
  309. package/styles/keyboard-hint.css +28 -0
  310. package/styles/link.css +34 -0
  311. package/styles/list.css +88 -1
  312. package/styles/markdown.css +12 -0
  313. package/styles/multi-selector.css +26 -0
  314. package/styles/pagination.css +30 -0
  315. package/styles/progress-bar.css +49 -0
  316. package/styles/radio-indicator.css +90 -0
  317. package/styles/radio.css +9 -42
  318. package/styles/selector.css +112 -14
  319. package/styles/side-nav.css +36 -1
  320. package/styles/text.css +18 -0
  321. package/styles/top-nav.css +145 -6
  322. package/styles/typeahead.css +24 -0
  323. package/styles.css +4 -0
  324. package/dist/Calendar-BFaI5AMv.js +0 -352
  325. package/dist/CheckboxIndicator-DdJmksHt.js +0 -52
  326. package/dist/DateInput-BLocxqC3.js +0 -376
  327. package/dist/DropdownMenu-Ddfr-aEC.js +0 -164
  328. package/dist/Heading-Dugosn6j.js +0 -43
  329. package/dist/InputGroup-ChrFVxzV.js +0 -42
  330. package/dist/Item-C1z6gXn8.js +0 -289
  331. package/dist/Link-DqdQZ37C.js +0 -141
  332. package/dist/Selector-DE2IEFML.js +0 -468
  333. package/dist/Text-BHVghsWo.js +0 -53
  334. package/dist/Theme-BuUiiJNr.js +0 -429
  335. package/dist/Typeahead-P7cCqtaQ.js +0 -375
  336. package/dist/index-Bgv4ZmBl.d.ts +0 -72
  337. package/dist/index-DN7MXPHM.d.ts +0 -398
  338. package/dist/index-Dg3ZmwEg.d.ts +0 -75
  339. package/dist/index-IbUN4M8V.d.ts +0 -40
  340. package/dist/index-jdjcb3Js.d.ts +0 -80
  341. package/dist/locale-Cpk_nrLA.js +0 -18
  342. package/dist/syntaxTheme-Bcs1YMF7.d.ts +0 -38
  343. package/dist/types-DDAAT1Xd.d.ts +0 -285
  344. package/dist/useGridRovingFocus-DQQAOYH5.js +0 -99
  345. package/dist/useHotkeys-dABSK1o9.js +0 -80
  346. package/dist/useLongPress-Cyxwa73s.js +0 -60
  347. package/dist/{index-BUXNRekN.d.ts → index-IdK2g5B4.d.ts} +2 -2
@@ -1,398 +0,0 @@
1
- import { Component, ComputedRef, InjectionKey, VNodeChild } from "vue";
2
- //#region src/ContextMenu/types.d.ts
3
- /**
4
- * Density of the menu rows, from the tightest to the most spacious.
5
- *
6
- * The size only changes the rows' block padding; the panel, the radius, and
7
- * the type stay the same in every size.
8
- */
9
- type ContextMenuSize = 'sm' | 'md' | 'lg';
10
- /**
11
- * The element the trigger area renders as.
12
- *
13
- * `div` is a block that hugs its content; `span` is an inline wrapper, so a
14
- * reference inside running prose can own a context menu without breaking the
15
- * text flow.
16
- */
17
- type ContextMenuTriggerElement = 'div' | 'span';
18
- /**
19
- * How the actions are presented.
20
- *
21
- * `popover` anchors a menu to the pointer, `bottom-sheet` presents a
22
- * thumb-reachable sheet, and `adaptive` uses the sheet at 768px and below
23
- * when the primary pointer is coarse.
24
- */
25
- type ContextMenuPresentation = 'popover' | 'bottom-sheet' | 'adaptive';
26
- /** A menu width as a number of pixels or any CSS length. */
27
- type ContextMenuWidth = number | string;
28
- /**
29
- * Visual variant of a row. `destructive` paints the label, the description,
30
- * and the icon in the error color for an action that cannot be undone.
31
- */
32
- type ContextMenuVariant = 'default' | 'destructive';
33
- /** Where a link row navigates. */
34
- type ContextMenuItemTarget = '_blank' | '_self';
35
- /**
36
- * The artwork of a row: a CSS icon class, or a Vue component that draws the
37
- * SVG. astryx-vue ships no icons of its own.
38
- */
39
- type ContextMenuItemIcon = string | Component;
40
- /**
41
- * One action row in the `items` data API.
42
- *
43
- * Every field is also a `ContextMenuItem` prop, so the data API and the
44
- * compound API describe the same row and cannot drift.
45
- */
46
- interface ContextMenuItemData {
47
- /**
48
- * Discriminant of the data API. An action row leaves it unset; a divider or
49
- * a section sets it.
50
- */
51
- type?: undefined;
52
- /**
53
- * Stable identity for the row. Rows are keyed by position when it is
54
- * omitted, which is correct for a fixed menu; set it when `items` can
55
- * reorder or filter so a row keeps its DOM node, and its focus, as the
56
- * array changes around it.
57
- */
58
- id?: string;
59
- /** Primary label of the row. */
60
- label: string;
61
- /** Icon rendered before the label. */
62
- icon?: ContextMenuItemIcon;
63
- /** Secondary text rendered below the label. */
64
- description?: string;
65
- /**
66
- * Plain text rendered after the label area. Rich trailing content needs the
67
- * compound `ContextMenuItem` and its `endContent` slot.
68
- */
69
- endContent?: string | number;
70
- /** Called when the row is activated, with the click that activated it. */
71
- onClick?: (event: MouseEvent) => void;
72
- /** Whether the row is disabled. @default false */
73
- isDisabled?: boolean;
74
- /** Visual variant of the row. @default 'default' */
75
- variant?: ContextMenuVariant;
76
- /**
77
- * Whether activating the row closes the menu. Set it to `false` for an
78
- * action that reports its result on the row itself.
79
- * @default true
80
- */
81
- hasCloseOnSelect?: boolean;
82
- /** Address the row navigates to; the row then renders as an anchor. */
83
- href?: string;
84
- /** Link target of a link row. */
85
- target?: ContextMenuItemTarget;
86
- /** Link relationship of a link row. */
87
- rel?: string;
88
- /**
89
- * Nested entries. When present, the row becomes a submenu that reveals
90
- * these entries in a flyout beside it instead of acting itself.
91
- */
92
- items?: ContextMenuOption[];
93
- }
94
- /** A horizontal rule between groups of rows. */
95
- interface ContextMenuDividerData {
96
- type: 'divider';
97
- }
98
- /** A titled group of rows. */
99
- interface ContextMenuSection {
100
- type: 'section';
101
- /** Stable identity for the group. */
102
- id?: string;
103
- /** Heading shown above the group's rows and used as the group's name. */
104
- title?: string;
105
- /** The actions of the group. */
106
- items: ContextMenuItemData[];
107
- }
108
- /** One entry of the `items` data API. */
109
- type ContextMenuOption = ContextMenuItemData | ContextMenuDividerData | ContextMenuSection;
110
- interface ContextMenuProps {
111
- /**
112
- * The menu entries. Each entry is an action row, a divider, or a section;
113
- * a row with nested `items` becomes a submenu. Omit it and use the
114
- * `content` slot for a menu the caller composes itself.
115
- */
116
- items?: ContextMenuOption[];
117
- /**
118
- * Width of the menu panel. Numbers are interpreted as pixels. The panel is
119
- * still capped to the viewport, so a width wider than the screen shrinks
120
- * instead of overflowing.
121
- * @default undefined (the panel is at least 160px wide and sizes to its rows)
122
- */
123
- menuWidth?: ContextMenuWidth;
124
- /**
125
- * Density of the menu rows.
126
- * @default 'md'
127
- */
128
- size?: ContextMenuSize;
129
- /**
130
- * Accessible name of the menu panel, announced when it opens.
131
- * @default 'Context menu'
132
- */
133
- label?: string;
134
- /**
135
- * When true, the native browser context menu is left untouched and the
136
- * menu never opens.
137
- * @default false
138
- */
139
- isDisabled?: boolean;
140
- /**
141
- * The element the trigger area renders as.
142
- * @default 'div'
143
- */
144
- triggerAs?: ContextMenuTriggerElement;
145
- /**
146
- * How the menu is presented.
147
- * @default 'popover'
148
- */
149
- presentation?: ContextMenuPresentation;
150
- /**
151
- * Open state of the menu. Bind it with `v-model:is-open` to control the
152
- * menu from the outside; leave it unbound and the menu manages its own
153
- * state, opening on right-click, the context-menu key, or a long press.
154
- * @default undefined
155
- */
156
- isOpen?: boolean;
157
- }
158
- interface ContextMenuEmits {
159
- /** Fired when the menu opens or closes. */
160
- 'openChange': [isOpen: boolean];
161
- /** Fired when a row of the `items` data API is activated. */
162
- 'select': [item: ContextMenuItemData, event: MouseEvent];
163
- /** Fired by `v-model:isOpen`. */
164
- 'update:isOpen': [isOpen: boolean];
165
- }
166
- interface ContextMenuSlots {
167
- /** The trigger area: right-click on this content to open the menu. */
168
- default?: () => VNodeChild;
169
- /**
170
- * The menu's content for a caller-composed menu. Every row still needs the
171
- * `menuitem` role and keyboard handling comes from the menu, so compose it
172
- * from the exported menu components.
173
- */
174
- content?: () => VNodeChild;
175
- }
176
- interface ContextMenuItemProps {
177
- /** Icon rendered before the label. */
178
- icon?: ContextMenuItemIcon;
179
- /** Primary label of the row. */
180
- label?: string | number;
181
- /** Secondary text rendered below the label. */
182
- description?: string;
183
- /**
184
- * Plain text rendered after the label area. Use the `endContent` slot for
185
- * rich trailing content such as a badge.
186
- */
187
- endContent?: string | number;
188
- /** Address the row navigates to; the row then renders as an anchor. */
189
- href?: string;
190
- /** Link target, only used with `href`. */
191
- target?: ContextMenuItemTarget;
192
- /** Link relationship, only used with `href`. */
193
- rel?: string;
194
- /**
195
- * Whether the row is disabled. A disabled row is dimmed, skipped by arrow
196
- * keys and typeahead, and cannot be activated.
197
- * @default false
198
- */
199
- isDisabled?: boolean;
200
- /**
201
- * Whether activating the row closes the menu.
202
- * @default true
203
- */
204
- hasCloseOnSelect?: boolean;
205
- /**
206
- * Visual variant of the row.
207
- * @default 'default'
208
- */
209
- variant?: ContextMenuVariant;
210
- }
211
- interface ContextMenuItemEmits {
212
- /** Fired when the row is activated, with the click that activated it. */
213
- click: [event: MouseEvent];
214
- }
215
- interface ContextMenuItemSlots {
216
- /** Rich content replacing the `label` prop. */
217
- label?: () => VNodeChild;
218
- /** Leading content replacing the `icon` prop. */
219
- icon?: () => VNodeChild;
220
- /** Rich content replacing the `description` prop. */
221
- description?: () => VNodeChild;
222
- /** Trailing content after the label area. */
223
- endContent?: () => VNodeChild;
224
- }
225
- interface ContextMenuDividerProps {
226
- /**
227
- * The divider's weight. `subtle` is the hairline drawn between menu rows.
228
- * @default 'subtle'
229
- */
230
- variant?: 'subtle' | 'strong';
231
- }
232
- interface ContextMenuGroupProps {
233
- /**
234
- * Heading shown above the group's rows and used as the group's accessible
235
- * name. Omit it for an unnamed group.
236
- */
237
- title?: string;
238
- }
239
- interface ContextMenuGroupSlots {
240
- /** The group's rows: menu items, dividers, submenus. */
241
- default?: () => VNodeChild;
242
- }
243
- interface ContextMenuSubMenuProps {
244
- /** Icon rendered before the label. */
245
- icon?: ContextMenuItemIcon;
246
- /** Primary label of the row. */
247
- label?: string | number;
248
- /** Secondary text rendered below the label. */
249
- description?: string;
250
- /**
251
- * Whether the row is disabled and can neither be opened nor activated.
252
- * @default false
253
- */
254
- isDisabled?: boolean;
255
- /** The entries revealed in the flyout. */
256
- items?: ContextMenuOption[];
257
- }
258
- interface ContextMenuSubMenuEmits {
259
- /** Fired when the flyout opens or closes. */
260
- openChange: [isOpen: boolean];
261
- /** Fired when a row inside the flyout is activated, re-emitted upward. */
262
- select: [item: ContextMenuItemData, event: MouseEvent];
263
- }
264
- interface ContextMenuSubMenuSlots {
265
- /** Rich content replacing the `label` prop. */
266
- label?: () => VNodeChild;
267
- /** Leading content replacing the `icon` prop. */
268
- icon?: () => VNodeChild;
269
- /** Rich content replacing the `description` prop. */
270
- description?: () => VNodeChild;
271
- /** Trailing content replacing the chevron. */
272
- endContent?: () => VNodeChild;
273
- /** The flyout's rows, replacing the `items` prop. */
274
- default?: () => VNodeChild;
275
- }
276
- //#endregion
277
- //#region src/ContextMenu/context.d.ts
278
- /**
279
- * What a `ContextMenu` tells the rows and submenus inside it.
280
- *
281
- * Every member is a ref or a computed, so a row that reads the context keeps
282
- * following the menu's own props after mount instead of freezing at the
283
- * values present when the menu was created. `closeMenu` reads the menu's live
284
- * open state each time it runs, so it stays correct as well.
285
- */
286
- interface ContextMenuContextValue {
287
- /**
288
- * Close the menu. `restoreFocus` puts focus back on the element that was
289
- * focused before the menu opened; keyboard dismissal asks for it, a
290
- * pointer-driven dismissal does not.
291
- */
292
- closeMenu: (options?: {
293
- restoreFocus?: boolean;
294
- }) => void;
295
- /** Whether the menu is currently open. */
296
- isOpen: ComputedRef<boolean>;
297
- /** The menu's accessible name, used by a submenu flyout's rows. */
298
- menuLabel: ComputedRef<string>;
299
- /** Density of the rows inside this menu. */
300
- menuSize: ComputedRef<ContextMenuSize>;
301
- }
302
- /** The surrounding menu, or `undefined` when the row stands alone. */
303
- declare function useContextMenu(): ContextMenuContextValue | undefined;
304
- /** The row density of the surrounding menu, or the menu default. */
305
- declare function useContextMenuSize(): ComputedRef<ContextMenuSize>;
306
- //#endregion
307
- //#region src/ContextMenu/ContextMenu.vue.d.ts
308
- type __VLS_Props = ContextMenuProps;
309
- type __VLS_Slots$3 = ContextMenuSlots;
310
- type __VLS_ModelProps = {
311
- 'isOpen'?: boolean | undefined;
312
- };
313
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
314
- declare const __VLS_base$3: import("vue").DefineComponent<__VLS_PublicProps, {
315
- blur: () => void | undefined;
316
- close: () => void;
317
- element: import("vue").ComputedRef<HTMLElement | null>;
318
- focus: () => void | undefined;
319
- open: () => void;
320
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
321
- openChange: (isOpen: boolean) => any;
322
- select: (item: ContextMenuItemData, event: MouseEvent) => any;
323
- "update:isOpen": (...args: unknown[]) => any;
324
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
325
- onOpenChange?: ((isOpen: boolean) => any) | undefined;
326
- onSelect?: ((item: ContextMenuItemData, event: MouseEvent) => any) | undefined;
327
- "onUpdate:isOpen"?: ((...args: unknown[]) => any) | undefined;
328
- }>, {
329
- label: string;
330
- size: ContextMenuSize;
331
- isDisabled: boolean;
332
- presentation: ContextMenuPresentation;
333
- triggerAs: ContextMenuTriggerElement;
334
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
335
- declare const __VLS_export$4: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
336
- declare const _default$4: typeof __VLS_export$4;
337
- type __VLS_WithSlots$3<T, S> = T & {
338
- new (): {
339
- $slots: S;
340
- };
341
- };
342
- //#endregion
343
- //#region src/ContextMenu/ContextMenuDivider.vue.d.ts
344
- declare const __VLS_export$3: import("vue").DefineComponent<ContextMenuDividerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContextMenuDividerProps> & Readonly<{}>, {
345
- variant: "subtle" | "strong";
346
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
347
- declare const _default$3: typeof __VLS_export$3;
348
- //#endregion
349
- //#region src/ContextMenu/ContextMenuGroup.vue.d.ts
350
- type __VLS_Slots$2 = ContextMenuGroupSlots;
351
- declare const __VLS_base$2: import("vue").DefineComponent<ContextMenuGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ContextMenuGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
352
- declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
353
- declare const _default$2: typeof __VLS_export$2;
354
- type __VLS_WithSlots$2<T, S> = T & {
355
- new (): {
356
- $slots: S;
357
- };
358
- };
359
- //#endregion
360
- //#region src/ContextMenu/ContextMenuItem.vue.d.ts
361
- type __VLS_Slots$1 = ContextMenuItemSlots;
362
- declare const __VLS_base$1: import("vue").DefineComponent<ContextMenuItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
363
- click: (event: MouseEvent) => any;
364
- }, string, import("vue").PublicProps, Readonly<ContextMenuItemProps> & Readonly<{
365
- onClick?: ((event: MouseEvent) => any) | undefined;
366
- }>, {
367
- isDisabled: boolean;
368
- variant: ContextMenuVariant;
369
- hasCloseOnSelect: boolean;
370
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
371
- declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
372
- declare const _default$1: typeof __VLS_export$1;
373
- type __VLS_WithSlots$1<T, S> = T & {
374
- new (): {
375
- $slots: S;
376
- };
377
- };
378
- //#endregion
379
- //#region src/ContextMenu/ContextMenuSubMenu.vue.d.ts
380
- type __VLS_Slots = ContextMenuSubMenuSlots;
381
- declare const __VLS_base: import("vue").DefineComponent<ContextMenuSubMenuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
382
- openChange: (isOpen: boolean) => any;
383
- select: (item: ContextMenuItemData, event: MouseEvent) => any;
384
- }, string, import("vue").PublicProps, Readonly<ContextMenuSubMenuProps> & Readonly<{
385
- onOpenChange?: ((isOpen: boolean) => any) | undefined;
386
- onSelect?: ((item: ContextMenuItemData, event: MouseEvent) => any) | undefined;
387
- }>, {
388
- isDisabled: boolean;
389
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
390
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
391
- declare const _default: typeof __VLS_export;
392
- type __VLS_WithSlots<T, S> = T & {
393
- new (): {
394
- $slots: S;
395
- };
396
- };
397
- //#endregion
398
- export { ContextMenuWidth as A, ContextMenuSize as C, ContextMenuSubMenuSlots as D, ContextMenuSubMenuProps as E, ContextMenuTriggerElement as O, ContextMenuSection as S, ContextMenuSubMenuEmits as T, ContextMenuItemSlots as _, _default$4 as a, ContextMenuPresentation as b, ContextMenuDividerData as c, ContextMenuGroupProps as d, ContextMenuGroupSlots as f, ContextMenuItemProps as g, ContextMenuItemIcon as h, _default$3 as i, ContextMenuVariant as k, ContextMenuDividerProps as l, ContextMenuItemEmits as m, _default$1 as n, useContextMenu as o, ContextMenuItemData as p, _default$2 as r, useContextMenuSize as s, _default as t, ContextMenuEmits as u, ContextMenuItemTarget as v, ContextMenuSlots as w, ContextMenuProps as x, ContextMenuOption as y };
@@ -1,75 +0,0 @@
1
- //#region src/Link/types.d.ts
2
- type LinkColor = 'primary' | 'secondary' | 'accent' | 'inherit';
3
- interface LinkProps {
4
- /**
5
- * Link destination URL.
6
- */
7
- href?: string;
8
- /**
9
- * Whether the link opens in a new tab and shows an external indicator.
10
- * @default false
11
- */
12
- isExternalLink?: boolean;
13
- /**
14
- * Whether the link always shows an underline.
15
- * @default false
16
- */
17
- hasUnderline?: boolean;
18
- /**
19
- * Text color.
20
- * @default 'accent'
21
- */
22
- color?: LinkColor;
23
- /**
24
- * Whether the link is disabled.
25
- * @default false
26
- */
27
- isDisabled?: boolean;
28
- /**
29
- * HTML target attribute.
30
- */
31
- target?: string;
32
- /**
33
- * HTML rel attribute.
34
- */
35
- rel?: string;
36
- /**
37
- * Causes the browser to download the linked URL.
38
- */
39
- download?: string | boolean;
40
- /**
41
- * Tooltip text shown on hover and keyboard focus.
42
- */
43
- tooltip?: string;
44
- /**
45
- * Whether the link stands alone, rather than sitting inside body text.
46
- * Applies body font size and line height.
47
- * @default false
48
- */
49
- isStandalone?: boolean;
50
- }
51
- //#endregion
52
- //#region src/Link/Link.vue.d.ts
53
- type __VLS_Slots = {
54
- default: () => unknown;
55
- };
56
- declare const __VLS_base: import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
57
- click: (event: MouseEvent) => any;
58
- }, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{
59
- onClick?: ((event: MouseEvent) => any) | undefined;
60
- }>, {
61
- isDisabled: boolean;
62
- color: LinkColor;
63
- isExternalLink: boolean;
64
- hasUnderline: boolean;
65
- isStandalone: boolean;
66
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
67
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
68
- declare const _default: typeof __VLS_export;
69
- type __VLS_WithSlots<T, S> = T & {
70
- new (): {
71
- $slots: S;
72
- };
73
- };
74
- //#endregion
75
- export { LinkColor as n, LinkProps as r, _default as t };
@@ -1,40 +0,0 @@
1
- import { ComputedRef, InjectionKey } from "vue";
2
- //#region src/InputGroup/context.d.ts
3
- interface InputGroupContext {
4
- size: ComputedRef<'sm' | 'md' | 'lg'>;
5
- disabled: ComputedRef<boolean>;
6
- }
7
- declare const INPUT_GROUP_KEY: InjectionKey<InputGroupContext>;
8
- //#endregion
9
- //#region src/InputGroup/types.d.ts
10
- type InputGroupSize = 'sm' | 'md' | 'lg';
11
- interface InputGroupProps {
12
- /** 尺寸 */
13
- size?: InputGroupSize;
14
- /** 是否禁用(传递给子组件) */
15
- disabled?: boolean;
16
- }
17
- interface InputGroupSlots {
18
- /** 前缀内容(图标或文本) */
19
- before?: () => any;
20
- /** 主输入框 */
21
- default?: () => any;
22
- /** 后缀内容(图标或按钮) */
23
- after?: () => any;
24
- }
25
- //#endregion
26
- //#region src/InputGroup/InputGroup.vue.d.ts
27
- type __VLS_Slots = InputGroupSlots;
28
- declare const __VLS_base: import("vue").DefineComponent<InputGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<InputGroupProps> & Readonly<{}>, {
29
- size: InputGroupSize;
30
- disabled: boolean;
31
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
33
- declare const _default: typeof __VLS_export;
34
- type __VLS_WithSlots<T, S> = T & {
35
- new (): {
36
- $slots: S;
37
- };
38
- };
39
- //#endregion
40
- export { INPUT_GROUP_KEY as a, InputGroupSlots as i, InputGroupProps as n, InputGroupContext as o, InputGroupSize as r, _default as t };
@@ -1,80 +0,0 @@
1
- import { a as SearchableItem, i as SearchSource } from "./useAsyncSource-xpQovjV_.js";
2
- //#region src/Typeahead/types.d.ts
3
- type TypeaheadSize = 'sm' | 'md' | 'lg';
4
- type TypeaheadStatus = 'default' | 'success' | 'warning' | 'error';
5
- interface TypeaheadProps<T extends SearchableItem = SearchableItem> {
6
- /** 当前选中的条目。空表示还没选。 */
7
- modelValue?: T | null;
8
- /** 静态或异步搜索源。 */
9
- searchSource: SearchSource<T>;
10
- /** 字段标签。屏幕阅读器始终读得到。 */
11
- label: string;
12
- /** 视觉上隐藏标签。 */
13
- labelHidden?: boolean;
14
- /** 标签下方的说明。 */
15
- description?: string;
16
- placeholder?: string;
17
- disabled?: boolean;
18
- /** 禁用原因。有值时控件仍可聚焦,方便读到原因。 */
19
- disabledReason?: string;
20
- status?: TypeaheadStatus;
21
- statusMessage?: string;
22
- size?: TypeaheadSize;
23
- /** 显示清除按钮。 */
24
- clearable?: boolean;
25
- /** 输入停顿后再搜索,单位毫秒。本地数据可设为 0。 */
26
- debounceMs?: number;
27
- /** 下拉最多显示多少条。 */
28
- maxMenuItems?: number;
29
- /** 聚焦时还没输入就展示结果。 */
30
- showOnFocus?: boolean;
31
- emptyText?: string;
32
- required?: boolean;
33
- optional?: boolean;
34
- /** 表单字段名。选中后提交条目的 id。 */
35
- name?: string;
36
- width?: number | string;
37
- }
38
- interface TypeaheadEmits<T extends SearchableItem = SearchableItem> {
39
- 'update:modelValue': [value: T | null];
40
- 'change': [value: T | null];
41
- 'search': [query: string];
42
- 'openChange': [isOpen: boolean];
43
- }
44
- interface TypeaheadSlots<T extends SearchableItem = SearchableItem> {
45
- /** 输入框开头的图标。 */
46
- icon?: () => unknown;
47
- /** 自定义下拉条目。 */
48
- item?: (props: {
49
- item: T;
50
- isActive: boolean;
51
- isSelected: boolean;
52
- }) => unknown;
53
- /** 自定义空状态。 */
54
- empty?: () => unknown;
55
- }
56
- //#endregion
57
- //#region src/Typeahead/Typeahead.vue.d.ts
58
- declare const __VLS_export: <T extends SearchableItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
59
- props: import("vue").PublicProps & __VLS_PrettifyLocal<TypeaheadProps<T> & {
60
- onSearch?: ((query: string) => any) | undefined;
61
- onChange?: ((value: T | null) => any) | undefined;
62
- "onUpdate:modelValue"?: ((value: T | null) => any) | undefined;
63
- onOpenChange?: ((isOpen: boolean) => any) | undefined;
64
- }> & (typeof globalThis extends {
65
- __VLS_PROPS_FALLBACK: infer P;
66
- } ? P : {});
67
- expose: (exposed: import("vue").ShallowUnwrapRef<{
68
- focus: () => void | undefined;
69
- blur: () => void | undefined;
70
- }>) => void;
71
- attrs: any;
72
- slots: TypeaheadSlots<T>;
73
- emit: ((evt: "search", query: string) => void) & ((evt: "change", value: T | null) => void) & ((evt: "update:modelValue", value: T | null) => void) & ((evt: "openChange", isOpen: boolean) => void);
74
- }>) => import("vue").VNode & {
75
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
76
- };
77
- declare const _default: typeof __VLS_export;
78
- type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K]; } : { [K in keyof T as K]: T[K]; }) & {};
79
- //#endregion
80
- export { TypeaheadSlots as a, TypeaheadSize as i, TypeaheadEmits as n, TypeaheadStatus as o, TypeaheadProps as r, _default as t };
@@ -1,18 +0,0 @@
1
- //#region src/locale/format.ts
2
- const weekdayStart = new Date(2023, 0, 1);
3
- function formatCalendarMonth(year, month, locale) {
4
- return new Intl.DateTimeFormat(locale, {
5
- month: "long",
6
- year: "numeric"
7
- }).format(new Date(year, month - 1, 1));
8
- }
9
- function weekdayNames(locale, style) {
10
- const formatter = new Intl.DateTimeFormat(locale, { weekday: style });
11
- return Array.from({ length: 7 }, (_, index) => {
12
- const date = new Date(weekdayStart);
13
- date.setDate(weekdayStart.getDate() + index);
14
- return formatter.format(date);
15
- });
16
- }
17
- //#endregion
18
- export { weekdayNames as n, formatCalendarMonth as t };
@@ -1,38 +0,0 @@
1
- //#region src/Code/syntaxTheme.d.ts
2
- declare const SYNTAX_TOKEN_KEYS: readonly ["keyword", "string", "comment", "number", "function", "type", "variable", "operator", "constant", "tag", "attribute", "property", "punctuation", "background"];
3
- type SyntaxTokenKey = (typeof SYNTAX_TOKEN_KEYS)[number];
4
- interface SyntaxThemeTokens {
5
- keyword: string;
6
- string: string;
7
- comment: string;
8
- number: string;
9
- function: string;
10
- type: string;
11
- variable: string;
12
- operator: string;
13
- constant: string;
14
- tag: string;
15
- attribute: string;
16
- property: string;
17
- punctuation: string;
18
- background: string;
19
- }
20
- /** A string is used as written. A tuple is the light stop, then the dark stop. */
21
- type SyntaxTokenValue = string | readonly [string, string];
22
- interface SyntaxThemeDefinition {
23
- name: string;
24
- tokens: SyntaxThemeTokens;
25
- }
26
- interface SyntaxThemeInput {
27
- name: string;
28
- tokens: { [K in keyof SyntaxThemeTokens]: SyntaxTokenValue; };
29
- }
30
- /**
31
- * Create a syntax theme. All 14 tokens are required.
32
- * `[light, dark]` tuples are stored as `light-dark()`.
33
- */
34
- declare function defineSyntaxTheme(theme: SyntaxThemeInput): SyntaxThemeDefinition;
35
- /** GitHub Dark (GitHub Primer team), MIT. */
36
- declare const githubDark: SyntaxThemeDefinition;
37
- //#endregion
38
- export { SyntaxTokenKey as a, githubDark as c, SyntaxThemeTokens as i, SyntaxThemeDefinition as n, SyntaxTokenValue as o, SyntaxThemeInput as r, defineSyntaxTheme as s, SYNTAX_TOKEN_KEYS as t };