@juau/zuri 0.2.0 → 0.4.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/README.md +42 -6
- package/fesm2022/juau-zuri.mjs +12579 -3591
- package/fesm2022/juau-zuri.mjs.map +1 -1
- package/package.json +4 -1
- package/styles/tokens.css +52 -0
- package/tailwind-theme.css +61 -0
- package/tailwind.preset.cjs +83 -0
- package/tokens.json +820 -0
- package/types/juau-zuri.d.ts +2590 -230
package/README.md
CHANGED
|
@@ -61,12 +61,13 @@ O `ZurThemeService` aplica `data-theme="dark"` no `<html>`, persiste a escolha e
|
|
|
61
61
|
| Grupo | Componentes |
|
|
62
62
|
|---|---|
|
|
63
63
|
| Tema e marca | `ZurThemeService`, `zur-theme-toggle`, `[zurThemeScope]` (tema isolado), `zur-logo` |
|
|
64
|
-
| Fundamentos | `button[zur-button]`, `zur-badge`, `zur-card`, `zur-avatar` |
|
|
65
|
-
| Formulários | `zur-input`, `zur-textarea`, `zur-select`, `zur-checkbox`, `zur-radio`, `zur-switch`, `zur-combobox`, `zur-date-picker`, `zur-chips`, `zur-slider`, `zur-segmented` (todos ControlValueAccessor), `zur-file-upload` |
|
|
66
|
-
| Navegação | `zur-navbar`, `zur-tabs`/`zur-tab`, `zur-menu`/`zur-menu-item`, `zur-breadcrumb`, `zur-sidenav`/`zur-sidenav-item`/`zur-sidenav-label` |
|
|
67
|
-
| Dados | `table[zur-table]` + `th[
|
|
68
|
-
| Conteúdo | `zur-step`, `zur-accordion`, `zur-empty-state` |
|
|
69
|
-
| Sobreposição | `zur-drawer`, `zur-popover` + `[zurPopoverTrigger]` |
|
|
64
|
+
| Fundamentos | `button[zur-button]`, `zur-badge`, `zur-card`, `zur-avatar`, `zur-avatar-group`, `zur-icon` (+ conjunto de 47 ícones), `button[zur-icon-button]`, `button[zur-fab]`, `a[zur-link]`, `zur-divider` |
|
|
65
|
+
| Formulários | `zur-input`, `zur-textarea`, `zur-select`, `zur-checkbox`, `zur-radio`, `zur-switch`, `zur-combobox`, `zur-date-picker`, `zur-chips`, `zur-slider`, `zur-segmented`, `zur-number-input`, `zur-otp-input`, `zur-rating`, `zur-time-picker`, `zur-search`, `zur-inline-edit`, `zur-chip` + `zur-chip-group`, `zur-combobox` com `multiple` (todos ControlValueAccessor e compatíveis com `[formField]`), `zur-file-upload` |
|
|
66
|
+
| Navegação | `zur-navbar`, `zur-tabs`/`zur-tab`, `zur-menu`/`zur-menu-item`, `zur-breadcrumb`, `zur-sidenav`/`zur-sidenav-item`/`zur-sidenav-label`, `zur-bottom-nav` + `a[zur-bottom-nav-item]` |
|
|
67
|
+
| Dados | `table[zur-table]` (+ `zurSelectAll`, `zurSelect`, `zurRow`, `zurExpandToggle`, `zur-column-filter`, `zur-column-menu`), `zur-pagination`, `zur-chart`, `zur-stat`, `zur-sparkline`, `zur-timeline`, `zur-tree`, `zur-list` + `zur-list-item`, `zur-table-toolbar`, `th[zurResizable]`, `tbody[zurTableSkeleton]`, `zur-code-snippet` |
|
|
68
|
+
| Conteúdo | `zur-step`, `zur-stepper`, `zur-carousel`, `zur-avatar-group`, `zur-banner`, `zur-accordion`, `zur-empty-state` |
|
|
69
|
+
| Sobreposição | `zur-drawer` (inclusive `side="bottom"`, o bottom sheet), `zur-popover` + `[zurPopoverTrigger]`, `ZurDialog` (`confirm`/`alert`), `zur-context-menu` + `[zurContextMenu]` |
|
|
70
|
+
| Plataforma | `zurDensity` / `ZurDensityService` / `zur-density-toggle` (densidade compacta), RTL em todos os componentes, `tokens.json` e presets do Tailwind (v3 e v4) |
|
|
70
71
|
| Padrões | `zur-chat` (+ `-message`, `-divider`, `-typing`, `-composer`), `zur-command-palette`, `zur-notification-center`, `zur-kanban` + `ng-template[zurKanbanCard]` |
|
|
71
72
|
| Layouts de página | `zur-landing-layout`, `zur-dashboard-layout`, `zur-list-detail-layout`, `zur-form-layout`, `zur-docs-layout`, `zur-auth-layout`, `zur-error-layout` + `zur-sidebar`, `zur-topbar`, `zur-page-header`, `zur-footer` — veja [`LAYOUTS.md`](../../LAYOUTS.md) |
|
|
72
73
|
| Feedback | `zur-modal`, `ZurToastService` + `zur-toast-container`, `[zurTooltip]`, `zur-alert`, `zur-spinner`, `zur-skeleton`, `zur-progress` |
|
|
@@ -125,6 +126,41 @@ Os textos internos (rótulos de acessibilidade, "Voltar", "Fechar") vêm em port
|
|
|
125
126
|
bootstrapApplication(App, { providers: [provideZuriI18n('en')] });
|
|
126
127
|
```
|
|
127
128
|
|
|
129
|
+
## Densidade e direção
|
|
130
|
+
|
|
131
|
+
```html
|
|
132
|
+
<html data-density="compact" dir="rtl"> <!-- página toda -->
|
|
133
|
+
<section zurDensity>…formulário denso…</section> <!-- só uma área -->
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
`ZurDensityService` e `zur-density-toggle` alternam a densidade da página e lembram a escolha.
|
|
137
|
+
Todos os componentes usam propriedades lógicas e suas setas seguem o sentido de leitura, então RTL
|
|
138
|
+
funciona só com `dir="rtl"`.
|
|
139
|
+
|
|
140
|
+
## Formulários por sinais
|
|
141
|
+
|
|
142
|
+
Os controles funcionam com `ngModel`, com formulários reativos **e** com os Signal Forms do Angular:
|
|
143
|
+
|
|
144
|
+
```html
|
|
145
|
+
<zur-input label="Nome" [formField]="f.nome" />
|
|
146
|
+
<zur-date-picker label="Entrega" [formField]="f.entrega" />
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
## Tailwind e Figma
|
|
150
|
+
|
|
151
|
+
```js
|
|
152
|
+
// Tailwind v3: tailwind.config.js
|
|
153
|
+
module.exports = { presets: [require('@juau/zuri/tailwind.preset.cjs')] };
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
```css
|
|
157
|
+
/* Tailwind v4 */
|
|
158
|
+
@import 'tailwindcss';
|
|
159
|
+
@import '@juau/zuri/tailwind-theme.css';
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
`@juau/zuri/tokens.json` traz todos os tokens no formato W3C Design Tokens, com os dois temas.
|
|
163
|
+
|
|
128
164
|
## Desenvolvimento
|
|
129
165
|
|
|
130
166
|
```bash
|