@astryx-vue/core 0.1.3 → 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 (183) 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-EiGyPFbA.js} +2 -2
  5. package/dist/AvatarGroup/index.d.ts +1 -1
  6. package/dist/Banner/index.d.ts +1 -1
  7. package/dist/Button/index.d.ts +1 -1
  8. package/dist/ButtonGroup/index.d.ts +1 -1
  9. package/dist/Calendar/index.js +1 -1
  10. package/dist/{Calendar-CYhGDT6f.js → Calendar-BG7wEsro.js} +1 -1
  11. package/dist/Carousel/index.d.ts +2 -0
  12. package/dist/Carousel/index.js +2 -0
  13. package/dist/Carousel-BTtHkKea.js +363 -0
  14. package/dist/Chat/index.js +1 -1
  15. package/dist/{Chat-C1aWl5V3.js → Chat-DjNxw5gv.js} +2 -2
  16. package/dist/CheckboxInput/index.d.ts +1 -1
  17. package/dist/CheckboxList/index.d.ts +1 -1
  18. package/dist/Citation/index.js +1 -1
  19. package/dist/{Citation-C1X0Rde8.js → Citation-DijdbUUu.js} +2 -2
  20. package/dist/ClickableCard/index.d.ts +1 -1
  21. package/dist/Code/index.d.ts +3 -2
  22. package/dist/Code/index.js +4 -2
  23. package/dist/Code-yb_KOFtJ.js +299 -0
  24. package/dist/{CodeBlock-BQdooQy2.js → CodeBlock-CxTb6j9_.js} +8 -2
  25. package/dist/Collapsible/index.js +1 -1
  26. package/dist/{Collapsible-BS9ctCQV.js → Collapsible-9MC08X39.js} +1 -1
  27. package/dist/CommandPalette/index.js +1 -1
  28. package/dist/{CommandPalette-u5h_E05P.js → CommandPalette-BD2iODF5.js} +1 -1
  29. package/dist/ComplexSelector/index.d.ts +1 -1
  30. package/dist/ComplexSelector/index.js +1 -1
  31. package/dist/{ComplexSelector-BHmGWml0.js → ComplexSelector-D9iXd5cH.js} +2 -2
  32. package/dist/ContextMenu/index.js +1 -1
  33. package/dist/{ContextMenu-dA-ppaRQ.js → ContextMenu-HS_WqYIg.js} +1 -1
  34. package/dist/DateInput/index.d.ts +1 -1
  35. package/dist/DateInput/index.js +1 -1
  36. package/dist/{DateInput-D2ErjXYO.js → DateInput-DE2TN1Rq.js} +2 -2
  37. package/dist/DateRangeInput/index.d.ts +1 -1
  38. package/dist/DateRangeInput/index.js +1 -1
  39. package/dist/{DateRangeInput-fmQlr_A7.js → DateRangeInput-1bhPGG2s.js} +2 -2
  40. package/dist/DateTimeInput/index.d.ts +1 -1
  41. package/dist/DateTimeInput/index.js +1 -1
  42. package/dist/{DateTimeInput-Bs1JmcIp.js → DateTimeInput-SnPdgk6P.js} +3 -3
  43. package/dist/Divider/index.d.ts +1 -1
  44. package/dist/DropdownMenu/index.js +1 -1
  45. package/dist/{DropdownMenu-B0gogrvG.js → DropdownMenu-UJGych6v.js} +1 -1
  46. package/dist/EmptyState/index.js +1 -1
  47. package/dist/{EmptyState-Bhlqgsg4.js → EmptyState-CUJdTYKV.js} +1 -1
  48. package/dist/FileInput/index.d.ts +1 -1
  49. package/dist/FileInput/index.js +1 -1
  50. package/dist/{FileInput-CmAfOpkA.js → FileInput-BQiwE-GB.js} +2 -2
  51. package/dist/Icon/index.d.ts +3 -0
  52. package/dist/Icon/index.js +2 -0
  53. package/dist/{Icon-5MdZQ18k.js → Icon-Dfr4k6-S.js} +1 -1
  54. package/dist/Lightbox/index.d.ts +2 -0
  55. package/dist/Lightbox/index.js +2 -0
  56. package/dist/Lightbox-CshKoB0r.js +384 -0
  57. package/dist/Link/index.d.ts +1 -1
  58. package/dist/Markdown/index.js +1 -1
  59. package/dist/{Markdown-CwtLr3f_.js → Markdown-D-Ua055V.js} +2 -2
  60. package/dist/MetadataList/index.js +1 -1
  61. package/dist/{MetadataList-DlXQTLog.js → MetadataList-sYph_d8Q.js} +1 -1
  62. package/dist/MobileNav/index.js +1 -1
  63. package/dist/{MobileNavToggle-CgQamG6E.js → MobileNavToggle-DD9D01aj.js} +1 -1
  64. package/dist/MoreMenu/index.d.ts +1 -1
  65. package/dist/MoreMenu/index.js +1 -1
  66. package/dist/{MoreMenu-BXL6Dqsu.js → MoreMenu-BVrK5kkk.js} +1 -1
  67. package/dist/MultiSelector/index.d.ts +1 -1
  68. package/dist/MultiSelector/index.js +1 -1
  69. package/dist/{MultiSelector-DT8ZccMI.js → MultiSelector-DiYov9sF.js} +2 -2
  70. package/dist/NavMenu/index.d.ts +1 -1
  71. package/dist/NavMenu/index.js +1 -1
  72. package/dist/{NavMenuItem-mzNQESpB.js → NavMenuItem-B-k7olt5.js} +2 -1
  73. package/dist/NumberInput/index.d.ts +1 -1
  74. package/dist/NumberInput/index.js +1 -1
  75. package/dist/{NumberInput-DspJO6z6.js → NumberInput-CTYiQxHq.js} +1 -1
  76. package/dist/Outline/index.d.ts +2 -0
  77. package/dist/Outline/index.js +2 -0
  78. package/dist/Outline-DQfEBxlc.js +325 -0
  79. package/dist/OverflowList/index.d.ts +1 -1
  80. package/dist/OverflowList/index.js +1 -1
  81. package/dist/{OverflowList-zXg3g6fy.js → OverflowList-BU5VCntl.js} +2 -2
  82. package/dist/Pagination/index.js +1 -1
  83. package/dist/{Pagination-DXfgMUKJ.js → Pagination-HdhtykeF.js} +2 -2
  84. package/dist/Popover/index.d.ts +1 -1
  85. package/dist/Radio/index.d.ts +1 -1
  86. package/dist/RadioList/index.d.ts +1 -1
  87. package/dist/Resizable/index.js +1 -1
  88. package/dist/{Resizable-BuGKvU9I.js → Resizable-BhSMfO5B.js} +1 -1
  89. package/dist/ScrollableArea/index.d.ts +1 -1
  90. package/dist/SelectableCard/index.d.ts +1 -1
  91. package/dist/Selector/index.d.ts +1 -1
  92. package/dist/Selector/index.js +1 -1
  93. package/dist/{Selector-DlZpQh42.js → Selector-Da-2BO3q.js} +1 -1
  94. package/dist/SideNav/index.d.ts +1 -1
  95. package/dist/SideNav/index.js +1 -1
  96. package/dist/{SideNav-Cdrigq2A.js → SideNav-B-Om6Bz3.js} +2 -2
  97. package/dist/Stepper/index.js +1 -1
  98. package/dist/{Stepper-DxmLfh8O.js → Stepper-BZ_8SEZt.js} +1 -1
  99. package/dist/Switch/index.d.ts +1 -1
  100. package/dist/TabList/index.js +1 -1
  101. package/dist/{TabList-C411uNQU.js → TabList-Cnc2Hs1H.js} +1 -1
  102. package/dist/Table/index.js +1 -1
  103. package/dist/{Table-7qRmlIQd.js → Table-D-LhAy_J.js} +4 -4
  104. package/dist/Text/index.d.ts +3 -2
  105. package/dist/Text/index.js +1 -1
  106. package/dist/{Text-CKd7e3gK.js → Text-BHVghsWo.js} +12 -2
  107. package/dist/TextArea/index.d.ts +1 -1
  108. package/dist/TextInput/index.d.ts +1 -1
  109. package/dist/Theme/index.d.ts +2 -0
  110. package/dist/Theme/index.js +2 -0
  111. package/dist/Theme-BuUiiJNr.js +429 -0
  112. package/dist/Thumbnail/index.js +1 -1
  113. package/dist/{Thumbnail-BWVzLLyI.js → Thumbnail-Dc1UpykG.js} +2 -2
  114. package/dist/{TimeField-l3QzU6vC.js → TimeField-C7t9Knq9.js} +2 -2
  115. package/dist/TimeInput/index.d.ts +1 -1
  116. package/dist/TimeInput/index.js +1 -1
  117. package/dist/{TimeInput-OkgX-xbQ.js → TimeInput-BXxCOY98.js} +1 -1
  118. package/dist/Timer/index.d.ts +2 -0
  119. package/dist/Timer/index.js +2 -0
  120. package/dist/Timer-B7GV6hqd.js +134 -0
  121. package/dist/Timestamp/index.d.ts +1 -1
  122. package/dist/Timestamp/index.js +1 -1
  123. package/dist/{Timestamp-DUoP9ari.js → Timestamp-DlZSmgCJ.js} +3 -3
  124. package/dist/ToggleButton/index.d.ts +1 -1
  125. package/dist/Token/index.d.ts +1 -1
  126. package/dist/Token/index.js +1 -1
  127. package/dist/{Token-C4KD0fZD.js → Token-wt4e80IM.js} +1 -1
  128. package/dist/Tokenizer/index.d.ts +1 -1
  129. package/dist/Tokenizer/index.js +1 -1
  130. package/dist/{Tokenizer-BA8sTMPZ.js → Tokenizer-nmTqdS9n.js} +2 -2
  131. package/dist/Toolbar/index.d.ts +1 -1
  132. package/dist/TopNav/index.d.ts +1 -1
  133. package/dist/TopNav/index.js +1 -1
  134. package/dist/{TopNav-CZokS7E_.js → TopNav-notp-mJx.js} +4 -4
  135. package/dist/TreeList/index.js +1 -1
  136. package/dist/{TreeList-CIbAGOMf.js → TreeList-s1xBQ0qq.js} +2 -2
  137. package/dist/Typeahead/index.d.ts +1 -1
  138. package/dist/Typeahead/index.js +1 -1
  139. package/dist/{Typeahead-DIw-K4aa.js → Typeahead-VAuiCurV.js} +2 -2
  140. package/dist/{context-D6ECRdc5.js → context-Dbo22sck.js} +54 -0
  141. package/dist/context-O2Vb8cJl.js +57 -0
  142. package/dist/index-1AZ4KZhg.d.ts +96 -0
  143. package/dist/{index-FEy8qFSD.d.ts → index-BHqRH7QW.d.ts} +2 -2
  144. package/dist/index-BMrggCw-.d.ts +52 -0
  145. package/dist/index-Bainr_3n.d.ts +31 -0
  146. package/dist/{index-DXDGk38y.d.ts → index-Bn_odHQ9.d.ts} +1 -1
  147. package/dist/{index-C6RecznD.d.ts → index-BtPZKO20.d.ts} +2 -2
  148. package/dist/{index-CjtAH60j.d.ts → index-Bu0Zd1uw.d.ts} +1 -1
  149. package/dist/{index-CX97hlld.d.ts → index-C59PdX9L.d.ts} +2 -19
  150. package/dist/{index-Df2YvC8o.d.ts → index-C6iJwTL0.d.ts} +38 -31
  151. package/dist/{index-B4OOtNP8.d.ts → index-C7mxUcDR.d.ts} +2 -2
  152. package/dist/index-CRizexSC.d.ts +147 -0
  153. package/dist/index-Cm_TiLXU.d.ts +22 -0
  154. package/dist/index-Cn-sSds-.d.ts +68 -0
  155. package/dist/index-CsVS37na.d.ts +81 -0
  156. package/dist/{index-CT8KEpec.d.ts → index-D0TlUOtG.d.ts} +1 -1
  157. package/dist/{index-DGNqi2za.d.ts → index-DOUEn7V0.d.ts} +3 -3
  158. package/dist/{index-DYChvBOM.d.ts → index-DoFCm2Q2.d.ts} +29 -0
  159. package/dist/{index-mQ6EPmaG.d.ts → index-DsyKhauk.d.ts} +78 -9
  160. package/dist/{index-ZJyk8RtQ.d.ts → index-DtjAdYEc.d.ts} +1 -1
  161. package/dist/{index-Byar3h1e.d.ts → index-HV6W3xCx.d.ts} +1 -1
  162. package/dist/{index-2u4l3wq8.d.ts → index-NzLDrOkk.d.ts} +1 -1
  163. package/dist/{index-Bqb_Fyju.d.ts → index-jdjcb3Js.d.ts} +2 -2
  164. package/dist/index.d.ts +71 -62
  165. package/dist/index.js +100 -92
  166. package/dist/locale/index.d.ts +1 -1
  167. package/dist/locale/index.js +1 -1
  168. package/dist/syntaxTheme-Bcs1YMF7.d.ts +38 -0
  169. package/dist/syntaxTheme-ClpWALZX.js +75 -0
  170. package/dist/types-Bt-lSgYX.d.ts +65 -0
  171. package/dist/types-DZoEm_DG.d.ts +97 -0
  172. package/package.json +25 -1
  173. package/styles/carousel.css +120 -0
  174. package/styles/heading.css +6 -2
  175. package/styles/lightbox.css +144 -0
  176. package/styles/media-theme.css +51 -0
  177. package/styles/outline.css +124 -0
  178. package/styles/text.css +63 -14
  179. package/styles/theme.css +29 -0
  180. package/styles/timer.css +34 -0
  181. package/styles.css +6 -0
  182. package/dist/index-BzqRns96.d.ts +0 -64
  183. 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-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 { 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-9MC08X39.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-Dfr4k6-S.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-BD2iODF5.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-Dbo22sck.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-C59PdX9L.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-D9iXd5cH.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-Dbo22sck.js";
2
+ import { t as _sfc_main$1 } from "./Icon-Dfr4k6-S.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 { 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-HS_WqYIg.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,7 +2,7 @@ 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";
5
+ import { t as _sfc_main$6 } from "./Icon-Dfr4k6-S.js";
6
6
  import { t as _sfc_main$7 } from "./Divider-BtwnL18I.js";
7
7
  import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
8
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";
@@ -1,2 +1,2 @@
1
- import { i as DateInputSlots, n as DateInputEmits, r as DateInputProps, t as _default } from "../index-ZJyk8RtQ.js";
1
+ import { i as DateInputSlots, n as DateInputEmits, r as DateInputProps, t as _default } from "../index-DtjAdYEc.js";
2
2
  export { _default as DateInput, type DateInputEmits, type DateInputProps, type DateInputSlots };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../DateInput-D2ErjXYO.js";
1
+ import { t as _sfc_main } from "../DateInput-DE2TN1Rq.js";
2
2
  export { _sfc_main as DateInput };
@@ -1,5 +1,5 @@
1
- import { a as useAstryxMessages } from "./context-D6ECRdc5.js";
2
- import { t as _sfc_main$1 } from "./Calendar-CYhGDT6f.js";
1
+ import { a as useAstryxMessages } from "./context-Dbo22sck.js";
2
+ import { t as _sfc_main$1 } from "./Calendar-BG7wEsro.js";
3
3
  import { t as _sfc_main$2 } from "./Popover-Crhk9PNP.js";
4
4
  import { computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, renderSlot, useId, useTemplateRef, watch, withCtx } from "vue";
5
5
  import "../styles/date-input.css";
@@ -1,2 +1,2 @@
1
- import { $n as DateRangeInputEmits, Qn as DateRange, Zn as _default, er as DateRangeInputProps, tr as DateRangePreset } from "../index-Df2YvC8o.js";
1
+ import { $n as DateRangeInputEmits, Qn as DateRange, Zn as _default, er as DateRangeInputProps, tr as DateRangePreset } from "../index-C6iJwTL0.js";
2
2
  export { type DateRange, _default as DateRangeInput, type DateRangeInputEmits, type DateRangeInputProps, type DateRangePreset };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../DateRangeInput-fmQlr_A7.js";
1
+ import { t as _sfc_main } from "../DateRangeInput-1bhPGG2s.js";
2
2
  export { _sfc_main as DateRangeInput };
@@ -1,9 +1,9 @@
1
1
  import { a as todayISODate, c as formatDateRange, f as orderRange, l as isDayOutsideSpan, n as buildMonthGrid, o as applyRangeClick, p as resolveWeekStart, t as addMonths, u as isRangeWithinSpan } from "./useMonthGrid-CmJsZTcB.js";
2
- import { a as useAstryxMessages, i as useAstryxLocale } from "./context-D6ECRdc5.js";
2
+ import { a as useAstryxMessages, i as useAstryxLocale } from "./context-Dbo22sck.js";
3
3
  import { n as weekdayNames, t as formatCalendarMonth } from "./locale-Cpk_nrLA.js";
4
4
  import { t as _sfc_main$2 } from "./FieldIcon--NTgW5IU.js";
5
5
  import { t as _sfc_main$3 } from "./IconButton-BNQuz9W_.js";
6
- import { t as _sfc_main$4 } from "./Icon-5MdZQ18k.js";
6
+ import { t as _sfc_main$4 } from "./Icon-Dfr4k6-S.js";
7
7
  import { t as _sfc_main$5 } from "./Field-8zRxzDHE.js";
8
8
  import { t as _sfc_main$6 } from "./Popover-Crhk9PNP.js";
9
9
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeModels, normalizeClass, openBlock, renderList, shallowRef, toDisplayString, unref, useId, useModel, withCtx } from "vue";
@@ -1,2 +1,2 @@
1
- import { Jn as DateTimeInputEmits, Xn as DateTimeInputSize, Yn as DateTimeInputProps, qn as _default } from "../index-Df2YvC8o.js";
1
+ import { Jn as DateTimeInputEmits, Xn as DateTimeInputSize, Yn as DateTimeInputProps, qn as _default } from "../index-C6iJwTL0.js";
2
2
  export { _default as DateTimeInput, type DateTimeInputEmits, type DateTimeInputProps, type DateTimeInputSize };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../DateTimeInput-Bs1JmcIp.js";
1
+ import { t as _sfc_main } from "../DateTimeInput-SnPdgk6P.js";
2
2
  export { _sfc_main as DateTimeInput };
@@ -1,9 +1,9 @@
1
- import { a as useAstryxMessages } from "./context-D6ECRdc5.js";
1
+ import { a as useAstryxMessages } from "./context-Dbo22sck.js";
2
2
  import { t as _sfc_main$1 } from "./FieldIcon--NTgW5IU.js";
3
3
  import { t as _sfc_main$2 } from "./IconButton-BNQuz9W_.js";
4
4
  import { t as _sfc_main$3 } from "./Field-8zRxzDHE.js";
5
- import { t as _sfc_main$4 } from "./DateInput-D2ErjXYO.js";
6
- import { t as _sfc_main$5 } from "./TimeField-l3QzU6vC.js";
5
+ import { t as _sfc_main$4 } from "./DateInput-DE2TN1Rq.js";
6
+ import { t as _sfc_main$5 } from "./TimeField-C7t9Knq9.js";
7
7
  import { computed, createBlock, createCommentVNode, createElementVNode, createVNode, defineComponent, mergeModels, openBlock, ref, unref, useId, useModel, watch, withCtx } from "vue";
8
8
  import "../styles/date-time-input.css";
9
9
  //#region src/DateTimeInput/DateTimeInput.vue
@@ -1,2 +1,2 @@
1
- import { i as DividerVariant, n as DividerOrientation, r as DividerProps, t as _default } from "../index-Byar3h1e.js";
1
+ import { i as DividerVariant, n as DividerOrientation, r as DividerProps, t as _default } from "../index-HV6W3xCx.js";
2
2
  export { _default as Divider, type DividerOrientation, type DividerProps, type DividerVariant };
@@ -1,2 +1,2 @@
1
- import { a as useDropdownMenuContext, i as _sfc_main$1, n as _sfc_main$3, r as _sfc_main$2, t as _sfc_main } from "../DropdownMenu-B0gogrvG.js";
1
+ import { a as useDropdownMenuContext, i as _sfc_main$1, n as _sfc_main$3, r as _sfc_main$2, t as _sfc_main } from "../DropdownMenu-UJGych6v.js";
2
2
  export { _sfc_main as DropdownMenu, _sfc_main$1 as DropdownMenuDivider, _sfc_main$2 as DropdownMenuGroup, _sfc_main$3 as DropdownMenuItem, useDropdownMenuContext };
@@ -1,7 +1,7 @@
1
1
  import { t as _sfc_main$5 } from "./Button-DrqeomlE.js";
2
2
  import { t as useDismiss } from "./useDismiss-CAiHU6QD.js";
3
3
  import { t as useTypeahead } from "./useTypeahead-PAK8lMYz.js";
4
- import { t as _sfc_main$6 } from "./Icon-5MdZQ18k.js";
4
+ import { t as _sfc_main$6 } from "./Icon-Dfr4k6-S.js";
5
5
  import { t as _sfc_main$7 } from "./Divider-BtwnL18I.js";
6
6
  import { t as _sfc_main$8 } from "./Item-C1z6gXn8.js";
7
7
  import { t as usePositionedLayer } from "./usePositionedLayer-C1NBOsVT.js";
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../EmptyState-Bhlqgsg4.js";
1
+ import { t as _sfc_main } from "../EmptyState-CUJdTYKV.js";
2
2
  export { _sfc_main as EmptyState };
@@ -1,5 +1,5 @@
1
1
  import { t as _sfc_main$1 } from "./Heading-Dugosn6j.js";
2
- import { t as _sfc_main$2 } from "./Text-CKd7e3gK.js";
2
+ import { t as _sfc_main$2 } from "./Text-BHVghsWo.js";
3
3
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, renderSlot, toDisplayString, useTemplateRef, withCtx } from "vue";
4
4
  import "../styles/empty-state.css";
5
5
  //#region src/EmptyState/EmptyState.vue
@@ -1,2 +1,2 @@
1
- import { Bn as _default, Gn as FileInputStatus, Hn as FileInputMode, Kn as FileInputValue, Un as FileInputProps, Vn as FileInputEmits, Wn as FileInputSize } from "../index-Df2YvC8o.js";
1
+ import { Bn as _default, Gn as FileInputStatus, Hn as FileInputMode, Kn as FileInputValue, Un as FileInputProps, Vn as FileInputEmits, Wn as FileInputSize } from "../index-C6iJwTL0.js";
2
2
  export { _default as FileInput, type FileInputEmits, type FileInputMode, type FileInputProps, type FileInputSize, type FileInputStatus, type FileInputValue };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../FileInput-CmAfOpkA.js";
1
+ import { t as _sfc_main } from "../FileInput-BQiwE-GB.js";
2
2
  export { _sfc_main as FileInput };
@@ -1,10 +1,10 @@
1
1
  import { t as _sfc_main$1 } from "./VisuallyHidden-C7NN3VEP.js";
2
2
  import { t as useAnnounce } from "./announce-Cnio10Wk.js";
3
3
  import { n as selectFiles, t as formatFileSize } from "./useFileSelection-BPtaegqK.js";
4
- import { a as useAstryxMessages } from "./context-D6ECRdc5.js";
4
+ import { a as useAstryxMessages } from "./context-Dbo22sck.js";
5
5
  import { t as _sfc_main$2 } from "./FieldIcon--NTgW5IU.js";
6
6
  import { t as _sfc_main$3 } from "./IconButton-BNQuz9W_.js";
7
- import { t as _sfc_main$4 } from "./Icon-5MdZQ18k.js";
7
+ import { t as _sfc_main$4 } from "./Icon-Dfr4k6-S.js";
8
8
  import { t as _sfc_main$5 } from "./Spinner-9cYUCnDy.js";
9
9
  import { t as _sfc_main$6 } from "./Field-8zRxzDHE.js";
10
10
  import { computed, createBlock, createCommentVNode, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, openBlock, shallowRef, toDisplayString, unref, useId, useModel, useTemplateRef, withCtx } from "vue";
@@ -0,0 +1,3 @@
1
+ import { a as IconSize, i as IconProps, n as IconColor, o as IconSlots, r as IconName } from "../types-DZoEm_DG.js";
2
+ import { a as isIconGlyph, i as iconGlyphSlug, n as ICON_GLYPHS, r as IconGlyphName, t as _default } from "../index-Bainr_3n.js";
3
+ export { ICON_GLYPHS, _default as Icon, type IconColor, type IconGlyphName, type IconName, type IconProps, type IconSize, type IconSlots, iconGlyphSlug, isIconGlyph };
@@ -0,0 +1,2 @@
1
+ import { i as isIconGlyph, n as ICON_GLYPHS, r as iconGlyphSlug, t as _sfc_main } from "../Icon-Dfr4k6-S.js";
2
+ export { ICON_GLYPHS, _sfc_main as Icon, iconGlyphSlug, isIconGlyph };
@@ -83,4 +83,4 @@ const _sfc_main = /*@__PURE__*/ defineComponent({
83
83
  }
84
84
  });
85
85
  //#endregion
86
- export { isIconGlyph as n, _sfc_main as t };
86
+ export { isIconGlyph as i, ICON_GLYPHS as n, iconGlyphSlug as r, _sfc_main as t };
@@ -0,0 +1,2 @@
1
+ import { a as LightboxMediaType, c as UseLightboxOptions, i as LightboxMedia, n as _default, o as LightboxProps, r as LightboxEmits, s as LightboxTriggerProps, t as useLightbox } from "../index-1AZ4KZhg.js";
2
+ export { _default as Lightbox, type LightboxEmits, type LightboxMedia, type LightboxMediaType, type LightboxProps, type LightboxTriggerProps, type UseLightboxOptions, useLightbox };
@@ -0,0 +1,2 @@
1
+ import { n as _sfc_main, t as useLightbox } from "../Lightbox-CshKoB0r.js";
2
+ export { _sfc_main as Lightbox, useLightbox };