hds-web 1.6.6 → 1.6.8
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 -5
- package/dist/index.es.css +2 -5
- package/dist/index.es.js +13 -13
- package/dist/index.js +13 -13
- package/package.json +1 -1
- package/src/HDS/assets/icons/calendar-plus-01.svg +1 -1
- package/src/HDS/assets/icons/calendar-plus-02.svg +1 -1
- package/src/HDS/components/Avatars/hasConAv.js +10 -9
- package/src/HDS/components/Avatars/profileAvatar.js +29 -10
- package/src/HDS/components/BadgesCaption/badges.js +4 -7
- package/src/HDS/components/Buttons/button.js +14 -25
- package/src/HDS/components/Cards/Dropdown/v3Dropdown.js +1 -1
- package/src/HDS/components/Cards/Feedback/feedback.js +1 -1
- package/src/HDS/components/Cards/Link/link.js +13 -19
- package/src/HDS/components/Cards/Menu/flyout.js +4 -5
- package/src/HDS/components/Cards/Menu/flyoutA.js +4 -5
- package/src/HDS/components/Cards/Menu/flyoutFull.js +0 -1
- package/src/HDS/components/Cards/Misc/iconCard.js +60 -71
- package/src/HDS/components/Cards/Misc/index.js +0 -1
- package/src/HDS/components/Cards/Misc/talkCard.js +18 -19
- package/src/HDS/components/Cards/TalkDetailCard/talkDetailCard.js +52 -83
- package/src/HDS/components/Carousels/carouselCard.js +90 -101
- package/src/HDS/components/Headers/v3Header.js +85 -111
- package/src/HDS/components/Hero/h2.js +36 -58
- package/src/HDS/components/Hero/index.js +1 -2
- package/src/HDS/components/Tables/index.js +1 -2
- package/src/HDS/components/Tables/tableB.js +10 -10
- package/src/HDS/components/Tables/tableC.js +23 -20
- package/src/HDS/components/Tabs/tab.js +16 -47
- package/src/HDS/components/common-components/Icon/IconMap.js +0 -6
- package/src/HDS/components/index.js +1 -2
- package/src/HDS/foundation/ColorPalette/color.js +1 -193
- package/src/HDS/foundation/Typography/Typography.js +1 -2
- package/src/HDS/helpers/index.js +1 -2
- package/src/HDS/modules/TextCard/textCard.js +71 -8
- package/src/HDS/modules/index.js +1 -2
- package/src/index.css +1 -39
- package/src/styles/tailwind.css +1842 -3151
- package/tailwind.config.js +3 -6
- package/src/HDS/assets/icons/hasura-1.svg +0 -3
- package/src/HDS/assets/icons/hasura-2.svg +0 -3
- package/src/HDS/assets/icons/hasura-3.svg +0 -3
- package/src/HDS/components/Cards/ImageBox/imagebox.js +0 -51
- package/src/HDS/components/Cards/ImageBox/index.js +0 -1
- package/src/HDS/components/Cards/Misc/talkcard2.js +0 -118
- package/src/HDS/components/Hero/h3.js +0 -413
- package/src/HDS/components/Tables/tableD.js +0 -326
- package/src/HDS/helpers/Grid/grid.js +0 -64
- package/src/HDS/helpers/Grid/index.js +0 -1
- package/src/HDS/helpers/Media/index.js +0 -1
- package/src/HDS/helpers/Media/mediabox.js +0 -75
- package/src/HDS/modules/navCard/index.js +0 -1
- package/src/HDS/modules/navCard/navCard.js +0 -82
|
@@ -1,22 +1,11 @@
|
|
|
1
1
|
import React, { useState, useRef } from 'react';
|
|
2
|
-
import { HDSColor } from '../../foundation/ColorPalette';
|
|
3
2
|
import { Typography } from '../../foundation/Typography'
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
3
|
|
|
6
4
|
export default function Tab(props) {
|
|
7
|
-
const {
|
|
8
|
-
tabs,
|
|
9
|
-
onTabClick,
|
|
10
|
-
pillColor,
|
|
11
|
-
} = props;
|
|
5
|
+
const { tabs, onTabClick } = props;
|
|
12
6
|
const [activeTab, setActiveTab] = useState(tabs.find(tab => tab.current) || tabs[0]);
|
|
13
7
|
const pillRef = useRef(null);
|
|
14
|
-
|
|
15
|
-
if(pillColor){
|
|
16
|
-
pillColorClass = HDSColor(pillColor);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
8
|
+
|
|
20
9
|
const handleTabClick = (event, clickedTab) => {
|
|
21
10
|
event.preventDefault();
|
|
22
11
|
setActiveTab(clickedTab);
|
|
@@ -30,51 +19,35 @@ export default function Tab(props) {
|
|
|
30
19
|
const pillWidth = event.currentTarget.offsetWidth;
|
|
31
20
|
const clickedTabOffset = event.currentTarget.offsetLeft;
|
|
32
21
|
const pillOffset = pill.parentElement.offsetLeft;
|
|
33
|
-
const translateX = clickedTabOffset;
|
|
22
|
+
const translateX = clickedTabOffset ;
|
|
34
23
|
|
|
35
24
|
pill.style.transform = `translateX(${translateX}px)`;
|
|
36
25
|
pill.style.width = `${pillWidth}px`;
|
|
37
26
|
}
|
|
38
27
|
};
|
|
39
|
-
let tabTextClass = '';
|
|
40
|
-
|
|
41
|
-
function tabClass(name) {
|
|
42
|
-
|
|
43
|
-
// console.log(currentTab['tabTextColorClass']);
|
|
44
|
-
|
|
45
|
-
if(activeTab['tabTextColorClass']){
|
|
46
|
-
tabTextClass = HDSColor(activeTab['tabTextColorClass']);
|
|
47
|
-
}
|
|
48
|
-
else tabTextClass = 'text-neutral-500'
|
|
49
28
|
|
|
50
|
-
let classActive = ' text-neutral-0 transition-all rounded-full ' + pillColorClass;
|
|
51
|
-
let clasnInActive = ' flex-nowrap rounded-full ' + tabTextClass;
|
|
52
|
-
if (activeTab.name === name) {
|
|
53
|
-
return classActive;
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
return clasnInActive;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
29
|
return (
|
|
60
|
-
<div
|
|
30
|
+
<div>
|
|
61
31
|
<div className="block">
|
|
62
|
-
<nav className="relative inline-flex gap-2 rounded-full" aria-label="Tabs">
|
|
32
|
+
<nav className="relative inline-flex gap-2 p-2 rounded-full" aria-label="Tabs">
|
|
63
33
|
{tabs.map(tab => (
|
|
64
|
-
<
|
|
34
|
+
<a
|
|
65
35
|
key={tab.name}
|
|
36
|
+
href="#"
|
|
37
|
+
className={`px-3 py-1 font-medium text-sm rounded-full ${
|
|
38
|
+
activeTab === tab
|
|
39
|
+
? ' first:bg-blue-500 text-neutral-0 transition-all delay-100 duration-100 '
|
|
40
|
+
: 'text-neutral-500 transition-all delay-200 flex-nowrap '
|
|
41
|
+
}`}
|
|
42
|
+
aria-current={activeTab === tab ? 'page' : undefined}
|
|
66
43
|
onClick={(event) => handleTabClick(event, tab)}
|
|
67
44
|
>
|
|
68
|
-
<Typography
|
|
69
|
-
|
|
70
|
-
textStyle='body3c-medium'>
|
|
71
|
-
{tab.name}
|
|
72
|
-
</Typography>
|
|
73
|
-
</div>
|
|
45
|
+
<Typography className='z-[2] relative whitespace-nowrap' textStyle='body3c-medium'>{tab.name}</Typography>
|
|
46
|
+
</a>
|
|
74
47
|
))}
|
|
75
48
|
<span
|
|
76
49
|
ref={pillRef}
|
|
77
|
-
className=
|
|
50
|
+
className="absolute left-0 z-[1] bg-blue-500 rounded-full transition-all ease-in-out duration-700"
|
|
78
51
|
style={{
|
|
79
52
|
left: `${activeTab.index * 100}%`,
|
|
80
53
|
width: `${activeTab.width}px`, // Use the width of the clicked tab
|
|
@@ -86,7 +59,3 @@ export default function Tab(props) {
|
|
|
86
59
|
</div>
|
|
87
60
|
);
|
|
88
61
|
}
|
|
89
|
-
|
|
90
|
-
Tab.defaultProps = {
|
|
91
|
-
pillColor: 'bg-blue-500',
|
|
92
|
-
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import {HDSColor} from '../../../foundation/ColorPalette';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import {ReactComponent as Hasura1Icon } from "../../../assets/icons/hasura-1.svg"
|
|
5
|
-
import {ReactComponent as Hasura2Icon } from "../../../assets/icons/hasura-2.svg"
|
|
6
|
-
import {ReactComponent as Hasura3Icon } from "../../../assets/icons/hasura-3.svg"
|
|
7
4
|
import {ReactComponent as HasuraPrimaryIcon } from "../../../assets/icons/HasuraPrimary.svg"
|
|
8
5
|
import {ReactComponent as ClockrewindIcon } from "../../../assets/icons/clock-rewind.svg"
|
|
9
6
|
import {ReactComponent as PassportIcon } from "../../../assets/icons/passport.svg"
|
|
@@ -1180,9 +1177,6 @@ import {ReactComponent as Minus01Icon } from "../../../assets/icons/minus-01.svg
|
|
|
1180
1177
|
import {ReactComponent as HasuraIcon } from "../../../assets/icons/hasura.svg"
|
|
1181
1178
|
|
|
1182
1179
|
const iconReferenceMap = {
|
|
1183
|
-
hasura1: Hasura1Icon,
|
|
1184
|
-
hasura2: Hasura2Icon,
|
|
1185
|
-
hasura3: Hasura3Icon,
|
|
1186
1180
|
hasuraPrimary: HasuraPrimaryIcon,
|
|
1187
1181
|
hasura: HasuraIcon,
|
|
1188
1182
|
minus01: Minus01Icon,
|
|
@@ -574,199 +574,7 @@ const HDSColors = {
|
|
|
574
574
|
"stroke-red-500": "stroke-red-500",
|
|
575
575
|
"stroke-red-600": "stroke-red-600",
|
|
576
576
|
"stroke-red-700": "stroke-red-700",
|
|
577
|
-
"stroke-red-800": "stroke-red-800"
|
|
578
|
-
"hover:bg-storybook-default-heading": "hover:bg-storybook-default-heading",
|
|
579
|
-
"hover:bg-base-0": "hover:bg-base-0",
|
|
580
|
-
"hover:bg-base-1000": "hover:bg-base-1000",
|
|
581
|
-
"hover:bg-neutral-0": "hover:bg-neutral-0",
|
|
582
|
-
"hover:bg-neutral-50": "hover:bg-neutral-50",
|
|
583
|
-
"hover:bg-neutral-100": "hover:bg-neutral-100",
|
|
584
|
-
"hover:bg-neutral-150": "hover:bg-neutral-150",
|
|
585
|
-
"hover:bg-neutral-200": "hover:bg-neutral-200",
|
|
586
|
-
"hover:bg-neutral-300": "hover:bg-neutral-300",
|
|
587
|
-
"hover:bg-neutral-400": "hover:bg-neutral-400",
|
|
588
|
-
"hover:bg-neutral-500": "hover:bg-neutral-500",
|
|
589
|
-
"hover:bg-neutral-600": "hover:bg-neutral-600",
|
|
590
|
-
"hover:bg-neutral-700": "hover:bg-neutral-700",
|
|
591
|
-
"hover:bg-neutral-800": "hover:bg-neutral-800",
|
|
592
|
-
"hover:bg-neutral-850": "hover:bg-neutral-850",
|
|
593
|
-
"hover:bg-neutral-900": "hover:bg-neutral-900",
|
|
594
|
-
"hover:bg-neutral-950": "hover:bg-neutral-950",
|
|
595
|
-
"hover:bg-neutral-1000": "hover:bg-neutral-1000",
|
|
596
|
-
"hover:bg-blue-100": "hover:bg-blue-100",
|
|
597
|
-
"hover:bg-blue-200": "hover:bg-blue-200",
|
|
598
|
-
"hover:bg-blue-300": "hover:bg-blue-300",
|
|
599
|
-
"hover:bg-blue-400": "hover:bg-blue-400",
|
|
600
|
-
"hover:bg-blue-500": "hover:bg-blue-500",
|
|
601
|
-
"hover:bg-blue-600": "hover:bg-blue-600",
|
|
602
|
-
"hover:bg-blue-700": "hover:bg-blue-700",
|
|
603
|
-
"hover:bg-blue-800": "hover:bg-blue-800",
|
|
604
|
-
"hover:bg-blue-900": "hover:bg-blue-900",
|
|
605
|
-
"hover:bg-purple-100": "hover:bg-purple-100",
|
|
606
|
-
"hover:bg-purple-200": "hover:bg-purple-200",
|
|
607
|
-
"hover:bg-purple-300": "hover:bg-purple-300",
|
|
608
|
-
"hover:bg-purple-400": "hover:bg-purple-400",
|
|
609
|
-
"hover:bg-purple-500": "hover:bg-purple-500",
|
|
610
|
-
"hover:bg-purple-600": "hover:bg-purple-600",
|
|
611
|
-
"hover:bg-purple-700": "hover:bg-purple-700",
|
|
612
|
-
"hover:bg-purple-800": "hover:bg-purple-800",
|
|
613
|
-
"hover:bg-purple-900": "hover:bg-purple-900",
|
|
614
|
-
"hover:bg-cyan-100": "hover:bg-cyan-100",
|
|
615
|
-
"hover:bg-cyan-200": "hover:bg-cyan-200",
|
|
616
|
-
"hover:bg-cyan-300": "hover:bg-cyan-300",
|
|
617
|
-
"hover:bg-cyan-400": "hover:bg-cyan-400",
|
|
618
|
-
"hover:bg-cyan-500": "hover:bg-cyan-500",
|
|
619
|
-
"hover:bg-cyan-600": "hover:bg-cyan-600",
|
|
620
|
-
"hover:bg-cyan-700": "hover:bg-cyan-700",
|
|
621
|
-
"hover:bg-cyan-800": "hover:bg-cyan-800",
|
|
622
|
-
"hover:bg-cyan-900": "hover:bg-cyan-900",
|
|
623
|
-
"hover:bg-green-100": "hover:bg-green-100",
|
|
624
|
-
"hover:bg-green-200": "hover:bg-green-200",
|
|
625
|
-
"hover:bg-green-300": "hover:bg-green-300",
|
|
626
|
-
"hover:bg-green-400": "hover:bg-green-400",
|
|
627
|
-
"hover:bg-green-500": "hover:bg-green-500",
|
|
628
|
-
"hover:bg-green-600": "hover:bg-green-600",
|
|
629
|
-
"hover:bg-green-700": "hover:bg-green-700",
|
|
630
|
-
"hover:bg-green-800": "hover:bg-green-800",
|
|
631
|
-
"hover:bg-green-900": "hover:bg-green-900",
|
|
632
|
-
"hover:bg-pink-100": "hover:bg-pink-100",
|
|
633
|
-
"hover:bg-pink-200": "hover:bg-pink-200",
|
|
634
|
-
"hover:bg-pink-300": "hover:bg-pink-300",
|
|
635
|
-
"hover:bg-pink-400": "hover:bg-pink-400",
|
|
636
|
-
"hover:bg-pink-500": "hover:bg-pink-500",
|
|
637
|
-
"hover:bg-pink-600": "hover:bg-pink-600",
|
|
638
|
-
"hover:bg-pink-700": "hover:bg-pink-700",
|
|
639
|
-
"hover:bg-pink-800": "hover:bg-pink-800",
|
|
640
|
-
"hover:bg-pink-900": "hover:bg-pink-900",
|
|
641
|
-
"hover:bg-amber-100": "hover:bg-amber-100",
|
|
642
|
-
"hover:bg-amber-200": "hover:bg-amber-200",
|
|
643
|
-
"hover:bg-amber-300": "hover:bg-amber-300",
|
|
644
|
-
"hover:bg-amber-400": "hover:bg-amber-400",
|
|
645
|
-
"hover:bg-amber-500": "hover:bg-amber-500",
|
|
646
|
-
"hover:bg-amber-600": "hover:bg-amber-600",
|
|
647
|
-
"hover:bg-amber-700": "hover:bg-amber-700",
|
|
648
|
-
"hover:bg-amber-800": "hover:bg-amber-800",
|
|
649
|
-
"hover:bg-amber-900": "hover:bg-amber-900",
|
|
650
|
-
"hover:bg-yellow-100": "hover:bg-yellow-100",
|
|
651
|
-
"hover:bg-yellow-200": "hover:bg-yellow-200",
|
|
652
|
-
"hover:bg-yellow-300": "hover:bg-yellow-300",
|
|
653
|
-
"hover:bg-yellow-400": "hover:bg-yellow-400",
|
|
654
|
-
"hover:bg-yellow-500": "hover:bg-yellow-500",
|
|
655
|
-
"hover:bg-yellow-600": "hover:bg-yellow-600",
|
|
656
|
-
"hover:bg-yellow-700": "hover:bg-yellow-700",
|
|
657
|
-
"hover:bg-yellow-800": "hover:bg-yellow-800",
|
|
658
|
-
"hover:bg-orange-100": "hover:bg-orange-100",
|
|
659
|
-
"hover:bg-orange-200": "hover:bg-orange-200",
|
|
660
|
-
"hover:bg-orange-300": "hover:bg-orange-300",
|
|
661
|
-
"hover:bg-orange-400": "hover:bg-orange-400",
|
|
662
|
-
"hover:bg-orange-500": "hover:bg-orange-500",
|
|
663
|
-
"hover:bg-orange-600": "hover:bg-orange-600",
|
|
664
|
-
"hover:bg-orange-700": "hover:bg-orange-700",
|
|
665
|
-
"hover:bg-orange-800": "hover:bg-orange-800",
|
|
666
|
-
"hover:bg-red-100": "hover:bg-red-100",
|
|
667
|
-
"hover:bg-red-200": "hover:bg-red-200",
|
|
668
|
-
"hover:bg-red-300": "hover:bg-red-300",
|
|
669
|
-
"hover:bg-red-400": "hover:bg-red-400",
|
|
670
|
-
"hover:bg-red-500": "hover:bg-red-500",
|
|
671
|
-
"hover:bg-red-600": "hover:bg-red-600",
|
|
672
|
-
"hover:bg-red-700": "hover:bg-red-700",
|
|
673
|
-
"hover:bg-red-800": "hover:bg-red-800",
|
|
674
|
-
"border-storybook-default-heading": "border-storybook-default-heading",
|
|
675
|
-
"border-base-0": "border-base-0",
|
|
676
|
-
"border-base-1000": "border-base-1000",
|
|
677
|
-
"border-neutral-0": "border-neutral-0",
|
|
678
|
-
"border-neutral-50": "border-neutral-50",
|
|
679
|
-
"border-neutral-100": "border-neutral-100",
|
|
680
|
-
"border-neutral-150": "border-neutral-150",
|
|
681
|
-
"border-neutral-200": "border-neutral-200",
|
|
682
|
-
"border-neutral-300": "border-neutral-300",
|
|
683
|
-
"border-neutral-400": "border-neutral-400",
|
|
684
|
-
"border-neutral-500": "border-neutral-500",
|
|
685
|
-
"border-neutral-600": "border-neutral-600",
|
|
686
|
-
"border-neutral-700": "border-neutral-700",
|
|
687
|
-
"border-neutral-800": "border-neutral-800",
|
|
688
|
-
"border-neutral-850": "border-neutral-850",
|
|
689
|
-
"border-neutral-900": "border-neutral-900",
|
|
690
|
-
"border-neutral-950": "border-neutral-950",
|
|
691
|
-
"border-neutral-1000": "border-neutral-1000",
|
|
692
|
-
"border-blue-100": "border-blue-100",
|
|
693
|
-
"border-blue-200": "border-blue-200",
|
|
694
|
-
"border-blue-300": "border-blue-300",
|
|
695
|
-
"border-blue-400": "border-blue-400",
|
|
696
|
-
"border-blue-500": "border-blue-500",
|
|
697
|
-
"border-blue-600": "border-blue-600",
|
|
698
|
-
"border-blue-700": "border-blue-700",
|
|
699
|
-
"border-blue-800": "border-blue-800",
|
|
700
|
-
"border-blue-900": "border-blue-900",
|
|
701
|
-
"border-purple-100": "border-purple-100",
|
|
702
|
-
"border-purple-200": "border-purple-200",
|
|
703
|
-
"border-purple-300": "border-purple-300",
|
|
704
|
-
"border-purple-400": "border-purple-400",
|
|
705
|
-
"border-purple-500": "border-purple-500",
|
|
706
|
-
"border-purple-600": "border-purple-600",
|
|
707
|
-
"border-purple-700": "border-purple-700",
|
|
708
|
-
"border-purple-800": "border-purple-800",
|
|
709
|
-
"border-purple-900": "border-purple-900",
|
|
710
|
-
"border-cyan-100": "border-cyan-100",
|
|
711
|
-
"border-cyan-200": "border-cyan-200",
|
|
712
|
-
"border-cyan-300": "border-cyan-300",
|
|
713
|
-
"border-cyan-400": "border-cyan-400",
|
|
714
|
-
"border-cyan-500": "border-cyan-500",
|
|
715
|
-
"border-cyan-600": "border-cyan-600",
|
|
716
|
-
"border-cyan-700": "border-cyan-700",
|
|
717
|
-
"border-cyan-800": "border-cyan-800",
|
|
718
|
-
"border-cyan-900": "border-cyan-900",
|
|
719
|
-
"border-green-100": "border-green-100",
|
|
720
|
-
"border-green-200": "border-green-200",
|
|
721
|
-
"border-green-300": "border-green-300",
|
|
722
|
-
"border-green-400": "border-green-400",
|
|
723
|
-
"border-green-500": "border-green-500",
|
|
724
|
-
"border-green-600": "border-green-600",
|
|
725
|
-
"border-green-700": "border-green-700",
|
|
726
|
-
"border-green-800": "border-green-800",
|
|
727
|
-
"border-green-900": "border-green-900",
|
|
728
|
-
"border-pink-100": "border-pink-100",
|
|
729
|
-
"border-pink-200": "border-pink-200",
|
|
730
|
-
"border-pink-300": "border-pink-300",
|
|
731
|
-
"border-pink-400": "border-pink-400",
|
|
732
|
-
"border-pink-500": "border-pink-500",
|
|
733
|
-
"border-pink-600": "border-pink-600",
|
|
734
|
-
"border-pink-700": "border-pink-700",
|
|
735
|
-
"border-pink-800": "border-pink-800",
|
|
736
|
-
"border-pink-900": "border-pink-900",
|
|
737
|
-
"border-amber-100": "border-amber-100",
|
|
738
|
-
"border-amber-200": "border-amber-200",
|
|
739
|
-
"border-amber-300": "border-amber-300",
|
|
740
|
-
"border-amber-400": "border-amber-400",
|
|
741
|
-
"border-amber-500": "border-amber-500",
|
|
742
|
-
"border-amber-600": "border-amber-600",
|
|
743
|
-
"border-amber-700": "border-amber-700",
|
|
744
|
-
"border-amber-800": "border-amber-800",
|
|
745
|
-
"border-amber-900": "border-amber-900",
|
|
746
|
-
"border-yellow-100": "border-yellow-100",
|
|
747
|
-
"border-yellow-200": "border-yellow-200",
|
|
748
|
-
"border-yellow-300": "border-yellow-300",
|
|
749
|
-
"border-yellow-400": "border-yellow-400",
|
|
750
|
-
"border-yellow-500": "border-yellow-500",
|
|
751
|
-
"border-yellow-600": "border-yellow-600",
|
|
752
|
-
"border-yellow-700": "border-yellow-700",
|
|
753
|
-
"border-yellow-800": "border-yellow-800",
|
|
754
|
-
"border-orange-100": "border-orange-100",
|
|
755
|
-
"border-orange-200": "border-orange-200",
|
|
756
|
-
"border-orange-300": "border-orange-300",
|
|
757
|
-
"border-orange-400": "border-orange-400",
|
|
758
|
-
"border-orange-500": "border-orange-500",
|
|
759
|
-
"border-orange-600": "border-orange-600",
|
|
760
|
-
"border-orange-700": "border-orange-700",
|
|
761
|
-
"border-orange-800": "border-orange-800",
|
|
762
|
-
"border-red-100": "border-red-100",
|
|
763
|
-
"border-red-200": "border-red-200",
|
|
764
|
-
"border-red-300": "border-red-300",
|
|
765
|
-
"border-red-400": "border-red-400",
|
|
766
|
-
"border-red-500": "border-red-500",
|
|
767
|
-
"border-red-600": "border-red-600",
|
|
768
|
-
"border-red-700": "border-red-700",
|
|
769
|
-
"border-red-800": "border-red-800",
|
|
577
|
+
"stroke-red-800": "stroke-red-800"
|
|
770
578
|
};
|
|
771
579
|
|
|
772
580
|
export default function HDSColor(color = '') {
|
|
@@ -16,7 +16,6 @@ export default function Typography(props) {
|
|
|
16
16
|
'h4': 'text-hds-m-h4 tb:text-hds-t-h4 db:text-hds-d-h4',
|
|
17
17
|
'h5': 'text-hds-m-h5 tb:text-hds-t-h5 db:text-hds-d-h5',
|
|
18
18
|
'h6': 'text-hds-m-h6 tb:text-hds-t-h6 db:text-hds-d-h6',
|
|
19
|
-
'h7': 'text-hds-m-h7 tb:text-hds-t-h7 db:text-hds-d-h7',
|
|
20
19
|
'sub1': 'text-hds-m-sub1 tb:text-hds-t-sub1 db:text-hds-d-sub1',
|
|
21
20
|
'sub2': 'text-hds-m-sub2 tb:text-hds-t-sub2 db:text-hds-d-sub2',
|
|
22
21
|
'body1': 'text-hds-m-body1 tb:text-hds-t-body1 db:text-hds-d-body1',
|
|
@@ -43,7 +42,7 @@ export default function Typography(props) {
|
|
|
43
42
|
'body3c-medium': 'text-hds-m-body3c-medium tb:text-hds-t-body3c-medium db:text-hds-d-body3c-medium',
|
|
44
43
|
'body3c-semi-bold': 'text-hds-m-body3c-semi-bold tb:text-hds-t-body3c-semi-bold db:text-hds-d-body3c-semi-bold',
|
|
45
44
|
'body3c-bold': 'text-hds-m-body3c-bold tb:text-hds-t-body3c-bold db:text-hds-d-body3c-bold',
|
|
46
|
-
'quote': '
|
|
45
|
+
'quote': 'text-hds-m-quote tb:text-hds-t-quote db:text-hds-d-quote',
|
|
47
46
|
'code1': 'text-hds-m-code1 tb:text-hds-t-code1 db:text-hds-d-code1',
|
|
48
47
|
'code2': 'text-hds-m-code2 tb:text-hds-t-code2 db:text-hds-d-code2',
|
|
49
48
|
}
|
package/src/HDS/helpers/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from './Translations';
|
|
2
|
-
export * from './Media';
|
|
1
|
+
export * from './Translations';
|
|
@@ -20,7 +20,7 @@ export default function TextCard(props) {
|
|
|
20
20
|
}
|
|
21
21
|
{
|
|
22
22
|
props.descriptions && props.descriptions.map((desc, i) => (
|
|
23
|
-
<Typography key={i} textStyle="body1" className="pb-6">{desc.description}</Typography>
|
|
23
|
+
<Typography key={i} textStyle="body1" className="pb-6 pr-8">{desc.description}</Typography>
|
|
24
24
|
))
|
|
25
25
|
}
|
|
26
26
|
{
|
|
@@ -57,7 +57,7 @@ export default function TextCard(props) {
|
|
|
57
57
|
const imgBgColor = HDSColor(list.tab_img_bg_class)
|
|
58
58
|
return (
|
|
59
59
|
<div className='border-b border-b-neutral-150 last:border-b-0 cursor-pointer' onClick={()=>setImgActive(list.title)}>
|
|
60
|
-
<div className={'m-2 p-0 tb:p-6 rounded-lg transition
|
|
60
|
+
<div className={'m-2 p-0 tb:p-6 rounded-lg transition ease-in duration-200 hover:bg-neutral-50' + ((imgActive === list.title) ? " bg-neutral-150" : "")} key={i}>
|
|
61
61
|
<div className='flex items-center pb-4'>
|
|
62
62
|
<Icon
|
|
63
63
|
height={`w-6 h-6 mr-2 stroke-[1.5px]` }
|
|
@@ -106,7 +106,7 @@ export default function TextCard(props) {
|
|
|
106
106
|
{
|
|
107
107
|
list.tab_img_url && (
|
|
108
108
|
<div className={`${imgBgColor} tb-l:hidden p-12 rounded-2xl mt-8`}>
|
|
109
|
-
<img src={list.tab_img_url} alt={list.title} />
|
|
109
|
+
<img src={list.tab_img_url} alt={list.title} loading="lazy"/>
|
|
110
110
|
</div>
|
|
111
111
|
)
|
|
112
112
|
}
|
|
@@ -143,7 +143,31 @@ export default function TextCard(props) {
|
|
|
143
143
|
return (
|
|
144
144
|
<Fragment key={i}>
|
|
145
145
|
{
|
|
146
|
-
imgActive === img.title &&
|
|
146
|
+
imgActive === img.title && (
|
|
147
|
+
<div className={`${imgBgColor} hidden h-full p-12 tb-l:flex items-center rounded-2xl tb-l:rounded-s-none`}>
|
|
148
|
+
{
|
|
149
|
+
img.tab_video_url ? (
|
|
150
|
+
<video
|
|
151
|
+
loading="lazy"
|
|
152
|
+
controls={false}
|
|
153
|
+
autoPlay
|
|
154
|
+
loop
|
|
155
|
+
muted
|
|
156
|
+
poster={img.tab_video_poster}
|
|
157
|
+
className=""
|
|
158
|
+
>
|
|
159
|
+
<source
|
|
160
|
+
src={img.tab_video_url}
|
|
161
|
+
type="video/mp4"
|
|
162
|
+
/>
|
|
163
|
+
</video>
|
|
164
|
+
) : (
|
|
165
|
+
<img src={img.tab_img_url} alt={img.title} loading="lazy"/>
|
|
166
|
+
)
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
</div>
|
|
170
|
+
)
|
|
147
171
|
}
|
|
148
172
|
</Fragment>
|
|
149
173
|
)
|
|
@@ -152,9 +176,48 @@ export default function TextCard(props) {
|
|
|
152
176
|
</>
|
|
153
177
|
) : (
|
|
154
178
|
<div>
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
179
|
+
{
|
|
180
|
+
props.iframe_url || props.video_url ? (
|
|
181
|
+
<>
|
|
182
|
+
{
|
|
183
|
+
props.iframe_url ? (
|
|
184
|
+
<div className="relative pb-[56.2%]">
|
|
185
|
+
<iframe
|
|
186
|
+
loading="lazy"
|
|
187
|
+
title={props.title}
|
|
188
|
+
src={props.iframe_url}
|
|
189
|
+
frameBorder="0"
|
|
190
|
+
allowFullScreen
|
|
191
|
+
className="absolute w-full h-full"
|
|
192
|
+
></iframe>
|
|
193
|
+
</div>
|
|
194
|
+
) : (
|
|
195
|
+
<video
|
|
196
|
+
loading="lazy"
|
|
197
|
+
controls={false}
|
|
198
|
+
autoPlay
|
|
199
|
+
loop
|
|
200
|
+
muted
|
|
201
|
+
poster={props.video_poster}
|
|
202
|
+
className=""
|
|
203
|
+
>
|
|
204
|
+
<source
|
|
205
|
+
src={props.video_url}
|
|
206
|
+
type="video/mp4"
|
|
207
|
+
/>
|
|
208
|
+
</video>
|
|
209
|
+
)
|
|
210
|
+
}
|
|
211
|
+
</>
|
|
212
|
+
) : (
|
|
213
|
+
<>
|
|
214
|
+
{props.img_url && (
|
|
215
|
+
<img src={props.img_url} alt={props.title} loading="lazy" />
|
|
216
|
+
)}
|
|
217
|
+
</>
|
|
218
|
+
)
|
|
219
|
+
}
|
|
220
|
+
|
|
158
221
|
</div>
|
|
159
222
|
)
|
|
160
223
|
}
|
|
@@ -162,4 +225,4 @@ export default function TextCard(props) {
|
|
|
162
225
|
|
|
163
226
|
</>
|
|
164
227
|
)
|
|
165
|
-
}
|
|
228
|
+
}
|
package/src/HDS/modules/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from './TextCard';
|
|
2
|
-
export * from './navCard';
|
|
1
|
+
export * from './TextCard';
|
package/src/index.css
CHANGED
|
@@ -3,15 +3,6 @@
|
|
|
3
3
|
@tailwind utilities;
|
|
4
4
|
/* Typography classes */
|
|
5
5
|
|
|
6
|
-
.gridAutoClass {
|
|
7
|
-
flex: 1 0 30%;
|
|
8
|
-
margin-top: 40px;
|
|
9
|
-
margin-right: 32px;
|
|
10
|
-
background: blue;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
display: flex;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
6
|
@keyframes pill-move-left {
|
|
16
7
|
0% {
|
|
17
8
|
left: 0;
|
|
@@ -405,33 +396,4 @@
|
|
|
405
396
|
|
|
406
397
|
.token.operator {
|
|
407
398
|
background: none !important;
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
.border-80 {
|
|
412
|
-
position: relative;
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
.border-80::after {
|
|
416
|
-
content: "";
|
|
417
|
-
position: absolute;
|
|
418
|
-
bottom: 0;
|
|
419
|
-
left: 8%;
|
|
420
|
-
width: 80%;
|
|
421
|
-
border-bottom: 1px solid #E5E7EB;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
.border-90 {
|
|
425
|
-
position: relative;
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
.border-90::after {
|
|
429
|
-
content: "";
|
|
430
|
-
position: absolute;
|
|
431
|
-
bottom: 0;
|
|
432
|
-
left: 0;
|
|
433
|
-
width: 100%;
|
|
434
|
-
border-bottom: 1px solid rgb(255, 255, 255);
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
|
|
399
|
+
}
|