@abgov/react-components 4.0.0-alpha.10 → 4.0.0-alpha.100
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/README.md +16 -44
- package/common/styling.d.ts +9 -0
- package/experimental/package.json +2 -1
- package/index.d.ts +36 -36
- package/lib/app-header/app-header.d.ts +7 -4
- package/lib/badge/badge.d.ts +21 -9
- package/lib/block/block.d.ts +21 -0
- package/lib/button/button.d.ts +12 -14
- package/lib/button-group/button-group.d.ts +12 -8
- package/lib/callout/callout.d.ts +9 -8
- package/lib/card/card-actions.d.ts +2 -5
- package/lib/card/card-content.d.ts +2 -2
- package/lib/card/card-group.d.ts +2 -5
- package/lib/card/card-image.d.ts +2 -2
- package/lib/card/card.d.ts +9 -6
- package/lib/card/index.d.ts +5 -5
- package/lib/checkbox/checkbox.d.ts +10 -6
- package/lib/chip/chip.d.ts +9 -5
- package/lib/circular-progress/circular-progress.d.ts +3 -6
- package/lib/container/container.d.ts +15 -11
- package/lib/divider/divider.d.ts +11 -0
- package/lib/dropdown/dropdown-option.d.ts +1 -1
- package/lib/dropdown/dropdown.d.ts +24 -15
- package/lib/footer/footer.d.ts +17 -0
- package/lib/footer-meta-section/footer-meta-section.d.ts +13 -0
- package/lib/footer-nav-section/footer-nav-section.d.ts +19 -0
- package/lib/form/form-item.d.ts +9 -6
- package/lib/form/index.d.ts +1 -1
- package/lib/grid/grid.d.ts +20 -0
- package/lib/hero-banner/hero-banner-actions.d.ts +5 -3
- package/lib/hero-banner/hero-banner.d.ts +7 -4
- package/lib/icon/icon.d.ts +38 -0
- package/lib/icon-button/icon-button.d.ts +30 -0
- package/lib/input/input.d.ts +59 -38
- package/lib/microsite-header/microsite-header.d.ts +5 -5
- package/lib/modal/modal.d.ts +10 -4
- package/lib/notification/notification.d.ts +4 -4
- package/lib/one-column-layout/one-column-layout.d.ts +13 -0
- package/lib/page-block/page-block.d.ts +10 -3
- package/lib/radio-group/radio-group.d.ts +10 -6
- package/lib/radio-group/radio.d.ts +3 -2
- package/lib/skeleton/skeleton.d.ts +13 -7
- package/lib/spacer/spacer.d.ts +19 -0
- package/lib/spinner/spinner.d.ts +3 -3
- package/lib/textarea/textarea.d.ts +9 -4
- package/lib/two-column-layout/two-column-layout.d.ts +22 -0
- package/package.json +6 -6
- package/react-components.esm.js +16587 -233
- package/react-components.umd.js +17319 -922
- package/lib/app-footer/app-footer.d.ts +0 -26
- package/lib/app-footer/meta-link.d.ts +0 -20
- package/lib/app-footer/navigation-link.d.ts +0 -22
- package/lib/flex/index.d.ts +0 -1
- package/lib/flex/row.d.ts +0 -16
- package/lib/icons/icon-button.d.ts +0 -27
- package/lib/icons/icon.d.ts +0 -37
- package/lib/icons/index.d.ts +0 -2
|
@@ -1,19 +1,25 @@
|
|
|
1
|
-
import React from
|
|
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
|
-
|
|
4
|
+
declare type SkeletonSize = 1 | 2 | 3 | 4;
|
|
5
|
+
interface WCProps extends Margins {
|
|
6
|
+
maxwidth?: string;
|
|
7
|
+
size?: SkeletonSize;
|
|
8
|
+
linecount?: number;
|
|
5
9
|
type: SkeletonType;
|
|
6
10
|
}
|
|
7
11
|
declare global {
|
|
8
12
|
namespace JSX {
|
|
9
13
|
interface IntrinsicElements {
|
|
10
|
-
|
|
14
|
+
"goa-skeleton": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
11
15
|
}
|
|
12
16
|
}
|
|
13
17
|
}
|
|
14
|
-
export interface SkeletonProps {
|
|
18
|
+
export interface SkeletonProps extends Margins {
|
|
19
|
+
maxWidth?: string;
|
|
20
|
+
size?: SkeletonSize;
|
|
21
|
+
lineCount?: number;
|
|
15
22
|
type: SkeletonType;
|
|
16
|
-
size?: number;
|
|
17
23
|
}
|
|
18
|
-
export declare const GoASkeleton: ({
|
|
24
|
+
export declare const GoASkeleton: ({ maxWidth, size, lineCount, type, mt, mr, mb, ml, }: SkeletonProps) => JSX.Element;
|
|
19
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;
|
package/lib/spinner/spinner.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from "react";
|
|
2
2
|
export declare type SpinnerType = "infinite" | "progress";
|
|
3
3
|
export declare type SpinnerSize = "small" | "medium" | "large" | "xlarge";
|
|
4
4
|
interface WCProps {
|
|
@@ -11,7 +11,7 @@ interface WCProps {
|
|
|
11
11
|
declare global {
|
|
12
12
|
namespace JSX {
|
|
13
13
|
interface IntrinsicElements {
|
|
14
|
-
|
|
14
|
+
"goa-spinner": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -22,5 +22,5 @@ export interface SpinnerProps {
|
|
|
22
22
|
progress?: number;
|
|
23
23
|
testId?: string;
|
|
24
24
|
}
|
|
25
|
-
export declare const GoASpinner: ({ type, size, progress, invert, testId }: SpinnerProps) => JSX.Element;
|
|
25
|
+
export declare const GoASpinner: ({ type, size, progress, invert, testId, }: SpinnerProps) => JSX.Element;
|
|
26
26
|
export default GoASpinner;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import React, { FC } from
|
|
2
|
-
|
|
1
|
+
import React, { FC } from "react";
|
|
2
|
+
import { Margins } from "../../common/styling";
|
|
3
|
+
interface WCProps extends Margins {
|
|
3
4
|
ref: React.Ref<HTMLTextAreaElement>;
|
|
4
5
|
name: string;
|
|
5
6
|
value: string;
|
|
@@ -9,15 +10,17 @@ interface WCProps {
|
|
|
9
10
|
disabled?: boolean;
|
|
10
11
|
showcounter?: boolean;
|
|
11
12
|
maxcharcount?: number;
|
|
13
|
+
width?: string;
|
|
14
|
+
arialabel?: string;
|
|
12
15
|
}
|
|
13
16
|
declare global {
|
|
14
17
|
namespace JSX {
|
|
15
18
|
interface IntrinsicElements {
|
|
16
|
-
|
|
19
|
+
"goa-textarea": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
}
|
|
20
|
-
interface Props {
|
|
23
|
+
interface Props extends Margins {
|
|
21
24
|
name: string;
|
|
22
25
|
value: string;
|
|
23
26
|
id?: string;
|
|
@@ -27,7 +30,9 @@ interface Props {
|
|
|
27
30
|
disabled?: boolean;
|
|
28
31
|
showCounter?: boolean;
|
|
29
32
|
maxCharCount?: number;
|
|
33
|
+
width?: string;
|
|
30
34
|
testId?: string;
|
|
35
|
+
ariaLabel?: string;
|
|
31
36
|
onChange: (name: string, value: string) => void;
|
|
32
37
|
}
|
|
33
38
|
export declare const GoATextArea: FC<Props>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
interface WCProps {
|
|
3
|
+
navcolumnwidth?: string;
|
|
4
|
+
maxcontentwidth?: string;
|
|
5
|
+
}
|
|
6
|
+
declare global {
|
|
7
|
+
namespace JSX {
|
|
8
|
+
interface IntrinsicElements {
|
|
9
|
+
"goa-two-column-layout": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
interface Props {
|
|
14
|
+
navColumnWidth?: string;
|
|
15
|
+
maxContentWidth?: string;
|
|
16
|
+
header: ReactNode;
|
|
17
|
+
footer: ReactNode;
|
|
18
|
+
nav: ReactNode;
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
}
|
|
21
|
+
export declare function GoATwoColumnLayout(props: Props): JSX.Element;
|
|
22
|
+
export default GoATwoColumnLayout;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/react-components",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.100",
|
|
4
4
|
"description": "Government of Alberta - UI components for React",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/GovAlta/ui-components/issues"
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"url": "https://github.com/GovAlta/ui-components.git",
|
|
17
17
|
"directory": "libs/react-components"
|
|
18
18
|
},
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"@abgov/web-components": "^1.0.0-alpha.23"
|
|
21
|
-
},
|
|
22
19
|
"peerDependencies": {
|
|
23
|
-
"react": "
|
|
24
|
-
"react-dom": "
|
|
20
|
+
"react": ">=17.0.2",
|
|
21
|
+
"react-dom": ">=17.0.2"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"date-fns": "^2.29.2"
|
|
25
25
|
},
|
|
26
26
|
"main": "./react-components.umd.js",
|
|
27
27
|
"module": "./react-components.esm.js",
|