@epignosis_llc/gnosis 5.41.26 → 5.41.28

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 (770) hide show
  1. package/dist/cjs/index.js +1938 -226
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/esm/_virtual/Modal.js +1 -1
  4. package/dist/esm/_virtual/ModalPortal.js +1 -1
  5. package/dist/esm/_virtual/_commonjsHelpers.js +1 -1
  6. package/dist/esm/_virtual/_rollupPluginBabelHelpers.js +1 -1
  7. package/dist/esm/_virtual/ariaAppHider.js +1 -1
  8. package/dist/esm/_virtual/bodyTrap.js +1 -1
  9. package/dist/esm/_virtual/classList.js +1 -1
  10. package/dist/esm/_virtual/focusManager.js +1 -1
  11. package/dist/esm/_virtual/index.js +1 -1
  12. package/dist/esm/_virtual/index2.js +1 -1
  13. package/dist/esm/_virtual/index3.js +1 -1
  14. package/dist/esm/_virtual/index4.js +1 -1
  15. package/dist/esm/_virtual/index5.js +1 -1
  16. package/dist/esm/_virtual/index6.js +1 -1
  17. package/dist/esm/_virtual/index7.js +1 -1
  18. package/dist/esm/_virtual/make-built-in.js +1 -1
  19. package/dist/esm/_virtual/object-define-properties.js +1 -1
  20. package/dist/esm/_virtual/object-define-property.js +1 -1
  21. package/dist/esm/_virtual/object-get-own-property-descriptor.js +1 -1
  22. package/dist/esm/_virtual/object-get-own-property-names-external.js +1 -1
  23. package/dist/esm/_virtual/object-get-own-property-names.js +1 -1
  24. package/dist/esm/_virtual/object-get-own-property-symbols.js +1 -1
  25. package/dist/esm/_virtual/object-property-is-enumerable.js +1 -1
  26. package/dist/esm/_virtual/portalOpenInstances.js +1 -1
  27. package/dist/esm/_virtual/react-is.development.js +1 -1
  28. package/dist/esm/_virtual/react-is.production.min.js +1 -1
  29. package/dist/esm/_virtual/react-lifecycles-compat.es.js +1 -1
  30. package/dist/esm/_virtual/safeHTMLElement.js +1 -1
  31. package/dist/esm/_virtual/scopeTab.js +1 -1
  32. package/dist/esm/_virtual/shared-store.js +1 -1
  33. package/dist/esm/_virtual/tabbable.js +1 -1
  34. package/dist/esm/_virtual/well-known-symbol-wrapped.js +1 -1
  35. package/dist/esm/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -1
  36. package/dist/esm/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
  37. package/dist/esm/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +1 -1
  38. package/dist/esm/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
  39. package/dist/esm/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
  40. package/dist/esm/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
  41. package/dist/esm/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
  42. package/dist/esm/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
  43. package/dist/esm/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
  44. package/dist/esm/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
  45. package/dist/esm/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
  46. package/dist/esm/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +16 -0
  47. package/dist/esm/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +1 -0
  48. package/dist/esm/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
  49. package/dist/esm/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +1 -1
  50. package/dist/esm/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +1 -1
  51. package/dist/esm/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
  52. package/dist/esm/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +1 -1
  53. package/dist/esm/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
  54. package/dist/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
  55. package/dist/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
  56. package/dist/esm/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
  57. package/dist/esm/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
  58. package/dist/esm/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
  59. package/dist/esm/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +1 -1
  60. package/dist/esm/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +1 -1
  61. package/dist/esm/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
  62. package/dist/esm/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
  63. package/dist/esm/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
  64. package/dist/esm/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
  65. package/dist/esm/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +1 -1
  66. package/dist/esm/node_modules/@emotion/hash/dist/emotion-hash.esm.js +1 -1
  67. package/dist/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +1 -1
  68. package/dist/esm/node_modules/@emotion/react/dist/emotion-element-5486c51c.browser.esm.js +1 -1
  69. package/dist/esm/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +1 -1
  70. package/dist/esm/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +1 -1
  71. package/dist/esm/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +1 -1
  72. package/dist/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +1 -1
  73. package/dist/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js +1 -1
  74. package/dist/esm/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +1 -1
  75. package/dist/esm/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +1 -1
  76. package/dist/esm/node_modules/@floating-ui/core/dist/floating-ui.core.mjs.js +1 -1
  77. package/dist/esm/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs.js +1 -1
  78. package/dist/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs.js +1 -1
  79. package/dist/esm/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs.js +1 -1
  80. package/dist/esm/node_modules/@popperjs/core/lib/createPopper.js +1 -1
  81. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/contains.js +1 -1
  82. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js +1 -1
  83. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js +1 -1
  84. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js +1 -1
  85. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js +1 -1
  86. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js +1 -1
  87. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js +1 -1
  88. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js +1 -1
  89. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js +1 -1
  90. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js +1 -1
  91. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js +1 -1
  92. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js +1 -1
  93. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js +1 -1
  94. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js +1 -1
  95. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js +1 -1
  96. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getWindow.js +1 -1
  97. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js +1 -1
  98. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js +1 -1
  99. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js +1 -1
  100. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js +1 -1
  101. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js +1 -1
  102. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js +1 -1
  103. package/dist/esm/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js +1 -1
  104. package/dist/esm/node_modules/@popperjs/core/lib/enums.js +1 -1
  105. package/dist/esm/node_modules/@popperjs/core/lib/modifiers/applyStyles.js +1 -1
  106. package/dist/esm/node_modules/@popperjs/core/lib/modifiers/arrow.js +1 -1
  107. package/dist/esm/node_modules/@popperjs/core/lib/modifiers/computeStyles.js +1 -1
  108. package/dist/esm/node_modules/@popperjs/core/lib/modifiers/eventListeners.js +1 -1
  109. package/dist/esm/node_modules/@popperjs/core/lib/modifiers/flip.js +1 -1
  110. package/dist/esm/node_modules/@popperjs/core/lib/modifiers/hide.js +1 -1
  111. package/dist/esm/node_modules/@popperjs/core/lib/modifiers/offset.js +1 -1
  112. package/dist/esm/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js +1 -1
  113. package/dist/esm/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js +1 -1
  114. package/dist/esm/node_modules/@popperjs/core/lib/popper.js +1 -1
  115. package/dist/esm/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js +1 -1
  116. package/dist/esm/node_modules/@popperjs/core/lib/utils/computeOffsets.js +1 -1
  117. package/dist/esm/node_modules/@popperjs/core/lib/utils/debounce.js +1 -1
  118. package/dist/esm/node_modules/@popperjs/core/lib/utils/detectOverflow.js +1 -1
  119. package/dist/esm/node_modules/@popperjs/core/lib/utils/expandToHashMap.js +1 -1
  120. package/dist/esm/node_modules/@popperjs/core/lib/utils/getAltAxis.js +1 -1
  121. package/dist/esm/node_modules/@popperjs/core/lib/utils/getBasePlacement.js +1 -1
  122. package/dist/esm/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js +1 -1
  123. package/dist/esm/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js +1 -1
  124. package/dist/esm/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js +1 -1
  125. package/dist/esm/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js +1 -1
  126. package/dist/esm/node_modules/@popperjs/core/lib/utils/getVariation.js +1 -1
  127. package/dist/esm/node_modules/@popperjs/core/lib/utils/math.js +1 -1
  128. package/dist/esm/node_modules/@popperjs/core/lib/utils/mergeByName.js +1 -1
  129. package/dist/esm/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js +1 -1
  130. package/dist/esm/node_modules/@popperjs/core/lib/utils/orderModifiers.js +1 -1
  131. package/dist/esm/node_modules/@popperjs/core/lib/utils/rectToClientRect.js +1 -1
  132. package/dist/esm/node_modules/@popperjs/core/lib/utils/userAgent.js +1 -1
  133. package/dist/esm/node_modules/@popperjs/core/lib/utils/within.js +1 -1
  134. package/dist/esm/node_modules/@tippyjs/react/headless/dist/tippy-react-headless.esm.js +1 -1
  135. package/dist/esm/node_modules/ahooks/es/useClickAway/index.js +1 -1
  136. package/dist/esm/node_modules/ahooks/es/useDebounceFn/index.js +1 -1
  137. package/dist/esm/node_modules/ahooks/es/useLatest/index.js +1 -1
  138. package/dist/esm/node_modules/ahooks/es/useResponsive/index.js +1 -1
  139. package/dist/esm/node_modules/ahooks/es/useUnmount/index.js +1 -1
  140. package/dist/esm/node_modules/ahooks/es/utils/createEffectWithTarget.js +1 -1
  141. package/dist/esm/node_modules/ahooks/es/utils/depsAreSame.js +1 -1
  142. package/dist/esm/node_modules/ahooks/es/utils/domTarget.js +1 -1
  143. package/dist/esm/node_modules/ahooks/es/utils/getDocumentOrShadow.js +1 -1
  144. package/dist/esm/node_modules/ahooks/es/utils/index.js +1 -1
  145. package/dist/esm/node_modules/ahooks/es/utils/isBrowser.js +1 -1
  146. package/dist/esm/node_modules/ahooks/es/utils/isDev.js +1 -1
  147. package/dist/esm/node_modules/ahooks/es/utils/lodash-polyfill.js +1 -1
  148. package/dist/esm/node_modules/ahooks/es/utils/useEffectWithTarget.js +1 -1
  149. package/dist/esm/node_modules/classnames/index.js +1 -1
  150. package/dist/esm/node_modules/color/index.js +1 -1
  151. package/dist/esm/node_modules/color-convert/conversions.js +1 -1
  152. package/dist/esm/node_modules/color-convert/index.js +1 -1
  153. package/dist/esm/node_modules/color-convert/route.js +1 -1
  154. package/dist/esm/node_modules/color-name/index.js +1 -1
  155. package/dist/esm/node_modules/color-string/index.js +1 -1
  156. package/dist/esm/node_modules/core-js/internals/a-callable.js +1 -1
  157. package/dist/esm/node_modules/core-js/internals/add-to-unscopables.js +1 -1
  158. package/dist/esm/node_modules/core-js/internals/an-object.js +1 -1
  159. package/dist/esm/node_modules/core-js/internals/array-fill.js +1 -1
  160. package/dist/esm/node_modules/core-js/internals/array-for-each.js +1 -1
  161. package/dist/esm/node_modules/core-js/internals/array-includes.js +1 -1
  162. package/dist/esm/node_modules/core-js/internals/array-iteration.js +1 -1
  163. package/dist/esm/node_modules/core-js/internals/array-method-has-species-support.js +1 -1
  164. package/dist/esm/node_modules/core-js/internals/array-method-is-strict.js +1 -1
  165. package/dist/esm/node_modules/core-js/internals/array-reduce.js +1 -1
  166. package/dist/esm/node_modules/core-js/internals/array-slice.js +1 -1
  167. package/dist/esm/node_modules/core-js/internals/array-species-constructor.js +1 -1
  168. package/dist/esm/node_modules/core-js/internals/array-species-create.js +1 -1
  169. package/dist/esm/node_modules/core-js/internals/classof-raw.js +1 -1
  170. package/dist/esm/node_modules/core-js/internals/classof.js +1 -1
  171. package/dist/esm/node_modules/core-js/internals/copy-constructor-properties.js +1 -1
  172. package/dist/esm/node_modules/core-js/internals/correct-is-regexp-logic.js +1 -1
  173. package/dist/esm/node_modules/core-js/internals/create-html.js +1 -1
  174. package/dist/esm/node_modules/core-js/internals/create-non-enumerable-property.js +1 -1
  175. package/dist/esm/node_modules/core-js/internals/create-property-descriptor.js +1 -1
  176. package/dist/esm/node_modules/core-js/internals/create-property.js +1 -1
  177. package/dist/esm/node_modules/core-js/internals/define-built-in-accessor.js +1 -1
  178. package/dist/esm/node_modules/core-js/internals/define-built-in.js +1 -1
  179. package/dist/esm/node_modules/core-js/internals/define-global-property.js +1 -1
  180. package/dist/esm/node_modules/core-js/internals/descriptors.js +1 -1
  181. package/dist/esm/node_modules/core-js/internals/document-create-element.js +1 -1
  182. package/dist/esm/node_modules/core-js/internals/does-not-exceed-safe-integer.js +1 -1
  183. package/dist/esm/node_modules/core-js/internals/dom-iterables.js +1 -1
  184. package/dist/esm/node_modules/core-js/internals/dom-token-list-prototype.js +1 -1
  185. package/dist/esm/node_modules/core-js/internals/enum-bug-keys.js +1 -1
  186. package/dist/esm/node_modules/core-js/internals/environment-is-node.js +1 -1
  187. package/dist/esm/node_modules/core-js/internals/environment-user-agent.js +1 -1
  188. package/dist/esm/node_modules/core-js/internals/environment-v8-version.js +1 -1
  189. package/dist/esm/node_modules/core-js/internals/environment.js +1 -1
  190. package/dist/esm/node_modules/core-js/internals/export.js +1 -1
  191. package/dist/esm/node_modules/core-js/internals/fails.js +1 -1
  192. package/dist/esm/node_modules/core-js/internals/function-apply.js +1 -1
  193. package/dist/esm/node_modules/core-js/internals/function-bind-context.js +1 -1
  194. package/dist/esm/node_modules/core-js/internals/function-bind-native.js +1 -1
  195. package/dist/esm/node_modules/core-js/internals/function-call.js +1 -1
  196. package/dist/esm/node_modules/core-js/internals/function-name.js +1 -1
  197. package/dist/esm/node_modules/core-js/internals/function-uncurry-this-clause.js +1 -1
  198. package/dist/esm/node_modules/core-js/internals/function-uncurry-this.js +1 -1
  199. package/dist/esm/node_modules/core-js/internals/get-built-in.js +1 -1
  200. package/dist/esm/node_modules/core-js/internals/get-json-replacer-function.js +1 -1
  201. package/dist/esm/node_modules/core-js/internals/get-method.js +1 -1
  202. package/dist/esm/node_modules/core-js/internals/global-this.js +1 -1
  203. package/dist/esm/node_modules/core-js/internals/has-own-property.js +1 -1
  204. package/dist/esm/node_modules/core-js/internals/hidden-keys.js +1 -1
  205. package/dist/esm/node_modules/core-js/internals/html.js +1 -1
  206. package/dist/esm/node_modules/core-js/internals/ie8-dom-define.js +1 -1
  207. package/dist/esm/node_modules/core-js/internals/indexed-object.js +1 -1
  208. package/dist/esm/node_modules/core-js/internals/inspect-source.js +1 -1
  209. package/dist/esm/node_modules/core-js/internals/internal-state.js +1 -1
  210. package/dist/esm/node_modules/core-js/internals/is-array.js +1 -1
  211. package/dist/esm/node_modules/core-js/internals/is-callable.js +1 -1
  212. package/dist/esm/node_modules/core-js/internals/is-constructor.js +1 -1
  213. package/dist/esm/node_modules/core-js/internals/is-forced.js +1 -1
  214. package/dist/esm/node_modules/core-js/internals/is-null-or-undefined.js +1 -1
  215. package/dist/esm/node_modules/core-js/internals/is-object.js +1 -1
  216. package/dist/esm/node_modules/core-js/internals/is-regexp.js +1 -1
  217. package/dist/esm/node_modules/core-js/internals/is-symbol.js +1 -1
  218. package/dist/esm/node_modules/core-js/internals/length-of-array-like.js +1 -1
  219. package/dist/esm/node_modules/core-js/internals/make-built-in.js +1 -1
  220. package/dist/esm/node_modules/core-js/internals/math-trunc.js +1 -1
  221. package/dist/esm/node_modules/core-js/internals/not-a-regexp.js +1 -1
  222. package/dist/esm/node_modules/core-js/internals/number-parse-int.js +1 -1
  223. package/dist/esm/node_modules/core-js/internals/object-assign.js +1 -1
  224. package/dist/esm/node_modules/core-js/internals/object-create.js +1 -1
  225. package/dist/esm/node_modules/core-js/internals/object-define-properties.js +1 -1
  226. package/dist/esm/node_modules/core-js/internals/object-define-property.js +1 -1
  227. package/dist/esm/node_modules/core-js/internals/object-get-own-property-descriptor.js +1 -1
  228. package/dist/esm/node_modules/core-js/internals/object-get-own-property-names-external.js +1 -1
  229. package/dist/esm/node_modules/core-js/internals/object-get-own-property-names.js +1 -1
  230. package/dist/esm/node_modules/core-js/internals/object-get-own-property-symbols.js +1 -1
  231. package/dist/esm/node_modules/core-js/internals/object-is-prototype-of.js +1 -1
  232. package/dist/esm/node_modules/core-js/internals/object-keys-internal.js +1 -1
  233. package/dist/esm/node_modules/core-js/internals/object-keys.js +1 -1
  234. package/dist/esm/node_modules/core-js/internals/object-property-is-enumerable.js +1 -1
  235. package/dist/esm/node_modules/core-js/internals/object-to-string.js +1 -1
  236. package/dist/esm/node_modules/core-js/internals/ordinary-to-primitive.js +1 -1
  237. package/dist/esm/node_modules/core-js/internals/own-keys.js +1 -1
  238. package/dist/esm/node_modules/core-js/internals/path.js +1 -1
  239. package/dist/esm/node_modules/core-js/internals/regexp-exec.js +1 -1
  240. package/dist/esm/node_modules/core-js/internals/regexp-flags.js +1 -1
  241. package/dist/esm/node_modules/core-js/internals/regexp-get-flags.js +1 -1
  242. package/dist/esm/node_modules/core-js/internals/regexp-sticky-helpers.js +1 -1
  243. package/dist/esm/node_modules/core-js/internals/regexp-unsupported-dot-all.js +1 -1
  244. package/dist/esm/node_modules/core-js/internals/regexp-unsupported-ncg.js +1 -1
  245. package/dist/esm/node_modules/core-js/internals/require-object-coercible.js +1 -1
  246. package/dist/esm/node_modules/core-js/internals/schedulers-fix.js +1 -1
  247. package/dist/esm/node_modules/core-js/internals/set-to-string-tag.js +1 -1
  248. package/dist/esm/node_modules/core-js/internals/shared-key.js +1 -1
  249. package/dist/esm/node_modules/core-js/internals/shared-store.js +1 -1
  250. package/dist/esm/node_modules/core-js/internals/shared.js +1 -1
  251. package/dist/esm/node_modules/core-js/internals/string-html-forced.js +1 -1
  252. package/dist/esm/node_modules/core-js/internals/string-repeat.js +1 -1
  253. package/dist/esm/node_modules/core-js/internals/string-trim.js +1 -1
  254. package/dist/esm/node_modules/core-js/internals/symbol-constructor-detection.js +1 -1
  255. package/dist/esm/node_modules/core-js/internals/symbol-define-to-primitive.js +1 -1
  256. package/dist/esm/node_modules/core-js/internals/symbol-registry-detection.js +1 -1
  257. package/dist/esm/node_modules/core-js/internals/this-number-value.js +1 -1
  258. package/dist/esm/node_modules/core-js/internals/to-absolute-index.js +1 -1
  259. package/dist/esm/node_modules/core-js/internals/to-indexed-object.js +1 -1
  260. package/dist/esm/node_modules/core-js/internals/to-integer-or-infinity.js +1 -1
  261. package/dist/esm/node_modules/core-js/internals/to-length.js +1 -1
  262. package/dist/esm/node_modules/core-js/internals/to-object.js +1 -1
  263. package/dist/esm/node_modules/core-js/internals/to-primitive.js +1 -1
  264. package/dist/esm/node_modules/core-js/internals/to-property-key.js +1 -1
  265. package/dist/esm/node_modules/core-js/internals/to-string-tag-support.js +1 -1
  266. package/dist/esm/node_modules/core-js/internals/to-string.js +1 -1
  267. package/dist/esm/node_modules/core-js/internals/try-to-string.js +1 -1
  268. package/dist/esm/node_modules/core-js/internals/uid.js +1 -1
  269. package/dist/esm/node_modules/core-js/internals/use-symbol-as-uid.js +1 -1
  270. package/dist/esm/node_modules/core-js/internals/v8-prototype-define-bug.js +1 -1
  271. package/dist/esm/node_modules/core-js/internals/validate-arguments-length.js +1 -1
  272. package/dist/esm/node_modules/core-js/internals/weak-map-basic-detection.js +1 -1
  273. package/dist/esm/node_modules/core-js/internals/well-known-symbol-define.js +1 -1
  274. package/dist/esm/node_modules/core-js/internals/well-known-symbol-wrapped.js +1 -1
  275. package/dist/esm/node_modules/core-js/internals/well-known-symbol.js +1 -1
  276. package/dist/esm/node_modules/core-js/internals/whitespaces.js +1 -1
  277. package/dist/esm/node_modules/core-js/modules/es.array.concat.js +1 -1
  278. package/dist/esm/node_modules/core-js/modules/es.array.every.js +1 -1
  279. package/dist/esm/node_modules/core-js/modules/es.array.fill.js +1 -1
  280. package/dist/esm/node_modules/core-js/modules/es.array.filter.js +1 -1
  281. package/dist/esm/node_modules/core-js/modules/es.array.find.js +1 -1
  282. package/dist/esm/node_modules/core-js/modules/es.array.for-each.js +1 -1
  283. package/dist/esm/node_modules/core-js/modules/es.array.includes.js +1 -1
  284. package/dist/esm/node_modules/core-js/modules/es.array.join.js +1 -1
  285. package/dist/esm/node_modules/core-js/modules/es.array.map.js +1 -1
  286. package/dist/esm/node_modules/core-js/modules/es.array.reduce.js +1 -1
  287. package/dist/esm/node_modules/core-js/modules/es.array.reverse.js +1 -1
  288. package/dist/esm/node_modules/core-js/modules/es.array.slice.js +1 -1
  289. package/dist/esm/node_modules/core-js/modules/es.date.to-string.js +1 -1
  290. package/dist/esm/node_modules/core-js/modules/es.function.name.js +1 -1
  291. package/dist/esm/node_modules/core-js/modules/es.json.stringify.js +1 -1
  292. package/dist/esm/node_modules/core-js/modules/es.number.to-fixed.js +1 -1
  293. package/dist/esm/node_modules/core-js/modules/es.object.assign.js +1 -1
  294. package/dist/esm/node_modules/core-js/modules/es.object.get-own-property-symbols.js +1 -1
  295. package/dist/esm/node_modules/core-js/modules/es.object.keys.js +1 -1
  296. package/dist/esm/node_modules/core-js/modules/es.object.to-string.js +1 -1
  297. package/dist/esm/node_modules/core-js/modules/es.parse-int.js +1 -1
  298. package/dist/esm/node_modules/core-js/modules/es.regexp.exec.js +1 -1
  299. package/dist/esm/node_modules/core-js/modules/es.regexp.to-string.js +1 -1
  300. package/dist/esm/node_modules/core-js/modules/es.string.includes.js +1 -1
  301. package/dist/esm/node_modules/core-js/modules/es.string.link.js +1 -1
  302. package/dist/esm/node_modules/core-js/modules/es.symbol.constructor.js +1 -1
  303. package/dist/esm/node_modules/core-js/modules/es.symbol.description.js +1 -1
  304. package/dist/esm/node_modules/core-js/modules/es.symbol.for.js +1 -1
  305. package/dist/esm/node_modules/core-js/modules/es.symbol.key-for.js +1 -1
  306. package/dist/esm/node_modules/core-js/modules/web.dom-collections.for-each.js +1 -1
  307. package/dist/esm/node_modules/core-js/modules/web.set-interval.js +1 -1
  308. package/dist/esm/node_modules/core-js/modules/web.set-timeout.js +1 -1
  309. package/dist/esm/node_modules/deepmerge/dist/cjs.js +1 -1
  310. package/dist/esm/node_modules/exenv/index.js +1 -1
  311. package/dist/esm/node_modules/focus-lock/dist/es2015/commands.js +23 -0
  312. package/dist/esm/node_modules/focus-lock/dist/es2015/commands.js.map +1 -0
  313. package/dist/esm/node_modules/focus-lock/dist/es2015/constants.js +33 -0
  314. package/dist/esm/node_modules/focus-lock/dist/es2015/constants.js.map +1 -0
  315. package/dist/esm/node_modules/focus-lock/dist/es2015/focusInside.js +34 -0
  316. package/dist/esm/node_modules/focus-lock/dist/es2015/focusInside.js.map +1 -0
  317. package/dist/esm/node_modules/focus-lock/dist/es2015/focusIsHidden.js +33 -0
  318. package/dist/esm/node_modules/focus-lock/dist/es2015/focusIsHidden.js.map +1 -0
  319. package/dist/esm/node_modules/focus-lock/dist/es2015/focusSolver.js +86 -0
  320. package/dist/esm/node_modules/focus-lock/dist/es2015/focusSolver.js.map +1 -0
  321. package/dist/esm/node_modules/focus-lock/dist/es2015/focusables.js +38 -0
  322. package/dist/esm/node_modules/focus-lock/dist/es2015/focusables.js.map +1 -0
  323. package/dist/esm/node_modules/focus-lock/dist/es2015/moveFocusInside.js +52 -0
  324. package/dist/esm/node_modules/focus-lock/dist/es2015/moveFocusInside.js.map +1 -0
  325. package/dist/esm/node_modules/focus-lock/dist/es2015/return-focus.js +102 -0
  326. package/dist/esm/node_modules/focus-lock/dist/es2015/return-focus.js.map +1 -0
  327. package/dist/esm/node_modules/focus-lock/dist/es2015/sibling.js +126 -0
  328. package/dist/esm/node_modules/focus-lock/dist/es2015/sibling.js.map +1 -0
  329. package/dist/esm/node_modules/focus-lock/dist/es2015/solver.js +106 -0
  330. package/dist/esm/node_modules/focus-lock/dist/es2015/solver.js.map +1 -0
  331. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/DOMutils.js +89 -0
  332. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/DOMutils.js.map +1 -0
  333. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/all-affected.js +62 -0
  334. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/all-affected.js.map +1 -0
  335. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/array.js +23 -0
  336. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/array.js.map +1 -0
  337. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/auto-focus.js +39 -0
  338. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/auto-focus.js.map +1 -0
  339. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/correctFocus.js +36 -0
  340. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/correctFocus.js.map +1 -0
  341. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/firstFocus.js +22 -0
  342. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/firstFocus.js.map +1 -0
  343. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/getActiveElement.js +32 -0
  344. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/getActiveElement.js.map +1 -0
  345. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/is.js +83 -0
  346. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/is.js.map +1 -0
  347. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/parenting.js +70 -0
  348. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/parenting.js.map +1 -0
  349. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/safe.js +19 -0
  350. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/safe.js.map +1 -0
  351. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/tabOrder.js +52 -0
  352. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/tabOrder.js.map +1 -0
  353. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/tabUtils.js +54 -0
  354. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/tabUtils.js.map +1 -0
  355. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/tabbables.js +33 -0
  356. package/dist/esm/node_modules/focus-lock/dist/es2015/utils/tabbables.js.map +1 -0
  357. package/dist/esm/node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs.js +1 -1
  358. package/dist/esm/node_modules/framer-motion/dist/es/animation/utils/easing.mjs.js +1 -1
  359. package/dist/esm/node_modules/framer-motion/dist/es/animation/utils/is-animatable.mjs.js +1 -1
  360. package/dist/esm/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.mjs.js +1 -1
  361. package/dist/esm/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.mjs.js +1 -1
  362. package/dist/esm/node_modules/framer-motion/dist/es/animation/utils/transitions.mjs.js +1 -1
  363. package/dist/esm/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs.js +1 -1
  364. package/dist/esm/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs.js +1 -1
  365. package/dist/esm/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs.js +1 -1
  366. package/dist/esm/node_modules/framer-motion/dist/es/components/LazyMotion/index.mjs.js +1 -1
  367. package/dist/esm/node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs.js +1 -1
  368. package/dist/esm/node_modules/framer-motion/dist/es/context/LazyContext.mjs.js +1 -1
  369. package/dist/esm/node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs.js +1 -1
  370. package/dist/esm/node_modules/framer-motion/dist/es/context/MotionContext/create.mjs.js +1 -1
  371. package/dist/esm/node_modules/framer-motion/dist/es/context/MotionContext/index.mjs.js +1 -1
  372. package/dist/esm/node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs.js +1 -1
  373. package/dist/esm/node_modules/framer-motion/dist/es/context/PresenceContext.mjs.js +1 -1
  374. package/dist/esm/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs.js +1 -1
  375. package/dist/esm/node_modules/framer-motion/dist/es/events/event-info.mjs.js +1 -1
  376. package/dist/esm/node_modules/framer-motion/dist/es/events/use-dom-event.mjs.js +1 -1
  377. package/dist/esm/node_modules/framer-motion/dist/es/events/use-pointer-event.mjs.js +1 -1
  378. package/dist/esm/node_modules/framer-motion/dist/es/events/utils.mjs.js +1 -1
  379. package/dist/esm/node_modules/framer-motion/dist/es/gestures/drag/utils/lock.mjs.js +1 -1
  380. package/dist/esm/node_modules/framer-motion/dist/es/gestures/use-focus-gesture.mjs.js +1 -1
  381. package/dist/esm/node_modules/framer-motion/dist/es/gestures/use-hover-gesture.mjs.js +1 -1
  382. package/dist/esm/node_modules/framer-motion/dist/es/gestures/use-tap-gesture.mjs.js +1 -1
  383. package/dist/esm/node_modules/framer-motion/dist/es/gestures/utils/event-type.mjs.js +1 -1
  384. package/dist/esm/node_modules/framer-motion/dist/es/gestures/utils/is-node-or-child.mjs.js +1 -1
  385. package/dist/esm/node_modules/framer-motion/dist/es/motion/features/animations.mjs.js +1 -1
  386. package/dist/esm/node_modules/framer-motion/dist/es/motion/features/definitions.mjs.js +1 -1
  387. package/dist/esm/node_modules/framer-motion/dist/es/motion/features/gestures.mjs.js +1 -1
  388. package/dist/esm/node_modules/framer-motion/dist/es/motion/features/use-features.mjs.js +1 -1
  389. package/dist/esm/node_modules/framer-motion/dist/es/motion/features/use-projection.mjs.js +1 -1
  390. package/dist/esm/node_modules/framer-motion/dist/es/motion/features/viewport/observers.mjs.js +1 -1
  391. package/dist/esm/node_modules/framer-motion/dist/es/motion/features/viewport/use-viewport.mjs.js +1 -1
  392. package/dist/esm/node_modules/framer-motion/dist/es/motion/index.mjs.js +1 -1
  393. package/dist/esm/node_modules/framer-motion/dist/es/motion/utils/VisualElementHandler.mjs.js +1 -1
  394. package/dist/esm/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs.js +1 -1
  395. package/dist/esm/node_modules/framer-motion/dist/es/motion/utils/make-renderless-component.mjs.js +1 -1
  396. package/dist/esm/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs.js +1 -1
  397. package/dist/esm/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs.js +1 -1
  398. package/dist/esm/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs.js +1 -1
  399. package/dist/esm/node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs.js +1 -1
  400. package/dist/esm/node_modules/framer-motion/dist/es/projection/geometry/conversion.mjs.js +1 -1
  401. package/dist/esm/node_modules/framer-motion/dist/es/projection/node/id.mjs.js +1 -1
  402. package/dist/esm/node_modules/framer-motion/dist/es/projection/node/state.mjs.js +1 -1
  403. package/dist/esm/node_modules/framer-motion/dist/es/projection/styles/scale-correction.mjs.js +1 -1
  404. package/dist/esm/node_modules/framer-motion/dist/es/projection/utils/measure.mjs.js +1 -1
  405. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs.js +1 -1
  406. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/features-animation.mjs.js +1 -1
  407. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/motion-minimal.mjs.js +1 -1
  408. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/motion-proxy.mjs.js +1 -1
  409. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/use-render.mjs.js +1 -1
  410. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.mjs.js +1 -1
  411. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/utils/create-config.mjs.js +1 -1
  412. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.mjs.js +1 -1
  413. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs.js +1 -1
  414. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.mjs.js +1 -1
  415. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs.js +1 -1
  416. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/utils/parse-dom-variant.mjs.js +1 -1
  417. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.mjs.js +1 -1
  418. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.mjs.js +1 -1
  419. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.mjs.js +1 -1
  420. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.mjs.js +1 -1
  421. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/value-types/find.mjs.js +1 -1
  422. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.mjs.js +1 -1
  423. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/value-types/number.mjs.js +1 -1
  424. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/value-types/test.mjs.js +1 -1
  425. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.mjs.js +1 -1
  426. package/dist/esm/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.mjs.js +1 -1
  427. package/dist/esm/node_modules/framer-motion/dist/es/render/html/config-motion.mjs.js +1 -1
  428. package/dist/esm/node_modules/framer-motion/dist/es/render/html/use-props.mjs.js +1 -1
  429. package/dist/esm/node_modules/framer-motion/dist/es/render/html/utils/build-styles.mjs.js +1 -1
  430. package/dist/esm/node_modules/framer-motion/dist/es/render/html/utils/build-transform.mjs.js +1 -1
  431. package/dist/esm/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs.js +1 -1
  432. package/dist/esm/node_modules/framer-motion/dist/es/render/html/utils/render.mjs.js +1 -1
  433. package/dist/esm/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.mjs.js +1 -1
  434. package/dist/esm/node_modules/framer-motion/dist/es/render/html/utils/transform.mjs.js +1 -1
  435. package/dist/esm/node_modules/framer-motion/dist/es/render/html/visual-element.mjs.js +1 -1
  436. package/dist/esm/node_modules/framer-motion/dist/es/render/index.mjs.js +1 -1
  437. package/dist/esm/node_modules/framer-motion/dist/es/render/svg/config-motion.mjs.js +1 -1
  438. package/dist/esm/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs.js +1 -1
  439. package/dist/esm/node_modules/framer-motion/dist/es/render/svg/use-props.mjs.js +1 -1
  440. package/dist/esm/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.mjs.js +1 -1
  441. package/dist/esm/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.mjs.js +1 -1
  442. package/dist/esm/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs.js +1 -1
  443. package/dist/esm/node_modules/framer-motion/dist/es/render/svg/utils/path.mjs.js +1 -1
  444. package/dist/esm/node_modules/framer-motion/dist/es/render/svg/utils/render.mjs.js +1 -1
  445. package/dist/esm/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.mjs.js +1 -1
  446. package/dist/esm/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.mjs.js +1 -1
  447. package/dist/esm/node_modules/framer-motion/dist/es/render/svg/visual-element.mjs.js +1 -1
  448. package/dist/esm/node_modules/framer-motion/dist/es/render/utils/animation-state.mjs.js +1 -1
  449. package/dist/esm/node_modules/framer-motion/dist/es/render/utils/animation.mjs.js +1 -1
  450. package/dist/esm/node_modules/framer-motion/dist/es/render/utils/lifecycles.mjs.js +1 -1
  451. package/dist/esm/node_modules/framer-motion/dist/es/render/utils/motion-values.mjs.js +1 -1
  452. package/dist/esm/node_modules/framer-motion/dist/es/render/utils/setters.mjs.js +1 -1
  453. package/dist/esm/node_modules/framer-motion/dist/es/render/utils/types.mjs.js +1 -1
  454. package/dist/esm/node_modules/framer-motion/dist/es/render/utils/variants.mjs.js +1 -1
  455. package/dist/esm/node_modules/framer-motion/dist/es/utils/array.mjs.js +1 -1
  456. package/dist/esm/node_modules/framer-motion/dist/es/utils/is-browser.mjs.js +1 -1
  457. package/dist/esm/node_modules/framer-motion/dist/es/utils/is-numerical-string.mjs.js +1 -1
  458. package/dist/esm/node_modules/framer-motion/dist/es/utils/is-ref-object.mjs.js +1 -1
  459. package/dist/esm/node_modules/framer-motion/dist/es/utils/is-zero-value-string.mjs.js +1 -1
  460. package/dist/esm/node_modules/framer-motion/dist/es/utils/process.mjs.js +1 -1
  461. package/dist/esm/node_modules/framer-motion/dist/es/utils/resolve-value.mjs.js +1 -1
  462. package/dist/esm/node_modules/framer-motion/dist/es/utils/shallow-compare.mjs.js +1 -1
  463. package/dist/esm/node_modules/framer-motion/dist/es/utils/subscription-manager.mjs.js +1 -1
  464. package/dist/esm/node_modules/framer-motion/dist/es/utils/time-conversion.mjs.js +1 -1
  465. package/dist/esm/node_modules/framer-motion/dist/es/utils/use-constant.mjs.js +1 -1
  466. package/dist/esm/node_modules/framer-motion/dist/es/utils/use-force-update.mjs.js +1 -1
  467. package/dist/esm/node_modules/framer-motion/dist/es/utils/use-id.mjs.js +1 -1
  468. package/dist/esm/node_modules/framer-motion/dist/es/utils/use-instant-transition-state.mjs.js +1 -1
  469. package/dist/esm/node_modules/framer-motion/dist/es/utils/use-is-mounted.mjs.js +1 -1
  470. package/dist/esm/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.mjs.js +1 -1
  471. package/dist/esm/node_modules/framer-motion/dist/es/utils/use-reduced-motion.mjs.js +1 -1
  472. package/dist/esm/node_modules/framer-motion/dist/es/utils/use-unmount-effect.mjs.js +1 -1
  473. package/dist/esm/node_modules/framer-motion/dist/es/utils/warn-once.mjs.js +1 -1
  474. package/dist/esm/node_modules/framer-motion/dist/es/value/index.mjs.js +1 -1
  475. package/dist/esm/node_modules/framer-motion/dist/es/value/utils/is-motion-value.mjs.js +1 -1
  476. package/dist/esm/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.mjs.js +1 -1
  477. package/dist/esm/node_modules/framesync/dist/es/create-render-step.mjs.js +1 -1
  478. package/dist/esm/node_modules/framesync/dist/es/index.mjs.js +1 -1
  479. package/dist/esm/node_modules/framesync/dist/es/on-next-frame.mjs.js +1 -1
  480. package/dist/esm/node_modules/hey-listen/dist/hey-listen.es.js +1 -1
  481. package/dist/esm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +1 -1
  482. package/dist/esm/node_modules/lodash/_Symbol.js +1 -1
  483. package/dist/esm/node_modules/lodash/_baseGetTag.js +1 -1
  484. package/dist/esm/node_modules/lodash/_baseTrim.js +1 -1
  485. package/dist/esm/node_modules/lodash/_freeGlobal.js +1 -1
  486. package/dist/esm/node_modules/lodash/_getRawTag.js +1 -1
  487. package/dist/esm/node_modules/lodash/_objectToString.js +1 -1
  488. package/dist/esm/node_modules/lodash/_root.js +1 -1
  489. package/dist/esm/node_modules/lodash/_trimmedEndIndex.js +1 -1
  490. package/dist/esm/node_modules/lodash/debounce.js +1 -1
  491. package/dist/esm/node_modules/lodash/isObject.js +1 -1
  492. package/dist/esm/node_modules/lodash/isObjectLike.js +1 -1
  493. package/dist/esm/node_modules/lodash/isSymbol.js +1 -1
  494. package/dist/esm/node_modules/lodash/now.js +1 -1
  495. package/dist/esm/node_modules/lodash/toNumber.js +1 -1
  496. package/dist/esm/node_modules/object-assign/index.js +1 -1
  497. package/dist/esm/node_modules/popmotion/dist/es/animations/generators/decay.mjs.js +1 -1
  498. package/dist/esm/node_modules/popmotion/dist/es/animations/generators/keyframes.mjs.js +1 -1
  499. package/dist/esm/node_modules/popmotion/dist/es/animations/generators/spring.mjs.js +1 -1
  500. package/dist/esm/node_modules/popmotion/dist/es/animations/index.mjs.js +1 -1
  501. package/dist/esm/node_modules/popmotion/dist/es/animations/inertia.mjs.js +1 -1
  502. package/dist/esm/node_modules/popmotion/dist/es/animations/utils/detect-animation-from-options.mjs.js +1 -1
  503. package/dist/esm/node_modules/popmotion/dist/es/animations/utils/elapsed.mjs.js +1 -1
  504. package/dist/esm/node_modules/popmotion/dist/es/animations/utils/find-spring.mjs.js +1 -1
  505. package/dist/esm/node_modules/popmotion/dist/es/easing/cubic-bezier.mjs.js +1 -1
  506. package/dist/esm/node_modules/popmotion/dist/es/easing/index.mjs.js +1 -1
  507. package/dist/esm/node_modules/popmotion/dist/es/easing/utils.mjs.js +1 -1
  508. package/dist/esm/node_modules/popmotion/dist/es/utils/clamp.mjs.js +1 -1
  509. package/dist/esm/node_modules/popmotion/dist/es/utils/hsla-to-rgba.mjs.js +1 -1
  510. package/dist/esm/node_modules/popmotion/dist/es/utils/inc.mjs.js +1 -1
  511. package/dist/esm/node_modules/popmotion/dist/es/utils/interpolate.mjs.js +1 -1
  512. package/dist/esm/node_modules/popmotion/dist/es/utils/mix-color.mjs.js +1 -1
  513. package/dist/esm/node_modules/popmotion/dist/es/utils/mix-complex.mjs.js +1 -1
  514. package/dist/esm/node_modules/popmotion/dist/es/utils/mix.mjs.js +1 -1
  515. package/dist/esm/node_modules/popmotion/dist/es/utils/pipe.mjs.js +1 -1
  516. package/dist/esm/node_modules/popmotion/dist/es/utils/progress.mjs.js +1 -1
  517. package/dist/esm/node_modules/popmotion/dist/es/utils/velocity-per-second.mjs.js +1 -1
  518. package/dist/esm/node_modules/prop-types/checkPropTypes.js +1 -1
  519. package/dist/esm/node_modules/prop-types/factoryWithThrowingShims.js +1 -1
  520. package/dist/esm/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
  521. package/dist/esm/node_modules/prop-types/index.js +5 -1
  522. package/dist/esm/node_modules/prop-types/index.js.map +1 -1
  523. package/dist/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +1 -1
  524. package/dist/esm/node_modules/prop-types/lib/has.js +1 -1
  525. package/dist/esm/node_modules/react-clientside-effect/lib/index.es.js +88 -0
  526. package/dist/esm/node_modules/react-clientside-effect/lib/index.es.js.map +1 -0
  527. package/dist/esm/node_modules/react-focus-lock/dist/es2015/Combination.js +28 -0
  528. package/dist/esm/node_modules/react-focus-lock/dist/es2015/Combination.js.map +1 -0
  529. package/dist/esm/node_modules/react-focus-lock/dist/es2015/FocusGuard.js +26 -0
  530. package/dist/esm/node_modules/react-focus-lock/dist/es2015/FocusGuard.js.map +1 -0
  531. package/dist/esm/node_modules/react-focus-lock/dist/es2015/Lock.js +200 -0
  532. package/dist/esm/node_modules/react-focus-lock/dist/es2015/Lock.js.map +1 -0
  533. package/dist/esm/node_modules/react-focus-lock/dist/es2015/Trap.js +271 -0
  534. package/dist/esm/node_modules/react-focus-lock/dist/es2015/Trap.js.map +1 -0
  535. package/dist/esm/node_modules/react-focus-lock/dist/es2015/index.js +11 -0
  536. package/dist/esm/node_modules/react-focus-lock/dist/es2015/index.js.map +1 -0
  537. package/dist/esm/node_modules/react-focus-lock/dist/es2015/medium.js +27 -0
  538. package/dist/esm/node_modules/react-focus-lock/dist/es2015/medium.js.map +1 -0
  539. package/dist/esm/node_modules/react-focus-lock/dist/es2015/scope.js +14 -0
  540. package/dist/esm/node_modules/react-focus-lock/dist/es2015/scope.js.map +1 -0
  541. package/dist/esm/node_modules/react-focus-lock/dist/es2015/util.js +17 -0
  542. package/dist/esm/node_modules/react-focus-lock/dist/es2015/util.js.map +1 -0
  543. package/dist/esm/node_modules/react-is/cjs/react-is.development.js +1 -1
  544. package/dist/esm/node_modules/react-is/cjs/react-is.production.min.js +1 -1
  545. package/dist/esm/node_modules/react-is/index.js +1 -1
  546. package/dist/esm/node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js +1 -1
  547. package/dist/esm/node_modules/react-modal/lib/components/Modal.js +1 -1
  548. package/dist/esm/node_modules/react-modal/lib/components/ModalPortal.js +1 -1
  549. package/dist/esm/node_modules/react-modal/lib/helpers/ariaAppHider.js +1 -1
  550. package/dist/esm/node_modules/react-modal/lib/helpers/bodyTrap.js +1 -1
  551. package/dist/esm/node_modules/react-modal/lib/helpers/classList.js +1 -1
  552. package/dist/esm/node_modules/react-modal/lib/helpers/focusManager.js +1 -1
  553. package/dist/esm/node_modules/react-modal/lib/helpers/portalOpenInstances.js +1 -1
  554. package/dist/esm/node_modules/react-modal/lib/helpers/safeHTMLElement.js +1 -1
  555. package/dist/esm/node_modules/react-modal/lib/helpers/scopeTab.js +1 -1
  556. package/dist/esm/node_modules/react-modal/lib/helpers/tabbable.js +1 -1
  557. package/dist/esm/node_modules/react-modal/lib/index.js +1 -1
  558. package/dist/esm/node_modules/react-select/async/dist/react-select-async.esm.js +1 -1
  559. package/dist/esm/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +1 -1
  560. package/dist/esm/node_modules/react-select/dist/Select-c7902d94.esm.js +1 -1
  561. package/dist/esm/node_modules/react-select/dist/index-a301f526.esm.js +1 -1
  562. package/dist/esm/node_modules/react-select/dist/react-select.esm.js +1 -1
  563. package/dist/esm/node_modules/react-select/dist/useAsync-ba7c6b77.esm.js +1 -1
  564. package/dist/esm/node_modules/react-select/dist/useCreatable-bf6ebe1f.esm.js +1 -1
  565. package/dist/esm/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +1 -1
  566. package/dist/esm/node_modules/react-select/node_modules/memoize-one/dist/memoize-one.esm.js +1 -1
  567. package/dist/esm/node_modules/react-spinners/esm/ClipLoader.js +1 -1
  568. package/dist/esm/node_modules/react-spinners/esm/PulseLoader.js +1 -1
  569. package/dist/esm/node_modules/react-spinners/esm/helpers/animation.js +1 -1
  570. package/dist/esm/node_modules/react-spinners/esm/helpers/unitConverter.js +1 -1
  571. package/dist/esm/node_modules/simple-swizzle/index.js +1 -1
  572. package/dist/esm/node_modules/simple-swizzle/node_modules/is-arrayish/index.js +1 -1
  573. package/dist/esm/node_modules/style-value-types/dist/es/color/hex.mjs.js +1 -1
  574. package/dist/esm/node_modules/style-value-types/dist/es/color/hsla.mjs.js +1 -1
  575. package/dist/esm/node_modules/style-value-types/dist/es/color/index.mjs.js +1 -1
  576. package/dist/esm/node_modules/style-value-types/dist/es/color/rgba.mjs.js +1 -1
  577. package/dist/esm/node_modules/style-value-types/dist/es/color/utils.mjs.js +1 -1
  578. package/dist/esm/node_modules/style-value-types/dist/es/complex/filter.mjs.js +1 -1
  579. package/dist/esm/node_modules/style-value-types/dist/es/complex/index.mjs.js +1 -1
  580. package/dist/esm/node_modules/style-value-types/dist/es/numbers/index.mjs.js +1 -1
  581. package/dist/esm/node_modules/style-value-types/dist/es/numbers/units.mjs.js +1 -1
  582. package/dist/esm/node_modules/style-value-types/dist/es/utils.mjs.js +1 -1
  583. package/dist/esm/node_modules/stylis/src/Enum.js +1 -1
  584. package/dist/esm/node_modules/stylis/src/Middleware.js +1 -1
  585. package/dist/esm/node_modules/stylis/src/Parser.js +1 -1
  586. package/dist/esm/node_modules/stylis/src/Serializer.js +1 -1
  587. package/dist/esm/node_modules/stylis/src/Tokenizer.js +1 -1
  588. package/dist/esm/node_modules/stylis/src/Utility.js +1 -1
  589. package/dist/esm/node_modules/tippy.js/headless/dist/tippy-headless.esm.js +1 -1
  590. package/dist/esm/node_modules/tslib/tslib.es6.mjs.js +1 -1
  591. package/dist/esm/node_modules/use-callback-ref/dist/es2015/assignRef.js +33 -0
  592. package/dist/esm/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
  593. package/dist/esm/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +57 -0
  594. package/dist/esm/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
  595. package/dist/esm/node_modules/use-callback-ref/dist/es2015/useRef.js +51 -0
  596. package/dist/esm/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
  597. package/dist/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +1 -1
  598. package/dist/esm/node_modules/use-sidecar/dist/es2015/medium.js +90 -0
  599. package/dist/esm/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
  600. package/dist/esm/node_modules/warning/warning.js +1 -1
  601. package/dist/esm/src/components/Alert/Alert.js +1 -1
  602. package/dist/esm/src/components/Alert/styles.js +1 -1
  603. package/dist/esm/src/components/Avatar/Avatar.js +1 -1
  604. package/dist/esm/src/components/Avatar/styles.js +1 -1
  605. package/dist/esm/src/components/Badge/Badge.js +1 -1
  606. package/dist/esm/src/components/Badge/styles.js +1 -1
  607. package/dist/esm/src/components/Breadcrumbs/Breadcrumbs.js +1 -1
  608. package/dist/esm/src/components/Breadcrumbs/styles.js +1 -1
  609. package/dist/esm/src/components/Button/Button.js +1 -1
  610. package/dist/esm/src/components/Button/constants.js +1 -1
  611. package/dist/esm/src/components/Button/styles.js +1 -1
  612. package/dist/esm/src/components/Card/AspectRatio/AspectRatio.js +1 -1
  613. package/dist/esm/src/components/Card/AspectRatio/styles.js +1 -1
  614. package/dist/esm/src/components/Card/Body.js +1 -1
  615. package/dist/esm/src/components/Card/Card.js +1 -1
  616. package/dist/esm/src/components/Card/Drawer.js +1 -1
  617. package/dist/esm/src/components/Card/Header.js +1 -1
  618. package/dist/esm/src/components/Card/Hover.js +1 -1
  619. package/dist/esm/src/components/Card/Overlay.js +1 -1
  620. package/dist/esm/src/components/Card/Thumbnail.js +1 -1
  621. package/dist/esm/src/components/Card/styles.js +1 -1
  622. package/dist/esm/src/components/Chip/Chip.js +1 -1
  623. package/dist/esm/src/components/Chip/helpers.js +1 -1
  624. package/dist/esm/src/components/Chip/styles.js +1 -1
  625. package/dist/esm/src/components/Drawer/Drawer.js +6 -3
  626. package/dist/esm/src/components/Drawer/Drawer.js.map +1 -1
  627. package/dist/esm/src/components/Drawer/components/Body.js +1 -1
  628. package/dist/esm/src/components/Drawer/components/Footer.js +1 -1
  629. package/dist/esm/src/components/Drawer/components/Header.js +1 -1
  630. package/dist/esm/src/components/Drawer/components/Mask.js +1 -1
  631. package/dist/esm/src/components/Drawer/components/styles.js +1 -1
  632. package/dist/esm/src/components/Drawer/styles.js +1 -1
  633. package/dist/esm/src/components/Dropdown/Dropdown.js +1 -1
  634. package/dist/esm/src/components/Dropdown/helpers.js +1 -1
  635. package/dist/esm/src/components/Dropdown/styles.js +1 -1
  636. package/dist/esm/src/components/FormElements/CheckboxGroup/Checkbox.js +1 -1
  637. package/dist/esm/src/components/FormElements/CheckboxGroup/CheckboxGroup.js +1 -1
  638. package/dist/esm/src/components/FormElements/CheckboxGroup/styles.js +1 -1
  639. package/dist/esm/src/components/FormElements/FormError/FormError.js +1 -1
  640. package/dist/esm/src/components/FormElements/FormError/styles.js +1 -1
  641. package/dist/esm/src/components/FormElements/Input/Input.js +1 -1
  642. package/dist/esm/src/components/FormElements/Input/SearchInput.js +1 -1
  643. package/dist/esm/src/components/FormElements/Input/helpers.js +1 -1
  644. package/dist/esm/src/components/FormElements/Input/styles.js +1 -1
  645. package/dist/esm/src/components/FormElements/InputError/InputError.js +1 -1
  646. package/dist/esm/src/components/FormElements/InputError/styles.js +1 -1
  647. package/dist/esm/src/components/FormElements/Label/Label.js +1 -1
  648. package/dist/esm/src/components/FormElements/Label/styles.js +1 -1
  649. package/dist/esm/src/components/FormElements/RadioButtonGroup/RadioButton.js +1 -1
  650. package/dist/esm/src/components/FormElements/RadioButtonGroup/RadioButtonGroup.js +1 -1
  651. package/dist/esm/src/components/FormElements/RadioButtonGroup/styles.js +1 -1
  652. package/dist/esm/src/components/FormElements/RadioGroup/Radio.js +1 -1
  653. package/dist/esm/src/components/FormElements/RadioGroup/RadioGroup.js +1 -1
  654. package/dist/esm/src/components/FormElements/RadioGroup/styles.js +1 -1
  655. package/dist/esm/src/components/FormElements/Select/Select.js +1 -1
  656. package/dist/esm/src/components/FormElements/Select/components/CustomMultiValueLabel.js +1 -1
  657. package/dist/esm/src/components/FormElements/Select/components/CustomOptionComponent.js +1 -1
  658. package/dist/esm/src/components/FormElements/Select/components/CustomSingleValue.js +1 -1
  659. package/dist/esm/src/components/FormElements/Select/constants.js +1 -1
  660. package/dist/esm/src/components/FormElements/Select/helpers.js +1 -1
  661. package/dist/esm/src/components/FormElements/Select/styles.js +1 -1
  662. package/dist/esm/src/components/FormElements/Textarea/Textarea.js +1 -1
  663. package/dist/esm/src/components/FormElements/Textarea/styles.js +1 -1
  664. package/dist/esm/src/components/FormElements/ToggleSwitch/ToggleSwitch.js +7 -4
  665. package/dist/esm/src/components/FormElements/ToggleSwitch/ToggleSwitch.js.map +1 -1
  666. package/dist/esm/src/components/FormElements/ToggleSwitch/styles.js +1 -1
  667. package/dist/esm/src/components/FormElements/styles.js +1 -1
  668. package/dist/esm/src/components/Grid/Grid.js +1 -1
  669. package/dist/esm/src/components/Grid/styles.js +1 -1
  670. package/dist/esm/src/components/Heading/Heading.js +1 -1
  671. package/dist/esm/src/components/Heading/styles.js +1 -1
  672. package/dist/esm/src/components/Loaders/Loader.js +1 -1
  673. package/dist/esm/src/components/Loaders/styles.js +1 -1
  674. package/dist/esm/src/components/Modal/Modal.js +2 -2
  675. package/dist/esm/src/components/Modal/Modal.js.map +1 -1
  676. package/dist/esm/src/components/Modal/styles.js +1 -1
  677. package/dist/esm/src/components/Pagination/Pagination.js +1 -1
  678. package/dist/esm/src/components/Pagination/components/PaginationSelector.js +1 -1
  679. package/dist/esm/src/components/Pagination/components/styles.js +1 -1
  680. package/dist/esm/src/components/Pagination/hooks.js +1 -1
  681. package/dist/esm/src/components/Pagination/styles.js +1 -1
  682. package/dist/esm/src/components/ProgressBar/ProgressBar.js +1 -1
  683. package/dist/esm/src/components/ProgressBar/styles.js +1 -1
  684. package/dist/esm/src/components/Result/Result.js +1 -1
  685. package/dist/esm/src/components/Result/styles.js +1 -1
  686. package/dist/esm/src/components/Sidebar/NavHandle.js +1 -1
  687. package/dist/esm/src/components/Sidebar/NavItem.js +1 -1
  688. package/dist/esm/src/components/Sidebar/Sidebar.js +1 -1
  689. package/dist/esm/src/components/Sidebar/styles.js +1 -1
  690. package/dist/esm/src/components/StatusTag/StatusTag.js +1 -1
  691. package/dist/esm/src/components/StatusTag/styles.js +1 -1
  692. package/dist/esm/src/components/Table/Table.js +1 -1
  693. package/dist/esm/src/components/Table/components/Body.js +1 -1
  694. package/dist/esm/src/components/Table/components/Cell.js +1 -1
  695. package/dist/esm/src/components/Table/components/DataCells.js +1 -1
  696. package/dist/esm/src/components/Table/components/Header.js +1 -1
  697. package/dist/esm/src/components/Table/components/TableRow.js +1 -1
  698. package/dist/esm/src/components/Table/constants.js +1 -1
  699. package/dist/esm/src/components/Table/reducer.js +1 -1
  700. package/dist/esm/src/components/Table/styles.js +1 -1
  701. package/dist/esm/src/components/Tabs/Tabs.js +18 -1
  702. package/dist/esm/src/components/Tabs/Tabs.js.map +1 -1
  703. package/dist/esm/src/components/Tabs/TabsContent.js +1 -1
  704. package/dist/esm/src/components/Tabs/TabsNavItem.js +1 -1
  705. package/dist/esm/src/components/Tabs/styles.js +1 -1
  706. package/dist/esm/src/components/Tag/Tag.js +1 -1
  707. package/dist/esm/src/components/Tag/styles.js +1 -1
  708. package/dist/esm/src/components/Text/Text.js +1 -1
  709. package/dist/esm/src/components/Text/styles.js +1 -1
  710. package/dist/esm/src/components/ThemeProvider/ThemeProvider.js +1 -1
  711. package/dist/esm/src/components/Tooltip/Tooltip.js +2 -1
  712. package/dist/esm/src/components/Tooltip/Tooltip.js.map +1 -1
  713. package/dist/esm/src/components/Tooltip/styles.js +1 -1
  714. package/dist/esm/src/icons/carets/icon-caret-right.svg.js +1 -1
  715. package/dist/esm/src/icons/chevrons/arrow-left-chevron.svg.js +1 -1
  716. package/dist/esm/src/icons/chevrons/arrow-left.svg.js +1 -1
  717. package/dist/esm/src/icons/chevrons/arrow-right-chevron.svg.js +1 -1
  718. package/dist/esm/src/icons/chevrons/arrow-right.svg.js +1 -1
  719. package/dist/esm/src/icons/chevrons/chevron-arrow-down.svg.js +1 -1
  720. package/dist/esm/src/icons/chevrons/chevron-arrow-left.svg.js +1 -1
  721. package/dist/esm/src/icons/chevrons/chevron-arrow-line-left.svg.js +1 -1
  722. package/dist/esm/src/icons/chevrons/chevron-arrow-line-right.svg.js +1 -1
  723. package/dist/esm/src/icons/chevrons/chevron-arrow-right.svg.js +1 -1
  724. package/dist/esm/src/icons/chevrons/icon-chevron-down.svg.js +1 -1
  725. package/dist/esm/src/icons/chevrons/icon-chevron-up.svg.js +1 -1
  726. package/dist/esm/src/icons/client/icon-info.svg.js +1 -1
  727. package/dist/esm/src/icons/legacy/add-operator.svg.js +1 -1
  728. package/dist/esm/src/icons/legacy/close-circled.svg.js +1 -1
  729. package/dist/esm/src/icons/legacy/close-modal.svg.js +1 -1
  730. package/dist/esm/src/icons/legacy/close.svg.js +1 -1
  731. package/dist/esm/src/icons/legacy/danger.svg.js +1 -1
  732. package/dist/esm/src/icons/legacy/hamburger.svg.js +1 -1
  733. package/dist/esm/src/icons/legacy/info-circled.svg.js +1 -1
  734. package/dist/esm/src/icons/legacy/info.svg.js +1 -1
  735. package/dist/esm/src/icons/legacy/magnifier.svg.js +1 -1
  736. package/dist/esm/src/icons/legacy/success.svg.js +1 -1
  737. package/dist/esm/src/icons/legacy/warning.svg.js +1 -1
  738. package/dist/esm/src/index.js +1 -1
  739. package/dist/esm/src/theme/default/colors.js +1 -1
  740. package/dist/esm/src/theme/default/config/alert.js +1 -1
  741. package/dist/esm/src/theme/default/config/badge.js +1 -1
  742. package/dist/esm/src/theme/default/config/breadcrumbs.js +1 -1
  743. package/dist/esm/src/theme/default/config/button.js +1 -1
  744. package/dist/esm/src/theme/default/config/card.js +1 -1
  745. package/dist/esm/src/theme/default/config/chip.js +1 -1
  746. package/dist/esm/src/theme/default/config/drawer.js +1 -1
  747. package/dist/esm/src/theme/default/config/dropdown.js +1 -1
  748. package/dist/esm/src/theme/default/config/formElements.js +1 -1
  749. package/dist/esm/src/theme/default/config/loader.js +1 -1
  750. package/dist/esm/src/theme/default/config/modal.js +1 -1
  751. package/dist/esm/src/theme/default/config/pagination.js +1 -1
  752. package/dist/esm/src/theme/default/config/progressBar.js +1 -1
  753. package/dist/esm/src/theme/default/config/result.js +1 -1
  754. package/dist/esm/src/theme/default/config/scrollbar.js +1 -1
  755. package/dist/esm/src/theme/default/config/sidebar.js +1 -1
  756. package/dist/esm/src/theme/default/config/statusTag.js +1 -1
  757. package/dist/esm/src/theme/default/config/table.js +1 -1
  758. package/dist/esm/src/theme/default/config/tabs.js +1 -1
  759. package/dist/esm/src/theme/default/config/tag.js +1 -1
  760. package/dist/esm/src/theme/default/config/tooltip.js +1 -1
  761. package/dist/esm/src/theme/default/defaultTheme.js +1 -1
  762. package/dist/esm/src/theme/utils/breakpoints.js +1 -1
  763. package/dist/esm/src/theme/utils/global.js +1 -1
  764. package/dist/esm/src/theme/utils/typography.js +1 -1
  765. package/dist/types/components/FormElements/ToggleSwitch/ToggleSwitch.d.ts +5 -4
  766. package/dist/types/components/FormElements/ToggleSwitch/ToggleSwitch.stories.d.ts +316 -1
  767. package/dist/types/icons/index.d.ts +1 -0
  768. package/dist/types/icons/logos/index.d.ts +1 -0
  769. package/icons/index.js +634 -620
  770. package/package.json +2 -1
package/dist/cjs/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * @license
4
4
  * author: epignosis front-end team
5
- * @epignosis_llc/gnosis.js v5.41.25
5
+ * @epignosis_llc/gnosis.js v5.41.27
6
6
  * Released under the MIT license.
7
7
  */
8
8
 
@@ -7278,7 +7278,7 @@ var PresenceContext = React.createContext(null);
7278
7278
 
7279
7279
  var isBrowser$4 = typeof document !== "undefined";
7280
7280
 
7281
- var useIsomorphicLayoutEffect$1 = isBrowser$4 ? React.useLayoutEffect : React.useEffect;
7281
+ var useIsomorphicLayoutEffect$2 = isBrowser$4 ? React.useLayoutEffect : React.useEffect;
7282
7282
 
7283
7283
  // Does this device prefer reduced motion? Returns `null` server-side.
7284
7284
  var prefersReducedMotion = { current: null };
@@ -7372,14 +7372,14 @@ function useVisualElement(Component, visualState, props, createVisualElement) {
7372
7372
  });
7373
7373
  }
7374
7374
  var visualElement = visualElementRef.current;
7375
- useIsomorphicLayoutEffect$1(function () {
7375
+ useIsomorphicLayoutEffect$2(function () {
7376
7376
  visualElement === null || visualElement === void 0 ? void 0 : visualElement.syncRender();
7377
7377
  });
7378
7378
  React.useEffect(function () {
7379
7379
  var _a;
7380
7380
  (_a = visualElement === null || visualElement === void 0 ? void 0 : visualElement.animationState) === null || _a === void 0 ? void 0 : _a.animateChanges();
7381
7381
  });
7382
- useIsomorphicLayoutEffect$1(function () { return function () { return visualElement === null || visualElement === void 0 ? void 0 : visualElement.notifyUnmount(); }; }, []);
7382
+ useIsomorphicLayoutEffect$2(function () { return function () { return visualElement === null || visualElement === void 0 ? void 0 : visualElement.notifyUnmount(); }; }, []);
7383
7383
  return visualElement;
7384
7384
  }
7385
7385
 
@@ -12540,7 +12540,7 @@ var m = createMotionProxy(createDomMotionConfig);
12540
12540
 
12541
12541
  function useIsMounted() {
12542
12542
  var isMounted = React.useRef(false);
12543
- useIsomorphicLayoutEffect$1(function () {
12543
+ useIsomorphicLayoutEffect$2(function () {
12544
12544
  isMounted.current = true;
12545
12545
  return function () {
12546
12546
  isMounted.current = false;
@@ -12688,7 +12688,7 @@ var AnimatePresence = function (_a) {
12688
12688
  // If this is the initial component render, just deal with logic surrounding whether
12689
12689
  // we play onMount animations or not.
12690
12690
  var isInitialRender = React.useRef(true);
12691
- useIsomorphicLayoutEffect$1(function () {
12691
+ useIsomorphicLayoutEffect$2(function () {
12692
12692
  isInitialRender.current = false;
12693
12693
  updateChildLookup(filteredChildren, allChildren);
12694
12694
  presentChildren.current = childrenToRender;
@@ -13877,7 +13877,7 @@ function getLayoutRect(element) {
13877
13877
  };
13878
13878
  }
13879
13879
 
13880
- function contains(parent, child) {
13880
+ function contains$1(parent, child) {
13881
13881
  var rootNode = child.getRootNode && child.getRootNode(); // First, attempt with faster native method
13882
13882
 
13883
13883
  if (parent.contains(child)) {
@@ -13914,7 +13914,7 @@ function getDocumentElement$1(element) {
13914
13914
  element.document) || window.document).documentElement;
13915
13915
  }
13916
13916
 
13917
- function getParentNode$1(element) {
13917
+ function getParentNode$2(element) {
13918
13918
  if (getNodeName$1(element) === 'html') {
13919
13919
  return element;
13920
13920
  }
@@ -13955,7 +13955,7 @@ function getContainingBlock(element) {
13955
13955
  }
13956
13956
  }
13957
13957
 
13958
- var currentNode = getParentNode$1(element);
13958
+ var currentNode = getParentNode$2(element);
13959
13959
 
13960
13960
  if (isShadowRoot$1(currentNode)) {
13961
13961
  currentNode = currentNode.host;
@@ -14088,7 +14088,7 @@ function effect$1(_ref2) {
14088
14088
  }
14089
14089
  }
14090
14090
 
14091
- if (!contains(state.elements.popper, arrowElement)) {
14091
+ if (!contains$1(state.elements.popper, arrowElement)) {
14092
14092
  return;
14093
14093
  }
14094
14094
 
@@ -14435,7 +14435,7 @@ function getScrollParent$1(node) {
14435
14435
  return node;
14436
14436
  }
14437
14437
 
14438
- return getScrollParent$1(getParentNode$1(node));
14438
+ return getScrollParent$1(getParentNode$2(node));
14439
14439
  }
14440
14440
 
14441
14441
  /*
@@ -14458,7 +14458,7 @@ function listScrollParents(element, list) {
14458
14458
  var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
14459
14459
  var updatedList = list.concat(target);
14460
14460
  return isBody ? updatedList : // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
14461
- updatedList.concat(listScrollParents(getParentNode$1(target)));
14461
+ updatedList.concat(listScrollParents(getParentNode$2(target)));
14462
14462
  }
14463
14463
 
14464
14464
  function rectToClientRect$1(rect) {
@@ -14491,7 +14491,7 @@ function getClientRectFromMixedType(element, clippingParent, strategy) {
14491
14491
 
14492
14492
 
14493
14493
  function getClippingParents(element) {
14494
- var clippingParents = listScrollParents(getParentNode$1(element));
14494
+ var clippingParents = listScrollParents(getParentNode$2(element));
14495
14495
  var canEscapeClipping = ['absolute', 'fixed'].indexOf(getComputedStyle$2(element).position) >= 0;
14496
14496
  var clipperElement = canEscapeClipping && isHTMLElement$1(element) ? getOffsetParent(element) : element;
14497
14497
 
@@ -14501,7 +14501,7 @@ function getClippingParents(element) {
14501
14501
 
14502
14502
 
14503
14503
  return clippingParents.filter(function (clippingParent) {
14504
- return isElement$2(clippingParent) && contains(clippingParent, clipperElement) && getNodeName$1(clippingParent) !== 'body';
14504
+ return isElement$2(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName$1(clippingParent) !== 'body';
14505
14505
  });
14506
14506
  } // Gets the maximum area that the element is visible in due to any number of
14507
14507
  // clipping parents
@@ -15672,7 +15672,7 @@ function onDocumentMouseMove() {
15672
15672
  * TODO: find a better technique to solve this problem
15673
15673
  */
15674
15674
 
15675
- function onWindowBlur() {
15675
+ function onWindowBlur$1() {
15676
15676
  var activeElement = document.activeElement;
15677
15677
 
15678
15678
  if (isReferenceElement(activeElement)) {
@@ -15685,7 +15685,7 @@ function onWindowBlur() {
15685
15685
  }
15686
15686
  function bindGlobalEventListeners() {
15687
15687
  document.addEventListener('touchstart', onDocumentTouchStart, TOUCH_OPTIONS);
15688
- window.addEventListener('blur', onWindowBlur);
15688
+ window.addEventListener('blur', onWindowBlur$1);
15689
15689
  }
15690
15690
 
15691
15691
  var isBrowser$3 = typeof window !== 'undefined' && typeof document !== 'undefined';
@@ -17057,7 +17057,7 @@ function deepPreserveProps(instanceProps, componentProps) {
17057
17057
  });
17058
17058
  }
17059
17059
 
17060
- var useIsomorphicLayoutEffect = isBrowser$2 ? React.useLayoutEffect : React.useEffect;
17060
+ var useIsomorphicLayoutEffect$1 = isBrowser$2 ? React.useLayoutEffect : React.useEffect;
17061
17061
  function useMutableBox(initialValue) {
17062
17062
  // Using refs instead of state as it's recommended to not store imperative
17063
17063
  // values in state due to memory problems in React(?)
@@ -17205,7 +17205,7 @@ function TippyGenerator(tippy) {
17205
17205
 
17206
17206
  var deps = [reference].concat(children ? [children.type] : []); // CREATE
17207
17207
 
17208
- useIsomorphicLayoutEffect(function () {
17208
+ useIsomorphicLayoutEffect$1(function () {
17209
17209
  var element = reference;
17210
17210
 
17211
17211
  if (reference && reference.hasOwnProperty('current')) {
@@ -17241,7 +17241,7 @@ function TippyGenerator(tippy) {
17241
17241
  };
17242
17242
  }, deps); // UPDATE
17243
17243
 
17244
- useIsomorphicLayoutEffect(function () {
17244
+ useIsomorphicLayoutEffect$1(function () {
17245
17245
  var _instance$popperInsta;
17246
17246
 
17247
17247
  // Prevent this effect from running on 1st render
@@ -17278,7 +17278,7 @@ function TippyGenerator(tippy) {
17278
17278
  });
17279
17279
  }
17280
17280
  });
17281
- useIsomorphicLayoutEffect(function () {
17281
+ useIsomorphicLayoutEffect$1(function () {
17282
17282
  var _instance$props$poppe;
17283
17283
 
17284
17284
  if (!render) {
@@ -17385,6 +17385,7 @@ var Tooltip = function Tooltip(_ref) {
17385
17385
  render: function render(attrs) {
17386
17386
  return jsx("div", _extends$p({
17387
17387
  className: "tooltip",
17388
+ role: "alert",
17388
17389
  css: function css(theme) {
17389
17390
  return tooltipContainer(maxWidth, theme);
17390
17391
  }
@@ -18693,7 +18694,7 @@ var lib = {exports: {}};
18693
18694
 
18694
18695
  var Modal$2 = {};
18695
18696
 
18696
- var propTypes = {exports: {}};
18697
+ var propTypes$1 = {exports: {}};
18697
18698
 
18698
18699
  /*
18699
18700
  object-assign
@@ -19583,13 +19584,15 @@ if (process.env.NODE_ENV !== 'production') {
19583
19584
  // By explicitly using `prop-types` you are opting into new development behavior.
19584
19585
  // http://fb.me/prop-types-in-prod
19585
19586
  var throwOnDirectAccess = true;
19586
- propTypes.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
19587
+ propTypes$1.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
19587
19588
  } else {
19588
19589
  // By explicitly using `prop-types` you are opting into new production behavior.
19589
19590
  // http://fb.me/prop-types-in-prod
19590
- propTypes.exports = factoryWithThrowingShims();
19591
+ propTypes$1.exports = factoryWithThrowingShims();
19591
19592
  }
19592
19593
 
19594
+ var PropTypes = propTypes$1.exports;
19595
+
19593
19596
  var ModalPortal = {exports: {}};
19594
19597
 
19595
19598
  var focusManager = {};
@@ -20481,7 +20484,7 @@ var _createClass = function () { function defineProperties(target, props) { for
20481
20484
 
20482
20485
  var _react = React__default["default"];
20483
20486
 
20484
- var _propTypes = propTypes.exports;
20487
+ var _propTypes = propTypes$1.exports;
20485
20488
 
20486
20489
  var _propTypes2 = _interopRequireDefault(_propTypes);
20487
20490
 
@@ -21095,7 +21098,7 @@ var _reactDom = require$$1__default["default"];
21095
21098
 
21096
21099
  var _reactDom2 = _interopRequireDefault(_reactDom);
21097
21100
 
21098
- var _propTypes = propTypes.exports;
21101
+ var _propTypes = propTypes$1.exports;
21099
21102
 
21100
21103
  var _propTypes2 = _interopRequireDefault(_propTypes);
21101
21104
 
@@ -21473,7 +21476,7 @@ var Header$2 = function Header(_ref) {
21473
21476
  return jsx("header", _extends$p({
21474
21477
  css: modalHeader,
21475
21478
  "data-testid": "modal-header"
21476
- }, rest), jsx("div", null, title), onClose && jsx("a", {
21479
+ }, rest), jsx("div", null, title), onClose && jsx("button", {
21477
21480
  role: "button",
21478
21481
  className: "close-btn",
21479
21482
  "aria-label": "Close button",
@@ -22094,6 +22097,7 @@ var Tabs = function Tabs(_ref) {
22094
22097
  _useState2 = _slicedToArray$1(_useState, 2),
22095
22098
  activeTab = _useState2[0],
22096
22099
  setActiveTab = _useState2[1];
22100
+ var baseTitleRef = React.useRef(document.title);
22097
22101
  var tabsLength = tabs.length - 1;
22098
22102
  var tabsNavEl = React.useRef(null);
22099
22103
  var _useState3 = React.useState(false),
@@ -22178,6 +22182,21 @@ var Tabs = function Tabs(_ref) {
22178
22182
  }
22179
22183
  }
22180
22184
  };
22185
+
22186
+ // Restore original title on unmount
22187
+ React.useEffect(function () {
22188
+ return function () {
22189
+ document.title = baseTitleRef.current;
22190
+ };
22191
+ }, []);
22192
+
22193
+ // Update document title with the selected tab title for a11y purposes
22194
+ React.useEffect(function () {
22195
+ var selected = tabs[activeTab];
22196
+ var tabTitle = typeof (selected === null || selected === void 0 ? void 0 : selected.title) === "string" ? selected.title : "";
22197
+ var newTitle = tabTitle ? "".concat(baseTitleRef.current, " | ").concat(tabTitle) : baseTitleRef.current;
22198
+ if (document.title !== newTitle) document.title = newTitle;
22199
+ }, [activeTab, tabs]);
22181
22200
  return jsx("section", _extends$p({
22182
22201
  css: container$2
22183
22202
  }, rest), jsx("div", {
@@ -22309,162 +22328,1901 @@ var Result = function Result(_ref) {
22309
22328
  }, info))), footer && jsx("footer", null, footer));
22310
22329
  };
22311
22330
 
22312
- var drawerContainer$1 = function drawerContainer(_ref, width) {
22313
- var drawer = _ref.drawer;
22314
- return /*#__PURE__*/ /*#__PURE__*/css$2("position:fixed;top:0;left:0;height:100%;width:100%;z-index:1000;.dialog{position:absolute;height:100%;width:100%;max-width:", width, ";display:flex;flex-direction:column;background-color:", drawer.dialog, ";padding:0;border:0;&.placement-left{left:0;right:auto;}&.placement-right{left:auto;right:0;}}" + (process.env.NODE_ENV === "production" ? "" : ";label:drawerContainer;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHWSIsImZpbGUiOiJzdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MsIFNlcmlhbGl6ZWRTdHlsZXMsIFRoZW1lIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XG5cbmV4cG9ydCBjb25zdCBkcmF3ZXJDb250YWluZXIgPSAoeyBkcmF3ZXIgfTogVGhlbWUsIHdpZHRoOiBzdHJpbmcpOiBTZXJpYWxpemVkU3R5bGVzID0+IHtcbiAgcmV0dXJuIGNzc2BcbiAgICBwb3NpdGlvbjogZml4ZWQ7XG4gICAgdG9wOiAwO1xuICAgIGxlZnQ6IDA7XG4gICAgaGVpZ2h0OiAxMDAlO1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIHotaW5kZXg6IDEwMDA7XG5cbiAgICAuZGlhbG9nIHtcbiAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICAgIGhlaWdodDogMTAwJTtcbiAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgbWF4LXdpZHRoOiAke3dpZHRofTtcbiAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgICAgYmFja2dyb3VuZC1jb2xvcjogJHtkcmF3ZXIuZGlhbG9nfTtcbiAgICAgIHBhZGRpbmc6IDA7XG4gICAgICBib3JkZXI6IDA7XG5cbiAgICAgICYucGxhY2VtZW50LWxlZnQge1xuICAgICAgICBsZWZ0OiAwO1xuICAgICAgICByaWdodDogYXV0bztcbiAgICAgIH1cblxuICAgICAgJi5wbGFjZW1lbnQtcmlnaHQge1xuICAgICAgICBsZWZ0OiBhdXRvO1xuICAgICAgICByaWdodDogMDtcbiAgICAgIH1cbiAgICB9XG4gIGA7XG59O1xuIl19 */", process.env.NODE_ENV === "production" ? "" : ";label:drawerContainer;");
22315
- };
22331
+ function _objectWithoutPropertiesLoose(r, e) {
22332
+ if (null == r) return {};
22333
+ var t = {};
22334
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
22335
+ if (e.includes(n)) continue;
22336
+ t[n] = r[n];
22337
+ }
22338
+ return t;
22339
+ }
22316
22340
 
22317
- function _EMOTION_STRINGIFIED_CSS_ERROR__$6() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
22318
- var drawerHeader = function drawerHeader(_ref, _ref2) {
22319
- var drawer = _ref.drawer,
22320
- typeScaleSizes = _ref.typeScaleSizes;
22321
- var noGutters = _ref2.noGutters;
22322
- return /*#__PURE__*/ /*#__PURE__*/css$2("display:flex;justify-content:space-between;align-items:center;padding-inline:", noGutters ? 0 : "2rem 0", ";padding-block:", noGutters ? 0 : "1rem", ";height:100%;max-height:4.5rem;", mq["sm"], "{padding:", noGutters ? 0 : "1rem 2rem", ";}button{font-size:", typeScaleSizes.md, "rem;display:inline-flex;background-color:transparent;color:", drawer.closeBtnColor.base, ";padding:0 1rem;border:0;cursor:pointer;&:hover,&:focus{color:", drawer.closeBtnColor.hover, ";}}" + (process.env.NODE_ENV === "production" ? "" : ";label:drawerHeader;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPWSIsImZpbGUiOiJzdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MsIFNlcmlhbGl6ZWRTdHlsZXMsIFRoZW1lIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XG5pbXBvcnQgeyBtcSB9IGZyb20gXCJAdGhlbWUvdXRpbHMvYnJlYWtwb2ludHNcIjtcblxuZXhwb3J0IGNvbnN0IGRyYXdlckhlYWRlciA9IChcbiAgeyBkcmF3ZXIsIHR5cGVTY2FsZVNpemVzIH06IFRoZW1lLFxuICB7IG5vR3V0dGVycyB9OiB7IG5vR3V0dGVyczogYm9vbGVhbiB9LFxuKTogU2VyaWFsaXplZFN0eWxlcyA9PiB7XG4gIHJldHVybiBjc3NgXG4gICAgZGlzcGxheTogZmxleDtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICBwYWRkaW5nLWlubGluZTogJHtub0d1dHRlcnMgPyAwIDogXCIycmVtIDBcIn07XG4gICAgcGFkZGluZy1ibG9jazogJHtub0d1dHRlcnMgPyAwIDogXCIxcmVtXCJ9O1xuICAgIGhlaWdodDogMTAwJTtcbiAgICBtYXgtaGVpZ2h0OiA0LjVyZW07XG5cbiAgICAke21xW1wic21cIl19IHtcbiAgICAgIHBhZGRpbmc6ICR7bm9HdXR0ZXJzID8gMCA6IFwiMXJlbSAycmVtXCJ9O1xuICAgIH1cblxuICAgIGJ1dHRvbiB7XG4gICAgICBmb250LXNpemU6ICR7dHlwZVNjYWxlU2l6ZXMubWR9cmVtO1xuICAgICAgZGlzcGxheTogaW5saW5lLWZsZXg7XG4gICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB0cmFuc3BhcmVudDtcbiAgICAgIGNvbG9yOiAke2RyYXdlci5jbG9zZUJ0bkNvbG9yLmJhc2V9O1xuICAgICAgcGFkZGluZzogMCAxcmVtO1xuICAgICAgYm9yZGVyOiAwO1xuICAgICAgY3Vyc29yOiBwb2ludGVyO1xuXG4gICAgICAmOmhvdmVyLFxuICAgICAgJjpmb2N1cyB7XG4gICAgICAgIGNvbG9yOiAke2RyYXdlci5jbG9zZUJ0bkNvbG9yLmhvdmVyfTtcbiAgICAgIH1cbiAgICB9XG4gIGA7XG59O1xuXG5leHBvcnQgY29uc3QgZHJhd2VyQm9keSA9IGNzc2BcbiAgaGVpZ2h0OiAxMDAlO1xuICBvdmVyZmxvdy15OiBhdXRvO1xuYDtcblxuZXhwb3J0IGNvbnN0IG1hc2tDb250YWluZXIgPSBjc3NgXG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgdG9wOiAwO1xuICBsZWZ0OiAwO1xuICBoZWlnaHQ6IDEwMCU7XG4gIHdpZHRoOiAxMDAlO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiByZ2JhKDAsIDAsIDAsIDAuNDUpO1xuYDtcblxuZXhwb3J0IGNvbnN0IGZvb3RlckNvbnRhaW5lciA9IGNzc2BcbiAgcGFkZGluZzogMXJlbTtcblxuICAke21xW1wibWRcIl19IHtcbiAgICBwYWRkaW5nOiAycmVtO1xuICB9XG5gO1xuIl19 */", process.env.NODE_ENV === "production" ? "" : ";label:drawerHeader;");
22323
- };
22324
- var drawerBody = process.env.NODE_ENV === "production" ? {
22325
- name: "afms4i",
22326
- styles: "height:100%;overflow-y:auto"
22327
- } : {
22328
- name: "1vbxgux-drawerBody",
22329
- styles: "height:100%;overflow-y:auto;label:drawerBody;",
22330
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFxQzZCIiwiZmlsZSI6InN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcywgU2VyaWFsaXplZFN0eWxlcywgVGhlbWUgfSBmcm9tIFwiQGVtb3Rpb24vcmVhY3RcIjtcbmltcG9ydCB7IG1xIH0gZnJvbSBcIkB0aGVtZS91dGlscy9icmVha3BvaW50c1wiO1xuXG5leHBvcnQgY29uc3QgZHJhd2VySGVhZGVyID0gKFxuICB7IGRyYXdlciwgdHlwZVNjYWxlU2l6ZXMgfTogVGhlbWUsXG4gIHsgbm9HdXR0ZXJzIH06IHsgbm9HdXR0ZXJzOiBib29sZWFuIH0sXG4pOiBTZXJpYWxpemVkU3R5bGVzID0+IHtcbiAgcmV0dXJuIGNzc2BcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgIHBhZGRpbmctaW5saW5lOiAke25vR3V0dGVycyA/IDAgOiBcIjJyZW0gMFwifTtcbiAgICBwYWRkaW5nLWJsb2NrOiAke25vR3V0dGVycyA/IDAgOiBcIjFyZW1cIn07XG4gICAgaGVpZ2h0OiAxMDAlO1xuICAgIG1heC1oZWlnaHQ6IDQuNXJlbTtcblxuICAgICR7bXFbXCJzbVwiXX0ge1xuICAgICAgcGFkZGluZzogJHtub0d1dHRlcnMgPyAwIDogXCIxcmVtIDJyZW1cIn07XG4gICAgfVxuXG4gICAgYnV0dG9uIHtcbiAgICAgIGZvbnQtc2l6ZTogJHt0eXBlU2NhbGVTaXplcy5tZH1yZW07XG4gICAgICBkaXNwbGF5OiBpbmxpbmUtZmxleDtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50O1xuICAgICAgY29sb3I6ICR7ZHJhd2VyLmNsb3NlQnRuQ29sb3IuYmFzZX07XG4gICAgICBwYWRkaW5nOiAwIDFyZW07XG4gICAgICBib3JkZXI6IDA7XG4gICAgICBjdXJzb3I6IHBvaW50ZXI7XG5cbiAgICAgICY6aG92ZXIsXG4gICAgICAmOmZvY3VzIHtcbiAgICAgICAgY29sb3I6ICR7ZHJhd2VyLmNsb3NlQnRuQ29sb3IuaG92ZXJ9O1xuICAgICAgfVxuICAgIH1cbiAgYDtcbn07XG5cbmV4cG9ydCBjb25zdCBkcmF3ZXJCb2R5ID0gY3NzYFxuICBoZWlnaHQ6IDEwMCU7XG4gIG92ZXJmbG93LXk6IGF1dG87XG5gO1xuXG5leHBvcnQgY29uc3QgbWFza0NvbnRhaW5lciA9IGNzc2BcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB0b3A6IDA7XG4gIGxlZnQ6IDA7XG4gIGhlaWdodDogMTAwJTtcbiAgd2lkdGg6IDEwMCU7XG4gIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMCwgMCwgMCwgMC40NSk7XG5gO1xuXG5leHBvcnQgY29uc3QgZm9vdGVyQ29udGFpbmVyID0gY3NzYFxuICBwYWRkaW5nOiAxcmVtO1xuXG4gICR7bXFbXCJtZFwiXX0ge1xuICAgIHBhZGRpbmc6IDJyZW07XG4gIH1cbmA7XG4iXX0= */",
22331
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
22332
- };
22333
- var maskContainer = process.env.NODE_ENV === "production" ? {
22334
- name: "jvyqu8",
22335
- styles: "position:absolute;top:0;left:0;height:100%;width:100%;background-color:rgba(0, 0, 0, 0.45)"
22336
- } : {
22337
- name: "tigpv4-maskContainer",
22338
- styles: "position:absolute;top:0;left:0;height:100%;width:100%;background-color:rgba(0, 0, 0, 0.45);label:maskContainer;",
22339
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEwQ2dDIiwiZmlsZSI6InN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcywgU2VyaWFsaXplZFN0eWxlcywgVGhlbWUgfSBmcm9tIFwiQGVtb3Rpb24vcmVhY3RcIjtcbmltcG9ydCB7IG1xIH0gZnJvbSBcIkB0aGVtZS91dGlscy9icmVha3BvaW50c1wiO1xuXG5leHBvcnQgY29uc3QgZHJhd2VySGVhZGVyID0gKFxuICB7IGRyYXdlciwgdHlwZVNjYWxlU2l6ZXMgfTogVGhlbWUsXG4gIHsgbm9HdXR0ZXJzIH06IHsgbm9HdXR0ZXJzOiBib29sZWFuIH0sXG4pOiBTZXJpYWxpemVkU3R5bGVzID0+IHtcbiAgcmV0dXJuIGNzc2BcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgIHBhZGRpbmctaW5saW5lOiAke25vR3V0dGVycyA/IDAgOiBcIjJyZW0gMFwifTtcbiAgICBwYWRkaW5nLWJsb2NrOiAke25vR3V0dGVycyA/IDAgOiBcIjFyZW1cIn07XG4gICAgaGVpZ2h0OiAxMDAlO1xuICAgIG1heC1oZWlnaHQ6IDQuNXJlbTtcblxuICAgICR7bXFbXCJzbVwiXX0ge1xuICAgICAgcGFkZGluZzogJHtub0d1dHRlcnMgPyAwIDogXCIxcmVtIDJyZW1cIn07XG4gICAgfVxuXG4gICAgYnV0dG9uIHtcbiAgICAgIGZvbnQtc2l6ZTogJHt0eXBlU2NhbGVTaXplcy5tZH1yZW07XG4gICAgICBkaXNwbGF5OiBpbmxpbmUtZmxleDtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50O1xuICAgICAgY29sb3I6ICR7ZHJhd2VyLmNsb3NlQnRuQ29sb3IuYmFzZX07XG4gICAgICBwYWRkaW5nOiAwIDFyZW07XG4gICAgICBib3JkZXI6IDA7XG4gICAgICBjdXJzb3I6IHBvaW50ZXI7XG5cbiAgICAgICY6aG92ZXIsXG4gICAgICAmOmZvY3VzIHtcbiAgICAgICAgY29sb3I6ICR7ZHJhd2VyLmNsb3NlQnRuQ29sb3IuaG92ZXJ9O1xuICAgICAgfVxuICAgIH1cbiAgYDtcbn07XG5cbmV4cG9ydCBjb25zdCBkcmF3ZXJCb2R5ID0gY3NzYFxuICBoZWlnaHQ6IDEwMCU7XG4gIG92ZXJmbG93LXk6IGF1dG87XG5gO1xuXG5leHBvcnQgY29uc3QgbWFza0NvbnRhaW5lciA9IGNzc2BcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB0b3A6IDA7XG4gIGxlZnQ6IDA7XG4gIGhlaWdodDogMTAwJTtcbiAgd2lkdGg6IDEwMCU7XG4gIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMCwgMCwgMCwgMC40NSk7XG5gO1xuXG5leHBvcnQgY29uc3QgZm9vdGVyQ29udGFpbmVyID0gY3NzYFxuICBwYWRkaW5nOiAxcmVtO1xuXG4gICR7bXFbXCJtZFwiXX0ge1xuICAgIHBhZGRpbmc6IDJyZW07XG4gIH1cbmA7XG4iXX0= */",
22340
- toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
22341
- };
22342
- var footerContainer =
22343
- /*#__PURE__*/
22344
- /*#__PURE__*/
22345
- css$2("padding:1rem;", mq["md"], "{padding:2rem;}" + (process.env.NODE_ENV === "production" ? "" : ";label:footerContainer;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFtRGtDIiwiZmlsZSI6InN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcywgU2VyaWFsaXplZFN0eWxlcywgVGhlbWUgfSBmcm9tIFwiQGVtb3Rpb24vcmVhY3RcIjtcbmltcG9ydCB7IG1xIH0gZnJvbSBcIkB0aGVtZS91dGlscy9icmVha3BvaW50c1wiO1xuXG5leHBvcnQgY29uc3QgZHJhd2VySGVhZGVyID0gKFxuICB7IGRyYXdlciwgdHlwZVNjYWxlU2l6ZXMgfTogVGhlbWUsXG4gIHsgbm9HdXR0ZXJzIH06IHsgbm9HdXR0ZXJzOiBib29sZWFuIH0sXG4pOiBTZXJpYWxpemVkU3R5bGVzID0+IHtcbiAgcmV0dXJuIGNzc2BcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgIHBhZGRpbmctaW5saW5lOiAke25vR3V0dGVycyA/IDAgOiBcIjJyZW0gMFwifTtcbiAgICBwYWRkaW5nLWJsb2NrOiAke25vR3V0dGVycyA/IDAgOiBcIjFyZW1cIn07XG4gICAgaGVpZ2h0OiAxMDAlO1xuICAgIG1heC1oZWlnaHQ6IDQuNXJlbTtcblxuICAgICR7bXFbXCJzbVwiXX0ge1xuICAgICAgcGFkZGluZzogJHtub0d1dHRlcnMgPyAwIDogXCIxcmVtIDJyZW1cIn07XG4gICAgfVxuXG4gICAgYnV0dG9uIHtcbiAgICAgIGZvbnQtc2l6ZTogJHt0eXBlU2NhbGVTaXplcy5tZH1yZW07XG4gICAgICBkaXNwbGF5OiBpbmxpbmUtZmxleDtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50O1xuICAgICAgY29sb3I6ICR7ZHJhd2VyLmNsb3NlQnRuQ29sb3IuYmFzZX07XG4gICAgICBwYWRkaW5nOiAwIDFyZW07XG4gICAgICBib3JkZXI6IDA7XG4gICAgICBjdXJzb3I6IHBvaW50ZXI7XG5cbiAgICAgICY6aG92ZXIsXG4gICAgICAmOmZvY3VzIHtcbiAgICAgICAgY29sb3I6ICR7ZHJhd2VyLmNsb3NlQnRuQ29sb3IuaG92ZXJ9O1xuICAgICAgfVxuICAgIH1cbiAgYDtcbn07XG5cbmV4cG9ydCBjb25zdCBkcmF3ZXJCb2R5ID0gY3NzYFxuICBoZWlnaHQ6IDEwMCU7XG4gIG92ZXJmbG93LXk6IGF1dG87XG5gO1xuXG5leHBvcnQgY29uc3QgbWFza0NvbnRhaW5lciA9IGNzc2BcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB0b3A6IDA7XG4gIGxlZnQ6IDA7XG4gIGhlaWdodDogMTAwJTtcbiAgd2lkdGg6IDEwMCU7XG4gIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMCwgMCwgMCwgMC40NSk7XG5gO1xuXG5leHBvcnQgY29uc3QgZm9vdGVyQ29udGFpbmVyID0gY3NzYFxuICBwYWRkaW5nOiAxcmVtO1xuXG4gICR7bXFbXCJtZFwiXX0ge1xuICAgIHBhZGRpbmc6IDJyZW07XG4gIH1cbmA7XG4iXX0= */", process.env.NODE_ENV === "production" ? "" : ";label:footerContainer;");
22341
+ /**
22342
+ * defines a focus group
22343
+ */
22344
+ var FOCUS_GROUP = 'data-focus-lock';
22345
+ /**
22346
+ * disables element discovery inside a group marked by key
22347
+ */
22348
+ var FOCUS_DISABLED = 'data-focus-lock-disabled';
22349
+ /**
22350
+ * allows uncontrolled focus within the marked area, effectively disabling focus lock for it's content
22351
+ */
22352
+ var FOCUS_ALLOW = 'data-no-focus-lock';
22353
+ /**
22354
+ * instructs autofocus engine to pick default autofocus inside a given node
22355
+ * can be set on the element or container
22356
+ */
22357
+ var FOCUS_AUTO = 'data-autofocus-inside';
22358
+ /**
22359
+ * instructs autofocus to ignore elements within a given node
22360
+ * can be set on the element or container
22361
+ */
22362
+ var FOCUS_NO_AUTOFOCUS = 'data-no-autofocus';
22346
22363
 
22347
- var Header$1 = function Header(_ref) {
22348
- var onClose = _ref.onClose,
22349
- _ref$noGutters = _ref.noGutters,
22350
- noGutters = _ref$noGutters === void 0 ? false : _ref$noGutters,
22351
- children = _ref.children;
22352
- var title = typeof children === "string" ? jsx(Heading$1, null, children) : children;
22353
- return jsx("header", {
22354
- id: "drawer-title",
22355
- "data-testid": "drawer-header",
22356
- css: function css(theme) {
22357
- return drawerHeader(theme, {
22358
- noGutters: noGutters
22359
- });
22364
+ /**
22365
+ * Assigns a value for a given ref, no matter of the ref format
22366
+ * @param {RefObject} ref - a callback function or ref object
22367
+ * @param value - a new value
22368
+ *
22369
+ * @see https://github.com/theKashey/use-callback-ref#assignref
22370
+ * @example
22371
+ * const refObject = useRef();
22372
+ * const refFn = (ref) => {....}
22373
+ *
22374
+ * assignRef(refObject, "refValue");
22375
+ * assignRef(refFn, "refValue");
22376
+ */
22377
+ function assignRef(ref, value) {
22378
+ if (typeof ref === 'function') {
22379
+ ref(value);
22360
22380
  }
22361
- }, title, Boolean(onClose) && jsx("button", {
22362
- type: "button",
22363
- "aria-label": "Close drawer",
22364
- onClick: onClose
22365
- }, jsx(SvgClose, {
22366
- height: 24
22367
- })));
22368
- };
22381
+ else if (ref) {
22382
+ ref.current = value;
22383
+ }
22384
+ return ref;
22385
+ }
22369
22386
 
22370
- var Body$2 = function Body(_ref) {
22371
- var children = _ref.children;
22372
- return jsx("div", {
22373
- css: drawerBody
22374
- }, children);
22375
- };
22387
+ /**
22388
+ * creates a MutableRef with ref change callback
22389
+ * @param initialValue - initial ref value
22390
+ * @param {Function} callback - a callback to run when value changes
22391
+ *
22392
+ * @example
22393
+ * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);
22394
+ * ref.current = 1;
22395
+ * // prints 0 -> 1
22396
+ *
22397
+ * @see https://reactjs.org/docs/hooks-reference.html#useref
22398
+ * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref
22399
+ * @returns {MutableRefObject}
22400
+ */
22401
+ function useCallbackRef(initialValue, callback) {
22402
+ var ref = React.useState(function () { return ({
22403
+ // value
22404
+ value: initialValue,
22405
+ // last callback
22406
+ callback: callback,
22407
+ // "memoized" public interface
22408
+ facade: {
22409
+ get current() {
22410
+ return ref.value;
22411
+ },
22412
+ set current(value) {
22413
+ var last = ref.value;
22414
+ if (last !== value) {
22415
+ ref.value = value;
22416
+ ref.callback(value, last);
22417
+ }
22418
+ },
22419
+ },
22420
+ }); })[0];
22421
+ // update callback
22422
+ ref.callback = callback;
22423
+ return ref.facade;
22424
+ }
22376
22425
 
22377
- var maskVariants = {
22378
- hidden: {
22379
- opacity: 0
22380
- },
22381
- expanded: {
22382
- opacity: 1
22383
- }
22384
- };
22385
- var Mask = function Mask(_ref) {
22386
- var onClose = _ref.onClose;
22387
- return jsx(m.div, {
22388
- css: maskContainer,
22389
- onClick: onClose,
22390
- initial: "hidden",
22391
- animate: "expanded",
22392
- exit: "hidden",
22393
- variants: maskVariants,
22394
- "data-testid": "mask"
22395
- });
22396
- };
22426
+ var useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React__namespace.useLayoutEffect : React__namespace.useEffect;
22427
+ var currentValues = new WeakMap();
22428
+ /**
22429
+ * Merges two or more refs together providing a single interface to set their value
22430
+ * @param {RefObject|Ref} refs
22431
+ * @returns {MutableRefObject} - a new ref, which translates all changes to {refs}
22432
+ *
22433
+ * @see {@link mergeRefs} a version without buit-in memoization
22434
+ * @see https://github.com/theKashey/use-callback-ref#usemergerefs
22435
+ * @example
22436
+ * const Component = React.forwardRef((props, ref) => {
22437
+ * const ownRef = useRef();
22438
+ * const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together
22439
+ * return <div ref={domRef}>...</div>
22440
+ * }
22441
+ */
22442
+ function useMergeRefs(refs, defaultValue) {
22443
+ var callbackRef = useCallbackRef(defaultValue || null, function (newValue) {
22444
+ return refs.forEach(function (ref) { return assignRef(ref, newValue); });
22445
+ });
22446
+ // handle refs changes - added or removed
22447
+ useIsomorphicLayoutEffect(function () {
22448
+ var oldValue = currentValues.get(callbackRef);
22449
+ if (oldValue) {
22450
+ var prevRefs_1 = new Set(oldValue);
22451
+ var nextRefs_1 = new Set(refs);
22452
+ var current_1 = callbackRef.current;
22453
+ prevRefs_1.forEach(function (ref) {
22454
+ if (!nextRefs_1.has(ref)) {
22455
+ assignRef(ref, null);
22456
+ }
22457
+ });
22458
+ nextRefs_1.forEach(function (ref) {
22459
+ if (!prevRefs_1.has(ref)) {
22460
+ assignRef(ref, current_1);
22461
+ }
22462
+ });
22463
+ }
22464
+ currentValues.set(callbackRef, refs);
22465
+ }, [refs]);
22466
+ return callbackRef;
22467
+ }
22397
22468
 
22398
- var Footer = function Footer(_ref) {
22399
- var children = _ref.children;
22400
- return jsx("footer", {
22401
- "data-testid": "drawer-footer",
22402
- css: footerContainer
22403
- }, children);
22469
+ var hiddenGuard = {
22470
+ width: '1px',
22471
+ height: '0px',
22472
+ padding: 0,
22473
+ overflow: 'hidden',
22474
+ position: 'fixed',
22475
+ top: '1px',
22476
+ left: '1px'
22404
22477
  };
22478
+ process.env.NODE_ENV !== "production" ? {
22479
+ children: PropTypes.node
22480
+ } : {};
22405
22481
 
22406
- var _excluded$s = ["isOpen", "onClose", "placement", "showMask", "width", "dialogStyles", "dialogClassName", "children"];
22407
- var dialogVariants = {
22408
- initial: function initial(_ref) {
22409
- var placement = _ref.placement,
22410
- width = _ref.width;
22411
- return {
22412
- opacity: 0,
22413
- x: placement === "right" ? "100%" : "-".concat(width),
22414
- transition: {
22415
- type: "tween"
22416
- }
22482
+ function ItoI(a) {
22483
+ return a;
22484
+ }
22485
+ function innerCreateMedium(defaults, middleware) {
22486
+ if (middleware === void 0) { middleware = ItoI; }
22487
+ var buffer = [];
22488
+ var assigned = false;
22489
+ var medium = {
22490
+ read: function () {
22491
+ if (assigned) {
22492
+ throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');
22493
+ }
22494
+ if (buffer.length) {
22495
+ return buffer[buffer.length - 1];
22496
+ }
22497
+ return defaults;
22498
+ },
22499
+ useMedium: function (data) {
22500
+ var item = middleware(data, assigned);
22501
+ buffer.push(item);
22502
+ return function () {
22503
+ buffer = buffer.filter(function (x) { return x !== item; });
22504
+ };
22505
+ },
22506
+ assignSyncMedium: function (cb) {
22507
+ assigned = true;
22508
+ while (buffer.length) {
22509
+ var cbs = buffer;
22510
+ buffer = [];
22511
+ cbs.forEach(cb);
22512
+ }
22513
+ buffer = {
22514
+ push: function (x) { return cb(x); },
22515
+ filter: function () { return buffer; },
22516
+ };
22517
+ },
22518
+ assignMedium: function (cb) {
22519
+ assigned = true;
22520
+ var pendingQueue = [];
22521
+ if (buffer.length) {
22522
+ var cbs = buffer;
22523
+ buffer = [];
22524
+ cbs.forEach(cb);
22525
+ pendingQueue = buffer;
22526
+ }
22527
+ var executeQueue = function () {
22528
+ var cbs = pendingQueue;
22529
+ pendingQueue = [];
22530
+ cbs.forEach(cb);
22531
+ };
22532
+ var cycle = function () { return Promise.resolve().then(executeQueue); };
22533
+ cycle();
22534
+ buffer = {
22535
+ push: function (x) {
22536
+ pendingQueue.push(x);
22537
+ cycle();
22538
+ },
22539
+ filter: function (filter) {
22540
+ pendingQueue = pendingQueue.filter(filter);
22541
+ return buffer;
22542
+ },
22543
+ };
22544
+ },
22417
22545
  };
22418
- },
22419
- expanded: function expanded() {
22420
- return {
22421
- opacity: 1,
22422
- x: 0,
22423
- transition: {
22424
- type: "tween"
22546
+ return medium;
22547
+ }
22548
+ function createMedium(defaults, middleware) {
22549
+ if (middleware === void 0) { middleware = ItoI; }
22550
+ return innerCreateMedium(defaults, middleware);
22551
+ }
22552
+ // eslint-disable-next-line @typescript-eslint/ban-types
22553
+ function createSidecarMedium(options) {
22554
+ if (options === void 0) { options = {}; }
22555
+ var medium = innerCreateMedium(null);
22556
+ medium.options = __assign$2({ async: true, ssr: false }, options);
22557
+ return medium;
22558
+ }
22559
+
22560
+ var mediumFocus = createMedium({}, function (_ref) {
22561
+ var target = _ref.target,
22562
+ currentTarget = _ref.currentTarget;
22563
+ return {
22564
+ target: target,
22565
+ currentTarget: currentTarget
22566
+ };
22567
+ });
22568
+ var mediumBlur = createMedium();
22569
+ var mediumEffect = createMedium();
22570
+ var mediumSidecar = createSidecarMedium({
22571
+ async: true,
22572
+ ssr: typeof document !== 'undefined'
22573
+ });
22574
+
22575
+ var focusScope = /*#__PURE__*/React.createContext(undefined);
22576
+
22577
+ var emptyArray = [];
22578
+ var FocusLock$1 = /*#__PURE__*/React.forwardRef(function FocusLockUI(props, parentRef) {
22579
+ var _extends2;
22580
+ var _useState = React.useState(),
22581
+ realObserved = _useState[0],
22582
+ setObserved = _useState[1];
22583
+ var observed = React.useRef();
22584
+ var isActive = React.useRef(false);
22585
+ var originalFocusedElement = React.useRef(null);
22586
+ var _useState2 = React.useState({}),
22587
+ update = _useState2[1];
22588
+ var children = props.children,
22589
+ _props$disabled = props.disabled,
22590
+ disabled = _props$disabled === void 0 ? false : _props$disabled,
22591
+ _props$noFocusGuards = props.noFocusGuards,
22592
+ noFocusGuards = _props$noFocusGuards === void 0 ? false : _props$noFocusGuards,
22593
+ _props$persistentFocu = props.persistentFocus,
22594
+ persistentFocus = _props$persistentFocu === void 0 ? false : _props$persistentFocu,
22595
+ _props$crossFrame = props.crossFrame,
22596
+ crossFrame = _props$crossFrame === void 0 ? true : _props$crossFrame,
22597
+ _props$autoFocus = props.autoFocus,
22598
+ autoFocus = _props$autoFocus === void 0 ? true : _props$autoFocus,
22599
+ allowTextSelection = props.allowTextSelection,
22600
+ group = props.group,
22601
+ className = props.className,
22602
+ whiteList = props.whiteList,
22603
+ hasPositiveIndices = props.hasPositiveIndices,
22604
+ _props$shards = props.shards,
22605
+ shards = _props$shards === void 0 ? emptyArray : _props$shards,
22606
+ _props$as = props.as,
22607
+ Container = _props$as === void 0 ? 'div' : _props$as,
22608
+ _props$lockProps = props.lockProps,
22609
+ containerProps = _props$lockProps === void 0 ? {} : _props$lockProps,
22610
+ SideCar = props.sideCar,
22611
+ _props$returnFocus = props.returnFocus,
22612
+ shouldReturnFocus = _props$returnFocus === void 0 ? false : _props$returnFocus,
22613
+ focusOptions = props.focusOptions,
22614
+ onActivationCallback = props.onActivation,
22615
+ onDeactivationCallback = props.onDeactivation;
22616
+ var _useState3 = React.useState({}),
22617
+ id = _useState3[0];
22618
+ var onActivation = React.useCallback(function (_ref) {
22619
+ var captureFocusRestore = _ref.captureFocusRestore;
22620
+ if (!originalFocusedElement.current) {
22621
+ var _document;
22622
+ var activeElement = (_document = document) == null ? void 0 : _document.activeElement;
22623
+ originalFocusedElement.current = activeElement;
22624
+ if (activeElement !== document.body) {
22625
+ originalFocusedElement.current = captureFocusRestore(activeElement);
22626
+ }
22627
+ }
22628
+ if (observed.current && onActivationCallback) {
22629
+ onActivationCallback(observed.current);
22630
+ }
22631
+ isActive.current = true;
22632
+ update();
22633
+ }, [onActivationCallback]);
22634
+ var onDeactivation = React.useCallback(function () {
22635
+ isActive.current = false;
22636
+ if (onDeactivationCallback) {
22637
+ onDeactivationCallback(observed.current);
22638
+ }
22639
+ update();
22640
+ }, [onDeactivationCallback]);
22641
+ var returnFocus = React.useCallback(function (allowDefer) {
22642
+ var focusRestore = originalFocusedElement.current;
22643
+ if (focusRestore) {
22644
+ var returnFocusTo = (typeof focusRestore === 'function' ? focusRestore() : focusRestore) || document.body;
22645
+ var howToReturnFocus = typeof shouldReturnFocus === 'function' ? shouldReturnFocus(returnFocusTo) : shouldReturnFocus;
22646
+ if (howToReturnFocus) {
22647
+ var returnFocusOptions = typeof howToReturnFocus === 'object' ? howToReturnFocus : undefined;
22648
+ originalFocusedElement.current = null;
22649
+ if (allowDefer) {
22650
+ Promise.resolve().then(function () {
22651
+ return returnFocusTo.focus(returnFocusOptions);
22652
+ });
22653
+ } else {
22654
+ returnFocusTo.focus(returnFocusOptions);
22655
+ }
22425
22656
  }
22426
- };
22427
- }
22428
- };
22429
- var DRAWER_ROOT = "drawerRoot";
22430
- var DrawerRoot = function DrawerRoot() {
22431
- return jsx("div", {
22432
- id: DRAWER_ROOT
22433
- });
22434
- };
22435
- var Drawer$1 = function Drawer(props) {
22436
- var isOpen = props.isOpen,
22437
- onClose = props.onClose,
22438
- _props$placement = props.placement,
22439
- placement = _props$placement === void 0 ? "left" : _props$placement,
22440
- _props$showMask = props.showMask,
22441
- showMask = _props$showMask === void 0 ? true : _props$showMask,
22442
- _props$width = props.width,
22443
- width = _props$width === void 0 ? "31.5rem" : _props$width,
22444
- dialogStyles = props.dialogStyles,
22445
- dialogClassName = props.dialogClassName,
22446
- children = props.children,
22447
- rest = _objectWithoutProperties$1(props, _excluded$s);
22448
- var clonedChildren = React.Children.map(children, function (child) {
22449
- var _props;
22450
- return child && /*#__PURE__*/React.cloneElement(child, {
22451
- onClose: ((_props = child.props) === null || _props === void 0 ? void 0 : _props.closable) && onClose
22452
- });
22453
- });
22454
- var drawerEl = document.getElementById(DRAWER_ROOT);
22455
- var dialogClassNames = classNames$1(_defineProperty$1({
22456
- dialog: true,
22457
- "placement-left": placement === "left",
22458
- "placement-right": placement === "right"
22459
- }, dialogClassName !== null && dialogClassName !== void 0 ? dialogClassName : "", dialogClassName));
22460
- React.useEffect(function () {
22461
- var handleEscape = function handleEscape(event) {
22462
- if (event.key === "Escape" && isOpen) {
22463
- onClose();
22657
+ }
22658
+ }, [shouldReturnFocus]);
22659
+ var onFocus = React.useCallback(function (event) {
22660
+ if (isActive.current) {
22661
+ mediumFocus.useMedium(event);
22662
+ }
22663
+ }, []);
22664
+ var onBlur = mediumBlur.useMedium;
22665
+ var setObserveNode = React.useCallback(function (newObserved) {
22666
+ if (observed.current !== newObserved) {
22667
+ observed.current = newObserved;
22668
+ setObserved(newObserved);
22669
+ }
22670
+ }, []);
22671
+ if (process.env.NODE_ENV !== 'production') {
22672
+ if (typeof allowTextSelection !== 'undefined') {
22673
+ console.warn('React-Focus-Lock: allowTextSelection is deprecated and enabled by default');
22674
+ }
22675
+ React.useEffect(function () {
22676
+ if (!observed.current && typeof Container !== 'string') {
22677
+ console.error('FocusLock: could not obtain ref to internal node');
22464
22678
  }
22679
+ }, []);
22680
+ }
22681
+ var lockProps = _extends$q((_extends2 = {}, _extends2[FOCUS_DISABLED] = disabled && 'disabled', _extends2[FOCUS_GROUP] = group, _extends2), containerProps);
22682
+ var hasLeadingGuards = noFocusGuards !== true;
22683
+ var hasTailingGuards = hasLeadingGuards && noFocusGuards !== 'tail';
22684
+ var mergedRef = useMergeRefs([parentRef, setObserveNode]);
22685
+ var focusScopeValue = React.useMemo(function () {
22686
+ return {
22687
+ observed: observed,
22688
+ shards: shards,
22689
+ enabled: !disabled,
22690
+ active: isActive.current
22465
22691
  };
22466
- document.addEventListener("keydown", handleEscape);
22467
- return function () {
22692
+ }, [disabled, isActive.current, shards, realObserved]);
22693
+ return /*#__PURE__*/React__default["default"].createElement(React.Fragment, null, hasLeadingGuards && [
22694
+ /*#__PURE__*/
22695
+ React__default["default"].createElement("div", {
22696
+ key: "guard-first",
22697
+ "data-focus-guard": true,
22698
+ tabIndex: disabled ? -1 : 0,
22699
+ style: hiddenGuard
22700
+ }), hasPositiveIndices ? /*#__PURE__*/React__default["default"].createElement("div", {
22701
+ key: "guard-nearest",
22702
+ "data-focus-guard": true,
22703
+ tabIndex: disabled ? -1 : 1,
22704
+ style: hiddenGuard
22705
+ }) : null], !disabled && /*#__PURE__*/React__default["default"].createElement(SideCar, {
22706
+ id: id,
22707
+ sideCar: mediumSidecar,
22708
+ observed: realObserved,
22709
+ disabled: disabled,
22710
+ persistentFocus: persistentFocus,
22711
+ crossFrame: crossFrame,
22712
+ autoFocus: autoFocus,
22713
+ whiteList: whiteList,
22714
+ shards: shards,
22715
+ onActivation: onActivation,
22716
+ onDeactivation: onDeactivation,
22717
+ returnFocus: returnFocus,
22718
+ focusOptions: focusOptions,
22719
+ noFocusGuards: noFocusGuards
22720
+ }), /*#__PURE__*/React__default["default"].createElement(Container, _extends$q({
22721
+ ref: mergedRef
22722
+ }, lockProps, {
22723
+ className: className,
22724
+ onBlur: onBlur,
22725
+ onFocus: onFocus
22726
+ }), /*#__PURE__*/React__default["default"].createElement(focusScope.Provider, {
22727
+ value: focusScopeValue
22728
+ }, children)), hasTailingGuards && /*#__PURE__*/React__default["default"].createElement("div", {
22729
+ "data-focus-guard": true,
22730
+ tabIndex: disabled ? -1 : 0,
22731
+ style: hiddenGuard
22732
+ }));
22733
+ });
22734
+ FocusLock$1.propTypes = process.env.NODE_ENV !== "production" ? {
22735
+ children: propTypes$1.exports.node,
22736
+ disabled: propTypes$1.exports.bool,
22737
+ returnFocus: propTypes$1.exports.oneOfType([propTypes$1.exports.bool, propTypes$1.exports.object, propTypes$1.exports.func]),
22738
+ focusOptions: propTypes$1.exports.object,
22739
+ noFocusGuards: propTypes$1.exports.bool,
22740
+ hasPositiveIndices: propTypes$1.exports.bool,
22741
+ allowTextSelection: propTypes$1.exports.bool,
22742
+ autoFocus: propTypes$1.exports.bool,
22743
+ persistentFocus: propTypes$1.exports.bool,
22744
+ crossFrame: propTypes$1.exports.bool,
22745
+ group: propTypes$1.exports.string,
22746
+ className: propTypes$1.exports.string,
22747
+ whiteList: propTypes$1.exports.func,
22748
+ shards: propTypes$1.exports.arrayOf(propTypes$1.exports.any),
22749
+ as: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.func, propTypes$1.exports.object]),
22750
+ lockProps: propTypes$1.exports.object,
22751
+ onActivation: propTypes$1.exports.func,
22752
+ onDeactivation: propTypes$1.exports.func,
22753
+ sideCar: propTypes$1.exports.any.isRequired
22754
+ } : {};
22755
+ var FocusLockUI = FocusLock$1;
22756
+
22757
+ function _setPrototypeOf(t, e) {
22758
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
22759
+ return t.__proto__ = e, t;
22760
+ }, _setPrototypeOf(t, e);
22761
+ }
22762
+
22763
+ function _inheritsLoose(t, o) {
22764
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
22765
+ }
22766
+
22767
+ function _typeof(o) {
22768
+ "@babel/helpers - typeof";
22769
+
22770
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
22771
+ return typeof o;
22772
+ } : function (o) {
22773
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
22774
+ }, _typeof(o);
22775
+ }
22776
+
22777
+ function toPrimitive(t, r) {
22778
+ if ("object" != _typeof(t) || !t) return t;
22779
+ var e = t[Symbol.toPrimitive];
22780
+ if (void 0 !== e) {
22781
+ var i = e.call(t, r || "default");
22782
+ if ("object" != _typeof(i)) return i;
22783
+ throw new TypeError("@@toPrimitive must return a primitive value.");
22784
+ }
22785
+ return ("string" === r ? String : Number)(t);
22786
+ }
22787
+
22788
+ function toPropertyKey$1(t) {
22789
+ var i = toPrimitive(t, "string");
22790
+ return "symbol" == _typeof(i) ? i : i + "";
22791
+ }
22792
+
22793
+ function _defineProperty(e, r, t) {
22794
+ return (r = toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, {
22795
+ value: t,
22796
+ enumerable: !0,
22797
+ configurable: !0,
22798
+ writable: !0
22799
+ }) : e[r] = t, e;
22800
+ }
22801
+
22802
+ function withSideEffect(reducePropsToState, handleStateChangeOnClient) {
22803
+ if (process.env.NODE_ENV !== "production") {
22804
+ if (typeof reducePropsToState !== 'function') {
22805
+ throw new Error('Expected reducePropsToState to be a function.');
22806
+ }
22807
+
22808
+ if (typeof handleStateChangeOnClient !== 'function') {
22809
+ throw new Error('Expected handleStateChangeOnClient to be a function.');
22810
+ }
22811
+ }
22812
+
22813
+ function getDisplayName(WrappedComponent) {
22814
+ return WrappedComponent.displayName || WrappedComponent.name || 'Component';
22815
+ }
22816
+
22817
+ return function wrap(WrappedComponent) {
22818
+ if (process.env.NODE_ENV !== "production") {
22819
+ if (typeof WrappedComponent !== 'function') {
22820
+ throw new Error('Expected WrappedComponent to be a React component.');
22821
+ }
22822
+ }
22823
+
22824
+ var mountedInstances = [];
22825
+ var state;
22826
+
22827
+ function emitChange() {
22828
+ state = reducePropsToState(mountedInstances.map(function (instance) {
22829
+ return instance.props;
22830
+ }));
22831
+ handleStateChangeOnClient(state);
22832
+ }
22833
+
22834
+ var SideEffect = /*#__PURE__*/function (_PureComponent) {
22835
+ _inheritsLoose(SideEffect, _PureComponent);
22836
+
22837
+ function SideEffect() {
22838
+ return _PureComponent.apply(this, arguments) || this;
22839
+ }
22840
+
22841
+ // Try to use displayName of wrapped component
22842
+ SideEffect.peek = function peek() {
22843
+ return state;
22844
+ };
22845
+
22846
+ var _proto = SideEffect.prototype;
22847
+
22848
+ _proto.componentDidMount = function componentDidMount() {
22849
+ mountedInstances.push(this);
22850
+ emitChange();
22851
+ };
22852
+
22853
+ _proto.componentDidUpdate = function componentDidUpdate() {
22854
+ emitChange();
22855
+ };
22856
+
22857
+ _proto.componentWillUnmount = function componentWillUnmount() {
22858
+ var index = mountedInstances.indexOf(this);
22859
+ mountedInstances.splice(index, 1);
22860
+ emitChange();
22861
+ };
22862
+
22863
+ _proto.render = function render() {
22864
+ return /*#__PURE__*/React__default["default"].createElement(WrappedComponent, this.props);
22865
+ };
22866
+
22867
+ return SideEffect;
22868
+ }(React.PureComponent);
22869
+
22870
+ _defineProperty(SideEffect, "displayName", "SideEffect(" + getDisplayName(WrappedComponent) + ")");
22871
+
22872
+ return SideEffect;
22873
+ };
22874
+ }
22875
+
22876
+ /*
22877
+ IE11 support
22878
+ */
22879
+ var toArray = function (a) {
22880
+ var ret = Array(a.length);
22881
+ for (var i = 0; i < a.length; ++i) {
22882
+ ret[i] = a[i];
22883
+ }
22884
+ return ret;
22885
+ };
22886
+ var asArray = function (a) { return (Array.isArray(a) ? a : [a]); };
22887
+ var getFirst = function (a) { return (Array.isArray(a) ? a[0] : a); };
22888
+
22889
+ var isElementHidden = function (node) {
22890
+ // we can measure only "elements"
22891
+ // consider others as "visible"
22892
+ if (node.nodeType !== Node.ELEMENT_NODE) {
22893
+ return false;
22894
+ }
22895
+ var computedStyle = window.getComputedStyle(node, null);
22896
+ if (!computedStyle || !computedStyle.getPropertyValue) {
22897
+ return false;
22898
+ }
22899
+ return (computedStyle.getPropertyValue('display') === 'none' || computedStyle.getPropertyValue('visibility') === 'hidden');
22900
+ };
22901
+ var getParentNode$1 = function (node) {
22902
+ // DOCUMENT_FRAGMENT_NODE can also point on ShadowRoot. In this case .host will point on the next node
22903
+ return node.parentNode && node.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE
22904
+ ? // eslint-disable-next-line @typescript-eslint/no-explicit-any
22905
+ node.parentNode.host
22906
+ : node.parentNode;
22907
+ };
22908
+ var isTopNode = function (node) {
22909
+ // @ts-ignore
22910
+ return node === document || (node && node.nodeType === Node.DOCUMENT_NODE);
22911
+ };
22912
+ var isInert = function (node) { return node.hasAttribute('inert'); };
22913
+ /**
22914
+ * @see https://github.com/testing-library/jest-dom/blob/main/src/to-be-visible.js
22915
+ */
22916
+ var isVisibleUncached = function (node, checkParent) {
22917
+ return !node || isTopNode(node) || (!isElementHidden(node) && !isInert(node) && checkParent(getParentNode$1(node)));
22918
+ };
22919
+ var isVisibleCached = function (visibilityCache, node) {
22920
+ var cached = visibilityCache.get(node);
22921
+ if (cached !== undefined) {
22922
+ return cached;
22923
+ }
22924
+ var result = isVisibleUncached(node, isVisibleCached.bind(undefined, visibilityCache));
22925
+ visibilityCache.set(node, result);
22926
+ return result;
22927
+ };
22928
+ var isAutoFocusAllowedUncached = function (node, checkParent) {
22929
+ return node && !isTopNode(node) ? (isAutoFocusAllowed(node) ? checkParent(getParentNode$1(node)) : false) : true;
22930
+ };
22931
+ var isAutoFocusAllowedCached = function (cache, node) {
22932
+ var cached = cache.get(node);
22933
+ if (cached !== undefined) {
22934
+ return cached;
22935
+ }
22936
+ var result = isAutoFocusAllowedUncached(node, isAutoFocusAllowedCached.bind(undefined, cache));
22937
+ cache.set(node, result);
22938
+ return result;
22939
+ };
22940
+ var getDataset = function (node) {
22941
+ // @ts-ignore
22942
+ return node.dataset;
22943
+ };
22944
+ var isHTMLButtonElement = function (node) { return node.tagName === 'BUTTON'; };
22945
+ var isHTMLInputElement = function (node) { return node.tagName === 'INPUT'; };
22946
+ var isRadioElement = function (node) {
22947
+ return isHTMLInputElement(node) && node.type === 'radio';
22948
+ };
22949
+ var notHiddenInput = function (node) {
22950
+ return !((isHTMLInputElement(node) || isHTMLButtonElement(node)) && (node.type === 'hidden' || node.disabled));
22951
+ };
22952
+ var isAutoFocusAllowed = function (node) {
22953
+ var attribute = node.getAttribute(FOCUS_NO_AUTOFOCUS);
22954
+ return ![true, 'true', ''].includes(attribute);
22955
+ };
22956
+ var isGuard = function (node) { var _a; return Boolean(node && ((_a = getDataset(node)) === null || _a === void 0 ? void 0 : _a.focusGuard)); };
22957
+ var isNotAGuard = function (node) { return !isGuard(node); };
22958
+ var isDefined = function (x) { return Boolean(x); };
22959
+
22960
+ var tabSort = function (a, b) {
22961
+ var aTab = Math.max(0, a.tabIndex);
22962
+ var bTab = Math.max(0, b.tabIndex);
22963
+ var tabDiff = aTab - bTab;
22964
+ var indexDiff = a.index - b.index;
22965
+ if (tabDiff) {
22966
+ if (!aTab) {
22967
+ return 1;
22968
+ }
22969
+ if (!bTab) {
22970
+ return -1;
22971
+ }
22972
+ }
22973
+ return tabDiff || indexDiff;
22974
+ };
22975
+ var getTabIndex = function (node) {
22976
+ if (node.tabIndex < 0) {
22977
+ // all "focusable" elements are already preselected
22978
+ // but some might have implicit negative tabIndex
22979
+ // return 0 for <audio without tabIndex attribute - it is "tabbable"
22980
+ if (!node.hasAttribute('tabindex')) {
22981
+ return 0;
22982
+ }
22983
+ }
22984
+ return node.tabIndex;
22985
+ };
22986
+ var orderByTabIndex = function (nodes, filterNegative, keepGuards) {
22987
+ return toArray(nodes)
22988
+ .map(function (node, index) {
22989
+ var tabIndex = getTabIndex(node);
22990
+ return {
22991
+ node: node,
22992
+ index: index,
22993
+ tabIndex: keepGuards && tabIndex === -1 ? ((node.dataset || {}).focusGuard ? 0 : -1) : tabIndex,
22994
+ };
22995
+ })
22996
+ .filter(function (data) { return !filterNegative || data.tabIndex >= 0; })
22997
+ .sort(tabSort);
22998
+ };
22999
+
23000
+ /**
23001
+ * list of the object to be considered as focusable
23002
+ */
23003
+ var tabbables = [
23004
+ 'button:enabled',
23005
+ 'select:enabled',
23006
+ 'textarea:enabled',
23007
+ 'input:enabled',
23008
+ // elements with explicit roles will also use explicit tabindex
23009
+ // '[role="button"]',
23010
+ 'a[href]',
23011
+ 'area[href]',
23012
+ 'summary',
23013
+ 'iframe',
23014
+ 'object',
23015
+ 'embed',
23016
+ 'audio[controls]',
23017
+ 'video[controls]',
23018
+ '[tabindex]',
23019
+ '[contenteditable]',
23020
+ '[autofocus]',
23021
+ ];
23022
+
23023
+ var queryTabbables = tabbables.join(',');
23024
+ var queryGuardTabbables = "".concat(queryTabbables, ", [data-focus-guard]");
23025
+ var getFocusablesWithShadowDom = function (parent, withGuards) {
23026
+ return toArray((parent.shadowRoot || parent).children).reduce(function (acc, child) {
23027
+ return acc.concat(child.matches(withGuards ? queryGuardTabbables : queryTabbables) ? [child] : [], getFocusablesWithShadowDom(child));
23028
+ }, []);
23029
+ };
23030
+ var getFocusablesWithIFrame = function (parent, withGuards) {
23031
+ var _a;
23032
+ // contentDocument of iframe will be null if current origin cannot access it
23033
+ if (parent instanceof HTMLIFrameElement && ((_a = parent.contentDocument) === null || _a === void 0 ? void 0 : _a.body)) {
23034
+ return getFocusables([parent.contentDocument.body], withGuards);
23035
+ }
23036
+ return [parent];
23037
+ };
23038
+ var getFocusables = function (parents, withGuards) {
23039
+ return parents.reduce(function (acc, parent) {
23040
+ var _a;
23041
+ var focusableWithShadowDom = getFocusablesWithShadowDom(parent, withGuards);
23042
+ var focusableWithIframes = (_a = []).concat.apply(_a, focusableWithShadowDom.map(function (node) { return getFocusablesWithIFrame(node, withGuards); }));
23043
+ return acc.concat(
23044
+ // add all tabbables inside and within shadow DOMs in DOM order
23045
+ focusableWithIframes,
23046
+ // add if node is tabbable itself
23047
+ parent.parentNode
23048
+ ? toArray(parent.parentNode.querySelectorAll(queryTabbables)).filter(function (node) { return node === parent; })
23049
+ : []);
23050
+ }, []);
23051
+ };
23052
+ /**
23053
+ * return a list of focusable nodes within an area marked as "auto-focusable"
23054
+ * @param parent
23055
+ */
23056
+ var getParentAutofocusables = function (parent) {
23057
+ var parentFocus = parent.querySelectorAll("[".concat(FOCUS_AUTO, "]"));
23058
+ return toArray(parentFocus)
23059
+ .map(function (node) { return getFocusables([node]); })
23060
+ .reduce(function (acc, nodes) { return acc.concat(nodes); }, []);
23061
+ };
23062
+
23063
+ /**
23064
+ * given list of focusable elements keeps the ones user can interact with
23065
+ * @param nodes
23066
+ * @param visibilityCache
23067
+ */
23068
+ var filterFocusable = function (nodes, visibilityCache) {
23069
+ return toArray(nodes)
23070
+ .filter(function (node) { return isVisibleCached(visibilityCache, node); })
23071
+ .filter(function (node) { return notHiddenInput(node); });
23072
+ };
23073
+ var filterAutoFocusable = function (nodes, cache) {
23074
+ if (cache === void 0) { cache = new Map(); }
23075
+ return toArray(nodes).filter(function (node) { return isAutoFocusAllowedCached(cache, node); });
23076
+ };
23077
+ /**
23078
+ * !__WARNING__! Low level API.
23079
+ * @returns all tabbable nodes
23080
+ *
23081
+ * @see {@link getFocusableNodes} to get any focusable element
23082
+ *
23083
+ * @param topNodes - array of top level HTMLElements to search inside
23084
+ * @param visibilityCache - an cache to store intermediate measurements. Expected to be a fresh `new Map` on every call
23085
+ */
23086
+ var getTabbableNodes = function (topNodes, visibilityCache, withGuards) {
23087
+ return orderByTabIndex(filterFocusable(getFocusables(topNodes, withGuards), visibilityCache), true, withGuards);
23088
+ };
23089
+ /**
23090
+ * !__WARNING__! Low level API.
23091
+ *
23092
+ * @returns anything "focusable", not only tabbable. The difference is in `tabIndex=-1`
23093
+ * (without guards, as long as they are not expected to be ever focused)
23094
+ *
23095
+ * @see {@link getTabbableNodes} to get only tabble nodes element
23096
+ *
23097
+ * @param topNodes - array of top level HTMLElements to search inside
23098
+ * @param visibilityCache - an cache to store intermediate measurements. Expected to be a fresh `new Map` on every call
23099
+ */
23100
+ var getFocusableNodes = function (topNodes, visibilityCache) {
23101
+ return orderByTabIndex(filterFocusable(getFocusables(topNodes), visibilityCache), false);
23102
+ };
23103
+ /**
23104
+ * return list of nodes which are expected to be auto-focused
23105
+ * @param topNode
23106
+ * @param visibilityCache
23107
+ */
23108
+ var parentAutofocusables = function (topNode, visibilityCache) {
23109
+ return filterFocusable(getParentAutofocusables(topNode), visibilityCache);
23110
+ };
23111
+ /*
23112
+ * Determines if element is contained in scope, including nested shadow DOMs
23113
+ */
23114
+ var contains = function (scope, element) {
23115
+ if (scope.shadowRoot) {
23116
+ return contains(scope.shadowRoot, element);
23117
+ }
23118
+ else {
23119
+ if (Object.getPrototypeOf(scope).contains !== undefined &&
23120
+ Object.getPrototypeOf(scope).contains.call(scope, element)) {
23121
+ return true;
23122
+ }
23123
+ return toArray(scope.children).some(function (child) {
23124
+ var _a;
23125
+ if (child instanceof HTMLIFrameElement) {
23126
+ var iframeBody = (_a = child.contentDocument) === null || _a === void 0 ? void 0 : _a.body;
23127
+ if (iframeBody) {
23128
+ return contains(iframeBody, element);
23129
+ }
23130
+ return false;
23131
+ }
23132
+ return contains(child, element);
23133
+ });
23134
+ }
23135
+ };
23136
+
23137
+ /**
23138
+ * in case of multiple nodes nested inside each other
23139
+ * keeps only top ones
23140
+ * this is O(nlogn)
23141
+ * @param nodes
23142
+ * @returns {*}
23143
+ */
23144
+ var filterNested = function (nodes) {
23145
+ var contained = new Set();
23146
+ var l = nodes.length;
23147
+ for (var i = 0; i < l; i += 1) {
23148
+ for (var j = i + 1; j < l; j += 1) {
23149
+ var position = nodes[i].compareDocumentPosition(nodes[j]);
23150
+ /* eslint-disable no-bitwise */
23151
+ if ((position & Node.DOCUMENT_POSITION_CONTAINED_BY) > 0) {
23152
+ contained.add(j);
23153
+ }
23154
+ if ((position & Node.DOCUMENT_POSITION_CONTAINS) > 0) {
23155
+ contained.add(i);
23156
+ }
23157
+ /* eslint-enable */
23158
+ }
23159
+ }
23160
+ return nodes.filter(function (_, index) { return !contained.has(index); });
23161
+ };
23162
+ /**
23163
+ * finds top most parent for a node
23164
+ * @param node
23165
+ * @returns {*}
23166
+ */
23167
+ var getTopParent = function (node) {
23168
+ return node.parentNode ? getTopParent(node.parentNode) : node;
23169
+ };
23170
+ /**
23171
+ * returns all "focus containers" inside a given node
23172
+ * @param node - node or nodes to look inside
23173
+ * @returns Element[]
23174
+ */
23175
+ var getAllAffectedNodes = function (node) {
23176
+ var nodes = asArray(node);
23177
+ return nodes.filter(Boolean).reduce(function (acc, currentNode) {
23178
+ var group = currentNode.getAttribute(FOCUS_GROUP);
23179
+ acc.push.apply(acc, (group
23180
+ ? filterNested(toArray(getTopParent(currentNode).querySelectorAll("[".concat(FOCUS_GROUP, "=\"").concat(group, "\"]:not([").concat(FOCUS_DISABLED, "=\"disabled\"])"))))
23181
+ : [currentNode]));
23182
+ return acc;
23183
+ }, []);
23184
+ };
23185
+
23186
+ var safeProbe = function (cb) {
23187
+ try {
23188
+ return cb();
23189
+ }
23190
+ catch (e) {
23191
+ return undefined;
23192
+ }
23193
+ };
23194
+
23195
+ /**
23196
+ * returns active element from document or from nested shadowdoms
23197
+ */
23198
+ /**
23199
+ * returns current active element. If the active element is a "container" itself(shadowRoot or iframe) returns active element inside it
23200
+ * @param [inDocument]
23201
+ */
23202
+ var getActiveElement = function (inDocument) {
23203
+ if (inDocument === void 0) { inDocument = document; }
23204
+ if (!inDocument || !inDocument.activeElement) {
23205
+ return undefined;
23206
+ }
23207
+ var activeElement = inDocument.activeElement;
23208
+ return (activeElement.shadowRoot
23209
+ ? getActiveElement(activeElement.shadowRoot)
23210
+ : activeElement instanceof HTMLIFrameElement && safeProbe(function () { return activeElement.contentWindow.document; })
23211
+ ? getActiveElement(activeElement.contentWindow.document)
23212
+ : activeElement);
23213
+ };
23214
+
23215
+ var focusInFrame = function (frame, activeElement) { return frame === activeElement; };
23216
+ var focusInsideIframe = function (topNode, activeElement) {
23217
+ return Boolean(toArray(topNode.querySelectorAll('iframe')).some(function (node) { return focusInFrame(node, activeElement); }));
23218
+ };
23219
+ /**
23220
+ * @returns {Boolean} true, if the current focus is inside given node or nodes.
23221
+ * Supports nodes hidden inside shadowDom
23222
+ */
23223
+ var focusInside = function (topNode, activeElement) {
23224
+ // const activeElement = document && getActiveElement();
23225
+ if (activeElement === void 0) { activeElement = getActiveElement(getFirst(topNode).ownerDocument); }
23226
+ if (!activeElement || (activeElement.dataset && activeElement.dataset.focusGuard)) {
23227
+ return false;
23228
+ }
23229
+ return getAllAffectedNodes(topNode).some(function (node) {
23230
+ return contains(node, activeElement) || focusInsideIframe(node, activeElement);
23231
+ });
23232
+ };
23233
+
23234
+ /**
23235
+ * checks if focus is hidden FROM the focus-lock
23236
+ * ie contained inside a node focus-lock shall ignore
23237
+ *
23238
+ * This is a utility function coupled with {@link FOCUS_ALLOW} constant
23239
+ *
23240
+ * @returns {boolean} focus is currently is in "allow" area
23241
+ */
23242
+ var focusIsHidden = function (inDocument) {
23243
+ if (inDocument === void 0) { inDocument = document; }
23244
+ var activeElement = getActiveElement(inDocument);
23245
+ if (!activeElement) {
23246
+ return false;
23247
+ }
23248
+ // this does not support setting FOCUS_ALLOW within shadow dom
23249
+ return toArray(inDocument.querySelectorAll("[".concat(FOCUS_ALLOW, "]"))).some(function (node) { return contains(node, activeElement); });
23250
+ };
23251
+
23252
+ var findSelectedRadio = function (node, nodes) {
23253
+ return nodes
23254
+ .filter(isRadioElement)
23255
+ .filter(function (el) { return el.name === node.name; })
23256
+ .filter(function (el) { return el.checked; })[0] || node;
23257
+ };
23258
+ var correctNode = function (node, nodes) {
23259
+ if (isRadioElement(node) && node.name) {
23260
+ return findSelectedRadio(node, nodes);
23261
+ }
23262
+ return node;
23263
+ };
23264
+ /**
23265
+ * giving a set of radio inputs keeps only selected (tabbable) ones
23266
+ * @param nodes
23267
+ */
23268
+ var correctNodes = function (nodes) {
23269
+ // IE11 has no Set(array) constructor
23270
+ var resultSet = new Set();
23271
+ nodes.forEach(function (node) { return resultSet.add(correctNode(node, nodes)); });
23272
+ // using filter to support IE11
23273
+ return nodes.filter(function (node) { return resultSet.has(node); });
23274
+ };
23275
+
23276
+ var pickFirstFocus = function (nodes) {
23277
+ if (nodes[0] && nodes.length > 1) {
23278
+ return correctNode(nodes[0], nodes);
23279
+ }
23280
+ return nodes[0];
23281
+ };
23282
+ var pickFocusable = function (nodes, node) {
23283
+ return nodes.indexOf(correctNode(node, nodes));
23284
+ };
23285
+
23286
+ var NEW_FOCUS = 'NEW_FOCUS';
23287
+ /**
23288
+ * Main solver for the "find next focus" question
23289
+ * @param innerNodes - used to control "return focus"
23290
+ * @param innerTabbables - used to control "autofocus"
23291
+ * @param outerNodes
23292
+ * @param activeElement
23293
+ * @param lastNode
23294
+ * @returns {number|string|undefined|*}
23295
+ */
23296
+ var newFocus = function (innerNodes, innerTabbables, outerNodes, activeElement, lastNode) {
23297
+ var cnt = innerNodes.length;
23298
+ var firstFocus = innerNodes[0];
23299
+ var lastFocus = innerNodes[cnt - 1];
23300
+ var isOnGuard = isGuard(activeElement);
23301
+ // focus is inside
23302
+ if (activeElement && innerNodes.indexOf(activeElement) >= 0) {
23303
+ return undefined;
23304
+ }
23305
+ var activeIndex = activeElement !== undefined ? outerNodes.indexOf(activeElement) : -1;
23306
+ var lastIndex = lastNode ? outerNodes.indexOf(lastNode) : activeIndex;
23307
+ var lastNodeInside = lastNode ? innerNodes.indexOf(lastNode) : -1;
23308
+ // no active focus (or focus is on the body)
23309
+ if (activeIndex === -1) {
23310
+ // known fallback
23311
+ if (lastNodeInside !== -1) {
23312
+ return lastNodeInside;
23313
+ }
23314
+ return NEW_FOCUS;
23315
+ }
23316
+ // new focus, nothing to calculate
23317
+ if (lastNodeInside === -1) {
23318
+ return NEW_FOCUS;
23319
+ }
23320
+ var indexDiff = activeIndex - lastIndex;
23321
+ var firstNodeIndex = outerNodes.indexOf(firstFocus);
23322
+ var lastNodeIndex = outerNodes.indexOf(lastFocus);
23323
+ var correctedNodes = correctNodes(outerNodes);
23324
+ var currentFocusableIndex = activeElement !== undefined ? correctedNodes.indexOf(activeElement) : -1;
23325
+ var previousFocusableIndex = lastNode ? correctedNodes.indexOf(lastNode) : currentFocusableIndex;
23326
+ var tabbableNodes = correctedNodes.filter(function (node) { return node.tabIndex >= 0; });
23327
+ var currentTabbableIndex = activeElement !== undefined ? tabbableNodes.indexOf(activeElement) : -1;
23328
+ var previousTabbableIndex = lastNode ? tabbableNodes.indexOf(lastNode) : currentTabbableIndex;
23329
+ var focusIndexDiff = currentTabbableIndex >= 0 && previousTabbableIndex >= 0
23330
+ ? // old/new are tabbables, measure distance in tabbable space
23331
+ previousTabbableIndex - currentTabbableIndex
23332
+ : // or else measure in focusable space
23333
+ previousFocusableIndex - currentFocusableIndex;
23334
+ // old focus
23335
+ if (!indexDiff && lastNodeInside >= 0) {
23336
+ return lastNodeInside;
23337
+ }
23338
+ // no tabbable elements, autofocus is not possible
23339
+ if (innerTabbables.length === 0) {
23340
+ // an edge case with no tabbable elements
23341
+ // return the last focusable one
23342
+ // with some probability this will prevent focus from cycling across the lock, but there is no tabbale elements to cycle to
23343
+ return lastNodeInside;
23344
+ }
23345
+ var returnFirstNode = pickFocusable(innerNodes, innerTabbables[0]);
23346
+ var returnLastNode = pickFocusable(innerNodes, innerTabbables[innerTabbables.length - 1]);
23347
+ // first element
23348
+ if (activeIndex <= firstNodeIndex && isOnGuard && Math.abs(indexDiff) > 1) {
23349
+ return returnLastNode;
23350
+ }
23351
+ // last element
23352
+ if (activeIndex >= lastNodeIndex && isOnGuard && Math.abs(indexDiff) > 1) {
23353
+ return returnFirstNode;
23354
+ }
23355
+ // jump out, but not on the guard
23356
+ if (indexDiff && Math.abs(focusIndexDiff) > 1) {
23357
+ return lastNodeInside;
23358
+ }
23359
+ // focus above lock
23360
+ if (activeIndex <= firstNodeIndex) {
23361
+ return returnLastNode;
23362
+ }
23363
+ // focus below lock
23364
+ if (activeIndex > lastNodeIndex) {
23365
+ return returnFirstNode;
23366
+ }
23367
+ // index is inside tab order, but outside Lock
23368
+ if (indexDiff) {
23369
+ if (Math.abs(indexDiff) > 1) {
23370
+ return lastNodeInside;
23371
+ }
23372
+ return (cnt + lastNodeInside + indexDiff) % cnt;
23373
+ }
23374
+ // do nothing
23375
+ return undefined;
23376
+ };
23377
+
23378
+ var findAutoFocused = function (autoFocusables) {
23379
+ return function (node) {
23380
+ var _a;
23381
+ var autofocus = (_a = getDataset(node)) === null || _a === void 0 ? void 0 : _a.autofocus;
23382
+ return (
23383
+ // @ts-expect-error
23384
+ node.autofocus ||
23385
+ //
23386
+ (autofocus !== undefined && autofocus !== 'false') ||
23387
+ //
23388
+ autoFocusables.indexOf(node) >= 0);
23389
+ };
23390
+ };
23391
+ var pickAutofocus = function (nodesIndexes, orderedNodes, groups) {
23392
+ var nodes = nodesIndexes.map(function (_a) {
23393
+ var node = _a.node;
23394
+ return node;
23395
+ });
23396
+ var autoFocusable = filterAutoFocusable(nodes.filter(findAutoFocused(groups)));
23397
+ if (autoFocusable && autoFocusable.length) {
23398
+ return pickFirstFocus(autoFocusable);
23399
+ }
23400
+ return pickFirstFocus(filterAutoFocusable(orderedNodes));
23401
+ };
23402
+
23403
+ var getParents = function (node, parents) {
23404
+ if (parents === void 0) { parents = []; }
23405
+ parents.push(node);
23406
+ if (node.parentNode) {
23407
+ getParents(node.parentNode.host || node.parentNode, parents);
23408
+ }
23409
+ return parents;
23410
+ };
23411
+ /**
23412
+ * finds a parent for both nodeA and nodeB
23413
+ * @param nodeA
23414
+ * @param nodeB
23415
+ * @returns {boolean|*}
23416
+ */
23417
+ var getCommonParent = function (nodeA, nodeB) {
23418
+ var parentsA = getParents(nodeA);
23419
+ var parentsB = getParents(nodeB);
23420
+ // tslint:disable-next-line:prefer-for-of
23421
+ for (var i = 0; i < parentsA.length; i += 1) {
23422
+ var currentParent = parentsA[i];
23423
+ if (parentsB.indexOf(currentParent) >= 0) {
23424
+ return currentParent;
23425
+ }
23426
+ }
23427
+ return false;
23428
+ };
23429
+ var getTopCommonParent = function (baseActiveElement, leftEntry, rightEntries) {
23430
+ var activeElements = asArray(baseActiveElement);
23431
+ var leftEntries = asArray(leftEntry);
23432
+ var activeElement = activeElements[0];
23433
+ var topCommon = false;
23434
+ leftEntries.filter(Boolean).forEach(function (entry) {
23435
+ topCommon = getCommonParent(topCommon || entry, entry) || topCommon;
23436
+ rightEntries.filter(Boolean).forEach(function (subEntry) {
23437
+ var common = getCommonParent(activeElement, subEntry);
23438
+ if (common) {
23439
+ if (!topCommon || contains(common, topCommon)) {
23440
+ topCommon = common;
23441
+ }
23442
+ else {
23443
+ topCommon = getCommonParent(common, topCommon);
23444
+ }
23445
+ }
23446
+ });
23447
+ });
23448
+ // TODO: add assert here?
23449
+ return topCommon;
23450
+ };
23451
+ /**
23452
+ * return list of nodes which are expected to be autofocused inside a given top nodes
23453
+ * @param entries
23454
+ * @param visibilityCache
23455
+ */
23456
+ var allParentAutofocusables = function (entries, visibilityCache) {
23457
+ return entries.reduce(function (acc, node) { return acc.concat(parentAutofocusables(node, visibilityCache)); }, []);
23458
+ };
23459
+
23460
+ var reorderNodes = function (srcNodes, dstNodes) {
23461
+ var remap = new Map();
23462
+ // no Set(dstNodes) for IE11 :(
23463
+ dstNodes.forEach(function (entity) { return remap.set(entity.node, entity); });
23464
+ // remap to dstNodes
23465
+ return srcNodes.map(function (node) { return remap.get(node); }).filter(isDefined);
23466
+ };
23467
+ /**
23468
+ * contains the main logic of the `focus-lock` package.
23469
+ *
23470
+ * ! you probably dont need this function !
23471
+ *
23472
+ * given top node(s) and the last active element returns the element to be focused next
23473
+ * @returns element which should be focused to move focus inside
23474
+ * @param topNode
23475
+ * @param lastNode
23476
+ */
23477
+ var focusSolver = function (topNode, lastNode) {
23478
+ var activeElement = getActiveElement(asArray(topNode).length > 0 ? document : getFirst(topNode).ownerDocument);
23479
+ var entries = getAllAffectedNodes(topNode).filter(isNotAGuard);
23480
+ var commonParent = getTopCommonParent(activeElement || topNode, topNode, entries);
23481
+ var visibilityCache = new Map();
23482
+ var anyFocusable = getFocusableNodes(entries, visibilityCache);
23483
+ var innerElements = anyFocusable.filter(function (_a) {
23484
+ var node = _a.node;
23485
+ return isNotAGuard(node);
23486
+ });
23487
+ if (!innerElements[0]) {
23488
+ return undefined;
23489
+ }
23490
+ var outerNodes = getFocusableNodes([commonParent], visibilityCache).map(function (_a) {
23491
+ var node = _a.node;
23492
+ return node;
23493
+ });
23494
+ var orderedInnerElements = reorderNodes(outerNodes, innerElements);
23495
+ // collect inner focusable and separately tabbables
23496
+ var innerFocusables = orderedInnerElements.map(function (_a) {
23497
+ var node = _a.node;
23498
+ return node;
23499
+ });
23500
+ var innerTabbable = orderedInnerElements.filter(function (_a) {
23501
+ var tabIndex = _a.tabIndex;
23502
+ return tabIndex >= 0;
23503
+ }).map(function (_a) {
23504
+ var node = _a.node;
23505
+ return node;
23506
+ });
23507
+ var newId = newFocus(innerFocusables, innerTabbable, outerNodes, activeElement, lastNode);
23508
+ if (newId === NEW_FOCUS) {
23509
+ var focusNode =
23510
+ // first try only tabbable, and the fallback to all focusable, as long as at least one element should be picked for focus
23511
+ pickAutofocus(anyFocusable, innerTabbable, allParentAutofocusables(entries, visibilityCache)) ||
23512
+ pickAutofocus(anyFocusable, innerFocusables, allParentAutofocusables(entries, visibilityCache));
23513
+ if (focusNode) {
23514
+ return { node: focusNode };
23515
+ }
23516
+ else {
23517
+ console.warn('focus-lock: cannot find any node to move focus into');
23518
+ return undefined;
23519
+ }
23520
+ }
23521
+ if (newId === undefined) {
23522
+ return newId;
23523
+ }
23524
+ return orderedInnerElements[newId];
23525
+ };
23526
+
23527
+ /**
23528
+ * traverses all related nodes (including groups) returning a list of all nodes(outer and internal) with meta information
23529
+ * This is low-level API!
23530
+ * @returns list of focusable elements inside a given top(!) node.
23531
+ * @see {@link getFocusableNodes} providing a simpler API
23532
+ */
23533
+ var expandFocusableNodes = function (topNode) {
23534
+ var entries = getAllAffectedNodes(topNode).filter(isNotAGuard);
23535
+ var commonParent = getTopCommonParent(topNode, topNode, entries);
23536
+ var outerNodes = orderByTabIndex(getFocusables([commonParent], true), true, true);
23537
+ var innerElements = getFocusables(entries, false);
23538
+ return outerNodes.map(function (_a) {
23539
+ var node = _a.node, index = _a.index;
23540
+ return ({
23541
+ node: node,
23542
+ index: index,
23543
+ lockItem: innerElements.indexOf(node) >= 0,
23544
+ guard: isGuard(node),
23545
+ });
23546
+ });
23547
+ };
23548
+
23549
+ var focusOn = function (target, focusOptions) {
23550
+ if (!target) {
23551
+ // not clear how, but is possible https://github.com/theKashey/focus-lock/issues/53
23552
+ return;
23553
+ }
23554
+ if ('focus' in target) {
23555
+ target.focus(focusOptions);
23556
+ }
23557
+ if ('contentWindow' in target && target.contentWindow) {
23558
+ target.contentWindow.focus();
23559
+ }
23560
+ };
23561
+
23562
+ var guardCount = 0;
23563
+ var lockDisabled = false;
23564
+ /**
23565
+ * The main functionality of the focus-lock package
23566
+ *
23567
+ * Contains focus at a given node.
23568
+ * The last focused element will help to determine which element(first or last) should be focused.
23569
+ * The found element will be focused.
23570
+ *
23571
+ * This is one time action (move), not a persistent focus-lock
23572
+ *
23573
+ * HTML markers (see {@link import('./constants').FOCUS_AUTO} constants) can control autofocus
23574
+ * @see {@link focusSolver} for the same functionality without autofocus
23575
+ */
23576
+ var moveFocusInside = function (topNode, lastNode, options) {
23577
+ if (options === void 0) { options = {}; }
23578
+ var focusable = focusSolver(topNode, lastNode);
23579
+ // global local side effect to countain recursive lock activation and resolve focus-fighting
23580
+ if (lockDisabled) {
23581
+ return;
23582
+ }
23583
+ if (focusable) {
23584
+ /** +FOCUS-FIGHTING prevention **/
23585
+ if (guardCount > 2) {
23586
+ // we have recursive entered back the lock activation
23587
+ console.error('FocusLock: focus-fighting detected. Only one focus management system could be active. ' +
23588
+ 'See https://github.com/theKashey/focus-lock/#focus-fighting');
23589
+ lockDisabled = true;
23590
+ setTimeout(function () {
23591
+ lockDisabled = false;
23592
+ }, 1);
23593
+ return;
23594
+ }
23595
+ guardCount++;
23596
+ focusOn(focusable.node, options.focusOptions);
23597
+ guardCount--;
23598
+ }
23599
+ };
23600
+
23601
+ function weakRef(value) {
23602
+ if (!value)
23603
+ return null;
23604
+ // #68 Safari 14.1 dont have it yet
23605
+ // FIXME: remove in 2025
23606
+ if (typeof WeakRef === 'undefined') {
23607
+ return function () { return value || null; };
23608
+ }
23609
+ var w = value ? new WeakRef(value) : null;
23610
+ return function () { return (w === null || w === void 0 ? void 0 : w.deref()) || null; };
23611
+ }
23612
+ var recordElementLocation = function (element) {
23613
+ if (!element) {
23614
+ return null;
23615
+ }
23616
+ var stack = [];
23617
+ var currentElement = element;
23618
+ while (currentElement && currentElement !== document.body) {
23619
+ stack.push({
23620
+ current: weakRef(currentElement),
23621
+ parent: weakRef(currentElement.parentElement),
23622
+ left: weakRef(currentElement.previousElementSibling),
23623
+ right: weakRef(currentElement.nextElementSibling),
23624
+ });
23625
+ currentElement = currentElement.parentElement;
23626
+ }
23627
+ return {
23628
+ element: weakRef(element),
23629
+ stack: stack,
23630
+ ownerDocument: element.ownerDocument,
23631
+ };
23632
+ };
23633
+ var restoreFocusTo = function (location) {
23634
+ var _a, _b, _c, _d, _e;
23635
+ if (!location) {
23636
+ return undefined;
23637
+ }
23638
+ var stack = location.stack, ownerDocument = location.ownerDocument;
23639
+ var visibilityCache = new Map();
23640
+ for (var _i = 0, stack_1 = stack; _i < stack_1.length; _i++) {
23641
+ var line = stack_1[_i];
23642
+ var parent_1 = (_a = line.parent) === null || _a === void 0 ? void 0 : _a.call(line);
23643
+ // is it still here?
23644
+ if (parent_1 && ownerDocument.contains(parent_1)) {
23645
+ var left = (_b = line.left) === null || _b === void 0 ? void 0 : _b.call(line);
23646
+ var savedCurrent = line.current();
23647
+ var current = parent_1.contains(savedCurrent) ? savedCurrent : undefined;
23648
+ var right = (_c = line.right) === null || _c === void 0 ? void 0 : _c.call(line);
23649
+ var focusables = getTabbableNodes([parent_1], visibilityCache);
23650
+ var aim =
23651
+ // that is element itself
23652
+ (_e = (_d = current !== null && current !== void 0 ? current :
23653
+ // or something in it's place
23654
+ left === null || left === void 0 ? void 0 : left.nextElementSibling) !== null && _d !== void 0 ? _d :
23655
+ // or somebody to the right, still close enough
23656
+ right) !== null && _e !== void 0 ? _e :
23657
+ // or somebody to the left, something?
23658
+ left;
23659
+ while (aim) {
23660
+ for (var _f = 0, focusables_1 = focusables; _f < focusables_1.length; _f++) {
23661
+ var focusable = focusables_1[_f];
23662
+ if (aim === null || aim === void 0 ? void 0 : aim.contains(focusable.node)) {
23663
+ return focusable.node;
23664
+ }
23665
+ }
23666
+ aim = aim.nextElementSibling;
23667
+ }
23668
+ if (focusables.length) {
23669
+ // if parent contains a focusable - move there
23670
+ return focusables[0].node;
23671
+ }
23672
+ }
23673
+ }
23674
+ // nothing matched
23675
+ return undefined;
23676
+ };
23677
+ /**
23678
+ * Captures the current focused element to restore focus as close as possible in the future
23679
+ * Handles situations where the focused element is removed from the DOM or no longer focusable
23680
+ * moving focus to the closest focusable element
23681
+ * @param targetElement - element where focus should be restored
23682
+ * @returns a function returning a new element to focus
23683
+ */
23684
+ var captureFocusRestore = function (targetElement) {
23685
+ var location = recordElementLocation(targetElement);
23686
+ return function () {
23687
+ return restoreFocusTo(location);
23688
+ };
23689
+ };
23690
+
23691
+ /**
23692
+ * for a given `element` in a given `scope` returns focusable siblings
23693
+ * @param element - base element
23694
+ * @param scope - common parent. Can be document, but better to narrow it down for performance reasons
23695
+ * @returns {prev,next} - references to a focusable element before and after
23696
+ * @returns undefined - if operation is not applicable
23697
+ */
23698
+ var getRelativeFocusable = function (element, scope, useTabbables) {
23699
+ if (!element || !scope) {
23700
+ console.error('no element or scope given');
23701
+ return {};
23702
+ }
23703
+ var shards = asArray(scope);
23704
+ if (shards.every(function (shard) { return !contains(shard, element); })) {
23705
+ console.error('Active element is not contained in the scope');
23706
+ return {};
23707
+ }
23708
+ var focusables = useTabbables
23709
+ ? getTabbableNodes(shards, new Map())
23710
+ : getFocusableNodes(shards, new Map());
23711
+ var current = focusables.findIndex(function (_a) {
23712
+ var node = _a.node;
23713
+ return node === element;
23714
+ });
23715
+ if (current === -1) {
23716
+ // an edge case, when anchor element is not found
23717
+ return undefined;
23718
+ }
23719
+ return {
23720
+ prev: focusables[current - 1],
23721
+ next: focusables[current + 1],
23722
+ first: focusables[0],
23723
+ last: focusables[focusables.length - 1],
23724
+ };
23725
+ };
23726
+ var getBoundary = function (shards, useTabbables) {
23727
+ var set = useTabbables
23728
+ ? getTabbableNodes(asArray(shards), new Map())
23729
+ : getFocusableNodes(asArray(shards), new Map());
23730
+ return {
23731
+ first: set[0],
23732
+ last: set[set.length - 1],
23733
+ };
23734
+ };
23735
+ var defaultOptions = function (options) {
23736
+ return Object.assign({
23737
+ scope: document.body,
23738
+ cycle: true,
23739
+ onlyTabbable: true,
23740
+ }, options);
23741
+ };
23742
+ var moveFocus = function (fromElement, options, cb) {
23743
+ if (options === void 0) { options = {}; }
23744
+ var newOptions = defaultOptions(options);
23745
+ var solution = getRelativeFocusable(fromElement, newOptions.scope, newOptions.onlyTabbable);
23746
+ if (!solution) {
23747
+ return;
23748
+ }
23749
+ var target = cb(solution, newOptions.cycle);
23750
+ if (target) {
23751
+ focusOn(target.node, newOptions.focusOptions);
23752
+ }
23753
+ };
23754
+ /**
23755
+ * focuses next element in the tab-order
23756
+ * @param fromElement - common parent to scope active element search or tab cycle order
23757
+ * @param {FocusNextOptions} [options] - focus options
23758
+ */
23759
+ var focusNextElement = function (fromElement, options) {
23760
+ if (options === void 0) { options = {}; }
23761
+ moveFocus(fromElement, options, function (_a, cycle) {
23762
+ var next = _a.next, first = _a.first;
23763
+ return next || (cycle && first);
23764
+ });
23765
+ };
23766
+ /**
23767
+ * focuses prev element in the tab order
23768
+ * @param fromElement - common parent to scope active element search or tab cycle order
23769
+ * @param {FocusNextOptions} [options] - focus options
23770
+ */
23771
+ var focusPrevElement = function (fromElement, options) {
23772
+ if (options === void 0) { options = {}; }
23773
+ moveFocus(fromElement, options, function (_a, cycle) {
23774
+ var prev = _a.prev, last = _a.last;
23775
+ return prev || (cycle && last);
23776
+ });
23777
+ };
23778
+ var pickBoundary = function (scope, options, what) {
23779
+ var _a;
23780
+ var boundary = getBoundary(scope, (_a = options.onlyTabbable) !== null && _a !== void 0 ? _a : true);
23781
+ var node = boundary[what];
23782
+ if (node) {
23783
+ focusOn(node.node, options.focusOptions);
23784
+ }
23785
+ };
23786
+ /**
23787
+ * focuses first element in the tab-order
23788
+ * @param {FocusNextOptions} options - focus options
23789
+ */
23790
+ var focusFirstElement = function (scope, options) {
23791
+ if (options === void 0) { options = {}; }
23792
+ pickBoundary(scope, options, 'first');
23793
+ };
23794
+ /**
23795
+ * focuses last element in the tab order
23796
+ * @param {FocusNextOptions} options - focus options
23797
+ */
23798
+ var focusLastElement = function (scope, options) {
23799
+ if (options === void 0) { options = {}; }
23800
+ pickBoundary(scope, options, 'last');
23801
+ };
23802
+
23803
+ function deferAction(action) {
23804
+ setTimeout(action, 1);
23805
+ }
23806
+ var extractRef = function extractRef(ref) {
23807
+ return ref && 'current' in ref ? ref.current : ref;
23808
+ };
23809
+
23810
+ var focusOnBody = function focusOnBody() {
23811
+ return document && document.activeElement === document.body;
23812
+ };
23813
+ var isFreeFocus = function isFreeFocus() {
23814
+ return focusOnBody() || focusIsHidden();
23815
+ };
23816
+ var lastActiveTrap = null;
23817
+ var lastActiveFocus = null;
23818
+ var tryRestoreFocus = function tryRestoreFocus() {
23819
+ return null;
23820
+ };
23821
+ var lastPortaledElement = null;
23822
+ var focusWasOutsideWindow = false;
23823
+ var windowFocused = false;
23824
+ var defaultWhitelist = function defaultWhitelist() {
23825
+ return true;
23826
+ };
23827
+ var focusWhitelisted = function focusWhitelisted(activeElement) {
23828
+ return (lastActiveTrap.whiteList || defaultWhitelist)(activeElement);
23829
+ };
23830
+ var recordPortal = function recordPortal(observerNode, portaledElement) {
23831
+ lastPortaledElement = {
23832
+ observerNode: observerNode,
23833
+ portaledElement: portaledElement
23834
+ };
23835
+ };
23836
+ var focusIsPortaledPair = function focusIsPortaledPair(element) {
23837
+ return lastPortaledElement && lastPortaledElement.portaledElement === element;
23838
+ };
23839
+ function autoGuard(startIndex, end, step, allNodes) {
23840
+ var lastGuard = null;
23841
+ var i = startIndex;
23842
+ do {
23843
+ var item = allNodes[i];
23844
+ if (item.guard) {
23845
+ if (item.node.dataset.focusAutoGuard) {
23846
+ lastGuard = item;
23847
+ }
23848
+ } else if (item.lockItem) {
23849
+ if (i !== startIndex) {
23850
+ return;
23851
+ }
23852
+ lastGuard = null;
23853
+ } else {
23854
+ break;
23855
+ }
23856
+ } while ((i += step) !== end);
23857
+ if (lastGuard) {
23858
+ lastGuard.node.tabIndex = 0;
23859
+ }
23860
+ }
23861
+ var focusWasOutside = function focusWasOutside(crossFrameOption) {
23862
+ if (crossFrameOption) {
23863
+ return Boolean(focusWasOutsideWindow);
23864
+ }
23865
+ return focusWasOutsideWindow === 'meanwhile';
23866
+ };
23867
+ var checkInHost = function checkInHost(check, el, boundary) {
23868
+ return el && (el.host === check && (!el.activeElement || boundary.contains(el.activeElement)) || el.parentNode && checkInHost(check, el.parentNode, boundary));
23869
+ };
23870
+ var withinHost = function withinHost(activeElement, workingArea) {
23871
+ return workingArea.some(function (area) {
23872
+ return checkInHost(activeElement, area, area);
23873
+ });
23874
+ };
23875
+ var getNodeFocusables = function getNodeFocusables(nodes) {
23876
+ return getFocusableNodes(nodes, new Map());
23877
+ };
23878
+ var isNotFocusable = function isNotFocusable(node) {
23879
+ return !getNodeFocusables([node.parentNode]).some(function (el) {
23880
+ return el.node === node;
23881
+ });
23882
+ };
23883
+ var activateTrap = function activateTrap() {
23884
+ var result = false;
23885
+ if (lastActiveTrap) {
23886
+ var _lastActiveTrap = lastActiveTrap,
23887
+ observed = _lastActiveTrap.observed,
23888
+ persistentFocus = _lastActiveTrap.persistentFocus,
23889
+ autoFocus = _lastActiveTrap.autoFocus,
23890
+ shards = _lastActiveTrap.shards,
23891
+ crossFrame = _lastActiveTrap.crossFrame,
23892
+ focusOptions = _lastActiveTrap.focusOptions,
23893
+ noFocusGuards = _lastActiveTrap.noFocusGuards;
23894
+ var workingNode = observed || lastPortaledElement && lastPortaledElement.portaledElement;
23895
+ if (focusOnBody() && lastActiveFocus && lastActiveFocus !== document.body) {
23896
+ if (!document.body.contains(lastActiveFocus) || isNotFocusable(lastActiveFocus)) {
23897
+ var newTarget = tryRestoreFocus();
23898
+ if (newTarget) {
23899
+ newTarget.focus();
23900
+ }
23901
+ }
23902
+ }
23903
+ var activeElement = document && document.activeElement;
23904
+ if (workingNode) {
23905
+ var workingArea = [workingNode].concat(shards.map(extractRef).filter(Boolean));
23906
+ var shouldForceRestoreFocus = function shouldForceRestoreFocus() {
23907
+ if (!focusWasOutside(crossFrame) || !noFocusGuards || !lastActiveFocus || windowFocused) {
23908
+ return false;
23909
+ }
23910
+ var nodes = getNodeFocusables(workingArea);
23911
+ var lastIndex = nodes.findIndex(function (_ref) {
23912
+ var node = _ref.node;
23913
+ return node === lastActiveFocus;
23914
+ });
23915
+ return lastIndex === 0 || lastIndex === nodes.length - 1;
23916
+ };
23917
+ if (!activeElement || focusWhitelisted(activeElement)) {
23918
+ if (persistentFocus || shouldForceRestoreFocus() || !isFreeFocus() || !lastActiveFocus && autoFocus) {
23919
+ if (workingNode && !(focusInside(workingArea) || activeElement && withinHost(activeElement, workingArea) || focusIsPortaledPair(activeElement))) {
23920
+ if (document && !lastActiveFocus && activeElement && !autoFocus) {
23921
+ if (activeElement.blur) {
23922
+ activeElement.blur();
23923
+ }
23924
+ document.body.focus();
23925
+ } else {
23926
+ result = moveFocusInside(workingArea, lastActiveFocus, {
23927
+ focusOptions: focusOptions
23928
+ });
23929
+ lastPortaledElement = {};
23930
+ }
23931
+ }
23932
+ lastActiveFocus = document && document.activeElement;
23933
+ if (lastActiveFocus !== document.body) {
23934
+ tryRestoreFocus = captureFocusRestore(lastActiveFocus);
23935
+ }
23936
+ focusWasOutsideWindow = false;
23937
+ }
23938
+ }
23939
+ if (document && activeElement !== document.activeElement && document.querySelector('[data-focus-auto-guard]')) {
23940
+ var newActiveElement = document && document.activeElement;
23941
+ var allNodes = expandFocusableNodes(workingArea);
23942
+ var focusedIndex = allNodes.map(function (_ref2) {
23943
+ var node = _ref2.node;
23944
+ return node;
23945
+ }).indexOf(newActiveElement);
23946
+ if (focusedIndex > -1) {
23947
+ allNodes.filter(function (_ref3) {
23948
+ var guard = _ref3.guard,
23949
+ node = _ref3.node;
23950
+ return guard && node.dataset.focusAutoGuard;
23951
+ }).forEach(function (_ref4) {
23952
+ var node = _ref4.node;
23953
+ return node.removeAttribute('tabIndex');
23954
+ });
23955
+ autoGuard(focusedIndex, allNodes.length, +1, allNodes);
23956
+ autoGuard(focusedIndex, -1, -1, allNodes);
23957
+ }
23958
+ }
23959
+ }
23960
+ }
23961
+ return result;
23962
+ };
23963
+ var onTrap = function onTrap(event) {
23964
+ if (activateTrap() && event) {
23965
+ event.stopPropagation();
23966
+ event.preventDefault();
23967
+ }
23968
+ };
23969
+ var onBlur = function onBlur() {
23970
+ return deferAction(activateTrap);
23971
+ };
23972
+ var onFocus = function onFocus(event) {
23973
+ var source = event.target;
23974
+ var currentNode = event.currentTarget;
23975
+ if (!currentNode.contains(source)) {
23976
+ recordPortal(currentNode, source);
23977
+ }
23978
+ };
23979
+ var FocusWatcher = function FocusWatcher() {
23980
+ return null;
23981
+ };
23982
+ process.env.NODE_ENV !== "production" ? {
23983
+ children: PropTypes.node.isRequired
23984
+ } : {};
23985
+ var onWindowFocus = function onWindowFocus() {
23986
+ windowFocused = true;
23987
+ };
23988
+ var onWindowBlur = function onWindowBlur() {
23989
+ windowFocused = false;
23990
+ focusWasOutsideWindow = 'just';
23991
+ deferAction(function () {
23992
+ focusWasOutsideWindow = 'meanwhile';
23993
+ });
23994
+ };
23995
+ var attachHandler = function attachHandler() {
23996
+ document.addEventListener('focusin', onTrap);
23997
+ document.addEventListener('focusout', onBlur);
23998
+ window.addEventListener('focus', onWindowFocus);
23999
+ window.addEventListener('blur', onWindowBlur);
24000
+ };
24001
+ var detachHandler = function detachHandler() {
24002
+ document.removeEventListener('focusin', onTrap);
24003
+ document.removeEventListener('focusout', onBlur);
24004
+ window.removeEventListener('focus', onWindowFocus);
24005
+ window.removeEventListener('blur', onWindowBlur);
24006
+ };
24007
+ function reducePropsToState(propsList) {
24008
+ return propsList.filter(function (_ref6) {
24009
+ var disabled = _ref6.disabled;
24010
+ return !disabled;
24011
+ });
24012
+ }
24013
+ var focusLockAPI = {
24014
+ moveFocusInside: moveFocusInside,
24015
+ focusInside: focusInside,
24016
+ focusNextElement: focusNextElement,
24017
+ focusPrevElement: focusPrevElement,
24018
+ focusFirstElement: focusFirstElement,
24019
+ focusLastElement: focusLastElement,
24020
+ captureFocusRestore: captureFocusRestore
24021
+ };
24022
+ function handleStateChangeOnClient(traps) {
24023
+ var trap = traps.slice(-1)[0];
24024
+ if (trap && !lastActiveTrap) {
24025
+ attachHandler();
24026
+ }
24027
+ var lastTrap = lastActiveTrap;
24028
+ var sameTrap = lastTrap && trap && trap.id === lastTrap.id;
24029
+ lastActiveTrap = trap;
24030
+ if (lastTrap && !sameTrap) {
24031
+ lastTrap.onDeactivation();
24032
+ if (!traps.filter(function (_ref7) {
24033
+ var id = _ref7.id;
24034
+ return id === lastTrap.id;
24035
+ }).length) {
24036
+ lastTrap.returnFocus(!trap);
24037
+ }
24038
+ }
24039
+ if (trap) {
24040
+ lastActiveFocus = null;
24041
+ if (!sameTrap || lastTrap.observed !== trap.observed) {
24042
+ trap.onActivation(focusLockAPI);
24043
+ }
24044
+ activateTrap();
24045
+ deferAction(activateTrap);
24046
+ } else {
24047
+ detachHandler();
24048
+ lastActiveFocus = null;
24049
+ }
24050
+ }
24051
+ mediumFocus.assignSyncMedium(onFocus);
24052
+ mediumBlur.assignMedium(onBlur);
24053
+ mediumEffect.assignMedium(function (cb) {
24054
+ return cb(focusLockAPI);
24055
+ });
24056
+ var FocusTrap = withSideEffect(reducePropsToState, handleStateChangeOnClient)(FocusWatcher);
24057
+
24058
+ var FocusLockCombination = /*#__PURE__*/React.forwardRef(function FocusLockUICombination(props, ref) {
24059
+ return /*#__PURE__*/React__default["default"].createElement(FocusLockUI, _extends$q({
24060
+ sideCar: FocusTrap,
24061
+ ref: ref
24062
+ }, props));
24063
+ });
24064
+ var _ref$1 = FocusLockUI.propTypes || {};
24065
+ _ref$1.sideCar;
24066
+ var propTypes = _objectWithoutPropertiesLoose(_ref$1, ["sideCar"]);
24067
+ FocusLockCombination.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
24068
+ var FocusLock = FocusLockCombination;
24069
+
24070
+ var drawerContainer$1 = function drawerContainer(_ref, width) {
24071
+ var drawer = _ref.drawer;
24072
+ return /*#__PURE__*/ /*#__PURE__*/css$2("position:fixed;top:0;left:0;height:100%;width:100%;z-index:1000;.dialog{position:absolute;height:100%;width:100%;max-width:", width, ";display:flex;flex-direction:column;background-color:", drawer.dialog, ";padding:0;border:0;&.placement-left{left:0;right:auto;}&.placement-right{left:auto;right:0;}}" + (process.env.NODE_ENV === "production" ? "" : ";label:drawerContainer;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHWSIsImZpbGUiOiJzdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MsIFNlcmlhbGl6ZWRTdHlsZXMsIFRoZW1lIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XG5cbmV4cG9ydCBjb25zdCBkcmF3ZXJDb250YWluZXIgPSAoeyBkcmF3ZXIgfTogVGhlbWUsIHdpZHRoOiBzdHJpbmcpOiBTZXJpYWxpemVkU3R5bGVzID0+IHtcbiAgcmV0dXJuIGNzc2BcbiAgICBwb3NpdGlvbjogZml4ZWQ7XG4gICAgdG9wOiAwO1xuICAgIGxlZnQ6IDA7XG4gICAgaGVpZ2h0OiAxMDAlO1xuICAgIHdpZHRoOiAxMDAlO1xuICAgIHotaW5kZXg6IDEwMDA7XG5cbiAgICAuZGlhbG9nIHtcbiAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICAgIGhlaWdodDogMTAwJTtcbiAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgbWF4LXdpZHRoOiAke3dpZHRofTtcbiAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgICAgYmFja2dyb3VuZC1jb2xvcjogJHtkcmF3ZXIuZGlhbG9nfTtcbiAgICAgIHBhZGRpbmc6IDA7XG4gICAgICBib3JkZXI6IDA7XG5cbiAgICAgICYucGxhY2VtZW50LWxlZnQge1xuICAgICAgICBsZWZ0OiAwO1xuICAgICAgICByaWdodDogYXV0bztcbiAgICAgIH1cblxuICAgICAgJi5wbGFjZW1lbnQtcmlnaHQge1xuICAgICAgICBsZWZ0OiBhdXRvO1xuICAgICAgICByaWdodDogMDtcbiAgICAgIH1cbiAgICB9XG4gIGA7XG59O1xuIl19 */", process.env.NODE_ENV === "production" ? "" : ";label:drawerContainer;");
24073
+ };
24074
+
24075
+ function _EMOTION_STRINGIFIED_CSS_ERROR__$6() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
24076
+ var drawerHeader = function drawerHeader(_ref, _ref2) {
24077
+ var drawer = _ref.drawer,
24078
+ typeScaleSizes = _ref.typeScaleSizes;
24079
+ var noGutters = _ref2.noGutters;
24080
+ return /*#__PURE__*/ /*#__PURE__*/css$2("display:flex;justify-content:space-between;align-items:center;padding-inline:", noGutters ? 0 : "2rem 0", ";padding-block:", noGutters ? 0 : "1rem", ";height:100%;max-height:4.5rem;", mq["sm"], "{padding:", noGutters ? 0 : "1rem 2rem", ";}button{font-size:", typeScaleSizes.md, "rem;display:inline-flex;background-color:transparent;color:", drawer.closeBtnColor.base, ";padding:0 1rem;border:0;cursor:pointer;&:hover,&:focus{color:", drawer.closeBtnColor.hover, ";}}" + (process.env.NODE_ENV === "production" ? "" : ";label:drawerHeader;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPWSIsImZpbGUiOiJzdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MsIFNlcmlhbGl6ZWRTdHlsZXMsIFRoZW1lIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XG5pbXBvcnQgeyBtcSB9IGZyb20gXCJAdGhlbWUvdXRpbHMvYnJlYWtwb2ludHNcIjtcblxuZXhwb3J0IGNvbnN0IGRyYXdlckhlYWRlciA9IChcbiAgeyBkcmF3ZXIsIHR5cGVTY2FsZVNpemVzIH06IFRoZW1lLFxuICB7IG5vR3V0dGVycyB9OiB7IG5vR3V0dGVyczogYm9vbGVhbiB9LFxuKTogU2VyaWFsaXplZFN0eWxlcyA9PiB7XG4gIHJldHVybiBjc3NgXG4gICAgZGlzcGxheTogZmxleDtcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICBwYWRkaW5nLWlubGluZTogJHtub0d1dHRlcnMgPyAwIDogXCIycmVtIDBcIn07XG4gICAgcGFkZGluZy1ibG9jazogJHtub0d1dHRlcnMgPyAwIDogXCIxcmVtXCJ9O1xuICAgIGhlaWdodDogMTAwJTtcbiAgICBtYXgtaGVpZ2h0OiA0LjVyZW07XG5cbiAgICAke21xW1wic21cIl19IHtcbiAgICAgIHBhZGRpbmc6ICR7bm9HdXR0ZXJzID8gMCA6IFwiMXJlbSAycmVtXCJ9O1xuICAgIH1cblxuICAgIGJ1dHRvbiB7XG4gICAgICBmb250LXNpemU6ICR7dHlwZVNjYWxlU2l6ZXMubWR9cmVtO1xuICAgICAgZGlzcGxheTogaW5saW5lLWZsZXg7XG4gICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB0cmFuc3BhcmVudDtcbiAgICAgIGNvbG9yOiAke2RyYXdlci5jbG9zZUJ0bkNvbG9yLmJhc2V9O1xuICAgICAgcGFkZGluZzogMCAxcmVtO1xuICAgICAgYm9yZGVyOiAwO1xuICAgICAgY3Vyc29yOiBwb2ludGVyO1xuXG4gICAgICAmOmhvdmVyLFxuICAgICAgJjpmb2N1cyB7XG4gICAgICAgIGNvbG9yOiAke2RyYXdlci5jbG9zZUJ0bkNvbG9yLmhvdmVyfTtcbiAgICAgIH1cbiAgICB9XG4gIGA7XG59O1xuXG5leHBvcnQgY29uc3QgZHJhd2VyQm9keSA9IGNzc2BcbiAgaGVpZ2h0OiAxMDAlO1xuICBvdmVyZmxvdy15OiBhdXRvO1xuYDtcblxuZXhwb3J0IGNvbnN0IG1hc2tDb250YWluZXIgPSBjc3NgXG4gIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgdG9wOiAwO1xuICBsZWZ0OiAwO1xuICBoZWlnaHQ6IDEwMCU7XG4gIHdpZHRoOiAxMDAlO1xuICBiYWNrZ3JvdW5kLWNvbG9yOiByZ2JhKDAsIDAsIDAsIDAuNDUpO1xuYDtcblxuZXhwb3J0IGNvbnN0IGZvb3RlckNvbnRhaW5lciA9IGNzc2BcbiAgcGFkZGluZzogMXJlbTtcblxuICAke21xW1wibWRcIl19IHtcbiAgICBwYWRkaW5nOiAycmVtO1xuICB9XG5gO1xuIl19 */", process.env.NODE_ENV === "production" ? "" : ";label:drawerHeader;");
24081
+ };
24082
+ var drawerBody = process.env.NODE_ENV === "production" ? {
24083
+ name: "afms4i",
24084
+ styles: "height:100%;overflow-y:auto"
24085
+ } : {
24086
+ name: "1vbxgux-drawerBody",
24087
+ styles: "height:100%;overflow-y:auto;label:drawerBody;",
24088
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFxQzZCIiwiZmlsZSI6InN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcywgU2VyaWFsaXplZFN0eWxlcywgVGhlbWUgfSBmcm9tIFwiQGVtb3Rpb24vcmVhY3RcIjtcbmltcG9ydCB7IG1xIH0gZnJvbSBcIkB0aGVtZS91dGlscy9icmVha3BvaW50c1wiO1xuXG5leHBvcnQgY29uc3QgZHJhd2VySGVhZGVyID0gKFxuICB7IGRyYXdlciwgdHlwZVNjYWxlU2l6ZXMgfTogVGhlbWUsXG4gIHsgbm9HdXR0ZXJzIH06IHsgbm9HdXR0ZXJzOiBib29sZWFuIH0sXG4pOiBTZXJpYWxpemVkU3R5bGVzID0+IHtcbiAgcmV0dXJuIGNzc2BcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgIHBhZGRpbmctaW5saW5lOiAke25vR3V0dGVycyA/IDAgOiBcIjJyZW0gMFwifTtcbiAgICBwYWRkaW5nLWJsb2NrOiAke25vR3V0dGVycyA/IDAgOiBcIjFyZW1cIn07XG4gICAgaGVpZ2h0OiAxMDAlO1xuICAgIG1heC1oZWlnaHQ6IDQuNXJlbTtcblxuICAgICR7bXFbXCJzbVwiXX0ge1xuICAgICAgcGFkZGluZzogJHtub0d1dHRlcnMgPyAwIDogXCIxcmVtIDJyZW1cIn07XG4gICAgfVxuXG4gICAgYnV0dG9uIHtcbiAgICAgIGZvbnQtc2l6ZTogJHt0eXBlU2NhbGVTaXplcy5tZH1yZW07XG4gICAgICBkaXNwbGF5OiBpbmxpbmUtZmxleDtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50O1xuICAgICAgY29sb3I6ICR7ZHJhd2VyLmNsb3NlQnRuQ29sb3IuYmFzZX07XG4gICAgICBwYWRkaW5nOiAwIDFyZW07XG4gICAgICBib3JkZXI6IDA7XG4gICAgICBjdXJzb3I6IHBvaW50ZXI7XG5cbiAgICAgICY6aG92ZXIsXG4gICAgICAmOmZvY3VzIHtcbiAgICAgICAgY29sb3I6ICR7ZHJhd2VyLmNsb3NlQnRuQ29sb3IuaG92ZXJ9O1xuICAgICAgfVxuICAgIH1cbiAgYDtcbn07XG5cbmV4cG9ydCBjb25zdCBkcmF3ZXJCb2R5ID0gY3NzYFxuICBoZWlnaHQ6IDEwMCU7XG4gIG92ZXJmbG93LXk6IGF1dG87XG5gO1xuXG5leHBvcnQgY29uc3QgbWFza0NvbnRhaW5lciA9IGNzc2BcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB0b3A6IDA7XG4gIGxlZnQ6IDA7XG4gIGhlaWdodDogMTAwJTtcbiAgd2lkdGg6IDEwMCU7XG4gIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMCwgMCwgMCwgMC40NSk7XG5gO1xuXG5leHBvcnQgY29uc3QgZm9vdGVyQ29udGFpbmVyID0gY3NzYFxuICBwYWRkaW5nOiAxcmVtO1xuXG4gICR7bXFbXCJtZFwiXX0ge1xuICAgIHBhZGRpbmc6IDJyZW07XG4gIH1cbmA7XG4iXX0= */",
24089
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
24090
+ };
24091
+ var maskContainer = process.env.NODE_ENV === "production" ? {
24092
+ name: "jvyqu8",
24093
+ styles: "position:absolute;top:0;left:0;height:100%;width:100%;background-color:rgba(0, 0, 0, 0.45)"
24094
+ } : {
24095
+ name: "tigpv4-maskContainer",
24096
+ styles: "position:absolute;top:0;left:0;height:100%;width:100%;background-color:rgba(0, 0, 0, 0.45);label:maskContainer;",
24097
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEwQ2dDIiwiZmlsZSI6InN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcywgU2VyaWFsaXplZFN0eWxlcywgVGhlbWUgfSBmcm9tIFwiQGVtb3Rpb24vcmVhY3RcIjtcbmltcG9ydCB7IG1xIH0gZnJvbSBcIkB0aGVtZS91dGlscy9icmVha3BvaW50c1wiO1xuXG5leHBvcnQgY29uc3QgZHJhd2VySGVhZGVyID0gKFxuICB7IGRyYXdlciwgdHlwZVNjYWxlU2l6ZXMgfTogVGhlbWUsXG4gIHsgbm9HdXR0ZXJzIH06IHsgbm9HdXR0ZXJzOiBib29sZWFuIH0sXG4pOiBTZXJpYWxpemVkU3R5bGVzID0+IHtcbiAgcmV0dXJuIGNzc2BcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgIHBhZGRpbmctaW5saW5lOiAke25vR3V0dGVycyA/IDAgOiBcIjJyZW0gMFwifTtcbiAgICBwYWRkaW5nLWJsb2NrOiAke25vR3V0dGVycyA/IDAgOiBcIjFyZW1cIn07XG4gICAgaGVpZ2h0OiAxMDAlO1xuICAgIG1heC1oZWlnaHQ6IDQuNXJlbTtcblxuICAgICR7bXFbXCJzbVwiXX0ge1xuICAgICAgcGFkZGluZzogJHtub0d1dHRlcnMgPyAwIDogXCIxcmVtIDJyZW1cIn07XG4gICAgfVxuXG4gICAgYnV0dG9uIHtcbiAgICAgIGZvbnQtc2l6ZTogJHt0eXBlU2NhbGVTaXplcy5tZH1yZW07XG4gICAgICBkaXNwbGF5OiBpbmxpbmUtZmxleDtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50O1xuICAgICAgY29sb3I6ICR7ZHJhd2VyLmNsb3NlQnRuQ29sb3IuYmFzZX07XG4gICAgICBwYWRkaW5nOiAwIDFyZW07XG4gICAgICBib3JkZXI6IDA7XG4gICAgICBjdXJzb3I6IHBvaW50ZXI7XG5cbiAgICAgICY6aG92ZXIsXG4gICAgICAmOmZvY3VzIHtcbiAgICAgICAgY29sb3I6ICR7ZHJhd2VyLmNsb3NlQnRuQ29sb3IuaG92ZXJ9O1xuICAgICAgfVxuICAgIH1cbiAgYDtcbn07XG5cbmV4cG9ydCBjb25zdCBkcmF3ZXJCb2R5ID0gY3NzYFxuICBoZWlnaHQ6IDEwMCU7XG4gIG92ZXJmbG93LXk6IGF1dG87XG5gO1xuXG5leHBvcnQgY29uc3QgbWFza0NvbnRhaW5lciA9IGNzc2BcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB0b3A6IDA7XG4gIGxlZnQ6IDA7XG4gIGhlaWdodDogMTAwJTtcbiAgd2lkdGg6IDEwMCU7XG4gIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMCwgMCwgMCwgMC40NSk7XG5gO1xuXG5leHBvcnQgY29uc3QgZm9vdGVyQ29udGFpbmVyID0gY3NzYFxuICBwYWRkaW5nOiAxcmVtO1xuXG4gICR7bXFbXCJtZFwiXX0ge1xuICAgIHBhZGRpbmc6IDJyZW07XG4gIH1cbmA7XG4iXX0= */",
24098
+ toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
24099
+ };
24100
+ var footerContainer =
24101
+ /*#__PURE__*/
24102
+ /*#__PURE__*/
24103
+ css$2("padding:1rem;", mq["md"], "{padding:2rem;}" + (process.env.NODE_ENV === "production" ? "" : ";label:footerContainer;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFtRGtDIiwiZmlsZSI6InN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcywgU2VyaWFsaXplZFN0eWxlcywgVGhlbWUgfSBmcm9tIFwiQGVtb3Rpb24vcmVhY3RcIjtcbmltcG9ydCB7IG1xIH0gZnJvbSBcIkB0aGVtZS91dGlscy9icmVha3BvaW50c1wiO1xuXG5leHBvcnQgY29uc3QgZHJhd2VySGVhZGVyID0gKFxuICB7IGRyYXdlciwgdHlwZVNjYWxlU2l6ZXMgfTogVGhlbWUsXG4gIHsgbm9HdXR0ZXJzIH06IHsgbm9HdXR0ZXJzOiBib29sZWFuIH0sXG4pOiBTZXJpYWxpemVkU3R5bGVzID0+IHtcbiAgcmV0dXJuIGNzc2BcbiAgICBkaXNwbGF5OiBmbGV4O1xuICAgIGp1c3RpZnktY29udGVudDogc3BhY2UtYmV0d2VlbjtcbiAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgIHBhZGRpbmctaW5saW5lOiAke25vR3V0dGVycyA/IDAgOiBcIjJyZW0gMFwifTtcbiAgICBwYWRkaW5nLWJsb2NrOiAke25vR3V0dGVycyA/IDAgOiBcIjFyZW1cIn07XG4gICAgaGVpZ2h0OiAxMDAlO1xuICAgIG1heC1oZWlnaHQ6IDQuNXJlbTtcblxuICAgICR7bXFbXCJzbVwiXX0ge1xuICAgICAgcGFkZGluZzogJHtub0d1dHRlcnMgPyAwIDogXCIxcmVtIDJyZW1cIn07XG4gICAgfVxuXG4gICAgYnV0dG9uIHtcbiAgICAgIGZvbnQtc2l6ZTogJHt0eXBlU2NhbGVTaXplcy5tZH1yZW07XG4gICAgICBkaXNwbGF5OiBpbmxpbmUtZmxleDtcbiAgICAgIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50O1xuICAgICAgY29sb3I6ICR7ZHJhd2VyLmNsb3NlQnRuQ29sb3IuYmFzZX07XG4gICAgICBwYWRkaW5nOiAwIDFyZW07XG4gICAgICBib3JkZXI6IDA7XG4gICAgICBjdXJzb3I6IHBvaW50ZXI7XG5cbiAgICAgICY6aG92ZXIsXG4gICAgICAmOmZvY3VzIHtcbiAgICAgICAgY29sb3I6ICR7ZHJhd2VyLmNsb3NlQnRuQ29sb3IuaG92ZXJ9O1xuICAgICAgfVxuICAgIH1cbiAgYDtcbn07XG5cbmV4cG9ydCBjb25zdCBkcmF3ZXJCb2R5ID0gY3NzYFxuICBoZWlnaHQ6IDEwMCU7XG4gIG92ZXJmbG93LXk6IGF1dG87XG5gO1xuXG5leHBvcnQgY29uc3QgbWFza0NvbnRhaW5lciA9IGNzc2BcbiAgcG9zaXRpb246IGFic29sdXRlO1xuICB0b3A6IDA7XG4gIGxlZnQ6IDA7XG4gIGhlaWdodDogMTAwJTtcbiAgd2lkdGg6IDEwMCU7XG4gIGJhY2tncm91bmQtY29sb3I6IHJnYmEoMCwgMCwgMCwgMC40NSk7XG5gO1xuXG5leHBvcnQgY29uc3QgZm9vdGVyQ29udGFpbmVyID0gY3NzYFxuICBwYWRkaW5nOiAxcmVtO1xuXG4gICR7bXFbXCJtZFwiXX0ge1xuICAgIHBhZGRpbmc6IDJyZW07XG4gIH1cbmA7XG4iXX0= */", process.env.NODE_ENV === "production" ? "" : ";label:footerContainer;");
24104
+
24105
+ var Header$1 = function Header(_ref) {
24106
+ var onClose = _ref.onClose,
24107
+ _ref$noGutters = _ref.noGutters,
24108
+ noGutters = _ref$noGutters === void 0 ? false : _ref$noGutters,
24109
+ children = _ref.children;
24110
+ var title = typeof children === "string" ? jsx(Heading$1, null, children) : children;
24111
+ return jsx("header", {
24112
+ id: "drawer-title",
24113
+ "data-testid": "drawer-header",
24114
+ css: function css(theme) {
24115
+ return drawerHeader(theme, {
24116
+ noGutters: noGutters
24117
+ });
24118
+ }
24119
+ }, title, Boolean(onClose) && jsx("button", {
24120
+ type: "button",
24121
+ "aria-label": "Close drawer",
24122
+ onClick: onClose
24123
+ }, jsx(SvgClose, {
24124
+ height: 24
24125
+ })));
24126
+ };
24127
+
24128
+ var Body$2 = function Body(_ref) {
24129
+ var children = _ref.children;
24130
+ return jsx("div", {
24131
+ css: drawerBody
24132
+ }, children);
24133
+ };
24134
+
24135
+ var maskVariants = {
24136
+ hidden: {
24137
+ opacity: 0
24138
+ },
24139
+ expanded: {
24140
+ opacity: 1
24141
+ }
24142
+ };
24143
+ var Mask = function Mask(_ref) {
24144
+ var onClose = _ref.onClose;
24145
+ return jsx(m.div, {
24146
+ css: maskContainer,
24147
+ onClick: onClose,
24148
+ initial: "hidden",
24149
+ animate: "expanded",
24150
+ exit: "hidden",
24151
+ variants: maskVariants,
24152
+ "data-testid": "mask"
24153
+ });
24154
+ };
24155
+
24156
+ var Footer = function Footer(_ref) {
24157
+ var children = _ref.children;
24158
+ return jsx("footer", {
24159
+ "data-testid": "drawer-footer",
24160
+ css: footerContainer
24161
+ }, children);
24162
+ };
24163
+
24164
+ var _excluded$s = ["isOpen", "onClose", "placement", "showMask", "width", "dialogStyles", "dialogClassName", "children"];
24165
+ var dialogVariants = {
24166
+ initial: function initial(_ref) {
24167
+ var placement = _ref.placement,
24168
+ width = _ref.width;
24169
+ return {
24170
+ opacity: 0,
24171
+ x: placement === "right" ? "100%" : "-".concat(width),
24172
+ transition: {
24173
+ type: "tween"
24174
+ }
24175
+ };
24176
+ },
24177
+ expanded: function expanded() {
24178
+ return {
24179
+ opacity: 1,
24180
+ x: 0,
24181
+ transition: {
24182
+ type: "tween"
24183
+ }
24184
+ };
24185
+ }
24186
+ };
24187
+ var DRAWER_ROOT = "drawerRoot";
24188
+ var DrawerRoot = function DrawerRoot() {
24189
+ return jsx("div", {
24190
+ id: DRAWER_ROOT
24191
+ });
24192
+ };
24193
+ var Drawer$1 = function Drawer(props) {
24194
+ var isOpen = props.isOpen,
24195
+ onClose = props.onClose,
24196
+ _props$placement = props.placement,
24197
+ placement = _props$placement === void 0 ? "left" : _props$placement,
24198
+ _props$showMask = props.showMask,
24199
+ showMask = _props$showMask === void 0 ? true : _props$showMask,
24200
+ _props$width = props.width,
24201
+ width = _props$width === void 0 ? "31.5rem" : _props$width,
24202
+ dialogStyles = props.dialogStyles,
24203
+ dialogClassName = props.dialogClassName,
24204
+ children = props.children,
24205
+ rest = _objectWithoutProperties$1(props, _excluded$s);
24206
+ var clonedChildren = React.Children.map(children, function (child) {
24207
+ var _props;
24208
+ return child && /*#__PURE__*/React.cloneElement(child, {
24209
+ onClose: ((_props = child.props) === null || _props === void 0 ? void 0 : _props.closable) && onClose
24210
+ });
24211
+ });
24212
+ var drawerEl = document.getElementById(DRAWER_ROOT);
24213
+ var dialogClassNames = classNames$1(_defineProperty$1({
24214
+ dialog: true,
24215
+ "placement-left": placement === "left",
24216
+ "placement-right": placement === "right"
24217
+ }, dialogClassName !== null && dialogClassName !== void 0 ? dialogClassName : "", dialogClassName));
24218
+ React.useEffect(function () {
24219
+ var handleEscape = function handleEscape(event) {
24220
+ if (event.key === "Escape" && isOpen) {
24221
+ onClose();
24222
+ }
24223
+ };
24224
+ document.addEventListener("keydown", handleEscape);
24225
+ return function () {
22468
24226
  document.removeEventListener("keydown", handleEscape);
22469
24227
  };
22470
24228
  }, [isOpen, onClose]);
@@ -22477,7 +24235,9 @@ var Drawer$1 = function Drawer(props) {
22477
24235
  "data-testid": "drawer"
22478
24236
  }, rest), showMask && jsx(Mask, {
22479
24237
  onClose: onClose
22480
- }), jsx(m.dialog, {
24238
+ }), jsx(FocusLock, {
24239
+ returnFocus: true
24240
+ }, jsx(m.dialog, {
22481
24241
  id: "drawer-dialog",
22482
24242
  style: dialogStyles,
22483
24243
  className: dialogClassNames,
@@ -22492,7 +24252,7 @@ var Drawer$1 = function Drawer(props) {
22492
24252
  placement: placement,
22493
24253
  width: width
22494
24254
  }
22495
- }, clonedChildren))));
24255
+ }, clonedChildren)))));
22496
24256
  React.useEffect(function () {
22497
24257
  if (isOpen) {
22498
24258
  document.querySelector("body").style.overflow = "hidden";
@@ -25333,41 +27093,6 @@ var PLACEHOLDER = "Select...";
25333
27093
  var MIN_WIDTH = "5rem";
25334
27094
  var MAX_WIDTH = "25rem";
25335
27095
 
25336
- function _typeof(o) {
25337
- "@babel/helpers - typeof";
25338
-
25339
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
25340
- return typeof o;
25341
- } : function (o) {
25342
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
25343
- }, _typeof(o);
25344
- }
25345
-
25346
- function toPrimitive(t, r) {
25347
- if ("object" != _typeof(t) || !t) return t;
25348
- var e = t[Symbol.toPrimitive];
25349
- if (void 0 !== e) {
25350
- var i = e.call(t, r || "default");
25351
- if ("object" != _typeof(i)) return i;
25352
- throw new TypeError("@@toPrimitive must return a primitive value.");
25353
- }
25354
- return ("string" === r ? String : Number)(t);
25355
- }
25356
-
25357
- function toPropertyKey$1(t) {
25358
- var i = toPrimitive(t, "string");
25359
- return "symbol" == _typeof(i) ? i : i + "";
25360
- }
25361
-
25362
- function _defineProperty(e, r, t) {
25363
- return (r = toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, {
25364
- value: t,
25365
- enumerable: !0,
25366
- configurable: !0,
25367
- writable: !0
25368
- }) : e[r] = t, e;
25369
- }
25370
-
25371
27096
  function ownKeys(e, r) {
25372
27097
  var t = Object.keys(e);
25373
27098
  if (Object.getOwnPropertySymbols) {
@@ -25406,12 +27131,6 @@ function _createClass(e, r, t) {
25406
27131
  }), e;
25407
27132
  }
25408
27133
 
25409
- function _setPrototypeOf(t, e) {
25410
- return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
25411
- return t.__proto__ = e, t;
25412
- }, _setPrototypeOf(t, e);
25413
- }
25414
-
25415
27134
  function _inherits(t, e) {
25416
27135
  if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
25417
27136
  t.prototype = Object.create(e && e.prototype, {
@@ -25534,16 +27253,6 @@ function _slicedToArray(r, e) {
25534
27253
  return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
25535
27254
  }
25536
27255
 
25537
- function _objectWithoutPropertiesLoose(r, e) {
25538
- if (null == r) return {};
25539
- var t = {};
25540
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
25541
- if (e.includes(n)) continue;
25542
- t[n] = r[n];
25543
- }
25544
- return t;
25545
- }
25546
-
25547
27256
  function _objectWithoutProperties(e, t) {
25548
27257
  if (null == e) return {};
25549
27258
  var o,
@@ -32369,8 +34078,7 @@ var switchClassNames = function switchClassNames(customClassName, isMedium, isSu
32369
34078
  });
32370
34079
  };
32371
34080
  var ToggleSwitch = function ToggleSwitch(_ref, ref) {
32372
- var _ref$id = _ref.id,
32373
- id = _ref$id === void 0 ? "toggle-switch" : _ref$id,
34081
+ var id = _ref.id,
32374
34082
  labelBefore = _ref.labelBefore,
32375
34083
  labelAfter = _ref.labelAfter,
32376
34084
  description = _ref.description,
@@ -32431,6 +34139,7 @@ var ToggleSwitch = function ToggleSwitch(_ref, ref) {
32431
34139
  };
32432
34140
  });
32433
34141
  return jsx("div", _extends$p({
34142
+ id: id,
32434
34143
  tabIndex: 0,
32435
34144
  onKeyDown: function onKeyDown(e) {
32436
34145
  return e.key === "Enter" && handleToggle(e);
@@ -32472,7 +34181,10 @@ var ToggleSwitch = function ToggleSwitch(_ref, ref) {
32472
34181
  "data-testid": "switch",
32473
34182
  "data-checked": isChecked,
32474
34183
  className: switchClassNames("switch", isMedium, isSuccess),
32475
- onClick: handleToggle
34184
+ onClick: handleToggle,
34185
+ role: "switch",
34186
+ "aria-checked": isChecked,
34187
+ "aria-labelledby": id
32476
34188
  }, hasInlineText && isMedium && jsx(Text, {
32477
34189
  fontSize: "sm",
32478
34190
  className: "inline-text"