@abgov/react-components 3.4.0-beta.7 → 4.0.0-alpha.1

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.
Files changed (76) hide show
  1. package/README.md +44 -97
  2. package/experimental/index.d.ts +0 -0
  3. package/experimental/package.json +1 -1
  4. package/experimental/react-components.esm.js +0 -2109
  5. package/experimental/react-components.umd.js +5 -2131
  6. package/index.d.ts +32 -16
  7. package/lib/app-header/app-header.d.ts +18 -0
  8. package/lib/badge/badge.d.ts +28 -0
  9. package/lib/button/button.d.ts +27 -35
  10. package/lib/button-group/button-group.d.ts +18 -0
  11. package/lib/callout/callout.d.ts +14 -23
  12. package/lib/card/card-actions.d.ts +16 -0
  13. package/lib/card/card-content.d.ts +13 -0
  14. package/lib/card/card-group.d.ts +16 -0
  15. package/lib/card/card-image.d.ts +18 -0
  16. package/lib/card/card.d.ts +18 -0
  17. package/lib/card/index.d.ts +5 -0
  18. package/lib/checkbox/checkbox.d.ts +27 -36
  19. package/lib/circular-progress/circular-progress.d.ts +29 -0
  20. package/lib/container/container.d.ts +23 -0
  21. package/lib/dropdown/dropdown-option.d.ts +21 -0
  22. package/lib/dropdown/dropdown.d.ts +37 -0
  23. package/lib/flex/index.d.ts +1 -0
  24. package/lib/flex/row.d.ts +7 -0
  25. package/lib/form/form-item.d.ts +22 -0
  26. package/lib/form/index.d.ts +1 -0
  27. package/lib/form/validators.d.ts +10 -0
  28. package/lib/hero-banner/hero-banner-actions.d.ts +4 -0
  29. package/lib/hero-banner/hero-banner.d.ts +18 -0
  30. package/lib/icons/icon-button.d.ts +27 -0
  31. package/lib/icons/icon.d.ts +37 -0
  32. package/lib/icons/index.d.ts +2 -0
  33. package/lib/input/input.d.ts +73 -0
  34. package/lib/microsite-header/microsite-header.d.ts +21 -0
  35. package/lib/modal/modal.d.ts +25 -0
  36. package/lib/notification/notification.d.ts +14 -35
  37. package/lib/page-block/page-block.d.ts +9 -0
  38. package/lib/radio-group/radio-group.d.ts +21 -44
  39. package/lib/radio-group/radio.d.ts +27 -0
  40. package/lib/skeleton/skeleton.d.ts +19 -0
  41. package/lib/spinner/spinner.d.ts +26 -0
  42. package/lib/textarea/textarea.d.ts +30 -0
  43. package/package.json +5 -4
  44. package/react-components.esm.js +741 -2619
  45. package/react-components.umd.js +775 -2638
  46. package/experimental/experimental/badge/badge.component.d.ts +0 -8
  47. package/experimental/experimental/common.d.ts +0 -3
  48. package/experimental/experimental/element-loader/element-loader.d.ts +0 -18
  49. package/experimental/experimental/form/container/form.button.component.d.ts +0 -7
  50. package/experimental/experimental/form/container/form.container.component.d.ts +0 -7
  51. package/experimental/experimental/form/container/form.item.component.d.ts +0 -18
  52. package/experimental/experimental/form/form.component.d.ts +0 -32
  53. package/experimental/experimental/form/formFieldValidator.d.ts +0 -4
  54. package/experimental/experimental/icons/icons.d.ts +0 -13
  55. package/experimental/experimental/index.d.ts +0 -10
  56. package/experimental/experimental/input/input.component.d.ts +0 -15
  57. package/experimental/experimental/modal/modal.component.d.ts +0 -44
  58. package/experimental/experimental/scrollable/scrollable.component.d.ts +0 -12
  59. package/experimental/experimental/skeleton/skeleton-element.d.ts +0 -8
  60. package/experimental/experimental/skeleton/skeleton-grid-column.d.ts +0 -9
  61. package/experimental/experimental/skeleton/skeleton-image-content.d.ts +0 -9
  62. package/experimental/experimental/skeleton/skeleton-titled-content.d.ts +0 -9
  63. package/lib/card/card.component.d.ts +0 -26
  64. package/lib/card-group/card.group.component.d.ts +0 -24
  65. package/lib/dropdown/dropdown.component.d.ts +0 -59
  66. package/lib/dropdown/dropdown.context.d.ts +0 -17
  67. package/lib/dropdown/option/option.component.d.ts +0 -10
  68. package/lib/dropdown/option-group/option-group.component.d.ts +0 -6
  69. package/lib/header/header.d.ts +0 -10
  70. package/lib/hero-banner/content/hero-banner-content.component.d.ts +0 -7
  71. package/lib/hero-banner/hero-banner.component.d.ts +0 -11
  72. package/lib/hero-banner/link/hero-banner-link.component.d.ts +0 -8
  73. package/lib/microsite-logo/microsite-logo.d.ts +0 -8
  74. package/lib/page-loader/page-loader.d.ts +0 -43
  75. package/lib/radio-group/radio/radio.d.ts +0 -17
  76. package/lib/radio-group/radio-group.context.d.ts +0 -6
@@ -1,2714 +1,851 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('classnames')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'react', 'classnames'], factory) :
4
- (global = global || self, factory(global.ReactComponents = {}, global.React, global.classnames));
5
- }(this, (function (exports, React, classnames) { 'use strict';
6
-
7
- var React__default = 'default' in React ? React['default'] : React;
8
- classnames = classnames && classnames.hasOwnProperty('default') ? classnames['default'] : classnames;
9
-
10
- function _defineProperty(obj, key, value) {
11
- if (key in obj) {
12
- Object.defineProperty(obj, key, {
13
- value: value,
14
- enumerable: true,
15
- configurable: true,
16
- writable: true
17
- });
18
- } else {
19
- obj[key] = value;
20
- }
21
-
22
- return obj;
23
- }
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
+ })(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);
10
+
11
+ /*! *****************************************************************************
12
+ Copyright (c) Microsoft Corporation.
13
+
14
+ Permission to use, copy, modify, and/or distribute this software for any
15
+ purpose with or without fee is hereby granted.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
18
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
19
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
20
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
21
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
22
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23
+ PERFORMANCE OF THIS SOFTWARE.
24
+ ***************************************************************************** */
25
+
26
+ var __assign = function() {
27
+ __assign = Object.assign || function __assign(t) {
28
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
29
+ s = arguments[i];
30
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
31
+ }
32
+ return t;
33
+ };
34
+ return __assign.apply(this, arguments);
35
+ };
36
+
37
+ function __rest(s, e) {
38
+ var t = {};
39
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
40
+ t[p] = s[p];
41
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
42
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
43
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
44
+ t[p[i]] = s[p[i]];
45
+ }
46
+ return t;
47
+ }
48
+
49
+ var GoAAppHeader = function GoAAppHeader(_a) {
50
+ var title = _a.title,
51
+ url = _a.url,
52
+ children = _a.children;
53
+ return jsxRuntime.jsx("goa-app-header", __assign({
54
+ title: title,
55
+ url: url
56
+ }, {
57
+ children: children
58
+ }), void 0);
59
+ };
24
60
 
25
- function ownKeys(object, enumerableOnly) {
26
- var keys = Object.keys(object);
61
+ var GoABadge = function GoABadge(_a) {
62
+ var type = _a.type,
63
+ content = _a.content,
64
+ icon = _a.icon,
65
+ testId = _a.testId;
66
+ return jsxRuntime.jsx("goa-badge", {
67
+ type: type,
68
+ content: content,
69
+ icon: icon,
70
+ testid: testId
71
+ }, void 0);
72
+ };
73
+ var GoAInfoBadge = function GoAInfoBadge(_a) {
74
+ var content = _a.content,
75
+ testId = _a.testId;
76
+ return jsxRuntime.jsx(GoABadge, {
77
+ type: "information",
78
+ icon: "information-circle",
79
+ content: content,
80
+ testId: testId
81
+ }, void 0);
82
+ };
83
+ var GoASuccessBadge = function GoASuccessBadge(_a) {
84
+ var content = _a.content,
85
+ testId = _a.testId;
86
+ return jsxRuntime.jsx(GoABadge, {
87
+ type: "success",
88
+ icon: "checkmark-circle",
89
+ content: content,
90
+ testId: testId
91
+ }, void 0);
92
+ };
93
+ var GoAWarningBadge = function GoAWarningBadge(_a) {
94
+ var content = _a.content,
95
+ testId = _a.testId;
96
+ return jsxRuntime.jsx(GoABadge, {
97
+ type: "warning",
98
+ icon: "warning",
99
+ content: content,
100
+ testId: testId
101
+ }, void 0);
102
+ };
103
+ var GoAEmergencyBadge = function GoAEmergencyBadge(_a) {
104
+ var content = _a.content,
105
+ testId = _a.testId;
106
+ return jsxRuntime.jsx(GoABadge, {
107
+ type: "emergency",
108
+ icon: "alert-circle",
109
+ content: content,
110
+ testId: testId
111
+ }, void 0);
112
+ };
27
113
 
28
- if (Object.getOwnPropertySymbols) {
29
- var symbols = Object.getOwnPropertySymbols(object);
30
- if (enumerableOnly) symbols = symbols.filter(function (sym) {
31
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
32
- });
33
- keys.push.apply(keys, symbols);
34
- }
114
+ function styleInject(css, ref) {
115
+ if ( ref === void 0 ) ref = {};
116
+ var insertAt = ref.insertAt;
35
117
 
36
- return keys;
37
- }
118
+ if (!css || typeof document === 'undefined') { return; }
38
119
 
39
- function _objectSpread2(target) {
40
- for (var i = 1; i < arguments.length; i++) {
41
- var source = arguments[i] != null ? arguments[i] : {};
120
+ var head = document.head || document.getElementsByTagName('head')[0];
121
+ var style = document.createElement('style');
122
+ style.type = 'text/css';
42
123
 
43
- if (i % 2) {
44
- ownKeys(Object(source), true).forEach(function (key) {
45
- _defineProperty(target, key, source[key]);
46
- });
47
- } else if (Object.getOwnPropertyDescriptors) {
48
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
124
+ if (insertAt === 'top') {
125
+ if (head.firstChild) {
126
+ head.insertBefore(style, head.firstChild);
127
+ } else {
128
+ head.appendChild(style);
129
+ }
49
130
  } else {
50
- ownKeys(Object(source)).forEach(function (key) {
51
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
52
- });
53
- }
54
- }
55
-
56
- return target;
57
- }
58
-
59
- function _objectWithoutPropertiesLoose(source, excluded) {
60
- if (source == null) return {};
61
- var target = {};
62
- var sourceKeys = Object.keys(source);
63
- var key, i;
64
-
65
- for (i = 0; i < sourceKeys.length; i++) {
66
- key = sourceKeys[i];
67
- if (excluded.indexOf(key) >= 0) continue;
68
- target[key] = source[key];
69
- }
70
-
71
- return target;
72
- }
73
-
74
- function _objectWithoutProperties(source, excluded) {
75
- if (source == null) return {};
76
-
77
- var target = _objectWithoutPropertiesLoose(source, excluded);
78
-
79
- var key, i;
80
-
81
- if (Object.getOwnPropertySymbols) {
82
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
83
-
84
- for (i = 0; i < sourceSymbolKeys.length; i++) {
85
- key = sourceSymbolKeys[i];
86
- if (excluded.indexOf(key) >= 0) continue;
87
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
88
- target[key] = source[key];
89
- }
90
- }
91
-
92
- return target;
93
- }
94
-
95
- function _slicedToArray(arr, i) {
96
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
97
- }
98
-
99
- function _toConsumableArray(arr) {
100
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
101
- }
102
-
103
- function _arrayWithoutHoles(arr) {
104
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
105
- }
106
-
107
- function _arrayWithHoles(arr) {
108
- if (Array.isArray(arr)) return arr;
109
- }
110
-
111
- function _iterableToArray(iter) {
112
- if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
113
- }
114
-
115
- function _iterableToArrayLimit(arr, i) {
116
- if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
117
- var _arr = [];
118
- var _n = true;
119
- var _d = false;
120
- var _e = undefined;
121
-
122
- try {
123
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
124
- _arr.push(_s.value);
125
-
126
- if (i && _arr.length === i) break;
127
- }
128
- } catch (err) {
129
- _d = true;
130
- _e = err;
131
- } finally {
132
- try {
133
- if (!_n && _i["return"] != null) _i["return"]();
134
- } finally {
135
- if (_d) throw _e;
136
- }
137
- }
138
-
139
- return _arr;
140
- }
141
-
142
- function _unsupportedIterableToArray(o, minLen) {
143
- if (!o) return;
144
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
145
- var n = Object.prototype.toString.call(o).slice(8, -1);
146
- if (n === "Object" && o.constructor) n = o.constructor.name;
147
- if (n === "Map" || n === "Set") return Array.from(o);
148
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
149
- }
150
-
151
- function _arrayLikeToArray(arr, len) {
152
- if (len == null || len > arr.length) len = arr.length;
153
-
154
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
155
-
156
- return arr2;
157
- }
158
-
159
- function _nonIterableSpread() {
160
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
161
- }
162
-
163
- function _nonIterableRest() {
164
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
165
- }
166
-
167
- function createCommonjsModule(fn, module) {
168
- return module = { exports: {} }, fn(module, module.exports), module.exports;
169
- }
170
-
171
- /** @license React v16.13.1
172
- * react-is.production.min.js
173
- *
174
- * Copyright (c) Facebook, Inc. and its affiliates.
175
- *
176
- * This source code is licensed under the MIT license found in the
177
- * LICENSE file in the root directory of this source tree.
178
- */
179
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
180
- Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
181
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r;var Portal=d;
182
- var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
183
- var isMemo=function(a){return z(a)===r};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
184
- var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
185
-
186
- var reactIs_production_min = {
187
- AsyncMode: AsyncMode,
188
- ConcurrentMode: ConcurrentMode,
189
- ContextConsumer: ContextConsumer,
190
- ContextProvider: ContextProvider,
191
- Element: Element,
192
- ForwardRef: ForwardRef,
193
- Fragment: Fragment,
194
- Lazy: Lazy,
195
- Memo: Memo,
196
- Portal: Portal,
197
- Profiler: Profiler,
198
- StrictMode: StrictMode,
199
- Suspense: Suspense,
200
- isAsyncMode: isAsyncMode,
201
- isConcurrentMode: isConcurrentMode,
202
- isContextConsumer: isContextConsumer,
203
- isContextProvider: isContextProvider,
204
- isElement: isElement,
205
- isForwardRef: isForwardRef,
206
- isFragment: isFragment,
207
- isLazy: isLazy,
208
- isMemo: isMemo,
209
- isPortal: isPortal,
210
- isProfiler: isProfiler,
211
- isStrictMode: isStrictMode,
212
- isSuspense: isSuspense,
213
- isValidElementType: isValidElementType,
214
- typeOf: typeOf
215
- };
216
-
217
- var reactIs_development = createCommonjsModule(function (module, exports) {
218
-
219
-
220
-
221
- if (process.env.NODE_ENV !== "production") {
222
- (function() {
223
-
224
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
225
- // nor polyfill, then a plain number is used for performance.
226
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
227
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
228
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
229
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
230
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
231
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
232
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
233
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
234
- // (unstable) APIs that have been removed. Can we remove the symbols?
235
-
236
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
237
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
238
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
239
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
240
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
241
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
242
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
243
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
244
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
245
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
246
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
247
-
248
- function isValidElementType(type) {
249
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
250
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
251
- }
252
-
253
- function typeOf(object) {
254
- if (typeof object === 'object' && object !== null) {
255
- var $$typeof = object.$$typeof;
256
-
257
- switch ($$typeof) {
258
- case REACT_ELEMENT_TYPE:
259
- var type = object.type;
260
-
261
- switch (type) {
262
- case REACT_ASYNC_MODE_TYPE:
263
- case REACT_CONCURRENT_MODE_TYPE:
264
- case REACT_FRAGMENT_TYPE:
265
- case REACT_PROFILER_TYPE:
266
- case REACT_STRICT_MODE_TYPE:
267
- case REACT_SUSPENSE_TYPE:
268
- return type;
269
-
270
- default:
271
- var $$typeofType = type && type.$$typeof;
272
-
273
- switch ($$typeofType) {
274
- case REACT_CONTEXT_TYPE:
275
- case REACT_FORWARD_REF_TYPE:
276
- case REACT_LAZY_TYPE:
277
- case REACT_MEMO_TYPE:
278
- case REACT_PROVIDER_TYPE:
279
- return $$typeofType;
280
-
281
- default:
282
- return $$typeof;
283
- }
284
-
285
- }
286
-
287
- case REACT_PORTAL_TYPE:
288
- return $$typeof;
289
- }
290
- }
291
-
292
- return undefined;
293
- } // AsyncMode is deprecated along with isAsyncMode
294
-
295
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
296
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
297
- var ContextConsumer = REACT_CONTEXT_TYPE;
298
- var ContextProvider = REACT_PROVIDER_TYPE;
299
- var Element = REACT_ELEMENT_TYPE;
300
- var ForwardRef = REACT_FORWARD_REF_TYPE;
301
- var Fragment = REACT_FRAGMENT_TYPE;
302
- var Lazy = REACT_LAZY_TYPE;
303
- var Memo = REACT_MEMO_TYPE;
304
- var Portal = REACT_PORTAL_TYPE;
305
- var Profiler = REACT_PROFILER_TYPE;
306
- var StrictMode = REACT_STRICT_MODE_TYPE;
307
- var Suspense = REACT_SUSPENSE_TYPE;
308
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
309
-
310
- function isAsyncMode(object) {
311
- {
312
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
313
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
314
-
315
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
316
- }
317
- }
318
-
319
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
320
- }
321
- function isConcurrentMode(object) {
322
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
323
- }
324
- function isContextConsumer(object) {
325
- return typeOf(object) === REACT_CONTEXT_TYPE;
326
- }
327
- function isContextProvider(object) {
328
- return typeOf(object) === REACT_PROVIDER_TYPE;
329
- }
330
- function isElement(object) {
331
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
332
- }
333
- function isForwardRef(object) {
334
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
335
- }
336
- function isFragment(object) {
337
- return typeOf(object) === REACT_FRAGMENT_TYPE;
338
- }
339
- function isLazy(object) {
340
- return typeOf(object) === REACT_LAZY_TYPE;
341
- }
342
- function isMemo(object) {
343
- return typeOf(object) === REACT_MEMO_TYPE;
344
- }
345
- function isPortal(object) {
346
- return typeOf(object) === REACT_PORTAL_TYPE;
347
- }
348
- function isProfiler(object) {
349
- return typeOf(object) === REACT_PROFILER_TYPE;
350
- }
351
- function isStrictMode(object) {
352
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
353
- }
354
- function isSuspense(object) {
355
- return typeOf(object) === REACT_SUSPENSE_TYPE;
356
- }
357
-
358
- exports.AsyncMode = AsyncMode;
359
- exports.ConcurrentMode = ConcurrentMode;
360
- exports.ContextConsumer = ContextConsumer;
361
- exports.ContextProvider = ContextProvider;
362
- exports.Element = Element;
363
- exports.ForwardRef = ForwardRef;
364
- exports.Fragment = Fragment;
365
- exports.Lazy = Lazy;
366
- exports.Memo = Memo;
367
- exports.Portal = Portal;
368
- exports.Profiler = Profiler;
369
- exports.StrictMode = StrictMode;
370
- exports.Suspense = Suspense;
371
- exports.isAsyncMode = isAsyncMode;
372
- exports.isConcurrentMode = isConcurrentMode;
373
- exports.isContextConsumer = isContextConsumer;
374
- exports.isContextProvider = isContextProvider;
375
- exports.isElement = isElement;
376
- exports.isForwardRef = isForwardRef;
377
- exports.isFragment = isFragment;
378
- exports.isLazy = isLazy;
379
- exports.isMemo = isMemo;
380
- exports.isPortal = isPortal;
381
- exports.isProfiler = isProfiler;
382
- exports.isStrictMode = isStrictMode;
383
- exports.isSuspense = isSuspense;
384
- exports.isValidElementType = isValidElementType;
385
- exports.typeOf = typeOf;
386
- })();
387
- }
388
- });
389
- var reactIs_development_1 = reactIs_development.AsyncMode;
390
- var reactIs_development_2 = reactIs_development.ConcurrentMode;
391
- var reactIs_development_3 = reactIs_development.ContextConsumer;
392
- var reactIs_development_4 = reactIs_development.ContextProvider;
393
- var reactIs_development_5 = reactIs_development.Element;
394
- var reactIs_development_6 = reactIs_development.ForwardRef;
395
- var reactIs_development_7 = reactIs_development.Fragment;
396
- var reactIs_development_8 = reactIs_development.Lazy;
397
- var reactIs_development_9 = reactIs_development.Memo;
398
- var reactIs_development_10 = reactIs_development.Portal;
399
- var reactIs_development_11 = reactIs_development.Profiler;
400
- var reactIs_development_12 = reactIs_development.StrictMode;
401
- var reactIs_development_13 = reactIs_development.Suspense;
402
- var reactIs_development_14 = reactIs_development.isAsyncMode;
403
- var reactIs_development_15 = reactIs_development.isConcurrentMode;
404
- var reactIs_development_16 = reactIs_development.isContextConsumer;
405
- var reactIs_development_17 = reactIs_development.isContextProvider;
406
- var reactIs_development_18 = reactIs_development.isElement;
407
- var reactIs_development_19 = reactIs_development.isForwardRef;
408
- var reactIs_development_20 = reactIs_development.isFragment;
409
- var reactIs_development_21 = reactIs_development.isLazy;
410
- var reactIs_development_22 = reactIs_development.isMemo;
411
- var reactIs_development_23 = reactIs_development.isPortal;
412
- var reactIs_development_24 = reactIs_development.isProfiler;
413
- var reactIs_development_25 = reactIs_development.isStrictMode;
414
- var reactIs_development_26 = reactIs_development.isSuspense;
415
- var reactIs_development_27 = reactIs_development.isValidElementType;
416
- var reactIs_development_28 = reactIs_development.typeOf;
417
-
418
- var reactIs = createCommonjsModule(function (module) {
419
-
420
- if (process.env.NODE_ENV === 'production') {
421
- module.exports = reactIs_production_min;
422
- } else {
423
- module.exports = reactIs_development;
424
- }
425
- });
426
-
427
- /*
428
- object-assign
429
- (c) Sindre Sorhus
430
- @license MIT
431
- */
432
- /* eslint-disable no-unused-vars */
433
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
434
- var hasOwnProperty = Object.prototype.hasOwnProperty;
435
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
436
-
437
- function toObject(val) {
438
- if (val === null || val === undefined) {
439
- throw new TypeError('Object.assign cannot be called with null or undefined');
440
- }
441
-
442
- return Object(val);
443
- }
444
-
445
- function shouldUseNative() {
446
- try {
447
- if (!Object.assign) {
448
- return false;
449
- }
450
-
451
- // Detect buggy property enumeration order in older V8 versions.
452
-
453
- // https://bugs.chromium.org/p/v8/issues/detail?id=4118
454
- var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
455
- test1[5] = 'de';
456
- if (Object.getOwnPropertyNames(test1)[0] === '5') {
457
- return false;
458
- }
459
-
460
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
461
- var test2 = {};
462
- for (var i = 0; i < 10; i++) {
463
- test2['_' + String.fromCharCode(i)] = i;
464
- }
465
- var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
466
- return test2[n];
467
- });
468
- if (order2.join('') !== '0123456789') {
469
- return false;
470
- }
471
-
472
- // https://bugs.chromium.org/p/v8/issues/detail?id=3056
473
- var test3 = {};
474
- 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
475
- test3[letter] = letter;
476
- });
477
- if (Object.keys(Object.assign({}, test3)).join('') !==
478
- 'abcdefghijklmnopqrst') {
479
- return false;
480
- }
481
-
482
- return true;
483
- } catch (err) {
484
- // We don't expect any of the above to throw, but better to be safe.
485
- return false;
486
- }
487
- }
488
-
489
- var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
490
- var from;
491
- var to = toObject(target);
492
- var symbols;
493
-
494
- for (var s = 1; s < arguments.length; s++) {
495
- from = Object(arguments[s]);
496
-
497
- for (var key in from) {
498
- if (hasOwnProperty.call(from, key)) {
499
- to[key] = from[key];
500
- }
501
- }
502
-
503
- if (getOwnPropertySymbols) {
504
- symbols = getOwnPropertySymbols(from);
505
- for (var i = 0; i < symbols.length; i++) {
506
- if (propIsEnumerable.call(from, symbols[i])) {
507
- to[symbols[i]] = from[symbols[i]];
508
- }
509
- }
510
- }
511
- }
512
-
513
- return to;
514
- };
515
-
516
- /**
517
- * Copyright (c) 2013-present, Facebook, Inc.
518
- *
519
- * This source code is licensed under the MIT license found in the
520
- * LICENSE file in the root directory of this source tree.
521
- */
522
-
523
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
524
-
525
- var ReactPropTypesSecret_1 = ReactPropTypesSecret;
526
-
527
- var printWarning = function() {};
528
-
529
- if (process.env.NODE_ENV !== 'production') {
530
- var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
531
- var loggedTypeFailures = {};
532
- var has = Function.call.bind(Object.prototype.hasOwnProperty);
533
-
534
- printWarning = function(text) {
535
- var message = 'Warning: ' + text;
536
- if (typeof console !== 'undefined') {
537
- console.error(message);
131
+ head.appendChild(style);
538
132
  }
539
- try {
540
- // --- Welcome to debugging React ---
541
- // This error was thrown as a convenience so that you can use this stack
542
- // to find the callsite that caused this warning to fire.
543
- throw new Error(message);
544
- } catch (x) {}
545
- };
546
- }
547
-
548
- /**
549
- * Assert that the values match with the type specs.
550
- * Error messages are memorized and will only be shown once.
551
- *
552
- * @param {object} typeSpecs Map of name to a ReactPropType
553
- * @param {object} values Runtime values that need to be type-checked
554
- * @param {string} location e.g. "prop", "context", "child context"
555
- * @param {string} componentName Name of the component for error messages.
556
- * @param {?Function} getStack Returns the component stack.
557
- * @private
558
- */
559
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
560
- if (process.env.NODE_ENV !== 'production') {
561
- for (var typeSpecName in typeSpecs) {
562
- if (has(typeSpecs, typeSpecName)) {
563
- var error;
564
- // Prop type validation may throw. In case they do, we don't want to
565
- // fail the render phase where it didn't fail before. So we log it.
566
- // After these have been cleaned up, we'll let them throw.
567
- try {
568
- // This is intentionally an invariant that gets caught. It's the same
569
- // behavior as without this statement except with a better message.
570
- if (typeof typeSpecs[typeSpecName] !== 'function') {
571
- var err = Error(
572
- (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
573
- 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
574
- );
575
- err.name = 'Invariant Violation';
576
- throw err;
577
- }
578
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$1);
579
- } catch (ex) {
580
- error = ex;
581
- }
582
- if (error && !(error instanceof Error)) {
583
- printWarning(
584
- (componentName || 'React class') + ': type specification of ' +
585
- location + ' `' + typeSpecName + '` is invalid; the type checker ' +
586
- 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
587
- 'You may have forgotten to pass an argument to the type checker ' +
588
- 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
589
- 'shape all require an argument).'
590
- );
591
- }
592
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
593
- // Only monitor this failure once because there tends to be a lot of the
594
- // same error.
595
- loggedTypeFailures[error.message] = true;
596
133
 
597
- var stack = getStack ? getStack() : '';
598
-
599
- printWarning(
600
- 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
601
- );
602
- }
134
+ if (style.styleSheet) {
135
+ style.styleSheet.cssText = css;
136
+ } else {
137
+ style.appendChild(document.createTextNode(css));
138
+ }
139
+ }
140
+
141
+ 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";
142
+ styleInject(css_248z$1);
143
+
144
+ var GoAButton = function GoAButton(_a) {
145
+ var title = _a.title,
146
+ _b = _a.disabled,
147
+ disabled = _b === void 0 ? false : _b,
148
+ _c = _a.type,
149
+ type = _c === void 0 ? 'primary' : _c,
150
+ _d = _a.size,
151
+ size = _d === void 0 ? 'normal' : _d,
152
+ _e = _a.variant,
153
+ variant = _e === void 0 ? 'default' : _e,
154
+ children = _a.children,
155
+ onClick = _a.onClick;
156
+ var el = React.useRef(null);
157
+ React.useEffect(function () {
158
+ if (!el.current) {
159
+ return;
603
160
  }
604
- }
605
- }
606
- }
607
-
608
- /**
609
- * Resets warning cache when testing.
610
- *
611
- * @private
612
- */
613
- checkPropTypes.resetWarningCache = function() {
614
- if (process.env.NODE_ENV !== 'production') {
615
- loggedTypeFailures = {};
616
- }
617
- };
618
-
619
- var checkPropTypes_1 = checkPropTypes;
620
-
621
- var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
622
- var printWarning$1 = function() {};
623
161
 
624
- if (process.env.NODE_ENV !== 'production') {
625
- printWarning$1 = function(text) {
626
- var message = 'Warning: ' + text;
627
- if (typeof console !== 'undefined') {
628
- console.error(message);
629
- }
630
- try {
631
- // --- Welcome to debugging React ---
632
- // This error was thrown as a convenience so that you can use this stack
633
- // to find the callsite that caused this warning to fire.
634
- throw new Error(message);
635
- } catch (x) {}
162
+ var current = el.current;
163
+
164
+ var listener = function listener(e) {
165
+ onClick(e);
166
+ };
167
+
168
+ current.addEventListener('_click', listener);
169
+ return function () {
170
+ current.removeEventListener('_click', listener);
171
+ };
172
+ }, [el, onClick]);
173
+ return jsxRuntime.jsx("goa-button", __assign({
174
+ ref: el,
175
+ role: "button",
176
+ type: type,
177
+ size: size,
178
+ variant: variant,
179
+ disabled: disabled,
180
+ title: title
181
+ }, {
182
+ children: children
183
+ }), void 0);
636
184
  };
637
- }
638
-
639
- function emptyFunctionThatReturnsNull() {
640
- return null;
641
- }
642
-
643
- var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
644
- /* global Symbol */
645
- var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
646
- var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
647
-
648
- /**
649
- * Returns the iterator method function contained on the iterable object.
650
- *
651
- * Be sure to invoke the function with the iterable as context:
652
- *
653
- * var iteratorFn = getIteratorFn(myIterable);
654
- * if (iteratorFn) {
655
- * var iterator = iteratorFn.call(myIterable);
656
- * ...
657
- * }
658
- *
659
- * @param {?object} maybeIterable
660
- * @return {?function}
661
- */
662
- function getIteratorFn(maybeIterable) {
663
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
664
- if (typeof iteratorFn === 'function') {
665
- return iteratorFn;
666
- }
667
- }
668
185
 
669
- /**
670
- * Collection of methods that allow declaration and validation of props that are
671
- * supplied to React components. Example usage:
672
- *
673
- * var Props = require('ReactPropTypes');
674
- * var MyArticle = React.createClass({
675
- * propTypes: {
676
- * // An optional string prop named "description".
677
- * description: Props.string,
678
- *
679
- * // A required enum prop named "category".
680
- * category: Props.oneOf(['News','Photos']).isRequired,
681
- *
682
- * // A prop named "dialog" that requires an instance of Dialog.
683
- * dialog: Props.instanceOf(Dialog).isRequired
684
- * },
685
- * render: function() { ... }
686
- * });
687
- *
688
- * A more formal specification of how these methods are used:
689
- *
690
- * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
691
- * decl := ReactPropTypes.{type}(.isRequired)?
692
- *
693
- * Each and every declaration produces a function with the same signature. This
694
- * allows the creation of custom validation functions. For example:
695
- *
696
- * var MyLink = React.createClass({
697
- * propTypes: {
698
- * // An optional string or URI prop named "href".
699
- * href: function(props, propName, componentName) {
700
- * var propValue = props[propName];
701
- * if (propValue != null && typeof propValue !== 'string' &&
702
- * !(propValue instanceof URI)) {
703
- * return new Error(
704
- * 'Expected a string or an URI for ' + propName + ' in ' +
705
- * componentName
706
- * );
707
- * }
708
- * }
709
- * },
710
- * render: function() {...}
711
- * });
712
- *
713
- * @internal
714
- */
715
-
716
- var ANONYMOUS = '<<anonymous>>';
717
-
718
- // Important!
719
- // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
720
- var ReactPropTypes = {
721
- array: createPrimitiveTypeChecker('array'),
722
- bool: createPrimitiveTypeChecker('boolean'),
723
- func: createPrimitiveTypeChecker('function'),
724
- number: createPrimitiveTypeChecker('number'),
725
- object: createPrimitiveTypeChecker('object'),
726
- string: createPrimitiveTypeChecker('string'),
727
- symbol: createPrimitiveTypeChecker('symbol'),
728
-
729
- any: createAnyTypeChecker(),
730
- arrayOf: createArrayOfTypeChecker,
731
- element: createElementTypeChecker(),
732
- elementType: createElementTypeTypeChecker(),
733
- instanceOf: createInstanceTypeChecker,
734
- node: createNodeChecker(),
735
- objectOf: createObjectOfTypeChecker,
736
- oneOf: createEnumTypeChecker,
737
- oneOfType: createUnionTypeChecker,
738
- shape: createShapeTypeChecker,
739
- exact: createStrictShapeTypeChecker,
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";
187
+ styleInject(css_248z);
188
+
189
+ var GoAButtonGroup = function GoAButtonGroup(_a) {
190
+ var alignment = _a.alignment,
191
+ children = _a.children;
192
+ return jsxRuntime.jsx("goa-button-group", __assign({
193
+ alignment: alignment
194
+ }, {
195
+ children: children
196
+ }), void 0);
740
197
  };
741
198
 
742
- /**
743
- * inlined Object.is polyfill to avoid requiring consumers ship their own
744
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
745
- */
746
- /*eslint-disable no-self-compare*/
747
- function is(x, y) {
748
- // SameValue algorithm
749
- if (x === y) {
750
- // Steps 1-5, 7-10
751
- // Steps 6.b-6.e: +0 != -0
752
- return x !== 0 || 1 / x === 1 / y;
753
- } else {
754
- // Step 6.a: NaN == NaN
755
- return x !== x && y !== y;
756
- }
757
- }
758
- /*eslint-enable no-self-compare*/
759
-
760
- /**
761
- * We use an Error-like object for backward compatibility as people may call
762
- * PropTypes directly and inspect their output. However, we don't use real
763
- * Errors anymore. We don't inspect their stack anyway, and creating them
764
- * is prohibitively expensive if they are created too often, such as what
765
- * happens in oneOfType() for any type before the one that matched.
766
- */
767
- function PropTypeError(message) {
768
- this.message = message;
769
- this.stack = '';
770
- }
771
- // Make `instanceof Error` still work for returned errors.
772
- PropTypeError.prototype = Error.prototype;
199
+ var GoACallout = function GoACallout(_a) {
200
+ var title = _a.title,
201
+ _b = _a.type,
202
+ type = _b === void 0 ? "information" : _b,
203
+ children = _a.children;
204
+ return jsxRuntime.jsx("goa-callout", __assign({
205
+ title: title,
206
+ type: type
207
+ }, {
208
+ children: children
209
+ }), void 0);
210
+ };
773
211
 
774
- function createChainableTypeChecker(validate) {
775
- if (process.env.NODE_ENV !== 'production') {
776
- var manualPropTypeCallCache = {};
777
- var manualPropTypeWarningCount = 0;
778
- }
779
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
780
- componentName = componentName || ANONYMOUS;
781
- propFullName = propFullName || propName;
782
-
783
- if (secret !== ReactPropTypesSecret_1) {
784
- if (throwOnDirectAccess) {
785
- // New behavior only for users of `prop-types` package
786
- var err = new Error(
787
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
788
- 'Use `PropTypes.checkPropTypes()` to call them. ' +
789
- 'Read more at http://fb.me/use-check-prop-types'
790
- );
791
- err.name = 'Invariant Violation';
792
- throw err;
793
- } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
794
- // Old behavior for people using React.PropTypes
795
- var cacheKey = componentName + ':' + propName;
796
- if (
797
- !manualPropTypeCallCache[cacheKey] &&
798
- // Avoid spamming the console because they are often not actionable except for lib authors
799
- manualPropTypeWarningCount < 3
800
- ) {
801
- printWarning$1(
802
- 'You are manually calling a React.PropTypes validation ' +
803
- 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
804
- 'and will throw in the standalone `prop-types` package. ' +
805
- 'You may be seeing this warning due to a third-party PropTypes ' +
806
- 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
807
- );
808
- manualPropTypeCallCache[cacheKey] = true;
809
- manualPropTypeWarningCount++;
810
- }
811
- }
212
+ var GoACheckbox = function GoACheckbox(_a) {
213
+ var id = _a.id,
214
+ name = _a.name,
215
+ testId = _a.testId,
216
+ error = _a.error,
217
+ disabled = _a.disabled,
218
+ checked = _a.checked,
219
+ value = _a.value,
220
+ text = _a.text,
221
+ children = _a.children,
222
+ onChange = _a.onChange;
223
+ var el = React.useRef(null);
224
+ React.useEffect(function () {
225
+ if (!el.current) {
226
+ return;
812
227
  }
813
- if (props[propName] == null) {
814
- if (isRequired) {
815
- if (props[propName] === null) {
816
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
817
- }
818
- return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
819
- }
820
- return null;
821
- } else {
822
- return validate(props, propName, componentName, location, propFullName);
823
- }
824
- }
825
-
826
- var chainedCheckType = checkType.bind(null, false);
827
- chainedCheckType.isRequired = checkType.bind(null, true);
828
228
 
829
- return chainedCheckType;
830
- }
831
-
832
- function createPrimitiveTypeChecker(expectedType) {
833
- function validate(props, propName, componentName, location, propFullName, secret) {
834
- var propValue = props[propName];
835
- var propType = getPropType(propValue);
836
- if (propType !== expectedType) {
837
- // `propValue` being instance of, say, date/regexp, pass the 'object'
838
- // check, but we can offer a more precise error message here rather than
839
- // 'of type `object`'.
840
- var preciseType = getPreciseType(propValue);
841
-
842
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
843
- }
844
- return null;
845
- }
846
- return createChainableTypeChecker(validate);
847
- }
229
+ var current = el.current;
230
+
231
+ var listener = function listener(e) {
232
+ onChange === null || onChange === void 0 ? void 0 : onChange(name, e.detail.checked, e.detail.value);
233
+ };
234
+
235
+ current.addEventListener('_change', listener);
236
+ return function () {
237
+ current.removeEventListener('_change', listener);
238
+ };
239
+ }, []);
240
+ return jsxRuntime.jsx("goa-checkbox", __assign({
241
+ "data-testid": testId,
242
+ ref: el,
243
+ id: id,
244
+ name: name,
245
+ error: error,
246
+ checked: checked,
247
+ disabled: disabled,
248
+ text: text,
249
+ value: value
250
+ }, {
251
+ children: children
252
+ }), void 0);
253
+ };
848
254
 
849
- function createAnyTypeChecker() {
850
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
851
- }
255
+ var GoACircularProgress = function GoACircularProgress(_a) {
256
+ var type = _a.type,
257
+ visible = _a.visible,
258
+ message = _a.message,
259
+ progress = _a.progress,
260
+ variant = _a.variant,
261
+ size = _a.size;
262
+ return jsxRuntime.jsx("goa-circular-progress", {
263
+ type: type,
264
+ visible: visible ? "true" : "false",
265
+ message: message,
266
+ progress: progress,
267
+ variant: variant,
268
+ size: size
269
+ }, void 0);
270
+ };
852
271
 
853
- function createArrayOfTypeChecker(typeChecker) {
854
- function validate(props, propName, componentName, location, propFullName) {
855
- if (typeof typeChecker !== 'function') {
856
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
857
- }
858
- var propValue = props[propName];
859
- if (!Array.isArray(propValue)) {
860
- var propType = getPropType(propValue);
861
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
862
- }
863
- for (var i = 0; i < propValue.length; i++) {
864
- var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);
865
- if (error instanceof Error) {
866
- return error;
867
- }
868
- }
869
- return null;
870
- }
871
- return createChainableTypeChecker(validate);
872
- }
272
+ var GoAContainer = function GoAContainer(_a) {
273
+ var headingSize = _a.headingSize,
274
+ title = _a.title,
275
+ children = _a.children,
276
+ actions = _a.actions,
277
+ _b = _a.variant,
278
+ variant = _b === void 0 ? 'default' : _b;
279
+ return jsxRuntime.jsxs("goa-container", __assign({
280
+ variant: variant,
281
+ headingsize: headingSize
282
+ }, {
283
+ children: [title && jsxRuntime.jsx("div", __assign({
284
+ slot: "title"
285
+ }, {
286
+ children: title
287
+ }), void 0), children, actions && jsxRuntime.jsx("div", __assign({
288
+ slot: "actions"
289
+ }, {
290
+ children: actions
291
+ }), void 0)]
292
+ }), void 0);
293
+ };
873
294
 
874
- function createElementTypeChecker() {
875
- function validate(props, propName, componentName, location, propFullName) {
876
- var propValue = props[propName];
877
- if (!isValidElement(propValue)) {
878
- var propType = getPropType(propValue);
879
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
880
- }
881
- return null;
882
- }
883
- return createChainableTypeChecker(validate);
884
- }
295
+ var GoADropdownOption = function GoADropdownOption(props) {
296
+ return jsxRuntime.jsx("goa-dropdown-item", __assign({
297
+ "data-testid": props.testId,
298
+ name: props.name,
299
+ value: props.value,
300
+ label: props.label
301
+ }, {
302
+ children: props.children
303
+ }), void 0);
304
+ };
885
305
 
886
- function createElementTypeTypeChecker() {
887
- function validate(props, propName, componentName, location, propFullName) {
888
- var propValue = props[propName];
889
- if (!reactIs.isValidElementType(propValue)) {
890
- var propType = getPropType(propValue);
891
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
306
+ var GoADropdown = function GoADropdown(props) {
307
+ var el = React.useRef(null);
308
+ React.useEffect(function () {
309
+ if (!el.current) {
310
+ return;
892
311
  }
893
- return null;
894
- }
895
- return createChainableTypeChecker(validate);
896
- }
897
312
 
898
- function createInstanceTypeChecker(expectedClass) {
899
- function validate(props, propName, componentName, location, propFullName) {
900
- if (!(props[propName] instanceof expectedClass)) {
901
- var expectedClassName = expectedClass.name || ANONYMOUS;
902
- var actualClassName = getClassName(props[propName]);
903
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
904
- }
905
- return null;
906
- }
907
- return createChainableTypeChecker(validate);
908
- }
313
+ var current = el.current;
314
+
315
+ var handler = function handler(state) {
316
+ var _a = state.detail,
317
+ name = _a.name,
318
+ value = _a.value;
319
+ props.onChange(name, value);
320
+ };
321
+
322
+ current.addEventListener('_change', handler);
323
+ return function () {
324
+ current.removeEventListener('_change', handler);
325
+ };
326
+ }, [el, props]);
327
+ return jsxRuntime.jsx("goa-dropdown", __assign({
328
+ ref: el,
329
+ name: props.name,
330
+ values: JSON.stringify(props.values),
331
+ leadingicon: props.leadingIcon,
332
+ maxheight: props.maxHeight,
333
+ placeholder: props.placeholder,
334
+ filterable: props.filterable,
335
+ disabled: props.disabled,
336
+ multiselect: props.multiselect,
337
+ error: props.error,
338
+ "data-testid": props.testId
339
+ }, {
340
+ children: props.children
341
+ }), void 0);
342
+ };
909
343
 
910
- function createEnumTypeChecker(expectedValues) {
911
- if (!Array.isArray(expectedValues)) {
912
- if (process.env.NODE_ENV !== 'production') {
913
- if (arguments.length > 1) {
914
- printWarning$1(
915
- 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
916
- 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
917
- );
918
- } else {
919
- printWarning$1('Invalid argument supplied to oneOf, expected an array.');
920
- }
921
- }
922
- return emptyFunctionThatReturnsNull;
923
- }
344
+ var GoAFlexRow = function GoAFlexRow(_a) {
345
+ var gap = _a.gap,
346
+ minWidth = _a.minWidth,
347
+ children = _a.children;
348
+ var style = {
349
+ gap: gap === 'small' ? '1rem' : gap === 'medium' ? '2rem' : gap === 'large' ? '3rem' : '0'
350
+ };
924
351
 
925
- function validate(props, propName, componentName, location, propFullName) {
926
- var propValue = props[propName];
927
- for (var i = 0; i < expectedValues.length; i++) {
928
- if (is(propValue, expectedValues[i])) {
929
- return null;
930
- }
352
+ var getChildren = function getChildren() {
353
+ if (!children) {
354
+ return null;
931
355
  }
932
356
 
933
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
934
- var type = getPreciseType(value);
935
- if (type === 'symbol') {
936
- return String(value);
937
- }
938
- return value;
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
+ });
939
363
  });
940
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
941
- }
942
- return createChainableTypeChecker(validate);
943
- }
944
-
945
- function createObjectOfTypeChecker(typeChecker) {
946
- function validate(props, propName, componentName, location, propFullName) {
947
- if (typeof typeChecker !== 'function') {
948
- return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
949
- }
950
- var propValue = props[propName];
951
- var propType = getPropType(propValue);
952
- if (propType !== 'object') {
953
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
954
- }
955
- for (var key in propValue) {
956
- if (has$1(propValue, key)) {
957
- var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
958
- if (error instanceof Error) {
959
- return error;
960
- }
961
- }
962
- }
963
- return null;
964
- }
965
- return createChainableTypeChecker(validate);
966
- }
967
-
968
- function createUnionTypeChecker(arrayOfTypeCheckers) {
969
- if (!Array.isArray(arrayOfTypeCheckers)) {
970
- process.env.NODE_ENV !== 'production' ? printWarning$1('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
971
- return emptyFunctionThatReturnsNull;
972
- }
973
-
974
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
975
- var checker = arrayOfTypeCheckers[i];
976
- if (typeof checker !== 'function') {
977
- printWarning$1(
978
- 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
979
- 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
980
- );
981
- return emptyFunctionThatReturnsNull;
982
- }
983
- }
364
+ };
984
365
 
985
- function validate(props, propName, componentName, location, propFullName) {
986
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
987
- var checker = arrayOfTypeCheckers[i];
988
- if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1) == null) {
989
- return null;
990
- }
991
- }
366
+ return jsxRuntime.jsx("div", __assign({
367
+ className: "goa-flex-row",
368
+ style: style
369
+ }, {
370
+ children: getChildren()
371
+ }), void 0);
372
+ };
992
373
 
993
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
994
- }
995
- return createChainableTypeChecker(validate);
996
- }
374
+ var GoAFormItem = function GoAFormItem(_a) {
375
+ var children = _a.children,
376
+ helpText = _a.helpText,
377
+ error = _a.error,
378
+ optional = _a.optional,
379
+ label = _a.label;
380
+ return jsxRuntime.jsx("goa-form-item", __assign({
381
+ label: label,
382
+ error: error,
383
+ optional: optional,
384
+ helptext: helpText
385
+ }, {
386
+ children: children
387
+ }), void 0);
388
+ };
997
389
 
998
- function createNodeChecker() {
999
- function validate(props, propName, componentName, location, propFullName) {
1000
- if (!isNode(props[propName])) {
1001
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
1002
- }
1003
- return null;
1004
- }
1005
- return createChainableTypeChecker(validate);
1006
- }
390
+ var GoAHeroBanner = function GoAHeroBanner(_a) {
391
+ var title = _a.title,
392
+ backgroundUrl = _a.backgroundUrl,
393
+ children = _a.children;
394
+ return jsxRuntime.jsx("goa-hero-banner", __assign({
395
+ title: title,
396
+ backgroundurl: backgroundUrl
397
+ }, {
398
+ children: children
399
+ }), void 0);
400
+ };
1007
401
 
1008
- function createShapeTypeChecker(shapeTypes) {
1009
- function validate(props, propName, componentName, location, propFullName) {
1010
- var propValue = props[propName];
1011
- var propType = getPropType(propValue);
1012
- if (propType !== 'object') {
1013
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1014
- }
1015
- for (var key in shapeTypes) {
1016
- var checker = shapeTypes[key];
1017
- if (!checker) {
1018
- continue;
1019
- }
1020
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
1021
- if (error) {
1022
- return error;
1023
- }
1024
- }
1025
- return null;
1026
- }
1027
- return createChainableTypeChecker(validate);
1028
- }
402
+ var GoAHeroBannerActions = function GoAHeroBannerActions(_a) {
403
+ var children = _a.children;
404
+ return jsxRuntime.jsx("div", __assign({
405
+ slot: "actions"
406
+ }, {
407
+ children: children
408
+ }), void 0);
409
+ };
1029
410
 
1030
- function createStrictShapeTypeChecker(shapeTypes) {
1031
- function validate(props, propName, componentName, location, propFullName) {
1032
- var propValue = props[propName];
1033
- var propType = getPropType(propValue);
1034
- if (propType !== 'object') {
1035
- return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1036
- }
1037
- // We need to check all keys in case some are required but missing from
1038
- // props.
1039
- var allKeys = objectAssign({}, props[propName], shapeTypes);
1040
- for (var key in allKeys) {
1041
- var checker = shapeTypes[key];
1042
- if (!checker) {
1043
- return new PropTypeError(
1044
- 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
1045
- '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
1046
- '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1047
- );
1048
- }
1049
- var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
1050
- if (error) {
1051
- return error;
1052
- }
411
+ function GoAIcon(_a) {
412
+ var type = _a.type,
413
+ _b = _a.theme,
414
+ theme = _b === void 0 ? 'outline' : _b,
415
+ _c = _a.size,
416
+ size = _c === void 0 ? 'medium' : _c;
417
+ return jsxRuntime.jsx("goa-icon", {
418
+ type: type,
419
+ theme: theme,
420
+ size: size
421
+ }, void 0);
422
+ }
423
+
424
+ var GoAIconButton = function GoAIconButton(_a) {
425
+ var type = _a.type,
426
+ disabled = _a.disabled,
427
+ _b = _a.variant,
428
+ variant = _b === void 0 ? 'primary' : _b,
429
+ onClick = _a.onClick,
430
+ _c = _a.size,
431
+ size = _c === void 0 ? 'medium' : _c,
432
+ title = _a.title,
433
+ children = _a.children;
434
+ var ref = React.useRef(null);
435
+ React.useEffect(function () {
436
+ if (!ref.current) {
437
+ return;
1053
438
  }
1054
- return null;
1055
- }
1056
-
1057
- return createChainableTypeChecker(validate);
1058
- }
1059
-
1060
- function isNode(propValue) {
1061
- switch (typeof propValue) {
1062
- case 'number':
1063
- case 'string':
1064
- case 'undefined':
1065
- return true;
1066
- case 'boolean':
1067
- return !propValue;
1068
- case 'object':
1069
- if (Array.isArray(propValue)) {
1070
- return propValue.every(isNode);
1071
- }
1072
- if (propValue === null || isValidElement(propValue)) {
1073
- return true;
1074
- }
1075
-
1076
- var iteratorFn = getIteratorFn(propValue);
1077
- if (iteratorFn) {
1078
- var iterator = iteratorFn.call(propValue);
1079
- var step;
1080
- if (iteratorFn !== propValue.entries) {
1081
- while (!(step = iterator.next()).done) {
1082
- if (!isNode(step.value)) {
1083
- return false;
1084
- }
1085
- }
1086
- } else {
1087
- // Iterator will provide entry [k,v] tuples rather than values.
1088
- while (!(step = iterator.next()).done) {
1089
- var entry = step.value;
1090
- if (entry) {
1091
- if (!isNode(entry[1])) {
1092
- return false;
1093
- }
1094
- }
1095
- }
1096
- }
1097
- } else {
1098
- return false;
1099
- }
1100
-
1101
- return true;
1102
- default:
1103
- return false;
1104
- }
1105
- }
1106
-
1107
- function isSymbol(propType, propValue) {
1108
- // Native Symbol.
1109
- if (propType === 'symbol') {
1110
- return true;
1111
- }
1112
-
1113
- // falsy value can't be a Symbol
1114
- if (!propValue) {
1115
- return false;
1116
- }
1117
-
1118
- // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1119
- if (propValue['@@toStringTag'] === 'Symbol') {
1120
- return true;
1121
- }
1122
-
1123
- // Fallback for non-spec compliant Symbols which are polyfilled.
1124
- if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1125
- return true;
1126
- }
1127
-
1128
- return false;
1129
- }
1130
439
 
1131
- // Equivalent of `typeof` but with special handling for array and regexp.
1132
- function getPropType(propValue) {
1133
- var propType = typeof propValue;
1134
- if (Array.isArray(propValue)) {
1135
- return 'array';
1136
- }
1137
- if (propValue instanceof RegExp) {
1138
- // Old webkits (at least until Android 4.0) return 'function' rather than
1139
- // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1140
- // passes PropTypes.object.
1141
- return 'object';
1142
- }
1143
- if (isSymbol(propType, propValue)) {
1144
- return 'symbol';
1145
- }
1146
- return propType;
1147
- }
440
+ var current = ref.current;
441
+
442
+ var listener = function listener(e) {
443
+ onClick();
444
+ };
445
+
446
+ current.addEventListener('_click', listener);
447
+ return function () {
448
+ current.removeEventListener('_click', listener);
449
+ };
450
+ }, [ref, onClick]);
451
+ return jsxRuntime.jsx("goa-icon-button", __assign({
452
+ ref: ref,
453
+ type: type,
454
+ disabled: disabled,
455
+ variant: variant,
456
+ size: size,
457
+ title: title
458
+ }, {
459
+ children: children
460
+ }), void 0);
461
+ };
1148
462
 
1149
- // This handles more types than `getPropType`. Only used for error messages.
1150
- // See `createPrimitiveTypeChecker`.
1151
- function getPreciseType(propValue) {
1152
- if (typeof propValue === 'undefined' || propValue === null) {
1153
- return '' + propValue;
1154
- }
1155
- var propType = getPropType(propValue);
1156
- if (propType === 'object') {
1157
- if (propValue instanceof Date) {
1158
- return 'date';
1159
- } else if (propValue instanceof RegExp) {
1160
- return 'regexp';
463
+ var GoAInput = function GoAInput(_a) {
464
+ var id = _a.id,
465
+ name = _a.name,
466
+ type = _a.type,
467
+ leadingIcon = _a.leadingIcon,
468
+ trailingIcon = _a.trailingIcon,
469
+ _b = _a.variant,
470
+ variant = _b === void 0 ? 'goa' : _b,
471
+ focused = _a.focused,
472
+ disabled = _a.disabled,
473
+ readonly = _a.readonly,
474
+ value = _a.value,
475
+ placeholder = _a.placeholder,
476
+ error = _a.error,
477
+ testId = _a.testId,
478
+ onTrailingIconClick = _a.onTrailingIconClick,
479
+ onChange = _a.onChange;
480
+ var ref = React.useRef(null);
481
+ React.useEffect(function () {
482
+ if (!ref.current) {
483
+ return;
1161
484
  }
1162
- }
1163
- return propType;
1164
- }
1165
-
1166
- // Returns a string that is postfixed to a warning about an invalid type.
1167
- // For example, "undefined" or "of type array"
1168
- function getPostfixForTypeWarning(value) {
1169
- var type = getPreciseType(value);
1170
- switch (type) {
1171
- case 'array':
1172
- case 'object':
1173
- return 'an ' + type;
1174
- case 'boolean':
1175
- case 'date':
1176
- case 'regexp':
1177
- return 'a ' + type;
1178
- default:
1179
- return type;
1180
- }
1181
- }
1182
485
 
1183
- // Returns class name of the object, if any.
1184
- function getClassName(propValue) {
1185
- if (!propValue.constructor || !propValue.constructor.name) {
1186
- return ANONYMOUS;
1187
- }
1188
- return propValue.constructor.name;
1189
- }
1190
-
1191
- ReactPropTypes.checkPropTypes = checkPropTypes_1;
1192
- ReactPropTypes.resetWarningCache = checkPropTypes_1.resetWarningCache;
1193
- ReactPropTypes.PropTypes = ReactPropTypes;
1194
-
1195
- return ReactPropTypes;
1196
- };
1197
-
1198
- function emptyFunction() {}
1199
- function emptyFunctionWithReset() {}
1200
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
1201
-
1202
- var factoryWithThrowingShims = function() {
1203
- function shim(props, propName, componentName, location, propFullName, secret) {
1204
- if (secret === ReactPropTypesSecret_1) {
1205
- // It is still safe when called from React.
1206
- return;
1207
- }
1208
- var err = new Error(
1209
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1210
- 'Use PropTypes.checkPropTypes() to call them. ' +
1211
- 'Read more at http://fb.me/use-check-prop-types'
1212
- );
1213
- err.name = 'Invariant Violation';
1214
- throw err;
1215
- } shim.isRequired = shim;
1216
- function getShim() {
1217
- return shim;
1218
- } // Important!
1219
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1220
- var ReactPropTypes = {
1221
- array: shim,
1222
- bool: shim,
1223
- func: shim,
1224
- number: shim,
1225
- object: shim,
1226
- string: shim,
1227
- symbol: shim,
1228
-
1229
- any: shim,
1230
- arrayOf: getShim,
1231
- element: shim,
1232
- elementType: shim,
1233
- instanceOf: getShim,
1234
- node: shim,
1235
- objectOf: getShim,
1236
- oneOf: getShim,
1237
- oneOfType: getShim,
1238
- shape: getShim,
1239
- exact: getShim,
1240
-
1241
- checkPropTypes: emptyFunctionWithReset,
1242
- resetWarningCache: emptyFunction
486
+ var current = ref.current;
487
+
488
+ var changeListener = function changeListener(e) {
489
+ var _a = e.detail,
490
+ name = _a.name,
491
+ value = _a.value;
492
+ onChange(name, value);
493
+ };
494
+
495
+ var clickListener = function clickListener(e) {
496
+ onTrailingIconClick === null || onTrailingIconClick === void 0 ? void 0 : onTrailingIconClick();
497
+ };
498
+
499
+ current.addEventListener('_change', changeListener);
500
+ current.addEventListener('_trailingIconClick', clickListener);
501
+ return function () {
502
+ current.removeEventListener('_change', changeListener);
503
+ current.removeEventListener('_trailingIconClick', clickListener);
504
+ };
505
+ }, [ref, onChange, onTrailingIconClick]);
506
+ return jsxRuntime.jsx("goa-input", {
507
+ ref: ref,
508
+ focused: focused,
509
+ type: type,
510
+ name: name,
511
+ id: id,
512
+ leadingicon: leadingIcon,
513
+ trailingicon: trailingIcon,
514
+ variant: variant,
515
+ disabled: disabled,
516
+ readonly: readonly,
517
+ placeholder: placeholder,
518
+ error: error,
519
+ "data-testid": testId,
520
+ value: value,
521
+ handletrailingiconclick: !!onTrailingIconClick
522
+ }, void 0);
1243
523
  };
1244
-
1245
- ReactPropTypes.PropTypes = ReactPropTypes;
1246
-
1247
- return ReactPropTypes;
1248
- };
1249
-
1250
- var propTypes = createCommonjsModule(function (module) {
1251
- /**
1252
- * Copyright (c) 2013-present, Facebook, Inc.
1253
- *
1254
- * This source code is licensed under the MIT license found in the
1255
- * LICENSE file in the root directory of this source tree.
1256
- */
1257
-
1258
- if (process.env.NODE_ENV !== 'production') {
1259
- var ReactIs = reactIs;
1260
-
1261
- // By explicitly using `prop-types` you are opting into new development behavior.
1262
- // http://fb.me/prop-types-in-prod
1263
- var throwOnDirectAccess = true;
1264
- module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
1265
- } else {
1266
- // By explicitly using `prop-types` you are opting into new production behavior.
1267
- // http://fb.me/prop-types-in-prod
1268
- module.exports = factoryWithThrowingShims();
1269
- }
1270
- });
1271
-
1272
- function styleInject(css, ref) {
1273
- if ( ref === void 0 ) ref = {};
1274
- var insertAt = ref.insertAt;
1275
-
1276
- if (!css || typeof document === 'undefined') { return; }
1277
-
1278
- var head = document.head || document.getElementsByTagName('head')[0];
1279
- var style = document.createElement('style');
1280
- style.type = 'text/css';
1281
-
1282
- if (insertAt === 'top') {
1283
- if (head.firstChild) {
1284
- head.insertBefore(style, head.firstChild);
1285
- } else {
1286
- head.appendChild(style);
1287
- }
1288
- } else {
1289
- head.appendChild(style);
1290
- }
1291
-
1292
- if (style.styleSheet) {
1293
- style.styleSheet.cssText = css;
1294
- } else {
1295
- style.appendChild(document.createTextNode(css));
1296
- }
1297
- }
1298
-
1299
- var css_248z = "/* typekit ***/\n/* This style is from the alberta design system */\n@import url(\"https://p.typekit.net/p.css?s=1&k=nur5yta&ht=tk&f=26036.26037.26044.26046.26047&a=14638192&app=typekit&e=css\");\n@font-face {\n font-family: 'acumin-pro-semi-condensed';\n src: url(\"https://use.typekit.net/af/3f7b4d/00000000000000003b9acb2d/27/l?subset_id=1&fvd=n4&v=3\") format(\"woff2\"), url(\"https://use.typekit.net/af/3f7b4d/00000000000000003b9acb2d/27/d?subset_id=1&fvd=n4&v=3\") format(\"woff\"), url(\"https://use.typekit.net/af/3f7b4d/00000000000000003b9acb2d/27/a?subset_id=1&fvd=n4&v=3\") format(\"opentype\");\n font-style: normal;\n font-weight: 400; }\n\n@font-face {\n font-family: 'acumin-pro-semi-condensed';\n src: url(\"https://use.typekit.net/af/761912/00000000000000003b9acb2e/27/l?subset_id=1&fvd=i4&v=3\") format(\"woff2\"), url(\"https://use.typekit.net/af/761912/00000000000000003b9acb2e/27/d?subset_id=1&fvd=i4&v=3\") format(\"woff\"), url(\"https://use.typekit.net/af/761912/00000000000000003b9acb2e/27/a?subset_id=1&fvd=i4&v=3\") format(\"opentype\");\n font-style: italic;\n font-weight: 400; }\n\n@font-face {\n font-family: 'acumin-pro-semi-condensed';\n src: url(\"https://use.typekit.net/af/ee7f3d/00000000000000003b9acb33/27/l?subset_id=1&fvd=n7&v=3\") format(\"woff2\"), url(\"https://use.typekit.net/af/ee7f3d/00000000000000003b9acb33/27/d?subset_id=1&fvd=n7&v=3\") format(\"woff\"), url(\"https://use.typekit.net/af/ee7f3d/00000000000000003b9acb33/27/a?subset_id=1&fvd=n7&v=3\") format(\"opentype\");\n font-style: normal;\n font-weight: 700; }\n\n@font-face {\n font-family: 'acumin-pro-semi-condensed';\n src: url(\"https://use.typekit.net/af/503f80/00000000000000003b9acb34/27/l?subset_id=1&fvd=i7&v=3\") format(\"woff2\"), url(\"https://use.typekit.net/af/503f80/00000000000000003b9acb34/27/d?subset_id=1&fvd=i7&v=3\") format(\"woff\"), url(\"https://use.typekit.net/af/503f80/00000000000000003b9acb34/27/a?subset_id=1&fvd=i7&v=3\") format(\"opentype\");\n font-style: italic;\n font-weight: 700; }\n\n@font-face {\n font-family: 'acumin-pro-semi-condensed';\n src: url(\"https://use.typekit.net/af/e60e87/00000000000000003b9acb31/27/l?subset_id=1&fvd=n6&v=3\") format(\"woff2\"), url(\"https://use.typekit.net/af/e60e87/00000000000000003b9acb31/27/d?subset_id=1&fvd=n6&v=3\") format(\"woff\"), url(\"https://use.typekit.net/af/e60e87/00000000000000003b9acb31/27/a?subset_id=1&fvd=n6&v=3\") format(\"opentype\");\n font-style: normal;\n font-weight: 600; }\n\n/* This style is from the alberta design system */\nbody,\ninput,\nbutton,\ntextarea {\n background: #fff;\n font-family: acumin-pro-semi-condensed, sans-serif;\n font-weight: 400;\n font-size: 18px;\n line-height: 28px; }\n\nh1 {\n margin: 0;\n padding: 0;\n line-height: 56px;\n font-size: 48px; }\n\nh2 {\n margin: 24px 0 0;\n padding: 0;\n line-height: 44px;\n color: #333;\n font-size: 36px;\n font-weight: 400; }\n\nh3 {\n margin: 24px 0 0;\n padding: 0;\n line-height: 32px;\n color: #333;\n font-size: 24px;\n font-weight: 400; }\n\nh4 {\n margin: 23px 0 0;\n padding: 0;\n line-height: 28px;\n color: #333;\n font-size: 18px;\n font-weight: 700; }\n\nh5 {\n margin: 23px 0 0;\n padding: 0;\n line-height: 28px;\n color: #333;\n font-size: 18px;\n font-weight: 700; }\n\nh6 {\n margin: 23px 0 0;\n padding: 0;\n line-height: 28px;\n color: #333;\n font-size: 18px;\n font-weight: 700; }\n\np {\n margin: 23px 0 0;\n font-size: 18px;\n line-height: 28px; }\n\ndt {\n font-weight: 700; }\n\nli {\n margin: 13px 0 0 28px;\n font-size: 18px;\n line-height: 28px; }\n\nul {\n list-style-type: disc;\n margin-top: 28px; }\n\nul ul {\n list-style-type: disc; }\n\na:link {\n color: #0070c4; }\n\na:visited {\n color: #756693; }\n\na:hover {\n color: #004f84; }\n\na:focus {\n outline-width: thin;\n outline-style: solid;\n outline-color: #004f84;\n outline-offset: 0px; }\n\n/* anchors *******************************************************************/\nhtml:not([dir='rtl']) main a[target='_blank']:after {\n display: inline-block;\n width: 17px;\n height: 16px;\n margin: 0px 0px -2px 5px;\n background: transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='16' viewBox='0 0 22 20.51'%3E%3Cpath fill='%23333' d='M21,19.69a.58.58,0,0,1-.57.57H3.57A.58.58,0,0,1,3,19.69V4.31a.58.58,0,0,1,.57-.57H6.82v-2H3.57A2.58,2.58,0,0,0,1,4.31V19.69a2.58,2.58,0,0,0,2.57,2.57H20.43A2.58,2.58,0,0,0,23,19.69V16.44H21Z' transform='translate(-1 -1.74)'/%3E%3Cpath fill='%23333' d='M22,1.75H14.15a1,1,0,1,0,0,2h5.44l-7.41,7.41a1,1,0,0,0,.71,1.71,1,1,0,0,0,.7-.3L21,5.17V10.6a1,1,0,1,0,2,0V2.75A1,1,0,0,0,22,1.75Z' transform='translate(-1 -1.74)'/%3E%3C/svg%3E\") no-repeat center center;\n content: ''; }\n\na[href$='.pdf']:after,\na[href$='.doc']:after,\na[href$='.docx']:after {\n display: inline-block;\n width: 16px;\n height: 16px;\n margin: 0px 0px -3px 5px;\n background: transparent url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' shape-rendering='geometricPrecision'%3E%3Cpath d='M0 16L16 16L16 14L0 14Z M8 14L0 6L4 6L4 0L12 0L12 6L16 6Z' fill='%2336424a'/%3E%3C/svg%3E\") no-repeat center center;\n content: ''; }\n";
1300
- styleInject(css_248z);
1301
-
1302
- var css_248z$1 = "/* Palette */\n/* Semantic usages */\n.goa-callout {\n box-sizing: border-box;\n display: inline-block;\n position: relative;\n width: 100%;\n margin: 24px 0 0;\n padding: 23px 24px 23px 24px;\n border-width: 0;\n border-left-width: 48px;\n border-style: solid;\n border-color: #0070c4;\n background: #f1f1f1;\n /* variants ***/ }\n .goa-callout *:first-child {\n margin-top: 0; }\n .goa-callout *:last-child {\n margin-bottom: 0; }\n .goa-callout.goa--important {\n border-color: #feba35; }\n .goa-callout.goa--emergency {\n border-color: #EC040B; }\n .goa-callout.goa--error {\n border-color: #EC040B; }\n .goa-callout.goa--success {\n border-color: #00853f; }\n .goa-callout:before {\n position: absolute;\n top: 28px;\n left: -36px;\n width: 24px;\n height: 24px;\n content: '';\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,20a9,9,0,1,1,9-9A9,9,0,0,1,12,21Z'/%3E%3Cpath fill='%23fff' d='M15.16,15.5h-2V9a1,1,0,0,0-1-1H9.82a1,1,0,0,0,0,2h1.36V15.5h-2a1,1,0,1,0,0,2h6a1,1,0,0,0,0-2Z'/%3E%3Cpath fill='%23fff' d='M12,7.33A1.29,1.29,0,1,0,10.73,6,1.29,1.29,0,0,0,12,7.33Z'/%3E%3C/svg%3E\");\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center center; }\n .goa-callout.goa--emergency:before {\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M11,9.41v4.52a1,1,0,0,0,2,0V9.41a1,1,0,0,0-2,0Z'/%3E%3Cpath fill='%23fff' d='M12,16.15a1.29,1.29,0,1,0,1.29,1.29A1.29,1.29,0,0,0,12,16.15Z'/%3E%3Cpath fill='%23fff' d='M22.87,20.14l-10-17.32a1,1,0,0,0-1.74,0l-10,17.32a1,1,0,0,0,0,1,1,1,0,0,0,.87.5H22a1,1,0,0,0,.87-.5A1,1,0,0,0,22.87,20.14Zm-19.14-.5L12,5.32l8.27,14.32Z'/%3E%3C/svg%3E\");\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center center; }\n .goa-callout.goa--error:before {\n background-image: url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><defs><style>.a{fill:none;}.b{fill:white;}</style></defs><rect class=\"a\" width=\"24\" height=\"24\"/><path class=\"b\" d=\"M48.1,23a11,11,0,1,0-11-11A10.968,10.968,0,0,0,48.1,23Zm0-20a9,9,0,1,1-9,9A8.963,8.963,0,0,1,48.1,3Z\" transform=\"translate(-36)\"/><path class=\"b\" d=\"M43.6,16.4a.967.967,0,0,0,1.4,0l3-3,3,3a.967.967,0,0,0,1.4,0,.967.967,0,0,0,0-1.4l-3-3,3-3A.99.99,0,0,0,51,7.6l-3,3-3-3A.99.99,0,0,0,43.6,9l3,3-3,3A1.2,1.2,0,0,0,43.6,16.4Z\" transform=\"translate(-36)\"/></svg>');\n background-repeat: no-repeat;\n background-size: contain;\n background-position: center center; }\n .goa-callout.goa--important:before {\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,20a9,9,0,1,1,9-9A9,9,0,0,1,12,21Z'/%3E%3Cpath fill='%23000' d='M12,14.46a1,1,0,0,0,1-1V6.57a1,1,0,0,0-2,0v6.89A1,1,0,0,0,12,14.46Z'/%3E%3Cpath fill='%23000' d='M12,15.68A1.29,1.29,0,1,0,13.29,17,1.29,1.29,0,0,0,12,15.68Z'/%3E%3C/svg%3E\");\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center center; }\n .goa-callout.goa--event:before {\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M3.27,22.85H20.73a2.14,2.14,0,0,0,2.14-2.14V5A2.14,2.14,0,0,0,20.73,2.9h-2.1v2h2.1a.14.14,0,0,1,.14.14V8.31H3.13V5a.14.14,0,0,1,.14-.14H5.48V6.28a1,1,0,1,0,2,0V1.85a1,1,0,1,0-2,0v1H3.27A2.14,2.14,0,0,0,1.13,5V20.71A2.14,2.14,0,0,0,3.27,22.85Zm17.6-12.54v10.4a.14.14,0,0,1-.14.14H3.27a.14.14,0,0,1-.14-.14V10.31Z'/%3E%3Cpath fill='%23fff' d='M16.45,7.28a1,1,0,0,0,1-1V1.85a1,1,0,0,0-2,0v1h-1.8v2h1.8V6.28A1,1,0,0,0,16.45,7.28Z'/%3E%3Cpath fill='%23fff' d='M11.47,7.28a1,1,0,0,0,1-1V1.85a1,1,0,1,0-2,0v1H8.66v2h1.81V6.28A1,1,0,0,0,11.47,7.28Z'/%3E%3Crect fill='%23fff' x='6.67' y='11.52' width='2.33' height='2.33'/%3E%3Crect fill='%23fff' x='11.22' y='11.52' width='2.33' height='2.33'/%3E%3Crect fill='%23fff' x='15.77' y='11.52' width='2.33' height='2.33'/%3E%3Crect fill='%23fff' x='3.64' y='15.83' width='2.33' height='2.33'/%3E%3Crect fill='%23fff' x='8.19' y='15.83' width='2.33' height='2.33'/%3E%3Crect fill='%23fff' x='12.74' y='15.83' width='2.33' height='2.33'/%3E%3C/svg%3E\");\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center center; }\n .goa-callout.goa--event:before {\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M3.27,22.85H20.73a2.14,2.14,0,0,0,2.14-2.14V5A2.14,2.14,0,0,0,20.73,2.9h-2.1v2h2.1a.14.14,0,0,1,.14.14V8.31H3.13V5a.14.14,0,0,1,.14-.14H5.48V6.28a1,1,0,1,0,2,0V1.85a1,1,0,1,0-2,0v1H3.27A2.14,2.14,0,0,0,1.13,5V20.71A2.14,2.14,0,0,0,3.27,22.85Zm17.6-12.54v10.4a.14.14,0,0,1-.14.14H3.27a.14.14,0,0,1-.14-.14V10.31Z'/%3E%3Cpath fill='%23fff' d='M16.45,7.28a1,1,0,0,0,1-1V1.85a1,1,0,0,0-2,0v1h-1.8v2h1.8V6.28A1,1,0,0,0,16.45,7.28Z'/%3E%3Cpath fill='%23fff' d='M11.47,7.28a1,1,0,0,0,1-1V1.85a1,1,0,1,0-2,0v1H8.66v2h1.81V6.28A1,1,0,0,0,11.47,7.28Z'/%3E%3Crect fill='%23fff' x='6.67' y='11.52' width='2.33' height='2.33'/%3E%3Crect fill='%23fff' x='11.22' y='11.52' width='2.33' height='2.33'/%3E%3Crect fill='%23fff' x='15.77' y='11.52' width='2.33' height='2.33'/%3E%3Crect fill='%23fff' x='3.64' y='15.83' width='2.33' height='2.33'/%3E%3Crect fill='%23fff' x='8.19' y='15.83' width='2.33' height='2.33'/%3E%3Crect fill='%23fff' x='12.74' y='15.83' width='2.33' height='2.33'/%3E%3C/svg%3E\");\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center center; }\n .goa-callout.goa--success:before {\n background-image: url('data:image/svg+xml,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><defs><style>.a{fill:none;}.b{fill:white;}</style></defs><g transform=\"translate(-23 -68)\"><rect class=\"a\" width=\"24\" height=\"24\" transform=\"translate(23 68)\"/><path class=\"b\" d=\"M12,23A11,11,0,1,0,1,12,10.968,10.968,0,0,0,12,23ZM12,3a9,9,0,1,1-9,9A8.963,8.963,0,0,1,12,3Z\" transform=\"translate(23 68)\"/><path class=\"b\" d=\"M10.9,16.4a.908.908,0,0,0,.7.3h.1a.842.842,0,0,0,.7-.4L17.6,9a.913.913,0,0,0-.2-1.4,1,1,0,0,0-1.4.3l-4.5,6.3L8,10.5a.99.99,0,0,0-1.4,1.4Z\" transform=\"translate(23 68)\"/></g></svg>');\n background-repeat: no-repeat;\n background-size: contain;\n background-position: center center; }\n .goa-callout .messages {\n margin-bottom: 0;\n margin-top: 1em; }\n";
1303
- styleInject(css_248z$1);
1304
-
1305
- var GoACallout = function GoACallout(_ref) {
1306
- var title = _ref.title,
1307
- _ref$type = _ref.type,
1308
- type = _ref$type === void 0 ? "information" : _ref$type,
1309
- content = _ref.content,
1310
- _ref$children = _ref.children,
1311
- children = _ref$children === void 0 ? null : _ref$children,
1312
- props = _objectWithoutProperties(_ref, ["title", "type", "content", "children"]);
1313
-
1314
- return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
1315
- className: "goa-callout goa--".concat(type)
1316
- }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("h3", {
1317
- "data-testid": "callout-title"
1318
- }, title), /*#__PURE__*/React__default.createElement("div", {
1319
- className: "messages",
1320
- "data-testid": "callout-content"
1321
- }, content || children))));
1322
- };
1323
- GoACallout.propTypes = {
1324
- title: propTypes.string,
1325
- type: propTypes.string.isRequired,
1326
- content: propTypes.string
1327
- };
1328
-
1329
- var css_248z$2 = "/* Palette */\n/* Semantic usages */\n.goa-notification {\n box-sizing: border-box;\n display: inline-block;\n position: relative;\n width: 100%;\n padding-left: 72px;\n padding-right: 72px;\n color: #fff;\n background: #0070c4;\n /* variants ***/ }\n .goa-notification.dismissed {\n display: none; }\n @media screen and (min-width: 768px) and (max-width: 1199px) {\n .goa-notification {\n padding-left: 24px;\n padding-right: 24px; } }\n @media screen and (max-width: 767px) {\n .goa-notification {\n padding-left: 24px;\n padding-right: 24px; } }\n .goa-notification .content {\n box-sizing: border-box;\n display: flex;\n width: 100%;\n margin: 0;\n position: relative;\n padding: 0 36px; }\n .goa-notification .content .message {\n flex: 1 0 0;\n box-sizing: border-box;\n min-height: 56px;\n padding: 28px 0; }\n .goa-notification .content .close {\n flex: 0 1 auto; }\n .goa-notification a {\n color: #fff; }\n .goa-notification a:hover, .goa-notification a:focus {\n color: #fff;\n text-decoration: none; }\n .goa-notification.goa--event {\n background-color: #00853f; }\n .goa-notification.goa--important {\n background-color: #feba35; }\n .goa-notification.goa--important .message {\n color: #333; }\n .goa-notification.goa--important a {\n color: #333; }\n .goa-notification.goa--important a:hover, .goa-notification.goa--important a:focus {\n color: #333; }\n .goa-notification.goa--emergency {\n background-color: #EC040B; }\n .goa-notification .close {\n align-self: center;\n position: absolute;\n right: 12px;\n cursor: pointer; }\n .goa-notification .close svg {\n fill: currentColor; }\n .goa-notification .content:before {\n position: absolute;\n top: 50%;\n left: 6px;\n width: 24px;\n height: 24px;\n margin-top: -12px;\n content: '';\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,20a9,9,0,1,1,9-9A9,9,0,0,1,12,21Z'/%3E%3Cpath fill='%23fff' d='M15.16,15.5h-2V9a1,1,0,0,0-1-1H9.82a1,1,0,0,0,0,2h1.36V15.5h-2a1,1,0,1,0,0,2h6a1,1,0,0,0,0-2Z'/%3E%3Cpath fill='%23fff' d='M12,7.33A1.29,1.29,0,1,0,10.73,6,1.29,1.29,0,0,0,12,7.33Z'/%3E%3C/svg%3E\");\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center center; }\n .goa-notification.goa--emergency .content:before {\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M11,9.41v4.52a1,1,0,0,0,2,0V9.41a1,1,0,0,0-2,0Z'/%3E%3Cpath fill='%23fff' d='M12,16.15a1.29,1.29,0,1,0,1.29,1.29A1.29,1.29,0,0,0,12,16.15Z'/%3E%3Cpath fill='%23fff' d='M22.87,20.14l-10-17.32a1,1,0,0,0-1.74,0l-10,17.32a1,1,0,0,0,0,1,1,1,0,0,0,.87.5H22a1,1,0,0,0,.87-.5A1,1,0,0,0,22.87,20.14Zm-19.14-.5L12,5.32l8.27,14.32Z'/%3E%3C/svg%3E\");\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center center; }\n .goa-notification.goa--important .content:before {\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,20a9,9,0,1,1,9-9A9,9,0,0,1,12,21Z'/%3E%3Cpath fill='%23000' d='M12,14.46a1,1,0,0,0,1-1V6.57a1,1,0,0,0-2,0v6.89A1,1,0,0,0,12,14.46Z'/%3E%3Cpath fill='%23000' d='M12,15.68A1.29,1.29,0,1,0,13.29,17,1.29,1.29,0,0,0,12,15.68Z'/%3E%3C/svg%3E\");\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center center; }\n .goa-notification.goa--event .content:before {\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M3.27,22.85H20.73a2.14,2.14,0,0,0,2.14-2.14V5A2.14,2.14,0,0,0,20.73,2.9h-2.1v2h2.1a.14.14,0,0,1,.14.14V8.31H3.13V5a.14.14,0,0,1,.14-.14H5.48V6.28a1,1,0,1,0,2,0V1.85a1,1,0,1,0-2,0v1H3.27A2.14,2.14,0,0,0,1.13,5V20.71A2.14,2.14,0,0,0,3.27,22.85Zm17.6-12.54v10.4a.14.14,0,0,1-.14.14H3.27a.14.14,0,0,1-.14-.14V10.31Z'/%3E%3Cpath fill='%23fff' d='M16.45,7.28a1,1,0,0,0,1-1V1.85a1,1,0,0,0-2,0v1h-1.8v2h1.8V6.28A1,1,0,0,0,16.45,7.28Z'/%3E%3Cpath fill='%23fff' d='M11.47,7.28a1,1,0,0,0,1-1V1.85a1,1,0,1,0-2,0v1H8.66v2h1.81V6.28A1,1,0,0,0,11.47,7.28Z'/%3E%3Crect fill='%23fff' x='6.67' y='11.52' width='2.33' height='2.33'/%3E%3Crect fill='%23fff' x='11.22' y='11.52' width='2.33' height='2.33'/%3E%3Crect fill='%23fff' x='15.77' y='11.52' width='2.33' height='2.33'/%3E%3Crect fill='%23fff' x='3.64' y='15.83' width='2.33' height='2.33'/%3E%3Crect fill='%23fff' x='8.19' y='15.83' width='2.33' height='2.33'/%3E%3Crect fill='%23fff' x='12.74' y='15.83' width='2.33' height='2.33'/%3E%3C/svg%3E\");\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center center; }\n";
1330
- styleInject(css_248z$2);
1331
-
1332
- var css_248z$3 = ".goa-notifications .title {\n position: absolute;\n overflow: hidden;\n clip: rect(1px, 1px, 1px, 1px);\n left: -10px;\n width: 1px;\n height: 1px;\n white-space: nowrap; }\n\n.goa-notifications ul {\n box-sizing: border-box;\n display: inline-block;\n width: 100%;\n margin: 0;\n padding: 0;\n list-style-type: none; }\n .goa-notifications ul li {\n box-sizing: border-box;\n display: block;\n width: 100%;\n margin: 0;\n padding: 0; }\n";
1333
- styleInject(css_248z$3);
1334
-
1335
- var GoANotification = function GoANotification(_ref) {
1336
- var title = _ref.title,
1337
- _ref$type = _ref.type,
1338
- type = _ref$type === void 0 ? "information" : _ref$type,
1339
- message = _ref.message,
1340
- notificationUrl = _ref.notificationUrl,
1341
- _ref$isDismissable = _ref.isDismissable,
1342
- isDismissable = _ref$isDismissable === void 0 ? true : _ref$isDismissable,
1343
- _ref$children = _ref.children,
1344
- children = _ref$children === void 0 ? null : _ref$children,
1345
- onDismiss = _ref.onDismiss,
1346
- props = _objectWithoutProperties(_ref, ["title", "type", "message", "notificationUrl", "isDismissable", "children", "onDismiss"]);
1347
-
1348
- var _useState = React.useState(false),
1349
- _useState2 = _slicedToArray(_useState, 2),
1350
- dismissed = _useState2[0],
1351
- setDismissed = _useState2[1];
1352
-
1353
- var dismissTrigger = function dismissTrigger(dismissAction) {
1354
- setDismissed(dismissAction);
1355
- onDismiss();
524
+ var GoAInputText = function GoAInputText(props) {
525
+ return jsxRuntime.jsx(GoAInput, __assign({}, props, {
526
+ type: "text"
527
+ }), void 0);
1356
528
  };
1357
-
1358
- if (!dismissed) {
1359
- return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
1360
- className: "goa-notifications"
1361
- }, /*#__PURE__*/React__default.createElement("h2", {
1362
- className: "title"
1363
- }, title)), /*#__PURE__*/React__default.createElement("div", {
1364
- role: "notification",
1365
- className: "goa-notification goa--".concat(type)
1366
- }, /*#__PURE__*/React__default.createElement("div", {
1367
- className: "content"
1368
- }, notificationUrl ? /*#__PURE__*/React__default.createElement("a", {
1369
- className: "message",
1370
- role: "url",
1371
- href: notificationUrl
1372
- }, message || children) : /*#__PURE__*/React__default.createElement("span", {
1373
- className: "message"
1374
- }, message || children), isDismissable && /*#__PURE__*/React__default.createElement("a", {
1375
- role: "closeBox",
1376
- className: "close",
1377
- title: "Dismiss",
1378
- onClick: function onClick() {
1379
- return dismissTrigger(!dismissed);
1380
- }
1381
- }, /*#__PURE__*/React__default.createElement("svg", {
1382
- width: "16px",
1383
- height: "16px",
1384
- viewBox: "0 0 16 16"
1385
- }, /*#__PURE__*/React__default.createElement("path", {
1386
- d: "M 15.99 14.54C 15.99 14.54 14.54 15.99 14.54 15.99 14.54 15.99 8 9.45 8 9.45 8 9.45 1.46 15.99 1.46 15.99 1.46 15.99 0.01 14.54 0.01 14.54 0.01 14.54 6.55 8 6.55 8 6.55 8 0.01 1.46 0.01 1.46 0.01 1.46 1.46 0.01 1.46 0.01 1.46 0.01 8 6.55 8 6.55 8 6.55 14.54 0.01 14.54 0.01 14.54 0.01 15.99 1.46 15.99 1.46 15.99 1.46 9.45 8 9.45 8 9.45 8 15.99 14.54 15.99 14.54Z"
1387
- }))))));
1388
- } else {
1389
- return null;
1390
- }
1391
- };
1392
- GoANotification.propTypes = {
1393
- title: propTypes.string,
1394
- type: propTypes.string.isRequired,
1395
- content: propTypes.string
1396
- };
1397
-
1398
- var css_248z$4 = "/* Palette */\n/* Semantic usages */\n/* Common button colors */\n/* Primary colors */\n/* Secondary colors */\n/* Tertiary colors */\n/* This style is from the alberta design system */\nbutton.goa-button,\ninput[type='button'].goa-button,\ninput[type='submit'].goa-button {\n box-sizing: border-box;\n min-width: 70px;\n padding: 12px;\n border: 2px solid #0070c4;\n border-radius: 4px;\n background: #0070c4;\n cursor: pointer;\n color: #fff;\n font-size: 18px;\n font-weight: 700;\n line-height: 1em; }\n button.goa-button.btn-small,\n input[type='button'].goa-button.btn-small,\n input[type='submit'].goa-button.btn-small {\n font-size: 16px;\n padding: 8px;\n margin: 12px 12px 0 0; }\n button.goa-button:last-of-type,\n input[type='button'].goa-button:last-of-type,\n input[type='submit'].goa-button:last-of-type {\n margin-right: 0; }\n button.goa-button:disabled, button.goa-button:disabled.goa--secondary, button.goa-button:disabled.goa--tertiary,\n input[type='button'].goa-button:disabled,\n input[type='button'].goa-button:disabled.goa--secondary,\n input[type='button'].goa-button:disabled.goa--tertiary,\n input[type='submit'].goa-button:disabled,\n input[type='submit'].goa-button:disabled.goa--secondary,\n input[type='submit'].goa-button:disabled.goa--tertiary {\n pointer-events: none;\n color: #666;\n background-color: #f1f1f1;\n border-color: #f1f1f1; }\n button.goa-button:hover,\n input[type='button'].goa-button:hover,\n input[type='submit'].goa-button:hover {\n border-color: #004f84;\n background: #004f84; }\n button.goa-button:focus, button.goa-button:active,\n input[type='button'].goa-button:focus,\n input[type='button'].goa-button:active,\n input[type='submit'].goa-button:focus,\n input[type='submit'].goa-button:active {\n border-color: #004f84;\n box-shadow: 0 0 0 3px #feba35;\n background: #004f84;\n outline: none; }\n button.goa-button.goa--secondary,\n input[type='button'].goa-button.goa--secondary,\n input[type='submit'].goa-button.goa--secondary {\n border: 2px solid #0070c4;\n background: #fff;\n color: #0070c4; }\n button.goa-button.goa--secondary:hover,\n input[type='button'].goa-button.goa--secondary:hover,\n input[type='submit'].goa-button.goa--secondary:hover {\n border-color: #004f84;\n background: #fff;\n color: #004f84; }\n button.goa-button.goa--secondary:focus, button.goa-button.goa--secondary:active,\n input[type='button'].goa-button.goa--secondary:focus,\n input[type='button'].goa-button.goa--secondary:active,\n input[type='submit'].goa-button.goa--secondary:focus,\n input[type='submit'].goa-button.goa--secondary:active {\n color: #004f84;\n background-color: #fff;\n border: 2px solid #004f84;\n box-shadow: 0 0 0 3px #feba35;\n outline: none; }\n button.goa-button.goa--tertiary,\n input[type='button'].goa-button.goa--tertiary,\n input[type='submit'].goa-button.goa--tertiary {\n border-color: #dcdcdc;\n background: #fff;\n color: #0070c4; }\n button.goa-button.goa--tertiary:hover,\n input[type='button'].goa-button.goa--tertiary:hover,\n input[type='submit'].goa-button.goa--tertiary:hover {\n background: #fff;\n color: #004f84; }\n button.goa-button.goa--tertiary:focus, button.goa-button.goa--tertiary:active,\n input[type='button'].goa-button.goa--tertiary:focus,\n input[type='button'].goa-button.goa--tertiary:active,\n input[type='submit'].goa-button.goa--tertiary:focus,\n input[type='submit'].goa-button.goa--tertiary:active {\n border: 2px solid #004f84;\n color: #004f84;\n background-color: #fff;\n box-shadow: 0 0 0 3px #feba35;\n outline: none; }\n";
1399
- styleInject(css_248z$4);
1400
-
1401
- var GoAButton = function GoAButton(_ref) {
1402
- var _ref$buttonType = _ref.buttonType,
1403
- buttonType = _ref$buttonType === void 0 ? 'primary' : _ref$buttonType,
1404
- _ref$buttonSize = _ref.buttonSize,
1405
- buttonSize = _ref$buttonSize === void 0 ? 'normal' : _ref$buttonSize,
1406
- _ref$title = _ref.title,
1407
- title = _ref$title === void 0 ? null : _ref$title,
1408
- _ref$children = _ref.children,
1409
- children = _ref$children === void 0 ? null : _ref$children,
1410
- _ref$onClick = _ref.onClick,
1411
- onClick = _ref$onClick === void 0 ? null : _ref$onClick,
1412
- props = _objectWithoutProperties(_ref, ["buttonType", "buttonSize", "title", "children", "onClick"]);
1413
-
1414
- var btnTypeClass = buttonType === 'primary' ? '' : "goa--".concat(buttonType);
1415
- var btnSize = buttonSize === 'small' ? 'btn-small' : '';
1416
- return /*#__PURE__*/React__default.createElement("button", Object.assign({
1417
- className: "goa-button ".concat(btnSize, " ").concat(btnTypeClass),
1418
- title: title,
1419
- onClick: onClick
1420
- }, props), children);
1421
- };
1422
- GoAButton.propTypes = {
1423
- buttonSize: propTypes.string,
1424
- buttonType: propTypes.string,
1425
- title: propTypes.string,
1426
- children: propTypes.node,
1427
- onClick: propTypes.func
1428
- };
1429
-
1430
- var css_248z$5 = "/* Palette */\n/* Semantic usages */\n.goa-header {\n display: flex;\n align-items: center;\n padding-left: 28px;\n padding-right: 28px; }\n @media screen and (min-width: 768px) and (max-width: 1199px) {\n .goa-header {\n padding-left: 28px;\n padding-right: 28px; } }\n @media screen and (max-width: 767px) {\n .goa-header {\n padding-left: 28px;\n padding-right: 28px; } }\n .goa-header.goa-microsite-header,\n .goa-header > .goa-microsite-header {\n background-color: #fff;\n top: 0;\n display: flex;\n justify-content: space-between; }\n .goa-header.goa-official-site-header,\n .goa-header > .goa-official-site-header {\n font-size: 12px;\n background-color: #f1f1f1;\n line-height: 22px; }\n .goa-header.goa-official-site-header .site-text,\n .goa-header > .goa-official-site-header .site-text {\n white-space: nowrap;\n padding: 0 4px; }\n .goa-header.goa-official-site-header .service-level,\n .goa-header > .goa-official-site-header .service-level {\n padding: 0 3px;\n font-weight: bold;\n vertical-align: baseline;\n text-transform: capitalize; }\n .goa-header.goa-official-site-header .service-level--alpha,\n .goa-header > .goa-official-site-header .service-level--alpha {\n background-color: #feba35;\n color: #333; }\n .goa-header.goa-official-site-header .service-level--beta,\n .goa-header > .goa-official-site-header .service-level--beta {\n background-color: #0081a2;\n color: #fff; }\n .goa-header.goa-official-site-header .service-level--live,\n .goa-header > .goa-official-site-header .service-level--live {\n height: 16px;\n width: 16px;\n padding: 0;\n color: transparent;\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='16' height='16' viewBox='0 0 16 16'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:none;%7D.b%7Bfill:%2300aad2;%7D.c%7Bclip-path:url(%23a);%7D.d%7Bfill:%23fff;%7D%3C/style%3E%3CclipPath id='a'%3E%3Crect class='a' width='14' height='14' transform='translate(-0.345 -0.21)'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg transform='translate(0 -0.135)'%3E%3Ccircle class='b' cx='8' cy='8' r='8' transform='translate(0 0.135)'/%3E%3Cg transform='translate(1.345 1.344)'%3E%3Cg class='c' transform='translate(0 0)'%3E%3Cpath class='d' d='M12.612,13.636a16.24,16.24,0,0,1-1.86-.822,13.436,13.436,0,0,0,1.6-.708,11.312,11.312,0,0,0,.264,1.53M16.032,7.3c-.266-.034-.128.091-.2.442a5.465,5.465,0,0,1-2.8,3.338,16.141,16.141,0,0,1,.249-4.84c.275-1,.6-.813.2-1.022-.427-.22-.887.071-1.258.813A27.247,27.247,0,0,1,7.4,13.522a2.141,2.141,0,0,1-2.918.461c-.206-.174-.282.095-.026.37a2.412,2.412,0,0,0,3.387-.082A32.715,32.715,0,0,0,12.219,7.51a23.541,23.541,0,0,0,.063,3.971,11.464,11.464,0,0,1-1.964.749c-.388.1-.628.26-.635.439-.007.2.253.363.63.541.67.318,2.633,1.246,3.117,1.527.414.24.616.053.739-.207.16-.338-.279-.533-.7-.661a13.175,13.175,0,0,1-.382-2.179,7.143,7.143,0,0,0,2.547-2.454,4.7,4.7,0,0,0,.4-1.133,2.125,2.125,0,0,0,.048-.742s-.007-.054-.048-.059' transform='translate(-3.51 -3.943)'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-size: contain;\n background-position: center center; }\n .goa-header .web-link {\n color: #0070c4;\n text-align: left; }\n";
1431
- styleInject(css_248z$5);
1432
-
1433
- var css_248z$6 = "a.microsite-link {\n color: inherit;\n text-decoration: none;\n white-space: nowrap;\n display: flex;\n align-items: center;\n height: 66px; }\n a.microsite-link:focus, a.microsite-link:hover, a.microsite-link:active {\n outline: none; }\n a.microsite-link .image-desktop-tablet {\n width: 150px;\n height: 42px;\n display: inline-block;\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='149.351' height='42' viewBox='0 0 149.351 42'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:none;%7D.b%7Bclip-path:url(%23a);%7D.c%7Bfill:%2300aad2;%7D.d%7Bfill:%235f6a72;%7D%3C/style%3E%3CclipPath id='a'%3E%3Crect class='a' width='149.351' height='42'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg class='b'%3E%3Crect class='c' width='13.555' height='13.555' transform='translate(135.796 21.524)'/%3E%3Cpath class='d' d='M63.082,33.088c-1.383.138-2.835.277-4.357.346.553-4.357,2.835-10.373,5.671-9.405,1.66.553.761,5.671-1.314,9.059m-3.527,2.974a3.761,3.761,0,0,1-1.245,0,.851.851,0,0,0,.346-.692v-.553c.761,0,1.936-.138,3.389-.277a4.327,4.327,0,0,1-2.49,1.521M76.844,25.688c1.8-1.66,2.7-1.521,2.9-1.106.484.968-1.591,4.357-5.671,6.224a10.328,10.328,0,0,1,2.766-5.118m66.736,1.66c-.207-3.389-3.181-3.942-3.6-2.974-.138.346,1.106.207,1.106,2.628,0,3.942-4.011,9.129-9.129,9.129-5.532,0-6.985-4.357-7.261-6.432-.207-1.452.138-3.458-2.351-3.181-1.729.207-3.25,3.527-5.463,6.362-1.867,2.42-2.7,2.213-2.282.138.553-2.628,2.7-8.714,5.187-9.129,1.176-.207,1.591,1.8,2.075.553s.069-4.011-2.559-4.011c-1.8,0-3.942,1.936-5.74,4.08-1.521,1.936-9.336,13.416-12.656,10.927-1.521-1.176-1.383-5.878-.415-11.411,3.873-1.521,7.123-1.037,8.921-.138.9.415,1.037.346.622-.622-.553-1.452-3.665-3.734-8.575-2.7-.138,0-.207.069-.346.069.415-1.8.83-3.665,1.383-5.463.484-1.66,1.8-4.5-1.729-4.979-1.106-.207-.622.346-1.037,1.867-.692,2.766-1.521,6.362-2.144,10.028a19.745,19.745,0,0,0-7.538,8.091,38.59,38.59,0,0,0,.9-4.772,1.589,1.589,0,0,0-1.245-1.729c-.761-.207-1.729.138-2.628,1.452-2.144,3.043-4.841,7.815-8.99,9.82-2.974,1.452-4.288,0-4.357-2.282a9.869,9.869,0,0,0,1.521-.553c5.394-2.351,7.192-5.947,5.878-8.16-1.314-2.075-4.979-1.452-7.953,1.66a11.175,11.175,0,0,0-2.7,6.5c-1.245.277-2.628.484-4.219.692,2.49-4.08,2.282-9.613-1.383-10.581-4.288-1.106-6.432,3.043-7.331,6.5.346-3.873.9-7.745,1.591-11.549.346-1.66,1.452-4.5-2.075-4.979-1.106-.207-.968.346-.9,1.867.138,2.075-2.144,14.454-.968,19.848-1.521.484-2.144,1.66-.207,2.835,1.383.83,4.357,1.106,7.331-.346a9.3,9.3,0,0,0,2.766-2.144c1.8-.207,3.665-.553,5.394-.83.277,2.42,1.867,4.219,5.463,3.873,5.118-.484,9.682-6.777,11.411-9.82-.346,3.25-2.42,10.373,1.176,10.028,1.383-.138.83-.346.9-1.591.346-4.288,3.873-7.953,7.4-10.166-.622,5.256-.415,9.958,2.006,11.411,4.426,2.766,10.581-4.5,14.039-8.921-1.729,3.942-2.7,8.921-.138,9.682,3.043.9,5.463-4.219,8.3-8.091.346,2.766,2.213,7.607,9.682,7.607,8.022-.069,13.071-4.91,12.863-10.1m-108.3,8.645A66.439,66.439,0,0,1,27.4,32.534a59.168,59.168,0,0,0,6.777-2.974,54.453,54.453,0,0,0,1.106,6.432m20.4,3.873c-.069-.207-.622.069-1.106,0-1.452-.207-3.389-2.213-3.942-5.463-1.037-5.878-.415-11.687,1.314-20.332.346-1.66,1.452-4.5-2.075-5.048-1.106-.138-.553.415-.83,1.867C47.66,17.32,42.4,21.954,37.149,25.066,36.6,17.735,36.8,9.505,38.186,4.526c1.176-4.219,2.559-3.458.83-4.357s-3.734.277-5.325,3.458S24.839,23.89,13.221,35.439C7.273,41.317,1.879,38.274.842,37.375c-.9-.761-1.176.415-.138,1.591,4.772,5.256,11.826,2.282,14.384-.277,7.054-7.054,15.283-22.268,18.6-28.7a98.251,98.251,0,0,0,.277,16.874,50.129,50.129,0,0,1-8.3,3.181c-1.66.415-2.7,1.106-2.7,1.867s1.106,1.521,2.7,2.282c2.835,1.383,11.2,5.256,13.209,6.5,1.729,1.037,2.628.207,3.112-.9.692-1.452-1.176-2.282-2.974-2.766a60.545,60.545,0,0,1-1.66-9.267c4.219-2.628,8.437-6.086,10.788-10.443C47.522,20.916,46,33.3,49.873,38.482a5.451,5.451,0,0,0,4.564,2.213c.968-.069,1.383-.692,1.245-.83' transform='translate(-0.038 0.124)'/%3E%3C/g%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-size: contain;\n background-position: center center; }\n @media screen and (max-width: 767px) {\n a.microsite-link .image-desktop-tablet {\n display: none; } }\n @media screen and (min-width: 768px) and (max-width: 1199px) {\n a.microsite-link .image-mobile {\n display: none; } }\n @media screen and (min-width: 1200px) {\n a.microsite-link .image-mobile {\n display: none; } }\n @media screen and (max-width: 767px) {\n a.microsite-link .image-mobile {\n width: 34px;\n height: 34px;\n display: inline-block;\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='16' height='16' viewBox='0 0 16 16'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:none;%7D.b%7Bfill:%2300aad2;%7D.c%7Bclip-path:url(%23a);%7D.d%7Bfill:%23fff;%7D%3C/style%3E%3CclipPath id='a'%3E%3Crect class='a' width='14' height='14' transform='translate(-0.345 -0.21)'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg transform='translate(0 -0.135)'%3E%3Ccircle class='b' cx='8' cy='8' r='8' transform='translate(0 0.135)'/%3E%3Cg transform='translate(1.345 1.344)'%3E%3Cg class='c' transform='translate(0 0)'%3E%3Cpath class='d' d='M12.612,13.636a16.24,16.24,0,0,1-1.86-.822,13.436,13.436,0,0,0,1.6-.708,11.312,11.312,0,0,0,.264,1.53M16.032,7.3c-.266-.034-.128.091-.2.442a5.465,5.465,0,0,1-2.8,3.338,16.141,16.141,0,0,1,.249-4.84c.275-1,.6-.813.2-1.022-.427-.22-.887.071-1.258.813A27.247,27.247,0,0,1,7.4,13.522a2.141,2.141,0,0,1-2.918.461c-.206-.174-.282.095-.026.37a2.412,2.412,0,0,0,3.387-.082A32.715,32.715,0,0,0,12.219,7.51a23.541,23.541,0,0,0,.063,3.971,11.464,11.464,0,0,1-1.964.749c-.388.1-.628.26-.635.439-.007.2.253.363.63.541.67.318,2.633,1.246,3.117,1.527.414.24.616.053.739-.207.16-.338-.279-.533-.7-.661a13.175,13.175,0,0,1-.382-2.179,7.143,7.143,0,0,0,2.547-2.454,4.7,4.7,0,0,0,.4-1.133,2.125,2.125,0,0,0,.048-.742s-.007-.054-.048-.059' transform='translate(-3.51 -3.943)'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-size: contain;\n background-position: center center; } }\n a.microsite-link .name {\n margin-left: 8px;\n font-size: 16px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis; }\n @media screen and (min-width: 1200px) {\n a.microsite-link .name {\n margin-left: 28px; } }\n @media screen and (min-width: 768px) and (max-width: 1199px) {\n a.microsite-link .name {\n margin-left: 28px; } }\n";
1434
- styleInject(css_248z$6);
1435
-
1436
- /* eslint-disable-next-line */
1437
-
1438
- var MicrositeLogo = function MicrositeLogo(props) {
1439
- return /*#__PURE__*/React__default.createElement("a", {
1440
- href: props.serviceHome,
1441
- "aria-label": props.serviceHome,
1442
- className: "microsite-link"
1443
- }, /*#__PURE__*/React__default.createElement("span", {
1444
- className: "image-desktop-tablet"
1445
- }), /*#__PURE__*/React__default.createElement("span", {
1446
- className: "image-mobile"
1447
- }), /*#__PURE__*/React__default.createElement("span", {
1448
- className: "name"
1449
- }, props.serviceName));
1450
- };
1451
-
1452
- var GoAHeader = function GoAHeader(props) {
1453
- var serviceLevelCss = classnames('service-level', "service-level--".concat(props.serviceLevel.toString().toLowerCase()));
1454
-
1455
- function serviceLevelFormatted() {
1456
- return props.serviceLevel.toLowerCase();
1457
- }
1458
-
1459
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("header", {
1460
- className: "goa-header goa-official-site-header"
1461
- }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("span", {
1462
- className: serviceLevelCss
1463
- }, serviceLevelFormatted())), props.serviceLevel === 'live' && /*#__PURE__*/React__default.createElement("div", {
1464
- className: "site-text"
1465
- }, "An official site of the ", /*#__PURE__*/React__default.createElement("a", {
1466
- href: "https://www.alberta.ca/index.aspx",
1467
- className: "web-link"
1468
- }, "Alberta Government")), props.serviceLevel !== 'live' && /*#__PURE__*/React__default.createElement("div", {
1469
- className: "site-text"
1470
- }, "This is a new ", /*#__PURE__*/React__default.createElement("a", {
1471
- href: "https://www.alberta.ca/index.aspx",
1472
- className: "web-link"
1473
- }, "Alberta Government"), " service")), /*#__PURE__*/React__default.createElement("div", {
1474
- className: "goa-header goa-microsite-header"
1475
- }, /*#__PURE__*/React__default.createElement(MicrositeLogo, {
1476
- serviceName: props.serviceName,
1477
- serviceHome: props.serviceHome
1478
- }), /*#__PURE__*/React__default.createElement("div", null, props.children)));
1479
- };
1480
-
1481
- var css_248z$7 = ".goa-hero-banner-content {\n font-size: 18px;\n line-height: 32px;\n margin: 0; }\n @media screen and (min-width: 768px) and (max-width: 1199px) {\n .goa-hero-banner-content {\n width: 80%; } }\n @media screen and (min-width: 1200px) {\n .goa-hero-banner-content {\n width: 40%; } }\n .goa-hero-banner-content:last-of-type {\n margin-bottom: 28px; }\n";
1482
- styleInject(css_248z$7);
1483
-
1484
- var GoAHeroBannerContent = function GoAHeroBannerContent(_ref) {
1485
- var content = _ref.content,
1486
- children = _ref.children;
1487
- return /*#__PURE__*/React__default.createElement("p", {
1488
- className: "goa-hero-banner-content",
1489
- role: "note"
1490
- }, children || content);
1491
- };
1492
-
1493
- var css_248z$8 = "/* Palette */\n/* Semantic usages */\n/* Palette */\n/* Semantic usages */\n/* Common button colors */\n/* Primary colors */\n/* Secondary colors */\n/* Tertiary colors */\n/* This style is from the alberta design system */\n/* This style is from the alberta design system */\n.goa-link-button.goa-link-button {\n display: inline-block;\n text-decoration: none; }\n .goa-link-button.goa-link-button {\n box-sizing: border-box;\n min-width: 70px;\n padding: 12px;\n border: 2px solid #0070c4;\n border-radius: 4px;\n background: #0070c4;\n cursor: pointer;\n color: #fff;\n font-size: 18px;\n font-weight: 700;\n line-height: 1em; }\n .goa-link-button.goa-link-button.btn-small {\n font-size: 16px;\n padding: 8px;\n margin: 12px 12px 0 0; }\n .goa-link-button.goa-link-button:last-of-type {\n margin-right: 0; }\n .goa-link-button.goa-link-button:disabled, .goa-link-button.goa-link-button:disabled.goa--secondary, .goa-link-button.goa-link-button:disabled.goa--tertiary {\n pointer-events: none;\n color: #666;\n background-color: #f1f1f1;\n border-color: #f1f1f1; }\n .goa-link-button.goa-link-button:hover {\n border-color: #004f84;\n background: #004f84; }\n .goa-link-button.goa-link-button:focus, .goa-link-button.goa-link-button:active {\n border-color: #004f84;\n box-shadow: 0 0 0 3px #feba35;\n background: #004f84;\n outline: none; }\n .goa-link-button.goa-link-button.goa--secondary {\n border: 2px solid #0070c4;\n background: #fff;\n color: #0070c4; }\n .goa-link-button.goa-link-button.goa--secondary:hover {\n border-color: #004f84;\n background: #fff;\n color: #004f84; }\n .goa-link-button.goa-link-button.goa--secondary:focus, .goa-link-button.goa-link-button.goa--secondary:active {\n color: #004f84;\n background-color: #fff;\n border: 2px solid #004f84;\n box-shadow: 0 0 0 3px #feba35;\n outline: none; }\n .goa-link-button.goa-link-button.goa--tertiary {\n border-color: #dcdcdc;\n background: #fff;\n color: #0070c4; }\n .goa-link-button.goa-link-button.goa--tertiary:hover {\n background: #fff;\n color: #004f84; }\n .goa-link-button.goa-link-button.goa--tertiary:focus, .goa-link-button.goa-link-button.goa--tertiary:active {\n border: 2px solid #004f84;\n color: #004f84;\n background-color: #fff;\n box-shadow: 0 0 0 3px #feba35;\n outline: none; }\n .goa-link-button.goa-link-button.right-arrow::after {\n margin-left: 8px;\n content: '\\2192'; }\n .goa-link-button.goa-link-button.up-arrow::after {\n margin-left: 8px;\n content: '\\2191'; }\n .goa-link-button.goa-link-button:visited, .goa-link-button.goa-link-button:link {\n color: #fff; }\n";
1494
- styleInject(css_248z$8);
1495
-
1496
- var GoAHeroBannerLink = function GoAHeroBannerLink(_ref) {
1497
- var linkText = _ref.linkText,
1498
- linkUrl = _ref.linkUrl;
1499
- return linkText && linkUrl ? /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("a", {
1500
- className: "goa-link-button right-arrow",
1501
- href: linkUrl,
1502
- role: "link"
1503
- }, linkText)) : /*#__PURE__*/React__default.createElement(React.Fragment, null);
1504
- };
1505
-
1506
- var css_248z$9 = "/* Palette */\n/* Semantic usages */\n.goa-hero {\n box-sizing: border-box;\n display: flex;\n justify-content: flex-end;\n align-items: stretch;\n flex-direction: column;\n height: 600px;\n border-bottom: 8px solid #0081a2;\n color: #fff;\n background-position: center center;\n width: 100%;\n padding: 56px 28px; }\n .goa-hero h1 {\n margin: 0 0 28px;\n padding: 0;\n font-size: 48px;\n line-height: 56px;\n font-weight: 700; }\n";
1507
- styleInject(css_248z$9);
1508
-
1509
- var GoAHeroBanner = function GoAHeroBanner(_ref) {
1510
- var title = _ref.title,
1511
- backgroundUrl = _ref.backgroundUrl,
1512
- content = _ref.content,
1513
- linkText = _ref.linkText,
1514
- linkUrl = _ref.linkUrl,
1515
- children = _ref.children;
1516
- return /*#__PURE__*/React__default.createElement("div", {
1517
- className: "goa-hero",
1518
- style: {
1519
- backgroundImage: "linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.40) 40%, rgba(0, 0, 0, 0.6) 100%), url('".concat(backgroundUrl, "')")
1520
- }
1521
- }, /*#__PURE__*/React__default.createElement("h1", {
1522
- role: "heading",
1523
- "aria-level": 1
1524
- }, title), children || /*#__PURE__*/React__default.createElement(React.Fragment, null, content && /*#__PURE__*/React__default.createElement(GoAHeroBannerContent, {
1525
- content: content
1526
- }), linkText && linkUrl && /*#__PURE__*/React__default.createElement(GoAHeroBannerLink, {
1527
- linkText: linkText,
1528
- linkUrl: linkUrl
1529
- })));
1530
- };
1531
- GoAHeroBanner.defaultProps = {
1532
- content: '',
1533
- linkText: '',
1534
- linkUrl: ''
1535
- };
1536
-
1537
- var css_248z$a = "/* Palette */\n/* Semantic usages */\n@use '../variables/main.css';\n/* Palette */\n/* Semantic usages */\n@-webkit-keyframes pulse {\n 0% {\n opacity: 0.5; }\n 50% {\n opacity: 1; }\n 100% {\n opacity: 0.5; } }\n@keyframes pulse {\n 0% {\n opacity: 0.5; }\n 50% {\n opacity: 1; }\n 100% {\n opacity: 0.5; } }\n\n[data-skeleton] {\n pointer-events: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n [data-skeleton] * {\n border-color: #ddd !important;\n color: transparent !important; }\n [data-skeleton] p,\n [data-skeleton] a {\n background-color: #ddd !important;\n -webkit-animation: pulse 2s infinite ease-in-out;\n animation: pulse 2s infinite ease-in-out;\n display: inline;\n line-height: 0 !important;\n font-size: 50% !important; }\n [data-skeleton] p::after,\n [data-skeleton] a::after {\n content: '' !important;\n display: block !important;\n margin-bottom: 1rem !important;\n background-size: contain; }\n [data-skeleton] h1,\n [data-skeleton] h2,\n [data-skeleton] h3,\n [data-skeleton] h4,\n [data-skeleton] h5,\n [data-skeleton] h6 {\n background-color: #ddd !important;\n -webkit-animation: pulse 2s infinite ease-in-out;\n animation: pulse 2s infinite ease-in-out;\n margin-bottom: 1rem; }\n [data-skeleton] h1 {\n height: calc(0.6 * var(--fs-3xl)) !important; }\n [data-skeleton] h2 {\n height: calc(0.6 * var(--fs-2xl)) !important; }\n [data-skeleton] h3 {\n height: calc(0.6 * var(--fs-xl)) !important; }\n [data-skeleton] h4 {\n height: calc(0.6 * var(--fs-lg)) !important; }\n [data-skeleton] img {\n background-color: #ddd !important;\n -webkit-animation: pulse 2s infinite ease-in-out;\n animation: pulse 2s infinite ease-in-out; }\n\n/* basic styles */\n.skeleton {\n background-color: #ddd !important;\n -webkit-animation: pulse 2s infinite ease-in-out;\n animation: pulse 2s infinite ease-in-out;\n background: #dcdcdc;\n overflow: hidden;\n margin: 10px 0; }\n\n.skeleton.text {\n width: 100%;\n height: 12px;\n border-radius: 4px; }\n\n.skeleton.paragraph {\n width: 100%;\n height: 70px;\n border-radius: 4px; }\n\n.skeleton.title {\n width: 50%;\n height: 20px;\n margin-bottom: 15px;\n border-radius: 4px; }\n\n.skeleton.avatar {\n width: 100px;\n height: 100px;\n border-radius: 50%; }\n\n.skeleton.thumbnail {\n width: 100px;\n height: 100px;\n border-radius: 4px; }\n\n/* skeleton image text */\n.skeleton-image-content {\n display: flex;\n flex-direction: row;\n gap: 30px; }\n\n.skeleton-image-content__text {\n flex: 1 1 auto; }\n\n/* skeleton content */\n.skeleton-content {\n display: grid;\n grid-template-columns: 1fr;\n gap: 30px;\n align-items: left; }\n\n.goa-card {\n box-sizing: border-box;\n background: #fff;\n border: 1px solid #dcdcdc;\n transition: opacity 300ms ease-in-out;\n /* size variants ***/ }\n .goa-card .card-content {\n padding: 24px 16px;\n border-top: 8px solid #0081a2; }\n .goa-card .card-content .goa-title,\n .goa-card .card-content .goa-text,\n .goa-card .card-content .goa-content {\n margin-bottom: 28px; }\n .goa-card .card-content .goa-text {\n color: #333;\n font-size: var(--fs-base);\n line-height: 28px; }\n .goa-card .card-content .goa-footer {\n font-size: var(--fs-base); }\n .goa-card .card-content .goa-title {\n font-size: var(--fs-xl);\n font-weight: 400;\n line-height: 32px; }\n .goa-card .goa-poster {\n position: relative;\n display: block;\n padding: 56.25% 0 0;\n overflow: hidden;\n background: #e5e5e5; }\n .goa-card .goa-poster:empty {\n display: none; }\n .goa-card .goa-poster img,\n .goa-card .goa-poster iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: none; }\n .goa-card .goa-poster-image img {\n display: block;\n width: 100%;\n -o-object-fit: cover;\n object-fit: cover; }\n .goa-card.card-auto {\n width: auto; }\n .goa-card.card-auto .card {\n flex-basis: auto;\n width: auto; }\n .goa-card a:hover {\n color: #004f84;\n text-decoration: none; }\n .goa-card a:focus {\n outline: 3px solid #feba35;\n outline-offset: 0; }\n\n.goa-card[data-skeleton] .goa-poster-image {\n background-color: #ddd !important;\n -webkit-animation: pulse 2s infinite ease-in-out;\n animation: pulse 2s infinite ease-in-out;\n padding-bottom: 56.25%; }\n .goa-card[data-skeleton] .goa-poster-image img {\n display: none; }\n\n.goa-card[data-skeleton] .goa-title {\n margin-bottom: 1rem; }\n\n.goa-card[data-skeleton] .goa-footer {\n background-color: #ddd !important;\n -webkit-animation: pulse 2s infinite ease-in-out;\n animation: pulse 2s infinite ease-in-out;\n max-height: 1rem; }\n";
1538
- styleInject(css_248z$a);
1539
-
1540
- var GoACard = function GoACard(_ref) {
1541
- var title = _ref.title,
1542
- content = _ref.content,
1543
- _ref$description = _ref.description,
1544
- description = _ref$description === void 0 ? null : _ref$description,
1545
- _ref$cardImageUrl = _ref.cardImageUrl,
1546
- cardImageUrl = _ref$cardImageUrl === void 0 ? null : _ref$cardImageUrl,
1547
- _ref$titleUrl = _ref.titleUrl,
1548
- titleUrl = _ref$titleUrl === void 0 ? null : _ref$titleUrl,
1549
- _ref$children = _ref.children,
1550
- children = _ref$children === void 0 ? null : _ref$children,
1551
- _ref$minWidth = _ref.minWidth,
1552
- minWidth = _ref$minWidth === void 0 ? 'auto' : _ref$minWidth,
1553
- _ref$maxWidth = _ref.maxWidth,
1554
- maxWidth = _ref$maxWidth === void 0 ? 'auto' : _ref$maxWidth,
1555
- other = _objectWithoutProperties(_ref, ["title", "content", "description", "cardImageUrl", "titleUrl", "children", "minWidth", "maxWidth"]);
1556
-
1557
- var _useState = React.useState(null),
1558
- _useState2 = _slicedToArray(_useState, 2),
1559
- imgHeight = _useState2[0],
1560
- setImgHeight = _useState2[1];
1561
-
1562
- return /*#__PURE__*/React__default.createElement("div", Object.assign({
1563
- className: "goa-card",
1564
- "data-testid": "card-container",
1565
- style: {
1566
- minWidth: minWidth,
1567
- maxWidth: maxWidth
1568
- }
1569
- }, other), cardImageUrl && /*#__PURE__*/React__default.createElement("div", {
1570
- className: "goa-poster-image",
1571
- "data-testid": "card-img"
1572
- }, /*#__PURE__*/React__default.createElement("img", {
1573
- height: imgHeight,
1574
- src: cardImageUrl,
1575
- alt: "Card cardImageUrl"
1576
- })), /*#__PURE__*/React__default.createElement("div", {
1577
- className: "card-content"
1578
- }, /*#__PURE__*/React__default.createElement("div", {
1579
- className: "goa-title",
1580
- "data-testid": "card-title"
1581
- }, titleUrl ? /*#__PURE__*/React__default.createElement("a", {
1582
- href: titleUrl,
1583
- "data-testid": "card-title-link"
1584
- }, title) : /*#__PURE__*/React__default.createElement("div", null, title)), /*#__PURE__*/React__default.createElement("p", {
1585
- className: "goa-text",
1586
- "data-testid": "card-content"
1587
- }, content !== null && content !== void 0 ? content : description), children && /*#__PURE__*/React__default.createElement("div", {
1588
- className: "goa-footer",
1589
- "data-testid": "card-footer"
1590
- }, children)));
1591
- };
1592
-
1593
- var css_248z$b = "/* Palette */\n/* Semantic usages */\n.goa-radio {\n margin-bottom: 10px; }\n .goa-radio input[type='radio'] {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n outline: 0;\n -webkit-appearance: none; }\n .goa-radio .goa-radio-label {\n z-index: 2;\n box-sizing: border-box;\n margin: 0;\n padding: 0 0 0 8px;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n .goa-radio.goa-radio-disabled {\n opacity: 30%; }\n .goa-radio.goa-radio-disabled .goa-radio-label {\n cursor: default; }\n .goa-radio.has-error .goa-radio-container {\n border: solid 2px #fc1921;\n color: #fc1921; }\n .goa-radio.has-error .goa-radio-container svg {\n fill: #fc1921; }\n .goa-radio .goa-radio-container {\n z-index: 2;\n box-sizing: border-box;\n margin: 0;\n border: 1px solid #666;\n border-radius: 12px;\n height: 24px;\n width: 24px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n padding: 3px; }\n .goa-radio .goa-radio-container svg {\n fill: #fff; }\n .goa-radio .goa-radio-container.goa-radio-selected {\n background-color: #0070c4; }\n .goa-radio .goa-radio-container.goa-radio-selected .goa-radiomark {\n display: block !important; }\n .goa-radio .goa-radio-container:hover:not(.goa-radio-selected) {\n background-color: #f1f1f1; }\n .goa-radio .goa-radio-container:focus-within {\n box-shadow: 0 0 0 3px #feba35;\n outline: none; }\n .goa-radio.goa-radio-label-before .goa-radio-container {\n order: 1;\n margin-left: 8px;\n margin-right: auto; }\n\n.goa-radio-layout {\n display: flex;\n flex-direction: row;\n align-items: center; }\n\n.goa-radio-inline-block {\n display: inline-block;\n margin-bottom: 5px;\n margin-top: 5px;\n margin-left: 5px; }\n";
1594
- styleInject(css_248z$b);
1595
-
1596
- var GoARadio = function GoARadio(_ref) {
1597
- var name = _ref.name,
1598
- value = _ref.value,
1599
- disabled = _ref.disabled,
1600
- _ref$labelPosition = _ref.labelPosition,
1601
- labelPosition = _ref$labelPosition === void 0 ? 'after' : _ref$labelPosition,
1602
- required = _ref.required,
1603
- children = _ref.children;
1604
- var selectedValue = React.useContext(RadioContext);
1605
- var updateSelectedValue = React.useContext(RadioUpdateContext);
1606
-
1607
- function hasError() {
1608
- return required && !selectedValue;
1609
- }
1610
-
1611
- function getSelectedCss() {
1612
- return classnames({
1613
- 'goa-radio-container': true,
1614
- 'goa-radio-selected': isChecked()
1615
- });
1616
- }
1617
-
1618
- function getRootCssClasses() {
1619
- return classnames({
1620
- 'goa-radio': true,
1621
- 'goa-radio-disabled': disabled,
1622
- 'has-error': hasError(),
1623
- 'goa-radio-label-before': labelPosition === 'before'
1624
- });
1625
- }
1626
-
1627
- function isChecked() {
1628
- return selectedValue === value;
1629
- }
1630
-
1631
- function onRadioChange(e) {
1632
- updateSelectedValue(e.target.value);
1633
- }
1634
-
1635
- return /*#__PURE__*/React__default.createElement("div", {
1636
- className: getRootCssClasses()
1637
- }, /*#__PURE__*/React__default.createElement("div", {
1638
- className: "goa-radio-inline-block"
1639
- }, /*#__PURE__*/React__default.createElement("label", {
1640
- className: "goa-radio-layout"
1641
- }, /*#__PURE__*/React__default.createElement("div", {
1642
- className: getSelectedCss()
1643
- }, /*#__PURE__*/React__default.createElement("input", {
1644
- type: "radio",
1645
- name: name,
1646
- value: value,
1647
- checked: isChecked(),
1648
- disabled: disabled,
1649
- onChange: onRadioChange
1650
- }), isChecked() && /*#__PURE__*/React__default.createElement("svg", {
1651
- xmlns: "http://www.w3.org/2000/svg",
1652
- width: "12",
1653
- height: "12",
1654
- viewBox: "0 0 12 12"
1655
- }, /*#__PURE__*/React__default.createElement("circle", {
1656
- cx: "6",
1657
- cy: "6",
1658
- r: "6",
1659
- fill: "#fff"
1660
- }))), /*#__PURE__*/React__default.createElement("span", {
1661
- className: "goa-radio-label"
1662
- }, children))));
1663
- };
1664
-
1665
- var css_248z$c = "/* Palette */\n/* Semantic usages */\n.goa-radio-group {\n margin-top: 28px; }\n .goa-radio-group.goa-radio-group-disabled.goa-radios {\n opacity: 30%;\n cursor: default; }\n .goa-radio-group .radio-group-title {\n font-size: 18px;\n font-weight: bold;\n color: #333;\n line-height: 28px; }\n .goa-radio-group .helper-text {\n font-size: 14px;\n font-weight: normal;\n color: #333;\n margin-bottom: 20px; }\n .goa-radio-group .required-label {\n margin-left: 8px;\n font-size: 14px;\n color: #666; }\n .goa-radio-group .error-text {\n color: #fc1921;\n font-size: 14px;\n margin-bottom: 20px; }\n";
1666
- styleInject(css_248z$c);
1667
-
1668
- var RadioContext = React__default.createContext('');
1669
- var RadioUpdateContext = React__default.createContext( // eslint-disable-next-line @typescript-eslint/no-empty-function
1670
- function () {});
1671
- var GoARadioGroup = function GoARadioGroup(_ref) {
1672
- var helperText = _ref.helperText,
1673
- onChange = _ref.onChange,
1674
- required = _ref.required,
1675
- requiredErrorMessage = _ref.requiredErrorMessage,
1676
- title = _ref.title,
1677
- value = _ref.value,
1678
- items = _ref.items,
1679
- children = _ref.children,
1680
- childAttrs = _objectWithoutProperties(_ref, ["helperText", "onChange", "required", "requiredErrorMessage", "title", "value", "items", "children"]);
1681
-
1682
- var _useState = React.useState(value),
1683
- _useState2 = _slicedToArray(_useState, 2),
1684
- selectedValue = _useState2[0],
1685
- setSelectedValue = _useState2[1];
1686
-
1687
- function handleOnChange(val) {
1688
- setSelectedValue(val);
1689
- onChange(val);
1690
- }
1691
-
1692
- function hasError() {
1693
- return required && !selectedValue;
1694
- }
1695
-
1696
- function getChildren() {
1697
- if (children) {
1698
- return React.Children.map(children, function (child) {
1699
- var key = "".concat(childAttrs.name, "-").concat(child.props.value);
1700
- return React__default.cloneElement(child, _objectSpread2(_objectSpread2({}, childAttrs), {}, {
1701
- key: key,
1702
- required: required
1703
- }));
1704
- });
1705
- }
1706
-
1707
- return items.map(function (item) {
1708
- return /*#__PURE__*/React__default.createElement(GoARadio, {
1709
- key: "".concat(childAttrs.name, "-").concat(item.value),
1710
- labelPosition: childAttrs.labelPosition,
1711
- name: childAttrs.name,
1712
- disabled: childAttrs.disabled,
1713
- value: item.value,
1714
- children: item.text,
1715
- required: required
1716
- });
1717
- });
1718
- }
1719
-
1720
- return /*#__PURE__*/React__default.createElement("div", {
1721
- className: "goa-radio-group"
1722
- }, title && /*#__PURE__*/React__default.createElement("span", {
1723
- className: "radio-group-title"
1724
- }, title), required && /*#__PURE__*/React__default.createElement("span", {
1725
- className: "required-label"
1726
- }, "(Required)"), helperText && /*#__PURE__*/React__default.createElement("div", {
1727
- className: "helper-text"
1728
- }, helperText), /*#__PURE__*/React__default.createElement(RadioContext.Provider, {
1729
- value: selectedValue
1730
- }, /*#__PURE__*/React__default.createElement(RadioUpdateContext.Provider, {
1731
- value: handleOnChange
1732
- }, /*#__PURE__*/React__default.createElement("div", {
1733
- className: "goa-radios"
1734
- }, getChildren()))), hasError() && /*#__PURE__*/React__default.createElement("div", {
1735
- className: "error-text"
1736
- }, requiredErrorMessage));
1737
- };
1738
-
1739
- var css_248z$d = "/* Palette */\n/* Semantic usages */\n.goa-card-group {\n margin-top: 14px;\n vertical-align: top; }\n .goa-card-group .card-group-title {\n font-size: 28px;\n font-weight: bold;\n color: #333; }\n .goa-card-group .card-group-basic {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n align-items: stretch; }\n .goa-card-group .card-group-basic > div {\n margin: 14px 10px; }\n .goa-card-group .card-group-basic-vue > div {\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n align-items: stretch; }\n .goa-card-group .card-group-basic-vue > div > div {\n margin: 14px 10px; }\n .goa-card-group .card-group-column {\n display: inline-block;\n flex-direction: column;\n -moz-column-count: 3;\n column-count: 3;\n flex-wrap: wrap;\n align-items: stretch; }\n .goa-card-group .card-group-column > div {\n margin: 14px; }\n .goa-card-group .card-group-column-vue > div {\n display: inline-block;\n flex-direction: column;\n -moz-column-count: 3;\n column-count: 3;\n flex-wrap: wrap;\n align-items: stretch; }\n .goa-card-group .card-group-column > div > div {\n margin: 14px; }\n";
1740
- styleInject(css_248z$d);
1741
-
1742
- var GoACardGroup = function GoACardGroup(_ref) {
1743
- var _ref$title = _ref.title,
1744
- title = _ref$title === void 0 ? null : _ref$title,
1745
- _ref$children = _ref.children,
1746
- children = _ref$children === void 0 ? null : _ref$children,
1747
- _ref$layout = _ref.layout,
1748
- layout = _ref$layout === void 0 ? 'basic' : _ref$layout,
1749
- _ref$cardItems = _ref.cardItems,
1750
- cardItems = _ref$cardItems === void 0 ? null : _ref$cardItems;
1751
-
1752
- function getCards() {
1753
- if (children) {
1754
- return children;
1755
- }
1756
-
1757
- return cardItems.map(function (item, index) {
1758
- return /*#__PURE__*/React__default.createElement(GoACard, Object.assign({}, item, {
1759
- key: index
1760
- }), item.children);
1761
- });
1762
- }
1763
-
1764
- return /*#__PURE__*/React__default.createElement("div", {
1765
- className: "goa-card-group"
1766
- }, /*#__PURE__*/React__default.createElement("div", {
1767
- className: "card-group-title"
1768
- }, title), /*#__PURE__*/React__default.createElement("div", {
1769
- className: "card-group-".concat(layout)
1770
- }, getCards()));
1771
- };
1772
-
1773
- /** Used to store the options in the dropdown */
1774
-
1775
- // eslint-disable-next-line @typescript-eslint/naming-convention
1776
- var DropdownContext = React.createContext({});
1777
-
1778
- var css_248z$e = "/* Palette */\n/* Semantic usages */\n/* This style is from the alberta design system */\n/* Palette */\n/* Semantic usages */\n.dropdown-overlay {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0; }\n\n.dropdown-menu {\n border: solid 1px #dcdcdc;\n border-radius: 4px;\n background: #fff;\n padding: 0;\n margin-top: 3px;\n width: 100%;\n overflow-y: auto; }\n .dropdown-menu .option-group .option-group-label {\n font-weight: bold;\n padding: 4px 12px; }\n .dropdown-menu .option-group .option {\n font-weight: normal;\n padding: 4px 24px; }\n .dropdown-menu .option {\n padding: 4px 12px;\n color: #0070c4;\n border: 1px solid #f1f1f1; }\n .dropdown-menu .option.selected {\n background-color: #0070c4;\n color: #fff; }\n .dropdown-menu .option.selected.active {\n background-color: #004f84;\n color: #fff; }\n .dropdown-menu .option.active {\n background-color: #f1f1f1;\n color: #333; }\n\n.goa-dropdown {\n position: relative;\n /* add chevron */ }\n .goa-dropdown .dropdown-grouping input[type=text] {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n padding-right: 30px !important; }\n .goa-dropdown .dropdown-grouping.disabled {\n opacity: 30%; }\n .goa-dropdown .dropdown-grouping .dropdown-textbox {\n /* remove default arrow IE */ }\n .goa-dropdown .dropdown-grouping .dropdown-textbox {\n box-sizing: border-box;\n width: 100%;\n margin: 8px 0 0;\n padding: 12px;\n padding-right: 8px;\n border-radius: 4px;\n border: 1px solid #666;\n font-size: 18px;\n font-weight: 400;\n color: #0070c4;\n /* removes default arrow */\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none; }\n .goa-dropdown .dropdown-grouping .dropdown-textbox:disabled {\n opacity: 0.3;\n pointer-events: none; }\n .goa-dropdown .dropdown-grouping .dropdown-textbox::-ms-expand {\n display: none; }\n .goa-dropdown .dropdown-grouping .dropdown-textbox:hover {\n border: 1px solid #0070c4; }\n .goa-dropdown .dropdown-grouping .dropdown-textbox:focus {\n box-shadow: 0 0 0 3px #feba35;\n outline: none; }\n .goa-dropdown .dropdown-grouping .dropdown-textbox.margin-override {\n margin: 0; }\n .goa-dropdown .dropdown-grouping .dropdown-textbox-filter {\n /* remove default arrow IE */\n font-size: 14px !important;\n border: none !important;\n margin: 0 !important; }\n .goa-dropdown .dropdown-grouping .dropdown-textbox-filter {\n box-sizing: border-box;\n width: 100%;\n margin: 8px 0 0;\n padding: 12px;\n padding-right: 8px;\n border-radius: 4px;\n border: 1px solid #666;\n font-size: 18px;\n font-weight: 400;\n color: #0070c4;\n /* removes default arrow */\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none; }\n .goa-dropdown .dropdown-grouping .dropdown-textbox-filter:disabled {\n opacity: 0.3;\n pointer-events: none; }\n .goa-dropdown .dropdown-grouping .dropdown-textbox-filter::-ms-expand {\n display: none; }\n .goa-dropdown .dropdown-grouping .dropdown-textbox-filter:hover {\n border: 1px solid #0070c4; }\n .goa-dropdown .dropdown-grouping .dropdown-textbox-filter:focus {\n box-shadow: 0 0 0 3px #feba35;\n outline: none; }\n .goa-dropdown .dropdown-grouping .dropdown-textbox-filter:focus {\n box-shadow: none !important;\n outline: none; }\n .goa-dropdown i.goa-select-icon {\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cpath class='' opacity='1' d='M11.29,15.7a1,1,0,0,0,1.41,0l6-6A1,1,0,1,0,17.29,8.3L12,13.58,6.71,8.3a1,1,0,0,0-1.42,0,1,1,0,0,0,0,1.41Z'/%3E%3C/svg%3E%0A\");\n background-repeat: no-repeat;\n background-size: contain;\n background-position: center center;\n left: auto;\n right: 8px;\n width: 24px;\n height: 24px;\n pointer-events: none;\n position: absolute;\n margin-top: 16px;\n color: #0070c4; }\n .goa-dropdown.disabled i.goa-select-icon {\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cpath class='' opacity='0.3' d='M11.29,15.7a1,1,0,0,0,1.41,0l6-6A1,1,0,1,0,17.29,8.3L12,13.58,6.71,8.3a1,1,0,0,0-1.42,0,1,1,0,0,0,0,1.41Z'/%3E%3C/svg%3E%0A\");\n background-repeat: no-repeat;\n background-size: contain;\n background-position: center center; }\n .goa-dropdown.opened i.goa-select-icon {\n transform: rotate(180deg); }\n .goa-dropdown.has-error .dropdown-grouping .dropdown-textbox {\n border: solid 2px #fc1921; }\n .goa-dropdown .dropdown-label {\n font-size: 18px;\n font-weight: bold;\n color: #333; }\n .goa-dropdown .required-label {\n margin-left: 8px;\n font-size: 14px;\n color: #666; }\n .goa-dropdown .helper-text {\n font-size: 14px;\n font-weight: normal;\n color: #333; }\n .goa-dropdown .error-text {\n color: #fc1921;\n font-size: 14px; }\n";
1779
- styleInject(css_248z$e);
1780
-
1781
- var GoAOption = function GoAOption(props) {
1782
- var label = props.label,
1783
- children = props.children,
1784
- selected = props.selected;
1785
-
1786
- var _useState = React.useState(''),
1787
- _useState2 = _slicedToArray(_useState, 2),
1788
- isActive = _useState2[0],
1789
- setActive = _useState2[1];
1790
-
1791
- var _useContext = React.useContext(DropdownContext),
1792
- selectionChanged = _useContext.selectionChanged;
1793
-
1794
- function onClick(e) {
1795
- e.stopPropagation(); // Flip the props, since user click it
1796
-
1797
- var selected = !props.selected;
1798
-
1799
- if (selectionChanged) {
1800
- selectionChanged(_objectSpread2(_objectSpread2({}, props), {}, {
1801
- selected: selected
1802
- }));
1803
- }
1804
- }
1805
-
1806
- function rootCss() {
1807
- return classnames({
1808
- option: true,
1809
- selected: selected,
1810
- active: isActive
1811
- });
1812
- }
1813
-
1814
- return /*#__PURE__*/React__default.createElement("div", {
1815
- role: "listitem",
1816
- className: rootCss(),
1817
- onClick: onClick,
1818
- onMouseEnter: function onMouseEnter() {
1819
- setActive('active');
1820
- },
1821
- onMouseLeave: function onMouseLeave() {
1822
- setActive('');
1823
- }
1824
- }, /*#__PURE__*/React__default.createElement("div", {
1825
- className: "goa-option"
1826
- }, children || label));
1827
- };
1828
- GoAOption.defaultProps = {
1829
- defaultSelected: false
1830
- };
1831
-
1832
- var GoAOptionGroup = function GoAOptionGroup(_ref) {
1833
- var label = _ref.label,
1834
- children = _ref.children;
1835
-
1836
- var _useState = React.useState([]),
1837
- _useState2 = _slicedToArray(_useState, 2),
1838
- itemLabels = _useState2[0],
1839
- setItemLabels = _useState2[1]; // Load the itemLabes state variable
1840
-
1841
-
1842
- React.useEffect(function () {
1843
- var allLabels = [];
1844
- React.Children.forEach(children, function (child) {
1845
- var _child$props, _child$props2;
1846
-
1847
- if ((_child$props = child.props) !== null && _child$props !== void 0 && _child$props.value && (_child$props2 = child.props) !== null && _child$props2 !== void 0 && _child$props2.label) {
1848
- allLabels.push(child.props.label);
1849
- }
1850
- });
1851
- setItemLabels(allLabels);
1852
- }, []);
1853
- return /*#__PURE__*/React__default.createElement("div", {
1854
- className: "option-group"
1855
- }, /*#__PURE__*/React__default.createElement("div", {
1856
- className: "option-group-label"
1857
- }, label), children);
1858
- };
1859
-
1860
- var GoADropdown = function GoADropdown(_ref) {
1861
- var title = _ref.title,
1862
- subTitle = _ref.subTitle,
1863
- menuHeight = _ref.menuHeight,
1864
- multiple = _ref.multiple,
1865
- disabled = _ref.disabled,
1866
- description = _ref.description,
1867
- children = _ref.children,
1868
- errorMessage = _ref.errorMessage,
1869
- display = _ref.display,
1870
- selectionChanged = _ref.selectionChanged,
1871
- key = _ref.key,
1872
- open = _ref.open,
1873
- menuEditable = _ref.menuEditable,
1874
- menuInputChanged = _ref.menuInputChanged,
1875
- rest = _objectWithoutProperties(_ref, ["title", "subTitle", "menuHeight", "multiple", "disabled", "description", "children", "errorMessage", "display", "selectionChanged", "key", "open", "menuEditable", "menuInputChanged"]);
1876
-
1877
- var _useState = React.useState(false),
1878
- _useState2 = _slicedToArray(_useState, 2),
1879
- isOpen = _useState2[0],
1880
- setIsOpen = _useState2[1];
1881
-
1882
- var _useState3 = React.useState(0),
1883
- _useState4 = _slicedToArray(_useState3, 2),
1884
- maxMenuHeight = _useState4[0],
1885
- setMaxMenuHeight = _useState4[1];
1886
-
1887
- var menuRef = React.useRef();
1888
- var overlayRef = React.useRef();
1889
-
1890
- var toggleOpen = function toggleOpen() {
1891
- if (!disabled) {
1892
- setIsOpen(!isOpen);
1893
- }
529
+ var GoAInputPassword = function GoAInputPassword(props) {
530
+ return jsxRuntime.jsx(GoAInput, __assign({}, props, {
531
+ type: "password"
532
+ }), void 0);
1894
533
  };
1895
-
1896
- var rootDropDownCss = function rootDropDownCss() {
1897
- return classnames({
1898
- 'goa-dropdown': true,
1899
- 'single-selection': !multiple,
1900
- 'has-error': errorMessage && errorMessage.length > 0
1901
- });
534
+ var GoAInputDate = function GoAInputDate(props) {
535
+ return jsxRuntime.jsx(GoAInput, __assign({}, props, {
536
+ type: "date"
537
+ }), void 0);
1902
538
  };
1903
-
1904
- var dropDownGroupCss = function dropDownGroupCss() {
1905
- return classnames({
1906
- 'dropdown-grouping': true,
1907
- 'disabled': disabled
1908
- });
539
+ var GoAInputTime = function GoAInputTime(props) {
540
+ return jsxRuntime.jsx(GoAInput, __assign({}, props, {
541
+ type: "time"
542
+ }), void 0);
1909
543
  };
1910
-
1911
- React.useEffect(function () {
1912
- var _overlayRef$current, _menuRef$current;
1913
-
1914
- var height = menuHeight > 0 ? menuHeight : ((_overlayRef$current = overlayRef.current) === null || _overlayRef$current === void 0 ? void 0 : _overlayRef$current.clientHeight) - ((_menuRef$current = menuRef.current) === null || _menuRef$current === void 0 ? void 0 : _menuRef$current.offsetTop) - 20 || 0;
1915
- setMaxMenuHeight(height);
1916
- });
1917
-
1918
- var canOpen = function canOpen(isOpenState, isOpenProp) {
1919
- // If open property is not provide, default menu toggle will be applied
1920
- if (isOpenProp !== undefined) {
1921
- return isOpenProp;
1922
- }
1923
-
1924
- return isOpenState;
544
+ var GoAInputDateTime = function GoAInputDateTime(props) {
545
+ return jsxRuntime.jsx(GoAInput, __assign({}, props, {
546
+ type: "datetime-local"
547
+ }), void 0);
1925
548
  };
1926
-
1927
- var canMenuEditable = function canMenuEditable(editableProp) {
1928
- if (editableProp !== undefined) {
1929
- return editableProp;
1930
- }
1931
-
1932
- return true;
549
+ var GoAInputEmail = function GoAInputEmail(props) {
550
+ return jsxRuntime.jsx(GoAInput, __assign({}, props, {
551
+ type: "email"
552
+ }), void 0);
1933
553
  };
1934
-
1935
- return /*#__PURE__*/React__default.createElement(DropdownContext.Provider, {
1936
- value: {
1937
- selectionChanged: selectionChanged
1938
- }
1939
- }, /*#__PURE__*/React__default.createElement("div", {
1940
- className: "dropdown-overlay",
1941
- "data-testid": "dropdown-container",
1942
- ref: overlayRef,
1943
- onClick: toggleOpen
1944
- }), /*#__PURE__*/React__default.createElement("div", Object.assign({
1945
- className: rootDropDownCss()
1946
- }, rest), /*#__PURE__*/React__default.createElement("label", {
1947
- className: "dropdown-label",
1948
- htmlFor: "input-for-".concat(title)
1949
- }, title), subTitle && /*#__PURE__*/React__default.createElement("span", {
1950
- className: "required-label"
1951
- }, subTitle), /*#__PURE__*/React__default.createElement("div", {
1952
- className: dropDownGroupCss(),
1953
- onClick: toggleOpen
1954
- }, /*#__PURE__*/React__default.createElement("i", {
1955
- className: "goa-select-icon"
1956
- }), /*#__PURE__*/React__default.createElement("input", {
1957
- role: "searchbox",
1958
- className: "dropdown-textbox margin-override",
1959
- type: "text",
1960
- "data-testid": "menu-input",
1961
- style: {
1962
- cursor: 'default'
1963
- },
1964
- id: "input-for-".concat(key),
1965
- placeholder: display ? display : description,
1966
- onChange: function onChange(e) {
1967
- menuInputChanged && menuInputChanged(e.target.value);
1968
- },
1969
- readOnly: !canMenuEditable(menuEditable)
1970
- }), canOpen(isOpen, open) && /*#__PURE__*/React__default.createElement("div", {
1971
- className: "dropdown-menu",
1972
- "data-testid": "dropdown-menu",
1973
- ref: menuRef,
1974
- style: {
1975
- position: 'absolute',
1976
- zIndex: 1000,
1977
- maxHeight: "".concat(maxMenuHeight, "px"),
1978
- overflow: 'auto'
1979
- }
1980
- }, children)), !description && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("span", {
1981
- className: "helper-text"
1982
- }, description)), errorMessage && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("span", {
1983
- className: "dropdown-label error-text"
1984
- }, errorMessage))));
1985
- };
1986
- GoADropdown.defaultProps = {
1987
- disabled: false,
1988
- description: null
1989
- };
1990
-
1991
- var css_248z$f = "/* Palette */\n/* Semantic usages */\n.goa-checkbox input[type='checkbox'] {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n outline: 0;\n -webkit-appearance: none; }\n\n.goa-checkbox .goa-checkbox-label {\n z-index: 2;\n box-sizing: border-box;\n margin: 0;\n padding: 0 0 0 8px;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n height: 46px;\n display: flex;\n align-items: center; }\n\n.goa-checkbox.goa-checkbox-disabled {\n opacity: 30%; }\n .goa-checkbox.goa-checkbox-disabled .goa-checkbox-label {\n cursor: default; }\n\n.goa-checkbox.has-error .goa-checkbox-container {\n border: solid 2px #fc1921;\n color: #fc1921; }\n .goa-checkbox.has-error .goa-checkbox-container svg {\n fill: #fc1921; }\n\n.goa-checkbox .goa-checkbox-container {\n box-sizing: border-box;\n border: 1px solid #666;\n border-radius: 2px;\n height: 24px;\n line-height: 24px;\n width: 24px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n padding: 3px; }\n .goa-checkbox .goa-checkbox-container svg {\n display: none;\n flex: 1 1 auto;\n fill: #fff; }\n .goa-checkbox .goa-checkbox-container.goa-checkbox-selected {\n background-color: #0070c4; }\n .goa-checkbox .goa-checkbox-container.goa-checkbox-selected .goa-checkmark {\n display: block !important; }\n .goa-checkbox .goa-checkbox-container.goa-checkbox-selected .goa-indeterminate {\n display: none !important; }\n .goa-checkbox .goa-checkbox-container.goa-checkbox-indeterminate {\n background-color: #0070c4; }\n .goa-checkbox .goa-checkbox-container.goa-checkbox-indeterminate .goa-checkmark {\n display: none; }\n .goa-checkbox .goa-checkbox-container.goa-checkbox-indeterminate .goa-indeterminate {\n display: block; }\n .goa-checkbox .goa-checkbox-container:hover:not(.goa-checkbox-selected):not(.goa-checkbox-indeterminate) {\n background-color: #f1f1f1; }\n .goa-checkbox .goa-checkbox-container:focus-within {\n box-shadow: 0 0 0 3px #feba35;\n outline: none; }\n\n.goa-checkbox.goa-checkbox-label-before .goa-checkbox-container {\n order: 1;\n margin-left: 8px;\n margin-right: auto; }\n\n.goa-checkbox-layout {\n display: inline-flex;\n align-items: center; }\n";
1992
- styleInject(css_248z$f);
1993
-
1994
- var GoACheckbox = function GoACheckbox(_ref) {
1995
- var _ref$checked = _ref.checked,
1996
- checked = _ref$checked === void 0 ? false : _ref$checked,
1997
- _ref$required = _ref.required,
1998
- required = _ref$required === void 0 ? false : _ref$required,
1999
- _ref$disabled = _ref.disabled,
2000
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
2001
- _ref$indeterminate = _ref.indeterminate,
2002
- indeterminate = _ref$indeterminate === void 0 ? false : _ref$indeterminate,
2003
- _ref$labelPosition = _ref.labelPosition,
2004
- labelPosition = _ref$labelPosition === void 0 ? 'before' : _ref$labelPosition,
2005
- _ref$value = _ref.value,
2006
- value = _ref$value === void 0 ? '' : _ref$value,
2007
- content = _ref.content,
2008
- children = _ref.children,
2009
- selectionChange = _ref.selectionChange;
2010
-
2011
- var hasError = function hasError() {
2012
- return required && !checked;
554
+ var GoAInputSearch = function GoAInputSearch(props) {
555
+ return jsxRuntime.jsx(GoAInput, __assign({}, props, {
556
+ type: "search",
557
+ trailingIcon: "search"
558
+ }), void 0);
2013
559
  };
2014
-
2015
- var rootCss = function rootCss() {
2016
- return classnames({
2017
- 'goa-checkbox': true,
2018
- 'goa-checkbox-disabled': disabled,
2019
- 'has-error': hasError(),
2020
- 'goa-checkbox-label-before': labelPosition === 'before'
2021
- });
560
+ var GoAInputUrl = function GoAInputUrl(props) {
561
+ return jsxRuntime.jsx(GoAInput, __assign({}, props, {
562
+ type: "url"
563
+ }), void 0);
2022
564
  };
2023
-
2024
- var checkboxCss = function checkboxCss() {
2025
- return classnames({
2026
- 'goa-checkbox-container': true,
2027
- 'goa-checkbox-selected': !indeterminate && checked,
2028
- 'goa-checkbox-indeterminate': indeterminate && checked
2029
- });
565
+ var GoAInputTel = function GoAInputTel(props) {
566
+ return jsxRuntime.jsx(GoAInput, __assign({}, props, {
567
+ type: "tel"
568
+ }), void 0);
2030
569
  };
2031
-
2032
- return /*#__PURE__*/React__default.createElement("div", {
2033
- className: rootCss()
2034
- }, /*#__PURE__*/React__default.createElement("label", {
2035
- className: "goa-checkbox-layout"
2036
- }, /*#__PURE__*/React__default.createElement("div", {
2037
- className: checkboxCss()
2038
- }, /*#__PURE__*/React__default.createElement("input", {
2039
- type: "checkbox",
2040
- checked: checked,
2041
- disabled: disabled,
2042
- required: required,
2043
- value: value,
2044
- onChange: function onChange(e) {
2045
- return selectionChange(e.target.checked);
2046
- }
2047
- }), indeterminate && checked && /*#__PURE__*/React__default.createElement("svg", {
2048
- id: "dashmark",
2049
- xmlns: "http://www.w3.org/2000/svg",
2050
- viewBox: "0 0 15 2",
2051
- className: "goa-indeterminate"
2052
- }, /*#__PURE__*/React__default.createElement("rect", {
2053
- width: "15",
2054
- height: "2"
2055
- })), !indeterminate && checked && /*#__PURE__*/React__default.createElement("svg", {
2056
- id: "checkmark",
2057
- xmlns: "http://www.w3.org/2000/svg",
2058
- viewBox: "0 0 16 12.18",
2059
- className: "goa-checkmark"
2060
- }, /*#__PURE__*/React__default.createElement("path", {
2061
- d: "M5.09,9.64,1.27,5.82,0,7.09l5.09,5.09L16,1.27,14.73,0Z"
2062
- }))), /*#__PURE__*/React__default.createElement("span", {
2063
- className: "goa-checkbox-label"
2064
- }, content || children)));
2065
- };
2066
-
2067
- var css_248z$g = "/* Palette */\n/* Semantic usages */\n.svg {\n max-width: 100px; }\n\n.svg--small {\n max-width: 65px; }\n\n@-webkit-keyframes circle-animation {\n 0% {\n stroke-dashoffset: 75;\n transform: rotate(0); }\n 100% {\n stroke-dashoffset: 75;\n transform: rotate(360deg); } }\n\n@keyframes circle-animation {\n 0% {\n stroke-dashoffset: 75;\n transform: rotate(0); }\n 100% {\n stroke-dashoffset: 75;\n transform: rotate(360deg); } }\n\n.base-circle {\n display: block;\n fill: transparent;\n stroke: #c8eef9;\n stroke-width: 7px; }\n\n.progress-circle, .progress-circle--infinite {\n display: block;\n fill: transparent;\n stroke: #0070c4;\n stroke-linecap: round;\n stroke-dasharray: 283;\n stroke-dashoffset: 280;\n stroke-width: 7px;\n transform-origin: 50% 50%; }\n .progress-circle--infinite {\n -webkit-animation: circle-animation 1.2s linear infinite;\n animation: circle-animation 1.2s linear infinite; }\n\n.progress-message, .progress-message--large, .progress-message--small {\n font-style: normal;\n font-weight: normal; }\n .progress-message--large {\n margin-top: 32px;\n font-size: 24px;\n color: #000; }\n .progress-message--small {\n margin-top: 18px;\n font-size: 18px;\n color: #000; }\n\n.progress-container, .progress-container--small, .progress-container--large {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n background: white; }\n .progress-container--large {\n width: 100%;\n height: 100%; }\n";
2068
- styleInject(css_248z$g);
2069
-
2070
- var GoAPageLoader = function GoAPageLoader(_ref) {
2071
- var _ref$type = _ref.type,
2072
- type = _ref$type === void 0 ? 'infinite' : _ref$type,
2073
- _ref$visible = _ref.visible,
2074
- visible = _ref$visible === void 0 ? false : _ref$visible,
2075
- _ref$message = _ref.message,
2076
- message = _ref$message === void 0 ? 'Loading...' : _ref$message,
2077
- _ref$value = _ref.value,
2078
- value = _ref$value === void 0 ? 0 : _ref$value,
2079
- _ref$pagelock = _ref.pagelock,
2080
- pagelock = _ref$pagelock === void 0 ? true : _ref$pagelock,
2081
- _ref$displayType = _ref.displayType,
2082
- displayType = _ref$displayType === void 0 ? 'large' : _ref$displayType;
2083
-
2084
- /**
2085
- * Set defaults
2086
- */
2087
- var progressMaxValue = 283;
2088
- var strokeDashoffset = 0;
2089
- /**
2090
- * Sets the progress if in progress mode.
2091
- * @param progress
2092
- * @returns
2093
- */
2094
-
2095
- function setProgress(progress) {
2096
- if (type !== 'progress') {
2097
- return;
2098
- }
2099
-
2100
- if (progress === 0) {
2101
- strokeDashoffset = progressMaxValue;
2102
- return;
2103
- }
2104
-
2105
- if (progress >= 100) {
2106
- return;
2107
- }
2108
-
2109
- var value = progressMaxValue - Math.round(progressMaxValue * progress / 100);
2110
- strokeDashoffset = value;
2111
- }
2112
-
2113
- if (visible) {
2114
- if (pagelock && displayType !== 'small') {
2115
- document.body.style.height = '100%';
2116
- document.body.style.overflow = 'hidden';
2117
- } else {
2118
- document.body.style.removeProperty('height');
2119
- document.body.style.removeProperty('overflow');
2120
- }
2121
-
2122
- if (type === 'progress') {
2123
- setProgress(value);
2124
- }
2125
-
2126
- return /*#__PURE__*/React__default.createElement("div", {
2127
- className: "progress-container--".concat(displayType),
2128
- onKeyDown: function onKeyDown(event) {
2129
- event.preventDefault();
2130
- }
2131
- }, /*#__PURE__*/React__default.createElement("svg", {
2132
- className: "".concat(displayType === 'large' ? 'svg' : "svg--small"),
2133
- fill: "none",
2134
- viewBox: "0 0 100 100",
2135
- xmlns: "http://www.w3.org/2000/svg"
2136
- }, /*#__PURE__*/React__default.createElement("circle", {
2137
- className: "base-circle",
2138
- cx: "50",
2139
- cy: "50",
2140
- r: "45"
2141
- }), /*#__PURE__*/React__default.createElement("circle", {
2142
- className: "".concat(type === 'infinite' ? 'progress-circle--infinite' : 'progress-circle'),
2143
- cx: "50",
2144
- cy: "50",
2145
- r: "45",
570
+ var GoAInputFile = function GoAInputFile(props) {
571
+ return jsxRuntime.jsx("input", {
572
+ id: props.id,
573
+ name: props.name,
574
+ type: "file",
575
+ onChange: function (e) {
576
+ return props.onChange(e.target.name, e.target.value);
577
+ },
2146
578
  style: {
2147
- strokeDashoffset: strokeDashoffset
579
+ backgroundColor: 'revert'
2148
580
  }
2149
- })), /*#__PURE__*/React__default.createElement("span", {
2150
- className: "progress-message--".concat(displayType)
2151
- }, message));
2152
- } else {
2153
- document.body.style.removeProperty('height');
2154
- document.body.style.removeProperty('overflow');
2155
- return null;
2156
- }
2157
- };
2158
- GoAPageLoader.propTypes = {
2159
- visible: propTypes.bool,
2160
- message: propTypes.string,
2161
- value: propTypes.number,
2162
- type: propTypes.string,
2163
- pagelock: propTypes.bool,
2164
- displayType: propTypes.string
2165
- };
2166
-
2167
- var css_248z$h = "/* Palette */\n/* Semantic usages */\n.goa-badge-icon {\n margin-left: 4px;\n margin-right: 0px;\n position: relative;\n top: -5px;\n height: 14px;\n width: 14px;\n font-size: 14px !important; }\n\n.badge-module_goa-badge__3F6Ve {\n line-height: 24px;\n font-size: 14px;\n font-weight: 400 !important; }\n\n.badge-module_goa-badge__3F6Ve {\n display: inline-block;\n border-radius: 4px;\n padding-top: 4px;\n padding-left: 4px;\n padding-right: 4px;\n height: 20px; }\n .badge-module_goa-badge__3F6Ve * {\n margin-left: 4px;\n margin-right: 4px; }\n .badge-module_goa-badge__3F6Ve .badge-module_goa-badge-content__3UN-3 {\n position: relative;\n top: -5px;\n height: 14px;\n display: inline; }\n .badge-module_goa-badge__3F6Ve mat-icon {\n margin-left: 4px;\n margin-right: 4px;\n position: relative;\n top: -3px;\n height: 14px;\n width: 14px;\n font-size: 14px !important; }\n\n.badge-module_goa-badge__3F6Ve.badge-module_badge-information__2r_Eq {\n background-color: #0070c4;\n color: #fff; }\n\n.badge-module_goa-badge__3F6Ve.badge-module_badge-success__18wcm {\n background-color: #00853f;\n color: #fff; }\n\n.badge-module_goa-badge__3F6Ve.badge-module_badge-warning__20BNM {\n background-color: #feba35;\n color: #333; }\n\n.badge-module_goa-badge__3F6Ve.badge-module_badge-emergency__E4mHn {\n background-color: #ec040b;\n color: #fff; }\n\n.badge-module_goa-badge__3F6Ve.badge-module_badge-dark__1thw- {\n background-color: #0070c4;\n color: #fff; }\n\n.badge-module_goa-badge__3F6Ve.badge-module_badge-midtone__1Gt4T {\n background-color: #767676;\n color: #fff; }\n\n.badge-module_goa-badge__3F6Ve.badge-module_badge-light__B8ZMt {\n background-color: #fff;\n color: #333; }\n\n.badge-module_goa-badge__3F6Ve.badge-module_badge-inactive__35PEw {\n background-color: #fff;\n color: #333; }\n";
2168
- var styles = {"goa-badge":"badge-module_goa-badge__3F6Ve","goa-badge-content":"badge-module_goa-badge-content__3UN-3","badge-information":"badge-module_badge-information__2r_Eq","badge-success":"badge-module_badge-success__18wcm","badge-warning":"badge-module_badge-warning__20BNM","badge-emergency":"badge-module_badge-emergency__E4mHn","badge-dark":"badge-module_badge-dark__1thw-","badge-midtone":"badge-module_badge-midtone__1Gt4T","badge-light":"badge-module_badge-light__B8ZMt","badge-inactive":"badge-module_badge-inactive__35PEw"};
2169
- styleInject(css_248z$h);
2170
-
2171
- var GoABadge = function GoABadge(_ref) {
2172
- var type = _ref.type,
2173
- content = _ref.content,
2174
- icon = _ref.icon;
2175
- return /*#__PURE__*/React__default.createElement("div", {
2176
- className: classnames(styles['goa-badge'], styles["badge-".concat(type)])
2177
- }, icon, /*#__PURE__*/React__default.createElement("span", {
2178
- className: classnames(styles['goa-badge-content'])
2179
- }, content));
2180
- };
2181
- GoABadge.defaultProps = {
2182
- type: 'information'
2183
- };
2184
-
2185
- var css_248z$i = "/* Palette */\n/* Semantic usages */\n/* Palette */\n/* Semantic usages */\n.svg {\n max-width: 100px; }\n\n.svg--small {\n max-width: 65px; }\n\n@-webkit-keyframes circle-animation {\n 0% {\n stroke-dashoffset: 75;\n transform: rotate(0); }\n 100% {\n stroke-dashoffset: 75;\n transform: rotate(360deg); } }\n\n@keyframes circle-animation {\n 0% {\n stroke-dashoffset: 75;\n transform: rotate(0); }\n 100% {\n stroke-dashoffset: 75;\n transform: rotate(360deg); } }\n\n.base-circle {\n display: block;\n fill: transparent;\n stroke: #c8eef9;\n stroke-width: 7px; }\n\n.progress-circle, .progress-circle--infinite {\n display: block;\n fill: transparent;\n stroke: #0070c4;\n stroke-linecap: round;\n stroke-dasharray: 283;\n stroke-dashoffset: 280;\n stroke-width: 7px;\n transform-origin: 50% 50%; }\n .progress-circle--infinite {\n -webkit-animation: circle-animation 1.2s linear infinite;\n animation: circle-animation 1.2s linear infinite; }\n\n.progress-message, .progress-message--large, .progress-message--small {\n font-style: normal;\n font-weight: normal; }\n .progress-message--large {\n margin-top: 32px;\n font-size: 24px;\n color: #000; }\n .progress-message--small {\n margin-top: 18px;\n font-size: 18px;\n color: #000; }\n\n.progress-container, .progress-container--small, .progress-container--large {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n background: white; }\n .progress-container--large {\n width: 100%;\n height: 100%; }\n\n@-webkit-keyframes rotate {\n 100% {\n transform: rotate(360deg); } }\n\n@keyframes rotate {\n 100% {\n transform: rotate(360deg); } }\n\n.circular-loader {\n -webkit-animation: rotate 1s linear infinite;\n animation: rotate 1s linear infinite; }\n";
2186
- styleInject(css_248z$i);
2187
-
2188
- var GoAElementLoader = function GoAElementLoader(_ref) {
2189
- var _ref$visible = _ref.visible,
2190
- visible = _ref$visible === void 0 ? false : _ref$visible,
2191
- _ref$baseColour = _ref.baseColour,
2192
- baseColour = _ref$baseColour === void 0 ? '#c8eef9' : _ref$baseColour,
2193
- _ref$spinnerColour = _ref.spinnerColour,
2194
- spinnerColour = _ref$spinnerColour === void 0 ? '#0070c4' : _ref$spinnerColour,
2195
- _ref$size = _ref.size,
2196
- size = _ref$size === void 0 ? 25 : _ref$size;
2197
- var radius = size;
2198
- var diameter = radius * 2;
2199
-
2200
- var boxView = function boxView() {
2201
- return "0 0 ".concat(diameter, " ").concat(diameter);
581
+ }, void 0);
2202
582
  };
2203
- /**
2204
- * Generates the value for an SVG arc.
2205
- * @param current Current value.
2206
- * @param total Maximum value.
2207
- * @param pathRadius Radius of the SVG path.
2208
- * @param elementRadius Radius of the SVG container.
2209
- * @param isSemicircle Whether the element should be a semicircle.
2210
- */
2211
-
2212
-
2213
- function getArc(current, total, pathRadius, elementRadius) {
2214
- var isSemicircle = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
2215
- var value = Math.max(0, Math.min(current || 0, total));
2216
- var maxAngle = isSemicircle ? 180 : 359.9999;
2217
- var percentage = total === 0 ? maxAngle : value / total * maxAngle;
2218
-
2219
- var start = _polarToCartesian(elementRadius, pathRadius, percentage);
2220
-
2221
- var end = _polarToCartesian(elementRadius, pathRadius, 0);
2222
-
2223
- var arcSweep = percentage <= 180 ? 0 : 1;
2224
- return "M ".concat(start, " A ").concat(pathRadius, " ").concat(pathRadius, " 0 ").concat(arcSweep, " 0 ").concat(end);
2225
- }
2226
-
2227
- var DEGREE_IN_RADIANS = Math.PI / 180;
2228
- /**
2229
- * Converts polar cooradinates to Cartesian.
2230
- * @param elementRadius Radius of the wrapper element.
2231
- * @param pathRadius Radius of the path being described.
2232
- * @param angleInDegrees Degree to be converted.
2233
- */
2234
-
2235
- function _polarToCartesian(elementRadius, pathRadius, angleInDegrees) {
2236
- var angleInRadians = (angleInDegrees - 90) * DEGREE_IN_RADIANS;
2237
- var x = elementRadius + pathRadius * Math.cos(angleInRadians);
2238
- var y = elementRadius + pathRadius * Math.sin(angleInRadians);
2239
- return x + ' ' + y;
2240
- }
2241
-
2242
- return visible && /*#__PURE__*/React__default.createElement("svg", {
2243
- className: "circular-loader",
2244
- fill: "none",
2245
- viewBox: boxView(),
2246
- width: "".concat(size),
2247
- height: "".concat(size),
2248
- xmlns: "http://www.w3.org/2000/svg"
2249
- }, /*#__PURE__*/React__default.createElement("circle", {
2250
- cx: "".concat(radius),
2251
- cy: "".concat(radius),
2252
- stroke: "".concat(baseColour),
2253
- strokeWidth: "7",
2254
- r: "".concat(radius - 7 / 2)
2255
- }), /*#__PURE__*/React__default.createElement("path", {
2256
- d: getArc(75, 100, radius - 7 / 2, radius, false),
2257
- strokeWidth: "7",
2258
- stroke: "".concat(spinnerColour),
2259
- strokeLinecap: "round"
2260
- }));
2261
- };
2262
- GoAElementLoader.propTypes = {
2263
- visible: propTypes.bool,
2264
- baseColour: propTypes.string,
2265
- spinnerColour: propTypes.string,
2266
- size: propTypes.number
2267
- };
2268
-
2269
- var css_248z$j = "/* Palette */\n/* Semantic usages */\n.goa-form {\n margin: auto;\n width: 40.25rem; }\n\n.goa-form-container {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: stretch;\n -moz-column-gap: 1rem;\n column-gap: 1rem; }\n\n.goa-form-container > div {\n margin: 0;\n flex: 1;\n width: 100%; }\n\n.goa-form-container > div + div {\n margin-left: 1rem; }\n\n@media (max-width: 640px) {\n .goa-form {\n margin: auto;\n width: 95%; }\n .goa-form-container > div {\n min-width: 100%; }\n .goa-form-container > div + div {\n margin-left: 0rem; } }\n\n.goa-form-items {\n margin-bottom: 0.5rem;\n margin-top: 0.5rem; }\n .goa-form-items label {\n display: block;\n font-weight: bold;\n color: #333; }\n .goa-form-items input,\n .goa-form-items textarea {\n display: block;\n width: 100%;\n padding: 0.5rem; }\n\n.goa-form-button {\n margin-top: 2rem; }\n @media (min-width: 640px) {\n .goa-form-button {\n display: flex;\n justify-content: flex-end;\n align-items: flex-end; }\n .goa-form-button button {\n min-width: 6rem; }\n .goa-form-button button + button,\n .goa-form-button button + .goa-link-button,\n .goa-form-button .goa-link-button + button,\n .goa-form-button .goa-link-button + .goa-link-button {\n margin-left: 0.5rem; } }\n .goa-form-button button {\n margin: 0; }\n";
2270
- styleInject(css_248z$j);
2271
-
2272
- var GoAFormItem = function GoAFormItem(_ref) {
2273
- var name = _ref.name,
2274
- _ref$validators = _ref.validators,
2275
- validators = _ref$validators === void 0 ? [] : _ref$validators,
2276
- _ref$onChange = _ref.onChange,
2277
- onChange = _ref$onChange === void 0 ? null : _ref$onChange,
2278
- _ref$children = _ref.children,
2279
- children = _ref$children === void 0 ? null : _ref$children;
2280
-
2281
- var _useContext = React.useContext(FormContext),
2282
- errors = _useContext.errors,
2283
- navigator = _useContext.navigator,
2284
- setFieldValue = _useContext.setFieldValue,
2285
- registerInput = _useContext.registerInput;
2286
-
2287
- React.useEffect(function () {
2288
- return registerInput({
2289
- name: name,
2290
- validators: validators
2291
- });
2292
- }, []);
2293
-
2294
- var handleChange = function handleChange(val) {
2295
- if (typeof val === 'string') {
2296
- setFieldValue(name, val);
2297
- } else {
2298
- setFieldValue(name, val.target.value);
2299
- }
2300
-
2301
- if (onChange) {
2302
- onChange(val);
2303
- }
583
+ var GoAInputMonth = function GoAInputMonth(props) {
584
+ return jsxRuntime.jsx(GoAInput, __assign({}, props, {
585
+ type: "month"
586
+ }), void 0);
2304
587
  };
2305
-
2306
- var message = errors[name] || [];
2307
- var navigateTo = navigator && navigator.name && navigator.name === name;
2308
-
2309
- function renderChildren() {
2310
- return React.Children.map(children, function (child) {
2311
- if (child.props.originalType !== 'label') {
2312
- return React__default.cloneElement(child, {
2313
- onChange: handleChange,
2314
- message: message.toString(),
2315
- id: name,
2316
- navigator: navigateTo
2317
- });
2318
- } else {
2319
- return child;
2320
- }
2321
- });
2322
- }
2323
-
2324
- return /*#__PURE__*/React__default.createElement("div", {
2325
- id: name,
2326
- className: "goa-form-items"
2327
- }, renderChildren());
2328
- };
2329
- GoAFormItem.propTypes = {
2330
- name: propTypes.string,
2331
- onChange: propTypes.func,
2332
- validators: propTypes.array
2333
- };
2334
-
2335
- var GoAFormButton = function GoAFormButton(_ref) {
2336
- var _ref$children = _ref.children,
2337
- children = _ref$children === void 0 ? null : _ref$children;
2338
- return /*#__PURE__*/React__default.createElement("div", {
2339
- className: "goa-form-button"
2340
- }, children);
2341
- };
2342
-
2343
- var GoAFormContainer = function GoAFormContainer(_ref) {
2344
- var _ref$children = _ref.children,
2345
- children = _ref$children === void 0 ? null : _ref$children;
2346
- return /*#__PURE__*/React__default.createElement("div", {
2347
- className: "goa-form-container"
2348
- }, children);
2349
- };
2350
-
2351
- var initState = {
2352
- data: {},
2353
- validators: {},
2354
- errors: {},
2355
- navigator: {}
2356
- };
2357
- var FormContext;
2358
-
2359
- var _FormContext = FormContext = React__default.createContext({}),
2360
- Provider = _FormContext.Provider;
2361
- var GoAForm = function GoAForm(_ref) {
2362
- var _ref$formTitle = _ref.formTitle,
2363
- formTitle = _ref$formTitle === void 0 ? '' : _ref$formTitle,
2364
- _ref$formDescription = _ref.formDescription,
2365
- formDescription = _ref$formDescription === void 0 ? '' : _ref$formDescription,
2366
- onFormSubmit = _ref.onFormSubmit,
2367
- _ref$children = _ref.children,
2368
- children = _ref$children === void 0 ? null : _ref$children,
2369
- props = _objectWithoutProperties(_ref, ["formTitle", "formDescription", "onFormSubmit", "children"]);
2370
-
2371
- var _useState = React.useState(initState),
2372
- _useState2 = _slicedToArray(_useState, 2),
2373
- formState = _useState2[0],
2374
- setFormState = _useState2[1];
2375
-
2376
- var _useState3 = React.useState([]),
2377
- _useState4 = _slicedToArray(_useState3, 2),
2378
- formErrors = _useState4[0],
2379
- setFormErrors = _useState4[1];
2380
-
2381
- var onSubmit = function onSubmit(e) {
2382
- e.preventDefault();
2383
-
2384
- if (validate()) {
2385
- onFormSubmit(formState.data);
2386
- }
588
+ var GoAInputNumber = function GoAInputNumber(props) {
589
+ return jsxRuntime.jsx(GoAInput, __assign({}, props, {
590
+ type: "number"
591
+ }), void 0);
2387
592
  };
593
+ var GoAInputRange = function GoAInputRange(_a) {
594
+ _a.step;
595
+ var props = __rest(_a, ["step"]);
2388
596
 
2389
- var validate = function validate() {
2390
- var validators = formState.validators;
2391
- setFormState(function (state) {
2392
- return _objectSpread2(_objectSpread2({}, state), {}, {
2393
- errors: {}
2394
- });
2395
- });
2396
- var formErrors = Object.entries(validators).reduce(function (errors, _ref2) {
2397
- var _ref3 = _slicedToArray(_ref2, 2),
2398
- name = _ref3[0],
2399
- validators = _ref3[1];
2400
-
2401
- var data = formState.data;
2402
-
2403
- if (validators.length > 0) {
2404
- var messages = validators.reduce(function (result, validator) {
2405
- var value = data[name];
2406
- var err = validator(value, data);
2407
- return [].concat(_toConsumableArray(result), _toConsumableArray(err));
2408
- }, []);
2409
-
2410
- if (messages.length > 0) {
2411
- errors[name] = "".concat(messages, " ").concat(name.toLocaleLowerCase());
2412
- }
2413
-
2414
- var errorNames = [];
597
+ return jsxRuntime.jsx(GoAInput, __assign({}, props, {
598
+ type: "range"
599
+ }), void 0);
600
+ };
2415
601
 
2416
- for (var key in errors) {
2417
- if (errors[key].length > 0) {
2418
- errorNames.push(key);
2419
- }
2420
- }
602
+ var GoAMicrositeHeader = function GoAMicrositeHeader(_a) {
603
+ var level = _a.level,
604
+ version = _a.version,
605
+ feedbackUrl = _a.feedbackUrl;
606
+ return jsxRuntime.jsx("goa-microsite-header", {
607
+ level: level,
608
+ version: version,
609
+ feedbackurl: feedbackUrl
610
+ }, void 0);
611
+ };
2421
612
 
2422
- setFormErrors(errorNames);
613
+ var GoAModal = function GoAModal(_a) {
614
+ var heading = _a.heading,
615
+ children = _a.children,
616
+ open = _a.open,
617
+ width = _a.width,
618
+ actions = _a.actions,
619
+ onClose = _a.onClose;
620
+ var el = React.useRef(null);
621
+ React.useEffect(function () {
622
+ if (!el.current) {
623
+ return;
2423
624
  }
2424
625
 
2425
- return errors;
2426
- }, {});
2427
-
2428
- if (Object.keys(formErrors).length === 0) {
2429
- return true;
2430
- }
2431
-
2432
- setFormState(function (state) {
2433
- return _objectSpread2(_objectSpread2({}, state), {}, {
2434
- errors: formErrors
2435
- });
2436
- });
2437
- return false;
626
+ var current = el.current;
627
+
628
+ var listener = function listener(e) {
629
+ onClose === null || onClose === void 0 ? void 0 : onClose();
630
+ };
631
+
632
+ current.addEventListener('_close', listener);
633
+ return function () {
634
+ current.removeEventListener('_close', listener);
635
+ };
636
+ }, [el, onClose]);
637
+ return jsxRuntime.jsxs("goa-modal", __assign({
638
+ ref: el,
639
+ heading: heading,
640
+ open: open,
641
+ closable: !!onClose,
642
+ scrollable: true,
643
+ width: width
644
+ }, {
645
+ children: [actions && jsxRuntime.jsx("div", __assign({
646
+ slot: "actions"
647
+ }, {
648
+ children: actions
649
+ }), void 0), children]
650
+ }), void 0);
2438
651
  };
2439
652
 
2440
- var setFieldValue = function setFieldValue(name, value) {
2441
- setFormState(function (state) {
2442
- return _objectSpread2(_objectSpread2({}, state), {}, {
2443
- data: _objectSpread2(_objectSpread2({}, state.data), {}, _defineProperty({}, name, value)),
2444
- errors: _objectSpread2(_objectSpread2({}, state.errors), {}, _defineProperty({}, name, []))
2445
- });
2446
- });
653
+ var GoANotification = function GoANotification(_a) {
654
+ var _b = _a.type,
655
+ type = _b === void 0 ? "information" : _b,
656
+ children = _a.children;
657
+ return jsxRuntime.jsx("goa-notification", __assign({
658
+ type: type
659
+ }, {
660
+ children: children
661
+ }), void 0);
2447
662
  };
2448
663
 
2449
- var registerInput = function registerInput(_ref4) {
2450
- var name = _ref4.name,
2451
- validators = _ref4.validators;
2452
- setFormState(function (state) {
2453
- return _objectSpread2(_objectSpread2({}, state), {}, {
2454
- validators: _objectSpread2(_objectSpread2({}, state.validators), {}, _defineProperty({}, name, validators || [])),
2455
- errors: _objectSpread2(_objectSpread2({}, state.errors), {}, _defineProperty({}, name, []))
2456
- });
2457
- });
2458
- return function () {
2459
- setFormState(function (state) {
2460
- var _state = _objectSpread2({}, state),
2461
- data = _state.data,
2462
- errors = _state.errors,
2463
- currentValidators = _state.validators,
2464
- navigator = _state.navigator;
2465
-
2466
- delete data[name];
2467
- delete errors[name];
2468
- delete currentValidators[name];
2469
- delete navigator[name];
2470
- return {
2471
- data: data,
2472
- errors: errors,
2473
- validators: currentValidators,
2474
- navigator: navigator
2475
- };
2476
- });
2477
- };
664
+ var GoAPageBlock = function GoAPageBlock(_a) {
665
+ var children = _a.children;
666
+ return jsxRuntime.jsx("goa-page-block", {
667
+ children: children
668
+ }, void 0);
2478
669
  };
2479
670
 
2480
- var formProviderValue = {
2481
- errors: formState.errors,
2482
- data: formState.data,
2483
- navigator: formState.navigator,
2484
- setFieldValue: setFieldValue,
2485
- registerInput: registerInput
671
+ var GoARadioItem = function GoARadioItem(_a) {
672
+ var name = _a.name,
673
+ label = _a.label,
674
+ value = _a.value,
675
+ disabled = _a.disabled,
676
+ checked = _a.checked,
677
+ error = _a.error,
678
+ testId = _a.testId,
679
+ children = _a.children;
680
+ return jsxRuntime.jsx("goa-radio-item", __assign({
681
+ name: name,
682
+ label: label,
683
+ value: value,
684
+ error: error,
685
+ disabled: disabled,
686
+ checked: checked,
687
+ "data-testid": testId
688
+ }, {
689
+ children: children
690
+ }), void 0);
2486
691
  };
2487
692
 
2488
- function addNavigator(error) {
2489
- setFormState(function (state) {
2490
- return _objectSpread2(_objectSpread2({}, state), {}, {
2491
- navigator: {
2492
- name: error
2493
- }
2494
- });
2495
- });
2496
- }
693
+ var GoARadioGroup = function GoARadioGroup(_a) {
694
+ var name = _a.name,
695
+ value = _a.value,
696
+ children = _a.children,
697
+ _b = _a.orientation,
698
+ orientation = _b === void 0 ? 'vertical' : _b,
699
+ _c = _a.disabled,
700
+ disabled = _c === void 0 ? false : _c,
701
+ _d = _a.error,
702
+ error = _d === void 0 ? false : _d,
703
+ testId = _a.testId,
704
+ onChange = _a.onChange;
705
+ var el = React.useRef(null);
706
+ React.useEffect(function () {
707
+ if (!el.current) {
708
+ return;
709
+ }
2497
710
 
2498
- var renderErrorList = function renderErrorList() {
2499
- return /*#__PURE__*/React__default.createElement(GoACallout, {
2500
- type: "emergency",
2501
- title: "Please fix following errors:"
2502
- }, /*#__PURE__*/React__default.createElement("ul", null, formErrors.map(function (error) {
2503
- return /*#__PURE__*/React__default.createElement("li", null, /*#__PURE__*/React__default.createElement("a", {
2504
- href: "#".concat(error),
2505
- onClick: function onClick() {
2506
- return addNavigator(error);
711
+ var listener = function listener(e) {
712
+ if (!onChange) {
713
+ console.warn("Missing onChange function");
714
+ return;
2507
715
  }
2508
- }, error));
2509
- })));
2510
- };
2511
-
2512
- return /*#__PURE__*/React__default.createElement(Provider, {
2513
- value: formProviderValue
2514
- }, /*#__PURE__*/React__default.createElement("div", {
2515
- className: "goa-form"
2516
- }, /*#__PURE__*/React__default.createElement("h2", null, formTitle), /*#__PURE__*/React__default.createElement("p", null, formDescription), onFormSubmit ? /*#__PURE__*/React__default.createElement("form", {
2517
- onSubmit: onSubmit
2518
- }, children, formErrors.length > 0 && renderErrorList(), /*#__PURE__*/React__default.createElement(GoAFormButton, null, /*#__PURE__*/React__default.createElement(GoAButton, {
2519
- buttonType: "tertiary",
2520
- type: "button"
2521
- }, "Cancel"), /*#__PURE__*/React__default.createElement(GoAButton, {
2522
- buttonType: "primary",
2523
- type: "submit"
2524
- }, "Submit"))) : children));
2525
- };
2526
- GoAForm.propTypes = {
2527
- formTitle: propTypes.string,
2528
- formDescription: propTypes.string,
2529
- onSubmit: propTypes.func,
2530
- children: propTypes.node
2531
- };
2532
-
2533
- var css_248z$k = "/* Palette */\n/* Semantic usages */\n.goa-input {\n position: relative; }\n\n.goa-input-error-message {\n font-size: var(--fs-sm);\n font-weight: 300;\n color: red;\n margin: 0; }\n\n.goa-input-help-text-message {\n font-size: var(--fs-sm);\n font-weight: 200;\n color: #333;\n margin: 0; }\n\n.goa-input-field {\n border: 1px solid #666666;\n border-radius: 4px; }\n\n.goa-input-field-error {\n border: 1px solid #ec040b;\n border-radius: 4px; }\n\n.goa-input-highlight-error {\n border: 4px solid #ec040b;\n border-radius: 4px; }\n";
2534
- styleInject(css_248z$k);
2535
-
2536
- var GoAInput = function GoAInput(_ref) {
2537
- var _ref$validate = _ref.validate,
2538
- validate = _ref$validate === void 0 ? null : _ref$validate,
2539
- _ref$name = _ref.name,
2540
- name = _ref$name === void 0 ? '' : _ref$name,
2541
- _ref$type = _ref.type,
2542
- type = _ref$type === void 0 ? '' : _ref$type,
2543
- _ref$message = _ref.message,
2544
- message = _ref$message === void 0 ? '' : _ref$message,
2545
- _ref$required = _ref.required,
2546
- required = _ref$required === void 0 ? false : _ref$required,
2547
- _ref$helpText = _ref.helpText,
2548
- helpText = _ref$helpText === void 0 ? '' : _ref$helpText,
2549
- _ref$multiLine = _ref.multiLine,
2550
- multiLine = _ref$multiLine === void 0 ? false : _ref$multiLine,
2551
- _ref$navigator = _ref.navigator,
2552
- navigator = _ref$navigator === void 0 ? false : _ref$navigator,
2553
- onChange = _ref.onChange;
2554
-
2555
- var _useState = React.useState(true),
2556
- _useState2 = _slicedToArray(_useState, 2),
2557
- valid = _useState2[0],
2558
- setValid = _useState2[1];
2559
-
2560
- var _useState3 = React.useState(''),
2561
- _useState4 = _slicedToArray(_useState3, 2),
2562
- value = _useState4[0],
2563
- setValue = _useState4[1];
2564
-
2565
- var handleInput = function handleInput(e) {
2566
- var value = e.target.value;
2567
- setValue(value);
2568
-
2569
- if (validate) {
2570
- setValid(validate(value));
2571
- }
2572
716
 
2573
- onChange(value);
717
+ onChange(name, e.detail.value);
718
+ };
719
+
720
+ var currentEl = el.current;
721
+ currentEl.addEventListener("_change", listener);
722
+ return function () {
723
+ currentEl.removeEventListener("_change", listener);
724
+ };
725
+ }, []);
726
+ return jsxRuntime.jsx("goa-radio-group", __assign({
727
+ "data-testid": testId,
728
+ ref: el,
729
+ name: name,
730
+ value: value,
731
+ orientation: orientation,
732
+ disabled: disabled,
733
+ error: error
734
+ }, {
735
+ children: children
736
+ }), void 0);
2574
737
  };
2575
738
 
2576
- var inputFieldClass = !message ? 'goa-input-field' : !navigator ? 'goa-input-field-error' : 'goa-input-highlight-error';
2577
- return /*#__PURE__*/React__default.createElement("div", null, multiLine ? /*#__PURE__*/React__default.createElement("textarea", {
2578
- placeholder: name,
2579
- onChange: handleInput,
2580
- className: inputFieldClass
2581
- }, value) : /*#__PURE__*/React__default.createElement("input", {
2582
- type: type,
2583
- required: required,
2584
- name: name,
2585
- value: value,
2586
- onChange: handleInput,
2587
- className: inputFieldClass,
2588
- placeholder: name
2589
- }), message && /*#__PURE__*/React__default.createElement("p", {
2590
- className: "goa-input-error-message"
2591
- }, message), helpText && /*#__PURE__*/React__default.createElement("p", {
2592
- className: "goa-input-help-text-message"
2593
- }, helpText));
2594
- };
2595
- GoAInput.propTypes = {
2596
- validate: propTypes.func,
2597
- name: propTypes.string,
2598
- type: propTypes.string,
2599
- message: propTypes.string,
2600
- required: propTypes.bool,
2601
- helpText: propTypes.string,
2602
- multiLine: propTypes.bool,
2603
- navigator: propTypes.bool,
2604
- onChange: propTypes.func
2605
- };
2606
-
2607
- var css_248z$l = ".goa-scrollable {\n overflow: hidden;\n height: 100%;\n}\n\n.goa-scrollable > div::-webkit-scrollbar {\n width: 6px;\n}\n\n.goa-scrollable > div::-webkit-scrollbar-track {\n background: #f1f1f1;\n}\n\n.goa-scrollable > div::-webkit-scrollbar-thumb {\n background: #888;\n}\n\n.goa-scrollable > div::-webkit-scrollbar-thumb:hover {\n background: #555;\n}\n";
2608
- styleInject(css_248z$l);
2609
-
2610
- var css_248z$m = "/* Root ============================================================================== */\n\n.modal-root {\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n width: 100vw;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n z-index: 1000;\n}\n\n/* Modal ============================================================================== */\n\n.modal {\n position: relative;\n background: #fff;\n transition: opacity 150ms ease-in;\n z-index: 1002;\n}\n\n@media (max-width: 639px) {\n .modal {\n width: 100vw;\n height: 100vh;\n }\n}\n\n@media (min-width: 640px) {\n .modal {\n box-shadow: 6px 6px 6px rgba(0, 0, 0, 0.2);\n border-radius: 4px;\n margin: 1rem;\n max-height: 80vh;\n width: 600px;\n }\n}\n@media (min-width: 1024px) {\n .modal {\n width: 65ch;\n }\n}\n\n/* Modal Content ============================================================================== */\n\n.modal-content {\n display: flex;\n flex-direction: column;\n height: 100%;\n}\n\n/* Modal Actions ============================================================================== */\n\n.modal-actions {\n text-align: right;\n margin: 1rem;\n}\n\n@media (max-width: 639px) {\n .modal-actions button + button {\n margin-top: 0.5rem;\n }\n .modal-actions button {\n display: block;\n width: 100%;\n }\n}\n\n@media (min-width: 640px) {\n .modal-actions > button {\n margin-right: 0;\n }\n .modal-actions > button + button {\n margin-left: 0.5rem;\n }\n}\n\n/* Modal Title ============================================================================ */\n\n.modal-title {\n font-size: var(--fs-xl);\n padding: 1rem;\n margin-right: 40px; /* close icon spacing */\n}\n\n/* Modal Background ======================================================================= */\n\n.modal-background {\n position: fixed;\n inset: 0;\n opacity: 0;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1001;\n transition: opacity 100ms ease-in;\n}\n";
2611
- styleInject(css_248z$m);
2612
-
2613
- var css_248z$n = ".icon-circular {\n padding: 0.5rem;\n top: 0.5rem;\n right: 0.5rem;\n position: absolute;\n cursor: pointer;\n height: 1.5rem;\n width: 1.5rem;\n border-radius: 999px;\n transition: background 200ms ease-in;\n}\n\n.icon-circular:hover {\n background: rgba(0, 0, 0, 0.1);\n}\n";
2614
- styleInject(css_248z$n);
2615
-
2616
- var css_248z$o = "@use '../variables/main.css';\n/* Palette */\n/* Semantic usages */\n@-webkit-keyframes pulse {\n 0% {\n opacity: 0.5; }\n 50% {\n opacity: 1; }\n 100% {\n opacity: 0.5; } }\n@keyframes pulse {\n 0% {\n opacity: 0.5; }\n 50% {\n opacity: 1; }\n 100% {\n opacity: 0.5; } }\n\n[data-skeleton] {\n pointer-events: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n [data-skeleton] * {\n border-color: #ddd !important;\n color: transparent !important; }\n [data-skeleton] p,\n [data-skeleton] a {\n background-color: #ddd !important;\n -webkit-animation: pulse 2s infinite ease-in-out;\n animation: pulse 2s infinite ease-in-out;\n display: inline;\n line-height: 0 !important;\n font-size: 50% !important; }\n [data-skeleton] p::after,\n [data-skeleton] a::after {\n content: '' !important;\n display: block !important;\n margin-bottom: 1rem !important;\n background-size: contain; }\n [data-skeleton] h1,\n [data-skeleton] h2,\n [data-skeleton] h3,\n [data-skeleton] h4,\n [data-skeleton] h5,\n [data-skeleton] h6 {\n background-color: #ddd !important;\n -webkit-animation: pulse 2s infinite ease-in-out;\n animation: pulse 2s infinite ease-in-out;\n margin-bottom: 1rem; }\n [data-skeleton] h1 {\n height: calc(0.6 * var(--fs-3xl)) !important; }\n [data-skeleton] h2 {\n height: calc(0.6 * var(--fs-2xl)) !important; }\n [data-skeleton] h3 {\n height: calc(0.6 * var(--fs-xl)) !important; }\n [data-skeleton] h4 {\n height: calc(0.6 * var(--fs-lg)) !important; }\n [data-skeleton] img {\n background-color: #ddd !important;\n -webkit-animation: pulse 2s infinite ease-in-out;\n animation: pulse 2s infinite ease-in-out; }\n\n/* basic styles */\n.skeleton {\n background-color: #ddd !important;\n -webkit-animation: pulse 2s infinite ease-in-out;\n animation: pulse 2s infinite ease-in-out;\n background: #dcdcdc;\n overflow: hidden;\n margin: 10px 0; }\n\n.skeleton.text {\n width: 100%;\n height: 12px;\n border-radius: 4px; }\n\n.skeleton.paragraph {\n width: 100%;\n height: 70px;\n border-radius: 4px; }\n\n.skeleton.title {\n width: 50%;\n height: 20px;\n margin-bottom: 15px;\n border-radius: 4px; }\n\n.skeleton.avatar {\n width: 100px;\n height: 100px;\n border-radius: 50%; }\n\n.skeleton.thumbnail {\n width: 100px;\n height: 100px;\n border-radius: 4px; }\n\n/* skeleton image text */\n.skeleton-image-content {\n display: flex;\n flex-direction: row;\n gap: 30px; }\n\n.skeleton-image-content__text {\n flex: 1 1 auto; }\n\n/* skeleton content */\n.skeleton-content {\n display: grid;\n grid-template-columns: 1fr;\n gap: 30px;\n align-items: left; }\n";
2617
- styleInject(css_248z$o);
2618
-
2619
- var GoASkeletonElement = function GoASkeletonElement(_ref) {
2620
- var _ref$type = _ref.type,
2621
- type = _ref$type === void 0 ? 'text' : _ref$type;
2622
- var classes = "skeleton ".concat(type);
2623
- return /*#__PURE__*/React__default.createElement("div", {
2624
- className: classes
2625
- });
2626
- };
2627
-
2628
- var GoASkeletonContent = function GoASkeletonContent(_ref) {
2629
- var _ref$rows = _ref.rows,
2630
- rows = _ref$rows === void 0 ? 1 : _ref$rows;
2631
- var elements = [];
2632
-
2633
- for (var i = 0; i < rows; i++) {
2634
- elements.push( /*#__PURE__*/React__default.createElement(GoASkeletonElement, {
2635
- type: "text"
2636
- }));
2637
- }
2638
-
2639
- return /*#__PURE__*/React__default.createElement("div", {
2640
- className: "skeleton-content"
2641
- }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(GoASkeletonElement, {
2642
- type: "title"
2643
- }), elements));
2644
- };
2645
-
2646
- var GoASkeletonGridColumnContent = function GoASkeletonGridColumnContent(_ref) {
2647
- var _ref$rows = _ref.rows,
2648
- rows = _ref$rows === void 0 ? 1 : _ref$rows;
2649
- var elements = [];
2650
-
2651
- for (var i = 0; i < rows; i++) {
2652
- elements.push( /*#__PURE__*/React__default.createElement(GoASkeletonElement, {
2653
- type: "text"
2654
- }));
2655
- }
739
+ var GoASkeleton = function GoASkeleton(_a) {
740
+ var type = _a.type,
741
+ _b = _a.size,
742
+ size = _b === void 0 ? 1 : _b;
743
+ return jsxRuntime.jsx("goa-skeleton", {
744
+ type: type,
745
+ size: size
746
+ }, void 0);
747
+ };
2656
748
 
2657
- return /*#__PURE__*/React__default.createElement("div", {
2658
- className: "skeleton-content"
2659
- }, /*#__PURE__*/React__default.createElement("div", null, elements));
2660
- };
749
+ var GoASpinner = function GoASpinner(_a) {
750
+ var type = _a.type,
751
+ size = _a.size,
752
+ progress = _a.progress,
753
+ invert = _a.invert,
754
+ testId = _a.testId;
755
+ return jsxRuntime.jsx("goa-spinner", {
756
+ type: type,
757
+ size: size,
758
+ progress: progress,
759
+ invert: invert,
760
+ testid: testId
761
+ }, void 0);
762
+ };
2661
763
 
2662
- var GoASkeletonImageContent = function GoASkeletonImageContent(_ref) {
2663
- var _ref$rows = _ref.rows,
2664
- rows = _ref$rows === void 0 ? 1 : _ref$rows;
2665
- var elements = [];
764
+ var GoATextArea = function GoATextArea(_a) {
765
+ var name = _a.name,
766
+ value = _a.value,
767
+ placeholder = _a.placeholder,
768
+ rows = _a.rows,
769
+ disabled = _a.disabled,
770
+ testId = _a.testId,
771
+ error = _a.error,
772
+ onChange = _a.onChange;
773
+ var el = React.useRef(null);
774
+ React.useEffect(function () {
775
+ if (!el.current) {
776
+ return;
777
+ }
2666
778
 
2667
- for (var i = 0; i < rows; i++) {
2668
- elements.push( /*#__PURE__*/React__default.createElement(GoASkeletonElement, {
2669
- type: "text"
2670
- }));
2671
- }
779
+ var current = el.current;
780
+
781
+ var listener = function listener(e) {
782
+ var _a = e.detail,
783
+ name = _a.name,
784
+ value = _a.value;
785
+ onChange(name, value);
786
+ };
787
+
788
+ current.addEventListener('_change', listener);
789
+ return function () {
790
+ current.removeEventListener('_change', listener);
791
+ };
792
+ }, [el, onChange]);
793
+ return jsxRuntime.jsx("goa-textarea", {
794
+ ref: el,
795
+ name: name,
796
+ placeholder: placeholder,
797
+ value: value,
798
+ rows: rows,
799
+ disabled: disabled,
800
+ error: error,
801
+ "data-testid": testId
802
+ }, void 0);
803
+ };
2672
804
 
2673
- return /*#__PURE__*/React__default.createElement("div", {
2674
- className: "skeleton-image-content"
2675
- }, /*#__PURE__*/React__default.createElement(GoASkeletonElement, {
2676
- type: "thumbnail"
2677
- }), /*#__PURE__*/React__default.createElement("div", {
2678
- className: "skeleton-image-content__text"
2679
- }, /*#__PURE__*/React__default.createElement(GoASkeletonElement, {
2680
- type: "title"
2681
- }), elements));
2682
- };
2683
-
2684
- exports.GoABadge = GoABadge;
2685
- exports.GoAButton = GoAButton;
2686
- exports.GoACallout = GoACallout;
2687
- exports.GoACard = GoACard;
2688
- exports.GoACardGroup = GoACardGroup;
2689
- exports.GoACheckbox = GoACheckbox;
2690
- exports.GoADropdown = GoADropdown;
2691
- exports.GoAElementLoader = GoAElementLoader;
2692
- exports.GoAForm = GoAForm;
2693
- exports.GoAFormButton = GoAFormButton;
2694
- exports.GoAFormContainer = GoAFormContainer;
2695
- exports.GoAFormItem = GoAFormItem;
2696
- exports.GoAHeader = GoAHeader;
2697
- exports.GoAHeroBanner = GoAHeroBanner;
2698
- exports.GoAHeroBannerContent = GoAHeroBannerContent;
2699
- exports.GoAHeroBannerLink = GoAHeroBannerLink;
2700
- exports.GoAInput = GoAInput;
2701
- exports.GoAMicrositeLogo = MicrositeLogo;
2702
- exports.GoANotification = GoANotification;
2703
- exports.GoAOption = GoAOption;
2704
- exports.GoAOptionGroup = GoAOptionGroup;
2705
- exports.GoAPageLoader = GoAPageLoader;
2706
- exports.GoARadio = GoARadio;
2707
- exports.GoARadioGroup = GoARadioGroup;
2708
- exports.GoASkeletonContent = GoASkeletonContent;
2709
- exports.GoASkeletonGridColumnContent = GoASkeletonGridColumnContent;
2710
- exports.GoASkeletonImageContent = GoASkeletonImageContent;
2711
-
2712
- Object.defineProperty(exports, '__esModule', { value: true });
2713
-
2714
- })));
805
+ exports.GoAAppHeader = GoAAppHeader;
806
+ exports.GoABadge = GoABadge;
807
+ exports.GoAButton = GoAButton;
808
+ exports.GoAButtonGroup = GoAButtonGroup;
809
+ exports.GoACallout = GoACallout;
810
+ exports.GoACheckbox = GoACheckbox;
811
+ exports.GoACircularProgress = GoACircularProgress;
812
+ exports.GoAContainer = GoAContainer;
813
+ exports.GoADropdown = GoADropdown;
814
+ exports.GoADropdownOption = GoADropdownOption;
815
+ exports.GoAEmergencyBadge = GoAEmergencyBadge;
816
+ exports.GoAFlexRow = GoAFlexRow;
817
+ exports.GoAFormItem = GoAFormItem;
818
+ exports.GoAHeroBanner = GoAHeroBanner;
819
+ exports.GoAHeroBannerActions = GoAHeroBannerActions;
820
+ exports.GoAIcon = GoAIcon;
821
+ exports.GoAIconButton = GoAIconButton;
822
+ exports.GoAInfoBadge = GoAInfoBadge;
823
+ exports.GoAInput = GoAInput;
824
+ exports.GoAInputDate = GoAInputDate;
825
+ exports.GoAInputDateTime = GoAInputDateTime;
826
+ exports.GoAInputEmail = GoAInputEmail;
827
+ exports.GoAInputFile = GoAInputFile;
828
+ exports.GoAInputMonth = GoAInputMonth;
829
+ exports.GoAInputNumber = GoAInputNumber;
830
+ exports.GoAInputPassword = GoAInputPassword;
831
+ exports.GoAInputRange = GoAInputRange;
832
+ exports.GoAInputSearch = GoAInputSearch;
833
+ exports.GoAInputTel = GoAInputTel;
834
+ exports.GoAInputText = GoAInputText;
835
+ exports.GoAInputTime = GoAInputTime;
836
+ exports.GoAInputUrl = GoAInputUrl;
837
+ exports.GoAMicrositeHeader = GoAMicrositeHeader;
838
+ exports.GoAModal = GoAModal;
839
+ exports.GoANotification = GoANotification;
840
+ exports.GoAPageBlock = GoAPageBlock;
841
+ exports.GoARadioGroup = GoARadioGroup;
842
+ exports.GoARadioItem = GoARadioItem;
843
+ exports.GoASkeleton = GoASkeleton;
844
+ exports.GoASpinner = GoASpinner;
845
+ exports.GoASuccessBadge = GoASuccessBadge;
846
+ exports.GoATextArea = GoATextArea;
847
+ exports.GoAWarningBadge = GoAWarningBadge;
848
+
849
+ Object.defineProperty(exports, '__esModule', { value: true });
850
+
851
+ }));