@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
@@ -4,7 +4,7 @@ import { DocumentMainMenu } from '../../../components/organisms/DocumentMainMenu
4
4
  import { MenuItemsStyled } from './MenuItems.styled';
5
5
  import { RatafiaLandingIcon } from '../../atoms/RatafiaLandingIcon';
6
6
  import arrowDown from '../../../../images/svg/arrow-down.svg';
7
- export const MenuItems = ({ hasProducts, seeAllDocumentsText, setCookiePolicyFunc, routes, finalMenu, isMobile, configVars, navMenuItems, extraMenu }) => {
8
- return (_jsxs(MenuItemsStyled, { className: `${isMobile ? 'navigation-pane' : 'left-nav'}`, children: [hasProducts && (_jsxs("div", { className: 'navigation-pane__products', children: [_jsxs("div", { className: 'navigation-pane__products__container', children: [_jsx("p", { className: 'navigation-pane__products__title', children: 'Documents' }), _jsx("img", { src: arrowDown, alt: 'arrow-down' })] }), _jsx("div", { className: 'products__list', children: isMobile ? (_jsx(DocumentListMenu, { routes: routes, seeAllLegalDocs: seeAllDocumentsText?.seeAllLegalDocs ?? '', seeAllTypeDocs: seeAllDocumentsText?.seeAllTypeDocs ?? '', finalMenu: finalMenu, hasSubCategoryPage: configVars.HAS_SUBCATEGORY_PAGE, setCookiePolicyFunc: setCookiePolicyFunc })) : (_jsx(DocumentMainMenu, { seeAllTypeDocs: seeAllDocumentsText?.seeAllTypeDocs ?? '', allLegalDocs: seeAllDocumentsText?.allLegalDocs ?? '', allTypeDocs: seeAllDocumentsText?.allTypeDocs ?? '', setCookiePolicyFunc: setCookiePolicyFunc, routes: routes, hasSubCategoryPage: configVars.HAS_SUBCATEGORY_PAGE, finalMenu: finalMenu })) })] })), !!navMenuItems &&
7
+ export const MenuItems = ({ hasProducts, seeAllDocumentsText, setCookiePolicyFunc, routes, finalMenu, configVars, navMenuItems, extraMenu }) => {
8
+ return (_jsxs(MenuItemsStyled, { children: [hasProducts && (_jsxs("div", { className: 'navigation-pane__products', children: [_jsxs("div", { className: 'navigation-pane__products__container', children: [_jsx("p", { className: 'navigation-pane__products__title', children: 'Documents' }), _jsx("img", { src: arrowDown, alt: 'arrow-down' })] }), _jsxs("div", { className: 'products__list', children: [_jsx("div", { className: 'menu-mobile-wrapper', children: _jsx(DocumentListMenu, { routes: routes, seeAllLegalDocs: seeAllDocumentsText?.seeAllLegalDocs ?? '', seeAllTypeDocs: seeAllDocumentsText?.seeAllTypeDocs ?? '', finalMenu: finalMenu, hasSubCategoryPage: configVars.HAS_SUBCATEGORY_PAGE, setCookiePolicyFunc: setCookiePolicyFunc }) }), _jsx("div", { className: 'menu-desktop-wrapper', children: _jsx(DocumentMainMenu, { seeAllTypeDocs: seeAllDocumentsText?.seeAllTypeDocs ?? '', allLegalDocs: seeAllDocumentsText?.allLegalDocs ?? '', allTypeDocs: seeAllDocumentsText?.allTypeDocs ?? '', setCookiePolicyFunc: setCookiePolicyFunc, routes: routes, hasSubCategoryPage: configVars.HAS_SUBCATEGORY_PAGE, finalMenu: finalMenu }) })] })] })), !!navMenuItems &&
9
9
  navMenuItems.map((item) => (_jsx("div", { className: `navigation-pane__link`, children: _jsxs("a", { className: `navigation-pane__link__title`, title: item.title, "data-qa": item.dataQa, href: item.href, children: [_jsx("p", { children: item.label }), item.label === 'LawGenius' && _jsx(RatafiaLandingIcon, {})] }) }, item.title))), !!extraMenu && extraMenu?.items?.length > 0 && (_jsxs("div", { className: 'navigation-pane__resources', children: [_jsxs("div", { className: 'navigation-pane__resources__container', children: [_jsx("p", { className: 'navigation-pane__resources__title', children: extraMenu.title }), _jsx("img", { src: arrowDown, alt: 'arrow-down' })] }), _jsx("ul", { className: 'resources__list', children: extraMenu.items.map((item) => (_jsx("li", { className: 'menu-items-li', children: _jsx("a", { title: item.title, "data-qa": item.dataQa, href: item.href, children: item.label }) }, item.title))) })] }))] }));
10
10
  };
@@ -6,6 +6,35 @@ export const MenuItemsStyled = styled.div `
6
6
  justify-content: flex-start;
7
7
  align-items: flex-start;
8
8
 
9
+ @media (min-width: 1024px) {
10
+ gap: 2rem;
11
+ }
12
+
13
+ @media ((min-width: ${size.tab} ) and (max-width: 1024px)) {
14
+ gap: 1rem;
15
+ }
16
+
17
+ .menu-desktop-wrapper {
18
+ display: none;
19
+ }
20
+ .menu-mobile-wrapper {
21
+ display: block;
22
+ }
23
+
24
+ @media ${device.tablets} {
25
+ flex-direction: row;
26
+ align-items: center;
27
+ position: relative;
28
+ width: 100%;
29
+
30
+ .menu-desktop-wrapper {
31
+ display: block;
32
+ }
33
+ .menu-mobile-wrapper {
34
+ display: none;
35
+ }
36
+ }
37
+
9
38
  &__wrapper {
10
39
  width: 100%;
11
40
  margin-top: 1rem;
@@ -23,25 +52,11 @@ export const MenuItemsStyled = styled.div `
23
52
  }
24
53
  }
25
54
 
26
- .left-nav {
27
- position: relative;
28
- width: 100%;
29
- display: none;
30
- flex-flow: row wrap;
31
- justify-content: flex-end;
32
- }
33
-
34
55
  &__spacer {
35
56
  display: flex;
36
57
  flex: 1;
37
58
  }
38
59
 
39
- .left-nav {
40
- display: flex;
41
- align-items: center;
42
- gap: 1rem;
43
- }
44
-
45
60
  .header-phone {
46
61
  display: flex;
47
62
  align-items: center;
@@ -70,14 +85,6 @@ export const MenuItemsStyled = styled.div `
70
85
  }
71
86
  }
72
87
 
73
- @media ${device.tablets} {
74
- display: flex;
75
- align-items: center;
76
- flex-direction: row;
77
- flex-wrap: nowrap;
78
- justify-content: flex-start;
79
- }
80
-
81
88
  &.--no-products {
82
89
  justify-content: flex-end;
83
90
  align-items: center;
@@ -363,67 +370,18 @@ export const MenuItemsStyled = styled.div `
363
370
  margin-right: 1rem;
364
371
  }
365
372
 
366
- // mobile pane
367
-
368
- .navigation-pane {
369
- .navigation-pane.--is-mobile {
370
- display: flex;
371
-
372
- @media (max-width: ${size.tab}) {
373
- display: none;
374
- }
375
-
376
- .navigation-pane__user-menu {
377
- display: flex;
378
- flex-flow: row nowrap;
379
- justify-content: center;
380
- margin: 0 1rem;
381
- padding: 1.5rem 0;
382
- }
383
-
384
- .navigation-pane__ratafia {
385
- padding: 1.5rem 1.5rem 0.5rem 1.5rem;
386
-
387
- .navigation-pane__ratafia__title {
388
- display: flex;
389
- justify-content: start;
390
- align-items: center;
391
- gap: 0.25rem;
392
- }
393
- }
394
-
395
- .navigation-pane__resources {
396
- .resources__list {
397
- @media ${device['mobile']} {
398
- margin-bottom: 2rem;
399
- }
400
- }
401
- }
402
- }
403
-
404
- &__trigger {
405
- display: flex;
406
- align-content: center;
407
- flex-flow: row wrap;
408
- align-items: center;
409
- font-weight: bold;
410
- color: var(--button-secondary);
411
- padding: 4px 8px;
412
- border: 1px solid var(--neutral-neutral-3);
413
- border-radius: var(--s-border-radius);
414
- z-index: 200;
415
- //Prevent user from copying template
416
- -webkit-touch-callout: none;
417
- -moz-user-select: none;
418
- -webkit-user-select: none;
419
- -ms-user-select: none;
420
- -o-user-select: none;
421
- user-select: none;
422
-
423
- span {
424
- margin-right: 0.5rem;
425
- }
426
- }
373
+ &__trigger {
374
+ display: flex;
375
+ align-content: center;
376
+ flex-flow: row wrap;
377
+ align-items: center;
378
+ font-weight: bold;
379
+ color: var(--button-secondary);
380
+ padding: 4px 8px;
381
+ border: 1px solid var(--neutral-neutral-3);
382
+ border-radius: var(--s-border-radius);
383
+ z-index: 200;
384
+ user-select: none;
427
385
  }
428
386
 
429
387
  .header {
@@ -434,7 +392,7 @@ export const MenuItemsStyled = styled.div `
434
392
  }
435
393
  }
436
394
 
437
- .--is-open .--is-mobile .navigation-pane {
395
+ &.--is-open {
438
396
  .navigation-pane__wrapper {
439
397
  width: 100%;
440
398
  margin-top: 1rem;
@@ -445,204 +403,20 @@ export const MenuItemsStyled = styled.div `
445
403
  overflow: auto;
446
404
  height: calc(100% - 65px);
447
405
  z-index: 100;
406
+ }
448
407
 
449
- .search {
450
- padding-right: 1.5rem;
451
- padding-left: 1.5rem;
452
- }
408
+ .search {
409
+ padding-right: 1.5rem;
410
+ padding-left: 1.5rem;
453
411
  }
454
412
 
455
- &__user-menu {
413
+ .navigation-pane__user-menu {
456
414
  display: flex;
457
415
  flex-flow: row nowrap;
458
416
  justify-content: center;
459
417
  align-content: center;
460
418
  padding: 1.5rem 0;
461
419
  margin: 0 1rem;
462
-
463
- .log-in {
464
- min-width: 120px;
465
- margin-right: 0.5rem;
466
- }
467
- }
468
-
469
- &__ratafia {
470
- padding: 1.5rem 1.5rem 0.5rem 1.5rem;
471
- &__title {
472
- display: flex;
473
- justify-content: start;
474
- align-items: center;
475
- gap: 0.25rem;
476
- }
477
- }
478
-
479
- &__esignature {
480
- padding: 0.5rem 1.5rem 0.5rem 1.5rem;
481
- }
482
-
483
- &__user-name {
484
- margin-right: 1rem;
485
- font-weight: bold;
486
- text-overflow: ellipsis;
487
- overflow: hidden;
488
- white-space: nowrap;
489
- width: 8rem;
490
- color: var(--primary-main-light-5);
491
- padding: 0.5rem 1rem;
492
- border-radius: var(--s-border-radius);
493
- background-color: var(--primary-main-light-6);
494
- }
495
-
496
- &__products,
497
- &__help,
498
- &__resources {
499
- p {
500
- font-weight: bold;
501
-
502
- img {
503
- display: none;
504
- }
505
- }
506
-
507
- li {
508
- margin-top: 1rem;
509
-
510
- &:last-child {
511
- margin-bottom: 1.5rem;
512
- }
513
- }
514
- }
515
-
516
- &__help {
517
- padding: 1.5rem 0;
518
- margin: 0 1.5rem;
519
- border-top: 1px solid var(--neutral-neutral-4);
520
- }
521
-
522
- &__products__title {
523
- display: none;
524
- }
525
-
526
- .navigation-pane__resources {
527
- display: flex;
528
- flex-direction: column;
529
- align-items: flex-start;
530
- padding: 1.5rem 0;
531
- margin: 0 1.5rem 2rem 1.5rem;
532
- border-top: 1px solid var(--neutral-neutral-4);
533
- border-bottom: 1px solid var(--neutral-neutral-4);
534
- }
535
- }
536
-
537
- .--is-open {
538
- .--is-mobile {
539
- .navigation-pane {
540
- .navigation-pane__wrapper {
541
- width: 100%;
542
- margin-top: 1rem;
543
- left: 0;
544
- background: var(--others-white);
545
- position: fixed;
546
- box-shadow: var(--box-shadow-menu);
547
- overflow: auto;
548
- height: calc(100% - 65px);
549
- z-index: 100;
550
- }
551
- }
552
-
553
- .search {
554
- padding-right: 1.5rem;
555
- padding-left: 1.5rem;
556
- }
557
-
558
- .navigation-pane__user-menu {
559
- display: flex;
560
- flex-flow: row nowrap;
561
- justify-content: center;
562
- align-content: center;
563
- padding: 1.5rem 0;
564
- margin: 0 1rem;
565
-
566
- .log-in {
567
- min-width: 120px;
568
- margin-right: 0.5rem;
569
- }
570
- }
571
-
572
- .navigation-pane__ratafia {
573
- padding: 1.5rem 1.5rem 0.5rem 1.5rem;
574
-
575
- .navigation-pane__ratafia__title {
576
- display: flex;
577
- justify-content: start;
578
- align-items: center;
579
- gap: 0.25rem;
580
- }
581
- }
582
-
583
- .navigation-pane__esignature {
584
- padding: 0.5rem 1.5rem 0.5rem 1.5rem;
585
- }
586
-
587
- .navigation-pane__user-name {
588
- margin-right: 1rem;
589
- font-weight: bold;
590
- text-overflow: ellipsis;
591
- overflow: hidden;
592
- white-space: nowrap;
593
- width: 8rem;
594
- color: var(--primary-main-light-5);
595
- padding: 0.5rem 1rem;
596
- border-radius: var(--s-border-radius);
597
- background-color: var(--neutral-neutral-6);
598
- }
599
-
600
- .navigation-pane__products,
601
- .navigation-pane__help,
602
- .navigation-pane__resources {
603
- p {
604
- font-weight: bold;
605
-
606
- img {
607
- display: none;
608
- }
609
- }
610
-
611
- li {
612
- margin-top: 1rem;
613
-
614
- &:last-child {
615
- margin-bottom: 1.5rem;
616
- }
617
- }
618
- }
619
-
620
- .navigation-pane__help {
621
- padding: 1.5rem 0;
622
- margin: 0 1.5rem;
623
- border-top: 1px solid var(--neutral-neutral-4);
624
- }
625
-
626
- .navigation-pane__products__title {
627
- display: none;
628
- }
629
-
630
- .navigation-pane__resources {
631
- display: flex;
632
- flex-direction: column;
633
- align-items: flex-start;
634
- padding: 1.5rem 0 0 0;
635
- margin: 0 1.5rem 1.5rem 1.5rem;
636
- border-top: 1px solid var(--neutral-neutral-4);
637
- }
638
- }
639
- }
640
-
641
- .is-tablet {
642
- display: none;
643
-
644
- @media (min-width: ${size.tab}) and (max-width: ${size.md}) {
645
- display: flex;
646
420
  }
647
421
  }
648
422
 
@@ -675,13 +449,6 @@ export const MenuItemsStyled = styled.div `
675
449
  }
676
450
 
677
451
  .navigation-pane__user-menu {
678
- display: flex;
679
- flex-flow: row nowrap;
680
- justify-content: center;
681
- align-content: center;
682
- padding: 1.5rem 0;
683
- margin: 0 1rem;
684
-
685
452
  .log-in {
686
453
  min-width: 120px;
687
454
  margin-right: 0.5rem;