hds-web 1.22.5 → 1.22.7

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.22.5",
3
+ "version": "1.22.7",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -1,3 +1,3 @@
1
1
  <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M4 12H20M20 12L14 6M20 12L14 18" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
2
+ <path d="M4 12H20M20 12L14 6M20 12L14 18" stroke-linecap="round" stroke-linejoin="round"/>
3
3
  </svg>
@@ -18,11 +18,21 @@ export default function AnnouncementSM(props) {
18
18
  return (
19
19
  <div className={`${bgClass} rounded-2xl tb:rounded-full shadow p-3 tb:py-2 tb:px-2 inline-flex items-center`}>
20
20
  <div className="block items-center tb:flex">
21
- <Typography textStyle="body2-medium" className={`inline-flex pl-0 pb-1 tb:px-3 rounded-full mr-4 min-w-fit ${tagColorVariants[props.tagColor]}`}>{props.tagText}</Typography>
22
- <a href={props.linkUrl} className="pl-0 px-3 block tb:px-0 tb:pb-0">
23
- <Typography textStyle="body2-medium" className={`${linkTextClass} group flex items-center`}>
21
+ <Typography
22
+ textStyle="body2-medium"
23
+ className={`inline-flex pl-0 tb:py-1 tb:px-3 rounded-full mr-4 min-w-fit ${tagColorVariants[props.tagColor]}`}>
24
+ {props.tagText}
25
+ </Typography>
26
+ <a href={props.linkUrl}
27
+ className="pl-0 px-3 block tb:px-0 tb:pb-0">
28
+ <Typography
29
+ textStyle="body2-medium"
30
+ className={`${linkTextClass} group flex items-center`}>
24
31
  {props.linkText}
25
- <Icon height={'block w-6 h-6 stroke-[2px] ml-3 transition ease-in-out group-hover:translate-x-[5px]'} variant='arrownarrowright' strokeClass='stroke-blue-500' />
32
+ <Icon
33
+ height={'block w-6 h-6 stroke-2 ml-2 mr-1 transition ease-in-out group-hover:translate-x-[5px]'}
34
+ variant='arrownarrowright'
35
+ strokeClass='stroke-blue-500' />
26
36
  </Typography>
27
37
  </a>
28
38
  </div>
@@ -58,7 +58,7 @@ export default function StoryCard(props) {
58
58
  <div className="translate-y-8 transition-all group-hover/sc:translate-y-0 opacity-0 group-hover/sc:opacity-100 duration-300 group-hover/sc:flex">
59
59
  <div className="flex">
60
60
  <HDSButton
61
- label={props.readMoreBtn.cta_text}
61
+ label={props.readMoreBtn.cta_text ?? 'Read More'}
62
62
  type='secondaryLink'
63
63
  leftIconVariant='none'
64
64
  rightIconVariant='none'
@@ -55,7 +55,7 @@ export default function StoryCardXL(props) {
55
55
  <a href={props.CTA['url']}>
56
56
  <HDSButton
57
57
  label={props.CTA['text']}
58
- type={props.CTA['type'] || 'secondary'}
58
+ type={'secondary'}
59
59
  size='md'
60
60
  rightAnimatedArrowColor="#3970FD"
61
61
  />
@@ -11134,6 +11134,11 @@ select{
11134
11134
  padding-bottom: 0.5rem;
11135
11135
  }
11136
11136
 
11137
+ .tb\:py-1{
11138
+ padding-top: 0.25rem;
11139
+ padding-bottom: 0.25rem;
11140
+ }
11141
+
11137
11142
  .tb\:pb-0{
11138
11143
  padding-bottom: 0px;
11139
11144
  }