@1337exp/taoui 5.50.0 → 5.52.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 +35 -0
- package/README.md +7 -7
- package/README.ru.md +7 -7
- package/dist/index.d.ts +430 -237
- package/dist/index.js +1089 -194
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -2
- package/skills/taoui/SKILL.md +12 -7
- package/skills/taoui/references/components.md +23 -10
- package/skills/taoui/references/patterns.md +273 -273
- package/skills/taoui/references/starters.md +435 -0
- package/src/styles/base.css +27 -4
- package/src/styles/tokens/primitives.css +8 -5
- package/src/styles/tokens/semantic.css +8 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.52.0
|
|
4
|
+
|
|
5
|
+
One look changes by default: a `TaoLink` is underlined now. To keep the old look on a link: `<TaoLink underline="none">` (or `hover`). `TaoStretchedLink` keeps its look (no line); a crumb of `TaoBreadcrumb` gets the line under the pointer. The types of `TaoTable` got wider, nothing narrower: code that compiled still compiles (the default row type is `any` now, so a shared `TaoTableColumn[]` fits every table).
|
|
6
|
+
|
|
7
|
+
- **`TaoLink` is underlined, `underline="always" | "hover" | "none"`.** In the light theme the link colour is the text colour (`--tao-color-link` is black, 1.4:1 to the text; in the dark theme 1.1:1, the hue alone), so a link in a list or a line of text did not read as a link without the underline: not by sight and not by WCAG 1.4.1 (a link is told from text by a line or by 3:1). The line was only in `.tao-prose`. Now the link has the class `tao-link` and the line by default (the same one as `.tao-prose`: 1px, offset 0.18em); `hover` shows it only under the pointer and the focus (a menu entry, a card title, anything clear from its place), `none` never. The rule weighs one class, so a class of your own, written later, wins. `TaoStretchedLink` is `none` by default (the card is the sign of a link), a crumb of `TaoBreadcrumb` is `hover`. The «Contrast & keyboard» bench of the showcase rates the new pair «link on the page» (4.5:1) too. Found by an agent that made the cheat sheet ai-gen: it had added the line with its own CSS.
|
|
8
|
+
- **`TaoTable` is generic: a row can be an interface.** The rows were `Record<string, unknown>[]`, and an interface has no index signature, so `TaoTable :rows="flags"` with `interface Flag { … }` did not compile: the type had to be written as `type Flag = { … }`. Now `TaoTable<T>`: `T` comes from `rows` (an interface, a class, a plain object), `rows` and `columns` may be `readonly` (`as const` data, props), and the row is a `T` in the cell slots (`#cell-flag="{ row }"` knows `row.flag`), in `@row-click`, in `rowKey` and in `TaoTableColumn<T>.value(row)`. `columns` do not take part in the inference (`NoInfer`, TypeScript 5.4+), so the rows decide, and a list typed `TaoTableColumn[]` (the row type `any` by default) fits a table of any rows. `value` of a column is a method: a column of `Record` rows goes to a table of `Flag` rows too. New: the type `TaoTableRowKey`, the pure `tableCellValue` and `tableRowId` in `table.ts` (tested). Found by the cheat sheet ai-gen, where the agent had to give the flag its type with `type`.
|
|
9
|
+
- **`TaoTable` in a narrow place: `stack` and `minWidth`.** A table kept its columns as wide as the words allowed, so on a phone prose was squeezed into stacks of 100px (4 columns, a row 177px high), and the sideways scroll of its wrap began only after that. `stack`: under 600px of the table's own width (a container query on the wrap, so it follows the room it is given inside a shell, not the window; no JavaScript) every row is a card, each cell under its column label (`data-label`, with an empty alternative so a screen reader does not say it twice); the header stays in the DOM, hidden by sight, and the cells carry the table roles, so the table is still a table for a screen reader after it turned into blocks. The wrap needs a width of its own to be a container (it has `width: 100%`); in a shrink-to-fit parent give it one. `minWidth` (a number is px): the table is never narrower, and a narrower place scrolls it sideways; `stack` cards ignore it. A column takes `nowrap` (a code, a date, a flag) and its own `minWidth`. The alignment of a column is now the private variable `--_tao-align` read by `text-align` (it was the inline `text-align`), so the cards put everything at the start; nothing changes by sight. Found by the cheat sheet ai-gen, where a wrapper with `min-width` and `overflow-x` had to do it.
|
|
10
|
+
- **The rows of a `clickable` `TaoTable` work from the keyboard.** A row was a `<tr>` with only `@click`: no `tabindex`, no key, so with the keyboard a list of records could not be opened at all. Now the table is one Tab stop (a roving `tabindex`: the first row, then the row that had the focus last), the arrows and Home / End walk the rows (no wrap at the ends, as in `TaoList roving`), Enter and Space emit `row-click` as a click does (Space does not scroll the page), and the focused row has a tint and a bar of 2px in the accent at its start (on every cell of a `stack` card). Not a ring: a ring is a rectangle, and the rounded frame of the table cut its corners on the first and the last row, while a fill is clipped by the frame cleanly; the bar is on the logical edge, so in RTL it is at the right. A key that comes from a control inside the row (a button, a field, a menu) stays with that control and is not a row click. A click with the mouse is as before: a click on a button in a row still reaches `row-click` (stop it with `@click.stop` on the button). The pure step is `tableRowTarget` in `table.ts`. For a screen reader a row stays a row: when the action matters, also put a real link or button in the row. Found while reading `TaoTable` for the cheat sheet ai-gen.
|
|
11
|
+
|
|
12
|
+
## 5.51.0
|
|
13
|
+
|
|
14
|
+
Nothing to migrate: `menu`, `hint`, `tone` and `@move` are new and do nothing until set; Enter on a folder now also opens or closes it. One look changes by default: the selected row of a tree without the focus is grey (`--tao-color-hover`) instead of the accent; to keep the accent always, `.my-tree:not(:focus-within) .tao-tree__row--selected { background: var(--tao-color-accent-subtle); color: var(--tao-color-accent-text); }`. The corners are softer and the scrollbars a pixel thicker (below); the old look is `:root { --tao-radius-sm: 4px; --tao-radius-md: 8px; --tao-radius-lg: 12px; --tao-radius-control: 4px; --tao-radius-panel: 8px; --tao-scrollbar-size: 5px; }`.
|
|
15
|
+
|
|
16
|
+
- **The Guide has Starters: whole screens to begin a project from.** A starter is one Vue file people copy as is, live on the page in a frame of the width you pick (phone, tablet, wide), with the decisions it makes and why, and the whole file under it; `npm run skill` writes them into `skills/taoui/references/starters.md`, so an AI assistant starts a new app from the same shape. A starter uses the public API only (a test holds it: no `:deep(.tao-…)`, no private `--_…`). The first one is **the app shell with a side menu**, as in Axis and NextUp: `TaoNav fill` with the side panel, the rail and the bar from one list, one main action, quiet counters, the language and the theme at the bottom of the panel (in a thin header on a phone, by a container query on `tao-nav`, no JavaScript), settings as a section of the menu. The second is **a list and the open item**, as the notes of NextUp: side by side when there is room and one at a time when there is not (the list, then the item with Back and Escape), decided by a container query on an outer box, so it follows the room it is given inside the shell, not the window; each pane scrolls by itself, a `TaoList roving` list, the focus moves to the item heading and back to its row in the single pane, quiet icon actions with the one that destroys in `tone="danger"`. The showcase chrome (its accent `h2`, its paragraphs) no longer reaches into a block marked `showcase-free`, so a starter looks as it will in your app. Each starter is its own entry of the Guide menu, in the group «Starters» (`#starter-app-shell`, `#starter-list-detail`).
|
|
17
|
+
- **`TaoNav` `fill`: the shell of an app.** TaoNav takes the height of its parent (`html, body, #app { height: 100% }`), the page scrolls inside `.tao-nav__content` or its own panes instead of the document, and the side column runs the full height, so the `#footer` stands at the bottom of the panel. With nothing scrolling as a document, no page scrollbar comes and goes between a short section and a long one, and nothing shifts sideways. Axis needed six `:deep(.tao-nav__…)` rules for this; it can drop them.
|
|
18
|
+
- **Several children of the `TaoNav` `#action` stand one under the other** (the action, then a project chip), with a small gap; one child looks as before. **`--tao-nav-compact`** is public: 1 on the bar and the rail, 0 on the side panel, set on the navigation only (the page beside it and everything outside a TaoNav read 0), for your own pieces in `#action`, `#footer` and `#label`, a chip that keeps only its icon on the rail. Axis and fin-view read the private `--_compact` for that.
|
|
19
|
+
- **`TaoLanguageSwitch` in a TaoNav shows its name where there is room:** on the side panel «🌐 English», on the rail only the globe, by `--tao-nav-compact`, without `icon-only` and without JavaScript (in `auto` only CSS knows the look). The name is folded by width, not removed, so the button is still «Language: English». Axis did this with `:deep` rules on the switch.
|
|
20
|
+
- **`TaoDropdownMenu` `block`: a trigger that is a whole chip of yours.** The button fills the width and the height of its place and draws nothing of its own (no padding, no background, the corners of its parent), and what is in `#button` stretches inside it, so the chip is the button and the hover and the focus ring go round it (the ring inside, so a clipping box such as the action of TaoNav does not cut it). Under the `#action` of TaoNav a block menu keeps its own inside and the height of a control, so the rail squares it like the button above. Axis and fin-view styled `.tao-dropdown-menu__button` from outside for their project and portfolio chips; they can drop it. The app shell starter has the chip now: the folder, the project, a chevron, a menu of the projects with the current one checked and «New project»; a round icon on the rail by `--tao-nav-compact`, in the header on a phone.
|
|
21
|
+
- **A plain `TaoList` (`bordered=false`) keeps air between a tinted row and the line.** Its rows are rounded and take a tint on hover and selection, and the line was their own bottom border, so the tint ran into it. The line now stands in an 8px gap between the rows, shorter than the row by the text inset on both sides, as the thread list of hub has it. A bordered list is as before.
|
|
22
|
+
- **Softer corners by default: 6 / 10 / 14 / 18px.** NextUp, Axis and fin-view each set the same five values over the kit, so they are the kit's now: `--tao-radius-sm` 6px (was 4), `-md` 10px (was 8), `-lg` 14px (was 12), the new `-xl` 18px; `--tao-radius-control` takes `md` (10px, was `sm` 4px) and `--tao-radius-panel` takes `xl` (18px, was `md` 8px). An app that set these values can drop them.
|
|
23
|
+
- **Scrollbars are 6px thick by default** (`--tao-scrollbar-size`, was 5px): a pixel easier to catch with the mouse, still thin.
|
|
24
|
+
|
|
25
|
+
- **`TaoTree` has a context menu of its own.** `menu` is a list of `TaoMenuItem`, or `(node, selected) => items` built for the row it opens on; the pick comes as `menu-select(id, node, selected)`. It opens on the right click anywhere on the row (not only over the label, as a `TaoContextMenu` in the `#label` slot did), on the Menu key and on Shift+F10, under the row from the start of its label; the focus goes back to the row when it closes, and a second right click moves it. The selection follows the file managers and IDEs: a right click outside the selection selects that row first (as `update:selected`, without `select`, so an app that opens a file on `select` does not open it), a right click inside a multiple selection keeps it and the menu acts on all of it (`selected` is those ids). An empty list leaves the browser's own menu. For a menu of your own the new `menu(node, event)` event comes on every request; `event.preventDefault()` in it keeps both ours and the browser's away. While the menu is open the selection keeps its accent, and a row that is not in the selection (`selection="none"`, a disabled row) is marked. Pure helper `menuSelection(mode, selected, node)` in `tree.ts`, types `TaoTreeMenu`, `TaoTreeTone`.
|
|
26
|
+
- **A node takes `hint` and `tone`.** `hint` is a quiet note after the label («library root», «3 files», «changed»); it gives way first when the row is narrow and is part of the row's name for a screen reader, after a hidden comma («App.vue, changed»). `tone` (`muted`, `accent`, `info`, `success`, `warning`, `danger`) colours the label: an excluded folder, a new or a broken file. On a filled row (hover, selection, the open menu) the plain text roles fell under 4.5:1 (dark `danger-text` 4.1, `text-muted` 4.3), so such a row takes the `*-text-hover` roles and a quiet colour a third of the way to the text: measured in the showcase, the worst pair is 4.9:1 in the light theme and 5.5:1 in the dark one. A colour is not the only sign of a state: say it in `hint` too.
|
|
27
|
+
- **The selection of a tree without the focus is grey**, as in an IDE: the accent tells which tree the keys go to. The showcase demo shows all of it (right click, Shift+F10, hints and tones, click outside the tree).
|
|
28
|
+
- **The rows of `TaoTree` can be moved**, by the pointer and by the keyboard, once the app listens to `@move`. The tree changes nothing: it hands `{ ids, parentId, index, targetId, position, copy }` to the app, which moves its data (the new helper `moveTreeNodes(nodes, move)` does it for a plain `TaoTreeNode[]`; a copy needs new ids, so it is the app's). `index` is the place among the children of `parentId` once the moved nodes are taken out, ready for a `splice`. `@move` is a prop as well as an event, so the tree waits for the promise it returns: the rows stay dimmed and `aria-busy` and cannot be moved again, and a rejected promise comes as `move-error` with the data untouched. Lazy children of a folder the move touched are loaded again.
|
|
29
|
+
- **The pointer:** a row lifts after 5px (a shaky click is still a click, and the click after a drop is not a pick); the middle of a folder puts the rows inside at the end, its top and bottom quarters before and after it, a leaf splits in halves, below an open folder is its first child, and below the last row of a folder the pointer going left takes the rows out of it, one level per indent. The place is a line from the level the rows will stand at, a folder is framed; a closed folder under the pointer opens after 650ms (a lazy one loads), the list scrolls at the edge of its scroll box, a ghost with the name (or «3 items») follows the pointer, Ctrl or Alt makes it a copy («+»), Escape and a lost window focus cancel. A selected row takes the whole selection, the topmost only (a child goes with its parent). Not by touch yet: on a phone a drag would fight the scroll, so it is keyboard and menu there.
|
|
30
|
+
- **The keyboard:** Ctrl+X or Ctrl+C on the rows, Ctrl+V on a folder (to its end) or on a row (after it), Escape forgets; each step is said in a live region («README.md moved to src.»), a place they cannot go is said and not done.
|
|
31
|
+
- **Where they may go:** never onto themselves or into their own descendants, never into a disabled folder, and no mark where nothing would change; `canDrop(move)` refuses more (a «no» cursor, no mark), `movable` picks the rows that can be moved. The pure part (`dropTarget`, `topmostIds`, `isTreeContainer`) is in `tree.ts` with its tests; texts `tree.countLabel`, `rootLabel`, `cutText`, `copyText`, `movedText`, `copiedText`, `canceledText`, `refusedText` (`en`, `ru`; optional in a locale of your own, like `menuLabel`, which is optional now too). The showcase demo moves for real, with a wait as a server would take («Slow server») and `node_modules` refused.
|
|
32
|
+
- **`sort`: a tree that keeps its own order.** `none` (the default) shows the data's order and a drag can put a row between others; `name` puts folders first and sorts by name as people read it (`Intl.Collator` of the locale, numbers as numbers: «file 2» before «file 10»; helper `compareTreeNodes(locale)`), a function is your own compare. The tree sorts what it shows, `nodes` is left as it is. With a sort a drag only changes the folder: onto a folder it puts the rows in it, onto any other row into that row's folder, with no line between rows (a place among siblings would be undone by the sort), and the top level is framed as a whole tree; a drop into the folder the rows are already in is no move. Ctrl+V follows the same rule. The default stays `none`: Axis and the WorldEditor of game-chronos keep an order of their own on purpose, and a sort switched on for them would shuffle it.
|
|
33
|
+
- **The selection is a tint, not an accent of the text.** A selected row keeps the colour of its text and icon (it was `accent-text`): the accent of a label is left to what the app marks on purpose with `tone`, or a walk through the tree shines as much as a mark. The tint is `accent-subtle` while the tree has the focus and grey without it, as before. The showcase demo no longer paints an open folder with the accent either.
|
|
34
|
+
- **A saved view of a tree comes back whole.** `expanded`, `selected` and `checked` are lists of ids, so an app can store them (TaoUX `createSavedStorage`) and give them back after a reload. A lazy folder in a restored `expanded` used to show open and empty: its children were loaded only on a click. Now every open lazy folder that is on screen loads by itself, and its own open children show up and load in turn, so a saved chain (`node_modules / vue / dist`) opens level by level; the `expanded` given is not rewritten. A folder whose load fails is closed again with `load-error`, once, not in a loop.
|
|
35
|
+
- **A double click acts, a single click selects.** A double click on a folder opens or closes it, on a node without children it emits the new `open(node)` (a file into an editor). Enter does the same after it selects, as the ARIA tree pattern asks (Enter on a branch used to only select it). The two clicks of a double click do not undo a multiple selection, a double click on the chevron, the box or the actions is not one on the row, and with `selection="none"` (where a click already toggles a folder) only a leaf is opened.
|
|
36
|
+
- **A menu with `closeOnScroll` closes only for a scroll that moves what it is for** (`TaoMenu`, and so `TaoContextMenu` and the menu of `TaoTree`): the page, or a container that holds the anchor; for a point, the element under it when the menu opens. Any scroll on the page used to close it: on the showcase an autoplaying carousel scrolled its track every few seconds and closed every open context menu, which looked like «the menu closes when the pointer leaves it». A scroll inside the menu still does not count.
|
|
37
|
+
|
|
3
38
|
## 5.50.0
|
|
4
39
|
|
|
5
40
|
Nothing to migrate: a component and an icon are added, and two looks are put right (the keys in a menu and a command list, the highlight of a command list row).
|
package/README.md
CHANGED
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
- **TaoSpoiler** — disclosure. `v-model` and `aria-expanded`. Neighbours do not close each other
|
|
74
74
|
- **TaoSpoilerGroup** — accordion: `v-model` is the open panel key (`null` = all closed); spoilers take `name`. Without `v-model` the group keeps that key itself
|
|
75
75
|
- **TaoTabs** — tabbed sections
|
|
76
|
-
- **TaoNav** — navigation between the sections of an app: one list of items (`icon`, `href`, `badge`), three looks. `layout="auto"` picks by the width of TaoNav itself (container queries, no JS): a bottom bar below 600px (more than five items: «More» with a menu), a rail with icons below 840px, a side panel with labels from 840px. With the page in its slot it lays the page out: the bar sticks to the bottom (safe area kept), the side list to the top. `floating` lifts the bar into a detached pill with a shadow (the rail and the side panel stay). `indicator="line"` marks the current section with a short accent line instead of a tint. The `#action` slot is the screen's main action and moves with the navigation: round above the bar at the end side, at the top of the rail, extended with its text at the top of the side panel. `select(id, event)` lets a router take over a link. Widths: `--tao-nav-rail-width` (80px), `--tao-nav-drawer-width` (240px); `--tao-nav-action-radius` for the action in the side panel; `surface="glass"` lets the page show blurred through the bar; `#footer` for a small line under the items on the side; `badgeTone="neutral"` keeps the accent on the current item's counter only. The current item is bolder as well as accent-coloured (`--tao-nav-active-weight`). `.tao-nav` is the whole layout, `.tao-nav__panel` the navigation, `.tao-nav__content` the page
|
|
76
|
+
- **TaoNav** — navigation between the sections of an app: one list of items (`icon`, `href`, `badge`), three looks. `layout="auto"` picks by the width of TaoNav itself (container queries, no JS): a bottom bar below 600px (more than five items: «More» with a menu), a rail with icons below 840px, a side panel with labels from 840px. With the page in its slot it lays the page out: the bar sticks to the bottom (safe area kept), the side list to the top. `floating` lifts the bar into a detached pill with a shadow (the rail and the side panel stay). `fill` makes it the shell of an app: it takes its parent's height, the page scrolls inside it instead of the document and the footer stands at the bottom of the side panel (a ready shell: the Guide, «Starters»); several children of `#action` stack, and `--tao-nav-compact` (1 on the bar and the rail, 0 on the side) is there for your own pieces in the slots. `indicator="line"` marks the current section with a short accent line instead of a tint. The `#action` slot is the screen's main action and moves with the navigation: round above the bar at the end side, at the top of the rail, extended with its text at the top of the side panel. `select(id, event)` lets a router take over a link. Widths: `--tao-nav-rail-width` (80px), `--tao-nav-drawer-width` (240px); `--tao-nav-action-radius` for the action in the side panel; `surface="glass"` lets the page show blurred through the bar; `#footer` for a small line under the items on the side; `badgeTone="neutral"` keeps the accent on the current item's counter only. The current item is bolder as well as accent-coloured (`--tao-nav-active-weight`). `.tao-nav` is the whole layout, `.tao-nav__panel` the navigation, `.tao-nav__content` the page
|
|
77
77
|
- **TaoTooltip** — hover hint, the opposite of the theme (`--tao-tooltip-bg`, `--tao-tooltip-text`); `shortcut` adds the key as a key cap. `placement`: `top` / `bottom` / `left` / `right`, each with `-start` / `-end`; flips at the viewport edge
|
|
78
78
|
- **TaoKbd** — a key (`T`, `Ctrl+K`): one look for the key in a button, a tooltip, a menu and a command list. `cap` is a key cap, `plain` is muted text
|
|
79
79
|
- **TaoPopover** — click panel with any slot content, Esc and outside click; `placement` as Tooltip. Not a tooltip, not an action menu
|
|
@@ -114,13 +114,13 @@
|
|
|
114
114
|
|
|
115
115
|
### Data display
|
|
116
116
|
|
|
117
|
-
- **TaoTable** — simple table: columns, empty, loading, sort via `v-model:sort`. `head` tints the header, `lines` draws row rules (both on by default). `striped` starts on the first row; `striped="even"` starts on the second. Not a datagrid.
|
|
117
|
+
- **TaoTable** — simple table: columns, empty, loading, sort via `v-model:sort`. `head` tints the header, `lines` draws row rules (both on by default). `striped` starts on the first row; `striped="even"` starts on the second. `clickable` rows work from the keyboard (one Tab stop, the arrows walk the rows, Enter and Space click). In a narrow place: `stack` turns each row into a card under 600px of the table's own width (a container query), `minWidth` keeps the table readable and scrolls it sideways; a column can be `nowrap` or have its own `minWidth`. Generic: the row type comes from `rows` (an interface, a class, a `readonly` array all do) and types the slots and `row-click`; `TaoTableColumn<T>`. Not a datagrid.
|
|
118
118
|
- **TaoSparkline** / **TaoMeter** / **TaoDonut** — small charts for a card or a line of text: a trend (`values` with `null` gaps, `area`, `dot`), a measured value in a range (`role="meter"`, coloured by `low` / `high` / `optimum` as the HTML `<meter>`), a share of a whole (`segments`, or one `value` of `max`, `legend`, a centre slot). The series colours are the roles `--tao-color-chart-1…6` (the first is the accent, so palettes recolour them). For axes and tooltips use a chart library: `taoChartTheme()` gives it the theme colours as `rgb()`, `watchTaoChartTheme(apply)` re-applies them on a theme or palette change
|
|
119
119
|
- **TaoHeatmap** — a value for each pair of two things (orders by weekday and hour): `values` by `rows` × `cols`, the colour by thresholds (`steps`, round numbers by default) that the legend names («500+»), the faint levels striped, a tip with the exact number. A `role="grid"` the arrows move through, a screen reader reads the row, the column and the number; it fits its container and shows the column names as often as they fit
|
|
120
120
|
- **TaoPagination** — pages with ellipsis. Clicking “…” jumps `jump` pages (5 by default). `pageSizes` adds a «Per page» choice (`v-model:page-size`); the first row on screen stays on screen
|
|
121
121
|
- **TaoEmpty** — empty list, no results, no access
|
|
122
122
|
- **TaoList** / **TaoListItem** — list row: icon, title, caption, hover action. Not Select, not a table; `roving` makes it one Tab stop with the arrows between the rows
|
|
123
|
-
- **TaoTree** — files or objects as a tree: `v-model:expanded`, selection `none | single | multiple` (`v-model:selected`), checkboxes with mixed parents (`checkable`, `v-model:checked`), lazy children (`hasChildren` + `load`). ARIA tree: one tab stop, arrows, `→` / `←` in and out, Home / End, `*`, type-ahead. Slots `#icon`, `#label`, `#actions`; rows on the control tokens (size and density)
|
|
123
|
+
- **TaoTree** — files or objects as a tree: `v-model:expanded`, selection `none | single | multiple` (`v-model:selected`), checkboxes with mixed parents (`checkable`, `v-model:checked`), lazy children (`hasChildren` + `load`), a double click (or Enter) opens a folder or emits `open` for a file, a context menu of the row (`menu`, right click, Menu key, Shift+F10), a `hint` after the name and a `tone` of the label; the selection is grey while the tree has no focus. Rows move by dragging and by Ctrl+X / Ctrl+V (`@move`, which may return a promise; `canDrop`, `movable`; the helper `moveTreeNodes`): the tree asks, the app moves its data. `sort="name"` shows folders first by name, and then a drag only changes the folder. ARIA tree: one tab stop, arrows, `→` / `←` in and out, Home / End, `*`, type-ahead. Slots `#icon`, `#label`, `#actions`; rows on the control tokens (size and density)
|
|
124
124
|
- **TaoStages** — stage list: `wait` / `work` / `ok` / `bad`. Not a linear stepper
|
|
125
125
|
- **TaoTimeline** — a vertical feed of events: order steps, releases, a log. `active` fills the line up to the current event (`aria-current="step"`), without it the feed is a log of the past; `tone` and `icon` per marker, `#marker` / `#title` / `#content` slots; `align="alternate"` puts events on both sides and folds into one below 480px of its own width
|
|
126
126
|
- **TaoSkeleton** — loading placeholder (text / title / circle / rect)
|
|
@@ -137,10 +137,10 @@
|
|
|
137
137
|
|
|
138
138
|
### Navigation
|
|
139
139
|
|
|
140
|
-
- **TaoLink** — `<NuxtLink>` in Nuxt, `<RouterLink>` with vue-router, otherwise a plain `<a>` — no extra setup
|
|
140
|
+
- **TaoLink** — `<NuxtLink>` in Nuxt, `<RouterLink>` with vue-router, otherwise a plain `<a>` — no extra setup. Underlined by default (in the light theme a link is the text colour, so the line is the only sign of it); `underline="hover"` for a link that is clear from its place, `"none"` for no line
|
|
141
141
|
- **TaoStretchedLink** — a `TaoLink` that makes a whole card or row one link while the buttons inside it still work: `tao-stretched` on the container, `tao-stretched-raise` on a control that must stay clickable by itself. The keyboard sees one link and its focus ring goes round the container (`--tao-stretched-radius`). Never put `filter` / `transform` on the link: the layer would shrink under the pointer and the cursor would flicker The text under the stretched layer cannot be selected with the mouse (lift what must be selectable with `tao-stretched-raise`), and the link is named only by what is written in it: for a card, point `aria-describedby` of the link at the description.
|
|
142
142
|
- **TaoBreadcrumb** — crumbs: the last item is the current page
|
|
143
|
-
- **TaoDropdownMenu** / **TaoMenu** — a menu from a plain data tree `items`: submenus, checkboxes, radios, separators, group labels, shortcuts to show, disabled items. Arrows, Home / End, type-ahead, `→` / `←` for submenus, Esc closes the top level first. `TaoMenu` is the panel itself, for your own shells (a menu bar, a context menu); its `anchor` is an element or a point `{ x, y }` of the screen (a menu at the pointer or at a drop point, no anchor element; `TaoPopover` takes the same `anchor`); flips at the viewport edge; `size` makes the button a compact square, `dots="horizontal"` lays the three dots down (⋯), `:tabbable="false"` takes it out of the Tab order
|
|
143
|
+
- **TaoDropdownMenu** / **TaoMenu** — a menu from a plain data tree `items`: submenus, checkboxes, radios, separators, group labels, shortcuts to show, disabled items. Arrows, Home / End, type-ahead, `→` / `←` for submenus, Esc closes the top level first. `TaoMenu` is the panel itself, for your own shells (a menu bar, a context menu); its `anchor` is an element or a point `{ x, y }` of the screen (a menu at the pointer or at a drop point, no anchor element; `TaoPopover` takes the same `anchor`); flips at the viewport edge; `size` makes the button a compact square, `dots="horizontal"` lays the three dots down (⋯), `:tabbable="false"` takes it out of the Tab order `block` makes the button of `TaoDropdownMenu` fill its place and draw nothing of its own, for a trigger that is a whole chip of yours in `#button` (the project under the main action of TaoNav).
|
|
144
144
|
- **TaoMenubar** / **TaoContextMenu** — the menu bar of an editor and the menu on the right click, on `TaoMenu`. The bar is one tab stop (`role="menubar"`): `←` / `→` walk it, `↓` / Enter open, with a menu open `←` / `→` and the pointer move to the neighbour menu; an entry without `items` is a plain action. The context menu opens at the pointer (or at the element for the Menu key / Shift+F10) and wraps its content without a box of its own
|
|
145
145
|
- **TaoToolbar** / **TaoToolbarGroup** / **TaoToolbarSeparator** — a bar of tools (`role="toolbar"`): one tab stop, `←` / `→` (or `↑` / `↓` when `orientation="vertical"`) walk the items, Home / End; inside a `TaoSegmented` the arrows pick the option and go on from its edge. Groups are split by a thin line across the bar; `inset` puts a sunken pill behind a group. Toggles are `TaoButton` with `v-model:pressed`. `overflow` keeps the bar in one row: the groups that do not fit go, the last one first, under a «⋮» button that opens them in a panel (the same buttons, not copies); a `TaoToolbarGroup` with `pinned` stays
|
|
146
146
|
- **TaoScrollTop** — floating “back to top”: `solid` / `ghost` / `text` looks, `side`, a mouse-hover `label`. Appears on reverse scroll after `boundary`
|
|
@@ -338,7 +338,7 @@ function onLanguageChange(lang) {
|
|
|
338
338
|
|
|
339
339
|
Without the plugin (individual components) `setTaoLocale()` is the only call you need.
|
|
340
340
|
|
|
341
|
-
Scrollbars are thin (
|
|
341
|
+
Scrollbars are thin (6px) with the accent thumb. To change them, set `--tao-scrollbar-size`, `--tao-scrollbar-thumb`, `--tao-scrollbar-track` (and `--tao-scrollbar-width` for Firefox) on the page or on a block; the class `tao-native-scrollbars` on `<html>` or on a block gives the browser's own back. A panel with sliders is in the showcase, under «Layers and theming».
|
|
342
342
|
|
|
343
343
|
Which language to start with: `detectTaoLanguage(['en', 'ru'])` answers with the one of your languages that the browser prefers (`ru-RU` fits `ru`), for example `saved ?? detectTaoLanguage(['en', 'ru'])`; on a server pass the wishes of the request: `{ requested: parseAcceptLanguage(header) }`.
|
|
344
344
|
|
|
@@ -712,7 +712,7 @@ document.documentElement.setAttribute('data-tao-theme', 'light')
|
|
|
712
712
|
- `--tao-color-text*` — text (default / strong / subtle / muted / disabled)
|
|
713
713
|
- `--tao-color-danger*`, `--tao-color-success*`, `--tao-color-warning*`, `--tao-color-info*` — status colors
|
|
714
714
|
- `--tao-color-input-*` — fields, because input bg/text often differs from surface/text
|
|
715
|
-
- `--tao-radius-control`, `--tao-radius-panel` — radii (small controls vs large panels)
|
|
715
|
+
- `--tao-radius-control`, `--tao-radius-panel` — radii (small controls vs large panels; 10px and 18px, from the scale `--tao-radius-sm` / `-md` / `-lg` / `-xl` = 6 / 10 / 14 / 18px)
|
|
716
716
|
- `--tao-shadow-panel`, `--tao-shadow-overlay` — shadows
|
|
717
717
|
- `--tao-font-size-*` — type scale in `primitives.css`: `xs`–`xl` controls, `2xl`–`4xl` titles / prose
|
|
718
718
|
- `--tao-control-height-*` (26 / 36 / 44px), `--tao-control-padding-x-*`, `--tao-control-padding-y-*`, `--tao-control-font-size-*`, `--tao-control-font-size-secondary-*`, `--tao-button-padding-x-*`, `--tao-indicator-size-*`, `--tao-tag-height-*` / `-padding-x-*` / `-font-size-*` — the size scale in `primitives.css`. Components read the current values from `contexts/size.css`: `--tao-control-height`, `--tao-control-padding-x` / `-y`, `--tao-control-font-size`, `--tao-control-font-size-secondary`, `--tao-button-padding-x`, `--tao-indicator-size`, `--tao-tag-height` / `-padding-x` / `-font-size`. Use them in your own controls to match the size around them.
|
package/README.ru.md
CHANGED
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
- **TaoSpoiler** — раскрывающийся блок. `v-model` и `aria-expanded`. Несколько подряд сами друг друга не закрывают
|
|
74
74
|
- **TaoSpoilerGroup** — аккордеон: `v-model` — ключ открытой панели (`null` — все закрыты), у спойлера `name`. Без `v-model` группа помнит ключ сама
|
|
75
75
|
- **TaoTabs** — вкладки для переключения между секциями контента
|
|
76
|
-
- **TaoNav** — навигация между разделами приложения: один список пунктов (`icon`, `href`, `badge`), три вида. `layout="auto"` выбирает по ширине самого TaoNav (container queries, без JS): нижняя панель до 600px (больше пяти пунктов: «Ещё» с меню), рейка с иконками до 840px, боковая панель с подписями от 840px. Со страницей в слоте раскладывает её сам: панель прилипает к низу (с учётом безопасной зоны), боковой список к верху. `floating` отрывает нижнюю панель в отдельную «пилюлю» с тенью (рейка и боковая панель не меняются). `indicator="line"` отмечает текущий раздел короткой чертой акцента вместо подложки. Слот `#action` — главное действие экрана, оно идёт за навигацией: круглое над панелью у конечного края, наверху рейки, широкое с текстом наверху боковой панели. `select(id, event)` даёт роутеру перехватить ссылку. Ширины: `--tao-nav-rail-width` (80px), `--tao-nav-drawer-width` (240px); `--tao-nav-action-radius` — углы действия в боковой панели; `surface="glass"` — страница размыто просвечивает сквозь панель; `#footer` — мелкая строка под пунктами сбоку; `badgeTone="neutral"` — акцент только у счётчика текущего пункта. Текущий пункт ещё и жирнее (`--tao-nav-active-weight`). `.tao-nav` — вся раскладка, `.tao-nav__panel` — навигация, `.tao-nav__content` — страница
|
|
76
|
+
- **TaoNav** — навигация между разделами приложения: один список пунктов (`icon`, `href`, `badge`), три вида. `layout="auto"` выбирает по ширине самого TaoNav (container queries, без JS): нижняя панель до 600px (больше пяти пунктов: «Ещё» с меню), рейка с иконками до 840px, боковая панель с подписями от 840px. Со страницей в слоте раскладывает её сам: панель прилипает к низу (с учётом безопасной зоны), боковой список к верху. `floating` отрывает нижнюю панель в отдельную «пилюлю» с тенью (рейка и боковая панель не меняются). `fill` делает его оболочкой приложения: он берёт высоту родителя, страница прокручивается внутри, а не документом, подвал стоит внизу боковой панели (готовая оболочка: Guide, «Каркасы»); несколько детей `#action` встают друг под другом, а `--tao-nav-compact` (1 в нижней панели и рейке, 0 сбоку) — для своих вещей в слотах. `indicator="line"` отмечает текущий раздел короткой чертой акцента вместо подложки. Слот `#action` — главное действие экрана, оно идёт за навигацией: круглое над панелью у конечного края, наверху рейки, широкое с текстом наверху боковой панели. `select(id, event)` даёт роутеру перехватить ссылку. Ширины: `--tao-nav-rail-width` (80px), `--tao-nav-drawer-width` (240px); `--tao-nav-action-radius` — углы действия в боковой панели; `surface="glass"` — страница размыто просвечивает сквозь панель; `#footer` — мелкая строка под пунктами сбоку; `badgeTone="neutral"` — акцент только у счётчика текущего пункта. Текущий пункт ещё и жирнее (`--tao-nav-active-weight`). `.tao-nav` — вся раскладка, `.tao-nav__panel` — навигация, `.tao-nav__content` — страница
|
|
77
77
|
- **TaoTooltip** — всплывающая подсказка при наведении, обратная теме (`--tao-tooltip-bg`, `--tao-tooltip-text`); `shortcut` добавляет клавишу значком. `placement`: `top` / `bottom` / `left` / `right`, у каждого `-start` / `-end`; у края экрана переворачивается
|
|
78
78
|
- **TaoKbd** — клавиша (`T`, `Ctrl+K`): один вид клавиши в кнопке, подсказке, меню и списке команд. `cap` значок, `plain` приглушённый текст
|
|
79
79
|
- **TaoPopover** — панель по клику: слот с любым контентом, Esc и клик снаружи; `placement` как у Tooltip. Не тултип и не меню действий
|
|
@@ -114,13 +114,13 @@
|
|
|
114
114
|
|
|
115
115
|
### Отображение данных
|
|
116
116
|
|
|
117
|
-
- **TaoTable** — простая таблица: колонки, empty, loading, сортировка через `v-model:sort`. `head` — подсветка шапки, `lines` — линии между рядами (оба по умолчанию включены). `striped` — зебра с первой строки, `striped="even"` — со второй. Не datagrid.
|
|
117
|
+
- **TaoTable** — простая таблица: колонки, empty, loading, сортировка через `v-model:sort`. `head` — подсветка шапки, `lines` — линии между рядами (оба по умолчанию включены). `striped` — зебра с первой строки, `striped="even"` — со второй. Строки `clickable` работают с клавиатуры (одна остановка Tab, стрелки ходят по строкам, Enter и Space нажимают). В узком месте: `stack` делает каждую строку карточкой при ширине самой таблицы меньше 600px (контейнерный запрос), `minWidth` оставляет таблицу читаемой и прокручивает вбок; колонка может быть `nowrap` или со своим `minWidth`. Обобщённая: тип строки берётся из `rows` (подойдут interface, класс, `readonly`-массив) и типизирует слоты и `row-click`; `TaoTableColumn<T>`. Не datagrid.
|
|
118
118
|
- **TaoSparkline** / **TaoMeter** / **TaoDonut** — маленькие графики для карточки или строки текста: тренд (`values` с разрывами `null`, `area`, `dot`), измеренное значение в диапазоне (`role="meter"`, цвет по `low` / `high` / `optimum`, как у HTML `<meter>`), доля целого (`segments` или одно `value` из `max`, `legend`, слот в центре). Цвета серий — роли `--tao-color-chart-1…6` (первый — акцент, поэтому палитры их перекрашивают). Для осей и подсказок берите библиотеку графиков: `taoChartTheme()` отдаёт ей цвета темы в `rgb()`, `watchTaoChartTheme(apply)` применяет их заново при смене темы или палитры
|
|
119
119
|
- **TaoHeatmap** — значение для каждой пары (заказы по дню недели и часу): `values` по `rows` × `cols`, цвет по порогам (`steps`, по умолчанию круглые числа), которые называет легенда («500+»), бледные уровни в полоску, подсказка с точным числом. `role="grid"`, по которому ходят стрелками; скринридер читает строку, столбец и число; занимает ширину контейнера и показывает имена столбцов так часто, как они помещаются
|
|
120
120
|
- **TaoPagination** — страницы с многоточием. Клик по «…» прыгает на `jump` страниц (5 по умолчанию). `pageSizes` добавляет выбор «На странице» (`v-model:page-size`); первая видимая строка остаётся на экране
|
|
121
121
|
- **TaoEmpty** — пустой список, нет результатов, нет прав
|
|
122
122
|
- **TaoList** / **TaoListItem** — строка списка: иконка, заголовок, подпись, действие по ховеру. Не Select и не таблица; `roving` — одна остановка Tab, стрелки ходят по строкам
|
|
123
|
-
- **TaoTree** — файлы или объекты деревом: `v-model:expanded`, выбор `none | single | multiple` (`v-model:selected`), чекбоксы с промежуточным состоянием родителя (`checkable`, `v-model:checked`), ленивая подгрузка (`hasChildren` + `load`)
|
|
123
|
+
- **TaoTree** — файлы или объекты деревом: `v-model:expanded`, выбор `none | single | multiple` (`v-model:selected`), чекбоксы с промежуточным состоянием родителя (`checkable`, `v-model:checked`), ленивая подгрузка (`hasChildren` + `load`), двойной клик (или Enter) раскрывает папку или шлёт `open` для файла, контекстное меню строки (`menu`, правый клик, клавиша Menu, Shift+F10), подсказка `hint` после имени и тон подписи `tone`; без фокуса выбор серый. Строки переносятся перетаскиванием и Ctrl+X / Ctrl+V (`@move`, может вернуть обещание; `canDrop`, `movable`; помощник `moveTreeNodes`): дерево просит, данные переносит приложение. `sort="name"` показывает папки первыми и по имени, тогда перенос меняет только папку. ARIA tree: одна остановка Tab, стрелки, `→` / `←` внутрь и наружу, Home / End, `*`, поиск по буквам. Слоты `#icon`, `#label`, `#actions`; строки на токенах контролов (размер и плотность)
|
|
124
124
|
- **TaoStages** — список стадий: `wait` / `work` / `ok` / `bad`. Не линейный степпер
|
|
125
125
|
- **TaoTimeline** — вертикальная лента событий: шаги заказа, релизы, журнал. `active` заливает линию до текущего события (`aria-current="step"`), без него лента — журнал прошедшего; `tone` и `icon` у маркера, слоты `#marker` / `#title` / `#content`; `align="alternate"` раскладывает события по обе стороны и складывается в одну уже 480px своей ширины
|
|
126
126
|
- **TaoSkeleton** — плейсхолдер загрузки (text / title / circle / rect)
|
|
@@ -137,10 +137,10 @@
|
|
|
137
137
|
|
|
138
138
|
### Навигация и взаимодействие
|
|
139
139
|
|
|
140
|
-
- **TaoLink** — `<NuxtLink>` в Nuxt, `<RouterLink>` при vue-router, иначе обычный `<a>` — без дополнительной
|
|
140
|
+
- **TaoLink** — `<NuxtLink>` в Nuxt, `<RouterLink>` при vue-router, иначе обычный `<a>` — без дополнительной настройки. Подчёркнут по умолчанию (в светлой теме ссылка цвета текста, и линия — единственный её признак); `underline="hover"` для ссылки, понятной по месту, `"none"` без линии
|
|
141
141
|
- **TaoStretchedLink** — `TaoLink`, который делает целую карточку или строку одной ссылкой, а кнопки внутри продолжают работать: `tao-stretched` на контейнере, `tao-stretched-raise` на элементе, который должен нажиматься сам. Клавиатура видит одну ссылку, кольцо фокуса идёт по контейнеру (`--tao-stretched-radius`). Не давайте ссылке `filter` / `transform`: слой сожмётся под курсором, и курсор начнёт мигать Текст под растянутым слоем нельзя выделить мышью (то, что должно выделяться, поднимите через `tao-stretched-raise`), а имя ссылке даёт только то, что в ней написано: для карточки направьте `aria-describedby` ссылки на описание.
|
|
142
142
|
- **TaoBreadcrumb** — крошки: последний пункт — текущая страница
|
|
143
|
-
- **TaoDropdownMenu** / **TaoMenu** — меню из простого дерева данных `items`: подменю, чекбоксы, радио, разделители, подписи групп, сочетания для показа, недоступные пункты. Стрелки, Home / End, быстрый поиск по букве, `→` / `←` для подменю, Esc закрывает верхний уровень первым. `TaoMenu` — сама панель для своих оболочек (полоса меню, контекстное меню); её `anchor` — элемент или точка экрана `{ x, y }` (меню у указателя или в точке сброса, без элемента-якоря; `TaoPopover` принимает тот же `anchor`); у края экрана переворачивается; `size` делает кнопку компактным квадратом, `dots="horizontal"` кладёт три точки горизонтально (⋯), `:tabbable="false"` убирает её из порядка Tab
|
|
143
|
+
- **TaoDropdownMenu** / **TaoMenu** — меню из простого дерева данных `items`: подменю, чекбоксы, радио, разделители, подписи групп, сочетания для показа, недоступные пункты. Стрелки, Home / End, быстрый поиск по букве, `→` / `←` для подменю, Esc закрывает верхний уровень первым. `TaoMenu` — сама панель для своих оболочек (полоса меню, контекстное меню); её `anchor` — элемент или точка экрана `{ x, y }` (меню у указателя или в точке сброса, без элемента-якоря; `TaoPopover` принимает тот же `anchor`); у края экрана переворачивается; `size` делает кнопку компактным квадратом, `dots="horizontal"` кладёт три точки горизонтально (⋯), `:tabbable="false"` убирает её из порядка Tab `block` растягивает кнопку `TaoDropdownMenu` на её место и снимает с неё всё своё, для кнопки, которая целиком ваша «фишка» в `#button` (проект под главным действием TaoNav).
|
|
144
144
|
- **TaoMenubar** / **TaoContextMenu** — полоса меню редактора и меню по правой кнопке, на `TaoMenu`. Полоса — одна остановка Tab (`role="menubar"`): `←` / `→` ходят по ней, `↓` / Enter открывают, при открытом меню `←` / `→` и указатель переходят к соседнему; пункт без `items` — обычное действие. Контекстное меню открывается у указателя (или у элемента для клавиши Menu / Shift+F10) и оборачивает содержимое без своей коробки
|
|
145
145
|
- **TaoToolbar** / **TaoToolbarGroup** / **TaoToolbarSeparator** — панель инструментов (`role="toolbar"`): одна остановка Tab, `←` / `→` (или `↑` / `↓` при `orientation="vertical"`) ходят по элементам, Home / End; внутри `TaoSegmented` стрелки выбирают вариант и идут дальше с его края. Группы делит тонкая черта поперёк панели; `inset` кладёт под группу утопленную подложку. Переключатели — `TaoButton` с `v-model:pressed`. `overflow` держит панель в одной строке: группы, которые не влезли, уходят (последняя первой) под кнопку «⋮», она открывает их в панели (те же кнопки, а не копии); `TaoToolbarGroup` с `pinned` остаётся
|
|
146
146
|
- **TaoScrollTop** — плавающая кнопка «наверх»: виды `solid` / `ghost` / `text`, `side`, подпись `label` при наведении мыши. Появляется при обратном скролле после `boundary`
|
|
@@ -338,7 +338,7 @@ function onLanguageChange(lang) {
|
|
|
338
338
|
|
|
339
339
|
Без плагина (отдельные компоненты) достаточно одного вызова `setTaoLocale()`.
|
|
340
340
|
|
|
341
|
-
Полосы прокрутки тонкие (
|
|
341
|
+
Полосы прокрутки тонкие (6px) с акцентным бегунком. Чтобы изменить, задайте `--tao-scrollbar-size`, `--tao-scrollbar-thumb`, `--tao-scrollbar-track` (и `--tao-scrollbar-width` для Firefox) на странице или на блоке; класс `tao-native-scrollbars` на `<html>` или на блоке возвращает родные. Панель с ползунками есть в шоукейсе, в разделе «Слои и темизация».
|
|
342
342
|
|
|
343
343
|
С какого языка начать: `detectTaoLanguage(['en', 'ru'])` отвечает тем из ваших языков, который предпочитает браузер (`ru-RU` подходит к `ru`), например `saved ?? detectTaoLanguage(['en', 'ru'])`; на сервере передайте пожелания запроса: `{ requested: parseAcceptLanguage(header) }`.
|
|
344
344
|
|
|
@@ -714,7 +714,7 @@ document.documentElement.setAttribute('data-tao-theme', 'light')
|
|
|
714
714
|
- `--tao-color-text*` — текст (обычный / усиленный / subtle / приглушённый / disabled)
|
|
715
715
|
- `--tao-color-danger*`, `--tao-color-success*`, `--tao-color-warning*`, `--tao-color-info*` — статусные цвета
|
|
716
716
|
- `--tao-color-input-*` — поля ввода отдельно, т.к. фон/текст полей часто не совпадают с surface/text
|
|
717
|
-
- `--tao-radius-control`, `--tao-radius-panel` — скругления (мелкие контролы vs крупные
|
|
717
|
+
- `--tao-radius-control`, `--tao-radius-panel` — скругления (мелкие контролы vs крупные панели; 10px и 18px, из шкалы `--tao-radius-sm` / `-md` / `-lg` / `-xl` = 6 / 10 / 14 / 18px)
|
|
718
718
|
- `--tao-shadow-panel`, `--tao-shadow-overlay` — тени
|
|
719
719
|
- `--tao-font-size-*` — шкала кегля в `primitives.css`: `xs`–`xl` контролы, `2xl`–`4xl` заголовки / проза
|
|
720
720
|
- `--tao-control-height-*` (26 / 36 / 44px), `--tao-control-padding-x-*`, `--tao-control-padding-y-*`, `--tao-control-font-size-*`, `--tao-control-font-size-secondary-*`, `--tao-button-padding-x-*`, `--tao-indicator-size-*`, `--tao-tag-height-*` / `-padding-x-*` / `-font-size-*` — шкала размеров в `primitives.css`. Компоненты читают текущие значения из `contexts/size.css`: `--tao-control-height`, `--tao-control-padding-x` / `-y`, `--tao-control-font-size`, `--tao-control-font-size-secondary`, `--tao-button-padding-x`, `--tao-indicator-size`, `--tao-tag-height` / `-padding-x` / `-font-size`. Используйте их в своих контролах, чтобы попасть в размер окружения.
|