oddsgate-ds 1.0.61 → 1.0.62

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.62",
4
4
  "description": "Miew theme component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -4,12 +4,13 @@ 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;
10
11
  background-color: ${colors.primary50};
11
12
  border-radius: ${radius.sm};
12
-
13
+ text-align: center;
13
14
 
14
15
  ${StyledChip}{
15
16
  position: absolute;
@@ -22,11 +23,14 @@ export const StyledBlogCard = styled(Card) <IBlogCard>`
22
23
 
23
24
  }
24
25
 
25
-
26
26
  &:hover{
27
27
  & figcaption{
28
28
 
29
29
  }
30
30
  }
31
+
32
+ @media only screen and (min-width: ${variables.responsiveMedia}) {
33
+ text-align:left;
34
+ }
31
35
  `;
32
36
 
@@ -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
  }
@@ -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) => {
@@ -312,6 +313,11 @@ export const utilities: {
312
313
  class: "radius",
313
314
  values: radius
314
315
  },
316
+ "zIndex": {
317
+ property: "z-index",
318
+ class: "zIndex",
319
+ values: zIndexes
320
+ },
315
321
  };
316
322
 
317
323
  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,