@indico-data/design-system 1.0.48 → 1.0.49

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.
Files changed (64) hide show
  1. package/lib/components/Accordion/Accordion.styles.d.ts +1 -275
  2. package/lib/components/Icon/Icon.stories.d.ts +2 -2
  3. package/lib/components/Icon/storyHelpers.d.ts +3 -813
  4. package/lib/components/ListTable/Header/Header.styles.d.ts +1 -272
  5. package/lib/components/ListTable/ListTable.styles.d.ts +1 -272
  6. package/lib/components/LoadingAwareContainer/LoadingAwareContainer.styles.d.ts +2 -543
  7. package/lib/components/Navigation/Drawer/DrawerLinkList.styles.d.ts +1 -272
  8. package/lib/components/Pagination/Pagination.styles.d.ts +1 -272
  9. package/lib/components/Wizard/Wizard.styles.d.ts +3 -814
  10. package/lib/components/basic-section/Section/Section.styles.d.ts +1 -272
  11. package/lib/components/basic-section/SectionBlock/SectionBlock.styles.d.ts +1 -272
  12. package/lib/components/basic-section/SectionBody/SectionBody.styles.d.ts +1 -272
  13. package/lib/components/basic-section/SectionHeader/SectionHeader.styles.d.ts +1 -272
  14. package/lib/components/basic-section/SectionTable/SectionTable.styles.d.ts +1 -272
  15. package/lib/components/buttons/Button/Button.styles.d.ts +1 -282
  16. package/lib/components/buttons/IconButton/IconButton.styles.d.ts +2 -567
  17. package/lib/components/dropdowns/BorderSelect/BorderSelect.styles.d.ts +2 -543
  18. package/lib/components/dropdowns/MultiCombobox/MultiCombobox.styles.d.ts +1 -84
  19. package/lib/components/dropdowns/Select/Select.styles.d.ts +1 -272
  20. package/lib/components/dropdowns/SingleCombobox/SingleCombobox.styles.d.ts +1 -84
  21. package/lib/components/index.d.ts +1 -1
  22. package/lib/components/inputs/EditableInput/EditableInput.styles.d.ts +1 -272
  23. package/lib/components/inputs/NumberInput/NumberInput.styles.d.ts +1 -272
  24. package/lib/components/inputs/RadioButtons/RadioButtons.d.ts +24 -0
  25. package/lib/components/inputs/RadioButtons/RadioButtons.stories.d.ts +15 -0
  26. package/lib/components/inputs/RadioButtons/RadioButtons.styles.d.ts +14 -0
  27. package/lib/components/inputs/RadioButtons/index.d.ts +1 -0
  28. package/lib/components/inputs/RadioGroup/RadioGroup.d.ts +27 -0
  29. package/lib/components/inputs/RadioGroup/RadioGroup.stories.d.ts +16 -0
  30. package/lib/components/inputs/RadioGroup/RadioGroup.styles.d.ts +2 -0
  31. package/lib/components/inputs/RadioGroup/index.d.ts +1 -0
  32. package/lib/components/inputs/SearchInput/SearchInput.styles.d.ts +1 -272
  33. package/lib/components/inputs/TextInput/TextInput.styles.d.ts +2 -543
  34. package/lib/components/inputs/index.d.ts +2 -0
  35. package/lib/components/loading-indicators/BarSpinner/BarSpinner.styles.d.ts +1 -272
  36. package/lib/components/loading-indicators/LoadingList/LoadingList.styles.d.ts +1 -272
  37. package/lib/components/loading-indicators/PercentageRing/PercentageRing.styles.d.ts +1 -272
  38. package/lib/components/modals/ConfirmModal/ConfirmModal.styles.d.ts +1 -272
  39. package/lib/components/modals/ModalBase/ModalBase.styles.d.ts +1 -3
  40. package/lib/components/user-feedback/Shrug/Shrug.styles.d.ts +1 -272
  41. package/lib/index.d.ts +191 -953
  42. package/lib/index.esm.js +1624 -186
  43. package/lib/index.esm.js.map +1 -1
  44. package/lib/index.js +1626 -184
  45. package/lib/index.js.map +1 -1
  46. package/lib/tokens/colors.d.ts +2 -0
  47. package/package.json +45 -42
  48. package/src/components/Wizard/Wizard.tsx +0 -1
  49. package/src/components/WizardWithSidebar/WizardWithSidebar.tsx +1 -0
  50. package/src/components/index.ts +10 -1
  51. package/src/components/inputs/RadioButtons/RadioButtons.stories.tsx +84 -0
  52. package/src/components/inputs/RadioButtons/RadioButtons.styles.ts +82 -0
  53. package/src/components/inputs/RadioButtons/RadioButtons.tsx +61 -0
  54. package/src/components/inputs/RadioButtons/index.tsx +1 -0
  55. package/src/components/inputs/RadioGroup/RadioGroup.stories.tsx +66 -0
  56. package/src/components/inputs/RadioGroup/RadioGroup.styles.ts +11 -0
  57. package/src/components/inputs/RadioGroup/RadioGroup.tsx +120 -0
  58. package/src/components/inputs/RadioGroup/index.ts +1 -0
  59. package/src/components/inputs/SearchInput/SearchInput.styles.ts +1 -1
  60. package/src/components/inputs/index.ts +2 -0
  61. package/src/components/loading-indicators/LoadingIndicator/LoadingIndicator.stories.tsx +0 -1
  62. package/src/index.ts +4 -0
  63. package/src/tokens/colors.ts +2 -0
  64. package/lib/components/Navigation/Drawer/constants.d.ts +0 -3
package/lib/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
2
  import styled, { css, createGlobalStyle, keyframes } from 'styled-components';
3
- import $73SJx$react, { useState, useEffect, useRef, useCallback, useMemo, useContext } from 'react';
3
+ import $73SJx$react, { useState, useEffect, useRef, useCallback, useContext, useMemo, createContext } from 'react';
4
4
  import 'react-dom/client';
5
5
  import ReactSelect, { components } from 'react-select';
6
6
  import { Link, NavLink } from 'react-router-dom';
@@ -140,6 +140,7 @@ const allColors = {
140
140
  bouqet: '#a35c9a',
141
141
  brick: '#c62828',
142
142
  brightDusk: '#efebf7',
143
+ britishShorthair: '#4b94eb',
143
144
  brown: '#785349',
144
145
  candyCorn: '#fcef4d',
145
146
  carnation: '#ff8adf',
@@ -150,6 +151,7 @@ const allColors = {
150
151
  charcoal: '#474b4b',
151
152
  chartreuse: '#34ff01',
152
153
  clay: '#283243',
154
+ clementine: '#F16E00',
153
155
  cocoaBean: '#5c1200',
154
156
  comet: '#5a6982',
155
157
  cornflower: '#2060ff',
@@ -8341,39 +8343,57 @@ var classnames = {exports: {}};
8341
8343
 
8342
8344
  var hasOwn = {}.hasOwnProperty;
8343
8345
 
8344
- function classNames() {
8345
- var classes = [];
8346
+ function classNames () {
8347
+ var classes = '';
8346
8348
 
8347
8349
  for (var i = 0; i < arguments.length; i++) {
8348
8350
  var arg = arguments[i];
8349
- if (!arg) continue;
8350
-
8351
- var argType = typeof arg;
8352
-
8353
- if (argType === 'string' || argType === 'number') {
8354
- classes.push(arg);
8355
- } else if (Array.isArray(arg)) {
8356
- if (arg.length) {
8357
- var inner = classNames.apply(null, arg);
8358
- if (inner) {
8359
- classes.push(inner);
8360
- }
8361
- }
8362
- } else if (argType === 'object') {
8363
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
8364
- classes.push(arg.toString());
8365
- continue;
8366
- }
8351
+ if (arg) {
8352
+ classes = appendClass(classes, parseValue(arg));
8353
+ }
8354
+ }
8367
8355
 
8368
- for (var key in arg) {
8369
- if (hasOwn.call(arg, key) && arg[key]) {
8370
- classes.push(key);
8371
- }
8372
- }
8356
+ return classes;
8357
+ }
8358
+
8359
+ function parseValue (arg) {
8360
+ if (typeof arg === 'string' || typeof arg === 'number') {
8361
+ return arg;
8362
+ }
8363
+
8364
+ if (typeof arg !== 'object') {
8365
+ return '';
8366
+ }
8367
+
8368
+ if (Array.isArray(arg)) {
8369
+ return classNames.apply(null, arg);
8370
+ }
8371
+
8372
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
8373
+ return arg.toString();
8374
+ }
8375
+
8376
+ var classes = '';
8377
+
8378
+ for (var key in arg) {
8379
+ if (hasOwn.call(arg, key) && arg[key]) {
8380
+ classes = appendClass(classes, key);
8373
8381
  }
8374
8382
  }
8375
8383
 
8376
- return classes.join(' ');
8384
+ return classes;
8385
+ }
8386
+
8387
+ function appendClass (value, newClass) {
8388
+ if (!newClass) {
8389
+ return value;
8390
+ }
8391
+
8392
+ if (value) {
8393
+ return value + ' ' + newClass;
8394
+ }
8395
+
8396
+ return value + newClass;
8377
8397
  }
8378
8398
 
8379
8399
  if (module.exports) {
@@ -9775,7 +9795,191 @@ function Button(props) {
9775
9795
  }), "data-cy": props['data-cy'], disabled: disabled, id: id, onClick: busy ? undefined : onClick, onFocus: onFocus, role: role, style: style, tabIndex: tabindex, type: type || 'button' }, rest, { children: [busy && jsx(CircleSpinner, { size: "0.9em", style: { marginRight: '0.5em' } }), children] })));
9776
9796
  }
9777
9797
 
9778
- 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}
9798
+ /*
9799
+ * Copyright 2020 Adobe. All rights reserved.
9800
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
9801
+ * you may not use this file except in compliance with the License. You may obtain a copy
9802
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
9803
+ *
9804
+ * Unless required by applicable law or agreed to in writing, software distributed under
9805
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9806
+ * OF ANY KIND, either express or implied. See the License for the specific language
9807
+ * governing permissions and limitations under the License.
9808
+ */ /*
9809
+ * Copyright 2020 Adobe. All rights reserved.
9810
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
9811
+ * you may not use this file except in compliance with the License. You may obtain a copy
9812
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
9813
+ *
9814
+ * Unless required by applicable law or agreed to in writing, software distributed under
9815
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9816
+ * OF ANY KIND, either express or implied. See the License for the specific language
9817
+ * governing permissions and limitations under the License.
9818
+ */
9819
+ function $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, defaultValue, onChange) {
9820
+ let [stateValue, setStateValue] = (useState)(value || defaultValue);
9821
+ let isControlledRef = (useRef)(value !== undefined);
9822
+ let isControlled = value !== undefined;
9823
+ (useEffect)(()=>{
9824
+ let wasControlled = isControlledRef.current;
9825
+ if (wasControlled !== isControlled) console.warn(`WARN: A component changed from ${wasControlled ? "controlled" : "uncontrolled"} to ${isControlled ? "controlled" : "uncontrolled"}.`);
9826
+ isControlledRef.current = isControlled;
9827
+ }, [
9828
+ isControlled
9829
+ ]);
9830
+ let currentValue = isControlled ? value : stateValue;
9831
+ let setValue = (useCallback)((value, ...args)=>{
9832
+ let onChangeCaller = (value, ...onChangeArgs)=>{
9833
+ if (onChange) {
9834
+ if (!Object.is(currentValue, value)) onChange(value, ...onChangeArgs);
9835
+ }
9836
+ if (!isControlled) // If uncontrolled, mutate the currentValue local variable so that
9837
+ // calling setState multiple times with the same value only emits onChange once.
9838
+ // We do not use a ref for this because we specifically _do_ want the value to
9839
+ // reset every render, and assigning to a ref in render breaks aborted suspended renders.
9840
+ // eslint-disable-next-line react-hooks/exhaustive-deps
9841
+ currentValue = value;
9842
+ };
9843
+ if (typeof value === "function") {
9844
+ console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320");
9845
+ // this supports functional updates https://reactjs.org/docs/hooks-reference.html#functional-updates
9846
+ // when someone using useControlledState calls setControlledState(myFunc)
9847
+ // this will call our useState setState with a function as well which invokes myFunc and calls onChange with the value from myFunc
9848
+ // if we're in an uncontrolled state, then we also return the value of myFunc which to setState looks as though it was just called with myFunc from the beginning
9849
+ // otherwise we just return the controlled value, which won't cause a rerender because React knows to bail out when the value is the same
9850
+ let updateFunction = (oldValue, ...functionArgs)=>{
9851
+ let interceptedValue = value(isControlled ? currentValue : oldValue, ...functionArgs);
9852
+ onChangeCaller(interceptedValue, ...args);
9853
+ if (!isControlled) return interceptedValue;
9854
+ return oldValue;
9855
+ };
9856
+ setStateValue(updateFunction);
9857
+ } else {
9858
+ if (!isControlled) setStateValue(value);
9859
+ onChangeCaller(value, ...args);
9860
+ }
9861
+ }, [
9862
+ isControlled,
9863
+ currentValue,
9864
+ onChange
9865
+ ]);
9866
+ return [
9867
+ currentValue,
9868
+ setValue
9869
+ ];
9870
+ }
9871
+
9872
+ /*
9873
+ * Copyright 2020 Adobe. All rights reserved.
9874
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
9875
+ * you may not use this file except in compliance with the License. You may obtain a copy
9876
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
9877
+ *
9878
+ * Unless required by applicable law or agreed to in writing, software distributed under
9879
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9880
+ * OF ANY KIND, either express or implied. See the License for the specific language
9881
+ * governing permissions and limitations under the License.
9882
+ */ /*
9883
+ * Copyright 2020 Adobe. All rights reserved.
9884
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
9885
+ * you may not use this file except in compliance with the License. You may obtain a copy
9886
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
9887
+ *
9888
+ * Unless required by applicable law or agreed to in writing, software distributed under
9889
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9890
+ * OF ANY KIND, either express or implied. See the License for the specific language
9891
+ * governing permissions and limitations under the License.
9892
+ */ // We must avoid a circular dependency with @react-aria/utils, and this useLayoutEffect is
9893
+ // guarded by a check that it only runs on the client side.
9894
+ // eslint-disable-next-line rulesdir/useLayoutEffectRule
9895
+
9896
+ // Default context value to use in case there is no SSRProvider. This is fine for
9897
+ // client-only apps. In order to support multiple copies of React Aria potentially
9898
+ // being on the page at once, the prefix is set to a random number. SSRProvider
9899
+ // will reset this to zero for consistency between server and client, so in the
9900
+ // SSR case multiple copies of React Aria is not supported.
9901
+ const $b5e257d569688ac6$var$defaultContext = {
9902
+ prefix: String(Math.round(Math.random() * 10000000000)),
9903
+ current: 0
9904
+ };
9905
+ const $b5e257d569688ac6$var$SSRContext = /*#__PURE__*/ ($73SJx$react).createContext($b5e257d569688ac6$var$defaultContext);
9906
+ const $b5e257d569688ac6$var$IsSSRContext = /*#__PURE__*/ ($73SJx$react).createContext(false);
9907
+ let $b5e257d569688ac6$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
9908
+ let $b5e257d569688ac6$var$componentIds = new WeakMap();
9909
+ function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
9910
+ let ctx = (useContext)($b5e257d569688ac6$var$SSRContext);
9911
+ let ref = (useRef)(null);
9912
+ // eslint-disable-next-line rulesdir/pure-render
9913
+ if (ref.current === null && !isDisabled) {
9914
+ var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
9915
+ // In strict mode, React renders components twice, and the ref will be reset to null on the second render.
9916
+ // This means our id counter will be incremented twice instead of once. This is a problem because on the
9917
+ // server, components are only rendered once and so ids generated on the server won't match the client.
9918
+ // In React 18, useId was introduced to solve this, but it is not available in older versions. So to solve this
9919
+ // we need to use some React internals to access the underlying Fiber instance, which is stable between renders.
9920
+ // This is exposed as ReactCurrentOwner in development, which is all we need since StrictMode only runs in development.
9921
+ // To ensure that we only increment the global counter once, we store the starting id for this component in
9922
+ // a weak map associated with the Fiber. On the second render, we reset the global counter to this value.
9923
+ // Since React runs the second render immediately after the first, this is safe.
9924
+ // @ts-ignore
9925
+ let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ($73SJx$react).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 ? void 0 : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;
9926
+ if (currentOwner) {
9927
+ let prevComponentValue = $b5e257d569688ac6$var$componentIds.get(currentOwner);
9928
+ if (prevComponentValue == null) // On the first render, and first call to useId, store the id and state in our weak map.
9929
+ $b5e257d569688ac6$var$componentIds.set(currentOwner, {
9930
+ id: ctx.current,
9931
+ state: currentOwner.memoizedState
9932
+ });
9933
+ else if (currentOwner.memoizedState !== prevComponentValue.state) {
9934
+ // On the second render, the memoizedState gets reset by React.
9935
+ // Reset the counter, and remove from the weak map so we don't
9936
+ // do this for subsequent useId calls.
9937
+ ctx.current = prevComponentValue.id;
9938
+ $b5e257d569688ac6$var$componentIds.delete(currentOwner);
9939
+ }
9940
+ }
9941
+ // eslint-disable-next-line rulesdir/pure-render
9942
+ ref.current = ++ctx.current;
9943
+ }
9944
+ // eslint-disable-next-line rulesdir/pure-render
9945
+ return ref.current;
9946
+ }
9947
+ function $b5e257d569688ac6$var$useLegacySSRSafeId(defaultId) {
9948
+ let ctx = (useContext)($b5e257d569688ac6$var$SSRContext);
9949
+ // If we are rendering in a non-DOM environment, and there's no SSRProvider,
9950
+ // provide a warning to hint to the developer to add one.
9951
+ if (ctx === $b5e257d569688ac6$var$defaultContext && !$b5e257d569688ac6$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.");
9952
+ let counter = $b5e257d569688ac6$var$useCounter(!!defaultId);
9953
+ let prefix = ctx === $b5e257d569688ac6$var$defaultContext && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${ctx.prefix}`;
9954
+ return defaultId || `${prefix}-${counter}`;
9955
+ }
9956
+ function $b5e257d569688ac6$var$useModernSSRSafeId(defaultId) {
9957
+ // @ts-ignore
9958
+ let id = ($73SJx$react).useId();
9959
+ let [didSSR] = (useState)($b5e257d569688ac6$export$535bd6ca7f90a273());
9960
+ let prefix = didSSR || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`;
9961
+ return defaultId || `${prefix}-${id}`;
9962
+ }
9963
+ const $b5e257d569688ac6$export$619500959fc48b26 = typeof ($73SJx$react)["useId"] === "function" ? $b5e257d569688ac6$var$useModernSSRSafeId : $b5e257d569688ac6$var$useLegacySSRSafeId;
9964
+ function $b5e257d569688ac6$var$getSnapshot() {
9965
+ return false;
9966
+ }
9967
+ function $b5e257d569688ac6$var$getServerSnapshot() {
9968
+ return true;
9969
+ }
9970
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
9971
+ function $b5e257d569688ac6$var$subscribe(onStoreChange) {
9972
+ // noop
9973
+ return ()=>{};
9974
+ }
9975
+ function $b5e257d569688ac6$export$535bd6ca7f90a273() {
9976
+ // In React 18, we can use useSyncExternalStore to detect if we're server rendering or hydrating.
9977
+ if (typeof ($73SJx$react)["useSyncExternalStore"] === "function") return ($73SJx$react)["useSyncExternalStore"]($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot);
9978
+ // eslint-disable-next-line react-hooks/rules-of-hooks
9979
+ return (useContext)($b5e257d569688ac6$var$IsSSRContext);
9980
+ }
9981
+
9982
+ 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)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
9779
9983
 
9780
9984
  /*
9781
9985
  * Copyright 2020 Adobe. All rights reserved.
@@ -9849,7 +10053,72 @@ function $8ae05eaa5c114e9c$export$7f54fc3180508a52(fn) {
9849
10053
  return f(...args);
9850
10054
  }, []);
9851
10055
  }
10056
+
10057
+
10058
+ function $1dbecbe27a04f9af$export$14d238f342723f25(defaultValue) {
10059
+ let [value, setValue] = (useState)(defaultValue);
10060
+ let effect = (useRef)(null);
10061
+ // Store the function in a ref so we can always access the current version
10062
+ // which has the proper `value` in scope.
10063
+ let nextRef = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)(()=>{
10064
+ // Run the generator to the next yield.
10065
+ let newValue = effect.current.next();
10066
+ // If the generator is done, reset the effect.
10067
+ if (newValue.done) {
10068
+ effect.current = null;
10069
+ return;
10070
+ }
10071
+ // If the value is the same as the current value,
10072
+ // then continue to the next yield. Otherwise,
10073
+ // set the value in state and wait for the next layout effect.
10074
+ if (value === newValue.value) nextRef();
10075
+ else setValue(newValue.value);
10076
+ });
10077
+ ($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
10078
+ // If there is an effect currently running, continue to the next yield.
10079
+ if (effect.current) nextRef();
10080
+ });
10081
+ let queue = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)((fn)=>{
10082
+ effect.current = fn(value);
10083
+ nextRef();
10084
+ });
10085
+ return [
10086
+ value,
10087
+ queue
10088
+ ];
10089
+ }
10090
+
10091
+
10092
+ // copied from SSRProvider.tsx to reduce exports, if needed again, consider sharing
10093
+ let $bdb11010cef70236$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
9852
10094
  let $bdb11010cef70236$var$idsUpdaterMap = new Map();
10095
+ function $bdb11010cef70236$export$f680877a34711e37(defaultId) {
10096
+ let [value, setValue] = (useState)(defaultId);
10097
+ let nextId = (useRef)(null);
10098
+ let res = ($b5e257d569688ac6$export$619500959fc48b26)(value);
10099
+ let updateValue = (useCallback)((val)=>{
10100
+ nextId.current = val;
10101
+ }, []);
10102
+ if ($bdb11010cef70236$var$canUseDOM) $bdb11010cef70236$var$idsUpdaterMap.set(res, updateValue);
10103
+ ($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
10104
+ let r = res;
10105
+ return ()=>{
10106
+ $bdb11010cef70236$var$idsUpdaterMap.delete(r);
10107
+ };
10108
+ }, [
10109
+ res
10110
+ ]);
10111
+ // This cannot cause an infinite loop because the ref is updated first.
10112
+ // eslint-disable-next-line
10113
+ (useEffect)(()=>{
10114
+ let newId = nextId.current;
10115
+ if (newId) {
10116
+ nextId.current = null;
10117
+ setValue(newId);
10118
+ }
10119
+ });
10120
+ return res;
10121
+ }
9853
10122
  function $bdb11010cef70236$export$cd8c9cb68f842629(idA, idB) {
9854
10123
  if (idA === idB) return idA;
9855
10124
  let setIdA = $bdb11010cef70236$var$idsUpdaterMap.get(idA);
@@ -9864,6 +10133,25 @@ function $bdb11010cef70236$export$cd8c9cb68f842629(idA, idB) {
9864
10133
  }
9865
10134
  return idB;
9866
10135
  }
10136
+ function $bdb11010cef70236$export$b4cc09c592e8fdb8(depArray = []) {
10137
+ let id = $bdb11010cef70236$export$f680877a34711e37();
10138
+ let [resolvedId, setResolvedId] = ($1dbecbe27a04f9af$export$14d238f342723f25)(id);
10139
+ let updateId = (useCallback)(()=>{
10140
+ setResolvedId(function*() {
10141
+ yield id;
10142
+ yield document.getElementById(id) ? id : undefined;
10143
+ });
10144
+ }, [
10145
+ id,
10146
+ setResolvedId
10147
+ ]);
10148
+ ($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(updateId, [
10149
+ id,
10150
+ updateId,
10151
+ ...depArray
10152
+ ]);
10153
+ return resolvedId;
10154
+ }
9867
10155
 
9868
10156
 
9869
10157
  /*
@@ -10246,6 +10534,41 @@ function $03deb23ff14920c4$export$4eaf04e54aa8eed6() {
10246
10534
  }
10247
10535
 
10248
10536
 
10537
+ /*
10538
+ * Copyright 2020 Adobe. All rights reserved.
10539
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
10540
+ * you may not use this file except in compliance with the License. You may obtain a copy
10541
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
10542
+ *
10543
+ * Unless required by applicable law or agreed to in writing, software distributed under
10544
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
10545
+ * OF ANY KIND, either express or implied. See the License for the specific language
10546
+ * governing permissions and limitations under the License.
10547
+ */
10548
+ function $313b98861ee5dd6c$export$d6875122194c7b44(props, defaultLabel) {
10549
+ let { id: id, "aria-label": label, "aria-labelledby": labelledBy } = props;
10550
+ // If there is both an aria-label and aria-labelledby,
10551
+ // combine them by pointing to the element itself.
10552
+ id = ($bdb11010cef70236$export$f680877a34711e37)(id);
10553
+ if (labelledBy && label) {
10554
+ let ids = new Set([
10555
+ id,
10556
+ ...labelledBy.trim().split(/\s+/)
10557
+ ]);
10558
+ labelledBy = [
10559
+ ...ids
10560
+ ].join(" ");
10561
+ } else if (labelledBy) labelledBy = labelledBy.trim().split(/\s+/).join(" ");
10562
+ // If no labels are provided, use the default
10563
+ if (!label && !labelledBy && defaultLabel) label = defaultLabel;
10564
+ return {
10565
+ id: id,
10566
+ "aria-label": label,
10567
+ "aria-labelledby": labelledBy
10568
+ };
10569
+ }
10570
+
10571
+
10249
10572
  /*
10250
10573
  * Copyright 2020 Adobe. All rights reserved.
10251
10574
  * This file is licensed to you under the Apache License, Version 2.0 (the "License");
@@ -10300,6 +10623,37 @@ function $6a7db85432448f7f$export$29bf1b5f2c56cf63(event) {
10300
10623
  return !($c87311424ea30a05$export$a11b0059900ceec8)() && event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse";
10301
10624
  }
10302
10625
 
10626
+
10627
+ /*
10628
+ * Copyright 2023 Adobe. All rights reserved.
10629
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
10630
+ * you may not use this file except in compliance with the License. You may obtain a copy
10631
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
10632
+ *
10633
+ * Unless required by applicable law or agreed to in writing, software distributed under
10634
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
10635
+ * OF ANY KIND, either express or implied. See the License for the specific language
10636
+ * governing permissions and limitations under the License.
10637
+ */
10638
+
10639
+ function $99facab73266f662$export$5add1d006293d136(ref, initialValue, onReset) {
10640
+ let resetValue = (useRef)(initialValue);
10641
+ let handleReset = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)(()=>{
10642
+ if (onReset) onReset(resetValue.current);
10643
+ });
10644
+ (useEffect)(()=>{
10645
+ var _ref_current;
10646
+ let form = ref === null || ref === void 0 ? void 0 : (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.form;
10647
+ form === null || form === void 0 ? void 0 : form.addEventListener("reset", handleReset);
10648
+ return ()=>{
10649
+ form === null || form === void 0 ? void 0 : form.removeEventListener("reset", handleReset);
10650
+ };
10651
+ }, [
10652
+ ref,
10653
+ handleReset
10654
+ ]);
10655
+ }
10656
+
10303
10657
  function _class_apply_descriptor_get(receiver, descriptor) {
10304
10658
  if (descriptor.get) return descriptor.get.call(receiver);
10305
10659
 
@@ -10444,7 +10798,7 @@ function $14c0b72509d70225$export$b0d6fa1ab32e3295(target) {
10444
10798
  {
10445
10799
  if (target && $14c0b72509d70225$var$modifiedElementMap.has(target)) {
10446
10800
  let targetOldUserSelect = $14c0b72509d70225$var$modifiedElementMap.get(target);
10447
- if (target.style.userSelect === "none" && targetOldUserSelect) target.style.userSelect = targetOldUserSelect;
10801
+ if (target.style.userSelect === "none") target.style.userSelect = targetOldUserSelect;
10448
10802
  if (target.getAttribute("style") === "") target.removeAttribute("style");
10449
10803
  $14c0b72509d70225$var$modifiedElementMap.delete(target);
10450
10804
  }
@@ -11282,6 +11636,10 @@ function $507fabe10e71c6fb$export$b9b3dfddab17db27() {
11282
11636
  function $507fabe10e71c6fb$export$630ff653c5ada6a9() {
11283
11637
  return $507fabe10e71c6fb$var$currentModality;
11284
11638
  }
11639
+ function $507fabe10e71c6fb$export$8397ddfc504fdb9a(modality) {
11640
+ $507fabe10e71c6fb$var$currentModality = modality;
11641
+ $507fabe10e71c6fb$var$triggerChangeHandlers(modality, null);
11642
+ }
11285
11643
  const $507fabe10e71c6fb$var$nonTextInputTypes = new Set([
11286
11644
  "checkbox",
11287
11645
  "radio",
@@ -11475,19 +11833,84 @@ function $6a99195332edec8b$export$80f3e147d781571c(element) {
11475
11833
  // the page before shifting focus. This avoids issues with VoiceOver on iOS
11476
11834
  // causing the page to scroll when moving focus if the element is transitioning
11477
11835
  // from off the screen.
11836
+ const ownerDocument = ($431fbd86ca7dc216$export$b204af158042fbac)(element);
11478
11837
  if (($507fabe10e71c6fb$export$630ff653c5ada6a9)() === "virtual") {
11479
- let lastFocusedElement = document.activeElement;
11838
+ let lastFocusedElement = ownerDocument.activeElement;
11480
11839
  ($bbed8b41f857bcc0$export$24490316f764c430)(()=>{
11481
11840
  // If focus did not move and the element is still in the document, focus it.
11482
- if (document.activeElement === lastFocusedElement && document.contains(element)) ($7215afc6de606d6b$export$de79e2c695e052f3)(element);
11841
+ if (ownerDocument.activeElement === lastFocusedElement && element.isConnected) ($7215afc6de606d6b$export$de79e2c695e052f3)(element);
11483
11842
  });
11484
11843
  } else ($7215afc6de606d6b$export$de79e2c695e052f3)(element);
11485
11844
  }
11845
+
11846
+
11847
+
11848
+ /*
11849
+ * Copyright 2021 Adobe. All rights reserved.
11850
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
11851
+ * you may not use this file except in compliance with the License. You may obtain a copy
11852
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
11853
+ *
11854
+ * Unless required by applicable law or agreed to in writing, software distributed under
11855
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
11856
+ * OF ANY KIND, either express or implied. See the License for the specific language
11857
+ * governing permissions and limitations under the License.
11858
+ */
11859
+ function $645f2e67b85a24c9$var$isStyleVisible(element) {
11860
+ const windowObject = ($431fbd86ca7dc216$export$f21a1ffae260145a)(element);
11861
+ if (!(element instanceof windowObject.HTMLElement) && !(element instanceof windowObject.SVGElement)) return false;
11862
+ let { display: display, visibility: visibility } = element.style;
11863
+ let isVisible = display !== "none" && visibility !== "hidden" && visibility !== "collapse";
11864
+ if (isVisible) {
11865
+ const { getComputedStyle: getComputedStyle } = element.ownerDocument.defaultView;
11866
+ let { display: computedDisplay, visibility: computedVisibility } = getComputedStyle(element);
11867
+ isVisible = computedDisplay !== "none" && computedVisibility !== "hidden" && computedVisibility !== "collapse";
11868
+ }
11869
+ return isVisible;
11870
+ }
11871
+ function $645f2e67b85a24c9$var$isAttributeVisible(element, childElement) {
11872
+ return !element.hasAttribute("hidden") && (element.nodeName === "DETAILS" && childElement && childElement.nodeName !== "SUMMARY" ? element.hasAttribute("open") : true);
11873
+ }
11874
+ function $645f2e67b85a24c9$export$e989c0fffaa6b27a(element, childElement) {
11875
+ return element.nodeName !== "#comment" && $645f2e67b85a24c9$var$isStyleVisible(element) && $645f2e67b85a24c9$var$isAttributeVisible(element, childElement) && (!element.parentElement || $645f2e67b85a24c9$export$e989c0fffaa6b27a(element.parentElement, element));
11876
+ }
11877
+ const $9bf71ea28793e738$var$focusableElements = [
11878
+ "input:not([disabled]):not([type=hidden])",
11879
+ "select:not([disabled])",
11880
+ "textarea:not([disabled])",
11881
+ "button:not([disabled])",
11882
+ "a[href]",
11883
+ "area[href]",
11884
+ "summary",
11885
+ "iframe",
11886
+ "object",
11887
+ "embed",
11888
+ "audio[controls]",
11889
+ "video[controls]",
11890
+ "[contenteditable]"
11891
+ ];
11892
+ const $9bf71ea28793e738$var$FOCUSABLE_ELEMENT_SELECTOR = $9bf71ea28793e738$var$focusableElements.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
11893
+ $9bf71ea28793e738$var$focusableElements.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
11894
+ const $9bf71ea28793e738$var$TABBABLE_ELEMENT_SELECTOR = $9bf71ea28793e738$var$focusableElements.join(':not([hidden]):not([tabindex="-1"]),');
11486
11895
  function $9bf71ea28793e738$var$isElementInScope(element, scope) {
11487
11896
  if (!element) return false;
11488
11897
  if (!scope) return false;
11489
11898
  return scope.some((node)=>node.contains(element));
11490
11899
  }
11900
+ function $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, opts, scope) {
11901
+ let selector = (opts === null || opts === void 0 ? void 0 : opts.tabbable) ? $9bf71ea28793e738$var$TABBABLE_ELEMENT_SELECTOR : $9bf71ea28793e738$var$FOCUSABLE_ELEMENT_SELECTOR;
11902
+ let walker = ($431fbd86ca7dc216$export$b204af158042fbac)(root).createTreeWalker(root, NodeFilter.SHOW_ELEMENT, {
11903
+ acceptNode (node) {
11904
+ var _opts_from;
11905
+ // Skip nodes inside the starting node.
11906
+ if (opts === null || opts === void 0 ? void 0 : (_opts_from = opts.from) === null || _opts_from === void 0 ? void 0 : _opts_from.contains(node)) return NodeFilter.FILTER_REJECT;
11907
+ if (node.matches(selector) && ($645f2e67b85a24c9$export$e989c0fffaa6b27a)(node) && (!scope || $9bf71ea28793e738$var$isElementInScope(node, scope)) && (!(opts === null || opts === void 0 ? void 0 : opts.accept) || opts.accept(node))) return NodeFilter.FILTER_ACCEPT;
11908
+ return NodeFilter.FILTER_SKIP;
11909
+ }
11910
+ });
11911
+ if (opts === null || opts === void 0 ? void 0 : opts.from) walker.currentNode = opts.from;
11912
+ return walker;
11913
+ }
11491
11914
  class $9bf71ea28793e738$var$Tree {
11492
11915
  get size() {
11493
11916
  return this.fastMap.size;
@@ -12357,54 +12780,1070 @@ function TextInput(props) {
12357
12780
  }) })), maxLength && (jsxs("div", { className: classNames('count', { isMax: (value === null || value === void 0 ? void 0 : value.length) === maxLength }), children: [(value === null || value === void 0 ? void 0 : value.length) || 0, " / ", maxLength] }))] }))] }));
12358
12781
  }
12359
12782
 
12360
- const paddingRight = '30px';
12361
- const StyledPagination = styled.div `
12362
- width: 100%;
12363
- position: relative;
12364
-
12365
- .Pagination--stats {
12366
- display: inline-block;
12367
- padding: 10px 0;
12368
- line-height: 1.6;
12369
- }
12370
-
12371
- .Pagination--button-group {
12372
- display: flex;
12373
- justify-content: flex-end;
12374
- width: calc(25% + ${paddingRight});
12375
- padding: 10px ${paddingRight} 10px 0;
12376
- position: absolute;
12377
- top: 0;
12378
- right: 0;
12379
-
12380
- > * {
12381
- display: inline-block;
12382
- font-size: 18px;
12383
- vertical-align: middle;
12384
- margin-right: 8px;
12385
- }
12386
-
12387
- button {
12388
- width: auto;
12389
- padding: 0;
12390
- display: inline-block;
12391
- background: none;
12392
- box-shadow: none;
12393
- text-decoration: underline;
12394
- color: ${allColors.midFontColor};
12783
+ /*
12784
+ * Copyright 2023 Adobe. All rights reserved.
12785
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
12786
+ * you may not use this file except in compliance with the License. You may obtain a copy
12787
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
12788
+ *
12789
+ * Unless required by applicable law or agreed to in writing, software distributed under
12790
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12791
+ * OF ANY KIND, either express or implied. See the License for the specific language
12792
+ * governing permissions and limitations under the License.
12793
+ */ /*
12794
+ * Copyright 2023 Adobe. All rights reserved.
12795
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
12796
+ * you may not use this file except in compliance with the License. You may obtain a copy
12797
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
12798
+ *
12799
+ * Unless required by applicable law or agreed to in writing, software distributed under
12800
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12801
+ * OF ANY KIND, either express or implied. See the License for the specific language
12802
+ * governing permissions and limitations under the License.
12803
+ */
12395
12804
 
12396
- &:hover {
12397
- color: ${allColors.defaultFontColor};
12398
- }
12399
12805
 
12400
- &.Pagination--non-click {
12401
- text-decoration: none;
12402
- }
12806
+ function $e93e671b31057976$export$b8473d3665f3a75a(props, state, ref) {
12807
+ let { validationBehavior: validationBehavior, focus: focus } = props;
12808
+ // This is a useLayoutEffect so that it runs before the useEffect in useFormValidationState, which commits the validation change.
12809
+ ($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
12810
+ if (validationBehavior === "native" && (ref === null || ref === void 0 ? void 0 : ref.current)) {
12811
+ let errorMessage = state.realtimeValidation.isInvalid ? state.realtimeValidation.validationErrors.join(" ") || "Invalid value." : "";
12812
+ ref.current.setCustomValidity(errorMessage);
12813
+ // Prevent default tooltip for validation message.
12814
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=605277
12815
+ if (!ref.current.hasAttribute("title")) ref.current.title = "";
12816
+ if (!state.realtimeValidation.isInvalid) state.updateValidation($e93e671b31057976$var$getNativeValidity(ref.current));
12817
+ }
12818
+ });
12819
+ let onReset = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)(()=>{
12820
+ state.resetValidation();
12821
+ });
12822
+ let onInvalid = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)((e)=>{
12823
+ var _ref_current;
12824
+ // Only commit validation if we are not already displaying one.
12825
+ // This avoids clearing server errors that the user didn't actually fix.
12826
+ if (!state.displayValidation.isInvalid) state.commitValidation();
12827
+ // Auto focus the first invalid input in a form, unless the error already had its default prevented.
12828
+ let form = ref === null || ref === void 0 ? void 0 : (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.form;
12829
+ if (!e.defaultPrevented && ref && form && $e93e671b31057976$var$getFirstInvalidInput(form) === ref.current) {
12830
+ var _ref_current1;
12831
+ if (focus) focus();
12832
+ else (_ref_current1 = ref.current) === null || _ref_current1 === void 0 ? void 0 : _ref_current1.focus();
12833
+ // Always show focus ring.
12834
+ ($507fabe10e71c6fb$export$8397ddfc504fdb9a)("keyboard");
12835
+ }
12836
+ // Prevent default browser error UI from appearing.
12837
+ e.preventDefault();
12838
+ });
12839
+ let onChange = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)(()=>{
12840
+ state.commitValidation();
12841
+ });
12842
+ (useEffect)(()=>{
12843
+ let input = ref === null || ref === void 0 ? void 0 : ref.current;
12844
+ if (!input) return;
12845
+ let form = input.form;
12846
+ input.addEventListener("invalid", onInvalid);
12847
+ input.addEventListener("change", onChange);
12848
+ form === null || form === void 0 ? void 0 : form.addEventListener("reset", onReset);
12849
+ return ()=>{
12850
+ input.removeEventListener("invalid", onInvalid);
12851
+ input.removeEventListener("change", onChange);
12852
+ form === null || form === void 0 ? void 0 : form.removeEventListener("reset", onReset);
12853
+ };
12854
+ }, [
12855
+ ref,
12856
+ onInvalid,
12857
+ onChange,
12858
+ onReset,
12859
+ validationBehavior
12860
+ ]);
12861
+ }
12862
+ function $e93e671b31057976$var$getValidity(input) {
12863
+ // The native ValidityState object is live, meaning each property is a getter that returns the current state.
12864
+ // We need to create a snapshot of the validity state at the time this function is called to avoid unpredictable React renders.
12865
+ let validity = input.validity;
12866
+ return {
12867
+ badInput: validity.badInput,
12868
+ customError: validity.customError,
12869
+ patternMismatch: validity.patternMismatch,
12870
+ rangeOverflow: validity.rangeOverflow,
12871
+ rangeUnderflow: validity.rangeUnderflow,
12872
+ stepMismatch: validity.stepMismatch,
12873
+ tooLong: validity.tooLong,
12874
+ tooShort: validity.tooShort,
12875
+ typeMismatch: validity.typeMismatch,
12876
+ valueMissing: validity.valueMissing,
12877
+ valid: validity.valid
12878
+ };
12879
+ }
12880
+ function $e93e671b31057976$var$getNativeValidity(input) {
12881
+ return {
12882
+ isInvalid: !input.validity.valid,
12883
+ validationDetails: $e93e671b31057976$var$getValidity(input),
12884
+ validationErrors: input.validationMessage ? [
12885
+ input.validationMessage
12886
+ ] : []
12887
+ };
12888
+ }
12889
+ function $e93e671b31057976$var$getFirstInvalidInput(form) {
12890
+ for(let i = 0; i < form.elements.length; i++){
12891
+ let element = form.elements[i];
12892
+ if (!element.validity.valid) return element;
12403
12893
  }
12404
- }
12405
- `;
12894
+ return null;
12895
+ }
12406
12896
 
12407
- function Pagination(props) {
12897
+ /*
12898
+ * Copyright 2020 Adobe. All rights reserved.
12899
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
12900
+ * you may not use this file except in compliance with the License. You may obtain a copy
12901
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
12902
+ *
12903
+ * Unless required by applicable law or agreed to in writing, software distributed under
12904
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12905
+ * OF ANY KIND, either express or implied. See the License for the specific language
12906
+ * governing permissions and limitations under the License.
12907
+ */ /*
12908
+ * Copyright 2021 Adobe. All rights reserved.
12909
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
12910
+ * you may not use this file except in compliance with the License. You may obtain a copy
12911
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
12912
+ *
12913
+ * Unless required by applicable law or agreed to in writing, software distributed under
12914
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12915
+ * OF ANY KIND, either express or implied. See the License for the specific language
12916
+ * governing permissions and limitations under the License.
12917
+ */ /*
12918
+ * Copyright 2020 Adobe. All rights reserved.
12919
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
12920
+ * you may not use this file except in compliance with the License. You may obtain a copy
12921
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
12922
+ *
12923
+ * Unless required by applicable law or agreed to in writing, software distributed under
12924
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12925
+ * OF ANY KIND, either express or implied. See the License for the specific language
12926
+ * governing permissions and limitations under the License.
12927
+ */
12928
+ function $d191a55c9702f145$export$8467354a121f1b9f(props) {
12929
+ let { id: id, label: label, "aria-labelledby": ariaLabelledby, "aria-label": ariaLabel, labelElementType: labelElementType = "label" } = props;
12930
+ id = ($bdb11010cef70236$export$f680877a34711e37)(id);
12931
+ let labelId = ($bdb11010cef70236$export$f680877a34711e37)();
12932
+ let labelProps = {};
12933
+ if (label) {
12934
+ ariaLabelledby = ariaLabelledby ? `${labelId} ${ariaLabelledby}` : labelId;
12935
+ labelProps = {
12936
+ id: labelId,
12937
+ htmlFor: labelElementType === "label" ? id : undefined
12938
+ };
12939
+ } else if (!ariaLabelledby && !ariaLabel) console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");
12940
+ let fieldProps = ($313b98861ee5dd6c$export$d6875122194c7b44)({
12941
+ id: id,
12942
+ "aria-label": ariaLabel,
12943
+ "aria-labelledby": ariaLabelledby
12944
+ });
12945
+ return {
12946
+ labelProps: labelProps,
12947
+ fieldProps: fieldProps
12948
+ };
12949
+ }
12950
+
12951
+
12952
+
12953
+ function $2baaea4c71418dea$export$294aa081a6c6f55d(props) {
12954
+ let { description: description, errorMessage: errorMessage, isInvalid: isInvalid, validationState: validationState } = props;
12955
+ let { labelProps: labelProps, fieldProps: fieldProps } = ($d191a55c9702f145$export$8467354a121f1b9f)(props);
12956
+ let descriptionId = ($bdb11010cef70236$export$b4cc09c592e8fdb8)([
12957
+ Boolean(description),
12958
+ Boolean(errorMessage),
12959
+ isInvalid,
12960
+ validationState
12961
+ ]);
12962
+ let errorMessageId = ($bdb11010cef70236$export$b4cc09c592e8fdb8)([
12963
+ Boolean(description),
12964
+ Boolean(errorMessage),
12965
+ isInvalid,
12966
+ validationState
12967
+ ]);
12968
+ fieldProps = ($3ef42575df84b30b$export$9d1611c77c2fe928)(fieldProps, {
12969
+ "aria-describedby": [
12970
+ descriptionId,
12971
+ // Use aria-describedby for error message because aria-errormessage is unsupported using VoiceOver or NVDA. See https://github.com/adobe/react-spectrum/issues/1346#issuecomment-740136268
12972
+ errorMessageId,
12973
+ props["aria-describedby"]
12974
+ ].filter(Boolean).join(" ") || undefined
12975
+ });
12976
+ return {
12977
+ labelProps: labelProps,
12978
+ fieldProps: fieldProps,
12979
+ descriptionProps: {
12980
+ id: descriptionId
12981
+ },
12982
+ errorMessageProps: {
12983
+ id: errorMessageId
12984
+ }
12985
+ };
12986
+ }
12987
+
12988
+ /*
12989
+ * Copyright 2020 Adobe. All rights reserved.
12990
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
12991
+ * you may not use this file except in compliance with the License. You may obtain a copy
12992
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
12993
+ *
12994
+ * Unless required by applicable law or agreed to in writing, software distributed under
12995
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
12996
+ * OF ANY KIND, either express or implied. See the License for the specific language
12997
+ * governing permissions and limitations under the License.
12998
+ */ /*
12999
+ * Copyright 2020 Adobe. All rights reserved.
13000
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
13001
+ * you may not use this file except in compliance with the License. You may obtain a copy
13002
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
13003
+ *
13004
+ * Unless required by applicable law or agreed to in writing, software distributed under
13005
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13006
+ * OF ANY KIND, either express or implied. See the License for the specific language
13007
+ * governing permissions and limitations under the License.
13008
+ */ /*
13009
+ * Copyright 2020 Adobe. All rights reserved.
13010
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
13011
+ * you may not use this file except in compliance with the License. You may obtain a copy
13012
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
13013
+ *
13014
+ * Unless required by applicable law or agreed to in writing, software distributed under
13015
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13016
+ * OF ANY KIND, either express or implied. See the License for the specific language
13017
+ * governing permissions and limitations under the License.
13018
+ */ // https://en.wikipedia.org/wiki/Right-to-left
13019
+ const $148a7a147e38ea7f$var$RTL_SCRIPTS = new Set([
13020
+ "Arab",
13021
+ "Syrc",
13022
+ "Samr",
13023
+ "Mand",
13024
+ "Thaa",
13025
+ "Mend",
13026
+ "Nkoo",
13027
+ "Adlm",
13028
+ "Rohg",
13029
+ "Hebr"
13030
+ ]);
13031
+ const $148a7a147e38ea7f$var$RTL_LANGS = new Set([
13032
+ "ae",
13033
+ "ar",
13034
+ "arc",
13035
+ "bcc",
13036
+ "bqi",
13037
+ "ckb",
13038
+ "dv",
13039
+ "fa",
13040
+ "glk",
13041
+ "he",
13042
+ "ku",
13043
+ "mzn",
13044
+ "nqo",
13045
+ "pnb",
13046
+ "ps",
13047
+ "sd",
13048
+ "ug",
13049
+ "ur",
13050
+ "yi"
13051
+ ]);
13052
+ function $148a7a147e38ea7f$export$702d680b21cbd764(localeString) {
13053
+ // If the Intl.Locale API is available, use it to get the locale's text direction.
13054
+ // @ts-ignore
13055
+ if (Intl.Locale) {
13056
+ let locale = new Intl.Locale(localeString).maximize();
13057
+ // Use the text info object to get the direction if possible.
13058
+ // @ts-ignore - this was implemented as a property by some browsers before it was standardized as a function.
13059
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getTextInfo
13060
+ let textInfo = typeof locale.getTextInfo === "function" ? locale.getTextInfo() : locale.textInfo;
13061
+ if (textInfo) return textInfo.direction === "rtl";
13062
+ // Fallback: guess using the script.
13063
+ // This is more accurate than guessing by language, since languages can be written in multiple scripts.
13064
+ if (locale.script) return $148a7a147e38ea7f$var$RTL_SCRIPTS.has(locale.script);
13065
+ }
13066
+ // If not, just guess by the language (first part of the locale)
13067
+ let lang = localeString.split("-")[0];
13068
+ return $148a7a147e38ea7f$var$RTL_LANGS.has(lang);
13069
+ }
13070
+
13071
+
13072
+ /*
13073
+ * Copyright 2020 Adobe. All rights reserved.
13074
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
13075
+ * you may not use this file except in compliance with the License. You may obtain a copy
13076
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
13077
+ *
13078
+ * Unless required by applicable law or agreed to in writing, software distributed under
13079
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13080
+ * OF ANY KIND, either express or implied. See the License for the specific language
13081
+ * governing permissions and limitations under the License.
13082
+ */
13083
+
13084
+
13085
+ // Locale passed from server by PackageLocalizationProvider.
13086
+ const $1e5a04cdaf7d1af8$var$localeSymbol = Symbol.for("react-aria.i18n.locale");
13087
+ function $1e5a04cdaf7d1af8$export$f09106e7c6677ec5() {
13088
+ let locale = typeof window !== "undefined" && window[$1e5a04cdaf7d1af8$var$localeSymbol] || typeof navigator !== "undefined" && (navigator.language || navigator.userLanguage) || "en-US";
13089
+ try {
13090
+ // @ts-ignore
13091
+ Intl.DateTimeFormat.supportedLocalesOf([
13092
+ locale
13093
+ ]);
13094
+ } catch (_err) {
13095
+ locale = "en-US";
13096
+ }
13097
+ return {
13098
+ locale: locale,
13099
+ direction: ($148a7a147e38ea7f$export$702d680b21cbd764)(locale) ? "rtl" : "ltr"
13100
+ };
13101
+ }
13102
+ let $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5();
13103
+ let $1e5a04cdaf7d1af8$var$listeners = new Set();
13104
+ function $1e5a04cdaf7d1af8$var$updateLocale() {
13105
+ $1e5a04cdaf7d1af8$var$currentLocale = $1e5a04cdaf7d1af8$export$f09106e7c6677ec5();
13106
+ for (let listener of $1e5a04cdaf7d1af8$var$listeners)listener($1e5a04cdaf7d1af8$var$currentLocale);
13107
+ }
13108
+ function $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a() {
13109
+ let isSSR = ($b5e257d569688ac6$export$535bd6ca7f90a273)();
13110
+ let [defaultLocale, setDefaultLocale] = (useState)($1e5a04cdaf7d1af8$var$currentLocale);
13111
+ (useEffect)(()=>{
13112
+ if ($1e5a04cdaf7d1af8$var$listeners.size === 0) window.addEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale);
13113
+ $1e5a04cdaf7d1af8$var$listeners.add(setDefaultLocale);
13114
+ return ()=>{
13115
+ $1e5a04cdaf7d1af8$var$listeners.delete(setDefaultLocale);
13116
+ if ($1e5a04cdaf7d1af8$var$listeners.size === 0) window.removeEventListener("languagechange", $1e5a04cdaf7d1af8$var$updateLocale);
13117
+ };
13118
+ }, []);
13119
+ // We cannot determine the browser's language on the server, so default to
13120
+ // en-US. This will be updated after hydration on the client to the correct value.
13121
+ if (isSSR) return {
13122
+ locale: "en-US",
13123
+ direction: "ltr"
13124
+ };
13125
+ return defaultLocale;
13126
+ }
13127
+
13128
+
13129
+
13130
+ const $18f2051aff69b9bf$var$I18nContext = /*#__PURE__*/ ($73SJx$react).createContext(null);
13131
+ function $18f2051aff69b9bf$export$43bb16f9c6d9e3f7() {
13132
+ let defaultLocale = ($1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a)();
13133
+ let context = (useContext)($18f2051aff69b9bf$var$I18nContext);
13134
+ return context || defaultLocale;
13135
+ }
13136
+
13137
+ /*
13138
+ * Copyright 2020 Adobe. All rights reserved.
13139
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
13140
+ * you may not use this file except in compliance with the License. You may obtain a copy
13141
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
13142
+ *
13143
+ * Unless required by applicable law or agreed to in writing, software distributed under
13144
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13145
+ * OF ANY KIND, either express or implied. See the License for the specific language
13146
+ * governing permissions and limitations under the License.
13147
+ */ /*
13148
+ * Copyright 2020 Adobe. All rights reserved.
13149
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
13150
+ * you may not use this file except in compliance with the License. You may obtain a copy
13151
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
13152
+ *
13153
+ * Unless required by applicable law or agreed to in writing, software distributed under
13154
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13155
+ * OF ANY KIND, either express or implied. See the License for the specific language
13156
+ * governing permissions and limitations under the License.
13157
+ */
13158
+ /*
13159
+ * Copyright 2020 Adobe. All rights reserved.
13160
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
13161
+ * you may not use this file except in compliance with the License. You may obtain a copy
13162
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
13163
+ *
13164
+ * Unless required by applicable law or agreed to in writing, software distributed under
13165
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13166
+ * OF ANY KIND, either express or implied. See the License for the specific language
13167
+ * governing permissions and limitations under the License.
13168
+ */ const $884aeceb3d67f00f$export$37b65e5b5444d35c = new WeakMap();
13169
+
13170
+
13171
+
13172
+
13173
+
13174
+ function $0d5c49892c1215da$export$37b0961d2f4751e2(props, state, ref) {
13175
+ let { value: value, children: children, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby } = props;
13176
+ const isDisabled = props.isDisabled || state.isDisabled;
13177
+ let hasChildren = children != null;
13178
+ let hasAriaLabel = ariaLabel != null || ariaLabelledby != null;
13179
+ if (!hasChildren && !hasAriaLabel) console.warn("If you do not provide children, you must specify an aria-label for accessibility");
13180
+ let checked = state.selectedValue === value;
13181
+ let onChange = (e)=>{
13182
+ e.stopPropagation();
13183
+ state.setSelectedValue(value);
13184
+ };
13185
+ let { pressProps: pressProps, isPressed: isPressed } = ($f6c31cce2adf654f$export$45712eceda6fad21)({
13186
+ isDisabled: isDisabled
13187
+ });
13188
+ // iOS does not toggle radios if you drag off and back onto the label, so handle it ourselves.
13189
+ let { pressProps: labelProps, isPressed: isLabelPressed } = ($f6c31cce2adf654f$export$45712eceda6fad21)({
13190
+ isDisabled: isDisabled,
13191
+ onPress () {
13192
+ state.setSelectedValue(value);
13193
+ }
13194
+ });
13195
+ let { focusableProps: focusableProps } = ($e6afbd83fe6ebbd2$export$4c014de7c8940b4c)(($3ef42575df84b30b$export$9d1611c77c2fe928)(props, {
13196
+ onFocus: ()=>state.setLastFocusedValue(value)
13197
+ }), ref);
13198
+ let interactions = ($3ef42575df84b30b$export$9d1611c77c2fe928)(pressProps, focusableProps);
13199
+ let domProps = ($65484d02dcb7eb3e$export$457c3d6518dd4c6f)(props, {
13200
+ labelable: true
13201
+ });
13202
+ let tabIndex = -1;
13203
+ if (state.selectedValue != null) {
13204
+ if (state.selectedValue === value) tabIndex = 0;
13205
+ } else if (state.lastFocusedValue === value || state.lastFocusedValue == null) tabIndex = 0;
13206
+ if (isDisabled) tabIndex = undefined;
13207
+ let { name: name, descriptionId: descriptionId, errorMessageId: errorMessageId, validationBehavior: validationBehavior } = ($884aeceb3d67f00f$export$37b65e5b5444d35c).get(state);
13208
+ ($99facab73266f662$export$5add1d006293d136)(ref, state.selectedValue, state.setSelectedValue);
13209
+ ($e93e671b31057976$export$b8473d3665f3a75a)({
13210
+ validationBehavior: validationBehavior
13211
+ }, state, ref);
13212
+ return {
13213
+ labelProps: ($3ef42575df84b30b$export$9d1611c77c2fe928)(labelProps, {
13214
+ onClick: (e)=>e.preventDefault()
13215
+ }),
13216
+ inputProps: ($3ef42575df84b30b$export$9d1611c77c2fe928)(domProps, {
13217
+ ...interactions,
13218
+ type: "radio",
13219
+ name: name,
13220
+ tabIndex: tabIndex,
13221
+ disabled: isDisabled,
13222
+ required: state.isRequired && validationBehavior === "native",
13223
+ checked: checked,
13224
+ value: value,
13225
+ onChange: onChange,
13226
+ "aria-describedby": [
13227
+ props["aria-describedby"],
13228
+ state.isInvalid ? errorMessageId : null,
13229
+ descriptionId
13230
+ ].filter(Boolean).join(" ") || undefined
13231
+ }),
13232
+ isDisabled: isDisabled,
13233
+ isSelected: checked,
13234
+ isPressed: isPressed || isLabelPressed
13235
+ };
13236
+ }
13237
+
13238
+
13239
+ /*
13240
+ * Copyright 2020 Adobe. All rights reserved.
13241
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
13242
+ * you may not use this file except in compliance with the License. You may obtain a copy
13243
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
13244
+ *
13245
+ * Unless required by applicable law or agreed to in writing, software distributed under
13246
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13247
+ * OF ANY KIND, either express or implied. See the License for the specific language
13248
+ * governing permissions and limitations under the License.
13249
+ */
13250
+
13251
+
13252
+
13253
+
13254
+
13255
+ function $430f30ed08ec25fa$export$62b9571f283ff5c2(props, state) {
13256
+ let { name: name, isReadOnly: isReadOnly, isRequired: isRequired, isDisabled: isDisabled, orientation: orientation = "vertical", validationBehavior: validationBehavior = "aria" } = props;
13257
+ let { direction: direction } = ($18f2051aff69b9bf$export$43bb16f9c6d9e3f7)();
13258
+ let { isInvalid: isInvalid, validationErrors: validationErrors, validationDetails: validationDetails } = state.displayValidation;
13259
+ let { labelProps: labelProps, fieldProps: fieldProps, descriptionProps: descriptionProps, errorMessageProps: errorMessageProps } = ($2baaea4c71418dea$export$294aa081a6c6f55d)({
13260
+ ...props,
13261
+ // Radio group is not an HTML input element so it
13262
+ // shouldn't be labeled by a <label> element.
13263
+ labelElementType: "span",
13264
+ isInvalid: state.isInvalid,
13265
+ errorMessage: props.errorMessage || validationErrors
13266
+ });
13267
+ let domProps = ($65484d02dcb7eb3e$export$457c3d6518dd4c6f)(props, {
13268
+ labelable: true
13269
+ });
13270
+ // When the radio group loses focus, reset the focusable radio to null if
13271
+ // there is no selection. This allows tabbing into the group from either
13272
+ // direction to go to the first or last radio.
13273
+ let { focusWithinProps: focusWithinProps } = ($9ab94262bd0047c7$export$420e68273165f4ec)({
13274
+ onBlurWithin (e) {
13275
+ var _props_onBlur;
13276
+ (_props_onBlur = props.onBlur) === null || _props_onBlur === void 0 ? void 0 : _props_onBlur.call(props, e);
13277
+ if (!state.selectedValue) state.setLastFocusedValue(null);
13278
+ },
13279
+ onFocusWithin: props.onFocus,
13280
+ onFocusWithinChange: props.onFocusChange
13281
+ });
13282
+ let onKeyDown = (e)=>{
13283
+ let nextDir;
13284
+ switch(e.key){
13285
+ case "ArrowRight":
13286
+ if (direction === "rtl" && orientation !== "vertical") nextDir = "prev";
13287
+ else nextDir = "next";
13288
+ break;
13289
+ case "ArrowLeft":
13290
+ if (direction === "rtl" && orientation !== "vertical") nextDir = "next";
13291
+ else nextDir = "prev";
13292
+ break;
13293
+ case "ArrowDown":
13294
+ nextDir = "next";
13295
+ break;
13296
+ case "ArrowUp":
13297
+ nextDir = "prev";
13298
+ break;
13299
+ default:
13300
+ return;
13301
+ }
13302
+ e.preventDefault();
13303
+ let walker = ($9bf71ea28793e738$export$2d6ec8fc375ceafa)(e.currentTarget, {
13304
+ from: e.target
13305
+ });
13306
+ let nextElem;
13307
+ if (nextDir === "next") {
13308
+ nextElem = walker.nextNode();
13309
+ if (!nextElem) {
13310
+ walker.currentNode = e.currentTarget;
13311
+ nextElem = walker.firstChild();
13312
+ }
13313
+ } else {
13314
+ nextElem = walker.previousNode();
13315
+ if (!nextElem) {
13316
+ walker.currentNode = e.currentTarget;
13317
+ nextElem = walker.lastChild();
13318
+ }
13319
+ }
13320
+ if (nextElem) {
13321
+ // Call focus on nextElem so that keyboard navigation scrolls the radio into view
13322
+ nextElem.focus();
13323
+ state.setSelectedValue(nextElem.value);
13324
+ }
13325
+ };
13326
+ let groupName = ($bdb11010cef70236$export$f680877a34711e37)(name);
13327
+ ($884aeceb3d67f00f$export$37b65e5b5444d35c).set(state, {
13328
+ name: groupName,
13329
+ descriptionId: descriptionProps.id,
13330
+ errorMessageId: errorMessageProps.id,
13331
+ validationBehavior: validationBehavior
13332
+ });
13333
+ return {
13334
+ radioGroupProps: ($3ef42575df84b30b$export$9d1611c77c2fe928)(domProps, {
13335
+ // https://www.w3.org/TR/wai-aria-1.2/#radiogroup
13336
+ role: "radiogroup",
13337
+ onKeyDown: onKeyDown,
13338
+ "aria-invalid": state.isInvalid || undefined,
13339
+ "aria-errormessage": props["aria-errormessage"],
13340
+ "aria-readonly": isReadOnly || undefined,
13341
+ "aria-required": isRequired || undefined,
13342
+ "aria-disabled": isDisabled || undefined,
13343
+ "aria-orientation": orientation,
13344
+ ...fieldProps,
13345
+ ...focusWithinProps
13346
+ }),
13347
+ labelProps: labelProps,
13348
+ descriptionProps: descriptionProps,
13349
+ errorMessageProps: errorMessageProps,
13350
+ isInvalid: isInvalid,
13351
+ validationErrors: validationErrors,
13352
+ validationDetails: validationDetails
13353
+ };
13354
+ }
13355
+
13356
+ /*
13357
+ * Copyright 2020 Adobe. All rights reserved.
13358
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
13359
+ * you may not use this file except in compliance with the License. You may obtain a copy
13360
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
13361
+ *
13362
+ * Unless required by applicable law or agreed to in writing, software distributed under
13363
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13364
+ * OF ANY KIND, either express or implied. See the License for the specific language
13365
+ * governing permissions and limitations under the License.
13366
+ */ /*
13367
+ * Copyright 2020 Adobe. All rights reserved.
13368
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
13369
+ * you may not use this file except in compliance with the License. You may obtain a copy
13370
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
13371
+ *
13372
+ * Unless required by applicable law or agreed to in writing, software distributed under
13373
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13374
+ * OF ANY KIND, either express or implied. See the License for the specific language
13375
+ * governing permissions and limitations under the License.
13376
+ */
13377
+
13378
+
13379
+ const $5c3e21d68f1c4674$var$styles = {
13380
+ border: 0,
13381
+ clip: "rect(0 0 0 0)",
13382
+ clipPath: "inset(50%)",
13383
+ height: "1px",
13384
+ margin: "-1px",
13385
+ overflow: "hidden",
13386
+ padding: 0,
13387
+ position: "absolute",
13388
+ width: "1px",
13389
+ whiteSpace: "nowrap"
13390
+ };
13391
+ function $5c3e21d68f1c4674$export$a966af930f325cab(props = {}) {
13392
+ let { style: style, isFocusable: isFocusable } = props;
13393
+ let [isFocused, setFocused] = (useState)(false);
13394
+ let { focusWithinProps: focusWithinProps } = ($9ab94262bd0047c7$export$420e68273165f4ec)({
13395
+ isDisabled: !isFocusable,
13396
+ onFocusWithinChange: (val)=>setFocused(val)
13397
+ });
13398
+ // If focused, don't hide the element.
13399
+ let combinedStyles = (useMemo)(()=>{
13400
+ if (isFocused) return style;
13401
+ else if (style) return {
13402
+ ...$5c3e21d68f1c4674$var$styles,
13403
+ ...style
13404
+ };
13405
+ else return $5c3e21d68f1c4674$var$styles;
13406
+ // eslint-disable-next-line react-hooks/exhaustive-deps
13407
+ }, [
13408
+ isFocused
13409
+ ]);
13410
+ return {
13411
+ visuallyHiddenProps: {
13412
+ ...focusWithinProps,
13413
+ style: combinedStyles
13414
+ }
13415
+ };
13416
+ }
13417
+
13418
+ /*
13419
+ * Copyright 2023 Adobe. All rights reserved.
13420
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
13421
+ * you may not use this file except in compliance with the License. You may obtain a copy
13422
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
13423
+ *
13424
+ * Unless required by applicable law or agreed to in writing, software distributed under
13425
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13426
+ * OF ANY KIND, either express or implied. See the License for the specific language
13427
+ * governing permissions and limitations under the License.
13428
+ */ /*
13429
+ * Copyright 2023 Adobe. All rights reserved.
13430
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
13431
+ * you may not use this file except in compliance with the License. You may obtain a copy
13432
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
13433
+ *
13434
+ * Unless required by applicable law or agreed to in writing, software distributed under
13435
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13436
+ * OF ANY KIND, either express or implied. See the License for the specific language
13437
+ * governing permissions and limitations under the License.
13438
+ */
13439
+ const $e5be200c675c3b3a$export$aca958c65c314e6c = {
13440
+ badInput: false,
13441
+ customError: false,
13442
+ patternMismatch: false,
13443
+ rangeOverflow: false,
13444
+ rangeUnderflow: false,
13445
+ stepMismatch: false,
13446
+ tooLong: false,
13447
+ tooShort: false,
13448
+ typeMismatch: false,
13449
+ valueMissing: false,
13450
+ valid: true
13451
+ };
13452
+ const $e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE = {
13453
+ ...$e5be200c675c3b3a$export$aca958c65c314e6c,
13454
+ customError: true,
13455
+ valid: false
13456
+ };
13457
+ const $e5be200c675c3b3a$export$dad6ae84456c676a = {
13458
+ isInvalid: false,
13459
+ validationDetails: $e5be200c675c3b3a$export$aca958c65c314e6c,
13460
+ validationErrors: []
13461
+ };
13462
+ const $e5be200c675c3b3a$export$571b5131b7e65c11 = (createContext)({});
13463
+ const $e5be200c675c3b3a$export$a763b9476acd3eb = "__formValidationState" + Date.now();
13464
+ function $e5be200c675c3b3a$export$fc1a364ae1f3ff10(props) {
13465
+ // Private prop for parent components to pass state to children.
13466
+ if (props[$e5be200c675c3b3a$export$a763b9476acd3eb]) {
13467
+ let { realtimeValidation: realtimeValidation, displayValidation: displayValidation, updateValidation: updateValidation, resetValidation: resetValidation, commitValidation: commitValidation } = props[$e5be200c675c3b3a$export$a763b9476acd3eb];
13468
+ return {
13469
+ realtimeValidation: realtimeValidation,
13470
+ displayValidation: displayValidation,
13471
+ updateValidation: updateValidation,
13472
+ resetValidation: resetValidation,
13473
+ commitValidation: commitValidation
13474
+ };
13475
+ }
13476
+ // eslint-disable-next-line react-hooks/rules-of-hooks
13477
+ return $e5be200c675c3b3a$var$useFormValidationStateImpl(props);
13478
+ }
13479
+ function $e5be200c675c3b3a$var$useFormValidationStateImpl(props) {
13480
+ let { isInvalid: isInvalid, validationState: validationState, name: name, value: value, builtinValidation: builtinValidation, validate: validate, validationBehavior: validationBehavior = "aria" } = props;
13481
+ // backward compatibility.
13482
+ if (validationState) isInvalid || (isInvalid = validationState === "invalid");
13483
+ // If the isInvalid prop is true, update validation result in realtime (controlled).
13484
+ let controlledError = isInvalid ? {
13485
+ isInvalid: true,
13486
+ validationErrors: [],
13487
+ validationDetails: $e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE
13488
+ } : null;
13489
+ // Perform custom client side validation.
13490
+ let clientError = (useMemo)(()=>$e5be200c675c3b3a$var$getValidationResult($e5be200c675c3b3a$var$runValidate(validate, value)), [
13491
+ validate,
13492
+ value
13493
+ ]);
13494
+ if (builtinValidation === null || builtinValidation === void 0 ? void 0 : builtinValidation.validationDetails.valid) builtinValidation = null;
13495
+ // Get relevant server errors from the form.
13496
+ let serverErrors = (useContext)($e5be200c675c3b3a$export$571b5131b7e65c11);
13497
+ let serverErrorMessages = (useMemo)(()=>{
13498
+ if (name) return Array.isArray(name) ? name.flatMap((name)=>$e5be200c675c3b3a$var$asArray(serverErrors[name])) : $e5be200c675c3b3a$var$asArray(serverErrors[name]);
13499
+ return [];
13500
+ }, [
13501
+ serverErrors,
13502
+ name
13503
+ ]);
13504
+ // Show server errors when the form gets a new value, and clear when the user changes the value.
13505
+ let [lastServerErrors, setLastServerErrors] = (useState)(serverErrors);
13506
+ let [isServerErrorCleared, setServerErrorCleared] = (useState)(false);
13507
+ if (serverErrors !== lastServerErrors) {
13508
+ setLastServerErrors(serverErrors);
13509
+ setServerErrorCleared(false);
13510
+ }
13511
+ let serverError = (useMemo)(()=>$e5be200c675c3b3a$var$getValidationResult(isServerErrorCleared ? [] : serverErrorMessages), [
13512
+ isServerErrorCleared,
13513
+ serverErrorMessages
13514
+ ]);
13515
+ // Track the next validation state in a ref until commitValidation is called.
13516
+ let nextValidation = (useRef)($e5be200c675c3b3a$export$dad6ae84456c676a);
13517
+ let [currentValidity, setCurrentValidity] = (useState)($e5be200c675c3b3a$export$dad6ae84456c676a);
13518
+ let lastError = (useRef)($e5be200c675c3b3a$export$dad6ae84456c676a);
13519
+ let commitValidation = ()=>{
13520
+ if (!commitQueued) return;
13521
+ setCommitQueued(false);
13522
+ let error = clientError || builtinValidation || nextValidation.current;
13523
+ if (!$e5be200c675c3b3a$var$isEqualValidation(error, lastError.current)) {
13524
+ lastError.current = error;
13525
+ setCurrentValidity(error);
13526
+ }
13527
+ };
13528
+ let [commitQueued, setCommitQueued] = (useState)(false);
13529
+ (useEffect)(commitValidation);
13530
+ // realtimeValidation is used to update the native input element's state based on custom validation logic.
13531
+ // displayValidation is the currently displayed validation state that the user sees (e.g. on input change/form submit).
13532
+ // With validationBehavior="aria", all errors are displayed in realtime rather than on submit.
13533
+ let realtimeValidation = controlledError || serverError || clientError || builtinValidation || $e5be200c675c3b3a$export$dad6ae84456c676a;
13534
+ let displayValidation = validationBehavior === "native" ? controlledError || serverError || currentValidity : controlledError || serverError || clientError || builtinValidation || currentValidity;
13535
+ return {
13536
+ realtimeValidation: realtimeValidation,
13537
+ displayValidation: displayValidation,
13538
+ updateValidation (value) {
13539
+ // If validationBehavior is 'aria', update in realtime. Otherwise, store in a ref until commit.
13540
+ if (validationBehavior === "aria" && !$e5be200c675c3b3a$var$isEqualValidation(currentValidity, value)) setCurrentValidity(value);
13541
+ else nextValidation.current = value;
13542
+ },
13543
+ resetValidation () {
13544
+ // Update the currently displayed validation state to valid on form reset,
13545
+ // even if the native validity says it isn't. It'll show again on the next form submit.
13546
+ let error = $e5be200c675c3b3a$export$dad6ae84456c676a;
13547
+ if (!$e5be200c675c3b3a$var$isEqualValidation(error, lastError.current)) {
13548
+ lastError.current = error;
13549
+ setCurrentValidity(error);
13550
+ }
13551
+ // Do not commit validation after the next render. This avoids a condition where
13552
+ // useSelect calls commitValidation inside an onReset handler.
13553
+ if (validationBehavior === "native") setCommitQueued(false);
13554
+ setServerErrorCleared(true);
13555
+ },
13556
+ commitValidation () {
13557
+ // Commit validation state so the user sees it on blur/change/submit. Also clear any server errors.
13558
+ // Wait until after the next render to commit so that the latest value has been validated.
13559
+ if (validationBehavior === "native") setCommitQueued(true);
13560
+ setServerErrorCleared(true);
13561
+ }
13562
+ };
13563
+ }
13564
+ function $e5be200c675c3b3a$var$asArray(v) {
13565
+ if (!v) return [];
13566
+ return Array.isArray(v) ? v : [
13567
+ v
13568
+ ];
13569
+ }
13570
+ function $e5be200c675c3b3a$var$runValidate(validate, value) {
13571
+ if (typeof validate === "function") {
13572
+ let e = validate(value);
13573
+ if (e && typeof e !== "boolean") return $e5be200c675c3b3a$var$asArray(e);
13574
+ }
13575
+ return [];
13576
+ }
13577
+ function $e5be200c675c3b3a$var$getValidationResult(errors) {
13578
+ return errors.length ? {
13579
+ isInvalid: true,
13580
+ validationErrors: errors,
13581
+ validationDetails: $e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE
13582
+ } : null;
13583
+ }
13584
+ function $e5be200c675c3b3a$var$isEqualValidation(a, b) {
13585
+ if (a === b) return true;
13586
+ return a && b && a.isInvalid === b.isInvalid && a.validationErrors.length === b.validationErrors.length && a.validationErrors.every((a, i)=>a === b.validationErrors[i]) && Object.entries(a.validationDetails).every(([k, v])=>b.validationDetails[k] === v);
13587
+ }
13588
+
13589
+ /*
13590
+ * Copyright 2020 Adobe. All rights reserved.
13591
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
13592
+ * you may not use this file except in compliance with the License. You may obtain a copy
13593
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
13594
+ *
13595
+ * Unless required by applicable law or agreed to in writing, software distributed under
13596
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13597
+ * OF ANY KIND, either express or implied. See the License for the specific language
13598
+ * governing permissions and limitations under the License.
13599
+ */ /*
13600
+ * Copyright 2020 Adobe. All rights reserved.
13601
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
13602
+ * you may not use this file except in compliance with the License. You may obtain a copy
13603
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
13604
+ *
13605
+ * Unless required by applicable law or agreed to in writing, software distributed under
13606
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
13607
+ * OF ANY KIND, either express or implied. See the License for the specific language
13608
+ * governing permissions and limitations under the License.
13609
+ */
13610
+
13611
+
13612
+ let $a54cdc5c1942b639$var$instance = Math.round(Math.random() * 10000000000);
13613
+ let $a54cdc5c1942b639$var$i = 0;
13614
+ function $a54cdc5c1942b639$export$bca9d026f8e704eb(props) {
13615
+ // Preserved here for backward compatibility. React Aria now generates the name instead of stately.
13616
+ let name = (useMemo)(()=>props.name || `radio-group-${$a54cdc5c1942b639$var$instance}-${++$a54cdc5c1942b639$var$i}`, [
13617
+ props.name
13618
+ ]);
13619
+ var _props_defaultValue;
13620
+ let [selectedValue, setSelected] = ($458b0a5536c1a7cf$export$40bfa8c7b0832715)(props.value, (_props_defaultValue = props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : null, props.onChange);
13621
+ let [lastFocusedValue, setLastFocusedValue] = (useState)(null);
13622
+ let validation = ($e5be200c675c3b3a$export$fc1a364ae1f3ff10)({
13623
+ ...props,
13624
+ value: selectedValue
13625
+ });
13626
+ let setSelectedValue = (value)=>{
13627
+ if (!props.isReadOnly && !props.isDisabled) {
13628
+ setSelected(value);
13629
+ validation.commitValidation();
13630
+ }
13631
+ };
13632
+ let isInvalid = validation.displayValidation.isInvalid;
13633
+ return {
13634
+ ...validation,
13635
+ name: name,
13636
+ selectedValue: selectedValue,
13637
+ setSelectedValue: setSelectedValue,
13638
+ lastFocusedValue: lastFocusedValue,
13639
+ setLastFocusedValue: setLastFocusedValue,
13640
+ isDisabled: props.isDisabled || false,
13641
+ isReadOnly: props.isReadOnly || false,
13642
+ isRequired: props.isRequired || false,
13643
+ validationState: props.validationState || (isInvalid ? "invalid" : null),
13644
+ isInvalid: isInvalid
13645
+ };
13646
+ }
13647
+
13648
+ const StyledRadioGroup$1 = styled.div `
13649
+ &.horizontal {
13650
+ display: flex;
13651
+
13652
+ > * {
13653
+ margin-right: 10px;
13654
+ }
13655
+ }
13656
+ `;
13657
+
13658
+ const RadioContext = createContext({});
13659
+ /**
13660
+ * Renders a group of radio buttons with no styling. This component is not
13661
+ * designed to be user-facing, and should only be used to provide functionality.
13662
+ *
13663
+ * A group label must be included: either pass a string or markup into the
13664
+ * `label` prop, or include an `aria-label` or `aria-labelledby` attribute.
13665
+ */
13666
+ function RadioGroup$1(props) {
13667
+ const { children, className, value, id, isDisabled, isReadOnly, label, name, onChange, orientation, defaultValue, } = props;
13668
+ const [lastFocusedValue, setLastFocusedValue] = useState(null);
13669
+ const radioGroupState = {
13670
+ isDisabled: isDisabled || false,
13671
+ isReadOnly: isReadOnly || false,
13672
+ lastFocusedValue,
13673
+ name: name || '',
13674
+ selectedValue: value,
13675
+ setLastFocusedValue,
13676
+ setSelectedValue: onChange,
13677
+ defaultValue,
13678
+ };
13679
+ const state = $a54cdc5c1942b639$export$bca9d026f8e704eb(radioGroupState);
13680
+ const { radioGroupProps, labelProps } = $430f30ed08ec25fa$export$62b9571f283ff5c2(props, state);
13681
+ return (jsxs(StyledRadioGroup$1, Object.assign({}, radioGroupProps, { className: classNames(className, { horizontal: orientation === 'horizontal' }), "data-cy": props['data-cy'], id: id, children: [label && (jsx("div", Object.assign({ className: "groupLabel" }, labelProps, { children: label }))), jsx(RadioContext.Provider, { value: state, children: children })] })));
13682
+ }
13683
+ /**
13684
+ * A single radio button and its label; no styling is applied, and the native
13685
+ * radio button is visually hidden.
13686
+ */
13687
+ function Radio$1(props) {
13688
+ const { children, className, isDisabled, isVisuallySelected } = props;
13689
+ const state = useContext(RadioContext);
13690
+ const inputRef = useRef(null);
13691
+ const { visuallyHiddenProps } = $5c3e21d68f1c4674$export$a966af930f325cab();
13692
+ const { inputProps } = $0d5c49892c1215da$export$37b0961d2f4751e2(props, state, inputRef);
13693
+ const { isFocusVisible, focusProps } = $f7dceffc5ad7768b$export$4e328f61c538687f();
13694
+ let isSelected;
13695
+ if (isVisuallySelected) {
13696
+ isSelected = isVisuallySelected(state.selectedValue);
13697
+ }
13698
+ else {
13699
+ // @ts-ignore
13700
+ isSelected = state.selectedValue === props.value || (state === null || state === void 0 ? void 0 : state.defaultValue) === props.value;
13701
+ }
13702
+ return (jsxs("label", { className: classNames(className, {
13703
+ disabled: isDisabled || state.isDisabled,
13704
+ selected: isSelected,
13705
+ focused: isFocusVisible,
13706
+ }), children: [jsx("input", Object.assign({}, inputProps, visuallyHiddenProps, focusProps, { ref: inputRef })), children] }));
13707
+ }
13708
+
13709
+ const radioSize = '20px';
13710
+ const strokeWidth = 2;
13711
+ const StyledRadioGroup = styled(RadioGroup$1) `
13712
+ color: ${(props) => props.color || 'currentColor'};
13713
+
13714
+ .groupLabel {
13715
+ margin-bottom: ${spacings.sm};
13716
+ font-size: 16px;
13717
+ color: ${(props) => props.labelColor || allColors.lightGray};
13718
+ }
13719
+
13720
+ // this is the Radio component; something gets cranky and styles end up
13721
+ // not applied if we create a separate StyledComponent for Radio.
13722
+ label {
13723
+ display: flex;
13724
+ align-items: center;
13725
+
13726
+ margin-bottom: ${spacings.sm};
13727
+
13728
+ &.disabled {
13729
+ cursor: not-allowed;
13730
+ }
13731
+
13732
+ &:not(.disabled) {
13733
+ cursor: pointer;
13734
+
13735
+ &.selected,
13736
+ &:hover {
13737
+ color: ${(props) => props.hoverAndSelectedColor || allColors.white};
13738
+ }
13739
+ }
13740
+
13741
+ transition: color ${animation.duration} ${animation.timing};
13742
+
13743
+ svg {
13744
+ width: ${radioSize};
13745
+ height: ${radioSize};
13746
+
13747
+ margin-top: 1px;
13748
+ margin-right: ${spacings.sm};
13749
+ }
13750
+
13751
+ .radioCircle {
13752
+ stroke-width: ${strokeWidth};
13753
+ }
13754
+
13755
+ .radioDot {
13756
+ opacity: 0;
13757
+ }
13758
+
13759
+ .focusRing {
13760
+ opacity: 0;
13761
+
13762
+ stroke: ${(props) => props.focusRingColor || allColors.curiousBlue};
13763
+ stroke-width: ${strokeWidth};
13764
+ }
13765
+
13766
+ &.selected {
13767
+ .radioDot {
13768
+ opacity: 1;
13769
+ }
13770
+ }
13771
+
13772
+ &.focused {
13773
+ .focusRing {
13774
+ opacity: ${(props) => (props.hideFocusRing ? 0 : 1)};
13775
+ }
13776
+ }
13777
+ }
13778
+ `;
13779
+
13780
+ /**
13781
+ * Renders a group of radio buttons.
13782
+ *
13783
+ * A group label must be included: either pass a string or markup into the
13784
+ * `label` prop, or include an `aria-label` or `aria-labelledby` attribute.
13785
+ */
13786
+ function RadioGroup(_a) {
13787
+ var { children } = _a, props = __rest(_a, ["children"]);
13788
+ const { color, hideFocusRing, labelColor, hoverAndSelectedColor, focusRingColor } = props;
13789
+ return (jsx(StyledRadioGroup, Object.assign({}, props, { hideFocusRing: true, "data-cy": props['data-cy'], color: color, labelColor: labelColor, hoverAndSelectedColor: hoverAndSelectedColor, focusRingColor: focusRingColor, children: children })));
13790
+ }
13791
+ /**
13792
+ * A single radio button and its label.
13793
+ */
13794
+ function Radio(_a) {
13795
+ var { children } = _a, props = __rest(_a, ["children"]);
13796
+ return (jsxs(Radio$1, Object.assign({}, props, { children: [jsxs("svg", { viewBox: "0 0 20 20", "aria-hidden": "true", focusable: "false", overflow: "visible", children: [jsx("circle", { cx: 10, cy: 10, r: 9, fill: "none", stroke: "currentColor", className: "radioCircle" }), jsx("circle", { cx: 10, cy: 10, r: 5, fill: "currentColor", stroke: "none", className: "radioDot" }), jsx("circle", { cx: 10, cy: 10, r: 12, fill: "none", className: "focusRing" })] }), children] })));
13797
+ }
13798
+
13799
+ const paddingRight = '30px';
13800
+ const StyledPagination = styled.div `
13801
+ width: 100%;
13802
+ position: relative;
13803
+
13804
+ .Pagination--stats {
13805
+ display: inline-block;
13806
+ padding: 10px 0;
13807
+ line-height: 1.6;
13808
+ }
13809
+
13810
+ .Pagination--button-group {
13811
+ display: flex;
13812
+ justify-content: flex-end;
13813
+ width: calc(25% + ${paddingRight});
13814
+ padding: 10px ${paddingRight} 10px 0;
13815
+ position: absolute;
13816
+ top: 0;
13817
+ right: 0;
13818
+
13819
+ > * {
13820
+ display: inline-block;
13821
+ font-size: 18px;
13822
+ vertical-align: middle;
13823
+ margin-right: 8px;
13824
+ }
13825
+
13826
+ button {
13827
+ width: auto;
13828
+ padding: 0;
13829
+ display: inline-block;
13830
+ background: none;
13831
+ box-shadow: none;
13832
+ text-decoration: underline;
13833
+ color: ${allColors.midFontColor};
13834
+
13835
+ &:hover {
13836
+ color: ${allColors.defaultFontColor};
13837
+ }
13838
+
13839
+ &.Pagination--non-click {
13840
+ text-decoration: none;
13841
+ }
13842
+ }
13843
+ }
13844
+ `;
13845
+
13846
+ function Pagination(props) {
12408
13847
  // renderPreviousPages = (currentPage, lastPage) => {
12409
13848
  // if (currentPage === lastPage - 2) {
12410
13849
  // return null
@@ -12651,99 +14090,33 @@ var Modal$1 = {};
12651
14090
 
12652
14091
  var propTypes = {exports: {}};
12653
14092
 
12654
- /**
12655
- * Copyright (c) 2013-present, Facebook, Inc.
12656
- *
12657
- * This source code is licensed under the MIT license found in the
12658
- * LICENSE file in the root directory of this source tree.
12659
- */
12660
-
12661
- var ReactPropTypesSecret_1;
12662
- var hasRequiredReactPropTypesSecret;
12663
-
12664
- function requireReactPropTypesSecret () {
12665
- if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
12666
- hasRequiredReactPropTypesSecret = 1;
12667
-
12668
- var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
14093
+ var reactIs = {exports: {}};
12669
14094
 
12670
- ReactPropTypesSecret_1 = ReactPropTypesSecret;
12671
- return ReactPropTypesSecret_1;
12672
- }
14095
+ var reactIs_production_min = {};
12673
14096
 
12674
- /**
12675
- * Copyright (c) 2013-present, Facebook, Inc.
14097
+ /** @license React v16.13.1
14098
+ * react-is.production.min.js
14099
+ *
14100
+ * Copyright (c) Facebook, Inc. and its affiliates.
12676
14101
  *
12677
14102
  * This source code is licensed under the MIT license found in the
12678
14103
  * LICENSE file in the root directory of this source tree.
12679
14104
  */
12680
14105
 
12681
- var factoryWithThrowingShims;
12682
- var hasRequiredFactoryWithThrowingShims;
12683
-
12684
- function requireFactoryWithThrowingShims () {
12685
- if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
12686
- hasRequiredFactoryWithThrowingShims = 1;
12687
-
12688
- var ReactPropTypesSecret = requireReactPropTypesSecret();
12689
-
12690
- function emptyFunction() {}
12691
- function emptyFunctionWithReset() {}
12692
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
12693
-
12694
- factoryWithThrowingShims = function() {
12695
- function shim(props, propName, componentName, location, propFullName, secret) {
12696
- if (secret === ReactPropTypesSecret) {
12697
- // It is still safe when called from React.
12698
- return;
12699
- }
12700
- var err = new Error(
12701
- 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
12702
- 'Use PropTypes.checkPropTypes() to call them. ' +
12703
- 'Read more at http://fb.me/use-check-prop-types'
12704
- );
12705
- err.name = 'Invariant Violation';
12706
- throw err;
12707
- } shim.isRequired = shim;
12708
- function getShim() {
12709
- return shim;
12710
- } // Important!
12711
- // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
12712
- var ReactPropTypes = {
12713
- array: shim,
12714
- bigint: shim,
12715
- bool: shim,
12716
- func: shim,
12717
- number: shim,
12718
- object: shim,
12719
- string: shim,
12720
- symbol: shim,
12721
-
12722
- any: shim,
12723
- arrayOf: getShim,
12724
- element: shim,
12725
- elementType: shim,
12726
- instanceOf: getShim,
12727
- node: shim,
12728
- objectOf: getShim,
12729
- oneOf: getShim,
12730
- oneOfType: getShim,
12731
- shape: getShim,
12732
- exact: getShim,
12733
-
12734
- checkPropTypes: emptyFunctionWithReset,
12735
- resetWarningCache: emptyFunction
12736
- };
12737
-
12738
- ReactPropTypes.PropTypes = ReactPropTypes;
14106
+ var hasRequiredReactIs_production_min;
12739
14107
 
12740
- return ReactPropTypes;
12741
- };
12742
- return factoryWithThrowingShims;
14108
+ function requireReactIs_production_min () {
14109
+ if (hasRequiredReactIs_production_min) return reactIs_production_min;
14110
+ hasRequiredReactIs_production_min = 1;
14111
+ var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
14112
+ Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
14113
+ function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
14114
+ reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
14115
+ reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
14116
+ reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
14117
+ return reactIs_production_min;
12743
14118
  }
12744
14119
 
12745
- var reactIs = {exports: {}};
12746
-
12747
14120
  var reactIs_development = {};
12748
14121
 
12749
14122
  /** @license React v16.13.1
@@ -12933,31 +14306,6 @@ function requireReactIs_development () {
12933
14306
  return reactIs_development;
12934
14307
  }
12935
14308
 
12936
- var reactIs_production_min = {};
12937
-
12938
- /** @license React v16.13.1
12939
- * react-is.production.min.js
12940
- *
12941
- * Copyright (c) Facebook, Inc. and its affiliates.
12942
- *
12943
- * This source code is licensed under the MIT license found in the
12944
- * LICENSE file in the root directory of this source tree.
12945
- */
12946
-
12947
- var hasRequiredReactIs_production_min;
12948
-
12949
- function requireReactIs_production_min () {
12950
- if (hasRequiredReactIs_production_min) return reactIs_production_min;
12951
- hasRequiredReactIs_production_min = 1;
12952
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
12953
- Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
12954
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
12955
- reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
12956
- reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
12957
- reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
12958
- return reactIs_production_min;
12959
- }
12960
-
12961
14309
  var hasRequiredReactIs;
12962
14310
 
12963
14311
  function requireReactIs () {
@@ -13070,6 +14418,26 @@ function requireObjectAssign () {
13070
14418
  return objectAssign;
13071
14419
  }
13072
14420
 
14421
+ /**
14422
+ * Copyright (c) 2013-present, Facebook, Inc.
14423
+ *
14424
+ * This source code is licensed under the MIT license found in the
14425
+ * LICENSE file in the root directory of this source tree.
14426
+ */
14427
+
14428
+ var ReactPropTypesSecret_1;
14429
+ var hasRequiredReactPropTypesSecret;
14430
+
14431
+ function requireReactPropTypesSecret () {
14432
+ if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
14433
+ hasRequiredReactPropTypesSecret = 1;
14434
+
14435
+ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
14436
+
14437
+ ReactPropTypesSecret_1 = ReactPropTypesSecret;
14438
+ return ReactPropTypesSecret_1;
14439
+ }
14440
+
13073
14441
  var has;
13074
14442
  var hasRequiredHas;
13075
14443
 
@@ -13809,6 +15177,77 @@ function requireFactoryWithTypeCheckers () {
13809
15177
  return factoryWithTypeCheckers;
13810
15178
  }
13811
15179
 
15180
+ /**
15181
+ * Copyright (c) 2013-present, Facebook, Inc.
15182
+ *
15183
+ * This source code is licensed under the MIT license found in the
15184
+ * LICENSE file in the root directory of this source tree.
15185
+ */
15186
+
15187
+ var factoryWithThrowingShims;
15188
+ var hasRequiredFactoryWithThrowingShims;
15189
+
15190
+ function requireFactoryWithThrowingShims () {
15191
+ if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
15192
+ hasRequiredFactoryWithThrowingShims = 1;
15193
+
15194
+ var ReactPropTypesSecret = requireReactPropTypesSecret();
15195
+
15196
+ function emptyFunction() {}
15197
+ function emptyFunctionWithReset() {}
15198
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
15199
+
15200
+ factoryWithThrowingShims = function() {
15201
+ function shim(props, propName, componentName, location, propFullName, secret) {
15202
+ if (secret === ReactPropTypesSecret) {
15203
+ // It is still safe when called from React.
15204
+ return;
15205
+ }
15206
+ var err = new Error(
15207
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
15208
+ 'Use PropTypes.checkPropTypes() to call them. ' +
15209
+ 'Read more at http://fb.me/use-check-prop-types'
15210
+ );
15211
+ err.name = 'Invariant Violation';
15212
+ throw err;
15213
+ } shim.isRequired = shim;
15214
+ function getShim() {
15215
+ return shim;
15216
+ } // Important!
15217
+ // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
15218
+ var ReactPropTypes = {
15219
+ array: shim,
15220
+ bigint: shim,
15221
+ bool: shim,
15222
+ func: shim,
15223
+ number: shim,
15224
+ object: shim,
15225
+ string: shim,
15226
+ symbol: shim,
15227
+
15228
+ any: shim,
15229
+ arrayOf: getShim,
15230
+ element: shim,
15231
+ elementType: shim,
15232
+ instanceOf: getShim,
15233
+ node: shim,
15234
+ objectOf: getShim,
15235
+ oneOf: getShim,
15236
+ oneOfType: getShim,
15237
+ shape: getShim,
15238
+ exact: getShim,
15239
+
15240
+ checkPropTypes: emptyFunctionWithReset,
15241
+ resetWarningCache: emptyFunction
15242
+ };
15243
+
15244
+ ReactPropTypes.PropTypes = ReactPropTypes;
15245
+
15246
+ return ReactPropTypes;
15247
+ };
15248
+ return factoryWithThrowingShims;
15249
+ }
15250
+
13812
15251
  /**
13813
15252
  * Copyright (c) 2013-present, Facebook, Inc.
13814
15253
  *
@@ -15846,7 +17285,6 @@ function Wizard(props) {
15846
17285
  };
15847
17286
  const handleNextPress = () => {
15848
17287
  const allowNext = onNextPress ? onNextPress() : true;
15849
- debugger;
15850
17288
  if (!allowNext) {
15851
17289
  return;
15852
17290
  }
@@ -16042,7 +17480,7 @@ function WizardWithSidebar(props) {
16042
17480
  }), children: [(Object.keys(validationErrors ? validationErrors : []).some((error) => stepSchema[step].inputsRequiringValidation.includes(error)) ||
16043
17481
  index > steps.indexOf(currentStep)) && (jsx("div", { className: "sidebar-step__number-icon", children: index + 1 })), !Object.keys(validationErrors ? validationErrors : []).some((error) => stepSchema[step].inputsRequiringValidation.includes(error)) &&
16044
17482
  index <= steps.indexOf(currentStep) && (jsx(Icon, { name: "fa-check-circle", className: "sidebar-step__check-icon" })), step] }, step));
16045
- })] }), jsxs("div", { className: "wizard-content", children: [jsx("div", { className: "wizard-content__header", children: jsx("h2", { children: currentStep }) }), jsx("div", { className: "wizard-content__body", children: children }), jsx("nav", { children: jsxs("div", { className: "wizard-buttons", children: [jsx(Button, { onClick: () => setOpenCancelConfirm(true), variant: "link-style", children: "Cancel" }), steps.indexOf(currentStep) !== 0 && (jsx(IconButton, { variant: "outline", iconName: "fa-arrow-left", label: "Previous Step", onPress: prevStep, isDisabled: disablePrevStep })), onLastStep ? (jsx(IconButton, { variant: "primary", iconName: "check", busy: isBusy, label: isBusy ? submitProcessing : submitButtonLabel, onPress: handleNextPress, isDisabled: disableSubmit })) : (jsx(IconButton, Object.assign({ variant: "primary", iconSide: "end", iconName: "fa-arrow-right", label: "Next Step", onPress: handleNextPress, isDisabled: disableNextStep }, nextButtonProps)))] }) })] }), jsx(ConfirmModal, { title: confirmCancel.title, message: confirmCancel.message, confirmText: confirmCancel.confirmText, rejectText: confirmCancel.rejectText, open: openCancelConfirm, clickOutsideHandler: () => setOpenCancelConfirm(false), responseHandler: handleCancelRequest })] }));
17483
+ })] }), jsxs("div", { className: "wizard-content", children: [jsx("div", { className: "wizard-content__header", children: jsx("h2", { children: currentStep }) }), jsx("div", { className: "wizard-content__body", children: children }), jsx("nav", { children: jsxs("div", { className: "wizard-buttons", children: [jsx(Button, { onClick: () => setOpenCancelConfirm(true), variant: "link-style", children: "Cancel" }), steps.indexOf(currentStep) !== 0 && (jsx(IconButton, { variant: "outline", iconName: "fa-arrow-left", label: "Previous Step", onPress: prevStep, isDisabled: disablePrevStep })), onLastStep ? (jsx(IconButton, { variant: "primary", iconName: "check", busy: isBusy, label: isBusy ? submitProcessing : submitButtonLabel, onPress: handleNextPress, isDisabled: disableSubmit })) : (jsx(IconButton, Object.assign({ variant: "primary", iconSide: "end", iconName: "fa-arrow-right", label: "Next Step", onPress: handleNextPress, isDisabled: disableNextStep }, nextButtonProps)))] }) })] }), jsx(ConfirmModal, { title: confirmCancel.title, message: confirmCancel.message, confirmText: confirmCancel.confirmText, rejectText: confirmCancel.rejectText, open: openCancelConfirm, clickOutsideHandler: () => setOpenCancelConfirm(false), responseHandler: handleCancelRequest, width: 430 })] }));
16046
17484
  }
16047
17485
 
16048
17486
  const fullViewportHeightMinusOffset = 'calc(100% - 42px)';
@@ -16201,5 +17639,5 @@ const Drawer = (props) => {
16201
17639
  return (jsx(StyledDrawer, Object.assign({ id: id, "data-cy": props['data-cy'], "data-testid": props['data-testid'], style: style }, restOfProps, { className: drawerClasses, onMouseOver: handleMouseOver, onMouseOut: handleMouseOut, "aria-expanded": isOpen, "$expandedWidth": $expandedWidth, "$collapsedWidth": $collapsedWidth, children: jsxs("div", { className: "drawer__wrapper", children: [jsx("div", { className: "drawer__header", children: headerComponent ? (headerComponent) : (jsxs("span", { children: [logoIcon ? jsx(Icon, { name: logoIcon, size: [24], "data-testid": "logo-icon" }) : null, jsx("p", { "data-testid": "logo-text", "aria-hidden": !isOpen, children: logoText })] })) }), jsxs("div", { className: "drawer__content", children: [(navigationItems === null || navigationItems === void 0 ? void 0 : navigationItems.length) ? (jsx("div", { className: "drawer__navigation", "data-testid": "drawer-navigation", children: jsx(DrawerLinkList, { isOpen: isOpen, listItems: navigationItems }) })) : null, (footerItems === null || footerItems === void 0 ? void 0 : footerItems.length) ? (jsx("div", { className: "drawer__footer", "data-testid": "drawer-footer", children: jsx(DrawerLinkList, { isOpen: isOpen, listItems: footerItems }) })) : null] })] }) })));
16202
17640
  };
16203
17641
 
16204
- export { animation as ANIMATION, Accordion, breakpoints as BREAKPOINT, BarSpinner, BorderSelect, Button, allColors as COLORS, CirclePulse, CircleSpinner, ConfirmModal, Drawer, EditableInput, GlobalStyles, Icon, IconButton, ListTable, LoadingAwareContainer, LoadingList, margin as MARGINS, MATH, mediaQueries as MEDIA_QUERIES, ModalBase, MultiCombobox, NumberInput, padding as PADDINGS, Pagination, PercentageRing, RandomLoadingMessage, spacings as SPACING, SearchInput, Section, SectionBlock, SectionBody, SectionHeader, SectionTable, Select, Shrug, SingleCombobox, StyledWizard, typography as TYPOGRAPHY, TextInput, Wizard, WizardCard, WizardSection, WizardWithSidebar, faIcons, indicons };
17642
+ export { animation as ANIMATION, Radio$1 as AbstractRadio, RadioGroup$1 as AbstractRadioGroup, Accordion, breakpoints as BREAKPOINT, BarSpinner, BorderSelect, Button, allColors as COLORS, CirclePulse, CircleSpinner, ConfirmModal, Drawer, EditableInput, GlobalStyles, Icon, IconButton, ListTable, LoadingAwareContainer, LoadingList, margin as MARGINS, MATH, mediaQueries as MEDIA_QUERIES, ModalBase, MultiCombobox, NumberInput, padding as PADDINGS, Pagination, PercentageRing, Radio, RadioGroup, RandomLoadingMessage, spacings as SPACING, SearchInput, Section, SectionBlock, SectionBody, SectionHeader, SectionTable, Select, Shrug, SingleCombobox, StyledWizard, typography as TYPOGRAPHY, TextInput, Wizard, WizardCard, WizardSection, WizardWithSidebar, faIcons, indicons };
16205
17643
  //# sourceMappingURL=index.esm.js.map