@npm_leadtech/legal-lib-components 7.27.4 → 7.28.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.
Files changed (75) hide show
  1. package/dist/src/components/organisms/MenuItems/MenuItems.js +2 -2
  2. package/dist/src/components/organisms/MenuItems/MenuItems.styled.js +47 -280
  3. package/dist/src/components/organisms/MenuItems/MenuItems.styled.ts +47 -280
  4. package/dist/src/components/organisms/MenuItems/MenuItems.tsx +5 -5
  5. package/dist/src/components/organisms/MenuItems/MenuItemsProps.types.d.ts +0 -1
  6. package/dist/src/components/organisms/MenuItems/MenuItemsProps.types.ts +0 -1
  7. package/dist/src/components/organisms/NavMenu/NavMenu.js +2 -2
  8. package/dist/src/components/organisms/NavMenu/NavMenu.styled.js +11 -4
  9. package/dist/src/components/organisms/NavMenu/NavMenu.styled.ts +11 -4
  10. package/dist/src/components/organisms/NavMenu/NavMenu.tsx +0 -3
  11. package/dist/src/components/organisms/NavMenu/NavMenuProps.types.d.ts +0 -1
  12. package/dist/src/components/organisms/NavMenu/NavMenuProps.types.ts +0 -1
  13. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.js +1 -3
  14. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.js +2 -4
  15. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.ts +2 -4
  16. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.tsx +1 -4
  17. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.d.ts +1 -3
  18. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.js +0 -2
  19. package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.ts +1 -3
  20. package/dist/src/components/sections/Header/HeaderProps.types.d.ts +0 -2
  21. package/dist/src/components/sections/Header/HeaderProps.types.ts +0 -2
  22. package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.js +1 -9
  23. package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.styled.js +0 -4
  24. package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.styled.ts +0 -4
  25. package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.tsx +1 -11
  26. package/dist/src/components/sections/index.d.ts +0 -3
  27. package/dist/src/components/sections/index.js +0 -3
  28. package/dist/src/components/sections/index.ts +0 -3
  29. package/dist/tsconfig.build.tsbuildinfo +1 -1
  30. package/package.json +1 -2
  31. package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.d.ts +0 -3
  32. package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.js +0 -5
  33. package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.styled.d.ts +0 -1
  34. package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.styled.js +0 -50
  35. package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.styled.ts +0 -51
  36. package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.tsx +0 -20
  37. package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCardProps.d.ts +0 -5
  38. package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCardProps.js +0 -1
  39. package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCardProps.ts +0 -5
  40. package/dist/src/components/molecules/LawGeniusInfoCard/index.d.ts +0 -2
  41. package/dist/src/components/molecules/LawGeniusInfoCard/index.js +0 -2
  42. package/dist/src/components/molecules/LawGeniusInfoCard/index.ts +0 -2
  43. package/dist/src/components/pages/HowItWorksPage/HowItWorksPage.d.ts +0 -3
  44. package/dist/src/components/pages/HowItWorksPage/HowItWorksPage.js +0 -5
  45. package/dist/src/components/pages/HowItWorksPage/HowItWorksPage.tsx +0 -26
  46. package/dist/src/components/pages/HowItWorksPage/HowItWorksPageProps.d.ts +0 -10
  47. package/dist/src/components/pages/HowItWorksPage/HowItWorksPageProps.js +0 -1
  48. package/dist/src/components/pages/HowItWorksPage/HowItWorksPageProps.ts +0 -16
  49. package/dist/src/components/pages/HowItWorksPage/index.d.ts +0 -2
  50. package/dist/src/components/pages/HowItWorksPage/index.js +0 -2
  51. package/dist/src/components/pages/HowItWorksPage/index.ts +0 -2
  52. package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.d.ts +0 -4
  53. package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.js +0 -12
  54. package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.styled.d.ts +0 -1
  55. package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.styled.js +0 -94
  56. package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.styled.ts +0 -95
  57. package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.tsx +0 -69
  58. package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSectionProps.types.d.ts +0 -15
  59. package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSectionProps.types.js +0 -1
  60. package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSectionProps.types.ts +0 -16
  61. package/dist/src/components/sections/LawGeniusCardsSection/index.d.ts +0 -2
  62. package/dist/src/components/sections/LawGeniusCardsSection/index.js +0 -1
  63. package/dist/src/components/sections/LawGeniusCardsSection/index.ts +0 -2
  64. package/dist/src/components/sections/TryNowSection/TryNowSection.d.ts +0 -3
  65. package/dist/src/components/sections/TryNowSection/TryNowSection.js +0 -6
  66. package/dist/src/components/sections/TryNowSection/TryNowSection.styled.d.ts +0 -1
  67. package/dist/src/components/sections/TryNowSection/TryNowSection.styled.js +0 -186
  68. package/dist/src/components/sections/TryNowSection/TryNowSection.styled.ts +0 -187
  69. package/dist/src/components/sections/TryNowSection/TryNowSection.tsx +0 -28
  70. package/dist/src/components/sections/TryNowSection/TryNowSectionProps.d.ts +0 -8
  71. package/dist/src/components/sections/TryNowSection/TryNowSectionProps.js +0 -1
  72. package/dist/src/components/sections/TryNowSection/TryNowSectionProps.ts +0 -9
  73. package/dist/src/components/sections/TryNowSection/index.d.ts +0 -2
  74. package/dist/src/components/sections/TryNowSection/index.js +0 -1
  75. package/dist/src/components/sections/TryNowSection/index.ts +0 -2
@@ -7,6 +7,35 @@ export const MenuItemsStyled = styled.div`
7
7
  justify-content: flex-start;
8
8
  align-items: flex-start;
9
9
 
10
+ @media (min-width: 1024px) {
11
+ gap: 2rem;
12
+ }
13
+
14
+ @media ((min-width: ${size.tab} ) and (max-width: 1024px)) {
15
+ gap: 1rem;
16
+ }
17
+
18
+ .menu-desktop-wrapper {
19
+ display: none;
20
+ }
21
+ .menu-mobile-wrapper {
22
+ display: block;
23
+ }
24
+
25
+ @media ${device.tablets} {
26
+ flex-direction: row;
27
+ align-items: center;
28
+ position: relative;
29
+ width: 100%;
30
+
31
+ .menu-desktop-wrapper {
32
+ display: block;
33
+ }
34
+ .menu-mobile-wrapper {
35
+ display: none;
36
+ }
37
+ }
38
+
10
39
  &__wrapper {
11
40
  width: 100%;
12
41
  margin-top: 1rem;
@@ -24,25 +53,11 @@ export const MenuItemsStyled = styled.div`
24
53
  }
25
54
  }
26
55
 
27
- .left-nav {
28
- position: relative;
29
- width: 100%;
30
- display: none;
31
- flex-flow: row wrap;
32
- justify-content: flex-end;
33
- }
34
-
35
56
  &__spacer {
36
57
  display: flex;
37
58
  flex: 1;
38
59
  }
39
60
 
40
- .left-nav {
41
- display: flex;
42
- align-items: center;
43
- gap: 1rem;
44
- }
45
-
46
61
  .header-phone {
47
62
  display: flex;
48
63
  align-items: center;
@@ -71,14 +86,6 @@ export const MenuItemsStyled = styled.div`
71
86
  }
72
87
  }
73
88
 
74
- @media ${device.tablets} {
75
- display: flex;
76
- align-items: center;
77
- flex-direction: row;
78
- flex-wrap: nowrap;
79
- justify-content: flex-start;
80
- }
81
-
82
89
  &.--no-products {
83
90
  justify-content: flex-end;
84
91
  align-items: center;
@@ -364,67 +371,18 @@ export const MenuItemsStyled = styled.div`
364
371
  margin-right: 1rem;
365
372
  }
366
373
 
367
- // mobile pane
368
-
369
- .navigation-pane {
370
- .navigation-pane.--is-mobile {
371
- display: flex;
372
-
373
- @media (max-width: ${size.tab}) {
374
- display: none;
375
- }
376
-
377
- .navigation-pane__user-menu {
378
- display: flex;
379
- flex-flow: row nowrap;
380
- justify-content: center;
381
- margin: 0 1rem;
382
- padding: 1.5rem 0;
383
- }
384
-
385
- .navigation-pane__ratafia {
386
- padding: 1.5rem 1.5rem 0.5rem 1.5rem;
387
-
388
- .navigation-pane__ratafia__title {
389
- display: flex;
390
- justify-content: start;
391
- align-items: center;
392
- gap: 0.25rem;
393
- }
394
- }
395
-
396
- .navigation-pane__resources {
397
- .resources__list {
398
- @media ${device['mobile']} {
399
- margin-bottom: 2rem;
400
- }
401
- }
402
- }
403
- }
404
-
405
- &__trigger {
406
- display: flex;
407
- align-content: center;
408
- flex-flow: row wrap;
409
- align-items: center;
410
- font-weight: bold;
411
- color: var(--button-secondary);
412
- padding: 4px 8px;
413
- border: 1px solid var(--neutral-neutral-3);
414
- border-radius: var(--s-border-radius);
415
- z-index: 200;
416
- //Prevent user from copying template
417
- -webkit-touch-callout: none;
418
- -moz-user-select: none;
419
- -webkit-user-select: none;
420
- -ms-user-select: none;
421
- -o-user-select: none;
422
- user-select: none;
423
-
424
- span {
425
- margin-right: 0.5rem;
426
- }
427
- }
374
+ &__trigger {
375
+ display: flex;
376
+ align-content: center;
377
+ flex-flow: row wrap;
378
+ align-items: center;
379
+ font-weight: bold;
380
+ color: var(--button-secondary);
381
+ padding: 4px 8px;
382
+ border: 1px solid var(--neutral-neutral-3);
383
+ border-radius: var(--s-border-radius);
384
+ z-index: 200;
385
+ user-select: none;
428
386
  }
429
387
 
430
388
  .header {
@@ -435,7 +393,7 @@ export const MenuItemsStyled = styled.div`
435
393
  }
436
394
  }
437
395
 
438
- .--is-open .--is-mobile .navigation-pane {
396
+ &.--is-open {
439
397
  .navigation-pane__wrapper {
440
398
  width: 100%;
441
399
  margin-top: 1rem;
@@ -446,204 +404,20 @@ export const MenuItemsStyled = styled.div`
446
404
  overflow: auto;
447
405
  height: calc(100% - 65px);
448
406
  z-index: 100;
407
+ }
449
408
 
450
- .search {
451
- padding-right: 1.5rem;
452
- padding-left: 1.5rem;
453
- }
409
+ .search {
410
+ padding-right: 1.5rem;
411
+ padding-left: 1.5rem;
454
412
  }
455
413
 
456
- &__user-menu {
414
+ .navigation-pane__user-menu {
457
415
  display: flex;
458
416
  flex-flow: row nowrap;
459
417
  justify-content: center;
460
418
  align-content: center;
461
419
  padding: 1.5rem 0;
462
420
  margin: 0 1rem;
463
-
464
- .log-in {
465
- min-width: 120px;
466
- margin-right: 0.5rem;
467
- }
468
- }
469
-
470
- &__ratafia {
471
- padding: 1.5rem 1.5rem 0.5rem 1.5rem;
472
- &__title {
473
- display: flex;
474
- justify-content: start;
475
- align-items: center;
476
- gap: 0.25rem;
477
- }
478
- }
479
-
480
- &__esignature {
481
- padding: 0.5rem 1.5rem 0.5rem 1.5rem;
482
- }
483
-
484
- &__user-name {
485
- margin-right: 1rem;
486
- font-weight: bold;
487
- text-overflow: ellipsis;
488
- overflow: hidden;
489
- white-space: nowrap;
490
- width: 8rem;
491
- color: var(--primary-main-light-5);
492
- padding: 0.5rem 1rem;
493
- border-radius: var(--s-border-radius);
494
- background-color: var(--primary-main-light-6);
495
- }
496
-
497
- &__products,
498
- &__help,
499
- &__resources {
500
- p {
501
- font-weight: bold;
502
-
503
- img {
504
- display: none;
505
- }
506
- }
507
-
508
- li {
509
- margin-top: 1rem;
510
-
511
- &:last-child {
512
- margin-bottom: 1.5rem;
513
- }
514
- }
515
- }
516
-
517
- &__help {
518
- padding: 1.5rem 0;
519
- margin: 0 1.5rem;
520
- border-top: 1px solid var(--neutral-neutral-4);
521
- }
522
-
523
- &__products__title {
524
- display: none;
525
- }
526
-
527
- .navigation-pane__resources {
528
- display: flex;
529
- flex-direction: column;
530
- align-items: flex-start;
531
- padding: 1.5rem 0;
532
- margin: 0 1.5rem 2rem 1.5rem;
533
- border-top: 1px solid var(--neutral-neutral-4);
534
- border-bottom: 1px solid var(--neutral-neutral-4);
535
- }
536
- }
537
-
538
- .--is-open {
539
- .--is-mobile {
540
- .navigation-pane {
541
- .navigation-pane__wrapper {
542
- width: 100%;
543
- margin-top: 1rem;
544
- left: 0;
545
- background: var(--others-white);
546
- position: fixed;
547
- box-shadow: var(--box-shadow-menu);
548
- overflow: auto;
549
- height: calc(100% - 65px);
550
- z-index: 100;
551
- }
552
- }
553
-
554
- .search {
555
- padding-right: 1.5rem;
556
- padding-left: 1.5rem;
557
- }
558
-
559
- .navigation-pane__user-menu {
560
- display: flex;
561
- flex-flow: row nowrap;
562
- justify-content: center;
563
- align-content: center;
564
- padding: 1.5rem 0;
565
- margin: 0 1rem;
566
-
567
- .log-in {
568
- min-width: 120px;
569
- margin-right: 0.5rem;
570
- }
571
- }
572
-
573
- .navigation-pane__ratafia {
574
- padding: 1.5rem 1.5rem 0.5rem 1.5rem;
575
-
576
- .navigation-pane__ratafia__title {
577
- display: flex;
578
- justify-content: start;
579
- align-items: center;
580
- gap: 0.25rem;
581
- }
582
- }
583
-
584
- .navigation-pane__esignature {
585
- padding: 0.5rem 1.5rem 0.5rem 1.5rem;
586
- }
587
-
588
- .navigation-pane__user-name {
589
- margin-right: 1rem;
590
- font-weight: bold;
591
- text-overflow: ellipsis;
592
- overflow: hidden;
593
- white-space: nowrap;
594
- width: 8rem;
595
- color: var(--primary-main-light-5);
596
- padding: 0.5rem 1rem;
597
- border-radius: var(--s-border-radius);
598
- background-color: var(--neutral-neutral-6);
599
- }
600
-
601
- .navigation-pane__products,
602
- .navigation-pane__help,
603
- .navigation-pane__resources {
604
- p {
605
- font-weight: bold;
606
-
607
- img {
608
- display: none;
609
- }
610
- }
611
-
612
- li {
613
- margin-top: 1rem;
614
-
615
- &:last-child {
616
- margin-bottom: 1.5rem;
617
- }
618
- }
619
- }
620
-
621
- .navigation-pane__help {
622
- padding: 1.5rem 0;
623
- margin: 0 1.5rem;
624
- border-top: 1px solid var(--neutral-neutral-4);
625
- }
626
-
627
- .navigation-pane__products__title {
628
- display: none;
629
- }
630
-
631
- .navigation-pane__resources {
632
- display: flex;
633
- flex-direction: column;
634
- align-items: flex-start;
635
- padding: 1.5rem 0 0 0;
636
- margin: 0 1.5rem 1.5rem 1.5rem;
637
- border-top: 1px solid var(--neutral-neutral-4);
638
- }
639
- }
640
- }
641
-
642
- .is-tablet {
643
- display: none;
644
-
645
- @media (min-width: ${size.tab}) and (max-width: ${size.md}) {
646
- display: flex;
647
421
  }
648
422
  }
649
423
 
@@ -679,13 +453,6 @@ export const MenuItemsStyled = styled.div`
679
453
  }
680
454
 
681
455
  .navigation-pane__user-menu {
682
- display: flex;
683
- flex-flow: row nowrap;
684
- justify-content: center;
685
- align-content: center;
686
- padding: 1.5rem 0;
687
- margin: 0 1rem;
688
-
689
456
  .log-in {
690
457
  min-width: 120px;
691
458
  margin-right: 0.5rem;
@@ -13,13 +13,12 @@ export const MenuItems: React.FC<MenuItemsProps> = ({
13
13
  setCookiePolicyFunc,
14
14
  routes,
15
15
  finalMenu,
16
- isMobile,
17
16
  configVars,
18
17
  navMenuItems,
19
18
  extraMenu
20
19
  }) => {
21
20
  return (
22
- <MenuItemsStyled className={`${isMobile ? 'navigation-pane' : 'left-nav'}`}>
21
+ <MenuItemsStyled>
23
22
  {hasProducts && (
24
23
  <div className={'navigation-pane__products'}>
25
24
  <div className={'navigation-pane__products__container'}>
@@ -27,7 +26,7 @@ export const MenuItems: React.FC<MenuItemsProps> = ({
27
26
  <img src={arrowDown} alt='arrow-down' />
28
27
  </div>
29
28
  <div className={'products__list'}>
30
- {isMobile ? (
29
+ <div className='menu-mobile-wrapper'>
31
30
  <DocumentListMenu
32
31
  routes={routes}
33
32
  seeAllLegalDocs={seeAllDocumentsText?.seeAllLegalDocs ?? ''}
@@ -36,7 +35,8 @@ export const MenuItems: React.FC<MenuItemsProps> = ({
36
35
  hasSubCategoryPage={configVars.HAS_SUBCATEGORY_PAGE}
37
36
  setCookiePolicyFunc={setCookiePolicyFunc}
38
37
  ></DocumentListMenu>
39
- ) : (
38
+ </div>
39
+ <div className='menu-desktop-wrapper'>
40
40
  <DocumentMainMenu
41
41
  seeAllTypeDocs={seeAllDocumentsText?.seeAllTypeDocs ?? ''}
42
42
  allLegalDocs={seeAllDocumentsText?.allLegalDocs ?? ''}
@@ -46,7 +46,7 @@ export const MenuItems: React.FC<MenuItemsProps> = ({
46
46
  hasSubCategoryPage={configVars.HAS_SUBCATEGORY_PAGE}
47
47
  finalMenu={finalMenu}
48
48
  ></DocumentMainMenu>
49
- )}
49
+ </div>
50
50
  </div>
51
51
  </div>
52
52
  )}
@@ -12,7 +12,6 @@ export interface MenuItemsProps {
12
12
  setCookiePolicyFunc: (url?: string, setCookiePolicyAccepted?: boolean) => void;
13
13
  routes: Routes;
14
14
  finalMenu: DocumentListMenuSectionProps[];
15
- isMobile: boolean;
16
15
  configVars: {
17
16
  TARGET_ADDRESS: string;
18
17
  ESIGNATURE_CONFIG: {
@@ -13,7 +13,6 @@ export interface MenuItemsProps {
13
13
  setCookiePolicyFunc: (url?: string, setCookiePolicyAccepted?: boolean) => void
14
14
  routes: Routes
15
15
  finalMenu: DocumentListMenuSectionProps[]
16
- isMobile: boolean
17
16
  configVars: {
18
17
  TARGET_ADDRESS: string
19
18
  ESIGNATURE_CONFIG: {
@@ -5,6 +5,6 @@ import { NavMenuStyled } from './NavMenu.styled';
5
5
  import { NavMobileContactBar } from '../../molecules/NavMobileContactBar';
6
6
  import { PhoneIcon } from '../../../../images/componentsSvg/PhoneIcon';
7
7
  import { SearchBar } from '../../../components/molecules/SearchBar/SearchBar';
8
- export const NavMenu = ({ isLeftNavHidden, isHeaderProductsHidden, isSearchBarHidden, isResourcesHidden, showHeaderPhone, toggleMenuOpen, isMenuOpen, languageSelectorProps, configVars, searchableProducts, finalMenu, userActions, menuStrings, routes, searchBarTexts, sitePhone, handleResultClick, languageSelectorConfigEnabled, isJonSnow, isMobile, triggerMenuClose, triggerMenuOpen, setCookiePolicyFunc, navMenuItems, extraMenu }) => {
9
- return (_jsxs(NavMenuStyled, { children: [_jsxs("nav", { itemScope: true, itemType: 'https://www.schema.org/SiteNavigationElement', className: `navigation-pane --is-mobile ${isHeaderProductsHidden ? '--no-products' : ''}`, children: [_jsx("div", { onClick: toggleMenuOpen, onKeyDown: toggleMenuOpen, className: 'navigation-pane__trigger sans-serif --small', children: !isMenuOpen ? triggerMenuOpen : triggerMenuClose }), isMenuOpen && (_jsxs("div", { className: 'navigation-pane__wrapper', children: [userActions, !isSearchBarHidden && (_jsx(SearchBar, { products: searchableProducts, searchBarTexts: searchBarTexts, routes: routes, handleResultClick: handleResultClick })), _jsx(MenuItems, { hasProducts: !isHeaderProductsHidden, isResourcesHidden: isResourcesHidden, seeAllDocumentsText: menuStrings, setCookiePolicyFunc: setCookiePolicyFunc, routes: routes, finalMenu: finalMenu, isMobile: isMobile, configVars: configVars, navMenuItems: navMenuItems, extraMenu: extraMenu }), !isJonSnow && _jsx(NavMobileContactBar, { phone: sitePhone })] }))] }), _jsxs("nav", { className: `navigation-pane --is-desktop ${isHeaderProductsHidden ? '--no-products' : ''}`, children: [!isLeftNavHidden && (_jsx("div", { className: 'left-nav', children: _jsx(MenuItems, { hasProducts: !isHeaderProductsHidden, isResourcesHidden: isResourcesHidden, seeAllDocumentsText: menuStrings, setCookiePolicyFunc: setCookiePolicyFunc, routes: routes, finalMenu: finalMenu, isMobile: isMobile, configVars: configVars, navMenuItems: navMenuItems, extraMenu: extraMenu }) })), _jsxs("div", { className: 'right-nav', children: [showHeaderPhone && (_jsxs("div", { className: 'header-phone', children: [_jsx(PhoneIcon, {}), _jsxs("b", { children: [sitePhone, " "] })] })), !isSearchBarHidden && (_jsx(SearchBar, { products: searchableProducts, searchBarTexts: searchBarTexts, routes: routes, handleResultClick: handleResultClick })), languageSelectorConfigEnabled && languageSelectorProps && _jsx(LanguageSelector, { ...languageSelectorProps }), userActions] })] })] }));
8
+ export const NavMenu = ({ isLeftNavHidden, isHeaderProductsHidden, isSearchBarHidden, isResourcesHidden, showHeaderPhone, toggleMenuOpen, isMenuOpen, languageSelectorProps, configVars, searchableProducts, finalMenu, userActions, menuStrings, routes, searchBarTexts, sitePhone, handleResultClick, languageSelectorConfigEnabled, isJonSnow, triggerMenuClose, triggerMenuOpen, setCookiePolicyFunc, navMenuItems, extraMenu }) => {
9
+ return (_jsxs(NavMenuStyled, { children: [_jsxs("nav", { itemScope: true, itemType: 'https://www.schema.org/SiteNavigationElement', className: `navigation-pane --is-mobile ${isHeaderProductsHidden ? '--no-products' : ''}`, children: [_jsx("div", { onClick: toggleMenuOpen, onKeyDown: toggleMenuOpen, className: 'navigation-pane__trigger sans-serif --small', children: !isMenuOpen ? triggerMenuOpen : triggerMenuClose }), isMenuOpen && (_jsxs("div", { className: 'navigation-pane__wrapper', children: [userActions, !isSearchBarHidden && (_jsx(SearchBar, { products: searchableProducts, searchBarTexts: searchBarTexts, routes: routes, handleResultClick: handleResultClick })), _jsx(MenuItems, { hasProducts: !isHeaderProductsHidden, isResourcesHidden: isResourcesHidden, seeAllDocumentsText: menuStrings, setCookiePolicyFunc: setCookiePolicyFunc, routes: routes, finalMenu: finalMenu, configVars: configVars, navMenuItems: navMenuItems, extraMenu: extraMenu }), !isJonSnow && _jsx(NavMobileContactBar, { phone: sitePhone })] }))] }), _jsxs("nav", { className: `navigation-pane --is-desktop ${isHeaderProductsHidden ? '--no-products' : ''}`, children: [!isLeftNavHidden && (_jsx("div", { className: 'left-nav', children: _jsx(MenuItems, { hasProducts: !isHeaderProductsHidden, isResourcesHidden: isResourcesHidden, seeAllDocumentsText: menuStrings, setCookiePolicyFunc: setCookiePolicyFunc, routes: routes, finalMenu: finalMenu, configVars: configVars, navMenuItems: navMenuItems, extraMenu: extraMenu }) })), _jsxs("div", { className: 'right-nav', children: [showHeaderPhone && (_jsxs("div", { className: 'header-phone', children: [_jsx(PhoneIcon, {}), _jsxs("b", { children: [sitePhone, " "] })] })), !isSearchBarHidden && (_jsx(SearchBar, { products: searchableProducts, searchBarTexts: searchBarTexts, routes: routes, handleResultClick: handleResultClick })), languageSelectorConfigEnabled && languageSelectorProps && _jsx(LanguageSelector, { ...languageSelectorProps }), userActions] })] })] }));
10
10
  };
@@ -10,6 +10,17 @@ export const NavMenuStyled = styled.nav `
10
10
  display: flex;
11
11
  flex: 1;
12
12
  }
13
+
14
+ .create-account__responsive {
15
+ @media (min-width: ${size.tab}) {
16
+ background-color: transparent;
17
+ border: 2px solid var(--button-secondary);
18
+ color: var(--button-secondary);
19
+ font-weight: 700;
20
+ }
21
+ display: block;
22
+ }
23
+
13
24
  &.--is-mobile {
14
25
  @media (min-width: ${size.tab}) {
15
26
  display: none;
@@ -27,10 +38,6 @@ export const NavMenuStyled = styled.nav `
27
38
  .left-nav {
28
39
  display: flex;
29
40
  align-items: center;
30
- @media (max-width: 1024px) {
31
- gap: 1rem;
32
- }
33
- gap: 2rem;
34
41
  }
35
42
 
36
43
  .header-phone {
@@ -11,6 +11,17 @@ export const NavMenuStyled = styled.nav`
11
11
  display: flex;
12
12
  flex: 1;
13
13
  }
14
+
15
+ .create-account__responsive {
16
+ @media (min-width: ${size.tab}) {
17
+ background-color: transparent;
18
+ border: 2px solid var(--button-secondary);
19
+ color: var(--button-secondary);
20
+ font-weight: 700;
21
+ }
22
+ display: block;
23
+ }
24
+
14
25
  &.--is-mobile {
15
26
  @media (min-width: ${size.tab}) {
16
27
  display: none;
@@ -28,10 +39,6 @@ export const NavMenuStyled = styled.nav`
28
39
  .left-nav {
29
40
  display: flex;
30
41
  align-items: center;
31
- @media (max-width: 1024px) {
32
- gap: 1rem;
33
- }
34
- gap: 2rem;
35
42
  }
36
43
 
37
44
  .header-phone {
@@ -29,7 +29,6 @@ export const NavMenu: React.FC<NavMenuProps> = ({
29
29
  handleResultClick,
30
30
  languageSelectorConfigEnabled,
31
31
  isJonSnow,
32
- isMobile,
33
32
  triggerMenuClose,
34
33
  triggerMenuOpen,
35
34
  setCookiePolicyFunc,
@@ -68,7 +67,6 @@ export const NavMenu: React.FC<NavMenuProps> = ({
68
67
  setCookiePolicyFunc={setCookiePolicyFunc}
69
68
  routes={routes}
70
69
  finalMenu={finalMenu}
71
- isMobile={isMobile}
72
70
  configVars={configVars}
73
71
  navMenuItems={navMenuItems}
74
72
  extraMenu={extraMenu}
@@ -87,7 +85,6 @@ export const NavMenu: React.FC<NavMenuProps> = ({
87
85
  setCookiePolicyFunc={setCookiePolicyFunc}
88
86
  routes={routes}
89
87
  finalMenu={finalMenu}
90
- isMobile={isMobile}
91
88
  configVars={configVars}
92
89
  navMenuItems={navMenuItems}
93
90
  extraMenu={extraMenu}
@@ -42,7 +42,6 @@ export interface NavMenuProps {
42
42
  isMenuOpen: boolean;
43
43
  languageSelectorConfigEnabled: boolean;
44
44
  isJonSnow: boolean;
45
- isMobile: boolean;
46
45
  triggerMenuOpen: React.ReactNode;
47
46
  triggerMenuClose: React.ReactNode;
48
47
  toggleMenuOpen: () => void;
@@ -44,7 +44,6 @@ export interface NavMenuProps {
44
44
  isMenuOpen: boolean
45
45
  languageSelectorConfigEnabled: boolean
46
46
  isJonSnow: boolean
47
- isMobile: boolean
48
47
  triggerMenuOpen: React.ReactNode
49
48
  triggerMenuClose: React.ReactNode
50
49
  toggleMenuOpen: () => void
@@ -7,9 +7,7 @@ const TryOurFreeLegalBlogsContent = ({ title, image, children, type = TryOurFree
7
7
  const classTry = classNames({
8
8
  'try-our-free-legal-blogs-section-content': true,
9
9
  'try-our-free-legal-blogs-section-content--our-mission': TryOurFreeLegalBlogsContentType.ourMission === type,
10
- 'try-our-free-legal-blogs-section-content--our-mission-first-image': TryOurFreeLegalBlogsContentType.ourMissionFirstImage === type,
11
- 'try-our-free-legal-blogs-section-content--how-it-works': TryOurFreeLegalBlogsContentType.howItWorks === type,
12
- 'try-our-free-legal-blogs-section-content--how-it-works-first-image': TryOurFreeLegalBlogsContentType.howItWorksFirstImage === type
10
+ 'try-our-free-legal-blogs-section-content--our-mission-first-image': TryOurFreeLegalBlogsContentType.ourMissionFirstImage === type
13
11
  });
14
12
  return (_jsxs(TryOurFreeLegalBlogsContentStyled, { className: classTry, children: [_jsxs("div", { className: 'try-our-free-legal-blogs-section__texts', children: [_jsx("h2", { className: 'try-our-free-legal-blogs-section__texts__title', children: title }), _jsx(RichTextInner, { customClass: 'try-our-free-legal-blogs-section__texts__body', children: children })] }), _jsx("div", { className: 'try-our-free-legal-blogs-section__image', children: image })] }));
15
13
  };
@@ -7,8 +7,7 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div `
7
7
  flex-direction: row;
8
8
  }
9
9
 
10
- &.try-our-free-legal-blogs-section-content--our-mission,
11
- &.try-our-free-legal-blogs-section-content--how-it-works {
10
+ &.try-our-free-legal-blogs-section-content--our-mission {
12
11
  margin-top: 1.5rem;
13
12
  margin-bottom: 1.5rem;
14
13
  align-items: center;
@@ -31,8 +30,7 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div `
31
30
  }
32
31
  }
33
32
 
34
- &.try-our-free-legal-blogs-section-content--our-mission-first-image,
35
- &.try-our-free-legal-blogs-section-content--how-it-works-first-image {
33
+ &.try-our-free-legal-blogs-section-content--our-mission-first-image {
36
34
  margin-top: 1.5rem;
37
35
  margin-bottom: 1.5rem;
38
36
  align-items: center;
@@ -8,8 +8,7 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div`
8
8
  flex-direction: row;
9
9
  }
10
10
 
11
- &.try-our-free-legal-blogs-section-content--our-mission,
12
- &.try-our-free-legal-blogs-section-content--how-it-works {
11
+ &.try-our-free-legal-blogs-section-content--our-mission {
13
12
  margin-top: 1.5rem;
14
13
  margin-bottom: 1.5rem;
15
14
  align-items: center;
@@ -32,8 +31,7 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div`
32
31
  }
33
32
  }
34
33
 
35
- &.try-our-free-legal-blogs-section-content--our-mission-first-image,
36
- &.try-our-free-legal-blogs-section-content--how-it-works-first-image {
34
+ &.try-our-free-legal-blogs-section-content--our-mission-first-image {
37
35
  margin-top: 1.5rem;
38
36
  margin-bottom: 1.5rem;
39
37
  align-items: center;
@@ -18,10 +18,7 @@ const TryOurFreeLegalBlogsContent: FC<TryOurFreeLegalBlogsContentProps> = ({
18
18
  'try-our-free-legal-blogs-section-content': true,
19
19
  'try-our-free-legal-blogs-section-content--our-mission': TryOurFreeLegalBlogsContentType.ourMission === type,
20
20
  'try-our-free-legal-blogs-section-content--our-mission-first-image':
21
- TryOurFreeLegalBlogsContentType.ourMissionFirstImage === type,
22
- 'try-our-free-legal-blogs-section-content--how-it-works': TryOurFreeLegalBlogsContentType.howItWorks === type,
23
- 'try-our-free-legal-blogs-section-content--how-it-works-first-image':
24
- TryOurFreeLegalBlogsContentType.howItWorksFirstImage === type
21
+ TryOurFreeLegalBlogsContentType.ourMissionFirstImage === type
25
22
  })
26
23
  return (
27
24
  <TryOurFreeLegalBlogsContentStyled className={classTry}>
@@ -1,9 +1,7 @@
1
1
  export declare enum TryOurFreeLegalBlogsContentType {
2
2
  default = "Default",
3
3
  ourMission = "Our Mission",
4
- ourMissionFirstImage = "Our Mission First Image",
5
- howItWorks = "How It Works",
6
- howItWorksFirstImage = "How It Works First Image"
4
+ ourMissionFirstImage = "Our Mission First Image"
7
5
  }
8
6
  export interface TryOurFreeLegalBlogsContentProps {
9
7
  title: string;
@@ -3,6 +3,4 @@ export var TryOurFreeLegalBlogsContentType;
3
3
  TryOurFreeLegalBlogsContentType["default"] = "Default";
4
4
  TryOurFreeLegalBlogsContentType["ourMission"] = "Our Mission";
5
5
  TryOurFreeLegalBlogsContentType["ourMissionFirstImage"] = "Our Mission First Image";
6
- TryOurFreeLegalBlogsContentType["howItWorks"] = "How It Works";
7
- TryOurFreeLegalBlogsContentType["howItWorksFirstImage"] = "How It Works First Image";
8
6
  })(TryOurFreeLegalBlogsContentType || (TryOurFreeLegalBlogsContentType = {}));
@@ -1,9 +1,7 @@
1
1
  export enum TryOurFreeLegalBlogsContentType {
2
2
  default = 'Default',
3
3
  ourMission = 'Our Mission',
4
- ourMissionFirstImage = 'Our Mission First Image',
5
- howItWorks = 'How It Works',
6
- howItWorksFirstImage = 'How It Works First Image'
4
+ ourMissionFirstImage = 'Our Mission First Image'
7
5
  }
8
6
 
9
7
  export interface TryOurFreeLegalBlogsContentProps {
@@ -27,7 +27,6 @@ export interface HeaderProps {
27
27
  siteName: string;
28
28
  };
29
29
  topBarProps: {
30
- isMobile?: boolean;
31
30
  hide?: boolean;
32
31
  isVisible?: boolean;
33
32
  children?: React.ReactNode;
@@ -56,7 +55,6 @@ export interface HeaderProps {
56
55
  isMenuOpen: boolean;
57
56
  languageSelectorConfigEnabled: boolean;
58
57
  isJonSnow: boolean;
59
- isMobile: boolean;
60
58
  triggerMenuOpen: React.ReactNode;
61
59
  triggerMenuClose: React.ReactNode;
62
60
  toggleMenuOpen: () => void;