@abgov/react-components 4.1.0 → 4.3.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.
@@ -0,0 +1,9 @@
1
+ export declare type Spacing = "none" | "3xs" | "2xs" | "xs" | "s" | "m" | "l" | "xl" | "2xl" | "3xl" | "4xl";
2
+ export interface Margins {
3
+ mt?: Spacing;
4
+ mr?: Spacing;
5
+ mb?: Spacing;
6
+ ml?: Spacing;
7
+ }
8
+ export declare type Direction = "row" | "column";
9
+ export declare type Alignment = "center" | "start" | "end";
package/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  import "@abgov/web-components";
2
- export type { GoAIconType } from "./lib/icons";
2
+ export type { GoAIconType } from "./lib/icon/icon";
3
3
  export type { GoABadgeType } from "./lib/badge/badge";
4
4
  export * from "./lib/app-header/app-header";
5
5
  export * from "./lib/badge/badge";
6
+ export * from "./lib/block/block";
6
7
  export * from "./lib/button-group/button-group";
7
8
  export * from "./lib/button/button";
8
9
  export * from "./lib/callout/callout";
@@ -12,23 +13,26 @@ export * from "./lib/circular-progress/circular-progress";
12
13
  export * from "./lib/container/container";
13
14
  export * from "./lib/divider/divider";
14
15
  export * from "./lib/dropdown/dropdown";
15
- export * from "./lib/flex-column/flex-column";
16
- export * from "./lib/flex-row/flex-row";
16
+ export * from "./lib/dropdown/dropdown-item";
17
17
  export * from "./lib/footer-meta-section/footer-meta-section";
18
18
  export * from "./lib/footer-nav-section/footer-nav-section";
19
19
  export * from "./lib/footer/footer";
20
20
  export * from "./lib/form";
21
+ export * from "./lib/grid/grid";
21
22
  export * from "./lib/hero-banner/hero-banner";
22
23
  export * from "./lib/hero-banner/hero-banner-actions";
23
- export * from "./lib/icons";
24
+ export * from "./lib/icon-button/icon-button";
25
+ export * from "./lib/icon/icon";
24
26
  export * from "./lib/input/input";
25
27
  export * from "./lib/microsite-header/microsite-header";
26
28
  export * from "./lib/modal/modal";
27
29
  export * from "./lib/notification/notification";
28
- export * from "./lib/page-block/page-block";
29
30
  export * from "./lib/one-column-layout/one-column-layout";
31
+ export * from "./lib/page-block/page-block";
30
32
  export * from "./lib/radio-group/radio-group";
31
33
  export * from "./lib/skeleton/skeleton";
34
+ export * from "./lib/spacer/spacer";
32
35
  export * from "./lib/spinner/spinner";
36
+ export * from "./lib/table/table";
33
37
  export * from "./lib/textarea/textarea";
34
38
  export * from "./lib/two-column-layout/two-column-layout";
@@ -1,12 +1,13 @@
1
1
  import React, { FC } from "react";
2
+ import { Margins } from "../../common/styling";
2
3
  export declare type GoABadgeType = "information" | "success" | "important" | "emergency" | "dark" | "midtone" | "light";
3
- interface GoABadgeProps {
4
+ interface GoABadgeProps extends Margins {
4
5
  type: GoABadgeType;
5
6
  icon?: boolean;
6
7
  content?: string;
7
8
  testId?: string;
8
9
  }
9
- interface WCProps {
10
+ interface WCProps extends Margins {
10
11
  type: GoABadgeType;
11
12
  icon?: boolean;
12
13
  content?: string;
@@ -20,8 +21,20 @@ declare global {
20
21
  }
21
22
  }
22
23
  export declare const GoABadge: FC<GoABadgeProps>;
24
+ /**
25
+ * @deprecated
26
+ */
23
27
  export declare const GoAInfoBadge: FC<GoABadgeProps>;
28
+ /**
29
+ * @deprecated
30
+ */
24
31
  export declare const GoASuccessBadge: FC<GoABadgeProps>;
32
+ /**
33
+ * @deprecated
34
+ */
25
35
  export declare const GoAImportantBadge: FC<GoABadgeProps>;
36
+ /**
37
+ * @deprecated
38
+ */
26
39
  export declare const GoAEmergencyBadge: FC<GoABadgeProps>;
27
40
  export {};
@@ -0,0 +1,21 @@
1
+ import React, { ReactNode } from "react";
2
+ import { Alignment, Direction, Margins, Spacing } from "../../common/styling";
3
+ export interface WCProps extends Margins {
4
+ gap?: Spacing;
5
+ direction?: Direction;
6
+ alignment?: Alignment;
7
+ }
8
+ declare global {
9
+ namespace JSX {
10
+ interface IntrinsicElements {
11
+ "goa-block": WCProps & React.HTMLAttributes<HTMLElement>;
12
+ }
13
+ }
14
+ }
15
+ export interface BlockProps extends Margins {
16
+ gap?: Spacing;
17
+ direction?: Direction;
18
+ alignment?: Alignment;
19
+ children?: ReactNode;
20
+ }
21
+ export declare function GoABlock(props: BlockProps): JSX.Element;
@@ -1,10 +1,10 @@
1
1
  import React, { FC, ReactNode } from "react";
2
- import "./button.css";
3
- import { GoAIconType } from "../icons";
2
+ import { Margins } from "../../common/styling";
3
+ import { GoAIconType } from "../icon/icon";
4
4
  export declare type ButtonType = "primary" | "submit" | "secondary" | "tertiary" | "start";
5
5
  export declare type ButtonSize = "compact" | "normal";
6
6
  export declare type ButtonVariant = "normal" | "destructive";
7
- interface WCProps {
7
+ interface WCProps extends Margins {
8
8
  type?: ButtonType;
9
9
  size?: ButtonSize;
10
10
  variant?: ButtonVariant;
@@ -20,7 +20,7 @@ declare global {
20
20
  }
21
21
  }
22
22
  }
23
- declare type ButtonProps = {
23
+ interface ButtonProps extends Margins {
24
24
  type?: ButtonType;
25
25
  size?: ButtonSize;
26
26
  variant?: ButtonVariant;
@@ -29,6 +29,6 @@ declare type ButtonProps = {
29
29
  trailingIcon?: GoAIconType;
30
30
  onClick?: () => void;
31
31
  children?: ReactNode;
32
- };
32
+ }
33
33
  export declare const GoAButton: FC<ButtonProps>;
34
34
  export default GoAButton;
@@ -1,8 +1,8 @@
1
1
  import React, { FC } from "react";
2
- import "./button-group.css";
2
+ import { Margins } from "../../common/styling";
3
3
  declare type Alignment = "start" | "end" | "center";
4
4
  export declare type Gap = "relaxed" | "compact";
5
- interface WCProps {
5
+ interface WCProps extends Margins {
6
6
  alignment: Alignment;
7
7
  gap?: Gap;
8
8
  }
@@ -13,10 +13,10 @@ declare global {
13
13
  }
14
14
  }
15
15
  }
16
- declare type ButtonGroupProps = {
16
+ interface ButtonGroupProps extends Margins {
17
17
  alignment: Alignment;
18
18
  gap?: Gap;
19
19
  children?: React.ReactNode;
20
- };
20
+ }
21
21
  export declare const GoAButtonGroup: FC<ButtonGroupProps>;
22
22
  export default GoAButtonGroup;
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
+ import { Margins } from "../../common/styling";
2
3
  declare type CalloutType = "important" | "information" | "event" | "success" | "emergency";
3
- interface WCProps {
4
+ interface WCProps extends Margins {
4
5
  heading?: string;
5
6
  type?: CalloutType;
6
7
  }
@@ -11,10 +12,10 @@ declare global {
11
12
  }
12
13
  }
13
14
  }
14
- export interface CalloutProps {
15
+ export interface CalloutProps extends Margins {
15
16
  heading?: string;
16
17
  type?: CalloutType;
17
18
  children?: React.ReactNode;
18
19
  }
19
- export declare const GoACallout: ({ heading, type, children, }: CalloutProps) => JSX.Element;
20
+ export declare const GoACallout: ({ heading, type, children, mt, mr, mb, ml, }: CalloutProps) => JSX.Element;
20
21
  export default GoACallout;
@@ -1,11 +1,8 @@
1
- import React, { FC } from "react";
2
- interface WCProps {
3
- children: React.ReactNode;
4
- }
1
+ import { FC } from "react";
5
2
  declare global {
6
3
  namespace JSX {
7
4
  interface IntrinsicElements {
8
- "goa-card-actions": WCProps & React.HTMLAttributes<HTMLElement>;
5
+ "goa-card-actions": React.HTMLAttributes<HTMLElement>;
9
6
  }
10
7
  }
11
8
  }
@@ -1,4 +1,4 @@
1
- import React, { FC } from "react";
1
+ import { FC } from "react";
2
2
  declare global {
3
3
  namespace JSX {
4
4
  interface IntrinsicElements {
@@ -1,11 +1,8 @@
1
- import React, { FC } from "react";
2
- interface WCProps {
3
- children: React.ReactNode;
4
- }
1
+ import { FC } from "react";
5
2
  declare global {
6
3
  namespace JSX {
7
4
  interface IntrinsicElements {
8
- "goa-card-group": WCProps & React.HTMLAttributes<HTMLElement>;
5
+ "goa-card-group": React.HTMLAttributes<HTMLElement>;
9
6
  }
10
7
  }
11
8
  }
@@ -1,4 +1,4 @@
1
- import React, { FC } from "react";
1
+ import { FC } from "react";
2
2
  interface WCProps {
3
3
  src: string;
4
4
  height: string;
@@ -1,6 +1,8 @@
1
- import React, { FC } from "react";
2
- interface WCProps {
3
- elevation: number;
1
+ import { FC } from "react";
2
+ import { Margins } from "../../common/styling";
3
+ interface WCProps extends Margins {
4
+ elevation?: number;
5
+ width?: string;
4
6
  children: React.ReactNode;
5
7
  }
6
8
  declare global {
@@ -10,8 +12,9 @@ declare global {
10
12
  }
11
13
  }
12
14
  }
13
- interface Props {
14
- elevation: number;
15
+ interface Props extends Margins {
16
+ elevation?: number;
17
+ width?: string;
15
18
  children?: React.ReactNode;
16
19
  }
17
20
  export declare const GoACard: FC<Props>;
@@ -1,4 +1,5 @@
1
1
  import React, { FC } from "react";
2
+ import { Margins } from "../../common/styling";
2
3
  declare global {
3
4
  namespace JSX {
4
5
  interface IntrinsicElements {
@@ -6,7 +7,7 @@ declare global {
6
7
  }
7
8
  }
8
9
  }
9
- interface CheckboxProps {
10
+ interface CheckboxProps extends Margins {
10
11
  ref: React.RefObject<HTMLElement>;
11
12
  id?: string;
12
13
  name: string;
@@ -15,8 +16,9 @@ interface CheckboxProps {
15
16
  error?: boolean;
16
17
  text?: string;
17
18
  value?: string | number | boolean;
19
+ arialabel?: string;
18
20
  }
19
- export interface Props {
21
+ export interface Props extends Margins {
20
22
  id?: string;
21
23
  name: string;
22
24
  checked: boolean;
@@ -26,6 +28,7 @@ export interface Props {
26
28
  value?: string | number | boolean;
27
29
  children?: React.ReactNode;
28
30
  testId?: string;
31
+ ariaLabel?: string;
29
32
  onChange?: (name: string, checked: boolean, value: string) => void;
30
33
  }
31
34
  export declare const GoACheckbox: FC<Props>;
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
+ import { Margins } from "../../common/styling";
2
3
  declare type ChipVariant = "filter";
3
- interface WCProps {
4
+ interface WCProps extends Margins {
4
5
  ref: React.RefObject<HTMLElement>;
5
6
  leadingicon: string;
6
7
  error: boolean;
@@ -15,7 +16,7 @@ declare global {
15
16
  }
16
17
  }
17
18
  }
18
- interface Props {
19
+ interface Props extends Margins {
19
20
  onClick?: () => void;
20
21
  deletable?: boolean;
21
22
  leadingIcon?: string;
@@ -23,5 +24,5 @@ interface Props {
23
24
  content: string;
24
25
  variant?: ChipVariant;
25
26
  }
26
- export declare const GoAChip: ({ leadingIcon, deletable, error, variant, content, onClick, }: Props) => JSX.Element;
27
+ export declare const GoAChip: ({ leadingIcon, deletable, error, variant, content, onClick, mt, mr, mb, ml, }: Props) => JSX.Element;
27
28
  export default GoAChip;
@@ -1,8 +1,9 @@
1
1
  import React, { FC, ReactNode } from "react";
2
+ import { Margins } from "../../common/styling";
2
3
  declare type ContainerType = "interactive" | "non-interactive" | "info" | "error" | "success" | "important";
3
4
  declare type Accent = "thick" | "thin" | "filled";
4
5
  declare type ContainerPadding = "relaxed" | "compact";
5
- interface WCProps {
6
+ interface WCProps extends Margins {
6
7
  type?: ContainerType;
7
8
  accent?: Accent;
8
9
  padding?: ContainerPadding;
@@ -14,7 +15,7 @@ declare global {
14
15
  }
15
16
  }
16
17
  }
17
- interface Props {
18
+ interface Props extends Margins {
18
19
  accent?: Accent;
19
20
  type?: ContainerType;
20
21
  title?: ReactNode;
@@ -1,17 +1,11 @@
1
- /// <reference types="react" />
2
- declare type DividerSpacing = "small" | "medium" | "large";
3
- interface WCDividerProps {
4
- spacing: DividerSpacing;
5
- }
1
+ import React from "react";
2
+ import { Margins } from "../../common/styling";
6
3
  declare global {
7
4
  namespace JSX {
8
5
  interface IntrinsicElements {
9
- "goa-divider": WCDividerProps & React.HTMLAttributes<HTMLElement>;
6
+ "goa-divider": Margins & React.HTMLAttributes<HTMLElement>;
10
7
  }
11
8
  }
12
9
  }
13
- export interface DividerProps {
14
- spacing: DividerSpacing;
15
- }
16
- export declare function GoADivider(props: DividerProps): JSX.Element;
10
+ export declare function GoADivider(props: Margins): JSX.Element;
17
11
  export default GoADivider;
@@ -0,0 +1,22 @@
1
+ import React from "react";
2
+ interface WCProps {
3
+ value: string;
4
+ label?: string;
5
+ name?: string;
6
+ }
7
+ declare global {
8
+ namespace JSX {
9
+ interface IntrinsicElements {
10
+ "goa-dropdown-item": WCProps & React.HTMLAttributes<HTMLElement>;
11
+ }
12
+ }
13
+ }
14
+ interface Props {
15
+ value: string;
16
+ label?: string;
17
+ testId?: string;
18
+ name?: string;
19
+ }
20
+ export declare function GoADropdownOption(props: Props): JSX.Element;
21
+ export declare function GoADropdownItem({ value, label, name, testId }: Props): JSX.Element;
22
+ export {};
@@ -1,19 +1,21 @@
1
1
  import React, { FC } from "react";
2
- import { GoAIconType } from "../icons";
3
- export * from "./dropdown-option";
4
- interface WCProps {
2
+ import { Margins } from "../../common/styling";
3
+ import { GoAIconType } from "../icon/icon";
4
+ interface WCProps extends Margins {
5
5
  ref: React.MutableRefObject<HTMLElement | null>;
6
- name: string;
7
- value: string;
8
- leadingicon?: string;
9
- maxheight?: string;
10
- placeholder?: string;
11
- filterable?: boolean;
6
+ arialabel?: string;
12
7
  disabled?: boolean;
13
8
  error?: boolean;
9
+ filterable?: boolean;
10
+ leadingicon?: string;
11
+ maxheight?: string;
14
12
  multiselect?: boolean;
15
- width?: string;
13
+ name?: string;
14
+ native?: boolean;
15
+ placeholder?: string;
16
16
  testid?: string;
17
+ value?: string;
18
+ width?: string;
17
19
  }
18
20
  declare global {
19
21
  namespace JSX {
@@ -22,20 +24,22 @@ declare global {
22
24
  }
23
25
  }
24
26
  }
25
- interface Props {
26
- name: string;
27
- value: string[] | string;
27
+ interface Props extends Margins {
28
+ name?: string;
29
+ value?: string[] | string;
28
30
  onChange: (name: string, values: string[] | string) => void;
31
+ ariaLabel?: string;
32
+ children?: React.ReactNode;
29
33
  disabled?: boolean;
34
+ error?: boolean;
30
35
  filterable?: boolean;
31
36
  leadingIcon?: GoAIconType;
32
37
  maxHeight?: string;
33
- error?: boolean;
34
38
  multiselect?: boolean;
39
+ native?: boolean;
35
40
  placeholder?: string;
36
41
  testId?: string;
37
42
  width?: string;
38
- children?: React.ReactNode;
39
43
  }
40
44
  export declare const GoADropdown: FC<Props>;
41
45
  export default GoADropdown;
@@ -1,6 +1,7 @@
1
1
  import React, { FC } from "react";
2
+ import { Margins } from "../../common/styling";
2
3
  declare type RequirementType = "optional" | "required";
3
- interface WCProps {
4
+ interface WCProps extends Margins {
4
5
  label: string;
5
6
  requirement?: RequirementType;
6
7
  error?: string;
@@ -13,7 +14,7 @@ declare global {
13
14
  }
14
15
  }
15
16
  }
16
- interface GoAFormItemProps {
17
+ interface GoAFormItemProps extends Margins {
17
18
  label: string;
18
19
  requirement?: RequirementType;
19
20
  error?: string;
@@ -0,0 +1,20 @@
1
+ import React, { FC } from "react";
2
+ import { Margins, Spacing } from "../../common/styling";
3
+ interface WCProps extends Margins {
4
+ gap?: Spacing;
5
+ minchildwidth: string;
6
+ }
7
+ declare global {
8
+ namespace JSX {
9
+ interface IntrinsicElements {
10
+ "goa-grid": WCProps & React.HTMLAttributes<HTMLElement>;
11
+ }
12
+ }
13
+ }
14
+ interface Props extends Margins {
15
+ gap?: Spacing;
16
+ minChildWidth: string;
17
+ children?: React.ReactNode;
18
+ }
19
+ export declare const GoAGrid: FC<Props>;
20
+ export default GoAGrid;
@@ -2,6 +2,7 @@ import React, { FC } from "react";
2
2
  interface WCProps {
3
3
  heading: string;
4
4
  backgroundurl: string;
5
+ minheight?: string;
5
6
  }
6
7
  declare global {
7
8
  namespace JSX {
@@ -13,6 +14,7 @@ declare global {
13
14
  interface Props {
14
15
  heading: string;
15
16
  backgroundUrl: string;
17
+ minHeight?: string;
16
18
  children?: React.ReactNode;
17
19
  }
18
20
  export declare const GoAHeroBanner: FC<Props>;
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import { Margins } from "../../common/styling";
2
3
  declare type GoAIconFilledType = `${GoAIconType}-${IconTheme}`;
3
4
  interface IonIconProps {
4
5
  name: GoAIconType | GoAIconFilledType;
@@ -23,15 +24,15 @@ export declare type GoAIconType = "accessibility" | "add-circle" | "add" | "airp
23
24
  export declare type IconSize = "small" | "medium" | "large" | "xlarge";
24
25
  export declare type IconVariant = "primary" | "secondary" | "tertiary";
25
26
  export declare type IconTheme = "outline" | "filled" | "sharp";
26
- interface Props {
27
+ interface Props extends Margins {
27
28
  type: GoAIconType;
28
29
  size?: IconSize;
29
30
  theme?: IconTheme;
30
31
  }
31
- interface WCProps {
32
+ interface WCProps extends Margins {
32
33
  type: GoAIconType;
33
- theme: IconTheme;
34
- size: IconSize;
34
+ theme?: IconTheme;
35
+ size?: IconSize;
35
36
  }
36
- export declare function GoAIcon({ type, theme, size, }: Props): JSX.Element;
37
+ export declare function GoAIcon({ type, theme, size, mt, mr, mb, ml, }: Props): JSX.Element;
37
38
  export {};
@@ -1,7 +1,8 @@
1
1
  import React, { FC } from "react";
2
- import { IconSize, GoAIconType } from "./icon";
2
+ import { Margins } from "../../common/styling";
3
+ import { IconSize, GoAIconType } from "../icon/icon";
3
4
  declare type IconVariant = "color" | "nocolor" | "dark";
4
- interface WCProps {
5
+ interface WCProps extends Margins {
5
6
  ref: React.RefObject<HTMLElement>;
6
7
  icon: GoAIconType;
7
8
  size?: IconSize;
@@ -16,7 +17,7 @@ declare global {
16
17
  }
17
18
  }
18
19
  }
19
- interface Props {
20
+ interface Props extends Margins {
20
21
  icon: GoAIconType;
21
22
  size?: IconSize;
22
23
  variant?: IconVariant;
@@ -1,9 +1,10 @@
1
1
  import React, { FC } from "react";
2
2
  import { GoAIconType } from "../..";
3
+ import { Margins } from "../../common/styling";
3
4
  export declare type GoADate = Date | string;
4
5
  declare type GoAInputType = "text" | "password" | "email" | "number" | "date" | "datetime-local" | "month" | "range" | "search" | "tel" | "time" | "url" | "week";
5
6
  declare type GoAAutoCapitalize = "on" | "off" | "none" | "sentences" | "words" | "characters";
6
- interface WCProps {
7
+ interface WCProps extends Margins {
7
8
  ref?: React.MutableRefObject<HTMLInputElement | null>;
8
9
  type?: GoAInputType;
9
10
  name: string;
@@ -23,6 +24,7 @@ interface WCProps {
23
24
  prefix?: string;
24
25
  suffix?: string;
25
26
  testid?: string;
27
+ arialabel?: string;
26
28
  min?: string | number;
27
29
  max?: string | number;
28
30
  step?: number;
@@ -34,7 +36,7 @@ declare global {
34
36
  }
35
37
  }
36
38
  }
37
- interface BaseProps {
39
+ interface BaseProps extends Margins {
38
40
  name: string;
39
41
  id?: string;
40
42
  disabled?: boolean;
@@ -51,6 +53,9 @@ interface BaseProps {
51
53
  prefix?: string;
52
54
  suffix?: string;
53
55
  testId?: string;
56
+ ariaLabel?: string;
57
+ leadingContent?: React.ReactNode;
58
+ trailingContent?: React.ReactNode;
54
59
  }
55
60
  declare type OnChange = (name: string, value: string) => void;
56
61
  export interface InputProps extends BaseProps {
@@ -1,12 +1,14 @@
1
1
  import React, { FC } from "react";
2
+ import { Margins } from "../../common/styling";
2
3
  export * from "./radio";
3
- interface RadioGroupProps {
4
+ interface RadioGroupProps extends Margins {
4
5
  ref: React.RefObject<HTMLElement>;
5
6
  name: string;
6
7
  value?: string;
7
8
  orientation: string;
8
9
  disabled: boolean;
9
10
  error: boolean;
11
+ arialabel?: string;
10
12
  }
11
13
  declare global {
12
14
  namespace JSX {
@@ -15,13 +17,14 @@ declare global {
15
17
  }
16
18
  }
17
19
  }
18
- interface Props {
20
+ interface Props extends Margins {
19
21
  name: string;
20
22
  value?: string;
21
23
  disabled?: boolean;
22
24
  orientation?: "horizontal" | "vertical";
23
25
  testId?: string;
24
26
  error?: boolean;
27
+ ariaLabel?: string;
25
28
  children?: React.ReactNode;
26
29
  onChange: (name: string, value: string) => void;
27
30
  }
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
+ import { Margins } from "../../common/styling";
2
3
  export declare type SkeletonType = "image" | "text" | "title" | "text-small" | "avatar" | "header" | "paragraph" | "thumbnail" | "card" | "profile";
3
4
  declare type SkeletonSize = 1 | 2 | 3 | 4;
4
- interface WCProps {
5
+ interface WCProps extends Margins {
5
6
  maxwidth?: string;
6
7
  size?: SkeletonSize;
7
8
  linecount?: number;
@@ -14,11 +15,11 @@ declare global {
14
15
  }
15
16
  }
16
17
  }
17
- export interface SkeletonProps {
18
+ export interface SkeletonProps extends Margins {
18
19
  maxWidth?: string;
19
20
  size?: SkeletonSize;
20
21
  lineCount?: number;
21
22
  type: SkeletonType;
22
23
  }
23
- export declare const GoASkeleton: ({ maxWidth, size, lineCount, type, }: SkeletonProps) => JSX.Element;
24
+ export declare const GoASkeleton: ({ maxWidth, size, lineCount, type, mt, mr, mb, ml, }: SkeletonProps) => JSX.Element;
24
25
  export default GoASkeleton;
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ import { Spacing } from "../../common/styling";
3
+ interface WCProps {
4
+ hspacing?: Spacing | "fill";
5
+ vspacing?: Spacing;
6
+ }
7
+ declare global {
8
+ namespace JSX {
9
+ interface IntrinsicElements {
10
+ "goa-spacer": WCProps & React.HTMLAttributes<HTMLElement>;
11
+ }
12
+ }
13
+ }
14
+ export interface SpacerProps {
15
+ hSpacing?: Spacing | "fill";
16
+ vSpacing?: Spacing;
17
+ }
18
+ export declare function GoASpacer(props: SpacerProps): JSX.Element;
19
+ export default GoASpacer;