@abgov/react-components 4.0.0-alpha.14 → 4.0.0-alpha.17

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.
@@ -1,931 +1,964 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@abgov/web-components'), require('react/jsx-runtime'), require('react')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@abgov/web-components', 'react/jsx-runtime', 'react'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ReactComponents = {}, null, global.jsxRuntime, global.React));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@abgov/web-components'), require('react/jsx-runtime'), require('react')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@abgov/web-components', 'react/jsx-runtime', 'react'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.ReactComponents = {}, null, global.jsxRuntime, global.React));
5
5
  })(this, (function (exports, webComponents, jsxRuntime, react) { 'use strict';
6
6
 
7
- /*! *****************************************************************************
8
- Copyright (c) Microsoft Corporation.
7
+ var GoABadge = function GoABadge(_a) {
8
+ var type = _a.type,
9
+ content = _a.content,
10
+ icon = _a.icon,
11
+ testId = _a.testId;
12
+ return jsxRuntime.jsx("goa-badge", {
13
+ type: type,
14
+ content: content,
15
+ icon: icon,
16
+ testid: testId
17
+ }, void 0);
18
+ };
19
+ var GoAInfoBadge = function GoAInfoBadge(_a) {
20
+ var content = _a.content,
21
+ testId = _a.testId;
22
+ return jsxRuntime.jsx(GoABadge, {
23
+ type: "information",
24
+ icon: "information-circle",
25
+ content: content,
26
+ testId: testId
27
+ }, void 0);
28
+ };
29
+ var GoASuccessBadge = function GoASuccessBadge(_a) {
30
+ var content = _a.content,
31
+ testId = _a.testId;
32
+ return jsxRuntime.jsx(GoABadge, {
33
+ type: "success",
34
+ icon: "checkmark-circle",
35
+ content: content,
36
+ testId: testId
37
+ }, void 0);
38
+ };
39
+ var GoAWarningBadge = function GoAWarningBadge(_a) {
40
+ var content = _a.content,
41
+ testId = _a.testId;
42
+ return jsxRuntime.jsx(GoABadge, {
43
+ type: "warning",
44
+ icon: "warning",
45
+ content: content,
46
+ testId: testId
47
+ }, void 0);
48
+ };
49
+ var GoAEmergencyBadge = function GoAEmergencyBadge(_a) {
50
+ var content = _a.content,
51
+ testId = _a.testId;
52
+ return jsxRuntime.jsx(GoABadge, {
53
+ type: "emergency",
54
+ icon: "alert-circle",
55
+ content: content,
56
+ testId: testId
57
+ }, void 0);
58
+ };
59
+
60
+ /*! *****************************************************************************
61
+ Copyright (c) Microsoft Corporation.
9
62
 
10
- Permission to use, copy, modify, and/or distribute this software for any
11
- purpose with or without fee is hereby granted.
63
+ Permission to use, copy, modify, and/or distribute this software for any
64
+ purpose with or without fee is hereby granted.
12
65
 
13
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
- PERFORMANCE OF THIS SOFTWARE.
20
- ***************************************************************************** */
66
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
67
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
68
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
69
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
70
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
71
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
72
+ PERFORMANCE OF THIS SOFTWARE.
73
+ ***************************************************************************** */
21
74
 
22
- var __assign = function() {
23
- __assign = Object.assign || function __assign(t) {
24
- for (var s, i = 1, n = arguments.length; i < n; i++) {
25
- s = arguments[i];
26
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
27
- }
28
- return t;
29
- };
30
- return __assign.apply(this, arguments);
31
- };
75
+ var __assign = function() {
76
+ __assign = Object.assign || function __assign(t) {
77
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
78
+ s = arguments[i];
79
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
80
+ }
81
+ return t;
82
+ };
83
+ return __assign.apply(this, arguments);
84
+ };
32
85
 
33
- function __rest(s, e) {
34
- var t = {};
35
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
36
- t[p] = s[p];
37
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
38
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
39
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
40
- t[p[i]] = s[p[i]];
41
- }
42
- return t;
43
- }
86
+ function __rest(s, e) {
87
+ var t = {};
88
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
89
+ t[p] = s[p];
90
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
91
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
92
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
93
+ t[p[i]] = s[p[i]];
94
+ }
95
+ return t;
96
+ }
97
+
98
+ var GoAInput = function GoAInput(_a) {
99
+ var id = _a.id,
100
+ name = _a.name,
101
+ type = _a.type,
102
+ leadingIcon = _a.leadingIcon,
103
+ trailingIcon = _a.trailingIcon,
104
+ _b = _a.variant,
105
+ variant = _b === void 0 ? 'goa' : _b,
106
+ focused = _a.focused,
107
+ disabled = _a.disabled,
108
+ readonly = _a.readonly,
109
+ value = _a.value,
110
+ placeholder = _a.placeholder,
111
+ error = _a.error,
112
+ width = _a.width,
113
+ showCounter = _a.showCounter,
114
+ maxCharCount = _a.maxCharCount,
115
+ testId = _a.testId,
116
+ onTrailingIconClick = _a.onTrailingIconClick,
117
+ onChange = _a.onChange;
118
+ var ref = react.useRef(null);
119
+ react.useEffect(function () {
120
+ if (!ref.current) {
121
+ return;
122
+ }
44
123
 
45
- var GoAAppHeader = function GoAAppHeader(_a) {
46
- var title = _a.title,
47
- url = _a.url,
48
- children = _a.children;
49
- return jsxRuntime.jsx("goa-app-header", __assign({
50
- title: title,
51
- url: url
52
- }, {
53
- children: children
54
- }), void 0);
55
- };
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
-
107
- var GoABadge = function GoABadge(_a) {
108
- var type = _a.type,
109
- content = _a.content,
110
- icon = _a.icon,
111
- testId = _a.testId;
112
- return jsxRuntime.jsx("goa-badge", {
113
- type: type,
114
- content: content,
115
- icon: icon,
116
- testid: testId
117
- }, void 0);
118
- };
119
- var GoAInfoBadge = function GoAInfoBadge(_a) {
120
- var content = _a.content,
121
- testId = _a.testId;
122
- return jsxRuntime.jsx(GoABadge, {
123
- type: "information",
124
- icon: "information-circle",
125
- content: content,
126
- testId: testId
127
- }, void 0);
128
- };
129
- var GoASuccessBadge = function GoASuccessBadge(_a) {
130
- var content = _a.content,
131
- testId = _a.testId;
132
- return jsxRuntime.jsx(GoABadge, {
133
- type: "success",
134
- icon: "checkmark-circle",
135
- content: content,
136
- testId: testId
137
- }, void 0);
138
- };
139
- var GoAWarningBadge = function GoAWarningBadge(_a) {
140
- var content = _a.content,
141
- testId = _a.testId;
142
- return jsxRuntime.jsx(GoABadge, {
143
- type: "warning",
144
- icon: "warning",
145
- content: content,
146
- testId: testId
147
- }, void 0);
148
- };
149
- var GoAEmergencyBadge = function GoAEmergencyBadge(_a) {
150
- var content = _a.content,
151
- testId = _a.testId;
152
- return jsxRuntime.jsx(GoABadge, {
153
- type: "emergency",
154
- icon: "alert-circle",
155
- content: content,
156
- testId: testId
157
- }, void 0);
158
- };
159
-
160
- function styleInject(css, ref) {
161
- if ( ref === void 0 ) ref = {};
162
- var insertAt = ref.insertAt;
163
-
164
- if (!css || typeof document === 'undefined') { return; }
165
-
166
- var head = document.head || document.getElementsByTagName('head')[0];
167
- var style = document.createElement('style');
168
- style.type = 'text/css';
169
-
170
- if (insertAt === 'top') {
171
- if (head.firstChild) {
172
- head.insertBefore(style, head.firstChild);
173
- } else {
174
- head.appendChild(style);
175
- }
124
+ var current = ref.current;
125
+
126
+ var changeListener = function changeListener(e) {
127
+ var _a = e.detail,
128
+ name = _a.name,
129
+ value = _a.value;
130
+ onChange(name, value);
131
+ };
132
+
133
+ var clickListener = function clickListener(e) {
134
+ onTrailingIconClick === null || onTrailingIconClick === void 0 ? void 0 : onTrailingIconClick();
135
+ };
136
+
137
+ current.addEventListener('_change', changeListener);
138
+ current.addEventListener('_trailingIconClick', clickListener);
139
+ return function () {
140
+ current.removeEventListener('_change', changeListener);
141
+ current.removeEventListener('_trailingIconClick', clickListener);
142
+ };
143
+ }, [ref, onChange, onTrailingIconClick]);
144
+ return jsxRuntime.jsx("goa-input", {
145
+ ref: ref,
146
+ focused: focused,
147
+ type: type,
148
+ name: name,
149
+ id: id,
150
+ leadingicon: leadingIcon,
151
+ trailingicon: trailingIcon,
152
+ variant: variant,
153
+ disabled: disabled,
154
+ readonly: readonly,
155
+ placeholder: placeholder,
156
+ error: error,
157
+ "data-testid": testId,
158
+ value: value,
159
+ width: width,
160
+ showcounter: showCounter,
161
+ maxcharcount: maxCharCount,
162
+ handletrailingiconclick: !!onTrailingIconClick
163
+ }, void 0);
164
+ };
165
+ var GoAInputText = function GoAInputText(props) {
166
+ return jsxRuntime.jsx(GoAInput, __assign({}, props, {
167
+ type: "text"
168
+ }), void 0);
169
+ };
170
+ var GoAInputPassword = function GoAInputPassword(props) {
171
+ return jsxRuntime.jsx(GoAInput, __assign({}, props, {
172
+ type: "password"
173
+ }), void 0);
174
+ };
175
+ var GoAInputDate = function GoAInputDate(props) {
176
+ return jsxRuntime.jsx(GoAInput, __assign({}, props, {
177
+ type: "date"
178
+ }), void 0);
179
+ };
180
+ var GoAInputTime = function GoAInputTime(props) {
181
+ return jsxRuntime.jsx(GoAInput, __assign({}, props, {
182
+ type: "time"
183
+ }), void 0);
184
+ };
185
+ var GoAInputDateTime = function GoAInputDateTime(props) {
186
+ return jsxRuntime.jsx(GoAInput, __assign({}, props, {
187
+ type: "datetime-local"
188
+ }), void 0);
189
+ };
190
+ var GoAInputEmail = function GoAInputEmail(props) {
191
+ return jsxRuntime.jsx(GoAInput, __assign({}, props, {
192
+ type: "email"
193
+ }), void 0);
194
+ };
195
+ var GoAInputSearch = function GoAInputSearch(props) {
196
+ return jsxRuntime.jsx(GoAInput, __assign({}, props, {
197
+ type: "search",
198
+ trailingIcon: "search"
199
+ }), void 0);
200
+ };
201
+ var GoAInputUrl = function GoAInputUrl(props) {
202
+ return jsxRuntime.jsx(GoAInput, __assign({}, props, {
203
+ type: "url"
204
+ }), void 0);
205
+ };
206
+ var GoAInputTel = function GoAInputTel(props) {
207
+ return jsxRuntime.jsx(GoAInput, __assign({}, props, {
208
+ type: "tel"
209
+ }), void 0);
210
+ };
211
+ var GoAInputFile = function GoAInputFile(props) {
212
+ return jsxRuntime.jsx("input", {
213
+ id: props.id,
214
+ name: props.name,
215
+ type: "file",
216
+ onChange: function (e) {
217
+ return props.onChange(e.target.name, e.target.value);
218
+ },
219
+ style: {
220
+ backgroundColor: 'revert'
221
+ }
222
+ }, void 0);
223
+ };
224
+ var GoAInputMonth = function GoAInputMonth(props) {
225
+ return jsxRuntime.jsx(GoAInput, __assign({}, props, {
226
+ type: "month"
227
+ }), void 0);
228
+ };
229
+ var GoAInputNumber = function GoAInputNumber(props) {
230
+ return jsxRuntime.jsx(GoAInput, __assign({}, props, {
231
+ value: props.value.toString(),
232
+ type: "number"
233
+ }), void 0);
234
+ };
235
+ var GoAInputRange = function GoAInputRange(_a) {
236
+ _a.step;
237
+ var props = __rest(_a, ["step"]);
238
+
239
+ return jsxRuntime.jsx(GoAInput, __assign({}, props, {
240
+ type: "range"
241
+ }), void 0);
242
+ };
243
+
244
+ var GoAAppHeader = function GoAAppHeader(_a) {
245
+ var title = _a.title,
246
+ url = _a.url,
247
+ children = _a.children;
248
+ return jsxRuntime.jsx("goa-app-header", __assign({
249
+ title: title,
250
+ url: url
251
+ }, {
252
+ children: children
253
+ }), void 0);
254
+ };
255
+
256
+ var GoAAppFooter = function GoAAppFooter(_a) {
257
+ var id = _a.id,
258
+ appUrl = _a.appUrl,
259
+ title = _a.title,
260
+ copyrightUrl = _a.copyrightUrl,
261
+ copyrightText = _a.copyrightText,
262
+ multiColumnSectionNames = _a.multiColumnSectionNames,
263
+ children = _a.children;
264
+ return jsxRuntime.jsx("goa-app-footer", __assign({
265
+ id: id,
266
+ appurl: appUrl,
267
+ title: title,
268
+ copyrighturl: copyrightUrl,
269
+ copyrighttext: copyrightText,
270
+ multicolumnsectionnames: multiColumnSectionNames
271
+ }, {
272
+ children: children
273
+ }), void 0);
274
+ };
275
+
276
+ var GoAMetaLink = function GoAMetaLink(_a) {
277
+ var footerId = _a.footerId,
278
+ url = _a.url,
279
+ title = _a.title,
280
+ children = _a.children;
281
+ return jsxRuntime.jsx("goa-meta-link", __assign({
282
+ footerid: footerId,
283
+ url: url,
284
+ title: title
285
+ }, {
286
+ children: children
287
+ }), void 0);
288
+ };
289
+
290
+ var GoANavigationLink = function GoANavigationLink(_a) {
291
+ var footerId = _a.footerId,
292
+ url = _a.url,
293
+ title = _a.title,
294
+ section = _a.section,
295
+ children = _a.children;
296
+ return jsxRuntime.jsx("goa-navigation-link", __assign({
297
+ footerid: footerId,
298
+ url: url,
299
+ title: title,
300
+ section: section
301
+ }, {
302
+ children: children
303
+ }), void 0);
304
+ };
305
+
306
+ function styleInject(css, ref) {
307
+ if ( ref === void 0 ) ref = {};
308
+ var insertAt = ref.insertAt;
309
+
310
+ if (!css || typeof document === 'undefined') { return; }
311
+
312
+ var head = document.head || document.getElementsByTagName('head')[0];
313
+ var style = document.createElement('style');
314
+ style.type = 'text/css';
315
+
316
+ if (insertAt === 'top') {
317
+ if (head.firstChild) {
318
+ head.insertBefore(style, head.firstChild);
176
319
  } else {
177
320
  head.appendChild(style);
178
321
  }
322
+ } else {
323
+ head.appendChild(style);
324
+ }
179
325
 
180
- if (style.styleSheet) {
181
- style.styleSheet.cssText = css;
182
- } else {
183
- style.appendChild(document.createTextNode(css));
184
- }
326
+ if (style.styleSheet) {
327
+ style.styleSheet.cssText = css;
328
+ } else {
329
+ style.appendChild(document.createTextNode(css));
185
330
  }
331
+ }
332
+
333
+ var css_248z$1 = "goa-button + goa-button {\n margin-top: 1.5rem;\n}\n\n/* TODO: these margins need to match UI specs */\n@media (min-width: 480px) {\n goa-button + goa-button {\n margin-left: 1rem;\n }\n}\n";
334
+ styleInject(css_248z$1);
335
+
336
+ var GoAButton = function GoAButton(_a) {
337
+ var title = _a.title,
338
+ _b = _a.disabled,
339
+ disabled = _b === void 0 ? false : _b,
340
+ _c = _a.type,
341
+ type = _c === void 0 ? 'primary' : _c,
342
+ _d = _a.size,
343
+ size = _d === void 0 ? '' : _d,
344
+ _e = _a.variant,
345
+ variant = _e === void 0 ? '' : _e,
346
+ leadingIcon = _a.leadingIcon,
347
+ trailingIcon = _a.trailingIcon,
348
+ children = _a.children,
349
+ onClick = _a.onClick;
350
+ var el = react.useRef(null);
351
+ react.useEffect(function () {
352
+ if (!el.current) {
353
+ return;
354
+ }
186
355
 
187
- var css_248z$1 = "goa-button + goa-button {\n margin-top: 1.5rem;\n}\n\n/* TODO: these margins need to match UI specs */\n@media (min-width: 480px) {\n goa-button + goa-button {\n margin-left: 1rem;\n }\n}\n";
188
- styleInject(css_248z$1);
189
-
190
- var GoAButton = function GoAButton(_a) {
191
- var title = _a.title,
192
- _b = _a.disabled,
193
- disabled = _b === void 0 ? false : _b,
194
- _c = _a.type,
195
- type = _c === void 0 ? 'primary' : _c,
196
- _d = _a.size,
197
- size = _d === void 0 ? 'normal' : _d,
198
- _e = _a.variant,
199
- variant = _e === void 0 ? 'default' : _e,
200
- leadingIcon = _a.leadingIcon,
201
- trailingIcon = _a.trailingIcon,
202
- children = _a.children,
203
- onClick = _a.onClick;
204
- var el = react.useRef(null);
205
- react.useEffect(function () {
206
- if (!el.current) {
207
- return;
208
- }
356
+ var current = el.current;
357
+
358
+ var listener = function listener(e) {
359
+ onClick(e);
360
+ };
361
+
362
+ current.addEventListener('_click', listener);
363
+ return function () {
364
+ current.removeEventListener('_click', listener);
365
+ };
366
+ }, [el, onClick]);
367
+ return jsxRuntime.jsx("goa-button", __assign({
368
+ ref: el,
369
+ role: "button",
370
+ type: type,
371
+ size: size,
372
+ variant: variant,
373
+ disabled: disabled,
374
+ title: title,
375
+ leadingicon: leadingIcon,
376
+ trailingicon: trailingIcon
377
+ }, {
378
+ children: children
379
+ }), void 0);
380
+ };
381
+
382
+ 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";
383
+ styleInject(css_248z);
384
+
385
+ var GoAButtonGroup = function GoAButtonGroup(_a) {
386
+ var alignment = _a.alignment,
387
+ children = _a.children;
388
+ return jsxRuntime.jsx("goa-button-group", __assign({
389
+ alignment: alignment
390
+ }, {
391
+ children: children
392
+ }), void 0);
393
+ };
394
+
395
+ var GoACallout = function GoACallout(_a) {
396
+ var title = _a.title,
397
+ _b = _a.type,
398
+ type = _b === void 0 ? "information" : _b,
399
+ children = _a.children;
400
+ return jsxRuntime.jsx("goa-callout", __assign({
401
+ title: title,
402
+ type: type
403
+ }, {
404
+ children: children
405
+ }), void 0);
406
+ };
407
+
408
+ var GoACheckbox = function GoACheckbox(_a) {
409
+ var id = _a.id,
410
+ name = _a.name,
411
+ testId = _a.testId,
412
+ error = _a.error,
413
+ disabled = _a.disabled,
414
+ checked = _a.checked,
415
+ value = _a.value,
416
+ text = _a.text,
417
+ children = _a.children,
418
+ onChange = _a.onChange;
419
+ var el = react.useRef(null);
420
+ react.useEffect(function () {
421
+ if (!el.current) {
422
+ return;
423
+ }
209
424
 
210
- var current = el.current;
211
-
212
- var listener = function listener(e) {
213
- onClick(e);
214
- };
215
-
216
- current.addEventListener('_click', listener);
217
- return function () {
218
- current.removeEventListener('_click', listener);
219
- };
220
- }, [el, onClick]);
221
- return jsxRuntime.jsx("goa-button", __assign({
222
- ref: el,
223
- role: "button",
224
- type: type,
225
- size: size,
226
- variant: variant,
227
- disabled: disabled,
228
- title: title,
229
- leadingicon: leadingIcon,
230
- trailingicon: trailingIcon
425
+ var current = el.current;
426
+
427
+ var listener = function listener(e) {
428
+ onChange === null || onChange === void 0 ? void 0 : onChange(name, e.detail.checked, e.detail.value);
429
+ };
430
+
431
+ current.addEventListener('_change', listener);
432
+ return function () {
433
+ current.removeEventListener('_change', listener);
434
+ };
435
+ }, []);
436
+ return jsxRuntime.jsx("goa-checkbox", __assign({
437
+ "data-testid": testId,
438
+ ref: el,
439
+ id: id,
440
+ name: name,
441
+ error: error,
442
+ checked: checked,
443
+ disabled: disabled,
444
+ text: text,
445
+ value: value
446
+ }, {
447
+ children: children
448
+ }), void 0);
449
+ };
450
+
451
+ var GoAChip = function GoAChip(_a) {
452
+ var _b = _a.leadingIcon,
453
+ leadingIcon = _b === void 0 ? "" : _b,
454
+ _c = _a.deletable,
455
+ deletable = _c === void 0 ? false : _c,
456
+ _d = _a.error,
457
+ error = _d === void 0 ? false : _d,
458
+ content = _a.content,
459
+ onClick = _a.onClick;
460
+ var el = react.useRef(null);
461
+ react.useEffect(function () {
462
+ if (!el.current) return;
463
+ if (!onClick) return;
464
+ var current = el.current;
465
+
466
+ var listener = function listener(e) {
467
+ onClick();
468
+ };
469
+
470
+ current.addEventListener('_click', listener);
471
+ return function () {
472
+ current.removeEventListener('_click', listener);
473
+ };
474
+ }, [el, onClick]);
475
+ return jsxRuntime.jsx("goa-chip", {
476
+ ref: el,
477
+ leadingicon: leadingIcon,
478
+ error: error,
479
+ deletable: deletable,
480
+ content: content
481
+ }, void 0);
482
+ };
483
+
484
+ var GoACircularProgress = function GoACircularProgress(_a) {
485
+ var type = _a.type,
486
+ visible = _a.visible,
487
+ message = _a.message,
488
+ progress = _a.progress,
489
+ variant = _a.variant,
490
+ size = _a.size;
491
+ return jsxRuntime.jsx("goa-circular-progress", {
492
+ type: type,
493
+ visible: visible ? "true" : "false",
494
+ message: message,
495
+ progress: progress,
496
+ variant: variant,
497
+ size: size
498
+ }, void 0);
499
+ };
500
+
501
+ var GoAContainer = function GoAContainer(_a) {
502
+ var headingSize = _a.headingSize,
503
+ title = _a.title,
504
+ _b = _a.colored,
505
+ colored = _b === void 0 ? false : _b,
506
+ children = _a.children,
507
+ actions = _a.actions,
508
+ _c = _a.variant,
509
+ variant = _c === void 0 ? 'default' : _c;
510
+ return jsxRuntime.jsxs("goa-container", __assign({
511
+ variant: variant,
512
+ headingsize: headingSize,
513
+ colored: colored
514
+ }, {
515
+ children: [title && jsxRuntime.jsx("div", __assign({
516
+ slot: "title"
231
517
  }, {
232
- children: children
233
- }), void 0);
234
- };
235
-
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";
237
- styleInject(css_248z);
238
-
239
- var GoAButtonGroup = function GoAButtonGroup(_a) {
240
- var alignment = _a.alignment,
241
- children = _a.children;
242
- return jsxRuntime.jsx("goa-button-group", __assign({
243
- alignment: alignment
244
- }, {
245
- children: children
246
- }), void 0);
247
- };
248
-
249
- var GoACallout = function GoACallout(_a) {
250
- var title = _a.title,
251
- _b = _a.type,
252
- type = _b === void 0 ? "information" : _b,
253
- children = _a.children;
254
- return jsxRuntime.jsx("goa-callout", __assign({
255
- title: title,
256
- type: type
518
+ children: title
519
+ }), void 0), children, actions && jsxRuntime.jsx("div", __assign({
520
+ slot: "actions"
257
521
  }, {
258
- children: children
259
- }), void 0);
260
- };
261
-
262
- var GoACheckbox = function GoACheckbox(_a) {
263
- var id = _a.id,
264
- name = _a.name,
265
- testId = _a.testId,
266
- error = _a.error,
267
- disabled = _a.disabled,
268
- checked = _a.checked,
269
- value = _a.value,
270
- text = _a.text,
271
- children = _a.children,
272
- onChange = _a.onChange;
273
- var el = react.useRef(null);
274
- react.useEffect(function () {
275
- if (!el.current) {
276
- return;
277
- }
522
+ children: actions
523
+ }), void 0)]
524
+ }), void 0);
525
+ };
526
+
527
+ var GoADropdownOption = function GoADropdownOption(props) {
528
+ return jsxRuntime.jsx("goa-dropdown-item", __assign({
529
+ "data-testid": props.testId,
530
+ name: props.name,
531
+ value: props.value,
532
+ label: props.label
533
+ }, {
534
+ children: props.children
535
+ }), void 0);
536
+ };
537
+
538
+ var GoADropdown = function GoADropdown(props) {
539
+ var el = react.useRef(null);
540
+ react.useEffect(function () {
541
+ if (!el.current) {
542
+ return;
543
+ }
278
544
 
279
- var current = el.current;
280
-
281
- var listener = function listener(e) {
282
- onChange === null || onChange === void 0 ? void 0 : onChange(name, e.detail.checked, e.detail.value);
283
- };
284
-
285
- current.addEventListener('_change', listener);
286
- return function () {
287
- current.removeEventListener('_change', listener);
288
- };
289
- }, []);
290
- return jsxRuntime.jsx("goa-checkbox", __assign({
291
- "data-testid": testId,
292
- ref: el,
293
- id: id,
294
- name: name,
295
- error: error,
296
- checked: checked,
297
- disabled: disabled,
298
- text: text,
299
- value: value
300
- }, {
301
- children: children
302
- }), void 0);
303
- };
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
-
338
- var GoACircularProgress = function GoACircularProgress(_a) {
339
- var type = _a.type,
340
- visible = _a.visible,
341
- message = _a.message,
342
- progress = _a.progress,
343
- variant = _a.variant,
344
- size = _a.size;
345
- return jsxRuntime.jsx("goa-circular-progress", {
346
- type: type,
347
- visible: visible ? "true" : "false",
348
- message: message,
349
- progress: progress,
350
- variant: variant,
351
- size: size
352
- }, void 0);
353
- };
354
-
355
- var GoAContainer = function GoAContainer(_a) {
356
- var headingSize = _a.headingSize,
357
- title = _a.title,
358
- children = _a.children,
359
- actions = _a.actions,
360
- _b = _a.variant,
361
- variant = _b === void 0 ? 'default' : _b;
362
- return jsxRuntime.jsxs("goa-container", __assign({
363
- variant: variant,
364
- headingsize: headingSize
365
- }, {
366
- children: [title && jsxRuntime.jsx("div", __assign({
367
- slot: "title"
368
- }, {
369
- children: title
370
- }), void 0), children, actions && jsxRuntime.jsx("div", __assign({
371
- slot: "actions"
372
- }, {
373
- children: actions
374
- }), void 0)]
375
- }), void 0);
376
- };
377
-
378
- var GoADropdownOption = function GoADropdownOption(props) {
379
- return jsxRuntime.jsx("goa-dropdown-item", __assign({
380
- "data-testid": props.testId,
381
- name: props.name,
382
- value: props.value,
383
- label: props.label
384
- }, {
385
- children: props.children
386
- }), void 0);
387
- };
388
-
389
- var GoADropdown = function GoADropdown(props) {
390
- var el = react.useRef(null);
391
- react.useEffect(function () {
392
- if (!el.current) {
393
- return;
394
- }
545
+ var current = el.current;
546
+
547
+ var handler = function handler(state) {
548
+ var _a = state.detail,
549
+ name = _a.name,
550
+ value = _a.value,
551
+ values = _a.values;
552
+ props.onChange(name, props.multiselect ? values : value);
553
+ };
554
+
555
+ current.addEventListener('_change', handler);
556
+ return function () {
557
+ current.removeEventListener('_change', handler);
558
+ };
559
+ }, [el, props]);
560
+ return jsxRuntime.jsx("goa-dropdown", __assign({
561
+ ref: el,
562
+ name: props.name,
563
+ value: JSON.stringify(props.value),
564
+ leadingicon: props.leadingIcon,
565
+ maxheight: props.maxHeight,
566
+ placeholder: props.placeholder,
567
+ filterable: props.filterable,
568
+ disabled: props.disabled,
569
+ multiselect: props.multiselect,
570
+ error: props.error,
571
+ testid: props.testId,
572
+ width: props.width
573
+ }, {
574
+ children: props.children
575
+ }), void 0);
576
+ };
577
+
578
+ var GoAFlexRow = function GoAFlexRow(_a) {
579
+ var gap = _a.gap,
580
+ children = _a.children;
581
+ return jsxRuntime.jsx("goa-flex-row", __assign({
582
+ gap: gap
583
+ }, {
584
+ children: children
585
+ }), void 0);
586
+ };
587
+
588
+ var GoAFormItem = function GoAFormItem(_a) {
589
+ var children = _a.children,
590
+ helpText = _a.helpText,
591
+ error = _a.error,
592
+ optional = _a.optional,
593
+ label = _a.label;
594
+ return jsxRuntime.jsx("goa-form-item", __assign({
595
+ label: label,
596
+ error: error,
597
+ optional: optional,
598
+ helptext: helpText
599
+ }, {
600
+ children: children
601
+ }), void 0);
602
+ };
603
+
604
+ var GoAHeroBanner = function GoAHeroBanner(_a) {
605
+ var title = _a.title,
606
+ backgroundUrl = _a.backgroundUrl,
607
+ children = _a.children;
608
+ return jsxRuntime.jsx("goa-hero-banner", __assign({
609
+ title: title,
610
+ backgroundurl: backgroundUrl
611
+ }, {
612
+ children: children
613
+ }), void 0);
614
+ };
615
+
616
+ var GoAHeroBannerActions = function GoAHeroBannerActions(_a) {
617
+ var children = _a.children;
618
+ return jsxRuntime.jsx("div", __assign({
619
+ slot: "actions"
620
+ }, {
621
+ children: children
622
+ }), void 0);
623
+ };
624
+
625
+ function GoAIcon(_a) {
626
+ var type = _a.type,
627
+ _b = _a.theme,
628
+ theme = _b === void 0 ? 'outline' : _b,
629
+ _c = _a.size,
630
+ size = _c === void 0 ? 'medium' : _c;
631
+ return jsxRuntime.jsx("goa-icon", {
632
+ type: type,
633
+ theme: theme,
634
+ size: size
635
+ }, void 0);
636
+ }
637
+
638
+ var GoAIconButton = function GoAIconButton(_a) {
639
+ var type = _a.type,
640
+ disabled = _a.disabled,
641
+ _b = _a.variant,
642
+ variant = _b === void 0 ? 'primary' : _b,
643
+ onClick = _a.onClick,
644
+ _c = _a.size,
645
+ size = _c === void 0 ? 'medium' : _c,
646
+ title = _a.title,
647
+ children = _a.children;
648
+ var ref = react.useRef(null);
649
+ react.useEffect(function () {
650
+ if (!ref.current) {
651
+ return;
652
+ }
395
653
 
396
- var current = el.current;
397
-
398
- var handler = function handler(state) {
399
- var _a = state.detail,
400
- name = _a.name,
401
- values = _a.values;
402
- props.onChange(name, values);
403
- };
404
-
405
- current.addEventListener('_change', handler);
406
- return function () {
407
- current.removeEventListener('_change', handler);
408
- };
409
- }, [el, props]);
410
- return jsxRuntime.jsx("goa-dropdown", __assign({
411
- ref: el,
412
- name: props.name,
413
- value: JSON.stringify(props.value),
414
- leadingicon: props.leadingIcon,
415
- maxheight: props.maxHeight,
416
- placeholder: props.placeholder,
417
- filterable: props.filterable,
418
- disabled: props.disabled,
419
- multiselect: props.multiselect,
420
- error: props.error,
421
- testid: props.testId,
422
- width: props.width
423
- }, {
424
- children: props.children
425
- }), void 0);
426
- };
427
-
428
- var GoAFlexRow = function GoAFlexRow(_a) {
429
- var gap = _a.gap,
430
- children = _a.children;
431
- return jsxRuntime.jsx("goa-flex-row", __assign({
432
- gap: gap
433
- }, {
434
- children: children
435
- }), void 0);
436
- };
437
-
438
- var GoAFormItem = function GoAFormItem(_a) {
439
- var children = _a.children,
440
- helpText = _a.helpText,
441
- error = _a.error,
442
- optional = _a.optional,
443
- label = _a.label;
444
- return jsxRuntime.jsx("goa-form-item", __assign({
445
- label: label,
446
- error: error,
447
- optional: optional,
448
- helptext: helpText
449
- }, {
450
- children: children
451
- }), void 0);
452
- };
453
-
454
- var GoAHeroBanner = function GoAHeroBanner(_a) {
455
- var title = _a.title,
456
- backgroundUrl = _a.backgroundUrl,
457
- children = _a.children;
458
- return jsxRuntime.jsx("goa-hero-banner", __assign({
459
- title: title,
460
- backgroundurl: backgroundUrl
461
- }, {
462
- children: children
463
- }), void 0);
464
- };
654
+ var current = ref.current;
655
+
656
+ var listener = function listener(e) {
657
+ onClick();
658
+ };
659
+
660
+ current.addEventListener('_click', listener);
661
+ return function () {
662
+ current.removeEventListener('_click', listener);
663
+ };
664
+ }, [ref, onClick]);
665
+ return jsxRuntime.jsx("goa-icon-button", __assign({
666
+ ref: ref,
667
+ type: type,
668
+ disabled: disabled,
669
+ variant: variant,
670
+ size: size,
671
+ title: title
672
+ }, {
673
+ children: children
674
+ }), void 0);
675
+ };
676
+
677
+ var GoAMicrositeHeader = function GoAMicrositeHeader(_a) {
678
+ var level = _a.level,
679
+ version = _a.version,
680
+ feedbackUrl = _a.feedbackUrl;
681
+ return jsxRuntime.jsx("goa-microsite-header", {
682
+ level: level,
683
+ version: version,
684
+ feedbackurl: feedbackUrl
685
+ }, void 0);
686
+ };
687
+
688
+ var GoAModal = function GoAModal(_a) {
689
+ var heading = _a.heading,
690
+ children = _a.children,
691
+ open = _a.open,
692
+ width = _a.width,
693
+ actions = _a.actions,
694
+ transition = _a.transition,
695
+ onClose = _a.onClose;
696
+ var el = react.useRef(null);
697
+ react.useEffect(function () {
698
+ if (!el.current) {
699
+ return;
700
+ }
465
701
 
466
- var GoAHeroBannerActions = function GoAHeroBannerActions(_a) {
467
- var children = _a.children;
468
- return jsxRuntime.jsx("div", __assign({
702
+ var current = el.current;
703
+
704
+ var listener = function listener(e) {
705
+ onClose === null || onClose === void 0 ? void 0 : onClose();
706
+ };
707
+
708
+ current.addEventListener('_close', listener);
709
+ return function () {
710
+ current.removeEventListener('_close', listener);
711
+ };
712
+ }, [el, onClose]);
713
+ return jsxRuntime.jsxs("goa-modal", __assign({
714
+ ref: el,
715
+ heading: heading,
716
+ open: open,
717
+ closable: !!onClose,
718
+ scrollable: true,
719
+ width: width,
720
+ transition: transition
721
+ }, {
722
+ children: [actions && jsxRuntime.jsx("div", __assign({
469
723
  slot: "actions"
470
724
  }, {
471
- children: children
472
- }), void 0);
473
- };
474
-
475
- function GoAIcon(_a) {
476
- var type = _a.type,
477
- _b = _a.theme,
478
- theme = _b === void 0 ? 'outline' : _b,
479
- _c = _a.size,
480
- size = _c === void 0 ? 'medium' : _c;
481
- return jsxRuntime.jsx("goa-icon", {
482
- type: type,
483
- theme: theme,
484
- size: size
485
- }, void 0);
486
- }
487
-
488
- var GoAIconButton = function GoAIconButton(_a) {
489
- var type = _a.type,
490
- disabled = _a.disabled,
491
- _b = _a.variant,
492
- variant = _b === void 0 ? 'primary' : _b,
493
- onClick = _a.onClick,
494
- _c = _a.size,
495
- size = _c === void 0 ? 'medium' : _c,
496
- title = _a.title,
497
- children = _a.children;
498
- var ref = react.useRef(null);
499
- react.useEffect(function () {
500
- if (!ref.current) {
501
- return;
502
- }
503
-
504
- var current = ref.current;
505
-
506
- var listener = function listener(e) {
507
- onClick();
508
- };
509
-
510
- current.addEventListener('_click', listener);
511
- return function () {
512
- current.removeEventListener('_click', listener);
513
- };
514
- }, [ref, onClick]);
515
- return jsxRuntime.jsx("goa-icon-button", __assign({
516
- ref: ref,
517
- type: type,
518
- disabled: disabled,
519
- variant: variant,
520
- size: size,
521
- title: title
522
- }, {
523
- children: children
524
- }), void 0);
525
- };
526
-
527
- var GoAInput = function GoAInput(_a) {
528
- var id = _a.id,
529
- name = _a.name,
530
- type = _a.type,
531
- leadingIcon = _a.leadingIcon,
532
- trailingIcon = _a.trailingIcon,
533
- _b = _a.variant,
534
- variant = _b === void 0 ? 'goa' : _b,
535
- focused = _a.focused,
536
- disabled = _a.disabled,
537
- readonly = _a.readonly,
538
- value = _a.value,
539
- placeholder = _a.placeholder,
540
- error = _a.error,
541
- width = _a.width,
542
- showCounter = _a.showCounter,
543
- maxCharCount = _a.maxCharCount,
544
- testId = _a.testId,
545
- onTrailingIconClick = _a.onTrailingIconClick,
546
- onChange = _a.onChange;
547
- var ref = react.useRef(null);
548
- react.useEffect(function () {
549
- if (!ref.current) {
550
- return;
551
- }
552
-
553
- var current = ref.current;
554
-
555
- var changeListener = function changeListener(e) {
556
- var _a = e.detail,
557
- name = _a.name,
558
- value = _a.value;
559
- onChange(name, value);
560
- };
561
-
562
- var clickListener = function clickListener(e) {
563
- onTrailingIconClick === null || onTrailingIconClick === void 0 ? void 0 : onTrailingIconClick();
564
- };
565
-
566
- current.addEventListener('_change', changeListener);
567
- current.addEventListener('_trailingIconClick', clickListener);
568
- return function () {
569
- current.removeEventListener('_change', changeListener);
570
- current.removeEventListener('_trailingIconClick', clickListener);
571
- };
572
- }, [ref, onChange, onTrailingIconClick]);
573
- return jsxRuntime.jsx("goa-input", {
574
- ref: ref,
575
- focused: focused,
576
- type: type,
577
- name: name,
578
- id: id,
579
- leadingicon: leadingIcon,
580
- trailingicon: trailingIcon,
581
- variant: variant,
582
- disabled: disabled,
583
- readonly: readonly,
584
- placeholder: placeholder,
585
- error: error,
586
- "data-testid": testId,
587
- value: value,
588
- width: width,
589
- showcounter: showCounter,
590
- maxcharcount: maxCharCount,
591
- handletrailingiconclick: !!onTrailingIconClick
592
- }, void 0);
593
- };
594
- var GoAInputText = function GoAInputText(props) {
595
- return jsxRuntime.jsx(GoAInput, __assign({}, props, {
596
- type: "text"
597
- }), void 0);
598
- };
599
- var GoAInputPassword = function GoAInputPassword(props) {
600
- return jsxRuntime.jsx(GoAInput, __assign({}, props, {
601
- type: "password"
602
- }), void 0);
603
- };
604
- var GoAInputDate = function GoAInputDate(props) {
605
- return jsxRuntime.jsx(GoAInput, __assign({}, props, {
606
- type: "date"
607
- }), void 0);
608
- };
609
- var GoAInputTime = function GoAInputTime(props) {
610
- return jsxRuntime.jsx(GoAInput, __assign({}, props, {
611
- type: "time"
612
- }), void 0);
613
- };
614
- var GoAInputDateTime = function GoAInputDateTime(props) {
615
- return jsxRuntime.jsx(GoAInput, __assign({}, props, {
616
- type: "datetime-local"
617
- }), void 0);
618
- };
619
- var GoAInputEmail = function GoAInputEmail(props) {
620
- return jsxRuntime.jsx(GoAInput, __assign({}, props, {
621
- type: "email"
622
- }), void 0);
623
- };
624
- var GoAInputSearch = function GoAInputSearch(props) {
625
- return jsxRuntime.jsx(GoAInput, __assign({}, props, {
626
- type: "search",
627
- trailingIcon: "search"
628
- }), void 0);
629
- };
630
- var GoAInputUrl = function GoAInputUrl(props) {
631
- return jsxRuntime.jsx(GoAInput, __assign({}, props, {
632
- type: "url"
633
- }), void 0);
634
- };
635
- var GoAInputTel = function GoAInputTel(props) {
636
- return jsxRuntime.jsx(GoAInput, __assign({}, props, {
637
- type: "tel"
638
- }), void 0);
639
- };
640
- var GoAInputFile = function GoAInputFile(props) {
641
- return jsxRuntime.jsx("input", {
642
- id: props.id,
643
- name: props.name,
644
- type: "file",
645
- onChange: function (e) {
646
- return props.onChange(e.target.name, e.target.value);
647
- },
648
- style: {
649
- backgroundColor: 'revert'
650
- }
651
- }, void 0);
652
- };
653
- var GoAInputMonth = function GoAInputMonth(props) {
654
- return jsxRuntime.jsx(GoAInput, __assign({}, props, {
655
- type: "month"
656
- }), void 0);
657
- };
658
- var GoAInputNumber = function GoAInputNumber(props) {
659
- return jsxRuntime.jsx(GoAInput, __assign({}, props, {
660
- type: "number"
661
- }), void 0);
662
- };
663
- var GoAInputRange = function GoAInputRange(_a) {
664
- _a.step;
665
- var props = __rest(_a, ["step"]);
666
-
667
- return jsxRuntime.jsx(GoAInput, __assign({}, props, {
668
- type: "range"
669
- }), void 0);
670
- };
671
-
672
- var GoAMicrositeHeader = function GoAMicrositeHeader(_a) {
673
- var level = _a.level,
674
- version = _a.version,
675
- feedbackUrl = _a.feedbackUrl;
676
- return jsxRuntime.jsx("goa-microsite-header", {
677
- level: level,
678
- version: version,
679
- feedbackurl: feedbackUrl
680
- }, void 0);
681
- };
682
-
683
- var GoAModal = function GoAModal(_a) {
684
- var heading = _a.heading,
685
- children = _a.children,
686
- open = _a.open,
687
- width = _a.width,
688
- actions = _a.actions,
689
- transition = _a.transition,
690
- onClose = _a.onClose;
691
- var el = react.useRef(null);
692
- react.useEffect(function () {
693
- if (!el.current) {
694
- return;
695
- }
725
+ children: actions
726
+ }), void 0), children]
727
+ }), void 0);
728
+ };
729
+
730
+ var GoANotification = function GoANotification(_a) {
731
+ var _b = _a.type,
732
+ type = _b === void 0 ? "information" : _b,
733
+ children = _a.children;
734
+ return jsxRuntime.jsx("goa-notification", __assign({
735
+ type: type
736
+ }, {
737
+ children: children
738
+ }), void 0);
739
+ };
740
+
741
+ var GoAPageBlock = function GoAPageBlock(props) {
742
+ return jsxRuntime.jsx("goa-page-block", __assign({
743
+ width: props.width
744
+ }, {
745
+ children: props.children
746
+ }), void 0);
747
+ };
748
+
749
+ var GoARadioItem = function GoARadioItem(_a) {
750
+ var name = _a.name,
751
+ label = _a.label,
752
+ value = _a.value,
753
+ disabled = _a.disabled,
754
+ checked = _a.checked,
755
+ error = _a.error,
756
+ testId = _a.testId,
757
+ children = _a.children;
758
+ return jsxRuntime.jsx("goa-radio-item", __assign({
759
+ name: name,
760
+ label: label,
761
+ value: value,
762
+ error: error,
763
+ disabled: disabled,
764
+ checked: checked,
765
+ "data-testid": testId
766
+ }, {
767
+ children: children
768
+ }), void 0);
769
+ };
770
+
771
+ var GoARadioGroup = function GoARadioGroup(_a) {
772
+ var name = _a.name,
773
+ value = _a.value,
774
+ children = _a.children,
775
+ _b = _a.orientation,
776
+ orientation = _b === void 0 ? 'vertical' : _b,
777
+ _c = _a.disabled,
778
+ disabled = _c === void 0 ? false : _c,
779
+ _d = _a.error,
780
+ error = _d === void 0 ? false : _d,
781
+ testId = _a.testId,
782
+ onChange = _a.onChange;
783
+ var el = react.useRef(null);
784
+ react.useEffect(function () {
785
+ if (!el.current) {
786
+ return;
787
+ }
696
788
 
697
- var current = el.current;
698
-
699
- var listener = function listener(e) {
700
- onClose === null || onClose === void 0 ? void 0 : onClose();
701
- };
702
-
703
- current.addEventListener('_close', listener);
704
- return function () {
705
- current.removeEventListener('_close', listener);
706
- };
707
- }, [el, onClose]);
708
- return jsxRuntime.jsxs("goa-modal", __assign({
709
- ref: el,
710
- heading: heading,
711
- open: open,
712
- closable: !!onClose,
713
- scrollable: true,
714
- width: width,
715
- transition: transition
716
- }, {
717
- children: [actions && jsxRuntime.jsx("div", __assign({
718
- slot: "actions"
719
- }, {
720
- children: actions
721
- }), void 0), children]
722
- }), void 0);
723
- };
724
-
725
- var GoANotification = function GoANotification(_a) {
726
- var _b = _a.type,
727
- type = _b === void 0 ? "information" : _b,
728
- children = _a.children;
729
- return jsxRuntime.jsx("goa-notification", __assign({
730
- type: type
731
- }, {
732
- children: children
733
- }), void 0);
734
- };
735
-
736
- var GoAPageBlock = function GoAPageBlock(_a) {
737
- var children = _a.children;
738
- return jsxRuntime.jsx("goa-page-block", {
739
- children: children
740
- }, void 0);
741
- };
742
-
743
- var GoARadioItem = function GoARadioItem(_a) {
744
- var name = _a.name,
745
- label = _a.label,
746
- value = _a.value,
747
- disabled = _a.disabled,
748
- checked = _a.checked,
749
- error = _a.error,
750
- testId = _a.testId,
751
- children = _a.children;
752
- return jsxRuntime.jsx("goa-radio-item", __assign({
753
- name: name,
754
- label: label,
755
- value: value,
756
- error: error,
757
- disabled: disabled,
758
- checked: checked,
759
- "data-testid": testId
760
- }, {
761
- children: children
762
- }), void 0);
763
- };
764
-
765
- var GoARadioGroup = function GoARadioGroup(_a) {
766
- var name = _a.name,
767
- value = _a.value,
768
- children = _a.children,
769
- _b = _a.orientation,
770
- orientation = _b === void 0 ? 'vertical' : _b,
771
- _c = _a.disabled,
772
- disabled = _c === void 0 ? false : _c,
773
- _d = _a.error,
774
- error = _d === void 0 ? false : _d,
775
- testId = _a.testId,
776
- onChange = _a.onChange;
777
- var el = react.useRef(null);
778
- react.useEffect(function () {
779
- if (!el.current) {
789
+ var listener = function listener(e) {
790
+ if (!onChange) {
791
+ console.warn("Missing onChange function");
780
792
  return;
781
793
  }
782
794
 
783
- var listener = function listener(e) {
784
- if (!onChange) {
785
- console.warn("Missing onChange function");
786
- return;
787
- }
788
-
789
- onChange(name, e.detail.value);
790
- };
791
-
792
- var currentEl = el.current;
793
- currentEl.addEventListener("_change", listener);
794
- return function () {
795
- currentEl.removeEventListener("_change", listener);
796
- };
797
- }, []);
798
- return jsxRuntime.jsx("goa-radio-group", __assign({
799
- "data-testid": testId,
800
- ref: el,
801
- name: name,
802
- value: value,
803
- orientation: orientation,
804
- disabled: disabled,
805
- error: error
806
- }, {
807
- children: children
808
- }), void 0);
809
- };
810
-
811
- var GoASkeleton = function GoASkeleton(_a) {
812
- var type = _a.type,
813
- _b = _a.size,
814
- size = _b === void 0 ? 1 : _b;
815
- return jsxRuntime.jsx("goa-skeleton", {
816
- type: type,
817
- size: size
818
- }, void 0);
819
- };
820
-
821
- var GoASpinner = function GoASpinner(_a) {
822
- var type = _a.type,
823
- size = _a.size,
824
- progress = _a.progress,
825
- invert = _a.invert,
826
- testId = _a.testId;
827
- return jsxRuntime.jsx("goa-spinner", {
828
- type: type,
829
- size: size,
830
- progress: progress,
831
- invert: invert,
832
- testid: testId
833
- }, void 0);
834
- };
835
-
836
- var GoATextArea = function GoATextArea(_a) {
837
- var name = _a.name,
838
- value = _a.value,
839
- placeholder = _a.placeholder,
840
- rows = _a.rows,
841
- disabled = _a.disabled,
842
- showCounter = _a.showCounter,
843
- maxCharCount = _a.maxCharCount,
844
- testId = _a.testId,
845
- error = _a.error,
846
- onChange = _a.onChange;
847
- var el = react.useRef(null);
848
- react.useEffect(function () {
849
- if (!el.current) {
850
- return;
851
- }
795
+ onChange(name, e.detail.value);
796
+ };
797
+
798
+ var currentEl = el.current;
799
+ currentEl.addEventListener("_change", listener);
800
+ return function () {
801
+ currentEl.removeEventListener("_change", listener);
802
+ };
803
+ }, []);
804
+ return jsxRuntime.jsx("goa-radio-group", __assign({
805
+ "data-testid": testId,
806
+ ref: el,
807
+ name: name,
808
+ value: value,
809
+ orientation: orientation,
810
+ disabled: disabled,
811
+ error: error
812
+ }, {
813
+ children: children
814
+ }), void 0);
815
+ };
816
+
817
+ var GoASkeleton = function GoASkeleton(_a) {
818
+ var type = _a.type,
819
+ _b = _a.size,
820
+ size = _b === void 0 ? 1 : _b;
821
+ return jsxRuntime.jsx("goa-skeleton", {
822
+ type: type,
823
+ size: size
824
+ }, void 0);
825
+ };
826
+
827
+ var GoASpinner = function GoASpinner(_a) {
828
+ var type = _a.type,
829
+ size = _a.size,
830
+ progress = _a.progress,
831
+ invert = _a.invert,
832
+ testId = _a.testId;
833
+ return jsxRuntime.jsx("goa-spinner", {
834
+ type: type,
835
+ size: size,
836
+ progress: progress,
837
+ invert: invert,
838
+ testid: testId
839
+ }, void 0);
840
+ };
841
+
842
+ var GoATextArea = function GoATextArea(_a) {
843
+ var name = _a.name,
844
+ value = _a.value,
845
+ placeholder = _a.placeholder,
846
+ rows = _a.rows,
847
+ disabled = _a.disabled,
848
+ showCounter = _a.showCounter,
849
+ maxCharCount = _a.maxCharCount,
850
+ width = _a.width,
851
+ testId = _a.testId,
852
+ error = _a.error,
853
+ onChange = _a.onChange;
854
+ var el = react.useRef(null);
855
+ react.useEffect(function () {
856
+ if (!el.current) {
857
+ return;
858
+ }
852
859
 
853
- var current = el.current;
854
-
855
- var listener = function listener(e) {
856
- var _a = e.detail,
857
- name = _a.name,
858
- value = _a.value;
859
- onChange(name, value);
860
- };
861
-
862
- current.addEventListener('_change', listener);
863
- return function () {
864
- current.removeEventListener('_change', listener);
865
- };
866
- }, [el, onChange]);
867
- return jsxRuntime.jsx("goa-textarea", {
868
- ref: el,
869
- name: name,
870
- placeholder: placeholder,
871
- value: value,
872
- rows: rows,
873
- disabled: disabled,
874
- showcounter: showCounter,
875
- maxcharcount: maxCharCount,
876
- error: error,
877
- "data-testid": testId
878
- }, void 0);
879
- };
880
-
881
- exports.GoAAppFooter = GoAAppFooter;
882
- exports.GoAAppHeader = GoAAppHeader;
883
- exports.GoABadge = GoABadge;
884
- exports.GoAButton = GoAButton;
885
- exports.GoAButtonGroup = GoAButtonGroup;
886
- exports.GoACallout = GoACallout;
887
- exports.GoACheckbox = GoACheckbox;
888
- exports.GoAChip = GoAChip;
889
- exports.GoACircularProgress = GoACircularProgress;
890
- exports.GoAContainer = GoAContainer;
891
- exports.GoADropdown = GoADropdown;
892
- exports.GoADropdownOption = GoADropdownOption;
893
- exports.GoAEmergencyBadge = GoAEmergencyBadge;
894
- exports.GoAFlexRow = GoAFlexRow;
895
- exports.GoAFormItem = GoAFormItem;
896
- exports.GoAHeroBanner = GoAHeroBanner;
897
- exports.GoAHeroBannerActions = GoAHeroBannerActions;
898
- exports.GoAIcon = GoAIcon;
899
- exports.GoAIconButton = GoAIconButton;
900
- exports.GoAInfoBadge = GoAInfoBadge;
901
- exports.GoAInput = GoAInput;
902
- exports.GoAInputDate = GoAInputDate;
903
- exports.GoAInputDateTime = GoAInputDateTime;
904
- exports.GoAInputEmail = GoAInputEmail;
905
- exports.GoAInputFile = GoAInputFile;
906
- exports.GoAInputMonth = GoAInputMonth;
907
- exports.GoAInputNumber = GoAInputNumber;
908
- exports.GoAInputPassword = GoAInputPassword;
909
- exports.GoAInputRange = GoAInputRange;
910
- exports.GoAInputSearch = GoAInputSearch;
911
- exports.GoAInputTel = GoAInputTel;
912
- exports.GoAInputText = GoAInputText;
913
- exports.GoAInputTime = GoAInputTime;
914
- exports.GoAInputUrl = GoAInputUrl;
915
- exports.GoAMetaLink = GoAMetaLink;
916
- exports.GoAMicrositeHeader = GoAMicrositeHeader;
917
- exports.GoAModal = GoAModal;
918
- exports.GoANavigationLink = GoANavigationLink;
919
- exports.GoANotification = GoANotification;
920
- exports.GoAPageBlock = GoAPageBlock;
921
- exports.GoARadioGroup = GoARadioGroup;
922
- exports.GoARadioItem = GoARadioItem;
923
- exports.GoASkeleton = GoASkeleton;
924
- exports.GoASpinner = GoASpinner;
925
- exports.GoASuccessBadge = GoASuccessBadge;
926
- exports.GoATextArea = GoATextArea;
927
- exports.GoAWarningBadge = GoAWarningBadge;
928
-
929
- Object.defineProperty(exports, '__esModule', { value: true });
860
+ var current = el.current;
861
+
862
+ var listener = function listener(e) {
863
+ var _a = e.detail,
864
+ name = _a.name,
865
+ value = _a.value;
866
+ onChange(name, value);
867
+ };
868
+
869
+ current.addEventListener('_change', listener);
870
+ return function () {
871
+ current.removeEventListener('_change', listener);
872
+ };
873
+ }, [el, onChange]);
874
+ return jsxRuntime.jsx("goa-textarea", {
875
+ ref: el,
876
+ name: name,
877
+ placeholder: placeholder,
878
+ value: value,
879
+ rows: rows,
880
+ disabled: disabled,
881
+ showcounter: showCounter,
882
+ maxcharcount: maxCharCount,
883
+ width: width,
884
+ error: error,
885
+ "data-testid": testId
886
+ }, void 0);
887
+ };
888
+
889
+ var GoAFlexCol = function GoAFlexCol(_a) {
890
+ var gap = _a.gap,
891
+ children = _a.children;
892
+ return jsxRuntime.jsx("goa-flex-col", __assign({
893
+ gap: gap
894
+ }, {
895
+ children: children
896
+ }), void 0);
897
+ };
898
+
899
+ function GoAPage(props) {
900
+ return jsxRuntime.jsx("goa-page", {
901
+ children: props.children
902
+ }, void 0);
903
+ }
904
+
905
+ function GoADivider(props) {
906
+ return jsxRuntime.jsx("goa-divider", {
907
+ spacing: props.spacing
908
+ }, void 0);
909
+ }
910
+
911
+ exports.GoAAppFooter = GoAAppFooter;
912
+ exports.GoAAppHeader = GoAAppHeader;
913
+ exports.GoABadge = GoABadge;
914
+ exports.GoAButton = GoAButton;
915
+ exports.GoAButtonGroup = GoAButtonGroup;
916
+ exports.GoACallout = GoACallout;
917
+ exports.GoACheckbox = GoACheckbox;
918
+ exports.GoAChip = GoAChip;
919
+ exports.GoACircularProgress = GoACircularProgress;
920
+ exports.GoAContainer = GoAContainer;
921
+ exports.GoADivider = GoADivider;
922
+ exports.GoADropdown = GoADropdown;
923
+ exports.GoADropdownOption = GoADropdownOption;
924
+ exports.GoAEmergencyBadge = GoAEmergencyBadge;
925
+ exports.GoAFlexCol = GoAFlexCol;
926
+ exports.GoAFlexRow = GoAFlexRow;
927
+ exports.GoAFormItem = GoAFormItem;
928
+ exports.GoAHeroBanner = GoAHeroBanner;
929
+ exports.GoAHeroBannerActions = GoAHeroBannerActions;
930
+ exports.GoAIcon = GoAIcon;
931
+ exports.GoAIconButton = GoAIconButton;
932
+ exports.GoAInfoBadge = GoAInfoBadge;
933
+ exports.GoAInput = GoAInput;
934
+ exports.GoAInputDate = GoAInputDate;
935
+ exports.GoAInputDateTime = GoAInputDateTime;
936
+ exports.GoAInputEmail = GoAInputEmail;
937
+ exports.GoAInputFile = GoAInputFile;
938
+ exports.GoAInputMonth = GoAInputMonth;
939
+ exports.GoAInputNumber = GoAInputNumber;
940
+ exports.GoAInputPassword = GoAInputPassword;
941
+ exports.GoAInputRange = GoAInputRange;
942
+ exports.GoAInputSearch = GoAInputSearch;
943
+ exports.GoAInputTel = GoAInputTel;
944
+ exports.GoAInputText = GoAInputText;
945
+ exports.GoAInputTime = GoAInputTime;
946
+ exports.GoAInputUrl = GoAInputUrl;
947
+ exports.GoAMetaLink = GoAMetaLink;
948
+ exports.GoAMicrositeHeader = GoAMicrositeHeader;
949
+ exports.GoAModal = GoAModal;
950
+ exports.GoANavigationLink = GoANavigationLink;
951
+ exports.GoANotification = GoANotification;
952
+ exports.GoAPage = GoAPage;
953
+ exports.GoAPageBlock = GoAPageBlock;
954
+ exports.GoARadioGroup = GoARadioGroup;
955
+ exports.GoARadioItem = GoARadioItem;
956
+ exports.GoASkeleton = GoASkeleton;
957
+ exports.GoASpinner = GoASpinner;
958
+ exports.GoASuccessBadge = GoASuccessBadge;
959
+ exports.GoATextArea = GoATextArea;
960
+ exports.GoAWarningBadge = GoAWarningBadge;
961
+
962
+ Object.defineProperty(exports, '__esModule', { value: true });
930
963
 
931
964
  }));