oddsgate-ds 1.0.57 → 1.0.59

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.57",
3
+ "version": "1.0.59",
4
4
  "description": "Miew theme component library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -18,19 +18,6 @@ export const StyledBlogCard = styled(Card) <IBlogCard>`
18
18
  z-index: 10;
19
19
  }
20
20
 
21
- & picture{
22
- &:before{
23
- content: '';
24
- position: absolute;
25
- top: 0;
26
- left: 0;
27
- width: 100%;
28
- height: 100%;
29
- background: rgba(0,0,0,0.5);
30
- z-index: 1;
31
- }
32
- }
33
-
34
21
  & figcaption{
35
22
 
36
23
  }
@@ -20,21 +20,21 @@ const EventsCard = ({
20
20
  <StyledEventsCard
21
21
  variant={variant}
22
22
  imageElement={
23
- <ImageWrapper aspectRatioHeight={63}>{imageElement}</ImageWrapper>
23
+ <ImageWrapper aspectRatioHeight={100}>{imageElement}</ImageWrapper>
24
24
  }
25
25
  >
26
- {category && <Chip variant='light' className='mb-5'>{category}</Chip>}
27
- <Heading tag={'h3'} size={'h4'} className={'fw-bold textEllipsis'}>
26
+ {category && <Chip variant='dark' className='mb-5'>{category}</Chip>}
27
+ <Heading tag={'span'} size={'h4'} className={'fw-bold textEllipsis'}>
28
28
  {title}
29
29
  </Heading>
30
30
  {date && (
31
- <RichText tag={'p'} className="text-end fw-bold mt-6">
31
+ <Heading tag={'span'} size={'h5'} className={'mt-3'}>
32
32
  {date}
33
- </RichText>
33
+ </Heading>
34
34
  )}
35
35
 
36
36
  {linkElement}
37
- </StyledEventsCard>
37
+ </StyledEventsCard >
38
38
  )
39
39
  }
40
40
 
@@ -3,23 +3,27 @@ import styled, { css } from 'styled-components';
3
3
 
4
4
  import Card from '../Card/Card.component';
5
5
  import { IEventsCard } from './EventsCard.interface';
6
- import { StyledChip } from '@/components/atoms/Chip/Chip.theme';
7
6
 
8
7
  export const StyledEventsCard = styled(Card) <IEventsCard>`
9
- padding: 0;
10
- background-color: ${colors.third50};
8
+ padding: 8px;
9
+ border-radius: 1.6rem;
10
+ transition: all 0.3s;
11
11
 
12
12
  picture{
13
- border-radius: ${radius.rounded};
13
+ border-radius: 100%;
14
14
  }
15
15
  & figcaption{
16
- padding:3rem;
16
+ color: ${colors.third10};
17
+ padding:0;
18
+ margin-top: 1rem;
17
19
  }
18
20
 
19
21
 
20
22
  &:hover{
21
- & figcaption{
23
+ background-color: ${colors.third10};
22
24
 
25
+ & figcaption{
26
+ color: ${colors.secondary50};
23
27
  }
24
28
  }
25
29
  `;
@@ -6,15 +6,21 @@ import { INewsCard } from './NewsCard.interface';
6
6
  import { StyledChip } from '@/components/atoms/Chip/Chip.theme';
7
7
 
8
8
  export const StyledNewsCard = styled(Card) <INewsCard>`
9
- padding: 0;
10
- background-color: ${colors.third50};
11
- border-radius: ${radius.rounded};
9
+ padding: 1rem;
10
+ color: ${colors.secondary50};
11
+ background-color: ${colors.third10};
12
+ border-radius: ${radius.sm};
12
13
 
13
- picture{
14
- border-radius: 0;
14
+
15
+ ${StyledChip}{
16
+ position: absolute;
17
+ top: 2rem;
18
+ left: 2rem;
19
+ z-index: 10;
15
20
  }
21
+
16
22
  & figcaption{
17
- padding:3rem;
23
+
18
24
  }
19
25
 
20
26
 
@@ -23,20 +29,5 @@ export const StyledNewsCard = styled(Card) <INewsCard>`
23
29
 
24
30
  }
25
31
  }
26
-
27
- @media only screen and (min-width: ${responsiveMedia}) {
28
- display: flex;
29
-
30
- & picture{
31
- width: 30%;
32
- order: 2;
33
- }
34
-
35
- & figcaption{
36
- width: 70%;
37
- padding: 3rem 5rem;
38
- order: 1;
39
- }
40
- }
41
32
  `;
42
33
 
package/declaration.d.ts DELETED
@@ -1,4 +0,0 @@
1
- declare module '*.scss' {
2
- const classes: {[key: string]: string};
3
- export default classes;
4
- }
@@ -1,11 +0,0 @@
1
- version: '3.7'
2
- services:
3
- storybook:
4
- image: node
5
- restart: unless-stopped
6
- ports:
7
- - 6006:6006
8
- volumes:
9
- - .:/var/www
10
- working_dir: /var/www
11
- command: sh -c 'yarn install && yarn storybook'