hds-web 1.33.7 → 1.33.8

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.33.7",
3
+ "version": "1.33.8",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -1,68 +1,85 @@
1
- import React, { Fragment, useState } from 'react';
1
+ import React, { Fragment, useState } from "react";
2
2
  import { Typography } from "../../foundation/Typography";
3
3
  import { HDSButton } from "../Buttons";
4
- import { Icon } from '../common-components/Icon';
4
+ import { Icon } from "../common-components/Icon";
5
5
  import { HDSColor } from "../../foundation/ColorPalette";
6
- import { LinkCard } from '../Cards/Link';
6
+ import { LinkCard } from "../Cards/Link";
7
7
  import ReactMarkdown from "react-markdown";
8
8
 
9
9
  const tabCard = (Content) => (
10
10
  <>
11
- {Content.title &&
11
+ {Content.title && (
12
12
  <Typography
13
- textStyle='h2'
13
+ textStyle="h2"
14
14
  as="h2"
15
- className={` hidden tb:block ${Content.titleTextColor ? HDSColor(Content.titleTextColor) : 'text-neutral-1000'}`}>
15
+ className={` hidden tb:block ${
16
+ Content.titleTextColor
17
+ ? HDSColor(Content.titleTextColor)
18
+ : "text-neutral-1000"
19
+ }`}
20
+ >
16
21
  {Content.title}
17
22
  </Typography>
18
- }
23
+ )}
19
24
 
20
- {Content.subTitle &&
25
+ {Content.subTitle && (
21
26
  <Typography
22
- textStyle='sub1'
23
- className={`mt-2 ${Content.subTitleTextColor ? HDSColor(Content.subTitleTextColor) : 'text-neutral-700'}`}>
27
+ textStyle="sub1"
28
+ className={`mt-2 ${
29
+ Content.subTitleTextColor
30
+ ? HDSColor(Content.subTitleTextColor)
31
+ : "text-neutral-700"
32
+ }`}
33
+ >
24
34
  {Content.subTitle}
25
35
  </Typography>
26
- }
27
- {Content.description &&
36
+ )}
37
+ {Content.description && (
28
38
  <Typography
29
- textStyle='sub2'
30
- className={`mt-2 [&>p]:pb-4 last:[&>p]:pb-0 [&>ul]:ps-4 [&>ul>li]:list-disc [&>ul>li]:pb-1 last:[&>ul>li]:pb-0 [&>p>a]:text-blue-600 [&>p>a:hover]:text-blue-800 ${Content.descriptionTextColor ? HDSColor(Content.subTitleTextColor) : 'text-neutral-700'}`}>
39
+ textStyle="sub2"
40
+ className={`mt-2 [&>p]:pb-4 last:[&>p]:pb-0 [&>ul]:ps-4 [&>ul>li]:list-disc [&>ul>li]:pb-1 last:[&>ul>li]:pb-0 [&>p>a]:text-blue-600 [&>p>a:hover]:text-blue-800 ${
41
+ Content.descriptionTextColor
42
+ ? HDSColor(Content.subTitleTextColor)
43
+ : "text-neutral-700"
44
+ }`}
45
+ >
31
46
  <ReactMarkdown>{Content.description}</ReactMarkdown>
32
47
  </Typography>
33
- }
34
- {
35
- Content.buttons && (
36
- <div className='flex items-center flex-wrap flex-row gap-2 pt-6'>
37
- {Content.buttons.map((btn, index) => (
38
- <Fragment key={index}>
39
- {btn.url && btn.text && btn.type && (
40
- <a href={btn.url} key={index} className='flex '>
41
- <HDSButton
42
- label={btn.text}
43
- type={btn.type}
44
- leftIconVariant='none'
45
- rightIconVariant='none'
46
- state='default'
47
- size='md'
48
- rightAnimatedArrow={true}
49
- rightAnimatedArrowColor={btn.rightAnimatedArrowColor ?? '#3970FD'}
50
- animatedHoverStroke={btn.animatedHoverStroke ?? 'group-hover:stroke-neutral-0'}
51
- btnTextColorClass={btn.btnTextColorClass}
52
- btnTextHoverClass={btn.btnTextHoverClass}
53
- className={btn.className}
54
- // btnTextColorClass={HDSColor('text-neutral-0')}
55
- btnbgHoverClass={btn.btnBgColorClass}
56
- />
57
- </a>)}
58
- </Fragment>
59
- ))
60
- }
61
- </div>
62
- )
63
- }
48
+ )}
49
+ {Content.buttons && (
50
+ <div className="flex items-center flex-wrap flex-row gap-2 pt-6">
51
+ {Content.buttons.map((btn, index) => (
52
+ <Fragment key={index}>
53
+ {btn.url && btn.text && btn.type && (
54
+ <a href={btn.url} key={index} className="flex ">
55
+ <HDSButton
56
+ label={btn.text}
57
+ type={btn.type}
58
+ leftIconVariant="none"
59
+ rightIconVariant="none"
60
+ state="default"
61
+ size="md"
62
+ rightAnimatedArrow={true}
63
+ rightAnimatedArrowColor={
64
+ btn.rightAnimatedArrowColor ?? "#3970FD"
65
+ }
66
+ animatedHoverStroke={
67
+ btn.animatedHoverStroke ?? "group-hover:stroke-neutral-0"
68
+ }
69
+ btnTextColorClass={btn.btnTextColorClass}
70
+ btnTextHoverClass={btn.btnTextHoverClass}
71
+ className={btn.className}
72
+ // btnTextColorClass={HDSColor('text-neutral-0')}
73
+ btnbgHoverClass={btn.btnBgColorClass}
74
+ />
75
+ </a>
76
+ )}
77
+ </Fragment>
78
+ ))}
79
+ </div>
80
+ )}
64
81
  </>
65
- )
82
+ );
66
83
 
67
84
  export default function HeroLinkCard(props) {
68
85
  const [showVideo, setShowVideo] = useState(false);
@@ -74,7 +91,14 @@ export default function HeroLinkCard(props) {
74
91
  props.linkCards && (
75
92
  <div className="flex tb-m:justify-center overflow-auto no-scrollbar db:overflow-visible scrollbar-hide flex-row mt-10 tb:mt-12 db:mt-16 gap-6 tb:flex-row ">
76
93
  {props.linkCards.map((card, index) => (
77
- <div key={index} className={`${HDSColor(card.cardBorderClass)} ${HDSColor(card.cardBgColor)} ${HDSColor(card.cardHoverBg)} transition-all ease-out duration-300 hover:shadow-2xl hover:border-opacity-0 border rounded-2xl w-full min-w-[11.5rem] max-w-[22.313rem]`}>
94
+ <div
95
+ key={index}
96
+ className={`${HDSColor(card.cardBorderClass)} ${HDSColor(
97
+ card.cardBgColor
98
+ )} ${HDSColor(
99
+ card.cardHoverBg
100
+ )} transition-all ease-out duration-300 hover:shadow-2xl hover:border-opacity-0 border rounded-2xl w-full min-w-[11.5rem] max-w-[22.313rem]`}
101
+ >
78
102
  <LinkCard
79
103
  titleTextColor={card.titleTextColor}
80
104
  descTextColor={card.descTextColor}
@@ -93,19 +117,25 @@ export default function HeroLinkCard(props) {
93
117
  );
94
118
  };
95
119
 
96
-
97
120
  return (
98
121
  <div>
99
122
  <div className="flex flex-col-reverse tb-l:flex tb-l:flex-row tb-l:justify-between gap-4">
100
- <div className={`max-w-[435px] db:max-w-[${props.contentWd ? props.contentWd : '535px'}]`}>
101
- {props &&
102
- tabCard(props)}
123
+ <div
124
+ className={`max-w-[435px] db:max-w-[${
125
+ props.contentWd ? props.contentWd : "535px"
126
+ }]`}
127
+ >
128
+ {props && tabCard(props)}
103
129
  </div>
104
- <div className="grid items-center relative db:max-w-[500px] tb:w-1/2 transition-opacity duration-700 ease-linear ">
130
+ <div className="grid items-center relative db:max-w-[600px] tb:w-1/2 transition-opacity duration-700 ease-linear ">
105
131
  <Typography
106
132
  textStyle="h2"
107
133
  as="h2"
108
- className={`tb:hidden pb-6 ${props.titleTextColor ? HDSColor(props.titleTextColor) : 'text-neutral-1000'}`}
134
+ className={`tb:hidden pb-6 ${
135
+ props.titleTextColor
136
+ ? HDSColor(props.titleTextColor)
137
+ : "text-neutral-1000"
138
+ }`}
109
139
  >
110
140
  {props.title}
111
141
  </Typography>
@@ -147,9 +177,7 @@ export default function HeroLinkCard(props) {
147
177
  </div>
148
178
  </div>
149
179
 
150
- <div className="">
151
- {LinkCardsFn(props)}
152
- </div>
180
+ <div className="">{LinkCardsFn(props)}</div>
153
181
  </div>
154
182
  );
155
183
  }