hds-web 1.10.6 → 1.10.8

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.6",
3
+ "version": "1.10.8",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -10,7 +10,7 @@ export default function AnnouncementSM(props) {
10
10
  const linkTextClass = props.linkTextColorClass ? HDSColor(props.linkTextColorClass) : 'text-neutral-600';
11
11
 
12
12
  return (
13
- <div className={`${bgClass} rounded-full shadow py-2 px-3 inline-flex items-center`}>
13
+ <div className={`${bgClass} rounded-full shadow py-2 px-2 inline-flex items-center`}>
14
14
  <div className={`${tagBgClass} hidden mb-m:block py-1 px-3 rounded-full mr-4`}>
15
15
  <Typography textStyle="body2-medium" className={`${tagTextClass}`}>{props.tagText}</Typography>
16
16
  </div>
@@ -6,22 +6,24 @@ export default function ImageBadgeCard(card) {
6
6
 
7
7
  return (
8
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]' />
9
+ <div className={`${HDSColor(card.cardBg)}bg-neutral-0 hover:shadow-lg hover:transition-all hover:ease-in-out hover:duration-300 hover:border-opacity-0 min-h-[443px] min-w-[312px] tb:max-w-[763px] tb:min-h-[245px] rounded-3xl tb:p-8 p-4`}>
10
+ <a href={card.sliderLink}>
11
+ <div className='flex flex-col-reverse tb:flex-row justify-between gap-4 items-center'>
12
+ <div className='tb:max-w-[393px] mt-8 tb:mt-0'>
13
+ <Badges
14
+ color={card.badge.color}
15
+ children={card.badge.label}
16
+ text_color='text-neutral-0'
17
+ />
18
+ <Typography textStyle='h4' className='mt-2 text-neutral-1000 max-w-[326px]'>{card.title}</Typography>
19
+ <Typography textStyle='sub2' className='mt-2 text-neutral-600'>{card.subTitle}</Typography>
20
+ </div>
21
+ <div className="flex justify-center h-full items-center">
22
+ <img src={card.imageUrl} alt={card.title} className='tb:max-w-[290px] rounded-lg flex items-center justify-center tb:max-h-[181px]' />
22
23
 
24
+ </div>
23
25
  </div>
24
- </div>
26
+ </a>
25
27
  </div>
26
28
  </>
27
29
  )
@@ -65,6 +65,7 @@ export default function TalkCard2(props) {
65
65
  className='mt-2'
66
66
  btnTextColorClass='text-blue-500'
67
67
  animatedHoverStroke='stroke-blue-500'
68
+ btnTextHoverClass='hover:text-blue-500'
68
69
  />
69
70
  </a>
70
71
  )}
@@ -60,13 +60,16 @@ export default function Testimonial(props) {
60
60
 
61
61
  </div>
62
62
  <div className="flex pb-8 pl-6 pt-5">
63
+ <a href={cardHover?.slideCTA || ""}>
64
+
63
65
  <HDSButton
64
66
  className='flex'
65
67
  label={cardHover.button['cta_text']}
66
68
  type="secondaryLink"
67
69
  btnTextHoverClass="hover:text-neutral-0"
68
70
  btnTextColorClass='text-neutral-0'
69
- />
71
+ />
72
+ </a>
70
73
  </div>
71
74
  </div>
72
75
 
@@ -67,7 +67,8 @@ export default function HomePageCarousePrimary(props) {
67
67
  title: obj.slideHoverText || "",
68
68
  button: {
69
69
  cta_text: obj.slideCTAText || ""
70
- }
70
+ },
71
+ slideCTA: obj?.slideCTA || ""
71
72
  }
72
73
  }
73
74
  };
@@ -1,11 +1,11 @@
1
1
  import React from "react";
2
2
  import { Typography } from '../../foundation/Typography'
3
- import { HDSButton} from '../../components/Buttons';
3
+ import { HDSButton } from '../../components/Buttons';
4
4
 
5
5
  export default function DataSourcesCard(props) {
6
6
  return (
7
- <>
8
- <a href={props.sliderLink ?? '#'}>
7
+ <>
8
+
9
9
  <div className="flex flex-col-reverse px-6 py-10 db:px-0 db:py-0 db:flex-row db:gap-[132px]">
10
10
 
11
11
  <div className="flex flex-col db:pl-20 db:pt-20 db:pb-[74px]">
@@ -37,10 +37,10 @@ export default function DataSourcesCard(props) {
37
37
  loop
38
38
  muted
39
39
  src={props.video_url}
40
- className=" rounded-xl db:rounded-none db:rounded-tl-3xl"
40
+ className=" rounded-xl db:rounded-none db:rounded-br-3xl db:rounded-tl-3xl"
41
41
  />
42
42
  </div>}
43
-
43
+
44
44
  <div className="db:hidden pb-2">
45
45
  <Typography textStyle='h3' className='text-neutral-1000'>{props.title}</Typography>
46
46
  </div>
@@ -50,16 +50,16 @@ export default function DataSourcesCard(props) {
50
50
  )
51
51
  }
52
52
  </div>
53
- </a>
53
+
54
54
  </>
55
55
  )
56
56
  }
57
57
 
58
58
  DataSourcesCard.defaultProps = {
59
- title:'100+ Data Sources',
59
+ title: '100+ Data Sources',
60
60
  description: 'description1',
61
61
  CTA: {
62
- text:'Button Label',
62
+ text: 'Button Label',
63
63
  },
64
64
  video_url: 'https://res.cloudinary.com/dh8fp23nd/video/upload/v1654760488/samples/sea-turtle.mp4'
65
65
  }
@@ -11087,6 +11087,10 @@ select{
11087
11087
  border-radius: 0px;
11088
11088
  }
11089
11089
 
11090
+ .db\:rounded-br-3xl{
11091
+ border-bottom-right-radius: 1.5rem;
11092
+ }
11093
+
11090
11094
  .db\:rounded-tl-3xl{
11091
11095
  border-top-left-radius: 1.5rem;
11092
11096
  }