@credithub/harlan-components 1.20.2 → 1.20.3
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/lib/cjs/index.js
CHANGED
|
@@ -13568,7 +13568,7 @@ var __rest$8 = (undefined && undefined.__rest) || function (s, e) {
|
|
|
13568
13568
|
return t;
|
|
13569
13569
|
};
|
|
13570
13570
|
var StyledButton = styled.button(templateObject_1$m || (templateObject_1$m = __makeTemplateObject$m(["\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: #0056b3;\n }\n\n width: 100% !important;\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: #0056b3;\n }\n\n width: 100% !important;\n"])), theme.typography.headline14.fontStyle, theme.typography.headline14.fontWeight, theme.typography.headline14.fontSize, theme.typography.headline14.lineHeight, theme.colors.azulCredithub, theme.colors.white);
|
|
13571
|
-
var SmallContent = styled.small(templateObject_2$a || (templateObject_2$a = __makeTemplateObject$m(["\n color: #fdeb35;\n display: block;\n margin-top: 4px;\n"], ["\n color: #fdeb35;\n display: block;\n margin-top: 4px;\n"])));
|
|
13571
|
+
var SmallContent = styled.small(templateObject_2$a || (templateObject_2$a = __makeTemplateObject$m(["\n color: #fdeb35;\n display: block;\n margin-top: 4px;\n\n @media print {\n display: none;\n }\n"], ["\n color: #fdeb35;\n display: block;\n margin-top: 4px;\n\n @media print {\n display: none;\n }\n"])));
|
|
13572
13572
|
var Button$1 = function (_a) {
|
|
13573
13573
|
var children = _a.children, className = _a.className, smallContent = _a.smallContent, props = __rest$8(_a, ["children", "className", "smallContent"]);
|
|
13574
13574
|
var buttonClassName = cx(className);
|
|
@@ -64658,7 +64658,9 @@ var __assign$6 = (undefined && undefined.__assign) || function () {
|
|
|
64658
64658
|
};
|
|
64659
64659
|
var processData = function (data, quantidadeProcessosJuridicos) {
|
|
64660
64660
|
var removeZeros = function (current, index, arr) {
|
|
64661
|
-
return
|
|
64661
|
+
return index === 0 || index === arr.length - 1
|
|
64662
|
+
? true
|
|
64663
|
+
: ((current === null || current === void 0 ? void 0 : current.quantidade) || 0) > 0;
|
|
64662
64664
|
};
|
|
64663
64665
|
var removeSameAsNext = function (current, index, arr) {
|
|
64664
64666
|
if (index === 0 || index === arr.length - 1)
|
|
@@ -15,7 +15,9 @@ import XPathUtils from '../../../utils/xpath';
|
|
|
15
15
|
import { REGEX_PROTESTOS_DE_CREDITO, REGEX_PROTESTOS_DE_IMPOSTO } from '../../../constants/regex';
|
|
16
16
|
export var processData = function (data, quantidadeProcessosJuridicos) {
|
|
17
17
|
var removeZeros = function (current, index, arr) {
|
|
18
|
-
return
|
|
18
|
+
return index === 0 || index === arr.length - 1
|
|
19
|
+
? true
|
|
20
|
+
: ((current === null || current === void 0 ? void 0 : current.quantidade) || 0) > 0;
|
|
19
21
|
};
|
|
20
22
|
var removeSameAsNext = function (current, index, arr) {
|
|
21
23
|
if (index === 0 || index === arr.length - 1)
|
|
@@ -29,7 +29,7 @@ import React from 'react';
|
|
|
29
29
|
import styled from 'styled-components';
|
|
30
30
|
import theme from '../interface/theme';
|
|
31
31
|
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: #0056b3;\n }\n\n width: 100% !important;\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: #0056b3;\n }\n\n width: 100% !important;\n"])), theme.typography.headline14.fontStyle, theme.typography.headline14.fontWeight, theme.typography.headline14.fontSize, theme.typography.headline14.lineHeight, theme.colors.azulCredithub, theme.colors.white);
|
|
32
|
-
var SmallContent = styled.small(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: #fdeb35;\n display: block;\n margin-top: 4px;\n"], ["\n color: #fdeb35;\n display: block;\n margin-top: 4px;\n"])));
|
|
32
|
+
var SmallContent = styled.small(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: #fdeb35;\n display: block;\n margin-top: 4px;\n\n @media print {\n display: none;\n }\n"], ["\n color: #fdeb35;\n display: block;\n margin-top: 4px;\n\n @media print {\n display: none;\n }\n"])));
|
|
33
33
|
var Button = function (_a) {
|
|
34
34
|
var children = _a.children, className = _a.className, smallContent = _a.smallContent, props = __rest(_a, ["children", "className", "smallContent"]);
|
|
35
35
|
var buttonClassName = classNames(className);
|