plataforma-fundacao-componentes 2.20.21 → 2.20.25
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 +20 -10
- package/dist/components/button/Button.stories.d.ts +2 -0
- package/dist/components/checkbox/Checkbox.stories.d.ts +1 -0
- package/dist/components/etiqueta/Etiqueta.stories.d.ts +1 -1
- package/dist/index.css +126 -94
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +3 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/libraries/BlobFileTypes.d.ts +3 -2
- package/dist/libraries/ButtonTheme.d.ts +2 -1
- package/dist/libraries/CardThemes.d.ts +1 -1
- package/dist/libraries/CheckboxThemes.d.ts +2 -1
- package/dist/libraries/EtiquetasThemes.d.ts +1 -1
- package/dist/libraries/HeaderThemes.d.ts +1 -1
- package/dist/libraries/IconButtonTheme.d.ts +1 -1
- package/dist/libraries/ModalSize.d.ts +1 -1
- package/dist/libraries/Notification.d.ts +2 -2
- package/dist/libraries/Pautas.d.ts +1 -1
- package/dist/libraries/RadioButtonTheme.d.ts +1 -1
- package/dist/libraries/SicrediLogoThemes.d.ts +1 -1
- package/dist/libraries/Toast.d.ts +1 -1
- package/dist/libraries/Tooltips.d.ts +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -1,27 +1,37 @@
|
|
|
1
1
|
# plataforma-fundacao-componentes
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
> feito com create-react-library
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/plataforma-fundacao-componentes) [](https://standardjs.com)
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Instalar
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
npm install --save plataforma-fundacao-componentes
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## Usar
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
Dois passos para utilizar os componentes
|
|
16
|
+
|
|
17
|
+
## 1) Importar o CSS no HOC da sua ferramenta
|
|
17
18
|
|
|
18
|
-
|
|
19
|
+
```tsx
|
|
19
20
|
import 'plataforma-fundacao-componentes/dist/index.css'
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
`*HOC: High Order Component: importamos no App.tsx ou App.jsx, mas também pode ser importado no index.tsx ou index.jsx`
|
|
24
|
+
|
|
25
|
+
## 2) Importar o componente e utilizar :P
|
|
26
|
+
|
|
27
|
+
```tsx
|
|
28
|
+
import React from 'react'
|
|
29
|
+
import { Button } from 'plataforma-fundacao-componentes'
|
|
20
30
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
31
|
+
expord default function Example() {
|
|
32
|
+
return (<Button onClick={() => {
|
|
33
|
+
console.log('clicou')
|
|
34
|
+
}}>Clique</Button>)
|
|
25
35
|
}
|
|
26
36
|
```
|
|
27
37
|
|
|
@@ -4,7 +4,9 @@ declare namespace _default {
|
|
|
4
4
|
}
|
|
5
5
|
export default _default;
|
|
6
6
|
export function Primary(): JSX.Element;
|
|
7
|
+
export function PrimaryLight(): JSX.Element;
|
|
7
8
|
export function PrimaryDisabled(): JSX.Element;
|
|
9
|
+
export function PrimaryLightDisabled(): JSX.Element;
|
|
8
10
|
export function PrimaryLoading(): JSX.Element;
|
|
9
11
|
export function Secondary(): JSX.Element;
|
|
10
12
|
export function SecondaryWhiteBackground(): JSX.Element;
|
|
@@ -5,6 +5,7 @@ declare namespace _default {
|
|
|
5
5
|
export default _default;
|
|
6
6
|
export function Primary(): JSX.Element;
|
|
7
7
|
export function Dark(): JSX.Element;
|
|
8
|
+
export function Classic(): JSX.Element;
|
|
8
9
|
export function DisabledOn(): JSX.Element;
|
|
9
10
|
export function DisabledOff(): JSX.Element;
|
|
10
11
|
import Checkbox from "./Checkbox";
|