hds-web 1.24.4 → 1.24.6
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/README.md +63 -3
- package/dist/index.css +2 -2
- package/dist/index.es.css +2 -2
- package/dist/index.es.js +5 -5
- package/dist/index.js +5 -5
- package/package.json +1 -1
- package/src/HDS/components/Avatars/profileAvatar.js +4 -0
- package/src/HDS/components/Cards/EventCards/eventschedule.js +98 -0
- package/src/HDS/components/Cards/EventCards/index.js +1 -0
- package/src/HDS/components/Cards/index.js +2 -1
- package/src/HDS/components/Hero/heroEvents.js +34 -0
- package/src/HDS/components/Hero/index.js +1 -0
- package/src/HDS/modules/Events/eventsAgenda.js +56 -0
- package/src/HDS/modules/Events/index.js +1 -0
- package/src/HDS/modules/index.js +2 -1
- package/src/styles/tailwind.css +110 -0
package/package.json
CHANGED
@@ -20,6 +20,10 @@ const ProfileAvatarVariant = {
|
|
20
20
|
'titleTextStyle': 'text-hds-m-body2c-bold tb:text-hds-t-body2c-bold db:text-hds-d-body2c-bold',
|
21
21
|
'desgnTextStyle': 'text-hds-m-body3c tb:text-hds-t-body3c db:text-hds-d-body3c'
|
22
22
|
},
|
23
|
+
'primary': {
|
24
|
+
'titleTextStyle': 'text-hds-m-body1-semi-bold tb:text-hds-t-body1-semi-bold db:text-hds-d-body1-semi-bold',
|
25
|
+
'desgnTextStyle': 'text-hds-m-body2 tb:text-hds-t-body2 db:text-hds-d-body2'
|
26
|
+
},
|
23
27
|
'secondary': {
|
24
28
|
'titleTextStyle': 'text-hds-m-sub2 tb:text-hds-t-sub2 db:text-hds-d-sub2',
|
25
29
|
'desgnTextStyle': 'text-hds-m-body2 tb:text-hds-t-body2 db:text-hds-d-body2'
|
@@ -0,0 +1,98 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { HDSColor } from '../../../foundation/ColorPalette'
|
3
|
+
import { ProfileAvatar } from '../../Avatars'
|
4
|
+
import { Typography } from '../../../foundation/Typography'
|
5
|
+
import { HDSButton } from "../../Buttons";
|
6
|
+
import { Badges } from "../../BadgesCaption";
|
7
|
+
import { Icon } from "../../common-components";
|
8
|
+
|
9
|
+
|
10
|
+
export default function EventScheduleCard(props) {
|
11
|
+
|
12
|
+
const scheduleSection = () => (
|
13
|
+
<div className="flex tb:divide-x divide-y tb:divide-y-0 divide-neutral-200 py-6 tb:flex-row flex-col">
|
14
|
+
|
15
|
+
<div className="flex flex-col tb:pr-6 pb-4 tb:pb-0">
|
16
|
+
<div className="flex gap-2">
|
17
|
+
<Icon height='h-[18px] w-[18px]' variant='calendar' strokeClass='stroke-neutral-600' />
|
18
|
+
<Typography textStyle='h6' className='capitalize text-neutral-600' ></Typography>
|
19
|
+
</div>
|
20
|
+
<Typography textStyle='sub2' className='text-neutral-700'>
|
21
|
+
|
22
|
+
{/* date */}2.00-5.00 PM PT
|
23
|
+
</Typography>
|
24
|
+
</div>
|
25
|
+
<div className="flex flex-col tb:px-6 py-4 tb:py-0">
|
26
|
+
<div className="flex gap-2">
|
27
|
+
<Icon height='h-[18px] w-[18px]' variant='clock' strokeClass='stroke-neutral-600' />
|
28
|
+
<Typography textStyle='h6' className='capitalize text-neutral-600' ></Typography>
|
29
|
+
</div>
|
30
|
+
<Typography textStyle='sub2' className='text-neutral-700'>
|
31
|
+
|
32
|
+
{/* date */}2.00-5.00 PM PT
|
33
|
+
</Typography>
|
34
|
+
</div>
|
35
|
+
<div className="flex flex-col tb:px-6 py-4 tb:py-0 ">
|
36
|
+
<div className="flex gap-2">
|
37
|
+
<Icon height='h-[18px] w-[18px]' variant='markerpin03' strokeClass='stroke-neutral-600' />
|
38
|
+
<Typography textStyle='h6' className='capitalize text-neutral-600' ></Typography>
|
39
|
+
</div>
|
40
|
+
<Typography textStyle='sub2' className='text-neutral-700'>
|
41
|
+
|
42
|
+
{/* date */}TopGolf El Segundo
|
43
|
+
</Typography>
|
44
|
+
</div>
|
45
|
+
<div className="px-6">
|
46
|
+
{/* share button */}
|
47
|
+
</div>
|
48
|
+
</div>
|
49
|
+
)
|
50
|
+
const speakerSection = (speaker) => (
|
51
|
+
<div className="">
|
52
|
+
<ProfileAvatar
|
53
|
+
name={speaker?.speakerName}
|
54
|
+
size='md'
|
55
|
+
designation={speaker?.speakerDesignation}
|
56
|
+
imageUrl={speaker?.speakerImgUrl}
|
57
|
+
avatarVariant="circle"
|
58
|
+
avatarType="primary"
|
59
|
+
/>
|
60
|
+
</div>
|
61
|
+
)
|
62
|
+
return (
|
63
|
+
<>
|
64
|
+
<div>
|
65
|
+
<div className="pb-2">
|
66
|
+
<Badges
|
67
|
+
color='green'
|
68
|
+
children='das'
|
69
|
+
text_color='text-neutral-0'
|
70
|
+
/>
|
71
|
+
</div>
|
72
|
+
{props.title &&
|
73
|
+
<Typography
|
74
|
+
textStyle='h3'
|
75
|
+
className={HDSColor(props.titleTextColor)}>
|
76
|
+
{props.title}
|
77
|
+
</Typography>}
|
78
|
+
{scheduleSection(props)}
|
79
|
+
{props.subtitle &&
|
80
|
+
<Typography
|
81
|
+
textStyle='h5'
|
82
|
+
className='text-neutral-700 pb-2'>
|
83
|
+
{props.subtitle}
|
84
|
+
</Typography>}
|
85
|
+
{props.description &&
|
86
|
+
<Typography
|
87
|
+
textStyle='sub2'
|
88
|
+
className='text-neutral-700 pb-6'>
|
89
|
+
{props.description}
|
90
|
+
</Typography>}
|
91
|
+
<div className="pt-6 border-t border-neutral-200">
|
92
|
+
|
93
|
+
{speakerSection()}
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
</>
|
97
|
+
)
|
98
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as EventScheduleCard } from './eventschedule';
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { Typography } from "../../foundation/Typography";
|
3
|
+
import { HDSPaperForm } from "../../helpers/Paperform";
|
4
|
+
import { Icon } from "../common-components";
|
5
|
+
export default function HeroEvents(props) {
|
6
|
+
|
7
|
+
return (
|
8
|
+
<div className="max-w-7xl">
|
9
|
+
<div className="relative">
|
10
|
+
<img loading="lazy" src="https://res.cloudinary.com/dh8fp23nd/image/upload/v1692355512/hasura-design-system/heroevents2_c8mpzp.png" alt={props.img_alt} className='bg-discord h-[336px] object-cover ' />
|
11
|
+
</div>
|
12
|
+
<div className="flex items-start py-12 px-20">
|
13
|
+
<div className="flex-1">
|
14
|
+
|
15
|
+
</div>
|
16
|
+
<div className="bg-neutral-0 rounded-3xl w-[400px] z-[1] -mt-[200px] p-10 border border-neutral-200">
|
17
|
+
<div className="flex gap-2 items-center pb-6">
|
18
|
+
<Icon height='h-5 w-5' variant='videorecorder' strokeClass='stroke-blue-600' />
|
19
|
+
<Typography textStyle='h5' className='text-neutral-1000'></Typography>
|
20
|
+
</div>
|
21
|
+
<div>
|
22
|
+
<HDSPaperForm
|
23
|
+
formId='hf-1051'
|
24
|
+
styleClass="paper-form-wrapper"
|
25
|
+
/>
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
</div>
|
30
|
+
|
31
|
+
</div>
|
32
|
+
|
33
|
+
)
|
34
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { Typography } from "../../foundation/Typography";
|
3
|
+
// import { HDSColor } from "../../foundation/ColorPalette";
|
4
|
+
import { Icon } from '../../components/common-components/Icon';
|
5
|
+
import ReactMarkdown from "react-markdown";
|
6
|
+
|
7
|
+
export default function TextCard(props) {
|
8
|
+
// const titleColor = HDSColor(props.title_color);
|
9
|
+
|
10
|
+
return (
|
11
|
+
<>
|
12
|
+
{
|
13
|
+
props.tagline && (
|
14
|
+
<Typography textStyle="body1-medium" className="flex items-center text-neutral-700 pb-4">
|
15
|
+
{props.tagIcon && <Icon height={'h-6 w-6 stroke-[1.5px] mr-2'} variant={props.tagIcon} strokeClass="stroke-neutral-700" />}
|
16
|
+
{props.tagline}
|
17
|
+
</Typography>
|
18
|
+
)
|
19
|
+
}
|
20
|
+
{
|
21
|
+
props.agendaTitle && (
|
22
|
+
<Typography textStyle="h3" as="h3" className="text-neutral-1000 pb-4">
|
23
|
+
{props.agendaTitle}
|
24
|
+
</Typography>
|
25
|
+
)
|
26
|
+
}
|
27
|
+
{
|
28
|
+
props.agendaList && props.agendaList.map((list, index) => (
|
29
|
+
<div key={index} className={((index === 0) ? "" : "pt-4")}>
|
30
|
+
{
|
31
|
+
list.title && (
|
32
|
+
<Typography textStyle="h5" as="h5" className="text-neutral-700 pb-1">
|
33
|
+
{list.title}
|
34
|
+
</Typography>
|
35
|
+
)
|
36
|
+
}
|
37
|
+
{
|
38
|
+
list.description && (
|
39
|
+
<Typography textStyle="body1" className="text-neutral-700 [&>p]:pb-1 last:[&>p]:pb-0 [&>ul]:ps-4 [&>ul>li]:list-disc [&>ul>li]:pb-1 last:[&>ul>li]:pb-0 [&>p>a]:text-blue-600 [&>p>a:hover]:text-blue-800">
|
40
|
+
<ReactMarkdown>{list.description}</ReactMarkdown>
|
41
|
+
</Typography>
|
42
|
+
)
|
43
|
+
}
|
44
|
+
</div>
|
45
|
+
))
|
46
|
+
}
|
47
|
+
{
|
48
|
+
props.closingNotes && (
|
49
|
+
<Typography textStyle="body1" className="text-neutral-700 pt-4 [&>p]:pb-4 last:[&>p]:pb-0 [&>ul]:ps-4 [&>ul>li]:list-disc [&>ul>li]:pb-1 last:[&>ul>li]:pb-0 [&>p>a]:text-blue-600 [&>p>a:hover]:text-blue-800">
|
50
|
+
<ReactMarkdown>{props.closingNotes}</ReactMarkdown>
|
51
|
+
</Typography>
|
52
|
+
)
|
53
|
+
}
|
54
|
+
</>
|
55
|
+
)
|
56
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as EventsAgenda } from './eventsAgenda';
|
package/src/HDS/modules/index.js
CHANGED
package/src/styles/tailwind.css
CHANGED
@@ -1044,6 +1044,18 @@ select{
|
|
1044
1044
|
top: 100%;
|
1045
1045
|
}
|
1046
1046
|
|
1047
|
+
.left-40{
|
1048
|
+
left: 10rem;
|
1049
|
+
}
|
1050
|
+
|
1051
|
+
.top-\[218px\]{
|
1052
|
+
top: 218px;
|
1053
|
+
}
|
1054
|
+
|
1055
|
+
.right-20{
|
1056
|
+
right: 5rem;
|
1057
|
+
}
|
1058
|
+
|
1047
1059
|
.isolate{
|
1048
1060
|
isolation: isolate;
|
1049
1061
|
}
|
@@ -1506,6 +1518,14 @@ select{
|
|
1506
1518
|
margin-top: 70px;
|
1507
1519
|
}
|
1508
1520
|
|
1521
|
+
.-mt-\[200\]{
|
1522
|
+
margin-top: -200;
|
1523
|
+
}
|
1524
|
+
|
1525
|
+
.-mt-\[200px\]{
|
1526
|
+
margin-top: -200px;
|
1527
|
+
}
|
1528
|
+
|
1509
1529
|
.line-clamp-3{
|
1510
1530
|
overflow: hidden;
|
1511
1531
|
display: -webkit-box;
|
@@ -1717,6 +1737,22 @@ select{
|
|
1717
1737
|
height: 100vh;
|
1718
1738
|
}
|
1719
1739
|
|
1740
|
+
.h-\[700px\]{
|
1741
|
+
height: 700px;
|
1742
|
+
}
|
1743
|
+
|
1744
|
+
.h-3\.5{
|
1745
|
+
height: 0.875rem;
|
1746
|
+
}
|
1747
|
+
|
1748
|
+
.h-\[18px\]{
|
1749
|
+
height: 18px;
|
1750
|
+
}
|
1751
|
+
|
1752
|
+
.h-\[336px\]{
|
1753
|
+
height: 336px;
|
1754
|
+
}
|
1755
|
+
|
1720
1756
|
.max-h-\[181px\]{
|
1721
1757
|
max-height: 181px;
|
1722
1758
|
}
|
@@ -1963,6 +1999,14 @@ select{
|
|
1963
1999
|
width: 100vw;
|
1964
2000
|
}
|
1965
2001
|
|
2002
|
+
.w-\[18px\]{
|
2003
|
+
width: 18px;
|
2004
|
+
}
|
2005
|
+
|
2006
|
+
.w-\[400px\]{
|
2007
|
+
width: 400px;
|
2008
|
+
}
|
2009
|
+
|
1966
2010
|
.min-w-\[11\.5rem\]{
|
1967
2011
|
min-width: 11.5rem;
|
1968
2012
|
}
|
@@ -2495,6 +2539,10 @@ select{
|
|
2495
2539
|
gap: 25rem;
|
2496
2540
|
}
|
2497
2541
|
|
2542
|
+
.gap-8{
|
2543
|
+
gap: 2rem;
|
2544
|
+
}
|
2545
|
+
|
2498
2546
|
.gap-x-1{
|
2499
2547
|
-webkit-column-gap: 0.25rem;
|
2500
2548
|
column-gap: 0.25rem;
|
@@ -2626,6 +2674,12 @@ select{
|
|
2626
2674
|
border-bottom-width: calc(2px * var(--tw-divide-y-reverse));
|
2627
2675
|
}
|
2628
2676
|
|
2677
|
+
.divide-x-2 > :not([hidden]) ~ :not([hidden]){
|
2678
|
+
--tw-divide-x-reverse: 0;
|
2679
|
+
border-right-width: calc(2px * var(--tw-divide-x-reverse));
|
2680
|
+
border-left-width: calc(2px * calc(1 - var(--tw-divide-x-reverse)));
|
2681
|
+
}
|
2682
|
+
|
2629
2683
|
.divide-blue-600\/10 > :not([hidden]) ~ :not([hidden]){
|
2630
2684
|
border-color: rgb(30 86 227 / 0.1);
|
2631
2685
|
}
|
@@ -3880,6 +3934,11 @@ select{
|
|
3880
3934
|
background-color: rgb(133 77 24 / var(--tw-bg-opacity));
|
3881
3935
|
}
|
3882
3936
|
|
3937
|
+
.bg-discord{
|
3938
|
+
--tw-bg-opacity: 1;
|
3939
|
+
background-color: rgb(88 101 242 / var(--tw-bg-opacity));
|
3940
|
+
}
|
3941
|
+
|
3883
3942
|
.bg-opacity-20{
|
3884
3943
|
--tw-bg-opacity: 0.2;
|
3885
3944
|
}
|
@@ -6228,6 +6287,10 @@ select{
|
|
6228
6287
|
object-fit: fill;
|
6229
6288
|
}
|
6230
6289
|
|
6290
|
+
.object-center{
|
6291
|
+
object-position: center;
|
6292
|
+
}
|
6293
|
+
|
6231
6294
|
.p-0{
|
6232
6295
|
padding: 0px;
|
6233
6296
|
}
|
@@ -6644,6 +6707,10 @@ select{
|
|
6644
6707
|
padding-top: 81px;
|
6645
6708
|
}
|
6646
6709
|
|
6710
|
+
.pr-6{
|
6711
|
+
padding-right: 1.5rem;
|
6712
|
+
}
|
6713
|
+
|
6647
6714
|
.text-left{
|
6648
6715
|
text-align: left;
|
6649
6716
|
}
|
@@ -10907,6 +10974,18 @@ select{
|
|
10907
10974
|
row-gap: 4rem;
|
10908
10975
|
}
|
10909
10976
|
|
10977
|
+
.tb\:divide-x > :not([hidden]) ~ :not([hidden]){
|
10978
|
+
--tw-divide-x-reverse: 0;
|
10979
|
+
border-right-width: calc(1px * var(--tw-divide-x-reverse));
|
10980
|
+
border-left-width: calc(1px * calc(1 - var(--tw-divide-x-reverse)));
|
10981
|
+
}
|
10982
|
+
|
10983
|
+
.tb\:divide-y-0 > :not([hidden]) ~ :not([hidden]){
|
10984
|
+
--tw-divide-y-reverse: 0;
|
10985
|
+
border-top-width: calc(0px * calc(1 - var(--tw-divide-y-reverse)));
|
10986
|
+
border-bottom-width: calc(0px * var(--tw-divide-y-reverse));
|
10987
|
+
}
|
10988
|
+
|
10910
10989
|
.tb\:rounded-3xl{
|
10911
10990
|
border-radius: 1.5rem;
|
10912
10991
|
}
|
@@ -11032,6 +11111,16 @@ select{
|
|
11032
11111
|
padding-bottom: 0.5rem;
|
11033
11112
|
}
|
11034
11113
|
|
11114
|
+
.tb\:px-6{
|
11115
|
+
padding-left: 1.5rem;
|
11116
|
+
padding-right: 1.5rem;
|
11117
|
+
}
|
11118
|
+
|
11119
|
+
.tb\:py-0{
|
11120
|
+
padding-top: 0px;
|
11121
|
+
padding-bottom: 0px;
|
11122
|
+
}
|
11123
|
+
|
11035
11124
|
.tb\:pb-0{
|
11036
11125
|
padding-bottom: 0px;
|
11037
11126
|
}
|
@@ -11088,6 +11177,10 @@ select{
|
|
11088
11177
|
padding-top: 2.875rem;
|
11089
11178
|
}
|
11090
11179
|
|
11180
|
+
.tb\:pr-6{
|
11181
|
+
padding-right: 1.5rem;
|
11182
|
+
}
|
11183
|
+
|
11091
11184
|
.tb\:text-left{
|
11092
11185
|
text-align: left;
|
11093
11186
|
}
|
@@ -12531,6 +12624,11 @@ select{
|
|
12531
12624
|
display: inline-block;
|
12532
12625
|
}
|
12533
12626
|
|
12627
|
+
.\[\&\>p\>a\:hover\]\:text-blue-800>p>a:hover{
|
12628
|
+
--tw-text-opacity: 1;
|
12629
|
+
color: rgb(0 40 142 / var(--tw-text-opacity));
|
12630
|
+
}
|
12631
|
+
|
12534
12632
|
.\[\&\>p\>a\]\:text-blue-600>p>a{
|
12535
12633
|
--tw-text-opacity: 1;
|
12536
12634
|
color: rgb(30 86 227 / var(--tw-text-opacity));
|
@@ -12540,6 +12638,14 @@ select{
|
|
12540
12638
|
padding-bottom: 0.5rem;
|
12541
12639
|
}
|
12542
12640
|
|
12641
|
+
.\[\&\>p\]\:pb-1>p{
|
12642
|
+
padding-bottom: 0.25rem;
|
12643
|
+
}
|
12644
|
+
|
12645
|
+
.\[\&\>p\]\:pb-4>p{
|
12646
|
+
padding-bottom: 1rem;
|
12647
|
+
}
|
12648
|
+
|
12543
12649
|
.\[\&\>p\]\:text-neutral-600>p{
|
12544
12650
|
--tw-text-opacity: 1;
|
12545
12651
|
color: rgb(77 87 97 / var(--tw-text-opacity));
|
@@ -12569,6 +12675,10 @@ select{
|
|
12569
12675
|
padding-bottom: 0.5rem;
|
12570
12676
|
}
|
12571
12677
|
|
12678
|
+
.\[\&\>ul\>li\]\:pb-1>ul>li{
|
12679
|
+
padding-bottom: 0.25rem;
|
12680
|
+
}
|
12681
|
+
|
12572
12682
|
.\[\&\>ul\>li\]\:last\:pb-0:last-child>ul>li{
|
12573
12683
|
padding-bottom: 0px;
|
12574
12684
|
}
|