@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 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";
@@ -22,6 +22,7 @@ interface Props extends Margins {
22
22
  heading: string;
23
23
  headingContent?: ReactNode;
24
24
  testid?: string;
25
+ children: ReactNode;
25
26
  }
26
27
  export declare const GoAAccordion: FC<Props>;
27
28
  export default GoAAccordion;
@@ -19,6 +19,7 @@ interface Props extends Margins {
19
19
  maxWidth?: string;
20
20
  padded?: boolean;
21
21
  position?: Position;
22
+ children: ReactNode;
22
23
  }
23
24
  export declare const GoAPopover: FC<Props>;
24
25
  export default GoAPopover;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.11.0",
3
+ "version": "4.12.0",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"