hds-web 1.9.1 → 1.9.3
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 +2 -2
- package/dist/index.js +6 -6
- package/package.json +1 -1
- package/src/HDS/components/Cards/Misc/imageBadgeCard.js +4 -7
- package/src/HDS/modules/Cards/dataSourceCard.js +52 -0
- package/src/HDS/modules/Cards/index.js +1 -0
- package/src/HDS/modules/index.js +2 -1
- package/src/styles/tailwind.css +42 -0
package/package.json
CHANGED
@@ -7,11 +7,8 @@ export default function ImageBadgeCard (card){
|
|
7
7
|
return(
|
8
8
|
<>
|
9
9
|
<div className={`${HDSColor(card.cardBg)}bg-neutral-0 max-w-[700px] min-h-[245px] rounded-3xl p-8`}>
|
10
|
-
<div className='flex flex-row
|
11
|
-
|
12
|
-
|
13
|
-
<div className='max-w-[400px]'>
|
14
|
-
|
10
|
+
<div className='flex flex-col tb:flex-row justify-between gap-4'>
|
11
|
+
<div className='tb:max-w-[400px]'>
|
15
12
|
<Badges
|
16
13
|
color={card.badge.color}
|
17
14
|
children={card.badge.label}
|
@@ -20,8 +17,8 @@ return(
|
|
20
17
|
<Typography textStyle='h4' className='mt-2 text-neutral-1000'>{card.title}</Typography>
|
21
18
|
<Typography textStyle='sub2' className='mt-2 text-neutral-600'>{card.subTitle}</Typography>
|
22
19
|
</div>
|
23
|
-
<div>
|
24
|
-
<img src={card.imageUrl} alt={card.title} className='max-w-[290px] max-h-[181px]' />
|
20
|
+
<div className="flex justify-center">
|
21
|
+
<img src={card.imageUrl} alt={card.title} className='tb:max-w-[290px] tb:max-h-[181px]' />
|
25
22
|
|
26
23
|
</div>
|
27
24
|
</div>
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { Typography } from '../../foundation/Typography'
|
3
|
+
import { HDSButton} from '../../components/Buttons';
|
4
|
+
|
5
|
+
export default function DataSourcesCard(props) {
|
6
|
+
return (
|
7
|
+
<>
|
8
|
+
<div className="flex flex-col-reverse px-6 py-10 tb:px-0 tb:py-0 tb:flex-row tb:gap-[132px]">
|
9
|
+
|
10
|
+
<div className="flex flex-col tb:pl-20 tb:py-[104px]">
|
11
|
+
{props.title && props.description
|
12
|
+
&& (<div className="flex flex-col gap-4">
|
13
|
+
<Typography textStyle='h3' className='text-neutral-1000 tb:block hidden'>{props.title}</Typography>
|
14
|
+
<Typography textStyle='sub2' className='text-neutral-600 tb:mt-0 mt-4 '>{props.description}</Typography>
|
15
|
+
</div>)}
|
16
|
+
{props.CTA &&
|
17
|
+
<div className="mt-4 tb:mt-6 flex">
|
18
|
+
<a href={props.CTA['link']}>
|
19
|
+
<HDSButton
|
20
|
+
label={props.CTA['text']}
|
21
|
+
type={props.CTA['type'] || 'secondary'}
|
22
|
+
size='md'
|
23
|
+
rightAnimatedArrowColor="#3970FD"
|
24
|
+
/>
|
25
|
+
</a>
|
26
|
+
</div>}
|
27
|
+
</div>
|
28
|
+
{props.video_url && <div className="flex mt-4 tb:mt-0 tb:items-end">
|
29
|
+
<video
|
30
|
+
autoPlay
|
31
|
+
loop
|
32
|
+
muted
|
33
|
+
src={props.video_url}
|
34
|
+
className=" rounded-xl tb:rounded-none tb:rounded-tl-3xl"
|
35
|
+
/>
|
36
|
+
</div>}
|
37
|
+
<div className="tb:hidden pt-10">
|
38
|
+
<Typography textStyle='h3' className='text-neutral-1000'>{props.title}</Typography>
|
39
|
+
</div>
|
40
|
+
</div>
|
41
|
+
</>
|
42
|
+
)
|
43
|
+
}
|
44
|
+
|
45
|
+
DataSourcesCard.defaultProps = {
|
46
|
+
title:'100+ Data Sources',
|
47
|
+
description: 'description1',
|
48
|
+
CTA: {
|
49
|
+
text:'Button Label',
|
50
|
+
},
|
51
|
+
video_url: 'https://res.cloudinary.com/dh8fp23nd/video/upload/v1654760488/samples/sea-turtle.mp4'
|
52
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as DataSourcesCard } from './dataSourceCard';
|
package/src/HDS/modules/index.js
CHANGED
package/src/styles/tailwind.css
CHANGED
@@ -9892,6 +9892,10 @@ select{
|
|
9892
9892
|
margin-top: -4px;
|
9893
9893
|
}
|
9894
9894
|
|
9895
|
+
.tb\:mt-6{
|
9896
|
+
margin-top: 1.5rem;
|
9897
|
+
}
|
9898
|
+
|
9895
9899
|
.tb\:block{
|
9896
9900
|
display: block;
|
9897
9901
|
}
|
@@ -9920,6 +9924,10 @@ select{
|
|
9920
9924
|
max-height: 25.25rem;
|
9921
9925
|
}
|
9922
9926
|
|
9927
|
+
.tb\:max-h-\[181px\]{
|
9928
|
+
max-height: 181px;
|
9929
|
+
}
|
9930
|
+
|
9923
9931
|
.tb\:w-1\/2{
|
9924
9932
|
width: 50%;
|
9925
9933
|
}
|
@@ -9978,6 +9986,10 @@ select{
|
|
9978
9986
|
max-width: 530px;
|
9979
9987
|
}
|
9980
9988
|
|
9989
|
+
.tb\:max-w-\[400px\]{
|
9990
|
+
max-width: 400px;
|
9991
|
+
}
|
9992
|
+
|
9981
9993
|
.tb\:snap-always{
|
9982
9994
|
scroll-snap-stop: always;
|
9983
9995
|
}
|
@@ -10002,6 +10014,10 @@ select{
|
|
10002
10014
|
flex-direction: column-reverse;
|
10003
10015
|
}
|
10004
10016
|
|
10017
|
+
.tb\:items-end{
|
10018
|
+
align-items: flex-end;
|
10019
|
+
}
|
10020
|
+
|
10005
10021
|
.tb\:items-center{
|
10006
10022
|
align-items: center;
|
10007
10023
|
}
|
@@ -10042,6 +10058,10 @@ select{
|
|
10042
10058
|
gap: 31.5rem;
|
10043
10059
|
}
|
10044
10060
|
|
10061
|
+
.tb\:gap-\[132px\]{
|
10062
|
+
gap: 132px;
|
10063
|
+
}
|
10064
|
+
|
10045
10065
|
.tb\:gap-x-16{
|
10046
10066
|
-webkit-column-gap: 4rem;
|
10047
10067
|
column-gap: 4rem;
|
@@ -10055,6 +10075,14 @@ select{
|
|
10055
10075
|
border-radius: 1.5rem;
|
10056
10076
|
}
|
10057
10077
|
|
10078
|
+
.tb\:rounded-none{
|
10079
|
+
border-radius: 0px;
|
10080
|
+
}
|
10081
|
+
|
10082
|
+
.tb\:rounded-tl-3xl{
|
10083
|
+
border-top-left-radius: 1.5rem;
|
10084
|
+
}
|
10085
|
+
|
10058
10086
|
.tb\:border{
|
10059
10087
|
border-width: 1px;
|
10060
10088
|
}
|
@@ -10122,6 +10150,16 @@ select{
|
|
10122
10150
|
padding-bottom: 3.5rem;
|
10123
10151
|
}
|
10124
10152
|
|
10153
|
+
.tb\:py-0{
|
10154
|
+
padding-top: 0px;
|
10155
|
+
padding-bottom: 0px;
|
10156
|
+
}
|
10157
|
+
|
10158
|
+
.tb\:py-\[104px\]{
|
10159
|
+
padding-top: 104px;
|
10160
|
+
padding-bottom: 104px;
|
10161
|
+
}
|
10162
|
+
|
10125
10163
|
.tb\:pb-0{
|
10126
10164
|
padding-bottom: 0px;
|
10127
10165
|
}
|
@@ -10166,6 +10204,10 @@ select{
|
|
10166
10204
|
padding-top: 2.875rem;
|
10167
10205
|
}
|
10168
10206
|
|
10207
|
+
.tb\:pl-20{
|
10208
|
+
padding-left: 5rem;
|
10209
|
+
}
|
10210
|
+
|
10169
10211
|
.tb\:text-left{
|
10170
10212
|
text-align: left;
|
10171
10213
|
}
|