@abgov/react-components 4.0.0-alpha.1 → 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.
package/index.d.ts CHANGED
@@ -3,11 +3,15 @@
3
3
  */
4
4
  import '@abgov/web-components';
5
5
  import { GoAAppHeader } from './lib/app-header/app-header';
6
+ import { GoAAppFooter } from './lib/app-footer/app-footer';
7
+ import { GoAMetaLink } from './lib/app-footer/meta-link';
8
+ import { GoANavigationLink } from './lib/app-footer/navigation-link';
6
9
  import { GoABadge, GoAInfoBadge, GoAEmergencyBadge, GoASuccessBadge, GoAWarningBadge } from './lib/badge/badge';
7
10
  import { GoAButton } from './lib/button/button';
8
11
  import { GoAButtonGroup } from './lib/button-group/button-group';
9
12
  import { GoACallout } from './lib/callout/callout';
10
13
  import { GoACheckbox } from './lib/checkbox/checkbox';
14
+ import { GoAChip } from './lib/chip/chip';
11
15
  import { GoACircularProgress } from './lib/circular-progress/circular-progress';
12
16
  import { GoAContainer } from './lib/container/container';
13
17
  import { GoADropdown, GoADropdownOption } from './lib/dropdown/dropdown';
@@ -29,4 +33,4 @@ import type { GoAIconType } from './lib/icons';
29
33
  import type { GoABadgeType } from './lib/badge/badge';
30
34
  export type { GoAIconType };
31
35
  export type { GoABadgeType };
32
- export { GoAAppHeader, GoABadge, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoACircularProgress, GoAContainer, GoADropdown, GoADropdownOption, GoAEmergencyBadge, GoAFlexRow, GoAFormItem, GoAHeroBanner, GoAHeroBannerActions, GoAIcon, GoAIconButton, GoAInfoBadge, GoAInput, GoAInputDate, GoAInputDateTime, GoAInputEmail, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputPassword, GoAInputRange, GoAInputSearch, GoAInputTel, GoAInputText, GoAInputTime, GoAInputUrl, GoAMicrositeHeader, GoAModal, GoANotification, GoAPageBlock, GoARadioGroup, GoARadioItem, GoASkeleton, GoASpinner, GoASuccessBadge, GoATextArea, GoAWarningBadge, };
36
+ export { GoAAppHeader, GoAAppFooter, GoAMetaLink, GoANavigationLink, GoABadge, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoAChip, GoACircularProgress, GoAContainer, GoADropdown, GoADropdownOption, GoAEmergencyBadge, GoAFlexRow, GoAFormItem, GoAHeroBanner, GoAHeroBannerActions, GoAIcon, GoAIconButton, GoAInfoBadge, GoAInput, GoAInputDate, GoAInputDateTime, GoAInputEmail, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputPassword, GoAInputRange, GoAInputSearch, GoAInputTel, GoAInputText, GoAInputTime, GoAInputUrl, GoAMicrositeHeader, GoAModal, GoANotification, GoAPageBlock, GoARadioGroup, GoARadioItem, GoASkeleton, GoASpinner, GoASuccessBadge, GoATextArea, GoAWarningBadge, };
@@ -0,0 +1,24 @@
1
+ import React, { FC } from 'react';
2
+ interface WCProps {
3
+ id?: string;
4
+ appurl?: string;
5
+ title?: string;
6
+ copyrighturl?: string;
7
+ copyrighttext?: string;
8
+ }
9
+ declare global {
10
+ namespace JSX {
11
+ interface IntrinsicElements {
12
+ 'goa-app-footer': WCProps & React.HTMLAttributes<HTMLElement>;
13
+ }
14
+ }
15
+ }
16
+ export interface Props {
17
+ id?: string;
18
+ appUrl?: string;
19
+ title?: string;
20
+ copyrightUrl?: string;
21
+ copyrightText?: string;
22
+ }
23
+ export declare const GoAAppFooter: FC<Props>;
24
+ export default GoAAppFooter;
@@ -0,0 +1,20 @@
1
+ import React, { FC } from 'react';
2
+ interface WCProps {
3
+ footerid?: string;
4
+ url: string;
5
+ title: string;
6
+ }
7
+ declare global {
8
+ namespace JSX {
9
+ interface IntrinsicElements {
10
+ 'goa-meta-link': WCProps & React.HTMLAttributes<HTMLElement>;
11
+ }
12
+ }
13
+ }
14
+ interface Props {
15
+ footerId?: string;
16
+ url: string;
17
+ title: string;
18
+ }
19
+ export declare const GoAMetaLink: FC<Props>;
20
+ export default GoAMetaLink;
@@ -0,0 +1,22 @@
1
+ import React, { FC } from 'react';
2
+ interface WCProps {
3
+ footerid?: string;
4
+ url: string;
5
+ title: string;
6
+ section?: string;
7
+ }
8
+ declare global {
9
+ namespace JSX {
10
+ interface IntrinsicElements {
11
+ 'goa-navigation-link': WCProps & React.HTMLAttributes<HTMLElement>;
12
+ }
13
+ }
14
+ }
15
+ interface Props {
16
+ footerId?: string;
17
+ url: string;
18
+ title: string;
19
+ section?: string;
20
+ }
21
+ export declare const GoANavigationLink: FC<Props>;
22
+ export default GoANavigationLink;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ interface WCProps {
3
+ ref: React.RefObject<HTMLElement>;
4
+ leadingicon: string;
5
+ error: boolean;
6
+ deletable: boolean;
7
+ content: string;
8
+ }
9
+ declare global {
10
+ namespace JSX {
11
+ interface IntrinsicElements {
12
+ 'goa-chip': WCProps & React.HTMLAttributes<HTMLElement>;
13
+ }
14
+ }
15
+ }
16
+ export interface Props {
17
+ onDeleteIconClick?: () => void;
18
+ leadingIcon?: string;
19
+ error?: boolean;
20
+ content: string;
21
+ }
22
+ export declare const GoAChip: ({ leadingIcon, error, content, onDeleteIconClick }: Props) => JSX.Element;
23
+ export default GoAChip;
package/lib/flex/row.d.ts CHANGED
@@ -1,7 +1,16 @@
1
- import { FC } from "react";
2
- interface Props {
3
- gap?: 'small' | 'medium' | 'large';
4
- minWidth?: number | string;
1
+ import React, { FC } from "react";
2
+ interface WCProps {
3
+ gap: 'small' | 'medium' | 'large';
4
+ }
5
+ declare global {
6
+ namespace JSX {
7
+ interface IntrinsicElements {
8
+ 'goa-flex-row': WCProps & React.HTMLAttributes<HTMLElement>;
9
+ }
10
+ }
11
+ }
12
+ export interface Props {
13
+ gap: 'small' | 'medium' | 'large';
5
14
  }
6
15
  export declare const GoAFlexRow: FC<Props>;
7
16
  export default GoAFlexRow;
@@ -11,10 +11,13 @@ interface WCProps {
11
11
  trailingicon?: string;
12
12
  variant: string;
13
13
  disabled?: boolean;
14
- error?: string;
14
+ error?: boolean;
15
15
  readonly?: boolean;
16
16
  focused?: boolean;
17
+ showcounter?: boolean;
18
+ maxcharcount?: number;
17
19
  handletrailingiconclick: boolean;
20
+ width?: string;
18
21
  testid?: string;
19
22
  }
20
23
  declare global {
@@ -37,7 +40,10 @@ export interface Props {
37
40
  variant?: 'goa' | 'bare';
38
41
  focused?: boolean;
39
42
  readonly?: boolean;
40
- error?: string;
43
+ error?: boolean;
44
+ width?: string;
45
+ showCounter?: boolean;
46
+ maxCharCount?: number;
41
47
  testId?: string;
42
48
  }
43
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.1",
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"
@@ -1,6 +1,6 @@
1
1
  import '@abgov/web-components';
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
- import React, { useRef, useEffect } from 'react';
3
+ import { useRef, useEffect } from 'react';
4
4
 
5
5
  const GoAAppHeader = ({
6
6
  title,
@@ -15,6 +15,57 @@ const GoAAppHeader = ({
15
15
  }), void 0);
16
16
  };
17
17
 
18
+ const GoAAppFooter = ({
19
+ id,
20
+ appUrl,
21
+ title,
22
+ copyrightUrl,
23
+ copyrightText,
24
+ children
25
+ }) => {
26
+ return jsx("goa-app-footer", Object.assign({
27
+ id: id,
28
+ appurl: appUrl,
29
+ title: title,
30
+ copyrighturl: copyrightUrl,
31
+ copyrighttext: copyrightText
32
+ }, {
33
+ children: children
34
+ }), void 0);
35
+ };
36
+
37
+ const GoAMetaLink = ({
38
+ footerId,
39
+ url,
40
+ title,
41
+ children
42
+ }) => {
43
+ return jsx("goa-meta-link", Object.assign({
44
+ footerid: footerId,
45
+ url: url,
46
+ title: title
47
+ }, {
48
+ children: children
49
+ }), void 0);
50
+ };
51
+
52
+ const GoANavigationLink = ({
53
+ footerId,
54
+ url,
55
+ title,
56
+ section,
57
+ children
58
+ }) => {
59
+ return jsx("goa-navigation-link", Object.assign({
60
+ footerid: footerId,
61
+ url: url,
62
+ title: title,
63
+ section: section
64
+ }, {
65
+ children: children
66
+ }), void 0);
67
+ };
68
+
18
69
  const GoABadge = ({
19
70
  type,
20
71
  content,
@@ -213,6 +264,36 @@ const GoACheckbox = ({
213
264
  }), void 0);
214
265
  };
215
266
 
267
+ const GoAChip = ({
268
+ leadingIcon: _leadingIcon = "",
269
+ error: _error = false,
270
+ content,
271
+ onDeleteIconClick
272
+ }) => {
273
+ const el = useRef(null);
274
+ useEffect(() => {
275
+ if (!el.current) return;
276
+ if (!onDeleteIconClick) return;
277
+ const current = el.current;
278
+
279
+ const listener = e => {
280
+ onDeleteIconClick();
281
+ };
282
+
283
+ current.addEventListener('_onDeleteIconClick', listener);
284
+ return () => {
285
+ current.removeEventListener('_onDeleteIconClick', listener);
286
+ };
287
+ }, [el, onDeleteIconClick]);
288
+ return jsx("goa-chip", {
289
+ ref: el,
290
+ leadingicon: _leadingIcon,
291
+ error: _error,
292
+ deletable: !!onDeleteIconClick,
293
+ content: content
294
+ }, void 0);
295
+ };
296
+
216
297
  const GoACircularProgress = ({
217
298
  type,
218
299
  visible,
@@ -306,32 +387,12 @@ const GoADropdown = props => {
306
387
 
307
388
  const GoAFlexRow = ({
308
389
  gap,
309
- minWidth,
310
390
  children
311
391
  }) => {
312
- const style = {
313
- gap: gap === 'small' ? '1rem' : gap === 'medium' ? '2rem' : gap === 'large' ? '3rem' : '0'
314
- };
315
-
316
- const getChildren = () => {
317
- if (!children) {
318
- return null;
319
- }
320
-
321
- return React.Children.map(children, child => {
322
- return /*#__PURE__*/React.cloneElement(child, {
323
- style: Object.assign({
324
- flexBasis: minWidth
325
- }, child.props.style)
326
- });
327
- });
328
- };
329
-
330
- return jsx("div", Object.assign({
331
- className: "goa-flex-row",
332
- style: style
392
+ return jsx("goa-flex-row", Object.assign({
393
+ gap: gap
333
394
  }, {
334
- children: getChildren()
395
+ children: children
335
396
  }), void 0);
336
397
  };
337
398
 
@@ -465,6 +526,9 @@ const GoAInput = ({
465
526
  value,
466
527
  placeholder,
467
528
  error,
529
+ width,
530
+ showCounter,
531
+ maxCharCount,
468
532
  testId,
469
533
  onTrailingIconClick,
470
534
  onChange
@@ -511,6 +575,9 @@ const GoAInput = ({
511
575
  error: error,
512
576
  "data-testid": testId,
513
577
  value: value,
578
+ width: width,
579
+ showcounter: showCounter,
580
+ maxcharcount: maxCharCount,
514
581
  handletrailingiconclick: !!onTrailingIconClick
515
582
  }, void 0);
516
583
  };
@@ -760,6 +827,8 @@ const GoATextArea = ({
760
827
  placeholder,
761
828
  rows,
762
829
  disabled,
830
+ showCounter,
831
+ maxCharCount,
763
832
  testId,
764
833
  error,
765
834
  onChange
@@ -792,9 +861,11 @@ const GoATextArea = ({
792
861
  value: value,
793
862
  rows: rows,
794
863
  disabled: disabled,
864
+ showcounter: showCounter,
865
+ maxcharcount: maxCharCount,
795
866
  error: error,
796
867
  "data-testid": testId
797
868
  }, void 0);
798
869
  };
799
870
 
800
- export { GoAAppHeader, GoABadge, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoACircularProgress, GoAContainer, GoADropdown, GoADropdownOption, GoAEmergencyBadge, GoAFlexRow, GoAFormItem, GoAHeroBanner, GoAHeroBannerActions, GoAIcon, GoAIconButton, GoAInfoBadge, GoAInput, GoAInputDate, GoAInputDateTime, GoAInputEmail, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputPassword, GoAInputRange, GoAInputSearch, GoAInputTel, GoAInputText, GoAInputTime, GoAInputUrl, GoAMicrositeHeader, GoAModal, GoANotification, GoAPageBlock, GoARadioGroup, GoARadioItem, GoASkeleton, GoASpinner, GoASuccessBadge, GoATextArea, GoAWarningBadge };
871
+ export { GoAAppFooter, GoAAppHeader, GoABadge, GoAButton, GoAButtonGroup, GoACallout, GoACheckbox, GoAChip, GoACircularProgress, GoAContainer, GoADropdown, GoADropdownOption, GoAEmergencyBadge, GoAFlexRow, GoAFormItem, GoAHeroBanner, GoAHeroBannerActions, GoAIcon, GoAIconButton, GoAInfoBadge, GoAInput, GoAInputDate, GoAInputDateTime, GoAInputEmail, GoAInputFile, GoAInputMonth, GoAInputNumber, GoAInputPassword, GoAInputRange, GoAInputSearch, GoAInputTel, GoAInputText, GoAInputTime, GoAInputUrl, GoAMetaLink, GoAMicrositeHeader, GoAModal, GoANavigationLink, GoANotification, GoAPageBlock, GoARadioGroup, GoARadioItem, GoASkeleton, GoASpinner, GoASuccessBadge, GoATextArea, GoAWarningBadge };
@@ -2,11 +2,7 @@
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@abgov/web-components'), require('react/jsx-runtime'), require('react')) :
3
3
  typeof define === 'function' && define.amd ? define(['exports', '@abgov/web-components', 'react/jsx-runtime', 'react'], factory) :
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ReactComponents = {}, null, global.jsxRuntime, global.React));
5
- })(this, (function (exports, webComponents, jsxRuntime, React) { 'use strict';
6
-
7
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
-
9
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
5
+ })(this, (function (exports, webComponents, jsxRuntime, react) { 'use strict';
10
6
 
11
7
  /*! *****************************************************************************
12
8
  Copyright (c) Microsoft Corporation.
@@ -58,6 +54,54 @@
58
54
  }), void 0);
59
55
  };
60
56
 
57
+ var GoAAppFooter = function GoAAppFooter(_a) {
58
+ var id = _a.id,
59
+ appUrl = _a.appUrl,
60
+ title = _a.title,
61
+ copyrightUrl = _a.copyrightUrl,
62
+ copyrightText = _a.copyrightText,
63
+ children = _a.children;
64
+ return jsxRuntime.jsx("goa-app-footer", __assign({
65
+ id: id,
66
+ appurl: appUrl,
67
+ title: title,
68
+ copyrighturl: copyrightUrl,
69
+ copyrighttext: copyrightText
70
+ }, {
71
+ children: children
72
+ }), void 0);
73
+ };
74
+
75
+ var GoAMetaLink = function GoAMetaLink(_a) {
76
+ var footerId = _a.footerId,
77
+ url = _a.url,
78
+ title = _a.title,
79
+ children = _a.children;
80
+ return jsxRuntime.jsx("goa-meta-link", __assign({
81
+ footerid: footerId,
82
+ url: url,
83
+ title: title
84
+ }, {
85
+ children: children
86
+ }), void 0);
87
+ };
88
+
89
+ var GoANavigationLink = function GoANavigationLink(_a) {
90
+ var footerId = _a.footerId,
91
+ url = _a.url,
92
+ title = _a.title,
93
+ section = _a.section,
94
+ children = _a.children;
95
+ return jsxRuntime.jsx("goa-navigation-link", __assign({
96
+ footerid: footerId,
97
+ url: url,
98
+ title: title,
99
+ section: section
100
+ }, {
101
+ children: children
102
+ }), void 0);
103
+ };
104
+
61
105
  var GoABadge = function GoABadge(_a) {
62
106
  var type = _a.type,
63
107
  content = _a.content,
@@ -153,8 +197,8 @@
153
197
  variant = _e === void 0 ? 'default' : _e,
154
198
  children = _a.children,
155
199
  onClick = _a.onClick;
156
- var el = React.useRef(null);
157
- React.useEffect(function () {
200
+ var el = react.useRef(null);
201
+ react.useEffect(function () {
158
202
  if (!el.current) {
159
203
  return;
160
204
  }
@@ -220,8 +264,8 @@
220
264
  text = _a.text,
221
265
  children = _a.children,
222
266
  onChange = _a.onChange;
223
- var el = React.useRef(null);
224
- React.useEffect(function () {
267
+ var el = react.useRef(null);
268
+ react.useEffect(function () {
225
269
  if (!el.current) {
226
270
  return;
227
271
  }
@@ -252,6 +296,37 @@
252
296
  }), void 0);
253
297
  };
254
298
 
299
+ var GoAChip = function GoAChip(_a) {
300
+ var _b = _a.leadingIcon,
301
+ leadingIcon = _b === void 0 ? "" : _b,
302
+ _c = _a.error,
303
+ error = _c === void 0 ? false : _c,
304
+ content = _a.content,
305
+ onDeleteIconClick = _a.onDeleteIconClick;
306
+ var el = react.useRef(null);
307
+ react.useEffect(function () {
308
+ if (!el.current) return;
309
+ if (!onDeleteIconClick) return;
310
+ var current = el.current;
311
+
312
+ var listener = function listener(e) {
313
+ onDeleteIconClick();
314
+ };
315
+
316
+ current.addEventListener('_onDeleteIconClick', listener);
317
+ return function () {
318
+ current.removeEventListener('_onDeleteIconClick', listener);
319
+ };
320
+ }, [el, onDeleteIconClick]);
321
+ return jsxRuntime.jsx("goa-chip", {
322
+ ref: el,
323
+ leadingicon: leadingIcon,
324
+ error: error,
325
+ deletable: !!onDeleteIconClick,
326
+ content: content
327
+ }, void 0);
328
+ };
329
+
255
330
  var GoACircularProgress = function GoACircularProgress(_a) {
256
331
  var type = _a.type,
257
332
  visible = _a.visible,
@@ -304,8 +379,8 @@
304
379
  };
305
380
 
306
381
  var GoADropdown = function GoADropdown(props) {
307
- var el = React.useRef(null);
308
- React.useEffect(function () {
382
+ var el = react.useRef(null);
383
+ react.useEffect(function () {
309
384
  if (!el.current) {
310
385
  return;
311
386
  }
@@ -343,31 +418,11 @@
343
418
 
344
419
  var GoAFlexRow = function GoAFlexRow(_a) {
345
420
  var gap = _a.gap,
346
- minWidth = _a.minWidth,
347
421
  children = _a.children;
348
- var style = {
349
- gap: gap === 'small' ? '1rem' : gap === 'medium' ? '2rem' : gap === 'large' ? '3rem' : '0'
350
- };
351
-
352
- var getChildren = function getChildren() {
353
- if (!children) {
354
- return null;
355
- }
356
-
357
- return React__default["default"].Children.map(children, function (child) {
358
- return /*#__PURE__*/React__default["default"].cloneElement(child, {
359
- style: __assign({
360
- flexBasis: minWidth
361
- }, child.props.style)
362
- });
363
- });
364
- };
365
-
366
- return jsxRuntime.jsx("div", __assign({
367
- className: "goa-flex-row",
368
- style: style
422
+ return jsxRuntime.jsx("goa-flex-row", __assign({
423
+ gap: gap
369
424
  }, {
370
- children: getChildren()
425
+ children: children
371
426
  }), void 0);
372
427
  };
373
428
 
@@ -431,8 +486,8 @@
431
486
  size = _c === void 0 ? 'medium' : _c,
432
487
  title = _a.title,
433
488
  children = _a.children;
434
- var ref = React.useRef(null);
435
- React.useEffect(function () {
489
+ var ref = react.useRef(null);
490
+ react.useEffect(function () {
436
491
  if (!ref.current) {
437
492
  return;
438
493
  }
@@ -474,11 +529,14 @@
474
529
  value = _a.value,
475
530
  placeholder = _a.placeholder,
476
531
  error = _a.error,
532
+ width = _a.width,
533
+ showCounter = _a.showCounter,
534
+ maxCharCount = _a.maxCharCount,
477
535
  testId = _a.testId,
478
536
  onTrailingIconClick = _a.onTrailingIconClick,
479
537
  onChange = _a.onChange;
480
- var ref = React.useRef(null);
481
- React.useEffect(function () {
538
+ var ref = react.useRef(null);
539
+ react.useEffect(function () {
482
540
  if (!ref.current) {
483
541
  return;
484
542
  }
@@ -518,6 +576,9 @@
518
576
  error: error,
519
577
  "data-testid": testId,
520
578
  value: value,
579
+ width: width,
580
+ showcounter: showCounter,
581
+ maxcharcount: maxCharCount,
521
582
  handletrailingiconclick: !!onTrailingIconClick
522
583
  }, void 0);
523
584
  };
@@ -617,8 +678,8 @@
617
678
  width = _a.width,
618
679
  actions = _a.actions,
619
680
  onClose = _a.onClose;
620
- var el = React.useRef(null);
621
- React.useEffect(function () {
681
+ var el = react.useRef(null);
682
+ react.useEffect(function () {
622
683
  if (!el.current) {
623
684
  return;
624
685
  }
@@ -702,8 +763,8 @@
702
763
  error = _d === void 0 ? false : _d,
703
764
  testId = _a.testId,
704
765
  onChange = _a.onChange;
705
- var el = React.useRef(null);
706
- React.useEffect(function () {
766
+ var el = react.useRef(null);
767
+ react.useEffect(function () {
707
768
  if (!el.current) {
708
769
  return;
709
770
  }
@@ -767,11 +828,13 @@
767
828
  placeholder = _a.placeholder,
768
829
  rows = _a.rows,
769
830
  disabled = _a.disabled,
831
+ showCounter = _a.showCounter,
832
+ maxCharCount = _a.maxCharCount,
770
833
  testId = _a.testId,
771
834
  error = _a.error,
772
835
  onChange = _a.onChange;
773
- var el = React.useRef(null);
774
- React.useEffect(function () {
836
+ var el = react.useRef(null);
837
+ react.useEffect(function () {
775
838
  if (!el.current) {
776
839
  return;
777
840
  }
@@ -797,17 +860,21 @@
797
860
  value: value,
798
861
  rows: rows,
799
862
  disabled: disabled,
863
+ showcounter: showCounter,
864
+ maxcharcount: maxCharCount,
800
865
  error: error,
801
866
  "data-testid": testId
802
867
  }, void 0);
803
868
  };
804
869
 
870
+ exports.GoAAppFooter = GoAAppFooter;
805
871
  exports.GoAAppHeader = GoAAppHeader;
806
872
  exports.GoABadge = GoABadge;
807
873
  exports.GoAButton = GoAButton;
808
874
  exports.GoAButtonGroup = GoAButtonGroup;
809
875
  exports.GoACallout = GoACallout;
810
876
  exports.GoACheckbox = GoACheckbox;
877
+ exports.GoAChip = GoAChip;
811
878
  exports.GoACircularProgress = GoACircularProgress;
812
879
  exports.GoAContainer = GoAContainer;
813
880
  exports.GoADropdown = GoADropdown;
@@ -834,8 +901,10 @@
834
901
  exports.GoAInputText = GoAInputText;
835
902
  exports.GoAInputTime = GoAInputTime;
836
903
  exports.GoAInputUrl = GoAInputUrl;
904
+ exports.GoAMetaLink = GoAMetaLink;
837
905
  exports.GoAMicrositeHeader = GoAMicrositeHeader;
838
906
  exports.GoAModal = GoAModal;
907
+ exports.GoANavigationLink = GoANavigationLink;
839
908
  exports.GoANotification = GoANotification;
840
909
  exports.GoAPageBlock = GoAPageBlock;
841
910
  exports.GoARadioGroup = GoARadioGroup;