@granto-umbrella/umbrella-components 3.0.34 → 3.0.37

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 (158) hide show
  1. package/README.md +165 -27
  2. package/dist/umbrella-components.css +1 -1
  3. package/dist/umbrella-components.es.js +33627 -28792
  4. package/dist/umbrella-components.umd.js +1169 -1908
  5. package/package.json +136 -106
  6. package/src/assets.d.ts +19 -19
  7. package/src/components/atoms/Badge/Badge.styles.ts +88 -86
  8. package/src/components/atoms/Badge/Badge.tsx +42 -44
  9. package/src/components/atoms/Badge/Badge.types.ts +15 -15
  10. package/src/components/atoms/Breadcrumb/Breadcrumb.styles.ts +43 -43
  11. package/src/components/atoms/Breadcrumb/Breadcrumb.tsx +46 -48
  12. package/src/components/atoms/Breadcrumb/Breadcrumb.types.ts +12 -12
  13. package/src/components/atoms/Button/Button.styles.ts +279 -280
  14. package/src/components/atoms/Button/Button.tsx +76 -76
  15. package/src/components/atoms/Button/Button.types.ts +28 -28
  16. package/src/components/atoms/Button/index.ts +1 -1
  17. package/src/components/atoms/Checkbox/Checkbox.styles.ts +72 -72
  18. package/src/components/atoms/Checkbox/Checkbox.tsx +36 -36
  19. package/src/components/atoms/Checkbox/Checkbox.types.ts +14 -14
  20. package/src/components/atoms/Checkbox/CheckboxGroup.tsx +30 -30
  21. package/src/components/atoms/Checkbox/CheckboxSelectAll.tsx +32 -32
  22. package/src/components/atoms/CodeInput/CodeInput.styles.tsx +38 -39
  23. package/src/components/atoms/CodeInput/CodeInput.tsx +13 -19
  24. package/src/components/atoms/CodeInput/CodeInput.types.ts +3 -3
  25. package/src/components/atoms/CodeInput/index.tsx +1 -1
  26. package/src/components/atoms/DropDownMenu/DropdownMenu.tsx +48 -48
  27. package/src/components/atoms/DropDownMenu/DropdownMenu.types.ts +15 -15
  28. package/src/components/atoms/DropDownMenu/index.tsx +5 -2
  29. package/src/components/atoms/ErrorMessage/ErrorMessage.styles.tsx +28 -28
  30. package/src/components/atoms/ErrorMessage/ErrorMessage.tsx +12 -12
  31. package/src/components/atoms/ErrorMessage/ErrorMessage.types.ts +6 -6
  32. package/src/components/atoms/ErrorMessage/index.tsx +1 -1
  33. package/src/components/atoms/Footer/Footer.styles.tsx +22 -22
  34. package/src/components/atoms/Footer/Footer.tsx +9 -9
  35. package/src/components/atoms/Footer/Footer.types.tsx +5 -5
  36. package/src/components/atoms/Footer/index.tsx +1 -1
  37. package/src/components/atoms/GenericContainer/GenericContainer.styles.tsx +21 -21
  38. package/src/components/atoms/GenericContainer/GenericContainer.tsx +9 -9
  39. package/src/components/atoms/GenericContainer/GenericContainer.types.ts +5 -5
  40. package/src/components/atoms/GenericContainer/index.tsx +1 -1
  41. package/src/components/atoms/Icon/Icon.styles.ts +11 -11
  42. package/src/components/atoms/Icon/Icon.tsx +22 -22
  43. package/src/components/atoms/Icon/Icon.types.ts +6 -6
  44. package/src/components/atoms/Icon/index.ts +1 -1
  45. package/src/components/atoms/Input/Input.styles.ts +106 -101
  46. package/src/components/atoms/Input/index.ts +1 -1
  47. package/src/components/atoms/Label/Label.tsx +16 -16
  48. package/src/components/atoms/Loading/Loading.styles.tsx +25 -25
  49. package/src/components/atoms/Loading/Loading.tsx +8 -8
  50. package/src/components/atoms/LogoContainer/LogoContainer.Types.tsx +5 -5
  51. package/src/components/atoms/LogoContainer/LogoContainer.styles.tsx +11 -11
  52. package/src/components/atoms/LogoContainer/LogoContainer.tsx +11 -11
  53. package/src/components/atoms/LogoContainer/index.tsx +1 -1
  54. package/src/components/atoms/ModalAviso/ModalAviso.styles.tsx +56 -56
  55. package/src/components/atoms/ModalAviso/ModalAviso.tsx +43 -37
  56. package/src/components/atoms/ModalAviso/ModalAviso.types.ts +5 -5
  57. package/src/components/atoms/ModalAviso/index.tsx +1 -1
  58. package/src/components/atoms/MultiSelect/MultiSelect.styles.tsx +100 -92
  59. package/src/components/atoms/MultiSelect/MultiSelect.tsx +346 -346
  60. package/src/components/atoms/MultiSelect/MultiSelect.types.ts +38 -38
  61. package/src/components/atoms/Pill/Pill.styles.ts +46 -46
  62. package/src/components/atoms/Pill/Pill.tsx +35 -36
  63. package/src/components/atoms/Pill/Pill.types.ts +14 -18
  64. package/src/components/atoms/RadioButton/RadioButton.styles.ts +44 -43
  65. package/src/components/atoms/RadioButton/RadioButton.tsx +31 -31
  66. package/src/components/atoms/ResendLink/ResendLink.styles.tsx +19 -20
  67. package/src/components/atoms/ResendLink/ResendLink.tsx +21 -21
  68. package/src/components/atoms/ResendLink/ResendLink.types.ts +8 -9
  69. package/src/components/atoms/ResendLink/index.tsx +1 -2
  70. package/src/components/atoms/Select/Select.styles.ts +153 -149
  71. package/src/components/atoms/Select/Select.tsx +52 -43
  72. package/src/components/atoms/Select/index.tsx +1 -1
  73. package/src/components/atoms/Subtitle/Subtitle.tsx +7 -7
  74. package/src/components/atoms/Subtitle/Subtitle.types.ts +5 -5
  75. package/src/components/atoms/Subtitle/index.tsx +1 -1
  76. package/src/components/atoms/Switch/Switch.tsx +25 -25
  77. package/src/components/atoms/TabBar/TabBar.styles.tsx +64 -57
  78. package/src/components/atoms/TabBar/index.tsx +2 -2
  79. package/src/components/atoms/Text/Text.styles.tsx +35 -35
  80. package/src/components/atoms/Text/Text.tsx +32 -31
  81. package/src/components/atoms/Text/Text.types.ts +8 -8
  82. package/src/components/atoms/Text/index.ts +1 -1
  83. package/src/components/atoms/Textarea/Textarea.styles.ts +52 -52
  84. package/src/components/atoms/Textarea/Textarea.tsx +31 -31
  85. package/src/components/atoms/Title/Title.tsx +7 -7
  86. package/src/components/atoms/Title/Title.types.ts +5 -5
  87. package/src/components/atoms/Title/index.tsx +1 -1
  88. package/src/components/molecules/BannerAjuda/BannerAjuda.styles.tsx +9 -9
  89. package/src/components/molecules/BannerAjuda/BannerAjuda.tsx +18 -19
  90. package/src/components/molecules/BannerAjuda/index.tsx +1 -1
  91. package/src/components/molecules/ButtonGroup/ButtonGroup.styles.ts +10 -10
  92. package/src/components/molecules/ButtonGroup/ButtonGroup.types.ts +22 -22
  93. package/src/components/molecules/Calendar/Calendar.styles.ts +143 -143
  94. package/src/components/molecules/Calendar/Calendar.tsx +31 -31
  95. package/src/components/molecules/CodeInputContainer/CodeInputContainer.styles.tsx +7 -7
  96. package/src/components/molecules/CodeInputContainer/CodeInputContainer.types.ts +13 -13
  97. package/src/components/molecules/CodeInputContainer/index.tsx +1 -3
  98. package/src/components/molecules/ExcludeModal/ExcludeModal.styles.tsx +123 -118
  99. package/src/components/molecules/ExcludeModal/ExcludeModal.tsx +48 -48
  100. package/src/components/molecules/ExcludeModal/ExcludeModal.types.ts +10 -10
  101. package/src/components/molecules/ExcludeModal/index.tsx +1 -1
  102. package/src/components/molecules/FieldSelector/FieldSelector.styles.ts +59 -0
  103. package/src/components/molecules/FieldSelector/FieldSelector.tsx +167 -0
  104. package/src/components/molecules/HighlightsCard/HighlightsCard.styles.tsx +67 -68
  105. package/src/components/molecules/HighlightsCard/HighlightsCard.tsx +35 -26
  106. package/src/components/molecules/HighlightsCard/HighlightsCard.types.ts +10 -10
  107. package/src/components/molecules/HighlightsCard/index.tsx +1 -1
  108. package/src/components/molecules/InsuranceCard/InsuranceCard.styles.tsx +237 -237
  109. package/src/components/molecules/InsuranceCard/index.tsx +1 -1
  110. package/src/components/molecules/PieChartComponent/PieChartComponent.styles.tsx +7 -8
  111. package/src/components/molecules/PieChartComponent/PieChartComponent.tsx +70 -73
  112. package/src/components/molecules/PieChartComponent/PieChartComponent.types.ts +11 -11
  113. package/src/components/molecules/PieChartComponent/index.tsx +1 -1
  114. package/src/components/molecules/Popover/Popover.styles.ts +66 -65
  115. package/src/components/molecules/Popover/Popover.tsx +23 -23
  116. package/src/components/molecules/RadioBoxGroup/RadioBoxGroup.styles.ts +11 -11
  117. package/src/components/molecules/RadioBoxGroup/RadioBoxGroup.tsx +43 -43
  118. package/src/components/molecules/RadioGroupField/RadioGroupField.styles.tsx +65 -64
  119. package/src/components/molecules/RadioGroupField/RadioGroupField.tsx +69 -69
  120. package/src/components/molecules/RadioGroupField/RadioGroupField.types.ts +17 -17
  121. package/src/components/molecules/RadioGroupField/index.tsx +1 -1
  122. package/src/components/molecules/RefuseModal/RefuseModal.styles.tsx +139 -139
  123. package/src/components/molecules/RefuseModal/RefuseModal.tsx +92 -76
  124. package/src/components/molecules/RefuseModal/RefuseModal.types.ts +15 -15
  125. package/src/components/molecules/RefuseModal/index.tsx +2 -2
  126. package/src/components/molecules/ResultsChart/ResultsChart.tsx +23 -19
  127. package/src/components/molecules/ResultsChart/ResultsChart.types.ts +3 -3
  128. package/src/components/molecules/ResultsChart/index.tsx +2 -2
  129. package/src/components/molecules/TabToggle/TabToggle.styles.ts +54 -54
  130. package/src/components/molecules/TabToggle/TabToggle.tsx +35 -35
  131. package/src/components/organisms/AlertDialog/AlertDialog.styles.tsx +61 -61
  132. package/src/components/organisms/AlertDialog/AlertDialog.tsx +70 -70
  133. package/src/components/organisms/Dialog/Dialog.styles.ts +107 -106
  134. package/src/components/organisms/Dialog/Dialog.tsx +69 -69
  135. package/src/components/organisms/DonutEmissionsChart/DonutEmissionsChart.styles.tsx +113 -113
  136. package/src/components/organisms/DonutEmissionsChart/DonutEmissionsChart.tsx +75 -71
  137. package/src/components/organisms/DonutEmissionsChart/DonutEmissionsChart.types.ts +9 -9
  138. package/src/components/organisms/DonutEmissionsChart/index.tsx +5 -2
  139. package/src/components/organisms/ExportExcelModal/ExportExcelModal.styles.ts +59 -0
  140. package/src/components/organisms/ExportExcelModal/ExportExcelModal.tsx +80 -0
  141. package/src/components/organisms/Form/Form.styles.ts +35 -35
  142. package/src/components/organisms/Form/Form.tsx +160 -160
  143. package/src/components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes.styles.tsx +115 -114
  144. package/src/components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes.tsx +89 -89
  145. package/src/components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes.types.ts +16 -16
  146. package/src/components/organisms/ListagemUltimasEmissoes/index.tsx +1 -1
  147. package/src/components/organisms/Navbar/Navbar.styles.tsx +243 -243
  148. package/src/global.d.ts +9 -9
  149. package/src/index.ts +4 -0
  150. package/src/lib/utils.ts +6 -6
  151. package/src/styles/tokens/borders.ts +17 -17
  152. package/src/styles/tokens/index.tsx +6 -6
  153. package/src/styles/tokens/radius.ts +22 -22
  154. package/src/styles/tokens/shadows.ts +22 -22
  155. package/src/styles/tokens/sizes.ts +60 -64
  156. package/src/types/radius.types.ts +1 -1
  157. package/src/types/shadows.types.ts +1 -1
  158. package/src/utils/renderHighlightsCard.tsx +21 -0
@@ -1,35 +1,35 @@
1
- import {
2
- semanticColors,
3
- typographyTokens
4
- } from '../../../styles/tokens';
5
- import styled from 'styled-components';
6
-
7
- export const StyledText = styled.p<{
8
- $size: string;
9
- $weight: string;
10
- $color: string;
11
- $variant?: string;
12
- }>`
13
- font-size: ${({ $size }) =>
14
- $size === 'lg'
15
- ? typographyTokens.fontSizes.bodyL
16
- : $size === 'md'
17
- ? typographyTokens.fontSizes.bodyM
18
- : typographyTokens.fontSizes.bodyS};
19
- font-weight: ${({ $weight }) => ($weight === 'bold' ? typographyTokens.fontWeights.bold : typographyTokens.fontWeights.regular)};
20
- color: ${({ $color, $variant }) => {
21
- if ($variant) {
22
- switch ($variant) {
23
- case 'error':
24
- return semanticColors.danger.text.enabled;
25
- case 'success':
26
- return semanticColors.success.text.feedback.accent;
27
- case 'warning':
28
- return semanticColors.warning.text.feedback.strong;
29
- default:
30
- return $color;
31
- }
32
- }
33
- return $color || semanticColors.base.text;
34
- }};
35
- `;
1
+ import { semanticColors, typographyTokens } from '../../../styles/tokens';
2
+ import styled from 'styled-components';
3
+
4
+ export const StyledText = styled.p<{
5
+ $size: string;
6
+ $weight: string;
7
+ $color: string;
8
+ $variant?: string;
9
+ }>`
10
+ font-size: ${({ $size }) =>
11
+ $size === 'lg'
12
+ ? typographyTokens.fontSizes.bodyL
13
+ : $size === 'md'
14
+ ? typographyTokens.fontSizes.bodyM
15
+ : typographyTokens.fontSizes.bodyS};
16
+ font-weight: ${({ $weight }) =>
17
+ $weight === 'bold'
18
+ ? typographyTokens.fontWeights.bold
19
+ : typographyTokens.fontWeights.regular};
20
+ color: ${({ $color, $variant }) => {
21
+ if ($variant) {
22
+ switch ($variant) {
23
+ case 'error':
24
+ return semanticColors.danger.text.enabled;
25
+ case 'success':
26
+ return semanticColors.success.text.feedback.accent;
27
+ case 'warning':
28
+ return semanticColors.warning.text.feedback.strong;
29
+ default:
30
+ return $color;
31
+ }
32
+ }
33
+ return $color || semanticColors.base.text;
34
+ }};
35
+ `;
@@ -1,31 +1,32 @@
1
- import React from "react";
2
- import { StyledText } from "./Text.styles";
3
- import { TextProps } from "./Text.types";
4
- import { semanticColors } from "../../../styles/tokens";
5
-
6
- const Text: React.FC<TextProps> = ({
7
- children,
8
- size = "md",
9
- weight = "normal",
10
- color,
11
- testId,
12
- variant,
13
- }) => {
14
- // Define a cor padrão se não for fornecida
15
- const defaultColor = color || semanticColors.base.text;
16
-
17
- return (
18
- <StyledText
19
- data-testid={testId}
20
- id={testId}
21
- $size={size}
22
- $weight={weight}
23
- $color={defaultColor}
24
- $variant={variant}
25
- >
26
- {children}
27
- </StyledText>
28
- );
29
- };
30
-
31
- export default Text;
1
+ import React from 'react';
2
+ import { StyledText } from './Text.styles';
3
+
4
+ import { TextProps } from './Text.types';
5
+ import { semanticColors } from '../../../styles/tokens';
6
+
7
+ const Text: React.FC<TextProps> = ({
8
+ children,
9
+ size = 'md',
10
+ weight = 'normal',
11
+ color = 'black',
12
+ testId,
13
+ variant,
14
+ }) => {
15
+ // Define a cor padrão se não for fornecida
16
+ const defaultColor = color || semanticColors.base.text;
17
+
18
+ return (
19
+ <StyledText
20
+ data-testid={testId}
21
+ id={testId}
22
+ $size={size}
23
+ $weight={weight}
24
+ $color={defaultColor}
25
+ $variant={variant}
26
+ >
27
+ {children}
28
+ </StyledText>
29
+ );
30
+ };
31
+
32
+ export default Text;
@@ -1,8 +1,8 @@
1
- export interface TextProps {
2
- children: React.ReactNode;
3
- size?: "sm" | "md" | "lg";
4
- weight?: "normal" | "bold";
5
- color?: string;
6
- testId?: string;
7
- variant?: string;
8
- }
1
+ export interface TextProps {
2
+ children: React.ReactNode;
3
+ size?: 'sm' | 'md' | 'lg';
4
+ weight?: 'normal' | 'bold';
5
+ color?: string;
6
+ testId?: string;
7
+ variant?: string;
8
+ }
@@ -1 +1 @@
1
- export { default } from "./Text";
1
+ export { default } from './Text';
@@ -1,52 +1,52 @@
1
- import styled from "styled-components";
2
- import {
3
- semanticColors,
4
- semanticSizes,
5
- semanticRadius,
6
- typographyTokens,
7
- } from "../../../styles/tokens";
8
-
9
- export const TextareaWrapper = styled.div`
10
- display: flex;
11
- flex-direction: column;
12
- gap: ${semanticSizes.global.gap.sm};
13
- width: 100%;
14
- `;
15
-
16
- export const Label = styled.label`
17
- font-size: ${typographyTokens.fontSizes.labelS};
18
- color: ${semanticColors.global.text.subtitle.enabled};
19
- font-weight: 500;
20
- `;
21
-
22
- export const StyledTextarea = styled.textarea`
23
- display: flex;
24
- padding: ${semanticSizes.global.padding.lg};
25
- font-size: ${typographyTokens.fontSizes.bodyM};
26
- color: ${semanticColors.base.text};
27
- background: ${semanticColors.base.background};
28
- border: 1px solid ${semanticColors.global.border.medium};
29
- border-radius: ${semanticRadius.global.radius.md};
30
- resize: vertical;
31
- transition: border-color 0.2s;
32
-
33
- &::placeholder {
34
- color: ${semanticColors.global.text.subtitle.enabled};
35
- }
36
-
37
- &:focus {
38
- border-color: ${semanticColors.branding.border.enabled};
39
- box-shadow: 0 0 0 2px ${semanticColors.branding.surface.hover};
40
- outline: none;
41
- }
42
-
43
- &:disabled {
44
- background-color: ${semanticColors.global.surface.disabled};
45
- cursor: not-allowed;
46
- }
47
- `;
48
-
49
- export const SupportingText = styled.span`
50
- font-size: ${typographyTokens.fontSizes.labelS};
51
- color: ${semanticColors.global.text.subtitle.enabled};
52
- `;
1
+ import styled from 'styled-components';
2
+ import {
3
+ semanticColors,
4
+ semanticSizes,
5
+ semanticRadius,
6
+ typographyTokens,
7
+ } from '../../../styles/tokens';
8
+
9
+ export const TextareaWrapper = styled.div`
10
+ display: flex;
11
+ flex-direction: column;
12
+ gap: ${semanticSizes.global.gap.sm};
13
+ width: 100%;
14
+ `;
15
+
16
+ export const Label = styled.label`
17
+ font-size: ${typographyTokens.fontSizes.labelS};
18
+ color: ${semanticColors.global.text.subtitle.enabled};
19
+ font-weight: 500;
20
+ `;
21
+
22
+ export const StyledTextarea = styled.textarea`
23
+ display: flex;
24
+ padding: ${semanticSizes.global.padding.lg};
25
+ font-size: ${typographyTokens.fontSizes.bodyM};
26
+ color: ${semanticColors.base.text};
27
+ background: ${semanticColors.base.background};
28
+ border: 1px solid ${semanticColors.global.border.medium};
29
+ border-radius: ${semanticRadius.global.radius.md};
30
+ resize: vertical;
31
+ transition: border-color 0.2s;
32
+
33
+ &::placeholder {
34
+ color: ${semanticColors.global.text.subtitle.enabled};
35
+ }
36
+
37
+ &:focus {
38
+ border-color: ${semanticColors.branding.border.enabled};
39
+ box-shadow: 0 0 0 2px ${semanticColors.branding.surface.hover};
40
+ outline: none;
41
+ }
42
+
43
+ &:disabled {
44
+ background-color: ${semanticColors.global.surface.disabled};
45
+ cursor: not-allowed;
46
+ }
47
+ `;
48
+
49
+ export const SupportingText = styled.span`
50
+ font-size: ${typographyTokens.fontSizes.labelS};
51
+ color: ${semanticColors.global.text.subtitle.enabled};
52
+ `;
@@ -1,31 +1,31 @@
1
- import React from "react";
2
- import { TextareaProps } from "./Textarea.types";
3
- import {
4
- TextareaWrapper,
5
- Label,
6
- StyledTextarea,
7
- SupportingText,
8
- } from "./Textarea.styles";
9
-
10
- const Textarea: React.FC<TextareaProps> = ({
11
- label,
12
- info,
13
- supportingText,
14
- testId,
15
- ...props
16
- }) => {
17
- return (
18
- <TextareaWrapper>
19
- {label && (
20
- <Label>
21
- {label}
22
- {info}
23
- </Label>
24
- )}
25
- <StyledTextarea data-testid={testId} id={testId} {...props} />
26
- {supportingText && <SupportingText>{supportingText}</SupportingText>}
27
- </TextareaWrapper>
28
- );
29
- };
30
-
31
- export default Textarea;
1
+ import React from 'react';
2
+ import { TextareaProps } from './Textarea.types';
3
+ import {
4
+ TextareaWrapper,
5
+ Label,
6
+ StyledTextarea,
7
+ SupportingText,
8
+ } from './Textarea.styles';
9
+
10
+ const Textarea: React.FC<TextareaProps> = ({
11
+ label,
12
+ info,
13
+ supportingText,
14
+ testId,
15
+ ...props
16
+ }) => {
17
+ return (
18
+ <TextareaWrapper>
19
+ {label && (
20
+ <Label>
21
+ {label}
22
+ {info}
23
+ </Label>
24
+ )}
25
+ <StyledTextarea data-testid={testId} id={testId} {...props} />
26
+ {supportingText && <SupportingText>{supportingText}</SupportingText>}
27
+ </TextareaWrapper>
28
+ );
29
+ };
30
+
31
+ export default Textarea;
@@ -1,7 +1,7 @@
1
- import type React from "react"
2
- import { Container } from "./Title.styles"
3
- import type { TitleProps } from "./Title.types"
4
-
5
- export const Title: React.FC<TitleProps> = ({ children }) => {
6
- return <Container>{children}</Container>
7
- }
1
+ import type React from 'react';
2
+ import { Container } from './Title.styles';
3
+ import type { TitleProps } from './Title.types';
4
+
5
+ export const Title: React.FC<TitleProps> = ({ children }) => {
6
+ return <Container>{children}</Container>;
7
+ };
@@ -1,5 +1,5 @@
1
- import type React from "react"
2
-
3
- export interface TitleProps {
4
- children: React.ReactNode
5
- }
1
+ import type React from 'react';
2
+
3
+ export interface TitleProps {
4
+ children: React.ReactNode;
5
+ }
@@ -1 +1 @@
1
- export { Title } from "./Title"
1
+ export { Title } from './Title';
@@ -1,9 +1,9 @@
1
- import styled from "styled-components";
2
- import { semanticRadius, semanticColors } from "../../../styles/tokens";
3
-
4
- export const BannerWrapper = styled.div`
5
- border-radius: ${semanticRadius.global.radius.md2};
6
- text-align: center;
7
- color: ${semanticColors.base.background};
8
- cursor: pointer;
9
- `;
1
+ import styled from 'styled-components';
2
+ import { semanticRadius, semanticColors } from '../../../styles/tokens';
3
+
4
+ export const BannerWrapper = styled.div`
5
+ border-radius: ${semanticRadius.global.radius.md2};
6
+ text-align: center;
7
+ color: ${semanticColors.base.background};
8
+ cursor: pointer;
9
+ `;
@@ -1,19 +1,18 @@
1
- import React from "react";
2
- import { BannerWrapper } from "./BannerAjuda.styles";
3
- import { BannerAjudaProps } from "./BannerAjuda.types";
4
- import banner_contato from "../../../assets/_banner_contato.png";
5
-
6
-
7
- const BannerAjuda: React.FC<BannerAjudaProps> = ({
8
- onClick,
9
- imageSrc = banner_contato,
10
- alt = "Banner de ajuda e contato"
11
- }) => {
12
- return (
13
- <BannerWrapper onClick={onClick}>
14
- <img src={imageSrc} alt={alt} />
15
- </BannerWrapper>
16
- );
17
- };
18
-
19
- export { BannerAjuda };
1
+ import React from 'react';
2
+ import { BannerWrapper } from './BannerAjuda.styles';
3
+ import { BannerAjudaProps } from './BannerAjuda.types';
4
+ import banner_contato from '../../../assets/_banner_contato.png';
5
+
6
+ const BannerAjuda: React.FC<BannerAjudaProps> = ({
7
+ onClick,
8
+ imageSrc = banner_contato,
9
+ alt = 'Banner de ajuda e contato',
10
+ }) => {
11
+ return (
12
+ <BannerWrapper onClick={onClick}>
13
+ <img src={imageSrc} alt={alt} />
14
+ </BannerWrapper>
15
+ );
16
+ };
17
+
18
+ export { BannerAjuda };
@@ -1 +1 @@
1
- export { BannerAjuda } from "./BannerAjuda";
1
+ export { BannerAjuda } from './BannerAjuda';
@@ -1,10 +1,10 @@
1
- import { semanticSizes } from "../../../styles/tokens";
2
- import styled from "styled-components";
3
-
4
- export const ButtonGroupContainer = styled.div<{ $orientation: string }>`
5
- display: flex;
6
- flex-direction: ${({ $orientation }) =>
7
- $orientation === "vertical" ? "column" : "row"};
8
- gap: ${semanticSizes.global.gap.md};
9
- align-items: center;
10
- `;
1
+ import { semanticSizes } from '../../../styles/tokens';
2
+ import styled from 'styled-components';
3
+
4
+ export const ButtonGroupContainer = styled.div<{ $orientation: string }>`
5
+ display: flex;
6
+ flex-direction: ${({ $orientation }) =>
7
+ $orientation === 'vertical' ? 'column' : 'row'};
8
+ gap: ${semanticSizes.global.gap.md};
9
+ align-items: center;
10
+ `;
@@ -1,22 +1,22 @@
1
- // ButtonGroup.types.ts
2
-
3
- export interface ButtonGroupProps {
4
- buttons: {
5
- label: string;
6
- variant?:
7
- | "primary"
8
- | "outline"
9
- | "danger"
10
- | "ghost"
11
- | "alert"
12
- | "danger-no-fill"
13
- | "accent-outline"
14
- | "accent-fill"
15
- | "secondary-outline"
16
- | "danger-fill";
17
- onClick?: () => void;
18
- leftIcon?: string;
19
- rightIcon?: string;
20
- }[];
21
- orientation?: "horizontal" | "vertical";
22
- }
1
+ // ButtonGroup.types.ts
2
+
3
+ export interface ButtonGroupProps {
4
+ buttons: {
5
+ label: string;
6
+ variant?:
7
+ | 'primary'
8
+ | 'outline'
9
+ | 'danger'
10
+ | 'ghost'
11
+ | 'alert'
12
+ | 'danger-no-fill'
13
+ | 'accent-outline'
14
+ | 'accent-fill'
15
+ | 'secondary-outline'
16
+ | 'danger-fill';
17
+ onClick?: () => void;
18
+ leftIcon?: string;
19
+ rightIcon?: string;
20
+ }[];
21
+ orientation?: 'horizontal' | 'vertical';
22
+ }