@granto-umbrella/umbrella-components 3.0.23 → 3.0.25
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
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
typographyTokens,
|
|
8
8
|
semanticBorders
|
|
9
9
|
} from "../../../styles/tokens";
|
|
10
|
+
import { semanticColors } from "@granto-umbrella/umbrella-components";
|
|
10
11
|
|
|
11
12
|
export const Wrapper = styled.div`
|
|
12
13
|
position: fixed;
|
|
@@ -16,9 +17,9 @@ export const Wrapper = styled.div`
|
|
|
16
17
|
`;
|
|
17
18
|
|
|
18
19
|
export const Container = styled.div`
|
|
19
|
-
background-color: ${
|
|
20
|
+
background-color: ${semanticColors.info.surface.feedback};
|
|
20
21
|
border-radius: ${semanticRadius.global.radius.md2};
|
|
21
|
-
border: ${semanticBorders.global.md} solid ${
|
|
22
|
+
border: ${semanticBorders.global.md} solid ${semanticColors.info.border.feedback};
|
|
22
23
|
padding: ${semanticSizes.global.padding.md} ${semanticSizes.global.padding.lg};
|
|
23
24
|
display: flex;
|
|
24
25
|
align-items: start;
|
|
@@ -32,7 +33,7 @@ export const Content = styled.div`
|
|
|
32
33
|
`;
|
|
33
34
|
|
|
34
35
|
export const Title = styled.p`
|
|
35
|
-
color: ${
|
|
36
|
+
color: ${semanticColors.info.text.feedback.strong};
|
|
36
37
|
font-weight: ${typographyTokens.fontWeights.semibold};
|
|
37
38
|
font-size: ${typographyTokens.fontSizes.bodyM};
|
|
38
39
|
margin: 0 0 ${semanticSizes.global.gap.xs} 0;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import styled from
|
|
2
|
-
import { semanticColors, primitiveColors } from
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { semanticColors, primitiveColors } from '../../../styles/tokens/colors';
|
|
3
3
|
|
|
4
4
|
export const Results = styled.div<{ $isPositive: boolean }>`
|
|
5
5
|
display: flex;
|
|
6
6
|
flex-direction: row;
|
|
7
|
-
font-size:
|
|
7
|
+
font-size: 12px;
|
|
8
8
|
align-items: center;
|
|
9
9
|
gap: 8px;
|
|
10
10
|
background-color: ${({ $isPositive }) =>
|
|
11
|
-
$isPositive
|
|
11
|
+
$isPositive
|
|
12
|
+
? semanticColors.success.surface.feedback
|
|
13
|
+
: primitiveColors.red[100]};
|
|
12
14
|
border: ${({ $isPositive }) =>
|
|
13
15
|
$isPositive
|
|
14
16
|
? `1px solid ${semanticColors.success.text.feedback.accent}`
|
|
@@ -16,7 +18,9 @@ export const Results = styled.div<{ $isPositive: boolean }>`
|
|
|
16
18
|
border-radius: 9999px;
|
|
17
19
|
padding: 8px 16px;
|
|
18
20
|
color: ${({ $isPositive }) =>
|
|
19
|
-
$isPositive
|
|
21
|
+
$isPositive
|
|
22
|
+
? semanticColors.success.text.feedback.accent
|
|
23
|
+
: semanticColors.danger.text.feedback.accent};
|
|
20
24
|
font-weight: 500;
|
|
21
25
|
width: fit-content;
|
|
22
|
-
|
|
26
|
+
`;
|