@dartech/arsenal-ui 0.3.17 → 0.3.18
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/package.json +1 -1
- package/src/lib/Forms/ControlAceEditor.d.ts +2 -1
- package/src/lib/Forms/ControlAutocomplete.d.ts +2 -1
- package/src/lib/Forms/ControlCheckbox.d.ts +2 -1
- package/src/lib/Forms/ControlDate.d.ts +2 -1
- package/src/lib/Forms/ControlDateTime.d.ts +2 -1
- package/src/lib/Forms/ControlInput.d.ts +1 -1
- package/src/lib/Forms/ControlRadio.d.ts +2 -1
- package/src/lib/Forms/ControlSelect.d.ts +2 -1
- package/src/lib/Forms/ControlSwitch.d.ts +2 -1
- package/src/lib/Forms/ControlTime.d.ts +2 -1
package/package.json
CHANGED
@@ -3,9 +3,10 @@ import AceEditor from 'react-ace';
|
|
3
3
|
import 'ace-builds/src-noconflict/mode-python';
|
4
4
|
import 'ace-builds/src-noconflict/theme-monokai';
|
5
5
|
import 'ace-builds/src-noconflict/ext-language_tools';
|
6
|
+
import { Control } from 'react-hook-form';
|
6
7
|
export interface ControlAceEditorProps {
|
7
8
|
name: string;
|
8
|
-
control: any
|
9
|
+
control: Control<any>;
|
9
10
|
mode?: string;
|
10
11
|
label?: string;
|
11
12
|
width?: string;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { AutocompleteProps } from '@mui/material/Autocomplete';
|
3
3
|
import { TextFieldProps } from '@mui/material/TextField';
|
4
|
+
import { Control } from 'react-hook-form';
|
4
5
|
import { ValidateFunc } from '../../interfaces';
|
5
6
|
/**
|
6
7
|
* This interface is referencing the [[ControlAutocomplete]] component props.
|
@@ -18,7 +19,7 @@ export type ControlAutocompleteProps = Omit<AutocompleteProps<unknown, boolean,
|
|
18
19
|
/**
|
19
20
|
* React Hook Form `control`
|
20
21
|
*/
|
21
|
-
control: any
|
22
|
+
control: Control<any>;
|
22
23
|
/**
|
23
24
|
* Is input required flag
|
24
25
|
*/
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { CheckboxProps } from '@mui/material/Checkbox';
|
3
|
+
import { Control } from 'react-hook-form';
|
3
4
|
import { ValidateFunc } from '../../interfaces';
|
4
5
|
/**
|
5
6
|
* This interface is referencing the [[ControlCheckbox]] component props.
|
@@ -17,7 +18,7 @@ export type ControlCheckboxProps = CheckboxProps & {
|
|
17
18
|
/**
|
18
19
|
* React Hook Form `control`
|
19
20
|
*/
|
20
|
-
control: any
|
21
|
+
control: Control<any>;
|
21
22
|
/**
|
22
23
|
* React Hook Form `defaultValue`
|
23
24
|
*/
|
@@ -1,4 +1,5 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
+
import { Control } from 'react-hook-form';
|
2
3
|
import { ValidateFunc } from '../../interfaces';
|
3
4
|
/**
|
4
5
|
* This interface is referencing the [[ControlRadioBtn]] component props.
|
@@ -8,7 +9,7 @@ export interface ControlRadioProps {
|
|
8
9
|
/**
|
9
10
|
* React Hook Form `control`
|
10
11
|
*/
|
11
|
-
control: any
|
12
|
+
control: Control<any>;
|
12
13
|
/**
|
13
14
|
* React Hook Form control `name` propery
|
14
15
|
*/
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { TextFieldProps } from '@mui/material/TextField';
|
3
|
+
import { Control } from 'react-hook-form';
|
3
4
|
import { ValidateFunc } from '../../interfaces';
|
4
5
|
/**
|
5
6
|
* This interface is referencing the [[ControlSelect]] component props.
|
@@ -17,7 +18,7 @@ export type ControlSelectProps = TextFieldProps & {
|
|
17
18
|
/**
|
18
19
|
* React Hook Form `control`
|
19
20
|
*/
|
20
|
-
control: any
|
21
|
+
control: Control<any>;
|
21
22
|
/**
|
22
23
|
* Is input required flag
|
23
24
|
*/
|
@@ -1,10 +1,11 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { SwitchProps } from '@mui/material/Switch';
|
3
|
+
import { Control } from 'react-hook-form';
|
3
4
|
type Props = SwitchProps & {
|
4
5
|
/**
|
5
6
|
* React Hook Form `control`
|
6
7
|
*/
|
7
|
-
control: any
|
8
|
+
control: Control<any>;
|
8
9
|
/**
|
9
10
|
* React Hook Form control `name` propery
|
10
11
|
*/
|