@luxalgo/vela-ui 0.3.0 → 0.4.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 (167) hide show
  1. package/CHANGELOG.md +153 -132
  2. package/LICENSE +201 -201
  3. package/NOTICE +28 -28
  4. package/README.md +86 -86
  5. package/cli/engine.mjs +282 -282
  6. package/cli/index.mjs +154 -154
  7. package/dist/callout-bubble.js +2 -2
  8. package/dist/checkbox.js +2 -2
  9. package/dist/{chunk-KKS6NEGI.js → chunk-BWSOMG3G.js} +1 -1
  10. package/dist/chunk-GUIYFQ27.js +30 -0
  11. package/dist/{chunk-B2EZB5ZG.js → chunk-KUWTI2PE.js} +2 -2
  12. package/dist/{chunk-WWHNUKSZ.js → chunk-QGWAN3EP.js} +2 -2
  13. package/dist/{chunk-TBXUF5YX.js → chunk-RH53NQGE.js} +18 -4
  14. package/dist/{chunk-IOOYDSSK.js → chunk-SKFAYTDK.js} +1 -1
  15. package/dist/{chunk-OQXFQMZM.js → chunk-TGJNHUYV.js} +2 -2
  16. package/dist/{chunk-UEO6W37Z.js → chunk-VC7SVSDK.js} +1 -1
  17. package/dist/{chunk-OJ2SEMN6.js → chunk-YT2BSP7O.js} +1 -1
  18. package/dist/collapsible.js +1 -1
  19. package/dist/color-picker.js +4 -4
  20. package/dist/context-menu.js +3 -3
  21. package/dist/dialog.js +3 -3
  22. package/dist/donut.d.ts +1 -1
  23. package/dist/drawer.js +1 -1
  24. package/dist/dropdown-menu.js +3 -3
  25. package/dist/field.js +8 -8
  26. package/dist/{stat.d.ts → figure.d.ts} +9 -9
  27. package/dist/figure.js +41 -0
  28. package/dist/glyph-select.js +3 -3
  29. package/dist/index.d.ts +2 -2
  30. package/dist/index.js +1 -1
  31. package/dist/manifest.json +74 -74
  32. package/dist/number-input.js +2 -2
  33. package/dist/popover.js +2 -2
  34. package/dist/select.d.ts +1 -1
  35. package/dist/select.js +4 -4
  36. package/dist/slider.js +1 -1
  37. package/dist/sort-button.js +1 -1
  38. package/dist/switch.js +1 -1
  39. package/dist/tabs.js +1 -1
  40. package/dist/{theme-Ct-q58xz.d.ts → theme-TefB8vtl.d.ts} +2 -2
  41. package/dist/theme.d.ts +2 -2
  42. package/dist/theme.js +1 -1
  43. package/dist/theme.schema.json +30 -30
  44. package/dist/toast.d.ts +2 -2
  45. package/dist/toast.js +1 -1
  46. package/dist/toggle-group.js +1 -1
  47. package/dist/tooltip.js +1 -1
  48. package/dist/zag.d.ts +11 -2
  49. package/dist/zag.js +1 -1
  50. package/docs/theming.md +217 -217
  51. package/docs/what-to-change.md +20 -20
  52. package/docs/writing-a-component.md +250 -250
  53. package/llms.txt +3 -3
  54. package/package.json +90 -90
  55. package/registry/badge.ts +119 -119
  56. package/registry/bar-chart.ts +215 -215
  57. package/registry/button.ts +387 -387
  58. package/registry/callout-bubble.ts +347 -347
  59. package/registry/card.ts +379 -379
  60. package/registry/checkbox.ts +234 -234
  61. package/registry/collapsible.ts +271 -271
  62. package/registry/color-picker.ts +582 -582
  63. package/registry/context-menu.ts +208 -208
  64. package/registry/data-table.ts +215 -215
  65. package/registry/date-picker.ts +483 -483
  66. package/registry/dialog.ts +551 -551
  67. package/registry/donut.ts +145 -145
  68. package/registry/drawer.ts +636 -636
  69. package/registry/dropdown-menu.ts +762 -762
  70. package/registry/empty.ts +91 -91
  71. package/registry/field.ts +584 -584
  72. package/registry/{stat.ts → figure.ts} +96 -96
  73. package/registry/glyph-select.ts +268 -268
  74. package/registry/hover-card.ts +222 -222
  75. package/registry/input-group.ts +229 -229
  76. package/registry/input.ts +181 -181
  77. package/registry/item.ts +376 -376
  78. package/registry/kbd.ts +64 -64
  79. package/registry/line-chart.ts +218 -218
  80. package/registry/month-grid.ts +328 -328
  81. package/registry/number-input.ts +443 -443
  82. package/registry/popover.ts +368 -368
  83. package/registry/scatter-chart.ts +221 -221
  84. package/registry/select.ts +620 -620
  85. package/registry/slider.ts +259 -259
  86. package/registry/sort-button.ts +189 -189
  87. package/registry/sparkline.ts +114 -114
  88. package/registry/switch.ts +205 -205
  89. package/registry/tabs.ts +426 -426
  90. package/registry/text-area.ts +186 -186
  91. package/registry/toast.ts +965 -965
  92. package/registry/toggle-group.ts +295 -295
  93. package/registry/tooltip.ts +156 -156
  94. package/registry/treemap.ts +847 -847
  95. package/skills/theming-vela-ui/SKILL.md +137 -137
  96. package/skills/using-vela-ui-components/SKILL.md +139 -139
  97. package/skills/writing-vela-ui-components/SKILL.md +163 -163
  98. package/src/components/badge.ts +119 -119
  99. package/src/components/bar-chart.ts +215 -215
  100. package/src/components/button.ts +387 -387
  101. package/src/components/callout-bubble.ts +347 -347
  102. package/src/components/card.ts +379 -379
  103. package/src/components/checkbox.ts +234 -234
  104. package/src/components/collapsible.ts +271 -271
  105. package/src/components/color-picker.ts +582 -582
  106. package/src/components/context-menu.ts +208 -208
  107. package/src/components/data-table.ts +215 -215
  108. package/src/components/date-picker.ts +483 -483
  109. package/src/components/dialog.ts +551 -551
  110. package/src/components/donut.ts +145 -145
  111. package/src/components/drawer.ts +636 -636
  112. package/src/components/dropdown-menu.ts +762 -762
  113. package/src/components/empty.ts +91 -91
  114. package/src/components/field.ts +584 -584
  115. package/src/components/{stat.ts → figure.ts} +96 -96
  116. package/src/components/glyph-select.ts +268 -268
  117. package/src/components/hover-card.ts +222 -222
  118. package/src/components/input-group.ts +229 -229
  119. package/src/components/input.ts +181 -181
  120. package/src/components/item.ts +376 -376
  121. package/src/components/kbd.ts +64 -64
  122. package/src/components/line-chart.ts +218 -218
  123. package/src/components/month-grid.ts +328 -328
  124. package/src/components/number-input.ts +443 -443
  125. package/src/components/popover.ts +368 -368
  126. package/src/components/scatter-chart.ts +221 -221
  127. package/src/components/select.ts +620 -620
  128. package/src/components/slider.ts +259 -259
  129. package/src/components/sort-button.ts +189 -189
  130. package/src/components/sparkline.ts +114 -114
  131. package/src/components/switch.ts +205 -205
  132. package/src/components/tabs.ts +426 -426
  133. package/src/components/text-area.ts +186 -186
  134. package/src/components/toast.ts +965 -965
  135. package/src/components/toggle-group.ts +295 -295
  136. package/src/components/tooltip.ts +156 -156
  137. package/src/components/treemap.ts +847 -847
  138. package/src/index.ts +24 -24
  139. package/src/lib/calendar.ts +117 -117
  140. package/src/lib/chart.ts +72 -72
  141. package/src/lib/color.ts +89 -89
  142. package/src/lib/component-index.ts +163 -163
  143. package/src/lib/css.ts +48 -48
  144. package/src/lib/define.ts +45 -45
  145. package/src/lib/dispose.ts +36 -36
  146. package/src/lib/h.ts +55 -55
  147. package/src/lib/headless.ts +16 -16
  148. package/src/lib/i18n.ts +30 -30
  149. package/src/lib/icons.ts +244 -244
  150. package/src/lib/kit-text.ts +26 -26
  151. package/src/lib/page.ts +24 -24
  152. package/src/lib/palette.ts +81 -81
  153. package/src/lib/placement.ts +188 -188
  154. package/src/lib/scope.ts +135 -135
  155. package/src/lib/styles.ts +53 -53
  156. package/src/lib/surface-events.ts +31 -31
  157. package/src/lib/surface-exit.ts +87 -87
  158. package/src/lib/t.ts +68 -68
  159. package/src/lib/theme.ts +684 -670
  160. package/src/lib/tokens.ts +110 -110
  161. package/src/lib/variants.ts +32 -32
  162. package/src/lib/zag.ts +61 -46
  163. package/stylelint/index.mjs +60 -60
  164. package/stylelint/lint.mjs +81 -81
  165. package/stylelint/plugin.mjs +115 -115
  166. package/dist/chunk-P4MTEMT7.js +0 -23
  167. package/dist/stat.js +0 -41
package/CHANGELOG.md CHANGED
@@ -1,132 +1,153 @@
1
- # Changelog
2
-
3
- All notable changes to `@luxalgo/vela-ui`, newest first. Vela's own changes, including how it
4
- uses the kit, are in [Vela's changelog](../../CHANGELOG.md).
5
-
6
- ## [0.3.0]
7
-
8
- ### Added
9
-
10
- - **Toasts.** `@luxalgo/vela-ui/toast` shows short notices that stack in a corner and leave on
11
- their own, with the same calls and options as shadcn's toast. `toast('Saved')` raises one
12
- from anywhere on the page, `toast.success`, `.info`, `.warning`, `.error` and `.loading` give
13
- it its kind's icon, and `toast.promise` follows a task from loading to its result. A toast
14
- takes a description, an action and a cancel button, its own icon and duration, and raising
15
- it again with the same `id` updates it in place; `toast.dismiss` takes one or all away.
16
- `createToaster` shows them, over the page or inside a host: the newest in front with the
17
- older ones folded behind it, spread out while hovered (or with Alt+T), and swiped away
18
- towards their edge. It takes the corner, the number shown, rich colors per kind, close
19
- buttons and the toasts' defaults, and a theme sets its width, colors and radius.
20
- - **A treemap.** `@luxalgo/vela-ui/treemap` lays weighted items out as tiles close to square,
21
- each tinted by its value on a diverging scale (a watchlist's moves of the day, sized equally
22
- or by market cap). Items with children form groups headed by their name and the median of
23
- their values, or the mean, the sum or a figure of your own. Tiles show their label and value
24
- as their size allows, a readout follows the pointer and the keyboard focus, the arrow keys
25
- move between tiles, and a click reports the tile with its groups. New values repaint the
26
- tiles in place, and a resize moves them. With `drill`, a group's header zooms into it and a
27
- breadcrumb, or Esc, leads back. An optional legend shows the scale, and `squarify` lays out
28
- rectangles of your own.
29
- - **A card.** `@luxalgo/vela-ui/card` holds one subject on a surface of its own: a header with
30
- an eyebrow over the title and a description under it, an action at its end, then the
31
- content and a footer past a line. `inset` is the sunken tile for figures inside another
32
- card, and `sm` is tighter. Its title is a heading, so screen readers move from card to card.
33
- With `onSelect` the whole card is clickable while a press on a button inside it stays the
34
- button's, and `selected` marks the current one. Its padding, radius, background and border
35
- are settings a theme can change.
36
-
37
- ### Fixed
38
-
39
- - **Key caps read on every button.** On the `default`, `up` and `down` buttons, key caps
40
- (`keys`, `keysEnd`) drew their label in the button's own fill color, so only an empty cap
41
- showed. Inside a button a key cap now takes the button's text color and draws only its
42
- outline, on every variant.
43
- - **A dialog's close button has a name.** Screen readers announced it as an unnamed button;
44
- it is now "Close", in the language of the dialog's new `i18n` option, else the kit build's
45
- translator. `setI18n` renames it when the language changes while the dialog is open.
46
-
47
- ## [0.2.0]
48
-
49
- ### Added
50
-
51
- - **A slider.** `@luxalgo/vela-ui/slider` holds a value on a track, dragged or moved with the
52
- arrow keys, Page Up/Down and Home/End. It reports every move, and once a drag ends it
53
- reports the settled value through `onValueCommit`, the moment for costly work such as a
54
- replay's seek.
55
- - **Collapsible sections.** `@luxalgo/vela-ui/collapsible` shows and hides its content from a
56
- header: a section header with a count (a panel's drawers) or a small group label (a list's
57
- groups). A button of the host's, such as a row's chevron, can toggle it instead.
58
- - **List rows.** `@luxalgo/vela-ui/item` is a row of a list (a watchlist, alerts, search
59
- results): media, a title over a description, figures, and buttons that can stay hidden
60
- until the row is hovered. A clickable row works with the keyboard and screen readers like
61
- a button, while the buttons inside it keep their own presses; a row with actions makes its
62
- text the button, as a button cannot hold other buttons. `createItemGroup` stacks rows, with
63
- a line between them on request; a labelled group is a `group` to screen readers, or the
64
- `role` you give it (`listbox` for option rows).
65
- - **Sort buttons for lists that are not tables.** `@luxalgo/vela-ui/sort-button` is a column
66
- header that steps through its sort directions on each press, shows the current one with an
67
- arrow, and says it to screen readers.
68
- - **A month grid.** `@luxalgo/vela-ui/month-grid` lays out a month of days with a figure each,
69
- tinted by its tone (a trading journal's P&L by day). Weeks start on the locale's first day,
70
- and the arrow keys walk the days.
71
- - **Two-line tabs.** A tab's `description` puts a second line under its label, such as a day
72
- strip's date under its weekday.
73
- - **Key caps and favorite stars in buttons.** A button's `keys` and `keysEnd` show key caps
74
- before or after its text (`↵ Open`). The `favorite` variant is a star that takes the
75
- favorites color while pressed. A toggle button can now flip itself (`defaultPressed`,
76
- `onPressedChange`) and show another icon while pressed (`iconPressed`).
77
- - **A callout panel without a bubble.** `calloutPart(el, part)` makes an element a part of the
78
- callout bubble's deployed panel (`panel`, `title`, `text`, `actions`, `button`) and gives it
79
- that part's look, so a panel built elsewhere, such as a chart's timeline-mark popup, matches
80
- the bubble's, and a theme's `callout-bubble` parts restyle both.
81
-
82
- ### Fixed
83
-
84
- - **What is on or chosen reads in the theme's selected colors.** A dropdown's switch rows, when
85
- on, fill like the Switch (`selected.bg`, the knob in `selected.fg`) instead of the accent,
86
- as does the slider's range and thumb, and a month grid marks today in bright, bold type:
87
- white on a dark theme, black on a light one.
88
- - **The kit's styles stay inside the kit.** Once a page created a kit component, the kit's
89
- styles also reached the page's own components that use the same part names, such as a
90
- shadcn/ui select, switch or button, and restyled them. A component's styles now apply only
91
- inside kit hosts (`ensureUIHost`), the menus, dialogs and tooltips they open, and themed
92
- hosts, so the page's own components keep their look. A component mounted outside any kit
93
- host gets none of the kit's styles: mount it in one, as the README shows.
94
-
95
- ## [0.1.0]
96
-
97
- ### Added
98
-
99
- - **The first release of Vela's component kit as a package of its own.** Buttons, badges,
100
- tabs, toggle groups, dialogs, drawers, dropdown and context menus, tooltips, hover cards,
101
- popovers, form controls (checkbox, switch, input and input group, text area, number field,
102
- select, color picker, date picker, the settings field layer) and data components (data
103
- table, stat, sparkline, donut, bar, line and scatter charts, key caps, empty states), one
104
- import path each (`@luxalgo/vela-ui/<name>`), so a bundle holds only what it imports. Every
105
- component is `create<Name>(props)`, returning a handle with its element and `destroy()`;
106
- overlays and composite controls run Zag state machines for their keyboard behavior and
107
- accessibility. `disposeWithin(root)` releases every control in a subtree you discard.
108
- - **One typed theme config.** `createTheme` builds a theme from a brand color, a radius
109
- scale, a font, any token by name, each component's settings and, when settings are not
110
- enough, a component's CSS by part; `applyTheme` writes it once per document as a rule in
111
- the `vela.theme` cascade layer. `checkTheme` lists what a theme gets wrong, a theme of
112
- colors alone is plain JSON checked by the shipped JSON Schema, and the dark and light
113
- themes also ship as plain CSS files.
114
- - **Styles that give way to yours.** Component CSS sits in the `vela.ui` cascade layer and
115
- styles parts by their `data-slot`, variants by `data-variant` and `data-size`, so a page's
116
- own CSS overrides it without `!important`. Every scroller inside a kit host shows one
117
- themeable scrollbar (`scroll`, `scroll-size`).
118
- - **A reference inside the package.** `manifest.json` (every component's import, props,
119
- variants, parts, settings, the tokens it reads and an example), `theme.schema.json`, the
120
- guides (theming, what to change and where, writing a component) and `llms.txt` for coding
121
- agents, all generated from the source.
122
- - **Agent skills.** Three skills in `skills/` teach a coding agent to use the components,
123
- theme them and write new ones, in the Agent Skills format: `npx skills experimental_sync`
124
- links them into a project once the package is installed, and `npx skills add LuxAlgo/Vela`
125
- installs them from the repository. `llms.txt` and the `AGENTS.md` block `add` writes point
126
- at them.
127
- - **A command line and a lint config.** `npx @luxalgo/vela-ui add`, `diff`, `check` and
128
- `list`; `@luxalgo/vela-ui/stylelint` checks CSS written with the kit's `css` tag against the
129
- kit's rules.
130
-
131
- ES modules only, for the browsers with `color-mix()`: Chrome and Edge 111, Firefox 113,
132
- Safari 16.2.
1
+ # Changelog
2
+
3
+ All notable changes to `@luxalgo/vela-ui`, newest first. Vela's own changes, including how it
4
+ uses the kit, are in [Vela's changelog](../../CHANGELOG.md).
5
+
6
+ ## [0.4.0]
7
+
8
+ ### Changed
9
+
10
+ - **The stat is now the figure.** The component that shows a value under its label is
11
+ `@luxalgo/vela-ui/figure`, with `createFigure` and its slots and theme entry named `figure`.
12
+ Content blockers took the old module's file for a tracking script and blocked it, so a
13
+ page using it lost the component while developing. _(Breaking: import `createFigure` from
14
+ `@luxalgo/vela-ui/figure` instead of `createStat` from `@luxalgo/vela-ui/stat`, and rename
15
+ `stat` to `figure` in your theme's `components` and in CSS that targets its slots.)_
16
+
17
+ ### Fixed
18
+
19
+ - **Open menus stay on top of the page.** With `@zag-js` 1.47, which a fresh install
20
+ resolves, an open dropdown menu dropped under the content beside it as soon as the pointer
21
+ left it, so it seemed to vanish over a chart. Menus, tooltips and dialogs now keep their
22
+ stacking.
23
+ - **A search field's clear cross follows the theme.** Search fields inside a kit host show
24
+ their clear cross in the theme's text color, white on a dark theme and black on a light one,
25
+ instead of the browser's own, which some systems paint blue.
26
+
27
+ ## [0.3.0]
28
+
29
+ ### Added
30
+
31
+ - **Toasts.** `@luxalgo/vela-ui/toast` shows short notices that stack in a corner and leave on
32
+ their own, with the same calls and options as shadcn's toast. `toast('Saved')` raises one
33
+ from anywhere on the page, `toast.success`, `.info`, `.warning`, `.error` and `.loading` give
34
+ it its kind's icon, and `toast.promise` follows a task from loading to its result. A toast
35
+ takes a description, an action and a cancel button, its own icon and duration, and raising
36
+ it again with the same `id` updates it in place; `toast.dismiss` takes one or all away.
37
+ `createToaster` shows them, over the page or inside a host: the newest in front with the
38
+ older ones folded behind it, spread out while hovered (or with Alt+T), and swiped away
39
+ towards their edge. It takes the corner, the number shown, rich colors per kind, close
40
+ buttons and the toasts' defaults, and a theme sets its width, colors and radius.
41
+ - **A treemap.** `@luxalgo/vela-ui/treemap` lays weighted items out as tiles close to square,
42
+ each tinted by its value on a diverging scale (a watchlist's moves of the day, sized equally
43
+ or by market cap). Items with children form groups headed by their name and the median of
44
+ their values, or the mean, the sum or a figure of your own. Tiles show their label and value
45
+ as their size allows, a readout follows the pointer and the keyboard focus, the arrow keys
46
+ move between tiles, and a click reports the tile with its groups. New values repaint the
47
+ tiles in place, and a resize moves them. With `drill`, a group's header zooms into it and a
48
+ breadcrumb, or Esc, leads back. An optional legend shows the scale, and `squarify` lays out
49
+ rectangles of your own.
50
+ - **A card.** `@luxalgo/vela-ui/card` holds one subject on a surface of its own: a header with
51
+ an eyebrow over the title and a description under it, an action at its end, then the
52
+ content and a footer past a line. `inset` is the sunken tile for figures inside another
53
+ card, and `sm` is tighter. Its title is a heading, so screen readers move from card to card.
54
+ With `onSelect` the whole card is clickable while a press on a button inside it stays the
55
+ button's, and `selected` marks the current one. Its padding, radius, background and border
56
+ are settings a theme can change.
57
+
58
+ ### Fixed
59
+
60
+ - **Key caps read on every button.** On the `default`, `up` and `down` buttons, key caps
61
+ (`keys`, `keysEnd`) drew their label in the button's own fill color, so only an empty cap
62
+ showed. Inside a button a key cap now takes the button's text color and draws only its
63
+ outline, on every variant.
64
+ - **A dialog's close button has a name.** Screen readers announced it as an unnamed button;
65
+ it is now "Close", in the language of the dialog's new `i18n` option, else the kit build's
66
+ translator. `setI18n` renames it when the language changes while the dialog is open.
67
+
68
+ ## [0.2.0]
69
+
70
+ ### Added
71
+
72
+ - **A slider.** `@luxalgo/vela-ui/slider` holds a value on a track, dragged or moved with the
73
+ arrow keys, Page Up/Down and Home/End. It reports every move, and once a drag ends it
74
+ reports the settled value through `onValueCommit`, the moment for costly work such as a
75
+ replay's seek.
76
+ - **Collapsible sections.** `@luxalgo/vela-ui/collapsible` shows and hides its content from a
77
+ header: a section header with a count (a panel's drawers) or a small group label (a list's
78
+ groups). A button of the host's, such as a row's chevron, can toggle it instead.
79
+ - **List rows.** `@luxalgo/vela-ui/item` is a row of a list (a watchlist, alerts, search
80
+ results): media, a title over a description, figures, and buttons that can stay hidden
81
+ until the row is hovered. A clickable row works with the keyboard and screen readers like
82
+ a button, while the buttons inside it keep their own presses; a row with actions makes its
83
+ text the button, as a button cannot hold other buttons. `createItemGroup` stacks rows, with
84
+ a line between them on request; a labelled group is a `group` to screen readers, or the
85
+ `role` you give it (`listbox` for option rows).
86
+ - **Sort buttons for lists that are not tables.** `@luxalgo/vela-ui/sort-button` is a column
87
+ header that steps through its sort directions on each press, shows the current one with an
88
+ arrow, and says it to screen readers.
89
+ - **A month grid.** `@luxalgo/vela-ui/month-grid` lays out a month of days with a figure each,
90
+ tinted by its tone (a trading journal's P&L by day). Weeks start on the locale's first day,
91
+ and the arrow keys walk the days.
92
+ - **Two-line tabs.** A tab's `description` puts a second line under its label, such as a day
93
+ strip's date under its weekday.
94
+ - **Key caps and favorite stars in buttons.** A button's `keys` and `keysEnd` show key caps
95
+ before or after its text (`↵ Open`). The `favorite` variant is a star that takes the
96
+ favorites color while pressed. A toggle button can now flip itself (`defaultPressed`,
97
+ `onPressedChange`) and show another icon while pressed (`iconPressed`).
98
+ - **A callout panel without a bubble.** `calloutPart(el, part)` makes an element a part of the
99
+ callout bubble's deployed panel (`panel`, `title`, `text`, `actions`, `button`) and gives it
100
+ that part's look, so a panel built elsewhere, such as a chart's timeline-mark popup, matches
101
+ the bubble's, and a theme's `callout-bubble` parts restyle both.
102
+
103
+ ### Fixed
104
+
105
+ - **What is on or chosen reads in the theme's selected colors.** A dropdown's switch rows, when
106
+ on, fill like the Switch (`selected.bg`, the knob in `selected.fg`) instead of the accent,
107
+ as does the slider's range and thumb, and a month grid marks today in bright, bold type:
108
+ white on a dark theme, black on a light one.
109
+ - **The kit's styles stay inside the kit.** Once a page created a kit component, the kit's
110
+ styles also reached the page's own components that use the same part names, such as a
111
+ shadcn/ui select, switch or button, and restyled them. A component's styles now apply only
112
+ inside kit hosts (`ensureUIHost`), the menus, dialogs and tooltips they open, and themed
113
+ hosts, so the page's own components keep their look. A component mounted outside any kit
114
+ host gets none of the kit's styles: mount it in one, as the README shows.
115
+
116
+ ## [0.1.0]
117
+
118
+ ### Added
119
+
120
+ - **The first release of Vela's component kit as a package of its own.** Buttons, badges,
121
+ tabs, toggle groups, dialogs, drawers, dropdown and context menus, tooltips, hover cards,
122
+ popovers, form controls (checkbox, switch, input and input group, text area, number field,
123
+ select, color picker, date picker, the settings field layer) and data components (data
124
+ table, stat, sparkline, donut, bar, line and scatter charts, key caps, empty states), one
125
+ import path each (`@luxalgo/vela-ui/<name>`), so a bundle holds only what it imports. Every
126
+ component is `create<Name>(props)`, returning a handle with its element and `destroy()`;
127
+ overlays and composite controls run Zag state machines for their keyboard behavior and
128
+ accessibility. `disposeWithin(root)` releases every control in a subtree you discard.
129
+ - **One typed theme config.** `createTheme` builds a theme from a brand color, a radius
130
+ scale, a font, any token by name, each component's settings and, when settings are not
131
+ enough, a component's CSS by part; `applyTheme` writes it once per document as a rule in
132
+ the `vela.theme` cascade layer. `checkTheme` lists what a theme gets wrong, a theme of
133
+ colors alone is plain JSON checked by the shipped JSON Schema, and the dark and light
134
+ themes also ship as plain CSS files.
135
+ - **Styles that give way to yours.** Component CSS sits in the `vela.ui` cascade layer and
136
+ styles parts by their `data-slot`, variants by `data-variant` and `data-size`, so a page's
137
+ own CSS overrides it without `!important`. Every scroller inside a kit host shows one
138
+ themeable scrollbar (`scroll`, `scroll-size`).
139
+ - **A reference inside the package.** `manifest.json` (every component's import, props,
140
+ variants, parts, settings, the tokens it reads and an example), `theme.schema.json`, the
141
+ guides (theming, what to change and where, writing a component) and `llms.txt` for coding
142
+ agents, all generated from the source.
143
+ - **Agent skills.** Three skills in `skills/` teach a coding agent to use the components,
144
+ theme them and write new ones, in the Agent Skills format: `npx skills experimental_sync`
145
+ links them into a project once the package is installed, and `npx skills add LuxAlgo/Vela`
146
+ installs them from the repository. `llms.txt` and the `AGENTS.md` block `add` writes point
147
+ at them.
148
+ - **A command line and a lint config.** `npx @luxalgo/vela-ui add`, `diff`, `check` and
149
+ `list`; `@luxalgo/vela-ui/stylelint` checks CSS written with the kit's `css` tag against the
150
+ kit's rules.
151
+
152
+ ES modules only, for the browsers with `color-mix()`: Chrome and Edge 111, Firefox 113,
153
+ Safari 16.2.