plataforma-fundacao-componentes 2.20.23 → 2.20.27
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 +10 -6
- package/dist/components/bannerPesquisaCpfCnpj/BannerPesquisaCpfCnpj.d.ts +1 -0
- package/dist/components/bannerPesquisaCpfCnpj/BannerPesquisaCpfCnpj.stories.d.ts +1 -0
- package/dist/index.css +4 -0
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +6 -4
- package/dist/index.modern.js.map +1 -1
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -25,15 +25,19 @@ import 'plataforma-fundacao-componentes/dist/index.css'
|
|
|
25
25
|
## 2) Importar o componente e utilizar :P
|
|
26
26
|
|
|
27
27
|
```tsx
|
|
28
|
-
import React
|
|
28
|
+
import React from 'react'
|
|
29
29
|
import { Button } from 'plataforma-fundacao-componentes'
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
export default function Example() {
|
|
32
|
+
return (
|
|
33
|
+
<Button
|
|
34
|
+
onClick={() => {
|
|
34
35
|
console.log('clicou')
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
}}
|
|
37
|
+
>
|
|
38
|
+
Clique
|
|
39
|
+
</Button>
|
|
40
|
+
)
|
|
37
41
|
}
|
|
38
42
|
```
|
|
39
43
|
|
|
@@ -7,6 +7,7 @@ interface BannerPesquisaCpfCnpjProps {
|
|
|
7
7
|
inputProps?: InputProps;
|
|
8
8
|
urlImg?: string;
|
|
9
9
|
theme?: 'white' | 'secondary-light' | 'secondary-lighter';
|
|
10
|
+
captcha?: React.ReactNode;
|
|
10
11
|
}
|
|
11
12
|
declare function BannerPesquisaCpfCnpj(props: BannerPesquisaCpfCnpjProps): JSX.Element;
|
|
12
13
|
declare namespace BannerPesquisaCpfCnpj {
|
package/dist/index.css
CHANGED
|
@@ -3553,6 +3553,8 @@ h5 {
|
|
|
3553
3553
|
padding: 3%;
|
|
3554
3554
|
height: 412px;
|
|
3555
3555
|
width: 50%; }
|
|
3556
|
+
.banner-pesquisa-cpf-cnpj .banner-pesquisa-cpf-cnpj-left.plus {
|
|
3557
|
+
height: 500px; }
|
|
3556
3558
|
@media screen and (max-width: 767.98px) {
|
|
3557
3559
|
.banner-pesquisa-cpf-cnpj .banner-pesquisa-cpf-cnpj-left {
|
|
3558
3560
|
width: 100%;
|
|
@@ -3579,6 +3581,8 @@ h5 {
|
|
|
3579
3581
|
width: 50%;
|
|
3580
3582
|
background-size: cover;
|
|
3581
3583
|
background-position: center; }
|
|
3584
|
+
.banner-pesquisa-cpf-cnpj .banner-pesquisa-cpf-cnpj-image.plus {
|
|
3585
|
+
height: 500px; }
|
|
3582
3586
|
.banner-pesquisa-cpf-cnpj .banner-pesquisa-cpf-cnpj-image img {
|
|
3583
3587
|
display: none; }
|
|
3584
3588
|
@media screen and (max-width: 767.98px) {
|
package/dist/index.js
CHANGED
|
@@ -2321,15 +2321,17 @@ function BannerPesquisaCpfCnpj(props) {
|
|
|
2321
2321
|
return React__default.createElement("div", {
|
|
2322
2322
|
className: getMergedClassNames([rootClassName$n, props.theme])
|
|
2323
2323
|
}, React__default.createElement("div", {
|
|
2324
|
-
className: rootClassName$n + "-left"
|
|
2324
|
+
className: getMergedClassNames([rootClassName$n + "-left", props.captcha ? 'plus' : ''])
|
|
2325
2325
|
}, React__default.createElement("div", {
|
|
2326
2326
|
className: rootClassName$n + "-title"
|
|
2327
2327
|
}, props.title), React__default.createElement("div", {
|
|
2328
2328
|
className: rootClassName$n + "-sub-title nunito"
|
|
2329
|
-
}, props.subtitle), React__default.createElement("div", {
|
|
2329
|
+
}, props.subtitle), props.inputProps ? React__default.createElement("div", {
|
|
2330
2330
|
className: rootClassName$n + "-input"
|
|
2331
|
-
}, React__default.createElement(Input$1, Object.assign({}, props.inputProps)))
|
|
2332
|
-
className: rootClassName$n
|
|
2331
|
+
}, React__default.createElement(Input$1, Object.assign({}, props.inputProps))) : undefined, props.captcha ? React__default.createElement("div", {
|
|
2332
|
+
className: "" + rootClassName$n
|
|
2333
|
+
}, props.captcha) : undefined), React__default.createElement("div", {
|
|
2334
|
+
className: getMergedClassNames([rootClassName$n + "-image", props.captcha ? 'plus' : '']),
|
|
2333
2335
|
style: {
|
|
2334
2336
|
backgroundImage: "url(" + props.urlImg + ")"
|
|
2335
2337
|
}
|