@luxalgo/vela-ui 0.2.0 → 0.3.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 (106) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/badge.js +1 -1
  3. package/dist/bar-chart.d.ts +1 -1
  4. package/dist/bar-chart.js +1 -1
  5. package/dist/button.d.ts +1 -1
  6. package/dist/button.js +4 -4
  7. package/dist/callout-bubble.d.ts +1 -1
  8. package/dist/callout-bubble.js +4 -4
  9. package/dist/card.d.ts +52 -0
  10. package/dist/card.js +179 -0
  11. package/dist/checkbox.js +4 -4
  12. package/dist/{chunk-WGULXRWD.js → chunk-B2EZB5ZG.js} +3 -3
  13. package/dist/{chunk-G7IQLY3A.js → chunk-C3PXY2SW.js} +5 -0
  14. package/dist/{chunk-CC3DDNFC.js → chunk-DXDCKZ2M.js} +4 -4
  15. package/dist/{chunk-WBGSYCV2.js → chunk-IOOYDSSK.js} +3 -3
  16. package/dist/{chunk-B5ZSRUDQ.js → chunk-KKS6NEGI.js} +2 -2
  17. package/dist/{chunk-7VMN7NKJ.js → chunk-OJ2SEMN6.js} +3 -3
  18. package/dist/{chunk-MJ4RUGX7.js → chunk-OQXFQMZM.js} +2 -2
  19. package/dist/{chunk-V2Q4MRMS.js → chunk-TBXUF5YX.js} +12 -0
  20. package/dist/{chunk-WXH3EFV5.js → chunk-UEO6W37Z.js} +3 -3
  21. package/dist/{chunk-Z5PINFQO.js → chunk-WWHNUKSZ.js} +4 -4
  22. package/dist/collapsible.d.ts +1 -1
  23. package/dist/collapsible.js +3 -3
  24. package/dist/color-picker.js +4 -4
  25. package/dist/context-menu.js +4 -4
  26. package/dist/data-table.d.ts +1 -1
  27. package/dist/data-table.js +1 -1
  28. package/dist/date-picker.d.ts +1 -1
  29. package/dist/date-picker.js +2 -2
  30. package/dist/dialog.d.ts +9 -1
  31. package/dist/dialog.js +14 -4
  32. package/dist/donut.d.ts +1 -1
  33. package/dist/donut.js +1 -1
  34. package/dist/drawer.d.ts +1 -1
  35. package/dist/drawer.js +1 -1
  36. package/dist/dropdown-menu.d.ts +1 -1
  37. package/dist/dropdown-menu.js +4 -4
  38. package/dist/empty.d.ts +1 -1
  39. package/dist/empty.js +2 -2
  40. package/dist/field.js +12 -12
  41. package/dist/glyph-select.js +5 -5
  42. package/dist/hover-card.d.ts +1 -1
  43. package/dist/hover-card.js +3 -3
  44. package/dist/icons.js +1 -1
  45. package/dist/index.d.ts +3 -1
  46. package/dist/index.js +3 -3
  47. package/dist/input-group.d.ts +1 -1
  48. package/dist/input-group.js +4 -4
  49. package/dist/input.js +2 -2
  50. package/dist/item.d.ts +1 -1
  51. package/dist/item.js +2 -2
  52. package/dist/kbd.d.ts +1 -1
  53. package/dist/kbd.js +2 -2
  54. package/dist/line-chart.d.ts +1 -1
  55. package/dist/line-chart.js +1 -1
  56. package/dist/manifest.json +618 -1
  57. package/dist/month-grid.js +1 -1
  58. package/dist/number-input.d.ts +1 -1
  59. package/dist/number-input.js +4 -4
  60. package/dist/popover.js +3 -3
  61. package/dist/scatter-chart.d.ts +1 -1
  62. package/dist/scatter-chart.js +1 -1
  63. package/dist/select.js +6 -6
  64. package/dist/slider.d.ts +1 -1
  65. package/dist/slider.js +1 -1
  66. package/dist/sort-button.js +3 -3
  67. package/dist/sparkline.d.ts +1 -1
  68. package/dist/sparkline.js +1 -1
  69. package/dist/stat.d.ts +1 -1
  70. package/dist/stat.js +1 -1
  71. package/dist/switch.d.ts +1 -1
  72. package/dist/switch.js +2 -2
  73. package/dist/tabs.d.ts +1 -1
  74. package/dist/tabs.js +3 -3
  75. package/dist/text-area.d.ts +1 -1
  76. package/dist/text-area.js +2 -2
  77. package/dist/theme-Ct-q58xz.d.ts +341 -0
  78. package/dist/theme.d.ts +42 -192
  79. package/dist/theme.js +1 -1
  80. package/dist/theme.schema.json +292 -1
  81. package/dist/toast.d.ts +49 -0
  82. package/dist/toast.js +463 -0
  83. package/dist/toggle-group.d.ts +1 -1
  84. package/dist/toggle-group.js +3 -3
  85. package/dist/tooltip.js +1 -1
  86. package/dist/treemap.d.ts +80 -0
  87. package/dist/treemap.js +470 -0
  88. package/llms.txt +5 -2
  89. package/package.json +1 -1
  90. package/registry/button.ts +8 -0
  91. package/registry/card.ts +379 -0
  92. package/registry/dialog.ts +16 -0
  93. package/registry/toast.ts +965 -0
  94. package/registry/treemap.ts +847 -0
  95. package/skills/using-vela-ui-components/SKILL.md +4 -2
  96. package/src/components/button.ts +8 -0
  97. package/src/components/card.ts +379 -0
  98. package/src/components/dialog.ts +16 -0
  99. package/src/components/toast.ts +965 -0
  100. package/src/components/treemap.ts +847 -0
  101. package/src/lib/component-index.ts +12 -0
  102. package/src/lib/icons.ts +7 -0
  103. package/src/lib/theme.ts +6 -0
  104. package/dist/{chunk-U3EH42YY.js → chunk-5BJV5FY5.js} +1 -1
  105. package/dist/{chunk-E2FE6V2N.js → chunk-ALAHGSLC.js} +1 -1
  106. package/dist/{chunk-C3ICYMI3.js → chunk-FYVQO5TN.js} +1 -1
package/dist/theme.d.ts CHANGED
@@ -1,199 +1,49 @@
1
- import { badgeDef } from './badge.js';
2
- import { barChartDef } from './bar-chart.js';
3
- import { buttonDef } from './button.js';
4
- import { calloutBubbleDef } from './callout-bubble.js';
5
- import { colorPickerDef } from './color-picker.js';
6
- import { dataTableDef } from './data-table.js';
7
- import { datePickerDef } from './date-picker.js';
8
- import { dialogDef } from './dialog.js';
9
- import { donutDef } from './donut.js';
10
- import { drawerDef } from './drawer.js';
11
- import { emptyDef } from './empty.js';
12
- import { fieldDef } from './field.js';
13
- import { glyphSelectDef } from './glyph-select.js';
14
- import { hoverCardDef } from './hover-card.js';
15
- import { kbdDef } from './kbd.js';
16
- import { lineChartDef } from './line-chart.js';
17
- import { dropdownMenuDef } from './dropdown-menu.js';
18
- import { numberInputDef } from './number-input.js';
19
- import { popoverDef } from './popover.js';
20
- import { scatterChartDef } from './scatter-chart.js';
21
- import { selectDef } from './select.js';
22
- import { sparklineDef } from './sparkline.js';
23
- import { statDef } from './stat.js';
24
- import { checkboxDef } from './checkbox.js';
25
- import { collapsibleDef } from './collapsible.js';
26
- import { tabsDef } from './tabs.js';
27
- import { textAreaDef } from './text-area.js';
28
- import { inputDef } from './input.js';
29
- import { inputGroupDef } from './input-group.js';
30
- import { itemDef } from './item.js';
31
- import { monthGridDef } from './month-grid.js';
32
- import { sliderDef } from './slider.js';
33
- import { sortButtonDef } from './sort-button.js';
34
- import { switchDef } from './switch.js';
35
- import { toggleGroupDef } from './toggle-group.js';
36
- import { tooltipDef } from './tooltip.js';
37
- import { C as ComponentDef } from './define-D5u3F5Dj.js';
38
- import { ChartTheme } from './tokens.js';
1
+ import './badge.js';
2
+ import './bar-chart.js';
3
+ import './button.js';
4
+ import './callout-bubble.js';
5
+ import './card.js';
6
+ import './color-picker.js';
7
+ import './data-table.js';
8
+ import './date-picker.js';
9
+ import './dialog.js';
10
+ import './donut.js';
11
+ import './drawer.js';
12
+ import './empty.js';
13
+ import './field.js';
14
+ import './glyph-select.js';
15
+ import './hover-card.js';
16
+ import './kbd.js';
17
+ import './line-chart.js';
18
+ import './dropdown-menu.js';
19
+ import './number-input.js';
20
+ import './popover.js';
21
+ import './scatter-chart.js';
22
+ import './select.js';
23
+ import './sparkline.js';
24
+ import './stat.js';
25
+ import './checkbox.js';
26
+ import './collapsible.js';
27
+ import './tabs.js';
28
+ import './text-area.js';
29
+ import './input.js';
30
+ import './input-group.js';
31
+ import './item.js';
32
+ import './month-grid.js';
33
+ import './slider.js';
34
+ import './sort-button.js';
35
+ import './switch.js';
36
+ export { C as ComponentDefs, a as ComponentSettings, b as CreateThemeOptions, D as DARK_CHART, L as LIGHT_CHART, T as TOKEN_NAMES, c as ThemeInput, d as ThemeSettings, e as ThemedChart, f as TokenName, U as UiTheme, y as applyPlotOverlayTokens, g as applyTheme, z as applyThemeTokens, h as checkTheme, i as createTheme, A as ensureUIHost, B as floatingLayerHost, F as themeCss } from './theme-Ct-q58xz.js';
37
+ import './toggle-group.js';
38
+ import './tooltip.js';
39
+ import './treemap.js';
40
+ import './define-D5u3F5Dj.js';
41
+ import './tokens.js';
39
42
  import './variants-B4stUBnY.js';
40
43
  import './t.js';
41
44
  import './placement.js';
42
- import './i18n.js';
43
45
  import './h-Bl37qUis.js';
46
+ import './i18n.js';
44
47
  import '@zag-js/dialog';
45
48
  import '@zag-js/menu';
46
49
  import '@zag-js/tooltip';
47
-
48
- /** The built-in dark chart theme. */
49
- declare const DARK_CHART: ChartTheme;
50
- /** The built-in light chart theme. Candle hues are shared across themes: switching themes
51
- * recolors surfaces and text, never the series. */
52
- declare const LIGHT_CHART: ChartTheme;
53
- /** Every token, by name without the `--vela-` prefix. A test checks the list against what
54
- * `createTheme` writes. */
55
- declare const TOKEN_NAMES: readonly ["space-1", "space-2", "space-3", "space-4", "radius-sm", "radius-md", "radius-lg", "z-tooltip", "z-menu", "z-dialog", "z-popover", "ease", "dur-fast", "dur-med", "font-size-sm", "font-size-md", "font-size-lg", "scroll-size", "font", "bg", "fg", "fg-muted", "fg-faint", "fg-bright", "surface", "surface-elev", "surface-overlay", "surface-sunken", "border", "border-strong", "border-soft", "border-faint", "hover", "active", "hover-strong", "focus", "focus-soft", "separator-hover-band", "separator-hover-line", "scroll", "accent", "accent-bright", "highlight", "selected-bg", "selected-fg", "fg-on-fill", "up", "down", "profit", "loss", "danger", "shadow", "shadow-dialog", "backdrop"];
56
- type TokenName = (typeof TOKEN_NAMES)[number];
57
- /** The components a theme can set, by name: each one's declaration. A package with
58
- * components of its own adds them here by declaration merging. */
59
- interface ComponentDefs {
60
- badge: typeof badgeDef;
61
- 'bar-chart': typeof barChartDef;
62
- button: typeof buttonDef;
63
- 'callout-bubble': typeof calloutBubbleDef;
64
- checkbox: typeof checkboxDef;
65
- collapsible: typeof collapsibleDef;
66
- 'color-picker': typeof colorPickerDef;
67
- 'data-table': typeof dataTableDef;
68
- 'date-picker': typeof datePickerDef;
69
- dialog: typeof dialogDef;
70
- donut: typeof donutDef;
71
- drawer: typeof drawerDef;
72
- 'dropdown-menu': typeof dropdownMenuDef;
73
- empty: typeof emptyDef;
74
- field: typeof fieldDef;
75
- 'glyph-select': typeof glyphSelectDef;
76
- 'hover-card': typeof hoverCardDef;
77
- 'input-group': typeof inputGroupDef;
78
- input: typeof inputDef;
79
- item: typeof itemDef;
80
- kbd: typeof kbdDef;
81
- 'line-chart': typeof lineChartDef;
82
- 'month-grid': typeof monthGridDef;
83
- 'number-input': typeof numberInputDef;
84
- popover: typeof popoverDef;
85
- 'scatter-chart': typeof scatterChartDef;
86
- select: typeof selectDef;
87
- slider: typeof sliderDef;
88
- 'sort-button': typeof sortButtonDef;
89
- sparkline: typeof sparklineDef;
90
- stat: typeof statDef;
91
- switch: typeof switchDef;
92
- tabs: typeof tabsDef;
93
- 'text-area': typeof textAreaDef;
94
- 'toggle-group': typeof toggleGroupDef;
95
- tooltip: typeof tooltipDef;
96
- }
97
- type SettingsOf<D> = D extends ComponentDef<string, string, infer S> ? S : never;
98
- type PartsOf<D> = D extends ComponentDef<string, infer P, string> ? P : never;
99
- /** Settings by component, then by setting (`{ button: { radius: '2px' } }`), each written
100
- * as `--vela-<component>-<setting>`. `css` restyles the component's parts completely: each
101
- * part's CSS, written with the `css` tag, applies to that part under the theme, after every
102
- * other layer of the kit. */
103
- type ComponentSettings = {
104
- [K in keyof ComponentDefs]?: {
105
- [S in SettingsOf<ComponentDefs[K]>]?: string;
106
- } & {
107
- css?: {
108
- [P in PartsOf<ComponentDefs[K]>]?: string;
109
- };
110
- };
111
- };
112
- interface CreateThemeOptions {
113
- /** Apply part CSS that was not written with the `css` tag (a theme loaded from data).
114
- * Off by default: CSS from someone else can restyle the page to mislead, and load
115
- * remote images that leak what the page shows. */
116
- allowCss?: boolean;
117
- }
118
- /** A theme's settings beyond the chart's colors. */
119
- interface ThemeSettings {
120
- /** The brand color; its readable ink derives from it. */
121
- accent?: string;
122
- /** Scales every radius token: `none`, `sm`, `md` (default), `lg`. */
123
- radius?: 'none' | 'sm' | 'md' | 'lg';
124
- font?: string;
125
- /** Any token, by name. */
126
- tokens?: Partial<Record<TokenName, string>>;
127
- components?: ComponentSettings;
128
- }
129
- /** The choices a theme is built from. Every field is optional: `createTheme()` is the dark theme. */
130
- interface ThemeInput extends ThemeSettings {
131
- /** The theme to start from: `dark` (default), `light`, or a chart theme's seven fields. */
132
- base?: 'dark' | 'light' | ChartTheme;
133
- /** A theme from colors alone: everything else derives from them, light or dark read
134
- * from the background. */
135
- colors?: {
136
- background?: string;
137
- text?: string;
138
- grid?: string;
139
- border?: string;
140
- up?: string;
141
- down?: string;
142
- accent?: string;
143
- };
144
- }
145
- /** A theme built by {@link createTheme}. */
146
- interface UiTheme {
147
- /** Derived from the values: equal themes share one rule. */
148
- readonly id: string;
149
- /** The chart's colors and font. */
150
- readonly chart: ChartTheme;
151
- /** Every token, by custom property (`--vela-accent`). */
152
- readonly tokens: Readonly<Record<string, string>>;
153
- /** Component settings, by component then setting. */
154
- readonly components: Readonly<Record<string, Readonly<Record<string, string>>>>;
155
- /** Part CSS, by component then part. */
156
- readonly css: Readonly<Record<string, Readonly<Record<string, string>>>>;
157
- /** Its settings beyond the chart's colors: with {@link chart}, they rebuild the theme. */
158
- readonly settings: Readonly<ThemeSettings>;
159
- }
160
- /** A chart theme with optional settings: its seven fields seed the UI theme and `ui`
161
- * adjusts it. Chrome that recolors its surface (an overlay following the plot's
162
- * background) keeps the settings. */
163
- type ThemedChart = ChartTheme & {
164
- readonly ui?: ThemeSettings;
165
- };
166
- /** What is wrong with a theme's input: unknown tokens, components, settings and parts, colors
167
- * the theme cannot derive from, text with too little contrast on its background, and part
168
- * CSS that is left out or reaches past the component's contract. `createTheme` warns about
169
- * each. */
170
- declare function checkTheme(input?: ThemeInput, options?: CreateThemeOptions): string[];
171
- /** Build a theme. Without overrides, `dark` and `light` give exactly the built-in tokens. */
172
- declare function createTheme(input?: ThemeInput, options?: CreateThemeOptions): UiTheme;
173
- /** The theme's rules: every token and component setting, by default on the hosts that carry
174
- * its id; and the part CSS, on those parts inside them, in the last layer. */
175
- declare function themeCss(theme: UiTheme, selector?: string): string;
176
- /** Theme a host and everything inside it. A chart theme's seven fields build the theme on
177
- * the way, keeping the choices of the UI theme it carries. */
178
- declare function applyTheme(host: HTMLElement, theme: UiTheme | ThemedChart): UiTheme;
179
- /** Theme a host from a chart theme's seven fields.
180
- * @deprecated Use {@link applyTheme}, which also takes a theme from {@link createTheme}. */
181
- declare function applyThemeTokens(el: HTMLElement, t: ThemedChart): void;
182
- /** Re-token a chart-overlay host (statusline, watermark, toast — chrome floating OVER
183
- * the plot) from the LIVE plot surface: a config edit can recolor the plot background
184
- * independently of the app theme (a white plot typed into settings on the dark theme),
185
- * and the overlay ink must stay readable either way. `config` is the renderer's
186
- * `getConfig()` snapshot; a missing/shapeless one falls back to the base app theme.
187
- * Floating menus and dropdowns do NOT use this — they mount on {@link floatingLayerHost}
188
- * so their surface follows the app theme alone. */
189
- declare function applyPlotOverlayTokens(host: HTMLElement, base: ThemedChart, config: unknown): void;
190
- /** Mount floating kit layers (menus, select lists) on the nearest `.vela-ui` so they
191
- * inherit the app-theme tokens. A plot-overlay host (the cell) retokens from
192
- * `layout.background`; chrome panels must not follow that. Falls back to `fallback`
193
- * (typically `document.body`) when no kit host is an ancestor. */
194
- declare function floatingLayerHost(from: HTMLElement, fallback?: HTMLElement): HTMLElement;
195
- /** Mark an element as a kit host (the `.vela-ui` class and the shared sheet), themed when
196
- * a theme is given. */
197
- declare function ensureUIHost(el: HTMLElement, theme?: UiTheme | ThemedChart): void;
198
-
199
- export { type ComponentDefs, type ComponentSettings, type CreateThemeOptions, DARK_CHART, LIGHT_CHART, TOKEN_NAMES, type ThemeInput, type ThemeSettings, type ThemedChart, type TokenName, type UiTheme, applyPlotOverlayTokens, applyTheme, applyThemeTokens, checkTheme, createTheme, ensureUIHost, floatingLayerHost, themeCss };
package/dist/theme.js CHANGED
@@ -1,4 +1,4 @@
1
- export { DARK_CHART, LIGHT_CHART, TOKEN_NAMES, applyPlotOverlayTokens, applyTheme, applyThemeTokens, checkTheme, createTheme, ensureUIHost, floatingLayerHost, themeCss } from './chunk-V2Q4MRMS.js';
1
+ export { DARK_CHART, LIGHT_CHART, TOKEN_NAMES, applyPlotOverlayTokens, applyTheme, applyThemeTokens, checkTheme, createTheme, ensureUIHost, floatingLayerHost, themeCss } from './chunk-TBXUF5YX.js';
2
2
  import './chunk-TAKSIV57.js';
3
3
  import './chunk-MMTMOV6R.js';
4
4
  import './chunk-VMCR3S2A.js';
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "title": "@luxalgo/vela-ui 0.2.0 theme",
3
+ "title": "@luxalgo/vela-ui 0.3.0 theme",
4
4
  "description": "The input of createTheme. Every field is optional: an empty theme is the dark theme.",
5
5
  "type": "object",
6
6
  "additionalProperties": false,
@@ -476,6 +476,91 @@
476
476
  }
477
477
  }
478
478
  },
479
+ "card": {
480
+ "type": "object",
481
+ "additionalProperties": false,
482
+ "properties": {
483
+ "radius": {
484
+ "type": "string",
485
+ "description": "--vela-card-radius, default var(--vela-radius-lg)"
486
+ },
487
+ "padding": {
488
+ "type": "string",
489
+ "description": "--vela-card-padding, default 16px"
490
+ },
491
+ "padding-sm": {
492
+ "type": "string",
493
+ "description": "--vela-card-padding-sm, default 10px 12px"
494
+ },
495
+ "gap": {
496
+ "type": "string",
497
+ "description": "--vela-card-gap, default 12px"
498
+ },
499
+ "gap-sm": {
500
+ "type": "string",
501
+ "description": "--vela-card-gap-sm, default 8px"
502
+ },
503
+ "background": {
504
+ "type": "string",
505
+ "description": "--vela-card-background, default var(--vela-surface)"
506
+ },
507
+ "border": {
508
+ "type": "string",
509
+ "description": "--vela-card-border, default var(--vela-border)"
510
+ },
511
+ "inset-background": {
512
+ "type": "string",
513
+ "description": "--vela-card-inset-background, default `color-mix(in srgb, ${t.fg.bright} 2.5%, ${t.surface})`"
514
+ },
515
+ "css": {
516
+ "type": "object",
517
+ "additionalProperties": false,
518
+ "description": "CSS by part, applied after every layer of the kit. From a file, it applies only when the host passes { allowCss: true }.",
519
+ "properties": {
520
+ "root": {
521
+ "type": "string",
522
+ "description": "[data-slot~=\"card\"]"
523
+ },
524
+ "header": {
525
+ "type": "string",
526
+ "description": "[data-slot~=\"card-header\"]"
527
+ },
528
+ "heading": {
529
+ "type": "string",
530
+ "description": "[data-slot~=\"card-heading\"]"
531
+ },
532
+ "eyebrow": {
533
+ "type": "string",
534
+ "description": "[data-slot~=\"card-eyebrow\"]"
535
+ },
536
+ "title": {
537
+ "type": "string",
538
+ "description": "[data-slot~=\"card-title\"]"
539
+ },
540
+ "trigger": {
541
+ "type": "string",
542
+ "description": "[data-slot~=\"card-trigger\"]"
543
+ },
544
+ "description": {
545
+ "type": "string",
546
+ "description": "[data-slot~=\"card-description\"]"
547
+ },
548
+ "action": {
549
+ "type": "string",
550
+ "description": "[data-slot~=\"card-action\"]"
551
+ },
552
+ "content": {
553
+ "type": "string",
554
+ "description": "[data-slot~=\"card-content\"]"
555
+ },
556
+ "footer": {
557
+ "type": "string",
558
+ "description": "[data-slot~=\"card-footer\"]"
559
+ }
560
+ }
561
+ }
562
+ }
563
+ },
479
564
  "checkbox": {
480
565
  "type": "object",
481
566
  "additionalProperties": false,
@@ -1878,6 +1963,103 @@
1878
1963
  }
1879
1964
  }
1880
1965
  },
1966
+ "toast": {
1967
+ "type": "object",
1968
+ "additionalProperties": false,
1969
+ "properties": {
1970
+ "width": {
1971
+ "type": "string",
1972
+ "description": "--vela-toast-width, default 356px"
1973
+ },
1974
+ "radius": {
1975
+ "type": "string",
1976
+ "description": "--vela-toast-radius, default var(--vela-radius-lg)"
1977
+ },
1978
+ "background": {
1979
+ "type": "string",
1980
+ "description": "--vela-toast-background, default var(--vela-surface-elev)"
1981
+ },
1982
+ "border": {
1983
+ "type": "string",
1984
+ "description": "--vela-toast-border, default var(--vela-border)"
1985
+ },
1986
+ "foreground": {
1987
+ "type": "string",
1988
+ "description": "--vela-toast-foreground, default var(--vela-fg-bright)"
1989
+ },
1990
+ "description-color": {
1991
+ "type": "string",
1992
+ "description": "--vela-toast-description-color, default var(--vela-fg-muted)"
1993
+ },
1994
+ "shadow": {
1995
+ "type": "string",
1996
+ "description": "--vela-toast-shadow, default var(--vela-shadow)"
1997
+ },
1998
+ "success": {
1999
+ "type": "string",
2000
+ "description": "--vela-toast-success, default var(--vela-profit)"
2001
+ },
2002
+ "info": {
2003
+ "type": "string",
2004
+ "description": "--vela-toast-info, default var(--vela-accent)"
2005
+ },
2006
+ "warning": {
2007
+ "type": "string",
2008
+ "description": "--vela-toast-warning, default var(--vela-highlight)"
2009
+ },
2010
+ "error": {
2011
+ "type": "string",
2012
+ "description": "--vela-toast-error, default var(--vela-danger)"
2013
+ },
2014
+ "css": {
2015
+ "type": "object",
2016
+ "additionalProperties": false,
2017
+ "description": "CSS by part, applied after every layer of the kit. From a file, it applies only when the host passes { allowCss: true }.",
2018
+ "properties": {
2019
+ "root": {
2020
+ "type": "string",
2021
+ "description": "[data-slot~=\"toast\"]"
2022
+ },
2023
+ "list": {
2024
+ "type": "string",
2025
+ "description": "[data-slot~=\"toast-list\"]"
2026
+ },
2027
+ "item": {
2028
+ "type": "string",
2029
+ "description": "[data-slot~=\"toast-item\"]"
2030
+ },
2031
+ "close": {
2032
+ "type": "string",
2033
+ "description": "[data-slot~=\"toast-close\"]"
2034
+ },
2035
+ "icon": {
2036
+ "type": "string",
2037
+ "description": "[data-slot~=\"toast-icon\"]"
2038
+ },
2039
+ "content": {
2040
+ "type": "string",
2041
+ "description": "[data-slot~=\"toast-content\"]"
2042
+ },
2043
+ "title": {
2044
+ "type": "string",
2045
+ "description": "[data-slot~=\"toast-title\"]"
2046
+ },
2047
+ "description": {
2048
+ "type": "string",
2049
+ "description": "[data-slot~=\"toast-description\"]"
2050
+ },
2051
+ "cancel": {
2052
+ "type": "string",
2053
+ "description": "[data-slot~=\"toast-cancel\"]"
2054
+ },
2055
+ "action": {
2056
+ "type": "string",
2057
+ "description": "[data-slot~=\"toast-action\"]"
2058
+ }
2059
+ }
2060
+ }
2061
+ }
2062
+ },
1881
2063
  "toggle-group": {
1882
2064
  "type": "object",
1883
2065
  "additionalProperties": false,
@@ -1943,6 +2125,115 @@
1943
2125
  }
1944
2126
  }
1945
2127
  }
2128
+ },
2129
+ "treemap": {
2130
+ "type": "object",
2131
+ "additionalProperties": false,
2132
+ "properties": {
2133
+ "radius": {
2134
+ "type": "string",
2135
+ "description": "--vela-treemap-radius, default var(--vela-radius-sm)"
2136
+ },
2137
+ "up": {
2138
+ "type": "string",
2139
+ "description": "--vela-treemap-up, default var(--vela-up)"
2140
+ },
2141
+ "down": {
2142
+ "type": "string",
2143
+ "description": "--vela-treemap-down, default var(--vela-down)"
2144
+ },
2145
+ "tile-bg": {
2146
+ "type": "string",
2147
+ "description": "--vela-treemap-tile-bg, default `color-mix(in srgb, ${t.fg.bright} 2.5%, ${t.surface})`"
2148
+ },
2149
+ "tint-min": {
2150
+ "type": "string",
2151
+ "description": "--vela-treemap-tint-min, default 3%"
2152
+ },
2153
+ "tint-max": {
2154
+ "type": "string",
2155
+ "description": "--vela-treemap-tint-max, default 25%"
2156
+ },
2157
+ "hover-z": {
2158
+ "type": "string",
2159
+ "description": "--vela-treemap-hover-z, default 1"
2160
+ },
2161
+ "tip-radius": {
2162
+ "type": "string",
2163
+ "description": "--vela-treemap-tip-radius, default var(--vela-radius-md)"
2164
+ },
2165
+ "tip-bg": {
2166
+ "type": "string",
2167
+ "description": "--vela-treemap-tip-bg, default var(--vela-surface-elev)"
2168
+ },
2169
+ "tip-shadow": {
2170
+ "type": "string",
2171
+ "description": "--vela-treemap-tip-shadow, default var(--vela-shadow)"
2172
+ },
2173
+ "tip-z": {
2174
+ "type": "string",
2175
+ "description": "--vela-treemap-tip-z, default 2"
2176
+ },
2177
+ "css": {
2178
+ "type": "object",
2179
+ "additionalProperties": false,
2180
+ "description": "CSS by part, applied after every layer of the kit. From a file, it applies only when the host passes { allowCss: true }.",
2181
+ "properties": {
2182
+ "root": {
2183
+ "type": "string",
2184
+ "description": "[data-slot~=\"treemap\"]"
2185
+ },
2186
+ "crumbs": {
2187
+ "type": "string",
2188
+ "description": "[data-slot~=\"treemap-crumbs\"]"
2189
+ },
2190
+ "crumb": {
2191
+ "type": "string",
2192
+ "description": "[data-slot~=\"treemap-crumb\"]"
2193
+ },
2194
+ "map": {
2195
+ "type": "string",
2196
+ "description": "[data-slot~=\"treemap-map\"]"
2197
+ },
2198
+ "group": {
2199
+ "type": "string",
2200
+ "description": "[data-slot~=\"treemap-group\"]"
2201
+ },
2202
+ "group-name": {
2203
+ "type": "string",
2204
+ "description": "[data-slot~=\"treemap-group-name\"]"
2205
+ },
2206
+ "group-value": {
2207
+ "type": "string",
2208
+ "description": "[data-slot~=\"treemap-group-value\"]"
2209
+ },
2210
+ "tile": {
2211
+ "type": "string",
2212
+ "description": "[data-slot~=\"treemap-tile\"]"
2213
+ },
2214
+ "tile-label": {
2215
+ "type": "string",
2216
+ "description": "[data-slot~=\"treemap-tile-label\"]"
2217
+ },
2218
+ "tile-value": {
2219
+ "type": "string",
2220
+ "description": "[data-slot~=\"treemap-tile-value\"]"
2221
+ },
2222
+ "legend": {
2223
+ "type": "string",
2224
+ "description": "[data-slot~=\"treemap-legend\"]"
2225
+ },
2226
+ "legend-bar": {
2227
+ "type": "string",
2228
+ "description": "[data-slot~=\"treemap-legend-bar\"]"
2229
+ },
2230
+ "tip": {
2231
+ "type": "string",
2232
+ "description": "[data-slot~=\"treemap-tip\"]"
2233
+ }
2234
+ }
2235
+ }
2236
+ }
1946
2237
  }
1947
2238
  }
1948
2239
  }
@@ -0,0 +1,49 @@
1
+ import './define-D5u3F5Dj.js';
2
+ export { E as ExternalToast, P as PromiseData, j as PromiseSource, S as SwipeDirection, k as ToastAction, l as ToastContent, m as ToastFunction, n as ToastId, o as ToastOffset, p as ToastPromise, q as ToastT, r as ToastType, s as ToasterHandle, t as ToasterPosition, u as ToasterProps, v as createToaster, w as toast, x as toastDef } from './theme-Ct-q58xz.js';
3
+ import './i18n.js';
4
+ import './t.js';
5
+ import './badge.js';
6
+ import './variants-B4stUBnY.js';
7
+ import './bar-chart.js';
8
+ import './button.js';
9
+ import './callout-bubble.js';
10
+ import './placement.js';
11
+ import './tokens.js';
12
+ import './popover.js';
13
+ import './card.js';
14
+ import './h-Bl37qUis.js';
15
+ import './color-picker.js';
16
+ import './data-table.js';
17
+ import './date-picker.js';
18
+ import './dialog.js';
19
+ import '@zag-js/dialog';
20
+ import './donut.js';
21
+ import './drawer.js';
22
+ import './empty.js';
23
+ import './field.js';
24
+ import './select.js';
25
+ import './glyph-select.js';
26
+ import './hover-card.js';
27
+ import './kbd.js';
28
+ import './line-chart.js';
29
+ import './dropdown-menu.js';
30
+ import '@zag-js/menu';
31
+ import './number-input.js';
32
+ import './scatter-chart.js';
33
+ import './sparkline.js';
34
+ import './stat.js';
35
+ import './checkbox.js';
36
+ import './collapsible.js';
37
+ import './tabs.js';
38
+ import './text-area.js';
39
+ import './input.js';
40
+ import './input-group.js';
41
+ import './item.js';
42
+ import './month-grid.js';
43
+ import './slider.js';
44
+ import './sort-button.js';
45
+ import './switch.js';
46
+ import './toggle-group.js';
47
+ import './tooltip.js';
48
+ import '@zag-js/tooltip';
49
+ import './treemap.js';