@granto-umbrella/umbrella-components 3.0.33 → 3.0.34
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/package.json +1 -1
- package/src/components/atoms/ErrorMessage/ErrorMessage.styles.tsx +6 -6
- package/src/components/atoms/Footer/Footer.styles.tsx +1 -1
- package/src/components/atoms/GenericContainer/GenericContainer.styles.tsx +6 -6
- package/src/components/atoms/Loading/Loading.styles.tsx +7 -5
- package/src/components/atoms/LogoContainer/LogoContainer.styles.tsx +4 -4
- package/src/components/atoms/ModalAviso/ModalAviso.styles.tsx +10 -9
- package/src/components/molecules/InsuranceCard/InsuranceCard.styles.tsx +1 -1
- package/src/components/organisms/Navbar/Navbar.styles.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import styled, { css } from
|
|
1
|
+
import styled, { css } from 'styled-components';
|
|
2
2
|
import {
|
|
3
3
|
semanticBorders,
|
|
4
4
|
semanticColors,
|
|
5
5
|
semanticSizes,
|
|
6
6
|
typographyTokens,
|
|
7
|
-
} from
|
|
7
|
+
} from '../../../styles/tokens';
|
|
8
8
|
|
|
9
9
|
const errorMessageVariants = {
|
|
10
10
|
error: css`
|
|
@@ -15,7 +15,7 @@ const errorMessageVariants = {
|
|
|
15
15
|
`,
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
export const ErrorMessage = styled.p<{ $type?:
|
|
18
|
+
export const ErrorMessage = styled.p<{ $type?: 'error' | 'success' }>`
|
|
19
19
|
display: flex;
|
|
20
20
|
align-items: center;
|
|
21
21
|
justify-content: center;
|
|
@@ -23,6 +23,6 @@ export const ErrorMessage = styled.p<{ $type?: "error" | "success" }>`
|
|
|
23
23
|
font-size: ${typographyTokens.fontSizes.labelS};
|
|
24
24
|
margin-top: ${semanticSizes.global.spacings.sm};
|
|
25
25
|
border-radius: ${semanticBorders.global.md};
|
|
26
|
-
|
|
27
|
-
${({ $type =
|
|
28
|
-
`;
|
|
26
|
+
|
|
27
|
+
${({ $type = 'error' }) => errorMessageVariants[$type]}
|
|
28
|
+
`;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import styled from
|
|
1
|
+
import styled from 'styled-components';
|
|
2
2
|
import {
|
|
3
3
|
semanticColors,
|
|
4
4
|
semanticSizes,
|
|
5
5
|
typographyTokens,
|
|
6
|
-
} from
|
|
6
|
+
} from '../../../styles/tokens';
|
|
7
7
|
|
|
8
8
|
export const Container = styled.div`
|
|
9
|
-
padding: ${semanticSizes.global.padding[
|
|
10
|
-
|
|
9
|
+
padding: ${semanticSizes.global.padding['2xl']};
|
|
10
|
+
|
|
11
11
|
h1 {
|
|
12
12
|
font-size: ${typographyTokens.fontSizes.displayM};
|
|
13
13
|
font-weight: ${typographyTokens.fontWeights.semibold};
|
|
14
14
|
line-height: ${typographyTokens.lineHeights.displayM};
|
|
15
15
|
margin-top: ${semanticSizes.global.padding.xl};
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
.text {
|
|
19
19
|
color: ${semanticColors.global.text.default.enabled};
|
|
20
20
|
}
|
|
21
|
-
`;
|
|
21
|
+
`;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import styled, { keyframes } from
|
|
1
|
+
import styled, { keyframes } from 'styled-components';
|
|
2
2
|
import {
|
|
3
3
|
semanticBorders,
|
|
4
4
|
semanticColors,
|
|
5
5
|
semanticRadius,
|
|
6
6
|
semanticSizes,
|
|
7
|
-
} from
|
|
7
|
+
} from '../../../styles/tokens';
|
|
8
8
|
|
|
9
9
|
const spin = keyframes`
|
|
10
10
|
to {
|
|
@@ -14,10 +14,12 @@ const spin = keyframes`
|
|
|
14
14
|
|
|
15
15
|
export const StyledLoader = styled.div`
|
|
16
16
|
margin: ${semanticSizes.global.spacings.lg} auto;
|
|
17
|
-
border: ${semanticBorders.global.lg} solid
|
|
18
|
-
|
|
17
|
+
border: ${semanticBorders.global.lg} solid
|
|
18
|
+
${semanticColors.global.border.default};
|
|
19
|
+
border-top: ${semanticBorders.global.lg} solid
|
|
20
|
+
${semanticColors.info.border.feedback};
|
|
19
21
|
border-radius: ${semanticRadius.global.radius.full};
|
|
20
22
|
width: ${semanticSizes.global.spacings.md};
|
|
21
23
|
height: ${semanticSizes.global.spacings.md};
|
|
22
24
|
animation: ${spin} 1s linear infinite;
|
|
23
|
-
`;
|
|
25
|
+
`;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import styled from
|
|
2
|
-
import { primitiveSizes } from
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { primitiveSizes } from '../../../styles/tokens';
|
|
3
3
|
|
|
4
4
|
export const Logo = styled.img<{ marginBottom?: string }>`
|
|
5
5
|
margin-bottom: ${(props) => props.marginBottom || primitiveSizes.size.x6};
|
|
6
6
|
width: 112px;
|
|
7
|
-
|
|
7
|
+
|
|
8
8
|
@media (max-width: 768px) {
|
|
9
9
|
width: 114.12px;
|
|
10
10
|
}
|
|
11
|
-
`;
|
|
11
|
+
`;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// ModalAviso.styles.tsx
|
|
2
|
-
import styled from
|
|
3
|
-
import {
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import {
|
|
4
4
|
primitiveColors,
|
|
5
5
|
semanticSizes,
|
|
6
6
|
semanticRadius,
|
|
7
|
-
typographyTokens,
|
|
8
|
-
semanticBorders
|
|
9
|
-
}
|
|
10
|
-
import { semanticColors } from
|
|
7
|
+
typographyTokens,
|
|
8
|
+
semanticBorders,
|
|
9
|
+
} from '../../../styles/tokens';
|
|
10
|
+
import { semanticColors } from '../../../styles/tokens';
|
|
11
11
|
|
|
12
12
|
export const Wrapper = styled.div`
|
|
13
13
|
position: fixed;
|
|
14
|
-
bottom: calc(${semanticSizes.global.spacings.lg} + 10px);
|
|
14
|
+
bottom: calc(${semanticSizes.global.spacings.lg} + 10px);
|
|
15
15
|
right: ${semanticSizes.global.padding.lg};
|
|
16
16
|
z-index: 9999;
|
|
17
17
|
`;
|
|
@@ -19,7 +19,8 @@ export const Wrapper = styled.div`
|
|
|
19
19
|
export const Container = styled.div`
|
|
20
20
|
background-color: ${semanticColors.info.surface.feedback};
|
|
21
21
|
border-radius: ${semanticRadius.global.radius.md2};
|
|
22
|
-
border: ${semanticBorders.global.md} solid
|
|
22
|
+
border: ${semanticBorders.global.md} solid
|
|
23
|
+
${semanticColors.info.border.feedback};
|
|
23
24
|
padding: ${semanticSizes.global.padding.md} ${semanticSizes.global.padding.lg};
|
|
24
25
|
display: flex;
|
|
25
26
|
align-items: start;
|
|
@@ -52,4 +53,4 @@ export const CloseButton = styled.button`
|
|
|
52
53
|
cursor: pointer;
|
|
53
54
|
color: ${primitiveColors.gray[600]};
|
|
54
55
|
line-height: 0;
|
|
55
|
-
`;
|
|
56
|
+
`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable react-refresh/only-export-components */
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import { semanticColors } from
|
|
3
|
+
import { semanticColors } from '../../../styles/tokens';
|
|
4
4
|
import { StatusVariant } from './InsuranceCard.types';
|
|
5
5
|
|
|
6
6
|
export const PageContainer = styled.div`
|