@credithub/harlan-components 1.75.2 → 1.75.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.
@@ -20,11 +20,11 @@ import { formatCnpj, formatCpf } from '../../utils/string';
20
20
  import XPathUtils from '../../utils/xpath';
21
21
  import React, { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';
22
22
  import styled from 'styled-components';
23
- import { ReclameAquiCarousel } from '../reclameAqui/reclameAquiCarousel';
24
23
  import Section from '../section';
25
24
  import { Queries, RequestStatus, useQuery } from '../webservice';
26
25
  import { createDossieData } from './dossieData';
27
26
  import GenerativeAI from './generativeAi/generativeAi';
27
+ import { ReclameAquiCarousel } from './sliderCompanyName/reclameAqui/reclameAquiCarousel';
28
28
  import { Summary } from './summary/summary';
29
29
  import { TransactionsTable } from './transactionTable/transactionTable';
30
30
  var DossieContent = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: grid;\n grid-template-columns: 1fr 2fr;\n justify-items: center;\n align-items: flex-start;\n margin-bottom: 20px;\n gap: 20px;\n @media screen and (max-width: 992px) {\n grid-template-columns: 1fr;\n }\n"], ["\n display: grid;\n grid-template-columns: 1fr 2fr;\n justify-items: center;\n align-items: flex-start;\n margin-bottom: 20px;\n gap: 20px;\n @media screen and (max-width: 992px) {\n grid-template-columns: 1fr;\n }\n"])));
@@ -3,9 +3,9 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
3
3
  return cooked;
4
4
  };
5
5
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
6
- import IconeEmpresa from '../../../assets/icones/iconeEmpresa';
7
- import IconePessoa from '../../../assets/icones/iconePessoa';
8
- import { isDocumentoPF } from '../../../utils/string';
6
+ import IconeEmpresa from '../../../../assets/icones/iconeEmpresa';
7
+ import IconePessoa from '../../../../assets/icones/iconePessoa';
8
+ import { isDocumentoPF } from '../../../../utils/string';
9
9
  import styled, { useTheme } from 'styled-components';
10
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"])));
11
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) {
@@ -11,10 +11,11 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
13
13
  // src/components/reclameAqui/reclameAquiCarousel.tsx
14
- import { formatValue } from '../../utils/number';
14
+ import { formatValue } from '../../../../utils/number';
15
15
  import { memo } from 'react';
16
- import { statusMap } from '../../constants/reclameAqui';
16
+ import { statusMap } from '../../../../constants/reclameAqui';
17
17
  import Carousel from './carousel';
18
+ import SliderCompanyName from '../sliderCompanyName';
18
19
  import { CompanyName, ContainerSummary, DocumentContainer, DocumentPrefix, LogoContainer, ProblemsSolved, ReclameAquiStatsContainer, StatsImage, StyledImage } from './styles';
19
20
  var translateStatus = function (status) {
20
21
  return statusMap[status] || '--';
@@ -30,7 +31,7 @@ var ReclameAquiStats = function (_a) {
30
31
  export var ReclameAquiCarousel = memo(function (_a) {
31
32
  var nome = _a.nome, documento = _a.documento, companies = _a.companies;
32
33
  if (!companies || companies.length === 0) {
33
- return _jsx("div", { children: "N\u00E3o h\u00E1 empresas para exibir." });
34
+ return _jsx(SliderCompanyName, { name: nome, document: documento });
34
35
  }
35
36
  return (_jsx(ContainerSummary, { children: _jsx(Carousel, { pagination: false, isRTL: false, showArrows: companies.length > 1, renderArrowIcon: function (_a) {
36
37
  var type = _a.type;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface SliderCompanyNameProps {
3
+ name: string;
4
+ document: string;
5
+ image?: string;
6
+ }
7
+ export declare const SliderCompanyName: React.FC<SliderCompanyNameProps>;
8
+ export default SliderCompanyName;
@@ -3,12 +3,12 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
3
3
  return cooked;
4
4
  };
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
- import Companylogo from '../companyLogo/companyLogo';
7
6
  import styled from 'styled-components';
7
+ import Companylogo from './companyLogo/companyLogo';
8
8
  var CarouselContainer = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n"])));
9
- export var Carrousel = function (_a) {
9
+ export var SliderCompanyName = function (_a) {
10
10
  var name = _a.name, document = _a.document;
11
11
  return (_jsx(CarouselContainer, { children: _jsx(Companylogo, { name: name, document: document }) }));
12
12
  };
13
- export default Carrousel;
13
+ export default SliderCompanyName;
14
14
  var templateObject_1;