@abgov/react-components 4.0.0-alpha.3 → 4.0.0-alpha.4

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.
@@ -14,6 +14,8 @@ interface WCProps {
14
14
  error?: boolean;
15
15
  readonly?: boolean;
16
16
  focused?: boolean;
17
+ showcounter?: boolean;
18
+ maxcharcount?: number;
17
19
  handletrailingiconclick: boolean;
18
20
  width?: string;
19
21
  testid?: string;
@@ -40,6 +42,8 @@ export interface Props {
40
42
  readonly?: boolean;
41
43
  error?: boolean;
42
44
  width?: string;
45
+ showCounter?: boolean;
46
+ maxCharCount?: number;
43
47
  testId?: string;
44
48
  }
45
49
  export declare const GoAInput: FC<Props & {
@@ -5,8 +5,10 @@ interface WCProps {
5
5
  value: string;
6
6
  placeholder?: string;
7
7
  rows?: number;
8
- error: boolean;
9
- disabled: boolean;
8
+ error?: boolean;
9
+ disabled?: boolean;
10
+ showcounter?: boolean;
11
+ maxcharcount?: number;
10
12
  }
11
13
  declare global {
12
14
  namespace JSX {
@@ -21,9 +23,11 @@ interface Props {
21
23
  id?: string;
22
24
  placeholder?: string;
23
25
  rows?: number;
24
- error: boolean;
25
- disabled: boolean;
26
- testId: string;
26
+ error?: boolean;
27
+ disabled?: boolean;
28
+ showCounter?: boolean;
29
+ maxCharCount?: number;
30
+ testId?: string;
27
31
  onChange: (name: string, value: string) => void;
28
32
  }
29
33
  export declare const GoATextArea: FC<Props>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "4.0.0-alpha.3",
3
+ "version": "4.0.0-alpha.4",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -527,6 +527,8 @@ const GoAInput = ({
527
527
  placeholder,
528
528
  error,
529
529
  width,
530
+ showCounter,
531
+ maxCharCount,
530
532
  testId,
531
533
  onTrailingIconClick,
532
534
  onChange
@@ -574,6 +576,8 @@ const GoAInput = ({
574
576
  "data-testid": testId,
575
577
  value: value,
576
578
  width: width,
579
+ showcounter: showCounter,
580
+ maxcharcount: maxCharCount,
577
581
  handletrailingiconclick: !!onTrailingIconClick
578
582
  }, void 0);
579
583
  };
@@ -823,6 +827,8 @@ const GoATextArea = ({
823
827
  placeholder,
824
828
  rows,
825
829
  disabled,
830
+ showCounter,
831
+ maxCharCount,
826
832
  testId,
827
833
  error,
828
834
  onChange
@@ -855,6 +861,8 @@ const GoATextArea = ({
855
861
  value: value,
856
862
  rows: rows,
857
863
  disabled: disabled,
864
+ showcounter: showCounter,
865
+ maxcharcount: maxCharCount,
858
866
  error: error,
859
867
  "data-testid": testId
860
868
  }, void 0);
@@ -530,6 +530,8 @@
530
530
  placeholder = _a.placeholder,
531
531
  error = _a.error,
532
532
  width = _a.width,
533
+ showCounter = _a.showCounter,
534
+ maxCharCount = _a.maxCharCount,
533
535
  testId = _a.testId,
534
536
  onTrailingIconClick = _a.onTrailingIconClick,
535
537
  onChange = _a.onChange;
@@ -575,6 +577,8 @@
575
577
  "data-testid": testId,
576
578
  value: value,
577
579
  width: width,
580
+ showcounter: showCounter,
581
+ maxcharcount: maxCharCount,
578
582
  handletrailingiconclick: !!onTrailingIconClick
579
583
  }, void 0);
580
584
  };
@@ -824,6 +828,8 @@
824
828
  placeholder = _a.placeholder,
825
829
  rows = _a.rows,
826
830
  disabled = _a.disabled,
831
+ showCounter = _a.showCounter,
832
+ maxCharCount = _a.maxCharCount,
827
833
  testId = _a.testId,
828
834
  error = _a.error,
829
835
  onChange = _a.onChange;
@@ -854,6 +860,8 @@
854
860
  value: value,
855
861
  rows: rows,
856
862
  disabled: disabled,
863
+ showcounter: showCounter,
864
+ maxcharcount: maxCharCount,
857
865
  error: error,
858
866
  "data-testid": testId
859
867
  }, void 0);