hds-web 1.2.3 → 1.2.5
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 -2
- package/dist/index.es.css +2 -2
- package/dist/index.es.js +4 -4
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/src/HDS/components/Buttons/button.js +1 -1
- package/src/HDS/components/Cards/Feedback/feedback.js +1 -1
- package/src/HDS/components/Tables/tableC.js +20 -23
- package/src/HDS/helpers/Media/mediabox.js +4 -5
- package/src/HDS/helpers/index.js +2 -1
- package/src/HDS/modules/navCard/navCard.js +14 -7
- package/src/styles/tailwind.css +40 -5
package/package.json
CHANGED
@@ -63,7 +63,7 @@ const Buttonclasses = {
|
|
63
63
|
'secondaryLink': {
|
64
64
|
'default': {
|
65
65
|
'base': 'db:w-fit tb:w-fit w-full justify-center ',
|
66
|
-
'hover': '
|
66
|
+
'hover': '',
|
67
67
|
'focus': 'focus:text-neutral-900 focus:outline-none focus:shadow-[0px_0px_0px_4px_#E5E7EB]',
|
68
68
|
},
|
69
69
|
'disabled': 'text-neutral-300',
|
@@ -8,7 +8,7 @@ export default function FeedbackCard(props) {
|
|
8
8
|
return (
|
9
9
|
<div className='bg-neutral-0 rounded-3xl shadow p-6 tb-l:p-10'>
|
10
10
|
<div className='pb-8'>
|
11
|
-
<img src={props.brandImgUrl} alt={props.brandImgAlt} />
|
11
|
+
<img src={props.brandImgUrl} alt={props.brandImgAlt} className=' h-8 '/>
|
12
12
|
</div>
|
13
13
|
<div className="pb-10">
|
14
14
|
<Typography textStyle="quote" className='text-neutral-1000'>{props.description}</Typography>
|
@@ -9,9 +9,7 @@ export default function TableA(props) {
|
|
9
9
|
children
|
10
10
|
|
11
11
|
} = props;
|
12
|
-
|
13
|
-
const tableLength = tableValue.length;
|
14
|
-
|
12
|
+
const firstObjectLength = Object.keys(tableValue[0]).length;
|
15
13
|
return (
|
16
14
|
<div className=" ">
|
17
15
|
<div className="sm:flex sm:items-center ">
|
@@ -19,51 +17,50 @@ export default function TableA(props) {
|
|
19
17
|
<h1 className="text-base font-semibold leading-6 text-gray-900">{head}</h1>
|
20
18
|
<p className="mt-2 text-sm text-gray-700">{description}</p>
|
21
19
|
</div>
|
22
|
-
|
23
|
-
</div>
|
24
20
|
|
21
|
+
</div>
|
25
22
|
<div>
|
26
|
-
<div className="border
|
23
|
+
<div className="border border-neutral-100 rounded-2xl">
|
27
24
|
<table className="min-w-full divide-y divide-neutral-100 ">
|
28
|
-
<div>
|
29
|
-
|
30
|
-
|
31
25
|
<thead>
|
32
26
|
<tr className='divide-x divide-neutral-100'>
|
33
|
-
{Object.keys(tableValue[0]).map((key) => (
|
27
|
+
{Object.keys(tableValue[0]).map((key, index) => (
|
34
28
|
<th
|
35
29
|
key={key}
|
36
30
|
scope="col"
|
37
|
-
className=
|
31
|
+
className={(index === 0) ? 'rounded-tl-2xl text-left sm:table-cell bg-neutral-50' : 'text-left sm:table-cell bg-neutral-50 rounded-tr-2xl'}
|
38
32
|
>
|
39
33
|
<Typography className='p-6' textStyle='body3c-bold'>{key}</Typography>
|
40
|
-
|
34
|
+
|
41
35
|
</th>
|
42
36
|
))}
|
37
|
+
|
43
38
|
</tr>
|
44
39
|
</thead>
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
<tr key={index} className='divide-x divide-neutral-100'>
|
40
|
+
<tbody className="divide-y rounded-b-3xl divide-neutral-100 ">
|
41
|
+
{tableValue.slice(1).map((value, index) => (
|
42
|
+
<tr key={index} className='divide-x divide-neutral-100 '>
|
49
43
|
{Object.keys(value).map((key, index2) => (
|
44
|
+
|
45
|
+
|
46
|
+
|
50
47
|
<td
|
51
|
-
|
48
|
+
key={index2 + index}
|
52
49
|
className={
|
53
|
-
'p-6
|
50
|
+
'p-6 ' + ((index == `${tableValue.length - 2}`) ? 'rounded-3xl' : '')
|
54
51
|
}
|
55
52
|
>
|
56
|
-
|
57
|
-
<Typography textStyle='body3c-bold' className='bg-transparent text-neutral-800'>{key}</Typography>
|
58
|
-
<Typography textStyle='body3' className='text-neutral-800 mt-2'>
|
53
|
+
|
54
|
+
<Typography textStyle='body3c-bold' className='bg-transparent text-neutral-800'>{key.toString()}</Typography>
|
55
|
+
<Typography textStyle='body3' className='text-neutral-800 mt-2'>{value[key].toString()}</Typography>
|
59
56
|
|
60
57
|
</td>
|
58
|
+
|
61
59
|
))}
|
62
60
|
</tr>
|
63
61
|
))}
|
64
62
|
</tbody>
|
65
|
-
|
66
|
-
</table>
|
63
|
+
</table>
|
67
64
|
</div>
|
68
65
|
</div>
|
69
66
|
</div>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React, { useState } from 'react';
|
2
2
|
import { Icon } from '../../components/common-components/Icon';
|
3
3
|
|
4
|
-
|
4
|
+
export default function MediaViewer ({ img_url, video_url, video_poster, width }){
|
5
5
|
const [isVideoPlaying, setIsVideoPlaying] = useState(false);
|
6
6
|
|
7
7
|
const handleVideoClick = () => {
|
@@ -16,7 +16,7 @@ const MediaViewer = ({ img_url, video_url, video_poster, width }) => {
|
|
16
16
|
<div>
|
17
17
|
{img_url && (
|
18
18
|
<div className='flex justify-center'>
|
19
|
-
<img src={img_url} alt="Image"
|
19
|
+
<img src={img_url} alt="Image" className='rounded-2xl' onClick={handleVideoClick} />
|
20
20
|
</div>
|
21
21
|
)}
|
22
22
|
|
@@ -40,9 +40,8 @@ const MediaViewer = ({ img_url, video_url, video_poster, width }) => {
|
|
40
40
|
<img
|
41
41
|
src={video_poster}
|
42
42
|
alt="Video Poster"
|
43
|
-
style={{ width }}
|
44
43
|
onClick={handleVideoClick}
|
45
|
-
className="cursor-pointer"
|
44
|
+
className="cursor-pointer rounded-2xl"
|
46
45
|
/>
|
47
46
|
</div>
|
48
47
|
</div>
|
@@ -73,4 +72,4 @@ const MediaViewer = ({ img_url, video_url, video_poster, width }) => {
|
|
73
72
|
);
|
74
73
|
};
|
75
74
|
|
76
|
-
|
75
|
+
|
package/src/HDS/helpers/index.js
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
export * from './Translations';
|
1
|
+
export * from './Translations';
|
2
|
+
export * from './Media';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { React, useState } from 'react';
|
1
|
+
import { React, useState, useEffect } from 'react';
|
2
2
|
import { MediaBox } from '../../helpers/Media';
|
3
3
|
import { Typography } from '../../foundation/Typography';
|
4
4
|
import { HDSButton } from '../../components/Buttons';
|
@@ -23,7 +23,7 @@ const tabCard = (tabContent) => (
|
|
23
23
|
size='sm'
|
24
24
|
rightAnimatedArrow={true}
|
25
25
|
rightAnimatedArrowColor='#1E56E3'
|
26
|
-
animatedHoverStroke='group-hover:stroke-
|
26
|
+
animatedHoverStroke='group-hover:stroke-blue-600'
|
27
27
|
className='flex'
|
28
28
|
btnTextColorClass='text-blue-600'
|
29
29
|
/>
|
@@ -40,13 +40,20 @@ const tabCard = (tabContent) => (
|
|
40
40
|
)
|
41
41
|
|
42
42
|
export default function NavCard(props) {
|
43
|
-
const
|
44
|
-
|
45
|
-
|
43
|
+
const [activeTab, setActiveTab] = useState('');
|
44
|
+
|
45
|
+
useEffect(() => {
|
46
|
+
if (props.tabContent) {
|
47
|
+
const tabNames = Object.keys(props.tabContent);
|
48
|
+
setActiveTab(tabNames[0]);
|
49
|
+
}
|
50
|
+
}, [props.tabContent]);
|
51
|
+
|
46
52
|
function handleTabClick(tab) {
|
47
|
-
|
48
|
-
|
53
|
+
setActiveTab(tab.name);
|
54
|
+
// Perform any other actions based on the clicked tab
|
49
55
|
}
|
56
|
+
|
50
57
|
return (
|
51
58
|
<>
|
52
59
|
{props.navTabs &&
|
package/src/styles/tailwind.css
CHANGED
@@ -2136,6 +2136,19 @@ select {
|
|
2136
2136
|
border-top-right-radius: 0.375rem;
|
2137
2137
|
}
|
2138
2138
|
|
2139
|
+
.rounded-t-lg {
|
2140
|
+
border-top-left-radius: 0.5rem;
|
2141
|
+
border-top-right-radius: 0.5rem;
|
2142
|
+
}
|
2143
|
+
|
2144
|
+
.rounded-tl-2xl {
|
2145
|
+
border-top-left-radius: 1rem;
|
2146
|
+
}
|
2147
|
+
|
2148
|
+
.rounded-tr-2xl {
|
2149
|
+
border-top-right-radius: 1rem;
|
2150
|
+
}
|
2151
|
+
|
2139
2152
|
.border {
|
2140
2153
|
border-width: 1px;
|
2141
2154
|
}
|
@@ -7374,15 +7387,38 @@ select {
|
|
7374
7387
|
margin-left: 0px;
|
7375
7388
|
}
|
7376
7389
|
|
7390
|
+
.first\:rounded-full:first-child {
|
7391
|
+
border-radius: 9999px;
|
7392
|
+
}
|
7393
|
+
|
7394
|
+
.first\:rounded-t-lg:first-child {
|
7395
|
+
border-top-left-radius: 0.5rem;
|
7396
|
+
border-top-right-radius: 0.5rem;
|
7397
|
+
}
|
7398
|
+
|
7377
7399
|
.first\:bg-blue-500:first-child {
|
7378
7400
|
--tw-bg-opacity: 1;
|
7379
7401
|
background-color: rgb(57 112 253 / var(--tw-bg-opacity));
|
7380
7402
|
}
|
7381
7403
|
|
7404
|
+
.first\:bg-green-400:first-child {
|
7405
|
+
--tw-bg-opacity: 1;
|
7406
|
+
background-color: rgb(57 218 170 / var(--tw-bg-opacity));
|
7407
|
+
}
|
7408
|
+
|
7382
7409
|
.last\:mr-0:last-child {
|
7383
7410
|
margin-right: 0px;
|
7384
7411
|
}
|
7385
7412
|
|
7413
|
+
.last\:rounded-full:last-child {
|
7414
|
+
border-radius: 9999px;
|
7415
|
+
}
|
7416
|
+
|
7417
|
+
.last\:rounded-b-2xl:last-child {
|
7418
|
+
border-bottom-right-radius: 1rem;
|
7419
|
+
border-bottom-left-radius: 1rem;
|
7420
|
+
}
|
7421
|
+
|
7386
7422
|
.last\:border-b-0:last-child {
|
7387
7423
|
border-bottom-width: 0px;
|
7388
7424
|
}
|
@@ -7569,11 +7605,6 @@ select {
|
|
7569
7605
|
color: rgb(255 255 255 / var(--tw-text-opacity));
|
7570
7606
|
}
|
7571
7607
|
|
7572
|
-
.hover\:text-neutral-900:hover {
|
7573
|
-
--tw-text-opacity: 1;
|
7574
|
-
color: rgb(17 25 39 / var(--tw-text-opacity));
|
7575
|
-
}
|
7576
|
-
|
7577
7608
|
.hover\:shadow:hover {
|
7578
7609
|
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
7579
7610
|
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
@@ -7937,6 +7968,10 @@ select {
|
|
7937
7968
|
stroke: #111927;
|
7938
7969
|
}
|
7939
7970
|
|
7971
|
+
.group:hover .group-hover\:stroke-blue-600 {
|
7972
|
+
stroke: #1E56E3;
|
7973
|
+
}
|
7974
|
+
|
7940
7975
|
.group:hover .group-hover\:opacity-30 {
|
7941
7976
|
opacity: 0.3;
|
7942
7977
|
}
|