@abgov/react-components 4.11.0 → 4.12.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/index.d.ts +3 -0
- package/lib/accordion/accordion.d.ts +1 -0
- package/lib/popover/popover.d.ts +1 -0
- package/lib/tab/tab.d.ts +17 -0
- package/lib/tabs/tabs.d.ts +17 -0
- package/lib/tooltip/tooltip.d.ts +22 -0
- package/package.json +1 -1
- package/react-components.esm.js +197 -129
- package/react-components.umd.js +199 -130
package/index.d.ts
CHANGED
|
@@ -49,5 +49,8 @@ export * from "./lib/spinner/spinner";
|
|
|
49
49
|
export * from "./lib/table/table";
|
|
50
50
|
export * from "./lib/table/table-sort-header";
|
|
51
51
|
export * from "./lib/textarea/textarea";
|
|
52
|
+
export * from "./lib/tooltip/tooltip";
|
|
52
53
|
export * from "./lib/two-column-layout/two-column-layout";
|
|
53
54
|
export * from "./lib/three-column-layout/three-column-layout";
|
|
55
|
+
export * from "./lib/tabs/tabs";
|
|
56
|
+
export * from "./lib/tab/tab";
|
package/lib/popover/popover.d.ts
CHANGED
package/lib/tab/tab.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { FC } from "react";
|
|
2
|
+
interface WCProps {
|
|
3
|
+
heading?: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
declare global {
|
|
6
|
+
namespace JSX {
|
|
7
|
+
interface IntrinsicElements {
|
|
8
|
+
"goa-tab": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export interface TabItemProps {
|
|
13
|
+
heading?: React.ReactNode;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare const GoATab: FC<TabItemProps>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface WCProps {
|
|
3
|
+
initialtab?: number;
|
|
4
|
+
}
|
|
5
|
+
declare global {
|
|
6
|
+
namespace JSX {
|
|
7
|
+
interface IntrinsicElements {
|
|
8
|
+
"goa-tabs": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
interface TabsProps {
|
|
13
|
+
initialTab?: number;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare function GoATabs({ initialTab, children }: TabsProps): JSX.Element;
|
|
17
|
+
export default GoATabs;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Margins } from "../../common/styling";
|
|
3
|
+
interface WCProps extends Margins {
|
|
4
|
+
position?: string;
|
|
5
|
+
content?: string;
|
|
6
|
+
halign?: string;
|
|
7
|
+
}
|
|
8
|
+
declare global {
|
|
9
|
+
namespace JSX {
|
|
10
|
+
interface IntrinsicElements {
|
|
11
|
+
"goa-tooltip": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
interface TooltipProps extends Margins {
|
|
16
|
+
position?: string;
|
|
17
|
+
content?: string;
|
|
18
|
+
hAlign?: string;
|
|
19
|
+
testId?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const GoATooltip: React.FC<TooltipProps>;
|
|
22
|
+
export default GoATooltip;
|