@ksmv/ui-checks 0.14.0 → 0.17.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 CHANGED
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.17.0 - 2026-10-09
4
+
5
+ - **Contratos de tema 2.4.0 e de contraste 6.0.0** empacotados: 16 derivados opcionais e 20 pares novos, das variantes de ação e do botão de texto (ver o CHANGELOG do `@ksmv/ui-react`). Um par novo pode reprovar um tema que hoje passa. A resolução de derivados já existente avalia os tokens novos pela origem quando o tema não os declara.
6
+ - **Quem usa `computedEvidence` precisa capturar a evidência de novo:** as identidades dos dois contratos mudaram, e a evidência anterior é recusada com código 2, com a causa.
7
+ - Regras e CLI não mudam.
8
+
9
+ ## 0.16.0 - 2026-10-09
10
+
11
+ - **Inclui a 0.15.0, que não foi publicada**, sem mudança de regras, contratos ou CLI (ver abaixo).
12
+ - **Contrato de contraste 5.0.0** empacotado: três pares da borda das ações, a 3:1 sobre `--ui-surface`, pelo token pintado, declarado ou derivado (ver o CHANGELOG do `@ksmv/ui-react`). Um par novo pode reprovar um tema que hoje passa. O contrato de tema continua 2.3.0.
13
+ - **Quem usa `computedEvidence` precisa capturar a evidência de novo:** a identidade do contrato de contraste mudou, e a evidência anterior é recusada com código 2, com a causa.
14
+ - Regras e CLI não mudam.
15
+
16
+ ## 0.15.0 - 2026-10-09
17
+
18
+ - **Não publicada.** O conteúdo desta versão chegou ao npm na 0.16.0.
19
+ - Sem mudança de regras, contratos ou CLI. Versão alinhada ao `@ksmv/ui-react` 0.15.0, que acrescenta `Accordion` e `Divider` sem mudar os contratos.
20
+
3
21
  ## 0.14.0 - 2026-10-09
4
22
 
5
23
  - **Contratos de tema 2.3.0 e de contraste 4.0.0** empacotados: o derivado `--ui-link-text` e três pares de cor de link (ver o CHANGELOG do `@ksmv/ui-react`). Um par novo pode reprovar um tema que hoje passa.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @ksmv/ui-checks
2
2
 
3
- Verificações de qualidade para o contrato semântico `--ui-*` de `@ksmv/ui-react`: completude dos temas, contraste dos pares do contrato (ações, estados, campos, controles e, desde o contrato de contraste `3.0.0`, o texto base sobre as superfícies e, desde o `4.0.0`, a cor de link), prefixo dos tokens, cores literais fora dos arquivos de tema e evidência calculada vinculada às fontes.
3
+ Verificações de qualidade para o contrato semântico `--ui-*` de `@ksmv/ui-react`: completude dos temas, contraste dos pares do contrato (ações, estados, campos, controles e, desde o contrato de contraste `3.0.0`, o texto base sobre as superfícies e, desde o `4.0.0`, a cor de link e, desde o `5.0.0`, a borda das ações e, desde o `6.0.0`, as variantes de ação da 0.17.0 e o botão de texto), prefixo dos tokens, cores literais fora dos arquivos de tema e evidência calculada vinculada às fontes.
4
4
 
5
5
  ## Antes de depender deste pacote
6
6
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "contractVersion": "4.0.0",
2
+ "contractVersion": "6.0.0",
3
3
  "schemaVersion": 1,
4
4
  "pairs": [
5
5
  { "foreground": "--ui-action-primary-text", "background": "--ui-action-primary-bg", "minimum": 4.5, "context": "normal-text" },
@@ -45,6 +45,29 @@
45
45
  { "foreground": "--ui-text-placeholder", "background": "--ui-surface", "minimum": 4.5, "context": "placeholder-text" },
46
46
  { "foreground": "--ui-link-text", "background": "--ui-surface", "minimum": 4.5, "context": "link-text" },
47
47
  { "foreground": "--ui-link-text", "background": "--ui-surface-raised", "minimum": 4.5, "context": "link-text-raised" },
48
- { "foreground": "--ui-link-text", "background": "--ui-surface-subtle", "minimum": 4.5, "context": "link-text-subtle" }
48
+ { "foreground": "--ui-link-text", "background": "--ui-surface-subtle", "minimum": 4.5, "context": "link-text-subtle" },
49
+ { "foreground": "--ui-action-primary-border", "background": "--ui-surface", "minimum": 3, "context": "action-primary-boundary" },
50
+ { "foreground": "--ui-action-secondary-border", "background": "--ui-surface", "minimum": 3, "context": "action-secondary-boundary" },
51
+ { "foreground": "--ui-action-danger-border", "background": "--ui-surface", "minimum": 3, "context": "action-danger-boundary" },
52
+ { "foreground": "--ui-action-accent-text", "background": "--ui-surface", "minimum": 4.5, "context": "accent-text" },
53
+ { "foreground": "--ui-action-accent-text", "background": "--ui-action-accent-bg-hover", "minimum": 4.5, "context": "accent-text-hover" },
54
+ { "foreground": "--ui-action-accent-text", "background": "--ui-action-accent-bg-active", "minimum": 4.5, "context": "accent-text-active" },
55
+ { "foreground": "--ui-action-danger-outline-text", "background": "--ui-surface", "minimum": 4.5, "context": "danger-outline-text" },
56
+ { "foreground": "--ui-action-danger-outline-text", "background": "--ui-action-danger-outline-bg-hover", "minimum": 4.5, "context": "danger-outline-text-hover" },
57
+ { "foreground": "--ui-action-danger-outline-text", "background": "--ui-action-danger-outline-bg-active", "minimum": 4.5, "context": "danger-outline-text-active" },
58
+ { "foreground": "--ui-action-warning-text", "background": "--ui-action-warning-bg", "minimum": 4.5, "context": "warning-text" },
59
+ { "foreground": "--ui-action-warning-text", "background": "--ui-action-warning-bg-hover", "minimum": 4.5, "context": "warning-text-hover" },
60
+ { "foreground": "--ui-action-warning-text", "background": "--ui-action-warning-bg-active", "minimum": 4.5, "context": "warning-text-active" },
61
+ { "foreground": "--ui-text-button-text", "background": "--ui-surface", "minimum": 4.5, "context": "text-button-text" },
62
+ { "foreground": "--ui-text-button-text", "background": "--ui-surface-raised", "minimum": 4.5, "context": "text-button-text-raised" },
63
+ { "foreground": "--ui-text-button-text", "background": "--ui-surface-subtle", "minimum": 4.5, "context": "text-button-text-subtle" },
64
+ { "foreground": "--ui-text-button-accent-text", "background": "--ui-surface", "minimum": 4.5, "context": "text-button-accent-text" },
65
+ { "foreground": "--ui-text-button-accent-text", "background": "--ui-surface-raised", "minimum": 4.5, "context": "text-button-accent-text-raised" },
66
+ { "foreground": "--ui-text-button-accent-text", "background": "--ui-surface-subtle", "minimum": 4.5, "context": "text-button-accent-text-subtle" },
67
+ { "foreground": "--ui-text-button-muted-text", "background": "--ui-surface", "minimum": 4.5, "context": "text-button-muted-text" },
68
+ { "foreground": "--ui-text-button-muted-text", "background": "--ui-surface-raised", "minimum": 4.5, "context": "text-button-muted-text-raised" },
69
+ { "foreground": "--ui-text-button-muted-text", "background": "--ui-surface-subtle", "minimum": 4.5, "context": "text-button-muted-text-subtle" },
70
+ { "foreground": "--ui-action-danger-outline-border", "background": "--ui-surface", "minimum": 3, "context": "action-danger-outline-boundary" },
71
+ { "foreground": "--ui-action-warning-border", "background": "--ui-surface", "minimum": 3, "context": "action-warning-boundary" }
49
72
  ]
50
73
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "contractVersion": "2.3.0",
2
+ "contractVersion": "2.4.0",
3
3
  "schemaVersion": 1,
4
4
  "prefix": "--ui-",
5
5
  "required": [
@@ -100,7 +100,23 @@
100
100
  "--ui-button-font-weight-lg": "--ui-button-font-weight",
101
101
  "--ui-control-checked-bg": "--ui-action-primary-bg",
102
102
  "--ui-control-checked-fg": "--ui-action-primary-text",
103
- "--ui-link-text": "--ui-text-primary"
103
+ "--ui-link-text": "--ui-text-primary",
104
+ "--ui-action-accent-text": "--ui-action-ghost-text",
105
+ "--ui-action-accent-bg-hover": "--ui-action-ghost-bg-hover",
106
+ "--ui-action-accent-bg-active": "--ui-action-ghost-bg-active",
107
+ "--ui-action-danger-outline-text": "--ui-status-danger-text",
108
+ "--ui-action-danger-outline-border": "--ui-status-danger",
109
+ "--ui-action-danger-outline-bg-hover": "--ui-status-danger-bg",
110
+ "--ui-action-danger-outline-bg-active": "--ui-status-danger-bg",
111
+ "--ui-action-warning-bg": "--ui-action-danger-bg",
112
+ "--ui-action-warning-bg-hover": "--ui-action-danger-bg-hover",
113
+ "--ui-action-warning-bg-active": "--ui-action-danger-bg-active",
114
+ "--ui-action-warning-text": "--ui-action-danger-text",
115
+ "--ui-action-warning-border": "--ui-action-danger-border",
116
+ "--ui-text-button-text": "--ui-link-text",
117
+ "--ui-text-button-accent-text": "--ui-text-button-text",
118
+ "--ui-text-button-muted-text": "--ui-text-secondary",
119
+ "--ui-icon-button-size-xs": "--ui-space-6"
104
120
  },
105
121
  "brandComposition": [
106
122
  "--ui-brand-primary",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ksmv/ui-checks",
3
- "version": "0.14.0",
3
+ "version": "0.17.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",