@astryx-vue/core 0.1.3 → 0.2.1

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 (269) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-BylcA4vV.js → AlertDialog-ovx4cBjM.js} +1 -1
  3. package/dist/AppShell/index.js +1 -1
  4. package/dist/{AppShell-b0PWt9Fz.js → AppShell-1wNIEtK_.js} +2 -2
  5. package/dist/Avatar/index.d.ts +1 -1
  6. package/dist/Avatar/index.js +1 -1
  7. package/dist/Avatar-jmHInHwj.js +244 -0
  8. package/dist/AvatarGroup/index.d.ts +1 -1
  9. package/dist/AvatarGroup/index.js +1 -1
  10. package/dist/{AvatarGroup-CZcgAMjM.js → AvatarGroup-QyzSrpYA.js} +8 -7
  11. package/dist/Badge/index.d.ts +1 -1
  12. package/dist/Badge/index.js +1 -1
  13. package/dist/Badge-CjDQPF5g.js +30 -0
  14. package/dist/Banner/index.d.ts +1 -1
  15. package/dist/Breadcrumbs/index.d.ts +2 -2
  16. package/dist/Breadcrumbs/index.js +1 -1
  17. package/dist/{Breadcrumbs-C3YZFQ9w.js → Breadcrumbs-C97HmjkC.js} +45 -11
  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-DqC3EDN1.js +352 -0
  23. package/dist/Card/index.d.ts +1 -1
  24. package/dist/Carousel/index.d.ts +2 -0
  25. package/dist/Carousel/index.js +2 -0
  26. package/dist/Carousel-BGUnskjo.js +363 -0
  27. package/dist/Chat/index.js +1 -1
  28. package/dist/{Chat-C1aWl5V3.js → Chat-DCjXRiOF.js} +8 -8
  29. package/dist/CheckboxInput/index.d.ts +1 -1
  30. package/dist/CheckboxList/index.d.ts +1 -1
  31. package/dist/CheckboxList/index.js +1 -1
  32. package/dist/Citation/index.js +1 -1
  33. package/dist/{Citation-C1X0Rde8.js → Citation-DunoAqVH.js} +2 -2
  34. package/dist/ClickableCard/index.d.ts +1 -1
  35. package/dist/Code/index.d.ts +3 -2
  36. package/dist/Code/index.js +4 -2
  37. package/dist/Code-yb_KOFtJ.js +299 -0
  38. package/dist/{CodeBlock-BQdooQy2.js → CodeBlock-CAF-VJnh.js} +8 -2
  39. package/dist/Collapsible/index.js +1 -1
  40. package/dist/{Collapsible-BS9ctCQV.js → Collapsible-DvMiYJp7.js} +1 -1
  41. package/dist/CommandPalette/index.js +1 -1
  42. package/dist/{CommandPalette-u5h_E05P.js → CommandPalette-xfm9ldUI.js} +1 -1
  43. package/dist/ComplexSelector/index.d.ts +1 -1
  44. package/dist/ComplexSelector/index.js +1 -1
  45. package/dist/{ComplexSelector-BHmGWml0.js → ComplexSelector-B6lBTRhP.js} +2 -2
  46. package/dist/ContextMenu/index.d.ts +2 -2
  47. package/dist/ContextMenu/index.js +1 -1
  48. package/dist/{ContextMenu-dA-ppaRQ.js → ContextMenu-DUkED3Z3.js} +101 -63
  49. package/dist/DateInput/index.d.ts +2 -2
  50. package/dist/DateInput/index.js +1 -1
  51. package/dist/DateInput-Crcg-CCj.js +376 -0
  52. package/dist/DateRangeInput/index.d.ts +1 -1
  53. package/dist/DateRangeInput/index.js +1 -1
  54. package/dist/{DateRangeInput-fmQlr_A7.js → DateRangeInput-e9KSxBBK.js} +2 -2
  55. package/dist/DateTimeInput/index.d.ts +1 -1
  56. package/dist/DateTimeInput/index.js +1 -1
  57. package/dist/{DateTimeInput-Bs1JmcIp.js → DateTimeInput-fSOfuLex.js} +5 -3
  58. package/dist/DropdownMenu/index.d.ts +3 -2
  59. package/dist/DropdownMenu/index.js +3 -2
  60. package/dist/{DropdownMenu-B0gogrvG.js → DropdownMenu-8G0B1UND.js} +63 -16
  61. package/dist/DropdownMenu-XvW4BJob.js +164 -0
  62. package/dist/EmptyState/index.js +1 -1
  63. package/dist/{EmptyState-Bhlqgsg4.js → EmptyState-CUJdTYKV.js} +1 -1
  64. package/dist/FileInput/index.d.ts +1 -1
  65. package/dist/FileInput/index.js +1 -1
  66. package/dist/{FileInput-CmAfOpkA.js → FileInput-D-fchyQH.js} +2 -2
  67. package/dist/Icon/index.d.ts +4 -0
  68. package/dist/Icon/index.js +3 -0
  69. package/dist/Icon/plugin.d.ts +45 -0
  70. package/dist/Icon/plugin.js +177 -0
  71. package/dist/Icon-Bku25g_K.js +193 -0
  72. package/dist/Lightbox/index.d.ts +2 -0
  73. package/dist/Lightbox/index.js +2 -0
  74. package/dist/Lightbox-uuVGgHxW.js +384 -0
  75. package/dist/Link/index.d.ts +1 -1
  76. package/dist/Link/index.js +1 -1
  77. package/dist/Link-DqdQZ37C.js +141 -0
  78. package/dist/List/index.d.ts +1 -1
  79. package/dist/Markdown/index.js +1 -1
  80. package/dist/{Markdown-CwtLr3f_.js → Markdown-DLICa3db.js} +3 -3
  81. package/dist/MetadataList/index.d.ts +1 -1
  82. package/dist/MetadataList/index.js +1 -1
  83. package/dist/{MetadataList-DlXQTLog.js → MetadataList-h492rqEN.js} +1 -1
  84. package/dist/MobileNav/index.js +1 -1
  85. package/dist/{MobileNavToggle-CgQamG6E.js → MobileNavToggle-BMj3Wtuq.js} +1 -1
  86. package/dist/MoreMenu/index.d.ts +1 -1
  87. package/dist/MoreMenu/index.js +1 -1
  88. package/dist/{MoreMenu-BXL6Dqsu.js → MoreMenu-DkYi5az5.js} +2 -2
  89. package/dist/MultiSelector/index.d.ts +1 -1
  90. package/dist/MultiSelector/index.js +1 -1
  91. package/dist/{MultiSelector-DT8ZccMI.js → MultiSelector-C2IS-EaU.js} +2 -2
  92. package/dist/NavItem/index.d.ts +1 -1
  93. package/dist/NavMenu/index.d.ts +1 -1
  94. package/dist/NavMenu/index.js +1 -1
  95. package/dist/{NavMenuItem-mzNQESpB.js → NavMenuItem-B-k7olt5.js} +2 -1
  96. package/dist/NumberInput/index.d.ts +2 -2
  97. package/dist/NumberInput/index.js +1 -1
  98. package/dist/NumberInput-CjfAsFwj.js +210 -0
  99. package/dist/Outline/index.d.ts +2 -0
  100. package/dist/Outline/index.js +2 -0
  101. package/dist/Outline-BTmrtvXR.js +325 -0
  102. package/dist/OverflowList/index.d.ts +1 -1
  103. package/dist/OverflowList/index.js +1 -1
  104. package/dist/{OverflowList-zXg3g6fy.js → OverflowList-CRE8BE7V.js} +2 -2
  105. package/dist/Overlay/index.d.ts +1 -1
  106. package/dist/Pagination/index.d.ts +2 -2
  107. package/dist/Pagination/index.js +1 -1
  108. package/dist/{Pagination-DXfgMUKJ.js → Pagination-BpGXPmc7.js} +76 -22
  109. package/dist/Popover/index.d.ts +1 -1
  110. package/dist/ProgressBar/index.d.ts +1 -1
  111. package/dist/ProgressBar/index.js +1 -1
  112. package/dist/{ProgressBar-ChDp-7oe.js → ProgressBar-DO9Chic6.js} +31 -11
  113. package/dist/Radio/index.d.ts +1 -1
  114. package/dist/RadioList/index.d.ts +1 -1
  115. package/dist/Resizable/index.js +1 -1
  116. package/dist/{Resizable-BuGKvU9I.js → Resizable-CE8XQDL2.js} +1 -1
  117. package/dist/ScrollableArea/index.d.ts +1 -1
  118. package/dist/SegmentedControl/index.d.ts +1 -1
  119. package/dist/SelectableCard/index.d.ts +1 -1
  120. package/dist/Selector/index.d.ts +2 -2
  121. package/dist/Selector/index.js +1 -1
  122. package/dist/Selector-DkJOLZSR.js +468 -0
  123. package/dist/SideNav/index.d.ts +1 -1
  124. package/dist/SideNav/index.js +1 -1
  125. package/dist/{SideNav-Cdrigq2A.js → SideNav-DcDWBnXJ.js} +17 -17
  126. package/dist/Stepper/index.d.ts +1 -1
  127. package/dist/Stepper/index.js +1 -1
  128. package/dist/{Stepper-DxmLfh8O.js → Stepper-DZKaqEoz.js} +1 -1
  129. package/dist/Switch/index.d.ts +1 -1
  130. package/dist/TabList/index.d.ts +1 -1
  131. package/dist/TabList/index.js +1 -1
  132. package/dist/{TabList-C411uNQU.js → TabList-hm06QPiW.js} +10 -3
  133. package/dist/Table/index.js +1 -1
  134. package/dist/{Table-7qRmlIQd.js → Table-DwehtMap.js} +4 -4
  135. package/dist/Text/index.d.ts +3 -2
  136. package/dist/Text/index.js +1 -1
  137. package/dist/{Text-CKd7e3gK.js → Text-BHVghsWo.js} +12 -2
  138. package/dist/TextArea/index.d.ts +1 -1
  139. package/dist/TextArea/index.js +1 -1
  140. package/dist/{TextArea-Cv9UVbzS.js → TextArea-CPwSytdO.js} +12 -6
  141. package/dist/TextInput/index.d.ts +1 -1
  142. package/dist/Theme/index.d.ts +2 -0
  143. package/dist/Theme/index.js +2 -0
  144. package/dist/Theme-BuUiiJNr.js +429 -0
  145. package/dist/Thumbnail/index.js +1 -1
  146. package/dist/{Thumbnail-BWVzLLyI.js → Thumbnail-CAOYds8t.js} +11 -11
  147. package/dist/{TimeField-l3QzU6vC.js → TimeField-BGbxCoKU.js} +2 -2
  148. package/dist/TimeInput/index.d.ts +1 -1
  149. package/dist/TimeInput/index.js +1 -1
  150. package/dist/{TimeInput-OkgX-xbQ.js → TimeInput-DJP3l4ZS.js} +1 -1
  151. package/dist/Timer/index.d.ts +2 -0
  152. package/dist/Timer/index.js +2 -0
  153. package/dist/Timer-B7GV6hqd.js +134 -0
  154. package/dist/Timestamp/index.d.ts +1 -1
  155. package/dist/Timestamp/index.js +2 -1
  156. package/dist/{Timestamp-DUoP9ari.js → Timestamp-BzRp8uWc.js} +5 -122
  157. package/dist/Toast/index.d.ts +2 -2
  158. package/dist/Toast/index.js +1 -1
  159. package/dist/{Toast-BKXPvEMp.js → Toast-C2ML-bmi.js} +37 -7
  160. package/dist/ToggleButton/index.d.ts +1 -1
  161. package/dist/Token/index.d.ts +1 -1
  162. package/dist/Token/index.js +1 -1
  163. package/dist/{Token-C4KD0fZD.js → Token-CjocuhzE.js} +1 -1
  164. package/dist/Tokenizer/index.d.ts +1 -1
  165. package/dist/Tokenizer/index.js +1 -1
  166. package/dist/{Tokenizer-BA8sTMPZ.js → Tokenizer-mYES5SPM.js} +2 -2
  167. package/dist/Toolbar/index.d.ts +1 -1
  168. package/dist/TopNav/index.d.ts +1 -1
  169. package/dist/TopNav/index.js +1 -1
  170. package/dist/{TopNav-CZokS7E_.js → TopNav-C2t6JkZb.js} +4 -4
  171. package/dist/TreeList/index.d.ts +1 -1
  172. package/dist/TreeList/index.js +1 -1
  173. package/dist/{TreeList-CIbAGOMf.js → TreeList-THJ0KamE.js} +3 -3
  174. package/dist/Typeahead/index.d.ts +1 -1
  175. package/dist/Typeahead/index.js +1 -1
  176. package/dist/{Typeahead-DIw-K4aa.js → Typeahead-D7VnvRpK.js} +2 -2
  177. package/dist/{context-D6ECRdc5.js → context-DzcK4T_C.js} +58 -2
  178. package/dist/context-O2Vb8cJl.js +57 -0
  179. package/dist/formatInstant-BDWUIxS7.js +119 -0
  180. package/dist/index-1AZ4KZhg.d.ts +96 -0
  181. package/dist/index-3p2BDVHq.d.ts +31 -0
  182. package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
  183. package/dist/{index-FEy8qFSD.d.ts → index-BHqRH7QW.d.ts} +2 -2
  184. package/dist/{index-CTolyeii.d.ts → index-BLOEjvaM.d.ts} +16 -2
  185. package/dist/index-BMrggCw-.d.ts +52 -0
  186. package/dist/{index-z4p2k9VR.d.ts → index-Bgv4ZmBl.d.ts} +20 -2
  187. package/dist/{index-BoRIw-bP.d.ts → index-Bt7ewoz2.d.ts} +32 -2
  188. package/dist/{index-CjtAH60j.d.ts → index-Bu0Zd1uw.d.ts} +1 -1
  189. package/dist/{index-uQrLBZfF.d.ts → index-Bu3oXIIS.d.ts} +24 -0
  190. package/dist/{index-CX97hlld.d.ts → index-CBym0hSq.d.ts} +2 -19
  191. package/dist/index-CJlBAXwj.d.ts +100 -0
  192. package/dist/{index-DT9S92sh.d.ts → index-CNjbOgty.d.ts} +15 -0
  193. package/dist/{index-gW0HW02U.d.ts → index-COxy6LEW.d.ts} +1 -1
  194. package/dist/index-CRizexSC.d.ts +147 -0
  195. package/dist/{index-DYChvBOM.d.ts → index-Clmz00IK.d.ts} +31 -0
  196. package/dist/index-Cm_TiLXU.d.ts +22 -0
  197. package/dist/index-Cn-sSds-.d.ts +68 -0
  198. package/dist/index-CsVS37na.d.ts +81 -0
  199. package/dist/{index-DRmb-oUa.d.ts → index-CuFLztiI.d.ts} +6 -1
  200. package/dist/{index-CT8KEpec.d.ts → index-D0TlUOtG.d.ts} +1 -1
  201. package/dist/{index-fa72tWIU.d.ts → index-D2bSSSBP.d.ts} +1 -1
  202. package/dist/{index-2u4l3wq8.d.ts → index-DAiGhkNZ.d.ts} +15 -2
  203. package/dist/{index-DGNqi2za.d.ts → index-DQAnGHu7.d.ts} +5 -5
  204. package/dist/{index-BfOtLyNH.d.ts → index-D_nYxnNv.d.ts} +1 -1
  205. package/dist/{index-Df2YvC8o.d.ts → index-DeOftUMq.d.ts} +191 -75
  206. package/dist/{index-DXDGk38y.d.ts → index-Dg3ZmwEg.d.ts} +11 -0
  207. package/dist/{index-BiMGXtD-.d.ts → index-DimuSES0.d.ts} +14 -1
  208. package/dist/{index-C_2Z65Rp.d.ts → index-DnEh-HA0.d.ts} +1 -1
  209. package/dist/{index-D-ZuubCK.d.ts → index-DnSrjbjP.d.ts} +1 -1
  210. package/dist/{index-mQ6EPmaG.d.ts → index-DsyKhauk.d.ts} +78 -9
  211. package/dist/{index-C6RecznD.d.ts → index-I4J7gwa1.d.ts} +51 -9
  212. package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
  213. package/dist/{index-B4OOtNP8.d.ts → index-Z_onS2lR.d.ts} +1 -1
  214. package/dist/{index-CVn0GBdB.d.ts → index-cG1E0U2s.d.ts} +1 -1
  215. package/dist/{index-DEeJowZf.d.ts → index-cGagYM1g.d.ts} +15 -2
  216. package/dist/{index-Ck8qy6Rf.d.ts → index-c_TaW8mM.d.ts} +24 -2
  217. package/dist/{index-Bqb_Fyju.d.ts → index-jdjcb3Js.d.ts} +2 -2
  218. package/dist/index.d.ts +78 -68
  219. package/dist/index.js +107 -96
  220. package/dist/locale/index.d.ts +1 -1
  221. package/dist/locale/index.js +1 -1
  222. package/dist/registry-B1ObuP--.d.ts +45 -0
  223. package/dist/registry-C7OZb0PJ.js +135 -0
  224. package/dist/syntaxTheme-Bcs1YMF7.d.ts +38 -0
  225. package/dist/syntaxTheme-ClpWALZX.js +75 -0
  226. package/dist/types-BKcxXW--.d.ts +114 -0
  227. package/dist/types-Bt-lSgYX.d.ts +65 -0
  228. package/dist/{index-B8MbfMwV.d.ts → types-DDAAT1Xd.d.ts} +36 -82
  229. package/package.json +30 -1
  230. package/styles/avatar.css +14 -0
  231. package/styles/badge.css +8 -0
  232. package/styles/breadcrumbs.css +6 -1
  233. package/styles/button.css +13 -0
  234. package/styles/calendar.css +16 -0
  235. package/styles/card.css +2 -0
  236. package/styles/carousel.css +120 -0
  237. package/styles/chat.css +5 -2
  238. package/styles/dropdown-menu.css +11 -0
  239. package/styles/heading.css +6 -2
  240. package/styles/icon.css +38 -8
  241. package/styles/lightbox.css +144 -0
  242. package/styles/link.css +5 -0
  243. package/styles/media-theme.css +51 -0
  244. package/styles/number-input.css +22 -0
  245. package/styles/outline.css +124 -0
  246. package/styles/pagination.css +45 -1
  247. package/styles/progress-bar.css +4 -0
  248. package/styles/selector.css +58 -0
  249. package/styles/tab-list.css +15 -0
  250. package/styles/text-area.css +17 -0
  251. package/styles/text-input.css +5 -0
  252. package/styles/text.css +63 -14
  253. package/styles/theme.css +29 -0
  254. package/styles/timer.css +34 -0
  255. package/styles/toast.css +7 -0
  256. package/styles/toolbar.css +11 -0
  257. package/styles.css +6 -0
  258. package/dist/Avatar-5s3HSrtN.js +0 -136
  259. package/dist/Badge-Ba0EwsTj.js +0 -19
  260. package/dist/Calendar-CYhGDT6f.js +0 -277
  261. package/dist/DateInput-D2ErjXYO.js +0 -250
  262. package/dist/Icon-5MdZQ18k.js +0 -86
  263. package/dist/Link-CprjOuTI.js +0 -92
  264. package/dist/NumberInput-DspJO6z6.js +0 -147
  265. package/dist/Selector-DlZpQh42.js +0 -325
  266. package/dist/index-BzqRns96.d.ts +0 -64
  267. package/dist/index-ZJyk8RtQ.d.ts +0 -68
  268. package/dist/{CheckboxList-EsIEXjK_.js → CheckboxList-BbCPiend.js} +1 -1
  269. package/dist/{index-4FM5lQdV.d.ts → index-BUXNRekN.d.ts} +1 -1
@@ -0,0 +1,299 @@
1
+ import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
2
+ import { i as syntaxThemeStyle, n as defineSyntaxTheme, r as githubDark, t as SYNTAX_TOKEN_KEYS } from "./syntaxTheme-ClpWALZX.js";
3
+ import { a as resolveLightDark, i as readColorMode, n as themeContextKey, o as syntaxThemeKey } from "./context-O2Vb8cJl.js";
4
+ import { computed, createElementBlock, defineComponent, inject, normalizeClass, normalizeStyle, openBlock, provide, renderSlot } from "vue";
5
+ //#region src/Code/syntaxPresets.ts
6
+ /** One Dark Pro (Binaryify), MIT. */
7
+ const oneDarkPro = defineSyntaxTheme({
8
+ name: "one-dark-pro",
9
+ tokens: {
10
+ keyword: "#c678dd",
11
+ string: "#98c379",
12
+ comment: "#5c6370",
13
+ number: "#d19a66",
14
+ function: "#61afef",
15
+ type: "#e5c07b",
16
+ variable: "#e06c75",
17
+ operator: "#56b6c2",
18
+ constant: "#d19a66",
19
+ tag: "#e06c75",
20
+ attribute: "#d19a66",
21
+ property: "#e06c75",
22
+ punctuation: "#abb2bf",
23
+ background: "#282c34"
24
+ }
25
+ });
26
+ /** Dracula (Zeno Rocha), MIT. */
27
+ const dracula = defineSyntaxTheme({
28
+ name: "dracula",
29
+ tokens: {
30
+ keyword: "#ff79c6",
31
+ string: "#f1fa8c",
32
+ comment: "#6272a4",
33
+ number: "#bd93f9",
34
+ function: "#50fa7b",
35
+ type: "#8be9fd",
36
+ variable: "#f8f8f2",
37
+ operator: "#ff79c6",
38
+ constant: "#bd93f9",
39
+ tag: "#ff79c6",
40
+ attribute: "#50fa7b",
41
+ property: "#66d9ef",
42
+ punctuation: "#f8f8f2",
43
+ background: "#282a36"
44
+ }
45
+ });
46
+ /** Monokai (Wimer Hazenberg), MIT. */
47
+ const monokai = defineSyntaxTheme({
48
+ name: "monokai",
49
+ tokens: {
50
+ keyword: "#f92672",
51
+ string: "#e6db74",
52
+ comment: "#75715e",
53
+ number: "#ae81ff",
54
+ function: "#a6e22e",
55
+ type: "#66d9ef",
56
+ variable: "#f8f8f2",
57
+ operator: "#f92672",
58
+ constant: "#ae81ff",
59
+ tag: "#f92672",
60
+ attribute: "#a6e22e",
61
+ property: "#66d9ef",
62
+ punctuation: "#f8f8f2",
63
+ background: "#272822"
64
+ }
65
+ });
66
+ /** Nord (Sven Greb), MIT. */
67
+ const nord = defineSyntaxTheme({
68
+ name: "nord",
69
+ tokens: {
70
+ keyword: "#81a1c1",
71
+ string: "#a3be8c",
72
+ comment: "#616e88",
73
+ number: "#b48ead",
74
+ function: "#88c0d0",
75
+ type: "#8fbcbb",
76
+ variable: "#d8dee9",
77
+ operator: "#81a1c1",
78
+ constant: "#b48ead",
79
+ tag: "#81a1c1",
80
+ attribute: "#8fbcbb",
81
+ property: "#88c0d0",
82
+ punctuation: "#d8dee9",
83
+ background: "#2e3440"
84
+ }
85
+ });
86
+ /** Tokyo Night (enkia), MIT. */
87
+ const tokyoNight = defineSyntaxTheme({
88
+ name: "tokyo-night",
89
+ tokens: {
90
+ keyword: "#9d7cd8",
91
+ string: "#9ece6a",
92
+ comment: "#565f89",
93
+ number: "#ff9e64",
94
+ function: "#7aa2f7",
95
+ type: "#2ac3de",
96
+ variable: "#c0caf5",
97
+ operator: "#89ddff",
98
+ constant: "#ff9e64",
99
+ tag: "#f7768e",
100
+ attribute: "#bb9af7",
101
+ property: "#73daca",
102
+ punctuation: "#9abdf5",
103
+ background: "#1a1b26"
104
+ }
105
+ });
106
+ /** Catppuccin Mocha, MIT. */
107
+ const catppuccinMocha = defineSyntaxTheme({
108
+ name: "catppuccin-mocha",
109
+ tokens: {
110
+ keyword: "#cba6f7",
111
+ string: "#a6e3a1",
112
+ comment: "#6c7086",
113
+ number: "#fab387",
114
+ function: "#89b4fa",
115
+ type: "#f9e2af",
116
+ variable: "#cdd6f4",
117
+ operator: "#89dceb",
118
+ constant: "#fab387",
119
+ tag: "#f38ba8",
120
+ attribute: "#f9e2af",
121
+ property: "#94e2d5",
122
+ punctuation: "#bac2de",
123
+ background: "#1e1e2e"
124
+ }
125
+ });
126
+ /** GitHub Light (GitHub Primer team), MIT. */
127
+ const githubLight = defineSyntaxTheme({
128
+ name: "github-light",
129
+ tokens: {
130
+ keyword: "#cf222e",
131
+ string: "#0a3069",
132
+ comment: "#6e7781",
133
+ number: "#0550ae",
134
+ function: "#8250df",
135
+ type: "#953800",
136
+ variable: "#24292f",
137
+ operator: "#cf222e",
138
+ constant: "#0550ae",
139
+ tag: "#116329",
140
+ attribute: "#0550ae",
141
+ property: "#0550ae",
142
+ punctuation: "#24292f",
143
+ background: "#ffffff"
144
+ }
145
+ });
146
+ /** Solarized Light (Ethan Schoonover), MIT. */
147
+ const solarizedLight = defineSyntaxTheme({
148
+ name: "solarized-light",
149
+ tokens: {
150
+ keyword: "#859900",
151
+ string: "#2aa198",
152
+ comment: "#93a1a1",
153
+ number: "#d33682",
154
+ function: "#268bd2",
155
+ type: "#b58900",
156
+ variable: "#657b83",
157
+ operator: "#859900",
158
+ constant: "#cb4b16",
159
+ tag: "#268bd2",
160
+ attribute: "#b58900",
161
+ property: "#268bd2",
162
+ punctuation: "#586e75",
163
+ background: "#fdf6e3"
164
+ }
165
+ });
166
+ /** One Light (GitHub / Atom), MIT. */
167
+ const oneLight = defineSyntaxTheme({
168
+ name: "one-light",
169
+ tokens: {
170
+ keyword: "#a626a4",
171
+ string: "#50a14f",
172
+ comment: "#a0a1a7",
173
+ number: "#986801",
174
+ function: "#4078f2",
175
+ type: "#c18401",
176
+ variable: "#e45649",
177
+ operator: "#0184bc",
178
+ constant: "#986801",
179
+ tag: "#e45649",
180
+ attribute: "#986801",
181
+ property: "#e45649",
182
+ punctuation: "#383a42",
183
+ background: "#fafafa"
184
+ }
185
+ });
186
+ /** Catppuccin Latte, MIT. */
187
+ const catppuccinLatte = defineSyntaxTheme({
188
+ name: "catppuccin-latte",
189
+ tokens: {
190
+ keyword: "#8839ef",
191
+ string: "#40a02b",
192
+ comment: "#9ca0b0",
193
+ number: "#fe640b",
194
+ function: "#1e66f5",
195
+ type: "#df8e1d",
196
+ variable: "#4c4f69",
197
+ operator: "#179299",
198
+ constant: "#fe640b",
199
+ tag: "#d20f39",
200
+ attribute: "#df8e1d",
201
+ property: "#179299",
202
+ punctuation: "#6c6f85",
203
+ background: "#eff1f5"
204
+ }
205
+ });
206
+ /** Tokyo Night Light (enkia), MIT. */
207
+ const tokyoNightLight = defineSyntaxTheme({
208
+ name: "tokyo-night-light",
209
+ tokens: {
210
+ keyword: "#8c4351",
211
+ string: "#485e30",
212
+ comment: "#9699a3",
213
+ number: "#965027",
214
+ function: "#34548a",
215
+ type: "#166775",
216
+ variable: "#343b58",
217
+ operator: "#34548a",
218
+ constant: "#965027",
219
+ tag: "#8c4351",
220
+ attribute: "#8f5e15",
221
+ property: "#33635c",
222
+ punctuation: "#343b58",
223
+ background: "#d5d6db"
224
+ }
225
+ });
226
+ const darkSyntaxPresets = [
227
+ oneDarkPro,
228
+ dracula,
229
+ monokai,
230
+ nord,
231
+ tokyoNight,
232
+ catppuccinMocha,
233
+ githubDark
234
+ ];
235
+ const lightSyntaxPresets = [
236
+ githubLight,
237
+ solarizedLight,
238
+ oneLight,
239
+ catppuccinLatte,
240
+ tokyoNightLight
241
+ ];
242
+ const allSyntaxPresets = [...darkSyntaxPresets, ...lightSyntaxPresets];
243
+ //#endregion
244
+ //#region src/Code/SyntaxTheme.vue
245
+ const _hoisted_1 = ["data-astryx-syntax-theme"];
246
+ const _sfc_main = /*@__PURE__*/ defineComponent({
247
+ name: "AstryxSyntaxTheme",
248
+ inheritAttrs: false,
249
+ __name: "SyntaxTheme",
250
+ props: { theme: {} },
251
+ setup(__props) {
252
+ const props = __props;
253
+ const style = computed(() => syntaxThemeStyle(props.theme));
254
+ provide(syntaxThemeKey, computed(() => props.theme));
255
+ return (_ctx, _cache) => {
256
+ return openBlock(), createElementBlock("div", {
257
+ class: normalizeClass(["astryx-syntax-theme", _ctx.$attrs.class]),
258
+ "data-astryx-syntax-theme": __props.theme.name,
259
+ style: normalizeStyle([style.value, _ctx.$attrs.style])
260
+ }, [renderSlot(_ctx.$slots, "default")], 14, _hoisted_1);
261
+ };
262
+ }
263
+ });
264
+ //#endregion
265
+ //#region src/Code/useSyntaxTheme.ts
266
+ /**
267
+ * Read the nearest SyntaxTheme, or the syntax field of the nearest Theme.
268
+ * Returns null when neither is present.
269
+ */
270
+ function useSyntaxTheme() {
271
+ const injected = inject(syntaxThemeKey, null);
272
+ const theme = inject(themeContextKey, null);
273
+ const prefersDark = useMediaQuery("(prefers-color-scheme: dark)");
274
+ if (!injected) return null;
275
+ const mode = computed(() => {
276
+ const requested = theme?.value.mode;
277
+ if (requested === "light" || requested === "dark") return requested;
278
+ return readColorMode(prefersDark.value);
279
+ });
280
+ const name = computed(() => injected.value?.name ?? "");
281
+ const tokens = computed(() => {
282
+ const theme = injected.value;
283
+ if (!theme) return null;
284
+ const resolved = {};
285
+ for (const key of SYNTAX_TOKEN_KEYS) resolved[key] = resolveLightDark(theme.tokens[key], mode.value);
286
+ return resolved;
287
+ });
288
+ function token(tokenName) {
289
+ return tokens.value?.[tokenName] ?? "";
290
+ }
291
+ return {
292
+ name,
293
+ mode,
294
+ token,
295
+ tokens
296
+ };
297
+ }
298
+ //#endregion
299
+ export { catppuccinMocha as a, githubLight as c, nord as d, oneDarkPro as f, tokyoNightLight as g, tokyoNight as h, catppuccinLatte as i, lightSyntaxPresets as l, solarizedLight as m, _sfc_main as n, darkSyntaxPresets as o, oneLight as p, allSyntaxPresets as r, dracula as s, useSyntaxTheme as t, monokai as u };
@@ -1,7 +1,8 @@
1
1
  import { t as _sfc_main$3 } from "./VisuallyHidden-C7NN3VEP.js";
2
2
  import { t as useClipboard } from "./useClipboard-BDfbEsWd.js";
3
3
  import { t as _sfc_main$4 } from "./IconButton-BNQuz9W_.js";
4
- import { t as _sfc_main$5 } from "./Icon-5MdZQ18k.js";
4
+ import { t as _sfc_main$5 } from "./Icon-Bku25g_K.js";
5
+ import { i as syntaxThemeStyle } from "./syntaxTheme-ClpWALZX.js";
5
6
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, toDisplayString, unref, useAttrs, useId, useTemplateRef, watch, withCtx, withModifiers } from "vue";
6
7
  import "../styles/code.css";
7
8
  //#region src/Code/Code.vue
@@ -976,6 +977,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
976
977
  props: {
977
978
  code: {},
978
979
  language: { default: "plaintext" },
980
+ syntaxTheme: {},
979
981
  title: {},
980
982
  hasLanguageLabel: {
981
983
  type: Boolean,
@@ -1125,7 +1127,11 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1125
1127
  style.minWidth = "min(100%, 400px)";
1126
1128
  style.maxWidth = "100%";
1127
1129
  }
1128
- return [attrs.style, style];
1130
+ return [
1131
+ attrs.style,
1132
+ props.syntaxTheme ? syntaxThemeStyle(props.syntaxTheme) : null,
1133
+ style
1134
+ ];
1129
1135
  });
1130
1136
  const forwardedAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([key]) => key !== "class" && key !== "style")));
1131
1137
  return (_ctx, _cache) => {
@@ -1,2 +1,2 @@
1
- import { n as _sfc_main, t as _sfc_main$1 } from "../Collapsible-BS9ctCQV.js";
1
+ import { n as _sfc_main, t as _sfc_main$1 } from "../Collapsible-DvMiYJp7.js";
2
2
  export { _sfc_main as Collapsible, _sfc_main$1 as CollapsibleGroup };
@@ -1,4 +1,4 @@
1
- import { t as _sfc_main$2 } from "./Icon-5MdZQ18k.js";
1
+ import { t as _sfc_main$2 } from "./Icon-Bku25g_K.js";
2
2
  import { Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeModels, openBlock, provide, renderSlot, shallowRef, toDisplayString, useId, useModel, useTemplateRef, vShow, withCtx, withDirectives } from "vue";
3
3
  import "../styles/collapsible.css";
4
4
  //#region src/Collapsible/context.ts
@@ -1,2 +1,2 @@
1
- import { a as _sfc_main$3, i as _sfc_main$4, n as _sfc_main$6, o as _sfc_main$2, r as _sfc_main$5, s as _sfc_main$1, t as _sfc_main } from "../CommandPalette-u5h_E05P.js";
1
+ import { a as _sfc_main$3, i as _sfc_main$4, n as _sfc_main$6, o as _sfc_main$2, r as _sfc_main$5, s as _sfc_main$1, t as _sfc_main } from "../CommandPalette-xfm9ldUI.js";
2
2
  export { _sfc_main as CommandPalette, _sfc_main$1 as CommandPaletteEmpty, _sfc_main$2 as CommandPaletteFooter, _sfc_main$3 as CommandPaletteGroup, _sfc_main$4 as CommandPaletteInput, _sfc_main$5 as CommandPaletteItem, _sfc_main$6 as CommandPaletteList };
@@ -1,7 +1,7 @@
1
1
  import { t as useAnnounce } from "./announce-Cnio10Wk.js";
2
2
  import { n as useAsyncSource } from "./useAsyncSource-Gk0VtE7_.js";
3
3
  import { n as DIALOG_CONTEXT_KEY, t as _sfc_main$7 } from "./Dialog-rfUt3y8P.js";
4
- import { a as useAstryxMessages } from "./context-D6ECRdc5.js";
4
+ import { a as useAstryxMessages } from "./context-DzcK4T_C.js";
5
5
  import { t as _sfc_main$8 } from "./Spinner-9cYUCnDy.js";
6
6
  import { t as _sfc_main$9 } from "./Kbd-BB-Dw6zE.js";
7
7
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeModels, onMounted, openBlock, provide, ref, renderList, renderSlot, toDisplayString, unref, useId, useModel, useTemplateRef, watch, withCtx } from "vue";
@@ -1,2 +1,2 @@
1
- import { a as ComplexSelectorProps, c as ComplexSelectorState, i as ComplexSelectorHandleRef, l as ComplexSelectorTriggerProps, n as ComplexSelectorEmits, o as ComplexSelectorSlotProps, r as ComplexSelectorHandle, s as ComplexSelectorSlots, t as _default, u as ComplexSelectorVariant } from "../index-CX97hlld.js";
1
+ import { a as ComplexSelectorProps, c as ComplexSelectorState, i as ComplexSelectorHandleRef, l as ComplexSelectorTriggerProps, n as ComplexSelectorEmits, o as ComplexSelectorSlotProps, r as ComplexSelectorHandle, s as ComplexSelectorSlots, t as _default, u as ComplexSelectorVariant } from "../index-CBym0hSq.js";
2
2
  export { _default as ComplexSelector, _default as default, type ComplexSelectorEmits, type ComplexSelectorHandle, type ComplexSelectorHandleRef, type ComplexSelectorProps, type ComplexSelectorSlotProps, type ComplexSelectorSlots, type ComplexSelectorState, type ComplexSelectorTriggerProps, type ComplexSelectorVariant };
@@ -1,2 +1,2 @@
1
- import { n as _sfc_main, t as ComplexSelector_default } from "../ComplexSelector-BHmGWml0.js";
1
+ import { n as _sfc_main, t as ComplexSelector_default } from "../ComplexSelector-B6lBTRhP.js";
2
2
  export { _sfc_main as ComplexSelector, ComplexSelector_default as default };
@@ -1,5 +1,5 @@
1
- import { a as useAstryxMessages } from "./context-D6ECRdc5.js";
2
- import { t as _sfc_main$1 } from "./Icon-5MdZQ18k.js";
1
+ import { a as useAstryxMessages } from "./context-DzcK4T_C.js";
2
+ import { t as _sfc_main$1 } from "./Icon-Bku25g_K.js";
3
3
  import { t as _sfc_main$2 } from "./Spinner-9cYUCnDy.js";
4
4
  import { t as _sfc_main$3 } from "./Field-8zRxzDHE.js";
5
5
  import { t as _sfc_main$4 } from "./Popover-Crhk9PNP.js";
@@ -1,2 +1,2 @@
1
- import { C as ContextMenuSlots, D as ContextMenuTriggerElement, E as ContextMenuSubMenuSlots, O as ContextMenuVariant, S as ContextMenuSize, T as ContextMenuSubMenuProps, _ as ContextMenuItemSlots, a as _default, b as ContextMenuProps, c as ContextMenuDividerData, d as ContextMenuGroupProps, f as ContextMenuGroupSlots, g as ContextMenuItemProps, h as ContextMenuItemIcon, i as _default$1, k as ContextMenuWidth, l as ContextMenuDividerProps, m as ContextMenuItemEmits, n as _default$3, o as useContextMenu, p as ContextMenuItemData, r as _default$2, s as useContextMenuSize, t as _default$4, u as ContextMenuEmits, v as ContextMenuItemTarget, w as ContextMenuSubMenuEmits, x as ContextMenuSection, y as ContextMenuOption } from "../index-CTolyeii.js";
2
- export { _default as ContextMenu, _default$1 as ContextMenuDivider, type ContextMenuDividerData, type ContextMenuDividerProps, type ContextMenuEmits, _default$2 as ContextMenuGroup, type ContextMenuGroupProps, type ContextMenuGroupSlots, _default$3 as ContextMenuItem, type ContextMenuItemData, type ContextMenuItemEmits, type ContextMenuItemIcon, type ContextMenuItemProps, type ContextMenuItemSlots, type ContextMenuItemTarget, type ContextMenuOption, type ContextMenuProps, type ContextMenuSection, type ContextMenuSize, type ContextMenuSlots, _default$4 as ContextMenuSubMenu, type ContextMenuSubMenuEmits, type ContextMenuSubMenuProps, type ContextMenuSubMenuSlots, type ContextMenuTriggerElement, type ContextMenuVariant, type ContextMenuWidth, useContextMenu, useContextMenuSize };
1
+ import { A as ContextMenuWidth, C as ContextMenuSize, D as ContextMenuSubMenuSlots, E as ContextMenuSubMenuProps, O as ContextMenuTriggerElement, S as ContextMenuSection, T as ContextMenuSubMenuEmits, _ as ContextMenuItemSlots, a as _default, b as ContextMenuPresentation, c as ContextMenuDividerData, d as ContextMenuGroupProps, f as ContextMenuGroupSlots, g as ContextMenuItemProps, h as ContextMenuItemIcon, i as _default$1, k as ContextMenuVariant, l as ContextMenuDividerProps, m as ContextMenuItemEmits, n as _default$3, o as useContextMenu, p as ContextMenuItemData, r as _default$2, s as useContextMenuSize, t as _default$4, u as ContextMenuEmits, v as ContextMenuItemTarget, w as ContextMenuSlots, x as ContextMenuProps, y as ContextMenuOption } from "../index-BLOEjvaM.js";
2
+ export { _default as ContextMenu, _default$1 as ContextMenuDivider, type ContextMenuDividerData, type ContextMenuDividerProps, type ContextMenuEmits, _default$2 as ContextMenuGroup, type ContextMenuGroupProps, type ContextMenuGroupSlots, _default$3 as ContextMenuItem, type ContextMenuItemData, type ContextMenuItemEmits, type ContextMenuItemIcon, type ContextMenuItemProps, type ContextMenuItemSlots, type ContextMenuItemTarget, type ContextMenuOption, type ContextMenuPresentation, type ContextMenuProps, type ContextMenuSection, type ContextMenuSize, type ContextMenuSlots, _default$4 as ContextMenuSubMenu, type ContextMenuSubMenuEmits, type ContextMenuSubMenuProps, type ContextMenuSubMenuSlots, type ContextMenuTriggerElement, type ContextMenuVariant, type ContextMenuWidth, useContextMenu, useContextMenuSize };
@@ -1,2 +1,2 @@
1
- import { a as _sfc_main$1, i as _sfc_main$2, n as _sfc_main$4, o as useContextMenu, r as _sfc_main$3, s as useContextMenuSize, t as _sfc_main } from "../ContextMenu-dA-ppaRQ.js";
1
+ import { a as _sfc_main$1, i as _sfc_main$2, n as _sfc_main$4, o as useContextMenu, r as _sfc_main$3, s as useContextMenuSize, t as _sfc_main } from "../ContextMenu-DUkED3Z3.js";
2
2
  export { _sfc_main as ContextMenu, _sfc_main$1 as ContextMenuDivider, _sfc_main$2 as ContextMenuGroup, _sfc_main$3 as ContextMenuItem, _sfc_main$4 as ContextMenuSubMenu, useContextMenu, useContextMenuSize };
@@ -2,10 +2,11 @@ import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
2
2
  import { t as useDismiss } from "./useDismiss-CAiHU6QD.js";
3
3
  import { t as useLongPress } from "./useLongPress-Cyxwa73s.js";
4
4
  import { n as useOverflow } from "./useOverflow-VrwF5oek.js";
5
- import { t as _sfc_main$6 } from "./Icon-5MdZQ18k.js";
6
- import { t as _sfc_main$7 } from "./Divider-BtwnL18I.js";
7
5
  import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
8
- import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, openBlock, provide, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
6
+ import { t as _sfc_main$6 } from "./BottomSheet-Dg95HB1s.js";
7
+ import { t as _sfc_main$7 } from "./Icon-Bku25g_K.js";
8
+ import { t as _sfc_main$8 } from "./Divider-BtwnL18I.js";
9
+ import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, onScopeDispose, openBlock, provide, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, unref, useAttrs, useId, useModel, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
9
10
  import "../styles/context-menu.css";
10
11
  //#region src/ContextMenu/context.ts
11
12
  const contextMenuContextKey = Symbol("astryx-context-menu");
@@ -34,7 +35,7 @@ const _sfc_main$5 = /*@__PURE__*/ defineComponent({
34
35
  props: { variant: { default: "subtle" } },
35
36
  setup(__props) {
36
37
  return (_ctx, _cache) => {
37
- return openBlock(), createBlock(_sfc_main$7, {
38
+ return openBlock(), createBlock(_sfc_main$8, {
38
39
  class: "astryx-context-menu-divider",
39
40
  variant: __props.variant
40
41
  }, null, 8, ["variant"]);
@@ -371,7 +372,7 @@ const _sfc_main$3 = /*@__PURE__*/ defineComponent({
371
372
  onPointermove: handlePointerMove
372
373
  }, {
373
374
  default: withCtx(() => [
374
- __props.icon != null || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$2, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$6, {
375
+ __props.icon != null || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_1$2, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$7, {
375
376
  color: iconColor.value,
376
377
  icon: __props.icon,
377
378
  size: "sm"
@@ -813,13 +814,13 @@ const _sfc_main$2 = /*@__PURE__*/ defineComponent({
813
814
  onPointerleave: _cache[0] || (_cache[0] = (...args) => unref(hover).onTriggerPointerLeave && unref(hover).onTriggerPointerLeave(...args)),
814
815
  onPointermove: onRowPointerMove
815
816
  }), [
816
- __props.icon != null || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$6, {
817
+ __props.icon != null || _ctx.$slots.icon ? (openBlock(), createElementBlock("span", _hoisted_2, [renderSlot(_ctx.$slots, "icon", {}, () => [createVNode(_sfc_main$7, {
817
818
  icon: __props.icon,
818
819
  color: "secondary",
819
820
  size: "sm"
820
821
  }, null, 8, ["icon"])])])) : createCommentVNode("v-if", true),
821
822
  createElementVNode("span", _hoisted_3, [createElementVNode("span", _hoisted_4, [renderSlot(_ctx.$slots, "label", {}, () => [createTextVNode(toDisplayString(__props.label), 1)])]), __props.description != null || _ctx.$slots.description ? (openBlock(), createElementBlock("span", _hoisted_5, [renderSlot(_ctx.$slots, "description", {}, () => [createTextVNode(toDisplayString(__props.description), 1)])])) : createCommentVNode("v-if", true)]),
822
- createElementVNode("span", _hoisted_6, [renderSlot(_ctx.$slots, "endContent", {}, () => [createVNode(_sfc_main$6, {
823
+ createElementVNode("span", _hoisted_6, [renderSlot(_ctx.$slots, "endContent", {}, () => [createVNode(_sfc_main$7, {
823
824
  class: "astryx-context-menu-item__chevron",
824
825
  icon: "chevronRight",
825
826
  color: "secondary",
@@ -1090,6 +1091,7 @@ const _hoisted_1 = [
1090
1091
  ];
1091
1092
  const GAP = 0;
1092
1093
  const DEFAULT_MIN_WIDTH = 160;
1094
+ const ADAPTIVE_QUERY = "(max-width: 768px) and (pointer: coarse)";
1093
1095
  const _sfc_main = /*@__PURE__*/ defineComponent({
1094
1096
  name: "AstryxContextMenu",
1095
1097
  inheritAttrs: false,
@@ -1104,6 +1106,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1104
1106
  default: false
1105
1107
  },
1106
1108
  triggerAs: { default: "div" },
1109
+ presentation: { default: "popover" },
1107
1110
  isOpen: { type: Boolean }
1108
1111
  }, {
1109
1112
  "isOpen": {
@@ -1127,6 +1130,15 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1127
1130
  */
1128
1131
  const triggerAttrs = computed(() => Object.fromEntries(Object.entries(attrs).filter(([key]) => key !== "class" && key !== "style")));
1129
1132
  /** Where the menu's own corner sits relative to the cursor point. */
1133
+ const isCompactTouch = shallowRef(false);
1134
+ let mediaQuery;
1135
+ function syncCompactTouch() {
1136
+ isCompactTouch.value = mediaQuery?.matches === true;
1137
+ }
1138
+ const isSheet = computed(() => {
1139
+ if (props.presentation === "adaptive") return isCompactTouch.value;
1140
+ return props.presentation === "bottom-sheet";
1141
+ });
1130
1142
  const openModel = useModel(__props, "isOpen");
1131
1143
  const localIsOpen = ref(false);
1132
1144
  const isOpen = computed(() => openModel.value ?? localIsOpen.value);
@@ -1187,6 +1199,7 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1187
1199
  if (target != null && target.isConnected) target.focus();
1188
1200
  }
1189
1201
  function focusPanelOrFirstRow() {
1202
+ if (isSheet.value) return;
1190
1203
  if (!nav.focusFirst()) panel.value?.focus({ preventScroll: true });
1191
1204
  }
1192
1205
  function setOpen(next) {
@@ -1195,6 +1208,9 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1195
1208
  localIsOpen.value = next;
1196
1209
  emit("openChange", next);
1197
1210
  }
1211
+ function onSheetOpen(open) {
1212
+ if (open === false) closeMenu();
1213
+ }
1198
1214
  function closeMenu(options = {}) {
1199
1215
  if (!isOpen.value) return;
1200
1216
  const active = panel.value?.ownerDocument.activeElement;
@@ -1256,12 +1272,18 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1256
1272
  }
1257
1273
  watch(isOpen, applyOpenState);
1258
1274
  onMounted(() => {
1275
+ if (typeof window.matchMedia === "function") {
1276
+ mediaQuery = window.matchMedia(ADAPTIVE_QUERY);
1277
+ syncCompactTouch();
1278
+ mediaQuery.addEventListener?.("change", syncCompactTouch);
1279
+ }
1259
1280
  if (isOpen.value) applyOpenState(true);
1260
1281
  });
1261
1282
  watch(() => props.isDisabled, (isDisabled) => {
1262
1283
  if (isDisabled) closeMenu();
1263
1284
  });
1264
1285
  onBeforeUnmount(() => {
1286
+ mediaQuery?.removeEventListener?.("change", syncCompactTouch);
1265
1287
  resetMenuPress();
1266
1288
  });
1267
1289
  __expose({
@@ -1272,63 +1294,79 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
1272
1294
  open: () => openAt(0, 0)
1273
1295
  });
1274
1296
  return (_ctx, _cache) => {
1275
- return openBlock(), createElementBlock(Fragment, null, [(openBlock(), createBlock(resolveDynamicComponent(__props.triggerAs === "span" ? "span" : "div"), mergeProps({
1276
- ref_key: "trigger",
1277
- ref: trigger
1278
- }, triggerAttrs.value, {
1279
- class: "astryx-context-menu-trigger",
1280
- "data-disabled": __props.isDisabled || void 0,
1281
- "data-open": isOpen.value ? "open" : void 0,
1282
- onContextmenu: onTriggerContextMenu,
1283
- onPointercancel: unref(longPress).cancel,
1284
- onPointerdown: onTriggerPointerDown,
1285
- onPointermove: onTriggerPointerMove,
1286
- onPointerup: unref(longPress).cancel
1287
- }), {
1288
- default: withCtx(() => [renderSlot(_ctx.$slots, "default"), createElementVNode("span", {
1289
- ref_key: "cursorAnchor",
1290
- ref: cursorAnchor,
1291
- "aria-hidden": "true",
1292
- class: "astryx-context-menu-anchor",
1293
- style: normalizeStyle({
1294
- left: `${cursorPoint.value.x}px`,
1295
- top: `${cursorPoint.value.y}px`
1296
- })
1297
- }, null, 4)]),
1298
- _: 3
1299
- }, 16, [
1300
- "data-disabled",
1301
- "data-open",
1302
- "onPointercancel",
1303
- "onPointerup"
1304
- ])), (openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(Transition, {
1305
- name: "astryx-context-menu",
1306
- persisted: ""
1307
- }, {
1308
- default: withCtx(() => [withDirectives(createElementVNode("div", {
1309
- id: menuId,
1310
- ref_key: "panel",
1311
- ref: panel,
1312
- "aria-label": __props.label,
1313
- class: normalizeClass(["astryx-context-menu", unref(attrs).class]),
1314
- "data-overflow": unref(hasOverflow) || void 0,
1315
- "data-placement": unref(position).placement,
1316
- "data-size": __props.size,
1317
- "data-width": __props.menuWidth != null ? "custom" : void 0,
1318
- "data-astryx-menu-press": "",
1319
- role: "menu",
1320
- style: normalizeStyle([panelStyle.value, unref(attrs).style]),
1321
- tabindex: "-1",
1322
- onContextmenu: _cache[0] || (_cache[0] = withModifiers(() => {}, ["prevent"])),
1323
- onKeydown: _cache[1] || (_cache[1] = (...args) => unref(nav).handleKeyDown && unref(nav).handleKeyDown(...args)),
1324
- onPointerdown: _cache[2] || (_cache[2] = (...args) => unref(menuPress).onPointerDown && unref(menuPress).onPointerDown(...args))
1325
- }, [__props.items != null ? (openBlock(), createBlock(_sfc_main$1, {
1297
+ return openBlock(), createElementBlock(Fragment, null, [
1298
+ (openBlock(), createBlock(resolveDynamicComponent(__props.triggerAs === "span" ? "span" : "div"), mergeProps({
1299
+ ref_key: "trigger",
1300
+ ref: trigger
1301
+ }, triggerAttrs.value, {
1302
+ class: "astryx-context-menu-trigger",
1303
+ "data-disabled": __props.isDisabled || void 0,
1304
+ "data-open": isOpen.value ? "open" : void 0,
1305
+ onContextmenu: onTriggerContextMenu,
1306
+ onPointercancel: unref(longPress).cancel,
1307
+ onPointerdown: onTriggerPointerDown,
1308
+ onPointermove: onTriggerPointerMove,
1309
+ onPointerup: unref(longPress).cancel
1310
+ }), {
1311
+ default: withCtx(() => [renderSlot(_ctx.$slots, "default"), createElementVNode("span", {
1312
+ ref_key: "cursorAnchor",
1313
+ ref: cursorAnchor,
1314
+ "aria-hidden": "true",
1315
+ class: "astryx-context-menu-anchor",
1316
+ style: normalizeStyle({
1317
+ left: `${cursorPoint.value.x}px`,
1318
+ top: `${cursorPoint.value.y}px`
1319
+ })
1320
+ }, null, 4)]),
1321
+ _: 3
1322
+ }, 16, [
1323
+ "data-disabled",
1324
+ "data-open",
1325
+ "onPointercancel",
1326
+ "onPointerup"
1327
+ ])),
1328
+ (openBlock(), createBlock(Teleport, { to: "body" }, [createVNode(Transition, {
1329
+ name: "astryx-context-menu",
1330
+ persisted: ""
1331
+ }, {
1332
+ default: withCtx(() => [withDirectives(createElementVNode("div", {
1333
+ id: menuId,
1334
+ ref_key: "panel",
1335
+ ref: panel,
1336
+ "aria-label": __props.label,
1337
+ class: normalizeClass(["astryx-context-menu", unref(attrs).class]),
1338
+ "data-overflow": unref(hasOverflow) || void 0,
1339
+ "data-placement": unref(position).placement,
1340
+ "data-size": __props.size,
1341
+ "data-width": __props.menuWidth != null ? "custom" : void 0,
1342
+ "data-astryx-menu-press": "",
1343
+ role: "menu",
1344
+ style: normalizeStyle([panelStyle.value, unref(attrs).style]),
1345
+ tabindex: "-1",
1346
+ onContextmenu: _cache[0] || (_cache[0] = withModifiers(() => {}, ["prevent"])),
1347
+ onKeydown: _cache[1] || (_cache[1] = (...args) => unref(nav).handleKeyDown && unref(nav).handleKeyDown(...args)),
1348
+ onPointerdown: _cache[2] || (_cache[2] = (...args) => unref(menuPress).onPointerDown && unref(menuPress).onPointerDown(...args))
1349
+ }, [__props.items != null && !isSheet.value ? (openBlock(), createBlock(_sfc_main$1, {
1350
+ key: 0,
1351
+ items: __props.items,
1352
+ onSelect
1353
+ }, null, 8, ["items"])) : !isSheet.value ? renderSlot(_ctx.$slots, "content", {}, void 0, void 0, 1) : createCommentVNode("v-if", true)], 46, _hoisted_1), [[vShow, isOpen.value && !isSheet.value]])]),
1354
+ _: 3
1355
+ })])),
1356
+ isSheet.value ? (openBlock(), createBlock(_sfc_main$6, {
1326
1357
  key: 0,
1327
- items: __props.items,
1328
- onSelect
1329
- }, null, 8, ["items"])) : renderSlot(_ctx.$slots, "content", {}, void 0, void 0, 1)], 46, _hoisted_1), [[vShow, isOpen.value]])]),
1330
- _: 3
1331
- })]))], 64);
1358
+ "is-open": isOpen.value,
1359
+ label: __props.label,
1360
+ "onUpdate:isOpen": onSheetOpen
1361
+ }, {
1362
+ default: withCtx(() => [__props.items != null ? (openBlock(), createBlock(_sfc_main$1, {
1363
+ key: 0,
1364
+ items: __props.items,
1365
+ onSelect
1366
+ }, null, 8, ["items"])) : renderSlot(_ctx.$slots, "content", {}, void 0, void 0, 1)]),
1367
+ _: 3
1368
+ }, 8, ["is-open", "label"])) : createCommentVNode("v-if", true)
1369
+ ], 64);
1332
1370
  };
1333
1371
  }
1334
1372
  });
@@ -1,2 +1,2 @@
1
- import { i as DateInputSlots, n as DateInputEmits, r as DateInputProps, t as _default } from "../index-ZJyk8RtQ.js";
2
- export { _default as DateInput, type DateInputEmits, type DateInputProps, type DateInputSlots };
1
+ import { ar as DateInputFormatName, cr as DateInputSlots, ir as DateInputFormat, lr as DateInputStatus, nr as _default, or as DateInputPresentation, rr as DateInputEmits, sr as DateInputProps, ur as DateInputStatusType } from "../index-DeOftUMq.js";
2
+ export { _default as DateInput, type DateInputEmits, type DateInputFormat, type DateInputFormatName, type DateInputPresentation, type DateInputProps, type DateInputSlots, type DateInputStatus, type DateInputStatusType };