silvery 0.17.0 → 0.17.2

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 (171) hide show
  1. package/dist/UPNG-AVSMjiFE.mjs +5076 -0
  2. package/dist/UPNG-AVSMjiFE.mjs.map +1 -0
  3. package/dist/__vite-browser-external-2447137e-D3GdsvS_.mjs +6 -0
  4. package/dist/__vite-browser-external-2447137e-D3GdsvS_.mjs.map +1 -0
  5. package/dist/animation-C_PTO0uH.mjs +304 -0
  6. package/dist/animation-C_PTO0uH.mjs.map +1 -0
  7. package/dist/ansi-CXLE_pt1.mjs +71 -0
  8. package/dist/ansi-CXLE_pt1.mjs.map +1 -0
  9. package/dist/ansi-zmNzgkPB.d.mts +49 -0
  10. package/dist/ansi-zmNzgkPB.d.mts.map +1 -0
  11. package/dist/apng-DCWY913R.mjs +3 -0
  12. package/dist/apng-ENBAJk-H.mjs +70 -0
  13. package/dist/apng-ENBAJk-H.mjs.map +1 -0
  14. package/dist/assets/resvgjs.darwin-arm64-BtufyGW1.node +0 -0
  15. package/dist/backend-CkIkIHR-.mjs +13396 -0
  16. package/dist/backend-CkIkIHR-.mjs.map +1 -0
  17. package/dist/backends-CkvbG3js.mjs +1181 -0
  18. package/dist/backends-CkvbG3js.mjs.map +1 -0
  19. package/dist/backends-CyJqNLeK.mjs +3 -0
  20. package/dist/chunk-BSw8zbkd.mjs +37 -0
  21. package/dist/cli-B-k7Bm56.mjs +4 -0
  22. package/dist/context-QreF3UHr.mjs +64 -0
  23. package/dist/context-QreF3UHr.mjs.map +1 -0
  24. package/dist/derive-D7bFJdfU.d.mts +28 -0
  25. package/dist/derive-D7bFJdfU.d.mts.map +1 -0
  26. package/dist/devtools-CscuKaDK.mjs +89 -0
  27. package/dist/devtools-CscuKaDK.mjs.map +1 -0
  28. package/dist/devtools-D4oGc6LY.mjs +2 -0
  29. package/dist/eta-DLiVPaSD.mjs +110 -0
  30. package/dist/eta-DLiVPaSD.mjs.map +1 -0
  31. package/dist/flexily-zero-adapter-DmG4Ge8t.mjs +3376 -0
  32. package/dist/flexily-zero-adapter-DmG4Ge8t.mjs.map +1 -0
  33. package/dist/flexily-zero-adapter-GHwEW11s.mjs +2 -0
  34. package/dist/gif-BaJNREpP.mjs +3 -0
  35. package/dist/gif-Bp6fIyN3.mjs +73 -0
  36. package/dist/gif-Bp6fIyN3.mjs.map +1 -0
  37. package/dist/gifenc-GiVCZ9-3.mjs +730 -0
  38. package/dist/gifenc-GiVCZ9-3.mjs.map +1 -0
  39. package/dist/image-Dx7gYjkq.mjs +346 -0
  40. package/dist/image-Dx7gYjkq.mjs.map +1 -0
  41. package/dist/index-CBcSpGSM.d.mts +3416 -0
  42. package/dist/index-CBcSpGSM.d.mts.map +1 -0
  43. package/dist/index-DCVL3jHo.d.mts +634 -0
  44. package/dist/index-DCVL3jHo.d.mts.map +1 -0
  45. package/dist/index-p-wBs_wH.d.mts +175 -0
  46. package/dist/index-p-wBs_wH.d.mts.map +1 -0
  47. package/dist/index.d.mts +7296 -0
  48. package/dist/index.d.mts.map +1 -0
  49. package/dist/index.mjs +9399 -0
  50. package/dist/index.mjs.map +1 -0
  51. package/dist/key-mapping-BsUHe_nk.mjs +3 -0
  52. package/dist/key-mapping-DsyfLEdC.mjs +132 -0
  53. package/dist/key-mapping-DsyfLEdC.mjs.map +1 -0
  54. package/dist/layout-engine-B3dsnVLU.mjs +50 -0
  55. package/dist/layout-engine-B3dsnVLU.mjs.map +1 -0
  56. package/dist/layout-engine-D_lSR4i9.mjs +2 -0
  57. package/dist/multi-progress-C0-rkn86.d.mts +180 -0
  58. package/dist/multi-progress-C0-rkn86.d.mts.map +1 -0
  59. package/dist/multi-progress-CQVB9lES.mjs +219 -0
  60. package/dist/multi-progress-CQVB9lES.mjs.map +1 -0
  61. package/dist/node-Dedx-6xF.mjs +1085 -0
  62. package/dist/node-Dedx-6xF.mjs.map +1 -0
  63. package/dist/pipeline-DDOPrjuY.mjs +4387 -0
  64. package/dist/pipeline-DDOPrjuY.mjs.map +1 -0
  65. package/dist/progress-bar-COPSBlT9.mjs +155 -0
  66. package/dist/progress-bar-COPSBlT9.mjs.map +1 -0
  67. package/dist/reconciler-2lp5VXK7.mjs +16506 -0
  68. package/dist/reconciler-2lp5VXK7.mjs.map +1 -0
  69. package/dist/render-string-BXvxTg5P.mjs +201 -0
  70. package/dist/render-string-BXvxTg5P.mjs.map +1 -0
  71. package/dist/render-string-hvfpVtoP.mjs +2 -0
  72. package/dist/resvg-js-V6oMi8CY.mjs +203 -0
  73. package/dist/resvg-js-V6oMi8CY.mjs.map +1 -0
  74. package/dist/runtime-BjDHNTxJ.mjs +8723 -0
  75. package/dist/runtime-BjDHNTxJ.mjs.map +1 -0
  76. package/dist/runtime.d.mts +2 -0
  77. package/dist/runtime.mjs +3 -0
  78. package/dist/spinner-Cgej6Vnb.d.mts +127 -0
  79. package/dist/spinner-Cgej6Vnb.d.mts.map +1 -0
  80. package/dist/spinner-DSByknyx.mjs +298 -0
  81. package/dist/spinner-DSByknyx.mjs.map +1 -0
  82. package/dist/src-9B5k0JmY.mjs +1629 -0
  83. package/dist/src-9B5k0JmY.mjs.map +1 -0
  84. package/dist/src-C9f3hiVG.mjs +3620 -0
  85. package/dist/src-C9f3hiVG.mjs.map +1 -0
  86. package/dist/src-fJVbhdn-.mjs +816 -0
  87. package/dist/src-fJVbhdn-.mjs.map +1 -0
  88. package/dist/theme.d.mts +115 -0
  89. package/dist/theme.d.mts.map +1 -0
  90. package/dist/theme.mjs +8 -0
  91. package/dist/theme.mjs.map +1 -0
  92. package/dist/types-Bhj5QkIQ.mjs +13 -0
  93. package/dist/types-Bhj5QkIQ.mjs.map +1 -0
  94. package/dist/types-CDgkE-Rw.d.mts +241 -0
  95. package/dist/types-CDgkE-Rw.d.mts.map +1 -0
  96. package/dist/ui/animation.d.mts +2 -0
  97. package/dist/ui/animation.mjs +2 -0
  98. package/dist/ui/ansi.d.mts +2 -0
  99. package/dist/ui/ansi.mjs +2 -0
  100. package/dist/ui/cli.d.mts +5 -0
  101. package/dist/ui/cli.mjs +7 -0
  102. package/dist/ui/display.d.mts +35 -0
  103. package/dist/ui/display.d.mts.map +1 -0
  104. package/dist/ui/display.mjs +123 -0
  105. package/dist/ui/display.mjs.map +1 -0
  106. package/dist/ui/image.d.mts +2 -0
  107. package/dist/ui/image.mjs +2 -0
  108. package/dist/ui/input.d.mts +184 -0
  109. package/dist/ui/input.d.mts.map +1 -0
  110. package/dist/ui/input.mjs +285 -0
  111. package/dist/ui/input.mjs.map +1 -0
  112. package/dist/ui/progress.d.mts +249 -0
  113. package/dist/ui/progress.d.mts.map +1 -0
  114. package/dist/ui/progress.mjs +858 -0
  115. package/dist/ui/progress.mjs.map +1 -0
  116. package/dist/ui/react.d.mts +280 -0
  117. package/dist/ui/react.d.mts.map +1 -0
  118. package/dist/ui/react.mjs +413 -0
  119. package/dist/ui/react.mjs.map +1 -0
  120. package/dist/ui/utils.d.mts +86 -0
  121. package/dist/ui/utils.d.mts.map +1 -0
  122. package/dist/ui/utils.mjs +2 -0
  123. package/dist/ui/wrappers.d.mts +3 -0
  124. package/dist/ui/wrappers.mjs +2 -0
  125. package/dist/ui.d.mts +6 -0
  126. package/dist/ui.mjs +7 -0
  127. package/dist/useLatest-BMIYXd6e.d.mts +154 -0
  128. package/dist/useLatest-BMIYXd6e.d.mts.map +1 -0
  129. package/dist/useLayout-BG2cGl15.mjs +139 -0
  130. package/dist/useLayout-BG2cGl15.mjs.map +1 -0
  131. package/dist/with-text-input-CmHf_9d6.d.mts +284 -0
  132. package/dist/with-text-input-CmHf_9d6.d.mts.map +1 -0
  133. package/dist/wrapper-Dqh0zi2W.mjs +3527 -0
  134. package/dist/wrapper-Dqh0zi2W.mjs.map +1 -0
  135. package/dist/wrappers-hhL8EQ_n.mjs +810 -0
  136. package/dist/wrappers-hhL8EQ_n.mjs.map +1 -0
  137. package/dist/yoga-adapter-BJ9SOhTY.mjs +245 -0
  138. package/dist/yoga-adapter-BJ9SOhTY.mjs.map +1 -0
  139. package/dist/yoga-adapter-Daq6-dw1.mjs +2 -0
  140. package/package.json +48 -75
  141. package/CHANGELOG.md +0 -319
  142. package/dist/chalk.js +0 -4
  143. package/dist/index.js +0 -270
  144. package/dist/ink.js +0 -142
  145. package/dist/runtime.js +0 -135
  146. package/dist/theme.js +0 -7
  147. package/dist/ui/animation.js +0 -3
  148. package/dist/ui/ansi.js +0 -3
  149. package/dist/ui/cli.js +0 -9
  150. package/dist/ui/display.js +0 -4
  151. package/dist/ui/image.js +0 -4
  152. package/dist/ui/input.js +0 -3
  153. package/dist/ui/progress.js +0 -9
  154. package/dist/ui/react.js +0 -4
  155. package/dist/ui/utils.js +0 -3
  156. package/dist/ui/wrappers.js +0 -15
  157. package/dist/ui.js +0 -18
  158. package/src/index.ts +0 -73
  159. package/src/runtime.ts +0 -4
  160. package/src/theme.ts +0 -4
  161. package/src/ui/animation.ts +0 -2
  162. package/src/ui/ansi.ts +0 -2
  163. package/src/ui/cli.ts +0 -3
  164. package/src/ui/display.ts +0 -2
  165. package/src/ui/image.ts +0 -2
  166. package/src/ui/input.ts +0 -2
  167. package/src/ui/progress.ts +0 -2
  168. package/src/ui/react.ts +0 -2
  169. package/src/ui/utils.ts +0 -2
  170. package/src/ui/wrappers.ts +0 -2
  171. package/src/ui.ts +0 -4
@@ -0,0 +1,634 @@
1
+ import React from "react";
2
+
3
+ //#region packages/ansi/src/detection.d.ts
4
+ interface TerminalCaps {
5
+ /** Terminal program name (from TERM_PROGRAM) */
6
+ program: string;
7
+ /** TERM value */
8
+ term: string;
9
+ /** Color support level */
10
+ colorLevel: "none" | "basic" | "256" | "truecolor";
11
+ /** Kitty keyboard protocol supported */
12
+ kittyKeyboard: boolean;
13
+ /** Kitty graphics protocol (inline images) */
14
+ kittyGraphics: boolean;
15
+ /** Sixel graphics supported */
16
+ sixel: boolean;
17
+ /** OSC 52 clipboard */
18
+ osc52: boolean;
19
+ /** OSC 8 hyperlinks */
20
+ hyperlinks: boolean;
21
+ /** OSC 9/99 notifications */
22
+ notifications: boolean;
23
+ /** Bracketed paste mode */
24
+ bracketedPaste: boolean;
25
+ /** SGR mouse tracking */
26
+ mouse: boolean;
27
+ /** Synchronized output (DEC 2026) */
28
+ syncOutput: boolean;
29
+ /** Unicode/emoji support */
30
+ unicode: boolean;
31
+ /** SGR 4:x underline style subparameters (curly, dotted, dashed) */
32
+ underlineStyles: boolean;
33
+ /** SGR 58 underline color */
34
+ underlineColor: boolean;
35
+ /** Text-presentation emoji (⚠, ☑, ⭐) rendered as 2-wide.
36
+ * Modern terminals (Ghostty, iTerm, Kitty) render these at emoji width (2 cells).
37
+ * Terminal.app renders them at text width (1 cell). */
38
+ textEmojiWide: boolean;
39
+ /** OSC 66 text sizing protocol likely supported (Kitty 0.40+, Ghostty) */
40
+ textSizingSupported: boolean;
41
+ /** Heuristic: likely dark background (for theme selection) */
42
+ darkBackground: boolean;
43
+ /** Heuristic: likely has Nerd Font installed (for icon selection) */
44
+ nerdfont: boolean;
45
+ }
46
+ /**
47
+ * Default capabilities (assumes modern terminal with full support).
48
+ */
49
+ declare function defaultCaps(): TerminalCaps;
50
+ /** Detect terminal capabilities from environment variables.
51
+ * Synchronous. Minimal I/O: may run `defaults` on macOS for Apple_Terminal.
52
+ */
53
+ declare function detectTerminalCaps(): TerminalCaps;
54
+ //#endregion
55
+ //#region packages/ansi/src/types.d.ts
56
+ /**
57
+ * Type definitions for @silvery/ansi
58
+ */
59
+ /**
60
+ * Color level supported by terminal.
61
+ * - 'basic': 16 colors (SGR 30-37, 40-47)
62
+ * - '256': 256 colors (SGR 38;5;n)
63
+ * - 'truecolor': 16M colors (SGR 38;2;r;g;b)
64
+ */
65
+ type ColorLevel = "basic" | "256" | "truecolor";
66
+ /**
67
+ * Standard ANSI color names (the 16 base colors).
68
+ * These map to SGR 30-37 (foreground) and 40-47 (background),
69
+ * plus their bright variants (SGR 90-97, 100-107).
70
+ */
71
+ type AnsiColorName = "black" | "red" | "green" | "yellow" | "blue" | "magenta" | "cyan" | "white" | "gray" | "grey" | "blackBright" | "redBright" | "greenBright" | "yellowBright" | "blueBright" | "magentaBright" | "cyanBright" | "whiteBright";
72
+ //#endregion
73
+ //#region packages/ansi/src/theme/types.d.ts
74
+ /**
75
+ * Core type definitions for the theme system.
76
+ *
77
+ * Two-layer architecture:
78
+ * Layer 1: ColorPalette — 22 terminal colors (what palette generators produce)
79
+ * Layer 2: Theme — 33 semantic tokens (what UI apps consume)
80
+ *
81
+ * Pipeline: Palette generators → ColorPalette (22) → deriveTheme() → Theme (33)
82
+ */
83
+ interface ColorPalette {
84
+ name?: string;
85
+ dark?: boolean;
86
+ primary?: string;
87
+ black: string;
88
+ red: string;
89
+ green: string;
90
+ yellow: string;
91
+ blue: string;
92
+ magenta: string;
93
+ cyan: string;
94
+ white: string;
95
+ brightBlack: string;
96
+ brightRed: string;
97
+ brightGreen: string;
98
+ brightYellow: string;
99
+ brightBlue: string;
100
+ brightMagenta: string;
101
+ brightCyan: string;
102
+ brightWhite: string;
103
+ foreground: string;
104
+ background: string;
105
+ cursorColor: string;
106
+ cursorText: string;
107
+ selectionBackground: string;
108
+ selectionForeground: string;
109
+ }
110
+ declare const COLOR_PALETTE_FIELDS: readonly ["black", "red", "green", "yellow", "blue", "magenta", "cyan", "white", "brightBlack", "brightRed", "brightGreen", "brightYellow", "brightBlue", "brightMagenta", "brightCyan", "brightWhite", "foreground", "background", "cursorColor", "cursorText", "selectionBackground", "selectionForeground"];
111
+ interface Theme {
112
+ name: string;
113
+ bg: string;
114
+ fg: string;
115
+ muted: string;
116
+ mutedbg: string;
117
+ surface: string;
118
+ surfacebg: string;
119
+ popover: string;
120
+ popoverbg: string;
121
+ inverse: string;
122
+ inversebg: string;
123
+ cursor: string;
124
+ cursorbg: string;
125
+ selection: string;
126
+ selectionbg: string;
127
+ primary: string;
128
+ primaryfg: string;
129
+ secondary: string;
130
+ secondaryfg: string;
131
+ accent: string;
132
+ accentfg: string;
133
+ error: string;
134
+ errorfg: string;
135
+ warning: string;
136
+ warningfg: string;
137
+ success: string;
138
+ successfg: string;
139
+ info: string;
140
+ infofg: string;
141
+ border: string;
142
+ inputborder: string;
143
+ focusborder: string;
144
+ link: string;
145
+ disabledfg: string;
146
+ palette: string[];
147
+ }
148
+ type AnsiPrimary = "yellow" | "cyan" | "magenta" | "green" | "red" | "blue" | "white";
149
+ type HueName = "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "purple" | "pink";
150
+ //#endregion
151
+ //#region packages/theme/src/ThemeContext.d.ts
152
+ /** @internal Exported for @silvery/ag-react ThemeProvider — not public API. */
153
+ declare const ThemeContext: React.Context<Theme>;
154
+ interface ThemeProviderProps {
155
+ theme: Theme;
156
+ children: React.ReactNode;
157
+ }
158
+ /**
159
+ * Provide a theme to the subtree.
160
+ *
161
+ * Components beneath this provider can use `useTheme()` or `$token`
162
+ * color props (e.g. `color="$primary"`).
163
+ */
164
+ declare function ThemeProvider({
165
+ theme,
166
+ children
167
+ }: ThemeProviderProps): React.ReactElement;
168
+ /**
169
+ * Read the current theme from context.
170
+ *
171
+ * Returns `defaultDarkTheme` when no `ThemeProvider` is present.
172
+ */
173
+ declare function useTheme(): Theme;
174
+ //#endregion
175
+ //#region packages/theme/src/generate.d.ts
176
+ /**
177
+ * Generate a complete ANSI 16 theme from a primary color + dark/light preference.
178
+ *
179
+ * All token values are ANSI color names (e.g. "yellow", "blueBright").
180
+ */
181
+ declare function generateTheme(primary: AnsiPrimary, dark: boolean): Theme;
182
+ //#endregion
183
+ //#region packages/theme/src/builder.d.ts
184
+ interface ThemeBuilder {
185
+ /** Set background color. */
186
+ bg(color: string): ThemeBuilder;
187
+ /** Set foreground color. */
188
+ fg(color: string): ThemeBuilder;
189
+ /** Set primary accent color. */
190
+ primary(color: string): ThemeBuilder;
191
+ /** Alias for `.primary()`. */
192
+ accent(color: string): ThemeBuilder;
193
+ /** Force dark mode. */
194
+ dark(): ThemeBuilder;
195
+ /** Force light mode. */
196
+ light(): ThemeBuilder;
197
+ /** Set any palette color by name. */
198
+ color(name: keyof Omit<ColorPalette, "name" | "dark">, value: string): ThemeBuilder;
199
+ /** Set full palette at once. */
200
+ palette(p: ColorPalette): ThemeBuilder;
201
+ /** Load a built-in palette by name. */
202
+ preset(name: string): ThemeBuilder;
203
+ /** Derive the final Theme from accumulated state. */
204
+ build(): Theme;
205
+ }
206
+ /** Create a chainable theme builder. */
207
+ declare function createTheme(): ThemeBuilder;
208
+ /**
209
+ * Quick theme from a primary color or color name.
210
+ *
211
+ * @example
212
+ * ```typescript
213
+ * quickTheme('#EBCB8B', 'dark') // yellow primary, dark mode
214
+ * quickTheme('blue') // blue primary, default dark
215
+ * ```
216
+ */
217
+ declare function quickTheme(primaryOrHex: string, mode?: "dark" | "light"): Theme;
218
+ /**
219
+ * Create a theme from a built-in preset name.
220
+ *
221
+ * @example
222
+ * ```typescript
223
+ * presetTheme('catppuccin-mocha')
224
+ * presetTheme('nord')
225
+ * ```
226
+ */
227
+ declare function presetTheme(name: string): Theme;
228
+ //#endregion
229
+ //#region packages/theme/src/generators.d.ts
230
+ /**
231
+ * Generate a ColorPalette from a Base16 YAML scheme.
232
+ *
233
+ * Maps base00–base0F to ANSI palette colors, derives special colors.
234
+ */
235
+ declare function fromBase16(yamlOrJson: string): ColorPalette;
236
+ interface FromColorsOptions {
237
+ /** Background color (infers dark/light). */
238
+ background?: string;
239
+ /** Foreground/text color. Generated if omitted. */
240
+ foreground?: string;
241
+ /** Primary accent color. Generated if omitted. */
242
+ primary?: string;
243
+ /** Force dark mode. */
244
+ dark?: boolean;
245
+ /** Theme name. */
246
+ name?: string;
247
+ }
248
+ /**
249
+ * Generate a full ColorPalette from 1-3 hex colors.
250
+ *
251
+ * At minimum, provide `background` or `primary`. Missing colors are
252
+ * generated via surface ramp (from bg) and hue rotation (from primary).
253
+ */
254
+ declare function fromColors(opts: FromColorsOptions): ColorPalette;
255
+ /**
256
+ * Look up a built-in palette by name.
257
+ *
258
+ * @returns The ColorPalette, or undefined if not found.
259
+ */
260
+ declare function fromPreset(name: string): ColorPalette | undefined;
261
+ //#endregion
262
+ //#region packages/theme/src/state.d.ts
263
+ /** Set the active theme (called by ThemeProvider). */
264
+ declare function setActiveTheme(theme: Theme): void;
265
+ /** Get the active theme (called by parseColor in render-helpers). */
266
+ declare function getActiveTheme(): Theme;
267
+ /** Push a context theme (called by render phase for Box nodes with theme prop). */
268
+ declare function pushContextTheme(theme: Theme): void;
269
+ /** Pop a context theme (called by render phase after processing Box subtree). */
270
+ declare function popContextTheme(): void;
271
+ //#endregion
272
+ //#region packages/theme/src/validate.d.ts
273
+ /** Validation result from validateColorPalette(). */
274
+ interface ValidationResult {
275
+ valid: boolean;
276
+ errors: string[];
277
+ warnings: string[];
278
+ }
279
+ /**
280
+ * Validate a ColorPalette.
281
+ *
282
+ * Checks:
283
+ * - All 22 color fields are present and non-empty hex strings
284
+ * - Warns on low-contrast foreground/background combinations
285
+ */
286
+ declare function validateColorPalette(p: ColorPalette): ValidationResult;
287
+ //#endregion
288
+ //#region packages/theme/src/validate-theme.d.ts
289
+ /**
290
+ * Theme validation — checks that all required semantic tokens are present.
291
+ *
292
+ * Complements validateColorPalette() which validates the lower-level
293
+ * ColorPalette. This validates the derived Theme object.
294
+ */
295
+ /** All 33 required semantic token keys on Theme (excludes `name` and `palette`). */
296
+ declare const THEME_TOKEN_KEYS: readonly string[];
297
+ /** Result of theme validation. */
298
+ interface ThemeValidationResult {
299
+ /** Whether the theme has all required tokens. */
300
+ valid: boolean;
301
+ /** Token keys that are required but missing or empty. */
302
+ missing: string[];
303
+ /** Token keys that exist on the object but are not recognized theme tokens. */
304
+ extra: string[];
305
+ }
306
+ /**
307
+ * Validate a Theme object — check that all required tokens are present.
308
+ *
309
+ * @param theme - The theme object to validate
310
+ * @returns Validation result with missing and extra token lists
311
+ *
312
+ * @example
313
+ * ```typescript
314
+ * const result = validateTheme(myTheme)
315
+ * if (!result.valid) {
316
+ * console.log("Missing tokens:", result.missing)
317
+ * }
318
+ * ```
319
+ */
320
+ declare function validateTheme(theme: Record<string, unknown>): ThemeValidationResult;
321
+ //#endregion
322
+ //#region packages/theme/src/alias.d.ts
323
+ /**
324
+ * Resolve all token aliases in a theme.
325
+ *
326
+ * Token values that start with `$` are treated as references to other tokens.
327
+ * Alias chains are followed until a concrete (non-$) value is reached.
328
+ * Circular references are detected via a depth limit and left unresolved.
329
+ *
330
+ * @param theme - A theme-like object where values may reference other tokens via `$name`
331
+ * @returns A new object with all aliases resolved to concrete values
332
+ *
333
+ * @example
334
+ * ```typescript
335
+ * const themed = resolveAliases({
336
+ * ...baseTheme,
337
+ * button: "$primary", // resolves to the value of 'primary'
338
+ * buttonHover: "$button", // chain: buttonHover -> button -> primary -> hex
339
+ * })
340
+ * ```
341
+ */
342
+ declare function resolveAliases(theme: Record<string, string>): Record<string, string>;
343
+ /**
344
+ * Resolve a single alias value against a Theme.
345
+ *
346
+ * Useful for resolving individual values without processing the entire theme.
347
+ *
348
+ * @param value - The value to resolve (may be "$tokenName" or a concrete value)
349
+ * @param theme - The theme to resolve against
350
+ * @returns The resolved concrete value
351
+ */
352
+ declare function resolveTokenAlias(value: string, theme: Theme): string;
353
+ //#endregion
354
+ //#region packages/theme/src/css.d.ts
355
+ /**
356
+ * Convert a Theme to CSS custom properties.
357
+ *
358
+ * Token names are kebab-cased with a `--` prefix:
359
+ * - `bg` → `--bg`
360
+ * - `surfacebg` → `--surfacebg`
361
+ * - `disabledfg` → `--disabledfg`
362
+ * - Palette entries: `--color0` through `--color15`
363
+ *
364
+ * @param theme - The theme to convert
365
+ * @returns A record mapping CSS custom property names to color values
366
+ *
367
+ * @example
368
+ * ```typescript
369
+ * const vars = themeToCSSVars(myTheme)
370
+ * // { "--bg": "#1E1E2E", "--fg": "#CDD6F4", "--primary": "#F9E2AF", ... }
371
+ *
372
+ * // Apply to an element:
373
+ * Object.assign(element.style, vars)
374
+ * ```
375
+ */
376
+ declare function themeToCSSVars(theme: Theme): Record<string, string>;
377
+ //#endregion
378
+ //#region packages/theme/src/auto-generate.d.ts
379
+ /**
380
+ * Generate a complete Theme from a single primary color.
381
+ *
382
+ * Derives a full ColorPalette using HSL color manipulation:
383
+ * - Background/foreground from lightness inversion
384
+ * - Complementary and analogous accent colors from hue rotation
385
+ * - Surface ramp from background blending
386
+ * - Status colors (error, warning, success, info) from standard hue positions
387
+ *
388
+ * @param primaryColor - A hex color string (e.g. "#5E81AC")
389
+ * @param mode - "dark" or "light" theme mode
390
+ * @returns A complete Theme with all 33 semantic tokens
391
+ *
392
+ * @example
393
+ * ```typescript
394
+ * const theme = autoGenerateTheme("#5E81AC", "dark")
395
+ * // Generates a full dark theme with blue as the primary accent
396
+ *
397
+ * const light = autoGenerateTheme("#E06C75", "light")
398
+ * // Generates a full light theme with red/rose as the primary accent
399
+ * ```
400
+ */
401
+ declare function autoGenerateTheme(primaryColor: string, mode: "dark" | "light"): Theme;
402
+ //#endregion
403
+ //#region packages/theme/src/import/types.d.ts
404
+ /**
405
+ * Base16 scheme type — the 16-color format used by hundreds of community themes.
406
+ *
407
+ * @see https://github.com/chriskempson/base16
408
+ */
409
+ /** A parsed Base16 color scheme. All hex values are WITHOUT `#` prefix. */
410
+ interface Base16Scheme {
411
+ scheme: string;
412
+ author: string;
413
+ base00: string;
414
+ base01: string;
415
+ base02: string;
416
+ base03: string;
417
+ base04: string;
418
+ base05: string;
419
+ base06: string;
420
+ base07: string;
421
+ base08: string;
422
+ base09: string;
423
+ base0A: string;
424
+ base0B: string;
425
+ base0C: string;
426
+ base0D: string;
427
+ base0E: string;
428
+ base0F: string;
429
+ }
430
+ //#endregion
431
+ //#region packages/theme/src/import/base16.d.ts
432
+ /**
433
+ * Import a Base16 YAML (or JSON) scheme into a ColorPalette.
434
+ *
435
+ * Mapping:
436
+ * base00 → background, base01 → brightBlack, base02 → selectionBackground,
437
+ * base03 → white (muted fg), base05 → foreground/brightWhite,
438
+ * base08 → red, base09 → brightRed, base0A → yellow,
439
+ * base0B → green, base0C → cyan, base0D → blue, base0E → magenta,
440
+ * base0F → brightMagenta.
441
+ *
442
+ * Bright color variants are derived by brightening normals.
443
+ * `dark` is inferred from base00 luminance.
444
+ */
445
+ declare function importBase16(yamlOrJson: string): ColorPalette;
446
+ //#endregion
447
+ //#region packages/theme/src/export/base16.d.ts
448
+ /**
449
+ * Export a ColorPalette to Base16 YAML format.
450
+ *
451
+ * Mapping:
452
+ * background → base00, brightBlack → base01, selectionBackground → base02,
453
+ * white → base03, (interpolated) → base04, foreground → base05,
454
+ * (interpolated) → base06, (interpolated) → base07,
455
+ * red → base08, brightRed → base09, yellow → base0A, green → base0B,
456
+ * cyan → base0C, blue → base0D, magenta → base0E, brightMagenta → base0F.
457
+ */
458
+ declare function exportBase16(palette: ColorPalette): string;
459
+ //#endregion
460
+ //#region packages/theme/src/detect.d.ts
461
+ interface DetectThemeOptions {
462
+ /** Fallback ColorPalette when detection fails or returns partial data.
463
+ * Detected colors override matching fallback fields. */
464
+ fallback?: ColorPalette;
465
+ /** Timeout per OSC query in ms (default 150). */
466
+ timeoutMs?: number;
467
+ /** Terminal capabilities (from detectTerminalCaps). When provided:
468
+ * - colorLevel "none"/"basic" skips OSC detection and returns ANSI 16 theme
469
+ * - darkBackground informs fallback selection when detection fails */
470
+ caps?: {
471
+ colorLevel?: string;
472
+ darkBackground?: boolean;
473
+ };
474
+ }
475
+ /**
476
+ * Detect the terminal's color palette and derive a Theme.
477
+ *
478
+ * Enhanced version that uses Nord (dark) or Catppuccin Latte (light)
479
+ * as fallback palettes for richer defaults than the base @silvery/ansi version.
480
+ */
481
+ declare function detectTheme(opts?: DetectThemeOptions): Promise<Theme>;
482
+ //#endregion
483
+ //#region packages/theme/src/palettes/catppuccin.d.ts
484
+ /** Catppuccin Mocha — the classic dark variant. */
485
+ declare const catppuccinMocha: ColorPalette;
486
+ /** Catppuccin Frappe — muted dark variant. */
487
+ declare const catppuccinFrappe: ColorPalette;
488
+ /** Catppuccin Macchiato — warm dark variant. */
489
+ declare const catppuccinMacchiato: ColorPalette;
490
+ /** Catppuccin Latte — the light variant. */
491
+ declare const catppuccinLatte: ColorPalette;
492
+ //#endregion
493
+ //#region packages/theme/src/palettes/nord.d.ts
494
+ /** Nord — the classic dark arctic theme. */
495
+ declare const nord: ColorPalette;
496
+ //#endregion
497
+ //#region packages/theme/src/palettes/dracula.d.ts
498
+ /** Dracula — vibrant dark theme. */
499
+ declare const dracula: ColorPalette;
500
+ //#endregion
501
+ //#region packages/theme/src/palettes/solarized.d.ts
502
+ /** Solarized Dark — Ethan Schoonover's classic dark variant. */
503
+ declare const solarizedDark: ColorPalette;
504
+ /** Solarized Light — Ethan Schoonover's classic light variant. */
505
+ declare const solarizedLight: ColorPalette;
506
+ //#endregion
507
+ //#region packages/theme/src/palettes/tokyo-night.d.ts
508
+ /** Tokyo Night — the default dark variant. */
509
+ declare const tokyoNight: ColorPalette;
510
+ /** Tokyo Night Storm — slightly lighter background. */
511
+ declare const tokyoNightStorm: ColorPalette;
512
+ /** Tokyo Night Day — the light variant. */
513
+ declare const tokyoNightDay: ColorPalette;
514
+ //#endregion
515
+ //#region packages/theme/src/palettes/one-dark.d.ts
516
+ /** One Dark — the classic Atom editor theme. */
517
+ declare const oneDark: ColorPalette;
518
+ //#endregion
519
+ //#region packages/theme/src/palettes/gruvbox.d.ts
520
+ /** Gruvbox Dark — warm retro dark theme. */
521
+ declare const gruvboxDark: ColorPalette;
522
+ /** Gruvbox Light — warm retro light theme. */
523
+ declare const gruvboxLight: ColorPalette;
524
+ //#endregion
525
+ //#region packages/theme/src/palettes/rose-pine.d.ts
526
+ /** Rosé Pine — the main dark variant. */
527
+ declare const rosePine: ColorPalette;
528
+ /** Rosé Pine Moon — slightly lighter dark variant. */
529
+ declare const rosePineMoon: ColorPalette;
530
+ /** Rosé Pine Dawn — the light variant. */
531
+ declare const rosePineDawn: ColorPalette;
532
+ //#endregion
533
+ //#region packages/theme/src/palettes/kanagawa.d.ts
534
+ /** Kanagawa Wave — the default dark variant, inspired by "The Great Wave off Kanagawa". */
535
+ declare const kanagawaWave: ColorPalette;
536
+ /** Kanagawa Dragon — a muted, earthy dark variant. */
537
+ declare const kanagawaDragon: ColorPalette;
538
+ /** Kanagawa Lotus — the light variant, inspired by lotus flowers. */
539
+ declare const kanagawaLotus: ColorPalette;
540
+ //#endregion
541
+ //#region packages/theme/src/palettes/everforest.d.ts
542
+ /** Everforest Dark — warm green-based dark theme (medium background). */
543
+ declare const everforestDark: ColorPalette;
544
+ /** Everforest Light — warm green-based light theme (medium background). */
545
+ declare const everforestLight: ColorPalette;
546
+ //#endregion
547
+ //#region packages/theme/src/palettes/monokai.d.ts
548
+ /** Monokai Classic — the original Sublime Text Monokai colors. */
549
+ declare const monokai: ColorPalette;
550
+ /** Monokai Pro — the modern, refined Monokai with balanced colors. */
551
+ declare const monokaiPro: ColorPalette;
552
+ //#endregion
553
+ //#region packages/theme/src/palettes/snazzy.d.ts
554
+ /** Snazzy — clean dark theme by Sindre Sorhus. */
555
+ declare const snazzy: ColorPalette;
556
+ //#endregion
557
+ //#region packages/theme/src/palettes/material.d.ts
558
+ /** Material Darker — the deep dark Material variant. */
559
+ declare const materialDark: ColorPalette;
560
+ /** Material Lighter — the light Material variant. */
561
+ declare const materialLight: ColorPalette;
562
+ //#endregion
563
+ //#region packages/theme/src/palettes/palenight.d.ts
564
+ /** Palenight — the soft, purple-tinted Material dark variant. */
565
+ declare const palenight: ColorPalette;
566
+ //#endregion
567
+ //#region packages/theme/src/palettes/ayu.d.ts
568
+ /** Ayu Dark — deep dark variant with warm accents. */
569
+ declare const ayuDark: ColorPalette;
570
+ /** Ayu Mirage — balanced dark variant with softer contrast. */
571
+ declare const ayuMirage: ColorPalette;
572
+ /** Ayu Light — clean light variant. */
573
+ declare const ayuLight: ColorPalette;
574
+ //#endregion
575
+ //#region packages/theme/src/palettes/nightfox.d.ts
576
+ /** Nightfox — dark blue-toned variant. */
577
+ declare const nightfox: ColorPalette;
578
+ /** Dawnfox — warm light variant inspired by Rose Pine Dawn. */
579
+ declare const dawnfox: ColorPalette;
580
+ //#endregion
581
+ //#region packages/theme/src/palettes/horizon.d.ts
582
+ /** Horizon — warm dark variant with vivid accents. */
583
+ declare const horizon: ColorPalette;
584
+ //#endregion
585
+ //#region packages/theme/src/palettes/moonfly.d.ts
586
+ /** Moonfly — dark charcoal theme. */
587
+ declare const moonfly: ColorPalette;
588
+ //#endregion
589
+ //#region packages/theme/src/palettes/nightfly.d.ts
590
+ /** Nightfly — midnight-blue dark theme. */
591
+ declare const nightfly: ColorPalette;
592
+ //#endregion
593
+ //#region packages/theme/src/palettes/oxocarbon.d.ts
594
+ /** Oxocarbon Dark — IBM Carbon-inspired dark variant. */
595
+ declare const oxocarbonDark: ColorPalette;
596
+ /** Oxocarbon Light — IBM Carbon-inspired light variant. */
597
+ declare const oxocarbonLight: ColorPalette;
598
+ //#endregion
599
+ //#region packages/theme/src/palettes/sonokai.d.ts
600
+ /** Sonokai — vivid dark theme with Monokai-inspired accents. */
601
+ declare const sonokai: ColorPalette;
602
+ //#endregion
603
+ //#region packages/theme/src/palettes/edge.d.ts
604
+ /** Edge Dark — clean dark variant with balanced accents. */
605
+ declare const edgeDark: ColorPalette;
606
+ /** Edge Light — clean, readable light variant. */
607
+ declare const edgeLight: ColorPalette;
608
+ //#endregion
609
+ //#region packages/theme/src/palettes/modus.d.ts
610
+ /** Modus Vivendi — elegant dark theme with maximum legibility. */
611
+ declare const modusVivendi: ColorPalette;
612
+ /** Modus Operandi — elegant light theme with maximum legibility. */
613
+ declare const modusOperandi: ColorPalette;
614
+ //#endregion
615
+ //#region packages/theme/src/palettes/index.d.ts
616
+ /** Dark ANSI 16 theme — works on any terminal. Primary = yellow. */
617
+ declare const ansi16DarkTheme: Theme;
618
+ /** Light ANSI 16 theme — works on any terminal. Primary = blue. */
619
+ declare const ansi16LightTheme: Theme;
620
+ /** Dark truecolor theme — derived from Nord. */
621
+ declare const defaultDarkTheme: Theme;
622
+ /** Light truecolor theme — derived from Catppuccin Latte. */
623
+ declare const defaultLightTheme: Theme;
624
+ /** All built-in ColorPalette definitions (70+ palettes). */
625
+ declare const builtinPalettes: Record<string, ColorPalette>;
626
+ /** All built-in themes, indexed by name (includes backward-compat aliases). */
627
+ declare const builtinThemes: Record<string, Theme>;
628
+ /** Resolve a theme by name. Defaults to dark-ansi16. */
629
+ declare function getThemeByName(name?: string): Theme;
630
+ /** Resolve a palette by name. Returns undefined if not found. */
631
+ declare function getPaletteByName(name: string): ColorPalette | undefined;
632
+ //#endregion
633
+ export { detectTheme as $, everforestDark as A, HueName as At, oneDark as B, ayuMirage as C, ThemeContext as Ct, snazzy as D, AnsiPrimary as Dt, materialLight as E, useTheme as Et, rosePine as F, defaultCaps as Ft, solarizedLight as G, tokyoNightDay as H, rosePineDawn as I, detectTerminalCaps as It, catppuccinFrappe as J, dracula as K, rosePineMoon as L, kanagawaDragon as M, AnsiColorName as Mt, kanagawaLotus as N, ColorLevel as Nt, monokai as O, COLOR_PALETTE_FIELDS as Ot, kanagawaWave as P, TerminalCaps as Pt, DetectThemeOptions as Q, gruvboxDark as R, ayuLight as S, generateTheme as St, materialDark as T, ThemeProviderProps as Tt, tokyoNightStorm as U, tokyoNight as V, solarizedDark as W, catppuccinMacchiato as X, catppuccinLatte as Y, catppuccinMocha as Z, moonfly as _, fromColors as _t, defaultDarkTheme as a, resolveAliases as at, nightfox as b, presetTheme as bt, getThemeByName as c, ThemeValidationResult as ct, edgeDark as d, validateColorPalette as dt, exportBase16 as et, edgeLight as f, getActiveTheme as ft, nightfly as g, fromBase16 as gt, oxocarbonLight as h, setActiveTheme as ht, builtinThemes as i, themeToCSSVars as it, everforestLight as j, Theme as jt, monokaiPro as k, ColorPalette as kt, modusOperandi as l, validateTheme as lt, oxocarbonDark as m, pushContextTheme as mt, ansi16LightTheme as n, Base16Scheme as nt, defaultLightTheme as o, resolveTokenAlias as ot, sonokai as p, popContextTheme as pt, nord as q, builtinPalettes as r, autoGenerateTheme as rt, getPaletteByName as s, THEME_TOKEN_KEYS as st, ansi16DarkTheme as t, importBase16 as tt, modusVivendi as u, ValidationResult as ut, horizon as v, fromPreset as vt, palenight as w, ThemeProvider as wt, ayuDark as x, quickTheme as xt, dawnfox as y, createTheme as yt, gruvboxLight as z };
634
+ //# sourceMappingURL=index-DCVL3jHo.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DCVL3jHo.d.mts","names":[],"sources":["../packages/ansi/src/detection.ts","../packages/ansi/src/types.ts","../packages/ansi/src/theme/types.ts","../packages/theme/src/ThemeContext.tsx","../packages/theme/src/generate.ts","../packages/theme/src/builder.ts","../packages/theme/src/generators.ts","../packages/theme/src/state.ts","../packages/theme/src/validate.ts","../packages/theme/src/validate-theme.ts","../packages/theme/src/alias.ts","../packages/theme/src/css.ts","../packages/theme/src/auto-generate.ts","../packages/theme/src/import/types.ts","../packages/theme/src/import/base16.ts","../packages/theme/src/export/base16.ts","../packages/theme/src/detect.ts","../packages/theme/src/palettes/catppuccin.ts","../packages/theme/src/palettes/nord.ts","../packages/theme/src/palettes/dracula.ts","../packages/theme/src/palettes/solarized.ts","../packages/theme/src/palettes/tokyo-night.ts","../packages/theme/src/palettes/one-dark.ts","../packages/theme/src/palettes/gruvbox.ts","../packages/theme/src/palettes/rose-pine.ts","../packages/theme/src/palettes/kanagawa.ts","../packages/theme/src/palettes/everforest.ts","../packages/theme/src/palettes/monokai.ts","../packages/theme/src/palettes/snazzy.ts","../packages/theme/src/palettes/material.ts","../packages/theme/src/palettes/palenight.ts","../packages/theme/src/palettes/ayu.ts","../packages/theme/src/palettes/nightfox.ts","../packages/theme/src/palettes/horizon.ts","../packages/theme/src/palettes/moonfly.ts","../packages/theme/src/palettes/nightfly.ts","../packages/theme/src/palettes/oxocarbon.ts","../packages/theme/src/palettes/sonokai.ts","../packages/theme/src/palettes/edge.ts","../packages/theme/src/palettes/modus.ts","../packages/theme/src/palettes/index.ts"],"mappings":";;;UAkQiB,YAAA;ECvOQ;EDyOvB,O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