@abgov/react-components 6.4.1 → 6.5.0-alpha.2

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 (85) hide show
  1. package/experimental/form/form.d.ts +1 -2
  2. package/experimental/form/task-list.d.ts +1 -2
  3. package/experimental/form/task.d.ts +1 -2
  4. package/experimental/resizable-panel/ResizablePanel.d.ts +0 -1
  5. package/experimental.js.map +1 -1
  6. package/experimental.mjs.map +1 -1
  7. package/icon-CK55b563.js.map +1 -1
  8. package/icon-CoYGOp1V.mjs.map +1 -1
  9. package/index.d.ts +4 -1
  10. package/index.js +238 -67
  11. package/index.js.map +1 -1
  12. package/index.mjs +239 -68
  13. package/index.mjs.map +1 -1
  14. package/lib/accordion/accordion.d.ts +1 -2
  15. package/lib/app-header/app-header.d.ts +0 -1
  16. package/lib/app-header-menu/app-header-menu.d.ts +1 -2
  17. package/lib/badge/badge.d.ts +1 -2
  18. package/lib/block/block.d.ts +1 -2
  19. package/lib/button/button.d.ts +1 -2
  20. package/lib/button-group/button-group.d.ts +1 -2
  21. package/lib/calendar/calendar.d.ts +1 -2
  22. package/lib/callout/callout.d.ts +0 -1
  23. package/lib/card/card-actions.d.ts +0 -1
  24. package/lib/card/card-content.d.ts +0 -1
  25. package/lib/card/card-group.d.ts +0 -1
  26. package/lib/card/card-image.d.ts +0 -1
  27. package/lib/card/card.d.ts +1 -2
  28. package/lib/checkbox/checkbox.d.ts +1 -2
  29. package/lib/chip/chip.d.ts +0 -1
  30. package/lib/circular-progress/circular-progress.d.ts +0 -1
  31. package/lib/container/container.d.ts +1 -2
  32. package/lib/date-picker/date-picker.d.ts +1 -2
  33. package/lib/details/details.d.ts +1 -2
  34. package/lib/divider/divider.d.ts +0 -1
  35. package/lib/drawer/drawer.d.ts +1 -2
  36. package/lib/dropdown/dropdown-item.d.ts +0 -1
  37. package/lib/dropdown/dropdown.d.ts +1 -2
  38. package/lib/file-upload-card/file-upload-card.d.ts +0 -1
  39. package/lib/file-upload-input/file-upload-input.d.ts +0 -1
  40. package/lib/filter-chip/filter-chip.d.ts +0 -1
  41. package/lib/footer/footer.d.ts +0 -1
  42. package/lib/footer-meta-section/footer-meta-section.d.ts +0 -1
  43. package/lib/footer-nav-section/footer-nav-section.d.ts +0 -1
  44. package/lib/form/fieldset.d.ts +25 -0
  45. package/lib/form/public-form-page.d.ts +59 -0
  46. package/lib/form/public-form-summary.d.ts +17 -0
  47. package/lib/form/public-form.d.ts +24 -0
  48. package/lib/form-item/form-item.d.ts +12 -3
  49. package/lib/form-step/form-step.d.ts +0 -1
  50. package/lib/form-stepper/form-stepper.d.ts +1 -2
  51. package/lib/grid/grid.d.ts +1 -2
  52. package/lib/hero-banner/hero-banner-actions.d.ts +0 -1
  53. package/lib/hero-banner/hero-banner.d.ts +0 -1
  54. package/lib/icon/icon.d.ts +1 -2
  55. package/lib/icon-button/icon-button.d.ts +1 -2
  56. package/lib/input/input.d.ts +4 -5
  57. package/lib/link/link.d.ts +1 -2
  58. package/lib/link-button/link-button.d.ts +1 -2
  59. package/lib/microsite-header/microsite-header.d.ts +1 -2
  60. package/lib/modal/modal.d.ts +1 -2
  61. package/lib/notification/notification.d.ts +0 -1
  62. package/lib/one-column-layout/one-column-layout.d.ts +0 -1
  63. package/lib/page-block/page-block.d.ts +0 -1
  64. package/lib/pages/pages.d.ts +1 -2
  65. package/lib/pagination/pagination.d.ts +0 -1
  66. package/lib/popover/popover.d.ts +1 -2
  67. package/lib/radio-group/radio-group.d.ts +5 -4
  68. package/lib/radio-group/radio.d.ts +1 -2
  69. package/lib/side-menu/side-menu.d.ts +0 -1
  70. package/lib/side-menu-group/side-menu-group.d.ts +1 -2
  71. package/lib/side-menu-heading/side-menu-heading.d.ts +1 -2
  72. package/lib/skeleton/skeleton.d.ts +0 -1
  73. package/lib/spacer/spacer.d.ts +0 -1
  74. package/lib/spinner/spinner.d.ts +1 -2
  75. package/lib/tab/tab.d.ts +0 -1
  76. package/lib/table/table-sort-header.d.ts +1 -2
  77. package/lib/table/table.d.ts +1 -2
  78. package/lib/tabs/tabs.d.ts +1 -2
  79. package/lib/text/text.d.ts +1 -2
  80. package/lib/textarea/textarea.d.ts +2 -3
  81. package/lib/three-column-layout/three-column-layout.d.ts +0 -1
  82. package/lib/tooltip/tooltip.d.ts +1 -2
  83. package/lib/two-column-layout/two-column-layout.d.ts +0 -1
  84. package/package.json +1 -1
  85. package/lib/fieldset/fieldset.d.ts +0 -30
@@ -1,6 +1,5 @@
1
- import { ReactNode } from 'react';
2
1
  import { GoabIconType } from '@abgov/ui-components-common';
3
-
2
+ import { ReactNode } from 'react';
4
3
  interface WCProps {
5
4
  testid?: string;
6
5
  icon?: GoabIconType;
@@ -1,5 +1,4 @@
1
1
  import { GoabSkeletonSize, GoabSkeletonType, Margins } from '@abgov/ui-components-common';
2
-
3
2
  interface WCProps extends Margins {
4
3
  maxwidth?: string;
5
4
  size?: GoabSkeletonSize;
@@ -1,5 +1,4 @@
1
1
  import { GoabSpacerHorizontalSpacing, GoabSpacerVerticalSpacing } from '@abgov/ui-components-common';
2
-
3
2
  interface WCProps {
4
3
  hspacing?: GoabSpacerHorizontalSpacing;
5
4
  vspacing?: GoabSpacerVerticalSpacing;
@@ -1,6 +1,5 @@
1
- import { JSX } from 'react';
2
1
  import { GoabSpinnerSize, GoabSpinnerType } from '@abgov/ui-components-common';
3
-
2
+ import { JSX } from 'react';
4
3
  interface WCProps {
5
4
  size: GoabSpinnerSize;
6
5
  type: GoabSpinnerType;
package/lib/tab/tab.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { JSX } from 'react';
2
-
3
2
  interface WCProps {
4
3
  heading?: React.ReactNode;
5
4
  }
@@ -1,6 +1,5 @@
1
- import { JSX } from 'react';
2
1
  import { GoabTableSortDirection } from '@abgov/ui-components-common';
3
-
2
+ import { JSX } from 'react';
4
3
  interface WCProps {
5
4
  name?: string;
6
5
  direction?: GoabTableSortDirection;
@@ -1,6 +1,5 @@
1
- import { ReactNode } from 'react';
2
1
  import { GoabTableOnSortDetail, GoabTableVariant, Margins } from '@abgov/ui-components-common';
3
-
2
+ import { ReactNode } from 'react';
4
3
  interface WCProps extends Margins {
5
4
  ref?: React.RefObject<HTMLElement | null>;
6
5
  width?: string;
@@ -1,6 +1,5 @@
1
- import { GoabTabsOnChangeDetail } from '@abgov/ui-components-common';
2
1
  import { default as React, JSX } from 'react';
3
-
2
+ import { GoabTabsOnChangeDetail } from '@abgov/ui-components-common';
4
3
  interface WCProps {
5
4
  initialtab?: number;
6
5
  ref: React.RefObject<HTMLElement | null>;
@@ -1,6 +1,5 @@
1
- import { GoabTextMaxWidth, GoabTextHeadingElement, GoabTextTextElement, GoabTextSize, GoabTextColor, Margins } from '@abgov/ui-components-common';
2
1
  import { ReactNode, JSX } from 'react';
3
-
2
+ import { GoabTextMaxWidth, GoabTextHeadingElement, GoabTextTextElement, GoabTextSize, GoabTextColor, Margins } from '@abgov/ui-components-common';
4
3
  interface WCProps extends Margins {
5
4
  as?: GoabTextTextElement | GoabTextHeadingElement;
6
5
  size?: GoabTextSize;
@@ -1,6 +1,5 @@
1
- import { JSX } from 'react';
2
1
  import { GoabTextAreaCountBy, GoabTextAreaOnChangeDetail, GoabTextAreaOnKeyPressDetail, Margins } from '@abgov/ui-components-common';
3
-
2
+ import { JSX } from 'react';
4
3
  interface WCProps extends Margins {
5
4
  ref: React.Ref<HTMLTextAreaElement>;
6
5
  name: string;
@@ -39,7 +38,7 @@ export interface GoabTextAreaProps extends Margins {
39
38
  ariaLabel?: string;
40
39
  countBy?: GoabTextAreaCountBy;
41
40
  maxCount?: number;
42
- onChange: (event: GoabTextAreaOnChangeDetail) => void;
41
+ onChange?: (event: GoabTextAreaOnChangeDetail) => void;
43
42
  onKeyPress?: (event: GoabTextAreaOnKeyPressDetail) => void;
44
43
  }
45
44
  export declare function GoabTextArea({ name, value, placeholder, rows, readOnly, disabled, countBy, maxCount, width, maxWidth, testId, error, ariaLabel, mt, mr, mb, ml, onChange, onKeyPress, }: GoabTextAreaProps): JSX.Element;
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
-
3
2
  interface WCProps {
4
3
  leftcolumnwidth?: string;
5
4
  maxcontentwidth?: string;
@@ -1,6 +1,5 @@
1
- import { ReactNode, JSX } from 'react';
2
1
  import { GoabTooltipHorizontalAlignment, GoabTooltipPosition, Margins } from '@abgov/ui-components-common';
3
-
2
+ import { ReactNode, JSX } from 'react';
4
3
  interface WCProps extends Margins {
5
4
  position?: GoabTooltipPosition;
6
5
  content?: string;
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
-
3
2
  interface WCProps {
4
3
  navcolumnwidth?: string;
5
4
  maxcontentwidth?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "6.4.1",
3
+ "version": "6.5.0-alpha.2",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -1,30 +0,0 @@
1
- import { GoabFieldsetOnContinueDetail, Margins } from '@abgov/ui-components-common';
2
- import { ReactNode } from 'react';
3
-
4
- interface WCProps extends Margins {
5
- ref?: React.RefObject<HTMLElement | null>;
6
- id: string;
7
- heading?: string;
8
- buttontext?: string;
9
- last?: string;
10
- first?: string;
11
- }
12
- declare module "react" {
13
- namespace JSX {
14
- interface IntrinsicElements {
15
- "goa-public-form-page": WCProps & React.HTMLAttributes<HTMLElement>;
16
- }
17
- }
18
- }
19
- interface GoabFieldsetProps extends Margins {
20
- id: string;
21
- first?: boolean;
22
- last?: boolean;
23
- heading?: string;
24
- buttonText?: string;
25
- errors?: Record<string, string>;
26
- onContinue?: (event: GoabFieldsetOnContinueDetail) => boolean | void | undefined;
27
- children: ReactNode;
28
- }
29
- export declare function GoabFieldset({ heading, buttonText, id, onContinue, children, mt, mr, mb, ml, first, last, }: GoabFieldsetProps): import("react/jsx-runtime").JSX.Element;
30
- export default GoabFieldset;