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,6 +1,6 @@
1
1
  {
2
2
  "name": "hds-web",
3
- "version": "1.35.4",
3
+ "version": "1.35.5",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -1,36 +1,34 @@
1
- import React from "react";
2
- import { HDSColor } from "../../../foundation/ColorPalette";
3
- import { FlyoutB, FlyoutA, FlyoutC, FlyoutD } from "../Menu";
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
- <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 ">
9
- {props.primaryCard && (
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=" bg-neutral-0 rounded-2xl h-full w-full min-w-[250px]">
12
- <FlyoutB {...props.primaryCard} />
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
- props.secondaryCardArr.map((item, index) => (
19
- <div
20
- key={index}
21
- className={
22
- "rounded-2xl " + item.card_bg
23
- ? "bg-neutral-0 rounded-2xl"
24
- : HDSColor(item.card_bg)
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
- <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">
58
- <div>
59
- <FlyoutD {...props.flyoutD} />
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
- </div>
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
- secondaryCardArr: [
71
- {
72
- childArray: [
73
- {
74
- description: "",
75
- href: "#",
76
- icon: "cube01",
77
- name: "Analytics",
78
- },
79
- {
80
- description: "",
81
- href: "#",
82
- icon: "cube01",
83
- name: "Engagement",
84
- },
85
- {
86
- description: "",
87
- href: "#",
88
- icon: "cube01",
89
- name: "Security",
90
- },
91
- {
92
- description: "",
93
- href: "#",
94
- icon: "cube01",
95
- name: "Security",
96
- },
97
- {
98
- description: "",
99
- href: "#",
100
- icon: "cube01",
101
- name: "Security",
102
- },
103
- ],
104
- label: "Label1",
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
- return (
6
- <a
7
- href={props.link}
8
- className="flex flex-col gap-4 tb-l:gap-0 tb-l:flex-col w-full h-full justify-between group/icon"
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 className="flex group-hover/icon:translate-x-1 transform transition-all duration-200 ease-in-out invisible group-hover/icon:visible ">
32
- <Icon
33
- height={"h-4 w-4 stroke-2 transition-all ease-in-out "}
34
- variant={"chevronright"}
35
- strokeClass={"stroke-blue-500"}
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
- </div>
39
- )}
40
- {props.description && (
41
- <Typography
42
- textStyle="body3c"
43
- className="text-neutral-600 line-clamp-5"
44
- >
45
- {props.description}
46
- </Typography>
47
- )}
48
- </div>
49
- </a>
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: `Enable your backend team to deliver an incredible unified API on all your data effortlessly.`,
546
- primaryBtnLabel: "Hasura API platform",
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
- secondaryBtn: [
549
+ tertiaryBtn: [
550
550
  {
551
551
  cta_leftVariantIcon: "checksquarebroken",
552
552
  cta_leftVariantIconColor: "#6C737F",
553
553
  cta_text: "Compare Plans",
554
- cta_link: "/pricing/v3",
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: "/connectors",
564
- icon: "checksquare",
565
- name: "Connectors",
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 DBs",
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: "database01",
579
- name: "Planned DBs",
626
+ icon: "checksquare",
627
+ name: "Planned Databases",
580
628
  strokeClass: "stroke-neutral-500",
581
629
  },
582
630
  ],
583
- label: "INTEGRATIONS",
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: