@abgov/react-components 4.0.0-alpha.2 → 4.0.0-alpha.5

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,6 +3,9 @@
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';
@@ -30,4 +33,4 @@ import type { GoAIconType } from './lib/icons';
30
33
  import type { GoABadgeType } from './lib/badge/badge';
31
34
  export type { GoAIconType };
32
35
  export type { GoABadgeType };
33
- export { 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, 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;
@@ -14,10 +14,11 @@ declare global {
14
14
  }
15
15
  }
16
16
  export interface Props {
17
- onDeleteIconClick?: () => void;
17
+ onClick?: () => void;
18
+ deletable?: boolean;
18
19
  leadingIcon?: string;
19
20
  error?: boolean;
20
21
  content: string;
21
22
  }
22
- export declare const GoAChip: ({ leadingIcon, error, content, onDeleteIconClick }: Props) => JSX.Element;
23
+ export declare const GoAChip: ({ leadingIcon, deletable, error, content, onClick }: Props) => JSX.Element;
23
24
  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 & {
@@ -6,6 +6,7 @@ interface WCProps {
6
6
  width?: string;
7
7
  closable?: boolean;
8
8
  scrollable?: boolean;
9
+ transition?: "fast" | "slow" | "none";
9
10
  }
10
11
  declare global {
11
12
  namespace JSX {
@@ -19,6 +20,7 @@ interface Props {
19
20
  width?: string;
20
21
  actions?: React.ReactElement;
21
22
  onClose?: () => void;
23
+ transition?: "fast" | "slow" | "none";
22
24
  open?: boolean;
23
25
  }
24
26
  export declare const GoAModal: 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.2",
3
+ "version": "4.0.0-alpha.5",
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,
@@ -215,30 +266,31 @@ const GoACheckbox = ({
215
266
 
216
267
  const GoAChip = ({
217
268
  leadingIcon: _leadingIcon = "",
269
+ deletable: _deletable = false,
218
270
  error: _error = false,
219
271
  content,
220
- onDeleteIconClick
272
+ onClick
221
273
  }) => {
222
274
  const el = useRef(null);
223
275
  useEffect(() => {
224
276
  if (!el.current) return;
225
- if (!onDeleteIconClick) return;
277
+ if (!onClick) return;
226
278
  const current = el.current;
227
279
 
228
280
  const listener = e => {
229
- onDeleteIconClick();
281
+ onClick();
230
282
  };
231
283
 
232
- current.addEventListener('_onDeleteIconClick', listener);
284
+ current.addEventListener('_click', listener);
233
285
  return () => {
234
- current.removeEventListener('_onDeleteIconClick', listener);
286
+ current.removeEventListener('_click', listener);
235
287
  };
236
- }, [el, onDeleteIconClick]);
288
+ }, [el, onClick]);
237
289
  return jsx("goa-chip", {
238
290
  ref: el,
239
291
  leadingicon: _leadingIcon,
240
292
  error: _error,
241
- deletable: !!onDeleteIconClick,
293
+ deletable: _deletable,
242
294
  content: content
243
295
  }, void 0);
244
296
  };
@@ -336,32 +388,12 @@ const GoADropdown = props => {
336
388
 
337
389
  const GoAFlexRow = ({
338
390
  gap,
339
- minWidth,
340
391
  children
341
392
  }) => {
342
- const style = {
343
- gap: gap === 'small' ? '1rem' : gap === 'medium' ? '2rem' : gap === 'large' ? '3rem' : '0'
344
- };
345
-
346
- const getChildren = () => {
347
- if (!children) {
348
- return null;
349
- }
350
-
351
- return React.Children.map(children, child => {
352
- return /*#__PURE__*/React.cloneElement(child, {
353
- style: Object.assign({
354
- flexBasis: minWidth
355
- }, child.props.style)
356
- });
357
- });
358
- };
359
-
360
- return jsx("div", Object.assign({
361
- className: "goa-flex-row",
362
- style: style
393
+ return jsx("goa-flex-row", Object.assign({
394
+ gap: gap
363
395
  }, {
364
- children: getChildren()
396
+ children: children
365
397
  }), void 0);
366
398
  };
367
399
 
@@ -495,6 +527,9 @@ const GoAInput = ({
495
527
  value,
496
528
  placeholder,
497
529
  error,
530
+ width,
531
+ showCounter,
532
+ maxCharCount,
498
533
  testId,
499
534
  onTrailingIconClick,
500
535
  onChange
@@ -541,6 +576,9 @@ const GoAInput = ({
541
576
  error: error,
542
577
  "data-testid": testId,
543
578
  value: value,
579
+ width: width,
580
+ showcounter: showCounter,
581
+ maxcharcount: maxCharCount,
544
582
  handletrailingiconclick: !!onTrailingIconClick
545
583
  }, void 0);
546
584
  };
@@ -637,6 +675,7 @@ const GoAModal = ({
637
675
  open,
638
676
  width,
639
677
  actions,
678
+ transition,
640
679
  onClose
641
680
  }) => {
642
681
  const el = useRef(null);
@@ -662,7 +701,8 @@ const GoAModal = ({
662
701
  open: open,
663
702
  closable: !!onClose,
664
703
  scrollable: true,
665
- width: width
704
+ width: width,
705
+ transition: transition
666
706
  }, {
667
707
  children: [actions && jsx("div", Object.assign({
668
708
  slot: "actions"
@@ -790,6 +830,8 @@ const GoATextArea = ({
790
830
  placeholder,
791
831
  rows,
792
832
  disabled,
833
+ showCounter,
834
+ maxCharCount,
793
835
  testId,
794
836
  error,
795
837
  onChange
@@ -822,9 +864,11 @@ const GoATextArea = ({
822
864
  value: value,
823
865
  rows: rows,
824
866
  disabled: disabled,
867
+ showcounter: showCounter,
868
+ maxcharcount: maxCharCount,
825
869
  error: error,
826
870
  "data-testid": testId
827
871
  }, void 0);
828
872
  };
829
873
 
830
- export { 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, GoAMicrositeHeader, GoAModal, GoANotification, GoAPageBlock, GoARadioGroup, GoARadioItem, GoASkeleton, GoASpinner, GoASuccessBadge, GoATextArea, GoAWarningBadge };
874
+ 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
  }
@@ -255,30 +299,32 @@
255
299
  var GoAChip = function GoAChip(_a) {
256
300
  var _b = _a.leadingIcon,
257
301
  leadingIcon = _b === void 0 ? "" : _b,
258
- _c = _a.error,
259
- error = _c === void 0 ? false : _c,
302
+ _c = _a.deletable,
303
+ deletable = _c === void 0 ? false : _c,
304
+ _d = _a.error,
305
+ error = _d === void 0 ? false : _d,
260
306
  content = _a.content,
261
- onDeleteIconClick = _a.onDeleteIconClick;
262
- var el = React.useRef(null);
263
- React.useEffect(function () {
307
+ onClick = _a.onClick;
308
+ var el = react.useRef(null);
309
+ react.useEffect(function () {
264
310
  if (!el.current) return;
265
- if (!onDeleteIconClick) return;
311
+ if (!onClick) return;
266
312
  var current = el.current;
267
313
 
268
314
  var listener = function listener(e) {
269
- onDeleteIconClick();
315
+ onClick();
270
316
  };
271
317
 
272
- current.addEventListener('_onDeleteIconClick', listener);
318
+ current.addEventListener('_click', listener);
273
319
  return function () {
274
- current.removeEventListener('_onDeleteIconClick', listener);
320
+ current.removeEventListener('_click', listener);
275
321
  };
276
- }, [el, onDeleteIconClick]);
322
+ }, [el, onClick]);
277
323
  return jsxRuntime.jsx("goa-chip", {
278
324
  ref: el,
279
325
  leadingicon: leadingIcon,
280
326
  error: error,
281
- deletable: !!onDeleteIconClick,
327
+ deletable: deletable,
282
328
  content: content
283
329
  }, void 0);
284
330
  };
@@ -335,8 +381,8 @@
335
381
  };
336
382
 
337
383
  var GoADropdown = function GoADropdown(props) {
338
- var el = React.useRef(null);
339
- React.useEffect(function () {
384
+ var el = react.useRef(null);
385
+ react.useEffect(function () {
340
386
  if (!el.current) {
341
387
  return;
342
388
  }
@@ -374,31 +420,11 @@
374
420
 
375
421
  var GoAFlexRow = function GoAFlexRow(_a) {
376
422
  var gap = _a.gap,
377
- minWidth = _a.minWidth,
378
423
  children = _a.children;
379
- var style = {
380
- gap: gap === 'small' ? '1rem' : gap === 'medium' ? '2rem' : gap === 'large' ? '3rem' : '0'
381
- };
382
-
383
- var getChildren = function getChildren() {
384
- if (!children) {
385
- return null;
386
- }
387
-
388
- return React__default["default"].Children.map(children, function (child) {
389
- return /*#__PURE__*/React__default["default"].cloneElement(child, {
390
- style: __assign({
391
- flexBasis: minWidth
392
- }, child.props.style)
393
- });
394
- });
395
- };
396
-
397
- return jsxRuntime.jsx("div", __assign({
398
- className: "goa-flex-row",
399
- style: style
424
+ return jsxRuntime.jsx("goa-flex-row", __assign({
425
+ gap: gap
400
426
  }, {
401
- children: getChildren()
427
+ children: children
402
428
  }), void 0);
403
429
  };
404
430
 
@@ -462,8 +488,8 @@
462
488
  size = _c === void 0 ? 'medium' : _c,
463
489
  title = _a.title,
464
490
  children = _a.children;
465
- var ref = React.useRef(null);
466
- React.useEffect(function () {
491
+ var ref = react.useRef(null);
492
+ react.useEffect(function () {
467
493
  if (!ref.current) {
468
494
  return;
469
495
  }
@@ -505,11 +531,14 @@
505
531
  value = _a.value,
506
532
  placeholder = _a.placeholder,
507
533
  error = _a.error,
534
+ width = _a.width,
535
+ showCounter = _a.showCounter,
536
+ maxCharCount = _a.maxCharCount,
508
537
  testId = _a.testId,
509
538
  onTrailingIconClick = _a.onTrailingIconClick,
510
539
  onChange = _a.onChange;
511
- var ref = React.useRef(null);
512
- React.useEffect(function () {
540
+ var ref = react.useRef(null);
541
+ react.useEffect(function () {
513
542
  if (!ref.current) {
514
543
  return;
515
544
  }
@@ -549,6 +578,9 @@
549
578
  error: error,
550
579
  "data-testid": testId,
551
580
  value: value,
581
+ width: width,
582
+ showcounter: showCounter,
583
+ maxcharcount: maxCharCount,
552
584
  handletrailingiconclick: !!onTrailingIconClick
553
585
  }, void 0);
554
586
  };
@@ -647,9 +679,10 @@
647
679
  open = _a.open,
648
680
  width = _a.width,
649
681
  actions = _a.actions,
682
+ transition = _a.transition,
650
683
  onClose = _a.onClose;
651
- var el = React.useRef(null);
652
- React.useEffect(function () {
684
+ var el = react.useRef(null);
685
+ react.useEffect(function () {
653
686
  if (!el.current) {
654
687
  return;
655
688
  }
@@ -671,7 +704,8 @@
671
704
  open: open,
672
705
  closable: !!onClose,
673
706
  scrollable: true,
674
- width: width
707
+ width: width,
708
+ transition: transition
675
709
  }, {
676
710
  children: [actions && jsxRuntime.jsx("div", __assign({
677
711
  slot: "actions"
@@ -733,8 +767,8 @@
733
767
  error = _d === void 0 ? false : _d,
734
768
  testId = _a.testId,
735
769
  onChange = _a.onChange;
736
- var el = React.useRef(null);
737
- React.useEffect(function () {
770
+ var el = react.useRef(null);
771
+ react.useEffect(function () {
738
772
  if (!el.current) {
739
773
  return;
740
774
  }
@@ -798,11 +832,13 @@
798
832
  placeholder = _a.placeholder,
799
833
  rows = _a.rows,
800
834
  disabled = _a.disabled,
835
+ showCounter = _a.showCounter,
836
+ maxCharCount = _a.maxCharCount,
801
837
  testId = _a.testId,
802
838
  error = _a.error,
803
839
  onChange = _a.onChange;
804
- var el = React.useRef(null);
805
- React.useEffect(function () {
840
+ var el = react.useRef(null);
841
+ react.useEffect(function () {
806
842
  if (!el.current) {
807
843
  return;
808
844
  }
@@ -828,11 +864,14 @@
828
864
  value: value,
829
865
  rows: rows,
830
866
  disabled: disabled,
867
+ showcounter: showCounter,
868
+ maxcharcount: maxCharCount,
831
869
  error: error,
832
870
  "data-testid": testId
833
871
  }, void 0);
834
872
  };
835
873
 
874
+ exports.GoAAppFooter = GoAAppFooter;
836
875
  exports.GoAAppHeader = GoAAppHeader;
837
876
  exports.GoABadge = GoABadge;
838
877
  exports.GoAButton = GoAButton;
@@ -866,8 +905,10 @@
866
905
  exports.GoAInputText = GoAInputText;
867
906
  exports.GoAInputTime = GoAInputTime;
868
907
  exports.GoAInputUrl = GoAInputUrl;
908
+ exports.GoAMetaLink = GoAMetaLink;
869
909
  exports.GoAMicrositeHeader = GoAMicrositeHeader;
870
910
  exports.GoAModal = GoAModal;
911
+ exports.GoANavigationLink = GoANavigationLink;
871
912
  exports.GoANotification = GoANotification;
872
913
  exports.GoAPageBlock = GoAPageBlock;
873
914
  exports.GoARadioGroup = GoARadioGroup;