@abgov/react-components 4.0.0-alpha.76 → 4.0.0-alpha.78
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/lib/form/form-item.d.ts +3 -2
- package/lib/input/input.d.ts +0 -4
- package/package.json +1 -1
- package/react-components.esm.js +338 -533
- package/react-components.umd.js +338 -533
package/lib/form/form-item.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
|
+
declare type RequirementType = 'optional' | 'required';
|
|
2
3
|
interface WCProps {
|
|
3
4
|
label: string;
|
|
4
|
-
|
|
5
|
+
requirement?: RequirementType;
|
|
5
6
|
error?: string;
|
|
6
7
|
helptext?: string;
|
|
7
8
|
}
|
|
@@ -14,7 +15,7 @@ declare global {
|
|
|
14
15
|
}
|
|
15
16
|
interface GoAFormItemProps {
|
|
16
17
|
label: string;
|
|
17
|
-
|
|
18
|
+
requirement?: RequirementType;
|
|
18
19
|
error?: string;
|
|
19
20
|
helpText?: string;
|
|
20
21
|
children?: React.ReactNode;
|
package/lib/input/input.d.ts
CHANGED
|
@@ -18,8 +18,6 @@ interface WCProps {
|
|
|
18
18
|
error?: boolean;
|
|
19
19
|
readonly?: boolean;
|
|
20
20
|
focused?: boolean;
|
|
21
|
-
showcounter?: boolean;
|
|
22
|
-
maxcharcount?: number;
|
|
23
21
|
handletrailingiconclick: boolean;
|
|
24
22
|
width?: string;
|
|
25
23
|
prefix?: string;
|
|
@@ -50,8 +48,6 @@ interface BaseProps {
|
|
|
50
48
|
readonly?: boolean;
|
|
51
49
|
error?: boolean;
|
|
52
50
|
width?: string;
|
|
53
|
-
showCounter?: boolean;
|
|
54
|
-
maxCharCount?: number;
|
|
55
51
|
prefix?: string;
|
|
56
52
|
suffix?: string;
|
|
57
53
|
testId?: string;
|
package/package.json
CHANGED