@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.
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/components/atoms/Button/ButtonProps.types.d.ts +4 -15
- package/dist/cjs/src/components/molecules/Article/Article.d.ts +5 -0
- package/dist/cjs/src/components/molecules/Article/ArticleProps.types.d.ts +7 -0
- package/dist/cjs/src/components/molecules/Article/__stories__/Article.stories.d.ts +6 -0
- package/dist/cjs/src/components/molecules/Article/index.d.ts +2 -0
- package/dist/cjs/src/components/molecules/Feedback/FeedbackProps.types.d.ts +2 -6
- package/dist/cjs/src/components/molecules/index.d.ts +1 -0
- package/dist/cjs/src/components/organisms/ArticlesList/ArticlesList.d.ts +5 -0
- package/dist/cjs/src/components/organisms/ArticlesList/ArticlesListProps.types.d.ts +4 -0
- package/dist/cjs/src/components/organisms/ArticlesList/__stories__/ArticlesList.stories.d.ts +6 -0
- package/dist/cjs/src/components/organisms/ArticlesList/index.d.ts +2 -0
- package/dist/cjs/src/components/organisms/index.d.ts +1 -0
- package/dist/cjs/src/components/sections/BlogSection/BlogSection.d.ts +5 -0
- package/dist/cjs/src/components/sections/BlogSection/BlogSectionProps.types.d.ts +6 -0
- package/dist/cjs/src/components/sections/BlogSection/__stories__/BlogSection.stories.d.ts +6 -0
- package/dist/cjs/src/components/sections/BlogSection/index.d.ts +2 -0
- package/dist/cjs/src/components/sections/index.d.ts +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/components/atoms/Button/ButtonProps.types.d.ts +4 -15
- package/dist/esm/src/components/molecules/Article/Article.d.ts +5 -0
- package/dist/esm/src/components/molecules/Article/ArticleProps.types.d.ts +7 -0
- package/dist/esm/src/components/molecules/Article/__stories__/Article.stories.d.ts +6 -0
- package/dist/esm/src/components/molecules/Article/index.d.ts +2 -0
- package/dist/esm/src/components/molecules/Feedback/FeedbackProps.types.d.ts +2 -6
- package/dist/esm/src/components/molecules/index.d.ts +1 -0
- package/dist/esm/src/components/organisms/ArticlesList/ArticlesList.d.ts +5 -0
- package/dist/esm/src/components/organisms/ArticlesList/ArticlesListProps.types.d.ts +4 -0
- package/dist/esm/src/components/organisms/ArticlesList/__stories__/ArticlesList.stories.d.ts +6 -0
- package/dist/esm/src/components/organisms/ArticlesList/index.d.ts +2 -0
- package/dist/esm/src/components/organisms/index.d.ts +1 -0
- package/dist/esm/src/components/sections/BlogSection/BlogSection.d.ts +5 -0
- package/dist/esm/src/components/sections/BlogSection/BlogSectionProps.types.d.ts +6 -0
- package/dist/esm/src/components/sections/BlogSection/__stories__/BlogSection.stories.d.ts +6 -0
- package/dist/esm/src/components/sections/BlogSection/index.d.ts +2 -0
- package/dist/esm/src/components/sections/index.d.ts +1 -0
- package/dist/index.d.ts +30 -22
- 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
|
-
|
|
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
|
-
|
|
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
|
}
|
|
@@ -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;
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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-
|
|
43
|
-
"@storybook/addon-
|
|
44
|
-
"@storybook/addon-
|
|
45
|
-
"@storybook/addon-
|
|
46
|
-
"@storybook/addon-
|
|
47
|
-
"@storybook/
|
|
48
|
-
"@storybook/react
|
|
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.
|
|
101
|
+
"storybook": "^7.0.5",
|
|
101
102
|
"style-loader": "^3.3.2",
|
|
102
103
|
"tslib": "^2.5.0",
|
|
103
104
|
"typescript": "^5.0.4"
|