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