@astryx-vue/core 0.2.5 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (409) hide show
  1. package/THIRD_PARTY_NOTICES.md +9 -0
  2. package/dist/AlertDialog/index.js +1 -1
  3. package/dist/{AlertDialog-B6UeBCE7.js → AlertDialog-RAVA_cT1.js} +13 -7
  4. package/dist/AppShell/index.d.ts +1 -1
  5. package/dist/AppShell/index.js +1 -1
  6. package/dist/{AppShell-CeBmB0Q9.js → AppShell-0wTvOo3H.js} +3 -3
  7. package/dist/Avatar/index.d.ts +2 -2
  8. package/dist/Avatar/index.js +1 -1
  9. package/dist/{Avatar-BB4Z4LF1.js → Avatar-pPZ4dI_s.js} +161 -16
  10. package/dist/AvatarGroup/index.d.ts +2 -2
  11. package/dist/AvatarGroup/index.js +1 -1
  12. package/dist/AvatarGroup-B--NQSB3.js +98 -0
  13. package/dist/Banner/index.d.ts +1 -1
  14. package/dist/Banner/index.js +1 -1
  15. package/dist/{Banner-CJe9Im5a.js → Banner-GbGxrqQO.js} +1 -1
  16. package/dist/BottomSheet/index.d.ts +1 -1
  17. package/dist/BottomSheet/index.js +2 -2
  18. package/dist/{BottomSheet-o7xw-TOi.js → BottomSheet-JYMB_Ofl.js} +12 -9
  19. package/dist/{BottomSheet-BV6vfgGu.js → BottomSheet-pt7m4CvC.js} +3 -1
  20. package/dist/Breadcrumbs/index.d.ts +1 -1
  21. package/dist/Breadcrumbs/index.js +2 -2
  22. package/dist/{Breadcrumbs-D6G7f5WL.js → Breadcrumbs-DIm4figq.js} +22 -11
  23. package/dist/Button/index.d.ts +1 -1
  24. package/dist/Button/index.js +1 -1
  25. package/dist/{Button-DrqeomlE.js → Button-B6Hj_O_s.js} +3 -1
  26. package/dist/ButtonGroup/index.d.ts +1 -1
  27. package/dist/Calendar/index.d.ts +1 -1
  28. package/dist/Calendar/index.js +1 -1
  29. package/dist/{Calendar-DmTeM7PO.js → Calendar-B7vIowKq.js} +2 -2
  30. package/dist/Card/index.d.ts +1 -1
  31. package/dist/Card/index.js +1 -1
  32. package/dist/{Card-HAjZQg2s.js → Card-B-I24X9S.js} +2 -0
  33. package/dist/Carousel/index.d.ts +1 -1
  34. package/dist/Carousel/index.js +1 -1
  35. package/dist/{Carousel-CIKrcA2r.js → Carousel-CA8zpD9v.js} +48 -31
  36. package/dist/Center/index.d.ts +1 -1
  37. package/dist/Chat/index.d.ts +2 -2
  38. package/dist/Chat/index.js +1 -1
  39. package/dist/{Chat-BFox3u9D.js → Chat-Bmna9EOA.js} +98 -61
  40. package/dist/CheckboxInput/index.d.ts +1 -1
  41. package/dist/CheckboxInput/index.js +1 -1
  42. package/dist/{CheckboxInput-25Q8ItH-.js → CheckboxInput-BS9J6edf.js} +2 -2
  43. package/dist/CheckboxList/index.d.ts +1 -1
  44. package/dist/CheckboxList/index.js +1 -1
  45. package/dist/{CheckboxList-BlPf7vPe.js → CheckboxList-CX1i_jVP.js} +8 -7
  46. package/dist/Citation/index.js +1 -1
  47. package/dist/{Citation-BG-vg9ia.js → Citation-Djgwa0ko.js} +1 -1
  48. package/dist/ClickableCard/index.d.ts +1 -1
  49. package/dist/ClickableCard/index.js +1 -1
  50. package/dist/{ClickableCard-Bhds4RRe.js → ClickableCard-DUsC-j03.js} +1 -1
  51. package/dist/Code/index.d.ts +1 -1
  52. package/dist/Code/index.js +1 -1
  53. package/dist/{CodeBlock-B2pnEOJY.js → CodeBlock-D0BFubut.js} +5 -1
  54. package/dist/Collapsible/index.d.ts +2 -2
  55. package/dist/Collapsible/index.js +2 -2
  56. package/dist/{Collapsible-3YerR-FO.js → Collapsible-Cov3Pyq5.js} +67 -22
  57. package/dist/CommandPalette/index.d.ts +2 -2
  58. package/dist/CommandPalette/index.js +1 -1
  59. package/dist/{CommandPalette-DKgHzmJk.js → CommandPalette-YHsUNg3V.js} +60 -20
  60. package/dist/ComplexSelector/index.d.ts +1 -1
  61. package/dist/ComplexSelector/index.js +1 -1
  62. package/dist/{ComplexSelector-Dv44FFhN.js → ComplexSelector-DWLdKPGI.js} +41 -9
  63. package/dist/ContextMenu/index.d.ts +1 -1
  64. package/dist/ContextMenu/index.js +2 -2
  65. package/dist/{ContextMenu-BeJO5HYx.js → ContextMenu-Bq9b3Ti5.js} +15 -8
  66. package/dist/DateInput/index.d.ts +1 -1
  67. package/dist/DateInput/index.js +1 -1
  68. package/dist/DateInput-DT518j5E.js +841 -0
  69. package/dist/DateRangeInput/index.d.ts +1 -1
  70. package/dist/DateRangeInput/index.js +1 -1
  71. package/dist/{DateRangeInput-Cp6AZfew.js → DateRangeInput-Bqi5tlIA.js} +188 -140
  72. package/dist/DateTimeInput/index.d.ts +1 -1
  73. package/dist/DateTimeInput/index.js +1 -1
  74. package/dist/{DateTimeInput-B6MPPp76.js → DateTimeInput-A7m2O3bg.js} +43 -12
  75. package/dist/Dialog/index.d.ts +1 -1
  76. package/dist/Dialog/index.js +2 -2
  77. package/dist/{Dialog-CvRplBo-.js → Dialog-BiOSKQso.js} +9 -5
  78. package/dist/{Dialog-rfUt3y8P.js → Dialog-FGHfDu5M.js} +1 -1
  79. package/dist/Divider/index.d.ts +1 -1
  80. package/dist/DropdownMenu/index.js +3 -3
  81. package/dist/{DropdownMenu-6E9jFdFe.js → DropdownMenu-CoOQVlRp.js} +9 -10
  82. package/dist/{DropdownMenu--lnUeJEG.js → DropdownMenu-DEb2dSSP.js} +44 -33
  83. package/dist/EmptyState/index.js +1 -1
  84. package/dist/{EmptyState-0RWymQUS.js → EmptyState-C_GH7IV5.js} +2 -2
  85. package/dist/Field/index.d.ts +2 -2
  86. package/dist/Field/index.js +2 -2
  87. package/dist/{Field-8zRxzDHE.js → Field-D5gUEGw4.js} +1 -1
  88. package/dist/FieldInfoTip-Ds-sW_jY.js +98 -0
  89. package/dist/FieldLabel-BNeXRuGH.js +95 -0
  90. package/dist/FieldStatus/index.d.ts +1 -1
  91. package/dist/FileInput/index.d.ts +1 -1
  92. package/dist/FileInput/index.js +1 -1
  93. package/dist/FileInput-BpdiO1V8.js +285 -0
  94. package/dist/Grid/index.d.ts +1 -1
  95. package/dist/Heading/index.d.ts +1 -1
  96. package/dist/Heading/index.js +1 -1
  97. package/dist/{Heading-B9C3LZlS.js → Heading-BnwWEWkp.js} +7 -2
  98. package/dist/HoverCard/index.d.ts +2 -2
  99. package/dist/HoverCard/index.js +2 -2
  100. package/dist/HoverCard-ycY50pRN.js +492 -0
  101. package/dist/IconButton/index.js +1 -1
  102. package/dist/{IconButton-BNQuz9W_.js → IconButton-DDNgNl7B.js} +1 -1
  103. package/dist/InputGroup/index.d.ts +1 -1
  104. package/dist/InputGroup/index.js +1 -1
  105. package/dist/{InputGroup-BzR6JRZb.js → InputGroup-CA03Smrs.js} +1 -1
  106. package/dist/InternationalizationProvider/index.d.ts +2 -0
  107. package/dist/InternationalizationProvider/index.js +2 -0
  108. package/dist/InternationalizationProvider-DJay_w3B.js +170 -0
  109. package/dist/{Item-DrYJL1TG.js → Item-KhFKX9St.js} +15 -6
  110. package/dist/LayerProvider/index.d.ts +2 -0
  111. package/dist/LayerProvider/index.js +3 -0
  112. package/dist/LayerProvider-D9NsQFzL.js +73 -0
  113. package/dist/Layout/index.d.ts +1 -1
  114. package/dist/Layout/index.js +2 -2
  115. package/dist/{Layout-Bed3kP0M.js → Layout-C6RHllr-.js} +2 -2
  116. package/dist/{LayoutPanel-C34uOq3e.js → LayoutPanel-DXOsaeQb.js} +4 -1
  117. package/dist/Lightbox/index.js +1 -1
  118. package/dist/{Lightbox-Br3o0SyQ.js → Lightbox-DTF9EdTG.js} +2 -2
  119. package/dist/Link/index.d.ts +2 -2
  120. package/dist/Link/index.js +1 -1
  121. package/dist/{Link-DCZ6922-.js → Link-BqHCtiyt.js} +26 -7
  122. package/dist/LinkProvider/index.d.ts +2 -0
  123. package/dist/LinkProvider/index.js +3 -0
  124. package/dist/LinkProvider-Qsps9_mL.js +17 -0
  125. package/dist/List/index.d.ts +1 -1
  126. package/dist/List/index.js +2 -2
  127. package/dist/{ListItem-CcRHWuEm.js → ListItem-8RWT8XAG.js} +1 -1
  128. package/dist/Markdown/index.d.ts +1 -1
  129. package/dist/Markdown/index.js +1 -1
  130. package/dist/{Markdown-Bz0R3kNj.js → Markdown-CvtN7HnF.js} +4 -4
  131. package/dist/MetadataList/index.js +1 -1
  132. package/dist/{MetadataList-CFaocx6j.js → MetadataList-B-OelQlt.js} +1 -1
  133. package/dist/MobileNav/index.js +1 -1
  134. package/dist/{MobileNavToggle-Dh3uLivq.js → MobileNavToggle-DxGz0xKA.js} +11 -5
  135. package/dist/MoreMenu/index.d.ts +1 -1
  136. package/dist/MoreMenu/index.js +1 -1
  137. package/dist/{MoreMenu-B95nRSe8.js → MoreMenu-Dlb7MLlW.js} +33 -20
  138. package/dist/MultiSelector/index.d.ts +1 -1
  139. package/dist/MultiSelector/index.js +1 -1
  140. package/dist/{MultiSelector-DuF5TECE.js → MultiSelector-BtAUfQ3t.js} +122 -54
  141. package/dist/{NavDisclosure-C6sPZ89n.js → NavDisclosure-C_fugrQ3.js} +1 -2
  142. package/dist/{NavHeadingSurface-Cb3x9iDx.js → NavHeadingSurface-B3yJspSN.js} +18 -11
  143. package/dist/NavItem/index.d.ts +1 -1
  144. package/dist/NavItem/index.js +2 -2
  145. package/dist/{NavItem-FFOisITc.js → NavItem-BBIGSvDj.js} +7 -3
  146. package/dist/NavMenu/index.d.ts +1 -1
  147. package/dist/NavMenu/index.js +3 -3
  148. package/dist/{NavMenu-ClIgMaxE.js → NavMenu-ThXguZAz.js} +7 -3
  149. package/dist/{NavMenuItem-E7S8gBh-.js → NavMenuItem-BvJNsDFC.js} +8 -4
  150. package/dist/NumberInput/index.d.ts +1 -1
  151. package/dist/NumberInput/index.js +1 -1
  152. package/dist/NumberInput-AZ9x3oja.js +473 -0
  153. package/dist/Outline/index.js +1 -1
  154. package/dist/{Outline-DBUuchi9.js → Outline-755h-lMP.js} +1 -1
  155. package/dist/OverflowList/index.d.ts +1 -1
  156. package/dist/OverflowList/index.js +1 -1
  157. package/dist/{OverflowList-aDd_oem0.js → OverflowList-NmrSMbxb.js} +10 -6
  158. package/dist/Pagination/index.d.ts +1 -1
  159. package/dist/Pagination/index.js +1 -1
  160. package/dist/{Pagination-CNe9F6Fl.js → Pagination-DqwNQFRp.js} +29 -14
  161. package/dist/Popover/index.d.ts +3 -3
  162. package/dist/Popover/index.js +2 -2
  163. package/dist/Popover-DJf8POzL.js +308 -0
  164. package/dist/PowerSearch/index.d.ts +1 -1
  165. package/dist/PowerSearch/index.js +1 -1
  166. package/dist/{PowerSearch-C6U8Sq1Y.js → PowerSearch-DvjiPqMZ.js} +44 -31
  167. package/dist/ProgressBar/index.d.ts +1 -1
  168. package/dist/ProgressBar/index.js +1 -1
  169. package/dist/{ProgressBar-DF6WZNCI.js → ProgressBar-CVLzdoBK.js} +9 -3
  170. package/dist/Radio/index.d.ts +1 -1
  171. package/dist/Radio/index.js +1 -1
  172. package/dist/{RadioGroup-CBqUPq_L.js → RadioGroup-Bfu6JSNV.js} +60 -24
  173. package/dist/RadioList/index.d.ts +1 -1
  174. package/dist/RadioList/index.js +1 -1
  175. package/dist/{RadioList-CPOJn9Th.js → RadioList-xY1cwLdZ.js} +4 -1
  176. package/dist/Resizable/index.d.ts +1 -1
  177. package/dist/Resizable/index.js +1 -1
  178. package/dist/{ResizeHandle-DYy0e3v9.js → ResizeHandle-q4nD_586.js} +1 -1
  179. package/dist/ScrollableArea/index.d.ts +1 -1
  180. package/dist/ScrollableArea/index.js +1 -1
  181. package/dist/{ScrollableArea-DQDYjnxO.js → ScrollableArea-D4dCJv9I.js} +14 -3
  182. package/dist/Scrollbars/index.d.ts +2 -0
  183. package/dist/Scrollbars/index.js +3 -0
  184. package/dist/Scrollbars-D_93hJYK.js +75 -0
  185. package/dist/Section/index.d.ts +2 -1
  186. package/dist/Section/index.js +1 -1
  187. package/dist/{Section-C48Wqfc7.js → Section-v2QuWBBJ.js} +1 -1
  188. package/dist/SegmentedControl/index.d.ts +1 -1
  189. package/dist/SelectableCard/index.d.ts +1 -1
  190. package/dist/SelectableCard/index.js +1 -1
  191. package/dist/{SelectableCard-Bj5s_tIN.js → SelectableCard-Cku4dRzc.js} +1 -1
  192. package/dist/Selector/index.d.ts +1 -1
  193. package/dist/Selector/index.js +1 -1
  194. package/dist/{Selector-5N-hq2nF.js → Selector-DJ2BhUTV.js} +90 -31
  195. package/dist/SideNav/index.d.ts +2 -2
  196. package/dist/SideNav/index.js +1 -1
  197. package/dist/{SideNav-CT9lfspi.js → SideNav-BF8mYDxl.js} +76 -44
  198. package/dist/Slider/index.d.ts +1 -1
  199. package/dist/Slider/index.js +1 -1
  200. package/dist/{Slider-D8h_RKcF.js → Slider-DWobsPgm.js} +2 -2
  201. package/dist/Stack/index.d.ts +2 -2
  202. package/dist/Stack/index.js +2 -2
  203. package/dist/{Stack-iv52y_Jv.js → Stack-CTsTFfar.js} +18 -3
  204. package/dist/{Stack-gGcYdOAh.js → Stack-kQlYbbL4.js} +22 -7
  205. package/dist/StatusDot/index.d.ts +1 -1
  206. package/dist/StatusDot/index.js +1 -1
  207. package/dist/StatusDot-BPUhMOff.js +45 -0
  208. package/dist/Stepper/index.d.ts +1 -1
  209. package/dist/Stepper/index.js +1 -1
  210. package/dist/{Stepper-BqhVCgC-.js → Stepper-CE8dHysu.js} +1 -1
  211. package/dist/Switch/index.d.ts +1 -1
  212. package/dist/Switch/index.js +1 -1
  213. package/dist/{Switch-SesQzPGZ.js → Switch-DaVPRxvN.js} +2 -2
  214. package/dist/TabList/index.d.ts +2 -2
  215. package/dist/TabList/index.js +1 -1
  216. package/dist/{TabList-BlzkrObv.js → TabList-DIkK9sgK.js} +100 -23
  217. package/dist/Table/index.d.ts +3 -3
  218. package/dist/Table/index.js +2 -2
  219. package/dist/{Table-CsdH8fCB.js → Table-fecqnm7P.js} +870 -241
  220. package/dist/Text/index.d.ts +2 -2
  221. package/dist/Text/index.js +1 -1
  222. package/dist/{Text-DIzZw6FA.js → Text-CV3LmscH.js} +7 -2
  223. package/dist/TextArea/index.d.ts +1 -1
  224. package/dist/TextArea/index.js +1 -1
  225. package/dist/{TextArea-CPwSytdO.js → TextArea-Ab5Sw60T.js} +24 -14
  226. package/dist/TextInput/index.d.ts +1 -1
  227. package/dist/TextInput/index.js +1 -1
  228. package/dist/{TextInput-BasnjVvy.js → TextInput-zFT1_qgI.js} +21 -24
  229. package/dist/Thumbnail/index.js +1 -1
  230. package/dist/{Thumbnail-BnQwX1cQ.js → Thumbnail-C3NnJUFG.js} +5 -5
  231. package/dist/TimeField-CoHDGmsP.js +435 -0
  232. package/dist/TimeInput/index.d.ts +1 -1
  233. package/dist/TimeInput/index.js +1 -1
  234. package/dist/{TimeInput-C9gptCOK.js → TimeInput-D2k3Ux3p.js} +14 -2
  235. package/dist/Timer/index.d.ts +1 -1
  236. package/dist/Timer/index.js +1 -1
  237. package/dist/{Timer-kxzQx3tp.js → Timer-avMQk5DN.js} +1 -1
  238. package/dist/Timestamp/index.d.ts +1 -1
  239. package/dist/Timestamp/index.js +1 -1
  240. package/dist/{Timestamp-D7bd_nF3.js → Timestamp-xpQKCk0d.js} +7 -7
  241. package/dist/Toast/index.d.ts +3 -2
  242. package/dist/Toast/index.js +1 -1
  243. package/dist/{Toast-C2ML-bmi.js → Toast-BuqIZV5z.js} +136 -38
  244. package/dist/ToggleButton/index.d.ts +1 -1
  245. package/dist/ToggleButton/index.js +1 -1
  246. package/dist/{ToggleButton-BB_I8EdM.js → ToggleButton-B-C-Q7XP.js} +1 -1
  247. package/dist/Token/index.d.ts +1 -1
  248. package/dist/Token/index.js +1 -1
  249. package/dist/{Token-D2GsI_Ei.js → Token-DsntTYhQ.js} +33 -17
  250. package/dist/Tokenizer/index.d.ts +1 -1
  251. package/dist/Tokenizer/index.js +1 -1
  252. package/dist/Tokenizer-B5C_qY7t.js +585 -0
  253. package/dist/Toolbar/index.d.ts +2 -1
  254. package/dist/Tooltip/index.d.ts +2 -2
  255. package/dist/Tooltip/index.js +2 -2
  256. package/dist/Tooltip-C4Vaqd3G.js +320 -0
  257. package/dist/TopNav/index.d.ts +1 -1
  258. package/dist/TopNav/index.js +1 -1
  259. package/dist/{TopNav-arWFLTBM.js → TopNav-Ciq0l1w7.js} +122 -84
  260. package/dist/TreeList/index.d.ts +1 -1
  261. package/dist/TreeList/index.js +1 -1
  262. package/dist/{TreeList-C9xvMpJZ.js → TreeList-BUz-KZJd.js} +90 -40
  263. package/dist/Typeahead/index.d.ts +1 -1
  264. package/dist/Typeahead/index.js +2 -2
  265. package/dist/Typeahead-JP9RT87x.js +656 -0
  266. package/dist/{TypeaheadMenu-BEObzonz.js → TypeaheadMenu-DBW6rHeO.js} +133 -44
  267. package/dist/composables/index.d.ts +3 -3
  268. package/dist/composables/index.js +12 -7
  269. package/dist/{composables-CWw6t-RJ.js → composables-CbKx9C1Y.js} +424 -4
  270. package/dist/context-C_peZbXf.js +16 -0
  271. package/dist/context-M-er0-Rk.js +99 -0
  272. package/dist/{context-CPh7kE-a.js → context-iABt_ueM.js} +30 -4
  273. package/dist/{index-CLmKfnqf.d.ts → index-0QGtSf3r.d.ts} +2 -0
  274. package/dist/{index-z3uLM1O6.d.ts → index-B1WJxt-n.d.ts} +1 -1
  275. package/dist/{index-BPwD6aBv.d.ts → index-B3Fomy15.d.ts} +2 -2
  276. package/dist/{index-CPwzSbQQ.d.ts → index-B42oE_F-.d.ts} +17 -1
  277. package/dist/{index-EFqQF2Bx.d.ts → index-B4OOtNP8.d.ts} +2 -2
  278. package/dist/index-B7yhzGUT.d.ts +171 -0
  279. package/dist/{index-DFbvnBlf.d.ts → index-B9e52paP.d.ts} +15 -2
  280. package/dist/{index-CEB7Ywvw.d.ts → index-BKnyTWPM.d.ts} +1 -1
  281. package/dist/{index-CsVS37na.d.ts → index-BNbAJV9C.d.ts} +1 -1
  282. package/dist/index-BTK7aStw.d.ts +88 -0
  283. package/dist/{index-BBtJt5_A.d.ts → index-BULhhnGf.d.ts} +1 -1
  284. package/dist/{index-D7-WTV6I.d.ts → index-BVKivP59.d.ts} +2 -2
  285. package/dist/{index-BpH4wvsg.d.ts → index-BgT6mH3U.d.ts} +2 -2
  286. package/dist/{index-Be1czg3M.d.ts → index-BhpAUzUr.d.ts} +47 -7
  287. package/dist/{index-BcJBLWJ0.d.ts → index-BkjSF265.d.ts} +67 -4
  288. package/dist/{index-DxR1FChm.d.ts → index-Bu8NA2SD.d.ts} +49 -6
  289. package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
  290. package/dist/{index-C-QpeUlQ.d.ts → index-C2nbK2AA.d.ts} +52 -7
  291. package/dist/{index-iBLzInje.d.ts → index-C5e-7Obr.d.ts} +1 -1
  292. package/dist/index-CEv_AvOg.d.ts +17 -0
  293. package/dist/{index-Dgg0bHVM.d.ts → index-CICeEoZV.d.ts} +2 -1
  294. package/dist/{index-CB9Srua5.d.ts → index-CL1T2j4y.d.ts} +7 -4
  295. package/dist/{index-DjMwF8ET.d.ts → index-COgrQZIL.d.ts} +7 -1
  296. package/dist/{index-Ca8VIE4l.d.ts → index-CVn0GBdB.d.ts} +1 -1
  297. package/dist/{index-ChWlKHjc.d.ts → index-Cde5JvtX.d.ts} +15 -3
  298. package/dist/index-CitZGSn0.d.ts +39 -0
  299. package/dist/index-CkKPMIeX.d.ts +55 -0
  300. package/dist/{index-FEy8qFSD.d.ts → index-ClNU2Th8.d.ts} +30 -3
  301. package/dist/{index-kaKBOZSU.d.ts → index-Cq31D3fJ.d.ts} +99 -7
  302. package/dist/{index-xfkEuGLY.d.ts → index-CqE4Bf3Q.d.ts} +8 -2
  303. package/dist/{index-DtePJ_w_.d.ts → index-Crp3NFLW.d.ts} +2 -2
  304. package/dist/{index-BlOIC_AM.d.ts → index-CsNi1I8j.d.ts} +6 -0
  305. package/dist/index-Cyb9Du5Z.d.ts +76 -0
  306. package/dist/{index-4TRnFGxv.d.ts → index-D41_xqjs.d.ts} +50 -10
  307. package/dist/{index-eshFLli0.d.ts → index-D97pQbua.d.ts} +7 -0
  308. package/dist/{index-c67ca7eJ.d.ts → index-DEQ5cnUV.d.ts} +1 -1
  309. package/dist/{index-BmAxqw1G.d.ts → index-DG52Bg0W.d.ts} +15 -1
  310. package/dist/{index-Da7Jm8Ht.d.ts → index-DIXAzTKL.d.ts} +1 -1
  311. package/dist/{index-BmmdzwT9.d.ts → index-DNA2l1RN.d.ts} +35 -11
  312. package/dist/{index-B9rqmYxh.d.ts → index-DUaLJO7l.d.ts} +978 -313
  313. package/dist/index-DVmgNb78.d.ts +143 -0
  314. package/dist/{index-CDdRQQF3.d.ts → index-DWh2WC8W.d.ts} +18 -6
  315. package/dist/index-DXpSFlPG.d.ts +78 -0
  316. package/dist/{index-C_2Z65Rp.d.ts → index-DeQwYJbg.d.ts} +39 -2
  317. package/dist/{index-JL4auphT.d.ts → index-GI9xIV9l.d.ts} +2 -2
  318. package/dist/{index-Ctu32CLv.d.ts → index-IBAInumL.d.ts} +93 -56
  319. package/dist/{index-vizlhXVs.d.ts → index-T2FOcOuI.d.ts} +492 -16
  320. package/dist/{index-CA6RbRWx.d.ts → index-TXcNH86P.d.ts} +2 -2
  321. package/dist/{index-BIPc1v82.d.ts → index-TntQsADQ.d.ts} +1 -1
  322. package/dist/index-fAZaRruV.d.ts +125 -0
  323. package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
  324. package/dist/{index-D5N9ikrS.d.ts → index-hCpxKePE.d.ts} +1 -1
  325. package/dist/{index-CpiWVbRZ.d.ts → index-i0tNFWfz.d.ts} +3 -1
  326. package/dist/{index-YmSe1ujk.d.ts → index-lgvUFSCO.d.ts} +1 -1
  327. package/dist/{index-bvr3WHvs.d.ts → index-xrzJC4wm.d.ts} +1 -1
  328. package/dist/{index-BK9T1TPZ.d.ts → index-yT1yiiww.d.ts} +28 -9
  329. package/dist/index.d.ts +80 -76
  330. package/dist/index.js +127 -113
  331. package/dist/link-C4_WogdF.js +18 -0
  332. package/dist/{index-C3GaPqvJ.d.ts → loadCatalog-BGHKG_9N.d.ts} +16 -37
  333. package/dist/{locale-sLw5Caia.js → loadCatalog-CXKqEB9s.js} +25 -65
  334. package/dist/locale/index.d.ts +3 -2
  335. package/dist/locale/index.js +4 -3
  336. package/dist/locale-DgkZEMTn.js +105 -0
  337. package/dist/{searchResultMessage-CCnq-_ce.js → searchResultMessage-hXXNOFJP.js} +2 -2
  338. package/dist/{size-xcIqExkS.js → size-Cpn_wzXi.js} +1 -1
  339. package/dist/{types-3eXh_5os.d.ts → types-0Q_SJv_F.d.ts} +3 -1
  340. package/dist/types-BRfVvZTH.d.ts +108 -0
  341. package/dist/{types-D7QNSqoN.d.ts → types-BTk0WZ0b.d.ts} +8 -0
  342. package/dist/{types-D_J66aPN.d.ts → types-BnNTzEnd.d.ts} +5 -1
  343. package/dist/{types-D9nP_X-c.d.ts → types-Ckih2YJi.d.ts} +9 -2
  344. package/dist/{types-Db3Owy8Q.d.ts → types-OGMYGejX.d.ts} +5 -0
  345. package/dist/{index-nKlTsNfV.d.ts → types-uFMH9NaM.d.ts} +14 -17
  346. package/dist/{useAnchoredListbox-BN9LQnon.js → useAnchoredListbox-DwztMNjP.js} +9 -4
  347. package/dist/useDevWarning-DznOpOHT.js +36 -0
  348. package/dist/useInputContainer-CpgDe2-4.js +51 -0
  349. package/dist/useInputStatusIcon-DBOwxV4x.js +41 -0
  350. package/dist/useInteractiveRole-Cn0Nd5GX.js +25 -0
  351. package/dist/{useMenuDrillIn-BgjJcY3K.js → useMenuDrillIn-DzKGkTho.js} +1 -1
  352. package/dist/{useMenuPress-DUmEy4TB.js → useMenuPress-D-FRNrBW.js} +162 -14
  353. package/dist/useMergedRefs-CfHHlCsn.js +109 -0
  354. package/dist/useNumberField-4-dIGVed.js +128 -0
  355. package/dist/{usePositionedLayer-C1NBOsVT.js → usePositionedLayer-Cru9_00b.js} +70 -7
  356. package/dist/useResizable-DDwPpPe6.d.ts +409 -0
  357. package/dist/useRestoreFocus-Djw9RUIf.js +153 -0
  358. package/dist/useScrollbars-C2NJ6Qwq.js +43 -0
  359. package/dist/{useTimeValue-DWk6oTAZ.js → useTimeValue-6ufHM15W.js} +1 -1
  360. package/dist/utils-D33VQDnk.js +58 -0
  361. package/locales/SOURCE.json +1 -1
  362. package/locales/en.json +445 -1
  363. package/package.json +19 -2
  364. package/styles/avatar-group.css +19 -1
  365. package/styles/avatar.css +34 -13
  366. package/styles/chat.css +17 -1
  367. package/styles/dialog-header.css +5 -1
  368. package/styles/field.css +11 -0
  369. package/styles/heading.css +9 -0
  370. package/styles/indicator-focus-ring.css +18 -0
  371. package/styles/number-input.css +33 -0
  372. package/styles/pressable.css +44 -0
  373. package/styles/progress-bar.css +18 -0
  374. package/styles/scrollbars.css +28 -0
  375. package/styles/side-nav.css +20 -6
  376. package/styles/stack.css +4 -2
  377. package/styles/status-dot.css +18 -0
  378. package/styles/tab-list.css +38 -2
  379. package/styles/table.css +66 -6
  380. package/styles/text.css +9 -0
  381. package/styles/time-input.css +41 -0
  382. package/styles/top-nav.css +46 -19
  383. package/styles/typeahead.css +31 -0
  384. package/styles.css +2 -0
  385. package/dist/AvatarGroup-QyzSrpYA.js +0 -60
  386. package/dist/DateInput-D4XFAEMp.js +0 -743
  387. package/dist/FieldLabel-DmmJyX7w.js +0 -184
  388. package/dist/FileInput-DuNwdbAo.js +0 -238
  389. package/dist/HoverCard-EhbWaGOW.js +0 -443
  390. package/dist/NumberInput-B4IL3s_8.js +0 -210
  391. package/dist/Popover-D7zqpFwU.js +0 -215
  392. package/dist/StatusDot-CaoIapp4.js +0 -27
  393. package/dist/TimeField-Biiuv0hB.js +0 -214
  394. package/dist/Tokenizer-rwzamZg4.js +0 -473
  395. package/dist/Tooltip-C2fh9anJ.js +0 -271
  396. package/dist/Typeahead-_V11btpv.js +0 -499
  397. package/dist/index-Blm197N_.d.ts +0 -82
  398. package/dist/index-Bt7ewoz2.d.ts +0 -119
  399. package/dist/index-C1HIqW_H.d.ts +0 -38
  400. package/dist/index-CngORuiq.d.ts +0 -387
  401. package/dist/index-D4I_obqR.d.ts +0 -58
  402. package/dist/link-CdcUSxAj.js +0 -12
  403. package/dist/size-BuTzpgnR.d.ts +0 -14
  404. package/dist/types-Cp4liug-.d.ts +0 -170
  405. package/dist/useDismiss-Cj8x_51F.js +0 -62
  406. package/dist/useNumberField-DL-Radsp.js +0 -49
  407. package/dist/useResizable-CUoNPmUw.d.ts +0 -72
  408. package/dist/useRestoreFocus-BvMdXVX9.js +0 -96
  409. package/dist/utils-C9r3UD_y.js +0 -16
@@ -1,443 +0,0 @@
1
- import { r as isFocusable } from "./focus-CpficIgf.js";
2
- import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
3
- import { Fragment, Teleport, Transition, computed, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, normalizeStyle, onBeforeUnmount, onMounted, onUpdated, openBlock, ref, renderSlot, toDisplayString, unref, useId, vShow, watch, withCtx, withDirectives } from "vue";
4
- import "../styles/hover-card.css";
5
- //#region src/HoverCard/HoverCard.vue
6
- const _hoisted_1 = [
7
- "role",
8
- "aria-label",
9
- "data-placement"
10
- ];
11
- const _hoisted_2 = { class: "astryx-hover-card__content" };
12
- const GAP = 4;
13
- const _sfc_main = /*@__PURE__*/ defineComponent({
14
- name: "AstryxHoverCard",
15
- inheritAttrs: false,
16
- __name: "HoverCard",
17
- props: {
18
- content: { default: "" },
19
- placement: { default: "above" },
20
- alignment: { default: "center" },
21
- delay: { default: 300 },
22
- hideDelay: { default: 200 },
23
- focusTrigger: { default: "auto" },
24
- touchTrigger: { default: "auto" },
25
- isEnabled: {
26
- type: Boolean,
27
- default: true
28
- },
29
- label: { default: void 0 },
30
- hasHoverIndication: {
31
- type: [String, Boolean],
32
- default: "auto"
33
- },
34
- isOpen: {
35
- type: Boolean,
36
- default: void 0
37
- },
38
- isDefaultOpen: {
39
- type: Boolean,
40
- default: false
41
- }
42
- },
43
- emits: ["openChange"],
44
- setup(__props, { expose: __expose, emit: __emit }) {
45
- const props = __props;
46
- const emit = __emit;
47
- const TOUCH_POINTER_TYPES = /* @__PURE__ */ new Set(["touch", "pen"]);
48
- const EXPANDABLE_ROLES = /* @__PURE__ */ new Set([
49
- "application",
50
- "button",
51
- "checkbox",
52
- "columnheader",
53
- "combobox",
54
- "gridcell",
55
- "link",
56
- "listbox",
57
- "menuitem",
58
- "menuitemcheckbox",
59
- "menuitemradio",
60
- "row",
61
- "rowheader",
62
- "switch",
63
- "tab",
64
- "treeitem"
65
- ]);
66
- const BUTTON_INPUT_TYPES = /* @__PURE__ */ new Set([
67
- "button",
68
- "submit",
69
- "reset",
70
- "image"
71
- ]);
72
- const ACTION_ROLES = /* @__PURE__ */ new Set([
73
- "button",
74
- "checkbox",
75
- "combobox",
76
- "link",
77
- "menuitem",
78
- "menuitemcheckbox",
79
- "menuitemradio",
80
- "option",
81
- "radio",
82
- "searchbox",
83
- "slider",
84
- "spinbutton",
85
- "switch",
86
- "tab",
87
- "textbox"
88
- ]);
89
- function supportsAriaExpanded(element) {
90
- const explicit = element.getAttribute("role")?.trim().split(/\s+/)[0];
91
- if (explicit) return EXPANDABLE_ROLES.has(explicit);
92
- switch (element.tagName) {
93
- case "BUTTON":
94
- case "SUMMARY": return true;
95
- case "A":
96
- case "AREA": return element.hasAttribute("href");
97
- case "INPUT": return BUTTON_INPUT_TYPES.has(element.type?.toLowerCase());
98
- case "SELECT": return true;
99
- default: return false;
100
- }
101
- }
102
- function isEditable(element) {
103
- if (element.isContentEditable === true) return true;
104
- const attribute = element.getAttribute("contenteditable");
105
- return attribute != null && attribute !== "false";
106
- }
107
- function isActionTrigger(element) {
108
- const role = element.getAttribute("role");
109
- if (role != null && role !== "") return ACTION_ROLES.has(role);
110
- switch (element.tagName) {
111
- case "BUTTON":
112
- case "INPUT":
113
- case "LABEL":
114
- case "SELECT":
115
- case "SUMMARY":
116
- case "TEXTAREA": return true;
117
- case "A":
118
- case "AREA": return element.hasAttribute("href");
119
- default: return isEditable(element);
120
- }
121
- }
122
- function mergeIds(...ids) {
123
- const kept = ids.filter(Boolean);
124
- return kept.length > 0 ? kept.join(" ") : void 0;
125
- }
126
- let lastModality = "keyboard";
127
- function onModalityPointerDown() {
128
- lastModality = "pointer";
129
- }
130
- function onModalityKeyDown(event) {
131
- if (event.metaKey || event.altKey || event.ctrlKey) return;
132
- lastModality = "keyboard";
133
- }
134
- const cardId = `astryx-hover-card-${useId()}`;
135
- const wrapperRef = ref(null);
136
- const surfaceRef = ref(null);
137
- const triggerRef = ref(null);
138
- const isVisible = ref(false);
139
- const isTextTrigger = ref(false);
140
- const isControlled = computed(() => props.isOpen !== void 0);
141
- const isDialog = computed(() => props.label != null && props.label !== "");
142
- const showIndication = computed(() => props.hasHoverIndication === true || props.hasHoverIndication === "auto" && isTextTrigger.value);
143
- const { position, detach: detachPosition } = usePositionedLayer({
144
- anchor: triggerRef,
145
- layer: surfaceRef,
146
- isOpen: isVisible,
147
- placement: computed(() => props.placement),
148
- alignment: computed(() => props.alignment),
149
- gap: GAP
150
- });
151
- const surfaceStyle = computed(() => ({
152
- top: `${position.value.top}px`,
153
- left: `${position.value.left}px`
154
- }));
155
- const element = computed(() => surfaceRef.value);
156
- let trigger = null;
157
- let describedByBefore = null;
158
- let haspopupBefore = null;
159
- let controlsBefore = null;
160
- let expandedBefore = null;
161
- let canExpand = false;
162
- let isHoveringContent = false;
163
- let isTouchPointer = false;
164
- let isEscapeDismissing = false;
165
- let showTimer;
166
- let hideTimer;
167
- function clearTimers() {
168
- clearTimeout(showTimer);
169
- clearTimeout(hideTimer);
170
- showTimer = void 0;
171
- hideTimer = void 0;
172
- }
173
- function setOpen(next) {
174
- if (isVisible.value === next) return;
175
- isVisible.value = next;
176
- emit("openChange", next);
177
- }
178
- function showNow() {
179
- clearTimers();
180
- if (!props.isEnabled) return;
181
- setOpen(true);
182
- }
183
- function hideNow() {
184
- clearTimers();
185
- isHoveringContent = false;
186
- if (isControlled.value) return;
187
- setOpen(false);
188
- }
189
- function scheduleShow() {
190
- if (!props.isEnabled || isControlled.value) return;
191
- clearTimers();
192
- showTimer = setTimeout(() => {
193
- showTimer = void 0;
194
- setOpen(true);
195
- }, props.delay);
196
- }
197
- function scheduleHide() {
198
- if (isControlled.value) return;
199
- clearTimers();
200
- hideTimer = setTimeout(() => {
201
- hideTimer = void 0;
202
- if (!isHoveringContent) setOpen(false);
203
- }, props.hideDelay);
204
- }
205
- function onPointerEnter(event) {
206
- isTouchPointer = event.pointerType === "touch";
207
- }
208
- function onMouseEnter() {
209
- if (isTouchPointer) return;
210
- scheduleShow();
211
- }
212
- function onMouseLeave() {
213
- if (isTouchPointer) return;
214
- scheduleHide();
215
- }
216
- function onPointerDown(event) {
217
- const isTouch = TOUCH_POINTER_TYPES.has(event.pointerType);
218
- isTouchPointer = isTouch;
219
- if (!isTouch || isControlled.value) return;
220
- if ((props.touchTrigger === "auto" ? trigger != null && isActionTrigger(trigger) ? "none" : "tap" : props.touchTrigger) === "none" || !props.isEnabled) {
221
- hideNow();
222
- return;
223
- }
224
- if (isVisible.value) hideNow();
225
- else showNow();
226
- }
227
- function onFocusIn() {
228
- if (!props.isEnabled) return;
229
- if (isTouchPointer && lastModality === "pointer") return;
230
- if (isEscapeDismissing) {
231
- isEscapeDismissing = false;
232
- return;
233
- }
234
- showNow();
235
- }
236
- function onFocusOut(event) {
237
- const related = event.relatedTarget;
238
- if (related && surfaceRef.value?.contains(related)) return;
239
- scheduleHide();
240
- }
241
- function onContentMouseEnter() {
242
- if (isTouchPointer) return;
243
- isHoveringContent = true;
244
- clearTimers();
245
- }
246
- function onContentMouseLeave() {
247
- if (isTouchPointer) return;
248
- isHoveringContent = false;
249
- scheduleHide();
250
- }
251
- function onContentFocusOut(event) {
252
- const related = event.relatedTarget;
253
- if (related && surfaceRef.value?.contains(related)) return;
254
- if (related && triggerRef.value?.contains(related)) return;
255
- scheduleHide();
256
- }
257
- function onDocumentKeydown(event) {
258
- if (event.key !== "Escape" || !isVisible.value) return;
259
- clearTimers();
260
- isHoveringContent = false;
261
- if (isControlled.value) {
262
- emit("openChange", false);
263
- return;
264
- }
265
- const hadFocus = surfaceRef.value?.contains(document.activeElement) ?? false;
266
- setOpen(false);
267
- if (hadFocus && triggerRef.value) {
268
- isEscapeDismissing = true;
269
- triggerRef.value.focus();
270
- }
271
- }
272
- function onDocumentPointerDown(event) {
273
- if (!TOUCH_POINTER_TYPES.has(event.pointerType) || !isVisible.value || isControlled.value) return;
274
- const target = event.target;
275
- if (triggerRef.value?.contains(target) || surfaceRef.value?.contains(target)) return;
276
- hideNow();
277
- }
278
- function applyTriggerAttributes() {
279
- const active = triggerRef.value;
280
- if (!active) return;
281
- if (isDialog.value) {
282
- active.setAttribute("aria-haspopup", "dialog");
283
- if (isVisible.value) active.setAttribute("aria-controls", mergeIds(controlsBefore, cardId) ?? "");
284
- else if (controlsBefore) active.setAttribute("aria-controls", controlsBefore);
285
- else active.removeAttribute("aria-controls");
286
- if (canExpand) active.setAttribute("aria-expanded", String(isVisible.value));
287
- else if (expandedBefore) active.setAttribute("aria-expanded", expandedBefore);
288
- else active.removeAttribute("aria-expanded");
289
- return;
290
- }
291
- active.setAttribute("aria-describedby", mergeIds(describedByBefore, cardId) ?? "");
292
- }
293
- function restoreTriggerAttributes() {
294
- const active = triggerRef.value;
295
- if (!active) return;
296
- if (describedByBefore) active.setAttribute("aria-describedby", describedByBefore);
297
- else active.removeAttribute("aria-describedby");
298
- if (haspopupBefore) active.setAttribute("aria-haspopup", haspopupBefore);
299
- else active.removeAttribute("aria-haspopup");
300
- if (controlsBefore) active.setAttribute("aria-controls", controlsBefore);
301
- else active.removeAttribute("aria-controls");
302
- if (expandedBefore) active.setAttribute("aria-expanded", expandedBefore);
303
- else active.removeAttribute("aria-expanded");
304
- }
305
- function shouldListenFocus(target) {
306
- return props.focusTrigger === "always" || props.focusTrigger === "auto" && isFocusable(target);
307
- }
308
- function resolveTrigger() {
309
- const wrapper = wrapperRef.value;
310
- if (!wrapper) return null;
311
- const child = wrapper.firstElementChild;
312
- isTextTrigger.value = child == null && (wrapper.textContent ?? "").trim() !== "";
313
- if (child) return child;
314
- if (isTextTrigger.value) {
315
- wrapper.tabIndex = 0;
316
- return wrapper;
317
- }
318
- return null;
319
- }
320
- function bindTrigger() {
321
- const next = resolveTrigger();
322
- if (next === trigger) return;
323
- unbindTrigger();
324
- trigger = next;
325
- triggerRef.value = next;
326
- if (!next) return;
327
- describedByBefore = next.getAttribute("aria-describedby");
328
- haspopupBefore = next.getAttribute("aria-haspopup");
329
- controlsBefore = next.getAttribute("aria-controls");
330
- expandedBefore = next.getAttribute("aria-expanded");
331
- canExpand = supportsAriaExpanded(next);
332
- next.addEventListener("pointerenter", onPointerEnter);
333
- next.addEventListener("mouseenter", onMouseEnter);
334
- next.addEventListener("mouseleave", onMouseLeave);
335
- next.addEventListener("pointerdown", onPointerDown);
336
- if (shouldListenFocus(next)) {
337
- next.addEventListener("focusin", onFocusIn);
338
- next.addEventListener("focusout", onFocusOut);
339
- }
340
- applyTriggerAttributes();
341
- }
342
- function unbindTrigger() {
343
- if (!trigger) return;
344
- trigger.removeEventListener("pointerenter", onPointerEnter);
345
- trigger.removeEventListener("mouseenter", onMouseEnter);
346
- trigger.removeEventListener("mouseleave", onMouseLeave);
347
- trigger.removeEventListener("pointerdown", onPointerDown);
348
- trigger.removeEventListener("focusin", onFocusIn);
349
- trigger.removeEventListener("focusout", onFocusOut);
350
- restoreTriggerAttributes();
351
- trigger = null;
352
- triggerRef.value = null;
353
- describedByBefore = null;
354
- haspopupBefore = null;
355
- controlsBefore = null;
356
- expandedBefore = null;
357
- canExpand = false;
358
- }
359
- function show() {
360
- showNow();
361
- }
362
- function hide() {
363
- clearTimers();
364
- isHoveringContent = false;
365
- setOpen(false);
366
- }
367
- __expose({
368
- element,
369
- show,
370
- hide
371
- });
372
- watch(isVisible, (visible) => {
373
- applyTriggerAttributes();
374
- if (visible) {
375
- document.addEventListener("keydown", onDocumentKeydown);
376
- document.addEventListener("pointerdown", onDocumentPointerDown, true);
377
- return;
378
- }
379
- document.removeEventListener("keydown", onDocumentKeydown);
380
- document.removeEventListener("pointerdown", onDocumentPointerDown, true);
381
- });
382
- watch(() => props.isOpen, (open) => {
383
- clearTimers();
384
- if (open === void 0) return;
385
- setOpen(open);
386
- });
387
- watch(() => props.isEnabled, (enabled) => {
388
- if (!enabled) hideNow();
389
- });
390
- onMounted(() => {
391
- document.addEventListener("pointerdown", onModalityPointerDown, {
392
- capture: true,
393
- passive: true
394
- });
395
- document.addEventListener("keydown", onModalityKeyDown, {
396
- capture: true,
397
- passive: true
398
- });
399
- bindTrigger();
400
- if (props.isOpen !== void 0) isVisible.value = props.isOpen;
401
- else if (props.isDefaultOpen) setOpen(true);
402
- });
403
- onUpdated(bindTrigger);
404
- onBeforeUnmount(() => {
405
- clearTimers();
406
- unbindTrigger();
407
- detachPosition();
408
- document.removeEventListener("pointerdown", onModalityPointerDown, true);
409
- document.removeEventListener("keydown", onModalityKeyDown, true);
410
- document.removeEventListener("keydown", onDocumentKeydown);
411
- document.removeEventListener("pointerdown", onDocumentPointerDown, true);
412
- });
413
- return (_ctx, _cache) => {
414
- return openBlock(), createElementBlock(Fragment, null, [createElementVNode("span", mergeProps({
415
- ref_key: "wrapperRef",
416
- ref: wrapperRef
417
- }, _ctx.$attrs, { class: ["astryx-hover-card__trigger", {
418
- "astryx-hover-card__trigger--text": isTextTrigger.value,
419
- "astryx-hover-card__trigger--indicated": isTextTrigger.value && showIndication.value
420
- }] }), [renderSlot(_ctx.$slots, "default")], 16), (openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(Transition, {
421
- name: "astryx-hover-card",
422
- persisted: ""
423
- }, {
424
- default: withCtx(() => [withDirectives(createElementVNode("div", {
425
- id: cardId,
426
- ref_key: "surfaceRef",
427
- ref: surfaceRef,
428
- class: "astryx-hover-card",
429
- role: isDialog.value ? "dialog" : "group",
430
- "aria-label": isDialog.value ? __props.label : void 0,
431
- "data-placement": unref(position).placement,
432
- style: normalizeStyle(surfaceStyle.value),
433
- onMouseenter: onContentMouseEnter,
434
- onMouseleave: onContentMouseLeave,
435
- onFocusout: onContentFocusOut
436
- }, [createElementVNode("div", _hoisted_2, [renderSlot(_ctx.$slots, "content", {}, () => [createTextVNode(toDisplayString(__props.content), 1)])])], 44, _hoisted_1), [[vShow, isVisible.value]])]),
437
- _: 3
438
- })]))], 64);
439
- };
440
- }
441
- });
442
- //#endregion
443
- export { _sfc_main as t };
@@ -1,210 +0,0 @@
1
- import { o as useAstryxMessages } from "./context-CPh7kE-a.js";
2
- import { t as useNumberField } from "./useNumberField-DL-Radsp.js";
3
- import { t as _sfc_main$1 } from "./FieldIcon--NTgW5IU.js";
4
- import { t as _sfc_main$2 } from "./Field-8zRxzDHE.js";
5
- import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, normalizeClass, normalizeProps, openBlock, ref, resolveDynamicComponent, toDisplayString, unref, useId, withCtx } from "vue";
6
- import "../styles/number-input.css";
7
- //#region src/NumberInput/NumberInput.vue
8
- const _hoisted_1 = ["data-status"];
9
- const _hoisted_2 = [
10
- "value",
11
- "placeholder",
12
- "disabled",
13
- "aria-label",
14
- "aria-labelledby",
15
- "aria-describedby",
16
- "aria-invalid",
17
- "title"
18
- ];
19
- const _hoisted_3 = {
20
- key: 0,
21
- class: "astryx-number-input-units"
22
- };
23
- const _hoisted_4 = ["aria-label"];
24
- const _hoisted_5 = { class: "astryx-number-input-buttons" };
25
- const _hoisted_6 = ["disabled", "aria-label"];
26
- const _hoisted_7 = ["disabled", "aria-label"];
27
- const _hoisted_8 = ["name", "value"];
28
- const _sfc_main = /*@__PURE__*/ defineComponent({
29
- name: "AstryxNumberInput",
30
- __name: "NumberInput",
31
- props: {
32
- modelValue: { default: null },
33
- placeholder: { default: "" },
34
- min: {},
35
- max: {},
36
- step: { default: 1 },
37
- disabled: {
38
- type: Boolean,
39
- default: false
40
- },
41
- disabledReason: {},
42
- size: { default: "md" },
43
- label: {},
44
- description: {},
45
- isLabelHidden: { type: Boolean },
46
- units: {},
47
- clearable: { type: Boolean },
48
- status: {},
49
- name: {}
50
- },
51
- emits: ["update:modelValue", "change"],
52
- setup(__props, { emit: __emit }) {
53
- const props = __props;
54
- const emit = __emit;
55
- const PassThrough = defineComponent({
56
- name: "NumberInputPassThrough",
57
- setup(_, { slots }) {
58
- return () => slots.default?.({});
59
- }
60
- });
61
- const inputId = `astryx-number-input-${useId()}`;
62
- const messages = useAstryxMessages();
63
- const incrementLabel = computed(() => messages.value.numberInput.increment(props.label));
64
- const decrementLabel = computed(() => messages.value.numberInput.decrement(props.label));
65
- const inputValue = ref("");
66
- const modelValueRef = computed({
67
- get: () => props.modelValue,
68
- set: (value) => {
69
- emit("update:modelValue", value);
70
- emit("change", value);
71
- }
72
- });
73
- const numberField = useNumberField({
74
- value: modelValueRef,
75
- min: props.min,
76
- max: props.max,
77
- step: props.step,
78
- disabled: computed(() => props.disabled),
79
- onChange: (value) => {
80
- modelValueRef.value = value;
81
- inputValue.value = value === null ? "" : String(value);
82
- }
83
- });
84
- function onInput(event) {
85
- const target = event.target;
86
- const value = target.value.trim();
87
- if (value === "") {
88
- numberField.setValue(null);
89
- return;
90
- }
91
- const parsed = Number.parseFloat(value);
92
- if (!Number.isNaN(parsed)) numberField.setValue(parsed);
93
- else target.value = inputValue.value;
94
- }
95
- function onKeyDown(event) {
96
- numberField.onKeyDown(event);
97
- }
98
- function resolvedStatus(status) {
99
- if (status == null || status === "default") return void 0;
100
- if (typeof status === "string") return { type: status };
101
- return status;
102
- }
103
- const statusValue = computed(() => resolvedStatus(props.status));
104
- const statusType = computed(() => statusValue.value?.type);
105
- const showsField = computed(() => {
106
- if (props.isLabelHidden && !props.description && !statusValue.value?.message) return false;
107
- return Boolean(props.label || props.description || statusValue.value?.message);
108
- });
109
- const shell = computed(() => showsField.value ? _sfc_main$2 : PassThrough);
110
- const fieldBindings = computed(() => showsField.value ? {
111
- label: props.label ?? "",
112
- inputId,
113
- description: props.description,
114
- isLabelHidden: props.isLabelHidden || !props.label,
115
- isDisabled: props.disabled,
116
- status: statusValue.value
117
- } : {});
118
- function clearValue() {
119
- numberField.setValue(null);
120
- inputValue.value = "";
121
- }
122
- function syncDisplayValue() {
123
- inputValue.value = props.modelValue === null ? "" : String(props.modelValue);
124
- }
125
- syncDisplayValue();
126
- return (_ctx, _cache) => {
127
- return openBlock(), createBlock(resolveDynamicComponent(shell.value), normalizeProps(guardReactiveProps(fieldBindings.value)), {
128
- default: withCtx((field) => [createElementVNode("div", {
129
- class: normalizeClass(["astryx-number-input", `size-${props.size}`]),
130
- "data-status": statusType.value
131
- }, [
132
- createElementVNode("input", {
133
- id: inputId,
134
- type: "text",
135
- inputmode: "decimal",
136
- class: "astryx-number-input-field",
137
- value: inputValue.value,
138
- placeholder: props.placeholder,
139
- disabled: props.disabled,
140
- "aria-label": showsField.value ? void 0 : props.label,
141
- "aria-labelledby": showsField.value ? field?.labelId : void 0,
142
- "aria-describedby": field?.describedBy,
143
- "aria-invalid": statusType.value === "error" ? "true" : void 0,
144
- title: props.disabledReason,
145
- onInput,
146
- onKeydown: onKeyDown
147
- }, null, 40, _hoisted_2),
148
- props.units ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(props.units), 1)) : createCommentVNode("v-if", true),
149
- props.clearable && props.modelValue != null && !props.disabled ? (openBlock(), createElementBlock("button", {
150
- key: 1,
151
- type: "button",
152
- class: "astryx-number-input-clear",
153
- "aria-label": props.label ? `Clear ${props.label}` : "Clear",
154
- onClick: clearValue
155
- }, [createVNode(_sfc_main$1, { type: "clear" })], 8, _hoisted_4)) : createCommentVNode("v-if", true),
156
- createElementVNode("div", _hoisted_5, [createElementVNode("button", {
157
- type: "button",
158
- class: "astryx-number-input-button increment",
159
- disabled: props.disabled,
160
- "aria-label": incrementLabel.value,
161
- tabindex: "-1",
162
- onClick: _cache[0] || (_cache[0] = (...args) => unref(numberField).increment && unref(numberField).increment(...args))
163
- }, [..._cache[2] || (_cache[2] = [createElementVNode("svg", {
164
- class: "astryx-number-input-chevron",
165
- viewBox: "0 0 12 8",
166
- width: "12",
167
- height: "8",
168
- "aria-hidden": "true",
169
- fill: "none"
170
- }, [createElementVNode("path", {
171
- d: "M1.5 1.75 6 6.25 10.5 1.75",
172
- stroke: "currentColor",
173
- "stroke-width": "1.5",
174
- "stroke-linecap": "round",
175
- "stroke-linejoin": "round"
176
- })], -1)])], 8, _hoisted_6), createElementVNode("button", {
177
- type: "button",
178
- class: "astryx-number-input-button decrement",
179
- disabled: props.disabled,
180
- "aria-label": decrementLabel.value,
181
- tabindex: "-1",
182
- onClick: _cache[1] || (_cache[1] = (...args) => unref(numberField).decrement && unref(numberField).decrement(...args))
183
- }, [..._cache[3] || (_cache[3] = [createElementVNode("svg", {
184
- class: "astryx-number-input-chevron",
185
- viewBox: "0 0 12 8",
186
- width: "12",
187
- height: "8",
188
- "aria-hidden": "true",
189
- fill: "none"
190
- }, [createElementVNode("path", {
191
- d: "M1.5 1.75 6 6.25 10.5 1.75",
192
- stroke: "currentColor",
193
- "stroke-width": "1.5",
194
- "stroke-linecap": "round",
195
- "stroke-linejoin": "round"
196
- })], -1)])], 8, _hoisted_7)]),
197
- props.name ? (openBlock(), createElementBlock("input", {
198
- key: 2,
199
- type: "hidden",
200
- name: props.name,
201
- value: props.modelValue ?? ""
202
- }, null, 8, _hoisted_8)) : createCommentVNode("v-if", true)
203
- ], 10, _hoisted_1)]),
204
- _: 1
205
- }, 16);
206
- };
207
- }
208
- });
209
- //#endregion
210
- export { _sfc_main as t };