@aurea-uds/contracts 0.9.0 → 0.10.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @aurea-uds/contracts
2
2
 
3
- The **Aurea UDS** project contract, as machine-readable JSON.
3
+ O contrato do projeto **Aurea UDS**, em JSON legível por máquina.
4
4
 
5
5
  ```bash
6
6
  pnpm add @aurea-uds/contracts
@@ -10,35 +10,33 @@ pnpm add @aurea-uds/contracts
10
10
  import contract from "@aurea-uds/contracts/contract" with {type: "json"};
11
11
  ```
12
12
 
13
- It states what the design system promises — identity, the vocabulary of the catalogue, the
14
- enumerations that component records are validated against — in a form a tool can read instead
15
- of a paragraph a person has to interpret.
13
+ Ele diz o que o design system promete — identidade, o vocabulário do catálogo, as listas de
14
+ valores contra as quais as fichas dos componentes são conferidas — numa forma que uma ferramenta
15
+ lê, em vez de um parágrafo que uma pessoa tem de interpretar.
16
16
 
17
- ## The API surface
17
+ ## A superfície da API
18
18
 
19
19
  ```js
20
20
  import surface from "@aurea-uds/contracts/api-surface" with {type: "json"};
21
21
  ```
22
22
 
23
- Every component `@aurea-uds/react` exports, with its props, and — where the type is a union of
24
- string literals — the values those props accept. It is **derived**, not written: the build reads
25
- the declaration output of the TypeScript compiler, so inheritance, `Omit`, `Pick` and chained
26
- aliases are resolved by the compiler rather than by a guess. Editing it by hand is the defect it
27
- exists to prevent.
23
+ Todo componente que o `@aurea-uds/react` exporta, com as props e — quando o tipo é uma união de
24
+ textos fixos — os valores que cada prop aceita. Ela é **derivada**, não escrita: o build lê as
25
+ declarações que o compilador do TypeScript gera, então herança, `Omit`, `Pick` e apelidos em
26
+ cadeia são resolvidos pelo compilador, e não por palpite. Editá-la à mão é justamente o defeito
27
+ que ela existe para evitar.
28
28
 
29
- It is what lets a tool answer "which variants does this component take?" without parsing our
30
- source or trusting our prose — and it is what the validator checks the per-component records
31
- against, so the two cannot drift.
29
+ É ela que deixa uma ferramenta responder "que variantes este componente aceita?" sem ler o nosso
30
+ código nem confiar na nossa prosa — e é contra ela que o validador confere as fichas de cada
31
+ componente, para as duas não divergirem.
32
32
 
33
- ## What is not in here
33
+ ## O que não está aqui
34
34
 
35
- The per-component records live in the repository, not in this package. They are how the
36
- catalogue is generated and how the validator checks the library against itself; nothing
37
- outside the build consumes them, and a package should not ship files that exist only to
38
- answer a question nobody is asking. If you need them, say so in an issue and they get an
39
- entry point. The API surface above is the part of that answer a tool actually needs, and it
40
- ships for exactly that reason.
35
+ As fichas de cada componente moram no repositório, não neste pacote. Elas geram o catálogo e
36
+ deixam o validador conferir a biblioteca contra ela mesma; nada fora do build as usa. Se você
37
+ precisar delas, abra uma issue pedindo, e elas ganham uma entrada. A superfície da API acima é a
38
+ parte dessa resposta de que uma ferramenta precisa, e é por isso que ela vai no pacote.
41
39
 
42
- ## Licence
40
+ ## Licença
43
41
 
44
42
  Apache-2.0.
package/api-surface.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "componentes": 120,
8
8
  "hooks": 9,
9
9
  "aliasesLiterais": 54,
10
- "propsDistintas": 233
10
+ "propsDistintas": 236
11
11
  },
12
12
  "aliases": {
13
13
  "ButtonVariant": {
@@ -3556,6 +3556,12 @@
3556
3556
  "flush"
3557
3557
  ]
3558
3558
  },
3559
+ {
3560
+ "name": "topbarDivider",
3561
+ "optional": true,
3562
+ "type": "boolean",
3563
+ "values": null
3564
+ },
3559
3565
  {
3560
3566
  "name": "sidebarVariant",
3561
3567
  "optional": true,
@@ -3570,6 +3576,15 @@
3570
3576
  "optional": true,
3571
3577
  "type": "boolean",
3572
3578
  "values": null
3579
+ },
3580
+ {
3581
+ "name": "contentVariant",
3582
+ "optional": true,
3583
+ "type": "\"surface\" | \"plain\"",
3584
+ "values": [
3585
+ "surface",
3586
+ "plain"
3587
+ ]
3573
3588
  }
3574
3589
  ]
3575
3590
  },
@@ -4072,6 +4087,12 @@
4072
4087
  "optional": true,
4073
4088
  "type": "ReactNode",
4074
4089
  "values": null
4090
+ },
4091
+ {
4092
+ "name": "divider",
4093
+ "optional": true,
4094
+ "type": "boolean",
4095
+ "values": null
4075
4096
  }
4076
4097
  ]
4077
4098
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "Aurea — Universal Design System",
3
- "version": "0.9.0",
3
+ "version": "0.10.1",
4
4
  "status": "organized-source-of-truth",
5
5
  "language": "pt-BR",
6
6
  "fonts": {
@@ -200,7 +200,7 @@
200
200
  "@aurea-uds/react",
201
201
  "@aurea-uds/native"
202
202
  ],
203
- "rule": "Artefatos derivam de legacy-reference.html e dos pacotes do monorepo; não editar manualmente fora deles.",
203
+ "rule": "Artefatos derivam dos pacotes do monorepo; não editar manualmente fora deles.",
204
204
  "mode": "workspace-packages",
205
205
  "commands": {
206
206
  "verify": "pnpm validate"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aurea-uds/contracts",
3
- "version": "0.9.0",
4
- "description": "The Aurea UDS project contract as machine-readable JSON.",
3
+ "version": "0.10.1",
4
+ "description": "O contrato do projeto Aurea UDS, em JSON legível por máquina.",
5
5
  "keywords": [
6
6
  "aurea",
7
7
  "design-system",
@@ -13,6 +13,10 @@
13
13
  "url": "git+https://github.com/victor1mor/aurea-uds.git",
14
14
  "directory": "packages/contracts"
15
15
  },
16
+ "homepage": "https://github.com/victor1mor/aurea-uds/tree/main/packages/contracts#readme",
17
+ "bugs": {
18
+ "url": "https://github.com/victor1mor/aurea-uds/issues"
19
+ },
16
20
  "publishConfig": {
17
21
  "access": "public"
18
22
  },