@abgov/react-components 4.0.0-alpha.16 → 4.0.0-alpha.19

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
@@ -2,11 +2,9 @@
2
2
  * IMPORTANT: Do NOT export experimental components in this file.
3
3
  */
4
4
  import '@abgov/web-components';
5
- import { GoAAppHeader } from './lib/app-header/app-header';
6
- import { GoAAppFooter } from './lib/app-footer/app-footer';
7
- import { GoAMetaLink } from './lib/app-footer/meta-link';
8
- import { GoANavigationLink } from './lib/app-footer/navigation-link';
9
5
  import { GoABadge, GoAInfoBadge, GoAEmergencyBadge, GoASuccessBadge, GoAWarningBadge } 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';
10
8
  import { GoAButton } from './lib/button/button';
11
9
  import { GoAButtonGroup } from './lib/button-group/button-group';
12
10
  import { GoACallout } from './lib/callout/callout';
@@ -15,12 +13,11 @@ import { GoAChip } from './lib/chip/chip';
15
13
  import { GoACircularProgress } from './lib/circular-progress/circular-progress';
16
14
  import { GoAContainer } from './lib/container/container';
17
15
  import { GoADropdown, GoADropdownOption } from './lib/dropdown/dropdown';
18
- import { GoAFlexRow } from './lib/flex';
16
+ import { GoAFlexRow } from './lib/flex-row/flex-row';
19
17
  import { GoAFormItem } from './lib/form';
20
18
  import { GoAHeroBanner } from './lib/hero-banner/hero-banner';
21
19
  import { GoAHeroBannerActions } from './lib/hero-banner/hero-banner-actions';
22
20
  import { GoAIcon, GoAIconButton } from './lib/icons';
23
- import { GoAInput, GoAInputText, GoAInputPassword, GoAInputDate, GoAInputTime, GoAInputDateTime, GoAInputEmail, GoAInputSearch, GoAInputUrl, GoAInputTel, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputRange } from './lib/input/input';
24
21
  import { GoAMicrositeHeader } from './lib/microsite-header/microsite-header';
25
22
  import { GoAModal } from './lib/modal/modal';
26
23
  import { GoANotification } from './lib/notification/notification';
@@ -31,6 +28,12 @@ import { GoASpinner } from './lib/spinner/spinner';
31
28
  import { GoATextArea } from './lib/textarea/textarea';
32
29
  import type { GoAIconType } from './lib/icons';
33
30
  import type { GoABadgeType } from './lib/badge/badge';
31
+ export * from './lib/footer/footer';
32
+ export * from './lib/footer-nav-section/footer-nav-section';
33
+ export * from './lib/footer-meta-section/footer-meta-section';
34
+ export * from './lib/flex-column/flex-column';
35
+ export * from './lib/page/page';
36
+ export * from './lib/divider/divider';
34
37
  export type { GoAIconType };
35
38
  export type { GoABadgeType };
36
- export { GoAAppHeader, GoAAppFooter, GoAMetaLink, GoANavigationLink, 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, GoAWarningBadge, };
39
+ 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, GoAWarningBadge, };
@@ -10,7 +10,7 @@ interface CheckboxProps {
10
10
  ref: React.RefObject<HTMLElement>;
11
11
  id?: string;
12
12
  name: string;
13
- checked?: boolean;
13
+ checked: boolean;
14
14
  disabled?: boolean;
15
15
  error?: boolean;
16
16
  text?: string;
@@ -19,7 +19,7 @@ interface CheckboxProps {
19
19
  export interface Props {
20
20
  id?: string;
21
21
  name: string;
22
- checked?: boolean;
22
+ checked: boolean;
23
23
  disabled?: boolean;
24
24
  error?: boolean;
25
25
  text?: string;
@@ -5,7 +5,7 @@ export declare type CircularProgressSize = "small" | "large";
5
5
  interface WCProps {
6
6
  type?: CircularProgressType;
7
7
  variant?: CircularProgressVariant;
8
- size?: CircularProgressSize;
8
+ size: CircularProgressSize;
9
9
  message?: string;
10
10
  visible?: string;
11
11
  progress?: number;
@@ -20,7 +20,7 @@ declare global {
20
20
  export interface CircularProgressProps {
21
21
  type?: CircularProgressType;
22
22
  variant?: CircularProgressVariant;
23
- size?: CircularProgressSize;
23
+ size: CircularProgressSize;
24
24
  message?: string;
25
25
  visible?: boolean;
26
26
  progress?: number;
@@ -4,6 +4,7 @@ declare type HeadingSize = 'large' | 'small' | 'none';
4
4
  interface WCProps {
5
5
  variant: ContainerVariant;
6
6
  headingsize: HeadingSize;
7
+ colored: boolean;
7
8
  }
8
9
  declare global {
9
10
  namespace JSX {
@@ -16,6 +17,7 @@ interface Props {
16
17
  headingSize: HeadingSize;
17
18
  variant?: ContainerVariant;
18
19
  title?: ReactNode;
20
+ colored?: boolean;
19
21
  actions?: ReactNode;
20
22
  children: ReactNode;
21
23
  }
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ declare type DividerSpacing = "small" | "medium" | "large";
3
+ interface WCDividerProps {
4
+ spacing: DividerSpacing;
5
+ }
6
+ declare global {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ 'goa-divider': WCDividerProps & React.HTMLAttributes<HTMLElement>;
10
+ }
11
+ }
12
+ }
13
+ export interface DividerProps {
14
+ spacing: DividerSpacing;
15
+ }
16
+ export declare function GoADivider(props: DividerProps): JSX.Element;
17
+ export default GoADivider;
@@ -0,0 +1,16 @@
1
+ import React, { FC } from "react";
2
+ interface WCProps {
3
+ gap?: 'small' | 'medium' | 'large';
4
+ }
5
+ declare global {
6
+ namespace JSX {
7
+ interface IntrinsicElements {
8
+ 'goa-flex-col': WCProps & React.HTMLAttributes<HTMLElement>;
9
+ }
10
+ }
11
+ }
12
+ export interface Props {
13
+ gap?: 'small' | 'medium' | 'large';
14
+ }
15
+ export declare const GoAFlexCol: FC<Props>;
16
+ export default GoAFlexCol;
@@ -1,6 +1,6 @@
1
1
  import React, { FC } from "react";
2
2
  interface WCProps {
3
- gap: 'small' | 'medium' | 'large';
3
+ gap?: 'small' | 'medium' | 'large';
4
4
  }
5
5
  declare global {
6
6
  namespace JSX {
@@ -10,7 +10,7 @@ declare global {
10
10
  }
11
11
  }
12
12
  export interface Props {
13
- gap: 'small' | 'medium' | 'large';
13
+ gap?: 'small' | 'medium' | 'large';
14
14
  }
15
15
  export declare const GoAFlexRow: FC<Props>;
16
16
  export default GoAFlexRow;
@@ -0,0 +1,13 @@
1
+ import React, { ReactNode } from "react";
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ 'goa-app-footer': React.HTMLAttributes<HTMLElement>;
6
+ }
7
+ }
8
+ }
9
+ export interface FooterProps {
10
+ children: ReactNode;
11
+ }
12
+ export declare function GoAAppFooter({ children }: FooterProps): JSX.Element;
13
+ export default GoAAppFooter;
@@ -0,0 +1,13 @@
1
+ import React, { ReactNode } from "react";
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ 'goa-app-footer-meta-section': React.HTMLAttributes<HTMLElement>;
6
+ }
7
+ }
8
+ }
9
+ export interface FooterMetaSectionProps {
10
+ children: ReactNode;
11
+ }
12
+ export declare function GoAAppFooterMetaSection({ children }: FooterMetaSectionProps): JSX.Element;
13
+ export default GoAAppFooterMetaSection;
@@ -0,0 +1,19 @@
1
+ import React, { ReactNode } from "react";
2
+ interface WCProps {
3
+ name?: string;
4
+ maxcolumncount?: number;
5
+ }
6
+ declare global {
7
+ namespace JSX {
8
+ interface IntrinsicElements {
9
+ 'goa-app-footer-nav-section': WCProps & React.HTMLAttributes<HTMLElement>;
10
+ }
11
+ }
12
+ }
13
+ interface FooterNavSectionProps {
14
+ name: string;
15
+ maxColumnCount?: number;
16
+ children: ReactNode;
17
+ }
18
+ export declare function GoAAppFooterNavSection({ name, maxColumnCount, children }: FooterNavSectionProps): JSX.Element;
19
+ export default GoAAppFooterNavSection;
@@ -66,7 +66,9 @@ export declare const GoAInputUrl: FC<Props>;
66
66
  export declare const GoAInputTel: FC<Props>;
67
67
  export declare const GoAInputFile: FC<Props>;
68
68
  export declare const GoAInputMonth: FC<Props>;
69
- export declare const GoAInputNumber: FC<Props & {
69
+ export declare const GoAInputNumber: FC<Omit<Props, "value"> & {
70
+ value: number;
71
+ } & {
70
72
  min?: number;
71
73
  max?: number;
72
74
  step?: number;
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from "react";
2
+ declare global {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ 'goa-page': React.HTMLAttributes<HTMLElement>;
6
+ }
7
+ }
8
+ }
9
+ export interface PageProps {
10
+ children: ReactNode;
11
+ }
12
+ export declare function GoAPage(props: PageProps): JSX.Element;
13
+ export default GoAPage;
@@ -1,9 +1,16 @@
1
- import React, { FC } from 'react';
1
+ import React, { FC, ReactNode } from 'react';
2
+ export interface WCPageBlockProps {
3
+ width: "full" | string;
4
+ }
2
5
  declare global {
3
6
  namespace JSX {
4
7
  interface IntrinsicElements {
5
- 'goa-page-block': React.HTMLAttributes<HTMLElement>;
8
+ 'goa-page-block': WCPageBlockProps & React.HTMLAttributes<HTMLElement>;
6
9
  }
7
10
  }
8
11
  }
9
- export declare const GoAPageBlock: FC;
12
+ export interface PageBlockProps {
13
+ width: "full" | string;
14
+ children: ReactNode;
15
+ }
16
+ export declare const GoAPageBlock: FC<PageBlockProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.0.0-alpha.16",
3
+ "version": "4.0.0-alpha.19",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -16,9 +16,6 @@
16
16
  "url": "https://github.com/GovAlta/ui-components.git",
17
17
  "directory": "libs/react-components"
18
18
  },
19
- "dependencies": {
20
- "@abgov/web-components": "^1.0.0-alpha.23"
21
- },
22
19
  "peerDependencies": {
23
20
  "react": "^17.0.2",
24
21
  "react-dom": "^17.0.2"