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.
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/styles/variables.d.ts +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/styles/variables.d.ts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/molecules/BlogCard/BlogCard.theme.ts +6 -2
- package/src/components/molecules/EventsCard/EventsCard.theme.ts +0 -1
- package/src/components/molecules/NewsCard/NewsCard.theme.ts +7 -1
- package/src/styles/Global.ts +3 -3
- package/src/styles/utilities.ts +7 -1
- package/src/styles/variables.ts +6 -6
|
@@ -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<
|
|
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<
|
|
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
|
@@ -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
|
|
|
@@ -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
|
|
package/src/styles/Global.ts
CHANGED
|
@@ -222,7 +222,7 @@ const GlobalStyles = createGlobalStyle`
|
|
|
222
222
|
|
|
223
223
|
background: var(--color-secondary-70);
|
|
224
224
|
|
|
225
|
-
z-index:
|
|
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:
|
|
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:
|
|
271
|
+
z-index: 96;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
274
|
.textEllipsis{
|
package/src/styles/utilities.ts
CHANGED
|
@@ -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 {
|
package/src/styles/variables.ts
CHANGED
|
@@ -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<
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
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,
|