@abgov/react-components 6.3.0-alpha.4 → 6.3.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/form/form-summary.d.ts +1 -1
- package/experimental/form/form.d.ts +2 -2
- package/experimental/form/task-list.d.ts +2 -2
- package/experimental/form/task.d.ts +1 -1
- package/experimental/resizable-panel/ResizablePanel.d.ts +1 -1
- package/experimental.js +1 -1
- package/experimental.js.map +1 -1
- package/experimental.mjs +2 -2
- package/experimental.mjs.map +1 -1
- package/{icon-BPmPItnm.js → icon-CK55b563.js} +5 -4
- package/icon-CK55b563.js.map +1 -0
- package/{icon-BNGrU_R_.mjs → icon-CoYGOp1V.mjs} +5 -4
- package/icon-CoYGOp1V.mjs.map +1 -0
- package/index.js +68 -71
- package/index.js.map +1 -1
- package/index.mjs +68 -71
- package/index.mjs.map +1 -1
- package/lib/accordion/accordion.d.ts +4 -4
- package/lib/app-header/app-header.d.ts +5 -4
- package/lib/app-header-menu/app-header-menu.d.ts +1 -1
- package/lib/badge/badge.d.ts +3 -2
- package/lib/block/block.d.ts +1 -1
- package/lib/button/button.d.ts +4 -4
- package/lib/button-group/button-group.d.ts +2 -1
- package/lib/calendar/calendar.d.ts +3 -2
- package/lib/callout/callout.d.ts +1 -1
- package/lib/card/card-actions.d.ts +3 -2
- package/lib/card/card-content.d.ts +3 -2
- package/lib/card/card-group.d.ts +3 -2
- package/lib/card/card-image.d.ts +3 -2
- package/lib/card/card.d.ts +2 -1
- package/lib/checkbox/checkbox.d.ts +7 -6
- package/lib/chip/chip.d.ts +6 -6
- package/lib/circular-progress/circular-progress.d.ts +1 -1
- package/lib/container/container.d.ts +2 -2
- package/lib/date-picker/date-picker.d.ts +6 -5
- package/lib/details/details.d.ts +2 -2
- package/lib/divider/divider.d.ts +1 -1
- package/lib/drawer/drawer.d.ts +6 -6
- package/lib/dropdown/dropdown-item.d.ts +2 -2
- package/lib/dropdown/dropdown.d.ts +9 -8
- package/lib/fieldset/fieldset.d.ts +4 -4
- package/lib/file-upload-card/file-upload-card.d.ts +2 -2
- package/lib/file-upload-input/file-upload-input.d.ts +2 -2
- package/lib/filter-chip/filter-chip.d.ts +3 -3
- package/lib/footer/footer.d.ts +2 -2
- 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 +2 -1
- package/lib/form-step/form-step.d.ts +1 -1
- package/lib/form-stepper/form-stepper.d.ts +2 -2
- package/lib/grid/grid.d.ts +2 -1
- package/lib/hero-banner/hero-banner-actions.d.ts +2 -1
- package/lib/hero-banner/hero-banner.d.ts +3 -2
- package/lib/icon/icon.d.ts +6 -4
- package/lib/icon-button/icon-button.d.ts +4 -3
- package/lib/input/input.d.ts +8 -7
- package/lib/link/link.d.ts +1 -1
- package/lib/link-button/link-button.d.ts +1 -1
- package/lib/microsite-header/microsite-header.d.ts +4 -3
- package/lib/modal/modal.d.ts +6 -6
- package/lib/notification/notification.d.ts +2 -2
- package/lib/one-column-layout/one-column-layout.d.ts +2 -2
- package/lib/page-block/page-block.d.ts +2 -2
- package/lib/pages/pages.d.ts +2 -2
- package/lib/pagination/pagination.d.ts +2 -2
- package/lib/popover/popover.d.ts +4 -4
- package/lib/radio-group/radio-group.d.ts +5 -4
- package/lib/radio-group/radio.d.ts +8 -8
- package/lib/side-menu/side-menu.d.ts +2 -2
- package/lib/side-menu-group/side-menu-group.d.ts +2 -2
- package/lib/side-menu-heading/side-menu-heading.d.ts +1 -1
- package/lib/skeleton/skeleton.d.ts +1 -1
- package/lib/spacer/spacer.d.ts +1 -1
- package/lib/spinner/spinner.d.ts +3 -2
- package/lib/tab/tab.d.ts +3 -2
- package/lib/table/table-sort-header.d.ts +2 -1
- package/lib/table/table.d.ts +3 -3
- package/lib/tabs/tabs.d.ts +3 -3
- package/lib/text/text.d.ts +2 -2
- package/lib/textarea/textarea.d.ts +5 -4
- 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 +4 -4
- package/icon-BNGrU_R_.mjs.map +0 -1
- package/icon-BPmPItnm.js.map +0 -1
|
@@ -1,16 +1,17 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
import { GoabIconButtonVariant, GoabIconSize, GoabIconType, Margins } from '@abgov/ui-components-common';
|
|
2
3
|
|
|
3
4
|
interface WCProps extends Margins {
|
|
4
|
-
ref: React.RefObject<HTMLElement>;
|
|
5
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
5
6
|
icon: GoabIconType;
|
|
6
7
|
size?: GoabIconSize;
|
|
7
8
|
variant?: GoabIconButtonVariant;
|
|
8
9
|
title?: string;
|
|
9
|
-
disabled?:
|
|
10
|
+
disabled?: string;
|
|
10
11
|
arialabel?: string;
|
|
11
12
|
testid?: string;
|
|
12
13
|
}
|
|
13
|
-
declare
|
|
14
|
+
declare module "react" {
|
|
14
15
|
namespace JSX {
|
|
15
16
|
interface IntrinsicElements {
|
|
16
17
|
"goa-icon-button": WCProps & React.HTMLAttributes<HTMLButtonElement>;
|
package/lib/input/input.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { GoabAutoCapitalize, GoabDate, GoabIconType, GoaInputOnBlurDetail, GoabInputOnChangeDetail, GoabInputOnFocusDetail, GoabInputOnKeyPressDetail, GoabInputType, Margins } from '@abgov/ui-components-common';
|
|
2
|
+
import { JSX } from 'react';
|
|
2
3
|
|
|
3
4
|
export interface IgnoreMe {
|
|
4
5
|
ignore: string;
|
|
5
6
|
}
|
|
6
7
|
interface WCProps extends Margins {
|
|
7
|
-
ref?: React.
|
|
8
|
+
ref?: React.RefObject<HTMLInputElement | null>;
|
|
8
9
|
type?: GoabInputType;
|
|
9
10
|
name: string;
|
|
10
11
|
value?: string;
|
|
@@ -15,11 +16,11 @@ interface WCProps extends Margins {
|
|
|
15
16
|
leadingicon?: string;
|
|
16
17
|
trailingicon?: string;
|
|
17
18
|
variant: string;
|
|
18
|
-
disabled?:
|
|
19
|
-
error?:
|
|
20
|
-
readonly?:
|
|
21
|
-
focused?:
|
|
22
|
-
handletrailingiconclick
|
|
19
|
+
disabled?: string;
|
|
20
|
+
error?: string;
|
|
21
|
+
readonly?: string;
|
|
22
|
+
focused?: string;
|
|
23
|
+
handletrailingiconclick: string;
|
|
23
24
|
width?: string;
|
|
24
25
|
prefix?: string;
|
|
25
26
|
suffix?: string;
|
|
@@ -31,7 +32,7 @@ interface WCProps extends Margins {
|
|
|
31
32
|
maxlength?: number;
|
|
32
33
|
trailingiconarialabel?: string;
|
|
33
34
|
}
|
|
34
|
-
declare
|
|
35
|
+
declare module "react" {
|
|
35
36
|
namespace JSX {
|
|
36
37
|
interface IntrinsicElements {
|
|
37
38
|
"goa-input": WCProps & React.HTMLAttributes<HTMLInputElement>;
|
package/lib/link/link.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ interface WCProps extends Margins {
|
|
|
6
6
|
leadingicon?: GoabIconType;
|
|
7
7
|
trailingicon?: GoabIconType;
|
|
8
8
|
}
|
|
9
|
-
declare
|
|
9
|
+
declare module "react" {
|
|
10
10
|
namespace JSX {
|
|
11
11
|
interface IntrinsicElements {
|
|
12
12
|
"goa-link-button": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
import { GoabLinkTarget, GoabServiceLevel } from '@abgov/ui-components-common';
|
|
2
3
|
|
|
3
|
-
declare
|
|
4
|
+
declare module "react" {
|
|
4
5
|
namespace JSX {
|
|
5
6
|
interface IntrinsicElements {
|
|
6
7
|
"goa-microsite-header": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -14,8 +15,8 @@ interface WCProps {
|
|
|
14
15
|
maxcontentwidth?: string;
|
|
15
16
|
feedbackurltarget?: GoabLinkTarget;
|
|
16
17
|
headerurltarget?: GoabLinkTarget;
|
|
17
|
-
hasfeedbackhandler?:
|
|
18
|
-
ref: React.RefObject<HTMLElement>;
|
|
18
|
+
hasfeedbackhandler?: string;
|
|
19
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
19
20
|
testid?: string;
|
|
20
21
|
}
|
|
21
22
|
export interface GoabHeaderProps {
|
package/lib/modal/modal.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ReactElement, ReactNode, RefObject } from 'react';
|
|
1
|
+
import { ReactElement, ReactNode, RefObject, JSX } from 'react';
|
|
2
2
|
import { GoabModalCalloutVariant, GoabModalRole, GoabModalTransition } from '@abgov/ui-components-common';
|
|
3
3
|
|
|
4
4
|
interface WCProps {
|
|
5
|
-
ref: RefObject<HTMLElement>;
|
|
5
|
+
ref: RefObject<HTMLElement | null>;
|
|
6
6
|
heading?: ReactNode;
|
|
7
|
-
open?:
|
|
7
|
+
open?: string;
|
|
8
8
|
maxwidth?: string;
|
|
9
|
-
closable
|
|
9
|
+
closable: string;
|
|
10
10
|
role?: GoabModalRole;
|
|
11
11
|
transition?: GoabModalTransition;
|
|
12
12
|
calloutvariant?: GoabModalCalloutVariant;
|
|
13
13
|
testid?: string;
|
|
14
14
|
}
|
|
15
|
-
declare
|
|
15
|
+
declare module "react" {
|
|
16
16
|
namespace JSX {
|
|
17
17
|
interface IntrinsicElements {
|
|
18
18
|
"goa-modal": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -22,7 +22,7 @@ declare global {
|
|
|
22
22
|
export interface GoabModalProps {
|
|
23
23
|
heading?: ReactNode;
|
|
24
24
|
maxWidth?: string;
|
|
25
|
-
actions?: ReactElement
|
|
25
|
+
actions?: ReactElement<any>;
|
|
26
26
|
onClose?: () => void;
|
|
27
27
|
transition?: GoabModalTransition;
|
|
28
28
|
children?: ReactNode;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { GoabAriaLiveType, GoabNotificationType } from '@abgov/ui-components-common';
|
|
2
2
|
|
|
3
3
|
interface WCProps {
|
|
4
|
-
ref: React.RefObject<HTMLElement>;
|
|
4
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
5
5
|
type: GoabNotificationType;
|
|
6
6
|
maxcontentwidth?: string;
|
|
7
7
|
arialive?: GoabAriaLiveType;
|
|
8
8
|
testid?: string;
|
|
9
9
|
}
|
|
10
|
-
declare
|
|
10
|
+
declare module "react" {
|
|
11
11
|
namespace JSX {
|
|
12
12
|
interface IntrinsicElements {
|
|
13
13
|
"goa-notification": WCProps & React.HTMLAttributes<HTMLButtonElement>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactNode, JSX } from 'react';
|
|
2
2
|
|
|
3
3
|
interface WCProps {
|
|
4
4
|
width: "full" | string;
|
|
5
5
|
testid?: string;
|
|
6
6
|
}
|
|
7
|
-
declare
|
|
7
|
+
declare module "react" {
|
|
8
8
|
namespace JSX {
|
|
9
9
|
interface IntrinsicElements {
|
|
10
10
|
"goa-page-block": WCProps & React.HTMLAttributes<HTMLElement>;
|
package/lib/pages/pages.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactNode, JSX } from 'react';
|
|
2
2
|
import { Margins } from '@abgov/ui-components-common';
|
|
3
3
|
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
5
|
current?: number;
|
|
6
6
|
}
|
|
7
|
-
declare
|
|
7
|
+
declare module "react" {
|
|
8
8
|
namespace JSX {
|
|
9
9
|
interface IntrinsicElements {
|
|
10
10
|
"goa-pages": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { GoabPaginationOnChangeDetail, Margins } from '@abgov/ui-components-common';
|
|
2
2
|
|
|
3
3
|
interface WCProps extends Margins {
|
|
4
|
-
ref?: React.
|
|
4
|
+
ref?: React.RefObject<HTMLElement | null>;
|
|
5
5
|
itemcount: number;
|
|
6
6
|
perpagecount?: number;
|
|
7
7
|
pagenumber: number;
|
|
8
8
|
variant?: "all" | "links-only";
|
|
9
9
|
testid?: string;
|
|
10
10
|
}
|
|
11
|
-
declare
|
|
11
|
+
declare module "react" {
|
|
12
12
|
namespace JSX {
|
|
13
13
|
interface IntrinsicElements {
|
|
14
14
|
"goa-pagination": WCProps & React.HTMLAttributes<HTMLElement>;
|
package/lib/popover/popover.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactNode, JSX } from 'react';
|
|
2
2
|
import { GoabPopoverPosition, Margins } from '@abgov/ui-components-common';
|
|
3
3
|
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
5
|
maxwidth?: string;
|
|
6
6
|
minwidth?: string;
|
|
7
|
-
padded?:
|
|
7
|
+
padded?: string;
|
|
8
8
|
position?: GoabPopoverPosition;
|
|
9
|
-
relative?:
|
|
9
|
+
relative?: string;
|
|
10
10
|
testid?: string;
|
|
11
11
|
}
|
|
12
|
-
declare
|
|
12
|
+
declare module "react" {
|
|
13
13
|
namespace JSX {
|
|
14
14
|
interface IntrinsicElements {
|
|
15
15
|
"goa-popover": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { GoabRadioGroupOnChangeDetail, GoabRadioGroupOrientation, Margins } from '@abgov/ui-components-common';
|
|
2
|
+
import { JSX } from 'react';
|
|
2
3
|
|
|
3
4
|
export * from './radio';
|
|
4
5
|
interface WCProps extends Margins {
|
|
5
|
-
ref: React.RefObject<HTMLElement>;
|
|
6
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
6
7
|
name: string;
|
|
7
8
|
value?: string;
|
|
8
9
|
orientation?: GoabRadioGroupOrientation;
|
|
9
|
-
disabled?:
|
|
10
|
-
error?:
|
|
10
|
+
disabled?: string;
|
|
11
|
+
error?: string;
|
|
11
12
|
arialabel?: string;
|
|
12
13
|
testid?: string;
|
|
13
14
|
}
|
|
14
|
-
declare
|
|
15
|
+
declare module "react" {
|
|
15
16
|
namespace JSX {
|
|
16
17
|
interface IntrinsicElements {
|
|
17
18
|
"goa-radio-group": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
import { Margins } from '@abgov/ui-components-common';
|
|
2
3
|
|
|
3
|
-
interface
|
|
4
|
+
interface WCProps extends Margins {
|
|
4
5
|
name?: string;
|
|
5
6
|
value?: string;
|
|
6
7
|
description?: string | React.ReactNode;
|
|
7
8
|
label?: string;
|
|
8
9
|
maxwidth?: string;
|
|
9
|
-
disabled?:
|
|
10
|
-
checked?:
|
|
11
|
-
error?:
|
|
10
|
+
disabled?: string;
|
|
11
|
+
checked?: string;
|
|
12
|
+
error?: string;
|
|
12
13
|
arialabel?: string;
|
|
13
14
|
}
|
|
14
|
-
declare
|
|
15
|
+
declare module "react" {
|
|
15
16
|
namespace JSX {
|
|
16
17
|
interface IntrinsicElements {
|
|
17
|
-
"goa-radio-item":
|
|
18
|
+
"goa-radio-item": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
}
|
|
@@ -28,8 +29,7 @@ export interface GoabRadioItemProps extends Margins {
|
|
|
28
29
|
checked?: boolean;
|
|
29
30
|
error?: boolean;
|
|
30
31
|
children?: React.ReactNode;
|
|
31
|
-
testId?: string;
|
|
32
32
|
ariaLabel?: string;
|
|
33
33
|
}
|
|
34
|
-
export declare function GoabRadioItem({ name, label, value, description, maxWidth, disabled, checked, error,
|
|
34
|
+
export declare function GoabRadioItem({ name, label, value, description, maxWidth, disabled, checked, error, ariaLabel, children, mt, mr, mb, ml, }: GoabRadioItemProps): JSX.Element;
|
|
35
35
|
export default GoabRadioItem;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactNode, JSX } from 'react';
|
|
2
2
|
|
|
3
3
|
interface WCProps {
|
|
4
4
|
testid?: string;
|
|
5
5
|
}
|
|
6
|
-
declare
|
|
6
|
+
declare module "react" {
|
|
7
7
|
namespace JSX {
|
|
8
8
|
interface IntrinsicElements {
|
|
9
9
|
"goa-side-menu": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { GoabIconType, Margins } from '@abgov/ui-components-common';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ReactNode, JSX } from 'react';
|
|
3
3
|
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
5
|
heading: string;
|
|
6
6
|
icon?: GoabIconType;
|
|
7
7
|
testid?: string;
|
|
8
8
|
}
|
|
9
|
-
declare
|
|
9
|
+
declare module "react" {
|
|
10
10
|
namespace JSX {
|
|
11
11
|
interface IntrinsicElements {
|
|
12
12
|
"goa-side-menu-group": WCProps & React.HTMLAttributes<HTMLElement>;
|
package/lib/spacer/spacer.d.ts
CHANGED
package/lib/spinner/spinner.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
import { GoabSpinnerSize, GoabSpinnerType } from '@abgov/ui-components-common';
|
|
2
3
|
|
|
3
4
|
interface WCProps {
|
|
4
5
|
size: GoabSpinnerSize;
|
|
5
6
|
type: GoabSpinnerType;
|
|
6
|
-
invert?:
|
|
7
|
+
invert?: string;
|
|
7
8
|
progress?: number;
|
|
8
9
|
testid?: string;
|
|
9
10
|
}
|
|
10
|
-
declare
|
|
11
|
+
declare module "react" {
|
|
11
12
|
namespace JSX {
|
|
12
13
|
interface IntrinsicElements {
|
|
13
14
|
"goa-spinner": WCProps & React.HTMLAttributes<HTMLElement>;
|
package/lib/tab/tab.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
|
|
2
3
|
interface WCProps {
|
|
3
4
|
heading?: React.ReactNode;
|
|
4
5
|
}
|
|
5
|
-
declare
|
|
6
|
+
declare module "react" {
|
|
6
7
|
namespace JSX {
|
|
7
8
|
interface IntrinsicElements {
|
|
8
9
|
"goa-tab": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
import { GoabTableSortDirection } from '@abgov/ui-components-common';
|
|
2
3
|
|
|
3
4
|
interface WCProps {
|
|
4
5
|
name?: string;
|
|
5
6
|
direction?: GoabTableSortDirection;
|
|
6
7
|
}
|
|
7
|
-
declare
|
|
8
|
+
declare module "react" {
|
|
8
9
|
namespace JSX {
|
|
9
10
|
interface IntrinsicElements {
|
|
10
11
|
"goa-table-sort-header": WCProps & React.HTMLAttributes<HTMLElement>;
|
package/lib/table/table.d.ts
CHANGED
|
@@ -2,13 +2,13 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { GoabTableOnSortDetail, GoabTableVariant, Margins } from '@abgov/ui-components-common';
|
|
3
3
|
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
|
-
ref?: React.
|
|
5
|
+
ref?: React.RefObject<HTMLElement | null>;
|
|
6
6
|
width?: string;
|
|
7
|
-
stickyheader?:
|
|
7
|
+
stickyheader?: string;
|
|
8
8
|
variant?: GoabTableVariant;
|
|
9
9
|
testid?: string;
|
|
10
10
|
}
|
|
11
|
-
declare
|
|
11
|
+
declare module "react" {
|
|
12
12
|
namespace JSX {
|
|
13
13
|
interface IntrinsicElements {
|
|
14
14
|
"goa-table": WCProps & React.HTMLAttributes<HTMLElement>;
|
package/lib/tabs/tabs.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { GoabTabsOnChangeDetail } from '@abgov/ui-components-common';
|
|
2
|
-
import { default as React } from 'react';
|
|
2
|
+
import { default as React, JSX } from 'react';
|
|
3
3
|
|
|
4
4
|
interface WCProps {
|
|
5
5
|
initialtab?: number;
|
|
6
|
-
ref: React.RefObject<HTMLElement>;
|
|
6
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
7
7
|
onChange?: (tab: number) => void;
|
|
8
8
|
testid?: string;
|
|
9
9
|
}
|
|
10
|
-
declare
|
|
10
|
+
declare module "react" {
|
|
11
11
|
namespace JSX {
|
|
12
12
|
interface IntrinsicElements {
|
|
13
13
|
"goa-tabs": WCProps & React.HTMLAttributes<HTMLElement>;
|
package/lib/text/text.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GoabTextMaxWidth, GoabTextHeadingElement, GoabTextTextElement, GoabTextSize, GoabTextColor, Margins } from '@abgov/ui-components-common';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ReactNode, JSX } from 'react';
|
|
3
3
|
|
|
4
4
|
interface WCProps extends Margins {
|
|
5
5
|
as?: GoabTextTextElement | GoabTextHeadingElement;
|
|
@@ -7,7 +7,7 @@ interface WCProps extends Margins {
|
|
|
7
7
|
maxwidth?: GoabTextMaxWidth;
|
|
8
8
|
color?: GoabTextColor;
|
|
9
9
|
}
|
|
10
|
-
declare
|
|
10
|
+
declare module "react" {
|
|
11
11
|
namespace JSX {
|
|
12
12
|
interface IntrinsicElements {
|
|
13
13
|
"goa-text": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
import { GoabTextAreaCountBy, GoabTextAreaOnChangeDetail, GoabTextAreaOnKeyPressDetail, Margins } from '@abgov/ui-components-common';
|
|
2
3
|
|
|
3
4
|
interface WCProps extends Margins {
|
|
@@ -6,9 +7,9 @@ interface WCProps extends Margins {
|
|
|
6
7
|
value?: string;
|
|
7
8
|
placeholder?: string;
|
|
8
9
|
rows?: number;
|
|
9
|
-
error?:
|
|
10
|
-
readOnly?:
|
|
11
|
-
disabled?:
|
|
10
|
+
error?: string;
|
|
11
|
+
readOnly?: string;
|
|
12
|
+
disabled?: string;
|
|
12
13
|
width?: string;
|
|
13
14
|
maxwidth?: string;
|
|
14
15
|
arialabel?: string;
|
|
@@ -16,7 +17,7 @@ interface WCProps extends Margins {
|
|
|
16
17
|
maxcount?: number;
|
|
17
18
|
testid?: string;
|
|
18
19
|
}
|
|
19
|
-
declare
|
|
20
|
+
declare module "react" {
|
|
20
21
|
namespace JSX {
|
|
21
22
|
interface IntrinsicElements {
|
|
22
23
|
"goa-textarea": WCProps & React.HTMLAttributes<HTMLElement>;
|
package/lib/tooltip/tooltip.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactNode, JSX } from 'react';
|
|
2
2
|
import { GoabTooltipHorizontalAlignment, GoabTooltipPosition, Margins } from '@abgov/ui-components-common';
|
|
3
3
|
|
|
4
4
|
interface WCProps extends Margins {
|
|
@@ -7,7 +7,7 @@ interface WCProps extends Margins {
|
|
|
7
7
|
testid?: string;
|
|
8
8
|
halign?: GoabTooltipHorizontalAlignment;
|
|
9
9
|
}
|
|
10
|
-
declare
|
|
10
|
+
declare module "react" {
|
|
11
11
|
namespace JSX {
|
|
12
12
|
interface IntrinsicElements {
|
|
13
13
|
"goa-tooltip": WCProps & React.HTMLAttributes<HTMLElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/react-components",
|
|
3
|
-
"version": "6.3.0-alpha.
|
|
3
|
+
"version": "6.3.0-alpha.5",
|
|
4
4
|
"description": "Government of Alberta - UI components for React",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/GovAlta/ui-components/issues"
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"module": "./index.mjs",
|
|
21
21
|
"types": "./index.d.ts",
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@types/react": "^17.0.0 || ^18.0.0",
|
|
24
|
-
"react": "^17.0.0 || ^18.0.0",
|
|
25
|
-
"react-dom": "^17.0.0 || ^18.0.0"
|
|
23
|
+
"@types/react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
24
|
+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
25
|
+
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
26
26
|
},
|
|
27
27
|
"exports": {
|
|
28
28
|
".": {
|
package/icon-BNGrU_R_.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icon-BNGrU_R_.mjs","sources":["../../../libs/react-components/src/lib/drawer/drawer.tsx","../../../libs/react-components/src/lib/icon/icon.tsx"],"sourcesContent":["import { ReactNode, useEffect, useRef } from \"react\";\nimport { GoabDrawerPosition, GoabDrawerSize } from \"@abgov/ui-components-common\";\n\ninterface WCProps {\n open: boolean | undefined;\n position: GoabDrawerPosition;\n heading?: string;\n maxsize?: GoabDrawerSize;\n testid?: string;\n ref: React.RefObject<HTMLElement>;\n}\n\ndeclare global {\n // eslint-disable-next-line @typescript-eslint/no-namespace\n namespace JSX {\n // eslint-disable-next-line @typescript-eslint/no-empty-interface\n interface IntrinsicElements {\n \"goa-drawer\": WCProps & React.HTMLAttributes<HTMLElement>;\n }\n }\n}\n\nexport interface GoabDrawerProps {\n open: boolean;\n position: GoabDrawerPosition;\n heading?: string|ReactNode;\n maxSize?: GoabDrawerSize;\n testId?: string;\n actions?: ReactNode;\n children: ReactNode;\n onClose: () => void;\n}\n\nexport function GoabDrawer({\n open,\n position,\n heading,\n maxSize,\n testId,\n actions,\n children,\n onClose,\n}: GoabDrawerProps): JSX.Element {\n const el = useRef<HTMLElement>(null);\n\n useEffect(() => {\n if (!el?.current || !onClose) {\n return;\n }\n el.current?.addEventListener(\"_close\", onClose)\n return () => {\n el.current?.removeEventListener(\"_close\", onClose)\n }\n }, [el, onClose])\n\n return (\n <goa-drawer\n ref={el}\n open={open ? true : undefined}\n position={position}\n heading={typeof heading === \"string\" ? heading : undefined}\n maxsize={maxSize}\n testid={testId}\n >\n {heading && typeof heading !== \"string\" && <div slot=\"heading\">{heading}</div>}\n {actions && <div slot=\"actions\">{actions}</div>}\n {children}\n </goa-drawer>\n );\n}\n\nexport default GoabDrawer;\n","import {\n GoabIconFilledType,\n GoabIconSize,\n GoabIconTheme,\n GoabIconType,\n Margins,\n} from \"@abgov/ui-components-common\";\n\ninterface IonIconProps {\n name: GoabIconType | GoabIconFilledType;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\ninterface IonIconElement extends HTMLElement {}\n\ndeclare global {\n // eslint-disable-next-line @typescript-eslint/no-namespace\n namespace JSX {\n // eslint-disable-next-line @typescript-eslint/no-empty-interface\n interface IntrinsicElements {\n \"ion-icon\": IonIconProps & React.HTMLAttributes<IonIconElement>;\n }\n }\n}\n\ndeclare global {\n // eslint-disable-next-line @typescript-eslint/no-namespace\n namespace JSX {\n // eslint-disable-next-line @typescript-eslint/no-empty-interface\n interface IntrinsicElements {\n \"goa-icon\": WCProps & React.HTMLAttributes<IonIconElement>;\n }\n }\n}\n\nexport interface GoabIconProps extends Margins {\n type: GoabIconType;\n size?: GoabIconSize;\n theme?: GoabIconTheme;\n inverted?: string;\n fillColor?: string;\n opacity?: number;\n title?: string;\n ariaLabel?: string;\n testId?: string;\n}\n\ninterface WCProps extends Margins {\n type: GoabIconType;\n theme?: GoabIconTheme;\n size?: GoabIconSize;\n inverted?: string;\n fillcolor?: string;\n opacity?: number;\n title?: string;\n arialabel?: string;\n testid?: string;\n}\n\nexport function GoabIcon({\n type,\n theme,\n size,\n inverted,\n fillColor,\n opacity,\n title,\n ariaLabel,\n mt,\n mr,\n mb,\n ml,\n testId,\n}: GoabIconProps): JSX.Element {\n return (\n <goa-icon\n type={type}\n theme={theme}\n size={size}\n inverted={inverted}\n fillcolor={fillColor}\n opacity={opacity}\n title={title}\n arialabel={ariaLabel}\n mt={mt}\n mr={mr}\n mb={mb}\n ml={ml}\n testid={testId}\n />\n );\n}\n"],"names":["_a"],"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,0 @@
|
|
|
1
|
-
{"version":3,"file":"icon-BPmPItnm.js","sources":["../../../libs/react-components/src/lib/drawer/drawer.tsx","../../../libs/react-components/src/lib/icon/icon.tsx"],"sourcesContent":["import { ReactNode, useEffect, useRef } from \"react\";\nimport { GoabDrawerPosition, GoabDrawerSize } from \"@abgov/ui-components-common\";\n\ninterface WCProps {\n open: boolean | undefined;\n position: GoabDrawerPosition;\n heading?: string;\n maxsize?: GoabDrawerSize;\n testid?: string;\n ref: React.RefObject<HTMLElement>;\n}\n\ndeclare global {\n // eslint-disable-next-line @typescript-eslint/no-namespace\n namespace JSX {\n // eslint-disable-next-line @typescript-eslint/no-empty-interface\n interface IntrinsicElements {\n \"goa-drawer\": WCProps & React.HTMLAttributes<HTMLElement>;\n }\n }\n}\n\nexport interface GoabDrawerProps {\n open: boolean;\n position: GoabDrawerPosition;\n heading?: string|ReactNode;\n maxSize?: GoabDrawerSize;\n testId?: string;\n actions?: ReactNode;\n children: ReactNode;\n onClose: () => void;\n}\n\nexport function GoabDrawer({\n open,\n position,\n heading,\n maxSize,\n testId,\n actions,\n children,\n onClose,\n}: GoabDrawerProps): JSX.Element {\n const el = useRef<HTMLElement>(null);\n\n useEffect(() => {\n if (!el?.current || !onClose) {\n return;\n }\n el.current?.addEventListener(\"_close\", onClose)\n return () => {\n el.current?.removeEventListener(\"_close\", onClose)\n }\n }, [el, onClose])\n\n return (\n <goa-drawer\n ref={el}\n open={open ? true : undefined}\n position={position}\n heading={typeof heading === \"string\" ? heading : undefined}\n maxsize={maxSize}\n testid={testId}\n >\n {heading && typeof heading !== \"string\" && <div slot=\"heading\">{heading}</div>}\n {actions && <div slot=\"actions\">{actions}</div>}\n {children}\n </goa-drawer>\n );\n}\n\nexport default GoabDrawer;\n","import {\n GoabIconFilledType,\n GoabIconSize,\n GoabIconTheme,\n GoabIconType,\n Margins,\n} from \"@abgov/ui-components-common\";\n\ninterface IonIconProps {\n name: GoabIconType | GoabIconFilledType;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\ninterface IonIconElement extends HTMLElement {}\n\ndeclare global {\n // eslint-disable-next-line @typescript-eslint/no-namespace\n namespace JSX {\n // eslint-disable-next-line @typescript-eslint/no-empty-interface\n interface IntrinsicElements {\n \"ion-icon\": IonIconProps & React.HTMLAttributes<IonIconElement>;\n }\n }\n}\n\ndeclare global {\n // eslint-disable-next-line @typescript-eslint/no-namespace\n namespace JSX {\n // eslint-disable-next-line @typescript-eslint/no-empty-interface\n interface IntrinsicElements {\n \"goa-icon\": WCProps & React.HTMLAttributes<IonIconElement>;\n }\n }\n}\n\nexport interface GoabIconProps extends Margins {\n type: GoabIconType;\n size?: GoabIconSize;\n theme?: GoabIconTheme;\n inverted?: string;\n fillColor?: string;\n opacity?: number;\n title?: string;\n ariaLabel?: string;\n testId?: string;\n}\n\ninterface WCProps extends Margins {\n type: GoabIconType;\n theme?: GoabIconTheme;\n size?: GoabIconSize;\n inverted?: string;\n fillcolor?: string;\n opacity?: number;\n title?: string;\n arialabel?: string;\n testid?: string;\n}\n\nexport function GoabIcon({\n type,\n theme,\n size,\n inverted,\n fillColor,\n opacity,\n title,\n ariaLabel,\n mt,\n mr,\n mb,\n ml,\n testId,\n}: GoabIconProps): JSX.Element {\n return (\n <goa-icon\n type={type}\n theme={theme}\n size={size}\n inverted={inverted}\n fillcolor={fillColor}\n opacity={opacity}\n title={title}\n arialabel={ariaLabel}\n mt={mt}\n mr={mr}\n mb={mb}\n ml={ml}\n testid={testId}\n />\n );\n}\n"],"names":["useRef","useEffect","_a","jsxs","jsx"],"mappings":";;;AAiCO,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAiC;AACzB,QAAA,KAAKA,aAAoB,IAAI;AAEnCC,QAAAA,UAAU,MAAM;;AACd,QAAI,EAAC,yBAAI,YAAW,CAAC,SAAS;AAC5B;AAAA,IACF;AACG,aAAA,YAA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