hds-web 1.11.8 → 1.12.1

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.11.8",
3
+ "version": "1.12.1",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -1,2 +1,3 @@
1
1
  export {default as Badges} from './badges';
2
- export {default as Count} from './count';
2
+ export {default as Count} from './count';
3
+ export {default as LiveStatus} from './livestatus';
@@ -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-1000'>{props.description}</Typography>
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 casestudy'
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
+ }
@@ -18,7 +18,7 @@ export default function DataSourcesCard(props) {
18
18
  && (<div className="flex flex-col gap-4">
19
19
  <Typography textStyle='h3' className='text-neutral-1000 db:block hidden'>{props.title}</Typography>
20
20
  <Typography textStyle='sub2' className='text-neutral-600 db:mt-0 mt-4 '>{props.description}</Typography>
21
- </div>)}https://pr-3736---main-site-nextjs-5kcgrtdh3a-wl.a.run.app
21
+ </div>)}
22
22
  {props.CTA &&
23
23
  <div className="mt-4 tb:mt-6 flex">
24
24
  <a href={props.CTA['url']}>
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
+ }