@abgov/react-components 5.5.0 → 5.5.2
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/form/form.d.ts +2 -2
- package/experimental/form/task-list.d.ts +2 -2
- package/experimental/form/task.d.ts +2 -2
- package/experimental/index.d.ts +2 -2
- package/experimental/resizable-panel/ResizablePanel.d.ts +1 -1
- package/experimental.js.map +1 -1
- package/experimental.mjs.map +1 -1
- package/icon-1IRcN4Uf.js.map +1 -1
- package/icon-DgSW1II3.mjs.map +1 -1
- package/index.d.ts +61 -61
- package/index.js +6 -3
- package/index.js.map +1 -1
- package/index.mjs +6 -3
- package/index.mjs.map +1 -1
- package/lib/accordion/accordion.d.ts +2 -2
- package/lib/app-header-menu/app-header-menu.d.ts +2 -2
- package/lib/badge/badge.d.ts +1 -1
- package/lib/block/block.d.ts +2 -2
- package/lib/button/button.d.ts +3 -3
- package/lib/button-group/button-group.d.ts +1 -1
- package/lib/calendar/calendar.d.ts +1 -1
- package/lib/callout/callout.d.ts +1 -1
- package/lib/card/card.d.ts +1 -1
- package/lib/card/index.d.ts +5 -5
- package/lib/checkbox/checkbox.d.ts +1 -1
- package/lib/chip/chip.d.ts +1 -1
- package/lib/container/container.d.ts +2 -2
- package/lib/date-picker/date-picker.d.ts +1 -1
- package/lib/details/details.d.ts +2 -2
- package/lib/divider/divider.d.ts +1 -1
- package/lib/drawer/drawer.d.ts +1 -1
- package/lib/dropdown/dropdown.d.ts +2 -2
- package/lib/fieldset/fieldset.d.ts +2 -2
- package/lib/filter-chip/filter-chip.d.ts +1 -1
- package/lib/footer/footer.d.ts +1 -1
- package/lib/footer-meta-section/footer-meta-section.d.ts +1 -1
- package/lib/footer-nav-section/footer-nav-section.d.ts +1 -1
- package/lib/form-item/form-item.d.ts +1 -1
- package/lib/form-stepper/form-stepper.d.ts +2 -2
- package/lib/grid/grid.d.ts +1 -1
- package/lib/icon/icon.d.ts +1 -1
- package/lib/icon-button/icon-button.d.ts +2 -2
- package/lib/input/input.d.ts +7 -4
- package/lib/link/link.d.ts +3 -3
- package/lib/link-button/link-button.d.ts +3 -3
- package/lib/modal/modal.d.ts +1 -1
- package/lib/one-column-layout/one-column-layout.d.ts +1 -1
- package/lib/page-block/page-block.d.ts +1 -1
- package/lib/pages/pages.d.ts +2 -2
- package/lib/pagination/pagination.d.ts +1 -1
- package/lib/popover/popover.d.ts +2 -2
- package/lib/radio-group/radio-group.d.ts +2 -2
- package/lib/radio-group/radio.d.ts +1 -1
- package/lib/side-menu/side-menu.d.ts +1 -1
- package/lib/side-menu-group/side-menu-group.d.ts +3 -3
- package/lib/side-menu-heading/side-menu-heading.d.ts +2 -2
- package/lib/skeleton/skeleton.d.ts +1 -1
- package/lib/spacer/spacer.d.ts +1 -1
- package/lib/table/table.d.ts +2 -2
- package/lib/tabs/tabs.d.ts +1 -1
- package/lib/text/text.d.ts +2 -2
- package/lib/textarea/textarea.d.ts +1 -1
- package/lib/three-column-layout/three-column-layout.d.ts +1 -1
- package/lib/tooltip/tooltip.d.ts +2 -2
- package/lib/two-column-layout/two-column-layout.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import { Margins } from
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
import { Margins } from '../../common/styling';
|
|
3
3
|
export type GoAHeadingSize = "small" | "medium";
|
|
4
4
|
export type GoAIconPosition = "left" | "right";
|
|
5
5
|
interface WCProps extends Margins {
|
package/lib/badge/badge.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Margins } from
|
|
1
|
+
import { Margins } from '../../common/styling';
|
|
2
2
|
export type GoABadgeType = "information" | "success" | "important" | "emergency" | "dark" | "midtone" | "light";
|
|
3
3
|
interface WCProps extends Margins {
|
|
4
4
|
type: GoABadgeType;
|
package/lib/block/block.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { Alignment, Direction, Margins, Spacing } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Alignment, Direction, Margins, Spacing } from '../../common/styling';
|
|
3
3
|
export interface WCProps extends Margins {
|
|
4
4
|
gap?: Spacing;
|
|
5
5
|
direction?: Direction;
|
package/lib/button/button.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { Margins } from
|
|
3
|
-
import { GoAIconType } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Margins } from '../../common/styling';
|
|
3
|
+
import { GoAIconType } from '../icon/icon';
|
|
4
4
|
export type GoAButtonType = "primary" | "submit" | "secondary" | "tertiary" | "start";
|
|
5
5
|
export type GoAButtonSize = "compact" | "normal";
|
|
6
6
|
export type GoAButtonVariant = "normal" | "destructive";
|
package/lib/callout/callout.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Margins } from
|
|
1
|
+
import { Margins } from '../../common/styling';
|
|
2
2
|
export type GoACalloutType = "important" | "information" | "event" | "success" | "emergency";
|
|
3
3
|
export type GoACalloutSize = "medium" | "large";
|
|
4
4
|
export type GoACalloutAriaLive = "off" | "polite" | "assertive";
|
package/lib/card/card.d.ts
CHANGED
package/lib/card/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
1
|
+
export * from './card-content';
|
|
2
|
+
export * from './card-image';
|
|
3
|
+
export * from './card-actions';
|
|
4
|
+
export * from './card-group';
|
|
5
|
+
export * from './card';
|
package/lib/chip/chip.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { Margins } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Margins } from '../../common/styling';
|
|
3
3
|
export type GoAContainerType = "interactive" | "non-interactive" | "info" | "error" | "success" | "important";
|
|
4
4
|
export type GoAContainerAccent = "thick" | "thin" | "filled";
|
|
5
5
|
export type GoAContainerPadding = "relaxed" | "compact";
|
package/lib/details/details.d.ts
CHANGED
package/lib/divider/divider.d.ts
CHANGED
package/lib/drawer/drawer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Margins } from
|
|
2
|
-
import { GoAIconType } from
|
|
1
|
+
import { Margins } from '../../common/styling';
|
|
2
|
+
import { GoAIconType } from '../icon/icon';
|
|
3
3
|
interface WCProps extends Margins {
|
|
4
4
|
ref: React.MutableRefObject<HTMLElement | null>;
|
|
5
5
|
arialabel?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { Margins } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Margins } from '../../common/styling';
|
|
3
3
|
interface WCProps extends Margins {
|
|
4
4
|
ref?: React.MutableRefObject<HTMLElement | null>;
|
|
5
5
|
id: string;
|
package/lib/footer/footer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { Margins } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Margins } from '../../common/styling';
|
|
3
3
|
interface WCProps extends Margins {
|
|
4
4
|
ref?: React.MutableRefObject<HTMLElement | null>;
|
|
5
5
|
step?: number;
|
package/lib/grid/grid.d.ts
CHANGED
package/lib/icon/icon.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Margins } from
|
|
2
|
-
import { GoAIconSize, GoAIconType } from
|
|
1
|
+
import { Margins } from '../../common/styling';
|
|
2
|
+
import { GoAIconSize, GoAIconType } from '../icon/icon';
|
|
3
3
|
export type GoAIconButtonVariant = "color" | "nocolor" | "light" | "dark" | "destructive";
|
|
4
4
|
export type IconButtonVariant = GoAIconButtonVariant;
|
|
5
5
|
interface WCProps extends Margins {
|
package/lib/input/input.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { GoAIconType } from
|
|
2
|
-
import { Margins } from
|
|
1
|
+
import { GoAIconType } from '../..';
|
|
2
|
+
import { Margins } from '../../common/styling';
|
|
3
3
|
export type GoADate = Date | string;
|
|
4
4
|
export type GoAInputType = "text" | "password" | "email" | "number" | "date" | "datetime-local" | "month" | "range" | "search" | "tel" | "time" | "url" | "week";
|
|
5
5
|
export type GoAAutoCapitalize = "on" | "off" | "none" | "sentences" | "words" | "characters";
|
|
6
|
+
export type GoAInputTextAlign = "left" | "right";
|
|
6
7
|
interface WCProps extends Margins {
|
|
7
8
|
ref?: React.MutableRefObject<HTMLInputElement | null>;
|
|
8
9
|
type?: GoAInputType;
|
|
@@ -10,6 +11,7 @@ interface WCProps extends Margins {
|
|
|
10
11
|
value?: string;
|
|
11
12
|
id?: string;
|
|
12
13
|
autocapitalize?: GoAAutoCapitalize;
|
|
14
|
+
textalign?: GoAInputTextAlign;
|
|
13
15
|
debounce?: number;
|
|
14
16
|
placeholder?: string;
|
|
15
17
|
leadingicon?: string;
|
|
@@ -43,6 +45,7 @@ interface BaseProps extends Margins {
|
|
|
43
45
|
debounce?: number;
|
|
44
46
|
disabled?: boolean;
|
|
45
47
|
autoCapitalize?: GoAAutoCapitalize;
|
|
48
|
+
textAlign?: GoAInputTextAlign;
|
|
46
49
|
placeholder?: string;
|
|
47
50
|
leadingIcon?: GoAIconType;
|
|
48
51
|
trailingIcon?: GoAIconType;
|
|
@@ -94,14 +97,14 @@ interface GoADateInputProps extends BaseProps {
|
|
|
94
97
|
onBlur?: OnBlur<GoADate>;
|
|
95
98
|
onKeyPress?: OnKeyPress<GoADate>;
|
|
96
99
|
}
|
|
97
|
-
export declare function GoAInput({ id, debounce, name, type, autoCapitalize, leadingIcon, trailingIcon, variant, focused, disabled, readonly, value, placeholder, error, width, testId, min, max, step, prefix, suffix, ariaLabel, mt, mr, mb, ml, leadingContent, trailingContent, maxLength, onTrailingIconClick, onChange, onFocus, onBlur, onKeyPress, }: GoAInputProps & {
|
|
100
|
+
export declare function GoAInput({ id, debounce, name, type, autoCapitalize, textAlign, leadingIcon, trailingIcon, variant, focused, disabled, readonly, value, placeholder, error, width, testId, min, max, step, prefix, suffix, ariaLabel, mt, mr, mb, ml, leadingContent, trailingContent, maxLength, onTrailingIconClick, onChange, onFocus, onBlur, onKeyPress, }: GoAInputProps & {
|
|
98
101
|
type?: GoAInputType;
|
|
99
102
|
}): JSX.Element;
|
|
100
103
|
export declare function GoAInputText(props: GoAInputProps): JSX.Element;
|
|
101
104
|
export declare function GoAInputPassword(props: GoAInputProps): JSX.Element;
|
|
102
105
|
export declare function GoAInputDate({ value, min, max, ...props }: GoADateInputProps): JSX.Element;
|
|
103
106
|
export declare function GoAInputTime({ value, min, max, ...props }: GoAInputProps): JSX.Element;
|
|
104
|
-
export declare function GoAInputDateTime({ value, min, max, ...props }: GoADateInputProps): JSX.Element;
|
|
107
|
+
export declare function GoAInputDateTime({ value, min, max, step, ...props }: GoADateInputProps): JSX.Element;
|
|
105
108
|
export declare function GoAInputEmail(props: GoAInputProps): JSX.Element;
|
|
106
109
|
export declare function GoAInputSearch(props: GoAInputProps): JSX.Element;
|
|
107
110
|
export declare function GoAInputUrl(props: GoAInputProps): JSX.Element;
|
package/lib/link/link.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { Margins } from
|
|
3
|
-
import { GoAIconType } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Margins } from '../../common/styling';
|
|
3
|
+
import { GoAIconType } from '../icon/icon';
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
5
|
leadingicon?: GoAIconType;
|
|
6
6
|
trailingicon?: GoAIconType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { Margins } from
|
|
3
|
-
import { GoAIconType } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Margins } from '../../common/styling';
|
|
3
|
+
import { GoAIconType } from '../icon/icon';
|
|
4
4
|
export type GoALinkButtonType = "start" | "primary" | "secondary" | "tertiary";
|
|
5
5
|
interface WCProps extends Margins {
|
|
6
6
|
type?: GoALinkButtonType;
|
package/lib/modal/modal.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactElement, ReactNode, RefObject } from
|
|
1
|
+
import { ReactElement, ReactNode, RefObject } from 'react';
|
|
2
2
|
export type GoAModalTransition = "fast" | "slow" | "none";
|
|
3
3
|
export type GoAModalCalloutVariant = "information" | "important" | "emergency" | "success" | "event";
|
|
4
4
|
export type GoAModalRole = "dialog" | "alertdialog";
|
package/lib/pages/pages.d.ts
CHANGED
package/lib/popover/popover.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { Margins } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Margins } from '../../common/styling';
|
|
3
3
|
export type GoAPosition = "above" | "below" | "auto";
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
5
|
maxwidth?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Margins } from
|
|
2
|
-
export * from
|
|
1
|
+
import { Margins } from '../../common/styling';
|
|
2
|
+
export * from './radio';
|
|
3
3
|
export type GoARadioGroupOrientation = "horizontal" | "vertical";
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
5
|
ref: React.RefObject<HTMLElement>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { GoAIconType } from
|
|
3
|
-
import { Margins } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { GoAIconType } from '../icon/icon';
|
|
3
|
+
import { Margins } from '../../common/styling';
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
5
|
heading: string;
|
|
6
6
|
icon?: GoAIconType;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Margins } from
|
|
1
|
+
import { Margins } from '../../common/styling';
|
|
2
2
|
export type GoASkeletonType = "image" | "text" | "title" | "text-small" | "avatar" | "header" | "paragraph" | "thumbnail" | "card" | "profile" | "article";
|
|
3
3
|
export type GoASkeletonSize = 1 | 2 | 3 | 4;
|
|
4
4
|
export type SkeletonType = GoASkeletonType;
|
package/lib/spacer/spacer.d.ts
CHANGED
package/lib/table/table.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { Margins } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Margins } from '../../common/styling';
|
|
3
3
|
export type GoATableVariant = "normal" | "relaxed";
|
|
4
4
|
export type TableVariant = GoATableVariant;
|
|
5
5
|
interface WCProps extends Margins {
|
package/lib/tabs/tabs.d.ts
CHANGED
package/lib/text/text.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { Margins } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Margins } from '../../common/styling';
|
|
3
3
|
type MaxWidth = string | "none";
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
5
|
as?: TextElement | HeadingElement;
|
package/lib/tooltip/tooltip.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from
|
|
2
|
-
import { Margins } from
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Margins } from '../../common/styling';
|
|
3
3
|
export type GoATooltipPosition = "top" | "bottom" | "left" | "right";
|
|
4
4
|
export type GoATooltipHorizontalAlignment = "left" | "right" | "center";
|
|
5
5
|
interface WCProps extends Margins {
|