@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,429 @@
1
+ import { t as useMediaQuery } from "./useMediaQuery-GMmgp28-.js";
2
+ import { i as syntaxThemeStyle } from "./syntaxTheme-ClpWALZX.js";
3
+ import { a as resolveLightDark, i as readColorMode, n as themeContextKey, o as syntaxThemeKey, r as themeNestingKey, t as mediaThemeKey } from "./context-O2Vb8cJl.js";
4
+ import { computed, createElementBlock, defineComponent, inject, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, provide, ref, renderSlot, unref, useAttrs, useTemplateRef, watch } from "vue";
5
+ import "../styles/media-theme.css";
6
+ import "../styles/theme.css";
7
+ //#region src/Theme/defineTheme.ts
8
+ const THEME_NAME = /^[a-z0-9][a-z0-9-]*$/i;
9
+ const UNSAFE_TOKEN = /[;{}<>\n\r]/;
10
+ function isDefinedTheme(value) {
11
+ return !!value && typeof value === "object" && value.__astryxTheme === true;
12
+ }
13
+ /** Accept `--color-accent`, `--astryx-color-accent`, or `color-accent`. */
14
+ function normalizeTokenName(name) {
15
+ const trimmed = name.trim();
16
+ if (trimmed.startsWith("--astryx-")) return trimmed;
17
+ if (trimmed.startsWith("--")) return `--astryx-${trimmed.slice(2)}`;
18
+ return `--astryx-${trimmed}`;
19
+ }
20
+ function assertTokenValue(value, name) {
21
+ if (UNSAFE_TOKEN.test(value)) throw new Error(`Theme token ${name} has an unsupported value.`);
22
+ }
23
+ function isTokenPair(value) {
24
+ return Array.isArray(value);
25
+ }
26
+ function resolveTokenMap(tokens) {
27
+ const resolved = {};
28
+ if (!tokens) return resolved;
29
+ for (const [name, value] of Object.entries(tokens)) {
30
+ if (value == null) continue;
31
+ const key = normalizeTokenName(name);
32
+ if (isTokenPair(value)) {
33
+ const [light, dark] = value;
34
+ assertTokenValue(light, key);
35
+ assertTokenValue(dark, key);
36
+ resolved[key] = `light-dark(${light}, ${dark})`;
37
+ continue;
38
+ }
39
+ assertTokenValue(value, key);
40
+ resolved[key] = value;
41
+ }
42
+ return resolved;
43
+ }
44
+ /**
45
+ * Create a theme object that `Theme` can apply to a subtree.
46
+ *
47
+ * Token names are the upstream names (`--color-accent`) or this package's
48
+ * prefixed names (`--astryx-color-accent`). A `[light, dark]` tuple becomes
49
+ * `light-dark()`.
50
+ */
51
+ function defineTheme(input) {
52
+ if (!THEME_NAME.test(input.name)) throw new Error(`Theme name "${input.name}" must use letters, numbers, and hyphens.`);
53
+ if (input.extends != null && !isDefinedTheme(input.extends)) throw new Error("defineTheme extends must be a theme returned by defineTheme().");
54
+ const base = input.extends;
55
+ return {
56
+ __astryxTheme: true,
57
+ name: input.name,
58
+ tokens: {
59
+ ...base?.tokens,
60
+ ...resolveTokenMap(input.tokens)
61
+ },
62
+ onDark: {
63
+ ...base?.onDark,
64
+ ...resolveTokenMap(input.onDark?.tokens)
65
+ },
66
+ onLight: {
67
+ ...base?.onLight,
68
+ ...resolveTokenMap(input.onLight?.tokens)
69
+ },
70
+ syntax: input.syntax ?? base?.syntax
71
+ };
72
+ }
73
+ /** Neutral, with no token overrides. Colors come from `@astryx-vue/themes/neutral.css`. */
74
+ const neutralTheme = defineTheme({ name: "neutral" });
75
+ //#endregion
76
+ //#region src/Theme/themeStyle.ts
77
+ /**
78
+ * Aliases declared on `:root` are substituted there. A later override of the
79
+ * semantic token does not flow through that already-substituted value, so the
80
+ * alias has to be written again on the element that sets the semantic token.
81
+ *
82
+ * Card background and border are not aliases: Neutral paints them with its own
83
+ * stops, and they follow the semantic token only when a theme sets one.
84
+ */
85
+ const COMPONENT_BRIDGES = {
86
+ "--astryx-color-text-primary": [
87
+ "--astryx-text-foreground",
88
+ "--astryx-heading-foreground",
89
+ "--astryx-button-secondary-foreground",
90
+ "--astryx-button-ghost-foreground"
91
+ ],
92
+ "--astryx-color-text-secondary": ["--astryx-text-supporting-foreground"],
93
+ "--astryx-color-accent": ["--astryx-button-primary-background", "--astryx-button-focus"],
94
+ "--astryx-color-on-accent": ["--astryx-button-primary-foreground"],
95
+ "--astryx-color-neutral": ["--astryx-button-secondary-background"],
96
+ "--astryx-color-icon-primary": ["--astryx-icon-primary-foreground"],
97
+ "--astryx-color-background-card": ["--astryx-card-background"],
98
+ "--astryx-color-background-muted": ["--astryx-card-muted-background"],
99
+ "--astryx-color-border": ["--astryx-card-border"]
100
+ };
101
+ /** Surfaces keep their own button treatment. Text aliases still follow onDark and onLight. */
102
+ const SURFACE_BRIDGES = {
103
+ "--astryx-color-text-primary": ["--astryx-text-foreground", "--astryx-heading-foreground"],
104
+ "--astryx-color-text-secondary": ["--astryx-text-supporting-foreground"],
105
+ "--astryx-color-background-card": ["--astryx-card-background"],
106
+ "--astryx-color-background-muted": ["--astryx-card-muted-background"],
107
+ "--astryx-color-border": ["--astryx-card-border"]
108
+ };
109
+ function bridgeComponentTokens(tokens, bridges = COMPONENT_BRIDGES) {
110
+ const style = { ...tokens };
111
+ for (const [source, targets] of Object.entries(bridges)) {
112
+ const value = tokens[source];
113
+ if (!value) continue;
114
+ for (const target of targets) style[target] = value;
115
+ }
116
+ return style;
117
+ }
118
+ /** Token bridges for an inverted surface. Button colors stay with MediaTheme. */
119
+ function bridgeSurfaceTokens(tokens) {
120
+ return bridgeComponentTokens(tokens, SURFACE_BRIDGES);
121
+ }
122
+ /** Inline custom properties for a theme subtree, including syntax colors. */
123
+ function themeStyle(theme) {
124
+ const style = bridgeComponentTokens(theme.tokens);
125
+ if (theme.syntax) Object.assign(style, syntaxThemeStyle(theme.syntax));
126
+ return style;
127
+ }
128
+ //#endregion
129
+ //#region src/Theme/contrast.ts
130
+ const HEX = /^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i;
131
+ const RGB = /^rgba?\(\s*([\d.]+)[,\s]+([\d.]+)[,\s]+([\d.]+)(?:[,\s/]+([\d.]+)(%)?)?\s*\)$/i;
132
+ function parseColor(input) {
133
+ const value = input.trim().toLowerCase();
134
+ if (value === "transparent") return {
135
+ r: 0,
136
+ g: 0,
137
+ b: 0,
138
+ a: 0
139
+ };
140
+ const hex = HEX.exec(value);
141
+ if (hex?.[1]) {
142
+ const raw = hex[1];
143
+ const expanded = raw.length === 3 ? raw.split("").map((part) => part + part).join("") : raw;
144
+ const channels = expanded.length === 6 ? `${expanded}ff` : expanded;
145
+ return {
146
+ r: Number.parseInt(channels.slice(0, 2), 16),
147
+ g: Number.parseInt(channels.slice(2, 4), 16),
148
+ b: Number.parseInt(channels.slice(4, 6), 16),
149
+ a: Number.parseInt(channels.slice(6, 8), 16) / 255
150
+ };
151
+ }
152
+ const rgb = RGB.exec(value);
153
+ if (!rgb) return null;
154
+ const alpha = rgb[4] == null ? 1 : rgb[5] === "%" ? Number.parseFloat(rgb[4]) / 100 : Number.parseFloat(rgb[4]);
155
+ return {
156
+ r: Number.parseFloat(rgb[1] ?? "0"),
157
+ g: Number.parseFloat(rgb[2] ?? "0"),
158
+ b: Number.parseFloat(rgb[3] ?? "0"),
159
+ a: alpha
160
+ };
161
+ }
162
+ function channel(value) {
163
+ const scaled = value / 255;
164
+ return scaled <= .04045 ? scaled / 12.92 : ((scaled + .055) / 1.055) ** 2.4;
165
+ }
166
+ function relativeLuminance(color) {
167
+ return .2126 * channel(color.r) + .7152 * channel(color.g) + .0722 * channel(color.b);
168
+ }
169
+ /** WCAG contrast ratio. 1 is no contrast. */
170
+ function contrastRatio(foreground, background) {
171
+ const first = relativeLuminance(foreground);
172
+ const second = relativeLuminance(background);
173
+ const lighter = Math.max(first, second);
174
+ const darker = Math.min(first, second);
175
+ return (lighter + .05) / (darker + .05);
176
+ }
177
+ const ON_DARK = {
178
+ r: 255,
179
+ g: 255,
180
+ b: 255,
181
+ a: 1
182
+ };
183
+ const ON_LIGHT = {
184
+ r: 23,
185
+ g: 23,
186
+ b: 23,
187
+ a: 1
188
+ };
189
+ /**
190
+ * Choose a media surface from the painted background.
191
+ *
192
+ * `off` means the ambient text already reads on that background at 3:1, so no
193
+ * inverted context is needed. `null` means the background is too transparent
194
+ * to judge.
195
+ */
196
+ function pickMediaMode(background, ambientText) {
197
+ if (background.a < .2) return null;
198
+ if (contrastRatio(ambientText, background) >= 3) return "off";
199
+ return contrastRatio(ON_DARK, background) >= contrastRatio(ON_LIGHT, background) ? "dark" : "light";
200
+ }
201
+ //#endregion
202
+ //#region src/Theme/useAutoMediaMode.ts
203
+ function readPaintedBackground(start) {
204
+ let current = start;
205
+ for (let depth = 0; current && depth < 6; depth += 1) {
206
+ const style = getComputedStyle(current);
207
+ const background = parseColor(style.backgroundColor);
208
+ if (background && background.a >= .2) return {
209
+ background,
210
+ ambient: parseColor(style.color) ?? {
211
+ r: 23,
212
+ g: 23,
213
+ b: 23,
214
+ a: 1
215
+ }
216
+ };
217
+ current = current.parentElement;
218
+ }
219
+ return null;
220
+ }
221
+ /**
222
+ * Measure the element that actually paints behind a `display: contents` media
223
+ * theme. Returns `null` when the surface cannot be read.
224
+ */
225
+ function useAutoMediaMode(element, enabled) {
226
+ const detected = ref(null);
227
+ function measure() {
228
+ if (!enabled.value || typeof getComputedStyle !== "function") {
229
+ detected.value = null;
230
+ return;
231
+ }
232
+ const parent = element.value?.parentElement;
233
+ if (!parent) {
234
+ detected.value = null;
235
+ return;
236
+ }
237
+ const painted = readPaintedBackground(parent);
238
+ detected.value = painted ? pickMediaMode(painted.background, painted.ambient) : null;
239
+ }
240
+ onMounted(measure);
241
+ watch(enabled, measure);
242
+ return detected;
243
+ }
244
+ //#endregion
245
+ //#region src/Theme/MediaTheme.vue
246
+ const _hoisted_1$1 = ["data-astryx-media"];
247
+ const _sfc_main$1 = /*@__PURE__*/ defineComponent({
248
+ name: "AstryxMediaTheme",
249
+ inheritAttrs: false,
250
+ __name: "MediaTheme",
251
+ props: {
252
+ mode: {},
253
+ fallback: { default: "dark" }
254
+ },
255
+ setup(__props, { expose: __expose }) {
256
+ const props = __props;
257
+ const attrs = useAttrs();
258
+ const root = useTemplateRef("root");
259
+ const theme = inject(themeContextKey, null);
260
+ const detected = useAutoMediaMode(root, computed(() => props.mode === "auto"));
261
+ const resolved = computed(() => {
262
+ if (props.mode === "off") return "off";
263
+ if (props.mode === "auto") return detected.value ?? props.fallback;
264
+ return props.mode;
265
+ });
266
+ provide(mediaThemeKey, resolved);
267
+ const rootStyle = computed(() => {
268
+ const surface = resolved.value === "dark" ? theme?.value.theme.onDark : resolved.value === "light" ? theme?.value.theme.onLight : void 0;
269
+ if (!surface) return {};
270
+ return bridgeSurfaceTokens(surface);
271
+ });
272
+ __expose({ element: root });
273
+ return (_ctx, _cache) => {
274
+ return openBlock(), createElementBlock("div", {
275
+ ref_key: "root",
276
+ ref: root,
277
+ class: normalizeClass(["astryx-media-theme", unref(attrs).class]),
278
+ "data-astryx-media": resolved.value === "off" ? void 0 : resolved.value,
279
+ style: normalizeStyle([rootStyle.value, unref(attrs).style])
280
+ }, [renderSlot(_ctx.$slots, "default")], 14, _hoisted_1$1);
281
+ };
282
+ }
283
+ });
284
+ //#endregion
285
+ //#region src/Theme/useThemeRootSync.ts
286
+ const entries = [];
287
+ let baseSnapshot = null;
288
+ function capture() {
289
+ const root = document.documentElement;
290
+ return {
291
+ theme: root.getAttribute("data-astryx-theme"),
292
+ mode: root.getAttribute("data-astryx-color-mode")
293
+ };
294
+ }
295
+ function writeAttribute(name, value) {
296
+ const root = document.documentElement;
297
+ if (value == null) root.removeAttribute(name);
298
+ else root.setAttribute(name, value);
299
+ }
300
+ function apply(entry) {
301
+ const root = document.documentElement;
302
+ root.setAttribute("data-astryx-theme", entry.name());
303
+ const mode = entry.mode();
304
+ if (mode === "light" || mode === "dark") root.setAttribute("data-astryx-color-mode", mode);
305
+ else root.removeAttribute("data-astryx-color-mode");
306
+ }
307
+ function restoreBase() {
308
+ if (!baseSnapshot) return;
309
+ writeAttribute("data-astryx-theme", baseSnapshot.theme);
310
+ writeAttribute("data-astryx-color-mode", baseSnapshot.mode);
311
+ baseSnapshot = null;
312
+ }
313
+ /**
314
+ * The outermost Theme mirrors its name and mode onto `documentElement`, so
315
+ * portaled UI and browser chrome see the same theme. Nested themes do not.
316
+ */
317
+ function useThemeRootSync(isNested, themeName, mode) {
318
+ if (isNested || typeof document === "undefined") return;
319
+ const entry = {
320
+ name: themeName,
321
+ mode
322
+ };
323
+ onMounted(() => {
324
+ if (entries.length === 0) baseSnapshot = capture();
325
+ entries.push(entry);
326
+ apply(entry);
327
+ });
328
+ watch(() => [themeName(), mode()], () => {
329
+ if (entries[entries.length - 1] === entry) apply(entry);
330
+ });
331
+ onBeforeUnmount(() => {
332
+ const index = entries.lastIndexOf(entry);
333
+ if (index >= 0) entries.splice(index, 1);
334
+ const top = entries[entries.length - 1];
335
+ if (top) apply(top);
336
+ else restoreBase();
337
+ });
338
+ }
339
+ //#endregion
340
+ //#region src/Theme/Theme.vue
341
+ const _hoisted_1 = ["data-astryx-theme", "data-astryx-color-mode"];
342
+ const _sfc_main = /*@__PURE__*/ defineComponent({
343
+ name: "AstryxTheme",
344
+ inheritAttrs: false,
345
+ __name: "Theme",
346
+ props: {
347
+ theme: {},
348
+ mode: { default: "system" }
349
+ },
350
+ setup(__props, { expose: __expose }) {
351
+ const props = __props;
352
+ const attrs = useAttrs();
353
+ const root = useTemplateRef("root");
354
+ const isNested = inject(themeNestingKey, false);
355
+ const parentSyntax = inject(syntaxThemeKey, null);
356
+ provide(themeNestingKey, true);
357
+ provide(themeContextKey, computed(() => ({
358
+ theme: props.theme,
359
+ mode: props.mode
360
+ })));
361
+ if (parentSyntax || props.theme.syntax) provide(syntaxThemeKey, computed(() => props.theme.syntax ?? parentSyntax?.value ?? null));
362
+ useThemeRootSync(isNested, () => props.theme.name, () => props.mode);
363
+ const colorScheme = computed(() => {
364
+ if (props.mode === "dark") return "dark";
365
+ if (props.mode === "light") return "light";
366
+ return "light dark";
367
+ });
368
+ const rootStyle = computed(() => ({
369
+ colorScheme: colorScheme.value,
370
+ ...themeStyle(props.theme)
371
+ }));
372
+ __expose({ element: root });
373
+ return (_ctx, _cache) => {
374
+ return openBlock(), createElementBlock("div", {
375
+ ref_key: "root",
376
+ ref: root,
377
+ class: normalizeClass(["astryx-theme", unref(attrs).class]),
378
+ "data-astryx-theme": __props.theme.name,
379
+ "data-astryx-color-mode": __props.mode === "system" ? void 0 : __props.mode,
380
+ style: normalizeStyle([rootStyle.value, unref(attrs).style])
381
+ }, [renderSlot(_ctx.$slots, "default")], 14, _hoisted_1);
382
+ };
383
+ }
384
+ });
385
+ //#endregion
386
+ //#region src/Theme/useMediaTheme.ts
387
+ /** Read the nearest MediaTheme. Outside one, the mode is `off`. */
388
+ function useMediaTheme() {
389
+ return { mode: inject(mediaThemeKey, null) ?? computed(() => "off") };
390
+ }
391
+ //#endregion
392
+ //#region src/Theme/useTheme.ts
393
+ function readDocumentToken(name, mode) {
394
+ if (typeof document === "undefined") return "";
395
+ const raw = getComputedStyle(document.documentElement).getPropertyValue(name).trim();
396
+ return raw ? resolveLightDark(raw, mode) : "";
397
+ }
398
+ /**
399
+ * Read the nearest theme. Outside a `Theme`, the name is `neutral` and tokens
400
+ * are read from the document's custom properties.
401
+ */
402
+ function useTheme() {
403
+ const context = inject(themeContextKey, null);
404
+ const prefersDark = useMediaQuery("(prefers-color-scheme: dark)");
405
+ const mode = computed(() => {
406
+ const requested = context?.value.mode;
407
+ if (requested === "light" || requested === "dark") return requested;
408
+ return readColorMode(prefersDark.value);
409
+ });
410
+ const name = computed(() => context?.value.theme.name ?? "neutral");
411
+ const tokens = computed(() => {
412
+ const source = context?.value.theme.tokens ?? {};
413
+ const resolved = {};
414
+ for (const [key, value] of Object.entries(source)) resolved[key] = resolveLightDark(value, mode.value);
415
+ return resolved;
416
+ });
417
+ function token(tokenName) {
418
+ const key = normalizeTokenName(tokenName);
419
+ return tokens.value[key] ?? readDocumentToken(key, mode.value);
420
+ }
421
+ return {
422
+ name,
423
+ mode,
424
+ token,
425
+ tokens
426
+ };
427
+ }
428
+ //#endregion
429
+ export { defineTheme as a, normalizeTokenName as c, _sfc_main$1 as i, useMediaTheme as n, isDefinedTheme as o, _sfc_main as r, neutralTheme as s, useTheme as t };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../Thumbnail-BWVzLLyI.js";
1
+ import { t as _sfc_main } from "../Thumbnail-Dc1UpykG.js";
2
2
  export { _sfc_main as Thumbnail };
@@ -1,6 +1,6 @@
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 "./IconButton-BNQuz9W_.js";
3
- import { t as _sfc_main$2 } from "./Icon-5MdZQ18k.js";
3
+ import { t as _sfc_main$2 } from "./Icon-Dfr4k6-S.js";
4
4
  import { t as _sfc_main$3 } from "./Spinner-9cYUCnDy.js";
5
5
  import { t as _sfc_main$4 } from "./Tooltip-mp0NMh_Y.js";
6
6
  import { t as _sfc_main$5 } from "./Skeleton-CrgWxJgr.js";
@@ -1,8 +1,8 @@
1
1
  import { c as useCoarsePointer, i as parseDisplayTime, o as resolveTimeSurface, r as isTimeInRange, s as shiftTime, t as formatDisplayTime } from "./useTimeValue-DWk6oTAZ.js";
2
- import { a as useAstryxMessages } from "./context-D6ECRdc5.js";
2
+ import { a as useAstryxMessages } from "./context-Dbo22sck.js";
3
3
  import { t as _sfc_main$1 } from "./FieldIcon--NTgW5IU.js";
4
4
  import { t as _sfc_main$2 } from "./IconButton-BNQuz9W_.js";
5
- import { t as _sfc_main$3 } from "./Icon-5MdZQ18k.js";
5
+ import { t as _sfc_main$3 } from "./Icon-Dfr4k6-S.js";
6
6
  import { computed, createBlock, createCommentVNode, createElementBlock, createVNode, defineComponent, mergeModels, openBlock, shallowRef, useModel, watch, withCtx } from "vue";
7
7
  import "../styles/bordered-control.css";
8
8
  import "../styles/time-input.css";
@@ -1,2 +1,2 @@
1
- import { at as TimeInputProps, it as TimeInputEmits, ot as TimeInputSize, rt as _default } from "../index-Df2YvC8o.js";
1
+ import { at as TimeInputProps, it as TimeInputEmits, ot as TimeInputSize, rt as _default } from "../index-C6iJwTL0.js";
2
2
  export { _default as TimeInput, type TimeInputEmits, type TimeInputProps, type TimeInputSize };
@@ -1,2 +1,2 @@
1
- import { t as _sfc_main } from "../TimeInput-OkgX-xbQ.js";
1
+ import { t as _sfc_main } from "../TimeInput-BXxCOY98.js";
2
2
  export { _sfc_main as TimeInput };
@@ -1,5 +1,5 @@
1
1
  import { t as _sfc_main$1 } from "./Field-8zRxzDHE.js";
2
- import { t as _sfc_main$2 } from "./TimeField-l3QzU6vC.js";
2
+ import { t as _sfc_main$2 } from "./TimeField-C7t9Knq9.js";
3
3
  import { computed, createBlock, createVNode, defineComponent, mergeModels, openBlock, useId, useModel, withCtx } from "vue";
4
4
  //#region src/TimeInput/TimeInput.vue
5
5
  const _sfc_main = /*@__PURE__*/ defineComponent({
@@ -0,0 +1,2 @@
1
+ import { a as TimerFormat, i as TimerType, n as TimerColor, o as TimerPresentation, r as TimerProps, s as getPresentation, t as _default } from "../index-BMrggCw-.js";
2
+ export { _default as Timer, type TimerColor, type TimerFormat, type TimerPresentation, type TimerProps, type TimerType, getPresentation };
@@ -0,0 +1,2 @@
1
+ import { n as getPresentation, t as _sfc_main } from "../Timer-B7GV6hqd.js";
2
+ export { _sfc_main as Timer, getPresentation };
@@ -0,0 +1,134 @@
1
+ import { t as _sfc_main$1 } from "./Text-BHVghsWo.js";
2
+ import { computed, createBlock, createElementBlock, createElementVNode, defineComponent, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, useTemplateRef, watch, withCtx } from "vue";
3
+ import "../styles/timer.css";
4
+ //#region src/Timer/format.ts
5
+ const ONE_SECOND_MS = 1e3;
6
+ const ONE_MINUTE_MS = 60 * ONE_SECOND_MS;
7
+ const ONE_HOUR_SECONDS = 3600;
8
+ const MAX_TIMEOUT_MS = 2147483647;
9
+ function pad(value) {
10
+ return String(value).padStart(2, "0");
11
+ }
12
+ function resolveTimerFormat(format) {
13
+ return format === "clock" ? "clock" : "elapsed";
14
+ }
15
+ function getElapsedMilliseconds(now, startTime) {
16
+ return Math.max(0, now - startTime);
17
+ }
18
+ function getPresentation(elapsedMilliseconds, format) {
19
+ const elapsedSeconds = Math.floor(elapsedMilliseconds / ONE_SECOND_MS);
20
+ if (format === "clock") {
21
+ const hours = Math.floor(elapsedSeconds / ONE_HOUR_SECONDS);
22
+ const minutes = Math.floor(elapsedSeconds % ONE_HOUR_SECONDS / 60);
23
+ const seconds = elapsedSeconds % 60;
24
+ return {
25
+ dateTime: `PT${elapsedSeconds}S`,
26
+ text: hours > 0 ? `${String(hours)}:${pad(minutes)}:${pad(seconds)}` : `${String(minutes)}:${pad(seconds)}`
27
+ };
28
+ }
29
+ if (elapsedSeconds < 60) return {
30
+ dateTime: `PT${elapsedSeconds}S`,
31
+ text: `${String(elapsedSeconds)}s`
32
+ };
33
+ const totalMinutes = Math.floor(elapsedSeconds / 60);
34
+ if (totalMinutes < 60) return {
35
+ dateTime: `PT${elapsedSeconds}S`,
36
+ text: `${String(totalMinutes)}m ${pad(elapsedSeconds % 60)}s`
37
+ };
38
+ return {
39
+ dateTime: `PT${totalMinutes * 60}S`,
40
+ text: `${String(Math.floor(totalMinutes / 60))}h ${pad(totalMinutes % 60)}m`
41
+ };
42
+ }
43
+ function getMillisecondsUntilNextChange(now, startTime, elapsedMilliseconds, format) {
44
+ if (now < startTime) return Math.min(startTime - now + ONE_SECOND_MS, MAX_TIMEOUT_MS);
45
+ const precision = format === "elapsed" && elapsedMilliseconds >= ONE_HOUR_SECONDS * ONE_SECOND_MS ? ONE_MINUTE_MS : ONE_SECOND_MS;
46
+ return precision - elapsedMilliseconds % precision;
47
+ }
48
+ //#endregion
49
+ //#region src/Timer/Timer.vue
50
+ const _hoisted_1 = {
51
+ ref: "time",
52
+ class: "astryx-timer__time",
53
+ datetime: "PT0S"
54
+ };
55
+ const _hoisted_2 = ["data-color"];
56
+ const _sfc_main = /*@__PURE__*/ defineComponent({
57
+ name: "AstryxTimer",
58
+ inheritAttrs: false,
59
+ __name: "Timer",
60
+ props: {
61
+ startTime: {},
62
+ format: { default: "elapsed" },
63
+ type: { default: "supporting" },
64
+ size: {},
65
+ color: { default: "secondary" },
66
+ weight: {}
67
+ },
68
+ setup(__props) {
69
+ const props = __props;
70
+ const timeEl = useTemplateRef("time");
71
+ const mountTime = Date.now();
72
+ let timeoutId;
73
+ const inheritsType = computed(() => props.type === "inherit");
74
+ const textColor = computed(() => props.color === "disabled" ? "inherit" : props.color);
75
+ const textType = computed(() => props.type === "inherit" ? "supporting" : props.type);
76
+ function stop() {
77
+ if (timeoutId !== void 0) clearTimeout(timeoutId);
78
+ timeoutId = void 0;
79
+ }
80
+ function tick() {
81
+ const start = props.startTime !== void 0 && Number.isFinite(props.startTime) ? props.startTime : mountTime;
82
+ const now = Date.now();
83
+ const elapsed = getElapsedMilliseconds(now, start);
84
+ const presentation = getPresentation(elapsed, resolveTimerFormat(props.format));
85
+ const node = timeEl.value;
86
+ if (node != null) {
87
+ if (node.textContent !== presentation.text) node.textContent = presentation.text;
88
+ if (node.dateTime !== presentation.dateTime) node.dateTime = presentation.dateTime;
89
+ }
90
+ timeoutId = setTimeout(tick, getMillisecondsUntilNextChange(now, start, elapsed, resolveTimerFormat(props.format)));
91
+ }
92
+ function start() {
93
+ stop();
94
+ tick();
95
+ }
96
+ onMounted(start);
97
+ watch(() => [props.startTime, props.format], start);
98
+ onBeforeUnmount(stop);
99
+ return (_ctx, _cache) => {
100
+ return !inheritsType.value ? (openBlock(), createBlock(_sfc_main$1, {
101
+ key: 0,
102
+ class: normalizeClass(["astryx-timer", _ctx.$attrs.class]),
103
+ style: normalizeStyle(_ctx.$attrs.style),
104
+ type: textType.value,
105
+ size: __props.size,
106
+ color: textColor.value,
107
+ weight: __props.weight,
108
+ "data-color": __props.color,
109
+ "data-component": "timer"
110
+ }, {
111
+ default: withCtx(() => [createElementVNode("time", _hoisted_1, "0s", 512)]),
112
+ _: 1
113
+ }, 8, [
114
+ "class",
115
+ "style",
116
+ "type",
117
+ "size",
118
+ "color",
119
+ "weight",
120
+ "data-color"
121
+ ])) : (openBlock(), createElementBlock("time", {
122
+ key: 1,
123
+ ref: "time",
124
+ class: normalizeClass(["astryx-timer astryx-timer__time", _ctx.$attrs.class]),
125
+ style: normalizeStyle(_ctx.$attrs.style),
126
+ "data-color": __props.color,
127
+ "data-component": "timer",
128
+ datetime: "PT0S"
129
+ }, "0s", 14, _hoisted_2));
130
+ };
131
+ }
132
+ });
133
+ //#endregion
134
+ export { getPresentation as n, _sfc_main as t };
@@ -1,2 +1,2 @@
1
- import { $ as formatRelativeTime, G as _default, J as TimestampProps, K as TimestampColor, Q as formatTooltipLines, X as TimestampTooltipFormat, Y as TimestampTooltipEntry, Z as TimestampTooltipLine, et as FormatInstantOptions, nt as formatInstant, q as TimestampFormat, tt as InstantFormat } from "../index-Df2YvC8o.js";
1
+ import { $ as formatRelativeTime, G as _default, J as TimestampProps, K as TimestampColor, Q as formatTooltipLines, X as TimestampTooltipFormat, Y as TimestampTooltipEntry, Z as TimestampTooltipLine, et as FormatInstantOptions, nt as formatInstant, q as TimestampFormat, tt as InstantFormat } from "../index-C6iJwTL0.js";
2
2
  export { type FormatInstantOptions, type InstantFormat, _default as Timestamp, type TimestampColor, type TimestampFormat, type TimestampProps, type TimestampTooltipEntry, type TimestampTooltipFormat, type TimestampTooltipLine, formatInstant, formatRelativeTime, formatTooltipLines };
@@ -1,2 +1,2 @@
1
- import { i as formatInstant, n as formatTooltipLines, r as formatRelativeTime, t as _sfc_main } from "../Timestamp-DUoP9ari.js";
1
+ import { i as formatInstant, n as formatTooltipLines, r as formatRelativeTime, t as _sfc_main } from "../Timestamp-DlZSmgCJ.js";
2
2
  export { _sfc_main as Timestamp, formatInstant, formatRelativeTime, formatTooltipLines };
@@ -1,7 +1,7 @@
1
- import { t as _sfc_main$2 } from "./Text-CKd7e3gK.js";
2
- import { a as useAstryxMessages, i as useAstryxLocale } from "./context-D6ECRdc5.js";
1
+ import { t as _sfc_main$2 } from "./Text-BHVghsWo.js";
2
+ import { a as useAstryxMessages, i as useAstryxLocale } from "./context-Dbo22sck.js";
3
3
  import { t as _sfc_main$3 } from "./IconButton-BNQuz9W_.js";
4
- import { t as _sfc_main$4 } from "./Icon-5MdZQ18k.js";
4
+ import { t as _sfc_main$4 } from "./Icon-Dfr4k6-S.js";
5
5
  import { t as _sfc_main$5 } from "./HoverCard-EhbWaGOW.js";
6
6
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, ref, renderList, renderSlot, toDisplayString, unref, watch, withCtx } from "vue";
7
7
  import "../styles/timestamp.css";
@@ -1,2 +1,2 @@
1
- import { A as ToggleButtonElevation, B as ToggleButtonGroupValue, D as _default$1, F as ToggleButtonGroupOrientation, H as ToggleButtonProps, I as ToggleButtonGroupProps, L as ToggleButtonGroupSingleProps, M as ToggleButtonGroupBaseProps, N as ToggleButtonGroupEmits, O as _default, P as ToggleButtonGroupMultipleProps, R as ToggleButtonGroupSlots, U as ToggleButtonSize, V as ToggleButtonPressedChangeHandler, W as ToggleButtonSlots, j as ToggleButtonEmits, k as ToggleButtonChangeAction, z as ToggleButtonGroupType } from "../index-Df2YvC8o.js";
1
+ import { A as ToggleButtonElevation, B as ToggleButtonGroupValue, D as _default$1, F as ToggleButtonGroupOrientation, H as ToggleButtonProps, I as ToggleButtonGroupProps, L as ToggleButtonGroupSingleProps, M as ToggleButtonGroupBaseProps, N as ToggleButtonGroupEmits, O as _default, P as ToggleButtonGroupMultipleProps, R as ToggleButtonGroupSlots, U as ToggleButtonSize, V as ToggleButtonPressedChangeHandler, W as ToggleButtonSlots, j as ToggleButtonEmits, k as ToggleButtonChangeAction, z as ToggleButtonGroupType } from "../index-C6iJwTL0.js";
2
2
  export { _default as ToggleButton, _default as default, type ToggleButtonChangeAction, type ToggleButtonElevation, type ToggleButtonEmits, _default$1 as ToggleButtonGroup, type ToggleButtonGroupBaseProps, type ToggleButtonGroupEmits, type ToggleButtonGroupMultipleProps, type ToggleButtonGroupOrientation, type ToggleButtonGroupProps, type ToggleButtonGroupSingleProps, type ToggleButtonGroupSlots, type ToggleButtonGroupType, type ToggleButtonGroupValue, type ToggleButtonPressedChangeHandler, type ToggleButtonProps, type ToggleButtonSize, type ToggleButtonSlots };
@@ -1,2 +1,2 @@
1
- import { a as TokenProps, i as TokenEmits, n as TOKEN_COLORS, o as TokenSize, r as TokenColor, s as TokenSlots, t as _default } from "../index-4FM5lQdV.js";
1
+ import { a as TokenProps, i as TokenEmits, n as TOKEN_COLORS, o as TokenSize, r as TokenColor, s as TokenSlots, t as _default } from "../index-BUXNRekN.js";
2
2
  export { TOKEN_COLORS, _default as Token, type TokenColor, type TokenEmits, type TokenProps, type TokenSize, type TokenSlots };
@@ -1,3 +1,3 @@
1
- import { t as _sfc_main } from "../Token-C4KD0fZD.js";
1
+ import { t as _sfc_main } from "../Token-wt4e80IM.js";
2
2
  import { t as TOKEN_COLORS } from "../Token-BdRzlXzm.js";
3
3
  export { TOKEN_COLORS, _sfc_main as Token };
@@ -1,4 +1,4 @@
1
- import { a as useAstryxMessages } from "./context-D6ECRdc5.js";
1
+ import { a as useAstryxMessages } from "./context-Dbo22sck.js";
2
2
  import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, mergeProps, normalizeClass, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, useAttrs, withCtx } from "vue";
3
3
  import "../styles/token.css";
4
4
  import "../styles/visually-hidden-utility.css";
@@ -1,2 +1,2 @@
1
- import { a as TokenizerProps, c as TokenizerStatus, i as TokenizerOverflow, n as TokenizerChange, o as TokenizerSize, r as TokenizerEmits, s as TokenizerSlots, t as _default } from "../index-FEy8qFSD.js";
1
+ import { a as TokenizerProps, c as TokenizerStatus, i as TokenizerOverflow, n as TokenizerChange, o as TokenizerSize, r as TokenizerEmits, s as TokenizerSlots, t as _default } from "../index-BHqRH7QW.js";
2
2
  export { _default as Tokenizer, type TokenizerChange, type TokenizerEmits, type TokenizerOverflow, type TokenizerProps, type TokenizerSize, type TokenizerSlots, type TokenizerStatus };