@abgov/react-components 6.2.2-alpha.4 → 6.2.2-alpha.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.
- package/index.d.ts +1 -1
- package/index.js +7 -5
- package/index.js.map +1 -1
- package/index.mjs +7 -5
- package/index.mjs.map +1 -1
- package/lib/date-picker/date-picker.d.ts +3 -0
- package/lib/dropdown/dropdown.d.ts +3 -0
- package/lib/link/link.d.ts +5 -3
- package/lib/popover/popover.d.ts +3 -0
- package/lib/text/text.d.ts +2 -0
- package/lib/textarea/textarea.d.ts +2 -2
- package/package.json +1 -1
|
@@ -25,6 +25,9 @@ export interface GoabDatePickerProps extends Margins {
|
|
|
25
25
|
min?: Date;
|
|
26
26
|
max?: Date;
|
|
27
27
|
testId?: string;
|
|
28
|
+
/***
|
|
29
|
+
* @deprecated This property has no effect and will be removed in a future version
|
|
30
|
+
*/
|
|
28
31
|
relative?: boolean;
|
|
29
32
|
disabled?: boolean;
|
|
30
33
|
onChange: (detail: GoabDatePickerOnChangeDetail) => void;
|
|
@@ -44,6 +44,9 @@ export interface GoabDropdownProps extends Margins {
|
|
|
44
44
|
placeholder?: string;
|
|
45
45
|
testId?: string;
|
|
46
46
|
width?: string;
|
|
47
|
+
/***
|
|
48
|
+
* @deprecated This property has no effect and will be removed in a future version
|
|
49
|
+
*/
|
|
47
50
|
relative?: boolean;
|
|
48
51
|
}
|
|
49
52
|
export declare function GoabDropdown(props: GoabDropdownProps): JSX.Element;
|
package/lib/link/link.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { ReactNode } from 'react';
|
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
5
|
leadingicon?: GoabIconType;
|
|
6
6
|
trailingicon?: GoabIconType;
|
|
7
|
+
testid?: string;
|
|
7
8
|
}
|
|
8
9
|
declare global {
|
|
9
10
|
namespace JSX {
|
|
@@ -12,10 +13,11 @@ declare global {
|
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
15
|
}
|
|
15
|
-
interface
|
|
16
|
+
interface GoabLinkProps extends Margins {
|
|
16
17
|
leadingIcon?: GoabIconType;
|
|
17
18
|
trailingIcon?: GoabIconType;
|
|
19
|
+
testId?: string;
|
|
18
20
|
children: ReactNode;
|
|
19
21
|
}
|
|
20
|
-
export declare function
|
|
21
|
-
export default
|
|
22
|
+
export declare function GoabLink(props: GoabLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default GoabLink;
|
package/lib/popover/popover.d.ts
CHANGED
|
@@ -24,6 +24,9 @@ export interface GoabPopoverProps extends Margins {
|
|
|
24
24
|
padded?: boolean;
|
|
25
25
|
position?: GoabPopoverPosition;
|
|
26
26
|
children: ReactNode;
|
|
27
|
+
/***
|
|
28
|
+
* @deprecated This property has no effect and will be removed in a future version
|
|
29
|
+
*/
|
|
27
30
|
relative?: boolean;
|
|
28
31
|
}
|
|
29
32
|
export declare function GoabPopover({ target, testId, maxWidth, minWidth, padded, position, relative, children, mt, mr, mb, ml, }: GoabPopoverProps): JSX.Element;
|
package/lib/text/text.d.ts
CHANGED
|
@@ -15,7 +15,9 @@ declare global {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
interface GoATextProps extends Margins {
|
|
18
|
+
/** @deprecated Please use 'tag' property instead */
|
|
18
19
|
as?: GoabTextTextElement | GoabTextHeadingElement;
|
|
20
|
+
tag?: GoabTextTextElement | GoabTextHeadingElement;
|
|
19
21
|
size?: GoabTextSize;
|
|
20
22
|
maxWidth?: GoabTextMaxWidth;
|
|
21
23
|
color?: GoabTextColor;
|
|
@@ -41,5 +41,5 @@ export interface GoabTextAreaProps extends Margins {
|
|
|
41
41
|
onChange: (event: GoabTextAreaOnChangeDetail) => void;
|
|
42
42
|
onKeyPress?: (event: GoabTextAreaOnKeyPressDetail) => void;
|
|
43
43
|
}
|
|
44
|
-
export declare function
|
|
45
|
-
export default
|
|
44
|
+
export declare function GoabTextArea({ name, value, placeholder, rows, readOnly, disabled, countBy, maxCount, width, maxWidth, testId, error, ariaLabel, mt, mr, mb, ml, onChange, onKeyPress, }: GoabTextAreaProps): JSX.Element;
|
|
45
|
+
export default GoabTextArea;
|