@kaizen/components 1.8.3 → 1.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { _ as __assign, a as __rest, b as __spreadArray, c as __spreadArrays, d as classNames, e as classnamesExports } from './index-5498ce7a.js';
1
+ import { _ as __assign$1, a as __rest$1, g as getDefaultExportFromCjs, b as __spreadArray, c as __spreadArrays, d as classnames, e as getAugmentedNamespace, f as commonjsGlobal, h as classnamesExports } from './index-ba1bd11d.js';
2
2
  import * as React from 'react';
3
- import React__default, { useState, useEffect, PureComponent, useRef, forwardRef, useMemo, useCallback, useContext, useLayoutEffect, createContext } from 'react';
3
+ import React__default, { useState, useEffect, PureComponent, useRef, forwardRef, useMemo, useCallback, useContext, createContext } from 'react';
4
4
  import { makeCssVariableDefinitionsMap } from '@kaizen/design-tokens';
5
5
 
6
6
  var zeroRightClassName = 'right-scroll-bar-position';
@@ -166,12 +166,12 @@ function createMedium(defaults, middleware) {
166
166
  function createSidecarMedium(options) {
167
167
  if (options === void 0) { options = {}; }
168
168
  var medium = innerCreateMedium(null);
169
- medium.options = __assign({ async: true, ssr: false }, options);
169
+ medium.options = __assign$1({ async: true, ssr: false }, options);
170
170
  return medium;
171
171
  }
172
172
 
173
173
  var SideCar$1 = function (_a) {
174
- var sideCar = _a.sideCar, rest = __rest(_a, ["sideCar"]);
174
+ var sideCar = _a.sideCar, rest = __rest$1(_a, ["sideCar"]);
175
175
  if (!sideCar) {
176
176
  throw new Error('Sidecar: please provide `sideCar` property to import the right car');
177
177
  }
@@ -179,7 +179,7 @@ var SideCar$1 = function (_a) {
179
179
  if (!Target) {
180
180
  throw new Error('Sidecar medium not found');
181
181
  }
182
- return React.createElement(Target, __assign({}, rest));
182
+ return React.createElement(Target, __assign$1({}, rest));
183
183
  };
184
184
  SideCar$1.isSideCarExport = true;
185
185
  function exportSidecar(medium, exported) {
@@ -202,13 +202,13 @@ var RemoveScroll = React.forwardRef(function (props, parentRef) {
202
202
  onWheelCapture: nothing,
203
203
  onTouchMoveCapture: nothing,
204
204
  }), callbacks = _a[0], setCallbacks = _a[1];
205
- var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, rest = __rest(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as"]);
205
+ var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, gapMode = props.gapMode, rest = __rest$1(props, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]);
206
206
  var SideCar = sideCar;
207
207
  var containerRef = useMergeRefs([ref, parentRef]);
208
- var containerProps = __assign(__assign({}, rest), callbacks);
208
+ var containerProps = __assign$1(__assign$1({}, rest), callbacks);
209
209
  return (React.createElement(React.Fragment, null,
210
- enabled && (React.createElement(SideCar, { sideCar: effectCar$1, removeScrollBar: removeScrollBar, shards: shards, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref })),
211
- forwardProps ? (React.cloneElement(React.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef }))) : (React.createElement(Container, __assign({}, containerProps, { className: className, ref: containerRef }), children))));
210
+ enabled && (React.createElement(SideCar, { sideCar: effectCar$1, removeScrollBar: removeScrollBar, shards: shards, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode: gapMode })),
211
+ forwardProps ? (React.cloneElement(React.Children.only(children), __assign$1(__assign$1({}, containerProps), { ref: containerRef }))) : (React.createElement(Container, __assign$1({}, containerProps, { className: className, ref: containerRef }), children))));
212
212
  });
213
213
  RemoveScroll.defaultProps = {
214
214
  enabled: true,
@@ -235,47 +235,9 @@ function _extends() {
235
235
  return _extends.apply(this, arguments);
236
236
  }
237
237
 
238
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
238
+ var propTypes = {exports: {}};
239
239
 
240
- function getAugmentedNamespace(n) {
241
- if (n.__esModule) return n;
242
- var f = n.default;
243
- if (typeof f == "function") {
244
- var a = function a () {
245
- if (this instanceof a) {
246
- var args = [null];
247
- args.push.apply(args, arguments);
248
- var Ctor = Function.bind.apply(f, args);
249
- return new Ctor();
250
- }
251
- return f.apply(this, arguments);
252
- };
253
- a.prototype = f.prototype;
254
- } else a = {};
255
- Object.defineProperty(a, '__esModule', {value: true});
256
- Object.keys(n).forEach(function (k) {
257
- var d = Object.getOwnPropertyDescriptor(n, k);
258
- Object.defineProperty(a, k, d.get ? d : {
259
- enumerable: true,
260
- get: function () {
261
- return n[k];
262
- }
263
- });
264
- });
265
- return a;
266
- }
267
-
268
- var propTypesExports = {};
269
- var propTypes = {
270
- get exports(){ return propTypesExports; },
271
- set exports(v){ propTypesExports = v; },
272
- };
273
-
274
- var reactIsExports = {};
275
- var reactIs = {
276
- get exports(){ return reactIsExports; },
277
- set exports(v){ reactIsExports = v; },
278
- };
240
+ var reactIs = {exports: {}};
279
241
 
280
242
  var reactIs_production_min = {};
281
243
 
@@ -494,17 +456,15 @@ function requireReactIs_development () {
494
456
  var hasRequiredReactIs;
495
457
 
496
458
  function requireReactIs () {
497
- if (hasRequiredReactIs) return reactIsExports;
459
+ if (hasRequiredReactIs) return reactIs.exports;
498
460
  hasRequiredReactIs = 1;
499
- (function (module) {
500
461
 
501
- if (process.env.NODE_ENV === 'production') {
502
- module.exports = requireReactIs_production_min();
503
- } else {
504
- module.exports = requireReactIs_development();
505
- }
506
- } (reactIs));
507
- return reactIsExports;
462
+ if (process.env.NODE_ENV === 'production') {
463
+ reactIs.exports = requireReactIs_production_min();
464
+ } else {
465
+ reactIs.exports = requireReactIs_development();
466
+ }
467
+ return reactIs.exports;
508
468
  }
509
469
 
510
470
  /*
@@ -1455,6 +1415,9 @@ if (process.env.NODE_ENV !== 'production') {
1455
1415
  propTypes.exports = requireFactoryWithThrowingShims()();
1456
1416
  }
1457
1417
 
1418
+ var propTypesExports = propTypes.exports;
1419
+ var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
1420
+
1458
1421
  /**
1459
1422
  * defines a focus group
1460
1423
  */
@@ -1489,7 +1452,7 @@ var hiddenGuard = {
1489
1452
  };
1490
1453
 
1491
1454
  process.env.NODE_ENV !== "production" ? {
1492
- children: propTypesExports.node
1455
+ children: PropTypes.node
1493
1456
  } : {};
1494
1457
 
1495
1458
  var mediumFocus = createMedium({}, function (_ref) {
@@ -1724,33 +1687,33 @@ function deferAction(action) {
1724
1687
  }
1725
1688
 
1726
1689
  process.env.NODE_ENV !== "production" ? {
1727
- children: propTypesExports.node.isRequired,
1728
- disabled: propTypesExports.bool,
1729
- className: propTypesExports.string
1690
+ children: PropTypes.node.isRequired,
1691
+ disabled: PropTypes.bool,
1692
+ className: PropTypes.string
1730
1693
  } : {};
1731
1694
 
1732
1695
  process.env.NODE_ENV !== "production" ? {
1733
- children: propTypesExports.node.isRequired,
1734
- disabled: propTypesExports.bool,
1735
- className: propTypesExports.string
1696
+ children: PropTypes.node.isRequired,
1697
+ disabled: PropTypes.bool,
1698
+ className: PropTypes.string
1736
1699
  } : {};
1737
1700
 
1738
1701
  process.env.NODE_ENV !== "production" ? {
1739
- children: propTypesExports.node.isRequired,
1740
- className: propTypesExports.string
1702
+ children: PropTypes.node.isRequired,
1703
+ className: PropTypes.string
1741
1704
  } : {};
1742
1705
 
1743
1706
  var effectCar = createSidecarMedium();
1744
1707
  var focusHiddenMarker = 'data-focus-on-hidden';
1745
1708
 
1746
- __assign({}, RemoveScroll.classNames);
1709
+ __assign$1({}, RemoveScroll.classNames);
1747
1710
 
1748
1711
  var FocusOn$1 = React.forwardRef(function (props, parentRef) {
1749
1712
  var _a = React.useState(false), lockProps = _a[0], setLockProps = _a[1];
1750
- var children = props.children, autoFocus = props.autoFocus, shards = props.shards, _b = props.enabled, enabled = _b === void 0 ? true : _b, _c = props.scrollLock, scrollLock = _c === void 0 ? true : _c, _d = props.focusLock, focusLock = _d === void 0 ? true : _d, _e = props.returnFocus, returnFocus = _e === void 0 ? true : _e, inert = props.inert, allowPinchZoom = props.allowPinchZoom, sideCar = props.sideCar, className = props.className, shouldIgnore = props.shouldIgnore, preventScrollOnFocus = props.preventScrollOnFocus, style = props.style, as = props.as, gapMode = props.gapMode, rest = __rest(props, ["children", "autoFocus", "shards", "enabled", "scrollLock", "focusLock", "returnFocus", "inert", "allowPinchZoom", "sideCar", "className", "shouldIgnore", "preventScrollOnFocus", "style", "as", "gapMode"]);
1713
+ var children = props.children, autoFocus = props.autoFocus, shards = props.shards, _b = props.enabled, enabled = _b === void 0 ? true : _b, _c = props.scrollLock, scrollLock = _c === void 0 ? true : _c, _d = props.focusLock, focusLock = _d === void 0 ? true : _d, _e = props.returnFocus, returnFocus = _e === void 0 ? true : _e, inert = props.inert, allowPinchZoom = props.allowPinchZoom, sideCar = props.sideCar, className = props.className, shouldIgnore = props.shouldIgnore, preventScrollOnFocus = props.preventScrollOnFocus, style = props.style, as = props.as, gapMode = props.gapMode, rest = __rest$1(props, ["children", "autoFocus", "shards", "enabled", "scrollLock", "focusLock", "returnFocus", "inert", "allowPinchZoom", "sideCar", "className", "shouldIgnore", "preventScrollOnFocus", "style", "as", "gapMode"]);
1751
1714
  var SideCar = sideCar;
1752
- var onActivation = lockProps.onActivation, onDeactivation = lockProps.onDeactivation, restProps = __rest(lockProps, ["onActivation", "onDeactivation"]);
1753
- var appliedLockProps = __assign(__assign({}, restProps), { as: as,
1715
+ var onActivation = lockProps.onActivation, onDeactivation = lockProps.onDeactivation, restProps = __rest$1(lockProps, ["onActivation", "onDeactivation"]);
1716
+ var appliedLockProps = __assign$1(__assign$1({}, restProps), { as: as,
1754
1717
  style: style,
1755
1718
  sideCar: sideCar,
1756
1719
  shards: shards,
@@ -1759,7 +1722,7 @@ var FocusOn$1 = React.forwardRef(function (props, parentRef) {
1759
1722
  inert: inert, enabled: enabled && scrollLock });
1760
1723
  return (React.createElement(React.Fragment, null,
1761
1724
  React.createElement(FocusLockUI, { ref: parentRef, sideCar: sideCar, disabled: !(lockProps && enabled && focusLock), returnFocus: returnFocus, autoFocus: autoFocus, shards: shards, onActivation: onActivation, onDeactivation: onDeactivation, className: className, whiteList: shouldIgnore, lockProps: appliedLockProps, focusOptions: preventScrollOnFocus ? { preventScroll: true } : undefined, as: RemoveScroll }, children),
1762
- enabled && (React.createElement(SideCar, __assign({}, rest, { sideCar: effectCar, setLockProps: setLockProps, shards: shards })))));
1725
+ enabled && (React.createElement(SideCar, __assign$1({}, rest, { sideCar: effectCar, setLockProps: setLockProps, shards: shards })))));
1763
1726
  });
1764
1727
 
1765
1728
  function _setPrototypeOf(o, p) {
@@ -2722,7 +2685,7 @@ var FocusWatcher = function FocusWatcher() {
2722
2685
  };
2723
2686
 
2724
2687
  process.env.NODE_ENV !== "production" ? {
2725
- children: propTypesExports.node.isRequired
2688
+ children: PropTypes.node.isRequired
2726
2689
  } : {};
2727
2690
 
2728
2691
  var onWindowBlur = function onWindowBlur() {
@@ -2994,6 +2957,7 @@ var elementCanBeScrolled = function (node, overflow) {
2994
2957
  var elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };
2995
2958
  var elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };
2996
2959
  var locationCouldBeScrolled = function (axis, node) {
2960
+ var ownerDocument = node.ownerDocument;
2997
2961
  var current = node;
2998
2962
  do {
2999
2963
  // Skip over shadow root
@@ -3008,7 +2972,7 @@ var locationCouldBeScrolled = function (axis, node) {
3008
2972
  }
3009
2973
  }
3010
2974
  current = current.parentNode;
3011
- } while (current && current !== document.body);
2975
+ } while (current && current !== ownerDocument.body);
3012
2976
  return false;
3013
2977
  };
3014
2978
  var getVScrollVariables = function (_a) {
@@ -3092,7 +3056,7 @@ function RemoveScrollSideCar(props) {
3092
3056
  var touchStartRef = React.useRef([0, 0]);
3093
3057
  var activeAxis = React.useRef();
3094
3058
  var id = React.useState(idCounter++)[0];
3095
- var Style = React.useState(function () { return styleSingleton(); })[0];
3059
+ var Style = React.useState(styleSingleton)[0];
3096
3060
  var lastProps = React.useRef(props);
3097
3061
  React.useEffect(function () {
3098
3062
  lastProps.current = props;
@@ -3214,7 +3178,7 @@ function RemoveScrollSideCar(props) {
3214
3178
  var removeScrollBar = props.removeScrollBar, inert = props.inert;
3215
3179
  return (React.createElement(React.Fragment, null,
3216
3180
  inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,
3217
- removeScrollBar ? React.createElement(RemoveScrollBar, { gapMode: "margin" }) : null));
3181
+ removeScrollBar ? React.createElement(RemoveScrollBar, { gapMode: props.gapMode }) : null));
3218
3182
  }
3219
3183
 
3220
3184
  exportSidecar(effectCar$1, RemoveScrollSideCar);
@@ -3459,9 +3423,9 @@ function Effect(_a) {
3459
3423
  var SideCar = exportSidecar(effectCar, Effect);
3460
3424
 
3461
3425
  var RequireSideCar = function (props) {
3462
- return React.createElement(SideCar, __assign({}, props));
3426
+ return React.createElement(SideCar, __assign$1({}, props));
3463
3427
  };
3464
- var FocusOn = React.forwardRef(function (props, ref) { return React.createElement(FocusOn$1, __assign({}, props, { ref: ref, sideCar: RequireSideCar })); });
3428
+ var FocusOn = React.forwardRef(function (props, ref) { return React.createElement(FocusOn$1, __assign$1({}, props, { ref: ref, sideCar: RequireSideCar })); });
3465
3429
 
3466
3430
  var ManagerReferenceNodeContext = React.createContext();
3467
3431
  var ManagerReferenceNodeSetterContext = React.createContext();
@@ -3542,19 +3506,11 @@ var fromEntries = function fromEntries(entries) {
3542
3506
 
3543
3507
  var useIsomorphicLayoutEffect = typeof window !== 'undefined' && window.document && window.document.createElement ? React.useLayoutEffect : React.useEffect;
3544
3508
 
3545
- var reactDomExports = {};
3546
- var reactDom = {
3547
- get exports(){ return reactDomExports; },
3548
- set exports(v){ reactDomExports = v; },
3549
- };
3509
+ var reactDom = {exports: {}};
3550
3510
 
3551
3511
  var reactDom_production_min = {};
3552
3512
 
3553
- var schedulerExports = {};
3554
- var scheduler = {
3555
- get exports(){ return schedulerExports; },
3556
- set exports(v){ schedulerExports = v; },
3557
- };
3513
+ var scheduler = {exports: {}};
3558
3514
 
3559
3515
  var scheduler_production_min = {};
3560
3516
 
@@ -3583,8 +3539,8 @@ function f(a,b){var c=a.length;a.push(b);a:for(;0<c;){var d=c-1>>>1,e=a[d];if(0<
3583
3539
  exports.unstable_forceFrameRate=function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<a?Math.floor(1E3/a):5;};exports.unstable_getCurrentPriorityLevel=function(){return y};exports.unstable_getFirstCallbackNode=function(){return h(r)};exports.unstable_next=function(a){switch(y){case 1:case 2:case 3:var b=3;break;default:b=y;}var c=y;y=b;try{return a()}finally{y=c;}};exports.unstable_pauseExecution=function(){};
3584
3540
  exports.unstable_requestPaint=function(){};exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3;}var c=y;y=a;try{return b()}finally{y=c;}};
3585
3541
  exports.unstable_scheduleCallback=function(a,b,c){var d=exports.unstable_now();"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0<c?d+c:d):c=d;switch(a){case 1:var e=-1;break;case 2:e=250;break;case 5:e=1073741823;break;case 4:e=1E4;break;default:e=5E3;}e=c+e;a={id:u++,callback:b,priorityLevel:a,startTime:c,expirationTime:e,sortIndex:-1};c>d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J)));return a};
3586
- exports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c;}}};
3587
- } (scheduler_production_min));
3542
+ exports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c;}}};
3543
+ } (scheduler_production_min));
3588
3544
  return scheduler_production_min;
3589
3545
  }
3590
3546
 
@@ -4214,25 +4170,23 @@ function requireScheduler_development () {
4214
4170
  }
4215
4171
 
4216
4172
  })();
4217
- }
4218
- } (scheduler_development));
4173
+ }
4174
+ } (scheduler_development));
4219
4175
  return scheduler_development;
4220
4176
  }
4221
4177
 
4222
4178
  var hasRequiredScheduler;
4223
4179
 
4224
4180
  function requireScheduler () {
4225
- if (hasRequiredScheduler) return schedulerExports;
4181
+ if (hasRequiredScheduler) return scheduler.exports;
4226
4182
  hasRequiredScheduler = 1;
4227
- (function (module) {
4228
4183
 
4229
- if (process.env.NODE_ENV === 'production') {
4230
- module.exports = requireScheduler_production_min();
4231
- } else {
4232
- module.exports = requireScheduler_development();
4233
- }
4234
- } (scheduler));
4235
- return schedulerExports;
4184
+ if (process.env.NODE_ENV === 'production') {
4185
+ scheduler.exports = requireScheduler_production_min();
4186
+ } else {
4187
+ scheduler.exports = requireScheduler_development();
4188
+ }
4189
+ return scheduler.exports;
4236
4190
  }
4237
4191
 
4238
4192
  /**
@@ -34414,45 +34368,44 @@ function requireReactDom_development () {
34414
34368
  return reactDom_development;
34415
34369
  }
34416
34370
 
34417
- (function (module) {
34371
+ function checkDCE() {
34372
+ /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
34373
+ if (
34374
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
34375
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
34376
+ ) {
34377
+ return;
34378
+ }
34379
+ if (process.env.NODE_ENV !== 'production') {
34380
+ // This branch is unreachable because this function is only called
34381
+ // in production, but the condition is true only in development.
34382
+ // Therefore if the branch is still here, dead code elimination wasn't
34383
+ // properly applied.
34384
+ // Don't change the message. React DevTools relies on it. Also make sure
34385
+ // this message doesn't occur elsewhere in this function, or it will cause
34386
+ // a false positive.
34387
+ throw new Error('^_^');
34388
+ }
34389
+ try {
34390
+ // Verify that the code above has been dead code eliminated (DCE'd).
34391
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
34392
+ } catch (err) {
34393
+ // DevTools shouldn't crash React, no matter what.
34394
+ // We should still report in case we break this code.
34395
+ console.error(err);
34396
+ }
34397
+ }
34418
34398
 
34419
- function checkDCE() {
34420
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
34421
- if (
34422
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
34423
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
34424
- ) {
34425
- return;
34426
- }
34427
- if (process.env.NODE_ENV !== 'production') {
34428
- // This branch is unreachable because this function is only called
34429
- // in production, but the condition is true only in development.
34430
- // Therefore if the branch is still here, dead code elimination wasn't
34431
- // properly applied.
34432
- // Don't change the message. React DevTools relies on it. Also make sure
34433
- // this message doesn't occur elsewhere in this function, or it will cause
34434
- // a false positive.
34435
- throw new Error('^_^');
34436
- }
34437
- try {
34438
- // Verify that the code above has been dead code eliminated (DCE'd).
34439
- __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
34440
- } catch (err) {
34441
- // DevTools shouldn't crash React, no matter what.
34442
- // We should still report in case we break this code.
34443
- console.error(err);
34444
- }
34445
- }
34399
+ if (process.env.NODE_ENV === 'production') {
34400
+ // DCE check should happen before ReactDOM bundle executes so that
34401
+ // DevTools can report bad minification during injection.
34402
+ checkDCE();
34403
+ reactDom.exports = requireReactDom_production_min();
34404
+ } else {
34405
+ reactDom.exports = requireReactDom_development();
34406
+ }
34446
34407
 
34447
- if (process.env.NODE_ENV === 'production') {
34448
- // DCE check should happen before ReactDOM bundle executes so that
34449
- // DevTools can report bad minification during injection.
34450
- checkDCE();
34451
- module.exports = requireReactDom_production_min();
34452
- } else {
34453
- module.exports = requireReactDom_development();
34454
- }
34455
- } (reactDom));
34408
+ var reactDomExports = reactDom.exports;
34456
34409
 
34457
34410
  var top = 'top';
34458
34411
  var bottom = 'bottom';
@@ -36562,6 +36515,8 @@ var reactFastCompare = function isEqual(a, b) {
36562
36515
  }
36563
36516
  };
36564
36517
 
36518
+ var isEqual = /*@__PURE__*/getDefaultExportFromCjs(reactFastCompare);
36519
+
36565
36520
  var EMPTY_MODIFIERS$1 = [];
36566
36521
  var usePopper = function usePopper(referenceElement, popperElement, options) {
36567
36522
  if (options === void 0) {
@@ -36625,7 +36580,7 @@ var usePopper = function usePopper(referenceElement, popperElement, options) {
36625
36580
  }])
36626
36581
  };
36627
36582
 
36628
- if (reactFastCompare(prevOptions.current, newOptions)) {
36583
+ if (isEqual(prevOptions.current, newOptions)) {
36629
36584
  return prevOptions.current || newOptions;
36630
36585
  } else {
36631
36586
  prevOptions.current = newOptions;
@@ -36793,6 +36748,8 @@ if (__DEV__) {
36793
36748
 
36794
36749
  var warning_1 = warning;
36795
36750
 
36751
+ var warning$1 = /*@__PURE__*/getDefaultExportFromCjs(warning_1);
36752
+
36796
36753
  function Reference(_ref) {
36797
36754
  var children = _ref.children,
36798
36755
  innerRef = _ref.innerRef;
@@ -36809,7 +36766,7 @@ function Reference(_ref) {
36809
36766
  };
36810
36767
  }, []);
36811
36768
  React.useEffect(function () {
36812
- warning_1(Boolean(setReferenceNode), '`Reference` should not be used outside of a `Manager` component.');
36769
+ warning$1(Boolean(setReferenceNode), '`Reference` should not be used outside of a `Manager` component.');
36813
36770
  }, [setReferenceNode]);
36814
36771
  return unwrapArray(children)({
36815
36772
  ref: refHandler
@@ -36830,9 +36787,9 @@ var esm = /*#__PURE__*/Object.freeze({
36830
36787
  var styles$a = {"filterPopover":"FilterPopover-module_filterPopover__OgOEM"};
36831
36788
 
36832
36789
  var FilterPopover = function(_a) {
36833
- var children = _a.children, referenceElement = _a.referenceElement, popperOptions = _a.popperOptions, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["children", "referenceElement", "popperOptions", "classNameOverride"]);
36790
+ var children = _a.children, referenceElement = _a.referenceElement, popperOptions = _a.popperOptions, classNameOverride = _a.classNameOverride, restProps = __rest$1(_a, ["children", "referenceElement", "popperOptions", "classNameOverride"]);
36834
36791
  var _b = useState(null), popperElement = _b[0], setPopperElement = _b[1];
36835
- var _c = usePopper(referenceElement, popperElement, __assign({ modifiers: [
36792
+ var _c = usePopper(referenceElement, popperElement, __assign$1({ modifiers: [
36836
36793
  {
36837
36794
  name: "offset",
36838
36795
  options: {
@@ -36840,13 +36797,13 @@ var FilterPopover = function(_a) {
36840
36797
  }
36841
36798
  }
36842
36799
  ], placement: "bottom-start", strategy: "fixed" }, popperOptions)), popperStyles = _c.styles, popperAttributes = _c.attributes;
36843
- return React__default.createElement("div", __assign({ ref: setPopperElement, style: popperStyles === null || popperStyles === void 0 ? void 0 : popperStyles.popper }, popperAttributes === null || popperAttributes === void 0 ? void 0 : popperAttributes.popper, { className: classNames(styles$a.filterPopover, classNameOverride), role: "dialog", "aria-modal": "true" }, restProps), children);
36800
+ return React__default.createElement("div", __assign$1({ ref: setPopperElement, style: popperStyles === null || popperStyles === void 0 ? void 0 : popperStyles.popper }, popperAttributes === null || popperAttributes === void 0 ? void 0 : popperAttributes.popper, { className: classnames(styles$a.filterPopover, classNameOverride), role: "dialog", "aria-modal": "true" }, restProps), children);
36844
36801
  };
36845
36802
  FilterPopover.displayName = "FilterPopover";
36846
36803
 
36847
36804
  var Filter = function(_a) {
36848
36805
  var _b, _c, _d, _e, _f;
36849
- var children = _a.children, isOpen = _a.isOpen, setIsOpen = _a.setIsOpen, renderTrigger = _a.renderTrigger, classNameOverride = _a.classNameOverride, onMount = _a.onMount, restProps = __rest(_a, ["children", "isOpen", "setIsOpen", "renderTrigger", "classNameOverride", "onMount"]);
36806
+ var children = _a.children, isOpen = _a.isOpen, setIsOpen = _a.setIsOpen, renderTrigger = _a.renderTrigger, classNameOverride = _a.classNameOverride, onMount = _a.onMount, restProps = __rest$1(_a, ["children", "isOpen", "setIsOpen", "renderTrigger", "classNameOverride", "onMount"]);
36850
36807
  var _g = useState(false), isRefLoaded = _g[0], setIsRefLoaded = _g[1];
36851
36808
  var trigger = renderTrigger({
36852
36809
  onClick: function() {
@@ -36868,7 +36825,7 @@ var Filter = function(_a) {
36868
36825
  }, [(_d = (_c = filterButtonRef.current) === null || _c === void 0 ? void 0 : _c.triggerRef) === null || _d === void 0 ? void 0 : _d.current, onMount]);
36869
36826
  return React__default.createElement(
36870
36827
  "div",
36871
- __assign({ className: classNameOverride }, restProps),
36828
+ __assign$1({ className: classNameOverride }, restProps),
36872
36829
  React__default.cloneElement(trigger, {
36873
36830
  ref: filterButtonRef
36874
36831
  }),
@@ -36888,8 +36845,8 @@ Filter.displayName = "Filter";
36888
36845
  var styles$9 = {"filterContents":"FilterContents-module_filterContents__uNUpd"};
36889
36846
 
36890
36847
  var FilterContents = function(_a) {
36891
- var children = _a.children, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["children", "classNameOverride"]);
36892
- return React__default.createElement("div", __assign({ className: classNames(styles$9.filterContents, classNameOverride) }, restProps), children);
36848
+ var children = _a.children, classNameOverride = _a.classNameOverride, restProps = __rest$1(_a, ["children", "classNameOverride"]);
36849
+ return React__default.createElement("div", __assign$1({ className: classnames(styles$9.filterContents, classNameOverride) }, restProps), children);
36893
36850
  };
36894
36851
  FilterContents.displayName = "FilterContents";
36895
36852
 
@@ -36905,8 +36862,8 @@ var singleLine = function(message) {
36905
36862
  var styles$8 = {"icon":"SVG-module_icon__FE6iP","inheritSize":"SVG-module_inheritSize__wiKMe","interactiveIconWrapper":"SVG-module_interactiveIconWrapper__ACcob","disabled":"SVG-module_disabled__WB5BU","hover":"SVG-module_hover__QivVO","active":"SVG-module_active__R9jic","reversedInteractiveIconWrapper":"SVG-module_reversedInteractiveIconWrapper__hTsnf SVG-module_interactiveIconWrapper__ACcob"};
36906
36863
 
36907
36864
  var SVG = function(_a) {
36908
- var _b, _c;
36909
- var _d = _a.inheritSize, inheritSize = _d === void 0 ? false : _d, _e = _a.role, role = _e === void 0 ? "img" : _e, _f = _a.title, title = _f === void 0 ? "" : _f, _g = _a.desc, desc = _g === void 0 ? "" : _g, _h = _a.viewBox, viewBox = _h === void 0 ? "0 0 20 20" : _h, classNameOverride = _a.classNameOverride, children = _a.children, props = __rest(_a, ["inheritSize", "role", "title", "desc", "viewBox", "classNameOverride", "children"]);
36865
+ var _b;
36866
+ var _c = _a.inheritSize, inheritSize = _c === void 0 ? false : _c, _d = _a.role, role = _d === void 0 ? "img" : _d, _e = _a.title, title = _e === void 0 ? "" : _e, _f = _a.desc, desc = _f === void 0 ? "" : _f, _g = _a.viewBox, viewBox = _g === void 0 ? "0 0 20 20" : _g, classNameOverride = _a.classNameOverride, children = _a.children, props = __rest$1(_a, ["inheritSize", "role", "title", "desc", "viewBox", "classNameOverride", "children"]);
36910
36867
  var isMeaningfulImg = role === "img";
36911
36868
  if (isMeaningfulImg && !title) {
36912
36869
  warn(`
@@ -36933,8 +36890,8 @@ var SVG = function(_a) {
36933
36890
  }, _b["aria-hidden"] = isMeaningfulImg ? void 0 : true, _b);
36934
36891
  return React__default.createElement(
36935
36892
  "svg",
36936
- __assign({
36937
- className: classNames(styles$8.icon, classNameOverride, (_c = {}, _c[styles$8.inheritSize] = inheritSize, _c)),
36893
+ __assign$1({
36894
+ className: classnames(styles$8.icon, classNameOverride, inheritSize && styles$8.inheritSize),
36938
36895
  viewBox,
36939
36896
  // Work around IE11 making all SVGs focusable.
36940
36897
  // See http://simplyaccessible.com/article/7-solutions-svgs/#acc-heading-4
@@ -36950,7 +36907,7 @@ SVG.displayName = "SVG";
36950
36907
  var ChevronDownIcon = function(props) {
36951
36908
  return React__default.createElement(
36952
36909
  SVG,
36953
- __assign({}, props),
36910
+ __assign$1({}, props),
36954
36911
  React__default.createElement(
36955
36912
  "defs",
36956
36913
  null,
@@ -36976,7 +36933,7 @@ var ChevronDownIcon = function(props) {
36976
36933
  var ChevronUpIcon = function(props) {
36977
36934
  return React__default.createElement(
36978
36935
  SVG,
36979
- __assign({}, props),
36936
+ __assign$1({}, props),
36980
36937
  React__default.createElement(
36981
36938
  "defs",
36982
36939
  null,
@@ -37006,21 +36963,21 @@ var isRefObject = function(ref) {
37006
36963
  var styles$7 = {"filterButtonBase":"FilterButtonBase-module_filterButtonBase__505sK"};
37007
36964
 
37008
36965
  var FilterButtonBase = forwardRef(function(_a, ref) {
37009
- var children = _a.children, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["children", "classNameOverride"]);
37010
- return React__default.createElement("button", __assign({ ref, type: "button", className: classNames(styles$7.filterButtonBase, classNameOverride) }, restProps), children);
36966
+ var children = _a.children, classNameOverride = _a.classNameOverride, restProps = __rest$1(_a, ["children", "classNameOverride"]);
36967
+ return React__default.createElement("button", __assign$1({ ref, type: "button", className: classnames(styles$7.filterButtonBase, classNameOverride) }, restProps), children);
37011
36968
  });
37012
36969
  FilterButtonBase.displayName = "FilterButtonBase";
37013
36970
 
37014
36971
  var styles$6 = {"filterButton":"FilterButton-module_filterButton__Q2dMX","labelContainer":"FilterButton-module_labelContainer__5G-MD","hasSelectedValues":"FilterButton-module_hasSelectedValues__dyQkL","labelSeparator":"FilterButton-module_labelSeparator__xrkAx"};
37015
36972
 
37016
36973
  var FilterButton = forwardRef(function(_a, ref) {
37017
- var label = _a.label, selectedValue = _a.selectedValue, _b = _a.isOpen, isOpen = _b === void 0 ? false : _b, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["label", "selectedValue", "isOpen", "classNameOverride"]);
36974
+ var label = _a.label, selectedValue = _a.selectedValue, _b = _a.isOpen, isOpen = _b === void 0 ? false : _b, classNameOverride = _a.classNameOverride, restProps = __rest$1(_a, ["label", "selectedValue", "isOpen", "classNameOverride"]);
37018
36975
  var customRefObject = isRefObject(ref) ? ref.current : null;
37019
36976
  var triggerRef = customRefObject === null || customRefObject === void 0 ? void 0 : customRefObject.triggerRef;
37020
36977
  var selectedValuesLabel = selectedValue;
37021
36978
  return React__default.createElement(
37022
36979
  FilterButtonBase,
37023
- __assign({ ref: triggerRef, classNameOverride: classNames(styles$6.filterButton, classNameOverride), "aria-haspopup": "true", "aria-expanded": isOpen }, restProps),
36980
+ __assign$1({ ref: triggerRef, classNameOverride: classnames(styles$6.filterButton, classNameOverride), "aria-haspopup": "true", "aria-expanded": isOpen }, restProps),
37024
36981
  React__default.createElement("span", { className: styles$6.labelContainer }, selectedValuesLabel ? React__default.createElement(
37025
36982
  React__default.Fragment,
37026
36983
  null,
@@ -37782,10 +37739,10 @@ var require$$1$4 = /*@__PURE__*/getAugmentedNamespace(esmBrowser);
37782
37739
 
37783
37740
  useUuid$1.__esModule = true;
37784
37741
  useUuid$1.useUuid = void 0;
37785
- var react_1 = React__default;
37742
+ var react_1$1 = React__default;
37786
37743
  var uuid_1 = require$$1$4;
37787
37744
  var useUuid = function() {
37788
- return (0, react_1.useMemo)(function() {
37745
+ return (0, react_1$1.useMemo)(function() {
37789
37746
  return (0, uuid_1.v4)();
37790
37747
  }, []);
37791
37748
  };
@@ -37866,11 +37823,10 @@ var require$$6$1 = /*@__PURE__*/getAugmentedNamespace(Tooltip_module$1);
37866
37823
  var arrowHeight = 7;
37867
37824
  var arrowWidth = 14;
37868
37825
  var TooltipContent = function(_a) {
37869
- var _b, _c;
37870
- var position = _a.position, text = _a.text, referenceElement = _a.referenceElement, tooltipId = _a.tooltipId, _d = _a.mood, mood = _d === void 0 ? "default" : _d;
37871
- var _e = (0, react_1.useState)(null), popperElement = _e[0], setPopperElement = _e[1];
37872
- var _f = (0, react_1.useState)(null), arrowElement = _f[0], setArrowElement = _f[1];
37873
- var _g = (0, react_popper_1.usePopper)(referenceElement, popperElement, {
37826
+ var position = _a.position, text = _a.text, referenceElement = _a.referenceElement, tooltipId = _a.tooltipId, _b = _a.mood, mood = _b === void 0 ? "default" : _b;
37827
+ var _c = (0, react_1.useState)(null), popperElement = _c[0], setPopperElement = _c[1];
37828
+ var _d = (0, react_1.useState)(null), arrowElement = _d[0], setArrowElement = _d[1];
37829
+ var _e = (0, react_popper_1.usePopper)(referenceElement, popperElement, {
37874
37830
  modifiers: [
37875
37831
  {
37876
37832
  name: "arrow",
@@ -37908,15 +37864,15 @@ var require$$6$1 = /*@__PURE__*/getAugmentedNamespace(Tooltip_module$1);
37908
37864
  }
37909
37865
  ],
37910
37866
  placement: position ? positionToPlacement.get(position) : void 0
37911
- }), popperStyles = _g.styles, attributes = _g.attributes;
37912
- var _h = (0, AppearanceAnim_1.useAnimation)(), isVisible = _h.isVisible, isAnimIn = _h.isAnimIn, isAnimOut = _h.isAnimOut;
37867
+ }), popperStyles = _e.styles, attributes = _e.attributes;
37868
+ var _f = (0, AppearanceAnim_1.useAnimation)(), isVisible = _f.isVisible, isAnimIn = _f.isAnimIn, isAnimOut = _f.isAnimOut;
37913
37869
  return isVisible || isAnimOut || isAnimIn ? react_1["default"].createElement(
37914
37870
  "div",
37915
- __assign({ ref: setPopperElement, className: (0, classnames_1["default"])((_b = {}, _b[Tooltip_module_scss_1["default"].tooltip] = true, _b)), style: popperStyles.popper }, attributes.popper, { role: "tooltip", id: tooltipId }),
37871
+ __assign({ ref: setPopperElement, className: Tooltip_module_scss_1["default"].tooltip, style: popperStyles.popper }, attributes.popper, { role: "tooltip", id: tooltipId }),
37916
37872
  react_1["default"].createElement("div", { className: (0, classnames_1["default"])(Tooltip_module_scss_1["default"].tooltipContent, Tooltip_module_scss_1["default"][mood]) }, text),
37917
37873
  react_1["default"].createElement(
37918
37874
  "div",
37919
- { ref: setArrowElement, className: (0, classnames_1["default"])((_c = {}, _c[Tooltip_module_scss_1["default"].arrow] = true, _c)), style: popperStyles.arrow },
37875
+ { ref: setArrowElement, className: Tooltip_module_scss_1["default"].arrow, style: popperStyles.arrow },
37920
37876
  react_1["default"].createElement(
37921
37877
  "div",
37922
37878
  { className: Tooltip_module_scss_1["default"].arrowInner },
@@ -37927,13 +37883,11 @@ var require$$6$1 = /*@__PURE__*/getAugmentedNamespace(Tooltip_module$1);
37927
37883
  ) : null;
37928
37884
  };
37929
37885
  var Tooltip = function(_a) {
37930
- var _b;
37931
- var children = _a.children, text = _a.text, inline = _a.inline, _c = _a.display, display = _c === void 0 ? "block" : _c, _d = _a.position, position = _d === void 0 ? "above" : _d, classNameOverride = _a.classNameOverride, portalSelector = _a.portalSelector, animationDuration = _a.animationDuration, _e = _a.isInitiallyVisible, isInitiallyVisible = _e === void 0 ? false : _e, _f = _a.mood, mood = _f === void 0 ? "default" : _f;
37932
- var _g = (0, react_1.useState)(isInitiallyVisible), isHover = _g[0], setIsHover = _g[1];
37933
- var _h = (0, react_1.useState)(false), isFocus = _h[0], setIsFocus = _h[1];
37934
- var _j = (0, react_1.useState)(null), referenceElement = _j[0], setReferenceElement = _j[1];
37886
+ var children = _a.children, text = _a.text, inline = _a.inline, _b = _a.display, display = _b === void 0 ? "block" : _b, _c = _a.position, position = _c === void 0 ? "above" : _c, classNameOverride = _a.classNameOverride, portalSelector = _a.portalSelector, animationDuration = _a.animationDuration, _d = _a.isInitiallyVisible, isInitiallyVisible = _d === void 0 ? false : _d, _e = _a.mood, mood = _e === void 0 ? "default" : _e;
37887
+ var _f = (0, react_1.useState)(isInitiallyVisible), isHover = _f[0], setIsHover = _f[1];
37888
+ var _g = (0, react_1.useState)(false), isFocus = _g[0], setIsFocus = _g[1];
37889
+ var _h = (0, react_1.useState)(null), referenceElement = _h[0], setReferenceElement = _h[1];
37935
37890
  var tooltipId = (0, useUuid_1.useUuid)();
37936
- var displayToUse = inline != null ? inline ? "inline" : "block" : display;
37937
37891
  var tooltip = react_1["default"].createElement(TooltipContent, { text, position, referenceElement, tooltipId, mood });
37938
37892
  var portalSelectorElementRef = (0, react_1.useRef)(null);
37939
37893
  (0, react_1.useEffect)(function() {
@@ -37944,13 +37898,30 @@ var require$$6$1 = /*@__PURE__*/getAugmentedNamespace(Tooltip_module$1);
37944
37898
  console.warn("The portal could not be created using the selector: " + portalSelector);
37945
37899
  }
37946
37900
  }, [portalSelectorElementRef, portalSelector]);
37901
+ var displayToUse = inline != null ? inline ? "inline" : "block" : display;
37902
+ var getDisplayClassName = function() {
37903
+ switch (displayToUse) {
37904
+ case "inline":
37905
+ return Tooltip_module_scss_1["default"].displayInline;
37906
+ case "block":
37907
+ return Tooltip_module_scss_1["default"].displayBlock;
37908
+ case "inline-block":
37909
+ return Tooltip_module_scss_1["default"].displayInlineBlock;
37910
+ case "flex":
37911
+ return Tooltip_module_scss_1["default"].displayFlex;
37912
+ case "inline-flex":
37913
+ return Tooltip_module_scss_1["default"].displayInlineFlex;
37914
+ default:
37915
+ return void 0;
37916
+ }
37917
+ };
37947
37918
  return react_1["default"].createElement(
37948
37919
  AppearanceAnim_1.AnimationProvider,
37949
37920
  { isVisible: isHover || isFocus, animationDuration },
37950
37921
  react_1["default"].createElement(
37951
37922
  react_1["default"].Fragment,
37952
37923
  null,
37953
- react_1["default"].createElement("div", { ref: setReferenceElement, className: (0, classnames_1["default"])(classNameOverride, (_b = {}, _b[Tooltip_module_scss_1["default"].displayInline] = displayToUse === "inline", _b[Tooltip_module_scss_1["default"].displayBlock] = displayToUse === "block", _b[Tooltip_module_scss_1["default"].displayInlineBlock] = displayToUse === "inline-block", _b[Tooltip_module_scss_1["default"].displayFlex] = displayToUse === "flex", _b[Tooltip_module_scss_1["default"].displayInlineFlex] = displayToUse === "inline-flex", _b)), onMouseEnter: function() {
37924
+ react_1["default"].createElement("div", { ref: setReferenceElement, className: (0, classnames_1["default"])(classNameOverride, getDisplayClassName()), onMouseEnter: function() {
37954
37925
  return setIsHover(true);
37955
37926
  }, onMouseLeave: function() {
37956
37927
  return setIsHover(false);
@@ -38020,7 +37991,7 @@ var require$$6$1 = /*@__PURE__*/getAugmentedNamespace(Tooltip_module$1);
38020
37991
  var ClearIcon = function(props) {
38021
37992
  return React__default.createElement(
38022
37993
  SVG,
38023
- __assign({}, props),
37994
+ __assign$1({}, props),
38024
37995
  React__default.createElement(
38025
37996
  "defs",
38026
37997
  null,
@@ -38049,13 +38020,13 @@ var isFilterButton = function(node) {
38049
38020
  return React__default.isValidElement(node) && node.type === FilterButtonBase;
38050
38021
  };
38051
38022
  var ButtonGroup = function(_a) {
38052
- var children = _a.children, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["children", "classNameOverride"]);
38023
+ var children = _a.children, classNameOverride = _a.classNameOverride, restProps = __rest$1(_a, ["children", "classNameOverride"]);
38053
38024
  var childCount = React__default.Children.count(children);
38054
- var containerProps = __assign({ role: "group", className: classNames(styles$5.buttonGroup, classNameOverride) }, restProps);
38025
+ var containerProps = __assign$1({ role: "group", className: classnames(styles$5.buttonGroup, classNameOverride) }, restProps);
38055
38026
  if (childCount === 1)
38056
- return React__default.createElement("div", __assign({}, containerProps), children);
38057
- return React__default.createElement("div", __assign({}, containerProps), React__default.Children.map(children, function(child, index) {
38058
- var buttonClassNames = classNames(styles$5.child, index === 0 && styles$5.firstChild, index === childCount - 1 && styles$5.lastChild, child.props.classNameOverride);
38027
+ return React__default.createElement("div", __assign$1({}, containerProps), children);
38028
+ return React__default.createElement("div", __assign$1({}, containerProps), React__default.Children.map(children, function(child, index) {
38029
+ var buttonClassNames = classnames(styles$5.child, index === 0 && styles$5.firstChild, index === childCount - 1 && styles$5.lastChild, child.props.classNameOverride);
38059
38030
  if (child.type === tooltip.Tooltip) {
38060
38031
  var button = child.props.children;
38061
38032
  if (isFilterButton(button)) {
@@ -38076,20 +38047,20 @@ ButtonGroup.displayName = "ButtonGroup";
38076
38047
 
38077
38048
  var FilterButtonRemovable = forwardRef(function(_a, ref) {
38078
38049
  var _b;
38079
- var triggerButtonProps = _a.triggerButtonProps, removeButtonProps = _a.removeButtonProps, restProps = __rest(_a, ["triggerButtonProps", "removeButtonProps"]);
38050
+ var triggerButtonProps = _a.triggerButtonProps, removeButtonProps = _a.removeButtonProps, restProps = __rest$1(_a, ["triggerButtonProps", "removeButtonProps"]);
38080
38051
  var customRefObject = isRefObject(ref) ? ref.current : null;
38081
38052
  var removeButtonRef = customRefObject === null || customRefObject === void 0 ? void 0 : customRefObject.removeButtonRef;
38082
38053
  var removeButtonLabel = (_b = removeButtonProps === null || removeButtonProps === void 0 ? void 0 : removeButtonProps.tooltipText) !== null && _b !== void 0 ? _b : "Remove filter - ".concat(triggerButtonProps === null || triggerButtonProps === void 0 ? void 0 : triggerButtonProps.label);
38083
38054
  return React__default.createElement(
38084
38055
  ButtonGroup,
38085
- __assign({}, restProps),
38086
- React__default.createElement(FilterButton, __assign({ ref }, triggerButtonProps)),
38056
+ __assign$1({}, restProps),
38057
+ React__default.createElement(FilterButton, __assign$1({ ref }, triggerButtonProps)),
38087
38058
  React__default.createElement(
38088
38059
  tooltip.Tooltip,
38089
38060
  { text: removeButtonLabel, display: "inline-block", position: "below" },
38090
38061
  React__default.createElement(
38091
38062
  FilterButtonBase,
38092
- __assign({ ref: removeButtonRef }, removeButtonProps),
38063
+ __assign$1({ ref: removeButtonRef }, removeButtonProps),
38093
38064
  React__default.createElement(ClearIcon, { title: removeButtonLabel })
38094
38065
  )
38095
38066
  )
@@ -38194,15 +38165,16 @@ function $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, defaultValue, onChange
38194
38165
  // being on the page at once, the prefix is set to a random number. SSRProvider
38195
38166
  // will reset this to zero for consistency between server and client, so in the
38196
38167
  // SSR case multiple copies of React Aria is not supported.
38197
- const $704cf1d3b684cc5c$var$defaultContext$1 = {
38168
+ const $704cf1d3b684cc5c$var$defaultContext = {
38198
38169
  prefix: String(Math.round(Math.random() * 10000000000)),
38199
- current: 0
38170
+ current: 0,
38171
+ isSSR: false
38200
38172
  };
38201
- const $704cf1d3b684cc5c$var$SSRContext$1 = /*#__PURE__*/ (React__default).createContext($704cf1d3b684cc5c$var$defaultContext$1);
38173
+ const $704cf1d3b684cc5c$var$SSRContext = /*#__PURE__*/ (React__default).createContext($704cf1d3b684cc5c$var$defaultContext);
38202
38174
  let $704cf1d3b684cc5c$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
38203
38175
  let $704cf1d3b684cc5c$var$componentIds = new WeakMap();
38204
38176
  function $704cf1d3b684cc5c$var$useCounter(isDisabled = false) {
38205
- let ctx = (useContext)($704cf1d3b684cc5c$var$SSRContext$1);
38177
+ let ctx = (useContext)($704cf1d3b684cc5c$var$SSRContext);
38206
38178
  let ref = (useRef)(null);
38207
38179
  if (ref.current === null && !isDisabled) {
38208
38180
  var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner;
@@ -38237,13 +38209,17 @@ function $704cf1d3b684cc5c$var$useCounter(isDisabled = false) {
38237
38209
  return ref.current;
38238
38210
  }
38239
38211
  function $704cf1d3b684cc5c$export$619500959fc48b26(defaultId) {
38240
- let ctx = (useContext)($704cf1d3b684cc5c$var$SSRContext$1);
38212
+ let ctx = (useContext)($704cf1d3b684cc5c$var$SSRContext);
38241
38213
  // If we are rendering in a non-DOM environment, and there's no SSRProvider,
38242
38214
  // provide a warning to hint to the developer to add one.
38243
- if (ctx === $704cf1d3b684cc5c$var$defaultContext$1 && !$704cf1d3b684cc5c$var$canUseDOM) console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
38215
+ if (ctx === $704cf1d3b684cc5c$var$defaultContext && !$704cf1d3b684cc5c$var$canUseDOM) console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
38244
38216
  let counter = $704cf1d3b684cc5c$var$useCounter(!!defaultId);
38245
38217
  return defaultId || `react-aria${ctx.prefix}-${counter}`;
38246
38218
  }
38219
+ function $704cf1d3b684cc5c$export$535bd6ca7f90a273() {
38220
+ let cur = (useContext)($704cf1d3b684cc5c$var$SSRContext);
38221
+ return cur.isSSR;
38222
+ }
38247
38223
 
38248
38224
  function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
38249
38225
 
@@ -39732,7 +39708,9 @@ function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {
39732
39708
  ]);
39733
39709
  const onSyntheticFocus = ($8a9cb279dc87e130$export$715c682d09d639cc)(onBlur);
39734
39710
  const onFocus = (useCallback)((e)=>{
39735
- if (e.target === e.currentTarget) {
39711
+ // Double check that document.activeElement actually matches e.target in case a previously chained
39712
+ // focus handler already moved focus somewhere else.
39713
+ if (e.target === e.currentTarget && document.activeElement === e.target) {
39736
39714
  if (onFocusProp) onFocusProp(e);
39737
39715
  if (onFocusChange) onFocusChange(true);
39738
39716
  onSyntheticFocus(e);
@@ -39767,6 +39745,7 @@ function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(props) {
39767
39745
  // See https://github.com/facebook/react/tree/cc7c1aece46a6b69b41958d731e0fd27c94bfc6c/packages/react-interactions
39768
39746
 
39769
39747
 
39748
+
39770
39749
  let $507fabe10e71c6fb$var$currentModality = null;
39771
39750
  let $507fabe10e71c6fb$var$changeHandlers = new Set();
39772
39751
  let $507fabe10e71c6fb$var$hasSetupGlobalListeners = false;
@@ -39883,7 +39862,7 @@ function $507fabe10e71c6fb$export$98e20ec92f614cfe() {
39883
39862
  $507fabe10e71c6fb$var$changeHandlers.delete(handler);
39884
39863
  };
39885
39864
  }, []);
39886
- return modality;
39865
+ return ($704cf1d3b684cc5c$export$535bd6ca7f90a273)() ? null : modality;
39887
39866
  }
39888
39867
  /**
39889
39868
  * If this is attached to text input component, return if the event is a focus event (Tab/Escape keys pressed) so that
@@ -39944,7 +39923,9 @@ function $9ab94262bd0047c7$export$420e68273165f4ec(props) {
39944
39923
  ]);
39945
39924
  let onSyntheticFocus = ($8a9cb279dc87e130$export$715c682d09d639cc)(onBlur);
39946
39925
  let onFocus = (useCallback)((e)=>{
39947
- if (!state.current.isFocusWithin) {
39926
+ // Double check that document.activeElement actually matches e.target in case a previously chained
39927
+ // focus handler already moved focus somewhere else.
39928
+ if (!state.current.isFocusWithin && document.activeElement === e.target) {
39948
39929
  if (onFocusWithin) onFocusWithin(e);
39949
39930
  if (onFocusWithinChange) onFocusWithinChange(true);
39950
39931
  state.current.isFocusWithin = true;
@@ -41131,55 +41112,6 @@ function $701a24aa0da5b062$export$ea18c227d4417cc3(props, ref) {
41131
41112
  };
41132
41113
  }
41133
41114
 
41134
- /*
41135
- * Copyright 2020 Adobe. All rights reserved.
41136
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
41137
- * you may not use this file except in compliance with the License. You may obtain a copy
41138
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
41139
- *
41140
- * Unless required by applicable law or agreed to in writing, software distributed under
41141
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
41142
- * OF ANY KIND, either express or implied. See the License for the specific language
41143
- * governing permissions and limitations under the License.
41144
- */ /*
41145
- * Copyright 2020 Adobe. All rights reserved.
41146
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
41147
- * you may not use this file except in compliance with the License. You may obtain a copy
41148
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
41149
- *
41150
- * Unless required by applicable law or agreed to in writing, software distributed under
41151
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
41152
- * OF ANY KIND, either express or implied. See the License for the specific language
41153
- * governing permissions and limitations under the License.
41154
- */ // We must avoid a circular dependency with @react-aria/utils, and this useLayoutEffect is
41155
- // guarded by a check that it only runs on the client side.
41156
- // eslint-disable-next-line rulesdir/useLayoutEffectRule
41157
-
41158
- // Default context value to use in case there is no SSRProvider. This is fine for
41159
- // client-only apps. In order to support multiple copies of React Aria potentially
41160
- // being on the page at once, the prefix is set to a random number. SSRProvider
41161
- // will reset this to zero for consistency between server and client, so in the
41162
- // SSR case multiple copies of React Aria is not supported.
41163
- const $704cf1d3b684cc5c$var$defaultContext = {
41164
- prefix: String(Math.round(Math.random() * 10000000000)),
41165
- current: 0
41166
- };
41167
- const $704cf1d3b684cc5c$var$SSRContext = /*#__PURE__*/ (React__default).createContext($704cf1d3b684cc5c$var$defaultContext);
41168
- function $704cf1d3b684cc5c$export$535bd6ca7f90a273() {
41169
- let cur = (useContext)($704cf1d3b684cc5c$var$SSRContext);
41170
- let isInSSRContext = cur !== $704cf1d3b684cc5c$var$defaultContext;
41171
- let [isSSR, setIsSSR] = (useState)(isInSSRContext);
41172
- // If on the client, and the component was initially server rendered,
41173
- // then schedule a layout effect to update the component after hydration.
41174
- if (typeof window !== "undefined" && isInSSRContext) // This if statement technically breaks the rules of hooks, but is safe
41175
- // because the condition never changes after mounting.
41176
- // eslint-disable-next-line react-hooks/rules-of-hooks
41177
- (useLayoutEffect)(()=>{
41178
- setIsSSR(false);
41179
- }, []);
41180
- return isSSR;
41181
- }
41182
-
41183
41115
  /*
41184
41116
  * Copyright 2022 Adobe. All rights reserved.
41185
41117
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -41759,10 +41691,12 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
41759
41691
  // Restore the scroll position to what it was before.
41760
41692
  scrollRef.current.scrollTop = scrollPos.current.top;
41761
41693
  scrollRef.current.scrollLeft = scrollPos.current.left;
41694
+ }
41695
+ if (!isVirtualized && manager.focusedKey != null) {
41762
41696
  // Refocus and scroll the focused item into view if it exists within the scrollable region.
41763
41697
  let element = scrollRef.current.querySelector(`[data-key="${manager.focusedKey}"]`);
41764
41698
  if (element) {
41765
- // This prevents a flash of focus on the first/last element in the collection
41699
+ // This prevents a flash of focus on the first/last element in the collection, or the collection itself.
41766
41700
  ($7215afc6de606d6b$export$de79e2c695e052f3)(element);
41767
41701
  ($2f04cbc44ee30ce0$export$53a0910f038337bd)(scrollRef.current, element);
41768
41702
  }
@@ -41873,9 +41807,9 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
41873
41807
  // Focus the associated DOM node when this item becomes the focusedKey
41874
41808
  (useEffect)(()=>{
41875
41809
  let isFocused = key === manager.focusedKey;
41876
- if (isFocused && manager.isFocused && !shouldUseVirtualFocus && document.activeElement !== ref.current) {
41810
+ if (isFocused && manager.isFocused && !shouldUseVirtualFocus) {
41877
41811
  if (focus) focus();
41878
- else ($6a99195332edec8b$export$80f3e147d781571c)(ref.current);
41812
+ else if (document.activeElement !== ref.current) ($6a99195332edec8b$export$80f3e147d781571c)(ref.current);
41879
41813
  }
41880
41814
  // eslint-disable-next-line react-hooks/exhaustive-deps
41881
41815
  }, [
@@ -41999,6 +41933,7 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
41999
41933
  }),
42000
41934
  isPressed: isPressed,
42001
41935
  isSelected: manager.isSelected(key),
41936
+ isFocused: manager.isFocused && manager.focusedKey === key,
42002
41937
  isDisabled: isDisabled,
42003
41938
  allowsSelection: allowsSelection,
42004
41939
  hasAction: hasAction
@@ -42043,6 +41978,7 @@ function $880e95eb8b93ba9a$var$isSelectionKey() {
42043
41978
  if (item.type === "item" && !this.disabledKeys.has(key)) return key;
42044
41979
  key = this.collection.getKeyAfter(key);
42045
41980
  }
41981
+ return null;
42046
41982
  }
42047
41983
  getKeyAbove(key) {
42048
41984
  key = this.collection.getKeyBefore(key);
@@ -42051,6 +41987,7 @@ function $880e95eb8b93ba9a$var$isSelectionKey() {
42051
41987
  if (item.type === "item" && !this.disabledKeys.has(key)) return key;
42052
41988
  key = this.collection.getKeyBefore(key);
42053
41989
  }
41990
+ return null;
42054
41991
  }
42055
41992
  getFirstKey() {
42056
41993
  let key = this.collection.getFirstKey();
@@ -42059,6 +41996,7 @@ function $880e95eb8b93ba9a$var$isSelectionKey() {
42059
41996
  if (item.type === "item" && !this.disabledKeys.has(key)) return key;
42060
41997
  key = this.collection.getKeyAfter(key);
42061
41998
  }
41999
+ return null;
42062
42000
  }
42063
42001
  getLastKey() {
42064
42002
  let key = this.collection.getLastKey();
@@ -42067,6 +42005,7 @@ function $880e95eb8b93ba9a$var$isSelectionKey() {
42067
42005
  if (item.type === "item" && !this.disabledKeys.has(key)) return key;
42068
42006
  key = this.collection.getKeyBefore(key);
42069
42007
  }
42008
+ return null;
42070
42009
  }
42071
42010
  getItem(key) {
42072
42011
  return this.ref.current.querySelector(`[data-key="${key}"]`);
@@ -42078,7 +42017,7 @@ function $880e95eb8b93ba9a$var$isSelectionKey() {
42078
42017
  let pageY = Math.max(0, item.offsetTop + item.offsetHeight - menu.offsetHeight);
42079
42018
  while(item && item.offsetTop > pageY){
42080
42019
  key = this.getKeyAbove(key);
42081
- item = this.getItem(key);
42020
+ item = key == null ? null : this.getItem(key);
42082
42021
  }
42083
42022
  return key;
42084
42023
  }
@@ -42089,7 +42028,7 @@ function $880e95eb8b93ba9a$var$isSelectionKey() {
42089
42028
  let pageY = Math.min(menu.scrollHeight, item.offsetTop - item.offsetHeight + menu.offsetHeight);
42090
42029
  while(item && item.offsetTop < pageY){
42091
42030
  key = this.getKeyBelow(key);
42092
- item = this.getItem(key);
42031
+ item = key == null ? null : this.getItem(key);
42093
42032
  }
42094
42033
  return key;
42095
42034
  }
@@ -42268,12 +42207,12 @@ const $5c3e21d68f1c4674$var$styles = {
42268
42207
  border: 0,
42269
42208
  clip: "rect(0 0 0 0)",
42270
42209
  clipPath: "inset(50%)",
42271
- height: 1,
42272
- margin: "0 -1px -1px 0",
42210
+ height: "1px",
42211
+ margin: "-1px",
42273
42212
  overflow: "hidden",
42274
42213
  padding: 0,
42275
42214
  position: "absolute",
42276
- width: 1,
42215
+ width: "1px",
42277
42216
  whiteSpace: "nowrap"
42278
42217
  };
42279
42218
  function $5c3e21d68f1c4674$export$a966af930f325cab(props = {}) {
@@ -42458,6 +42397,18 @@ function $628037886ba31236$export$f9d5c8beee7d008d(props, state, ref) {
42458
42397
  }
42459
42398
  };
42460
42399
  }
42400
+ // HTML input types that do not cause the software keyboard to appear.
42401
+ new Set([
42402
+ "checkbox",
42403
+ "radio",
42404
+ "range",
42405
+ "color",
42406
+ "file",
42407
+ "image",
42408
+ "button",
42409
+ "submit",
42410
+ "reset"
42411
+ ]);
42461
42412
 
42462
42413
 
42463
42414
  /*
@@ -42731,6 +42682,21 @@ function $86ea4cb521eb2e37$export$2317d149ed6f78c4(props) {
42731
42682
  }));
42732
42683
  }
42733
42684
 
42685
+
42686
+ /*
42687
+ * Copyright 2020 Adobe. All rights reserved.
42688
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
42689
+ * you may not use this file except in compliance with the License. You may obtain a copy
42690
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
42691
+ *
42692
+ * Unless required by applicable law or agreed to in writing, software distributed under
42693
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
42694
+ * OF ANY KIND, either express or implied. See the License for the specific language
42695
+ * governing permissions and limitations under the License.
42696
+ */ // Keeps a ref count of all hidden elements. Added to when hiding an element, and
42697
+ // subtracted from when showing it again. When it reaches zero, aria-hidden is removed.
42698
+ new WeakMap();
42699
+
42734
42700
  /*
42735
42701
  * Copyright 2020 Adobe. All rights reserved.
42736
42702
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -43040,6 +43006,7 @@ function $7613b1592d41b092$export$6cd28814d92fa9c9(props, factory, context, inva
43040
43006
  let builder = (useMemo)(()=>new ($eb2240fc39a57fa5$export$bf788dd355e3a401)(), []);
43041
43007
  let prev = (useRef)(null);
43042
43008
  return (useMemo)(()=>{
43009
+ if (props.collection) return props.collection;
43043
43010
  let nodes = builder.build(props, context);
43044
43011
  prev.current = factory(nodes, prev.current);
43045
43012
  return prev.current;
@@ -43049,6 +43016,7 @@ function $7613b1592d41b092$export$6cd28814d92fa9c9(props, factory, context, inva
43049
43016
  builder,
43050
43017
  props.children,
43051
43018
  props.items,
43019
+ props.collection,
43052
43020
  context,
43053
43021
  ...invalidators
43054
43022
  ]);
@@ -43065,13 +43033,69 @@ function $7613b1592d41b092$export$6cd28814d92fa9c9(props, factory, context, inva
43065
43033
  * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
43066
43034
  * OF ANY KIND, either express or implied. See the License for the specific language
43067
43035
  * governing permissions and limitations under the License.
43068
- */ const $453cc9f0df89c0a5$var$cache = new WeakMap();
43036
+ */ /*
43037
+ * Copyright 2020 Adobe. All rights reserved.
43038
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
43039
+ * you may not use this file except in compliance with the License. You may obtain a copy
43040
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
43041
+ *
43042
+ * Unless required by applicable law or agreed to in writing, software distributed under
43043
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
43044
+ * OF ANY KIND, either express or implied. See the License for the specific language
43045
+ * governing permissions and limitations under the License.
43046
+ */ function $c5a24bc478652b5f$export$1005530eda016c13(node, collection) {
43047
+ // New API: call collection.getChildren with the node key.
43048
+ if (typeof collection.getChildren === "function") return collection.getChildren(node.key);
43049
+ // Old API: access childNodes directly.
43050
+ return node.childNodes;
43051
+ }
43052
+ function $c5a24bc478652b5f$export$fbdeaa6a76694f71(iterable) {
43053
+ return $c5a24bc478652b5f$export$5f3398f8733f90e2(iterable, 0);
43054
+ }
43055
+ function $c5a24bc478652b5f$export$5f3398f8733f90e2(iterable, index) {
43056
+ if (index < 0) return undefined;
43057
+ let i = 0;
43058
+ for (let item of iterable){
43059
+ if (i === index) return item;
43060
+ i++;
43061
+ }
43062
+ }
43063
+ function $c5a24bc478652b5f$export$8c434b3a7a4dad6(collection, a, b) {
43064
+ // If the two nodes have the same parent, compare their indices.
43065
+ if (a.parentKey === b.parentKey) return a.index - b.index;
43066
+ // Otherwise, collect all of the ancestors from each node, and find the first one that doesn't match starting from the root.
43067
+ let aAncestors = $c5a24bc478652b5f$var$getAncestors(collection, a);
43068
+ let bAncestors = $c5a24bc478652b5f$var$getAncestors(collection, b);
43069
+ let firstNonMatchingAncestor = aAncestors.slice(0, bAncestors.length).findIndex((a, i)=>a !== bAncestors[i]);
43070
+ if (firstNonMatchingAncestor !== -1) {
43071
+ // Compare the indices of two children within the common ancestor.
43072
+ a = aAncestors[firstNonMatchingAncestor];
43073
+ b = bAncestors[firstNonMatchingAncestor];
43074
+ return a.index - b.index;
43075
+ }
43076
+ // 🤷
43077
+ return -1;
43078
+ }
43079
+ function $c5a24bc478652b5f$var$getAncestors(collection, node) {
43080
+ let parents = [];
43081
+ while((node === null || node === void 0 ? void 0 : node.parentKey) != null){
43082
+ node = collection.getItem(node.parentKey);
43083
+ parents.unshift(node);
43084
+ }
43085
+ return parents;
43086
+ }
43087
+
43088
+
43089
+ const $453cc9f0df89c0a5$var$cache = new WeakMap();
43069
43090
  function $453cc9f0df89c0a5$export$77d5aafae4e095b2(collection) {
43070
43091
  let count = $453cc9f0df89c0a5$var$cache.get(collection);
43071
43092
  if (count != null) return count;
43072
43093
  count = 0;
43073
- for (let item of collection)if (item.type === "section") count += $453cc9f0df89c0a5$export$77d5aafae4e095b2(item.childNodes);
43074
- else count++;
43094
+ let countItems = (items)=>{
43095
+ for (let item of items)if (item.type === "section") countItems(($c5a24bc478652b5f$export$1005530eda016c13)(item, collection));
43096
+ else count++;
43097
+ };
43098
+ countItems(collection);
43075
43099
  $453cc9f0df89c0a5$var$cache.set(collection, count);
43076
43100
  return count;
43077
43101
  }
@@ -43413,12 +43437,27 @@ function $168583247155ddda$export$dc9c12ed27dd1b49(props, state, ref) {
43413
43437
  };
43414
43438
  }
43415
43439
 
43440
+
43416
43441
  /*
43417
43442
  * Copyright 2020 Adobe. All rights reserved.
43418
43443
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
43419
43444
  * you may not use this file except in compliance with the License. You may obtain a copy
43420
43445
  * of the License at http://www.apache.org/licenses/LICENSE-2.0
43421
- *
43446
+ *
43447
+ * Unless required by applicable law or agreed to in writing, software distributed under
43448
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
43449
+ * OF ANY KIND, either express or implied. See the License for the specific language
43450
+ * governing permissions and limitations under the License.
43451
+ */
43452
+
43453
+ new WeakMap();
43454
+
43455
+ /*
43456
+ * Copyright 2020 Adobe. All rights reserved.
43457
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
43458
+ * you may not use this file except in compliance with the License. You may obtain a copy
43459
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
43460
+ *
43422
43461
  * Unless required by applicable law or agreed to in writing, software distributed under
43423
43462
  * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
43424
43463
  * OF ANY KIND, either express or implied. See the License for the specific language
@@ -43854,6 +43893,7 @@ function $7af3f5b51489e0b5$var$convertSelection(selection, defaultValue) {
43854
43893
  * OF ANY KIND, either express or implied. See the License for the specific language
43855
43894
  * governing permissions and limitations under the License.
43856
43895
  */
43896
+
43857
43897
  class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
43858
43898
  /**
43859
43899
  * The type of selection that is allowed in the collection.
@@ -43936,7 +43976,7 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
43936
43976
  let first = null;
43937
43977
  for (let key of this.state.selectedKeys){
43938
43978
  let item = this.collection.getItem(key);
43939
- if (!first || (item === null || item === void 0 ? void 0 : item.index) < first.index) first = item;
43979
+ if (!first || item && ($c5a24bc478652b5f$export$8c434b3a7a4dad6)(this.collection, item, first) < 0) first = item;
43940
43980
  }
43941
43981
  return first === null || first === void 0 ? void 0 : first.key;
43942
43982
  }
@@ -43944,7 +43984,7 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
43944
43984
  let last = null;
43945
43985
  for (let key of this.state.selectedKeys){
43946
43986
  let item = this.collection.getItem(key);
43947
- if (!last || (item === null || item === void 0 ? void 0 : item.index) > last.index) last = item;
43987
+ if (!last || item && ($c5a24bc478652b5f$export$8c434b3a7a4dad6)(this.collection, item, last) > 0) last = item;
43948
43988
  }
43949
43989
  return last === null || last === void 0 ? void 0 : last.key;
43950
43990
  }
@@ -43981,7 +44021,7 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
43981
44021
  let fromItem = this.collection.getItem(from);
43982
44022
  let toItem = this.collection.getItem(to);
43983
44023
  if (fromItem && toItem) {
43984
- if (fromItem.index <= toItem.index) return this.getKeyRangeInternal(from, to);
44024
+ if (($c5a24bc478652b5f$export$8c434b3a7a4dad6)(this.collection, fromItem, toItem) <= 0) return this.getKeyRangeInternal(from, to);
43985
44025
  return this.getKeyRangeInternal(to, from);
43986
44026
  }
43987
44027
  return [];
@@ -44061,9 +44101,7 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
44061
44101
  let item = this.collection.getItem(key);
44062
44102
  if (item.type === "item") keys.push(key);
44063
44103
  // Add child keys. If cell selection is allowed, then include item children too.
44064
- if (item.hasChildNodes && (this.allowsCellSelection || item.type !== "item")) addKeys([
44065
- ...item.childNodes
44066
- ][0].key);
44104
+ if (item.hasChildNodes && (this.allowsCellSelection || item.type !== "item")) addKeys(($c5a24bc478652b5f$export$fbdeaa6a76694f71)(($c5a24bc478652b5f$export$1005530eda016c13)(item, this.collection)).key);
44067
44105
  }
44068
44106
  key = this.collection.getKeyAfter(key);
44069
44107
  }
@@ -44195,6 +44233,10 @@ class $a02d57049d202695$export$d085fb9e920b5ca7 {
44195
44233
  ];
44196
44234
  return this.getItem(keys[idx]);
44197
44235
  }
44236
+ getChildren(key) {
44237
+ let node = this.keyMap.get(key);
44238
+ return (node === null || node === void 0 ? void 0 : node.childNodes) || [];
44239
+ }
44198
44240
  constructor(nodes){
44199
44241
  (_defineProperty)(this, "keyMap", new Map());
44200
44242
  this.iterable = nodes;
@@ -44515,20 +44557,19 @@ function $293f70390ea03370$export$497855f14858aa34(props, state, ref) {
44515
44557
  let isDisabled = (_props_isDisabled = props.isDisabled) !== null && _props_isDisabled !== void 0 ? _props_isDisabled : state.disabledKeys.has(key);
44516
44558
  var _props_isSelected;
44517
44559
  let isSelected = (_props_isSelected = props.isSelected) !== null && _props_isSelected !== void 0 ? _props_isSelected : state.selectionManager.isSelected(key);
44518
- let isFocused = state.selectionManager.focusedKey === key;
44519
44560
  var _props_shouldSelectOnPressUp;
44520
- let shouldSelectOnPressUp = (_props_shouldSelectOnPressUp = props.shouldSelectOnPressUp) !== null && _props_shouldSelectOnPressUp !== void 0 ? _props_shouldSelectOnPressUp : data.shouldSelectOnPressUp;
44561
+ let shouldSelectOnPressUp = (_props_shouldSelectOnPressUp = props.shouldSelectOnPressUp) !== null && _props_shouldSelectOnPressUp !== void 0 ? _props_shouldSelectOnPressUp : data === null || data === void 0 ? void 0 : data.shouldSelectOnPressUp;
44521
44562
  var _props_shouldFocusOnHover;
44522
- let shouldFocusOnHover = (_props_shouldFocusOnHover = props.shouldFocusOnHover) !== null && _props_shouldFocusOnHover !== void 0 ? _props_shouldFocusOnHover : data.shouldFocusOnHover;
44563
+ let shouldFocusOnHover = (_props_shouldFocusOnHover = props.shouldFocusOnHover) !== null && _props_shouldFocusOnHover !== void 0 ? _props_shouldFocusOnHover : data === null || data === void 0 ? void 0 : data.shouldFocusOnHover;
44523
44564
  var _props_shouldUseVirtualFocus;
44524
- let shouldUseVirtualFocus = (_props_shouldUseVirtualFocus = props.shouldUseVirtualFocus) !== null && _props_shouldUseVirtualFocus !== void 0 ? _props_shouldUseVirtualFocus : data.shouldUseVirtualFocus;
44565
+ let shouldUseVirtualFocus = (_props_shouldUseVirtualFocus = props.shouldUseVirtualFocus) !== null && _props_shouldUseVirtualFocus !== void 0 ? _props_shouldUseVirtualFocus : data === null || data === void 0 ? void 0 : data.shouldUseVirtualFocus;
44525
44566
  var _props_isVirtualized;
44526
- let isVirtualized = (_props_isVirtualized = props.isVirtualized) !== null && _props_isVirtualized !== void 0 ? _props_isVirtualized : data.isVirtualized;
44567
+ let isVirtualized = (_props_isVirtualized = props.isVirtualized) !== null && _props_isVirtualized !== void 0 ? _props_isVirtualized : data === null || data === void 0 ? void 0 : data.isVirtualized;
44527
44568
  let labelId = ($bdb11010cef70236$export$b4cc09c592e8fdb8)();
44528
44569
  let descriptionId = ($bdb11010cef70236$export$b4cc09c592e8fdb8)();
44529
44570
  let optionProps = {
44530
44571
  role: "option",
44531
- "aria-disabled": isDisabled,
44572
+ "aria-disabled": isDisabled || undefined,
44532
44573
  "aria-selected": state.selectionManager.selectionMode !== "none" ? isSelected : undefined
44533
44574
  };
44534
44575
  // Safari with VoiceOver on macOS misreads options with aria-labelledby or aria-label as simply "text".
@@ -44540,10 +44581,12 @@ function $293f70390ea03370$export$497855f14858aa34(props, state, ref) {
44540
44581
  optionProps["aria-describedby"] = descriptionId;
44541
44582
  }
44542
44583
  if (isVirtualized) {
44543
- optionProps["aria-posinset"] = state.collection.getItem(key).index + 1;
44584
+ var _state_collection_getItem;
44585
+ let index = Number((_state_collection_getItem = state.collection.getItem(key)) === null || _state_collection_getItem === void 0 ? void 0 : _state_collection_getItem.index);
44586
+ optionProps["aria-posinset"] = Number.isNaN(index) ? undefined : index + 1;
44544
44587
  optionProps["aria-setsize"] = ($453cc9f0df89c0a5$export$77d5aafae4e095b2)(state.collection);
44545
44588
  }
44546
- let { itemProps: itemProps , isPressed: isPressed , hasAction: hasAction , allowsSelection: allowsSelection } = ($880e95eb8b93ba9a$export$ecf600387e221c37)({
44589
+ let { itemProps: itemProps , isPressed: isPressed , isFocused: isFocused , hasAction: hasAction , allowsSelection: allowsSelection } = ($880e95eb8b93ba9a$export$ecf600387e221c37)({
44547
44590
  selectionManager: state.selectionManager,
44548
44591
  key: key,
44549
44592
  ref: ref,
@@ -44552,7 +44595,10 @@ function $293f70390ea03370$export$497855f14858aa34(props, state, ref) {
44552
44595
  isVirtualized: isVirtualized,
44553
44596
  shouldUseVirtualFocus: shouldUseVirtualFocus,
44554
44597
  isDisabled: isDisabled,
44555
- onAction: data.onAction ? ()=>data.onAction(key) : undefined
44598
+ onAction: (data === null || data === void 0 ? void 0 : data.onAction) ? ()=>{
44599
+ var _data_onAction;
44600
+ return data === null || data === void 0 ? void 0 : (_data_onAction = data.onAction) === null || _data_onAction === void 0 ? void 0 : _data_onAction.call(data, key);
44601
+ } : undefined
44556
44602
  });
44557
44603
  let { hoverProps: hoverProps } = ($6179b936705e76d3$export$ae780daf29e6d456)({
44558
44604
  isDisabled: isDisabled || !shouldFocusOnHover,
@@ -44576,6 +44622,7 @@ function $293f70390ea03370$export$497855f14858aa34(props, state, ref) {
44576
44622
  id: descriptionId
44577
44623
  },
44578
44624
  isFocused: isFocused,
44625
+ isFocusVisible: isFocused && ($507fabe10e71c6fb$export$b9b3dfddab17db27)(),
44579
44626
  isSelected: isSelected,
44580
44627
  isDisabled: isDisabled,
44581
44628
  isPressed: isPressed,
@@ -44621,11 +44668,11 @@ function $af383d3bef1cfdc9$export$c3f9f39876e4bc7(props) {
44621
44668
  var styles$4 = {"listBox":"ListBox-module_listBox__FQ9sQ","focus":"ListBox-module_focus__Tm-jn"};
44622
44669
 
44623
44670
  var ListBox = function(_a) {
44624
- var children = _a.children, menuProps = _a.menuProps, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["children", "menuProps", "classNameOverride"]);
44671
+ var children = _a.children, menuProps = _a.menuProps, classNameOverride = _a.classNameOverride, restProps = __rest$1(_a, ["children", "menuProps", "classNameOverride"]);
44625
44672
  var state = useSelectContext().state;
44626
44673
  var ref = React__default.useRef(null);
44627
- var listBoxProps = $c132121280ec012d$export$50eacbbf140a3141(__assign(__assign({}, menuProps), { disallowEmptySelection: true, autoFocus: "first" }), state, ref).listBoxProps;
44628
- return React__default.createElement("ul", __assign({ ref, className: classNames(styles$4.listBox, classNameOverride) }, listBoxProps, restProps), children);
44674
+ var listBoxProps = $c132121280ec012d$export$50eacbbf140a3141(__assign$1(__assign$1({}, menuProps), { disallowEmptySelection: true, autoFocus: "first" }), state, ref).listBoxProps;
44675
+ return React__default.createElement("ul", __assign$1({ ref, className: classnames(styles$4.listBox, classNameOverride) }, listBoxProps, restProps), children);
44629
44676
  };
44630
44677
  ListBox.displayName = "ListBox";
44631
44678
 
@@ -44681,13 +44728,7 @@ var require$$2$4 = /*@__PURE__*/getAugmentedNamespace(Heading_module$1);
44681
44728
  var Heading = function(_a) {
44682
44729
  var children = _a.children, tag = _a.tag, variant = _a.variant, _b = _a.color, color = _b === void 0 ? "dark" : _b, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["children", "tag", "variant", "color", "classNameOverride"]);
44683
44730
  var inferredTag = tag === void 0 ? translateHeadingLevelToTag(variant) : tag;
44684
- var className = (0, classnames_1["default"])([
44685
- Heading_module_scss_1["default"].heading,
44686
- Heading_module_scss_1["default"][variant],
44687
- classNameOverride,
44688
- Heading_module_scss_1["default"][color],
44689
- VARIANTS_24PX_OR_GREATER.includes(variant) ? Heading_module_scss_1["default"].large : Heading_module_scss_1["default"].small
44690
- ]);
44731
+ var className = (0, classnames_1["default"])(Heading_module_scss_1["default"].heading, Heading_module_scss_1["default"][variant], classNameOverride, Heading_module_scss_1["default"][color], VARIANTS_24PX_OR_GREATER.includes(variant) ? Heading_module_scss_1["default"].large : Heading_module_scss_1["default"].small);
44691
44732
  return (0, react_1.createElement)(inferredTag, __assign(__assign({}, restProps), { className }), children);
44692
44733
  };
44693
44734
  exports.Heading = Heading;
@@ -44737,9 +44778,9 @@ var require$$2$4 = /*@__PURE__*/getAugmentedNamespace(Heading_module$1);
44737
44778
  __exportStar(Heading, exports);
44738
44779
  })(Heading$1);
44739
44780
 
44740
- var Paragraph$1 = {};
44781
+ var Paragraph$2 = {};
44741
44782
 
44742
- var Paragraph = {};
44783
+ var Paragraph$1 = {};
44743
44784
 
44744
44785
  var Paragraph_module = {"paragraph":"Paragraph-module_paragraph__4W6qH","intro-lede":"Paragraph-module_intro-lede__uFhW-","body":"Paragraph-module_body__0R0qn","small":"Paragraph-module_small__GQQjR","extra-small":"Paragraph-module_extra-small__Nx9pp","dark":"Paragraph-module_dark__x5bRT","dark-reduced-opacity":"Paragraph-module_dark-reduced-opacity__6jIPJ","white":"Paragraph-module_white__geIrR","white-reduced-opacity":"Paragraph-module_white-reduced-opacity__2Q7c7","positive":"Paragraph-module_positive__mC-GU","negative":"Paragraph-module_negative__KoAoh"};
44745
44786
 
@@ -44750,52 +44791,44 @@ var Paragraph_module$1 = /*#__PURE__*/Object.freeze({
44750
44791
 
44751
44792
  var require$$2$3 = /*@__PURE__*/getAugmentedNamespace(Paragraph_module$1);
44752
44793
 
44753
- (function(exports) {
44754
- var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
44755
- __assign = Object.assign || function(t) {
44756
- for (var s, i = 1, n = arguments.length; i < n; i++) {
44757
- s = arguments[i];
44758
- for (var p in s)
44759
- if (Object.prototype.hasOwnProperty.call(s, p))
44760
- t[p] = s[p];
44761
- }
44762
- return t;
44763
- };
44764
- return __assign.apply(this, arguments);
44765
- };
44766
- var __rest = commonjsGlobal && commonjsGlobal.__rest || function(s, e) {
44767
- var t = {};
44768
- for (var p in s)
44769
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
44770
- t[p] = s[p];
44771
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
44772
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
44773
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
44774
- t[p[i]] = s[p[i]];
44775
- }
44794
+ var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
44795
+ __assign = Object.assign || function(t) {
44796
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
44797
+ s = arguments[i];
44798
+ for (var p in s)
44799
+ if (Object.prototype.hasOwnProperty.call(s, p))
44800
+ t[p] = s[p];
44801
+ }
44776
44802
  return t;
44777
44803
  };
44778
- var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
44779
- return mod && mod.__esModule ? mod : { "default": mod };
44780
- };
44781
- exports.__esModule = true;
44782
- exports.Paragraph = void 0;
44783
- var react_1 = React__default;
44784
- var classnames_1 = __importDefault(classnamesExports);
44785
- var Paragraph_module_scss_1 = __importDefault(require$$2$3);
44786
- var Paragraph = function(_a) {
44787
- var children = _a.children, tag = _a.tag, variant = _a.variant, _b = _a.color, color = _b === void 0 ? "dark" : _b, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["children", "tag", "variant", "color", "classNameOverride"]);
44788
- var className = (0, classnames_1["default"])([
44789
- Paragraph_module_scss_1["default"].paragraph,
44790
- Paragraph_module_scss_1["default"][variant],
44791
- Paragraph_module_scss_1["default"][color],
44792
- classNameOverride
44793
- ]);
44794
- return (0, react_1.createElement)(tag === void 0 ? "p" : tag, __assign(__assign({}, restProps), { className }), children);
44795
- };
44796
- exports.Paragraph = Paragraph;
44797
- exports.Paragraph.displayName = "Paragraph";
44798
- })(Paragraph);
44804
+ return __assign.apply(this, arguments);
44805
+ };
44806
+ var __rest = commonjsGlobal && commonjsGlobal.__rest || function(s, e) {
44807
+ var t = {};
44808
+ for (var p in s)
44809
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
44810
+ t[p] = s[p];
44811
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
44812
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
44813
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
44814
+ t[p[i]] = s[p[i]];
44815
+ }
44816
+ return t;
44817
+ };
44818
+ var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
44819
+ return mod && mod.__esModule ? mod : { "default": mod };
44820
+ };
44821
+ Paragraph$1.__esModule = true;
44822
+ Paragraph$1.Paragraph = void 0;
44823
+ var react_1 = React__default;
44824
+ var classnames_1 = __importDefault(classnamesExports);
44825
+ var Paragraph_module_scss_1 = __importDefault(require$$2$3);
44826
+ var Paragraph = function(_a) {
44827
+ var children = _a.children, tag = _a.tag, variant = _a.variant, _b = _a.color, color = _b === void 0 ? "dark" : _b, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["children", "tag", "variant", "color", "classNameOverride"]);
44828
+ var className = (0, classnames_1["default"])(Paragraph_module_scss_1["default"].paragraph, Paragraph_module_scss_1["default"][variant], Paragraph_module_scss_1["default"][color], classNameOverride);
44829
+ return (0, react_1.createElement)(tag === void 0 ? "p" : tag, __assign(__assign({}, restProps), { className }), children);
44830
+ };
44831
+ Paragraph$1.Paragraph = Paragraph;
44799
44832
 
44800
44833
  (function(exports) {
44801
44834
  var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
@@ -44819,8 +44852,8 @@ var require$$2$3 = /*@__PURE__*/getAugmentedNamespace(Paragraph_module$1);
44819
44852
  __createBinding(exports2, m, p);
44820
44853
  };
44821
44854
  exports.__esModule = true;
44822
- __exportStar(Paragraph, exports);
44823
- })(Paragraph$1);
44855
+ __exportStar(Paragraph$1, exports);
44856
+ })(Paragraph$2);
44824
44857
 
44825
44858
  (function(exports) {
44826
44859
  var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o, m, k, k2) {
@@ -44845,7 +44878,7 @@ var require$$2$3 = /*@__PURE__*/getAugmentedNamespace(Paragraph_module$1);
44845
44878
  };
44846
44879
  exports.__esModule = true;
44847
44880
  __exportStar(Heading$1, exports);
44848
- __exportStar(Paragraph$1, exports);
44881
+ __exportStar(Paragraph$2, exports);
44849
44882
  })(typography);
44850
44883
 
44851
44884
  var componentLibrary = {};
@@ -44944,8 +44977,8 @@ var require$$3 = /*@__PURE__*/getAugmentedNamespace(Icon_module$1);
44944
44977
  var console_1 = console$1;
44945
44978
  var Icon_module_scss_1 = __importDefault(require$$3);
44946
44979
  var Icon = function(_a) {
44947
- var _b, _c;
44948
- var icon = _a.icon, _d = _a.inheritSize, inheritSize = _d === void 0 ? false : _d, _e = _a.role, role = _e === void 0 ? "img" : _e, _f = _a.title, title = _f === void 0 ? "" : _f, _g = _a.desc, desc = _g === void 0 ? "" : _g, classNameOverride = _a.classNameOverride, props = __rest(_a, ["icon", "inheritSize", "role", "title", "desc", "classNameOverride"]);
44980
+ var _b;
44981
+ var icon = _a.icon, _c = _a.inheritSize, inheritSize = _c === void 0 ? false : _c, _d = _a.role, role = _d === void 0 ? "img" : _d, _e = _a.title, title = _e === void 0 ? "" : _e, _f = _a.desc, desc = _f === void 0 ? "" : _f, classNameOverride = _a.classNameOverride, props = __rest(_a, ["icon", "inheritSize", "role", "title", "desc", "classNameOverride"]);
44949
44982
  var isMeaningfulImg = role === "img";
44950
44983
  if (isMeaningfulImg && !title) {
44951
44984
  (0, console_1.warn)(`
@@ -44967,7 +45000,7 @@ var require$$3 = /*@__PURE__*/getAugmentedNamespace(Icon_module$1);
44967
45000
  return react_1["default"].createElement(
44968
45001
  "svg",
44969
45002
  __assign({
44970
- className: (0, classnames_1["default"])(Icon_module_scss_1["default"].icon, classNameOverride, (_c = {}, _c[Icon_module_scss_1["default"].inheritSize] = inheritSize, _c)),
45003
+ className: (0, classnames_1["default"])(Icon_module_scss_1["default"].icon, classNameOverride, inheritSize && Icon_module_scss_1["default"].inheritSize),
44971
45004
  viewBox: icon.viewBox,
44972
45005
  // Work around IE11 making all SVGs focusable.
44973
45006
  // See http://simplyaccessible.com/article/7-solutions-svgs/#acc-heading-4
@@ -45211,10 +45244,9 @@ var require$$6 = /*@__PURE__*/getAugmentedNamespace(Dropdown_module$1);
45211
45244
  return react_1["default"].createElement(DropdownMenu_1["default"], { hideDropdownMenu: this.hideDropdownMenu, position: this.getPosition() }, this.props.children);
45212
45245
  };
45213
45246
  Dropdown2.prototype.render = function() {
45214
- var _a;
45215
- var _b = this.props, controlAction = _b.controlAction, automationId = _b.automationId, iconPosition = _b.iconPosition, reversedColor = _b.reversedColor;
45247
+ var _a = this.props, controlAction = _a.controlAction, automationId = _a.automationId, iconPosition = _a.iconPosition, reversedColor = _a.reversedColor;
45216
45248
  var reverseIcon = iconPosition === "end";
45217
- var btnClass = (0, classnames_1["default"])(Dropdown_module_scss_1["default"].dropdownButton, (_a = {}, _a[Dropdown_module_scss_1["default"].dropdownControlAction] = controlAction, _a[Dropdown_module_scss_1["default"].isOpen] = this.state.isMenuVisible, _a[Dropdown_module_scss_1["default"].reversedColor] = reversedColor, _a));
45249
+ var btnClass = (0, classnames_1["default"])(Dropdown_module_scss_1["default"].dropdownButton, controlAction && Dropdown_module_scss_1["default"].dropdownControlAction, this.state.isMenuVisible && Dropdown_module_scss_1["default"].isOpen, reversedColor && Dropdown_module_scss_1["default"].reversedColor);
45218
45250
  return react_1["default"].createElement(
45219
45251
  "div",
45220
45252
  { className: Dropdown_module_scss_1["default"].dropdown },
@@ -45482,7 +45514,6 @@ var MenuItem = {};
45482
45514
  var Icon_1 = Icon$1;
45483
45515
  var Menu_module_scss_1 = __importDefault(require$$1$2);
45484
45516
  var MenuItem = function(props) {
45485
- var _a;
45486
45517
  var icon = props.icon, hoverIcon = props.hoverIcon, children = props.children, action = props.action, active = props.active, destructive = props.destructive, automationId = props.automationId;
45487
45518
  var isLink = typeof action === "string";
45488
45519
  var label = react_1["default"].createElement(
@@ -45496,7 +45527,7 @@ var MenuItem = {};
45496
45527
  { className: Menu_module_scss_1["default"].menuItem__Icon },
45497
45528
  react_1["default"].createElement(Icon_1.Icon, { icon, role: "presentation" })
45498
45529
  );
45499
- var className = (0, classnames_1["default"])((_a = {}, _a[Menu_module_scss_1["default"].menuItem] = true, _a[Menu_module_scss_1["default"].hoverIcon] = icon && hoverIcon, _a[Menu_module_scss_1["default"]["menuItem--active"]] = active, _a[Menu_module_scss_1["default"]["menuItem--destructive"]] = destructive, _a));
45530
+ var className = (0, classnames_1["default"])(Menu_module_scss_1["default"].menuItem, icon && hoverIcon && Menu_module_scss_1["default"].hoverIcon, active && Menu_module_scss_1["default"]["menuItem--active"], destructive && Menu_module_scss_1["default"]["menuItem--destructive"]);
45500
45531
  if (typeof action === "string") {
45501
45532
  return react_1["default"].createElement(
45502
45533
  "a",
@@ -45586,10 +45617,9 @@ var require$$2$1 = /*@__PURE__*/getAugmentedNamespace(Text_module$1);
45586
45617
  var classnames_1 = __importDefault(classnamesExports);
45587
45618
  var Text_module_scss_1 = __importDefault(require$$2$1);
45588
45619
  var Text = function(_a) {
45589
- var _b;
45590
- var tag = _a.tag, children = _a.children, _c = _a.inheritBaseline, inheritBaseline = _c === void 0 ? false : _c, _d = _a.inline, inline = _d === void 0 ? false : _d, _e = _a.style, style = _e === void 0 ? "default-style" : _e;
45620
+ var tag = _a.tag, children = _a.children, _b = _a.inheritBaseline, inheritBaseline = _b === void 0 ? false : _b, _c = _a.inline, inline = _c === void 0 ? false : _c, _d = _a.style, style = _d === void 0 ? "default-style" : _d;
45591
45621
  return react_1["default"].createElement(tag, {
45592
- className: (0, classnames_1["default"])(Text_module_scss_1["default"][style], (_b = {}, _b[Text_module_scss_1["default"].inheritBaseline] = inheritBaseline, _b[Text_module_scss_1["default"].inline] = inline, _b))
45622
+ className: (0, classnames_1["default"])(Text_module_scss_1["default"][style], inheritBaseline && Text_module_scss_1["default"].inheritBaseline, inline && Text_module_scss_1["default"].inline)
45593
45623
  }, children);
45594
45624
  };
45595
45625
  Text.displayName = "Text";
@@ -46031,22 +46061,16 @@ var img = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='UTF-8'%3f%3e%3cs
46031
46061
  var styles$3 = {"option":"Option-module_option__U-MsL","disabled":"Option-module_disabled__RV081","icon":"Option-module_icon__0ECp6","isFocusVisible":"Option-module_isFocusVisible__yYC7y","isSelected":"Option-module_isSelected__L3nhB"};
46032
46062
 
46033
46063
  var Option = function(_a) {
46034
- var item = _a.item, classNameOverride = _a.classNameOverride, props = __rest(_a, ["item", "classNameOverride"]);
46064
+ var item = _a.item, classNameOverride = _a.classNameOverride, props = __rest$1(_a, ["item", "classNameOverride"]);
46035
46065
  var state = useSelectContext().state;
46036
46066
  var ref = React__default.useRef(null);
46037
46067
  var _b = $293f70390ea03370$export$497855f14858aa34({ key: item.key }, state, ref), optionProps = _b.optionProps, isSelected = _b.isSelected, isDisabled = _b.isDisabled;
46038
46068
  var _c = $f7dceffc5ad7768b$export$4e328f61c538687f(), isFocusVisible = _c.isFocusVisible, focusProps = _c.focusProps;
46039
46069
  return React__default.createElement(
46040
46070
  "li",
46041
- __assign({}, $3ef42575df84b30b$export$9d1611c77c2fe928(optionProps, focusProps, props), { ref, className: classNames([
46042
- styles$3.option,
46043
- isSelected && styles$3.isSelected,
46044
- isFocusVisible && styles$3.isFocusVisible,
46045
- isDisabled && styles$3.disabled,
46046
- classNameOverride
46047
- ]), "aria-label": item.textValue }),
46071
+ __assign$1({}, $3ef42575df84b30b$export$9d1611c77c2fe928(optionProps, focusProps, props), { ref, className: classnames(styles$3.option, isSelected && styles$3.isSelected, isFocusVisible && styles$3.isFocusVisible, isDisabled && styles$3.disabled, classNameOverride), "aria-label": item.textValue }),
46048
46072
  item.rendered,
46049
- React__default.createElement("span", { className: classNames([styles$3.icon, isSelected && styles$3.isSelected]) }, isSelected && React__default.createElement(componentLibrary.Icon, { icon: check, role: "presentation" }))
46073
+ React__default.createElement("span", { className: classnames(styles$3.icon, isSelected && styles$3.isSelected) }, isSelected && React__default.createElement(componentLibrary.Icon, { icon: check, role: "presentation" }))
46050
46074
  );
46051
46075
  };
46052
46076
  Option.displayName = "Option";
@@ -46064,9 +46088,9 @@ var ListBoxSection = function(_a) {
46064
46088
  null,
46065
46089
  React__default.createElement(
46066
46090
  "li",
46067
- __assign({}, itemProps, { className: styles$2.sectionWrapper }),
46068
- section.rendered && React__default.createElement(typography.Heading, __assign({ tag: "span", variant: "heading-6" }, headingProps, { classNameOverride: styles$2.sectionHeading }), section.rendered),
46069
- React__default.createElement("ul", __assign({}, groupProps, { className: styles$2.sectionList }), Array.from(section.childNodes).map(function(item) {
46091
+ __assign$1({}, itemProps, { className: styles$2.sectionWrapper }),
46092
+ section.rendered && React__default.createElement(typography.Heading, __assign$1({ tag: "span", variant: "heading-6" }, headingProps, { classNameOverride: styles$2.sectionHeading }), section.rendered),
46093
+ React__default.createElement("ul", __assign$1({}, groupProps, { className: styles$2.sectionList }), Array.from(section.childNodes).map(function(item) {
46070
46094
  return React__default.createElement(Option, { key: item.key, item });
46071
46095
  }))
46072
46096
  )
@@ -46089,13 +46113,13 @@ var ListItems = function(_a) {
46089
46113
  ListItems.displayName = "ListItems";
46090
46114
 
46091
46115
  var Overlay = function(_a) {
46092
- var children = _a.children, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["children", "classNameOverride"]);
46116
+ var children = _a.children, classNameOverride = _a.classNameOverride, restProps = __rest$1(_a, ["children", "classNameOverride"]);
46093
46117
  var state = useSelectContext().state;
46094
46118
  var overlayRef = React__default.useRef(null);
46095
46119
  var overlayProps = $a11501f3d1d39e6c$export$ea8f71083e90600f({ isDismissable: true, isOpen: state.isOpen, onClose: state.close }, overlayRef).overlayProps;
46096
46120
  return React__default.createElement(
46097
46121
  "div",
46098
- __assign({ ref: overlayRef, className: classNameOverride }, overlayProps, restProps),
46122
+ __assign$1({ ref: overlayRef, className: classNameOverride }, overlayProps, restProps),
46099
46123
  React__default.createElement(
46100
46124
  $9bf71ea28793e738$export$20e40289641fbbb6,
46101
46125
  { contain: true, autoFocus: true, restoreFocus: true },
@@ -46154,9 +46178,8 @@ var require$$2 = /*@__PURE__*/getAugmentedNamespace(Divider_module$1);
46154
46178
  var classnames_1 = __importDefault(classnamesExports);
46155
46179
  var Divider_module_scss_1 = __importDefault(require$$2);
46156
46180
  var Divider = function(_a) {
46157
- var _b;
46158
- var variant = _a.variant, _c = _a.isReversed, isReversed = _c === void 0 ? false : _c, classNameOverride = _a.classNameOverride, props = __rest(_a, ["variant", "isReversed", "classNameOverride"]);
46159
- return react_1["default"].createElement("hr", __assign({ "aria-hidden": "true", className: (0, classnames_1["default"])(Divider_module_scss_1["default"].wrapper, classNameOverride, (_b = {}, _b[Divider_module_scss_1["default"].reversed] = isReversed, _b[Divider_module_scss_1["default"].content] = variant === "content", _b[Divider_module_scss_1["default"].canvas] = variant === "canvas", _b[Divider_module_scss_1["default"].menuSeparator] = variant === "menuSeparator", _b)) }, props));
46181
+ var variant = _a.variant, _b = _a.isReversed, isReversed = _b === void 0 ? false : _b, classNameOverride = _a.classNameOverride, props = __rest(_a, ["variant", "isReversed", "classNameOverride"]);
46182
+ return react_1["default"].createElement("hr", __assign({ "aria-hidden": "true", className: (0, classnames_1["default"])(Divider_module_scss_1["default"].wrapper, classNameOverride, isReversed && Divider_module_scss_1["default"].reversed, Divider_module_scss_1["default"][variant]) }, props));
46160
46183
  };
46161
46184
  exports.Divider = Divider;
46162
46185
  exports.Divider.displayName = "Divider";
@@ -46207,7 +46230,7 @@ var transformSelectItemToCollectionElement = function(item) {
46207
46230
  var styles = {"filterContents":"FilterSelect-module_filterContents__2LknZ"};
46208
46231
 
46209
46232
  var FilterSelect = function(_a) {
46210
- var isOpen = _a.isOpen, setIsOpen = _a.setIsOpen, renderTrigger = _a.renderTrigger, label = _a.label, children = _a.children, items = _a.items, classNameOverride = _a.classNameOverride, restProps = __rest(_a, ["isOpen", "setIsOpen", "renderTrigger", "label", "children", "items", "classNameOverride"]);
46233
+ var isOpen = _a.isOpen, setIsOpen = _a.setIsOpen, renderTrigger = _a.renderTrigger, label = _a.label, children = _a.children, items = _a.items, classNameOverride = _a.classNameOverride, restProps = __rest$1(_a, ["isOpen", "setIsOpen", "renderTrigger", "label", "children", "items", "classNameOverride"]);
46211
46234
  var _b = useState({ current: null }), triggerRef = _b[0], setTriggerRef = _b[1];
46212
46235
  var disabledKeys = items.reduce(function(acc, item) {
46213
46236
  if (isSelectOptionGroup(item)) {
@@ -46220,7 +46243,7 @@ var FilterSelect = function(_a) {
46220
46243
  }
46221
46244
  return item.disabled ? __spreadArray(__spreadArray([], acc, true), [item.value], false) : acc;
46222
46245
  }, []);
46223
- var ariaSelectProps = __assign({ label, items, children: transformSelectItemToCollectionElement, isOpen, onOpenChange: setIsOpen, disabledKeys }, restProps);
46246
+ var ariaSelectProps = __assign$1({ label, items, children: transformSelectItemToCollectionElement, isOpen, onOpenChange: setIsOpen, disabledKeys }, restProps);
46224
46247
  var state = $2bc3a590c5373a4e$export$5159ec8b34d4ec12(ariaSelectProps);
46225
46248
  var _c = $58aed456727eb0f3$export$e64b2f635402ca43(ariaSelectProps, state, triggerRef), triggerProps = _c.triggerProps, menuProps = _c.menuProps;
46226
46249
  var buttonProps = $701a24aa0da5b062$export$ea18c227d4417cc3(triggerProps, triggerRef).buttonProps;
@@ -46233,7 +46256,7 @@ var FilterSelect = function(_a) {
46233
46256
  Filter,
46234
46257
  { isOpen, setIsOpen, renderTrigger: function() {
46235
46258
  var _a2;
46236
- return renderTrigger(__assign({ selectedValue: ((_a2 = state.selectedItem) === null || _a2 === void 0 ? void 0 : _a2.textValue) || void 0, label, isOpen }, buttonProps));
46259
+ return renderTrigger(__assign$1({ selectedValue: ((_a2 = state.selectedItem) === null || _a2 === void 0 ? void 0 : _a2.textValue) || void 0, label, isOpen }, buttonProps));
46237
46260
  }, onMount: setTriggerRef, classNameOverride },
46238
46261
  React__default.createElement(
46239
46262
  FilterContents,
@@ -46641,7 +46664,7 @@ var defaultTheme = heartTheme;
46641
46664
 
46642
46665
  var ThemeContext = createContext(defaultTheme);
46643
46666
  var ThemeProvider = function(_a) {
46644
- var themeManager = _a.themeManager, props = __rest(_a, ["themeManager"]);
46667
+ var themeManager = _a.themeManager, props = __rest$1(_a, ["themeManager"]);
46645
46668
  var themeManagerInstance = useState(function() {
46646
46669
  return themeManager || new ThemeManager(defaultTheme);
46647
46670
  })[0];