@abgov/react-components 4.0.0-alpha.41 → 4.0.0-alpha.42

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,40 +1,34 @@
1
- /**
2
- * IMPORTANT: Do NOT export experimental components in this file.
3
- */
4
- import '@abgov/web-components';
5
- import { GoABadge, GoAInfoBadge, GoAEmergencyBadge, GoASuccessBadge, GoAImportantBadge } from './lib/badge/badge';
6
- import { GoAInput, GoAInputText, GoAInputPassword, GoAInputDate, GoAInputTime, GoAInputDateTime, GoAInputEmail, GoAInputSearch, GoAInputUrl, GoAInputTel, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputRange } from './lib/input/input';
7
- import { GoAAppHeader } from './lib/app-header/app-header';
8
- import { GoAButton } from './lib/button/button';
9
- import { GoAButtonGroup } from './lib/button-group/button-group';
10
- import { GoACallout } from './lib/callout/callout';
11
- import { GoACheckbox } from './lib/checkbox/checkbox';
12
- import { GoAChip } from './lib/chip/chip';
13
- import { GoACircularProgress } from './lib/circular-progress/circular-progress';
14
- import { GoAContainer } from './lib/container/container';
15
- import { GoADropdown, GoADropdownOption } from './lib/dropdown/dropdown';
16
- import { GoAFlexRow } from './lib/flex-row/flex-row';
17
- import { GoAFormItem } from './lib/form';
18
- import { GoAHeroBanner } from './lib/hero-banner/hero-banner';
19
- import { GoAHeroBannerActions } from './lib/hero-banner/hero-banner-actions';
20
- import { GoAIcon, GoAIconButton } from './lib/icons';
21
- import { GoAMicrositeHeader } from './lib/microsite-header/microsite-header';
22
- import { GoAModal } from './lib/modal/modal';
23
- import { GoANotification } from './lib/notification/notification';
24
- import { GoAPageBlock } from './lib/page-block/page-block';
25
- import { GoARadioGroup, GoARadioItem } from './lib/radio-group/radio-group';
26
- import { GoASkeleton } from './lib/skeleton/skeleton';
27
- import { GoASpinner } from './lib/spinner/spinner';
28
- import { GoATextArea } from './lib/textarea/textarea';
29
- import type { GoAIconType } from './lib/icons';
30
- import type { GoABadgeType } from './lib/badge/badge';
31
- export * from './lib/page/page';
32
- export * from './lib/footer/footer';
33
- export * from './lib/footer-nav-section/footer-nav-section';
34
- export * from './lib/footer-meta-section/footer-meta-section';
35
- export * from './lib/flex-column/flex-column';
36
- export * from './lib/page/page';
37
- export * from './lib/divider/divider';
38
- export type { GoAIconType };
39
- export type { GoABadgeType };
40
- export { GoAAppHeader, GoABadge, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoAChip, GoACircularProgress, GoAContainer, GoADropdown, GoADropdownOption, GoAEmergencyBadge, GoAFlexRow, GoAFormItem, GoAHeroBanner, GoAHeroBannerActions, GoAIcon, GoAIconButton, GoAInfoBadge, GoAInput, GoAInputDate, GoAInputDateTime, GoAInputEmail, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputPassword, GoAInputRange, GoAInputSearch, GoAInputTel, GoAInputText, GoAInputTime, GoAInputUrl, GoAMicrositeHeader, GoAModal, GoANotification, GoAPageBlock, GoARadioGroup, GoARadioItem, GoASkeleton, GoASpinner, GoASuccessBadge, GoATextArea, GoAImportantBadge, };
1
+ import "@abgov/web-components";
2
+ export type { GoAIconType } from "./lib/icons";
3
+ export type { GoABadgeType } from "./lib/badge/badge";
4
+ export * from "./lib/app-header/app-header";
5
+ export * from "./lib/badge/badge";
6
+ export * from "./lib/button-group/button-group";
7
+ export * from "./lib/button/button";
8
+ export * from "./lib/callout/callout";
9
+ export * from "./lib/checkbox/checkbox";
10
+ export * from "./lib/chip/chip";
11
+ export * from "./lib/circular-progress/circular-progress";
12
+ export * from "./lib/container/container";
13
+ export * from "./lib/divider/divider";
14
+ export * from "./lib/dropdown/dropdown";
15
+ export * from "./lib/flex-column/flex-column";
16
+ export * from "./lib/flex-row/flex-row";
17
+ export * from "./lib/footer-meta-section/footer-meta-section";
18
+ export * from "./lib/footer-nav-section/footer-nav-section";
19
+ export * from "./lib/footer/footer";
20
+ export * from "./lib/form";
21
+ export * from "./lib/hero-banner/hero-banner";
22
+ export * from "./lib/hero-banner/hero-banner-actions";
23
+ export * from "./lib/icons";
24
+ export * from "./lib/input/input";
25
+ export * from "./lib/microsite-header/microsite-header";
26
+ export * from "./lib/modal/modal";
27
+ export * from "./lib/notification/notification";
28
+ export * from "./lib/page-block/page-block";
29
+ export * from "./lib/page/page";
30
+ export * from "./lib/page/page";
31
+ export * from "./lib/radio-group/radio-group";
32
+ export * from "./lib/skeleton/skeleton";
33
+ export * from "./lib/spinner/spinner";
34
+ export * from "./lib/textarea/textarea";
@@ -13,6 +13,7 @@ declare global {
13
13
  interface Props {
14
14
  heading?: string;
15
15
  url?: string;
16
+ children?: React.ReactNode;
16
17
  }
17
18
  export declare const GoAAppHeader: FC<Props>;
18
19
  export default GoAAppHeader;
@@ -28,7 +28,7 @@ declare type ButtonProps = {
28
28
  leadingIcon?: GoAIconType;
29
29
  trailingIcon?: GoAIconType;
30
30
  onClick: (e: any) => void;
31
- children: ReactNode;
31
+ children?: ReactNode;
32
32
  };
33
33
  export declare const GoAButton: FC<ButtonProps>;
34
34
  export default GoAButton;
@@ -13,6 +13,7 @@ declare global {
13
13
  }
14
14
  declare type ButtonGroupProps = {
15
15
  alignment: Alignment;
16
+ children?: React.ReactNode;
16
17
  };
17
18
  export declare const GoAButtonGroup: FC<ButtonGroupProps>;
18
19
  export default GoAButtonGroup;
@@ -24,6 +24,7 @@ export interface Props {
24
24
  error?: boolean;
25
25
  text?: string;
26
26
  value?: string | number | boolean;
27
+ children?: React.ReactNode;
27
28
  testId?: string;
28
29
  onChange?: (name: string, checked: boolean, value: string) => void;
29
30
  }
@@ -13,7 +13,7 @@ declare global {
13
13
  }
14
14
  }
15
15
  }
16
- export interface Props {
16
+ interface Props {
17
17
  onClick?: () => void;
18
18
  deletable?: boolean;
19
19
  leadingIcon?: string;
@@ -35,6 +35,7 @@ interface Props {
35
35
  placeholder?: string;
36
36
  testId?: string;
37
37
  width?: string;
38
+ children?: React.ReactNode;
38
39
  }
39
40
  export declare const GoADropdown: FC<Props>;
40
41
  export default GoADropdown;
@@ -9,8 +9,9 @@ declare global {
9
9
  }
10
10
  }
11
11
  }
12
- export interface Props {
12
+ interface Props {
13
13
  gap?: 'small' | 'medium' | 'large';
14
+ children?: React.ReactNode;
14
15
  }
15
16
  export declare const GoAFlexCol: FC<Props>;
16
17
  export default GoAFlexCol;
@@ -9,8 +9,9 @@ declare global {
9
9
  }
10
10
  }
11
11
  }
12
- export interface Props {
12
+ interface Props {
13
13
  gap?: 'small' | 'medium' | 'large';
14
+ children?: React.ReactNode;
14
15
  }
15
16
  export declare const GoAFlexRow: FC<Props>;
16
17
  export default GoAFlexRow;
@@ -7,7 +7,7 @@ declare global {
7
7
  }
8
8
  }
9
9
  export interface FooterProps {
10
- children: ReactNode;
10
+ children?: ReactNode;
11
11
  }
12
12
  export declare function GoAAppFooter({ children }: FooterProps): JSX.Element;
13
13
  export default GoAAppFooter;
@@ -7,7 +7,7 @@ declare global {
7
7
  }
8
8
  }
9
9
  export interface FooterMetaSectionProps {
10
- children: ReactNode;
10
+ children?: ReactNode;
11
11
  }
12
12
  export declare function GoAAppFooterMetaSection({ children }: FooterMetaSectionProps): JSX.Element;
13
13
  export default GoAAppFooterMetaSection;
@@ -13,7 +13,7 @@ declare global {
13
13
  interface FooterNavSectionProps {
14
14
  name: string;
15
15
  maxColumnCount?: number;
16
- children: ReactNode;
16
+ children?: ReactNode;
17
17
  }
18
18
  export declare function GoAAppFooterNavSection({ name, maxColumnCount, children }: FooterNavSectionProps): JSX.Element;
19
19
  export default GoAAppFooterNavSection;
@@ -17,6 +17,7 @@ interface GoAFormItemProps {
17
17
  optional?: boolean;
18
18
  error?: string;
19
19
  helpText?: string;
20
+ children?: React.ReactNode;
20
21
  }
21
22
  export declare const GoAFormItem: FC<GoAFormItemProps>;
22
23
  export default GoAFormItem;
@@ -1,4 +1,6 @@
1
- import { FC } from 'react';
2
- export declare type GoAHeroBannerActionsType = FC;
3
- export declare const GoAHeroBannerActions: GoAHeroBannerActionsType;
1
+ import React, { FC } from 'react';
2
+ export declare type GoAHeroBannerActionsType = {
3
+ children?: React.ReactNode;
4
+ };
5
+ export declare const GoAHeroBannerActions: FC<GoAHeroBannerActionsType>;
4
6
  export default GoAHeroBannerActions;
@@ -13,6 +13,7 @@ declare global {
13
13
  interface Props {
14
14
  heading: string;
15
15
  backgroundUrl: string;
16
+ children?: React.ReactNode;
16
17
  }
17
18
  export declare const GoAHeroBanner: FC<Props>;
18
19
  export default GoAHeroBanner;
@@ -21,6 +21,7 @@ interface Props {
21
21
  variant?: IconVariant;
22
22
  title?: string;
23
23
  disabled?: boolean;
24
+ children?: React.ReactNode;
24
25
  onClick: () => void;
25
26
  }
26
27
  export declare const GoAIconButton: FC<Props>;
@@ -33,7 +33,7 @@ declare global {
33
33
  }
34
34
  }
35
35
  }
36
- export interface Props {
36
+ interface Props {
37
37
  name: string;
38
38
  value: string;
39
39
  onChange: (name: string, value: string) => void;
@@ -21,6 +21,7 @@ interface Props {
21
21
  actions?: React.ReactElement;
22
22
  onClose?: () => void;
23
23
  transition?: "fast" | "slow" | "none";
24
+ children?: React.ReactNode;
24
25
  open?: boolean;
25
26
  }
26
27
  export declare const GoAModal: FC<Props>;
@@ -10,7 +10,7 @@ declare global {
10
10
  }
11
11
  }
12
12
  }
13
- export interface Props {
13
+ interface Props {
14
14
  type?: NotificationType;
15
15
  children?: React.ReactNode;
16
16
  }
@@ -7,7 +7,7 @@ declare global {
7
7
  }
8
8
  }
9
9
  export interface PageProps {
10
- children: ReactNode;
10
+ children?: ReactNode;
11
11
  }
12
12
  export declare function GoAPage(props: PageProps): JSX.Element;
13
13
  export default GoAPage;
@@ -11,6 +11,6 @@ declare global {
11
11
  }
12
12
  export interface PageBlockProps {
13
13
  width: "full" | string;
14
- children: ReactNode;
14
+ children?: ReactNode;
15
15
  }
16
16
  export declare const GoAPageBlock: FC<PageBlockProps>;
@@ -22,6 +22,7 @@ interface Props {
22
22
  orientation?: 'horizontal' | 'vertical';
23
23
  testId?: string;
24
24
  error?: boolean;
25
+ children?: React.ReactNode;
25
26
  onChange: (name: string, value: string) => void;
26
27
  }
27
28
  export declare const GoARadioGroup: FC<Props>;
@@ -21,6 +21,7 @@ interface Props {
21
21
  disabled?: boolean;
22
22
  checked?: boolean;
23
23
  error?: boolean;
24
+ children?: React.ReactNode;
24
25
  testId?: string;
25
26
  }
26
27
  export declare const GoARadioItem: FC<Props>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.0.0-alpha.41",
3
+ "version": "4.0.0-alpha.42",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"