@1337exp/taoui 5.10.0 → 5.11.1
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 +20 -0
- package/README.md +2 -2
- package/README.ru.md +2 -2
- package/dist/index.d.ts +27 -0
- package/dist/index.js +19 -10
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/skills/taoui/SKILL.md +3 -1
- package/skills/taoui/references/components.md +3 -1
- package/src/styles/contexts/tone.css +2 -2
- package/src/styles/themes/dark.css +7 -3
- package/src/styles/themes/light.css +2 -1
- package/src/styles/tokens/primitives.css +2 -0
- package/src/styles/tokens/semantic.css +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1337exp/taoui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.11.1",
|
|
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
|
@@ -70,7 +70,9 @@ choose a text colour, WCAG 2 to promise a number.
|
|
|
70
70
|
number is one column on compact. `rowHeight` is the exact row height (a mosaic: pictures are cropped).
|
|
71
71
|
- `TaoNav` — app navigation from one list: a bottom bar, a rail or a drawer, `layout="auto"` by its own width; put the page
|
|
72
72
|
in its default slot and it lays it out. `floating` makes the bar a detached pill (the FAB is your own button beside
|
|
73
|
-
it). `select(id, event)` + `event.preventDefault()` to route with a router.
|
|
73
|
+
it). `select(id, event)` + `event.preventDefault()` to route with a router. Widths `--tao-nav-rail-width` /
|
|
74
|
+
`--tao-nav-drawer-width`; the action button may take `shortcut="N"` (shown in the side panel, hidden when round). `surface="glass"` for a
|
|
75
|
+
translucent bar over the page (as on TaoCard; it turns solid where blur is off).
|
|
74
76
|
|
|
75
77
|
## Forms
|
|
76
78
|
|
|
@@ -36,6 +36,7 @@ Showcase section: `#button`
|
|
|
36
36
|
| `icon` | `string` | '' | An icon before the text: a name for TaoIcon (tao-plus, your own or a font one). Without text and slot the button is a square of the control height and needs aria-label |
|
|
37
37
|
| `iconEnd` | `string` | '' | An icon after the text |
|
|
38
38
|
| `v-model:pressed` | `boolean` | — | A toggle button (Bold, a filter): aria-pressed and the tone tint while pressed. Without it the button is an ordinary one |
|
|
39
|
+
| `shortcut` | `string` | — | The key that does the same (N, Ctrl+K): shown at the end of the button, given as aria-keyshortcuts. It only shows the key; listening to it is the app's job |
|
|
39
40
|
|
|
40
41
|
**Slots, events, notes.** default — the button caption.
|
|
41
42
|
|
|
@@ -1064,8 +1065,9 @@ Showcase section: `#tao-nav`
|
|
|
1064
1065
|
| `moreLabel` | `string` | 'More' | The label of «More» |
|
|
1065
1066
|
| `indicator` | `'pill' \| 'line'` | 'pill' | How the current section is marked: a tint behind the item, or the accent colour and a short line (under the item in the bar, along its start edge on the side; auto moves it) |
|
|
1066
1067
|
| `floating` | `boolean` | false | In the bar look, a detached pill above the page: inset from the edges and above the safe area, round, with a shadow; the active item is a pill too. The rail and the side panel do not change. The main action of the screen goes beside it as your own round button, not into the bar |
|
|
1068
|
+
| `surface` | `'flat' \| 'glass' \| 'grain'` | 'flat' | What the panel is made of, as on TaoCard: glass lets the page show blurred through the bar as it scrolls under it (solid where blur is not supported or less transparency is asked) |
|
|
1067
1069
|
|
|
1068
|
-
**Slots, events, notes.** default — the page: TaoNav lays it out next to the navigation (the bar sticks to the bottom, on the side the list sticks to the top; env(safe-area-inset-bottom) is kept). Without the slot it is a standalone panel with a border. #label — your own item label ({ item, active }). #action — the main action of the screen: a TaoButton with icon and its text in <span class="tao-nav__action-label">; the bar puts it round above itself at the end side (above the pill with floating), the rail round at the top, the side panel extended with the text at the top; in the round looks the text is hidden but stays the name of the button. Events: update:modelValue, select(id, event) — event.preventDefault() keeps a link from navigating, to route it yourself.
|
|
1070
|
+
**Slots, events, notes.** default — the page: TaoNav lays it out next to the navigation (the bar sticks to the bottom, on the side the list sticks to the top; env(safe-area-inset-bottom) is kept). Without the slot it is a standalone panel with a border. #label — your own item label ({ item, active }). #action — the main action of the screen: a TaoButton with icon and its text in <span class="tao-nav__action-label">; the bar puts it round above itself at the end side (above the pill with floating), the rail round at the top, the side panel extended with the text at the top; in the round looks the text is hidden but stays the name of the button (a shortcut on it too). The side panel gives the button its own corners; --tao-nav-action-radius: var(--tao-radius-full) makes it a pill. --tao-nav-rail-width (80px) and --tao-nav-drawer-width (240px) set the widths. Events: update:modelValue, select(id, event) — event.preventDefault() keeps a link from navigating, to route it yourself.
|
|
1069
1071
|
|
|
1070
1072
|
## TaoTabs
|
|
1071
1073
|
|
|
@@ -68,14 +68,14 @@
|
|
|
68
68
|
/* Neutral: the quiet action next to a primary one. Strong text, only the wash takes the theme colour.
|
|
69
69
|
Нейтральный: тихое действие рядом с главным. Сильный текст, цвет темы — только у подложки при наведении. */
|
|
70
70
|
.tao-tone-neutral {
|
|
71
|
-
--tao-tone: var(--tao-color-
|
|
71
|
+
--tao-tone: var(--tao-color-neutral);
|
|
72
72
|
--tao-tone-hover: var(--tao-color-neutral-hover);
|
|
73
73
|
/* white on the mid grey in both themes (5.7:1); the page colour was dark on dark in the dark theme (3.4:1)
|
|
74
74
|
белое на среднем сером в обеих темах; цвет страницы в тёмной теме давал тёмное на тёмном */
|
|
75
75
|
--tao-tone-on: var(--tao-color-on-neutral);
|
|
76
76
|
--tao-tone-text: var(--tao-color-text-strong);
|
|
77
77
|
--tao-tone-text-hover: var(--tao-color-text-strong);
|
|
78
|
-
--tao-tone-subtle: color-mix(in srgb, var(--tao-color-
|
|
78
|
+
--tao-tone-subtle: color-mix(in srgb, var(--tao-color-neutral) 15%, transparent);
|
|
79
79
|
--tao-tone-wash: var(--tao-color-accent-subtle-hover);
|
|
80
80
|
}
|
|
81
81
|
|
|
@@ -51,7 +51,9 @@
|
|
|
51
51
|
--tao-color-text: var(--tao-gray-200);
|
|
52
52
|
--tao-color-text-strong: var(--tao-gray-0);
|
|
53
53
|
--tao-color-text-subtle: var(--tao-gray-300); /* idle-контролы: segmented, tabs. Подписи остаются muted */
|
|
54
|
-
|
|
54
|
+
/* secondary text (labels, hints, legends) still reads: 5.3:1 on the page, 4.8:1 on a card; it was #666, 3.2:1
|
|
55
|
+
второстепенный текст (подписи, подсказки, легенды) читается: 5,3:1 на странице, 4,8:1 на карточке; был #666, 3,2:1 */
|
|
56
|
+
--tao-color-text-muted: var(--tao-gray-350);
|
|
55
57
|
--tao-color-text-disabled: var(--tao-gray-500); /* dimmer than muted: a disabled item must not stand out / тусклее muted */
|
|
56
58
|
|
|
57
59
|
/* ---------- Links ---------- */
|
|
@@ -68,13 +70,15 @@
|
|
|
68
70
|
--tao-color-on-success: var(--tao-gray-950);
|
|
69
71
|
--tao-color-on-warning: var(--tao-gray-950);
|
|
70
72
|
--tao-color-on-info: var(--tao-gray-950);
|
|
71
|
-
/* the neutral fill
|
|
73
|
+
/* the neutral fill: a mid grey of its own, so the white label keeps 5.7:1 (muted text is lighter now)
|
|
74
|
+
нейтральная заливка: свой средний серый, чтобы белая подпись держала 5,7:1 (приглушённый текст теперь светлее) */
|
|
75
|
+
--tao-color-neutral: var(--tao-gray-400);
|
|
72
76
|
--tao-color-on-neutral: var(--tao-gray-0);
|
|
73
77
|
/* under the pointer the neutral fill steps darker, as the other dark fills do: it went to the near-white text
|
|
74
78
|
colour and the white label was lost on it
|
|
75
79
|
под указателем нейтральная заливка темнеет, как остальные тёмные заливки: она становилась почти белым цветом
|
|
76
80
|
текста, и белая подпись на ней терялась */
|
|
77
|
-
--tao-color-neutral-hover: color-mix(in srgb, var(--tao-color-
|
|
81
|
+
--tao-color-neutral-hover: color-mix(in srgb, var(--tao-color-neutral) 78%, var(--tao-color-bg));
|
|
78
82
|
/* light fills with a dark label, as the amber accent: bright enough to read as a button on a dark page
|
|
79
83
|
светлые заливки с тёмной подписью, как у янтарного акцента: достаточно яркие, чтобы читаться кнопкой на тёмной странице */
|
|
80
84
|
--tao-color-success: var(--tao-green-400);
|
|
@@ -59,10 +59,11 @@
|
|
|
59
59
|
--tao-color-on-success: #ffffff;
|
|
60
60
|
--tao-color-on-warning: #ffffff;
|
|
61
61
|
--tao-color-on-info: #ffffff;
|
|
62
|
+
--tao-color-neutral: var(--tao-gray-400);
|
|
62
63
|
--tao-color-on-neutral: #ffffff;
|
|
63
64
|
/* a light page: a step darker under the pointer, as the other light fills do (it was the near-black text, a jump)
|
|
64
65
|
светлая страница: под указателем на шаг темнее, как остальные светлые заливки (был почти чёрный текст, скачок) */
|
|
65
|
-
--tao-color-neutral-hover: color-mix(in srgb, var(--tao-color-
|
|
66
|
+
--tao-color-neutral-hover: color-mix(in srgb, var(--tao-color-neutral) 78%, var(--tao-color-text-strong));
|
|
66
67
|
--tao-color-success: var(--tao-green-700);
|
|
67
68
|
--tao-color-success-hover: color-mix(in srgb, var(--tao-green-700) 85%, #000000);
|
|
68
69
|
--tao-color-success-subtle: color-mix(in srgb, var(--tao-color-success) 10%, transparent);
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
--tao-gray-100: #e0e0e0;
|
|
13
13
|
--tao-gray-200: #bfbfbf;
|
|
14
14
|
--tao-gray-300: #999999;
|
|
15
|
+
/* the muted text of the dark theme: 4.5:1 and more on its page and its cards / приглушённый текст тёмной темы */
|
|
16
|
+
--tao-gray-350: #8a8a8a;
|
|
15
17
|
--tao-gray-400: #666666;
|
|
16
18
|
--tao-gray-500: #444444;
|
|
17
19
|
--tao-gray-600: #333333;
|
|
@@ -30,4 +30,11 @@
|
|
|
30
30
|
transform var(--tao-duration-hover) var(--tao-ease-base),
|
|
31
31
|
fill var(--tao-duration-hover) var(--tao-ease-base),
|
|
32
32
|
stroke var(--tao-duration-hover) var(--tao-ease-base);
|
|
33
|
+
|
|
34
|
+
/* ---------- TaoNav ---------- */
|
|
35
|
+
/* The rail and the side panel widths, the corners of the action in the side panel (round in the compact looks).
|
|
36
|
+
Ширины рейки и боковой панели, углы действия в боковой панели (в компактных видах оно круглое). */
|
|
37
|
+
--tao-nav-rail-width: 80px;
|
|
38
|
+
--tao-nav-drawer-width: 240px;
|
|
39
|
+
--tao-nav-action-radius: var(--tao-radius-control);
|
|
33
40
|
}
|