hds-web 1.41.2 → 1.41.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hds-web",
3
- "version": "1.41.2",
3
+ "version": "1.41.4",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -10,7 +10,7 @@ export default function DropdownA(props) {
10
10
  <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 ">
11
11
  {props.primaryCard && (
12
12
  <div className="">
13
- <div className=" bg-neutral-0 rounded-2xl h-full w-full min-w-[250px]">
13
+ <div className={`bg-neutral-0 rounded-2xl h-full w-full ${props.primaryCard.cardDetailsArray ? 'min-w-[500px]' : ' min-w-[250px]'}`}>
14
14
  <FlyoutB {...props.primaryCard} />
15
15
  </div>
16
16
  </div>
@@ -22,45 +22,87 @@ export default function FlyoutB(props) {
22
22
 
23
23
  return (
24
24
  <div className="flex flex-col justify-between w-full h-full shadow rounded-2xl">
25
- <a
26
- href={primaryBtnCTA}
27
- className="group/card cursor-pointer w-full h-full relative transition-all duration-300 ease-out "
28
- >
29
- <div className="group-hover/card:bg-neutral-100 ml-2 z-[1] mt-2 w-[calc(100%-16px)] h-[calc(100%-16px)] rounded-xl absolute "></div>
30
- <div className="px-6 pt-6 pb-4 w-full h-full ">
31
- <Typography
32
- textStyle="h6"
33
- className="uppercase relative z-[2] group-hover/card:text-neutral-1000 text-neutral-500 mb-4"
34
- >
35
- PLATFORM
36
- </Typography>
37
- <div className="flex items-start lg:pt-2">
38
- <div className=" flex items-center relative justify-center p-2.5 h-14 w-14 z-[2] group-hover/card:bg-blue-200 bg-blue-200 rounded-2xl min-w-[56px] mr-6">
39
- <Icon
40
- height="h-6 w-6 stroke-2 group-hover/card:stroke-blue-500"
41
- variant={iconVariant}
42
- strokeColor={strokeColor}
43
- strokeClass={strokeClass}
44
- />
45
- </div>
46
- <div className="relative group/card cursor-pointer items-center z-[2]">
47
- <Typography
48
- textStyle="body3c-medium"
49
- className="text-neutral-1000 group-hover/card:text-blue-600 hover:transition-all hover:duration-300 hover:ease-in-out whitespace-nowrap overflow-clip"
50
- >
51
- {props.primaryBtnLabel}
52
- </Typography>
53
- <Typography
54
- className="mt-1 text-neutral-600 relative z-[2]"
55
- textStyle="body3"
56
- >
57
- {mainDescription}
58
- </Typography>
59
- </div>
25
+
26
+
27
+ <div className=" ml-2 mt-2 w-[calc(100%-16px)] h-[calc(100%-16px)] rounded-xl absolute "></div>
28
+ <div className="px-6 pt-6 pb-4 w-full h-full ">
29
+ <Typography
30
+ textStyle="h6"
31
+ className="uppercase relative z-[2] group-hover/card:text-neutral-1000 text-neutral-500 mb-4"
32
+ >
33
+ PLATFORM
34
+ </Typography>
35
+ <div className="flex items-start lg:pt-2">
36
+ {
37
+ props.cardDetailsArray ? (
38
+ <div className="flex items-start gap-3">
39
+ {
40
+ props.cardDetailsArray.map((card, index) => (
41
+ <a href={card.btnCTA}>
42
+ <div key={index} className="hover:bg-neutral-100 rounded-lg p-3 w-full min-w-[calc(50%-20px)] items-center relative group/card cursor-pointer z-[2]">
43
+ <div className="flex items-center">
44
+ <div className="w-5">
45
+ {card.iconVariant}
46
+ </div>
47
+ <Typography
48
+ textStyle="body3c-medium"
49
+ className="text-neutral-1000 ml-[6px] hover:transition-all hover:duration-300 hover:ease-in-out whitespace-nowrap overflow-clip"
50
+ >
51
+ {card.title}
52
+ </Typography>
53
+ <Icon
54
+ height="h-5 w-5 stroke-[1.5] invisible group-hover/card:visible transition-all ease-in-out group-hover/card:translate-x-1"
55
+ variant='chevronright'
56
+ strokeColor="stroke-neutral-1000"
57
+ strokeClass="stroke-neutral-1000"
58
+ />
59
+ </div>
60
+ <Typography
61
+ className="mt-1 text-neutral-600 relative z-[2]"
62
+ textStyle="body3"
63
+ >
64
+ {card.description}
65
+ </Typography>
66
+ </div>
67
+ </a>
68
+ ))
69
+ }
70
+ </div>
71
+ ) : (
72
+ <a
73
+ href={primaryBtnCTA}
74
+ className="group/card flex items-start hover:bg-neutral-100 p-3 rounded-lg cursor-pointer w-full h-full relative transition-all duration-300 ease-out "
75
+ >
76
+ <div className="flex items-center relative justify-center p-2.5 h-14 w-14 z-[2] group-hover/card:bg-blue-200 bg-blue-200 rounded-2xl min-w-[56px] mr-6">
77
+ <Icon
78
+ height="h-6 w-6 stroke-2 group-hover/card:stroke-blue-500"
79
+ variant={iconVariant}
80
+ strokeColor={strokeColor}
81
+ strokeClass={strokeClass}
82
+ />
83
+ </div>
84
+ <div className="relative group/card cursor-pointer items-center z-[2]">
85
+ <Typography
86
+ textStyle="body3c-medium"
87
+ className="text-neutral-1000 group-hover/card:text-blue-600 hover:transition-all hover:duration-300 hover:ease-in-out whitespace-nowrap overflow-clip"
88
+ >
89
+ {props.primaryBtnLabel}
90
+ </Typography>
91
+ <Typography
92
+ className="mt-1 text-neutral-600 relative z-[2]"
93
+ textStyle="body3"
94
+ >
95
+ {mainDescription}
96
+ </Typography>
97
+ </div>
98
+ </a>
99
+ )
100
+ }
101
+
60
102
  </div>
61
103
  </div>
62
- </a>
63
- <div className="border-t border-neutral-200 pt-6 mx-6" />
104
+
105
+ <div className="border-t border-neutral-200 pt-3 mx-6" />
64
106
  <div className="flex pb-3 gap-2">
65
107
  {secondaryBtn.map((btn, index) => (
66
108
  <a
@@ -2,7 +2,7 @@ import React from "react";
2
2
 
3
3
  export default function FlyoutD(props) {
4
4
  return (
5
- <div className="flex justify-center">
5
+ <div className="flex justify-center z-[2]">
6
6
  <a href={props?.link}>
7
7
  <img
8
8
  src={props?.cardImg}
@@ -20,6 +20,19 @@ const updatePGParam = (originalLink, websiteKey) => {
20
20
  } else return originalLink;
21
21
  };
22
22
 
23
+ const HasuraLogo = () => (
24
+ <svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg">
25
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M17.0402 2.08323C17.9627 3.18615 18.2492 6.17362 17.773 7.67111C17.6149 8.16902 17.5703 8.69511 17.6614 9.20617C17.7544 9.71348 17.8474 10.326 17.8474 10.7525C17.8474 15.1304 14.3338 18.6815 9.99814 18.6815C5.6643 18.6815 2.14887 15.1323 2.14887 10.7525C2.14887 10.326 2.24187 9.71348 2.33487 9.20617C2.42787 8.69511 2.38509 8.16902 2.22699 7.67111C1.75083 6.1755 2.03727 3.18803 2.95984 2.08323C3.08074 1.94043 3.3058 1.95922 3.40624 2.11893L4.54271 3.9208C4.82543 4.27968 5.33136 4.36423 5.7108 4.11245C6.94399 3.29701 8.41713 2.82352 10 2.82352C11.5829 2.82352 13.056 3.29701 14.2892 4.11245C14.6705 4.36423 15.1764 4.28156 15.4573 3.9208L16.5938 2.11893C16.6942 1.95922 16.9193 1.93856 17.0402 2.08323ZM11.0787 10.4144L12.6318 13.1351C12.6634 13.1896 12.6634 13.2572 12.6318 13.3098C12.602 13.3643 12.5444 13.3981 12.4811 13.3981H11.2182C11.1568 13.3981 11.0991 13.3643 11.0675 13.3098L10.2379 11.8574L9.31351 13.3154C9.28189 13.3662 9.22609 13.3962 9.16657 13.3962H7.88502C7.81992 13.3962 7.7604 13.3605 7.73064 13.3042C7.70088 13.2478 7.70274 13.1783 7.73808 13.1238L9.44743 10.4896L8.17332 8.32694C8.1417 8.27245 8.13984 8.20481 8.17146 8.15032C8.20308 8.09395 8.26074 8.06013 8.32398 8.06013H9.59624C9.65762 8.06013 9.71528 8.09207 9.7469 8.14656L11.0787 10.4144Z" fill="#000615"/>
26
+ </svg>
27
+ )
28
+
29
+ const PromptQLLogo = () => (
30
+ <svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg">
31
+ <path d="M7.21406 3.77103H4.87892C2.64361 3.77103 0 4.97315 0 8.46755C0 10.7694 1.68562 13.1283 5.25767 13.1283H6.81628L9.72026 16.3549H11.9789V8.61099C11.9789 5.22198 9.61022 3.77103 7.21961 3.77103H7.21406ZM9.72026 8.61099V13.2203L7.87072 10.9691H5.20277C3.84939 10.9691 2.26859 10.3146 2.26859 8.46755C2.26859 6.23779 4.15445 5.99928 4.96981 5.99928H7.07199C8.36437 5.99928 9.72026 6.70294 9.72026 8.61099Z" fill="#000615"/>
32
+ <path d="M16.7398 14.0011C16.3127 14.0011 15.9688 13.6517 15.9688 13.2135V3.97275H13.6392V13.4021C13.6392 15.0217 14.9371 16.3418 16.5345 16.3418H19.9994V14.0011H16.7398Z" fill="#000615"/>
33
+ </svg>
34
+ )
35
+
23
36
  export default function V3Header(props) {
24
37
  // const listSize = props.HEADER_LIST.length;
25
38
 
@@ -148,7 +161,7 @@ export default function V3Header(props) {
148
161
  animate={{ opacity: 1 }}
149
162
  transition={{ ease: "easeInOut", duration: 0.1 }}
150
163
  className={
151
- "absolute -left-[137px] z-[2] transform " +
164
+ "absolute top-[21px] -left-[137px] z-[2] transform " +
152
165
  (dropdownVisibility[0] ? "-left-[137px] " : "") +
153
166
  (dropdownVisibility[1] ? "-left-[218px]" : "") +
154
167
  (dropdownVisibility[3] ? "-left-[50px] " : "")
@@ -735,9 +748,26 @@ V3Header.defaultProps = {
735
748
  primaryCard: {
736
749
  iconVariant: "layersthree01",
737
750
  mainDescription: `Enable your backend team to deliver an incredible unified API on all your data effortlessly.`,
751
+ cardDetailsArray: [
752
+ {
753
+ iconVariant: <HasuraLogo />,
754
+ description: `Enable your backend team to deliver an incredible unified API on all your data effortlessly.`,
755
+ title: "What is Hasura?",
756
+ btnCTA: "/products",
757
+ strokeClass: "stroke-blue-500",
758
+ },
759
+ {
760
+ iconVariant: <PromptQLLogo />,
761
+ description: `A data access agent with out-of-the-box connectors and agentic query planning.`,
762
+ title: "PromptQL by Hasura",
763
+ btnCTA: "/book-demo/promptql",
764
+ strokeClass: "stroke-blue-500",
765
+ },
766
+ ],
738
767
  primaryBtnLabel: "What is Hasura?",
739
768
  primaryBtnCTA: "/products",
740
769
  strokeClass: "stroke-blue-500",
770
+
741
771
  secondaryBtn: [
742
772
  {
743
773
  cta_leftVariantIcon: "checksquarebroken",
@@ -1058,6 +1058,10 @@ select{
1058
1058
  top: 100%;
1059
1059
  }
1060
1060
 
1061
+ .top-\[21px\]{
1062
+ top: 21px;
1063
+ }
1064
+
1061
1065
  .isolate{
1062
1066
  isolation: isolate;
1063
1067
  }
@@ -1415,6 +1419,10 @@ select{
1415
1419
  margin-left: 30px;
1416
1420
  }
1417
1421
 
1422
+ .ml-\[6px\]{
1423
+ margin-left: 6px;
1424
+ }
1425
+
1418
1426
  .mr-0{
1419
1427
  margin-right: 0px;
1420
1428
  }
@@ -2084,10 +2092,6 @@ select{
2084
2092
  min-width: 24px;
2085
2093
  }
2086
2094
 
2087
- .min-w-\[250px\]{
2088
- min-width: 250px;
2089
- }
2090
-
2091
2095
  .min-w-\[300px\]{
2092
2096
  min-width: 300px;
2093
2097
  }
@@ -2096,6 +2100,10 @@ select{
2096
2100
  min-width: 312px;
2097
2101
  }
2098
2102
 
2103
+ .min-w-\[420px\]{
2104
+ min-width: 420px;
2105
+ }
2106
+
2099
2107
  .min-w-\[48px\]{
2100
2108
  min-width: 48px;
2101
2109
  }
@@ -2112,6 +2120,10 @@ select{
2112
2120
  min-width: 72px;
2113
2121
  }
2114
2122
 
2123
+ .min-w-\[calc\(50\%-20px\)\]{
2124
+ min-width: calc(50% - 20px);
2125
+ }
2126
+
2115
2127
  .min-w-fit{
2116
2128
  min-width: -webkit-fit-content;
2117
2129
  min-width: -moz-fit-content;
@@ -2122,6 +2134,22 @@ select{
2122
2134
  min-width: 100%;
2123
2135
  }
2124
2136
 
2137
+ .min-w-\[440px\]{
2138
+ min-width: 440px;
2139
+ }
2140
+
2141
+ .min-w-\[450px\]{
2142
+ min-width: 450px;
2143
+ }
2144
+
2145
+ .min-w-\[500px\]{
2146
+ min-width: 500px;
2147
+ }
2148
+
2149
+ .min-w-\[250px\]{
2150
+ min-width: 250px;
2151
+ }
2152
+
2125
2153
  .max-w-2xl{
2126
2154
  max-width: 42rem;
2127
2155
  }
@@ -10560,6 +10588,10 @@ select{
10560
10588
  visibility: visible;
10561
10589
  }
10562
10590
 
10591
+ .group\/card:hover .group-hover\/card\:visible{
10592
+ visibility: visible;
10593
+ }
10594
+
10563
10595
  .group\/sc:hover .group-hover\/sc\:block{
10564
10596
  display: block;
10565
10597
  }
@@ -10616,6 +10648,12 @@ select{
10616
10648
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
10617
10649
  }
10618
10650
 
10651
+ .group\/card:hover .group-hover\/card\:translate-x-1{
10652
+ --tw-translate-x: 0.25rem;
10653
+ -webkit-transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
10654
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
10655
+ }
10656
+
10619
10657
  .group\/badge:hover .group-hover\/badge\:border-opacity-0{
10620
10658
  --tw-border-opacity: 0;
10621
10659
  }