@abgov/react-components 4.0.0-alpha.106 → 4.0.0-alpha.108

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
@@ -1,6 +1,7 @@
1
1
  import "@abgov/web-components";
2
2
  export type { GoAIconType } from "./lib/icon/icon";
3
3
  export type { GoABadgeType } from "./lib/badge/badge";
4
+ export * from "./lib/accordion/accordion";
4
5
  export * from "./lib/app-header/app-header";
5
6
  export * from "./lib/badge/badge";
6
7
  export * from "./lib/block/block";
@@ -0,0 +1,27 @@
1
+ import React, { FC, ReactNode } from "react";
2
+ import { Margins } from "../../common/styling";
3
+ declare type HeadingSize = "small" | "medium";
4
+ interface WCProps extends Margins {
5
+ open?: boolean;
6
+ headingSize?: HeadingSize;
7
+ heading: string;
8
+ secondaryText?: string;
9
+ headingContent?: ReactNode;
10
+ }
11
+ declare global {
12
+ namespace JSX {
13
+ interface IntrinsicElements {
14
+ "goa-accordion": WCProps & React.HTMLAttributes<HTMLElement>;
15
+ }
16
+ }
17
+ }
18
+ interface Props extends Margins {
19
+ open?: boolean;
20
+ headingSize?: HeadingSize;
21
+ secondaryText?: string;
22
+ heading: string;
23
+ headingContent?: ReactNode;
24
+ testid?: string;
25
+ }
26
+ export declare const GoAAccordion: FC<Props>;
27
+ export default GoAAccordion;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.0.0-alpha.106",
3
+ "version": "4.0.0-alpha.108",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"