@credithub/harlan-components 1.30.0 → 1.30.2
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/dist/assets/btn/btnWrapper.d.ts +1 -1
- package/dist/assets/btn/btnWrapper.js +4 -2
- package/dist/assets/btn/chevronLeft.js +5 -3
- package/dist/assets/btn/chevronRight.js +5 -3
- package/dist/assets/btn/chevronUp.js +5 -3
- package/dist/assets/btn/printIcon.js +5 -3
- package/dist/assets/btn/thumbDown.js +5 -3
- package/dist/assets/btn/thumbUp.js +5 -3
- package/dist/assets/icones/chequesSemFundo.d.ts +1 -1
- package/dist/assets/icones/chequesSemFundo.js +5 -3
- package/dist/assets/icones/consultaSimples.d.ts +1 -1
- package/dist/assets/icones/consultaSimples.js +5 -3
- package/dist/assets/icones/contasBancarias.d.ts +1 -1
- package/dist/assets/icones/contasBancarias.js +5 -3
- package/dist/assets/icones/contato.d.ts +1 -1
- package/dist/assets/icones/contato.js +5 -3
- package/dist/assets/icones/dividasVencidasSerasa.js +5 -3
- package/dist/assets/icones/dominios.js +5 -3
- package/dist/assets/icones/endereco.js +5 -3
- package/dist/assets/icones/iconeEmpresa.js +7 -4
- package/dist/assets/icones/iconePessoa.js +7 -4
- package/dist/assets/icones/imoveis.js +5 -3
- package/dist/assets/icones/pefinRefinBoaVista.js +5 -3
- package/dist/assets/icones/pefinRefinSerasa.js +6 -4
- package/dist/assets/icones/processosJuridicos.js +5 -3
- package/dist/assets/icones/protestos.js +5 -3
- package/dist/assets/icones/protestosCredito.js +5 -3
- package/dist/assets/icones/protestosGerais.js +5 -3
- package/dist/assets/icones/protestosImpostos.js +5 -3
- package/dist/assets/icones/quadroSocietario.js +5 -3
- package/dist/assets/icones/resumoNegativacoes.js +5 -3
- package/dist/assets/icones/scoreBoaVista.js +5 -3
- package/dist/assets/icones/scr.js +5 -3
- package/dist/assets/icones/ultimaMovimentacao.js +5 -3
- package/dist/assets/icones/veiculos.js +5 -3
- package/dist/components/bank-accounts/bank-accounts.js +2 -1
- package/dist/components/common/addItem.js +33 -4
- package/dist/components/common/button.js +26 -3
- package/dist/components/common/content.d.ts +1 -1
- package/dist/components/contacts/thumbsButton.js +14 -8
- package/dist/components/dossie/companyLogo/companyLogo.js +40 -12
- package/dist/components/dossie/transactionTable/transactionTable.js +8 -6
- package/dist/components/interface/header.js +47 -8
- package/dist/components/interface/loadingBar.js +12 -4
- package/dist/components/interface/responsiveGrid.d.ts +1 -1
- package/dist/components/interface/result.d.ts +2 -2
- package/dist/components/interface/result.js +4 -2
- package/dist/components/interface/statusMessage.d.ts +1 -1
- package/dist/components/interface/statusMessage.js +10 -11
- package/dist/components/processos-juridicos/envolvidosList.d.ts +1 -1
- package/dist/components/processos-juridicos/envolvidosList.js +12 -4
- package/dist/components/processos-juridicos/processosJuridicosList.d.ts +1 -1
- package/dist/components/processos-juridicos/processosJuridicosList.js +6 -4
- package/dist/components/reclameAqui/styles.d.ts +10 -10
- package/dist/components/reclameAqui/styles.js +19 -5
- package/dist/components/resultadoDaPesquisa/resultado-da-pesquisa.js +19 -5
- package/dist/consultaSimples.js +2 -2
- package/dist/{components/interface → styles}/globalStyle.js +1 -1
- package/dist/{components/interface → styles}/theme.d.ts +4 -0
- package/dist/{components/interface → styles}/theme.js +5 -1
- package/lib/cjs/index.js +636 -395
- package/lib/esm/index.js +421 -183
- package/package.json +1 -1
- /package/dist/{components/interface → styles}/globalStyle.d.ts +0 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import theme from '../../components/interface/theme';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import { useTheme } from 'styled-components';
|
|
3
3
|
var VeiculosIcon = function (_a) {
|
|
4
|
-
var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.size, size = _c === void 0 ? 30 : _c,
|
|
4
|
+
var _b = _a.className, className = _b === void 0 ? '' : _b, _c = _a.size, size = _c === void 0 ? 30 : _c, circleFill = _a.circleFill;
|
|
5
|
+
var theme = useTheme();
|
|
6
|
+
var fill = circleFill || theme.colors.azulCredithub;
|
|
5
7
|
return (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: size, height: size, fill: "none", viewBox: "0 0 30 30", className: className },
|
|
6
|
-
React.createElement("circle", { cx: "15", cy: "15", r: "15", fill:
|
|
8
|
+
React.createElement("circle", { cx: "15", cy: "15", r: "15", fill: fill }),
|
|
7
9
|
React.createElement("path", { fill: "#fff", d: "M9 21v.5c0 .417-.146.77-.438 1.063A1.446 1.446 0 017.5 23c-.417 0-.77-.146-1.063-.438A1.447 1.447 0 016 21.5v-7.15c0-.117.008-.233.025-.35.017-.117.042-.225.075-.325L7.975 8.35c.133-.4.375-.725.725-.975S9.442 7 9.875 7h10.25c.433 0 .825.125 1.175.375.35.25.592.575.725.975l1.875 5.325c.033.1.058.208.075.325.017.117.025.233.025.35v7.15c0 .417-.146.77-.438 1.063A1.446 1.446 0 0122.5 23c-.417 0-.77-.146-1.063-.438A1.446 1.446 0 0121 21.5V21H9zm-.2-9h12.4l-1.05-3H9.85L8.8 12zm1.7 6c.417 0 .77-.146 1.063-.438.291-.291.437-.645.437-1.062 0-.417-.146-.77-.438-1.063A1.446 1.446 0 0010.5 15c-.417 0-.77.146-1.063.438A1.447 1.447 0 009 16.5c0 .417.146.77.438 1.063.291.291.645.437 1.062.437zm9 0c.417 0 .77-.146 1.063-.438.291-.291.437-.645.437-1.062 0-.417-.146-.77-.438-1.063A1.446 1.446 0 0019.5 15c-.417 0-.77.146-1.063.438A1.446 1.446 0 0018 16.5c0 .417.146.77.438 1.063.291.291.645.437 1.062.437zM8 19h14v-5H8v5z" })));
|
|
8
10
|
};
|
|
9
11
|
export default VeiculosIcon;
|
|
@@ -13,16 +13,17 @@ import ContasBancariasIcon from '../../assets/icones/contasBancarias';
|
|
|
13
13
|
import { useGlobalData } from '../../contexts/globalDataContext';
|
|
14
14
|
import XPathUtils from '../../utils/xpath';
|
|
15
15
|
import React, { useContext, useState } from 'react';
|
|
16
|
+
import { useTheme } from 'styled-components';
|
|
16
17
|
import AddItemField from '../common/addItem';
|
|
17
18
|
import { Result, ResultContent } from '../interface/result';
|
|
18
19
|
import StatusMessage from '../interface/statusMessage';
|
|
19
|
-
import theme from '../interface/theme';
|
|
20
20
|
import { Queries } from '../webservice';
|
|
21
21
|
var BankAccounts = function () {
|
|
22
22
|
var ctx = useContext(Queries.Finder);
|
|
23
23
|
var Section = ctx.Section;
|
|
24
24
|
var setData = useGlobalData().setData;
|
|
25
25
|
var _a = useState(false), dataUpdated = _a[0], setDataUpdated = _a[1];
|
|
26
|
+
var theme = useTheme();
|
|
26
27
|
var extractBankAccountData = function (data) {
|
|
27
28
|
var accounts = XPathUtils.selectArray('//bank-info/node', data);
|
|
28
29
|
return accounts.map(function (account) { return ({
|
|
@@ -24,12 +24,41 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
24
24
|
}
|
|
25
25
|
return t;
|
|
26
26
|
};
|
|
27
|
-
import React from 'react';
|
|
28
27
|
import cn from 'classnames';
|
|
28
|
+
import React from 'react';
|
|
29
29
|
import styled from 'styled-components';
|
|
30
|
-
|
|
31
|
-
var
|
|
32
|
-
|
|
30
|
+
var FieldName = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* Body 12 */\n font-style: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n\n /* Cinza Escuro */\n color: ", ";\n"], ["\n /* Body 12 */\n font-style: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n\n /* Cinza Escuro */\n color: ", ";\n"])), function (_a) {
|
|
31
|
+
var theme = _a.theme;
|
|
32
|
+
return theme.typography.body12.fontStyle;
|
|
33
|
+
}, function (_a) {
|
|
34
|
+
var theme = _a.theme;
|
|
35
|
+
return theme.typography.body12.fontWeight;
|
|
36
|
+
}, function (_a) {
|
|
37
|
+
var theme = _a.theme;
|
|
38
|
+
return theme.typography.body12.fontSize;
|
|
39
|
+
}, function (_a) {
|
|
40
|
+
var theme = _a.theme;
|
|
41
|
+
return theme.typography.body12.lineHeight;
|
|
42
|
+
}, function (_a) {
|
|
43
|
+
var theme = _a.theme;
|
|
44
|
+
return theme.colors.cinzaEscuro;
|
|
45
|
+
});
|
|
46
|
+
var FieldValue = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n /* Headline 16 */\n font-style: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n\n /* Cinza Escuro */\n color: ", ";\n"], ["\n /* Headline 16 */\n font-style: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n\n /* Cinza Escuro */\n color: ", ";\n"])), function (_a) {
|
|
47
|
+
var theme = _a.theme;
|
|
48
|
+
return theme.typography.headline16.fontStyle;
|
|
49
|
+
}, function (_a) {
|
|
50
|
+
var theme = _a.theme;
|
|
51
|
+
return theme.typography.headline16.fontWeight;
|
|
52
|
+
}, function (_a) {
|
|
53
|
+
var theme = _a.theme;
|
|
54
|
+
return theme.typography.headline16.fontSize;
|
|
55
|
+
}, function (_a) {
|
|
56
|
+
var theme = _a.theme;
|
|
57
|
+
return theme.typography.headline16.lineHeight;
|
|
58
|
+
}, function (_a) {
|
|
59
|
+
var theme = _a.theme;
|
|
60
|
+
return theme.colors.cinzaEscuro;
|
|
61
|
+
});
|
|
33
62
|
function AddItemField(_a) {
|
|
34
63
|
var name = _a.name, value = _a.value, children = _a.children, className = _a.className, valueClassName = _a.valueClassName, nameClassName = _a.nameClassName, styleName = _a.styleName, _b = _a.defaultValue, defaultValue = _b === void 0 ? '----' : _b, props = __rest(_a, ["name", "value", "children", "className", "valueClassName", "nameClassName", "styleName", "defaultValue"]);
|
|
35
64
|
var fieldClassName = cn(className);
|
|
@@ -27,9 +27,32 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
27
27
|
import classNames from 'classnames';
|
|
28
28
|
import React from 'react';
|
|
29
29
|
import styled from 'styled-components';
|
|
30
|
-
|
|
31
|
-
var
|
|
32
|
-
|
|
30
|
+
var StyledButton = styled.button(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-style: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n background-color: ", ";\n color: ", ";\n\n padding: 8px 20px;\n border: none;\n border-radius: 60px;\n cursor: pointer;\n\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n\n transition:\n background-color 0.3s ease-in-out,\n color 0.3s ease-in-out;\n\n &:hover {\n background-color: ", ";\n }\n\n width: 100% !important;\n min-height: 40px;\n"], ["\n font-style: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n background-color: ", ";\n color: ", ";\n\n padding: 8px 20px;\n border: none;\n border-radius: 60px;\n cursor: pointer;\n\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n text-align: center;\n\n transition:\n background-color 0.3s ease-in-out,\n color 0.3s ease-in-out;\n\n &:hover {\n background-color: ", ";\n }\n\n width: 100% !important;\n min-height: 40px;\n"])), function (_a) {
|
|
31
|
+
var theme = _a.theme;
|
|
32
|
+
return theme.typography.headline14.fontStyle;
|
|
33
|
+
}, function (_a) {
|
|
34
|
+
var theme = _a.theme;
|
|
35
|
+
return theme.typography.headline14.fontWeight;
|
|
36
|
+
}, function (_a) {
|
|
37
|
+
var theme = _a.theme;
|
|
38
|
+
return theme.typography.headline14.fontSize;
|
|
39
|
+
}, function (_a) {
|
|
40
|
+
var theme = _a.theme;
|
|
41
|
+
return theme.typography.headline14.lineHeight;
|
|
42
|
+
}, function (_a) {
|
|
43
|
+
var theme = _a.theme;
|
|
44
|
+
return theme.colors.azulCredithub;
|
|
45
|
+
}, function (_a) {
|
|
46
|
+
var theme = _a.theme;
|
|
47
|
+
return theme.colors.white;
|
|
48
|
+
}, function (_a) {
|
|
49
|
+
var theme = _a.theme;
|
|
50
|
+
return theme.colors.azulApoio;
|
|
51
|
+
});
|
|
52
|
+
var SmallContent = styled.small(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: ", ";\n display: block;\n margin-top: 4px;\n\n @media print {\n display: none;\n }\n"], ["\n color: ", ";\n display: block;\n margin-top: 4px;\n\n @media print {\n display: none;\n }\n"])), function (_a) {
|
|
53
|
+
var theme = _a.theme;
|
|
54
|
+
return theme.colors.alerta;
|
|
55
|
+
});
|
|
33
56
|
var Button = function (_a) {
|
|
34
57
|
var children = _a.children, className = _a.className, smallContent = _a.smallContent, props = __rest(_a, ["children", "className", "smallContent"]);
|
|
35
58
|
var buttonClassName = classNames(className);
|
|
@@ -5,27 +5,33 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
5
5
|
import ThumbDown from '../../assets/btn/thumbDown';
|
|
6
6
|
import ThumbUp from '../../assets/btn/thumbUp';
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import styled from 'styled-components';
|
|
9
|
-
|
|
10
|
-
var
|
|
8
|
+
import styled, { useTheme } from 'styled-components';
|
|
9
|
+
var ButtonContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: inline-flex;\n background-color: ", ";\n border-radius: 10px;\n overflow: hidden;\n position: relative;\n font-size: 10px;\n width: fit-content;\n"], ["\n display: inline-flex;\n background-color: ", ";\n border-radius: 10px;\n overflow: hidden;\n position: relative;\n font-size: 10px;\n width: fit-content;\n"])), function (_a) {
|
|
10
|
+
var theme = _a.theme;
|
|
11
|
+
return theme.colors.cinzaClaro;
|
|
12
|
+
});
|
|
11
13
|
var Button = styled.button(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 6px 8px;\n line-height: 8px;\n cursor: pointer !important;\n border: none;\n background-color: ", ";\n color: white;\n flex: none;\n width: 50%;\n margin: 0 auto;\n\n /* &:hover {\n background-color: ", ";\n } */\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 6px 8px;\n line-height: 8px;\n cursor: pointer !important;\n border: none;\n background-color: ", ";\n color: white;\n flex: none;\n width: 50%;\n margin: 0 auto;\n\n /* &:hover {\n background-color: ", ";\n } */\n"])), function (props) {
|
|
12
14
|
return props.isSelected
|
|
13
15
|
? props.action === 'like'
|
|
14
|
-
?
|
|
15
|
-
:
|
|
16
|
+
? props.theme.colors.likeButton
|
|
17
|
+
: props.theme.colors.dislikeButton
|
|
16
18
|
: 'transparent';
|
|
17
19
|
}, function (props) {
|
|
18
20
|
return props.isSelected
|
|
19
21
|
? props.action === 'like'
|
|
20
|
-
?
|
|
21
|
-
:
|
|
22
|
+
? props.theme.colors.likeButtonHover
|
|
23
|
+
: props.theme.colors.dislikeButtonHover
|
|
22
24
|
: '#f5f5f5';
|
|
23
25
|
});
|
|
24
26
|
var IconWrapper = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n margin-right: 5px;\n"], ["\n margin-right: 5px;\n"])));
|
|
25
27
|
var Count = styled.span(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n line-height: 1;\n display: flex;\n align-items: center;\n margin-right: ", ";\n"], ["\n line-height: 1;\n display: flex;\n align-items: center;\n margin-right: ", ";\n"])), function (props) { return (props.action === 'dislike' ? '5px' : '0'); });
|
|
26
|
-
var Separator = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n content: '';\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n height: calc(100% - 6px);\n width: 1px;\n background-color: ", ";\n opacity: 0.1;\n z-index: 1;\n"], ["\n content: '';\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n height: calc(100% - 6px);\n width: 1px;\n background-color: ", ";\n opacity: 0.1;\n z-index: 1;\n"])),
|
|
28
|
+
var Separator = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n content: '';\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n height: calc(100% - 6px);\n width: 1px;\n background-color: ", ";\n opacity: 0.1;\n z-index: 1;\n"], ["\n content: '';\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n height: calc(100% - 6px);\n width: 1px;\n background-color: ", ";\n opacity: 0.1;\n z-index: 1;\n"])), function (_a) {
|
|
29
|
+
var theme = _a.theme;
|
|
30
|
+
return theme.colors.cinzaEscuro;
|
|
31
|
+
});
|
|
27
32
|
var ThumbsButton = function (_a) {
|
|
28
33
|
var _b = _a.likes, likes = _b === void 0 ? 0 : _b, _c = _a.dislikes, dislikes = _c === void 0 ? 0 : _c, onClickLike = _a.onClickLike, onClickDislike = _a.onClickDislike;
|
|
34
|
+
var theme = useTheme();
|
|
29
35
|
return (React.createElement(ButtonContainer, null,
|
|
30
36
|
React.createElement(Button, { isSelected: likes > 0, onClick: onClickLike, action: "like" },
|
|
31
37
|
React.createElement(IconWrapper, { isSelected: likes > 0, action: "like" },
|
|
@@ -2,24 +2,52 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
2
2
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
3
|
return cooked;
|
|
4
4
|
};
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import styled from 'styled-components';
|
|
7
5
|
import IconeEmpresa from '../../../assets/icones/iconeEmpresa';
|
|
8
6
|
import IconePessoa from '../../../assets/icones/iconePessoa';
|
|
9
7
|
import { isDocumentoPF } from '../../../utils/string';
|
|
10
|
-
import
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import styled, { useTheme } from 'styled-components';
|
|
11
10
|
var LogoContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n row-gap: 20px;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n row-gap: 20px;\n"])));
|
|
12
|
-
var CompanyName = styled.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n font-size: ", ";\n color: ", ";\n text-align: center;\n line-height: ", ";\n font-weight: ", ";\n"], ["\n font-size: ", ";\n color: ", ";\n text-align: center;\n line-height: ", ";\n font-weight: ", ";\n"])),
|
|
13
|
-
var
|
|
11
|
+
var CompanyName = styled.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n font-size: ", ";\n color: ", ";\n text-align: center;\n line-height: ", ";\n font-weight: ", ";\n"], ["\n font-size: ", ";\n color: ", ";\n text-align: center;\n line-height: ", ";\n font-weight: ", ";\n"])), function (_a) {
|
|
12
|
+
var theme = _a.theme;
|
|
13
|
+
return theme.typography.headline14.fontSize;
|
|
14
|
+
}, function (_a) {
|
|
15
|
+
var theme = _a.theme;
|
|
16
|
+
return theme.colors.cinzaEscuro;
|
|
17
|
+
}, function (_a) {
|
|
18
|
+
var theme = _a.theme;
|
|
19
|
+
return theme.typography.headline14.lineHeight;
|
|
20
|
+
}, function (_a) {
|
|
21
|
+
var theme = _a.theme;
|
|
22
|
+
return theme.typography.headline14.fontWeight;
|
|
23
|
+
});
|
|
24
|
+
var DocumentContainer = styled.span(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n color: ", ";\n background-color: ", ";\n text-align: center;\n position: relative;\n padding: 5px 20px;\n border-radius: 60px;\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n color: ", ";\n background-color: ", ";\n text-align: center;\n position: relative;\n padding: 5px 20px;\n border-radius: 60px;\n display: flex;\n align-items: center;\n justify-content: center;\n"])), function (_a) {
|
|
25
|
+
var theme = _a.theme;
|
|
26
|
+
return theme.typography.body14.fontSize;
|
|
27
|
+
}, function (_a) {
|
|
28
|
+
var theme = _a.theme;
|
|
29
|
+
return theme.typography.body14.fontWeight;
|
|
30
|
+
}, function (_a) {
|
|
31
|
+
var theme = _a.theme;
|
|
32
|
+
return theme.typography.body14.lineHeight;
|
|
33
|
+
}, function (_a) {
|
|
34
|
+
var theme = _a.theme;
|
|
35
|
+
return theme.colors.cinzaEscuro;
|
|
36
|
+
}, function (_a) {
|
|
37
|
+
var theme = _a.theme;
|
|
38
|
+
return theme.colors.cinzaClaro;
|
|
39
|
+
});
|
|
14
40
|
var Companylogo = function (_a) {
|
|
15
41
|
var name = _a.name, document = _a.document;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
42
|
+
var theme = useTheme();
|
|
43
|
+
var circleFillColor = theme.colors.cinzaClaro;
|
|
44
|
+
var pathFillColor = theme.colors.cinzaEscuro;
|
|
45
|
+
return (React.createElement(LogoContainer, null,
|
|
46
|
+
React.createElement(CompanyName, null, name),
|
|
47
|
+
isDocumentoPF(document) ? (React.createElement(IconePessoa, { size: 60, circleFill: circleFillColor, pathFill: pathFillColor, className: "company-logo-icon" })) : (React.createElement(IconeEmpresa, { size: 60, circleFill: circleFillColor, className: "company-logo-icon" })),
|
|
48
|
+
React.createElement(DocumentContainer, null,
|
|
49
|
+
isDocumentoPF(document) ? 'CPF: ' : 'CNPJ: ',
|
|
50
|
+
document)));
|
|
23
51
|
};
|
|
24
52
|
export default Companylogo;
|
|
25
53
|
var templateObject_1, templateObject_2, templateObject_3;
|
|
@@ -2,14 +2,16 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
2
2
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
3
|
return cooked;
|
|
4
4
|
};
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import AddItemField from '../../common/addItem';
|
|
7
|
-
import XPathUtils from '../../../utils/xpath';
|
|
8
|
-
import styled from 'styled-components';
|
|
9
5
|
import IconePessoa from '../../../assets/icones/iconePessoa';
|
|
10
|
-
import
|
|
6
|
+
import XPathUtils from '../../../utils/xpath';
|
|
11
7
|
import { format } from 'date-fns';
|
|
12
|
-
|
|
8
|
+
import React from 'react';
|
|
9
|
+
import styled from 'styled-components';
|
|
10
|
+
import AddItemField from '../../common/addItem';
|
|
11
|
+
var StyledContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: grid;\n grid-template-columns: 1fr 2fr;\n margin-bottom: 20px;\n border-top: 1.6px solid ", ";\n padding: 16px;\n @media screen and (max-width: 992px) {\n grid-template-columns: 1fr;\n }\n"], ["\n display: grid;\n grid-template-columns: 1fr 2fr;\n margin-bottom: 20px;\n border-top: 1.6px solid ", ";\n padding: 16px;\n @media screen and (max-width: 992px) {\n grid-template-columns: 1fr;\n }\n"])), function (_a) {
|
|
12
|
+
var theme = _a.theme;
|
|
13
|
+
return theme.colors.cinzaClaro;
|
|
14
|
+
});
|
|
13
15
|
var Header = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n grid-row: 1 / 6;\n padding: 16px;\n margin: 16px;\n row-gap: 20px;\n @media (max-width: 992px) {\n padding: 0 0 16px 0;\n justify-content: flex-start;\n }\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n grid-row: 1 / 6;\n padding: 16px;\n margin: 16px;\n row-gap: 20px;\n @media (max-width: 992px) {\n padding: 0 0 16px 0;\n justify-content: flex-start;\n }\n"])));
|
|
14
16
|
var Title = styled.span(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n font-size: 18px;\n font-weight: bold;\n text-align: center;\n"], ["\n font-size: 18px;\n font-weight: bold;\n text-align: center;\n"])));
|
|
15
17
|
var TransactionContent = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n padding: 16px;\n align-items: flex-start;\n"], ["\n display: flex;\n align-items: center;\n padding: 16px;\n align-items: flex-start;\n"])));
|
|
@@ -26,12 +26,50 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
26
26
|
};
|
|
27
27
|
import classNames from 'classnames';
|
|
28
28
|
import React, { useMemo } from 'react';
|
|
29
|
-
import styled from 'styled-components';
|
|
29
|
+
import styled, { useTheme } from 'styled-components';
|
|
30
30
|
import LoadingBar from './loadingBar';
|
|
31
|
-
|
|
32
|
-
var
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
var Title = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n color: ", ";\n"], ["\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n color: ", ";\n"])), function (_a) {
|
|
32
|
+
var theme = _a.theme;
|
|
33
|
+
return theme.typography.headline24.fontSize;
|
|
34
|
+
}, function (_a) {
|
|
35
|
+
var theme = _a.theme;
|
|
36
|
+
return theme.typography.headline24.fontWeight;
|
|
37
|
+
}, function (_a) {
|
|
38
|
+
var theme = _a.theme;
|
|
39
|
+
return theme.typography.headline24.lineHeight;
|
|
40
|
+
}, function (_a) {
|
|
41
|
+
var theme = _a.theme;
|
|
42
|
+
return theme.colors.azulCredithub;
|
|
43
|
+
});
|
|
44
|
+
var Subtitle = styled.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n display: ", ";\n font-size: ", ";\n font-style: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (props) { return (props.hidden ? 'none' : 'block'); }, function (_a) {
|
|
45
|
+
var theme = _a.theme;
|
|
46
|
+
return theme.typography.body18.fontSize;
|
|
47
|
+
}, function (_a) {
|
|
48
|
+
var theme = _a.theme;
|
|
49
|
+
return theme.typography.body18.fontStyle;
|
|
50
|
+
}, function (_a) {
|
|
51
|
+
var theme = _a.theme;
|
|
52
|
+
return theme.typography.body18.fontWeight;
|
|
53
|
+
}, function (_a) {
|
|
54
|
+
var theme = _a.theme;
|
|
55
|
+
return theme.typography.body18.lineHeight;
|
|
56
|
+
});
|
|
57
|
+
var Description = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: ", ";\n gap: 10px;\n font-style: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n letter-spacing: ", ";\n\n @media screen and (max-width: 768px) {\n flex-direction: column;\n }\n"], ["\n display: ", ";\n gap: 10px;\n font-style: ", ";\n font-weight: ", ";\n font-size: ", ";\n line-height: ", ";\n letter-spacing: ", ";\n\n @media screen and (max-width: 768px) {\n flex-direction: column;\n }\n"])), function (props) { return (props.hidden ? 'none' : 'flex'); }, function (_a) {
|
|
58
|
+
var theme = _a.theme;
|
|
59
|
+
return theme.typography.label14.fontStyle;
|
|
60
|
+
}, function (_a) {
|
|
61
|
+
var theme = _a.theme;
|
|
62
|
+
return theme.typography.label14.fontWeight;
|
|
63
|
+
}, function (_a) {
|
|
64
|
+
var theme = _a.theme;
|
|
65
|
+
return theme.typography.label14.fontSize;
|
|
66
|
+
}, function (_a) {
|
|
67
|
+
var theme = _a.theme;
|
|
68
|
+
return theme.typography.label14.lineHeight;
|
|
69
|
+
}, function (_a) {
|
|
70
|
+
var theme = _a.theme;
|
|
71
|
+
return theme.typography.label14.letterSpacing;
|
|
72
|
+
});
|
|
35
73
|
var HeaderUI = styled(function (_a) {
|
|
36
74
|
var children = _a.children, props = __rest(_a, ["children"]);
|
|
37
75
|
return (React.createElement("header", __assign({}, props), children));
|
|
@@ -42,11 +80,12 @@ var IconWrapper = styled.div(templateObject_7 || (templateObject_7 = __makeTempl
|
|
|
42
80
|
var TextWrapper = styled.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n gap: 10px;\n\n .text-wrapper-subtitle-description {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 20px;\n align-items: center;\n\n @media (max-width: 768px) {\n align-items: flex-start;\n }\n\n @media print {\n flex-direction: row;\n }\n }\n"], ["\n display: flex;\n flex-direction: column;\n gap: 10px;\n\n .text-wrapper-subtitle-description {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 20px;\n align-items: center;\n\n @media (max-width: 768px) {\n align-items: flex-start;\n }\n\n @media print {\n flex-direction: row;\n }\n }\n"])));
|
|
43
81
|
var Header = function (_a) {
|
|
44
82
|
var title = _a.title, subtitle = _a.subtitle, description = _a.description, actions = _a.actions, Icon = _a.icon, _b = _a.variant, variant = _b === void 0 ? 'default' : _b, iconProps = _a.iconProps, loadingProps = _a.loadingProps, className = _a.className, titleClassName = _a.titleClassName, subtitleClassName = _a.subtitleClassName, descriptionClassName = _a.descriptionClassName, containerClassName = _a.containerClassName, actionsClassName = _a.actionsClassName, innerRef = _a.innerRef, _c = _a.printBar, printBar = _c === void 0 ? true : _c, props = __rest(_a, ["title", "subtitle", "description", "actions", "icon", "variant", "iconProps", "loadingProps", "className", "titleClassName", "subtitleClassName", "descriptionClassName", "containerClassName", "actionsClassName", "innerRef", "printBar"]);
|
|
83
|
+
var theme = useTheme(); // Hook para acessar o tema
|
|
45
84
|
var headerClass = classNames(className);
|
|
46
85
|
var actionsClass = classNames(actionsClassName);
|
|
47
86
|
var containerClass = classNames(containerClassName);
|
|
48
87
|
var isLoading = variant === 'loading';
|
|
49
|
-
var variantColor = useMemo(function () { return getVariantColor(variant); }, [variant]);
|
|
88
|
+
var variantColor = useMemo(function () { return getVariantColor(variant, theme); }, [variant, theme]);
|
|
50
89
|
return (React.createElement("div", { ref: innerRef },
|
|
51
90
|
React.createElement(HeaderUI, __assign({ className: headerClass, color: variantColor }, props),
|
|
52
91
|
React.createElement(HeaderContainer, { className: containerClass },
|
|
@@ -59,14 +98,14 @@ var Header = function (_a) {
|
|
|
59
98
|
React.createElement(LoadingBar, { percentage: (loadingProps === null || loadingProps === void 0 ? void 0 : loadingProps.percentage) || 0, hidden: !isLoading }))),
|
|
60
99
|
React.createElement(ActionsList, { className: actionsClass }, actions && actions))));
|
|
61
100
|
};
|
|
62
|
-
var getVariantColor = function (type) {
|
|
101
|
+
var getVariantColor = function (type, theme) {
|
|
63
102
|
if (type === void 0) { type = 'default'; }
|
|
64
103
|
var options = {
|
|
65
104
|
default: theme.colors.azulCredithub,
|
|
66
105
|
error: theme.colors.erro,
|
|
67
106
|
loading: theme.colors.cinzaClaro
|
|
68
107
|
};
|
|
69
|
-
return options[type
|
|
108
|
+
return options[type];
|
|
70
109
|
};
|
|
71
110
|
export default Header;
|
|
72
111
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|
|
@@ -26,12 +26,20 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
26
26
|
};
|
|
27
27
|
import React from 'react';
|
|
28
28
|
import styled from 'styled-components';
|
|
29
|
-
|
|
30
|
-
var
|
|
31
|
-
|
|
29
|
+
var GreyBar = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 330px;\n height: 10px;\n background-color: ", ";\n border-radius: 10px;\n"], ["\n width: 330px;\n height: 10px;\n background-color: ", ";\n border-radius: 10px;\n"])), function (_a) {
|
|
30
|
+
var theme = _a.theme;
|
|
31
|
+
return theme.colors.cinzaClaro;
|
|
32
|
+
});
|
|
33
|
+
var BlueBar = styled(GreyBar)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: ", ";\n width: ", ";\n background-color: ", ";\n"], ["\n display: ", ";\n width: ", ";\n background-color: ", ";\n"])), function (_a) {
|
|
34
|
+
var percentage = _a.percentage;
|
|
35
|
+
return (percentage ? 'block' : 'none');
|
|
36
|
+
}, function (_a) {
|
|
32
37
|
var percentage = _a.percentage;
|
|
33
38
|
return percentage && percentage + '%';
|
|
34
|
-
},
|
|
39
|
+
}, function (_a) {
|
|
40
|
+
var theme = _a.theme;
|
|
41
|
+
return theme.colors.azulCredithub;
|
|
42
|
+
});
|
|
35
43
|
var LoadingBar = function (_a) {
|
|
36
44
|
var _b = _a.percentage, percentage = _b === void 0 ? 0 : _b, props = __rest(_a, ["percentage"]);
|
|
37
45
|
return (React.createElement(GreyBar, __assign({}, props),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'styled-components';
|
|
2
|
-
declare const ResponsiveGrid: import("styled-components").StyledComponent<"div",
|
|
2
|
+
declare const ResponsiveGrid: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
3
3
|
mobile?: CSSProperties["gridTemplateColumns"];
|
|
4
4
|
tablet?: CSSProperties["gridTemplateColumns"];
|
|
5
5
|
desktop?: CSSProperties["gridTemplateColumns"];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare const ResultContent: import("styled-components").StyledComponent<"div",
|
|
1
|
+
export declare const ResultContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
2
2
|
mobile?: import("styled-components").CSSProperties["gridTemplateColumns"];
|
|
3
3
|
tablet?: import("styled-components").CSSProperties["gridTemplateColumns"];
|
|
4
4
|
desktop?: import("styled-components").CSSProperties["gridTemplateColumns"];
|
|
5
5
|
print?: import("styled-components").CSSProperties["gridTemplateColumns"];
|
|
6
6
|
fullWidth?: boolean;
|
|
7
7
|
}, never>;
|
|
8
|
-
export declare const Result: import("styled-components").StyledComponent<"div",
|
|
8
|
+
export declare const Result: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
9
9
|
resultContentStriped?: boolean;
|
|
10
10
|
}, never>;
|
|
@@ -4,7 +4,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
4
4
|
};
|
|
5
5
|
import styled from 'styled-components';
|
|
6
6
|
import ResponsiveGrid from './responsiveGrid';
|
|
7
|
-
import theme from './theme';
|
|
8
7
|
export var ResultContent = styled(ResponsiveGrid)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 18px 59px;\n box-sizing: border-box;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: 8px;\n\n > * {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n }\n"], ["\n padding: 18px 59px;\n box-sizing: border-box;\n justify-content: space-between;\n flex-wrap: wrap;\n gap: 8px;\n\n > * {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n }\n"])));
|
|
9
8
|
export var Result = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: ", ";\n flex-direction: column;\n padding: 37px 20px;\n\n ", " {\n :nth-child(odd) {\n background: ", ";\n border-radius: 60px;\n }\n\n @media print {\n :not(:last-child) {\n border-radius: 0px !important;\n border-bottom: 1px solid ", ";\n }\n }\n }\n"], ["\n display: ", ";\n flex-direction: column;\n padding: 37px 20px;\n\n ", " {\n :nth-child(odd) {\n background: ", ";\n border-radius: 60px;\n }\n\n @media print {\n :not(:last-child) {\n border-radius: 0px !important;\n border-bottom: 1px solid ", ";\n }\n }\n }\n"])), function (props) {
|
|
10
9
|
var _a;
|
|
@@ -15,5 +14,8 @@ export var Result = styled.div(templateObject_2 || (templateObject_2 = __makeTem
|
|
|
15
14
|
}, ResultContent, function (_a) {
|
|
16
15
|
var _b = _a.resultContentStriped, resultContentStriped = _b === void 0 ? true : _b;
|
|
17
16
|
return resultContentStriped ? '#FFFFFF' : 'transparent';
|
|
18
|
-
},
|
|
17
|
+
}, function (_a) {
|
|
18
|
+
var theme = _a.theme;
|
|
19
|
+
return theme.colors.cinzaClaro;
|
|
20
|
+
});
|
|
19
21
|
var templateObject_1, templateObject_2;
|
|
@@ -3,5 +3,5 @@ export type StatusProps = {
|
|
|
3
3
|
type?: StatusColorTypes;
|
|
4
4
|
capitalize?: boolean;
|
|
5
5
|
};
|
|
6
|
-
declare const StatusMessage: import("styled-components").StyledComponent<"span",
|
|
6
|
+
declare const StatusMessage: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, StatusProps, never>;
|
|
7
7
|
export default StatusMessage;
|
|
@@ -3,23 +3,22 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
return cooked;
|
|
4
4
|
};
|
|
5
5
|
import styled from 'styled-components';
|
|
6
|
-
import theme from './theme';
|
|
7
|
-
var statusColors = {
|
|
8
|
-
default: theme.colors.cinzaClaro,
|
|
9
|
-
error: theme.colors.erro,
|
|
10
|
-
success: theme.colors.positivoClaro,
|
|
11
|
-
found: theme.colors.azulClaro,
|
|
12
|
-
warning: theme.colors.alerta
|
|
13
|
-
};
|
|
14
6
|
var StatusMessage = styled.span(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 7px 19px;\n gap: 10px;\n background: ", ";\n text-transform: ", ";\n border-radius: 50px;\n ", "\n"], ["\n padding: 7px 19px;\n gap: 10px;\n background: ", ";\n text-transform: ", ";\n border-radius: 50px;\n ", "\n"])), function (_a) {
|
|
15
|
-
var _b = _a.type, type = _b === void 0 ? 'default' : _b;
|
|
7
|
+
var _b = _a.type, type = _b === void 0 ? 'default' : _b, theme = _a.theme;
|
|
8
|
+
var statusColors = {
|
|
9
|
+
default: theme.colors.cinzaClaro,
|
|
10
|
+
error: theme.colors.erro,
|
|
11
|
+
success: theme.colors.positivoClaro,
|
|
12
|
+
found: theme.colors.azulClaro,
|
|
13
|
+
warning: theme.colors.alerta
|
|
14
|
+
};
|
|
16
15
|
return statusColors[type];
|
|
17
16
|
}, function (_a) {
|
|
18
17
|
var _b = _a.capitalize, capitalize = _b === void 0 ? false : _b;
|
|
19
18
|
return capitalize ? 'capitalize' : 'none';
|
|
20
19
|
}, function (_a) {
|
|
21
|
-
var type = _a.type;
|
|
22
|
-
return type
|
|
20
|
+
var type = _a.type, theme = _a.theme;
|
|
21
|
+
return type === 'error' && "color: ".concat(theme.colors.white, ";");
|
|
23
22
|
});
|
|
24
23
|
export default StatusMessage;
|
|
25
24
|
var templateObject_1;
|
|
@@ -3,13 +3,21 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
return cooked;
|
|
4
4
|
};
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import AddItemField from '../common/addItem';
|
|
7
6
|
import styled from 'styled-components';
|
|
7
|
+
import AddItemField from '../common/addItem';
|
|
8
8
|
import ResponsiveGrid from '../interface/responsiveGrid';
|
|
9
|
-
import theme from '../interface/theme';
|
|
10
9
|
import { ResultContent } from '../interface/result';
|
|
11
|
-
var EnvolvidosListWrapper = styled(ResultContent)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n gap: 8px;\n color: ", ";\n width: 100%;\n .field > .value,\n .name {\n color: ", ";\n }\n"], ["\n gap: 8px;\n color: ", ";\n width: 100%;\n .field > .value,\n .name {\n color: ", ";\n }\n"])),
|
|
12
|
-
var
|
|
10
|
+
var EnvolvidosListWrapper = styled(ResultContent)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n gap: 8px;\n color: ", ";\n width: 100%;\n .field > .value,\n .name {\n color: ", ";\n }\n"], ["\n gap: 8px;\n color: ", ";\n width: 100%;\n .field > .value,\n .name {\n color: ", ";\n }\n"])), function (_a) {
|
|
11
|
+
var theme = _a.theme;
|
|
12
|
+
return theme.colors.prata;
|
|
13
|
+
}, function (_a) {
|
|
14
|
+
var theme = _a.theme;
|
|
15
|
+
return theme.colors.prata;
|
|
16
|
+
});
|
|
17
|
+
var EnvolvidosUltimaMovimentacaoTitle = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n font-weight: ", ";\n"], ["\n font-weight: ", ";\n"])), function (_a) {
|
|
18
|
+
var theme = _a.theme;
|
|
19
|
+
return theme.typography.headline16.fontWeight;
|
|
20
|
+
});
|
|
13
21
|
var EnvolvidosList = function (_a) {
|
|
14
22
|
var _b = _a.envolvidos, envolvidos = _b === void 0 ? [] : _b;
|
|
15
23
|
if (!envolvidos.length)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { ProcessoJuridicoResume } from '../../@types/domain';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare const ProcessosJuridicosList: React.FC<{
|
|
4
4
|
processos: ProcessoJuridicoResume[];
|
|
5
5
|
onClickConsultarProcessoJuridico?: (processo: string) => void;
|
|
@@ -25,11 +25,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
25
25
|
return t;
|
|
26
26
|
};
|
|
27
27
|
import React, { memo } from 'react';
|
|
28
|
-
import
|
|
28
|
+
import styled from 'styled-components';
|
|
29
29
|
import AddItem from '../common/addItem';
|
|
30
30
|
import Button from '../common/button';
|
|
31
|
-
import
|
|
32
|
-
import theme from '../interface/theme';
|
|
31
|
+
import { Result, ResultContent } from '../interface/result';
|
|
33
32
|
import EnvolvidosList from './envolvidosList';
|
|
34
33
|
var AddProcessoJuridicoField = function (_a) {
|
|
35
34
|
var value = _a.value, props = __rest(_a, ["value"]);
|
|
@@ -51,7 +50,10 @@ var ProcessoJuridicoItem = memo(function (_a) {
|
|
|
51
50
|
React.createElement(EnvolvidosList, { envolvidos: processo === null || processo === void 0 ? void 0 : processo.envolvidos_ultima_movimentacao })),
|
|
52
51
|
children));
|
|
53
52
|
});
|
|
54
|
-
var ResultList = styled(Result)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n > div {\n padding: 16px 0px;\n :not(:last-child) {\n border-bottom: 1px solid ", ";\n }\n }\n"], ["\n > div {\n padding: 16px 0px;\n :not(:last-child) {\n border-bottom: 1px solid ", ";\n }\n }\n"])),
|
|
53
|
+
var ResultList = styled(Result)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n > div {\n padding: 16px 0px;\n :not(:last-child) {\n border-bottom: 1px solid ", ";\n }\n }\n"], ["\n > div {\n padding: 16px 0px;\n :not(:last-child) {\n border-bottom: 1px solid ", ";\n }\n }\n"])), function (_a) {
|
|
54
|
+
var theme = _a.theme;
|
|
55
|
+
return theme.colors.cinzaClaro;
|
|
56
|
+
});
|
|
55
57
|
var ProcessosJuridicosList = function (_a) {
|
|
56
58
|
var processos = _a.processos, onClickConsultarProcessoJuridico = _a.onClickConsultarProcessoJuridico;
|
|
57
59
|
return (React.createElement(ResultList, { resultContentStriped: false }, processos.map(function (processo, i) { return (React.createElement("div", { key: i },
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
interface StatsImageProps {
|
|
2
2
|
src: string;
|
|
3
3
|
}
|
|
4
|
-
export declare const ContainerSummary: import("styled-components").StyledComponent<"div",
|
|
5
|
-
export declare const ReclameAquiStatsContainer: import("styled-components").StyledComponent<"div",
|
|
6
|
-
export declare const LogoContainer: import("styled-components").StyledComponent<"div",
|
|
7
|
-
export declare const StyledImage: import("styled-components").StyledComponent<"img",
|
|
8
|
-
export declare const StatsImage: import("styled-components").StyledComponent<"div",
|
|
9
|
-
export declare const CompanyName: import("styled-components").StyledComponent<"span",
|
|
10
|
-
export declare const DocumentContainer: import("styled-components").StyledComponent<"span",
|
|
11
|
-
export declare const DocumentPrefix: import("styled-components").StyledComponent<"span",
|
|
12
|
-
export declare const ProblemsSolved: import("styled-components").StyledComponent<"div",
|
|
13
|
-
export declare const CarrouselBtn: import("styled-components").StyledComponent<"span",
|
|
4
|
+
export declare const ContainerSummary: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
+
export declare const ReclameAquiStatsContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
+
export declare const LogoContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
+
export declare const StyledImage: import("styled-components").StyledComponent<"img", import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
+
export declare const StatsImage: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, StatsImageProps, never>;
|
|
9
|
+
export declare const CompanyName: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
10
|
+
export declare const DocumentContainer: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
11
|
+
export declare const DocumentPrefix: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
12
|
+
export declare const ProblemsSolved: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
13
|
+
export declare const CarrouselBtn: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
14
14
|
export {};
|