@mlw-packages/react-components 1.3.3 → 1.3.5
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 +44 -41
- package/dist/index.css +3291 -3291
- package/dist/index.d.mts +545 -544
- package/dist/index.d.ts +545 -544
- package/dist/index.js +3490 -3490
- package/dist/index.mjs +3301 -3301
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,50 +1,53 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @malwee/react-components
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Uma biblioteca de componentes React reutilizáveis para acelerar o desenvolvimento de aplicações web com design consistente, acessível e moderno.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Instalação
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
```bash
|
|
8
|
+
npm install @malwee/react-components
|
|
9
|
+
# ou
|
|
10
|
+
yarn add @malwee/react-components
|
|
11
|
+
```
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
## Uso Básico
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
```tsx
|
|
16
|
+
import { ButtonBase, CardBase } from '@malwee/react-components';
|
|
15
17
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
})
|
|
18
|
+
function App() {
|
|
19
|
+
return (
|
|
20
|
+
<CardBase>
|
|
21
|
+
<ButtonBase>Meu botão</ButtonBase>
|
|
22
|
+
</CardBase>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
26
25
|
```
|
|
27
26
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
},
|
|
43
|
-
rules: {
|
|
44
|
-
// other rules...
|
|
45
|
-
// Enable its recommended rules
|
|
46
|
-
...react.configs.recommended.rules,
|
|
47
|
-
...react.configs['jsx-runtime'].rules,
|
|
48
|
-
},
|
|
49
|
-
})
|
|
27
|
+
## Componentes Disponíveis
|
|
28
|
+
|
|
29
|
+
- Botões (`ButtonBase`)
|
|
30
|
+
- Cartões (`CardBase`)
|
|
31
|
+
- Inputs, Selects, Combobox, Checkbox, Switch, Tabs, Table, Tooltip, Dialog, Drawer, Sidebar, Avatar, Calendar, Carousel, Progress, Skeleton, Sonner, e outros.
|
|
32
|
+
|
|
33
|
+
Veja a lista completa na pasta `src/components/ui` ou exemplos em `src/pages`.
|
|
34
|
+
|
|
35
|
+
## Estilos
|
|
36
|
+
|
|
37
|
+
Os componentes utilizam Tailwind CSS. Certifique-se de que seu projeto está configurado para usar Tailwind. Importe o CSS global:
|
|
38
|
+
|
|
39
|
+
```tsx
|
|
40
|
+
import '@malwee/react-components/style/global.css';
|
|
50
41
|
```
|
|
42
|
+
|
|
43
|
+
## Documentação
|
|
44
|
+
|
|
45
|
+
Consulte exemplos de uso e documentação dos componentes na pasta `src/pages`.
|
|
46
|
+
|
|
47
|
+
## Contribuição
|
|
48
|
+
|
|
49
|
+
Contribuições são bem-vindas! Abra uma issue ou envie um pull request.
|
|
50
|
+
|
|
51
|
+
## Licença
|
|
52
|
+
|
|
53
|
+
MIT
|