hds-web 1.35.4 → 1.35.5
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,36 +1,34 @@
|
|
1
|
-
import React from "react"
|
2
|
-
import { HDSColor } from "../../../foundation/ColorPalette"
|
3
|
-
import { FlyoutB, FlyoutA, FlyoutC, FlyoutD } from
|
1
|
+
import React from "react"
|
2
|
+
import { HDSColor } from "../../../foundation/ColorPalette"
|
3
|
+
import { FlyoutB, FlyoutA, FlyoutC, FlyoutD } from '../Menu';
|
4
4
|
|
5
5
|
export default function DropdownA(props) {
|
6
6
|
return (
|
7
7
|
<div>
|
8
|
-
|
9
|
-
|
8
|
+
|
9
|
+
<div className='tb-l:flex mb-2 tb-l:mb-0 flex w-full tb-l:bg-neutral-150 flex-col tb-l:flex-row max-w-7xl tb-l:gap-2 rounded-2xl '>
|
10
|
+
|
11
|
+
{props.primaryCard &&
|
10
12
|
<div className="">
|
11
|
-
<div className=
|
12
|
-
<FlyoutB
|
13
|
+
<div className=' bg-neutral-0 rounded-2xl h-full w-full min-w-[250px]'>
|
14
|
+
<FlyoutB
|
15
|
+
{...props.primaryCard}
|
16
|
+
/>
|
13
17
|
</div>
|
18
|
+
|
14
19
|
</div>
|
15
|
-
|
20
|
+
}
|
16
21
|
<div className="tb-l:flex-row tb-l:flex mt-2 flex flex-col gap-2 tb-l:mt-0">
|
17
|
-
{props.secondaryCardArr &&
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
<FlyoutA
|
28
|
-
label={item.label}
|
29
|
-
childArray={item.childArray}
|
30
|
-
split={item.split}
|
31
|
-
/>
|
32
|
-
</div>
|
33
|
-
))}
|
22
|
+
{props.secondaryCardArr && props.secondaryCardArr.map((item, index) => (
|
23
|
+
|
24
|
+
<div key={index} className={'rounded-2xl ' + (item.card_bg) ? 'bg-neutral-0 rounded-2xl' : (HDSColor(item.card_bg))}>
|
25
|
+
<FlyoutA
|
26
|
+
label={item.label}
|
27
|
+
childArray={item.childArray}
|
28
|
+
split={item.split}
|
29
|
+
/>
|
30
|
+
</div>
|
31
|
+
))}
|
34
32
|
</div>
|
35
33
|
{/* {props.tertiaryCard && <div className="mt-2 pl-2 tb:mt-0">
|
36
34
|
|
@@ -52,56 +50,65 @@ export default function DropdownA(props) {
|
|
52
50
|
</div>
|
53
51
|
</div>
|
54
52
|
} */}
|
55
|
-
{props.flyoutD &&
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
53
|
+
{props.flyoutD &&
|
54
|
+
<>
|
55
|
+
<div className=' bg-neutral-0 shadow rounded-2xl w-full tb-l:w-[170px] tb-xl:w-[223px] px-6 py-6 mt-2 tb-l:mt-0'>
|
56
|
+
<div>
|
57
|
+
|
58
|
+
<FlyoutD
|
59
|
+
{...props.flyoutD}
|
60
|
+
/>
|
60
61
|
</div>
|
61
|
-
|
62
|
-
|
63
|
-
|
62
|
+
</div>
|
63
|
+
</>
|
64
|
+
|
65
|
+
}
|
66
|
+
|
67
|
+
|
64
68
|
</div>
|
65
69
|
</div>
|
66
|
-
)
|
70
|
+
)
|
67
71
|
}
|
68
72
|
|
69
73
|
DropdownA.defaultProps = {
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
74
|
+
|
75
|
+
|
76
|
+
secondaryCardArr: [{
|
77
|
+
childArray: [
|
78
|
+
{
|
79
|
+
description: '',
|
80
|
+
href: '#',
|
81
|
+
icon: 'cube01',
|
82
|
+
name: 'Analytics'
|
83
|
+
},
|
84
|
+
{
|
85
|
+
description: '',
|
86
|
+
href: '#',
|
87
|
+
icon: 'cube01',
|
88
|
+
name: 'Engagement'
|
89
|
+
},
|
90
|
+
{
|
91
|
+
description: '',
|
92
|
+
href: '#',
|
93
|
+
icon: 'cube01',
|
94
|
+
name: 'Security'
|
95
|
+
},
|
96
|
+
{
|
97
|
+
description: '',
|
98
|
+
href: '#',
|
99
|
+
icon: 'cube01',
|
100
|
+
name: 'Security'
|
101
|
+
},
|
102
|
+
{
|
103
|
+
description: '',
|
104
|
+
href: '#',
|
105
|
+
icon: 'cube01',
|
106
|
+
name: 'Security'
|
107
|
+
},
|
108
|
+
],
|
109
|
+
label: "Label1"
|
110
|
+
},
|
111
|
+
|
112
|
+
|
113
|
+
]
|
114
|
+
}
|
@@ -2,50 +2,42 @@ import React from "react";
|
|
2
2
|
import { Typography } from "../../../foundation/Typography";
|
3
3
|
import { Icon } from "../../common-components";
|
4
4
|
export default function FlyoutD(props) {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
>
|
10
|
-
{props.IconVariant && (
|
11
|
-
<div className="w-full h-full tb-l:pb-6">
|
12
|
-
<div className=" p-2.5 rounded-2xl w-14 h-14 tb-l:w-full tb-xl:w-[175px] tb-l:h-[124px] bg-neutral-150 items-center justify-center transition-all duration-300 flex group-hover/icon:bg-blue-200">
|
13
|
-
<Icon
|
14
|
-
height=" tb-l:h-12 tb-l:w-12 h-6 w-6"
|
15
|
-
variant={props.IconVariant}
|
16
|
-
className=" stroke-neutral-800 group-hover/icon:stroke-blue-600 cursor-pointer transition-all duration-300"
|
17
|
-
/>
|
18
|
-
</div>
|
19
|
-
</div>
|
20
|
-
)}
|
21
|
-
<div className="flex flex-col gap-1 w-full h-full">
|
22
|
-
{props.btnLabel && (
|
23
|
-
<div className="flex items-center">
|
24
|
-
<Typography
|
25
|
-
textStyle="body3c-medium"
|
26
|
-
className="text-neutral-900 whitespace-nowrap group-hover/icon:text-blue-600 transition-all duration-300 "
|
27
|
-
>
|
28
|
-
{props.btnLabel}
|
29
|
-
</Typography>
|
5
|
+
return (
|
6
|
+
<a href={props.link} className="flex flex-col gap-4 tb-l:gap-0 tb-l:flex-col w-full h-full justify-between group/icon">
|
7
|
+
{props.IconVariant &&
|
8
|
+
<div className="w-full h-full tb-l:pb-6">
|
30
9
|
|
31
|
-
<div
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
10
|
+
<div
|
11
|
+
className=" p-2.5 rounded-2xl w-14 h-14 tb-l:w-full tb-xl:w-[175px] tb-l:h-[124px] bg-neutral-150 items-center justify-center transition-all duration-300 flex group-hover/icon:bg-blue-200"
|
12
|
+
>
|
13
|
+
<Icon
|
14
|
+
height=' tb-l:h-12 tb-l:w-12 h-6 w-6'
|
15
|
+
variant={props.IconVariant}
|
16
|
+
className=' stroke-neutral-800 group-hover/icon:stroke-blue-600 cursor-pointer transition-all duration-300'
|
17
|
+
/>
|
18
|
+
</div>
|
37
19
|
</div>
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
20
|
+
}
|
21
|
+
<div className="flex flex-col gap-1 w-full h-full">
|
22
|
+
{props.btnLabel &&
|
23
|
+
<div className="flex items-center">
|
24
|
+
<Typography textStyle='body3c-medium' className='text-neutral-900 whitespace-nowrap group-hover/icon:text-blue-600 transition-all duration-300 '>
|
25
|
+
{props.btnLabel}
|
26
|
+
</Typography>
|
27
|
+
|
28
|
+
<div className="flex group-hover/icon:translate-x-1 transform transition-all duration-200 ease-in-out invisible group-hover/icon:visible ">
|
29
|
+
<Icon
|
30
|
+
height={'h-4 w-4 stroke-2 transition-all ease-in-out '}
|
31
|
+
variant={'chevronright'}
|
32
|
+
strokeClass={'stroke-blue-500'}
|
33
|
+
/>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
}
|
37
|
+
{props.description && <Typography textStyle='body3c' className='text-neutral-600 line-clamp-5'>
|
38
|
+
{props.description}
|
39
|
+
</Typography>}
|
40
|
+
</div>
|
41
|
+
</a>
|
42
|
+
)
|
43
|
+
}
|
@@ -542,16 +542,24 @@ V3Header.defaultProps = {
|
|
542
542
|
title: "Product",
|
543
543
|
primaryCard: {
|
544
544
|
iconVariant: "layersthree01",
|
545
|
-
mainDescription: `
|
546
|
-
primaryBtnLabel: "Hasura API
|
545
|
+
mainDescription: `Discover Hasura's core capabilities for automating the building, securing, optimizing, and deploying of APIs.`,
|
546
|
+
primaryBtnLabel: "Hasura Data API Platform",
|
547
547
|
primaryBtnCTA: "/products",
|
548
548
|
strokeClass: "stroke-neutral-800",
|
549
|
-
|
549
|
+
tertiaryBtn: [
|
550
550
|
{
|
551
551
|
cta_leftVariantIcon: "checksquarebroken",
|
552
552
|
cta_leftVariantIconColor: "#6C737F",
|
553
553
|
cta_text: "Compare Plans",
|
554
|
-
cta_link: "/pricing
|
554
|
+
cta_link: "/pricing",
|
555
|
+
},
|
556
|
+
],
|
557
|
+
secondaryBtn: [
|
558
|
+
{
|
559
|
+
cta_leftVariantIcon: "zap",
|
560
|
+
cta_leftVariantIconColor: "#6C737F",
|
561
|
+
cta_text: "Deployment Options",
|
562
|
+
cta_link: "/products/deployment",
|
555
563
|
},
|
556
564
|
],
|
557
565
|
},
|
@@ -560,32 +568,71 @@ V3Header.defaultProps = {
|
|
560
568
|
childArray: [
|
561
569
|
{
|
562
570
|
description: "",
|
563
|
-
href: "/
|
564
|
-
icon: "
|
565
|
-
name: "
|
571
|
+
href: "/products/instant-api",
|
572
|
+
icon: "lightning01",
|
573
|
+
name: "Instant API",
|
566
574
|
strokeClass: "stroke-neutral-500",
|
567
575
|
},
|
576
|
+
{
|
577
|
+
description: "",
|
578
|
+
href: "/products/authorization",
|
579
|
+
icon: "eye",
|
580
|
+
name: "Authorization",
|
581
|
+
strokeClass: "stroke-neutral-500",
|
582
|
+
},
|
583
|
+
{
|
584
|
+
description: "",
|
585
|
+
href: "/products/performance",
|
586
|
+
icon: "speedometer03",
|
587
|
+
name: "Performance",
|
588
|
+
strokeClass: "stroke-neutral-500",
|
589
|
+
},
|
590
|
+
{
|
591
|
+
description: "",
|
592
|
+
href: "/products/federation",
|
593
|
+
icon: "data",
|
594
|
+
name: "Federation",
|
595
|
+
strokeClass: "stroke-neutral-500",
|
596
|
+
},
|
597
|
+
{
|
598
|
+
description: "",
|
599
|
+
href: "/products/api-security",
|
600
|
+
icon: "shieldtick",
|
601
|
+
name: "API Security",
|
602
|
+
strokeClass: "stroke-neutral-500",
|
603
|
+
},
|
604
|
+
{
|
605
|
+
description: "",
|
606
|
+
href: "/products/observability",
|
607
|
+
icon: "piechart01",
|
608
|
+
name: "Observability",
|
609
|
+
strokeClass: "stroke-neutral-500",
|
610
|
+
},
|
611
|
+
],
|
612
|
+
label: "CAPABILITIES",
|
613
|
+
},
|
614
|
+
{
|
615
|
+
childArray: [
|
568
616
|
{
|
569
617
|
description: "",
|
570
618
|
href: "/graphql/database",
|
571
619
|
icon: "database01",
|
572
|
-
name: "All
|
620
|
+
name: "All Databases",
|
573
621
|
strokeClass: "stroke-neutral-500",
|
574
622
|
},
|
575
623
|
{
|
576
624
|
description: "",
|
577
625
|
href: "/graphql/database?category=planned",
|
578
|
-
icon: "
|
579
|
-
name: "Planned
|
626
|
+
icon: "checksquare",
|
627
|
+
name: "Planned Databases",
|
580
628
|
strokeClass: "stroke-neutral-500",
|
581
629
|
},
|
582
630
|
],
|
583
|
-
label: "
|
631
|
+
label: "Data sources",
|
584
632
|
},
|
585
633
|
],
|
586
634
|
flyoutD: {
|
587
635
|
link: "https://hasura.io/ai",
|
588
|
-
cardImg: `https://res.cloudinary.com/dh8fp23nd/image/upload/v1711965728/ai-img_bhy2bz.png`,
|
589
636
|
IconVariant: "aibot",
|
590
637
|
btnLabel: "AI with Hasura",
|
591
638
|
description:
|