@abgov/react-components 7.4.0 → 8.0.0-dev.1
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/README.md +2 -4
- package/index.js +26 -74
- package/index.js.map +1 -1
- package/index.mjs +26 -74
- package/index.mjs.map +1 -1
- package/lib/accordion/accordion.d.ts +3 -3
- package/lib/app-header/app-header.d.ts +2 -11
- package/lib/badge/badge.d.ts +0 -1
- package/lib/button/button.d.ts +5 -3
- package/lib/button-group/button-group.d.ts +3 -3
- package/lib/calendar/calendar.d.ts +0 -1
- package/lib/callout/callout.d.ts +2 -6
- package/lib/checkbox/checkbox.d.ts +4 -5
- package/lib/checkbox-list/checkbox-list.d.ts +7 -5
- package/lib/data-grid/data-grid.d.ts +2 -2
- package/lib/date-picker/date-picker.d.ts +3 -4
- package/lib/drawer/drawer.d.ts +1 -2
- package/lib/dropdown/dropdown-item.d.ts +1 -1
- package/lib/dropdown/dropdown.d.ts +5 -3
- package/lib/file-upload-card/file-upload-card.d.ts +0 -1
- package/lib/file-upload-input/file-upload-input.d.ts +0 -1
- package/lib/filter-chip/filter-chip.d.ts +0 -1
- package/lib/footer/footer.d.ts +0 -4
- package/lib/form-item/form-item.d.ts +0 -1
- package/lib/icon/icon.d.ts +4 -1
- package/lib/input/input.d.ts +6 -4
- package/lib/modal/modal.d.ts +0 -1
- package/lib/notification/notification.d.ts +0 -1
- package/lib/pagination/pagination.d.ts +0 -1
- package/lib/push-drawer/push-drawer.d.ts +0 -1
- package/lib/radio-group/radio-group.d.ts +3 -4
- package/lib/radio-group/radio.d.ts +3 -4
- package/lib/side-menu/side-menu.d.ts +0 -1
- package/lib/side-menu-group/side-menu-group.d.ts +0 -1
- package/lib/side-menu-heading/side-menu-heading.d.ts +0 -1
- package/lib/table/table-sort-header.d.ts +0 -1
- package/lib/table/table.d.ts +0 -1
- package/lib/tabs/tabs.d.ts +0 -1
- package/lib/text/text.d.ts +1 -1
- package/lib/textarea/textarea.d.ts +4 -5
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GoabTextAreaCountBy, GoabTextAreaOnChangeDetail, GoabTextAreaOnKeyPressDetail, GoabTextAreaOnBlurDetail, GoabTextAreaOnFocusDetail, GoabTextAreaSize, Margins, DataAttributes } from '@abgov/ui-components-common';
|
|
2
2
|
import { JSX } from 'react';
|
|
3
3
|
interface WCProps extends Margins {
|
|
4
|
-
name
|
|
4
|
+
name?: string;
|
|
5
5
|
value?: string;
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
rows?: number;
|
|
@@ -16,7 +16,6 @@ interface WCProps extends Margins {
|
|
|
16
16
|
autocomplete?: string;
|
|
17
17
|
testid?: string;
|
|
18
18
|
size?: GoabTextAreaSize;
|
|
19
|
-
version?: string;
|
|
20
19
|
}
|
|
21
20
|
declare module "react" {
|
|
22
21
|
namespace JSX {
|
|
@@ -28,8 +27,8 @@ declare module "react" {
|
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
29
|
export interface GoabTextAreaProps extends Margins, DataAttributes {
|
|
31
|
-
/**
|
|
32
|
-
name
|
|
30
|
+
/** Name of the input value that is received in the change event. If omitted, a unique name is generated. */
|
|
31
|
+
name?: string;
|
|
33
32
|
/** Bound to the current value of the textarea. */
|
|
34
33
|
value?: string;
|
|
35
34
|
/** Sets the id attribute on the textarea element. */
|
|
@@ -50,7 +49,7 @@ export interface GoabTextAreaProps extends Margins, DataAttributes {
|
|
|
50
49
|
maxWidth?: string;
|
|
51
50
|
/** Sets a data-testid attribute for automated testing. */
|
|
52
51
|
testId?: string;
|
|
53
|
-
/** Defines how the text will be translated for the screen reader.
|
|
52
|
+
/** Defines how the text will be translated for the screen reader. */
|
|
54
53
|
ariaLabel?: string;
|
|
55
54
|
/** Counting interval for characters or words, specifying whether to count every character or word. */
|
|
56
55
|
countBy?: GoabTextAreaCountBy;
|