@dfds-ui/forms 2.0.15-alpha.6560009b → 2.0.15-alpha.81042bed
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/cjs/select-field/AsyncSelectField.d.ts +2 -2
- package/cjs/select-field/AsyncSelectField.js +9 -9
- package/cjs/select-field/SelectField.d.ts +41 -41
- package/cjs/select-field/SelectField.js +27 -27
- package/cjs/types/field.d.ts +24 -24
- package/package.json +7 -7
- package/select-field/AsyncSelectField.d.ts +2 -2
- package/select-field/AsyncSelectField.js +11 -9
- package/select-field/SelectField.d.ts +41 -41
- package/select-field/SelectField.js +28 -28
- package/types/field.d.ts +24 -24
package/types/field.d.ts
CHANGED
|
@@ -4,25 +4,11 @@ import { ReactNode } from 'react';
|
|
|
4
4
|
*/
|
|
5
5
|
export declare type BaseFieldProps = {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Field label.
|
|
12
|
-
*/
|
|
13
|
-
label?: ReactNode;
|
|
14
|
-
/**
|
|
15
|
-
* Indicates if the field is required. Will add an asterisk to the label unless `hideAsterisk` is set to `true`.
|
|
16
|
-
*/
|
|
17
|
-
required?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* If set to `true` the asterisk will never be shown.
|
|
20
|
-
*/
|
|
21
|
-
hideAsterisk?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Hint for the field. For Input elements this maps to the `placeholder` attribute.
|
|
7
|
+
* Assistive text describing the field.
|
|
8
|
+
*
|
|
9
|
+
* NB! If space is needed for alignment you can use a space char (' ') here.
|
|
24
10
|
*/
|
|
25
|
-
|
|
11
|
+
assistiveText?: string;
|
|
26
12
|
/**
|
|
27
13
|
* Indicates that the field is disabled.
|
|
28
14
|
*/
|
|
@@ -31,12 +17,6 @@ export declare type BaseFieldProps = {
|
|
|
31
17
|
* Sets an error message (if assistive text applies it will be replaced by this).
|
|
32
18
|
*/
|
|
33
19
|
errorMessage?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Assistive text describing the field.
|
|
36
|
-
*
|
|
37
|
-
* NB! If space is needed for alignment you can use a space char (' ') here.
|
|
38
|
-
*/
|
|
39
|
-
assistiveText?: string;
|
|
40
20
|
/**
|
|
41
21
|
* Additional help.
|
|
42
22
|
*
|
|
@@ -49,4 +29,24 @@ export declare type BaseFieldProps = {
|
|
|
49
29
|
* **This is an experimental prop and the behavior might change.**
|
|
50
30
|
*/
|
|
51
31
|
helpPlacement?: 'top' | 'right';
|
|
32
|
+
/**
|
|
33
|
+
* If set to `true` the asterisk will never be shown.
|
|
34
|
+
*/
|
|
35
|
+
hideAsterisk?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Field label.
|
|
38
|
+
*/
|
|
39
|
+
label?: ReactNode;
|
|
40
|
+
/**
|
|
41
|
+
* Field name.
|
|
42
|
+
*/
|
|
43
|
+
name: string;
|
|
44
|
+
/**
|
|
45
|
+
* Hint for the field. For Input elements this maps to the `placeholder` attribute.
|
|
46
|
+
*/
|
|
47
|
+
placeholder?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Indicates if the field is required. Will add an asterisk to the label unless `hideAsterisk` is set to `true`.
|
|
50
|
+
*/
|
|
51
|
+
required?: boolean;
|
|
52
52
|
};
|