hds-web 1.29.2 → 1.29.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/dist/index.css +2 -2
- package/dist/index.es.css +2 -2
- package/dist/index.es.js +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/src/HDS/components/Cards/Dropdown/v3Dropdown.js +14 -3
- package/src/HDS/components/Cards/Menu/flyoutD.js +43 -0
- package/src/HDS/components/Cards/Menu/index.js +2 -1
- package/src/HDS/components/Headers/v3Header.js +13 -4
- package/src/styles/tailwind.css +137 -0
package/package.json
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
import React from "react"
|
2
|
-
import PropTypes from 'prop-types';
|
3
2
|
import { HDSColor } from "../../../foundation/ColorPalette"
|
4
|
-
import { FlyoutB, FlyoutA, FlyoutC } from '../Menu';
|
5
|
-
import { Icon } from "../../common-components";
|
3
|
+
import { FlyoutB, FlyoutA, FlyoutC, FlyoutD } from '../Menu';
|
6
4
|
|
7
5
|
export default function DropdownA(props) {
|
8
6
|
return (
|
@@ -52,6 +50,19 @@ export default function DropdownA(props) {
|
|
52
50
|
</div>
|
53
51
|
</div>
|
54
52
|
} */}
|
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
|
+
/>
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
</>
|
64
|
+
|
65
|
+
}
|
55
66
|
|
56
67
|
|
57
68
|
</div>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { Typography } from "../../../foundation/Typography";
|
3
|
+
import { Icon } from "../../common-components";
|
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">
|
9
|
+
|
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 stroke-2'
|
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 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
|
+
}
|
@@ -54,7 +54,7 @@ export default function V3Header(props) {
|
|
54
54
|
});
|
55
55
|
};
|
56
56
|
|
57
|
-
const renderDropdown = (primaryCard, secondaryCardArr, tertiaryCard) => (
|
57
|
+
const renderDropdown = (primaryCard, secondaryCardArr, tertiaryCard, flyoutD) => (
|
58
58
|
<div>
|
59
59
|
<div>
|
60
60
|
<hr className="w-full h-6 border-0" />
|
@@ -64,13 +64,14 @@ export default function V3Header(props) {
|
|
64
64
|
primaryCard={primaryCard}
|
65
65
|
secondaryCardArr={secondaryCardArr}
|
66
66
|
tertiaryCard={tertiaryCard}
|
67
|
+
flyoutD={flyoutD}
|
67
68
|
/>
|
68
69
|
</div>
|
69
70
|
</div>
|
70
71
|
);
|
71
72
|
|
72
73
|
const renderDropdownContainer = (headerList, id) => {
|
73
|
-
const { title, primaryCard, secondaryCardArr, tertiaryCard } = headerList[id];
|
74
|
+
const { title, primaryCard, secondaryCardArr, tertiaryCard, flyoutD } = headerList[id];
|
74
75
|
|
75
76
|
return (
|
76
77
|
<div id={`dropdown_${id}`}>
|
@@ -114,7 +115,8 @@ export default function V3Header(props) {
|
|
114
115
|
{renderDropdown(
|
115
116
|
primaryCard,
|
116
117
|
secondaryCardArr,
|
117
|
-
tertiaryCard
|
118
|
+
tertiaryCard,
|
119
|
+
flyoutD
|
118
120
|
)}
|
119
121
|
</motion.div>
|
120
122
|
</div>
|
@@ -170,6 +172,7 @@ export default function V3Header(props) {
|
|
170
172
|
primaryCard={HEADER_LIST[0]['primaryCard']}
|
171
173
|
secondaryCardArr={HEADER_LIST[0]['secondaryCardArr']}
|
172
174
|
tertiaryCard={HEADER_LIST[0]['tertiaryCard']}
|
175
|
+
flyoutD={HEADER_LIST[0]['flyoutD']}
|
173
176
|
/>
|
174
177
|
|
175
178
|
</motion.div>)}
|
@@ -577,7 +580,13 @@ V3Header.defaultProps = {
|
|
577
580
|
],
|
578
581
|
label: 'Data sources'
|
579
582
|
}
|
580
|
-
]
|
583
|
+
],
|
584
|
+
flyoutD:{
|
585
|
+
link:'https://hasura.io/ai',
|
586
|
+
IconVariant:'aibot',
|
587
|
+
btnLabel:'AI with Hasura',
|
588
|
+
description:'Use Hasura Notebook to get Gen AI querying over your structured private data sources via GraphQL and REST APIs'
|
589
|
+
}
|
581
590
|
},
|
582
591
|
{
|
583
592
|
|
package/src/styles/tailwind.css
CHANGED
@@ -1526,6 +1526,20 @@ select{
|
|
1526
1526
|
-webkit-line-clamp: 3;
|
1527
1527
|
}
|
1528
1528
|
|
1529
|
+
.line-clamp-4{
|
1530
|
+
overflow: hidden;
|
1531
|
+
display: -webkit-box;
|
1532
|
+
-webkit-box-orient: vertical;
|
1533
|
+
-webkit-line-clamp: 4;
|
1534
|
+
}
|
1535
|
+
|
1536
|
+
.line-clamp-5{
|
1537
|
+
overflow: hidden;
|
1538
|
+
display: -webkit-box;
|
1539
|
+
-webkit-box-orient: vertical;
|
1540
|
+
-webkit-line-clamp: 5;
|
1541
|
+
}
|
1542
|
+
|
1529
1543
|
.block{
|
1530
1544
|
display: block;
|
1531
1545
|
}
|
@@ -1742,6 +1756,20 @@ select{
|
|
1742
1756
|
height: 100vh;
|
1743
1757
|
}
|
1744
1758
|
|
1759
|
+
.h-fit{
|
1760
|
+
height: -webkit-fit-content;
|
1761
|
+
height: -moz-fit-content;
|
1762
|
+
height: fit-content;
|
1763
|
+
}
|
1764
|
+
|
1765
|
+
.h-\[124px\]{
|
1766
|
+
height: 124px;
|
1767
|
+
}
|
1768
|
+
|
1769
|
+
.h-\[200px\]{
|
1770
|
+
height: 200px;
|
1771
|
+
}
|
1772
|
+
|
1745
1773
|
.max-h-\[144px\]{
|
1746
1774
|
max-height: 144px;
|
1747
1775
|
}
|
@@ -1790,6 +1818,14 @@ select{
|
|
1790
1818
|
max-height: 100vh;
|
1791
1819
|
}
|
1792
1820
|
|
1821
|
+
.max-h-\[124px\]{
|
1822
|
+
max-height: 124px;
|
1823
|
+
}
|
1824
|
+
|
1825
|
+
.max-h-\[175px\]{
|
1826
|
+
max-height: 175px;
|
1827
|
+
}
|
1828
|
+
|
1793
1829
|
.min-h-\[12px\]{
|
1794
1830
|
min-height: 12px;
|
1795
1831
|
}
|
@@ -2016,6 +2052,22 @@ select{
|
|
2016
2052
|
width: 100vw;
|
2017
2053
|
}
|
2018
2054
|
|
2055
|
+
.w-\[175px\]{
|
2056
|
+
width: 175px;
|
2057
|
+
}
|
2058
|
+
|
2059
|
+
.w-\[223px\]{
|
2060
|
+
width: 223px;
|
2061
|
+
}
|
2062
|
+
|
2063
|
+
.w-\[50px\]{
|
2064
|
+
width: 50px;
|
2065
|
+
}
|
2066
|
+
|
2067
|
+
.w-\[100px\]{
|
2068
|
+
width: 100px;
|
2069
|
+
}
|
2070
|
+
|
2019
2071
|
.min-w-\[11\.5rem\]{
|
2020
2072
|
min-width: 11.5rem;
|
2021
2073
|
}
|
@@ -2224,6 +2276,14 @@ select{
|
|
2224
2276
|
max-width: min-content;
|
2225
2277
|
}
|
2226
2278
|
|
2279
|
+
.max-w-\[175px\]{
|
2280
|
+
max-width: 175px;
|
2281
|
+
}
|
2282
|
+
|
2283
|
+
.max-w-\[56px\]{
|
2284
|
+
max-width: 56px;
|
2285
|
+
}
|
2286
|
+
|
2227
2287
|
.flex-1{
|
2228
2288
|
flex: 1 1 0%;
|
2229
2289
|
}
|
@@ -2756,6 +2816,12 @@ select{
|
|
2756
2816
|
overflow-y: scroll;
|
2757
2817
|
}
|
2758
2818
|
|
2819
|
+
.truncate{
|
2820
|
+
overflow: hidden;
|
2821
|
+
text-overflow: ellipsis;
|
2822
|
+
white-space: nowrap;
|
2823
|
+
}
|
2824
|
+
|
2759
2825
|
.whitespace-nowrap{
|
2760
2826
|
white-space: nowrap;
|
2761
2827
|
}
|
@@ -10076,6 +10142,10 @@ select{
|
|
10076
10142
|
background-color: rgb(133 77 24 / var(--tw-bg-opacity));
|
10077
10143
|
}
|
10078
10144
|
|
10145
|
+
.hover\:stroke-blue-600:hover{
|
10146
|
+
stroke: #1E56E3;
|
10147
|
+
}
|
10148
|
+
|
10079
10149
|
.hover\:pl-\[9px\]:hover{
|
10080
10150
|
padding-left: 9px;
|
10081
10151
|
}
|
@@ -10585,6 +10655,11 @@ select{
|
|
10585
10655
|
background-color: rgb(219 198 255 / var(--tw-bg-opacity));
|
10586
10656
|
}
|
10587
10657
|
|
10658
|
+
.group\/icon:hover .group-hover\/icon\:bg-blue-200{
|
10659
|
+
--tw-bg-opacity: 1;
|
10660
|
+
background-color: rgb(223 232 255 / var(--tw-bg-opacity));
|
10661
|
+
}
|
10662
|
+
|
10588
10663
|
.group:hover .group-hover\:bg-gradient-to-t{
|
10589
10664
|
background-image: linear-gradient(to top, var(--tw-gradient-stops));
|
10590
10665
|
}
|
@@ -10637,6 +10712,10 @@ select{
|
|
10637
10712
|
stroke: #111927;
|
10638
10713
|
}
|
10639
10714
|
|
10715
|
+
.group\/icon:hover .group-hover\/icon\:stroke-blue-600{
|
10716
|
+
stroke: #1E56E3;
|
10717
|
+
}
|
10718
|
+
|
10640
10719
|
.group\/btn:hover .group-hover\/btn\:text-blue-600{
|
10641
10720
|
--tw-text-opacity: 1;
|
10642
10721
|
color: rgb(30 86 227 / var(--tw-text-opacity));
|
@@ -11946,6 +12025,14 @@ select{
|
|
11946
12025
|
height: 100%;
|
11947
12026
|
}
|
11948
12027
|
|
12028
|
+
.tb-l\:h-\[124px\]{
|
12029
|
+
height: 124px;
|
12030
|
+
}
|
12031
|
+
|
12032
|
+
.tb-l\:h-12{
|
12033
|
+
height: 3rem;
|
12034
|
+
}
|
12035
|
+
|
11949
12036
|
.tb-l\:min-h-\[518px\]{
|
11950
12037
|
min-height: 518px;
|
11951
12038
|
}
|
@@ -11980,6 +12067,26 @@ select{
|
|
11980
12067
|
width: 100%;
|
11981
12068
|
}
|
11982
12069
|
|
12070
|
+
.tb-l\:w-\[175px\]{
|
12071
|
+
width: 175px;
|
12072
|
+
}
|
12073
|
+
|
12074
|
+
.tb-l\:w-\[223px\]{
|
12075
|
+
width: 223px;
|
12076
|
+
}
|
12077
|
+
|
12078
|
+
.tb-l\:w-\[150px\]{
|
12079
|
+
width: 150px;
|
12080
|
+
}
|
12081
|
+
|
12082
|
+
.tb-l\:w-\[170px\]{
|
12083
|
+
width: 170px;
|
12084
|
+
}
|
12085
|
+
|
12086
|
+
.tb-l\:w-12{
|
12087
|
+
width: 3rem;
|
12088
|
+
}
|
12089
|
+
|
11983
12090
|
.tb-l\:min-w-\[400px\]{
|
11984
12091
|
min-width: 400px;
|
11985
12092
|
}
|
@@ -12202,6 +12309,28 @@ select{
|
|
12202
12309
|
}
|
12203
12310
|
}
|
12204
12311
|
|
12312
|
+
@media (min-width: 970px){
|
12313
|
+
.tb-xl\:h-\[124px\]{
|
12314
|
+
height: 124px;
|
12315
|
+
}
|
12316
|
+
|
12317
|
+
.tb-xl\:h-12{
|
12318
|
+
height: 3rem;
|
12319
|
+
}
|
12320
|
+
|
12321
|
+
.tb-xl\:w-\[175px\]{
|
12322
|
+
width: 175px;
|
12323
|
+
}
|
12324
|
+
|
12325
|
+
.tb-xl\:w-\[223px\]{
|
12326
|
+
width: 223px;
|
12327
|
+
}
|
12328
|
+
|
12329
|
+
.tb-xl\:w-12{
|
12330
|
+
width: 3rem;
|
12331
|
+
}
|
12332
|
+
}
|
12333
|
+
|
12205
12334
|
@media (min-width: 1024px){
|
12206
12335
|
.lg\:flex{
|
12207
12336
|
display: flex;
|
@@ -12258,6 +12387,10 @@ select{
|
|
12258
12387
|
width: 100%;
|
12259
12388
|
}
|
12260
12389
|
|
12390
|
+
.db-s\:w-\[223px\]{
|
12391
|
+
width: 223px;
|
12392
|
+
}
|
12393
|
+
|
12261
12394
|
.db-s\:min-w-fit{
|
12262
12395
|
min-width: -webkit-fit-content;
|
12263
12396
|
min-width: -moz-fit-content;
|
@@ -12404,6 +12537,10 @@ select{
|
|
12404
12537
|
width: 100%;
|
12405
12538
|
}
|
12406
12539
|
|
12540
|
+
.db\:w-\[175px\]{
|
12541
|
+
width: 175px;
|
12542
|
+
}
|
12543
|
+
|
12407
12544
|
.db\:min-w-\[550px\]{
|
12408
12545
|
min-width: 550px;
|
12409
12546
|
}
|