@alume/alume-design-system 4.13.21
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 +40 -0
- package/dist/assets/fonts/IBMPlexSans-ExtraLight.ttf +0 -0
- package/dist/assets/fonts/IBMPlexSans-ExtraLightItalic.ttf +0 -0
- package/dist/assets/fonts/IBMPlexSans-Italic.ttf +0 -0
- package/dist/assets/fonts/IBMPlexSans-Light.ttf +0 -0
- package/dist/assets/fonts/IBMPlexSans-LightItalic.ttf +0 -0
- package/dist/assets/fonts/IBMPlexSans-Medium.ttf +0 -0
- package/dist/assets/fonts/IBMPlexSans-MediumItalic.ttf +0 -0
- package/dist/assets/fonts/IBMPlexSans-Regular.ttf +0 -0
- package/dist/assets/fonts/IBMPlexSans-RegularItalic.ttf +0 -0
- package/dist/assets/fonts/IBMPlexSans-SemiBold.ttf +0 -0
- package/dist/assets/fonts/IBMPlexSans-SemiBoldItalic.ttf +0 -0
- package/dist/assets/icons/advance.d.ts +2 -0
- package/dist/assets/icons/advance.js +4 -0
- package/dist/assets/icons/animated-bullet/animated.Bullet.styled.d.ts +3 -0
- package/dist/assets/icons/animated-bullet/animated.Bullet.styled.js +36 -0
- package/dist/assets/icons/animated-bullet/animatedBullet.component.d.ts +2 -0
- package/dist/assets/icons/animated-bullet/animatedBullet.component.js +7 -0
- package/dist/assets/icons/animated-bullet/index.d.ts +1 -0
- package/dist/assets/icons/animated-bullet/index.js +1 -0
- package/dist/assets/icons/back.d.ts +2 -0
- package/dist/assets/icons/back.js +4 -0
- package/dist/assets/icons/bell.d.ts +2 -0
- package/dist/assets/icons/bell.js +4 -0
- package/dist/assets/icons/cash.d.ts +2 -0
- package/dist/assets/icons/cash.js +7 -0
- package/dist/assets/icons/chatBaloon.d.ts +2 -0
- package/dist/assets/icons/chatBaloon.js +3 -0
- package/dist/assets/icons/checkBullet.d.ts +2 -0
- package/dist/assets/icons/checkBullet.js +25 -0
- package/dist/assets/icons/checkMark.d.ts +2 -0
- package/dist/assets/icons/checkMark.js +3 -0
- package/dist/assets/icons/close.d.ts +2 -0
- package/dist/assets/icons/close.js +4 -0
- package/dist/assets/icons/dropdown.d.ts +2 -0
- package/dist/assets/icons/dropdown.js +4 -0
- package/dist/assets/icons/edit.d.ts +2 -0
- package/dist/assets/icons/edit.js +4 -0
- package/dist/assets/icons/email.d.ts +2 -0
- package/dist/assets/icons/email.js +4 -0
- package/dist/assets/icons/emptyBullet.d.ts +2 -0
- package/dist/assets/icons/emptyBullet.js +21 -0
- package/dist/assets/icons/extract.d.ts +2 -0
- package/dist/assets/icons/extract.js +9 -0
- package/dist/assets/icons/faq.d.ts +2 -0
- package/dist/assets/icons/faq.js +5 -0
- package/dist/assets/icons/home.d.ts +2 -0
- package/dist/assets/icons/home.js +7 -0
- package/dist/assets/icons/index.d.ts +32 -0
- package/dist/assets/icons/index.js +32 -0
- package/dist/assets/icons/indicatorCheck.d.ts +2 -0
- package/dist/assets/icons/indicatorCheck.js +5 -0
- package/dist/assets/icons/indicatorProfile.d.ts +2 -0
- package/dist/assets/icons/indicatorProfile.js +4 -0
- package/dist/assets/icons/indicatorProposal.d.ts +2 -0
- package/dist/assets/icons/indicatorProposal.js +4 -0
- package/dist/assets/icons/indicatorRound.d.ts +2 -0
- package/dist/assets/icons/indicatorRound.js +4 -0
- package/dist/assets/icons/indicatorSafety.d.ts +2 -0
- package/dist/assets/icons/indicatorSafety.js +5 -0
- package/dist/assets/icons/information.d.ts +2 -0
- package/dist/assets/icons/information.js +7 -0
- package/dist/assets/icons/invoice.d.ts +2 -0
- package/dist/assets/icons/invoice.js +4 -0
- package/dist/assets/icons/legal.d.ts +2 -0
- package/dist/assets/icons/legal.js +5 -0
- package/dist/assets/icons/love.d.ts +2 -0
- package/dist/assets/icons/love.js +4 -0
- package/dist/assets/icons/plus.d.ts +2 -0
- package/dist/assets/icons/plus.js +3 -0
- package/dist/assets/icons/roundQuestionMark.d.ts +2 -0
- package/dist/assets/icons/roundQuestionMark.js +3 -0
- package/dist/assets/icons/safe.d.ts +2 -0
- package/dist/assets/icons/safe.js +5 -0
- package/dist/assets/icons/share.d.ts +2 -0
- package/dist/assets/icons/share.js +5 -0
- package/dist/assets/icons/simulation.d.ts +2 -0
- package/dist/assets/icons/simulation.js +5 -0
- package/dist/assets/icons/trash.d.ts +2 -0
- package/dist/assets/icons/trash.js +5 -0
- package/dist/assets/icons/whatsapp.d.ts +2 -0
- package/dist/assets/icons/whatsapp.js +4 -0
- package/dist/components/autocomplete-input/autocompleteInput.component.d.ts +11 -0
- package/dist/components/autocomplete-input/autocompleteInput.component.js +55 -0
- package/dist/components/autocomplete-input/autocompleteInput.styled.d.ts +24 -0
- package/dist/components/autocomplete-input/autocompleteInput.styled.js +89 -0
- package/dist/components/autocomplete-input/index.d.ts +1 -0
- package/dist/components/autocomplete-input/index.js +1 -0
- package/dist/components/button/button.component.d.ts +4 -0
- package/dist/components/button/button.component.js +16 -0
- package/dist/components/button/button.styled.d.ts +16 -0
- package/dist/components/button/button.styled.js +113 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.js +2 -0
- package/dist/components/card/card.component.d.ts +7 -0
- package/dist/components/card/card.component.js +17 -0
- package/dist/components/card/card.styled.d.ts +6 -0
- package/dist/components/card/card.styled.js +19 -0
- package/dist/components/card/index.d.ts +1 -0
- package/dist/components/card/index.js +1 -0
- package/dist/components/checkbox/checkbox.component.d.ts +6 -0
- package/dist/components/checkbox/checkbox.component.js +25 -0
- package/dist/components/checkbox/checkbox.styled.d.ts +7 -0
- package/dist/components/checkbox/checkbox.styled.js +50 -0
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/checkbox/index.js +1 -0
- package/dist/components/code-input/codeInput.component.d.ts +8 -0
- package/dist/components/code-input/codeInput.component.js +58 -0
- package/dist/components/code-input/codeInput.styled.d.ts +2 -0
- package/dist/components/code-input/codeInput.styled.js +26 -0
- package/dist/components/code-input/index.d.ts +1 -0
- package/dist/components/code-input/index.js +1 -0
- package/dist/components/disclaimer/disclaimer.component.d.ts +10 -0
- package/dist/components/disclaimer/disclaimer.component.js +12 -0
- package/dist/components/disclaimer/disclaimer.styled.d.ts +11 -0
- package/dist/components/disclaimer/disclaimer.styled.js +21 -0
- package/dist/components/disclaimer/index.d.ts +1 -0
- package/dist/components/disclaimer/index.js +1 -0
- package/dist/components/dropzone/dropzone.component.d.ts +26 -0
- package/dist/components/dropzone/dropzone.component.js +65 -0
- package/dist/components/dropzone/dropzone.styled.d.ts +9 -0
- package/dist/components/dropzone/dropzone.styled.js +43 -0
- package/dist/components/dropzone/index.d.ts +1 -0
- package/dist/components/dropzone/index.js +1 -0
- package/dist/components/feedback-input/feedbackInput.component.d.ts +8 -0
- package/dist/components/feedback-input/feedbackInput.component.js +17 -0
- package/dist/components/feedback-input/feedbackInput.styled.d.ts +6 -0
- package/dist/components/feedback-input/feedbackInput.styled.js +22 -0
- package/dist/components/feedback-input/index.d.ts +1 -0
- package/dist/components/feedback-input/index.js +1 -0
- package/dist/components/floating-footer/floatingFooter.styled.d.ts +1 -0
- package/dist/components/floating-footer/floatingFooter.styled.js +9 -0
- package/dist/components/floating-footer/index.d.ts +1 -0
- package/dist/components/floating-footer/index.js +1 -0
- package/dist/components/grid/grid.component.d.ts +11 -0
- package/dist/components/grid/grid.component.js +39 -0
- package/dist/components/grid/grid.styled.d.ts +22 -0
- package/dist/components/grid/grid.styled.js +38 -0
- package/dist/components/grid/index.d.ts +1 -0
- package/dist/components/grid/index.js +1 -0
- package/dist/components/horizontal-timeline/horizontalTimeline.component.d.ts +8 -0
- package/dist/components/horizontal-timeline/horizontalTimeline.component.js +26 -0
- package/dist/components/horizontal-timeline/horizontalTimeline.styled.d.ts +10 -0
- package/dist/components/horizontal-timeline/horizontalTimeline.styled.js +43 -0
- package/dist/components/horizontal-timeline/index.d.ts +1 -0
- package/dist/components/horizontal-timeline/index.js +1 -0
- package/dist/components/index.d.ts +27 -0
- package/dist/components/index.js +27 -0
- package/dist/components/large-selector/index.d.ts +2 -0
- package/dist/components/large-selector/index.js +2 -0
- package/dist/components/large-selector/largeSelector.component.d.ts +7 -0
- package/dist/components/large-selector/largeSelector.component.js +9 -0
- package/dist/components/large-selector/largeSelector.styled.d.ts +6 -0
- package/dist/components/large-selector/largeSelector.styled.js +34 -0
- package/dist/components/link/index.d.ts +1 -0
- package/dist/components/link/index.js +1 -0
- package/dist/components/link/link.component.d.ts +4 -0
- package/dist/components/link/link.component.js +17 -0
- package/dist/components/link/link.styled.d.ts +1 -0
- package/dist/components/link/link.styled.js +7 -0
- package/dist/components/list/index.d.ts +1 -0
- package/dist/components/list/index.js +1 -0
- package/dist/components/list/list.component.d.ts +8 -0
- package/dist/components/list/list.component.js +22 -0
- package/dist/components/list/list.styled.d.ts +2 -0
- package/dist/components/list/list.styled.js +8 -0
- package/dist/components/loading/index.d.ts +1 -0
- package/dist/components/loading/index.js +1 -0
- package/dist/components/loading/loading.styled.d.ts +2 -0
- package/dist/components/loading/loading.styled.js +48 -0
- package/dist/components/modal/index.d.ts +1 -0
- package/dist/components/modal/index.js +1 -0
- package/dist/components/modal/modal.component.d.ts +9 -0
- package/dist/components/modal/modal.component.js +35 -0
- package/dist/components/modal/modal.styled.d.ts +9 -0
- package/dist/components/modal/modal.styled.js +61 -0
- package/dist/components/multiselect/index.d.ts +1 -0
- package/dist/components/multiselect/index.js +1 -0
- package/dist/components/multiselect/multiselect.component.d.ts +12 -0
- package/dist/components/multiselect/multiselect.component.js +48 -0
- package/dist/components/multiselect/multiselect.style.d.ts +24 -0
- package/dist/components/multiselect/multiselect.style.js +93 -0
- package/dist/components/page-title/index.d.ts +1 -0
- package/dist/components/page-title/index.js +1 -0
- package/dist/components/page-title/pageTitle.component.d.ts +2 -0
- package/dist/components/page-title/pageTitle.component.js +6 -0
- package/dist/components/page-title/pageTitle.styled.d.ts +2 -0
- package/dist/components/page-title/pageTitle.styled.js +12 -0
- package/dist/components/radio/index.d.ts +1 -0
- package/dist/components/radio/index.js +1 -0
- package/dist/components/radio/radio.component.d.ts +12 -0
- package/dist/components/radio/radio.component.js +15 -0
- package/dist/components/radio/radio.styled.d.ts +9 -0
- package/dist/components/radio/radio.styled.js +55 -0
- package/dist/components/range-input/index.d.ts +1 -0
- package/dist/components/range-input/index.js +1 -0
- package/dist/components/range-input/rangeInput.component.d.ts +11 -0
- package/dist/components/range-input/rangeInput.component.js +24 -0
- package/dist/components/range-input/rangeInput.styled.d.ts +13 -0
- package/dist/components/range-input/rangeInput.styled.js +59 -0
- package/dist/components/select/index.d.ts +1 -0
- package/dist/components/select/index.js +1 -0
- package/dist/components/select/select.component.d.ts +13 -0
- package/dist/components/select/select.component.js +55 -0
- package/dist/components/select/select.styled.d.ts +26 -0
- package/dist/components/select/select.styled.js +86 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table/index.js +1 -0
- package/dist/components/table/table.component.d.ts +11 -0
- package/dist/components/table/table.component.js +39 -0
- package/dist/components/table/table.styled.d.ts +19 -0
- package/dist/components/table/table.styled.js +42 -0
- package/dist/components/text-area-input/index.d.ts +1 -0
- package/dist/components/text-area-input/index.js +1 -0
- package/dist/components/text-area-input/textAreaInput.component.d.ts +9 -0
- package/dist/components/text-area-input/textAreaInput.component.js +28 -0
- package/dist/components/text-area-input/textAreaInput.styled.d.ts +11 -0
- package/dist/components/text-area-input/textAreaInput.styled.js +47 -0
- package/dist/components/text-input/index.d.ts +1 -0
- package/dist/components/text-input/index.js +1 -0
- package/dist/components/text-input/textInput.component.d.ts +19 -0
- package/dist/components/text-input/textInput.component.js +84 -0
- package/dist/components/text-input/textInput.styled.d.ts +17 -0
- package/dist/components/text-input/textInput.styled.js +56 -0
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/tooltip/index.js +1 -0
- package/dist/components/tooltip/tooltip.component.d.ts +7 -0
- package/dist/components/tooltip/tooltip.component.js +8 -0
- package/dist/components/tooltip/tooltip.styled.d.ts +7 -0
- package/dist/components/tooltip/tooltip.styled.js +29 -0
- package/dist/components/typography/index.d.ts +1 -0
- package/dist/components/typography/index.js +1 -0
- package/dist/components/typography/typography.styled.d.ts +11 -0
- package/dist/components/typography/typography.styled.js +39 -0
- package/dist/components/vertical-timeline/index.d.ts +1 -0
- package/dist/components/vertical-timeline/index.js +1 -0
- package/dist/components/vertical-timeline/verticalTimeline.component.d.ts +12 -0
- package/dist/components/vertical-timeline/verticalTimeline.component.js +16 -0
- package/dist/components/vertical-timeline/verticalTimeline.styled.d.ts +9 -0
- package/dist/components/vertical-timeline/verticalTimeline.styled.js +33 -0
- package/dist/constants/breakpoints.d.ts +6 -0
- package/dist/constants/breakpoints.js +6 -0
- package/dist/constants/colors.d.ts +23 -0
- package/dist/constants/colors.js +23 -0
- package/dist/constants/fonts.d.ts +1 -0
- package/dist/constants/fonts.js +75 -0
- package/dist/constants/index.d.ts +6 -0
- package/dist/constants/index.js +6 -0
- package/dist/constants/latinAmericaOptions.d.ts +2 -0
- package/dist/constants/latinAmericaOptions.js +78 -0
- package/dist/constants/reset.d.ts +1 -0
- package/dist/constants/reset.js +90 -0
- package/dist/constants/styles.d.ts +6 -0
- package/dist/constants/styles.js +17 -0
- package/dist/helpers/currency.d.ts +2 -0
- package/dist/helpers/currency.js +24 -0
- package/dist/helpers/index.d.ts +3 -0
- package/dist/helpers/index.js +3 -0
- package/dist/helpers/number.d.ts +2 -0
- package/dist/helpers/number.js +6 -0
- package/dist/helpers/percentage.d.ts +2 -0
- package/dist/helpers/percentage.js +31 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/package.json +107 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { colors } from "../../constants";
|
|
3
|
+
export const StyledTextInputContainer = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
justify-content: flex-end;
|
|
7
|
+
|
|
8
|
+
height: 28px;
|
|
9
|
+
width: ${({ stretch }) => (stretch ? "100%" : "auto")};
|
|
10
|
+
|
|
11
|
+
${({ hasError }) => hasError && `color: ${colors.red};`}
|
|
12
|
+
`;
|
|
13
|
+
export const StyledTextInputLabel = styled.label `
|
|
14
|
+
position: relative;
|
|
15
|
+
|
|
16
|
+
color: ${colors.textLightGreen};
|
|
17
|
+
cursor: ${({ disabled }) => (disabled ? "normal" : "text")};
|
|
18
|
+
transition: transform 0.4s, font-size 0.4s;
|
|
19
|
+
transition-timing-function: ease;
|
|
20
|
+
font-size: 16px;
|
|
21
|
+
text-align: left;
|
|
22
|
+
transform: translateY(26px);
|
|
23
|
+
|
|
24
|
+
${({ riseLabel }) => riseLabel &&
|
|
25
|
+
`
|
|
26
|
+
transform: translateY(0px);
|
|
27
|
+
font-size: 12px;
|
|
28
|
+
`}
|
|
29
|
+
${({ disabled }) => disabled && `color: ${colors.lightGrey};`}
|
|
30
|
+
${({ hasError }) => hasError && `color: ${colors.red};`}
|
|
31
|
+
`;
|
|
32
|
+
export const StyleTextInput = styled.input `
|
|
33
|
+
border: none;
|
|
34
|
+
border-bottom: 1px solid ${colors.lightGrey};
|
|
35
|
+
line-height: 20px;
|
|
36
|
+
padding: 4px 0;
|
|
37
|
+
color: ${colors.textGreen};
|
|
38
|
+
font-size: 16px;
|
|
39
|
+
&:focus {
|
|
40
|
+
outline: none;
|
|
41
|
+
}
|
|
42
|
+
&:disabled {
|
|
43
|
+
background-color: transparent;
|
|
44
|
+
}
|
|
45
|
+
${({ hasError }) => hasError &&
|
|
46
|
+
`
|
|
47
|
+
border-color: ${colors.red};
|
|
48
|
+
color: ${colors.red};
|
|
49
|
+
`}
|
|
50
|
+
`;
|
|
51
|
+
export const StyleErrorSpan = styled.span `
|
|
52
|
+
position: absolute;
|
|
53
|
+
align-self: flex-end;
|
|
54
|
+
transform: translateY(17px);
|
|
55
|
+
font-size: 12px;
|
|
56
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./tooltip.component";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./tooltip.component";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { TooltipContainer, TooltipContent } from "./tooltip.styled";
|
|
3
|
+
export const Tooltip = ({ children, content, maxWidth, }) => {
|
|
4
|
+
const [showContent, setShowContent] = useState(false);
|
|
5
|
+
return (React.createElement(TooltipContainer, { onMouseEnter: () => setShowContent(true), onMouseLeave: () => setShowContent(false) },
|
|
6
|
+
children,
|
|
7
|
+
React.createElement(TooltipContent, { maxWidth: maxWidth, show: showContent }, content)));
|
|
8
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const TooltipContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
interface TooltipContentProps {
|
|
3
|
+
show?: boolean;
|
|
4
|
+
maxWidth?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const TooltipContent: import("styled-components").StyledComponent<"div", any, TooltipContentProps, never>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { breakpoints, colors } from "../../constants";
|
|
3
|
+
export const TooltipContainer = styled.div `
|
|
4
|
+
display: inline-block;
|
|
5
|
+
|
|
6
|
+
@media only screen and (min-width: ${breakpoints.lg}) {
|
|
7
|
+
position: relative;
|
|
8
|
+
}
|
|
9
|
+
`;
|
|
10
|
+
export const TooltipContent = styled.div `
|
|
11
|
+
position: absolute;
|
|
12
|
+
z-index: 1;
|
|
13
|
+
border: 1px solid ${colors.darkGreen};
|
|
14
|
+
background-color: ${colors.floatingNav};
|
|
15
|
+
border-radius: 4px;
|
|
16
|
+
padding: 12px;
|
|
17
|
+
width: max-content;
|
|
18
|
+
|
|
19
|
+
visibility: ${({ show }) => (show ? "visible" : "hidden")};
|
|
20
|
+
|
|
21
|
+
// all the screen minus the grid lateral paddings
|
|
22
|
+
max-width: ${({ maxWidth }) => maxWidth ? `${maxWidth}px` : "calc(100vw - 48px)"};
|
|
23
|
+
left: 24px;
|
|
24
|
+
|
|
25
|
+
@media only screen and (min-width: ${breakpoints.lg}) {
|
|
26
|
+
left: 0;
|
|
27
|
+
max-width: ${({ maxWidth }) => (maxWidth ? `${maxWidth}px` : "400px")};
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./typography.styled";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./typography.styled";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const H1: import("styled-components").StyledComponent<"h1", any, {}, never>;
|
|
3
|
+
export declare const H2: import("styled-components").StyledComponent<"h2", any, {}, never>;
|
|
4
|
+
export declare const H3: import("styled-components").StyledComponent<"h3", any, {}, never>;
|
|
5
|
+
export declare const H4: import("styled-components").StyledComponent<"h4", any, {}, never>;
|
|
6
|
+
export declare const H5: import("styled-components").StyledComponent<"h5", any, {}, never>;
|
|
7
|
+
interface TextProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement> {
|
|
8
|
+
fontSize?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const Text: import("styled-components").StyledComponent<"p", any, TextProps, never>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { colors } from "../../constants";
|
|
3
|
+
const commonCSS = `
|
|
4
|
+
color: ${colors.textGreen};
|
|
5
|
+
margin: 0;
|
|
6
|
+
`;
|
|
7
|
+
export const H1 = styled.h1 `
|
|
8
|
+
${commonCSS}
|
|
9
|
+
font-weight: 600;
|
|
10
|
+
font-size: 22px;
|
|
11
|
+
line-height: 29px;
|
|
12
|
+
`;
|
|
13
|
+
export const H2 = styled.h2 `
|
|
14
|
+
${commonCSS}
|
|
15
|
+
font-weight: 600;
|
|
16
|
+
font-size: 20px;
|
|
17
|
+
line-height: 27px;
|
|
18
|
+
`;
|
|
19
|
+
export const H3 = styled.h3 `
|
|
20
|
+
${commonCSS}
|
|
21
|
+
font-weight: 600;
|
|
22
|
+
font-size: 16px;
|
|
23
|
+
line-height: 20px;
|
|
24
|
+
`;
|
|
25
|
+
export const H4 = styled.h4 `
|
|
26
|
+
${commonCSS}
|
|
27
|
+
font-size: 14px;
|
|
28
|
+
line-height: 18px;
|
|
29
|
+
`;
|
|
30
|
+
export const H5 = styled.h5 `
|
|
31
|
+
${commonCSS}
|
|
32
|
+
font-size: 12px;
|
|
33
|
+
line-height: 15px;
|
|
34
|
+
`;
|
|
35
|
+
export const Text = styled.p `
|
|
36
|
+
${commonCSS}
|
|
37
|
+
font-size: ${({ fontSize }) => (fontSize ? `${fontSize}px` : "16px")};
|
|
38
|
+
line-height: 20px;
|
|
39
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./verticalTimeline.component";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./verticalTimeline.component";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface VerticalTimelineItemProps extends React.HTMLProps<HTMLDivElement> {
|
|
3
|
+
title: string;
|
|
4
|
+
icon: JSX.Element;
|
|
5
|
+
isActive?: boolean;
|
|
6
|
+
setRef?: (instance: HTMLDivElement) => void;
|
|
7
|
+
}
|
|
8
|
+
declare type VerticalTimelineType = {
|
|
9
|
+
Item: React.FunctionComponent<VerticalTimelineItemProps>;
|
|
10
|
+
};
|
|
11
|
+
export declare const VerticalTimeline: React.FunctionComponent & VerticalTimelineType;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { useCallback } from "react";
|
|
2
|
+
import { ContentContainer, IconContainer, TimelineContainer, Title, TitleContainer, } from "./verticalTimeline.styled";
|
|
3
|
+
export const VerticalTimeline = ({ children }) => {
|
|
4
|
+
return React.createElement(TimelineContainer, null, children);
|
|
5
|
+
};
|
|
6
|
+
const Item = ({ title, icon, children, isActive, setRef, }) => {
|
|
7
|
+
const defineRef = useCallback((node) => {
|
|
8
|
+
node && setRef && setRef(node);
|
|
9
|
+
}, []);
|
|
10
|
+
return (React.createElement("div", { ref: defineRef },
|
|
11
|
+
React.createElement(TitleContainer, { isActive: isActive },
|
|
12
|
+
React.createElement(IconContainer, null, icon),
|
|
13
|
+
React.createElement(Title, null, title)),
|
|
14
|
+
children && React.createElement(ContentContainer, null, children)));
|
|
15
|
+
};
|
|
16
|
+
VerticalTimeline.Item = Item;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const TimelineContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
+
interface TitleContainerProps {
|
|
3
|
+
isActive?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const TitleContainer: import("styled-components").StyledComponent<"div", any, TitleContainerProps, never>;
|
|
6
|
+
export declare const Title: import("styled-components").StyledComponent<"h3", any, {}, never>;
|
|
7
|
+
export declare const IconContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const ContentContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { colors } from "../../constants";
|
|
3
|
+
import { H3 } from "../typography";
|
|
4
|
+
export const TimelineContainer = styled.div `
|
|
5
|
+
> div:not(:last-child) {
|
|
6
|
+
margin-bottom: 32px;
|
|
7
|
+
}
|
|
8
|
+
`;
|
|
9
|
+
export const TitleContainer = styled.div `
|
|
10
|
+
display: flex;
|
|
11
|
+
|
|
12
|
+
svg,
|
|
13
|
+
h3 {
|
|
14
|
+
${({ isActive }) => isActive ? "color: inherit" : `color: ${colors.textLightGreen};`}
|
|
15
|
+
}
|
|
16
|
+
`;
|
|
17
|
+
export const Title = styled(H3) `
|
|
18
|
+
font-weight: normal;
|
|
19
|
+
`;
|
|
20
|
+
export const IconContainer = styled.div `
|
|
21
|
+
margin-right: 8px;
|
|
22
|
+
height: 21px;
|
|
23
|
+
width: 21px;
|
|
24
|
+
|
|
25
|
+
> svg {
|
|
26
|
+
height: 21px;
|
|
27
|
+
width: 21px;
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
30
|
+
export const ContentContainer = styled.div `
|
|
31
|
+
margin-left: 29px;
|
|
32
|
+
margin-top: 14px;
|
|
33
|
+
`;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const colors: {
|
|
2
|
+
darkGreen: string;
|
|
3
|
+
darkGreen15Opacity: string;
|
|
4
|
+
backgroundGreen: string;
|
|
5
|
+
green: string;
|
|
6
|
+
lightGreen: string;
|
|
7
|
+
white: string;
|
|
8
|
+
timelineGrey: string;
|
|
9
|
+
floatingNav: string;
|
|
10
|
+
grey: string;
|
|
11
|
+
lightGrey: string;
|
|
12
|
+
softGrey: string;
|
|
13
|
+
textLightGreen: string;
|
|
14
|
+
textGreen: string;
|
|
15
|
+
red: string;
|
|
16
|
+
backgroundRed: string;
|
|
17
|
+
pink: string;
|
|
18
|
+
aqua: string;
|
|
19
|
+
cardBorderGrey: string;
|
|
20
|
+
yellow: string;
|
|
21
|
+
backgroundYellow: string;
|
|
22
|
+
tableText: string;
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const colors = {
|
|
2
|
+
darkGreen: "#004852",
|
|
3
|
+
darkGreen15Opacity: "rgba(0, 72, 82, 0.15)",
|
|
4
|
+
backgroundGreen: "rgba(0,220,192,0.1)",
|
|
5
|
+
green: "#007681",
|
|
6
|
+
lightGreen: "#00dcc0",
|
|
7
|
+
white: "#FFFFFF",
|
|
8
|
+
timelineGrey: "#F2F2F2",
|
|
9
|
+
floatingNav: "#FAFAFA",
|
|
10
|
+
grey: "#999999",
|
|
11
|
+
lightGrey: "#D8D8D8",
|
|
12
|
+
softGrey: "#F0F0F0",
|
|
13
|
+
textLightGreen: "rgba(0, 35, 46, 0.5)",
|
|
14
|
+
textGreen: "#004852",
|
|
15
|
+
red: "#BD2862",
|
|
16
|
+
backgroundRed: "#FED6DC",
|
|
17
|
+
pink: "#FFB9C3",
|
|
18
|
+
aqua: "rgba(0,220,192, 0.5)",
|
|
19
|
+
cardBorderGrey: "#E7E7E7",
|
|
20
|
+
yellow: "#C58036",
|
|
21
|
+
backgroundYellow: "#FFF2D0",
|
|
22
|
+
tableText: "#505050",
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GlobalFont: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { createGlobalStyle } from "styled-components";
|
|
2
|
+
import IBMPlexSansSemiBold from "../assets/fonts/IBMPlexSans-SemiBold.ttf";
|
|
3
|
+
import IBMPlexSansSemiBoldItalic from "../assets/fonts/IBMPlexSans-SemiBoldItalic.ttf";
|
|
4
|
+
import IBMPlexSansRegular from "../assets/fonts/IBMPlexSans-Regular.ttf";
|
|
5
|
+
import IBMPlexSansRegularItalic from "../assets/fonts/IBMPlexSans-RegularItalic.ttf";
|
|
6
|
+
import IBMPlexSansMedium from "../assets/fonts/IBMPlexSans-Medium.ttf";
|
|
7
|
+
import IBMPlexSansMediumItalic from "../assets/fonts/IBMPlexSans-MediumItalic.ttf";
|
|
8
|
+
import IBMPlexSansLight from "../assets/fonts/IBMPlexSans-Light.ttf";
|
|
9
|
+
import IBMPlexSansLightItalic from "../assets/fonts/IBMPlexSans-LightItalic.ttf";
|
|
10
|
+
import IBMPlexSansExtraLight from "../assets/fonts/IBMPlexSans-ExtraLight.ttf";
|
|
11
|
+
import IBMPlexSansExtraLightItalic from "../assets/fonts/IBMPlexSans-ExtraLightItalic.ttf";
|
|
12
|
+
export const GlobalFont = createGlobalStyle `
|
|
13
|
+
body,
|
|
14
|
+
button,
|
|
15
|
+
span {
|
|
16
|
+
@font-face {
|
|
17
|
+
font-family: 'IBMPlexSans';
|
|
18
|
+
src: url(${IBMPlexSansSemiBold}) format('truetype');
|
|
19
|
+
font-weight: 600;
|
|
20
|
+
}
|
|
21
|
+
@font-face {
|
|
22
|
+
font-family: 'IBMPlexSans';
|
|
23
|
+
src: url(${IBMPlexSansSemiBoldItalic}) format('truetype');
|
|
24
|
+
font-weight: 600;
|
|
25
|
+
font-style: italic;
|
|
26
|
+
}
|
|
27
|
+
@font-face {
|
|
28
|
+
font-family: 'IBMPlexSans';
|
|
29
|
+
src: url(${IBMPlexSansMedium}) format('truetype');
|
|
30
|
+
font-weight: 500;
|
|
31
|
+
}
|
|
32
|
+
@font-face {
|
|
33
|
+
font-family: 'IBMPlexSans';
|
|
34
|
+
src: url(${IBMPlexSansMediumItalic}) format('truetype');
|
|
35
|
+
font-weight: 500;
|
|
36
|
+
font-style: italic;
|
|
37
|
+
}
|
|
38
|
+
@font-face {
|
|
39
|
+
font-family: 'IBMPlexSans';
|
|
40
|
+
src: url(${IBMPlexSansRegular}) format('truetype');
|
|
41
|
+
font-weight: 400;
|
|
42
|
+
}
|
|
43
|
+
@font-face {
|
|
44
|
+
font-family: 'IBMPlexSans';
|
|
45
|
+
src: url(${IBMPlexSansRegularItalic}) format('truetype');
|
|
46
|
+
font-weight: 400;
|
|
47
|
+
font-style: italic;
|
|
48
|
+
}
|
|
49
|
+
@font-face {
|
|
50
|
+
font-family: 'IBMPlexSans';
|
|
51
|
+
src: url(${IBMPlexSansLight}) format('truetype');
|
|
52
|
+
font-weight: 300;
|
|
53
|
+
}
|
|
54
|
+
@font-face {
|
|
55
|
+
font-family: 'IBMPlexSans';
|
|
56
|
+
src: url(${IBMPlexSansLightItalic}) format('truetype');
|
|
57
|
+
font-weight: 300;
|
|
58
|
+
font-style: italic;
|
|
59
|
+
}
|
|
60
|
+
@font-face {
|
|
61
|
+
font-family: 'IBMPlexSans';
|
|
62
|
+
src: url(${IBMPlexSansExtraLight}) format('truetype');
|
|
63
|
+
font-weight: 200;
|
|
64
|
+
}
|
|
65
|
+
@font-face {
|
|
66
|
+
font-family: 'IBMPlexSans';
|
|
67
|
+
src: url(${IBMPlexSansExtraLightItalic}) format('truetype');
|
|
68
|
+
font-weight: 200;
|
|
69
|
+
font-style: italic;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
font-family: IBMPlexSans, sans-serif !important;
|
|
73
|
+
font-weight: 300;
|
|
74
|
+
}
|
|
75
|
+
`;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export const latinAmericaCountriesOptions = [
|
|
2
|
+
{
|
|
3
|
+
label: "Argentina",
|
|
4
|
+
value: "AR",
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
label: "Bolivia",
|
|
8
|
+
value: "BO",
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
label: "Chile",
|
|
12
|
+
value: "CH",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
label: "Colômbia",
|
|
16
|
+
value: "CO",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
label: "Costa Rica",
|
|
20
|
+
value: "CR",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
label: "Cuba",
|
|
24
|
+
value: "CU",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
label: "El Salvador",
|
|
28
|
+
value: "SV",
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
label: "Equador",
|
|
32
|
+
value: "EC",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
label: "Guatemala",
|
|
36
|
+
value: "GT",
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
label: "Haiti",
|
|
40
|
+
value: "HT",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: "Honduras",
|
|
44
|
+
value: "HN",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
label: "México",
|
|
48
|
+
value: "MX",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
label: "Nicarágua",
|
|
52
|
+
value: "NI",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: "Panamá",
|
|
56
|
+
value: "PA",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
label: "Paraguai",
|
|
60
|
+
value: "PY",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: "Peru",
|
|
64
|
+
value: "PE",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
label: "República Dominicana",
|
|
68
|
+
value: "DO",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
label: "Uruguai",
|
|
72
|
+
value: "UY",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
label: "Venezuela",
|
|
76
|
+
value: "VE",
|
|
77
|
+
},
|
|
78
|
+
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GlobalReset: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { createGlobalStyle } from "styled-components";
|
|
2
|
+
export const GlobalReset = createGlobalStyle `
|
|
3
|
+
/* Box sizing rules */
|
|
4
|
+
*,
|
|
5
|
+
*::before,
|
|
6
|
+
*::after {
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* Remove default padding */
|
|
11
|
+
ul[class],
|
|
12
|
+
ol[class] {
|
|
13
|
+
padding: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
body {
|
|
17
|
+
overflow-x: hidden;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* Remove default margin */
|
|
21
|
+
body,
|
|
22
|
+
h1,
|
|
23
|
+
h2,
|
|
24
|
+
h3,
|
|
25
|
+
h4,
|
|
26
|
+
p,
|
|
27
|
+
ul[class],
|
|
28
|
+
ol[class],
|
|
29
|
+
li,
|
|
30
|
+
figure,
|
|
31
|
+
figcaption,
|
|
32
|
+
blockquote,
|
|
33
|
+
dl,
|
|
34
|
+
dd {
|
|
35
|
+
margin: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* Set core body defaults */
|
|
39
|
+
body {
|
|
40
|
+
min-height: 100vh;
|
|
41
|
+
scroll-behavior: smooth;
|
|
42
|
+
text-rendering: optimizeSpeed;
|
|
43
|
+
line-height: 1.5;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Remove list styles on ul, ol elements with a class attribute */
|
|
47
|
+
ul[class],
|
|
48
|
+
ol[class] {
|
|
49
|
+
list-style: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* A elements that don't have a class get default styles */
|
|
53
|
+
a:not([class]) {
|
|
54
|
+
text-decoration-skip-ink: auto;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Make images easier to work with */
|
|
58
|
+
img {
|
|
59
|
+
max-width: 100%;
|
|
60
|
+
display: block;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Natural flow and rhythm in articles by default */
|
|
64
|
+
article > * + * {
|
|
65
|
+
margin-top: 1em;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/* Inherit fonts for inputs and buttons */
|
|
69
|
+
input,
|
|
70
|
+
button,
|
|
71
|
+
textarea,
|
|
72
|
+
select {
|
|
73
|
+
font: inherit;
|
|
74
|
+
outline: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
html {
|
|
78
|
+
scroll-behavior: smooth;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* Remove all animations and transitions for people that prefer not to see them */
|
|
82
|
+
@media (prefers-reduced-motion: reduce) {
|
|
83
|
+
* {
|
|
84
|
+
animation-duration: 0.01ms !important;
|
|
85
|
+
animation-iteration-count: 1 !important;
|
|
86
|
+
transition-duration: 0.01ms !important;
|
|
87
|
+
scroll-behavior: auto !important;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
`;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare type BorderRadiusKey = "small" | "medium" | "large" | "round";
|
|
2
|
+
export declare type FontSizeKey = "extraSmall" | "small" | "medium" | "large" | "extraLarge";
|
|
3
|
+
export declare const styles: {
|
|
4
|
+
borderRadius: Record<BorderRadiusKey, string>;
|
|
5
|
+
fontSize: Record<FontSizeKey, string>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const borderRadius = {
|
|
2
|
+
small: "4px",
|
|
3
|
+
medium: "8px",
|
|
4
|
+
large: "16px",
|
|
5
|
+
round: "50%",
|
|
6
|
+
};
|
|
7
|
+
const fontSize = {
|
|
8
|
+
extraSmall: "12px",
|
|
9
|
+
small: "14px",
|
|
10
|
+
medium: "16px",
|
|
11
|
+
large: "20px",
|
|
12
|
+
extraLarge: "22px",
|
|
13
|
+
};
|
|
14
|
+
export const styles = {
|
|
15
|
+
borderRadius,
|
|
16
|
+
fontSize,
|
|
17
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const addCurrencyMask = (value) => {
|
|
2
|
+
const cleanValue = value.toString().replace(/\D/g, "") || ""; // clean all non numeric digits
|
|
3
|
+
let firstPart = cleanValue
|
|
4
|
+
.substring(0, cleanValue.length - 2) // get the numbers
|
|
5
|
+
.replace(/\B(?=(\d{3})+(?!\d))/g, "."); // add the thousands spaces
|
|
6
|
+
firstPart = firstPart === "" ? "0" : firstPart; // if no digits, just print 0
|
|
7
|
+
let secondPart = cleanValue.substring(cleanValue.length - 2); // get the numbers
|
|
8
|
+
secondPart = secondPart.length < 2 ? `0${secondPart}` : secondPart; // add left zero if necessary
|
|
9
|
+
return cleanValue === "" ? "" : `R$ ${firstPart},${secondPart}`;
|
|
10
|
+
};
|
|
11
|
+
const cleanCurrencyMask = (value) => {
|
|
12
|
+
let cleanValue = (value === null || value === void 0 ? void 0 : value.toString().replace(/\D/g, "")) || ""; // clean all non numeric digits
|
|
13
|
+
cleanValue =
|
|
14
|
+
cleanValue !== ""
|
|
15
|
+
? parseInt(cleanValue.toString(), 10).toString() // remove left zeros
|
|
16
|
+
: cleanValue;
|
|
17
|
+
const firstPart = cleanValue.substring(0, cleanValue.length - 2); // get the numbers
|
|
18
|
+
const secondPart = cleanValue.substring(cleanValue.length - 2); // get the numbers
|
|
19
|
+
return cleanValue === "" ? "" : `${firstPart}.${secondPart}`;
|
|
20
|
+
};
|
|
21
|
+
export const currencyInterceptors = {
|
|
22
|
+
beforeSetValue: addCurrencyMask,
|
|
23
|
+
onChange: cleanCurrencyMask,
|
|
24
|
+
};
|