@yeverlibs/ds 1.0.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 ADDED
@@ -0,0 +1,91 @@
1
+ # @yever/design-system
2
+
3
+ Biblioteca de componentes do Design System Yever.
4
+
5
+ ## Instalação
6
+
7
+ ```bash
8
+ npm install @yever/design-system
9
+ # ou
10
+ yarn add @yever/design-system
11
+ # ou
12
+ pnpm add @yever/design-system
13
+ ```
14
+
15
+ ## Dependências Peer
16
+
17
+ Este pacote requer as seguintes dependências peer:
18
+
19
+ - `react` ^18.0.0
20
+ - `react-dom` ^18.0.0
21
+ - `next` ^14.0.0
22
+
23
+ ## Uso
24
+
25
+ ### Importar estilos
26
+
27
+ No seu `app/layout.tsx` ou `_app.tsx`:
28
+
29
+ ```tsx
30
+ import '@yever/design-system/styles'
31
+ ```
32
+
33
+ ### Configurar Tailwind
34
+
35
+ Importe a configuração do Tailwind no seu `tailwind.config.js`:
36
+
37
+ ```js
38
+ import designSystemConfig from '@yever/design-system/tailwind'
39
+
40
+ export default {
41
+ ...designSystemConfig,
42
+ content: [
43
+ ...designSystemConfig.content,
44
+ './src/**/*.{js,ts,jsx,tsx}',
45
+ ],
46
+ }
47
+ ```
48
+
49
+ ### Usar componentes
50
+
51
+ ```tsx
52
+ import { Button, Input, Modal } from '@yever/design-system'
53
+
54
+ function MyComponent() {
55
+ return (
56
+ <Button $variant="primary" $size="medium">
57
+ Clique aqui
58
+ </Button>
59
+ )
60
+ }
61
+ ```
62
+
63
+ ## Build
64
+
65
+ Para fazer build do pacote:
66
+
67
+ ```bash
68
+ npm run build
69
+ ```
70
+
71
+ Isso irá gerar os arquivos compilados na pasta `dist/`.
72
+
73
+ ## Desenvolvimento
74
+
75
+ Para desenvolvimento com watch mode:
76
+
77
+ ```bash
78
+ npm run dev
79
+ ```
80
+
81
+ ## Estrutura
82
+
83
+ - `src/_design-system/` - Componentes do design system
84
+ - `src/lib/` - Utilitários
85
+ - `src/utils/` - Funções auxiliares
86
+ - `src/hooks/` - Hooks reutilizáveis
87
+ - `src/@types/` - Definições de tipos TypeScript
88
+
89
+ ## Licença
90
+
91
+ MIT