oddsgate-ds 1.0.2 → 1.0.4
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/dist/assets/components/quotes.svg +3 -0
- package/dist/assets/empty-state.svg +19 -0
- package/dist/assets/placeholder.png +0 -0
- package/dist/assets/video.mp4 +0 -0
- package/dist/cjs/index.js +1972 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/esm/index.js +1972 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/fonts/miewfont/miewfont.eot +0 -0
- package/dist/fonts/miewfont/miewfont.svg +35 -0
- package/dist/fonts/miewfont/miewfont.ttf +0 -0
- package/dist/fonts/miewfont/miewfont.woff +0 -0
- package/dist/index.d.ts +512 -0
- package/package.json +14 -1
- package/src/components/atoms/Button/Button.theme.ts +2 -2
- package/src/components/atoms/Chip/Chip.stories.tsx +1 -1
- package/src/components/atoms/EmptyState/EmptyState.stories.tsx +1 -1
- package/src/components/atoms/EmptyState/EmptyState.theme.ts +1 -1
- package/src/components/atoms/FormField/CheckRadioField/CheckRadioField.theme.ts +4 -4
- package/src/components/atoms/FormField/FormField.stories.tsx +1 -1
- package/src/components/atoms/FormField/FormField.theme.tsx +2 -2
- package/src/components/atoms/Loader/Loader.stories.tsx +1 -1
- package/src/components/atoms/Loader/Loader.theme.ts +2 -2
- package/src/components/atoms/Marquee/Marquee.theme.ts +1 -1
- package/src/components/atoms/SocialLinks/SocialLinks.theme.ts +2 -2
- package/src/components/molecules/Dropdown/Dropdown.theme.ts +2 -2
- package/src/components/molecules/IconBox/IconBox.theme.ts +1 -1
- package/src/components/molecules/Modal/Modal.theme.ts +1 -1
- package/src/components/molecules/ShareModal/ShareModal.theme.ts +2 -2
- package/src/styles/Global.ts +1 -1
- package/src/styles/variables.ts +23 -16
|
@@ -94,8 +94,8 @@ export const StyledCheckRadioField = styled.div<ICheckRadioField>`
|
|
|
94
94
|
|
|
95
95
|
& input[type="checkbox"]:checked+label::before,
|
|
96
96
|
& input[type="radio"]:checked+label::before {
|
|
97
|
-
border-color: ${colors.
|
|
98
|
-
background: ${colors.
|
|
97
|
+
border-color: ${colors.primary90};
|
|
98
|
+
background: ${colors.primary90};
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
& input[type="checkbox"]:checked+label::after,
|
|
@@ -107,13 +107,13 @@ export const StyledCheckRadioField = styled.div<ICheckRadioField>`
|
|
|
107
107
|
.style-dark & {
|
|
108
108
|
& input[type="checkbox"]+label {
|
|
109
109
|
&:after {
|
|
110
|
-
border-color: ${colors.
|
|
110
|
+
border-color: ${colors.primary90};
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
& input[type="radio"]+label {
|
|
115
115
|
&::after {
|
|
116
|
-
background: ${colors.
|
|
116
|
+
background: ${colors.primary90};
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
& input[type="checkbox"]:checked+label::before,
|
|
@@ -198,7 +198,7 @@ export const FilterWithInputs: StoryObj<IFormField> = {
|
|
|
198
198
|
|
|
199
199
|
export const DarkStyle: StoryObj<IFormField> = {
|
|
200
200
|
render: args => (
|
|
201
|
-
<div className="style-dark color-white bg-
|
|
201
|
+
<div className="style-dark color-white bg-primary90">
|
|
202
202
|
<Formik
|
|
203
203
|
initialValues={{}}
|
|
204
204
|
onSubmit={function (
|
|
@@ -70,7 +70,7 @@ export const StyledFieldContainer = styled.div<IFormField>`
|
|
|
70
70
|
outline: none;
|
|
71
71
|
width: 100%;
|
|
72
72
|
|
|
73
|
-
border: 1px solid ${colors.
|
|
73
|
+
border: 1px solid ${colors.primary90};
|
|
74
74
|
|
|
75
75
|
&:focus {
|
|
76
76
|
border: 1px solid ${colors.gray50};
|
|
@@ -79,7 +79,7 @@ export const StyledFieldContainer = styled.div<IFormField>`
|
|
|
79
79
|
|
|
80
80
|
select{
|
|
81
81
|
option{
|
|
82
|
-
color: ${colors.
|
|
82
|
+
color: ${colors.primary90};
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -63,10 +63,10 @@ export const StyledLoader = styled.div<ILoader>`
|
|
|
63
63
|
return css`
|
|
64
64
|
& > div {
|
|
65
65
|
&::before{
|
|
66
|
-
border: 3px dotted ${colors.
|
|
66
|
+
border: 3px dotted ${colors.primary90};
|
|
67
67
|
}
|
|
68
68
|
&::after {
|
|
69
|
-
border: 3px dotted ${colors.
|
|
69
|
+
border: 3px dotted ${colors.primary90};
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
`;
|
|
@@ -16,7 +16,7 @@ export const StyledMarquee = styled.div<IMarquee>`
|
|
|
16
16
|
--move-final: calc(-50% + var(--offset));
|
|
17
17
|
|
|
18
18
|
color: ${colors.white};
|
|
19
|
-
background-color: ${colors.
|
|
19
|
+
background-color: ${colors.primary90};
|
|
20
20
|
border-radius: ${radius.md};
|
|
21
21
|
|
|
22
22
|
padding: 8px 0;
|
|
@@ -37,13 +37,13 @@ export const StyledSocialLinks = styled.ul<ISocialLinks>`
|
|
|
37
37
|
return css`
|
|
38
38
|
& li a{
|
|
39
39
|
color: ${colors.white};
|
|
40
|
-
background-color: ${colors.
|
|
40
|
+
background-color: ${colors.primary90};
|
|
41
41
|
}
|
|
42
42
|
`;
|
|
43
43
|
case "dark":
|
|
44
44
|
return css`
|
|
45
45
|
& li a{
|
|
46
|
-
color: ${colors.
|
|
46
|
+
color: ${colors.primary90};
|
|
47
47
|
background-color: ${colors.white};
|
|
48
48
|
}
|
|
49
49
|
`;
|
|
@@ -14,7 +14,7 @@ export const StyledDropdownTitle = styled.div<IDropdownTitle>`
|
|
|
14
14
|
cursor: pointer;
|
|
15
15
|
|
|
16
16
|
${({ open }) => open && `
|
|
17
|
-
color: ${colors.
|
|
17
|
+
color: ${colors.primary90} !important;
|
|
18
18
|
user-select: none
|
|
19
19
|
`}
|
|
20
20
|
`;
|
|
@@ -45,6 +45,6 @@ export const StyledDropdownItem = styled.li<IDropdownItem>`
|
|
|
45
45
|
cursor: pointer;
|
|
46
46
|
|
|
47
47
|
&:hover {
|
|
48
|
-
color: ${colors.
|
|
48
|
+
color: ${colors.primary90}
|
|
49
49
|
}
|
|
50
50
|
`;
|
|
@@ -20,7 +20,7 @@ export const StyledModal = styled.div<IShareModal>`
|
|
|
20
20
|
line-height: 3.2rem;
|
|
21
21
|
border-radius: 50%;
|
|
22
22
|
color: ${colors.white};
|
|
23
|
-
background: ${colors.
|
|
23
|
+
background: ${colors.primary90};
|
|
24
24
|
margin: auto;
|
|
25
25
|
transition: all 0.3s ease;
|
|
26
26
|
|
|
@@ -79,7 +79,7 @@ export const StyledMessage = styled.div<IShareModal>`
|
|
|
79
79
|
vertical-align: top;
|
|
80
80
|
|
|
81
81
|
color: ${colors.white};
|
|
82
|
-
background-color: ${colors.
|
|
82
|
+
background-color: ${colors.primary90};
|
|
83
83
|
|
|
84
84
|
cursor: pointer;
|
|
85
85
|
padding: ${spaces[2]} ${spaces[4]};
|
package/src/styles/Global.ts
CHANGED
|
@@ -256,7 +256,7 @@ const GlobalStyles = createGlobalStyle`
|
|
|
256
256
|
|
|
257
257
|
padding: 12px 22px;
|
|
258
258
|
|
|
259
|
-
color: var(--color-
|
|
259
|
+
color: var(--color-primary90);
|
|
260
260
|
background: var(--color-white);
|
|
261
261
|
box-shadow: 0px 2px 16px rgba(${colors.black}, 0.05);
|
|
262
262
|
border-radius: 50px;
|
package/src/styles/variables.ts
CHANGED
|
@@ -37,8 +37,15 @@ export const colors = <Record<string, string>>{
|
|
|
37
37
|
gray70: '#6E6D6C',
|
|
38
38
|
gray90: '#3C3B39',
|
|
39
39
|
|
|
40
|
-
primary10: '#
|
|
41
|
-
|
|
40
|
+
primary10: '#FC647C',
|
|
41
|
+
primary50: '#FC3151',
|
|
42
|
+
primary90: '#FC3151',
|
|
43
|
+
|
|
44
|
+
secondary10: '#FDFDF1',
|
|
45
|
+
secondary50: '#FFFECC',
|
|
46
|
+
|
|
47
|
+
third10: '#440D3F',
|
|
48
|
+
third50: '#2C0929',
|
|
42
49
|
|
|
43
50
|
// Feedback
|
|
44
51
|
warning: '#ea9a1a',
|
|
@@ -77,43 +84,43 @@ export const spacesNegative = <Record<string, string>>{
|
|
|
77
84
|
//if responsive is not needed for a size just set the size as px instead of rem
|
|
78
85
|
export const typography = <Record<string, Record<string, unknown>>>{
|
|
79
86
|
display: {
|
|
80
|
-
size: pxToRem(
|
|
81
|
-
sizeMob: pxToRem(
|
|
87
|
+
size: pxToRem(250),
|
|
88
|
+
sizeMob: pxToRem(180),
|
|
82
89
|
height: 1.4,
|
|
83
90
|
},
|
|
84
91
|
h1: {
|
|
85
|
-
size: pxToRem(
|
|
86
|
-
sizeMob: pxToRem(
|
|
92
|
+
size: pxToRem(120),
|
|
93
|
+
sizeMob: pxToRem(64),
|
|
87
94
|
height: 1.4,
|
|
88
95
|
},
|
|
89
96
|
h2: {
|
|
90
|
-
size: pxToRem(
|
|
91
|
-
sizeMob: pxToRem(
|
|
97
|
+
size: pxToRem(80),
|
|
98
|
+
sizeMob: pxToRem(42),
|
|
92
99
|
height: 1.4,
|
|
93
100
|
},
|
|
94
101
|
h3: {
|
|
95
|
-
size: pxToRem(
|
|
102
|
+
size: pxToRem(48),
|
|
96
103
|
sizeMob: pxToRem(28),
|
|
97
104
|
height: 1.2,
|
|
98
105
|
},
|
|
99
106
|
h4: {
|
|
100
|
-
size: pxToRem(
|
|
101
|
-
sizeMob: pxToRem(
|
|
107
|
+
size: pxToRem(36),
|
|
108
|
+
sizeMob: pxToRem(20),
|
|
102
109
|
height: 1.4,
|
|
103
110
|
},
|
|
104
111
|
h5: {
|
|
105
|
-
size: pxToRem(
|
|
106
|
-
sizeMob: pxToRem(
|
|
112
|
+
size: pxToRem(20),
|
|
113
|
+
sizeMob: pxToRem(16),
|
|
107
114
|
height: 1.4,
|
|
108
115
|
},
|
|
109
116
|
h6: {
|
|
110
|
-
size: pxToRem(
|
|
111
|
-
sizeMob: pxToRem(
|
|
117
|
+
size: pxToRem(18),
|
|
118
|
+
sizeMob: pxToRem(16),
|
|
112
119
|
height: 1.4,
|
|
113
120
|
},
|
|
114
121
|
texts: {
|
|
115
122
|
size: "16px",
|
|
116
|
-
sizeMob: "
|
|
123
|
+
sizeMob: "13px",
|
|
117
124
|
height: 1.6,
|
|
118
125
|
},
|
|
119
126
|
captions: {
|