@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.
@@ -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 {};
@@ -12,7 +12,7 @@ export interface TextInputProps {
12
12
  notes?: string;
13
13
  maxLength?: any;
14
14
  value?: any;
15
- type?: 'password' | 'text' | 'number';
15
+ type?: 'password' | 'text' | 'number' | 'tel';
16
16
  validate?: boolean;
17
17
  isValidGroup?: boolean;
18
18
  disabled?: boolean;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-lib-components",
3
- "version": "2.15.6",
3
+ "version": "2.15.7",
4
4
  "dependencies": {
5
5
  "@testing-library/jest-dom": "^5.16.5",
6
6
  "@tippyjs/react": "4.2.6",