@abgov/react-components 5.5.1 → 5.5.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 (66) hide show
  1. package/experimental/form/form.d.ts +2 -2
  2. package/experimental/form/task-list.d.ts +2 -2
  3. package/experimental/form/task.d.ts +2 -2
  4. package/experimental/index.d.ts +2 -2
  5. package/experimental/resizable-panel/ResizablePanel.d.ts +1 -1
  6. package/experimental.js.map +1 -1
  7. package/experimental.mjs.map +1 -1
  8. package/icon-1IRcN4Uf.js.map +1 -1
  9. package/icon-DgSW1II3.mjs.map +1 -1
  10. package/index.d.ts +61 -61
  11. package/index.js +2 -2
  12. package/index.js.map +1 -1
  13. package/index.mjs +2 -2
  14. package/index.mjs.map +1 -1
  15. package/lib/accordion/accordion.d.ts +2 -2
  16. package/lib/app-header-menu/app-header-menu.d.ts +2 -2
  17. package/lib/badge/badge.d.ts +1 -1
  18. package/lib/block/block.d.ts +2 -2
  19. package/lib/button/button.d.ts +3 -3
  20. package/lib/button-group/button-group.d.ts +1 -1
  21. package/lib/calendar/calendar.d.ts +1 -1
  22. package/lib/callout/callout.d.ts +1 -1
  23. package/lib/card/card.d.ts +1 -1
  24. package/lib/card/index.d.ts +5 -5
  25. package/lib/checkbox/checkbox.d.ts +1 -1
  26. package/lib/chip/chip.d.ts +1 -1
  27. package/lib/container/container.d.ts +2 -2
  28. package/lib/date-picker/date-picker.d.ts +1 -1
  29. package/lib/details/details.d.ts +2 -2
  30. package/lib/divider/divider.d.ts +1 -1
  31. package/lib/drawer/drawer.d.ts +1 -1
  32. package/lib/dropdown/dropdown.d.ts +2 -2
  33. package/lib/fieldset/fieldset.d.ts +2 -2
  34. package/lib/filter-chip/filter-chip.d.ts +1 -1
  35. package/lib/footer/footer.d.ts +1 -1
  36. package/lib/footer-meta-section/footer-meta-section.d.ts +1 -1
  37. package/lib/footer-nav-section/footer-nav-section.d.ts +1 -1
  38. package/lib/form-item/form-item.d.ts +1 -1
  39. package/lib/form-stepper/form-stepper.d.ts +2 -2
  40. package/lib/grid/grid.d.ts +1 -1
  41. package/lib/icon/icon.d.ts +1 -1
  42. package/lib/icon-button/icon-button.d.ts +2 -2
  43. package/lib/input/input.d.ts +6 -3
  44. package/lib/link/link.d.ts +3 -3
  45. package/lib/link-button/link-button.d.ts +3 -3
  46. package/lib/modal/modal.d.ts +1 -1
  47. package/lib/one-column-layout/one-column-layout.d.ts +1 -1
  48. package/lib/page-block/page-block.d.ts +1 -1
  49. package/lib/pages/pages.d.ts +2 -2
  50. package/lib/pagination/pagination.d.ts +1 -1
  51. package/lib/popover/popover.d.ts +2 -2
  52. package/lib/radio-group/radio-group.d.ts +2 -2
  53. package/lib/radio-group/radio.d.ts +1 -1
  54. package/lib/side-menu/side-menu.d.ts +1 -1
  55. package/lib/side-menu-group/side-menu-group.d.ts +3 -3
  56. package/lib/side-menu-heading/side-menu-heading.d.ts +2 -2
  57. package/lib/skeleton/skeleton.d.ts +1 -1
  58. package/lib/spacer/spacer.d.ts +1 -1
  59. package/lib/table/table.d.ts +2 -2
  60. package/lib/tabs/tabs.d.ts +1 -1
  61. package/lib/text/text.d.ts +2 -2
  62. package/lib/textarea/textarea.d.ts +1 -1
  63. package/lib/three-column-layout/three-column-layout.d.ts +1 -1
  64. package/lib/tooltip/tooltip.d.ts +2 -2
  65. package/lib/two-column-layout/two-column-layout.d.ts +1 -1
  66. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import React, { ReactNode } from "react";
2
- import { Margins } from "../../common/styling";
1
+ import { default as React, ReactNode } from 'react';
2
+ import { Margins } from '../../common/styling';
3
3
  export type GoAHeadingSize = "small" | "medium";
4
4
  export type GoAIconPosition = "left" | "right";
5
5
  interface WCProps extends Margins {
@@ -1,5 +1,5 @@
1
- import { ReactNode } from "react";
2
- import { GoAIconType } from "../icon/icon";
1
+ import { ReactNode } from 'react';
2
+ import { GoAIconType } from '../icon/icon';
3
3
  interface WCProps {
4
4
  heading: string;
5
5
  leadingicon?: GoAIconType;
@@ -1,4 +1,4 @@
1
- import { Margins } from "../../common/styling";
1
+ import { Margins } from '../../common/styling';
2
2
  export type GoABadgeType = "information" | "success" | "important" | "emergency" | "dark" | "midtone" | "light";
3
3
  interface WCProps extends Margins {
4
4
  type: GoABadgeType;
@@ -1,5 +1,5 @@
1
- import { ReactNode } from "react";
2
- import { Alignment, Direction, Margins, Spacing } from "../../common/styling";
1
+ import { ReactNode } from 'react';
2
+ import { Alignment, Direction, Margins, Spacing } from '../../common/styling';
3
3
  export interface WCProps extends Margins {
4
4
  gap?: Spacing;
5
5
  direction?: Direction;
@@ -1,6 +1,6 @@
1
- import { ReactNode } from "react";
2
- import { Margins } from "../../common/styling";
3
- import { GoAIconType } from "../icon/icon";
1
+ import { ReactNode } from 'react';
2
+ import { Margins } from '../../common/styling';
3
+ import { GoAIconType } from '../icon/icon';
4
4
  export type GoAButtonType = "primary" | "submit" | "secondary" | "tertiary" | "start";
5
5
  export type GoAButtonSize = "compact" | "normal";
6
6
  export type GoAButtonVariant = "normal" | "destructive";
@@ -1,4 +1,4 @@
1
- import { Margins } from "../../common/styling";
1
+ import { Margins } from '../../common/styling';
2
2
  export type GoAButtonGroupAlignment = "start" | "end" | "center";
3
3
  export type GoAButtonGroupGap = "relaxed" | "compact";
4
4
  export type Gap = GoAButtonGroupGap;
@@ -1,4 +1,4 @@
1
- import { Margins } from "../../common/styling";
1
+ import { Margins } from '../../common/styling';
2
2
  interface WCProps extends Margins {
3
3
  ref: React.RefObject<HTMLElement>;
4
4
  name?: string;
@@ -1,4 +1,4 @@
1
- import { Margins } from "../../common/styling";
1
+ import { Margins } from '../../common/styling';
2
2
  export type GoACalloutType = "important" | "information" | "event" | "success" | "emergency";
3
3
  export type GoACalloutSize = "medium" | "large";
4
4
  export type GoACalloutAriaLive = "off" | "polite" | "assertive";
@@ -1,4 +1,4 @@
1
- import { Margins } from "../../common/styling";
1
+ import { Margins } from '../../common/styling';
2
2
  interface WCProps extends Margins {
3
3
  elevation?: number;
4
4
  width?: string;
@@ -1,5 +1,5 @@
1
- export * from "./card-content";
2
- export * from "./card-image";
3
- export * from "./card-actions";
4
- export * from "./card-group";
5
- export * from "./card";
1
+ export * from './card-content';
2
+ export * from './card-image';
3
+ export * from './card-actions';
4
+ export * from './card-group';
5
+ export * from './card';
@@ -1,4 +1,4 @@
1
- import { Margins } from "../../common/styling";
1
+ import { Margins } from '../../common/styling';
2
2
  declare global {
3
3
  namespace JSX {
4
4
  interface IntrinsicElements {
@@ -1,4 +1,4 @@
1
- import { Margins } from "../../common/styling";
1
+ import { Margins } from '../../common/styling';
2
2
  export type GoAChipVariant = "filter";
3
3
  export type GoAChipTheme = "outline" | "filled" | "sharp";
4
4
  interface WCProps extends Margins {
@@ -1,5 +1,5 @@
1
- import { ReactNode } from "react";
2
- import { Margins } from "../../common/styling";
1
+ import { ReactNode } from 'react';
2
+ import { Margins } from '../../common/styling';
3
3
  export type GoAContainerType = "interactive" | "non-interactive" | "info" | "error" | "success" | "important";
4
4
  export type GoAContainerAccent = "thick" | "thin" | "filled";
5
5
  export type GoAContainerPadding = "relaxed" | "compact";
@@ -1,4 +1,4 @@
1
- import { Margins } from "../../common/styling";
1
+ import { Margins } from '../../common/styling';
2
2
  interface WCProps extends Margins {
3
3
  ref: React.RefObject<HTMLElement>;
4
4
  name?: string;
@@ -1,5 +1,5 @@
1
- import { ReactNode } from "react";
2
- import { Margins } from "../../common/styling";
1
+ import { ReactNode } from 'react';
2
+ import { Margins } from '../../common/styling';
3
3
  interface WCProps extends Margins {
4
4
  heading: string;
5
5
  open?: boolean;
@@ -1,4 +1,4 @@
1
- import { Margins } from "../../common/styling";
1
+ import { Margins } from '../../common/styling';
2
2
  interface WCProps extends Margins {
3
3
  testid?: string;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
2
  type DrawerPosition = "bottom" | "left" | "right" | undefined;
3
3
  type DrawerSizeUnit = "px" | "rem" | "ch" | "vh" | "vw";
4
4
  type DrawerSize = `${number}${DrawerSizeUnit}` | undefined;
@@ -1,5 +1,5 @@
1
- import { Margins } from "../../common/styling";
2
- import { GoAIconType } from "../icon/icon";
1
+ import { Margins } from '../../common/styling';
2
+ import { GoAIconType } from '../icon/icon';
3
3
  interface WCProps extends Margins {
4
4
  ref: React.MutableRefObject<HTMLElement | null>;
5
5
  arialabel?: string;
@@ -1,5 +1,5 @@
1
- import { ReactNode } from "react";
2
- import { Margins } from "../../common/styling";
1
+ import { ReactNode } from 'react';
2
+ import { Margins } from '../../common/styling';
3
3
  interface WCProps extends Margins {
4
4
  ref?: React.MutableRefObject<HTMLElement | null>;
5
5
  id: string;
@@ -1,4 +1,4 @@
1
- import { Margins } from "../../common/styling";
1
+ import { Margins } from '../../common/styling';
2
2
  export type GoAFilterChipTheme = "outline" | "filled";
3
3
  interface WCProps extends Margins {
4
4
  ref: React.RefObject<HTMLElement>;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
2
  interface WCProps {
3
3
  maxcontentwidth?: string;
4
4
  testid?: string;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
2
  interface WCProps {
3
3
  testid?: string;
4
4
  }
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
2
  interface WCProps {
3
3
  maxcolumncount?: number;
4
4
  heading?: string;
@@ -1,4 +1,4 @@
1
- import { Margins } from "../../common/styling";
1
+ import { Margins } from '../../common/styling';
2
2
  export type GoAFormItemRequirement = "optional" | "required";
3
3
  export type GoAFormItemLabelSize = "regular" | "large";
4
4
  interface WCProps extends Margins {
@@ -1,5 +1,5 @@
1
- import { ReactNode } from "react";
2
- import { Margins } from "../../common/styling";
1
+ import { ReactNode } from 'react';
2
+ import { Margins } from '../../common/styling';
3
3
  interface WCProps extends Margins {
4
4
  ref?: React.MutableRefObject<HTMLElement | null>;
5
5
  step?: number;
@@ -1,4 +1,4 @@
1
- import { Margins, Spacing } from "../../common/styling";
1
+ import { Margins, Spacing } from '../../common/styling';
2
2
  interface WCProps extends Margins {
3
3
  gap?: Spacing;
4
4
  minchildwidth: string;
@@ -1,4 +1,4 @@
1
- import { Margins } from "../../common/styling";
1
+ import { Margins } from '../../common/styling';
2
2
  export type GoAIconFilledType = `${GoAIconType}-${GoAIconTheme}`;
3
3
  interface IonIconProps {
4
4
  name: GoAIconType | GoAIconFilledType;
@@ -1,5 +1,5 @@
1
- import { Margins } from "../../common/styling";
2
- import { GoAIconSize, GoAIconType } from "../icon/icon";
1
+ import { Margins } from '../../common/styling';
2
+ import { GoAIconSize, GoAIconType } from '../icon/icon';
3
3
  export type GoAIconButtonVariant = "color" | "nocolor" | "light" | "dark" | "destructive";
4
4
  export type IconButtonVariant = GoAIconButtonVariant;
5
5
  interface WCProps extends Margins {
@@ -1,8 +1,9 @@
1
- import { GoAIconType } from "../..";
2
- import { Margins } from "../../common/styling";
1
+ import { GoAIconType } from '../..';
2
+ import { Margins } from '../../common/styling';
3
3
  export type GoADate = Date | string;
4
4
  export type GoAInputType = "text" | "password" | "email" | "number" | "date" | "datetime-local" | "month" | "range" | "search" | "tel" | "time" | "url" | "week";
5
5
  export type GoAAutoCapitalize = "on" | "off" | "none" | "sentences" | "words" | "characters";
6
+ export type GoAInputTextAlign = "left" | "right";
6
7
  interface WCProps extends Margins {
7
8
  ref?: React.MutableRefObject<HTMLInputElement | null>;
8
9
  type?: GoAInputType;
@@ -10,6 +11,7 @@ interface WCProps extends Margins {
10
11
  value?: string;
11
12
  id?: string;
12
13
  autocapitalize?: GoAAutoCapitalize;
14
+ textalign?: GoAInputTextAlign;
13
15
  debounce?: number;
14
16
  placeholder?: string;
15
17
  leadingicon?: string;
@@ -43,6 +45,7 @@ interface BaseProps extends Margins {
43
45
  debounce?: number;
44
46
  disabled?: boolean;
45
47
  autoCapitalize?: GoAAutoCapitalize;
48
+ textAlign?: GoAInputTextAlign;
46
49
  placeholder?: string;
47
50
  leadingIcon?: GoAIconType;
48
51
  trailingIcon?: GoAIconType;
@@ -94,7 +97,7 @@ interface GoADateInputProps extends BaseProps {
94
97
  onBlur?: OnBlur<GoADate>;
95
98
  onKeyPress?: OnKeyPress<GoADate>;
96
99
  }
97
- export declare function GoAInput({ id, debounce, name, type, autoCapitalize, leadingIcon, trailingIcon, variant, focused, disabled, readonly, value, placeholder, error, width, testId, min, max, step, prefix, suffix, ariaLabel, mt, mr, mb, ml, leadingContent, trailingContent, maxLength, onTrailingIconClick, onChange, onFocus, onBlur, onKeyPress, }: GoAInputProps & {
100
+ export declare function GoAInput({ id, debounce, name, type, autoCapitalize, textAlign, leadingIcon, trailingIcon, variant, focused, disabled, readonly, value, placeholder, error, width, testId, min, max, step, prefix, suffix, ariaLabel, mt, mr, mb, ml, leadingContent, trailingContent, maxLength, onTrailingIconClick, onChange, onFocus, onBlur, onKeyPress, }: GoAInputProps & {
98
101
  type?: GoAInputType;
99
102
  }): JSX.Element;
100
103
  export declare function GoAInputText(props: GoAInputProps): JSX.Element;
@@ -1,6 +1,6 @@
1
- import { ReactNode } from "react";
2
- import { Margins } from "../../common/styling";
3
- import { GoAIconType } from "../icon/icon";
1
+ import { ReactNode } from 'react';
2
+ import { Margins } from '../../common/styling';
3
+ import { GoAIconType } from '../icon/icon';
4
4
  interface WCProps extends Margins {
5
5
  leadingicon?: GoAIconType;
6
6
  trailingicon?: GoAIconType;
@@ -1,6 +1,6 @@
1
- import { ReactNode } from "react";
2
- import { Margins } from "../../common/styling";
3
- import { GoAIconType } from "../icon/icon";
1
+ import { ReactNode } from 'react';
2
+ import { Margins } from '../../common/styling';
3
+ import { GoAIconType } from '../icon/icon';
4
4
  export type GoALinkButtonType = "start" | "primary" | "secondary" | "tertiary";
5
5
  interface WCProps extends Margins {
6
6
  type?: GoALinkButtonType;
@@ -1,4 +1,4 @@
1
- import { ReactElement, ReactNode, RefObject } from "react";
1
+ import { ReactElement, ReactNode, RefObject } from 'react';
2
2
  export type GoAModalTransition = "fast" | "slow" | "none";
3
3
  export type GoAModalCalloutVariant = "information" | "important" | "emergency" | "success" | "event";
4
4
  export type GoAModalRole = "dialog" | "alertdialog";
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
2
  declare global {
3
3
  namespace JSX {
4
4
  interface IntrinsicElements {
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
2
  interface WCProps {
3
3
  width: "full" | string;
4
4
  testid?: string;
@@ -1,5 +1,5 @@
1
- import { ReactNode } from "react";
2
- import { Margins } from "../../common/styling";
1
+ import { ReactNode } from 'react';
2
+ import { Margins } from '../../common/styling';
3
3
  interface WCProps extends Margins {
4
4
  current?: number;
5
5
  }
@@ -1,4 +1,4 @@
1
- import { Margins } from "../../common/styling";
1
+ import { Margins } from '../../common/styling';
2
2
  interface WCProps extends Margins {
3
3
  ref?: React.MutableRefObject<HTMLElement | undefined>;
4
4
  itemcount: number;
@@ -1,5 +1,5 @@
1
- import { ReactNode } from "react";
2
- import { Margins } from "../../common/styling";
1
+ import { ReactNode } from 'react';
2
+ import { Margins } from '../../common/styling';
3
3
  export type GoAPosition = "above" | "below" | "auto";
4
4
  interface WCProps extends Margins {
5
5
  maxwidth?: string;
@@ -1,5 +1,5 @@
1
- import { Margins } from "../../common/styling";
2
- export * from "./radio";
1
+ import { Margins } from '../../common/styling';
2
+ export * from './radio';
3
3
  export type GoARadioGroupOrientation = "horizontal" | "vertical";
4
4
  interface WCProps extends Margins {
5
5
  ref: React.RefObject<HTMLElement>;
@@ -1,4 +1,4 @@
1
- import { Margins } from "../../common/styling";
1
+ import { Margins } from '../../common/styling';
2
2
  interface RadioItemProps extends Margins {
3
3
  name?: string;
4
4
  value?: string;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
2
  interface WCProps {
3
3
  testid?: string;
4
4
  }
@@ -1,6 +1,6 @@
1
- import { ReactNode } from "react";
2
- import { GoAIconType } from "../icon/icon";
3
- import { Margins } from "../../common/styling";
1
+ import { ReactNode } from 'react';
2
+ import { GoAIconType } from '../icon/icon';
3
+ import { Margins } from '../../common/styling';
4
4
  interface WCProps extends Margins {
5
5
  heading: string;
6
6
  icon?: GoAIconType;
@@ -1,5 +1,5 @@
1
- import { ReactNode } from "react";
2
- import { GoAIconType } from "../icon/icon";
1
+ import { ReactNode } from 'react';
2
+ import { GoAIconType } from '../icon/icon';
3
3
  interface WCProps {
4
4
  icon?: GoAIconType;
5
5
  testid?: string;
@@ -1,4 +1,4 @@
1
- import { Margins } from "../../common/styling";
1
+ import { Margins } from '../../common/styling';
2
2
  export type GoASkeletonType = "image" | "text" | "title" | "text-small" | "avatar" | "header" | "paragraph" | "thumbnail" | "card" | "profile" | "article";
3
3
  export type GoASkeletonSize = 1 | 2 | 3 | 4;
4
4
  export type SkeletonType = GoASkeletonType;
@@ -1,4 +1,4 @@
1
- import { Spacing } from "../../common/styling";
1
+ import { Spacing } from '../../common/styling';
2
2
  interface WCProps {
3
3
  hspacing?: Spacing | "fill";
4
4
  vspacing?: Spacing;
@@ -1,5 +1,5 @@
1
- import { ReactNode } from "react";
2
- import { Margins } from "../../common/styling";
1
+ import { ReactNode } from 'react';
2
+ import { Margins } from '../../common/styling';
3
3
  export type GoATableVariant = "normal" | "relaxed";
4
4
  export type TableVariant = GoATableVariant;
5
5
  interface WCProps extends Margins {
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import { default as React } from 'react';
2
2
  interface WCProps {
3
3
  initialtab?: number;
4
4
  ref: React.RefObject<HTMLElement>;
@@ -1,5 +1,5 @@
1
- import { ReactNode } from "react";
2
- import { Margins } from "../../common/styling";
1
+ import { ReactNode } from 'react';
2
+ import { Margins } from '../../common/styling';
3
3
  type MaxWidth = string | "none";
4
4
  interface WCProps extends Margins {
5
5
  as?: TextElement | HeadingElement;
@@ -1,4 +1,4 @@
1
- import { Margins } from "../../common/styling";
1
+ import { Margins } from '../../common/styling';
2
2
  type CountBy = "character" | "word";
3
3
  interface WCProps extends Margins {
4
4
  ref: React.Ref<HTMLTextAreaElement>;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
2
  interface WCProps {
3
3
  leftcolumnwidth?: string;
4
4
  maxcontentwidth?: string;
@@ -1,5 +1,5 @@
1
- import { ReactNode } from "react";
2
- import { Margins } from "../../common/styling";
1
+ import { ReactNode } from 'react';
2
+ import { Margins } from '../../common/styling';
3
3
  export type GoATooltipPosition = "top" | "bottom" | "left" | "right";
4
4
  export type GoATooltipHorizontalAlignment = "left" | "right" | "center";
5
5
  interface WCProps extends Margins {
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import { ReactNode } from 'react';
2
2
  interface WCProps {
3
3
  navcolumnwidth?: string;
4
4
  maxcontentwidth?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "5.5.1",
3
+ "version": "5.5.2",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"