synthesisui 0.16.282 → 0.16.283
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/dist/guide.js +21 -1
- package/dist/install-marks.js +1 -1
- package/package.json +1 -1
package/dist/guide.js
CHANGED
|
@@ -262,6 +262,23 @@ export function buildGuide(payload) {
|
|
|
262
262
|
const { document: doc, slug, name, version } = payload;
|
|
263
263
|
const { meta, foundations, motion, components } = doc;
|
|
264
264
|
const semanticRoles = Object.keys(foundations.color.semantic);
|
|
265
|
+
/**
|
|
266
|
+
* O NOME QUE ELE DÁ AO PAPEL, quando o documento sabe qual é - `semanticNames`.
|
|
267
|
+
*
|
|
268
|
+
* O guia listava `info, faint, muted, scrim, accent, border, canvas, danger, raised, overlay,
|
|
269
|
+
* primary, success, surface, warning` e chamava isso de vocabulário do sistema DELE. Nenhuma dessas
|
|
270
|
+
* palavras está no código dele: `canvas` é `paper`, `primary` é `brand-blue`, `danger` é
|
|
271
|
+
* `feedback-error`. Este arquivo é o que o agente dele LÊ antes de escrever, então a nossa língua
|
|
272
|
+
* aqui vira o código dele.
|
|
273
|
+
*
|
|
274
|
+
* A missão de 16/08 tirou o nosso identificador das telas e da saída de texto do CLI; o guia é
|
|
275
|
+
* artefato e escapou da varredura. Medido em 22/08 no `codelevel-ui`: 14 papéis listados, 12 com
|
|
276
|
+
* nome dele guardado no documento e nenhum aparecendo.
|
|
277
|
+
*
|
|
278
|
+
* Sem `semanticNames` o papel sai como está - é o caso de um sistema que NASCEU aqui, e aí o nome
|
|
279
|
+
* é nosso mesmo.
|
|
280
|
+
*/
|
|
281
|
+
const theirRole = (role) => foundations.color.semanticNames?.[role] ?? role;
|
|
265
282
|
/**
|
|
266
283
|
* AS CORES QUE ELE NOMEIA POR PROPÓSITO, no arquivo que o agente lê primeiro.
|
|
267
284
|
*
|
|
@@ -679,7 +696,10 @@ ${hasTailwind
|
|
|
679
696
|
The token names below are the source vocabulary - every utility derives from them.`
|
|
680
697
|
: ""}
|
|
681
698
|
- **Always use semantic tokens**, never raw values nor primitives directly.
|
|
682
|
-
Color: \`var(--ds-color-semantic-<role>)\`${hasTailwind ? " (utility: `bg-<role>`/`text-<role>`)" : ""}. The roles are: ${list(semanticRoles)
|
|
699
|
+
Color: \`var(--ds-color-semantic-<role>)\`${hasTailwind ? " (utility: `bg-<role>`/`text-<role>`)" : ""}. The roles are: ${list(semanticRoles.map((r) => {
|
|
700
|
+
const theirs = theirRole(r);
|
|
701
|
+
return theirs === r ? r : `${r} (${theirs} in your code)`;
|
|
702
|
+
}))}.
|
|
683
703
|
- Primitives (\`--ds-color-<palette>-<step>\`) exist but should **not** be referenced directly -
|
|
684
704
|
they feed the semantic roles.${namedColours.length > 0
|
|
685
705
|
? `\n- **Yours by name** → \`var(--ds-color-<name>)\`: ${namedColours.length} colour${namedColours.length === 1 ? "" : "s"} your code names by PURPOSE rather than by step, so no scale could hold ${namedColours.length === 1 ? "it" : "them"} - ${list(namedColours.slice(0, 8))}${namedColours.length > 8 ? ", …" : ""}. These are yours: reach for them when the purpose matches, and prefer a semantic role when it does not.`
|
package/dist/install-marks.js
CHANGED
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
* é sempre o bump deste PR - nunca o número que o `package.json` já carrega, porque alguém pode
|
|
129
129
|
* publicar no meio.
|
|
130
130
|
*/
|
|
131
|
-
export const MATERIALISER_SINCE = "0.16.
|
|
131
|
+
export const MATERIALISER_SINCE = "0.16.283";
|
|
132
132
|
/**
|
|
133
133
|
* A ÚLTIMA VERSÃO EM QUE O QUE O HOOK RODA MUDOU.
|
|
134
134
|
*
|
package/package.json
CHANGED