@npm_leadtech/legal-lib-components 2.11.0 → 2.11.3

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 (42) hide show
  1. package/dist/cjs/index.js +2 -2
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/legal-lib-components.css +54 -13
  4. package/dist/cjs/src/components/atoms/DatePickerCustom/DatePickerCustom.d.ts +2 -9
  5. package/dist/cjs/src/components/atoms/DatePickerCustom/DatePickerCustomProps.types.d.ts +1 -0
  6. package/dist/cjs/src/components/atoms/ExpertCard/ExpertCard.d.ts +5 -0
  7. package/dist/cjs/src/components/atoms/ExpertCard/ExpertCardProps.types.d.ts +6 -0
  8. package/dist/cjs/src/components/atoms/ExpertCard/__stories__/ExpertCard.stories.d.ts +6 -0
  9. package/dist/cjs/src/components/atoms/ExpertCard/index.d.ts +2 -0
  10. package/dist/cjs/src/components/atoms/Tooltip/TooltipProps.types.d.ts +1 -1
  11. package/dist/cjs/src/components/atoms/index.d.ts +1 -0
  12. package/dist/cjs/src/components/molecules/ExpertCardList/ExpertCardList.d.ts +5 -0
  13. package/dist/cjs/src/components/molecules/ExpertCardList/ExpertCardListProps.types.d.ts +4 -0
  14. package/dist/cjs/src/components/molecules/ExpertCardList/__stories__/ExpertCardList.stories.d.ts +6 -0
  15. package/dist/cjs/src/components/molecules/ExpertCardList/index.d.ts +2 -0
  16. package/dist/cjs/src/components/molecules/index.d.ts +1 -0
  17. package/dist/cjs/src/components/sections/ExpertsSection/ExpertsSection.d.ts +5 -0
  18. package/dist/cjs/src/components/sections/ExpertsSection/ExpertsSectionProps.types.d.ts +5 -0
  19. package/dist/cjs/src/components/sections/ExpertsSection/__stories__/ExpertsSection.stories.d.ts +6 -0
  20. package/dist/cjs/src/components/sections/ExpertsSection/index.d.ts +2 -0
  21. package/dist/esm/index.js +3 -3
  22. package/dist/esm/index.js.map +1 -1
  23. package/dist/esm/legal-lib-components.css +54 -13
  24. package/dist/esm/src/components/atoms/DatePickerCustom/DatePickerCustom.d.ts +2 -9
  25. package/dist/esm/src/components/atoms/DatePickerCustom/DatePickerCustomProps.types.d.ts +1 -0
  26. package/dist/esm/src/components/atoms/ExpertCard/ExpertCard.d.ts +5 -0
  27. package/dist/esm/src/components/atoms/ExpertCard/ExpertCardProps.types.d.ts +6 -0
  28. package/dist/esm/src/components/atoms/ExpertCard/__stories__/ExpertCard.stories.d.ts +6 -0
  29. package/dist/esm/src/components/atoms/ExpertCard/index.d.ts +2 -0
  30. package/dist/esm/src/components/atoms/Tooltip/TooltipProps.types.d.ts +1 -1
  31. package/dist/esm/src/components/atoms/index.d.ts +1 -0
  32. package/dist/esm/src/components/molecules/ExpertCardList/ExpertCardList.d.ts +5 -0
  33. package/dist/esm/src/components/molecules/ExpertCardList/ExpertCardListProps.types.d.ts +4 -0
  34. package/dist/esm/src/components/molecules/ExpertCardList/__stories__/ExpertCardList.stories.d.ts +6 -0
  35. package/dist/esm/src/components/molecules/ExpertCardList/index.d.ts +2 -0
  36. package/dist/esm/src/components/molecules/index.d.ts +1 -0
  37. package/dist/esm/src/components/sections/ExpertsSection/ExpertsSection.d.ts +5 -0
  38. package/dist/esm/src/components/sections/ExpertsSection/ExpertsSectionProps.types.d.ts +5 -0
  39. package/dist/esm/src/components/sections/ExpertsSection/__stories__/ExpertsSection.stories.d.ts +6 -0
  40. package/dist/esm/src/components/sections/ExpertsSection/index.d.ts +2 -0
  41. package/dist/index.d.ts +19 -11
  42. package/package.json +6 -1
@@ -1685,6 +1685,43 @@ html[data-theme='uslawdistricts'] {
1685
1685
  .document-status.--is-new .icon {
1686
1686
  margin-right: 1.4rem; }
1687
1687
 
1688
+ .expert-card {
1689
+ display: flex;
1690
+ align-items: center;
1691
+ justify-content: center;
1692
+ margin-top: 5rem; }
1693
+ .expert-card__box {
1694
+ background-color: white;
1695
+ border-radius: 0.3rem;
1696
+ box-shadow: 0 0.25rem 0.5rem 0 rgba(var(--primary-main-dark-1), 0.2);
1697
+ padding: 7rem 2rem 0 2rem;
1698
+ min-height: 13rem;
1699
+ display: flex;
1700
+ flex-direction: column;
1701
+ align-items: center;
1702
+ justify-content: flex-start;
1703
+ width: 17.625rem;
1704
+ margin-left: 2rem; }
1705
+ .expert-card__image {
1706
+ position: absolute;
1707
+ transform: translateY(-115%); }
1708
+ .expert-card__title {
1709
+ font-family: Inter;
1710
+ font-size: 18px;
1711
+ font-weight: 700;
1712
+ line-height: 24px;
1713
+ letter-spacing: -0.3px;
1714
+ text-align: center;
1715
+ width: 75%; }
1716
+ .expert-card__description {
1717
+ font-family: Inter;
1718
+ font-size: 16px;
1719
+ font-weight: 400;
1720
+ line-height: 22px;
1721
+ letter-spacing: -0.30000001192092896px;
1722
+ text-align: center;
1723
+ width: 75%; }
1724
+
1688
1725
  .form-faq {
1689
1726
  display: flex;
1690
1727
  position: relative;
@@ -1815,7 +1852,16 @@ html[data-theme='uslawdistricts'] {
1815
1852
  border-radius: 4px;
1816
1853
  padding: 0.25rem 0.5rem; }
1817
1854
  .menu-items__item svg {
1818
- vertical-align: bottom; }
1855
+ vertical-align: bottom;
1856
+ width: 1.5rem;
1857
+ margin-right: 0.5rem; }
1858
+ @media (min-width: 575px) {
1859
+ .menu-items__item svg {
1860
+ width: 1rem; } }
1861
+ .menu-items__item svg > g > g {
1862
+ fill: var(--neutral-neutral-1); }
1863
+ .menu-items__item svg #color-bin {
1864
+ fill: var(--neutral-neutral-1); }
1819
1865
  .menu-items__item.active {
1820
1866
  color: var(--primary-main-light-1);
1821
1867
  font-weight: 700;
@@ -1835,16 +1881,6 @@ html[data-theme='uslawdistricts'] {
1835
1881
  fill: var(--primary-main); }
1836
1882
  .menu-items__item a {
1837
1883
  display: flex; }
1838
- .menu-items__item svg {
1839
- width: 1.5rem;
1840
- margin-right: 0.5rem; }
1841
- @media (min-width: 575px) {
1842
- .menu-items__item svg {
1843
- width: 1rem; } }
1844
- .menu-items__item svg > g > g {
1845
- fill: var(--neutral-neutral-1); }
1846
- .menu-items__item svg #color-bin {
1847
- fill: var(--neutral-neutral-1); }
1848
1884
 
1849
1885
  .e-message-error {
1850
1886
  box-shadow: 0 0 0 1px #d63837;
@@ -2899,7 +2935,7 @@ html[data-theme='uslawdistricts'] {
2899
2935
  .box--form {
2900
2936
  background: var(--others-white);
2901
2937
  border-radius: 4px;
2902
- box-shadow: 0 2px 6px 0 rgba(var(--primary-main-dark-1), 0.25);
2938
+ box-shadow: 0 2px 6px 0 rgba(2, 55, 74, 0.25);
2903
2939
  padding-left: 1.5rem;
2904
2940
  padding-right: 1.5rem; }
2905
2941
  @media (min-width: 1200px) {
@@ -3630,6 +3666,11 @@ html[data-theme='uslawdistricts'] {
3630
3666
  .trustworthy-websites__image {
3631
3667
  margin: 1.5rem; }
3632
3668
 
3669
+ .expert-card-list {
3670
+ display: flex;
3671
+ flex-direction: row;
3672
+ justify-content: center; }
3673
+
3633
3674
  .articles_wrapper {
3634
3675
  display: flex;
3635
3676
  flex-direction: column;
@@ -3937,7 +3978,7 @@ html[data-theme='uslawdistricts'] {
3937
3978
  color: var(--neutral-neutral-2);
3938
3979
  text-align: center;
3939
3980
  font-size: 32px;
3940
- font-family: Lora;
3981
+ font-family: "Lora", serif;
3941
3982
  font-style: normal;
3942
3983
  font-weight: 400;
3943
3984
  line-height: 42px;
@@ -1,13 +1,6 @@
1
- import React, { Component } from 'react';
1
+ import { type FC } from 'react';
2
2
  import { type DatePickerCustomProps } from './DatePickerCustomProps.types';
3
3
  import 'react-datepicker/dist/react-datepicker.css';
4
4
  import './DatePickerCustom.scss';
5
- declare class DatePickerCustom extends Component<DatePickerCustomProps> {
6
- constructor(props: DatePickerCustomProps);
7
- componentDidMount(): void;
8
- returnYears: (currentYear: number) => React.JSX.Element[];
9
- handleChange: (date: Date) => void;
10
- addDays: (date: any, days: any) => Date;
11
- render(): React.JSX.Element;
12
- }
5
+ declare const DatePickerCustom: FC<DatePickerCustomProps>;
13
6
  export default DatePickerCustom;
@@ -11,5 +11,6 @@ export interface DatePickerCustomProps {
11
11
  isStartDate?: boolean;
12
12
  relatedDate?: Date;
13
13
  type?: string;
14
+ dateFormat?: string;
14
15
  onChange?: (dateObject: any) => void;
15
16
  }
@@ -0,0 +1,5 @@
1
+ import { type FC } from 'react';
2
+ import { type ExpertCardProps } from './ExpertCardProps.types';
3
+ import './ExpertCard.scss';
4
+ declare const ExpertCard: FC<ExpertCardProps>;
5
+ export default ExpertCard;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export interface ExpertCardProps {
3
+ title: string;
4
+ description: string;
5
+ image: React.ReactNode;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { type Meta, type StoryObj } from '@storybook/react';
2
+ import ExpertCard from '../ExpertCard';
3
+ declare const meta: Meta<typeof ExpertCard>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof ExpertCard>;
6
+ export declare const Default: Story;
@@ -0,0 +1,2 @@
1
+ export { default as ExpertCard } from './ExpertCard';
2
+ export { type ExpertCardProps } from './ExpertCardProps.types';
@@ -9,7 +9,7 @@ export interface TooltipProps {
9
9
  hideOnClick?: boolean | 'toggle';
10
10
  position?: 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'auto' | 'auto-start' | 'auto-end';
11
11
  trigger?: 'click' | 'focus' | 'focusin' | 'mouseenter' | 'mouseenter focus' | 'mouseenter click' | 'manual' | 'hover';
12
- content?: React.ReactNode | string | any;
12
+ content?: any;
13
13
  children?: React.ReactElement<any>;
14
14
  onClick?: () => void;
15
15
  onClickOutside?: () => void;
@@ -12,6 +12,7 @@ export * from './DialogMenuIcon';
12
12
  export * from './Disclaimer';
13
13
  export * from './Divider';
14
14
  export * from './DocumentStatus';
15
+ export * from './ExpertCard';
15
16
  export * from './FormFaq';
16
17
  export * from './GoogleButton';
17
18
  export * from './IconImage';
@@ -0,0 +1,5 @@
1
+ import { type FC } from 'react';
2
+ import { type ExpertCardListProps } from './ExpertCardListProps.types';
3
+ import './ExpertCardList.scss';
4
+ declare const ExpertCardList: FC<ExpertCardListProps>;
5
+ export default ExpertCardList;
@@ -0,0 +1,4 @@
1
+ import { type ExpertCardProps } from '../../atoms/ExpertCard';
2
+ export interface ExpertCardListProps {
3
+ contentExpertCard: ExpertCardProps[];
4
+ }
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import ExpertCardList from '../ExpertCardList';
3
+ declare const meta: Meta<typeof ExpertCardList>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof ExpertCardList>;
6
+ export declare const Default: Story;
@@ -0,0 +1,2 @@
1
+ export { default as ExpertCardList } from './ExpertCardList';
2
+ export { type ExpertCardListProps } from './ExpertCardListProps.types';
@@ -15,3 +15,4 @@ export * from './StepGetForm';
15
15
  export * from './TextInput';
16
16
  export * from './TooltipMenu';
17
17
  export * from './TrustworthyWebsites';
18
+ export * from './ExpertCardList';
@@ -0,0 +1,5 @@
1
+ import { type FC } from 'react';
2
+ import { type ExpertsSectionProps } from './ExpertsSectionProps.types';
3
+ import './ExpertsSection.scss';
4
+ declare const ExpertsSection: FC<ExpertsSectionProps>;
5
+ export default ExpertsSection;
@@ -0,0 +1,5 @@
1
+ import { type ExpertCardListProps } from '../../molecules/ExpertCardList';
2
+ export interface ExpertsSectionProps {
3
+ title: string;
4
+ contentExpertCardList: ExpertCardListProps;
5
+ }
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import ExpertsSection from '../ExpertsSection';
3
+ declare const meta: Meta<typeof ExpertsSection>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof ExpertsSection>;
6
+ export declare const Default: Story;
@@ -0,0 +1,2 @@
1
+ export { default as ExpertsSection } from './ExpertsSection';
2
+ export { type ExpertsSectionProps } from './ExpertsSectionProps.types';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import React$1, { FC, Component, ReactNode, MouseEventHandler, RefObject } from 'react';
2
+ import React$1, { FC, ReactNode, MouseEventHandler, RefObject } from 'react';
3
3
  import { IGatsbyImageData } from 'gatsby-plugin-image';
4
4
 
5
5
  interface AddButtonProps {
@@ -131,17 +131,11 @@ interface DatePickerCustomProps {
131
131
  isStartDate?: boolean;
132
132
  relatedDate?: Date;
133
133
  type?: string;
134
+ dateFormat?: string;
134
135
  onChange?: (dateObject: any) => void;
135
136
  }
136
137
 
137
- declare class DatePickerCustom extends Component<DatePickerCustomProps> {
138
- constructor(props: DatePickerCustomProps);
139
- componentDidMount(): void;
140
- returnYears: (currentYear: number) => React$1.JSX.Element[];
141
- handleChange: (date: Date) => void;
142
- addDays: (date: any, days: any) => Date;
143
- render(): React$1.JSX.Element;
144
- }
138
+ declare const DatePickerCustom: FC<DatePickerCustomProps>;
145
139
 
146
140
  interface DialogMenuIconProps {
147
141
  title?: string;
@@ -176,6 +170,14 @@ interface DocumentStatusProps {
176
170
 
177
171
  declare const DocumentStatus: FC<DocumentStatusProps>;
178
172
 
173
+ interface ExpertCardProps {
174
+ title: string;
175
+ description: string;
176
+ image: React.ReactNode;
177
+ }
178
+
179
+ declare const ExpertCard: FC<ExpertCardProps>;
180
+
179
181
  interface FormFaqProps {
180
182
  title: string;
181
183
  answer: string;
@@ -392,7 +394,7 @@ interface TooltipProps {
392
394
  hideOnClick?: boolean | 'toggle';
393
395
  position?: 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'auto' | 'auto-start' | 'auto-end';
394
396
  trigger?: 'click' | 'focus' | 'focusin' | 'mouseenter' | 'mouseenter focus' | 'mouseenter click' | 'manual' | 'hover';
395
- content?: React.ReactNode | string | any;
397
+ content?: any;
396
398
  children?: React.ReactElement<any>;
397
399
  onClick?: () => void;
398
400
  onClickOutside?: () => void;
@@ -646,6 +648,12 @@ interface ImageStructure {
646
648
 
647
649
  declare const TrustworthyWebsites: FC<TrustworthyWebsitesProps>;
648
650
 
651
+ interface ExpertCardListProps {
652
+ contentExpertCard: ExpertCardProps[];
653
+ }
654
+
655
+ declare const ExpertCardList: FC<ExpertCardListProps>;
656
+
649
657
  interface ArticlesListProps {
650
658
  articles: ArticleProps[];
651
659
  }
@@ -744,4 +752,4 @@ declare function useIntersectionObserver({ options, defaultIntersecting }: {
744
752
  defaultIntersecting?: boolean | undefined;
745
753
  }): [RefObject<HTMLDivElement | HTMLHeadElement>, boolean];
746
754
 
747
- export { AboutUsContent, AboutUsContentProps, AboutUsSection, AboutUsSectionProps, AddButton, AddButtonProps, Article, ArticleProps, ArticlesList, ArticlesListProps, AsSeeInContent, AsSeeInContentProps, AsSeeInSection, AsSeeInSectionProps, BaseBox, BaseBoxList, BaseBoxListProps, BaseBoxProps, BillCard, BillCardProps, BlogSection, BlogSectionProps, BottomFixedBar, BottomFixedBarProps, BottomOverlay, BottomOverlayMenu, BottomOverlayMenuProps, BottomOverlayProps, BoxForm, BoxFormProps, BreadcrumItem, BreadcrumItemProps, Breadcrumb, BreadcrumbProps, Button, ButtonIcon, ButtonIconProps, ButtonProps, CardPane, CardPaneInfoProps, CardPaneProps, Checkbox, CheckboxProps, ContactBox, ContactBoxProps, DatePickerCustom, DatePickerCustomProps, DialogMenuIcon, DialogMenuIconProps, Disclaimer, DisclaimerProps, Divider, DividerProps, DocumentStatus, DocumentStatusProps, Feedback, FeedbackProps, FormFaq, FormFaqProps, GoogleButton, GoogleButtonProps, GuidelinesContent, GuidelinesContentProps, GuidelinesSection, GuidelinesSectionProps, HowGetYourFormsSection, HowGetYourFormsSectionProps, IconImage, IconImageProps, ImageStructure, InfoBox, InfoBoxProps, ListStepsGetForm, ListStepsGetFormProps, LogoText, LogoTextProps, MenuItemProps, MenuItems, MenuItemsSection, MenuItemsSectionProps, Message, MessageProps, MobileBottomBar, MobileBottomBarProps, NavBarDropDown, NavBarDropDownProps, Pagination, PaginationProps, PaypalButton, PaypalButtonProps, PricingCard, PricingCardProps, ProgressBar, ProgressBarProps, Radio, RadioProps, RemoveButton, RemoveButtonProps, RichTextInner, RichTextInnerProps, RichTextMedia, RichTextStrapi, RichTextStrapiProps, SearchSelect, SearchSelectProps, SideMenuTabProps, SidemenuTab, Snackbar, SnackbarProps, Spinner, SpinnerProps, StepGetForm, StepGetFormProps, TextArea, TextAreaProps, TextInput, TextInputProps, Toggle, ToggleProps, Tooltip, TooltipMenu, TooltipMenuProps, TooltipProps, TopBar, TopBarMobile, TopBarProps, TrustworthyWebsites, TrustworthyWebsitesProps, TryOurFreeLegalBlogsContent, TryOurFreeLegalBlogsContentProps, TryOurFreeLegalBlogsSection, TryOurFreeLegalBlogsSectionProps, WideInfoBar, useIntersectionObserver };
755
+ export { AboutUsContent, AboutUsContentProps, AboutUsSection, AboutUsSectionProps, AddButton, AddButtonProps, Article, ArticleProps, ArticlesList, ArticlesListProps, AsSeeInContent, AsSeeInContentProps, AsSeeInSection, AsSeeInSectionProps, BaseBox, BaseBoxList, BaseBoxListProps, BaseBoxProps, BillCard, BillCardProps, BlogSection, BlogSectionProps, BottomFixedBar, BottomFixedBarProps, BottomOverlay, BottomOverlayMenu, BottomOverlayMenuProps, BottomOverlayProps, BoxForm, BoxFormProps, BreadcrumItem, BreadcrumItemProps, Breadcrumb, BreadcrumbProps, Button, ButtonIcon, ButtonIconProps, ButtonProps, CardPane, CardPaneInfoProps, CardPaneProps, Checkbox, CheckboxProps, ContactBox, ContactBoxProps, DatePickerCustom, DatePickerCustomProps, DialogMenuIcon, DialogMenuIconProps, Disclaimer, DisclaimerProps, Divider, DividerProps, DocumentStatus, DocumentStatusProps, ExpertCard, ExpertCardList, ExpertCardListProps, ExpertCardProps, Feedback, FeedbackProps, FormFaq, FormFaqProps, GoogleButton, GoogleButtonProps, GuidelinesContent, GuidelinesContentProps, GuidelinesSection, GuidelinesSectionProps, HowGetYourFormsSection, HowGetYourFormsSectionProps, IconImage, IconImageProps, ImageStructure, InfoBox, InfoBoxProps, ListStepsGetForm, ListStepsGetFormProps, LogoText, LogoTextProps, MenuItemProps, MenuItems, MenuItemsSection, MenuItemsSectionProps, Message, MessageProps, MobileBottomBar, MobileBottomBarProps, NavBarDropDown, NavBarDropDownProps, Pagination, PaginationProps, PaypalButton, PaypalButtonProps, PricingCard, PricingCardProps, ProgressBar, ProgressBarProps, Radio, RadioProps, RemoveButton, RemoveButtonProps, RichTextInner, RichTextInnerProps, RichTextMedia, RichTextStrapi, RichTextStrapiProps, SearchSelect, SearchSelectProps, SideMenuTabProps, SidemenuTab, Snackbar, SnackbarProps, Spinner, SpinnerProps, StepGetForm, StepGetFormProps, TextArea, TextAreaProps, TextInput, TextInputProps, Toggle, ToggleProps, Tooltip, TooltipMenu, TooltipMenuProps, TooltipProps, TopBar, TopBarMobile, TopBarProps, TrustworthyWebsites, TrustworthyWebsitesProps, TryOurFreeLegalBlogsContent, TryOurFreeLegalBlogsContentProps, TryOurFreeLegalBlogsSection, TryOurFreeLegalBlogsSectionProps, WideInfoBar, useIntersectionObserver };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "2.11.0",
3
+ "version": "2.11.3",
4
4
  "dependencies": {
5
5
  "@testing-library/jest-dom": "^5.16.5",
6
6
  "@tippyjs/react": "4.2.6",
@@ -142,5 +142,10 @@
142
142
  "reportPath": "coverage",
143
143
  "reportFile": "test-reporter.xml",
144
144
  "indent": 4
145
+ },
146
+ "resolutions": {
147
+ "strip-ansi": "^6.0.1",
148
+ "string-width": "^4.2.2",
149
+ "wrap-ansi": "^7.0.0"
145
150
  }
146
151
  }