hds-web 1.18.9 → 1.19.0
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
@@ -19,29 +19,31 @@ export default function AnnouncementMd(props) {
|
|
19
19
|
const tagClass = props.tagColor ? props.tagColor : 'purple';
|
20
20
|
if (isBannerActive) {
|
21
21
|
return (
|
22
|
-
<div className=
|
23
|
-
<div className=
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
<
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
<
|
38
|
-
{
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
<
|
22
|
+
<div className="py-6">
|
23
|
+
<div className={`${bgClass} flex justify-between relative rounded-2xl tb:rounded-full shadow p-4 tb:justify-center items-center`}>
|
24
|
+
<div className="block items-center tb:flex tb:justify-center">
|
25
|
+
{
|
26
|
+
props.brandImg && (
|
27
|
+
<div className="pl-3 tb:pl-14">
|
28
|
+
<img className="max-h-[34px]" src={props.brandImg} alt={props.brandImgAlt} />
|
29
|
+
</div>
|
30
|
+
)
|
31
|
+
}
|
32
|
+
{
|
33
|
+
props.tagText && (
|
34
|
+
<Typography textStyle="body2-medium" className={`inline-flex py-1 px-3 ml-0 tb:ml-14 tb-m:ml-6 rounded-full mr-4 min-w-fit ${tagColorVariants[tagClass]}`}>{props.tagText}</Typography>
|
35
|
+
)
|
36
|
+
}
|
37
|
+
<a href={props.linkUrl} className="px-3 block tb:px-0 pb-1 tb:pb-0">
|
38
|
+
<Typography textStyle="body2-medium" className={`${linkTextClass} group flex items-center [&>div]:inline-block`}>
|
39
|
+
{props.linkText}
|
40
|
+
<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' />
|
41
|
+
</Typography>
|
42
|
+
</a>
|
43
|
+
</div>
|
44
|
+
<div className=" static mx-3 tb:mx-0 tb:absolute top-1/2 tb:-translate-y-1/2 tb:left-6 cursor-pointer w-8 min-w-[32px] h-8 rounded-full bg-neutral-100 flex items-center justify-center" onClick={()=>toggleBanner(false)}>
|
45
|
+
<Icon height={'block w-6 h-6 stroke-[2px] transition ease-in-out'} variant='xclose' strokeClass='stroke-neutral-800' />
|
46
|
+
</div>
|
45
47
|
</div>
|
46
48
|
</div>
|
47
49
|
)
|
package/src/styles/tailwind.css
CHANGED
@@ -1323,6 +1323,10 @@ select{
|
|
1323
1323
|
margin-bottom: 1px;
|
1324
1324
|
}
|
1325
1325
|
|
1326
|
+
.ml-0{
|
1327
|
+
margin-left: 0px;
|
1328
|
+
}
|
1329
|
+
|
1326
1330
|
.ml-1{
|
1327
1331
|
margin-left: 0.25rem;
|
1328
1332
|
}
|
@@ -1666,6 +1670,10 @@ select{
|
|
1666
1670
|
max-height: 26.25;
|
1667
1671
|
}
|
1668
1672
|
|
1673
|
+
.max-h-\[34px\]{
|
1674
|
+
max-height: 34px;
|
1675
|
+
}
|
1676
|
+
|
1669
1677
|
.max-h-\[530px\]{
|
1670
1678
|
max-height: 530px;
|
1671
1679
|
}
|
@@ -1912,6 +1920,10 @@ select{
|
|
1912
1920
|
min-width: 312px;
|
1913
1921
|
}
|
1914
1922
|
|
1923
|
+
.min-w-\[32px\]{
|
1924
|
+
min-width: 32px;
|
1925
|
+
}
|
1926
|
+
|
1915
1927
|
.min-w-\[48px\]{
|
1916
1928
|
min-width: 48px;
|
1917
1929
|
}
|
@@ -9083,6 +9095,10 @@ select{
|
|
9083
9095
|
animation: spin 1s linear infinite;
|
9084
9096
|
}
|
9085
9097
|
|
9098
|
+
.hover\:cursor-default:hover{
|
9099
|
+
cursor: default;
|
9100
|
+
}
|
9101
|
+
|
9086
9102
|
.hover\:rounded-3xl:hover{
|
9087
9103
|
border-radius: 1.5rem;
|
9088
9104
|
}
|
@@ -10275,6 +10291,14 @@ select{
|
|
10275
10291
|
}
|
10276
10292
|
|
10277
10293
|
@media (min-width: 600px){
|
10294
|
+
.tb\:absolute{
|
10295
|
+
position: absolute;
|
10296
|
+
}
|
10297
|
+
|
10298
|
+
.tb\:left-6{
|
10299
|
+
left: 1.5rem;
|
10300
|
+
}
|
10301
|
+
|
10278
10302
|
.tb\:left-auto{
|
10279
10303
|
left: auto;
|
10280
10304
|
}
|
@@ -10283,6 +10307,11 @@ select{
|
|
10283
10307
|
right: 0px;
|
10284
10308
|
}
|
10285
10309
|
|
10310
|
+
.tb\:mx-0{
|
10311
|
+
margin-left: 0px;
|
10312
|
+
margin-right: 0px;
|
10313
|
+
}
|
10314
|
+
|
10286
10315
|
.tb\:mb-16{
|
10287
10316
|
margin-bottom: 4rem;
|
10288
10317
|
}
|
@@ -10291,6 +10320,10 @@ select{
|
|
10291
10320
|
margin-left: 0px;
|
10292
10321
|
}
|
10293
10322
|
|
10323
|
+
.tb\:ml-14{
|
10324
|
+
margin-left: 3.5rem;
|
10325
|
+
}
|
10326
|
+
|
10294
10327
|
.tb\:mr-4{
|
10295
10328
|
margin-right: 1rem;
|
10296
10329
|
}
|
@@ -10443,6 +10476,12 @@ select{
|
|
10443
10476
|
max-width: 763px;
|
10444
10477
|
}
|
10445
10478
|
|
10479
|
+
.tb\:-translate-y-1\/2{
|
10480
|
+
--tw-translate-y: -50%;
|
10481
|
+
-webkit-transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
10482
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
10483
|
+
}
|
10484
|
+
|
10446
10485
|
.tb\:snap-always{
|
10447
10486
|
scroll-snap-stop: always;
|
10448
10487
|
}
|
@@ -10535,6 +10574,10 @@ select{
|
|
10535
10574
|
border-radius: 1.5rem;
|
10536
10575
|
}
|
10537
10576
|
|
10577
|
+
.tb\:rounded-full{
|
10578
|
+
border-radius: 9999px;
|
10579
|
+
}
|
10580
|
+
|
10538
10581
|
.tb\:border{
|
10539
10582
|
border-width: 1px;
|
10540
10583
|
}
|
@@ -10649,6 +10692,10 @@ select{
|
|
10649
10692
|
padding-bottom: 2rem;
|
10650
10693
|
}
|
10651
10694
|
|
10695
|
+
.tb\:pl-14{
|
10696
|
+
padding-left: 3.5rem;
|
10697
|
+
}
|
10698
|
+
|
10652
10699
|
.tb\:pr-0{
|
10653
10700
|
padding-right: 0px;
|
10654
10701
|
}
|
@@ -11087,6 +11134,10 @@ select{
|
|
11087
11134
|
top: 9rem;
|
11088
11135
|
}
|
11089
11136
|
|
11137
|
+
.tb-m\:ml-6{
|
11138
|
+
margin-left: 1.5rem;
|
11139
|
+
}
|
11140
|
+
|
11090
11141
|
.tb-m\:mr-0{
|
11091
11142
|
margin-right: 0px;
|
11092
11143
|
}
|
@@ -12011,6 +12062,10 @@ select{
|
|
12011
12062
|
margin-bottom: 0px;
|
12012
12063
|
}
|
12013
12064
|
|
12065
|
+
.\[\&\>div\]\:inline-block>div{
|
12066
|
+
display: inline-block;
|
12067
|
+
}
|
12068
|
+
|
12014
12069
|
.\[\&\>p\>a\]\:text-blue-600>p>a{
|
12015
12070
|
--tw-text-opacity: 1;
|
12016
12071
|
color: rgb(30 86 227 / var(--tw-text-opacity));
|