@1337exp/taoui 5.39.1 → 5.48.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 +73 -0
- package/README.md +3 -2
- package/README.ru.md +3 -2
- package/dist/index.d.ts +540 -432
- package/dist/index.js +162 -90
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/skills/taoui/SKILL.md +2 -1
- package/skills/taoui/references/components.md +1390 -1376
- package/skills/taoui/references/patterns.md +3 -2
- package/src/styles/base.css +5 -1
- package/src/styles/contexts/tone.css +5 -3
- package/src/styles/palettes/lagoon.css +3 -3
- package/src/styles/palettes/marple.css +3 -3
- package/src/styles/palettes/ocean-blue.css +3 -3
- package/src/styles/palettes/pinheiro.css +7 -7
- package/src/styles/palettes/sunset.css +3 -3
- package/src/styles/palettes/tokyo-night.css +3 -3
- package/src/styles/palettes/violet-dusk.css +7 -7
- package/src/styles/themes/light.css +11 -3
- package/src/styles/tokens/primitives.css +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1337exp/taoui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.48.0",
|
|
4
4
|
"description": "Design-token driven Vue 3 / Nuxt component library: palettes with tested contrast, accessible menus and toolbars, navigation that adapts without JS, small charts, built-in locales.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
package/skills/taoui/SKILL.md
CHANGED
|
@@ -101,7 +101,7 @@ choose a text colour, WCAG 2 to promise a number.
|
|
|
101
101
|
## Overlays and feedback
|
|
102
102
|
|
|
103
103
|
- `TaoDocTabs` (the tabs of open documents: `items` `{ value, label, dirty?, preview?, closable? }`, `v-model` the active one; it only draws the row: `@close`, `@pin`, `@reorder(from, to)`, `@menu` are requests the app carries out), `TaoCommandList` (the field and the list of the palette with no window, for a page, a panel or a `TaoPopover`; `@select` closes nothing), `TaoCommandPalette` (a dialog, `modal="false"` for a panel with no dimming, the whole screen on a phone by default, that searches `items` `{ id, label, group?, shortcut?, keywords?, disabled? }`, `Ctrl+K` style: you open it from your own key with `v-model`, `@select` runs the pick; the search alone is `matchCommands`), `TaoModal` (`fullscreen`, `fullscreen="narrow"` for a page on a phone), `TaoDrawer` (`side="bottom"` is the phone's
|
|
104
|
-
bottom sheet) — v-model; Escape closes the top layer only. `TaoPopover`, `TaoTooltip` (`placement`).
|
|
104
|
+
bottom sheet) — v-model; Escape closes the top layer only. `TaoPopover`, `TaoTooltip` (`placement`; the tip is the opposite of the theme; `shortcut` adds the key as a key cap; `bold` is on, semi-bold text; `animated` is the fade, off by default: a share of the base duration, `0` off, `1` base, `2` twice, or the token `--tao-tooltip-motion`). `TaoKbd` is the one look for a key (`variant` `cap` / `plain`): do not draw your own `<kbd>`.
|
|
105
105
|
- Menus share one engine: `TaoDropdownMenu`, `TaoMenubar`, `TaoContextMenu`, `TaoMenu` (the panel for your own shell).
|
|
106
106
|
Items are a data tree `TaoMenuItem[]`: `{ id, label, icon?, shortcut?, disabled?, items? }`,
|
|
107
107
|
`{ type: 'checkbox' | 'radio', checked }`, `{ type: 'label' | 'separator' }`. `@select="id => …"`. `closeOnScroll`.
|
|
@@ -157,6 +157,7 @@ Which language to start with: `detectTaoLanguage(['en', 'ru'], { fallback?, requ
|
|
|
157
157
|
- Using colour alone for a status; forgetting `aria-label` on an icon-only button (`TaoButton icon="tao-plus"` needs one).
|
|
158
158
|
- Global `h1 { … }` styles fighting `.tao-prose` (its rules are `:where()`, so yours win by design).
|
|
159
159
|
- Expecting `variant="danger"` on a button: the colour is `tone="danger"`, the shape is `variant`.
|
|
160
|
+
- Tinting a hover, a highlighted row or a wash with the accent (`--tao-color-accent-subtle`, `accent-text`): what the pointer is over is neutral (`--tao-color-hover`, `--tao-tone-wash`, text up to `text-strong`); the accent is for what is chosen or current. A test (`tests/accent-budget.test.ts`) keeps it for the components.
|
|
160
161
|
- A `ghost` or `text` button without `tone` is accent-coloured (amber): in a toolbar, a row or a header it must be
|
|
161
162
|
`tone="neutral"`. The accent is for the one main action, the selected item and the focus (patterns.md, the accent budget).
|
|
162
163
|
- Importing from deep paths (`@1337exp/taoui/dist/...`); only the package root, `styles.css`, `palettes.css` and
|