@npm_leadtech/legal-lib-components 2.0.0 → 2.1.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 (40) hide show
  1. package/dist/cjs/index.js +2 -2
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/src/components/atoms/Button/ButtonProps.types.d.ts +4 -15
  4. package/dist/cjs/src/components/molecules/Article/Article.d.ts +5 -0
  5. package/dist/cjs/src/components/molecules/Article/ArticleProps.types.d.ts +7 -0
  6. package/dist/cjs/src/components/molecules/Article/__stories__/Article.stories.d.ts +6 -0
  7. package/dist/cjs/src/components/molecules/Article/index.d.ts +2 -0
  8. package/dist/cjs/src/components/molecules/Feedback/FeedbackProps.types.d.ts +2 -6
  9. package/dist/cjs/src/components/molecules/index.d.ts +1 -0
  10. package/dist/cjs/src/components/organisms/ArticlesList/ArticlesList.d.ts +5 -0
  11. package/dist/cjs/src/components/organisms/ArticlesList/ArticlesListProps.types.d.ts +4 -0
  12. package/dist/cjs/src/components/organisms/ArticlesList/__stories__/ArticlesList.stories.d.ts +6 -0
  13. package/dist/cjs/src/components/organisms/ArticlesList/index.d.ts +2 -0
  14. package/dist/cjs/src/components/organisms/index.d.ts +1 -0
  15. package/dist/cjs/src/components/sections/BlogSection/BlogSection.d.ts +5 -0
  16. package/dist/cjs/src/components/sections/BlogSection/BlogSectionProps.types.d.ts +6 -0
  17. package/dist/cjs/src/components/sections/BlogSection/__stories__/BlogSection.stories.d.ts +6 -0
  18. package/dist/cjs/src/components/sections/BlogSection/index.d.ts +2 -0
  19. package/dist/cjs/src/components/sections/index.d.ts +1 -0
  20. package/dist/esm/index.js +2 -2
  21. package/dist/esm/index.js.map +1 -1
  22. package/dist/esm/src/components/atoms/Button/ButtonProps.types.d.ts +4 -15
  23. package/dist/esm/src/components/molecules/Article/Article.d.ts +5 -0
  24. package/dist/esm/src/components/molecules/Article/ArticleProps.types.d.ts +7 -0
  25. package/dist/esm/src/components/molecules/Article/__stories__/Article.stories.d.ts +6 -0
  26. package/dist/esm/src/components/molecules/Article/index.d.ts +2 -0
  27. package/dist/esm/src/components/molecules/Feedback/FeedbackProps.types.d.ts +2 -6
  28. package/dist/esm/src/components/molecules/index.d.ts +1 -0
  29. package/dist/esm/src/components/organisms/ArticlesList/ArticlesList.d.ts +5 -0
  30. package/dist/esm/src/components/organisms/ArticlesList/ArticlesListProps.types.d.ts +4 -0
  31. package/dist/esm/src/components/organisms/ArticlesList/__stories__/ArticlesList.stories.d.ts +6 -0
  32. package/dist/esm/src/components/organisms/ArticlesList/index.d.ts +2 -0
  33. package/dist/esm/src/components/organisms/index.d.ts +1 -0
  34. package/dist/esm/src/components/sections/BlogSection/BlogSection.d.ts +5 -0
  35. package/dist/esm/src/components/sections/BlogSection/BlogSectionProps.types.d.ts +6 -0
  36. package/dist/esm/src/components/sections/BlogSection/__stories__/BlogSection.stories.d.ts +6 -0
  37. package/dist/esm/src/components/sections/BlogSection/index.d.ts +2 -0
  38. package/dist/esm/src/components/sections/index.d.ts +1 -0
  39. package/dist/index.d.ts +30 -22
  40. package/package.json +10 -9
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  export interface ButtonProps {
3
- dataQa: string;
4
3
  label: string;
5
- labelMobile: string;
4
+ dataQa?: string;
5
+ labelMobile?: string;
6
6
  link?: string;
7
7
  LinkComponent?: any;
8
8
  noLink?: boolean;
@@ -10,19 +10,7 @@ export interface ButtonProps {
10
10
  onClick?: (functionParameters?: any) => void;
11
11
  functionParameters?: any;
12
12
  styleless?: boolean;
13
- primary?: boolean;
14
- primary2?: boolean;
15
- primary3?: boolean;
16
- primary4?: boolean;
17
- secondary?: boolean;
18
- secondary2?: boolean;
19
- secondary3?: boolean;
20
- secondary4?: boolean;
21
- secondaryIcon?: boolean;
22
- secondaryIconBold?: boolean;
23
- secondaryIconDark?: boolean;
24
- tertiary?: boolean;
25
- transparent?: boolean;
13
+ color?: 'primary' | 'primary2' | 'primary3' | 'primary4' | 'secondary' | 'secondary2' | 'secondary3' | 'secondary4' | 'secondaryIcon' | 'secondaryIconBold' | 'secondaryIconDark' | 'tertiary' | 'transparent';
26
14
  error?: boolean;
27
15
  disabled?: boolean;
28
16
  fluid?: boolean;
@@ -32,4 +20,5 @@ export interface ButtonProps {
32
20
  isExternal?: boolean;
33
21
  centered?: boolean;
34
22
  gtmTag?: string;
23
+ hasNoFollow?: boolean;
35
24
  }
@@ -0,0 +1,5 @@
1
+ import { type FC } from 'react';
2
+ import { type ArticleProps } from './ArticleProps.types';
3
+ import './Article.scss';
4
+ declare const Article: FC<ArticleProps>;
5
+ export default Article;
@@ -0,0 +1,7 @@
1
+ export interface ArticleProps {
2
+ imageUrl: string;
3
+ title: string;
4
+ articleUrl: string;
5
+ summary: string;
6
+ id: string;
7
+ }
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Article from '../Article';
3
+ declare const meta: Meta<typeof Article>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Article>;
6
+ export declare const Default: Story;
@@ -0,0 +1,2 @@
1
+ export { default as Article } from './Article';
2
+ export { type ArticleProps } from './ArticleProps.types';
@@ -1,3 +1,4 @@
1
+ import { type ButtonProps } from '../../atoms';
1
2
  export interface FeedbackProps {
2
3
  theme?: 'success' | 'error';
3
4
  title?: string;
@@ -5,12 +6,7 @@ export interface FeedbackProps {
5
6
  imgSrc?: string;
6
7
  large: boolean;
7
8
  fluid: boolean;
8
- button?: {
9
- label?: string;
10
- primary: boolean;
11
- noLink: boolean;
12
- onClick?: () => void;
13
- };
9
+ button?: ButtonProps;
14
10
  cancel?: {
15
11
  label?: string;
16
12
  onClick?: () => void;
@@ -1,3 +1,4 @@
1
+ export * from './Article';
1
2
  export * from './BaseBoxList';
2
3
  export * from './BottomFixedBar';
3
4
  export * from './BottomOverlay';
@@ -0,0 +1,5 @@
1
+ import { type FC } from 'react';
2
+ import { type ArticlesListProps } from './ArticlesListProps.types';
3
+ import './ArticlesList.scss';
4
+ declare const ArticlesList: FC<ArticlesListProps>;
5
+ export default ArticlesList;
@@ -0,0 +1,4 @@
1
+ import { type ArticleProps } from '../../molecules';
2
+ export interface ArticlesListProps {
3
+ articles: ArticleProps[];
4
+ }
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import ArticlesList from '../ArticlesList';
3
+ declare const meta: Meta<typeof ArticlesList>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof ArticlesList>;
6
+ export declare const Default: Story;
@@ -0,0 +1,2 @@
1
+ export { default as ArticlesList } from './ArticlesList';
2
+ export { type ArticlesListProps } from './ArticlesListProps.types';
@@ -1,2 +1,3 @@
1
+ export * from './ArticlesList';
1
2
  export * from './ListStepsGetForm';
2
3
  export * from './MobileBottomBar';
@@ -0,0 +1,5 @@
1
+ import { type FC } from 'react';
2
+ import { type BlogSectionProps } from './BlogSectionProps.types';
3
+ import './BlogSection.scss';
4
+ declare const BlogSection: FC<BlogSectionProps>;
5
+ export default BlogSection;
@@ -0,0 +1,6 @@
1
+ import { type ArticlesListProps } from '../../organisms';
2
+ export interface BlogSectionProps {
3
+ blogTitle: string;
4
+ blogCta: string;
5
+ articles: ArticlesListProps;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import BlogSection from '../BlogSection';
3
+ declare const meta: Meta<typeof BlogSection>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof BlogSection>;
6
+ export declare const Default: Story;
@@ -0,0 +1,2 @@
1
+ export { default as BlogSection } from './BlogSection';
2
+ export { type BlogSectionProps } from './BlogSectionProps.types';
@@ -1 +1,2 @@
1
1
  export * from './HowGetYourFormsSection';
2
+ export * from './BlogSection';
package/dist/index.d.ts CHANGED
@@ -39,9 +39,9 @@ interface BillCardProps {
39
39
  declare const BillCard: FC<BillCardProps>;
40
40
 
41
41
  interface ButtonProps {
42
- dataQa: string;
43
42
  label: string;
44
- labelMobile: string;
43
+ dataQa?: string;
44
+ labelMobile?: string;
45
45
  link?: string;
46
46
  LinkComponent?: any;
47
47
  noLink?: boolean;
@@ -49,19 +49,7 @@ interface ButtonProps {
49
49
  onClick?: (functionParameters?: any) => void;
50
50
  functionParameters?: any;
51
51
  styleless?: boolean;
52
- primary?: boolean;
53
- primary2?: boolean;
54
- primary3?: boolean;
55
- primary4?: boolean;
56
- secondary?: boolean;
57
- secondary2?: boolean;
58
- secondary3?: boolean;
59
- secondary4?: boolean;
60
- secondaryIcon?: boolean;
61
- secondaryIconBold?: boolean;
62
- secondaryIconDark?: boolean;
63
- tertiary?: boolean;
64
- transparent?: boolean;
52
+ color?: 'primary' | 'primary2' | 'primary3' | 'primary4' | 'secondary' | 'secondary2' | 'secondary3' | 'secondary4' | 'secondaryIcon' | 'secondaryIconBold' | 'secondaryIconDark' | 'tertiary' | 'transparent';
65
53
  error?: boolean;
66
54
  disabled?: boolean;
67
55
  fluid?: boolean;
@@ -71,6 +59,7 @@ interface ButtonProps {
71
59
  isExternal?: boolean;
72
60
  centered?: boolean;
73
61
  gtmTag?: string;
62
+ hasNoFollow?: boolean;
74
63
  }
75
64
 
76
65
  declare const Button: FC<ButtonProps>;
@@ -386,6 +375,16 @@ interface TopBarProps {
386
375
 
387
376
  declare const TopBar: FC<TopBarProps>;
388
377
 
378
+ interface ArticleProps {
379
+ imageUrl: string;
380
+ title: string;
381
+ articleUrl: string;
382
+ summary: string;
383
+ id: string;
384
+ }
385
+
386
+ declare const Article: FC<ArticleProps>;
387
+
389
388
  interface BaseBoxListProps {
390
389
  givenClass?: string;
391
390
  padded?: boolean;
@@ -446,12 +445,7 @@ interface FeedbackProps {
446
445
  imgSrc?: string;
447
446
  large: boolean;
448
447
  fluid: boolean;
449
- button?: {
450
- label?: string;
451
- primary: boolean;
452
- noLink: boolean;
453
- onClick?: () => void;
454
- };
448
+ button?: ButtonProps;
455
449
  cancel?: {
456
450
  label?: string;
457
451
  onClick?: () => void;
@@ -573,6 +567,12 @@ interface TooltipMenuProps {
573
567
 
574
568
  declare const TooltipMenu: FC<TooltipMenuProps>;
575
569
 
570
+ interface ArticlesListProps {
571
+ articles: ArticleProps[];
572
+ }
573
+
574
+ declare const ArticlesList: FC<ArticlesListProps>;
575
+
576
576
  interface ListStepsGetFormProps {
577
577
  steps: StepGetFormProps[];
578
578
  }
@@ -594,4 +594,12 @@ interface HowGetYourFormsSectionProps {
594
594
 
595
595
  declare const HowGetYourFormsSection: FC<HowGetYourFormsSectionProps>;
596
596
 
597
- export { AddButton, AddButtonProps, BaseBox, BaseBoxList, BaseBoxListProps, BaseBoxProps, BillCard, BillCardProps, BottomFixedBar, BottomFixedBarProps, BottomOverlay, BottomOverlayProps, BoxForm, BoxFormProps, 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, HowGetYourFormsSection, HowGetYourFormsSectionProps, IconImage, IconImageProps, InfoBox, InfoBoxProps, ListStepsGetForm, ListStepsGetFormProps, LogoText, LogoTextProps, MenuItemProps, MenuItems, MenuItemsSection, MenuItemsSectionProps, Message, MessageProps, MobileBottomBar, MobileBottomBarProps, Pagination, PaginationProps, PaypalButton, PaypalButtonProps, PricingCard, PricingCardProps, ProgressBar, ProgressBarProps, Radio, RadioProps, RemoveButton, RemoveButtonProps, RichTextInner, RichTextInnerProps, SearchSelect, SearchSelectProps, SideMenuTabProps, SidemenuTab, Snackbar, SnackbarProps, Spinner, SpinnerProps, StepGetForm, StepGetFormProps, TextArea, TextAreaProps, TextInput, TextInputProps, Toggle, ToggleProps, Tooltip, TooltipMenu, TooltipMenuProps, TooltipProps, TopBar, TopBarProps };
597
+ interface BlogSectionProps {
598
+ blogTitle: string;
599
+ blogCta: string;
600
+ articles: ArticlesListProps;
601
+ }
602
+
603
+ declare const BlogSection: FC<BlogSectionProps>;
604
+
605
+ export { AddButton, AddButtonProps, Article, ArticleProps, ArticlesList, ArticlesListProps, BaseBox, BaseBoxList, BaseBoxListProps, BaseBoxProps, BillCard, BillCardProps, BlogSection, BlogSectionProps, BottomFixedBar, BottomFixedBarProps, BottomOverlay, BottomOverlayProps, BoxForm, BoxFormProps, 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, HowGetYourFormsSection, HowGetYourFormsSectionProps, IconImage, IconImageProps, InfoBox, InfoBoxProps, ListStepsGetForm, ListStepsGetFormProps, LogoText, LogoTextProps, MenuItemProps, MenuItems, MenuItemsSection, MenuItemsSectionProps, Message, MessageProps, MobileBottomBar, MobileBottomBarProps, Pagination, PaginationProps, PaypalButton, PaypalButtonProps, PricingCard, PricingCardProps, ProgressBar, ProgressBarProps, Radio, RadioProps, RemoveButton, RemoveButtonProps, RichTextInner, RichTextInnerProps, SearchSelect, SearchSelectProps, SideMenuTabProps, SidemenuTab, Snackbar, SnackbarProps, Spinner, SpinnerProps, StepGetForm, StepGetFormProps, TextArea, TextAreaProps, TextInput, TextInputProps, Toggle, ToggleProps, Tooltip, TooltipMenu, TooltipMenuProps, TooltipProps, TopBar, TopBarProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "2.0.0",
3
+ "version": "2.1.1",
4
4
  "dependencies": {
5
5
  "@testing-library/jest-dom": "^5.16.5",
6
6
  "@tippyjs/react": "4.2.6",
@@ -39,13 +39,14 @@
39
39
  "@rollup/plugin-image": "^3.0.2",
40
40
  "@rollup/plugin-node-resolve": "^15.0.2",
41
41
  "@rollup/plugin-typescript": "^11.1.0",
42
- "@storybook/addon-actions": "^7.0.2",
43
- "@storybook/addon-controls": "^7.0.2",
44
- "@storybook/addon-essentials": "^7.0.2",
45
- "@storybook/addon-links": "^7.0.2",
46
- "@storybook/addon-mdx-gfm": "^7.0.2",
47
- "@storybook/react": "^7.0.2",
48
- "@storybook/react-webpack5": "^7.0.2",
42
+ "@storybook/addon-a11y": "^7.0.5",
43
+ "@storybook/addon-actions": "^7.0.5",
44
+ "@storybook/addon-controls": "^7.0.5",
45
+ "@storybook/addon-essentials": "^7.0.5",
46
+ "@storybook/addon-links": "^7.0.5",
47
+ "@storybook/addon-mdx-gfm": "^7.0.5",
48
+ "@storybook/react": "^7.0.5",
49
+ "@storybook/react-webpack5": "^7.0.5",
49
50
  "@testing-library/jest-dom": "^5.16.5",
50
51
  "@testing-library/react": "^14.0.0",
51
52
  "@types/node": "^18.15.11",
@@ -97,7 +98,7 @@
97
98
  "rollup-plugin-uglify": "^6.0.4",
98
99
  "rollup-plugin-visualizer": "^5.9.0",
99
100
  "sass-loader": "13.2.2",
100
- "storybook": "^7.0.2",
101
+ "storybook": "^7.0.5",
101
102
  "style-loader": "^3.3.2",
102
103
  "tslib": "^2.5.0",
103
104
  "typescript": "^5.0.4"