@npm_leadtech/legal-lib-components 2.1.8 → 2.1.9
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 +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/components/atoms/Button/ButtonProps.types.d.ts +2 -1
- package/dist/cjs/src/components/atoms/DatePickerCustom/DatePickerCustom.d.ts +2 -5
- package/dist/cjs/src/components/atoms/LogoText/LogoTextProps.types.d.ts +3 -3
- package/dist/cjs/src/components/atoms/MenuItems/MenuItemProps.types.d.ts +9 -8
- package/dist/cjs/src/components/atoms/Message/MessageProps.types.d.ts +1 -1
- package/dist/cjs/src/components/atoms/Message/__stories__/Message.stories.d.ts +1 -1
- package/dist/cjs/src/components/atoms/SidemenuTab/SideMenuTabProps.types.d.ts +4 -4
- package/dist/cjs/src/components/atoms/TextArea/TextAreaProps.types.d.ts +6 -6
- package/dist/cjs/src/components/atoms/TextArea/__stories__/TextArea.stories.d.ts +1 -1
- package/dist/cjs/src/components/atoms/Tooltip/TooltipProps.types.d.ts +2 -2
- package/dist/cjs/src/components/molecules/Feedback/__stories__/Feedback.stories.d.ts +1 -1
- package/dist/cjs/src/components/molecules/Snackbar/SnackbarProps.types.d.ts +2 -2
- package/dist/cjs/src/components/molecules/Snackbar/__stories__/Snackbar.stories.d.ts +1 -1
- package/dist/cjs/src/components/molecules/TextInput/stories/TextInput.stories.d.ts +1 -1
- 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 +2 -1
- package/dist/esm/src/components/atoms/DatePickerCustom/DatePickerCustom.d.ts +2 -5
- package/dist/esm/src/components/atoms/LogoText/LogoTextProps.types.d.ts +3 -3
- package/dist/esm/src/components/atoms/MenuItems/MenuItemProps.types.d.ts +9 -8
- package/dist/esm/src/components/atoms/Message/MessageProps.types.d.ts +1 -1
- package/dist/esm/src/components/atoms/Message/__stories__/Message.stories.d.ts +1 -1
- package/dist/esm/src/components/atoms/SidemenuTab/SideMenuTabProps.types.d.ts +4 -4
- package/dist/esm/src/components/atoms/TextArea/TextAreaProps.types.d.ts +6 -6
- package/dist/esm/src/components/atoms/TextArea/__stories__/TextArea.stories.d.ts +1 -1
- package/dist/esm/src/components/atoms/Tooltip/TooltipProps.types.d.ts +2 -2
- package/dist/esm/src/components/molecules/Feedback/__stories__/Feedback.stories.d.ts +1 -1
- package/dist/esm/src/components/molecules/Snackbar/SnackbarProps.types.d.ts +2 -2
- package/dist/esm/src/components/molecules/Snackbar/__stories__/Snackbar.stories.d.ts +1 -1
- package/dist/esm/src/components/molecules/TextInput/stories/TextInput.stories.d.ts +1 -1
- package/dist/index.d.ts +31 -32
- package/package.json +15 -4
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export interface ButtonProps {
|
|
3
|
-
label
|
|
3
|
+
label: string;
|
|
4
4
|
dataQa?: string;
|
|
5
5
|
labelMobile?: string;
|
|
6
6
|
link?: string;
|
|
7
|
+
LinkComponent?: any;
|
|
7
8
|
noLink?: boolean;
|
|
8
9
|
noLinkNoFunc?: boolean;
|
|
9
10
|
onClick?: (functionParameters?: any) => void;
|
|
@@ -5,11 +5,8 @@ import './DatePickerCustom.scss';
|
|
|
5
5
|
declare class DatePickerCustom extends Component<DatePickerCustomProps> {
|
|
6
6
|
constructor(props: DatePickerCustomProps);
|
|
7
7
|
componentDidMount(): void;
|
|
8
|
-
returnYears: (currentYear:
|
|
9
|
-
handleChange: (date:
|
|
10
|
-
handleFocus: ({ focused }: {
|
|
11
|
-
focused: any;
|
|
12
|
-
}) => void;
|
|
8
|
+
returnYears: (currentYear: number) => JSX.Element[];
|
|
9
|
+
handleChange: (date: Date) => void;
|
|
13
10
|
addDays: (date: any, days: any) => Date;
|
|
14
11
|
render(): JSX.Element;
|
|
15
12
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export interface MenuItemProps {
|
|
2
2
|
spacing?: boolean;
|
|
3
|
-
list:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
list: MenuListItem[];
|
|
4
|
+
}
|
|
5
|
+
export interface MenuListItem {
|
|
6
|
+
className?: string;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
image?: any;
|
|
9
|
+
content?: string;
|
|
10
|
+
href?: string;
|
|
11
|
+
dataQA?: string;
|
|
11
12
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export interface SideMenuTabProps {
|
|
3
|
-
text
|
|
3
|
+
text?: string;
|
|
4
4
|
active?: boolean;
|
|
5
|
-
mobile
|
|
5
|
+
mobile?: boolean;
|
|
6
6
|
menu?: any;
|
|
7
|
-
onClick
|
|
8
|
-
image
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
image?: React.ReactNode;
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export interface TextAreaProps {
|
|
3
|
-
value
|
|
3
|
+
value?: string;
|
|
4
4
|
label?: string;
|
|
5
|
-
name
|
|
6
|
-
placeholder
|
|
5
|
+
name?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
7
|
tooltip?: string;
|
|
8
8
|
customClass?: string;
|
|
9
9
|
errorMessage?: string;
|
|
10
|
-
validate
|
|
11
|
-
disabled
|
|
12
|
-
onChange
|
|
10
|
+
validate?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
13
13
|
}
|
|
@@ -4,6 +4,6 @@ declare const meta: Meta<typeof TextArea>;
|
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof TextArea>;
|
|
6
6
|
export declare const Default: Story;
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const WithError: Story;
|
|
8
8
|
export declare const WithLabel: Story;
|
|
9
9
|
export declare const WithTooltip: Story;
|
|
@@ -6,11 +6,11 @@ export interface TooltipProps {
|
|
|
6
6
|
inverted?: boolean;
|
|
7
7
|
allowHTML?: boolean;
|
|
8
8
|
interactive?: boolean;
|
|
9
|
-
hideOnClick?: boolean |
|
|
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
12
|
content?: React.ReactNode | string | any;
|
|
13
|
-
children?: React.
|
|
13
|
+
children?: React.ReactElement<any>;
|
|
14
14
|
onClick?: () => void;
|
|
15
15
|
onClickOutside?: () => void;
|
|
16
16
|
}
|
|
@@ -6,7 +6,7 @@ type Story = StoryObj<typeof Snackbar>;
|
|
|
6
6
|
export declare const Default: Story;
|
|
7
7
|
export declare const WithoutType: Story;
|
|
8
8
|
export declare const TypeSuccess: Story;
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const WithError: Story;
|
|
10
10
|
export declare const TypeReminder: Story;
|
|
11
11
|
export declare const WithButton: Story;
|
|
12
12
|
export declare const WithButtonSuccess: Story;
|
|
@@ -5,7 +5,7 @@ export default meta;
|
|
|
5
5
|
type Story = StoryObj<typeof TextInput>;
|
|
6
6
|
export declare const Default: Story;
|
|
7
7
|
export declare const Password: Story;
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const WithError: Story;
|
|
9
9
|
export declare const WithLabel: Story;
|
|
10
10
|
export declare const WithTooltip: Story;
|
|
11
11
|
export declare const WithDialogMenu: Story;
|