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/dist/index.css +2 -2
- package/dist/index.es.css +2 -2
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/HDS/assets/icons/arrow-narrow-right.svg +1 -1
- package/src/HDS/components/Cards/Announcement/announcementSm.js +14 -4
- package/src/HDS/components/Cards/StoryCard/storysm.js +1 -1
- package/src/HDS/components/Cards/StoryCard/storyxl.js +1 -1
- package/src/styles/tailwind.css +5 -0
package/package.json
CHANGED
@@ -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-
|
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
|
22
|
-
|
23
|
-
|
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
|
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'
|
package/src/styles/tailwind.css
CHANGED
@@ -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
|
}
|