@luxalgo/vela-ui 0.2.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 (217) hide show
  1. package/CHANGELOG.md +153 -91
  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/badge.js +1 -1
  8. package/dist/bar-chart.d.ts +1 -1
  9. package/dist/bar-chart.js +1 -1
  10. package/dist/button.d.ts +1 -1
  11. package/dist/button.js +4 -4
  12. package/dist/callout-bubble.d.ts +1 -1
  13. package/dist/callout-bubble.js +4 -4
  14. package/dist/card.d.ts +52 -0
  15. package/dist/card.js +179 -0
  16. package/dist/checkbox.js +5 -5
  17. package/dist/{chunk-B5ZSRUDQ.js → chunk-BWSOMG3G.js} +2 -2
  18. package/dist/{chunk-G7IQLY3A.js → chunk-C3PXY2SW.js} +5 -0
  19. package/dist/{chunk-CC3DDNFC.js → chunk-DXDCKZ2M.js} +4 -4
  20. package/dist/chunk-GUIYFQ27.js +30 -0
  21. package/dist/{chunk-WGULXRWD.js → chunk-KUWTI2PE.js} +4 -4
  22. package/dist/{chunk-Z5PINFQO.js → chunk-QGWAN3EP.js} +5 -5
  23. package/dist/{chunk-V2Q4MRMS.js → chunk-RH53NQGE.js} +30 -4
  24. package/dist/{chunk-WBGSYCV2.js → chunk-SKFAYTDK.js} +4 -4
  25. package/dist/{chunk-MJ4RUGX7.js → chunk-TGJNHUYV.js} +3 -3
  26. package/dist/{chunk-WXH3EFV5.js → chunk-VC7SVSDK.js} +4 -4
  27. package/dist/{chunk-7VMN7NKJ.js → chunk-YT2BSP7O.js} +3 -3
  28. package/dist/collapsible.d.ts +1 -1
  29. package/dist/collapsible.js +3 -3
  30. package/dist/color-picker.js +5 -5
  31. package/dist/context-menu.js +5 -5
  32. package/dist/data-table.d.ts +1 -1
  33. package/dist/data-table.js +1 -1
  34. package/dist/date-picker.d.ts +1 -1
  35. package/dist/date-picker.js +2 -2
  36. package/dist/dialog.d.ts +9 -1
  37. package/dist/dialog.js +15 -5
  38. package/dist/donut.d.ts +1 -1
  39. package/dist/donut.js +1 -1
  40. package/dist/drawer.d.ts +1 -1
  41. package/dist/drawer.js +2 -2
  42. package/dist/dropdown-menu.d.ts +1 -1
  43. package/dist/dropdown-menu.js +5 -5
  44. package/dist/empty.d.ts +1 -1
  45. package/dist/empty.js +2 -2
  46. package/dist/field.js +13 -13
  47. package/dist/{stat.d.ts → figure.d.ts} +9 -9
  48. package/dist/figure.js +41 -0
  49. package/dist/glyph-select.js +5 -5
  50. package/dist/hover-card.d.ts +1 -1
  51. package/dist/hover-card.js +3 -3
  52. package/dist/icons.js +1 -1
  53. package/dist/index.d.ts +4 -2
  54. package/dist/index.js +3 -3
  55. package/dist/input-group.d.ts +1 -1
  56. package/dist/input-group.js +4 -4
  57. package/dist/input.js +2 -2
  58. package/dist/item.d.ts +1 -1
  59. package/dist/item.js +2 -2
  60. package/dist/kbd.d.ts +1 -1
  61. package/dist/kbd.js +2 -2
  62. package/dist/line-chart.d.ts +1 -1
  63. package/dist/line-chart.js +1 -1
  64. package/dist/manifest.json +691 -74
  65. package/dist/month-grid.js +1 -1
  66. package/dist/number-input.d.ts +1 -1
  67. package/dist/number-input.js +5 -5
  68. package/dist/popover.js +3 -3
  69. package/dist/scatter-chart.d.ts +1 -1
  70. package/dist/scatter-chart.js +1 -1
  71. package/dist/select.d.ts +1 -1
  72. package/dist/select.js +7 -7
  73. package/dist/slider.d.ts +1 -1
  74. package/dist/slider.js +2 -2
  75. package/dist/sort-button.js +4 -4
  76. package/dist/sparkline.d.ts +1 -1
  77. package/dist/sparkline.js +1 -1
  78. package/dist/switch.d.ts +1 -1
  79. package/dist/switch.js +3 -3
  80. package/dist/tabs.d.ts +1 -1
  81. package/dist/tabs.js +4 -4
  82. package/dist/text-area.d.ts +1 -1
  83. package/dist/text-area.js +2 -2
  84. package/dist/theme-TefB8vtl.d.ts +341 -0
  85. package/dist/theme.d.ts +42 -192
  86. package/dist/theme.js +1 -1
  87. package/dist/theme.schema.json +321 -30
  88. package/dist/toast.d.ts +49 -0
  89. package/dist/toast.js +463 -0
  90. package/dist/toggle-group.d.ts +1 -1
  91. package/dist/toggle-group.js +4 -4
  92. package/dist/tooltip.js +2 -2
  93. package/dist/treemap.d.ts +80 -0
  94. package/dist/treemap.js +470 -0
  95. package/dist/zag.d.ts +11 -2
  96. package/dist/zag.js +1 -1
  97. package/docs/theming.md +217 -217
  98. package/docs/what-to-change.md +20 -20
  99. package/docs/writing-a-component.md +250 -250
  100. package/llms.txt +6 -3
  101. package/package.json +90 -90
  102. package/registry/badge.ts +119 -119
  103. package/registry/bar-chart.ts +215 -215
  104. package/registry/button.ts +387 -379
  105. package/registry/callout-bubble.ts +347 -347
  106. package/registry/card.ts +379 -0
  107. package/registry/checkbox.ts +234 -234
  108. package/registry/collapsible.ts +271 -271
  109. package/registry/color-picker.ts +582 -582
  110. package/registry/context-menu.ts +208 -208
  111. package/registry/data-table.ts +215 -215
  112. package/registry/date-picker.ts +483 -483
  113. package/registry/dialog.ts +551 -535
  114. package/registry/donut.ts +145 -145
  115. package/registry/drawer.ts +636 -636
  116. package/registry/dropdown-menu.ts +762 -762
  117. package/registry/empty.ts +91 -91
  118. package/registry/field.ts +584 -584
  119. package/registry/{stat.ts → figure.ts} +96 -96
  120. package/registry/glyph-select.ts +268 -268
  121. package/registry/hover-card.ts +222 -222
  122. package/registry/input-group.ts +229 -229
  123. package/registry/input.ts +181 -181
  124. package/registry/item.ts +376 -376
  125. package/registry/kbd.ts +64 -64
  126. package/registry/line-chart.ts +218 -218
  127. package/registry/month-grid.ts +328 -328
  128. package/registry/number-input.ts +443 -443
  129. package/registry/popover.ts +368 -368
  130. package/registry/scatter-chart.ts +221 -221
  131. package/registry/select.ts +620 -620
  132. package/registry/slider.ts +259 -259
  133. package/registry/sort-button.ts +189 -189
  134. package/registry/sparkline.ts +114 -114
  135. package/registry/switch.ts +205 -205
  136. package/registry/tabs.ts +426 -426
  137. package/registry/text-area.ts +186 -186
  138. package/registry/toast.ts +965 -0
  139. package/registry/toggle-group.ts +295 -295
  140. package/registry/tooltip.ts +156 -156
  141. package/registry/treemap.ts +847 -0
  142. package/skills/theming-vela-ui/SKILL.md +137 -137
  143. package/skills/using-vela-ui-components/SKILL.md +139 -137
  144. package/skills/writing-vela-ui-components/SKILL.md +163 -163
  145. package/src/components/badge.ts +119 -119
  146. package/src/components/bar-chart.ts +215 -215
  147. package/src/components/button.ts +387 -379
  148. package/src/components/callout-bubble.ts +347 -347
  149. package/src/components/card.ts +379 -0
  150. package/src/components/checkbox.ts +234 -234
  151. package/src/components/collapsible.ts +271 -271
  152. package/src/components/color-picker.ts +582 -582
  153. package/src/components/context-menu.ts +208 -208
  154. package/src/components/data-table.ts +215 -215
  155. package/src/components/date-picker.ts +483 -483
  156. package/src/components/dialog.ts +551 -535
  157. package/src/components/donut.ts +145 -145
  158. package/src/components/drawer.ts +636 -636
  159. package/src/components/dropdown-menu.ts +762 -762
  160. package/src/components/empty.ts +91 -91
  161. package/src/components/field.ts +584 -584
  162. package/src/components/{stat.ts → figure.ts} +96 -96
  163. package/src/components/glyph-select.ts +268 -268
  164. package/src/components/hover-card.ts +222 -222
  165. package/src/components/input-group.ts +229 -229
  166. package/src/components/input.ts +181 -181
  167. package/src/components/item.ts +376 -376
  168. package/src/components/kbd.ts +64 -64
  169. package/src/components/line-chart.ts +218 -218
  170. package/src/components/month-grid.ts +328 -328
  171. package/src/components/number-input.ts +443 -443
  172. package/src/components/popover.ts +368 -368
  173. package/src/components/scatter-chart.ts +221 -221
  174. package/src/components/select.ts +620 -620
  175. package/src/components/slider.ts +259 -259
  176. package/src/components/sort-button.ts +189 -189
  177. package/src/components/sparkline.ts +114 -114
  178. package/src/components/switch.ts +205 -205
  179. package/src/components/tabs.ts +426 -426
  180. package/src/components/text-area.ts +186 -186
  181. package/src/components/toast.ts +965 -0
  182. package/src/components/toggle-group.ts +295 -295
  183. package/src/components/tooltip.ts +156 -156
  184. package/src/components/treemap.ts +847 -0
  185. package/src/index.ts +24 -24
  186. package/src/lib/calendar.ts +117 -117
  187. package/src/lib/chart.ts +72 -72
  188. package/src/lib/color.ts +89 -89
  189. package/src/lib/component-index.ts +163 -151
  190. package/src/lib/css.ts +48 -48
  191. package/src/lib/define.ts +45 -45
  192. package/src/lib/dispose.ts +36 -36
  193. package/src/lib/h.ts +55 -55
  194. package/src/lib/headless.ts +16 -16
  195. package/src/lib/i18n.ts +30 -30
  196. package/src/lib/icons.ts +244 -237
  197. package/src/lib/kit-text.ts +26 -26
  198. package/src/lib/page.ts +24 -24
  199. package/src/lib/palette.ts +81 -81
  200. package/src/lib/placement.ts +188 -188
  201. package/src/lib/scope.ts +135 -135
  202. package/src/lib/styles.ts +53 -53
  203. package/src/lib/surface-events.ts +31 -31
  204. package/src/lib/surface-exit.ts +87 -87
  205. package/src/lib/t.ts +68 -68
  206. package/src/lib/theme.ts +684 -664
  207. package/src/lib/tokens.ts +110 -110
  208. package/src/lib/variants.ts +32 -32
  209. package/src/lib/zag.ts +61 -46
  210. package/stylelint/index.mjs +60 -60
  211. package/stylelint/lint.mjs +81 -81
  212. package/stylelint/plugin.mjs +115 -115
  213. package/dist/chunk-P4MTEMT7.js +0 -23
  214. package/dist/stat.js +0 -41
  215. package/dist/{chunk-U3EH42YY.js → chunk-5BJV5FY5.js} +1 -1
  216. package/dist/{chunk-E2FE6V2N.js → chunk-ALAHGSLC.js} +1 -1
  217. package/dist/{chunk-C3ICYMI3.js → chunk-FYVQO5TN.js} +1 -1
package/CHANGELOG.md CHANGED
@@ -1,91 +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.2.0]
7
-
8
- ### Added
9
-
10
- - **A slider.** `@luxalgo/vela-ui/slider` holds a value on a track, dragged or moved with the
11
- arrow keys, Page Up/Down and Home/End. It reports every move, and once a drag ends it
12
- reports the settled value through `onValueCommit`, the moment for costly work such as a
13
- replay's seek.
14
- - **Collapsible sections.** `@luxalgo/vela-ui/collapsible` shows and hides its content from a
15
- header: a section header with a count (a panel's drawers) or a small group label (a list's
16
- groups). A button of the host's, such as a row's chevron, can toggle it instead.
17
- - **List rows.** `@luxalgo/vela-ui/item` is a row of a list (a watchlist, alerts, search
18
- results): media, a title over a description, figures, and buttons that can stay hidden
19
- until the row is hovered. A clickable row works with the keyboard and screen readers like
20
- a button, while the buttons inside it keep their own presses; a row with actions makes its
21
- text the button, as a button cannot hold other buttons. `createItemGroup` stacks rows, with
22
- a line between them on request; a labelled group is a `group` to screen readers, or the
23
- `role` you give it (`listbox` for option rows).
24
- - **Sort buttons for lists that are not tables.** `@luxalgo/vela-ui/sort-button` is a column
25
- header that steps through its sort directions on each press, shows the current one with an
26
- arrow, and says it to screen readers.
27
- - **A month grid.** `@luxalgo/vela-ui/month-grid` lays out a month of days with a figure each,
28
- tinted by its tone (a trading journal's P&L by day). Weeks start on the locale's first day,
29
- and the arrow keys walk the days.
30
- - **Two-line tabs.** A tab's `description` puts a second line under its label, such as a day
31
- strip's date under its weekday.
32
- - **Key caps and favorite stars in buttons.** A button's `keys` and `keysEnd` show key caps
33
- before or after its text (`↵ Open`). The `favorite` variant is a star that takes the
34
- favorites color while pressed. A toggle button can now flip itself (`defaultPressed`,
35
- `onPressedChange`) and show another icon while pressed (`iconPressed`).
36
- - **A callout panel without a bubble.** `calloutPart(el, part)` makes an element a part of the
37
- callout bubble's deployed panel (`panel`, `title`, `text`, `actions`, `button`) and gives it
38
- that part's look, so a panel built elsewhere, such as a chart's timeline-mark popup, matches
39
- the bubble's, and a theme's `callout-bubble` parts restyle both.
40
-
41
- ### Fixed
42
-
43
- - **What is on or chosen reads in the theme's selected colors.** A dropdown's switch rows, when
44
- on, fill like the Switch (`selected.bg`, the knob in `selected.fg`) instead of the accent,
45
- as does the slider's range and thumb, and a month grid marks today in bright, bold type:
46
- white on a dark theme, black on a light one.
47
- - **The kit's styles stay inside the kit.** Once a page created a kit component, the kit's
48
- styles also reached the page's own components that use the same part names, such as a
49
- shadcn/ui select, switch or button, and restyled them. A component's styles now apply only
50
- inside kit hosts (`ensureUIHost`), the menus, dialogs and tooltips they open, and themed
51
- hosts, so the page's own components keep their look. A component mounted outside any kit
52
- host gets none of the kit's styles: mount it in one, as the README shows.
53
-
54
- ## [0.1.0]
55
-
56
- ### Added
57
-
58
- - **The first release of Vela's component kit as a package of its own.** Buttons, badges,
59
- tabs, toggle groups, dialogs, drawers, dropdown and context menus, tooltips, hover cards,
60
- popovers, form controls (checkbox, switch, input and input group, text area, number field,
61
- select, color picker, date picker, the settings field layer) and data components (data
62
- table, stat, sparkline, donut, bar, line and scatter charts, key caps, empty states), one
63
- import path each (`@luxalgo/vela-ui/<name>`), so a bundle holds only what it imports. Every
64
- component is `create<Name>(props)`, returning a handle with its element and `destroy()`;
65
- overlays and composite controls run Zag state machines for their keyboard behavior and
66
- accessibility. `disposeWithin(root)` releases every control in a subtree you discard.
67
- - **One typed theme config.** `createTheme` builds a theme from a brand color, a radius
68
- scale, a font, any token by name, each component's settings and, when settings are not
69
- enough, a component's CSS by part; `applyTheme` writes it once per document as a rule in
70
- the `vela.theme` cascade layer. `checkTheme` lists what a theme gets wrong, a theme of
71
- colors alone is plain JSON checked by the shipped JSON Schema, and the dark and light
72
- themes also ship as plain CSS files.
73
- - **Styles that give way to yours.** Component CSS sits in the `vela.ui` cascade layer and
74
- styles parts by their `data-slot`, variants by `data-variant` and `data-size`, so a page's
75
- own CSS overrides it without `!important`. Every scroller inside a kit host shows one
76
- themeable scrollbar (`scroll`, `scroll-size`).
77
- - **A reference inside the package.** `manifest.json` (every component's import, props,
78
- variants, parts, settings, the tokens it reads and an example), `theme.schema.json`, the
79
- guides (theming, what to change and where, writing a component) and `llms.txt` for coding
80
- agents, all generated from the source.
81
- - **Agent skills.** Three skills in `skills/` teach a coding agent to use the components,
82
- theme them and write new ones, in the Agent Skills format: `npx skills experimental_sync`
83
- links them into a project once the package is installed, and `npx skills add LuxAlgo/Vela`
84
- installs them from the repository. `llms.txt` and the `AGENTS.md` block `add` writes point
85
- at them.
86
- - **A command line and a lint config.** `npx @luxalgo/vela-ui add`, `diff`, `check` and
87
- `list`; `@luxalgo/vela-ui/stylelint` checks CSS written with the kit's `css` tag against the
88
- kit's rules.
89
-
90
- ES modules only, for the browsers with `color-mix()`: Chrome and Edge 111, Firefox 113,
91
- 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.