hds-web 1.19.0 → 1.19.2
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 +1 -1
- package/dist/index.es.css +1 -1
- package/dist/index.es.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/src/HDS/assets/icons/zap.svg +1 -1
- package/src/HDS/components/Cards/Feedback/feedback.js +5 -5
- package/src/HDS/components/Cards/Menu/flyoutB.js +64 -29
- package/src/HDS/components/Headers/v3Header.js +5 -25
- package/src/HDS/foundation/Typography/Typography.js +1 -1
- package/src/HDS/modules/navCard/navCard.js +2 -2
- package/src/styles/tailwind.css +34 -46
- package/tailwind.config.js +10 -9
package/package.json
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<path d="M12.9999 2L4.09332 12.6879C3.74451 13.1064 3.57011 13.3157 3.56744 13.4925C3.56512 13.6461 3.63359 13.7923 3.75312 13.8889C3.89061 14 4.16304 14 4.7079 14H11.9999L10.9999 22L19.9064 11.3121C20.2552 10.8936 20.4296 10.6843 20.4323 10.5075C20.4346 10.3539 20.3661 10.2077 20.2466 10.1111C20.1091 10 19.8367 10 19.2918 10H11.9999L12.9999 2Z"
|
2
|
+
<path d="M12.9999 2L4.09332 12.6879C3.74451 13.1064 3.57011 13.3157 3.56744 13.4925C3.56512 13.6461 3.63359 13.7923 3.75312 13.8889C3.89061 14 4.16304 14 4.7079 14H11.9999L10.9999 22L19.9064 11.3121C20.2552 10.8936 20.4296 10.6843 20.4323 10.5075C20.4346 10.3539 20.3661 10.2077 20.2466 10.1111C20.1091 10 19.8367 10 19.2918 10H11.9999L12.9999 2Z" stroke-linecap="round" stroke-linejoin="round"/>
|
3
3
|
</svg>
|
@@ -21,8 +21,8 @@ export default function FeedbackCard(props) {
|
|
21
21
|
avatarVariant="circle"
|
22
22
|
avatarType="secondary"
|
23
23
|
/>
|
24
|
-
<div className={((props.dividerClass) ? "py-8" : "py-
|
25
|
-
<Typography textStyle='
|
24
|
+
<div className={((props.dividerClass) ? "py-8" : "py-8")}>
|
25
|
+
<Typography textStyle='quote' className='text-neutral-1000'>{props.description}</Typography>
|
26
26
|
</div>
|
27
27
|
</div>
|
28
28
|
<div className=" self-end">
|
@@ -31,11 +31,11 @@ export default function FeedbackCard(props) {
|
|
31
31
|
<div className={`${HDSColor(props.dividerClass)} mb-2`}></div>
|
32
32
|
)
|
33
33
|
}
|
34
|
-
<div className={"
|
35
|
-
<div className={"border border-neutral-150 p-2 flex items-center justify-center rounded-
|
34
|
+
<div className={"tb:flex pt-1 tb:pt-0 items-start" + ((props.dividerClass) ? " pt-6" : "mt-0")}>
|
35
|
+
<div className={"border border-neutral-150 p-2 flex items-center justify-center rounded-[0.7rem] " + logoBg + ((props.dividerClass) ? " w-[80px] h-[60px] min-w-[80px]" : " w-[80px] h-[60px] ")}>
|
36
36
|
<img className="max-h-[20px]" src={props.brandImgUrl} alt={props.brandImgAlt}/>
|
37
37
|
</div>
|
38
|
-
<div className={"pt-4
|
38
|
+
<div className={"pt-4 tb:pt-0 " + ((props.dividerClass) ? "tb:pl-6" : "tb:pl-8")}>
|
39
39
|
<Typography textStyle={((props.dividerClass) ? "body2" : "body1")} className='text-neutral-600 pb-1'>{props.blurb}</Typography>
|
40
40
|
<div className="flex">
|
41
41
|
<HDSButton
|
@@ -18,7 +18,8 @@ export default function FlyoutB(props) {
|
|
18
18
|
{ cta_leftVariantIcon: 'home03', cta_leftVariantIconColor: '#6C737F', cta_text: 'Button 1' },
|
19
19
|
|
20
20
|
|
21
|
-
]
|
21
|
+
],
|
22
|
+
tertiaryBtn
|
22
23
|
} = props;
|
23
24
|
|
24
25
|
return (
|
@@ -51,41 +52,75 @@ export default function FlyoutB(props) {
|
|
51
52
|
<Typography className='mt-2 text-neutral-600 relative z-[2]' textStyle='body3'>{mainDescription}</Typography>
|
52
53
|
</div>
|
53
54
|
</a>
|
55
|
+
<div className="flex flex-col gap-2">
|
56
|
+
{secondaryBtn.map((btn, index) => (
|
57
|
+
<a key={index} href={btn.cta_link} className="group/btn justify-around cursor-pointer px-2 ">
|
54
58
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
59
|
+
<div className=" flex items-center p-2 hover:bg-neutral-100 rounded-xl ">
|
60
|
+
<div className="flex w-full justify-between items-center z-[2]">
|
61
|
+
<div
|
62
|
+
className="flex rounded-lg gap-2 items-center ">
|
63
|
+
{btn.cta_leftVariantIcon && (
|
64
|
+
<Icon
|
65
|
+
height={'h-5 w-5 group-hover/btn:stroke-blue-500 stroke-2 '}
|
66
|
+
variant={btn.cta_leftVariantIcon}
|
67
|
+
strokeClass='stroke-neutral-500'
|
68
|
+
/>
|
69
|
+
)}
|
70
|
+
|
71
|
+
<Typography
|
72
|
+
textStyle='body3c-medium'
|
73
|
+
className='text-neutral-900 group-hover/btn:text-blue-600 hover:transition-all hover:duration-300 hover:ease-in-out whitespace-nowrap overflow-clip'>
|
74
|
+
{btn.cta_text}
|
75
|
+
</Typography>
|
76
|
+
</div>
|
77
|
+
<div className="flex group-hover/btn:translate-x-1 transform transition-all duration-200 ease-in-out ">
|
63
78
|
<Icon
|
64
|
-
height={'h-
|
65
|
-
variant={
|
66
|
-
strokeClass='stroke-
|
79
|
+
height={'h-4 w-4 stroke-2 invisible group-hover/btn:visible transition-all ease-in-out '}
|
80
|
+
variant={'chevronright'}
|
81
|
+
strokeClass={'stroke-blue-500'}
|
67
82
|
/>
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
83
|
+
</div>
|
84
|
+
</div>
|
85
|
+
</div>
|
86
|
+
|
87
|
+
|
88
|
+
</a>))}
|
89
|
+
|
90
|
+
{tertiaryBtn && tertiaryBtn.map((t, index) => (
|
91
|
+
<a key={index} href={t.cta_link} className="group/btn justify-around cursor-pointer px-2 pb-2 ">
|
92
|
+
|
93
|
+
<div className=" flex items-center p-2 hover:bg-neutral-100 rounded-xl ">
|
94
|
+
<div className="flex w-full justify-between items-center z-[2]">
|
95
|
+
<div
|
96
|
+
className="flex rounded-lg gap-2 items-center ">
|
97
|
+
{t.cta_leftVariantIcon && (
|
98
|
+
<Icon
|
99
|
+
height={'h-5 w-5 group-hover/btn:stroke-blue-500 stroke-2 '}
|
100
|
+
variant={t.cta_leftVariantIcon}
|
101
|
+
strokeClass='stroke-neutral-500'
|
102
|
+
/>
|
103
|
+
)}
|
104
|
+
|
105
|
+
<Typography
|
106
|
+
textStyle='body3c-medium'
|
107
|
+
className='text-neutral-900 group-hover/btn:text-blue-600 hover:transition-all hover:duration-300 hover:ease-in-out whitespace-nowrap overflow-clip'>
|
108
|
+
{t.cta_text}
|
109
|
+
</Typography>
|
110
|
+
</div>
|
111
|
+
<div className="flex group-hover/btn:translate-x-1 transform transition-all duration-200 ease-in-out ">
|
112
|
+
<Icon
|
113
|
+
height={'h-4 w-4 stroke-2 invisible group-hover/btn:visible transition-all ease-in-out '}
|
114
|
+
variant={'chevronright'}
|
115
|
+
strokeClass={'stroke-blue-500'}
|
116
|
+
/>
|
117
|
+
</div>
|
82
118
|
</div>
|
83
119
|
</div>
|
84
|
-
</div>
|
85
120
|
|
86
|
-
|
87
|
-
</a>))}
|
88
121
|
|
122
|
+
</a>))}
|
123
|
+
</div>
|
89
124
|
</div>
|
90
125
|
|
91
126
|
);
|
@@ -8,33 +8,10 @@ import { motion } from "framer-motion"
|
|
8
8
|
import { AnimatePresence } from 'framer-motion';
|
9
9
|
// import { AlgoliaSearch } from '../../helpers/AlgoliaSearch';
|
10
10
|
|
11
|
-
const solutions = [
|
12
|
-
{
|
13
|
-
name: 'Analytics',
|
14
|
-
description: 'Get a better understanding of where your traffic is coming from.',
|
15
|
-
href: '#',
|
16
|
-
icon: 'home03',
|
17
|
-
},
|
18
|
-
{
|
19
|
-
name: 'Engagement',
|
20
|
-
description: 'Speak directly to your customers in a more meaningful way.',
|
21
|
-
href: '#',
|
22
|
-
icon: 'home03',
|
23
|
-
},
|
24
|
-
{
|
25
|
-
name: 'Security',
|
26
|
-
description: 'Your customers’ data will be safe and secure.',
|
27
|
-
href: '#',
|
28
|
-
icon: 'home03'
|
29
|
-
},
|
30
|
-
]
|
31
|
-
|
32
11
|
function classNames(...classes) {
|
33
12
|
return classes.filter(Boolean).join(' ')
|
34
13
|
}
|
35
14
|
|
36
|
-
|
37
|
-
|
38
15
|
export default function V3Header(props) {
|
39
16
|
const listSize = props.HEADER_LIST.length;
|
40
17
|
const [mobileNavOpen, setmobileNavOpen] = useState(false);
|
@@ -277,7 +254,7 @@ export default function V3Header(props) {
|
|
277
254
|
|
278
255
|
return (
|
279
256
|
<div className="relative mx-auto">
|
280
|
-
<div className={`flex items-center ${HDSColor(props.headerBg)} justify-between py-4 db:py-
|
257
|
+
<div className={`flex items-center ${HDSColor(props.headerBg)} justify-between py-4 db:py-3 tb-l:justify-start`}>
|
281
258
|
<div className='flex flex-row justify-between items-center w-full tb-l:w-fit'>
|
282
259
|
<div>
|
283
260
|
|
@@ -505,8 +482,11 @@ V3Header.defaultProps = {
|
|
505
482
|
primaryBtnLabel: 'Hasura Platform',
|
506
483
|
primaryBtnCTA:'/products',
|
507
484
|
strokeClass: 'stroke-neutral-800',
|
485
|
+
tertiaryBtn: [
|
486
|
+
{ cta_leftVariantIcon: 'checksquarebroken', cta_leftVariantIconColor: '#6C737F', cta_text: 'Compare Plans', cta_link:'/pricing' }
|
487
|
+
],
|
508
488
|
secondaryBtn: [
|
509
|
-
{ cta_leftVariantIcon: '
|
489
|
+
{ cta_leftVariantIcon: 'zap', cta_leftVariantIconColor: '#6C737F', cta_text: 'Deployment Options', cta_link: '/products/deployment' }
|
510
490
|
],
|
511
491
|
},
|
512
492
|
secondaryCardArr:
|
@@ -43,7 +43,7 @@ export default function Typography(props) {
|
|
43
43
|
'body3c-medium': 'text-hds-m-body3c-medium tb:text-hds-t-body3c-medium db:text-hds-d-body3c-medium',
|
44
44
|
'body3c-semi-bold': 'text-hds-m-body3c-semi-bold tb:text-hds-t-body3c-semi-bold db:text-hds-d-body3c-semi-bold',
|
45
45
|
'body3c-bold': 'text-hds-m-body3c-bold tb:text-hds-t-body3c-bold db:text-hds-d-body3c-bold',
|
46
|
-
|
46
|
+
'quote': 'font-petrona italic text-hds-m-quote tb:text-hds-t-quote db:text-hds-d-quote',
|
47
47
|
'code1': 'text-hds-m-code1 tb:text-hds-t-code1 db:text-hds-d-code1',
|
48
48
|
'code2': 'text-hds-m-code2 tb:text-hds-t-code2 db:text-hds-d-code2',
|
49
49
|
}
|
@@ -15,9 +15,9 @@ export default function NavCard(props) {
|
|
15
15
|
return (
|
16
16
|
<>
|
17
17
|
<div className=''>
|
18
|
-
{tabContent.title && <Typography textStyle='
|
18
|
+
{tabContent.title && <Typography textStyle='body1c-semi-bold' className={HDSColor(tabContent.title_color)}>{tabContent.title}</Typography>}
|
19
19
|
|
20
|
-
{tabContent.subTitle && <Typography textStyle='
|
20
|
+
{tabContent.subTitle && <Typography textStyle='body3' className={ 'mt-2 ' + HDSColor(tabContent.sub_title_color)}>{tabContent.subTitle}</Typography>}
|
21
21
|
{tabContent.readMore_cta && <div className="flex">
|
22
22
|
<a href={tabContent.readMore_cta_link ?? ''} >
|
23
23
|
<HDSButton
|
package/src/styles/tailwind.css
CHANGED
@@ -1618,10 +1618,6 @@ select{
|
|
1618
1618
|
height: 436px;
|
1619
1619
|
}
|
1620
1620
|
|
1621
|
-
.h-\[56px\]{
|
1622
|
-
height: 56px;
|
1623
|
-
}
|
1624
|
-
|
1625
1621
|
.h-\[600px\]{
|
1626
1622
|
height: 600px;
|
1627
1623
|
}
|
@@ -1634,10 +1630,6 @@ select{
|
|
1634
1630
|
height: 80px;
|
1635
1631
|
}
|
1636
1632
|
|
1637
|
-
.h-\[90px\]{
|
1638
|
-
height: 90px;
|
1639
|
-
}
|
1640
|
-
|
1641
1633
|
.h-\[calc\(100\%-16px\)\]{
|
1642
1634
|
height: calc(100% - 16px);
|
1643
1635
|
}
|
@@ -1798,10 +1790,6 @@ select{
|
|
1798
1790
|
width: 103px;
|
1799
1791
|
}
|
1800
1792
|
|
1801
|
-
.w-\[112px\]{
|
1802
|
-
width: 112px;
|
1803
|
-
}
|
1804
|
-
|
1805
1793
|
.w-\[147px\]{
|
1806
1794
|
width: 147px;
|
1807
1795
|
}
|
@@ -1850,14 +1838,14 @@ select{
|
|
1850
1838
|
width: 709px;
|
1851
1839
|
}
|
1852
1840
|
|
1853
|
-
.w-\[72px\]{
|
1854
|
-
width: 72px;
|
1855
|
-
}
|
1856
|
-
|
1857
1841
|
.w-\[80\%\]{
|
1858
1842
|
width: 80%;
|
1859
1843
|
}
|
1860
1844
|
|
1845
|
+
.w-\[80px\]{
|
1846
|
+
width: 80px;
|
1847
|
+
}
|
1848
|
+
|
1861
1849
|
.w-\[90\%\]{
|
1862
1850
|
width: 90%;
|
1863
1851
|
}
|
@@ -1888,10 +1876,6 @@ select{
|
|
1888
1876
|
min-width: 11.5rem;
|
1889
1877
|
}
|
1890
1878
|
|
1891
|
-
.min-w-\[112px\]{
|
1892
|
-
min-width: 112px;
|
1893
|
-
}
|
1894
|
-
|
1895
1879
|
.min-w-\[12px\]{
|
1896
1880
|
min-width: 12px;
|
1897
1881
|
}
|
@@ -1932,8 +1916,8 @@ select{
|
|
1932
1916
|
min-width: 64px;
|
1933
1917
|
}
|
1934
1918
|
|
1935
|
-
.min-w-\[
|
1936
|
-
min-width:
|
1919
|
+
.min-w-\[80px\]{
|
1920
|
+
min-width: 80px;
|
1937
1921
|
}
|
1938
1922
|
|
1939
1923
|
.min-w-fit{
|
@@ -2614,6 +2598,10 @@ select{
|
|
2614
2598
|
border-radius: 1.5rem;
|
2615
2599
|
}
|
2616
2600
|
|
2601
|
+
.rounded-\[0\.7rem\]{
|
2602
|
+
border-radius: 0.7rem;
|
2603
|
+
}
|
2604
|
+
|
2617
2605
|
.rounded-\[32px\]{
|
2618
2606
|
border-radius: 32px;
|
2619
2607
|
}
|
@@ -6464,6 +6452,10 @@ select{
|
|
6464
6452
|
padding-top: 0px;
|
6465
6453
|
}
|
6466
6454
|
|
6455
|
+
.pt-1{
|
6456
|
+
padding-top: 0.25rem;
|
6457
|
+
}
|
6458
|
+
|
6467
6459
|
.pt-10{
|
6468
6460
|
padding-top: 2.5rem;
|
6469
6461
|
}
|
@@ -6788,9 +6780,9 @@ select{
|
|
6788
6780
|
}
|
6789
6781
|
|
6790
6782
|
.text-hds-m-quote{
|
6791
|
-
font-size: 1.
|
6792
|
-
line-height: 1.
|
6793
|
-
letter-spacing: -0.
|
6783
|
+
font-size: 1.75rem;
|
6784
|
+
line-height: 1.5;
|
6785
|
+
letter-spacing: -0.016em;
|
6794
6786
|
font-weight: 400;
|
6795
6787
|
}
|
6796
6788
|
|
@@ -10220,18 +10212,6 @@ select{
|
|
10220
10212
|
.mb-s\:rounded-tr-none{
|
10221
10213
|
border-top-right-radius: 0px;
|
10222
10214
|
}
|
10223
|
-
|
10224
|
-
.mb-s\:pl-6{
|
10225
|
-
padding-left: 1.5rem;
|
10226
|
-
}
|
10227
|
-
|
10228
|
-
.mb-s\:pl-8{
|
10229
|
-
padding-left: 2rem;
|
10230
|
-
}
|
10231
|
-
|
10232
|
-
.mb-s\:pt-0{
|
10233
|
-
padding-top: 0px;
|
10234
|
-
}
|
10235
10215
|
}
|
10236
10216
|
|
10237
10217
|
@media (min-width: 400px){
|
@@ -10696,6 +10676,14 @@ select{
|
|
10696
10676
|
padding-left: 3.5rem;
|
10697
10677
|
}
|
10698
10678
|
|
10679
|
+
.tb\:pl-6{
|
10680
|
+
padding-left: 1.5rem;
|
10681
|
+
}
|
10682
|
+
|
10683
|
+
.tb\:pl-8{
|
10684
|
+
padding-left: 2rem;
|
10685
|
+
}
|
10686
|
+
|
10699
10687
|
.tb\:pr-0{
|
10700
10688
|
padding-right: 0px;
|
10701
10689
|
}
|
@@ -10972,9 +10960,9 @@ select{
|
|
10972
10960
|
}
|
10973
10961
|
|
10974
10962
|
.tb\:text-hds-t-quote{
|
10975
|
-
font-size: 1.
|
10976
|
-
line-height: 1.
|
10977
|
-
letter-spacing: -0.
|
10963
|
+
font-size: 1.75rem;
|
10964
|
+
line-height: 1.4;
|
10965
|
+
letter-spacing: -0.016em;
|
10978
10966
|
font-weight: 400;
|
10979
10967
|
}
|
10980
10968
|
|
@@ -11748,9 +11736,9 @@ select{
|
|
11748
11736
|
padding-bottom: 5rem;
|
11749
11737
|
}
|
11750
11738
|
|
11751
|
-
.db\:py-
|
11752
|
-
padding-top:
|
11753
|
-
padding-bottom:
|
11739
|
+
.db\:py-3{
|
11740
|
+
padding-top: 0.75rem;
|
11741
|
+
padding-bottom: 0.75rem;
|
11754
11742
|
}
|
11755
11743
|
|
11756
11744
|
.db\:pb-0{
|
@@ -12033,9 +12021,9 @@ select{
|
|
12033
12021
|
}
|
12034
12022
|
|
12035
12023
|
.db\:text-hds-d-quote{
|
12036
|
-
font-size:
|
12037
|
-
line-height:
|
12038
|
-
letter-spacing: -0.
|
12024
|
+
font-size: 2rem;
|
12025
|
+
line-height: 1.4;
|
12026
|
+
letter-spacing: -0.016em;
|
12039
12027
|
font-weight: 400;
|
12040
12028
|
}
|
12041
12029
|
|
package/tailwind.config.js
CHANGED
@@ -155,6 +155,7 @@ module.exports = {
|
|
155
155
|
},
|
156
156
|
letterSpacing: {
|
157
157
|
tightest: '-.02em',
|
158
|
+
tighter2: '-0.016em',
|
158
159
|
tighter: '-.015em',
|
159
160
|
tight: '-.01em',
|
160
161
|
normal: '0',
|
@@ -793,21 +794,21 @@ module.exports = {
|
|
793
794
|
// add more for more breakpoints
|
794
795
|
|
795
796
|
// quote-style
|
796
|
-
'hds-m-quote': ['1.
|
797
|
-
lineHeight: '1.
|
798
|
-
letterSpacing: '-0.
|
797
|
+
'hds-m-quote': ['1.75rem', {
|
798
|
+
lineHeight: '1.5',
|
799
|
+
letterSpacing: '-0.016em',
|
799
800
|
fontWeight: '400',
|
800
801
|
fontStyle: 'italic',
|
801
802
|
}],
|
802
|
-
'hds-t-quote': ['1.
|
803
|
-
lineHeight: '1.
|
804
|
-
letterSpacing: '-0.
|
803
|
+
'hds-t-quote': ['1.75rem', {
|
804
|
+
lineHeight: '1.4',
|
805
|
+
letterSpacing: '-0.016em',
|
805
806
|
fontWeight: '400',
|
806
807
|
fontStyle: 'italic',
|
807
808
|
}],
|
808
|
-
'hds-d-quote': ['
|
809
|
-
lineHeight: '
|
810
|
-
letterSpacing: '-0.
|
809
|
+
'hds-d-quote': ['2rem', {
|
810
|
+
lineHeight: '1.4',
|
811
|
+
letterSpacing: '-0.016em',
|
811
812
|
fontWeight: '400',
|
812
813
|
fontStyle: 'italic',
|
813
814
|
}],
|