hds-web 1.12.0 → 1.12.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 +4 -4
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/src/HDS/components/BadgesCaption/index.js +2 -1
- package/src/HDS/components/BadgesCaption/livestatus.js +26 -0
- package/src/HDS/components/Cards/Feedback/feedback.js +3 -3
- package/src/HDS/components/Footers/v3Footer.js +5 -1
- package/src/index.css +32 -11
- package/src/styles/tailwind.css +54 -1
package/package.json
CHANGED
@@ -0,0 +1,26 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { useState } from 'react';
|
3
|
+
import PropTypes from 'prop-types';
|
4
|
+
import { Icon } from '../common-components/Icon';
|
5
|
+
import {Typography} from '../../foundation/Typography'
|
6
|
+
import { HDSColor } from '../../foundation/ColorPalette';
|
7
|
+
|
8
|
+
export default function LiveStatus(props) {
|
9
|
+
const bgColorClass = HDSColor(props.bgClass);
|
10
|
+
const textColorClass = HDSColor(props.statusTextClass);
|
11
|
+
const circleBgClass = HDSColor(props.statusCircleBgClass);
|
12
|
+
return (
|
13
|
+
<div className={`${bgColorClass} px-3 py-2 rounded-full inline-flex items-center`}>
|
14
|
+
<div className={`${circleBgClass} blinking mr-2 w-3 h-3 min-w-[12px] min-h-[12px] rounded-full`}></div>
|
15
|
+
<Typography textStyle="h6" as="h6" className={`${textColorClass} uppercase`}>{props.statusText}</Typography>
|
16
|
+
</div>
|
17
|
+
);
|
18
|
+
}
|
19
|
+
|
20
|
+
LiveStatus.defaultProps = {
|
21
|
+
statusText: "Live Now",
|
22
|
+
statusTextClass: "text-neutral-0",
|
23
|
+
bgClass: "bg-neutral-700",
|
24
|
+
statusCircleBgClass: "bg-green-400"
|
25
|
+
|
26
|
+
};
|
@@ -22,7 +22,7 @@ export default function FeedbackCard(props) {
|
|
22
22
|
avatarType="secondary"
|
23
23
|
/>
|
24
24
|
<div className={((props.dividerClass) ? "py-8" : "py-6")}>
|
25
|
-
<Typography textStyle='sub2' className='text-neutral-
|
25
|
+
<Typography textStyle='sub2' className='text-neutral-600'>{props.description}</Typography>
|
26
26
|
</div>
|
27
27
|
</div>
|
28
28
|
<div className=" self-end">
|
@@ -39,7 +39,7 @@ export default function FeedbackCard(props) {
|
|
39
39
|
<Typography textStyle={((props.dividerClass) ? "body2" : "body1")} className='text-neutral-600 pb-1'>{props.blurb}</Typography>
|
40
40
|
<a href={props.caseStudyUrl} className="flex">
|
41
41
|
<HDSButton
|
42
|
-
label='Read
|
42
|
+
label='Read case study'
|
43
43
|
type='secondaryLink'
|
44
44
|
leftIconVariant='none'
|
45
45
|
rightIconVariant='none'
|
@@ -58,4 +58,4 @@ export default function FeedbackCard(props) {
|
|
58
58
|
</div>
|
59
59
|
</div>
|
60
60
|
)
|
61
|
-
}
|
61
|
+
}
|
@@ -106,10 +106,14 @@ export default function V3Footer(props) {
|
|
106
106
|
}
|
107
107
|
</div>
|
108
108
|
{isItems && !isError && (
|
109
|
-
|
109
|
+
<>
|
110
|
+
<a href='https://status.hasura.io/' className=''>
|
111
|
+
<div className=' bg-neutral-0 rounded-full shadow hover:shadow-lg transition-all duration-300 px-4 py-2 inline-flex justify-center items-center'>
|
110
112
|
<div className='w-4 h-4 bg-green-400 rounded-full mr-2'></div>
|
111
113
|
<Typography textStyle='body3' className='text-neutral-1000'>{isItems?.status.description}</Typography>
|
112
114
|
</div>
|
115
|
+
</a>
|
116
|
+
</>
|
113
117
|
)}
|
114
118
|
<div>
|
115
119
|
<Typography textStyle='body3c' className='text-neutral-600 pt-4 tb-m:pt-0'>© {new Date().getFullYear()} Hasura Inc. All rights reserved</Typography>
|
package/src/index.css
CHANGED
@@ -36,7 +36,7 @@
|
|
36
36
|
width: 100%;
|
37
37
|
height: 100%;
|
38
38
|
left: 0;
|
39
|
-
top: 0;
|
39
|
+
top: 0;
|
40
40
|
}
|
41
41
|
|
42
42
|
/*test*/
|
@@ -89,23 +89,44 @@
|
|
89
89
|
}
|
90
90
|
}
|
91
91
|
|
92
|
+
@keyframes up-right {
|
93
|
+
0% {
|
94
|
+
transform: scale(1);
|
95
|
+
opacity: 0.25;
|
96
|
+
}
|
97
|
+
50% {
|
98
|
+
transform: scale (1, 5);
|
99
|
+
opacity: 1;
|
100
|
+
}
|
101
|
+
100% {
|
102
|
+
transform: scale(1);
|
103
|
+
opacity: 0.25;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
.blinking {
|
108
|
+
-webkit-animation: up-right 1s infinite;
|
109
|
+
-moz-animation: up-right 1s infinite;
|
110
|
+
-o-animation: up-right 1s infinite;
|
111
|
+
animation: up-right 1s infinite;
|
112
|
+
}
|
92
113
|
|
93
114
|
.card-animation-wrapper {
|
94
115
|
position: relative;
|
95
116
|
}
|
96
|
-
|
117
|
+
|
97
118
|
.card-animation-wrapper .feature-card {
|
98
119
|
transition: all;
|
99
120
|
}
|
100
|
-
|
121
|
+
|
101
122
|
.card-animation-wrapper .feature-card:first-child {
|
102
123
|
animation: card1 15s infinite;
|
103
124
|
}
|
104
|
-
|
125
|
+
|
105
126
|
.card-animation-wrapper .feature-card:nth-child(2) {
|
106
127
|
animation: card2 15s infinite;
|
107
128
|
}
|
108
|
-
|
129
|
+
|
109
130
|
.card-animation-wrapper .feature-card:nth-child(3) {
|
110
131
|
animation: card3 15s infinite;
|
111
132
|
}
|
@@ -560,19 +581,19 @@
|
|
560
581
|
|
561
582
|
35% {
|
562
583
|
left: 41%;
|
563
|
-
|
584
|
+
|
564
585
|
opacity: 1;
|
565
586
|
}
|
566
587
|
|
567
588
|
65% {
|
568
589
|
left: 59%;
|
569
|
-
|
590
|
+
|
570
591
|
opacity: 1;
|
571
592
|
}
|
572
593
|
|
573
594
|
100% {
|
574
595
|
left: 100%;
|
575
|
-
|
596
|
+
|
576
597
|
opacity: 0;
|
577
598
|
}
|
578
599
|
}
|
@@ -627,7 +648,7 @@
|
|
627
648
|
|
628
649
|
100% {
|
629
650
|
left: 100%;
|
630
|
-
|
651
|
+
|
631
652
|
opacity: 0;
|
632
653
|
}
|
633
654
|
}
|
@@ -654,7 +675,7 @@
|
|
654
675
|
|
655
676
|
100% {
|
656
677
|
left: 100%;
|
657
|
-
|
678
|
+
|
658
679
|
opacity: 0;
|
659
680
|
}
|
660
|
-
}
|
681
|
+
}
|
package/src/styles/tailwind.css
CHANGED
@@ -1591,6 +1591,10 @@ select{
|
|
1591
1591
|
max-height: 100%;
|
1592
1592
|
}
|
1593
1593
|
|
1594
|
+
.min-h-\[12px\]{
|
1595
|
+
min-height: 12px;
|
1596
|
+
}
|
1597
|
+
|
1594
1598
|
.min-h-\[20px\]{
|
1595
1599
|
min-height: 20px;
|
1596
1600
|
}
|
@@ -1777,6 +1781,10 @@ select{
|
|
1777
1781
|
min-width: 112px;
|
1778
1782
|
}
|
1779
1783
|
|
1784
|
+
.min-w-\[12px\]{
|
1785
|
+
min-width: 12px;
|
1786
|
+
}
|
1787
|
+
|
1780
1788
|
.min-w-\[130px\]{
|
1781
1789
|
min-width: 130px;
|
1782
1790
|
}
|
@@ -7481,6 +7489,51 @@ select{
|
|
7481
7489
|
}
|
7482
7490
|
}
|
7483
7491
|
|
7492
|
+
@-webkit-keyframes up-right {
|
7493
|
+
0% {
|
7494
|
+
-webkit-transform: scale(1);
|
7495
|
+
transform: scale(1);
|
7496
|
+
opacity: 0.25;
|
7497
|
+
}
|
7498
|
+
|
7499
|
+
50% {
|
7500
|
+
-webkit-transform: scale (1, 5);
|
7501
|
+
transform: scale (1, 5);
|
7502
|
+
opacity: 1;
|
7503
|
+
}
|
7504
|
+
|
7505
|
+
100% {
|
7506
|
+
-webkit-transform: scale(1);
|
7507
|
+
transform: scale(1);
|
7508
|
+
opacity: 0.25;
|
7509
|
+
}
|
7510
|
+
}
|
7511
|
+
|
7512
|
+
@keyframes up-right {
|
7513
|
+
0% {
|
7514
|
+
-webkit-transform: scale(1);
|
7515
|
+
transform: scale(1);
|
7516
|
+
opacity: 0.25;
|
7517
|
+
}
|
7518
|
+
|
7519
|
+
50% {
|
7520
|
+
-webkit-transform: scale (1, 5);
|
7521
|
+
transform: scale (1, 5);
|
7522
|
+
opacity: 1;
|
7523
|
+
}
|
7524
|
+
|
7525
|
+
100% {
|
7526
|
+
-webkit-transform: scale(1);
|
7527
|
+
transform: scale(1);
|
7528
|
+
opacity: 0.25;
|
7529
|
+
}
|
7530
|
+
}
|
7531
|
+
|
7532
|
+
.blinking {
|
7533
|
+
-webkit-animation: up-right 1s infinite;
|
7534
|
+
animation: up-right 1s infinite;
|
7535
|
+
}
|
7536
|
+
|
7484
7537
|
.card-animation-wrapper {
|
7485
7538
|
position: relative;
|
7486
7539
|
}
|
@@ -11456,4 +11509,4 @@ select{
|
|
11456
11509
|
.\[\&\>ul\]\:ps-4>ul{
|
11457
11510
|
-webkit-padding-start: 1rem;
|
11458
11511
|
padding-inline-start: 1rem;
|
11459
|
-
}
|
11512
|
+
}
|