@abgov/react-components 4.17.0-alpha.3 → 4.17.0-alpha.31
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/common/styling.d.ts +12 -9
- package/index.d.ts +56 -59
- package/index.js +24193 -0
- package/index.js.map +1 -0
- package/index.mjs +24193 -0
- package/index.mjs.map +1 -0
- package/lib/accordion/accordion.d.ts +28 -28
- package/lib/app-header/app-header.d.ts +23 -22
- package/lib/app-header-menu/app-header-menu.d.ts +21 -20
- package/lib/badge/badge.d.ts +40 -41
- package/lib/block/block.d.ts +23 -23
- package/lib/button/button.d.ts +38 -38
- package/lib/button-group/button-group.d.ts +23 -24
- package/lib/calendar/calendar.d.ts +25 -25
- package/lib/callout/callout.d.ts +25 -26
- package/lib/checkbox/checkbox.d.ts +37 -38
- package/lib/chip/chip.d.ts +28 -29
- package/lib/circular-progress/circular-progress.d.ts +28 -29
- package/lib/container/container.d.ts +32 -29
- package/lib/date-picker/date-picker.d.ts +27 -25
- package/lib/details/details.d.ts +22 -21
- package/lib/divider/divider.d.ts +13 -14
- package/lib/dropdown/dropdown-item.d.ts +23 -24
- package/lib/dropdown/dropdown.d.ts +49 -50
- package/lib/file-upload-card/file-upload-card.d.ts +27 -27
- package/lib/file-upload-input/file-upload-input.d.ts +23 -23
- package/lib/footer/footer.d.ts +19 -19
- package/lib/footer-meta-section/footer-meta-section.d.ts +15 -14
- package/lib/footer-nav-section/footer-nav-section.d.ts +20 -20
- package/lib/{form → form-item}/form-item.d.ts +30 -31
- package/lib/form-step/form-step.d.ts +19 -20
- package/lib/form-stepper/form-stepper.d.ts +22 -22
- package/lib/grid/grid.d.ts +20 -21
- package/lib/hero-banner/hero-banner-actions.d.ts +5 -6
- package/lib/hero-banner/hero-banner.d.ts +27 -28
- package/lib/icon/icon.d.ts +52 -42
- package/lib/icon-button/icon-button.d.ts +33 -32
- package/lib/input/input.d.ts +112 -116
- package/lib/microsite-header/microsite-header.d.ts +30 -31
- package/lib/modal/modal.d.ts +39 -36
- package/lib/notification/notification.d.ts +27 -28
- package/lib/one-column-layout/one-column-layout.d.ts +14 -14
- package/lib/page-block/page-block.d.ts +19 -18
- package/lib/pages/pages.d.ts +18 -18
- package/lib/pagination/pagination.d.ts +26 -27
- package/lib/popover/popover.d.ts +29 -27
- package/lib/radio-group/radio-group.d.ts +32 -33
- package/lib/radio-group/radio.d.ts +29 -30
- package/lib/side-menu/side-menu.d.ts +15 -14
- package/lib/side-menu-group/side-menu-group.d.ts +18 -17
- package/lib/side-menu-heading/side-menu-heading.d.ts +20 -19
- package/lib/skeleton/skeleton.d.ts +27 -28
- package/lib/spacer/spacer.d.ts +20 -21
- package/lib/spinner/spinner.d.ts +25 -26
- package/lib/tab/tab.d.ts +17 -18
- package/lib/table/table-sort-header.d.ts +19 -20
- package/lib/table/table.d.ts +27 -27
- package/lib/tabs/tabs.d.ts +17 -17
- package/lib/textarea/textarea.d.ts +41 -39
- package/lib/three-column-layout/three-column-layout.d.ts +26 -26
- package/lib/tooltip/tooltip.d.ts +25 -25
- package/lib/two-column-layout/two-column-layout.d.ts +22 -22
- package/package.json +16 -11
- package/README.md +0 -34
- package/experimental/index.d.ts +0 -0
- package/experimental/package.json +0 -11
- package/experimental/react-components.esm.js +0 -1
- package/experimental/react-components.umd.js +0 -8
- package/lib/card/card-actions.d.ts +0 -13
- package/lib/card/card-content.d.ts +0 -13
- package/lib/card/card-group.d.ts +0 -13
- package/lib/card/card-image.d.ts +0 -18
- package/lib/card/card.d.ts +0 -22
- package/lib/card/index.d.ts +0 -5
- package/lib/form/index.d.ts +0 -1
- package/lib/form/validators.d.ts +0 -10
- package/react-components.esm.js +0 -3383
- package/react-components.umd.js +0 -3443
package/lib/popover/popover.d.ts
CHANGED
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { Margins } from "../../common/styling";
|
|
3
|
-
export
|
|
4
|
-
interface WCProps extends Margins {
|
|
5
|
-
maxwidth?: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { Margins } from "../../common/styling";
|
|
3
|
+
export type GoAPosition = "above" | "below" | "auto";
|
|
4
|
+
interface WCProps extends Margins {
|
|
5
|
+
maxwidth?: string;
|
|
6
|
+
minwidth?: string;
|
|
7
|
+
padded?: boolean;
|
|
8
|
+
position?: GoAPosition;
|
|
9
|
+
relative?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare global {
|
|
12
|
+
namespace JSX {
|
|
13
|
+
interface IntrinsicElements {
|
|
14
|
+
"goa-popover": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export interface GoAPopoverProps extends Margins {
|
|
19
|
+
target?: ReactNode;
|
|
20
|
+
testId?: string;
|
|
21
|
+
maxWidth?: string;
|
|
22
|
+
minWidth?: string;
|
|
23
|
+
padded?: boolean;
|
|
24
|
+
position?: GoAPosition;
|
|
25
|
+
children: ReactNode;
|
|
26
|
+
relative?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare function GoAPopover({ target, testId, maxWidth, minWidth, padded, position, relative, children, mt, mr, mb, ml, }: GoAPopoverProps): JSX.Element;
|
|
29
|
+
export default GoAPopover;
|
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
export
|
|
33
|
-
export default GoARadioGroup;
|
|
1
|
+
import { Margins } from "../../common/styling";
|
|
2
|
+
export * from "./radio";
|
|
3
|
+
export type GoARadioGroupOrientation = "horizontal" | "vertical";
|
|
4
|
+
interface WCProps extends Margins {
|
|
5
|
+
ref: React.RefObject<HTMLElement>;
|
|
6
|
+
name: string;
|
|
7
|
+
value?: string;
|
|
8
|
+
orientation?: GoARadioGroupOrientation;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
error?: boolean;
|
|
11
|
+
arialabel?: string;
|
|
12
|
+
}
|
|
13
|
+
declare global {
|
|
14
|
+
namespace JSX {
|
|
15
|
+
interface IntrinsicElements {
|
|
16
|
+
"goa-radio-group": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export interface GoARadioGroupProps extends Margins {
|
|
21
|
+
name: string;
|
|
22
|
+
value?: string;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
orientation?: GoARadioGroupOrientation;
|
|
25
|
+
testId?: string;
|
|
26
|
+
error?: boolean;
|
|
27
|
+
ariaLabel?: string;
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
onChange: (name: string, value: string) => void;
|
|
30
|
+
}
|
|
31
|
+
export declare function GoARadioGroup({ name, value, children, orientation, disabled, error, testId, ariaLabel, mt, mr, mb, ml, onChange, }: GoARadioGroupProps): JSX.Element;
|
|
32
|
+
export default GoARadioGroup;
|
|
@@ -1,30 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
export
|
|
30
|
-
export default GoARadioItem;
|
|
1
|
+
interface RadioItemProps {
|
|
2
|
+
name?: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
description?: string | React.ReactNode;
|
|
5
|
+
label?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare global {
|
|
11
|
+
namespace JSX {
|
|
12
|
+
interface IntrinsicElements {
|
|
13
|
+
"goa-radio-item": RadioItemProps & React.HTMLAttributes<HTMLElement>;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export interface GoARadioItemProps {
|
|
18
|
+
value?: string;
|
|
19
|
+
label?: string;
|
|
20
|
+
name?: string;
|
|
21
|
+
description?: string | React.ReactNode;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
checked?: boolean;
|
|
24
|
+
error?: boolean;
|
|
25
|
+
children?: React.ReactNode;
|
|
26
|
+
testId?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare function GoARadioItem({ name, label, value, description, disabled, checked, error, testId, children, }: GoARadioItemProps): JSX.Element;
|
|
29
|
+
export default GoARadioItem;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
declare global {
|
|
3
|
-
namespace JSX {
|
|
4
|
-
interface IntrinsicElements {
|
|
5
|
-
"goa-side-menu": React.HTMLAttributes<HTMLElement>;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
export interface GoASideMenuProps {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export
|
|
14
|
-
export
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
declare global {
|
|
3
|
+
namespace JSX {
|
|
4
|
+
interface IntrinsicElements {
|
|
5
|
+
"goa-side-menu": React.HTMLAttributes<HTMLElement>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export interface GoASideMenuProps {
|
|
10
|
+
testId?: string;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export type SideMenuProps = GoASideMenuProps;
|
|
14
|
+
export declare function GoASideMenu(props: GoASideMenuProps): JSX.Element;
|
|
15
|
+
export default GoASideMenu;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
interface WCProps {
|
|
3
|
-
heading: string;
|
|
4
|
-
}
|
|
5
|
-
declare global {
|
|
6
|
-
namespace JSX {
|
|
7
|
-
interface IntrinsicElements {
|
|
8
|
-
"goa-side-menu-group": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
export interface GoASideMenuGroupProps {
|
|
13
|
-
heading: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
interface WCProps {
|
|
3
|
+
heading: string;
|
|
4
|
+
}
|
|
5
|
+
declare global {
|
|
6
|
+
namespace JSX {
|
|
7
|
+
interface IntrinsicElements {
|
|
8
|
+
"goa-side-menu-group": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export interface GoASideMenuGroupProps {
|
|
13
|
+
heading: string;
|
|
14
|
+
testId?: string;
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare function GoASideMenuGroup(props: GoASideMenuGroupProps): JSX.Element;
|
|
18
|
+
export default GoASideMenuGroup;
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { GoAIconType } from "../icon/icon";
|
|
3
|
-
interface WCProps {
|
|
4
|
-
icon?: GoAIconType;
|
|
5
|
-
}
|
|
6
|
-
declare global {
|
|
7
|
-
namespace JSX {
|
|
8
|
-
interface IntrinsicElements {
|
|
9
|
-
"goa-side-menu-heading": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
export interface GoASideMenuHeadingProps {
|
|
14
|
-
meta?: ReactNode;
|
|
15
|
-
icon?: GoAIconType;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { GoAIconType } from "../icon/icon";
|
|
3
|
+
interface WCProps {
|
|
4
|
+
icon?: GoAIconType;
|
|
5
|
+
}
|
|
6
|
+
declare global {
|
|
7
|
+
namespace JSX {
|
|
8
|
+
interface IntrinsicElements {
|
|
9
|
+
"goa-side-menu-heading": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export interface GoASideMenuHeadingProps {
|
|
14
|
+
meta?: ReactNode;
|
|
15
|
+
icon?: GoAIconType;
|
|
16
|
+
testId?: string;
|
|
17
|
+
children?: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare function GoASideMenuHeading(props: GoASideMenuHeadingProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default GoASideMenuHeading;
|
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
export declare type
|
|
27
|
-
export
|
|
28
|
-
export default GoASkeleton;
|
|
1
|
+
import { Margins } from "../../common/styling";
|
|
2
|
+
export type GoASkeletonType = "image" | "text" | "title" | "text-small" | "avatar" | "header" | "paragraph" | "thumbnail" | "card" | "profile" | "article";
|
|
3
|
+
export type GoASkeletonSize = 1 | 2 | 3 | 4;
|
|
4
|
+
export type SkeletonType = GoASkeletonType;
|
|
5
|
+
interface WCProps extends Margins {
|
|
6
|
+
maxwidth?: string;
|
|
7
|
+
size?: GoASkeletonSize;
|
|
8
|
+
linecount?: number;
|
|
9
|
+
type: GoASkeletonType;
|
|
10
|
+
}
|
|
11
|
+
declare global {
|
|
12
|
+
namespace JSX {
|
|
13
|
+
interface IntrinsicElements {
|
|
14
|
+
"goa-skeleton": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export interface GoASkeletonProps extends Margins {
|
|
19
|
+
maxWidth?: string;
|
|
20
|
+
size?: GoASkeletonSize;
|
|
21
|
+
lineCount?: number;
|
|
22
|
+
type: GoASkeletonType;
|
|
23
|
+
testId?: string;
|
|
24
|
+
}
|
|
25
|
+
export type SkeletonProps = GoASkeletonProps;
|
|
26
|
+
export declare const GoASkeleton: ({ maxWidth, size, lineCount, type, testId, mt, mr, mb, ml, }: GoASkeletonProps) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export default GoASkeleton;
|
package/lib/spacer/spacer.d.ts
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export declare
|
|
20
|
-
export
|
|
21
|
-
export default GoASpacer;
|
|
1
|
+
import { Spacing } from "../../common/styling";
|
|
2
|
+
interface WCProps {
|
|
3
|
+
hspacing?: Spacing | "fill";
|
|
4
|
+
vspacing?: Spacing;
|
|
5
|
+
}
|
|
6
|
+
declare global {
|
|
7
|
+
namespace JSX {
|
|
8
|
+
interface IntrinsicElements {
|
|
9
|
+
"goa-spacer": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export interface GoASpacerProps {
|
|
14
|
+
hSpacing?: Spacing | "fill";
|
|
15
|
+
vSpacing?: Spacing;
|
|
16
|
+
testId?: string;
|
|
17
|
+
}
|
|
18
|
+
export type SpacerProps = GoASpacerProps;
|
|
19
|
+
export declare function GoASpacer(props: GoASpacerProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default GoASpacer;
|
package/lib/spinner/spinner.d.ts
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export declare type
|
|
25
|
-
export
|
|
26
|
-
export default GoASpinner;
|
|
1
|
+
export type SpinnerType = "infinite" | "progress";
|
|
2
|
+
export type SpinnerSize = "small" | "medium" | "large" | "xlarge";
|
|
3
|
+
interface WCProps {
|
|
4
|
+
size: SpinnerSize;
|
|
5
|
+
type: SpinnerType;
|
|
6
|
+
invert?: boolean;
|
|
7
|
+
progress?: number;
|
|
8
|
+
}
|
|
9
|
+
declare global {
|
|
10
|
+
namespace JSX {
|
|
11
|
+
interface IntrinsicElements {
|
|
12
|
+
"goa-spinner": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export interface GoASpinnerProps {
|
|
17
|
+
type: SpinnerType;
|
|
18
|
+
size: SpinnerSize;
|
|
19
|
+
invert?: boolean;
|
|
20
|
+
progress?: number;
|
|
21
|
+
testId?: string;
|
|
22
|
+
}
|
|
23
|
+
export type SpinnerProps = GoASpinnerProps;
|
|
24
|
+
export declare function GoASpinner({ type, size, progress, invert, testId, }: GoASpinnerProps): JSX.Element;
|
|
25
|
+
export default GoASpinner;
|
package/lib/tab/tab.d.ts
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export declare
|
|
17
|
-
export
|
|
18
|
-
export {};
|
|
1
|
+
interface WCProps {
|
|
2
|
+
heading?: React.ReactNode;
|
|
3
|
+
}
|
|
4
|
+
declare global {
|
|
5
|
+
namespace JSX {
|
|
6
|
+
interface IntrinsicElements {
|
|
7
|
+
"goa-tab": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export interface GoATabItemProps {
|
|
12
|
+
heading?: React.ReactNode;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export type TabItemProps = GoATabItemProps;
|
|
16
|
+
export declare function GoATab({ heading, children }: GoATabItemProps): JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
export
|
|
20
|
-
export default GoATableSortHeader;
|
|
1
|
+
export type GoATableSortDirection = "asc" | "desc" | "none";
|
|
2
|
+
interface WCProps {
|
|
3
|
+
name?: string;
|
|
4
|
+
direction?: GoATableSortDirection;
|
|
5
|
+
}
|
|
6
|
+
declare global {
|
|
7
|
+
namespace JSX {
|
|
8
|
+
interface IntrinsicElements {
|
|
9
|
+
"goa-table-sort-header": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export interface GoATableSortProps {
|
|
14
|
+
name?: string;
|
|
15
|
+
direction?: GoATableSortDirection;
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export declare function GoATableSortHeader({ name, direction, children, }: GoATableSortProps): JSX.Element;
|
|
19
|
+
export default GoATableSortHeader;
|
package/lib/table/table.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import { Margins } from "../../common/styling";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
interface WCProps extends Margins {
|
|
6
|
-
ref?: React.MutableRefObject<HTMLElement | null>;
|
|
7
|
-
width?: string;
|
|
8
|
-
stickyheader?: boolean;
|
|
9
|
-
variant?: GoATableVariant;
|
|
10
|
-
}
|
|
11
|
-
declare global {
|
|
12
|
-
namespace JSX {
|
|
13
|
-
interface IntrinsicElements {
|
|
14
|
-
"goa-table": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
export interface GoATableProps extends Margins {
|
|
19
|
-
width?: string;
|
|
20
|
-
onSort?: (sortBy: string, sortDir: number) => void;
|
|
21
|
-
variant?: GoATableVariant;
|
|
22
|
-
testId?: string;
|
|
23
|
-
children?: ReactNode;
|
|
24
|
-
}
|
|
25
|
-
export
|
|
26
|
-
export declare function GoATable(props: GoATableProps): JSX.Element;
|
|
27
|
-
export default GoATable;
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { Margins } from "../../common/styling";
|
|
3
|
+
export type GoATableVariant = "normal" | "relaxed";
|
|
4
|
+
export type TableVariant = GoATableVariant;
|
|
5
|
+
interface WCProps extends Margins {
|
|
6
|
+
ref?: React.MutableRefObject<HTMLElement | null>;
|
|
7
|
+
width?: string;
|
|
8
|
+
stickyheader?: boolean;
|
|
9
|
+
variant?: GoATableVariant;
|
|
10
|
+
}
|
|
11
|
+
declare global {
|
|
12
|
+
namespace JSX {
|
|
13
|
+
interface IntrinsicElements {
|
|
14
|
+
"goa-table": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export interface GoATableProps extends Margins {
|
|
19
|
+
width?: string;
|
|
20
|
+
onSort?: (sortBy: string, sortDir: number) => void;
|
|
21
|
+
variant?: GoATableVariant;
|
|
22
|
+
testId?: string;
|
|
23
|
+
children?: ReactNode;
|
|
24
|
+
}
|
|
25
|
+
export type TableProps = GoATableProps;
|
|
26
|
+
export declare function GoATable({ onSort, ...props }: GoATableProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export default GoATable;
|
package/lib/tabs/tabs.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
export declare function GoATabs({ initialTab, children }: GoATabsProps): JSX.Element;
|
|
17
|
-
export default GoATabs;
|
|
1
|
+
interface WCProps {
|
|
2
|
+
initialtab?: number;
|
|
3
|
+
}
|
|
4
|
+
declare global {
|
|
5
|
+
namespace JSX {
|
|
6
|
+
interface IntrinsicElements {
|
|
7
|
+
"goa-tabs": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export interface GoATabsProps {
|
|
12
|
+
initialTab?: number;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
testId?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function GoATabs({ initialTab, children, testId }: GoATabsProps): JSX.Element;
|
|
17
|
+
export default GoATabs;
|