hds-web 1.21.3 → 1.21.5
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 +1 -1
- package/dist/index.es.css +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/HDS/components/Cards/Announcement/announcementMd.js +1 -1
- package/src/HDS/components/Cards/StoryCard/storyxl.js +19 -19
- package/src/HDS/components/Carousels/customerStories.js +18 -22
- package/src/HDS/components/Hero/h2.js +2 -3
- package/src/HDS/components/Tables/tableA.js +0 -1
- package/src/HDS/components/Tables/tableC.js +0 -1
- package/src/styles/tailwind.css +8 -6
package/package.json
CHANGED
@@ -45,7 +45,7 @@ export default function AnnouncementMd(props) {
|
|
45
45
|
<a href={props.linkUrl} className="block pb-1 tb:pb-0">
|
46
46
|
<Typography textStyle="body2-medium" className={`${linkTextClass} group flex items-center [&>div]:inline-block`}>
|
47
47
|
{props.linkText}
|
48
|
-
<Icon height={' hidden tb:block w-6 h-6 stroke-[2px] ml-3 transition ease-in-out group-hover:translate-x-[5px]'} variant='arrownarrowright' strokeClass='stroke-blue-500' />
|
48
|
+
<Icon height={' hds-hidden tb:block w-6 h-6 stroke-[2px] ml-3 transition ease-in-out group-hover:translate-x-[5px]'} variant='arrownarrowright' strokeClass='stroke-blue-500' />
|
49
49
|
</Typography>
|
50
50
|
</a>
|
51
51
|
</div>
|
@@ -6,7 +6,7 @@ import { Icon } from "../../common-components";
|
|
6
6
|
export default function StoryCardXL(props) {
|
7
7
|
return (
|
8
8
|
<>
|
9
|
-
<div className="flex flex-col-reverse px-6 py-10 db-s:px-0 db-s:py-0 db-s:flex-row db:gap-
|
9
|
+
<div className="flex flex-col-reverse px-6 py-10 db-s:px-0 db-s:py-0 db-s:flex-row db:gap-2 max-w-7xl">
|
10
10
|
|
11
11
|
<div className="flex flex-col db-s:pl-20 db-s:pt-20 db-s:pb-[74px]">
|
12
12
|
{
|
@@ -30,18 +30,18 @@ export default function StoryCardXL(props) {
|
|
30
30
|
(
|
31
31
|
<div>
|
32
32
|
<div className="flex flex-col gap-4">
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
33
|
+
{props.heroList.map((value, index) => (
|
34
|
+
<div key={index} className='flex gap-5'>
|
35
|
+
<Icon
|
36
|
+
height='h-8 w-8 stroke-2' variant={value.heroIconVariant} strokeClass='stroke-neutral-800' />
|
37
|
+
<Typography
|
38
|
+
textStyle='sub2' className='text-neutral-700' >
|
39
|
+
{value.heroListTitle}
|
40
|
+
</Typography>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
))
|
42
44
|
|
43
|
-
))
|
44
|
-
|
45
45
|
|
46
46
|
}
|
47
47
|
|
@@ -122,18 +122,18 @@ StoryCardXL.defaultProps = {
|
|
122
122
|
CTA: {
|
123
123
|
text: 'Button Label',
|
124
124
|
},
|
125
|
-
heroList:[
|
125
|
+
heroList: [
|
126
126
|
{
|
127
|
-
heroIconVariant:'calendar',
|
128
|
-
heroListTitle:'100 days from concept to production'
|
127
|
+
heroIconVariant: 'calendar',
|
128
|
+
heroListTitle: '100 days from concept to production'
|
129
129
|
},
|
130
130
|
{
|
131
|
-
heroIconVariant:'database03',
|
132
|
-
heroListTitle:'Vastly improved access to relevant data'
|
131
|
+
heroIconVariant: 'database03',
|
132
|
+
heroListTitle: 'Vastly improved access to relevant data'
|
133
133
|
},
|
134
134
|
{
|
135
|
-
heroIconVariant:'settings01',
|
136
|
-
heroListTitle:'Simpler data and API management'
|
135
|
+
heroIconVariant: 'settings01',
|
136
|
+
heroListTitle: 'Simpler data and API management'
|
137
137
|
}
|
138
138
|
]
|
139
139
|
// video_url: 'https://res.cloudinary.com/dh8fp23nd/video/upload/v1654760488/samples/sea-turtle.mp4'
|
@@ -2,15 +2,13 @@ import React, { useState, useEffect } from 'react';
|
|
2
2
|
import { AnimatePresence, motion } from 'framer-motion';
|
3
3
|
import { Icon } from '../common-components';
|
4
4
|
|
5
|
-
|
5
|
+
export default function Carousels ({ components, variants }) {
|
6
6
|
const [FlowDirection, setFlowDirection] = useState(true);
|
7
7
|
const [CenterId, setCenterId] = useState(0);
|
8
8
|
const [LeftId, setLeftId] = useState(components.length - 1);
|
9
9
|
const [RightId, setRightId] = useState(1);
|
10
|
-
|
11
10
|
const [activeSlide, setActiveSlide] = useState(0);
|
12
11
|
const [isAutoSliding, setIsAutoSliding] = useState(true);
|
13
|
-
|
14
12
|
const handleAutoSlide = () => {
|
15
13
|
if (isAutoSliding) {
|
16
14
|
nextBtn();
|
@@ -18,12 +16,10 @@ const Carousels = ({ components, variants }) => {
|
|
18
16
|
};
|
19
17
|
|
20
18
|
useEffect(() => {
|
21
|
-
const intervalId = setInterval(handleAutoSlide,
|
22
|
-
return () => clearInterval(intervalId);
|
19
|
+
const intervalId = setInterval(handleAutoSlide, 3000);
|
20
|
+
return () => clearInterval(intervalId);
|
23
21
|
}, [CenterId, isAutoSliding]);
|
24
22
|
|
25
|
-
|
26
|
-
|
27
23
|
const nextBtn = () => {
|
28
24
|
if (LeftId === components.length - 1) {
|
29
25
|
setLeftId(0);
|
@@ -46,7 +42,6 @@ const Carousels = ({ components, variants }) => {
|
|
46
42
|
|
47
43
|
setFlowDirection(true);
|
48
44
|
};
|
49
|
-
|
50
45
|
const prevBtn = () => {
|
51
46
|
setFlowDirection(false);
|
52
47
|
if (LeftId === 0) {
|
@@ -76,15 +71,17 @@ const Carousels = ({ components, variants }) => {
|
|
76
71
|
const handleMouseLeave = () => {
|
77
72
|
setIsAutoSliding(true);
|
78
73
|
};
|
74
|
+
if(components){
|
79
75
|
|
76
|
+
|
80
77
|
return (
|
81
|
-
<div
|
82
|
-
|
83
|
-
|
84
|
-
|
78
|
+
<div
|
79
|
+
className='h-full'
|
80
|
+
onMouseEnter={handleMouseEnter}
|
81
|
+
onMouseLeave={handleMouseLeave}
|
85
82
|
>
|
86
|
-
<div
|
87
|
-
|
83
|
+
<div
|
84
|
+
className="hidden db-s:grid relative h-full"
|
88
85
|
>
|
89
86
|
<motion.div className=" ">
|
90
87
|
<AnimatePresence initial={false}>
|
@@ -130,7 +127,7 @@ const Carousels = ({ components, variants }) => {
|
|
130
127
|
))}
|
131
128
|
</div> */}
|
132
129
|
</div>
|
133
|
-
<div className="mt-
|
130
|
+
<div className="hidden db-s:flex mt-10 ">
|
134
131
|
<div className="gap-4 w-full h-full flex justify-center">
|
135
132
|
<motion.button
|
136
133
|
initial={{ opacity: 0, scale: 0 }}
|
@@ -162,19 +159,18 @@ const Carousels = ({ components, variants }) => {
|
|
162
159
|
<Icon height={'h-6 w-6'} variant={'chevronright'} strokeClass='stroke-neutral-800' />
|
163
160
|
</motion.button>
|
164
161
|
</div>
|
165
|
-
</div>
|
166
|
-
<div className='db-s:hidden flex flex-row overflow-scroll scrollbar-hide gap-2 mb-m:gap-4 tb-m:gap-10'>
|
162
|
+
</div>
|
163
|
+
<div className='db-s:hidden flex flex-row overflow-scroll pb-10 pt-4 tb:pb-16 tb:pt-10 px-4 scrollbar-hide gap-2 mb-m:gap-4 tb-m:gap-10'>
|
167
164
|
{components.map((component, index) => (
|
168
165
|
<React.Fragment key={index}>
|
169
|
-
<div className='tb-
|
170
|
-
|
166
|
+
<div className='tb-l:min-w-[700px] tb:min-w-[500px] mb-s:min-w-[350px]'>
|
167
|
+
{component}
|
171
168
|
</div>
|
172
169
|
</React.Fragment>
|
173
170
|
))}
|
174
171
|
</div>
|
175
172
|
</div>
|
176
173
|
);
|
174
|
+
}
|
175
|
+
else return <></>;
|
177
176
|
};
|
178
|
-
|
179
|
-
|
180
|
-
export default Carousels;
|
@@ -5,7 +5,6 @@ import { HDSButton } from "../Buttons";
|
|
5
5
|
import { HDSColor } from "../../foundation/ColorPalette";
|
6
6
|
import { Icon } from "../common-components";
|
7
7
|
import { LinkCard } from '../Cards/Link';
|
8
|
-
import { v4 as uuidv4 } from 'uuid';
|
9
8
|
|
10
9
|
export default function HeroSecondary({ heroData, logo, scrollArrow, fontSize }) {
|
11
10
|
const [valumeMuteIcon, setValumeMuteIcon] = useState("volumex");
|
@@ -144,8 +143,8 @@ export default function HeroSecondary({ heroData, logo, scrollArrow, fontSize })
|
|
144
143
|
return (
|
145
144
|
heroData.linkCards && (
|
146
145
|
<div className="flex mt-16 px-20 pb-20 gap-6 justify-center">
|
147
|
-
{heroData.linkCards.map((card) => (
|
148
|
-
<div key={
|
146
|
+
{heroData.linkCards.map((card, index) => (
|
147
|
+
<div key={index} className="w-full">
|
149
148
|
<LinkCard
|
150
149
|
linkUrl={card.linkUrl}
|
151
150
|
cardBgColor={card.cardBgColor}
|
package/src/styles/tailwind.css
CHANGED
@@ -10926,6 +10926,10 @@ select{
|
|
10926
10926
|
padding-bottom: 2.5rem;
|
10927
10927
|
}
|
10928
10928
|
|
10929
|
+
.tb\:pb-16{
|
10930
|
+
padding-bottom: 4rem;
|
10931
|
+
}
|
10932
|
+
|
10929
10933
|
.tb\:pb-8{
|
10930
10934
|
padding-bottom: 2rem;
|
10931
10935
|
}
|
@@ -11704,12 +11708,6 @@ select{
|
|
11704
11708
|
}
|
11705
11709
|
}
|
11706
11710
|
|
11707
|
-
@media (min-width: 970px){
|
11708
|
-
.tb-xl\:min-w-\[800px\]{
|
11709
|
-
min-width: 800px;
|
11710
|
-
}
|
11711
|
-
}
|
11712
|
-
|
11713
11711
|
@media (min-width: 1024px){
|
11714
11712
|
.lg\:flex{
|
11715
11713
|
display: flex;
|
@@ -11997,6 +11995,10 @@ select{
|
|
11997
11995
|
gap: 0px;
|
11998
11996
|
}
|
11999
11997
|
|
11998
|
+
.db\:gap-2{
|
11999
|
+
gap: 0.5rem;
|
12000
|
+
}
|
12001
|
+
|
12000
12002
|
.db\:gap-24{
|
12001
12003
|
gap: 6rem;
|
12002
12004
|
}
|