@npm_leadtech/legal-lib-components 2.15.5 → 2.15.6

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