@credithub/harlan-components 1.20.2 → 1.20.4

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
@@ -13359,7 +13359,7 @@ var Section = function (_a) {
13359
13359
  renderedChildren && defaultHeaderActions) }))),
13360
13360
  React.createElement(ShowRenderedChildren, { isOpen: isOpen }, renderedChildren)));
13361
13361
  };
13362
- var ShowRenderedChildren = styled.div(templateObject_1$p || (templateObject_1$p = __makeTemplateObject$p(["\n display: ", ";\n\n @media print {\n display: block;\n }\n"], ["\n display: ", ";\n\n @media print {\n display: block;\n }\n"])), function (props) { return (props.isOpen ? 'block' : 'none'); });
13362
+ var ShowRenderedChildren = styled.div(templateObject_1$p || (templateObject_1$p = __makeTemplateObject$p(["\n display: ", ";\n\n /* @media print {\n display: block;\n } */\n"], ["\n display: ", ";\n\n /* @media print {\n display: block;\n } */\n"])), function (props) { return (props.isOpen ? 'block' : 'none'); });
13363
13363
  var headerStatus = (_a = {},
13364
13364
  _a[exports.RequestStatus.Loading] = 'external-source loading',
13365
13365
  _a[exports.RequestStatus.Success] = 'success',
@@ -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);
@@ -13800,7 +13800,7 @@ var __makeTemplateObject$j = (undefined && undefined.__makeTemplateObject) || fu
13800
13800
  if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
13801
13801
  return cooked;
13802
13802
  };
13803
- var Content$1 = styled.div(templateObject_1$j || (templateObject_1$j = __makeTemplateObject$j(["\n display: ", ";\n\n @media print {\n display: block;\n }\n"], ["\n display: ", ";\n\n @media print {\n display: block;\n }\n"])), function (props) { return (props.isOpen ? 'block' : 'none'); });
13803
+ var Content$1 = styled.div(templateObject_1$j || (templateObject_1$j = __makeTemplateObject$j(["\n display: ", ";\n\n /* @media print {\n display: block;\n } */\n"], ["\n display: ", ";\n\n /* @media print {\n display: block;\n } */\n"])), function (props) { return (props.isOpen ? 'block' : 'none'); });
13804
13804
  var templateObject_1$j;
13805
13805
 
13806
13806
  var __assign$f = (undefined && undefined.__assign) || function () {
@@ -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 (index === 0 || index === arr.length - 1 || Number(current.quantidade) > 0);
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 (index === 0 || index === arr.length - 1 || Number(current.quantidade) > 0);
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);
@@ -3,6 +3,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
3
3
  return cooked;
4
4
  };
5
5
  import styled from 'styled-components';
6
- var Content = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: ", ";\n\n @media print {\n display: block;\n }\n"], ["\n display: ", ";\n\n @media print {\n display: block;\n }\n"])), function (props) { return (props.isOpen ? 'block' : 'none'); });
6
+ var Content = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: ", ";\n\n /* @media print {\n display: block;\n } */\n"], ["\n display: ", ";\n\n /* @media print {\n display: block;\n } */\n"])), function (props) { return (props.isOpen ? 'block' : 'none'); });
7
7
  export default Content;
8
8
  var templateObject_1;
@@ -223,7 +223,7 @@ var Section = function (_a) {
223
223
  renderedChildren && defaultHeaderActions) }))),
224
224
  React.createElement(ShowRenderedChildren, { isOpen: isOpen }, renderedChildren)));
225
225
  };
226
- var ShowRenderedChildren = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: ", ";\n\n @media print {\n display: block;\n }\n"], ["\n display: ", ";\n\n @media print {\n display: block;\n }\n"])), function (props) { return (props.isOpen ? 'block' : 'none'); });
226
+ var ShowRenderedChildren = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: ", ";\n\n /* @media print {\n display: block;\n } */\n"], ["\n display: ", ";\n\n /* @media print {\n display: block;\n } */\n"])), function (props) { return (props.isOpen ? 'block' : 'none'); });
227
227
  export var headerStatus = (_a = {},
228
228
  _a[RequestStatus.Loading] = 'external-source loading',
229
229
  _a[RequestStatus.Success] = 'success',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@credithub/harlan-components",
3
- "version": "1.20.2",
3
+ "version": "1.20.4",
4
4
  "description": "Provide a set of web components to be used in Harlan and other projects",
5
5
  "keywords": [
6
6
  "harlan",