@npm_leadtech/legal-lib-components 7.27.1 → 7.27.2
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/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.d.ts +3 -0
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.js +5 -0
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.styled.d.ts +1 -0
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.styled.js +50 -0
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.styled.ts +51 -0
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCard.tsx +20 -0
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCardProps.d.ts +5 -0
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCardProps.js +1 -0
- package/dist/src/components/molecules/LawGeniusInfoCard/LawGeniusInfoCardProps.ts +5 -0
- package/dist/src/components/molecules/LawGeniusInfoCard/index.d.ts +2 -0
- package/dist/src/components/molecules/LawGeniusInfoCard/index.js +2 -0
- package/dist/src/components/molecules/LawGeniusInfoCard/index.ts +2 -0
- package/dist/src/components/organisms/MenuItems/MenuItems.js +2 -2
- package/dist/src/components/organisms/MenuItems/MenuItems.styled.js +280 -47
- package/dist/src/components/organisms/MenuItems/MenuItems.styled.ts +280 -47
- package/dist/src/components/organisms/MenuItems/MenuItems.tsx +5 -5
- package/dist/src/components/organisms/MenuItems/MenuItemsProps.types.d.ts +1 -0
- package/dist/src/components/organisms/MenuItems/MenuItemsProps.types.ts +1 -0
- package/dist/src/components/organisms/NavMenu/NavMenu.js +2 -2
- package/dist/src/components/organisms/NavMenu/NavMenu.styled.js +4 -15
- package/dist/src/components/organisms/NavMenu/NavMenu.styled.ts +4 -15
- package/dist/src/components/organisms/NavMenu/NavMenu.tsx +3 -0
- package/dist/src/components/organisms/NavMenu/NavMenuProps.types.d.ts +1 -0
- package/dist/src/components/organisms/NavMenu/NavMenuProps.types.ts +1 -0
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.js +3 -1
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.js +4 -2
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.styled.ts +4 -2
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.tsx +4 -1
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.d.ts +3 -1
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.js +2 -0
- package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.ts +3 -1
- package/dist/src/components/pages/HowItWorksPage/HowItWorksPage.d.ts +3 -0
- package/dist/src/components/pages/HowItWorksPage/HowItWorksPage.js +5 -0
- package/dist/src/components/pages/HowItWorksPage/HowItWorksPage.tsx +26 -0
- package/dist/src/components/pages/HowItWorksPage/HowItWorksPageProps.d.ts +10 -0
- package/dist/src/components/pages/HowItWorksPage/HowItWorksPageProps.js +1 -0
- package/dist/src/components/pages/HowItWorksPage/HowItWorksPageProps.ts +16 -0
- package/dist/src/components/pages/HowItWorksPage/index.d.ts +2 -0
- package/dist/src/components/pages/HowItWorksPage/index.js +2 -0
- package/dist/src/components/pages/HowItWorksPage/index.ts +2 -0
- package/dist/src/components/sections/Header/HeaderProps.types.d.ts +2 -0
- package/dist/src/components/sections/Header/HeaderProps.types.ts +2 -0
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.d.ts +4 -0
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.js +12 -0
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.styled.d.ts +1 -0
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.styled.js +94 -0
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.styled.ts +95 -0
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSection.tsx +69 -0
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSectionProps.types.d.ts +15 -0
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSectionProps.types.js +1 -0
- package/dist/src/components/sections/LawGeniusCardsSection/LawGeniusCardsSectionProps.types.ts +16 -0
- package/dist/src/components/sections/LawGeniusCardsSection/index.d.ts +2 -0
- package/dist/src/components/sections/LawGeniusCardsSection/index.js +1 -0
- package/dist/src/components/sections/LawGeniusCardsSection/index.ts +2 -0
- package/dist/src/components/sections/TryNowSection/TryNowSection.d.ts +3 -0
- package/dist/src/components/sections/TryNowSection/TryNowSection.js +6 -0
- package/dist/src/components/sections/TryNowSection/TryNowSection.styled.d.ts +1 -0
- package/dist/src/components/sections/TryNowSection/TryNowSection.styled.js +186 -0
- package/dist/src/components/sections/TryNowSection/TryNowSection.styled.ts +187 -0
- package/dist/src/components/sections/TryNowSection/TryNowSection.tsx +28 -0
- package/dist/src/components/sections/TryNowSection/TryNowSectionProps.d.ts +8 -0
- package/dist/src/components/sections/TryNowSection/TryNowSectionProps.js +1 -0
- package/dist/src/components/sections/TryNowSection/TryNowSectionProps.ts +9 -0
- package/dist/src/components/sections/TryNowSection/index.d.ts +2 -0
- package/dist/src/components/sections/TryNowSection/index.js +1 -0
- package/dist/src/components/sections/TryNowSection/index.ts +2 -0
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.js +9 -1
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.styled.js +4 -0
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.styled.ts +4 -0
- package/dist/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSection.tsx +11 -1
- package/dist/src/components/sections/index.d.ts +3 -0
- package/dist/src/components/sections/index.js +3 -0
- package/dist/src/components/sections/index.ts +3 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -1
|
@@ -7,35 +7,6 @@ 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
|
-
|
|
39
10
|
&__wrapper {
|
|
40
11
|
width: 100%;
|
|
41
12
|
margin-top: 1rem;
|
|
@@ -53,11 +24,25 @@ export const MenuItemsStyled = styled.div`
|
|
|
53
24
|
}
|
|
54
25
|
}
|
|
55
26
|
|
|
27
|
+
.left-nav {
|
|
28
|
+
position: relative;
|
|
29
|
+
width: 100%;
|
|
30
|
+
display: none;
|
|
31
|
+
flex-flow: row wrap;
|
|
32
|
+
justify-content: flex-end;
|
|
33
|
+
}
|
|
34
|
+
|
|
56
35
|
&__spacer {
|
|
57
36
|
display: flex;
|
|
58
37
|
flex: 1;
|
|
59
38
|
}
|
|
60
39
|
|
|
40
|
+
.left-nav {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
gap: 1rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
61
46
|
.header-phone {
|
|
62
47
|
display: flex;
|
|
63
48
|
align-items: center;
|
|
@@ -86,6 +71,14 @@ export const MenuItemsStyled = styled.div`
|
|
|
86
71
|
}
|
|
87
72
|
}
|
|
88
73
|
|
|
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
|
+
|
|
89
82
|
&.--no-products {
|
|
90
83
|
justify-content: flex-end;
|
|
91
84
|
align-items: center;
|
|
@@ -371,18 +364,67 @@ export const MenuItemsStyled = styled.div`
|
|
|
371
364
|
margin-right: 1rem;
|
|
372
365
|
}
|
|
373
366
|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
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
|
+
}
|
|
386
428
|
}
|
|
387
429
|
|
|
388
430
|
.header {
|
|
@@ -393,7 +435,7 @@ export const MenuItemsStyled = styled.div`
|
|
|
393
435
|
}
|
|
394
436
|
}
|
|
395
437
|
|
|
396
|
-
|
|
438
|
+
.--is-open .--is-mobile .navigation-pane {
|
|
397
439
|
.navigation-pane__wrapper {
|
|
398
440
|
width: 100%;
|
|
399
441
|
margin-top: 1rem;
|
|
@@ -404,20 +446,204 @@ export const MenuItemsStyled = styled.div`
|
|
|
404
446
|
overflow: auto;
|
|
405
447
|
height: calc(100% - 65px);
|
|
406
448
|
z-index: 100;
|
|
407
|
-
}
|
|
408
449
|
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
450
|
+
.search {
|
|
451
|
+
padding-right: 1.5rem;
|
|
452
|
+
padding-left: 1.5rem;
|
|
453
|
+
}
|
|
412
454
|
}
|
|
413
455
|
|
|
414
|
-
|
|
456
|
+
&__user-menu {
|
|
415
457
|
display: flex;
|
|
416
458
|
flex-flow: row nowrap;
|
|
417
459
|
justify-content: center;
|
|
418
460
|
align-content: center;
|
|
419
461
|
padding: 1.5rem 0;
|
|
420
462
|
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;
|
|
421
647
|
}
|
|
422
648
|
}
|
|
423
649
|
|
|
@@ -453,6 +679,13 @@ export const MenuItemsStyled = styled.div`
|
|
|
453
679
|
}
|
|
454
680
|
|
|
455
681
|
.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
|
+
|
|
456
689
|
.log-in {
|
|
457
690
|
min-width: 120px;
|
|
458
691
|
margin-right: 0.5rem;
|
|
@@ -13,12 +13,13 @@ export const MenuItems: React.FC<MenuItemsProps> = ({
|
|
|
13
13
|
setCookiePolicyFunc,
|
|
14
14
|
routes,
|
|
15
15
|
finalMenu,
|
|
16
|
+
isMobile,
|
|
16
17
|
configVars,
|
|
17
18
|
navMenuItems,
|
|
18
19
|
extraMenu
|
|
19
20
|
}) => {
|
|
20
21
|
return (
|
|
21
|
-
<MenuItemsStyled>
|
|
22
|
+
<MenuItemsStyled className={`${isMobile ? 'navigation-pane' : 'left-nav'}`}>
|
|
22
23
|
{hasProducts && (
|
|
23
24
|
<div className={'navigation-pane__products'}>
|
|
24
25
|
<div className={'navigation-pane__products__container'}>
|
|
@@ -26,7 +27,7 @@ export const MenuItems: React.FC<MenuItemsProps> = ({
|
|
|
26
27
|
<img src={arrowDown} alt='arrow-down' />
|
|
27
28
|
</div>
|
|
28
29
|
<div className={'products__list'}>
|
|
29
|
-
|
|
30
|
+
{isMobile ? (
|
|
30
31
|
<DocumentListMenu
|
|
31
32
|
routes={routes}
|
|
32
33
|
seeAllLegalDocs={seeAllDocumentsText?.seeAllLegalDocs ?? ''}
|
|
@@ -35,8 +36,7 @@ export const MenuItems: React.FC<MenuItemsProps> = ({
|
|
|
35
36
|
hasSubCategoryPage={configVars.HAS_SUBCATEGORY_PAGE}
|
|
36
37
|
setCookiePolicyFunc={setCookiePolicyFunc}
|
|
37
38
|
></DocumentListMenu>
|
|
38
|
-
|
|
39
|
-
<div className='menu-desktop-wrapper'>
|
|
39
|
+
) : (
|
|
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
|
+
)}
|
|
50
50
|
</div>
|
|
51
51
|
</div>
|
|
52
52
|
)}
|
|
@@ -12,6 +12,7 @@ export interface MenuItemsProps {
|
|
|
12
12
|
setCookiePolicyFunc: (url?: string, setCookiePolicyAccepted?: boolean) => void;
|
|
13
13
|
routes: Routes;
|
|
14
14
|
finalMenu: DocumentListMenuSectionProps[];
|
|
15
|
+
isMobile: boolean;
|
|
15
16
|
configVars: {
|
|
16
17
|
TARGET_ADDRESS: string;
|
|
17
18
|
ESIGNATURE_CONFIG: {
|
|
@@ -13,6 +13,7 @@ export interface MenuItemsProps {
|
|
|
13
13
|
setCookiePolicyFunc: (url?: string, setCookiePolicyAccepted?: boolean) => void
|
|
14
14
|
routes: Routes
|
|
15
15
|
finalMenu: DocumentListMenuSectionProps[]
|
|
16
|
+
isMobile: boolean
|
|
16
17
|
configVars: {
|
|
17
18
|
TARGET_ADDRESS: string
|
|
18
19
|
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, 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] })] })] }));
|
|
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] })] })] }));
|
|
10
10
|
};
|
|
@@ -10,21 +10,6 @@ export const NavMenuStyled = styled.nav `
|
|
|
10
10
|
display: flex;
|
|
11
11
|
flex: 1;
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
.create-account__mobile {
|
|
15
|
-
@media (min-width: ${size.tab}) {
|
|
16
|
-
display: none;
|
|
17
|
-
}
|
|
18
|
-
display: block;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.create-account__desktop {
|
|
22
|
-
@media (max-width: ${size.tab}) {
|
|
23
|
-
display: none;
|
|
24
|
-
}
|
|
25
|
-
display: block;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
13
|
&.--is-mobile {
|
|
29
14
|
@media (min-width: ${size.tab}) {
|
|
30
15
|
display: none;
|
|
@@ -42,6 +27,10 @@ export const NavMenuStyled = styled.nav `
|
|
|
42
27
|
.left-nav {
|
|
43
28
|
display: flex;
|
|
44
29
|
align-items: center;
|
|
30
|
+
@media (max-width: 1024px) {
|
|
31
|
+
gap: 1rem;
|
|
32
|
+
}
|
|
33
|
+
gap: 2rem;
|
|
45
34
|
}
|
|
46
35
|
|
|
47
36
|
.header-phone {
|
|
@@ -11,21 +11,6 @@ export const NavMenuStyled = styled.nav`
|
|
|
11
11
|
display: flex;
|
|
12
12
|
flex: 1;
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
.create-account__mobile {
|
|
16
|
-
@media (min-width: ${size.tab}) {
|
|
17
|
-
display: none;
|
|
18
|
-
}
|
|
19
|
-
display: block;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.create-account__desktop {
|
|
23
|
-
@media (max-width: ${size.tab}) {
|
|
24
|
-
display: none;
|
|
25
|
-
}
|
|
26
|
-
display: block;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
14
|
&.--is-mobile {
|
|
30
15
|
@media (min-width: ${size.tab}) {
|
|
31
16
|
display: none;
|
|
@@ -43,6 +28,10 @@ export const NavMenuStyled = styled.nav`
|
|
|
43
28
|
.left-nav {
|
|
44
29
|
display: flex;
|
|
45
30
|
align-items: center;
|
|
31
|
+
@media (max-width: 1024px) {
|
|
32
|
+
gap: 1rem;
|
|
33
|
+
}
|
|
34
|
+
gap: 2rem;
|
|
46
35
|
}
|
|
47
36
|
|
|
48
37
|
.header-phone {
|
|
@@ -29,6 +29,7 @@ export const NavMenu: React.FC<NavMenuProps> = ({
|
|
|
29
29
|
handleResultClick,
|
|
30
30
|
languageSelectorConfigEnabled,
|
|
31
31
|
isJonSnow,
|
|
32
|
+
isMobile,
|
|
32
33
|
triggerMenuClose,
|
|
33
34
|
triggerMenuOpen,
|
|
34
35
|
setCookiePolicyFunc,
|
|
@@ -67,6 +68,7 @@ export const NavMenu: React.FC<NavMenuProps> = ({
|
|
|
67
68
|
setCookiePolicyFunc={setCookiePolicyFunc}
|
|
68
69
|
routes={routes}
|
|
69
70
|
finalMenu={finalMenu}
|
|
71
|
+
isMobile={isMobile}
|
|
70
72
|
configVars={configVars}
|
|
71
73
|
navMenuItems={navMenuItems}
|
|
72
74
|
extraMenu={extraMenu}
|
|
@@ -85,6 +87,7 @@ export const NavMenu: React.FC<NavMenuProps> = ({
|
|
|
85
87
|
setCookiePolicyFunc={setCookiePolicyFunc}
|
|
86
88
|
routes={routes}
|
|
87
89
|
finalMenu={finalMenu}
|
|
90
|
+
isMobile={isMobile}
|
|
88
91
|
configVars={configVars}
|
|
89
92
|
navMenuItems={navMenuItems}
|
|
90
93
|
extraMenu={extraMenu}
|
package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.js
CHANGED
|
@@ -7,7 +7,9 @@ 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
|
|
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
|
|
11
13
|
});
|
|
12
14
|
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 })] }));
|
|
13
15
|
};
|
|
@@ -7,7 +7,8 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div `
|
|
|
7
7
|
flex-direction: row;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
&.try-our-free-legal-blogs-section-content--our-mission
|
|
10
|
+
&.try-our-free-legal-blogs-section-content--our-mission,
|
|
11
|
+
&.try-our-free-legal-blogs-section-content--how-it-works {
|
|
11
12
|
margin-top: 1.5rem;
|
|
12
13
|
margin-bottom: 1.5rem;
|
|
13
14
|
align-items: center;
|
|
@@ -30,7 +31,8 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div `
|
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
&.try-our-free-legal-blogs-section-content--our-mission-first-image
|
|
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 {
|
|
34
36
|
margin-top: 1.5rem;
|
|
35
37
|
margin-bottom: 1.5rem;
|
|
36
38
|
align-items: center;
|
|
@@ -8,7 +8,8 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div`
|
|
|
8
8
|
flex-direction: row;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
&.try-our-free-legal-blogs-section-content--our-mission
|
|
11
|
+
&.try-our-free-legal-blogs-section-content--our-mission,
|
|
12
|
+
&.try-our-free-legal-blogs-section-content--how-it-works {
|
|
12
13
|
margin-top: 1.5rem;
|
|
13
14
|
margin-bottom: 1.5rem;
|
|
14
15
|
align-items: center;
|
|
@@ -31,7 +32,8 @@ export const TryOurFreeLegalBlogsContentStyled = styled.div`
|
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
|
|
34
|
-
&.try-our-free-legal-blogs-section-content--our-mission-first-image
|
|
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 {
|
|
35
37
|
margin-top: 1.5rem;
|
|
36
38
|
margin-bottom: 1.5rem;
|
|
37
39
|
align-items: center;
|
package/dist/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.tsx
CHANGED
|
@@ -18,7 +18,10 @@ 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
|
|
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
|
|
22
25
|
})
|
|
23
26
|
return (
|
|
24
27
|
<TryOurFreeLegalBlogsContentStyled className={classTry}>
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export declare enum TryOurFreeLegalBlogsContentType {
|
|
2
2
|
default = "Default",
|
|
3
3
|
ourMission = "Our Mission",
|
|
4
|
-
ourMissionFirstImage = "Our Mission First Image"
|
|
4
|
+
ourMissionFirstImage = "Our Mission First Image",
|
|
5
|
+
howItWorks = "How It Works",
|
|
6
|
+
howItWorksFirstImage = "How It Works First Image"
|
|
5
7
|
}
|
|
6
8
|
export interface TryOurFreeLegalBlogsContentProps {
|
|
7
9
|
title: string;
|
|
@@ -3,4 +3,6 @@ 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";
|
|
6
8
|
})(TryOurFreeLegalBlogsContentType || (TryOurFreeLegalBlogsContentType = {}));
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export enum TryOurFreeLegalBlogsContentType {
|
|
2
2
|
default = 'Default',
|
|
3
3
|
ourMission = 'Our Mission',
|
|
4
|
-
ourMissionFirstImage = 'Our Mission First Image'
|
|
4
|
+
ourMissionFirstImage = 'Our Mission First Image',
|
|
5
|
+
howItWorks = 'How It Works',
|
|
6
|
+
howItWorksFirstImage = 'How It Works First Image'
|
|
5
7
|
}
|
|
6
8
|
|
|
7
9
|
export interface TryOurFreeLegalBlogsContentProps {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { HeroSection, LawGeniusCardsSection, TryNowSection, TryOurFreeLegalBlogsSection } from '../../sections';
|
|
3
|
+
export const HowItWorksPage = ({ aboutUsSectionProps, howItWorksStep1Props, howItWorksStep2Props, howItWorksStep3Props, howItWorksStep4Props, lawGeniusCardsSectionProps, tryNowSectionProps }) => {
|
|
4
|
+
return (_jsxs(_Fragment, { children: [aboutUsSectionProps != null && _jsx(HeroSection, { ...aboutUsSectionProps }), howItWorksStep1Props != null && _jsx(TryOurFreeLegalBlogsSection, { ...howItWorksStep1Props }), howItWorksStep2Props != null && _jsx(TryOurFreeLegalBlogsSection, { ...howItWorksStep2Props }), howItWorksStep3Props != null && _jsx(TryOurFreeLegalBlogsSection, { ...howItWorksStep3Props }), howItWorksStep4Props != null && _jsx(TryOurFreeLegalBlogsSection, { ...howItWorksStep4Props }), lawGeniusCardsSectionProps != null && _jsx(LawGeniusCardsSection, { ...lawGeniusCardsSectionProps }), tryNowSectionProps != null && _jsx(TryNowSection, { ...tryNowSectionProps })] }));
|
|
5
|
+
};
|