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