@npm_leadtech/legal-lib-components 2.1.10 → 2.1.12
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/Checkbox/CheckboxProps.types.d.ts +2 -3
- package/dist/cjs/src/components/atoms/Checkbox/__stories__/Checkbox.stories.d.ts +5 -0
- package/dist/cjs/src/components/atoms/SidemenuTab/SideMenuTabProps.types.d.ts +2 -2
- package/dist/cjs/src/components/molecules/Pagination/PageSteps.d.ts +2 -2
- package/dist/cjs/src/components/molecules/TextInput/Input.d.ts +2 -1
- package/dist/cjs/src/components/molecules/TextInput/TextInput.d.ts +2 -2
- package/dist/cjs/src/components/molecules/TextInput/TextInputLabel.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/Checkbox/CheckboxProps.types.d.ts +2 -3
- package/dist/esm/src/components/atoms/Checkbox/__stories__/Checkbox.stories.d.ts +5 -0
- package/dist/esm/src/components/atoms/SidemenuTab/SideMenuTabProps.types.d.ts +2 -2
- package/dist/esm/src/components/molecules/Pagination/PageSteps.d.ts +2 -2
- package/dist/esm/src/components/molecules/TextInput/Input.d.ts +2 -1
- package/dist/esm/src/components/molecules/TextInput/TextInput.d.ts +2 -2
- package/dist/esm/src/components/molecules/TextInput/TextInputLabel.d.ts +1 -1
- package/dist/index.d.ts +5 -5
- package/package.json +1 -1
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { type ChangeEventHandler } from 'react';
|
|
2
1
|
export interface CheckboxProps {
|
|
3
2
|
id?: string;
|
|
4
3
|
name?: string;
|
|
5
4
|
className?: string;
|
|
6
|
-
value?:
|
|
5
|
+
value?: boolean;
|
|
7
6
|
validate?: boolean;
|
|
8
7
|
tooltip?: string;
|
|
9
8
|
isValidGroup?: boolean;
|
|
10
9
|
label?: string;
|
|
11
|
-
onChange?:
|
|
10
|
+
onChange?: (e: any) => void;
|
|
12
11
|
disabled?: boolean;
|
|
13
12
|
}
|
|
@@ -4,3 +4,8 @@ declare const meta: Meta<typeof Checkbox>;
|
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof Checkbox>;
|
|
6
6
|
export declare const Default: Story;
|
|
7
|
+
export declare const Checked: Story;
|
|
8
|
+
export declare const Disabled: Story;
|
|
9
|
+
export declare const Invalid: Story;
|
|
10
|
+
export declare const InvalidGroup: Story;
|
|
11
|
+
export declare const WithTooltip: Story;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { type MouseEventHandler } from 'react';
|
|
2
2
|
export interface SideMenuTabProps {
|
|
3
3
|
text?: string;
|
|
4
4
|
active?: boolean;
|
|
5
5
|
mobile?: boolean;
|
|
6
6
|
menu?: any;
|
|
7
|
-
onClick?:
|
|
7
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
8
8
|
image?: React.ReactNode;
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type FC } from 'react';
|
|
1
|
+
import { type FC, type MouseEventHandler } from 'react';
|
|
2
2
|
export interface PageStepsProps {
|
|
3
3
|
activePage: number;
|
|
4
4
|
totalPages: number;
|
|
5
|
-
onClick:
|
|
5
|
+
onClick: MouseEventHandler<HTMLSpanElement>;
|
|
6
6
|
ellipsisControls?: string;
|
|
7
7
|
extendedMaxSteps?: number;
|
|
8
8
|
}
|
|
@@ -6,9 +6,10 @@ interface InputProps {
|
|
|
6
6
|
value: any;
|
|
7
7
|
type: 'password' | 'text';
|
|
8
8
|
disabled: boolean;
|
|
9
|
+
className: string;
|
|
9
10
|
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
10
11
|
onClick: (e: React.MouseEvent<HTMLInputElement>) => void;
|
|
11
12
|
onBlur: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
12
13
|
}
|
|
13
|
-
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<
|
|
14
|
+
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
14
15
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type TextInputProps } from './TextInputProps.types';
|
|
3
|
-
import './
|
|
4
|
-
declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<
|
|
3
|
+
import './TextInput.scss';
|
|
4
|
+
declare const TextInput: React.ForwardRefExoticComponent<TextInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
5
5
|
export default TextInput;
|