@abgov/react-components 4.1.0 → 4.3.0
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/common/styling.d.ts +9 -0
- package/index.d.ts +9 -5
- package/lib/badge/badge.d.ts +15 -2
- package/lib/block/block.d.ts +21 -0
- package/lib/button/button.d.ts +5 -5
- package/lib/button-group/button-group.d.ts +4 -4
- package/lib/callout/callout.d.ts +4 -3
- package/lib/card/card-actions.d.ts +2 -5
- package/lib/card/card-content.d.ts +1 -1
- package/lib/card/card-group.d.ts +2 -5
- package/lib/card/card-image.d.ts +1 -1
- package/lib/card/card.d.ts +8 -5
- package/lib/checkbox/checkbox.d.ts +5 -2
- package/lib/chip/chip.d.ts +4 -3
- package/lib/container/container.d.ts +3 -2
- package/lib/divider/divider.d.ts +4 -10
- package/lib/dropdown/dropdown-item.d.ts +22 -0
- package/lib/dropdown/dropdown.d.ts +19 -15
- package/lib/form/form-item.d.ts +3 -2
- package/lib/grid/grid.d.ts +20 -0
- package/lib/hero-banner/hero-banner.d.ts +2 -0
- package/lib/{icons → icon}/icon.d.ts +6 -5
- package/lib/{icons → icon-button}/icon-button.d.ts +4 -3
- package/lib/input/input.d.ts +7 -2
- package/lib/radio-group/radio-group.d.ts +5 -2
- package/lib/skeleton/skeleton.d.ts +4 -3
- package/lib/spacer/spacer.d.ts +19 -0
- package/lib/table/table.d.ts +19 -0
- package/lib/textarea/textarea.d.ts +5 -2
- package/package.json +1 -1
- package/react-components.esm.js +5555 -3175
- package/react-components.umd.js +5618 -3239
- package/lib/dropdown/dropdown-option.d.ts +0 -21
- package/lib/flex-column/flex-column.d.ts +0 -17
- package/lib/flex-row/flex-row.d.ts +0 -17
- package/lib/icons/index.d.ts +0 -2
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { Margins } from "../../common/styling";
|
|
3
|
+
interface WCProps extends Margins {
|
|
4
|
+
width?: string;
|
|
5
|
+
stickyheader?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare global {
|
|
8
|
+
namespace JSX {
|
|
9
|
+
interface IntrinsicElements {
|
|
10
|
+
"goa-table": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export interface TableProps extends Margins {
|
|
15
|
+
width?: string;
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export declare function GoATable(props: TableProps): JSX.Element;
|
|
19
|
+
export default GoATable;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { FC } from "react";
|
|
2
|
-
|
|
2
|
+
import { Margins } from "../../common/styling";
|
|
3
|
+
interface WCProps extends Margins {
|
|
3
4
|
ref: React.Ref<HTMLTextAreaElement>;
|
|
4
5
|
name: string;
|
|
5
6
|
value: string;
|
|
@@ -10,6 +11,7 @@ interface WCProps {
|
|
|
10
11
|
showcounter?: boolean;
|
|
11
12
|
maxcharcount?: number;
|
|
12
13
|
width?: string;
|
|
14
|
+
arialabel?: string;
|
|
13
15
|
}
|
|
14
16
|
declare global {
|
|
15
17
|
namespace JSX {
|
|
@@ -18,7 +20,7 @@ declare global {
|
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
|
-
interface Props {
|
|
23
|
+
interface Props extends Margins {
|
|
22
24
|
name: string;
|
|
23
25
|
value: string;
|
|
24
26
|
id?: string;
|
|
@@ -30,6 +32,7 @@ interface Props {
|
|
|
30
32
|
maxCharCount?: number;
|
|
31
33
|
width?: string;
|
|
32
34
|
testId?: string;
|
|
35
|
+
ariaLabel?: string;
|
|
33
36
|
onChange: (name: string, value: string) => void;
|
|
34
37
|
}
|
|
35
38
|
export declare const GoATextArea: FC<Props>;
|