@juau/zuri 0.1.0 → 0.2.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 +24 -9
- package/fesm2022/juau-zuri.mjs +6313 -2187
- package/fesm2022/juau-zuri.mjs.map +1 -1
- package/package.json +1 -1
- package/types/juau-zuri.d.ts +971 -9
package/README.md
CHANGED
|
@@ -40,10 +40,10 @@ body {
|
|
|
40
40
|
|
|
41
41
|
```html
|
|
42
42
|
<zur-navbar>
|
|
43
|
-
<strong zurNavbarLogo>
|
|
43
|
+
<strong zurNavbarLogo>Casa Verde</strong>
|
|
44
44
|
<ng-container zurNavbarLinks>
|
|
45
45
|
<a href="#">Início</a>
|
|
46
|
-
<a href="#">
|
|
46
|
+
<a href="#">Plantas</a>
|
|
47
47
|
</ng-container>
|
|
48
48
|
<ng-container zurNavbarActions>
|
|
49
49
|
<zur-theme-toggle />
|
|
@@ -62,33 +62,34 @@ 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` (todos ControlValueAccessor) |
|
|
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
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
67
|
| Dados | `table[zur-table]` + `th[zurSortable]`, `zur-pagination` |
|
|
68
68
|
| Conteúdo | `zur-step`, `zur-accordion`, `zur-empty-state` |
|
|
69
69
|
| Sobreposição | `zur-drawer`, `zur-popover` + `[zurPopoverTrigger]` |
|
|
70
|
+
| Padrões | `zur-chat` (+ `-message`, `-divider`, `-typing`, `-composer`), `zur-command-palette`, `zur-notification-center`, `zur-kanban` + `ng-template[zurKanbanCard]` |
|
|
70
71
|
| 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) |
|
|
71
72
|
| Feedback | `zur-modal`, `ZurToastService` + `zur-toast-container`, `[zurTooltip]`, `zur-alert`, `zur-spinner`, `zur-skeleton`, `zur-progress` |
|
|
72
73
|
|
|
73
74
|
### Exemplos
|
|
74
75
|
|
|
75
76
|
```html
|
|
76
|
-
<button zur-button variant="primary" size="md">
|
|
77
|
+
<button zur-button variant="primary" size="md">Comprar</button>
|
|
77
78
|
<button zur-button variant="secondary">Cancelar</button>
|
|
78
79
|
|
|
79
|
-
<zur-badge color="success">
|
|
80
|
+
<zur-badge color="success">Entregue</zur-badge>
|
|
80
81
|
|
|
81
82
|
<zur-input label="E-mail" placeholder="voce@exemplo.com" [(ngModel)]="email" />
|
|
82
83
|
|
|
83
84
|
<zur-switch [(ngModel)]="notificacoes">Receber notificações</zur-switch>
|
|
84
85
|
|
|
85
86
|
<zur-tabs>
|
|
86
|
-
<zur-tab label="
|
|
87
|
+
<zur-tab label="Descrição">…</zur-tab>
|
|
87
88
|
<zur-tab label="Avaliações">…</zur-tab>
|
|
88
89
|
</zur-tabs>
|
|
89
90
|
|
|
90
|
-
<zur-modal [(open)]="aberto" title="Confirmar
|
|
91
|
-
Deseja confirmar
|
|
91
|
+
<zur-modal [(open)]="aberto" title="Confirmar pedido">
|
|
92
|
+
Deseja confirmar o pedido?
|
|
92
93
|
<div zurModalActions>
|
|
93
94
|
<button zur-button variant="ghost" (click)="aberto = false">Voltar</button>
|
|
94
95
|
<button zur-button variant="primary">Confirmar</button>
|
|
@@ -96,10 +97,24 @@ O `ZurThemeService` aplica `data-theme="dark"` no `<html>`, persiste a escolha e
|
|
|
96
97
|
</zur-modal>
|
|
97
98
|
```
|
|
98
99
|
|
|
100
|
+
```html
|
|
101
|
+
<zur-combobox label="Planta" [options]="plantas" [(ngModel)]="planta" />
|
|
102
|
+
<zur-date-picker label="Período" mode="range" [(ngModel)]="periodo" />
|
|
103
|
+
|
|
104
|
+
<zur-chat style="height: 480px">
|
|
105
|
+
@for (m of mensagens(); track m.id) {
|
|
106
|
+
<zur-chat-message [from]="m.from" [author]="m.autor">{{ m.texto }}</zur-chat-message>
|
|
107
|
+
}
|
|
108
|
+
<zur-chat-composer (send)="enviar($event)" />
|
|
109
|
+
</zur-chat>
|
|
110
|
+
|
|
111
|
+
<zur-command-palette [commands]="comandos" (selected)="executar($event)" /> <!-- Ctrl+K -->
|
|
112
|
+
```
|
|
113
|
+
|
|
99
114
|
```ts
|
|
100
115
|
// toasts
|
|
101
116
|
private toast = inject(ZurToastService);
|
|
102
|
-
this.toast.show('
|
|
117
|
+
this.toast.show('Pedido confirmado!', 'success');
|
|
103
118
|
```
|
|
104
119
|
|
|
105
120
|
## Idioma
|