@npm_leadtech/legal-lib-components 2.5.5 → 2.6.0

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 (50) hide show
  1. package/dist/cjs/index.js +4 -2
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/legal-lib-components.css +69 -89
  4. package/dist/cjs/src/components/atoms/MenuItems/MenuItemProps.types.d.ts +2 -0
  5. package/dist/cjs/src/components/molecules/NavBarDropDown/NavBarDropDown.d.ts +4 -0
  6. package/dist/cjs/src/components/molecules/NavBarDropDown/NavBarDropDownProps.types.d.ts +15 -0
  7. package/dist/cjs/src/components/molecules/NavBarDropDown/__stories__/NavBarDropDown.stories.d.ts +6 -0
  8. package/dist/cjs/src/components/molecules/NavBarDropDown/index.d.ts +2 -0
  9. package/dist/cjs/src/components/molecules/index.d.ts +1 -0
  10. package/dist/cjs/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSectionProps.types.d.ts +4 -2
  11. package/dist/cjs/src/components/sections/index.d.ts +0 -1
  12. package/dist/cjs/src/hooks/useIntersectionObserver.d.ts +2 -0
  13. package/dist/esm/index.js +4 -2
  14. package/dist/esm/index.js.map +1 -1
  15. package/dist/esm/legal-lib-components.css +69 -89
  16. package/dist/esm/src/components/atoms/MenuItems/MenuItemProps.types.d.ts +2 -0
  17. package/dist/esm/src/components/molecules/NavBarDropDown/NavBarDropDown.d.ts +4 -0
  18. package/dist/esm/src/components/molecules/NavBarDropDown/NavBarDropDownProps.types.d.ts +15 -0
  19. package/dist/esm/src/components/molecules/NavBarDropDown/__stories__/NavBarDropDown.stories.d.ts +6 -0
  20. package/dist/esm/src/components/molecules/NavBarDropDown/index.d.ts +2 -0
  21. package/dist/esm/src/components/molecules/index.d.ts +1 -0
  22. package/dist/esm/src/components/sections/TryOurFreeLegalBlogsSection/TryOurFreeLegalBlogsSectionProps.types.d.ts +4 -2
  23. package/dist/esm/src/components/sections/index.d.ts +0 -1
  24. package/dist/esm/src/hooks/useIntersectionObserver.d.ts +2 -0
  25. package/dist/index.d.ts +21 -19
  26. package/package.json +1 -1
  27. package/dist/cjs/src/components/organisms/GuidelinesContent/GuidelinesContent.d.ts +0 -5
  28. package/dist/cjs/src/components/organisms/GuidelinesContent/GuidelinesContentProps.types.d.ts +0 -6
  29. package/dist/cjs/src/components/organisms/GuidelinesContent/__stories__/GuidelinesContent.stories.d.ts +0 -6
  30. package/dist/cjs/src/components/organisms/GuidelinesContent/index.d.ts +0 -2
  31. package/dist/cjs/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.d.ts +0 -5
  32. package/dist/cjs/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.d.ts +0 -6
  33. package/dist/cjs/src/components/organisms/TryOurFreeLegalBlogsContent/__stories__/TryOurFreeLegalBlogsContent.stories.d.ts +0 -6
  34. package/dist/cjs/src/components/organisms/TryOurFreeLegalBlogsContent/index.d.ts +0 -2
  35. package/dist/cjs/src/components/sections/GuidelinesSection/GuidelinesSection.d.ts +0 -5
  36. package/dist/cjs/src/components/sections/GuidelinesSection/GuidelinesSectionProps.types.d.ts +0 -4
  37. package/dist/cjs/src/components/sections/GuidelinesSection/__stories__/GuidelinesSection.stories.d.ts +0 -6
  38. package/dist/cjs/src/components/sections/GuidelinesSection/index.d.ts +0 -2
  39. package/dist/esm/src/components/organisms/GuidelinesContent/GuidelinesContent.d.ts +0 -5
  40. package/dist/esm/src/components/organisms/GuidelinesContent/GuidelinesContentProps.types.d.ts +0 -6
  41. package/dist/esm/src/components/organisms/GuidelinesContent/__stories__/GuidelinesContent.stories.d.ts +0 -6
  42. package/dist/esm/src/components/organisms/GuidelinesContent/index.d.ts +0 -2
  43. package/dist/esm/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContent.d.ts +0 -5
  44. package/dist/esm/src/components/organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types.d.ts +0 -6
  45. package/dist/esm/src/components/organisms/TryOurFreeLegalBlogsContent/__stories__/TryOurFreeLegalBlogsContent.stories.d.ts +0 -6
  46. package/dist/esm/src/components/organisms/TryOurFreeLegalBlogsContent/index.d.ts +0 -2
  47. package/dist/esm/src/components/sections/GuidelinesSection/GuidelinesSection.d.ts +0 -5
  48. package/dist/esm/src/components/sections/GuidelinesSection/GuidelinesSectionProps.types.d.ts +0 -4
  49. package/dist/esm/src/components/sections/GuidelinesSection/__stories__/GuidelinesSection.stories.d.ts +0 -6
  50. package/dist/esm/src/components/sections/GuidelinesSection/index.d.ts +0 -2
@@ -1547,12 +1547,23 @@
1547
1547
  .menu-items__spacing .menu-items__item:not(:last-child) {
1548
1548
  margin-bottom: 0.5rem; }
1549
1549
 
1550
+ .menu-items__bullets {
1551
+ list-style-position: inside;
1552
+ list-style-type: disc; }
1553
+
1550
1554
  .menu-items__item {
1551
1555
  transition: background-color 0.3s ease;
1552
1556
  border-radius: 4px;
1553
- padding: 0.25rem 0.5rem;
1554
- display: flex;
1555
- flex-direction: row; }
1557
+ padding: 0.25rem 0.5rem; }
1558
+ .menu-items__item svg {
1559
+ vertical-align: bottom; }
1560
+ .menu-items__item.active {
1561
+ color: #078080;
1562
+ font-weight: 700;
1563
+ background-color: #E4F8F3; }
1564
+ .menu-items__item.inactive {
1565
+ color: #6D7275;
1566
+ font-weight: 400; }
1556
1567
  .menu-items__item.disabled {
1557
1568
  color: #B5BABD; }
1558
1569
  .menu-items__item.disabled svg > g > g {
@@ -2799,6 +2810,29 @@
2799
2810
  .menu-items-section__title-wrapper__title {
2800
2811
  font-weight: bold; }
2801
2812
 
2813
+ .navbar-drop-down__container {
2814
+ position: absolute;
2815
+ width: 100%;
2816
+ height: 100vh;
2817
+ left: 0;
2818
+ right: 0;
2819
+ z-index: 2; }
2820
+ .navbar-drop-down__container__menu_items {
2821
+ background: white;
2822
+ padding: 1.5rem;
2823
+ box-shadow: 0px 2px 6px 0px rgba(2, 55, 74, 0.25); }
2824
+ .navbar-drop-down__container__menu_items ul li {
2825
+ margin-bottom: 1rem;
2826
+ padding: 0.5rem 1rem; }
2827
+ .navbar-drop-down__container__menu_items ul li:last-child {
2828
+ margin-bottom: 0; }
2829
+ .navbar-drop-down__container__shadow {
2830
+ position: absolute;
2831
+ background: #B5BABD;
2832
+ opacity: 0.4;
2833
+ width: 100%;
2834
+ height: 100vh; }
2835
+
2802
2836
  .pagination {
2803
2837
  align-items: center;
2804
2838
  box-sizing: border-box;
@@ -3391,46 +3425,44 @@
3391
3425
  .how-it-works-wrapper .works-title {
3392
3426
  padding-top: 2.5rem; } }
3393
3427
 
3394
- .try-our-free-legal-blogs-section__texts {
3395
- flex-basis: 50%;
3396
- display: flex;
3397
- flex-direction: column;
3398
- justify-content: center;
3399
- margin-bottom: 1rem;
3400
- margin-right: 0;
3401
- color: #3D4042;
3402
- font-style: normal;
3403
- font-weight: 400;
3404
- letter-spacing: -0.3px; }
3405
- @media (min-width: 720px) {
3406
- .try-our-free-legal-blogs-section__texts {
3407
- margin-right: 3rem;
3408
- margin-bottom: 0; } }
3409
- .try-our-free-legal-blogs-section__texts__title {
3410
- font-family: "Lora", serif;
3411
- font-size: 28px;
3412
- line-height: 42px;
3413
- margin-bottom: 2rem;
3414
- text-align: center; }
3415
- @media (min-width: 720px) {
3416
- .try-our-free-legal-blogs-section__texts__title {
3417
- text-align: left; } }
3418
- .try-our-free-legal-blogs-section__texts__body {
3419
- font-family: "Inter", sans-serif;
3420
- font-size: 16px;
3421
- line-height: 22px; }
3422
- .try-our-free-legal-blogs-section__texts__body a {
3423
- color: #078080; }
3424
-
3425
- .try-our-free-legal-blogs-section__image {
3426
- flex-basis: 50%; }
3427
-
3428
3428
  .try-our-free-legal-blogs-section {
3429
3429
  display: flex;
3430
3430
  flex-direction: column; }
3431
3431
  @media (min-width: 720px) {
3432
3432
  .try-our-free-legal-blogs-section {
3433
3433
  flex-flow: row nowrap; } }
3434
+ .try-our-free-legal-blogs-section__texts {
3435
+ flex-basis: 50%;
3436
+ display: flex;
3437
+ flex-direction: column;
3438
+ justify-content: center;
3439
+ margin-bottom: 1rem;
3440
+ margin-right: 0;
3441
+ color: #3D4042;
3442
+ font-style: normal;
3443
+ font-weight: 400;
3444
+ letter-spacing: -0.3px; }
3445
+ @media (min-width: 720px) {
3446
+ .try-our-free-legal-blogs-section__texts {
3447
+ margin-right: 3rem;
3448
+ margin-bottom: 0; } }
3449
+ .try-our-free-legal-blogs-section__texts__title {
3450
+ font-family: "Lora", serif;
3451
+ font-size: 28px;
3452
+ line-height: 42px;
3453
+ margin-bottom: 2rem;
3454
+ text-align: center; }
3455
+ @media (min-width: 720px) {
3456
+ .try-our-free-legal-blogs-section__texts__title {
3457
+ text-align: left; } }
3458
+ .try-our-free-legal-blogs-section__texts__body {
3459
+ font-family: "Inter", sans-serif;
3460
+ font-size: 16px;
3461
+ line-height: 22px; }
3462
+ .try-our-free-legal-blogs-section__texts__body a {
3463
+ color: #078080; }
3464
+ .try-our-free-legal-blogs-section__image {
3465
+ flex-basis: 50%; }
3434
3466
 
3435
3467
  .about-us-content {
3436
3468
  display: flex;
@@ -3510,55 +3542,3 @@
3510
3542
  @media (min-width: 960px) {
3511
3543
  .about-us-section__sub-title {
3512
3544
  font-size: 3rem; } }
3513
-
3514
- .guidelines-section__texts {
3515
- flex-basis: 50%;
3516
- display: flex;
3517
- flex-direction: column;
3518
- justify-content: center;
3519
- margin-bottom: 1rem;
3520
- margin-right: 0;
3521
- color: #3D4042;
3522
- font-style: normal;
3523
- font-weight: 400;
3524
- letter-spacing: -0.3px; }
3525
- @media (min-width: 720px) {
3526
- .guidelines-section__texts {
3527
- margin-left: 3rem;
3528
- margin-bottom: 0; } }
3529
- .guidelines-section__texts__title {
3530
- font-family: "Lora", serif;
3531
- font-size: 28px;
3532
- line-height: 42px;
3533
- margin-bottom: 2rem;
3534
- text-align: center; }
3535
- @media (min-width: 720px) {
3536
- .guidelines-section__texts__title {
3537
- text-align: left; } }
3538
- .guidelines-section__texts__body {
3539
- font-family: "Inter", sans-serif;
3540
- font-size: 16px;
3541
- line-height: 22px; }
3542
- .guidelines-section__texts__body a {
3543
- color: #078080; }
3544
-
3545
- .guidelines-section__image {
3546
- flex-basis: 50%;
3547
- margin-bottom: 2rem; }
3548
- .guidelines-section__image.big-devices {
3549
- display: none; }
3550
- @media (min-width: 720px) {
3551
- .guidelines-section__image.big-devices {
3552
- display: flex; } }
3553
- .guidelines-section__image.is-mobile {
3554
- display: flex; }
3555
- @media (min-width: 720px) {
3556
- .guidelines-section__image.is-mobile {
3557
- display: none; } }
3558
-
3559
- .guidelines-section {
3560
- display: flex;
3561
- flex-direction: column; }
3562
- @media (min-width: 720px) {
3563
- .guidelines-section {
3564
- flex-flow: row nowrap; } }
@@ -1,5 +1,7 @@
1
1
  export interface MenuItemProps {
2
2
  spacing?: boolean;
3
+ hasBullets?: boolean;
4
+ initialActiveContent?: string;
3
5
  list: MenuListItem[];
4
6
  }
5
7
  export interface MenuListItem {
@@ -0,0 +1,4 @@
1
+ import { type FC } from 'react';
2
+ import { type NavBarDropDownProps } from './NavBarDropDownProps.types';
3
+ import './NavBarDropDown.scss';
4
+ export declare const NavBarDropDown: FC<NavBarDropDownProps>;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ interface List {
3
+ onClick: () => void;
4
+ content: string;
5
+ dataQA?: string;
6
+ }
7
+ export interface NavBarDropDownProps {
8
+ isOpen: boolean;
9
+ hasBullets?: boolean;
10
+ initialActiveContent?: string;
11
+ setEnableScrollbarOnClose: React.Dispatch<React.SetStateAction<(() => void) | undefined>>;
12
+ setIsOpen: (open: boolean) => void;
13
+ list: List[];
14
+ }
15
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { NavBarDropDown } from '../NavBarDropDown';
3
+ declare const meta: Meta<typeof NavBarDropDown>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof NavBarDropDown>;
6
+ export declare const Default: Story;
@@ -0,0 +1,2 @@
1
+ export { NavBarDropDown } from './NavBarDropDown';
2
+ export { type NavBarDropDownProps } from './NavBarDropDownProps.types';
@@ -7,6 +7,7 @@ export * from './Breadcrumb';
7
7
  export * from './ContactBox';
8
8
  export * from './Feedback';
9
9
  export * from './MenuItemsSection';
10
+ export * from './NavBarDropDown';
10
11
  export * from './Pagination';
11
12
  export * from './PricingCard';
12
13
  export * from './Snackbar';
@@ -1,4 +1,6 @@
1
- import { type TryOurFreeLegalBlogsContentProps } from '../../organisms/TryOurFreeLegalBlogsContent/TryOurFreeLegalBlogsContentProps.types';
1
+ /// <reference types="react" />
2
2
  export interface TryOurFreeLegalBlogsSectionProps {
3
- contentTryOurFreeLegalBlogs: TryOurFreeLegalBlogsContentProps;
3
+ title: string;
4
+ image: React.ReactNode;
5
+ children?: string | React.ReactNode;
4
6
  }
@@ -2,4 +2,3 @@ export * from './BlogSection';
2
2
  export * from './HowGetYourFormsSection';
3
3
  export * from './TryOurFreeLegalBlogsSection';
4
4
  export * from './AboutUsSection';
5
- export * from './GuidelinesSection';
@@ -0,0 +1,2 @@
1
+ import { type RefObject } from 'react';
2
+ export declare function useIntersectionObserver(options?: {}): [RefObject<HTMLDivElement>, boolean];