@1337exp/taoui 5.4.1 → 5.6.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,42 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.6.0
4
+
5
+ Typing a date, as Next Up's old app did; nothing to migrate.
6
+
7
+ - **`TaoDate editable`**: a text field you type the date into, with the calendar on a button next to it (or ↓). The text is read in the locale's order of day and month: `5` is the 5th of this month, `5.3` the 5th of March (`3/5` in en-US), `05.03.26` and `5.3.2026` full dates, digits alone split as `0503` / `050326`, ISO works too; a two-digit year goes to the nearest century. Enter or leaving the field applies it; a text that is not a date, or a date outside `min` / `max`, puts the value back; Esc drops the typing (and only then the next Esc reaches a dialog around it); an empty field is `null`. The field shows the date in numbers as the locale writes it (`05.03.2026`, `03/05/2026`). `parse` and `format` take your own rules («tomorrow»), `calendarLabel` names the button (an optional key of the locale, so a locale written before still type-checks). Without `editable` TaoDate is the button it was.
8
+ - **Exported:** `parseTaoDateInput(text, { locale, reference })`, `formatTaoDateShort(iso, locale)`, `taoDateOrder(locale)`.
9
+ - **Docs:** the default `locale` of TaoDate and TaoDateRange is the app locale (`setTaoLocale`), not `'en-US'` as the prop table said.
10
+
11
+ ## 5.5.0
12
+
13
+ What a phone interface needs, asked for by an app built on TaoUI (Next Up); nothing to migrate.
14
+
15
+ - **`TaoDrawer side="bottom"`**: a bottom sheet. It rises from the bottom edge, as wide as the screen up to 640px (centred on a computer), as tall as its content up to 90% of the screen, with rounded top corners, a grip and its last line above the safe area. Esc, the backdrop and the focus trap as before.
16
+ - **`TaoModal fullscreen`**: `true` is the whole screen, square corners, the header and the footer stay while the content scrolls, the safe areas kept; `'narrow'` does that only on a screen narrower than 600px, so one modal is a dialog on a computer and a page on a phone.
17
+ - **Eight app icons**: `tao-settings`, `tao-edit`, `tao-trash`, `tao-bell`, `tao-tag`, `tao-repeat`, `tao-undo`, `tao-redo`. 40 built-in icons now (the docs still said 29, though the alignment icons of 5.2 had made it 32).
18
+ - **Showcase:** on a phone the page no longer scrolls sideways (the carousel demo widened it to its slide track, and the theme switchers did not wrap), so a sheet or a fixed bar is not cut at the edge.
19
+
20
+ ## 5.4.5
21
+
22
+ - **The slider has one cursor, the pointing finger**, over the rail, over the thumb and for the whole drag (TaoSlider, TaoRangeSlider, TaoScrubber). It was `grab` over the thumb, `grabbing` while pressed and, once the pointer moved, the rail's finger (the rail holds the pointer capture): three shapes flickered in one gesture, and Opera on Windows draws `grab` / `grabbing` as the four-way move arrows and an up arrow. The finger looks the same in every browser.
23
+
24
+ ## 5.4.4
25
+
26
+ Visual fixes, nothing to migrate.
27
+
28
+ - **TaoNav does not move when the page scrolls.** The side column (the action and the items of the rail and the side panel) stuck at `top: 0` although it stands below the panel's 4px padding, so the first 4px of scrolling lifted it against the edge; it now sticks where it stands. The floating bar jumped up a fraction of a pixel with the content at the very end of the scroll (the page height is often fractional and the scroll end is rounded up): its bottom margin is now 1px short of its sticky offset, so it stays stuck.
29
+ - **TaoAlert folds with a slide**, as TaoSpoiler does: the body's row closes from `1fr` to `0fr`, and the text gets `hidden="until-found"` when the slide has ended, so find-in-page still opens it. With reduced motion it folds at once.
30
+ - **Series colours stand further apart.** In the dark theme chart-4 (violet) sat next to the info blue of chart-2 (colour distance 0.092): it is a deeper violet now (`--tao-violet-400` `#9d5cff`, 0.189). In the light theme chart-4 is a purple (`--tao-violet-600` `#b03ad1`) and chart-6 orange (`--tao-tangerine-600`, new), because teal sat on the dark success green (0.093). A test keeps every pair of both themes at least 0.11 apart and 3:1 on the page. `--tao-teal-600`, added in 5.3.0 for that teal, is gone.
31
+
32
+ ## 5.4.3
33
+
34
+ - **Fixed: the bottom bar of TaoNav rose under the content on a page shorter than the window** (an empty list, a short settings page). The root had no height of its own and the grid inside only shared the height of the content. The root is now a flex column and the shell fills it, so a min-height / height given to TaoNav (min-height: 100dvh for a whole-window app) keeps the bar at the bottom, and the rail and the side panel run the full height. Nothing to migrate: without a height it behaves as before.
35
+
36
+ ## 5.4.2
37
+
38
+ - **Fixed: a toast in a centred position stuck to the left edge.** `topCenter` (the default), `bottomCenter` and `center` span the whole width, and the stack inside was `width: 100%`, so there was nothing to centre. The stack now shrinks to its widest toast in those three positions and `justify-content: center` centres it. Corner positions are unchanged. Nothing to migrate.
39
+
3
40
  ## 5.4.1
4
41
 
5
42
  - **Fixed: a striped `TaoCard` / `TaoBlock` painted over a sticky `TaoNav` bar.** The stripe layer (`::after`) and the Card `#corner` use `z-index: 1`, but a panel did not form a stacking context, so they joined the page's layer and tied with the bar (`z-index: 1`, earlier in the DOM): the coloured stripe ran across the bottom bar while a card scrolled under it. `.tao-panel` is now `isolation: isolate`. Nothing to migrate.