@abgov/react-components 6.8.0 → 6.9.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.
@@ -15,6 +15,7 @@ interface WCProps extends Margins {
15
15
  placeholder?: string;
16
16
  value?: string;
17
17
  width?: string;
18
+ maxwidth?: string;
18
19
  relative?: string;
19
20
  id?: string;
20
21
  autocomplete?: string;
@@ -45,6 +46,7 @@ export interface GoabDropdownProps extends Margins {
45
46
  placeholder?: string;
46
47
  testId?: string;
47
48
  width?: string;
49
+ maxWidth?: string;
48
50
  autoComplete?: string;
49
51
  /***
50
52
  * @deprecated This property has no effect and will be removed in a future version
@@ -1,4 +1,4 @@
1
- import { GoabTextAreaCountBy, GoabTextAreaOnChangeDetail, GoabTextAreaOnKeyPressDetail, Margins } from '@abgov/ui-components-common';
1
+ import { GoabTextAreaCountBy, GoabTextAreaOnChangeDetail, GoabTextAreaOnKeyPressDetail, GoabTextAreaOnBlurDetail, Margins } from '@abgov/ui-components-common';
2
2
  import { JSX } from 'react';
3
3
  interface WCProps extends Margins {
4
4
  ref: React.Ref<HTMLTextAreaElement>;
@@ -42,6 +42,7 @@ export interface GoabTextAreaProps extends Margins {
42
42
  autoComplete?: string;
43
43
  onChange?: (event: GoabTextAreaOnChangeDetail) => void;
44
44
  onKeyPress?: (event: GoabTextAreaOnKeyPressDetail) => void;
45
+ onBlur?: (event: GoabTextAreaOnBlurDetail) => void;
45
46
  }
46
- export declare function GoabTextArea({ name, value, placeholder, rows, readOnly, disabled, countBy, maxCount, width, maxWidth, testId, error, ariaLabel, mt, mr, mb, ml, autoComplete, onChange, onKeyPress, }: GoabTextAreaProps): JSX.Element;
47
+ export declare function GoabTextArea({ name, value, placeholder, rows, readOnly, disabled, countBy, maxCount, width, maxWidth, testId, error, ariaLabel, mt, mr, mb, ml, autoComplete, onChange, onKeyPress, onBlur, }: GoabTextAreaProps): JSX.Element;
47
48
  export default GoabTextArea;
@@ -5,6 +5,7 @@ interface WCProps extends Margins {
5
5
  content?: string;
6
6
  testid?: string;
7
7
  halign?: GoabTooltipHorizontalAlignment;
8
+ maxwidth?: string;
8
9
  }
9
10
  declare module "react" {
10
11
  namespace JSX {
@@ -18,6 +19,7 @@ export interface GoabTooltipProps extends Margins {
18
19
  content?: string | ReactNode;
19
20
  hAlign?: GoabTooltipHorizontalAlignment;
20
21
  testId?: string;
22
+ maxWidth?: string;
21
23
  children?: ReactNode;
22
24
  }
23
25
  export declare function GoabTooltip(props: GoabTooltipProps): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "6.8.0",
3
+ "version": "6.9.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"