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 CHANGED
@@ -1,27 +1,37 @@
1
1
  # plataforma-fundacao-componentes
2
2
 
3
- > Made with create-react-library
3
+ > feito com create-react-library
4
4
 
5
5
  [![NPM](https://img.shields.io/npm/v/plataforma-fundacao-componentes.svg)](https://www.npmjs.com/package/plataforma-fundacao-componentes) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
6
6
 
7
- ## Install
7
+ ## Instalar
8
8
 
9
9
  ```bash
10
10
  npm install --save plataforma-fundacao-componentes
11
11
  ```
12
12
 
13
- ## Usage
13
+ ## Usar
14
14
 
15
- ```tsx
16
- import React, { Component } from 'react'
15
+ Dois passos para utilizar os componentes
16
+
17
+ ## 1) Importar o CSS no HOC da sua ferramenta
17
18
 
18
- import MyComponent from 'plataforma-fundacao-componentes'
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
- class Example extends Component {
22
- render() {
23
- return <MyComponent />
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";
@@ -5,7 +5,7 @@ declare namespace _default {
5
5
  export namespace theme {
6
6
  export const control: {
7
7
  type: string;
8
- options: string[];
8
+ options: readonly ["programas", "em-edicao", "em-revisao", "em-aprovacao", "finalizado", "aprovado", "reprovado", "cancelado"];
9
9
  };
10
10
  }
11
11
  }