@1337exp/taoui 5.49.2 → 5.51.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 +38 -0
- package/README.md +7 -6
- package/README.ru.md +7 -6
- package/dist/index.d.ts +479 -143
- package/dist/index.js +3096 -2189
- 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 +1416 -1392
- package/skills/taoui/references/patterns.md +273 -241
- package/skills/taoui/references/starters.md +435 -0
- package/src/styles/base.css +4 -4
- package/src/styles/tokens/primitives.css +8 -5
- package/src/styles/tokens/semantic.css +8 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 5.51.0
|
|
4
|
+
|
|
5
|
+
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; }`.
|
|
6
|
+
|
|
7
|
+
- **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`).
|
|
8
|
+
- **`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.
|
|
9
|
+
- **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.
|
|
10
|
+
- **`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.
|
|
11
|
+
- **`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.
|
|
12
|
+
- **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.
|
|
13
|
+
- **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.
|
|
14
|
+
- **Scrollbars are 6px thick by default** (`--tao-scrollbar-size`, was 5px): a pixel easier to catch with the mouse, still thin.
|
|
15
|
+
|
|
16
|
+
- **`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`.
|
|
17
|
+
- **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.
|
|
18
|
+
- **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).
|
|
19
|
+
- **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.
|
|
20
|
+
- **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.
|
|
21
|
+
- **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.
|
|
22
|
+
- **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.
|
|
23
|
+
- **`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.
|
|
24
|
+
- **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.
|
|
25
|
+
- **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.
|
|
26
|
+
- **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.
|
|
27
|
+
- **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.
|
|
28
|
+
|
|
29
|
+
## 5.50.0
|
|
30
|
+
|
|
31
|
+
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).
|
|
32
|
+
|
|
33
|
+
- **The keys of a menu and a command list are on the line of their label again.** `TaoKbd` `plain` kept the height of the key cap (`1.7em`, about 24px): on a text line it did nothing, but in a flex row (a menu row, a command list row) the key is a block, so its text sat at the top of that box, a few pixels above the label. `plain` now has `height: auto`, and a test holds that every box property of the cap is reset on it. This reached `TaoMenu` (and so `TaoContextMenu`, `TaoDropdownMenu`, `TaoMenubar`) and `TaoCommandList` (`TaoCommandPalette`).
|
|
34
|
+
- **The highlighted row of a command list has the corners of a menu row.** The list was inset by 8px and the row corners are the panel radius minus the inset, which is 0 with the default 8px radius: a bar that did not touch the edges and had square corners. The inset is the 4px of `TaoMenu` now (one `--_inset` for the list padding, the row corners and the start of the field text), so the corners are 4px and the text of the field still stands over the labels of the rows.
|
|
35
|
+
|
|
36
|
+
- **New `TaoLanguageSwitch`:** the language of the interface as a globe that opens a list of the languages, each under its own name (`Русский`, `English`, `Deutsch`), the current one checked. `languages` is codes or `{ code, label }`, `v-model` is the code; the names come from the engine (`Intl.DisplayNames`, the helper `taoLanguageName(code)` is exported), so there is no table to keep. It shows the name of the current language beside the globe, `icon-only` leaves the globe (a phone); the accessible name of the button is «Language: English» either way (the visible word is inside it, and the label is a locale text: `languageSwitch.label`, `en` / `ru` built in). It writes `<html lang>` on mount and on a change (`:apply="false"` to do it yourself). What it does not do, on purpose: it knows none of your texts and stores nothing; the messages of the app, the storage and `setTaoLocale(localeRu)` for the built-in texts stay yours (`@change` is the place). Built on `TaoDropdownMenu`, so the list, the keys and the focus return are the menu's. Every name carries its own `lang`, so a screen reader reads «Deutsch» in German.
|
|
37
|
+
- **Menu items take `lang`.** `TaoMenuItem` (`item`, `checkbox`, `radio`, `label`) has an optional `lang`: the language of the label when it is not the page's, written as `lang` on the row (`TaoMenu`, `TaoDropdownMenu`, `TaoContextMenu`). Without it nothing changes.
|
|
38
|
+
- **Icon `tao-globe`**, beside `tao-sun`, `tao-moon` and `tao-monitor` for the theme: the sign of the switch above (44 built-in icons now).
|
|
39
|
+
- **The Guide: «Switching the language».** The do (the switch beside the theme toggle) and the don't (`EN | RU | DE | FR | JA` in a `TaoSegmented`), the rule and the reason: the name of a language in itself, no flags (a flag is a country, and the W3C Internationalization guidance says not to use them for language links), no codes, and a list that only grows is a menu from the start. The header of the showcase has the switch now instead of the segmented `RU | EN`.
|
|
40
|
+
|
|
3
41
|
## 5.49.2
|
|
4
42
|
|
|
5
43
|
Nothing to migrate. A segmented control whose captions fit looks and measures as before; one that did not fit used to lose its last words, and now wraps them.
|
package/README.md
CHANGED
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
- **TaoCard** — card with media / header / title / footer slots and a `#corner` (a tag, a menu button). `#media` can be a photo or `TaoCarousel`; `closable` adds a cross and the `close` event. `flush` is a tile (no padding/shadow, fills the cell); `#overlay` is a scrim on the media; `stripe="top | left | bottom"` with `stripeTone` (a tone or the palette `gradient`) draws a coloured stripe the corners clip
|
|
61
61
|
- **TaoCopy** — clipboard icon. After a click, a “Copied” tooltip; if the trigger is gone, the tooltip is too
|
|
62
62
|
- **TaoThemeToggle** — the light / dark switch as one icon button (a sun or a moon); reads and flips `data-tao-mode` of `<html>`, or works from `v-model`; `system` adds a third, «follow the system» state (a monitor)
|
|
63
|
+
- **TaoLanguageSwitch** — the language of the interface: a globe (`tao-globe`) that opens a list of the languages, each under its own name (`Русский`, `English`, from `Intl.DisplayNames`); `v-model` is the code, it writes `<html lang>`, `icon-only` for a phone; the texts and the storage stay yours
|
|
63
64
|
- **TaoTour** — a guided tour: the page goes dim, the target stays lit, a card with an arrow says what it is (a step without a target is a card in the middle; `interactive` lets the user press the target). It only draws: the steps come from you or from TaoUX `tour`
|
|
64
65
|
- **TaoMarquee** — one line that never wraps: when it does not fit it runs round with fading edges and a pause at the start of every round, when it fits it stands still. Stops on hover, on focus and on a tap (WCAG 2.2.2); wraps with «reduce motion»; a screen reader reads it once. `text` or inline content in the slot, `speed`, `gap`, `fade` (the left fade takes that much room left of the text: give the parent the padding), `paused`, `pauseOnHover`, `roundPause` (`false`: no rest at the start of a round), `fill` (a line that fits is repeated and runs too: a ticker of quotes) and `reverse`, the content is watched (a new price measures the line again), `decorative` (a ghost for a background line: hidden from a screen reader, no tab stop, no reaction to a cursor or a tap, no selection, no pause between rounds)
|
|
65
66
|
- **TaoInput** — text field with v-model, validation, and `#prefix` / `#suffix` slots (icon or text inside the frame); `variant` `outline` / `filled` / `plain` (no frame: an item of a list being edited; `TaoInputNumber`, `TaoCombobox` and `TaoTextarea` take it too)
|
|
@@ -72,7 +73,7 @@
|
|
|
72
73
|
- **TaoSpoiler** — disclosure. `v-model` and `aria-expanded`. Neighbours do not close each other
|
|
73
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
|
|
74
75
|
- **TaoTabs** — tabbed sections
|
|
75
|
-
- **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
|
|
76
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
|
|
77
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
|
|
78
79
|
- **TaoPopover** — click panel with any slot content, Esc and outside click; `placement` as Tooltip. Not a tooltip, not an action menu
|
|
@@ -119,7 +120,7 @@
|
|
|
119
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
|
|
120
121
|
- **TaoEmpty** — empty list, no results, no access
|
|
121
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
|
|
122
|
-
- **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)
|
|
123
124
|
- **TaoStages** — stage list: `wait` / `work` / `ok` / `bad`. Not a linear stepper
|
|
124
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
|
|
125
126
|
- **TaoSkeleton** — loading placeholder (text / title / circle / rect)
|
|
@@ -132,14 +133,14 @@
|
|
|
132
133
|
- **TaoScrubber** — play / pause, a slider over time with event marks, a “time / length” label. Does not advance time by itself: drive `v-model` with your own clock
|
|
133
134
|
- **TaoLoader** — the wait whose end is unknown: `variant` `dots` (default) / `ring` / `pulse` / `diamonds`, `tone`, `size` (a number or small / medium / large), says "Loading" to a screen reader (`label`), breathes under reduced motion; `TaoButton loading` wears the same ring
|
|
134
135
|
- **TaoImage** — `<img>` wrapper: fade-in and placeholder. `lazy` turns on native `loading="lazy"`
|
|
135
|
-
- **TaoIcon** — SVG icons (
|
|
136
|
+
- **TaoIcon** — SVG icons (44 built in, your own via `registerTaoIcons`) or an icon font (see Icons below)
|
|
136
137
|
|
|
137
138
|
### Navigation
|
|
138
139
|
|
|
139
140
|
- **TaoLink** — `<NuxtLink>` in Nuxt, `<RouterLink>` with vue-router, otherwise a plain `<a>` — no extra setup
|
|
140
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.
|
|
141
142
|
- **TaoBreadcrumb** — crumbs: the last item is the current page
|
|
142
|
-
- **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).
|
|
143
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
|
|
144
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
|
|
145
146
|
- **TaoScrollTop** — floating “back to top”: `solid` / `ghost` / `text` looks, `side`, a mouse-hover `label`. Appears on reverse scroll after `boundary`
|
|
@@ -337,7 +338,7 @@ function onLanguageChange(lang) {
|
|
|
337
338
|
|
|
338
339
|
Without the plugin (individual components) `setTaoLocale()` is the only call you need.
|
|
339
340
|
|
|
340
|
-
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».
|
|
341
342
|
|
|
342
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) }`.
|
|
343
344
|
|
|
@@ -711,7 +712,7 @@ document.documentElement.setAttribute('data-tao-theme', 'light')
|
|
|
711
712
|
- `--tao-color-text*` — text (default / strong / subtle / muted / disabled)
|
|
712
713
|
- `--tao-color-danger*`, `--tao-color-success*`, `--tao-color-warning*`, `--tao-color-info*` — status colors
|
|
713
714
|
- `--tao-color-input-*` — fields, because input bg/text often differs from surface/text
|
|
714
|
-
- `--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)
|
|
715
716
|
- `--tao-shadow-panel`, `--tao-shadow-overlay` — shadows
|
|
716
717
|
- `--tao-font-size-*` — type scale in `primitives.css`: `xs`–`xl` controls, `2xl`–`4xl` titles / prose
|
|
717
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
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
- **TaoCard** — карточка со слотами media / header / title / footer и `#corner` (тег, кнопка меню). В `#media` — фото или `TaoCarousel`; `closable` добавляет крестик и событие `close`. `flush` — плитка без padding/тени на всю ячейку; `#overlay` — scrim на media; `stripe="top | left | bottom"` со `stripeTone` (тон или `gradient` палитры) рисует цветную полосу, которую обрезают углы
|
|
61
61
|
- **TaoCopy** — иконка копирования в буфер. После клика сверху тултип «Скопировано»; если кнопку убрали — тултип тоже
|
|
62
62
|
- **TaoThemeToggle** — переключатель светлой / тёмной темы одной кнопкой-иконкой (солнце или луна); читает и переворачивает `data-tao-mode` у `<html>` либо работает от `v-model`; `system` добавляет третье состояние «как в системе» (монитор)
|
|
63
|
+
- **TaoLanguageSwitch** — язык интерфейса: глобус (`tao-globe`), который открывает список языков, каждый под своим названием (`Русский`, `English`, из `Intl.DisplayNames`); `v-model` — код, пишет `<html lang>`, `icon-only` для телефона; тексты и хранилище остаются вашими
|
|
63
64
|
- **TaoTour** — тур по странице: страница затемняется, цель остаётся освещённой, карточка со стрелкой говорит, что это (шаг без цели — карточка посередине; `interactive` даёт нажать на цель). Только рисует: шаги ваши или из TaoUX `tour`
|
|
64
65
|
- **TaoMarquee** — одна строка без переносов: не помещается — бежит по кругу с гаснущими краями и паузой в начале каждого круга, помещается — стоит. Останавливается при наведении, фокусе и тапе (WCAG 2.2.2); при «уменьшить движение» переносится; скринридер читает один раз. `text` или строчное содержимое в слоте, `speed`, `gap`, `fade` (левое затухание занимает столько места слева от текста: дайте родителю такой padding), `paused`, `pauseOnHover`, `roundPause` (`false`: без паузы в начале круга), `fill` (помещающаяся строка повторяется и тоже бежит: биржевая лента) и `reverse`, содержимое отслеживается (новая цена перемеряет строку), `decorative` (призрак для строки-фона: скрыта от скринридера, не остановка Tab, не реагирует на курсор и тап, не выделяется, без пауз между кругами)
|
|
65
66
|
- **TaoInput** — поле ввода с поддержкой v-model, валидации и слотов `#prefix` / `#suffix` (иконка или текст внутри рамки); `variant` `outline` / `filled` / `plain` (без рамки: пункт списка в правке; его берут и `TaoInputNumber`, `TaoCombobox`, `TaoTextarea`)
|
|
@@ -72,7 +73,7 @@
|
|
|
72
73
|
- **TaoSpoiler** — раскрывающийся блок. `v-model` и `aria-expanded`. Несколько подряд сами друг друга не закрывают
|
|
73
74
|
- **TaoSpoilerGroup** — аккордеон: `v-model` — ключ открытой панели (`null` — все закрыты), у спойлера `name`. Без `v-model` группа помнит ключ сама
|
|
74
75
|
- **TaoTabs** — вкладки для переключения между секциями контента
|
|
75
|
-
- **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` — страница
|
|
76
77
|
- **TaoTooltip** — всплывающая подсказка при наведении, обратная теме (`--tao-tooltip-bg`, `--tao-tooltip-text`); `shortcut` добавляет клавишу значком. `placement`: `top` / `bottom` / `left` / `right`, у каждого `-start` / `-end`; у края экрана переворачивается
|
|
77
78
|
- **TaoKbd** — клавиша (`T`, `Ctrl+K`): один вид клавиши в кнопке, подсказке, меню и списке команд. `cap` значок, `plain` приглушённый текст
|
|
78
79
|
- **TaoPopover** — панель по клику: слот с любым контентом, Esc и клик снаружи; `placement` как у Tooltip. Не тултип и не меню действий
|
|
@@ -119,7 +120,7 @@
|
|
|
119
120
|
- **TaoPagination** — страницы с многоточием. Клик по «…» прыгает на `jump` страниц (5 по умолчанию). `pageSizes` добавляет выбор «На странице» (`v-model:page-size`); первая видимая строка остаётся на экране
|
|
120
121
|
- **TaoEmpty** — пустой список, нет результатов, нет прав
|
|
121
122
|
- **TaoList** / **TaoListItem** — строка списка: иконка, заголовок, подпись, действие по ховеру. Не Select и не таблица; `roving` — одна остановка Tab, стрелки ходят по строкам
|
|
122
|
-
- **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`; строки на токенах контролов (размер и плотность)
|
|
123
124
|
- **TaoStages** — список стадий: `wait` / `work` / `ok` / `bad`. Не линейный степпер
|
|
124
125
|
- **TaoTimeline** — вертикальная лента событий: шаги заказа, релизы, журнал. `active` заливает линию до текущего события (`aria-current="step"`), без него лента — журнал прошедшего; `tone` и `icon` у маркера, слоты `#marker` / `#title` / `#content`; `align="alternate"` раскладывает события по обе стороны и складывается в одну уже 480px своей ширины
|
|
125
126
|
- **TaoSkeleton** — плейсхолдер загрузки (text / title / circle / rect)
|
|
@@ -132,14 +133,14 @@
|
|
|
132
133
|
- **TaoScrubber** — play / pause, слайдер по времени с метками событий, подпись «время / длина». Время сама не двигает: ведите `v-model` своими часами
|
|
133
134
|
- **TaoLoader** — ожидание, конца которого не знаем: `variant` `dots` (по умолчанию) / `ring` / `pulse` / `diamonds`, `tone`, `size` (число или small / medium / large), говорит «Загрузка» скринридеру (`label`), при «уменьшить движение» дышит; `TaoButton loading` носит то же кольцо
|
|
134
135
|
- **TaoImage** — обёртка над `<img>`: fade-in и плейсхолдер. `lazy` включает нативный `loading="lazy"`
|
|
135
|
-
- **TaoIcon** — SVG-иконки (
|
|
136
|
+
- **TaoIcon** — SVG-иконки (44 встроенных, свои через `registerTaoIcons`) или icon-шрифт (см. раздел «Иконки» ниже)
|
|
136
137
|
|
|
137
138
|
### Навигация и взаимодействие
|
|
138
139
|
|
|
139
140
|
- **TaoLink** — `<NuxtLink>` в Nuxt, `<RouterLink>` при vue-router, иначе обычный `<a>` — без дополнительной настройки
|
|
140
141
|
- **TaoStretchedLink** — `TaoLink`, который делает целую карточку или строку одной ссылкой, а кнопки внутри продолжают работать: `tao-stretched` на контейнере, `tao-stretched-raise` на элементе, который должен нажиматься сам. Клавиатура видит одну ссылку, кольцо фокуса идёт по контейнеру (`--tao-stretched-radius`). Не давайте ссылке `filter` / `transform`: слой сожмётся под курсором, и курсор начнёт мигать Текст под растянутым слоем нельзя выделить мышью (то, что должно выделяться, поднимите через `tao-stretched-raise`), а имя ссылке даёт только то, что в ней написано: для карточки направьте `aria-describedby` ссылки на описание.
|
|
141
142
|
- **TaoBreadcrumb** — крошки: последний пункт — текущая страница
|
|
142
|
-
- **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).
|
|
143
144
|
- **TaoMenubar** / **TaoContextMenu** — полоса меню редактора и меню по правой кнопке, на `TaoMenu`. Полоса — одна остановка Tab (`role="menubar"`): `←` / `→` ходят по ней, `↓` / Enter открывают, при открытом меню `←` / `→` и указатель переходят к соседнему; пункт без `items` — обычное действие. Контекстное меню открывается у указателя (или у элемента для клавиши Menu / Shift+F10) и оборачивает содержимое без своей коробки
|
|
144
145
|
- **TaoToolbar** / **TaoToolbarGroup** / **TaoToolbarSeparator** — панель инструментов (`role="toolbar"`): одна остановка Tab, `←` / `→` (или `↑` / `↓` при `orientation="vertical"`) ходят по элементам, Home / End; внутри `TaoSegmented` стрелки выбирают вариант и идут дальше с его края. Группы делит тонкая черта поперёк панели; `inset` кладёт под группу утопленную подложку. Переключатели — `TaoButton` с `v-model:pressed`. `overflow` держит панель в одной строке: группы, которые не влезли, уходят (последняя первой) под кнопку «⋮», она открывает их в панели (те же кнопки, а не копии); `TaoToolbarGroup` с `pinned` остаётся
|
|
145
146
|
- **TaoScrollTop** — плавающая кнопка «наверх»: виды `solid` / `ghost` / `text`, `side`, подпись `label` при наведении мыши. Появляется при обратном скролле после `boundary`
|
|
@@ -337,7 +338,7 @@ function onLanguageChange(lang) {
|
|
|
337
338
|
|
|
338
339
|
Без плагина (отдельные компоненты) достаточно одного вызова `setTaoLocale()`.
|
|
339
340
|
|
|
340
|
-
Полосы прокрутки тонкие (
|
|
341
|
+
Полосы прокрутки тонкие (6px) с акцентным бегунком. Чтобы изменить, задайте `--tao-scrollbar-size`, `--tao-scrollbar-thumb`, `--tao-scrollbar-track` (и `--tao-scrollbar-width` для Firefox) на странице или на блоке; класс `tao-native-scrollbars` на `<html>` или на блоке возвращает родные. Панель с ползунками есть в шоукейсе, в разделе «Слои и темизация».
|
|
341
342
|
|
|
342
343
|
С какого языка начать: `detectTaoLanguage(['en', 'ru'])` отвечает тем из ваших языков, который предпочитает браузер (`ru-RU` подходит к `ru`), например `saved ?? detectTaoLanguage(['en', 'ru'])`; на сервере передайте пожелания запроса: `{ requested: parseAcceptLanguage(header) }`.
|
|
343
344
|
|
|
@@ -713,7 +714,7 @@ document.documentElement.setAttribute('data-tao-theme', 'light')
|
|
|
713
714
|
- `--tao-color-text*` — текст (обычный / усиленный / subtle / приглушённый / disabled)
|
|
714
715
|
- `--tao-color-danger*`, `--tao-color-success*`, `--tao-color-warning*`, `--tao-color-info*` — статусные цвета
|
|
715
716
|
- `--tao-color-input-*` — поля ввода отдельно, т.к. фон/текст полей часто не совпадают с surface/text
|
|
716
|
-
- `--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)
|
|
717
718
|
- `--tao-shadow-panel`, `--tao-shadow-overlay` — тени
|
|
718
719
|
- `--tao-font-size-*` — шкала кегля в `primitives.css`: `xs`–`xl` контролы, `2xl`–`4xl` заголовки / проза
|
|
719
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`. Используйте их в своих контролах, чтобы попасть в размер окружения.
|