hds-web 1.24.3 → 1.24.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hds-web",
3
- "version": "1.24.3",
3
+ "version": "1.24.5",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -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';
@@ -9,4 +9,5 @@ export * from './CommunityCard';
9
9
  export * from './Announcement';
10
10
  export * from './VideoCard';
11
11
  export * from './Testimonials';
12
- export * from './StoryCard';
12
+ export * from './StoryCard';
13
+ export * from './EventCards'
@@ -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
+ }
@@ -2,3 +2,4 @@ export {default as Hero1} from './h1'
2
2
  export {default as HeroSecondary} from './h2'
3
3
  export {default as HeroCapability} from './h3'
4
4
  export {default as HeroIntegration} from './heroIntegration'
5
+ export {default as HeroEvents} from './heroEvents'
@@ -2,3 +2,4 @@ export {default as Tabone} from './TabOne';
2
2
  export {default as Tabthree} from './TabThree';
3
3
  export {default as Tabtwo} from './TabTwo';
4
4
  export {default as Tab} from './tab';
5
+ export {default as V3Tab} from './v3tab';
@@ -0,0 +1,60 @@
1
+ import React, { useState, useRef, useEffect } from 'react';
2
+ import { HDSColor } from '../../foundation/ColorPalette';
3
+ import { Typography } from '../../foundation/Typography'
4
+ import { motion } from 'framer-motion';
5
+
6
+ export default function V3Tab(props) {
7
+ const {
8
+ tabs,
9
+ onTabClick,
10
+ pillColor,
11
+ } = props;
12
+ const initialActiveTab = tabs.find(tab => tab.current)?.name || tabs[0].name;
13
+ const [activeTab, setActiveTab] = useState(initialActiveTab);
14
+ let pillColorClass = '';
15
+ if (pillColor) {
16
+ pillColorClass = HDSColor(pillColor);
17
+ }
18
+ const handleTabClick = (clickedTab) => {
19
+ setActiveTab(clickedTab.name);
20
+ if (onTabClick) {
21
+ onTabClick(clickedTab);
22
+ }
23
+
24
+ };
25
+ return (
26
+ <div className="">
27
+ <div className="block ">
28
+ <nav className="relative inline-flex gap-2 rounded-[32px] " aria-label="Tabs">
29
+ {tabs && tabs.map((tab) => (
30
+ <button
31
+ key={tab.name}
32
+ onClick={() => {
33
+ handleTabClick(tab);
34
+ }}
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
+ >
37
+ {activeTab === tab.name && (
38
+ <motion.div
39
+ layoutId="active-pill"
40
+ className={`absolute inset-0 ${pillColorClass}`}
41
+ style={{ borderRadius: 32 }}
42
+ // transition={{ duration:1 }}
43
+
44
+ />
45
+ )}
46
+ <Typography textStyle="body3c-medium" className={`relative z-10 `}>
47
+ {tab.name}
48
+ </Typography>
49
+ </button>
50
+ ))}
51
+ </nav>
52
+ </div>
53
+ </div>
54
+ );
55
+ }
56
+
57
+
58
+ V3Tab.defaultProps = {
59
+ pillColor: 'bg-blue-500',
60
+ }
@@ -0,0 +1,70 @@
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 EventsAgenda(props) {
8
+ // const titleColor = HDSColor(props.title_color);
9
+
10
+ return (
11
+ <>
12
+ {
13
+ props.tagline && (
14
+ <Typography
15
+ textStyle="body1-medium"
16
+ className="flex items-center text-neutral-700 pb-4">
17
+ {props.tagIcon &&
18
+ <Icon
19
+ height={'h-6 w-6 stroke-[1.5px] mr-2'}
20
+ variant={props.tagIcon}
21
+ strokeClass="stroke-neutral-700" />}
22
+ {props.tagline}
23
+ </Typography>
24
+ )
25
+ }
26
+ {
27
+ props.agendaTitle && (
28
+ <Typography
29
+ textStyle="h3"
30
+ as="h3"
31
+ className="text-neutral-1000 pb-4">
32
+ {props.agendaTitle}
33
+ </Typography>
34
+ )
35
+ }
36
+ {
37
+ props.agendaList &&
38
+ props.agendaList.map((list, index) => (
39
+ <div
40
+ key={index}
41
+ className={((index === 0) ? "" : "pt-4")}
42
+ >
43
+ <Typography
44
+ textStyle="h5"
45
+ as="h5"
46
+ className="text-neutral-700 pb-1"
47
+ >
48
+ {list.title}
49
+ </Typography>
50
+ <Typography
51
+ textStyle="body1"
52
+ 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"
53
+ >
54
+ <ReactMarkdown>{list.description}</ReactMarkdown>
55
+ </Typography>
56
+ </div>
57
+ ))
58
+ }
59
+ {
60
+ props.closingNotes && (
61
+ <Typography
62
+ textStyle="body1"
63
+ className="text-neutral-700 pt-4 [&>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">
64
+ <ReactMarkdown>{props.closingNotes}</ReactMarkdown>
65
+ </Typography>
66
+ )
67
+ }
68
+ </>
69
+ )
70
+ }
@@ -0,0 +1 @@
1
+ export { default as EventsAgenda } from './eventsAgenda';
@@ -1,3 +1,4 @@
1
1
  export * from './TextCard';
2
2
  export * from './navCard';
3
- export * from './Cards';
3
+ export * from './Cards';
4
+ export * from './Events';
@@ -952,6 +952,10 @@ select{
952
952
  left: 17.6%;
953
953
  }
954
954
 
955
+ .left-\[400px\]{
956
+ left: 400px;
957
+ }
958
+
955
959
  .left-\[45\%\]{
956
960
  left: 45%;
957
961
  }
@@ -1040,6 +1044,18 @@ select{
1040
1044
  top: 100%;
1041
1045
  }
1042
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
+
1043
1059
  .isolate{
1044
1060
  isolation: isolate;
1045
1061
  }
@@ -1253,6 +1269,11 @@ select{
1253
1269
  margin-bottom: 2rem;
1254
1270
  }
1255
1271
 
1272
+ .mx-8{
1273
+ margin-left: 2rem;
1274
+ margin-right: 2rem;
1275
+ }
1276
+
1256
1277
  .-mb-\[112\%\]{
1257
1278
  margin-bottom: -112%;
1258
1279
  }
@@ -1497,6 +1518,14 @@ select{
1497
1518
  margin-top: 70px;
1498
1519
  }
1499
1520
 
1521
+ .-mt-\[200\]{
1522
+ margin-top: -200;
1523
+ }
1524
+
1525
+ .-mt-\[200px\]{
1526
+ margin-top: -200px;
1527
+ }
1528
+
1500
1529
  .line-clamp-3{
1501
1530
  overflow: hidden;
1502
1531
  display: -webkit-box;
@@ -1624,6 +1653,10 @@ select{
1624
1653
  height: 2.25rem;
1625
1654
  }
1626
1655
 
1656
+ .h-\[1000px\]{
1657
+ height: 1000px;
1658
+ }
1659
+
1627
1660
  .h-\[130px\]{
1628
1661
  height: 130px;
1629
1662
  }
@@ -1668,10 +1701,6 @@ select{
1668
1701
  height: 60px;
1669
1702
  }
1670
1703
 
1671
- .h-\[700px\]{
1672
- height: 700px;
1673
- }
1674
-
1675
1704
  .h-\[800px\]{
1676
1705
  height: 800px;
1677
1706
  }
@@ -1708,6 +1737,22 @@ select{
1708
1737
  height: 100vh;
1709
1738
  }
1710
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
+
1711
1756
  .max-h-\[181px\]{
1712
1757
  max-height: 181px;
1713
1758
  }
@@ -1954,6 +1999,14 @@ select{
1954
1999
  width: 100vw;
1955
2000
  }
1956
2001
 
2002
+ .w-\[18px\]{
2003
+ width: 18px;
2004
+ }
2005
+
2006
+ .w-\[400px\]{
2007
+ width: 400px;
2008
+ }
2009
+
1957
2010
  .min-w-\[11\.5rem\]{
1958
2011
  min-width: 11.5rem;
1959
2012
  }
@@ -2486,6 +2539,10 @@ select{
2486
2539
  gap: 25rem;
2487
2540
  }
2488
2541
 
2542
+ .gap-8{
2543
+ gap: 2rem;
2544
+ }
2545
+
2489
2546
  .gap-x-1{
2490
2547
  -webkit-column-gap: 0.25rem;
2491
2548
  column-gap: 0.25rem;
@@ -2617,6 +2674,12 @@ select{
2617
2674
  border-bottom-width: calc(2px * var(--tw-divide-y-reverse));
2618
2675
  }
2619
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
+
2620
2683
  .divide-blue-600\/10 > :not([hidden]) ~ :not([hidden]){
2621
2684
  border-color: rgb(30 86 227 / 0.1);
2622
2685
  }
@@ -3871,6 +3934,11 @@ select{
3871
3934
  background-color: rgb(133 77 24 / var(--tw-bg-opacity));
3872
3935
  }
3873
3936
 
3937
+ .bg-discord{
3938
+ --tw-bg-opacity: 1;
3939
+ background-color: rgb(88 101 242 / var(--tw-bg-opacity));
3940
+ }
3941
+
3874
3942
  .bg-opacity-20{
3875
3943
  --tw-bg-opacity: 0.2;
3876
3944
  }
@@ -6219,6 +6287,10 @@ select{
6219
6287
  object-fit: fill;
6220
6288
  }
6221
6289
 
6290
+ .object-center{
6291
+ object-position: center;
6292
+ }
6293
+
6222
6294
  .p-0{
6223
6295
  padding: 0px;
6224
6296
  }
@@ -6635,6 +6707,10 @@ select{
6635
6707
  padding-top: 81px;
6636
6708
  }
6637
6709
 
6710
+ .pr-6{
6711
+ padding-right: 1.5rem;
6712
+ }
6713
+
6638
6714
  .text-left{
6639
6715
  text-align: left;
6640
6716
  }
@@ -9335,11 +9411,6 @@ select{
9335
9411
  border-color: rgb(13 65 198 / var(--tw-border-opacity));
9336
9412
  }
9337
9413
 
9338
- .hover\:border-neutral-0:hover{
9339
- --tw-border-opacity: 1;
9340
- border-color: rgb(255 255 255 / var(--tw-border-opacity));
9341
- }
9342
-
9343
9414
  .hover\:border-neutral-300:hover{
9344
9415
  --tw-border-opacity: 1;
9345
9416
  border-color: rgb(210 214 219 / var(--tw-border-opacity));
@@ -9829,10 +9900,6 @@ select{
9829
9900
  background-color: rgb(133 77 24 / var(--tw-bg-opacity));
9830
9901
  }
9831
9902
 
9832
- .hover\:bg-neutral-0\/20:hover{
9833
- background-color: rgb(255 255 255 / 0.2);
9834
- }
9835
-
9836
9903
  .hover\:bg-neutral-500\/30:hover{
9837
9904
  background-color: rgb(108 115 127 / 0.3);
9838
9905
  }
@@ -10029,11 +10096,6 @@ select{
10029
10096
  color: rgb(30 86 227 / var(--tw-text-opacity));
10030
10097
  }
10031
10098
 
10032
- .focus\:text-blue-700:focus{
10033
- --tw-text-opacity: 1;
10034
- color: rgb(13 65 198 / var(--tw-text-opacity));
10035
- }
10036
-
10037
10099
  .focus\:text-neutral-0:focus{
10038
10100
  --tw-text-opacity: 1;
10039
10101
  color: rgb(255 255 255 / var(--tw-text-opacity));
@@ -10912,6 +10974,18 @@ select{
10912
10974
  row-gap: 4rem;
10913
10975
  }
10914
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
+
10915
10989
  .tb\:rounded-3xl{
10916
10990
  border-radius: 1.5rem;
10917
10991
  }
@@ -11037,6 +11111,16 @@ select{
11037
11111
  padding-bottom: 0.5rem;
11038
11112
  }
11039
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
+
11040
11124
  .tb\:pb-0{
11041
11125
  padding-bottom: 0px;
11042
11126
  }
@@ -11093,6 +11177,10 @@ select{
11093
11177
  padding-top: 2.875rem;
11094
11178
  }
11095
11179
 
11180
+ .tb\:pr-6{
11181
+ padding-right: 1.5rem;
11182
+ }
11183
+
11096
11184
  .tb\:text-left{
11097
11185
  text-align: left;
11098
11186
  }
@@ -12536,6 +12624,11 @@ select{
12536
12624
  display: inline-block;
12537
12625
  }
12538
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
+
12539
12632
  .\[\&\>p\>a\]\:text-blue-600>p>a{
12540
12633
  --tw-text-opacity: 1;
12541
12634
  color: rgb(30 86 227 / var(--tw-text-opacity));
@@ -12545,6 +12638,10 @@ select{
12545
12638
  padding-bottom: 0.5rem;
12546
12639
  }
12547
12640
 
12641
+ .\[\&\>p\]\:pb-1>p{
12642
+ padding-bottom: 0.25rem;
12643
+ }
12644
+
12548
12645
  .\[\&\>p\]\:text-neutral-600>p{
12549
12646
  --tw-text-opacity: 1;
12550
12647
  color: rgb(77 87 97 / var(--tw-text-opacity));
@@ -12574,6 +12671,10 @@ select{
12574
12671
  padding-bottom: 0.5rem;
12575
12672
  }
12576
12673
 
12674
+ .\[\&\>ul\>li\]\:pb-1>ul>li{
12675
+ padding-bottom: 0.25rem;
12676
+ }
12677
+
12577
12678
  .\[\&\>ul\>li\]\:last\:pb-0:last-child>ul>li{
12578
12679
  padding-bottom: 0px;
12579
12680
  }