@wmoney/ui-kit 1.0.5 → 1.0.6

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.
Files changed (2) hide show
  1. package/README.md +29 -10
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -35,11 +35,20 @@ Para ter acesso à tipagem TypeScript dos tokens de cores:
35
35
  import { ThemeTokensProvider, type ThemeTokens } from '@wmoney/ui-kit';
36
36
 
37
37
  const customTokens: ThemeTokens = {
38
- primary: '#ff0000',
39
- secondary: '#00ff00',
40
- background: '#ffffff',
41
- foreground: '#000000',
42
- // ... outros tokens com autocomplete e validação de tipos
38
+ light: {
39
+ primary: '#ff0000',
40
+ secondary: '#00ff00',
41
+ background: '#ffffff',
42
+ foreground: '#000000',
43
+ // ... outros tokens com autocomplete e validação de tipos
44
+ },
45
+ dark: {
46
+ primary: '#ff0050',
47
+ secondary: '#00f199',
48
+ background: '#000000',
49
+ foreground: '#ffffff',
50
+ // ... outros tokens com autocomplete e validação de tipos
51
+ }
43
52
  };
44
53
 
45
54
  function App() {
@@ -59,10 +68,20 @@ O UI Kit suporta personalização de tokens de cores através do `ThemeTokensPro
59
68
  import { ThemeTokensProvider } from '@wmoney/ui-kit';
60
69
 
61
70
  const customTokens = {
62
- primary: '#ff0000',
63
- secondary: '#00ff00',
64
- accent: '#0000ff',
65
- // Adicione outros tokens conforme necessário
71
+ light: {
72
+ primary: '#ff0000',
73
+ secondary: '#00ff00',
74
+ background: '#ffffff',
75
+ foreground: '#000000',
76
+ // ... outros tokens com autocomplete e validação de tipos
77
+ },
78
+ dark: {
79
+ primary: '#ff0050',
80
+ secondary: '#00f199',
81
+ background: '#000000',
82
+ foreground: '#ffffff',
83
+ // ... outros tokens com autocomplete e validação de tipos
84
+ }
66
85
  };
67
86
 
68
87
  function App() {
@@ -74,7 +93,7 @@ function App() {
74
93
  }
75
94
  ```
76
95
 
77
- Os tokens disponíveis incluem: `primary`, `secondary`, `accent`, `foreground`, `background`, `muted`, `border`, `destructive`, `success`, `warning`, etc.
96
+ Os tokens disponíveis são separados por tema `light` e `dark`, e incluem: `primary`, `secondary`, `accent`, `foreground`, `background`, `muted`, `border`, `destructive`, `success`, `warning`, etc.
78
97
 
79
98
  ## Componentes Disponíveis
80
99
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wmoney/ui-kit",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"