@astryx-vue/core 0.1.1 → 0.2.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 (291) 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.d.ts +2 -0
  4. package/dist/AppShell/index.js +2 -0
  5. package/dist/AppShell-EiGyPFbA.js +249 -0
  6. package/dist/AspectRatio/index.d.ts +2 -0
  7. package/dist/AspectRatio/index.js +2 -0
  8. package/dist/AspectRatio-Bij7e-tq.js +40 -0
  9. package/dist/AvatarGroup/index.d.ts +1 -1
  10. package/dist/Banner/index.d.ts +1 -1
  11. package/dist/BottomSheet/index.d.ts +1 -1
  12. package/dist/Button/index.d.ts +1 -1
  13. package/dist/ButtonGroup/index.d.ts +1 -1
  14. package/dist/Calendar/index.js +1 -1
  15. package/dist/{Calendar-BEyrkUtr.js → Calendar-BG7wEsro.js} +1 -1
  16. package/dist/Carousel/index.d.ts +2 -0
  17. package/dist/Carousel/index.js +2 -0
  18. package/dist/Carousel-BTtHkKea.js +363 -0
  19. package/dist/Chat/index.js +1 -1
  20. package/dist/{Chat-CO3mCs9A.js → Chat-DjNxw5gv.js} +2 -2
  21. package/dist/CheckboxInput/index.d.ts +1 -1
  22. package/dist/CheckboxInput/index.js +1 -1
  23. package/dist/{CheckboxInput-C86o3XoG.js → CheckboxInput-CMsEE1_4.js} +4 -2
  24. package/dist/CheckboxList/index.d.ts +1 -1
  25. package/dist/CheckboxList/index.js +1 -1
  26. package/dist/{CheckboxList-BL2sDOWK.js → CheckboxList-EsIEXjK_.js} +2 -2
  27. package/dist/Citation/index.js +1 -1
  28. package/dist/{Citation-BqwJvw7o.js → Citation-DijdbUUu.js} +2 -2
  29. package/dist/ClickableCard/index.d.ts +2 -0
  30. package/dist/ClickableCard/index.js +2 -0
  31. package/dist/ClickableCard-Bhds4RRe.js +112 -0
  32. package/dist/Code/index.d.ts +3 -2
  33. package/dist/Code/index.js +4 -2
  34. package/dist/Code-yb_KOFtJ.js +299 -0
  35. package/dist/{CodeBlock-BQdooQy2.js → CodeBlock-CxTb6j9_.js} +8 -2
  36. package/dist/Collapsible/index.d.ts +2 -2
  37. package/dist/Collapsible/index.js +2 -2
  38. package/dist/Collapsible-9MC08X39.js +192 -0
  39. package/dist/CommandPalette/index.d.ts +2 -0
  40. package/dist/CommandPalette/index.js +2 -0
  41. package/dist/CommandPalette-BD2iODF5.js +489 -0
  42. package/dist/ComplexSelector/index.d.ts +2 -0
  43. package/dist/ComplexSelector/index.js +2 -0
  44. package/dist/ComplexSelector-D9iXd5cH.js +293 -0
  45. package/dist/ContextMenu/index.d.ts +1 -1
  46. package/dist/ContextMenu/index.js +1 -1
  47. package/dist/{ContextMenu-dA-ppaRQ.js → ContextMenu-HS_WqYIg.js} +1 -1
  48. package/dist/DateInput/index.d.ts +1 -1
  49. package/dist/DateInput/index.js +1 -1
  50. package/dist/{DateInput-BOIb0zAp.js → DateInput-DE2TN1Rq.js} +2 -2
  51. package/dist/DateRangeInput/index.d.ts +1 -1
  52. package/dist/DateRangeInput/index.js +1 -1
  53. package/dist/{DateRangeInput-DLcbgUBi.js → DateRangeInput-1bhPGG2s.js} +4 -4
  54. package/dist/DateTimeInput/index.d.ts +1 -1
  55. package/dist/DateTimeInput/index.js +1 -1
  56. package/dist/{DateTimeInput-RitYX_Yx.js → DateTimeInput-SnPdgk6P.js} +4 -4
  57. package/dist/Divider/index.d.ts +1 -1
  58. package/dist/DropdownMenu/index.js +1 -1
  59. package/dist/{DropdownMenu-B0gogrvG.js → DropdownMenu-UJGych6v.js} +1 -1
  60. package/dist/EmptyState/index.js +1 -1
  61. package/dist/{EmptyState-Bhlqgsg4.js → EmptyState-CUJdTYKV.js} +1 -1
  62. package/dist/Field/index.js +2 -2
  63. package/dist/{Field-VlTBsIEo.js → Field-8zRxzDHE.js} +11 -3
  64. package/dist/{FieldLabel-B1NRyQlS.js → FieldLabel-DmmJyX7w.js} +6 -1
  65. package/dist/FileInput/index.d.ts +1 -1
  66. package/dist/FileInput/index.js +1 -1
  67. package/dist/{FileInput-CYvEV503.js → FileInput-BQiwE-GB.js} +3 -3
  68. package/dist/FormLayout/index.d.ts +2 -0
  69. package/dist/FormLayout/index.js +2 -0
  70. package/dist/FormLayout-D47FjiOq.js +40 -0
  71. package/dist/HoverCard/index.d.ts +1 -1
  72. package/dist/Icon/index.d.ts +3 -0
  73. package/dist/Icon/index.js +2 -0
  74. package/dist/{Icon-5MdZQ18k.js → Icon-Dfr4k6-S.js} +1 -1
  75. package/dist/Layout/index.d.ts +2 -0
  76. package/dist/Layout/index.js +3 -0
  77. package/dist/Layout-Bed3kP0M.js +56 -0
  78. package/dist/LayoutPanel-C34uOq3e.js +358 -0
  79. package/dist/Lightbox/index.d.ts +2 -0
  80. package/dist/Lightbox/index.js +2 -0
  81. package/dist/Lightbox-CshKoB0r.js +384 -0
  82. package/dist/Link/index.d.ts +1 -1
  83. package/dist/List/index.d.ts +1 -1
  84. package/dist/Markdown/index.d.ts +1 -1
  85. package/dist/Markdown/index.js +1 -1
  86. package/dist/{Markdown-Dnlp8cVx.js → Markdown-D-Ua055V.js} +2 -2
  87. package/dist/MetadataList/index.js +1 -1
  88. package/dist/{MetadataList-DIsqS1Qb.js → MetadataList-sYph_d8Q.js} +1 -1
  89. package/dist/MobileNav/index.d.ts +1 -1
  90. package/dist/MobileNav/index.js +1 -1
  91. package/dist/{MobileNavToggle-aUZiDwHm.js → MobileNavToggle-DD9D01aj.js} +19 -12
  92. package/dist/MoreMenu/index.d.ts +1 -1
  93. package/dist/MoreMenu/index.js +1 -1
  94. package/dist/{MoreMenu-BXL6Dqsu.js → MoreMenu-BVrK5kkk.js} +1 -1
  95. package/dist/MultiSelector/index.d.ts +1 -1
  96. package/dist/MultiSelector/index.js +1 -1
  97. package/dist/{MultiSelector-Bh8or2S6.js → MultiSelector-DiYov9sF.js} +3 -3
  98. package/dist/NavItem/index.d.ts +1 -1
  99. package/dist/NavMenu/index.d.ts +1 -1
  100. package/dist/NavMenu/index.js +1 -1
  101. package/dist/{NavMenuItem-mzNQESpB.js → NavMenuItem-B-k7olt5.js} +2 -1
  102. package/dist/NumberInput/index.d.ts +1 -1
  103. package/dist/NumberInput/index.js +1 -1
  104. package/dist/{NumberInput-C3S-4dIu.js → NumberInput-CTYiQxHq.js} +1 -1
  105. package/dist/Outline/index.d.ts +2 -0
  106. package/dist/Outline/index.js +2 -0
  107. package/dist/Outline-DQfEBxlc.js +325 -0
  108. package/dist/OverflowList/index.d.ts +1 -1
  109. package/dist/OverflowList/index.js +1 -1
  110. package/dist/{OverflowList-Kr4iJrNV.js → OverflowList-BU5VCntl.js} +2 -2
  111. package/dist/Overlay/index.d.ts +1 -1
  112. package/dist/Pagination/index.js +1 -1
  113. package/dist/{Pagination-BRStpeSB.js → Pagination-HdhtykeF.js} +2 -2
  114. package/dist/Popover/index.d.ts +2 -1
  115. package/dist/Radio/index.d.ts +1 -1
  116. package/dist/Radio/index.js +1 -1
  117. package/dist/{RadioGroup-DS6oTV_j.js → RadioGroup-BqjdSCfJ.js} +1 -1
  118. package/dist/RadioList/index.d.ts +1 -1
  119. package/dist/RadioList/index.js +1 -1
  120. package/dist/{RadioList-pwr93I-z.js → RadioList-DI8ujXcT.js} +1 -1
  121. package/dist/Resizable/index.d.ts +2 -0
  122. package/dist/Resizable/index.js +2 -0
  123. package/dist/Resizable-BhSMfO5B.js +261 -0
  124. package/dist/ScrollableArea/index.d.ts +2 -0
  125. package/dist/ScrollableArea/index.js +2 -0
  126. package/dist/ScrollableArea-DQDYjnxO.js +78 -0
  127. package/dist/Section/index.d.ts +2 -0
  128. package/dist/Section/index.js +2 -0
  129. package/dist/Section-C48Wqfc7.js +68 -0
  130. package/dist/SelectableCard/index.d.ts +2 -0
  131. package/dist/SelectableCard/index.js +2 -0
  132. package/dist/SelectableCard-Bj5s_tIN.js +108 -0
  133. package/dist/Selector/index.d.ts +1 -1
  134. package/dist/Selector/index.js +1 -1
  135. package/dist/{Selector-DvEUIVEC.js → Selector-Da-2BO3q.js} +1 -1
  136. package/dist/SideNav/index.d.ts +1 -1
  137. package/dist/SideNav/index.js +2 -1
  138. package/dist/{SideNav-B7LX4RcP.js → SideNav-B-Om6Bz3.js} +49 -27
  139. package/dist/Slider/index.js +1 -1
  140. package/dist/{Slider-DTnWxtnb.js → Slider-D8h_RKcF.js} +1 -1
  141. package/dist/Stepper/index.d.ts +2 -0
  142. package/dist/Stepper/index.js +2 -0
  143. package/dist/Stepper-BZ_8SEZt.js +423 -0
  144. package/dist/Switch/index.d.ts +1 -1
  145. package/dist/Switch/index.js +1 -1
  146. package/dist/{Switch-CNdnr5TP.js → Switch-SesQzPGZ.js} +4 -2
  147. package/dist/TabList/index.d.ts +2 -2
  148. package/dist/TabList/index.js +2 -2
  149. package/dist/TabList-Cnc2Hs1H.js +380 -0
  150. package/dist/Table/index.d.ts +2 -1
  151. package/dist/Table/index.js +1 -1
  152. package/dist/{Table-D5zWaITo.js → Table-D-LhAy_J.js} +6 -6
  153. package/dist/Text/index.d.ts +3 -2
  154. package/dist/Text/index.js +1 -1
  155. package/dist/{Text-CKd7e3gK.js → Text-BHVghsWo.js} +12 -2
  156. package/dist/TextArea/index.d.ts +1 -1
  157. package/dist/TextArea/index.js +1 -1
  158. package/dist/{TextArea-BL0NuB99.js → TextArea-Cv9UVbzS.js} +5 -3
  159. package/dist/TextInput/index.d.ts +1 -1
  160. package/dist/TextInput/index.js +1 -1
  161. package/dist/{TextInput-B0IKC7g5.js → TextInput-BasnjVvy.js} +5 -3
  162. package/dist/Theme/index.d.ts +2 -0
  163. package/dist/Theme/index.js +2 -0
  164. package/dist/Theme-BuUiiJNr.js +429 -0
  165. package/dist/Thumbnail/index.js +1 -1
  166. package/dist/{Thumbnail-DMOgWncm.js → Thumbnail-Dc1UpykG.js} +2 -2
  167. package/dist/{TimeField-DeQ1ukHl.js → TimeField-C7t9Knq9.js} +2 -2
  168. package/dist/TimeInput/index.d.ts +1 -1
  169. package/dist/TimeInput/index.js +1 -1
  170. package/dist/{TimeInput-jb1nLqZk.js → TimeInput-BXxCOY98.js} +2 -2
  171. package/dist/Timer/index.d.ts +2 -0
  172. package/dist/Timer/index.js +2 -0
  173. package/dist/Timer-B7GV6hqd.js +134 -0
  174. package/dist/Timestamp/index.d.ts +1 -1
  175. package/dist/Timestamp/index.js +1 -1
  176. package/dist/{Timestamp-DrWwVQBL.js → Timestamp-DlZSmgCJ.js} +3 -3
  177. package/dist/ToggleButton/index.d.ts +1 -1
  178. package/dist/Token/index.d.ts +1 -1
  179. package/dist/Token/index.js +1 -1
  180. package/dist/{Token-CV2J94bn.js → Token-wt4e80IM.js} +1 -1
  181. package/dist/Tokenizer/index.d.ts +1 -1
  182. package/dist/Tokenizer/index.js +1 -1
  183. package/dist/{Tokenizer-DF9r4hTW.js → Tokenizer-nmTqdS9n.js} +3 -3
  184. package/dist/Toolbar/index.d.ts +1 -1
  185. package/dist/Tooltip/index.d.ts +1 -1
  186. package/dist/TopNav/index.d.ts +1 -1
  187. package/dist/TopNav/index.js +1 -1
  188. package/dist/{TopNav-BH_s3uap.js → TopNav-notp-mJx.js} +58 -32
  189. package/dist/TreeList/index.js +1 -1
  190. package/dist/{TreeList-D9cR-w7r.js → TreeList-s1xBQ0qq.js} +2 -2
  191. package/dist/Typeahead/index.d.ts +1 -1
  192. package/dist/Typeahead/index.js +1 -1
  193. package/dist/{Typeahead-s4DC1Qem.js → Typeahead-VAuiCurV.js} +3 -3
  194. package/dist/composables/index.d.ts +3 -2
  195. package/dist/composables/index.js +5 -2
  196. package/dist/composables-CVfjp9h4.js +502 -0
  197. package/dist/context-BjNya0v8.js +19 -0
  198. package/dist/context-Cfjh8te1.js +29 -0
  199. package/dist/{context-BshXcNYX.js → context-Dbo22sck.js} +138 -0
  200. package/dist/context-O2Vb8cJl.js +57 -0
  201. package/dist/index-1AZ4KZhg.d.ts +96 -0
  202. package/dist/index-1uRMrk63.d.ts +54 -0
  203. package/dist/{index-FEy8qFSD.d.ts → index-BHqRH7QW.d.ts} +2 -2
  204. package/dist/index-BMrggCw-.d.ts +52 -0
  205. package/dist/{index-BlWLperN.d.ts → index-BUXNRekN.d.ts} +2 -2
  206. package/dist/index-Bainr_3n.d.ts +31 -0
  207. package/dist/index-Be1czg3M.d.ts +167 -0
  208. package/dist/{index-Dbmgcm8a.d.ts → index-BeR-1LgF.d.ts} +2 -0
  209. package/dist/{index-DXDGk38y.d.ts → index-Bn_odHQ9.d.ts} +1 -1
  210. package/dist/index-BrJzFA5X.d.ts +38 -0
  211. package/dist/{index-AkMWQ97a.d.ts → index-BtPZKO20.d.ts} +3 -3
  212. package/dist/index-Bu0Zd1uw.d.ts +38 -0
  213. package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
  214. package/dist/index-By2mSzUA.d.ts +67 -0
  215. package/dist/index-C59PdX9L.d.ts +141 -0
  216. package/dist/{index-BkIgRYGz.d.ts → index-C5p2NeCr.d.ts} +2 -2
  217. package/dist/{index-CQ9F1f_F.d.ts → index-C6iJwTL0.d.ts} +324 -145
  218. package/dist/{index-B4OOtNP8.d.ts → index-C7mxUcDR.d.ts} +2 -2
  219. package/dist/{index-BSRk8MFK.d.ts → index-C8wDPDcP.d.ts} +1 -1
  220. package/dist/index-CDdRQQF3.d.ts +170 -0
  221. package/dist/index-COqjznX0.d.ts +47 -0
  222. package/dist/index-CRizexSC.d.ts +147 -0
  223. package/dist/{index-Bc0dgVM5.d.ts → index-CTolyeii.d.ts} +4 -4
  224. package/dist/index-CVn0GBdB.d.ts +115 -0
  225. package/dist/index-Cm_TiLXU.d.ts +22 -0
  226. package/dist/index-Cn-sSds-.d.ts +68 -0
  227. package/dist/index-CsVS37na.d.ts +81 -0
  228. package/dist/{index-5R_pi3eT.d.ts → index-D-ZuubCK.d.ts} +3 -3
  229. package/dist/{index-g03bmR4K.d.ts → index-D0TlUOtG.d.ts} +2 -2
  230. package/dist/index-DA52oIdw.d.ts +171 -0
  231. package/dist/{index-D3V7yRUP.d.ts → index-DOUEn7V0.d.ts} +4 -4
  232. package/dist/{index-CCA4R0Mf.d.ts → index-DT9S92sh.d.ts} +31 -6
  233. package/dist/{index-CR6sUmRT.d.ts → index-DXSs3rwa.d.ts} +3 -107
  234. package/dist/{index--dh0s8Li.d.ts → index-DfgHJE7H.d.ts} +1 -1
  235. package/dist/{index-CNcQmDrK.d.ts → index-DoFCm2Q2.d.ts} +71 -0
  236. package/dist/{index-mQ6EPmaG.d.ts → index-DsyKhauk.d.ts} +78 -9
  237. package/dist/{index-12ObcW99.d.ts → index-DtjAdYEc.d.ts} +2 -2
  238. package/dist/{index-Byar3h1e.d.ts → index-HV6W3xCx.d.ts} +1 -1
  239. package/dist/{index-CsJpQElv.d.ts → index-NzLDrOkk.d.ts} +2 -2
  240. package/dist/{index-BnNh5Iml.d.ts → index-SMh42NI8.d.ts} +99 -2
  241. package/dist/{index-Q4gqBSIZ.d.ts → index-fa72tWIU.d.ts} +1 -1
  242. package/dist/{index-Bqb_Fyju.d.ts → index-jdjcb3Js.d.ts} +2 -2
  243. package/dist/{index-BhYFxnjV.d.ts → index-kaKBOZSU.d.ts} +2 -2
  244. package/dist/index-nKlTsNfV.d.ts +42 -0
  245. package/dist/index.d.ts +84 -63
  246. package/dist/index.js +118 -91
  247. package/dist/locale/index.d.ts +1 -1
  248. package/dist/locale/index.js +1 -1
  249. package/dist/size-BuTzpgnR.d.ts +14 -0
  250. package/dist/size-xcIqExkS.js +79 -0
  251. package/dist/syntaxTheme-Bcs1YMF7.d.ts +38 -0
  252. package/dist/syntaxTheme-ClpWALZX.js +75 -0
  253. package/dist/types-Bt-lSgYX.d.ts +65 -0
  254. package/dist/types-DZoEm_DG.d.ts +97 -0
  255. package/dist/{index-Bovw9_8d.d.ts → types-Db3Owy8Q.d.ts} +1 -36
  256. package/dist/types-JktRxujg.d.ts +107 -0
  257. package/dist/useAppShellMobile-DTsyuAJ4.js +19 -0
  258. package/dist/useClickableContainer-DyNpnSEa.js +112 -0
  259. package/dist/useResizable-CeESZS1v.d.ts +72 -0
  260. package/dist/useScrollableArea-DDk_CluT.js +172 -0
  261. package/package.json +73 -1
  262. package/styles/app-shell.css +151 -0
  263. package/styles/aspect-ratio.css +49 -0
  264. package/styles/card.css +5 -1
  265. package/styles/carousel.css +120 -0
  266. package/styles/clickable-card.css +101 -0
  267. package/styles/collapsible.css +37 -0
  268. package/styles/command-palette.css +183 -0
  269. package/styles/complex-selector.css +114 -0
  270. package/styles/field.css +12 -0
  271. package/styles/form-layout.css +31 -0
  272. package/styles/heading.css +25 -19
  273. package/styles/layout.css +280 -0
  274. package/styles/lightbox.css +144 -0
  275. package/styles/media-theme.css +51 -0
  276. package/styles/outline.css +124 -0
  277. package/styles/resize-handle.css +128 -0
  278. package/styles/scrollable-area.css +50 -0
  279. package/styles/section.css +60 -0
  280. package/styles/side-nav.css +26 -0
  281. package/styles/stepper.css +357 -0
  282. package/styles/tab-menu.css +91 -0
  283. package/styles/text.css +63 -14
  284. package/styles/theme.css +29 -0
  285. package/styles/timer.css +34 -0
  286. package/styles.css +18 -0
  287. package/dist/Collapsible-BYg9soTk.js +0 -102
  288. package/dist/TabList-LV1U4ZD6.js +0 -184
  289. package/dist/composables-Dq9RS33w.js +0 -111
  290. package/dist/index-BzqRns96.d.ts +0 -64
  291. package/dist/index-TnaIHsCS.d.ts +0 -87
@@ -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-Dfr4k6-S.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 { a as CollapsibleSlots, i as CollapsibleProps, n as CollapsibleChevronPosition, r as CollapsibleEmits, t as _default } from "../index-TnaIHsCS.js";
2
- export { _default as Collapsible, type CollapsibleChevronPosition, type CollapsibleEmits, type CollapsibleProps, type CollapsibleSlots };
1
+ import { a as CollapsibleGroupDensity, c as _default, d as CollapsibleProps, f as CollapsibleSlots, i as CollapsibleGroupSlots, l as CollapsibleChevronPosition, n as CollapsibleGroupEmits, o as CollapsibleGroupType, r as CollapsibleGroupProps, s as CollapsibleGroupValue, t as _default$1, u as CollapsibleEmits } from "../index-DA52oIdw.js";
2
+ export { _default as Collapsible, type CollapsibleChevronPosition, type CollapsibleEmits, _default$1 as CollapsibleGroup, type CollapsibleGroupDensity, type CollapsibleGroupEmits, type CollapsibleGroupProps, type CollapsibleGroupSlots, type CollapsibleGroupType, type CollapsibleGroupValue, type CollapsibleProps, type CollapsibleSlots };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../Collapsible-BYg9soTk.js";
2
- export { _sfc_main as Collapsible };
1
+ import { n as _sfc_main, t as _sfc_main$1 } from "../Collapsible-9MC08X39.js";
2
+ export { _sfc_main as Collapsible, _sfc_main$1 as CollapsibleGroup };
@@ -0,0 +1,192 @@
1
+ import { t as _sfc_main$2 } from "./Icon-Dfr4k6-S.js";
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
+ import "../styles/collapsible.css";
4
+ //#region src/Collapsible/context.ts
5
+ const collapsibleGroupKey = Symbol("collapsibleGroup");
6
+ const collapsibleGroupPresentationKey = Symbol("collapsibleGroupPresentation");
7
+ //#endregion
8
+ //#region src/Collapsible/Collapsible.vue
9
+ const _hoisted_1$1 = ["data-density", "data-dividers"];
10
+ const _hoisted_2 = [
11
+ "data-chevron-position",
12
+ "data-open",
13
+ "data-disabled",
14
+ "aria-expanded",
15
+ "aria-disabled",
16
+ "tabindex"
17
+ ];
18
+ const _hoisted_3 = { class: "astryx-collapsible-trigger-label" };
19
+ const _hoisted_4 = ["data-open"];
20
+ const _hoisted_5 = { class: "astryx-collapsible-content-inner" };
21
+ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
22
+ name: "AstryxCollapsible",
23
+ __name: "Collapsible",
24
+ props: /*@__PURE__*/ mergeModels({
25
+ trigger: {},
26
+ defaultIsOpen: {
27
+ type: Boolean,
28
+ default: true
29
+ },
30
+ isDisabled: {
31
+ type: Boolean,
32
+ default: false
33
+ },
34
+ chevronPosition: {},
35
+ value: {}
36
+ }, {
37
+ "isOpen": {
38
+ type: Boolean,
39
+ default: void 0
40
+ },
41
+ "isOpenModifiers": {}
42
+ }),
43
+ emits: /*@__PURE__*/ mergeModels(["openChange"], ["update:isOpen"]),
44
+ setup(__props, { expose: __expose, emit: __emit }) {
45
+ const props = __props;
46
+ const emit = __emit;
47
+ const open = useModel(__props, "isOpen");
48
+ const localIsOpen = shallowRef(props.defaultIsOpen);
49
+ const group = inject(collapsibleGroupKey, null);
50
+ const presentation = inject(collapsibleGroupPresentationKey, null);
51
+ const isGrouped = computed(() => group != null && props.value != null && props.value !== "");
52
+ const isOpen = computed(() => {
53
+ if (isGrouped.value && group != null && props.value != null) return group.isOpen(props.value);
54
+ return open.value ?? localIsOpen.value;
55
+ });
56
+ const density = computed(() => presentation?.density.value ?? null);
57
+ const hasDividers = computed(() => presentation?.hasDividers.value ?? false);
58
+ const chevronPosition = computed(() => props.chevronPosition ?? presentation?.chevronPosition.value ?? "end");
59
+ const isChevronAtStart = computed(() => chevronPosition.value === "start");
60
+ const contentId = `astryx-collapsible-${useId()}`;
61
+ const root = useTemplateRef("root");
62
+ __expose({ element: computed(() => root.value ?? null) });
63
+ function toggle() {
64
+ if (props.isDisabled) return;
65
+ if (isGrouped.value && group != null && props.value != null) {
66
+ group.toggle(props.value);
67
+ return;
68
+ }
69
+ const next = !isOpen.value;
70
+ localIsOpen.value = next;
71
+ open.value = next;
72
+ emit("openChange", next);
73
+ }
74
+ return (_ctx, _cache) => {
75
+ return openBlock(), createElementBlock("div", {
76
+ ref_key: "root",
77
+ ref: root,
78
+ class: "astryx-collapsible",
79
+ "data-density": density.value || void 0,
80
+ "data-dividers": hasDividers.value || void 0
81
+ }, [createElementVNode("button", {
82
+ type: "button",
83
+ class: "astryx-collapsible-trigger",
84
+ "data-chevron-position": chevronPosition.value,
85
+ "data-open": isOpen.value ? "open" : void 0,
86
+ "data-disabled": __props.isDisabled ? "disabled" : void 0,
87
+ "aria-expanded": isOpen.value,
88
+ "aria-controls": contentId,
89
+ "aria-disabled": __props.isDisabled || void 0,
90
+ tabindex: __props.isDisabled ? -1 : void 0,
91
+ onClick: toggle
92
+ }, [
93
+ isChevronAtStart.value ? (openBlock(), createBlock(_sfc_main$2, {
94
+ key: 0,
95
+ class: "astryx-collapsible-chevron",
96
+ color: "secondary",
97
+ icon: "chevronRight",
98
+ size: "sm"
99
+ })) : createCommentVNode("v-if", true),
100
+ createElementVNode("span", _hoisted_3, [renderSlot(_ctx.$slots, "trigger", {}, () => [createTextVNode(toDisplayString(__props.trigger), 1)])]),
101
+ !isChevronAtStart.value ? (openBlock(), createBlock(_sfc_main$2, {
102
+ key: 1,
103
+ class: "astryx-collapsible-chevron",
104
+ color: "secondary",
105
+ icon: "chevronDown",
106
+ size: "sm"
107
+ })) : createCommentVNode("v-if", true)
108
+ ], 8, _hoisted_2), createVNode(Transition, {
109
+ name: "astryx-collapsible-reveal",
110
+ persisted: ""
111
+ }, {
112
+ default: withCtx(() => [withDirectives(createElementVNode("div", {
113
+ id: contentId,
114
+ class: "astryx-collapsible-content",
115
+ "data-open": isOpen.value ? "open" : void 0
116
+ }, [createElementVNode("div", _hoisted_5, [renderSlot(_ctx.$slots, "default")])], 8, _hoisted_4), [[vShow, isOpen.value]])]),
117
+ _: 3
118
+ })], 8, _hoisted_1$1);
119
+ };
120
+ }
121
+ });
122
+ //#endregion
123
+ //#region src/Collapsible/CollapsibleGroup.vue
124
+ const _hoisted_1 = ["data-density"];
125
+ const _sfc_main = /*@__PURE__*/ defineComponent({
126
+ name: "AstryxCollapsibleGroup",
127
+ __name: "CollapsibleGroup",
128
+ props: /*@__PURE__*/ mergeModels({
129
+ type: { default: "single" },
130
+ defaultValue: {},
131
+ value: {},
132
+ hasDividers: {
133
+ type: Boolean,
134
+ default: false
135
+ },
136
+ density: {},
137
+ chevronPosition: { default: "end" }
138
+ }, {
139
+ "value": {},
140
+ "valueModifiers": {}
141
+ }),
142
+ emits: /*@__PURE__*/ mergeModels(["change"], ["update:value"]),
143
+ setup(__props, { emit: __emit }) {
144
+ const props = __props;
145
+ const emit = __emit;
146
+ function initialValue() {
147
+ if (props.defaultValue != null) return props.defaultValue;
148
+ return props.type === "multiple" ? [] : "";
149
+ }
150
+ const value = useModel(__props, "value");
151
+ const localValue = shallowRef(initialValue());
152
+ const current = computed(() => value.value ?? localValue.value);
153
+ function asList(next) {
154
+ return Array.isArray(next) ? next : next === "" ? [] : [next];
155
+ }
156
+ const openValues = computed(() => asList(current.value));
157
+ function commit(next) {
158
+ const emitted = props.type === "single" ? next[0] ?? "" : next;
159
+ localValue.value = emitted;
160
+ value.value = emitted;
161
+ emit("change", emitted);
162
+ }
163
+ function isOpen(item) {
164
+ return openValues.value.includes(item);
165
+ }
166
+ function toggle(item) {
167
+ const open = openValues.value;
168
+ commit(props.type === "single" ? open.includes(item) ? [] : [item] : open.includes(item) ? open.filter((entry) => entry !== item) : [...open, item]);
169
+ }
170
+ const density = computed(() => props.density ?? (props.hasDividers ? "balanced" : null));
171
+ const hasDividers = computed(() => props.hasDividers);
172
+ const chevronPosition = computed(() => props.chevronPosition);
173
+ provide(collapsibleGroupKey, {
174
+ isOpen,
175
+ toggle
176
+ });
177
+ provide(collapsibleGroupPresentationKey, {
178
+ chevronPosition,
179
+ density,
180
+ hasDividers
181
+ });
182
+ return (_ctx, _cache) => {
183
+ return hasDividers.value ? (openBlock(), createElementBlock("div", {
184
+ key: 0,
185
+ class: "astryx-collapsible-group",
186
+ "data-density": density.value || void 0
187
+ }, [renderSlot(_ctx.$slots, "default")], 8, _hoisted_1)) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1);
188
+ };
189
+ }
190
+ });
191
+ //#endregion
192
+ export { _sfc_main$1 as n, _sfc_main as t };
@@ -0,0 +1,2 @@
1
+ import { a as _default$2, c as CommandPaletteEmits, d as CommandPaletteItemProps, f as CommandPaletteItemSlotProps, h as CommandPaletteSlots, i as _default$3, l as CommandPaletteGroupProps, m as CommandPaletteProps, n as _default$5, o as _default$1, p as CommandPaletteListProps, r as _default$4, s as _default, t as _default$6, u as CommandPaletteInputProps } from "../index-Be1czg3M.js";
2
+ export { _default as CommandPalette, type CommandPaletteEmits, _default$1 as CommandPaletteEmpty, _default$2 as CommandPaletteFooter, _default$3 as CommandPaletteGroup, type CommandPaletteGroupProps, _default$4 as CommandPaletteInput, type CommandPaletteInputProps, _default$5 as CommandPaletteItem, type CommandPaletteItemProps, type CommandPaletteItemSlotProps, _default$6 as CommandPaletteList, type CommandPaletteListProps, type CommandPaletteProps, type CommandPaletteSlots };
@@ -0,0 +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-BD2iODF5.js";
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 };