@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.
Files changed (267) hide show
  1. package/README.md +40 -0
  2. package/dist/assets/fonts/IBMPlexSans-ExtraLight.ttf +0 -0
  3. package/dist/assets/fonts/IBMPlexSans-ExtraLightItalic.ttf +0 -0
  4. package/dist/assets/fonts/IBMPlexSans-Italic.ttf +0 -0
  5. package/dist/assets/fonts/IBMPlexSans-Light.ttf +0 -0
  6. package/dist/assets/fonts/IBMPlexSans-LightItalic.ttf +0 -0
  7. package/dist/assets/fonts/IBMPlexSans-Medium.ttf +0 -0
  8. package/dist/assets/fonts/IBMPlexSans-MediumItalic.ttf +0 -0
  9. package/dist/assets/fonts/IBMPlexSans-Regular.ttf +0 -0
  10. package/dist/assets/fonts/IBMPlexSans-RegularItalic.ttf +0 -0
  11. package/dist/assets/fonts/IBMPlexSans-SemiBold.ttf +0 -0
  12. package/dist/assets/fonts/IBMPlexSans-SemiBoldItalic.ttf +0 -0
  13. package/dist/assets/icons/advance.d.ts +2 -0
  14. package/dist/assets/icons/advance.js +4 -0
  15. package/dist/assets/icons/animated-bullet/animated.Bullet.styled.d.ts +3 -0
  16. package/dist/assets/icons/animated-bullet/animated.Bullet.styled.js +36 -0
  17. package/dist/assets/icons/animated-bullet/animatedBullet.component.d.ts +2 -0
  18. package/dist/assets/icons/animated-bullet/animatedBullet.component.js +7 -0
  19. package/dist/assets/icons/animated-bullet/index.d.ts +1 -0
  20. package/dist/assets/icons/animated-bullet/index.js +1 -0
  21. package/dist/assets/icons/back.d.ts +2 -0
  22. package/dist/assets/icons/back.js +4 -0
  23. package/dist/assets/icons/bell.d.ts +2 -0
  24. package/dist/assets/icons/bell.js +4 -0
  25. package/dist/assets/icons/cash.d.ts +2 -0
  26. package/dist/assets/icons/cash.js +7 -0
  27. package/dist/assets/icons/chatBaloon.d.ts +2 -0
  28. package/dist/assets/icons/chatBaloon.js +3 -0
  29. package/dist/assets/icons/checkBullet.d.ts +2 -0
  30. package/dist/assets/icons/checkBullet.js +25 -0
  31. package/dist/assets/icons/checkMark.d.ts +2 -0
  32. package/dist/assets/icons/checkMark.js +3 -0
  33. package/dist/assets/icons/close.d.ts +2 -0
  34. package/dist/assets/icons/close.js +4 -0
  35. package/dist/assets/icons/dropdown.d.ts +2 -0
  36. package/dist/assets/icons/dropdown.js +4 -0
  37. package/dist/assets/icons/edit.d.ts +2 -0
  38. package/dist/assets/icons/edit.js +4 -0
  39. package/dist/assets/icons/email.d.ts +2 -0
  40. package/dist/assets/icons/email.js +4 -0
  41. package/dist/assets/icons/emptyBullet.d.ts +2 -0
  42. package/dist/assets/icons/emptyBullet.js +21 -0
  43. package/dist/assets/icons/extract.d.ts +2 -0
  44. package/dist/assets/icons/extract.js +9 -0
  45. package/dist/assets/icons/faq.d.ts +2 -0
  46. package/dist/assets/icons/faq.js +5 -0
  47. package/dist/assets/icons/home.d.ts +2 -0
  48. package/dist/assets/icons/home.js +7 -0
  49. package/dist/assets/icons/index.d.ts +32 -0
  50. package/dist/assets/icons/index.js +32 -0
  51. package/dist/assets/icons/indicatorCheck.d.ts +2 -0
  52. package/dist/assets/icons/indicatorCheck.js +5 -0
  53. package/dist/assets/icons/indicatorProfile.d.ts +2 -0
  54. package/dist/assets/icons/indicatorProfile.js +4 -0
  55. package/dist/assets/icons/indicatorProposal.d.ts +2 -0
  56. package/dist/assets/icons/indicatorProposal.js +4 -0
  57. package/dist/assets/icons/indicatorRound.d.ts +2 -0
  58. package/dist/assets/icons/indicatorRound.js +4 -0
  59. package/dist/assets/icons/indicatorSafety.d.ts +2 -0
  60. package/dist/assets/icons/indicatorSafety.js +5 -0
  61. package/dist/assets/icons/information.d.ts +2 -0
  62. package/dist/assets/icons/information.js +7 -0
  63. package/dist/assets/icons/invoice.d.ts +2 -0
  64. package/dist/assets/icons/invoice.js +4 -0
  65. package/dist/assets/icons/legal.d.ts +2 -0
  66. package/dist/assets/icons/legal.js +5 -0
  67. package/dist/assets/icons/love.d.ts +2 -0
  68. package/dist/assets/icons/love.js +4 -0
  69. package/dist/assets/icons/plus.d.ts +2 -0
  70. package/dist/assets/icons/plus.js +3 -0
  71. package/dist/assets/icons/roundQuestionMark.d.ts +2 -0
  72. package/dist/assets/icons/roundQuestionMark.js +3 -0
  73. package/dist/assets/icons/safe.d.ts +2 -0
  74. package/dist/assets/icons/safe.js +5 -0
  75. package/dist/assets/icons/share.d.ts +2 -0
  76. package/dist/assets/icons/share.js +5 -0
  77. package/dist/assets/icons/simulation.d.ts +2 -0
  78. package/dist/assets/icons/simulation.js +5 -0
  79. package/dist/assets/icons/trash.d.ts +2 -0
  80. package/dist/assets/icons/trash.js +5 -0
  81. package/dist/assets/icons/whatsapp.d.ts +2 -0
  82. package/dist/assets/icons/whatsapp.js +4 -0
  83. package/dist/components/autocomplete-input/autocompleteInput.component.d.ts +11 -0
  84. package/dist/components/autocomplete-input/autocompleteInput.component.js +55 -0
  85. package/dist/components/autocomplete-input/autocompleteInput.styled.d.ts +24 -0
  86. package/dist/components/autocomplete-input/autocompleteInput.styled.js +89 -0
  87. package/dist/components/autocomplete-input/index.d.ts +1 -0
  88. package/dist/components/autocomplete-input/index.js +1 -0
  89. package/dist/components/button/button.component.d.ts +4 -0
  90. package/dist/components/button/button.component.js +16 -0
  91. package/dist/components/button/button.styled.d.ts +16 -0
  92. package/dist/components/button/button.styled.js +113 -0
  93. package/dist/components/button/index.d.ts +2 -0
  94. package/dist/components/button/index.js +2 -0
  95. package/dist/components/card/card.component.d.ts +7 -0
  96. package/dist/components/card/card.component.js +17 -0
  97. package/dist/components/card/card.styled.d.ts +6 -0
  98. package/dist/components/card/card.styled.js +19 -0
  99. package/dist/components/card/index.d.ts +1 -0
  100. package/dist/components/card/index.js +1 -0
  101. package/dist/components/checkbox/checkbox.component.d.ts +6 -0
  102. package/dist/components/checkbox/checkbox.component.js +25 -0
  103. package/dist/components/checkbox/checkbox.styled.d.ts +7 -0
  104. package/dist/components/checkbox/checkbox.styled.js +50 -0
  105. package/dist/components/checkbox/index.d.ts +1 -0
  106. package/dist/components/checkbox/index.js +1 -0
  107. package/dist/components/code-input/codeInput.component.d.ts +8 -0
  108. package/dist/components/code-input/codeInput.component.js +58 -0
  109. package/dist/components/code-input/codeInput.styled.d.ts +2 -0
  110. package/dist/components/code-input/codeInput.styled.js +26 -0
  111. package/dist/components/code-input/index.d.ts +1 -0
  112. package/dist/components/code-input/index.js +1 -0
  113. package/dist/components/disclaimer/disclaimer.component.d.ts +10 -0
  114. package/dist/components/disclaimer/disclaimer.component.js +12 -0
  115. package/dist/components/disclaimer/disclaimer.styled.d.ts +11 -0
  116. package/dist/components/disclaimer/disclaimer.styled.js +21 -0
  117. package/dist/components/disclaimer/index.d.ts +1 -0
  118. package/dist/components/disclaimer/index.js +1 -0
  119. package/dist/components/dropzone/dropzone.component.d.ts +26 -0
  120. package/dist/components/dropzone/dropzone.component.js +65 -0
  121. package/dist/components/dropzone/dropzone.styled.d.ts +9 -0
  122. package/dist/components/dropzone/dropzone.styled.js +43 -0
  123. package/dist/components/dropzone/index.d.ts +1 -0
  124. package/dist/components/dropzone/index.js +1 -0
  125. package/dist/components/feedback-input/feedbackInput.component.d.ts +8 -0
  126. package/dist/components/feedback-input/feedbackInput.component.js +17 -0
  127. package/dist/components/feedback-input/feedbackInput.styled.d.ts +6 -0
  128. package/dist/components/feedback-input/feedbackInput.styled.js +22 -0
  129. package/dist/components/feedback-input/index.d.ts +1 -0
  130. package/dist/components/feedback-input/index.js +1 -0
  131. package/dist/components/floating-footer/floatingFooter.styled.d.ts +1 -0
  132. package/dist/components/floating-footer/floatingFooter.styled.js +9 -0
  133. package/dist/components/floating-footer/index.d.ts +1 -0
  134. package/dist/components/floating-footer/index.js +1 -0
  135. package/dist/components/grid/grid.component.d.ts +11 -0
  136. package/dist/components/grid/grid.component.js +39 -0
  137. package/dist/components/grid/grid.styled.d.ts +22 -0
  138. package/dist/components/grid/grid.styled.js +38 -0
  139. package/dist/components/grid/index.d.ts +1 -0
  140. package/dist/components/grid/index.js +1 -0
  141. package/dist/components/horizontal-timeline/horizontalTimeline.component.d.ts +8 -0
  142. package/dist/components/horizontal-timeline/horizontalTimeline.component.js +26 -0
  143. package/dist/components/horizontal-timeline/horizontalTimeline.styled.d.ts +10 -0
  144. package/dist/components/horizontal-timeline/horizontalTimeline.styled.js +43 -0
  145. package/dist/components/horizontal-timeline/index.d.ts +1 -0
  146. package/dist/components/horizontal-timeline/index.js +1 -0
  147. package/dist/components/index.d.ts +27 -0
  148. package/dist/components/index.js +27 -0
  149. package/dist/components/large-selector/index.d.ts +2 -0
  150. package/dist/components/large-selector/index.js +2 -0
  151. package/dist/components/large-selector/largeSelector.component.d.ts +7 -0
  152. package/dist/components/large-selector/largeSelector.component.js +9 -0
  153. package/dist/components/large-selector/largeSelector.styled.d.ts +6 -0
  154. package/dist/components/large-selector/largeSelector.styled.js +34 -0
  155. package/dist/components/link/index.d.ts +1 -0
  156. package/dist/components/link/index.js +1 -0
  157. package/dist/components/link/link.component.d.ts +4 -0
  158. package/dist/components/link/link.component.js +17 -0
  159. package/dist/components/link/link.styled.d.ts +1 -0
  160. package/dist/components/link/link.styled.js +7 -0
  161. package/dist/components/list/index.d.ts +1 -0
  162. package/dist/components/list/index.js +1 -0
  163. package/dist/components/list/list.component.d.ts +8 -0
  164. package/dist/components/list/list.component.js +22 -0
  165. package/dist/components/list/list.styled.d.ts +2 -0
  166. package/dist/components/list/list.styled.js +8 -0
  167. package/dist/components/loading/index.d.ts +1 -0
  168. package/dist/components/loading/index.js +1 -0
  169. package/dist/components/loading/loading.styled.d.ts +2 -0
  170. package/dist/components/loading/loading.styled.js +48 -0
  171. package/dist/components/modal/index.d.ts +1 -0
  172. package/dist/components/modal/index.js +1 -0
  173. package/dist/components/modal/modal.component.d.ts +9 -0
  174. package/dist/components/modal/modal.component.js +35 -0
  175. package/dist/components/modal/modal.styled.d.ts +9 -0
  176. package/dist/components/modal/modal.styled.js +61 -0
  177. package/dist/components/multiselect/index.d.ts +1 -0
  178. package/dist/components/multiselect/index.js +1 -0
  179. package/dist/components/multiselect/multiselect.component.d.ts +12 -0
  180. package/dist/components/multiselect/multiselect.component.js +48 -0
  181. package/dist/components/multiselect/multiselect.style.d.ts +24 -0
  182. package/dist/components/multiselect/multiselect.style.js +93 -0
  183. package/dist/components/page-title/index.d.ts +1 -0
  184. package/dist/components/page-title/index.js +1 -0
  185. package/dist/components/page-title/pageTitle.component.d.ts +2 -0
  186. package/dist/components/page-title/pageTitle.component.js +6 -0
  187. package/dist/components/page-title/pageTitle.styled.d.ts +2 -0
  188. package/dist/components/page-title/pageTitle.styled.js +12 -0
  189. package/dist/components/radio/index.d.ts +1 -0
  190. package/dist/components/radio/index.js +1 -0
  191. package/dist/components/radio/radio.component.d.ts +12 -0
  192. package/dist/components/radio/radio.component.js +15 -0
  193. package/dist/components/radio/radio.styled.d.ts +9 -0
  194. package/dist/components/radio/radio.styled.js +55 -0
  195. package/dist/components/range-input/index.d.ts +1 -0
  196. package/dist/components/range-input/index.js +1 -0
  197. package/dist/components/range-input/rangeInput.component.d.ts +11 -0
  198. package/dist/components/range-input/rangeInput.component.js +24 -0
  199. package/dist/components/range-input/rangeInput.styled.d.ts +13 -0
  200. package/dist/components/range-input/rangeInput.styled.js +59 -0
  201. package/dist/components/select/index.d.ts +1 -0
  202. package/dist/components/select/index.js +1 -0
  203. package/dist/components/select/select.component.d.ts +13 -0
  204. package/dist/components/select/select.component.js +55 -0
  205. package/dist/components/select/select.styled.d.ts +26 -0
  206. package/dist/components/select/select.styled.js +86 -0
  207. package/dist/components/table/index.d.ts +1 -0
  208. package/dist/components/table/index.js +1 -0
  209. package/dist/components/table/table.component.d.ts +11 -0
  210. package/dist/components/table/table.component.js +39 -0
  211. package/dist/components/table/table.styled.d.ts +19 -0
  212. package/dist/components/table/table.styled.js +42 -0
  213. package/dist/components/text-area-input/index.d.ts +1 -0
  214. package/dist/components/text-area-input/index.js +1 -0
  215. package/dist/components/text-area-input/textAreaInput.component.d.ts +9 -0
  216. package/dist/components/text-area-input/textAreaInput.component.js +28 -0
  217. package/dist/components/text-area-input/textAreaInput.styled.d.ts +11 -0
  218. package/dist/components/text-area-input/textAreaInput.styled.js +47 -0
  219. package/dist/components/text-input/index.d.ts +1 -0
  220. package/dist/components/text-input/index.js +1 -0
  221. package/dist/components/text-input/textInput.component.d.ts +19 -0
  222. package/dist/components/text-input/textInput.component.js +84 -0
  223. package/dist/components/text-input/textInput.styled.d.ts +17 -0
  224. package/dist/components/text-input/textInput.styled.js +56 -0
  225. package/dist/components/tooltip/index.d.ts +1 -0
  226. package/dist/components/tooltip/index.js +1 -0
  227. package/dist/components/tooltip/tooltip.component.d.ts +7 -0
  228. package/dist/components/tooltip/tooltip.component.js +8 -0
  229. package/dist/components/tooltip/tooltip.styled.d.ts +7 -0
  230. package/dist/components/tooltip/tooltip.styled.js +29 -0
  231. package/dist/components/typography/index.d.ts +1 -0
  232. package/dist/components/typography/index.js +1 -0
  233. package/dist/components/typography/typography.styled.d.ts +11 -0
  234. package/dist/components/typography/typography.styled.js +39 -0
  235. package/dist/components/vertical-timeline/index.d.ts +1 -0
  236. package/dist/components/vertical-timeline/index.js +1 -0
  237. package/dist/components/vertical-timeline/verticalTimeline.component.d.ts +12 -0
  238. package/dist/components/vertical-timeline/verticalTimeline.component.js +16 -0
  239. package/dist/components/vertical-timeline/verticalTimeline.styled.d.ts +9 -0
  240. package/dist/components/vertical-timeline/verticalTimeline.styled.js +33 -0
  241. package/dist/constants/breakpoints.d.ts +6 -0
  242. package/dist/constants/breakpoints.js +6 -0
  243. package/dist/constants/colors.d.ts +23 -0
  244. package/dist/constants/colors.js +23 -0
  245. package/dist/constants/fonts.d.ts +1 -0
  246. package/dist/constants/fonts.js +75 -0
  247. package/dist/constants/index.d.ts +6 -0
  248. package/dist/constants/index.js +6 -0
  249. package/dist/constants/latinAmericaOptions.d.ts +2 -0
  250. package/dist/constants/latinAmericaOptions.js +78 -0
  251. package/dist/constants/reset.d.ts +1 -0
  252. package/dist/constants/reset.js +90 -0
  253. package/dist/constants/styles.d.ts +6 -0
  254. package/dist/constants/styles.js +17 -0
  255. package/dist/helpers/currency.d.ts +2 -0
  256. package/dist/helpers/currency.js +24 -0
  257. package/dist/helpers/index.d.ts +3 -0
  258. package/dist/helpers/index.js +3 -0
  259. package/dist/helpers/number.d.ts +2 -0
  260. package/dist/helpers/number.js +6 -0
  261. package/dist/helpers/percentage.d.ts +2 -0
  262. package/dist/helpers/percentage.js +31 -0
  263. package/dist/index.d.ts +4 -0
  264. package/dist/index.js +4 -0
  265. package/dist/types/index.d.ts +1 -0
  266. package/dist/types/index.js +1 -0
  267. 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,7 @@
1
+ import React from "react";
2
+ interface TooltipProps {
3
+ content: string | JSX.Element;
4
+ maxWidth?: number;
5
+ }
6
+ export declare const Tooltip: React.FunctionComponent<TooltipProps>;
7
+ export {};
@@ -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,6 @@
1
+ export declare const breakpoints: {
2
+ xs: string;
3
+ md: string;
4
+ lg: string;
5
+ xl: string;
6
+ };
@@ -0,0 +1,6 @@
1
+ export const breakpoints = {
2
+ xs: "320px",
3
+ md: "768px",
4
+ lg: "1024px",
5
+ xl: "1280px",
6
+ };
@@ -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,6 @@
1
+ export * from "./colors";
2
+ export * from "./fonts";
3
+ export * from "./reset";
4
+ export * from "./latinAmericaOptions";
5
+ export * from "./breakpoints";
6
+ export * from "./styles";
@@ -0,0 +1,6 @@
1
+ export * from "./colors";
2
+ export * from "./fonts";
3
+ export * from "./reset";
4
+ export * from "./latinAmericaOptions";
5
+ export * from "./breakpoints";
6
+ export * from "./styles";
@@ -0,0 +1,2 @@
1
+ import { Option } from "../types";
2
+ export declare const latinAmericaCountriesOptions: Array<Option>;
@@ -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,2 @@
1
+ import type { ValueInterceptor } from "../components";
2
+ export declare const currencyInterceptors: ValueInterceptor;
@@ -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
+ };
@@ -0,0 +1,3 @@
1
+ export * from "./currency";
2
+ export * from "./number";
3
+ export * from "./percentage";
@@ -0,0 +1,3 @@
1
+ export * from "./currency";
2
+ export * from "./number";
3
+ export * from "./percentage";
@@ -0,0 +1,2 @@
1
+ import type { ValueInterceptor } from "../components";
2
+ export declare const onlyNumbersInterceptors: ValueInterceptor;