@nulogy/components 15.4.0 → 16.0.0
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/dist/main.js +1016 -1905
- package/dist/main.js.map +1 -1
- package/dist/main.module.js +804 -1692
- package/dist/main.module.js.map +1 -1
- package/dist/src/Alert/Alert.js +1 -1
- package/dist/src/AppTag/AppTag.js +1 -1
- package/dist/src/AppTag/components/LogoWrapper.js +1 -1
- package/dist/src/BottomSheet/BottomSheet.styled.js +2 -2
- package/dist/src/Box/Box.js +1 -1
- package/dist/src/Box/Box.story.js +1 -1
- package/dist/src/BrandedNavBar/DesktopMenu.js +1 -1
- package/dist/src/BrandedNavBar/MenuTrigger.js +1 -3
- package/dist/src/BrandedNavBar/MenuTriggerButton.js +1 -1
- package/dist/src/BrandedNavBar/MobileMenu.d.ts +1 -1
- package/dist/src/BrandedNavBar/MobileMenu.js +1 -3
- package/dist/src/BrandedNavBar/NavBar.js +1 -1
- package/dist/src/BrandedNavBar/NavBar.story.js +1 -1
- package/dist/src/BrandedNavBar/NavBarBackground.js +1 -1
- package/dist/src/BrandedNavBar/NavBarDropdownMenu.js +26 -23
- package/dist/src/BrandedNavBar/SmallNavBar.js +1 -3
- package/dist/src/BrandedNavBar/SmallNavBar.story.js +1 -1
- package/dist/src/BrandedNavBar/SubMenuTrigger.js +1 -1
- package/dist/src/BrandedNavBar/SubMenuTriggerButton.js +1 -1
- package/dist/src/BrandedNavBar/renderSubMenuItems.js +1 -1
- package/dist/src/Branding/Branding.js +1 -1
- package/dist/src/Branding/BrandingText.js +1 -1
- package/dist/src/Breadcrumbs/BreadcrumbsList.js +1 -1
- package/dist/src/Breadcrumbs/BreadcrumbsListItem.js +1 -1
- package/dist/src/Button/Button.js +1 -1
- package/dist/src/Button/CloseButton.js +1 -1
- package/dist/src/Button/ControlIcon.js +1 -1
- package/dist/src/Button/DangerButton.js +1 -1
- package/dist/src/Button/IconicButton.js +1 -1
- package/dist/src/Button/PrimaryButton.js +1 -1
- package/dist/src/Button/QuietButton.js +1 -1
- package/dist/src/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/src/Card/CardSet.js +1 -1
- package/dist/src/Checkbox/Checkbox.js +1 -1
- package/dist/src/Checkbox/CheckboxGroup.js +1 -1
- package/dist/src/DateRange/EndTime.js +1 -1
- package/dist/src/DateRange/StartTime.js +1 -1
- package/dist/src/Decorations/index.js +1 -1
- package/dist/src/DescriptionList/DescriptionList.parts.js +1 -1
- package/dist/src/DescriptionList/stories/fixtures.js +1 -1
- package/dist/src/Divider/Divider.js +1 -1
- package/dist/src/DropdownMenu/DropdownButton.js +1 -1
- package/dist/src/DropdownMenu/DropdownItem.js +1 -1
- package/dist/src/DropdownMenu/DropdownLink.js +1 -1
- package/dist/src/DropdownMenu/DropdownMenu.story.js +8 -4
- package/dist/src/DropdownMenu/DropdownMenuContainer.js +1 -1
- package/dist/src/DropdownMenu/DropdownText.js +1 -1
- package/dist/src/FieldLabel/HelpText.js +1 -1
- package/dist/src/FieldLabel/Label.js +1 -1
- package/dist/src/FieldLabel/LabelText.js +1 -1
- package/dist/src/Flex/Flex.js +1 -1
- package/dist/src/Flex/Flex.story.js +1 -1
- package/dist/src/Form/Field.js +1 -1
- package/dist/src/Form/Fieldset.js +1 -1
- package/dist/src/Form/Form.js +1 -1
- package/dist/src/Form/FormSection.js +1 -1
- package/dist/src/Icon/Icon.js +1 -1
- package/dist/src/Input/InputField.js +1 -1
- package/dist/src/Link/Link.js +1 -1
- package/dist/src/List/List.js +1 -1
- package/dist/src/List/ListItem.js +1 -1
- package/dist/src/MiniTooltip/index.js +1 -1
- package/dist/src/Modal/Modal.js +1 -1
- package/dist/src/Modal/ModalCloseButton.js +1 -1
- package/dist/src/Modal/ModalContent.js +1 -1
- package/dist/src/Modal/ModalFooter.js +1 -1
- package/dist/src/Modal/ModalHeader.js +1 -1
- package/dist/src/NDSProvider/GlobalStyles.js +1 -1
- package/dist/src/NavBarSearch/NavBarSearch.js +1 -1
- package/dist/src/Navigation/components/AppSwitcher/parts/index.js +1 -1
- package/dist/src/Navigation/components/DesktopNav/parts/MoreMenuItem.js +1 -1
- package/dist/src/Navigation/components/MenuSubItem/parts/styled.js +1 -1
- package/dist/src/Navigation/components/MobileNav/parts/styled.js +1 -1
- package/dist/src/Navigation/components/UserMenu/UserMenu.js +1 -1
- package/dist/src/Navigation/components/UserMenu/parts/Header.js +1 -1
- package/dist/src/Navigation/components/UserMenu/parts/styled.js +1 -1
- package/dist/src/Navigation/components/shared/NavigationLogo.js +1 -1
- package/dist/src/Navigation/components/shared/NavigationLogoLink.js +1 -1
- package/dist/src/Navigation/components/shared/NavigationMenuContent.js +1 -1
- package/dist/src/Navigation/components/shared/NavigationMenuItem.js +6 -2
- package/dist/src/Navigation/components/shared/components.js +1 -1
- package/dist/src/Overlay/Overlay.js +1 -1
- package/dist/src/Pagination/PageNumber.js +1 -1
- package/dist/src/Pagination/PaginationButton.js +1 -1
- package/dist/src/Popper/Popper.js +0 -1
- package/dist/src/Primitives/index.js +1 -1
- package/dist/src/Radio/Radio.js +1 -1
- package/dist/src/RangeContainer/RangeContainer.js +1 -3
- package/dist/src/Select/Select.story.fixture.js +1 -1
- package/dist/src/Select/SelectOption.js +1 -1
- package/dist/src/StatusIndicator/StatusIndicator.js +1 -1
- package/dist/src/Summary/Summary.js +1 -1
- package/dist/src/Summary/SummaryDivider.js +1 -1
- package/dist/src/Summary/SummaryItem.js +1 -1
- package/dist/src/Switcher/Switch.js +1 -1
- package/dist/src/Table/BaseTable.js +1 -1
- package/dist/src/Table/StyledTh.js +1 -1
- package/dist/src/Table/TableBody.js +1 -1
- package/dist/src/Table/TableCell.js +1 -1
- package/dist/src/Table/TableFoot.js +1 -1
- package/dist/src/Table/TableHead.js +1 -1
- package/dist/src/Tabs/Tab.js +1 -1
- package/dist/src/Tabs/TabContainer.js +1 -1
- package/dist/src/Tabs/TabScrollIndicator.js +1 -1
- package/dist/src/Tabs/TabScrollIndicators.js +1 -1
- package/dist/src/Tabs/Tabs.story.d.ts +0 -1
- package/dist/src/Tabs/Tabs.story.js +0 -5
- package/dist/src/Textarea/StyledTextarea.js +1 -1
- package/dist/src/TimePicker/TimePickerDropdown.js +1 -1
- package/dist/src/TimePicker/TimePickerInput.js +1 -1
- package/dist/src/TimePicker/TimePickerOption.js +1 -1
- package/dist/src/TimeRange/TimeRange.d.ts +7 -3
- package/dist/src/TimeRange/TimeRange.js +2 -2
- package/dist/src/Toast/Toast.js +1 -3
- package/dist/src/Toast/Toast.story.js +0 -2
- package/dist/src/Toggle/Toggle.js +0 -2
- package/dist/src/Toggle/ToggleButton.js +1 -1
- package/dist/src/Tooltip/TooltipContainer.js +1 -1
- package/dist/src/Tooltip/components/TooltipComponents.js +1 -1
- package/dist/src/TopBar/TopBar.styled.js +1 -1
- package/dist/src/Type/Headings.js +1 -1
- package/dist/src/Type/Text.js +1 -1
- package/dist/src/Validation/InlineValidation.js +1 -1
- package/dist/src/VerticalDivider/VerticalDivider.js +1 -1
- package/dist/src/i18n.js +0 -2
- package/dist/src/utils/ClickInputLabel.js +1 -1
- package/dist/src/utils/PopperArrow.js +4 -4
- package/dist/src/utils/ScrollIndicators.js +1 -1
- package/dist/src/utils/noop.js +1 -3
- package/dist/src/utils/story/code.js +1 -1
- package/dist/src/utils/story/dashed.js +1 -1
- package/dist/src/utils/story/placeholder.js +1 -1
- package/dist/src/utils/story/resizable.js +1 -1
- package/dist/src/utils/ts/FocusManager.d.ts +2 -2
- package/dist/src/utils/useScrollLock.js +0 -1
- package/dist/vite.config.js +11 -1
- package/package.json +20 -7
package/dist/main.module.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { jsx as jsx$1, jsxs, Fragment } from "react/jsx-runtime";
|
|
1
2
|
import * as React from "react";
|
|
2
|
-
import React__default, { createContext as createContext$1, useContext, useLayoutEffect, useEffect, useState, useRef, useCallback, useMemo, forwardRef, createElement, cloneElement, Children, isValidElement, Fragment, useReducer, Component, PureComponent, createRef, useImperativeHandle } from "react";
|
|
3
|
-
import
|
|
3
|
+
import React__default, { createContext as createContext$1, useContext, useLayoutEffect, useEffect, useState, useRef, useCallback, useMemo, forwardRef, createElement, cloneElement, Children, isValidElement, Fragment as Fragment$1, useReducer, Component, PureComponent, createRef, useImperativeHandle } from "react";
|
|
4
|
+
import { useTheme, styled, keyframes as keyframes$3, createGlobalStyle, ThemeContext as ThemeContext$1, StyleSheetManager, ThemeProvider } from "styled-components";
|
|
4
5
|
import icons from "@nulogy/icons";
|
|
5
6
|
import isEqual$3 from "react-fast-compare";
|
|
6
7
|
import warning$2 from "warning";
|
|
@@ -10,999 +11,9 @@ import require$$0 from "react-is";
|
|
|
10
11
|
import equal from "deep-equal";
|
|
11
12
|
import r from "classnames";
|
|
12
13
|
import require$$0$1 from "exenv";
|
|
13
|
-
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
14
|
-
function getDefaultExportFromCjs(x2) {
|
|
15
|
-
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
16
|
-
}
|
|
17
|
-
function getAugmentedNamespace(n2) {
|
|
18
|
-
if (Object.prototype.hasOwnProperty.call(n2, "__esModule")) return n2;
|
|
19
|
-
var f2 = n2.default;
|
|
20
|
-
if (typeof f2 == "function") {
|
|
21
|
-
var a4 = function a5() {
|
|
22
|
-
if (this instanceof a5) {
|
|
23
|
-
return Reflect.construct(f2, arguments, this.constructor);
|
|
24
|
-
}
|
|
25
|
-
return f2.apply(this, arguments);
|
|
26
|
-
};
|
|
27
|
-
a4.prototype = f2.prototype;
|
|
28
|
-
} else a4 = {};
|
|
29
|
-
Object.defineProperty(a4, "__esModule", { value: true });
|
|
30
|
-
Object.keys(n2).forEach(function(k2) {
|
|
31
|
-
var d4 = Object.getOwnPropertyDescriptor(n2, k2);
|
|
32
|
-
Object.defineProperty(a4, k2, d4.get ? d4 : {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function() {
|
|
35
|
-
return n2[k2];
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
return a4;
|
|
40
|
-
}
|
|
41
|
-
var jsxRuntime = { exports: {} };
|
|
42
|
-
var reactJsxRuntime_production_min = {};
|
|
43
|
-
/*
|
|
44
|
-
object-assign
|
|
45
|
-
(c) Sindre Sorhus
|
|
46
|
-
@license MIT
|
|
47
|
-
*/
|
|
48
|
-
var objectAssign;
|
|
49
|
-
var hasRequiredObjectAssign;
|
|
50
|
-
function requireObjectAssign() {
|
|
51
|
-
if (hasRequiredObjectAssign) return objectAssign;
|
|
52
|
-
hasRequiredObjectAssign = 1;
|
|
53
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
54
|
-
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
55
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
56
|
-
function toObject(val) {
|
|
57
|
-
if (val === null || val === void 0) {
|
|
58
|
-
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
59
|
-
}
|
|
60
|
-
return Object(val);
|
|
61
|
-
}
|
|
62
|
-
function shouldUseNative() {
|
|
63
|
-
try {
|
|
64
|
-
if (!Object.assign) {
|
|
65
|
-
return false;
|
|
66
|
-
}
|
|
67
|
-
var test1 = new String("abc");
|
|
68
|
-
test1[5] = "de";
|
|
69
|
-
if (Object.getOwnPropertyNames(test1)[0] === "5") {
|
|
70
|
-
return false;
|
|
71
|
-
}
|
|
72
|
-
var test2 = {};
|
|
73
|
-
for (var i3 = 0; i3 < 10; i3++) {
|
|
74
|
-
test2["_" + String.fromCharCode(i3)] = i3;
|
|
75
|
-
}
|
|
76
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function(n2) {
|
|
77
|
-
return test2[n2];
|
|
78
|
-
});
|
|
79
|
-
if (order2.join("") !== "0123456789") {
|
|
80
|
-
return false;
|
|
81
|
-
}
|
|
82
|
-
var test3 = {};
|
|
83
|
-
"abcdefghijklmnopqrst".split("").forEach(function(letter) {
|
|
84
|
-
test3[letter] = letter;
|
|
85
|
-
});
|
|
86
|
-
if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
|
|
87
|
-
return false;
|
|
88
|
-
}
|
|
89
|
-
return true;
|
|
90
|
-
} catch (err) {
|
|
91
|
-
return false;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
|
|
95
|
-
var from2;
|
|
96
|
-
var to = toObject(target);
|
|
97
|
-
var symbols;
|
|
98
|
-
for (var s4 = 1; s4 < arguments.length; s4++) {
|
|
99
|
-
from2 = Object(arguments[s4]);
|
|
100
|
-
for (var key in from2) {
|
|
101
|
-
if (hasOwnProperty2.call(from2, key)) {
|
|
102
|
-
to[key] = from2[key];
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
if (getOwnPropertySymbols) {
|
|
106
|
-
symbols = getOwnPropertySymbols(from2);
|
|
107
|
-
for (var i3 = 0; i3 < symbols.length; i3++) {
|
|
108
|
-
if (propIsEnumerable.call(from2, symbols[i3])) {
|
|
109
|
-
to[symbols[i3]] = from2[symbols[i3]];
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
return to;
|
|
115
|
-
};
|
|
116
|
-
return objectAssign;
|
|
117
|
-
}
|
|
118
|
-
/** @license React v17.0.2
|
|
119
|
-
* react-jsx-runtime.production.min.js
|
|
120
|
-
*
|
|
121
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
122
|
-
*
|
|
123
|
-
* This source code is licensed under the MIT license found in the
|
|
124
|
-
* LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/
|
|
126
|
-
var hasRequiredReactJsxRuntime_production_min;
|
|
127
|
-
function requireReactJsxRuntime_production_min() {
|
|
128
|
-
if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
|
|
129
|
-
hasRequiredReactJsxRuntime_production_min = 1;
|
|
130
|
-
requireObjectAssign();
|
|
131
|
-
var f2 = React__default, g2 = 60103;
|
|
132
|
-
reactJsxRuntime_production_min.Fragment = 60107;
|
|
133
|
-
if ("function" === typeof Symbol && Symbol.for) {
|
|
134
|
-
var h4 = Symbol.for;
|
|
135
|
-
g2 = h4("react.element");
|
|
136
|
-
reactJsxRuntime_production_min.Fragment = h4("react.fragment");
|
|
137
|
-
}
|
|
138
|
-
var m4 = f2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n2 = Object.prototype.hasOwnProperty, p2 = { key: true, ref: true, __self: true, __source: true };
|
|
139
|
-
function q2(c3, a4, k2) {
|
|
140
|
-
var b3, d4 = {}, e3 = null, l2 = null;
|
|
141
|
-
void 0 !== k2 && (e3 = "" + k2);
|
|
142
|
-
void 0 !== a4.key && (e3 = "" + a4.key);
|
|
143
|
-
void 0 !== a4.ref && (l2 = a4.ref);
|
|
144
|
-
for (b3 in a4) n2.call(a4, b3) && !p2.hasOwnProperty(b3) && (d4[b3] = a4[b3]);
|
|
145
|
-
if (c3 && c3.defaultProps) for (b3 in a4 = c3.defaultProps, a4) void 0 === d4[b3] && (d4[b3] = a4[b3]);
|
|
146
|
-
return { $$typeof: g2, type: c3, key: e3, ref: l2, props: d4, _owner: m4.current };
|
|
147
|
-
}
|
|
148
|
-
reactJsxRuntime_production_min.jsx = q2;
|
|
149
|
-
reactJsxRuntime_production_min.jsxs = q2;
|
|
150
|
-
return reactJsxRuntime_production_min;
|
|
151
|
-
}
|
|
152
|
-
var reactJsxRuntime_development = {};
|
|
153
|
-
var hasRequiredReactJsxRuntime_development;
|
|
154
|
-
function requireReactJsxRuntime_development() {
|
|
155
|
-
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
156
|
-
hasRequiredReactJsxRuntime_development = 1;
|
|
157
|
-
(function(exports$1) {
|
|
158
|
-
/** @license React v17.0.2
|
|
159
|
-
* react-jsx-runtime.development.js
|
|
160
|
-
*
|
|
161
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
162
|
-
*
|
|
163
|
-
* This source code is licensed under the MIT license found in the
|
|
164
|
-
* LICENSE file in the root directory of this source tree.
|
|
165
|
-
*/
|
|
166
|
-
if (process.env.NODE_ENV !== "production") {
|
|
167
|
-
(function() {
|
|
168
|
-
var React2 = React__default;
|
|
169
|
-
var _assign = requireObjectAssign();
|
|
170
|
-
var REACT_ELEMENT_TYPE = 60103;
|
|
171
|
-
var REACT_PORTAL_TYPE = 60106;
|
|
172
|
-
exports$1.Fragment = 60107;
|
|
173
|
-
var REACT_STRICT_MODE_TYPE = 60108;
|
|
174
|
-
var REACT_PROFILER_TYPE = 60114;
|
|
175
|
-
var REACT_PROVIDER_TYPE = 60109;
|
|
176
|
-
var REACT_CONTEXT_TYPE = 60110;
|
|
177
|
-
var REACT_FORWARD_REF_TYPE = 60112;
|
|
178
|
-
var REACT_SUSPENSE_TYPE = 60113;
|
|
179
|
-
var REACT_SUSPENSE_LIST_TYPE = 60120;
|
|
180
|
-
var REACT_MEMO_TYPE = 60115;
|
|
181
|
-
var REACT_LAZY_TYPE = 60116;
|
|
182
|
-
var REACT_BLOCK_TYPE = 60121;
|
|
183
|
-
var REACT_SERVER_BLOCK_TYPE = 60122;
|
|
184
|
-
var REACT_FUNDAMENTAL_TYPE = 60117;
|
|
185
|
-
var REACT_DEBUG_TRACING_MODE_TYPE = 60129;
|
|
186
|
-
var REACT_LEGACY_HIDDEN_TYPE = 60131;
|
|
187
|
-
if (typeof Symbol === "function" && Symbol.for) {
|
|
188
|
-
var symbolFor = Symbol.for;
|
|
189
|
-
REACT_ELEMENT_TYPE = symbolFor("react.element");
|
|
190
|
-
REACT_PORTAL_TYPE = symbolFor("react.portal");
|
|
191
|
-
exports$1.Fragment = symbolFor("react.fragment");
|
|
192
|
-
REACT_STRICT_MODE_TYPE = symbolFor("react.strict_mode");
|
|
193
|
-
REACT_PROFILER_TYPE = symbolFor("react.profiler");
|
|
194
|
-
REACT_PROVIDER_TYPE = symbolFor("react.provider");
|
|
195
|
-
REACT_CONTEXT_TYPE = symbolFor("react.context");
|
|
196
|
-
REACT_FORWARD_REF_TYPE = symbolFor("react.forward_ref");
|
|
197
|
-
REACT_SUSPENSE_TYPE = symbolFor("react.suspense");
|
|
198
|
-
REACT_SUSPENSE_LIST_TYPE = symbolFor("react.suspense_list");
|
|
199
|
-
REACT_MEMO_TYPE = symbolFor("react.memo");
|
|
200
|
-
REACT_LAZY_TYPE = symbolFor("react.lazy");
|
|
201
|
-
REACT_BLOCK_TYPE = symbolFor("react.block");
|
|
202
|
-
REACT_SERVER_BLOCK_TYPE = symbolFor("react.server.block");
|
|
203
|
-
REACT_FUNDAMENTAL_TYPE = symbolFor("react.fundamental");
|
|
204
|
-
symbolFor("react.scope");
|
|
205
|
-
symbolFor("react.opaque.id");
|
|
206
|
-
REACT_DEBUG_TRACING_MODE_TYPE = symbolFor("react.debug_trace_mode");
|
|
207
|
-
symbolFor("react.offscreen");
|
|
208
|
-
REACT_LEGACY_HIDDEN_TYPE = symbolFor("react.legacy_hidden");
|
|
209
|
-
}
|
|
210
|
-
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
|
|
211
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
212
|
-
function getIteratorFn(maybeIterable) {
|
|
213
|
-
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
214
|
-
return null;
|
|
215
|
-
}
|
|
216
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
217
|
-
if (typeof maybeIterator === "function") {
|
|
218
|
-
return maybeIterator;
|
|
219
|
-
}
|
|
220
|
-
return null;
|
|
221
|
-
}
|
|
222
|
-
var ReactSharedInternals = React2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
223
|
-
function error2(format2) {
|
|
224
|
-
{
|
|
225
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
226
|
-
args[_key2 - 1] = arguments[_key2];
|
|
227
|
-
}
|
|
228
|
-
printWarning("error", format2, args);
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
function printWarning(level, format2, args) {
|
|
232
|
-
{
|
|
233
|
-
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
234
|
-
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
235
|
-
if (stack !== "") {
|
|
236
|
-
format2 += "%s";
|
|
237
|
-
args = args.concat([stack]);
|
|
238
|
-
}
|
|
239
|
-
var argsWithFormat = args.map(function(item) {
|
|
240
|
-
return "" + item;
|
|
241
|
-
});
|
|
242
|
-
argsWithFormat.unshift("Warning: " + format2);
|
|
243
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
var enableScopeAPI = false;
|
|
247
|
-
function isValidElementType(type) {
|
|
248
|
-
if (typeof type === "string" || typeof type === "function") {
|
|
249
|
-
return true;
|
|
250
|
-
}
|
|
251
|
-
if (type === exports$1.Fragment || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) {
|
|
252
|
-
return true;
|
|
253
|
-
}
|
|
254
|
-
if (typeof type === "object" && type !== null) {
|
|
255
|
-
if (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_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
|
|
256
|
-
return true;
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
return false;
|
|
260
|
-
}
|
|
261
|
-
function getWrappedName(outerType, innerType, wrapperName) {
|
|
262
|
-
var functionName = innerType.displayName || innerType.name || "";
|
|
263
|
-
return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName);
|
|
264
|
-
}
|
|
265
|
-
function getContextName(type) {
|
|
266
|
-
return type.displayName || "Context";
|
|
267
|
-
}
|
|
268
|
-
function getComponentName(type) {
|
|
269
|
-
if (type == null) {
|
|
270
|
-
return null;
|
|
271
|
-
}
|
|
272
|
-
{
|
|
273
|
-
if (typeof type.tag === "number") {
|
|
274
|
-
error2("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue.");
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
if (typeof type === "function") {
|
|
278
|
-
return type.displayName || type.name || null;
|
|
279
|
-
}
|
|
280
|
-
if (typeof type === "string") {
|
|
281
|
-
return type;
|
|
282
|
-
}
|
|
283
|
-
switch (type) {
|
|
284
|
-
case exports$1.Fragment:
|
|
285
|
-
return "Fragment";
|
|
286
|
-
case REACT_PORTAL_TYPE:
|
|
287
|
-
return "Portal";
|
|
288
|
-
case REACT_PROFILER_TYPE:
|
|
289
|
-
return "Profiler";
|
|
290
|
-
case REACT_STRICT_MODE_TYPE:
|
|
291
|
-
return "StrictMode";
|
|
292
|
-
case REACT_SUSPENSE_TYPE:
|
|
293
|
-
return "Suspense";
|
|
294
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
295
|
-
return "SuspenseList";
|
|
296
|
-
}
|
|
297
|
-
if (typeof type === "object") {
|
|
298
|
-
switch (type.$$typeof) {
|
|
299
|
-
case REACT_CONTEXT_TYPE:
|
|
300
|
-
var context = type;
|
|
301
|
-
return getContextName(context) + ".Consumer";
|
|
302
|
-
case REACT_PROVIDER_TYPE:
|
|
303
|
-
var provider = type;
|
|
304
|
-
return getContextName(provider._context) + ".Provider";
|
|
305
|
-
case REACT_FORWARD_REF_TYPE:
|
|
306
|
-
return getWrappedName(type, type.render, "ForwardRef");
|
|
307
|
-
case REACT_MEMO_TYPE:
|
|
308
|
-
return getComponentName(type.type);
|
|
309
|
-
case REACT_BLOCK_TYPE:
|
|
310
|
-
return getComponentName(type._render);
|
|
311
|
-
case REACT_LAZY_TYPE: {
|
|
312
|
-
var lazyComponent = type;
|
|
313
|
-
var payload = lazyComponent._payload;
|
|
314
|
-
var init = lazyComponent._init;
|
|
315
|
-
try {
|
|
316
|
-
return getComponentName(init(payload));
|
|
317
|
-
} catch (x2) {
|
|
318
|
-
return null;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
return null;
|
|
324
|
-
}
|
|
325
|
-
var disabledDepth = 0;
|
|
326
|
-
var prevLog;
|
|
327
|
-
var prevInfo;
|
|
328
|
-
var prevWarn;
|
|
329
|
-
var prevError;
|
|
330
|
-
var prevGroup;
|
|
331
|
-
var prevGroupCollapsed;
|
|
332
|
-
var prevGroupEnd;
|
|
333
|
-
function disabledLog() {
|
|
334
|
-
}
|
|
335
|
-
disabledLog.__reactDisabledLog = true;
|
|
336
|
-
function disableLogs() {
|
|
337
|
-
{
|
|
338
|
-
if (disabledDepth === 0) {
|
|
339
|
-
prevLog = console.log;
|
|
340
|
-
prevInfo = console.info;
|
|
341
|
-
prevWarn = console.warn;
|
|
342
|
-
prevError = console.error;
|
|
343
|
-
prevGroup = console.group;
|
|
344
|
-
prevGroupCollapsed = console.groupCollapsed;
|
|
345
|
-
prevGroupEnd = console.groupEnd;
|
|
346
|
-
var props = {
|
|
347
|
-
configurable: true,
|
|
348
|
-
enumerable: true,
|
|
349
|
-
value: disabledLog,
|
|
350
|
-
writable: true
|
|
351
|
-
};
|
|
352
|
-
Object.defineProperties(console, {
|
|
353
|
-
info: props,
|
|
354
|
-
log: props,
|
|
355
|
-
warn: props,
|
|
356
|
-
error: props,
|
|
357
|
-
group: props,
|
|
358
|
-
groupCollapsed: props,
|
|
359
|
-
groupEnd: props
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
disabledDepth++;
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
function reenableLogs() {
|
|
366
|
-
{
|
|
367
|
-
disabledDepth--;
|
|
368
|
-
if (disabledDepth === 0) {
|
|
369
|
-
var props = {
|
|
370
|
-
configurable: true,
|
|
371
|
-
enumerable: true,
|
|
372
|
-
writable: true
|
|
373
|
-
};
|
|
374
|
-
Object.defineProperties(console, {
|
|
375
|
-
log: _assign({}, props, {
|
|
376
|
-
value: prevLog
|
|
377
|
-
}),
|
|
378
|
-
info: _assign({}, props, {
|
|
379
|
-
value: prevInfo
|
|
380
|
-
}),
|
|
381
|
-
warn: _assign({}, props, {
|
|
382
|
-
value: prevWarn
|
|
383
|
-
}),
|
|
384
|
-
error: _assign({}, props, {
|
|
385
|
-
value: prevError
|
|
386
|
-
}),
|
|
387
|
-
group: _assign({}, props, {
|
|
388
|
-
value: prevGroup
|
|
389
|
-
}),
|
|
390
|
-
groupCollapsed: _assign({}, props, {
|
|
391
|
-
value: prevGroupCollapsed
|
|
392
|
-
}),
|
|
393
|
-
groupEnd: _assign({}, props, {
|
|
394
|
-
value: prevGroupEnd
|
|
395
|
-
})
|
|
396
|
-
});
|
|
397
|
-
}
|
|
398
|
-
if (disabledDepth < 0) {
|
|
399
|
-
error2("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
|
404
|
-
var prefix2;
|
|
405
|
-
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
406
|
-
{
|
|
407
|
-
if (prefix2 === void 0) {
|
|
408
|
-
try {
|
|
409
|
-
throw Error();
|
|
410
|
-
} catch (x2) {
|
|
411
|
-
var match2 = x2.stack.trim().match(/\n( *(at )?)/);
|
|
412
|
-
prefix2 = match2 && match2[1] || "";
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
return "\n" + prefix2 + name;
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
var reentry = false;
|
|
419
|
-
var componentFrameCache;
|
|
420
|
-
{
|
|
421
|
-
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
422
|
-
componentFrameCache = new PossiblyWeakMap();
|
|
423
|
-
}
|
|
424
|
-
function describeNativeComponentFrame(fn2, construct) {
|
|
425
|
-
if (!fn2 || reentry) {
|
|
426
|
-
return "";
|
|
427
|
-
}
|
|
428
|
-
{
|
|
429
|
-
var frame2 = componentFrameCache.get(fn2);
|
|
430
|
-
if (frame2 !== void 0) {
|
|
431
|
-
return frame2;
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
var control;
|
|
435
|
-
reentry = true;
|
|
436
|
-
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
437
|
-
Error.prepareStackTrace = void 0;
|
|
438
|
-
var previousDispatcher;
|
|
439
|
-
{
|
|
440
|
-
previousDispatcher = ReactCurrentDispatcher.current;
|
|
441
|
-
ReactCurrentDispatcher.current = null;
|
|
442
|
-
disableLogs();
|
|
443
|
-
}
|
|
444
|
-
try {
|
|
445
|
-
if (construct) {
|
|
446
|
-
var Fake = function() {
|
|
447
|
-
throw Error();
|
|
448
|
-
};
|
|
449
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
450
|
-
set: function() {
|
|
451
|
-
throw Error();
|
|
452
|
-
}
|
|
453
|
-
});
|
|
454
|
-
if (typeof Reflect === "object" && Reflect.construct) {
|
|
455
|
-
try {
|
|
456
|
-
Reflect.construct(Fake, []);
|
|
457
|
-
} catch (x2) {
|
|
458
|
-
control = x2;
|
|
459
|
-
}
|
|
460
|
-
Reflect.construct(fn2, [], Fake);
|
|
461
|
-
} else {
|
|
462
|
-
try {
|
|
463
|
-
Fake.call();
|
|
464
|
-
} catch (x2) {
|
|
465
|
-
control = x2;
|
|
466
|
-
}
|
|
467
|
-
fn2.call(Fake.prototype);
|
|
468
|
-
}
|
|
469
|
-
} else {
|
|
470
|
-
try {
|
|
471
|
-
throw Error();
|
|
472
|
-
} catch (x2) {
|
|
473
|
-
control = x2;
|
|
474
|
-
}
|
|
475
|
-
fn2();
|
|
476
|
-
}
|
|
477
|
-
} catch (sample) {
|
|
478
|
-
if (sample && control && typeof sample.stack === "string") {
|
|
479
|
-
var sampleLines = sample.stack.split("\n");
|
|
480
|
-
var controlLines = control.stack.split("\n");
|
|
481
|
-
var s4 = sampleLines.length - 1;
|
|
482
|
-
var c3 = controlLines.length - 1;
|
|
483
|
-
while (s4 >= 1 && c3 >= 0 && sampleLines[s4] !== controlLines[c3]) {
|
|
484
|
-
c3--;
|
|
485
|
-
}
|
|
486
|
-
for (; s4 >= 1 && c3 >= 0; s4--, c3--) {
|
|
487
|
-
if (sampleLines[s4] !== controlLines[c3]) {
|
|
488
|
-
if (s4 !== 1 || c3 !== 1) {
|
|
489
|
-
do {
|
|
490
|
-
s4--;
|
|
491
|
-
c3--;
|
|
492
|
-
if (c3 < 0 || sampleLines[s4] !== controlLines[c3]) {
|
|
493
|
-
var _frame = "\n" + sampleLines[s4].replace(" at new ", " at ");
|
|
494
|
-
{
|
|
495
|
-
if (typeof fn2 === "function") {
|
|
496
|
-
componentFrameCache.set(fn2, _frame);
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
return _frame;
|
|
500
|
-
}
|
|
501
|
-
} while (s4 >= 1 && c3 >= 0);
|
|
502
|
-
}
|
|
503
|
-
break;
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
} finally {
|
|
508
|
-
reentry = false;
|
|
509
|
-
{
|
|
510
|
-
ReactCurrentDispatcher.current = previousDispatcher;
|
|
511
|
-
reenableLogs();
|
|
512
|
-
}
|
|
513
|
-
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
514
|
-
}
|
|
515
|
-
var name = fn2 ? fn2.displayName || fn2.name : "";
|
|
516
|
-
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
517
|
-
{
|
|
518
|
-
if (typeof fn2 === "function") {
|
|
519
|
-
componentFrameCache.set(fn2, syntheticFrame);
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
return syntheticFrame;
|
|
523
|
-
}
|
|
524
|
-
function describeFunctionComponentFrame(fn2, source, ownerFn) {
|
|
525
|
-
{
|
|
526
|
-
return describeNativeComponentFrame(fn2, false);
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
function shouldConstruct(Component2) {
|
|
530
|
-
var prototype = Component2.prototype;
|
|
531
|
-
return !!(prototype && prototype.isReactComponent);
|
|
532
|
-
}
|
|
533
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
534
|
-
if (type == null) {
|
|
535
|
-
return "";
|
|
536
|
-
}
|
|
537
|
-
if (typeof type === "function") {
|
|
538
|
-
{
|
|
539
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
if (typeof type === "string") {
|
|
543
|
-
return describeBuiltInComponentFrame(type);
|
|
544
|
-
}
|
|
545
|
-
switch (type) {
|
|
546
|
-
case REACT_SUSPENSE_TYPE:
|
|
547
|
-
return describeBuiltInComponentFrame("Suspense");
|
|
548
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
549
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
|
550
|
-
}
|
|
551
|
-
if (typeof type === "object") {
|
|
552
|
-
switch (type.$$typeof) {
|
|
553
|
-
case REACT_FORWARD_REF_TYPE:
|
|
554
|
-
return describeFunctionComponentFrame(type.render);
|
|
555
|
-
case REACT_MEMO_TYPE:
|
|
556
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
557
|
-
case REACT_BLOCK_TYPE:
|
|
558
|
-
return describeFunctionComponentFrame(type._render);
|
|
559
|
-
case REACT_LAZY_TYPE: {
|
|
560
|
-
var lazyComponent = type;
|
|
561
|
-
var payload = lazyComponent._payload;
|
|
562
|
-
var init = lazyComponent._init;
|
|
563
|
-
try {
|
|
564
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
565
|
-
} catch (x2) {
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
return "";
|
|
571
|
-
}
|
|
572
|
-
var loggedTypeFailures = {};
|
|
573
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
574
|
-
function setCurrentlyValidatingElement(element) {
|
|
575
|
-
{
|
|
576
|
-
if (element) {
|
|
577
|
-
var owner = element._owner;
|
|
578
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
579
|
-
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
|
580
|
-
} else {
|
|
581
|
-
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
586
|
-
{
|
|
587
|
-
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
588
|
-
for (var typeSpecName in typeSpecs) {
|
|
589
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
590
|
-
var error$1 = void 0;
|
|
591
|
-
try {
|
|
592
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
593
|
-
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
594
|
-
err.name = "Invariant Violation";
|
|
595
|
-
throw err;
|
|
596
|
-
}
|
|
597
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
598
|
-
} catch (ex) {
|
|
599
|
-
error$1 = ex;
|
|
600
|
-
}
|
|
601
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
602
|
-
setCurrentlyValidatingElement(element);
|
|
603
|
-
error2("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
|
|
604
|
-
setCurrentlyValidatingElement(null);
|
|
605
|
-
}
|
|
606
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
607
|
-
loggedTypeFailures[error$1.message] = true;
|
|
608
|
-
setCurrentlyValidatingElement(element);
|
|
609
|
-
error2("Failed %s type: %s", location, error$1.message);
|
|
610
|
-
setCurrentlyValidatingElement(null);
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
617
|
-
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
618
|
-
var RESERVED_PROPS = {
|
|
619
|
-
key: true,
|
|
620
|
-
ref: true,
|
|
621
|
-
__self: true,
|
|
622
|
-
__source: true
|
|
623
|
-
};
|
|
624
|
-
var specialPropKeyWarningShown;
|
|
625
|
-
var specialPropRefWarningShown;
|
|
626
|
-
function hasValidRef(config2) {
|
|
627
|
-
{
|
|
628
|
-
if (hasOwnProperty2.call(config2, "ref")) {
|
|
629
|
-
var getter = Object.getOwnPropertyDescriptor(config2, "ref").get;
|
|
630
|
-
if (getter && getter.isReactWarning) {
|
|
631
|
-
return false;
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
return config2.ref !== void 0;
|
|
636
|
-
}
|
|
637
|
-
function hasValidKey(config2) {
|
|
638
|
-
{
|
|
639
|
-
if (hasOwnProperty2.call(config2, "key")) {
|
|
640
|
-
var getter = Object.getOwnPropertyDescriptor(config2, "key").get;
|
|
641
|
-
if (getter && getter.isReactWarning) {
|
|
642
|
-
return false;
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
return config2.key !== void 0;
|
|
647
|
-
}
|
|
648
|
-
function warnIfStringRefCannotBeAutoConverted(config2, self2) {
|
|
649
|
-
{
|
|
650
|
-
if (typeof config2.ref === "string" && ReactCurrentOwner.current && self2) ;
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
654
|
-
{
|
|
655
|
-
var warnAboutAccessingKey = function() {
|
|
656
|
-
if (!specialPropKeyWarningShown) {
|
|
657
|
-
specialPropKeyWarningShown = true;
|
|
658
|
-
error2("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
|
659
|
-
}
|
|
660
|
-
};
|
|
661
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
662
|
-
Object.defineProperty(props, "key", {
|
|
663
|
-
get: warnAboutAccessingKey,
|
|
664
|
-
configurable: true
|
|
665
|
-
});
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
function defineRefPropWarningGetter(props, displayName) {
|
|
669
|
-
{
|
|
670
|
-
var warnAboutAccessingRef = function() {
|
|
671
|
-
if (!specialPropRefWarningShown) {
|
|
672
|
-
specialPropRefWarningShown = true;
|
|
673
|
-
error2("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
|
674
|
-
}
|
|
675
|
-
};
|
|
676
|
-
warnAboutAccessingRef.isReactWarning = true;
|
|
677
|
-
Object.defineProperty(props, "ref", {
|
|
678
|
-
get: warnAboutAccessingRef,
|
|
679
|
-
configurable: true
|
|
680
|
-
});
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
var ReactElement = function(type, key, ref, self2, source, owner, props) {
|
|
684
|
-
var element = {
|
|
685
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
686
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
687
|
-
// Built-in properties that belong on the element
|
|
688
|
-
type,
|
|
689
|
-
key,
|
|
690
|
-
ref,
|
|
691
|
-
props,
|
|
692
|
-
// Record the component responsible for creating this element.
|
|
693
|
-
_owner: owner
|
|
694
|
-
};
|
|
695
|
-
{
|
|
696
|
-
element._store = {};
|
|
697
|
-
Object.defineProperty(element._store, "validated", {
|
|
698
|
-
configurable: false,
|
|
699
|
-
enumerable: false,
|
|
700
|
-
writable: true,
|
|
701
|
-
value: false
|
|
702
|
-
});
|
|
703
|
-
Object.defineProperty(element, "_self", {
|
|
704
|
-
configurable: false,
|
|
705
|
-
enumerable: false,
|
|
706
|
-
writable: false,
|
|
707
|
-
value: self2
|
|
708
|
-
});
|
|
709
|
-
Object.defineProperty(element, "_source", {
|
|
710
|
-
configurable: false,
|
|
711
|
-
enumerable: false,
|
|
712
|
-
writable: false,
|
|
713
|
-
value: source
|
|
714
|
-
});
|
|
715
|
-
if (Object.freeze) {
|
|
716
|
-
Object.freeze(element.props);
|
|
717
|
-
Object.freeze(element);
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
|
-
return element;
|
|
721
|
-
};
|
|
722
|
-
function jsxDEV(type, config2, maybeKey, source, self2) {
|
|
723
|
-
{
|
|
724
|
-
var propName;
|
|
725
|
-
var props = {};
|
|
726
|
-
var key = null;
|
|
727
|
-
var ref = null;
|
|
728
|
-
if (maybeKey !== void 0) {
|
|
729
|
-
key = "" + maybeKey;
|
|
730
|
-
}
|
|
731
|
-
if (hasValidKey(config2)) {
|
|
732
|
-
key = "" + config2.key;
|
|
733
|
-
}
|
|
734
|
-
if (hasValidRef(config2)) {
|
|
735
|
-
ref = config2.ref;
|
|
736
|
-
warnIfStringRefCannotBeAutoConverted(config2, self2);
|
|
737
|
-
}
|
|
738
|
-
for (propName in config2) {
|
|
739
|
-
if (hasOwnProperty2.call(config2, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
740
|
-
props[propName] = config2[propName];
|
|
741
|
-
}
|
|
742
|
-
}
|
|
743
|
-
if (type && type.defaultProps) {
|
|
744
|
-
var defaultProps2 = type.defaultProps;
|
|
745
|
-
for (propName in defaultProps2) {
|
|
746
|
-
if (props[propName] === void 0) {
|
|
747
|
-
props[propName] = defaultProps2[propName];
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
}
|
|
751
|
-
if (key || ref) {
|
|
752
|
-
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
753
|
-
if (key) {
|
|
754
|
-
defineKeyPropWarningGetter(props, displayName);
|
|
755
|
-
}
|
|
756
|
-
if (ref) {
|
|
757
|
-
defineRefPropWarningGetter(props, displayName);
|
|
758
|
-
}
|
|
759
|
-
}
|
|
760
|
-
return ReactElement(type, key, ref, self2, source, ReactCurrentOwner.current, props);
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
|
764
|
-
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
765
|
-
function setCurrentlyValidatingElement$1(element) {
|
|
766
|
-
{
|
|
767
|
-
if (element) {
|
|
768
|
-
var owner = element._owner;
|
|
769
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
770
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
771
|
-
} else {
|
|
772
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
}
|
|
776
|
-
var propTypesMisspellWarningShown;
|
|
777
|
-
{
|
|
778
|
-
propTypesMisspellWarningShown = false;
|
|
779
|
-
}
|
|
780
|
-
function isValidElement2(object) {
|
|
781
|
-
{
|
|
782
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
function getDeclarationErrorAddendum() {
|
|
786
|
-
{
|
|
787
|
-
if (ReactCurrentOwner$1.current) {
|
|
788
|
-
var name = getComponentName(ReactCurrentOwner$1.current.type);
|
|
789
|
-
if (name) {
|
|
790
|
-
return "\n\nCheck the render method of `" + name + "`.";
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
return "";
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
function getSourceInfoErrorAddendum(source) {
|
|
797
|
-
{
|
|
798
|
-
return "";
|
|
799
|
-
}
|
|
800
|
-
}
|
|
801
|
-
var ownerHasKeyUseWarning = {};
|
|
802
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
803
|
-
{
|
|
804
|
-
var info = getDeclarationErrorAddendum();
|
|
805
|
-
if (!info) {
|
|
806
|
-
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
807
|
-
if (parentName) {
|
|
808
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
809
|
-
}
|
|
810
|
-
}
|
|
811
|
-
return info;
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
function validateExplicitKey(element, parentType) {
|
|
815
|
-
{
|
|
816
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
817
|
-
return;
|
|
818
|
-
}
|
|
819
|
-
element._store.validated = true;
|
|
820
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
821
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
822
|
-
return;
|
|
823
|
-
}
|
|
824
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
825
|
-
var childOwner = "";
|
|
826
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
|
827
|
-
childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
|
|
828
|
-
}
|
|
829
|
-
setCurrentlyValidatingElement$1(element);
|
|
830
|
-
error2('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
831
|
-
setCurrentlyValidatingElement$1(null);
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
function validateChildKeys(node2, parentType) {
|
|
835
|
-
{
|
|
836
|
-
if (typeof node2 !== "object") {
|
|
837
|
-
return;
|
|
838
|
-
}
|
|
839
|
-
if (Array.isArray(node2)) {
|
|
840
|
-
for (var i3 = 0; i3 < node2.length; i3++) {
|
|
841
|
-
var child = node2[i3];
|
|
842
|
-
if (isValidElement2(child)) {
|
|
843
|
-
validateExplicitKey(child, parentType);
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
} else if (isValidElement2(node2)) {
|
|
847
|
-
if (node2._store) {
|
|
848
|
-
node2._store.validated = true;
|
|
849
|
-
}
|
|
850
|
-
} else if (node2) {
|
|
851
|
-
var iteratorFn = getIteratorFn(node2);
|
|
852
|
-
if (typeof iteratorFn === "function") {
|
|
853
|
-
if (iteratorFn !== node2.entries) {
|
|
854
|
-
var iterator = iteratorFn.call(node2);
|
|
855
|
-
var step;
|
|
856
|
-
while (!(step = iterator.next()).done) {
|
|
857
|
-
if (isValidElement2(step.value)) {
|
|
858
|
-
validateExplicitKey(step.value, parentType);
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
function validatePropTypes(element) {
|
|
867
|
-
{
|
|
868
|
-
var type = element.type;
|
|
869
|
-
if (type === null || type === void 0 || typeof type === "string") {
|
|
870
|
-
return;
|
|
871
|
-
}
|
|
872
|
-
var propTypes2;
|
|
873
|
-
if (typeof type === "function") {
|
|
874
|
-
propTypes2 = type.propTypes;
|
|
875
|
-
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
876
|
-
// Inner props are checked in the reconciler.
|
|
877
|
-
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
878
|
-
propTypes2 = type.propTypes;
|
|
879
|
-
} else {
|
|
880
|
-
return;
|
|
881
|
-
}
|
|
882
|
-
if (propTypes2) {
|
|
883
|
-
var name = getComponentName(type);
|
|
884
|
-
checkPropTypes(propTypes2, element.props, "prop", name, element);
|
|
885
|
-
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
886
|
-
propTypesMisspellWarningShown = true;
|
|
887
|
-
var _name = getComponentName(type);
|
|
888
|
-
error2("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
889
|
-
}
|
|
890
|
-
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
891
|
-
error2("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
892
|
-
}
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
function validateFragmentProps(fragment) {
|
|
896
|
-
{
|
|
897
|
-
var keys = Object.keys(fragment.props);
|
|
898
|
-
for (var i3 = 0; i3 < keys.length; i3++) {
|
|
899
|
-
var key = keys[i3];
|
|
900
|
-
if (key !== "children" && key !== "key") {
|
|
901
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
902
|
-
error2("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
903
|
-
setCurrentlyValidatingElement$1(null);
|
|
904
|
-
break;
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
if (fragment.ref !== null) {
|
|
908
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
909
|
-
error2("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
910
|
-
setCurrentlyValidatingElement$1(null);
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
function jsxWithValidation(type, props, key, isStaticChildren, source, self2) {
|
|
915
|
-
{
|
|
916
|
-
var validType = isValidElementType(type);
|
|
917
|
-
if (!validType) {
|
|
918
|
-
var info = "";
|
|
919
|
-
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
920
|
-
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
921
|
-
}
|
|
922
|
-
var sourceInfo = getSourceInfoErrorAddendum();
|
|
923
|
-
if (sourceInfo) {
|
|
924
|
-
info += sourceInfo;
|
|
925
|
-
} else {
|
|
926
|
-
info += getDeclarationErrorAddendum();
|
|
927
|
-
}
|
|
928
|
-
var typeString;
|
|
929
|
-
if (type === null) {
|
|
930
|
-
typeString = "null";
|
|
931
|
-
} else if (Array.isArray(type)) {
|
|
932
|
-
typeString = "array";
|
|
933
|
-
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
934
|
-
typeString = "<" + (getComponentName(type.type) || "Unknown") + " />";
|
|
935
|
-
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
936
|
-
} else {
|
|
937
|
-
typeString = typeof type;
|
|
938
|
-
}
|
|
939
|
-
error2("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
|
940
|
-
}
|
|
941
|
-
var element = jsxDEV(type, props, key, source, self2);
|
|
942
|
-
if (element == null) {
|
|
943
|
-
return element;
|
|
944
|
-
}
|
|
945
|
-
if (validType) {
|
|
946
|
-
var children = props.children;
|
|
947
|
-
if (children !== void 0) {
|
|
948
|
-
if (isStaticChildren) {
|
|
949
|
-
if (Array.isArray(children)) {
|
|
950
|
-
for (var i3 = 0; i3 < children.length; i3++) {
|
|
951
|
-
validateChildKeys(children[i3], type);
|
|
952
|
-
}
|
|
953
|
-
if (Object.freeze) {
|
|
954
|
-
Object.freeze(children);
|
|
955
|
-
}
|
|
956
|
-
} else {
|
|
957
|
-
error2("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
958
|
-
}
|
|
959
|
-
} else {
|
|
960
|
-
validateChildKeys(children, type);
|
|
961
|
-
}
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
if (type === exports$1.Fragment) {
|
|
965
|
-
validateFragmentProps(element);
|
|
966
|
-
} else {
|
|
967
|
-
validatePropTypes(element);
|
|
968
|
-
}
|
|
969
|
-
return element;
|
|
970
|
-
}
|
|
971
|
-
}
|
|
972
|
-
function jsxWithValidationStatic(type, props, key) {
|
|
973
|
-
{
|
|
974
|
-
return jsxWithValidation(type, props, key, true);
|
|
975
|
-
}
|
|
976
|
-
}
|
|
977
|
-
function jsxWithValidationDynamic(type, props, key) {
|
|
978
|
-
{
|
|
979
|
-
return jsxWithValidation(type, props, key, false);
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
var jsx3 = jsxWithValidationDynamic;
|
|
983
|
-
var jsxs = jsxWithValidationStatic;
|
|
984
|
-
exports$1.jsx = jsx3;
|
|
985
|
-
exports$1.jsxs = jsxs;
|
|
986
|
-
})();
|
|
987
|
-
}
|
|
988
|
-
})(reactJsxRuntime_development);
|
|
989
|
-
return reactJsxRuntime_development;
|
|
990
|
-
}
|
|
991
|
-
var hasRequiredJsxRuntime;
|
|
992
|
-
function requireJsxRuntime() {
|
|
993
|
-
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
994
|
-
hasRequiredJsxRuntime = 1;
|
|
995
|
-
if (process.env.NODE_ENV === "production") {
|
|
996
|
-
jsxRuntime.exports = requireReactJsxRuntime_production_min();
|
|
997
|
-
} else {
|
|
998
|
-
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
999
|
-
}
|
|
1000
|
-
return jsxRuntime.exports;
|
|
1001
|
-
}
|
|
1002
|
-
var jsxRuntimeExports = requireJsxRuntime();
|
|
1003
14
|
const ComponentVariantContext = createContext$1(void 0);
|
|
1004
15
|
function ComponentVariantContextProvider({ variant: variant3, children }) {
|
|
1005
|
-
return /* @__PURE__ */
|
|
16
|
+
return /* @__PURE__ */ jsx$1(ComponentVariantContext.Provider, { value: { variant: variant3 }, children });
|
|
1006
17
|
}
|
|
1007
18
|
function useComponentVariant(selectedVariant) {
|
|
1008
19
|
const context = useContext(ComponentVariantContext);
|
|
@@ -7437,6 +6448,109 @@ var AnimatePresence = function(_a) {
|
|
|
7437
6448
|
return cloneElement(child);
|
|
7438
6449
|
}));
|
|
7439
6450
|
};
|
|
6451
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
6452
|
+
function getDefaultExportFromCjs(x2) {
|
|
6453
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
6454
|
+
}
|
|
6455
|
+
function getAugmentedNamespace(n2) {
|
|
6456
|
+
if (Object.prototype.hasOwnProperty.call(n2, "__esModule")) return n2;
|
|
6457
|
+
var f2 = n2.default;
|
|
6458
|
+
if (typeof f2 == "function") {
|
|
6459
|
+
var a4 = function a5() {
|
|
6460
|
+
if (this instanceof a5) {
|
|
6461
|
+
return Reflect.construct(f2, arguments, this.constructor);
|
|
6462
|
+
}
|
|
6463
|
+
return f2.apply(this, arguments);
|
|
6464
|
+
};
|
|
6465
|
+
a4.prototype = f2.prototype;
|
|
6466
|
+
} else a4 = {};
|
|
6467
|
+
Object.defineProperty(a4, "__esModule", { value: true });
|
|
6468
|
+
Object.keys(n2).forEach(function(k2) {
|
|
6469
|
+
var d4 = Object.getOwnPropertyDescriptor(n2, k2);
|
|
6470
|
+
Object.defineProperty(a4, k2, d4.get ? d4 : {
|
|
6471
|
+
enumerable: true,
|
|
6472
|
+
get: function() {
|
|
6473
|
+
return n2[k2];
|
|
6474
|
+
}
|
|
6475
|
+
});
|
|
6476
|
+
});
|
|
6477
|
+
return a4;
|
|
6478
|
+
}
|
|
6479
|
+
/*
|
|
6480
|
+
object-assign
|
|
6481
|
+
(c) Sindre Sorhus
|
|
6482
|
+
@license MIT
|
|
6483
|
+
*/
|
|
6484
|
+
var objectAssign;
|
|
6485
|
+
var hasRequiredObjectAssign;
|
|
6486
|
+
function requireObjectAssign() {
|
|
6487
|
+
if (hasRequiredObjectAssign) return objectAssign;
|
|
6488
|
+
hasRequiredObjectAssign = 1;
|
|
6489
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
6490
|
+
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
6491
|
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
6492
|
+
function toObject(val) {
|
|
6493
|
+
if (val === null || val === void 0) {
|
|
6494
|
+
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
6495
|
+
}
|
|
6496
|
+
return Object(val);
|
|
6497
|
+
}
|
|
6498
|
+
function shouldUseNative() {
|
|
6499
|
+
try {
|
|
6500
|
+
if (!Object.assign) {
|
|
6501
|
+
return false;
|
|
6502
|
+
}
|
|
6503
|
+
var test1 = new String("abc");
|
|
6504
|
+
test1[5] = "de";
|
|
6505
|
+
if (Object.getOwnPropertyNames(test1)[0] === "5") {
|
|
6506
|
+
return false;
|
|
6507
|
+
}
|
|
6508
|
+
var test2 = {};
|
|
6509
|
+
for (var i3 = 0; i3 < 10; i3++) {
|
|
6510
|
+
test2["_" + String.fromCharCode(i3)] = i3;
|
|
6511
|
+
}
|
|
6512
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function(n2) {
|
|
6513
|
+
return test2[n2];
|
|
6514
|
+
});
|
|
6515
|
+
if (order2.join("") !== "0123456789") {
|
|
6516
|
+
return false;
|
|
6517
|
+
}
|
|
6518
|
+
var test3 = {};
|
|
6519
|
+
"abcdefghijklmnopqrst".split("").forEach(function(letter) {
|
|
6520
|
+
test3[letter] = letter;
|
|
6521
|
+
});
|
|
6522
|
+
if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
|
|
6523
|
+
return false;
|
|
6524
|
+
}
|
|
6525
|
+
return true;
|
|
6526
|
+
} catch (err) {
|
|
6527
|
+
return false;
|
|
6528
|
+
}
|
|
6529
|
+
}
|
|
6530
|
+
objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
|
|
6531
|
+
var from2;
|
|
6532
|
+
var to = toObject(target);
|
|
6533
|
+
var symbols;
|
|
6534
|
+
for (var s4 = 1; s4 < arguments.length; s4++) {
|
|
6535
|
+
from2 = Object(arguments[s4]);
|
|
6536
|
+
for (var key in from2) {
|
|
6537
|
+
if (hasOwnProperty2.call(from2, key)) {
|
|
6538
|
+
to[key] = from2[key];
|
|
6539
|
+
}
|
|
6540
|
+
}
|
|
6541
|
+
if (getOwnPropertySymbols) {
|
|
6542
|
+
symbols = getOwnPropertySymbols(from2);
|
|
6543
|
+
for (var i3 = 0; i3 < symbols.length; i3++) {
|
|
6544
|
+
if (propIsEnumerable.call(from2, symbols[i3])) {
|
|
6545
|
+
to[symbols[i3]] = from2[symbols[i3]];
|
|
6546
|
+
}
|
|
6547
|
+
}
|
|
6548
|
+
}
|
|
6549
|
+
}
|
|
6550
|
+
return to;
|
|
6551
|
+
};
|
|
6552
|
+
return objectAssign;
|
|
6553
|
+
}
|
|
7440
6554
|
var objectAssignExports = requireObjectAssign();
|
|
7441
6555
|
const assign$2 = /* @__PURE__ */ getDefaultExportFromCjs(objectAssignExports);
|
|
7442
6556
|
var merge$1 = function merge(a4, b3) {
|
|
@@ -8397,7 +7511,7 @@ const AnimatedBox = styled(motion.div)(addStyledProps);
|
|
|
8397
7511
|
const LoadingIcon = React__default.forwardRef(({ size: size2, ...props }, ref) => {
|
|
8398
7512
|
const theme = useTheme();
|
|
8399
7513
|
size2 || (size2 = theme.sizes.x3);
|
|
8400
|
-
return /* @__PURE__ */
|
|
7514
|
+
return /* @__PURE__ */ jsx$1(
|
|
8401
7515
|
"svg",
|
|
8402
7516
|
{
|
|
8403
7517
|
ref,
|
|
@@ -8408,9 +7522,9 @@ const LoadingIcon = React__default.forwardRef(({ size: size2, ...props }, ref) =
|
|
|
8408
7522
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8409
7523
|
preserveAspectRatio: "xMidYMid",
|
|
8410
7524
|
...props,
|
|
8411
|
-
children: /* @__PURE__ */
|
|
8412
|
-
/* @__PURE__ */
|
|
8413
|
-
/* @__PURE__ */
|
|
7525
|
+
children: /* @__PURE__ */ jsxs("g", { children: [
|
|
7526
|
+
/* @__PURE__ */ jsxs("circle", { cx: "3.5", cy: "12", fill: "#C0C8D1", "transform-origin": "3.5 3.5", children: [
|
|
7527
|
+
/* @__PURE__ */ jsx$1(
|
|
8414
7528
|
"animate",
|
|
8415
7529
|
{
|
|
8416
7530
|
attributeName: "r",
|
|
@@ -8422,7 +7536,7 @@ const LoadingIcon = React__default.forwardRef(({ size: size2, ...props }, ref) =
|
|
|
8422
7536
|
repeatCount: "indefinite"
|
|
8423
7537
|
}
|
|
8424
7538
|
),
|
|
8425
|
-
/* @__PURE__ */
|
|
7539
|
+
/* @__PURE__ */ jsx$1(
|
|
8426
7540
|
"animate",
|
|
8427
7541
|
{
|
|
8428
7542
|
id: "first",
|
|
@@ -8436,8 +7550,8 @@ const LoadingIcon = React__default.forwardRef(({ size: size2, ...props }, ref) =
|
|
|
8436
7550
|
}
|
|
8437
7551
|
)
|
|
8438
7552
|
] }),
|
|
8439
|
-
/* @__PURE__ */
|
|
8440
|
-
/* @__PURE__ */
|
|
7553
|
+
/* @__PURE__ */ jsxs("circle", { cx: "12", cy: "12", r: "3", fill: "#C0C8D1", "transform-origin": "12 3.5", children: [
|
|
7554
|
+
/* @__PURE__ */ jsx$1(
|
|
8441
7555
|
"animate",
|
|
8442
7556
|
{
|
|
8443
7557
|
attributeName: "r",
|
|
@@ -8450,7 +7564,7 @@ const LoadingIcon = React__default.forwardRef(({ size: size2, ...props }, ref) =
|
|
|
8450
7564
|
repeatCount: "indefinite"
|
|
8451
7565
|
}
|
|
8452
7566
|
),
|
|
8453
|
-
/* @__PURE__ */
|
|
7567
|
+
/* @__PURE__ */ jsx$1(
|
|
8454
7568
|
"animate",
|
|
8455
7569
|
{
|
|
8456
7570
|
id: "second",
|
|
@@ -8465,8 +7579,8 @@ const LoadingIcon = React__default.forwardRef(({ size: size2, ...props }, ref) =
|
|
|
8465
7579
|
}
|
|
8466
7580
|
)
|
|
8467
7581
|
] }),
|
|
8468
|
-
/* @__PURE__ */
|
|
8469
|
-
/* @__PURE__ */
|
|
7582
|
+
/* @__PURE__ */ jsxs("circle", { cx: "20.5", cy: "12", r: "3", fill: "#C0C8D1", "transform-origin": "20.5 3.5", children: [
|
|
7583
|
+
/* @__PURE__ */ jsx$1(
|
|
8470
7584
|
"animate",
|
|
8471
7585
|
{
|
|
8472
7586
|
attributeName: "r",
|
|
@@ -8479,7 +7593,7 @@ const LoadingIcon = React__default.forwardRef(({ size: size2, ...props }, ref) =
|
|
|
8479
7593
|
repeatCount: "indefinite"
|
|
8480
7594
|
}
|
|
8481
7595
|
),
|
|
8482
|
-
/* @__PURE__ */
|
|
7596
|
+
/* @__PURE__ */ jsx$1(
|
|
8483
7597
|
"animate",
|
|
8484
7598
|
{
|
|
8485
7599
|
id: "third",
|
|
@@ -8498,7 +7612,7 @@ const LoadingIcon = React__default.forwardRef(({ size: size2, ...props }, ref) =
|
|
|
8498
7612
|
}
|
|
8499
7613
|
);
|
|
8500
7614
|
});
|
|
8501
|
-
const getPathElements = (icon) => /* @__PURE__ */
|
|
7615
|
+
const getPathElements = (icon) => /* @__PURE__ */ jsx$1(Fragment, { children: icon.path.map((path, index2) => /* @__PURE__ */ jsx$1("path", { d: path }, index2)) });
|
|
8502
7616
|
const ICON_SIZE_RATIO = 1.25;
|
|
8503
7617
|
const Svg$1 = React__default.forwardRef(
|
|
8504
7618
|
({
|
|
@@ -8513,7 +7627,7 @@ const Svg$1 = React__default.forwardRef(
|
|
|
8513
7627
|
const theme = useTheme();
|
|
8514
7628
|
size2 || (size2 = theme.sizes.x3);
|
|
8515
7629
|
if (icon === "loading") {
|
|
8516
|
-
return /* @__PURE__ */
|
|
7630
|
+
return /* @__PURE__ */ jsx$1(
|
|
8517
7631
|
LoadingIcon,
|
|
8518
7632
|
{
|
|
8519
7633
|
ref,
|
|
@@ -8527,7 +7641,7 @@ const Svg$1 = React__default.forwardRef(
|
|
|
8527
7641
|
}
|
|
8528
7642
|
);
|
|
8529
7643
|
}
|
|
8530
|
-
return icons[icon] && /* @__PURE__ */
|
|
7644
|
+
return icons[icon] && /* @__PURE__ */ jsx$1(
|
|
8531
7645
|
"svg",
|
|
8532
7646
|
{
|
|
8533
7647
|
ref,
|
|
@@ -8561,7 +7675,7 @@ const IconContainer = styled.span(space, {
|
|
|
8561
7675
|
width: `${ICON_SIZE_RATIO}em`
|
|
8562
7676
|
});
|
|
8563
7677
|
const InlineIcon = React__default.forwardRef((props, ref) => {
|
|
8564
|
-
return /* @__PURE__ */
|
|
7678
|
+
return /* @__PURE__ */ jsx$1(IconContainer, { ref, ...props, children: /* @__PURE__ */ jsx$1(CenteredIcon, { size: `${ICON_SIZE_RATIO}em`, ...props }) });
|
|
8565
7679
|
});
|
|
8566
7680
|
const InputIcon = styled(Icon)(
|
|
8567
7681
|
({ theme }) => ({
|
|
@@ -9119,11 +8233,11 @@ class DetectOutsideClick extends React__default.Component {
|
|
|
9119
8233
|
}
|
|
9120
8234
|
render() {
|
|
9121
8235
|
const { children } = this.props;
|
|
9122
|
-
return /* @__PURE__ */
|
|
8236
|
+
return /* @__PURE__ */ jsx$1(Fragment, { children });
|
|
9123
8237
|
}
|
|
9124
8238
|
}
|
|
9125
8239
|
const getThemeColor = (color2, theme) => theme.colors[color2] ? theme.colors[color2] : color2;
|
|
9126
|
-
const positionArrow = (placement
|
|
8240
|
+
const positionArrow = (placement) => {
|
|
9127
8241
|
const location = String(placement).split("-")[0];
|
|
9128
8242
|
switch (location) {
|
|
9129
8243
|
case "top":
|
|
@@ -9256,7 +8370,7 @@ const PopperArrow = styled.div(
|
|
|
9256
8370
|
({ placement = "bottom", borderColor: borderColor2 = "grey", backgroundColor = "white", theme }) => ({
|
|
9257
8371
|
...drawArrow(placement, borderColor2, backgroundColor, theme)
|
|
9258
8372
|
}),
|
|
9259
|
-
({ placement = "bottom"
|
|
8373
|
+
({ placement = "bottom" }) => ({
|
|
9260
8374
|
...positionArrow(placement)
|
|
9261
8375
|
})
|
|
9262
8376
|
);
|
|
@@ -9275,9 +8389,9 @@ const ScrollIndicatorWrapper = styled.div(
|
|
|
9275
8389
|
position$1
|
|
9276
8390
|
);
|
|
9277
8391
|
const ScrollIndicatorTop = () => {
|
|
9278
|
-
return /* @__PURE__ */
|
|
8392
|
+
return /* @__PURE__ */ jsx$1(ScrollIndicatorWrapper, { top: 0, children: /* @__PURE__ */ jsx$1(Icon, { margin: "0 auto", display: "block", color: "darkGrey", icon: "upArrow" }) });
|
|
9279
8393
|
};
|
|
9280
|
-
const ScrollIndicatorBottom = () => /* @__PURE__ */
|
|
8394
|
+
const ScrollIndicatorBottom = () => /* @__PURE__ */ jsx$1(ScrollIndicatorWrapper, { bottom: 1, children: /* @__PURE__ */ jsx$1(Icon, { display: "block", margin: "0 auto", color: "darkGrey", icon: "downArrow" }) });
|
|
9281
8395
|
class ScrollIndicators extends React__default.Component {
|
|
9282
8396
|
constructor() {
|
|
9283
8397
|
super();
|
|
@@ -9307,13 +8421,13 @@ class ScrollIndicators extends React__default.Component {
|
|
|
9307
8421
|
return this.state.scrollTop !== 0 && this.offsetHeight < this.scrollHeight;
|
|
9308
8422
|
}
|
|
9309
8423
|
render() {
|
|
9310
|
-
return /* @__PURE__ */
|
|
9311
|
-
this.contentHiddenAbove() && /* @__PURE__ */
|
|
8424
|
+
return /* @__PURE__ */ jsxs("div", { style: { position: "relative" }, children: [
|
|
8425
|
+
this.contentHiddenAbove() && /* @__PURE__ */ jsx$1(ScrollIndicatorTop, {}),
|
|
9312
8426
|
React__default.cloneElement(this.props.children, {
|
|
9313
8427
|
ref: this.menuRef,
|
|
9314
8428
|
onScroll: this.handleScroll
|
|
9315
8429
|
}),
|
|
9316
|
-
this.contentHiddenBelow() && /* @__PURE__ */
|
|
8430
|
+
this.contentHiddenBelow() && /* @__PURE__ */ jsx$1(ScrollIndicatorBottom, {})
|
|
9317
8431
|
] });
|
|
9318
8432
|
}
|
|
9319
8433
|
}
|
|
@@ -9407,7 +8521,7 @@ class MenuState extends MenuStateInt {
|
|
|
9407
8521
|
}
|
|
9408
8522
|
}
|
|
9409
8523
|
function withMenuState(MenuComponent) {
|
|
9410
|
-
return (props) => /* @__PURE__ */
|
|
8524
|
+
return (props) => /* @__PURE__ */ jsx$1(MenuState, { showDelay: props.showDelay, hideDelay: props.hideDelay, defaultOpen: props.defaultOpen, children: (menuComponentProps) => /* @__PURE__ */ jsx$1(MenuComponent, { menuState: menuComponentProps, ...props }) });
|
|
9411
8525
|
}
|
|
9412
8526
|
const convertPxToNumber = (px2) => {
|
|
9413
8527
|
return parseFloat(px2);
|
|
@@ -9528,7 +8642,7 @@ const Button$1 = React__default.forwardRef(
|
|
|
9528
8642
|
lineHeights: { smallTextCompressed }
|
|
9529
8643
|
} = useTheme();
|
|
9530
8644
|
const componentVariant = useComponentVariant(variant22);
|
|
9531
|
-
return /* @__PURE__ */
|
|
8645
|
+
return /* @__PURE__ */ jsxs(
|
|
9532
8646
|
WrapperButton$2,
|
|
9533
8647
|
{
|
|
9534
8648
|
as: asLink ? "a" : "button",
|
|
@@ -9538,9 +8652,9 @@ const Button$1 = React__default.forwardRef(
|
|
|
9538
8652
|
size: size2,
|
|
9539
8653
|
...props,
|
|
9540
8654
|
children: [
|
|
9541
|
-
icon && iconSide === "left" && /* @__PURE__ */
|
|
8655
|
+
icon && iconSide === "left" && /* @__PURE__ */ jsx$1(Icon, { size: `${smallTextCompressed}em`, mr: "half", icon }),
|
|
9542
8656
|
children,
|
|
9543
|
-
icon && iconSide === "right" && /* @__PURE__ */
|
|
8657
|
+
icon && iconSide === "right" && /* @__PURE__ */ jsx$1(Icon, { size: `${smallTextCompressed}em`, ml: "half", icon })
|
|
9544
8658
|
]
|
|
9545
8659
|
}
|
|
9546
8660
|
);
|
|
@@ -11852,7 +10966,7 @@ const IconicButton = React__default.forwardRef(
|
|
|
11852
10966
|
...props
|
|
11853
10967
|
}, forwardedRef) => {
|
|
11854
10968
|
const componentVariant = useComponentVariant(variant22);
|
|
11855
|
-
return /* @__PURE__ */
|
|
10969
|
+
return /* @__PURE__ */ jsxs(
|
|
11856
10970
|
WrapperButton$1,
|
|
11857
10971
|
{
|
|
11858
10972
|
ref: forwardedRef,
|
|
@@ -11862,9 +10976,9 @@ const IconicButton = React__default.forwardRef(
|
|
|
11862
10976
|
variant: componentVariant,
|
|
11863
10977
|
...props,
|
|
11864
10978
|
children: [
|
|
11865
|
-
/* @__PURE__ */
|
|
11866
|
-
/* @__PURE__ */
|
|
11867
|
-
/* @__PURE__ */
|
|
10979
|
+
/* @__PURE__ */ jsxs(Manager$2, { children: [
|
|
10980
|
+
/* @__PURE__ */ jsx$1(Reference$2, { children: ({ ref }) => /* @__PURE__ */ jsx$1(IconWrapper, { ref, size: iconSize, children: /* @__PURE__ */ jsx$1(Icon, { size: iconSize, icon, color: color2 }) }) }),
|
|
10981
|
+
/* @__PURE__ */ jsx$1(
|
|
11868
10982
|
Popper$4,
|
|
11869
10983
|
{
|
|
11870
10984
|
placement: "bottom",
|
|
@@ -11878,11 +10992,11 @@ const IconicButton = React__default.forwardRef(
|
|
|
11878
10992
|
}
|
|
11879
10993
|
}
|
|
11880
10994
|
],
|
|
11881
|
-
children: ({ ref, style }) => labelHidden || tooltip ? /* @__PURE__ */
|
|
10995
|
+
children: ({ ref, style }) => labelHidden || tooltip ? /* @__PURE__ */ jsx$1(HoverText, { ref, style, children: tooltip ? tooltip : children }) : null
|
|
11882
10996
|
}
|
|
11883
10997
|
)
|
|
11884
10998
|
] }),
|
|
11885
|
-
children && !labelHidden && (typeof children === "string" || typeof children === "number" ? /* @__PURE__ */
|
|
10999
|
+
children && !labelHidden && (typeof children === "string" || typeof children === "number" ? /* @__PURE__ */ jsx$1(Text, { fontSize: fontSize2, mr: "half", ml: "half", color: color2, children }) : children)
|
|
11886
11000
|
]
|
|
11887
11001
|
}
|
|
11888
11002
|
);
|
|
@@ -11931,7 +11045,7 @@ const WrapperButton = styled.button(({ disabled, theme }) => ({
|
|
|
11931
11045
|
const CloseButton$1 = React__default.forwardRef((props, ref) => {
|
|
11932
11046
|
const { t: t3 } = useTranslation();
|
|
11933
11047
|
const theme = useTheme();
|
|
11934
|
-
return /* @__PURE__ */
|
|
11048
|
+
return /* @__PURE__ */ jsx$1(WrapperButton, { "aria-label": t3("close"), ref, ...props, children: /* @__PURE__ */ jsx$1(Icon, { size: theme.space.x4, icon: "close", p: "half" }) });
|
|
11935
11049
|
});
|
|
11936
11050
|
const getIconColorByState = ({ toggled, disabled, theme }) => {
|
|
11937
11051
|
if (toggled) return theme.colors.darkBlue;
|
|
@@ -11961,11 +11075,11 @@ const StyledButton$2 = styled.button(
|
|
|
11961
11075
|
layout
|
|
11962
11076
|
);
|
|
11963
11077
|
const ControlIcon = React__default.forwardRef(
|
|
11964
|
-
({ icon, toggled, disabled, label, size: size2 = "x4", type = "button", ...props }, ref) => /* @__PURE__ */
|
|
11078
|
+
({ icon, toggled, disabled, label, size: size2 = "x4", type = "button", ...props }, ref) => /* @__PURE__ */ jsx$1(StyledButton$2, { "aria-label": label, ref, disabled, toggled, type, ...props, children: /* @__PURE__ */ jsx$1(Icon, { size: size2, icon }) })
|
|
11965
11079
|
);
|
|
11966
11080
|
const CloseButton = ({ onClick, "aria-label": ariaLabel }) => {
|
|
11967
11081
|
const { t: t3 } = useTranslation();
|
|
11968
|
-
return /* @__PURE__ */
|
|
11082
|
+
return /* @__PURE__ */ jsx$1(Flex, { ml: "x2", height: "x3", children: /* @__PURE__ */ jsx$1(ControlIcon, { size: "x3", icon: "close", onClick, "aria-label": ariaLabel || t3("close"), label: t3("close") }) });
|
|
11969
11083
|
};
|
|
11970
11084
|
const NotificationTypes = {
|
|
11971
11085
|
danger: "danger",
|
|
@@ -12015,7 +11129,7 @@ const Alert$1 = ({
|
|
|
12015
11129
|
}
|
|
12016
11130
|
};
|
|
12017
11131
|
if (!isVisible) return null;
|
|
12018
|
-
return /* @__PURE__ */
|
|
11132
|
+
return /* @__PURE__ */ jsxs(
|
|
12019
11133
|
Flex,
|
|
12020
11134
|
{
|
|
12021
11135
|
bg: alertColours[type].backgroundColor,
|
|
@@ -12028,13 +11142,13 @@ const Alert$1 = ({
|
|
|
12028
11142
|
alignItems: children ? "flex-start" : void 0,
|
|
12029
11143
|
...props,
|
|
12030
11144
|
children: [
|
|
12031
|
-
type === "danger" && /* @__PURE__ */
|
|
12032
|
-
type === "success" && /* @__PURE__ */
|
|
12033
|
-
/* @__PURE__ */
|
|
12034
|
-
title && /* @__PURE__ */
|
|
12035
|
-
/* @__PURE__ */
|
|
11145
|
+
type === "danger" && /* @__PURE__ */ jsx$1(Icon, { size: "x3", icon: "error", mr: "x1", color: alertColours[type].borderColor }),
|
|
11146
|
+
type === "success" && /* @__PURE__ */ jsx$1(Icon, { size: "x3", icon: "check", mr: "x1", color: alertColours[type].borderColor }),
|
|
11147
|
+
/* @__PURE__ */ jsxs(Flex, { flexDirection: "column", gap: componentVariant === "touch" ? "half" : "none", mr: "auto", children: [
|
|
11148
|
+
title && /* @__PURE__ */ jsx$1(Text, { fontWeight: "bold", children: title }),
|
|
11149
|
+
/* @__PURE__ */ jsx$1(Box, { children })
|
|
12036
11150
|
] }),
|
|
12037
|
-
isCloseable && /* @__PURE__ */
|
|
11151
|
+
isCloseable && /* @__PURE__ */ jsx$1(CloseButton, { onClick: hideAlert, "aria-label": closeAriaLabel })
|
|
12038
11152
|
]
|
|
12039
11153
|
}
|
|
12040
11154
|
);
|
|
@@ -12198,7 +11312,7 @@ const $5e63c961fc1ce211$var$SlotClone = /* @__PURE__ */ forwardRef((props, forwa
|
|
|
12198
11312
|
});
|
|
12199
11313
|
$5e63c961fc1ce211$var$SlotClone.displayName = "SlotClone";
|
|
12200
11314
|
const $5e63c961fc1ce211$export$d9f1ccf0bdb05d45 = ({ children }) => {
|
|
12201
|
-
return /* @__PURE__ */ createElement(Fragment, null, children);
|
|
11315
|
+
return /* @__PURE__ */ createElement(Fragment$1, null, children);
|
|
12202
11316
|
};
|
|
12203
11317
|
function $5e63c961fc1ce211$var$isSlottable(child) {
|
|
12204
11318
|
return /* @__PURE__ */ isValidElement(child) && child.type === $5e63c961fc1ce211$export$d9f1ccf0bdb05d45;
|
|
@@ -15357,11 +14471,11 @@ function MiniTooltip({
|
|
|
15357
14471
|
delayDuration = 700
|
|
15358
14472
|
}) {
|
|
15359
14473
|
if (hideTooltip) {
|
|
15360
|
-
return /* @__PURE__ */
|
|
14474
|
+
return /* @__PURE__ */ jsx$1(Fragment, { children });
|
|
15361
14475
|
}
|
|
15362
|
-
return /* @__PURE__ */
|
|
15363
|
-
/* @__PURE__ */
|
|
15364
|
-
/* @__PURE__ */
|
|
14476
|
+
return /* @__PURE__ */ jsx$1($a093c7e1ec25a057$export$2881499e37b75b9a, { delayDuration, children: /* @__PURE__ */ jsxs($a093c7e1ec25a057$export$be92b6f5f03c0fe9, { children: [
|
|
14477
|
+
/* @__PURE__ */ jsx$1($a093c7e1ec25a057$export$41fb9f06171c75f4, { asChild: true, children }),
|
|
14478
|
+
/* @__PURE__ */ jsx$1($a093c7e1ec25a057$export$602eac185826482c, { children: /* @__PURE__ */ jsx$1(TooltipContent$1, { sideOffset, children: content }) })
|
|
15365
14479
|
] }) });
|
|
15366
14480
|
}
|
|
15367
14481
|
const slideUpAndFade$1 = keyframes$3`
|
|
@@ -15458,7 +14572,7 @@ const LogoWrapper = styled.span(({ theme, $type }) => {
|
|
|
15458
14572
|
};
|
|
15459
14573
|
});
|
|
15460
14574
|
function NulogyLogo$2({ width: width2 = 8, height: height2 = 8, ...props }) {
|
|
15461
|
-
return /* @__PURE__ */
|
|
14575
|
+
return /* @__PURE__ */ jsx$1("svg", { width: width2, height: height2, viewBox: "0 0 8 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx$1(
|
|
15462
14576
|
"path",
|
|
15463
14577
|
{
|
|
15464
14578
|
d: "M6.75004 0.290783L8 0.872348V6.10892C8 7.23335 6.80591 7.43084 5.99989 7.56333C6.4609 7.43084 6.7526 7.28197 6.75004 6.10892V1.45441L5.50008 0.872348L6.75004 0.290783ZM1.49987 7.27255V4.07344C1.49987 3.7514 1.70755 3.38717 1.95959 3.26163L3.25007 2.61655V4.65104L4.50003 5.52785C4.75207 5.67671 5.25017 5.68019 5.25017 5.23657V4.36373L4.74951 4.07245V0L0.938216 1.63404C0.420065 1.85585 0 2.55502 0 3.2001V8L1.49987 7.27255Z",
|
|
@@ -15470,9 +14584,9 @@ function AppTag({ app, type = "active", hideTooltip = false }) {
|
|
|
15470
14584
|
const theme = useTheme();
|
|
15471
14585
|
const abbreviation = APP_ABBREVIATIONS[app];
|
|
15472
14586
|
const displayName = APP_DISPLAY_NAMES[app];
|
|
15473
|
-
return /* @__PURE__ */
|
|
15474
|
-
/* @__PURE__ */
|
|
15475
|
-
/* @__PURE__ */
|
|
14587
|
+
return /* @__PURE__ */ jsx$1(MiniTooltip, { content: displayName, hideTooltip, children: /* @__PURE__ */ jsxs(Wrapper$1, { $type: type, children: [
|
|
14588
|
+
/* @__PURE__ */ jsx$1(LogoWrapper, { $type: type, children: /* @__PURE__ */ jsx$1(NulogyLogo$2, { width: theme.space.x1, height: theme.space.x1 }) }),
|
|
14589
|
+
/* @__PURE__ */ jsx$1(
|
|
15476
14590
|
Text,
|
|
15477
14591
|
{
|
|
15478
14592
|
fontSize: "smaller",
|
|
@@ -18469,7 +17583,7 @@ var LiveRegion = function LiveRegion2(props) {
|
|
|
18469
17583
|
}
|
|
18470
17584
|
return guidanceMsg;
|
|
18471
17585
|
}, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
|
|
18472
|
-
var ScreenReaderText = jsx(Fragment, null, jsx("span", {
|
|
17586
|
+
var ScreenReaderText = jsx(Fragment$1, null, jsx("span", {
|
|
18473
17587
|
id: "aria-selection"
|
|
18474
17588
|
}, ariaSelected), jsx("span", {
|
|
18475
17589
|
id: "aria-focused"
|
|
@@ -18478,7 +17592,7 @@ var LiveRegion = function LiveRegion2(props) {
|
|
|
18478
17592
|
}, ariaResults), jsx("span", {
|
|
18479
17593
|
id: "aria-guidance"
|
|
18480
17594
|
}, ariaGuidance));
|
|
18481
|
-
return jsx(Fragment, null, jsx(A11yText$1, {
|
|
17595
|
+
return jsx(Fragment$1, null, jsx(A11yText$1, {
|
|
18482
17596
|
id: id2
|
|
18483
17597
|
}, isInitialFocus && ScreenReaderText), jsx(A11yText$1, {
|
|
18484
17598
|
"aria-live": ariaLive,
|
|
@@ -19032,7 +18146,7 @@ function ScrollManager(_ref3) {
|
|
|
19032
18146
|
setScrollCaptureTarget(element);
|
|
19033
18147
|
setScrollLockTarget(element);
|
|
19034
18148
|
};
|
|
19035
|
-
return jsx(Fragment, null, lockEnabled && jsx("div", {
|
|
18149
|
+
return jsx(Fragment$1, null, lockEnabled && jsx("div", {
|
|
19036
18150
|
onClick: blurSelectInput,
|
|
19037
18151
|
css: _ref2$1
|
|
19038
18152
|
}), children(targetRef));
|
|
@@ -21379,8 +20493,8 @@ const Fieldset = styled.fieldset(
|
|
|
21379
20493
|
},
|
|
21380
20494
|
space
|
|
21381
20495
|
);
|
|
21382
|
-
const BaseFormSection = ({ title, children, ...props }) => /* @__PURE__ */
|
|
21383
|
-
title != null && /* @__PURE__ */
|
|
20496
|
+
const BaseFormSection = ({ title, children, ...props }) => /* @__PURE__ */ jsxs("fieldset", { ...props, children: [
|
|
20497
|
+
title != null && /* @__PURE__ */ jsx$1(FormSectionTitle, { children: title }),
|
|
21384
20498
|
children
|
|
21385
20499
|
] });
|
|
21386
20500
|
const FormSectionTitle = styled(Heading3).attrs({
|
|
@@ -21423,8 +20537,8 @@ const FormStyles = ({ title, theme }) => ({
|
|
|
21423
20537
|
}
|
|
21424
20538
|
}
|
|
21425
20539
|
});
|
|
21426
|
-
const Form = styled(({ title, children, ...props }) => /* @__PURE__ */
|
|
21427
|
-
title && /* @__PURE__ */
|
|
20540
|
+
const Form = styled(({ title, children, ...props }) => /* @__PURE__ */ jsxs("form", { ...props, children: [
|
|
20541
|
+
title && /* @__PURE__ */ jsx$1(Heading2, { children: title }),
|
|
21428
20542
|
children
|
|
21429
20543
|
] }))(space, FormStyles);
|
|
21430
20544
|
var themeGet = function themeGet2(path, fallback) {
|
|
@@ -21439,15 +20553,15 @@ function Link$1({ children, forApp, openInNewTab, ...props }) {
|
|
|
21439
20553
|
const openInNewTabProps = openInNewTab ? { target: "_blank", rel: "noopener noreferrer" } : {};
|
|
21440
20554
|
const renderContent = () => {
|
|
21441
20555
|
if (forApp || openInNewTab) {
|
|
21442
|
-
return /* @__PURE__ */
|
|
21443
|
-
/* @__PURE__ */
|
|
21444
|
-
forApp && /* @__PURE__ */
|
|
21445
|
-
openInNewTab && /* @__PURE__ */
|
|
20556
|
+
return /* @__PURE__ */ jsxs(InlineFlex, { alignItems: "center", gap: "half", children: [
|
|
20557
|
+
/* @__PURE__ */ jsx$1(LinkWrapper, { underline: props.underline, children }),
|
|
20558
|
+
forApp && /* @__PURE__ */ jsx$1(AppTag, { app: forApp, type: "interactive" }),
|
|
20559
|
+
openInNewTab && /* @__PURE__ */ jsx$1(Icon, { icon: "openInNew", size: "x2", color: "midGrey" })
|
|
21446
20560
|
] });
|
|
21447
20561
|
}
|
|
21448
20562
|
return children;
|
|
21449
20563
|
};
|
|
21450
|
-
return /* @__PURE__ */
|
|
20564
|
+
return /* @__PURE__ */ jsx$1(Anchor, { ...openInNewTabProps, ...props, children: renderContent() });
|
|
21451
20565
|
}
|
|
21452
20566
|
const LinkWrapper = styled.span(({ underline = true }) => ({
|
|
21453
20567
|
textDecoration: underline ? "underline" : "none"
|
|
@@ -21484,7 +20598,7 @@ const HelpText$1 = styled(Text)(({ theme }) => ({
|
|
|
21484
20598
|
fontSize: theme.fontSizes.small
|
|
21485
20599
|
}
|
|
21486
20600
|
}));
|
|
21487
|
-
const RequirementText = (props) => /* @__PURE__ */
|
|
20601
|
+
const RequirementText = (props) => /* @__PURE__ */ jsx$1(Text, { inline: true, ml: "x1", fontSize: "smaller", color: "darkGrey", ...props });
|
|
21488
20602
|
function useHasHover() {
|
|
21489
20603
|
try {
|
|
21490
20604
|
return matchMedia("(hover: hover)").matches;
|
|
@@ -21502,13 +20616,13 @@ const TooltipProvider = $a093c7e1ec25a057$export$2881499e37b75b9a;
|
|
|
21502
20616
|
function Tooltip$1({ children, ...props }) {
|
|
21503
20617
|
const [open2, setOpen] = React.useState(props.defaultOpen ?? false);
|
|
21504
20618
|
const hasHover = useHasHover();
|
|
21505
|
-
return /* @__PURE__ */
|
|
20619
|
+
return /* @__PURE__ */ jsx$1(
|
|
21506
20620
|
$a093c7e1ec25a057$export$be92b6f5f03c0fe9,
|
|
21507
20621
|
{
|
|
21508
20622
|
delayDuration: !hasHover && props.supportMobileTap ? 0 : props.delayDuration,
|
|
21509
20623
|
onOpenChange: setOpen,
|
|
21510
20624
|
open: open2,
|
|
21511
|
-
children: /* @__PURE__ */
|
|
20625
|
+
children: /* @__PURE__ */ jsx$1(
|
|
21512
20626
|
TooltipTriggerContext.Provider,
|
|
21513
20627
|
{
|
|
21514
20628
|
value: {
|
|
@@ -21538,7 +20652,7 @@ const TooltipTrigger = React.forwardRef(({ children, ...props }, ref) => {
|
|
|
21538
20652
|
},
|
|
21539
20653
|
[setOpen, hasHover, supportMobileTap, onClickProp]
|
|
21540
20654
|
);
|
|
21541
|
-
return /* @__PURE__ */
|
|
20655
|
+
return /* @__PURE__ */ jsx$1($a093c7e1ec25a057$export$41fb9f06171c75f4, { ref, ...props, onClick, children });
|
|
21542
20656
|
});
|
|
21543
20657
|
TooltipTrigger.displayName = $a093c7e1ec25a057$export$41fb9f06171c75f4.displayName;
|
|
21544
20658
|
const slideUpAndFade = keyframes$3`
|
|
@@ -21617,9 +20731,9 @@ const StyledArrow = styled($a093c7e1ec25a057$export$21b07c8f274aebd5)(({ theme }
|
|
|
21617
20731
|
const TooltipContent = React.forwardRef(
|
|
21618
20732
|
({ sideOffset = 4, children, ...props }, ref) => {
|
|
21619
20733
|
const theme = useTheme();
|
|
21620
|
-
return /* @__PURE__ */
|
|
20734
|
+
return /* @__PURE__ */ jsxs(StyledContent, { ref, sideOffset, ...props, children: [
|
|
21621
20735
|
children,
|
|
21622
|
-
/* @__PURE__ */
|
|
20736
|
+
/* @__PURE__ */ jsx$1(StyledArrow, { width: theme.space.x1_5, height: theme.space.x0_75 })
|
|
21623
20737
|
] });
|
|
21624
20738
|
}
|
|
21625
20739
|
);
|
|
@@ -21639,9 +20753,9 @@ function Tooltip({
|
|
|
21639
20753
|
}) {
|
|
21640
20754
|
const delayDuration = typeof showDelay === "string" ? parseInt(showDelay, 10) : showDelay;
|
|
21641
20755
|
const { side, align } = getPlacementProps(placement);
|
|
21642
|
-
return /* @__PURE__ */
|
|
21643
|
-
/* @__PURE__ */
|
|
21644
|
-
/* @__PURE__ */
|
|
20756
|
+
return /* @__PURE__ */ jsx$1(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip$1, { defaultOpen, delayDuration, supportMobileTap: true, children: [
|
|
20757
|
+
/* @__PURE__ */ jsx$1(TooltipTrigger, { asChild: true, "data-testid": "nds-tooltip-trigger", children }),
|
|
20758
|
+
/* @__PURE__ */ jsx$1($a093c7e1ec25a057$export$602eac185826482c, { children: /* @__PURE__ */ jsx$1(TooltipContent, { side, align, className, maxWidth: maxWidth2, children: tooltip }) })
|
|
21645
20759
|
] }) });
|
|
21646
20760
|
}
|
|
21647
20761
|
const Label = styled.label(
|
|
@@ -21673,19 +20787,19 @@ function FieldLabel({
|
|
|
21673
20787
|
children,
|
|
21674
20788
|
...props
|
|
21675
20789
|
}) {
|
|
21676
|
-
return /* @__PURE__ */
|
|
21677
|
-
/* @__PURE__ */
|
|
21678
|
-
/* @__PURE__ */
|
|
21679
|
-
/* @__PURE__ */
|
|
21680
|
-
requirementText && /* @__PURE__ */
|
|
21681
|
-
hint && /* @__PURE__ */
|
|
20790
|
+
return /* @__PURE__ */ jsxs(Label, { display: "block", ...props, children: [
|
|
20791
|
+
/* @__PURE__ */ jsxs(Box, { mb: children && "x1", "data-testid": "field-label", children: [
|
|
20792
|
+
/* @__PURE__ */ jsxs(LabelContent, { "data-testid": "label-content", children: [
|
|
20793
|
+
/* @__PURE__ */ jsx$1(LabelText, { "data-testid": "label-text", children: labelText }),
|
|
20794
|
+
requirementText && /* @__PURE__ */ jsx$1(RequirementText, { "data-testid": "requirement-text", ml: "none", children: requirementText }),
|
|
20795
|
+
hint && /* @__PURE__ */ jsx$1(Tooltip, { tooltip: hint, children: /* @__PURE__ */ jsx$1(InlineIcon, { color: "darkGrey", size: "x2", icon: "info" }) })
|
|
21682
20796
|
] }),
|
|
21683
|
-
helpText && /* @__PURE__ */
|
|
20797
|
+
helpText && /* @__PURE__ */ jsx$1(HelpText$1, { "data-testid": "help-text", children: helpText })
|
|
21684
20798
|
] }),
|
|
21685
20799
|
children
|
|
21686
20800
|
] });
|
|
21687
20801
|
}
|
|
21688
|
-
const MaybeFieldLabel = ({ labelText, children, ...props }) => labelText ? /* @__PURE__ */
|
|
20802
|
+
const MaybeFieldLabel = ({ labelText, children, ...props }) => labelText ? /* @__PURE__ */ jsx$1(FieldLabel, { labelText, ...props, children }) : /* @__PURE__ */ jsx$1(Fragment, { children });
|
|
21689
20803
|
const ListItem = styled.li(
|
|
21690
20804
|
({ theme }) => ({
|
|
21691
20805
|
color: "currentcolor",
|
|
@@ -21714,7 +20828,7 @@ const mapErrorsToList = (errors) => {
|
|
|
21714
20828
|
if (!Array.isArray(errors) || !errors.length) {
|
|
21715
20829
|
return null;
|
|
21716
20830
|
}
|
|
21717
|
-
return /* @__PURE__ */
|
|
20831
|
+
return /* @__PURE__ */ jsx$1(List$1, { compact: true, leftAlign: true, children: errors.map((error2) => /* @__PURE__ */ jsx$1(ListItem, { children: error2 }, error2)) });
|
|
21718
20832
|
};
|
|
21719
20833
|
const Wrapper = styled.div(({ theme }) => ({
|
|
21720
20834
|
[`${Text}`]: {
|
|
@@ -21731,10 +20845,10 @@ function InlineValidation({
|
|
|
21731
20845
|
children,
|
|
21732
20846
|
...boxProps
|
|
21733
20847
|
}) {
|
|
21734
|
-
return errorMessage || errorList ? /* @__PURE__ */
|
|
21735
|
-
/* @__PURE__ */
|
|
21736
|
-
/* @__PURE__ */
|
|
21737
|
-
errorMessage && /* @__PURE__ */
|
|
20848
|
+
return errorMessage || errorList ? /* @__PURE__ */ jsxs(Flex, { className, color: "red", ...boxProps, children: [
|
|
20849
|
+
/* @__PURE__ */ jsx$1(Icon, { icon: "error", mr: "x1" }),
|
|
20850
|
+
/* @__PURE__ */ jsxs(Wrapper, { children: [
|
|
20851
|
+
errorMessage && /* @__PURE__ */ jsx$1(Text, { children: errorMessage }),
|
|
21738
20852
|
mapErrorsToList(errorList),
|
|
21739
20853
|
children
|
|
21740
20854
|
] })
|
|
@@ -22096,49 +21210,49 @@ const StyledOption = styled.div(
|
|
|
22096
21210
|
})
|
|
22097
21211
|
);
|
|
22098
21212
|
function SelectOption$1(props) {
|
|
22099
|
-
return /* @__PURE__ */
|
|
21213
|
+
return /* @__PURE__ */ jsx$1(StyledOption, { isSelected: props.isSelected, isFocused: props.isFocused, "data-testid": "select-option", children: /* @__PURE__ */ jsx$1(components.Option, { ...props, children: props.children }) });
|
|
22100
21214
|
}
|
|
22101
21215
|
const SelectControl$1 = ({
|
|
22102
21216
|
isFocused: isFocused2,
|
|
22103
21217
|
children,
|
|
22104
21218
|
...props
|
|
22105
21219
|
}) => {
|
|
22106
|
-
return /* @__PURE__ */
|
|
21220
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-control", children: /* @__PURE__ */ jsxs(
|
|
22107
21221
|
components.Control,
|
|
22108
21222
|
{
|
|
22109
21223
|
className: isFocused2 ? "nds-select--is-focused" : null,
|
|
22110
21224
|
isFocused: isFocused2,
|
|
22111
21225
|
...props,
|
|
22112
21226
|
children: [
|
|
22113
|
-
props.selectProps.iconLeft && /* @__PURE__ */
|
|
21227
|
+
props.selectProps.iconLeft && /* @__PURE__ */ jsx$1(InputIcon, { left: "x1", icon: props.selectProps.iconLeft, size: "x3" }),
|
|
22114
21228
|
children
|
|
22115
21229
|
]
|
|
22116
21230
|
}
|
|
22117
21231
|
) });
|
|
22118
21232
|
};
|
|
22119
21233
|
const SelectMultiValue$1 = (props) => {
|
|
22120
|
-
return /* @__PURE__ */
|
|
21234
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-multivalue", children: /* @__PURE__ */ jsx$1(components.MultiValue, { ...props, children: props.children }) });
|
|
22121
21235
|
};
|
|
22122
21236
|
const SelectClearIndicator$1 = (props) => {
|
|
22123
|
-
return /* @__PURE__ */
|
|
21237
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-clear", children: /* @__PURE__ */ jsx$1(components.ClearIndicator, { ...props, children: props.children }) });
|
|
22124
21238
|
};
|
|
22125
21239
|
const SelectDropdownIndicator$1 = (props) => {
|
|
22126
|
-
return /* @__PURE__ */
|
|
21240
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-arrow", children: /* @__PURE__ */ jsx$1(components.DropdownIndicator, { ...props, children: props.children }) });
|
|
22127
21241
|
};
|
|
22128
21242
|
const SelectContainer$1 = (props) => {
|
|
22129
|
-
return /* @__PURE__ */
|
|
21243
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-container", children: /* @__PURE__ */ jsx$1(components.SelectContainer, { ...props, children: props.children }) });
|
|
22130
21244
|
};
|
|
22131
21245
|
const SelectInput$1 = (props) => {
|
|
22132
|
-
return /* @__PURE__ */
|
|
21246
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-input", children: /* @__PURE__ */ jsx$1(components.Input, { ...props, children: props.children }) });
|
|
22133
21247
|
};
|
|
22134
21248
|
const SelectMenu$1 = (props) => {
|
|
22135
21249
|
if (!props.selectProps.inputValue && props.options.length === 0) {
|
|
22136
21250
|
return null;
|
|
22137
21251
|
}
|
|
22138
|
-
return /* @__PURE__ */
|
|
21252
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-dropdown", children: /* @__PURE__ */ jsx$1(components.Menu, { ...props, children: props.children }) });
|
|
22139
21253
|
};
|
|
22140
21254
|
function SelectOption(props) {
|
|
22141
|
-
return /* @__PURE__ */
|
|
21255
|
+
return /* @__PURE__ */ jsx$1(StyledOption, { isSelected: props.isSelected, isFocused: props.isFocused, "data-testid": "select-option", children: /* @__PURE__ */ jsx$1(components.Option, { ...props, children: props.children }) });
|
|
22142
21256
|
}
|
|
22143
21257
|
const AsyncSelect = forwardRef(
|
|
22144
21258
|
({
|
|
@@ -22183,8 +21297,8 @@ const AsyncSelect = forwardRef(
|
|
|
22183
21297
|
const error2 = !!(errorMessage || errorList);
|
|
22184
21298
|
const componentVariant = useComponentVariant(variant3);
|
|
22185
21299
|
noOptionsMessage2 || (noOptionsMessage2 = () => t3("no options"));
|
|
22186
|
-
return /* @__PURE__ */
|
|
22187
|
-
/* @__PURE__ */
|
|
21300
|
+
return /* @__PURE__ */ jsx$1(Field, { ...spaceProps, children: /* @__PURE__ */ jsxs(MaybeFieldLabel, { labelText, requirementText, helpText, children: [
|
|
21301
|
+
/* @__PURE__ */ jsx$1(
|
|
22188
21302
|
AsyncSelect$1$1,
|
|
22189
21303
|
{
|
|
22190
21304
|
className,
|
|
@@ -22220,7 +21334,7 @@ const AsyncSelect = forwardRef(
|
|
|
22220
21334
|
menuPosition,
|
|
22221
21335
|
onInputChange,
|
|
22222
21336
|
components: {
|
|
22223
|
-
Option: (props2) => /* @__PURE__ */
|
|
21337
|
+
Option: (props2) => /* @__PURE__ */ jsx$1(SelectOption, { variant: componentVariant, ...props2, children: props2.children }),
|
|
22224
21338
|
Control: SelectControl$1,
|
|
22225
21339
|
MultiValue: SelectMultiValue$1,
|
|
22226
21340
|
ClearIndicator: SelectClearIndicator$1,
|
|
@@ -22238,11 +21352,11 @@ const AsyncSelect = forwardRef(
|
|
|
22238
21352
|
...props
|
|
22239
21353
|
}
|
|
22240
21354
|
),
|
|
22241
|
-
/* @__PURE__ */
|
|
21355
|
+
/* @__PURE__ */ jsx$1(InlineValidation, { mt: "x1", errorMessage, errorList })
|
|
22242
21356
|
] }) });
|
|
22243
21357
|
}
|
|
22244
21358
|
);
|
|
22245
|
-
const Banner = ({ ...props }) => /* @__PURE__ */
|
|
21359
|
+
const Banner = ({ ...props }) => /* @__PURE__ */ jsx$1(Alert, { borderStyle: "none", borderRadius: "0", px: "x3", ...props });
|
|
22246
21360
|
function noop$2() {
|
|
22247
21361
|
}
|
|
22248
21362
|
function canUseDOM() {
|
|
@@ -24547,7 +23661,7 @@ const Sheet = styled(motion(DialogContent)).withConfig({
|
|
|
24547
23661
|
}),
|
|
24548
23662
|
compose(...styleFns)
|
|
24549
23663
|
);
|
|
24550
|
-
const ContentContainer = styled.div((
|
|
23664
|
+
const ContentContainer = styled.div(() => ({
|
|
24551
23665
|
overflowY: "auto",
|
|
24552
23666
|
flex: 1,
|
|
24553
23667
|
WebkitOverflowScrolling: "touch",
|
|
@@ -24599,7 +23713,7 @@ function BottomSheetProvider({
|
|
|
24599
23713
|
onClose = noop$2,
|
|
24600
23714
|
children
|
|
24601
23715
|
}) {
|
|
24602
|
-
return /* @__PURE__ */
|
|
23716
|
+
return /* @__PURE__ */ jsx$1(BottomSheetContext.Provider, { value: { isOpen, onClose }, children });
|
|
24603
23717
|
}
|
|
24604
23718
|
const overlayVariants = {
|
|
24605
23719
|
hidden: { opacity: 0 },
|
|
@@ -24614,12 +23728,12 @@ const transition = {
|
|
|
24614
23728
|
ease: [0.32, 0.72, 0, 1]
|
|
24615
23729
|
};
|
|
24616
23730
|
function Root$1({ isOpen, onClose, children, ...props }) {
|
|
24617
|
-
return /* @__PURE__ */
|
|
23731
|
+
return /* @__PURE__ */ jsx$1(AnimatePresence, { ...props, children: isOpen && /* @__PURE__ */ jsx$1(BottomSheetProvider, { isOpen, onClose, children }) });
|
|
24618
23732
|
}
|
|
24619
23733
|
function OverlayPart({ closeOnClick, children, ...props }) {
|
|
24620
23734
|
const { onClose, isOpen } = useBottomSheet();
|
|
24621
23735
|
const [isAnimationComplete, setAnimationComplete] = React__default.useState(false);
|
|
24622
|
-
return /* @__PURE__ */
|
|
23736
|
+
return /* @__PURE__ */ jsx$1(
|
|
24623
23737
|
Overlay$2,
|
|
24624
23738
|
{
|
|
24625
23739
|
"data-testid": "bottom-sheet-overlay",
|
|
@@ -24647,7 +23761,7 @@ function SheetPart({ children, ...props }) {
|
|
|
24647
23761
|
function handleSheetClick(e3) {
|
|
24648
23762
|
e3.stopPropagation();
|
|
24649
23763
|
}
|
|
24650
|
-
return /* @__PURE__ */
|
|
23764
|
+
return /* @__PURE__ */ jsx$1(
|
|
24651
23765
|
Sheet,
|
|
24652
23766
|
{
|
|
24653
23767
|
"data-testid": "bottom-sheet-body",
|
|
@@ -24699,24 +23813,24 @@ function BottomSheet({
|
|
|
24699
23813
|
closeButtonLabel || (closeButtonLabel = t3("close"));
|
|
24700
23814
|
const closeOnClick = !disableCloseOnOverlayClick;
|
|
24701
23815
|
const footerHeight = `calc(${theme.space.x5} + (${theme.space.x2} * 2) + ${theme.space.x4})`;
|
|
24702
|
-
return /* @__PURE__ */
|
|
23816
|
+
return /* @__PURE__ */ jsx$1(BottomSheetParts.Root, { isOpen, onClose, children: /* @__PURE__ */ jsx$1(BottomSheetParts.Overlay, { closeOnClick, children: /* @__PURE__ */ jsx$1(
|
|
24703
23817
|
BottomSheetParts.Sheet,
|
|
24704
23818
|
{
|
|
24705
23819
|
width: sheetWidth,
|
|
24706
23820
|
maxWidth: { small: `calc(100% - ${theme.space.x8})` },
|
|
24707
23821
|
maxHeight: { small: `calc(100dvh - ${theme.space.x7})`, medium: "85.4dvh" },
|
|
24708
23822
|
"aria-label": props["aria-label"] ?? title,
|
|
24709
|
-
children: /* @__PURE__ */
|
|
24710
|
-
/* @__PURE__ */
|
|
24711
|
-
/* @__PURE__ */
|
|
24712
|
-
title && /* @__PURE__ */
|
|
24713
|
-
helpText && (typeof helpText === "string" ? /* @__PURE__ */
|
|
23823
|
+
children: /* @__PURE__ */ jsxs(BottomSheetParts.ContentContainer, { children: [
|
|
23824
|
+
/* @__PURE__ */ jsxs(Box, { width: contentWidth, margin: "0 auto", children: [
|
|
23825
|
+
/* @__PURE__ */ jsxs(BottomSheetParts.Header, { children: [
|
|
23826
|
+
title && /* @__PURE__ */ jsx$1(BottomSheetParts.Title, { children: title }),
|
|
23827
|
+
helpText && (typeof helpText === "string" ? /* @__PURE__ */ jsx$1(BottomSheetParts.HelpText, { children: helpText }) : helpText)
|
|
24714
23828
|
] }),
|
|
24715
|
-
/* @__PURE__ */
|
|
23829
|
+
/* @__PURE__ */ jsx$1(Box, { px: "x3", pt: "x4", pb: footerHeight, children })
|
|
24716
23830
|
] }),
|
|
24717
|
-
/* @__PURE__ */
|
|
24718
|
-
!hideCloseButton && /* @__PURE__ */
|
|
24719
|
-
/* @__PURE__ */
|
|
23831
|
+
/* @__PURE__ */ jsx$1(BottomSheetParts.Footer, { children: /* @__PURE__ */ jsxs(Flex, { alignItems: "center", justifyContent: "space-between", gap: "x2", children: [
|
|
23832
|
+
!hideCloseButton && /* @__PURE__ */ jsx$1(QuietButton, { onClick: onClose, children: closeButtonLabel }),
|
|
23833
|
+
/* @__PURE__ */ jsxs(Flex, { gap: "x2", alignItems: "center", ml: "auto", children: [
|
|
24720
23834
|
secondaryAction && secondaryAction({ onClose }),
|
|
24721
23835
|
primaryAction && primaryAction({ onClose })
|
|
24722
23836
|
] })
|
|
@@ -27324,8 +26438,8 @@ class StatelessNavBarDropdownMenu extends StatelessNavBarDropdownMenuClass {
|
|
|
27324
26438
|
menuState: { isOpen, closeMenu, openMenu }
|
|
27325
26439
|
} = this.props;
|
|
27326
26440
|
const childrenFnc = typeof children === "function" ? children : () => children;
|
|
27327
|
-
return /* @__PURE__ */
|
|
27328
|
-
/* @__PURE__ */
|
|
26441
|
+
return /* @__PURE__ */ jsxs(Manager$1, { children: [
|
|
26442
|
+
/* @__PURE__ */ jsx$1(Reference$1, { children: ({ ref }) => React__default.cloneElement(
|
|
27329
26443
|
trigger({
|
|
27330
26444
|
closeMenu,
|
|
27331
26445
|
openMenu,
|
|
@@ -27342,46 +26456,52 @@ class StatelessNavBarDropdownMenu extends StatelessNavBarDropdownMenuClass {
|
|
|
27342
26456
|
}
|
|
27343
26457
|
}
|
|
27344
26458
|
) }),
|
|
27345
|
-
isOpen && /* @__PURE__ */
|
|
27346
|
-
|
|
27347
|
-
{
|
|
27348
|
-
|
|
27349
|
-
|
|
27350
|
-
|
|
27351
|
-
|
|
27352
|
-
|
|
27353
|
-
|
|
27354
|
-
|
|
27355
|
-
|
|
27356
|
-
|
|
27357
|
-
|
|
27358
|
-
|
|
27359
|
-
|
|
27360
|
-
|
|
27361
|
-
},
|
|
27362
|
-
...dropdownMenuContainerEventHandlers({
|
|
27363
|
-
openMenu,
|
|
27364
|
-
closeMenu
|
|
27365
|
-
}),
|
|
27366
|
-
children: [
|
|
27367
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
27368
|
-
PopperArrow,
|
|
27369
|
-
{
|
|
27370
|
-
...popperProps.arrowProps,
|
|
27371
|
-
placement,
|
|
27372
|
-
ref: popperProps.arrowProps.ref,
|
|
27373
|
-
backgroundColor: "white",
|
|
27374
|
-
borderColor: "white"
|
|
26459
|
+
isOpen && /* @__PURE__ */ jsx$1(Popper$2, { placement, modifiers: modifiers2, children: (popperProps) => {
|
|
26460
|
+
const { ref: popperRef, style, placement: popperPlacement } = popperProps;
|
|
26461
|
+
return /* @__PURE__ */ jsx$1(Fragment, { children: /* @__PURE__ */ jsxs(
|
|
26462
|
+
DropdownMenuContainer,
|
|
26463
|
+
{
|
|
26464
|
+
dataPlacement: popperPlacement,
|
|
26465
|
+
style,
|
|
26466
|
+
placement,
|
|
26467
|
+
showArrow,
|
|
26468
|
+
...this.menuEventHandlers(),
|
|
26469
|
+
...{
|
|
26470
|
+
ref: (node2) => {
|
|
26471
|
+
if (typeof popperRef === "function") {
|
|
26472
|
+
popperRef(node2);
|
|
26473
|
+
}
|
|
26474
|
+
this.setMenuRef(node2);
|
|
27375
26475
|
}
|
|
27376
|
-
|
|
27377
|
-
|
|
27378
|
-
|
|
27379
|
-
|
|
27380
|
-
|
|
27381
|
-
|
|
27382
|
-
|
|
27383
|
-
|
|
27384
|
-
|
|
26476
|
+
},
|
|
26477
|
+
onMouseDown: (e3) => {
|
|
26478
|
+
e3.preventDefault();
|
|
26479
|
+
e3.target.focus();
|
|
26480
|
+
},
|
|
26481
|
+
...dropdownMenuContainerEventHandlers({
|
|
26482
|
+
openMenu,
|
|
26483
|
+
closeMenu
|
|
26484
|
+
}),
|
|
26485
|
+
children: [
|
|
26486
|
+
/* @__PURE__ */ jsx$1(
|
|
26487
|
+
PopperArrow,
|
|
26488
|
+
{
|
|
26489
|
+
...popperProps.arrowProps,
|
|
26490
|
+
placement,
|
|
26491
|
+
ref: popperProps.arrowProps.ref,
|
|
26492
|
+
backgroundColor: "white",
|
|
26493
|
+
borderColor: "white"
|
|
26494
|
+
}
|
|
26495
|
+
),
|
|
26496
|
+
/* @__PURE__ */ jsx$1(DetectOutsideClick, { onClick: this.handleOutsideClick, clickRef: [this.menuRef, this.triggerRef] }),
|
|
26497
|
+
childrenFnc({
|
|
26498
|
+
closeMenu,
|
|
26499
|
+
openMenu
|
|
26500
|
+
})
|
|
26501
|
+
]
|
|
26502
|
+
}
|
|
26503
|
+
) });
|
|
26504
|
+
} })
|
|
27385
26505
|
] });
|
|
27386
26506
|
}
|
|
27387
26507
|
}
|
|
@@ -27492,7 +26612,6 @@ const Popper$1 = React__default.forwardRef(
|
|
|
27492
26612
|
}
|
|
27493
26613
|
});
|
|
27494
26614
|
return React__default.cloneElement(transformedElement, {
|
|
27495
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
27496
26615
|
key: i3
|
|
27497
26616
|
});
|
|
27498
26617
|
});
|
|
@@ -27503,8 +26622,8 @@ const Popper$1 = React__default.forwardRef(
|
|
|
27503
26622
|
const { t: t3 } = useTranslation();
|
|
27504
26623
|
const openLabel = openAriaLabel || t3("open");
|
|
27505
26624
|
const closeLabel = closeAriaLabel || t3("close");
|
|
27506
|
-
return /* @__PURE__ */
|
|
27507
|
-
/* @__PURE__ */
|
|
26625
|
+
return /* @__PURE__ */ jsxs(Manager$1, { ref: popperRef, children: [
|
|
26626
|
+
/* @__PURE__ */ jsx$1(Reference$1, { children: ({ ref }) => React__default.cloneElement(trigger, {
|
|
27508
26627
|
"aria-haspopup": true,
|
|
27509
26628
|
"aria-expanded": isOpen,
|
|
27510
26629
|
"aria-describedby": id2,
|
|
@@ -27512,7 +26631,7 @@ const Popper$1 = React__default.forwardRef(
|
|
|
27512
26631
|
...eventHandlers,
|
|
27513
26632
|
ref
|
|
27514
26633
|
}) }),
|
|
27515
|
-
/* @__PURE__ */
|
|
26634
|
+
/* @__PURE__ */ jsx$1(Popper$2, { placement: popperPlacement, modifiers: modifiers2, children: ({ ref, style, placement, arrowProps }) => /* @__PURE__ */ jsx$1(Fragment, { children: isOpen && React__default.cloneElement(
|
|
27516
26635
|
children,
|
|
27517
26636
|
{
|
|
27518
26637
|
open: isOpen,
|
|
@@ -27529,7 +26648,7 @@ const Popper$1 = React__default.forwardRef(
|
|
|
27529
26648
|
},
|
|
27530
26649
|
[
|
|
27531
26650
|
...renderInnerChildren(),
|
|
27532
|
-
showArrow && /* @__PURE__ */
|
|
26651
|
+
showArrow && /* @__PURE__ */ jsx$1(
|
|
27533
26652
|
PopperArrow,
|
|
27534
26653
|
{
|
|
27535
26654
|
...arrowProps,
|
|
@@ -27554,7 +26673,7 @@ const transformPropsToModifiers = ({ boundariesElement }) => ({
|
|
|
27554
26673
|
});
|
|
27555
26674
|
const DropdownMenu = React__default.forwardRef(
|
|
27556
26675
|
({
|
|
27557
|
-
trigger = () => /* @__PURE__ */
|
|
26676
|
+
trigger = () => /* @__PURE__ */ jsx$1(IconicButton, { icon: "more" }),
|
|
27558
26677
|
children,
|
|
27559
26678
|
showArrow = true,
|
|
27560
26679
|
variant: variant3,
|
|
@@ -27578,7 +26697,7 @@ const DropdownMenu = React__default.forwardRef(
|
|
|
27578
26697
|
return transformPropsToModifiers({ boundariesElement });
|
|
27579
26698
|
}, [boundariesElement]);
|
|
27580
26699
|
const componentVariant = useComponentVariant(variant3);
|
|
27581
|
-
return /* @__PURE__ */
|
|
26700
|
+
return /* @__PURE__ */ jsx$1(
|
|
27582
26701
|
Popper$1,
|
|
27583
26702
|
{
|
|
27584
26703
|
trigger: React__default.cloneElement(trigger(), {
|
|
@@ -27600,7 +26719,7 @@ const DropdownMenu = React__default.forwardRef(
|
|
|
27600
26719
|
borderColor: backgroundColor,
|
|
27601
26720
|
openAriaLabel,
|
|
27602
26721
|
closeAriaLabel,
|
|
27603
|
-
children: /* @__PURE__ */
|
|
26722
|
+
children: /* @__PURE__ */ jsx$1(
|
|
27604
26723
|
DropdownMenuContainer,
|
|
27605
26724
|
{
|
|
27606
26725
|
className,
|
|
@@ -27762,7 +26881,7 @@ const DropdownText = styled(Text)(
|
|
|
27762
26881
|
}),
|
|
27763
26882
|
addStyledProps
|
|
27764
26883
|
);
|
|
27765
|
-
const renderSubMenuTrigger = (subMenuItem, onItemClick, SubMenuTrigger2, layer, menuType) => /* @__PURE__ */
|
|
26884
|
+
const renderSubMenuTrigger = (subMenuItem, onItemClick, SubMenuTrigger2, layer, menuType) => /* @__PURE__ */ jsx$1(NoWrapLi, { children: /* @__PURE__ */ jsx$1(
|
|
27766
26885
|
SubMenuTrigger2,
|
|
27767
26886
|
{
|
|
27768
26887
|
onItemClick,
|
|
@@ -27781,13 +26900,13 @@ const renderSubMenuLink = (subMenuItem, onItemClick) => {
|
|
|
27781
26900
|
as: subMenuItem.as,
|
|
27782
26901
|
target: subMenuItem.openInNew ? "_blank" : void 0
|
|
27783
26902
|
};
|
|
27784
|
-
return /* @__PURE__ */
|
|
26903
|
+
return /* @__PURE__ */ jsx$1(NoWrapLi, { children: /* @__PURE__ */ jsxs(DropdownLink, { ...linkProps, children: [
|
|
27785
26904
|
subMenuItem.name,
|
|
27786
|
-
subMenuItem.openInNew && /* @__PURE__ */
|
|
26905
|
+
subMenuItem.openInNew && /* @__PURE__ */ jsx$1(Icon, { size: "x2", icon: "openInNew" })
|
|
27787
26906
|
] }) }, subMenuItem.key ?? subMenuItem.name);
|
|
27788
26907
|
};
|
|
27789
|
-
const renderCustom$2 = (subMenuItem, onItemClick, _SubMenuTrigger, layer) => /* @__PURE__ */
|
|
27790
|
-
const renderText$2 = (subMenuItem) => /* @__PURE__ */
|
|
26908
|
+
const renderCustom$2 = (subMenuItem, onItemClick, _SubMenuTrigger, layer) => /* @__PURE__ */ jsx$1(NoWrapLi, { children: subMenuItem.render({ size: "medium", onItemClick, layer }) }, subMenuItem.key ?? subMenuItem.name);
|
|
26909
|
+
const renderText$2 = (subMenuItem) => /* @__PURE__ */ jsx$1(NoWrapLi, { children: /* @__PURE__ */ jsx$1(DropdownText, { children: subMenuItem.name }) }, subMenuItem.key ?? subMenuItem.name);
|
|
27791
26910
|
const getRenderFunction$2 = (subMenuItem) => {
|
|
27792
26911
|
if (subMenuItem.items) {
|
|
27793
26912
|
return renderSubMenuTrigger;
|
|
@@ -27816,16 +26935,16 @@ const StyledButton$1 = styled(DropdownButton)(
|
|
|
27816
26935
|
);
|
|
27817
26936
|
const SubMenuTriggerButton = React__default.forwardRef(
|
|
27818
26937
|
({ name, isOpen, ...props }, ref) => {
|
|
27819
|
-
return /* @__PURE__ */
|
|
26938
|
+
return /* @__PURE__ */ jsx$1(StyledButton$1, { isOpen, ref, ...props, children: /* @__PURE__ */ jsxs(Flex, { gap: "half", justifyContent: "space-between", alignItems: "center", children: [
|
|
27820
26939
|
name,
|
|
27821
|
-
/* @__PURE__ */
|
|
26940
|
+
/* @__PURE__ */ jsx$1(Icon, { icon: "rightArrow", size: "20px" })
|
|
27822
26941
|
] }) });
|
|
27823
26942
|
}
|
|
27824
26943
|
);
|
|
27825
26944
|
SubMenuTriggerButton.displayName = "SubMenuTriggerButton";
|
|
27826
26945
|
const SubMenuTrigger = ({ menuData, name, onItemClick, trigger, layer, menuType, ...props }) => {
|
|
27827
26946
|
const theme = useTheme();
|
|
27828
|
-
return /* @__PURE__ */
|
|
26947
|
+
return /* @__PURE__ */ jsx$1(
|
|
27829
26948
|
NavBarDropdownMenu,
|
|
27830
26949
|
{
|
|
27831
26950
|
placement: getPlacement(menuType),
|
|
@@ -27844,7 +26963,7 @@ const SubMenuTrigger = ({ menuData, name, onItemClick, trigger, layer, menuType,
|
|
|
27844
26963
|
onMouseLeave: closeMenu
|
|
27845
26964
|
}),
|
|
27846
26965
|
trigger: ({ closeMenu, openMenu, isOpen }) => {
|
|
27847
|
-
const defaultRender = () => /* @__PURE__ */
|
|
26966
|
+
const defaultRender = () => /* @__PURE__ */ jsx$1(SubMenuTriggerButton, { isOpen, name, onMouseEnter: openMenu, onMouseLeave: closeMenu });
|
|
27848
26967
|
const triggerProps = {
|
|
27849
26968
|
size: "medium",
|
|
27850
26969
|
closeMenu,
|
|
@@ -27855,7 +26974,7 @@ const SubMenuTrigger = ({ menuData, name, onItemClick, trigger, layer, menuType,
|
|
|
27855
26974
|
};
|
|
27856
26975
|
return trigger ? trigger(triggerProps) : defaultRender();
|
|
27857
26976
|
},
|
|
27858
|
-
children: /* @__PURE__ */
|
|
26977
|
+
children: /* @__PURE__ */ jsx$1(SubMenuItemsList$1, { children: renderSubMenuItems(menuData, onItemClick, SubMenuTrigger, layer + 1, menuType) })
|
|
27859
26978
|
}
|
|
27860
26979
|
);
|
|
27861
26980
|
};
|
|
@@ -27907,9 +27026,9 @@ const StyledButton = styled.button(
|
|
|
27907
27026
|
})
|
|
27908
27027
|
);
|
|
27909
27028
|
const MenuTriggerButton = React__default.forwardRef(
|
|
27910
|
-
({ name, color: color2, hoverColor, hoverBackground, ...props }, ref) => /* @__PURE__ */
|
|
27029
|
+
({ name, color: color2, hoverColor, hoverBackground, ...props }, ref) => /* @__PURE__ */ jsxs(StyledButton, { color: color2, hoverColor, hoverBackground, ref, ...props, children: [
|
|
27911
27030
|
name,
|
|
27912
|
-
/* @__PURE__ */
|
|
27031
|
+
/* @__PURE__ */ jsx$1(
|
|
27913
27032
|
Icon,
|
|
27914
27033
|
{
|
|
27915
27034
|
style: {
|
|
@@ -27951,52 +27070,49 @@ const MenuTrigger = ({
|
|
|
27951
27070
|
name,
|
|
27952
27071
|
"aria-label": ariaLabel
|
|
27953
27072
|
};
|
|
27954
|
-
return (
|
|
27955
|
-
|
|
27956
|
-
|
|
27957
|
-
|
|
27958
|
-
|
|
27959
|
-
|
|
27960
|
-
|
|
27961
|
-
|
|
27962
|
-
|
|
27963
|
-
|
|
27964
|
-
enabled: true,
|
|
27965
|
-
fn: setDropdownMinWidth
|
|
27966
|
-
},
|
|
27967
|
-
preventOverflow: {
|
|
27968
|
-
enabled: true,
|
|
27969
|
-
padding: 8,
|
|
27970
|
-
boundariesElement: "viewport"
|
|
27971
|
-
}
|
|
27972
|
-
},
|
|
27973
|
-
trigger: () => {
|
|
27974
|
-
const defaultRender = () => /* @__PURE__ */ jsxRuntimeExports.jsx(MenuTriggerButton, { ...triggerProps });
|
|
27975
|
-
return trigger ? trigger({ size: "medium", defaultRender, layer }) : defaultRender();
|
|
27073
|
+
return /* @__PURE__ */ jsx$1(
|
|
27074
|
+
NavBarDropdownMenu,
|
|
27075
|
+
{
|
|
27076
|
+
...props,
|
|
27077
|
+
placement: "bottom-start",
|
|
27078
|
+
modifiers: {
|
|
27079
|
+
flip: { behavior: ["bottom"] },
|
|
27080
|
+
setPopperWidth: {
|
|
27081
|
+
enabled: true,
|
|
27082
|
+
fn: setDropdownMinWidth
|
|
27976
27083
|
},
|
|
27977
|
-
|
|
27978
|
-
|
|
27979
|
-
|
|
27980
|
-
|
|
27981
|
-
|
|
27982
|
-
|
|
27983
|
-
|
|
27984
|
-
|
|
27084
|
+
preventOverflow: {
|
|
27085
|
+
enabled: true,
|
|
27086
|
+
padding: 8,
|
|
27087
|
+
boundariesElement: "viewport"
|
|
27088
|
+
}
|
|
27089
|
+
},
|
|
27090
|
+
trigger: () => {
|
|
27091
|
+
const defaultRender = () => /* @__PURE__ */ jsx$1(MenuTriggerButton, { ...triggerProps });
|
|
27092
|
+
return trigger ? trigger({ size: "medium", defaultRender, layer }) : defaultRender();
|
|
27093
|
+
},
|
|
27094
|
+
children: ({ closeMenu }) => /* @__PURE__ */ jsx$1(
|
|
27095
|
+
"ul",
|
|
27096
|
+
{
|
|
27097
|
+
style: {
|
|
27098
|
+
listStyle: "none",
|
|
27099
|
+
margin: "0",
|
|
27100
|
+
padding: "0",
|
|
27101
|
+
minWidth: dropdownMinWidth
|
|
27102
|
+
},
|
|
27103
|
+
children: renderSubMenuItems(
|
|
27104
|
+
menuData,
|
|
27105
|
+
(e3) => {
|
|
27106
|
+
closeMenu(e3);
|
|
27107
|
+
e3.stopPropagation();
|
|
27985
27108
|
},
|
|
27986
|
-
|
|
27987
|
-
|
|
27988
|
-
|
|
27989
|
-
|
|
27990
|
-
|
|
27991
|
-
|
|
27992
|
-
|
|
27993
|
-
layer + 1,
|
|
27994
|
-
menuType
|
|
27995
|
-
)
|
|
27996
|
-
}
|
|
27997
|
-
)
|
|
27998
|
-
}
|
|
27999
|
-
)
|
|
27109
|
+
SubMenuTrigger,
|
|
27110
|
+
layer + 1,
|
|
27111
|
+
menuType
|
|
27112
|
+
)
|
|
27113
|
+
}
|
|
27114
|
+
)
|
|
27115
|
+
}
|
|
28000
27116
|
);
|
|
28001
27117
|
};
|
|
28002
27118
|
const getSharedStyles$1 = (color2, theme) => {
|
|
@@ -28040,7 +27156,7 @@ const Nav$1 = styled.nav({
|
|
|
28040
27156
|
display: "flex",
|
|
28041
27157
|
alignItems: "center"
|
|
28042
27158
|
});
|
|
28043
|
-
const renderMenuTrigger = (menuItem, themeColorObject2, layer, menuType) => /* @__PURE__ */
|
|
27159
|
+
const renderMenuTrigger = (menuItem, themeColorObject2, layer, menuType) => /* @__PURE__ */ jsx$1("div", { children: /* @__PURE__ */ jsx$1(
|
|
28044
27160
|
MenuTrigger,
|
|
28045
27161
|
{
|
|
28046
27162
|
menuType,
|
|
@@ -28059,13 +27175,13 @@ const renderMenuLink$1 = (menuItem, themeColorObject2) => {
|
|
|
28059
27175
|
as: menuItem.as,
|
|
28060
27176
|
target: menuItem.openInNew ? "_blank" : void 0
|
|
28061
27177
|
};
|
|
28062
|
-
return /* @__PURE__ */
|
|
27178
|
+
return /* @__PURE__ */ jsx$1("div", { children: /* @__PURE__ */ jsxs(MenuLink, { ...linkProps, ...themeColorObject2, children: [
|
|
28063
27179
|
menuItem.name,
|
|
28064
|
-
menuItem.openInNew && /* @__PURE__ */
|
|
27180
|
+
menuItem.openInNew && /* @__PURE__ */ jsx$1(Icon, { size: "x2", icon: "openInNew" })
|
|
28065
27181
|
] }) }, menuItem.key ?? menuItem.name);
|
|
28066
27182
|
};
|
|
28067
|
-
const renderCustom$1 = (menuItem, _themeColorObject, layer) => /* @__PURE__ */
|
|
28068
|
-
const renderText$1 = (menuItem, themeColorObject2) => /* @__PURE__ */
|
|
27183
|
+
const renderCustom$1 = (menuItem, _themeColorObject, layer) => /* @__PURE__ */ jsx$1("div", { children: menuItem.render({ size: "medium", layer }) }, menuItem.key ?? menuItem.name);
|
|
27184
|
+
const renderText$1 = (menuItem, themeColorObject2) => /* @__PURE__ */ jsx$1(MenuText, { ...themeColorObject2, children: menuItem.name }, menuItem.key ?? menuItem.name);
|
|
28069
27185
|
const getRenderFunction$1 = (menuItem) => {
|
|
28070
27186
|
if (menuItem.items) {
|
|
28071
27187
|
return renderMenuTrigger;
|
|
@@ -28080,7 +27196,7 @@ const getRenderFunction$1 = (menuItem) => {
|
|
|
28080
27196
|
};
|
|
28081
27197
|
const renderMenuItem = (menuItem, themeColorObject2, layer, menuType) => getRenderFunction$1(menuItem)(menuItem, themeColorObject2, layer, menuType);
|
|
28082
27198
|
const BaseDesktopMenu = React__default.forwardRef(
|
|
28083
|
-
({ menuData, menuType, themeColorObject: themeColorObject2, ...props }, ref) => /* @__PURE__ */
|
|
27199
|
+
({ menuData, menuType, themeColorObject: themeColorObject2, ...props }, ref) => /* @__PURE__ */ jsx$1(Nav$1, { ...props, ref, children: menuData.map((menuItem) => renderMenuItem(menuItem, themeColorObject2, 0, menuType)) })
|
|
28084
27200
|
);
|
|
28085
27201
|
const DesktopMenu = styled(BaseDesktopMenu)({
|
|
28086
27202
|
"& > div": {
|
|
@@ -28089,8 +27205,8 @@ const DesktopMenu = styled(BaseDesktopMenu)({
|
|
|
28089
27205
|
}
|
|
28090
27206
|
}
|
|
28091
27207
|
});
|
|
28092
|
-
const NulogyLogo$1 = () => /* @__PURE__ */
|
|
28093
|
-
/* @__PURE__ */
|
|
27208
|
+
const NulogyLogo$1 = () => /* @__PURE__ */ jsx$1("svg", { width: "76px", height: "18px", viewBox: "0 0 76 18", children: /* @__PURE__ */ jsx$1("g", { id: "FInal", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ jsx$1("g", { id: "DQI", transform: "translate(-924.000000, -30.000000)", children: /* @__PURE__ */ jsx$1("g", { id: "Branding", transform: "translate(916.000000, 24.000000)", children: /* @__PURE__ */ jsx$1("g", { id: "Logo/Wordmark/White", transform: "translate(8.000000, 6.000000)", children: /* @__PURE__ */ jsxs("g", { id: "Group", children: [
|
|
27209
|
+
/* @__PURE__ */ jsx$1(
|
|
28094
27210
|
"path",
|
|
28095
27211
|
{
|
|
28096
27212
|
d: "M27.2853035,13.6251552 L24.3693609,13.6251552 L24.3693609,5.29388243 L27.0621839,5.29388243 L27.0621839,6.69024606 C27.4508582,6.19089626 27.9367815,5.77426587 28.4910287,5.46515515 C28.9949427,5.19647371 29.5588999,5.05803724 30.1309029,5.0626097 C31.018985,5.0626097 31.6927403,5.31533697 32.1521688,5.82079152 C32.6115974,6.32624606 32.8413117,7.06588243 32.8413117,8.03970061 L32.8413117,13.6251552 L29.9407567,13.6251552 L29.9407567,8.85242788 C29.9407567,8.41606425 29.8506295,8.08624606 29.6703753,7.86297334 C29.490121,7.63970061 29.2230369,7.5306097 28.869123,7.53570061 C28.3606008,7.53570061 27.9693172,7.70515515 27.695272,8.04406425 C27.4212269,8.38297334 27.2845707,8.87642788 27.2853035,9.52442788 L27.2853035,13.6251552 Z",
|
|
@@ -28098,7 +27214,7 @@ const NulogyLogo$1 = () => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width:
|
|
|
28098
27214
|
fill: "#00438F"
|
|
28099
27215
|
}
|
|
28100
27216
|
),
|
|
28101
|
-
/* @__PURE__ */
|
|
27217
|
+
/* @__PURE__ */ jsx$1(
|
|
28102
27218
|
"path",
|
|
28103
27219
|
{
|
|
28104
27220
|
d: "M40.1451818,5.0625 L43.0435386,5.0625 L43.0435386,12.7239545 L40.3507157,13.7919545 L40.3507157,12.1643182 C39.9614808,12.6643061 39.4757347,13.082268 38.9218708,13.3937727 C38.4207722,13.6600419 37.8602579,13.7969677 37.2918886,13.7919545 C36.4023411,13.7919545 35.7267539,13.5374091 35.2651271,13.0283182 C34.8035003,12.5192273 34.5719542,11.7792273 34.5704887,10.8083182 L34.5704887,5.0625 L37.4864313,5.0625 L37.4864313,10.0010455 C37.4864313,10.4374091 37.5765584,10.7686818 37.7568127,10.9948636 C37.937067,11.2210455 38.2041511,11.3334091 38.5580649,11.3319545 C39.0709836,11.3319545 39.4622673,11.1610455 39.7319159,10.8192273 C40.0015646,10.4774091 40.1382208,9.98577273 40.1418845,9.34431818 L40.1451818,5.0625 Z",
|
|
@@ -28106,7 +27222,7 @@ const NulogyLogo$1 = () => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width:
|
|
|
28106
27222
|
fill: "#00438F"
|
|
28107
27223
|
}
|
|
28108
27224
|
),
|
|
28109
|
-
/* @__PURE__ */
|
|
27225
|
+
/* @__PURE__ */ jsx$1(
|
|
28110
27226
|
"polygon",
|
|
28111
27227
|
{
|
|
28112
27228
|
id: "Path",
|
|
@@ -28114,7 +27230,7 @@ const NulogyLogo$1 = () => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width:
|
|
|
28114
27230
|
points: "46.3103725 13.812 44.7716165 13.812 44.7716165 0.612 46.3103725 9.99200722e-16"
|
|
28115
27231
|
}
|
|
28116
27232
|
),
|
|
28117
|
-
/* @__PURE__ */
|
|
27233
|
+
/* @__PURE__ */ jsx$1(
|
|
28118
27234
|
"path",
|
|
28119
27235
|
{
|
|
28120
27236
|
d: "M47.6052632,9.60286364 C47.6052632,8.28359091 48.0276883,7.19704545 48.8725386,6.34322727 C49.7173889,5.48940909 50.7886562,5.0625 52.0863404,5.0625 C53.3840246,5.0625 54.4552919,5.48940909 55.3001422,6.34322727 C56.1449925,7.19704545 56.5674176,8.28359091 56.5674176,9.60286364 C56.5674176,10.9279545 56.1449925,12.0188636 55.3001422,12.8755909 C54.4552919,13.7323182 53.3840246,14.1592273 52.0863404,14.1563329 C50.7937854,14.1563329 49.7239836,13.7294091 48.8769351,12.8755909 C48.0298865,12.0217727 47.6059959,10.9308636 47.6052632,9.60286364 Z M49.133028,9.60286364 C49.133028,10.6392273 49.4030431,11.4730455 49.9430731,12.1043182 C50.4831032,12.7355909 51.1912973,13.0515909 52.0676555,13.0523182 C52.9469446,13.0523182 53.6580697,12.7363182 54.2010308,12.1043182 C54.7439918,11.4723182 55.0173042,10.6385 55.0209679,9.60286364 C55.0209679,8.57377273 54.7476555,7.74322727 54.2010308,7.11122727 C53.654406,6.47922727 52.9432809,6.16359091 52.0676555,6.16431693 C51.1883664,6.16431693 50.4801722,6.48031818 49.9430731,7.11231818 C49.405974,7.74431818 49.135959,8.5745 49.133028,9.60286364 Z",
|
|
@@ -28122,7 +27238,7 @@ const NulogyLogo$1 = () => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width:
|
|
|
28122
27238
|
fill: "#00438F"
|
|
28123
27239
|
}
|
|
28124
27240
|
),
|
|
28125
|
-
/* @__PURE__ */
|
|
27241
|
+
/* @__PURE__ */ jsx$1(
|
|
28126
27242
|
"path",
|
|
28127
27243
|
{
|
|
28128
27244
|
d: "M64.0871268,13.2650455 C63.6599049,13.5160632 63.2028112,13.7132209 62.7264269,13.8519545 C62.2872699,13.9773973 61.8326004,14.0412883 61.375619,14.0417727 C60.1402177,14.0417727 59.1418582,13.6348636 58.3805404,12.8210455 C57.6192225,12.0072273 57.23893,10.9377727 57.2396617,9.61268182 C57.2396617,8.26213636 57.6463339,7.16613636 58.4596764,6.32468182 C59.2730188,5.48322727 60.3354932,5.0625 61.6470995,5.0625 C62.0607066,5.06850508 62.4731354,5.10790785 62.8803025,5.18031818 C63.3492567,5.25740909 63.891485,5.37595455 64.5069874,5.53595455 L65.5962068,5.09959091 L65.5962068,12.6159545 C65.5962068,13.6203182 65.5482123,14.3552273 65.4522232,14.8206818 C65.3679541,15.2558519 65.2020399,15.6714278 64.9631186,16.0457727 C64.6019617,16.5876404 64.0882569,17.0121536 63.4859129,17.2665 C62.7842363,17.5630036 62.0270581,17.7080287 61.2646087,17.6919545 C60.7156985,17.6919213 60.1690427,17.6222662 59.6379238,17.4846818 C59.0829675,17.3384872 58.5470293,17.1287137 58.0409149,16.8595909 L57.7892184,15.0475909 L58.9158076,15.7785 C59.2556951,15.9885109 59.62653,16.1445715 60.014919,16.2410455 C60.4392817,16.3595698 60.8776378,16.4215675 61.3184652,16.4254091 C62.1977543,16.4254091 62.8795698,16.2072273 63.3639115,15.7708636 C63.8482533,15.3345 64.089325,14.7134091 64.0871268,13.9075909 L64.0871268,13.2650455 Z M64.0871268,12.1272273 L64.0871268,6.79159091 C63.7249004,6.6117699 63.3457079,6.46780202 62.9550421,6.36177273 C62.6131894,6.26948879 62.2607514,6.22145438 61.9064898,6.21886364 C60.9693141,6.21886364 60.2149573,6.53159091 59.6434194,7.15704545 C59.0718814,7.7825 58.7857461,8.6145 58.7850134,9.65304545 C58.7850134,10.6508636 59.0414727,11.4428636 59.5543914,12.0290455 C60.06731,12.6152273 60.7582847,12.9079545 61.6273155,12.9072286 C61.9914329,12.9029522 62.3527769,12.8437294 62.6989491,12.7315909 C63.1785695,12.5707605 63.6430713,12.3685328 64.0871268,12.1272273 L64.0871268,12.1272273 Z",
|
|
@@ -28130,7 +27246,7 @@ const NulogyLogo$1 = () => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width:
|
|
|
28130
27246
|
fill: "#00438F"
|
|
28131
27247
|
}
|
|
28132
27248
|
),
|
|
28133
|
-
/* @__PURE__ */
|
|
27249
|
+
/* @__PURE__ */ jsx$1(
|
|
28134
27250
|
"path",
|
|
28135
27251
|
{
|
|
28136
27252
|
d: "M66.8740602,5.0625 L68.4765646,5.0625 L70.9913315,11.6079545 L73.7588941,5.0625 L75.0635393,5.0625 L71.0572782,14.2446818 L70.9913315,14.3745 C70.3582433,15.8043182 69.8706042,16.8225 69.5284142,17.4290455 L67.8610622,17.4290455 C68.2162734,17.063213 68.5346911,16.6638682 68.8117936,16.2366818 C69.158768,15.6835017 69.4668841,15.1072249 69.7339481,14.5119545 L70.2747109,13.3566818 L66.8740602,5.0625 Z",
|
|
@@ -28138,7 +27254,7 @@ const NulogyLogo$1 = () => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width:
|
|
|
28138
27254
|
fill: "#00438F"
|
|
28139
27255
|
}
|
|
28140
27256
|
),
|
|
28141
|
-
/* @__PURE__ */
|
|
27257
|
+
/* @__PURE__ */ jsx$1(
|
|
28142
27258
|
"path",
|
|
28143
27259
|
{
|
|
28144
27260
|
d: "M17.3967355,0.639272727 L20.618231,1.91781818 L20.618231,13.4301818 C20.618231,15.9021818 17.5407191,16.3363636 15.4633985,16.6276364 C16.6515379,16.3363636 17.4033301,16.0090909 17.3967355,13.4301818 L17.3967355,3.19745455 L14.1752399,1.91781818 L17.3967355,0.639272727 Z M3.86557485,15.9883636 L3.86557485,8.95527273 C3.86557485,8.24727273 4.40084211,7.44654545 5.05041695,7.17054545 L8.37632809,5.75236364 L8.37632809,10.2250909 L11.5978237,12.1527273 C12.2473985,12.48 13.5311606,12.4876364 13.5311606,11.5123636 L13.5311606,9.59345455 L12.2408038,8.95309091 L12.2408038,0 L2.41804511,3.59236364 C1.08262474,4.08 1.81208432e-14,5.61709091 1.81208432e-14,7.03527273 L1.81208432e-14,17.5876364 L3.86557485,15.9883636 Z",
|
|
@@ -28148,7 +27264,7 @@ const NulogyLogo$1 = () => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width:
|
|
|
28148
27264
|
)
|
|
28149
27265
|
] }) }) }) }) }) });
|
|
28150
27266
|
const borderStyle$1 = "1px solid #e4e7eb";
|
|
28151
|
-
const NulogyLogoContainer = ({ subText, height: height2 }) => /* @__PURE__ */
|
|
27267
|
+
const NulogyLogoContainer = ({ subText, height: height2 }) => /* @__PURE__ */ jsxs(
|
|
28152
27268
|
Flex,
|
|
28153
27269
|
{
|
|
28154
27270
|
px: "x1",
|
|
@@ -28160,8 +27276,8 @@ const NulogyLogoContainer = ({ subText, height: height2 }) => /* @__PURE__ */ js
|
|
|
28160
27276
|
borderLeft: borderStyle$1,
|
|
28161
27277
|
borderRight: borderStyle$1,
|
|
28162
27278
|
children: [
|
|
28163
|
-
/* @__PURE__ */
|
|
28164
|
-
subText && /* @__PURE__ */
|
|
27279
|
+
/* @__PURE__ */ jsx$1(Box, { width: "76px", height: "18px", children: /* @__PURE__ */ jsx$1(NulogyLogo$1, {}) }),
|
|
27280
|
+
subText && /* @__PURE__ */ jsx$1(
|
|
28165
27281
|
Text,
|
|
28166
27282
|
{
|
|
28167
27283
|
fontSize: "8px",
|
|
@@ -28176,7 +27292,7 @@ const NulogyLogoContainer = ({ subText, height: height2 }) => /* @__PURE__ */ js
|
|
|
28176
27292
|
]
|
|
28177
27293
|
}
|
|
28178
27294
|
);
|
|
28179
|
-
const EnvironmentBanner = ({ children }) => /* @__PURE__ */
|
|
27295
|
+
const EnvironmentBanner = ({ children }) => /* @__PURE__ */ jsx$1(Box, { bg: "darkBlue", textAlign: "center", children: /* @__PURE__ */ jsx$1(Text, { fontSize: "10px", letterSpacing: "0.5px", fontWeight: "bold", color: "white", textTransform: "uppercase", py: "2px", children }) });
|
|
28180
27296
|
const logoColors = {
|
|
28181
27297
|
white: "#FFFFFF",
|
|
28182
27298
|
blue: "#0E77D2"
|
|
@@ -28214,14 +27330,14 @@ const sizes$1 = {
|
|
|
28214
27330
|
};
|
|
28215
27331
|
const getSize$1 = (size2) => sizes$1[size2] || sizes$1.medium;
|
|
28216
27332
|
function LettermarkLogo({ size: size2, letterFill, ...props }) {
|
|
28217
|
-
return /* @__PURE__ */
|
|
27333
|
+
return /* @__PURE__ */ jsx$1(
|
|
28218
27334
|
"svg",
|
|
28219
27335
|
{
|
|
28220
27336
|
...getSize$1(size2),
|
|
28221
27337
|
...props,
|
|
28222
27338
|
viewBox: "0 0 37 32",
|
|
28223
27339
|
style: { display: "block", margin: size2 === "large" ? null : "2px 0" },
|
|
28224
|
-
children: /* @__PURE__ */
|
|
27340
|
+
children: /* @__PURE__ */ jsx$1(
|
|
28225
27341
|
"path",
|
|
28226
27342
|
{
|
|
28227
27343
|
fill: letterFill,
|
|
@@ -28247,7 +27363,7 @@ const sizes = {
|
|
|
28247
27363
|
};
|
|
28248
27364
|
const getSize = (size2) => sizes[size2] || sizes.medium;
|
|
28249
27365
|
function WordmarkLogo({ size: size2, logoFill, letterFill, ...props }) {
|
|
28250
|
-
return /* @__PURE__ */
|
|
27366
|
+
return /* @__PURE__ */ jsxs(
|
|
28251
27367
|
"svg",
|
|
28252
27368
|
{
|
|
28253
27369
|
...getSize(size2),
|
|
@@ -28255,20 +27371,20 @@ function WordmarkLogo({ size: size2, logoFill, letterFill, ...props }) {
|
|
|
28255
27371
|
viewBox: "0 0 133 32",
|
|
28256
27372
|
style: { display: "block", margin: size2 === "medium" ? "2px 0" : null },
|
|
28257
27373
|
children: [
|
|
28258
|
-
/* @__PURE__ */
|
|
27374
|
+
/* @__PURE__ */ jsx$1(
|
|
28259
27375
|
"path",
|
|
28260
27376
|
{
|
|
28261
27377
|
fill: letterFill,
|
|
28262
27378
|
d: "M30.6967273,1.13648485 L36.3810909,3.40945455 L36.3810909,23.8758788 C36.3810909,28.2705455 30.9507879,29.0424242 27.2853333,29.5602424 C29.3818182,29.0424242 30.7083636,28.4606061 30.6967273,23.8758788 L30.6967273,5.68436364 L25.0123636,3.40945455 L30.6967273,1.13648485 Z M6.82084848,28.4237576 L6.82084848,15.9204848 C6.82084848,14.6618182 7.76533333,13.238303 8.91151515,12.7476364 L14.7801212,10.2264242 L14.7801212,18.1779394 L20.4644848,21.6048485 C21.6106667,22.1866667 23.8758788,22.2002424 23.8758788,20.4664242 L23.8758788,17.0550303 L21.5990303,15.9166061 L21.5990303,1.56319402e-13 L4.26666667,6.38642424 C1.91030303,7.25333333 3.55271368e-15,9.98593939 3.55271368e-15,12.5071515 L3.55271368e-15,31.2669091 L6.82084848,28.4237576 Z"
|
|
28263
27379
|
}
|
|
28264
27380
|
),
|
|
28265
|
-
/* @__PURE__ */
|
|
28266
|
-
/* @__PURE__ */
|
|
28267
|
-
/* @__PURE__ */
|
|
28268
|
-
/* @__PURE__ */
|
|
28269
|
-
/* @__PURE__ */
|
|
28270
|
-
/* @__PURE__ */
|
|
28271
|
-
/* @__PURE__ */
|
|
27381
|
+
/* @__PURE__ */ jsxs("g", { transform: "translate(43.000000, 0.000000)", fill: logoFill, children: [
|
|
27382
|
+
/* @__PURE__ */ jsx$1("path", { d: "M5.14521212,24.2224981 L1.33226763e-14,24.2224981 L1.33226763e-14,9.41134654 L4.75151515,9.41134654 L4.75151515,11.8937708 C5.43733518,11.0060378 6.29475204,10.2653615 7.27272727,9.71583139 C8.16188898,9.23817548 9.15699751,8.9920662 10.166303,9.00019502 C11.7333333,9.00019502 12.9221818,9.44948795 13.7328485,10.3480738 C14.5435152,11.2466597 14.9488485,12.5615688 14.9488485,14.2928011 L14.9488485,24.2224981 L9.83078788,24.2224981 L9.83078788,15.7376496 C9.83078788,14.961892 9.67175758,14.3755486 9.35369697,13.9786193 C9.03563636,13.58169 8.56436364,13.3877506 7.93987879,13.3968011 C7.04258586,13.3968011 6.35216162,13.6980536 5.86860606,14.3005587 C5.38505051,14.9030637 5.14391919,15.7803162 5.14521212,16.9323162 L5.14521212,24.2224981 Z" }),
|
|
27383
|
+
/* @__PURE__ */ jsx$1("path", { d: "M27.8366061,9 L32.9507879,9 L32.9507879,22.6203636 L28.1992727,24.5190303 L28.1992727,21.6254545 C27.5124636,22.5143219 26.6553593,23.2573653 25.6780606,23.8111515 C24.7938668,24.2845189 23.8048332,24.5279425 22.8019394,24.5190303 C21.2323232,24.5190303 20.0402424,24.0665051 19.225697,23.1614545 C18.4111515,22.256404 18.0025859,20.9408485 18,19.2147879 L18,9 L23.1452121,9 L23.1452121,17.7796364 C23.1452121,18.5553939 23.3042424,19.1443232 23.622303,19.5464242 C23.9403636,19.9485253 24.4116364,20.1482828 25.0361212,20.145697 C25.9411717,20.145697 26.631596,19.8418586 27.1073939,19.2341818 C27.5831919,18.6265051 27.8243232,17.7524848 27.8307879,16.6121212 L27.8366061,9 Z" }),
|
|
27384
|
+
/* @__PURE__ */ jsx$1("polygon", { id: "Path", points: "38.7151515 24.5546667 36 24.5546667 36 1.088 38.7151515 1.15463195e-13" }),
|
|
27385
|
+
/* @__PURE__ */ jsx$1("path", { d: "M41,17.0717576 C41,14.7263838 41.7453737,12.7947475 43.2361212,11.2768485 C44.7268687,9.75894949 46.6171313,9 48.9069091,9 C51.1966869,9 53.0869495,9.75894949 54.577697,11.2768485 C56.0684444,12.7947475 56.8138182,14.7263838 56.8138182,17.0717576 C56.8138182,19.4274747 56.0684444,21.3668687 54.577697,22.8899394 C53.0869495,24.4130101 51.1966869,25.1719596 48.9069091,25.1667879 C46.6261818,25.1667879 44.7385051,24.4078384 43.2438788,22.8899394 C41.7492525,21.3720404 41.0012929,19.4326465 41,17.0717576 Z M43.6957576,17.0717576 C43.6957576,18.9141818 44.172202,20.3965253 45.1250909,21.5187879 C46.0779798,22.6410505 47.327596,23.2028283 48.8739394,23.2041212 C50.4254545,23.2041212 51.6802424,22.6423434 52.638303,21.5187879 C53.5963636,20.3952323 54.0786263,18.9128889 54.0850909,17.0717576 C54.0850909,15.2422626 53.6028283,13.7657374 52.638303,12.6421818 C51.6737778,11.5186263 50.4189899,10.9574949 48.8739394,10.9587879 C47.3224242,10.9587879 46.0728081,11.5205657 45.1250909,12.6441212 C44.1773737,13.7676768 43.7009293,15.2435556 43.6957576,17.0717576 Z" }),
|
|
27386
|
+
/* @__PURE__ */ jsx$1("path", { d: "M70.0824261,23.582303 C69.3285884,24.0285568 68.5220417,24.3790594 67.6814564,24.625697 C66.9065592,24.8487063 66.1042899,24.9622904 65.2979413,24.9631515 C63.1180625,24.9631515 61.3564463,24.2397576 60.0130928,22.7929697 C58.6697392,21.3461818 57.9987089,19.4449293 58.0000019,17.0892121 C58.0000019,14.6882424 58.7175776,12.739798 60.1527291,11.2438788 C61.5878807,9.7479596 63.4626281,9 65.7769716,9 C66.5067857,9.0106757 67.2345208,9.08072506 67.9529716,9.20945455 C68.7804463,9.34650505 69.737214,9.55725253 70.8232746,9.84169697 L72.745214,9.06593939 L72.745214,22.4283636 C72.745214,24.213899 72.6605271,25.520404 72.4911534,26.3478788 C72.3424597,27.1215145 72.0497022,27.860316 71.6281231,28.5258182 C70.9908577,29.4891385 70.0844202,30.2438287 69.0215776,30.696 C67.7834618,31.2231176 66.4474127,31.48094 65.1020625,31.4523636 C64.1335045,31.4523045 63.1689244,31.3284732 62.2317594,31.0838788 C61.252533,30.8239772 60.3068642,30.4510466 59.41382,29.9726061 L58.9696988,26.7512727 L60.9575776,28.0506667 C61.5573127,28.4240193 62.2116549,28.7014604 62.8969716,28.8729697 C63.6457641,29.0836796 64.4192481,29.1938978 65.1970928,29.2007273 C66.7486079,29.2007273 67.9516786,28.8128485 68.8063049,28.0370909 C69.6609312,27.2613333 70.0863049,26.1571717 70.0824261,24.7246061 L70.0824261,23.582303 Z M70.0824261,21.5595152 L70.0824261,12.0739394 C69.4432737,11.7542576 68.7741844,11.4983147 68.0848503,11.3098182 C67.4816476,11.1457578 66.859767,11.0603633 66.2346685,11.0557576 C64.581012,11.0557576 63.2499413,11.6117172 62.2414564,12.7236364 C61.2329716,13.8355556 60.7280827,15.3146667 60.7267897,17.1609697 C60.7267897,18.9348687 61.179315,20.3428687 62.0843655,21.3849697 C62.989416,22.4270707 64.2086483,22.9474747 65.7420625,22.9461818 C66.3845516,22.9385817 67.0221469,22.8332967 67.6329716,22.6339394 C68.4792669,22.3480186 69.2988853,21.9885027 70.0824261,21.5595152 L70.0824261,21.5595152 Z" }),
|
|
27387
|
+
/* @__PURE__ */ jsx$1("path", { d: "M75,9 L77.8276364,9 L82.2649697,20.6363636 L87.1483636,9 L89.4504242,9 L82.3813333,25.3238788 L82.2649697,25.5546667 C81.1478788,28.0965657 80.2874343,29.9066667 79.6836364,30.9849697 L76.7415758,30.9849697 C77.3683498,30.3346009 77.9302011,29.6246546 78.4191515,28.8652121 C79.0313917,27.8817808 79.5750659,26.8572886 80.046303,25.7990303 L81.0004848,23.7452121 L75,9 Z" })
|
|
28272
27388
|
] })
|
|
28273
27389
|
]
|
|
28274
27390
|
}
|
|
@@ -28335,8 +27451,8 @@ const Branding = ({
|
|
|
28335
27451
|
...props
|
|
28336
27452
|
}) => {
|
|
28337
27453
|
const theme = useTheme();
|
|
28338
|
-
return /* @__PURE__ */
|
|
28339
|
-
logoType === "lettermark" ? /* @__PURE__ */
|
|
27454
|
+
return /* @__PURE__ */ jsxs(BrandingWrap$1, { size: size2, alignment, className, ...props, children: [
|
|
27455
|
+
logoType === "lettermark" ? /* @__PURE__ */ jsx$1(LettermarkLogo, { size: size2, letterFill: getLogoColor(logoColor, theme).letter }) : /* @__PURE__ */ jsx$1(
|
|
28340
27456
|
WordmarkLogo,
|
|
28341
27457
|
{
|
|
28342
27458
|
size: size2,
|
|
@@ -28344,9 +27460,9 @@ const Branding = ({
|
|
|
28344
27460
|
logoFill: getLogoColor(logoColor, theme).logo
|
|
28345
27461
|
}
|
|
28346
27462
|
),
|
|
28347
|
-
subtext && /* @__PURE__ */
|
|
28348
|
-
alignment !== "left" && withLine && /* @__PURE__ */
|
|
28349
|
-
/* @__PURE__ */
|
|
27463
|
+
subtext && /* @__PURE__ */ jsxs(Flex, { justifyContent: getAlignment$1(alignment), width: "100%", py: BrandingBoxPaddings[size2], children: [
|
|
27464
|
+
alignment !== "left" && withLine && /* @__PURE__ */ jsx$1(Line, { logoColor }),
|
|
27465
|
+
/* @__PURE__ */ jsx$1(
|
|
28350
27466
|
BrandingText,
|
|
28351
27467
|
{
|
|
28352
27468
|
logoColor,
|
|
@@ -28358,7 +27474,7 @@ const Branding = ({
|
|
|
28358
27474
|
children: subtext
|
|
28359
27475
|
}
|
|
28360
27476
|
),
|
|
28361
|
-
alignment !== "right" && withLine && /* @__PURE__ */
|
|
27477
|
+
alignment !== "right" && withLine && /* @__PURE__ */ jsx$1(Line, { logoColor })
|
|
28362
27478
|
] })
|
|
28363
27479
|
] });
|
|
28364
27480
|
};
|
|
@@ -28371,7 +27487,7 @@ const BrandLogoContainer = ({
|
|
|
28371
27487
|
brandingLinkComponent,
|
|
28372
27488
|
subtext
|
|
28373
27489
|
}) => {
|
|
28374
|
-
return /* @__PURE__ */
|
|
27490
|
+
return /* @__PURE__ */ jsx$1(Box, { maxWidth: MAX_LOGO_WIDTH, maxHeight: MAX_LOGO_HEIGHT, children: /* @__PURE__ */ jsxs(
|
|
28375
27491
|
Link$1,
|
|
28376
27492
|
{
|
|
28377
27493
|
"aria-label": "Home",
|
|
@@ -28382,15 +27498,15 @@ const BrandLogoContainer = ({
|
|
|
28382
27498
|
variant: "desktop",
|
|
28383
27499
|
style: { display: "block" },
|
|
28384
27500
|
children: [
|
|
28385
|
-
logoSrc && /* @__PURE__ */
|
|
28386
|
-
!logoSrc && /* @__PURE__ */
|
|
27501
|
+
logoSrc && /* @__PURE__ */ jsx$1("img", { src: logoSrc, style: { maxWidth: MAX_LOGO_WIDTH, maxHeight: MAX_LOGO_HEIGHT }, alt: "" }),
|
|
27502
|
+
!logoSrc && /* @__PURE__ */ jsx$1(Branding, { size: subtext ? "small" : "medium", logoColor: "blue", subtext })
|
|
28387
27503
|
]
|
|
28388
27504
|
}
|
|
28389
27505
|
) });
|
|
28390
27506
|
};
|
|
28391
|
-
const Prefix = ({ prefix: prefix2, prefixWidth, ...props }) => prefix2 ? /* @__PURE__ */
|
|
27507
|
+
const Prefix = ({ prefix: prefix2, prefixWidth, ...props }) => prefix2 ? /* @__PURE__ */ jsx$1(Box, { width: prefixWidth, pt: "x1", pr: "x1", pb: "x1", children: /* @__PURE__ */ jsx$1(Text, { ...props, children: prefix2 }) }) : null;
|
|
28392
27508
|
function Suffix({ suffix, suffixWidth, ...props }) {
|
|
28393
|
-
return suffix ? /* @__PURE__ */
|
|
27509
|
+
return suffix ? /* @__PURE__ */ jsx$1(Box, { width: suffixWidth, pt: "x1", pb: "x1", pl: "x1", children: /* @__PURE__ */ jsx$1(Text, { ...props, children: suffix }) }) : null;
|
|
28394
27510
|
}
|
|
28395
27511
|
const InputField = forwardRef(
|
|
28396
27512
|
({
|
|
@@ -28420,11 +27536,11 @@ const InputField = forwardRef(
|
|
|
28420
27536
|
}, ref) => {
|
|
28421
27537
|
const componentVariant = useComponentVariant(variant22);
|
|
28422
27538
|
const theme = useTheme();
|
|
28423
|
-
return /* @__PURE__ */
|
|
28424
|
-
/* @__PURE__ */
|
|
28425
|
-
/* @__PURE__ */
|
|
28426
|
-
iconLeft && (iconLeftTooltip ? /* @__PURE__ */
|
|
28427
|
-
/* @__PURE__ */
|
|
27539
|
+
return /* @__PURE__ */ jsx$1(MaybeFieldLabel, { labelText, requirementText, helpText, children: /* @__PURE__ */ jsxs(Flex, { alignItems: "flex-start", children: [
|
|
27540
|
+
/* @__PURE__ */ jsx$1(Prefix, { prefix: prefix2, prefixWidth, textAlign: prefixAlignment }),
|
|
27541
|
+
/* @__PURE__ */ jsxs(InputWrapper, { maxWidth: inputWidth, children: [
|
|
27542
|
+
iconLeft && (iconLeftTooltip ? /* @__PURE__ */ jsx$1(Tooltip, { tooltip: iconLeftTooltip, ...iconLeftTooltipProps, children: /* @__PURE__ */ jsx$1(InputIcon, { left: "x1", icon: iconLeft, size: iconLeftSize }) }) : /* @__PURE__ */ jsx$1(InputIcon, { left: "x1", icon: iconLeft, size: iconLeftSize })),
|
|
27543
|
+
/* @__PURE__ */ jsx$1(
|
|
28428
27544
|
StyledInput,
|
|
28429
27545
|
{
|
|
28430
27546
|
paddingLeft: iconLeft ? `calc(${theme.space[iconLeftSize]} + ${theme.space.x1_5})` : theme.space.x1,
|
|
@@ -28440,9 +27556,9 @@ const InputField = forwardRef(
|
|
|
28440
27556
|
...props
|
|
28441
27557
|
}
|
|
28442
27558
|
),
|
|
28443
|
-
iconRight && (iconRightTooltip ? /* @__PURE__ */
|
|
27559
|
+
iconRight && (iconRightTooltip ? /* @__PURE__ */ jsx$1(Tooltip, { tooltip: iconRightTooltip, ...iconRightTooltipProps, children: /* @__PURE__ */ jsx$1(InputIcon, { right: "x1", icon: iconRight, size: iconRightSize }) }) : /* @__PURE__ */ jsx$1(InputIcon, { right: "x1", icon: iconRight, size: iconRightSize }))
|
|
28444
27560
|
] }),
|
|
28445
|
-
/* @__PURE__ */
|
|
27561
|
+
/* @__PURE__ */ jsx$1(Suffix, { suffix, suffixWidth, textAlign: suffixAlignment })
|
|
28446
27562
|
] }) });
|
|
28447
27563
|
}
|
|
28448
27564
|
);
|
|
@@ -28526,9 +27642,9 @@ const Input = forwardRef(({ errorMessage, errorList, className, ...props }, ref)
|
|
|
28526
27642
|
const spaceProps = getSubset(props, propTypes$1.space);
|
|
28527
27643
|
const layoutProps = getSubset(props, propTypes$1.space);
|
|
28528
27644
|
const restProps = omitSubset(props, propTypes$1.space);
|
|
28529
|
-
return /* @__PURE__ */
|
|
28530
|
-
/* @__PURE__ */
|
|
28531
|
-
/* @__PURE__ */
|
|
27645
|
+
return /* @__PURE__ */ jsxs(Field, { className, ...spaceProps, ...layoutProps, children: [
|
|
27646
|
+
/* @__PURE__ */ jsx$1(InputField, { ...restProps, error: !!(errorMessage || errorList), ref }),
|
|
27647
|
+
/* @__PURE__ */ jsx$1(InlineValidation, { mt: "x1", errorMessage, errorList })
|
|
28532
27648
|
] });
|
|
28533
27649
|
});
|
|
28534
27650
|
const BaseNavBarSearch = ({ name = "global-search", onSubmit, ...props }) => {
|
|
@@ -28537,9 +27653,9 @@ const BaseNavBarSearch = ({ name = "global-search", onSubmit, ...props }) => {
|
|
|
28537
27653
|
onSubmit(e3);
|
|
28538
27654
|
};
|
|
28539
27655
|
const { t: t3 } = useTranslation();
|
|
28540
|
-
return /* @__PURE__ */
|
|
28541
|
-
/* @__PURE__ */
|
|
28542
|
-
/* @__PURE__ */
|
|
27656
|
+
return /* @__PURE__ */ jsx$1("form", { ...props, onSubmit: handleOnSubmit, children: /* @__PURE__ */ jsxs(Flex, { role: "search", children: [
|
|
27657
|
+
/* @__PURE__ */ jsx$1(Input, { id: "navbar-search", type: "search", "aria-labelledby": name, required: true, placeholder: t3("search nulogy") }),
|
|
27658
|
+
/* @__PURE__ */ jsx$1("button", { id: name, "aria-label": name, children: /* @__PURE__ */ jsx$1(Icon, { icon: "search" }) })
|
|
28543
27659
|
] }) });
|
|
28544
27660
|
};
|
|
28545
27661
|
const NavBarSearch = styled(BaseNavBarSearch)(({ theme }) => ({
|
|
@@ -28696,25 +27812,24 @@ const renderMenuLink = (menuItem, linkOnClick, themeColorObject2, layer) => {
|
|
|
28696
27812
|
href: menuItem.href,
|
|
28697
27813
|
as: menuItem.as,
|
|
28698
27814
|
to: menuItem.to,
|
|
28699
|
-
// eslint-disable-next-line no-mixed-operators
|
|
28700
27815
|
pl: layer === 0 ? getPaddingLeft(layer) : `${24 * layer + 20}px`,
|
|
28701
27816
|
mb: "x1",
|
|
28702
27817
|
target: menuItem.openInNew ? "_blank" : void 0
|
|
28703
27818
|
};
|
|
28704
27819
|
const topLevel = layer === 0;
|
|
28705
|
-
return /* @__PURE__ */
|
|
27820
|
+
return /* @__PURE__ */ jsx$1("li", { children: topLevel ? /* @__PURE__ */ jsxs(TopLevelLink, { ...sharedLinkProps, children: [
|
|
28706
27821
|
menuItem.name,
|
|
28707
|
-
menuItem.openInNew && /* @__PURE__ */
|
|
28708
|
-
] }) : /* @__PURE__ */
|
|
27822
|
+
menuItem.openInNew && /* @__PURE__ */ jsx$1(Icon, { size: topLevel ? "x3" : "x2", icon: "openInNew" })
|
|
27823
|
+
] }) : /* @__PURE__ */ jsxs(DropdownLink, { ...sharedLinkProps, children: [
|
|
28709
27824
|
menuItem.name,
|
|
28710
|
-
menuItem.openInNew && /* @__PURE__ */
|
|
27825
|
+
menuItem.openInNew && /* @__PURE__ */ jsx$1(Icon, { size: topLevel ? "x3" : "x2", icon: "openInNew" })
|
|
28711
27826
|
] }) }, menuItem.key ?? menuItem.name);
|
|
28712
27827
|
};
|
|
28713
|
-
const renderCustom = (menuItem, linkOnClick, themeColorObject2, layer) => /* @__PURE__ */
|
|
28714
|
-
const renderSubMenu = (menuItem, linkOnClick, themeColorObject2, layer) => /* @__PURE__ */
|
|
27828
|
+
const renderCustom = (menuItem, linkOnClick, themeColorObject2, layer) => /* @__PURE__ */ jsx$1("li", { children: menuItem.render({ size: "small", onItemClick: linkOnClick, layer }) }, menuItem.key ?? menuItem.name);
|
|
27829
|
+
const renderSubMenu = (menuItem, linkOnClick, themeColorObject2, layer) => /* @__PURE__ */ jsx$1("li", { style: { display: "block" }, children: /* @__PURE__ */ jsx$1(SubMenu, { menuItem, layer, themeColorObject: themeColorObject2, linkOnClick }) }, menuItem.key ?? menuItem.name);
|
|
28715
27830
|
const renderText = (menuItem, linkOnClick, themeColorObject2, layer) => {
|
|
28716
27831
|
const MenuText2 = layer === 0 ? TopLevelText : DropdownText;
|
|
28717
|
-
return /* @__PURE__ */
|
|
27832
|
+
return /* @__PURE__ */ jsx$1("li", { children: /* @__PURE__ */ jsx$1(MenuText2, { pl: getPaddingLeft(layer), mb: "x1", children: menuItem.name }) }, menuItem.key ?? menuItem.name);
|
|
28718
27833
|
};
|
|
28719
27834
|
const getRenderFunction = (menuItem) => {
|
|
28720
27835
|
if (menuItem.items) {
|
|
@@ -28732,12 +27847,12 @@ const renderMenuItems = (menuItems, linkOnClick, themeColorObject2, layer) => me
|
|
|
28732
27847
|
return render(menuItem, linkOnClick, themeColorObject2, layer);
|
|
28733
27848
|
});
|
|
28734
27849
|
const renderTopLayerMenuItems = (menuData, linkOnClick, themeColorObject2) => renderMenuItems(menuData, linkOnClick, themeColorObject2, 0);
|
|
28735
|
-
const getSubMenuHeading = (layer, name) => layer === 0 ? /* @__PURE__ */
|
|
27850
|
+
const getSubMenuHeading = (layer, name) => layer === 0 ? /* @__PURE__ */ jsx$1(TopLevelText, { as: "h3", mb: "x1", children: name }) : /* @__PURE__ */ jsx$1(DropdownText, { mb: "x1", pl: getPaddingLeft(layer), children: name });
|
|
28736
27851
|
const SubMenu = ({ menuItem, linkOnClick, themeColorObject: themeColorObject2, layer }) => {
|
|
28737
27852
|
const defaultRender = () => getSubMenuHeading(layer, menuItem.name);
|
|
28738
|
-
return /* @__PURE__ */
|
|
27853
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
28739
27854
|
menuItem.trigger ? menuItem.trigger({ size: "small", defaultRender, layer }) : defaultRender(),
|
|
28740
|
-
/* @__PURE__ */
|
|
27855
|
+
/* @__PURE__ */ jsx$1(SubMenuItemsList, { children: renderMenuItems(menuItem.items, linkOnClick, themeColorObject2, layer + 1) })
|
|
28741
27856
|
] });
|
|
28742
27857
|
};
|
|
28743
27858
|
const Menu$1 = styled.ul(({ theme }) => ({
|
|
@@ -28768,15 +27883,15 @@ const BaseMobileMenu = ({
|
|
|
28768
27883
|
...props
|
|
28769
27884
|
}) => {
|
|
28770
27885
|
useScrollLock();
|
|
28771
|
-
return /* @__PURE__ */
|
|
28772
|
-
/* @__PURE__ */
|
|
28773
|
-
/* @__PURE__ */
|
|
27886
|
+
return /* @__PURE__ */ jsxs(Nav, { backgroundColor: themeColorObject2 && themeColorObject2.background, ...props, children: [
|
|
27887
|
+
/* @__PURE__ */ jsx$1(BrandingWrap, { children: /* @__PURE__ */ jsx$1(BrandingText, { logoColor: themeColorObject2?.logoColor }) }),
|
|
27888
|
+
/* @__PURE__ */ jsxs(Menu$1, { children: [
|
|
28774
27889
|
menuData.primaryMenu && renderTopLayerMenuItems(menuData.primaryMenu, closeMenu, themeColorObject2),
|
|
28775
27890
|
menuData.secondaryMenu && renderTopLayerMenuItems(menuData.secondaryMenu, closeMenu, themeColorObject2)
|
|
28776
27891
|
] }),
|
|
28777
|
-
showNulogyLogo && /* @__PURE__ */
|
|
28778
|
-
/* @__PURE__ */
|
|
28779
|
-
subtext && /* @__PURE__ */
|
|
27892
|
+
showNulogyLogo && /* @__PURE__ */ jsxs(Flex, { textAlign: "center", borderTop: borderStyle, height: "40px", alignItems: "center", justifyContent: "center", children: [
|
|
27893
|
+
/* @__PURE__ */ jsx$1(NulogyLogo$1, {}),
|
|
27894
|
+
subtext && /* @__PURE__ */ jsx$1(
|
|
28780
27895
|
Text,
|
|
28781
27896
|
{
|
|
28782
27897
|
fontSize: "8px",
|
|
@@ -28839,7 +27954,7 @@ const MenuIcon = ({ isOpen }) => {
|
|
|
28839
27954
|
const { t: t3 } = useTranslation();
|
|
28840
27955
|
const icon = isOpen ? "close" : "menu";
|
|
28841
27956
|
const title = isOpen ? t3("close menu") : t3("open menu");
|
|
28842
|
-
return /* @__PURE__ */
|
|
27957
|
+
return /* @__PURE__ */ jsx$1(Icon, { icon, title });
|
|
28843
27958
|
};
|
|
28844
27959
|
const SmallNavBarNoState = ({
|
|
28845
27960
|
menuData,
|
|
@@ -28862,7 +27977,7 @@ const SmallNavBarNoState = ({
|
|
|
28862
27977
|
}, [isOpen]);
|
|
28863
27978
|
const { breakpoints } = useTheme();
|
|
28864
27979
|
const ariaExpanded = isOpen ? true : null;
|
|
28865
|
-
return /* @__PURE__ */
|
|
27980
|
+
return /* @__PURE__ */ jsxs(
|
|
28866
27981
|
SmallHeader,
|
|
28867
27982
|
{
|
|
28868
27983
|
ref: navRef,
|
|
@@ -28870,20 +27985,20 @@ const SmallNavBarNoState = ({
|
|
|
28870
27985
|
breakpointLower: breakpoints ? breakpoints[breakpointLower] : breakpointLower,
|
|
28871
27986
|
...props,
|
|
28872
27987
|
children: [
|
|
28873
|
-
environment && /* @__PURE__ */
|
|
28874
|
-
/* @__PURE__ */
|
|
27988
|
+
environment && /* @__PURE__ */ jsx$1(EnvironmentBanner, { children: environment }),
|
|
27989
|
+
/* @__PURE__ */ jsxs(NavBarBackground, { backgroundColor: "white", height: navBarHeight, children: [
|
|
28875
27990
|
logo,
|
|
28876
|
-
/* @__PURE__ */
|
|
28877
|
-
menuData.search && /* @__PURE__ */
|
|
27991
|
+
/* @__PURE__ */ jsxs(Flex, { justifyContent: "flex-end", ml: "x3", flexGrow: 1, children: [
|
|
27992
|
+
menuData.search && /* @__PURE__ */ jsx$1(Flex, { maxWidth: "18em", alignItems: "center", px: "0", children: /* @__PURE__ */ jsx$1(NavBarSearch, { ...menuData.search }) }),
|
|
28878
27993
|
(menuData.primaryMenu || menuData.secondaryMenu) && (renderMenuButton ? renderMenuButton({
|
|
28879
27994
|
themeColorObject: themeColorObject2,
|
|
28880
27995
|
onClick: toggleMenu,
|
|
28881
27996
|
ariaExpanded,
|
|
28882
27997
|
isOpen
|
|
28883
|
-
}) : /* @__PURE__ */
|
|
27998
|
+
}) : /* @__PURE__ */ jsx$1(MobileMenuTrigger, { ...themeColorObject2, onClick: toggleMenu, "aria-expanded": ariaExpanded, children: /* @__PURE__ */ jsx$1(MenuIcon, { isOpen }) }))
|
|
28884
27999
|
] })
|
|
28885
28000
|
] }),
|
|
28886
|
-
isOpen && /* @__PURE__ */
|
|
28001
|
+
isOpen && /* @__PURE__ */ jsx$1(
|
|
28887
28002
|
MobileMenu,
|
|
28888
28003
|
{
|
|
28889
28004
|
themeColorObject: themeColorObject2,
|
|
@@ -28916,12 +28031,12 @@ const MediumNavBar = ({
|
|
|
28916
28031
|
...props
|
|
28917
28032
|
}) => {
|
|
28918
28033
|
const { t: t3 } = useTranslation();
|
|
28919
|
-
return /* @__PURE__ */
|
|
28920
|
-
environment && /* @__PURE__ */
|
|
28921
|
-
/* @__PURE__ */
|
|
28034
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
28035
|
+
environment && /* @__PURE__ */ jsx$1(EnvironmentBanner, { children: environment }),
|
|
28036
|
+
/* @__PURE__ */ jsx$1("header", { ...props, children: /* @__PURE__ */ jsxs(NavBarBackground, { backgroundColor: "white", height: NAVBAR_HEIGHT, children: [
|
|
28922
28037
|
logo,
|
|
28923
|
-
/* @__PURE__ */
|
|
28924
|
-
menuData.primaryMenu && /* @__PURE__ */
|
|
28038
|
+
/* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", alignContent: "flex-end", flexGrow: 1, ml: "x3", alignItems: "center", children: [
|
|
28039
|
+
menuData.primaryMenu && /* @__PURE__ */ jsx$1(
|
|
28925
28040
|
DesktopMenu,
|
|
28926
28041
|
{
|
|
28927
28042
|
themeColorObject,
|
|
@@ -28930,8 +28045,8 @@ const MediumNavBar = ({
|
|
|
28930
28045
|
menuData: menuData.primaryMenu
|
|
28931
28046
|
}
|
|
28932
28047
|
),
|
|
28933
|
-
/* @__PURE__ */
|
|
28934
|
-
menuData.secondaryMenu && /* @__PURE__ */
|
|
28048
|
+
/* @__PURE__ */ jsxs(Flex, { justifySelf: "flex-end", alignItems: "center", children: [
|
|
28049
|
+
menuData.secondaryMenu && /* @__PURE__ */ jsx$1(
|
|
28935
28050
|
DesktopMenu,
|
|
28936
28051
|
{
|
|
28937
28052
|
themeColorObject,
|
|
@@ -28940,7 +28055,7 @@ const MediumNavBar = ({
|
|
|
28940
28055
|
menuData: menuData.secondaryMenu
|
|
28941
28056
|
}
|
|
28942
28057
|
),
|
|
28943
|
-
showNulogyLogo && /* @__PURE__ */
|
|
28058
|
+
showNulogyLogo && /* @__PURE__ */ jsx$1(Box, { pl: "x3", children: /* @__PURE__ */ jsx$1(NulogyLogoContainer, { height: NAVBAR_HEIGHT, subText: subtext }) })
|
|
28944
28059
|
] })
|
|
28945
28060
|
] })
|
|
28946
28061
|
] }) })
|
|
@@ -28957,7 +28072,7 @@ const SelectNavBarBasedOnWidth = ({
|
|
|
28957
28072
|
...props
|
|
28958
28073
|
}) => {
|
|
28959
28074
|
const currentWidth = width2 || typeof window !== "undefined" && window.innerWidth;
|
|
28960
|
-
const logo = /* @__PURE__ */
|
|
28075
|
+
const logo = /* @__PURE__ */ jsx$1(
|
|
28961
28076
|
BrandLogoContainer,
|
|
28962
28077
|
{
|
|
28963
28078
|
logoSrc,
|
|
@@ -28968,9 +28083,9 @@ const SelectNavBarBasedOnWidth = ({
|
|
|
28968
28083
|
}
|
|
28969
28084
|
);
|
|
28970
28085
|
if (currentWidth >= numberFromDimension(breakpointUpper)) {
|
|
28971
|
-
return /* @__PURE__ */
|
|
28086
|
+
return /* @__PURE__ */ jsx$1(MediumNavBar, { logo, showNulogyLogo: logoSrc, ...props });
|
|
28972
28087
|
} else {
|
|
28973
|
-
return /* @__PURE__ */
|
|
28088
|
+
return /* @__PURE__ */ jsx$1(
|
|
28974
28089
|
SmallNavBar,
|
|
28975
28090
|
{
|
|
28976
28091
|
width: currentWidth,
|
|
@@ -28986,7 +28101,7 @@ const SelectNavBarBasedOnWidth = ({
|
|
|
28986
28101
|
};
|
|
28987
28102
|
const BaseNavBar = ({ environment, breakpointUpper = "medium", ...props }) => {
|
|
28988
28103
|
const { breakpoints } = useTheme();
|
|
28989
|
-
return /* @__PURE__ */
|
|
28104
|
+
return /* @__PURE__ */ jsx$1(ResizeDetector, { handleWidth: true, children: ({ width: width2 }) => /* @__PURE__ */ jsx$1(
|
|
28990
28105
|
SelectNavBarBasedOnWidth,
|
|
28991
28106
|
{
|
|
28992
28107
|
breakpointUpper: breakpoints[breakpointUpper] || breakpointUpper,
|
|
@@ -29050,7 +28165,7 @@ const insertSeparators = (items) => {
|
|
|
29050
28165
|
return items.reduce((acc, current, index2) => {
|
|
29051
28166
|
return acc.concat(
|
|
29052
28167
|
current,
|
|
29053
|
-
/* @__PURE__ */
|
|
28168
|
+
/* @__PURE__ */ jsx$1(BreadcrumbsListSeparator, { "aria-hidden": true, className: "separator", children: /* @__PURE__ */ jsx$1(Icon, { icon: "rightArrow" }) }, `separator-${index2}`)
|
|
29054
28169
|
);
|
|
29055
28170
|
}, []);
|
|
29056
28171
|
};
|
|
@@ -29058,9 +28173,9 @@ const Breadcrumbs = ({ variant: variant3, as = "nav", children, ...props }) => {
|
|
|
29058
28173
|
const componentVariant = useComponentVariant(variant3);
|
|
29059
28174
|
const allItems = React__default.Children.map(children, (child, index2) => {
|
|
29060
28175
|
if (!isValidElement(child)) return null;
|
|
29061
|
-
return /* @__PURE__ */
|
|
28176
|
+
return /* @__PURE__ */ jsx$1(BreadcrumbsListItem, { variant: componentVariant, children: child }, `child-${index2}`);
|
|
29062
28177
|
}).filter(Boolean);
|
|
29063
|
-
return /* @__PURE__ */
|
|
28178
|
+
return /* @__PURE__ */ jsx$1(Flex, { as, ...props, children: /* @__PURE__ */ jsx$1(BreadcrumbsList, { children: insertSeparators(allItems) }) });
|
|
29064
28179
|
};
|
|
29065
28180
|
const alignments = {
|
|
29066
28181
|
left: "flex-start",
|
|
@@ -29104,7 +28219,7 @@ function Card({
|
|
|
29104
28219
|
children,
|
|
29105
28220
|
...props
|
|
29106
28221
|
}) {
|
|
29107
|
-
return /* @__PURE__ */
|
|
28222
|
+
return /* @__PURE__ */ jsx$1(
|
|
29108
28223
|
Box,
|
|
29109
28224
|
{
|
|
29110
28225
|
border: "1px solid",
|
|
@@ -29224,8 +28339,8 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
29224
28339
|
const componentVariant = useComponentVariant(variant3);
|
|
29225
28340
|
const spaceProps = getSubset(props, propTypes$1.space);
|
|
29226
28341
|
const restProps = omitSubset(props, propTypes$1.space);
|
|
29227
|
-
return /* @__PURE__ */
|
|
29228
|
-
/* @__PURE__ */
|
|
28342
|
+
return /* @__PURE__ */ jsx$1(Box, { className, px: "0", ...spaceProps, children: /* @__PURE__ */ jsxs(ClickInputLabel, { variant: componentVariant, disabled, children: [
|
|
28343
|
+
/* @__PURE__ */ jsx$1(
|
|
29229
28344
|
CheckboxInput,
|
|
29230
28345
|
{
|
|
29231
28346
|
type: "checkbox",
|
|
@@ -29237,7 +28352,7 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
29237
28352
|
...restProps
|
|
29238
28353
|
}
|
|
29239
28354
|
),
|
|
29240
|
-
/* @__PURE__ */
|
|
28355
|
+
/* @__PURE__ */ jsx$1(
|
|
29241
28356
|
VisualCheckbox,
|
|
29242
28357
|
{
|
|
29243
28358
|
disabled,
|
|
@@ -29246,7 +28361,7 @@ const Checkbox = forwardRef((props, ref) => {
|
|
|
29246
28361
|
"data-testid": "visual-checkbox"
|
|
29247
28362
|
}
|
|
29248
28363
|
),
|
|
29249
|
-
labelText && /* @__PURE__ */
|
|
28364
|
+
labelText && /* @__PURE__ */ jsx$1(
|
|
29250
28365
|
Text,
|
|
29251
28366
|
{
|
|
29252
28367
|
fontSize: componentVariant === "touch" ? "md" : void 0,
|
|
@@ -29270,21 +28385,21 @@ function CheckboxGroup({
|
|
|
29270
28385
|
...props
|
|
29271
28386
|
}) {
|
|
29272
28387
|
const otherProps = { ...props, errorMessage, errorList };
|
|
29273
|
-
return /* @__PURE__ */
|
|
29274
|
-
/* @__PURE__ */
|
|
29275
|
-
/* @__PURE__ */
|
|
29276
|
-
requirementText && /* @__PURE__ */
|
|
29277
|
-
hint && /* @__PURE__ */
|
|
28388
|
+
return /* @__PURE__ */ jsxs(Fieldset, { className, id: id2, children: [
|
|
28389
|
+
/* @__PURE__ */ jsx$1(Legend, { children: /* @__PURE__ */ jsxs(LabelContent, { "data-testid": "label-content", children: [
|
|
28390
|
+
/* @__PURE__ */ jsx$1(LabelText, { "data-testid": "label-text", children: labelText }),
|
|
28391
|
+
requirementText && /* @__PURE__ */ jsx$1(RequirementText, { "data-testid": "requirement-text", ml: "none", children: requirementText }),
|
|
28392
|
+
hint && /* @__PURE__ */ jsx$1(Tooltip, { tooltip: hint, children: /* @__PURE__ */ jsx$1(InlineIcon, { color: "darkGrey", size: "x2", icon: "info" }) })
|
|
29278
28393
|
] }) }),
|
|
29279
|
-
helpText && /* @__PURE__ */
|
|
28394
|
+
helpText && /* @__PURE__ */ jsx$1(HelpText$1, { children: helpText }),
|
|
29280
28395
|
getCheckboxButtons(otherProps),
|
|
29281
|
-
/* @__PURE__ */
|
|
28396
|
+
/* @__PURE__ */ jsx$1(InlineValidation, { mt: "x1", errorMessage, errorList })
|
|
29282
28397
|
] });
|
|
29283
28398
|
}
|
|
29284
28399
|
const getCheckboxButtons = (props) => {
|
|
29285
28400
|
const checkboxButtons = React__default.Children.map(props.children, (checkbox) => {
|
|
29286
28401
|
const { value, disabled, required, onChange: onChange2, ...checkboxProps } = checkbox.props;
|
|
29287
|
-
return /* @__PURE__ */
|
|
28402
|
+
return /* @__PURE__ */ jsx$1(
|
|
29288
28403
|
Checkbox,
|
|
29289
28404
|
{
|
|
29290
28405
|
...checkboxProps,
|
|
@@ -40910,7 +40025,7 @@ const DatePickerInput = forwardRef(
|
|
|
40910
40025
|
break;
|
|
40911
40026
|
}
|
|
40912
40027
|
};
|
|
40913
|
-
return /* @__PURE__ */
|
|
40028
|
+
return /* @__PURE__ */ jsx$1(
|
|
40914
40029
|
InputField,
|
|
40915
40030
|
{
|
|
40916
40031
|
onBlur: onBlur3,
|
|
@@ -40991,7 +40106,7 @@ const BasePicker = forwardRef(
|
|
|
40991
40106
|
...inputProps,
|
|
40992
40107
|
placeholder: inputProps && inputProps.placeholder || (dateFormat === defaultFormat ? defaultPlaceholder : dateFormat)
|
|
40993
40108
|
};
|
|
40994
|
-
const customInput = /* @__PURE__ */
|
|
40109
|
+
const customInput = /* @__PURE__ */ jsx$1(
|
|
40995
40110
|
DatePickerInput,
|
|
40996
40111
|
{
|
|
40997
40112
|
locale: currentLocale,
|
|
@@ -41011,9 +40126,9 @@ const BasePicker = forwardRef(
|
|
|
41011
40126
|
onRefChange(r2);
|
|
41012
40127
|
};
|
|
41013
40128
|
const spaceProps = getSubset(props, propTypes$1.space);
|
|
41014
|
-
return /* @__PURE__ */
|
|
41015
|
-
/* @__PURE__ */
|
|
41016
|
-
/* @__PURE__ */
|
|
40129
|
+
return /* @__PURE__ */ jsxs(Field, { className: `${className} nds-date-picker`, ...spaceProps, children: [
|
|
40130
|
+
/* @__PURE__ */ jsx$1(DatePickerStyles, {}),
|
|
40131
|
+
/* @__PURE__ */ jsx$1(
|
|
41017
40132
|
er,
|
|
41018
40133
|
{
|
|
41019
40134
|
highlightDates: highlightDates2,
|
|
@@ -41039,7 +40154,7 @@ const BasePicker = forwardRef(
|
|
|
41039
40154
|
disabledKeyboardNavigation
|
|
41040
40155
|
}
|
|
41041
40156
|
),
|
|
41042
|
-
/* @__PURE__ */
|
|
40157
|
+
/* @__PURE__ */ jsx$1(InlineValidation, { mt: "x1", errorMessage, errorList })
|
|
41043
40158
|
] });
|
|
41044
40159
|
}
|
|
41045
40160
|
);
|
|
@@ -41054,8 +40169,8 @@ function DatePickerHeader({
|
|
|
41054
40169
|
nextMonthButtonDisabled,
|
|
41055
40170
|
locale: locale2
|
|
41056
40171
|
}) {
|
|
41057
|
-
return /* @__PURE__ */
|
|
41058
|
-
/* @__PURE__ */
|
|
40172
|
+
return /* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", alignItems: "center", py: "half", px: "x1", children: [
|
|
40173
|
+
/* @__PURE__ */ jsx$1(
|
|
41059
40174
|
ControlIcon,
|
|
41060
40175
|
{
|
|
41061
40176
|
icon: "leftArrow",
|
|
@@ -41064,7 +40179,7 @@ function DatePickerHeader({
|
|
|
41064
40179
|
disabled: prevMonthButtonDisabled
|
|
41065
40180
|
}
|
|
41066
40181
|
),
|
|
41067
|
-
/* @__PURE__ */
|
|
40182
|
+
/* @__PURE__ */ jsx$1(
|
|
41068
40183
|
Text,
|
|
41069
40184
|
{
|
|
41070
40185
|
fontWeight: "bold",
|
|
@@ -41076,7 +40191,7 @@ function DatePickerHeader({
|
|
|
41076
40191
|
children: localizedFormat(date, "MMMM yyyy", locale2)
|
|
41077
40192
|
}
|
|
41078
40193
|
),
|
|
41079
|
-
/* @__PURE__ */
|
|
40194
|
+
/* @__PURE__ */ jsx$1(
|
|
41080
40195
|
ControlIcon,
|
|
41081
40196
|
{
|
|
41082
40197
|
icon: "rightArrow",
|
|
@@ -41120,7 +40235,7 @@ const DatePicker = forwardRef(
|
|
|
41120
40235
|
ref.setOpen(!isOpen);
|
|
41121
40236
|
}
|
|
41122
40237
|
};
|
|
41123
|
-
return /* @__PURE__ */
|
|
40238
|
+
return /* @__PURE__ */ jsx$1(
|
|
41124
40239
|
BasePicker,
|
|
41125
40240
|
{
|
|
41126
40241
|
...props,
|
|
@@ -41135,7 +40250,7 @@ const DatePicker = forwardRef(
|
|
|
41135
40250
|
onUpKeyPress: handleUpKey,
|
|
41136
40251
|
onDownKeyPress: handleDownKey,
|
|
41137
40252
|
onEnterKeyPress: handleEnterKey,
|
|
41138
|
-
renderHeader: (headerProps) => /* @__PURE__ */
|
|
40253
|
+
renderHeader: (headerProps) => /* @__PURE__ */ jsx$1(DatePickerHeader, { locale: props.locale, ...headerProps })
|
|
41139
40254
|
}
|
|
41140
40255
|
);
|
|
41141
40256
|
}
|
|
@@ -41149,8 +40264,8 @@ function MonthDatePickerHeader({
|
|
|
41149
40264
|
locale: locale2
|
|
41150
40265
|
}) {
|
|
41151
40266
|
const { t: t3 } = useTranslation();
|
|
41152
|
-
return /* @__PURE__ */
|
|
41153
|
-
/* @__PURE__ */
|
|
40267
|
+
return /* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", alignItems: "center", pb: "x1_5", children: [
|
|
40268
|
+
/* @__PURE__ */ jsx$1(
|
|
41154
40269
|
ControlIcon,
|
|
41155
40270
|
{
|
|
41156
40271
|
icon: "leftArrow",
|
|
@@ -41159,8 +40274,8 @@ function MonthDatePickerHeader({
|
|
|
41159
40274
|
disabled: prevMonthButtonDisabled
|
|
41160
40275
|
}
|
|
41161
40276
|
),
|
|
41162
|
-
/* @__PURE__ */
|
|
41163
|
-
/* @__PURE__ */
|
|
40277
|
+
/* @__PURE__ */ jsx$1(Text, { fontWeight: "bold", color: "blackBlue", px: "x8", fontSize: "large", style: { textTransform: "capitalize" }, children: localizedFormat(date, "yyyy", locale2) }),
|
|
40278
|
+
/* @__PURE__ */ jsx$1(
|
|
41164
40279
|
ControlIcon,
|
|
41165
40280
|
{
|
|
41166
40281
|
icon: "rightArrow",
|
|
@@ -41194,7 +40309,7 @@ const MonthPicker = forwardRef(
|
|
|
41194
40309
|
ref.setOpen(!isOpen);
|
|
41195
40310
|
}
|
|
41196
40311
|
};
|
|
41197
|
-
return /* @__PURE__ */
|
|
40312
|
+
return /* @__PURE__ */ jsx$1(
|
|
41198
40313
|
BasePicker,
|
|
41199
40314
|
{
|
|
41200
40315
|
...props,
|
|
@@ -41205,7 +40320,7 @@ const MonthPicker = forwardRef(
|
|
|
41205
40320
|
defaultFormat: DEFAULT_MONTH_FORMAT,
|
|
41206
40321
|
defaultPlaceholder: DEFAULT_PLACEHOLDER$1,
|
|
41207
40322
|
showMonthYearPicker: true,
|
|
41208
|
-
renderHeader: (headerProps) => /* @__PURE__ */
|
|
40323
|
+
renderHeader: (headerProps) => /* @__PURE__ */ jsx$1(MonthDatePickerHeader, { locale: props.locale, ...headerProps }),
|
|
41209
40324
|
onUpKeyPress: handleUpKey,
|
|
41210
40325
|
onDownKeyPress: handleDownKey,
|
|
41211
40326
|
onEnterKeyPress: handleEnterKey
|
|
@@ -41413,7 +40528,7 @@ const WeekPicker = forwardRef(
|
|
|
41413
40528
|
}
|
|
41414
40529
|
};
|
|
41415
40530
|
const renderCustomHeader = (props2) => {
|
|
41416
|
-
return /* @__PURE__ */
|
|
40531
|
+
return /* @__PURE__ */ jsx$1(DatePickerHeader, { locale: currentLocale, ...props2 });
|
|
41417
40532
|
};
|
|
41418
40533
|
const weekPickerRefHandler = (r2) => {
|
|
41419
40534
|
if (datePickerRef) {
|
|
@@ -41427,7 +40542,7 @@ const WeekPicker = forwardRef(
|
|
|
41427
40542
|
...inputProps,
|
|
41428
40543
|
placeholder: inputProps && inputProps.placeholder || (finalDateFormat === defaultDateFormat ? defaultPlaceholder : finalDateFormat)
|
|
41429
40544
|
};
|
|
41430
|
-
const customInput = /* @__PURE__ */
|
|
40545
|
+
const customInput = /* @__PURE__ */ jsx$1(
|
|
41431
40546
|
DatePickerInput,
|
|
41432
40547
|
{
|
|
41433
40548
|
locale: currentLocale,
|
|
@@ -41440,10 +40555,10 @@ const WeekPicker = forwardRef(
|
|
|
41440
40555
|
onEnterKeyPress: handleEnterKey
|
|
41441
40556
|
}
|
|
41442
40557
|
);
|
|
41443
|
-
return /* @__PURE__ */
|
|
41444
|
-
/* @__PURE__ */
|
|
41445
|
-
/* @__PURE__ */
|
|
41446
|
-
/* @__PURE__ */
|
|
40558
|
+
return /* @__PURE__ */ jsxs(Field, { className: `${className} nds-date-picker`, ...spaceProps, children: [
|
|
40559
|
+
/* @__PURE__ */ jsx$1(DatePickerStyles, {}),
|
|
40560
|
+
/* @__PURE__ */ jsx$1(WeekPickerStyles, { variant: componentVariant }),
|
|
40561
|
+
/* @__PURE__ */ jsx$1(
|
|
41447
40562
|
er,
|
|
41448
40563
|
{
|
|
41449
40564
|
showWeekNumbers: true,
|
|
@@ -41467,7 +40582,7 @@ const WeekPicker = forwardRef(
|
|
|
41467
40582
|
disabledKeyboardNavigation: true
|
|
41468
40583
|
}
|
|
41469
40584
|
),
|
|
41470
|
-
/* @__PURE__ */
|
|
40585
|
+
/* @__PURE__ */ jsx$1(InlineValidation, { mt: "x1", errorMessage, errorList })
|
|
41471
40586
|
] });
|
|
41472
40587
|
}
|
|
41473
40588
|
);
|
|
@@ -41490,17 +40605,14 @@ const RangeContainer = ({
|
|
|
41490
40605
|
}) => {
|
|
41491
40606
|
const spaceProps = getSubset(props, propTypes$1.space);
|
|
41492
40607
|
const restProps = omitSubset(props, propTypes$1.space);
|
|
41493
|
-
return /* @__PURE__ */
|
|
41494
|
-
/* @__PURE__ */
|
|
41495
|
-
/* @__PURE__ */
|
|
41496
|
-
/* @__PURE__ */
|
|
41497
|
-
/* @__PURE__ */
|
|
41498
|
-
/* @__PURE__ */
|
|
40608
|
+
return /* @__PURE__ */ jsxs(Flex, { ...spaceProps, flexDirection: "column", children: [
|
|
40609
|
+
/* @__PURE__ */ jsx$1(FieldLabel, { ...labelProps, ...restProps }),
|
|
40610
|
+
/* @__PURE__ */ jsxs(Flex, { flexWrap: "wrap", mt: "x1", mb: errorMessages.length ? "x1" : "x3", children: [
|
|
40611
|
+
/* @__PURE__ */ jsx$1(Flex, { children: startComponent }),
|
|
40612
|
+
/* @__PURE__ */ jsx$1(Flex, { px: "half", alignItems: "flex-end", alignSelf: "flex-end", children: /* @__PURE__ */ jsx$1(Text, { lineHeight: variant3 === "touch" ? "56px" : "38px", children: "-" }) }),
|
|
40613
|
+
/* @__PURE__ */ jsx$1(Flex, { children: endComponent })
|
|
41499
40614
|
] }),
|
|
41500
|
-
errorMessages.map((errorMessage, i3) => (
|
|
41501
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
41502
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(InlineValidation, { errorMessage }, i3)
|
|
41503
|
-
))
|
|
40615
|
+
errorMessages.map((errorMessage, i3) => /* @__PURE__ */ jsx$1(InlineValidation, { errorMessage }, i3))
|
|
41504
40616
|
] });
|
|
41505
40617
|
};
|
|
41506
40618
|
const START_DATE_CLASS = "nds-datepicker-day--start-date";
|
|
@@ -41871,8 +40983,8 @@ const TimePicker = forwardRef(
|
|
|
41871
40983
|
}
|
|
41872
40984
|
};
|
|
41873
40985
|
const displayValue = value ? value : input || "";
|
|
41874
|
-
return /* @__PURE__ */
|
|
41875
|
-
/* @__PURE__ */
|
|
40986
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
40987
|
+
/* @__PURE__ */ jsxs(
|
|
41876
40988
|
Box,
|
|
41877
40989
|
{
|
|
41878
40990
|
className: `nds-time-picker ${className || ""}`,
|
|
@@ -41882,7 +40994,7 @@ const TimePicker = forwardRef(
|
|
|
41882
40994
|
"data-testid": "select-container",
|
|
41883
40995
|
...props,
|
|
41884
40996
|
children: [
|
|
41885
|
-
/* @__PURE__ */
|
|
40997
|
+
/* @__PURE__ */ jsx$1(
|
|
41886
40998
|
TimePickerInput,
|
|
41887
40999
|
{
|
|
41888
41000
|
labelText,
|
|
@@ -41906,7 +41018,7 @@ const TimePicker = forwardRef(
|
|
|
41906
41018
|
variant: componentVariant
|
|
41907
41019
|
}
|
|
41908
41020
|
),
|
|
41909
|
-
/* @__PURE__ */
|
|
41021
|
+
/* @__PURE__ */ jsx$1(
|
|
41910
41022
|
TimePickerDropdown,
|
|
41911
41023
|
{
|
|
41912
41024
|
isOpen: dropdownIsOpen,
|
|
@@ -41919,7 +41031,7 @@ const TimePicker = forwardRef(
|
|
|
41919
41031
|
const isSelected = standardizeTime(option.label) === standardizeTime(input);
|
|
41920
41032
|
const closestTestId = isClosest ? "closest-select-option" : "";
|
|
41921
41033
|
const selectedTestId = isSelected ? "selected-select-option" : "";
|
|
41922
|
-
return /* @__PURE__ */
|
|
41034
|
+
return /* @__PURE__ */ jsx$1(
|
|
41923
41035
|
TimePickerOption,
|
|
41924
41036
|
{
|
|
41925
41037
|
ref: isClosest ? onCurrentOptionRefChange : void 0,
|
|
@@ -41940,11 +41052,11 @@ const TimePicker = forwardRef(
|
|
|
41940
41052
|
})
|
|
41941
41053
|
}
|
|
41942
41054
|
),
|
|
41943
|
-
/* @__PURE__ */
|
|
41055
|
+
/* @__PURE__ */ jsx$1(InlineValidation, { mt: "x1", errorMessage, errorList })
|
|
41944
41056
|
]
|
|
41945
41057
|
}
|
|
41946
41058
|
),
|
|
41947
|
-
/* @__PURE__ */
|
|
41059
|
+
/* @__PURE__ */ jsx$1(DetectOutsideClick, { onClick: handleBlur, clickRef: [ref] })
|
|
41948
41060
|
] });
|
|
41949
41061
|
}
|
|
41950
41062
|
);
|
|
@@ -42097,8 +41209,8 @@ const DateRange = forwardRef(
|
|
|
42097
41209
|
error: rangeError,
|
|
42098
41210
|
...startDateInputProps
|
|
42099
41211
|
};
|
|
42100
|
-
const startDateInput = /* @__PURE__ */
|
|
42101
|
-
/* @__PURE__ */
|
|
41212
|
+
const startDateInput = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
41213
|
+
/* @__PURE__ */ jsx$1(
|
|
42102
41214
|
DatePicker,
|
|
42103
41215
|
{
|
|
42104
41216
|
dateFormat,
|
|
@@ -42114,7 +41226,7 @@ const DateRange = forwardRef(
|
|
|
42114
41226
|
ref: dateRef1
|
|
42115
41227
|
}
|
|
42116
41228
|
),
|
|
42117
|
-
showTimes && /* @__PURE__ */
|
|
41229
|
+
showTimes && /* @__PURE__ */ jsx$1(
|
|
42118
41230
|
StartTime,
|
|
42119
41231
|
{
|
|
42120
41232
|
variant: componentVariant,
|
|
@@ -42134,8 +41246,8 @@ const DateRange = forwardRef(
|
|
|
42134
41246
|
}
|
|
42135
41247
|
)
|
|
42136
41248
|
] });
|
|
42137
|
-
const endDateInput = /* @__PURE__ */
|
|
42138
|
-
showTimes && /* @__PURE__ */
|
|
41249
|
+
const endDateInput = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
41250
|
+
showTimes && /* @__PURE__ */ jsx$1(
|
|
42139
41251
|
EndTime,
|
|
42140
41252
|
{
|
|
42141
41253
|
variant: componentVariant,
|
|
@@ -42154,7 +41266,7 @@ const DateRange = forwardRef(
|
|
|
42154
41266
|
...endTimeProps
|
|
42155
41267
|
}
|
|
42156
41268
|
),
|
|
42157
|
-
/* @__PURE__ */
|
|
41269
|
+
/* @__PURE__ */ jsx$1(
|
|
42158
41270
|
DatePicker,
|
|
42159
41271
|
{
|
|
42160
41272
|
dateFormat,
|
|
@@ -42175,9 +41287,9 @@ const DateRange = forwardRef(
|
|
|
42175
41287
|
}
|
|
42176
41288
|
)
|
|
42177
41289
|
] });
|
|
42178
|
-
return /* @__PURE__ */
|
|
42179
|
-
/* @__PURE__ */
|
|
42180
|
-
/* @__PURE__ */
|
|
41290
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
41291
|
+
/* @__PURE__ */ jsx$1(DateRangeStyles, {}),
|
|
41292
|
+
/* @__PURE__ */ jsx$1(
|
|
42181
41293
|
RangeContainer,
|
|
42182
41294
|
{
|
|
42183
41295
|
variant: componentVariant,
|
|
@@ -42198,7 +41310,7 @@ const DescriptionListContext = createContext$1(void 0);
|
|
|
42198
41310
|
const DescriptionListProvider = ({
|
|
42199
41311
|
children,
|
|
42200
41312
|
...contextProps
|
|
42201
|
-
}) => /* @__PURE__ */
|
|
41313
|
+
}) => /* @__PURE__ */ jsx$1(DescriptionListContext.Provider, { value: contextProps, children });
|
|
42202
41314
|
const useDescriptionListContext = () => {
|
|
42203
41315
|
const context = useContext(DescriptionListContext);
|
|
42204
41316
|
if (!context) {
|
|
@@ -42409,7 +41521,7 @@ function DescriptionList({
|
|
|
42409
41521
|
...props
|
|
42410
41522
|
}) {
|
|
42411
41523
|
const { columns, groupMinWidth } = validateAndExtractGridProps(props);
|
|
42412
|
-
return /* @__PURE__ */
|
|
41524
|
+
return /* @__PURE__ */ jsx$1(
|
|
42413
41525
|
DescriptionListProvider,
|
|
42414
41526
|
{
|
|
42415
41527
|
descriptionTermMaxWidth,
|
|
@@ -42421,7 +41533,7 @@ function DescriptionList({
|
|
|
42421
41533
|
lineHeight: lineHeight2,
|
|
42422
41534
|
columns,
|
|
42423
41535
|
groupMinWidth,
|
|
42424
|
-
children: /* @__PURE__ */
|
|
41536
|
+
children: /* @__PURE__ */ jsx$1(DescriptionListContainer, { children: /* @__PURE__ */ jsx$1(DescriptionList$1, { children }) })
|
|
42425
41537
|
}
|
|
42426
41538
|
);
|
|
42427
41539
|
}
|
|
@@ -42466,12 +41578,12 @@ function useMediaQuery(q2) {
|
|
|
42466
41578
|
return matches;
|
|
42467
41579
|
}
|
|
42468
41580
|
const ApplicationFrame = ({ navBar, children, environment, ...props }) => {
|
|
42469
|
-
return /* @__PURE__ */
|
|
42470
|
-
/* @__PURE__ */
|
|
42471
|
-
environment && /* @__PURE__ */
|
|
41581
|
+
return /* @__PURE__ */ jsxs(Flex, { flexDirection: "column", minHeight: "100vh", ...props, children: [
|
|
41582
|
+
/* @__PURE__ */ jsxs(Box, { position: "sticky", top: "0", zIndex: "navBar", children: [
|
|
41583
|
+
environment && /* @__PURE__ */ jsx$1(EnvironmentBanner, { children: environment }),
|
|
42472
41584
|
navBar
|
|
42473
41585
|
] }),
|
|
42474
|
-
/* @__PURE__ */
|
|
41586
|
+
/* @__PURE__ */ jsx$1(Flex, { flexDirection: "column", position: "relative", flexGrow: 1, children })
|
|
42475
41587
|
] });
|
|
42476
41588
|
};
|
|
42477
41589
|
const RightAngleTriangle = styled(Box)`
|
|
@@ -42483,7 +41595,7 @@ const RightAngleTriangle = styled(Box)`
|
|
|
42483
41595
|
`;
|
|
42484
41596
|
function BackgroundTriangles(props) {
|
|
42485
41597
|
const theme = useTheme();
|
|
42486
|
-
return /* @__PURE__ */
|
|
41598
|
+
return /* @__PURE__ */ jsxs(
|
|
42487
41599
|
Box,
|
|
42488
41600
|
{
|
|
42489
41601
|
"aria-hidden": "true",
|
|
@@ -42496,7 +41608,7 @@ function BackgroundTriangles(props) {
|
|
|
42496
41608
|
width: "90%",
|
|
42497
41609
|
...props,
|
|
42498
41610
|
children: [
|
|
42499
|
-
/* @__PURE__ */
|
|
41611
|
+
/* @__PURE__ */ jsx$1(
|
|
42500
41612
|
RightAngleTriangle,
|
|
42501
41613
|
{
|
|
42502
41614
|
"aria-hidden": "true",
|
|
@@ -42505,7 +41617,7 @@ function BackgroundTriangles(props) {
|
|
|
42505
41617
|
background: "linear-gradient(178.25deg, rgba(192, 200, 209, 0.5) 62.98%, rgba(225, 235, 250, 0.25) 98.52%)"
|
|
42506
41618
|
}
|
|
42507
41619
|
),
|
|
42508
|
-
/* @__PURE__ */
|
|
41620
|
+
/* @__PURE__ */ jsx$1(
|
|
42509
41621
|
RightAngleTriangle,
|
|
42510
41622
|
{
|
|
42511
41623
|
"aria-hidden": "true",
|
|
@@ -42536,8 +41648,8 @@ const Header$3 = ({
|
|
|
42536
41648
|
const m4 = useMediaQuery(`(max-width: ${mediumBreakpoint2}px)`);
|
|
42537
41649
|
const sm = useMediaQuery(`(max-width: ${smallBreakpoint2}px)`);
|
|
42538
41650
|
const bg = background2 ? background2 : undecorated ? "transparent" : "whiteGrey";
|
|
42539
|
-
return /* @__PURE__ */
|
|
42540
|
-
/* @__PURE__ */
|
|
41651
|
+
return /* @__PURE__ */ jsxs(Flex, { py: "x1", px: "x3", gap: "x2", position: "relative", bg, ...rest, children: [
|
|
41652
|
+
/* @__PURE__ */ jsxs(
|
|
42541
41653
|
Flex,
|
|
42542
41654
|
{
|
|
42543
41655
|
flexGrow: 3,
|
|
@@ -42545,24 +41657,24 @@ const Header$3 = ({
|
|
|
42545
41657
|
flexDirection: m4 || sm ? "column" : "row",
|
|
42546
41658
|
zIndex: "content",
|
|
42547
41659
|
children: [
|
|
42548
|
-
/* @__PURE__ */
|
|
41660
|
+
/* @__PURE__ */ jsxs(Flex, { flexDirection: "column", children: [
|
|
42549
41661
|
renderBreadcrumbs && renderBreadcrumbs(),
|
|
42550
|
-
/* @__PURE__ */
|
|
41662
|
+
/* @__PURE__ */ jsxs(
|
|
42551
41663
|
Flex,
|
|
42552
41664
|
{
|
|
42553
41665
|
gap: !sm ? "x2" : void 0,
|
|
42554
41666
|
flexDirection: !sm ? "row" : "column",
|
|
42555
41667
|
alignItems: !sm ? "center" : void 0,
|
|
42556
41668
|
children: [
|
|
42557
|
-
/* @__PURE__ */
|
|
41669
|
+
/* @__PURE__ */ jsxs(
|
|
42558
41670
|
Flex,
|
|
42559
41671
|
{
|
|
42560
41672
|
alignItems: !sm ? "flex-end" : void 0,
|
|
42561
41673
|
gap: !sm ? "x2" : void 0,
|
|
42562
41674
|
flexDirection: !sm ? "row" : "column",
|
|
42563
41675
|
children: [
|
|
42564
|
-
title && typeof title === "string" ? /* @__PURE__ */
|
|
42565
|
-
subtitle && /* @__PURE__ */
|
|
41676
|
+
title && typeof title === "string" ? /* @__PURE__ */ jsx$1(Heading1, { mb: "0", children: title }) : title,
|
|
41677
|
+
subtitle && /* @__PURE__ */ jsx$1(Text, { pl: !sm ? "x2" : void 0, borderLeft: !sm ? "1px solid" : "none", my: "half", borderColor: "grey", children: subtitle })
|
|
42566
41678
|
]
|
|
42567
41679
|
}
|
|
42568
41680
|
),
|
|
@@ -42575,17 +41687,17 @@ const Header$3 = ({
|
|
|
42575
41687
|
]
|
|
42576
41688
|
}
|
|
42577
41689
|
),
|
|
42578
|
-
renderActions && /* @__PURE__ */
|
|
42579
|
-
!undecorated && /* @__PURE__ */
|
|
41690
|
+
renderActions && /* @__PURE__ */ jsx$1(Flex, { display: "flex", flexGrow: 0, alignItems: "flex-start", zIndex: "content", children: renderActions() }),
|
|
41691
|
+
!undecorated && /* @__PURE__ */ jsx$1(BackgroundTriangles, { zIndex: 1 })
|
|
42580
41692
|
] });
|
|
42581
41693
|
};
|
|
42582
|
-
const Page = ({ breadcrumbs, title, children, headerContent, fullHeight, renderHeader, ...rest }) => /* @__PURE__ */
|
|
42583
|
-
renderHeader ? renderHeader() : (breadcrumbs || title || headerContent) && /* @__PURE__ */
|
|
42584
|
-
/* @__PURE__ */
|
|
41694
|
+
const Page = ({ breadcrumbs, title, children, headerContent, fullHeight, renderHeader, ...rest }) => /* @__PURE__ */ jsxs(Flex, { flexDirection: "column", flexGrow: fullHeight ? 1 : 0, ...rest, children: [
|
|
41695
|
+
renderHeader ? renderHeader() : (breadcrumbs || title || headerContent) && /* @__PURE__ */ jsx$1(Header$3, { renderBreadcrumbs: () => breadcrumbs, title, children: headerContent }),
|
|
41696
|
+
/* @__PURE__ */ jsx$1(Box, { p: "x3", children })
|
|
42585
41697
|
] });
|
|
42586
41698
|
const FeatureFlagsContext = createContext$1(void 0);
|
|
42587
41699
|
function FeatureFlagsProvider({ featureFlags, children }) {
|
|
42588
|
-
return /* @__PURE__ */
|
|
41700
|
+
return /* @__PURE__ */ jsx$1(FeatureFlagsContext.Provider, { value: { featureFlags }, children });
|
|
42589
41701
|
}
|
|
42590
41702
|
function useFeatureFlags() {
|
|
42591
41703
|
const context = useContext(FeatureFlagsContext);
|
|
@@ -42613,7 +41725,7 @@ const focusFirstElement = () => {
|
|
|
42613
41725
|
focusable[0].focus();
|
|
42614
41726
|
}
|
|
42615
41727
|
};
|
|
42616
|
-
const SidebarOverlay = ({ transitionDuration, top: top2, transparent, zIndex: zIndex2 = 799, onClick }) => /* @__PURE__ */
|
|
41728
|
+
const SidebarOverlay = ({ transitionDuration, top: top2, transparent, zIndex: zIndex2 = 799, onClick }) => /* @__PURE__ */ jsx$1(
|
|
42617
41729
|
AnimatedBox,
|
|
42618
41730
|
{
|
|
42619
41731
|
position: "fixed",
|
|
@@ -42714,8 +41826,8 @@ function Sidebar({
|
|
|
42714
41826
|
}
|
|
42715
41827
|
}
|
|
42716
41828
|
};
|
|
42717
|
-
return /* @__PURE__ */
|
|
42718
|
-
closeOnOutsideClick && /* @__PURE__ */
|
|
41829
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
41830
|
+
closeOnOutsideClick && /* @__PURE__ */ jsx$1(AnimatePresence, { children: isOpen && overlay !== "hide" && /* @__PURE__ */ jsx$1(
|
|
42719
41831
|
SidebarOverlay,
|
|
42720
41832
|
{
|
|
42721
41833
|
top: top2,
|
|
@@ -42725,7 +41837,7 @@ function Sidebar({
|
|
|
42725
41837
|
onClick: closeOnOutsideClick && isOpen && onClose
|
|
42726
41838
|
}
|
|
42727
41839
|
) }),
|
|
42728
|
-
/* @__PURE__ */
|
|
41840
|
+
/* @__PURE__ */ jsxs(
|
|
42729
41841
|
AnimatedBox,
|
|
42730
41842
|
{
|
|
42731
41843
|
role: "dialog",
|
|
@@ -42748,7 +41860,7 @@ function Sidebar({
|
|
|
42748
41860
|
ref: sideBarRef,
|
|
42749
41861
|
...props,
|
|
42750
41862
|
children: [
|
|
42751
|
-
/* @__PURE__ */
|
|
41863
|
+
/* @__PURE__ */ jsx$1(
|
|
42752
41864
|
Flex,
|
|
42753
41865
|
{
|
|
42754
41866
|
flexDirection: "column",
|
|
@@ -42756,10 +41868,10 @@ function Sidebar({
|
|
|
42756
41868
|
borderBottomWidth: "1px",
|
|
42757
41869
|
borderBottomStyle: "solid",
|
|
42758
41870
|
borderBottomColor: "lightGrey",
|
|
42759
|
-
children: /* @__PURE__ */
|
|
42760
|
-
/* @__PURE__ */
|
|
42761
|
-
title && /* @__PURE__ */
|
|
42762
|
-
!hideCloseButton && /* @__PURE__ */
|
|
41871
|
+
children: /* @__PURE__ */ jsxs(Flex, { flexDirection: "column", gap: "x1", children: [
|
|
41872
|
+
/* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", alignItems: "flex-start", children: [
|
|
41873
|
+
title && /* @__PURE__ */ jsx$1(Flex, { alignItems: "center", height: "100%", children: /* @__PURE__ */ jsx$1(Heading2, { mb: 0, children: title }) }),
|
|
41874
|
+
!hideCloseButton && /* @__PURE__ */ jsx$1(Box, { marginLeft: "x2", children: /* @__PURE__ */ jsx$1(
|
|
42763
41875
|
IconicButton,
|
|
42764
41876
|
{
|
|
42765
41877
|
type: "button",
|
|
@@ -42771,11 +41883,11 @@ function Sidebar({
|
|
|
42771
41883
|
}
|
|
42772
41884
|
) })
|
|
42773
41885
|
] }),
|
|
42774
|
-
renderHelpText ? renderHelpText() : helpText && /* @__PURE__ */
|
|
41886
|
+
renderHelpText ? renderHelpText() : helpText && /* @__PURE__ */ jsx$1(Text, { color: "midGrey", children: helpText })
|
|
42775
41887
|
] })
|
|
42776
41888
|
}
|
|
42777
41889
|
),
|
|
42778
|
-
/* @__PURE__ */
|
|
41890
|
+
/* @__PURE__ */ jsx$1(
|
|
42779
41891
|
Flex,
|
|
42780
41892
|
{
|
|
42781
41893
|
p: p2,
|
|
@@ -42784,10 +41896,10 @@ function Sidebar({
|
|
|
42784
41896
|
flexGrow: 1,
|
|
42785
41897
|
flexDirection: "column",
|
|
42786
41898
|
style: { overflowBehaviour: "contain" },
|
|
42787
|
-
children: /* @__PURE__ */
|
|
41899
|
+
children: /* @__PURE__ */ jsx$1(AnimatedBox, { variants: childVariants, animate: isOpen ? "open" : "closed", flexGrow: 1, ref: contentRef, children })
|
|
42788
41900
|
}
|
|
42789
41901
|
),
|
|
42790
|
-
footer && /* @__PURE__ */
|
|
41902
|
+
footer && /* @__PURE__ */ jsx$1(
|
|
42791
41903
|
Box,
|
|
42792
41904
|
{
|
|
42793
41905
|
position: "sticky",
|
|
@@ -42813,7 +41925,7 @@ function LoadingAnimation({ inactive = false }) {
|
|
|
42813
41925
|
const color2 = inactive ? colors2.lightGrey : colors2.yellow;
|
|
42814
41926
|
return (
|
|
42815
41927
|
// Modified svg By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL
|
|
42816
|
-
/* @__PURE__ */
|
|
41928
|
+
/* @__PURE__ */ jsxs(
|
|
42817
41929
|
"svg",
|
|
42818
41930
|
{
|
|
42819
41931
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -42823,8 +41935,8 @@ function LoadingAnimation({ inactive = false }) {
|
|
|
42823
41935
|
preserveAspectRatio: "xMidYMid",
|
|
42824
41936
|
role: "img",
|
|
42825
41937
|
children: [
|
|
42826
|
-
/* @__PURE__ */
|
|
42827
|
-
/* @__PURE__ */
|
|
41938
|
+
/* @__PURE__ */ jsx$1("title", { children: "Loading animation" }),
|
|
41939
|
+
/* @__PURE__ */ jsx$1("g", { transform: "translate(4 5)", children: /* @__PURE__ */ jsx$1("circle", { cx: "0", cy: "0", r: "4", fill: color1, transform: "scale(0.275039 0.275039)", children: /* @__PURE__ */ jsx$1(
|
|
42828
41940
|
"animateTransform",
|
|
42829
41941
|
{
|
|
42830
41942
|
attributeName: "transform",
|
|
@@ -42838,7 +41950,7 @@ function LoadingAnimation({ inactive = false }) {
|
|
|
42838
41950
|
repeatCount: "indefinite"
|
|
42839
41951
|
}
|
|
42840
41952
|
) }) }),
|
|
42841
|
-
/* @__PURE__ */
|
|
41953
|
+
/* @__PURE__ */ jsx$1("g", { transform: "translate(22.4 5)", children: /* @__PURE__ */ jsx$1("circle", { cx: "0", cy: "0", r: "4", fill: color2, transform: "scale(0.0862935 0.0862935)", children: /* @__PURE__ */ jsx$1(
|
|
42842
41954
|
"animateTransform",
|
|
42843
41955
|
{
|
|
42844
41956
|
attributeName: "transform",
|
|
@@ -42852,7 +41964,7 @@ function LoadingAnimation({ inactive = false }) {
|
|
|
42852
41964
|
repeatCount: "indefinite"
|
|
42853
41965
|
}
|
|
42854
41966
|
) }) }),
|
|
42855
|
-
/* @__PURE__ */
|
|
41967
|
+
/* @__PURE__ */ jsx$1("g", { transform: "translate(40.0 5)", children: /* @__PURE__ */ jsx$1("circle", { cx: "0", cy: "0", r: "4", fill: color1, transform: "scale(0.0000823166 0.0000823166)", children: /* @__PURE__ */ jsx$1(
|
|
42856
41968
|
"animateTransform",
|
|
42857
41969
|
{
|
|
42858
41970
|
attributeName: "transform",
|
|
@@ -42866,7 +41978,7 @@ function LoadingAnimation({ inactive = false }) {
|
|
|
42866
41978
|
repeatCount: "indefinite"
|
|
42867
41979
|
}
|
|
42868
41980
|
) }) }),
|
|
42869
|
-
/* @__PURE__ */
|
|
41981
|
+
/* @__PURE__ */ jsx$1("g", { transform: "translate(59.2 5)", children: /* @__PURE__ */ jsx$1("circle", { cx: "0", cy: "0", r: "4", fill: color2, transform: "scale(0.0779504 0.0779504)", children: /* @__PURE__ */ jsx$1(
|
|
42870
41982
|
"animateTransform",
|
|
42871
41983
|
{
|
|
42872
41984
|
attributeName: "transform",
|
|
@@ -42880,7 +41992,7 @@ function LoadingAnimation({ inactive = false }) {
|
|
|
42880
41992
|
repeatCount: "indefinite"
|
|
42881
41993
|
}
|
|
42882
41994
|
) }) }),
|
|
42883
|
-
/* @__PURE__ */
|
|
41995
|
+
/* @__PURE__ */ jsx$1("g", { transform: "translate(77.6 5)", children: /* @__PURE__ */ jsx$1("circle", { cx: "0", cy: "0", r: "4", fill: color1, transform: "scale(0.262719 0.262719)", children: /* @__PURE__ */ jsx$1(
|
|
42884
41996
|
"animateTransform",
|
|
42885
41997
|
{
|
|
42886
41998
|
attributeName: "transform",
|
|
@@ -42894,7 +42006,7 @@ function LoadingAnimation({ inactive = false }) {
|
|
|
42894
42006
|
repeatCount: "indefinite"
|
|
42895
42007
|
}
|
|
42896
42008
|
) }) }),
|
|
42897
|
-
/* @__PURE__ */
|
|
42009
|
+
/* @__PURE__ */ jsx$1("g", { transform: "translate(96 5)", children: /* @__PURE__ */ jsx$1("circle", { cx: "0", cy: "0", r: "4", fill: color2, transform: "scale(0.49324 0.49324)", children: /* @__PURE__ */ jsx$1(
|
|
42898
42010
|
"animateTransform",
|
|
42899
42011
|
{
|
|
42900
42012
|
attributeName: "transform",
|
|
@@ -44452,7 +43564,7 @@ const Modal = ({
|
|
|
44452
43564
|
}) => {
|
|
44453
43565
|
const modalHasHeader = Boolean(onRequestClose || title);
|
|
44454
43566
|
const themeContext = useContext(ThemeContext$1);
|
|
44455
|
-
return /* @__PURE__ */
|
|
43567
|
+
return /* @__PURE__ */ jsx$1(
|
|
44456
43568
|
StyledReactModal,
|
|
44457
43569
|
{
|
|
44458
43570
|
maxWidth: maxWidth2,
|
|
@@ -44478,7 +43590,7 @@ const Modal = ({
|
|
|
44478
43590
|
appElement,
|
|
44479
43591
|
ariaHideApp,
|
|
44480
43592
|
parentSelector,
|
|
44481
|
-
children: /* @__PURE__ */
|
|
43593
|
+
children: /* @__PURE__ */ jsx$1(
|
|
44482
43594
|
ModalWrapper,
|
|
44483
43595
|
{
|
|
44484
43596
|
closeAriaLabel,
|
|
@@ -44502,13 +43614,13 @@ function ModalWrapper({
|
|
|
44502
43614
|
}) {
|
|
44503
43615
|
const theme = useTheme();
|
|
44504
43616
|
useScrollLock();
|
|
44505
|
-
return /* @__PURE__ */
|
|
44506
|
-
modalHasHeader && /* @__PURE__ */
|
|
44507
|
-
title ? /* @__PURE__ */
|
|
44508
|
-
onRequestClose && /* @__PURE__ */
|
|
43617
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
43618
|
+
modalHasHeader && /* @__PURE__ */ jsxs(ModalHeader, { hasCloseButton: Boolean(onRequestClose), children: [
|
|
43619
|
+
title ? /* @__PURE__ */ jsx$1(Heading2, { id: "modal-title", mb: "none", children: title }) : /* @__PURE__ */ jsx$1("div", { style: { height: theme.space.x4 } }),
|
|
43620
|
+
onRequestClose && /* @__PURE__ */ jsx$1(ModalCloseButton, { onClick: onRequestClose, "aria-label": closeAriaLabel })
|
|
44509
43621
|
] }),
|
|
44510
|
-
/* @__PURE__ */
|
|
44511
|
-
footerContent && /* @__PURE__ */
|
|
43622
|
+
/* @__PURE__ */ jsx$1(ModalContent, { hasFooter: !!footerContent, children }),
|
|
43623
|
+
footerContent && /* @__PURE__ */ jsx$1(ModalFooter, { children: footerContent })
|
|
44512
43624
|
] });
|
|
44513
43625
|
}
|
|
44514
43626
|
Modal.setAppElement = ReactModal.setAppElement;
|
|
@@ -44854,7 +43966,7 @@ const $322c88a641701f3b$export$37fe8002734d8f2 = /* @__PURE__ */ forwardRef((pro
|
|
|
44854
43966
|
const hasPointerMoveOpenedRef = useRef(false);
|
|
44855
43967
|
const wasClickCloseRef = useRef(false);
|
|
44856
43968
|
const open2 = itemContext.value === context.value;
|
|
44857
|
-
return /* @__PURE__ */ createElement(Fragment, null, /* @__PURE__ */ createElement($322c88a641701f3b$var$Collection.ItemSlot, {
|
|
43969
|
+
return /* @__PURE__ */ createElement(Fragment$1, null, /* @__PURE__ */ createElement($322c88a641701f3b$var$Collection.ItemSlot, {
|
|
44858
43970
|
scope: __scopeNavigationMenu,
|
|
44859
43971
|
value: itemContext.value
|
|
44860
43972
|
}, /* @__PURE__ */ createElement($322c88a641701f3b$var$FocusGroupItem, {
|
|
@@ -44897,7 +44009,7 @@ const $322c88a641701f3b$export$37fe8002734d8f2 = /* @__PURE__ */ forwardRef((pro
|
|
|
44897
44009
|
event.preventDefault();
|
|
44898
44010
|
}
|
|
44899
44011
|
})
|
|
44900
|
-
})))), open2 && /* @__PURE__ */ createElement(Fragment, null, /* @__PURE__ */ createElement($ea1ef594cf570d83$export$be92b6f5f03c0fe9, {
|
|
44012
|
+
})))), open2 && /* @__PURE__ */ createElement(Fragment$1, null, /* @__PURE__ */ createElement($ea1ef594cf570d83$export$be92b6f5f03c0fe9, {
|
|
44901
44013
|
"aria-hidden": true,
|
|
44902
44014
|
tabIndex: 0,
|
|
44903
44015
|
ref: itemContext.focusProxyRef,
|
|
@@ -45462,34 +44574,34 @@ const SubMenuList = styled($322c88a641701f3b$export$54c2e3dc7acea9f5)(
|
|
|
45462
44574
|
function MenuSubItem({ item, level }) {
|
|
45463
44575
|
const theme = useTheme();
|
|
45464
44576
|
if (item.type === "separator") {
|
|
45465
|
-
return /* @__PURE__ */
|
|
44577
|
+
return /* @__PURE__ */ jsx$1(Divider$1, { my: "x1", mx: "x1", width: "auto" });
|
|
45466
44578
|
}
|
|
45467
44579
|
if (item.type === "custom") {
|
|
45468
|
-
return /* @__PURE__ */
|
|
44580
|
+
return /* @__PURE__ */ jsx$1($322c88a641701f3b$export$6d08773d2e66f8f2, { children: item.render({ withinSubMenu: true, level, withinMobileNav: false }) }, item.key);
|
|
45469
44581
|
}
|
|
45470
44582
|
const hasIcon = "icon" in item;
|
|
45471
44583
|
const isLink = item.type === "link";
|
|
45472
44584
|
const hasSubMenu = item.type === "button" && !!item.items && item.items.length > 0;
|
|
45473
|
-
const content = /* @__PURE__ */
|
|
45474
|
-
hasIcon && /* @__PURE__ */
|
|
45475
|
-
/* @__PURE__ */
|
|
45476
|
-
/* @__PURE__ */
|
|
44585
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
44586
|
+
hasIcon && /* @__PURE__ */ jsxs(Flex, { alignItems: "center", gap: "x1", children: [
|
|
44587
|
+
/* @__PURE__ */ jsx$1(Icon, { icon: item.icon, size: "x3", "aria-hidden": true }),
|
|
44588
|
+
/* @__PURE__ */ jsx$1("span", { children: item.label ?? item.tooltip })
|
|
45477
44589
|
] }),
|
|
45478
|
-
"label" in item && item.label && !hasIcon && /* @__PURE__ */
|
|
45479
|
-
hasSubMenu && /* @__PURE__ */
|
|
44590
|
+
"label" in item && item.label && !hasIcon && /* @__PURE__ */ jsx$1("span", { children: item.label }),
|
|
44591
|
+
hasSubMenu && /* @__PURE__ */ jsx$1(CaretRight, { "aria-hidden": true, size: "x2" })
|
|
45480
44592
|
] });
|
|
45481
|
-
return /* @__PURE__ */
|
|
45482
|
-
/* @__PURE__ */
|
|
45483
|
-
hasSubMenu && /* @__PURE__ */
|
|
44593
|
+
return /* @__PURE__ */ jsx$1(SubMenuItem, { value: "label" in item ? item.label : item.key, children: isLink ? /* @__PURE__ */ jsx$1(SubMenuItemLink, { asChild: true, children: item.element ? React__default.cloneElement(item.element, { ...item.props, children: content }) : /* @__PURE__ */ jsx$1("a", { ...item.props, children: content }) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
44594
|
+
/* @__PURE__ */ jsx$1(SubMenuItemButton, { ...item.props, children: content }),
|
|
44595
|
+
hasSubMenu && /* @__PURE__ */ jsx$1(SubMenuContent, { left: `calc(100% - ${theme.space.half})`, top: `calc(-1 * ${theme.space.x1})`, children: /* @__PURE__ */ jsx$1($322c88a641701f3b$export$d7a01e11500dfb6f, { orientation: "vertical", children: /* @__PURE__ */ jsx$1(SubMenuList, { children: item.items?.map((subItem) => /* @__PURE__ */ jsx$1(MenuSubItem, { item: subItem, level: level + 1 }, subItem.key)) }) }) })
|
|
45484
44596
|
] }) }, item.key);
|
|
45485
44597
|
}
|
|
45486
44598
|
const NavigationMenuItem = React__default.forwardRef(
|
|
45487
44599
|
({ item, level = 0, ...props }, forwardedRef) => {
|
|
45488
44600
|
if (item.type === "separator") {
|
|
45489
|
-
return /* @__PURE__ */
|
|
44601
|
+
return /* @__PURE__ */ jsx$1(RadixNavigationMenuItem, { ref: forwardedRef, ...props, children: /* @__PURE__ */ jsx$1(VerticalDivider, { mx: "x1" }) });
|
|
45490
44602
|
}
|
|
45491
44603
|
if (item.type === "custom") {
|
|
45492
|
-
return /* @__PURE__ */
|
|
44604
|
+
return /* @__PURE__ */ jsx$1(RadixNavigationMenuItem, { ref: forwardedRef, ...props, children: item.render({ withinSubMenu: level > 0, level, withinMobileNav: false }) });
|
|
45493
44605
|
}
|
|
45494
44606
|
const hasIcon = "icon" in item;
|
|
45495
44607
|
const isLink = item.type === "link";
|
|
@@ -45497,26 +44609,26 @@ const NavigationMenuItem = React__default.forwardRef(
|
|
|
45497
44609
|
const hasLabel = "label" in item && item.label;
|
|
45498
44610
|
const hasIconOnly = hasIcon && !hasLabel;
|
|
45499
44611
|
const hasTooltip = hasIconOnly && Boolean(item.tooltip);
|
|
45500
|
-
const Content = /* @__PURE__ */
|
|
45501
|
-
hasIcon && /* @__PURE__ */
|
|
45502
|
-
"label" in item && item.label && /* @__PURE__ */
|
|
45503
|
-
hasSubMenu && /* @__PURE__ */
|
|
44612
|
+
const Content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
44613
|
+
hasIcon && /* @__PURE__ */ jsx$1(Icon, { icon: item.icon, size: "x3", "aria-hidden": true }),
|
|
44614
|
+
"label" in item && item.label && /* @__PURE__ */ jsx$1(Text, { fontSize: "small", lineHeight: "smallTextCompressed", children: item.label }),
|
|
44615
|
+
hasSubMenu && /* @__PURE__ */ jsx$1(CaretDown, { "aria-hidden": true, size: "x2" })
|
|
45504
44616
|
] });
|
|
45505
44617
|
if (isLink) {
|
|
45506
|
-
const Item22 = /* @__PURE__ */
|
|
44618
|
+
const Item22 = /* @__PURE__ */ jsx$1(RadixNavigationMenuItem, { ref: forwardedRef, ...props, children: /* @__PURE__ */ jsx$1(
|
|
45507
44619
|
NavigationMenuLink$1,
|
|
45508
44620
|
{
|
|
45509
44621
|
asChild: true,
|
|
45510
44622
|
"aria-label": hasIconOnly && item.tooltip ? item.tooltip : item.label,
|
|
45511
44623
|
borderRadius: hasIconOnly ? "rounded" : void 0,
|
|
45512
44624
|
p: hasIcon ? "x1" : void 0,
|
|
45513
|
-
children: item.element ? React__default.cloneElement(item.element, { ...item.props, children: Content }) : /* @__PURE__ */
|
|
44625
|
+
children: item.element ? React__default.cloneElement(item.element, { ...item.props, children: Content }) : /* @__PURE__ */ jsx$1("a", { ...item.props, children: Content })
|
|
45514
44626
|
}
|
|
45515
44627
|
) });
|
|
45516
|
-
return hasTooltip ? /* @__PURE__ */
|
|
44628
|
+
return hasTooltip ? /* @__PURE__ */ jsx$1(MiniTooltip, { delayDuration: 0, sideOffset: 0, content: item.tooltip, children: Item22 }) : Item22;
|
|
45517
44629
|
}
|
|
45518
|
-
const Item2 = /* @__PURE__ */
|
|
45519
|
-
/* @__PURE__ */
|
|
44630
|
+
const Item2 = /* @__PURE__ */ jsxs(RadixNavigationMenuItem, { ref: forwardedRef, ...props, children: [
|
|
44631
|
+
/* @__PURE__ */ jsx$1(
|
|
45520
44632
|
NavigationMenuTrigger,
|
|
45521
44633
|
{
|
|
45522
44634
|
asChild: true,
|
|
@@ -45524,12 +44636,12 @@ const NavigationMenuItem = React__default.forwardRef(
|
|
|
45524
44636
|
"aria-label": hasIconOnly && item.tooltip ? item.tooltip : hasLabel ? item.label : void 0,
|
|
45525
44637
|
borderRadius: hasIconOnly ? "rounded" : void 0,
|
|
45526
44638
|
p: hasIcon ? "x1" : void 0,
|
|
45527
|
-
children: /* @__PURE__ */
|
|
44639
|
+
children: /* @__PURE__ */ jsx$1(Button, { ...item.props, children: Content })
|
|
45528
44640
|
}
|
|
45529
44641
|
),
|
|
45530
|
-
hasSubMenu && /* @__PURE__ */
|
|
44642
|
+
hasSubMenu && /* @__PURE__ */ jsx$1(SubMenuContent, { children: /* @__PURE__ */ jsx$1($322c88a641701f3b$export$d7a01e11500dfb6f, { orientation: "vertical", children: /* @__PURE__ */ jsx$1(NavigationMenuSubList, { children: item.items?.map((sub) => /* @__PURE__ */ jsx$1(MenuSubItem, { item: sub, level: level + 1 }, sub.key)) }) }) })
|
|
45531
44643
|
] });
|
|
45532
|
-
return hasTooltip ? /* @__PURE__ */
|
|
44644
|
+
return hasTooltip ? /* @__PURE__ */ jsx$1(MiniTooltip, { delayDuration: 0, sideOffset: 0, content: item.tooltip, children: Item2 }) : Item2;
|
|
45533
44645
|
}
|
|
45534
44646
|
);
|
|
45535
44647
|
NavigationMenuItem.displayName = "NavigationMenuItem";
|
|
@@ -45543,8 +44655,8 @@ const NavigationMenuSubList = styled($322c88a641701f3b$export$54c2e3dc7acea9f5)`
|
|
|
45543
44655
|
}
|
|
45544
44656
|
`;
|
|
45545
44657
|
const Button = React__default.forwardRef(
|
|
45546
|
-
({ onPointerEnter
|
|
45547
|
-
return /* @__PURE__ */
|
|
44658
|
+
({ onPointerEnter, onPointerLeave, onPointerMove, ...props }, forwardedRef) => {
|
|
44659
|
+
return /* @__PURE__ */ jsx$1("button", { ...props, ref: forwardedRef });
|
|
45548
44660
|
}
|
|
45549
44661
|
);
|
|
45550
44662
|
Button.displayName = "Button";
|
|
@@ -45576,11 +44688,11 @@ const HeaderWrapper = styled(Flex).attrs({
|
|
|
45576
44688
|
}
|
|
45577
44689
|
}));
|
|
45578
44690
|
const Header$2 = ({ title, subtitle1, subtitle2, containerProps }) => {
|
|
45579
|
-
return /* @__PURE__ */
|
|
45580
|
-
/* @__PURE__ */
|
|
45581
|
-
/* @__PURE__ */
|
|
45582
|
-
/* @__PURE__ */
|
|
45583
|
-
/* @__PURE__ */
|
|
44691
|
+
return /* @__PURE__ */ jsxs(HeaderWrapper, { ...containerProps, children: [
|
|
44692
|
+
/* @__PURE__ */ jsx$1(HeaderText, { fontWeight: "bold", children: title }),
|
|
44693
|
+
/* @__PURE__ */ jsx$1(HeaderText, { fontWeight: "normal", children: subtitle1 }),
|
|
44694
|
+
/* @__PURE__ */ jsx$1(HeaderText, { fontWeight: "normal", children: subtitle2 }),
|
|
44695
|
+
/* @__PURE__ */ jsx$1(BackgroundTriangles, {})
|
|
45584
44696
|
] });
|
|
45585
44697
|
};
|
|
45586
44698
|
const baseUserMenuItemStyles = (theme, isMobile) => ({
|
|
@@ -45635,12 +44747,12 @@ const UserMenuTrigger = styled($322c88a641701f3b$export$41fb9f06171c75f4)(
|
|
|
45635
44747
|
);
|
|
45636
44748
|
const Item$1 = React__default.forwardRef(
|
|
45637
44749
|
({ item, level = 0, ...props }, forwardedRef) => {
|
|
45638
|
-
return /* @__PURE__ */
|
|
45639
|
-
item.type === "link" && /* @__PURE__ */
|
|
44750
|
+
return /* @__PURE__ */ jsxs(RadixNavigationMenuItem, { ref: forwardedRef, ...props, children: [
|
|
44751
|
+
item.type === "link" && /* @__PURE__ */ jsx$1(UserMenuLink, { asChild: true, children: item.element ? React__default.cloneElement(item.element, {
|
|
45640
44752
|
...item.props,
|
|
45641
44753
|
children: item.label
|
|
45642
|
-
}) : /* @__PURE__ */
|
|
45643
|
-
item.type === "button" && /* @__PURE__ */
|
|
44754
|
+
}) : /* @__PURE__ */ jsx$1("a", { ...item.props, children: item.label }) }),
|
|
44755
|
+
item.type === "button" && /* @__PURE__ */ jsx$1(UserMenuTrigger, { ...item.props, children: item.label }),
|
|
45644
44756
|
item.type === "custom" && item.render({ level, withinMobileNav: false })
|
|
45645
44757
|
] });
|
|
45646
44758
|
}
|
|
@@ -45698,15 +44810,15 @@ const MobileSecondaryLogoContainer = styled($322c88a641701f3b$export$d7a01e11500
|
|
|
45698
44810
|
}));
|
|
45699
44811
|
const MobileItem = React__default.forwardRef(
|
|
45700
44812
|
({ item, level = 0, ...props }, forwardedRef) => {
|
|
45701
|
-
const content = /* @__PURE__ */
|
|
45702
|
-
item.type === "link" && /* @__PURE__ */
|
|
44813
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
44814
|
+
item.type === "link" && /* @__PURE__ */ jsx$1(IndentedContainer, { level, children: /* @__PURE__ */ jsx$1(UserMenuLink, { asChild: true, $isMobile: true, children: item.element ? React__default.cloneElement(item.element, {
|
|
45703
44815
|
...item.props,
|
|
45704
44816
|
children: item.label
|
|
45705
|
-
}) : /* @__PURE__ */
|
|
45706
|
-
item.type === "button" && /* @__PURE__ */
|
|
44817
|
+
}) : /* @__PURE__ */ jsx$1("a", { ...item.props, children: item.label }) }) }),
|
|
44818
|
+
item.type === "button" && /* @__PURE__ */ jsx$1(IndentedContainer, { level, children: /* @__PURE__ */ jsx$1(UserMenuTrigger, { ...item.props, $isMobile: true, children: item.label }) }),
|
|
45707
44819
|
item.type === "custom" && item.render({ level, withinMobileNav: true })
|
|
45708
44820
|
] });
|
|
45709
|
-
return /* @__PURE__ */
|
|
44821
|
+
return /* @__PURE__ */ jsx$1(RadixNavigationMenuItem, { ref: forwardedRef, ...props, children: content });
|
|
45710
44822
|
}
|
|
45711
44823
|
);
|
|
45712
44824
|
MobileItem.displayName = "MobileItem";
|
|
@@ -45739,9 +44851,9 @@ const NavigationMenuContent = styled($322c88a641701f3b$export$7c6e2c02157bb7d2).
|
|
|
45739
44851
|
}),
|
|
45740
44852
|
addStyledProps
|
|
45741
44853
|
);
|
|
45742
|
-
const Link = React__default.forwardRef(({ children, ...props }, forwardedRef) => /* @__PURE__ */
|
|
44854
|
+
const Link = React__default.forwardRef(({ children, ...props }, forwardedRef) => /* @__PURE__ */ jsx$1($322c88a641701f3b$export$a6c7ac8248d6e38a, { asChild: true, children: /* @__PURE__ */ jsx$1(A$1, { ...props, ref: forwardedRef, children }) }));
|
|
45743
44855
|
Link.displayName = "Link";
|
|
45744
|
-
const A$1 = styled
|
|
44856
|
+
const A$1 = styled("a")(({ theme }) => ({
|
|
45745
44857
|
textDecoration: "none",
|
|
45746
44858
|
width: "100%",
|
|
45747
44859
|
display: "flex",
|
|
@@ -45759,10 +44871,10 @@ const A$1 = styled$1("a")(({ theme }) => ({
|
|
|
45759
44871
|
outline: "none"
|
|
45760
44872
|
}
|
|
45761
44873
|
}));
|
|
45762
|
-
const FullWidthItem = styled
|
|
44874
|
+
const FullWidthItem = styled($322c88a641701f3b$export$6d08773d2e66f8f2)({
|
|
45763
44875
|
width: "100%"
|
|
45764
44876
|
});
|
|
45765
|
-
const Item = React__default.forwardRef(({ children, ...props }, forwardedRef) => /* @__PURE__ */
|
|
44877
|
+
const Item = React__default.forwardRef(({ children, ...props }, forwardedRef) => /* @__PURE__ */ jsx$1(FullWidthItem, { ...props, ref: forwardedRef, children }));
|
|
45766
44878
|
Item.displayName = "Item";
|
|
45767
44879
|
const List = styled($322c88a641701f3b$export$54c2e3dc7acea9f5)(({ theme }) => ({
|
|
45768
44880
|
margin: 0,
|
|
@@ -45845,14 +44957,14 @@ function NulogyAppSwitcher({ config: config2 }) {
|
|
|
45845
44957
|
});
|
|
45846
44958
|
}, [config2, t3]);
|
|
45847
44959
|
if (!config2) return null;
|
|
45848
|
-
return /* @__PURE__ */
|
|
45849
|
-
/* @__PURE__ */
|
|
45850
|
-
/* @__PURE__ */
|
|
45851
|
-
app.indicator ? /* @__PURE__ */
|
|
45852
|
-
/* @__PURE__ */
|
|
44960
|
+
return /* @__PURE__ */ jsxs($322c88a641701f3b$export$6d08773d2e66f8f2, { children: [
|
|
44961
|
+
/* @__PURE__ */ jsx$1(NavigationMenuIconTrigger, { "aria-label": t3("toggle app switcher"), children: /* @__PURE__ */ jsx$1(Icon, { icon: "apps", size: "x3" }) }),
|
|
44962
|
+
/* @__PURE__ */ jsx$1(NavigationMenuContent, { left: 0, "aria-label": t3("app switcher"), children: /* @__PURE__ */ jsx$1($322c88a641701f3b$export$d7a01e11500dfb6f, { children: /* @__PURE__ */ jsx$1(AppSwitcher.List, { children: includedApps.map((app) => /* @__PURE__ */ jsx$1(AppSwitcher.Item, { children: /* @__PURE__ */ jsxs(AppSwitcher.Link, { href: app.url, "aria-label": app.label, children: [
|
|
44963
|
+
app.indicator ? /* @__PURE__ */ jsxs(AppSwitcher.Header, { children: [
|
|
44964
|
+
/* @__PURE__ */ jsx$1(AppSwitcher.Title, { children: app.label }),
|
|
45853
44965
|
app.indicator
|
|
45854
|
-
] }) : /* @__PURE__ */
|
|
45855
|
-
/* @__PURE__ */
|
|
44966
|
+
] }) : /* @__PURE__ */ jsx$1(AppSwitcher.Title, { children: app.label }),
|
|
44967
|
+
/* @__PURE__ */ jsx$1(AppSwitcher.Description, { children: app.description })
|
|
45856
44968
|
] }) }, app.id)) }) }) })
|
|
45857
44969
|
] });
|
|
45858
44970
|
}
|
|
@@ -45918,44 +45030,44 @@ const useResponsiveMenu = (initialMenuItems) => {
|
|
|
45918
45030
|
};
|
|
45919
45031
|
};
|
|
45920
45032
|
function SvgNulogyLogo(props) {
|
|
45921
|
-
return /* @__PURE__ */
|
|
45922
|
-
/* @__PURE__ */
|
|
45033
|
+
return /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 102 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
45034
|
+
/* @__PURE__ */ jsx$1(
|
|
45923
45035
|
"path",
|
|
45924
45036
|
{
|
|
45925
45037
|
d: "M23.4218 0.867146L27.759 2.60144V18.2175C27.759 21.5706 23.6157 22.1596 20.8189 22.5547C22.4185 22.1596 23.4307 21.7156 23.4218 18.2175V4.33721L19.0846 2.60144L23.4218 0.867146ZM5.20435 21.6875V12.1474C5.20435 11.1871 5.925 10.1009 6.79955 9.72653L11.2773 7.80283V13.8699L15.6145 16.4846C16.4891 16.9286 18.2175 16.9389 18.2175 15.616V13.0131L16.4802 12.1445V0L3.2555 4.87288C1.45757 5.53434 0 7.61934 0 9.54304V23.8569L5.20435 21.6875Z",
|
|
45926
45038
|
fill: "#F0B41C"
|
|
45927
45039
|
}
|
|
45928
45040
|
),
|
|
45929
|
-
/* @__PURE__ */
|
|
45041
|
+
/* @__PURE__ */ jsx$1(
|
|
45930
45042
|
"path",
|
|
45931
45043
|
{
|
|
45932
45044
|
d: "M36.7354 18.4818H32.8096V7.1808H36.435V9.07491C36.9583 8.39756 37.6125 7.83242 38.3587 7.41313C39.0371 7.04867 39.7964 6.86089 40.5665 6.86709C41.7622 6.86709 42.6693 7.20991 43.2878 7.89553C43.9064 8.58116 44.2156 9.58444 44.2156 10.9054V18.4818H40.3105V12.0078C40.3105 11.4159 40.1892 10.9685 39.9465 10.6657C39.7038 10.3628 39.3442 10.2148 38.8678 10.2217C38.1831 10.2217 37.6563 10.4516 37.2874 10.9113C36.9184 11.371 36.7344 12.0404 36.7354 12.9194V18.4818Z",
|
|
45933
45045
|
fill: "#1C68A5"
|
|
45934
45046
|
}
|
|
45935
45047
|
),
|
|
45936
|
-
/* @__PURE__ */
|
|
45048
|
+
/* @__PURE__ */ jsx$1(
|
|
45937
45049
|
"path",
|
|
45938
45050
|
{
|
|
45939
45051
|
d: "M54.0493 6.86694H57.9515V17.2594L54.3261 18.7081V16.5003C53.802 17.1785 53.148 17.7454 52.4024 18.168C51.7277 18.5291 50.9731 18.7149 50.2079 18.7081C49.0102 18.7081 48.1007 18.3628 47.4792 17.6722C46.8577 16.9817 46.5459 15.9779 46.5439 14.6609V6.86694H50.4698V13.5659C50.4698 14.1578 50.5911 14.6071 50.8338 14.9139C51.0765 15.2207 51.4361 15.3732 51.9126 15.3712C52.6031 15.3712 53.1299 15.1394 53.4929 14.6757C53.856 14.212 54.04 13.5451 54.0449 12.675L54.0493 6.86694Z",
|
|
45940
45052
|
fill: "#1C68A5"
|
|
45941
45053
|
}
|
|
45942
45054
|
),
|
|
45943
|
-
/* @__PURE__ */
|
|
45944
|
-
/* @__PURE__ */
|
|
45055
|
+
/* @__PURE__ */ jsx$1("path", { d: "M62.349 18.7354H60.2773V0.830151L62.349 0V18.7354Z", fill: "#1C68A5" }),
|
|
45056
|
+
/* @__PURE__ */ jsx$1(
|
|
45945
45057
|
"path",
|
|
45946
45058
|
{
|
|
45947
45059
|
d: "M64.0928 13.0257C64.0928 11.2362 64.6615 9.76236 65.7989 8.60419C66.9364 7.44603 68.3787 6.86694 70.1258 6.86694C71.8729 6.86694 73.3152 7.44603 74.4526 8.60419C75.5901 9.76236 76.1588 11.2362 76.1588 13.0257C76.1588 14.8232 75.5901 16.3029 74.4526 17.4651C73.3152 18.6272 71.8729 19.2063 70.1258 19.2023C68.3856 19.2023 66.9453 18.6232 65.8049 17.4651C64.6645 16.3069 64.0938 14.8271 64.0928 13.0257ZM66.1497 13.0257C66.1497 14.4315 66.5132 15.5626 67.2402 16.4189C67.9673 17.2752 68.9208 17.7038 70.1006 17.7048C71.2845 17.7048 72.2419 17.2761 72.9729 16.4189C73.7039 15.5616 74.0719 14.4305 74.0768 13.0257C74.0768 11.6298 73.7088 10.5032 72.9729 9.64595C72.2369 8.78867 71.2795 8.36053 70.1006 8.36151C68.9168 8.36151 67.9634 8.79015 67.2402 9.64743C66.5171 10.5047 66.1536 11.6308 66.1497 13.0257Z",
|
|
45948
45060
|
fill: "#1C68A5"
|
|
45949
45061
|
}
|
|
45950
45062
|
),
|
|
45951
|
-
/* @__PURE__ */
|
|
45063
|
+
/* @__PURE__ */ jsx$1(
|
|
45952
45064
|
"path",
|
|
45953
45065
|
{
|
|
45954
45066
|
d: "M86.2825 17.9933C85.7073 18.3338 85.0919 18.6013 84.4505 18.7895C83.8592 18.9596 83.2471 19.0463 82.6319 19.0469C80.9686 19.0469 79.6245 18.495 78.5995 17.3911C77.5745 16.2872 77.0625 14.8365 77.0635 13.0391C77.0635 11.2071 77.611 9.72043 78.706 8.57904C79.8011 7.43764 81.2315 6.86694 82.9974 6.86694C83.5542 6.87509 84.1095 6.92854 84.6577 7.02676C85.289 7.13133 86.0191 7.29213 86.8477 7.50916L88.3142 6.91726V17.1129C88.3142 18.4753 88.2496 19.4721 88.1203 20.1035C88.0069 20.6938 87.7835 21.2575 87.4618 21.7653C86.9756 22.5003 86.284 23.0761 85.473 23.4211C84.5283 23.8233 83.5089 24.0201 82.4824 23.9982C81.7434 23.9982 81.0074 23.9037 80.2923 23.7171C79.5452 23.5188 78.8236 23.2342 78.1422 22.8692L77.8034 20.4113L79.3201 21.4027C79.7777 21.6876 80.277 21.8993 80.7999 22.0302C81.3712 22.1909 81.9614 22.275 82.5549 22.2802C83.7387 22.2802 84.6567 21.9843 85.3088 21.3924C85.9608 20.8005 86.2854 19.958 86.2825 18.8649V17.9933ZM86.2825 16.4499V9.21238C85.7948 8.96846 85.2843 8.77317 84.7583 8.62935C84.298 8.50417 83.8235 8.43901 83.3466 8.4355C82.0848 8.4355 81.0692 8.8597 80.2997 9.7081C79.5303 10.5565 79.145 11.6851 79.144 13.0938C79.144 14.4473 79.4893 15.5216 80.1799 16.3168C80.8704 17.1119 81.8007 17.509 82.9707 17.508C83.461 17.5022 83.9474 17.4218 84.4135 17.2697C85.0592 17.0516 85.6846 16.7773 86.2825 16.4499Z",
|
|
45955
45067
|
fill: "#1C68A5"
|
|
45956
45068
|
}
|
|
45957
45069
|
),
|
|
45958
|
-
/* @__PURE__ */
|
|
45070
|
+
/* @__PURE__ */ jsx$1(
|
|
45959
45071
|
"path",
|
|
45960
45072
|
{
|
|
45961
45073
|
d: "M90.0352 6.86694H92.1927L95.5784 15.7456L99.3044 6.86694H101.061L95.6672 19.3222L95.5784 19.4983C94.726 21.4378 94.0695 22.8189 93.6088 23.6416H91.364C91.8422 23.1454 92.2709 22.6037 92.644 22.0242C93.1111 21.2739 93.526 20.4922 93.8855 19.6847L94.6136 18.1176L90.0352 6.86694Z",
|
|
@@ -45969,14 +45081,14 @@ function NulogyLogo({ app }) {
|
|
|
45969
45081
|
if (app && !(app in APP_DISPLAY_NAMES)) {
|
|
45970
45082
|
throw new Error(`Invalid app name: ${app}. Valid names are: ${Object.keys(APP_DISPLAY_NAMES).join(", ")}`);
|
|
45971
45083
|
}
|
|
45972
|
-
return /* @__PURE__ */
|
|
45973
|
-
/* @__PURE__ */
|
|
45084
|
+
return /* @__PURE__ */ jsxs(Flex, { alignItems: "flex-start", justifyContent: "center", flexDirection: appDisplayName ? "column" : "row", children: [
|
|
45085
|
+
/* @__PURE__ */ jsx$1(SvgNulogyLogo, { width: "102", height: "24" }),
|
|
45974
45086
|
appDisplayName && /*
|
|
45975
45087
|
This Text component is using custom properties that are not
|
|
45976
45088
|
in the theme because we're trying to match the branding
|
|
45977
45089
|
typography and colors of the Nulogy logo.
|
|
45978
45090
|
*/
|
|
45979
|
-
/* @__PURE__ */
|
|
45091
|
+
/* @__PURE__ */ jsx$1(
|
|
45980
45092
|
Text,
|
|
45981
45093
|
{
|
|
45982
45094
|
fontSize: "10px",
|
|
@@ -45996,11 +45108,11 @@ const NavigationMenuLink = styled(NavigationMenuLink$1)(({ theme }) => ({
|
|
|
45996
45108
|
padding: theme.space.x1
|
|
45997
45109
|
}));
|
|
45998
45110
|
const NavigationLogoLink = ({ href, renderAsFragment = false, ...props }) => {
|
|
45999
|
-
return /* @__PURE__ */
|
|
45111
|
+
return /* @__PURE__ */ jsx$1(NavigationMenuLink, { href, asChild: renderAsFragment, ...props });
|
|
46000
45112
|
};
|
|
46001
45113
|
function MoreMenuItem({ moreMenu }) {
|
|
46002
45114
|
const { t: t3 } = useTranslation();
|
|
46003
|
-
return /* @__PURE__ */
|
|
45115
|
+
return /* @__PURE__ */ jsx$1(
|
|
46004
45116
|
NavigationMenuItem,
|
|
46005
45117
|
{
|
|
46006
45118
|
item: {
|
|
@@ -46034,29 +45146,29 @@ function DesktopNav({
|
|
|
46034
45146
|
() => userMenuExists && (userMenu.header || userMenu.controls || userMenu.menuItems && userMenu.menuItems.length > 0),
|
|
46035
45147
|
[userMenuExists, userMenu]
|
|
46036
45148
|
);
|
|
46037
|
-
return /* @__PURE__ */
|
|
46038
|
-
/* @__PURE__ */
|
|
46039
|
-
/* @__PURE__ */
|
|
46040
|
-
/* @__PURE__ */
|
|
46041
|
-
menuItems.map((item) => /* @__PURE__ */
|
|
46042
|
-
moreMenu.length > 0 && /* @__PURE__ */
|
|
46043
|
-
hiddenMenuItem && /* @__PURE__ */
|
|
45149
|
+
return /* @__PURE__ */ jsxs(NavigationMenuRoot, { children: [
|
|
45150
|
+
/* @__PURE__ */ jsxs(NavigationMenuList, { ref: primaryMenuRef, children: [
|
|
45151
|
+
/* @__PURE__ */ jsx$1(NulogyAppSwitcher, { config: appSwitcher }),
|
|
45152
|
+
/* @__PURE__ */ jsx$1(RadixNavigationMenuItem, { display: "flex", children: primaryLogo ?? /* @__PURE__ */ jsx$1(NavigationLogoLink, { href: "/", "aria-label": "Nulogy Logo", children: /* @__PURE__ */ jsx$1(NulogyLogo, {}) }) }),
|
|
45153
|
+
menuItems.map((item) => /* @__PURE__ */ jsx$1(NavigationMenuItem, { item }, item.key)),
|
|
45154
|
+
moreMenu.length > 0 && /* @__PURE__ */ jsx$1(MoreMenuItem, { moreMenu }),
|
|
45155
|
+
hiddenMenuItem && /* @__PURE__ */ jsx$1(HiddenNavigationMenuItem, { ref: hiddenButtonRef, item: hiddenMenuItem })
|
|
46044
45156
|
] }),
|
|
46045
|
-
/* @__PURE__ */
|
|
46046
|
-
secondaryNavigation.map((item) => /* @__PURE__ */
|
|
46047
|
-
secondaryNavigation.length > 0 && userMenuExists && /* @__PURE__ */
|
|
46048
|
-
secondaryLogo && /* @__PURE__ */
|
|
46049
|
-
secondaryLogo && userMenuExists && /* @__PURE__ */
|
|
46050
|
-
userMenuExists && /* @__PURE__ */
|
|
46051
|
-
/* @__PURE__ */
|
|
46052
|
-
/* @__PURE__ */
|
|
46053
|
-
/* @__PURE__ */
|
|
46054
|
-
userMenu.triggerText.subtitle1 && /* @__PURE__ */
|
|
46055
|
-
userMenu.triggerText.subtitle2 && /* @__PURE__ */
|
|
45157
|
+
/* @__PURE__ */ jsxs(NavigationMenuList, { ref: secondaryMenuRef, children: [
|
|
45158
|
+
secondaryNavigation.map((item) => /* @__PURE__ */ jsx$1(NavigationMenuItem, { item }, item.key)),
|
|
45159
|
+
secondaryNavigation.length > 0 && userMenuExists && /* @__PURE__ */ jsx$1(VerticalDivider, {}),
|
|
45160
|
+
secondaryLogo && /* @__PURE__ */ jsx$1(RadixNavigationMenuItem, { display: "flex", children: secondaryLogo }),
|
|
45161
|
+
secondaryLogo && userMenuExists && /* @__PURE__ */ jsx$1(VerticalDivider, {}),
|
|
45162
|
+
userMenuExists && /* @__PURE__ */ jsxs($322c88a641701f3b$export$6d08773d2e66f8f2, { children: [
|
|
45163
|
+
/* @__PURE__ */ jsxs(NavigationMenuTrigger, { py: "half", disabled: !hasUserMenuContent, "aria-label": t3("toggle user menu"), children: [
|
|
45164
|
+
/* @__PURE__ */ jsxs(Flex, { flexDirection: "column", alignItems: "flex-start", children: [
|
|
45165
|
+
/* @__PURE__ */ jsx$1(TruncatedText, { showTooltip: false, fontSize: "smaller", lineHeight: "smallerText", fontWeight: "normal", children: userMenu.triggerText.title }),
|
|
45166
|
+
userMenu.triggerText.subtitle1 && /* @__PURE__ */ jsx$1(TruncatedText, { showTooltip: false, fontSize: "smaller", lineHeight: "smallerText", fontWeight: "normal", children: userMenu.triggerText.subtitle1 }),
|
|
45167
|
+
userMenu.triggerText.subtitle2 && /* @__PURE__ */ jsx$1(TruncatedText, { showTooltip: false, fontSize: "smaller", lineHeight: "smallerText", fontWeight: "normal", children: userMenu.triggerText.subtitle2 })
|
|
46056
45168
|
] }),
|
|
46057
|
-
hasUserMenuContent && /* @__PURE__ */
|
|
45169
|
+
hasUserMenuContent && /* @__PURE__ */ jsx$1(CaretDown, { icon: "downArrow", size: "x2", "aria-hidden": true })
|
|
46058
45170
|
] }),
|
|
46059
|
-
hasUserMenuContent && /* @__PURE__ */
|
|
45171
|
+
hasUserMenuContent && /* @__PURE__ */ jsxs(
|
|
46060
45172
|
NavigationMenuContent,
|
|
46061
45173
|
{
|
|
46062
45174
|
right: 0,
|
|
@@ -46065,11 +45177,11 @@ function DesktopNav({
|
|
|
46065
45177
|
pb: userMenu.menuItems && userMenu.menuItems.length ? "x1" : "none",
|
|
46066
45178
|
"aria-label": t3("user menu"),
|
|
46067
45179
|
children: [
|
|
46068
|
-
userMenu.header && /* @__PURE__ */
|
|
46069
|
-
(userMenu.controls || userMenu.menuItems && userMenu.menuItems.length > 0) && /* @__PURE__ */
|
|
46070
|
-
userMenu.controls && /* @__PURE__ */
|
|
46071
|
-
userMenu.controls && userMenu.menuItems && userMenu.menuItems.length > 0 && /* @__PURE__ */
|
|
46072
|
-
userMenu.menuItems && userMenu.menuItems.length > 0 && /* @__PURE__ */
|
|
45180
|
+
userMenu.header && /* @__PURE__ */ jsx$1(UserMenu.Header, { ...userMenu.header }),
|
|
45181
|
+
(userMenu.controls || userMenu.menuItems && userMenu.menuItems.length > 0) && /* @__PURE__ */ jsxs(UserMenu.Container, { p: "none", display: "flex", flexDirection: "column", children: [
|
|
45182
|
+
userMenu.controls && /* @__PURE__ */ jsx$1(Box, { p: "x2", children: userMenu.controls({ withinMobileNav: false }) }),
|
|
45183
|
+
userMenu.controls && userMenu.menuItems && userMenu.menuItems.length > 0 && /* @__PURE__ */ jsx$1(Box, { px: "x2", children: /* @__PURE__ */ jsx$1(Divider$1, { my: "x2" }) }),
|
|
45184
|
+
userMenu.menuItems && userMenu.menuItems.length > 0 && /* @__PURE__ */ jsx$1(Box, { px: "none", children: /* @__PURE__ */ jsx$1($322c88a641701f3b$export$d7a01e11500dfb6f, { orientation: "vertical", children: /* @__PURE__ */ jsx$1(NavigationMenuSubList, { children: userMenu.menuItems.map((item) => /* @__PURE__ */ jsx$1(UserMenu.Item, { item }, item.key)) }) }) })
|
|
46073
45185
|
] })
|
|
46074
45186
|
]
|
|
46075
45187
|
}
|
|
@@ -46099,25 +45211,25 @@ const MobileMenuItem = React__default.forwardRef(
|
|
|
46099
45211
|
return null;
|
|
46100
45212
|
}
|
|
46101
45213
|
if (menuItem.type === "separator") {
|
|
46102
|
-
return /* @__PURE__ */
|
|
45214
|
+
return /* @__PURE__ */ jsx$1(RadixNavigationMenuItem, { ref: forwardedRef, ...props, children: /* @__PURE__ */ jsx$1(IndentedContainer, { level, children: /* @__PURE__ */ jsx$1(Divider$1, { secondary: level > 0, my: "x2" }) }) });
|
|
46103
45215
|
}
|
|
46104
45216
|
if (menuItem.type === "custom") {
|
|
46105
|
-
return /* @__PURE__ */
|
|
45217
|
+
return /* @__PURE__ */ jsx$1(RadixNavigationMenuItem, { ref: forwardedRef, ...props, children: /* @__PURE__ */ jsx$1(IndentedContainer, { level, children: menuItem.render({ withinSubMenu: level > 0, level, withinMobileNav: true }) }) });
|
|
46106
45218
|
}
|
|
46107
45219
|
const hasIcon = "icon" in menuItem;
|
|
46108
45220
|
const hasLabel = "label" in menuItem && !!menuItem.label;
|
|
46109
45221
|
const hasTooltip = "tooltip" in menuItem && !!menuItem.tooltip;
|
|
46110
|
-
const IconFragment = hasIcon ? /* @__PURE__ */
|
|
45222
|
+
const IconFragment = hasIcon ? /* @__PURE__ */ jsx$1(Icon, { icon: menuItem.icon, size: "x3", "aria-hidden": true }) : null;
|
|
46111
45223
|
const labelText = hasLabel ? menuItem.label : hasIcon && hasTooltip ? menuItem.tooltip : null;
|
|
46112
|
-
const LabelFragment = labelText ? /* @__PURE__ */
|
|
45224
|
+
const LabelFragment = labelText ? /* @__PURE__ */ jsx$1(Text, { fontSize: "small", lineHeight: "smallTextCompressed", children: labelText }) : null;
|
|
46113
45225
|
if (menuItem.type === "link") {
|
|
46114
|
-
return /* @__PURE__ */
|
|
45226
|
+
return /* @__PURE__ */ jsx$1(RadixNavigationMenuItem, { ref: forwardedRef, ...props, children: /* @__PURE__ */ jsx$1(IndentedContainer, { level, children: /* @__PURE__ */ jsx$1(MobileNavigationLink, { asChild: true, children: menuItem.element ? React__default.cloneElement(menuItem.element, {
|
|
46115
45227
|
...menuItem.props,
|
|
46116
|
-
children: /* @__PURE__ */
|
|
45228
|
+
children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
46117
45229
|
IconFragment,
|
|
46118
45230
|
LabelFragment
|
|
46119
45231
|
] })
|
|
46120
|
-
}) : /* @__PURE__ */
|
|
45232
|
+
}) : /* @__PURE__ */ jsxs("a", { ...menuItem.props, children: [
|
|
46121
45233
|
IconFragment,
|
|
46122
45234
|
LabelFragment
|
|
46123
45235
|
] }) }) }) });
|
|
@@ -46125,12 +45237,12 @@ const MobileMenuItem = React__default.forwardRef(
|
|
|
46125
45237
|
if (menuItem.type === "button") {
|
|
46126
45238
|
const hasItems = !!menuItem.items && menuItem.items.length > 0;
|
|
46127
45239
|
if (hasItems) {
|
|
46128
|
-
return /* @__PURE__ */
|
|
46129
|
-
LabelFragment && /* @__PURE__ */
|
|
46130
|
-
/* @__PURE__ */
|
|
45240
|
+
return /* @__PURE__ */ jsxs(RadixNavigationMenuItem, { ref: forwardedRef, ...props, children: [
|
|
45241
|
+
LabelFragment && /* @__PURE__ */ jsx$1(IndentedContainer, { level, children: /* @__PURE__ */ jsx$1(MenuItemGroupLabel, { children: labelText }) }),
|
|
45242
|
+
/* @__PURE__ */ jsx$1($322c88a641701f3b$export$d7a01e11500dfb6f, { orientation: "vertical", children: /* @__PURE__ */ jsx$1(NavigationMenuSubList, { children: (menuItem.items || []).map((item) => /* @__PURE__ */ jsx$1(MobileMenuItem, { menuItem: item, level: level + 1 }, item.key)) }) })
|
|
46131
45243
|
] });
|
|
46132
45244
|
}
|
|
46133
|
-
return /* @__PURE__ */
|
|
45245
|
+
return /* @__PURE__ */ jsx$1(RadixNavigationMenuItem, { ref: forwardedRef, ...props, children: /* @__PURE__ */ jsx$1(IndentedContainer, { level, children: /* @__PURE__ */ jsxs(MobileNavigationButton, { ..."props" in menuItem ? menuItem.props : {}, children: [
|
|
46134
45246
|
IconFragment,
|
|
46135
45247
|
LabelFragment
|
|
46136
45248
|
] }) }) });
|
|
@@ -46148,26 +45260,26 @@ function MobileNav({
|
|
|
46148
45260
|
userMenu
|
|
46149
45261
|
}) {
|
|
46150
45262
|
const { t: t3 } = useTranslation();
|
|
46151
|
-
return /* @__PURE__ */
|
|
46152
|
-
/* @__PURE__ */
|
|
46153
|
-
/* @__PURE__ */
|
|
46154
|
-
/* @__PURE__ */
|
|
45263
|
+
return /* @__PURE__ */ jsxs(NavigationMenuRoot, { children: [
|
|
45264
|
+
/* @__PURE__ */ jsxs(NavigationMenuList, { children: [
|
|
45265
|
+
/* @__PURE__ */ jsx$1(NulogyAppSwitcher, { config: appSwitcher }),
|
|
45266
|
+
/* @__PURE__ */ jsx$1(RadixNavigationMenuItem, { display: "flex", children: primaryLogo ?? /* @__PURE__ */ jsx$1(NavigationLogoLink, { href: "/", "aria-label": t3("nulogy logo"), children: /* @__PURE__ */ jsx$1(NulogyLogo, {}) }) })
|
|
46155
45267
|
] }),
|
|
46156
|
-
(primaryNavigation.length > 0 || secondaryNavigation.length > 0 || userMenu) && /* @__PURE__ */
|
|
46157
|
-
getNavigationBarItems([...primaryNavigation, ...secondaryNavigation]).map((item) => /* @__PURE__ */
|
|
46158
|
-
/* @__PURE__ */
|
|
46159
|
-
/* @__PURE__ */
|
|
46160
|
-
/* @__PURE__ */
|
|
46161
|
-
/* @__PURE__ */
|
|
46162
|
-
primaryNavigation.length > 0 && /* @__PURE__ */
|
|
46163
|
-
secondaryNavigation.length > 0 && /* @__PURE__ */
|
|
46164
|
-
userMenu && /* @__PURE__ */
|
|
46165
|
-
userMenu.header && /* @__PURE__ */
|
|
46166
|
-
userMenu.controls && /* @__PURE__ */
|
|
46167
|
-
userMenu.menuItems && userMenu.menuItems.length > 0 && /* @__PURE__ */
|
|
45268
|
+
(primaryNavigation.length > 0 || secondaryNavigation.length > 0 || userMenu) && /* @__PURE__ */ jsxs(NavigationMenuList, { children: [
|
|
45269
|
+
getNavigationBarItems([...primaryNavigation, ...secondaryNavigation]).map((item) => /* @__PURE__ */ jsx$1($322c88a641701f3b$export$6d08773d2e66f8f2, { children: /* @__PURE__ */ jsx$1(NavigationMenuItem, { item }) }, item.key)),
|
|
45270
|
+
/* @__PURE__ */ jsxs($322c88a641701f3b$export$6d08773d2e66f8f2, { children: [
|
|
45271
|
+
/* @__PURE__ */ jsx$1(NavigationMenuTrigger, { "aria-label": t3("toggle mobile menu"), children: /* @__PURE__ */ jsx$1(Icon, { icon: "menu" }) }),
|
|
45272
|
+
/* @__PURE__ */ jsxs(NavigationMenuContent, { right: 0, children: [
|
|
45273
|
+
/* @__PURE__ */ jsxs(UserMenu.Container, { p: "none", display: "flex", flexDirection: "column", gap: "x4", children: [
|
|
45274
|
+
primaryNavigation.length > 0 && /* @__PURE__ */ jsx$1(Box, { px: "x2", children: /* @__PURE__ */ jsx$1($322c88a641701f3b$export$d7a01e11500dfb6f, { orientation: "vertical", children: /* @__PURE__ */ jsx$1(NavigationMenuSubList, { children: primaryNavigation.map((item) => /* @__PURE__ */ jsx$1(MobileMenuItem, { menuItem: item }, item.key)) }) }) }),
|
|
45275
|
+
secondaryNavigation.length > 0 && /* @__PURE__ */ jsx$1(Box, { px: "x2", children: /* @__PURE__ */ jsx$1($322c88a641701f3b$export$d7a01e11500dfb6f, { orientation: "vertical", children: /* @__PURE__ */ jsx$1(NavigationMenuSubList, { children: secondaryNavigation.map((item) => /* @__PURE__ */ jsx$1(MobileMenuItem, { menuItem: item }, item.key)) }) }) }),
|
|
45276
|
+
userMenu && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
45277
|
+
userMenu.header && /* @__PURE__ */ jsx$1(Box, { px: "x2", children: /* @__PURE__ */ jsx$1(UserMenu.Header, { ...userMenu.header, containerProps: { borderRadius: "large" } }) }),
|
|
45278
|
+
userMenu.controls && /* @__PURE__ */ jsx$1(Box, { px: "x2", children: userMenu.controls({ withinMobileNav: true }) }),
|
|
45279
|
+
userMenu.menuItems && userMenu.menuItems.length > 0 && /* @__PURE__ */ jsx$1(Box, { px: "none", children: /* @__PURE__ */ jsx$1(NavigationMenuSubList, { children: userMenu.menuItems.map((item) => /* @__PURE__ */ jsx$1(UserMenu.MobileItem, { item }, item.key)) }) })
|
|
46168
45280
|
] })
|
|
46169
45281
|
] }),
|
|
46170
|
-
secondaryLogo && /* @__PURE__ */
|
|
45282
|
+
secondaryLogo && /* @__PURE__ */ jsx$1(MobileSecondaryLogoContainer, { children: /* @__PURE__ */ jsx$1(NavigationMenuSubList, { children: /* @__PURE__ */ jsx$1(RadixNavigationMenuItem, { children: secondaryLogo }) }) })
|
|
46171
45283
|
] })
|
|
46172
45284
|
] })
|
|
46173
45285
|
] })
|
|
@@ -46177,7 +45289,7 @@ const Navigation$1 = ({ breakpoint = NAVIGATION_DEFAULT_BREAKPOINT_THEME_KEY, ..
|
|
|
46177
45289
|
const theme = useTheme();
|
|
46178
45290
|
const query = theme?.breakpoints?.[breakpoint] ? breakpoint : `(min-width: ${breakpoint})`;
|
|
46179
45291
|
const largeScreen = useMediaQuery(query);
|
|
46180
|
-
return /* @__PURE__ */
|
|
45292
|
+
return /* @__PURE__ */ jsx$1(Fragment, { children: largeScreen ? /* @__PURE__ */ jsx$1(DesktopNav, { ...props }) : /* @__PURE__ */ jsx$1(MobileNav, { ...props }) });
|
|
46181
45293
|
};
|
|
46182
45294
|
const LogoContainer = styled.div(({ $maxWidth, $maxHeight }) => ({
|
|
46183
45295
|
display: "flex",
|
|
@@ -46190,7 +45302,7 @@ const LogoContainer = styled.div(({ $maxWidth, $maxHeight }) => ({
|
|
|
46190
45302
|
}
|
|
46191
45303
|
}));
|
|
46192
45304
|
const NavigationLogo = ({ children, maxWidth: maxWidth2, maxHeight: maxHeight2, ...props }) => {
|
|
46193
|
-
return /* @__PURE__ */
|
|
45305
|
+
return /* @__PURE__ */ jsx$1(LogoContainer, { $maxWidth: maxWidth2, $maxHeight: maxHeight2, ...props, children });
|
|
46194
45306
|
};
|
|
46195
45307
|
function _objectSpread(e3) {
|
|
46196
45308
|
for (var r2 = 1; r2 < arguments.length; r2++) {
|
|
@@ -49957,7 +49069,7 @@ function useNDSTheme(variant3 = "desktop", customTheme) {
|
|
|
49957
49069
|
function NDSThemeProvider({ customTheme, children }) {
|
|
49958
49070
|
const variant3 = useComponentVariant();
|
|
49959
49071
|
const theme = useNDSTheme(variant3, customTheme);
|
|
49960
|
-
return /* @__PURE__ */
|
|
49072
|
+
return /* @__PURE__ */ jsx$1(StyleSheetManager, { enableVendorPrefixes: true, shouldForwardProp, children: /* @__PURE__ */ jsx$1(ThemeProvider, { theme, children }) });
|
|
49961
49073
|
}
|
|
49962
49074
|
function shouldForwardProp(propName, target) {
|
|
49963
49075
|
if (typeof target === "string") {
|
|
@@ -50036,12 +49148,12 @@ function GlobalStylesComposer({
|
|
|
50036
49148
|
children
|
|
50037
49149
|
}) {
|
|
50038
49150
|
if (disableGlobalStyles) {
|
|
50039
|
-
return /* @__PURE__ */
|
|
49151
|
+
return /* @__PURE__ */ jsx$1(Fragment, { children });
|
|
50040
49152
|
}
|
|
50041
|
-
return /* @__PURE__ */
|
|
50042
|
-
/* @__PURE__ */
|
|
50043
|
-
/* @__PURE__ */
|
|
50044
|
-
/* @__PURE__ */
|
|
49153
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
49154
|
+
/* @__PURE__ */ jsx$1(Reset, {}),
|
|
49155
|
+
/* @__PURE__ */ jsx$1(ModalStyleOverride, { theme, locale: locale2 }),
|
|
49156
|
+
/* @__PURE__ */ jsx$1(GlobalStyles, { theme, locale: locale2, children })
|
|
50045
49157
|
] });
|
|
50046
49158
|
}
|
|
50047
49159
|
function NDSProvider({
|
|
@@ -50057,7 +49169,7 @@ function NDSProvider({
|
|
|
50057
49169
|
useEffect(() => {
|
|
50058
49170
|
i18next.changeLanguage(locale2);
|
|
50059
49171
|
}, [locale2]);
|
|
50060
|
-
return /* @__PURE__ */
|
|
49172
|
+
return /* @__PURE__ */ jsx$1(LocaleContext.Provider, { value: { locale: locale2 }, children: /* @__PURE__ */ jsx$1(FeatureFlagsProvider, { featureFlags, children: /* @__PURE__ */ jsx$1(ComponentVariantContextProvider, { variant: variant3, children: /* @__PURE__ */ jsx$1(I18nextProvider, { i18n: i18next, children: /* @__PURE__ */ jsx$1(NDSThemeProvider, { customTheme, children: /* @__PURE__ */ jsx$1(GlobalStylesComposer, { locale: locale2, disableGlobalStyles, children }) }) }) }) }) });
|
|
50061
49173
|
}
|
|
50062
49174
|
const Overlay$1 = styled(Flex)(({ dark = false, theme }) => ({
|
|
50063
49175
|
position: "fixed",
|
|
@@ -50102,7 +49214,7 @@ const PageNumber = styled(PaginationButton)(({ theme, currentPage }) => ({
|
|
|
50102
49214
|
const PreviousButton = ({ disabled = false, onClick = null, label, ariaLabel, showIconOnly }) => {
|
|
50103
49215
|
const { t: t3 } = useTranslation();
|
|
50104
49216
|
const theme = useTheme();
|
|
50105
|
-
return /* @__PURE__ */
|
|
49217
|
+
return /* @__PURE__ */ jsxs(
|
|
50106
49218
|
PaginationButton,
|
|
50107
49219
|
{
|
|
50108
49220
|
disabled,
|
|
@@ -50110,7 +49222,7 @@ const PreviousButton = ({ disabled = false, onClick = null, label, ariaLabel, sh
|
|
|
50110
49222
|
"aria-label": ariaLabel || t3("go to previous results"),
|
|
50111
49223
|
iconOnly: showIconOnly,
|
|
50112
49224
|
children: [
|
|
50113
|
-
/* @__PURE__ */
|
|
49225
|
+
/* @__PURE__ */ jsx$1(Icon, { icon: "leftArrow", ml: showIconOnly ? "0" : `-${theme.space.x1}` }),
|
|
50114
49226
|
!showIconOnly && (label || t3("previous"))
|
|
50115
49227
|
]
|
|
50116
49228
|
}
|
|
@@ -50119,7 +49231,7 @@ const PreviousButton = ({ disabled = false, onClick = null, label, ariaLabel, sh
|
|
|
50119
49231
|
const NextButton = ({ disabled, onClick, label, ariaLabel, showIconOnly }) => {
|
|
50120
49232
|
const { t: t3 } = useTranslation();
|
|
50121
49233
|
const theme = useTheme();
|
|
50122
|
-
return /* @__PURE__ */
|
|
49234
|
+
return /* @__PURE__ */ jsxs(
|
|
50123
49235
|
PaginationButton,
|
|
50124
49236
|
{
|
|
50125
49237
|
disabled,
|
|
@@ -50128,14 +49240,14 @@ const NextButton = ({ disabled, onClick, label, ariaLabel, showIconOnly }) => {
|
|
|
50128
49240
|
iconOnly: showIconOnly,
|
|
50129
49241
|
children: [
|
|
50130
49242
|
!showIconOnly && (label || t3("next")),
|
|
50131
|
-
/* @__PURE__ */
|
|
49243
|
+
/* @__PURE__ */ jsx$1(Icon, { icon: "rightArrow", mr: showIconOnly ? "0" : `-${theme.space.x1}` })
|
|
50132
49244
|
]
|
|
50133
49245
|
}
|
|
50134
49246
|
);
|
|
50135
49247
|
};
|
|
50136
49248
|
const PaginationCount = ({ currentPage, totalPages }) => {
|
|
50137
49249
|
const { t: t3 } = useTranslation();
|
|
50138
|
-
return /* @__PURE__ */
|
|
49250
|
+
return /* @__PURE__ */ jsx$1(Text, { fontSize: "small", lineHeight: "smallTextBase", mx: "x2", children: t3("current page of total", { currentPage, totalPages }) });
|
|
50139
49251
|
};
|
|
50140
49252
|
function validateAndSetMaxVisiblePages(maxVisiblePages) {
|
|
50141
49253
|
if (maxVisiblePages < 3) {
|
|
@@ -50206,8 +49318,8 @@ function Pagination({
|
|
|
50206
49318
|
});
|
|
50207
49319
|
}
|
|
50208
49320
|
};
|
|
50209
|
-
return /* @__PURE__ */
|
|
50210
|
-
/* @__PURE__ */
|
|
49321
|
+
return /* @__PURE__ */ jsxs(Flex, { as: "nav", gap: "x2", "aria-label": ariaLabel || t3("pagination navigation"), alignItems: "center", ...restProps, children: [
|
|
49322
|
+
/* @__PURE__ */ jsx$1(
|
|
50211
49323
|
PreviousButton,
|
|
50212
49324
|
{
|
|
50213
49325
|
disabled: currentPage === 1,
|
|
@@ -50225,9 +49337,9 @@ function Pagination({
|
|
|
50225
49337
|
largerThanPhone ? getPageItemsToDisplay({ totalPages, currentPage, maxVisiblePages }).map((page, index2) => {
|
|
50226
49338
|
const isCurrentPage = currentPage === page;
|
|
50227
49339
|
if (page === SEPARATOR)
|
|
50228
|
-
return /* @__PURE__ */
|
|
49340
|
+
return /* @__PURE__ */ jsx$1(Text, { py: "x1", fontSize: "small", lineHeight: "smallTextBase", children: SEPARATOR }, `sep${index2}`);
|
|
50229
49341
|
else
|
|
50230
|
-
return /* @__PURE__ */
|
|
49342
|
+
return /* @__PURE__ */ jsx$1(
|
|
50231
49343
|
PageNumber,
|
|
50232
49344
|
{
|
|
50233
49345
|
"aria-current": isCurrentPage,
|
|
@@ -50244,8 +49356,8 @@ function Pagination({
|
|
|
50244
49356
|
},
|
|
50245
49357
|
page
|
|
50246
49358
|
);
|
|
50247
|
-
}) : /* @__PURE__ */
|
|
50248
|
-
/* @__PURE__ */
|
|
49359
|
+
}) : /* @__PURE__ */ jsx$1(PaginationCount, { currentPage, totalPages }),
|
|
49360
|
+
/* @__PURE__ */ jsx$1(
|
|
50249
49361
|
NextButton,
|
|
50250
49362
|
{
|
|
50251
49363
|
disabled: currentPage === totalPages,
|
|
@@ -50358,8 +49470,8 @@ const Radio = forwardRef(
|
|
|
50358
49470
|
const componentVariant = useComponentVariant(variant22);
|
|
50359
49471
|
const spaceProps = getSubset(props, propTypes$1.space);
|
|
50360
49472
|
const restProps = omitSubset(props, propTypes$1.space);
|
|
50361
|
-
return /* @__PURE__ */
|
|
50362
|
-
/* @__PURE__ */
|
|
49473
|
+
return /* @__PURE__ */ jsx$1(Box, { position: "relative", className, px: "0", ...spaceProps, children: /* @__PURE__ */ jsxs(ClickInputLabel, { variant: componentVariant, disabled, children: [
|
|
49474
|
+
/* @__PURE__ */ jsx$1(
|
|
50363
49475
|
RadioInput,
|
|
50364
49476
|
{
|
|
50365
49477
|
type: "radio",
|
|
@@ -50374,8 +49486,8 @@ const Radio = forwardRef(
|
|
|
50374
49486
|
"aria-invalid": error2
|
|
50375
49487
|
}
|
|
50376
49488
|
),
|
|
50377
|
-
/* @__PURE__ */
|
|
50378
|
-
/* @__PURE__ */
|
|
49489
|
+
/* @__PURE__ */ jsx$1(VisualRadio, { disabled }),
|
|
49490
|
+
/* @__PURE__ */ jsxs(
|
|
50379
49491
|
Text,
|
|
50380
49492
|
{
|
|
50381
49493
|
inline: true,
|
|
@@ -50404,14 +49516,14 @@ function RadioGroup({
|
|
|
50404
49516
|
}) {
|
|
50405
49517
|
const otherProps = { ...props, errorMessage, errorList };
|
|
50406
49518
|
const theme = useTheme();
|
|
50407
|
-
return /* @__PURE__ */
|
|
50408
|
-
/* @__PURE__ */
|
|
50409
|
-
/* @__PURE__ */
|
|
50410
|
-
requirementText && /* @__PURE__ */
|
|
49519
|
+
return /* @__PURE__ */ jsxs(Fieldset, { className, id: id2, children: [
|
|
49520
|
+
/* @__PURE__ */ jsxs("legend", { style: { marginBottom: theme.space.x1 }, children: [
|
|
49521
|
+
/* @__PURE__ */ jsx$1("span", { style: labelTextStyles(theme), children: labelText }),
|
|
49522
|
+
requirementText && /* @__PURE__ */ jsx$1(RequirementText, { children: requirementText })
|
|
50411
49523
|
] }),
|
|
50412
|
-
helpText && /* @__PURE__ */
|
|
49524
|
+
helpText && /* @__PURE__ */ jsx$1(HelpText$1, { children: helpText }),
|
|
50413
49525
|
getRadioButtons(otherProps),
|
|
50414
|
-
/* @__PURE__ */
|
|
49526
|
+
/* @__PURE__ */ jsx$1(InlineValidation, { mt: "x1", errorMessage, errorList })
|
|
50415
49527
|
] });
|
|
50416
49528
|
}
|
|
50417
49529
|
const labelTextStyles = (theme) => ({
|
|
@@ -50422,7 +49534,7 @@ const labelTextStyles = (theme) => ({
|
|
|
50422
49534
|
const getRadioButtons = (props) => {
|
|
50423
49535
|
const radioButtons = React__default.Children.map(props.children, (radio) => {
|
|
50424
49536
|
const { value, disabled, required, onChange: onChange2, ...radioProps } = radio.props;
|
|
50425
|
-
return /* @__PURE__ */
|
|
49537
|
+
return /* @__PURE__ */ jsx$1(
|
|
50426
49538
|
Radio,
|
|
50427
49539
|
{
|
|
50428
49540
|
...radioProps,
|
|
@@ -50441,25 +49553,25 @@ const getRadioButtons = (props) => {
|
|
|
50441
49553
|
};
|
|
50442
49554
|
function SelectControl(props) {
|
|
50443
49555
|
const { isFocused: isFocused2 } = props;
|
|
50444
|
-
return /* @__PURE__ */
|
|
49556
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-control", children: /* @__PURE__ */ jsx$1(components.Control, { className: isFocused2 ? "nds-select--is-focused" : null, isFocused: isFocused2, ...props, children: props.children }) });
|
|
50445
49557
|
}
|
|
50446
49558
|
function SelectMultiValue(props) {
|
|
50447
|
-
return /* @__PURE__ */
|
|
49559
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-multivalue", children: /* @__PURE__ */ jsx$1(components.MultiValue, { ...props, children: props.children }) });
|
|
50448
49560
|
}
|
|
50449
49561
|
function SelectClearIndicator(props) {
|
|
50450
|
-
return /* @__PURE__ */
|
|
49562
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-clear", children: /* @__PURE__ */ jsx$1(components.ClearIndicator, { ...props }) });
|
|
50451
49563
|
}
|
|
50452
49564
|
function SelectDropdownIndicator(props) {
|
|
50453
|
-
return /* @__PURE__ */
|
|
49565
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-arrow", children: /* @__PURE__ */ jsx$1(components.DropdownIndicator, { ...props }) });
|
|
50454
49566
|
}
|
|
50455
49567
|
function SelectMenu(props) {
|
|
50456
|
-
return /* @__PURE__ */
|
|
49568
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-dropdown", children: /* @__PURE__ */ jsx$1(components.Menu, { ...props, children: props.children }) });
|
|
50457
49569
|
}
|
|
50458
49570
|
function SelectContainer(props) {
|
|
50459
|
-
return /* @__PURE__ */
|
|
49571
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-container", children: /* @__PURE__ */ jsx$1(components.SelectContainer, { ...props, children: props.children }) });
|
|
50460
49572
|
}
|
|
50461
49573
|
function SelectInput(props) {
|
|
50462
|
-
return /* @__PURE__ */
|
|
49574
|
+
return /* @__PURE__ */ jsx$1("div", { "data-testid": "select-input", children: /* @__PURE__ */ jsx$1(components.Input, { ...props, children: props.children }) });
|
|
50463
49575
|
}
|
|
50464
49576
|
var safeIsNaN = Number.isNaN || function ponyfill2(value) {
|
|
50465
49577
|
return typeof value === "number" && value !== value;
|
|
@@ -51236,7 +50348,7 @@ function MenuList(props) {
|
|
|
51236
50348
|
list.current.scrollToItem(currentIndex);
|
|
51237
50349
|
}
|
|
51238
50350
|
}, [currentIndex, children, list]);
|
|
51239
|
-
return /* @__PURE__ */
|
|
50351
|
+
return /* @__PURE__ */ jsx$1(
|
|
51240
50352
|
VariableSizeList,
|
|
51241
50353
|
{
|
|
51242
50354
|
className: classNamePrefix ? `${classNamePrefix}__menu-list${isMulti ? ` ${classNamePrefix}__menu-list--is-multi` : ""}` : "",
|
|
@@ -51244,7 +50356,7 @@ function MenuList(props) {
|
|
|
51244
50356
|
ref: list,
|
|
51245
50357
|
outerRef: innerRef,
|
|
51246
50358
|
estimatedItemSize,
|
|
51247
|
-
innerElementType: React.forwardRef(({ style, ...rest }, ref) => /* @__PURE__ */
|
|
50359
|
+
innerElementType: React.forwardRef(({ style, ...rest }, ref) => /* @__PURE__ */ jsx$1(
|
|
51248
50360
|
"div",
|
|
51249
50361
|
{
|
|
51250
50362
|
ref,
|
|
@@ -51261,14 +50373,14 @@ function MenuList(props) {
|
|
|
51261
50373
|
itemData: children,
|
|
51262
50374
|
itemSize: (index2) => measuredHeights[index2] || heights[index2],
|
|
51263
50375
|
children: ({ data, index: index2, style }) => {
|
|
51264
|
-
return /* @__PURE__ */
|
|
50376
|
+
return /* @__PURE__ */ jsx$1(
|
|
51265
50377
|
"div",
|
|
51266
50378
|
{
|
|
51267
50379
|
style: {
|
|
51268
50380
|
...style,
|
|
51269
50381
|
top: `${parseFloat(style.top.toString()) + paddingTop}px`
|
|
51270
50382
|
},
|
|
51271
|
-
children: /* @__PURE__ */
|
|
50383
|
+
children: /* @__PURE__ */ jsx$1(MenuItem$1, { data: data[index2], index: index2, setMeasuredHeight })
|
|
51272
50384
|
}
|
|
51273
50385
|
);
|
|
51274
50386
|
}
|
|
@@ -51283,7 +50395,7 @@ function MenuItem$1({ data, index: index2, setMeasuredHeight }) {
|
|
|
51283
50395
|
setMeasuredHeight({ index: index2, measuredHeight });
|
|
51284
50396
|
}
|
|
51285
50397
|
}, [ref.current]);
|
|
51286
|
-
return /* @__PURE__ */
|
|
50398
|
+
return /* @__PURE__ */ jsx$1("div", { ref, children: data }, `option-${index2}`);
|
|
51287
50399
|
}
|
|
51288
50400
|
const NDSSelect = forwardRef(
|
|
51289
50401
|
({
|
|
@@ -51333,8 +50445,8 @@ const NDSSelect = forwardRef(
|
|
|
51333
50445
|
maxHeight: maxHeight2,
|
|
51334
50446
|
windowed: options.length > windowThreshold
|
|
51335
50447
|
});
|
|
51336
|
-
return /* @__PURE__ */
|
|
51337
|
-
/* @__PURE__ */
|
|
50448
|
+
return /* @__PURE__ */ jsx$1(Field, { ...styledProps, children: /* @__PURE__ */ jsxs(MaybeFieldLabel, { ...fieldLabelProps, children: [
|
|
50449
|
+
/* @__PURE__ */ jsx$1(
|
|
51338
50450
|
StateManagedSelect$1,
|
|
51339
50451
|
{
|
|
51340
50452
|
ref,
|
|
@@ -51357,7 +50469,7 @@ const NDSSelect = forwardRef(
|
|
|
51357
50469
|
inputId: id2,
|
|
51358
50470
|
styles: styles2 ? styles2(stylesConfig) : stylesConfig,
|
|
51359
50471
|
components: {
|
|
51360
|
-
Option: (props2) => /* @__PURE__ */
|
|
50472
|
+
Option: (props2) => /* @__PURE__ */ jsx$1(SelectOption$1, { ...props2, children: props2.children }),
|
|
51361
50473
|
Control: SelectControl,
|
|
51362
50474
|
MultiValue: SelectMultiValue,
|
|
51363
50475
|
ClearIndicator: SelectClearIndicator,
|
|
@@ -51377,7 +50489,7 @@ const NDSSelect = forwardRef(
|
|
|
51377
50489
|
...props
|
|
51378
50490
|
}
|
|
51379
50491
|
),
|
|
51380
|
-
/* @__PURE__ */
|
|
50492
|
+
/* @__PURE__ */ jsx$1(InlineValidation, { mt: "x1", errorMessage, errorList })
|
|
51381
50493
|
] }) });
|
|
51382
50494
|
}
|
|
51383
50495
|
);
|
|
@@ -51419,7 +50531,7 @@ function renderHeaderCellContent({
|
|
|
51419
50531
|
return key ? headerFormatter({ align, label, width: width2, metadata, key }) : headerFormatter({ align, label, width: width2, metadata, dataKey });
|
|
51420
50532
|
}
|
|
51421
50533
|
function TableHead({ columns, compact, sticky }) {
|
|
51422
|
-
const renderColumns = (allColumns) => allColumns.map((column2, index2) => /* @__PURE__ */
|
|
50534
|
+
const renderColumns = (allColumns) => allColumns.map((column2, index2) => /* @__PURE__ */ jsx$1(
|
|
51423
50535
|
StyledTh,
|
|
51424
50536
|
{
|
|
51425
50537
|
scope: "col",
|
|
@@ -51431,7 +50543,7 @@ function TableHead({ columns, compact, sticky }) {
|
|
|
51431
50543
|
},
|
|
51432
50544
|
column2.dataKey ?? column2.key ?? index2
|
|
51433
50545
|
));
|
|
51434
|
-
return /* @__PURE__ */
|
|
50546
|
+
return /* @__PURE__ */ jsx$1("thead", { children: /* @__PURE__ */ jsx$1(StyledHeaderRow, { children: renderColumns(columns) }) });
|
|
51435
50547
|
}
|
|
51436
50548
|
const StyledTableCell = styled.td(
|
|
51437
50549
|
({ align, compact, verticalAlign: verticalAlign2, theme }) => {
|
|
@@ -51454,9 +50566,9 @@ const TableCell = ({ column: column2 = {}, row = {}, cellData = "", colSpan = vo
|
|
|
51454
50566
|
const isCustomCell = Boolean(cellRenderer);
|
|
51455
50567
|
const cellContent = cellFormatter ? cellFormatter({ cellData, column: column2, row }) : cellData;
|
|
51456
50568
|
if (isCustomCell) {
|
|
51457
|
-
return /* @__PURE__ */
|
|
50569
|
+
return /* @__PURE__ */ jsx$1("td", { colSpan, children: cellRenderer ? cellRenderer({ cellData, column: column2, row }) : cellData });
|
|
51458
50570
|
}
|
|
51459
|
-
return /* @__PURE__ */
|
|
50571
|
+
return /* @__PURE__ */ jsx$1(StyledTableCell, { align: column2.align, compact, verticalAlign: row.verticalAlign, children: cellContent });
|
|
51460
50572
|
};
|
|
51461
50573
|
const StyledMessageContainer = styled(Box)(({ theme }) => ({
|
|
51462
50574
|
padding: `${theme.space.x3} 0`,
|
|
@@ -51476,7 +50588,7 @@ const StyledTr = styled.tr(({ rowHovers, rowBorder, theme }) => ({
|
|
|
51476
50588
|
}));
|
|
51477
50589
|
const renderRows$1 = (rows, columns, keyField, rowHovers, noRowsContent, compact, onRowMouseLeave, onRowMouseEnter, rowBorder) => rows.length > 0 ? rows.map((row, rowIndex) => {
|
|
51478
50590
|
const rowKey = row[keyField] !== void 0 ? row[keyField] : rowIndex;
|
|
51479
|
-
return /* @__PURE__ */
|
|
50591
|
+
return /* @__PURE__ */ jsx$1(
|
|
51480
50592
|
TableBodyRow,
|
|
51481
50593
|
{
|
|
51482
50594
|
row,
|
|
@@ -51491,7 +50603,7 @@ const renderRows$1 = (rows, columns, keyField, rowHovers, noRowsContent, compact
|
|
|
51491
50603
|
},
|
|
51492
50604
|
rowKey
|
|
51493
50605
|
);
|
|
51494
|
-
}) : /* @__PURE__ */
|
|
50606
|
+
}) : /* @__PURE__ */ jsx$1(TableMessageContainer, { colSpan: columns.length, children: noRowsContent });
|
|
51495
50607
|
const TableBodyRow = ({
|
|
51496
50608
|
row,
|
|
51497
50609
|
columns,
|
|
@@ -51502,7 +50614,7 @@ const TableBodyRow = ({
|
|
|
51502
50614
|
onMouseEnter,
|
|
51503
50615
|
rowBorder
|
|
51504
50616
|
}) => {
|
|
51505
|
-
const renderAllCells = () => columns.map((column2, index2) => /* @__PURE__ */
|
|
50617
|
+
const renderAllCells = () => columns.map((column2, index2) => /* @__PURE__ */ jsx$1(
|
|
51506
50618
|
TableCell,
|
|
51507
50619
|
{
|
|
51508
50620
|
row,
|
|
@@ -51512,8 +50624,8 @@ const TableBodyRow = ({
|
|
|
51512
50624
|
},
|
|
51513
50625
|
column2.dataKey ?? column2.key ?? index2
|
|
51514
50626
|
));
|
|
51515
|
-
return /* @__PURE__ */
|
|
51516
|
-
/* @__PURE__ */
|
|
50627
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
50628
|
+
/* @__PURE__ */ jsx$1(
|
|
51517
50629
|
StyledTr,
|
|
51518
50630
|
{
|
|
51519
50631
|
rowHovers,
|
|
@@ -51522,14 +50634,14 @@ const TableBodyRow = ({
|
|
|
51522
50634
|
onMouseLeave,
|
|
51523
50635
|
onMouseEnter,
|
|
51524
50636
|
rowBorder,
|
|
51525
|
-
children: row.heading ? /* @__PURE__ */
|
|
50637
|
+
children: row.heading ? /* @__PURE__ */ jsx$1(TableCell, { row, colSpan: columns.length, cellData: row.heading, compact }) : renderAllCells()
|
|
51526
50638
|
}
|
|
51527
50639
|
),
|
|
51528
|
-
row.expandedContent && row.expanded && /* @__PURE__ */
|
|
50640
|
+
row.expandedContent && row.expanded && /* @__PURE__ */ jsx$1("tr", { "data-testid": "expanded-table-row", children: /* @__PURE__ */ jsx$1("td", { colSpan: columns.length, children: row.expandedContent({ row }) }) })
|
|
51529
50641
|
] });
|
|
51530
50642
|
};
|
|
51531
|
-
const TableMessageContainer = ({ colSpan, children }) => /* @__PURE__ */
|
|
51532
|
-
const LoadingContent = ({ colSpan }) => /* @__PURE__ */
|
|
50643
|
+
const TableMessageContainer = ({ colSpan, children }) => /* @__PURE__ */ jsx$1("tr", { "data-testid": "table-message-container", children: /* @__PURE__ */ jsx$1("td", { colSpan, children: /* @__PURE__ */ jsx$1(StyledMessageContainer, { className: "nds-table__no-rows-content", children }) }) });
|
|
50644
|
+
const LoadingContent = ({ colSpan }) => /* @__PURE__ */ jsx$1(TableMessageContainer, { colSpan, children: "Loading..." });
|
|
51533
50645
|
const TableBody = ({
|
|
51534
50646
|
rows,
|
|
51535
50647
|
columns,
|
|
@@ -51541,7 +50653,7 @@ const TableBody = ({
|
|
|
51541
50653
|
onRowMouseLeave,
|
|
51542
50654
|
onRowMouseEnter,
|
|
51543
50655
|
rowBorder
|
|
51544
|
-
}) => /* @__PURE__ */
|
|
50656
|
+
}) => /* @__PURE__ */ jsx$1("tbody", { "data-testid": "table-body", children: !loading ? renderRows$1(
|
|
51545
50657
|
rows,
|
|
51546
50658
|
columns,
|
|
51547
50659
|
keyField,
|
|
@@ -51551,20 +50663,20 @@ const TableBody = ({
|
|
|
51551
50663
|
onRowMouseLeave,
|
|
51552
50664
|
onRowMouseEnter,
|
|
51553
50665
|
rowBorder
|
|
51554
|
-
) : /* @__PURE__ */
|
|
50666
|
+
) : /* @__PURE__ */ jsx$1(LoadingContent, { colSpan: columns.length }) });
|
|
51555
50667
|
const StyledFooterRow = styled.tr(({ theme }) => ({
|
|
51556
50668
|
"&:first-of-type": {
|
|
51557
50669
|
borderTop: `1px solid ${theme.colors.lightGrey}`
|
|
51558
50670
|
}
|
|
51559
50671
|
}));
|
|
51560
|
-
const renderRows = (rows, columns, keyField, loading, compact) => rows.map((row) => /* @__PURE__ */
|
|
50672
|
+
const renderRows = (rows, columns, keyField, loading, compact) => rows.map((row) => /* @__PURE__ */ jsx$1(TableFooterRow, { row, columns, loading, compact }, row[keyField]));
|
|
51561
50673
|
const TableFooterRow = ({ row, columns, loading, compact }) => {
|
|
51562
50674
|
const columnsWithoutControls = columns.filter(
|
|
51563
50675
|
(column2) => column2.dataKey !== "selected" && column2.dataKey !== "expanded"
|
|
51564
50676
|
);
|
|
51565
50677
|
const numberOfControlColumns = columns.length - columnsWithoutControls.length;
|
|
51566
|
-
return /* @__PURE__ */
|
|
51567
|
-
(column2, index2) => index2 === 0 ? /* @__PURE__ */
|
|
50678
|
+
return /* @__PURE__ */ jsx$1(StyledFooterRow, { children: columnsWithoutControls.map(
|
|
50679
|
+
(column2, index2) => index2 === 0 ? /* @__PURE__ */ jsx$1(StyledTh, { scope: "row", colSpan: numberOfControlColumns + 1, compact, children: row[column2.dataKey] }, column2.dataKey) : !loading && /* @__PURE__ */ jsx$1(
|
|
51568
50680
|
TableCell,
|
|
51569
50681
|
{
|
|
51570
50682
|
row,
|
|
@@ -51587,7 +50699,7 @@ function TableFoot({
|
|
|
51587
50699
|
loading = false,
|
|
51588
50700
|
compact = false
|
|
51589
50701
|
}) {
|
|
51590
|
-
return /* @__PURE__ */
|
|
50702
|
+
return /* @__PURE__ */ jsx$1("tfoot", { children: renderRows(rows, columns, keyField, loading, compact) });
|
|
51591
50703
|
}
|
|
51592
50704
|
const StyledTable = styled.table(space, {
|
|
51593
50705
|
borderCollapse: "collapse",
|
|
@@ -51614,9 +50726,9 @@ function BaseTable({
|
|
|
51614
50726
|
rowBorder = false,
|
|
51615
50727
|
...props
|
|
51616
50728
|
}) {
|
|
51617
|
-
return /* @__PURE__ */
|
|
51618
|
-
/* @__PURE__ */
|
|
51619
|
-
/* @__PURE__ */
|
|
50729
|
+
return /* @__PURE__ */ jsxs(StyledTable, { id: id2, className, ...props, children: [
|
|
50730
|
+
/* @__PURE__ */ jsx$1(TableHead, { columns, compact, sticky: stickyHeader }),
|
|
50731
|
+
/* @__PURE__ */ jsx$1(
|
|
51620
50732
|
TableBody,
|
|
51621
50733
|
{
|
|
51622
50734
|
columns,
|
|
@@ -51631,7 +50743,7 @@ function BaseTable({
|
|
|
51631
50743
|
rowBorder
|
|
51632
50744
|
}
|
|
51633
50745
|
),
|
|
51634
|
-
footerRows && /* @__PURE__ */
|
|
50746
|
+
footerRows && /* @__PURE__ */ jsx$1(TableFoot, { columns, rows: footerRows, keyField, loading, compact })
|
|
51635
50747
|
] });
|
|
51636
50748
|
}
|
|
51637
50749
|
const SELECTABLE_COLUMN_DATA_KEY = "selected";
|
|
@@ -51640,7 +50752,7 @@ const selectHeaderFormatter = (onSelectHeader, isHeaderSelected, selectAllAriaLa
|
|
|
51640
50752
|
const checkedAriaLabel = deselectAllAriaLabel || t3("deselect all");
|
|
51641
50753
|
const uncheckedAriaLabel = selectAllAriaLabel || t3("select all");
|
|
51642
50754
|
const ariaLabel = isHeaderSelected ? checkedAriaLabel : uncheckedAriaLabel;
|
|
51643
|
-
return /* @__PURE__ */
|
|
50755
|
+
return /* @__PURE__ */ jsx$1(Checkbox, { checked: isHeaderSelected, onChange: onSelectHeader, "aria-label": ariaLabel });
|
|
51644
50756
|
};
|
|
51645
50757
|
const SelectCell = ({ row, onSelectRow }) => {
|
|
51646
50758
|
const selectRowHandler = () => onSelectRow(row);
|
|
@@ -51649,9 +50761,9 @@ const SelectCell = ({ row, onSelectRow }) => {
|
|
|
51649
50761
|
const checkedAriaLabel = row.selectAriaLabel || t3("select row");
|
|
51650
50762
|
const uncheckedAriaLabel = row.deselectAriaLabel || t3("select row");
|
|
51651
50763
|
const ariaLabel = checked ? checkedAriaLabel : uncheckedAriaLabel;
|
|
51652
|
-
return /* @__PURE__ */
|
|
50764
|
+
return /* @__PURE__ */ jsx$1(Checkbox, { "aria-label": ariaLabel, checked, onChange: selectRowHandler });
|
|
51653
50765
|
};
|
|
51654
|
-
const selectCellRenderer = (onSelectRow) => (props) => /* @__PURE__ */
|
|
50766
|
+
const selectCellRenderer = (onSelectRow) => (props) => /* @__PURE__ */ jsx$1(SelectCell, { onSelectRow, ...props });
|
|
51655
50767
|
const addSelectableControl = ({
|
|
51656
50768
|
columns,
|
|
51657
50769
|
rows,
|
|
@@ -51688,7 +50800,7 @@ const ExpandCell = ({ row, onRowExpansionChange }) => {
|
|
|
51688
50800
|
const { t: t3 } = useTranslation();
|
|
51689
50801
|
const collapseLabel = row.collapseAriaLabel || t3("collapse row");
|
|
51690
50802
|
const expandLabel = row.expandAriaLabel || t3("expand row");
|
|
51691
|
-
return /* @__PURE__ */
|
|
50803
|
+
return /* @__PURE__ */ jsx$1(Fragment, { children: row.expandedContent && /* @__PURE__ */ jsx$1(
|
|
51692
50804
|
ControlIcon,
|
|
51693
50805
|
{
|
|
51694
50806
|
icon: row[EXPANDABLE_COLUMN_DATA_KEY] ? "upArrow" : "downArrow",
|
|
@@ -51697,7 +50809,7 @@ const ExpandCell = ({ row, onRowExpansionChange }) => {
|
|
|
51697
50809
|
}
|
|
51698
50810
|
) });
|
|
51699
50811
|
};
|
|
51700
|
-
const expandCellRenderer = (onRowExpansionChange) => (props) => /* @__PURE__ */
|
|
50812
|
+
const expandCellRenderer = (onRowExpansionChange) => (props) => /* @__PURE__ */ jsx$1(ExpandCell, { onRowExpansionChange, ...props });
|
|
51701
50813
|
const addExpandableColumn = ({ columns, onRowExpansionChange }) => {
|
|
51702
50814
|
const expandableColumn = {
|
|
51703
50815
|
dataKey: EXPANDABLE_COLUMN_DATA_KEY,
|
|
@@ -51911,9 +51023,9 @@ const _StatefulTable = class _StatefulTable extends Component {
|
|
|
51911
51023
|
const { paginatedRows, currentPage } = this.state;
|
|
51912
51024
|
const { rowsPerPage, paginationProps, paginationCss } = this.props;
|
|
51913
51025
|
const baseTableProps = pick(this.getControlProps(), ...propNames);
|
|
51914
|
-
return /* @__PURE__ */
|
|
51915
|
-
/* @__PURE__ */
|
|
51916
|
-
rowsPerPage && /* @__PURE__ */
|
|
51026
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
51027
|
+
/* @__PURE__ */ jsx$1(BaseTable, { ...baseTableProps }),
|
|
51028
|
+
rowsPerPage && /* @__PURE__ */ jsx$1(
|
|
51917
51029
|
Pagination,
|
|
51918
51030
|
{
|
|
51919
51031
|
pt: "x2",
|
|
@@ -51965,9 +51077,9 @@ function SortingColumnHeader({
|
|
|
51965
51077
|
}) {
|
|
51966
51078
|
const { t: t3 } = useTranslation();
|
|
51967
51079
|
const defaultAriaLabel = ascending ? t3("sort descending") : t3("sort ascending");
|
|
51968
|
-
return /* @__PURE__ */
|
|
51969
|
-
/* @__PURE__ */
|
|
51970
|
-
/* @__PURE__ */
|
|
51080
|
+
return /* @__PURE__ */ jsxs(Flex, { alignItems: "center", children: [
|
|
51081
|
+
/* @__PURE__ */ jsx$1(Text, { mr: "x1", children: label }),
|
|
51082
|
+
/* @__PURE__ */ jsx$1(
|
|
51971
51083
|
ControlIcon,
|
|
51972
51084
|
{
|
|
51973
51085
|
size: "x3",
|
|
@@ -51993,7 +51105,7 @@ function Table({
|
|
|
51993
51105
|
paginationProps,
|
|
51994
51106
|
...props
|
|
51995
51107
|
}) {
|
|
51996
|
-
return hasSelectableRows || rowsPerPage || hasExpandableRows ? /* @__PURE__ */
|
|
51108
|
+
return hasSelectableRows || rowsPerPage || hasExpandableRows ? /* @__PURE__ */ jsx$1(
|
|
51997
51109
|
StatefulTable,
|
|
51998
51110
|
{
|
|
51999
51111
|
hasExpandableRows,
|
|
@@ -52009,7 +51121,7 @@ function Table({
|
|
|
52009
51121
|
paginationProps,
|
|
52010
51122
|
...props
|
|
52011
51123
|
}
|
|
52012
|
-
) : /* @__PURE__ */
|
|
51124
|
+
) : /* @__PURE__ */ jsx$1(BaseTable, { ...props });
|
|
52013
51125
|
}
|
|
52014
51126
|
Table.SortingHeader = SortingColumnHeader;
|
|
52015
51127
|
const numericAlphabeticalSort = (a4, b3, numeric) => String(a4).localeCompare(b3, void 0, { numeric, sensitivity: "base" });
|
|
@@ -52048,7 +51160,7 @@ function SortingTable({
|
|
|
52048
51160
|
const isAscending = sortState.ascending && column2.dataKey === sortState.sortColumn;
|
|
52049
51161
|
return {
|
|
52050
51162
|
...column2,
|
|
52051
|
-
headerFormatter: ({ label, dataKey }) => /* @__PURE__ */
|
|
51163
|
+
headerFormatter: ({ label, dataKey }) => /* @__PURE__ */ jsx$1(
|
|
52052
51164
|
Table.SortingHeader,
|
|
52053
51165
|
{
|
|
52054
51166
|
onChange: () => onSortChange(dataKey),
|
|
@@ -52060,7 +51172,7 @@ function SortingTable({
|
|
|
52060
51172
|
};
|
|
52061
51173
|
};
|
|
52062
51174
|
const columns = incomingColumns.map((column2) => transformColumn(column2));
|
|
52063
|
-
return /* @__PURE__ */
|
|
51175
|
+
return /* @__PURE__ */ jsx$1(Table, { columns, rows, ...props });
|
|
52064
51176
|
}
|
|
52065
51177
|
const StatusIndicatorValues = {
|
|
52066
51178
|
neutral: "neutral",
|
|
@@ -52142,7 +51254,7 @@ const SummaryContextProvider = ({
|
|
|
52142
51254
|
breakpoint,
|
|
52143
51255
|
children
|
|
52144
51256
|
}) => {
|
|
52145
|
-
return /* @__PURE__ */
|
|
51257
|
+
return /* @__PURE__ */ jsx$1(
|
|
52146
51258
|
SummaryContext.Provider,
|
|
52147
51259
|
{
|
|
52148
51260
|
value: {
|
|
@@ -52174,7 +51286,7 @@ const Summary = ({ breakpoint, children, ...rest }) => {
|
|
|
52174
51286
|
const theme = useTheme();
|
|
52175
51287
|
breakpoint || (breakpoint = theme.breakpoints.medium);
|
|
52176
51288
|
const breakpointPx = numberFromDimension(breakpoint);
|
|
52177
|
-
return /* @__PURE__ */
|
|
51289
|
+
return /* @__PURE__ */ jsx$1(SummaryContextProvider, { breakpoint: breakpointPx, children: /* @__PURE__ */ jsx$1(SummaryWrapper, { breakpoint: breakpointPx, ...rest, children }) });
|
|
52178
51290
|
};
|
|
52179
51291
|
const SummaryItemWrapper = styled(Flex)(({ theme, breakpoint }) => ({
|
|
52180
51292
|
gap: theme.space.half,
|
|
@@ -52187,8 +51299,8 @@ const SummaryItem = ({ value, status, ...rest }) => {
|
|
|
52187
51299
|
const { breakpoint } = useSummaryContext();
|
|
52188
51300
|
const matches = useMediaQuery(`(max-width: ${breakpoint}px)`);
|
|
52189
51301
|
delete rest["children"];
|
|
52190
|
-
return /* @__PURE__ */
|
|
52191
|
-
/* @__PURE__ */
|
|
51302
|
+
return /* @__PURE__ */ jsxs(SummaryItemWrapper, { breakpoint, ...rest, children: [
|
|
51303
|
+
/* @__PURE__ */ jsx$1(Text, { fontWeight: "medium", fontSize: !matches ? "heading4" : void 0, children: value }),
|
|
52192
51304
|
status
|
|
52193
51305
|
] });
|
|
52194
51306
|
};
|
|
@@ -52205,7 +51317,7 @@ const Divider = styled(Box)(({ theme, breakpoint }) => ({
|
|
|
52205
51317
|
}));
|
|
52206
51318
|
const SummaryDivider = (props) => {
|
|
52207
51319
|
const { breakpoint } = useSummaryContext();
|
|
52208
|
-
return /* @__PURE__ */
|
|
51320
|
+
return /* @__PURE__ */ jsx$1(Divider, { breakpoint: numberFromDimension(breakpoint), ...props });
|
|
52209
51321
|
};
|
|
52210
51322
|
const FocusManager = ({
|
|
52211
51323
|
children,
|
|
@@ -52241,7 +51353,7 @@ const FocusManager = ({
|
|
|
52241
51353
|
prevFocusedIndex.current = focusedIndex;
|
|
52242
51354
|
}
|
|
52243
51355
|
}, [focusedIndex, refs]);
|
|
52244
|
-
return /* @__PURE__ */
|
|
51356
|
+
return /* @__PURE__ */ jsx$1(Fragment, { children: children({
|
|
52245
51357
|
focusedIndex,
|
|
52246
51358
|
setFocusedIndex,
|
|
52247
51359
|
handleArrowNavigation
|
|
@@ -52280,10 +51392,10 @@ const Switcher = ({ variant: variant3, selected, onChange: onChange2, ...rest })
|
|
|
52280
51392
|
});
|
|
52281
51393
|
});
|
|
52282
51394
|
};
|
|
52283
|
-
return /* @__PURE__ */
|
|
51395
|
+
return /* @__PURE__ */ jsx$1(Box, { display: "inline-flex", bg: "whiteGrey", borderRadius: "9999px", ...rest, children: /* @__PURE__ */ jsx$1(FocusManager, { refs: optionRefs, defaultFocusedIndex: getSelectedIndex(), children: ({ focusedIndex, setFocusedIndex, handleArrowNavigation }) => options(focusedIndex, setFocusedIndex, handleArrowNavigation) }) });
|
|
52284
51396
|
};
|
|
52285
51397
|
const Switch$1 = React__default.forwardRef(({ children, ...rest }, ref) => {
|
|
52286
|
-
return /* @__PURE__ */
|
|
51398
|
+
return /* @__PURE__ */ jsx$1(SwitchButton, { ...rest, ref, children });
|
|
52287
51399
|
});
|
|
52288
51400
|
const SwitchButton = styled.button(
|
|
52289
51401
|
({ selected, theme }) => ({
|
|
@@ -52397,7 +51509,7 @@ const TabButton = styled.button(
|
|
|
52397
51509
|
}
|
|
52398
51510
|
})
|
|
52399
51511
|
);
|
|
52400
|
-
const Tab = React__default.forwardRef(({ label, ...props }, ref) => /* @__PURE__ */
|
|
51512
|
+
const Tab = React__default.forwardRef(({ label, ...props }, ref) => /* @__PURE__ */ jsx$1(TabButton, { role: "tab", type: "button", ref, ...props, children: label }));
|
|
52401
51513
|
const TabContainer = styled(Box)(({ theme }) => ({
|
|
52402
51514
|
display: "flex",
|
|
52403
51515
|
whiteSpace: "nowrap",
|
|
@@ -52467,7 +51579,7 @@ const TabScrollIndicator = ({
|
|
|
52467
51579
|
function preventFocusMovement(event) {
|
|
52468
51580
|
event.preventDefault();
|
|
52469
51581
|
}
|
|
52470
|
-
return /* @__PURE__ */
|
|
51582
|
+
return /* @__PURE__ */ jsx$1(
|
|
52471
51583
|
TabScrollIndicatorButton,
|
|
52472
51584
|
{
|
|
52473
51585
|
...props,
|
|
@@ -52477,7 +51589,7 @@ const TabScrollIndicator = ({
|
|
|
52477
51589
|
onMouseDown: preventFocusMovement,
|
|
52478
51590
|
side,
|
|
52479
51591
|
"aria-label": side === "right" ? rightArrowLabel : leftArrowLabel,
|
|
52480
|
-
children: /* @__PURE__ */
|
|
51592
|
+
children: /* @__PURE__ */ jsx$1(Icon, { icon: side === "right" ? "rightArrow" : "leftArrow" })
|
|
52481
51593
|
}
|
|
52482
51594
|
);
|
|
52483
51595
|
};
|
|
@@ -52588,10 +51700,10 @@ class TabScrollIndicators extends React__default.Component {
|
|
|
52588
51700
|
render() {
|
|
52589
51701
|
const { tabContainerRef, indicatorWidth, children } = this.props;
|
|
52590
51702
|
const { contentHiddenLeft, contentHiddenRight } = this.state;
|
|
52591
|
-
return /* @__PURE__ */
|
|
52592
|
-
/* @__PURE__ */
|
|
52593
|
-
contentHiddenLeft && /* @__PURE__ */
|
|
52594
|
-
contentHiddenRight && /* @__PURE__ */
|
|
51703
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
51704
|
+
/* @__PURE__ */ jsxs(TabScrollIndicatorContainer, { width: tabContainerRef.current ? tabContainerRef.current.offsetWidth : 0, children: [
|
|
51705
|
+
contentHiddenLeft && /* @__PURE__ */ jsx$1(TabScrollIndicator, { width: indicatorWidth, side: "left", onClick: this.handleIndicatorClick }),
|
|
51706
|
+
contentHiddenRight && /* @__PURE__ */ jsx$1(TabScrollIndicator, { width: indicatorWidth, side: "right", onClick: this.handleIndicatorClick })
|
|
52595
51707
|
] }),
|
|
52596
51708
|
children({
|
|
52597
51709
|
handleScroll: this.handleScroll,
|
|
@@ -52666,7 +51778,7 @@ const _Tabs = class _Tabs extends React__default.Component {
|
|
|
52666
51778
|
if (renderTabContentOnlyWhenSelected && !selected) {
|
|
52667
51779
|
return null;
|
|
52668
51780
|
} else {
|
|
52669
|
-
return /* @__PURE__ */
|
|
51781
|
+
return /* @__PURE__ */ jsx$1("div", { "aria-hidden": !selected, hidden: !selected, selected, children: tab?.props?.children }, tab.key || tab.label);
|
|
52670
51782
|
}
|
|
52671
51783
|
});
|
|
52672
51784
|
return tabContent;
|
|
@@ -52679,8 +51791,8 @@ const _Tabs = class _Tabs extends React__default.Component {
|
|
|
52679
51791
|
render() {
|
|
52680
51792
|
const { className } = this.props;
|
|
52681
51793
|
const spaceProps = getSubset(this.props, propTypes$1.space);
|
|
52682
|
-
return /* @__PURE__ */
|
|
52683
|
-
/* @__PURE__ */
|
|
51794
|
+
return /* @__PURE__ */ jsxs(Box, { position: "relative", children: [
|
|
51795
|
+
/* @__PURE__ */ jsx$1(FocusManager, { refs: this.tabRefs, defaultFocusedIndex: this.getSelectedIndex(), children: ({ focusedIndex, setFocusedIndex, handleArrowNavigation }) => /* @__PURE__ */ jsx$1(TabScrollIndicators, { tabRefs: this.tabRefs, tabContainerRef: this.tabContainerRef, children: ({ handleScroll: handleScroll2, handleResize }) => /* @__PURE__ */ jsxs(
|
|
52684
51796
|
TabContainer,
|
|
52685
51797
|
{
|
|
52686
51798
|
className,
|
|
@@ -52689,7 +51801,7 @@ const _Tabs = class _Tabs extends React__default.Component {
|
|
|
52689
51801
|
ref: this.tabContainerRef,
|
|
52690
51802
|
...spaceProps,
|
|
52691
51803
|
children: [
|
|
52692
|
-
/* @__PURE__ */
|
|
51804
|
+
/* @__PURE__ */ jsx$1(ResizeDetector, { handleWidth: true, onResize: handleResize }),
|
|
52693
51805
|
this.getTabs(setFocusedIndex, focusedIndex, handleArrowNavigation)
|
|
52694
51806
|
]
|
|
52695
51807
|
}
|
|
@@ -52787,8 +51899,8 @@ const Textarea = forwardRef(
|
|
|
52787
51899
|
const componentVariant = useComponentVariant(variant3);
|
|
52788
51900
|
const spaceProps = getSubset(props, propTypes$1.space);
|
|
52789
51901
|
const restProps = omitSubset(props, propTypes$1.space);
|
|
52790
|
-
return /* @__PURE__ */
|
|
52791
|
-
/* @__PURE__ */
|
|
51902
|
+
return /* @__PURE__ */ jsxs(Field, { className, ...spaceProps, children: [
|
|
51903
|
+
/* @__PURE__ */ jsx$1(MaybeFieldLabel, { labelText, requirementText, helpText, children: /* @__PURE__ */ jsx$1(
|
|
52792
51904
|
StyledTextarea,
|
|
52793
51905
|
{
|
|
52794
51906
|
"aria-invalid": error2,
|
|
@@ -52806,7 +51918,7 @@ const Textarea = forwardRef(
|
|
|
52806
51918
|
...restProps
|
|
52807
51919
|
}
|
|
52808
51920
|
) }),
|
|
52809
|
-
/* @__PURE__ */
|
|
51921
|
+
/* @__PURE__ */ jsx$1(InlineValidation, { mt: "x1", errorMessage, errorList })
|
|
52810
51922
|
] });
|
|
52811
51923
|
}
|
|
52812
51924
|
);
|
|
@@ -52894,7 +52006,7 @@ const TimeRange = forwardRef(
|
|
|
52894
52006
|
});
|
|
52895
52007
|
}
|
|
52896
52008
|
};
|
|
52897
|
-
const startInput = /* @__PURE__ */
|
|
52009
|
+
const startInput = /* @__PURE__ */ jsx$1(
|
|
52898
52010
|
TimePicker,
|
|
52899
52011
|
{
|
|
52900
52012
|
timeFormat,
|
|
@@ -52912,7 +52024,7 @@ const TimeRange = forwardRef(
|
|
|
52912
52024
|
...startTimeProps
|
|
52913
52025
|
}
|
|
52914
52026
|
);
|
|
52915
|
-
const endInput = /* @__PURE__ */
|
|
52027
|
+
const endInput = /* @__PURE__ */ jsx$1(
|
|
52916
52028
|
TimePicker,
|
|
52917
52029
|
{
|
|
52918
52030
|
timeFormat,
|
|
@@ -52930,7 +52042,7 @@ const TimeRange = forwardRef(
|
|
|
52930
52042
|
...endTimeProps
|
|
52931
52043
|
}
|
|
52932
52044
|
);
|
|
52933
|
-
return /* @__PURE__ */
|
|
52045
|
+
return /* @__PURE__ */ jsx$1(
|
|
52934
52046
|
RangeContainer,
|
|
52935
52047
|
{
|
|
52936
52048
|
labelProps: {
|
|
@@ -53021,7 +52133,7 @@ const Toast = ({
|
|
|
53021
52133
|
const handleCloseButtonClick = () => {
|
|
53022
52134
|
hideToast(0);
|
|
53023
52135
|
};
|
|
53024
|
-
return /* @__PURE__ */
|
|
52136
|
+
return /* @__PURE__ */ jsx$1(AnimatePresence, { initial: false, children: visible && /* @__PURE__ */ jsx$1(
|
|
53025
52137
|
AnimatedBox,
|
|
53026
52138
|
{
|
|
53027
52139
|
onMouseEnter: onMouseIn,
|
|
@@ -53039,7 +52151,7 @@ const Toast = ({
|
|
|
53039
52151
|
boxShadow: "medium",
|
|
53040
52152
|
layout: true,
|
|
53041
52153
|
...toastAnimationConfig,
|
|
53042
|
-
children: /* @__PURE__ */
|
|
52154
|
+
children: /* @__PURE__ */ jsx$1(
|
|
53043
52155
|
Alert,
|
|
53044
52156
|
{
|
|
53045
52157
|
minWidth: "200px",
|
|
@@ -53452,7 +52564,7 @@ const ToastContainer = ({
|
|
|
53452
52564
|
useEffect(() => {
|
|
53453
52565
|
toasts.filter((t3) => t3.visible).filter((_24, i3) => i3 >= maxVisibleToasts).forEach((t3) => n.dismiss(t3.id));
|
|
53454
52566
|
}, [toasts, maxVisibleToasts]);
|
|
53455
|
-
return /* @__PURE__ */
|
|
52567
|
+
return /* @__PURE__ */ jsx$1(
|
|
53456
52568
|
Ie,
|
|
53457
52569
|
{
|
|
53458
52570
|
gutter: gap2 || numberFromDimension(theme.space.x1),
|
|
@@ -53470,23 +52582,23 @@ const CustomToast = ({ isVisible, id: id2, children, ...props }) => {
|
|
|
53470
52582
|
const handleClose = () => {
|
|
53471
52583
|
n.dismiss(id2);
|
|
53472
52584
|
};
|
|
53473
|
-
return /* @__PURE__ */
|
|
52585
|
+
return /* @__PURE__ */ jsx$1(AnimatePresence, { children: isVisible && /* @__PURE__ */ jsx$1(AnimatedBox, { role: "alert", ...toastAnimationConfig, children: /* @__PURE__ */ jsx$1(Alert, { controlled: true, onClose: handleClose, ...props, children }) }, "notification") });
|
|
53474
52586
|
};
|
|
53475
52587
|
const toast = {
|
|
53476
52588
|
danger: (children, props = {}, options = {}) => n.custom(
|
|
53477
|
-
(t3) => /* @__PURE__ */
|
|
52589
|
+
(t3) => /* @__PURE__ */ jsx$1(CustomToast, { id: t3.id, isVisible: t3.visible, type: "danger", ...props, children }),
|
|
53478
52590
|
{ duration: props.isCloseable ? Infinity : options.duration, ...options }
|
|
53479
52591
|
),
|
|
53480
52592
|
informative: (children, props = {}, options = {}) => n.custom(
|
|
53481
|
-
(t3) => /* @__PURE__ */
|
|
52593
|
+
(t3) => /* @__PURE__ */ jsx$1(CustomToast, { id: t3.id, isVisible: t3.visible, type: "informative", ...props, children }),
|
|
53482
52594
|
{ duration: props.isCloseable ? Infinity : options.duration, ...options }
|
|
53483
52595
|
),
|
|
53484
52596
|
success: (children, props = {}, options = {}) => n.custom(
|
|
53485
|
-
(t3) => /* @__PURE__ */
|
|
52597
|
+
(t3) => /* @__PURE__ */ jsx$1(CustomToast, { id: t3.id, isVisible: t3.visible, type: "success", ...props, children }),
|
|
53486
52598
|
{ duration: props.isCloseable ? Infinity : options.duration, ...options }
|
|
53487
52599
|
),
|
|
53488
52600
|
warning: (children, props = {}, options = {}) => n.custom(
|
|
53489
|
-
(t3) => /* @__PURE__ */
|
|
52601
|
+
(t3) => /* @__PURE__ */ jsx$1(CustomToast, { id: t3.id, isVisible: t3.visible, type: "warning", ...props, children }),
|
|
53490
52602
|
{ duration: props.isCloseable ? Infinity : options.duration, ...options }
|
|
53491
52603
|
)
|
|
53492
52604
|
};
|
|
@@ -53502,7 +52614,7 @@ const animationConfig = {
|
|
|
53502
52614
|
};
|
|
53503
52615
|
function Switch({ children, disabled, checked }) {
|
|
53504
52616
|
const componentVariant = useComponentVariant();
|
|
53505
|
-
return /* @__PURE__ */
|
|
52617
|
+
return /* @__PURE__ */ jsx$1(
|
|
53506
52618
|
AnimatedBox,
|
|
53507
52619
|
{
|
|
53508
52620
|
marginTop: componentVariant === "touch" ? "x0_25" : "none",
|
|
@@ -53523,7 +52635,7 @@ function Switch({ children, disabled, checked }) {
|
|
|
53523
52635
|
}
|
|
53524
52636
|
const Slider = ({ disabled, children }) => {
|
|
53525
52637
|
const theme = useTheme();
|
|
53526
|
-
return /* @__PURE__ */
|
|
52638
|
+
return /* @__PURE__ */ jsx$1(
|
|
53527
52639
|
motion.div,
|
|
53528
52640
|
{
|
|
53529
52641
|
className: "slider",
|
|
@@ -53565,8 +52677,8 @@ const ToggleInput = styled.input(({ disabled, theme }) => ({
|
|
|
53565
52677
|
}
|
|
53566
52678
|
}));
|
|
53567
52679
|
const ToggleButton = React__default.forwardRef(({ disabled, checked, ...props }, ref) => {
|
|
53568
|
-
return /* @__PURE__ */
|
|
53569
|
-
/* @__PURE__ */
|
|
52680
|
+
return /* @__PURE__ */ jsxs(Switch, { disabled, checked, children: [
|
|
52681
|
+
/* @__PURE__ */ jsx$1(
|
|
53570
52682
|
ToggleInput,
|
|
53571
52683
|
{
|
|
53572
52684
|
type: "checkbox",
|
|
@@ -53578,7 +52690,7 @@ const ToggleButton = React__default.forwardRef(({ disabled, checked, ...props },
|
|
|
53578
52690
|
...props
|
|
53579
52691
|
}
|
|
53580
52692
|
),
|
|
53581
|
-
/* @__PURE__ */
|
|
52693
|
+
/* @__PURE__ */ jsx$1(Slider, { disabled })
|
|
53582
52694
|
] });
|
|
53583
52695
|
});
|
|
53584
52696
|
const Toggle = React__default.forwardRef(
|
|
@@ -53634,7 +52746,7 @@ const Toggle = React__default.forwardRef(
|
|
|
53634
52746
|
console.warn("onChange or onClick is required when checked is set.");
|
|
53635
52747
|
}
|
|
53636
52748
|
}, []);
|
|
53637
|
-
return /* @__PURE__ */
|
|
52749
|
+
return /* @__PURE__ */ jsx$1(Field, { className, alignItems: "flex-start", py: "half", ...spaceProps, children: /* @__PURE__ */ jsx$1(
|
|
53638
52750
|
FieldLabel,
|
|
53639
52751
|
{
|
|
53640
52752
|
htmlFor: id2,
|
|
@@ -53645,8 +52757,8 @@ const Toggle = React__default.forwardRef(
|
|
|
53645
52757
|
disabled,
|
|
53646
52758
|
variant: componentVariant,
|
|
53647
52759
|
"data-testid": dataTestId,
|
|
53648
|
-
children: /* @__PURE__ */
|
|
53649
|
-
/* @__PURE__ */
|
|
52760
|
+
children: /* @__PURE__ */ jsxs(Flex, { flexDirection: "row", alignItems: "center", children: [
|
|
52761
|
+
/* @__PURE__ */ jsx$1(
|
|
53650
52762
|
ToggleButton,
|
|
53651
52763
|
{
|
|
53652
52764
|
id: id2,
|
|
@@ -53660,7 +52772,7 @@ const Toggle = React__default.forwardRef(
|
|
|
53660
52772
|
ref
|
|
53661
52773
|
}
|
|
53662
52774
|
),
|
|
53663
|
-
(onText || offText) && /* @__PURE__ */
|
|
52775
|
+
(onText || offText) && /* @__PURE__ */ jsx$1(Text, { disabled, mb: "none", ml: "x1", "aria-hidden": true, children: _checked ? onText : offText })
|
|
53664
52776
|
] })
|
|
53665
52777
|
}
|
|
53666
52778
|
) });
|
|
@@ -53813,9 +52925,9 @@ const BACK_LINK_MAX_WIDTH = {
|
|
|
53813
52925
|
};
|
|
53814
52926
|
function BackLink({ children, maxWidth: maxWidth2 = BACK_LINK_MAX_WIDTH, ...props }) {
|
|
53815
52927
|
const md = useMediaQuery("phoneLandscape");
|
|
53816
|
-
return /* @__PURE__ */
|
|
53817
|
-
/* @__PURE__ */
|
|
53818
|
-
md && /* @__PURE__ */
|
|
52928
|
+
return /* @__PURE__ */ jsx$1(Box, { as: "li", flex: "1 1", children: /* @__PURE__ */ jsxs(StyledBackLink, { ...props, "data-testid": "topbar-back-link", children: [
|
|
52929
|
+
/* @__PURE__ */ jsx$1(Icon, { icon: "arrowBack" }),
|
|
52930
|
+
md && /* @__PURE__ */ jsx$1(Text, { maxWidth: maxWidth2, textOverflow: "ellipsis", overflow: "hidden", fontSize: "small", children })
|
|
53819
52931
|
] }) });
|
|
53820
52932
|
}
|
|
53821
52933
|
const blurVariants = {
|
|
@@ -53858,9 +52970,9 @@ function Menu({
|
|
|
53858
52970
|
}
|
|
53859
52971
|
setShowMenu((s4) => !s4);
|
|
53860
52972
|
}
|
|
53861
|
-
return /* @__PURE__ */
|
|
53862
|
-
/* @__PURE__ */
|
|
53863
|
-
/* @__PURE__ */
|
|
52973
|
+
return /* @__PURE__ */ jsxs(Flex, { justifyContent: "flex-end", as: "li", color: "black", flex: "1 1", children: [
|
|
52974
|
+
/* @__PURE__ */ jsx$1(MenuButton, { onClick: toggle, "data-testid": "topbar-menu-button", children: /* @__PURE__ */ jsx$1(Icon, { size: "x3", color: "midGrey", icon: showMenu ? "close" : "apps" }) }),
|
|
52975
|
+
/* @__PURE__ */ jsx$1(AnimatePresence, { children: showMenu && /* @__PURE__ */ jsx$1(
|
|
53864
52976
|
Overlay,
|
|
53865
52977
|
{
|
|
53866
52978
|
"data-testid": "topbar-menu-overlay",
|
|
@@ -53876,13 +52988,13 @@ function Menu({
|
|
|
53876
52988
|
}
|
|
53877
52989
|
},
|
|
53878
52990
|
onDismiss: close2,
|
|
53879
|
-
children: /* @__PURE__ */
|
|
52991
|
+
children: /* @__PURE__ */ jsx$1(
|
|
53880
52992
|
DialogContent,
|
|
53881
52993
|
{
|
|
53882
52994
|
"data-testid": "topbar-menu",
|
|
53883
52995
|
"data-visible": animationComplete ? true : void 0,
|
|
53884
52996
|
"aria-label": props["aria-label"] ?? t3("menu options"),
|
|
53885
|
-
children: /* @__PURE__ */
|
|
52997
|
+
children: /* @__PURE__ */ jsx$1(MenuItemList, { children })
|
|
53886
52998
|
}
|
|
53887
52999
|
)
|
|
53888
53000
|
}
|
|
@@ -53912,7 +53024,7 @@ const fadeInVariants = {
|
|
|
53912
53024
|
}
|
|
53913
53025
|
};
|
|
53914
53026
|
function MenuItem({ children }) {
|
|
53915
|
-
return /* @__PURE__ */
|
|
53027
|
+
return /* @__PURE__ */ jsx$1(
|
|
53916
53028
|
StyledMenuItem,
|
|
53917
53029
|
{
|
|
53918
53030
|
"data-testid": "topbar-menu-item",
|
|
@@ -53926,19 +53038,19 @@ function MenuItem({ children }) {
|
|
|
53926
53038
|
}
|
|
53927
53039
|
const MotionText = motion(Text);
|
|
53928
53040
|
function MenuItemLink({ description, title, icon, ...props }) {
|
|
53929
|
-
return /* @__PURE__ */
|
|
53930
|
-
/* @__PURE__ */
|
|
53931
|
-
/* @__PURE__ */
|
|
53932
|
-
/* @__PURE__ */
|
|
53933
|
-
/* @__PURE__ */
|
|
53041
|
+
return /* @__PURE__ */ jsxs(TileLink, { ...props, children: [
|
|
53042
|
+
/* @__PURE__ */ jsx$1(Icon, { icon, size: "x3" }),
|
|
53043
|
+
/* @__PURE__ */ jsxs(Flex, { flexDirection: "column", justifyContent: "center", children: [
|
|
53044
|
+
/* @__PURE__ */ jsx$1(MotionText, { fontWeight: "medium", fontSize: "md", lineHeight: "base", children: title }),
|
|
53045
|
+
/* @__PURE__ */ jsx$1(MotionText, { fontSize: "xs", children: description })
|
|
53934
53046
|
] })
|
|
53935
53047
|
] });
|
|
53936
53048
|
}
|
|
53937
53049
|
function PageTitle({ children, ...props }) {
|
|
53938
|
-
return /* @__PURE__ */
|
|
53050
|
+
return /* @__PURE__ */ jsx$1(StyledPageTitle, { "data-testid": "topbar-page-title", ...props, children });
|
|
53939
53051
|
}
|
|
53940
53052
|
function Root({ children }) {
|
|
53941
|
-
return /* @__PURE__ */
|
|
53053
|
+
return /* @__PURE__ */ jsx$1(Header, { children: /* @__PURE__ */ jsx$1(Navigation, { children: /* @__PURE__ */ jsx$1(NavigationItemsList, { children }) }) });
|
|
53942
53054
|
}
|
|
53943
53055
|
const TopBar = {
|
|
53944
53056
|
Root,
|
|
@@ -53961,9 +53073,9 @@ function MaybeTooltip({
|
|
|
53961
53073
|
children
|
|
53962
53074
|
}) {
|
|
53963
53075
|
if (!showTooltip) {
|
|
53964
|
-
return /* @__PURE__ */
|
|
53076
|
+
return /* @__PURE__ */ jsx$1(Fragment, { children });
|
|
53965
53077
|
}
|
|
53966
|
-
return /* @__PURE__ */
|
|
53078
|
+
return /* @__PURE__ */ jsx$1(
|
|
53967
53079
|
Tooltip,
|
|
53968
53080
|
{
|
|
53969
53081
|
tooltip,
|
|
@@ -53992,7 +53104,7 @@ const TruncatedTextFillWidth = ({
|
|
|
53992
53104
|
setHasOverflowText(true);
|
|
53993
53105
|
}
|
|
53994
53106
|
};
|
|
53995
|
-
return /* @__PURE__ */
|
|
53107
|
+
return /* @__PURE__ */ jsx$1(MaybeTooltip, { showTooltip: hasTooltip, tooltip: children, defaultOpen: true, ...tooltipProps, children: /* @__PURE__ */ jsx$1(
|
|
53996
53108
|
Text,
|
|
53997
53109
|
{
|
|
53998
53110
|
as: element.type,
|
|
@@ -54023,7 +53135,7 @@ const TruncatedTextMaxCharacters = ({
|
|
|
54023
53135
|
const requiresTruncation = innerText.length > maxCharacters;
|
|
54024
53136
|
const truncatedText = requiresTruncation ? innerText.slice(0, maxCharacters) + indicator : innerText;
|
|
54025
53137
|
const hasTooltip = showTooltip && requiresTruncation;
|
|
54026
|
-
return /* @__PURE__ */
|
|
53138
|
+
return /* @__PURE__ */ jsx$1(MaybeTooltip, { showTooltip: hasTooltip, tooltip: innerText, ...tooltipProps, children: /* @__PURE__ */ jsx$1(
|
|
54027
53139
|
Text,
|
|
54028
53140
|
{
|
|
54029
53141
|
as: element.type,
|
|
@@ -54038,7 +53150,7 @@ const TruncatedTextMaxCharacters = ({
|
|
|
54038
53150
|
};
|
|
54039
53151
|
const TruncatedText = ({
|
|
54040
53152
|
indicator = "...",
|
|
54041
|
-
element = /* @__PURE__ */
|
|
53153
|
+
element = /* @__PURE__ */ jsx$1(Text, {}),
|
|
54042
53154
|
maxCharacters = 20,
|
|
54043
53155
|
fullWidth = false,
|
|
54044
53156
|
showTooltip = true,
|
|
@@ -54054,7 +53166,7 @@ const TruncatedText = ({
|
|
|
54054
53166
|
"data-testid": dataTestId,
|
|
54055
53167
|
...rest
|
|
54056
53168
|
};
|
|
54057
|
-
return fullWidth ? /* @__PURE__ */
|
|
53169
|
+
return fullWidth ? /* @__PURE__ */ jsx$1(TruncatedTextFillWidth, { ...props, children }) : /* @__PURE__ */ jsx$1(TruncatedTextMaxCharacters, { ...props, children });
|
|
54058
53170
|
};
|
|
54059
53171
|
export {
|
|
54060
53172
|
ALL_NDS_LOCALES,
|