hds-web 1.32.6 → 1.32.7

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hds-web",
3
- "version": "1.32.6",
3
+ "version": "1.32.7",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -31,11 +31,11 @@ export default function V3Header(props) {
31
31
  const [currentTab, setCurrentTab] = useState('')
32
32
  const [isShown, setIsShown] = useState(false)
33
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'
34
+ const signUpLink = props.signUpLink ? props.signUpLink :'https://cloud.hasura.io/signup?pg=sample-apps&plcmt=header&cta=try-hasura&tech=default';
35
+ const logInLink = props.logInLink ? props.logInLink :'https://cloud.hasura.io/login?pg=sample-apps&plcmt=header&cta=log-in&tech=default'
36
36
  const signupURL = updatePGParam(signUpLink, props.website_key)
37
37
  const loginURL = updatePGParam(logInLink, props.website_key)
38
-
38
+ const hideLoginButton = props.hideLoginButton;
39
39
  //testing
40
40
  const [dropdownVisibility, setDropdownVisibility] = useState(Array(props.HEADER_LIST.length).fill(false));
41
41
  const handleDropdownEnter = (index) => {
@@ -323,7 +323,7 @@ export default function V3Header(props) {
323
323
  Contact Sales
324
324
  </Typography>
325
325
  </a>
326
- <a href={loginURL} >
326
+ {!hideLoginButton && <a href={loginURL} >
327
327
  <HDSButton
328
328
  label="Log In"
329
329
  type='tonal'
@@ -336,7 +336,7 @@ export default function V3Header(props) {
336
336
  animatedHoverStroke='group-hover:stroke-neutral-0'
337
337
  className='hds-hidden tb-l:flex'
338
338
  />
339
- </a>
339
+ </a>}
340
340
  <a href={signupURL}>
341
341
 
342
342
  <HDSButton
@@ -355,7 +355,7 @@ export default function V3Header(props) {
355
355
  </div>
356
356
 
357
357
  </div>
358
-
358
+ {/* mobile */}
359
359
  <div className="hds-hidden-tbl overflow-auto flex ">
360
360
  {/* <Popover.Button className="inline-flex items-center justify-center rounded-md bg-white pl-6 text-gray-400 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-indigo-500">
361
361
  <span className="sr-only">Open menu</span> */}
@@ -454,7 +454,7 @@ export default function V3Header(props) {
454
454
 
455
455
  <div className='flex flex-row justify-around'>
456
456
  <div className='w-full flex gap-2'>
457
- <a href={loginURL} className='w-1/2'>
457
+ {!hideLoginButton && <a href={loginURL} className='w-1/2'>
458
458
  <HDSButton
459
459
  label="Log In"
460
460
  type='tonal'
@@ -467,8 +467,8 @@ export default function V3Header(props) {
467
467
  animatedHoverStroke='group-hover:stroke-neutral-0'
468
468
  className=' !w-full'
469
469
  />
470
- </a>
471
- <a href={signupURL} className='w-1/2'>
470
+ </a>}
471
+ <a href={signupURL} className={!hideLoginButton ? 'w-1/2' : 'w-full'}>
472
472
  <HDSButton
473
473
  label="Get Started"
474
474
  type='primary'
@@ -495,6 +495,7 @@ export default function V3Header(props) {
495
495
  }
496
496
 
497
497
  V3Header.defaultProps = {
498
+ hideLoginButton:false,
498
499
  hideSearch:false,
499
500
  HEADER_LIST: [
500
501
  {
@@ -2193,6 +2193,10 @@ select{
2193
2193
  max-width: 430px;
2194
2194
  }
2195
2195
 
2196
+ .max-w-\[435px\]{
2197
+ max-width: 435px;
2198
+ }
2199
+
2196
2200
  .max-w-\[44\.44rem\]{
2197
2201
  max-width: 44.44rem;
2198
2202
  }
@@ -3494,10 +3498,6 @@ select{
3494
3498
  border-top-color: rgb(229 231 235 / var(--tw-border-opacity));
3495
3499
  }
3496
3500
 
3497
- .border-opacity-0{
3498
- --tw-border-opacity: 0;
3499
- }
3500
-
3501
3501
  .bg-amber-100{
3502
3502
  --tw-bg-opacity: 1;
3503
3503
  background-color: rgb(255 243 212 / var(--tw-bg-opacity));
@@ -12998,19 +12998,6 @@ select{
12998
12998
  max-width: 420px;
12999
12999
  }
13000
13000
 
13001
- .\[\&\>p\>strong\]\:my-2>p>strong{
13002
- margin-top: 0.5rem;
13003
- margin-bottom: 0.5rem;
13004
- }
13005
-
13006
- .\[\&\>p\>strong\]\:mt-2>p>strong{
13007
- margin-top: 0.5rem;
13008
- }
13009
-
13010
- .\[\&\>p\>strong\]\:pt-2>p>strong{
13011
- padding-top: 0.5rem;
13012
- }
13013
-
13014
13001
  .\[\&\>p\]\:pb-1>p{
13015
13002
  padding-bottom: 0.25rem;
13016
13003
  }