@juau/zuri 0.2.0 → 0.3.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 CHANGED
@@ -62,11 +62,12 @@ O `ZurThemeService` aplica `data-theme="dark"` no `<html>`, persiste a escolha e
62
62
  |---|---|
63
63
  | Tema e marca | `ZurThemeService`, `zur-theme-toggle`, `[zurThemeScope]` (tema isolado), `zur-logo` |
64
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` |
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` (todos ControlValueAccessor e compatíveis com `[formField]`), `zur-file-upload` |
66
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[zurSortable]`, `zur-pagination` |
68
- | Conteúdo | `zur-step`, `zur-accordion`, `zur-empty-state` |
69
- | Sobreposição | `zur-drawer`, `zur-popover` + `[zurPopoverTrigger]` |
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` |
68
+ | Conteúdo | `zur-step`, `zur-stepper`, `zur-carousel`, `zur-avatar-group`, `zur-banner`, `zur-accordion`, `zur-empty-state` |
69
+ | Sobreposição | `zur-drawer`, `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