hds-web 1.10.0 → 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/dist/index.css +2 -2
- package/dist/index.es.css +2 -2
- package/dist/index.es.js +3 -3
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/HDS/components/BadgesCaption/badges.js +4 -1
- package/src/HDS/components/Cards/Misc/imageBadgeCard.js +19 -19
- package/src/HDS/components/Carousels/customCarousel.js +1 -1
- package/src/HDS/modules/Cards/dataSourceCard.js +14 -3
- package/src/styles/tailwind.css +34 -26
package/package.json
CHANGED
@@ -23,7 +23,10 @@ const colorVariants = {
|
|
23
23
|
cyan: 'bg-cyan-200 text-cyan-800 group-hover:bg-cyan-300 ',
|
24
24
|
cyan200: 'bg-cyan-200 text-cyan-600 border border-cyan-400 border border-cyan-400 ',
|
25
25
|
green: 'bg-green-200 text-green-800 group-hover:bg-green-300 ',
|
26
|
-
purple500: 'bg-purple-500 shadow-sm'
|
26
|
+
purple500: 'bg-purple-500 shadow-sm',
|
27
|
+
blue500:'bg-blue-500 shadow-sm',
|
28
|
+
green500:'bg-green-500 shadow-sm'
|
29
|
+
|
27
30
|
}
|
28
31
|
|
29
32
|
export default function Badge({
|
@@ -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
|
5
|
+
export default function ImageBadgeCard(card) {
|
6
6
|
|
7
|
-
return(
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
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
|
-
|
26
|
-
|
27
|
-
)
|
26
|
+
</>
|
27
|
+
)
|
28
28
|
}
|
@@ -101,7 +101,7 @@ export default function CustomCarousel(props) {
|
|
101
101
|
);
|
102
102
|
return (
|
103
103
|
<div className="">
|
104
|
-
<div className="flex flex-row overflow-scroll scrollbar-hide tb:hidden">
|
104
|
+
<div className="flex flex-row overflow-scroll scrollbar-hide gap-4 tb:hidden">
|
105
105
|
{showAllCards
|
106
106
|
? props.cards.map((item, i) => (
|
107
107
|
<div className="my-5" key={i} ref={refs[i]}>
|
@@ -7,7 +7,12 @@ export default function DataSourcesCard(props) {
|
|
7
7
|
<>
|
8
8
|
<div className="flex flex-col-reverse px-6 py-10 db:px-0 db:py-0 db:flex-row db:gap-[132px]">
|
9
9
|
|
10
|
-
<div className="flex flex-col db:pl-20 db:pt-
|
10
|
+
<div className="flex flex-col db:pl-20 db:pt-20 db:pb-[74px]">
|
11
|
+
{
|
12
|
+
props.tagline && (
|
13
|
+
<Typography textStyle='h6' className='text-blue-400 db:block uppercase mb-2 hidden '>{props.tagline}</Typography>
|
14
|
+
)
|
15
|
+
}
|
11
16
|
{props.title && props.description
|
12
17
|
&& (<div className="flex flex-col gap-4">
|
13
18
|
<Typography textStyle='h3' className='text-neutral-1000 db:block hidden'>{props.title}</Typography>
|
@@ -25,7 +30,7 @@ export default function DataSourcesCard(props) {
|
|
25
30
|
</a>
|
26
31
|
</div>}
|
27
32
|
</div>
|
28
|
-
{props.video_url && <div className="flex mt-4 tb:mt-0 tb:items-end db:min-w-[550px]">
|
33
|
+
{props.video_url && <div className="flex mt-4 tb:mt-0 tb:items-end tb:max-w-[600px] db:min-w-[550px]">
|
29
34
|
<video
|
30
35
|
autoPlay
|
31
36
|
loop
|
@@ -34,9 +39,15 @@ export default function DataSourcesCard(props) {
|
|
34
39
|
className=" rounded-xl db:rounded-none db:rounded-tl-3xl"
|
35
40
|
/>
|
36
41
|
</div>}
|
37
|
-
|
42
|
+
|
43
|
+
<div className="db:hidden pb-2">
|
38
44
|
<Typography textStyle='h3' className='text-neutral-1000'>{props.title}</Typography>
|
39
45
|
</div>
|
46
|
+
{
|
47
|
+
props.tagline && (
|
48
|
+
<Typography textStyle='h6' className='text-blue-400 db:hidden uppercase'>{props.tagline}</Typography>
|
49
|
+
)
|
50
|
+
}
|
40
51
|
</div>
|
41
52
|
</>
|
42
53
|
)
|
package/src/styles/tailwind.css
CHANGED
@@ -1534,8 +1534,8 @@ select{
|
|
1534
1534
|
height: 614px;
|
1535
1535
|
}
|
1536
1536
|
|
1537
|
-
.h-\[
|
1538
|
-
height:
|
1537
|
+
.h-\[675px\]{
|
1538
|
+
height: 675px;
|
1539
1539
|
}
|
1540
1540
|
|
1541
1541
|
.h-\[90px\]{
|
@@ -1558,10 +1558,6 @@ select{
|
|
1558
1558
|
height: 100vh;
|
1559
1559
|
}
|
1560
1560
|
|
1561
|
-
.h-\[675px\]{
|
1562
|
-
height: 675px;
|
1563
|
-
}
|
1564
|
-
|
1565
1561
|
.max-h-\[181px\]{
|
1566
1562
|
max-height: 181px;
|
1567
1563
|
}
|
@@ -1678,10 +1674,6 @@ select{
|
|
1678
1674
|
width: 147px;
|
1679
1675
|
}
|
1680
1676
|
|
1681
|
-
.w-\[194px\]{
|
1682
|
-
width: 194px;
|
1683
|
-
}
|
1684
|
-
|
1685
1677
|
.w-\[22\.5rem\]{
|
1686
1678
|
width: 22.5rem;
|
1687
1679
|
}
|
@@ -1776,6 +1768,10 @@ select{
|
|
1776
1768
|
min-width: 24px;
|
1777
1769
|
}
|
1778
1770
|
|
1771
|
+
.min-w-\[312px\]{
|
1772
|
+
min-width: 312px;
|
1773
|
+
}
|
1774
|
+
|
1779
1775
|
.min-w-\[348px\]{
|
1780
1776
|
min-width: 348px;
|
1781
1777
|
}
|
@@ -1798,10 +1794,6 @@ select{
|
|
1798
1794
|
min-width: 100%;
|
1799
1795
|
}
|
1800
1796
|
|
1801
|
-
.min-w-\[312px\]{
|
1802
|
-
min-width: 312px;
|
1803
|
-
}
|
1804
|
-
|
1805
1797
|
.max-w-2xl{
|
1806
1798
|
max-width: 42rem;
|
1807
1799
|
}
|
@@ -9861,14 +9853,14 @@ select{
|
|
9861
9853
|
display: none;
|
9862
9854
|
}
|
9863
9855
|
|
9864
|
-
.tb\:h-full{
|
9865
|
-
height: 100%;
|
9866
|
-
}
|
9867
|
-
|
9868
9856
|
.tb\:h-\[513px\]{
|
9869
9857
|
height: 513px;
|
9870
9858
|
}
|
9871
9859
|
|
9860
|
+
.tb\:h-full{
|
9861
|
+
height: 100%;
|
9862
|
+
}
|
9863
|
+
|
9872
9864
|
.tb\:max-h-\[181px\]{
|
9873
9865
|
max-height: 181px;
|
9874
9866
|
}
|
@@ -9881,6 +9873,10 @@ select{
|
|
9881
9873
|
width: 50%;
|
9882
9874
|
}
|
9883
9875
|
|
9876
|
+
.tb\:w-\[643px\]{
|
9877
|
+
width: 643px;
|
9878
|
+
}
|
9879
|
+
|
9884
9880
|
.tb\:w-\[90\%\]{
|
9885
9881
|
width: 90%;
|
9886
9882
|
}
|
@@ -9895,10 +9891,6 @@ select{
|
|
9895
9891
|
width: 100%;
|
9896
9892
|
}
|
9897
9893
|
|
9898
|
-
.tb\:w-\[643px\]{
|
9899
|
-
width: 643px;
|
9900
|
-
}
|
9901
|
-
|
9902
9894
|
.tb\:min-w-\[18rem\]{
|
9903
9895
|
min-width: 18rem;
|
9904
9896
|
}
|
@@ -9911,6 +9903,14 @@ select{
|
|
9911
9903
|
min-width: 310px;
|
9912
9904
|
}
|
9913
9905
|
|
9906
|
+
.tb\:min-w-\[500px\]{
|
9907
|
+
min-width: 500px;
|
9908
|
+
}
|
9909
|
+
|
9910
|
+
.tb\:min-w-\[300px\]{
|
9911
|
+
min-width: 300px;
|
9912
|
+
}
|
9913
|
+
|
9914
9914
|
.tb\:max-w-\[17rem\]{
|
9915
9915
|
max-width: 17rem;
|
9916
9916
|
}
|
@@ -9947,6 +9947,14 @@ select{
|
|
9947
9947
|
max-width: 700px;
|
9948
9948
|
}
|
9949
9949
|
|
9950
|
+
.tb\:max-w-\[300px\]{
|
9951
|
+
max-width: 300px;
|
9952
|
+
}
|
9953
|
+
|
9954
|
+
.tb\:max-w-\[600px\]{
|
9955
|
+
max-width: 600px;
|
9956
|
+
}
|
9957
|
+
|
9950
9958
|
.tb\:snap-always{
|
9951
9959
|
scroll-snap-stop: always;
|
9952
9960
|
}
|
@@ -11064,10 +11072,6 @@ select{
|
|
11064
11072
|
padding-bottom: 2.5rem;
|
11065
11073
|
}
|
11066
11074
|
|
11067
|
-
.db\:pb-12{
|
11068
|
-
padding-bottom: 3rem;
|
11069
|
-
}
|
11070
|
-
|
11071
11075
|
.db\:pb-28{
|
11072
11076
|
padding-bottom: 7rem;
|
11073
11077
|
}
|
@@ -11088,6 +11092,10 @@ select{
|
|
11088
11092
|
padding-right: 0px;
|
11089
11093
|
}
|
11090
11094
|
|
11095
|
+
.db\:pt-12{
|
11096
|
+
padding-top: 3rem;
|
11097
|
+
}
|
11098
|
+
|
11091
11099
|
.db\:pt-20{
|
11092
11100
|
padding-top: 5rem;
|
11093
11101
|
}
|