oddsgate-ds 1.0.3 → 1.0.5

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oddsgate-ds",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "author": "Rui Correia <rui.correia@miew.pt>",
6
6
  "license": "MIT",
@@ -46,8 +46,8 @@ export const StyledButton = styled.a<IButtonSC>`
46
46
  case "primary": default:
47
47
  return css`
48
48
  ${fontSize('h6')};
49
- w-[3rem] h-[3rem] line-height-[3rem] text-[2.6rem] color-current border-1-solid-current radius-full translate-z-45 text-center before
50
- & i{
49
+
50
+ & i{
51
51
  width: 3rem;
52
52
  height: 3rem;
53
53
  line-height: 3rem;
@@ -15,7 +15,7 @@ export default {
15
15
 
16
16
  export const Dark: StoryObj<IChip> = {
17
17
  render: args => (
18
- <div className="bg-primary70 p-6">
18
+ <div className="bg-primary90 p-6">
19
19
  <Chip {...args}>Category name</Chip>
20
20
  </div>
21
21
  ),
@@ -23,7 +23,7 @@ export const Light: StoryObj<IEmptyState> = {
23
23
 
24
24
  export const Dark: StoryObj<IEmptyState> = {
25
25
  render: args => (
26
- <div className="bg-primary70 color-white p-8">
26
+ <div className="bg-primary90 color-white p-8">
27
27
  <EmptyState {...args}></EmptyState>
28
28
  </div>
29
29
  ),
@@ -19,7 +19,7 @@ export const StyledEmptyState = styled.div<IEmptyState>`
19
19
  case "light":
20
20
  return css`
21
21
  & svg path{
22
- fill: ${colors.primary70} !important;
22
+ fill: ${colors.primary90} !important;
23
23
  }
24
24
  `;
25
25
  }
@@ -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.primary70};
98
- background: ${colors.primary70};
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.primary70};
110
+ border-color: ${colors.primary90};
111
111
  }
112
112
  }
113
113
 
114
114
  & input[type="radio"]+label {
115
115
  &::after {
116
- background: ${colors.primary70};
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-primary70">
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.primary70};
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.primary70};
82
+ color: ${colors.primary90};
83
83
  }
84
84
  }
85
85
 
@@ -2,7 +2,7 @@ import styled, { css } from 'styled-components';
2
2
 
3
3
  import { IImageWrapper } from './ImageWrapper.interface';
4
4
 
5
- export const StyledImageWrapper = styled.picture<IImageWrapper>`
5
+ export const StyledImageWrapper = styled.div<IImageWrapper>`
6
6
 
7
7
  & picture{
8
8
  position: relative;
@@ -22,7 +22,7 @@ export const Light: StoryObj<ILoader> = {
22
22
  }
23
23
  export const Dark: StoryObj<ILoader> = {
24
24
  render: args => (
25
- <div className="bg-primary70 color-white p-8">
25
+ <div className="bg-primary90 color-white p-8">
26
26
  <Loader {...args}></Loader>
27
27
  </div>
28
28
  ),
@@ -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.primary70};
66
+ border: 3px dotted ${colors.primary90};
67
67
  }
68
68
  &::after {
69
- border: 3px dotted ${colors.primary70};
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.primary70};
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.primary70};
40
+ background-color: ${colors.primary90};
41
41
  }
42
42
  `;
43
43
  case "dark":
44
44
  return css`
45
45
  & li a{
46
- color: ${colors.primary70};
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.primary70} !important;
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.primary70}
48
+ color: ${colors.primary90}
49
49
  }
50
50
  `;
@@ -14,7 +14,7 @@ export const StyledIconBox = styled.div<IIconBox>`
14
14
  width: 32px;
15
15
  height: 32px;
16
16
 
17
- color: ${colors.primary70};
17
+ color: ${colors.primary90};
18
18
  background: ${colors.primary10};
19
19
  border-radius: 50px;
20
20
 
@@ -44,7 +44,7 @@ export const StyledWrapper = styled.div<IModal>`
44
44
 
45
45
  export const StyledTitle = styled.div<IModal>`
46
46
  color: ${colors.white};
47
- background-color: ${colors.primary70};
47
+ background-color: ${colors.primary90};
48
48
  padding: ${spaces[3]};
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.primary70};
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.primary70};
82
+ background-color: ${colors.primary90};
83
83
 
84
84
  cursor: pointer;
85
85
  padding: ${spaces[2]} ${spaces[4]};
@@ -256,7 +256,7 @@ const GlobalStyles = createGlobalStyle`
256
256
 
257
257
  padding: 12px 22px;
258
258
 
259
- color: var(--color-primary70);
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;
@@ -37,8 +37,15 @@ export const colors = <Record<string, string>>{
37
37
  gray70: '#6E6D6C',
38
38
  gray90: '#3C3B39',
39
39
 
40
- primary10: '#FC3151',
41
- primary70: '#FF455',
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(104),
81
- sizeMob: pxToRem(56),
87
+ size: pxToRem(250),
88
+ sizeMob: pxToRem(180),
82
89
  height: 1.4,
83
90
  },
84
91
  h1: {
85
- size: pxToRem(48),
86
- sizeMob: pxToRem(40),
92
+ size: pxToRem(120),
93
+ sizeMob: pxToRem(64),
87
94
  height: 1.4,
88
95
  },
89
96
  h2: {
90
- size: pxToRem(40),
91
- sizeMob: pxToRem(32),
97
+ size: pxToRem(80),
98
+ sizeMob: pxToRem(42),
92
99
  height: 1.4,
93
100
  },
94
101
  h3: {
95
- size: pxToRem(32),
102
+ size: pxToRem(48),
96
103
  sizeMob: pxToRem(28),
97
104
  height: 1.2,
98
105
  },
99
106
  h4: {
100
- size: pxToRem(28),
101
- sizeMob: pxToRem(24),
107
+ size: pxToRem(36),
108
+ sizeMob: pxToRem(20),
102
109
  height: 1.4,
103
110
  },
104
111
  h5: {
105
- size: pxToRem(24),
106
- sizeMob: pxToRem(20),
112
+ size: pxToRem(20),
113
+ sizeMob: pxToRem(16),
107
114
  height: 1.4,
108
115
  },
109
116
  h6: {
110
- size: pxToRem(20),
111
- sizeMob: pxToRem(18),
117
+ size: pxToRem(18),
118
+ sizeMob: pxToRem(16),
112
119
  height: 1.4,
113
120
  },
114
121
  texts: {
115
122
  size: "16px",
116
- sizeMob: "14px",
123
+ sizeMob: "13px",
117
124
  height: 1.6,
118
125
  },
119
126
  captions: {