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