@ksmv/ui-checks 0.17.0 → 0.18.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.18.1 - 2026-10-11
4
+
5
+ - **A 0.18.0 não foi publicada.** A verificação da release parou por tempo, antes de a versão chegar ao npm, e nada mudou no pacote desde então: de 0.17.0, atualize direto para a 0.18.1. A tag `checks-v0.18.0` existe no repositório, mas não tem versão no registro.
6
+ - **Contratos de tema 2.5.0 e de contraste 7.0.0** empacotados: 22 derivados opcionais e 27 pares novos, das variantes suaves, do contorno de aviso 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.
7
+ - **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.
8
+ - Regras e CLI não mudam.
9
+
3
10
  ## 0.17.0 - 2026-10-09
4
11
 
5
12
  - **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.
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 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.
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 e, desde o `7.0.0`, os botões da casa da 0.18.1 e o hover por tom do 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": "6.0.0",
2
+ "contractVersion": "7.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" },
@@ -68,6 +68,33 @@
68
68
  { "foreground": "--ui-text-button-muted-text", "background": "--ui-surface-raised", "minimum": 4.5, "context": "text-button-muted-text-raised" },
69
69
  { "foreground": "--ui-text-button-muted-text", "background": "--ui-surface-subtle", "minimum": 4.5, "context": "text-button-muted-text-subtle" },
70
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" }
71
+ { "foreground": "--ui-action-warning-border", "background": "--ui-surface", "minimum": 3, "context": "action-warning-boundary" },
72
+ { "foreground": "--ui-action-soft-accent-text", "background": "--ui-action-soft-accent-bg", "minimum": 4.5, "context": "soft-accent-text" },
73
+ { "foreground": "--ui-action-soft-accent-text", "background": "--ui-action-soft-accent-bg-hover", "minimum": 4.5, "context": "soft-accent-text-hover" },
74
+ { "foreground": "--ui-action-soft-accent-text", "background": "--ui-action-soft-accent-bg-active", "minimum": 4.5, "context": "soft-accent-text-active" },
75
+ { "foreground": "--ui-action-soft-warning-text", "background": "--ui-action-soft-warning-bg", "minimum": 4.5, "context": "soft-warning-text" },
76
+ { "foreground": "--ui-action-soft-warning-text", "background": "--ui-action-soft-warning-bg-hover", "minimum": 4.5, "context": "soft-warning-text-hover" },
77
+ { "foreground": "--ui-action-soft-warning-text", "background": "--ui-action-soft-warning-bg-active", "minimum": 4.5, "context": "soft-warning-text-active" },
78
+ { "foreground": "--ui-action-warning-outline-text", "background": "--ui-surface", "minimum": 4.5, "context": "warning-outline-text" },
79
+ { "foreground": "--ui-action-warning-outline-text", "background": "--ui-action-warning-outline-bg-hover", "minimum": 4.5, "context": "warning-outline-text-hover" },
80
+ { "foreground": "--ui-action-warning-outline-text", "background": "--ui-action-warning-outline-bg-active", "minimum": 4.5, "context": "warning-outline-text-active" },
81
+ { "foreground": "--ui-text-button-strong-text", "background": "--ui-surface", "minimum": 4.5, "context": "text-button-strong-text" },
82
+ { "foreground": "--ui-text-button-strong-text", "background": "--ui-surface-raised", "minimum": 4.5, "context": "text-button-strong-text-raised" },
83
+ { "foreground": "--ui-text-button-strong-text", "background": "--ui-surface-subtle", "minimum": 4.5, "context": "text-button-strong-text-subtle" },
84
+ { "foreground": "--ui-text-button-text-hover", "background": "--ui-surface", "minimum": 4.5, "context": "text-button-text-hover" },
85
+ { "foreground": "--ui-text-button-text-hover", "background": "--ui-surface-raised", "minimum": 4.5, "context": "text-button-text-hover-raised" },
86
+ { "foreground": "--ui-text-button-text-hover", "background": "--ui-surface-subtle", "minimum": 4.5, "context": "text-button-text-hover-subtle" },
87
+ { "foreground": "--ui-text-button-accent-text-hover", "background": "--ui-surface", "minimum": 4.5, "context": "text-button-accent-text-hover" },
88
+ { "foreground": "--ui-text-button-accent-text-hover", "background": "--ui-surface-raised", "minimum": 4.5, "context": "text-button-accent-text-hover-raised" },
89
+ { "foreground": "--ui-text-button-accent-text-hover", "background": "--ui-surface-subtle", "minimum": 4.5, "context": "text-button-accent-text-hover-subtle" },
90
+ { "foreground": "--ui-text-button-muted-text-hover", "background": "--ui-surface", "minimum": 4.5, "context": "text-button-muted-text-hover" },
91
+ { "foreground": "--ui-text-button-muted-text-hover", "background": "--ui-surface-raised", "minimum": 4.5, "context": "text-button-muted-text-hover-raised" },
92
+ { "foreground": "--ui-text-button-muted-text-hover", "background": "--ui-surface-subtle", "minimum": 4.5, "context": "text-button-muted-text-hover-subtle" },
93
+ { "foreground": "--ui-text-button-strong-text-hover", "background": "--ui-surface", "minimum": 4.5, "context": "text-button-strong-text-hover" },
94
+ { "foreground": "--ui-text-button-strong-text-hover", "background": "--ui-surface-raised", "minimum": 4.5, "context": "text-button-strong-text-hover-raised" },
95
+ { "foreground": "--ui-text-button-strong-text-hover", "background": "--ui-surface-subtle", "minimum": 4.5, "context": "text-button-strong-text-hover-subtle" },
96
+ { "foreground": "--ui-action-soft-accent-border", "background": "--ui-surface", "minimum": 3, "context": "action-soft-accent-boundary" },
97
+ { "foreground": "--ui-action-soft-warning-border", "background": "--ui-surface", "minimum": 3, "context": "action-soft-warning-boundary" },
98
+ { "foreground": "--ui-action-warning-outline-border", "background": "--ui-surface", "minimum": 3, "context": "action-warning-outline-boundary" }
72
99
  ]
73
100
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "contractVersion": "2.4.0",
2
+ "contractVersion": "2.5.0",
3
3
  "schemaVersion": 1,
4
4
  "prefix": "--ui-",
5
5
  "required": [
@@ -116,7 +116,29 @@
116
116
  "--ui-text-button-text": "--ui-link-text",
117
117
  "--ui-text-button-accent-text": "--ui-text-button-text",
118
118
  "--ui-text-button-muted-text": "--ui-text-secondary",
119
- "--ui-icon-button-size-xs": "--ui-space-6"
119
+ "--ui-icon-button-size-xs": "--ui-space-6",
120
+ "--ui-action-soft-accent-bg": "--ui-action-accent-bg-hover",
121
+ "--ui-action-soft-accent-bg-hover": "--ui-action-accent-bg-active",
122
+ "--ui-action-soft-accent-bg-active": "--ui-action-accent-bg-active",
123
+ "--ui-action-soft-accent-text": "--ui-action-accent-text",
124
+ "--ui-action-soft-accent-border": "--ui-action-accent-text",
125
+ "--ui-action-soft-warning-bg": "--ui-status-warning-bg",
126
+ "--ui-action-soft-warning-bg-hover": "--ui-status-warning-bg",
127
+ "--ui-action-soft-warning-bg-active": "--ui-status-warning-bg",
128
+ "--ui-action-soft-warning-text": "--ui-status-warning-text",
129
+ "--ui-action-soft-warning-border": "--ui-status-warning",
130
+ "--ui-action-warning-outline-text": "--ui-action-danger-outline-text",
131
+ "--ui-action-warning-outline-border": "--ui-action-danger-outline-border",
132
+ "--ui-action-warning-outline-bg-hover": "--ui-action-danger-outline-bg-hover",
133
+ "--ui-action-warning-outline-bg-active": "--ui-action-danger-outline-bg-active",
134
+ "--ui-text-button-strong-text": "--ui-text-primary",
135
+ "--ui-text-button-text-hover": "--ui-text-button-text",
136
+ "--ui-text-button-accent-text-hover": "--ui-text-button-accent-text",
137
+ "--ui-text-button-muted-text-hover": "--ui-text-button-muted-text",
138
+ "--ui-text-button-strong-text-hover": "--ui-text-button-strong-text",
139
+ "--ui-text-button-font-size-xs": "--ui-font-size-xs",
140
+ "--ui-font-weight-medium": "--ui-font-weight-strong",
141
+ "--ui-font-weight-bold": "--ui-font-weight-strong"
120
142
  },
121
143
  "brandComposition": [
122
144
  "--ui-brand-primary",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ksmv/ui-checks",
3
- "version": "0.17.0",
3
+ "version": "0.18.1",
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",