@luxalgo/vela-ui 0.3.0 → 0.4.1

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