oddsgate-ds 1.0.61 → 1.0.63

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.
@@ -23,7 +23,7 @@ export declare const spacesNegative: Record<string, string>;
23
23
  export declare const typography: Record<string, Record<string, unknown>>;
24
24
  export declare const radius: Record<string, string>;
25
25
  export declare const shadows: Record<string, string>;
26
- export declare const zIndexes: Record<string, string>;
26
+ export declare const zIndexes: Record<number, number>;
27
27
  export declare const grid_conf: {
28
28
  gridSize: number;
29
29
  gutter: number;
package/dist/types.d.ts CHANGED
@@ -28,7 +28,7 @@ declare const spacesNegative: Record<string, string>;
28
28
  declare const typography: Record<string, Record<string, unknown>>;
29
29
  declare const radius: Record<string, string>;
30
30
  declare const shadows: Record<string, string>;
31
- declare const zIndexes: Record<string, string>;
31
+ declare const zIndexes: Record<number, number>;
32
32
  declare const grid_conf: {
33
33
  gridSize: number;
34
34
  gutter: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oddsgate-ds",
3
- "version": "1.0.61",
3
+ "version": "1.0.63",
4
4
  "description": "Miew theme component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -71,32 +71,6 @@ export const StyledButton = styled.a<IButtonSC>`
71
71
  }
72
72
  }
73
73
  `;
74
- case "secondary":
75
- return css`
76
- ${fontSize('h5')};
77
- font-weight: 700;
78
- text-transform:uppercase;
79
- padding: 0.8rem 1.6rem;
80
- border-radius: 50px;
81
-
82
- ${props.$mode === "light" ? `
83
- color: ${colors.primary50};
84
- background-color: ${colors.secondary50};
85
-
86
- &:hover{
87
- color: ${colors.secondary50};
88
- background-color: ${colors.primary50};
89
- }
90
- ` : `
91
- color: ${colors.secondary50};
92
- background-color: ${colors.primary50};
93
-
94
- &:hover{
95
- color: ${colors.primary50};
96
- background-color: ${colors.secondary50};
97
- }
98
- `}
99
- `;
100
74
  case "link":
101
75
  return css`
102
76
  ${fontSize('h5')};
@@ -28,14 +28,14 @@ const BlogCard = ({
28
28
  </>
29
29
  }
30
30
  >
31
- <Heading tag={'h3'} size={'h4'} className={'fw-bold textEllipsis'}>
31
+ <Heading tag={'h3'} size={'h4'} className={'fw-bold textEllipsis mt-4'}>
32
32
  {title}
33
33
  </Heading>
34
- <Heading tag={'span'} size={'captions'} className={'textEllipsis mt-2'}>
34
+ <Heading tag={'span'} size={'captions'} className={'textEllipsis mt-3'}>
35
35
  {description}
36
36
  </Heading>
37
37
  {date && (
38
- <RichText tag={'p'} className="fw-bold mt-3">
38
+ <RichText tag={'p'} className="fw-bold mt-4">
39
39
  {date}
40
40
  </RichText>
41
41
  )}
@@ -4,12 +4,14 @@ import styled, { css } from 'styled-components';
4
4
  import Card from '../Card/Card.component';
5
5
  import { IBlogCard } from './BlogCard.interface';
6
6
  import { StyledChip } from '@/components/atoms/Chip/Chip.theme';
7
+ import { variables } from '@/index';
7
8
 
8
9
  export const StyledBlogCard = styled(Card) <IBlogCard>`
9
10
  padding: 1rem;
11
+ color: ${colors.secondary50};
10
12
  background-color: ${colors.primary50};
11
13
  border-radius: ${radius.sm};
12
-
14
+ text-align: center;
13
15
 
14
16
  ${StyledChip}{
15
17
  position: absolute;
@@ -22,11 +24,14 @@ export const StyledBlogCard = styled(Card) <IBlogCard>`
22
24
 
23
25
  }
24
26
 
25
-
26
27
  &:hover{
27
28
  & figcaption{
28
29
 
29
30
  }
30
31
  }
32
+
33
+ @media only screen and (min-width: ${variables.responsiveMedia}) {
34
+ text-align:left;
35
+ }
31
36
  `;
32
37
 
@@ -16,7 +16,6 @@ export const StyledEventsCard = styled(Card) <IEventsCard>`
16
16
  margin-top: 1rem;
17
17
  }
18
18
 
19
-
20
19
  &:hover{
21
20
 
22
21
  }
@@ -24,11 +24,14 @@ const NewsCard = ({
24
24
  }
25
25
  >
26
26
  {category && <Chip variant='light' className='mb-5'>{category}</Chip>}
27
- <Heading tag={'h3'} size={variant === "featured" ? "h3" : 'h4'} className={'fw-bold textEllipsis'}>
27
+ <Heading tag={'h3'} size={variant === "featured" ? "h3" : 'h4'} className={'fw-bold textEllipsis mt-4'}>
28
28
  {title}
29
29
  </Heading>
30
+ <Heading tag={'span'} size={'captions'} className={'textEllipsis mt-3'}>
31
+ {description}
32
+ </Heading>
30
33
  {date && (
31
- <Heading tag={'span'} size={variant === "featured" ? "h5" : 'texts'} className={'fw-bold mt-3'}>
34
+ <Heading tag={'span'} size={variant === "featured" ? "h5" : 'texts'} className={'fw-bold mt-4'}>
32
35
  {date}
33
36
  </Heading>
34
37
  )}
@@ -4,13 +4,14 @@ import styled, { css } from 'styled-components';
4
4
  import Card from '../Card/Card.component';
5
5
  import { INewsCard } from './NewsCard.interface';
6
6
  import { StyledChip } from '@/components/atoms/Chip/Chip.theme';
7
+ import { variables } from '@/index';
7
8
 
8
9
  export const StyledNewsCard = styled(Card) <INewsCard>`
9
10
  padding: 1rem;
10
11
  color: ${colors.secondary50};
11
12
  background-color: ${colors.third10};
12
13
  border-radius: ${radius.sm};
13
-
14
+ text-align:center;
14
15
 
15
16
  ${StyledChip}{
16
17
  position: absolute;
@@ -62,5 +63,10 @@ export const StyledNewsCard = styled(Card) <INewsCard>`
62
63
 
63
64
  }
64
65
  }
66
+
67
+
68
+ @media only screen and (min-width: ${variables.responsiveMedia}) {
69
+ text-align:left;
70
+ }
65
71
  `;
66
72
 
@@ -222,7 +222,7 @@ const GlobalStyles = createGlobalStyle`
222
222
 
223
223
  background: var(--color-secondary-70);
224
224
 
225
- z-index: ${zIndexes.progress};
225
+ z-index: 200;
226
226
 
227
227
  transition: all 0.1s $ease-out-expo;
228
228
  }
@@ -239,7 +239,7 @@ const GlobalStyles = createGlobalStyle`
239
239
  flex-flow: row wrap;
240
240
  min-height: 100%;
241
241
 
242
- z-index: ${zIndexes.content};
242
+ z-index: 96;
243
243
  transition: all 1.3s $ease-out-expo;
244
244
  }
245
245
 
@@ -268,7 +268,7 @@ const GlobalStyles = createGlobalStyle`
268
268
  border-radius: 50px;
269
269
 
270
270
  transform: translateX(-50%);
271
- z-index: ${zIndexes.preloader};
271
+ z-index: 96;
272
272
  }
273
273
 
274
274
  .textEllipsis{
@@ -7,7 +7,8 @@ import {
7
7
  shadows,
8
8
  spaces,
9
9
  spacesNegative,
10
- typography
10
+ typography,
11
+ zIndexes
11
12
  } from './variables';
12
13
 
13
14
  export const fontSize = (typo: string) => {
@@ -129,7 +130,8 @@ export const utilities: {
129
130
  between: "space-between",
130
131
  around: "space-around",
131
132
  evenly: "space-evenly",
132
- }
133
+ },
134
+ important: true,
133
135
  },
134
136
  "align-items": {
135
137
  responsive: true,
@@ -140,7 +142,8 @@ export const utilities: {
140
142
  center: "center",
141
143
  baseline: "baseline",
142
144
  stretch: "stretch",
143
- }
145
+ },
146
+ important: true,
144
147
  },
145
148
  "align-content": {
146
149
  responsive: true,
@@ -152,7 +155,8 @@ export const utilities: {
152
155
  between: "space-between",
153
156
  around: "space-around",
154
157
  stretch: "stretch",
155
- }
158
+ },
159
+ important: true,
156
160
  },
157
161
  "align-self": {
158
162
  responsive: true,
@@ -164,7 +168,8 @@ export const utilities: {
164
168
  center: "center",
165
169
  baseline: "baseline",
166
170
  stretch: "stretch",
167
- }
171
+ },
172
+ important: true,
168
173
  },
169
174
  "order": {
170
175
  responsive: true,
@@ -312,6 +317,11 @@ export const utilities: {
312
317
  class: "radius",
313
318
  values: radius
314
319
  },
320
+ "zIndex": {
321
+ property: "z-index",
322
+ class: "zIndex",
323
+ values: zIndexes
324
+ },
315
325
  };
316
326
 
317
327
  export function generateUtilities(utility: string, breakpoint: string): string {
@@ -146,12 +146,12 @@ export const shadows = <Record<string, string>>{
146
146
  md: '10px 30px 30px rgba(0, 78, 210, 0.05)',
147
147
  lg: '10px 40px 40px rgba(0, 78, 210, 0.07)',
148
148
  }
149
- export const zIndexes = <Record<string, string>>{
150
- progress: '200',
151
- modal: '100',
152
- content: '99',
153
- preloader: '96',
154
- linker: '95'
149
+ export const zIndexes = <Record<number, number>>{
150
+ 1: 1,
151
+ 2: 2,
152
+ 3: 3,
153
+ 4: 4,
154
+ 5: 5
155
155
  }
156
156
  export const grid_conf: {
157
157
  gridSize: number,