dce-reactkit 4.0.0-beta.1 → 4.0.0-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/cjs/index.js +2486 -1252
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/LoadingSpinner.d.ts +2 -2
- package/dist/cjs/types/components/Tooltip.d.ts +1 -1
- package/dist/cjs/types/index.d.ts +4 -1
- package/dist/esm/index.js +2483 -1251
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/LoadingSpinner.d.ts +2 -2
- package/dist/esm/types/components/Tooltip.d.ts +1 -1
- package/dist/esm/types/index.d.ts +4 -1
- package/dist/index.d.ts +23 -3
- package/package.json +6 -10
- package/src/components/Tooltip.tsx +1 -1
- package/src/index.ts +6 -0
- package/dist/cjs/types/components/ItemPicker/index.test.d.ts +0 -1
- package/dist/esm/types/components/ItemPicker/index.test.d.ts +0 -1
package/dist/esm/index.js
CHANGED
|
@@ -2,10 +2,9 @@ import * as React from 'react';
|
|
|
2
2
|
import React__default, { useState, useRef, useEffect, useReducer, forwardRef, useContext, useLayoutEffect, createContext, useMemo, useCallback, Component, Fragment } from 'react';
|
|
3
3
|
import { faExclamationTriangle, faHourglassEnd, faCircle, faDotCircle, faCheckSquare, faHourglass, faClipboard, faChevronDown, faChevronRight, faCloudDownloadAlt, faMinus, faCheckCircle, faXmarkCircle, faSort, faSortDown, faSortUp, faCalendar, faTag, faHammer, faList, faTimes, faSave, faTrash, faCog, faPlus } from '@fortawesome/free-solid-svg-icons';
|
|
4
4
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
5
|
-
import ReactDOM, { createPortal } from 'react-dom';
|
|
6
5
|
import { faCircle as faCircle$1, faSquareMinus, faSquare } from '@fortawesome/free-regular-svg-icons';
|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
/*! *****************************************************************************
|
|
9
8
|
Copyright (c) Microsoft Corporation.
|
|
10
9
|
|
|
11
10
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -172,6 +171,706 @@ const LogBuiltInMetadata = {
|
|
|
172
171
|
},
|
|
173
172
|
};
|
|
174
173
|
|
|
174
|
+
function getDefaultExportFromCjs (x) {
|
|
175
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
var reactDom = {exports: {}};
|
|
179
|
+
|
|
180
|
+
var reactDom_production = {};
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* @license React
|
|
184
|
+
* react-dom.production.js
|
|
185
|
+
*
|
|
186
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
187
|
+
*
|
|
188
|
+
* This source code is licensed under the MIT license found in the
|
|
189
|
+
* LICENSE file in the root directory of this source tree.
|
|
190
|
+
*/
|
|
191
|
+
|
|
192
|
+
var hasRequiredReactDom_production;
|
|
193
|
+
|
|
194
|
+
function requireReactDom_production () {
|
|
195
|
+
if (hasRequiredReactDom_production) return reactDom_production;
|
|
196
|
+
hasRequiredReactDom_production = 1;
|
|
197
|
+
var React = React__default;
|
|
198
|
+
function formatProdErrorMessage(code) {
|
|
199
|
+
var url = "https://react.dev/errors/" + code;
|
|
200
|
+
if (1 < arguments.length) {
|
|
201
|
+
url += "?args[]=" + encodeURIComponent(arguments[1]);
|
|
202
|
+
for (var i = 2; i < arguments.length; i++)
|
|
203
|
+
url += "&args[]=" + encodeURIComponent(arguments[i]);
|
|
204
|
+
}
|
|
205
|
+
return (
|
|
206
|
+
"Minified React error #" +
|
|
207
|
+
code +
|
|
208
|
+
"; visit " +
|
|
209
|
+
url +
|
|
210
|
+
" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
function noop() {}
|
|
214
|
+
var Internals = {
|
|
215
|
+
d: {
|
|
216
|
+
f: noop,
|
|
217
|
+
r: function () {
|
|
218
|
+
throw Error(formatProdErrorMessage(522));
|
|
219
|
+
},
|
|
220
|
+
D: noop,
|
|
221
|
+
C: noop,
|
|
222
|
+
L: noop,
|
|
223
|
+
m: noop,
|
|
224
|
+
X: noop,
|
|
225
|
+
S: noop,
|
|
226
|
+
M: noop
|
|
227
|
+
},
|
|
228
|
+
p: 0,
|
|
229
|
+
findDOMNode: null
|
|
230
|
+
},
|
|
231
|
+
REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
232
|
+
function createPortal$1(children, containerInfo, implementation) {
|
|
233
|
+
var key =
|
|
234
|
+
3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
|
|
235
|
+
return {
|
|
236
|
+
$$typeof: REACT_PORTAL_TYPE,
|
|
237
|
+
key: null == key ? null : "" + key,
|
|
238
|
+
children: children,
|
|
239
|
+
containerInfo: containerInfo,
|
|
240
|
+
implementation: implementation
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
var ReactSharedInternals =
|
|
244
|
+
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
245
|
+
function getCrossOriginStringAs(as, input) {
|
|
246
|
+
if ("font" === as) return "";
|
|
247
|
+
if ("string" === typeof input)
|
|
248
|
+
return "use-credentials" === input ? input : "";
|
|
249
|
+
}
|
|
250
|
+
reactDom_production.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
251
|
+
Internals;
|
|
252
|
+
reactDom_production.createPortal = function (children, container) {
|
|
253
|
+
var key =
|
|
254
|
+
2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
|
255
|
+
if (
|
|
256
|
+
!container ||
|
|
257
|
+
(1 !== container.nodeType &&
|
|
258
|
+
9 !== container.nodeType &&
|
|
259
|
+
11 !== container.nodeType)
|
|
260
|
+
)
|
|
261
|
+
throw Error(formatProdErrorMessage(299));
|
|
262
|
+
return createPortal$1(children, container, null, key);
|
|
263
|
+
};
|
|
264
|
+
reactDom_production.flushSync = function (fn) {
|
|
265
|
+
var previousTransition = ReactSharedInternals.T,
|
|
266
|
+
previousUpdatePriority = Internals.p;
|
|
267
|
+
try {
|
|
268
|
+
if (((ReactSharedInternals.T = null), (Internals.p = 2), fn)) return fn();
|
|
269
|
+
} finally {
|
|
270
|
+
(ReactSharedInternals.T = previousTransition),
|
|
271
|
+
(Internals.p = previousUpdatePriority),
|
|
272
|
+
Internals.d.f();
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
reactDom_production.preconnect = function (href, options) {
|
|
276
|
+
"string" === typeof href &&
|
|
277
|
+
(options
|
|
278
|
+
? ((options = options.crossOrigin),
|
|
279
|
+
(options =
|
|
280
|
+
"string" === typeof options
|
|
281
|
+
? "use-credentials" === options
|
|
282
|
+
? options
|
|
283
|
+
: ""
|
|
284
|
+
: void 0))
|
|
285
|
+
: (options = null),
|
|
286
|
+
Internals.d.C(href, options));
|
|
287
|
+
};
|
|
288
|
+
reactDom_production.prefetchDNS = function (href) {
|
|
289
|
+
"string" === typeof href && Internals.d.D(href);
|
|
290
|
+
};
|
|
291
|
+
reactDom_production.preinit = function (href, options) {
|
|
292
|
+
if ("string" === typeof href && options && "string" === typeof options.as) {
|
|
293
|
+
var as = options.as,
|
|
294
|
+
crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),
|
|
295
|
+
integrity =
|
|
296
|
+
"string" === typeof options.integrity ? options.integrity : void 0,
|
|
297
|
+
fetchPriority =
|
|
298
|
+
"string" === typeof options.fetchPriority
|
|
299
|
+
? options.fetchPriority
|
|
300
|
+
: void 0;
|
|
301
|
+
"style" === as
|
|
302
|
+
? Internals.d.S(
|
|
303
|
+
href,
|
|
304
|
+
"string" === typeof options.precedence ? options.precedence : void 0,
|
|
305
|
+
{
|
|
306
|
+
crossOrigin: crossOrigin,
|
|
307
|
+
integrity: integrity,
|
|
308
|
+
fetchPriority: fetchPriority
|
|
309
|
+
}
|
|
310
|
+
)
|
|
311
|
+
: "script" === as &&
|
|
312
|
+
Internals.d.X(href, {
|
|
313
|
+
crossOrigin: crossOrigin,
|
|
314
|
+
integrity: integrity,
|
|
315
|
+
fetchPriority: fetchPriority,
|
|
316
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
};
|
|
320
|
+
reactDom_production.preinitModule = function (href, options) {
|
|
321
|
+
if ("string" === typeof href)
|
|
322
|
+
if ("object" === typeof options && null !== options) {
|
|
323
|
+
if (null == options.as || "script" === options.as) {
|
|
324
|
+
var crossOrigin = getCrossOriginStringAs(
|
|
325
|
+
options.as,
|
|
326
|
+
options.crossOrigin
|
|
327
|
+
);
|
|
328
|
+
Internals.d.M(href, {
|
|
329
|
+
crossOrigin: crossOrigin,
|
|
330
|
+
integrity:
|
|
331
|
+
"string" === typeof options.integrity ? options.integrity : void 0,
|
|
332
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
} else null == options && Internals.d.M(href);
|
|
336
|
+
};
|
|
337
|
+
reactDom_production.preload = function (href, options) {
|
|
338
|
+
if (
|
|
339
|
+
"string" === typeof href &&
|
|
340
|
+
"object" === typeof options &&
|
|
341
|
+
null !== options &&
|
|
342
|
+
"string" === typeof options.as
|
|
343
|
+
) {
|
|
344
|
+
var as = options.as,
|
|
345
|
+
crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
|
|
346
|
+
Internals.d.L(href, as, {
|
|
347
|
+
crossOrigin: crossOrigin,
|
|
348
|
+
integrity:
|
|
349
|
+
"string" === typeof options.integrity ? options.integrity : void 0,
|
|
350
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
|
351
|
+
type: "string" === typeof options.type ? options.type : void 0,
|
|
352
|
+
fetchPriority:
|
|
353
|
+
"string" === typeof options.fetchPriority
|
|
354
|
+
? options.fetchPriority
|
|
355
|
+
: void 0,
|
|
356
|
+
referrerPolicy:
|
|
357
|
+
"string" === typeof options.referrerPolicy
|
|
358
|
+
? options.referrerPolicy
|
|
359
|
+
: void 0,
|
|
360
|
+
imageSrcSet:
|
|
361
|
+
"string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
|
|
362
|
+
imageSizes:
|
|
363
|
+
"string" === typeof options.imageSizes ? options.imageSizes : void 0,
|
|
364
|
+
media: "string" === typeof options.media ? options.media : void 0
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
};
|
|
368
|
+
reactDom_production.preloadModule = function (href, options) {
|
|
369
|
+
if ("string" === typeof href)
|
|
370
|
+
if (options) {
|
|
371
|
+
var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
|
|
372
|
+
Internals.d.m(href, {
|
|
373
|
+
as:
|
|
374
|
+
"string" === typeof options.as && "script" !== options.as
|
|
375
|
+
? options.as
|
|
376
|
+
: void 0,
|
|
377
|
+
crossOrigin: crossOrigin,
|
|
378
|
+
integrity:
|
|
379
|
+
"string" === typeof options.integrity ? options.integrity : void 0
|
|
380
|
+
});
|
|
381
|
+
} else Internals.d.m(href);
|
|
382
|
+
};
|
|
383
|
+
reactDom_production.requestFormReset = function (form) {
|
|
384
|
+
Internals.d.r(form);
|
|
385
|
+
};
|
|
386
|
+
reactDom_production.unstable_batchedUpdates = function (fn, a) {
|
|
387
|
+
return fn(a);
|
|
388
|
+
};
|
|
389
|
+
reactDom_production.useFormState = function (action, initialState, permalink) {
|
|
390
|
+
return ReactSharedInternals.H.useFormState(action, initialState, permalink);
|
|
391
|
+
};
|
|
392
|
+
reactDom_production.useFormStatus = function () {
|
|
393
|
+
return ReactSharedInternals.H.useHostTransitionStatus();
|
|
394
|
+
};
|
|
395
|
+
reactDom_production.version = "19.0.0";
|
|
396
|
+
return reactDom_production;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
var reactDom_development = {};
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* @license React
|
|
403
|
+
* react-dom.development.js
|
|
404
|
+
*
|
|
405
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
406
|
+
*
|
|
407
|
+
* This source code is licensed under the MIT license found in the
|
|
408
|
+
* LICENSE file in the root directory of this source tree.
|
|
409
|
+
*/
|
|
410
|
+
|
|
411
|
+
var hasRequiredReactDom_development;
|
|
412
|
+
|
|
413
|
+
function requireReactDom_development () {
|
|
414
|
+
if (hasRequiredReactDom_development) return reactDom_development;
|
|
415
|
+
hasRequiredReactDom_development = 1;
|
|
416
|
+
"production" !== process.env.NODE_ENV &&
|
|
417
|
+
(function () {
|
|
418
|
+
function noop() {}
|
|
419
|
+
function testStringCoercion(value) {
|
|
420
|
+
return "" + value;
|
|
421
|
+
}
|
|
422
|
+
function createPortal$1(children, containerInfo, implementation) {
|
|
423
|
+
var key =
|
|
424
|
+
3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
|
|
425
|
+
try {
|
|
426
|
+
testStringCoercion(key);
|
|
427
|
+
var JSCompiler_inline_result = !1;
|
|
428
|
+
} catch (e) {
|
|
429
|
+
JSCompiler_inline_result = !0;
|
|
430
|
+
}
|
|
431
|
+
JSCompiler_inline_result &&
|
|
432
|
+
(console.error(
|
|
433
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
434
|
+
("function" === typeof Symbol &&
|
|
435
|
+
Symbol.toStringTag &&
|
|
436
|
+
key[Symbol.toStringTag]) ||
|
|
437
|
+
key.constructor.name ||
|
|
438
|
+
"Object"
|
|
439
|
+
),
|
|
440
|
+
testStringCoercion(key));
|
|
441
|
+
return {
|
|
442
|
+
$$typeof: REACT_PORTAL_TYPE,
|
|
443
|
+
key: null == key ? null : "" + key,
|
|
444
|
+
children: children,
|
|
445
|
+
containerInfo: containerInfo,
|
|
446
|
+
implementation: implementation
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
function getCrossOriginStringAs(as, input) {
|
|
450
|
+
if ("font" === as) return "";
|
|
451
|
+
if ("string" === typeof input)
|
|
452
|
+
return "use-credentials" === input ? input : "";
|
|
453
|
+
}
|
|
454
|
+
function getValueDescriptorExpectingObjectForWarning(thing) {
|
|
455
|
+
return null === thing
|
|
456
|
+
? "`null`"
|
|
457
|
+
: void 0 === thing
|
|
458
|
+
? "`undefined`"
|
|
459
|
+
: "" === thing
|
|
460
|
+
? "an empty string"
|
|
461
|
+
: 'something with type "' + typeof thing + '"';
|
|
462
|
+
}
|
|
463
|
+
function getValueDescriptorExpectingEnumForWarning(thing) {
|
|
464
|
+
return null === thing
|
|
465
|
+
? "`null`"
|
|
466
|
+
: void 0 === thing
|
|
467
|
+
? "`undefined`"
|
|
468
|
+
: "" === thing
|
|
469
|
+
? "an empty string"
|
|
470
|
+
: "string" === typeof thing
|
|
471
|
+
? JSON.stringify(thing)
|
|
472
|
+
: "number" === typeof thing
|
|
473
|
+
? "`" + thing + "`"
|
|
474
|
+
: 'something with type "' + typeof thing + '"';
|
|
475
|
+
}
|
|
476
|
+
function resolveDispatcher() {
|
|
477
|
+
var dispatcher = ReactSharedInternals.H;
|
|
478
|
+
null === dispatcher &&
|
|
479
|
+
console.error(
|
|
480
|
+
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
481
|
+
);
|
|
482
|
+
return dispatcher;
|
|
483
|
+
}
|
|
484
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
485
|
+
"function" ===
|
|
486
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
|
|
487
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
488
|
+
var React = React__default,
|
|
489
|
+
Internals = {
|
|
490
|
+
d: {
|
|
491
|
+
f: noop,
|
|
492
|
+
r: function () {
|
|
493
|
+
throw Error(
|
|
494
|
+
"Invalid form element. requestFormReset must be passed a form that was rendered by React."
|
|
495
|
+
);
|
|
496
|
+
},
|
|
497
|
+
D: noop,
|
|
498
|
+
C: noop,
|
|
499
|
+
L: noop,
|
|
500
|
+
m: noop,
|
|
501
|
+
X: noop,
|
|
502
|
+
S: noop,
|
|
503
|
+
M: noop
|
|
504
|
+
},
|
|
505
|
+
p: 0,
|
|
506
|
+
findDOMNode: null
|
|
507
|
+
},
|
|
508
|
+
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
509
|
+
ReactSharedInternals =
|
|
510
|
+
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
511
|
+
("function" === typeof Map &&
|
|
512
|
+
null != Map.prototype &&
|
|
513
|
+
"function" === typeof Map.prototype.forEach &&
|
|
514
|
+
"function" === typeof Set &&
|
|
515
|
+
null != Set.prototype &&
|
|
516
|
+
"function" === typeof Set.prototype.clear &&
|
|
517
|
+
"function" === typeof Set.prototype.forEach) ||
|
|
518
|
+
console.error(
|
|
519
|
+
"React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
|
|
520
|
+
);
|
|
521
|
+
reactDom_development.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
522
|
+
Internals;
|
|
523
|
+
reactDom_development.createPortal = function (children, container) {
|
|
524
|
+
var key =
|
|
525
|
+
2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
|
|
526
|
+
if (
|
|
527
|
+
!container ||
|
|
528
|
+
(1 !== container.nodeType &&
|
|
529
|
+
9 !== container.nodeType &&
|
|
530
|
+
11 !== container.nodeType)
|
|
531
|
+
)
|
|
532
|
+
throw Error("Target container is not a DOM element.");
|
|
533
|
+
return createPortal$1(children, container, null, key);
|
|
534
|
+
};
|
|
535
|
+
reactDom_development.flushSync = function (fn) {
|
|
536
|
+
var previousTransition = ReactSharedInternals.T,
|
|
537
|
+
previousUpdatePriority = Internals.p;
|
|
538
|
+
try {
|
|
539
|
+
if (((ReactSharedInternals.T = null), (Internals.p = 2), fn))
|
|
540
|
+
return fn();
|
|
541
|
+
} finally {
|
|
542
|
+
(ReactSharedInternals.T = previousTransition),
|
|
543
|
+
(Internals.p = previousUpdatePriority),
|
|
544
|
+
Internals.d.f() &&
|
|
545
|
+
console.error(
|
|
546
|
+
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
|
547
|
+
);
|
|
548
|
+
}
|
|
549
|
+
};
|
|
550
|
+
reactDom_development.preconnect = function (href, options) {
|
|
551
|
+
"string" === typeof href && href
|
|
552
|
+
? null != options && "object" !== typeof options
|
|
553
|
+
? console.error(
|
|
554
|
+
"ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
|
|
555
|
+
getValueDescriptorExpectingEnumForWarning(options)
|
|
556
|
+
)
|
|
557
|
+
: null != options &&
|
|
558
|
+
"string" !== typeof options.crossOrigin &&
|
|
559
|
+
console.error(
|
|
560
|
+
"ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
|
|
561
|
+
getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
|
|
562
|
+
)
|
|
563
|
+
: console.error(
|
|
564
|
+
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
565
|
+
getValueDescriptorExpectingObjectForWarning(href)
|
|
566
|
+
);
|
|
567
|
+
"string" === typeof href &&
|
|
568
|
+
(options
|
|
569
|
+
? ((options = options.crossOrigin),
|
|
570
|
+
(options =
|
|
571
|
+
"string" === typeof options
|
|
572
|
+
? "use-credentials" === options
|
|
573
|
+
? options
|
|
574
|
+
: ""
|
|
575
|
+
: void 0))
|
|
576
|
+
: (options = null),
|
|
577
|
+
Internals.d.C(href, options));
|
|
578
|
+
};
|
|
579
|
+
reactDom_development.prefetchDNS = function (href) {
|
|
580
|
+
if ("string" !== typeof href || !href)
|
|
581
|
+
console.error(
|
|
582
|
+
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
583
|
+
getValueDescriptorExpectingObjectForWarning(href)
|
|
584
|
+
);
|
|
585
|
+
else if (1 < arguments.length) {
|
|
586
|
+
var options = arguments[1];
|
|
587
|
+
"object" === typeof options && options.hasOwnProperty("crossOrigin")
|
|
588
|
+
? console.error(
|
|
589
|
+
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
590
|
+
getValueDescriptorExpectingEnumForWarning(options)
|
|
591
|
+
)
|
|
592
|
+
: console.error(
|
|
593
|
+
"ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
|
|
594
|
+
getValueDescriptorExpectingEnumForWarning(options)
|
|
595
|
+
);
|
|
596
|
+
}
|
|
597
|
+
"string" === typeof href && Internals.d.D(href);
|
|
598
|
+
};
|
|
599
|
+
reactDom_development.preinit = function (href, options) {
|
|
600
|
+
"string" === typeof href && href
|
|
601
|
+
? null == options || "object" !== typeof options
|
|
602
|
+
? console.error(
|
|
603
|
+
"ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
|
|
604
|
+
getValueDescriptorExpectingEnumForWarning(options)
|
|
605
|
+
)
|
|
606
|
+
: "style" !== options.as &&
|
|
607
|
+
"script" !== options.as &&
|
|
608
|
+
console.error(
|
|
609
|
+
'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
|
|
610
|
+
getValueDescriptorExpectingEnumForWarning(options.as)
|
|
611
|
+
)
|
|
612
|
+
: console.error(
|
|
613
|
+
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
614
|
+
getValueDescriptorExpectingObjectForWarning(href)
|
|
615
|
+
);
|
|
616
|
+
if (
|
|
617
|
+
"string" === typeof href &&
|
|
618
|
+
options &&
|
|
619
|
+
"string" === typeof options.as
|
|
620
|
+
) {
|
|
621
|
+
var as = options.as,
|
|
622
|
+
crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),
|
|
623
|
+
integrity =
|
|
624
|
+
"string" === typeof options.integrity ? options.integrity : void 0,
|
|
625
|
+
fetchPriority =
|
|
626
|
+
"string" === typeof options.fetchPriority
|
|
627
|
+
? options.fetchPriority
|
|
628
|
+
: void 0;
|
|
629
|
+
"style" === as
|
|
630
|
+
? Internals.d.S(
|
|
631
|
+
href,
|
|
632
|
+
"string" === typeof options.precedence
|
|
633
|
+
? options.precedence
|
|
634
|
+
: void 0,
|
|
635
|
+
{
|
|
636
|
+
crossOrigin: crossOrigin,
|
|
637
|
+
integrity: integrity,
|
|
638
|
+
fetchPriority: fetchPriority
|
|
639
|
+
}
|
|
640
|
+
)
|
|
641
|
+
: "script" === as &&
|
|
642
|
+
Internals.d.X(href, {
|
|
643
|
+
crossOrigin: crossOrigin,
|
|
644
|
+
integrity: integrity,
|
|
645
|
+
fetchPriority: fetchPriority,
|
|
646
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0
|
|
647
|
+
});
|
|
648
|
+
}
|
|
649
|
+
};
|
|
650
|
+
reactDom_development.preinitModule = function (href, options) {
|
|
651
|
+
var encountered = "";
|
|
652
|
+
("string" === typeof href && href) ||
|
|
653
|
+
(encountered +=
|
|
654
|
+
" The `href` argument encountered was " +
|
|
655
|
+
getValueDescriptorExpectingObjectForWarning(href) +
|
|
656
|
+
".");
|
|
657
|
+
void 0 !== options && "object" !== typeof options
|
|
658
|
+
? (encountered +=
|
|
659
|
+
" The `options` argument encountered was " +
|
|
660
|
+
getValueDescriptorExpectingObjectForWarning(options) +
|
|
661
|
+
".")
|
|
662
|
+
: options &&
|
|
663
|
+
"as" in options &&
|
|
664
|
+
"script" !== options.as &&
|
|
665
|
+
(encountered +=
|
|
666
|
+
" The `as` option encountered was " +
|
|
667
|
+
getValueDescriptorExpectingEnumForWarning(options.as) +
|
|
668
|
+
".");
|
|
669
|
+
if (encountered)
|
|
670
|
+
console.error(
|
|
671
|
+
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
|
672
|
+
encountered
|
|
673
|
+
);
|
|
674
|
+
else
|
|
675
|
+
switch (
|
|
676
|
+
((encountered =
|
|
677
|
+
options && "string" === typeof options.as ? options.as : "script"),
|
|
678
|
+
encountered)
|
|
679
|
+
) {
|
|
680
|
+
case "script":
|
|
681
|
+
break;
|
|
682
|
+
default:
|
|
683
|
+
(encountered =
|
|
684
|
+
getValueDescriptorExpectingEnumForWarning(encountered)),
|
|
685
|
+
console.error(
|
|
686
|
+
'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
|
|
687
|
+
encountered,
|
|
688
|
+
href
|
|
689
|
+
);
|
|
690
|
+
}
|
|
691
|
+
if ("string" === typeof href)
|
|
692
|
+
if ("object" === typeof options && null !== options) {
|
|
693
|
+
if (null == options.as || "script" === options.as)
|
|
694
|
+
(encountered = getCrossOriginStringAs(
|
|
695
|
+
options.as,
|
|
696
|
+
options.crossOrigin
|
|
697
|
+
)),
|
|
698
|
+
Internals.d.M(href, {
|
|
699
|
+
crossOrigin: encountered,
|
|
700
|
+
integrity:
|
|
701
|
+
"string" === typeof options.integrity
|
|
702
|
+
? options.integrity
|
|
703
|
+
: void 0,
|
|
704
|
+
nonce:
|
|
705
|
+
"string" === typeof options.nonce ? options.nonce : void 0
|
|
706
|
+
});
|
|
707
|
+
} else null == options && Internals.d.M(href);
|
|
708
|
+
};
|
|
709
|
+
reactDom_development.preload = function (href, options) {
|
|
710
|
+
var encountered = "";
|
|
711
|
+
("string" === typeof href && href) ||
|
|
712
|
+
(encountered +=
|
|
713
|
+
" The `href` argument encountered was " +
|
|
714
|
+
getValueDescriptorExpectingObjectForWarning(href) +
|
|
715
|
+
".");
|
|
716
|
+
null == options || "object" !== typeof options
|
|
717
|
+
? (encountered +=
|
|
718
|
+
" The `options` argument encountered was " +
|
|
719
|
+
getValueDescriptorExpectingObjectForWarning(options) +
|
|
720
|
+
".")
|
|
721
|
+
: ("string" === typeof options.as && options.as) ||
|
|
722
|
+
(encountered +=
|
|
723
|
+
" The `as` option encountered was " +
|
|
724
|
+
getValueDescriptorExpectingObjectForWarning(options.as) +
|
|
725
|
+
".");
|
|
726
|
+
encountered &&
|
|
727
|
+
console.error(
|
|
728
|
+
'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
|
|
729
|
+
encountered
|
|
730
|
+
);
|
|
731
|
+
if (
|
|
732
|
+
"string" === typeof href &&
|
|
733
|
+
"object" === typeof options &&
|
|
734
|
+
null !== options &&
|
|
735
|
+
"string" === typeof options.as
|
|
736
|
+
) {
|
|
737
|
+
encountered = options.as;
|
|
738
|
+
var crossOrigin = getCrossOriginStringAs(
|
|
739
|
+
encountered,
|
|
740
|
+
options.crossOrigin
|
|
741
|
+
);
|
|
742
|
+
Internals.d.L(href, encountered, {
|
|
743
|
+
crossOrigin: crossOrigin,
|
|
744
|
+
integrity:
|
|
745
|
+
"string" === typeof options.integrity ? options.integrity : void 0,
|
|
746
|
+
nonce: "string" === typeof options.nonce ? options.nonce : void 0,
|
|
747
|
+
type: "string" === typeof options.type ? options.type : void 0,
|
|
748
|
+
fetchPriority:
|
|
749
|
+
"string" === typeof options.fetchPriority
|
|
750
|
+
? options.fetchPriority
|
|
751
|
+
: void 0,
|
|
752
|
+
referrerPolicy:
|
|
753
|
+
"string" === typeof options.referrerPolicy
|
|
754
|
+
? options.referrerPolicy
|
|
755
|
+
: void 0,
|
|
756
|
+
imageSrcSet:
|
|
757
|
+
"string" === typeof options.imageSrcSet
|
|
758
|
+
? options.imageSrcSet
|
|
759
|
+
: void 0,
|
|
760
|
+
imageSizes:
|
|
761
|
+
"string" === typeof options.imageSizes
|
|
762
|
+
? options.imageSizes
|
|
763
|
+
: void 0,
|
|
764
|
+
media: "string" === typeof options.media ? options.media : void 0
|
|
765
|
+
});
|
|
766
|
+
}
|
|
767
|
+
};
|
|
768
|
+
reactDom_development.preloadModule = function (href, options) {
|
|
769
|
+
var encountered = "";
|
|
770
|
+
("string" === typeof href && href) ||
|
|
771
|
+
(encountered +=
|
|
772
|
+
" The `href` argument encountered was " +
|
|
773
|
+
getValueDescriptorExpectingObjectForWarning(href) +
|
|
774
|
+
".");
|
|
775
|
+
void 0 !== options && "object" !== typeof options
|
|
776
|
+
? (encountered +=
|
|
777
|
+
" The `options` argument encountered was " +
|
|
778
|
+
getValueDescriptorExpectingObjectForWarning(options) +
|
|
779
|
+
".")
|
|
780
|
+
: options &&
|
|
781
|
+
"as" in options &&
|
|
782
|
+
"string" !== typeof options.as &&
|
|
783
|
+
(encountered +=
|
|
784
|
+
" The `as` option encountered was " +
|
|
785
|
+
getValueDescriptorExpectingObjectForWarning(options.as) +
|
|
786
|
+
".");
|
|
787
|
+
encountered &&
|
|
788
|
+
console.error(
|
|
789
|
+
'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
|
|
790
|
+
encountered
|
|
791
|
+
);
|
|
792
|
+
"string" === typeof href &&
|
|
793
|
+
(options
|
|
794
|
+
? ((encountered = getCrossOriginStringAs(
|
|
795
|
+
options.as,
|
|
796
|
+
options.crossOrigin
|
|
797
|
+
)),
|
|
798
|
+
Internals.d.m(href, {
|
|
799
|
+
as:
|
|
800
|
+
"string" === typeof options.as && "script" !== options.as
|
|
801
|
+
? options.as
|
|
802
|
+
: void 0,
|
|
803
|
+
crossOrigin: encountered,
|
|
804
|
+
integrity:
|
|
805
|
+
"string" === typeof options.integrity
|
|
806
|
+
? options.integrity
|
|
807
|
+
: void 0
|
|
808
|
+
}))
|
|
809
|
+
: Internals.d.m(href));
|
|
810
|
+
};
|
|
811
|
+
reactDom_development.requestFormReset = function (form) {
|
|
812
|
+
Internals.d.r(form);
|
|
813
|
+
};
|
|
814
|
+
reactDom_development.unstable_batchedUpdates = function (fn, a) {
|
|
815
|
+
return fn(a);
|
|
816
|
+
};
|
|
817
|
+
reactDom_development.useFormState = function (action, initialState, permalink) {
|
|
818
|
+
return resolveDispatcher().useFormState(action, initialState, permalink);
|
|
819
|
+
};
|
|
820
|
+
reactDom_development.useFormStatus = function () {
|
|
821
|
+
return resolveDispatcher().useHostTransitionStatus();
|
|
822
|
+
};
|
|
823
|
+
reactDom_development.version = "19.0.0";
|
|
824
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
825
|
+
"function" ===
|
|
826
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
|
827
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
828
|
+
})();
|
|
829
|
+
return reactDom_development;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
(function (module) {
|
|
833
|
+
|
|
834
|
+
function checkDCE() {
|
|
835
|
+
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
|
|
836
|
+
if (
|
|
837
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
|
|
838
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
|
|
839
|
+
) {
|
|
840
|
+
return;
|
|
841
|
+
}
|
|
842
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
843
|
+
// This branch is unreachable because this function is only called
|
|
844
|
+
// in production, but the condition is true only in development.
|
|
845
|
+
// Therefore if the branch is still here, dead code elimination wasn't
|
|
846
|
+
// properly applied.
|
|
847
|
+
// Don't change the message. React DevTools relies on it. Also make sure
|
|
848
|
+
// this message doesn't occur elsewhere in this function, or it will cause
|
|
849
|
+
// a false positive.
|
|
850
|
+
throw new Error('^_^');
|
|
851
|
+
}
|
|
852
|
+
try {
|
|
853
|
+
// Verify that the code above has been dead code eliminated (DCE'd).
|
|
854
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
|
|
855
|
+
} catch (err) {
|
|
856
|
+
// DevTools shouldn't crash React, no matter what.
|
|
857
|
+
// We should still report in case we break this code.
|
|
858
|
+
console.error(err);
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
if (process.env.NODE_ENV === 'production') {
|
|
863
|
+
// DCE check should happen before ReactDOM bundle executes so that
|
|
864
|
+
// DevTools can report bad minification during injection.
|
|
865
|
+
checkDCE();
|
|
866
|
+
module.exports = requireReactDom_production();
|
|
867
|
+
} else {
|
|
868
|
+
module.exports = requireReactDom_development();
|
|
869
|
+
}
|
|
870
|
+
} (reactDom));
|
|
871
|
+
|
|
872
|
+
var ReactDOM = /*@__PURE__*/getDefaultExportFromCjs(reactDom.exports);
|
|
873
|
+
|
|
175
874
|
/**
|
|
176
875
|
* Wait for a certain number of ms
|
|
177
876
|
* @author Gabe Abrams
|
|
@@ -4708,213 +5407,178 @@ var DBEntryFieldType;
|
|
|
4708
5407
|
var DBEntryFieldType$1 = DBEntryFieldType;
|
|
4709
5408
|
|
|
4710
5409
|
function _extends() {
|
|
4711
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
4712
|
-
for (var
|
|
4713
|
-
var
|
|
4714
|
-
for (var
|
|
4715
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
4716
|
-
target[key] = source[key];
|
|
4717
|
-
}
|
|
4718
|
-
}
|
|
5410
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
5411
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
5412
|
+
var t = arguments[e];
|
|
5413
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
4719
5414
|
}
|
|
4720
|
-
return
|
|
4721
|
-
};
|
|
4722
|
-
return _extends.apply(this, arguments);
|
|
5415
|
+
return n;
|
|
5416
|
+
}, _extends.apply(null, arguments);
|
|
4723
5417
|
}
|
|
4724
5418
|
|
|
4725
|
-
function _typeof(
|
|
5419
|
+
function _typeof(o) {
|
|
4726
5420
|
"@babel/helpers - typeof";
|
|
4727
5421
|
|
|
4728
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
4729
|
-
return typeof
|
|
4730
|
-
} : function (
|
|
4731
|
-
return
|
|
4732
|
-
}, _typeof(
|
|
5422
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
5423
|
+
return typeof o;
|
|
5424
|
+
} : function (o) {
|
|
5425
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
5426
|
+
}, _typeof(o);
|
|
4733
5427
|
}
|
|
4734
5428
|
|
|
4735
|
-
function
|
|
4736
|
-
if (
|
|
4737
|
-
var
|
|
4738
|
-
if (
|
|
4739
|
-
var
|
|
4740
|
-
if (
|
|
5429
|
+
function toPrimitive(t, r) {
|
|
5430
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
5431
|
+
var e = t[Symbol.toPrimitive];
|
|
5432
|
+
if (void 0 !== e) {
|
|
5433
|
+
var i = e.call(t, r || "default");
|
|
5434
|
+
if ("object" != _typeof(i)) return i;
|
|
4741
5435
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
4742
5436
|
}
|
|
4743
|
-
return (
|
|
5437
|
+
return ("string" === r ? String : Number)(t);
|
|
4744
5438
|
}
|
|
4745
5439
|
|
|
4746
|
-
function
|
|
4747
|
-
var
|
|
4748
|
-
return _typeof(
|
|
5440
|
+
function toPropertyKey(t) {
|
|
5441
|
+
var i = toPrimitive(t, "string");
|
|
5442
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
4749
5443
|
}
|
|
4750
5444
|
|
|
4751
|
-
function _defineProperty(
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
writable: true
|
|
4759
|
-
});
|
|
4760
|
-
} else {
|
|
4761
|
-
obj[key] = value;
|
|
4762
|
-
}
|
|
4763
|
-
return obj;
|
|
5445
|
+
function _defineProperty(e, r, t) {
|
|
5446
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
5447
|
+
value: t,
|
|
5448
|
+
enumerable: !0,
|
|
5449
|
+
configurable: !0,
|
|
5450
|
+
writable: !0
|
|
5451
|
+
}) : e[r] = t, e;
|
|
4764
5452
|
}
|
|
4765
5453
|
|
|
4766
|
-
function ownKeys(
|
|
4767
|
-
var
|
|
5454
|
+
function ownKeys(e, r) {
|
|
5455
|
+
var t = Object.keys(e);
|
|
4768
5456
|
if (Object.getOwnPropertySymbols) {
|
|
4769
|
-
var
|
|
4770
|
-
|
|
4771
|
-
return Object.getOwnPropertyDescriptor(
|
|
4772
|
-
})),
|
|
4773
|
-
}
|
|
4774
|
-
return
|
|
4775
|
-
}
|
|
4776
|
-
function _objectSpread2(
|
|
4777
|
-
for (var
|
|
4778
|
-
var
|
|
4779
|
-
|
|
4780
|
-
_defineProperty(
|
|
4781
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
4782
|
-
Object.defineProperty(
|
|
5457
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
5458
|
+
r && (o = o.filter(function (r) {
|
|
5459
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
5460
|
+
})), t.push.apply(t, o);
|
|
5461
|
+
}
|
|
5462
|
+
return t;
|
|
5463
|
+
}
|
|
5464
|
+
function _objectSpread2(e) {
|
|
5465
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
5466
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
5467
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
5468
|
+
_defineProperty(e, r, t[r]);
|
|
5469
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
5470
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
4783
5471
|
});
|
|
4784
5472
|
}
|
|
4785
|
-
return
|
|
5473
|
+
return e;
|
|
4786
5474
|
}
|
|
4787
5475
|
|
|
4788
|
-
function _classCallCheck(
|
|
4789
|
-
if (!(
|
|
4790
|
-
throw new TypeError("Cannot call a class as a function");
|
|
4791
|
-
}
|
|
5476
|
+
function _classCallCheck(a, n) {
|
|
5477
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
4792
5478
|
}
|
|
4793
5479
|
|
|
4794
|
-
function _defineProperties(
|
|
4795
|
-
for (var
|
|
4796
|
-
var
|
|
4797
|
-
|
|
4798
|
-
descriptor.configurable = true;
|
|
4799
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
4800
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
5480
|
+
function _defineProperties(e, r) {
|
|
5481
|
+
for (var t = 0; t < r.length; t++) {
|
|
5482
|
+
var o = r[t];
|
|
5483
|
+
o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);
|
|
4801
5484
|
}
|
|
4802
5485
|
}
|
|
4803
|
-
function _createClass(
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
writable: false
|
|
4808
|
-
});
|
|
4809
|
-
return Constructor;
|
|
5486
|
+
function _createClass(e, r, t) {
|
|
5487
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
5488
|
+
writable: !1
|
|
5489
|
+
}), e;
|
|
4810
5490
|
}
|
|
4811
5491
|
|
|
4812
|
-
function _setPrototypeOf(
|
|
4813
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
};
|
|
4817
|
-
return _setPrototypeOf(o, p);
|
|
5492
|
+
function _setPrototypeOf(t, e) {
|
|
5493
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
5494
|
+
return t.__proto__ = e, t;
|
|
5495
|
+
}, _setPrototypeOf(t, e);
|
|
4818
5496
|
}
|
|
4819
5497
|
|
|
4820
|
-
function _inherits(
|
|
4821
|
-
if (typeof
|
|
4822
|
-
|
|
4823
|
-
}
|
|
4824
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
5498
|
+
function _inherits(t, e) {
|
|
5499
|
+
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
5500
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
4825
5501
|
constructor: {
|
|
4826
|
-
value:
|
|
4827
|
-
writable:
|
|
4828
|
-
configurable:
|
|
5502
|
+
value: t,
|
|
5503
|
+
writable: !0,
|
|
5504
|
+
configurable: !0
|
|
4829
5505
|
}
|
|
4830
|
-
})
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
});
|
|
4834
|
-
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
5506
|
+
}), Object.defineProperty(t, "prototype", {
|
|
5507
|
+
writable: !1
|
|
5508
|
+
}), e && _setPrototypeOf(t, e);
|
|
4835
5509
|
}
|
|
4836
5510
|
|
|
4837
|
-
function _getPrototypeOf(
|
|
4838
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function
|
|
4839
|
-
return
|
|
4840
|
-
};
|
|
4841
|
-
return _getPrototypeOf(o);
|
|
5511
|
+
function _getPrototypeOf(t) {
|
|
5512
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
5513
|
+
return t.__proto__ || Object.getPrototypeOf(t);
|
|
5514
|
+
}, _getPrototypeOf(t);
|
|
4842
5515
|
}
|
|
4843
5516
|
|
|
4844
5517
|
function _isNativeReflectConstruct() {
|
|
4845
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
4846
|
-
if (Reflect.construct.sham) return false;
|
|
4847
|
-
if (typeof Proxy === "function") return true;
|
|
4848
5518
|
try {
|
|
4849
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
return
|
|
4853
|
-
}
|
|
4854
|
-
}
|
|
4855
|
-
|
|
4856
|
-
function _assertThisInitialized(
|
|
4857
|
-
if (
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
return
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
if (hasNativeReflectConstruct) {
|
|
4878
|
-
var NewTarget = _getPrototypeOf(this).constructor;
|
|
4879
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
4880
|
-
} else {
|
|
4881
|
-
result = Super.apply(this, arguments);
|
|
4882
|
-
}
|
|
4883
|
-
return _possibleConstructorReturn(this, result);
|
|
5519
|
+
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
5520
|
+
} catch (t) {}
|
|
5521
|
+
return (_isNativeReflectConstruct = function _isNativeReflectConstruct() {
|
|
5522
|
+
return !!t;
|
|
5523
|
+
})();
|
|
5524
|
+
}
|
|
5525
|
+
|
|
5526
|
+
function _assertThisInitialized(e) {
|
|
5527
|
+
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5528
|
+
return e;
|
|
5529
|
+
}
|
|
5530
|
+
|
|
5531
|
+
function _possibleConstructorReturn(t, e) {
|
|
5532
|
+
if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
|
|
5533
|
+
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
5534
|
+
return _assertThisInitialized(t);
|
|
5535
|
+
}
|
|
5536
|
+
|
|
5537
|
+
function _createSuper(t) {
|
|
5538
|
+
var r = _isNativeReflectConstruct();
|
|
5539
|
+
return function () {
|
|
5540
|
+
var e,
|
|
5541
|
+
o = _getPrototypeOf(t);
|
|
5542
|
+
if (r) {
|
|
5543
|
+
var s = _getPrototypeOf(this).constructor;
|
|
5544
|
+
e = Reflect.construct(o, arguments, s);
|
|
5545
|
+
} else e = o.apply(this, arguments);
|
|
5546
|
+
return _possibleConstructorReturn(this, e);
|
|
4884
5547
|
};
|
|
4885
5548
|
}
|
|
4886
5549
|
|
|
4887
|
-
function _arrayLikeToArray(
|
|
4888
|
-
|
|
4889
|
-
for (var
|
|
4890
|
-
return
|
|
5550
|
+
function _arrayLikeToArray(r, a) {
|
|
5551
|
+
(null == a || a > r.length) && (a = r.length);
|
|
5552
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
5553
|
+
return n;
|
|
4891
5554
|
}
|
|
4892
5555
|
|
|
4893
|
-
function _arrayWithoutHoles(
|
|
4894
|
-
if (Array.isArray(
|
|
5556
|
+
function _arrayWithoutHoles(r) {
|
|
5557
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
4895
5558
|
}
|
|
4896
5559
|
|
|
4897
|
-
function _iterableToArray(
|
|
4898
|
-
if (typeof Symbol
|
|
5560
|
+
function _iterableToArray(r) {
|
|
5561
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
4899
5562
|
}
|
|
4900
5563
|
|
|
4901
|
-
function _unsupportedIterableToArray(
|
|
4902
|
-
if (
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
5564
|
+
function _unsupportedIterableToArray(r, a) {
|
|
5565
|
+
if (r) {
|
|
5566
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
5567
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
5568
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
5569
|
+
}
|
|
4908
5570
|
}
|
|
4909
5571
|
|
|
4910
5572
|
function _nonIterableSpread() {
|
|
4911
5573
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
4912
5574
|
}
|
|
4913
5575
|
|
|
4914
|
-
function _toConsumableArray(
|
|
4915
|
-
return _arrayWithoutHoles(
|
|
5576
|
+
function _toConsumableArray(r) {
|
|
5577
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
4916
5578
|
}
|
|
4917
5579
|
|
|
5580
|
+
var isDevelopment$2 = false;
|
|
5581
|
+
|
|
4918
5582
|
/*
|
|
4919
5583
|
|
|
4920
5584
|
Based off glamor's StyleSheet, thanks Sunil ❤️
|
|
@@ -4937,10 +5601,9 @@ styleSheet.flush()
|
|
|
4937
5601
|
- empties the stylesheet of all its contents
|
|
4938
5602
|
|
|
4939
5603
|
*/
|
|
4940
|
-
|
|
5604
|
+
|
|
4941
5605
|
function sheetForTag(tag) {
|
|
4942
5606
|
if (tag.sheet) {
|
|
4943
|
-
// $FlowFixMe
|
|
4944
5607
|
return tag.sheet;
|
|
4945
5608
|
} // this weirdness brought to you by firefox
|
|
4946
5609
|
|
|
@@ -4949,10 +5612,13 @@ function sheetForTag(tag) {
|
|
|
4949
5612
|
|
|
4950
5613
|
for (var i = 0; i < document.styleSheets.length; i++) {
|
|
4951
5614
|
if (document.styleSheets[i].ownerNode === tag) {
|
|
4952
|
-
// $FlowFixMe
|
|
4953
5615
|
return document.styleSheets[i];
|
|
4954
5616
|
}
|
|
4955
|
-
}
|
|
5617
|
+
} // this function should always return with a value
|
|
5618
|
+
// TS can't understand it though so we make it stop complaining here
|
|
5619
|
+
|
|
5620
|
+
|
|
5621
|
+
return undefined;
|
|
4956
5622
|
}
|
|
4957
5623
|
|
|
4958
5624
|
function createStyleElement(options) {
|
|
@@ -4993,7 +5659,7 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
4993
5659
|
_this.tags.push(tag);
|
|
4994
5660
|
};
|
|
4995
5661
|
|
|
4996
|
-
this.isSpeedy = options.speedy === undefined ?
|
|
5662
|
+
this.isSpeedy = options.speedy === undefined ? !isDevelopment$2 : options.speedy;
|
|
4997
5663
|
this.tags = [];
|
|
4998
5664
|
this.ctr = 0;
|
|
4999
5665
|
this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
|
|
@@ -5021,18 +5687,6 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
5021
5687
|
|
|
5022
5688
|
var tag = this.tags[this.tags.length - 1];
|
|
5023
5689
|
|
|
5024
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
5025
|
-
var isImportRule = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105;
|
|
5026
|
-
|
|
5027
|
-
if (isImportRule && this._alreadyInsertedOrderInsensitiveRule) {
|
|
5028
|
-
// this would only cause problem in speedy mode
|
|
5029
|
-
// but we don't want enabling speedy to affect the observable behavior
|
|
5030
|
-
// so we report this error at all times
|
|
5031
|
-
console.error("You're attempting to insert the following rule:\n" + rule + '\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules.');
|
|
5032
|
-
}
|
|
5033
|
-
this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule;
|
|
5034
|
-
}
|
|
5035
|
-
|
|
5036
5690
|
if (this.isSpeedy) {
|
|
5037
5691
|
var sheet = sheetForTag(tag);
|
|
5038
5692
|
|
|
@@ -5041,9 +5695,6 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
5041
5695
|
// the big drawback is that the css won't be editable in devtools
|
|
5042
5696
|
sheet.insertRule(rule, sheet.cssRules.length);
|
|
5043
5697
|
} catch (e) {
|
|
5044
|
-
if (process.env.NODE_ENV !== 'production' && !/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(rule)) {
|
|
5045
|
-
console.error("There was a problem inserting the following rule: \"" + rule + "\"", e);
|
|
5046
|
-
}
|
|
5047
5698
|
}
|
|
5048
5699
|
} else {
|
|
5049
5700
|
tag.appendChild(document.createTextNode(rule));
|
|
@@ -5053,16 +5704,13 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
5053
5704
|
};
|
|
5054
5705
|
|
|
5055
5706
|
_proto.flush = function flush() {
|
|
5056
|
-
// $FlowFixMe
|
|
5057
5707
|
this.tags.forEach(function (tag) {
|
|
5058
|
-
|
|
5708
|
+
var _tag$parentNode;
|
|
5709
|
+
|
|
5710
|
+
return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);
|
|
5059
5711
|
});
|
|
5060
5712
|
this.tags = [];
|
|
5061
5713
|
this.ctr = 0;
|
|
5062
|
-
|
|
5063
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
5064
|
-
this._alreadyInsertedOrderInsensitiveRule = false;
|
|
5065
|
-
}
|
|
5066
5714
|
};
|
|
5067
5715
|
|
|
5068
5716
|
return StyleSheet;
|
|
@@ -5667,11 +6315,11 @@ function rulesheet (callback) {
|
|
|
5667
6315
|
}
|
|
5668
6316
|
|
|
5669
6317
|
var weakMemoize = function weakMemoize(func) {
|
|
5670
|
-
// $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
|
|
5671
6318
|
var cache = new WeakMap();
|
|
5672
6319
|
return function (arg) {
|
|
5673
6320
|
if (cache.has(arg)) {
|
|
5674
|
-
//
|
|
6321
|
+
// Use non-null assertion because we just checked that the cache `has` it
|
|
6322
|
+
// This allows us to remove `undefined` from the return value
|
|
5675
6323
|
return cache.get(arg);
|
|
5676
6324
|
}
|
|
5677
6325
|
|
|
@@ -5689,6 +6337,8 @@ function memoize(fn) {
|
|
|
5689
6337
|
};
|
|
5690
6338
|
}
|
|
5691
6339
|
|
|
6340
|
+
var isBrowser$3 = typeof document !== 'undefined';
|
|
6341
|
+
|
|
5692
6342
|
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
|
|
5693
6343
|
var previous = 0;
|
|
5694
6344
|
var character = 0;
|
|
@@ -5767,8 +6417,8 @@ var compat = function compat(element) {
|
|
|
5767
6417
|
return;
|
|
5768
6418
|
}
|
|
5769
6419
|
|
|
5770
|
-
var value = element.value
|
|
5771
|
-
|
|
6420
|
+
var value = element.value;
|
|
6421
|
+
var parent = element.parent;
|
|
5772
6422
|
var isImplicitRule = element.column === parent.column && element.line === parent.line;
|
|
5773
6423
|
|
|
5774
6424
|
while (parent.type !== 'rule') {
|
|
@@ -5813,114 +6463,6 @@ var removeLabel = function removeLabel(element) {
|
|
|
5813
6463
|
}
|
|
5814
6464
|
}
|
|
5815
6465
|
};
|
|
5816
|
-
var ignoreFlag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';
|
|
5817
|
-
|
|
5818
|
-
var isIgnoringComment = function isIgnoringComment(element) {
|
|
5819
|
-
return element.type === 'comm' && element.children.indexOf(ignoreFlag) > -1;
|
|
5820
|
-
};
|
|
5821
|
-
|
|
5822
|
-
var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) {
|
|
5823
|
-
return function (element, index, children) {
|
|
5824
|
-
if (element.type !== 'rule' || cache.compat) return;
|
|
5825
|
-
var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);
|
|
5826
|
-
|
|
5827
|
-
if (unsafePseudoClasses) {
|
|
5828
|
-
var isNested = !!element.parent; // in nested rules comments become children of the "auto-inserted" rule and that's always the `element.parent`
|
|
5829
|
-
//
|
|
5830
|
-
// considering this input:
|
|
5831
|
-
// .a {
|
|
5832
|
-
// .b /* comm */ {}
|
|
5833
|
-
// color: hotpink;
|
|
5834
|
-
// }
|
|
5835
|
-
// we get output corresponding to this:
|
|
5836
|
-
// .a {
|
|
5837
|
-
// & {
|
|
5838
|
-
// /* comm */
|
|
5839
|
-
// color: hotpink;
|
|
5840
|
-
// }
|
|
5841
|
-
// .b {}
|
|
5842
|
-
// }
|
|
5843
|
-
|
|
5844
|
-
var commentContainer = isNested ? element.parent.children : // global rule at the root level
|
|
5845
|
-
children;
|
|
5846
|
-
|
|
5847
|
-
for (var i = commentContainer.length - 1; i >= 0; i--) {
|
|
5848
|
-
var node = commentContainer[i];
|
|
5849
|
-
|
|
5850
|
-
if (node.line < element.line) {
|
|
5851
|
-
break;
|
|
5852
|
-
} // it is quite weird but comments are *usually* put at `column: element.column - 1`
|
|
5853
|
-
// so we seek *from the end* for the node that is earlier than the rule's `element` and check that
|
|
5854
|
-
// this will also match inputs like this:
|
|
5855
|
-
// .a {
|
|
5856
|
-
// /* comm */
|
|
5857
|
-
// .b {}
|
|
5858
|
-
// }
|
|
5859
|
-
//
|
|
5860
|
-
// but that is fine
|
|
5861
|
-
//
|
|
5862
|
-
// it would be the easiest to change the placement of the comment to be the first child of the rule:
|
|
5863
|
-
// .a {
|
|
5864
|
-
// .b { /* comm */ }
|
|
5865
|
-
// }
|
|
5866
|
-
// with such inputs we wouldn't have to search for the comment at all
|
|
5867
|
-
// TODO: consider changing this comment placement in the next major version
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
if (node.column < element.column) {
|
|
5871
|
-
if (isIgnoringComment(node)) {
|
|
5872
|
-
return;
|
|
5873
|
-
}
|
|
5874
|
-
|
|
5875
|
-
break;
|
|
5876
|
-
}
|
|
5877
|
-
}
|
|
5878
|
-
|
|
5879
|
-
unsafePseudoClasses.forEach(function (unsafePseudoClass) {
|
|
5880
|
-
console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\".");
|
|
5881
|
-
});
|
|
5882
|
-
}
|
|
5883
|
-
};
|
|
5884
|
-
};
|
|
5885
|
-
|
|
5886
|
-
var isImportRule = function isImportRule(element) {
|
|
5887
|
-
return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64;
|
|
5888
|
-
};
|
|
5889
|
-
|
|
5890
|
-
var isPrependedWithRegularRules = function isPrependedWithRegularRules(index, children) {
|
|
5891
|
-
for (var i = index - 1; i >= 0; i--) {
|
|
5892
|
-
if (!isImportRule(children[i])) {
|
|
5893
|
-
return true;
|
|
5894
|
-
}
|
|
5895
|
-
}
|
|
5896
|
-
|
|
5897
|
-
return false;
|
|
5898
|
-
}; // use this to remove incorrect elements from further processing
|
|
5899
|
-
// so they don't get handed to the `sheet` (or anything else)
|
|
5900
|
-
// as that could potentially lead to additional logs which in turn could be overhelming to the user
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
var nullifyElement = function nullifyElement(element) {
|
|
5904
|
-
element.type = '';
|
|
5905
|
-
element.value = '';
|
|
5906
|
-
element["return"] = '';
|
|
5907
|
-
element.children = '';
|
|
5908
|
-
element.props = '';
|
|
5909
|
-
};
|
|
5910
|
-
|
|
5911
|
-
var incorrectImportAlarm = function incorrectImportAlarm(element, index, children) {
|
|
5912
|
-
if (!isImportRule(element)) {
|
|
5913
|
-
return;
|
|
5914
|
-
}
|
|
5915
|
-
|
|
5916
|
-
if (element.parent) {
|
|
5917
|
-
console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles.");
|
|
5918
|
-
nullifyElement(element);
|
|
5919
|
-
} else if (isPrependedWithRegularRules(index, children)) {
|
|
5920
|
-
console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");
|
|
5921
|
-
nullifyElement(element);
|
|
5922
|
-
}
|
|
5923
|
-
};
|
|
5924
6466
|
|
|
5925
6467
|
/* eslint-disable no-fallthrough */
|
|
5926
6468
|
|
|
@@ -6134,13 +6676,9 @@ var prefixer = function prefixer(element, index, children, callback) {
|
|
|
6134
6676
|
}
|
|
6135
6677
|
};
|
|
6136
6678
|
|
|
6137
|
-
var isBrowser$
|
|
6138
|
-
var getServerStylisCache = isBrowser$4 ? undefined : weakMemoize(function () {
|
|
6679
|
+
var getServerStylisCache = isBrowser$3 ? undefined : weakMemoize(function () {
|
|
6139
6680
|
return memoize(function () {
|
|
6140
|
-
|
|
6141
|
-
return function (name) {
|
|
6142
|
-
return cache[name];
|
|
6143
|
-
};
|
|
6681
|
+
return {};
|
|
6144
6682
|
});
|
|
6145
6683
|
});
|
|
6146
6684
|
var defaultStylisPlugins = [prefixer];
|
|
@@ -6148,11 +6686,7 @@ var defaultStylisPlugins = [prefixer];
|
|
|
6148
6686
|
var createCache = function createCache(options) {
|
|
6149
6687
|
var key = options.key;
|
|
6150
6688
|
|
|
6151
|
-
if (
|
|
6152
|
-
throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\n" + "If multiple caches share the same key they might \"fight\" for each other's style elements.");
|
|
6153
|
-
}
|
|
6154
|
-
|
|
6155
|
-
if (isBrowser$4 && key === 'css') {
|
|
6689
|
+
if (isBrowser$3 && key === 'css') {
|
|
6156
6690
|
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
|
|
6157
6691
|
// document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
|
|
6158
6692
|
// note this very very intentionally targets all style elements regardless of the key to ensure
|
|
@@ -6170,6 +6704,7 @@ var createCache = function createCache(options) {
|
|
|
6170
6704
|
if (dataEmotionAttribute.indexOf(' ') === -1) {
|
|
6171
6705
|
return;
|
|
6172
6706
|
}
|
|
6707
|
+
|
|
6173
6708
|
document.head.appendChild(node);
|
|
6174
6709
|
node.setAttribute('data-s', '');
|
|
6175
6710
|
});
|
|
@@ -6177,23 +6712,16 @@ var createCache = function createCache(options) {
|
|
|
6177
6712
|
|
|
6178
6713
|
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
|
6179
6714
|
|
|
6180
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
6181
|
-
// $FlowFixMe
|
|
6182
|
-
if (/[^a-z-]/.test(key)) {
|
|
6183
|
-
throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
|
|
6184
|
-
}
|
|
6185
|
-
}
|
|
6186
|
-
|
|
6187
6715
|
var inserted = {};
|
|
6188
6716
|
var container;
|
|
6189
6717
|
var nodesToHydrate = [];
|
|
6190
6718
|
|
|
6191
|
-
if (isBrowser$
|
|
6719
|
+
if (isBrowser$3) {
|
|
6192
6720
|
container = options.container || document.head;
|
|
6193
6721
|
Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
|
|
6194
6722
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
6195
6723
|
document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node) {
|
|
6196
|
-
var attrib = node.getAttribute("data-emotion").split(' ');
|
|
6724
|
+
var attrib = node.getAttribute("data-emotion").split(' ');
|
|
6197
6725
|
|
|
6198
6726
|
for (var i = 1; i < attrib.length; i++) {
|
|
6199
6727
|
inserted[attrib[i]] = true;
|
|
@@ -6207,28 +6735,9 @@ var createCache = function createCache(options) {
|
|
|
6207
6735
|
|
|
6208
6736
|
var omnipresentPlugins = [compat, removeLabel];
|
|
6209
6737
|
|
|
6210
|
-
if (
|
|
6211
|
-
omnipresentPlugins.push(createUnsafeSelectorsAlarm({
|
|
6212
|
-
get compat() {
|
|
6213
|
-
return cache.compat;
|
|
6214
|
-
}
|
|
6215
|
-
|
|
6216
|
-
}), incorrectImportAlarm);
|
|
6217
|
-
}
|
|
6218
|
-
|
|
6219
|
-
if (isBrowser$4) {
|
|
6738
|
+
if (!getServerStylisCache) {
|
|
6220
6739
|
var currentSheet;
|
|
6221
|
-
var finalizingPlugins = [stringify,
|
|
6222
|
-
if (!element.root) {
|
|
6223
|
-
if (element["return"]) {
|
|
6224
|
-
currentSheet.insert(element["return"]);
|
|
6225
|
-
} else if (element.value && element.type !== COMMENT) {
|
|
6226
|
-
// insert empty rule in non-production environments
|
|
6227
|
-
// so @emotion/jest can grab `key` from the (JS)DOM for caches without any rules inserted yet
|
|
6228
|
-
currentSheet.insert(element.value + "{}");
|
|
6229
|
-
}
|
|
6230
|
-
}
|
|
6231
|
-
} : rulesheet(function (rule) {
|
|
6740
|
+
var finalizingPlugins = [stringify, rulesheet(function (rule) {
|
|
6232
6741
|
currentSheet.insert(rule);
|
|
6233
6742
|
})];
|
|
6234
6743
|
var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
|
@@ -6240,14 +6749,6 @@ var createCache = function createCache(options) {
|
|
|
6240
6749
|
_insert = function insert(selector, serialized, sheet, shouldCache) {
|
|
6241
6750
|
currentSheet = sheet;
|
|
6242
6751
|
|
|
6243
|
-
if (process.env.NODE_ENV !== 'production' && serialized.map !== undefined) {
|
|
6244
|
-
currentSheet = {
|
|
6245
|
-
insert: function insert(rule) {
|
|
6246
|
-
sheet.insert(rule + serialized.map);
|
|
6247
|
-
}
|
|
6248
|
-
};
|
|
6249
|
-
}
|
|
6250
|
-
|
|
6251
6752
|
stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
|
6252
6753
|
|
|
6253
6754
|
if (shouldCache) {
|
|
@@ -6261,8 +6762,7 @@ var createCache = function createCache(options) {
|
|
|
6261
6762
|
|
|
6262
6763
|
var _stylis = function _stylis(styles) {
|
|
6263
6764
|
return serialize(compile(styles), _serializer);
|
|
6264
|
-
};
|
|
6265
|
-
|
|
6765
|
+
};
|
|
6266
6766
|
|
|
6267
6767
|
var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
|
|
6268
6768
|
|
|
@@ -6288,12 +6788,6 @@ var createCache = function createCache(options) {
|
|
|
6288
6788
|
cache.inserted[name] = true;
|
|
6289
6789
|
}
|
|
6290
6790
|
|
|
6291
|
-
if ( // using === development instead of !== production
|
|
6292
|
-
// because if people do ssr in tests, the source maps showing up would be annoying
|
|
6293
|
-
process.env.NODE_ENV === 'development' && serialized.map !== undefined) {
|
|
6294
|
-
return rules + serialized.map;
|
|
6295
|
-
}
|
|
6296
|
-
|
|
6297
6791
|
return rules;
|
|
6298
6792
|
} else {
|
|
6299
6793
|
// in compat mode, we put the styles on the inserted cache so
|
|
@@ -6576,13 +7070,14 @@ var TYPE_STATICS = {};
|
|
|
6576
7070
|
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
6577
7071
|
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
6578
7072
|
|
|
6579
|
-
var isBrowser$
|
|
7073
|
+
var isBrowser$2 = typeof document !== 'undefined';
|
|
7074
|
+
|
|
6580
7075
|
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
|
6581
7076
|
var rawClassName = '';
|
|
6582
7077
|
classNames.split(' ').forEach(function (className) {
|
|
6583
7078
|
if (registered[className] !== undefined) {
|
|
6584
7079
|
registeredStyles.push(registered[className] + ";");
|
|
6585
|
-
} else {
|
|
7080
|
+
} else if (className) {
|
|
6586
7081
|
rawClassName += className + " ";
|
|
6587
7082
|
}
|
|
6588
7083
|
});
|
|
@@ -6600,7 +7095,7 @@ var registerStyles = function registerStyles(cache, serialized, isStringTag) {
|
|
|
6600
7095
|
// in node since emotion-server relies on whether a style is in
|
|
6601
7096
|
// the registered cache to know whether a style is global or not
|
|
6602
7097
|
// also, note that this check will be dead code eliminated in the browser
|
|
6603
|
-
isBrowser$
|
|
7098
|
+
isBrowser$2 === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
|
|
6604
7099
|
cache.registered[className] = serialized.styles;
|
|
6605
7100
|
}
|
|
6606
7101
|
};
|
|
@@ -6615,14 +7110,14 @@ var insertStyles = function insertStyles(cache, serialized, isStringTag) {
|
|
|
6615
7110
|
do {
|
|
6616
7111
|
var maybeStyles = cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);
|
|
6617
7112
|
|
|
6618
|
-
if (!isBrowser$
|
|
7113
|
+
if (!isBrowser$2 && maybeStyles !== undefined) {
|
|
6619
7114
|
stylesForSSR += maybeStyles;
|
|
6620
7115
|
}
|
|
6621
7116
|
|
|
6622
7117
|
current = current.next;
|
|
6623
7118
|
} while (current !== undefined);
|
|
6624
7119
|
|
|
6625
|
-
if (!isBrowser$
|
|
7120
|
+
if (!isBrowser$2 && stylesForSSR.length !== 0) {
|
|
6626
7121
|
return stylesForSSR;
|
|
6627
7122
|
}
|
|
6628
7123
|
}
|
|
@@ -6716,6 +7211,7 @@ var unitlessKeys = {
|
|
|
6716
7211
|
opacity: 1,
|
|
6717
7212
|
order: 1,
|
|
6718
7213
|
orphans: 1,
|
|
7214
|
+
scale: 1,
|
|
6719
7215
|
tabSize: 1,
|
|
6720
7216
|
widows: 1,
|
|
6721
7217
|
zIndex: 1,
|
|
@@ -6732,8 +7228,8 @@ var unitlessKeys = {
|
|
|
6732
7228
|
strokeWidth: 1
|
|
6733
7229
|
};
|
|
6734
7230
|
|
|
6735
|
-
var
|
|
6736
|
-
|
|
7231
|
+
var isDevelopment$1 = false;
|
|
7232
|
+
|
|
6737
7233
|
var hyphenateRegex = /[A-Z]|^ms/g;
|
|
6738
7234
|
var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
|
|
6739
7235
|
|
|
@@ -6774,34 +7270,6 @@ var processStyleValue = function processStyleValue(key, value) {
|
|
|
6774
7270
|
return value;
|
|
6775
7271
|
};
|
|
6776
7272
|
|
|
6777
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
6778
|
-
var contentValuePattern = /(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
|
|
6779
|
-
var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset'];
|
|
6780
|
-
var oldProcessStyleValue = processStyleValue;
|
|
6781
|
-
var msPattern = /^-ms-/;
|
|
6782
|
-
var hyphenPattern = /-(.)/g;
|
|
6783
|
-
var hyphenatedCache = {};
|
|
6784
|
-
|
|
6785
|
-
processStyleValue = function processStyleValue(key, value) {
|
|
6786
|
-
if (key === 'content') {
|
|
6787
|
-
if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
|
|
6788
|
-
throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
|
|
6789
|
-
}
|
|
6790
|
-
}
|
|
6791
|
-
|
|
6792
|
-
var processed = oldProcessStyleValue(key, value);
|
|
6793
|
-
|
|
6794
|
-
if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) {
|
|
6795
|
-
hyphenatedCache[key] = true;
|
|
6796
|
-
console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) {
|
|
6797
|
-
return _char.toUpperCase();
|
|
6798
|
-
}) + "?");
|
|
6799
|
-
}
|
|
6800
|
-
|
|
6801
|
-
return processed;
|
|
6802
|
-
};
|
|
6803
|
-
}
|
|
6804
|
-
|
|
6805
7273
|
var noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';
|
|
6806
7274
|
|
|
6807
7275
|
function handleInterpolation(mergedProps, registered, interpolation) {
|
|
@@ -6809,12 +7277,11 @@ function handleInterpolation(mergedProps, registered, interpolation) {
|
|
|
6809
7277
|
return '';
|
|
6810
7278
|
}
|
|
6811
7279
|
|
|
6812
|
-
|
|
6813
|
-
if (process.env.NODE_ENV !== 'production' && interpolation.toString() === 'NO_COMPONENT_SELECTOR') {
|
|
6814
|
-
throw new Error(noComponentSelectorMessage);
|
|
6815
|
-
}
|
|
7280
|
+
var componentSelector = interpolation;
|
|
6816
7281
|
|
|
6817
|
-
|
|
7282
|
+
if (componentSelector.__emotion_styles !== undefined) {
|
|
7283
|
+
|
|
7284
|
+
return componentSelector;
|
|
6818
7285
|
}
|
|
6819
7286
|
|
|
6820
7287
|
switch (typeof interpolation) {
|
|
@@ -6825,17 +7292,21 @@ function handleInterpolation(mergedProps, registered, interpolation) {
|
|
|
6825
7292
|
|
|
6826
7293
|
case 'object':
|
|
6827
7294
|
{
|
|
6828
|
-
|
|
7295
|
+
var keyframes = interpolation;
|
|
7296
|
+
|
|
7297
|
+
if (keyframes.anim === 1) {
|
|
6829
7298
|
cursor = {
|
|
6830
|
-
name:
|
|
6831
|
-
styles:
|
|
7299
|
+
name: keyframes.name,
|
|
7300
|
+
styles: keyframes.styles,
|
|
6832
7301
|
next: cursor
|
|
6833
7302
|
};
|
|
6834
|
-
return
|
|
7303
|
+
return keyframes.name;
|
|
6835
7304
|
}
|
|
6836
7305
|
|
|
6837
|
-
|
|
6838
|
-
|
|
7306
|
+
var serializedStyles = interpolation;
|
|
7307
|
+
|
|
7308
|
+
if (serializedStyles.styles !== undefined) {
|
|
7309
|
+
var next = serializedStyles.next;
|
|
6839
7310
|
|
|
6840
7311
|
if (next !== undefined) {
|
|
6841
7312
|
// not the most efficient thing ever but this is a pretty rare case
|
|
@@ -6850,12 +7321,7 @@ function handleInterpolation(mergedProps, registered, interpolation) {
|
|
|
6850
7321
|
}
|
|
6851
7322
|
}
|
|
6852
7323
|
|
|
6853
|
-
var styles =
|
|
6854
|
-
|
|
6855
|
-
if (process.env.NODE_ENV !== 'production' && interpolation.map !== undefined) {
|
|
6856
|
-
styles += interpolation.map;
|
|
6857
|
-
}
|
|
6858
|
-
|
|
7324
|
+
var styles = serializedStyles.styles + ";";
|
|
6859
7325
|
return styles;
|
|
6860
7326
|
}
|
|
6861
7327
|
|
|
@@ -6869,37 +7335,21 @@ function handleInterpolation(mergedProps, registered, interpolation) {
|
|
|
6869
7335
|
var result = interpolation(mergedProps);
|
|
6870
7336
|
cursor = previousCursor;
|
|
6871
7337
|
return handleInterpolation(mergedProps, registered, result);
|
|
6872
|
-
} else if (process.env.NODE_ENV !== 'production') {
|
|
6873
|
-
console.error('Functions that are interpolated in css calls will be stringified.\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\n' + 'It can be called directly with props or interpolated in a styled call like this\n' + "let SomeComponent = styled('div')`${dynamicStyle}`");
|
|
6874
7338
|
}
|
|
6875
7339
|
|
|
6876
7340
|
break;
|
|
6877
7341
|
}
|
|
6878
|
-
|
|
6879
|
-
case 'string':
|
|
6880
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
6881
|
-
var matched = [];
|
|
6882
|
-
var replaced = interpolation.replace(animationRegex, function (match, p1, p2) {
|
|
6883
|
-
var fakeVarName = "animation" + matched.length;
|
|
6884
|
-
matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, '') + "`");
|
|
6885
|
-
return "${" + fakeVarName + "}";
|
|
6886
|
-
});
|
|
6887
|
-
|
|
6888
|
-
if (matched.length) {
|
|
6889
|
-
console.error('`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\n' + 'Instead of doing this:\n\n' + [].concat(matched, ["`" + replaced + "`"]).join('\n') + '\n\nYou should wrap it with `css` like this:\n\n' + ("css`" + replaced + "`"));
|
|
6890
|
-
}
|
|
6891
|
-
}
|
|
6892
|
-
|
|
6893
|
-
break;
|
|
6894
7342
|
} // finalize string values (regular strings and functions interpolated into css calls)
|
|
6895
7343
|
|
|
6896
7344
|
|
|
7345
|
+
var asString = interpolation;
|
|
7346
|
+
|
|
6897
7347
|
if (registered == null) {
|
|
6898
|
-
return
|
|
7348
|
+
return asString;
|
|
6899
7349
|
}
|
|
6900
7350
|
|
|
6901
|
-
var cached = registered[
|
|
6902
|
-
return cached !== undefined ? cached :
|
|
7351
|
+
var cached = registered[asString];
|
|
7352
|
+
return cached !== undefined ? cached : asString;
|
|
6903
7353
|
}
|
|
6904
7354
|
|
|
6905
7355
|
function createStringFromObject(mergedProps, registered, obj) {
|
|
@@ -6910,44 +7360,43 @@ function createStringFromObject(mergedProps, registered, obj) {
|
|
|
6910
7360
|
string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
|
|
6911
7361
|
}
|
|
6912
7362
|
} else {
|
|
6913
|
-
for (var
|
|
6914
|
-
var value = obj[
|
|
7363
|
+
for (var key in obj) {
|
|
7364
|
+
var value = obj[key];
|
|
6915
7365
|
|
|
6916
7366
|
if (typeof value !== 'object') {
|
|
6917
|
-
|
|
6918
|
-
|
|
6919
|
-
|
|
6920
|
-
string +=
|
|
7367
|
+
var asString = value;
|
|
7368
|
+
|
|
7369
|
+
if (registered != null && registered[asString] !== undefined) {
|
|
7370
|
+
string += key + "{" + registered[asString] + "}";
|
|
7371
|
+
} else if (isProcessableValue(asString)) {
|
|
7372
|
+
string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
|
|
6921
7373
|
}
|
|
6922
7374
|
} else {
|
|
6923
|
-
if (
|
|
7375
|
+
if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment$1) {
|
|
6924
7376
|
throw new Error(noComponentSelectorMessage);
|
|
6925
7377
|
}
|
|
6926
7378
|
|
|
6927
7379
|
if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {
|
|
6928
7380
|
for (var _i = 0; _i < value.length; _i++) {
|
|
6929
7381
|
if (isProcessableValue(value[_i])) {
|
|
6930
|
-
string += processStyleName(
|
|
7382
|
+
string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";";
|
|
6931
7383
|
}
|
|
6932
7384
|
}
|
|
6933
7385
|
} else {
|
|
6934
7386
|
var interpolated = handleInterpolation(mergedProps, registered, value);
|
|
6935
7387
|
|
|
6936
|
-
switch (
|
|
7388
|
+
switch (key) {
|
|
6937
7389
|
case 'animation':
|
|
6938
7390
|
case 'animationName':
|
|
6939
7391
|
{
|
|
6940
|
-
string += processStyleName(
|
|
7392
|
+
string += processStyleName(key) + ":" + interpolated + ";";
|
|
6941
7393
|
break;
|
|
6942
7394
|
}
|
|
6943
7395
|
|
|
6944
7396
|
default:
|
|
6945
7397
|
{
|
|
6946
|
-
if (process.env.NODE_ENV !== 'production' && _key === 'undefined') {
|
|
6947
|
-
console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
|
|
6948
|
-
}
|
|
6949
7398
|
|
|
6950
|
-
string +=
|
|
7399
|
+
string += key + "{" + interpolated + "}";
|
|
6951
7400
|
}
|
|
6952
7401
|
}
|
|
6953
7402
|
}
|
|
@@ -6958,17 +7407,11 @@ function createStringFromObject(mergedProps, registered, obj) {
|
|
|
6958
7407
|
return string;
|
|
6959
7408
|
}
|
|
6960
7409
|
|
|
6961
|
-
var labelPattern = /label:\s*([^\s
|
|
6962
|
-
var sourceMapPattern;
|
|
6963
|
-
|
|
6964
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
6965
|
-
sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
|
|
6966
|
-
} // this is the cursor for keyframes
|
|
7410
|
+
var labelPattern = /label:\s*([^\s;{]+)\s*(;|$)/g; // this is the cursor for keyframes
|
|
6967
7411
|
// keyframes are stored on the SerializedStyles object as a linked list
|
|
6968
7412
|
|
|
6969
|
-
|
|
6970
7413
|
var cursor;
|
|
6971
|
-
|
|
7414
|
+
function serializeStyles(args, registered, mergedProps) {
|
|
6972
7415
|
if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {
|
|
6973
7416
|
return args[0];
|
|
6974
7417
|
}
|
|
@@ -6982,11 +7425,9 @@ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
|
|
|
6982
7425
|
stringMode = false;
|
|
6983
7426
|
styles += handleInterpolation(mergedProps, registered, strings);
|
|
6984
7427
|
} else {
|
|
6985
|
-
|
|
6986
|
-
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
|
|
6987
|
-
}
|
|
7428
|
+
var asTemplateStringsArr = strings;
|
|
6988
7429
|
|
|
6989
|
-
styles +=
|
|
7430
|
+
styles += asTemplateStringsArr[0];
|
|
6990
7431
|
} // we start at 1 since we've already handled the first arg
|
|
6991
7432
|
|
|
6992
7433
|
|
|
@@ -6994,21 +7435,10 @@ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
|
|
|
6994
7435
|
styles += handleInterpolation(mergedProps, registered, args[i]);
|
|
6995
7436
|
|
|
6996
7437
|
if (stringMode) {
|
|
6997
|
-
|
|
6998
|
-
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
|
|
6999
|
-
}
|
|
7438
|
+
var templateStringsArr = strings;
|
|
7000
7439
|
|
|
7001
|
-
styles +=
|
|
7440
|
+
styles += templateStringsArr[i];
|
|
7002
7441
|
}
|
|
7003
|
-
}
|
|
7004
|
-
|
|
7005
|
-
var sourceMap;
|
|
7006
|
-
|
|
7007
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
7008
|
-
styles = styles.replace(sourceMapPattern, function (match) {
|
|
7009
|
-
sourceMap = match;
|
|
7010
|
-
return '';
|
|
7011
|
-
});
|
|
7012
7442
|
} // using a global regex with .exec is stateful so lastIndex has to be reset each time
|
|
7013
7443
|
|
|
7014
7444
|
|
|
@@ -7017,44 +7447,30 @@ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
|
|
|
7017
7447
|
var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5
|
|
7018
7448
|
|
|
7019
7449
|
while ((match = labelPattern.exec(styles)) !== null) {
|
|
7020
|
-
identifierName += '-' +
|
|
7021
|
-
match[1];
|
|
7450
|
+
identifierName += '-' + match[1];
|
|
7022
7451
|
}
|
|
7023
7452
|
|
|
7024
7453
|
var name = murmur2(styles) + identifierName;
|
|
7025
7454
|
|
|
7026
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
7027
|
-
// $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it)
|
|
7028
|
-
return {
|
|
7029
|
-
name: name,
|
|
7030
|
-
styles: styles,
|
|
7031
|
-
map: sourceMap,
|
|
7032
|
-
next: cursor,
|
|
7033
|
-
toString: function toString() {
|
|
7034
|
-
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
7035
|
-
}
|
|
7036
|
-
};
|
|
7037
|
-
}
|
|
7038
|
-
|
|
7039
7455
|
return {
|
|
7040
7456
|
name: name,
|
|
7041
7457
|
styles: styles,
|
|
7042
7458
|
next: cursor
|
|
7043
7459
|
};
|
|
7044
|
-
}
|
|
7460
|
+
}
|
|
7045
7461
|
|
|
7046
|
-
var isBrowser$
|
|
7462
|
+
var isBrowser$1 = typeof document !== 'undefined';
|
|
7047
7463
|
|
|
7048
7464
|
var syncFallback = function syncFallback(create) {
|
|
7049
7465
|
return create();
|
|
7050
7466
|
};
|
|
7051
7467
|
|
|
7052
7468
|
var useInsertionEffect = React['useInsertion' + 'Effect'] ? React['useInsertion' + 'Effect'] : false;
|
|
7053
|
-
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$
|
|
7054
|
-
var useInsertionEffectWithLayoutFallback = useInsertionEffect || React.useLayoutEffect;
|
|
7469
|
+
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser$1 ? syncFallback : useInsertionEffect || syncFallback;
|
|
7055
7470
|
|
|
7056
|
-
var
|
|
7057
|
-
|
|
7471
|
+
var isDevelopment = false;
|
|
7472
|
+
|
|
7473
|
+
var isBrowser = typeof document !== 'undefined';
|
|
7058
7474
|
|
|
7059
7475
|
var EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
7060
7476
|
// because this module is primarily intended for the browser and node
|
|
@@ -7066,14 +7482,9 @@ typeof HTMLElement !== 'undefined' ? /* #__PURE__ */createCache({
|
|
|
7066
7482
|
key: 'css'
|
|
7067
7483
|
}) : null);
|
|
7068
7484
|
|
|
7069
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
7070
|
-
EmotionCacheContext.displayName = 'EmotionCacheContext';
|
|
7071
|
-
}
|
|
7072
|
-
|
|
7073
7485
|
EmotionCacheContext.Provider;
|
|
7074
7486
|
|
|
7075
7487
|
var withEmotionCache = function withEmotionCache(func) {
|
|
7076
|
-
// $FlowFixMe
|
|
7077
7488
|
return /*#__PURE__*/forwardRef(function (props, ref) {
|
|
7078
7489
|
// the cache will never be null in the browser
|
|
7079
7490
|
var cache = useContext(EmotionCacheContext);
|
|
@@ -7081,7 +7492,7 @@ var withEmotionCache = function withEmotionCache(func) {
|
|
|
7081
7492
|
});
|
|
7082
7493
|
};
|
|
7083
7494
|
|
|
7084
|
-
if (!isBrowser
|
|
7495
|
+
if (!isBrowser) {
|
|
7085
7496
|
withEmotionCache = function withEmotionCache(func) {
|
|
7086
7497
|
return function (props) {
|
|
7087
7498
|
var cache = useContext(EmotionCacheContext);
|
|
@@ -7107,81 +7518,25 @@ if (!isBrowser$1) {
|
|
|
7107
7518
|
|
|
7108
7519
|
var ThemeContext = /* #__PURE__ */React.createContext({});
|
|
7109
7520
|
|
|
7110
|
-
|
|
7111
|
-
ThemeContext.displayName = 'EmotionThemeContext';
|
|
7112
|
-
}
|
|
7113
|
-
|
|
7114
|
-
var getLastPart = function getLastPart(functionName) {
|
|
7115
|
-
// The match may be something like 'Object.createEmotionProps' or
|
|
7116
|
-
// 'Loader.prototype.render'
|
|
7117
|
-
var parts = functionName.split('.');
|
|
7118
|
-
return parts[parts.length - 1];
|
|
7119
|
-
};
|
|
7120
|
-
|
|
7121
|
-
var getFunctionNameFromStackTraceLine = function getFunctionNameFromStackTraceLine(line) {
|
|
7122
|
-
// V8
|
|
7123
|
-
var match = /^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(line);
|
|
7124
|
-
if (match) return getLastPart(match[1]); // Safari / Firefox
|
|
7125
|
-
|
|
7126
|
-
match = /^([A-Za-z0-9$.]+)@/.exec(line);
|
|
7127
|
-
if (match) return getLastPart(match[1]);
|
|
7128
|
-
return undefined;
|
|
7129
|
-
};
|
|
7130
|
-
|
|
7131
|
-
var internalReactFunctionNames = /* #__PURE__ */new Set(['renderWithHooks', 'processChild', 'finishClassComponent', 'renderToString']); // These identifiers come from error stacks, so they have to be valid JS
|
|
7132
|
-
// identifiers, thus we only need to replace what is a valid character for JS,
|
|
7133
|
-
// but not for CSS.
|
|
7134
|
-
|
|
7135
|
-
var sanitizeIdentifier = function sanitizeIdentifier(identifier) {
|
|
7136
|
-
return identifier.replace(/\$/g, '-');
|
|
7137
|
-
};
|
|
7138
|
-
|
|
7139
|
-
var getLabelFromStackTrace = function getLabelFromStackTrace(stackTrace) {
|
|
7140
|
-
if (!stackTrace) return undefined;
|
|
7141
|
-
var lines = stackTrace.split('\n');
|
|
7142
|
-
|
|
7143
|
-
for (var i = 0; i < lines.length; i++) {
|
|
7144
|
-
var functionName = getFunctionNameFromStackTraceLine(lines[i]); // The first line of V8 stack traces is just "Error"
|
|
7145
|
-
|
|
7146
|
-
if (!functionName) continue; // If we reach one of these, we have gone too far and should quit
|
|
7147
|
-
|
|
7148
|
-
if (internalReactFunctionNames.has(functionName)) break; // The component name is the first function in the stack that starts with an
|
|
7149
|
-
// uppercase letter
|
|
7150
|
-
|
|
7151
|
-
if (/^[A-Z]/.test(functionName)) return sanitizeIdentifier(functionName);
|
|
7152
|
-
}
|
|
7153
|
-
|
|
7154
|
-
return undefined;
|
|
7155
|
-
};
|
|
7521
|
+
var hasOwn = {}.hasOwnProperty;
|
|
7156
7522
|
|
|
7157
7523
|
var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
|
|
7158
|
-
var labelPropName = '__EMOTION_LABEL_PLEASE_DO_NOT_USE__';
|
|
7159
7524
|
var createEmotionProps = function createEmotionProps(type, props) {
|
|
7160
|
-
if (process.env.NODE_ENV !== 'production' && typeof props.css === 'string' && // check if there is a css declaration
|
|
7161
|
-
props.css.indexOf(':') !== -1) {
|
|
7162
|
-
throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`" + props.css + "`");
|
|
7163
|
-
}
|
|
7164
7525
|
|
|
7165
7526
|
var newProps = {};
|
|
7166
7527
|
|
|
7167
|
-
for (var
|
|
7168
|
-
if (
|
|
7169
|
-
newProps[
|
|
7528
|
+
for (var _key in props) {
|
|
7529
|
+
if (hasOwn.call(props, _key)) {
|
|
7530
|
+
newProps[_key] = props[_key];
|
|
7170
7531
|
}
|
|
7171
7532
|
}
|
|
7172
7533
|
|
|
7173
|
-
newProps[typePropName] = type; //
|
|
7174
|
-
// the label hasn't already been computed
|
|
7175
|
-
|
|
7176
|
-
if (process.env.NODE_ENV !== 'production' && !!props.css && (typeof props.css !== 'object' || typeof props.css.name !== 'string' || props.css.name.indexOf('-') === -1)) {
|
|
7177
|
-
var label = getLabelFromStackTrace(new Error().stack);
|
|
7178
|
-
if (label) newProps[labelPropName] = label;
|
|
7179
|
-
}
|
|
7534
|
+
newProps[typePropName] = type; // Runtime labeling is an opt-in feature because:
|
|
7180
7535
|
|
|
7181
7536
|
return newProps;
|
|
7182
7537
|
};
|
|
7183
7538
|
|
|
7184
|
-
var Insertion
|
|
7539
|
+
var Insertion = function Insertion(_ref) {
|
|
7185
7540
|
var cache = _ref.cache,
|
|
7186
7541
|
serialized = _ref.serialized,
|
|
7187
7542
|
isStringTag = _ref.isStringTag;
|
|
@@ -7190,7 +7545,7 @@ var Insertion$1 = function Insertion(_ref) {
|
|
|
7190
7545
|
return insertStyles(cache, serialized, isStringTag);
|
|
7191
7546
|
});
|
|
7192
7547
|
|
|
7193
|
-
if (!isBrowser
|
|
7548
|
+
if (!isBrowser && rules !== undefined) {
|
|
7194
7549
|
var _ref2;
|
|
7195
7550
|
|
|
7196
7551
|
var serializedNames = serialized.name;
|
|
@@ -7230,175 +7585,35 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
|
|
|
7230
7585
|
|
|
7231
7586
|
var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext));
|
|
7232
7587
|
|
|
7233
|
-
if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {
|
|
7234
|
-
var labelFromStack = props[labelPropName];
|
|
7235
|
-
|
|
7236
|
-
if (labelFromStack) {
|
|
7237
|
-
serialized = serializeStyles([serialized, 'label:' + labelFromStack + ';']);
|
|
7238
|
-
}
|
|
7239
|
-
}
|
|
7240
|
-
|
|
7241
7588
|
className += cache.key + "-" + serialized.name;
|
|
7242
7589
|
var newProps = {};
|
|
7243
7590
|
|
|
7244
|
-
for (var
|
|
7245
|
-
if (
|
|
7246
|
-
newProps[
|
|
7591
|
+
for (var _key2 in props) {
|
|
7592
|
+
if (hasOwn.call(props, _key2) && _key2 !== 'css' && _key2 !== typePropName && (!isDevelopment )) {
|
|
7593
|
+
newProps[_key2] = props[_key2];
|
|
7247
7594
|
}
|
|
7248
7595
|
}
|
|
7249
7596
|
|
|
7250
|
-
newProps.ref = ref;
|
|
7251
7597
|
newProps.className = className;
|
|
7252
|
-
|
|
7598
|
+
|
|
7599
|
+
if (ref) {
|
|
7600
|
+
newProps.ref = ref;
|
|
7601
|
+
}
|
|
7602
|
+
|
|
7603
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {
|
|
7253
7604
|
cache: cache,
|
|
7254
7605
|
serialized: serialized,
|
|
7255
7606
|
isStringTag: typeof WrappedComponent === 'string'
|
|
7256
7607
|
}), /*#__PURE__*/React.createElement(WrappedComponent, newProps));
|
|
7257
7608
|
});
|
|
7258
7609
|
|
|
7259
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
7260
|
-
Emotion.displayName = 'EmotionCssPropInternal';
|
|
7261
|
-
}
|
|
7262
|
-
|
|
7263
7610
|
var Emotion$1 = Emotion;
|
|
7264
7611
|
|
|
7265
|
-
var pkg = {
|
|
7266
|
-
name: "@emotion/react",
|
|
7267
|
-
version: "11.11.0",
|
|
7268
|
-
main: "dist/emotion-react.cjs.js",
|
|
7269
|
-
module: "dist/emotion-react.esm.js",
|
|
7270
|
-
browser: {
|
|
7271
|
-
"./dist/emotion-react.esm.js": "./dist/emotion-react.browser.esm.js"
|
|
7272
|
-
},
|
|
7273
|
-
exports: {
|
|
7274
|
-
".": {
|
|
7275
|
-
module: {
|
|
7276
|
-
worker: "./dist/emotion-react.worker.esm.js",
|
|
7277
|
-
browser: "./dist/emotion-react.browser.esm.js",
|
|
7278
|
-
"default": "./dist/emotion-react.esm.js"
|
|
7279
|
-
},
|
|
7280
|
-
"import": "./dist/emotion-react.cjs.mjs",
|
|
7281
|
-
"default": "./dist/emotion-react.cjs.js"
|
|
7282
|
-
},
|
|
7283
|
-
"./jsx-runtime": {
|
|
7284
|
-
module: {
|
|
7285
|
-
worker: "./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",
|
|
7286
|
-
browser: "./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",
|
|
7287
|
-
"default": "./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"
|
|
7288
|
-
},
|
|
7289
|
-
"import": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",
|
|
7290
|
-
"default": "./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"
|
|
7291
|
-
},
|
|
7292
|
-
"./_isolated-hnrs": {
|
|
7293
|
-
module: {
|
|
7294
|
-
worker: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",
|
|
7295
|
-
browser: "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",
|
|
7296
|
-
"default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"
|
|
7297
|
-
},
|
|
7298
|
-
"import": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",
|
|
7299
|
-
"default": "./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"
|
|
7300
|
-
},
|
|
7301
|
-
"./jsx-dev-runtime": {
|
|
7302
|
-
module: {
|
|
7303
|
-
worker: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",
|
|
7304
|
-
browser: "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",
|
|
7305
|
-
"default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"
|
|
7306
|
-
},
|
|
7307
|
-
"import": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",
|
|
7308
|
-
"default": "./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"
|
|
7309
|
-
},
|
|
7310
|
-
"./package.json": "./package.json",
|
|
7311
|
-
"./types/css-prop": "./types/css-prop.d.ts",
|
|
7312
|
-
"./macro": {
|
|
7313
|
-
types: {
|
|
7314
|
-
"import": "./macro.d.mts",
|
|
7315
|
-
"default": "./macro.d.ts"
|
|
7316
|
-
},
|
|
7317
|
-
"default": "./macro.js"
|
|
7318
|
-
}
|
|
7319
|
-
},
|
|
7320
|
-
types: "types/index.d.ts",
|
|
7321
|
-
files: [
|
|
7322
|
-
"src",
|
|
7323
|
-
"dist",
|
|
7324
|
-
"jsx-runtime",
|
|
7325
|
-
"jsx-dev-runtime",
|
|
7326
|
-
"_isolated-hnrs",
|
|
7327
|
-
"types/*.d.ts",
|
|
7328
|
-
"macro.*"
|
|
7329
|
-
],
|
|
7330
|
-
sideEffects: false,
|
|
7331
|
-
author: "Emotion Contributors",
|
|
7332
|
-
license: "MIT",
|
|
7333
|
-
scripts: {
|
|
7334
|
-
"test:typescript": "dtslint types"
|
|
7335
|
-
},
|
|
7336
|
-
dependencies: {
|
|
7337
|
-
"@babel/runtime": "^7.18.3",
|
|
7338
|
-
"@emotion/babel-plugin": "^11.11.0",
|
|
7339
|
-
"@emotion/cache": "^11.11.0",
|
|
7340
|
-
"@emotion/serialize": "^1.1.2",
|
|
7341
|
-
"@emotion/use-insertion-effect-with-fallbacks": "^1.0.1",
|
|
7342
|
-
"@emotion/utils": "^1.2.1",
|
|
7343
|
-
"@emotion/weak-memoize": "^0.3.1",
|
|
7344
|
-
"hoist-non-react-statics": "^3.3.1"
|
|
7345
|
-
},
|
|
7346
|
-
peerDependencies: {
|
|
7347
|
-
react: ">=16.8.0"
|
|
7348
|
-
},
|
|
7349
|
-
peerDependenciesMeta: {
|
|
7350
|
-
"@types/react": {
|
|
7351
|
-
optional: true
|
|
7352
|
-
}
|
|
7353
|
-
},
|
|
7354
|
-
devDependencies: {
|
|
7355
|
-
"@definitelytyped/dtslint": "0.0.112",
|
|
7356
|
-
"@emotion/css": "11.11.0",
|
|
7357
|
-
"@emotion/css-prettifier": "1.1.3",
|
|
7358
|
-
"@emotion/server": "11.11.0",
|
|
7359
|
-
"@emotion/styled": "11.11.0",
|
|
7360
|
-
"html-tag-names": "^1.1.2",
|
|
7361
|
-
react: "16.14.0",
|
|
7362
|
-
"svg-tag-names": "^1.1.1",
|
|
7363
|
-
typescript: "^4.5.5"
|
|
7364
|
-
},
|
|
7365
|
-
repository: "https://github.com/emotion-js/emotion/tree/main/packages/react",
|
|
7366
|
-
publishConfig: {
|
|
7367
|
-
access: "public"
|
|
7368
|
-
},
|
|
7369
|
-
"umd:main": "dist/emotion-react.umd.min.js",
|
|
7370
|
-
preconstruct: {
|
|
7371
|
-
entrypoints: [
|
|
7372
|
-
"./index.js",
|
|
7373
|
-
"./jsx-runtime.js",
|
|
7374
|
-
"./jsx-dev-runtime.js",
|
|
7375
|
-
"./_isolated-hnrs.js"
|
|
7376
|
-
],
|
|
7377
|
-
umdName: "emotionReact",
|
|
7378
|
-
exports: {
|
|
7379
|
-
envConditions: [
|
|
7380
|
-
"browser",
|
|
7381
|
-
"worker"
|
|
7382
|
-
],
|
|
7383
|
-
extra: {
|
|
7384
|
-
"./types/css-prop": "./types/css-prop.d.ts",
|
|
7385
|
-
"./macro": {
|
|
7386
|
-
types: {
|
|
7387
|
-
"import": "./macro.d.mts",
|
|
7388
|
-
"default": "./macro.d.ts"
|
|
7389
|
-
},
|
|
7390
|
-
"default": "./macro.js"
|
|
7391
|
-
}
|
|
7392
|
-
}
|
|
7393
|
-
}
|
|
7394
|
-
}
|
|
7395
|
-
};
|
|
7396
|
-
|
|
7397
7612
|
var jsx = function jsx(type, props) {
|
|
7613
|
+
// eslint-disable-next-line prefer-rest-params
|
|
7398
7614
|
var args = arguments;
|
|
7399
7615
|
|
|
7400
|
-
if (props == null || !
|
|
7401
|
-
// $FlowFixMe
|
|
7616
|
+
if (props == null || !hasOwn.call(props, 'css')) {
|
|
7402
7617
|
return React.createElement.apply(undefined, args);
|
|
7403
7618
|
}
|
|
7404
7619
|
|
|
@@ -7409,439 +7624,1178 @@ var jsx = function jsx(type, props) {
|
|
|
7409
7624
|
|
|
7410
7625
|
for (var i = 2; i < argsLength; i++) {
|
|
7411
7626
|
createElementArgArray[i] = args[i];
|
|
7412
|
-
}
|
|
7413
|
-
|
|
7627
|
+
}
|
|
7414
7628
|
|
|
7415
7629
|
return React.createElement.apply(null, createElementArgArray);
|
|
7416
7630
|
};
|
|
7417
7631
|
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
// initial client-side render from SSR, use place of hydrating tag
|
|
7421
|
-
|
|
7422
|
-
var Global = /* #__PURE__ */withEmotionCache(function (props, cache) {
|
|
7423
|
-
if (process.env.NODE_ENV !== 'production' && !warnedAboutCssPropForGlobal && ( // check for className as well since the user is
|
|
7424
|
-
// probably using the custom createElement which
|
|
7425
|
-
// means it will be turned into a className prop
|
|
7426
|
-
// $FlowFixMe I don't really want to add it to the type since it shouldn't be used
|
|
7427
|
-
props.className || props.css)) {
|
|
7428
|
-
console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?");
|
|
7429
|
-
warnedAboutCssPropForGlobal = true;
|
|
7430
|
-
}
|
|
7632
|
+
(function (_jsx) {
|
|
7633
|
+
var JSX;
|
|
7431
7634
|
|
|
7432
|
-
|
|
7433
|
-
|
|
7635
|
+
(function (_JSX) {})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
|
|
7636
|
+
})(jsx || (jsx = {}));
|
|
7434
7637
|
|
|
7435
|
-
|
|
7436
|
-
|
|
7638
|
+
function css$2() {
|
|
7639
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
7640
|
+
args[_key] = arguments[_key];
|
|
7641
|
+
}
|
|
7437
7642
|
|
|
7438
|
-
|
|
7439
|
-
|
|
7440
|
-
var next = serialized.next;
|
|
7643
|
+
return serializeStyles(args);
|
|
7644
|
+
}
|
|
7441
7645
|
|
|
7442
|
-
|
|
7443
|
-
|
|
7444
|
-
|
|
7445
|
-
|
|
7646
|
+
function keyframes() {
|
|
7647
|
+
var insertable = css$2.apply(void 0, arguments);
|
|
7648
|
+
var name = "animation-" + insertable.name;
|
|
7649
|
+
return {
|
|
7650
|
+
name: name,
|
|
7651
|
+
styles: "@keyframes " + name + "{" + insertable.styles + "}",
|
|
7652
|
+
anim: 1,
|
|
7653
|
+
toString: function toString() {
|
|
7654
|
+
return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
|
|
7446
7655
|
}
|
|
7656
|
+
};
|
|
7657
|
+
}
|
|
7447
7658
|
|
|
7448
|
-
|
|
7449
|
-
|
|
7450
|
-
|
|
7451
|
-
styles: serializedStyles
|
|
7452
|
-
}, cache.sheet, shouldCache);
|
|
7659
|
+
function _arrayWithHoles(r) {
|
|
7660
|
+
if (Array.isArray(r)) return r;
|
|
7661
|
+
}
|
|
7453
7662
|
|
|
7454
|
-
|
|
7455
|
-
|
|
7663
|
+
function _iterableToArrayLimit(r, l) {
|
|
7664
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
7665
|
+
if (null != t) {
|
|
7666
|
+
var e,
|
|
7667
|
+
n,
|
|
7668
|
+
i,
|
|
7669
|
+
u,
|
|
7670
|
+
a = [],
|
|
7671
|
+
f = !0,
|
|
7672
|
+
o = !1;
|
|
7673
|
+
try {
|
|
7674
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
7675
|
+
if (Object(t) !== t) return;
|
|
7676
|
+
f = !1;
|
|
7677
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
7678
|
+
} catch (r) {
|
|
7679
|
+
o = !0, n = r;
|
|
7680
|
+
} finally {
|
|
7681
|
+
try {
|
|
7682
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
7683
|
+
} finally {
|
|
7684
|
+
if (o) throw n;
|
|
7685
|
+
}
|
|
7456
7686
|
}
|
|
7687
|
+
return a;
|
|
7688
|
+
}
|
|
7689
|
+
}
|
|
7457
7690
|
|
|
7458
|
-
|
|
7459
|
-
|
|
7460
|
-
|
|
7461
|
-
} // yes, i know these hooks are used conditionally
|
|
7462
|
-
// but it is based on a constant that will never change at runtime
|
|
7463
|
-
// it's effectively like having two implementations and switching them out
|
|
7464
|
-
// so it's not actually breaking anything
|
|
7465
|
-
|
|
7466
|
-
|
|
7467
|
-
var sheetRef = React.useRef();
|
|
7468
|
-
useInsertionEffectWithLayoutFallback(function () {
|
|
7469
|
-
var key = cache.key + "-global"; // use case of https://github.com/emotion-js/emotion/issues/2675
|
|
7470
|
-
|
|
7471
|
-
var sheet = new cache.sheet.constructor({
|
|
7472
|
-
key: key,
|
|
7473
|
-
nonce: cache.sheet.nonce,
|
|
7474
|
-
container: cache.sheet.container,
|
|
7475
|
-
speedy: cache.sheet.isSpeedy
|
|
7476
|
-
});
|
|
7477
|
-
var rehydrating = false; // $FlowFixMe
|
|
7478
|
-
|
|
7479
|
-
var node = document.querySelector("style[data-emotion=\"" + key + " " + serialized.name + "\"]");
|
|
7480
|
-
|
|
7481
|
-
if (cache.sheet.tags.length) {
|
|
7482
|
-
sheet.before = cache.sheet.tags[0];
|
|
7483
|
-
}
|
|
7691
|
+
function _nonIterableRest() {
|
|
7692
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7693
|
+
}
|
|
7484
7694
|
|
|
7485
|
-
|
|
7486
|
-
|
|
7695
|
+
function _slicedToArray(r, e) {
|
|
7696
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
7697
|
+
}
|
|
7487
7698
|
|
|
7488
|
-
|
|
7489
|
-
|
|
7490
|
-
|
|
7699
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
7700
|
+
if (null == r) return {};
|
|
7701
|
+
var t = {};
|
|
7702
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
7703
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
7704
|
+
t[n] = r[n];
|
|
7705
|
+
}
|
|
7706
|
+
return t;
|
|
7707
|
+
}
|
|
7491
7708
|
|
|
7492
|
-
|
|
7493
|
-
|
|
7494
|
-
|
|
7495
|
-
|
|
7496
|
-
|
|
7497
|
-
|
|
7498
|
-
var
|
|
7499
|
-
|
|
7500
|
-
|
|
7501
|
-
|
|
7502
|
-
|
|
7503
|
-
sheetRefCurrent[1] = false;
|
|
7504
|
-
return;
|
|
7505
|
-
}
|
|
7709
|
+
function _objectWithoutProperties(e, t) {
|
|
7710
|
+
if (null == e) return {};
|
|
7711
|
+
var o,
|
|
7712
|
+
r,
|
|
7713
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
7714
|
+
if (Object.getOwnPropertySymbols) {
|
|
7715
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
7716
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
7717
|
+
}
|
|
7718
|
+
return i;
|
|
7719
|
+
}
|
|
7506
7720
|
|
|
7507
|
-
|
|
7508
|
-
|
|
7509
|
-
|
|
7721
|
+
function _taggedTemplateLiteral(e, t) {
|
|
7722
|
+
return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
|
|
7723
|
+
raw: {
|
|
7724
|
+
value: Object.freeze(t)
|
|
7510
7725
|
}
|
|
7726
|
+
}));
|
|
7727
|
+
}
|
|
7511
7728
|
|
|
7512
|
-
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
|
|
7516
|
-
sheet.flush();
|
|
7517
|
-
}
|
|
7729
|
+
/**
|
|
7730
|
+
* Custom positioning reference element.
|
|
7731
|
+
* @see https://floating-ui.com/docs/virtual-elements
|
|
7732
|
+
*/
|
|
7518
7733
|
|
|
7519
|
-
|
|
7520
|
-
|
|
7521
|
-
|
|
7734
|
+
const sides = ['top', 'right', 'bottom', 'left'];
|
|
7735
|
+
const alignments = ['start', 'end'];
|
|
7736
|
+
const placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + "-" + alignments[0], side + "-" + alignments[1]), []);
|
|
7737
|
+
const min = Math.min;
|
|
7738
|
+
const max = Math.max;
|
|
7739
|
+
const round = Math.round;
|
|
7740
|
+
const floor = Math.floor;
|
|
7741
|
+
const createCoords = v => ({
|
|
7742
|
+
x: v,
|
|
7743
|
+
y: v
|
|
7522
7744
|
});
|
|
7523
|
-
|
|
7524
|
-
|
|
7525
|
-
|
|
7745
|
+
const oppositeSideMap = {
|
|
7746
|
+
left: 'right',
|
|
7747
|
+
right: 'left',
|
|
7748
|
+
bottom: 'top',
|
|
7749
|
+
top: 'bottom'
|
|
7750
|
+
};
|
|
7751
|
+
const oppositeAlignmentMap = {
|
|
7752
|
+
start: 'end',
|
|
7753
|
+
end: 'start'
|
|
7754
|
+
};
|
|
7755
|
+
function clamp(start, value, end) {
|
|
7756
|
+
return max(start, min(value, end));
|
|
7526
7757
|
}
|
|
7527
|
-
|
|
7528
|
-
function
|
|
7529
|
-
|
|
7530
|
-
|
|
7758
|
+
function evaluate(value, param) {
|
|
7759
|
+
return typeof value === 'function' ? value(param) : value;
|
|
7760
|
+
}
|
|
7761
|
+
function getSide(placement) {
|
|
7762
|
+
return placement.split('-')[0];
|
|
7763
|
+
}
|
|
7764
|
+
function getAlignment(placement) {
|
|
7765
|
+
return placement.split('-')[1];
|
|
7766
|
+
}
|
|
7767
|
+
function getOppositeAxis(axis) {
|
|
7768
|
+
return axis === 'x' ? 'y' : 'x';
|
|
7769
|
+
}
|
|
7770
|
+
function getAxisLength(axis) {
|
|
7771
|
+
return axis === 'y' ? 'height' : 'width';
|
|
7772
|
+
}
|
|
7773
|
+
function getSideAxis(placement) {
|
|
7774
|
+
return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
|
|
7775
|
+
}
|
|
7776
|
+
function getAlignmentAxis(placement) {
|
|
7777
|
+
return getOppositeAxis(getSideAxis(placement));
|
|
7778
|
+
}
|
|
7779
|
+
function getAlignmentSides(placement, rects, rtl) {
|
|
7780
|
+
if (rtl === void 0) {
|
|
7781
|
+
rtl = false;
|
|
7531
7782
|
}
|
|
7783
|
+
const alignment = getAlignment(placement);
|
|
7784
|
+
const alignmentAxis = getAlignmentAxis(placement);
|
|
7785
|
+
const length = getAxisLength(alignmentAxis);
|
|
7786
|
+
let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';
|
|
7787
|
+
if (rects.reference[length] > rects.floating[length]) {
|
|
7788
|
+
mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
|
|
7789
|
+
}
|
|
7790
|
+
return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
|
|
7791
|
+
}
|
|
7792
|
+
function getExpandedPlacements(placement) {
|
|
7793
|
+
const oppositePlacement = getOppositePlacement(placement);
|
|
7794
|
+
return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
|
|
7795
|
+
}
|
|
7796
|
+
function getOppositeAlignmentPlacement(placement) {
|
|
7797
|
+
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
7798
|
+
}
|
|
7799
|
+
function getSideList(side, isStart, rtl) {
|
|
7800
|
+
const lr = ['left', 'right'];
|
|
7801
|
+
const rl = ['right', 'left'];
|
|
7802
|
+
const tb = ['top', 'bottom'];
|
|
7803
|
+
const bt = ['bottom', 'top'];
|
|
7804
|
+
switch (side) {
|
|
7805
|
+
case 'top':
|
|
7806
|
+
case 'bottom':
|
|
7807
|
+
if (rtl) return isStart ? rl : lr;
|
|
7808
|
+
return isStart ? lr : rl;
|
|
7809
|
+
case 'left':
|
|
7810
|
+
case 'right':
|
|
7811
|
+
return isStart ? tb : bt;
|
|
7812
|
+
default:
|
|
7813
|
+
return [];
|
|
7814
|
+
}
|
|
7815
|
+
}
|
|
7816
|
+
function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
|
|
7817
|
+
const alignment = getAlignment(placement);
|
|
7818
|
+
let list = getSideList(getSide(placement), direction === 'start', rtl);
|
|
7819
|
+
if (alignment) {
|
|
7820
|
+
list = list.map(side => side + "-" + alignment);
|
|
7821
|
+
if (flipAlignment) {
|
|
7822
|
+
list = list.concat(list.map(getOppositeAlignmentPlacement));
|
|
7823
|
+
}
|
|
7824
|
+
}
|
|
7825
|
+
return list;
|
|
7826
|
+
}
|
|
7827
|
+
function getOppositePlacement(placement) {
|
|
7828
|
+
return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);
|
|
7829
|
+
}
|
|
7830
|
+
function expandPaddingObject(padding) {
|
|
7831
|
+
return {
|
|
7832
|
+
top: 0,
|
|
7833
|
+
right: 0,
|
|
7834
|
+
bottom: 0,
|
|
7835
|
+
left: 0,
|
|
7836
|
+
...padding
|
|
7837
|
+
};
|
|
7838
|
+
}
|
|
7839
|
+
function getPaddingObject(padding) {
|
|
7840
|
+
return typeof padding !== 'number' ? expandPaddingObject(padding) : {
|
|
7841
|
+
top: padding,
|
|
7842
|
+
right: padding,
|
|
7843
|
+
bottom: padding,
|
|
7844
|
+
left: padding
|
|
7845
|
+
};
|
|
7846
|
+
}
|
|
7847
|
+
function rectToClientRect(rect) {
|
|
7848
|
+
const {
|
|
7849
|
+
x,
|
|
7850
|
+
y,
|
|
7851
|
+
width,
|
|
7852
|
+
height
|
|
7853
|
+
} = rect;
|
|
7854
|
+
return {
|
|
7855
|
+
width,
|
|
7856
|
+
height,
|
|
7857
|
+
top: y,
|
|
7858
|
+
left: x,
|
|
7859
|
+
right: x + width,
|
|
7860
|
+
bottom: y + height,
|
|
7861
|
+
x,
|
|
7862
|
+
y
|
|
7863
|
+
};
|
|
7864
|
+
}
|
|
7532
7865
|
|
|
7533
|
-
|
|
7866
|
+
/**
|
|
7867
|
+
* Resolves with an object of overflow side offsets that determine how much the
|
|
7868
|
+
* element is overflowing a given clipping boundary on each side.
|
|
7869
|
+
* - positive = overflowing the boundary by that number of pixels
|
|
7870
|
+
* - negative = how many pixels left before it will overflow
|
|
7871
|
+
* - 0 = lies flush with the boundary
|
|
7872
|
+
* @see https://floating-ui.com/docs/detectOverflow
|
|
7873
|
+
*/
|
|
7874
|
+
async function detectOverflow(state, options) {
|
|
7875
|
+
var _await$platform$isEle;
|
|
7876
|
+
if (options === void 0) {
|
|
7877
|
+
options = {};
|
|
7878
|
+
}
|
|
7879
|
+
const {
|
|
7880
|
+
x,
|
|
7881
|
+
y,
|
|
7882
|
+
platform,
|
|
7883
|
+
rects,
|
|
7884
|
+
elements,
|
|
7885
|
+
strategy
|
|
7886
|
+
} = state;
|
|
7887
|
+
const {
|
|
7888
|
+
boundary = 'clippingAncestors',
|
|
7889
|
+
rootBoundary = 'viewport',
|
|
7890
|
+
elementContext = 'floating',
|
|
7891
|
+
altBoundary = false,
|
|
7892
|
+
padding = 0
|
|
7893
|
+
} = evaluate(options, state);
|
|
7894
|
+
const paddingObject = getPaddingObject(padding);
|
|
7895
|
+
const altContext = elementContext === 'floating' ? 'reference' : 'floating';
|
|
7896
|
+
const element = elements[altBoundary ? altContext : elementContext];
|
|
7897
|
+
const clippingClientRect = rectToClientRect(await platform.getClippingRect({
|
|
7898
|
+
element: ((_await$platform$isEle = await (platform.isElement == null ? void 0 : platform.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || (await (platform.getDocumentElement == null ? void 0 : platform.getDocumentElement(elements.floating))),
|
|
7899
|
+
boundary,
|
|
7900
|
+
rootBoundary,
|
|
7901
|
+
strategy
|
|
7902
|
+
}));
|
|
7903
|
+
const rect = elementContext === 'floating' ? {
|
|
7904
|
+
x,
|
|
7905
|
+
y,
|
|
7906
|
+
width: rects.floating.width,
|
|
7907
|
+
height: rects.floating.height
|
|
7908
|
+
} : rects.reference;
|
|
7909
|
+
const offsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(elements.floating));
|
|
7910
|
+
const offsetScale = (await (platform.isElement == null ? void 0 : platform.isElement(offsetParent))) ? (await (platform.getScale == null ? void 0 : platform.getScale(offsetParent))) || {
|
|
7911
|
+
x: 1,
|
|
7912
|
+
y: 1
|
|
7913
|
+
} : {
|
|
7914
|
+
x: 1,
|
|
7915
|
+
y: 1
|
|
7916
|
+
};
|
|
7917
|
+
const elementClientRect = rectToClientRect(platform.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
7918
|
+
elements,
|
|
7919
|
+
rect,
|
|
7920
|
+
offsetParent,
|
|
7921
|
+
strategy
|
|
7922
|
+
}) : rect);
|
|
7923
|
+
return {
|
|
7924
|
+
top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
|
|
7925
|
+
bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
|
|
7926
|
+
left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
|
|
7927
|
+
right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
|
|
7928
|
+
};
|
|
7534
7929
|
}
|
|
7535
7930
|
|
|
7536
|
-
|
|
7537
|
-
|
|
7538
|
-
|
|
7931
|
+
/**
|
|
7932
|
+
* Provides data to position an inner element of the floating element so that it
|
|
7933
|
+
* appears centered to the reference element.
|
|
7934
|
+
* @see https://floating-ui.com/docs/arrow
|
|
7935
|
+
*/
|
|
7936
|
+
const arrow = options => ({
|
|
7937
|
+
name: 'arrow',
|
|
7938
|
+
options,
|
|
7939
|
+
async fn(state) {
|
|
7940
|
+
const {
|
|
7941
|
+
x,
|
|
7942
|
+
y,
|
|
7943
|
+
placement,
|
|
7944
|
+
rects,
|
|
7945
|
+
platform,
|
|
7946
|
+
elements,
|
|
7947
|
+
middlewareData
|
|
7948
|
+
} = state;
|
|
7949
|
+
// Since `element` is required, we don't Partial<> the type.
|
|
7950
|
+
const {
|
|
7951
|
+
element,
|
|
7952
|
+
padding = 0
|
|
7953
|
+
} = evaluate(options, state) || {};
|
|
7954
|
+
if (element == null) {
|
|
7955
|
+
return {};
|
|
7956
|
+
}
|
|
7957
|
+
const paddingObject = getPaddingObject(padding);
|
|
7958
|
+
const coords = {
|
|
7959
|
+
x,
|
|
7960
|
+
y
|
|
7961
|
+
};
|
|
7962
|
+
const axis = getAlignmentAxis(placement);
|
|
7963
|
+
const length = getAxisLength(axis);
|
|
7964
|
+
const arrowDimensions = await platform.getDimensions(element);
|
|
7965
|
+
const isYAxis = axis === 'y';
|
|
7966
|
+
const minProp = isYAxis ? 'top' : 'left';
|
|
7967
|
+
const maxProp = isYAxis ? 'bottom' : 'right';
|
|
7968
|
+
const clientProp = isYAxis ? 'clientHeight' : 'clientWidth';
|
|
7969
|
+
const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
|
|
7970
|
+
const startDiff = coords[axis] - rects.reference[axis];
|
|
7971
|
+
const arrowOffsetParent = await (platform.getOffsetParent == null ? void 0 : platform.getOffsetParent(element));
|
|
7972
|
+
let clientSize = arrowOffsetParent ? arrowOffsetParent[clientProp] : 0;
|
|
7973
|
+
|
|
7974
|
+
// DOM platform can return `window` as the `offsetParent`.
|
|
7975
|
+
if (!clientSize || !(await (platform.isElement == null ? void 0 : platform.isElement(arrowOffsetParent)))) {
|
|
7976
|
+
clientSize = elements.floating[clientProp] || rects.floating[length];
|
|
7977
|
+
}
|
|
7978
|
+
const centerToReference = endDiff / 2 - startDiff / 2;
|
|
7979
|
+
|
|
7980
|
+
// If the padding is large enough that it causes the arrow to no longer be
|
|
7981
|
+
// centered, modify the padding so that it is centered.
|
|
7982
|
+
const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
|
|
7983
|
+
const minPadding = min(paddingObject[minProp], largestPossiblePadding);
|
|
7984
|
+
const maxPadding = min(paddingObject[maxProp], largestPossiblePadding);
|
|
7985
|
+
|
|
7986
|
+
// Make sure the arrow doesn't overflow the floating element if the center
|
|
7987
|
+
// point is outside the floating element's bounds.
|
|
7988
|
+
const min$1 = minPadding;
|
|
7989
|
+
const max = clientSize - arrowDimensions[length] - maxPadding;
|
|
7990
|
+
const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
|
|
7991
|
+
const offset = clamp(min$1, center, max);
|
|
7992
|
+
|
|
7993
|
+
// If the reference is small enough that the arrow's padding causes it to
|
|
7994
|
+
// to point to nothing for an aligned placement, adjust the offset of the
|
|
7995
|
+
// floating element itself. To ensure `shift()` continues to take action,
|
|
7996
|
+
// a single reset is performed when this is true.
|
|
7997
|
+
const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset && rects.reference[length] / 2 - (center < min$1 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
|
|
7998
|
+
const alignmentOffset = shouldAddOffset ? center < min$1 ? center - min$1 : center - max : 0;
|
|
7999
|
+
return {
|
|
8000
|
+
[axis]: coords[axis] + alignmentOffset,
|
|
8001
|
+
data: {
|
|
8002
|
+
[axis]: offset,
|
|
8003
|
+
centerOffset: center - offset - alignmentOffset,
|
|
8004
|
+
...(shouldAddOffset && {
|
|
8005
|
+
alignmentOffset
|
|
8006
|
+
})
|
|
8007
|
+
},
|
|
8008
|
+
reset: shouldAddOffset
|
|
8009
|
+
};
|
|
8010
|
+
}
|
|
8011
|
+
});
|
|
7539
8012
|
|
|
8013
|
+
function getPlacementList(alignment, autoAlignment, allowedPlacements) {
|
|
8014
|
+
const allowedPlacementsSortedByAlignment = alignment ? [...allowedPlacements.filter(placement => getAlignment(placement) === alignment), ...allowedPlacements.filter(placement => getAlignment(placement) !== alignment)] : allowedPlacements.filter(placement => getSide(placement) === placement);
|
|
8015
|
+
return allowedPlacementsSortedByAlignment.filter(placement => {
|
|
8016
|
+
if (alignment) {
|
|
8017
|
+
return getAlignment(placement) === alignment || (autoAlignment ? getOppositeAlignmentPlacement(placement) !== placement : false);
|
|
8018
|
+
}
|
|
8019
|
+
return true;
|
|
8020
|
+
});
|
|
8021
|
+
}
|
|
8022
|
+
/**
|
|
8023
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
|
8024
|
+
* that has the most space available automatically, without needing to specify a
|
|
8025
|
+
* preferred placement. Alternative to `flip`.
|
|
8026
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
|
8027
|
+
*/
|
|
8028
|
+
const autoPlacement = function (options) {
|
|
8029
|
+
if (options === void 0) {
|
|
8030
|
+
options = {};
|
|
8031
|
+
}
|
|
7540
8032
|
return {
|
|
7541
|
-
name:
|
|
7542
|
-
|
|
7543
|
-
|
|
7544
|
-
|
|
7545
|
-
|
|
8033
|
+
name: 'autoPlacement',
|
|
8034
|
+
options,
|
|
8035
|
+
async fn(state) {
|
|
8036
|
+
var _middlewareData$autoP, _middlewareData$autoP2, _placementsThatFitOnE;
|
|
8037
|
+
const {
|
|
8038
|
+
rects,
|
|
8039
|
+
middlewareData,
|
|
8040
|
+
placement,
|
|
8041
|
+
platform,
|
|
8042
|
+
elements
|
|
8043
|
+
} = state;
|
|
8044
|
+
const {
|
|
8045
|
+
crossAxis = false,
|
|
8046
|
+
alignment,
|
|
8047
|
+
allowedPlacements = placements,
|
|
8048
|
+
autoAlignment = true,
|
|
8049
|
+
...detectOverflowOptions
|
|
8050
|
+
} = evaluate(options, state);
|
|
8051
|
+
const placements$1 = alignment !== undefined || allowedPlacements === placements ? getPlacementList(alignment || null, autoAlignment, allowedPlacements) : allowedPlacements;
|
|
8052
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
8053
|
+
const currentIndex = ((_middlewareData$autoP = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP.index) || 0;
|
|
8054
|
+
const currentPlacement = placements$1[currentIndex];
|
|
8055
|
+
if (currentPlacement == null) {
|
|
8056
|
+
return {};
|
|
8057
|
+
}
|
|
8058
|
+
const alignmentSides = getAlignmentSides(currentPlacement, rects, await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating)));
|
|
8059
|
+
|
|
8060
|
+
// Make `computeCoords` start from the right place.
|
|
8061
|
+
if (placement !== currentPlacement) {
|
|
8062
|
+
return {
|
|
8063
|
+
reset: {
|
|
8064
|
+
placement: placements$1[0]
|
|
8065
|
+
}
|
|
8066
|
+
};
|
|
8067
|
+
}
|
|
8068
|
+
const currentOverflows = [overflow[getSide(currentPlacement)], overflow[alignmentSides[0]], overflow[alignmentSides[1]]];
|
|
8069
|
+
const allOverflows = [...(((_middlewareData$autoP2 = middlewareData.autoPlacement) == null ? void 0 : _middlewareData$autoP2.overflows) || []), {
|
|
8070
|
+
placement: currentPlacement,
|
|
8071
|
+
overflows: currentOverflows
|
|
8072
|
+
}];
|
|
8073
|
+
const nextPlacement = placements$1[currentIndex + 1];
|
|
8074
|
+
|
|
8075
|
+
// There are more placements to check.
|
|
8076
|
+
if (nextPlacement) {
|
|
8077
|
+
return {
|
|
8078
|
+
data: {
|
|
8079
|
+
index: currentIndex + 1,
|
|
8080
|
+
overflows: allOverflows
|
|
8081
|
+
},
|
|
8082
|
+
reset: {
|
|
8083
|
+
placement: nextPlacement
|
|
8084
|
+
}
|
|
8085
|
+
};
|
|
8086
|
+
}
|
|
8087
|
+
const placementsSortedByMostSpace = allOverflows.map(d => {
|
|
8088
|
+
const alignment = getAlignment(d.placement);
|
|
8089
|
+
return [d.placement, alignment && crossAxis ?
|
|
8090
|
+
// Check along the mainAxis and main crossAxis side.
|
|
8091
|
+
d.overflows.slice(0, 2).reduce((acc, v) => acc + v, 0) :
|
|
8092
|
+
// Check only the mainAxis.
|
|
8093
|
+
d.overflows[0], d.overflows];
|
|
8094
|
+
}).sort((a, b) => a[1] - b[1]);
|
|
8095
|
+
const placementsThatFitOnEachSide = placementsSortedByMostSpace.filter(d => d[2].slice(0,
|
|
8096
|
+
// Aligned placements should not check their opposite crossAxis
|
|
8097
|
+
// side.
|
|
8098
|
+
getAlignment(d[0]) ? 2 : 3).every(v => v <= 0));
|
|
8099
|
+
const resetPlacement = ((_placementsThatFitOnE = placementsThatFitOnEachSide[0]) == null ? void 0 : _placementsThatFitOnE[0]) || placementsSortedByMostSpace[0][0];
|
|
8100
|
+
if (resetPlacement !== placement) {
|
|
8101
|
+
return {
|
|
8102
|
+
data: {
|
|
8103
|
+
index: currentIndex + 1,
|
|
8104
|
+
overflows: allOverflows
|
|
8105
|
+
},
|
|
8106
|
+
reset: {
|
|
8107
|
+
placement: resetPlacement
|
|
8108
|
+
}
|
|
8109
|
+
};
|
|
8110
|
+
}
|
|
8111
|
+
return {};
|
|
7546
8112
|
}
|
|
7547
8113
|
};
|
|
7548
8114
|
};
|
|
7549
8115
|
|
|
7550
|
-
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
|
|
7564
|
-
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
|
|
7568
|
-
|
|
7569
|
-
|
|
7570
|
-
|
|
8116
|
+
/**
|
|
8117
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
8118
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
8119
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
|
8120
|
+
* @see https://floating-ui.com/docs/flip
|
|
8121
|
+
*/
|
|
8122
|
+
const flip = function (options) {
|
|
8123
|
+
if (options === void 0) {
|
|
8124
|
+
options = {};
|
|
8125
|
+
}
|
|
8126
|
+
return {
|
|
8127
|
+
name: 'flip',
|
|
8128
|
+
options,
|
|
8129
|
+
async fn(state) {
|
|
8130
|
+
var _middlewareData$arrow, _middlewareData$flip;
|
|
8131
|
+
const {
|
|
8132
|
+
placement,
|
|
8133
|
+
middlewareData,
|
|
8134
|
+
rects,
|
|
8135
|
+
initialPlacement,
|
|
8136
|
+
platform,
|
|
8137
|
+
elements
|
|
8138
|
+
} = state;
|
|
8139
|
+
const {
|
|
8140
|
+
mainAxis: checkMainAxis = true,
|
|
8141
|
+
crossAxis: checkCrossAxis = true,
|
|
8142
|
+
fallbackPlacements: specifiedFallbackPlacements,
|
|
8143
|
+
fallbackStrategy = 'bestFit',
|
|
8144
|
+
fallbackAxisSideDirection = 'none',
|
|
8145
|
+
flipAlignment = true,
|
|
8146
|
+
...detectOverflowOptions
|
|
8147
|
+
} = evaluate(options, state);
|
|
8148
|
+
|
|
8149
|
+
// If a reset by the arrow was caused due to an alignment offset being
|
|
8150
|
+
// added, we should skip any logic now since `flip()` has already done its
|
|
8151
|
+
// work.
|
|
8152
|
+
// https://github.com/floating-ui/floating-ui/issues/2549#issuecomment-1719601643
|
|
8153
|
+
if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
8154
|
+
return {};
|
|
8155
|
+
}
|
|
8156
|
+
const side = getSide(placement);
|
|
8157
|
+
const initialSideAxis = getSideAxis(initialPlacement);
|
|
8158
|
+
const isBasePlacement = getSide(initialPlacement) === initialPlacement;
|
|
8159
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
8160
|
+
const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
|
|
8161
|
+
const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== 'none';
|
|
8162
|
+
if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
|
|
8163
|
+
fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
|
|
8164
|
+
}
|
|
8165
|
+
const placements = [initialPlacement, ...fallbackPlacements];
|
|
8166
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
8167
|
+
const overflows = [];
|
|
8168
|
+
let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
|
|
8169
|
+
if (checkMainAxis) {
|
|
8170
|
+
overflows.push(overflow[side]);
|
|
8171
|
+
}
|
|
8172
|
+
if (checkCrossAxis) {
|
|
8173
|
+
const sides = getAlignmentSides(placement, rects, rtl);
|
|
8174
|
+
overflows.push(overflow[sides[0]], overflow[sides[1]]);
|
|
8175
|
+
}
|
|
8176
|
+
overflowsData = [...overflowsData, {
|
|
8177
|
+
placement,
|
|
8178
|
+
overflows
|
|
8179
|
+
}];
|
|
8180
|
+
|
|
8181
|
+
// One or more sides is overflowing.
|
|
8182
|
+
if (!overflows.every(side => side <= 0)) {
|
|
8183
|
+
var _middlewareData$flip2, _overflowsData$filter;
|
|
8184
|
+
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
8185
|
+
const nextPlacement = placements[nextIndex];
|
|
8186
|
+
if (nextPlacement) {
|
|
8187
|
+
// Try next placement and re-run the lifecycle.
|
|
8188
|
+
return {
|
|
8189
|
+
data: {
|
|
8190
|
+
index: nextIndex,
|
|
8191
|
+
overflows: overflowsData
|
|
8192
|
+
},
|
|
8193
|
+
reset: {
|
|
8194
|
+
placement: nextPlacement
|
|
7571
8195
|
}
|
|
8196
|
+
};
|
|
8197
|
+
}
|
|
7572
8198
|
|
|
7573
|
-
|
|
8199
|
+
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
8200
|
+
// then find the placement that fits the best on the main crossAxis side.
|
|
8201
|
+
let resetPlacement = (_overflowsData$filter = overflowsData.filter(d => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
|
|
7574
8202
|
|
|
7575
|
-
|
|
7576
|
-
|
|
7577
|
-
|
|
7578
|
-
|
|
8203
|
+
// Otherwise fallback.
|
|
8204
|
+
if (!resetPlacement) {
|
|
8205
|
+
switch (fallbackStrategy) {
|
|
8206
|
+
case 'bestFit':
|
|
8207
|
+
{
|
|
8208
|
+
var _overflowsData$filter2;
|
|
8209
|
+
const placement = (_overflowsData$filter2 = overflowsData.filter(d => {
|
|
8210
|
+
if (hasFallbackAxisSideDirection) {
|
|
8211
|
+
const currentSideAxis = getSideAxis(d.placement);
|
|
8212
|
+
return currentSideAxis === initialSideAxis ||
|
|
8213
|
+
// Create a bias to the `y` side axis due to horizontal
|
|
8214
|
+
// reading directions favoring greater width.
|
|
8215
|
+
currentSideAxis === 'y';
|
|
8216
|
+
}
|
|
8217
|
+
return true;
|
|
8218
|
+
}).map(d => [d.placement, d.overflows.filter(overflow => overflow > 0).reduce((acc, overflow) => acc + overflow, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
|
|
8219
|
+
if (placement) {
|
|
8220
|
+
resetPlacement = placement;
|
|
8221
|
+
}
|
|
8222
|
+
break;
|
|
7579
8223
|
}
|
|
7580
|
-
|
|
8224
|
+
case 'initialPlacement':
|
|
8225
|
+
resetPlacement = initialPlacement;
|
|
8226
|
+
break;
|
|
7581
8227
|
}
|
|
7582
|
-
|
|
7583
|
-
break;
|
|
7584
8228
|
}
|
|
7585
|
-
|
|
7586
|
-
|
|
7587
|
-
|
|
7588
|
-
|
|
8229
|
+
if (placement !== resetPlacement) {
|
|
8230
|
+
return {
|
|
8231
|
+
reset: {
|
|
8232
|
+
placement: resetPlacement
|
|
8233
|
+
}
|
|
8234
|
+
};
|
|
7589
8235
|
}
|
|
8236
|
+
}
|
|
8237
|
+
return {};
|
|
7590
8238
|
}
|
|
7591
|
-
|
|
7592
|
-
if (toAdd) {
|
|
7593
|
-
cls && (cls += ' ');
|
|
7594
|
-
cls += toAdd;
|
|
7595
|
-
}
|
|
7596
|
-
}
|
|
7597
|
-
|
|
7598
|
-
return cls;
|
|
8239
|
+
};
|
|
7599
8240
|
};
|
|
7600
8241
|
|
|
7601
|
-
function
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
|
|
7606
|
-
|
|
7607
|
-
}
|
|
7608
|
-
|
|
7609
|
-
return rawClassName + css(registeredStyles);
|
|
8242
|
+
function getSideOffsets(overflow, rect) {
|
|
8243
|
+
return {
|
|
8244
|
+
top: overflow.top - rect.height,
|
|
8245
|
+
right: overflow.right - rect.width,
|
|
8246
|
+
bottom: overflow.bottom - rect.height,
|
|
8247
|
+
left: overflow.left - rect.width
|
|
8248
|
+
};
|
|
7610
8249
|
}
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
|
|
7622
|
-
|
|
8250
|
+
function isAnySideFullyClipped(overflow) {
|
|
8251
|
+
return sides.some(side => overflow[side] >= 0);
|
|
8252
|
+
}
|
|
8253
|
+
/**
|
|
8254
|
+
* Provides data to hide the floating element in applicable situations, such as
|
|
8255
|
+
* when it is not in the same clipping context as the reference element.
|
|
8256
|
+
* @see https://floating-ui.com/docs/hide
|
|
8257
|
+
*/
|
|
8258
|
+
const hide = function (options) {
|
|
8259
|
+
if (options === void 0) {
|
|
8260
|
+
options = {};
|
|
8261
|
+
}
|
|
8262
|
+
return {
|
|
8263
|
+
name: 'hide',
|
|
8264
|
+
options,
|
|
8265
|
+
async fn(state) {
|
|
8266
|
+
const {
|
|
8267
|
+
rects
|
|
8268
|
+
} = state;
|
|
8269
|
+
const {
|
|
8270
|
+
strategy = 'referenceHidden',
|
|
8271
|
+
...detectOverflowOptions
|
|
8272
|
+
} = evaluate(options, state);
|
|
8273
|
+
switch (strategy) {
|
|
8274
|
+
case 'referenceHidden':
|
|
8275
|
+
{
|
|
8276
|
+
const overflow = await detectOverflow(state, {
|
|
8277
|
+
...detectOverflowOptions,
|
|
8278
|
+
elementContext: 'reference'
|
|
8279
|
+
});
|
|
8280
|
+
const offsets = getSideOffsets(overflow, rects.reference);
|
|
8281
|
+
return {
|
|
8282
|
+
data: {
|
|
8283
|
+
referenceHiddenOffsets: offsets,
|
|
8284
|
+
referenceHidden: isAnySideFullyClipped(offsets)
|
|
8285
|
+
}
|
|
8286
|
+
};
|
|
8287
|
+
}
|
|
8288
|
+
case 'escaped':
|
|
8289
|
+
{
|
|
8290
|
+
const overflow = await detectOverflow(state, {
|
|
8291
|
+
...detectOverflowOptions,
|
|
8292
|
+
altBoundary: true
|
|
8293
|
+
});
|
|
8294
|
+
const offsets = getSideOffsets(overflow, rects.floating);
|
|
8295
|
+
return {
|
|
8296
|
+
data: {
|
|
8297
|
+
escapedOffsets: offsets,
|
|
8298
|
+
escaped: isAnySideFullyClipped(offsets)
|
|
8299
|
+
}
|
|
8300
|
+
};
|
|
8301
|
+
}
|
|
8302
|
+
default:
|
|
8303
|
+
{
|
|
8304
|
+
return {};
|
|
8305
|
+
}
|
|
7623
8306
|
}
|
|
7624
8307
|
}
|
|
7625
|
-
|
|
7626
|
-
if (!isBrowser$1) {
|
|
7627
|
-
return rules;
|
|
7628
|
-
}
|
|
7629
|
-
});
|
|
7630
|
-
|
|
7631
|
-
if (!isBrowser$1 && rules.length !== 0) {
|
|
7632
|
-
var _ref2;
|
|
7633
|
-
|
|
7634
|
-
return /*#__PURE__*/React.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedArr.map(function (serialized) {
|
|
7635
|
-
return serialized.name;
|
|
7636
|
-
}).join(' '), _ref2.dangerouslySetInnerHTML = {
|
|
7637
|
-
__html: rules
|
|
7638
|
-
}, _ref2.nonce = cache.sheet.nonce, _ref2));
|
|
7639
|
-
}
|
|
7640
|
-
|
|
7641
|
-
return null;
|
|
8308
|
+
};
|
|
7642
8309
|
};
|
|
7643
8310
|
|
|
7644
|
-
|
|
7645
|
-
|
|
7646
|
-
|
|
7647
|
-
|
|
7648
|
-
|
|
7649
|
-
|
|
7650
|
-
|
|
8311
|
+
function getBoundingRect(rects) {
|
|
8312
|
+
const minX = min(...rects.map(rect => rect.left));
|
|
8313
|
+
const minY = min(...rects.map(rect => rect.top));
|
|
8314
|
+
const maxX = max(...rects.map(rect => rect.right));
|
|
8315
|
+
const maxY = max(...rects.map(rect => rect.bottom));
|
|
8316
|
+
return {
|
|
8317
|
+
x: minX,
|
|
8318
|
+
y: minY,
|
|
8319
|
+
width: maxX - minX,
|
|
8320
|
+
height: maxY - minY
|
|
8321
|
+
};
|
|
8322
|
+
}
|
|
8323
|
+
function getRectsByLine(rects) {
|
|
8324
|
+
const sortedRects = rects.slice().sort((a, b) => a.y - b.y);
|
|
8325
|
+
const groups = [];
|
|
8326
|
+
let prevRect = null;
|
|
8327
|
+
for (let i = 0; i < sortedRects.length; i++) {
|
|
8328
|
+
const rect = sortedRects[i];
|
|
8329
|
+
if (!prevRect || rect.y - prevRect.y > prevRect.height / 2) {
|
|
8330
|
+
groups.push([rect]);
|
|
8331
|
+
} else {
|
|
8332
|
+
groups[groups.length - 1].push(rect);
|
|
7651
8333
|
}
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
|
|
8334
|
+
prevRect = rect;
|
|
8335
|
+
}
|
|
8336
|
+
return groups.map(rect => rectToClientRect(getBoundingRect(rect)));
|
|
8337
|
+
}
|
|
8338
|
+
/**
|
|
8339
|
+
* Provides improved positioning for inline reference elements that can span
|
|
8340
|
+
* over multiple lines, such as hyperlinks or range selections.
|
|
8341
|
+
* @see https://floating-ui.com/docs/inline
|
|
8342
|
+
*/
|
|
8343
|
+
const inline = function (options) {
|
|
8344
|
+
if (options === void 0) {
|
|
8345
|
+
options = {};
|
|
8346
|
+
}
|
|
8347
|
+
return {
|
|
8348
|
+
name: 'inline',
|
|
8349
|
+
options,
|
|
8350
|
+
async fn(state) {
|
|
8351
|
+
const {
|
|
8352
|
+
placement,
|
|
8353
|
+
elements,
|
|
8354
|
+
rects,
|
|
8355
|
+
platform,
|
|
8356
|
+
strategy
|
|
8357
|
+
} = state;
|
|
8358
|
+
// A MouseEvent's client{X,Y} coords can be up to 2 pixels off a
|
|
8359
|
+
// ClientRect's bounds, despite the event listener being triggered. A
|
|
8360
|
+
// padding of 2 seems to handle this issue.
|
|
8361
|
+
const {
|
|
8362
|
+
padding = 2,
|
|
8363
|
+
x,
|
|
8364
|
+
y
|
|
8365
|
+
} = evaluate(options, state);
|
|
8366
|
+
const nativeClientRects = Array.from((await (platform.getClientRects == null ? void 0 : platform.getClientRects(elements.reference))) || []);
|
|
8367
|
+
const clientRects = getRectsByLine(nativeClientRects);
|
|
8368
|
+
const fallback = rectToClientRect(getBoundingRect(nativeClientRects));
|
|
8369
|
+
const paddingObject = getPaddingObject(padding);
|
|
8370
|
+
function getBoundingClientRect() {
|
|
8371
|
+
// There are two rects and they are disjoined.
|
|
8372
|
+
if (clientRects.length === 2 && clientRects[0].left > clientRects[1].right && x != null && y != null) {
|
|
8373
|
+
// Find the first rect in which the point is fully inside.
|
|
8374
|
+
return clientRects.find(rect => x > rect.left - paddingObject.left && x < rect.right + paddingObject.right && y > rect.top - paddingObject.top && y < rect.bottom + paddingObject.bottom) || fallback;
|
|
8375
|
+
}
|
|
8376
|
+
|
|
8377
|
+
// There are 2 or more connected rects.
|
|
8378
|
+
if (clientRects.length >= 2) {
|
|
8379
|
+
if (getSideAxis(placement) === 'y') {
|
|
8380
|
+
const firstRect = clientRects[0];
|
|
8381
|
+
const lastRect = clientRects[clientRects.length - 1];
|
|
8382
|
+
const isTop = getSide(placement) === 'top';
|
|
8383
|
+
const top = firstRect.top;
|
|
8384
|
+
const bottom = lastRect.bottom;
|
|
8385
|
+
const left = isTop ? firstRect.left : lastRect.left;
|
|
8386
|
+
const right = isTop ? firstRect.right : lastRect.right;
|
|
8387
|
+
const width = right - left;
|
|
8388
|
+
const height = bottom - top;
|
|
8389
|
+
return {
|
|
8390
|
+
top,
|
|
8391
|
+
bottom,
|
|
8392
|
+
left,
|
|
8393
|
+
right,
|
|
8394
|
+
width,
|
|
8395
|
+
height,
|
|
8396
|
+
x: left,
|
|
8397
|
+
y: top
|
|
8398
|
+
};
|
|
8399
|
+
}
|
|
8400
|
+
const isLeftSide = getSide(placement) === 'left';
|
|
8401
|
+
const maxRight = max(...clientRects.map(rect => rect.right));
|
|
8402
|
+
const minLeft = min(...clientRects.map(rect => rect.left));
|
|
8403
|
+
const measureRects = clientRects.filter(rect => isLeftSide ? rect.left === minLeft : rect.right === maxRight);
|
|
8404
|
+
const top = measureRects[0].top;
|
|
8405
|
+
const bottom = measureRects[measureRects.length - 1].bottom;
|
|
8406
|
+
const left = minLeft;
|
|
8407
|
+
const right = maxRight;
|
|
8408
|
+
const width = right - left;
|
|
8409
|
+
const height = bottom - top;
|
|
8410
|
+
return {
|
|
8411
|
+
top,
|
|
8412
|
+
bottom,
|
|
8413
|
+
left,
|
|
8414
|
+
right,
|
|
8415
|
+
width,
|
|
8416
|
+
height,
|
|
8417
|
+
x: left,
|
|
8418
|
+
y: top
|
|
8419
|
+
};
|
|
8420
|
+
}
|
|
8421
|
+
return fallback;
|
|
8422
|
+
}
|
|
8423
|
+
const resetRects = await platform.getElementRects({
|
|
8424
|
+
reference: {
|
|
8425
|
+
getBoundingClientRect
|
|
8426
|
+
},
|
|
8427
|
+
floating: elements.floating,
|
|
8428
|
+
strategy
|
|
8429
|
+
});
|
|
8430
|
+
if (rects.reference.x !== resetRects.reference.x || rects.reference.y !== resetRects.reference.y || rects.reference.width !== resetRects.reference.width || rects.reference.height !== resetRects.reference.height) {
|
|
8431
|
+
return {
|
|
8432
|
+
reset: {
|
|
8433
|
+
rects: resetRects
|
|
8434
|
+
}
|
|
8435
|
+
};
|
|
8436
|
+
}
|
|
8437
|
+
return {};
|
|
7655
8438
|
}
|
|
7656
|
-
|
|
7657
|
-
var serialized = serializeStyles(args, cache.registered);
|
|
7658
|
-
serializedArr.push(serialized); // registration has to happen here as the result of this might get consumed by `cx`
|
|
7659
|
-
|
|
7660
|
-
registerStyles(cache, serialized, false);
|
|
7661
|
-
return cache.key + "-" + serialized.name;
|
|
7662
8439
|
};
|
|
8440
|
+
};
|
|
7663
8441
|
|
|
7664
|
-
|
|
7665
|
-
|
|
7666
|
-
throw new Error('cx can only be used during render');
|
|
7667
|
-
}
|
|
7668
|
-
|
|
7669
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
7670
|
-
args[_key2] = arguments[_key2];
|
|
7671
|
-
}
|
|
8442
|
+
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
8443
|
+
// Derivable.
|
|
7672
8444
|
|
|
7673
|
-
|
|
8445
|
+
async function convertValueToCoords(state, options) {
|
|
8446
|
+
const {
|
|
8447
|
+
placement,
|
|
8448
|
+
platform,
|
|
8449
|
+
elements
|
|
8450
|
+
} = state;
|
|
8451
|
+
const rtl = await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating));
|
|
8452
|
+
const side = getSide(placement);
|
|
8453
|
+
const alignment = getAlignment(placement);
|
|
8454
|
+
const isVertical = getSideAxis(placement) === 'y';
|
|
8455
|
+
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
|
8456
|
+
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
8457
|
+
const rawValue = evaluate(options, state);
|
|
8458
|
+
|
|
8459
|
+
// eslint-disable-next-line prefer-const
|
|
8460
|
+
let {
|
|
8461
|
+
mainAxis,
|
|
8462
|
+
crossAxis,
|
|
8463
|
+
alignmentAxis
|
|
8464
|
+
} = typeof rawValue === 'number' ? {
|
|
8465
|
+
mainAxis: rawValue,
|
|
8466
|
+
crossAxis: 0,
|
|
8467
|
+
alignmentAxis: null
|
|
8468
|
+
} : {
|
|
8469
|
+
mainAxis: rawValue.mainAxis || 0,
|
|
8470
|
+
crossAxis: rawValue.crossAxis || 0,
|
|
8471
|
+
alignmentAxis: rawValue.alignmentAxis
|
|
7674
8472
|
};
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
8473
|
+
if (alignment && typeof alignmentAxis === 'number') {
|
|
8474
|
+
crossAxis = alignment === 'end' ? alignmentAxis * -1 : alignmentAxis;
|
|
8475
|
+
}
|
|
8476
|
+
return isVertical ? {
|
|
8477
|
+
x: crossAxis * crossAxisMulti,
|
|
8478
|
+
y: mainAxis * mainAxisMulti
|
|
8479
|
+
} : {
|
|
8480
|
+
x: mainAxis * mainAxisMulti,
|
|
8481
|
+
y: crossAxis * crossAxisMulti
|
|
7680
8482
|
};
|
|
7681
|
-
var ele = props.children(content);
|
|
7682
|
-
hasRendered = true;
|
|
7683
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Insertion, {
|
|
7684
|
-
cache: cache,
|
|
7685
|
-
serializedArr: serializedArr
|
|
7686
|
-
}), ele);
|
|
7687
|
-
});
|
|
7688
|
-
|
|
7689
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
7690
|
-
ClassNames.displayName = 'EmotionClassNames';
|
|
7691
8483
|
}
|
|
7692
8484
|
|
|
7693
|
-
|
|
7694
|
-
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
|
|
7698
|
-
|
|
7699
|
-
|
|
7700
|
-
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
|
|
7704
|
-
|
|
7705
|
-
|
|
7706
|
-
|
|
8485
|
+
/**
|
|
8486
|
+
* Modifies the placement by translating the floating element along the
|
|
8487
|
+
* specified axes.
|
|
8488
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
8489
|
+
* object may be passed.
|
|
8490
|
+
* @see https://floating-ui.com/docs/offset
|
|
8491
|
+
*/
|
|
8492
|
+
const offset = function (options) {
|
|
8493
|
+
if (options === void 0) {
|
|
8494
|
+
options = 0;
|
|
8495
|
+
}
|
|
8496
|
+
return {
|
|
8497
|
+
name: 'offset',
|
|
8498
|
+
options,
|
|
8499
|
+
async fn(state) {
|
|
8500
|
+
var _middlewareData$offse, _middlewareData$arrow;
|
|
8501
|
+
const {
|
|
8502
|
+
x,
|
|
8503
|
+
y,
|
|
8504
|
+
placement,
|
|
8505
|
+
middlewareData
|
|
8506
|
+
} = state;
|
|
8507
|
+
const diffCoords = await convertValueToCoords(state, options);
|
|
8508
|
+
|
|
8509
|
+
// If the placement is the same and the arrow caused an alignment offset
|
|
8510
|
+
// then we don't need to change the positioning coordinates.
|
|
8511
|
+
if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
|
|
8512
|
+
return {};
|
|
8513
|
+
}
|
|
8514
|
+
return {
|
|
8515
|
+
x: x + diffCoords.x,
|
|
8516
|
+
y: y + diffCoords.y,
|
|
8517
|
+
data: {
|
|
8518
|
+
...diffCoords,
|
|
8519
|
+
placement
|
|
8520
|
+
}
|
|
8521
|
+
};
|
|
7707
8522
|
}
|
|
8523
|
+
};
|
|
8524
|
+
};
|
|
7708
8525
|
|
|
7709
|
-
|
|
8526
|
+
/**
|
|
8527
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
8528
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
8529
|
+
* @see https://floating-ui.com/docs/shift
|
|
8530
|
+
*/
|
|
8531
|
+
const shift = function (options) {
|
|
8532
|
+
if (options === void 0) {
|
|
8533
|
+
options = {};
|
|
7710
8534
|
}
|
|
7711
|
-
|
|
7712
|
-
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
|
|
7716
|
-
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7727
|
-
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
|
|
7737
|
-
|
|
7738
|
-
|
|
8535
|
+
return {
|
|
8536
|
+
name: 'shift',
|
|
8537
|
+
options,
|
|
8538
|
+
async fn(state) {
|
|
8539
|
+
const {
|
|
8540
|
+
x,
|
|
8541
|
+
y,
|
|
8542
|
+
placement
|
|
8543
|
+
} = state;
|
|
8544
|
+
const {
|
|
8545
|
+
mainAxis: checkMainAxis = true,
|
|
8546
|
+
crossAxis: checkCrossAxis = false,
|
|
8547
|
+
limiter = {
|
|
8548
|
+
fn: _ref => {
|
|
8549
|
+
let {
|
|
8550
|
+
x,
|
|
8551
|
+
y
|
|
8552
|
+
} = _ref;
|
|
8553
|
+
return {
|
|
8554
|
+
x,
|
|
8555
|
+
y
|
|
8556
|
+
};
|
|
8557
|
+
}
|
|
8558
|
+
},
|
|
8559
|
+
...detectOverflowOptions
|
|
8560
|
+
} = evaluate(options, state);
|
|
8561
|
+
const coords = {
|
|
8562
|
+
x,
|
|
8563
|
+
y
|
|
8564
|
+
};
|
|
8565
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
8566
|
+
const crossAxis = getSideAxis(getSide(placement));
|
|
8567
|
+
const mainAxis = getOppositeAxis(crossAxis);
|
|
8568
|
+
let mainAxisCoord = coords[mainAxis];
|
|
8569
|
+
let crossAxisCoord = coords[crossAxis];
|
|
8570
|
+
if (checkMainAxis) {
|
|
8571
|
+
const minSide = mainAxis === 'y' ? 'top' : 'left';
|
|
8572
|
+
const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
|
|
8573
|
+
const min = mainAxisCoord + overflow[minSide];
|
|
8574
|
+
const max = mainAxisCoord - overflow[maxSide];
|
|
8575
|
+
mainAxisCoord = clamp(min, mainAxisCoord, max);
|
|
8576
|
+
}
|
|
8577
|
+
if (checkCrossAxis) {
|
|
8578
|
+
const minSide = crossAxis === 'y' ? 'top' : 'left';
|
|
8579
|
+
const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
|
|
8580
|
+
const min = crossAxisCoord + overflow[minSide];
|
|
8581
|
+
const max = crossAxisCoord - overflow[maxSide];
|
|
8582
|
+
crossAxisCoord = clamp(min, crossAxisCoord, max);
|
|
8583
|
+
}
|
|
8584
|
+
const limitedCoords = limiter.fn({
|
|
8585
|
+
...state,
|
|
8586
|
+
[mainAxis]: mainAxisCoord,
|
|
8587
|
+
[crossAxis]: crossAxisCoord
|
|
8588
|
+
});
|
|
8589
|
+
return {
|
|
8590
|
+
...limitedCoords,
|
|
8591
|
+
data: {
|
|
8592
|
+
x: limitedCoords.x - x,
|
|
8593
|
+
y: limitedCoords.y - y,
|
|
8594
|
+
enabled: {
|
|
8595
|
+
[mainAxis]: checkMainAxis,
|
|
8596
|
+
[crossAxis]: checkCrossAxis
|
|
8597
|
+
}
|
|
8598
|
+
}
|
|
8599
|
+
};
|
|
8600
|
+
}
|
|
8601
|
+
};
|
|
8602
|
+
};
|
|
8603
|
+
/**
|
|
8604
|
+
* Built-in `limiter` that will stop `shift()` at a certain point.
|
|
8605
|
+
*/
|
|
8606
|
+
const limitShift = function (options) {
|
|
8607
|
+
if (options === void 0) {
|
|
8608
|
+
options = {};
|
|
8609
|
+
}
|
|
8610
|
+
return {
|
|
8611
|
+
options,
|
|
8612
|
+
fn(state) {
|
|
8613
|
+
const {
|
|
8614
|
+
x,
|
|
8615
|
+
y,
|
|
8616
|
+
placement,
|
|
8617
|
+
rects,
|
|
8618
|
+
middlewareData
|
|
8619
|
+
} = state;
|
|
8620
|
+
const {
|
|
8621
|
+
offset = 0,
|
|
8622
|
+
mainAxis: checkMainAxis = true,
|
|
8623
|
+
crossAxis: checkCrossAxis = true
|
|
8624
|
+
} = evaluate(options, state);
|
|
8625
|
+
const coords = {
|
|
8626
|
+
x,
|
|
8627
|
+
y
|
|
8628
|
+
};
|
|
8629
|
+
const crossAxis = getSideAxis(placement);
|
|
8630
|
+
const mainAxis = getOppositeAxis(crossAxis);
|
|
8631
|
+
let mainAxisCoord = coords[mainAxis];
|
|
8632
|
+
let crossAxisCoord = coords[crossAxis];
|
|
8633
|
+
const rawOffset = evaluate(offset, state);
|
|
8634
|
+
const computedOffset = typeof rawOffset === 'number' ? {
|
|
8635
|
+
mainAxis: rawOffset,
|
|
8636
|
+
crossAxis: 0
|
|
8637
|
+
} : {
|
|
8638
|
+
mainAxis: 0,
|
|
8639
|
+
crossAxis: 0,
|
|
8640
|
+
...rawOffset
|
|
8641
|
+
};
|
|
8642
|
+
if (checkMainAxis) {
|
|
8643
|
+
const len = mainAxis === 'y' ? 'height' : 'width';
|
|
8644
|
+
const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
|
|
8645
|
+
const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
|
|
8646
|
+
if (mainAxisCoord < limitMin) {
|
|
8647
|
+
mainAxisCoord = limitMin;
|
|
8648
|
+
} else if (mainAxisCoord > limitMax) {
|
|
8649
|
+
mainAxisCoord = limitMax;
|
|
8650
|
+
}
|
|
8651
|
+
}
|
|
8652
|
+
if (checkCrossAxis) {
|
|
8653
|
+
var _middlewareData$offse, _middlewareData$offse2;
|
|
8654
|
+
const len = mainAxis === 'y' ? 'width' : 'height';
|
|
8655
|
+
const isOriginSide = ['top', 'left'].includes(getSide(placement));
|
|
8656
|
+
const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
|
|
8657
|
+
const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
|
|
8658
|
+
if (crossAxisCoord < limitMin) {
|
|
8659
|
+
crossAxisCoord = limitMin;
|
|
8660
|
+
} else if (crossAxisCoord > limitMax) {
|
|
8661
|
+
crossAxisCoord = limitMax;
|
|
8662
|
+
}
|
|
7739
8663
|
}
|
|
8664
|
+
return {
|
|
8665
|
+
[mainAxis]: mainAxisCoord,
|
|
8666
|
+
[crossAxis]: crossAxisCoord
|
|
8667
|
+
};
|
|
7740
8668
|
}
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
}
|
|
7744
|
-
|
|
7745
|
-
function _nonIterableRest() {
|
|
7746
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7747
|
-
}
|
|
7748
|
-
|
|
7749
|
-
function _slicedToArray(arr, i) {
|
|
7750
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
7751
|
-
}
|
|
8669
|
+
};
|
|
8670
|
+
};
|
|
7752
8671
|
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
|
|
7758
|
-
|
|
7759
|
-
|
|
7760
|
-
|
|
7761
|
-
|
|
8672
|
+
/**
|
|
8673
|
+
* Provides data that allows you to change the size of the floating element —
|
|
8674
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
8675
|
+
* width of the reference element.
|
|
8676
|
+
* @see https://floating-ui.com/docs/size
|
|
8677
|
+
*/
|
|
8678
|
+
const size = function (options) {
|
|
8679
|
+
if (options === void 0) {
|
|
8680
|
+
options = {};
|
|
7762
8681
|
}
|
|
7763
|
-
return
|
|
7764
|
-
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
|
|
7768
|
-
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
8682
|
+
return {
|
|
8683
|
+
name: 'size',
|
|
8684
|
+
options,
|
|
8685
|
+
async fn(state) {
|
|
8686
|
+
var _state$middlewareData, _state$middlewareData2;
|
|
8687
|
+
const {
|
|
8688
|
+
placement,
|
|
8689
|
+
rects,
|
|
8690
|
+
platform,
|
|
8691
|
+
elements
|
|
8692
|
+
} = state;
|
|
8693
|
+
const {
|
|
8694
|
+
apply = () => {},
|
|
8695
|
+
...detectOverflowOptions
|
|
8696
|
+
} = evaluate(options, state);
|
|
8697
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
8698
|
+
const side = getSide(placement);
|
|
8699
|
+
const alignment = getAlignment(placement);
|
|
8700
|
+
const isYAxis = getSideAxis(placement) === 'y';
|
|
8701
|
+
const {
|
|
8702
|
+
width,
|
|
8703
|
+
height
|
|
8704
|
+
} = rects.floating;
|
|
8705
|
+
let heightSide;
|
|
8706
|
+
let widthSide;
|
|
8707
|
+
if (side === 'top' || side === 'bottom') {
|
|
8708
|
+
heightSide = side;
|
|
8709
|
+
widthSide = alignment === ((await (platform.isRTL == null ? void 0 : platform.isRTL(elements.floating))) ? 'start' : 'end') ? 'left' : 'right';
|
|
8710
|
+
} else {
|
|
8711
|
+
widthSide = side;
|
|
8712
|
+
heightSide = alignment === 'end' ? 'top' : 'bottom';
|
|
8713
|
+
}
|
|
8714
|
+
const maximumClippingHeight = height - overflow.top - overflow.bottom;
|
|
8715
|
+
const maximumClippingWidth = width - overflow.left - overflow.right;
|
|
8716
|
+
const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
|
|
8717
|
+
const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
|
|
8718
|
+
const noShift = !state.middlewareData.shift;
|
|
8719
|
+
let availableHeight = overflowAvailableHeight;
|
|
8720
|
+
let availableWidth = overflowAvailableWidth;
|
|
8721
|
+
if ((_state$middlewareData = state.middlewareData.shift) != null && _state$middlewareData.enabled.x) {
|
|
8722
|
+
availableWidth = maximumClippingWidth;
|
|
8723
|
+
}
|
|
8724
|
+
if ((_state$middlewareData2 = state.middlewareData.shift) != null && _state$middlewareData2.enabled.y) {
|
|
8725
|
+
availableHeight = maximumClippingHeight;
|
|
8726
|
+
}
|
|
8727
|
+
if (noShift && !alignment) {
|
|
8728
|
+
const xMin = max(overflow.left, 0);
|
|
8729
|
+
const xMax = max(overflow.right, 0);
|
|
8730
|
+
const yMin = max(overflow.top, 0);
|
|
8731
|
+
const yMax = max(overflow.bottom, 0);
|
|
8732
|
+
if (isYAxis) {
|
|
8733
|
+
availableWidth = width - 2 * (xMin !== 0 || xMax !== 0 ? xMin + xMax : max(overflow.left, overflow.right));
|
|
8734
|
+
} else {
|
|
8735
|
+
availableHeight = height - 2 * (yMin !== 0 || yMax !== 0 ? yMin + yMax : max(overflow.top, overflow.bottom));
|
|
8736
|
+
}
|
|
8737
|
+
}
|
|
8738
|
+
await apply({
|
|
8739
|
+
...state,
|
|
8740
|
+
availableWidth,
|
|
8741
|
+
availableHeight
|
|
8742
|
+
});
|
|
8743
|
+
const nextDimensions = await platform.getDimensions(elements.floating);
|
|
8744
|
+
if (width !== nextDimensions.width || height !== nextDimensions.height) {
|
|
8745
|
+
return {
|
|
8746
|
+
reset: {
|
|
8747
|
+
rects: true
|
|
8748
|
+
}
|
|
8749
|
+
};
|
|
8750
|
+
}
|
|
8751
|
+
return {};
|
|
7777
8752
|
}
|
|
7778
|
-
}
|
|
7779
|
-
|
|
7780
|
-
}
|
|
8753
|
+
};
|
|
8754
|
+
};
|
|
7781
8755
|
|
|
7782
|
-
function
|
|
7783
|
-
|
|
7784
|
-
raw = strings.slice(0);
|
|
7785
|
-
}
|
|
7786
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
7787
|
-
raw: {
|
|
7788
|
-
value: Object.freeze(raw)
|
|
7789
|
-
}
|
|
7790
|
-
}));
|
|
8756
|
+
function hasWindow() {
|
|
8757
|
+
return typeof window !== 'undefined';
|
|
7791
8758
|
}
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
7798
|
-
|
|
7799
|
-
|
|
7800
|
-
};
|
|
8759
|
+
function getNodeName(node) {
|
|
8760
|
+
if (isNode(node)) {
|
|
8761
|
+
return (node.nodeName || '').toLowerCase();
|
|
8762
|
+
}
|
|
8763
|
+
// Mocked nodes in testing environments may not be instances of Node. By
|
|
8764
|
+
// returning `#document` an infinite loop won't occur.
|
|
8765
|
+
// https://github.com/floating-ui/floating-ui/issues/2317
|
|
8766
|
+
return '#document';
|
|
7801
8767
|
}
|
|
7802
|
-
|
|
7803
8768
|
function getWindow(node) {
|
|
7804
8769
|
var _node$ownerDocument;
|
|
7805
|
-
return ((_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
8770
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
7806
8771
|
}
|
|
7807
|
-
|
|
7808
|
-
|
|
7809
|
-
return
|
|
8772
|
+
function getDocumentElement(node) {
|
|
8773
|
+
var _ref;
|
|
8774
|
+
return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
7810
8775
|
}
|
|
7811
|
-
|
|
7812
8776
|
function isNode(value) {
|
|
7813
|
-
|
|
7814
|
-
|
|
7815
|
-
function getNodeName(node) {
|
|
7816
|
-
return isNode(node) ? (node.nodeName || '').toLowerCase() : '';
|
|
7817
|
-
}
|
|
7818
|
-
|
|
7819
|
-
let uaString;
|
|
7820
|
-
function getUAString() {
|
|
7821
|
-
if (uaString) {
|
|
7822
|
-
return uaString;
|
|
8777
|
+
if (!hasWindow()) {
|
|
8778
|
+
return false;
|
|
7823
8779
|
}
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
|
|
7827
|
-
|
|
8780
|
+
return value instanceof Node || value instanceof getWindow(value).Node;
|
|
8781
|
+
}
|
|
8782
|
+
function isElement(value) {
|
|
8783
|
+
if (!hasWindow()) {
|
|
8784
|
+
return false;
|
|
7828
8785
|
}
|
|
7829
|
-
return
|
|
8786
|
+
return value instanceof Element || value instanceof getWindow(value).Element;
|
|
7830
8787
|
}
|
|
7831
|
-
|
|
7832
8788
|
function isHTMLElement(value) {
|
|
7833
|
-
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
return value instanceof getWindow(value).
|
|
8789
|
+
if (!hasWindow()) {
|
|
8790
|
+
return false;
|
|
8791
|
+
}
|
|
8792
|
+
return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
|
|
7837
8793
|
}
|
|
7838
|
-
function isShadowRoot(
|
|
7839
|
-
|
|
7840
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
8794
|
+
function isShadowRoot(value) {
|
|
8795
|
+
if (!hasWindow() || typeof ShadowRoot === 'undefined') {
|
|
7841
8796
|
return false;
|
|
7842
8797
|
}
|
|
7843
|
-
|
|
7844
|
-
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
8798
|
+
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
7845
8799
|
}
|
|
7846
8800
|
function isOverflowElement(element) {
|
|
7847
8801
|
const {
|
|
@@ -7852,27 +8806,61 @@ function isOverflowElement(element) {
|
|
|
7852
8806
|
} = getComputedStyle$1(element);
|
|
7853
8807
|
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
|
7854
8808
|
}
|
|
7855
|
-
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
* viewport offsets. In Safari, the `x`/`y` offsets are values relative to the
|
|
7859
|
-
* visual viewport, while in other engines, they are values relative to the
|
|
7860
|
-
* layout viewport.
|
|
7861
|
-
*/
|
|
7862
|
-
function isClientRectVisualViewportBased() {
|
|
7863
|
-
// TODO: Try to use feature detection here instead. Feature detection for
|
|
7864
|
-
// this can fail in various ways, making the userAgent check the most
|
|
7865
|
-
// reliable:
|
|
7866
|
-
// • Always-visible scrollbar or not
|
|
7867
|
-
// • Width of <html>
|
|
7868
|
-
|
|
7869
|
-
// Is Safari.
|
|
7870
|
-
return /^((?!chrome|android).)*safari/i.test(getUAString());
|
|
8809
|
+
function isWebKit() {
|
|
8810
|
+
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
|
8811
|
+
return CSS.supports('-webkit-backdrop-filter', 'none');
|
|
7871
8812
|
}
|
|
7872
8813
|
function isLastTraversableNode(node) {
|
|
7873
8814
|
return ['html', 'body', '#document'].includes(getNodeName(node));
|
|
7874
8815
|
}
|
|
7875
|
-
|
|
8816
|
+
function getComputedStyle$1(element) {
|
|
8817
|
+
return getWindow(element).getComputedStyle(element);
|
|
8818
|
+
}
|
|
8819
|
+
function getParentNode(node) {
|
|
8820
|
+
if (getNodeName(node) === 'html') {
|
|
8821
|
+
return node;
|
|
8822
|
+
}
|
|
8823
|
+
const result =
|
|
8824
|
+
// Step into the shadow DOM of the parent of a slotted node.
|
|
8825
|
+
node.assignedSlot ||
|
|
8826
|
+
// DOM Element detected.
|
|
8827
|
+
node.parentNode ||
|
|
8828
|
+
// ShadowRoot detected.
|
|
8829
|
+
isShadowRoot(node) && node.host ||
|
|
8830
|
+
// Fallback.
|
|
8831
|
+
getDocumentElement(node);
|
|
8832
|
+
return isShadowRoot(result) ? result.host : result;
|
|
8833
|
+
}
|
|
8834
|
+
function getNearestOverflowAncestor(node) {
|
|
8835
|
+
const parentNode = getParentNode(node);
|
|
8836
|
+
if (isLastTraversableNode(parentNode)) {
|
|
8837
|
+
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
|
8838
|
+
}
|
|
8839
|
+
if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
|
|
8840
|
+
return parentNode;
|
|
8841
|
+
}
|
|
8842
|
+
return getNearestOverflowAncestor(parentNode);
|
|
8843
|
+
}
|
|
8844
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
|
8845
|
+
var _node$ownerDocument2;
|
|
8846
|
+
if (list === void 0) {
|
|
8847
|
+
list = [];
|
|
8848
|
+
}
|
|
8849
|
+
if (traverseIframes === void 0) {
|
|
8850
|
+
traverseIframes = true;
|
|
8851
|
+
}
|
|
8852
|
+
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
8853
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
8854
|
+
const win = getWindow(scrollableAncestor);
|
|
8855
|
+
if (isBody) {
|
|
8856
|
+
const frameElement = getFrameElement(win);
|
|
8857
|
+
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
|
|
8858
|
+
}
|
|
8859
|
+
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
|
|
8860
|
+
}
|
|
8861
|
+
function getFrameElement(win) {
|
|
8862
|
+
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
8863
|
+
}
|
|
7876
8864
|
|
|
7877
8865
|
function getCssDimensions(element) {
|
|
7878
8866
|
const css = getComputedStyle$1(element);
|
|
@@ -7891,7 +8879,7 @@ function getCssDimensions(element) {
|
|
|
7891
8879
|
return {
|
|
7892
8880
|
width,
|
|
7893
8881
|
height,
|
|
7894
|
-
|
|
8882
|
+
$: shouldFallback
|
|
7895
8883
|
};
|
|
7896
8884
|
}
|
|
7897
8885
|
|
|
@@ -7899,23 +8887,19 @@ function unwrapElement(element) {
|
|
|
7899
8887
|
return !isElement(element) ? element.contextElement : element;
|
|
7900
8888
|
}
|
|
7901
8889
|
|
|
7902
|
-
const FALLBACK_SCALE = {
|
|
7903
|
-
x: 1,
|
|
7904
|
-
y: 1
|
|
7905
|
-
};
|
|
7906
8890
|
function getScale(element) {
|
|
7907
8891
|
const domElement = unwrapElement(element);
|
|
7908
8892
|
if (!isHTMLElement(domElement)) {
|
|
7909
|
-
return
|
|
8893
|
+
return createCoords(1);
|
|
7910
8894
|
}
|
|
7911
8895
|
const rect = domElement.getBoundingClientRect();
|
|
7912
8896
|
const {
|
|
7913
8897
|
width,
|
|
7914
8898
|
height,
|
|
7915
|
-
|
|
8899
|
+
$
|
|
7916
8900
|
} = getCssDimensions(domElement);
|
|
7917
|
-
let x = (
|
|
7918
|
-
let y = (
|
|
8901
|
+
let x = ($ ? round(rect.width) : rect.width) / width;
|
|
8902
|
+
let y = ($ ? round(rect.height) : rect.height) / height;
|
|
7919
8903
|
|
|
7920
8904
|
// 0, NaN, or Infinity should always fallback to 1.
|
|
7921
8905
|
|
|
@@ -7931,8 +8915,28 @@ function getScale(element) {
|
|
|
7931
8915
|
};
|
|
7932
8916
|
}
|
|
7933
8917
|
|
|
8918
|
+
const noOffsets = /*#__PURE__*/createCoords(0);
|
|
8919
|
+
function getVisualOffsets(element) {
|
|
8920
|
+
const win = getWindow(element);
|
|
8921
|
+
if (!isWebKit() || !win.visualViewport) {
|
|
8922
|
+
return noOffsets;
|
|
8923
|
+
}
|
|
8924
|
+
return {
|
|
8925
|
+
x: win.visualViewport.offsetLeft,
|
|
8926
|
+
y: win.visualViewport.offsetTop
|
|
8927
|
+
};
|
|
8928
|
+
}
|
|
8929
|
+
function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
|
|
8930
|
+
if (isFixed === void 0) {
|
|
8931
|
+
isFixed = false;
|
|
8932
|
+
}
|
|
8933
|
+
if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {
|
|
8934
|
+
return false;
|
|
8935
|
+
}
|
|
8936
|
+
return isFixed;
|
|
8937
|
+
}
|
|
8938
|
+
|
|
7934
8939
|
function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
|
|
7935
|
-
var _win$visualViewport, _win$visualViewport2;
|
|
7936
8940
|
if (includeScale === void 0) {
|
|
7937
8941
|
includeScale = false;
|
|
7938
8942
|
}
|
|
@@ -7941,7 +8945,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
7941
8945
|
}
|
|
7942
8946
|
const clientRect = element.getBoundingClientRect();
|
|
7943
8947
|
const domElement = unwrapElement(element);
|
|
7944
|
-
let scale =
|
|
8948
|
+
let scale = createCoords(1);
|
|
7945
8949
|
if (includeScale) {
|
|
7946
8950
|
if (offsetParent) {
|
|
7947
8951
|
if (isElement(offsetParent)) {
|
|
@@ -7951,29 +8955,30 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
7951
8955
|
scale = getScale(element);
|
|
7952
8956
|
}
|
|
7953
8957
|
}
|
|
7954
|
-
const
|
|
7955
|
-
|
|
7956
|
-
let
|
|
7957
|
-
let y = (clientRect.top + (addVisualOffsets ? ((_win$visualViewport2 = win.visualViewport) == null ? void 0 : _win$visualViewport2.offsetTop) || 0 : 0)) / scale.y;
|
|
8958
|
+
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
8959
|
+
let x = (clientRect.left + visualOffsets.x) / scale.x;
|
|
8960
|
+
let y = (clientRect.top + visualOffsets.y) / scale.y;
|
|
7958
8961
|
let width = clientRect.width / scale.x;
|
|
7959
8962
|
let height = clientRect.height / scale.y;
|
|
7960
8963
|
if (domElement) {
|
|
7961
8964
|
const win = getWindow(domElement);
|
|
7962
8965
|
const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
|
|
7963
|
-
let
|
|
7964
|
-
|
|
8966
|
+
let currentWin = win;
|
|
8967
|
+
let currentIFrame = getFrameElement(currentWin);
|
|
8968
|
+
while (currentIFrame && offsetParent && offsetWin !== currentWin) {
|
|
7965
8969
|
const iframeScale = getScale(currentIFrame);
|
|
7966
8970
|
const iframeRect = currentIFrame.getBoundingClientRect();
|
|
7967
|
-
const css = getComputedStyle(currentIFrame);
|
|
7968
|
-
iframeRect.
|
|
7969
|
-
iframeRect.
|
|
8971
|
+
const css = getComputedStyle$1(currentIFrame);
|
|
8972
|
+
const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
8973
|
+
const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
7970
8974
|
x *= iframeScale.x;
|
|
7971
8975
|
y *= iframeScale.y;
|
|
7972
8976
|
width *= iframeScale.x;
|
|
7973
8977
|
height *= iframeScale.y;
|
|
7974
|
-
x +=
|
|
7975
|
-
y +=
|
|
7976
|
-
|
|
8978
|
+
x += left;
|
|
8979
|
+
y += top;
|
|
8980
|
+
currentWin = getWindow(currentIFrame);
|
|
8981
|
+
currentIFrame = getFrameElement(currentWin);
|
|
7977
8982
|
}
|
|
7978
8983
|
}
|
|
7979
8984
|
return rectToClientRect({
|
|
@@ -7984,51 +8989,96 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
7984
8989
|
});
|
|
7985
8990
|
}
|
|
7986
8991
|
|
|
7987
|
-
function
|
|
7988
|
-
return
|
|
7989
|
-
}
|
|
7990
|
-
|
|
7991
|
-
|
|
7992
|
-
|
|
7993
|
-
|
|
7994
|
-
|
|
7995
|
-
const
|
|
7996
|
-
|
|
7997
|
-
|
|
7998
|
-
|
|
7999
|
-
|
|
8000
|
-
|
|
8001
|
-
|
|
8002
|
-
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
|
-
}
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
8009
|
-
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8992
|
+
function rectsAreEqual(a, b) {
|
|
8993
|
+
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
8994
|
+
}
|
|
8995
|
+
|
|
8996
|
+
// https://samthor.au/2021/observing-dom/
|
|
8997
|
+
function observeMove(element, onMove) {
|
|
8998
|
+
let io = null;
|
|
8999
|
+
let timeoutId;
|
|
9000
|
+
const root = getDocumentElement(element);
|
|
9001
|
+
function cleanup() {
|
|
9002
|
+
var _io;
|
|
9003
|
+
clearTimeout(timeoutId);
|
|
9004
|
+
(_io = io) == null || _io.disconnect();
|
|
9005
|
+
io = null;
|
|
9006
|
+
}
|
|
9007
|
+
function refresh(skip, threshold) {
|
|
9008
|
+
if (skip === void 0) {
|
|
9009
|
+
skip = false;
|
|
9010
|
+
}
|
|
9011
|
+
if (threshold === void 0) {
|
|
9012
|
+
threshold = 1;
|
|
9013
|
+
}
|
|
9014
|
+
cleanup();
|
|
9015
|
+
const elementRectForRootMargin = element.getBoundingClientRect();
|
|
9016
|
+
const {
|
|
9017
|
+
left,
|
|
9018
|
+
top,
|
|
9019
|
+
width,
|
|
9020
|
+
height
|
|
9021
|
+
} = elementRectForRootMargin;
|
|
9022
|
+
if (!skip) {
|
|
9023
|
+
onMove();
|
|
9024
|
+
}
|
|
9025
|
+
if (!width || !height) {
|
|
9026
|
+
return;
|
|
9027
|
+
}
|
|
9028
|
+
const insetTop = floor(top);
|
|
9029
|
+
const insetRight = floor(root.clientWidth - (left + width));
|
|
9030
|
+
const insetBottom = floor(root.clientHeight - (top + height));
|
|
9031
|
+
const insetLeft = floor(left);
|
|
9032
|
+
const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
|
|
9033
|
+
const options = {
|
|
9034
|
+
rootMargin,
|
|
9035
|
+
threshold: max(0, min(1, threshold)) || 1
|
|
9036
|
+
};
|
|
9037
|
+
let isFirstUpdate = true;
|
|
9038
|
+
function handleObserve(entries) {
|
|
9039
|
+
const ratio = entries[0].intersectionRatio;
|
|
9040
|
+
if (ratio !== threshold) {
|
|
9041
|
+
if (!isFirstUpdate) {
|
|
9042
|
+
return refresh();
|
|
9043
|
+
}
|
|
9044
|
+
if (!ratio) {
|
|
9045
|
+
// If the reference is clipped, the ratio is 0. Throttle the refresh
|
|
9046
|
+
// to prevent an infinite loop of updates.
|
|
9047
|
+
timeoutId = setTimeout(() => {
|
|
9048
|
+
refresh(false, 1e-7);
|
|
9049
|
+
}, 1000);
|
|
9050
|
+
} else {
|
|
9051
|
+
refresh(false, ratio);
|
|
9052
|
+
}
|
|
9053
|
+
}
|
|
9054
|
+
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
|
9055
|
+
// It's possible that even though the ratio is reported as 1, the
|
|
9056
|
+
// element is not actually fully within the IntersectionObserver's root
|
|
9057
|
+
// area anymore. This can happen under performance constraints. This may
|
|
9058
|
+
// be a bug in the browser's IntersectionObserver implementation. To
|
|
9059
|
+
// work around this, we compare the element's bounding rect now with
|
|
9060
|
+
// what it was at the time we created the IntersectionObserver. If they
|
|
9061
|
+
// are not equal then the element moved, so we refresh.
|
|
9062
|
+
refresh();
|
|
9063
|
+
}
|
|
9064
|
+
isFirstUpdate = false;
|
|
9065
|
+
}
|
|
8019
9066
|
|
|
8020
|
-
|
|
8021
|
-
|
|
8022
|
-
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
9067
|
+
// Older browsers don't support a `document` as the root and will throw an
|
|
9068
|
+
// error.
|
|
9069
|
+
try {
|
|
9070
|
+
io = new IntersectionObserver(handleObserve, {
|
|
9071
|
+
...options,
|
|
9072
|
+
// Handle <iframe>s
|
|
9073
|
+
root: root.ownerDocument
|
|
9074
|
+
});
|
|
9075
|
+
} catch (e) {
|
|
9076
|
+
io = new IntersectionObserver(handleObserve, options);
|
|
9077
|
+
}
|
|
9078
|
+
io.observe(element);
|
|
8030
9079
|
}
|
|
8031
|
-
|
|
9080
|
+
refresh(true);
|
|
9081
|
+
return cleanup;
|
|
8032
9082
|
}
|
|
8033
9083
|
|
|
8034
9084
|
/**
|
|
@@ -8046,30 +9096,40 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
8046
9096
|
const {
|
|
8047
9097
|
ancestorScroll = true,
|
|
8048
9098
|
ancestorResize = true,
|
|
8049
|
-
elementResize =
|
|
9099
|
+
elementResize = typeof ResizeObserver === 'function',
|
|
9100
|
+
layoutShift = typeof IntersectionObserver === 'function',
|
|
8050
9101
|
animationFrame = false
|
|
8051
9102
|
} = options;
|
|
8052
|
-
const
|
|
9103
|
+
const referenceEl = unwrapElement(reference);
|
|
9104
|
+
const ancestors = ancestorScroll || ancestorResize ? [...(referenceEl ? getOverflowAncestors(referenceEl) : []), ...getOverflowAncestors(floating)] : [];
|
|
8053
9105
|
ancestors.forEach(ancestor => {
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
ancestor.addEventListener('scroll', update, {
|
|
8058
|
-
passive: true
|
|
8059
|
-
});
|
|
8060
|
-
}
|
|
9106
|
+
ancestorScroll && ancestor.addEventListener('scroll', update, {
|
|
9107
|
+
passive: true
|
|
9108
|
+
});
|
|
8061
9109
|
ancestorResize && ancestor.addEventListener('resize', update);
|
|
8062
9110
|
});
|
|
8063
|
-
|
|
9111
|
+
const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update) : null;
|
|
9112
|
+
let reobserveFrame = -1;
|
|
9113
|
+
let resizeObserver = null;
|
|
8064
9114
|
if (elementResize) {
|
|
8065
|
-
|
|
9115
|
+
resizeObserver = new ResizeObserver(_ref => {
|
|
9116
|
+
let [firstEntry] = _ref;
|
|
9117
|
+
if (firstEntry && firstEntry.target === referenceEl && resizeObserver) {
|
|
9118
|
+
// Prevent update loops when using the `size` middleware.
|
|
9119
|
+
// https://github.com/floating-ui/floating-ui/issues/1740
|
|
9120
|
+
resizeObserver.unobserve(floating);
|
|
9121
|
+
cancelAnimationFrame(reobserveFrame);
|
|
9122
|
+
reobserveFrame = requestAnimationFrame(() => {
|
|
9123
|
+
var _resizeObserver;
|
|
9124
|
+
(_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
|
|
9125
|
+
});
|
|
9126
|
+
}
|
|
8066
9127
|
update();
|
|
8067
9128
|
});
|
|
8068
|
-
|
|
8069
|
-
|
|
8070
|
-
observer.observe(reference.contextElement);
|
|
9129
|
+
if (referenceEl && !animationFrame) {
|
|
9130
|
+
resizeObserver.observe(referenceEl);
|
|
8071
9131
|
}
|
|
8072
|
-
|
|
9132
|
+
resizeObserver.observe(floating);
|
|
8073
9133
|
}
|
|
8074
9134
|
let frameId;
|
|
8075
9135
|
let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
|
|
@@ -8078,7 +9138,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
8078
9138
|
}
|
|
8079
9139
|
function frameLoop() {
|
|
8080
9140
|
const nextRefRect = getBoundingClientRect(reference);
|
|
8081
|
-
if (prevRefRect && (
|
|
9141
|
+
if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
|
|
8082
9142
|
update();
|
|
8083
9143
|
}
|
|
8084
9144
|
prevRefRect = nextRefRect;
|
|
@@ -8086,22 +9146,91 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
8086
9146
|
}
|
|
8087
9147
|
update();
|
|
8088
9148
|
return () => {
|
|
8089
|
-
var
|
|
9149
|
+
var _resizeObserver2;
|
|
8090
9150
|
ancestors.forEach(ancestor => {
|
|
8091
9151
|
ancestorScroll && ancestor.removeEventListener('scroll', update);
|
|
8092
9152
|
ancestorResize && ancestor.removeEventListener('resize', update);
|
|
8093
9153
|
});
|
|
8094
|
-
|
|
8095
|
-
|
|
9154
|
+
cleanupIo == null || cleanupIo();
|
|
9155
|
+
(_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
|
|
9156
|
+
resizeObserver = null;
|
|
8096
9157
|
if (animationFrame) {
|
|
8097
9158
|
cancelAnimationFrame(frameId);
|
|
8098
9159
|
}
|
|
8099
9160
|
};
|
|
8100
9161
|
}
|
|
8101
9162
|
|
|
8102
|
-
|
|
9163
|
+
/**
|
|
9164
|
+
* Modifies the placement by translating the floating element along the
|
|
9165
|
+
* specified axes.
|
|
9166
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
9167
|
+
* object may be passed.
|
|
9168
|
+
* @see https://floating-ui.com/docs/offset
|
|
9169
|
+
*/
|
|
9170
|
+
offset;
|
|
9171
|
+
|
|
9172
|
+
/**
|
|
9173
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
|
9174
|
+
* that has the most space available automatically, without needing to specify a
|
|
9175
|
+
* preferred placement. Alternative to `flip`.
|
|
9176
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
|
9177
|
+
*/
|
|
9178
|
+
autoPlacement;
|
|
9179
|
+
|
|
9180
|
+
/**
|
|
9181
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
9182
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
9183
|
+
* @see https://floating-ui.com/docs/shift
|
|
9184
|
+
*/
|
|
9185
|
+
shift;
|
|
9186
|
+
|
|
9187
|
+
/**
|
|
9188
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
9189
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
9190
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
|
9191
|
+
* @see https://floating-ui.com/docs/flip
|
|
9192
|
+
*/
|
|
9193
|
+
flip;
|
|
9194
|
+
|
|
9195
|
+
/**
|
|
9196
|
+
* Provides data that allows you to change the size of the floating element —
|
|
9197
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
9198
|
+
* width of the reference element.
|
|
9199
|
+
* @see https://floating-ui.com/docs/size
|
|
9200
|
+
*/
|
|
9201
|
+
size;
|
|
9202
|
+
|
|
9203
|
+
/**
|
|
9204
|
+
* Provides data to hide the floating element in applicable situations, such as
|
|
9205
|
+
* when it is not in the same clipping context as the reference element.
|
|
9206
|
+
* @see https://floating-ui.com/docs/hide
|
|
9207
|
+
*/
|
|
9208
|
+
hide;
|
|
9209
|
+
|
|
9210
|
+
/**
|
|
9211
|
+
* Provides data to position an inner element of the floating element so that it
|
|
9212
|
+
* appears centered to the reference element.
|
|
9213
|
+
* @see https://floating-ui.com/docs/arrow
|
|
9214
|
+
*/
|
|
9215
|
+
arrow;
|
|
9216
|
+
|
|
9217
|
+
/**
|
|
9218
|
+
* Provides improved positioning for inline reference elements that can span
|
|
9219
|
+
* over multiple lines, such as hyperlinks or range selections.
|
|
9220
|
+
* @see https://floating-ui.com/docs/inline
|
|
9221
|
+
*/
|
|
9222
|
+
inline;
|
|
9223
|
+
|
|
9224
|
+
/**
|
|
9225
|
+
* Built-in `limiter` that will stop `shift()` at a certain point.
|
|
9226
|
+
*/
|
|
9227
|
+
limitShift;
|
|
9228
|
+
|
|
9229
|
+
var isClient = typeof document !== 'undefined';
|
|
8103
9230
|
|
|
8104
|
-
var
|
|
9231
|
+
var index = isClient ? useLayoutEffect : useEffect;
|
|
9232
|
+
|
|
9233
|
+
var _excluded$4 = ["className", "clearValue", "cx", "getStyles", "getClassNames", "getValue", "hasValue", "isMulti", "isRtl", "options", "selectOption", "selectProps", "setValue", "theme"];
|
|
8105
9234
|
// ==============================
|
|
8106
9235
|
// NO OP
|
|
8107
9236
|
// ==============================
|
|
@@ -8178,7 +9307,7 @@ var cleanCommonProps = function cleanCommonProps(props) {
|
|
|
8178
9307
|
props.selectProps;
|
|
8179
9308
|
props.setValue;
|
|
8180
9309
|
props.theme;
|
|
8181
|
-
var innerProps = _objectWithoutProperties(props, _excluded$
|
|
9310
|
+
var innerProps = _objectWithoutProperties(props, _excluded$4);
|
|
8182
9311
|
return _objectSpread2({}, innerProps);
|
|
8183
9312
|
};
|
|
8184
9313
|
|
|
@@ -8392,6 +9521,8 @@ var removeProps = function removeProps(propsObj) {
|
|
|
8392
9521
|
}, {});
|
|
8393
9522
|
};
|
|
8394
9523
|
|
|
9524
|
+
var _excluded$3 = ["children", "innerProps"],
|
|
9525
|
+
_excluded2$1 = ["children", "innerProps"];
|
|
8395
9526
|
function getMenuPlacement(_ref) {
|
|
8396
9527
|
var preferredMaxHeight = _ref.maxHeight,
|
|
8397
9528
|
menuEl = _ref.menuEl,
|
|
@@ -8686,37 +9817,41 @@ var noticeCSS = function noticeCSS(_ref5, unstyled) {
|
|
|
8686
9817
|
};
|
|
8687
9818
|
var noOptionsMessageCSS = noticeCSS;
|
|
8688
9819
|
var loadingMessageCSS = noticeCSS;
|
|
8689
|
-
var NoOptionsMessage = function NoOptionsMessage(
|
|
8690
|
-
var children =
|
|
8691
|
-
|
|
8692
|
-
|
|
9820
|
+
var NoOptionsMessage = function NoOptionsMessage(_ref6) {
|
|
9821
|
+
var _ref6$children = _ref6.children,
|
|
9822
|
+
children = _ref6$children === void 0 ? 'No options' : _ref6$children,
|
|
9823
|
+
innerProps = _ref6.innerProps,
|
|
9824
|
+
restProps = _objectWithoutProperties(_ref6, _excluded$3);
|
|
9825
|
+
return jsx("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
9826
|
+
children: children,
|
|
9827
|
+
innerProps: innerProps
|
|
9828
|
+
}), 'noOptionsMessage', {
|
|
8693
9829
|
'menu-notice': true,
|
|
8694
9830
|
'menu-notice--no-options': true
|
|
8695
9831
|
}), innerProps), children);
|
|
8696
9832
|
};
|
|
8697
|
-
|
|
8698
|
-
children
|
|
8699
|
-
|
|
8700
|
-
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
|
|
9833
|
+
var LoadingMessage = function LoadingMessage(_ref7) {
|
|
9834
|
+
var _ref7$children = _ref7.children,
|
|
9835
|
+
children = _ref7$children === void 0 ? 'Loading...' : _ref7$children,
|
|
9836
|
+
innerProps = _ref7.innerProps,
|
|
9837
|
+
restProps = _objectWithoutProperties(_ref7, _excluded2$1);
|
|
9838
|
+
return jsx("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
9839
|
+
children: children,
|
|
9840
|
+
innerProps: innerProps
|
|
9841
|
+
}), 'loadingMessage', {
|
|
8704
9842
|
'menu-notice': true,
|
|
8705
9843
|
'menu-notice--loading': true
|
|
8706
9844
|
}), innerProps), children);
|
|
8707
9845
|
};
|
|
8708
|
-
LoadingMessage.defaultProps = {
|
|
8709
|
-
children: 'Loading...'
|
|
8710
|
-
};
|
|
8711
9846
|
|
|
8712
9847
|
// ==============================
|
|
8713
9848
|
// Menu Portal
|
|
8714
9849
|
// ==============================
|
|
8715
9850
|
|
|
8716
|
-
var menuPortalCSS = function menuPortalCSS(
|
|
8717
|
-
var rect =
|
|
8718
|
-
offset =
|
|
8719
|
-
position =
|
|
9851
|
+
var menuPortalCSS = function menuPortalCSS(_ref8) {
|
|
9852
|
+
var rect = _ref8.rect,
|
|
9853
|
+
offset = _ref8.offset,
|
|
9854
|
+
position = _ref8.position;
|
|
8720
9855
|
return {
|
|
8721
9856
|
left: rect.left,
|
|
8722
9857
|
position: position,
|
|
@@ -8796,7 +9931,7 @@ var MenuPortal = function MenuPortal(props) {
|
|
|
8796
9931
|
}), innerProps), children);
|
|
8797
9932
|
return jsx(PortalPlacementContext.Provider, {
|
|
8798
9933
|
value: portalPlacementContext
|
|
8799
|
-
}, appendTo ? /*#__PURE__*/createPortal(menuWrapper, appendTo) : menuWrapper);
|
|
9934
|
+
}, appendTo ? /*#__PURE__*/reactDom.exports.createPortal(menuWrapper, appendTo) : menuWrapper);
|
|
8800
9935
|
};
|
|
8801
9936
|
|
|
8802
9937
|
// ==============================
|
|
@@ -8879,7 +10014,8 @@ var IndicatorsContainer = function IndicatorsContainer(props) {
|
|
|
8879
10014
|
};
|
|
8880
10015
|
|
|
8881
10016
|
var _templateObject;
|
|
8882
|
-
var _excluded$2$1 = ["size"]
|
|
10017
|
+
var _excluded$2$1 = ["size"],
|
|
10018
|
+
_excluded2 = ["innerProps", "isRtl", "size"];
|
|
8883
10019
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$3() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
8884
10020
|
|
|
8885
10021
|
// ==============================
|
|
@@ -8891,7 +10027,7 @@ var _ref2$2 = process.env.NODE_ENV === "production" ? {
|
|
|
8891
10027
|
} : {
|
|
8892
10028
|
name: "tj5bde-Svg",
|
|
8893
10029
|
styles: "display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",
|
|
8894
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiB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17IWlzUnRsfSAvPlxuICAgIDwvZGl2PlxuICApO1xufTtcbkxvYWRpbmdJbmRpY2F0b3IuZGVmYXVsdFByb3BzID0geyBzaXplOiA0IH07XG4iXX0= */",
|
|
10030
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3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pdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",
|
|
8895
10031
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
|
|
8896
10032
|
};
|
|
8897
10033
|
var Svg = function Svg(_ref) {
|
|
@@ -9026,13 +10162,20 @@ var LoadingDot = function LoadingDot(_ref6) {
|
|
|
9026
10162
|
height: '1em',
|
|
9027
10163
|
verticalAlign: 'top',
|
|
9028
10164
|
width: '1em'
|
|
9029
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:LoadingDot;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnO1xuaW1wb3J0IHsganN4LCBrZX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yBzaXplOiA0IH07XG4iXX0= */")
|
|
10165
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:LoadingDot;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICA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MoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")
|
|
9030
10166
|
});
|
|
9031
10167
|
};
|
|
9032
|
-
var LoadingIndicator = function LoadingIndicator(
|
|
9033
|
-
var innerProps =
|
|
9034
|
-
isRtl =
|
|
9035
|
-
|
|
10168
|
+
var LoadingIndicator = function LoadingIndicator(_ref7) {
|
|
10169
|
+
var innerProps = _ref7.innerProps,
|
|
10170
|
+
isRtl = _ref7.isRtl,
|
|
10171
|
+
_ref7$size = _ref7.size,
|
|
10172
|
+
size = _ref7$size === void 0 ? 4 : _ref7$size,
|
|
10173
|
+
restProps = _objectWithoutProperties(_ref7, _excluded2);
|
|
10174
|
+
return jsx("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
10175
|
+
innerProps: innerProps,
|
|
10176
|
+
isRtl: isRtl,
|
|
10177
|
+
size: size
|
|
10178
|
+
}), 'loadingIndicator', {
|
|
9036
10179
|
indicator: true,
|
|
9037
10180
|
'loading-indicator': true
|
|
9038
10181
|
}), innerProps), jsx(LoadingDot, {
|
|
@@ -9046,9 +10189,6 @@ var LoadingIndicator = function LoadingIndicator(props) {
|
|
|
9046
10189
|
offset: !isRtl
|
|
9047
10190
|
}));
|
|
9048
10191
|
};
|
|
9049
|
-
LoadingIndicator.defaultProps = {
|
|
9050
|
-
size: 4
|
|
9051
|
-
};
|
|
9052
10192
|
|
|
9053
10193
|
var css$1 = function css(_ref, unstyled) {
|
|
9054
10194
|
var isDisabled = _ref.isDisabled,
|
|
@@ -9094,7 +10234,9 @@ var Control = function Control(props) {
|
|
|
9094
10234
|
'control--is-disabled': isDisabled,
|
|
9095
10235
|
'control--is-focused': isFocused,
|
|
9096
10236
|
'control--menu-is-open': menuIsOpen
|
|
9097
|
-
}), innerProps
|
|
10237
|
+
}), innerProps, {
|
|
10238
|
+
"aria-disabled": isDisabled || undefined
|
|
10239
|
+
}), children);
|
|
9098
10240
|
};
|
|
9099
10241
|
var Control$1 = Control;
|
|
9100
10242
|
|
|
@@ -9155,7 +10297,7 @@ var GroupHeading = function GroupHeading(props) {
|
|
|
9155
10297
|
};
|
|
9156
10298
|
var Group$1 = Group;
|
|
9157
10299
|
|
|
9158
|
-
var _excluded$
|
|
10300
|
+
var _excluded$5 = ["innerRef", "isDisabled", "isHidden", "inputClassName"];
|
|
9159
10301
|
var inputCSS = function inputCSS(_ref, unstyled) {
|
|
9160
10302
|
var isDisabled = _ref.isDisabled,
|
|
9161
10303
|
value = _ref.value,
|
|
@@ -9211,7 +10353,7 @@ var Input = function Input(props) {
|
|
|
9211
10353
|
isDisabled = _cleanCommonProps.isDisabled,
|
|
9212
10354
|
isHidden = _cleanCommonProps.isHidden,
|
|
9213
10355
|
inputClassName = _cleanCommonProps.inputClassName,
|
|
9214
|
-
innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$
|
|
10356
|
+
innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$5);
|
|
9215
10357
|
return jsx("div", _extends({}, getStyleProps(props, 'input', {
|
|
9216
10358
|
'input-container': true
|
|
9217
10359
|
}), {
|
|
@@ -9516,7 +10658,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
9516
10658
|
} : {
|
|
9517
10659
|
name: "1f43avz-a11yText-A11yText",
|
|
9518
10660
|
styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",
|
|
9519
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
10661
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",
|
|
9520
10662
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
|
|
9521
10663
|
};
|
|
9522
10664
|
var A11yText = function A11yText(props) {
|
|
@@ -9530,14 +10672,14 @@ var defaultAriaLiveMessages = {
|
|
|
9530
10672
|
guidance: function guidance(props) {
|
|
9531
10673
|
var isSearchable = props.isSearchable,
|
|
9532
10674
|
isMulti = props.isMulti,
|
|
9533
|
-
isDisabled = props.isDisabled,
|
|
9534
10675
|
tabSelectsValue = props.tabSelectsValue,
|
|
9535
|
-
context = props.context
|
|
10676
|
+
context = props.context,
|
|
10677
|
+
isInitialFocus = props.isInitialFocus;
|
|
9536
10678
|
switch (context) {
|
|
9537
10679
|
case 'menu':
|
|
9538
|
-
return "Use Up and Down to choose options
|
|
10680
|
+
return "Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(tabSelectsValue ? ', press Tab to select the option and exit the menu' : '', ".");
|
|
9539
10681
|
case 'input':
|
|
9540
|
-
return "".concat(props['aria-label'] || 'Select', " is focused ").concat(isSearchable ? ',type to refine list' : '', ", press Down to open the menu, ").concat(isMulti ? ' press left to focus selected values' : '');
|
|
10682
|
+
return isInitialFocus ? "".concat(props['aria-label'] || 'Select', " is focused ").concat(isSearchable ? ',type to refine list' : '', ", press Down to open the menu, ").concat(isMulti ? ' press left to focus selected values' : '') : '';
|
|
9541
10683
|
case 'value':
|
|
9542
10684
|
return 'Use left and right to toggle between focused values, press Backspace to remove the currently focused value';
|
|
9543
10685
|
default:
|
|
@@ -9573,17 +10715,18 @@ var defaultAriaLiveMessages = {
|
|
|
9573
10715
|
label = _props$label2 === void 0 ? '' : _props$label2,
|
|
9574
10716
|
selectValue = props.selectValue,
|
|
9575
10717
|
isDisabled = props.isDisabled,
|
|
9576
|
-
isSelected = props.isSelected
|
|
10718
|
+
isSelected = props.isSelected,
|
|
10719
|
+
isAppleDevice = props.isAppleDevice;
|
|
9577
10720
|
var getArrayIndex = function getArrayIndex(arr, item) {
|
|
9578
10721
|
return arr && arr.length ? "".concat(arr.indexOf(item) + 1, " of ").concat(arr.length) : '';
|
|
9579
10722
|
};
|
|
9580
10723
|
if (context === 'value' && selectValue) {
|
|
9581
10724
|
return "value ".concat(label, " focused, ").concat(getArrayIndex(selectValue, focused), ".");
|
|
9582
10725
|
}
|
|
9583
|
-
if (context === 'menu') {
|
|
10726
|
+
if (context === 'menu' && isAppleDevice) {
|
|
9584
10727
|
var disabled = isDisabled ? ' disabled' : '';
|
|
9585
|
-
var status = "".concat(isSelected ? 'selected' : '
|
|
9586
|
-
return "
|
|
10728
|
+
var status = "".concat(isSelected ? ' selected' : '').concat(disabled);
|
|
10729
|
+
return "".concat(label).concat(status, ", ").concat(getArrayIndex(options, focused), ".");
|
|
9587
10730
|
}
|
|
9588
10731
|
return '';
|
|
9589
10732
|
},
|
|
@@ -9602,7 +10745,8 @@ var LiveRegion = function LiveRegion(props) {
|
|
|
9602
10745
|
isFocused = props.isFocused,
|
|
9603
10746
|
selectValue = props.selectValue,
|
|
9604
10747
|
selectProps = props.selectProps,
|
|
9605
|
-
id = props.id
|
|
10748
|
+
id = props.id,
|
|
10749
|
+
isAppleDevice = props.isAppleDevice;
|
|
9606
10750
|
var ariaLiveMessages = selectProps.ariaLiveMessages,
|
|
9607
10751
|
getOptionLabel = selectProps.getOptionLabel,
|
|
9608
10752
|
inputValue = selectProps.inputValue,
|
|
@@ -9612,7 +10756,8 @@ var LiveRegion = function LiveRegion(props) {
|
|
|
9612
10756
|
menuIsOpen = selectProps.menuIsOpen,
|
|
9613
10757
|
options = selectProps.options,
|
|
9614
10758
|
screenReaderStatus = selectProps.screenReaderStatus,
|
|
9615
|
-
tabSelectsValue = selectProps.tabSelectsValue
|
|
10759
|
+
tabSelectsValue = selectProps.tabSelectsValue,
|
|
10760
|
+
isLoading = selectProps.isLoading;
|
|
9616
10761
|
var ariaLabel = selectProps['aria-label'];
|
|
9617
10762
|
var ariaLive = selectProps['aria-live'];
|
|
9618
10763
|
|
|
@@ -9665,15 +10810,16 @@ var LiveRegion = function LiveRegion(props) {
|
|
|
9665
10810
|
isSelected: isSelected,
|
|
9666
10811
|
options: focusableOptions,
|
|
9667
10812
|
context: focused === focusedOption ? 'menu' : 'value',
|
|
9668
|
-
selectValue: selectValue
|
|
10813
|
+
selectValue: selectValue,
|
|
10814
|
+
isAppleDevice: isAppleDevice
|
|
9669
10815
|
};
|
|
9670
10816
|
focusMsg = messages.onFocus(onFocusProps);
|
|
9671
10817
|
}
|
|
9672
10818
|
return focusMsg;
|
|
9673
|
-
}, [focusedOption, focusedValue, getOptionLabel, isOptionDisabled, messages, focusableOptions, selectValue]);
|
|
10819
|
+
}, [focusedOption, focusedValue, getOptionLabel, isOptionDisabled, messages, focusableOptions, selectValue, isAppleDevice]);
|
|
9674
10820
|
var ariaResults = useMemo(function () {
|
|
9675
10821
|
var resultsMsg = '';
|
|
9676
|
-
if (menuIsOpen && options.length && messages.onFilter) {
|
|
10822
|
+
if (menuIsOpen && options.length && !isLoading && messages.onFilter) {
|
|
9677
10823
|
var resultsMessage = screenReaderStatus({
|
|
9678
10824
|
count: focusableOptions.length
|
|
9679
10825
|
});
|
|
@@ -9683,7 +10829,8 @@ var LiveRegion = function LiveRegion(props) {
|
|
|
9683
10829
|
});
|
|
9684
10830
|
}
|
|
9685
10831
|
return resultsMsg;
|
|
9686
|
-
}, [focusableOptions, inputValue, menuIsOpen, messages, options, screenReaderStatus]);
|
|
10832
|
+
}, [focusableOptions, inputValue, menuIsOpen, messages, options, screenReaderStatus, isLoading]);
|
|
10833
|
+
var isInitialFocus = (ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === 'initial-input-focus';
|
|
9687
10834
|
var ariaGuidance = useMemo(function () {
|
|
9688
10835
|
var guidanceMsg = '';
|
|
9689
10836
|
if (messages.guidance) {
|
|
@@ -9694,24 +10841,28 @@ var LiveRegion = function LiveRegion(props) {
|
|
|
9694
10841
|
isDisabled: focusedOption && isOptionDisabled(focusedOption, selectValue),
|
|
9695
10842
|
isMulti: isMulti,
|
|
9696
10843
|
isSearchable: isSearchable,
|
|
9697
|
-
tabSelectsValue: tabSelectsValue
|
|
10844
|
+
tabSelectsValue: tabSelectsValue,
|
|
10845
|
+
isInitialFocus: isInitialFocus
|
|
9698
10846
|
});
|
|
9699
10847
|
}
|
|
9700
10848
|
return guidanceMsg;
|
|
9701
|
-
}, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue]);
|
|
9702
|
-
var ariaContext = "".concat(ariaFocused, " ").concat(ariaResults, " ").concat(ariaGuidance);
|
|
10849
|
+
}, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
|
|
9703
10850
|
var ScreenReaderText = jsx(Fragment, null, jsx("span", {
|
|
9704
10851
|
id: "aria-selection"
|
|
9705
10852
|
}, ariaSelected), jsx("span", {
|
|
9706
|
-
id: "aria-
|
|
9707
|
-
},
|
|
9708
|
-
|
|
10853
|
+
id: "aria-focused"
|
|
10854
|
+
}, ariaFocused), jsx("span", {
|
|
10855
|
+
id: "aria-results"
|
|
10856
|
+
}, ariaResults), jsx("span", {
|
|
10857
|
+
id: "aria-guidance"
|
|
10858
|
+
}, ariaGuidance));
|
|
9709
10859
|
return jsx(Fragment, null, jsx(A11yText$1, {
|
|
9710
10860
|
id: id
|
|
9711
10861
|
}, isInitialFocus && ScreenReaderText), jsx(A11yText$1, {
|
|
9712
10862
|
"aria-live": ariaLive,
|
|
9713
10863
|
"aria-atomic": "false",
|
|
9714
|
-
"aria-relevant": "additions text"
|
|
10864
|
+
"aria-relevant": "additions text",
|
|
10865
|
+
role: "log"
|
|
9715
10866
|
}, isFocused && !isInitialFocus && ScreenReaderText));
|
|
9716
10867
|
};
|
|
9717
10868
|
var LiveRegion$1 = LiveRegion;
|
|
@@ -10051,12 +11202,12 @@ function DummyInput(_ref) {
|
|
|
10051
11202
|
opacity: 0,
|
|
10052
11203
|
position: 'relative',
|
|
10053
11204
|
transform: 'scale(.01)'
|
|
10054
|
-
}, process.env.NODE_ENV === "production" ? "" : ";label:DummyInput;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
11205
|
+
}, process.env.NODE_ENV === "production" ? "" : ";label:DummyInput;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICd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
11208
|
|
|
10058
11209
|
var cancelScroll = function cancelScroll(event) {
|
|
10059
|
-
event.preventDefault();
|
|
11210
|
+
if (event.cancelable) event.preventDefault();
|
|
10060
11211
|
event.stopPropagation();
|
|
10061
11212
|
};
|
|
10062
11213
|
function useScrollCapture(_ref) {
|
|
@@ -10164,7 +11315,7 @@ var LOCK_STYLES = {
|
|
|
10164
11315
|
height: '100%'
|
|
10165
11316
|
};
|
|
10166
11317
|
function preventTouchMove(e) {
|
|
10167
|
-
e.preventDefault();
|
|
11318
|
+
if (e.cancelable) e.preventDefault();
|
|
10168
11319
|
}
|
|
10169
11320
|
function allowTouchMove(e) {
|
|
10170
11321
|
e.stopPropagation();
|
|
@@ -10281,8 +11432,9 @@ function useScrollLock(_ref) {
|
|
|
10281
11432
|
}
|
|
10282
11433
|
|
|
10283
11434
|
function _EMOTION_STRINGIFIED_CSS_ERROR__$1() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
10284
|
-
var blurSelectInput = function blurSelectInput() {
|
|
10285
|
-
|
|
11435
|
+
var blurSelectInput = function blurSelectInput(event) {
|
|
11436
|
+
var element = event.target;
|
|
11437
|
+
return element.ownerDocument.activeElement && element.ownerDocument.activeElement.blur();
|
|
10286
11438
|
};
|
|
10287
11439
|
var _ref2$1 = process.env.NODE_ENV === "production" ? {
|
|
10288
11440
|
name: "1kfdb0e",
|
|
@@ -10290,7 +11442,7 @@ var _ref2$1 = process.env.NODE_ENV === "production" ? {
|
|
|
10290
11442
|
} : {
|
|
10291
11443
|
name: "bp8cua-ScrollManager",
|
|
10292
11444
|
styles: "position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",
|
|
10293
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
11445
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpb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xuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",
|
|
10294
11446
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1
|
|
10295
11447
|
};
|
|
10296
11448
|
function ScrollManager(_ref) {
|
|
@@ -10350,6 +11502,30 @@ var RequiredInput = function RequiredInput(_ref) {
|
|
|
10350
11502
|
};
|
|
10351
11503
|
var RequiredInput$1 = RequiredInput;
|
|
10352
11504
|
|
|
11505
|
+
/// <reference types="user-agent-data-types" />
|
|
11506
|
+
|
|
11507
|
+
function testPlatform(re) {
|
|
11508
|
+
var _window$navigator$use;
|
|
11509
|
+
return typeof window !== 'undefined' && window.navigator != null ? re.test(((_window$navigator$use = window.navigator['userAgentData']) === null || _window$navigator$use === void 0 ? void 0 : _window$navigator$use.platform) || window.navigator.platform) : false;
|
|
11510
|
+
}
|
|
11511
|
+
function isIPhone() {
|
|
11512
|
+
return testPlatform(/^iPhone/i);
|
|
11513
|
+
}
|
|
11514
|
+
function isMac() {
|
|
11515
|
+
return testPlatform(/^Mac/i);
|
|
11516
|
+
}
|
|
11517
|
+
function isIPad() {
|
|
11518
|
+
return testPlatform(/^iPad/i) ||
|
|
11519
|
+
// iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
11520
|
+
isMac() && navigator.maxTouchPoints > 1;
|
|
11521
|
+
}
|
|
11522
|
+
function isIOS() {
|
|
11523
|
+
return isIPhone() || isIPad();
|
|
11524
|
+
}
|
|
11525
|
+
function isAppleDevice() {
|
|
11526
|
+
return isMac() || isIOS();
|
|
11527
|
+
}
|
|
11528
|
+
|
|
10353
11529
|
var formatGroupLabel = function formatGroupLabel(group) {
|
|
10354
11530
|
return group.label;
|
|
10355
11531
|
};
|
|
@@ -10519,6 +11695,24 @@ function buildFocusableOptionsFromCategorizedOptions(categorizedOptions) {
|
|
|
10519
11695
|
return optionsAccumulator;
|
|
10520
11696
|
}, []);
|
|
10521
11697
|
}
|
|
11698
|
+
function buildFocusableOptionsWithIds(categorizedOptions, optionId) {
|
|
11699
|
+
return categorizedOptions.reduce(function (optionsAccumulator, categorizedOption) {
|
|
11700
|
+
if (categorizedOption.type === 'group') {
|
|
11701
|
+
optionsAccumulator.push.apply(optionsAccumulator, _toConsumableArray(categorizedOption.options.map(function (option) {
|
|
11702
|
+
return {
|
|
11703
|
+
data: option.data,
|
|
11704
|
+
id: "".concat(optionId, "-").concat(categorizedOption.index, "-").concat(option.index)
|
|
11705
|
+
};
|
|
11706
|
+
})));
|
|
11707
|
+
} else {
|
|
11708
|
+
optionsAccumulator.push({
|
|
11709
|
+
data: categorizedOption.data,
|
|
11710
|
+
id: "".concat(optionId, "-").concat(categorizedOption.index)
|
|
11711
|
+
});
|
|
11712
|
+
}
|
|
11713
|
+
return optionsAccumulator;
|
|
11714
|
+
}, []);
|
|
11715
|
+
}
|
|
10522
11716
|
function buildFocusableOptions(props, selectValue) {
|
|
10523
11717
|
return buildFocusableOptionsFromCategorizedOptions(buildCategorizedOptions(props, selectValue));
|
|
10524
11718
|
}
|
|
@@ -10556,6 +11750,13 @@ function getNextFocusedOption(state, options) {
|
|
|
10556
11750
|
var lastFocusedOption = state.focusedOption;
|
|
10557
11751
|
return lastFocusedOption && options.indexOf(lastFocusedOption) > -1 ? lastFocusedOption : options[0];
|
|
10558
11752
|
}
|
|
11753
|
+
var getFocusedOptionId = function getFocusedOptionId(focusableOptionsWithIds, focusedOption) {
|
|
11754
|
+
var _focusableOptionsWith;
|
|
11755
|
+
var focusedOptionId = (_focusableOptionsWith = focusableOptionsWithIds.find(function (option) {
|
|
11756
|
+
return option.data === focusedOption;
|
|
11757
|
+
})) === null || _focusableOptionsWith === void 0 ? void 0 : _focusableOptionsWith.id;
|
|
11758
|
+
return focusedOptionId || null;
|
|
11759
|
+
};
|
|
10559
11760
|
var getOptionLabel = function getOptionLabel(props, data) {
|
|
10560
11761
|
return props.getOptionLabel(data);
|
|
10561
11762
|
};
|
|
@@ -10606,6 +11807,8 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
10606
11807
|
_this.state = {
|
|
10607
11808
|
ariaSelection: null,
|
|
10608
11809
|
focusedOption: null,
|
|
11810
|
+
focusedOptionId: null,
|
|
11811
|
+
focusableOptionsWithIds: [],
|
|
10609
11812
|
focusedValue: null,
|
|
10610
11813
|
inputIsHidden: false,
|
|
10611
11814
|
isFocused: false,
|
|
@@ -10613,17 +11816,18 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
10613
11816
|
clearFocusValueOnUpdate: false,
|
|
10614
11817
|
prevWasFocused: false,
|
|
10615
11818
|
inputIsHiddenAfterUpdate: undefined,
|
|
10616
|
-
prevProps: undefined
|
|
11819
|
+
prevProps: undefined,
|
|
11820
|
+
instancePrefix: ''
|
|
10617
11821
|
};
|
|
10618
11822
|
_this.blockOptionHover = false;
|
|
10619
11823
|
_this.isComposing = false;
|
|
10620
11824
|
_this.commonProps = void 0;
|
|
10621
11825
|
_this.initialTouchX = 0;
|
|
10622
11826
|
_this.initialTouchY = 0;
|
|
10623
|
-
_this.instancePrefix = '';
|
|
10624
11827
|
_this.openAfterFocus = false;
|
|
10625
11828
|
_this.scrollToFocusedOptionOnUpdate = false;
|
|
10626
11829
|
_this.userIsDragging = void 0;
|
|
11830
|
+
_this.isAppleDevice = isAppleDevice();
|
|
10627
11831
|
_this.controlRef = null;
|
|
10628
11832
|
_this.getControlRef = function (ref) {
|
|
10629
11833
|
_this.controlRef = ref;
|
|
@@ -10733,10 +11937,18 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
10733
11937
|
var lastSelectedValue = selectValue[selectValue.length - 1];
|
|
10734
11938
|
var newValueArray = selectValue.slice(0, selectValue.length - 1);
|
|
10735
11939
|
var newValue = valueTernary(isMulti, newValueArray, newValueArray[0] || null);
|
|
10736
|
-
|
|
10737
|
-
|
|
10738
|
-
|
|
10739
|
-
|
|
11940
|
+
if (lastSelectedValue) {
|
|
11941
|
+
_this.onChange(newValue, {
|
|
11942
|
+
action: 'pop-value',
|
|
11943
|
+
removedValue: lastSelectedValue
|
|
11944
|
+
});
|
|
11945
|
+
}
|
|
11946
|
+
};
|
|
11947
|
+
_this.getFocusedOptionId = function (focusedOption) {
|
|
11948
|
+
return getFocusedOptionId(_this.state.focusableOptionsWithIds, focusedOption);
|
|
11949
|
+
};
|
|
11950
|
+
_this.getFocusableOptionsWithIds = function () {
|
|
11951
|
+
return buildFocusableOptionsWithIds(buildCategorizedOptions(_this.props, _this.state.selectValue), _this.getElementId('option'));
|
|
10740
11952
|
};
|
|
10741
11953
|
_this.getValue = function () {
|
|
10742
11954
|
return _this.state.selectValue;
|
|
@@ -10765,7 +11977,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
10765
11977
|
return (_this$props$className = (_this$props$className2 = _this.props.classNames)[key]) === null || _this$props$className === void 0 ? void 0 : _this$props$className.call(_this$props$className2, props);
|
|
10766
11978
|
};
|
|
10767
11979
|
_this.getElementId = function (element) {
|
|
10768
|
-
return "".concat(_this.instancePrefix, "-").concat(element);
|
|
11980
|
+
return "".concat(_this.state.instancePrefix, "-").concat(element);
|
|
10769
11981
|
};
|
|
10770
11982
|
_this.getComponents = function () {
|
|
10771
11983
|
return defaultComponents(_this.props);
|
|
@@ -10974,8 +12186,11 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
10974
12186
|
if (_this.blockOptionHover || _this.state.focusedOption === focusedOption) {
|
|
10975
12187
|
return;
|
|
10976
12188
|
}
|
|
12189
|
+
var options = _this.getFocusableOptions();
|
|
12190
|
+
var focusedOptionIndex = options.indexOf(focusedOption);
|
|
10977
12191
|
_this.setState({
|
|
10978
|
-
focusedOption: focusedOption
|
|
12192
|
+
focusedOption: focusedOption,
|
|
12193
|
+
focusedOptionId: focusedOptionIndex > -1 ? _this.getFocusedOptionId(focusedOption) : null
|
|
10979
12194
|
});
|
|
10980
12195
|
};
|
|
10981
12196
|
_this.shouldHideSelectedOptions = function () {
|
|
@@ -11119,14 +12334,16 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
11119
12334
|
}
|
|
11120
12335
|
event.preventDefault();
|
|
11121
12336
|
};
|
|
11122
|
-
_this.instancePrefix = 'react-select-' + (_this.props.instanceId || ++instanceId);
|
|
12337
|
+
_this.state.instancePrefix = 'react-select-' + (_this.props.instanceId || ++instanceId);
|
|
11123
12338
|
_this.state.selectValue = cleanValue(_props.value);
|
|
11124
|
-
|
|
11125
12339
|
// Set focusedOption if menuIsOpen is set on init (e.g. defaultMenuIsOpen)
|
|
11126
12340
|
if (_props.menuIsOpen && _this.state.selectValue.length) {
|
|
12341
|
+
var focusableOptionsWithIds = _this.getFocusableOptionsWithIds();
|
|
11127
12342
|
var focusableOptions = _this.buildFocusableOptions();
|
|
11128
12343
|
var optionIndex = focusableOptions.indexOf(_this.state.selectValue[0]);
|
|
12344
|
+
_this.state.focusableOptionsWithIds = focusableOptionsWithIds;
|
|
11129
12345
|
_this.state.focusedOption = focusableOptions[optionIndex];
|
|
12346
|
+
_this.state.focusedOptionId = getFocusedOptionId(focusableOptionsWithIds, focusableOptions[optionIndex]);
|
|
11130
12347
|
}
|
|
11131
12348
|
return _this;
|
|
11132
12349
|
}
|
|
@@ -11251,7 +12468,8 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
11251
12468
|
this.setState({
|
|
11252
12469
|
inputIsHiddenAfterUpdate: false,
|
|
11253
12470
|
focusedValue: null,
|
|
11254
|
-
focusedOption: focusableOptions[openAtIndex]
|
|
12471
|
+
focusedOption: focusableOptions[openAtIndex],
|
|
12472
|
+
focusedOptionId: this.getFocusedOptionId(focusableOptions[openAtIndex])
|
|
11255
12473
|
}, function () {
|
|
11256
12474
|
return _this2.onMenuOpen();
|
|
11257
12475
|
});
|
|
@@ -11327,7 +12545,8 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
11327
12545
|
this.scrollToFocusedOptionOnUpdate = true;
|
|
11328
12546
|
this.setState({
|
|
11329
12547
|
focusedOption: options[nextFocus],
|
|
11330
|
-
focusedValue: null
|
|
12548
|
+
focusedValue: null,
|
|
12549
|
+
focusedOptionId: this.getFocusedOptionId(options[nextFocus])
|
|
11331
12550
|
});
|
|
11332
12551
|
}
|
|
11333
12552
|
}, {
|
|
@@ -11523,10 +12742,10 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
11523
12742
|
'aria-label': this.props['aria-label'],
|
|
11524
12743
|
'aria-labelledby': this.props['aria-labelledby'],
|
|
11525
12744
|
'aria-required': required,
|
|
11526
|
-
role: 'combobox'
|
|
12745
|
+
role: 'combobox',
|
|
12746
|
+
'aria-activedescendant': this.isAppleDevice ? undefined : this.state.focusedOptionId || ''
|
|
11527
12747
|
}, menuIsOpen && {
|
|
11528
|
-
'aria-controls': this.getElementId('listbox')
|
|
11529
|
-
'aria-owns': this.getElementId('listbox')
|
|
12748
|
+
'aria-controls': this.getElementId('listbox')
|
|
11530
12749
|
}), !isSearchable && {
|
|
11531
12750
|
'aria-readonly': true
|
|
11532
12751
|
}), this.hasValue() ? (ariaSelection === null || ariaSelection === void 0 ? void 0 : ariaSelection.action) === 'initial-input-focus' && {
|
|
@@ -11771,8 +12990,11 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
11771
12990
|
onClick: onSelect,
|
|
11772
12991
|
onMouseMove: onHover,
|
|
11773
12992
|
onMouseOver: onHover,
|
|
11774
|
-
tabIndex: -1
|
|
12993
|
+
tabIndex: -1,
|
|
12994
|
+
role: 'option',
|
|
12995
|
+
'aria-selected': _this4.isAppleDevice ? undefined : isSelected // is not supported on Apple devices
|
|
11775
12996
|
};
|
|
12997
|
+
|
|
11776
12998
|
return /*#__PURE__*/React.createElement(Option, _extends({}, commonProps, {
|
|
11777
12999
|
innerProps: innerProps,
|
|
11778
13000
|
data: data,
|
|
@@ -11841,8 +13063,7 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
11841
13063
|
innerRef: ref,
|
|
11842
13064
|
innerProps: {
|
|
11843
13065
|
onMouseDown: _this4.onMenuMouseDown,
|
|
11844
|
-
onMouseMove: _this4.onMenuMouseMove
|
|
11845
|
-
id: _this4.getElementId('listbox')
|
|
13066
|
+
onMouseMove: _this4.onMenuMouseMove
|
|
11846
13067
|
},
|
|
11847
13068
|
isLoading: isLoading,
|
|
11848
13069
|
placement: placement
|
|
@@ -11857,6 +13078,11 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
11857
13078
|
_this4.getMenuListRef(instance);
|
|
11858
13079
|
scrollTargetRef(instance);
|
|
11859
13080
|
},
|
|
13081
|
+
innerProps: {
|
|
13082
|
+
role: 'listbox',
|
|
13083
|
+
'aria-multiselectable': commonProps.isMulti,
|
|
13084
|
+
id: _this4.getElementId('listbox')
|
|
13085
|
+
},
|
|
11860
13086
|
isLoading: isLoading,
|
|
11861
13087
|
maxHeight: maxHeight,
|
|
11862
13088
|
focusedOption: focusedOption
|
|
@@ -11944,7 +13170,8 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
11944
13170
|
focusedValue: focusedValue,
|
|
11945
13171
|
isFocused: isFocused,
|
|
11946
13172
|
selectValue: selectValue,
|
|
11947
|
-
focusableOptions: focusableOptions
|
|
13173
|
+
focusableOptions: focusableOptions,
|
|
13174
|
+
isAppleDevice: this.isAppleDevice
|
|
11948
13175
|
}));
|
|
11949
13176
|
}
|
|
11950
13177
|
}, {
|
|
@@ -11993,7 +13220,8 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
11993
13220
|
inputIsHiddenAfterUpdate = state.inputIsHiddenAfterUpdate,
|
|
11994
13221
|
ariaSelection = state.ariaSelection,
|
|
11995
13222
|
isFocused = state.isFocused,
|
|
11996
|
-
prevWasFocused = state.prevWasFocused
|
|
13223
|
+
prevWasFocused = state.prevWasFocused,
|
|
13224
|
+
instancePrefix = state.instancePrefix;
|
|
11997
13225
|
var options = props.options,
|
|
11998
13226
|
value = props.value,
|
|
11999
13227
|
menuIsOpen = props.menuIsOpen,
|
|
@@ -12003,11 +13231,15 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
12003
13231
|
var newMenuOptionsState = {};
|
|
12004
13232
|
if (prevProps && (value !== prevProps.value || options !== prevProps.options || menuIsOpen !== prevProps.menuIsOpen || inputValue !== prevProps.inputValue)) {
|
|
12005
13233
|
var focusableOptions = menuIsOpen ? buildFocusableOptions(props, selectValue) : [];
|
|
13234
|
+
var focusableOptionsWithIds = menuIsOpen ? buildFocusableOptionsWithIds(buildCategorizedOptions(props, selectValue), "".concat(instancePrefix, "-option")) : [];
|
|
12006
13235
|
var focusedValue = clearFocusValueOnUpdate ? getNextFocusedValue(state, selectValue) : null;
|
|
12007
13236
|
var focusedOption = getNextFocusedOption(state, focusableOptions);
|
|
13237
|
+
var focusedOptionId = getFocusedOptionId(focusableOptionsWithIds, focusedOption);
|
|
12008
13238
|
newMenuOptionsState = {
|
|
12009
13239
|
selectValue: selectValue,
|
|
12010
13240
|
focusedOption: focusedOption,
|
|
13241
|
+
focusedOptionId: focusedOptionId,
|
|
13242
|
+
focusableOptionsWithIds: focusableOptionsWithIds,
|
|
12011
13243
|
focusedValue: focusedValue,
|
|
12012
13244
|
clearFocusValueOnUpdate: false
|
|
12013
13245
|
};
|
|
@@ -13824,6 +15056,13 @@ const HOUR_IN_MS = 3600000;
|
|
|
13824
15056
|
*/
|
|
13825
15057
|
const DAY_IN_MS = 86400000;
|
|
13826
15058
|
|
|
15059
|
+
/**
|
|
15060
|
+
* Route for checking the status of the current user's
|
|
15061
|
+
* access to log review
|
|
15062
|
+
* @author Gabe Abrams
|
|
15063
|
+
*/
|
|
15064
|
+
const LOG_REVIEW_STATUS_ROUTE = `${ROUTE_PATH_PREFIX}/logs/access_allowed`;
|
|
15065
|
+
|
|
13827
15066
|
// True if user is on mobile or tablet
|
|
13828
15067
|
let cachedResult = undefined;
|
|
13829
15068
|
/**
|
|
@@ -14161,13 +15400,6 @@ const parallelLimit = (taskFunctions, limit) => __awaiter(void 0, void 0, void 0
|
|
|
14161
15400
|
return results;
|
|
14162
15401
|
});
|
|
14163
15402
|
|
|
14164
|
-
/**
|
|
14165
|
-
* Route for checking the status of the current user's
|
|
14166
|
-
* access to log review
|
|
14167
|
-
* @author Gabe Abrams
|
|
14168
|
-
*/
|
|
14169
|
-
const LOG_REVIEW_STATUS_ROUTE = `${ROUTE_PATH_PREFIX}/logs/access_allowed`;
|
|
14170
|
-
|
|
14171
15403
|
/*------------------------------------------------------------------------*/
|
|
14172
15404
|
/* -------------------------------- Cache ------------------------------- */
|
|
14173
15405
|
/*------------------------------------------------------------------------*/
|
|
@@ -14865,5 +16097,5 @@ var DayOfWeek;
|
|
|
14865
16097
|
})(DayOfWeek || (DayOfWeek = {}));
|
|
14866
16098
|
var DayOfWeek$1 = DayOfWeek;
|
|
14867
16099
|
|
|
14868
|
-
export { AppWrapper, AutoscrollToBottomContainer, ButtonInputGroup, CSVDownloadButton, CheckboxButton, CopiableBox, DAY_IN_MS, DBEntryFieldType$1 as DBEntryFieldType, DBEntryManagerPanel, DayOfWeek$1 as DayOfWeek, Drawer, Dropdown, DropdownItemType$1 as DropdownItemType, DynamicWord, ErrorBox, ErrorWithCode, HOUR_IN_MS, IntelliTable, ItemPicker, LoadingSpinner, LogAction$1 as LogAction, LogBuiltInMetadata, LogLevel$1 as LogLevel, LogReviewer, LogSource$1 as LogSource, LogType$1 as LogType, MINUTE_IN_MS, Modal, ModalButtonType$1 as ModalButtonType, ModalSize$1 as ModalSize, ModalType$1 as ModalType, MultiSwitch, ParamType$1 as ParamType, PopFailureMark, PopPendingMark, PopSuccessMark, RadioButton, ReactKitErrorCode$1 as ReactKitErrorCode, SimpleDateChooser, TabBox, ToggleSwitch, Tooltip, Variant$1 as Variant, abbreviate, addFatalErrorHandler, alert, avg, canReviewLogs, capitalize, ceilToNumDecimals, combineClassNames, compareArraysByProp, confirm, everyAsync, extractProp, filterAsync, floorToNumDecimals, forEachAsync, forceNumIntoBounds, genCSV, genCommaList, getHumanReadableDate, getLocalTimeInfo, getMonthName, getOrdinal, getPartOfDay, getTimeInfoInET, idify, initClient, isMobileOrTablet, leaveToURL, logClientEvent, makeLinksClickable, mapAsync, onlyKeepLetters, padDecimalZeros, padZerosLeft, parallelLimit, prefixWithAOrAn, prompt, roundToNumDecimals, setClientEventMetadataPopulator, showFatalError, shuffleArray, someAsync, startMinWait, stringsToHumanReadableList, stubServerEndpoint, sum, useForceRender, validateEmail, validatePhoneNumber, validateString, visitServerEndpoint, waitMs };
|
|
16100
|
+
export { AppWrapper, AutoscrollToBottomContainer, ButtonInputGroup, CSVDownloadButton, CheckboxButton, CopiableBox, DAY_IN_MS, DBEntryFieldType$1 as DBEntryFieldType, DBEntryManagerPanel, DayOfWeek$1 as DayOfWeek, Drawer, Dropdown, DropdownItemType$1 as DropdownItemType, DynamicWord, ErrorBox, ErrorWithCode, HOUR_IN_MS, IntelliTable, ItemPicker, LOG_REVIEW_ROUTE_PATH_PREFIX, LOG_REVIEW_STATUS_ROUTE, LOG_ROUTE_PATH, LoadingSpinner, LogAction$1 as LogAction, LogBuiltInMetadata, LogLevel$1 as LogLevel, LogReviewer, LogSource$1 as LogSource, LogType$1 as LogType, MINUTE_IN_MS, Modal, ModalButtonType$1 as ModalButtonType, ModalSize$1 as ModalSize, ModalType$1 as ModalType, MultiSwitch, ParamType$1 as ParamType, PopFailureMark, PopPendingMark, PopSuccessMark, RadioButton, ReactKitErrorCode$1 as ReactKitErrorCode, SimpleDateChooser, TabBox, ToggleSwitch, Tooltip, Variant$1 as Variant, abbreviate, addFatalErrorHandler, alert, avg, canReviewLogs, capitalize, ceilToNumDecimals, combineClassNames, compareArraysByProp, confirm, everyAsync, extractProp, filterAsync, floorToNumDecimals, forEachAsync, forceNumIntoBounds, genCSV, genCommaList, getHumanReadableDate, getLocalTimeInfo, getMonthName, getOrdinal, getPartOfDay, getTimeInfoInET, idify, initClient, isMobileOrTablet, leaveToURL, logClientEvent, makeLinksClickable, mapAsync, onlyKeepLetters, padDecimalZeros, padZerosLeft, parallelLimit, prefixWithAOrAn, prompt, roundToNumDecimals, setClientEventMetadataPopulator, showFatalError, shuffleArray, someAsync, startMinWait, stringsToHumanReadableList, stubServerEndpoint, sum, useForceRender, validateEmail, validatePhoneNumber, validateString, visitServerEndpoint, waitMs };
|
|
14869
16101
|
//# sourceMappingURL=index.js.map
|