@abgov/react-components 3.4.0-alpha.1 → 3.4.0-alpha.5
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/experimental/index.d.ts +0 -0
- package/experimental/package.json +1 -1
- package/experimental/react-components.esm.js +0 -926
- package/experimental/react-components.umd.js +5 -969
- package/index.d.ts +25 -19
- package/lib/app-header/app-header.d.ts +18 -0
- package/{experimental/experimental/badge/badge.component.d.ts → lib/badge/badge.d.ts} +15 -1
- package/lib/button/button.d.ts +27 -35
- package/lib/button-group/button-group.d.ts +18 -0
- package/lib/callout/callout.d.ts +14 -22
- package/lib/card/card-actions.d.ts +16 -0
- package/lib/card/card-content.d.ts +13 -0
- package/lib/card/card-group.d.ts +16 -0
- package/lib/card/card-image.d.ts +18 -0
- package/lib/card/card.d.ts +18 -0
- package/lib/card/index.d.ts +5 -0
- package/lib/checkbox/checkbox.d.ts +24 -6
- package/lib/container/container.d.ts +23 -0
- package/lib/dropdown/dropdown-option.d.ts +21 -0
- package/lib/dropdown/dropdown.d.ts +22 -4
- package/lib/flex/index.d.ts +1 -0
- package/{experimental/experimental → lib}/flex/row.d.ts +0 -0
- package/lib/form/form-item.d.ts +24 -0
- package/lib/form/index.d.ts +1 -0
- package/{experimental/experimental → lib}/form/validators.d.ts +0 -0
- package/lib/hero-banner/hero-banner-actions.d.ts +4 -0
- package/lib/hero-banner/hero-banner-content.d.ts +4 -0
- package/lib/hero-banner/hero-banner.d.ts +18 -0
- package/lib/icons/icon-button.d.ts +27 -0
- package/{experimental/experimental/icons/icon.component.d.ts → lib/icons/icon.d.ts} +29 -5
- package/lib/icons/index.d.ts +2 -0
- package/{experimental/experimental/input/input.component.d.ts → lib/input/input.d.ts} +26 -5
- package/lib/modal/modal.d.ts +23 -0
- package/lib/notification/notification.d.ts +14 -34
- package/lib/page-loader/page-loader.d.ts +21 -38
- package/lib/radio-group/radio-group.d.ts +15 -16
- package/lib/radio-group/radio.d.ts +20 -6
- package/lib/service-level-header/service-level-header.d.ts +17 -0
- package/lib/skeleton/skeleton.d.ts +19 -0
- package/lib/spinner/spinner.d.ts +24 -0
- package/lib/textarea/textarea.d.ts +27 -0
- package/package.json +2 -2
- package/react-components.esm.js +679 -2255
- package/react-components.umd.js +758 -2312
- package/experimental/experimental/app-version-header/app-version-header.component.d.ts +0 -8
- package/experimental/experimental/button/button.d.ts +0 -14
- package/experimental/experimental/card/card.component.d.ts +0 -10
- package/experimental/experimental/common.d.ts +0 -3
- package/experimental/experimental/flex/index.d.ts +0 -1
- package/experimental/experimental/form/form.actions.component.d.ts +0 -6
- package/experimental/experimental/form/form.component.d.ts +0 -10
- package/experimental/experimental/form/form.item.component.d.ts +0 -7
- package/experimental/experimental/form/index.d.ts +0 -1
- package/experimental/experimental/icons/iconButton.component.d.ts +0 -14
- package/experimental/experimental/icons/index.d.ts +0 -2
- package/experimental/experimental/index.d.ts +0 -16
- package/experimental/experimental/modal/modal.component.d.ts +0 -21
- package/experimental/experimental/scrollable/scrollable.component.d.ts +0 -12
- package/experimental/experimental/textarea/textarea.component.d.ts +0 -12
- package/experimental/experimental/transitions/index.d.ts +0 -2
- package/experimental/experimental/transitions/transition.d.ts +0 -9
- package/experimental/experimental/transitions/transitionSequence.d.ts +0 -9
- package/lib/_common/input.d.ts +0 -4
- package/lib/card/card.component.d.ts +0 -25
- package/lib/card-group/card.group.component.d.ts +0 -24
- package/lib/dropdown/option.d.ts +0 -13
- package/lib/element-loader/element-loader.d.ts +0 -9
- package/lib/header/header.d.ts +0 -10
- package/lib/hero-banner/content/hero-banner-content.component.d.ts +0 -7
- package/lib/hero-banner/hero-banner.component.d.ts +0 -11
- package/lib/hero-banner/link/hero-banner-link.component.d.ts +0 -8
- package/lib/microsite-logo/microsite-logo.d.ts +0 -8
- package/lib/skeleton/skeleton-element.d.ts +0 -8
- package/lib/skeleton/skeleton-grid-column.d.ts +0 -9
- package/lib/skeleton/skeleton-image-content.d.ts +0 -9
- package/lib/skeleton/skeleton-titled-content.d.ts +0 -9
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
declare type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'borderless';
|
|
3
|
-
declare type ButtonSize = 'small' | 'medium' | 'large';
|
|
4
|
-
declare type ButtonVariant = 'default' | 'danger';
|
|
5
|
-
declare type ButtonProps = {
|
|
6
|
-
type?: ButtonType;
|
|
7
|
-
size?: ButtonSize;
|
|
8
|
-
title?: string;
|
|
9
|
-
variant?: ButtonVariant;
|
|
10
|
-
onClick: () => void;
|
|
11
|
-
[key: string]: unknown;
|
|
12
|
-
};
|
|
13
|
-
export declare const GoAButton: FC<ButtonProps>;
|
|
14
|
-
export default GoAButton;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
interface Props {
|
|
3
|
-
title?: string;
|
|
4
|
-
type: 'primary' | 'secondary' | 'tertiary';
|
|
5
|
-
minWidth?: string;
|
|
6
|
-
maxWidth?: string;
|
|
7
|
-
other?: Record<string, unknown>;
|
|
8
|
-
}
|
|
9
|
-
export declare const GoACard: FC<Props>;
|
|
10
|
-
export default GoACard;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './row';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
2
|
-
import { GoAFormItem } from './form.item.component';
|
|
3
|
-
import { GoAFormActions } from './form.actions.component';
|
|
4
|
-
import './form.scss';
|
|
5
|
-
export declare const GoAForm: FC;
|
|
6
|
-
declare const _default: {
|
|
7
|
-
GoAForm: React.FC<{}>;
|
|
8
|
-
};
|
|
9
|
-
export default _default;
|
|
10
|
-
export { GoAFormItem, GoAFormActions };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './form.component';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { TestProps } from '../common';
|
|
3
|
-
import { IconSize, GoAIconType, IconVariant } from './icon.component';
|
|
4
|
-
import './icons.scss';
|
|
5
|
-
interface Props extends TestProps {
|
|
6
|
-
type: GoAIconType;
|
|
7
|
-
size?: IconSize;
|
|
8
|
-
variant?: IconVariant;
|
|
9
|
-
title?: string;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
onClick: () => void;
|
|
12
|
-
}
|
|
13
|
-
export declare function GoAIconButton({ type, disabled, variant, onClick, size, title, testId }: Props & TestProps): JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { GoABadge, GoAInfoBadge, GoAEmergencyBadge, GoASuccessBadge, GoAWarningBadge } from './badge/badge.component';
|
|
2
|
-
import { GoAButton } from './button/button';
|
|
3
|
-
import { GoAAppVersionHeader } from './app-version-header/app-version-header.component';
|
|
4
|
-
import { GoACard } from './card/card.component';
|
|
5
|
-
import { GoAFlexRow } from './flex';
|
|
6
|
-
import { GoAFormItem, GoAFormActions, GoAForm } from './form/form.component';
|
|
7
|
-
import { GoAIcon, GoAIconButton } from './icons';
|
|
8
|
-
import { GoAInput, GoAInputText, GoAInputPassword, GoAInputDate, GoAInputTime, GoAInputDateTime, GoAInputEmail, GoAInputSearch, GoAInputUrl, GoAInputTel, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputRange } from './input/input.component';
|
|
9
|
-
import { GoAModal, GoAModalActions, GoAModalContent, GoAModalTitle } from './modal/modal.component';
|
|
10
|
-
import { GoAScrollable } from './scrollable/scrollable.component';
|
|
11
|
-
import { GoATextArea } from './textarea/textarea.component';
|
|
12
|
-
import { GoATransition, GoATransitionSequence } from './transitions';
|
|
13
|
-
import type { GoAIconType } from './icons';
|
|
14
|
-
import type { GoABadgeType } from './badge/badge.component';
|
|
15
|
-
export type { GoAIconType, GoABadgeType };
|
|
16
|
-
export { GoABadge, GoAInfoBadge, GoAEmergencyBadge, GoASuccessBadge, GoAWarningBadge, GoAButton, GoAAppVersionHeader, GoACard, GoAFlexRow, GoAForm, GoAFormActions, GoAFormItem, GoAIcon, GoAIconButton, GoAInput, GoAInputText, GoAInputPassword, GoAInputDate, GoAInputTime, GoAInputDateTime, GoAInputEmail, GoAInputSearch, GoAInputUrl, GoAInputTel, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputRange, GoAModal, GoAModalActions, GoAModalContent, GoAModalTitle, GoAScrollable, GoATextArea, GoATransition, GoATransitionSequence };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { TestProps } from '../common';
|
|
3
|
-
import './modal.scss';
|
|
4
|
-
/**
|
|
5
|
-
* Modal - Main Component
|
|
6
|
-
*/
|
|
7
|
-
interface ModalProps {
|
|
8
|
-
isOpen?: boolean;
|
|
9
|
-
onClose?: () => void;
|
|
10
|
-
}
|
|
11
|
-
interface ModalTestProps extends TestProps {
|
|
12
|
-
backgroundTestId?: string;
|
|
13
|
-
}
|
|
14
|
-
export declare const GoAModal: FC<ModalProps & ModalTestProps>;
|
|
15
|
-
export default GoAModal;
|
|
16
|
-
export declare const GoAModalActions: FC;
|
|
17
|
-
export interface GoAModalContentProps {
|
|
18
|
-
disableScroll?: boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare const GoAModalContent: FC<GoAModalContentProps & TestProps>;
|
|
21
|
-
export declare const GoAModalTitle: FC<TestProps>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { TestProps } from '../common';
|
|
3
|
-
import './scrollable.scss';
|
|
4
|
-
interface Props {
|
|
5
|
-
vertical?: boolean;
|
|
6
|
-
horizontal?: boolean;
|
|
7
|
-
hPadding?: number;
|
|
8
|
-
vPadding?: number;
|
|
9
|
-
height?: number;
|
|
10
|
-
}
|
|
11
|
-
export declare const GoAScrollable: FC<Props & TestProps>;
|
|
12
|
-
export default GoAScrollable;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { OnChange } from '../../lib/_common/input';
|
|
3
|
-
import './textarea.scss';
|
|
4
|
-
interface Props {
|
|
5
|
-
name: string;
|
|
6
|
-
value: string;
|
|
7
|
-
id?: string;
|
|
8
|
-
placeholder?: string;
|
|
9
|
-
onChange: OnChange;
|
|
10
|
-
}
|
|
11
|
-
export declare const GoATextArea: FC<Props>;
|
|
12
|
-
export default GoATextArea;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
declare type TransitionType = 'fade-in' | 'fade-out' | 'slide-in-up' | 'slide-out-up' | 'slide-in-down' | 'slide-out-down' | 'slide-in-left' | 'slide-out-left' | 'slide-in-right' | 'slide-out-right';
|
|
3
|
-
interface Props {
|
|
4
|
-
transitions: string[] | TransitionType[];
|
|
5
|
-
transitionIndex: number;
|
|
6
|
-
onTransitionComplete?: (index: number, done: boolean) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const GoATransitionSequence: FC<Props>;
|
|
9
|
-
export {};
|
package/lib/_common/input.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React, { FC, ReactNode } from 'react';
|
|
2
|
-
import './card.scss';
|
|
3
|
-
interface Props {
|
|
4
|
-
/** Card title, required */
|
|
5
|
-
title: string | ReactNode;
|
|
6
|
-
/** Card content*/
|
|
7
|
-
content?: string | ReactNode;
|
|
8
|
-
/** Deprecated: Use content*/
|
|
9
|
-
description?: string;
|
|
10
|
-
/** Card image , display on top of title */
|
|
11
|
-
cardImageUrl?: string;
|
|
12
|
-
/** Minimum width of the card */
|
|
13
|
-
minWidth?: string;
|
|
14
|
-
/** Maximum width of the card */
|
|
15
|
-
maxWidth?: string;
|
|
16
|
-
/** Navigation to relate website from Card title */
|
|
17
|
-
titleUrl?: string;
|
|
18
|
-
/** customize footer by passing react component code */
|
|
19
|
-
children?: React.ReactNode;
|
|
20
|
-
other?: unknown;
|
|
21
|
-
}
|
|
22
|
-
export declare const GoACard: FC<Props>;
|
|
23
|
-
export default GoACard;
|
|
24
|
-
export declare const GoALoadingCardWithImage: (props: Props) => JSX.Element;
|
|
25
|
-
export declare const GoALoadingCardNoImage: (props: Props) => JSX.Element;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
2
|
-
import './card.group.scss';
|
|
3
|
-
declare type CardGroupLayout = 'basic' | 'column';
|
|
4
|
-
interface CardItem {
|
|
5
|
-
title: string;
|
|
6
|
-
/** Card description */
|
|
7
|
-
description?: string;
|
|
8
|
-
/** Card image , display on top of title */
|
|
9
|
-
cardImageUrl?: string;
|
|
10
|
-
/** Display card size to allow card responsively show in different device*/
|
|
11
|
-
cardWidth?: number;
|
|
12
|
-
/** Navigation to relate webside from Card title */
|
|
13
|
-
titleUrl?: string;
|
|
14
|
-
/** customize footer by passing react component code */
|
|
15
|
-
children?: React.ReactNode;
|
|
16
|
-
}
|
|
17
|
-
interface Props {
|
|
18
|
-
title?: string;
|
|
19
|
-
children?: React.ReactNode;
|
|
20
|
-
layout: CardGroupLayout;
|
|
21
|
-
cardItems?: CardItem[];
|
|
22
|
-
}
|
|
23
|
-
export declare const GoACardGroup: FC<Props>;
|
|
24
|
-
export default GoACardGroup;
|
package/lib/dropdown/option.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import './dropdown.scss';
|
|
3
|
-
interface Props {
|
|
4
|
-
value: string;
|
|
5
|
-
label: string;
|
|
6
|
-
selected?: boolean;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
onClick?: (value: string) => void;
|
|
9
|
-
visible?: boolean;
|
|
10
|
-
_testId?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const GoADropdownOption: FC<Props>;
|
|
13
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import './element-loader.scss';
|
|
3
|
-
export interface ElementLoaderProps {
|
|
4
|
-
visible?: boolean;
|
|
5
|
-
baseColour: string;
|
|
6
|
-
spinnerColour: string;
|
|
7
|
-
size?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const GoAElementLoader: ({ visible, baseColour, spinnerColour, size, }: ElementLoaderProps) => JSX.Element;
|
package/lib/header/header.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
import './header.scss';
|
|
3
|
-
declare type ServiceLevel = 'alpha' | 'beta' | 'live';
|
|
4
|
-
export interface HeaderProps {
|
|
5
|
-
serviceName: string;
|
|
6
|
-
serviceHome: string;
|
|
7
|
-
serviceLevel: ServiceLevel;
|
|
8
|
-
}
|
|
9
|
-
export declare const GoAHeader: FunctionComponent<HeaderProps>;
|
|
10
|
-
export default GoAHeader;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import './hero-banner.component.scss';
|
|
3
|
-
interface Props {
|
|
4
|
-
title: string;
|
|
5
|
-
backgroundUrl: string;
|
|
6
|
-
content?: string;
|
|
7
|
-
linkText?: string;
|
|
8
|
-
linkUrl?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const GoAHeroBanner: FC<Props>;
|
|
11
|
-
export default GoAHeroBanner;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
import './microsite-logo.scss';
|
|
3
|
-
export interface MicrositeLogoProps {
|
|
4
|
-
serviceName: string;
|
|
5
|
-
serviceHome: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const GoaMicrositeLogo: FunctionComponent<MicrositeLogoProps>;
|
|
8
|
-
export default GoaMicrositeLogo;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import './skeleton-element.scss';
|
|
3
|
-
declare type indicatorType = 'text' | 'avatar' | 'title' | 'paragraph' | 'thumbnail' | 'card';
|
|
4
|
-
export interface SkeletonProps {
|
|
5
|
-
type?: indicatorType;
|
|
6
|
-
}
|
|
7
|
-
export declare const GoASkeletonElement: ({ type }: SkeletonProps) => JSX.Element;
|
|
8
|
-
export {};
|