@ksmv/ui-checks 0.26.0 → 0.27.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 +9 -0
- package/dist/contrast-contract.json +12 -3
- package/dist/theme-contract.json +6 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.27.0 - 2026-10-26
|
|
4
|
+
|
|
5
|
+
- **Contratos de tema 3.10.0 e contraste 18.0.0** empacotados. O tema acrescenta quatro derivados opcionais (448 no total): o véu, a cor da sombra e o fundo do rodapé do `Drawer`, e o fundo do cabeçalho estreito da conversa. Registra também um token de forma, `--ui-drawer-title-weight` (60 no total). O contraste acrescenta 11 pares: o rodapé do `Drawer` sobre o painel e o cabeçalho estreito da conversa, cada um com os estados de hover e de clique do botão sem fundo compostos sobre o fundo novo, que por isso precisa ser opaco (um fundo translúcido deixa esses pares descobertos). Saem `side-nav-count-dot-hover` e `-hover-on-inverse`: desde a 0.26.1, no hover a bolinha do `SideNav` mantém a cor, e os pares de repouso a cobrem (613 pares no total). Nenhum limiar baixou.
|
|
6
|
+
- **Quem usa `computedEvidence` precisa capturar a evidência de novo.**
|
|
7
|
+
|
|
8
|
+
## 0.26.1 - 2026-10-26
|
|
9
|
+
|
|
10
|
+
- **Sai junto com o `@ksmv/ui-react` 0.26.1, sem mudança nas regras:** os contratos continuam tema 3.9.0 e contraste 17.0.0. O teste do tema optável da origem passa a conferir o fundo da prévia da imagem em cada modo (ver o CHANGELOG do `@ksmv/ui-react`). Quem adotou o `themes/source.css` deve recapturar a `computedEvidence`.
|
|
11
|
+
|
|
3
12
|
## 0.26.0 - 2026-10-25
|
|
4
13
|
|
|
5
14
|
- **Contratos de tema 3.9.0 e contraste 17.0.0** empacotados. O tema acrescenta 26 derivados opcionais (444 no total): os tons do `NumericRing`, o ponto e o anel do `SideNav`, a mídia e a descrição do `CompactHeader`, a faixa, a prévia da imagem, o rascunho de resposta, a barra de gravação, o fundo das mensagens, o valor do tile no inverso, a sombra do segmento e o número do `ProgressRing`. Registra também um token de forma, `--ui-surface-tile-radius` (59 no total). O contraste acrescenta 54 pares (604 no total; o contrato 16.0.0 publicado tem 550, e não os 542 que a nota da 0.25.0 diz), entre eles os pares da conversa medidos sobre o fundo das mensagens (`-in-conversation`). Nenhum par foi removido, e nenhum limiar baixou.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contractVersion": "
|
|
2
|
+
"contractVersion": "18.0.0",
|
|
3
3
|
"schemaVersion": 3,
|
|
4
4
|
"pairs": [
|
|
5
5
|
{ "foreground": "--ui-action-primary-text", "background": "--ui-action-primary-bg", "minimum": 4.5, "context": "normal-text" },
|
|
@@ -116,6 +116,11 @@
|
|
|
116
116
|
{ "foreground": "--ui-icon-button-ghost-text", "background": "--ui-dialog-header-bg", "minimum": 3, "context": "dialog-close" },
|
|
117
117
|
{ "foreground": "--ui-icon-button-ghost-text", "background": "--ui-dialog-header-bg-danger", "minimum": 3, "context": "dialog-close-danger" },
|
|
118
118
|
{ "foreground": "--ui-icon-button-ghost-text", "background": "--ui-dialog-header-bg-warning", "minimum": 3, "context": "dialog-close-warning" },
|
|
119
|
+
{ "foreground": "--ui-text-primary", "background": "--ui-drawer-footer-bg", "over": "--ui-surface-raised", "minimum": 4.5, "context": "drawer-footer-text" },
|
|
120
|
+
{ "foreground": "--ui-text-secondary", "background": "--ui-drawer-footer-bg", "over": "--ui-surface-raised", "minimum": 4.5, "context": "drawer-footer-secondary-text" },
|
|
121
|
+
{ "foreground": "--ui-action-ghost-text", "background": "--ui-drawer-footer-bg", "over": "--ui-surface-raised", "minimum": 4.5, "context": "drawer-footer-ghost" },
|
|
122
|
+
{ "foreground": "--ui-action-ghost-text-hover", "background": "--ui-action-ghost-bg-hover", "over": "--ui-drawer-footer-bg", "minimum": 4.5, "context": "drawer-footer-ghost-hover" },
|
|
123
|
+
{ "foreground": "--ui-action-ghost-text-hover", "background": "--ui-action-ghost-bg-active", "over": "--ui-drawer-footer-bg", "minimum": 4.5, "context": "drawer-footer-ghost-active" },
|
|
119
124
|
{ "foreground": "--ui-text-primary-on-inverse", "background": "--ui-surface-inverse", "minimum": 4.5, "context": "inverse-body-text" },
|
|
120
125
|
{ "foreground": "--ui-text-secondary-on-inverse", "background": "--ui-surface-inverse", "minimum": 4.5, "context": "inverse-secondary-text" },
|
|
121
126
|
{ "foreground": "--ui-border-control-on-inverse", "background": "--ui-surface-inverse", "minimum": 3, "context": "inverse-control-boundary" },
|
|
@@ -328,8 +333,6 @@
|
|
|
328
333
|
{ "foreground": "--ui-steps-track-filled", "background": "--ui-surface", "minimum": 3, "context": "steps-track-filled" },
|
|
329
334
|
{ "foreground": "--ui-side-nav-count-dot", "background": "--ui-side-nav-count-dot-ring", "minimum": 3, "context": "side-nav-count-dot" },
|
|
330
335
|
{ "foreground": "--ui-side-nav-count-dot-on-inverse", "background": "--ui-side-nav-count-dot-ring-on-inverse", "minimum": 3, "context": "side-nav-count-dot-on-inverse" },
|
|
331
|
-
{ "foreground": "--ui-action-ghost-text-hover", "background": "--ui-side-nav-count-dot-ring", "minimum": 3, "context": "side-nav-count-dot-hover" },
|
|
332
|
-
{ "foreground": "--ui-action-ghost-text-hover-on-inverse", "background": "--ui-side-nav-count-dot-ring-on-inverse", "minimum": 3, "context": "side-nav-count-dot-hover-on-inverse" },
|
|
333
336
|
{ "foreground": "--ui-message-incoming-text", "background": "--ui-message-incoming-bg", "over": "--ui-surface", "minimum": 4.5, "context": "message-incoming-text" },
|
|
334
337
|
{ "foreground": "--ui-message-incoming-meta", "background": "--ui-message-incoming-bg", "over": "--ui-surface", "minimum": 4.5, "context": "message-incoming-meta" },
|
|
335
338
|
{ "foreground": "--ui-message-incoming-quote-text", "background": "--ui-message-incoming-quote-bg", "over": "--ui-message-incoming-bg", "minimum": 4.5, "context": "message-incoming-quote" },
|
|
@@ -602,6 +605,12 @@
|
|
|
602
605
|
{"foreground": "--ui-message-outgoing-audio-wave-unplayed", "background": "--ui-message-outgoing-bg", "over": "--ui-conversation-messages-bg", "minimum": 3, "context": "message-outgoing-audio-wave-unplayed-in-conversation"},
|
|
603
606
|
{"foreground": "--ui-message-outgoing-audio-playhead", "background": "--ui-message-outgoing-bg", "over": "--ui-conversation-messages-bg", "minimum": 3, "context": "message-outgoing-audio-playhead-in-conversation"},
|
|
604
607
|
{"foreground": "--ui-message-outgoing-audio-time", "background": "--ui-message-outgoing-bg", "over": "--ui-conversation-messages-bg", "minimum": 4.5, "context": "message-outgoing-audio-time-in-conversation"},
|
|
608
|
+
{ "foreground": "--ui-text-primary", "background": "--ui-conversation-header-bg-compact", "minimum": 4.5, "context": "conversation-header-title" },
|
|
609
|
+
{ "foreground": "--ui-compact-header-description", "background": "--ui-conversation-header-bg-compact", "minimum": 4.5, "context": "conversation-header-description" },
|
|
610
|
+
{ "foreground": "--ui-compact-header-media", "background": "--ui-conversation-header-bg-compact", "minimum": 3, "context": "conversation-header-media" },
|
|
611
|
+
{ "foreground": "--ui-icon-button-ghost-text", "background": "--ui-conversation-header-bg-compact", "minimum": 3, "context": "conversation-header-icon" },
|
|
612
|
+
{ "foreground": "--ui-icon-button-ghost-text-hover", "background": "--ui-action-ghost-bg-hover", "over": "--ui-conversation-header-bg-compact", "minimum": 3, "context": "conversation-header-icon-hover" },
|
|
613
|
+
{ "foreground": "--ui-icon-button-ghost-text-hover", "background": "--ui-action-ghost-bg-active", "over": "--ui-conversation-header-bg-compact", "minimum": 3, "context": "conversation-header-icon-active" },
|
|
605
614
|
{"foreground": "--ui-reply-draft-author", "background": "--ui-surface", "minimum": 4.5, "context": "reply-draft-author"},
|
|
606
615
|
{"foreground": "--ui-progress-ring-text", "background": "--ui-surface", "minimum": 4.5, "context": "progress-ring-text"},
|
|
607
616
|
{"foreground": "--ui-progress-ring-text", "background": "--ui-surface-raised", "minimum": 4.5, "context": "progress-ring-text-raised"},
|
package/dist/theme-contract.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contractVersion": "3.
|
|
2
|
+
"contractVersion": "3.10.0",
|
|
3
3
|
"schemaVersion": 2,
|
|
4
4
|
"prefix": "--ui-",
|
|
5
5
|
"required": [
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"--ui-range-accent": { "kind": "token", "token": "--ui-action-primary-bg" },
|
|
60
60
|
"--ui-recording-bar": { "kind": "token", "token": "--ui-action-primary-bg" },
|
|
61
61
|
"--ui-conversation-messages-bg": { "kind": "token", "token": "--ui-surface-subtle" },
|
|
62
|
+
"--ui-conversation-header-bg-compact": { "kind": "token", "token": "--ui-surface" },
|
|
62
63
|
"--ui-reply-draft-author": { "kind": "token", "token": "--ui-text-primary" },
|
|
63
64
|
"--ui-reply-draft-edge": { "kind": "token", "token": "--ui-action-accent-text" },
|
|
64
65
|
"--ui-compact-header-media": { "kind": "token", "token": "--ui-text-primary" },
|
|
@@ -140,6 +141,9 @@
|
|
|
140
141
|
"--ui-dialog-icon-warning": { "kind": "token", "token": "--ui-status-warning" },
|
|
141
142
|
"--ui-dialog-footer-bg": { "kind": "token", "token": "--ui-surface-subtle" },
|
|
142
143
|
"--ui-dialog-footer-border": { "kind": "token", "token": "--ui-border" },
|
|
144
|
+
"--ui-drawer-overlay": { "kind": "token", "token": "--ui-overlay" },
|
|
145
|
+
"--ui-drawer-shadow-color": { "kind": "literal", "value": "rgb(0 0 0 / 10%)" },
|
|
146
|
+
"--ui-drawer-footer-bg": { "kind": "token", "token": "--ui-dialog-footer-bg" },
|
|
143
147
|
"--ui-text-primary-on-inverse": { "kind": "token", "token": "--ui-text-inverse" },
|
|
144
148
|
"--ui-text-secondary-on-inverse": { "kind": "token", "token": "--ui-text-primary-on-inverse" },
|
|
145
149
|
"--ui-text-muted-on-inverse": { "kind": "token", "token": "--ui-text-secondary-on-inverse" },
|
|
@@ -506,6 +510,7 @@
|
|
|
506
510
|
"--ui-dialog-title-font",
|
|
507
511
|
"--ui-font-display",
|
|
508
512
|
"--ui-dialog-title-weight",
|
|
513
|
+
"--ui-drawer-title-weight",
|
|
509
514
|
"--ui-radius-sm",
|
|
510
515
|
"--ui-radius-md",
|
|
511
516
|
"--ui-radius-lg",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ksmv/ui-checks",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "Static and computed quality checks for semantic UI token contracts.",
|
|
5
5
|
"keywords": ["accessibility", "design-tokens", "quality", "static-analysis"],
|
|
6
6
|
"license": "Apache-2.0",
|