hds-web 1.35.3 → 1.35.4

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.3",
3
+ "version": "1.35.4",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -1,34 +1,36 @@
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
-
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 &&
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 && (
12
10
  <div className="">
13
- <div className=' bg-neutral-0 rounded-2xl h-full w-full min-w-[250px]'>
14
- <FlyoutB
15
- {...props.primaryCard}
16
- />
11
+ <div className=" bg-neutral-0 rounded-2xl h-full w-full min-w-[250px]">
12
+ <FlyoutB {...props.primaryCard} />
17
13
  </div>
18
-
19
14
  </div>
20
- }
15
+ )}
21
16
  <div className="tb-l:flex-row tb-l:flex mt-2 flex flex-col gap-2 tb-l:mt-0">
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
- ))}
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
+ ))}
32
34
  </div>
33
35
  {/* {props.tertiaryCard && <div className="mt-2 pl-2 tb:mt-0">
34
36
 
@@ -50,65 +52,56 @@ export default function DropdownA(props) {
50
52
  </div>
51
53
  </div>
52
54
  } */}
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
- />
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} />
61
60
  </div>
62
- </div>
63
- </>
64
-
65
- }
66
-
67
-
61
+ </div>
62
+ </>
63
+ )}
68
64
  </div>
69
65
  </div>
70
- )
66
+ );
71
67
  }
72
68
 
73
69
  DropdownA.defaultProps = {
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
- }
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
+ };
@@ -2,42 +2,50 @@ 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 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">
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>
9
30
 
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>
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
+ />
19
37
  </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 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
- }
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
+ }
@@ -542,24 +542,16 @@ V3Header.defaultProps = {
542
542
  title: "Product",
543
543
  primaryCard: {
544
544
  iconVariant: "layersthree01",
545
- mainDescription: `Discover Hasura's core capabilities for automating the building, securing, optimizing, and deploying of APIs.`,
546
- primaryBtnLabel: "Hasura Data API Platform",
545
+ mainDescription: `Enable your backend team to deliver an incredible unified API on all your data effortlessly.`,
546
+ primaryBtnLabel: "Hasura API platform",
547
547
  primaryBtnCTA: "/products",
548
548
  strokeClass: "stroke-neutral-800",
549
- tertiaryBtn: [
549
+ secondaryBtn: [
550
550
  {
551
551
  cta_leftVariantIcon: "checksquarebroken",
552
552
  cta_leftVariantIconColor: "#6C737F",
553
553
  cta_text: "Compare Plans",
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",
554
+ cta_link: "/pricing/v3",
563
555
  },
564
556
  ],
565
557
  },
@@ -568,71 +560,32 @@ V3Header.defaultProps = {
568
560
  childArray: [
569
561
  {
570
562
  description: "",
571
- href: "/products/instant-api",
572
- icon: "lightning01",
573
- name: "Instant API",
574
- strokeClass: "stroke-neutral-500",
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",
563
+ href: "/connectors",
564
+ icon: "checksquare",
565
+ name: "Connectors",
609
566
  strokeClass: "stroke-neutral-500",
610
567
  },
611
- ],
612
- label: "CAPABILITIES",
613
- },
614
- {
615
- childArray: [
616
568
  {
617
569
  description: "",
618
570
  href: "/graphql/database",
619
571
  icon: "database01",
620
- name: "All Databases",
572
+ name: "All DBs",
621
573
  strokeClass: "stroke-neutral-500",
622
574
  },
623
575
  {
624
576
  description: "",
625
577
  href: "/graphql/database?category=planned",
626
- icon: "checksquare",
627
- name: "Planned Databases",
578
+ icon: "database01",
579
+ name: "Planned DBs",
628
580
  strokeClass: "stroke-neutral-500",
629
581
  },
630
582
  ],
631
- label: "Data sources",
583
+ label: "INTEGRATIONS",
632
584
  },
633
585
  ],
634
586
  flyoutD: {
635
587
  link: "https://hasura.io/ai",
588
+ cardImg: `https://res.cloudinary.com/dh8fp23nd/image/upload/v1711965728/ai-img_bhy2bz.png`,
636
589
  IconVariant: "aibot",
637
590
  btnLabel: "AI with Hasura",
638
591
  description:
@@ -2859,6 +2859,11 @@ select{
2859
2859
  border-radius: 0.75rem;
2860
2860
  }
2861
2861
 
2862
+ .rounded-b-2xl{
2863
+ border-bottom-right-radius: 1rem;
2864
+ border-bottom-left-radius: 1rem;
2865
+ }
2866
+
2862
2867
  .rounded-b-3xl{
2863
2868
  border-bottom-right-radius: 1.5rem;
2864
2869
  border-bottom-left-radius: 1.5rem;
@@ -2899,6 +2904,11 @@ select{
2899
2904
  border-bottom-right-radius: 0.75rem;
2900
2905
  }
2901
2906
 
2907
+ .rounded-t-2xl{
2908
+ border-top-left-radius: 1rem;
2909
+ border-top-right-radius: 1rem;
2910
+ }
2911
+
2902
2912
  .rounded-t-3xl{
2903
2913
  border-top-left-radius: 1.5rem;
2904
2914
  border-top-right-radius: 1.5rem;
@@ -2909,16 +2919,6 @@ select{
2909
2919
  border-top-right-radius: 0.375rem;
2910
2920
  }
2911
2921
 
2912
- .rounded-t-2xl{
2913
- border-top-left-radius: 1rem;
2914
- border-top-right-radius: 1rem;
2915
- }
2916
-
2917
- .rounded-b-2xl{
2918
- border-bottom-right-radius: 1rem;
2919
- border-bottom-left-radius: 1rem;
2920
- }
2921
-
2922
2922
  .rounded-tl-2xl{
2923
2923
  border-top-left-radius: 1rem;
2924
2924
  }