@npm_leadtech/legal-lib-components 2.5.4 → 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 (40) 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 +37 -80
  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/index.d.ts +0 -1
  11. package/dist/cjs/src/hooks/useIntersectionObserver.d.ts +2 -0
  12. package/dist/esm/index.js +4 -2
  13. package/dist/esm/index.js.map +1 -1
  14. package/dist/esm/legal-lib-components.css +37 -80
  15. package/dist/esm/src/components/atoms/MenuItems/MenuItemProps.types.d.ts +2 -0
  16. package/dist/esm/src/components/molecules/NavBarDropDown/NavBarDropDown.d.ts +4 -0
  17. package/dist/esm/src/components/molecules/NavBarDropDown/NavBarDropDownProps.types.d.ts +15 -0
  18. package/dist/esm/src/components/molecules/NavBarDropDown/__stories__/NavBarDropDown.stories.d.ts +6 -0
  19. package/dist/esm/src/components/molecules/NavBarDropDown/index.d.ts +2 -0
  20. package/dist/esm/src/components/molecules/index.d.ts +1 -0
  21. package/dist/esm/src/components/sections/index.d.ts +0 -1
  22. package/dist/esm/src/hooks/useIntersectionObserver.d.ts +2 -0
  23. package/dist/index.d.ts +19 -13
  24. package/package.json +1 -1
  25. package/dist/cjs/src/components/organisms/GuidelinesContent/GuidelinesContent.d.ts +0 -5
  26. package/dist/cjs/src/components/organisms/GuidelinesContent/GuidelinesContentProps.types.d.ts +0 -6
  27. package/dist/cjs/src/components/organisms/GuidelinesContent/__stories__/GuidelinesContent.stories.d.ts +0 -6
  28. package/dist/cjs/src/components/organisms/GuidelinesContent/index.d.ts +0 -2
  29. package/dist/cjs/src/components/sections/GuidelinesSection/GuidelinesSection.d.ts +0 -5
  30. package/dist/cjs/src/components/sections/GuidelinesSection/GuidelinesSectionProps.types.d.ts +0 -4
  31. package/dist/cjs/src/components/sections/GuidelinesSection/__stories__/GuidelinesSection.stories.d.ts +0 -6
  32. package/dist/cjs/src/components/sections/GuidelinesSection/index.d.ts +0 -2
  33. package/dist/esm/src/components/organisms/GuidelinesContent/GuidelinesContent.d.ts +0 -5
  34. package/dist/esm/src/components/organisms/GuidelinesContent/GuidelinesContentProps.types.d.ts +0 -6
  35. package/dist/esm/src/components/organisms/GuidelinesContent/__stories__/GuidelinesContent.stories.d.ts +0 -6
  36. package/dist/esm/src/components/organisms/GuidelinesContent/index.d.ts +0 -2
  37. package/dist/esm/src/components/sections/GuidelinesSection/GuidelinesSection.d.ts +0 -5
  38. package/dist/esm/src/components/sections/GuidelinesSection/GuidelinesSectionProps.types.d.ts +0 -4
  39. package/dist/esm/src/components/sections/GuidelinesSection/__stories__/GuidelinesSection.stories.d.ts +0 -6
  40. 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;
@@ -3508,80 +3542,3 @@
3508
3542
  @media (min-width: 960px) {
3509
3543
  .about-us-section__sub-title {
3510
3544
  font-size: 3rem; } }
3511
-
3512
- .homeSteps__container {
3513
- transform: translateY(0%); }
3514
- @media (min-width: 575px) {
3515
- .homeSteps__container {
3516
- transform: translateY(0%); } }
3517
- @media (min-width: 720px) {
3518
- .homeSteps__container {
3519
- transform: translateY(0%); } }
3520
- .homeSteps__container .homeSteps {
3521
- display: flex;
3522
- flex-direction: column;
3523
- align-items: center;
3524
- padding-top: 2rem;
3525
- padding-bottom: 2rem;
3526
- position: relative; }
3527
- .homeSteps__container .homeSteps .homeStepsItemsContainer {
3528
- display: flex;
3529
- justify-content: space-between;
3530
- width: 100%;
3531
- max-width: 888px;
3532
- flex-flow: row wrap;
3533
- padding: 0 1rem; }
3534
- @media (min-width: 960px) {
3535
- .homeSteps__container .homeSteps .homeStepsItemsContainer {
3536
- flex-flow: row nowrap;
3537
- padding: 0; } }
3538
-
3539
- .guidelines-section {
3540
- display: flex;
3541
- flex-direction: column; }
3542
- @media (min-width: 720px) {
3543
- .guidelines-section {
3544
- flex-flow: row nowrap; } }
3545
- .guidelines-section__texts {
3546
- flex-basis: 50%;
3547
- display: flex;
3548
- flex-direction: column;
3549
- justify-content: center;
3550
- margin-bottom: 1rem;
3551
- margin-right: 0;
3552
- color: #3D4042;
3553
- font-style: normal;
3554
- font-weight: 400;
3555
- letter-spacing: -0.3px; }
3556
- @media (min-width: 720px) {
3557
- .guidelines-section__texts {
3558
- margin-left: 3rem;
3559
- margin-bottom: 0; } }
3560
- .guidelines-section__texts__title {
3561
- font-family: "Lora", serif;
3562
- font-size: 28px;
3563
- line-height: 42px;
3564
- margin-bottom: 2rem;
3565
- text-align: center; }
3566
- @media (min-width: 720px) {
3567
- .guidelines-section__texts__title {
3568
- text-align: left; } }
3569
- .guidelines-section__texts__body {
3570
- font-family: "Inter", sans-serif;
3571
- font-size: 16px;
3572
- line-height: 22px; }
3573
- .guidelines-section__texts__body a {
3574
- color: #078080; }
3575
- .guidelines-section__image {
3576
- flex-basis: 50%;
3577
- margin-bottom: 2rem; }
3578
- .guidelines-section__image.big-devices {
3579
- display: none; }
3580
- @media (min-width: 720px) {
3581
- .guidelines-section__image.big-devices {
3582
- display: flex; } }
3583
- .guidelines-section__image.is-mobile {
3584
- display: flex; }
3585
- @media (min-width: 720px) {
3586
- .guidelines-section__image.is-mobile {
3587
- display: none; } }
@@ -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';
@@ -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];