hds-web 1.1.8 → 1.1.9
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/Buttons/button.js +1 -1
- package/src/HDS/components/Cards/Misc/talkCard.js +1 -1
- package/src/HDS/components/Hero/h2.js +48 -32
- package/src/styles/tailwind.css +4 -0
package/package.json
CHANGED
@@ -28,7 +28,7 @@ const Buttonclasses = {
|
|
28
28
|
},
|
29
29
|
'tonal': {
|
30
30
|
'default': {
|
31
|
-
'base': 'db:w-fit tb:w-fit w-full
|
31
|
+
'base': 'db:w-fit tb:w-fit w-full justify-center bg-blue-200 text-blue-600',
|
32
32
|
'hover': 'hover:bg-blue-700 hover:text-neutral-0 hover:shadow-md hover:shadow hover:transition-all hover:ease-out hover:duration-300',
|
33
33
|
'focus': 'focus:bg-blue-100 focus:text-blue-600 focus:shadow-[0px_0px_0px_4px_#DFE8FF] focus:outline-none',
|
34
34
|
},
|
@@ -26,7 +26,7 @@ export default function TalkCard(props) {
|
|
26
26
|
/>
|
27
27
|
|
28
28
|
<Typography className='my-2 text-blue-800' textStyle='h5'>{props.title}</Typography>
|
29
|
-
{props.para && <Typography className='
|
29
|
+
{props.para && <Typography className='text-neutral-700 [&>p]:pb-2 last:[&>p]:pb-0 [&>ul]:ps-4 [&>ul>li]:list-disc [&>ul>li]:pb-2 [&>ul>li]:last:pb-0' textStyle='body1'>
|
30
30
|
<ReactMarkdown>{props.para}</ReactMarkdown>
|
31
31
|
</Typography>}
|
32
32
|
|
@@ -9,6 +9,19 @@ import { v4 as uuidv4 } from 'uuid';
|
|
9
9
|
|
10
10
|
export default function HeroSecondary({ heroData, logo, scrollArrow, fontSize }) {
|
11
11
|
const [valumeMuteIcon, setValumeMuteIcon] = useState("volumex");
|
12
|
+
|
13
|
+
const scrollToNextDiv = (element) => {
|
14
|
+
const nextDiv = element.nextElementSibling;
|
15
|
+
if (nextDiv) {
|
16
|
+
nextDiv.scrollIntoView({ behavior: 'smooth' });
|
17
|
+
}
|
18
|
+
};
|
19
|
+
|
20
|
+
const handleClick = (event) => {
|
21
|
+
const arrowIcon = event.target;
|
22
|
+
const arrowContainer = arrowIcon.parentNode;
|
23
|
+
scrollToNextDiv(arrowContainer);
|
24
|
+
};
|
12
25
|
const videoMute = () => {
|
13
26
|
if (heroData.video_url) {
|
14
27
|
const videoEle = document.getElementById("hero_vid");
|
@@ -95,34 +108,34 @@ export default function HeroSecondary({ heroData, logo, scrollArrow, fontSize })
|
|
95
108
|
const heroButton = () => (
|
96
109
|
heroData.buttons && (
|
97
110
|
<div className={" gap-6 flex items-center tb:justify-center tb-l:justify-start db:justify-start pt-6" + ((heroData.video_url) ? " tb:justify-center" : " tb:justify-start")}>
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
111
|
+
|
112
|
+
|
113
|
+
{heroData.buttons[0] &&
|
114
|
+
<HDSButton
|
102
115
|
type="secondary"
|
103
116
|
btnTextColorClass={HDSColor('text-neutral-0')}
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
117
|
+
leftIconVariant='none'
|
118
|
+
rightIconVariant='none'
|
119
|
+
label={heroData.buttons[0].cta_text}
|
120
|
+
state='default'
|
121
|
+
size='lg'
|
122
|
+
rightAnimatedArrow='true'
|
123
|
+
rightAnimatedArrowColor='#ffffff'
|
124
|
+
/>
|
125
|
+
}
|
126
|
+
{heroData.buttons[1] && <HDSButton
|
127
|
+
type="primaryLink"
|
128
|
+
btnTextColorClass={HDSColor('text-neutral-0')}
|
129
|
+
leftIconVariant='none'
|
130
|
+
rightIconVariant='none'
|
131
|
+
label={heroData.buttons[1].cta_text}
|
132
|
+
state='default'
|
133
|
+
size='lg'
|
134
|
+
rightAnimatedArrow='true'
|
135
|
+
rightAnimatedArrowColor='#ffffff'
|
136
|
+
/>}
|
137
|
+
|
138
|
+
|
126
139
|
</div>
|
127
140
|
)
|
128
141
|
)
|
@@ -158,7 +171,7 @@ export default function HeroSecondary({ heroData, logo, scrollArrow, fontSize })
|
|
158
171
|
</div>
|
159
172
|
)
|
160
173
|
)
|
161
|
-
|
174
|
+
|
162
175
|
const videoGradientBg = HDSColor(heroData.video_gradient_bg);
|
163
176
|
return (
|
164
177
|
<div className="">
|
@@ -188,12 +201,12 @@ export default function HeroSecondary({ heroData, logo, scrollArrow, fontSize })
|
|
188
201
|
|
189
202
|
{
|
190
203
|
heroData.description && (
|
191
|
-
<Typography textStyle="sub1" className="
|
204
|
+
<Typography textStyle="sub1" className="db:text-left text-neutral-0 [&>*]:mb-8 last:[&>*]:mb-0">{heroData.description}</Typography>
|
192
205
|
)
|
193
206
|
}
|
194
207
|
{heroButton(heroData)}
|
195
208
|
|
196
|
-
|
209
|
+
|
197
210
|
</div>
|
198
211
|
{imageCard(heroData)}
|
199
212
|
</div>
|
@@ -203,9 +216,12 @@ export default function HeroSecondary({ heroData, logo, scrollArrow, fontSize })
|
|
203
216
|
</div>
|
204
217
|
</div>
|
205
218
|
{
|
206
|
-
scrollArrow && (
|
207
|
-
|
208
|
-
|
219
|
+
heroData.scrollArrow && (
|
220
|
+
<div className="flex justify-center flex-row" onClick={(e) => scrollToNextDiv(e.currentTarget)}>
|
221
|
+
<div className="flex bg-neutral-0 shadow-md -mt-5 animate-bounce justify-center rounded-full items-center w-12 h-12" >
|
222
|
+
<Icon variant='chevrondowndouble' strokeClass='stroke-neutral-800' height='h-6 w-6' />
|
223
|
+
</div>
|
224
|
+
</div>
|
209
225
|
)
|
210
226
|
}
|
211
227
|
</div>
|