@abgov/react-components 4.0.0-alpha.17 → 4.0.0-alpha.171
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 +20 -45
- package/common/styling.d.ts +9 -0
- package/experimental/package.json +2 -1
- package/index.d.ts +56 -39
- package/lib/accordion/accordion.d.ts +28 -0
- package/lib/app-header/app-header.d.ts +8 -4
- package/lib/app-header-menu/app-header-menu.d.ts +20 -0
- package/lib/badge/badge.d.ts +23 -10
- package/lib/block/block.d.ts +22 -0
- package/lib/button/button.d.ts +13 -14
- package/lib/button-group/button-group.d.ts +13 -8
- package/lib/callout/callout.d.ts +13 -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 +10 -6
- package/lib/card/index.d.ts +5 -5
- package/lib/checkbox/checkbox.d.ts +8 -4
- package/lib/chip/chip.d.ts +10 -5
- package/lib/circular-progress/circular-progress.d.ts +6 -8
- package/lib/container/container.d.ts +17 -13
- package/lib/details/details.d.ts +20 -0
- package/lib/divider/divider.d.ts +6 -10
- package/lib/dropdown/dropdown-item.d.ts +22 -0
- package/lib/dropdown/dropdown.d.ts +19 -15
- package/lib/file-upload-card/file-upload-card.d.ts +27 -0
- package/lib/file-upload-input/file-upload-input.d.ts +23 -0
- package/lib/footer/footer.d.ts +18 -0
- package/lib/footer-meta-section/footer-meta-section.d.ts +13 -0
- package/lib/footer-nav-section/footer-nav-section.d.ts +20 -0
- package/lib/form/form-item.d.ts +10 -6
- package/lib/form/index.d.ts +1 -1
- package/lib/form-step/form-step.d.ts +19 -0
- package/lib/form-stepper/form-stepper.d.ts +21 -0
- package/lib/grid/grid.d.ts +21 -0
- package/lib/hero-banner/hero-banner-actions.d.ts +5 -3
- package/lib/hero-banner/hero-banner.d.ts +10 -4
- package/lib/icon/icon.d.ts +39 -0
- package/lib/icon-button/icon-button.d.ts +31 -0
- package/lib/input/input.d.ts +62 -40
- package/lib/microsite-header/microsite-header.d.ts +8 -5
- package/lib/modal/modal.d.ts +13 -6
- package/lib/notification/notification.d.ts +13 -5
- package/lib/one-column-layout/one-column-layout.d.ts +13 -0
- package/lib/page-block/page-block.d.ts +4 -3
- package/lib/pages/pages.d.ts +18 -0
- package/lib/pagination/pagination.d.ts +26 -0
- package/lib/popover/popover.d.ts +25 -0
- package/lib/radio-group/radio-group.d.ts +10 -6
- package/lib/radio-group/radio.d.ts +3 -2
- package/lib/side-menu/side-menu.d.ts +13 -0
- package/lib/side-menu-group/side-menu-group.d.ts +17 -0
- package/lib/skeleton/skeleton.d.ts +15 -8
- package/lib/spacer/spacer.d.ts +20 -0
- package/lib/spinner/spinner.d.ts +3 -4
- package/lib/tab/tab.d.ts +17 -0
- package/lib/table/table-sort-header.d.ts +20 -0
- package/lib/table/table.d.ts +25 -0
- package/lib/tabs/tabs.d.ts +17 -0
- package/lib/textarea/textarea.d.ts +7 -4
- package/lib/three-column-layout/three-column-layout.d.ts +26 -0
- package/lib/tooltip/tooltip.d.ts +22 -0
- package/lib/two-column-layout/two-column-layout.d.ts +22 -0
- package/package.json +6 -6
- package/react-components.esm.js +1872 -482
- package/react-components.umd.js +2354 -957
- 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/dropdown/dropdown-option.d.ts +0 -21
- package/lib/flex-column/flex-column.d.ts +0 -16
- package/lib/flex-row/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
- package/lib/page/page.d.ts +0 -13
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
interface WCProps {
|
|
3
|
+
leftcolumnwidth?: string;
|
|
4
|
+
maxcontentwidth?: string;
|
|
5
|
+
rightcolumnwidth?: string;
|
|
6
|
+
}
|
|
7
|
+
declare global {
|
|
8
|
+
namespace JSX {
|
|
9
|
+
interface IntrinsicElements {
|
|
10
|
+
"goa-three-column-layout": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
interface Props {
|
|
15
|
+
leftColumnWidth?: string;
|
|
16
|
+
rightColumnWidth?: string;
|
|
17
|
+
maxContentWidth?: string;
|
|
18
|
+
header?: ReactNode;
|
|
19
|
+
footer?: ReactNode;
|
|
20
|
+
nav?: ReactNode;
|
|
21
|
+
sidebar?: ReactNode;
|
|
22
|
+
sideMenu?: ReactNode;
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
}
|
|
25
|
+
export declare function GoAThreeColumnLayout(props: Props): JSX.Element;
|
|
26
|
+
export default GoAThreeColumnLayout;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Margins } from "../../common/styling";
|
|
3
|
+
interface WCProps extends Margins {
|
|
4
|
+
position?: string;
|
|
5
|
+
content?: string;
|
|
6
|
+
halign?: string;
|
|
7
|
+
}
|
|
8
|
+
declare global {
|
|
9
|
+
namespace JSX {
|
|
10
|
+
interface IntrinsicElements {
|
|
11
|
+
"goa-tooltip": WCProps & React.HTMLAttributes<HTMLElement>;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
interface TooltipProps extends Margins {
|
|
16
|
+
position?: string;
|
|
17
|
+
content?: string;
|
|
18
|
+
hAlign?: string;
|
|
19
|
+
testId?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare const GoATooltip: React.FC<TooltipProps>;
|
|
22
|
+
export default GoATooltip;
|
|
@@ -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.171",
|
|
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",
|