@abgov/react-components 3.4.0-beta.9 → 4.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -97
- package/experimental/index.d.ts +0 -10
- package/experimental/package.json +1 -1
- package/experimental/react-components.esm.js +0 -1714
- package/experimental/react-components.umd.js +5 -1735
- package/index.d.ts +36 -16
- package/lib/app-footer/app-footer.d.ts +24 -0
- package/lib/app-footer/meta-link.d.ts +20 -0
- package/lib/app-footer/navigation-link.d.ts +22 -0
- package/lib/app-header/app-header.d.ts +18 -0
- package/lib/badge/badge.d.ts +28 -0
- package/lib/button/button.d.ts +27 -35
- package/lib/button-group/button-group.d.ts +18 -0
- package/lib/callout/callout.d.ts +14 -23
- package/lib/card/card-actions.d.ts +16 -0
- package/lib/card/card-content.d.ts +13 -0
- package/lib/card/card-group.d.ts +16 -0
- package/lib/card/card-image.d.ts +18 -0
- package/lib/card/card.d.ts +18 -0
- package/lib/card/index.d.ts +5 -0
- package/lib/checkbox/checkbox.d.ts +27 -36
- package/lib/chip/chip.d.ts +23 -0
- package/lib/circular-progress/circular-progress.d.ts +29 -0
- package/lib/container/container.d.ts +23 -0
- package/lib/dropdown/dropdown-option.d.ts +21 -0
- package/lib/dropdown/dropdown.d.ts +37 -0
- package/lib/flex/index.d.ts +1 -0
- package/lib/flex/row.d.ts +16 -0
- package/lib/form/form-item.d.ts +22 -0
- package/lib/form/index.d.ts +1 -0
- package/lib/form/validators.d.ts +10 -0
- package/lib/hero-banner/hero-banner-actions.d.ts +4 -0
- package/lib/hero-banner/hero-banner.d.ts +18 -0
- package/lib/icons/icon-button.d.ts +27 -0
- package/lib/icons/icon.d.ts +37 -0
- package/lib/icons/index.d.ts +2 -0
- package/lib/input/input.d.ts +75 -0
- package/lib/microsite-header/microsite-header.d.ts +21 -0
- package/lib/modal/modal.d.ts +25 -0
- package/lib/notification/notification.d.ts +14 -35
- package/lib/page-block/page-block.d.ts +9 -0
- package/lib/radio-group/radio-group.d.ts +21 -44
- package/lib/radio-group/radio.d.ts +27 -0
- package/lib/skeleton/skeleton.d.ts +19 -0
- package/lib/spinner/spinner.d.ts +26 -0
- package/lib/textarea/textarea.d.ts +30 -0
- package/package.json +5 -4
- package/react-components.esm.js +794 -2361
- package/react-components.umd.js +845 -2398
- package/experimental/badge/badge.component.d.ts +0 -8
- package/experimental/common.d.ts +0 -3
- package/experimental/element-loader/element-loader.d.ts +0 -18
- package/experimental/form/form.actions.component.d.ts +0 -3
- package/experimental/form/form.component.d.ts +0 -10
- package/experimental/form/form.item.component.d.ts +0 -7
- package/experimental/form/formFieldValidator.d.ts +0 -4
- package/experimental/icons/icons.d.ts +0 -13
- package/experimental/input/input.component.d.ts +0 -15
- package/experimental/modal/modal.component.d.ts +0 -44
- package/experimental/scrollable/scrollable.component.d.ts +0 -12
- package/experimental/skeleton/skeleton-element.d.ts +0 -8
- package/experimental/skeleton/skeleton-grid-column.d.ts +0 -9
- package/experimental/skeleton/skeleton-image-content.d.ts +0 -9
- package/experimental/skeleton/skeleton-titled-content.d.ts +0 -9
- package/lib/card/card.component.d.ts +0 -26
- package/lib/card-group/card.group.component.d.ts +0 -24
- package/lib/dropdown/dropdown.component.d.ts +0 -59
- package/lib/dropdown/dropdown.context.d.ts +0 -17
- package/lib/dropdown/option/option.component.d.ts +0 -10
- package/lib/dropdown/option-group/option-group.component.d.ts +0 -6
- package/lib/header/header.d.ts +0 -10
- package/lib/hero-banner/content/hero-banner-content.component.d.ts +0 -7
- package/lib/hero-banner/hero-banner.component.d.ts +0 -11
- package/lib/hero-banner/link/hero-banner-link.component.d.ts +0 -8
- package/lib/microsite-logo/microsite-logo.d.ts +0 -8
- package/lib/page-loader/page-loader.d.ts +0 -43
- package/lib/radio-group/radio/radio.d.ts +0 -17
- package/lib/radio-group/radio-group.context.d.ts +0 -6
package/react-components.umd.js
CHANGED
|
@@ -1,2465 +1,912 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}(this, (function (exports,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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 _arrayWithHoles(arr) {
|
|
100
|
-
if (Array.isArray(arr)) return arr;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
function _iterableToArrayLimit(arr, i) {
|
|
104
|
-
if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
|
|
105
|
-
var _arr = [];
|
|
106
|
-
var _n = true;
|
|
107
|
-
var _d = false;
|
|
108
|
-
var _e = undefined;
|
|
109
|
-
|
|
110
|
-
try {
|
|
111
|
-
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
|
112
|
-
_arr.push(_s.value);
|
|
113
|
-
|
|
114
|
-
if (i && _arr.length === i) break;
|
|
115
|
-
}
|
|
116
|
-
} catch (err) {
|
|
117
|
-
_d = true;
|
|
118
|
-
_e = err;
|
|
119
|
-
} finally {
|
|
120
|
-
try {
|
|
121
|
-
if (!_n && _i["return"] != null) _i["return"]();
|
|
122
|
-
} finally {
|
|
123
|
-
if (_d) throw _e;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
return _arr;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
131
|
-
if (!o) return;
|
|
132
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
133
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
134
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
135
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
136
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
function _arrayLikeToArray(arr, len) {
|
|
140
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
141
|
-
|
|
142
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
143
|
-
|
|
144
|
-
return arr2;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
function _nonIterableRest() {
|
|
148
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
function createCommonjsModule(fn, module) {
|
|
152
|
-
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/** @license React v16.13.1
|
|
156
|
-
* react-is.production.min.js
|
|
157
|
-
*
|
|
158
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
159
|
-
*
|
|
160
|
-
* This source code is licensed under the MIT license found in the
|
|
161
|
-
* LICENSE file in the root directory of this source tree.
|
|
162
|
-
*/
|
|
163
|
-
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?
|
|
164
|
-
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;
|
|
165
|
-
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;
|
|
166
|
-
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};
|
|
167
|
-
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};
|
|
168
|
-
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;
|
|
169
|
-
|
|
170
|
-
var reactIs_production_min = {
|
|
171
|
-
AsyncMode: AsyncMode,
|
|
172
|
-
ConcurrentMode: ConcurrentMode,
|
|
173
|
-
ContextConsumer: ContextConsumer,
|
|
174
|
-
ContextProvider: ContextProvider,
|
|
175
|
-
Element: Element,
|
|
176
|
-
ForwardRef: ForwardRef,
|
|
177
|
-
Fragment: Fragment,
|
|
178
|
-
Lazy: Lazy,
|
|
179
|
-
Memo: Memo,
|
|
180
|
-
Portal: Portal,
|
|
181
|
-
Profiler: Profiler,
|
|
182
|
-
StrictMode: StrictMode,
|
|
183
|
-
Suspense: Suspense,
|
|
184
|
-
isAsyncMode: isAsyncMode,
|
|
185
|
-
isConcurrentMode: isConcurrentMode,
|
|
186
|
-
isContextConsumer: isContextConsumer,
|
|
187
|
-
isContextProvider: isContextProvider,
|
|
188
|
-
isElement: isElement,
|
|
189
|
-
isForwardRef: isForwardRef,
|
|
190
|
-
isFragment: isFragment,
|
|
191
|
-
isLazy: isLazy,
|
|
192
|
-
isMemo: isMemo,
|
|
193
|
-
isPortal: isPortal,
|
|
194
|
-
isProfiler: isProfiler,
|
|
195
|
-
isStrictMode: isStrictMode,
|
|
196
|
-
isSuspense: isSuspense,
|
|
197
|
-
isValidElementType: isValidElementType,
|
|
198
|
-
typeOf: typeOf
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
if (process.env.NODE_ENV !== "production") {
|
|
206
|
-
(function() {
|
|
207
|
-
|
|
208
|
-
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
209
|
-
// nor polyfill, then a plain number is used for performance.
|
|
210
|
-
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
211
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
212
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
213
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
214
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
215
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
216
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
217
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
218
|
-
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
219
|
-
|
|
220
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
221
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
222
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
223
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
224
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
225
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
226
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
227
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
228
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
229
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
230
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
231
|
-
|
|
232
|
-
function isValidElementType(type) {
|
|
233
|
-
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
234
|
-
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);
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
function typeOf(object) {
|
|
238
|
-
if (typeof object === 'object' && object !== null) {
|
|
239
|
-
var $$typeof = object.$$typeof;
|
|
240
|
-
|
|
241
|
-
switch ($$typeof) {
|
|
242
|
-
case REACT_ELEMENT_TYPE:
|
|
243
|
-
var type = object.type;
|
|
244
|
-
|
|
245
|
-
switch (type) {
|
|
246
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
247
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
248
|
-
case REACT_FRAGMENT_TYPE:
|
|
249
|
-
case REACT_PROFILER_TYPE:
|
|
250
|
-
case REACT_STRICT_MODE_TYPE:
|
|
251
|
-
case REACT_SUSPENSE_TYPE:
|
|
252
|
-
return type;
|
|
253
|
-
|
|
254
|
-
default:
|
|
255
|
-
var $$typeofType = type && type.$$typeof;
|
|
256
|
-
|
|
257
|
-
switch ($$typeofType) {
|
|
258
|
-
case REACT_CONTEXT_TYPE:
|
|
259
|
-
case REACT_FORWARD_REF_TYPE:
|
|
260
|
-
case REACT_LAZY_TYPE:
|
|
261
|
-
case REACT_MEMO_TYPE:
|
|
262
|
-
case REACT_PROVIDER_TYPE:
|
|
263
|
-
return $$typeofType;
|
|
264
|
-
|
|
265
|
-
default:
|
|
266
|
-
return $$typeof;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
case REACT_PORTAL_TYPE:
|
|
272
|
-
return $$typeof;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
return undefined;
|
|
277
|
-
} // AsyncMode is deprecated along with isAsyncMode
|
|
278
|
-
|
|
279
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
280
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
281
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
282
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
283
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
284
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
285
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
286
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
287
|
-
var Memo = REACT_MEMO_TYPE;
|
|
288
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
289
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
290
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
291
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
292
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
293
|
-
|
|
294
|
-
function isAsyncMode(object) {
|
|
295
|
-
{
|
|
296
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
297
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
298
|
-
|
|
299
|
-
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.');
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
304
|
-
}
|
|
305
|
-
function isConcurrentMode(object) {
|
|
306
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
307
|
-
}
|
|
308
|
-
function isContextConsumer(object) {
|
|
309
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
310
|
-
}
|
|
311
|
-
function isContextProvider(object) {
|
|
312
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
313
|
-
}
|
|
314
|
-
function isElement(object) {
|
|
315
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
316
|
-
}
|
|
317
|
-
function isForwardRef(object) {
|
|
318
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
319
|
-
}
|
|
320
|
-
function isFragment(object) {
|
|
321
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
322
|
-
}
|
|
323
|
-
function isLazy(object) {
|
|
324
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
325
|
-
}
|
|
326
|
-
function isMemo(object) {
|
|
327
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
328
|
-
}
|
|
329
|
-
function isPortal(object) {
|
|
330
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
331
|
-
}
|
|
332
|
-
function isProfiler(object) {
|
|
333
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
334
|
-
}
|
|
335
|
-
function isStrictMode(object) {
|
|
336
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
337
|
-
}
|
|
338
|
-
function isSuspense(object) {
|
|
339
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
exports.AsyncMode = AsyncMode;
|
|
343
|
-
exports.ConcurrentMode = ConcurrentMode;
|
|
344
|
-
exports.ContextConsumer = ContextConsumer;
|
|
345
|
-
exports.ContextProvider = ContextProvider;
|
|
346
|
-
exports.Element = Element;
|
|
347
|
-
exports.ForwardRef = ForwardRef;
|
|
348
|
-
exports.Fragment = Fragment;
|
|
349
|
-
exports.Lazy = Lazy;
|
|
350
|
-
exports.Memo = Memo;
|
|
351
|
-
exports.Portal = Portal;
|
|
352
|
-
exports.Profiler = Profiler;
|
|
353
|
-
exports.StrictMode = StrictMode;
|
|
354
|
-
exports.Suspense = Suspense;
|
|
355
|
-
exports.isAsyncMode = isAsyncMode;
|
|
356
|
-
exports.isConcurrentMode = isConcurrentMode;
|
|
357
|
-
exports.isContextConsumer = isContextConsumer;
|
|
358
|
-
exports.isContextProvider = isContextProvider;
|
|
359
|
-
exports.isElement = isElement;
|
|
360
|
-
exports.isForwardRef = isForwardRef;
|
|
361
|
-
exports.isFragment = isFragment;
|
|
362
|
-
exports.isLazy = isLazy;
|
|
363
|
-
exports.isMemo = isMemo;
|
|
364
|
-
exports.isPortal = isPortal;
|
|
365
|
-
exports.isProfiler = isProfiler;
|
|
366
|
-
exports.isStrictMode = isStrictMode;
|
|
367
|
-
exports.isSuspense = isSuspense;
|
|
368
|
-
exports.isValidElementType = isValidElementType;
|
|
369
|
-
exports.typeOf = typeOf;
|
|
370
|
-
})();
|
|
371
|
-
}
|
|
372
|
-
});
|
|
373
|
-
var reactIs_development_1 = reactIs_development.AsyncMode;
|
|
374
|
-
var reactIs_development_2 = reactIs_development.ConcurrentMode;
|
|
375
|
-
var reactIs_development_3 = reactIs_development.ContextConsumer;
|
|
376
|
-
var reactIs_development_4 = reactIs_development.ContextProvider;
|
|
377
|
-
var reactIs_development_5 = reactIs_development.Element;
|
|
378
|
-
var reactIs_development_6 = reactIs_development.ForwardRef;
|
|
379
|
-
var reactIs_development_7 = reactIs_development.Fragment;
|
|
380
|
-
var reactIs_development_8 = reactIs_development.Lazy;
|
|
381
|
-
var reactIs_development_9 = reactIs_development.Memo;
|
|
382
|
-
var reactIs_development_10 = reactIs_development.Portal;
|
|
383
|
-
var reactIs_development_11 = reactIs_development.Profiler;
|
|
384
|
-
var reactIs_development_12 = reactIs_development.StrictMode;
|
|
385
|
-
var reactIs_development_13 = reactIs_development.Suspense;
|
|
386
|
-
var reactIs_development_14 = reactIs_development.isAsyncMode;
|
|
387
|
-
var reactIs_development_15 = reactIs_development.isConcurrentMode;
|
|
388
|
-
var reactIs_development_16 = reactIs_development.isContextConsumer;
|
|
389
|
-
var reactIs_development_17 = reactIs_development.isContextProvider;
|
|
390
|
-
var reactIs_development_18 = reactIs_development.isElement;
|
|
391
|
-
var reactIs_development_19 = reactIs_development.isForwardRef;
|
|
392
|
-
var reactIs_development_20 = reactIs_development.isFragment;
|
|
393
|
-
var reactIs_development_21 = reactIs_development.isLazy;
|
|
394
|
-
var reactIs_development_22 = reactIs_development.isMemo;
|
|
395
|
-
var reactIs_development_23 = reactIs_development.isPortal;
|
|
396
|
-
var reactIs_development_24 = reactIs_development.isProfiler;
|
|
397
|
-
var reactIs_development_25 = reactIs_development.isStrictMode;
|
|
398
|
-
var reactIs_development_26 = reactIs_development.isSuspense;
|
|
399
|
-
var reactIs_development_27 = reactIs_development.isValidElementType;
|
|
400
|
-
var reactIs_development_28 = reactIs_development.typeOf;
|
|
401
|
-
|
|
402
|
-
var reactIs = createCommonjsModule(function (module) {
|
|
403
|
-
|
|
404
|
-
if (process.env.NODE_ENV === 'production') {
|
|
405
|
-
module.exports = reactIs_production_min;
|
|
406
|
-
} else {
|
|
407
|
-
module.exports = reactIs_development;
|
|
408
|
-
}
|
|
409
|
-
});
|
|
410
|
-
|
|
411
|
-
/*
|
|
412
|
-
object-assign
|
|
413
|
-
(c) Sindre Sorhus
|
|
414
|
-
@license MIT
|
|
415
|
-
*/
|
|
416
|
-
/* eslint-disable no-unused-vars */
|
|
417
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
418
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
419
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
420
|
-
|
|
421
|
-
function toObject(val) {
|
|
422
|
-
if (val === null || val === undefined) {
|
|
423
|
-
throw new TypeError('Object.assign cannot be called with null or undefined');
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
return Object(val);
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
function shouldUseNative() {
|
|
430
|
-
try {
|
|
431
|
-
if (!Object.assign) {
|
|
432
|
-
return false;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
// Detect buggy property enumeration order in older V8 versions.
|
|
436
|
-
|
|
437
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
438
|
-
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
439
|
-
test1[5] = 'de';
|
|
440
|
-
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
441
|
-
return false;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
445
|
-
var test2 = {};
|
|
446
|
-
for (var i = 0; i < 10; i++) {
|
|
447
|
-
test2['_' + String.fromCharCode(i)] = i;
|
|
448
|
-
}
|
|
449
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
|
|
450
|
-
return test2[n];
|
|
451
|
-
});
|
|
452
|
-
if (order2.join('') !== '0123456789') {
|
|
453
|
-
return false;
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
|
|
457
|
-
var test3 = {};
|
|
458
|
-
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
|
|
459
|
-
test3[letter] = letter;
|
|
460
|
-
});
|
|
461
|
-
if (Object.keys(Object.assign({}, test3)).join('') !==
|
|
462
|
-
'abcdefghijklmnopqrst') {
|
|
463
|
-
return false;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
return true;
|
|
467
|
-
} catch (err) {
|
|
468
|
-
// We don't expect any of the above to throw, but better to be safe.
|
|
469
|
-
return false;
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
|
|
474
|
-
var from;
|
|
475
|
-
var to = toObject(target);
|
|
476
|
-
var symbols;
|
|
477
|
-
|
|
478
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
479
|
-
from = Object(arguments[s]);
|
|
480
|
-
|
|
481
|
-
for (var key in from) {
|
|
482
|
-
if (hasOwnProperty.call(from, key)) {
|
|
483
|
-
to[key] = from[key];
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
if (getOwnPropertySymbols) {
|
|
488
|
-
symbols = getOwnPropertySymbols(from);
|
|
489
|
-
for (var i = 0; i < symbols.length; i++) {
|
|
490
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
|
491
|
-
to[symbols[i]] = from[symbols[i]];
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
return to;
|
|
498
|
-
};
|
|
499
|
-
|
|
500
|
-
/**
|
|
501
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
502
|
-
*
|
|
503
|
-
* This source code is licensed under the MIT license found in the
|
|
504
|
-
* LICENSE file in the root directory of this source tree.
|
|
505
|
-
*/
|
|
506
|
-
|
|
507
|
-
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
508
|
-
|
|
509
|
-
var ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
510
|
-
|
|
511
|
-
var printWarning = function() {};
|
|
512
|
-
|
|
513
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
514
|
-
var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
|
|
515
|
-
var loggedTypeFailures = {};
|
|
516
|
-
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
517
|
-
|
|
518
|
-
printWarning = function(text) {
|
|
519
|
-
var message = 'Warning: ' + text;
|
|
520
|
-
if (typeof console !== 'undefined') {
|
|
521
|
-
console.error(message);
|
|
522
|
-
}
|
|
523
|
-
try {
|
|
524
|
-
// --- Welcome to debugging React ---
|
|
525
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
526
|
-
// to find the callsite that caused this warning to fire.
|
|
527
|
-
throw new Error(message);
|
|
528
|
-
} catch (x) {}
|
|
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
|
+
/*! *****************************************************************************
|
|
8
|
+
Copyright (c) Microsoft Corporation.
|
|
9
|
+
|
|
10
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
11
|
+
purpose with or without fee is hereby granted.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
14
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
15
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
16
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
17
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
18
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
19
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
20
|
+
***************************************************************************** */
|
|
21
|
+
|
|
22
|
+
var __assign = function() {
|
|
23
|
+
__assign = Object.assign || function __assign(t) {
|
|
24
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
25
|
+
s = arguments[i];
|
|
26
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
27
|
+
}
|
|
28
|
+
return t;
|
|
29
|
+
};
|
|
30
|
+
return __assign.apply(this, arguments);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
function __rest(s, e) {
|
|
34
|
+
var t = {};
|
|
35
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
36
|
+
t[p] = s[p];
|
|
37
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
38
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
39
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
40
|
+
t[p[i]] = s[p[i]];
|
|
41
|
+
}
|
|
42
|
+
return t;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
var GoAAppHeader = function GoAAppHeader(_a) {
|
|
46
|
+
var title = _a.title,
|
|
47
|
+
url = _a.url,
|
|
48
|
+
children = _a.children;
|
|
49
|
+
return jsxRuntime.jsx("goa-app-header", __assign({
|
|
50
|
+
title: title,
|
|
51
|
+
url: url
|
|
52
|
+
}, {
|
|
53
|
+
children: children
|
|
54
|
+
}), void 0);
|
|
529
55
|
};
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
/**
|
|
533
|
-
* Assert that the values match with the type specs.
|
|
534
|
-
* Error messages are memorized and will only be shown once.
|
|
535
|
-
*
|
|
536
|
-
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
537
|
-
* @param {object} values Runtime values that need to be type-checked
|
|
538
|
-
* @param {string} location e.g. "prop", "context", "child context"
|
|
539
|
-
* @param {string} componentName Name of the component for error messages.
|
|
540
|
-
* @param {?Function} getStack Returns the component stack.
|
|
541
|
-
* @private
|
|
542
|
-
*/
|
|
543
|
-
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
544
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
545
|
-
for (var typeSpecName in typeSpecs) {
|
|
546
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
547
|
-
var error;
|
|
548
|
-
// Prop type validation may throw. In case they do, we don't want to
|
|
549
|
-
// fail the render phase where it didn't fail before. So we log it.
|
|
550
|
-
// After these have been cleaned up, we'll let them throw.
|
|
551
|
-
try {
|
|
552
|
-
// This is intentionally an invariant that gets caught. It's the same
|
|
553
|
-
// behavior as without this statement except with a better message.
|
|
554
|
-
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
555
|
-
var err = Error(
|
|
556
|
-
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
557
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
558
|
-
);
|
|
559
|
-
err.name = 'Invariant Violation';
|
|
560
|
-
throw err;
|
|
561
|
-
}
|
|
562
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$1);
|
|
563
|
-
} catch (ex) {
|
|
564
|
-
error = ex;
|
|
565
|
-
}
|
|
566
|
-
if (error && !(error instanceof Error)) {
|
|
567
|
-
printWarning(
|
|
568
|
-
(componentName || 'React class') + ': type specification of ' +
|
|
569
|
-
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
570
|
-
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
571
|
-
'You may have forgotten to pass an argument to the type checker ' +
|
|
572
|
-
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
573
|
-
'shape all require an argument).'
|
|
574
|
-
);
|
|
575
|
-
}
|
|
576
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
577
|
-
// Only monitor this failure once because there tends to be a lot of the
|
|
578
|
-
// same error.
|
|
579
|
-
loggedTypeFailures[error.message] = true;
|
|
580
|
-
|
|
581
|
-
var stack = getStack ? getStack() : '';
|
|
582
|
-
|
|
583
|
-
printWarning(
|
|
584
|
-
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
585
|
-
);
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
/**
|
|
593
|
-
* Resets warning cache when testing.
|
|
594
|
-
*
|
|
595
|
-
* @private
|
|
596
|
-
*/
|
|
597
|
-
checkPropTypes.resetWarningCache = function() {
|
|
598
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
599
|
-
loggedTypeFailures = {};
|
|
600
|
-
}
|
|
601
|
-
};
|
|
602
|
-
|
|
603
|
-
var checkPropTypes_1 = checkPropTypes;
|
|
604
56
|
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
57
|
+
var GoAAppFooter = function GoAAppFooter(_a) {
|
|
58
|
+
var id = _a.id,
|
|
59
|
+
appUrl = _a.appUrl,
|
|
60
|
+
title = _a.title,
|
|
61
|
+
copyrightUrl = _a.copyrightUrl,
|
|
62
|
+
copyrightText = _a.copyrightText,
|
|
63
|
+
children = _a.children;
|
|
64
|
+
return jsxRuntime.jsx("goa-app-footer", __assign({
|
|
65
|
+
id: id,
|
|
66
|
+
appurl: appUrl,
|
|
67
|
+
title: title,
|
|
68
|
+
copyrighturl: copyrightUrl,
|
|
69
|
+
copyrighttext: copyrightText
|
|
70
|
+
}, {
|
|
71
|
+
children: children
|
|
72
|
+
}), void 0);
|
|
620
73
|
};
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
function emptyFunctionThatReturnsNull() {
|
|
624
|
-
return null;
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
628
|
-
/* global Symbol */
|
|
629
|
-
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
630
|
-
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
631
|
-
|
|
632
|
-
/**
|
|
633
|
-
* Returns the iterator method function contained on the iterable object.
|
|
634
|
-
*
|
|
635
|
-
* Be sure to invoke the function with the iterable as context:
|
|
636
|
-
*
|
|
637
|
-
* var iteratorFn = getIteratorFn(myIterable);
|
|
638
|
-
* if (iteratorFn) {
|
|
639
|
-
* var iterator = iteratorFn.call(myIterable);
|
|
640
|
-
* ...
|
|
641
|
-
* }
|
|
642
|
-
*
|
|
643
|
-
* @param {?object} maybeIterable
|
|
644
|
-
* @return {?function}
|
|
645
|
-
*/
|
|
646
|
-
function getIteratorFn(maybeIterable) {
|
|
647
|
-
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
648
|
-
if (typeof iteratorFn === 'function') {
|
|
649
|
-
return iteratorFn;
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
74
|
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
*
|
|
666
|
-
* // A prop named "dialog" that requires an instance of Dialog.
|
|
667
|
-
* dialog: Props.instanceOf(Dialog).isRequired
|
|
668
|
-
* },
|
|
669
|
-
* render: function() { ... }
|
|
670
|
-
* });
|
|
671
|
-
*
|
|
672
|
-
* A more formal specification of how these methods are used:
|
|
673
|
-
*
|
|
674
|
-
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
675
|
-
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
676
|
-
*
|
|
677
|
-
* Each and every declaration produces a function with the same signature. This
|
|
678
|
-
* allows the creation of custom validation functions. For example:
|
|
679
|
-
*
|
|
680
|
-
* var MyLink = React.createClass({
|
|
681
|
-
* propTypes: {
|
|
682
|
-
* // An optional string or URI prop named "href".
|
|
683
|
-
* href: function(props, propName, componentName) {
|
|
684
|
-
* var propValue = props[propName];
|
|
685
|
-
* if (propValue != null && typeof propValue !== 'string' &&
|
|
686
|
-
* !(propValue instanceof URI)) {
|
|
687
|
-
* return new Error(
|
|
688
|
-
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
689
|
-
* componentName
|
|
690
|
-
* );
|
|
691
|
-
* }
|
|
692
|
-
* }
|
|
693
|
-
* },
|
|
694
|
-
* render: function() {...}
|
|
695
|
-
* });
|
|
696
|
-
*
|
|
697
|
-
* @internal
|
|
698
|
-
*/
|
|
699
|
-
|
|
700
|
-
var ANONYMOUS = '<<anonymous>>';
|
|
701
|
-
|
|
702
|
-
// Important!
|
|
703
|
-
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
704
|
-
var ReactPropTypes = {
|
|
705
|
-
array: createPrimitiveTypeChecker('array'),
|
|
706
|
-
bool: createPrimitiveTypeChecker('boolean'),
|
|
707
|
-
func: createPrimitiveTypeChecker('function'),
|
|
708
|
-
number: createPrimitiveTypeChecker('number'),
|
|
709
|
-
object: createPrimitiveTypeChecker('object'),
|
|
710
|
-
string: createPrimitiveTypeChecker('string'),
|
|
711
|
-
symbol: createPrimitiveTypeChecker('symbol'),
|
|
712
|
-
|
|
713
|
-
any: createAnyTypeChecker(),
|
|
714
|
-
arrayOf: createArrayOfTypeChecker,
|
|
715
|
-
element: createElementTypeChecker(),
|
|
716
|
-
elementType: createElementTypeTypeChecker(),
|
|
717
|
-
instanceOf: createInstanceTypeChecker,
|
|
718
|
-
node: createNodeChecker(),
|
|
719
|
-
objectOf: createObjectOfTypeChecker,
|
|
720
|
-
oneOf: createEnumTypeChecker,
|
|
721
|
-
oneOfType: createUnionTypeChecker,
|
|
722
|
-
shape: createShapeTypeChecker,
|
|
723
|
-
exact: createStrictShapeTypeChecker,
|
|
75
|
+
var GoAMetaLink = function GoAMetaLink(_a) {
|
|
76
|
+
var footerId = _a.footerId,
|
|
77
|
+
url = _a.url,
|
|
78
|
+
title = _a.title,
|
|
79
|
+
children = _a.children;
|
|
80
|
+
return jsxRuntime.jsx("goa-meta-link", __assign({
|
|
81
|
+
footerid: footerId,
|
|
82
|
+
url: url,
|
|
83
|
+
title: title
|
|
84
|
+
}, {
|
|
85
|
+
children: children
|
|
86
|
+
}), void 0);
|
|
724
87
|
};
|
|
725
88
|
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
}
|
|
742
|
-
/*eslint-enable no-self-compare*/
|
|
743
|
-
|
|
744
|
-
/**
|
|
745
|
-
* We use an Error-like object for backward compatibility as people may call
|
|
746
|
-
* PropTypes directly and inspect their output. However, we don't use real
|
|
747
|
-
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
748
|
-
* is prohibitively expensive if they are created too often, such as what
|
|
749
|
-
* happens in oneOfType() for any type before the one that matched.
|
|
750
|
-
*/
|
|
751
|
-
function PropTypeError(message) {
|
|
752
|
-
this.message = message;
|
|
753
|
-
this.stack = '';
|
|
754
|
-
}
|
|
755
|
-
// Make `instanceof Error` still work for returned errors.
|
|
756
|
-
PropTypeError.prototype = Error.prototype;
|
|
757
|
-
|
|
758
|
-
function createChainableTypeChecker(validate) {
|
|
759
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
760
|
-
var manualPropTypeCallCache = {};
|
|
761
|
-
var manualPropTypeWarningCount = 0;
|
|
762
|
-
}
|
|
763
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
764
|
-
componentName = componentName || ANONYMOUS;
|
|
765
|
-
propFullName = propFullName || propName;
|
|
766
|
-
|
|
767
|
-
if (secret !== ReactPropTypesSecret_1) {
|
|
768
|
-
if (throwOnDirectAccess) {
|
|
769
|
-
// New behavior only for users of `prop-types` package
|
|
770
|
-
var err = new Error(
|
|
771
|
-
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
772
|
-
'Use `PropTypes.checkPropTypes()` to call them. ' +
|
|
773
|
-
'Read more at http://fb.me/use-check-prop-types'
|
|
774
|
-
);
|
|
775
|
-
err.name = 'Invariant Violation';
|
|
776
|
-
throw err;
|
|
777
|
-
} else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
|
|
778
|
-
// Old behavior for people using React.PropTypes
|
|
779
|
-
var cacheKey = componentName + ':' + propName;
|
|
780
|
-
if (
|
|
781
|
-
!manualPropTypeCallCache[cacheKey] &&
|
|
782
|
-
// Avoid spamming the console because they are often not actionable except for lib authors
|
|
783
|
-
manualPropTypeWarningCount < 3
|
|
784
|
-
) {
|
|
785
|
-
printWarning$1(
|
|
786
|
-
'You are manually calling a React.PropTypes validation ' +
|
|
787
|
-
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
788
|
-
'and will throw in the standalone `prop-types` package. ' +
|
|
789
|
-
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
790
|
-
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
791
|
-
);
|
|
792
|
-
manualPropTypeCallCache[cacheKey] = true;
|
|
793
|
-
manualPropTypeWarningCount++;
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
if (props[propName] == null) {
|
|
798
|
-
if (isRequired) {
|
|
799
|
-
if (props[propName] === null) {
|
|
800
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
801
|
-
}
|
|
802
|
-
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
803
|
-
}
|
|
804
|
-
return null;
|
|
805
|
-
} else {
|
|
806
|
-
return validate(props, propName, componentName, location, propFullName);
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
|
|
810
|
-
var chainedCheckType = checkType.bind(null, false);
|
|
811
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
812
|
-
|
|
813
|
-
return chainedCheckType;
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
function createPrimitiveTypeChecker(expectedType) {
|
|
817
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
818
|
-
var propValue = props[propName];
|
|
819
|
-
var propType = getPropType(propValue);
|
|
820
|
-
if (propType !== expectedType) {
|
|
821
|
-
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
822
|
-
// check, but we can offer a more precise error message here rather than
|
|
823
|
-
// 'of type `object`'.
|
|
824
|
-
var preciseType = getPreciseType(propValue);
|
|
825
|
-
|
|
826
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
|
|
827
|
-
}
|
|
828
|
-
return null;
|
|
829
|
-
}
|
|
830
|
-
return createChainableTypeChecker(validate);
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
function createAnyTypeChecker() {
|
|
834
|
-
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
function createArrayOfTypeChecker(typeChecker) {
|
|
838
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
839
|
-
if (typeof typeChecker !== 'function') {
|
|
840
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
841
|
-
}
|
|
842
|
-
var propValue = props[propName];
|
|
843
|
-
if (!Array.isArray(propValue)) {
|
|
844
|
-
var propType = getPropType(propValue);
|
|
845
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
846
|
-
}
|
|
847
|
-
for (var i = 0; i < propValue.length; i++) {
|
|
848
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret_1);
|
|
849
|
-
if (error instanceof Error) {
|
|
850
|
-
return error;
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
return null;
|
|
854
|
-
}
|
|
855
|
-
return createChainableTypeChecker(validate);
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
function createElementTypeChecker() {
|
|
859
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
860
|
-
var propValue = props[propName];
|
|
861
|
-
if (!isValidElement(propValue)) {
|
|
862
|
-
var propType = getPropType(propValue);
|
|
863
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
864
|
-
}
|
|
865
|
-
return null;
|
|
866
|
-
}
|
|
867
|
-
return createChainableTypeChecker(validate);
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
function createElementTypeTypeChecker() {
|
|
871
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
872
|
-
var propValue = props[propName];
|
|
873
|
-
if (!reactIs.isValidElementType(propValue)) {
|
|
874
|
-
var propType = getPropType(propValue);
|
|
875
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
|
|
876
|
-
}
|
|
877
|
-
return null;
|
|
878
|
-
}
|
|
879
|
-
return createChainableTypeChecker(validate);
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
function createInstanceTypeChecker(expectedClass) {
|
|
883
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
884
|
-
if (!(props[propName] instanceof expectedClass)) {
|
|
885
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
886
|
-
var actualClassName = getClassName(props[propName]);
|
|
887
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
888
|
-
}
|
|
889
|
-
return null;
|
|
890
|
-
}
|
|
891
|
-
return createChainableTypeChecker(validate);
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
function createEnumTypeChecker(expectedValues) {
|
|
895
|
-
if (!Array.isArray(expectedValues)) {
|
|
896
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
897
|
-
if (arguments.length > 1) {
|
|
898
|
-
printWarning$1(
|
|
899
|
-
'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
|
|
900
|
-
'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
|
|
901
|
-
);
|
|
902
|
-
} else {
|
|
903
|
-
printWarning$1('Invalid argument supplied to oneOf, expected an array.');
|
|
904
|
-
}
|
|
905
|
-
}
|
|
906
|
-
return emptyFunctionThatReturnsNull;
|
|
907
|
-
}
|
|
89
|
+
var GoANavigationLink = function GoANavigationLink(_a) {
|
|
90
|
+
var footerId = _a.footerId,
|
|
91
|
+
url = _a.url,
|
|
92
|
+
title = _a.title,
|
|
93
|
+
section = _a.section,
|
|
94
|
+
children = _a.children;
|
|
95
|
+
return jsxRuntime.jsx("goa-navigation-link", __assign({
|
|
96
|
+
footerid: footerId,
|
|
97
|
+
url: url,
|
|
98
|
+
title: title,
|
|
99
|
+
section: section
|
|
100
|
+
}, {
|
|
101
|
+
children: children
|
|
102
|
+
}), void 0);
|
|
103
|
+
};
|
|
908
104
|
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
105
|
+
var GoABadge = function GoABadge(_a) {
|
|
106
|
+
var type = _a.type,
|
|
107
|
+
content = _a.content,
|
|
108
|
+
icon = _a.icon,
|
|
109
|
+
testId = _a.testId;
|
|
110
|
+
return jsxRuntime.jsx("goa-badge", {
|
|
111
|
+
type: type,
|
|
112
|
+
content: content,
|
|
113
|
+
icon: icon,
|
|
114
|
+
testid: testId
|
|
115
|
+
}, void 0);
|
|
116
|
+
};
|
|
117
|
+
var GoAInfoBadge = function GoAInfoBadge(_a) {
|
|
118
|
+
var content = _a.content,
|
|
119
|
+
testId = _a.testId;
|
|
120
|
+
return jsxRuntime.jsx(GoABadge, {
|
|
121
|
+
type: "information",
|
|
122
|
+
icon: "information-circle",
|
|
123
|
+
content: content,
|
|
124
|
+
testId: testId
|
|
125
|
+
}, void 0);
|
|
126
|
+
};
|
|
127
|
+
var GoASuccessBadge = function GoASuccessBadge(_a) {
|
|
128
|
+
var content = _a.content,
|
|
129
|
+
testId = _a.testId;
|
|
130
|
+
return jsxRuntime.jsx(GoABadge, {
|
|
131
|
+
type: "success",
|
|
132
|
+
icon: "checkmark-circle",
|
|
133
|
+
content: content,
|
|
134
|
+
testId: testId
|
|
135
|
+
}, void 0);
|
|
136
|
+
};
|
|
137
|
+
var GoAWarningBadge = function GoAWarningBadge(_a) {
|
|
138
|
+
var content = _a.content,
|
|
139
|
+
testId = _a.testId;
|
|
140
|
+
return jsxRuntime.jsx(GoABadge, {
|
|
141
|
+
type: "warning",
|
|
142
|
+
icon: "warning",
|
|
143
|
+
content: content,
|
|
144
|
+
testId: testId
|
|
145
|
+
}, void 0);
|
|
146
|
+
};
|
|
147
|
+
var GoAEmergencyBadge = function GoAEmergencyBadge(_a) {
|
|
148
|
+
var content = _a.content,
|
|
149
|
+
testId = _a.testId;
|
|
150
|
+
return jsxRuntime.jsx(GoABadge, {
|
|
151
|
+
type: "emergency",
|
|
152
|
+
icon: "alert-circle",
|
|
153
|
+
content: content,
|
|
154
|
+
testId: testId
|
|
155
|
+
}, void 0);
|
|
156
|
+
};
|
|
916
157
|
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
return String(value);
|
|
921
|
-
}
|
|
922
|
-
return value;
|
|
923
|
-
});
|
|
924
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
925
|
-
}
|
|
926
|
-
return createChainableTypeChecker(validate);
|
|
927
|
-
}
|
|
158
|
+
function styleInject(css, ref) {
|
|
159
|
+
if ( ref === void 0 ) ref = {};
|
|
160
|
+
var insertAt = ref.insertAt;
|
|
928
161
|
|
|
929
|
-
|
|
930
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
931
|
-
if (typeof typeChecker !== 'function') {
|
|
932
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
933
|
-
}
|
|
934
|
-
var propValue = props[propName];
|
|
935
|
-
var propType = getPropType(propValue);
|
|
936
|
-
if (propType !== 'object') {
|
|
937
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
938
|
-
}
|
|
939
|
-
for (var key in propValue) {
|
|
940
|
-
if (has$1(propValue, key)) {
|
|
941
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
942
|
-
if (error instanceof Error) {
|
|
943
|
-
return error;
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
|
-
}
|
|
947
|
-
return null;
|
|
948
|
-
}
|
|
949
|
-
return createChainableTypeChecker(validate);
|
|
950
|
-
}
|
|
162
|
+
if (!css || typeof document === 'undefined') { return; }
|
|
951
163
|
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
return emptyFunctionThatReturnsNull;
|
|
956
|
-
}
|
|
164
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
165
|
+
var style = document.createElement('style');
|
|
166
|
+
style.type = 'text/css';
|
|
957
167
|
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
|
|
964
|
-
);
|
|
965
|
-
return emptyFunctionThatReturnsNull;
|
|
168
|
+
if (insertAt === 'top') {
|
|
169
|
+
if (head.firstChild) {
|
|
170
|
+
head.insertBefore(style, head.firstChild);
|
|
171
|
+
} else {
|
|
172
|
+
head.appendChild(style);
|
|
966
173
|
}
|
|
174
|
+
} else {
|
|
175
|
+
head.appendChild(style);
|
|
967
176
|
}
|
|
968
177
|
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
178
|
+
if (style.styleSheet) {
|
|
179
|
+
style.styleSheet.cssText = css;
|
|
180
|
+
} else {
|
|
181
|
+
style.appendChild(document.createTextNode(css));
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
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";
|
|
186
|
+
styleInject(css_248z$1);
|
|
187
|
+
|
|
188
|
+
var GoAButton = function GoAButton(_a) {
|
|
189
|
+
var title = _a.title,
|
|
190
|
+
_b = _a.disabled,
|
|
191
|
+
disabled = _b === void 0 ? false : _b,
|
|
192
|
+
_c = _a.type,
|
|
193
|
+
type = _c === void 0 ? 'primary' : _c,
|
|
194
|
+
_d = _a.size,
|
|
195
|
+
size = _d === void 0 ? 'normal' : _d,
|
|
196
|
+
_e = _a.variant,
|
|
197
|
+
variant = _e === void 0 ? 'default' : _e,
|
|
198
|
+
children = _a.children,
|
|
199
|
+
onClick = _a.onClick;
|
|
200
|
+
var el = react.useRef(null);
|
|
201
|
+
react.useEffect(function () {
|
|
202
|
+
if (!el.current) {
|
|
203
|
+
return;
|
|
975
204
|
}
|
|
976
205
|
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
206
|
+
var current = el.current;
|
|
207
|
+
|
|
208
|
+
var listener = function listener(e) {
|
|
209
|
+
onClick(e);
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
current.addEventListener('_click', listener);
|
|
213
|
+
return function () {
|
|
214
|
+
current.removeEventListener('_click', listener);
|
|
215
|
+
};
|
|
216
|
+
}, [el, onClick]);
|
|
217
|
+
return jsxRuntime.jsx("goa-button", __assign({
|
|
218
|
+
ref: el,
|
|
219
|
+
role: "button",
|
|
220
|
+
type: type,
|
|
221
|
+
size: size,
|
|
222
|
+
variant: variant,
|
|
223
|
+
disabled: disabled,
|
|
224
|
+
title: title
|
|
225
|
+
}, {
|
|
226
|
+
children: children
|
|
227
|
+
}), void 0);
|
|
228
|
+
};
|
|
981
229
|
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
230
|
+
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";
|
|
231
|
+
styleInject(css_248z);
|
|
232
|
+
|
|
233
|
+
var GoAButtonGroup = function GoAButtonGroup(_a) {
|
|
234
|
+
var alignment = _a.alignment,
|
|
235
|
+
children = _a.children;
|
|
236
|
+
return jsxRuntime.jsx("goa-button-group", __assign({
|
|
237
|
+
alignment: alignment
|
|
238
|
+
}, {
|
|
239
|
+
children: children
|
|
240
|
+
}), void 0);
|
|
241
|
+
};
|
|
991
242
|
|
|
992
|
-
function
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
1005
|
-
if (error) {
|
|
1006
|
-
return error;
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
return null;
|
|
1010
|
-
}
|
|
1011
|
-
return createChainableTypeChecker(validate);
|
|
1012
|
-
}
|
|
243
|
+
var GoACallout = function GoACallout(_a) {
|
|
244
|
+
var title = _a.title,
|
|
245
|
+
_b = _a.type,
|
|
246
|
+
type = _b === void 0 ? "information" : _b,
|
|
247
|
+
children = _a.children;
|
|
248
|
+
return jsxRuntime.jsx("goa-callout", __assign({
|
|
249
|
+
title: title,
|
|
250
|
+
type: type
|
|
251
|
+
}, {
|
|
252
|
+
children: children
|
|
253
|
+
}), void 0);
|
|
254
|
+
};
|
|
1013
255
|
|
|
1014
|
-
function
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
1030
|
-
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
1031
|
-
);
|
|
1032
|
-
}
|
|
1033
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
1034
|
-
if (error) {
|
|
1035
|
-
return error;
|
|
1036
|
-
}
|
|
256
|
+
var GoACheckbox = function GoACheckbox(_a) {
|
|
257
|
+
var id = _a.id,
|
|
258
|
+
name = _a.name,
|
|
259
|
+
testId = _a.testId,
|
|
260
|
+
error = _a.error,
|
|
261
|
+
disabled = _a.disabled,
|
|
262
|
+
checked = _a.checked,
|
|
263
|
+
value = _a.value,
|
|
264
|
+
text = _a.text,
|
|
265
|
+
children = _a.children,
|
|
266
|
+
onChange = _a.onChange;
|
|
267
|
+
var el = react.useRef(null);
|
|
268
|
+
react.useEffect(function () {
|
|
269
|
+
if (!el.current) {
|
|
270
|
+
return;
|
|
1037
271
|
}
|
|
1038
|
-
return null;
|
|
1039
|
-
}
|
|
1040
|
-
|
|
1041
|
-
return createChainableTypeChecker(validate);
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
function isNode(propValue) {
|
|
1045
|
-
switch (typeof propValue) {
|
|
1046
|
-
case 'number':
|
|
1047
|
-
case 'string':
|
|
1048
|
-
case 'undefined':
|
|
1049
|
-
return true;
|
|
1050
|
-
case 'boolean':
|
|
1051
|
-
return !propValue;
|
|
1052
|
-
case 'object':
|
|
1053
|
-
if (Array.isArray(propValue)) {
|
|
1054
|
-
return propValue.every(isNode);
|
|
1055
|
-
}
|
|
1056
|
-
if (propValue === null || isValidElement(propValue)) {
|
|
1057
|
-
return true;
|
|
1058
|
-
}
|
|
1059
|
-
|
|
1060
|
-
var iteratorFn = getIteratorFn(propValue);
|
|
1061
|
-
if (iteratorFn) {
|
|
1062
|
-
var iterator = iteratorFn.call(propValue);
|
|
1063
|
-
var step;
|
|
1064
|
-
if (iteratorFn !== propValue.entries) {
|
|
1065
|
-
while (!(step = iterator.next()).done) {
|
|
1066
|
-
if (!isNode(step.value)) {
|
|
1067
|
-
return false;
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1070
|
-
} else {
|
|
1071
|
-
// Iterator will provide entry [k,v] tuples rather than values.
|
|
1072
|
-
while (!(step = iterator.next()).done) {
|
|
1073
|
-
var entry = step.value;
|
|
1074
|
-
if (entry) {
|
|
1075
|
-
if (!isNode(entry[1])) {
|
|
1076
|
-
return false;
|
|
1077
|
-
}
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
} else {
|
|
1082
|
-
return false;
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
return true;
|
|
1086
|
-
default:
|
|
1087
|
-
return false;
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1090
272
|
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
273
|
+
var current = el.current;
|
|
274
|
+
|
|
275
|
+
var listener = function listener(e) {
|
|
276
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(name, e.detail.checked, e.detail.value);
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
current.addEventListener('_change', listener);
|
|
280
|
+
return function () {
|
|
281
|
+
current.removeEventListener('_change', listener);
|
|
282
|
+
};
|
|
283
|
+
}, []);
|
|
284
|
+
return jsxRuntime.jsx("goa-checkbox", __assign({
|
|
285
|
+
"data-testid": testId,
|
|
286
|
+
ref: el,
|
|
287
|
+
id: id,
|
|
288
|
+
name: name,
|
|
289
|
+
error: error,
|
|
290
|
+
checked: checked,
|
|
291
|
+
disabled: disabled,
|
|
292
|
+
text: text,
|
|
293
|
+
value: value
|
|
294
|
+
}, {
|
|
295
|
+
children: children
|
|
296
|
+
}), void 0);
|
|
297
|
+
};
|
|
1101
298
|
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
299
|
+
var GoAChip = function GoAChip(_a) {
|
|
300
|
+
var _b = _a.leadingIcon,
|
|
301
|
+
leadingIcon = _b === void 0 ? "" : _b,
|
|
302
|
+
_c = _a.error,
|
|
303
|
+
error = _c === void 0 ? false : _c,
|
|
304
|
+
content = _a.content,
|
|
305
|
+
onDeleteIconClick = _a.onDeleteIconClick;
|
|
306
|
+
var el = react.useRef(null);
|
|
307
|
+
react.useEffect(function () {
|
|
308
|
+
if (!el.current) return;
|
|
309
|
+
if (!onDeleteIconClick) return;
|
|
310
|
+
var current = el.current;
|
|
311
|
+
|
|
312
|
+
var listener = function listener(e) {
|
|
313
|
+
onDeleteIconClick();
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
current.addEventListener('_onDeleteIconClick', listener);
|
|
317
|
+
return function () {
|
|
318
|
+
current.removeEventListener('_onDeleteIconClick', listener);
|
|
319
|
+
};
|
|
320
|
+
}, [el, onDeleteIconClick]);
|
|
321
|
+
return jsxRuntime.jsx("goa-chip", {
|
|
322
|
+
ref: el,
|
|
323
|
+
leadingicon: leadingIcon,
|
|
324
|
+
error: error,
|
|
325
|
+
deletable: !!onDeleteIconClick,
|
|
326
|
+
content: content
|
|
327
|
+
}, void 0);
|
|
328
|
+
};
|
|
1106
329
|
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
330
|
+
var GoACircularProgress = function GoACircularProgress(_a) {
|
|
331
|
+
var type = _a.type,
|
|
332
|
+
visible = _a.visible,
|
|
333
|
+
message = _a.message,
|
|
334
|
+
progress = _a.progress,
|
|
335
|
+
variant = _a.variant,
|
|
336
|
+
size = _a.size;
|
|
337
|
+
return jsxRuntime.jsx("goa-circular-progress", {
|
|
338
|
+
type: type,
|
|
339
|
+
visible: visible ? "true" : "false",
|
|
340
|
+
message: message,
|
|
341
|
+
progress: progress,
|
|
342
|
+
variant: variant,
|
|
343
|
+
size: size
|
|
344
|
+
}, void 0);
|
|
345
|
+
};
|
|
1111
346
|
|
|
1112
|
-
|
|
1113
|
-
|
|
347
|
+
var GoAContainer = function GoAContainer(_a) {
|
|
348
|
+
var headingSize = _a.headingSize,
|
|
349
|
+
title = _a.title,
|
|
350
|
+
children = _a.children,
|
|
351
|
+
actions = _a.actions,
|
|
352
|
+
_b = _a.variant,
|
|
353
|
+
variant = _b === void 0 ? 'default' : _b;
|
|
354
|
+
return jsxRuntime.jsxs("goa-container", __assign({
|
|
355
|
+
variant: variant,
|
|
356
|
+
headingsize: headingSize
|
|
357
|
+
}, {
|
|
358
|
+
children: [title && jsxRuntime.jsx("div", __assign({
|
|
359
|
+
slot: "title"
|
|
360
|
+
}, {
|
|
361
|
+
children: title
|
|
362
|
+
}), void 0), children, actions && jsxRuntime.jsx("div", __assign({
|
|
363
|
+
slot: "actions"
|
|
364
|
+
}, {
|
|
365
|
+
children: actions
|
|
366
|
+
}), void 0)]
|
|
367
|
+
}), void 0);
|
|
368
|
+
};
|
|
1114
369
|
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
return 'object';
|
|
1126
|
-
}
|
|
1127
|
-
if (isSymbol(propType, propValue)) {
|
|
1128
|
-
return 'symbol';
|
|
1129
|
-
}
|
|
1130
|
-
return propType;
|
|
1131
|
-
}
|
|
370
|
+
var GoADropdownOption = function GoADropdownOption(props) {
|
|
371
|
+
return jsxRuntime.jsx("goa-dropdown-item", __assign({
|
|
372
|
+
"data-testid": props.testId,
|
|
373
|
+
name: props.name,
|
|
374
|
+
value: props.value,
|
|
375
|
+
label: props.label
|
|
376
|
+
}, {
|
|
377
|
+
children: props.children
|
|
378
|
+
}), void 0);
|
|
379
|
+
};
|
|
1132
380
|
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
}
|
|
1139
|
-
var propType = getPropType(propValue);
|
|
1140
|
-
if (propType === 'object') {
|
|
1141
|
-
if (propValue instanceof Date) {
|
|
1142
|
-
return 'date';
|
|
1143
|
-
} else if (propValue instanceof RegExp) {
|
|
1144
|
-
return 'regexp';
|
|
381
|
+
var GoADropdown = function GoADropdown(props) {
|
|
382
|
+
var el = react.useRef(null);
|
|
383
|
+
react.useEffect(function () {
|
|
384
|
+
if (!el.current) {
|
|
385
|
+
return;
|
|
1145
386
|
}
|
|
1146
|
-
}
|
|
1147
|
-
return propType;
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
// Returns a string that is postfixed to a warning about an invalid type.
|
|
1151
|
-
// For example, "undefined" or "of type array"
|
|
1152
|
-
function getPostfixForTypeWarning(value) {
|
|
1153
|
-
var type = getPreciseType(value);
|
|
1154
|
-
switch (type) {
|
|
1155
|
-
case 'array':
|
|
1156
|
-
case 'object':
|
|
1157
|
-
return 'an ' + type;
|
|
1158
|
-
case 'boolean':
|
|
1159
|
-
case 'date':
|
|
1160
|
-
case 'regexp':
|
|
1161
|
-
return 'a ' + type;
|
|
1162
|
-
default:
|
|
1163
|
-
return type;
|
|
1164
|
-
}
|
|
1165
|
-
}
|
|
1166
387
|
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
388
|
+
var current = el.current;
|
|
389
|
+
|
|
390
|
+
var handler = function handler(state) {
|
|
391
|
+
var _a = state.detail,
|
|
392
|
+
name = _a.name,
|
|
393
|
+
value = _a.value;
|
|
394
|
+
props.onChange(name, value);
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
current.addEventListener('_change', handler);
|
|
398
|
+
return function () {
|
|
399
|
+
current.removeEventListener('_change', handler);
|
|
400
|
+
};
|
|
401
|
+
}, [el, props]);
|
|
402
|
+
return jsxRuntime.jsx("goa-dropdown", __assign({
|
|
403
|
+
ref: el,
|
|
404
|
+
name: props.name,
|
|
405
|
+
values: JSON.stringify(props.values),
|
|
406
|
+
leadingicon: props.leadingIcon,
|
|
407
|
+
maxheight: props.maxHeight,
|
|
408
|
+
placeholder: props.placeholder,
|
|
409
|
+
filterable: props.filterable,
|
|
410
|
+
disabled: props.disabled,
|
|
411
|
+
multiselect: props.multiselect,
|
|
412
|
+
error: props.error,
|
|
413
|
+
"data-testid": props.testId
|
|
414
|
+
}, {
|
|
415
|
+
children: props.children
|
|
416
|
+
}), void 0);
|
|
417
|
+
};
|
|
1181
418
|
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
419
|
+
var GoAFlexRow = function GoAFlexRow(_a) {
|
|
420
|
+
var gap = _a.gap,
|
|
421
|
+
children = _a.children;
|
|
422
|
+
return jsxRuntime.jsx("goa-flex-row", __assign({
|
|
423
|
+
gap: gap
|
|
424
|
+
}, {
|
|
425
|
+
children: children
|
|
426
|
+
}), void 0);
|
|
427
|
+
};
|
|
1185
428
|
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
function getShim() {
|
|
1201
|
-
return shim;
|
|
1202
|
-
} // Important!
|
|
1203
|
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
1204
|
-
var ReactPropTypes = {
|
|
1205
|
-
array: shim,
|
|
1206
|
-
bool: shim,
|
|
1207
|
-
func: shim,
|
|
1208
|
-
number: shim,
|
|
1209
|
-
object: shim,
|
|
1210
|
-
string: shim,
|
|
1211
|
-
symbol: shim,
|
|
1212
|
-
|
|
1213
|
-
any: shim,
|
|
1214
|
-
arrayOf: getShim,
|
|
1215
|
-
element: shim,
|
|
1216
|
-
elementType: shim,
|
|
1217
|
-
instanceOf: getShim,
|
|
1218
|
-
node: shim,
|
|
1219
|
-
objectOf: getShim,
|
|
1220
|
-
oneOf: getShim,
|
|
1221
|
-
oneOfType: getShim,
|
|
1222
|
-
shape: getShim,
|
|
1223
|
-
exact: getShim,
|
|
1224
|
-
|
|
1225
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
1226
|
-
resetWarningCache: emptyFunction
|
|
429
|
+
var GoAFormItem = function GoAFormItem(_a) {
|
|
430
|
+
var children = _a.children,
|
|
431
|
+
helpText = _a.helpText,
|
|
432
|
+
error = _a.error,
|
|
433
|
+
optional = _a.optional,
|
|
434
|
+
label = _a.label;
|
|
435
|
+
return jsxRuntime.jsx("goa-form-item", __assign({
|
|
436
|
+
label: label,
|
|
437
|
+
error: error,
|
|
438
|
+
optional: optional,
|
|
439
|
+
helptext: helpText
|
|
440
|
+
}, {
|
|
441
|
+
children: children
|
|
442
|
+
}), void 0);
|
|
1227
443
|
};
|
|
1228
444
|
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
*/
|
|
1241
|
-
|
|
1242
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
1243
|
-
var ReactIs = reactIs;
|
|
1244
|
-
|
|
1245
|
-
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
1246
|
-
// http://fb.me/prop-types-in-prod
|
|
1247
|
-
var throwOnDirectAccess = true;
|
|
1248
|
-
module.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
|
|
1249
|
-
} else {
|
|
1250
|
-
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
1251
|
-
// http://fb.me/prop-types-in-prod
|
|
1252
|
-
module.exports = factoryWithThrowingShims();
|
|
1253
|
-
}
|
|
1254
|
-
});
|
|
1255
|
-
|
|
1256
|
-
function styleInject(css, ref) {
|
|
1257
|
-
if ( ref === void 0 ) ref = {};
|
|
1258
|
-
var insertAt = ref.insertAt;
|
|
1259
|
-
|
|
1260
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
1261
|
-
|
|
1262
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
1263
|
-
var style = document.createElement('style');
|
|
1264
|
-
style.type = 'text/css';
|
|
1265
|
-
|
|
1266
|
-
if (insertAt === 'top') {
|
|
1267
|
-
if (head.firstChild) {
|
|
1268
|
-
head.insertBefore(style, head.firstChild);
|
|
1269
|
-
} else {
|
|
1270
|
-
head.appendChild(style);
|
|
1271
|
-
}
|
|
1272
|
-
} else {
|
|
1273
|
-
head.appendChild(style);
|
|
1274
|
-
}
|
|
445
|
+
var GoAHeroBanner = function GoAHeroBanner(_a) {
|
|
446
|
+
var title = _a.title,
|
|
447
|
+
backgroundUrl = _a.backgroundUrl,
|
|
448
|
+
children = _a.children;
|
|
449
|
+
return jsxRuntime.jsx("goa-hero-banner", __assign({
|
|
450
|
+
title: title,
|
|
451
|
+
backgroundurl: backgroundUrl
|
|
452
|
+
}, {
|
|
453
|
+
children: children
|
|
454
|
+
}), void 0);
|
|
455
|
+
};
|
|
1275
456
|
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
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";
|
|
1284
|
-
styleInject(css_248z);
|
|
1285
|
-
|
|
1286
|
-
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";
|
|
1287
|
-
styleInject(css_248z$1);
|
|
1288
|
-
|
|
1289
|
-
var GoACallout = function GoACallout(_ref) {
|
|
1290
|
-
var title = _ref.title,
|
|
1291
|
-
_ref$type = _ref.type,
|
|
1292
|
-
type = _ref$type === void 0 ? "information" : _ref$type,
|
|
1293
|
-
content = _ref.content,
|
|
1294
|
-
_ref$children = _ref.children,
|
|
1295
|
-
children = _ref$children === void 0 ? null : _ref$children,
|
|
1296
|
-
props = _objectWithoutProperties(_ref, ["title", "type", "content", "children"]);
|
|
1297
|
-
|
|
1298
|
-
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
1299
|
-
className: "goa-callout goa--".concat(type)
|
|
1300
|
-
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("h3", {
|
|
1301
|
-
"data-testid": "callout-title"
|
|
1302
|
-
}, title), /*#__PURE__*/React__default.createElement("div", {
|
|
1303
|
-
className: "messages",
|
|
1304
|
-
"data-testid": "callout-content"
|
|
1305
|
-
}, content || children))));
|
|
1306
|
-
};
|
|
1307
|
-
GoACallout.propTypes = {
|
|
1308
|
-
title: propTypes.string,
|
|
1309
|
-
type: propTypes.string.isRequired,
|
|
1310
|
-
content: propTypes.string
|
|
1311
|
-
};
|
|
1312
|
-
|
|
1313
|
-
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";
|
|
1314
|
-
styleInject(css_248z$2);
|
|
1315
|
-
|
|
1316
|
-
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";
|
|
1317
|
-
styleInject(css_248z$3);
|
|
1318
|
-
|
|
1319
|
-
var GoANotification = function GoANotification(_ref) {
|
|
1320
|
-
var title = _ref.title,
|
|
1321
|
-
_ref$type = _ref.type,
|
|
1322
|
-
type = _ref$type === void 0 ? "information" : _ref$type,
|
|
1323
|
-
message = _ref.message,
|
|
1324
|
-
notificationUrl = _ref.notificationUrl,
|
|
1325
|
-
_ref$isDismissable = _ref.isDismissable,
|
|
1326
|
-
isDismissable = _ref$isDismissable === void 0 ? true : _ref$isDismissable,
|
|
1327
|
-
_ref$children = _ref.children,
|
|
1328
|
-
children = _ref$children === void 0 ? null : _ref$children,
|
|
1329
|
-
onDismiss = _ref.onDismiss,
|
|
1330
|
-
props = _objectWithoutProperties(_ref, ["title", "type", "message", "notificationUrl", "isDismissable", "children", "onDismiss"]);
|
|
1331
|
-
|
|
1332
|
-
var _useState = React.useState(false),
|
|
1333
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
1334
|
-
dismissed = _useState2[0],
|
|
1335
|
-
setDismissed = _useState2[1];
|
|
1336
|
-
|
|
1337
|
-
var dismissTrigger = function dismissTrigger(dismissAction) {
|
|
1338
|
-
setDismissed(dismissAction);
|
|
1339
|
-
onDismiss();
|
|
457
|
+
var GoAHeroBannerActions = function GoAHeroBannerActions(_a) {
|
|
458
|
+
var children = _a.children;
|
|
459
|
+
return jsxRuntime.jsx("div", __assign({
|
|
460
|
+
slot: "actions"
|
|
461
|
+
}, {
|
|
462
|
+
children: children
|
|
463
|
+
}), void 0);
|
|
1340
464
|
};
|
|
1341
465
|
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
},
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
466
|
+
function GoAIcon(_a) {
|
|
467
|
+
var type = _a.type,
|
|
468
|
+
_b = _a.theme,
|
|
469
|
+
theme = _b === void 0 ? 'outline' : _b,
|
|
470
|
+
_c = _a.size,
|
|
471
|
+
size = _c === void 0 ? 'medium' : _c;
|
|
472
|
+
return jsxRuntime.jsx("goa-icon", {
|
|
473
|
+
type: type,
|
|
474
|
+
theme: theme,
|
|
475
|
+
size: size
|
|
476
|
+
}, void 0);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
var GoAIconButton = function GoAIconButton(_a) {
|
|
480
|
+
var type = _a.type,
|
|
481
|
+
disabled = _a.disabled,
|
|
482
|
+
_b = _a.variant,
|
|
483
|
+
variant = _b === void 0 ? 'primary' : _b,
|
|
484
|
+
onClick = _a.onClick,
|
|
485
|
+
_c = _a.size,
|
|
486
|
+
size = _c === void 0 ? 'medium' : _c,
|
|
487
|
+
title = _a.title,
|
|
488
|
+
children = _a.children;
|
|
489
|
+
var ref = react.useRef(null);
|
|
490
|
+
react.useEffect(function () {
|
|
491
|
+
if (!ref.current) {
|
|
492
|
+
return;
|
|
1364
493
|
}
|
|
1365
|
-
}, /*#__PURE__*/React__default.createElement("svg", {
|
|
1366
|
-
width: "16px",
|
|
1367
|
-
height: "16px",
|
|
1368
|
-
viewBox: "0 0 16 16"
|
|
1369
|
-
}, /*#__PURE__*/React__default.createElement("path", {
|
|
1370
|
-
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"
|
|
1371
|
-
}))))));
|
|
1372
|
-
} else {
|
|
1373
|
-
return null;
|
|
1374
|
-
}
|
|
1375
|
-
};
|
|
1376
|
-
GoANotification.propTypes = {
|
|
1377
|
-
title: propTypes.string,
|
|
1378
|
-
type: propTypes.string.isRequired,
|
|
1379
|
-
content: propTypes.string
|
|
1380
|
-
};
|
|
1381
|
-
|
|
1382
|
-
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";
|
|
1383
|
-
styleInject(css_248z$4);
|
|
1384
|
-
|
|
1385
|
-
var GoAButton = function GoAButton(_ref) {
|
|
1386
|
-
var _ref$buttonType = _ref.buttonType,
|
|
1387
|
-
buttonType = _ref$buttonType === void 0 ? 'primary' : _ref$buttonType,
|
|
1388
|
-
_ref$buttonSize = _ref.buttonSize,
|
|
1389
|
-
buttonSize = _ref$buttonSize === void 0 ? 'normal' : _ref$buttonSize,
|
|
1390
|
-
_ref$title = _ref.title,
|
|
1391
|
-
title = _ref$title === void 0 ? null : _ref$title,
|
|
1392
|
-
_ref$children = _ref.children,
|
|
1393
|
-
children = _ref$children === void 0 ? null : _ref$children,
|
|
1394
|
-
_ref$onClick = _ref.onClick,
|
|
1395
|
-
onClick = _ref$onClick === void 0 ? null : _ref$onClick,
|
|
1396
|
-
props = _objectWithoutProperties(_ref, ["buttonType", "buttonSize", "title", "children", "onClick"]);
|
|
1397
|
-
|
|
1398
|
-
var btnTypeClass = buttonType === 'primary' ? '' : "goa--".concat(buttonType);
|
|
1399
|
-
var btnSize = buttonSize === 'small' ? 'btn-small' : '';
|
|
1400
|
-
return /*#__PURE__*/React__default.createElement("button", Object.assign({
|
|
1401
|
-
className: "goa-button ".concat(btnSize, " ").concat(btnTypeClass),
|
|
1402
|
-
title: title,
|
|
1403
|
-
onClick: onClick
|
|
1404
|
-
}, props), children);
|
|
1405
|
-
};
|
|
1406
|
-
GoAButton.propTypes = {
|
|
1407
|
-
buttonSize: propTypes.string,
|
|
1408
|
-
buttonType: propTypes.string,
|
|
1409
|
-
title: propTypes.string,
|
|
1410
|
-
children: propTypes.node,
|
|
1411
|
-
onClick: propTypes.func
|
|
1412
|
-
};
|
|
1413
|
-
|
|
1414
|
-
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";
|
|
1415
|
-
styleInject(css_248z$5);
|
|
1416
|
-
|
|
1417
|
-
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";
|
|
1418
|
-
styleInject(css_248z$6);
|
|
1419
|
-
|
|
1420
|
-
/* eslint-disable-next-line */
|
|
1421
|
-
|
|
1422
|
-
var MicrositeLogo = function MicrositeLogo(props) {
|
|
1423
|
-
return /*#__PURE__*/React__default.createElement("a", {
|
|
1424
|
-
href: props.serviceHome,
|
|
1425
|
-
"aria-label": props.serviceHome,
|
|
1426
|
-
className: "microsite-link"
|
|
1427
|
-
}, /*#__PURE__*/React__default.createElement("span", {
|
|
1428
|
-
className: "image-desktop-tablet"
|
|
1429
|
-
}), /*#__PURE__*/React__default.createElement("span", {
|
|
1430
|
-
className: "image-mobile"
|
|
1431
|
-
}), /*#__PURE__*/React__default.createElement("span", {
|
|
1432
|
-
className: "name"
|
|
1433
|
-
}, props.serviceName));
|
|
1434
|
-
};
|
|
1435
|
-
|
|
1436
|
-
var GoAHeader = function GoAHeader(props) {
|
|
1437
|
-
var serviceLevelCss = classnames('service-level', "service-level--".concat(props.serviceLevel.toString().toLowerCase()));
|
|
1438
|
-
|
|
1439
|
-
function serviceLevelFormatted() {
|
|
1440
|
-
return props.serviceLevel.toLowerCase();
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("header", {
|
|
1444
|
-
className: "goa-header goa-official-site-header"
|
|
1445
|
-
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("span", {
|
|
1446
|
-
className: serviceLevelCss
|
|
1447
|
-
}, serviceLevelFormatted())), props.serviceLevel === 'live' && /*#__PURE__*/React__default.createElement("div", {
|
|
1448
|
-
className: "site-text"
|
|
1449
|
-
}, "An official site of the ", /*#__PURE__*/React__default.createElement("a", {
|
|
1450
|
-
href: "https://www.alberta.ca/index.aspx",
|
|
1451
|
-
className: "web-link"
|
|
1452
|
-
}, "Alberta Government")), props.serviceLevel !== 'live' && /*#__PURE__*/React__default.createElement("div", {
|
|
1453
|
-
className: "site-text"
|
|
1454
|
-
}, "This is a new ", /*#__PURE__*/React__default.createElement("a", {
|
|
1455
|
-
href: "https://www.alberta.ca/index.aspx",
|
|
1456
|
-
className: "web-link"
|
|
1457
|
-
}, "Alberta Government"), " service")), /*#__PURE__*/React__default.createElement("div", {
|
|
1458
|
-
className: "goa-header goa-microsite-header"
|
|
1459
|
-
}, /*#__PURE__*/React__default.createElement(MicrositeLogo, {
|
|
1460
|
-
serviceName: props.serviceName,
|
|
1461
|
-
serviceHome: props.serviceHome
|
|
1462
|
-
}), /*#__PURE__*/React__default.createElement("div", null, props.children)));
|
|
1463
|
-
};
|
|
1464
|
-
|
|
1465
|
-
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";
|
|
1466
|
-
styleInject(css_248z$7);
|
|
1467
|
-
|
|
1468
|
-
var GoAHeroBannerContent = function GoAHeroBannerContent(_ref) {
|
|
1469
|
-
var content = _ref.content,
|
|
1470
|
-
children = _ref.children;
|
|
1471
|
-
return /*#__PURE__*/React__default.createElement("p", {
|
|
1472
|
-
className: "goa-hero-banner-content",
|
|
1473
|
-
role: "note"
|
|
1474
|
-
}, children || content);
|
|
1475
|
-
};
|
|
1476
|
-
|
|
1477
|
-
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";
|
|
1478
|
-
styleInject(css_248z$8);
|
|
1479
|
-
|
|
1480
|
-
var GoAHeroBannerLink = function GoAHeroBannerLink(_ref) {
|
|
1481
|
-
var linkText = _ref.linkText,
|
|
1482
|
-
linkUrl = _ref.linkUrl;
|
|
1483
|
-
return linkText && linkUrl ? /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("a", {
|
|
1484
|
-
className: "goa-link-button right-arrow",
|
|
1485
|
-
href: linkUrl,
|
|
1486
|
-
role: "link"
|
|
1487
|
-
}, linkText)) : /*#__PURE__*/React__default.createElement(React.Fragment, null);
|
|
1488
|
-
};
|
|
1489
|
-
|
|
1490
|
-
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";
|
|
1491
|
-
styleInject(css_248z$9);
|
|
1492
|
-
|
|
1493
|
-
var GoAHeroBanner = function GoAHeroBanner(_ref) {
|
|
1494
|
-
var title = _ref.title,
|
|
1495
|
-
backgroundUrl = _ref.backgroundUrl,
|
|
1496
|
-
content = _ref.content,
|
|
1497
|
-
linkText = _ref.linkText,
|
|
1498
|
-
linkUrl = _ref.linkUrl,
|
|
1499
|
-
children = _ref.children;
|
|
1500
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
1501
|
-
className: "goa-hero",
|
|
1502
|
-
style: {
|
|
1503
|
-
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, "')")
|
|
1504
|
-
}
|
|
1505
|
-
}, /*#__PURE__*/React__default.createElement("h1", {
|
|
1506
|
-
role: "heading",
|
|
1507
|
-
"aria-level": 1
|
|
1508
|
-
}, title), children || /*#__PURE__*/React__default.createElement(React.Fragment, null, content && /*#__PURE__*/React__default.createElement(GoAHeroBannerContent, {
|
|
1509
|
-
content: content
|
|
1510
|
-
}), linkText && linkUrl && /*#__PURE__*/React__default.createElement(GoAHeroBannerLink, {
|
|
1511
|
-
linkText: linkText,
|
|
1512
|
-
linkUrl: linkUrl
|
|
1513
|
-
})));
|
|
1514
|
-
};
|
|
1515
|
-
GoAHeroBanner.defaultProps = {
|
|
1516
|
-
content: '',
|
|
1517
|
-
linkText: '',
|
|
1518
|
-
linkUrl: ''
|
|
1519
|
-
};
|
|
1520
|
-
|
|
1521
|
-
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";
|
|
1522
|
-
styleInject(css_248z$a);
|
|
1523
|
-
|
|
1524
|
-
var GoACard = function GoACard(_ref) {
|
|
1525
|
-
var title = _ref.title,
|
|
1526
|
-
content = _ref.content,
|
|
1527
|
-
_ref$description = _ref.description,
|
|
1528
|
-
description = _ref$description === void 0 ? null : _ref$description,
|
|
1529
|
-
_ref$cardImageUrl = _ref.cardImageUrl,
|
|
1530
|
-
cardImageUrl = _ref$cardImageUrl === void 0 ? null : _ref$cardImageUrl,
|
|
1531
|
-
_ref$titleUrl = _ref.titleUrl,
|
|
1532
|
-
titleUrl = _ref$titleUrl === void 0 ? null : _ref$titleUrl,
|
|
1533
|
-
_ref$children = _ref.children,
|
|
1534
|
-
children = _ref$children === void 0 ? null : _ref$children,
|
|
1535
|
-
_ref$minWidth = _ref.minWidth,
|
|
1536
|
-
minWidth = _ref$minWidth === void 0 ? 'auto' : _ref$minWidth,
|
|
1537
|
-
_ref$maxWidth = _ref.maxWidth,
|
|
1538
|
-
maxWidth = _ref$maxWidth === void 0 ? 'auto' : _ref$maxWidth,
|
|
1539
|
-
other = _objectWithoutProperties(_ref, ["title", "content", "description", "cardImageUrl", "titleUrl", "children", "minWidth", "maxWidth"]);
|
|
1540
|
-
|
|
1541
|
-
var _useState = React.useState(null),
|
|
1542
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
1543
|
-
imgHeight = _useState2[0],
|
|
1544
|
-
setImgHeight = _useState2[1];
|
|
1545
|
-
|
|
1546
|
-
return /*#__PURE__*/React__default.createElement("div", Object.assign({
|
|
1547
|
-
className: "goa-card",
|
|
1548
|
-
"data-testid": "card-container",
|
|
1549
|
-
style: {
|
|
1550
|
-
minWidth: minWidth,
|
|
1551
|
-
maxWidth: maxWidth
|
|
1552
|
-
}
|
|
1553
|
-
}, other), cardImageUrl && /*#__PURE__*/React__default.createElement("div", {
|
|
1554
|
-
className: "goa-poster-image",
|
|
1555
|
-
"data-testid": "card-img"
|
|
1556
|
-
}, /*#__PURE__*/React__default.createElement("img", {
|
|
1557
|
-
height: imgHeight,
|
|
1558
|
-
src: cardImageUrl,
|
|
1559
|
-
alt: "Card cardImageUrl"
|
|
1560
|
-
})), /*#__PURE__*/React__default.createElement("div", {
|
|
1561
|
-
className: "card-content"
|
|
1562
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1563
|
-
className: "goa-title",
|
|
1564
|
-
"data-testid": "card-title"
|
|
1565
|
-
}, titleUrl ? /*#__PURE__*/React__default.createElement("a", {
|
|
1566
|
-
href: titleUrl,
|
|
1567
|
-
"data-testid": "card-title-link"
|
|
1568
|
-
}, title) : /*#__PURE__*/React__default.createElement("div", null, title)), /*#__PURE__*/React__default.createElement("p", {
|
|
1569
|
-
className: "goa-text",
|
|
1570
|
-
"data-testid": "card-content"
|
|
1571
|
-
}, content !== null && content !== void 0 ? content : description), children && /*#__PURE__*/React__default.createElement("div", {
|
|
1572
|
-
className: "goa-footer",
|
|
1573
|
-
"data-testid": "card-footer"
|
|
1574
|
-
}, children)));
|
|
1575
|
-
};
|
|
1576
|
-
|
|
1577
|
-
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";
|
|
1578
|
-
styleInject(css_248z$b);
|
|
1579
|
-
|
|
1580
|
-
var GoARadio = function GoARadio(_ref) {
|
|
1581
|
-
var name = _ref.name,
|
|
1582
|
-
value = _ref.value,
|
|
1583
|
-
disabled = _ref.disabled,
|
|
1584
|
-
_ref$labelPosition = _ref.labelPosition,
|
|
1585
|
-
labelPosition = _ref$labelPosition === void 0 ? 'after' : _ref$labelPosition,
|
|
1586
|
-
required = _ref.required,
|
|
1587
|
-
children = _ref.children;
|
|
1588
|
-
var selectedValue = React.useContext(RadioContext);
|
|
1589
|
-
var updateSelectedValue = React.useContext(RadioUpdateContext);
|
|
1590
|
-
|
|
1591
|
-
function hasError() {
|
|
1592
|
-
return required && !selectedValue;
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
function getSelectedCss() {
|
|
1596
|
-
return classnames({
|
|
1597
|
-
'goa-radio-container': true,
|
|
1598
|
-
'goa-radio-selected': isChecked()
|
|
1599
|
-
});
|
|
1600
|
-
}
|
|
1601
|
-
|
|
1602
|
-
function getRootCssClasses() {
|
|
1603
|
-
return classnames({
|
|
1604
|
-
'goa-radio': true,
|
|
1605
|
-
'goa-radio-disabled': disabled,
|
|
1606
|
-
'has-error': hasError(),
|
|
1607
|
-
'goa-radio-label-before': labelPosition === 'before'
|
|
1608
|
-
});
|
|
1609
|
-
}
|
|
1610
|
-
|
|
1611
|
-
function isChecked() {
|
|
1612
|
-
return selectedValue === value;
|
|
1613
|
-
}
|
|
1614
|
-
|
|
1615
|
-
function onRadioChange(e) {
|
|
1616
|
-
updateSelectedValue(e.target.value);
|
|
1617
|
-
}
|
|
1618
|
-
|
|
1619
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
1620
|
-
className: getRootCssClasses()
|
|
1621
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1622
|
-
className: "goa-radio-inline-block"
|
|
1623
|
-
}, /*#__PURE__*/React__default.createElement("label", {
|
|
1624
|
-
className: "goa-radio-layout"
|
|
1625
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1626
|
-
className: getSelectedCss()
|
|
1627
|
-
}, /*#__PURE__*/React__default.createElement("input", {
|
|
1628
|
-
type: "radio",
|
|
1629
|
-
name: name,
|
|
1630
|
-
value: value,
|
|
1631
|
-
checked: isChecked(),
|
|
1632
|
-
disabled: disabled,
|
|
1633
|
-
onChange: onRadioChange
|
|
1634
|
-
}), isChecked() && /*#__PURE__*/React__default.createElement("svg", {
|
|
1635
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1636
|
-
width: "12",
|
|
1637
|
-
height: "12",
|
|
1638
|
-
viewBox: "0 0 12 12"
|
|
1639
|
-
}, /*#__PURE__*/React__default.createElement("circle", {
|
|
1640
|
-
cx: "6",
|
|
1641
|
-
cy: "6",
|
|
1642
|
-
r: "6",
|
|
1643
|
-
fill: "#fff"
|
|
1644
|
-
}))), /*#__PURE__*/React__default.createElement("span", {
|
|
1645
|
-
className: "goa-radio-label"
|
|
1646
|
-
}, children))));
|
|
1647
|
-
};
|
|
1648
|
-
|
|
1649
|
-
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";
|
|
1650
|
-
styleInject(css_248z$c);
|
|
1651
|
-
|
|
1652
|
-
var RadioContext = React__default.createContext('');
|
|
1653
|
-
var RadioUpdateContext = React__default.createContext( // eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1654
|
-
function () {});
|
|
1655
|
-
var GoARadioGroup = function GoARadioGroup(_ref) {
|
|
1656
|
-
var helperText = _ref.helperText,
|
|
1657
|
-
onChange = _ref.onChange,
|
|
1658
|
-
required = _ref.required,
|
|
1659
|
-
requiredErrorMessage = _ref.requiredErrorMessage,
|
|
1660
|
-
title = _ref.title,
|
|
1661
|
-
value = _ref.value,
|
|
1662
|
-
items = _ref.items,
|
|
1663
|
-
children = _ref.children,
|
|
1664
|
-
childAttrs = _objectWithoutProperties(_ref, ["helperText", "onChange", "required", "requiredErrorMessage", "title", "value", "items", "children"]);
|
|
1665
|
-
|
|
1666
|
-
var _useState = React.useState(value),
|
|
1667
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
1668
|
-
selectedValue = _useState2[0],
|
|
1669
|
-
setSelectedValue = _useState2[1];
|
|
1670
|
-
|
|
1671
|
-
function handleOnChange(val) {
|
|
1672
|
-
setSelectedValue(val);
|
|
1673
|
-
onChange(val);
|
|
1674
|
-
}
|
|
1675
|
-
|
|
1676
|
-
function hasError() {
|
|
1677
|
-
return required && !selectedValue;
|
|
1678
|
-
}
|
|
1679
|
-
|
|
1680
|
-
function getChildren() {
|
|
1681
|
-
if (children) {
|
|
1682
|
-
return React.Children.map(children, function (child) {
|
|
1683
|
-
var key = "".concat(childAttrs.name, "-").concat(child.props.value);
|
|
1684
|
-
return React__default.cloneElement(child, _objectSpread2(_objectSpread2({}, childAttrs), {}, {
|
|
1685
|
-
key: key,
|
|
1686
|
-
required: required
|
|
1687
|
-
}));
|
|
1688
|
-
});
|
|
1689
|
-
}
|
|
1690
|
-
|
|
1691
|
-
return items.map(function (item) {
|
|
1692
|
-
return /*#__PURE__*/React__default.createElement(GoARadio, {
|
|
1693
|
-
key: "".concat(childAttrs.name, "-").concat(item.value),
|
|
1694
|
-
labelPosition: childAttrs.labelPosition,
|
|
1695
|
-
name: childAttrs.name,
|
|
1696
|
-
disabled: childAttrs.disabled,
|
|
1697
|
-
value: item.value,
|
|
1698
|
-
children: item.text,
|
|
1699
|
-
required: required
|
|
1700
|
-
});
|
|
1701
|
-
});
|
|
1702
|
-
}
|
|
1703
|
-
|
|
1704
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
1705
|
-
className: "goa-radio-group"
|
|
1706
|
-
}, title && /*#__PURE__*/React__default.createElement("span", {
|
|
1707
|
-
className: "radio-group-title"
|
|
1708
|
-
}, title), required && /*#__PURE__*/React__default.createElement("span", {
|
|
1709
|
-
className: "required-label"
|
|
1710
|
-
}, "(Required)"), helperText && /*#__PURE__*/React__default.createElement("div", {
|
|
1711
|
-
className: "helper-text"
|
|
1712
|
-
}, helperText), /*#__PURE__*/React__default.createElement(RadioContext.Provider, {
|
|
1713
|
-
value: selectedValue
|
|
1714
|
-
}, /*#__PURE__*/React__default.createElement(RadioUpdateContext.Provider, {
|
|
1715
|
-
value: handleOnChange
|
|
1716
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1717
|
-
className: "goa-radios"
|
|
1718
|
-
}, getChildren()))), hasError() && /*#__PURE__*/React__default.createElement("div", {
|
|
1719
|
-
className: "error-text"
|
|
1720
|
-
}, requiredErrorMessage));
|
|
1721
|
-
};
|
|
1722
|
-
|
|
1723
|
-
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";
|
|
1724
|
-
styleInject(css_248z$d);
|
|
1725
|
-
|
|
1726
|
-
var GoACardGroup = function GoACardGroup(_ref) {
|
|
1727
|
-
var _ref$title = _ref.title,
|
|
1728
|
-
title = _ref$title === void 0 ? null : _ref$title,
|
|
1729
|
-
_ref$children = _ref.children,
|
|
1730
|
-
children = _ref$children === void 0 ? null : _ref$children,
|
|
1731
|
-
_ref$layout = _ref.layout,
|
|
1732
|
-
layout = _ref$layout === void 0 ? 'basic' : _ref$layout,
|
|
1733
|
-
_ref$cardItems = _ref.cardItems,
|
|
1734
|
-
cardItems = _ref$cardItems === void 0 ? null : _ref$cardItems;
|
|
1735
|
-
|
|
1736
|
-
function getCards() {
|
|
1737
|
-
if (children) {
|
|
1738
|
-
return children;
|
|
1739
|
-
}
|
|
1740
|
-
|
|
1741
|
-
return cardItems.map(function (item, index) {
|
|
1742
|
-
return /*#__PURE__*/React__default.createElement(GoACard, Object.assign({}, item, {
|
|
1743
|
-
key: index
|
|
1744
|
-
}), item.children);
|
|
1745
|
-
});
|
|
1746
|
-
}
|
|
1747
|
-
|
|
1748
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
1749
|
-
className: "goa-card-group"
|
|
1750
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1751
|
-
className: "card-group-title"
|
|
1752
|
-
}, title), /*#__PURE__*/React__default.createElement("div", {
|
|
1753
|
-
className: "card-group-".concat(layout)
|
|
1754
|
-
}, getCards()));
|
|
1755
|
-
};
|
|
1756
|
-
|
|
1757
|
-
/** Used to store the options in the dropdown */
|
|
1758
|
-
|
|
1759
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
1760
|
-
var DropdownContext = React.createContext({});
|
|
1761
|
-
|
|
1762
|
-
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";
|
|
1763
|
-
styleInject(css_248z$e);
|
|
1764
|
-
|
|
1765
|
-
var GoAOption = function GoAOption(props) {
|
|
1766
|
-
var label = props.label,
|
|
1767
|
-
children = props.children,
|
|
1768
|
-
selected = props.selected;
|
|
1769
|
-
|
|
1770
|
-
var _useState = React.useState(''),
|
|
1771
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
1772
|
-
isActive = _useState2[0],
|
|
1773
|
-
setActive = _useState2[1];
|
|
1774
|
-
|
|
1775
|
-
var _useContext = React.useContext(DropdownContext),
|
|
1776
|
-
selectionChanged = _useContext.selectionChanged;
|
|
1777
494
|
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
495
|
+
var current = ref.current;
|
|
496
|
+
|
|
497
|
+
var listener = function listener(e) {
|
|
498
|
+
onClick();
|
|
499
|
+
};
|
|
500
|
+
|
|
501
|
+
current.addEventListener('_click', listener);
|
|
502
|
+
return function () {
|
|
503
|
+
current.removeEventListener('_click', listener);
|
|
504
|
+
};
|
|
505
|
+
}, [ref, onClick]);
|
|
506
|
+
return jsxRuntime.jsx("goa-icon-button", __assign({
|
|
507
|
+
ref: ref,
|
|
508
|
+
type: type,
|
|
509
|
+
disabled: disabled,
|
|
510
|
+
variant: variant,
|
|
511
|
+
size: size,
|
|
512
|
+
title: title
|
|
513
|
+
}, {
|
|
514
|
+
children: children
|
|
515
|
+
}), void 0);
|
|
516
|
+
};
|
|
1797
517
|
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
var _useState = React.useState([]),
|
|
1821
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
1822
|
-
itemLabels = _useState2[0],
|
|
1823
|
-
setItemLabels = _useState2[1]; // Load the itemLabes state variable
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
React.useEffect(function () {
|
|
1827
|
-
var allLabels = [];
|
|
1828
|
-
React.Children.forEach(children, function (child) {
|
|
1829
|
-
var _child$props, _child$props2;
|
|
1830
|
-
|
|
1831
|
-
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) {
|
|
1832
|
-
allLabels.push(child.props.label);
|
|
518
|
+
var GoAInput = function GoAInput(_a) {
|
|
519
|
+
var id = _a.id,
|
|
520
|
+
name = _a.name,
|
|
521
|
+
type = _a.type,
|
|
522
|
+
leadingIcon = _a.leadingIcon,
|
|
523
|
+
trailingIcon = _a.trailingIcon,
|
|
524
|
+
_b = _a.variant,
|
|
525
|
+
variant = _b === void 0 ? 'goa' : _b,
|
|
526
|
+
focused = _a.focused,
|
|
527
|
+
disabled = _a.disabled,
|
|
528
|
+
readonly = _a.readonly,
|
|
529
|
+
value = _a.value,
|
|
530
|
+
placeholder = _a.placeholder,
|
|
531
|
+
error = _a.error,
|
|
532
|
+
width = _a.width,
|
|
533
|
+
testId = _a.testId,
|
|
534
|
+
onTrailingIconClick = _a.onTrailingIconClick,
|
|
535
|
+
onChange = _a.onChange;
|
|
536
|
+
var ref = react.useRef(null);
|
|
537
|
+
react.useEffect(function () {
|
|
538
|
+
if (!ref.current) {
|
|
539
|
+
return;
|
|
1833
540
|
}
|
|
1834
|
-
});
|
|
1835
|
-
setItemLabels(allLabels);
|
|
1836
|
-
}, []);
|
|
1837
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
1838
|
-
className: "option-group"
|
|
1839
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1840
|
-
className: "option-group-label"
|
|
1841
|
-
}, label), children);
|
|
1842
|
-
};
|
|
1843
|
-
|
|
1844
|
-
var GoADropdown = function GoADropdown(_ref) {
|
|
1845
|
-
var title = _ref.title,
|
|
1846
|
-
subTitle = _ref.subTitle,
|
|
1847
|
-
menuHeight = _ref.menuHeight,
|
|
1848
|
-
multiple = _ref.multiple,
|
|
1849
|
-
disabled = _ref.disabled,
|
|
1850
|
-
description = _ref.description,
|
|
1851
|
-
children = _ref.children,
|
|
1852
|
-
errorMessage = _ref.errorMessage,
|
|
1853
|
-
display = _ref.display,
|
|
1854
|
-
selectionChanged = _ref.selectionChanged,
|
|
1855
|
-
key = _ref.key,
|
|
1856
|
-
open = _ref.open,
|
|
1857
|
-
menuEditable = _ref.menuEditable,
|
|
1858
|
-
menuInputChanged = _ref.menuInputChanged,
|
|
1859
|
-
rest = _objectWithoutProperties(_ref, ["title", "subTitle", "menuHeight", "multiple", "disabled", "description", "children", "errorMessage", "display", "selectionChanged", "key", "open", "menuEditable", "menuInputChanged"]);
|
|
1860
|
-
|
|
1861
|
-
var _useState = React.useState(false),
|
|
1862
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
1863
|
-
isOpen = _useState2[0],
|
|
1864
|
-
setIsOpen = _useState2[1];
|
|
1865
|
-
|
|
1866
|
-
var _useState3 = React.useState(0),
|
|
1867
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
1868
|
-
maxMenuHeight = _useState4[0],
|
|
1869
|
-
setMaxMenuHeight = _useState4[1];
|
|
1870
|
-
|
|
1871
|
-
var menuRef = React.useRef();
|
|
1872
|
-
var overlayRef = React.useRef();
|
|
1873
|
-
|
|
1874
|
-
var toggleOpen = function toggleOpen() {
|
|
1875
|
-
if (!disabled) {
|
|
1876
|
-
setIsOpen(!isOpen);
|
|
1877
|
-
}
|
|
1878
|
-
};
|
|
1879
541
|
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
542
|
+
var current = ref.current;
|
|
543
|
+
|
|
544
|
+
var changeListener = function changeListener(e) {
|
|
545
|
+
var _a = e.detail,
|
|
546
|
+
name = _a.name,
|
|
547
|
+
value = _a.value;
|
|
548
|
+
onChange(name, value);
|
|
549
|
+
};
|
|
550
|
+
|
|
551
|
+
var clickListener = function clickListener(e) {
|
|
552
|
+
onTrailingIconClick === null || onTrailingIconClick === void 0 ? void 0 : onTrailingIconClick();
|
|
553
|
+
};
|
|
554
|
+
|
|
555
|
+
current.addEventListener('_change', changeListener);
|
|
556
|
+
current.addEventListener('_trailingIconClick', clickListener);
|
|
557
|
+
return function () {
|
|
558
|
+
current.removeEventListener('_change', changeListener);
|
|
559
|
+
current.removeEventListener('_trailingIconClick', clickListener);
|
|
560
|
+
};
|
|
561
|
+
}, [ref, onChange, onTrailingIconClick]);
|
|
562
|
+
return jsxRuntime.jsx("goa-input", {
|
|
563
|
+
ref: ref,
|
|
564
|
+
focused: focused,
|
|
565
|
+
type: type,
|
|
566
|
+
name: name,
|
|
567
|
+
id: id,
|
|
568
|
+
leadingicon: leadingIcon,
|
|
569
|
+
trailingicon: trailingIcon,
|
|
570
|
+
variant: variant,
|
|
571
|
+
disabled: disabled,
|
|
572
|
+
readonly: readonly,
|
|
573
|
+
placeholder: placeholder,
|
|
574
|
+
error: error,
|
|
575
|
+
"data-testid": testId,
|
|
576
|
+
value: value,
|
|
577
|
+
width: width,
|
|
578
|
+
handletrailingiconclick: !!onTrailingIconClick
|
|
579
|
+
}, void 0);
|
|
1886
580
|
};
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
'disabled': disabled
|
|
1892
|
-
});
|
|
581
|
+
var GoAInputText = function GoAInputText(props) {
|
|
582
|
+
return jsxRuntime.jsx(GoAInput, __assign({}, props, {
|
|
583
|
+
type: "text"
|
|
584
|
+
}), void 0);
|
|
1893
585
|
};
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
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;
|
|
1899
|
-
setMaxMenuHeight(height);
|
|
1900
|
-
});
|
|
1901
|
-
|
|
1902
|
-
var canOpen = function canOpen(isOpenState, isOpenProp) {
|
|
1903
|
-
// If open property is not provide, default menu toggle will be applied
|
|
1904
|
-
if (isOpenProp !== undefined) {
|
|
1905
|
-
return isOpenProp;
|
|
1906
|
-
}
|
|
1907
|
-
|
|
1908
|
-
return isOpenState;
|
|
586
|
+
var GoAInputPassword = function GoAInputPassword(props) {
|
|
587
|
+
return jsxRuntime.jsx(GoAInput, __assign({}, props, {
|
|
588
|
+
type: "password"
|
|
589
|
+
}), void 0);
|
|
1909
590
|
};
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
}
|
|
1915
|
-
|
|
1916
|
-
return true;
|
|
591
|
+
var GoAInputDate = function GoAInputDate(props) {
|
|
592
|
+
return jsxRuntime.jsx(GoAInput, __assign({}, props, {
|
|
593
|
+
type: "date"
|
|
594
|
+
}), void 0);
|
|
1917
595
|
};
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
}
|
|
1923
|
-
}, canOpen(isOpen, open) && /*#__PURE__*/React__default.createElement("div", {
|
|
1924
|
-
className: "dropdown-overlay",
|
|
1925
|
-
"data-testid": "dropdown-container",
|
|
1926
|
-
ref: overlayRef,
|
|
1927
|
-
onClick: toggleOpen
|
|
1928
|
-
}), /*#__PURE__*/React__default.createElement("div", Object.assign({
|
|
1929
|
-
className: rootDropDownCss()
|
|
1930
|
-
}, rest), /*#__PURE__*/React__default.createElement("label", {
|
|
1931
|
-
className: "dropdown-label",
|
|
1932
|
-
htmlFor: "input-for-".concat(title)
|
|
1933
|
-
}, title), subTitle && /*#__PURE__*/React__default.createElement("span", {
|
|
1934
|
-
className: "required-label"
|
|
1935
|
-
}, subTitle), /*#__PURE__*/React__default.createElement("div", {
|
|
1936
|
-
className: dropDownGroupCss(),
|
|
1937
|
-
onClick: toggleOpen
|
|
1938
|
-
}, /*#__PURE__*/React__default.createElement("i", {
|
|
1939
|
-
className: "goa-select-icon"
|
|
1940
|
-
}), /*#__PURE__*/React__default.createElement("input", {
|
|
1941
|
-
role: "searchbox",
|
|
1942
|
-
className: "dropdown-textbox margin-override",
|
|
1943
|
-
type: "text",
|
|
1944
|
-
"data-testid": "menu-input",
|
|
1945
|
-
style: {
|
|
1946
|
-
cursor: 'default'
|
|
1947
|
-
},
|
|
1948
|
-
id: "input-for-".concat(key),
|
|
1949
|
-
placeholder: display ? display : description,
|
|
1950
|
-
onChange: function onChange(e) {
|
|
1951
|
-
menuInputChanged && menuInputChanged(e.target.value);
|
|
1952
|
-
},
|
|
1953
|
-
readOnly: !canMenuEditable(menuEditable)
|
|
1954
|
-
}), canOpen(isOpen, open) && /*#__PURE__*/React__default.createElement("div", {
|
|
1955
|
-
className: "dropdown-menu",
|
|
1956
|
-
"data-testid": "dropdown-menu",
|
|
1957
|
-
ref: menuRef,
|
|
1958
|
-
style: {
|
|
1959
|
-
position: 'absolute',
|
|
1960
|
-
zIndex: 1000,
|
|
1961
|
-
maxHeight: "".concat(maxMenuHeight, "px"),
|
|
1962
|
-
overflow: 'auto'
|
|
1963
|
-
}
|
|
1964
|
-
}, children)), !description && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("span", {
|
|
1965
|
-
className: "helper-text"
|
|
1966
|
-
}, description)), errorMessage && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("span", {
|
|
1967
|
-
className: "dropdown-label error-text"
|
|
1968
|
-
}, errorMessage))));
|
|
1969
|
-
};
|
|
1970
|
-
GoADropdown.defaultProps = {
|
|
1971
|
-
disabled: false,
|
|
1972
|
-
description: null
|
|
1973
|
-
};
|
|
1974
|
-
|
|
1975
|
-
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";
|
|
1976
|
-
styleInject(css_248z$f);
|
|
1977
|
-
|
|
1978
|
-
var GoACheckbox = function GoACheckbox(_ref) {
|
|
1979
|
-
var _ref$checked = _ref.checked,
|
|
1980
|
-
checked = _ref$checked === void 0 ? false : _ref$checked,
|
|
1981
|
-
_ref$required = _ref.required,
|
|
1982
|
-
required = _ref$required === void 0 ? false : _ref$required,
|
|
1983
|
-
_ref$disabled = _ref.disabled,
|
|
1984
|
-
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
1985
|
-
_ref$indeterminate = _ref.indeterminate,
|
|
1986
|
-
indeterminate = _ref$indeterminate === void 0 ? false : _ref$indeterminate,
|
|
1987
|
-
_ref$labelPosition = _ref.labelPosition,
|
|
1988
|
-
labelPosition = _ref$labelPosition === void 0 ? 'before' : _ref$labelPosition,
|
|
1989
|
-
_ref$value = _ref.value,
|
|
1990
|
-
value = _ref$value === void 0 ? '' : _ref$value,
|
|
1991
|
-
content = _ref.content,
|
|
1992
|
-
children = _ref.children,
|
|
1993
|
-
selectionChange = _ref.selectionChange;
|
|
1994
|
-
|
|
1995
|
-
var hasError = function hasError() {
|
|
1996
|
-
return required && !checked;
|
|
596
|
+
var GoAInputTime = function GoAInputTime(props) {
|
|
597
|
+
return jsxRuntime.jsx(GoAInput, __assign({}, props, {
|
|
598
|
+
type: "time"
|
|
599
|
+
}), void 0);
|
|
1997
600
|
};
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
'goa-checkbox-disabled': disabled,
|
|
2003
|
-
'has-error': hasError(),
|
|
2004
|
-
'goa-checkbox-label-before': labelPosition === 'before'
|
|
2005
|
-
});
|
|
601
|
+
var GoAInputDateTime = function GoAInputDateTime(props) {
|
|
602
|
+
return jsxRuntime.jsx(GoAInput, __assign({}, props, {
|
|
603
|
+
type: "datetime-local"
|
|
604
|
+
}), void 0);
|
|
2006
605
|
};
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
'goa-checkbox-selected': !indeterminate && checked,
|
|
2012
|
-
'goa-checkbox-indeterminate': indeterminate && checked
|
|
2013
|
-
});
|
|
606
|
+
var GoAInputEmail = function GoAInputEmail(props) {
|
|
607
|
+
return jsxRuntime.jsx(GoAInput, __assign({}, props, {
|
|
608
|
+
type: "email"
|
|
609
|
+
}), void 0);
|
|
2014
610
|
};
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
}
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
})), !indeterminate && checked && /*#__PURE__*/React__default.createElement("svg", {
|
|
2040
|
-
id: "checkmark",
|
|
2041
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2042
|
-
viewBox: "0 0 16 12.18",
|
|
2043
|
-
className: "goa-checkmark"
|
|
2044
|
-
}, /*#__PURE__*/React__default.createElement("path", {
|
|
2045
|
-
d: "M5.09,9.64,1.27,5.82,0,7.09l5.09,5.09L16,1.27,14.73,0Z"
|
|
2046
|
-
}))), /*#__PURE__*/React__default.createElement("span", {
|
|
2047
|
-
className: "goa-checkbox-label"
|
|
2048
|
-
}, content || children)));
|
|
2049
|
-
};
|
|
2050
|
-
|
|
2051
|
-
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";
|
|
2052
|
-
styleInject(css_248z$g);
|
|
2053
|
-
|
|
2054
|
-
var GoAPageLoader = function GoAPageLoader(_ref) {
|
|
2055
|
-
var _ref$type = _ref.type,
|
|
2056
|
-
type = _ref$type === void 0 ? 'infinite' : _ref$type,
|
|
2057
|
-
_ref$visible = _ref.visible,
|
|
2058
|
-
visible = _ref$visible === void 0 ? false : _ref$visible,
|
|
2059
|
-
_ref$message = _ref.message,
|
|
2060
|
-
message = _ref$message === void 0 ? 'Loading...' : _ref$message,
|
|
2061
|
-
_ref$value = _ref.value,
|
|
2062
|
-
value = _ref$value === void 0 ? 0 : _ref$value,
|
|
2063
|
-
_ref$pagelock = _ref.pagelock,
|
|
2064
|
-
pagelock = _ref$pagelock === void 0 ? true : _ref$pagelock,
|
|
2065
|
-
_ref$displayType = _ref.displayType,
|
|
2066
|
-
displayType = _ref$displayType === void 0 ? 'large' : _ref$displayType;
|
|
2067
|
-
|
|
2068
|
-
/**
|
|
2069
|
-
* Set defaults
|
|
2070
|
-
*/
|
|
2071
|
-
var progressMaxValue = 283;
|
|
2072
|
-
var strokeDashoffset = 0;
|
|
2073
|
-
/**
|
|
2074
|
-
* Sets the progress if in progress mode.
|
|
2075
|
-
* @param progress
|
|
2076
|
-
* @returns
|
|
2077
|
-
*/
|
|
2078
|
-
|
|
2079
|
-
function setProgress(progress) {
|
|
2080
|
-
if (type !== 'progress') {
|
|
2081
|
-
return;
|
|
2082
|
-
}
|
|
2083
|
-
|
|
2084
|
-
if (progress === 0) {
|
|
2085
|
-
strokeDashoffset = progressMaxValue;
|
|
2086
|
-
return;
|
|
2087
|
-
}
|
|
2088
|
-
|
|
2089
|
-
if (progress >= 100) {
|
|
2090
|
-
return;
|
|
2091
|
-
}
|
|
2092
|
-
|
|
2093
|
-
var value = progressMaxValue - Math.round(progressMaxValue * progress / 100);
|
|
2094
|
-
strokeDashoffset = value;
|
|
2095
|
-
}
|
|
2096
|
-
|
|
2097
|
-
if (visible) {
|
|
2098
|
-
if (pagelock && displayType !== 'small') {
|
|
2099
|
-
document.body.style.height = '100%';
|
|
2100
|
-
document.body.style.overflow = 'hidden';
|
|
2101
|
-
} else {
|
|
2102
|
-
document.body.style.removeProperty('height');
|
|
2103
|
-
document.body.style.removeProperty('overflow');
|
|
2104
|
-
}
|
|
2105
|
-
|
|
2106
|
-
if (type === 'progress') {
|
|
2107
|
-
setProgress(value);
|
|
2108
|
-
}
|
|
2109
|
-
|
|
2110
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
2111
|
-
className: "progress-container--".concat(displayType),
|
|
2112
|
-
onKeyDown: function onKeyDown(event) {
|
|
2113
|
-
event.preventDefault();
|
|
2114
|
-
}
|
|
2115
|
-
}, /*#__PURE__*/React__default.createElement("svg", {
|
|
2116
|
-
className: "".concat(displayType === 'large' ? 'svg' : "svg--small"),
|
|
2117
|
-
fill: "none",
|
|
2118
|
-
viewBox: "0 0 100 100",
|
|
2119
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2120
|
-
}, /*#__PURE__*/React__default.createElement("circle", {
|
|
2121
|
-
className: "base-circle",
|
|
2122
|
-
cx: "50",
|
|
2123
|
-
cy: "50",
|
|
2124
|
-
r: "45"
|
|
2125
|
-
}), /*#__PURE__*/React__default.createElement("circle", {
|
|
2126
|
-
className: "".concat(type === 'infinite' ? 'progress-circle--infinite' : 'progress-circle'),
|
|
2127
|
-
cx: "50",
|
|
2128
|
-
cy: "50",
|
|
2129
|
-
r: "45",
|
|
611
|
+
var GoAInputSearch = function GoAInputSearch(props) {
|
|
612
|
+
return jsxRuntime.jsx(GoAInput, __assign({}, props, {
|
|
613
|
+
type: "search",
|
|
614
|
+
trailingIcon: "search"
|
|
615
|
+
}), void 0);
|
|
616
|
+
};
|
|
617
|
+
var GoAInputUrl = function GoAInputUrl(props) {
|
|
618
|
+
return jsxRuntime.jsx(GoAInput, __assign({}, props, {
|
|
619
|
+
type: "url"
|
|
620
|
+
}), void 0);
|
|
621
|
+
};
|
|
622
|
+
var GoAInputTel = function GoAInputTel(props) {
|
|
623
|
+
return jsxRuntime.jsx(GoAInput, __assign({}, props, {
|
|
624
|
+
type: "tel"
|
|
625
|
+
}), void 0);
|
|
626
|
+
};
|
|
627
|
+
var GoAInputFile = function GoAInputFile(props) {
|
|
628
|
+
return jsxRuntime.jsx("input", {
|
|
629
|
+
id: props.id,
|
|
630
|
+
name: props.name,
|
|
631
|
+
type: "file",
|
|
632
|
+
onChange: function (e) {
|
|
633
|
+
return props.onChange(e.target.name, e.target.value);
|
|
634
|
+
},
|
|
2130
635
|
style: {
|
|
2131
|
-
|
|
636
|
+
backgroundColor: 'revert'
|
|
2132
637
|
}
|
|
2133
|
-
}
|
|
2134
|
-
className: "progress-message--".concat(displayType)
|
|
2135
|
-
}, message));
|
|
2136
|
-
} else {
|
|
2137
|
-
document.body.style.removeProperty('height');
|
|
2138
|
-
document.body.style.removeProperty('overflow');
|
|
2139
|
-
return null;
|
|
2140
|
-
}
|
|
2141
|
-
};
|
|
2142
|
-
GoAPageLoader.propTypes = {
|
|
2143
|
-
visible: propTypes.bool,
|
|
2144
|
-
message: propTypes.string,
|
|
2145
|
-
value: propTypes.number,
|
|
2146
|
-
type: propTypes.string,
|
|
2147
|
-
pagelock: propTypes.bool,
|
|
2148
|
-
displayType: propTypes.string
|
|
2149
|
-
};
|
|
2150
|
-
|
|
2151
|
-
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";
|
|
2152
|
-
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"};
|
|
2153
|
-
styleInject(css_248z$h);
|
|
2154
|
-
|
|
2155
|
-
var GoABadge = function GoABadge(_ref) {
|
|
2156
|
-
var type = _ref.type,
|
|
2157
|
-
content = _ref.content,
|
|
2158
|
-
icon = _ref.icon;
|
|
2159
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
2160
|
-
className: classnames(styles['goa-badge'], styles["badge-".concat(type)])
|
|
2161
|
-
}, icon, /*#__PURE__*/React__default.createElement("span", {
|
|
2162
|
-
className: classnames(styles['goa-badge-content'])
|
|
2163
|
-
}, content));
|
|
2164
|
-
};
|
|
2165
|
-
GoABadge.defaultProps = {
|
|
2166
|
-
type: 'information'
|
|
2167
|
-
};
|
|
2168
|
-
|
|
2169
|
-
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";
|
|
2170
|
-
styleInject(css_248z$i);
|
|
2171
|
-
|
|
2172
|
-
var GoAElementLoader = function GoAElementLoader(_ref) {
|
|
2173
|
-
var _ref$visible = _ref.visible,
|
|
2174
|
-
visible = _ref$visible === void 0 ? false : _ref$visible,
|
|
2175
|
-
_ref$baseColour = _ref.baseColour,
|
|
2176
|
-
baseColour = _ref$baseColour === void 0 ? '#c8eef9' : _ref$baseColour,
|
|
2177
|
-
_ref$spinnerColour = _ref.spinnerColour,
|
|
2178
|
-
spinnerColour = _ref$spinnerColour === void 0 ? '#0070c4' : _ref$spinnerColour,
|
|
2179
|
-
_ref$size = _ref.size,
|
|
2180
|
-
size = _ref$size === void 0 ? 25 : _ref$size;
|
|
2181
|
-
var radius = size;
|
|
2182
|
-
var diameter = radius * 2;
|
|
2183
|
-
|
|
2184
|
-
var boxView = function boxView() {
|
|
2185
|
-
return "0 0 ".concat(diameter, " ").concat(diameter);
|
|
638
|
+
}, void 0);
|
|
2186
639
|
};
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
640
|
+
var GoAInputMonth = function GoAInputMonth(props) {
|
|
641
|
+
return jsxRuntime.jsx(GoAInput, __assign({}, props, {
|
|
642
|
+
type: "month"
|
|
643
|
+
}), void 0);
|
|
644
|
+
};
|
|
645
|
+
var GoAInputNumber = function GoAInputNumber(props) {
|
|
646
|
+
return jsxRuntime.jsx(GoAInput, __assign({}, props, {
|
|
647
|
+
type: "number"
|
|
648
|
+
}), void 0);
|
|
649
|
+
};
|
|
650
|
+
var GoAInputRange = function GoAInputRange(_a) {
|
|
651
|
+
_a.step;
|
|
652
|
+
var props = __rest(_a, ["step"]);
|
|
2196
653
|
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
var percentage = total === 0 ? maxAngle : value / total * maxAngle;
|
|
654
|
+
return jsxRuntime.jsx(GoAInput, __assign({}, props, {
|
|
655
|
+
type: "range"
|
|
656
|
+
}), void 0);
|
|
657
|
+
};
|
|
2202
658
|
|
|
2203
|
-
|
|
659
|
+
var GoAMicrositeHeader = function GoAMicrositeHeader(_a) {
|
|
660
|
+
var level = _a.level,
|
|
661
|
+
version = _a.version,
|
|
662
|
+
feedbackUrl = _a.feedbackUrl;
|
|
663
|
+
return jsxRuntime.jsx("goa-microsite-header", {
|
|
664
|
+
level: level,
|
|
665
|
+
version: version,
|
|
666
|
+
feedbackurl: feedbackUrl
|
|
667
|
+
}, void 0);
|
|
668
|
+
};
|
|
2204
669
|
|
|
2205
|
-
|
|
670
|
+
var GoAModal = function GoAModal(_a) {
|
|
671
|
+
var heading = _a.heading,
|
|
672
|
+
children = _a.children,
|
|
673
|
+
open = _a.open,
|
|
674
|
+
width = _a.width,
|
|
675
|
+
actions = _a.actions,
|
|
676
|
+
onClose = _a.onClose;
|
|
677
|
+
var el = react.useRef(null);
|
|
678
|
+
react.useEffect(function () {
|
|
679
|
+
if (!el.current) {
|
|
680
|
+
return;
|
|
681
|
+
}
|
|
2206
682
|
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
683
|
+
var current = el.current;
|
|
684
|
+
|
|
685
|
+
var listener = function listener(e) {
|
|
686
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
687
|
+
};
|
|
688
|
+
|
|
689
|
+
current.addEventListener('_close', listener);
|
|
690
|
+
return function () {
|
|
691
|
+
current.removeEventListener('_close', listener);
|
|
692
|
+
};
|
|
693
|
+
}, [el, onClose]);
|
|
694
|
+
return jsxRuntime.jsxs("goa-modal", __assign({
|
|
695
|
+
ref: el,
|
|
696
|
+
heading: heading,
|
|
697
|
+
open: open,
|
|
698
|
+
closable: !!onClose,
|
|
699
|
+
scrollable: true,
|
|
700
|
+
width: width
|
|
701
|
+
}, {
|
|
702
|
+
children: [actions && jsxRuntime.jsx("div", __assign({
|
|
703
|
+
slot: "actions"
|
|
704
|
+
}, {
|
|
705
|
+
children: actions
|
|
706
|
+
}), void 0), children]
|
|
707
|
+
}), void 0);
|
|
708
|
+
};
|
|
2210
709
|
|
|
2211
|
-
var
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
var x = elementRadius + pathRadius * Math.cos(angleInRadians);
|
|
2222
|
-
var y = elementRadius + pathRadius * Math.sin(angleInRadians);
|
|
2223
|
-
return x + ' ' + y;
|
|
2224
|
-
}
|
|
710
|
+
var GoANotification = function GoANotification(_a) {
|
|
711
|
+
var _b = _a.type,
|
|
712
|
+
type = _b === void 0 ? "information" : _b,
|
|
713
|
+
children = _a.children;
|
|
714
|
+
return jsxRuntime.jsx("goa-notification", __assign({
|
|
715
|
+
type: type
|
|
716
|
+
}, {
|
|
717
|
+
children: children
|
|
718
|
+
}), void 0);
|
|
719
|
+
};
|
|
2225
720
|
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2233
|
-
}, /*#__PURE__*/React__default.createElement("circle", {
|
|
2234
|
-
cx: "".concat(radius),
|
|
2235
|
-
cy: "".concat(radius),
|
|
2236
|
-
stroke: "".concat(baseColour),
|
|
2237
|
-
strokeWidth: "7",
|
|
2238
|
-
r: "".concat(radius - 7 / 2)
|
|
2239
|
-
}), /*#__PURE__*/React__default.createElement("path", {
|
|
2240
|
-
d: getArc(75, 100, radius - 7 / 2, radius, false),
|
|
2241
|
-
strokeWidth: "7",
|
|
2242
|
-
stroke: "".concat(spinnerColour),
|
|
2243
|
-
strokeLinecap: "round"
|
|
2244
|
-
}));
|
|
2245
|
-
};
|
|
2246
|
-
GoAElementLoader.propTypes = {
|
|
2247
|
-
visible: propTypes.bool,
|
|
2248
|
-
baseColour: propTypes.string,
|
|
2249
|
-
spinnerColour: propTypes.string,
|
|
2250
|
-
size: propTypes.number
|
|
2251
|
-
};
|
|
2252
|
-
|
|
2253
|
-
var css_248z$j = "/* 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";
|
|
2254
|
-
styleInject(css_248z$j);
|
|
2255
|
-
|
|
2256
|
-
var GoAInput = function GoAInput(_ref) {
|
|
2257
|
-
var _ref$validate = _ref.validate,
|
|
2258
|
-
validate = _ref$validate === void 0 ? null : _ref$validate,
|
|
2259
|
-
_ref$name = _ref.name,
|
|
2260
|
-
name = _ref$name === void 0 ? '' : _ref$name,
|
|
2261
|
-
_ref$type = _ref.type,
|
|
2262
|
-
type = _ref$type === void 0 ? '' : _ref$type,
|
|
2263
|
-
_ref$message = _ref.message,
|
|
2264
|
-
message = _ref$message === void 0 ? '' : _ref$message,
|
|
2265
|
-
_ref$required = _ref.required,
|
|
2266
|
-
required = _ref$required === void 0 ? false : _ref$required,
|
|
2267
|
-
_ref$helpText = _ref.helpText,
|
|
2268
|
-
helpText = _ref$helpText === void 0 ? '' : _ref$helpText,
|
|
2269
|
-
_ref$multiLine = _ref.multiLine,
|
|
2270
|
-
multiLine = _ref$multiLine === void 0 ? false : _ref$multiLine,
|
|
2271
|
-
_ref$navigator = _ref.navigator,
|
|
2272
|
-
navigator = _ref$navigator === void 0 ? false : _ref$navigator,
|
|
2273
|
-
onChange = _ref.onChange;
|
|
2274
|
-
|
|
2275
|
-
var _useState = React.useState(true),
|
|
2276
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
2277
|
-
valid = _useState2[0],
|
|
2278
|
-
setValid = _useState2[1];
|
|
2279
|
-
|
|
2280
|
-
var _useState3 = React.useState(''),
|
|
2281
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
2282
|
-
value = _useState4[0],
|
|
2283
|
-
setValue = _useState4[1];
|
|
2284
|
-
|
|
2285
|
-
var handleInput = function handleInput(e) {
|
|
2286
|
-
var value = e.target.value;
|
|
2287
|
-
setValue(value);
|
|
2288
|
-
|
|
2289
|
-
if (validate) {
|
|
2290
|
-
setValid(validate(value));
|
|
2291
|
-
}
|
|
721
|
+
var GoAPageBlock = function GoAPageBlock(_a) {
|
|
722
|
+
var children = _a.children;
|
|
723
|
+
return jsxRuntime.jsx("goa-page-block", {
|
|
724
|
+
children: children
|
|
725
|
+
}, void 0);
|
|
726
|
+
};
|
|
2292
727
|
|
|
2293
|
-
|
|
728
|
+
var GoARadioItem = function GoARadioItem(_a) {
|
|
729
|
+
var name = _a.name,
|
|
730
|
+
label = _a.label,
|
|
731
|
+
value = _a.value,
|
|
732
|
+
disabled = _a.disabled,
|
|
733
|
+
checked = _a.checked,
|
|
734
|
+
error = _a.error,
|
|
735
|
+
testId = _a.testId,
|
|
736
|
+
children = _a.children;
|
|
737
|
+
return jsxRuntime.jsx("goa-radio-item", __assign({
|
|
738
|
+
name: name,
|
|
739
|
+
label: label,
|
|
740
|
+
value: value,
|
|
741
|
+
error: error,
|
|
742
|
+
disabled: disabled,
|
|
743
|
+
checked: checked,
|
|
744
|
+
"data-testid": testId
|
|
745
|
+
}, {
|
|
746
|
+
children: children
|
|
747
|
+
}), void 0);
|
|
2294
748
|
};
|
|
2295
749
|
|
|
2296
|
-
var
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
}, helpText));
|
|
2314
|
-
};
|
|
2315
|
-
GoAInput.propTypes = {
|
|
2316
|
-
validate: propTypes.func,
|
|
2317
|
-
name: propTypes.string,
|
|
2318
|
-
type: propTypes.string,
|
|
2319
|
-
message: propTypes.string,
|
|
2320
|
-
required: propTypes.bool,
|
|
2321
|
-
helpText: propTypes.string,
|
|
2322
|
-
multiLine: propTypes.bool,
|
|
2323
|
-
navigator: propTypes.bool,
|
|
2324
|
-
onChange: propTypes.func
|
|
2325
|
-
};
|
|
2326
|
-
|
|
2327
|
-
var css_248z$k = ".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";
|
|
2328
|
-
styleInject(css_248z$k);
|
|
2329
|
-
|
|
2330
|
-
var css_248z$l = "/* 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";
|
|
2331
|
-
styleInject(css_248z$l);
|
|
2332
|
-
|
|
2333
|
-
var css_248z$m = ".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";
|
|
2334
|
-
styleInject(css_248z$m);
|
|
2335
|
-
|
|
2336
|
-
var GoAFormItem = function GoAFormItem(_ref) {
|
|
2337
|
-
var children = _ref.children,
|
|
2338
|
-
helpText = _ref.helpText,
|
|
2339
|
-
error = _ref.error;
|
|
2340
|
-
var className = error ? "goa-form-item error" : "goa-form-item";
|
|
2341
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
2342
|
-
className: className
|
|
2343
|
-
}, children, error && /*#__PURE__*/React__default.createElement("div", {
|
|
2344
|
-
className: "error-msg"
|
|
2345
|
-
}, error), helpText && !error && /*#__PURE__*/React__default.createElement("div", {
|
|
2346
|
-
id: "helpText",
|
|
2347
|
-
className: "help-msg"
|
|
2348
|
-
}, helpText));
|
|
2349
|
-
};
|
|
2350
|
-
|
|
2351
|
-
var GoAFormActions = function GoAFormActions(_ref) {
|
|
2352
|
-
var children = _ref.children;
|
|
2353
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
2354
|
-
className: "goa-form-actions"
|
|
2355
|
-
}, children);
|
|
2356
|
-
};
|
|
2357
|
-
|
|
2358
|
-
var css_248z$n = "/* Palette */\n/* Semantic usages */\n.goa-form {\n box-sizing: border-box; }\n\n.goa-form *,\n.goa-form *:before,\n.goa-form *:after {\n box-sizing: inherit; }\n\n.goa-form-item {\n margin-bottom: 0.5rem; }\n .goa-form-item label {\n display: block;\n font-weight: bold;\n color: #333; }\n .goa-form-item input,\n .goa-form-item textarea {\n display: block;\n width: 100%;\n padding: 0.5rem;\n border-radius: 4px;\n border: 1px solid var(--color-gray-600); }\n .goa-form-item.error input,\n .goa-form-item.error textarea {\n border-color: var(--color-red-600); }\n .goa-form-item.error .error-msg {\n color: var(--color-red-600); }\n .goa-form-item .help-msg {\n font-size: var(--fs-sm);\n font-weight: 200;\n color: var(--color-gray-600); }\n\n.goa-form-actions {\n margin-top: 2rem; }\n @media (min-width: 640px) {\n .goa-form-actions {\n display: flex;\n justify-content: flex-end;\n align-items: flex-end; }\n .goa-form-actions button {\n min-width: 6rem; }\n .goa-form-actions button + button,\n .goa-form-actions button + .goa-link-button,\n .goa-form-actions .goa-link-button + button,\n .goa-form-actions .goa-link-button + .goa-link-button {\n margin-left: 0.5rem; } }\n .goa-form-actions button {\n margin: 0; }\n";
|
|
2359
|
-
styleInject(css_248z$n);
|
|
2360
|
-
|
|
2361
|
-
var GoAForm = function GoAForm(_ref) {
|
|
2362
|
-
var children = _ref.children;
|
|
2363
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
2364
|
-
className: "goa-form"
|
|
2365
|
-
}, children);
|
|
2366
|
-
};
|
|
2367
|
-
|
|
2368
|
-
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";
|
|
2369
|
-
styleInject(css_248z$o);
|
|
2370
|
-
|
|
2371
|
-
var GoASkeletonElement = function GoASkeletonElement(_ref) {
|
|
2372
|
-
var _ref$type = _ref.type,
|
|
2373
|
-
type = _ref$type === void 0 ? 'text' : _ref$type;
|
|
2374
|
-
var classes = "skeleton ".concat(type);
|
|
2375
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
2376
|
-
className: classes
|
|
2377
|
-
});
|
|
2378
|
-
};
|
|
2379
|
-
|
|
2380
|
-
var GoASkeletonContent = function GoASkeletonContent(_ref) {
|
|
2381
|
-
var _ref$rows = _ref.rows,
|
|
2382
|
-
rows = _ref$rows === void 0 ? 1 : _ref$rows;
|
|
2383
|
-
var elements = [];
|
|
2384
|
-
|
|
2385
|
-
for (var i = 0; i < rows; i++) {
|
|
2386
|
-
elements.push( /*#__PURE__*/React__default.createElement(GoASkeletonElement, {
|
|
2387
|
-
type: "text"
|
|
2388
|
-
}));
|
|
2389
|
-
}
|
|
750
|
+
var GoARadioGroup = function GoARadioGroup(_a) {
|
|
751
|
+
var name = _a.name,
|
|
752
|
+
value = _a.value,
|
|
753
|
+
children = _a.children,
|
|
754
|
+
_b = _a.orientation,
|
|
755
|
+
orientation = _b === void 0 ? 'vertical' : _b,
|
|
756
|
+
_c = _a.disabled,
|
|
757
|
+
disabled = _c === void 0 ? false : _c,
|
|
758
|
+
_d = _a.error,
|
|
759
|
+
error = _d === void 0 ? false : _d,
|
|
760
|
+
testId = _a.testId,
|
|
761
|
+
onChange = _a.onChange;
|
|
762
|
+
var el = react.useRef(null);
|
|
763
|
+
react.useEffect(function () {
|
|
764
|
+
if (!el.current) {
|
|
765
|
+
return;
|
|
766
|
+
}
|
|
2390
767
|
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
};
|
|
768
|
+
var listener = function listener(e) {
|
|
769
|
+
if (!onChange) {
|
|
770
|
+
console.warn("Missing onChange function");
|
|
771
|
+
return;
|
|
772
|
+
}
|
|
2397
773
|
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
774
|
+
onChange(name, e.detail.value);
|
|
775
|
+
};
|
|
776
|
+
|
|
777
|
+
var currentEl = el.current;
|
|
778
|
+
currentEl.addEventListener("_change", listener);
|
|
779
|
+
return function () {
|
|
780
|
+
currentEl.removeEventListener("_change", listener);
|
|
781
|
+
};
|
|
782
|
+
}, []);
|
|
783
|
+
return jsxRuntime.jsx("goa-radio-group", __assign({
|
|
784
|
+
"data-testid": testId,
|
|
785
|
+
ref: el,
|
|
786
|
+
name: name,
|
|
787
|
+
value: value,
|
|
788
|
+
orientation: orientation,
|
|
789
|
+
disabled: disabled,
|
|
790
|
+
error: error
|
|
791
|
+
}, {
|
|
792
|
+
children: children
|
|
793
|
+
}), void 0);
|
|
794
|
+
};
|
|
2402
795
|
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
796
|
+
var GoASkeleton = function GoASkeleton(_a) {
|
|
797
|
+
var type = _a.type,
|
|
798
|
+
_b = _a.size,
|
|
799
|
+
size = _b === void 0 ? 1 : _b;
|
|
800
|
+
return jsxRuntime.jsx("goa-skeleton", {
|
|
801
|
+
type: type,
|
|
802
|
+
size: size
|
|
803
|
+
}, void 0);
|
|
804
|
+
};
|
|
2408
805
|
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
806
|
+
var GoASpinner = function GoASpinner(_a) {
|
|
807
|
+
var type = _a.type,
|
|
808
|
+
size = _a.size,
|
|
809
|
+
progress = _a.progress,
|
|
810
|
+
invert = _a.invert,
|
|
811
|
+
testId = _a.testId;
|
|
812
|
+
return jsxRuntime.jsx("goa-spinner", {
|
|
813
|
+
type: type,
|
|
814
|
+
size: size,
|
|
815
|
+
progress: progress,
|
|
816
|
+
invert: invert,
|
|
817
|
+
testid: testId
|
|
818
|
+
}, void 0);
|
|
819
|
+
};
|
|
2413
820
|
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
821
|
+
var GoATextArea = function GoATextArea(_a) {
|
|
822
|
+
var name = _a.name,
|
|
823
|
+
value = _a.value,
|
|
824
|
+
placeholder = _a.placeholder,
|
|
825
|
+
rows = _a.rows,
|
|
826
|
+
disabled = _a.disabled,
|
|
827
|
+
testId = _a.testId,
|
|
828
|
+
error = _a.error,
|
|
829
|
+
onChange = _a.onChange;
|
|
830
|
+
var el = react.useRef(null);
|
|
831
|
+
react.useEffect(function () {
|
|
832
|
+
if (!el.current) {
|
|
833
|
+
return;
|
|
834
|
+
}
|
|
2418
835
|
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
836
|
+
var current = el.current;
|
|
837
|
+
|
|
838
|
+
var listener = function listener(e) {
|
|
839
|
+
var _a = e.detail,
|
|
840
|
+
name = _a.name,
|
|
841
|
+
value = _a.value;
|
|
842
|
+
onChange(name, value);
|
|
843
|
+
};
|
|
844
|
+
|
|
845
|
+
current.addEventListener('_change', listener);
|
|
846
|
+
return function () {
|
|
847
|
+
current.removeEventListener('_change', listener);
|
|
848
|
+
};
|
|
849
|
+
}, [el, onChange]);
|
|
850
|
+
return jsxRuntime.jsx("goa-textarea", {
|
|
851
|
+
ref: el,
|
|
852
|
+
name: name,
|
|
853
|
+
placeholder: placeholder,
|
|
854
|
+
value: value,
|
|
855
|
+
rows: rows,
|
|
856
|
+
disabled: disabled,
|
|
857
|
+
error: error,
|
|
858
|
+
"data-testid": testId
|
|
859
|
+
}, void 0);
|
|
860
|
+
};
|
|
2424
861
|
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
862
|
+
exports.GoAAppFooter = GoAAppFooter;
|
|
863
|
+
exports.GoAAppHeader = GoAAppHeader;
|
|
864
|
+
exports.GoABadge = GoABadge;
|
|
865
|
+
exports.GoAButton = GoAButton;
|
|
866
|
+
exports.GoAButtonGroup = GoAButtonGroup;
|
|
867
|
+
exports.GoACallout = GoACallout;
|
|
868
|
+
exports.GoACheckbox = GoACheckbox;
|
|
869
|
+
exports.GoAChip = GoAChip;
|
|
870
|
+
exports.GoACircularProgress = GoACircularProgress;
|
|
871
|
+
exports.GoAContainer = GoAContainer;
|
|
872
|
+
exports.GoADropdown = GoADropdown;
|
|
873
|
+
exports.GoADropdownOption = GoADropdownOption;
|
|
874
|
+
exports.GoAEmergencyBadge = GoAEmergencyBadge;
|
|
875
|
+
exports.GoAFlexRow = GoAFlexRow;
|
|
876
|
+
exports.GoAFormItem = GoAFormItem;
|
|
877
|
+
exports.GoAHeroBanner = GoAHeroBanner;
|
|
878
|
+
exports.GoAHeroBannerActions = GoAHeroBannerActions;
|
|
879
|
+
exports.GoAIcon = GoAIcon;
|
|
880
|
+
exports.GoAIconButton = GoAIconButton;
|
|
881
|
+
exports.GoAInfoBadge = GoAInfoBadge;
|
|
882
|
+
exports.GoAInput = GoAInput;
|
|
883
|
+
exports.GoAInputDate = GoAInputDate;
|
|
884
|
+
exports.GoAInputDateTime = GoAInputDateTime;
|
|
885
|
+
exports.GoAInputEmail = GoAInputEmail;
|
|
886
|
+
exports.GoAInputFile = GoAInputFile;
|
|
887
|
+
exports.GoAInputMonth = GoAInputMonth;
|
|
888
|
+
exports.GoAInputNumber = GoAInputNumber;
|
|
889
|
+
exports.GoAInputPassword = GoAInputPassword;
|
|
890
|
+
exports.GoAInputRange = GoAInputRange;
|
|
891
|
+
exports.GoAInputSearch = GoAInputSearch;
|
|
892
|
+
exports.GoAInputTel = GoAInputTel;
|
|
893
|
+
exports.GoAInputText = GoAInputText;
|
|
894
|
+
exports.GoAInputTime = GoAInputTime;
|
|
895
|
+
exports.GoAInputUrl = GoAInputUrl;
|
|
896
|
+
exports.GoAMetaLink = GoAMetaLink;
|
|
897
|
+
exports.GoAMicrositeHeader = GoAMicrositeHeader;
|
|
898
|
+
exports.GoAModal = GoAModal;
|
|
899
|
+
exports.GoANavigationLink = GoANavigationLink;
|
|
900
|
+
exports.GoANotification = GoANotification;
|
|
901
|
+
exports.GoAPageBlock = GoAPageBlock;
|
|
902
|
+
exports.GoARadioGroup = GoARadioGroup;
|
|
903
|
+
exports.GoARadioItem = GoARadioItem;
|
|
904
|
+
exports.GoASkeleton = GoASkeleton;
|
|
905
|
+
exports.GoASpinner = GoASpinner;
|
|
906
|
+
exports.GoASuccessBadge = GoASuccessBadge;
|
|
907
|
+
exports.GoATextArea = GoATextArea;
|
|
908
|
+
exports.GoAWarningBadge = GoAWarningBadge;
|
|
909
|
+
|
|
910
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
911
|
+
|
|
912
|
+
}));
|