blockforce-design-system 2.0.1 → 2.0.3
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/MIGRATION.md +15 -14
- package/README.md +6 -2
- package/lib/ai/components.json +6426 -0
- package/lib/ai/icons.txt +5999 -0
- package/lib/ai/tokens.md +231 -0
- package/lib/commonjs/components/forms/file/file-image-preview/file-image-preview.comp.js.map +1 -1
- package/lib/commonjs/components/forms/file/file-image-preview-list/file-image-preview-list.comp.js.map +1 -1
- package/lib/commonjs/components/forms/file/file-preview-list/file-preview-list.comp.js.map +1 -1
- package/lib/commonjs/components/icons/icon/icon.comp.js.map +1 -1
- package/lib/commonjs/theme/client-theme.js +1 -1
- package/lib/commonjs/theme/client-theme.js.map +1 -1
- package/lib/commonjs/theme/generated/tokens.js +1 -1
- package/lib/commonjs/theme/generated/tokens.js.map +1 -1
- package/lib/index.d.ts +24 -3
- package/lib/module/components/forms/file/file-image-preview/file-image-preview.comp.js.map +1 -1
- package/lib/module/components/forms/file/file-image-preview-list/file-image-preview-list.comp.js.map +1 -1
- package/lib/module/components/forms/file/file-preview-list/file-preview-list.comp.js.map +1 -1
- package/lib/module/components/icons/icon/icon.comp.js.map +1 -1
- package/lib/module/theme/client-theme.js +1 -1
- package/lib/module/theme/client-theme.js.map +1 -1
- package/lib/module/theme/generated/tokens.js +1 -1
- package/lib/module/theme/generated/tokens.js.map +1 -1
- package/lib/tokens/blockforce.tokens.json +2 -2
- package/lib/tokens/tokens.css +1 -1
- package/llms-full.txt +2197 -0
- package/llms.txt +149 -0
- package/package.json +18 -11
package/MIGRATION.md
CHANGED
|
@@ -26,7 +26,7 @@ O pacote mudou de nome. Há dois caminhos.
|
|
|
26
26
|
|
|
27
27
|
- **Peer deps (iguais à v1):** `react` e `react-dom` ≥ 18.2, `styled-components` ≥ 6.
|
|
28
28
|
- **`react-icons`:** continua em `dependencies`, mas deixou de ir embutido no `lib/`. O projeto recebe pela dependência.
|
|
29
|
-
- **Fonte:** o DS não carrega a fonte. Carregue a **
|
|
29
|
+
- **Fonte:** o DS não carrega a fonte. Carregue a **Inter** (300 a 700) no `index.html`. A v1 usava Rubik; o `legacyTheme` continua em Rubik.
|
|
30
30
|
|
|
31
31
|
## 2. Qual tema usar
|
|
32
32
|
|
|
@@ -265,7 +265,7 @@ Nenhuma prop foi removida.
|
|
|
265
265
|
| `colors.stateSubtle` | fundos claros: success `#ECFDF3`, warning `#FEF3E7`, error `#FDECEA`, info `#E8F3FA` |
|
|
266
266
|
| `colors.stateText` | texto escuro: success `#067647`, warning `#DC6803`, error `#C0392B`, info `#0F5E8C` |
|
|
267
267
|
| `colors.chart` | purple `#6633CC`, lilac `#B692F6`, lightBlue `#ABD0FD`, blue `#36BFFA`, teal `#00CC99`, orange `#FAC074`, pink `#F670C7`, e grey `#D9D9D9`, que é só para "outros" |
|
|
268
|
-
| `typography.fontFamily` / `monoFamily` | `
|
|
268
|
+
| `typography.fontFamily` / `monoFamily` | `Inter, system-ui, -apple-system, 'Segoe UI', sans-serif` / `'JetBrains Mono', …` |
|
|
269
269
|
| `typography.fontWeight` | light 300, regular 400, medium 500, semibold 600, bold 700 |
|
|
270
270
|
| `typography.lineHeight` | tight 1.1, snug 1.3, normal 1.5, relaxed 1.6 |
|
|
271
271
|
| `typography.textSize` | caption 12, bodySm 14, body 16, bodyLg 18, h4 22, h3 28, h2 40, h1 56, display 72 (px) |
|
|
@@ -306,7 +306,7 @@ A tabela completa, com os hex de cada um, está no Storybook, em **Migrando da v
|
|
|
306
306
|
| `colors.primary` | `#246153` (verde) | `#6633CC` (roxo) |
|
|
307
307
|
| `colors.secondary` | `#9BD19D` (verde claro) | `#00CC99` (teal) |
|
|
308
308
|
| `colors.grey_6` | `#F8FCFB` (esverdeado) | `#F8F7FC` (toque roxo) |
|
|
309
|
-
| `typography.family` | `Rubik, 'sans-serif'` (o fallback não funcionava) | `
|
|
309
|
+
| `typography.family` | `Rubik, 'sans-serif'` (o fallback não funcionava) | `Inter, system-ui, …, sans-serif` |
|
|
310
310
|
| `box_shadow.box` | `2px 4px 4px rgba(0,0,0,.1)` | `0px 2px 8px 0px #0000000F` |
|
|
311
311
|
| `box_shadow.card` | `0px 1px 4px 0px rgba(36,97,83,.12)` (verde) | `0px 2px 8px 0px #0000000F` |
|
|
312
312
|
| `box_shadow.input` | `0px 1px 2px 0px rgba(16,24,40,.05);` | `0px 1px 2px 0px #0000000D` |
|
|
@@ -361,17 +361,18 @@ Use para landing, slides, vídeos e HTML sem React.
|
|
|
361
361
|
|
|
362
362
|
### 6.1 O que muda sem mudar código
|
|
363
363
|
|
|
364
|
-
| Onde | O que acontece
|
|
365
|
-
| ---------------------------------------------------------- |
|
|
366
|
-
| Button `contained` sem `backgroundColor` | O fundo vai de `secondary` para `primary`.
|
|
367
|
-
| Button `loading` | Não fica mais `disabled`.
|
|
368
|
-
|
|
|
369
|
-
|
|
|
370
|
-
|
|
|
371
|
-
|
|
|
372
|
-
|
|
|
373
|
-
|
|
|
374
|
-
|
|
|
364
|
+
| Onde | O que acontece | Como lidar |
|
|
365
|
+
| ---------------------------------------------------------- | ------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
|
|
366
|
+
| Button `contained` sem `backgroundColor` | O fundo vai de `secondary` para `primary`. | Passe `backgroundColor="secondary"` onde quiser manter. |
|
|
367
|
+
| Button `loading` | Não fica mais `disabled`. | Testes com `toBeDisabled()` precisam olhar `aria-busy`. |
|
|
368
|
+
| Fonte do tema padrão | Passa de Rubik para Inter. Sem carregar a Inter, cai na fonte do sistema. | Carregue a Inter no `index.html`, ou use `createTheme` com `typography.fontFamily` em Rubik para manter. |
|
|
369
|
+
| Spinner sem `variant` | Vira arco fino. | Use `variant="classic"` para o anel da v1. |
|
|
370
|
+
| Campos com `state="success"` ou `"warning"` | A borda não muda de cor. | Use `borderColor`, se precisar. |
|
|
371
|
+
| Foco dos campos, Switch, Avatar, MonthPicker, FileDropzone | Visual novo. | Nada. |
|
|
372
|
+
| Tabs do DS | Sempre pílula. | Nada. |
|
|
373
|
+
| `grey_6` e sombras | Novos valores (4.3). | Nada. |
|
|
374
|
+
| Modal (z-index 1200) | Listas próprias com z-index 1000 ficam atrás dele. | Suba essas listas para `theme.zIndex.dropdown` (1300). |
|
|
375
|
+
| Estilos do projeto que sobrescrevem estilos internos do DS | Podem ganhar ou perder pela ordem de carregamento dos estilos. | Revise as telas. O DoughnutChart foi um caso real, já corrigido. |
|
|
375
376
|
|
|
376
377
|
### 6.2 Compatibilidades adicionadas
|
|
377
378
|
|
package/README.md
CHANGED
|
@@ -180,8 +180,12 @@ E rode `npx vite --config vite.config.local-ds.ts --port 5175`.
|
|
|
180
180
|
- `fix` → patch
|
|
181
181
|
- `feat` → minor
|
|
182
182
|
- `feat!` → major
|
|
183
|
-
- **Componente novo:**
|
|
183
|
+
- **Componente novo ou ajustado:** siga o checklist e a tabela de nomes de prop do [`AGENTS.md`](AGENTS.md).
|
|
184
184
|
|
|
185
185
|
## Release
|
|
186
186
|
|
|
187
|
-
|
|
187
|
+
- **Quando:** todo push em `main` roda o `semantic-release` no workflow **Release** do GitHub Actions. Também dá para disparar à mão (workflow_dispatch).
|
|
188
|
+
- **O que faz:** publica no npm e cria a release no GitHub.
|
|
189
|
+
- **Requisito:** o secret `NPM_TOKEN` no repo.
|
|
190
|
+
- **Versão publicada:** aparece em Releases, no GitHub, e no commit `chore(release): X.Y.Z`.
|
|
191
|
+
- **Storybook:** o workflow **Storybook** publica em https://designsystem.blockforce.ai.
|