hds-web 1.26.2 → 1.26.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
@@ -9,10 +9,14 @@ export default function LiveStatus(props) {
|
|
9
9
|
const bgColorClass = HDSColor(props.bgClass);
|
10
10
|
const textColorClass = HDSColor(props.statusTextClass);
|
11
11
|
const circleBgClass = HDSColor(props.statusCircleBgClass);
|
12
|
+
let blink = '';
|
13
|
+
if(props.blink){
|
14
|
+
blink = 'blinking'
|
15
|
+
}
|
12
16
|
return (
|
13
|
-
<div className={`${bgColorClass} px-3 py-
|
14
|
-
<div className={`${circleBgClass}
|
15
|
-
<Typography textStyle="
|
17
|
+
<div className={`${bgColorClass} px-3 py-1 rounded-full inline-flex items-center shadow`}>
|
18
|
+
<div className={`${circleBgClass} ${blink} mr-1 w-3 h-3 min-w-[12px] min-h-[12px] rounded-full`}></div>
|
19
|
+
<Typography textStyle="body3c-medium" className={`${textColorClass} `}>{props.statusText}</Typography>
|
16
20
|
</div>
|
17
21
|
);
|
18
22
|
}
|
@@ -21,6 +25,6 @@ LiveStatus.defaultProps = {
|
|
21
25
|
statusText: "Live Now",
|
22
26
|
statusTextClass: "text-neutral-0",
|
23
27
|
bgClass: "bg-neutral-700",
|
24
|
-
statusCircleBgClass: "bg-
|
28
|
+
statusCircleBgClass: "bg-red-400"
|
25
29
|
|
26
30
|
};
|
@@ -32,7 +32,7 @@ export default function V3Tab(props) {
|
|
32
32
|
onClick={() => {
|
33
33
|
handleTabClick(tab);
|
34
34
|
}}
|
35
|
-
className={`${activeTab === tab.name ? ' text-neutral-0 ' : ' hover:bg-neutral-500/30 text-neutral-400
|
35
|
+
className={`${activeTab === tab.name ? ' text-neutral-0 transition-all duration-300' : ' hover:bg-neutral-500/30 text-neutral-400'} relative px-3 py-1 whitespace-nowrap rounded-full hover:text-neutral-0`}
|
36
36
|
>
|
37
37
|
{activeTab === tab.name && (
|
38
38
|
<motion.div
|
package/src/styles/tailwind.css
CHANGED