@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;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import React$1, { FC,
|
|
2
|
+
import React$1, { FC, Component, ReactNode, MouseEventHandler } from 'react';
|
|
3
3
|
import { IGatsbyImageData } from 'gatsby-plugin-image';
|
|
4
4
|
|
|
5
5
|
interface AddButtonProps {
|
|
@@ -101,12 +101,12 @@ interface CheckboxProps {
|
|
|
101
101
|
id?: string;
|
|
102
102
|
name?: string;
|
|
103
103
|
className?: string;
|
|
104
|
-
value?:
|
|
104
|
+
value?: boolean;
|
|
105
105
|
validate?: boolean;
|
|
106
106
|
tooltip?: string;
|
|
107
107
|
isValidGroup?: boolean;
|
|
108
108
|
label?: string;
|
|
109
|
-
onChange?:
|
|
109
|
+
onChange?: (e: any) => void;
|
|
110
110
|
disabled?: boolean;
|
|
111
111
|
}
|
|
112
112
|
|
|
@@ -318,7 +318,7 @@ interface SideMenuTabProps {
|
|
|
318
318
|
active?: boolean;
|
|
319
319
|
mobile?: boolean;
|
|
320
320
|
menu?: any;
|
|
321
|
-
onClick?:
|
|
321
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
322
322
|
image?: React.ReactNode;
|
|
323
323
|
children?: React.ReactNode;
|
|
324
324
|
}
|
|
@@ -568,7 +568,7 @@ interface TextInputProps {
|
|
|
568
568
|
children?: React.ReactNode;
|
|
569
569
|
}
|
|
570
570
|
|
|
571
|
-
declare const TextInput: React$1.ForwardRefExoticComponent<TextInputProps & React$1.RefAttributes<
|
|
571
|
+
declare const TextInput: React$1.ForwardRefExoticComponent<TextInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
572
572
|
|
|
573
573
|
interface TooltipMenuProps {
|
|
574
574
|
options: Array<{
|