@abgov/react-components 4.0.0-alpha.1 → 4.0.0-alpha.12

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,26 @@
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
+ multicolumnsectionnames?: string;
9
+ }
10
+ declare global {
11
+ namespace JSX {
12
+ interface IntrinsicElements {
13
+ 'goa-app-footer': WCProps & React.HTMLAttributes<HTMLElement>;
14
+ }
15
+ }
16
+ }
17
+ export interface Props {
18
+ id?: string;
19
+ appUrl?: string;
20
+ title?: string;
21
+ copyrightUrl?: string;
22
+ copyrightText?: string;
23
+ multiColumnSectionNames?: string;
24
+ }
25
+ export declare const GoAAppFooter: FC<Props>;
26
+ 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;
@@ -1,6 +1,7 @@
1
1
  import React, { FC, ReactNode } from 'react';
2
2
  import './button.css';
3
- export declare type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'get-started';
3
+ import { GoAIconType } from '../icons';
4
+ export declare type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'start';
4
5
  export declare type ButtonSize = 'compact' | 'normal';
5
6
  export declare type ButtonVariant = 'default' | 'danger';
6
7
  interface WCProps {
@@ -9,6 +10,8 @@ interface WCProps {
9
10
  variant?: ButtonVariant;
10
11
  disabled?: boolean;
11
12
  title?: string;
13
+ leadingicon?: string;
14
+ trailingicon?: string;
12
15
  ref: React.RefObject<HTMLElement>;
13
16
  }
14
17
  declare global {
@@ -24,6 +27,8 @@ declare type ButtonProps = {
24
27
  size?: ButtonSize;
25
28
  variant?: ButtonVariant;
26
29
  disabled?: boolean;
30
+ leadingIcon?: GoAIconType;
31
+ trailingIcon?: GoAIconType;
27
32
  onClick: (e: any) => void;
28
33
  children: ReactNode;
29
34
  };
@@ -0,0 +1,24 @@
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
+ onClick?: () => void;
18
+ deletable?: boolean;
19
+ leadingIcon?: string;
20
+ error?: boolean;
21
+ content: string;
22
+ }
23
+ export declare const GoAChip: ({ leadingIcon, deletable, error, content, onClick }: Props) => JSX.Element;
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.1",
3
+ "version": "4.0.0-alpha.12",
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,59 @@ const GoAAppHeader = ({
15
15
  }), void 0);
16
16
  };
17
17
 
18
+ const GoAAppFooter = ({
19
+ id,
20
+ appUrl,
21
+ title,
22
+ copyrightUrl,
23
+ copyrightText,
24
+ multiColumnSectionNames,
25
+ children
26
+ }) => {
27
+ return jsx("goa-app-footer", Object.assign({
28
+ id: id,
29
+ appurl: appUrl,
30
+ title: title,
31
+ copyrighturl: copyrightUrl,
32
+ copyrighttext: copyrightText,
33
+ multicolumnsectionnames: multiColumnSectionNames
34
+ }, {
35
+ children: children
36
+ }), void 0);
37
+ };
38
+
39
+ const GoAMetaLink = ({
40
+ footerId,
41
+ url,
42
+ title,
43
+ children
44
+ }) => {
45
+ return jsx("goa-meta-link", Object.assign({
46
+ footerid: footerId,
47
+ url: url,
48
+ title: title
49
+ }, {
50
+ children: children
51
+ }), void 0);
52
+ };
53
+
54
+ const GoANavigationLink = ({
55
+ footerId,
56
+ url,
57
+ title,
58
+ section,
59
+ children
60
+ }) => {
61
+ return jsx("goa-navigation-link", Object.assign({
62
+ footerid: footerId,
63
+ url: url,
64
+ title: title,
65
+ section: section
66
+ }, {
67
+ children: children
68
+ }), void 0);
69
+ };
70
+
18
71
  const GoABadge = ({
19
72
  type,
20
73
  content,
@@ -109,6 +162,8 @@ const GoAButton = ({
109
162
  type: _type = 'primary',
110
163
  size: _size = 'normal',
111
164
  variant: _variant = 'default',
165
+ leadingIcon,
166
+ trailingIcon,
112
167
  children,
113
168
  onClick
114
169
  }) => {
@@ -136,13 +191,15 @@ const GoAButton = ({
136
191
  size: _size,
137
192
  variant: _variant,
138
193
  disabled: _disabled,
139
- title: title
194
+ title: title,
195
+ leadingicon: leadingIcon,
196
+ trailingicon: trailingIcon
140
197
  }, {
141
198
  children: children
142
199
  }), void 0);
143
200
  };
144
201
 
145
- var css_248z = "goa-button-group > goa-button ~ goa-button {\n margin: 0;\n margin-top: 0.25rem;\n}\n\n@media (min-width: 320px) {\n goa-button-group > goa-button ~ goa-button {\n margin: 0;\n /* margin-left: 0.25rem; */\n }\n}\n";
202
+ var css_248z = "goa-button-group > goa-button ~ goa-button {\n margin: 0;\n margin-top: 0.25rem;\n}\n\n@media (min-width: 480px) {\n goa-button-group > goa-button ~ goa-button {\n margin: 0;\n }\n}\n";
146
203
  styleInject(css_248z);
147
204
 
148
205
  const GoAButtonGroup = ({
@@ -213,6 +270,37 @@ const GoACheckbox = ({
213
270
  }), void 0);
214
271
  };
215
272
 
273
+ const GoAChip = ({
274
+ leadingIcon: _leadingIcon = "",
275
+ deletable: _deletable = false,
276
+ error: _error = false,
277
+ content,
278
+ onClick
279
+ }) => {
280
+ const el = useRef(null);
281
+ useEffect(() => {
282
+ if (!el.current) return;
283
+ if (!onClick) return;
284
+ const current = el.current;
285
+
286
+ const listener = e => {
287
+ onClick();
288
+ };
289
+
290
+ current.addEventListener('_click', listener);
291
+ return () => {
292
+ current.removeEventListener('_click', listener);
293
+ };
294
+ }, [el, onClick]);
295
+ return jsx("goa-chip", {
296
+ ref: el,
297
+ leadingicon: _leadingIcon,
298
+ error: _error,
299
+ deletable: _deletable,
300
+ content: content
301
+ }, void 0);
302
+ };
303
+
216
304
  const GoACircularProgress = ({
217
305
  type,
218
306
  visible,
@@ -306,32 +394,12 @@ const GoADropdown = props => {
306
394
 
307
395
  const GoAFlexRow = ({
308
396
  gap,
309
- minWidth,
310
397
  children
311
398
  }) => {
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
399
+ return jsx("goa-flex-row", Object.assign({
400
+ gap: gap
333
401
  }, {
334
- children: getChildren()
402
+ children: children
335
403
  }), void 0);
336
404
  };
337
405
 
@@ -465,6 +533,9 @@ const GoAInput = ({
465
533
  value,
466
534
  placeholder,
467
535
  error,
536
+ width,
537
+ showCounter,
538
+ maxCharCount,
468
539
  testId,
469
540
  onTrailingIconClick,
470
541
  onChange
@@ -511,6 +582,9 @@ const GoAInput = ({
511
582
  error: error,
512
583
  "data-testid": testId,
513
584
  value: value,
585
+ width: width,
586
+ showcounter: showCounter,
587
+ maxcharcount: maxCharCount,
514
588
  handletrailingiconclick: !!onTrailingIconClick
515
589
  }, void 0);
516
590
  };
@@ -607,6 +681,7 @@ const GoAModal = ({
607
681
  open,
608
682
  width,
609
683
  actions,
684
+ transition,
610
685
  onClose
611
686
  }) => {
612
687
  const el = useRef(null);
@@ -632,7 +707,8 @@ const GoAModal = ({
632
707
  open: open,
633
708
  closable: !!onClose,
634
709
  scrollable: true,
635
- width: width
710
+ width: width,
711
+ transition: transition
636
712
  }, {
637
713
  children: [actions && jsx("div", Object.assign({
638
714
  slot: "actions"
@@ -760,6 +836,8 @@ const GoATextArea = ({
760
836
  placeholder,
761
837
  rows,
762
838
  disabled,
839
+ showCounter,
840
+ maxCharCount,
763
841
  testId,
764
842
  error,
765
843
  onChange
@@ -792,9 +870,11 @@ const GoATextArea = ({
792
870
  value: value,
793
871
  rows: rows,
794
872
  disabled: disabled,
873
+ showcounter: showCounter,
874
+ maxcharcount: maxCharCount,
795
875
  error: error,
796
876
  "data-testid": testId
797
877
  }, void 0);
798
878
  };
799
879
 
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 };
880
+ 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,56 @@
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
+ multiColumnSectionNames = _a.multiColumnSectionNames,
64
+ children = _a.children;
65
+ return jsxRuntime.jsx("goa-app-footer", __assign({
66
+ id: id,
67
+ appurl: appUrl,
68
+ title: title,
69
+ copyrighturl: copyrightUrl,
70
+ copyrighttext: copyrightText,
71
+ multicolumnsectionnames: multiColumnSectionNames
72
+ }, {
73
+ children: children
74
+ }), void 0);
75
+ };
76
+
77
+ var GoAMetaLink = function GoAMetaLink(_a) {
78
+ var footerId = _a.footerId,
79
+ url = _a.url,
80
+ title = _a.title,
81
+ children = _a.children;
82
+ return jsxRuntime.jsx("goa-meta-link", __assign({
83
+ footerid: footerId,
84
+ url: url,
85
+ title: title
86
+ }, {
87
+ children: children
88
+ }), void 0);
89
+ };
90
+
91
+ var GoANavigationLink = function GoANavigationLink(_a) {
92
+ var footerId = _a.footerId,
93
+ url = _a.url,
94
+ title = _a.title,
95
+ section = _a.section,
96
+ children = _a.children;
97
+ return jsxRuntime.jsx("goa-navigation-link", __assign({
98
+ footerid: footerId,
99
+ url: url,
100
+ title: title,
101
+ section: section
102
+ }, {
103
+ children: children
104
+ }), void 0);
105
+ };
106
+
61
107
  var GoABadge = function GoABadge(_a) {
62
108
  var type = _a.type,
63
109
  content = _a.content,
@@ -151,10 +197,12 @@
151
197
  size = _d === void 0 ? 'normal' : _d,
152
198
  _e = _a.variant,
153
199
  variant = _e === void 0 ? 'default' : _e,
200
+ leadingIcon = _a.leadingIcon,
201
+ trailingIcon = _a.trailingIcon,
154
202
  children = _a.children,
155
203
  onClick = _a.onClick;
156
- var el = React.useRef(null);
157
- React.useEffect(function () {
204
+ var el = react.useRef(null);
205
+ react.useEffect(function () {
158
206
  if (!el.current) {
159
207
  return;
160
208
  }
@@ -177,13 +225,15 @@
177
225
  size: size,
178
226
  variant: variant,
179
227
  disabled: disabled,
180
- title: title
228
+ title: title,
229
+ leadingicon: leadingIcon,
230
+ trailingicon: trailingIcon
181
231
  }, {
182
232
  children: children
183
233
  }), void 0);
184
234
  };
185
235
 
186
- var css_248z = "goa-button-group > goa-button ~ goa-button {\n margin: 0;\n margin-top: 0.25rem;\n}\n\n@media (min-width: 320px) {\n goa-button-group > goa-button ~ goa-button {\n margin: 0;\n /* margin-left: 0.25rem; */\n }\n}\n";
236
+ var css_248z = "goa-button-group > goa-button ~ goa-button {\n margin: 0;\n margin-top: 0.25rem;\n}\n\n@media (min-width: 480px) {\n goa-button-group > goa-button ~ goa-button {\n margin: 0;\n }\n}\n";
187
237
  styleInject(css_248z);
188
238
 
189
239
  var GoAButtonGroup = function GoAButtonGroup(_a) {
@@ -220,8 +270,8 @@
220
270
  text = _a.text,
221
271
  children = _a.children,
222
272
  onChange = _a.onChange;
223
- var el = React.useRef(null);
224
- React.useEffect(function () {
273
+ var el = react.useRef(null);
274
+ react.useEffect(function () {
225
275
  if (!el.current) {
226
276
  return;
227
277
  }
@@ -252,6 +302,39 @@
252
302
  }), void 0);
253
303
  };
254
304
 
305
+ var GoAChip = function GoAChip(_a) {
306
+ var _b = _a.leadingIcon,
307
+ leadingIcon = _b === void 0 ? "" : _b,
308
+ _c = _a.deletable,
309
+ deletable = _c === void 0 ? false : _c,
310
+ _d = _a.error,
311
+ error = _d === void 0 ? false : _d,
312
+ content = _a.content,
313
+ onClick = _a.onClick;
314
+ var el = react.useRef(null);
315
+ react.useEffect(function () {
316
+ if (!el.current) return;
317
+ if (!onClick) return;
318
+ var current = el.current;
319
+
320
+ var listener = function listener(e) {
321
+ onClick();
322
+ };
323
+
324
+ current.addEventListener('_click', listener);
325
+ return function () {
326
+ current.removeEventListener('_click', listener);
327
+ };
328
+ }, [el, onClick]);
329
+ return jsxRuntime.jsx("goa-chip", {
330
+ ref: el,
331
+ leadingicon: leadingIcon,
332
+ error: error,
333
+ deletable: deletable,
334
+ content: content
335
+ }, void 0);
336
+ };
337
+
255
338
  var GoACircularProgress = function GoACircularProgress(_a) {
256
339
  var type = _a.type,
257
340
  visible = _a.visible,
@@ -304,8 +387,8 @@
304
387
  };
305
388
 
306
389
  var GoADropdown = function GoADropdown(props) {
307
- var el = React.useRef(null);
308
- React.useEffect(function () {
390
+ var el = react.useRef(null);
391
+ react.useEffect(function () {
309
392
  if (!el.current) {
310
393
  return;
311
394
  }
@@ -343,31 +426,11 @@
343
426
 
344
427
  var GoAFlexRow = function GoAFlexRow(_a) {
345
428
  var gap = _a.gap,
346
- minWidth = _a.minWidth,
347
429
  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
430
+ return jsxRuntime.jsx("goa-flex-row", __assign({
431
+ gap: gap
369
432
  }, {
370
- children: getChildren()
433
+ children: children
371
434
  }), void 0);
372
435
  };
373
436
 
@@ -431,8 +494,8 @@
431
494
  size = _c === void 0 ? 'medium' : _c,
432
495
  title = _a.title,
433
496
  children = _a.children;
434
- var ref = React.useRef(null);
435
- React.useEffect(function () {
497
+ var ref = react.useRef(null);
498
+ react.useEffect(function () {
436
499
  if (!ref.current) {
437
500
  return;
438
501
  }
@@ -474,11 +537,14 @@
474
537
  value = _a.value,
475
538
  placeholder = _a.placeholder,
476
539
  error = _a.error,
540
+ width = _a.width,
541
+ showCounter = _a.showCounter,
542
+ maxCharCount = _a.maxCharCount,
477
543
  testId = _a.testId,
478
544
  onTrailingIconClick = _a.onTrailingIconClick,
479
545
  onChange = _a.onChange;
480
- var ref = React.useRef(null);
481
- React.useEffect(function () {
546
+ var ref = react.useRef(null);
547
+ react.useEffect(function () {
482
548
  if (!ref.current) {
483
549
  return;
484
550
  }
@@ -518,6 +584,9 @@
518
584
  error: error,
519
585
  "data-testid": testId,
520
586
  value: value,
587
+ width: width,
588
+ showcounter: showCounter,
589
+ maxcharcount: maxCharCount,
521
590
  handletrailingiconclick: !!onTrailingIconClick
522
591
  }, void 0);
523
592
  };
@@ -616,9 +685,10 @@
616
685
  open = _a.open,
617
686
  width = _a.width,
618
687
  actions = _a.actions,
688
+ transition = _a.transition,
619
689
  onClose = _a.onClose;
620
- var el = React.useRef(null);
621
- React.useEffect(function () {
690
+ var el = react.useRef(null);
691
+ react.useEffect(function () {
622
692
  if (!el.current) {
623
693
  return;
624
694
  }
@@ -640,7 +710,8 @@
640
710
  open: open,
641
711
  closable: !!onClose,
642
712
  scrollable: true,
643
- width: width
713
+ width: width,
714
+ transition: transition
644
715
  }, {
645
716
  children: [actions && jsxRuntime.jsx("div", __assign({
646
717
  slot: "actions"
@@ -702,8 +773,8 @@
702
773
  error = _d === void 0 ? false : _d,
703
774
  testId = _a.testId,
704
775
  onChange = _a.onChange;
705
- var el = React.useRef(null);
706
- React.useEffect(function () {
776
+ var el = react.useRef(null);
777
+ react.useEffect(function () {
707
778
  if (!el.current) {
708
779
  return;
709
780
  }
@@ -767,11 +838,13 @@
767
838
  placeholder = _a.placeholder,
768
839
  rows = _a.rows,
769
840
  disabled = _a.disabled,
841
+ showCounter = _a.showCounter,
842
+ maxCharCount = _a.maxCharCount,
770
843
  testId = _a.testId,
771
844
  error = _a.error,
772
845
  onChange = _a.onChange;
773
- var el = React.useRef(null);
774
- React.useEffect(function () {
846
+ var el = react.useRef(null);
847
+ react.useEffect(function () {
775
848
  if (!el.current) {
776
849
  return;
777
850
  }
@@ -797,17 +870,21 @@
797
870
  value: value,
798
871
  rows: rows,
799
872
  disabled: disabled,
873
+ showcounter: showCounter,
874
+ maxcharcount: maxCharCount,
800
875
  error: error,
801
876
  "data-testid": testId
802
877
  }, void 0);
803
878
  };
804
879
 
880
+ exports.GoAAppFooter = GoAAppFooter;
805
881
  exports.GoAAppHeader = GoAAppHeader;
806
882
  exports.GoABadge = GoABadge;
807
883
  exports.GoAButton = GoAButton;
808
884
  exports.GoAButtonGroup = GoAButtonGroup;
809
885
  exports.GoACallout = GoACallout;
810
886
  exports.GoACheckbox = GoACheckbox;
887
+ exports.GoAChip = GoAChip;
811
888
  exports.GoACircularProgress = GoACircularProgress;
812
889
  exports.GoAContainer = GoAContainer;
813
890
  exports.GoADropdown = GoADropdown;
@@ -834,8 +911,10 @@
834
911
  exports.GoAInputText = GoAInputText;
835
912
  exports.GoAInputTime = GoAInputTime;
836
913
  exports.GoAInputUrl = GoAInputUrl;
914
+ exports.GoAMetaLink = GoAMetaLink;
837
915
  exports.GoAMicrositeHeader = GoAMicrositeHeader;
838
916
  exports.GoAModal = GoAModal;
917
+ exports.GoANavigationLink = GoANavigationLink;
839
918
  exports.GoANotification = GoANotification;
840
919
  exports.GoAPageBlock = GoAPageBlock;
841
920
  exports.GoARadioGroup = GoARadioGroup;