@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,468 +0,0 @@
1
- import { t as useCombobox } from "./useCombobox-CTo5C-gc.js";
2
- import { t as useDismiss } from "./useDismiss-CAiHU6QD.js";
3
- import { a as useAstryxMessages } from "./context-CiKncNSH.js";
4
- import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
5
- import { t as _sfc_main$1 } from "./BottomSheet-Dg95HB1s.js";
6
- import { t as _sfc_main$2 } from "./Field-8zRxzDHE.js";
7
- import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useId, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
8
- import "../styles/visually-hidden-utility.css";
9
- import "../styles/selector.css";
10
- //#region src/Selector/Selector.vue
11
- const _hoisted_1 = [
12
- "disabled",
13
- "aria-expanded",
14
- "aria-label",
15
- "aria-activedescendant",
16
- "title"
17
- ];
18
- const _hoisted_2 = ["aria-label"];
19
- const _hoisted_3 = { class: "astryx-selector-sheet-title" };
20
- const _hoisted_4 = ["data-placement"];
21
- const _hoisted_5 = {
22
- key: 0,
23
- class: "astryx-selector-search"
24
- };
25
- const _hoisted_6 = [
26
- "id",
27
- "aria-label",
28
- "placeholder",
29
- "value"
30
- ];
31
- const _hoisted_7 = {
32
- key: 1,
33
- class: "astryx-selector-options"
34
- };
35
- const _hoisted_8 = {
36
- key: 0,
37
- class: "astryx-selector-section",
38
- role: "presentation"
39
- };
40
- const _hoisted_9 = [
41
- "id",
42
- "aria-selected",
43
- "aria-disabled",
44
- "onClick",
45
- "onKeydown"
46
- ];
47
- const _hoisted_10 = { class: "astryx-selector-option-label" };
48
- const _hoisted_11 = {
49
- key: 1,
50
- class: "astryx-selector-option-description"
51
- };
52
- const _hoisted_12 = {
53
- key: 2,
54
- class: "astryx-selector-empty"
55
- };
56
- const _hoisted_13 = [
57
- "id",
58
- "name",
59
- "value",
60
- "aria-label"
61
- ];
62
- const _hoisted_14 = ["value"];
63
- const _sfc_main = /*@__PURE__*/ defineComponent({
64
- name: "AstryxSelector",
65
- inheritAttrs: false,
66
- __name: "Selector",
67
- props: {
68
- modelValue: { default: null },
69
- options: {},
70
- placeholder: {},
71
- disabled: {
72
- type: Boolean,
73
- default: false
74
- },
75
- disabledReason: {},
76
- status: { default: "default" },
77
- statusMessage: {},
78
- statusVariant: { default: "attached" },
79
- size: { default: "md" },
80
- variant: { default: "default" },
81
- presentation: { default: "popover" },
82
- searchable: {
83
- type: Boolean,
84
- default: false
85
- },
86
- searchPlaceholder: {},
87
- clearable: {
88
- type: Boolean,
89
- default: false
90
- },
91
- clearLabel: {},
92
- emptyText: {},
93
- label: {},
94
- isLabelHidden: {
95
- type: Boolean,
96
- default: false
97
- },
98
- description: {},
99
- width: {},
100
- name: {}
101
- },
102
- emits: [
103
- "update:modelValue",
104
- "change",
105
- "search"
106
- ],
107
- setup(__props, { emit: __emit }) {
108
- const props = __props;
109
- const emit = __emit;
110
- const slots = useSlots();
111
- const selectorId = `astryx-selector-${useId()}`;
112
- const listboxId = `${selectorId}-listbox`;
113
- const messages = useAstryxMessages();
114
- const resolvedPlaceholder = computed(() => props.placeholder ?? messages.value.selector.placeholder);
115
- const resolvedSearchPlaceholder = computed(() => props.searchPlaceholder ?? messages.value.selector.search);
116
- const resolvedClearLabel = computed(() => props.clearLabel ?? messages.value.selector.clear);
117
- const resolvedEmptyText = computed(() => props.emptyText ?? messages.value.selector.empty);
118
- const fieldRef = useTemplateRef("fieldRef");
119
- const listboxRef = useTemplateRef("listboxRef");
120
- const searchInputRef = useTemplateRef("searchInputRef");
121
- const sheetSlot = useTemplateRef("sheetSlot");
122
- const isSheet = computed(() => props.presentation === "bottom-sheet");
123
- const sheetLabel = computed(() => props.label || resolvedPlaceholder.value);
124
- const isEnabled = computed(() => !props.disabled);
125
- const isSearchable = computed(() => props.searchable);
126
- function isSection(entry) {
127
- return typeof entry === "object" && entry !== null && "type" in entry && entry.type === "section";
128
- }
129
- function asOption(entry) {
130
- if (typeof entry === "string") return {
131
- value: entry,
132
- label: entry
133
- };
134
- return entry;
135
- }
136
- const normalizedEntries = computed(() => props.options.map((entry) => {
137
- if (isSection(entry)) return {
138
- ...entry,
139
- options: entry.options.map(asOption)
140
- };
141
- return asOption(entry);
142
- }));
143
- const flatOptions = computed(() => normalizedEntries.value.flatMap((entry) => isSection(entry) ? entry.options : [entry]));
144
- const comboboxOptions = computed(() => flatOptions.value.map((opt) => ({
145
- value: opt.value,
146
- label: opt.label,
147
- disabled: opt.disabled ?? false
148
- })));
149
- const modelValueRef = computed({
150
- get: () => props.modelValue,
151
- set: (value) => {
152
- emit("update:modelValue", value);
153
- emit("change", value);
154
- }
155
- });
156
- const combobox = useCombobox({
157
- options: comboboxOptions,
158
- modelValue: modelValueRef,
159
- isEnabled,
160
- isSearchable,
161
- onChange: (value) => {
162
- modelValueRef.value = value;
163
- },
164
- onOpenChange: (isOpen) => {
165
- if (isOpen && props.searchable) nextTick(() => {
166
- searchInputRef.value?.focus();
167
- });
168
- }
169
- });
170
- const sheetOpen = computed({
171
- get: () => isSheet.value && combobox.isOpen.value,
172
- set: (open) => {
173
- if (!open && combobox.isOpen.value) combobox.close();
174
- }
175
- });
176
- const popoverOpen = computed(() => combobox.isOpen.value && !isSheet.value);
177
- const listboxTarget = computed(() => isSheet.value && sheetSlot.value ? sheetSlot.value : "body");
178
- const { position } = usePositionedLayer({
179
- anchor: fieldRef,
180
- layer: listboxRef,
181
- isOpen: popoverOpen,
182
- placement: computed(() => "below"),
183
- alignment: computed(() => "start"),
184
- gap: 4
185
- });
186
- useDismiss({
187
- container: listboxRef,
188
- trigger: fieldRef,
189
- isEnabled: popoverOpen,
190
- enableEscape: ref(true),
191
- onDismiss: () => {
192
- combobox.close();
193
- }
194
- });
195
- const selectedOption = computed(() => {
196
- if (props.modelValue == null) return null;
197
- return flatOptions.value.find((opt) => opt.value === props.modelValue) ?? null;
198
- });
199
- const fieldLabel = computed(() => props.label || resolvedPlaceholder.value);
200
- const hideLabel = computed(() => props.isLabelHidden || !props.label);
201
- const statusType = computed(() => {
202
- const status = props.status;
203
- if (status == null || status === "default") return "default";
204
- if (typeof status === "string") return status;
205
- return status.type;
206
- });
207
- const fieldStatus = computed(() => {
208
- const status = props.status;
209
- if (status && typeof status === "object") return status;
210
- if (!props.statusMessage || statusType.value === "default") return void 0;
211
- return {
212
- type: statusType.value,
213
- message: props.statusMessage
214
- };
215
- });
216
- const displayRows = computed(() => {
217
- const indexByValue = new Map(combobox.filteredOptions.value.map((option, index) => [option.value, index]));
218
- const rows = [];
219
- for (const entry of normalizedEntries.value) {
220
- if (isSection(entry)) {
221
- const children = entry.options.filter((option) => indexByValue.has(option.value));
222
- if (children.length === 0) continue;
223
- rows.push({
224
- kind: "section",
225
- title: entry.title
226
- });
227
- for (const option of children) rows.push({
228
- kind: "option",
229
- option,
230
- index: indexByValue.get(option.value)
231
- });
232
- continue;
233
- }
234
- if (!indexByValue.has(entry.value)) continue;
235
- rows.push({
236
- kind: "option",
237
- option: entry,
238
- index: indexByValue.get(entry.value)
239
- });
240
- }
241
- return rows;
242
- });
243
- const displayText = computed(() => {
244
- return selectedOption.value?.label ?? resolvedPlaceholder.value;
245
- });
246
- const isEmpty = computed(() => {
247
- return combobox.filteredOptions.value.length === 0;
248
- });
249
- function onTriggerClick() {
250
- if (isEnabled.value) combobox.toggle();
251
- }
252
- function onTriggerKeyDown(event) {
253
- combobox.onKeyDown(event);
254
- }
255
- function onOptionClick(option) {
256
- if (!option.disabled) combobox.select(option.value);
257
- }
258
- function onClear(event) {
259
- event.stopPropagation();
260
- modelValueRef.value = null;
261
- combobox.close();
262
- }
263
- function onSearchInput(event) {
264
- const target = event.target;
265
- combobox.setSearchQuery(target.value);
266
- emit("search", target.value);
267
- }
268
- function getOptionId(index) {
269
- return `${listboxId}-option-${index}`;
270
- }
271
- const anchorWidth = ref(0);
272
- function syncAnchorWidth() {
273
- anchorWidth.value = fieldRef.value?.getBoundingClientRect().width ?? 0;
274
- }
275
- const listboxStyle = computed(() => isSheet.value ? void 0 : {
276
- top: `${position.value.top}px`,
277
- left: `${position.value.left}px`,
278
- minWidth: anchorWidth.value > 0 ? `${anchorWidth.value}px` : void 0
279
- });
280
- watch(combobox.isOpen, (open) => {
281
- if (open) syncAnchorWidth();
282
- }, { flush: "pre" });
283
- onMounted(syncAnchorWidth);
284
- watch(() => combobox.activeIndex.value, (index) => {
285
- if (index >= 0 && combobox.isOpen.value) nextTick(() => {
286
- const listbox = listboxRef.value;
287
- const optionEl = listbox?.querySelector(`#${getOptionId(index)}`);
288
- if (!listbox || !optionEl) return;
289
- const listboxRect = listbox.getBoundingClientRect();
290
- const optionRect = optionEl.getBoundingClientRect();
291
- if (optionRect.top < listboxRect.top) listbox.scrollTop -= listboxRect.top - optionRect.top;
292
- else if (optionRect.bottom > listboxRect.bottom) listbox.scrollTop += optionRect.bottom - listboxRect.bottom;
293
- });
294
- });
295
- return (_ctx, _cache) => {
296
- return openBlock(), createBlock(_sfc_main$2, {
297
- class: normalizeClass(["astryx-selector", [
298
- `size-${props.size}`,
299
- `status-${statusType.value}`,
300
- `variant-${props.variant}`
301
- ]]),
302
- label: fieldLabel.value,
303
- "input-id": selectorId,
304
- description: props.description,
305
- "is-label-hidden": hideLabel.value,
306
- "is-disabled": props.disabled,
307
- status: fieldStatus.value,
308
- "status-variant": props.statusVariant,
309
- width: props.width
310
- }, {
311
- default: withCtx(() => [
312
- createElementVNode("div", {
313
- ref_key: "fieldRef",
314
- ref: fieldRef,
315
- class: normalizeClass(["astryx-selector-field", {
316
- "is-open": unref(combobox).isOpen.value,
317
- "is-disabled": props.disabled,
318
- "is-ghost": props.variant === "ghost"
319
- }])
320
- }, [createElementVNode("button", {
321
- id: selectorId,
322
- type: "button",
323
- class: normalizeClass(["astryx-selector-trigger", {
324
- "is-open": unref(combobox).isOpen.value,
325
- "is-disabled": props.disabled
326
- }]),
327
- disabled: props.disabled,
328
- "aria-haspopup": "listbox",
329
- "aria-expanded": unref(combobox).isOpen.value,
330
- "aria-controls": listboxId,
331
- "aria-label": props.label,
332
- "aria-activedescendant": unref(combobox).activeIndex.value >= 0 ? getOptionId(unref(combobox).activeIndex.value) : void 0,
333
- title: props.disabledReason,
334
- onClick: onTriggerClick,
335
- onKeydown: onTriggerKeyDown
336
- }, [createElementVNode("span", { class: normalizeClass(["astryx-selector-value", {
337
- "is-placeholder": !selectedOption.value,
338
- "is-rich": unref(slots).selected
339
- }]) }, [unref(slots).selected ? renderSlot(_ctx.$slots, "selected", { option: selectedOption.value }, void 0, void 0, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(displayText.value), 1)], 64))], 2), _cache[1] || (_cache[1] = createElementVNode("span", {
340
- class: "astryx-selector-icon",
341
- "aria-hidden": "true"
342
- }, [createElementVNode("svg", {
343
- width: "16",
344
- height: "16",
345
- viewBox: "0 0 16 16",
346
- fill: "none"
347
- }, [createElementVNode("path", {
348
- d: "M4 6L8 10L12 6",
349
- stroke: "currentColor",
350
- "stroke-width": "1.5",
351
- "stroke-linecap": "round",
352
- "stroke-linejoin": "round"
353
- })])], -1))], 42, _hoisted_1), props.clearable && selectedOption.value ? (openBlock(), createElementBlock("button", {
354
- key: 0,
355
- type: "button",
356
- class: "astryx-selector-clear",
357
- "aria-label": resolvedClearLabel.value,
358
- onClick: onClear
359
- }, [..._cache[2] || (_cache[2] = [createElementVNode("svg", {
360
- width: "16",
361
- height: "16",
362
- viewBox: "0 0 16 16",
363
- fill: "none"
364
- }, [createElementVNode("path", {
365
- d: "M12 4L4 12M4 4L12 12",
366
- stroke: "currentColor",
367
- "stroke-width": "1.5",
368
- "stroke-linecap": "round"
369
- })], -1)])], 8, _hoisted_2)) : createCommentVNode("v-if", true)], 2),
370
- isSheet.value ? (openBlock(), createBlock(_sfc_main$1, {
371
- key: 0,
372
- "is-open": sheetOpen.value,
373
- "onUpdate:isOpen": _cache[0] || (_cache[0] = ($event) => sheetOpen.value = $event),
374
- height: "hug",
375
- label: sheetLabel.value,
376
- padding: 2
377
- }, {
378
- default: withCtx(() => [createElementVNode("div", {
379
- ref_key: "sheetSlot",
380
- ref: sheetSlot,
381
- class: "astryx-selector-sheet"
382
- }, [createElementVNode("div", _hoisted_3, toDisplayString(sheetLabel.value), 1)], 512)]),
383
- _: 1
384
- }, 8, ["is-open", "label"])) : createCommentVNode("v-if", true),
385
- (openBlock(), createBlock(Teleport, { to: listboxTarget.value }, [withDirectives(createElementVNode("div", {
386
- id: listboxId,
387
- ref_key: "listboxRef",
388
- ref: listboxRef,
389
- role: "listbox",
390
- class: normalizeClass(["astryx-selector-listbox", { "is-sheet": isSheet.value }]),
391
- "data-placement": isSheet.value ? void 0 : unref(position).placement,
392
- style: normalizeStyle(listboxStyle.value),
393
- tabindex: "-1"
394
- }, [props.searchable ? (openBlock(), createElementBlock("div", _hoisted_5, [createElementVNode("input", {
395
- id: `${selectorId}-search`,
396
- ref_key: "searchInputRef",
397
- ref: searchInputRef,
398
- type: "text",
399
- class: "astryx-selector-search-input",
400
- "aria-label": resolvedSearchPlaceholder.value,
401
- placeholder: resolvedSearchPlaceholder.value,
402
- value: unref(combobox).searchQuery.value,
403
- onInput: onSearchInput
404
- }, null, 40, _hoisted_6)])) : createCommentVNode("v-if", true), !isEmpty.value ? (openBlock(), createElementBlock("div", _hoisted_7, [(openBlock(true), createElementBlock(Fragment, null, renderList(displayRows.value, (row, rowIndex) => {
405
- return openBlock(), createElementBlock(Fragment, { key: row.kind === "section" ? `section-${rowIndex}` : row.option?.value }, [row.kind === "section" ? (openBlock(), createElementBlock("div", _hoisted_8, toDisplayString(row.title), 1)) : row.option && row.index != null ? (openBlock(), createElementBlock("div", {
406
- key: 1,
407
- id: getOptionId(row.index),
408
- role: "option",
409
- tabindex: "0",
410
- class: normalizeClass(["astryx-selector-option", {
411
- "is-active": row.index === unref(combobox).activeIndex.value,
412
- "is-selected": row.option.value === props.modelValue,
413
- "is-disabled": row.option.disabled
414
- }]),
415
- "aria-selected": row.option.value === props.modelValue,
416
- "aria-disabled": row.option.disabled,
417
- onClick: ($event) => onOptionClick(row.option),
418
- onKeydown: [withKeys(($event) => onOptionClick(row.option), ["enter"]), withKeys(withModifiers(($event) => onOptionClick(row.option), ["prevent"]), ["space"])]
419
- }, [unref(slots).option ? renderSlot(_ctx.$slots, "option", {
420
- option: row.option,
421
- isActive: row.index === unref(combobox).activeIndex.value,
422
- isSelected: row.option.value === props.modelValue
423
- }, void 0, void 0, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
424
- row.option.icon ? (openBlock(), createElementBlock("span", {
425
- key: 0,
426
- class: normalizeClass(["astryx-selector-option-icon", row.option.icon]),
427
- "aria-hidden": "true"
428
- }, null, 2)) : createCommentVNode("v-if", true),
429
- createElementVNode("span", _hoisted_10, toDisplayString(row.option.label), 1),
430
- row.option.description ? (openBlock(), createElementBlock("span", _hoisted_11, toDisplayString(row.option.description), 1)) : createCommentVNode("v-if", true)
431
- ], 64))], 42, _hoisted_9)) : createCommentVNode("v-if", true)], 64);
432
- }), 128))])) : (openBlock(), createElementBlock("div", _hoisted_12, [unref(slots).empty ? renderSlot(_ctx.$slots, "empty", {}, void 0, void 0, 0) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(resolvedEmptyText.value), 1)], 64))]))], 14, _hoisted_4), [[vShow, unref(combobox).isOpen.value]])], 8, ["to"])),
433
- props.name ? (openBlock(), createElementBlock("select", {
434
- key: 1,
435
- id: `${selectorId}-hidden-select`,
436
- name: props.name,
437
- value: props.modelValue ?? "",
438
- "aria-label": props.label || resolvedPlaceholder.value,
439
- tabindex: "-1",
440
- style: {
441
- "position": "absolute",
442
- "left": "-9999px",
443
- "width": "1px",
444
- "height": "1px"
445
- }
446
- }, [_cache[3] || (_cache[3] = createElementVNode("option", { value: "" }, null, -1)), (openBlock(true), createElementBlock(Fragment, null, renderList(flatOptions.value, (option) => {
447
- return openBlock(), createElementBlock("option", {
448
- key: option.value,
449
- value: option.value
450
- }, toDisplayString(option.label), 9, _hoisted_14);
451
- }), 128))], 8, _hoisted_13)) : createCommentVNode("v-if", true)
452
- ]),
453
- _: 3
454
- }, 8, [
455
- "class",
456
- "label",
457
- "description",
458
- "is-label-hidden",
459
- "is-disabled",
460
- "status",
461
- "status-variant",
462
- "width"
463
- ]);
464
- };
465
- }
466
- });
467
- //#endregion
468
- export { _sfc_main as t };
@@ -1,53 +0,0 @@
1
- import { computed, createBlock, defineComponent, normalizeClass, normalizeStyle, openBlock, renderSlot, resolveDynamicComponent, withCtx } from "vue";
2
- import "../styles/text.css";
3
- //#region src/Text/Text.vue
4
- const _sfc_main = /*@__PURE__*/ defineComponent({
5
- __name: "Text",
6
- props: {
7
- type: { default: "body" },
8
- size: {},
9
- color: { default: "primary" },
10
- weight: {},
11
- textWrap: {},
12
- wordBreak: {},
13
- hasStrikethrough: { type: Boolean },
14
- hasTabularNumbers: { type: Boolean },
15
- display: { default: "inline" },
16
- as: { default: "span" },
17
- maxLines: { default: 0 }
18
- },
19
- setup(__props) {
20
- const props = __props;
21
- const weight = computed(() => props.weight === "normal" ? "regular" : props.weight);
22
- const isBlock = computed(() => props.display === "block" || props.maxLines > 0);
23
- const classes = computed(() => [
24
- "astryx-text",
25
- `astryx-text--type-${props.type}`,
26
- props.size && `astryx-text--size-${props.size}`,
27
- `astryx-text--color-${props.color}`,
28
- weight.value && `astryx-text--weight-${weight.value}`,
29
- props.textWrap && `astryx-text--wrap-${props.textWrap}`,
30
- props.wordBreak && `astryx-text--word-${props.wordBreak}`,
31
- props.hasStrikethrough && "astryx-text--strike",
32
- props.hasTabularNumbers && "astryx-text--tabular",
33
- isBlock.value && "astryx-text--block",
34
- props.maxLines === 1 && "astryx-text--truncate-single",
35
- props.maxLines > 1 && "astryx-text--truncate-multi"
36
- ]);
37
- const style = computed(() => {
38
- if (props.maxLines > 1) return { WebkitLineClamp: props.maxLines };
39
- return {};
40
- });
41
- return (_ctx, _cache) => {
42
- return openBlock(), createBlock(resolveDynamicComponent(__props.as), {
43
- class: normalizeClass(["astryx-text", classes.value]),
44
- style: normalizeStyle(style.value)
45
- }, {
46
- default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
47
- _: 3
48
- }, 8, ["class", "style"]);
49
- };
50
- }
51
- });
52
- //#endregion
53
- export { _sfc_main as t };