@oliasoft-open-source/react-ui-library 3.9.9 → 3.9.10-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1634 -662
- package/dist/index.js.map +1 -1
- package/package.json +1 -2
package/dist/index.js
CHANGED
|
@@ -4,9 +4,8 @@ var __publicField = (obj, key2, value) => {
|
|
|
4
4
|
__defNormalProp(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value);
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
|
-
import { jsx, Fragment as Fragment$1, jsxs } from "react/jsx-runtime";
|
|
8
7
|
import * as React$4 from "react";
|
|
9
|
-
import React__default, { useState, useRef, useEffect, useCallback as useCallback$1, createElement, forwardRef, useContext, useMemo as useMemo$1, useLayoutEffect as useLayoutEffect$1, createContext, isValidElement, useReducer, useDebugValue, Fragment as Fragment$
|
|
8
|
+
import React__default, { useState, useRef, useEffect, useCallback as useCallback$1, createElement, forwardRef, useContext, useMemo as useMemo$1, useLayoutEffect as useLayoutEffect$1, createContext, isValidElement, useReducer, useDebugValue, Fragment as Fragment$1, Component as Component$1, PureComponent, useImperativeHandle, memo, cloneElement as cloneElement$1 } from "react";
|
|
10
9
|
import * as PropTypes from "prop-types";
|
|
11
10
|
import PropTypes__default from "prop-types";
|
|
12
11
|
import ReactDOM, { createPortal, unstable_batchedUpdates, render } from "react-dom";
|
|
@@ -37,6 +36,979 @@ function getAugmentedNamespace(n2) {
|
|
|
37
36
|
});
|
|
38
37
|
return a2;
|
|
39
38
|
}
|
|
39
|
+
var jsxRuntime = { exports: {} };
|
|
40
|
+
var reactJsxRuntime_production_min = {};
|
|
41
|
+
/*
|
|
42
|
+
object-assign
|
|
43
|
+
(c) Sindre Sorhus
|
|
44
|
+
@license MIT
|
|
45
|
+
*/
|
|
46
|
+
var objectAssign;
|
|
47
|
+
var hasRequiredObjectAssign;
|
|
48
|
+
function requireObjectAssign() {
|
|
49
|
+
if (hasRequiredObjectAssign)
|
|
50
|
+
return objectAssign;
|
|
51
|
+
hasRequiredObjectAssign = 1;
|
|
52
|
+
var getOwnPropertySymbols2 = Object.getOwnPropertySymbols;
|
|
53
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
54
|
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
55
|
+
function toObject(val) {
|
|
56
|
+
if (val === null || val === void 0) {
|
|
57
|
+
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
58
|
+
}
|
|
59
|
+
return Object(val);
|
|
60
|
+
}
|
|
61
|
+
function shouldUseNative() {
|
|
62
|
+
try {
|
|
63
|
+
if (!Object.assign) {
|
|
64
|
+
return false;
|
|
65
|
+
}
|
|
66
|
+
var test1 = new String("abc");
|
|
67
|
+
test1[5] = "de";
|
|
68
|
+
if (Object.getOwnPropertyNames(test1)[0] === "5") {
|
|
69
|
+
return false;
|
|
70
|
+
}
|
|
71
|
+
var test2 = {};
|
|
72
|
+
for (var i = 0; i < 10; i++) {
|
|
73
|
+
test2["_" + String.fromCharCode(i)] = i;
|
|
74
|
+
}
|
|
75
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function(n2) {
|
|
76
|
+
return test2[n2];
|
|
77
|
+
});
|
|
78
|
+
if (order2.join("") !== "0123456789") {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
var test3 = {};
|
|
82
|
+
"abcdefghijklmnopqrst".split("").forEach(function(letter) {
|
|
83
|
+
test3[letter] = letter;
|
|
84
|
+
});
|
|
85
|
+
if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
return true;
|
|
89
|
+
} catch (err) {
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
|
|
94
|
+
var from2;
|
|
95
|
+
var to2 = toObject(target);
|
|
96
|
+
var symbols;
|
|
97
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
98
|
+
from2 = Object(arguments[s]);
|
|
99
|
+
for (var key2 in from2) {
|
|
100
|
+
if (hasOwnProperty.call(from2, key2)) {
|
|
101
|
+
to2[key2] = from2[key2];
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
if (getOwnPropertySymbols2) {
|
|
105
|
+
symbols = getOwnPropertySymbols2(from2);
|
|
106
|
+
for (var i = 0; i < symbols.length; i++) {
|
|
107
|
+
if (propIsEnumerable.call(from2, symbols[i])) {
|
|
108
|
+
to2[symbols[i]] = from2[symbols[i]];
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return to2;
|
|
114
|
+
};
|
|
115
|
+
return objectAssign;
|
|
116
|
+
}
|
|
117
|
+
/** @license React v17.0.2
|
|
118
|
+
* react-jsx-runtime.production.min.js
|
|
119
|
+
*
|
|
120
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
121
|
+
*
|
|
122
|
+
* This source code is licensed under the MIT license found in the
|
|
123
|
+
* LICENSE file in the root directory of this source tree.
|
|
124
|
+
*/
|
|
125
|
+
var hasRequiredReactJsxRuntime_production_min;
|
|
126
|
+
function requireReactJsxRuntime_production_min() {
|
|
127
|
+
if (hasRequiredReactJsxRuntime_production_min)
|
|
128
|
+
return reactJsxRuntime_production_min;
|
|
129
|
+
hasRequiredReactJsxRuntime_production_min = 1;
|
|
130
|
+
requireObjectAssign();
|
|
131
|
+
var f = React__default, g2 = 60103;
|
|
132
|
+
reactJsxRuntime_production_min.Fragment = 60107;
|
|
133
|
+
if ("function" === typeof Symbol && Symbol.for) {
|
|
134
|
+
var h = Symbol.for;
|
|
135
|
+
g2 = h("react.element");
|
|
136
|
+
reactJsxRuntime_production_min.Fragment = h("react.fragment");
|
|
137
|
+
}
|
|
138
|
+
var m = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n2 = Object.prototype.hasOwnProperty, p = { key: true, ref: true, __self: true, __source: true };
|
|
139
|
+
function q2(c2, a2, k2) {
|
|
140
|
+
var b2, d2 = {}, e2 = null, l = null;
|
|
141
|
+
void 0 !== k2 && (e2 = "" + k2);
|
|
142
|
+
void 0 !== a2.key && (e2 = "" + a2.key);
|
|
143
|
+
void 0 !== a2.ref && (l = a2.ref);
|
|
144
|
+
for (b2 in a2)
|
|
145
|
+
n2.call(a2, b2) && !p.hasOwnProperty(b2) && (d2[b2] = a2[b2]);
|
|
146
|
+
if (c2 && c2.defaultProps)
|
|
147
|
+
for (b2 in a2 = c2.defaultProps, a2)
|
|
148
|
+
void 0 === d2[b2] && (d2[b2] = a2[b2]);
|
|
149
|
+
return { $$typeof: g2, type: c2, key: e2, ref: l, props: d2, _owner: m.current };
|
|
150
|
+
}
|
|
151
|
+
reactJsxRuntime_production_min.jsx = q2;
|
|
152
|
+
reactJsxRuntime_production_min.jsxs = q2;
|
|
153
|
+
return reactJsxRuntime_production_min;
|
|
154
|
+
}
|
|
155
|
+
var reactJsxRuntime_development = {};
|
|
156
|
+
/** @license React v17.0.2
|
|
157
|
+
* react-jsx-runtime.development.js
|
|
158
|
+
*
|
|
159
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
160
|
+
*
|
|
161
|
+
* This source code is licensed under the MIT license found in the
|
|
162
|
+
* LICENSE file in the root directory of this source tree.
|
|
163
|
+
*/
|
|
164
|
+
var hasRequiredReactJsxRuntime_development;
|
|
165
|
+
function requireReactJsxRuntime_development() {
|
|
166
|
+
if (hasRequiredReactJsxRuntime_development)
|
|
167
|
+
return reactJsxRuntime_development;
|
|
168
|
+
hasRequiredReactJsxRuntime_development = 1;
|
|
169
|
+
(function(exports) {
|
|
170
|
+
if (process.env.NODE_ENV !== "production") {
|
|
171
|
+
(function() {
|
|
172
|
+
var React2 = React__default;
|
|
173
|
+
var _assign = requireObjectAssign();
|
|
174
|
+
var REACT_ELEMENT_TYPE2 = 60103;
|
|
175
|
+
var REACT_PORTAL_TYPE = 60106;
|
|
176
|
+
exports.Fragment = 60107;
|
|
177
|
+
var REACT_STRICT_MODE_TYPE = 60108;
|
|
178
|
+
var REACT_PROFILER_TYPE = 60114;
|
|
179
|
+
var REACT_PROVIDER_TYPE = 60109;
|
|
180
|
+
var REACT_CONTEXT_TYPE = 60110;
|
|
181
|
+
var REACT_FORWARD_REF_TYPE = 60112;
|
|
182
|
+
var REACT_SUSPENSE_TYPE = 60113;
|
|
183
|
+
var REACT_SUSPENSE_LIST_TYPE = 60120;
|
|
184
|
+
var REACT_MEMO_TYPE = 60115;
|
|
185
|
+
var REACT_LAZY_TYPE = 60116;
|
|
186
|
+
var REACT_BLOCK_TYPE = 60121;
|
|
187
|
+
var REACT_SERVER_BLOCK_TYPE = 60122;
|
|
188
|
+
var REACT_FUNDAMENTAL_TYPE = 60117;
|
|
189
|
+
var REACT_DEBUG_TRACING_MODE_TYPE = 60129;
|
|
190
|
+
var REACT_LEGACY_HIDDEN_TYPE = 60131;
|
|
191
|
+
if (typeof Symbol === "function" && Symbol.for) {
|
|
192
|
+
var symbolFor = Symbol.for;
|
|
193
|
+
REACT_ELEMENT_TYPE2 = symbolFor("react.element");
|
|
194
|
+
REACT_PORTAL_TYPE = symbolFor("react.portal");
|
|
195
|
+
exports.Fragment = symbolFor("react.fragment");
|
|
196
|
+
REACT_STRICT_MODE_TYPE = symbolFor("react.strict_mode");
|
|
197
|
+
REACT_PROFILER_TYPE = symbolFor("react.profiler");
|
|
198
|
+
REACT_PROVIDER_TYPE = symbolFor("react.provider");
|
|
199
|
+
REACT_CONTEXT_TYPE = symbolFor("react.context");
|
|
200
|
+
REACT_FORWARD_REF_TYPE = symbolFor("react.forward_ref");
|
|
201
|
+
REACT_SUSPENSE_TYPE = symbolFor("react.suspense");
|
|
202
|
+
REACT_SUSPENSE_LIST_TYPE = symbolFor("react.suspense_list");
|
|
203
|
+
REACT_MEMO_TYPE = symbolFor("react.memo");
|
|
204
|
+
REACT_LAZY_TYPE = symbolFor("react.lazy");
|
|
205
|
+
REACT_BLOCK_TYPE = symbolFor("react.block");
|
|
206
|
+
REACT_SERVER_BLOCK_TYPE = symbolFor("react.server.block");
|
|
207
|
+
REACT_FUNDAMENTAL_TYPE = symbolFor("react.fundamental");
|
|
208
|
+
symbolFor("react.scope");
|
|
209
|
+
symbolFor("react.opaque.id");
|
|
210
|
+
REACT_DEBUG_TRACING_MODE_TYPE = symbolFor("react.debug_trace_mode");
|
|
211
|
+
symbolFor("react.offscreen");
|
|
212
|
+
REACT_LEGACY_HIDDEN_TYPE = symbolFor("react.legacy_hidden");
|
|
213
|
+
}
|
|
214
|
+
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
|
|
215
|
+
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
216
|
+
function getIteratorFn(maybeIterable) {
|
|
217
|
+
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
218
|
+
return null;
|
|
219
|
+
}
|
|
220
|
+
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
221
|
+
if (typeof maybeIterator === "function") {
|
|
222
|
+
return maybeIterator;
|
|
223
|
+
}
|
|
224
|
+
return null;
|
|
225
|
+
}
|
|
226
|
+
var ReactSharedInternals = React2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
227
|
+
function error2(format) {
|
|
228
|
+
{
|
|
229
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
230
|
+
args[_key2 - 1] = arguments[_key2];
|
|
231
|
+
}
|
|
232
|
+
printWarning("error", format, args);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
function printWarning(level, format, args) {
|
|
236
|
+
{
|
|
237
|
+
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
238
|
+
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
239
|
+
if (stack !== "") {
|
|
240
|
+
format += "%s";
|
|
241
|
+
args = args.concat([stack]);
|
|
242
|
+
}
|
|
243
|
+
var argsWithFormat = args.map(function(item2) {
|
|
244
|
+
return "" + item2;
|
|
245
|
+
});
|
|
246
|
+
argsWithFormat.unshift("Warning: " + format);
|
|
247
|
+
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
var enableScopeAPI = false;
|
|
251
|
+
function isValidElementType(type) {
|
|
252
|
+
if (typeof type === "string" || typeof type === "function") {
|
|
253
|
+
return true;
|
|
254
|
+
}
|
|
255
|
+
if (type === exports.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) {
|
|
256
|
+
return true;
|
|
257
|
+
}
|
|
258
|
+
if (typeof type === "object" && type !== null) {
|
|
259
|
+
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) {
|
|
260
|
+
return true;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
return false;
|
|
264
|
+
}
|
|
265
|
+
function getWrappedName(outerType, innerType, wrapperName) {
|
|
266
|
+
var functionName = innerType.displayName || innerType.name || "";
|
|
267
|
+
return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName);
|
|
268
|
+
}
|
|
269
|
+
function getContextName(type) {
|
|
270
|
+
return type.displayName || "Context";
|
|
271
|
+
}
|
|
272
|
+
function getComponentName(type) {
|
|
273
|
+
if (type == null) {
|
|
274
|
+
return null;
|
|
275
|
+
}
|
|
276
|
+
{
|
|
277
|
+
if (typeof type.tag === "number") {
|
|
278
|
+
error2("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue.");
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
if (typeof type === "function") {
|
|
282
|
+
return type.displayName || type.name || null;
|
|
283
|
+
}
|
|
284
|
+
if (typeof type === "string") {
|
|
285
|
+
return type;
|
|
286
|
+
}
|
|
287
|
+
switch (type) {
|
|
288
|
+
case exports.Fragment:
|
|
289
|
+
return "Fragment";
|
|
290
|
+
case REACT_PORTAL_TYPE:
|
|
291
|
+
return "Portal";
|
|
292
|
+
case REACT_PROFILER_TYPE:
|
|
293
|
+
return "Profiler";
|
|
294
|
+
case REACT_STRICT_MODE_TYPE:
|
|
295
|
+
return "StrictMode";
|
|
296
|
+
case REACT_SUSPENSE_TYPE:
|
|
297
|
+
return "Suspense";
|
|
298
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
299
|
+
return "SuspenseList";
|
|
300
|
+
}
|
|
301
|
+
if (typeof type === "object") {
|
|
302
|
+
switch (type.$$typeof) {
|
|
303
|
+
case REACT_CONTEXT_TYPE:
|
|
304
|
+
var context2 = type;
|
|
305
|
+
return getContextName(context2) + ".Consumer";
|
|
306
|
+
case REACT_PROVIDER_TYPE:
|
|
307
|
+
var provider = type;
|
|
308
|
+
return getContextName(provider._context) + ".Provider";
|
|
309
|
+
case REACT_FORWARD_REF_TYPE:
|
|
310
|
+
return getWrappedName(type, type.render, "ForwardRef");
|
|
311
|
+
case REACT_MEMO_TYPE:
|
|
312
|
+
return getComponentName(type.type);
|
|
313
|
+
case REACT_BLOCK_TYPE:
|
|
314
|
+
return getComponentName(type._render);
|
|
315
|
+
case REACT_LAZY_TYPE: {
|
|
316
|
+
var lazyComponent = type;
|
|
317
|
+
var payload = lazyComponent._payload;
|
|
318
|
+
var init = lazyComponent._init;
|
|
319
|
+
try {
|
|
320
|
+
return getComponentName(init(payload));
|
|
321
|
+
} catch (x2) {
|
|
322
|
+
return null;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
return null;
|
|
328
|
+
}
|
|
329
|
+
var disabledDepth = 0;
|
|
330
|
+
var prevLog;
|
|
331
|
+
var prevInfo;
|
|
332
|
+
var prevWarn;
|
|
333
|
+
var prevError;
|
|
334
|
+
var prevGroup;
|
|
335
|
+
var prevGroupCollapsed;
|
|
336
|
+
var prevGroupEnd;
|
|
337
|
+
function disabledLog() {
|
|
338
|
+
}
|
|
339
|
+
disabledLog.__reactDisabledLog = true;
|
|
340
|
+
function disableLogs() {
|
|
341
|
+
{
|
|
342
|
+
if (disabledDepth === 0) {
|
|
343
|
+
prevLog = console.log;
|
|
344
|
+
prevInfo = console.info;
|
|
345
|
+
prevWarn = console.warn;
|
|
346
|
+
prevError = console.error;
|
|
347
|
+
prevGroup = console.group;
|
|
348
|
+
prevGroupCollapsed = console.groupCollapsed;
|
|
349
|
+
prevGroupEnd = console.groupEnd;
|
|
350
|
+
var props = {
|
|
351
|
+
configurable: true,
|
|
352
|
+
enumerable: true,
|
|
353
|
+
value: disabledLog,
|
|
354
|
+
writable: true
|
|
355
|
+
};
|
|
356
|
+
Object.defineProperties(console, {
|
|
357
|
+
info: props,
|
|
358
|
+
log: props,
|
|
359
|
+
warn: props,
|
|
360
|
+
error: props,
|
|
361
|
+
group: props,
|
|
362
|
+
groupCollapsed: props,
|
|
363
|
+
groupEnd: props
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
disabledDepth++;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
function reenableLogs() {
|
|
370
|
+
{
|
|
371
|
+
disabledDepth--;
|
|
372
|
+
if (disabledDepth === 0) {
|
|
373
|
+
var props = {
|
|
374
|
+
configurable: true,
|
|
375
|
+
enumerable: true,
|
|
376
|
+
writable: true
|
|
377
|
+
};
|
|
378
|
+
Object.defineProperties(console, {
|
|
379
|
+
log: _assign({}, props, {
|
|
380
|
+
value: prevLog
|
|
381
|
+
}),
|
|
382
|
+
info: _assign({}, props, {
|
|
383
|
+
value: prevInfo
|
|
384
|
+
}),
|
|
385
|
+
warn: _assign({}, props, {
|
|
386
|
+
value: prevWarn
|
|
387
|
+
}),
|
|
388
|
+
error: _assign({}, props, {
|
|
389
|
+
value: prevError
|
|
390
|
+
}),
|
|
391
|
+
group: _assign({}, props, {
|
|
392
|
+
value: prevGroup
|
|
393
|
+
}),
|
|
394
|
+
groupCollapsed: _assign({}, props, {
|
|
395
|
+
value: prevGroupCollapsed
|
|
396
|
+
}),
|
|
397
|
+
groupEnd: _assign({}, props, {
|
|
398
|
+
value: prevGroupEnd
|
|
399
|
+
})
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
if (disabledDepth < 0) {
|
|
403
|
+
error2("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
|
408
|
+
var prefix2;
|
|
409
|
+
function describeBuiltInComponentFrame(name2, source, ownerFn) {
|
|
410
|
+
{
|
|
411
|
+
if (prefix2 === void 0) {
|
|
412
|
+
try {
|
|
413
|
+
throw Error();
|
|
414
|
+
} catch (x2) {
|
|
415
|
+
var match2 = x2.stack.trim().match(/\n( *(at )?)/);
|
|
416
|
+
prefix2 = match2 && match2[1] || "";
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
return "\n" + prefix2 + name2;
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
var reentry = false;
|
|
423
|
+
var componentFrameCache;
|
|
424
|
+
{
|
|
425
|
+
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
426
|
+
componentFrameCache = new PossiblyWeakMap();
|
|
427
|
+
}
|
|
428
|
+
function describeNativeComponentFrame(fn, construct) {
|
|
429
|
+
if (!fn || reentry) {
|
|
430
|
+
return "";
|
|
431
|
+
}
|
|
432
|
+
{
|
|
433
|
+
var frame2 = componentFrameCache.get(fn);
|
|
434
|
+
if (frame2 !== void 0) {
|
|
435
|
+
return frame2;
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
var control;
|
|
439
|
+
reentry = true;
|
|
440
|
+
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
441
|
+
Error.prepareStackTrace = void 0;
|
|
442
|
+
var previousDispatcher;
|
|
443
|
+
{
|
|
444
|
+
previousDispatcher = ReactCurrentDispatcher.current;
|
|
445
|
+
ReactCurrentDispatcher.current = null;
|
|
446
|
+
disableLogs();
|
|
447
|
+
}
|
|
448
|
+
try {
|
|
449
|
+
if (construct) {
|
|
450
|
+
var Fake = function() {
|
|
451
|
+
throw Error();
|
|
452
|
+
};
|
|
453
|
+
Object.defineProperty(Fake.prototype, "props", {
|
|
454
|
+
set: function() {
|
|
455
|
+
throw Error();
|
|
456
|
+
}
|
|
457
|
+
});
|
|
458
|
+
if (typeof Reflect === "object" && Reflect.construct) {
|
|
459
|
+
try {
|
|
460
|
+
Reflect.construct(Fake, []);
|
|
461
|
+
} catch (x2) {
|
|
462
|
+
control = x2;
|
|
463
|
+
}
|
|
464
|
+
Reflect.construct(fn, [], Fake);
|
|
465
|
+
} else {
|
|
466
|
+
try {
|
|
467
|
+
Fake.call();
|
|
468
|
+
} catch (x2) {
|
|
469
|
+
control = x2;
|
|
470
|
+
}
|
|
471
|
+
fn.call(Fake.prototype);
|
|
472
|
+
}
|
|
473
|
+
} else {
|
|
474
|
+
try {
|
|
475
|
+
throw Error();
|
|
476
|
+
} catch (x2) {
|
|
477
|
+
control = x2;
|
|
478
|
+
}
|
|
479
|
+
fn();
|
|
480
|
+
}
|
|
481
|
+
} catch (sample) {
|
|
482
|
+
if (sample && control && typeof sample.stack === "string") {
|
|
483
|
+
var sampleLines = sample.stack.split("\n");
|
|
484
|
+
var controlLines = control.stack.split("\n");
|
|
485
|
+
var s = sampleLines.length - 1;
|
|
486
|
+
var c2 = controlLines.length - 1;
|
|
487
|
+
while (s >= 1 && c2 >= 0 && sampleLines[s] !== controlLines[c2]) {
|
|
488
|
+
c2--;
|
|
489
|
+
}
|
|
490
|
+
for (; s >= 1 && c2 >= 0; s--, c2--) {
|
|
491
|
+
if (sampleLines[s] !== controlLines[c2]) {
|
|
492
|
+
if (s !== 1 || c2 !== 1) {
|
|
493
|
+
do {
|
|
494
|
+
s--;
|
|
495
|
+
c2--;
|
|
496
|
+
if (c2 < 0 || sampleLines[s] !== controlLines[c2]) {
|
|
497
|
+
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
498
|
+
{
|
|
499
|
+
if (typeof fn === "function") {
|
|
500
|
+
componentFrameCache.set(fn, _frame);
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
return _frame;
|
|
504
|
+
}
|
|
505
|
+
} while (s >= 1 && c2 >= 0);
|
|
506
|
+
}
|
|
507
|
+
break;
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
} finally {
|
|
512
|
+
reentry = false;
|
|
513
|
+
{
|
|
514
|
+
ReactCurrentDispatcher.current = previousDispatcher;
|
|
515
|
+
reenableLogs();
|
|
516
|
+
}
|
|
517
|
+
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
518
|
+
}
|
|
519
|
+
var name2 = fn ? fn.displayName || fn.name : "";
|
|
520
|
+
var syntheticFrame = name2 ? describeBuiltInComponentFrame(name2) : "";
|
|
521
|
+
{
|
|
522
|
+
if (typeof fn === "function") {
|
|
523
|
+
componentFrameCache.set(fn, syntheticFrame);
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
return syntheticFrame;
|
|
527
|
+
}
|
|
528
|
+
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
529
|
+
{
|
|
530
|
+
return describeNativeComponentFrame(fn, false);
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
function shouldConstruct(Component2) {
|
|
534
|
+
var prototype = Component2.prototype;
|
|
535
|
+
return !!(prototype && prototype.isReactComponent);
|
|
536
|
+
}
|
|
537
|
+
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
538
|
+
if (type == null) {
|
|
539
|
+
return "";
|
|
540
|
+
}
|
|
541
|
+
if (typeof type === "function") {
|
|
542
|
+
{
|
|
543
|
+
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
if (typeof type === "string") {
|
|
547
|
+
return describeBuiltInComponentFrame(type);
|
|
548
|
+
}
|
|
549
|
+
switch (type) {
|
|
550
|
+
case REACT_SUSPENSE_TYPE:
|
|
551
|
+
return describeBuiltInComponentFrame("Suspense");
|
|
552
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
553
|
+
return describeBuiltInComponentFrame("SuspenseList");
|
|
554
|
+
}
|
|
555
|
+
if (typeof type === "object") {
|
|
556
|
+
switch (type.$$typeof) {
|
|
557
|
+
case REACT_FORWARD_REF_TYPE:
|
|
558
|
+
return describeFunctionComponentFrame(type.render);
|
|
559
|
+
case REACT_MEMO_TYPE:
|
|
560
|
+
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
561
|
+
case REACT_BLOCK_TYPE:
|
|
562
|
+
return describeFunctionComponentFrame(type._render);
|
|
563
|
+
case REACT_LAZY_TYPE: {
|
|
564
|
+
var lazyComponent = type;
|
|
565
|
+
var payload = lazyComponent._payload;
|
|
566
|
+
var init = lazyComponent._init;
|
|
567
|
+
try {
|
|
568
|
+
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
569
|
+
} catch (x2) {
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
return "";
|
|
575
|
+
}
|
|
576
|
+
var loggedTypeFailures = {};
|
|
577
|
+
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
578
|
+
function setCurrentlyValidatingElement(element) {
|
|
579
|
+
{
|
|
580
|
+
if (element) {
|
|
581
|
+
var owner = element._owner;
|
|
582
|
+
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
583
|
+
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
|
584
|
+
} else {
|
|
585
|
+
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
function checkPropTypes(typeSpecs, values2, location, componentName, element) {
|
|
590
|
+
{
|
|
591
|
+
var has2 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
592
|
+
for (var typeSpecName in typeSpecs) {
|
|
593
|
+
if (has2(typeSpecs, typeSpecName)) {
|
|
594
|
+
var error$12 = void 0;
|
|
595
|
+
try {
|
|
596
|
+
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
597
|
+
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`.");
|
|
598
|
+
err.name = "Invariant Violation";
|
|
599
|
+
throw err;
|
|
600
|
+
}
|
|
601
|
+
error$12 = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
602
|
+
} catch (ex) {
|
|
603
|
+
error$12 = ex;
|
|
604
|
+
}
|
|
605
|
+
if (error$12 && !(error$12 instanceof Error)) {
|
|
606
|
+
setCurrentlyValidatingElement(element);
|
|
607
|
+
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$12);
|
|
608
|
+
setCurrentlyValidatingElement(null);
|
|
609
|
+
}
|
|
610
|
+
if (error$12 instanceof Error && !(error$12.message in loggedTypeFailures)) {
|
|
611
|
+
loggedTypeFailures[error$12.message] = true;
|
|
612
|
+
setCurrentlyValidatingElement(element);
|
|
613
|
+
error2("Failed %s type: %s", location, error$12.message);
|
|
614
|
+
setCurrentlyValidatingElement(null);
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
621
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
622
|
+
var RESERVED_PROPS = {
|
|
623
|
+
key: true,
|
|
624
|
+
ref: true,
|
|
625
|
+
__self: true,
|
|
626
|
+
__source: true
|
|
627
|
+
};
|
|
628
|
+
var specialPropKeyWarningShown;
|
|
629
|
+
var specialPropRefWarningShown;
|
|
630
|
+
var didWarnAboutStringRefs;
|
|
631
|
+
{
|
|
632
|
+
didWarnAboutStringRefs = {};
|
|
633
|
+
}
|
|
634
|
+
function hasValidRef(config2) {
|
|
635
|
+
{
|
|
636
|
+
if (hasOwnProperty.call(config2, "ref")) {
|
|
637
|
+
var getter = Object.getOwnPropertyDescriptor(config2, "ref").get;
|
|
638
|
+
if (getter && getter.isReactWarning) {
|
|
639
|
+
return false;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
return config2.ref !== void 0;
|
|
644
|
+
}
|
|
645
|
+
function hasValidKey(config2) {
|
|
646
|
+
{
|
|
647
|
+
if (hasOwnProperty.call(config2, "key")) {
|
|
648
|
+
var getter = Object.getOwnPropertyDescriptor(config2, "key").get;
|
|
649
|
+
if (getter && getter.isReactWarning) {
|
|
650
|
+
return false;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
return config2.key !== void 0;
|
|
655
|
+
}
|
|
656
|
+
function warnIfStringRefCannotBeAutoConverted(config2, self2) {
|
|
657
|
+
{
|
|
658
|
+
if (typeof config2.ref === "string" && ReactCurrentOwner.current && self2 && ReactCurrentOwner.current.stateNode !== self2) {
|
|
659
|
+
var componentName = getComponentName(ReactCurrentOwner.current.type);
|
|
660
|
+
if (!didWarnAboutStringRefs[componentName]) {
|
|
661
|
+
error2('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', getComponentName(ReactCurrentOwner.current.type), config2.ref);
|
|
662
|
+
didWarnAboutStringRefs[componentName] = true;
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
668
|
+
{
|
|
669
|
+
var warnAboutAccessingKey = function() {
|
|
670
|
+
if (!specialPropKeyWarningShown) {
|
|
671
|
+
specialPropKeyWarningShown = true;
|
|
672
|
+
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);
|
|
673
|
+
}
|
|
674
|
+
};
|
|
675
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
676
|
+
Object.defineProperty(props, "key", {
|
|
677
|
+
get: warnAboutAccessingKey,
|
|
678
|
+
configurable: true
|
|
679
|
+
});
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
function defineRefPropWarningGetter(props, displayName) {
|
|
683
|
+
{
|
|
684
|
+
var warnAboutAccessingRef = function() {
|
|
685
|
+
if (!specialPropRefWarningShown) {
|
|
686
|
+
specialPropRefWarningShown = true;
|
|
687
|
+
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);
|
|
688
|
+
}
|
|
689
|
+
};
|
|
690
|
+
warnAboutAccessingRef.isReactWarning = true;
|
|
691
|
+
Object.defineProperty(props, "ref", {
|
|
692
|
+
get: warnAboutAccessingRef,
|
|
693
|
+
configurable: true
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
var ReactElement = function(type, key2, ref2, self2, source, owner, props) {
|
|
698
|
+
var element = {
|
|
699
|
+
$$typeof: REACT_ELEMENT_TYPE2,
|
|
700
|
+
type,
|
|
701
|
+
key: key2,
|
|
702
|
+
ref: ref2,
|
|
703
|
+
props,
|
|
704
|
+
_owner: owner
|
|
705
|
+
};
|
|
706
|
+
{
|
|
707
|
+
element._store = {};
|
|
708
|
+
Object.defineProperty(element._store, "validated", {
|
|
709
|
+
configurable: false,
|
|
710
|
+
enumerable: false,
|
|
711
|
+
writable: true,
|
|
712
|
+
value: false
|
|
713
|
+
});
|
|
714
|
+
Object.defineProperty(element, "_self", {
|
|
715
|
+
configurable: false,
|
|
716
|
+
enumerable: false,
|
|
717
|
+
writable: false,
|
|
718
|
+
value: self2
|
|
719
|
+
});
|
|
720
|
+
Object.defineProperty(element, "_source", {
|
|
721
|
+
configurable: false,
|
|
722
|
+
enumerable: false,
|
|
723
|
+
writable: false,
|
|
724
|
+
value: source
|
|
725
|
+
});
|
|
726
|
+
if (Object.freeze) {
|
|
727
|
+
Object.freeze(element.props);
|
|
728
|
+
Object.freeze(element);
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
return element;
|
|
732
|
+
};
|
|
733
|
+
function jsxDEV(type, config2, maybeKey, source, self2) {
|
|
734
|
+
{
|
|
735
|
+
var propName;
|
|
736
|
+
var props = {};
|
|
737
|
+
var key2 = null;
|
|
738
|
+
var ref2 = null;
|
|
739
|
+
if (maybeKey !== void 0) {
|
|
740
|
+
key2 = "" + maybeKey;
|
|
741
|
+
}
|
|
742
|
+
if (hasValidKey(config2)) {
|
|
743
|
+
key2 = "" + config2.key;
|
|
744
|
+
}
|
|
745
|
+
if (hasValidRef(config2)) {
|
|
746
|
+
ref2 = config2.ref;
|
|
747
|
+
warnIfStringRefCannotBeAutoConverted(config2, self2);
|
|
748
|
+
}
|
|
749
|
+
for (propName in config2) {
|
|
750
|
+
if (hasOwnProperty.call(config2, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
751
|
+
props[propName] = config2[propName];
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
if (type && type.defaultProps) {
|
|
755
|
+
var defaultProps2 = type.defaultProps;
|
|
756
|
+
for (propName in defaultProps2) {
|
|
757
|
+
if (props[propName] === void 0) {
|
|
758
|
+
props[propName] = defaultProps2[propName];
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
if (key2 || ref2) {
|
|
763
|
+
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
764
|
+
if (key2) {
|
|
765
|
+
defineKeyPropWarningGetter(props, displayName);
|
|
766
|
+
}
|
|
767
|
+
if (ref2) {
|
|
768
|
+
defineRefPropWarningGetter(props, displayName);
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
return ReactElement(type, key2, ref2, self2, source, ReactCurrentOwner.current, props);
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
|
775
|
+
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
776
|
+
function setCurrentlyValidatingElement$1(element) {
|
|
777
|
+
{
|
|
778
|
+
if (element) {
|
|
779
|
+
var owner = element._owner;
|
|
780
|
+
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
781
|
+
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
782
|
+
} else {
|
|
783
|
+
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
var propTypesMisspellWarningShown;
|
|
788
|
+
{
|
|
789
|
+
propTypesMisspellWarningShown = false;
|
|
790
|
+
}
|
|
791
|
+
function isValidElement2(object2) {
|
|
792
|
+
{
|
|
793
|
+
return typeof object2 === "object" && object2 !== null && object2.$$typeof === REACT_ELEMENT_TYPE2;
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
function getDeclarationErrorAddendum() {
|
|
797
|
+
{
|
|
798
|
+
if (ReactCurrentOwner$1.current) {
|
|
799
|
+
var name2 = getComponentName(ReactCurrentOwner$1.current.type);
|
|
800
|
+
if (name2) {
|
|
801
|
+
return "\n\nCheck the render method of `" + name2 + "`.";
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
return "";
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
function getSourceInfoErrorAddendum(source) {
|
|
808
|
+
{
|
|
809
|
+
if (source !== void 0) {
|
|
810
|
+
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
|
811
|
+
var lineNumber = source.lineNumber;
|
|
812
|
+
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
|
813
|
+
}
|
|
814
|
+
return "";
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
var ownerHasKeyUseWarning = {};
|
|
818
|
+
function getCurrentComponentErrorInfo(parentType) {
|
|
819
|
+
{
|
|
820
|
+
var info2 = getDeclarationErrorAddendum();
|
|
821
|
+
if (!info2) {
|
|
822
|
+
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
823
|
+
if (parentName) {
|
|
824
|
+
info2 = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
return info2;
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
function validateExplicitKey(element, parentType) {
|
|
831
|
+
{
|
|
832
|
+
if (!element._store || element._store.validated || element.key != null) {
|
|
833
|
+
return;
|
|
834
|
+
}
|
|
835
|
+
element._store.validated = true;
|
|
836
|
+
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
837
|
+
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
838
|
+
return;
|
|
839
|
+
}
|
|
840
|
+
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
841
|
+
var childOwner = "";
|
|
842
|
+
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
|
843
|
+
childOwner = " It was passed a child from " + getComponentName(element._owner.type) + ".";
|
|
844
|
+
}
|
|
845
|
+
setCurrentlyValidatingElement$1(element);
|
|
846
|
+
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);
|
|
847
|
+
setCurrentlyValidatingElement$1(null);
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
function validateChildKeys(node, parentType) {
|
|
851
|
+
{
|
|
852
|
+
if (typeof node !== "object") {
|
|
853
|
+
return;
|
|
854
|
+
}
|
|
855
|
+
if (Array.isArray(node)) {
|
|
856
|
+
for (var i = 0; i < node.length; i++) {
|
|
857
|
+
var child = node[i];
|
|
858
|
+
if (isValidElement2(child)) {
|
|
859
|
+
validateExplicitKey(child, parentType);
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
} else if (isValidElement2(node)) {
|
|
863
|
+
if (node._store) {
|
|
864
|
+
node._store.validated = true;
|
|
865
|
+
}
|
|
866
|
+
} else if (node) {
|
|
867
|
+
var iteratorFn = getIteratorFn(node);
|
|
868
|
+
if (typeof iteratorFn === "function") {
|
|
869
|
+
if (iteratorFn !== node.entries) {
|
|
870
|
+
var iterator = iteratorFn.call(node);
|
|
871
|
+
var step;
|
|
872
|
+
while (!(step = iterator.next()).done) {
|
|
873
|
+
if (isValidElement2(step.value)) {
|
|
874
|
+
validateExplicitKey(step.value, parentType);
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
function validatePropTypes(element) {
|
|
883
|
+
{
|
|
884
|
+
var type = element.type;
|
|
885
|
+
if (type === null || type === void 0 || typeof type === "string") {
|
|
886
|
+
return;
|
|
887
|
+
}
|
|
888
|
+
var propTypes2;
|
|
889
|
+
if (typeof type === "function") {
|
|
890
|
+
propTypes2 = type.propTypes;
|
|
891
|
+
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MEMO_TYPE)) {
|
|
892
|
+
propTypes2 = type.propTypes;
|
|
893
|
+
} else {
|
|
894
|
+
return;
|
|
895
|
+
}
|
|
896
|
+
if (propTypes2) {
|
|
897
|
+
var name2 = getComponentName(type);
|
|
898
|
+
checkPropTypes(propTypes2, element.props, "prop", name2, element);
|
|
899
|
+
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
900
|
+
propTypesMisspellWarningShown = true;
|
|
901
|
+
var _name = getComponentName(type);
|
|
902
|
+
error2("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
903
|
+
}
|
|
904
|
+
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
905
|
+
error2("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
function validateFragmentProps(fragment) {
|
|
910
|
+
{
|
|
911
|
+
var keys2 = Object.keys(fragment.props);
|
|
912
|
+
for (var i = 0; i < keys2.length; i++) {
|
|
913
|
+
var key2 = keys2[i];
|
|
914
|
+
if (key2 !== "children" && key2 !== "key") {
|
|
915
|
+
setCurrentlyValidatingElement$1(fragment);
|
|
916
|
+
error2("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key2);
|
|
917
|
+
setCurrentlyValidatingElement$1(null);
|
|
918
|
+
break;
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
if (fragment.ref !== null) {
|
|
922
|
+
setCurrentlyValidatingElement$1(fragment);
|
|
923
|
+
error2("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
924
|
+
setCurrentlyValidatingElement$1(null);
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
function jsxWithValidation(type, props, key2, isStaticChildren, source, self2) {
|
|
929
|
+
{
|
|
930
|
+
var validType = isValidElementType(type);
|
|
931
|
+
if (!validType) {
|
|
932
|
+
var info2 = "";
|
|
933
|
+
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
934
|
+
info2 += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
935
|
+
}
|
|
936
|
+
var sourceInfo = getSourceInfoErrorAddendum(source);
|
|
937
|
+
if (sourceInfo) {
|
|
938
|
+
info2 += sourceInfo;
|
|
939
|
+
} else {
|
|
940
|
+
info2 += getDeclarationErrorAddendum();
|
|
941
|
+
}
|
|
942
|
+
var typeString;
|
|
943
|
+
if (type === null) {
|
|
944
|
+
typeString = "null";
|
|
945
|
+
} else if (Array.isArray(type)) {
|
|
946
|
+
typeString = "array";
|
|
947
|
+
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE2) {
|
|
948
|
+
typeString = "<" + (getComponentName(type.type) || "Unknown") + " />";
|
|
949
|
+
info2 = " Did you accidentally export a JSX literal instead of a component?";
|
|
950
|
+
} else {
|
|
951
|
+
typeString = typeof type;
|
|
952
|
+
}
|
|
953
|
+
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, info2);
|
|
954
|
+
}
|
|
955
|
+
var element = jsxDEV(type, props, key2, source, self2);
|
|
956
|
+
if (element == null) {
|
|
957
|
+
return element;
|
|
958
|
+
}
|
|
959
|
+
if (validType) {
|
|
960
|
+
var children = props.children;
|
|
961
|
+
if (children !== void 0) {
|
|
962
|
+
if (isStaticChildren) {
|
|
963
|
+
if (Array.isArray(children)) {
|
|
964
|
+
for (var i = 0; i < children.length; i++) {
|
|
965
|
+
validateChildKeys(children[i], type);
|
|
966
|
+
}
|
|
967
|
+
if (Object.freeze) {
|
|
968
|
+
Object.freeze(children);
|
|
969
|
+
}
|
|
970
|
+
} else {
|
|
971
|
+
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.");
|
|
972
|
+
}
|
|
973
|
+
} else {
|
|
974
|
+
validateChildKeys(children, type);
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
if (type === exports.Fragment) {
|
|
979
|
+
validateFragmentProps(element);
|
|
980
|
+
} else {
|
|
981
|
+
validatePropTypes(element);
|
|
982
|
+
}
|
|
983
|
+
return element;
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
function jsxWithValidationStatic(type, props, key2) {
|
|
987
|
+
{
|
|
988
|
+
return jsxWithValidation(type, props, key2, true);
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
function jsxWithValidationDynamic(type, props, key2) {
|
|
992
|
+
{
|
|
993
|
+
return jsxWithValidation(type, props, key2, false);
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
var jsx = jsxWithValidationDynamic;
|
|
997
|
+
var jsxs = jsxWithValidationStatic;
|
|
998
|
+
exports.jsx = jsx;
|
|
999
|
+
exports.jsxs = jsxs;
|
|
1000
|
+
})();
|
|
1001
|
+
}
|
|
1002
|
+
})(reactJsxRuntime_development);
|
|
1003
|
+
return reactJsxRuntime_development;
|
|
1004
|
+
}
|
|
1005
|
+
(function(module) {
|
|
1006
|
+
if (process.env.NODE_ENV === "production") {
|
|
1007
|
+
module.exports = requireReactJsxRuntime_production_min();
|
|
1008
|
+
} else {
|
|
1009
|
+
module.exports = requireReactJsxRuntime_development();
|
|
1010
|
+
}
|
|
1011
|
+
})(jsxRuntime);
|
|
40
1012
|
var classnames = { exports: {} };
|
|
41
1013
|
/*!
|
|
42
1014
|
Copyright (c) 2018 Jed Watson.
|
|
@@ -297,9 +1269,9 @@ const styles$T = {
|
|
|
297
1269
|
expanded: expanded$2
|
|
298
1270
|
};
|
|
299
1271
|
const Chevron = ({ expanded: expanded2 }) => {
|
|
300
|
-
return expanded2 ? /* @__PURE__ */ jsx(FaChevronRight, {
|
|
1272
|
+
return expanded2 ? /* @__PURE__ */ jsxRuntime.exports.jsx(FaChevronRight, {
|
|
301
1273
|
className: cx$2(styles$T.chevron, styles$T.expanded)
|
|
302
|
-
}) : /* @__PURE__ */ jsx(FaChevronRight, {
|
|
1274
|
+
}) : /* @__PURE__ */ jsxRuntime.exports.jsx(FaChevronRight, {
|
|
303
1275
|
className: cx$2(styles$T.chevron)
|
|
304
1276
|
});
|
|
305
1277
|
};
|
|
@@ -332,8 +1304,8 @@ const AccordionManaged = ({
|
|
|
332
1304
|
testId
|
|
333
1305
|
}) => {
|
|
334
1306
|
const [expanded2, toggle2] = React__default.useState(initialExpanded);
|
|
335
|
-
return /* @__PURE__ */ jsx(Fragment
|
|
336
|
-
children: /* @__PURE__ */ jsx(Accordion, {
|
|
1307
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment, {
|
|
1308
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Accordion, {
|
|
337
1309
|
heading: heading2,
|
|
338
1310
|
bordered: bordered2,
|
|
339
1311
|
padding: padding2,
|
|
@@ -356,7 +1328,7 @@ const AccordionBase = ({
|
|
|
356
1328
|
onClick,
|
|
357
1329
|
testId
|
|
358
1330
|
}) => {
|
|
359
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
1331
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
360
1332
|
className: cx$2(
|
|
361
1333
|
styles$S.accordion,
|
|
362
1334
|
bordered2 ? styles$S.bordered : "",
|
|
@@ -364,21 +1336,21 @@ const AccordionBase = ({
|
|
|
364
1336
|
squareBottom2 ? styles$S.squareBottom : ""
|
|
365
1337
|
),
|
|
366
1338
|
children: [
|
|
367
|
-
/* @__PURE__ */ jsxs("div", {
|
|
1339
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
368
1340
|
className: cx$2(styles$S.accordionHeader, onClick ? styles$S.clickable : ""),
|
|
369
1341
|
onClick,
|
|
370
1342
|
"data-testid": testId,
|
|
371
1343
|
children: [
|
|
372
|
-
/* @__PURE__ */ jsx(Chevron, {
|
|
1344
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Chevron, {
|
|
373
1345
|
expanded: expanded2
|
|
374
1346
|
}),
|
|
375
|
-
/* @__PURE__ */ jsx("div", {
|
|
1347
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
376
1348
|
className: styles$S.heading,
|
|
377
1349
|
children: heading2
|
|
378
1350
|
})
|
|
379
1351
|
]
|
|
380
1352
|
}),
|
|
381
|
-
expanded2 && children && /* @__PURE__ */ jsx("div", {
|
|
1353
|
+
expanded2 && children && /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
382
1354
|
className: cx$2(
|
|
383
1355
|
styles$S.accordionContent,
|
|
384
1356
|
bordered2 && padding2 ? styles$S.padding : ""
|
|
@@ -398,7 +1370,7 @@ const Accordion = ({
|
|
|
398
1370
|
onClick,
|
|
399
1371
|
squareBottom: squareBottom2,
|
|
400
1372
|
testId
|
|
401
|
-
}) => managed ? /* @__PURE__ */ jsx(AccordionManaged, {
|
|
1373
|
+
}) => managed ? /* @__PURE__ */ jsxRuntime.exports.jsx(AccordionManaged, {
|
|
402
1374
|
heading: heading2,
|
|
403
1375
|
expanded: expanded2,
|
|
404
1376
|
bordered: bordered2,
|
|
@@ -407,7 +1379,7 @@ const Accordion = ({
|
|
|
407
1379
|
onClick,
|
|
408
1380
|
testId,
|
|
409
1381
|
children
|
|
410
|
-
}) : /* @__PURE__ */ jsx(AccordionBase, {
|
|
1382
|
+
}) : /* @__PURE__ */ jsxRuntime.exports.jsx(AccordionBase, {
|
|
411
1383
|
heading: heading2,
|
|
412
1384
|
expanded: expanded2,
|
|
413
1385
|
bordered: bordered2,
|
|
@@ -2448,18 +3420,18 @@ const TooltipLayer = ({
|
|
|
2448
3420
|
layerProps,
|
|
2449
3421
|
arrowProps
|
|
2450
3422
|
}) => {
|
|
2451
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
3423
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
2452
3424
|
className: cx$2(
|
|
2453
3425
|
styles$Q.tooltip,
|
|
2454
3426
|
error2 ? styles$Q.error : warning2 ? styles$Q.warning : ""
|
|
2455
3427
|
),
|
|
2456
3428
|
...layerProps,
|
|
2457
3429
|
children: [
|
|
2458
|
-
/* @__PURE__ */ jsx("div", {
|
|
3430
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
2459
3431
|
style: { maxWidth, fontSize, padding: padding2 },
|
|
2460
3432
|
children: text2
|
|
2461
3433
|
}),
|
|
2462
|
-
/* @__PURE__ */ jsx(Arrow, {
|
|
3434
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Arrow, {
|
|
2463
3435
|
...arrowProps,
|
|
2464
3436
|
size: 6
|
|
2465
3437
|
})
|
|
@@ -2536,10 +3508,10 @@ const Tooltip = ({
|
|
|
2536
3508
|
possiblePlacements,
|
|
2537
3509
|
onParentClose: forceClose
|
|
2538
3510
|
});
|
|
2539
|
-
return /* @__PURE__ */ jsxs(Fragment
|
|
3511
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
|
|
2540
3512
|
children: [
|
|
2541
3513
|
isOpen2 && renderLayer(
|
|
2542
|
-
/* @__PURE__ */ jsx(TooltipLayer, {
|
|
3514
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(TooltipLayer, {
|
|
2543
3515
|
text: text2,
|
|
2544
3516
|
error: error2,
|
|
2545
3517
|
warning: warning2,
|
|
@@ -2550,7 +3522,7 @@ const Tooltip = ({
|
|
|
2550
3522
|
arrowProps
|
|
2551
3523
|
})
|
|
2552
3524
|
),
|
|
2553
|
-
/* @__PURE__ */ jsx("span", {
|
|
3525
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
2554
3526
|
...triggerProps,
|
|
2555
3527
|
...hoverProps,
|
|
2556
3528
|
style: { display, flex },
|
|
@@ -2608,7 +3580,7 @@ const styles$P = {
|
|
|
2608
3580
|
};
|
|
2609
3581
|
const HelpIconTooltip = ({ children, text: text2, maxWidth }) => {
|
|
2610
3582
|
const show = !!text2;
|
|
2611
|
-
return show ? /* @__PURE__ */ jsx(Tooltip, {
|
|
3583
|
+
return show ? /* @__PURE__ */ jsxRuntime.exports.jsx(Tooltip, {
|
|
2612
3584
|
text: text2,
|
|
2613
3585
|
display: "inline-flex",
|
|
2614
3586
|
maxWidth,
|
|
@@ -2618,7 +3590,7 @@ const HelpIconTooltip = ({ children, text: text2, maxWidth }) => {
|
|
|
2618
3590
|
const HelpIcon = ({
|
|
2619
3591
|
text: text2,
|
|
2620
3592
|
onClick,
|
|
2621
|
-
icon: icon2 = /* @__PURE__ */ jsx(FaQuestionCircle, {}),
|
|
3593
|
+
icon: icon2 = /* @__PURE__ */ jsxRuntime.exports.jsx(FaQuestionCircle, {}),
|
|
2622
3594
|
active: active2,
|
|
2623
3595
|
maxWidth,
|
|
2624
3596
|
testId
|
|
@@ -2629,7 +3601,7 @@ const HelpIcon = ({
|
|
|
2629
3601
|
onClick();
|
|
2630
3602
|
}
|
|
2631
3603
|
};
|
|
2632
|
-
return /* @__PURE__ */ jsx("div", {
|
|
3604
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
2633
3605
|
className: cx$2(
|
|
2634
3606
|
styles$P.helpIcon,
|
|
2635
3607
|
onClick ? styles$P.clickable : "",
|
|
@@ -2637,7 +3609,7 @@ const HelpIcon = ({
|
|
|
2637
3609
|
),
|
|
2638
3610
|
onClick: onClickHelpIcon,
|
|
2639
3611
|
"data-testid": testId,
|
|
2640
|
-
children: /* @__PURE__ */ jsx(HelpIconTooltip, {
|
|
3612
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(HelpIconTooltip, {
|
|
2641
3613
|
text: text2,
|
|
2642
3614
|
maxWidth,
|
|
2643
3615
|
children: icon2
|
|
@@ -2646,7 +3618,7 @@ const HelpIcon = ({
|
|
|
2646
3618
|
};
|
|
2647
3619
|
HelpIcon.defaultProps = {
|
|
2648
3620
|
active: false,
|
|
2649
|
-
icon: /* @__PURE__ */ jsx(FaQuestionCircle, {}),
|
|
3621
|
+
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(FaQuestionCircle, {}),
|
|
2650
3622
|
maxWidth: "300px",
|
|
2651
3623
|
onClick: null,
|
|
2652
3624
|
text: null,
|
|
@@ -2679,7 +3651,7 @@ const CheckBox = ({
|
|
|
2679
3651
|
}) => {
|
|
2680
3652
|
const disabledContext = useContext(DisabledContext);
|
|
2681
3653
|
const showHelp = helpText || onClickHelp;
|
|
2682
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
3654
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
2683
3655
|
className: cx$2(
|
|
2684
3656
|
styles$R.checkbox,
|
|
2685
3657
|
noMargin2 ? styles$R.noMargin : null,
|
|
@@ -2698,7 +3670,7 @@ const CheckBox = ({
|
|
|
2698
3670
|
},
|
|
2699
3671
|
"data-testid": testId,
|
|
2700
3672
|
children: [
|
|
2701
|
-
/* @__PURE__ */ jsx("input", {
|
|
3673
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("input", {
|
|
2702
3674
|
type: "checkbox",
|
|
2703
3675
|
tabIndex,
|
|
2704
3676
|
checked,
|
|
@@ -2707,16 +3679,16 @@ const CheckBox = ({
|
|
|
2707
3679
|
},
|
|
2708
3680
|
disabled: disabled2 || disabledContext
|
|
2709
3681
|
}, key2),
|
|
2710
|
-
/* @__PURE__ */ jsxs("label", {
|
|
3682
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs("label", {
|
|
2711
3683
|
htmlFor: name2,
|
|
2712
3684
|
children: [
|
|
2713
|
-
/* @__PURE__ */ jsx(FaCheck, {
|
|
3685
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(FaCheck, {
|
|
2714
3686
|
className: styles$R.checkmark
|
|
2715
3687
|
}),
|
|
2716
3688
|
label2
|
|
2717
3689
|
]
|
|
2718
3690
|
}),
|
|
2719
|
-
showHelp && /* @__PURE__ */ jsx(HelpIcon, {
|
|
3691
|
+
showHelp && /* @__PURE__ */ jsxRuntime.exports.jsx(HelpIcon, {
|
|
2720
3692
|
text: helpText,
|
|
2721
3693
|
onClick: onClickHelp
|
|
2722
3694
|
})
|
|
@@ -2811,11 +3783,11 @@ const AccordionWithDefaultToggle = ({
|
|
|
2811
3783
|
dispatch({ type: "TOGGLE_ENABLE" });
|
|
2812
3784
|
}
|
|
2813
3785
|
}, [initialExpanded, initialDefaultEnabled]);
|
|
2814
|
-
const content2 = /* @__PURE__ */ jsxs(Fragment
|
|
3786
|
+
const content2 = /* @__PURE__ */ jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
|
|
2815
3787
|
children: [
|
|
2816
|
-
/* @__PURE__ */ jsx("div", {
|
|
3788
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
2817
3789
|
className: styles$O.checkboxWrapper,
|
|
2818
|
-
children: /* @__PURE__ */ jsx(CheckBox, {
|
|
3790
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(CheckBox, {
|
|
2819
3791
|
label: toggleLabel,
|
|
2820
3792
|
onChange: (evt) => {
|
|
2821
3793
|
dispatch({ type: "TOGGLE_ENABLE" });
|
|
@@ -2826,22 +3798,22 @@ const AccordionWithDefaultToggle = ({
|
|
|
2826
3798
|
checked: state.defaultEnabled
|
|
2827
3799
|
})
|
|
2828
3800
|
}),
|
|
2829
|
-
state.accordionExpanded && /* @__PURE__ */ jsx("div", {
|
|
3801
|
+
state.accordionExpanded && /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
2830
3802
|
className: styles$O.contentWrapper,
|
|
2831
3803
|
children
|
|
2832
3804
|
})
|
|
2833
3805
|
]
|
|
2834
3806
|
});
|
|
2835
|
-
return /* @__PURE__ */ jsxs(Fragment
|
|
3807
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
|
|
2836
3808
|
children: [
|
|
2837
|
-
/* @__PURE__ */ jsx(Accordion, {
|
|
3809
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Accordion, {
|
|
2838
3810
|
heading: heading2,
|
|
2839
3811
|
bordered: true,
|
|
2840
3812
|
expanded: state.accordionExpanded,
|
|
2841
3813
|
squareBottom: true,
|
|
2842
3814
|
onClick: () => dispatch({ type: "TOGGLE_ACCORDION" })
|
|
2843
3815
|
}),
|
|
2844
|
-
/* @__PURE__ */ jsx("div", {
|
|
3816
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
2845
3817
|
className: cx$2(styles$O.bordered, padding2 ? styles$O.padding : ""),
|
|
2846
3818
|
children: content2
|
|
2847
3819
|
})
|
|
@@ -8931,67 +9903,67 @@ ReactSVG.propTypes = {
|
|
|
8931
9903
|
const DeprecatedIcon = ({ icon: icon2 }) => {
|
|
8932
9904
|
switch (icon2) {
|
|
8933
9905
|
case "arrow down":
|
|
8934
|
-
return /* @__PURE__ */ jsx(FaArrowDown, {});
|
|
9906
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaArrowDown, {});
|
|
8935
9907
|
case "arrow left":
|
|
8936
|
-
return /* @__PURE__ */ jsx(FaArrowLeft, {});
|
|
9908
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaArrowLeft, {});
|
|
8937
9909
|
case "arrow right":
|
|
8938
|
-
return /* @__PURE__ */ jsx(FaArrowRight, {});
|
|
9910
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaArrowRight, {});
|
|
8939
9911
|
case "arrow up":
|
|
8940
|
-
return /* @__PURE__ */ jsx(FaArrowUp, {});
|
|
9912
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaArrowUp, {});
|
|
8941
9913
|
case "chart line":
|
|
8942
|
-
return /* @__PURE__ */ jsx(FaChartLine, {});
|
|
9914
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaChartLine, {});
|
|
8943
9915
|
case "check":
|
|
8944
9916
|
case "checkmark":
|
|
8945
|
-
return /* @__PURE__ */ jsx(FaCheck, {});
|
|
9917
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaCheck, {});
|
|
8946
9918
|
case "close":
|
|
8947
9919
|
case "times":
|
|
8948
|
-
return /* @__PURE__ */ jsx(FaTimes, {});
|
|
9920
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaTimes, {});
|
|
8949
9921
|
case "question":
|
|
8950
|
-
return /* @__PURE__ */ jsx(FaQuestion, {});
|
|
9922
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaQuestion, {});
|
|
8951
9923
|
case "sort amount down":
|
|
8952
|
-
return /* @__PURE__ */ jsx(FaSortAmountDown, {});
|
|
9924
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaSortAmountDown, {});
|
|
8953
9925
|
case "table":
|
|
8954
|
-
return /* @__PURE__ */ jsx(FaTable, {});
|
|
9926
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaTable, {});
|
|
8955
9927
|
case "trash":
|
|
8956
|
-
return /* @__PURE__ */ jsx(FaTrash, {});
|
|
9928
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaTrash, {});
|
|
8957
9929
|
case "minus":
|
|
8958
|
-
return /* @__PURE__ */ jsx(FaMinus, {});
|
|
9930
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaMinus, {});
|
|
8959
9931
|
case "add":
|
|
8960
9932
|
case "plus":
|
|
8961
|
-
return /* @__PURE__ */ jsx(FaPlus, {});
|
|
9933
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaPlus, {});
|
|
8962
9934
|
case "pencil":
|
|
8963
|
-
return /* @__PURE__ */ jsx(FaPencilAlt, {});
|
|
9935
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaPencilAlt, {});
|
|
8964
9936
|
case "edit":
|
|
8965
9937
|
case "edit outline":
|
|
8966
|
-
return /* @__PURE__ */ jsx(FaEdit, {});
|
|
9938
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaEdit, {});
|
|
8967
9939
|
case "chevron up":
|
|
8968
|
-
return /* @__PURE__ */ jsx(FaChevronUp, {});
|
|
9940
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaChevronUp, {});
|
|
8969
9941
|
case "chevron down":
|
|
8970
|
-
return /* @__PURE__ */ jsx(FaChevronDown, {});
|
|
9942
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaChevronDown, {});
|
|
8971
9943
|
case "undo":
|
|
8972
|
-
return /* @__PURE__ */ jsx(FaUndo, {});
|
|
9944
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaUndo, {});
|
|
8973
9945
|
case "eye":
|
|
8974
|
-
return /* @__PURE__ */ jsx(FaEye, {});
|
|
9946
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaEye, {});
|
|
8975
9947
|
case "eye slash":
|
|
8976
|
-
return /* @__PURE__ */ jsx(FaEyeSlash, {});
|
|
9948
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaEyeSlash, {});
|
|
8977
9949
|
case "star":
|
|
8978
|
-
return /* @__PURE__ */ jsx(FaStar, {});
|
|
9950
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaStar, {});
|
|
8979
9951
|
case "clone":
|
|
8980
9952
|
case "orange clone":
|
|
8981
|
-
return /* @__PURE__ */ jsx(FaClone, {});
|
|
9953
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaClone, {});
|
|
8982
9954
|
case "sort amount up":
|
|
8983
|
-
return /* @__PURE__ */ jsx(FaSortAmountUp, {});
|
|
9955
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaSortAmountUp, {});
|
|
8984
9956
|
case "copy":
|
|
8985
9957
|
case "copy outline":
|
|
8986
|
-
return /* @__PURE__ */ jsx(FaRegCopy, {});
|
|
9958
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaRegCopy, {});
|
|
8987
9959
|
case "vertically flipped reply":
|
|
8988
|
-
return /* @__PURE__ */ jsx(FaFileImport, {});
|
|
9960
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaFileImport, {});
|
|
8989
9961
|
case "refresh":
|
|
8990
|
-
return /* @__PURE__ */ jsx(FaSync, {});
|
|
9962
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaSync, {});
|
|
8991
9963
|
case "":
|
|
8992
9964
|
return null;
|
|
8993
9965
|
default:
|
|
8994
|
-
return /* @__PURE__ */ jsx(FaRegCircle, {});
|
|
9966
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaRegCircle, {});
|
|
8995
9967
|
}
|
|
8996
9968
|
};
|
|
8997
9969
|
const wrapper$5 = "_wrapper_xr2gg_333";
|
|
@@ -9006,7 +9978,7 @@ const styles$N = {
|
|
|
9006
9978
|
};
|
|
9007
9979
|
const Icon = ({ icon: icon2, onClick, clickable: clickable2, color: color2, size: size2, testId }) => {
|
|
9008
9980
|
const disabledContext = useContext(DisabledContext);
|
|
9009
|
-
return /* @__PURE__ */ jsx("div", {
|
|
9981
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
9010
9982
|
className: cx$2(
|
|
9011
9983
|
styles$N.wrapper,
|
|
9012
9984
|
(clickable2 || onClick) && !disabledContext ? styles$N.clickable : ""
|
|
@@ -9020,7 +9992,7 @@ const Icon = ({ icon: icon2, onClick, clickable: clickable2, color: color2, size
|
|
|
9020
9992
|
},
|
|
9021
9993
|
onClick: (evt) => onClick && !disabledContext ? onClick(evt) : {},
|
|
9022
9994
|
"data-testid": testId,
|
|
9023
|
-
children: isValidElement(icon2) ? icon2 : typeof icon2 === "string" && (icon2.includes(".svg") || icon2.includes("image/svg")) ? /* @__PURE__ */ jsx(ReactSVG, {
|
|
9995
|
+
children: isValidElement(icon2) ? icon2 : typeof icon2 === "string" && (icon2.includes(".svg") || icon2.includes("image/svg")) ? /* @__PURE__ */ jsxRuntime.exports.jsx(ReactSVG, {
|
|
9024
9996
|
className: styles$N.customSvg,
|
|
9025
9997
|
beforeInjection: (svg) => {
|
|
9026
9998
|
if (size2) {
|
|
@@ -9029,11 +10001,11 @@ const Icon = ({ icon: icon2, onClick, clickable: clickable2, color: color2, size
|
|
|
9029
10001
|
}
|
|
9030
10002
|
},
|
|
9031
10003
|
src: icon2
|
|
9032
|
-
}) : typeof icon2 === "string" && (icon2.includes(".png") || icon2.includes("image/png")) ? /* @__PURE__ */ jsx("img", {
|
|
10004
|
+
}) : typeof icon2 === "string" && (icon2.includes(".png") || icon2.includes("image/png")) ? /* @__PURE__ */ jsxRuntime.exports.jsx("img", {
|
|
9033
10005
|
alt: "icon",
|
|
9034
10006
|
className: styles$N.customPng,
|
|
9035
10007
|
src: icon2
|
|
9036
|
-
}) : typeof icon2 === "string" ? /* @__PURE__ */ jsx(DeprecatedIcon, {
|
|
10008
|
+
}) : typeof icon2 === "string" ? /* @__PURE__ */ jsxRuntime.exports.jsx(DeprecatedIcon, {
|
|
9037
10009
|
icon: icon2
|
|
9038
10010
|
}) : null
|
|
9039
10011
|
});
|
|
@@ -9110,20 +10082,20 @@ const styles$M = {
|
|
|
9110
10082
|
right: right$7,
|
|
9111
10083
|
actions: actions$2
|
|
9112
10084
|
};
|
|
9113
|
-
const Heading$3 = ({ label: label2, onClick, icon: icon2, testId }) => /* @__PURE__ */ jsxs("div", {
|
|
10085
|
+
const Heading$3 = ({ label: label2, onClick, icon: icon2, testId }) => /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
9114
10086
|
onClick: (evt) => evt.stopPropagation(),
|
|
9115
10087
|
className: styles$M.heading,
|
|
9116
10088
|
"data-testid": testId,
|
|
9117
10089
|
children: [
|
|
9118
10090
|
label2,
|
|
9119
|
-
/* @__PURE__ */ jsx("span", {
|
|
10091
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
9120
10092
|
className: styles$M.headingIcon,
|
|
9121
10093
|
onClick,
|
|
9122
10094
|
children: icon2
|
|
9123
10095
|
})
|
|
9124
10096
|
]
|
|
9125
10097
|
});
|
|
9126
|
-
const Divider$1 = () => /* @__PURE__ */ jsx("hr", {
|
|
10098
|
+
const Divider$1 = () => /* @__PURE__ */ jsxRuntime.exports.jsx("hr", {
|
|
9127
10099
|
className: styles$M.divider
|
|
9128
10100
|
});
|
|
9129
10101
|
const Option$2 = ({
|
|
@@ -9143,7 +10115,7 @@ const Option$2 = ({
|
|
|
9143
10115
|
onChange,
|
|
9144
10116
|
testId
|
|
9145
10117
|
}) => {
|
|
9146
|
-
return /* @__PURE__ */ jsxs("a", {
|
|
10118
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("a", {
|
|
9147
10119
|
href: url,
|
|
9148
10120
|
className: cx$2(
|
|
9149
10121
|
styles$M.option,
|
|
@@ -9164,17 +10136,17 @@ const Option$2 = ({
|
|
|
9164
10136
|
},
|
|
9165
10137
|
"data-testid": testId,
|
|
9166
10138
|
children: [
|
|
9167
|
-
icon2 ? /* @__PURE__ */ jsx("span", {
|
|
10139
|
+
icon2 ? /* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
9168
10140
|
className: styles$M.icon,
|
|
9169
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
|
10141
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Icon, {
|
|
9170
10142
|
icon: icon2,
|
|
9171
10143
|
size: 14
|
|
9172
10144
|
})
|
|
9173
10145
|
}) : null,
|
|
9174
|
-
/* @__PURE__ */ jsxs("div", {
|
|
10146
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
9175
10147
|
className: styles$M.optionContent,
|
|
9176
10148
|
children: [
|
|
9177
|
-
upload && /* @__PURE__ */ jsx("input", {
|
|
10149
|
+
upload && /* @__PURE__ */ jsxRuntime.exports.jsx("input", {
|
|
9178
10150
|
type: "file",
|
|
9179
10151
|
className: styles$M.fileInput,
|
|
9180
10152
|
onChange: (evt) => {
|
|
@@ -9182,21 +10154,21 @@ const Option$2 = ({
|
|
|
9182
10154
|
close2();
|
|
9183
10155
|
}
|
|
9184
10156
|
}),
|
|
9185
|
-
/* @__PURE__ */ jsx("span", {
|
|
10157
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
9186
10158
|
className: styles$M.label,
|
|
9187
10159
|
title: title2 || label2,
|
|
9188
10160
|
children: label2
|
|
9189
10161
|
}),
|
|
9190
|
-
/* @__PURE__ */ jsxs("div", {
|
|
10162
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
9191
10163
|
className: styles$M.right,
|
|
9192
10164
|
children: [
|
|
9193
|
-
/* @__PURE__ */ jsx("span", {
|
|
10165
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
9194
10166
|
className: styles$M.description,
|
|
9195
10167
|
children: description2
|
|
9196
10168
|
}),
|
|
9197
|
-
!!(actions2 == null ? void 0 : actions2.length) && /* @__PURE__ */ jsx("div", {
|
|
10169
|
+
!!(actions2 == null ? void 0 : actions2.length) && /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
9198
10170
|
className: styles$M.actions,
|
|
9199
|
-
children: /* @__PURE__ */ jsx(Actions, {
|
|
10171
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Actions, {
|
|
9200
10172
|
actions: actions2,
|
|
9201
10173
|
right: true
|
|
9202
10174
|
})
|
|
@@ -9219,16 +10191,16 @@ const Section$1 = ({
|
|
|
9219
10191
|
const disabledContext = useContext(DisabledContext);
|
|
9220
10192
|
switch (section.type) {
|
|
9221
10193
|
case "Heading":
|
|
9222
|
-
return /* @__PURE__ */ jsx(Heading$3, {
|
|
10194
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Heading$3, {
|
|
9223
10195
|
label: section.label,
|
|
9224
10196
|
onClick: section.onClick,
|
|
9225
10197
|
icon: section.icon,
|
|
9226
10198
|
testId: section.testId
|
|
9227
10199
|
});
|
|
9228
10200
|
case "Divider":
|
|
9229
|
-
return /* @__PURE__ */ jsx(Divider$1, {});
|
|
10201
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Divider$1, {});
|
|
9230
10202
|
case "Option":
|
|
9231
|
-
return /* @__PURE__ */ jsx(Option$2, {
|
|
10203
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Option$2, {
|
|
9232
10204
|
actions: section.actions,
|
|
9233
10205
|
label: section.label,
|
|
9234
10206
|
url: section.url,
|
|
@@ -9246,7 +10218,7 @@ const Section$1 = ({
|
|
|
9246
10218
|
testId: section.testId
|
|
9247
10219
|
});
|
|
9248
10220
|
case "Menu":
|
|
9249
|
-
return /* @__PURE__ */ jsx(DropDownMenu, {
|
|
10221
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(DropDownMenu, {
|
|
9250
10222
|
menu: section.menu,
|
|
9251
10223
|
title: section.title,
|
|
9252
10224
|
closeOnOptionClick,
|
|
@@ -9280,7 +10252,7 @@ const Layer$2 = ({
|
|
|
9280
10252
|
}) => {
|
|
9281
10253
|
var _a, _b;
|
|
9282
10254
|
if (isValidElement(sections)) {
|
|
9283
|
-
return /* @__PURE__ */ jsx(Fragment
|
|
10255
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment, {
|
|
9284
10256
|
children: sections
|
|
9285
10257
|
});
|
|
9286
10258
|
}
|
|
@@ -9306,13 +10278,13 @@ const Layer$2 = ({
|
|
|
9306
10278
|
},
|
|
9307
10279
|
additionalSections
|
|
9308
10280
|
).filter((s) => s == null ? void 0 : s.visible) : sections.map((s) => ({ ...s, closeOnOptionClick }));
|
|
9309
|
-
return /* @__PURE__ */ jsx("div", {
|
|
10281
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
9310
10282
|
className: cx$2(styles$M.layer, isNested ? styles$M.nested : null),
|
|
9311
10283
|
style: { maxWidth: width, maxHeight: maxHeight2 },
|
|
9312
10284
|
"data-testid": testId,
|
|
9313
|
-
children: /* @__PURE__ */ jsx("ul", {
|
|
9314
|
-
children: localSections.map((section, i) => /* @__PURE__ */ jsx("li", {
|
|
9315
|
-
children: /* @__PURE__ */ jsx(Section$1, {
|
|
10285
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("ul", {
|
|
10286
|
+
children: localSections.map((section, i) => /* @__PURE__ */ jsxRuntime.exports.jsx("li", {
|
|
10287
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Section$1, {
|
|
9316
10288
|
section,
|
|
9317
10289
|
closeOnOptionClick: section.closeOnOptionClick,
|
|
9318
10290
|
close: close2,
|
|
@@ -9359,10 +10331,10 @@ const isDark = (hexColor) => {
|
|
|
9359
10331
|
};
|
|
9360
10332
|
const Badge = ({ children, color: color2, title: title2, dot: dot2, margin: margin2, small: small2 }) => {
|
|
9361
10333
|
const visible = !(title2 === null && dot2 === null);
|
|
9362
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
10334
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
9363
10335
|
className: styles$L.wrapper,
|
|
9364
10336
|
children: [
|
|
9365
|
-
visible && /* @__PURE__ */ jsx("sup", {
|
|
10337
|
+
visible && /* @__PURE__ */ jsxRuntime.exports.jsx("sup", {
|
|
9366
10338
|
className: cx$2(
|
|
9367
10339
|
styles$L.badge,
|
|
9368
10340
|
isDark(color2) ? styles$L.dark : styles$L.light,
|
|
@@ -9442,7 +10414,7 @@ const styles$K = {
|
|
|
9442
10414
|
dark
|
|
9443
10415
|
};
|
|
9444
10416
|
const Spinner$1 = ({ small: small2, colored: colored2, dark: dark2, tiny: tiny2 }) => {
|
|
9445
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
10417
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
9446
10418
|
className: cx$2(
|
|
9447
10419
|
styles$K.spinner,
|
|
9448
10420
|
small2 ? styles$K.small : "",
|
|
@@ -9451,10 +10423,10 @@ const Spinner$1 = ({ small: small2, colored: colored2, dark: dark2, tiny: tiny2
|
|
|
9451
10423
|
colored2 ? styles$K.colored : ""
|
|
9452
10424
|
),
|
|
9453
10425
|
children: [
|
|
9454
|
-
/* @__PURE__ */ jsx("div", {}),
|
|
9455
|
-
/* @__PURE__ */ jsx("div", {}),
|
|
9456
|
-
/* @__PURE__ */ jsx("div", {}),
|
|
9457
|
-
/* @__PURE__ */ jsx("div", {})
|
|
10426
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {}),
|
|
10427
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {}),
|
|
10428
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {}),
|
|
10429
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {})
|
|
9458
10430
|
]
|
|
9459
10431
|
});
|
|
9460
10432
|
};
|
|
@@ -9522,7 +10494,7 @@ const Button$1 = ({
|
|
|
9522
10494
|
}
|
|
9523
10495
|
return "";
|
|
9524
10496
|
})();
|
|
9525
|
-
return /* @__PURE__ */ jsxs("button", {
|
|
10497
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("button", {
|
|
9526
10498
|
type: type === "submit" ? "submit" : "button",
|
|
9527
10499
|
className: cx$2(
|
|
9528
10500
|
buttonStyles.button,
|
|
@@ -9545,15 +10517,15 @@ const Button$1 = ({
|
|
|
9545
10517
|
style: { width },
|
|
9546
10518
|
"data-testid": testId,
|
|
9547
10519
|
children: [
|
|
9548
|
-
icon2 && /* @__PURE__ */ jsx("span", {
|
|
10520
|
+
icon2 && /* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
9549
10521
|
className: buttonStyles.icon,
|
|
9550
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
|
10522
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Icon, {
|
|
9551
10523
|
icon: icon2
|
|
9552
10524
|
})
|
|
9553
10525
|
}),
|
|
9554
|
-
loading && /* @__PURE__ */ jsx("span", {
|
|
10526
|
+
loading && /* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
9555
10527
|
className: buttonStyles.icon,
|
|
9556
|
-
children: /* @__PURE__ */ jsx(Spinner$1, {
|
|
10528
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Spinner$1, {
|
|
9557
10529
|
small: !small2,
|
|
9558
10530
|
tiny: small2,
|
|
9559
10531
|
dark: !colored2 && !basic2,
|
|
@@ -9621,25 +10593,25 @@ const Button = ({
|
|
|
9621
10593
|
loading
|
|
9622
10594
|
}) => {
|
|
9623
10595
|
const disabledContext = useContext(DisabledContext);
|
|
9624
|
-
const buttonLabel2 = trigger2 === "Button" ? label2 : trigger2 === "DropDownButton" ? /* @__PURE__ */ jsxs("span", {
|
|
10596
|
+
const buttonLabel2 = trigger2 === "Button" ? label2 : trigger2 === "DropDownButton" ? /* @__PURE__ */ jsxRuntime.exports.jsxs("span", {
|
|
9625
10597
|
className: styles$M.middleAlignedInline,
|
|
9626
10598
|
children: [
|
|
9627
|
-
/* @__PURE__ */ jsx("span", {
|
|
10599
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
9628
10600
|
className: styles$M.buttonLabel,
|
|
9629
10601
|
children: label2
|
|
9630
10602
|
}),
|
|
9631
|
-
/* @__PURE__ */ jsx(FaAngleDown, {
|
|
10603
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(FaAngleDown, {
|
|
9632
10604
|
className: styles$M.buttonCaret
|
|
9633
10605
|
})
|
|
9634
10606
|
]
|
|
9635
10607
|
}) : null;
|
|
9636
|
-
return /* @__PURE__ */ jsx("div", {
|
|
10608
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
9637
10609
|
className: cx$2(
|
|
9638
10610
|
styles$M.trigger,
|
|
9639
10611
|
disabled2 || disabledContext ? styles$M.disabled : null
|
|
9640
10612
|
),
|
|
9641
10613
|
style: { width },
|
|
9642
|
-
children: /* @__PURE__ */ jsx(Button$1, {
|
|
10614
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
|
|
9643
10615
|
label: buttonLabel2,
|
|
9644
10616
|
colored: colored2,
|
|
9645
10617
|
small: small2,
|
|
@@ -9653,28 +10625,28 @@ const Button = ({
|
|
|
9653
10625
|
});
|
|
9654
10626
|
};
|
|
9655
10627
|
const Text$1 = ({ label: label2, title: title2, carat, disabled: disabled2, isOpen: isOpen2 }) => {
|
|
9656
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
10628
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
9657
10629
|
className: cx$2(
|
|
9658
10630
|
styles$M.trigger,
|
|
9659
10631
|
disabled2 ? styles$M.disabled : null,
|
|
9660
10632
|
isOpen2 ? styles$M.active : null
|
|
9661
10633
|
),
|
|
9662
10634
|
children: [
|
|
9663
|
-
/* @__PURE__ */ jsx("span", {
|
|
10635
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
9664
10636
|
className: styles$M.label,
|
|
9665
10637
|
title: title2 || label2,
|
|
9666
10638
|
children: label2
|
|
9667
10639
|
}),
|
|
9668
|
-
carat && carat === "right" ? /* @__PURE__ */ jsx(FaAngleRight, {
|
|
10640
|
+
carat && carat === "right" ? /* @__PURE__ */ jsxRuntime.exports.jsx(FaAngleRight, {
|
|
9669
10641
|
className: styles$M.arrow
|
|
9670
|
-
}) : carat && carat === "down" ? /* @__PURE__ */ jsx(FaAngleDown, {
|
|
10642
|
+
}) : carat && carat === "down" ? /* @__PURE__ */ jsxRuntime.exports.jsx(FaAngleDown, {
|
|
9671
10643
|
className: styles$M.arrow
|
|
9672
10644
|
}) : null
|
|
9673
10645
|
]
|
|
9674
10646
|
});
|
|
9675
10647
|
};
|
|
9676
10648
|
const Component = ({ component: component2, disabled: disabled2, testId }) => {
|
|
9677
|
-
return /* @__PURE__ */ jsx("div", {
|
|
10649
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
9678
10650
|
className: cx$2(styles$M.component, disabled2 ? styles$M.disabled : null),
|
|
9679
10651
|
"data-testid": testId,
|
|
9680
10652
|
children: component2
|
|
@@ -9701,7 +10673,7 @@ const Trigger$1 = React__default.forwardRef(
|
|
|
9701
10673
|
isOpen: isOpen2,
|
|
9702
10674
|
testId
|
|
9703
10675
|
}, ref2) => {
|
|
9704
|
-
const triggerElement = trigger2 === "Button" || trigger2 === "DropDownButton" ? /* @__PURE__ */ jsx(Button, {
|
|
10676
|
+
const triggerElement = trigger2 === "Button" || trigger2 === "DropDownButton" ? /* @__PURE__ */ jsxRuntime.exports.jsx(Button, {
|
|
9705
10677
|
trigger: trigger2,
|
|
9706
10678
|
label: label2,
|
|
9707
10679
|
colored: colored2,
|
|
@@ -9710,23 +10682,23 @@ const Trigger$1 = React__default.forwardRef(
|
|
|
9710
10682
|
disabled: isDisabled,
|
|
9711
10683
|
groupOrder,
|
|
9712
10684
|
loading
|
|
9713
|
-
}) : trigger2 === "Text" ? /* @__PURE__ */ jsx(Text$1, {
|
|
10685
|
+
}) : trigger2 === "Text" ? /* @__PURE__ */ jsxRuntime.exports.jsx(Text$1, {
|
|
9714
10686
|
label: label2,
|
|
9715
10687
|
title: title2,
|
|
9716
10688
|
disabled: isDisabled,
|
|
9717
10689
|
carat: !contextMenu && (isNested ? "right" : "down"),
|
|
9718
10690
|
isOpen: isOpen2
|
|
9719
|
-
}) : trigger2 === "Component" ? /* @__PURE__ */ jsx(Component, {
|
|
10691
|
+
}) : trigger2 === "Component" ? /* @__PURE__ */ jsxRuntime.exports.jsx(Component, {
|
|
9720
10692
|
component: component2,
|
|
9721
10693
|
disabled: isDisabled
|
|
9722
10694
|
}) : null;
|
|
9723
|
-
const wrappedTrigger = !isNested && (badgeTitle || badgeDot) ? /* @__PURE__ */ jsx(Badge, {
|
|
10695
|
+
const wrappedTrigger = !isNested && (badgeTitle || badgeDot) ? /* @__PURE__ */ jsxRuntime.exports.jsx(Badge, {
|
|
9724
10696
|
title: badgeTitle,
|
|
9725
10697
|
dot: badgeDot,
|
|
9726
10698
|
small: !badgeDot,
|
|
9727
10699
|
children: triggerElement
|
|
9728
10700
|
}) : triggerElement;
|
|
9729
|
-
return /* @__PURE__ */ jsx("div", {
|
|
10701
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
9730
10702
|
ref: ref2,
|
|
9731
10703
|
className: styles$M.wrapper,
|
|
9732
10704
|
style: width ? { width } : {
|
|
@@ -9788,9 +10760,9 @@ const useContextMenu = (sections, width, placement, possiblePlacements, closeOnO
|
|
|
9788
10760
|
testId
|
|
9789
10761
|
});
|
|
9790
10762
|
const layer2 = isOpen2 && renderLayer(
|
|
9791
|
-
/* @__PURE__ */ jsx("div", {
|
|
10763
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
9792
10764
|
...layerProps,
|
|
9793
|
-
children: /* @__PURE__ */ jsx(Layer$2, {
|
|
10765
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Layer$2, {
|
|
9794
10766
|
isNested: false,
|
|
9795
10767
|
width,
|
|
9796
10768
|
sections,
|
|
@@ -9839,11 +10811,11 @@ const ContextMenu = ({
|
|
|
9839
10811
|
path
|
|
9840
10812
|
);
|
|
9841
10813
|
const isDisabled = disabled2 || isMenuEmpty(menu2) || disabledContext;
|
|
9842
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
10814
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
9843
10815
|
onContextMenu,
|
|
9844
10816
|
"data-testid": testId,
|
|
9845
10817
|
children: [
|
|
9846
|
-
/* @__PURE__ */ jsx(Trigger$1, {
|
|
10818
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Trigger$1, {
|
|
9847
10819
|
width,
|
|
9848
10820
|
fullHeight: fullHeightTrigger,
|
|
9849
10821
|
isDisabled,
|
|
@@ -9924,9 +10896,9 @@ const DropDownMenu = ({
|
|
|
9924
10896
|
});
|
|
9925
10897
|
open();
|
|
9926
10898
|
};
|
|
9927
|
-
return /* @__PURE__ */ jsxs(Fragment
|
|
10899
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
|
|
9928
10900
|
children: [
|
|
9929
|
-
/* @__PURE__ */ jsx(Trigger$1, {
|
|
10901
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Trigger$1, {
|
|
9930
10902
|
ref: triggerProps.ref,
|
|
9931
10903
|
isDisabled,
|
|
9932
10904
|
badgeTitle,
|
|
@@ -9947,12 +10919,12 @@ const DropDownMenu = ({
|
|
|
9947
10919
|
testId
|
|
9948
10920
|
}),
|
|
9949
10921
|
isOpen2 && renderLayer(
|
|
9950
|
-
/* @__PURE__ */ jsx("div", {
|
|
10922
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
9951
10923
|
...layerProps,
|
|
9952
10924
|
className: styles$M.layerContainer,
|
|
9953
10925
|
"data-testid": menu2.testId,
|
|
9954
10926
|
onClick: (evt) => evt.stopPropagation(),
|
|
9955
|
-
children: /* @__PURE__ */ jsx(Layer$2, {
|
|
10927
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Layer$2, {
|
|
9956
10928
|
sections,
|
|
9957
10929
|
isNested,
|
|
9958
10930
|
width,
|
|
@@ -9971,12 +10943,12 @@ const DropDownMenu = ({
|
|
|
9971
10943
|
});
|
|
9972
10944
|
};
|
|
9973
10945
|
const Menu = (props) => {
|
|
9974
|
-
return props.contextMenu ? /* @__PURE__ */ jsx(ContextMenu, {
|
|
10946
|
+
return props.contextMenu ? /* @__PURE__ */ jsxRuntime.exports.jsx(ContextMenu, {
|
|
9975
10947
|
...props,
|
|
9976
10948
|
tree: {},
|
|
9977
10949
|
path: "",
|
|
9978
10950
|
testId: props.testId
|
|
9979
|
-
}) : /* @__PURE__ */ jsx(DropDownMenu, {
|
|
10951
|
+
}) : /* @__PURE__ */ jsxRuntime.exports.jsx(DropDownMenu, {
|
|
9980
10952
|
...props,
|
|
9981
10953
|
tree: {},
|
|
9982
10954
|
path: "",
|
|
@@ -10080,14 +11052,14 @@ const styles$J = {
|
|
|
10080
11052
|
};
|
|
10081
11053
|
const SubmenuActions = (props) => {
|
|
10082
11054
|
const { actions: actions2, subMenuIcon, primary: primary2, testId } = props;
|
|
10083
|
-
const menuButton = /* @__PURE__ */ jsx(Button$1, {
|
|
11055
|
+
const menuButton = /* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
|
|
10084
11056
|
colored: primary2 ? true : "muted",
|
|
10085
11057
|
basic: !primary2,
|
|
10086
11058
|
round: true,
|
|
10087
11059
|
small: true,
|
|
10088
|
-
icon: subMenuIcon ? /* @__PURE__ */ jsx(Icon, {
|
|
11060
|
+
icon: subMenuIcon ? /* @__PURE__ */ jsxRuntime.exports.jsx(Icon, {
|
|
10089
11061
|
icon: subMenuIcon
|
|
10090
|
-
}) : /* @__PURE__ */ jsx(FaEllipsisV, {}),
|
|
11062
|
+
}) : /* @__PURE__ */ jsxRuntime.exports.jsx(FaEllipsisV, {}),
|
|
10091
11063
|
testId
|
|
10092
11064
|
});
|
|
10093
11065
|
if (actions2.length) {
|
|
@@ -10111,7 +11083,7 @@ const SubmenuActions = (props) => {
|
|
|
10111
11083
|
};
|
|
10112
11084
|
})
|
|
10113
11085
|
};
|
|
10114
|
-
return /* @__PURE__ */ jsx(Menu, {
|
|
11086
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Menu, {
|
|
10115
11087
|
menu: subMenu
|
|
10116
11088
|
});
|
|
10117
11089
|
}
|
|
@@ -10120,18 +11092,18 @@ const SubmenuActions = (props) => {
|
|
|
10120
11092
|
const Actions = (props) => {
|
|
10121
11093
|
const disabledContext = useContext(DisabledContext);
|
|
10122
11094
|
const { actions: actions2, right: right2, closeLayer } = props;
|
|
10123
|
-
return /* @__PURE__ */ jsx("div", {
|
|
11095
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
10124
11096
|
className: cx$2(styles$J.actions),
|
|
10125
11097
|
children: actions2.map((action2, index2) => {
|
|
10126
11098
|
const hidden2 = (action2 == null ? void 0 : action2.hidden) || !action2 || !Object.keys(action2).length;
|
|
10127
11099
|
if (!hidden2) {
|
|
10128
11100
|
if (action2.childComponent && React__default.isValidElement(action2.childComponent)) {
|
|
10129
|
-
return /* @__PURE__ */ jsx("div", {
|
|
11101
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
10130
11102
|
"data-testid": action2.testId,
|
|
10131
11103
|
children: action2.childComponent
|
|
10132
11104
|
}, index2);
|
|
10133
11105
|
} else if (action2.subActions) {
|
|
10134
|
-
return /* @__PURE__ */ jsx(SubmenuActions, {
|
|
11106
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(SubmenuActions, {
|
|
10135
11107
|
actions: action2.subActions,
|
|
10136
11108
|
primary: action2.primary,
|
|
10137
11109
|
subMenuIcon: action2.icon,
|
|
@@ -10139,14 +11111,14 @@ const Actions = (props) => {
|
|
|
10139
11111
|
right: right2
|
|
10140
11112
|
}, index2);
|
|
10141
11113
|
} else {
|
|
10142
|
-
return /* @__PURE__ */ jsx(Button$1, {
|
|
11114
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
|
|
10143
11115
|
colored: action2.primary ? true : "muted",
|
|
10144
11116
|
round: true,
|
|
10145
11117
|
basic: !action2.primary,
|
|
10146
11118
|
disabled: action2.disabled,
|
|
10147
11119
|
small: true,
|
|
10148
11120
|
name: action2.label,
|
|
10149
|
-
icon: action2.icon ? /* @__PURE__ */ jsx(Icon, {
|
|
11121
|
+
icon: action2.icon ? /* @__PURE__ */ jsxRuntime.exports.jsx(Icon, {
|
|
10150
11122
|
icon: action2.icon
|
|
10151
11123
|
}) : null,
|
|
10152
11124
|
onClick: (evt) => {
|
|
@@ -10200,28 +11172,28 @@ const Link$2 = ({
|
|
|
10200
11172
|
const disabledContext = useContext(DisabledContext);
|
|
10201
11173
|
const isLink = type === "link" && url !== void 0;
|
|
10202
11174
|
const isCustom = type === "custom" && isValidElement(element);
|
|
10203
|
-
return /* @__PURE__ */ jsx("span", {
|
|
11175
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
10204
11176
|
onClick,
|
|
10205
11177
|
className: cx$2(
|
|
10206
11178
|
styles$I.labelContainer,
|
|
10207
11179
|
active2 && styles$I.active,
|
|
10208
11180
|
(disabled2 || disabledContext) && styles$I.disabled
|
|
10209
11181
|
),
|
|
10210
|
-
children: isLink ? /* @__PURE__ */ jsx("a", {
|
|
11182
|
+
children: isLink ? /* @__PURE__ */ jsxRuntime.exports.jsx("a", {
|
|
10211
11183
|
href: url,
|
|
10212
11184
|
children: label2
|
|
10213
11185
|
}) : isCustom ? element : label2
|
|
10214
11186
|
});
|
|
10215
11187
|
};
|
|
10216
11188
|
const Breadcrumb = ({ links, small: small2 }) => {
|
|
10217
|
-
return /* @__PURE__ */ jsx("div", {
|
|
11189
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
10218
11190
|
className: cx$2(styles$I.breadcrumb, small2 && styles$I.small),
|
|
10219
11191
|
children: links.map((link2, i) => {
|
|
10220
11192
|
const isFinal = links.length === i + 1;
|
|
10221
11193
|
const { type, label: label2, url, onClick, active: active2, disabled: disabled2, element } = link2;
|
|
10222
|
-
return /* @__PURE__ */ jsxs("span", {
|
|
11194
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("span", {
|
|
10223
11195
|
children: [
|
|
10224
|
-
/* @__PURE__ */ jsx(Link$2, {
|
|
11196
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Link$2, {
|
|
10225
11197
|
type,
|
|
10226
11198
|
label: label2,
|
|
10227
11199
|
url,
|
|
@@ -10230,7 +11202,7 @@ const Breadcrumb = ({ links, small: small2 }) => {
|
|
|
10230
11202
|
disabled: disabled2,
|
|
10231
11203
|
element
|
|
10232
11204
|
}),
|
|
10233
|
-
!isFinal && /* @__PURE__ */ jsx("span", {
|
|
11205
|
+
!isFinal && /* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
10234
11206
|
className: styles$I.separator,
|
|
10235
11207
|
children: "/"
|
|
10236
11208
|
})
|
|
@@ -10274,7 +11246,7 @@ class ButtonGroup extends React__default.PureComponent {
|
|
|
10274
11246
|
});
|
|
10275
11247
|
__publicField(this, "renderIcon", (icon2) => {
|
|
10276
11248
|
if (icon2) {
|
|
10277
|
-
return /* @__PURE__ */ jsx("i", {
|
|
11249
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("i", {
|
|
10278
11250
|
className: cx$2("icon", icon2)
|
|
10279
11251
|
});
|
|
10280
11252
|
}
|
|
@@ -10293,8 +11265,8 @@ class ButtonGroup extends React__default.PureComponent {
|
|
|
10293
11265
|
const active2 = type === "object" ? key2 === this.props.value : value === this.props.value;
|
|
10294
11266
|
const { error: error2, maxTooltipWidth, testId, tooltip: tooltip2, warning: warning2 } = button2;
|
|
10295
11267
|
if (!hidden2) {
|
|
10296
|
-
return /* @__PURE__ */ jsx(DisabledContext.Consumer, {
|
|
10297
|
-
children: (disabledContextValue) => /* @__PURE__ */ jsx(Tooltip, {
|
|
11268
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(DisabledContext.Consumer, {
|
|
11269
|
+
children: (disabledContextValue) => /* @__PURE__ */ jsxRuntime.exports.jsx(Tooltip, {
|
|
10298
11270
|
error: !!error2,
|
|
10299
11271
|
warning: !!warning2,
|
|
10300
11272
|
text: tooltip2 || error2 || warning2,
|
|
@@ -10302,7 +11274,7 @@ class ButtonGroup extends React__default.PureComponent {
|
|
|
10302
11274
|
display: "block",
|
|
10303
11275
|
enabled: tooltip2 && isStringNumberOrNode(tooltip2) || error2 && isStringNumberOrNode(error2) || warning2 && isStringNumberOrNode(warning2) || false,
|
|
10304
11276
|
placement: "bottom-center",
|
|
10305
|
-
children: /* @__PURE__ */ jsx(Button$1, {
|
|
11277
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
|
|
10306
11278
|
active: active2,
|
|
10307
11279
|
basic: this.props.basic,
|
|
10308
11280
|
disabled: this.props.disabled || button2.disabled,
|
|
@@ -10327,7 +11299,7 @@ class ButtonGroup extends React__default.PureComponent {
|
|
|
10327
11299
|
}
|
|
10328
11300
|
renderHeader() {
|
|
10329
11301
|
if (this.props.header) {
|
|
10330
|
-
return /* @__PURE__ */ jsx("label", {
|
|
11302
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("label", {
|
|
10331
11303
|
className: styles$H.label,
|
|
10332
11304
|
children: this.props.header
|
|
10333
11305
|
});
|
|
@@ -10335,11 +11307,11 @@ class ButtonGroup extends React__default.PureComponent {
|
|
|
10335
11307
|
}
|
|
10336
11308
|
render() {
|
|
10337
11309
|
const { testId } = this.props;
|
|
10338
|
-
return /* @__PURE__ */ jsx("div", {
|
|
10339
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
11310
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
11311
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
10340
11312
|
children: [
|
|
10341
11313
|
this.renderHeader(),
|
|
10342
|
-
/* @__PURE__ */ jsx("div", {
|
|
11314
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
10343
11315
|
className: styles$H.buttonGroup,
|
|
10344
11316
|
"data-testid": testId,
|
|
10345
11317
|
children: this.renderButtons()
|
|
@@ -10392,7 +11364,7 @@ const Card = ({
|
|
|
10392
11364
|
padding: padding2,
|
|
10393
11365
|
raised: raised2
|
|
10394
11366
|
}) => {
|
|
10395
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
11367
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
10396
11368
|
className: cx$2(
|
|
10397
11369
|
styles$G.card,
|
|
10398
11370
|
bordered2 ? styles$G.bordered : "",
|
|
@@ -10400,11 +11372,11 @@ const Card = ({
|
|
|
10400
11372
|
),
|
|
10401
11373
|
style: { margin: margin2 },
|
|
10402
11374
|
children: [
|
|
10403
|
-
heading2 ? /* @__PURE__ */ jsx("div", {
|
|
11375
|
+
heading2 ? /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
10404
11376
|
className: cx$2(styles$G.cardHeader),
|
|
10405
11377
|
children: heading2
|
|
10406
11378
|
}) : null,
|
|
10407
|
-
/* @__PURE__ */ jsx("div", {
|
|
11379
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
10408
11380
|
className: cx$2(
|
|
10409
11381
|
styles$G.cardContent,
|
|
10410
11382
|
heading2 ? styles$G.cardContentBorderTop : "",
|
|
@@ -11924,7 +12896,7 @@ const Column = ({
|
|
|
11924
12896
|
const getWidthString = (w2) => {
|
|
11925
12897
|
return typeof w2 === "string" ? w2 : typeof w2 === "number" ? `${w2}px` : void 0;
|
|
11926
12898
|
};
|
|
11927
|
-
return /* @__PURE__ */ jsx(StyledColumn, {
|
|
12899
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(StyledColumn, {
|
|
11928
12900
|
background: background2,
|
|
11929
12901
|
borderLeft,
|
|
11930
12902
|
borderRight,
|
|
@@ -11937,7 +12909,7 @@ const Column = ({
|
|
|
11937
12909
|
width: getWidthString(width),
|
|
11938
12910
|
widthTablet: getWidthString(widthTablet),
|
|
11939
12911
|
widthMobile: getWidthString(widthMobile),
|
|
11940
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
12912
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
11941
12913
|
className: "inner",
|
|
11942
12914
|
"data-testid": testId,
|
|
11943
12915
|
children
|
|
@@ -12017,7 +12989,7 @@ const Text = ({
|
|
|
12017
12989
|
success: success2,
|
|
12018
12990
|
warning: warning2
|
|
12019
12991
|
}) => {
|
|
12020
|
-
return /* @__PURE__ */ jsx("span", {
|
|
12992
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
12021
12993
|
className: cx$2(
|
|
12022
12994
|
bold2 && styles$E.bold,
|
|
12023
12995
|
center2 && styles$E.center,
|
|
@@ -12068,14 +13040,14 @@ const cssAlignClass = (align) => {
|
|
|
12068
13040
|
return "";
|
|
12069
13041
|
}
|
|
12070
13042
|
};
|
|
12071
|
-
const Divider = ({ children, margin: margin2, color: color2, align }) => /* @__PURE__ */ jsx("div", {
|
|
13043
|
+
const Divider = ({ children, margin: margin2, color: color2, align }) => /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
12072
13044
|
className: `${styles$F.divider} ${cssAlignClass(align)}`,
|
|
12073
13045
|
style: {
|
|
12074
13046
|
marginTop: margin2,
|
|
12075
13047
|
marginBottom: margin2,
|
|
12076
13048
|
"--color": color2
|
|
12077
13049
|
},
|
|
12078
|
-
children: typeof children === "string" ? /* @__PURE__ */ jsx(Text, {
|
|
13050
|
+
children: typeof children === "string" ? /* @__PURE__ */ jsxRuntime.exports.jsx(Text, {
|
|
12079
13051
|
muted: true,
|
|
12080
13052
|
children
|
|
12081
13053
|
}) : children
|
|
@@ -12112,7 +13084,7 @@ const Heading$2 = ({
|
|
|
12112
13084
|
}) => {
|
|
12113
13085
|
var _a;
|
|
12114
13086
|
const isHelpIconDisplayed = !!helpText || !!onClickHelp;
|
|
12115
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
13087
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
12116
13088
|
className: cx$2(styles$D.heading, top2 ? styles$D.top : ""),
|
|
12117
13089
|
style: { marginBottom },
|
|
12118
13090
|
onClick: (evt) => {
|
|
@@ -12123,21 +13095,21 @@ const Heading$2 = ({
|
|
|
12123
13095
|
"data-testid": testId,
|
|
12124
13096
|
children: [
|
|
12125
13097
|
children,
|
|
12126
|
-
/* @__PURE__ */ jsxs("div", {
|
|
13098
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
12127
13099
|
className: styles$D.icons,
|
|
12128
13100
|
children: [
|
|
12129
|
-
icon2 && /* @__PURE__ */ jsx(HelpIcon, {
|
|
13101
|
+
icon2 && /* @__PURE__ */ jsxRuntime.exports.jsx(HelpIcon, {
|
|
12130
13102
|
onClick: onIconClick,
|
|
12131
13103
|
icon: icon2
|
|
12132
13104
|
}),
|
|
12133
|
-
isHelpIconDisplayed && /* @__PURE__ */ jsx(HelpIcon, {
|
|
13105
|
+
isHelpIconDisplayed && /* @__PURE__ */ jsxRuntime.exports.jsx(HelpIcon, {
|
|
12134
13106
|
text: helpText,
|
|
12135
13107
|
onClick: onClickHelp
|
|
12136
13108
|
}),
|
|
12137
|
-
libraryIcon && /* @__PURE__ */ jsx(HelpIcon, {
|
|
13109
|
+
libraryIcon && /* @__PURE__ */ jsxRuntime.exports.jsx(HelpIcon, {
|
|
12138
13110
|
text: (_a = libraryIcon == null ? void 0 : libraryIcon.tooltip) != null ? _a : "",
|
|
12139
13111
|
onClick: libraryIcon.onClick,
|
|
12140
|
-
icon: /* @__PURE__ */ jsx(FaBook, {})
|
|
13112
|
+
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(FaBook, {})
|
|
12141
13113
|
})
|
|
12142
13114
|
]
|
|
12143
13115
|
})
|
|
@@ -12187,11 +13159,11 @@ const styles$C = {
|
|
|
12187
13159
|
};
|
|
12188
13160
|
const convertStringToJsx = (children) => {
|
|
12189
13161
|
if (lodash.exports.isArray(children)) {
|
|
12190
|
-
return children.map((text2) => /* @__PURE__ */ jsxs(Fragment
|
|
13162
|
+
return children.map((text2) => /* @__PURE__ */ jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
|
|
12191
13163
|
children: [
|
|
12192
13164
|
text2,
|
|
12193
13165
|
" ",
|
|
12194
|
-
/* @__PURE__ */ jsx("br", {})
|
|
13166
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("br", {})
|
|
12195
13167
|
]
|
|
12196
13168
|
}));
|
|
12197
13169
|
}
|
|
@@ -12209,7 +13181,7 @@ const Dialog = ({ dialog: dialog2 }) => {
|
|
|
12209
13181
|
onClose,
|
|
12210
13182
|
testId
|
|
12211
13183
|
} = dialog2;
|
|
12212
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
13184
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
12213
13185
|
className: cx$2(
|
|
12214
13186
|
styles$C.dialog,
|
|
12215
13187
|
width ? styles$C.inline : null,
|
|
@@ -12218,30 +13190,30 @@ const Dialog = ({ dialog: dialog2 }) => {
|
|
|
12218
13190
|
style: { width, height },
|
|
12219
13191
|
"data-testid": testId != null ? testId : null,
|
|
12220
13192
|
children: [
|
|
12221
|
-
/* @__PURE__ */ jsxs("div", {
|
|
13193
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
12222
13194
|
className: styles$C.header,
|
|
12223
13195
|
children: [
|
|
12224
|
-
/* @__PURE__ */ jsx(Heading$2, {
|
|
13196
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Heading$2, {
|
|
12225
13197
|
testId: testId && `${testId}-heading`,
|
|
12226
13198
|
top: true,
|
|
12227
13199
|
marginBottom: 0,
|
|
12228
13200
|
children: heading2
|
|
12229
13201
|
}),
|
|
12230
|
-
onClose ? /* @__PURE__ */ jsx("div", {
|
|
13202
|
+
onClose ? /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
12231
13203
|
className: styles$C.dismiss,
|
|
12232
|
-
children: /* @__PURE__ */ jsx(FaTimes, {
|
|
13204
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(FaTimes, {
|
|
12233
13205
|
onClick: onClose
|
|
12234
13206
|
})
|
|
12235
13207
|
}) : null
|
|
12236
13208
|
]
|
|
12237
13209
|
}),
|
|
12238
|
-
/* @__PURE__ */ jsx("div", {
|
|
13210
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
12239
13211
|
"data-testid": testId && `${testId}-content`,
|
|
12240
13212
|
className: styles$C.content,
|
|
12241
13213
|
style: { padding: contentPadding2 },
|
|
12242
13214
|
children: convertStringToJsx(content2)
|
|
12243
13215
|
}),
|
|
12244
|
-
footer2 && /* @__PURE__ */ jsx("div", {
|
|
13216
|
+
footer2 && /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
12245
13217
|
"data-testid": testId && `${testId}-footer`,
|
|
12246
13218
|
className: styles$C.footer,
|
|
12247
13219
|
children: footer2
|
|
@@ -12328,11 +13300,11 @@ const DrawerTabs = ({
|
|
|
12328
13300
|
width,
|
|
12329
13301
|
testId
|
|
12330
13302
|
}) => {
|
|
12331
|
-
return /* @__PURE__ */ jsxs(Fragment
|
|
13303
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
|
|
12332
13304
|
children: [
|
|
12333
|
-
/* @__PURE__ */ jsx("div", {
|
|
13305
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
12334
13306
|
className: styles$B.tabs,
|
|
12335
|
-
children: tabs2.map((tab2, index2) => /* @__PURE__ */ jsx("div", {
|
|
13307
|
+
children: tabs2.map((tab2, index2) => /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
12336
13308
|
className: cx$2(
|
|
12337
13309
|
styles$B.tab,
|
|
12338
13310
|
activeTab === index2 && open ? styles$B.active : ""
|
|
@@ -12345,7 +13317,7 @@ const DrawerTabs = ({
|
|
|
12345
13317
|
}),
|
|
12346
13318
|
tabs2.map((tab2, index2) => {
|
|
12347
13319
|
const active2 = activeTab === index2;
|
|
12348
|
-
return /* @__PURE__ */ jsx("div", {
|
|
13320
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
12349
13321
|
style: { width },
|
|
12350
13322
|
className: styles$B.tabsContent,
|
|
12351
13323
|
"data-testid": testId && `${testId}-content-${index2}`,
|
|
@@ -14402,11 +15374,11 @@ const TABS_WIDTH = 37;
|
|
|
14402
15374
|
const MIN_OPEN_WIDTH = 240;
|
|
14403
15375
|
const ResizeHandle = React__default.forwardRef((props, ref2) => {
|
|
14404
15376
|
const { handleAxis, ...rest } = props;
|
|
14405
|
-
return /* @__PURE__ */ jsx("div", {
|
|
15377
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
14406
15378
|
ref: ref2,
|
|
14407
15379
|
className: styles$B.resizeHandle,
|
|
14408
15380
|
...rest,
|
|
14409
|
-
children: /* @__PURE__ */ jsx(FaGripLinesVertical, {})
|
|
15381
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(FaGripLinesVertical, {})
|
|
14410
15382
|
});
|
|
14411
15383
|
});
|
|
14412
15384
|
const DrawerResizeWrapper = ({
|
|
@@ -14421,13 +15393,13 @@ const DrawerResizeWrapper = ({
|
|
|
14421
15393
|
const handleResize = (event, { node, size: size2, handle }) => {
|
|
14422
15394
|
onResize(size2.width);
|
|
14423
15395
|
};
|
|
14424
|
-
return onResize ? /* @__PURE__ */ jsx(Resizable, {
|
|
15396
|
+
return onResize ? /* @__PURE__ */ jsxRuntime.exports.jsx(Resizable, {
|
|
14425
15397
|
width,
|
|
14426
15398
|
height: 100,
|
|
14427
15399
|
minConstraints: [TABS_WIDTH, null],
|
|
14428
15400
|
maxConstraints: [MAXIMUM_OPEN_WIDTH, null],
|
|
14429
15401
|
onResize: handleResize,
|
|
14430
|
-
handle: /* @__PURE__ */ jsx(ResizeHandle, {}),
|
|
15402
|
+
handle: /* @__PURE__ */ jsxRuntime.exports.jsx(ResizeHandle, {}),
|
|
14431
15403
|
resizeHandles: right2 ? ["w"] : ["e"],
|
|
14432
15404
|
axis: "x",
|
|
14433
15405
|
className: isResizing2 ? styles$B.isResizing : "",
|
|
@@ -14443,7 +15415,7 @@ const DrawerResizeWrapper = ({
|
|
|
14443
15415
|
}
|
|
14444
15416
|
},
|
|
14445
15417
|
children
|
|
14446
|
-
}) : /* @__PURE__ */ jsx(Fragment
|
|
15418
|
+
}) : /* @__PURE__ */ jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment, {
|
|
14447
15419
|
children
|
|
14448
15420
|
});
|
|
14449
15421
|
};
|
|
@@ -14502,12 +15474,12 @@ const Drawer = ({
|
|
|
14502
15474
|
getActiveTab(tabs2[index2]);
|
|
14503
15475
|
}
|
|
14504
15476
|
};
|
|
14505
|
-
return /* @__PURE__ */ jsx(DrawerResizeWrapper, {
|
|
15477
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(DrawerResizeWrapper, {
|
|
14506
15478
|
width: currentWidth,
|
|
14507
15479
|
onResize,
|
|
14508
15480
|
setOpen,
|
|
14509
15481
|
right: right2,
|
|
14510
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
15482
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
14511
15483
|
className: cx$2(
|
|
14512
15484
|
styles$B.drawer,
|
|
14513
15485
|
shadow4 ? styles$B.shadow : "",
|
|
@@ -14516,10 +15488,10 @@ const Drawer = ({
|
|
|
14516
15488
|
),
|
|
14517
15489
|
style: { top: top2 },
|
|
14518
15490
|
children: [
|
|
14519
|
-
/* @__PURE__ */ jsx("div", {
|
|
15491
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
14520
15492
|
className: cx$2(styles$B.drawerContent, border2 && styles$B.border),
|
|
14521
15493
|
style: { background: background2, borderColor: border2, width: currentWidth },
|
|
14522
|
-
children: tabs2 ? /* @__PURE__ */ jsx(DrawerTabs, {
|
|
15494
|
+
children: tabs2 ? /* @__PURE__ */ jsxRuntime.exports.jsx(DrawerTabs, {
|
|
14523
15495
|
width: openWidth,
|
|
14524
15496
|
testId,
|
|
14525
15497
|
tabs: tabs2,
|
|
@@ -14527,21 +15499,21 @@ const Drawer = ({
|
|
|
14527
15499
|
activeTab,
|
|
14528
15500
|
background: background2,
|
|
14529
15501
|
handleTabClick
|
|
14530
|
-
}) : /* @__PURE__ */ jsx("div", {
|
|
15502
|
+
}) : /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
14531
15503
|
style: { width: openWidth },
|
|
14532
15504
|
children
|
|
14533
15505
|
})
|
|
14534
15506
|
}),
|
|
14535
|
-
button2 && /* @__PURE__ */ jsx("span", {
|
|
15507
|
+
button2 && /* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
14536
15508
|
className: cx$2(
|
|
14537
15509
|
styles$B.toggleButton,
|
|
14538
15510
|
open && (isStandardButton || isCustomButton && buttonAnimate) ? styles$B.toggleButtonOpen : "",
|
|
14539
15511
|
buttonPosition === "top" ? styles$B.top : styles$B.bottom
|
|
14540
15512
|
),
|
|
14541
|
-
children: isCustomButton ? button2 : /* @__PURE__ */ jsx(Button$1, {
|
|
15513
|
+
children: isCustomButton ? button2 : /* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
|
|
14542
15514
|
onClick: setOpen ? () => setOpen(!open) : null,
|
|
14543
15515
|
round: true,
|
|
14544
|
-
icon: right2 ? /* @__PURE__ */ jsx(FaChevronRight, {}) : /* @__PURE__ */ jsx(FaChevronLeft, {})
|
|
15516
|
+
icon: right2 ? /* @__PURE__ */ jsxRuntime.exports.jsx(FaChevronRight, {}) : /* @__PURE__ */ jsxRuntime.exports.jsx(FaChevronLeft, {})
|
|
14545
15517
|
})
|
|
14546
15518
|
})
|
|
14547
15519
|
]
|
|
@@ -14612,36 +15584,36 @@ const styles$A = {
|
|
|
14612
15584
|
text: text$2
|
|
14613
15585
|
};
|
|
14614
15586
|
const Empty = ({ width, height, text: text2, children }) => {
|
|
14615
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
15587
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
14616
15588
|
className: styles$A.empty,
|
|
14617
15589
|
style: { width, height },
|
|
14618
15590
|
children: [
|
|
14619
|
-
/* @__PURE__ */ jsx("svg", {
|
|
15591
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("svg", {
|
|
14620
15592
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14621
15593
|
width: "64",
|
|
14622
15594
|
height: "41",
|
|
14623
|
-
children: /* @__PURE__ */ jsxs("g", {
|
|
15595
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsxs("g", {
|
|
14624
15596
|
transform: "translate(0 1)",
|
|
14625
15597
|
fill: "none",
|
|
14626
15598
|
fillRule: "evenodd",
|
|
14627
15599
|
children: [
|
|
14628
|
-
/* @__PURE__ */ jsx("ellipse", {
|
|
15600
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("ellipse", {
|
|
14629
15601
|
cx: "32",
|
|
14630
15602
|
cy: "33",
|
|
14631
15603
|
rx: "32",
|
|
14632
15604
|
ry: "7",
|
|
14633
15605
|
fill: "rgba(0,0,0,0.1)"
|
|
14634
15606
|
}),
|
|
14635
|
-
/* @__PURE__ */ jsxs("g", {
|
|
15607
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs("g", {
|
|
14636
15608
|
fillRule: "nonzero",
|
|
14637
15609
|
stroke: "var(--color-text)",
|
|
14638
15610
|
strokeOpacity: "0.2",
|
|
14639
15611
|
children: [
|
|
14640
|
-
/* @__PURE__ */ jsx("path", {
|
|
15612
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("path", {
|
|
14641
15613
|
d: "M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z",
|
|
14642
15614
|
fill: "rgba(0,0,0,0.05)"
|
|
14643
15615
|
}),
|
|
14644
|
-
/* @__PURE__ */ jsx("path", {
|
|
15616
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("path", {
|
|
14645
15617
|
d: "M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",
|
|
14646
15618
|
fill: "var(--color-background-raised)"
|
|
14647
15619
|
})
|
|
@@ -14650,9 +15622,9 @@ const Empty = ({ width, height, text: text2, children }) => {
|
|
|
14650
15622
|
]
|
|
14651
15623
|
})
|
|
14652
15624
|
}),
|
|
14653
|
-
text2 !== "" && /* @__PURE__ */ jsx("div", {
|
|
15625
|
+
text2 !== "" && /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
14654
15626
|
className: styles$A.text,
|
|
14655
|
-
children: /* @__PURE__ */ jsx(Text, {
|
|
15627
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Text, {
|
|
14656
15628
|
faint: true,
|
|
14657
15629
|
children: text2
|
|
14658
15630
|
})
|
|
@@ -14690,11 +15662,11 @@ const InputGroup = ({ children, small: small2, width }) => {
|
|
|
14690
15662
|
const isLast = index2 === count2 - 1;
|
|
14691
15663
|
const isOnly = !count2 || count2 === 1;
|
|
14692
15664
|
const groupOrder = groupOrderProp || (isOnly ? null : isFirst ? "first" : isLast ? "last" : "middle");
|
|
14693
|
-
return isDOMType ? item2 : /* @__PURE__ */ jsx(Fragment$
|
|
15665
|
+
return isDOMType ? item2 : /* @__PURE__ */ jsxRuntime.exports.jsx(Fragment$1, {
|
|
14694
15666
|
children: React__default.cloneElement(item2, { groupOrder, small: small2 })
|
|
14695
15667
|
}, index2);
|
|
14696
15668
|
});
|
|
14697
|
-
return /* @__PURE__ */ jsx("div", {
|
|
15669
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
14698
15670
|
className: cx$2(styles$z.inputGroup),
|
|
14699
15671
|
style: { width },
|
|
14700
15672
|
children: elements
|
|
@@ -14787,10 +15759,10 @@ const Input$1 = forwardRef(
|
|
|
14787
15759
|
return "";
|
|
14788
15760
|
})();
|
|
14789
15761
|
const width = propWidth || (size2 ? "auto" : "100%");
|
|
14790
|
-
return /* @__PURE__ */ jsx("div", {
|
|
15762
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
14791
15763
|
style: { width },
|
|
14792
15764
|
className: order2,
|
|
14793
|
-
children: /* @__PURE__ */ jsx(Tooltip, {
|
|
15765
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Tooltip, {
|
|
14794
15766
|
error: !!error2,
|
|
14795
15767
|
warning: !!warning2,
|
|
14796
15768
|
text: tooltip2 || error2 || warning2,
|
|
@@ -14798,7 +15770,7 @@ const Input$1 = forwardRef(
|
|
|
14798
15770
|
maxWidth: maxTooltipWidth,
|
|
14799
15771
|
display: "block",
|
|
14800
15772
|
placement: "bottom-center",
|
|
14801
|
-
children: /* @__PURE__ */ jsx("input", {
|
|
15773
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("input", {
|
|
14802
15774
|
type,
|
|
14803
15775
|
size: size2 || 20,
|
|
14804
15776
|
placeholder: placeholder3,
|
|
@@ -14920,18 +15892,18 @@ const FileInput = ({
|
|
|
14920
15892
|
if (!(disabled2 || disabledContext))
|
|
14921
15893
|
inputRef.current.click();
|
|
14922
15894
|
};
|
|
14923
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
15895
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
14924
15896
|
onClick: () => handleClick2(),
|
|
14925
15897
|
style: { width },
|
|
14926
15898
|
children: [
|
|
14927
|
-
/* @__PURE__ */ jsxs(InputGroup, {
|
|
15899
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs(InputGroup, {
|
|
14928
15900
|
children: [
|
|
14929
|
-
/* @__PURE__ */ jsx(Input$1, {
|
|
15901
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Input$1, {
|
|
14930
15902
|
value: fileName || "",
|
|
14931
15903
|
placeholder: placeholder3,
|
|
14932
15904
|
disabled: true
|
|
14933
15905
|
}),
|
|
14934
|
-
/* @__PURE__ */ jsx(Button$1, {
|
|
15906
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
|
|
14935
15907
|
label: label2,
|
|
14936
15908
|
loading,
|
|
14937
15909
|
disabled: loading || disabled2 || disabledContext,
|
|
@@ -14939,7 +15911,7 @@ const FileInput = ({
|
|
|
14939
15911
|
})
|
|
14940
15912
|
]
|
|
14941
15913
|
}),
|
|
14942
|
-
/* @__PURE__ */ jsx("input", {
|
|
15914
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("input", {
|
|
14943
15915
|
name: name2,
|
|
14944
15916
|
ref: inputRef,
|
|
14945
15917
|
className: styles$x.fileInput,
|
|
@@ -15010,34 +15982,34 @@ const Label$2 = ({
|
|
|
15010
15982
|
labelLeft: labelLeft2
|
|
15011
15983
|
}) => {
|
|
15012
15984
|
var _a;
|
|
15013
|
-
return /* @__PURE__ */ jsx("div", {
|
|
15985
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
15014
15986
|
className: cx$2(styles$w.label, labelLeft2 ? styles$w.labelLeft : ""),
|
|
15015
|
-
children: /* @__PURE__ */ jsxs("label", {
|
|
15987
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsxs("label", {
|
|
15016
15988
|
style: { width: width || "" },
|
|
15017
15989
|
children: [
|
|
15018
15990
|
label2,
|
|
15019
|
-
/* @__PURE__ */ jsxs("div", {
|
|
15991
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
15020
15992
|
className: styles$w.icons,
|
|
15021
15993
|
children: [
|
|
15022
|
-
(helpText || onClickHelp) && /* @__PURE__ */ jsx(HelpIcon, {
|
|
15994
|
+
(helpText || onClickHelp) && /* @__PURE__ */ jsxRuntime.exports.jsx(HelpIcon, {
|
|
15023
15995
|
text: helpText,
|
|
15024
15996
|
onClick: onClickHelp,
|
|
15025
15997
|
maxWidth: helpTextMaxWidth
|
|
15026
15998
|
}),
|
|
15027
|
-
info2 && /* @__PURE__ */ jsx(HelpIcon, {
|
|
15999
|
+
info2 && /* @__PURE__ */ jsxRuntime.exports.jsx(HelpIcon, {
|
|
15028
16000
|
text: info2,
|
|
15029
|
-
icon: /* @__PURE__ */ jsx(FaInfoCircle, {})
|
|
16001
|
+
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(FaInfoCircle, {})
|
|
15030
16002
|
}),
|
|
15031
|
-
lock && lock.visible && lock.onClick && /* @__PURE__ */ jsx(HelpIcon, {
|
|
16003
|
+
lock && lock.visible && lock.onClick && /* @__PURE__ */ jsxRuntime.exports.jsx(HelpIcon, {
|
|
15032
16004
|
onClick: lock.onClick,
|
|
15033
|
-
icon: lock.active ? /* @__PURE__ */ jsx(HiLockClosed, {}) : /* @__PURE__ */ jsx(HiLockOpen, {}),
|
|
16005
|
+
icon: lock.active ? /* @__PURE__ */ jsxRuntime.exports.jsx(HiLockClosed, {}) : /* @__PURE__ */ jsxRuntime.exports.jsx(HiLockOpen, {}),
|
|
15034
16006
|
active: lock.active,
|
|
15035
16007
|
testId: lock.testId
|
|
15036
16008
|
}),
|
|
15037
|
-
libraryIcon && /* @__PURE__ */ jsx(HelpIcon, {
|
|
16009
|
+
libraryIcon && /* @__PURE__ */ jsxRuntime.exports.jsx(HelpIcon, {
|
|
15038
16010
|
text: (_a = libraryIcon == null ? void 0 : libraryIcon.tooltip) != null ? _a : "",
|
|
15039
16011
|
onClick: libraryIcon.onClick,
|
|
15040
|
-
icon: /* @__PURE__ */ jsx(FaBook, {})
|
|
16012
|
+
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(FaBook, {})
|
|
15041
16013
|
})
|
|
15042
16014
|
]
|
|
15043
16015
|
})
|
|
@@ -15117,11 +16089,11 @@ const Field = ({
|
|
|
15117
16089
|
libraryIcon,
|
|
15118
16090
|
testId
|
|
15119
16091
|
}) => {
|
|
15120
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
16092
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
15121
16093
|
className: cx$2(styles$v.field, labelLeft2 ? styles$v.labelLeft : ""),
|
|
15122
16094
|
"data-testid": testId,
|
|
15123
16095
|
children: [
|
|
15124
|
-
(label2 || labelLeft2) && /* @__PURE__ */ jsx(Label$2, {
|
|
16096
|
+
(label2 || labelLeft2) && /* @__PURE__ */ jsxRuntime.exports.jsx(Label$2, {
|
|
15125
16097
|
label: label2,
|
|
15126
16098
|
width: labelWidth,
|
|
15127
16099
|
helpText,
|
|
@@ -15132,7 +16104,7 @@ const Field = ({
|
|
|
15132
16104
|
libraryIcon,
|
|
15133
16105
|
labelLeft: labelLeft2
|
|
15134
16106
|
}),
|
|
15135
|
-
/* @__PURE__ */ jsx("div", {
|
|
16107
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
15136
16108
|
className: styles$v.fieldInput,
|
|
15137
16109
|
children
|
|
15138
16110
|
})
|
|
@@ -15197,7 +16169,7 @@ const Flex = ({
|
|
|
15197
16169
|
wrap: wrap2,
|
|
15198
16170
|
gap
|
|
15199
16171
|
}) => {
|
|
15200
|
-
return /* @__PURE__ */ jsx("div", {
|
|
16172
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
15201
16173
|
style: {
|
|
15202
16174
|
display: "flex",
|
|
15203
16175
|
flexDirection: direction,
|
|
@@ -15237,7 +16209,7 @@ const styles$u = {
|
|
|
15237
16209
|
formRow
|
|
15238
16210
|
};
|
|
15239
16211
|
const FormRow = ({ children }) => {
|
|
15240
|
-
return /* @__PURE__ */ jsx("div", {
|
|
16212
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
15241
16213
|
className: styles$u.formRow,
|
|
15242
16214
|
children
|
|
15243
16215
|
});
|
|
@@ -15272,7 +16244,7 @@ const Grid = ({
|
|
|
15272
16244
|
height,
|
|
15273
16245
|
children
|
|
15274
16246
|
}) => {
|
|
15275
|
-
return /* @__PURE__ */ jsx(StyledGrid, {
|
|
16247
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(StyledGrid, {
|
|
15276
16248
|
rows,
|
|
15277
16249
|
columns,
|
|
15278
16250
|
columnsTablet,
|
|
@@ -15330,7 +16302,7 @@ const InputGroupAddon = ({ children, groupOrder, small: small2 }) => {
|
|
|
15330
16302
|
}
|
|
15331
16303
|
return "";
|
|
15332
16304
|
})();
|
|
15333
|
-
return /* @__PURE__ */ jsx("span", {
|
|
16305
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
15334
16306
|
className: cx$2(styles$t.addon, order2, small2 ? styles$t.small : ""),
|
|
15335
16307
|
children
|
|
15336
16308
|
});
|
|
@@ -24326,37 +25298,37 @@ const listStyles = {
|
|
|
24326
25298
|
hideScrollbar
|
|
24327
25299
|
};
|
|
24328
25300
|
const ToggleNarrow = ({ toggleNarrow: toggleNarrow2, onClickToggleNarrow }) => {
|
|
24329
|
-
return toggleNarrow2 ? /* @__PURE__ */ jsx("a", {
|
|
25301
|
+
return toggleNarrow2 ? /* @__PURE__ */ jsxRuntime.exports.jsx("a", {
|
|
24330
25302
|
className: listStyles.toggleNarrow,
|
|
24331
25303
|
onClick: onClickToggleNarrow,
|
|
24332
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
|
24333
|
-
icon: /* @__PURE__ */ jsx(FaChevronLeft, {})
|
|
25304
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Icon, {
|
|
25305
|
+
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(FaChevronLeft, {})
|
|
24334
25306
|
})
|
|
24335
25307
|
}) : null;
|
|
24336
25308
|
};
|
|
24337
25309
|
const ListHeading = forwardRef(
|
|
24338
25310
|
({ name: name2, actions: actions2, toggleNarrow: toggleNarrow2, onToggleNarrow, stickyHeader: stickyHeader2 }, listHeadingRef) => {
|
|
24339
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
25311
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
24340
25312
|
ref: listHeadingRef,
|
|
24341
25313
|
className: cx$2(listStyles.header, stickyHeader2 ? listStyles.stickyHeader : ""),
|
|
24342
25314
|
children: [
|
|
24343
|
-
/* @__PURE__ */ jsx(ToggleNarrow, {
|
|
25315
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(ToggleNarrow, {
|
|
24344
25316
|
toggleNarrow: toggleNarrow2,
|
|
24345
25317
|
onClickToggleNarrow: onToggleNarrow
|
|
24346
25318
|
}),
|
|
24347
|
-
name2 && /* @__PURE__ */ jsx("div", {
|
|
25319
|
+
name2 && /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
24348
25320
|
className: listStyles.headerTitle,
|
|
24349
|
-
children: /* @__PURE__ */ jsx(Heading$2, {
|
|
25321
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Heading$2, {
|
|
24350
25322
|
top: true,
|
|
24351
25323
|
marginBottom: 0,
|
|
24352
25324
|
children: name2
|
|
24353
25325
|
})
|
|
24354
25326
|
}),
|
|
24355
|
-
/* @__PURE__ */ jsx("div", {
|
|
25327
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
24356
25328
|
className: listStyles.right,
|
|
24357
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
25329
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
24358
25330
|
className: listStyles.actions,
|
|
24359
|
-
children: /* @__PURE__ */ jsx(Actions, {
|
|
25331
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Actions, {
|
|
24360
25332
|
actions: actions2,
|
|
24361
25333
|
right: true
|
|
24362
25334
|
})
|
|
@@ -24389,33 +25361,33 @@ function BsArrowReturnRight(props) {
|
|
|
24389
25361
|
return GenIcon({ "tag": "svg", "attr": { "fill": "currentColor", "viewBox": "0 0 16 16" }, "child": [{ "tag": "path", "attr": { "fillRule": "evenodd", "d": "M1.5 1.5A.5.5 0 0 0 1 2v4.8a2.5 2.5 0 0 0 2.5 2.5h9.793l-3.347 3.346a.5.5 0 0 0 .708.708l4.2-4.2a.5.5 0 0 0 0-.708l-4-4a.5.5 0 0 0-.708.708L13.293 8.3H3.5A1.5 1.5 0 0 1 2 6.8V2a.5.5 0 0 0-.5-.5z" } }] })(props);
|
|
24390
25362
|
}
|
|
24391
25363
|
const Label$1 = ({ label: label2 }) => {
|
|
24392
|
-
return label2 ? /* @__PURE__ */ jsx("span", {
|
|
25364
|
+
return label2 ? /* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
24393
25365
|
className: listStyles.label,
|
|
24394
|
-
children: /* @__PURE__ */ jsx(Badge, {
|
|
25366
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Badge, {
|
|
24395
25367
|
color: label2.color,
|
|
24396
25368
|
title: label2.value
|
|
24397
25369
|
})
|
|
24398
25370
|
}) : null;
|
|
24399
25371
|
};
|
|
24400
25372
|
const Name = ({ name: name2, icon: icon2, testId }) => {
|
|
24401
|
-
const newIcon = icon2 && /* @__PURE__ */ jsx(Icon, {
|
|
25373
|
+
const newIcon = icon2 && /* @__PURE__ */ jsxRuntime.exports.jsx(Icon, {
|
|
24402
25374
|
icon: icon2.icon,
|
|
24403
25375
|
color: icon2.color || "#db2828",
|
|
24404
25376
|
size: 12
|
|
24405
25377
|
});
|
|
24406
|
-
return /* @__PURE__ */ jsxs("span", {
|
|
25378
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("span", {
|
|
24407
25379
|
className: cx$2(listStyles.name, listStyles.bold),
|
|
24408
25380
|
"data-testid": testId,
|
|
24409
25381
|
children: [
|
|
24410
25382
|
name2,
|
|
24411
|
-
icon2 && icon2.tooltip && icon2.tooltip.text ? /* @__PURE__ */ jsx("span", {
|
|
25383
|
+
icon2 && icon2.tooltip && icon2.tooltip.text ? /* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
24412
25384
|
className: listStyles.iconTooltipMargin,
|
|
24413
|
-
children: /* @__PURE__ */ jsx(Tooltip, {
|
|
25385
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Tooltip, {
|
|
24414
25386
|
text: icon2.tooltip.text,
|
|
24415
25387
|
maxWidth: "350px",
|
|
24416
25388
|
children: newIcon
|
|
24417
25389
|
})
|
|
24418
|
-
}) : icon2 && icon2.icon && /* @__PURE__ */ jsx("span", {
|
|
25390
|
+
}) : icon2 && icon2.icon && /* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
24419
25391
|
className: listStyles.iconTooltipMargin,
|
|
24420
25392
|
children: newIcon
|
|
24421
25393
|
})
|
|
@@ -24443,29 +25415,29 @@ Name.defaultProps = {
|
|
|
24443
25415
|
};
|
|
24444
25416
|
const MetaContent = ({ item: item2 }) => {
|
|
24445
25417
|
const { name: name2, icon: icon2, details: details2, metadata: metadata2, invalid, testId } = item2;
|
|
24446
|
-
let renderedName = /* @__PURE__ */ jsx(Name, {
|
|
25418
|
+
let renderedName = /* @__PURE__ */ jsxRuntime.exports.jsx(Name, {
|
|
24447
25419
|
name: name2,
|
|
24448
25420
|
icon: icon2,
|
|
24449
25421
|
testId: testId && `${testId}-name`
|
|
24450
25422
|
});
|
|
24451
25423
|
if (invalid) {
|
|
24452
|
-
renderedName = /* @__PURE__ */ jsx(Badge, {
|
|
25424
|
+
renderedName = /* @__PURE__ */ jsxRuntime.exports.jsx(Badge, {
|
|
24453
25425
|
small: true,
|
|
24454
25426
|
margin: "-2px",
|
|
24455
25427
|
title: "!",
|
|
24456
25428
|
children: renderedName
|
|
24457
25429
|
});
|
|
24458
25430
|
}
|
|
24459
|
-
return /* @__PURE__ */ jsxs("span", {
|
|
25431
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("span", {
|
|
24460
25432
|
className: listStyles.title,
|
|
24461
25433
|
children: [
|
|
24462
25434
|
renderedName,
|
|
24463
|
-
details2 && /* @__PURE__ */ jsx("span", {
|
|
25435
|
+
details2 && /* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
24464
25436
|
className: listStyles.details,
|
|
24465
25437
|
"data-testid": testId && `${testId}-details`,
|
|
24466
25438
|
children: details2
|
|
24467
25439
|
}),
|
|
24468
|
-
metadata2 && /* @__PURE__ */ jsx("span", {
|
|
25440
|
+
metadata2 && /* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
24469
25441
|
className: listStyles.metadata,
|
|
24470
25442
|
"data-testid": testId && `${testId}-metadata`,
|
|
24471
25443
|
children: metadata2
|
|
@@ -24474,7 +25446,7 @@ const MetaContent = ({ item: item2 }) => {
|
|
|
24474
25446
|
});
|
|
24475
25447
|
};
|
|
24476
25448
|
const MetaCount = ({ item: item2 }) => {
|
|
24477
|
-
return item2.metaCount !== void 0 && /* @__PURE__ */ jsx(Badge, {
|
|
25449
|
+
return item2.metaCount !== void 0 && /* @__PURE__ */ jsxRuntime.exports.jsx(Badge, {
|
|
24478
25450
|
color: "var(--color-text-faint)",
|
|
24479
25451
|
title: item2.metaCount
|
|
24480
25452
|
});
|
|
@@ -24484,7 +25456,7 @@ const ItemContent = ({ item: item2, expanding }) => {
|
|
|
24484
25456
|
evt.preventDefault();
|
|
24485
25457
|
evt.stopPropagation();
|
|
24486
25458
|
};
|
|
24487
|
-
return expanding && item2.active && item2.content ? /* @__PURE__ */ jsx("div", {
|
|
25459
|
+
return expanding && item2.active && item2.content ? /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
24488
25460
|
className: listStyles.itemContent,
|
|
24489
25461
|
onClick,
|
|
24490
25462
|
children: item2.content
|
|
@@ -24493,7 +25465,7 @@ const ItemContent = ({ item: item2, expanding }) => {
|
|
|
24493
25465
|
const ListSubheading = forwardRef(({ item: item2, index: index2 }, listRowRefs) => {
|
|
24494
25466
|
const disabledContext = useContext(DisabledContext);
|
|
24495
25467
|
const { actions: actions2, disabled: disabled2, expanded: expanded2, onClick, title: title2, name: name2, icon: icon2, testId } = item2;
|
|
24496
|
-
return /* @__PURE__ */ jsx("div", {
|
|
25468
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
24497
25469
|
ref: (el2) => listRowRefs ? listRowRefs.current[index2] = el2 : void 0,
|
|
24498
25470
|
"data-testid": testId != null ? testId : null,
|
|
24499
25471
|
className: cx$2(
|
|
@@ -24508,30 +25480,30 @@ const ListSubheading = forwardRef(({ item: item2, index: index2 }, listRowRefs)
|
|
|
24508
25480
|
}
|
|
24509
25481
|
},
|
|
24510
25482
|
title: title2,
|
|
24511
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
24512
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
25483
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
25484
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
24513
25485
|
className: listStyles.itemHeader,
|
|
24514
25486
|
children: [
|
|
24515
|
-
typeof expanded2 === "boolean" && /* @__PURE__ */ jsx("div", {
|
|
25487
|
+
typeof expanded2 === "boolean" && /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
24516
25488
|
className: cx$2(listStyles.expandIcon, expanded2 && listStyles.expanded),
|
|
24517
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
|
24518
|
-
icon: /* @__PURE__ */ jsx(FaAngleRight, {}),
|
|
25489
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Icon, {
|
|
25490
|
+
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(FaAngleRight, {}),
|
|
24519
25491
|
color: "#777"
|
|
24520
25492
|
})
|
|
24521
25493
|
}),
|
|
24522
|
-
/* @__PURE__ */ jsx(Name, {
|
|
25494
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Name, {
|
|
24523
25495
|
name: name2,
|
|
24524
25496
|
icon: icon2
|
|
24525
25497
|
}),
|
|
24526
|
-
/* @__PURE__ */ jsxs("div", {
|
|
25498
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
24527
25499
|
className: listStyles.right,
|
|
24528
25500
|
children: [
|
|
24529
|
-
/* @__PURE__ */ jsx(MetaCount, {
|
|
25501
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(MetaCount, {
|
|
24530
25502
|
item: item2
|
|
24531
25503
|
}),
|
|
24532
|
-
!(disabled2 || disabledContext) && item2.actions && /* @__PURE__ */ jsx("div", {
|
|
25504
|
+
!(disabled2 || disabledContext) && item2.actions && /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
24533
25505
|
className: listStyles.actions,
|
|
24534
|
-
children: /* @__PURE__ */ jsx(Actions, {
|
|
25506
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Actions, {
|
|
24535
25507
|
actions: item2.actions,
|
|
24536
25508
|
right: true
|
|
24537
25509
|
})
|
|
@@ -24597,42 +25569,42 @@ const ListRow = forwardRef(
|
|
|
24597
25569
|
"data-id": index2,
|
|
24598
25570
|
title: item2.title,
|
|
24599
25571
|
"data-testid": item2.testId
|
|
24600
|
-
}, /* @__PURE__ */ jsxs("div", {
|
|
25572
|
+
}, /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
24601
25573
|
ref: (el2) => listRowRefs.current[index2] = el2,
|
|
24602
25574
|
style: { paddingLeft: indent },
|
|
24603
25575
|
children: [
|
|
24604
|
-
/* @__PURE__ */ jsxs("div", {
|
|
25576
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
24605
25577
|
className: listStyles.itemHeader,
|
|
24606
25578
|
children: [
|
|
24607
|
-
draggable2 && /* @__PURE__ */ jsx("div", {
|
|
25579
|
+
draggable2 && /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
24608
25580
|
className: listStyles.drag,
|
|
24609
25581
|
...provided2.dragHandleProps,
|
|
24610
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
|
24611
|
-
icon: /* @__PURE__ */ jsx(GrDrag, {})
|
|
25582
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Icon, {
|
|
25583
|
+
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(GrDrag, {})
|
|
24612
25584
|
})
|
|
24613
25585
|
}),
|
|
24614
|
-
item2.level && item2.level > 0 ? /* @__PURE__ */ jsx("div", {
|
|
25586
|
+
item2.level && item2.level > 0 ? /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
24615
25587
|
className: listStyles.indentIcon,
|
|
24616
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
|
24617
|
-
icon: /* @__PURE__ */ jsx(BsArrowReturnRight, {}),
|
|
25588
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Icon, {
|
|
25589
|
+
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(BsArrowReturnRight, {}),
|
|
24618
25590
|
color: "#777"
|
|
24619
25591
|
})
|
|
24620
25592
|
}) : null,
|
|
24621
|
-
/* @__PURE__ */ jsx(Label$1, {
|
|
25593
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Label$1, {
|
|
24622
25594
|
label: item2.label
|
|
24623
25595
|
}),
|
|
24624
|
-
/* @__PURE__ */ jsx(MetaContent, {
|
|
25596
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(MetaContent, {
|
|
24625
25597
|
item: item2
|
|
24626
25598
|
}),
|
|
24627
|
-
/* @__PURE__ */ jsxs("div", {
|
|
25599
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
24628
25600
|
className: listStyles.right,
|
|
24629
25601
|
children: [
|
|
24630
|
-
/* @__PURE__ */ jsx(MetaCount, {
|
|
25602
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(MetaCount, {
|
|
24631
25603
|
item: item2
|
|
24632
25604
|
}),
|
|
24633
|
-
!(item2.disabled || disabledContext) && item2.actions && /* @__PURE__ */ jsx("div", {
|
|
25605
|
+
!(item2.disabled || disabledContext) && item2.actions && /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
24634
25606
|
className: listStyles.actions,
|
|
24635
|
-
children: /* @__PURE__ */ jsx(Actions, {
|
|
25607
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Actions, {
|
|
24636
25608
|
actions: item2.actions,
|
|
24637
25609
|
right: true
|
|
24638
25610
|
})
|
|
@@ -24641,14 +25613,14 @@ const ListRow = forwardRef(
|
|
|
24641
25613
|
})
|
|
24642
25614
|
]
|
|
24643
25615
|
}),
|
|
24644
|
-
/* @__PURE__ */ jsx(ItemContent, {
|
|
25616
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(ItemContent, {
|
|
24645
25617
|
item: item2,
|
|
24646
25618
|
expanding
|
|
24647
25619
|
})
|
|
24648
25620
|
]
|
|
24649
25621
|
}));
|
|
24650
25622
|
};
|
|
24651
|
-
return /* @__PURE__ */ jsxs(Fragment
|
|
25623
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
|
|
24652
25624
|
children: [
|
|
24653
25625
|
items.map((item2, index2) => {
|
|
24654
25626
|
const isSubheading = item2.type === "Heading";
|
|
@@ -24657,11 +25629,11 @@ const ListRow = forwardRef(
|
|
|
24657
25629
|
);
|
|
24658
25630
|
const hasOnClick = edit2 || item2.url || item2.onClick;
|
|
24659
25631
|
const indent = item2.level && item2.level > 1 ? (item2.level - 1) * 20 : 0;
|
|
24660
|
-
return isSubheading ? /* @__PURE__ */ jsx(ListSubheading, {
|
|
25632
|
+
return isSubheading ? /* @__PURE__ */ jsxRuntime.exports.jsx(ListSubheading, {
|
|
24661
25633
|
ref: listRowRefs,
|
|
24662
25634
|
item: item2,
|
|
24663
25635
|
index: index2
|
|
24664
|
-
}, index2) : draggable2 ? /* @__PURE__ */ jsx(PublicDraggable, {
|
|
25636
|
+
}, index2) : draggable2 ? /* @__PURE__ */ jsxRuntime.exports.jsx(PublicDraggable, {
|
|
24665
25637
|
draggableId: item2.id + "",
|
|
24666
25638
|
index: index2,
|
|
24667
25639
|
children: (provided2) => listElement(index2, provided2, item2, indent, hasOnClick, edit2)
|
|
@@ -24741,17 +25713,17 @@ const List = ({
|
|
|
24741
25713
|
setScrollToActiveItem(activeItemIndex);
|
|
24742
25714
|
}
|
|
24743
25715
|
}, [triggerScrollToActiveItem]);
|
|
24744
|
-
return /* @__PURE__ */ jsx(DragDropContext, {
|
|
25716
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(DragDropContext, {
|
|
24745
25717
|
onDragEnd: (result) => {
|
|
24746
25718
|
var _a, _b;
|
|
24747
25719
|
const from2 = (_a = result == null ? void 0 : result.source) == null ? void 0 : _a.index;
|
|
24748
25720
|
const to2 = (_b = result == null ? void 0 : result.destination) == null ? void 0 : _b.index;
|
|
24749
25721
|
onListReorder({ from: from2, to: to2 });
|
|
24750
25722
|
},
|
|
24751
|
-
children: /* @__PURE__ */ jsx(ConnectedDroppable, {
|
|
25723
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(ConnectedDroppable, {
|
|
24752
25724
|
droppableId: "droppable",
|
|
24753
25725
|
children: (provided, snapshot) => {
|
|
24754
|
-
return /* @__PURE__ */ jsx("div", {
|
|
25726
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
24755
25727
|
className: cx$2(
|
|
24756
25728
|
narrow2 ? listStyles.narrow : "",
|
|
24757
25729
|
scrollable ? listStyles.scrollableList : "",
|
|
@@ -24761,14 +25733,14 @@ const List = ({
|
|
|
24761
25733
|
id: "scrollableDiv",
|
|
24762
25734
|
style: { height, marginBottom },
|
|
24763
25735
|
ref: listContainerRef,
|
|
24764
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
25736
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
24765
25737
|
ref: provided.innerRef,
|
|
24766
25738
|
...provided.droppableProps,
|
|
24767
|
-
children: /* @__PURE__ */ jsxs(Card, {
|
|
25739
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsxs(Card, {
|
|
24768
25740
|
bordered: bordered2,
|
|
24769
25741
|
padding: false,
|
|
24770
25742
|
children: [
|
|
24771
|
-
!noHeader && /* @__PURE__ */ jsx(ListHeading, {
|
|
25743
|
+
!noHeader && /* @__PURE__ */ jsxRuntime.exports.jsx(ListHeading, {
|
|
24772
25744
|
name: list2.name,
|
|
24773
25745
|
actions: list2.actions,
|
|
24774
25746
|
toggleNarrow: toggleNarrow2,
|
|
@@ -24776,14 +25748,14 @@ const List = ({
|
|
|
24776
25748
|
stickyHeader: stickyHeader2,
|
|
24777
25749
|
ref: listHeadingRef
|
|
24778
25750
|
}),
|
|
24779
|
-
/* @__PURE__ */ jsx("div", {
|
|
25751
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
24780
25752
|
className: cx$2(listStyles.list, bordered2 ? listStyles.bordered : ""),
|
|
24781
|
-
children: infiniteScroll ? /* @__PURE__ */ jsx(InfiniteScroll, {
|
|
25753
|
+
children: infiniteScroll ? /* @__PURE__ */ jsxRuntime.exports.jsx(InfiniteScroll, {
|
|
24782
25754
|
dataLength: numVisibleRows,
|
|
24783
25755
|
next: loadMoreItems,
|
|
24784
25756
|
hasMore,
|
|
24785
25757
|
scrollableTarget: infiniteScrollTarget || "scrollableDiv",
|
|
24786
|
-
children: /* @__PURE__ */ jsx(ListRow, {
|
|
25758
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(ListRow, {
|
|
24787
25759
|
draggable: draggable2,
|
|
24788
25760
|
items: list2.items.slice(0, numVisibleRows),
|
|
24789
25761
|
expanding,
|
|
@@ -24793,7 +25765,7 @@ const List = ({
|
|
|
24793
25765
|
snapshot,
|
|
24794
25766
|
ref: listRowRefs
|
|
24795
25767
|
})
|
|
24796
|
-
}) : /* @__PURE__ */ jsx(ListRow, {
|
|
25768
|
+
}) : /* @__PURE__ */ jsxRuntime.exports.jsx(ListRow, {
|
|
24797
25769
|
draggable: draggable2,
|
|
24798
25770
|
items: list2.items,
|
|
24799
25771
|
expanding,
|
|
@@ -24929,26 +25901,26 @@ const Loader = ({
|
|
|
24929
25901
|
}) => {
|
|
24930
25902
|
const color2 = theme === "dark" ? "white" : "inherit";
|
|
24931
25903
|
const background2 = theme === "white" ? "var(--color-background-raised)" : theme === "light" ? "var(--color-background)" : "black";
|
|
24932
|
-
return /* @__PURE__ */ jsx("div", {
|
|
25904
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
24933
25905
|
className: cx$2(styles$s.loader, cover2 ? styles$s.cover : "", {
|
|
24934
25906
|
[styles$s.fullViewPortSize]: fullViewPortSize2
|
|
24935
25907
|
}),
|
|
24936
25908
|
style: { width, height },
|
|
24937
25909
|
"data-testid": testId,
|
|
24938
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
25910
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
24939
25911
|
className: styles$s.dimmer,
|
|
24940
25912
|
style: { background: background2, color: color2 },
|
|
24941
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
25913
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
24942
25914
|
className: styles$s.content,
|
|
24943
25915
|
"data-testid": testId && `${testId}-content`,
|
|
24944
25916
|
children: [
|
|
24945
25917
|
children,
|
|
24946
|
-
text2 !== "" && /* @__PURE__ */ jsx("div", {
|
|
25918
|
+
text2 !== "" && /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
24947
25919
|
className: styles$s.text,
|
|
24948
25920
|
"data-testid": testId && `${testId}-text`,
|
|
24949
25921
|
children: text2
|
|
24950
25922
|
}),
|
|
24951
|
-
details2 !== "" && /* @__PURE__ */ jsx("div", {
|
|
25923
|
+
details2 !== "" && /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
24952
25924
|
className: styles$s.details,
|
|
24953
25925
|
"data-testid": testId && `${testId}-details`,
|
|
24954
25926
|
children: details2
|
|
@@ -25025,13 +25997,13 @@ const styles$r = {
|
|
|
25025
25997
|
footer: footer$2
|
|
25026
25998
|
};
|
|
25027
25999
|
const Dismiss = ({ type, onClose, isInToast }) => {
|
|
25028
|
-
return /* @__PURE__ */ jsx("div", {
|
|
26000
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
25029
26001
|
className: cx$2(
|
|
25030
26002
|
styles$r.dismiss,
|
|
25031
26003
|
isInToast ? styles$r.absolute : "",
|
|
25032
26004
|
type === "Info" ? styles$r.info : type === "Success" ? styles$r.success : type === "Warning" ? styles$r.warning : type === "Error" ? styles$r.error : null
|
|
25033
26005
|
),
|
|
25034
|
-
children: /* @__PURE__ */ jsx(FaTimes, {
|
|
26006
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(FaTimes, {
|
|
25035
26007
|
onClick: onClose
|
|
25036
26008
|
})
|
|
25037
26009
|
});
|
|
@@ -25052,14 +26024,14 @@ const reducer$1 = (state, action2) => {
|
|
|
25052
26024
|
}
|
|
25053
26025
|
};
|
|
25054
26026
|
const Details = ({ details: details2, visible, dispatch }) => {
|
|
25055
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
26027
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
25056
26028
|
children: [
|
|
25057
|
-
/* @__PURE__ */ jsx("div", {
|
|
26029
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
25058
26030
|
className: cx$2(styles$r.legendToggle),
|
|
25059
26031
|
onClick: () => dispatch({ type: "TOGGLE_DETAILS" }),
|
|
25060
26032
|
children: visible ? "Hide details" : "Show details"
|
|
25061
26033
|
}),
|
|
25062
|
-
visible ? /* @__PURE__ */ jsx("div", {
|
|
26034
|
+
visible ? /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
25063
26035
|
className: styles$r.detailsText,
|
|
25064
26036
|
children: details2
|
|
25065
26037
|
}) : null
|
|
@@ -25070,19 +26042,19 @@ const DialogIcon = ({ type }) => {
|
|
|
25070
26042
|
const size2 = 16;
|
|
25071
26043
|
switch (type) {
|
|
25072
26044
|
case "Success":
|
|
25073
|
-
return /* @__PURE__ */ jsx(FaCheckCircle, {
|
|
26045
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaCheckCircle, {
|
|
25074
26046
|
size: size2
|
|
25075
26047
|
});
|
|
25076
26048
|
case "Warning":
|
|
25077
|
-
return /* @__PURE__ */ jsx(FaExclamationCircle, {
|
|
26049
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaExclamationCircle, {
|
|
25078
26050
|
size: size2
|
|
25079
26051
|
});
|
|
25080
26052
|
case "Error":
|
|
25081
|
-
return /* @__PURE__ */ jsx(FaExclamationTriangle, {
|
|
26053
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaExclamationTriangle, {
|
|
25082
26054
|
size: size2
|
|
25083
26055
|
});
|
|
25084
26056
|
default:
|
|
25085
|
-
return /* @__PURE__ */ jsx(FaInfoCircle, {
|
|
26057
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(FaInfoCircle, {
|
|
25086
26058
|
size: size2
|
|
25087
26059
|
});
|
|
25088
26060
|
}
|
|
@@ -25102,8 +26074,8 @@ const Message = ({ message: message2 }) => {
|
|
|
25102
26074
|
maxHeight: maxHeight2
|
|
25103
26075
|
} = message2;
|
|
25104
26076
|
const [state, dispatch] = useReducer(reducer$1, initialState$4);
|
|
25105
|
-
return /* @__PURE__ */ jsx(Fragment
|
|
25106
|
-
children: visible ? /* @__PURE__ */ jsxs("div", {
|
|
26077
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment, {
|
|
26078
|
+
children: visible ? /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
25107
26079
|
className: cx$2(
|
|
25108
26080
|
styles$r.container,
|
|
25109
26081
|
width ? styles$r.block : null,
|
|
@@ -25111,36 +26083,36 @@ const Message = ({ message: message2 }) => {
|
|
|
25111
26083
|
),
|
|
25112
26084
|
style: { width, maxHeight: maxHeight2 },
|
|
25113
26085
|
children: [
|
|
25114
|
-
/* @__PURE__ */ jsx("div", {
|
|
25115
|
-
children: icon2 ? /* @__PURE__ */ jsx("div", {
|
|
26086
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
26087
|
+
children: icon2 ? /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
25116
26088
|
className: styles$r.icon,
|
|
25117
|
-
children: /* @__PURE__ */ jsx(DialogIcon, {
|
|
26089
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(DialogIcon, {
|
|
25118
26090
|
type
|
|
25119
26091
|
})
|
|
25120
26092
|
}) : null
|
|
25121
26093
|
}),
|
|
25122
|
-
/* @__PURE__ */ jsxs("div", {
|
|
26094
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
25123
26095
|
className: styles$r.content,
|
|
25124
26096
|
children: [
|
|
25125
|
-
heading2 ? /* @__PURE__ */ jsx("div", {
|
|
26097
|
+
heading2 ? /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
25126
26098
|
className: styles$r.heading,
|
|
25127
26099
|
children: heading2
|
|
25128
26100
|
}) : null,
|
|
25129
|
-
/* @__PURE__ */ jsx("div", {
|
|
26101
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
25130
26102
|
children: content2
|
|
25131
26103
|
}),
|
|
25132
|
-
details2 ? /* @__PURE__ */ jsx(Details, {
|
|
26104
|
+
details2 ? /* @__PURE__ */ jsxRuntime.exports.jsx(Details, {
|
|
25133
26105
|
details: details2,
|
|
25134
26106
|
visible: state.detailsVisible,
|
|
25135
26107
|
dispatch: () => dispatch({ type: "TOGGLE_DETAILS" })
|
|
25136
26108
|
}) : null,
|
|
25137
|
-
!!footer2 && /* @__PURE__ */ jsx("div", {
|
|
26109
|
+
!!footer2 && /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
25138
26110
|
className: styles$r.footer,
|
|
25139
26111
|
children: footer2
|
|
25140
26112
|
})
|
|
25141
26113
|
]
|
|
25142
26114
|
}),
|
|
25143
|
-
withDismiss ? /* @__PURE__ */ jsx(Dismiss, {
|
|
26115
|
+
withDismiss ? /* @__PURE__ */ jsxRuntime.exports.jsx(Dismiss, {
|
|
25144
26116
|
type,
|
|
25145
26117
|
onClose
|
|
25146
26118
|
}) : null
|
|
@@ -25194,31 +26166,31 @@ const styles$q = {
|
|
|
25194
26166
|
centered,
|
|
25195
26167
|
newLine
|
|
25196
26168
|
};
|
|
25197
|
-
const Wrapper = ({ children }) => /* @__PURE__ */ jsx("div", {
|
|
26169
|
+
const Wrapper = ({ children }) => /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
25198
26170
|
className: cx$2(styles$q.wrapper),
|
|
25199
26171
|
children
|
|
25200
26172
|
});
|
|
25201
26173
|
const Content$2 = ({ children, width, centered: centered2 }) => {
|
|
25202
|
-
return /* @__PURE__ */ jsx("div", {
|
|
26174
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
25203
26175
|
className: cx$2(styles$q.contentContainer, centered2 ? styles$q.centered : ""),
|
|
25204
26176
|
style: { maxWidth: width },
|
|
25205
26177
|
children
|
|
25206
26178
|
});
|
|
25207
26179
|
};
|
|
25208
26180
|
const Modal = ({ children, visible, centered: centered2, width }) => {
|
|
25209
|
-
return /* @__PURE__ */ jsxs(Fragment
|
|
26181
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
|
|
25210
26182
|
children: [
|
|
25211
|
-
/* @__PURE__ */ jsx(Portal, {
|
|
26183
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Portal, {
|
|
25212
26184
|
id: "modalContainer",
|
|
25213
|
-
children: visible ? /* @__PURE__ */ jsx(Wrapper, {
|
|
25214
|
-
children: /* @__PURE__ */ jsx(Content$2, {
|
|
26185
|
+
children: visible ? /* @__PURE__ */ jsxRuntime.exports.jsx(Wrapper, {
|
|
26186
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Content$2, {
|
|
25215
26187
|
width,
|
|
25216
26188
|
centered: centered2,
|
|
25217
26189
|
children
|
|
25218
26190
|
})
|
|
25219
26191
|
}) : null
|
|
25220
26192
|
}),
|
|
25221
|
-
/* @__PURE__ */ jsx("div", {
|
|
26193
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
25222
26194
|
id: "modalContainer"
|
|
25223
26195
|
})
|
|
25224
26196
|
]
|
|
@@ -25247,9 +26219,9 @@ const styles$p = {
|
|
|
25247
26219
|
};
|
|
25248
26220
|
const Option$1 = ({ option: option2, onChange }) => {
|
|
25249
26221
|
const { key: key2, label: label2, selected: selected2 } = option2;
|
|
25250
|
-
return /* @__PURE__ */ jsx("div", {
|
|
26222
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
25251
26223
|
className: styles$p.item,
|
|
25252
|
-
children: /* @__PURE__ */ jsx(CheckBox, {
|
|
26224
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(CheckBox, {
|
|
25253
26225
|
label: label2,
|
|
25254
26226
|
noMargin: true,
|
|
25255
26227
|
checked: selected2,
|
|
@@ -25257,21 +26229,21 @@ const Option$1 = ({ option: option2, onChange }) => {
|
|
|
25257
26229
|
})
|
|
25258
26230
|
}, key2);
|
|
25259
26231
|
};
|
|
25260
|
-
const Heading$1 = ({ label: label2 }) => /* @__PURE__ */ jsx("div", {
|
|
26232
|
+
const Heading$1 = ({ label: label2 }) => /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
25261
26233
|
className: styles$p.heading,
|
|
25262
26234
|
children: label2
|
|
25263
26235
|
});
|
|
25264
26236
|
const Layer$1 = ({ options, onChangeOptions, showHeader, maxHeight: maxHeight2 }) => {
|
|
25265
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
26237
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
25266
26238
|
className: cx$2("menu", styles$p.menu),
|
|
25267
26239
|
style: { maxHeight: maxHeight2 },
|
|
25268
26240
|
children: [
|
|
25269
|
-
showHeader && /* @__PURE__ */ jsxs(Fragment
|
|
26241
|
+
showHeader && /* @__PURE__ */ jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
|
|
25270
26242
|
children: [
|
|
25271
|
-
/* @__PURE__ */ jsxs("div", {
|
|
26243
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
25272
26244
|
className: styles$p.header,
|
|
25273
26245
|
children: [
|
|
25274
|
-
/* @__PURE__ */ jsx("a", {
|
|
26246
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("a", {
|
|
25275
26247
|
onClick: (evt) => {
|
|
25276
26248
|
const next2 = options.map((option2) => ({
|
|
25277
26249
|
...option2,
|
|
@@ -25281,7 +26253,7 @@ const Layer$1 = ({ options, onChangeOptions, showHeader, maxHeight: maxHeight2 }
|
|
|
25281
26253
|
},
|
|
25282
26254
|
children: "All"
|
|
25283
26255
|
}),
|
|
25284
|
-
/* @__PURE__ */ jsx("a", {
|
|
26256
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("a", {
|
|
25285
26257
|
onClick: (evt) => {
|
|
25286
26258
|
const next2 = options.map((option2) => ({
|
|
25287
26259
|
...option2,
|
|
@@ -25291,7 +26263,7 @@ const Layer$1 = ({ options, onChangeOptions, showHeader, maxHeight: maxHeight2 }
|
|
|
25291
26263
|
},
|
|
25292
26264
|
children: "Clear"
|
|
25293
26265
|
}),
|
|
25294
|
-
/* @__PURE__ */ jsx("a", {
|
|
26266
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("a", {
|
|
25295
26267
|
onClick: (evt) => {
|
|
25296
26268
|
const next2 = options.map((option2) => ({
|
|
25297
26269
|
...option2,
|
|
@@ -25303,7 +26275,7 @@ const Layer$1 = ({ options, onChangeOptions, showHeader, maxHeight: maxHeight2 }
|
|
|
25303
26275
|
})
|
|
25304
26276
|
]
|
|
25305
26277
|
}),
|
|
25306
|
-
/* @__PURE__ */ jsx(Divider, {
|
|
26278
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Divider, {
|
|
25307
26279
|
margin: "7px"
|
|
25308
26280
|
})
|
|
25309
26281
|
]
|
|
@@ -25311,15 +26283,15 @@ const Layer$1 = ({ options, onChangeOptions, showHeader, maxHeight: maxHeight2 }
|
|
|
25311
26283
|
options.map((option2, index2) => {
|
|
25312
26284
|
switch (option2.type) {
|
|
25313
26285
|
case "Heading":
|
|
25314
|
-
return /* @__PURE__ */ jsx(Heading$1, {
|
|
26286
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Heading$1, {
|
|
25315
26287
|
label: option2.label
|
|
25316
26288
|
}, index2);
|
|
25317
26289
|
case "Divider":
|
|
25318
|
-
return /* @__PURE__ */ jsx(Divider, {
|
|
26290
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Divider, {
|
|
25319
26291
|
margin: "7px"
|
|
25320
26292
|
}, index2);
|
|
25321
26293
|
default:
|
|
25322
|
-
return /* @__PURE__ */ jsx(Option$1, {
|
|
26294
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Option$1, {
|
|
25323
26295
|
option: option2,
|
|
25324
26296
|
onChange: (evt) => {
|
|
25325
26297
|
const { value } = option2;
|
|
@@ -25342,12 +26314,12 @@ const OptionDropdown = ({
|
|
|
25342
26314
|
showHeader,
|
|
25343
26315
|
maxHeight: maxHeight2
|
|
25344
26316
|
}) => {
|
|
25345
|
-
return /* @__PURE__ */ jsx(Menu, {
|
|
26317
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Menu, {
|
|
25346
26318
|
menu: {
|
|
25347
26319
|
label: label2,
|
|
25348
26320
|
trigger: "DropDownButton",
|
|
25349
26321
|
possiblePlacements: ["top-start", "bottom-start"],
|
|
25350
|
-
sections: /* @__PURE__ */ jsx(Layer$1, {
|
|
26322
|
+
sections: /* @__PURE__ */ jsxRuntime.exports.jsx(Layer$1, {
|
|
25351
26323
|
options,
|
|
25352
26324
|
onChangeOptions: (evt, nextOptions) => {
|
|
25353
26325
|
evt.stopPropagation();
|
|
@@ -25388,7 +26360,7 @@ const styles$o = {
|
|
|
25388
26360
|
};
|
|
25389
26361
|
const Page = ({ children, left: left2, padding: paddingProp, scroll: scroll3, top: top2 }) => {
|
|
25390
26362
|
const padding2 = typeof paddingProp === "string" ? paddingProp : paddingProp === true ? "20px" : "0";
|
|
25391
|
-
return /* @__PURE__ */ jsx("div", {
|
|
26363
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
25392
26364
|
className: cx$2(styles$o.page, scroll3 ? styles$o.scroll : ""),
|
|
25393
26365
|
style: { left: left2, padding: padding2, top: top2 },
|
|
25394
26366
|
children
|
|
@@ -25475,7 +26447,7 @@ const NativeSelect = ({
|
|
|
25475
26447
|
const internalValue = selectedOption === null ? "unselected" : selectedOption.value === null ? "unselected" : selectedOption.value;
|
|
25476
26448
|
const isUnselected = internalValue === "unselected";
|
|
25477
26449
|
const viewOptions = (internalValue === "unselected" || clearable ? [
|
|
25478
|
-
/* @__PURE__ */ jsx("option", {
|
|
26450
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("option", {
|
|
25479
26451
|
value: "unselected",
|
|
25480
26452
|
disabled: !clearable,
|
|
25481
26453
|
hidden: !clearable,
|
|
@@ -25483,7 +26455,7 @@ const NativeSelect = ({
|
|
|
25483
26455
|
}, "unselected")
|
|
25484
26456
|
] : []).concat(
|
|
25485
26457
|
hasNonExistentValue ? [
|
|
25486
|
-
/* @__PURE__ */ jsx("option", {
|
|
26458
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("option", {
|
|
25487
26459
|
value: selectedOption.value,
|
|
25488
26460
|
disabled: disabled2 || disabledContext,
|
|
25489
26461
|
children: selectedOption.label
|
|
@@ -25491,7 +26463,7 @@ const NativeSelect = ({
|
|
|
25491
26463
|
] : []
|
|
25492
26464
|
).concat(
|
|
25493
26465
|
options.map((option2, i) => {
|
|
25494
|
-
return /* @__PURE__ */ jsx("option", {
|
|
26466
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("option", {
|
|
25495
26467
|
value: option2.value,
|
|
25496
26468
|
"data-testid": option2.testId,
|
|
25497
26469
|
children: option2.label
|
|
@@ -25511,14 +26483,14 @@ const NativeSelect = ({
|
|
|
25511
26483
|
}
|
|
25512
26484
|
return "";
|
|
25513
26485
|
})();
|
|
25514
|
-
return /* @__PURE__ */ jsx(Tooltip, {
|
|
26486
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Tooltip, {
|
|
25515
26487
|
error: !!error2,
|
|
25516
26488
|
warning: !!warning2,
|
|
25517
26489
|
text: tooltip2 || error2 || warning2,
|
|
25518
26490
|
enabled: tooltip2 && isStringNumberOrNode(tooltip2) || error2 && isStringNumberOrNode(error2) || warning2 && isStringNumberOrNode(warning2) || false,
|
|
25519
26491
|
maxWidth: maxTooltipWidth,
|
|
25520
26492
|
placement: "bottom-center",
|
|
25521
|
-
children: /* @__PURE__ */ jsx("select", {
|
|
26493
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("select", {
|
|
25522
26494
|
className: cx$2(
|
|
25523
26495
|
styles$n.select,
|
|
25524
26496
|
isUnselected ? styles$n.unSelected : "",
|
|
@@ -26414,7 +27386,7 @@ const styles$m = {
|
|
|
26414
27386
|
details
|
|
26415
27387
|
};
|
|
26416
27388
|
const Heading = ({ label: label2 }) => {
|
|
26417
|
-
return /* @__PURE__ */ jsx("div", {
|
|
27389
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
26418
27390
|
onClick: (evt) => evt.stopPropagation(),
|
|
26419
27391
|
className: styles$m.heading,
|
|
26420
27392
|
children: label2
|
|
@@ -26432,7 +27404,7 @@ const Option = ({
|
|
|
26432
27404
|
closeLayer,
|
|
26433
27405
|
testId
|
|
26434
27406
|
}) => {
|
|
26435
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
27407
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
26436
27408
|
className: cx$2(
|
|
26437
27409
|
styles$m.option,
|
|
26438
27410
|
disabled2 ? styles$m.disabled : "",
|
|
@@ -26443,38 +27415,38 @@ const Option = ({
|
|
|
26443
27415
|
},
|
|
26444
27416
|
"data-testid": testId,
|
|
26445
27417
|
children: [
|
|
26446
|
-
/* @__PURE__ */ jsx("div", {
|
|
27418
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
26447
27419
|
className: styles$m.optionContent,
|
|
26448
|
-
children: /* @__PURE__ */ jsxs("span", {
|
|
27420
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsxs("span", {
|
|
26449
27421
|
className: styles$m.label,
|
|
26450
27422
|
title: label2,
|
|
26451
27423
|
children: [
|
|
26452
27424
|
label2,
|
|
26453
|
-
icon2 && /* @__PURE__ */ jsx("span", {
|
|
27425
|
+
icon2 && /* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
26454
27426
|
className: styles$m.icon,
|
|
26455
27427
|
children: icon2
|
|
26456
27428
|
})
|
|
26457
27429
|
]
|
|
26458
27430
|
})
|
|
26459
27431
|
}),
|
|
26460
|
-
details2 && /* @__PURE__ */ jsx("div", {
|
|
27432
|
+
details2 && /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
26461
27433
|
className: cx$2(styles$m.details),
|
|
26462
|
-
children: /* @__PURE__ */ jsx(Text, {
|
|
27434
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Text, {
|
|
26463
27435
|
faint: true,
|
|
26464
27436
|
children: details2
|
|
26465
27437
|
})
|
|
26466
27438
|
}),
|
|
26467
|
-
!!(actions2 == null ? void 0 : actions2.length) && /* @__PURE__ */ jsx("div", {
|
|
27439
|
+
!!(actions2 == null ? void 0 : actions2.length) && /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
26468
27440
|
className: cx$2(styles$m.actions),
|
|
26469
|
-
children: /* @__PURE__ */ jsx(Actions, {
|
|
27441
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Actions, {
|
|
26470
27442
|
actions: actions2,
|
|
26471
27443
|
closeLayer,
|
|
26472
27444
|
right: true
|
|
26473
27445
|
})
|
|
26474
27446
|
}),
|
|
26475
|
-
/* @__PURE__ */ jsx("span", {
|
|
27447
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
26476
27448
|
className: styles$m.check,
|
|
26477
|
-
children: selected2 ? /* @__PURE__ */ jsx(FaCheck, {}) : null
|
|
27449
|
+
children: selected2 ? /* @__PURE__ */ jsxRuntime.exports.jsx(FaCheck, {}) : null
|
|
26478
27450
|
})
|
|
26479
27451
|
]
|
|
26480
27452
|
});
|
|
@@ -26489,12 +27461,12 @@ const Section = ({
|
|
|
26489
27461
|
const disabledContext = useContext(DisabledContext);
|
|
26490
27462
|
switch (section.type) {
|
|
26491
27463
|
case "Heading":
|
|
26492
|
-
return /* @__PURE__ */ jsx(Heading, {
|
|
27464
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Heading, {
|
|
26493
27465
|
label: section.label
|
|
26494
27466
|
});
|
|
26495
27467
|
case "Option":
|
|
26496
27468
|
default:
|
|
26497
|
-
return /* @__PURE__ */ jsx(Option, {
|
|
27469
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Option, {
|
|
26498
27470
|
closeLayer,
|
|
26499
27471
|
actions: section.actions,
|
|
26500
27472
|
label: section.label,
|
|
@@ -26527,26 +27499,26 @@ const Layer = ({
|
|
|
26527
27499
|
}
|
|
26528
27500
|
}, []);
|
|
26529
27501
|
const optionHeight = small2 ? 24 : 38;
|
|
26530
|
-
return /* @__PURE__ */ jsx("div", {
|
|
27502
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
26531
27503
|
"data-testid": testId,
|
|
26532
27504
|
className: cx$2(styles$m.layer, small2 && styles$m.small),
|
|
26533
|
-
children: !sections.length ? /* @__PURE__ */ jsx("ul", {
|
|
26534
|
-
children: /* @__PURE__ */ jsx("li", {
|
|
26535
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
27505
|
+
children: !sections.length ? /* @__PURE__ */ jsxRuntime.exports.jsx("ul", {
|
|
27506
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("li", {
|
|
27507
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
26536
27508
|
className: styles$m.message,
|
|
26537
27509
|
style: { width },
|
|
26538
27510
|
children: "No matches"
|
|
26539
27511
|
})
|
|
26540
27512
|
})
|
|
26541
|
-
}) : /* @__PURE__ */ jsx(FixedSizeList, {
|
|
27513
|
+
}) : /* @__PURE__ */ jsxRuntime.exports.jsx(FixedSizeList, {
|
|
26542
27514
|
ref: listRef,
|
|
26543
27515
|
height: sections.length < 10 ? optionHeight * sections.length : optionHeight * 10,
|
|
26544
27516
|
itemCount: sections.length,
|
|
26545
27517
|
itemSize: optionHeight,
|
|
26546
27518
|
width,
|
|
26547
|
-
children: ({ index: index2, style: style2 }) => /* @__PURE__ */ jsx("div", {
|
|
27519
|
+
children: ({ index: index2, style: style2 }) => /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
26548
27520
|
style: style2,
|
|
26549
|
-
children: /* @__PURE__ */ jsx(Section, {
|
|
27521
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Section, {
|
|
26550
27522
|
closeLayer,
|
|
26551
27523
|
section: sections[index2],
|
|
26552
27524
|
selected: isMulti2 && sections[index2].type !== "Heading" && selectedOptions ? selectedOptions.some(
|
|
@@ -26696,22 +27668,22 @@ const MultiSelectedOptions = ({ selectedOptions, small: small2, width }) => {
|
|
|
26696
27668
|
setDisplayedOptions(displayed);
|
|
26697
27669
|
setOverflowOptions(overflow);
|
|
26698
27670
|
}, [selectedOptions, isFontLoaded, width]);
|
|
26699
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
27671
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
26700
27672
|
className: styles$l.multiOptions,
|
|
26701
27673
|
children: [
|
|
26702
|
-
displayedOptions.filter((option2) => option2 && option2.label).map((option2, index2) => /* @__PURE__ */ jsx("span", {
|
|
27674
|
+
displayedOptions.filter((option2) => option2 && option2.label).map((option2, index2) => /* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
26703
27675
|
className: styles$l.multiOption,
|
|
26704
27676
|
onClick: (evt) => {
|
|
26705
27677
|
evt.stopPropagation();
|
|
26706
27678
|
},
|
|
26707
27679
|
children: option2.label
|
|
26708
27680
|
}, index2)),
|
|
26709
|
-
overflowOptions.length > 0 && /* @__PURE__ */ jsx(Tooltip, {
|
|
26710
|
-
text: overflowOptions.map((option2, index2) => /* @__PURE__ */ jsx("div", {
|
|
27681
|
+
overflowOptions.length > 0 && /* @__PURE__ */ jsxRuntime.exports.jsx(Tooltip, {
|
|
27682
|
+
text: overflowOptions.map((option2, index2) => /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
26711
27683
|
children: option2.label
|
|
26712
27684
|
}, index2)),
|
|
26713
27685
|
display: "inline-flex",
|
|
26714
|
-
children: /* @__PURE__ */ jsx("span", {
|
|
27686
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
26715
27687
|
className: styles$l.multiOption,
|
|
26716
27688
|
children: displayedOptions.length ? `+${overflowOptions.length}` : `${overflowOptions.length} items`
|
|
26717
27689
|
})
|
|
@@ -26737,22 +27709,22 @@ const Input = ({
|
|
|
26737
27709
|
var _a, _b;
|
|
26738
27710
|
return ((_a = containerRef == null ? void 0 : containerRef.current) == null ? void 0 : _a.offsetWidth) - ((_b = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _b.offsetWidth);
|
|
26739
27711
|
};
|
|
26740
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
27712
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
26741
27713
|
className: styles$l.triggerInputContainer,
|
|
26742
27714
|
ref: containerRef,
|
|
26743
27715
|
children: [
|
|
26744
|
-
!hasSelectedValues ? /* @__PURE__ */ jsx("span", {
|
|
27716
|
+
!hasSelectedValues ? /* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
26745
27717
|
className: styles$l.placeHolder,
|
|
26746
27718
|
children: !searchValue.length ? placeholder3 : ""
|
|
26747
|
-
}) : isMulti2 ? /* @__PURE__ */ jsx(MultiSelectedOptions, {
|
|
27719
|
+
}) : isMulti2 ? /* @__PURE__ */ jsxRuntime.exports.jsx(MultiSelectedOptions, {
|
|
26748
27720
|
selectedOptions,
|
|
26749
27721
|
small: small2,
|
|
26750
27722
|
width: getMultiOptionsWidth()
|
|
26751
|
-
}) : /* @__PURE__ */ jsx("span", {
|
|
27723
|
+
}) : /* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
26752
27724
|
className: styles$l.selectedSingleValue,
|
|
26753
27725
|
children: !searchValue.length ? selectedOptions.label : ""
|
|
26754
27726
|
}),
|
|
26755
|
-
searchable ? /* @__PURE__ */ jsx("input", {
|
|
27727
|
+
searchable ? /* @__PURE__ */ jsxRuntime.exports.jsx("input", {
|
|
26756
27728
|
tabIndex: -1,
|
|
26757
27729
|
ref: inputRef,
|
|
26758
27730
|
size: inputSize,
|
|
@@ -26815,23 +27787,23 @@ const Trigger = ({
|
|
|
26815
27787
|
})();
|
|
26816
27788
|
const selectedOptionsWithDetails = (selectedOptions == null ? void 0 : selectedOptions.details) ? {
|
|
26817
27789
|
...selectedOptions,
|
|
26818
|
-
label: /* @__PURE__ */ jsxs("div", {
|
|
27790
|
+
label: /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
26819
27791
|
className: cx$2(styles$l.detailedLabel),
|
|
26820
27792
|
children: [
|
|
26821
|
-
/* @__PURE__ */ jsx(Text, {
|
|
27793
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Text, {
|
|
26822
27794
|
children: selectedOptions.label
|
|
26823
27795
|
}),
|
|
26824
|
-
/* @__PURE__ */ jsx(Text, {
|
|
27796
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Text, {
|
|
26825
27797
|
faint: true,
|
|
26826
27798
|
children: selectedOptions.details
|
|
26827
27799
|
})
|
|
26828
27800
|
]
|
|
26829
27801
|
})
|
|
26830
27802
|
} : selectedOptions;
|
|
26831
|
-
const triggerInput = /* @__PURE__ */ jsxs(Fragment
|
|
27803
|
+
const triggerInput = /* @__PURE__ */ jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
|
|
26832
27804
|
children: [
|
|
26833
27805
|
element,
|
|
26834
|
-
/* @__PURE__ */ jsxs("div", {
|
|
27806
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
26835
27807
|
ref: triggerRef,
|
|
26836
27808
|
tabIndex,
|
|
26837
27809
|
className: cx$2(
|
|
@@ -26853,7 +27825,7 @@ const Trigger = ({
|
|
|
26853
27825
|
onBlur,
|
|
26854
27826
|
"data-testid": testId,
|
|
26855
27827
|
children: [
|
|
26856
|
-
/* @__PURE__ */ jsx(Input, {
|
|
27828
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Input, {
|
|
26857
27829
|
selectedOptions: selectedOptionsWithDetails,
|
|
26858
27830
|
placeholder: placeholder3,
|
|
26859
27831
|
searchable,
|
|
@@ -26865,9 +27837,9 @@ const Trigger = ({
|
|
|
26865
27837
|
focusedSelectedOptionIndex,
|
|
26866
27838
|
small: small2
|
|
26867
27839
|
}),
|
|
26868
|
-
/* @__PURE__ */ jsx("span", {
|
|
27840
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
26869
27841
|
className: styles$l.icons,
|
|
26870
|
-
children: canClear ? /* @__PURE__ */ jsx("span", {
|
|
27842
|
+
children: canClear ? /* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
26871
27843
|
className: cx$2(
|
|
26872
27844
|
styles$l.clearAll,
|
|
26873
27845
|
clearAllIsFocused ? styles$l.focus : ""
|
|
@@ -26876,10 +27848,10 @@ const Trigger = ({
|
|
|
26876
27848
|
evt.stopPropagation();
|
|
26877
27849
|
onClickClear(evt);
|
|
26878
27850
|
},
|
|
26879
|
-
children: /* @__PURE__ */ jsx(FaTimes, {
|
|
27851
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(FaTimes, {
|
|
26880
27852
|
className: cx$2(styles$l.iconClear)
|
|
26881
27853
|
})
|
|
26882
|
-
}) : /* @__PURE__ */ jsx("span", {
|
|
27854
|
+
}) : /* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
26883
27855
|
className: cx$2(styles$l.iconOpen)
|
|
26884
27856
|
})
|
|
26885
27857
|
})
|
|
@@ -26887,8 +27859,8 @@ const Trigger = ({
|
|
|
26887
27859
|
})
|
|
26888
27860
|
]
|
|
26889
27861
|
});
|
|
26890
|
-
return /* @__PURE__ */ jsx(Fragment
|
|
26891
|
-
children: /* @__PURE__ */ jsx(Tooltip, {
|
|
27862
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment, {
|
|
27863
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Tooltip, {
|
|
26892
27864
|
error: !!error2,
|
|
26893
27865
|
warning: !!warning2,
|
|
26894
27866
|
text: tooltip2 || error2 || warning2,
|
|
@@ -27270,14 +28242,14 @@ const CustomSelect = ({
|
|
|
27270
28242
|
}
|
|
27271
28243
|
}
|
|
27272
28244
|
};
|
|
27273
|
-
return /* @__PURE__ */ jsx("div", {
|
|
28245
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
27274
28246
|
style: { width: getTriggerWidth() },
|
|
27275
28247
|
className: styles$m.wrapper,
|
|
27276
|
-
children: /* @__PURE__ */ jsxs(KeyboardEventHandler, {
|
|
28248
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsxs(KeyboardEventHandler, {
|
|
27277
28249
|
handleKeys: ["tab", "up", "down", "left", "right", "enter", "esc"],
|
|
27278
28250
|
onKeyEvent,
|
|
27279
28251
|
children: [
|
|
27280
|
-
/* @__PURE__ */ jsx(Trigger, {
|
|
28252
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Trigger, {
|
|
27281
28253
|
selectedOptions,
|
|
27282
28254
|
searchValue: state.searchValue,
|
|
27283
28255
|
isOpen: state.isLayerOpen,
|
|
@@ -27306,10 +28278,10 @@ const CustomSelect = ({
|
|
|
27306
28278
|
testId
|
|
27307
28279
|
}),
|
|
27308
28280
|
state.isLayerOpen && renderLayer(
|
|
27309
|
-
/* @__PURE__ */ jsx("div", {
|
|
28281
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
27310
28282
|
...layerProps,
|
|
27311
28283
|
className: styles$m.layerContainer,
|
|
27312
|
-
children: /* @__PURE__ */ jsx(Layer, {
|
|
28284
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Layer, {
|
|
27313
28285
|
listRef,
|
|
27314
28286
|
isMulti: isMulti2,
|
|
27315
28287
|
sections: state.visibleOptions,
|
|
@@ -27535,22 +28507,22 @@ const Select = (props) => {
|
|
|
27535
28507
|
console.warn("Native select does not support provided props (see stories)");
|
|
27536
28508
|
}
|
|
27537
28509
|
const nonExistentWarning = "Value no longer available for re-selection";
|
|
27538
|
-
const fullWarning = hasNonExistentValue ? warning2 ? /* @__PURE__ */ jsxs("div", {
|
|
28510
|
+
const fullWarning = hasNonExistentValue ? warning2 ? /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
27539
28511
|
children: [
|
|
27540
|
-
/* @__PURE__ */ jsx("div", {
|
|
28512
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
27541
28513
|
children: nonExistentWarning
|
|
27542
28514
|
}),
|
|
27543
|
-
/* @__PURE__ */ jsx("div", {
|
|
28515
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
27544
28516
|
children: warning2
|
|
27545
28517
|
})
|
|
27546
28518
|
]
|
|
27547
28519
|
}) : nonExistentWarning : warning2;
|
|
27548
|
-
const fullError = hasNonExistentValue && error2 ? /* @__PURE__ */ jsxs("div", {
|
|
28520
|
+
const fullError = hasNonExistentValue && error2 ? /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
27549
28521
|
children: [
|
|
27550
|
-
/* @__PURE__ */ jsx("div", {
|
|
28522
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
27551
28523
|
children: nonExistentWarning
|
|
27552
28524
|
}),
|
|
27553
|
-
/* @__PURE__ */ jsx("div", {
|
|
28525
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
27554
28526
|
children: error2
|
|
27555
28527
|
})
|
|
27556
28528
|
]
|
|
@@ -27582,7 +28554,7 @@ const Select = (props) => {
|
|
|
27582
28554
|
}
|
|
27583
28555
|
}
|
|
27584
28556
|
};
|
|
27585
|
-
return useNative ? /* @__PURE__ */ jsx(NativeSelect, {
|
|
28557
|
+
return useNative ? /* @__PURE__ */ jsxRuntime.exports.jsx(NativeSelect, {
|
|
27586
28558
|
...props,
|
|
27587
28559
|
options,
|
|
27588
28560
|
selectedOption: selectedOptions,
|
|
@@ -27591,7 +28563,7 @@ const Select = (props) => {
|
|
|
27591
28563
|
warning: fullWarning,
|
|
27592
28564
|
error: fullError,
|
|
27593
28565
|
testId
|
|
27594
|
-
}) : /* @__PURE__ */ jsx(CustomSelect, {
|
|
28566
|
+
}) : /* @__PURE__ */ jsxRuntime.exports.jsx(CustomSelect, {
|
|
27595
28567
|
...props,
|
|
27596
28568
|
options,
|
|
27597
28569
|
selectedOptions,
|
|
@@ -27746,12 +28718,12 @@ const Pagination = ({ pagination: pagination2 }) => {
|
|
|
27746
28718
|
onSelectPage(Number(value));
|
|
27747
28719
|
}
|
|
27748
28720
|
};
|
|
27749
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
28721
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
27750
28722
|
className: styles$k.paginationContainer,
|
|
27751
28723
|
children: [
|
|
27752
|
-
rowsPerPage && /* @__PURE__ */ jsx("div", {
|
|
28724
|
+
rowsPerPage && /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
27753
28725
|
style: { flexShrink: 0 },
|
|
27754
|
-
children: /* @__PURE__ */ jsx(Select, {
|
|
28726
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Select, {
|
|
27755
28727
|
onChange: (evt) => {
|
|
27756
28728
|
rowsPerPage.onChange(evt);
|
|
27757
28729
|
setSelectedPage(String(1));
|
|
@@ -27763,25 +28735,25 @@ const Pagination = ({ pagination: pagination2 }) => {
|
|
|
27763
28735
|
value: rowsPerPage.value
|
|
27764
28736
|
})
|
|
27765
28737
|
}),
|
|
27766
|
-
/* @__PURE__ */ jsx(Button$1, {
|
|
28738
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
|
|
27767
28739
|
small: small2,
|
|
27768
28740
|
basic: true,
|
|
27769
|
-
icon: /* @__PURE__ */ jsx(FaAngleDoubleLeft, {}),
|
|
28741
|
+
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(FaAngleDoubleLeft, {}),
|
|
27770
28742
|
onClick: () => setSelectedPage(String(1)),
|
|
27771
28743
|
disabled: showAll || selectedPage === 1
|
|
27772
28744
|
}),
|
|
27773
|
-
/* @__PURE__ */ jsx(Button$1, {
|
|
28745
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
|
|
27774
28746
|
small: small2,
|
|
27775
28747
|
basic: true,
|
|
27776
|
-
icon: /* @__PURE__ */ jsx(FaAngleLeft, {}),
|
|
28748
|
+
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(FaAngleLeft, {}),
|
|
27777
28749
|
onClick: () => setSelectedPage(String(selectedPage - 1)),
|
|
27778
28750
|
disabled: showAll || selectedPage === 1
|
|
27779
28751
|
}),
|
|
27780
|
-
/* @__PURE__ */ jsxs(InputGroup, {
|
|
28752
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs(InputGroup, {
|
|
27781
28753
|
small: small2,
|
|
27782
28754
|
width: "auto",
|
|
27783
28755
|
children: [
|
|
27784
|
-
/* @__PURE__ */ jsx(Input$1, {
|
|
28756
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Input$1, {
|
|
27785
28757
|
right: true,
|
|
27786
28758
|
value: unvalidatedSelectedPage,
|
|
27787
28759
|
placeholder: String(selectedPage),
|
|
@@ -27790,7 +28762,7 @@ const Pagination = ({ pagination: pagination2 }) => {
|
|
|
27790
28762
|
disabled: showAll || numPages <= 1,
|
|
27791
28763
|
error: error2
|
|
27792
28764
|
}),
|
|
27793
|
-
/* @__PURE__ */ jsxs(InputGroupAddon, {
|
|
28765
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs(InputGroupAddon, {
|
|
27794
28766
|
children: [
|
|
27795
28767
|
"of ",
|
|
27796
28768
|
numPages
|
|
@@ -27798,17 +28770,17 @@ const Pagination = ({ pagination: pagination2 }) => {
|
|
|
27798
28770
|
})
|
|
27799
28771
|
]
|
|
27800
28772
|
}),
|
|
27801
|
-
/* @__PURE__ */ jsx(Button$1, {
|
|
28773
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
|
|
27802
28774
|
small: small2,
|
|
27803
28775
|
basic: true,
|
|
27804
|
-
icon: /* @__PURE__ */ jsx(FaAngleRight, {}),
|
|
28776
|
+
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(FaAngleRight, {}),
|
|
27805
28777
|
onClick: () => setSelectedPage(String(selectedPage + 1)),
|
|
27806
28778
|
disabled: showAll || selectedPage === numPages
|
|
27807
28779
|
}),
|
|
27808
|
-
/* @__PURE__ */ jsx(Button$1, {
|
|
28780
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
|
|
27809
28781
|
small: small2,
|
|
27810
28782
|
basic: true,
|
|
27811
|
-
icon: /* @__PURE__ */ jsx(FaAngleDoubleRight, {}),
|
|
28783
|
+
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(FaAngleDoubleRight, {}),
|
|
27812
28784
|
onClick: () => setSelectedPage(String(numPages)),
|
|
27813
28785
|
disabled: showAll || selectedPage === numPages
|
|
27814
28786
|
})
|
|
@@ -27881,34 +28853,34 @@ const Popover = ({
|
|
|
27881
28853
|
ResizeObserver: index,
|
|
27882
28854
|
overflowContainer
|
|
27883
28855
|
});
|
|
27884
|
-
return /* @__PURE__ */ jsxs(Fragment
|
|
28856
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
|
|
27885
28857
|
children: [
|
|
27886
|
-
/* @__PURE__ */ jsx("div", {
|
|
28858
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
27887
28859
|
ref: triggerProps.ref,
|
|
27888
28860
|
onClick: toggle2,
|
|
27889
28861
|
"data-testid": testId,
|
|
27890
28862
|
children
|
|
27891
28863
|
}),
|
|
27892
28864
|
isOpen2 && renderLayer(
|
|
27893
|
-
/* @__PURE__ */ jsxs("div", {
|
|
28865
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
27894
28866
|
className: fullWidth ? cx$2(styles$j.toggleBox, styles$j.fullWidthStyleFix) : cx$2(styles$j.toggleBox),
|
|
27895
28867
|
...layerProps,
|
|
27896
28868
|
children: [
|
|
27897
|
-
/* @__PURE__ */ jsxs("div", {
|
|
28869
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
27898
28870
|
children: [
|
|
27899
28871
|
React__default.isValidElement(content2) ? React__default.cloneElement(content2, { close: close2 }) : content2,
|
|
27900
|
-
showCloseButton && /* @__PURE__ */ jsx("div", {
|
|
28872
|
+
showCloseButton && /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
27901
28873
|
className: styles$j.dismiss,
|
|
27902
|
-
children: /* @__PURE__ */ jsx(Button$1, {
|
|
28874
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
|
|
27903
28875
|
small: true,
|
|
27904
28876
|
round: true,
|
|
27905
28877
|
onClick: () => close2(),
|
|
27906
|
-
icon: /* @__PURE__ */ jsx(FaTimes, {})
|
|
28878
|
+
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(FaTimes, {})
|
|
27907
28879
|
})
|
|
27908
28880
|
})
|
|
27909
28881
|
]
|
|
27910
28882
|
}),
|
|
27911
|
-
/* @__PURE__ */ jsx(Arrow, {
|
|
28883
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Arrow, {
|
|
27912
28884
|
...arrowProps,
|
|
27913
28885
|
backgroundColor: "var(--color-background-raised)",
|
|
27914
28886
|
borderColor: "var(--color-border)",
|
|
@@ -27945,7 +28917,7 @@ const printHeader = "_printHeader_o7xxx_1";
|
|
|
27945
28917
|
const styles$i = {
|
|
27946
28918
|
printHeader
|
|
27947
28919
|
};
|
|
27948
|
-
const PrintHeader = ({ logo: logo2, logoWidth, alt }) => /* @__PURE__ */ jsx("img", {
|
|
28920
|
+
const PrintHeader = ({ logo: logo2, logoWidth, alt }) => /* @__PURE__ */ jsxRuntime.exports.jsx("img", {
|
|
27949
28921
|
src: logo2,
|
|
27950
28922
|
alt,
|
|
27951
28923
|
className: styles$i.printHeader,
|
|
@@ -28000,25 +28972,25 @@ const ProgressBar$1 = ({
|
|
|
28000
28972
|
percentage,
|
|
28001
28973
|
noLabel: noLabel2
|
|
28002
28974
|
}) => {
|
|
28003
|
-
return /* @__PURE__ */ jsx("div", {
|
|
28975
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
28004
28976
|
style: { width },
|
|
28005
28977
|
"data-percent": percentage,
|
|
28006
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
28978
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
28007
28979
|
className: cx$2(styles$h.progress, inverted2 ? styles$h.inverted : ""),
|
|
28008
28980
|
style: { width },
|
|
28009
28981
|
children: [
|
|
28010
|
-
/* @__PURE__ */ jsx("div", {
|
|
28982
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
28011
28983
|
className: cx$2(
|
|
28012
28984
|
styles$h.bar,
|
|
28013
28985
|
showProgressColors ? getColor(percentage) : colored2 ? styles$h.colored : ""
|
|
28014
28986
|
),
|
|
28015
28987
|
style: { width: `${percentage}%` },
|
|
28016
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
28988
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
28017
28989
|
className: styles$h.label,
|
|
28018
28990
|
children: !noLabel2 && `${percentage}%`
|
|
28019
28991
|
})
|
|
28020
28992
|
}),
|
|
28021
|
-
/* @__PURE__ */ jsx("div", {
|
|
28993
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
28022
28994
|
className: styles$h.label,
|
|
28023
28995
|
children: !noLabel2 && `${percentage}%`
|
|
28024
28996
|
})
|
|
@@ -28074,7 +29046,7 @@ const RadioInput = ({
|
|
|
28074
29046
|
onClickHelp
|
|
28075
29047
|
}) => {
|
|
28076
29048
|
const showHelp = helpText || onClickHelp;
|
|
28077
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
29049
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
28078
29050
|
className: cx$2(
|
|
28079
29051
|
styles$g.radio,
|
|
28080
29052
|
disabled2 ? styles$g.disabled : null,
|
|
@@ -28084,7 +29056,7 @@ const RadioInput = ({
|
|
|
28084
29056
|
onClick: onChange,
|
|
28085
29057
|
"data-testid": testId,
|
|
28086
29058
|
children: [
|
|
28087
|
-
/* @__PURE__ */ jsx("input", {
|
|
29059
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("input", {
|
|
28088
29060
|
type: "radio",
|
|
28089
29061
|
value,
|
|
28090
29062
|
checked: selected2,
|
|
@@ -28092,12 +29064,12 @@ const RadioInput = ({
|
|
|
28092
29064
|
},
|
|
28093
29065
|
disabled: disabled2
|
|
28094
29066
|
}),
|
|
28095
|
-
/* @__PURE__ */ jsx("label", {
|
|
29067
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("label", {
|
|
28096
29068
|
"data-name": name2,
|
|
28097
29069
|
"data-value": value,
|
|
28098
29070
|
children: label2
|
|
28099
29071
|
}),
|
|
28100
|
-
showHelp && /* @__PURE__ */ jsx(HelpIcon, {
|
|
29072
|
+
showHelp && /* @__PURE__ */ jsxRuntime.exports.jsx(HelpIcon, {
|
|
28101
29073
|
text: helpText,
|
|
28102
29074
|
onClick: onClickHelp
|
|
28103
29075
|
})
|
|
@@ -28132,20 +29104,20 @@ const RadioButton = ({
|
|
|
28132
29104
|
} : standardizeInputs(rawOptions, rawValue);
|
|
28133
29105
|
const selectedValue = isDeprecated || value === void 0 || value === null ? void 0 : simpleInputs ? value : value.value;
|
|
28134
29106
|
const label2 = isDeprecated ? mainLabel : rawLabel;
|
|
28135
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
29107
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
28136
29108
|
className: cx$2(
|
|
28137
29109
|
styles$g.wrapper,
|
|
28138
29110
|
inline2 ? styles$g.inline : null,
|
|
28139
29111
|
classForContainer === "inline fields" ? styles$g.inline : null
|
|
28140
29112
|
),
|
|
28141
29113
|
children: [
|
|
28142
|
-
mainLabel && /* @__PURE__ */ jsx("label", {
|
|
29114
|
+
mainLabel && /* @__PURE__ */ jsxRuntime.exports.jsx("label", {
|
|
28143
29115
|
className: cx$2(inline2 && styles$g.labelMargin),
|
|
28144
29116
|
children: label2
|
|
28145
29117
|
}),
|
|
28146
29118
|
options.map((option2, index2) => {
|
|
28147
29119
|
const selected2 = option2.checked || option2.value === selectedValue || false;
|
|
28148
|
-
return /* @__PURE__ */ jsx(RadioInput, {
|
|
29120
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(RadioInput, {
|
|
28149
29121
|
name: option2.name || option2.value,
|
|
28150
29122
|
label: option2.label,
|
|
28151
29123
|
value: option2.value,
|
|
@@ -54705,34 +55677,34 @@ const RichTextToolbar = ({ disabled: disabled2 }) => {
|
|
|
54705
55677
|
const active2 = useActive();
|
|
54706
55678
|
const items = [
|
|
54707
55679
|
{
|
|
54708
|
-
icon: /* @__PURE__ */ jsx(TbBold, {}),
|
|
55680
|
+
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(TbBold, {}),
|
|
54709
55681
|
onClick: () => toggleBold(),
|
|
54710
55682
|
active: active2.bold()
|
|
54711
55683
|
},
|
|
54712
55684
|
{
|
|
54713
|
-
icon: /* @__PURE__ */ jsx(TbItalic, {}),
|
|
55685
|
+
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(TbItalic, {}),
|
|
54714
55686
|
onClick: () => toggleItalic(),
|
|
54715
55687
|
active: active2.italic()
|
|
54716
55688
|
},
|
|
54717
55689
|
{
|
|
54718
|
-
icon: /* @__PURE__ */ jsx(TbCode, {}),
|
|
55690
|
+
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(TbCode, {}),
|
|
54719
55691
|
onClick: () => toggleCode(),
|
|
54720
55692
|
active: active2.code()
|
|
54721
55693
|
},
|
|
54722
55694
|
{
|
|
54723
|
-
icon: /* @__PURE__ */ jsx(TbList, {}),
|
|
55695
|
+
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(TbList, {}),
|
|
54724
55696
|
onClick: () => toggleBulletList(),
|
|
54725
55697
|
active: active2.bulletList()
|
|
54726
55698
|
},
|
|
54727
55699
|
{
|
|
54728
|
-
icon: /* @__PURE__ */ jsx(TbListNumbers, {}),
|
|
55700
|
+
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(TbListNumbers, {}),
|
|
54729
55701
|
onClick: () => toggleOrderedList(),
|
|
54730
55702
|
active: active2.orderedList()
|
|
54731
55703
|
}
|
|
54732
55704
|
];
|
|
54733
|
-
return /* @__PURE__ */ jsx("div", {
|
|
55705
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
54734
55706
|
className: styles$f.richTextToolbar,
|
|
54735
|
-
children: items.map((item2, index2) => /* @__PURE__ */ jsx(Button$1, {
|
|
55707
|
+
children: items.map((item2, index2) => /* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
|
|
54736
55708
|
small: true,
|
|
54737
55709
|
round: true,
|
|
54738
55710
|
basic: true,
|
|
@@ -54795,19 +55767,19 @@ const RichTextInput = forwardRef(
|
|
|
54795
55767
|
onChange(markdown);
|
|
54796
55768
|
setState(state2);
|
|
54797
55769
|
};
|
|
54798
|
-
return /* @__PURE__ */ jsx("div", {
|
|
55770
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
54799
55771
|
className: styles$e.richTextInput,
|
|
54800
|
-
children: /* @__PURE__ */ jsxs(Remirror, {
|
|
55772
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsxs(Remirror, {
|
|
54801
55773
|
manager,
|
|
54802
55774
|
state,
|
|
54803
55775
|
placeholder: placeholder3,
|
|
54804
55776
|
onChange: handleChange,
|
|
54805
55777
|
editable: !disabled2,
|
|
54806
55778
|
children: [
|
|
54807
|
-
/* @__PURE__ */ jsx(RichTextToolbar, {
|
|
55779
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(RichTextToolbar, {
|
|
54808
55780
|
disabled: disabled2
|
|
54809
55781
|
}),
|
|
54810
|
-
/* @__PURE__ */ jsx(EditorComponent, {})
|
|
55782
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(EditorComponent, {})
|
|
54811
55783
|
]
|
|
54812
55784
|
})
|
|
54813
55785
|
});
|
|
@@ -54842,10 +55814,10 @@ const Row$1 = ({
|
|
|
54842
55814
|
testId
|
|
54843
55815
|
}) => {
|
|
54844
55816
|
const childElements = children === null || children === false ? [] : children instanceof Array ? children.filter((c2) => isValidElement(c2)) : [children];
|
|
54845
|
-
const columns = childElements.map((item2, index2) => /* @__PURE__ */ jsx(Fragment$
|
|
55817
|
+
const columns = childElements.map((item2, index2) => /* @__PURE__ */ jsxRuntime.exports.jsx(Fragment$1, {
|
|
54846
55818
|
children: React__default.cloneElement(item2, { spacing })
|
|
54847
55819
|
}, index2));
|
|
54848
|
-
return /* @__PURE__ */ jsx("div", {
|
|
55820
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
54849
55821
|
className: cx$2(styles$d.row),
|
|
54850
55822
|
style: {
|
|
54851
55823
|
alignItems,
|
|
@@ -55016,7 +55988,7 @@ const styles$c = {
|
|
|
55016
55988
|
};
|
|
55017
55989
|
const TooltipIcon = memo(
|
|
55018
55990
|
({ isOpen: isOpen2, label: label2, icon: icon2, invalid }) => {
|
|
55019
|
-
const Unbadged = () => /* @__PURE__ */ jsx(Tooltip, {
|
|
55991
|
+
const Unbadged = () => /* @__PURE__ */ jsxRuntime.exports.jsx(Tooltip, {
|
|
55020
55992
|
text: label2,
|
|
55021
55993
|
enabled: !isOpen2,
|
|
55022
55994
|
placement: "right-center",
|
|
@@ -55025,25 +55997,25 @@ const TooltipIcon = memo(
|
|
|
55025
55997
|
fontSize: 16,
|
|
55026
55998
|
padding: "10px 16px",
|
|
55027
55999
|
display: "block",
|
|
55028
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
|
56000
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Icon, {
|
|
55029
56001
|
icon: icon2,
|
|
55030
56002
|
size: 30,
|
|
55031
56003
|
color: "white"
|
|
55032
56004
|
})
|
|
55033
56005
|
});
|
|
55034
|
-
const Badged = () => /* @__PURE__ */ jsx(Badge, {
|
|
56006
|
+
const Badged = () => /* @__PURE__ */ jsxRuntime.exports.jsx(Badge, {
|
|
55035
56007
|
small: true,
|
|
55036
56008
|
margin: "-2px",
|
|
55037
56009
|
title: "!",
|
|
55038
|
-
children: /* @__PURE__ */ jsx(Unbadged, {})
|
|
56010
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Unbadged, {})
|
|
55039
56011
|
});
|
|
55040
|
-
return /* @__PURE__ */ jsxs(Fragment
|
|
56012
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
|
|
55041
56013
|
children: [
|
|
55042
|
-
/* @__PURE__ */ jsx("span", {
|
|
56014
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
55043
56015
|
className: styles$c.icon,
|
|
55044
|
-
children: invalid ? /* @__PURE__ */ jsx(Badged, {}) : /* @__PURE__ */ jsx(Unbadged, {})
|
|
56016
|
+
children: invalid ? /* @__PURE__ */ jsxRuntime.exports.jsx(Badged, {}) : /* @__PURE__ */ jsxRuntime.exports.jsx(Unbadged, {})
|
|
55045
56017
|
}),
|
|
55046
|
-
/* @__PURE__ */ jsx("span", {
|
|
56018
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
55047
56019
|
className: styles$c.label,
|
|
55048
56020
|
children: label2
|
|
55049
56021
|
})
|
|
@@ -55053,11 +56025,11 @@ const TooltipIcon = memo(
|
|
|
55053
56025
|
(prevProps, nextProps) => reactFastCompare(prevProps, nextProps)
|
|
55054
56026
|
);
|
|
55055
56027
|
const Link$1 = ({ isOpen: isOpen2, items, sectionIndex, onClick, testId }) => {
|
|
55056
|
-
return /* @__PURE__ */ jsx("div", {
|
|
56028
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
55057
56029
|
className: styles$c.list,
|
|
55058
56030
|
children: items.map((link2, i) => {
|
|
55059
56031
|
const key2 = `${sectionIndex}_${i}`;
|
|
55060
|
-
return /* @__PURE__ */ jsx("a", {
|
|
56032
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("a", {
|
|
55061
56033
|
href: link2.value,
|
|
55062
56034
|
className: cx$2(
|
|
55063
56035
|
styles$c.item,
|
|
@@ -55066,7 +56038,7 @@ const Link$1 = ({ isOpen: isOpen2, items, sectionIndex, onClick, testId }) => {
|
|
|
55066
56038
|
),
|
|
55067
56039
|
onClick: (evt) => onClick(evt, link2.value, link2.label, link2.onClick),
|
|
55068
56040
|
"data-testid": testId,
|
|
55069
|
-
children: /* @__PURE__ */ jsx(TooltipIcon, {
|
|
56041
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(TooltipIcon, {
|
|
55070
56042
|
label: link2.label,
|
|
55071
56043
|
icon: link2.icon,
|
|
55072
56044
|
invalid: link2.invalid,
|
|
@@ -55077,14 +56049,14 @@ const Link$1 = ({ isOpen: isOpen2, items, sectionIndex, onClick, testId }) => {
|
|
|
55077
56049
|
});
|
|
55078
56050
|
};
|
|
55079
56051
|
const Sections = ({ isOpen: isOpen2, sections, onClick }) => {
|
|
55080
|
-
return /* @__PURE__ */ jsx(Fragment
|
|
55081
|
-
children: sections.map((section, i) => /* @__PURE__ */ jsxs(React__default.Fragment, {
|
|
56052
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment, {
|
|
56053
|
+
children: sections.map((section, i) => /* @__PURE__ */ jsxRuntime.exports.jsxs(React__default.Fragment, {
|
|
55082
56054
|
children: [
|
|
55083
|
-
/* @__PURE__ */ jsx("h5", {
|
|
56055
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("h5", {
|
|
55084
56056
|
className: styles$c.subtitle,
|
|
55085
56057
|
children: section.heading.toUpperCase()
|
|
55086
56058
|
}),
|
|
55087
|
-
/* @__PURE__ */ jsx(Link$1, {
|
|
56059
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Link$1, {
|
|
55088
56060
|
isOpen: isOpen2,
|
|
55089
56061
|
items: section.items,
|
|
55090
56062
|
sectionindex: i,
|
|
@@ -55108,7 +56080,7 @@ const SideBar = memo(
|
|
|
55108
56080
|
setIsOpen(false);
|
|
55109
56081
|
};
|
|
55110
56082
|
const visible = options.sections.length > 0;
|
|
55111
|
-
return /* @__PURE__ */ jsx(Drawer, {
|
|
56083
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Drawer, {
|
|
55112
56084
|
fixed: true,
|
|
55113
56085
|
open: isOpen2,
|
|
55114
56086
|
top: top2,
|
|
@@ -55117,7 +56089,7 @@ const SideBar = memo(
|
|
|
55117
56089
|
enableButton: visible,
|
|
55118
56090
|
buttonPosition: "bottom",
|
|
55119
56091
|
buttonAnimate: true,
|
|
55120
|
-
button: visible && /* @__PURE__ */ jsx(Button$1, {
|
|
56092
|
+
button: visible && /* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
|
|
55121
56093
|
onClick: (evt) => {
|
|
55122
56094
|
if (evt.shiftKey) {
|
|
55123
56095
|
onShiftClickToggleOpen(evt);
|
|
@@ -55126,18 +56098,18 @@ const SideBar = memo(
|
|
|
55126
56098
|
},
|
|
55127
56099
|
colored: true,
|
|
55128
56100
|
round: true,
|
|
55129
|
-
icon: /* @__PURE__ */ jsx(FaArrowLeft, {})
|
|
56101
|
+
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(FaArrowLeft, {})
|
|
55130
56102
|
}),
|
|
55131
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
56103
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
55132
56104
|
className: cx$2(styles$c.sidebar, !isOpen2 ? styles$c.collapsed : ""),
|
|
55133
|
-
children: visible && /* @__PURE__ */ jsxs("div", {
|
|
56105
|
+
children: visible && /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
55134
56106
|
className: styles$c.inner,
|
|
55135
56107
|
children: [
|
|
55136
|
-
/* @__PURE__ */ jsx("h4", {
|
|
56108
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("h4", {
|
|
55137
56109
|
className: styles$c.title,
|
|
55138
56110
|
children: options.title
|
|
55139
56111
|
}),
|
|
55140
|
-
/* @__PURE__ */ jsx(Sections, {
|
|
56112
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Sections, {
|
|
55141
56113
|
isOpen: isOpen2,
|
|
55142
56114
|
sections: options.sections,
|
|
55143
56115
|
onClick
|
|
@@ -57200,7 +58172,7 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
57200
58172
|
var _default = Handle;
|
|
57201
58173
|
default_1 = Handle$1.default = _default;
|
|
57202
58174
|
const SliderTooltip = ({ text: text2 }) => {
|
|
57203
|
-
return /* @__PURE__ */ jsx(TooltipLayer, {
|
|
58175
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(TooltipLayer, {
|
|
57204
58176
|
text: text2,
|
|
57205
58177
|
layerProps: {
|
|
57206
58178
|
style: {
|
|
@@ -57233,7 +58205,7 @@ const styles$b = {
|
|
|
57233
58205
|
const formatMarkers = (marks) => {
|
|
57234
58206
|
const formatted = marks.reduce((acc, { label: label2, tooltip: tooltip2, value }) => {
|
|
57235
58207
|
const isTooltip = tooltip2 !== void 0;
|
|
57236
|
-
const formattedValue = isTooltip ? /* @__PURE__ */ jsx(Tooltip, {
|
|
58208
|
+
const formattedValue = isTooltip ? /* @__PURE__ */ jsxRuntime.exports.jsx(Tooltip, {
|
|
57237
58209
|
text: tooltip2,
|
|
57238
58210
|
children: label2
|
|
57239
58211
|
}) : label2 || value;
|
|
@@ -57273,29 +58245,29 @@ const Slider = ({
|
|
|
57273
58245
|
}
|
|
57274
58246
|
});
|
|
57275
58247
|
};
|
|
57276
|
-
const ButtonMin = () => /* @__PURE__ */ jsx("div", {
|
|
58248
|
+
const ButtonMin = () => /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
57277
58249
|
className: styles$b.button,
|
|
57278
|
-
children: /* @__PURE__ */ jsx(Button$1, {
|
|
58250
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
|
|
57279
58251
|
basic: true,
|
|
57280
58252
|
small: true,
|
|
57281
58253
|
round: true,
|
|
57282
58254
|
onClick: () => onChangeValue(range2 ? [min, value == null ? void 0 : value[1]] : min),
|
|
57283
58255
|
disabled: disabled2 || value === min || disabledContext,
|
|
57284
|
-
icon: /* @__PURE__ */ jsx(FaFastBackward, {})
|
|
58256
|
+
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(FaFastBackward, {})
|
|
57285
58257
|
})
|
|
57286
58258
|
});
|
|
57287
|
-
const ButtonMax = () => /* @__PURE__ */ jsx("div", {
|
|
58259
|
+
const ButtonMax = () => /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
57288
58260
|
className: styles$b.button,
|
|
57289
|
-
children: /* @__PURE__ */ jsx(Button$1, {
|
|
58261
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
|
|
57290
58262
|
basic: true,
|
|
57291
58263
|
small: true,
|
|
57292
58264
|
round: true,
|
|
57293
58265
|
onClick: () => onChangeValue(range2 ? [value == null ? void 0 : value[0], max] : max),
|
|
57294
58266
|
disabled: disabled2 || value === max || disabledContext,
|
|
57295
|
-
icon: /* @__PURE__ */ jsx(FaFastForward, {})
|
|
58267
|
+
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(FaFastForward, {})
|
|
57296
58268
|
})
|
|
57297
58269
|
});
|
|
57298
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
58270
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
57299
58271
|
className: cx$2(
|
|
57300
58272
|
styles$b.container,
|
|
57301
58273
|
small2 ? styles$b.small : "",
|
|
@@ -57304,8 +58276,8 @@ const Slider = ({
|
|
|
57304
58276
|
),
|
|
57305
58277
|
style: vertical2.enabled ? { width: vertical2.width, height: vertical2.height } : { width },
|
|
57306
58278
|
children: [
|
|
57307
|
-
showArrows && (vertical2.enabled ? /* @__PURE__ */ jsx(ButtonMax, {}) : /* @__PURE__ */ jsx(ButtonMin, {})),
|
|
57308
|
-
range2 ? /* @__PURE__ */ jsx(Slider$1, {
|
|
58279
|
+
showArrows && (vertical2.enabled ? /* @__PURE__ */ jsxRuntime.exports.jsx(ButtonMax, {}) : /* @__PURE__ */ jsxRuntime.exports.jsx(ButtonMin, {})),
|
|
58280
|
+
range2 ? /* @__PURE__ */ jsxRuntime.exports.jsx(Slider$1, {
|
|
57309
58281
|
range: true,
|
|
57310
58282
|
allowCross: false,
|
|
57311
58283
|
className: cx$2(
|
|
@@ -57320,14 +58292,14 @@ const Slider = ({
|
|
|
57320
58292
|
onChange: (v2) => onChangeValue(v2),
|
|
57321
58293
|
disabled: disabled2 || disabledContext,
|
|
57322
58294
|
vertical: vertical2.enabled,
|
|
57323
|
-
handle: showTooltip ? ({ index: index2, value: value2, dragging, ...handleProps }) => /* @__PURE__ */ jsx(default_1, {
|
|
58295
|
+
handle: showTooltip ? ({ index: index2, value: value2, dragging, ...handleProps }) => /* @__PURE__ */ jsxRuntime.exports.jsx(default_1, {
|
|
57324
58296
|
value: value2,
|
|
57325
58297
|
...handleProps,
|
|
57326
|
-
children: dragging && /* @__PURE__ */ jsx(SliderTooltip, {
|
|
58298
|
+
children: dragging && /* @__PURE__ */ jsxRuntime.exports.jsx(SliderTooltip, {
|
|
57327
58299
|
text: tooltipFormatter(value2)
|
|
57328
58300
|
})
|
|
57329
58301
|
}, index2) : void 0
|
|
57330
|
-
}) : /* @__PURE__ */ jsx(Slider$1, {
|
|
58302
|
+
}) : /* @__PURE__ */ jsxRuntime.exports.jsx(Slider$1, {
|
|
57331
58303
|
className: cx$2(
|
|
57332
58304
|
(disabled2 || disabledContext) && styles$b.rcSliderDisabled,
|
|
57333
58305
|
showArrows && styles$b.hasArrows
|
|
@@ -57340,16 +58312,16 @@ const Slider = ({
|
|
|
57340
58312
|
onChange: (v2) => onChangeValue(v2),
|
|
57341
58313
|
disabled: disabled2 || disabledContext,
|
|
57342
58314
|
vertical: vertical2.enabled,
|
|
57343
|
-
handle: showTooltip ? ({ index: index2, value: value2, dragging, ...handleProps }) => /* @__PURE__ */ jsx(default_1, {
|
|
58315
|
+
handle: showTooltip ? ({ index: index2, value: value2, dragging, ...handleProps }) => /* @__PURE__ */ jsxRuntime.exports.jsx(default_1, {
|
|
57344
58316
|
value: value2,
|
|
57345
58317
|
...handleProps,
|
|
57346
|
-
children: dragging && /* @__PURE__ */ jsx(SliderTooltip, {
|
|
58318
|
+
children: dragging && /* @__PURE__ */ jsxRuntime.exports.jsx(SliderTooltip, {
|
|
57347
58319
|
text: tooltipFormatter(value2)
|
|
57348
58320
|
})
|
|
57349
58321
|
}, index2) : void 0
|
|
57350
58322
|
}),
|
|
57351
|
-
showArrows && (vertical2.enabled ? /* @__PURE__ */ jsx(ButtonMin, {}) : /* @__PURE__ */ jsx(ButtonMax, {})),
|
|
57352
|
-
label2 && /* @__PURE__ */ jsx("label", {
|
|
58323
|
+
showArrows && (vertical2.enabled ? /* @__PURE__ */ jsxRuntime.exports.jsx(ButtonMin, {}) : /* @__PURE__ */ jsxRuntime.exports.jsx(ButtonMax, {})),
|
|
58324
|
+
label2 && /* @__PURE__ */ jsxRuntime.exports.jsx("label", {
|
|
57353
58325
|
className: styles$b.label,
|
|
57354
58326
|
style: { width: labelWidth },
|
|
57355
58327
|
children: label2
|
|
@@ -57413,7 +58385,7 @@ Slider.propTypes = {
|
|
|
57413
58385
|
small: PropTypes__default.bool,
|
|
57414
58386
|
vertical: PropTypes__default.object
|
|
57415
58387
|
};
|
|
57416
|
-
const Spacer = ({ height, width, flex }) => /* @__PURE__ */ jsx("div", {
|
|
58388
|
+
const Spacer = ({ height, width, flex }) => /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
57417
58389
|
style: {
|
|
57418
58390
|
height,
|
|
57419
58391
|
width: width || "auto",
|
|
@@ -57489,24 +58461,24 @@ const Title$1 = (props) => {
|
|
|
57489
58461
|
if (!isActionsDefined) {
|
|
57490
58462
|
return null;
|
|
57491
58463
|
}
|
|
57492
|
-
const actionsComponent = /* @__PURE__ */ jsx(Actions, {
|
|
58464
|
+
const actionsComponent = /* @__PURE__ */ jsxRuntime.exports.jsx(Actions, {
|
|
57493
58465
|
actions: actions2
|
|
57494
58466
|
});
|
|
57495
58467
|
if (actionsRight) {
|
|
57496
58468
|
return actionsComponent;
|
|
57497
58469
|
}
|
|
57498
|
-
return /* @__PURE__ */ jsx("div", {
|
|
58470
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
57499
58471
|
children: actionsComponent
|
|
57500
58472
|
});
|
|
57501
58473
|
};
|
|
57502
|
-
return /* @__PURE__ */ jsx("tr", {
|
|
57503
|
-
children: /* @__PURE__ */ jsx("th", {
|
|
58474
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("tr", {
|
|
58475
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("th", {
|
|
57504
58476
|
colSpan,
|
|
57505
58477
|
className: styles$9.cellWrapper,
|
|
57506
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
58478
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
57507
58479
|
className: styles$9.title,
|
|
57508
58480
|
children: [
|
|
57509
|
-
isNameDefined ? /* @__PURE__ */ jsx("span", {
|
|
58481
|
+
isNameDefined ? /* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
57510
58482
|
"data-testid": testId,
|
|
57511
58483
|
children: name2
|
|
57512
58484
|
}) : null,
|
|
@@ -57556,30 +58528,30 @@ const Footer = (props) => {
|
|
|
57556
58528
|
return false;
|
|
57557
58529
|
};
|
|
57558
58530
|
const showFooter = hasActions2 || hasContent || hasPagination();
|
|
57559
|
-
return showFooter ? /* @__PURE__ */ jsxs("tfoot", {
|
|
58531
|
+
return showFooter ? /* @__PURE__ */ jsxRuntime.exports.jsxs("tfoot", {
|
|
57560
58532
|
children: [
|
|
57561
|
-
hasContent ? /* @__PURE__ */ jsx("tr", {
|
|
57562
|
-
children: /* @__PURE__ */ jsx("td", {
|
|
58533
|
+
hasContent ? /* @__PURE__ */ jsxRuntime.exports.jsx("tr", {
|
|
58534
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("td", {
|
|
57563
58535
|
colSpan,
|
|
57564
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
58536
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
57565
58537
|
className: styles$8.footer,
|
|
57566
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
58538
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
57567
58539
|
children: content2
|
|
57568
58540
|
})
|
|
57569
58541
|
})
|
|
57570
58542
|
})
|
|
57571
58543
|
}) : null,
|
|
57572
|
-
hasActions2 || hasPagination() ? /* @__PURE__ */ jsx("tr", {
|
|
57573
|
-
children: /* @__PURE__ */ jsx("td", {
|
|
58544
|
+
hasActions2 || hasPagination() ? /* @__PURE__ */ jsxRuntime.exports.jsx("tr", {
|
|
58545
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("td", {
|
|
57574
58546
|
colSpan,
|
|
57575
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
58547
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
57576
58548
|
className: styles$8.footer,
|
|
57577
58549
|
children: [
|
|
57578
|
-
hasPagination() ? /* @__PURE__ */ jsx(Pagination, {
|
|
58550
|
+
hasPagination() ? /* @__PURE__ */ jsxRuntime.exports.jsx(Pagination, {
|
|
57579
58551
|
pagination: pagination2
|
|
57580
|
-
}) : /* @__PURE__ */ jsx("div", {}),
|
|
57581
|
-
/* @__PURE__ */ jsx("div", {
|
|
57582
|
-
children: /* @__PURE__ */ jsx(Actions, {
|
|
58552
|
+
}) : /* @__PURE__ */ jsxRuntime.exports.jsx("div", {}),
|
|
58553
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
58554
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Actions, {
|
|
57583
58555
|
actions: actions2
|
|
57584
58556
|
})
|
|
57585
58557
|
})
|
|
@@ -57737,7 +58709,7 @@ const NumberInput = ({
|
|
|
57737
58709
|
validationCallback(name2, errors[0]);
|
|
57738
58710
|
}
|
|
57739
58711
|
};
|
|
57740
|
-
return /* @__PURE__ */ jsx(Input$1, {
|
|
58712
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Input$1, {
|
|
57741
58713
|
type: "text",
|
|
57742
58714
|
name: stringName,
|
|
57743
58715
|
testId,
|
|
@@ -57839,7 +58811,7 @@ const getHeaderAlignment = (alignments, isHeader, rowIndex) => {
|
|
|
57839
58811
|
};
|
|
57840
58812
|
const NumberInputCell = (props) => {
|
|
57841
58813
|
const { cell: cell2, columnAlignment, testId } = props;
|
|
57842
|
-
return /* @__PURE__ */ jsx(NumberInput, {
|
|
58814
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(NumberInput, {
|
|
57843
58815
|
name: cell2.name,
|
|
57844
58816
|
value: cell2.value,
|
|
57845
58817
|
onChange: (ev) => cell2.onChange(ev),
|
|
@@ -57858,7 +58830,7 @@ const NumberInputCell = (props) => {
|
|
|
57858
58830
|
};
|
|
57859
58831
|
const InputCell = (props) => {
|
|
57860
58832
|
const { cell: cell2, columnAlignment, testId } = props;
|
|
57861
|
-
return /* @__PURE__ */ jsx(Input$1, {
|
|
58833
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Input$1, {
|
|
57862
58834
|
name: cell2.name,
|
|
57863
58835
|
value: cell2.value,
|
|
57864
58836
|
onChange: (ev) => cell2.onChange(ev),
|
|
@@ -57876,7 +58848,7 @@ const InputCell = (props) => {
|
|
|
57876
58848
|
};
|
|
57877
58849
|
const SelectCell = (props) => {
|
|
57878
58850
|
const { cell: cell2, columnAlignment, testId } = props;
|
|
57879
|
-
return /* @__PURE__ */ jsx(Select, {
|
|
58851
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Select, {
|
|
57880
58852
|
name: cell2.name,
|
|
57881
58853
|
borderRadius: 0,
|
|
57882
58854
|
menu: cell2.menu,
|
|
@@ -57905,21 +58877,21 @@ const LinkCell = (props) => {
|
|
|
57905
58877
|
const disabledContext = useContext(DisabledContext);
|
|
57906
58878
|
const { cell: cell2, testId } = props;
|
|
57907
58879
|
const { error: error2, warning: warning2, tooltip: tooltip2, maxTooltipWidth } = cell2;
|
|
57908
|
-
return /* @__PURE__ */ jsx("div", {
|
|
58880
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
57909
58881
|
className: styles$7.inputWrapper,
|
|
57910
|
-
children: /* @__PURE__ */ jsx(Tooltip, {
|
|
58882
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Tooltip, {
|
|
57911
58883
|
error: !!error2,
|
|
57912
58884
|
warning: !!warning2,
|
|
57913
58885
|
text: tooltip2 || error2 || warning2,
|
|
57914
58886
|
enabled: tooltip2 && isStringNumberOrNode(tooltip2) || error2 && isStringNumberOrNode(error2) || warning2 && isStringNumberOrNode(warning2) || false,
|
|
57915
58887
|
maxWidth: maxTooltipWidth,
|
|
57916
58888
|
placement: "bottom-center",
|
|
57917
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
58889
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
57918
58890
|
className: cx$2(
|
|
57919
58891
|
styles$7.staticCellContent,
|
|
57920
58892
|
error2 ? styles$7.error : warning2 ? styles$7.warning : ""
|
|
57921
58893
|
),
|
|
57922
|
-
children: /* @__PURE__ */ jsx("a", {
|
|
58894
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("a", {
|
|
57923
58895
|
className: cx$2(
|
|
57924
58896
|
(cell2.disabled || disabledContext) && styles$7.disabledLink
|
|
57925
58897
|
),
|
|
@@ -57937,7 +58909,7 @@ const LinkCell = (props) => {
|
|
|
57937
58909
|
};
|
|
57938
58910
|
const CheckBoxCell = (props) => {
|
|
57939
58911
|
const { cell: cell2, testId } = props;
|
|
57940
|
-
return /* @__PURE__ */ jsx(CheckBox, {
|
|
58912
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(CheckBox, {
|
|
57941
58913
|
label: cell2.label,
|
|
57942
58914
|
checked: cell2.checked,
|
|
57943
58915
|
isInTable: true,
|
|
@@ -57949,9 +58921,9 @@ const CheckBoxCell = (props) => {
|
|
|
57949
58921
|
};
|
|
57950
58922
|
const SliderCell = (props) => {
|
|
57951
58923
|
const { cell: cell2 } = props;
|
|
57952
|
-
return /* @__PURE__ */ jsx("div", {
|
|
58924
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
57953
58925
|
className: styles$7.inputWrapper,
|
|
57954
|
-
children: /* @__PURE__ */ jsx(Slider, {
|
|
58926
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Slider, {
|
|
57955
58927
|
label: cell2.label,
|
|
57956
58928
|
value: cell2.value,
|
|
57957
58929
|
min: cell2.min,
|
|
@@ -57969,20 +58941,20 @@ const SliderCell = (props) => {
|
|
|
57969
58941
|
const Sort = (props) => {
|
|
57970
58942
|
const { cell: cell2 } = props;
|
|
57971
58943
|
const { hasSort, sort: sort2, sortPriority } = cell2;
|
|
57972
|
-
return hasSort ? /* @__PURE__ */ jsxs("span", {
|
|
58944
|
+
return hasSort ? /* @__PURE__ */ jsxRuntime.exports.jsxs("span", {
|
|
57973
58945
|
className: styles$7.sortingCellIcon,
|
|
57974
58946
|
children: [
|
|
57975
|
-
sort2 === "down" ? /* @__PURE__ */ jsx(Text, {
|
|
58947
|
+
sort2 === "down" ? /* @__PURE__ */ jsxRuntime.exports.jsx(Text, {
|
|
57976
58948
|
link: true,
|
|
57977
|
-
children: /* @__PURE__ */ jsx(CgSortAz, {})
|
|
57978
|
-
}) : sort2 === "up" ? /* @__PURE__ */ jsx(Text, {
|
|
58949
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(CgSortAz, {})
|
|
58950
|
+
}) : sort2 === "up" ? /* @__PURE__ */ jsxRuntime.exports.jsx(Text, {
|
|
57979
58951
|
link: true,
|
|
57980
|
-
children: /* @__PURE__ */ jsx(CgSortZa, {})
|
|
57981
|
-
}) : /* @__PURE__ */ jsx(Text, {
|
|
58952
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(CgSortZa, {})
|
|
58953
|
+
}) : /* @__PURE__ */ jsxRuntime.exports.jsx(Text, {
|
|
57982
58954
|
faint: true,
|
|
57983
|
-
children: /* @__PURE__ */ jsx(CgSortZa, {})
|
|
58955
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(CgSortZa, {})
|
|
57984
58956
|
}),
|
|
57985
|
-
sortPriority && sort2 ? /* @__PURE__ */ jsx("sup", {
|
|
58957
|
+
sortPriority && sort2 ? /* @__PURE__ */ jsxRuntime.exports.jsx("sup", {
|
|
57986
58958
|
children: sortPriority
|
|
57987
58959
|
}) : null
|
|
57988
58960
|
]
|
|
@@ -57991,9 +58963,9 @@ const Sort = (props) => {
|
|
|
57991
58963
|
const CellHelpIcon = (props) => {
|
|
57992
58964
|
const { cell: cell2 } = props;
|
|
57993
58965
|
const { helpIcon: helpIcon2 } = cell2;
|
|
57994
|
-
return helpIcon2 ? /* @__PURE__ */ jsx("div", {
|
|
58966
|
+
return helpIcon2 ? /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
57995
58967
|
className: styles$7.icon,
|
|
57996
|
-
children: /* @__PURE__ */ jsx(HelpIcon, {
|
|
58968
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(HelpIcon, {
|
|
57997
58969
|
onClick: helpIcon2.onClick,
|
|
57998
58970
|
text: helpIcon2.tooltip
|
|
57999
58971
|
})
|
|
@@ -58002,27 +58974,27 @@ const CellHelpIcon = (props) => {
|
|
|
58002
58974
|
const CellLibraryIcon = (props) => {
|
|
58003
58975
|
const { cell: cell2 } = props;
|
|
58004
58976
|
const { libraryIcon } = cell2;
|
|
58005
|
-
return libraryIcon ? /* @__PURE__ */ jsx("div", {
|
|
58977
|
+
return libraryIcon ? /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
58006
58978
|
className: styles$7.icon,
|
|
58007
|
-
children: /* @__PURE__ */ jsx(HelpIcon, {
|
|
58979
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(HelpIcon, {
|
|
58008
58980
|
onClick: libraryIcon.onClick,
|
|
58009
58981
|
text: libraryIcon.tooltip,
|
|
58010
|
-
icon: /* @__PURE__ */ jsx(FaBook, {})
|
|
58982
|
+
icon: /* @__PURE__ */ jsxRuntime.exports.jsx(FaBook, {})
|
|
58011
58983
|
})
|
|
58012
58984
|
}) : null;
|
|
58013
58985
|
};
|
|
58014
58986
|
const IconCell = (props) => {
|
|
58015
58987
|
const { cell: cell2 } = props;
|
|
58016
|
-
return /* @__PURE__ */ jsx("div", {
|
|
58988
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
58017
58989
|
className: styles$7.iconWrapper,
|
|
58018
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
|
58990
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Icon, {
|
|
58019
58991
|
icon: cell2.icon
|
|
58020
58992
|
})
|
|
58021
58993
|
});
|
|
58022
58994
|
};
|
|
58023
58995
|
const ActionsCell = (props) => {
|
|
58024
58996
|
const { cell: cell2 } = props;
|
|
58025
|
-
return /* @__PURE__ */ jsx(Actions, {
|
|
58997
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Actions, {
|
|
58026
58998
|
actions: cell2.actions
|
|
58027
58999
|
});
|
|
58028
59000
|
};
|
|
@@ -58038,7 +59010,7 @@ const StaticCell = (props) => {
|
|
|
58038
59010
|
onSort,
|
|
58039
59011
|
type
|
|
58040
59012
|
} = cell2;
|
|
58041
|
-
const field2 = /* @__PURE__ */ jsxs("div", {
|
|
59013
|
+
const field2 = /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
58042
59014
|
className: cx$2(
|
|
58043
59015
|
styles$7.staticCellContent,
|
|
58044
59016
|
type === "Unit" ? styles$7.unit : "",
|
|
@@ -58050,24 +59022,24 @@ const StaticCell = (props) => {
|
|
|
58050
59022
|
"data-testid": testId,
|
|
58051
59023
|
children: [
|
|
58052
59024
|
cell2.value,
|
|
58053
|
-
isHeader ? /* @__PURE__ */ jsxs(Fragment
|
|
59025
|
+
isHeader ? /* @__PURE__ */ jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
|
|
58054
59026
|
children: [
|
|
58055
|
-
/* @__PURE__ */ jsx(CellHelpIcon, {
|
|
59027
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(CellHelpIcon, {
|
|
58056
59028
|
cell: cell2
|
|
58057
59029
|
}),
|
|
58058
|
-
/* @__PURE__ */ jsx(CellLibraryIcon, {
|
|
59030
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(CellLibraryIcon, {
|
|
58059
59031
|
cell: cell2
|
|
58060
59032
|
}),
|
|
58061
|
-
/* @__PURE__ */ jsx(Sort, {
|
|
59033
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Sort, {
|
|
58062
59034
|
cell: cell2
|
|
58063
59035
|
})
|
|
58064
59036
|
]
|
|
58065
59037
|
}) : null
|
|
58066
59038
|
]
|
|
58067
59039
|
});
|
|
58068
|
-
return /* @__PURE__ */ jsx("div", {
|
|
59040
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
58069
59041
|
className: styles$7.inputWrapper,
|
|
58070
|
-
children: /* @__PURE__ */ jsx(Tooltip, {
|
|
59042
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Tooltip, {
|
|
58071
59043
|
error: !!error2,
|
|
58072
59044
|
warning: !!warning2,
|
|
58073
59045
|
text: tooltip2 || error2 || warning2,
|
|
@@ -58082,14 +59054,14 @@ const StaticCell = (props) => {
|
|
|
58082
59054
|
const PopoverCell = (props) => {
|
|
58083
59055
|
const { cell: cell2, testId } = props;
|
|
58084
59056
|
const { content: content2, fullWidth, closeOnOutsideClick, disabled: disabled2 } = cell2;
|
|
58085
|
-
return /* @__PURE__ */ jsx(Popover, {
|
|
59057
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Popover, {
|
|
58086
59058
|
content: content2,
|
|
58087
59059
|
fullWidth,
|
|
58088
59060
|
closeOnOutsideClick,
|
|
58089
59061
|
disabled: disabled2,
|
|
58090
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
59062
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
58091
59063
|
className: styles$7.popover,
|
|
58092
|
-
children: /* @__PURE__ */ jsx(StaticCell, {
|
|
59064
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(StaticCell, {
|
|
58093
59065
|
cell: cell2,
|
|
58094
59066
|
testId
|
|
58095
59067
|
})
|
|
@@ -58098,17 +59070,17 @@ const PopoverCell = (props) => {
|
|
|
58098
59070
|
};
|
|
58099
59071
|
const InputCellWrapper = (props) => {
|
|
58100
59072
|
const { cell: cell2, columnAlignment, testId } = props;
|
|
58101
|
-
return /* @__PURE__ */ jsx("div", {
|
|
59073
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
58102
59074
|
className: styles$7.inputWrapper,
|
|
58103
|
-
children: cell2.type === "Input" ? /* @__PURE__ */ jsx(InputCell, {
|
|
59075
|
+
children: cell2.type === "Input" ? /* @__PURE__ */ jsxRuntime.exports.jsx(InputCell, {
|
|
58104
59076
|
cell: cell2,
|
|
58105
59077
|
columnAlignment,
|
|
58106
59078
|
testId
|
|
58107
|
-
}) : cell2.type === "NumberInput" ? /* @__PURE__ */ jsx(NumberInputCell, {
|
|
59079
|
+
}) : cell2.type === "NumberInput" ? /* @__PURE__ */ jsxRuntime.exports.jsx(NumberInputCell, {
|
|
58108
59080
|
cell: cell2,
|
|
58109
59081
|
columnAlignment,
|
|
58110
59082
|
testId
|
|
58111
|
-
}) : cell2.type === "Select" ? /* @__PURE__ */ jsx(SelectCell, {
|
|
59083
|
+
}) : cell2.type === "Select" ? /* @__PURE__ */ jsxRuntime.exports.jsx(SelectCell, {
|
|
58112
59084
|
cell: cell2,
|
|
58113
59085
|
columnAlignment,
|
|
58114
59086
|
testId
|
|
@@ -58122,39 +59094,39 @@ const CellWrapper = (props) => {
|
|
|
58122
59094
|
case "Input":
|
|
58123
59095
|
case "NumberInput":
|
|
58124
59096
|
case "Select":
|
|
58125
|
-
return /* @__PURE__ */ jsx(InputCellWrapper, {
|
|
59097
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(InputCellWrapper, {
|
|
58126
59098
|
cell: cell2,
|
|
58127
59099
|
columnAlignment,
|
|
58128
59100
|
testId
|
|
58129
59101
|
});
|
|
58130
59102
|
case "Link":
|
|
58131
|
-
return /* @__PURE__ */ jsx(LinkCell, {
|
|
59103
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(LinkCell, {
|
|
58132
59104
|
cell: cell2,
|
|
58133
59105
|
testId
|
|
58134
59106
|
});
|
|
58135
59107
|
case "CheckBox":
|
|
58136
|
-
return /* @__PURE__ */ jsx(CheckBoxCell, {
|
|
59108
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(CheckBoxCell, {
|
|
58137
59109
|
cell: cell2,
|
|
58138
59110
|
testId
|
|
58139
59111
|
});
|
|
58140
59112
|
case "Slider":
|
|
58141
|
-
return /* @__PURE__ */ jsx(SliderCell, {
|
|
59113
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(SliderCell, {
|
|
58142
59114
|
cell: cell2
|
|
58143
59115
|
});
|
|
58144
59116
|
case "Icon":
|
|
58145
|
-
return /* @__PURE__ */ jsx(IconCell, {
|
|
59117
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(IconCell, {
|
|
58146
59118
|
cell: cell2
|
|
58147
59119
|
});
|
|
58148
59120
|
case "Actions":
|
|
58149
|
-
return /* @__PURE__ */ jsx(ActionsCell, {
|
|
59121
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(ActionsCell, {
|
|
58150
59122
|
cell: cell2
|
|
58151
59123
|
});
|
|
58152
59124
|
case "Popover":
|
|
58153
|
-
return /* @__PURE__ */ jsx(PopoverCell, {
|
|
59125
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(PopoverCell, {
|
|
58154
59126
|
cell: cell2
|
|
58155
59127
|
});
|
|
58156
59128
|
default:
|
|
58157
|
-
return /* @__PURE__ */ jsx(StaticCell, {
|
|
59129
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(StaticCell, {
|
|
58158
59130
|
cell: cell2,
|
|
58159
59131
|
isHeader,
|
|
58160
59132
|
testId
|
|
@@ -58197,13 +59169,13 @@ const Cell = (props) => {
|
|
|
58197
59169
|
const width = isWidthCustomSelect ? "1%" : widthProp && !(colSpan && colSpan > 1) ? widthProp : (snapshot == null ? void 0 : snapshot.isDragging) && ref2.current ? ref2.current.offsetWidth : void 0;
|
|
58198
59170
|
const style2 = { ...styleProp, width };
|
|
58199
59171
|
const Element2 = isHeader ? "th" : "td";
|
|
58200
|
-
return /* @__PURE__ */ jsx(Element2, {
|
|
59172
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Element2, {
|
|
58201
59173
|
ref: ref2,
|
|
58202
59174
|
className,
|
|
58203
59175
|
style: style2,
|
|
58204
59176
|
colSpan,
|
|
58205
59177
|
rowSpan,
|
|
58206
|
-
children: /* @__PURE__ */ jsx(CellWrapper, {
|
|
59178
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(CellWrapper, {
|
|
58207
59179
|
cell: cell2,
|
|
58208
59180
|
columnAlignment: cellAlignmentText,
|
|
58209
59181
|
isHeader,
|
|
@@ -58442,8 +59414,8 @@ const styles$6 = {
|
|
|
58442
59414
|
dragIcon
|
|
58443
59415
|
};
|
|
58444
59416
|
const ExpandedContentRow = ({ colSpan, children, flush: flush3 }) => {
|
|
58445
|
-
return /* @__PURE__ */ jsx("tr", {
|
|
58446
|
-
children: /* @__PURE__ */ jsx("td", {
|
|
59417
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("tr", {
|
|
59418
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("td", {
|
|
58447
59419
|
colSpan,
|
|
58448
59420
|
className: cx$2(styles$6.expandableRow, flush3 ? styles$6.flush : ""),
|
|
58449
59421
|
children
|
|
@@ -58503,7 +59475,7 @@ const Row = (props) => {
|
|
|
58503
59475
|
} = row2;
|
|
58504
59476
|
const cells = row2.cells.map((c2, i) => {
|
|
58505
59477
|
const key2 = `${isHeader ? 0 : 1}_${rowIndex}_${i}`;
|
|
58506
|
-
return /* @__PURE__ */ jsx(Cell, {
|
|
59478
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Cell, {
|
|
58507
59479
|
cell: c2,
|
|
58508
59480
|
isHeader,
|
|
58509
59481
|
columnAlignment: columnAlignment[i],
|
|
@@ -58513,7 +59485,7 @@ const Row = (props) => {
|
|
|
58513
59485
|
testId: c2.testId
|
|
58514
59486
|
}, key2);
|
|
58515
59487
|
});
|
|
58516
|
-
const rowActions = hasRowActions2 && /* @__PURE__ */ jsx(Cell, {
|
|
59488
|
+
const rowActions = hasRowActions2 && /* @__PURE__ */ jsxRuntime.exports.jsx(Cell, {
|
|
58517
59489
|
cell: {
|
|
58518
59490
|
type: "Actions",
|
|
58519
59491
|
actions: row2.actions
|
|
@@ -58534,14 +59506,14 @@ const Row = (props) => {
|
|
|
58534
59506
|
};
|
|
58535
59507
|
const getDragItem = () => {
|
|
58536
59508
|
if (row2.noDrag) {
|
|
58537
|
-
return /* @__PURE__ */ jsx("td", {});
|
|
59509
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("td", {});
|
|
58538
59510
|
}
|
|
58539
|
-
return /* @__PURE__ */ jsx("td", {
|
|
59511
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("td", {
|
|
58540
59512
|
className: styles$6.dragIconCell,
|
|
58541
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
59513
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
58542
59514
|
...provided.dragHandleProps,
|
|
58543
59515
|
className: styles$6.dragIcon,
|
|
58544
|
-
children: /* @__PURE__ */ jsx(GrDrag, {})
|
|
59516
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(GrDrag, {})
|
|
58545
59517
|
})
|
|
58546
59518
|
});
|
|
58547
59519
|
};
|
|
@@ -58557,9 +59529,9 @@ const Row = (props) => {
|
|
|
58557
59529
|
}
|
|
58558
59530
|
return styles2;
|
|
58559
59531
|
};
|
|
58560
|
-
return isHeader ? /* @__PURE__ */ jsxs(Fragment
|
|
59532
|
+
return isHeader ? /* @__PURE__ */ jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
|
|
58561
59533
|
children: [
|
|
58562
|
-
/* @__PURE__ */ jsxs("tr", {
|
|
59534
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs("tr", {
|
|
58563
59535
|
ref: targetRef,
|
|
58564
59536
|
onClick: onRowClick,
|
|
58565
59537
|
onMouseEnter: onRowMouseEnter,
|
|
@@ -58571,22 +59543,22 @@ const Row = (props) => {
|
|
|
58571
59543
|
),
|
|
58572
59544
|
style: { ...stickyStyle() },
|
|
58573
59545
|
children: [
|
|
58574
|
-
draggableTable ? /* @__PURE__ */ jsx(Cell, {
|
|
59546
|
+
draggableTable ? /* @__PURE__ */ jsxRuntime.exports.jsx(Cell, {
|
|
58575
59547
|
isHeader: true
|
|
58576
59548
|
}) : null,
|
|
58577
59549
|
cells,
|
|
58578
59550
|
rowActions
|
|
58579
59551
|
]
|
|
58580
59552
|
}, rowIndex),
|
|
58581
|
-
expandedContent && expandedContent.content ? /* @__PURE__ */ jsx(ExpandedContentRow, {
|
|
59553
|
+
expandedContent && expandedContent.content ? /* @__PURE__ */ jsxRuntime.exports.jsx(ExpandedContentRow, {
|
|
58582
59554
|
colSpan,
|
|
58583
59555
|
flush: expandedContent.flush === true,
|
|
58584
59556
|
children: expandedContent.content
|
|
58585
59557
|
}, `${rowIndex}_expanded_content`) : null
|
|
58586
59558
|
]
|
|
58587
|
-
}) : /* @__PURE__ */ jsxs(Fragment
|
|
59559
|
+
}) : /* @__PURE__ */ jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
|
|
58588
59560
|
children: [
|
|
58589
|
-
/* @__PURE__ */ jsxs("tr", {
|
|
59561
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs("tr", {
|
|
58590
59562
|
onClick: onRowClick,
|
|
58591
59563
|
onMouseEnter: onRowMouseEnter,
|
|
58592
59564
|
onMouseLeave: onRowMouseLeave,
|
|
@@ -58608,7 +59580,7 @@ const Row = (props) => {
|
|
|
58608
59580
|
rowActions
|
|
58609
59581
|
]
|
|
58610
59582
|
}, rowIndex),
|
|
58611
|
-
expandedContent && expandedContent.content ? /* @__PURE__ */ jsx(ExpandedContentRow, {
|
|
59583
|
+
expandedContent && expandedContent.content ? /* @__PURE__ */ jsxRuntime.exports.jsx(ExpandedContentRow, {
|
|
58612
59584
|
colSpan,
|
|
58613
59585
|
flush: expandedContent.flush === true,
|
|
58614
59586
|
children: expandedContent.content
|
|
@@ -58701,7 +59673,7 @@ const TableScrollWrapper = ({ table: table2, children }) => {
|
|
|
58701
59673
|
}
|
|
58702
59674
|
setVisibleRows(visibleRows + pageSize);
|
|
58703
59675
|
};
|
|
58704
|
-
return /* @__PURE__ */ jsx("div", {
|
|
59676
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
58705
59677
|
id: "scrollWrapper",
|
|
58706
59678
|
className: cx$2(
|
|
58707
59679
|
styles$a.scrollWrapper,
|
|
@@ -58713,7 +59685,7 @@ const TableScrollWrapper = ({ table: table2, children }) => {
|
|
|
58713
59685
|
width,
|
|
58714
59686
|
display: width === "auto" ? "inline-block" : null
|
|
58715
59687
|
},
|
|
58716
|
-
children: infiniteScroll ? /* @__PURE__ */ jsx(InfiniteScroll, {
|
|
59688
|
+
children: infiniteScroll ? /* @__PURE__ */ jsxRuntime.exports.jsx(InfiniteScroll, {
|
|
58717
59689
|
dataLength: Math.min(rows.length, visibleRows + pageSize),
|
|
58718
59690
|
next: loadMoreItems,
|
|
58719
59691
|
hasMore,
|
|
@@ -58793,28 +59765,28 @@ const Table = (props) => {
|
|
|
58793
59765
|
...propTable,
|
|
58794
59766
|
rows
|
|
58795
59767
|
};
|
|
58796
|
-
return draggable2 ? /* @__PURE__ */ jsx("div", {
|
|
59768
|
+
return draggable2 ? /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
58797
59769
|
ref: targetRef,
|
|
58798
|
-
children: /* @__PURE__ */ jsx(DragDropContext, {
|
|
59770
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(DragDropContext, {
|
|
58799
59771
|
onDragEnd: (result) => {
|
|
58800
59772
|
var _a2, _b2;
|
|
58801
59773
|
const from2 = (_a2 = result == null ? void 0 : result.source) == null ? void 0 : _a2.index;
|
|
58802
59774
|
const to2 = (_b2 = result == null ? void 0 : result.destination) == null ? void 0 : _b2.index;
|
|
58803
59775
|
onListReorder({ from: from2, to: to2 });
|
|
58804
59776
|
},
|
|
58805
|
-
children: /* @__PURE__ */ jsx(ConnectedDroppable, {
|
|
59777
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(ConnectedDroppable, {
|
|
58806
59778
|
droppableId: "droppable",
|
|
58807
59779
|
children: (provided) => {
|
|
58808
|
-
return /* @__PURE__ */ jsx(TableScrollWrapper, {
|
|
59780
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(TableScrollWrapper, {
|
|
58809
59781
|
table: table2,
|
|
58810
|
-
children: ({ visibleRows }) => /* @__PURE__ */ jsxs("table", {
|
|
59782
|
+
children: ({ visibleRows }) => /* @__PURE__ */ jsxRuntime.exports.jsxs("table", {
|
|
58811
59783
|
className: cx$2(styles$a.table, striped2 ? styles$a.striped : ""),
|
|
58812
59784
|
"data-testid": testId,
|
|
58813
59785
|
ref: provided.innerRef,
|
|
58814
59786
|
children: [
|
|
58815
|
-
/* @__PURE__ */ jsxs("thead", {
|
|
59787
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs("thead", {
|
|
58816
59788
|
children: [
|
|
58817
|
-
/* @__PURE__ */ jsx(Title$1, {
|
|
59789
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Title$1, {
|
|
58818
59790
|
actions: actions2,
|
|
58819
59791
|
actionsRight,
|
|
58820
59792
|
name: name2,
|
|
@@ -58822,7 +59794,7 @@ const Table = (props) => {
|
|
|
58822
59794
|
testId: testId && `${testId}-title`
|
|
58823
59795
|
}),
|
|
58824
59796
|
headers.map((row2, rowIndex) => {
|
|
58825
|
-
return /* @__PURE__ */ jsx(Row, {
|
|
59797
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Row, {
|
|
58826
59798
|
rowIndex,
|
|
58827
59799
|
isHeader: true,
|
|
58828
59800
|
row: row2,
|
|
@@ -58839,13 +59811,13 @@ const Table = (props) => {
|
|
|
58839
59811
|
})
|
|
58840
59812
|
]
|
|
58841
59813
|
}),
|
|
58842
|
-
/* @__PURE__ */ jsxs("tbody", {
|
|
59814
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs("tbody", {
|
|
58843
59815
|
children: [
|
|
58844
|
-
rows.slice(0, visibleRows).map((row2, rowIndex) => /* @__PURE__ */ jsx(PublicDraggable, {
|
|
59816
|
+
rows.slice(0, visibleRows).map((row2, rowIndex) => /* @__PURE__ */ jsxRuntime.exports.jsx(PublicDraggable, {
|
|
58845
59817
|
draggableId: rowIndex + "",
|
|
58846
59818
|
index: rowIndex,
|
|
58847
59819
|
isDragDisabled: row2.noDrag,
|
|
58848
|
-
children: (provided2, snapshot) => /* @__PURE__ */ jsx(Row, {
|
|
59820
|
+
children: (provided2, snapshot) => /* @__PURE__ */ jsxRuntime.exports.jsx(Row, {
|
|
58849
59821
|
rowIndex,
|
|
58850
59822
|
row: row2,
|
|
58851
59823
|
columnCount,
|
|
@@ -58862,7 +59834,7 @@ const Table = (props) => {
|
|
|
58862
59834
|
provided.placeholder
|
|
58863
59835
|
]
|
|
58864
59836
|
}),
|
|
58865
|
-
footer2 && /* @__PURE__ */ jsx(Footer, {
|
|
59837
|
+
footer2 && /* @__PURE__ */ jsxRuntime.exports.jsx(Footer, {
|
|
58866
59838
|
colSpan: colSpan + 1,
|
|
58867
59839
|
pagination: footer2.pagination,
|
|
58868
59840
|
actions: footer2.actions,
|
|
@@ -58874,15 +59846,15 @@ const Table = (props) => {
|
|
|
58874
59846
|
}
|
|
58875
59847
|
})
|
|
58876
59848
|
})
|
|
58877
|
-
}) : /* @__PURE__ */ jsx(TableScrollWrapper, {
|
|
59849
|
+
}) : /* @__PURE__ */ jsxRuntime.exports.jsx(TableScrollWrapper, {
|
|
58878
59850
|
table: table2,
|
|
58879
|
-
children: ({ visibleRows }) => /* @__PURE__ */ jsxs("table", {
|
|
59851
|
+
children: ({ visibleRows }) => /* @__PURE__ */ jsxRuntime.exports.jsxs("table", {
|
|
58880
59852
|
className: cx$2(styles$a.table, striped2 ? styles$a.striped : ""),
|
|
58881
59853
|
"data-testid": testId,
|
|
58882
59854
|
children: [
|
|
58883
|
-
/* @__PURE__ */ jsxs("thead", {
|
|
59855
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs("thead", {
|
|
58884
59856
|
children: [
|
|
58885
|
-
/* @__PURE__ */ jsx(Title$1, {
|
|
59857
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Title$1, {
|
|
58886
59858
|
actions: actions2,
|
|
58887
59859
|
actionsRight,
|
|
58888
59860
|
name: name2,
|
|
@@ -58890,7 +59862,7 @@ const Table = (props) => {
|
|
|
58890
59862
|
testId: testId && `${testId}-title`
|
|
58891
59863
|
}),
|
|
58892
59864
|
headers.map((row2, rowIndex) => {
|
|
58893
|
-
return /* @__PURE__ */ jsx(Row, {
|
|
59865
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Row, {
|
|
58894
59866
|
rowIndex,
|
|
58895
59867
|
isHeader: true,
|
|
58896
59868
|
row: row2,
|
|
@@ -58906,8 +59878,8 @@ const Table = (props) => {
|
|
|
58906
59878
|
})
|
|
58907
59879
|
]
|
|
58908
59880
|
}),
|
|
58909
|
-
/* @__PURE__ */ jsx("tbody", {
|
|
58910
|
-
children: rows.slice(0, visibleRows).map((row2, rowIndex) => /* @__PURE__ */ jsx(Row, {
|
|
59881
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("tbody", {
|
|
59882
|
+
children: rows.slice(0, visibleRows).map((row2, rowIndex) => /* @__PURE__ */ jsxRuntime.exports.jsx(Row, {
|
|
58911
59883
|
rowIndex,
|
|
58912
59884
|
row: row2,
|
|
58913
59885
|
columnCount,
|
|
@@ -58917,7 +59889,7 @@ const Table = (props) => {
|
|
|
58917
59889
|
columnAlignment
|
|
58918
59890
|
}, `1_${rowIndex}`))
|
|
58919
59891
|
}),
|
|
58920
|
-
footer2 && /* @__PURE__ */ jsx(Footer, {
|
|
59892
|
+
footer2 && /* @__PURE__ */ jsxRuntime.exports.jsx(Footer, {
|
|
58921
59893
|
colSpan,
|
|
58922
59894
|
pagination: footer2.pagination,
|
|
58923
59895
|
actions: footer2.actions,
|
|
@@ -59008,7 +59980,7 @@ const Label = ({
|
|
|
59008
59980
|
const col_danger = getComputedStyle(document.body).getPropertyValue(
|
|
59009
59981
|
"--color-text-error"
|
|
59010
59982
|
);
|
|
59011
|
-
return /* @__PURE__ */ jsx("a", {
|
|
59983
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("a", {
|
|
59012
59984
|
id: label2,
|
|
59013
59985
|
href: url,
|
|
59014
59986
|
className: cx$2(
|
|
@@ -59020,13 +59992,13 @@ const Label = ({
|
|
|
59020
59992
|
),
|
|
59021
59993
|
onClick,
|
|
59022
59994
|
"data-testid": testId,
|
|
59023
|
-
children: invalid ? /* @__PURE__ */ jsx(Badge, {
|
|
59995
|
+
children: invalid ? /* @__PURE__ */ jsxRuntime.exports.jsx(Badge, {
|
|
59024
59996
|
small: true,
|
|
59025
59997
|
margin: "-4px",
|
|
59026
59998
|
color: col_danger,
|
|
59027
59999
|
title: "!",
|
|
59028
60000
|
children: label2
|
|
59029
|
-
}) : badge2 ? /* @__PURE__ */ jsx(Badge, {
|
|
60001
|
+
}) : badge2 ? /* @__PURE__ */ jsxRuntime.exports.jsx(Badge, {
|
|
59030
60002
|
small: true,
|
|
59031
60003
|
margin: "-4px",
|
|
59032
60004
|
title: badge2,
|
|
@@ -59035,7 +60007,7 @@ const Label = ({
|
|
|
59035
60007
|
});
|
|
59036
60008
|
};
|
|
59037
60009
|
const Content$1 = ({ children, activeTabIndex, contentPadding: contentPadding2 }) => {
|
|
59038
|
-
return children && /* @__PURE__ */ jsx("div", {
|
|
60010
|
+
return children && /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
59039
60011
|
className: cx$2(contentPadding2 ? styles$5.contentPadding : ""),
|
|
59040
60012
|
children: children.map((child, index2) => activeTabIndex === index2 && child)
|
|
59041
60013
|
});
|
|
@@ -59092,7 +60064,7 @@ const Tabs = ({
|
|
|
59092
60064
|
badge: badge2,
|
|
59093
60065
|
testId: testId2
|
|
59094
60066
|
} = tab2;
|
|
59095
|
-
return /* @__PURE__ */ jsx(Label, {
|
|
60067
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Label, {
|
|
59096
60068
|
label: label2,
|
|
59097
60069
|
url,
|
|
59098
60070
|
hidden: hidden2,
|
|
@@ -59114,9 +60086,9 @@ const Tabs = ({
|
|
|
59114
60086
|
}, index2);
|
|
59115
60087
|
};
|
|
59116
60088
|
if (tabs2) {
|
|
59117
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
60089
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
59118
60090
|
children: [
|
|
59119
|
-
/* @__PURE__ */ jsx("div", {
|
|
60091
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
59120
60092
|
className: cx$2(
|
|
59121
60093
|
styles$5.tabs,
|
|
59122
60094
|
padding2 ? styles$5.padding : "",
|
|
@@ -59125,7 +60097,7 @@ const Tabs = ({
|
|
|
59125
60097
|
"data-testid": testId,
|
|
59126
60098
|
children: tabs2.map(renderTab)
|
|
59127
60099
|
}),
|
|
59128
|
-
/* @__PURE__ */ jsx(Content$1, {
|
|
60100
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Content$1, {
|
|
59129
60101
|
activeTabIndex,
|
|
59130
60102
|
contentPadding: contentPadding2,
|
|
59131
60103
|
children
|
|
@@ -59188,11 +60160,11 @@ Tabs.propTypes = PropTypes__default.oneOfType([
|
|
|
59188
60160
|
PropTypes__default.shape(TabsShapeDeprecated)
|
|
59189
60161
|
]).isRequired;
|
|
59190
60162
|
const TextLink = ({ children, href, target, testId }) => {
|
|
59191
|
-
return /* @__PURE__ */ jsx("a", {
|
|
60163
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("a", {
|
|
59192
60164
|
href,
|
|
59193
60165
|
target,
|
|
59194
60166
|
"data-testid": testId,
|
|
59195
|
-
children: /* @__PURE__ */ jsx(Text, {
|
|
60167
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Text, {
|
|
59196
60168
|
link: true,
|
|
59197
60169
|
children
|
|
59198
60170
|
})
|
|
@@ -59255,7 +60227,7 @@ const TextArea = ({
|
|
|
59255
60227
|
testId
|
|
59256
60228
|
}) => {
|
|
59257
60229
|
const disabledContext = useContext(DisabledContext);
|
|
59258
|
-
const textarea2 = /* @__PURE__ */ jsx("textarea", {
|
|
60230
|
+
const textarea2 = /* @__PURE__ */ jsxRuntime.exports.jsx("textarea", {
|
|
59259
60231
|
className: cx$2(
|
|
59260
60232
|
styles$4.textarea,
|
|
59261
60233
|
error2 ? styles$4.error : "",
|
|
@@ -59276,7 +60248,7 @@ const TextArea = ({
|
|
|
59276
60248
|
style: { resize },
|
|
59277
60249
|
"data-testid": testId
|
|
59278
60250
|
});
|
|
59279
|
-
return /* @__PURE__ */ jsx(Tooltip, {
|
|
60251
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Tooltip, {
|
|
59280
60252
|
error: !!error2,
|
|
59281
60253
|
warning: !!warning2,
|
|
59282
60254
|
text: tooltip2 || error2 || warning2,
|
|
@@ -60364,12 +61336,12 @@ eventManager.on(
|
|
|
60364
61336
|
const toaster = "";
|
|
60365
61337
|
const toast = ({ id: id2, message: message2, autoClose = 6e3, onClose }) => {
|
|
60366
61338
|
const { type } = message2;
|
|
60367
|
-
const CloseButton2 = ({ closeToast }) => /* @__PURE__ */ jsx(Dismiss, {
|
|
61339
|
+
const CloseButton2 = ({ closeToast }) => /* @__PURE__ */ jsxRuntime.exports.jsx(Dismiss, {
|
|
60368
61340
|
type,
|
|
60369
61341
|
onClose: closeToast,
|
|
60370
61342
|
isInToast: true
|
|
60371
61343
|
});
|
|
60372
|
-
const content2 = /* @__PURE__ */ jsx(Message, {
|
|
61344
|
+
const content2 = /* @__PURE__ */ jsxRuntime.exports.jsx(Message, {
|
|
60373
61345
|
message: {
|
|
60374
61346
|
...message2,
|
|
60375
61347
|
visible: true,
|
|
@@ -60414,7 +61386,7 @@ const Toggle = ({
|
|
|
60414
61386
|
}) => {
|
|
60415
61387
|
const disabledContext = useContext(DisabledContext);
|
|
60416
61388
|
const showHelp = helpText || onClickHelp;
|
|
60417
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
61389
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
60418
61390
|
className: cx$2(
|
|
60419
61391
|
styles$3.toggle,
|
|
60420
61392
|
disabled2 || disabledContext ? styles$3.disabled : null,
|
|
@@ -60429,7 +61401,7 @@ const Toggle = ({
|
|
|
60429
61401
|
},
|
|
60430
61402
|
"data-testid": testId,
|
|
60431
61403
|
children: [
|
|
60432
|
-
/* @__PURE__ */ jsx("input", {
|
|
61404
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("input", {
|
|
60433
61405
|
type: "checkbox",
|
|
60434
61406
|
name: name2,
|
|
60435
61407
|
value: checked,
|
|
@@ -60438,10 +61410,10 @@ const Toggle = ({
|
|
|
60438
61410
|
onChange: () => {
|
|
60439
61411
|
}
|
|
60440
61412
|
}),
|
|
60441
|
-
/* @__PURE__ */ jsx("label", {
|
|
61413
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("label", {
|
|
60442
61414
|
children: label2
|
|
60443
61415
|
}),
|
|
60444
|
-
showHelp && /* @__PURE__ */ jsx(HelpIcon, {
|
|
61416
|
+
showHelp && /* @__PURE__ */ jsxRuntime.exports.jsx(HelpIcon, {
|
|
60445
61417
|
text: helpText,
|
|
60446
61418
|
onClick: onClickHelp
|
|
60447
61419
|
})
|
|
@@ -60502,36 +61474,36 @@ const styles$2 = {
|
|
|
60502
61474
|
alert
|
|
60503
61475
|
};
|
|
60504
61476
|
const Warning = ({ warning: warning2 }) => {
|
|
60505
|
-
return /* @__PURE__ */ jsx("div", {
|
|
61477
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
60506
61478
|
className: styles$2.alert,
|
|
60507
61479
|
children: warning2
|
|
60508
61480
|
});
|
|
60509
61481
|
};
|
|
60510
61482
|
const Title = ({ label: label2, logo: logo2, url, version: version2, onClick }) => {
|
|
60511
|
-
const content2 = /* @__PURE__ */ jsxs("div", {
|
|
61483
|
+
const content2 = /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
60512
61484
|
className: styles$2.title,
|
|
60513
61485
|
children: [
|
|
60514
|
-
logo2 && /* @__PURE__ */ jsx("div", {
|
|
61486
|
+
logo2 && /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
60515
61487
|
className: styles$2.logo,
|
|
60516
61488
|
children: logo2
|
|
60517
61489
|
}),
|
|
60518
|
-
label2 && /* @__PURE__ */ jsx("span", {
|
|
61490
|
+
label2 && /* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
60519
61491
|
className: styles$2.label,
|
|
60520
61492
|
children: label2
|
|
60521
61493
|
}),
|
|
60522
|
-
version2 && /* @__PURE__ */ jsx("div", {
|
|
61494
|
+
version2 && /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
60523
61495
|
className: styles$2.version,
|
|
60524
61496
|
children: version2
|
|
60525
61497
|
})
|
|
60526
61498
|
]
|
|
60527
61499
|
});
|
|
60528
|
-
return /* @__PURE__ */ jsx("div", {
|
|
61500
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
60529
61501
|
className: cx$2(styles$2.item, styles$2.brand),
|
|
60530
|
-
children: url ? /* @__PURE__ */ jsx("a", {
|
|
61502
|
+
children: url ? /* @__PURE__ */ jsxRuntime.exports.jsx("a", {
|
|
60531
61503
|
href: url,
|
|
60532
61504
|
onClick,
|
|
60533
61505
|
children: content2
|
|
60534
|
-
}) : /* @__PURE__ */ jsx("div", {
|
|
61506
|
+
}) : /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
60535
61507
|
onClick,
|
|
60536
61508
|
children: content2
|
|
60537
61509
|
})
|
|
@@ -60547,7 +61519,7 @@ const Link = ({
|
|
|
60547
61519
|
testId
|
|
60548
61520
|
}) => {
|
|
60549
61521
|
const disabledContext = useContext(DisabledContext);
|
|
60550
|
-
return /* @__PURE__ */ jsxs("a", {
|
|
61522
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("a", {
|
|
60551
61523
|
className: cx$2(styles$2.link, active2 ? styles$2.active : ""),
|
|
60552
61524
|
href: url,
|
|
60553
61525
|
onClick,
|
|
@@ -60555,7 +61527,7 @@ const Link = ({
|
|
|
60555
61527
|
"data-testid": testId,
|
|
60556
61528
|
children: [
|
|
60557
61529
|
icon2,
|
|
60558
|
-
/* @__PURE__ */ jsx("span", {
|
|
61530
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("span", {
|
|
60559
61531
|
className: styles$2.label,
|
|
60560
61532
|
children: label2
|
|
60561
61533
|
})
|
|
@@ -60566,9 +61538,9 @@ const Element$1 = ({ element }) => {
|
|
|
60566
61538
|
return (() => {
|
|
60567
61539
|
switch (element.type) {
|
|
60568
61540
|
case "Link": {
|
|
60569
|
-
return /* @__PURE__ */ jsx("div", {
|
|
61541
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
60570
61542
|
className: styles$2.item,
|
|
60571
|
-
children: /* @__PURE__ */ jsx(Link, {
|
|
61543
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Link, {
|
|
60572
61544
|
label: element.label,
|
|
60573
61545
|
url: element.url,
|
|
60574
61546
|
icon: element.icon,
|
|
@@ -60580,9 +61552,9 @@ const Element$1 = ({ element }) => {
|
|
|
60580
61552
|
});
|
|
60581
61553
|
}
|
|
60582
61554
|
case "Button": {
|
|
60583
|
-
return /* @__PURE__ */ jsx("div", {
|
|
61555
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
60584
61556
|
className: cx$2(styles$2.item, styles$2.button),
|
|
60585
|
-
children: /* @__PURE__ */ jsx(Button$1, {
|
|
61557
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
|
|
60586
61558
|
label: element.label,
|
|
60587
61559
|
colored: element.colored,
|
|
60588
61560
|
pill: true,
|
|
@@ -60594,15 +61566,15 @@ const Element$1 = ({ element }) => {
|
|
|
60594
61566
|
});
|
|
60595
61567
|
}
|
|
60596
61568
|
case "Menu": {
|
|
60597
|
-
return /* @__PURE__ */ jsx("div", {
|
|
61569
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
60598
61570
|
className: cx$2(styles$2.item, styles$2.menu),
|
|
60599
|
-
children: /* @__PURE__ */ jsx(Menu, {
|
|
61571
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Menu, {
|
|
60600
61572
|
height: "100%",
|
|
60601
61573
|
menu: {
|
|
60602
61574
|
trigger: "Component",
|
|
60603
61575
|
fullHeightTrigger: true,
|
|
60604
61576
|
placement: "bottom-start",
|
|
60605
|
-
component: /* @__PURE__ */ jsx(Link, {
|
|
61577
|
+
component: /* @__PURE__ */ jsxRuntime.exports.jsx(Link, {
|
|
60606
61578
|
label: element.label,
|
|
60607
61579
|
icon: element.icon,
|
|
60608
61580
|
onClick: element.onClick
|
|
@@ -60613,7 +61585,7 @@ const Element$1 = ({ element }) => {
|
|
|
60613
61585
|
});
|
|
60614
61586
|
}
|
|
60615
61587
|
case "Component": {
|
|
60616
|
-
return /* @__PURE__ */ jsx("div", {
|
|
61588
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
60617
61589
|
className: styles$2.item,
|
|
60618
61590
|
children: element.component
|
|
60619
61591
|
});
|
|
@@ -60631,19 +61603,19 @@ const TopBar = ({
|
|
|
60631
61603
|
height,
|
|
60632
61604
|
fixedPosition
|
|
60633
61605
|
}) => {
|
|
60634
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
61606
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
60635
61607
|
children: [
|
|
60636
|
-
warning2 && /* @__PURE__ */ jsx(Warning, {
|
|
61608
|
+
warning2 && /* @__PURE__ */ jsxRuntime.exports.jsx(Warning, {
|
|
60637
61609
|
warning: warning2
|
|
60638
61610
|
}),
|
|
60639
|
-
/* @__PURE__ */ jsxs("div", {
|
|
61611
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
60640
61612
|
className: cx$2(styles$2.topbar, fixedPosition ? styles$2.fixed : ""),
|
|
60641
61613
|
style: { height },
|
|
60642
61614
|
children: [
|
|
60643
|
-
/* @__PURE__ */ jsxs("div", {
|
|
61615
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
60644
61616
|
className: styles$2.left,
|
|
60645
61617
|
children: [
|
|
60646
|
-
title2 && /* @__PURE__ */ jsx(Title, {
|
|
61618
|
+
title2 && /* @__PURE__ */ jsxRuntime.exports.jsx(Title, {
|
|
60647
61619
|
label: title2.label,
|
|
60648
61620
|
logo: title2.logo,
|
|
60649
61621
|
url: title2.url,
|
|
@@ -60652,7 +61624,7 @@ const TopBar = ({
|
|
|
60652
61624
|
}),
|
|
60653
61625
|
content2.map((element, i) => {
|
|
60654
61626
|
if (element) {
|
|
60655
|
-
return /* @__PURE__ */ jsx(Element$1, {
|
|
61627
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Element$1, {
|
|
60656
61628
|
element
|
|
60657
61629
|
}, i);
|
|
60658
61630
|
}
|
|
@@ -60660,11 +61632,11 @@ const TopBar = ({
|
|
|
60660
61632
|
})
|
|
60661
61633
|
]
|
|
60662
61634
|
}),
|
|
60663
|
-
/* @__PURE__ */ jsx("div", {
|
|
61635
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
60664
61636
|
className: styles$2.right,
|
|
60665
61637
|
children: contentRight.map((element, i) => {
|
|
60666
61638
|
if (element) {
|
|
60667
|
-
return /* @__PURE__ */ jsx(Element$1, {
|
|
61639
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Element$1, {
|
|
60668
61640
|
element
|
|
60669
61641
|
}, i);
|
|
60670
61642
|
}
|
|
@@ -60713,24 +61685,24 @@ const Content = ({
|
|
|
60713
61685
|
cancelText,
|
|
60714
61686
|
onClickCancel,
|
|
60715
61687
|
close: close2
|
|
60716
|
-
}) => /* @__PURE__ */ jsxs("div", {
|
|
61688
|
+
}) => /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
60717
61689
|
className: styles$1.popConfirm,
|
|
60718
61690
|
children: [
|
|
60719
|
-
title2 && /* @__PURE__ */ jsx("div", {
|
|
61691
|
+
title2 && /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
60720
61692
|
className: styles$1.content,
|
|
60721
|
-
children: /* @__PURE__ */ jsx(Text, {
|
|
61693
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Text, {
|
|
60722
61694
|
children: title2
|
|
60723
61695
|
})
|
|
60724
61696
|
}),
|
|
60725
|
-
/* @__PURE__ */ jsxs("div", {
|
|
61697
|
+
/* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
60726
61698
|
className: styles$1.buttons,
|
|
60727
61699
|
children: [
|
|
60728
|
-
/* @__PURE__ */ jsx(Button$1, {
|
|
61700
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
|
|
60729
61701
|
colored: true,
|
|
60730
61702
|
label: okText,
|
|
60731
61703
|
onClick: () => onClickOk(close2)
|
|
60732
61704
|
}),
|
|
60733
|
-
/* @__PURE__ */ jsx(Button$1, {
|
|
61705
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
|
|
60734
61706
|
label: cancelText,
|
|
60735
61707
|
onClick: () => onClickCancel(close2)
|
|
60736
61708
|
})
|
|
@@ -60749,14 +61721,14 @@ const PopConfirm = ({
|
|
|
60749
61721
|
okText,
|
|
60750
61722
|
onClickOk
|
|
60751
61723
|
}) => {
|
|
60752
|
-
const content2 = /* @__PURE__ */ jsx(Content, {
|
|
61724
|
+
const content2 = /* @__PURE__ */ jsxRuntime.exports.jsx(Content, {
|
|
60753
61725
|
title: title2,
|
|
60754
61726
|
okText,
|
|
60755
61727
|
onClickOk,
|
|
60756
61728
|
cancelText,
|
|
60757
61729
|
onClickCancel
|
|
60758
61730
|
});
|
|
60759
|
-
return /* @__PURE__ */ jsx(Popover, {
|
|
61731
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(Popover, {
|
|
60760
61732
|
content: content2,
|
|
60761
61733
|
placement,
|
|
60762
61734
|
closeOnOutsideClick,
|
|
@@ -62144,7 +63116,7 @@ var DndProvider = /* @__PURE__ */ memo(function DndProvider2(_param) {
|
|
|
62144
63116
|
}
|
|
62145
63117
|
return;
|
|
62146
63118
|
}, []);
|
|
62147
|
-
return /* @__PURE__ */ jsx(DndContext.Provider, {
|
|
63119
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(DndContext.Provider, {
|
|
62148
63120
|
value: manager,
|
|
62149
63121
|
children
|
|
62150
63122
|
});
|
|
@@ -72375,7 +73347,7 @@ const TreeItem = ({
|
|
|
72375
73347
|
e2.stopPropagation();
|
|
72376
73348
|
onToggle(id2);
|
|
72377
73349
|
};
|
|
72378
|
-
return /* @__PURE__ */ jsx("div", {
|
|
73350
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
72379
73351
|
className: cx$2(
|
|
72380
73352
|
listStyles.item,
|
|
72381
73353
|
listStyles.action,
|
|
@@ -72387,33 +73359,33 @@ const TreeItem = ({
|
|
|
72387
73359
|
onClick(e2);
|
|
72388
73360
|
}
|
|
72389
73361
|
},
|
|
72390
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
73362
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
72391
73363
|
className: listStyles.itemHeader,
|
|
72392
73364
|
style: {
|
|
72393
73365
|
marginInlineStart: depth * 24
|
|
72394
73366
|
},
|
|
72395
73367
|
children: [
|
|
72396
|
-
draggable2 && /* @__PURE__ */ jsx("div", {
|
|
73368
|
+
draggable2 && /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
72397
73369
|
className: listStyles.drag,
|
|
72398
|
-
children: /* @__PURE__ */ jsx(GrDrag, {})
|
|
73370
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(GrDrag, {})
|
|
72399
73371
|
}),
|
|
72400
|
-
hasChild && /* @__PURE__ */ jsx("div", {
|
|
73372
|
+
hasChild && /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
72401
73373
|
className: styles.toggle,
|
|
72402
|
-
children: /* @__PURE__ */ jsx(Button$1, {
|
|
73374
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
|
|
72403
73375
|
basic: true,
|
|
72404
73376
|
colored: "muted",
|
|
72405
73377
|
small: true,
|
|
72406
73378
|
round: true,
|
|
72407
|
-
icon: isOpen2 ? /* @__PURE__ */ jsx(AiOutlineMinusSquare, {}) : /* @__PURE__ */ jsx(AiOutlinePlusSquare, {}),
|
|
73379
|
+
icon: isOpen2 ? /* @__PURE__ */ jsxRuntime.exports.jsx(AiOutlineMinusSquare, {}) : /* @__PURE__ */ jsxRuntime.exports.jsx(AiOutlinePlusSquare, {}),
|
|
72408
73380
|
onClick: handleToggle
|
|
72409
73381
|
})
|
|
72410
73382
|
}),
|
|
72411
|
-
/* @__PURE__ */ jsx(MetaContent, {
|
|
73383
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(MetaContent, {
|
|
72412
73384
|
item: node
|
|
72413
73385
|
}),
|
|
72414
|
-
/* @__PURE__ */ jsx("div", {
|
|
73386
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
72415
73387
|
className: listStyles.actions,
|
|
72416
|
-
children: /* @__PURE__ */ jsx(Actions, {
|
|
73388
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Actions, {
|
|
72417
73389
|
actions: node.actions,
|
|
72418
73390
|
right: true
|
|
72419
73391
|
})
|
|
@@ -72422,7 +73394,7 @@ const TreeItem = ({
|
|
|
72422
73394
|
})
|
|
72423
73395
|
});
|
|
72424
73396
|
};
|
|
72425
|
-
const TreePlaceholder = ({ depth }) => /* @__PURE__ */ jsx("div", {
|
|
73397
|
+
const TreePlaceholder = ({ depth }) => /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
72426
73398
|
className: styles.placeholder,
|
|
72427
73399
|
style: { left: depth * 24 }
|
|
72428
73400
|
});
|
|
@@ -72445,19 +73417,19 @@ const Tree = ({
|
|
|
72445
73417
|
onChangeOpen(id2);
|
|
72446
73418
|
}
|
|
72447
73419
|
};
|
|
72448
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
73420
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
72449
73421
|
"data-testid": testId,
|
|
72450
73422
|
children: [
|
|
72451
|
-
list2.name && !list2.noHeader && /* @__PURE__ */ jsx(ListHeading, {
|
|
73423
|
+
list2.name && !list2.noHeader && /* @__PURE__ */ jsxRuntime.exports.jsx(ListHeading, {
|
|
72452
73424
|
name: list2.name,
|
|
72453
73425
|
actions: list2.actions
|
|
72454
73426
|
}),
|
|
72455
|
-
/* @__PURE__ */ jsx("div", {
|
|
73427
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx("div", {
|
|
72456
73428
|
className: listStyles.list,
|
|
72457
|
-
children: /* @__PURE__ */ jsx(DndProvider, {
|
|
73429
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(DndProvider, {
|
|
72458
73430
|
backend: MultiFactory,
|
|
72459
73431
|
options: getBackendOptions(),
|
|
72460
|
-
children: /* @__PURE__ */ jsx(Tree$1, {
|
|
73432
|
+
children: /* @__PURE__ */ jsxRuntime.exports.jsx(Tree$1, {
|
|
72461
73433
|
ref: treeRef,
|
|
72462
73434
|
tree: list2.items,
|
|
72463
73435
|
sort: false,
|
|
@@ -72470,7 +73442,7 @@ const Tree = ({
|
|
|
72470
73442
|
},
|
|
72471
73443
|
rootId: 0,
|
|
72472
73444
|
render: (node, { depth, isOpen: isOpen2, onToggle, hasChild }) => {
|
|
72473
|
-
return /* @__PURE__ */ jsx(TreeItem, {
|
|
73445
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(TreeItem, {
|
|
72474
73446
|
hasChild,
|
|
72475
73447
|
node,
|
|
72476
73448
|
depth,
|
|
@@ -72482,7 +73454,7 @@ const Tree = ({
|
|
|
72482
73454
|
onDrop: handleDrop,
|
|
72483
73455
|
onChangeOpen: handleOpen,
|
|
72484
73456
|
dropTargetOffset: 5,
|
|
72485
|
-
placeholderRender: (node, { depth }) => /* @__PURE__ */ jsx(TreePlaceholder, {
|
|
73457
|
+
placeholderRender: (node, { depth }) => /* @__PURE__ */ jsxRuntime.exports.jsx(TreePlaceholder, {
|
|
72486
73458
|
depth
|
|
72487
73459
|
}),
|
|
72488
73460
|
placeholderComponent: "div",
|