hds-web 1.20.2 → 1.20.3

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.20.2",
3
+ "version": "1.20.3",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -47,7 +47,7 @@ const Buttonclasses = {
47
47
  'default': {
48
48
  'base': 'db:w-fit tb:w-fit w-full justify-center border-2 border-neutral-0 text-neutral-0 ',
49
49
 
50
- 'hover': 'hover:text-neutral-0 hover:border-opacity-0 hover:shadow-md hover:shadow hover:transition-all hover:ease-out hover:duration-300',
50
+ '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',
51
51
 
52
52
  'focus': 'focus:text-neutrak-0 focus:border-2 border-neutral-0 focus:outline-none focus:text-neutral-0',
53
53
  },
@@ -56,11 +56,11 @@ const Buttonclasses = {
56
56
 
57
57
  'ghost': {
58
58
  'default': {
59
- 'base': 'db:w-fit tb:w-fit w-full justify-center text-neutral-0',
60
- 'hover': ' ',
61
- 'focus': 'focus:outline-none',
59
+ 'base': 'db:w-fit tb:w-fit w-full justify-center text-blue-600',
60
+ 'hover': 'hover:bg-blue-100 hover:text-blue-600',
61
+ 'focus': 'focus:text-blue-700 focus:outline-none',
62
62
  },
63
- 'disabled': ' bg-neutral-200 text-neutral-400',
63
+ 'disabled': 'text-neutral-300',
64
64
  },
65
65
  'primaryLink': {
66
66
  'default': {
@@ -116,7 +116,6 @@ export default function Button(props) {
116
116
  btnTextColorClass,
117
117
  btnTextHoverClass,
118
118
  btnBgColorClass,
119
- btnbgHoverClass,
120
119
  rightIconVariant,
121
120
  rightIconColor,
122
121
  leftIconVariant,
@@ -157,8 +156,7 @@ export default function Button(props) {
157
156
  'group',
158
157
  defaultClasses,
159
158
  className,
160
- HDSColor(btnTextHoverClass),
161
- HDSColor(btnbgHoverClass)
159
+ HDSColor(btnTextHoverClass)
162
160
 
163
161
  ].join(' ');
164
162
 
@@ -17,7 +17,7 @@ export default function TalkCard2(props) {
17
17
 
18
18
  return (
19
19
 
20
- <a href={props.readUrl ?? '#'} className="grid group">
20
+ <div className="grid">
21
21
  <div className={`flex flex-col tb-l:flex-row tb-l:justify-between `}>
22
22
  <div className={"px-6 pt-6 tb-l:px-8 tb-l:pb-6 tb-l:border-r tb-l:border-r-neutral-200"}>
23
23
  <div className="flex flex-row flex-wrap tb:gap-3 gap-2">
@@ -52,7 +52,7 @@ export default function TalkCard2(props) {
52
52
  <div className="flex pb-6 tb-l:pb-0">
53
53
  {props.readUrl &&
54
54
  props.para && (
55
- <div>
55
+ <a href={props.readUrl}>
56
56
  <HDSButton
57
57
  label={props.videoUrl ? 'Watch Recording': 'Read more'}
58
58
  type='secondaryLink'
@@ -67,7 +67,7 @@ export default function TalkCard2(props) {
67
67
  animatedHoverStroke='stroke-blue-500'
68
68
  btnTextHoverClass='hover:text-blue-500'
69
69
  />
70
- </div>
70
+ </a>
71
71
  )}
72
72
  </div>
73
73
  </div>
@@ -112,7 +112,7 @@ export default function TalkCard2(props) {
112
112
  </div>}
113
113
  </div>
114
114
  </div>
115
- </a>
115
+ </div>
116
116
 
117
117
  )
118
118
 
@@ -12,6 +12,16 @@ function classNames(...classes) {
12
12
  return classes.filter(Boolean).join(' ')
13
13
  }
14
14
 
15
+ const updatePGParam = (originalLink, websiteKey) => {
16
+ if(websiteKey){
17
+ const url = new URL(originalLink);
18
+ url.searchParams.set("pg", websiteKey);
19
+ return url.toString();
20
+ }
21
+ else return originalLink;
22
+ };
23
+
24
+
15
25
  export default function V3Header(props) {
16
26
  const listSize = props.HEADER_LIST.length;
17
27
  const [mobileNavOpen, setmobileNavOpen] = useState(false);
@@ -21,6 +31,10 @@ export default function V3Header(props) {
21
31
  const [currentTab, setCurrentTab] = useState('')
22
32
  const [isShown, setIsShown] = useState(false)
23
33
  const [isArrowActive, setIsArrowActive] = useState(false)
34
+ const signUpLink = 'https://cloud.hasura.io/signup?pg=sample-apps&plcmt=header&cta=try-hasura&tech=default';
35
+ const logInLink = 'https://cloud.hasura.io/login?pg=sample-apps&plcmt=header&cta=log-in&tech=default'
36
+ const signupURL = updatePGParam(signUpLink, props.website_key)
37
+ const loginURL = updatePGParam(logInLink, props.website_key)
24
38
 
25
39
  //testing
26
40
  const [dropdownVisibility, setDropdownVisibility] = useState(Array(props.HEADER_LIST.length).fill(false));
@@ -301,7 +315,7 @@ export default function V3Header(props) {
301
315
  Contact Sales
302
316
  </Typography>
303
317
  </a>
304
- <a href='https://cloud.hasura.io/login?pg=sample-apps&plcmt=header&cta=log-in&tech=default' >
318
+ <a href={loginURL} >
305
319
  <HDSButton
306
320
  label="Log In"
307
321
  type='tonal'
@@ -315,7 +329,7 @@ export default function V3Header(props) {
315
329
  className='hds-hidden tb-l:flex'
316
330
  />
317
331
  </a>
318
- <a href='https://cloud.hasura.io/signup?pg=sample-apps&plcmt=header&cta=try-hasura&tech=default'>
332
+ <a href={signupURL}>
319
333
 
320
334
  <HDSButton
321
335
  label="Get Started"
@@ -432,7 +446,7 @@ export default function V3Header(props) {
432
446
 
433
447
  <div className='flex flex-row justify-around'>
434
448
  <div className='w-full flex gap-2'>
435
- <a href='https://cloud.hasura.io/login?pg=sample-apps&plcmt=header&cta=log-in&tech=default' className='w-1/2'>
449
+ <a href={loginURL} className='w-1/2'>
436
450
  <HDSButton
437
451
  label="Log In"
438
452
  type='tonal'
@@ -446,7 +460,7 @@ export default function V3Header(props) {
446
460
  className=' !w-full'
447
461
  />
448
462
  </a>
449
- <a href='https://cloud.hasura.io/signup?pg=sample-apps&plcmt=header&cta=try-hasura&tech=default' className='w-1/2'>
463
+ <a href={signupURL} className='w-1/2'>
450
464
  <HDSButton
451
465
  label="Get Started"
452
466
  type='primary'
@@ -9115,10 +9115,6 @@ select{
9115
9115
  border-width: 2px;
9116
9116
  }
9117
9117
 
9118
- .hover\:border-none:hover{
9119
- border-style: none;
9120
- }
9121
-
9122
9118
  .hover\:border-blue-600:hover{
9123
9119
  --tw-border-opacity: 1;
9124
9120
  border-color: rgb(30 86 227 / var(--tw-border-opacity));