@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.
Files changed (77) hide show
  1. package/README.md +20 -45
  2. package/common/styling.d.ts +9 -0
  3. package/experimental/package.json +2 -1
  4. package/index.d.ts +56 -39
  5. package/lib/accordion/accordion.d.ts +28 -0
  6. package/lib/app-header/app-header.d.ts +8 -4
  7. package/lib/app-header-menu/app-header-menu.d.ts +20 -0
  8. package/lib/badge/badge.d.ts +23 -10
  9. package/lib/block/block.d.ts +22 -0
  10. package/lib/button/button.d.ts +13 -14
  11. package/lib/button-group/button-group.d.ts +13 -8
  12. package/lib/callout/callout.d.ts +13 -8
  13. package/lib/card/card-actions.d.ts +2 -5
  14. package/lib/card/card-content.d.ts +2 -2
  15. package/lib/card/card-group.d.ts +2 -5
  16. package/lib/card/card-image.d.ts +2 -2
  17. package/lib/card/card.d.ts +10 -6
  18. package/lib/card/index.d.ts +5 -5
  19. package/lib/checkbox/checkbox.d.ts +8 -4
  20. package/lib/chip/chip.d.ts +10 -5
  21. package/lib/circular-progress/circular-progress.d.ts +6 -8
  22. package/lib/container/container.d.ts +17 -13
  23. package/lib/details/details.d.ts +20 -0
  24. package/lib/divider/divider.d.ts +6 -10
  25. package/lib/dropdown/dropdown-item.d.ts +22 -0
  26. package/lib/dropdown/dropdown.d.ts +19 -15
  27. package/lib/file-upload-card/file-upload-card.d.ts +27 -0
  28. package/lib/file-upload-input/file-upload-input.d.ts +23 -0
  29. package/lib/footer/footer.d.ts +18 -0
  30. package/lib/footer-meta-section/footer-meta-section.d.ts +13 -0
  31. package/lib/footer-nav-section/footer-nav-section.d.ts +20 -0
  32. package/lib/form/form-item.d.ts +10 -6
  33. package/lib/form/index.d.ts +1 -1
  34. package/lib/form-step/form-step.d.ts +19 -0
  35. package/lib/form-stepper/form-stepper.d.ts +21 -0
  36. package/lib/grid/grid.d.ts +21 -0
  37. package/lib/hero-banner/hero-banner-actions.d.ts +5 -3
  38. package/lib/hero-banner/hero-banner.d.ts +10 -4
  39. package/lib/icon/icon.d.ts +39 -0
  40. package/lib/icon-button/icon-button.d.ts +31 -0
  41. package/lib/input/input.d.ts +62 -40
  42. package/lib/microsite-header/microsite-header.d.ts +8 -5
  43. package/lib/modal/modal.d.ts +13 -6
  44. package/lib/notification/notification.d.ts +13 -5
  45. package/lib/one-column-layout/one-column-layout.d.ts +13 -0
  46. package/lib/page-block/page-block.d.ts +4 -3
  47. package/lib/pages/pages.d.ts +18 -0
  48. package/lib/pagination/pagination.d.ts +26 -0
  49. package/lib/popover/popover.d.ts +25 -0
  50. package/lib/radio-group/radio-group.d.ts +10 -6
  51. package/lib/radio-group/radio.d.ts +3 -2
  52. package/lib/side-menu/side-menu.d.ts +13 -0
  53. package/lib/side-menu-group/side-menu-group.d.ts +17 -0
  54. package/lib/skeleton/skeleton.d.ts +15 -8
  55. package/lib/spacer/spacer.d.ts +20 -0
  56. package/lib/spinner/spinner.d.ts +3 -4
  57. package/lib/tab/tab.d.ts +17 -0
  58. package/lib/table/table-sort-header.d.ts +20 -0
  59. package/lib/table/table.d.ts +25 -0
  60. package/lib/tabs/tabs.d.ts +17 -0
  61. package/lib/textarea/textarea.d.ts +7 -4
  62. package/lib/three-column-layout/three-column-layout.d.ts +26 -0
  63. package/lib/tooltip/tooltip.d.ts +22 -0
  64. package/lib/two-column-layout/two-column-layout.d.ts +22 -0
  65. package/package.json +6 -6
  66. package/react-components.esm.js +1872 -482
  67. package/react-components.umd.js +2354 -957
  68. package/lib/app-footer/app-footer.d.ts +0 -26
  69. package/lib/app-footer/meta-link.d.ts +0 -20
  70. package/lib/app-footer/navigation-link.d.ts +0 -22
  71. package/lib/dropdown/dropdown-option.d.ts +0 -21
  72. package/lib/flex-column/flex-column.d.ts +0 -16
  73. package/lib/flex-row/flex-row.d.ts +0 -16
  74. package/lib/icons/icon-button.d.ts +0 -27
  75. package/lib/icons/icon.d.ts +0 -37
  76. package/lib/icons/index.d.ts +0 -2
  77. 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.17",
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": "^17.0.2",
24
- "react-dom": "^17.0.2"
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",