@npm_leadtech/legal-lib-components 2.15.6 → 2.15.7
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/SearchSelect/SearchSelectProps.types.d.ts +0 -3
- package/dist/cjs/src/components/molecules/TextInput/Input.d.ts +3 -1
- package/dist/cjs/src/components/molecules/TextInput/TextInputProps.types.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/SearchSelect/SearchSelectProps.types.d.ts +0 -3
- package/dist/esm/src/components/molecules/TextInput/Input.d.ts +3 -1
- package/dist/esm/src/components/molecules/TextInput/TextInputProps.types.d.ts +1 -1
- package/dist/index.d.ts +1 -3
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type MenuPlacement } from './SearchSelect';
|
|
3
|
-
type DefaultValue = Record<string, string | null | undefined>;
|
|
4
3
|
export interface SearchSelectProps {
|
|
5
4
|
id?: string;
|
|
6
5
|
name: string;
|
|
@@ -21,7 +20,5 @@ export interface SearchSelectProps {
|
|
|
21
20
|
defaultMenuIsOpen?: boolean;
|
|
22
21
|
tooltipBesideLabel?: React.ReactNode;
|
|
23
22
|
width?: boolean;
|
|
24
|
-
defaultValue: DefaultValue;
|
|
25
23
|
menuPlacement: MenuPlacement;
|
|
26
24
|
}
|
|
27
|
-
export {};
|
|
@@ -4,12 +4,14 @@ interface InputProps {
|
|
|
4
4
|
placeholder: string;
|
|
5
5
|
maxLength: number;
|
|
6
6
|
value: any;
|
|
7
|
-
type: 'password' | 'text' | 'number';
|
|
7
|
+
type: 'password' | 'text' | 'number' | 'tel';
|
|
8
8
|
disabled: boolean;
|
|
9
9
|
className: string;
|
|
10
|
+
validation: string;
|
|
10
11
|
onChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
11
12
|
onClick: (e: React.MouseEvent<HTMLInputElement>) => void;
|
|
12
13
|
onBlur: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
14
|
+
onKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
13
15
|
}
|
|
14
16
|
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
15
17
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -341,7 +341,6 @@ interface RichTextStrapiProps {
|
|
|
341
341
|
|
|
342
342
|
declare const RichTextStrapi: FC<RichTextStrapiProps>;
|
|
343
343
|
|
|
344
|
-
type DefaultValue = Record<string, string | null | undefined>;
|
|
345
344
|
interface SearchSelectProps {
|
|
346
345
|
id?: string;
|
|
347
346
|
name: string;
|
|
@@ -362,7 +361,6 @@ interface SearchSelectProps {
|
|
|
362
361
|
defaultMenuIsOpen?: boolean;
|
|
363
362
|
tooltipBesideLabel?: React.ReactNode;
|
|
364
363
|
width?: boolean;
|
|
365
|
-
defaultValue: DefaultValue;
|
|
366
364
|
menuPlacement: MenuPlacement;
|
|
367
365
|
}
|
|
368
366
|
|
|
@@ -652,7 +650,7 @@ interface TextInputProps {
|
|
|
652
650
|
notes?: string;
|
|
653
651
|
maxLength?: any;
|
|
654
652
|
value?: any;
|
|
655
|
-
type?: 'password' | 'text' | 'number';
|
|
653
|
+
type?: 'password' | 'text' | 'number' | 'tel';
|
|
656
654
|
validate?: boolean;
|
|
657
655
|
isValidGroup?: boolean;
|
|
658
656
|
disabled?: boolean;
|