hds-web 1.6.8 → 1.6.9
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 +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/assets/icons/hasura-1.svg +3 -0
- package/src/HDS/assets/icons/hasura-2.svg +3 -0
- package/src/HDS/assets/icons/hasura-3.svg +3 -0
- package/src/HDS/components/Avatars/hasConAv.js +9 -10
- package/src/HDS/components/Avatars/profileAvatar.js +10 -29
- package/src/HDS/components/BadgesCaption/badges.js +7 -4
- package/src/HDS/components/Buttons/button.js +25 -14
- 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/ImageBox/imagebox.js +51 -0
- package/src/HDS/components/Cards/ImageBox/index.js +1 -0
- package/src/HDS/components/Cards/Link/link.js +19 -13
- package/src/HDS/components/Cards/Menu/flyout.js +5 -4
- package/src/HDS/components/Cards/Menu/flyoutA.js +5 -4
- package/src/HDS/components/Cards/Menu/flyoutFull.js +1 -0
- package/src/HDS/components/Cards/Misc/iconCard.js +71 -60
- package/src/HDS/components/Cards/Misc/index.js +1 -0
- package/src/HDS/components/Cards/Misc/talkCard.js +19 -18
- package/src/HDS/components/Cards/Misc/talkcard2.js +118 -0
- package/src/HDS/components/Cards/TalkDetailCard/talkDetailCard.js +83 -52
- package/src/HDS/components/Carousels/carouselCard.js +101 -90
- package/src/HDS/components/Headers/v3Header.js +111 -85
- package/src/HDS/components/Hero/h2.js +58 -36
- package/src/HDS/components/Hero/h3.js +413 -0
- package/src/HDS/components/Hero/index.js +2 -1
- package/src/HDS/components/Tables/index.js +2 -1
- package/src/HDS/components/Tables/tableB.js +10 -10
- package/src/HDS/components/Tables/tableC.js +20 -23
- package/src/HDS/components/Tables/tableD.js +326 -0
- package/src/HDS/components/Tabs/tab.js +47 -16
- package/src/HDS/components/common-components/Icon/IconMap.js +6 -0
- package/src/HDS/components/index.js +2 -1
- package/src/HDS/foundation/ColorPalette/color.js +193 -1
- package/src/HDS/foundation/Typography/Typography.js +2 -1
- package/src/HDS/helpers/Grid/grid.js +64 -0
- package/src/HDS/helpers/Grid/index.js +1 -0
- package/src/HDS/helpers/Media/index.js +1 -0
- package/src/HDS/helpers/Media/mediabox.js +75 -0
- package/src/HDS/helpers/index.js +2 -1
- package/src/HDS/modules/TextCard/textCard.js +8 -71
- package/src/HDS/modules/index.js +2 -1
- package/src/HDS/modules/navCard/index.js +1 -0
- package/src/HDS/modules/navCard/navCard.js +82 -0
- package/src/index.css +39 -1
- package/src/styles/tailwind.css +3104 -1848
- package/tailwind.config.js +6 -3
package/package.json
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<path d="M21 8H3M16 2V5M8 2V5M12 18V12M9 15H15M7.8 22H16.2C17.8802 22 18.7202 22 19.362 21.673C19.9265 21.3854 20.3854 20.9265 20.673 20.362C21 19.7202 21 18.8802 21 17.2V8.8C21 7.11984 21 6.27976 20.673 5.63803C20.3854 5.07354 19.9265 4.6146 19.362 4.32698C18.7202 4 17.8802 4 16.2 4H7.8C6.11984 4 5.27976 4 4.63803 4.32698C4.07354 4.6146 3.6146 5.07354 3.32698 5.63803C3 6.27976 3 7.11984 3 8.8V17.2C3 18.8802 3 19.7202 3.32698 20.362C3.6146 20.9265 4.07354 21.3854 4.63803 21.673C5.27976 22 6.11984 22 7.8 22Z" stroke-
|
2
|
+
<path d="M21 8H3M16 2V5M8 2V5M12 18V12M9 15H15M7.8 22H16.2C17.8802 22 18.7202 22 19.362 21.673C19.9265 21.3854 20.3854 20.9265 20.673 20.362C21 19.7202 21 18.8802 21 17.2V8.8C21 7.11984 21 6.27976 20.673 5.63803C20.3854 5.07354 19.9265 4.6146 19.362 4.32698C18.7202 4 17.8802 4 16.2 4H7.8C6.11984 4 5.27976 4 4.63803 4.32698C4.07354 4.6146 3.6146 5.07354 3.32698 5.63803C3 6.27976 3 7.11984 3 8.8V17.2C3 18.8802 3 19.7202 3.32698 20.362C3.6146 20.9265 4.07354 21.3854 4.63803 21.673C5.27976 22 6.11984 22 7.8 22Z" stroke-linecap="round" stroke-linejoin="round"/>
|
3
3
|
</svg>
|
@@ -1,3 +1,3 @@
|
|
1
1
|
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
-
<path d="M21 11.5V8.8C21 7.11984 21 6.27976 20.673 5.63803C20.3854 5.07354 19.9265 4.6146 19.362 4.32698C18.7202 4 17.8802 4 16.2 4H7.8C6.11984 4 5.27976 4 4.63803 4.32698C4.07354 4.6146 3.6146 5.07354 3.32698 5.63803C3 6.27976 3 7.11984 3 8.8V17.2C3 18.8802 3 19.7202 3.32698 20.362C3.6146 20.9265 4.07354 21.3854 4.63803 21.673C5.27976 22 6.11984 22 7.8 22H12.5M21 10H3M16 2V6M8 2V6M18 21V15M15 18H21" stroke-
|
2
|
+
<path d="M21 11.5V8.8C21 7.11984 21 6.27976 20.673 5.63803C20.3854 5.07354 19.9265 4.6146 19.362 4.32698C18.7202 4 17.8802 4 16.2 4H7.8C6.11984 4 5.27976 4 4.63803 4.32698C4.07354 4.6146 3.6146 5.07354 3.32698 5.63803C3 6.27976 3 7.11984 3 8.8V17.2C3 18.8802 3 19.7202 3.32698 20.362C3.6146 20.9265 4.07354 21.3854 4.63803 21.673C5.27976 22 6.11984 22 7.8 22H12.5M21 10H3M16 2V6M8 2V6M18 21V15M15 18H21" stroke-linecap="round" stroke-linejoin="round"/>
|
3
3
|
</svg>
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.04272 3.01211C6.48206 2.0875 8.19783 1.54417 10.0375 1.54417H10.2472C12.0869 1.54417 13.8027 2.07797 15.242 3.01211C15.69 3.29807 16.281 3.20275 16.6051 2.79287L17.7871 0.953183C17.8824 0.819734 18.0254 0.724414 18.1874 0.714882C18.3495 0.70535 18.5115 0.772074 18.6068 0.905523C19.56 2.2972 19.8269 5.45231 19.3027 7.07276C19.112 7.64469 19.0644 8.2452 19.1692 8.82666C19.2836 9.40812 19.3885 10.104 19.3885 10.5901C19.3885 15.5944 15.2992 19.6455 10.2472 19.6455H10.0375C4.98552 19.6455 0.896274 15.5944 0.896274 10.5901C0.896274 10.104 1.01066 9.40812 1.11551 8.82666C1.22036 8.2452 1.16317 7.64469 0.982062 7.07276C0.457799 5.45231 0.734229 2.2972 1.6779 0.905523C1.76369 0.762542 1.93527 0.70535 2.09731 0.714882C2.25936 0.733946 2.41187 0.819734 2.49766 0.953183L3.67963 2.79287C4.01326 3.20275 4.59471 3.29807 5.04272 3.01211ZM11.108 14.2727V7H9.28977L7.5 8.09375V9.76989L9.09091 8.81818H9.13352V14.2727H11.108Z" fill="#80A3FF"/>
|
3
|
+
</svg>
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.04272 3.01211C6.48206 2.0875 8.19783 1.54417 10.0375 1.54417H10.2472C12.0869 1.54417 13.8027 2.07797 15.242 3.01211C15.69 3.29807 16.281 3.20275 16.6051 2.79287L17.7871 0.953183C17.8824 0.819734 18.0254 0.724414 18.1874 0.714882C18.3495 0.70535 18.5115 0.772074 18.6068 0.905523C19.56 2.2972 19.8269 5.45231 19.3027 7.07276C19.112 7.64469 19.0644 8.2452 19.1692 8.82666C19.2836 9.40812 19.3885 10.104 19.3885 10.5901C19.3885 15.5944 15.2992 19.6455 10.2472 19.6455H10.0375C4.98552 19.6455 0.896274 15.5944 0.896274 10.5901C0.896274 10.104 1.01066 9.40812 1.11551 8.82666C1.22036 8.2452 1.16317 7.64469 0.982062 7.07276C0.457799 5.45231 0.734229 2.2972 1.6779 0.905523C1.76369 0.762542 1.93527 0.70535 2.09731 0.714882C2.25936 0.733946 2.41187 0.819734 2.49766 0.953183L3.67963 2.79287C4.01326 3.20275 4.59471 3.29807 5.04272 3.01211ZM7.14205 12.9517V14.3722H12.7244V12.7955H9.88352V12.7528L10.5653 12.1847C11.1193 11.723 11.5466 11.3253 11.8473 10.9915C12.148 10.6577 12.3563 10.3535 12.4723 10.0788C12.5883 9.80185 12.6463 9.52367 12.6463 9.24432C12.6463 8.79214 12.5291 8.39796 12.2947 8.06179C12.0627 7.72562 11.7325 7.4652 11.304 7.28054C10.8778 7.09351 10.3736 7 9.79119 7C9.22775 7 8.73651 7.09943 8.31747 7.2983C7.89844 7.49716 7.5741 7.78125 7.34446 8.15057C7.11482 8.51989 7 8.96023 7 9.47159H8.875C8.875 9.26799 8.91288 9.09517 8.98864 8.95312C9.06439 8.81108 9.17093 8.70336 9.30824 8.62997C9.44792 8.55658 9.6089 8.51989 9.79119 8.51989C9.97348 8.51989 10.1345 8.55658 10.2741 8.62997C10.4138 8.70099 10.5227 8.80279 10.6009 8.93537C10.6813 9.06794 10.7216 9.22775 10.7216 9.41477C10.7216 9.58523 10.6861 9.74029 10.6151 9.87997C10.5464 10.0196 10.447 10.1558 10.3168 10.2884C10.1889 10.4186 10.035 10.5582 9.85511 10.7074L7.14205 12.9517Z" fill="#80A3FF"/>
|
3
|
+
</svg>
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.04272 3.01211C6.48206 2.0875 8.19783 1.54417 10.0375 1.54417H10.2472C12.0869 1.54417 13.8027 2.07797 15.242 3.01211C15.69 3.29807 16.281 3.20275 16.6051 2.79287L17.7871 0.953183C17.8824 0.819734 18.0254 0.724414 18.1874 0.714882C18.3495 0.70535 18.5115 0.772074 18.6068 0.905523C19.56 2.2972 19.8269 5.45231 19.3027 7.07276C19.112 7.64469 19.0644 8.2452 19.1692 8.82666C19.2836 9.40812 19.3885 10.104 19.3885 10.5901C19.3885 15.5944 15.2992 19.6455 10.2472 19.6455H10.0375C4.98552 19.6455 0.896274 15.5944 0.896274 10.5901C0.896274 10.104 1.01066 9.40812 1.11551 8.82666C1.22036 8.2452 1.16317 7.64469 0.982062 7.07276C0.457799 5.45231 0.734229 2.2972 1.6779 0.905523C1.76369 0.762542 1.93527 0.70535 2.09731 0.714882C2.25936 0.733946 2.41187 0.819734 2.49766 0.953183L3.67963 2.79287C4.01326 3.20275 4.59471 3.29807 5.04272 3.01211ZM8.42756 14.1768C8.87263 14.3733 9.38163 14.4716 9.95455 14.4716C10.5488 14.4716 11.0732 14.3781 11.5277 14.1911C11.9846 14.004 12.3409 13.746 12.5966 13.4169C12.8546 13.0878 12.9825 12.7102 12.9801 12.2841C12.9848 11.839 12.8393 11.4697 12.5433 11.1761C12.2474 10.8802 11.8059 10.7003 11.2188 10.6364V10.5795C11.652 10.5322 12.0095 10.3783 12.2912 10.1179C12.5753 9.85748 12.715 9.52367 12.7102 9.11648C12.7126 8.70691 12.5966 8.34351 12.3622 8.02628C12.1302 7.70668 11.8071 7.45573 11.3928 7.27344C10.9808 7.09115 10.5062 7 9.96875 7C9.41951 7 8.933 7.09706 8.50923 7.29119C8.08546 7.48532 7.75166 7.75284 7.50781 8.09375C7.26634 8.43466 7.14441 8.82765 7.14205 9.27273H9.03125C9.03362 9.12595 9.07505 8.99574 9.15554 8.8821C9.23603 8.76847 9.34612 8.67969 9.4858 8.61577C9.62784 8.55185 9.78883 8.51989 9.96875 8.51989C10.1345 8.51989 10.2801 8.55066 10.4055 8.61222C10.5334 8.67377 10.6328 8.759 10.7038 8.8679C10.7749 8.9768 10.8092 9.10227 10.8068 9.24432C10.8092 9.3911 10.7678 9.52131 10.6825 9.63494C10.5997 9.74858 10.4825 9.83736 10.331 9.90128C10.1818 9.9652 10.009 9.99716 9.8125 9.99716H9.07386V11.3608H9.8125C10.0256 11.3608 10.2138 11.3928 10.3771 11.4567C10.5405 11.5206 10.6671 11.6094 10.7571 11.723C10.8494 11.8366 10.8944 11.9669 10.892 12.1136C10.8944 12.2628 10.8565 12.3954 10.7784 12.5114C10.7003 12.6274 10.5914 12.7185 10.4517 12.7848C10.312 12.8487 10.151 12.8807 9.96875 12.8807C9.77936 12.8807 9.61127 12.8499 9.46449 12.7884C9.31771 12.7268 9.2017 12.6416 9.11648 12.5327C9.03362 12.4214 8.991 12.2959 8.98864 12.1562H7C7.00237 12.6084 7.13021 13.0085 7.38352 13.3565C7.63684 13.7045 7.98485 13.978 8.42756 14.1768Z" fill="#80A3FF"/>
|
3
|
+
</svg>
|
@@ -1,23 +1,22 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
|
-
import {
|
4
|
-
import { Icon } from '../common-components/Icon';
|
3
|
+
import {Typography} from '../../foundation/Typography'
|
5
4
|
|
6
5
|
export default function HasConAvatar({ name, designation, size, imageUrl }) {
|
7
6
|
const hasImageUrl = imageUrl && imageUrl.length > 0;
|
8
7
|
return (
|
9
|
-
<div className={
|
8
|
+
<div className={`shadow group rounded-2xl tb:rounded-3xl flex flex-col-reverse mb-m:flex-row mb-m:flex mb-m:items-center mb-m:justify-between bg-neutral-0 tb:inline-flex tb:flex-col tb:max-w-[289px] tb:min-w-[18rem]`}>
|
10
9
|
|
11
|
-
<div className="
|
12
|
-
<
|
13
|
-
<
|
10
|
+
<div className="px-6 pb-6 pt-3 mb-m:px-5 mb-m:py-[30px] tb:p-0 text-left tb:flex-col mb-m:min-h-[120px] tb:flex tb:items-center tb:px-8 tb:pb-8 tb:mt-8 tb:ml-0 tb:text-center">
|
11
|
+
<div className=' text-hds-m-body1c-bold tb:text-hds-t-h5 db:text-hds-d-h5 text-blue-400'>{name}</div>
|
12
|
+
<div className=' text-hds-m-body3c-medium tb:text-hds-t-h7 db:text-hds-d-h7 text-blue-800 capitalize tb:uppercase'>{designation}</div>
|
14
13
|
</div>
|
15
|
-
<div className='relative '>
|
14
|
+
<div className='relative pt-6 mb-m:pt-0 pl-6 mb-m:pl-0 mb-m:self-center'>
|
16
15
|
<img
|
17
|
-
className={`inline-block w-[9rem] tb:min-w-[18rem] tb:rounded-
|
16
|
+
className={`inline-block max-[399px]:bg-blue-300 rounded-r-xl max-[399px]:rounded-full w-[60px] mb-m:min-w-[144px] mb-m:w-[9rem] tb:min-w-[18rem] tb:rounded-3xl border-neutral-0`}
|
18
17
|
src={imageUrl}
|
19
18
|
/>
|
20
|
-
<div className="absolute rounded-b-
|
19
|
+
{/* <div className="absolute tb-l:rounded-b-3xl inset-0 group-hover:bg-gradient-to-t group-hover:from-amber-200 group-hover:to-transparent group-hover:opacity-30" ></div> */}
|
21
20
|
</div>
|
22
21
|
|
23
22
|
|
@@ -33,5 +32,5 @@ HasConAvatar.propTypes = {
|
|
33
32
|
HasConAvatar.defaultProps = {
|
34
33
|
name: 'Names',
|
35
34
|
designation: 'Product Marketing, Hasura',
|
36
|
-
imageUrl:
|
35
|
+
imageUrl: ``
|
37
36
|
};
|
@@ -1,44 +1,32 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import PropTypes from 'prop-types';
|
3
3
|
import { Icon } from '../common-components/Icon';
|
4
|
+
import { Typography } from '../../foundation/Typography';
|
5
|
+
import { HDSColor } from '../../foundation/ColorPalette';
|
4
6
|
const imgSizes = {
|
5
7
|
'xs': 'h-8 w-8',
|
6
8
|
'sm': 'h-10 w-10',
|
7
|
-
'md': 'h-12 w-12',
|
9
|
+
'md': 'h-12 w-12 min-w-[48px]',
|
8
10
|
'lg': 'h-[60px] w-[60px]',
|
9
11
|
}
|
10
12
|
const AvatarVariant = {
|
11
|
-
'circular': 'shadow rounded-full
|
13
|
+
'circular': 'shadow rounded-full ',
|
12
14
|
'square': 'rounded-lg',
|
13
15
|
}
|
14
16
|
|
15
|
-
|
16
|
-
const nameTextStyle = {
|
17
|
-
'xs': 'text-d-body1c-bold',
|
18
|
-
'sm': 'text-d-body1c-bold',
|
19
|
-
'md': 'text-d-body1c-bold',
|
20
|
-
'lg': 'text-d-body1c-bold'
|
21
|
-
}
|
22
|
-
|
23
|
-
const desgnTextStyle = {
|
24
|
-
'xs': 'text-hds-d-body3c ',
|
25
|
-
'sm': 'text-hds-d-body3c ',
|
26
|
-
'md': 'text-hds-d-body3c ',
|
27
|
-
'lg': 'text-hds-d-body3c '
|
28
|
-
}
|
29
|
-
|
30
|
-
export default function ProfileAvatar({ name, designation, size, imageUrl, avatarVariant }) {
|
17
|
+
export default function ProfileAvatar({avatarBgColor, name, designation, size, imageUrl, avatarVariant }) {
|
31
18
|
const imgSizeClass = imgSizes[size] || imgSizes.md;
|
32
19
|
const avatarVariantClass = AvatarVariant[avatarVariant] || AvatarVariant.circular;
|
33
20
|
const defaultAvatarIcon = "user03";
|
34
21
|
const hasImageUrl = imageUrl && imageUrl.length > 0;
|
22
|
+
|
35
23
|
return (
|
36
24
|
<div className="group block flex-shrink-0">
|
37
25
|
<div className="flex items-center">
|
38
26
|
<div>
|
39
27
|
{hasImageUrl ? (
|
40
28
|
<img
|
41
|
-
className={`${imgSizeClass} ${avatarVariantClass} rounded inline-block`}
|
29
|
+
className={`${imgSizeClass} ${avatarVariantClass} ${HDSColor(avatarBgColor)} rounded inline-block`}
|
42
30
|
src={imageUrl}
|
43
31
|
/>
|
44
32
|
) : (
|
@@ -50,15 +38,8 @@ export default function ProfileAvatar({ name, designation, size, imageUrl, avata
|
|
50
38
|
)}
|
51
39
|
</div>
|
52
40
|
<div className="ml-3">
|
53
|
-
|
54
|
-
className={
|
55
|
-
>
|
56
|
-
{name}
|
57
|
-
</p>
|
58
|
-
<p
|
59
|
-
className={`${desgnTextStyle[`${size}`]} text-neutral-500 group-hover:text-gray-700`}>
|
60
|
-
{designation}
|
61
|
-
</p>
|
41
|
+
<Typography textStyle='body2c-bold' className={` text-neutral-800`}>{name}</Typography>
|
42
|
+
<Typography textStyle='body3c' className={` text-neutral-500`}>{designation}</Typography>
|
62
43
|
</div>
|
63
44
|
</div>
|
64
45
|
</div>
|
@@ -73,5 +54,5 @@ ProfileAvatar.propTypes = {
|
|
73
54
|
ProfileAvatar.defaultProps = {
|
74
55
|
name: 'Names',
|
75
56
|
designation: 'Product Marketing, Hasura',
|
76
|
-
imageUrl:
|
57
|
+
imageUrl: ``
|
77
58
|
};
|
@@ -3,6 +3,7 @@ import { useState } from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
4
4
|
import { Icon } from '../common-components/Icon';
|
5
5
|
import {Typography} from '../../foundation/Typography'
|
6
|
+
import { HDSColor } from '../../foundation/ColorPalette';
|
6
7
|
const sizeClasses = {
|
7
8
|
sm: 'py-0.5 px-2 hds-d-body3c',
|
8
9
|
default: 'py-1 px-3',
|
@@ -27,8 +28,10 @@ const colorVariants = {
|
|
27
28
|
export default function Badge({
|
28
29
|
leftIconVariant,
|
29
30
|
leftIconColor,
|
31
|
+
leftIconColorClass,
|
30
32
|
rightIconVariant,
|
31
33
|
rightIconColor,
|
34
|
+
rightIconColorClass,
|
32
35
|
size,
|
33
36
|
children,
|
34
37
|
color,
|
@@ -44,7 +47,7 @@ export default function Badge({
|
|
44
47
|
|
45
48
|
return (
|
46
49
|
<button
|
47
|
-
className={
|
50
|
+
className={` cursor-default ${sizeClasses[size]} ${
|
48
51
|
colorVariants[color]
|
49
52
|
} inline-flex items-center rounded-full`}
|
50
53
|
onClick={handleClick}
|
@@ -52,14 +55,14 @@ export default function Badge({
|
|
52
55
|
>
|
53
56
|
{leftIconVariant && leftIconVariant !== 'none' && (
|
54
57
|
<div className='mr-1'>
|
55
|
-
<Icon height={'h-4 w-4'} variant={leftIconVariant} strokeColor={leftIconColor} />
|
58
|
+
<Icon height={'h-4 w-4 stroke-[1.5px]'} variant={leftIconVariant} strokeColor={leftIconColor} strokeClass={HDSColor(leftIconColorClass)} />
|
56
59
|
</div>
|
57
60
|
)}
|
58
|
-
<Typography textStyle='
|
61
|
+
<Typography textStyle='body3c'>{children}</Typography>
|
59
62
|
|
60
63
|
{rightIconVariant && rightIconVariant !== 'none' && (
|
61
64
|
<div className='ml-1'>
|
62
|
-
<Icon height={'h-4'} variant={rightIconVariant} strokeColor={rightIconColor} />
|
65
|
+
<Icon height={'h-4 w-4 stroke-[1.5px]'} variant={rightIconVariant} strokeColor={rightIconColor} rightIconColorClass={HDSColor(rightIconColorClass)} />
|
63
66
|
</div>
|
64
67
|
)}
|
65
68
|
</button>
|
@@ -13,7 +13,7 @@ const ANIMATED_ARR_CLASSES = {
|
|
13
13
|
'md': 'h-5 w-5 -mt-5',
|
14
14
|
'lg': 'h-6 w-6 -mt-6'
|
15
15
|
},
|
16
|
-
|
16
|
+
|
17
17
|
}
|
18
18
|
|
19
19
|
const Buttonclasses = {
|
@@ -22,13 +22,13 @@ const Buttonclasses = {
|
|
22
22
|
'base': 'db:w-fit tb:w-fit w-full justify-center justify-center bg-blue-500 text-neutral-0',
|
23
23
|
'hover': 'hover:bg-blue-700 hover:text-neutral-0 hover:shadow-md hover:shadow hover:transition-all hover:ease-out hover:duration-300',
|
24
24
|
'focus': 'focus:bg-blue-600 focus:shadow-[0_0px_0px_4px_#DFE8FF] focus:text-neutral-0 focus:outline-none active:bg-blue-600 active:text-neutral-0 active:outline-none',
|
25
|
-
|
25
|
+
|
26
26
|
},
|
27
27
|
'disabled': 'bg-neutral-200 text-neutral-400',
|
28
28
|
},
|
29
29
|
'tonal': {
|
30
30
|
'default': {
|
31
|
-
'base': 'db:w-fit tb:w-fit w-full
|
31
|
+
'base': 'db:w-fit tb:w-fit w-full justify-center bg-blue-200 text-blue-600',
|
32
32
|
'hover': 'hover:bg-blue-700 hover:text-neutral-0 hover:shadow-md hover:shadow hover:transition-all hover:ease-out hover:duration-300',
|
33
33
|
'focus': 'focus:bg-blue-100 focus:text-blue-600 focus:shadow-[0px_0px_0px_4px_#DFE8FF] focus:outline-none',
|
34
34
|
},
|
@@ -36,14 +36,25 @@ const Buttonclasses = {
|
|
36
36
|
},
|
37
37
|
'secondary': {
|
38
38
|
'default': {
|
39
|
-
'base': 'db:w-fit tb:w-fit w-full justify-center border-2 border-
|
40
|
-
|
41
|
-
'hover': 'hover:text-neutral-0 hover:bg-blue-700 hover:border-2 hover:border-blue-700 hover:shadow-md hover:shadow hover:transition-all hover:ease-out hover:delay-100 hover:duration-300',
|
39
|
+
'base': 'db:w-fit tb:w-fit w-full justify-center border-2 border-blue-500 text-blue-500',
|
42
40
|
|
41
|
+
'hover': 'hover:text-neutral-0 hover:bg-blue-700 hover:border-2 hover:border-blue-700 hover:shadow-md hover:shadow hover:transition-all hover:ease-out hover:duration-300',
|
42
|
+
|
43
43
|
'focus': 'focus:bg-blue-200 focus:text-blue-500 focus:border-2 border-blue-500 focus:shadow-[0px_0px_0px_4px_#DFE8FF] focus:outline-none focus:text-blue-500',
|
44
44
|
},
|
45
45
|
'disabled': 'bg-neutral-200 text-neutral-400',
|
46
46
|
},
|
47
|
+
'secondaryWhite': {
|
48
|
+
'default': {
|
49
|
+
'base': 'db:w-fit tb:w-fit w-full justify-center border-2 border-neutral-0 text-neutral-0 ',
|
50
|
+
|
51
|
+
'hover': 'hover:text-neutral-0 hover:border-2 hover:border-neutral-0 hover:shadow-md hover:shadow hover:transition-all hover:ease-out hover:duration-300',
|
52
|
+
|
53
|
+
'focus': 'focus:text-neutrak-0 focus:border-2 border-neutral-0 focus:outline-none focus:text-neutral-0',
|
54
|
+
},
|
55
|
+
'disabled': 'bg-neutral-200 text-neutral-400',
|
56
|
+
},
|
57
|
+
|
47
58
|
'ghost': {
|
48
59
|
'default': {
|
49
60
|
'base': 'db:w-fit tb:w-fit w-full justify-center text-blue-600',
|
@@ -54,7 +65,7 @@ const Buttonclasses = {
|
|
54
65
|
},
|
55
66
|
'primaryLink': {
|
56
67
|
'default': {
|
57
|
-
'base': 'db:w-fit tb:w-fit w-full justify-center
|
68
|
+
'base': 'db:w-fit tb:w-fit w-full justify-center ',
|
58
69
|
'hover': 'hover:text-neutral-0',
|
59
70
|
'focus': 'focus:shadow-[0px_0px_0px_4px_#DFE8FF] focus:outline-none focus:text-blue-600',
|
60
71
|
},
|
@@ -62,8 +73,8 @@ const Buttonclasses = {
|
|
62
73
|
},
|
63
74
|
'secondaryLink': {
|
64
75
|
'default': {
|
65
|
-
'base': 'db:w-fit tb:w-fit w-full justify-center
|
66
|
-
'hover': '
|
76
|
+
'base': 'db:w-fit tb:w-fit w-full justify-center ',
|
77
|
+
'hover': '',
|
67
78
|
'focus': 'focus:text-neutral-900 focus:outline-none focus:shadow-[0px_0px_0px_4px_#E5E7EB]',
|
68
79
|
},
|
69
80
|
'disabled': 'text-neutral-300',
|
@@ -160,10 +171,10 @@ export default function Button(props) {
|
|
160
171
|
<Icon variant={leftIconVariant} strokeColor={leftIconColor} />
|
161
172
|
</div>
|
162
173
|
)}
|
163
|
-
|
174
|
+
|
164
175
|
{leftIconVariant && leftIconVariant !== 'none' && type=='iconOnly' && (
|
165
|
-
<div className={
|
166
|
-
<Icon variant={leftIconVariant} height='group-active:stroke-neutral-0 group-hover:transition-all group-hover:ease-in-out group-hover:duration-100 group-hover:stroke-neutral-0 group-focus:stroke-neutral-0
|
176
|
+
<div className={``}>
|
177
|
+
<Icon variant={leftIconVariant} height={`${ANIMATED_ARR_CLASSES['icon1'][`${size}`]} group-active:stroke-neutral-0 stroke-[1.5px] group-hover:transition-all group-hover:ease-in-out group-hover:duration-100 group-hover:stroke-neutral-0 group-focus:stroke-neutral-0`} strokeColor={leftIconColor} />
|
167
178
|
</div>
|
168
179
|
)}
|
169
180
|
{label}
|
@@ -195,7 +206,7 @@ Button.propTypes = {
|
|
195
206
|
leftIconVariant: PropTypes.string,
|
196
207
|
rightIconVariant: PropTypes.string,
|
197
208
|
animatedHoverStroke: PropTypes.string
|
198
|
-
|
209
|
+
|
199
210
|
|
200
211
|
};
|
201
212
|
|
@@ -212,5 +223,5 @@ Button.defaultProps = {
|
|
212
223
|
rightAnimatedArrow: 'True' ,
|
213
224
|
rightAnimatedArrowColor: '#FFFFFF',
|
214
225
|
animatedHoverStroke: 'group-hover:stroke-neutral-0',
|
215
|
-
|
226
|
+
|
216
227
|
};
|
@@ -5,7 +5,7 @@ import { FlyoutB, FlyoutA } from '../Menu'
|
|
5
5
|
|
6
6
|
export default function DropdownA(props) {
|
7
7
|
return (
|
8
|
-
<div className='flex flex-col tb:flex-row gap-2'>
|
8
|
+
<div className='flex mx-auto w-screen flex-col tb:flex-row gap-2'>
|
9
9
|
<div className=' bg-neutral-0 rounded-2xl tb:min-w-[28.063rem]'>
|
10
10
|
<FlyoutB
|
11
11
|
{...props.primaryCard}
|
@@ -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>
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { HDSButton } from "../../Buttons";
|
3
|
+
import { Typography } from "../../../foundation/Typography";
|
4
|
+
import { HDSColor } from "../../../foundation/ColorPalette";
|
5
|
+
|
6
|
+
export default function ImageBox(props) {
|
7
|
+
const {
|
8
|
+
btnbutton,
|
9
|
+
title,
|
10
|
+
description,
|
11
|
+
className,
|
12
|
+
imgUrl,
|
13
|
+
imgAlt,
|
14
|
+
titleTextColor = 'text-neutral-1000',
|
15
|
+
imageClasses,
|
16
|
+
btn,
|
17
|
+
} = props;
|
18
|
+
return (
|
19
|
+
<div className={className}>
|
20
|
+
{imgUrl &&
|
21
|
+
<div>
|
22
|
+
<img src={imgUrl} alt={imgAlt} className={imageClasses} />
|
23
|
+
</div>}
|
24
|
+
{title && (
|
25
|
+
<Typography textStyle='h3' className={HDSColor(titleTextColor)}>{title}</Typography>
|
26
|
+
)
|
27
|
+
}
|
28
|
+
{description && (
|
29
|
+
<Typography textStyle='body1'>{description}</Typography>
|
30
|
+
)
|
31
|
+
|
32
|
+
}
|
33
|
+
{btn.btnLabel && (
|
34
|
+
<a href={btn.cta_link}>
|
35
|
+
<HDSButton
|
36
|
+
label={btn.cta_text}
|
37
|
+
type={btn.cta_type}
|
38
|
+
leftIconVariant='none'
|
39
|
+
rightIconVariant='none'
|
40
|
+
state='default'
|
41
|
+
size='md'
|
42
|
+
rightAnimatedArrow={true}
|
43
|
+
rightAnimatedArrowColor='#3970FD'
|
44
|
+
/>
|
45
|
+
</a>
|
46
|
+
)
|
47
|
+
|
48
|
+
}
|
49
|
+
</div>
|
50
|
+
)
|
51
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {default as ImageBox} from './imagebox'
|
@@ -6,24 +6,22 @@ import { Typography } from '../../../foundation/Typography'
|
|
6
6
|
|
7
7
|
|
8
8
|
export default function LinkCard(props) {
|
9
|
-
const iconStrokeColor = HDSColor(props.iconStrokeColor);
|
10
|
-
const cardBgColorClass = HDSColor(props.cardBgColor)
|
11
|
-
const cardHoverClasses = `hover:${HDSColor(props.cardHoverBg)}` + ' hover:shadow-xl';
|
12
9
|
return (
|
13
10
|
<>
|
14
11
|
<a
|
15
12
|
href={props.linkUrl}
|
16
|
-
className={
|
13
|
+
className={`rounded-2xl p-6 h-full block`}
|
17
14
|
>
|
18
15
|
{props.brandImageUrl ?
|
19
16
|
(
|
20
17
|
<div className="flex flex-col">
|
21
|
-
<div className="flex justify-end items-end
|
18
|
+
<div className="flex justify-end items-end">
|
22
19
|
{props.iconArrowVariant &&
|
23
20
|
(<Icon
|
24
21
|
height={'w-6 h-6 stroke-[1.5px] stroke-blue-400'}
|
25
22
|
variant={props.iconArrowVariant}
|
26
23
|
strokeColor={props.iconArrowStrokeColor}
|
24
|
+
strokeClass={HDSColor(props.iconArrowStrokeClass)}
|
27
25
|
/>)
|
28
26
|
}
|
29
27
|
</div>
|
@@ -35,17 +33,18 @@ export default function LinkCard(props) {
|
|
35
33
|
(
|
36
34
|
<>
|
37
35
|
<div className='flex items-center'>
|
38
|
-
<div className='flex items-center flex-1'>
|
36
|
+
<div className='flex items-center flex-1 pb-2'>
|
39
37
|
{props.iconVariant &&
|
40
38
|
(<Icon
|
41
39
|
height={'w-6 h-6 mr-2 stroke-[1.5px] '}
|
42
40
|
variant={props.iconVariant}
|
43
|
-
strokeColor={iconStrokeColor}
|
41
|
+
strokeColor={props.iconStrokeColor}
|
42
|
+
strokeClass={HDSColor(props.iconStrokeClass)}
|
44
43
|
/>)}
|
45
44
|
<Typography
|
46
45
|
as="h5"
|
47
46
|
textStyle="body1c-bold"
|
48
|
-
className=
|
47
|
+
className={HDSColor(props.titleTextColor)}>
|
49
48
|
{props.title}
|
50
49
|
</Typography>
|
51
50
|
</div>
|
@@ -54,15 +53,22 @@ export default function LinkCard(props) {
|
|
54
53
|
height={'w-6 h-6 stroke-[1.5px] stroke-blue-400'}
|
55
54
|
variant={props.iconArrowVariant}
|
56
55
|
strokeColor={props.iconArrowStrokeColor}
|
56
|
+
strokeClass={HDSColor(props.iconArrowStrokeClass)}
|
57
57
|
/>)
|
58
58
|
}
|
59
59
|
</div>
|
60
60
|
{props.description &&
|
61
|
-
(
|
61
|
+
(
|
62
|
+
<div>
|
63
|
+
|
64
|
+
<Typography
|
62
65
|
textStyle="body3"
|
63
|
-
className=
|
66
|
+
className={`${HDSColor(props.descTextColor)} mt-2`}>
|
64
67
|
{props.description}
|
65
|
-
</Typography>
|
68
|
+
</Typography>
|
69
|
+
</div>
|
70
|
+
|
71
|
+
)}
|
66
72
|
</>
|
67
73
|
)
|
68
74
|
}
|
@@ -72,11 +78,11 @@ export default function LinkCard(props) {
|
|
72
78
|
}
|
73
79
|
|
74
80
|
LinkCard.defaultProps = {
|
81
|
+
descTextColor:'',
|
82
|
+
titleTextColor:'',
|
75
83
|
brandImageUrl: '',
|
76
84
|
brandImageAlt:'',
|
77
85
|
linkUrl: '#',
|
78
|
-
cardBgColor: 'bg-neutral-0',
|
79
|
-
cardHoverBg: 'bg-neutral-0',
|
80
86
|
iconVariant: 'videorecorder',
|
81
87
|
iconStrokeColor: 'blue-500',
|
82
88
|
iconArrowVariant: 'arrownarrowupright',
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
1
|
+
import React from "react";;
|
2
|
+
import { Fragment } from 'react';
|
3
|
+
import { Popover, Transition } from '@headlessui/react';
|
4
|
+
import { Icon } from '../../common-components/Icon';
|
5
|
+
import { Typography } from '../../../foundation/Typography';
|
5
6
|
export default function flyout(props) {
|
6
7
|
const {
|
7
8
|
label,
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
1
|
+
import React from "react";
|
2
|
+
import { Fragment } from 'react';
|
3
|
+
import { Popover, Transition } from '@headlessui/react';
|
4
|
+
import { Icon } from '../../common-components/Icon';
|
5
|
+
import { Typography } from '../../../foundation/Typography';
|
5
6
|
export default function FlyoutA(props) {
|
6
7
|
const {
|
7
8
|
label,
|