@juau/zuri 0.0.0-stage → 0.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 JoaoMarcosSC
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,106 @@
1
- # Temporary Holding Version
1
+ # Zuri
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Design system Angular de atmosfera **amigável-consumer** com paleta **verde-menta**,
4
+ tipografia arredondada (Nunito Sans), formas suaves e **tema claro/escuro** alternável
5
+ por um botão sol/lua. A especificação completa vive em [`DESIGN.md`](../../DESIGN.md)
6
+ na raiz do repositório.
7
+
8
+ Inspirações (via `awesome-design-md`): Airbnb (formato e sombra única), Jobright/Wise
9
+ (paleta menta), Apple/ElevenLabs (densidade generosa), MongoDB/Mercury (dark com
10
+ tintura verde).
11
+
12
+ ## Instalação
13
+
14
+ ```bash
15
+ npm install @juau/zuri
16
+ ```
17
+
18
+ ## Setup
19
+
20
+ 1. Importe os tokens no `styles.css` global da aplicação:
21
+
22
+ ```css
23
+ @import '@juau/zuri/styles/tokens.css';
24
+
25
+ /* fonte do sistema */
26
+ @import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700;800&display=swap');
27
+
28
+ body {
29
+ margin: 0;
30
+ background: var(--zur-canvas);
31
+ color: var(--zur-body);
32
+ font: var(--zur-font-body);
33
+ transition: background-color 200ms ease, color 200ms ease;
34
+ }
35
+ ```
36
+
37
+ 2. Coloque o toggle de tema (sol/lua) na navbar e o container de toasts no shell:
38
+
39
+ ```html
40
+ <zur-navbar>
41
+ <strong zurNavbarLogo>Minha Marca</strong>
42
+ <ng-container zurNavbarLinks>
43
+ <a href="#">Início</a>
44
+ <a href="#">Explorar</a>
45
+ </ng-container>
46
+ <ng-container zurNavbarActions>
47
+ <zur-theme-toggle />
48
+ </ng-container>
49
+ </zur-navbar>
50
+
51
+ <zur-toast-container />
52
+ ```
53
+
54
+ O `ZurThemeService` aplica `data-theme="dark"` no `<html>`, persiste a escolha em
55
+ `localStorage` (`zur-theme`) e respeita `prefers-color-scheme` na primeira visita.
56
+
57
+ ## Componentes
58
+
59
+ | Grupo | Componentes |
60
+ |---|---|
61
+ | Tema e marca | `ZurThemeService`, `zur-theme-toggle`, `[zurThemeScope]` (tema isolado), `zur-logo` |
62
+ | Fundamentos | `button[zur-button]`, `zur-badge`, `zur-card`, `zur-avatar` |
63
+ | Formulários | `zur-input`, `zur-select`, `zur-checkbox`, `zur-radio`, `zur-switch` (todos ControlValueAccessor) |
64
+ | Navegação | `zur-navbar`, `zur-tabs`/`zur-tab`, `zur-menu`/`zur-menu-item`, `zur-breadcrumb`, `zur-sidenav`/`zur-sidenav-item`/`zur-sidenav-label` |
65
+ | Conteúdo | `zur-step` |
66
+ | 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) |
67
+ | Feedback | `zur-modal`, `ZurToastService` + `zur-toast-container`, `[zurTooltip]`, `zur-alert`, `zur-spinner`, `zur-skeleton` |
68
+
69
+ ### Exemplos
70
+
71
+ ```html
72
+ <button zur-button variant="primary" size="md">Reservar</button>
73
+ <button zur-button variant="secondary">Cancelar</button>
74
+
75
+ <zur-badge color="success">Confirmado</zur-badge>
76
+
77
+ <zur-input label="E-mail" placeholder="voce@exemplo.com" [(ngModel)]="email" />
78
+
79
+ <zur-switch [(ngModel)]="notificacoes">Receber notificações</zur-switch>
80
+
81
+ <zur-tabs>
82
+ <zur-tab label="Visão geral">…</zur-tab>
83
+ <zur-tab label="Avaliações">…</zur-tab>
84
+ </zur-tabs>
85
+
86
+ <zur-modal [(open)]="aberto" title="Confirmar reserva">
87
+ Deseja confirmar a reserva?
88
+ <div zurModalActions>
89
+ <button zur-button variant="ghost" (click)="aberto = false">Voltar</button>
90
+ <button zur-button variant="primary">Confirmar</button>
91
+ </div>
92
+ </zur-modal>
93
+ ```
94
+
95
+ ```ts
96
+ // toasts
97
+ private toast = inject(ZurToastService);
98
+ this.toast.show('Reserva confirmada!', 'success');
99
+ ```
100
+
101
+ ## Desenvolvimento
102
+
103
+ ```bash
104
+ ng build zuri # build da library (ng-packagr) → dist/zuri
105
+ npm run storybook # catálogo interativo de componentes
106
+ ```