@1337exp/taoui 5.1.0 → 5.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.4.0
4
+
5
+ One slot, nothing to migrate.
6
+
7
+ - **`TaoNav` `#action`:** the main action of a screen (Compose, New) moves with the navigation instead of staying in a far corner of a wide screen. Pass a `TaoButton` with `icon` and its text in `<span class="tao-nav__action-label">`. The bar look puts it round above itself at the end side, 12px off like the pill (with `floating` it lines up with the pill's edge, so it follows a centred pill); the rail puts it round at the top, above the items; the side panel puts it at the top, full width, with the text (an extended button). In the round looks the text is visually hidden and stays the button's name. CSS places it from the same `--_*` variables as the rest, so `layout="auto"` switches it by container queries without JS; that is also why the slot has no props: only CSS knows the look in `auto`. The hand-placed round button of the 5.2 showcase is gone.
8
+
9
+ ## 5.3.0
10
+
11
+ Small charts and a bridge to chart libraries; nothing to migrate.
12
+
13
+ - **`TaoSparkline`**: a trend for a card, a table cell or a line of text. `values` (a `null` is a gap that splits the line), `area`, `dot` on the last value, `tone`, a fixed `min` / `max` to compare several. With `label` it is an image with that name, without it a decoration.
14
+ - **`TaoMeter`**: a measured value in a range (`role="meter"`): disk space, a battery, a score. With `low` / `high` / `optimum` it colours itself as the HTML `<meter>` does: the region of the optimum is success, the next one warning, the far one danger. `label`, `valueText` (a number or your own text, read as `aria-valuetext`). The progress of a task stays `TaoProgress`.
15
+ - **`TaoDonut`**: a share of a whole, from `segments` (`{ label, value, tone?, color? }`) or a single `value` of `max`. `legend`, a centre slot, `size` / `thickness`; a screen reader hears the label and every part with its share.
16
+ - **Series colours** `--tao-color-chart-1…6`: the accent first, then the info, success and warning roles (so a palette moves them away from its accent), a violet and, last, pink in the dark theme or teal in the light one, whose accent is pink. Red is left out: it reads as «bad». Palettes re-declare the series built on roles and give their second stop to chart-4. New primitives `--tao-violet-400 / -600`, `--tao-teal-600`.
17
+ - **`taoChartTheme(el?)`** returns the theme colours for Chart.js, ECharts, uPlot and the like, resolved where the element is (its palette, its mode) and converted to `rgb()` / `rgba()`: the roles are often `color-mix()`, which canvas libraries do not parse. **`watchTaoChartTheme(apply, el?)`** calls it now and on every theme, mode or palette change. TaoUI will not grow axes, tooltips or zoom: that is a chart library's work.
18
+
19
+ ## 5.2.0
20
+
21
+ New components and options, nothing to migrate.
22
+
23
+ - **`TaoToolbar`**, **`TaoToolbarGroup`**, **`TaoToolbarSeparator`**: a bar of tools (`role="toolbar"`). It is one Tab stop with a roving tabindex: `←` / `→` (`↑` / `↓` with `orientation="vertical"`) walk the items and wrap, Home / End go to the ends, disabled items are skipped, and the bar remembers the last item. The items are found in the DOM, so any control fits: inside a `TaoSegmented` the arrows pick the option and move on from its edge, a text field keeps its arrows. A thin line across the bar splits the groups; `inset` puts a sunken pill behind a group. `variant="panel | plain"`, `size`.
24
+ - **`TaoButton` `v-model:pressed`:** a toggle button (Bold, a filter). It says `aria-pressed` and, while pressed, wears a wash of its tone's text colour (every variant but `primary`). Without the prop the button is unchanged.
25
+ - **`TaoNav` `floating`:** in the bar look the panel is a detached pill above the page, inset from the edges and above the safe area, with a shadow and a pill for the active item; 520px at most, centred. The rail and the side panel do not change, in `auto` too. The main action of a screen belongs beside it as your own round button (see the showcase), not in a notch of the bar.
26
+ - **Icons** `tao-align-left`, `tao-align-center`, `tao-align-right`.
27
+
28
+ ## 5.1.1
29
+
30
+ Visual fixes, nothing to migrate.
31
+
32
+ - **Dark theme tone fills:** the neutral button had a dark label on its grey fill (3.4:1), it is white now (5.7:1) through a new role `--tao-color-on-neutral` (white in both themes). Success and info are a step lighter (`green-400`, the new `blue-300`) so they read as buttons on a dark page with their dark label, and **warning leans to orange** (`--tao-tangerine-400`, `#ff8f3d`): the amber accent keeps yellow, so the two are not mistaken for each other (colour distance 0.037 → 0.114 for the text, as fill and as text). The light theme and the palettes are unchanged.
33
+ - **Hover is twice as quick:** `--tao-transition-base` runs on the new `--tao-duration-hover` (0.1s instead of 0.2s), so a state follows the pointer instead of trailing behind it; other motion keeps its durations. Rows the pointer sweeps across (TaoMenu items, TaoMenubar entries, TaoTree rows) change at once, as in a system menu.
34
+ - **TaoSplit cursors** are the matching pair `ew-resize` / `ns-resize` (`col-resize` / `row-resize` are drawn as two different shapes on Windows).
35
+
3
36
  ## 5.1.0
4
37
 
5
38
  Two small additions, nothing to migrate.