hds-web 1.34.0 → 1.34.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hds-web",
3
- "version": "1.34.0",
3
+ "version": "1.34.2",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -117,6 +117,10 @@ export default function HeroLinkCard(props) {
117
117
  );
118
118
  };
119
119
 
120
+ const videoPlayerClass = props?.isLargeVideoPlayer
121
+ ? "grid items-center relative db:max-w-[600px] tb:w-3/5 transition-opacity duration-700 ease-linear "
122
+ : "grid items-center relative db:max-w-[500px] tb:w-1/2 transition-opacity duration-700 ease-linear ";
123
+
120
124
  return (
121
125
  <div>
122
126
  <div className="flex flex-col-reverse tb-l:flex tb-l:flex-row tb-l:justify-between gap-4">
@@ -127,7 +131,7 @@ export default function HeroLinkCard(props) {
127
131
  >
128
132
  {props && tabCard(props)}
129
133
  </div>
130
- <div className="grid items-center relative db:max-w-[600px] tb:w-3/5 transition-opacity duration-700 ease-linear ">
134
+ <div className={videoPlayerClass}>
131
135
  <Typography
132
136
  textStyle="h2"
133
137
  as="h2"
@@ -1,63 +1,75 @@
1
1
  import React from "react";
2
2
  import { Typography } from "../../foundation/Typography";
3
- import { Icon } from '../../components/common-components/Icon';
3
+ import { Icon } from "../../components/common-components/Icon";
4
4
  import { Badges } from "../../components/BadgesCaption";
5
- import {LiveStatus} from "../../components/BadgesCaption";
5
+ import { LiveStatus } from "../../components/BadgesCaption";
6
6
 
7
7
  export default function EventListingCard(props) {
8
8
  return (
9
9
  <div className="group/eventListing rounded-3xl transition-all duration-300">
10
10
  <div className="self-start rounded-t-3xl">
11
- {
12
- props.eventListingImg && (
13
- <div className="relative">
14
- <div>
15
- <img src={props.eventListingImg} alt={props.title} className={` rounded-t-3xl h-[179px] object-cover ${props.imgBG}`} loading="lazy" />
16
- {props.imgTagText && <div className=" scale-75 absolute top-2 -right-1">
11
+ {props.eventListingImg && (
12
+ <div className="relative">
13
+ <div>
14
+ <img
15
+ src={props.eventListingImg}
16
+ alt={props.title}
17
+ className={` rounded-t-3xl h-[179px] object-cover ${props.imgBG}`}
18
+ loading={props?.isCardLazyLoaded ? "lazy" : "eager"}
19
+ />
20
+ {props.imgTagText && (
21
+ <div className=" scale-75 absolute top-2 -right-1">
17
22
  <LiveStatus
18
- statusCircleBgClass={props.circleBG ?? 'bg-red-400'}
19
- statusTextClass='text-neutral-900'
20
- bgClass='bg-neutral-0'
21
- statusText={props.imgTagText ?? 'Concluded'}
23
+ statusCircleBgClass={props.circleBG ?? "bg-red-400"}
24
+ statusTextClass="text-neutral-900"
25
+ bgClass="bg-neutral-0"
26
+ statusText={props.imgTagText ?? "Concluded"}
22
27
  />
23
- </div>}
24
- </div>
25
-
28
+ </div>
29
+ )}
26
30
  </div>
27
- )
28
-
29
- }
31
+ </div>
32
+ )}
30
33
  </div>
31
34
  <div className="border border-neutral-200 group-hover/eventListing:border-opacity-0 transition-all duration-300 rounded-b-3xl">
32
35
  <div className="p-6 pb-0">
33
- {props.eventType &&
36
+ {props.eventType && (
34
37
  <Badges
35
- color={props.badgeColor ?? 'green'}
38
+ color={props.badgeColor ?? "green"}
36
39
  children={props.eventType}
37
40
  />
38
- }
39
- {
40
- props.title && (
41
- <div className="text-neutral-1000 text-hds-m-h5 tb:text-hds-t-h5 py-2">{props.title}</div>
42
- )
43
- }
44
-
41
+ )}
42
+ {props.title && (
43
+ <div className="text-neutral-1000 text-hds-m-h5 tb:text-hds-t-h5 py-2">
44
+ {props.title}
45
+ </div>
46
+ )}
45
47
  </div>
46
48
 
47
- {
48
- props.eventDate && (
49
- <Typography textStyle="body3-medium" className="text-neutral-700 flex items-center duration-300 self-end p-6 pt-0">
50
- {props.eventDate}
51
- <div>
52
-
53
- <Icon className='z-10 stroke-2 group-hover/eventListing:translate-x-[0.15rem] group-hover/eventListing:transition-all group-hover/eventListing:duration-300' height={`h-5 w-5`} variant={'chevronright'} strokeClass='stroke-neutral-500' />
49
+ {props.eventDate && (
50
+ <Typography
51
+ textStyle="body3-medium"
52
+ className="text-neutral-700 flex items-center duration-300 self-end p-6 pt-0"
53
+ >
54
+ {props.eventDate}
55
+ <div>
56
+ <Icon
57
+ className="z-10 stroke-2 group-hover/eventListing:translate-x-[0.15rem] group-hover/eventListing:transition-all group-hover/eventListing:duration-300"
58
+ height={`h-5 w-5`}
59
+ variant={"chevronright"}
60
+ strokeClass="stroke-neutral-500"
61
+ />
54
62
 
55
- <Icon className='invisible stroke-2 group-hover/eventListing:transition-all group-hover/eventListing:delay-100 group-hover/eventListing:visible ' height={`h-5 w-5 -mt-5`} variant='minus01' strokeClass='stroke-neutral-500' />
56
- </div>
57
- </Typography>
58
- )
59
- }
63
+ <Icon
64
+ className="invisible stroke-2 group-hover/eventListing:transition-all group-hover/eventListing:delay-100 group-hover/eventListing:visible "
65
+ height={`h-5 w-5 -mt-5`}
66
+ variant="minus01"
67
+ strokeClass="stroke-neutral-500"
68
+ />
69
+ </div>
70
+ </Typography>
71
+ )}
60
72
  </div>
61
73
  </div>
62
- )
74
+ );
63
75
  }