@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';