hds-web 1.1.9 → 1.2.1

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.1.9",
3
+ "version": "1.2.1",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -54,7 +54,7 @@ const Buttonclasses = {
54
54
  },
55
55
  'primaryLink': {
56
56
  'default': {
57
- 'base': 'db:w-fit tb:w-fit w-full justify-center text-blue-500',
57
+ 'base': 'db:w-fit tb:w-fit w-full justify-center ',
58
58
  'hover': 'hover:text-neutral-0',
59
59
  'focus': 'focus:shadow-[0px_0px_0px_4px_#DFE8FF] focus:outline-none focus:text-blue-600',
60
60
  },
@@ -62,7 +62,7 @@ const Buttonclasses = {
62
62
  },
63
63
  'secondaryLink': {
64
64
  'default': {
65
- 'base': 'db:w-fit tb:w-fit w-full justify-center text-neutral-800',
65
+ 'base': 'db:w-fit tb:w-fit w-full justify-center ',
66
66
  'hover': 'hover:text-neutral-900 ',
67
67
  'focus': 'focus:text-neutral-900 focus:outline-none focus:shadow-[0px_0px_0px_4px_#E5E7EB]',
68
68
  },
@@ -1,7 +1,8 @@
1
- import { Fragment } from 'react'
2
- import { Popover, Transition } from '@headlessui/react'
3
- import { Icon } from '../../common-components/Icon'
4
- import { Typography } from '../../../foundation/Typography'
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 { Fragment } from 'react'
2
- import { Popover, Transition } from '@headlessui/react'
3
- import { Icon } from '../../common-components/Icon'
4
- import { Typography } from '../../../foundation/Typography'
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,
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { Fragment } from 'react'
2
3
  import { Popover, Transition } from '@headlessui/react'
3
4
  import { ChevronDownIcon } from '@heroicons/react/20/solid'
@@ -4,65 +4,84 @@ import {HDSColor} from '../../../foundation/ColorPalette';
4
4
  import { Badges } from '../../BadgesCaption';
5
5
  import { ProfileAvatar } from '../../Avatars'
6
6
  import { Typography } from "../../../foundation/Typography";
7
+ import ReactMarkdown from "react-markdown";
7
8
 
8
9
 
9
10
  export default function TalkDetailCard(props) {
10
11
  const badgeLeftIconColor = HDSColor(props.badgeLeftIconColor);
11
12
  return (
12
- <div>
13
- <Badges
14
- color={props.badgeColor}
15
- leftIconColor={badgeLeftIconColor}
16
- leftIconVariant='home03'
17
- size='default'
18
- >
19
- {props.talk_type}
20
- </Badges>
21
- <Typography textStyle='h6' className='text-blue-600 uppercase pt-4 pb-2'>{props.tag_line}</Typography>
22
- <Typography textStyle='h3' as='h3' className='text-blue-900 pb-4'>{props.title}</Typography>
23
- {
24
- props.social_share && (
25
- <div className='flex items-center pb-14'>
26
- {
27
- props.social_share.map((socialShare, i) => (
28
- <div className='mx-2 first:ml-0 last:mr-0'>
29
- <img src={socialShare.img_url} alt={socialShare.img_alt} />
30
- </div>
31
- ))
32
- }
33
- </div>
34
- )
35
- }
36
- {
37
- props.speaker_card && (
38
- <div>
39
- <Typography textStyle='h6' as='h6' className='uppercase text-neutral-500 pb-6'>speakers</Typography>
40
- {
41
- props.speaker_card.map((speaker, i) => (
42
- <div className='pb-4 last:pb-0'>
43
- <ProfileAvatar
44
- name={speaker.name}
45
- size='md'
46
- designation={speaker.designation}
47
- imageUrl={speaker.speakerImgUrl}
48
- avatarVariant="circle"
49
- />
50
- </div>
51
- ))
52
- }
53
- </div>
54
- )
55
- }
13
+ <div className="grid grid-cols-1 tb:grid-cols-2 gap-16 db:gap-28 tb:gap-16">
14
+ <div>
15
+ {
16
+ props.badgeColor && (
17
+ <Badges
18
+ color={props.badgeColor}
19
+ size='sm'
20
+ >
21
+ {props.talk_type}
22
+ </Badges>
23
+ )
24
+ }
25
+ {
26
+ props.tag_line && (<Typography textStyle='h6' className='text-blue-600 uppercase pt-4 pb-2'>{props.tag_line}</Typography>)
27
+ }
28
+ {
29
+ props.title && (<Typography textStyle='h3' as='h3' className='text-blue-900 pb-4'>{props.title}</Typography>)
30
+ }
31
+ {
32
+ props.social_share && (
33
+ <div className='flex items-center pb-8 tb:pb-14'>
34
+ {
35
+ props.social_share.map((socialShare, i) => (
36
+ <a href={socialShare.share_url} className='mx-2 first:ml-0 last:mr-0'>
37
+ <img src={socialShare.img_url} alt={socialShare.img_alt} />
38
+ </a>
39
+ ))
40
+ }
41
+ </div>
42
+ )
43
+ }
44
+ {
45
+ props.speaker_card && (
46
+ <div>
47
+ <Typography textStyle='h6' as='h6' className='uppercase text-neutral-500 pb-6'>speakers</Typography>
48
+ {
49
+ props.speaker_card.map((speaker, i) => (
50
+ <div className='pb-4 last:pb-0'>
51
+ <ProfileAvatar
52
+ name={speaker.name}
53
+ size='md'
54
+ designation={speaker.designation}
55
+ imageUrl={speaker.speakerImgUrl}
56
+ avatarVariant="circle"
57
+ />
58
+ </div>
59
+ ))
60
+ }
61
+ </div>
62
+ )
63
+ }
64
+ </div>
65
+ <div>
66
+ <Typography textStyle="h4" as="h4" className="text-neutral-800 pb-4">About the Talk</Typography>
67
+ {
68
+ props.description && (
69
+ <Typography className='text-neutral-800 [&>p]:pb-2 last:[&>p]:pb-0 [&>ul]:ps-4 [&>ul>li]:list-disc [&>ul>li]:pb-2 last:[&>ul>li]:pb-0' textStyle='body1'>
70
+ <ReactMarkdown>{props.description}</ReactMarkdown>
71
+ </Typography>
72
+ )
73
+ }
74
+ </div>
56
75
  </div>
57
76
  )
58
77
  }
59
78
 
60
79
  TalkDetailCard.defaultProps = {
61
- badgeColor: 'green',
62
- badgeLeftIconColor: 'stroke-neutral-0',
63
- talk_type: 'Talk',
64
- tag_line: 'June 20-22, 2023 | VIRTUAL | Free',
65
- title: 'Deploying Hasura apps the fast way with the new Vercel integration',
66
- social_share: '',
67
- speaker_card: '',
80
+ // badgeColor: 'green',
81
+ // badgeLeftIconColor: 'stroke-neutral-0',
82
+ // talk_type: 'Talk',
83
+ // tag_line: 'June 20-22, 2023 | VIRTUAL | Free',
84
+ // title: 'Deploying Hasura apps the fast way with the new Vercel integration',
85
+ // social_share: '',
86
+ // speaker_card: '',
68
87
  };
@@ -142,14 +142,14 @@ export default function V3Header(props) {
142
142
  )
143
143
 
144
144
  return (
145
- <Popover className="relative bg-white">
145
+ <Popover className="relative">
146
146
  <div className="flex items-center bg-neutral-50 justify-between p-6 md:justify-start md:space-x-6">
147
147
  <div>
148
- <a href="#" className="flex items-center">
149
- <Icon variant={'hasuraPrimary'} strokeColor={''} />
148
+ <a href={props.headerUrl} className="flex items-center">
149
+ <Icon height='w-[103px] h-[33px]' variant={'hasuraPrimary'} strokeColor={''} />
150
150
  </a>
151
151
  </div>
152
- <div className="-my-2 -mr-2 md:hidden">
152
+ <div className="tb:hidden">
153
153
  <Popover.Button className="inline-flex items-center justify-center rounded-md bg-white p-2 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500">
154
154
  <span className="sr-only">Open menu</span>
155
155
  <div className=' gap-6 flex'>
@@ -158,7 +158,7 @@ export default function V3Header(props) {
158
158
  </div>
159
159
  </Popover.Button>
160
160
  </div>
161
- <div className="hidden md:flex md:flex-1 md:items-center md:justify-between">
161
+ <div className="hidden tb:flex tb:flex-1 tb:items-center tb:justify-between">
162
162
  <Popover.Group as="nav" className="flex space-x-6">
163
163
  {headerListfn(props.HEADER_LIST)}
164
164
  </Popover.Group>
@@ -364,5 +364,6 @@ V3Header.defaultProps = {
364
364
  ]
365
365
  },
366
366
 
367
- ]
367
+ ],
368
+ headerUrl:'https://hasura.io/'
368
369
  }
@@ -166,8 +166,8 @@ export default function HeroSecondary({ heroData, logo, scrollArrow, fontSize })
166
166
 
167
167
  const imageCard = (heroData) => (
168
168
  heroData.imageUrl && (
169
- <div className="w-1/2 tb-l:w-full tb:flex tb:flex-col tb:justify-center">
170
- <img src={heroData.imageUrl} alt={heroData.imageAlt} className='w-full ' />
169
+ <div className="">
170
+ <img src={heroData.imageUrl} alt={heroData.imageAlt} className='tb-l:w-full w-1/2' />
171
171
  </div>
172
172
  )
173
173
  )
@@ -178,8 +178,8 @@ export default function HeroSecondary({ heroData, logo, scrollArrow, fontSize })
178
178
  <div className="">
179
179
  <div className={"max-w-7xl mx-auto px-20 py-20 rounded-3xl overflow-hidden " + ((heroData.bg_color) ? heroData.bg_color : "")} >
180
180
  <div className="w-full">
181
- <div className={"tb-l:flex tb-l:items-center tb-l:flex-row db:w-full flex flex-col-reverse tb:gap-x-16 db:gap-x-10 min-[1880px]:gap-x-72" + ((heroData.video_url) ? " " : " tb:flex")}>
182
- <div className='w-full tb:flex items-start tb:flex-col mt-4 tb:mt-0'
181
+ <div className={"tb-l:flex tb-l:justify-between tb-l:items-center tb-l:flex-row db:w-full flex flex-col-reverse tb:gap-x-16 db:gap-x-10 min-[1880px]:gap-x-72" + ((heroData.video_url) ? " " : " tb:flex")}>
182
+ <div className='max-w-[29.18rem] w-full tb:flex items-start tb:flex-col mt-4 tb:mt-0'
183
183
  >
184
184
  {
185
185
  heroData.tag_line && (
@@ -208,7 +208,11 @@ export default function HeroSecondary({ heroData, logo, scrollArrow, fontSize })
208
208
 
209
209
 
210
210
  </div>
211
+ <div className="">
212
+
213
+
211
214
  {imageCard(heroData)}
215
+ </div>
212
216
  </div>
213
217
 
214
218
  {LinkCardsFn(heroData)}
@@ -915,6 +915,10 @@ select {
915
915
  top: 0px;
916
916
  }
917
917
 
918
+ .bottom-10 {
919
+ bottom: 2.5rem;
920
+ }
921
+
918
922
  .isolate {
919
923
  isolation: isolate;
920
924
  }
@@ -1365,6 +1369,10 @@ select {
1365
1369
  height: 100%;
1366
1370
  }
1367
1371
 
1372
+ .h-\[33px\] {
1373
+ height: 33px;
1374
+ }
1375
+
1368
1376
  .max-h-\[26\.25\] {
1369
1377
  max-height: 26.25;
1370
1378
  }
@@ -1491,6 +1499,14 @@ select {
1491
1499
  width: 100vw;
1492
1500
  }
1493
1501
 
1502
+ .w-\[104px\] {
1503
+ width: 104px;
1504
+ }
1505
+
1506
+ .w-\[103px\] {
1507
+ width: 103px;
1508
+ }
1509
+
1494
1510
  .min-w-\[15rem\] {
1495
1511
  min-width: 15rem;
1496
1512
  }
@@ -1559,6 +1575,10 @@ select {
1559
1575
  max-width: min-content;
1560
1576
  }
1561
1577
 
1578
+ .max-w-\[29\.18rem\] {
1579
+ max-width: 29.18rem;
1580
+ }
1581
+
1562
1582
  .flex-1 {
1563
1583
  flex: 1 1 0%;
1564
1584
  }
@@ -1829,6 +1849,10 @@ select {
1829
1849
  gap: 25rem;
1830
1850
  }
1831
1851
 
1852
+ .gap-16 {
1853
+ gap: 4rem;
1854
+ }
1855
+
1832
1856
  .gap-x-1 {
1833
1857
  -webkit-column-gap: 0.25rem;
1834
1858
  column-gap: 0.25rem;
@@ -8015,6 +8039,10 @@ select {
8015
8039
  max-width: 530px;
8016
8040
  }
8017
8041
 
8042
+ .tb\:flex-1 {
8043
+ flex: 1 1 0%;
8044
+ }
8045
+
8018
8046
  .tb\:grid-cols-2 {
8019
8047
  grid-template-columns: repeat(2, minmax(0, 1fr));
8020
8048
  }
@@ -8043,6 +8071,10 @@ select {
8043
8071
  justify-content: center;
8044
8072
  }
8045
8073
 
8074
+ .tb\:justify-between {
8075
+ justify-content: space-between;
8076
+ }
8077
+
8046
8078
  .tb\:gap-0 {
8047
8079
  gap: 0px;
8048
8080
  }
@@ -8116,6 +8148,10 @@ select {
8116
8148
  padding-top: 2.875rem;
8117
8149
  }
8118
8150
 
8151
+ .tb\:pb-14 {
8152
+ padding-bottom: 3.5rem;
8153
+ }
8154
+
8119
8155
  .tb\:text-left {
8120
8156
  text-align: left;
8121
8157
  }
@@ -8572,6 +8608,14 @@ select {
8572
8608
  justify-content: flex-start;
8573
8609
  }
8574
8610
 
8611
+ .tb-l\:justify-end {
8612
+ justify-content: flex-end;
8613
+ }
8614
+
8615
+ .tb-l\:justify-between {
8616
+ justify-content: space-between;
8617
+ }
8618
+
8575
8619
  .tb-l\:gap-0 {
8576
8620
  gap: 0px;
8577
8621
  }
@@ -8721,6 +8765,10 @@ select {
8721
8765
  gap: 9rem;
8722
8766
  }
8723
8767
 
8768
+ .db\:gap-28 {
8769
+ gap: 7rem;
8770
+ }
8771
+
8724
8772
  .db\:gap-x-10 {
8725
8773
  -webkit-column-gap: 2.5rem;
8726
8774
  column-gap: 2.5rem;
@@ -9076,6 +9124,10 @@ select {
9076
9124
  padding-bottom: 0px;
9077
9125
  }
9078
9126
 
9127
+ .last\:\[\&\>ul\>li\]\:pb-0>ul>li:last-child {
9128
+ padding-bottom: 0px;
9129
+ }
9130
+
9079
9131
  .\[\&\>ul\]\:ps-4>ul {
9080
9132
  -webkit-padding-start: 1rem;
9081
9133
  padding-inline-start: 1rem;