hds-web 1.10.1 → 1.10.2

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": "hds-web",
3
- "version": "1.10.1",
3
+ "version": "1.10.2",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -2,27 +2,27 @@ import React from "react"
2
2
  import { HDSColor } from "../../../foundation/ColorPalette"
3
3
  import { Typography } from "../../../foundation/Typography"
4
4
  import {Badges} from "../../BadgesCaption"
5
- export default function ImageBadgeCard (card){
5
+ export default function ImageBadgeCard(card) {
6
6
 
7
- return(
8
- <>
9
- <div className={`${HDSColor(card.cardBg)}bg-neutral-0 min-w-[312px] tb:max-w-[700px] min-h-[245px] rounded-3xl tb:p-8 p-4`}>
10
- <div className='flex flex-col tb:flex-row justify-between gap-4'>
11
- <div className='tb:max-w-[400px]'>
12
- <Badges
13
- color={card.badge.color}
14
- children={card.badge.label}
15
- text_color='text-neutral-0'
16
- />
17
- <Typography textStyle='h4' className='mt-2 text-neutral-1000'>{card.title}</Typography>
18
- <Typography textStyle='sub2' className='mt-2 text-neutral-600'>{card.subTitle}</Typography>
19
- </div>
20
- <div className="flex justify-center">
21
- <img src={card.imageUrl} alt={card.title} className='tb:max-w-[290px] tb:max-h-[181px]' />
7
+ return (
8
+ <>
9
+ <div className={`${HDSColor(card.cardBg)}bg-neutral-0 min-h-[443px] min-w-[312px] tb:max-w-[763px] tb:min-h-[245px] rounded-3xl tb:p-8 p-4`}>
10
+ <div className='flex flex-col-reverse tb:flex-row justify-between gap-4 items-center'>
11
+ <div className='tb:max-w-[393px] mt-8 tb:mt-0'>
12
+ <Badges
13
+ color={card.badge.color}
14
+ children={card.badge.label}
15
+ text_color='text-neutral-0'
16
+ />
17
+ <Typography textStyle='h4' className='mt-2 text-neutral-1000 max-w-[326px]'>{card.title}</Typography>
18
+ <Typography textStyle='sub2' className='mt-2 text-neutral-600'>{card.subTitle}</Typography>
19
+ </div>
20
+ <div className="flex justify-center h-full items-center">
21
+ <img src={card.imageUrl} alt={card.title} className='tb:max-w-[290px] rounded-lg flex items-center justify-center tb:max-h-[181px]' />
22
22
 
23
+ </div>
23
24
  </div>
24
25
  </div>
25
- </div>
26
- </>
27
- )
26
+ </>
27
+ )
28
28
  }