@cruk/cruk-react-components 1.1.7 → 1.2.0

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 (742) hide show
  1. package/package.json +5 -5
  2. package/CHANGELOG.md +0 -239
  3. package/lib/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -2
  4. package/lib/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +0 -1
  5. package/lib/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +0 -2
  6. package/lib/cjs/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
  7. package/lib/cjs/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -2
  8. package/lib/cjs/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +0 -1
  9. package/lib/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -2
  10. package/lib/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +0 -1
  11. package/lib/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -2
  12. package/lib/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +0 -1
  13. package/lib/cjs/node_modules/@fortawesome/free-solid-svg-icons/index.es.js +0 -8
  14. package/lib/cjs/node_modules/@fortawesome/free-solid-svg-icons/index.es.js.map +0 -1
  15. package/lib/cjs/node_modules/focus-lock/dist/es2015/constants.js +0 -2
  16. package/lib/cjs/node_modules/focus-lock/dist/es2015/constants.js.map +0 -1
  17. package/lib/cjs/node_modules/focus-lock/dist/es2015/focusInside.js +0 -2
  18. package/lib/cjs/node_modules/focus-lock/dist/es2015/focusInside.js.map +0 -1
  19. package/lib/cjs/node_modules/focus-lock/dist/es2015/focusIsHidden.js +0 -2
  20. package/lib/cjs/node_modules/focus-lock/dist/es2015/focusIsHidden.js.map +0 -1
  21. package/lib/cjs/node_modules/focus-lock/dist/es2015/focusMerge.js +0 -2
  22. package/lib/cjs/node_modules/focus-lock/dist/es2015/focusMerge.js.map +0 -1
  23. package/lib/cjs/node_modules/focus-lock/dist/es2015/focusables.js +0 -2
  24. package/lib/cjs/node_modules/focus-lock/dist/es2015/focusables.js.map +0 -1
  25. package/lib/cjs/node_modules/focus-lock/dist/es2015/index.js +0 -2
  26. package/lib/cjs/node_modules/focus-lock/dist/es2015/index.js.map +0 -1
  27. package/lib/cjs/node_modules/focus-lock/dist/es2015/setFocus.js +0 -2
  28. package/lib/cjs/node_modules/focus-lock/dist/es2015/setFocus.js.map +0 -1
  29. package/lib/cjs/node_modules/focus-lock/dist/es2015/solver.js +0 -2
  30. package/lib/cjs/node_modules/focus-lock/dist/es2015/solver.js.map +0 -1
  31. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/DOMutils.js +0 -2
  32. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/DOMutils.js.map +0 -1
  33. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/all-affected.js +0 -2
  34. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/all-affected.js.map +0 -1
  35. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/array.js +0 -2
  36. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/array.js.map +0 -1
  37. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/correctFocus.js +0 -2
  38. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/correctFocus.js.map +0 -1
  39. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/firstFocus.js +0 -2
  40. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/firstFocus.js.map +0 -1
  41. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/getActiveElement.js +0 -2
  42. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/getActiveElement.js.map +0 -1
  43. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/is.js +0 -2
  44. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/is.js.map +0 -1
  45. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/parenting.js +0 -2
  46. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/parenting.js.map +0 -1
  47. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/tabOrder.js +0 -2
  48. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/tabOrder.js.map +0 -1
  49. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/tabUtils.js +0 -2
  50. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/tabUtils.js.map +0 -1
  51. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/tabbables.js +0 -2
  52. package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/tabbables.js.map +0 -1
  53. package/lib/cjs/node_modules/react-clientside-effect/lib/index.es.js +0 -2
  54. package/lib/cjs/node_modules/react-clientside-effect/lib/index.es.js.map +0 -1
  55. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Combination.js +0 -2
  56. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Combination.js.map +0 -1
  57. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/FocusGuard.js +0 -2
  58. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/FocusGuard.js.map +0 -1
  59. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Lock.js +0 -2
  60. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Lock.js.map +0 -1
  61. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Trap.js +0 -2
  62. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Trap.js.map +0 -1
  63. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/index.js +0 -2
  64. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/index.js.map +0 -1
  65. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/medium.js +0 -2
  66. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/medium.js.map +0 -1
  67. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/util.js +0 -2
  68. package/lib/cjs/node_modules/react-focus-lock/dist/es2015/util.js.map +0 -1
  69. package/lib/cjs/node_modules/react-intersection-observer/react-intersection-observer.modern.mjs.js +0 -2
  70. package/lib/cjs/node_modules/react-intersection-observer/react-intersection-observer.modern.mjs.js.map +0 -1
  71. package/lib/cjs/node_modules/tslib/tslib.es6.js +0 -2
  72. package/lib/cjs/node_modules/tslib/tslib.es6.js.map +0 -1
  73. package/lib/cjs/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -2
  74. package/lib/cjs/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +0 -1
  75. package/lib/cjs/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -2
  76. package/lib/cjs/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +0 -1
  77. package/lib/cjs/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -2
  78. package/lib/cjs/node_modules/use-callback-ref/dist/es2015/useRef.js.map +0 -1
  79. package/lib/cjs/node_modules/use-sidecar/dist/es2015/medium.js +0 -2
  80. package/lib/cjs/node_modules/use-sidecar/dist/es2015/medium.js.map +0 -1
  81. package/lib/cjs/src/components/AddressLookup/README.md.js +0 -2
  82. package/lib/cjs/src/components/AddressLookup/README.md.js.map +0 -1
  83. package/lib/cjs/src/components/AddressLookup/index.js +0 -2
  84. package/lib/cjs/src/components/AddressLookup/index.js.map +0 -1
  85. package/lib/cjs/src/components/AddressLookup/styles.js +0 -2
  86. package/lib/cjs/src/components/AddressLookup/styles.js.map +0 -1
  87. package/lib/cjs/src/components/Avatar/README.md.js +0 -2
  88. package/lib/cjs/src/components/Avatar/README.md.js.map +0 -1
  89. package/lib/cjs/src/components/Avatar/index.js +0 -2
  90. package/lib/cjs/src/components/Avatar/index.js.map +0 -1
  91. package/lib/cjs/src/components/Avatar/styles.js +0 -2
  92. package/lib/cjs/src/components/Avatar/styles.js.map +0 -1
  93. package/lib/cjs/src/components/Badge/README.md.js +0 -2
  94. package/lib/cjs/src/components/Badge/README.md.js.map +0 -1
  95. package/lib/cjs/src/components/Badge/index.js +0 -2
  96. package/lib/cjs/src/components/Badge/index.js.map +0 -1
  97. package/lib/cjs/src/components/Badge/styles.js +0 -2
  98. package/lib/cjs/src/components/Badge/styles.js.map +0 -1
  99. package/lib/cjs/src/components/Box/README.md.js +0 -2
  100. package/lib/cjs/src/components/Box/README.md.js.map +0 -1
  101. package/lib/cjs/src/components/Box/index.js +0 -2
  102. package/lib/cjs/src/components/Box/index.js.map +0 -1
  103. package/lib/cjs/src/components/Box/styles.js +0 -2
  104. package/lib/cjs/src/components/Box/styles.js.map +0 -1
  105. package/lib/cjs/src/components/Button/README.md.js +0 -2
  106. package/lib/cjs/src/components/Button/README.md.js.map +0 -1
  107. package/lib/cjs/src/components/Button/index.js +0 -2
  108. package/lib/cjs/src/components/Button/index.js.map +0 -1
  109. package/lib/cjs/src/components/Button/styles.js +0 -2
  110. package/lib/cjs/src/components/Button/styles.js.map +0 -1
  111. package/lib/cjs/src/components/Carousel/Dots.js +0 -2
  112. package/lib/cjs/src/components/Carousel/Dots.js.map +0 -1
  113. package/lib/cjs/src/components/Carousel/index.js +0 -2
  114. package/lib/cjs/src/components/Carousel/index.js.map +0 -1
  115. package/lib/cjs/src/components/Carousel/styles.js +0 -2
  116. package/lib/cjs/src/components/Carousel/styles.js.map +0 -1
  117. package/lib/cjs/src/components/Checkbox/README.md.js +0 -2
  118. package/lib/cjs/src/components/Checkbox/README.md.js.map +0 -1
  119. package/lib/cjs/src/components/Checkbox/index.js +0 -2
  120. package/lib/cjs/src/components/Checkbox/index.js.map +0 -1
  121. package/lib/cjs/src/components/Checkbox/styles.js +0 -2
  122. package/lib/cjs/src/components/Checkbox/styles.js.map +0 -1
  123. package/lib/cjs/src/components/Collapse/README.md.js +0 -2
  124. package/lib/cjs/src/components/Collapse/README.md.js.map +0 -1
  125. package/lib/cjs/src/components/Collapse/index.js +0 -2
  126. package/lib/cjs/src/components/Collapse/index.js.map +0 -1
  127. package/lib/cjs/src/components/Collapse/styles.js +0 -2
  128. package/lib/cjs/src/components/Collapse/styles.js.map +0 -1
  129. package/lib/cjs/src/components/DateField/README.md.js +0 -2
  130. package/lib/cjs/src/components/DateField/README.md.js.map +0 -1
  131. package/lib/cjs/src/components/DateField/index.js +0 -2
  132. package/lib/cjs/src/components/DateField/index.js.map +0 -1
  133. package/lib/cjs/src/components/DateField/styles.js +0 -2
  134. package/lib/cjs/src/components/DateField/styles.js.map +0 -1
  135. package/lib/cjs/src/components/Divider.js +0 -2
  136. package/lib/cjs/src/components/Divider.js.map +0 -1
  137. package/lib/cjs/src/components/ErrorText/README.md.js +0 -2
  138. package/lib/cjs/src/components/ErrorText/README.md.js.map +0 -1
  139. package/lib/cjs/src/components/ErrorText/index.js +0 -2
  140. package/lib/cjs/src/components/ErrorText/index.js.map +0 -1
  141. package/lib/cjs/src/components/ErrorText/styles.js +0 -2
  142. package/lib/cjs/src/components/ErrorText/styles.js.map +0 -1
  143. package/lib/cjs/src/components/Flex.js +0 -2
  144. package/lib/cjs/src/components/Flex.js.map +0 -1
  145. package/lib/cjs/src/components/Footer/README.md.js +0 -2
  146. package/lib/cjs/src/components/Footer/README.md.js.map +0 -1
  147. package/lib/cjs/src/components/Footer/index.js +0 -2
  148. package/lib/cjs/src/components/Footer/index.js.map +0 -1
  149. package/lib/cjs/src/components/Footer/styles.js +0 -2
  150. package/lib/cjs/src/components/Footer/styles.js.map +0 -1
  151. package/lib/cjs/src/components/GlobalStyle.js +0 -2
  152. package/lib/cjs/src/components/GlobalStyle.js.map +0 -1
  153. package/lib/cjs/src/components/Header/README.md.js +0 -2
  154. package/lib/cjs/src/components/Header/README.md.js.map +0 -1
  155. package/lib/cjs/src/components/Header/index.js +0 -2
  156. package/lib/cjs/src/components/Header/index.js.map +0 -1
  157. package/lib/cjs/src/components/Header/styles.js +0 -2
  158. package/lib/cjs/src/components/Header/styles.js.map +0 -1
  159. package/lib/cjs/src/components/Heading/README.md.js +0 -2
  160. package/lib/cjs/src/components/Heading/README.md.js.map +0 -1
  161. package/lib/cjs/src/components/Heading/index.js +0 -2
  162. package/lib/cjs/src/components/Heading/index.js.map +0 -1
  163. package/lib/cjs/src/components/Heading/styles.js +0 -2
  164. package/lib/cjs/src/components/Heading/styles.js.map +0 -1
  165. package/lib/cjs/src/components/Icon/README.md.js +0 -2
  166. package/lib/cjs/src/components/Icon/README.md.js.map +0 -1
  167. package/lib/cjs/src/components/Icon/iconList.js +0 -2
  168. package/lib/cjs/src/components/Icon/iconList.js.map +0 -1
  169. package/lib/cjs/src/components/Icon/index.js +0 -2
  170. package/lib/cjs/src/components/Icon/index.js.map +0 -1
  171. package/lib/cjs/src/components/Icon/styles.js +0 -2
  172. package/lib/cjs/src/components/Icon/styles.js.map +0 -1
  173. package/lib/cjs/src/components/IconFa/README.md.js +0 -2
  174. package/lib/cjs/src/components/IconFa/README.md.js.map +0 -1
  175. package/lib/cjs/src/components/IconFa/index.js +0 -2
  176. package/lib/cjs/src/components/IconFa/index.js.map +0 -1
  177. package/lib/cjs/src/components/IconFa/styles.js +0 -2
  178. package/lib/cjs/src/components/IconFa/styles.js.map +0 -1
  179. package/lib/cjs/src/components/LabelWrapper/index.js +0 -2
  180. package/lib/cjs/src/components/LabelWrapper/index.js.map +0 -1
  181. package/lib/cjs/src/components/LabelWrapper/styles.js +0 -2
  182. package/lib/cjs/src/components/LabelWrapper/styles.js.map +0 -1
  183. package/lib/cjs/src/components/LegendWrapper/README.md.js +0 -2
  184. package/lib/cjs/src/components/LegendWrapper/README.md.js.map +0 -1
  185. package/lib/cjs/src/components/LegendWrapper/index.js +0 -2
  186. package/lib/cjs/src/components/LegendWrapper/index.js.map +0 -1
  187. package/lib/cjs/src/components/LegendWrapper/styles.js +0 -2
  188. package/lib/cjs/src/components/LegendWrapper/styles.js.map +0 -1
  189. package/lib/cjs/src/components/Link/README.md.js +0 -2
  190. package/lib/cjs/src/components/Link/README.md.js.map +0 -1
  191. package/lib/cjs/src/components/Link/index.js +0 -2
  192. package/lib/cjs/src/components/Link/index.js.map +0 -1
  193. package/lib/cjs/src/components/Link/styles.js +0 -2
  194. package/lib/cjs/src/components/Link/styles.js.map +0 -1
  195. package/lib/cjs/src/components/Loader/README.md.js +0 -2
  196. package/lib/cjs/src/components/Loader/README.md.js.map +0 -1
  197. package/lib/cjs/src/components/Loader/index.js +0 -2
  198. package/lib/cjs/src/components/Loader/index.js.map +0 -1
  199. package/lib/cjs/src/components/Loader/styles.js +0 -2
  200. package/lib/cjs/src/components/Loader/styles.js.map +0 -1
  201. package/lib/cjs/src/components/Modal/README.md.js +0 -2
  202. package/lib/cjs/src/components/Modal/README.md.js.map +0 -1
  203. package/lib/cjs/src/components/Modal/index.js +0 -2
  204. package/lib/cjs/src/components/Modal/index.js.map +0 -1
  205. package/lib/cjs/src/components/Modal/styles.js +0 -2
  206. package/lib/cjs/src/components/Modal/styles.js.map +0 -1
  207. package/lib/cjs/src/components/Pagination/README.md.js +0 -2
  208. package/lib/cjs/src/components/Pagination/README.md.js.map +0 -1
  209. package/lib/cjs/src/components/Pagination/index.js +0 -2
  210. package/lib/cjs/src/components/Pagination/index.js.map +0 -1
  211. package/lib/cjs/src/components/Pagination/styles.js +0 -2
  212. package/lib/cjs/src/components/Pagination/styles.js.map +0 -1
  213. package/lib/cjs/src/components/PopOver/README.md.js +0 -2
  214. package/lib/cjs/src/components/PopOver/README.md.js.map +0 -1
  215. package/lib/cjs/src/components/PopOver/index.js +0 -2
  216. package/lib/cjs/src/components/PopOver/index.js.map +0 -1
  217. package/lib/cjs/src/components/PopOver/styles.js +0 -2
  218. package/lib/cjs/src/components/PopOver/styles.js.map +0 -1
  219. package/lib/cjs/src/components/ProgressBar/README.md.js +0 -2
  220. package/lib/cjs/src/components/ProgressBar/README.md.js.map +0 -1
  221. package/lib/cjs/src/components/ProgressBar/index.js +0 -2
  222. package/lib/cjs/src/components/ProgressBar/index.js.map +0 -1
  223. package/lib/cjs/src/components/ProgressBar/styles.js +0 -2
  224. package/lib/cjs/src/components/ProgressBar/styles.js.map +0 -1
  225. package/lib/cjs/src/components/Radio/README.md.js +0 -2
  226. package/lib/cjs/src/components/Radio/README.md.js.map +0 -1
  227. package/lib/cjs/src/components/Radio/index.js +0 -2
  228. package/lib/cjs/src/components/Radio/index.js.map +0 -1
  229. package/lib/cjs/src/components/Radio/styles.js +0 -2
  230. package/lib/cjs/src/components/Radio/styles.js.map +0 -1
  231. package/lib/cjs/src/components/RadioConsent/README.md.js +0 -2
  232. package/lib/cjs/src/components/RadioConsent/README.md.js.map +0 -1
  233. package/lib/cjs/src/components/RadioConsent/index.js +0 -2
  234. package/lib/cjs/src/components/RadioConsent/index.js.map +0 -1
  235. package/lib/cjs/src/components/RadioConsent/styles.js +0 -2
  236. package/lib/cjs/src/components/RadioConsent/styles.js.map +0 -1
  237. package/lib/cjs/src/components/Select/README.md.js +0 -2
  238. package/lib/cjs/src/components/Select/README.md.js.map +0 -1
  239. package/lib/cjs/src/components/Select/index.js +0 -2
  240. package/lib/cjs/src/components/Select/index.js.map +0 -1
  241. package/lib/cjs/src/components/Select/styles.js +0 -2
  242. package/lib/cjs/src/components/Select/styles.js.map +0 -1
  243. package/lib/cjs/src/components/Spacing/index.js +0 -2
  244. package/lib/cjs/src/components/Spacing/index.js.map +0 -1
  245. package/lib/cjs/src/components/Step/README.md.js +0 -2
  246. package/lib/cjs/src/components/Step/README.md.js.map +0 -1
  247. package/lib/cjs/src/components/Step/index.js +0 -2
  248. package/lib/cjs/src/components/Step/index.js.map +0 -1
  249. package/lib/cjs/src/components/Step/styles.js +0 -2
  250. package/lib/cjs/src/components/Step/styles.js.map +0 -1
  251. package/lib/cjs/src/components/Text/README.md.js +0 -2
  252. package/lib/cjs/src/components/Text/README.md.js.map +0 -1
  253. package/lib/cjs/src/components/Text/index.js +0 -2
  254. package/lib/cjs/src/components/Text/index.js.map +0 -1
  255. package/lib/cjs/src/components/Text/styles.js +0 -2
  256. package/lib/cjs/src/components/Text/styles.js.map +0 -1
  257. package/lib/cjs/src/components/TextAreaField/README.md.js +0 -2
  258. package/lib/cjs/src/components/TextAreaField/README.md.js.map +0 -1
  259. package/lib/cjs/src/components/TextAreaField/index.js +0 -2
  260. package/lib/cjs/src/components/TextAreaField/index.js.map +0 -1
  261. package/lib/cjs/src/components/TextAreaField/styles.js +0 -2
  262. package/lib/cjs/src/components/TextAreaField/styles.js.map +0 -1
  263. package/lib/cjs/src/components/TextField/README.md.js +0 -2
  264. package/lib/cjs/src/components/TextField/README.md.js.map +0 -1
  265. package/lib/cjs/src/components/TextField/index.js +0 -2
  266. package/lib/cjs/src/components/TextField/index.js.map +0 -1
  267. package/lib/cjs/src/components/TextField/styles.js +0 -2
  268. package/lib/cjs/src/components/TextField/styles.js.map +0 -1
  269. package/lib/cjs/src/components/Totaliser/README.md.js +0 -2
  270. package/lib/cjs/src/components/Totaliser/README.md.js.map +0 -1
  271. package/lib/cjs/src/components/Totaliser/index.js +0 -2
  272. package/lib/cjs/src/components/Totaliser/index.js.map +0 -1
  273. package/lib/cjs/src/components/Totaliser/styles.js +0 -2
  274. package/lib/cjs/src/components/Totaliser/styles.js.map +0 -1
  275. package/lib/cjs/src/components/UserBlock/README.md.js +0 -2
  276. package/lib/cjs/src/components/UserBlock/README.md.js.map +0 -1
  277. package/lib/cjs/src/components/UserBlock/index.js +0 -2
  278. package/lib/cjs/src/components/UserBlock/index.js.map +0 -1
  279. package/lib/cjs/src/components/UserBlock/styles.js +0 -2
  280. package/lib/cjs/src/components/UserBlock/styles.js.map +0 -1
  281. package/lib/cjs/src/components/index.js +0 -2
  282. package/lib/cjs/src/components/index.js.map +0 -1
  283. package/lib/cjs/src/hooks/useEffectBrowser.js +0 -2
  284. package/lib/cjs/src/hooks/useEffectBrowser.js.map +0 -1
  285. package/lib/cjs/src/hooks/useKey.js +0 -2
  286. package/lib/cjs/src/hooks/useKey.js.map +0 -1
  287. package/lib/cjs/src/hooks/useLayoutEffectBrowser.js +0 -2
  288. package/lib/cjs/src/hooks/useLayoutEffectBrowser.js.map +0 -1
  289. package/lib/cjs/src/hooks/useScrollPosition.js +0 -2
  290. package/lib/cjs/src/hooks/useScrollPosition.js.map +0 -1
  291. package/lib/cjs/src/themes/cruk.js +0 -2
  292. package/lib/cjs/src/themes/cruk.js.map +0 -1
  293. package/lib/cjs/src/themes/su2c.js +0 -2
  294. package/lib/cjs/src/themes/su2c.js.map +0 -1
  295. package/lib/cjs/src/utils/Helper.js +0 -2
  296. package/lib/cjs/src/utils/Helper.js.map +0 -1
  297. package/lib/cjs/src/utils/debounce.js +0 -2
  298. package/lib/cjs/src/utils/debounce.js.map +0 -1
  299. package/lib/components/AddressLookup/AddressLookUp.test.cypress.d.ts +0 -1
  300. package/lib/components/AddressLookup/AddressLookup.stories.d.ts +0 -6
  301. package/lib/components/AddressLookup/index.d.ts +0 -36
  302. package/lib/components/AddressLookup/styles.d.ts +0 -14
  303. package/lib/components/Avatar/Avatar.stories.d.ts +0 -15
  304. package/lib/components/Avatar/Avatar.test.cypress.d.ts +0 -1
  305. package/lib/components/Avatar/index.d.ts +0 -15
  306. package/lib/components/Avatar/styles.d.ts +0 -7
  307. package/lib/components/Badge/Badge.stories.d.ts +0 -12
  308. package/lib/components/Badge/Badge.test.cypress.d.ts +0 -1
  309. package/lib/components/Badge/index.d.ts +0 -29
  310. package/lib/components/Badge/styles.d.ts +0 -11
  311. package/lib/components/Box/Box.stories.d.ts +0 -10
  312. package/lib/components/Box/Box.test.cypress.d.ts +0 -1
  313. package/lib/components/Box/index.d.ts +0 -18
  314. package/lib/components/Box/styles.d.ts +0 -8
  315. package/lib/components/Button/Button.stories.d.ts +0 -12
  316. package/lib/components/Button/Button.test.cypress.d.ts +0 -1
  317. package/lib/components/Button/index.d.ts +0 -28
  318. package/lib/components/Button/styles.d.ts +0 -13
  319. package/lib/components/Carousel/Carousel.stories.d.ts +0 -6
  320. package/lib/components/Carousel/Carousel.test.cypress.d.ts +0 -1
  321. package/lib/components/Carousel/Dots.d.ts +0 -12
  322. package/lib/components/Carousel/index.d.ts +0 -18
  323. package/lib/components/Carousel/styles.d.ts +0 -30
  324. package/lib/components/Checkbox/CheckBox.test.cypress.d.ts +0 -1
  325. package/lib/components/Checkbox/Checkbox.stories.d.ts +0 -7
  326. package/lib/components/Checkbox/index.d.ts +0 -16
  327. package/lib/components/Checkbox/styles.d.ts +0 -13
  328. package/lib/components/Collapse/Collapse.stories.d.ts +0 -10
  329. package/lib/components/Collapse/Collapse.test.cypress.d.ts +0 -1
  330. package/lib/components/Collapse/index.d.ts +0 -29
  331. package/lib/components/Collapse/styles.d.ts +0 -16
  332. package/lib/components/DateField/DateField.stories.d.ts +0 -8
  333. package/lib/components/DateField/DateField.test.cypress.d.ts +0 -1
  334. package/lib/components/DateField/index.d.ts +0 -32
  335. package/lib/components/DateField/styles.d.ts +0 -4
  336. package/lib/components/Divider.d.ts +0 -6
  337. package/lib/components/ErrorText/ErrorText.stories.d.ts +0 -6
  338. package/lib/components/ErrorText/ErrorText.test.cypress.d.ts +0 -1
  339. package/lib/components/ErrorText/index.d.ts +0 -13
  340. package/lib/components/ErrorText/styles.d.ts +0 -3
  341. package/lib/components/Flex.d.ts +0 -3
  342. package/lib/components/Footer/Footer.stories.d.ts +0 -6
  343. package/lib/components/Footer/Footer.test.cypress.d.ts +0 -1
  344. package/lib/components/Footer/index.d.ts +0 -11
  345. package/lib/components/Footer/styles.d.ts +0 -11
  346. package/lib/components/GlobalStyle.d.ts +0 -9
  347. package/lib/components/Header/Header.stories.d.ts +0 -6
  348. package/lib/components/Header/Header.test.cypress.d.ts +0 -1
  349. package/lib/components/Header/index.d.ts +0 -37
  350. package/lib/components/Header/styles.d.ts +0 -24
  351. package/lib/components/Heading/Heading.stories.d.ts +0 -19
  352. package/lib/components/Heading/Heading.test.cypress.d.ts +0 -1
  353. package/lib/components/Heading/index.d.ts +0 -32
  354. package/lib/components/Heading/styles.d.ts +0 -50
  355. package/lib/components/Icon/Icon.stories.d.ts +0 -6
  356. package/lib/components/Icon/Icon.test.cypress.d.ts +0 -1
  357. package/lib/components/Icon/iconList.d.ts +0 -268
  358. package/lib/components/Icon/index.d.ts +0 -22
  359. package/lib/components/Icon/styles.d.ts +0 -5
  360. package/lib/components/IconFa/IconFa.stories.d.ts +0 -6
  361. package/lib/components/IconFa/IconFa.test.cypress.d.ts +0 -1
  362. package/lib/components/IconFa/index.d.ts +0 -16
  363. package/lib/components/IconFa/styles.d.ts +0 -5
  364. package/lib/components/LabelWrapper/index.d.ts +0 -14
  365. package/lib/components/LabelWrapper/styles.d.ts +0 -6
  366. package/lib/components/LegendWrapper/LegendWrapper.stories.d.ts +0 -10
  367. package/lib/components/LegendWrapper/LegendWrapper.test.cypress.d.ts +0 -1
  368. package/lib/components/LegendWrapper/index.d.ts +0 -22
  369. package/lib/components/LegendWrapper/styles.d.ts +0 -12
  370. package/lib/components/Link/Link.stories.d.ts +0 -11
  371. package/lib/components/Link/Link.test.cypress.d.ts +0 -1
  372. package/lib/components/Link/index.d.ts +0 -26
  373. package/lib/components/Link/styles.d.ts +0 -18
  374. package/lib/components/Loader/Loader.stories.d.ts +0 -5
  375. package/lib/components/Loader/Loader.test.cypress.d.ts +0 -1
  376. package/lib/components/Loader/index.d.ts +0 -6
  377. package/lib/components/Loader/styles.d.ts +0 -2
  378. package/lib/components/Modal/Modal.stories.d.ts +0 -6
  379. package/lib/components/Modal/Modal.test.cypress.d.ts +0 -1
  380. package/lib/components/Modal/index.d.ts +0 -29
  381. package/lib/components/Modal/styles.d.ts +0 -8
  382. package/lib/components/Pagination/Pagination.stories.d.ts +0 -6
  383. package/lib/components/Pagination/Pagination.test.cypress.d.ts +0 -1
  384. package/lib/components/Pagination/index.d.ts +0 -24
  385. package/lib/components/Pagination/styles.d.ts +0 -10
  386. package/lib/components/PopOver/PopOver.test.cypress.d.ts +0 -1
  387. package/lib/components/PopOver/Popover.stories.d.ts +0 -6
  388. package/lib/components/PopOver/index.d.ts +0 -24
  389. package/lib/components/PopOver/styles.d.ts +0 -10
  390. package/lib/components/ProgressBar/ProgressBar.stories.d.ts +0 -8
  391. package/lib/components/ProgressBar/ProgressBar.test.cypress.d.ts +0 -1
  392. package/lib/components/ProgressBar/index.d.ts +0 -24
  393. package/lib/components/ProgressBar/styles.d.ts +0 -30
  394. package/lib/components/Radio/Radio.stories.d.ts +0 -7
  395. package/lib/components/Radio/Radio.test.cypress.d.ts +0 -1
  396. package/lib/components/Radio/index.d.ts +0 -16
  397. package/lib/components/Radio/styles.d.ts +0 -19
  398. package/lib/components/RadioConsent/Radio.stories.d.ts +0 -6
  399. package/lib/components/RadioConsent/RadioConsent.test.cypress.d.ts +0 -1
  400. package/lib/components/RadioConsent/index.d.ts +0 -24
  401. package/lib/components/RadioConsent/styles.d.ts +0 -11
  402. package/lib/components/Select/Select.test.cypress.d.ts +0 -1
  403. package/lib/components/Select/Selelct.stories.d.ts +0 -8
  404. package/lib/components/Select/index.d.ts +0 -21
  405. package/lib/components/Select/styles.d.ts +0 -9
  406. package/lib/components/Spacing/index.d.ts +0 -19
  407. package/lib/components/Step/Step.stories.d.ts +0 -6
  408. package/lib/components/Step/Step.test.cypress.d.ts +0 -1
  409. package/lib/components/Step/index.d.ts +0 -15
  410. package/lib/components/Step/styles.d.ts +0 -13
  411. package/lib/components/TestWrapper.d.ts +0 -12
  412. package/lib/components/Text/Text.stories.d.ts +0 -6
  413. package/lib/components/Text/Text.test.cypress.d.ts +0 -1
  414. package/lib/components/Text/index.d.ts +0 -26
  415. package/lib/components/Text/styles.d.ts +0 -22
  416. package/lib/components/TextAreaField/TextAreaField.stories.d.ts +0 -8
  417. package/lib/components/TextAreaField/TextAreaField.test.cypress.d.ts +0 -1
  418. package/lib/components/TextAreaField/index.d.ts +0 -22
  419. package/lib/components/TextAreaField/styles.d.ts +0 -10
  420. package/lib/components/TextField/TextField.stories.d.ts +0 -10
  421. package/lib/components/TextField/TextField.test.cypress.d.ts +0 -1
  422. package/lib/components/TextField/index.d.ts +0 -34
  423. package/lib/components/TextField/styles.d.ts +0 -18
  424. package/lib/components/ThemeCheatSheet.d.ts +0 -5
  425. package/lib/components/Totaliser/Totaliser.stories.d.ts +0 -14
  426. package/lib/components/Totaliser/Totaliser.test.cypress.d.ts +0 -1
  427. package/lib/components/Totaliser/index.d.ts +0 -22
  428. package/lib/components/Totaliser/styles.d.ts +0 -15
  429. package/lib/components/UserBlock/UserBlock.stories.d.ts +0 -12
  430. package/lib/components/UserBlock/UserBlock.test.cypress.d.ts +0 -1
  431. package/lib/components/UserBlock/index.d.ts +0 -18
  432. package/lib/components/UserBlock/styles.d.ts +0 -4
  433. package/lib/components/index.d.ts +0 -68
  434. package/lib/docs/Docs.d.ts +0 -2
  435. package/lib/docs/index.d.ts +0 -1
  436. package/lib/es/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -2
  437. package/lib/es/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +0 -1
  438. package/lib/es/node_modules/@babel/runtime/helpers/esm/extends.js +0 -2
  439. package/lib/es/node_modules/@babel/runtime/helpers/esm/extends.js.map +0 -1
  440. package/lib/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -2
  441. package/lib/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +0 -1
  442. package/lib/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -2
  443. package/lib/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +0 -1
  444. package/lib/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -2
  445. package/lib/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +0 -1
  446. package/lib/es/node_modules/@fortawesome/free-solid-svg-icons/index.es.js +0 -7
  447. package/lib/es/node_modules/@fortawesome/free-solid-svg-icons/index.es.js.map +0 -1
  448. package/lib/es/node_modules/focus-lock/dist/es2015/constants.js +0 -2
  449. package/lib/es/node_modules/focus-lock/dist/es2015/constants.js.map +0 -1
  450. package/lib/es/node_modules/focus-lock/dist/es2015/focusInside.js +0 -2
  451. package/lib/es/node_modules/focus-lock/dist/es2015/focusInside.js.map +0 -1
  452. package/lib/es/node_modules/focus-lock/dist/es2015/focusIsHidden.js +0 -2
  453. package/lib/es/node_modules/focus-lock/dist/es2015/focusIsHidden.js.map +0 -1
  454. package/lib/es/node_modules/focus-lock/dist/es2015/focusMerge.js +0 -2
  455. package/lib/es/node_modules/focus-lock/dist/es2015/focusMerge.js.map +0 -1
  456. package/lib/es/node_modules/focus-lock/dist/es2015/focusables.js +0 -2
  457. package/lib/es/node_modules/focus-lock/dist/es2015/focusables.js.map +0 -1
  458. package/lib/es/node_modules/focus-lock/dist/es2015/index.js +0 -2
  459. package/lib/es/node_modules/focus-lock/dist/es2015/index.js.map +0 -1
  460. package/lib/es/node_modules/focus-lock/dist/es2015/setFocus.js +0 -2
  461. package/lib/es/node_modules/focus-lock/dist/es2015/setFocus.js.map +0 -1
  462. package/lib/es/node_modules/focus-lock/dist/es2015/solver.js +0 -2
  463. package/lib/es/node_modules/focus-lock/dist/es2015/solver.js.map +0 -1
  464. package/lib/es/node_modules/focus-lock/dist/es2015/utils/DOMutils.js +0 -2
  465. package/lib/es/node_modules/focus-lock/dist/es2015/utils/DOMutils.js.map +0 -1
  466. package/lib/es/node_modules/focus-lock/dist/es2015/utils/all-affected.js +0 -2
  467. package/lib/es/node_modules/focus-lock/dist/es2015/utils/all-affected.js.map +0 -1
  468. package/lib/es/node_modules/focus-lock/dist/es2015/utils/array.js +0 -2
  469. package/lib/es/node_modules/focus-lock/dist/es2015/utils/array.js.map +0 -1
  470. package/lib/es/node_modules/focus-lock/dist/es2015/utils/correctFocus.js +0 -2
  471. package/lib/es/node_modules/focus-lock/dist/es2015/utils/correctFocus.js.map +0 -1
  472. package/lib/es/node_modules/focus-lock/dist/es2015/utils/firstFocus.js +0 -2
  473. package/lib/es/node_modules/focus-lock/dist/es2015/utils/firstFocus.js.map +0 -1
  474. package/lib/es/node_modules/focus-lock/dist/es2015/utils/getActiveElement.js +0 -2
  475. package/lib/es/node_modules/focus-lock/dist/es2015/utils/getActiveElement.js.map +0 -1
  476. package/lib/es/node_modules/focus-lock/dist/es2015/utils/is.js +0 -2
  477. package/lib/es/node_modules/focus-lock/dist/es2015/utils/is.js.map +0 -1
  478. package/lib/es/node_modules/focus-lock/dist/es2015/utils/parenting.js +0 -2
  479. package/lib/es/node_modules/focus-lock/dist/es2015/utils/parenting.js.map +0 -1
  480. package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabOrder.js +0 -2
  481. package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabOrder.js.map +0 -1
  482. package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabUtils.js +0 -2
  483. package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabUtils.js.map +0 -1
  484. package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabbables.js +0 -2
  485. package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabbables.js.map +0 -1
  486. package/lib/es/node_modules/react-clientside-effect/lib/index.es.js +0 -2
  487. package/lib/es/node_modules/react-clientside-effect/lib/index.es.js.map +0 -1
  488. package/lib/es/node_modules/react-focus-lock/dist/es2015/Combination.js +0 -2
  489. package/lib/es/node_modules/react-focus-lock/dist/es2015/Combination.js.map +0 -1
  490. package/lib/es/node_modules/react-focus-lock/dist/es2015/FocusGuard.js +0 -2
  491. package/lib/es/node_modules/react-focus-lock/dist/es2015/FocusGuard.js.map +0 -1
  492. package/lib/es/node_modules/react-focus-lock/dist/es2015/Lock.js +0 -2
  493. package/lib/es/node_modules/react-focus-lock/dist/es2015/Lock.js.map +0 -1
  494. package/lib/es/node_modules/react-focus-lock/dist/es2015/Trap.js +0 -2
  495. package/lib/es/node_modules/react-focus-lock/dist/es2015/Trap.js.map +0 -1
  496. package/lib/es/node_modules/react-focus-lock/dist/es2015/index.js +0 -2
  497. package/lib/es/node_modules/react-focus-lock/dist/es2015/index.js.map +0 -1
  498. package/lib/es/node_modules/react-focus-lock/dist/es2015/medium.js +0 -2
  499. package/lib/es/node_modules/react-focus-lock/dist/es2015/medium.js.map +0 -1
  500. package/lib/es/node_modules/react-focus-lock/dist/es2015/util.js +0 -2
  501. package/lib/es/node_modules/react-focus-lock/dist/es2015/util.js.map +0 -1
  502. package/lib/es/node_modules/react-intersection-observer/react-intersection-observer.modern.mjs.js +0 -2
  503. package/lib/es/node_modules/react-intersection-observer/react-intersection-observer.modern.mjs.js.map +0 -1
  504. package/lib/es/node_modules/tslib/tslib.es6.js +0 -2
  505. package/lib/es/node_modules/tslib/tslib.es6.js.map +0 -1
  506. package/lib/es/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -2
  507. package/lib/es/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +0 -1
  508. package/lib/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -2
  509. package/lib/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +0 -1
  510. package/lib/es/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -2
  511. package/lib/es/node_modules/use-callback-ref/dist/es2015/useRef.js.map +0 -1
  512. package/lib/es/node_modules/use-sidecar/dist/es2015/medium.js +0 -2
  513. package/lib/es/node_modules/use-sidecar/dist/es2015/medium.js.map +0 -1
  514. package/lib/es/src/components/AddressLookup/README.md.js +0 -2
  515. package/lib/es/src/components/AddressLookup/README.md.js.map +0 -1
  516. package/lib/es/src/components/AddressLookup/index.js +0 -2
  517. package/lib/es/src/components/AddressLookup/index.js.map +0 -1
  518. package/lib/es/src/components/AddressLookup/styles.js +0 -2
  519. package/lib/es/src/components/AddressLookup/styles.js.map +0 -1
  520. package/lib/es/src/components/Avatar/README.md.js +0 -2
  521. package/lib/es/src/components/Avatar/README.md.js.map +0 -1
  522. package/lib/es/src/components/Avatar/index.js +0 -2
  523. package/lib/es/src/components/Avatar/index.js.map +0 -1
  524. package/lib/es/src/components/Avatar/styles.js +0 -2
  525. package/lib/es/src/components/Avatar/styles.js.map +0 -1
  526. package/lib/es/src/components/Badge/README.md.js +0 -2
  527. package/lib/es/src/components/Badge/README.md.js.map +0 -1
  528. package/lib/es/src/components/Badge/index.js +0 -2
  529. package/lib/es/src/components/Badge/index.js.map +0 -1
  530. package/lib/es/src/components/Badge/styles.js +0 -2
  531. package/lib/es/src/components/Badge/styles.js.map +0 -1
  532. package/lib/es/src/components/Box/README.md.js +0 -2
  533. package/lib/es/src/components/Box/README.md.js.map +0 -1
  534. package/lib/es/src/components/Box/index.js +0 -2
  535. package/lib/es/src/components/Box/index.js.map +0 -1
  536. package/lib/es/src/components/Box/styles.js +0 -2
  537. package/lib/es/src/components/Box/styles.js.map +0 -1
  538. package/lib/es/src/components/Button/README.md.js +0 -2
  539. package/lib/es/src/components/Button/README.md.js.map +0 -1
  540. package/lib/es/src/components/Button/index.js +0 -2
  541. package/lib/es/src/components/Button/index.js.map +0 -1
  542. package/lib/es/src/components/Button/styles.js +0 -2
  543. package/lib/es/src/components/Button/styles.js.map +0 -1
  544. package/lib/es/src/components/Carousel/Dots.js +0 -2
  545. package/lib/es/src/components/Carousel/Dots.js.map +0 -1
  546. package/lib/es/src/components/Carousel/index.js +0 -2
  547. package/lib/es/src/components/Carousel/index.js.map +0 -1
  548. package/lib/es/src/components/Carousel/styles.js +0 -2
  549. package/lib/es/src/components/Carousel/styles.js.map +0 -1
  550. package/lib/es/src/components/Checkbox/README.md.js +0 -2
  551. package/lib/es/src/components/Checkbox/README.md.js.map +0 -1
  552. package/lib/es/src/components/Checkbox/index.js +0 -2
  553. package/lib/es/src/components/Checkbox/index.js.map +0 -1
  554. package/lib/es/src/components/Checkbox/styles.js +0 -2
  555. package/lib/es/src/components/Checkbox/styles.js.map +0 -1
  556. package/lib/es/src/components/Collapse/README.md.js +0 -2
  557. package/lib/es/src/components/Collapse/README.md.js.map +0 -1
  558. package/lib/es/src/components/Collapse/index.js +0 -2
  559. package/lib/es/src/components/Collapse/index.js.map +0 -1
  560. package/lib/es/src/components/Collapse/styles.js +0 -2
  561. package/lib/es/src/components/Collapse/styles.js.map +0 -1
  562. package/lib/es/src/components/DateField/README.md.js +0 -2
  563. package/lib/es/src/components/DateField/README.md.js.map +0 -1
  564. package/lib/es/src/components/DateField/index.js +0 -2
  565. package/lib/es/src/components/DateField/index.js.map +0 -1
  566. package/lib/es/src/components/DateField/styles.js +0 -2
  567. package/lib/es/src/components/DateField/styles.js.map +0 -1
  568. package/lib/es/src/components/Divider.js +0 -2
  569. package/lib/es/src/components/Divider.js.map +0 -1
  570. package/lib/es/src/components/ErrorText/README.md.js +0 -2
  571. package/lib/es/src/components/ErrorText/README.md.js.map +0 -1
  572. package/lib/es/src/components/ErrorText/index.js +0 -2
  573. package/lib/es/src/components/ErrorText/index.js.map +0 -1
  574. package/lib/es/src/components/ErrorText/styles.js +0 -2
  575. package/lib/es/src/components/ErrorText/styles.js.map +0 -1
  576. package/lib/es/src/components/Flex.js +0 -2
  577. package/lib/es/src/components/Flex.js.map +0 -1
  578. package/lib/es/src/components/Footer/README.md.js +0 -2
  579. package/lib/es/src/components/Footer/README.md.js.map +0 -1
  580. package/lib/es/src/components/Footer/index.js +0 -2
  581. package/lib/es/src/components/Footer/index.js.map +0 -1
  582. package/lib/es/src/components/Footer/styles.js +0 -2
  583. package/lib/es/src/components/Footer/styles.js.map +0 -1
  584. package/lib/es/src/components/GlobalStyle.js +0 -2
  585. package/lib/es/src/components/GlobalStyle.js.map +0 -1
  586. package/lib/es/src/components/Header/README.md.js +0 -2
  587. package/lib/es/src/components/Header/README.md.js.map +0 -1
  588. package/lib/es/src/components/Header/index.js +0 -2
  589. package/lib/es/src/components/Header/index.js.map +0 -1
  590. package/lib/es/src/components/Header/styles.js +0 -2
  591. package/lib/es/src/components/Header/styles.js.map +0 -1
  592. package/lib/es/src/components/Heading/README.md.js +0 -2
  593. package/lib/es/src/components/Heading/README.md.js.map +0 -1
  594. package/lib/es/src/components/Heading/index.js +0 -2
  595. package/lib/es/src/components/Heading/index.js.map +0 -1
  596. package/lib/es/src/components/Heading/styles.js +0 -2
  597. package/lib/es/src/components/Heading/styles.js.map +0 -1
  598. package/lib/es/src/components/Icon/README.md.js +0 -2
  599. package/lib/es/src/components/Icon/README.md.js.map +0 -1
  600. package/lib/es/src/components/Icon/iconList.js +0 -2
  601. package/lib/es/src/components/Icon/iconList.js.map +0 -1
  602. package/lib/es/src/components/Icon/index.js +0 -2
  603. package/lib/es/src/components/Icon/index.js.map +0 -1
  604. package/lib/es/src/components/Icon/styles.js +0 -2
  605. package/lib/es/src/components/Icon/styles.js.map +0 -1
  606. package/lib/es/src/components/IconFa/README.md.js +0 -2
  607. package/lib/es/src/components/IconFa/README.md.js.map +0 -1
  608. package/lib/es/src/components/IconFa/index.js +0 -2
  609. package/lib/es/src/components/IconFa/index.js.map +0 -1
  610. package/lib/es/src/components/IconFa/styles.js +0 -2
  611. package/lib/es/src/components/IconFa/styles.js.map +0 -1
  612. package/lib/es/src/components/LabelWrapper/index.js +0 -2
  613. package/lib/es/src/components/LabelWrapper/index.js.map +0 -1
  614. package/lib/es/src/components/LabelWrapper/styles.js +0 -2
  615. package/lib/es/src/components/LabelWrapper/styles.js.map +0 -1
  616. package/lib/es/src/components/LegendWrapper/README.md.js +0 -2
  617. package/lib/es/src/components/LegendWrapper/README.md.js.map +0 -1
  618. package/lib/es/src/components/LegendWrapper/index.js +0 -2
  619. package/lib/es/src/components/LegendWrapper/index.js.map +0 -1
  620. package/lib/es/src/components/LegendWrapper/styles.js +0 -2
  621. package/lib/es/src/components/LegendWrapper/styles.js.map +0 -1
  622. package/lib/es/src/components/Link/README.md.js +0 -2
  623. package/lib/es/src/components/Link/README.md.js.map +0 -1
  624. package/lib/es/src/components/Link/index.js +0 -2
  625. package/lib/es/src/components/Link/index.js.map +0 -1
  626. package/lib/es/src/components/Link/styles.js +0 -2
  627. package/lib/es/src/components/Link/styles.js.map +0 -1
  628. package/lib/es/src/components/Loader/README.md.js +0 -2
  629. package/lib/es/src/components/Loader/README.md.js.map +0 -1
  630. package/lib/es/src/components/Loader/index.js +0 -2
  631. package/lib/es/src/components/Loader/index.js.map +0 -1
  632. package/lib/es/src/components/Loader/styles.js +0 -2
  633. package/lib/es/src/components/Loader/styles.js.map +0 -1
  634. package/lib/es/src/components/Modal/README.md.js +0 -2
  635. package/lib/es/src/components/Modal/README.md.js.map +0 -1
  636. package/lib/es/src/components/Modal/index.js +0 -2
  637. package/lib/es/src/components/Modal/index.js.map +0 -1
  638. package/lib/es/src/components/Modal/styles.js +0 -2
  639. package/lib/es/src/components/Modal/styles.js.map +0 -1
  640. package/lib/es/src/components/Pagination/README.md.js +0 -2
  641. package/lib/es/src/components/Pagination/README.md.js.map +0 -1
  642. package/lib/es/src/components/Pagination/index.js +0 -2
  643. package/lib/es/src/components/Pagination/index.js.map +0 -1
  644. package/lib/es/src/components/Pagination/styles.js +0 -2
  645. package/lib/es/src/components/Pagination/styles.js.map +0 -1
  646. package/lib/es/src/components/PopOver/README.md.js +0 -2
  647. package/lib/es/src/components/PopOver/README.md.js.map +0 -1
  648. package/lib/es/src/components/PopOver/index.js +0 -2
  649. package/lib/es/src/components/PopOver/index.js.map +0 -1
  650. package/lib/es/src/components/PopOver/styles.js +0 -2
  651. package/lib/es/src/components/PopOver/styles.js.map +0 -1
  652. package/lib/es/src/components/ProgressBar/README.md.js +0 -2
  653. package/lib/es/src/components/ProgressBar/README.md.js.map +0 -1
  654. package/lib/es/src/components/ProgressBar/index.js +0 -2
  655. package/lib/es/src/components/ProgressBar/index.js.map +0 -1
  656. package/lib/es/src/components/ProgressBar/styles.js +0 -2
  657. package/lib/es/src/components/ProgressBar/styles.js.map +0 -1
  658. package/lib/es/src/components/Radio/README.md.js +0 -2
  659. package/lib/es/src/components/Radio/README.md.js.map +0 -1
  660. package/lib/es/src/components/Radio/index.js +0 -2
  661. package/lib/es/src/components/Radio/index.js.map +0 -1
  662. package/lib/es/src/components/Radio/styles.js +0 -2
  663. package/lib/es/src/components/Radio/styles.js.map +0 -1
  664. package/lib/es/src/components/RadioConsent/README.md.js +0 -2
  665. package/lib/es/src/components/RadioConsent/README.md.js.map +0 -1
  666. package/lib/es/src/components/RadioConsent/index.js +0 -2
  667. package/lib/es/src/components/RadioConsent/index.js.map +0 -1
  668. package/lib/es/src/components/RadioConsent/styles.js +0 -2
  669. package/lib/es/src/components/RadioConsent/styles.js.map +0 -1
  670. package/lib/es/src/components/Select/README.md.js +0 -2
  671. package/lib/es/src/components/Select/README.md.js.map +0 -1
  672. package/lib/es/src/components/Select/index.js +0 -2
  673. package/lib/es/src/components/Select/index.js.map +0 -1
  674. package/lib/es/src/components/Select/styles.js +0 -2
  675. package/lib/es/src/components/Select/styles.js.map +0 -1
  676. package/lib/es/src/components/Spacing/index.js +0 -2
  677. package/lib/es/src/components/Spacing/index.js.map +0 -1
  678. package/lib/es/src/components/Step/README.md.js +0 -2
  679. package/lib/es/src/components/Step/README.md.js.map +0 -1
  680. package/lib/es/src/components/Step/index.js +0 -2
  681. package/lib/es/src/components/Step/index.js.map +0 -1
  682. package/lib/es/src/components/Step/styles.js +0 -2
  683. package/lib/es/src/components/Step/styles.js.map +0 -1
  684. package/lib/es/src/components/Text/README.md.js +0 -2
  685. package/lib/es/src/components/Text/README.md.js.map +0 -1
  686. package/lib/es/src/components/Text/index.js +0 -2
  687. package/lib/es/src/components/Text/index.js.map +0 -1
  688. package/lib/es/src/components/Text/styles.js +0 -2
  689. package/lib/es/src/components/Text/styles.js.map +0 -1
  690. package/lib/es/src/components/TextAreaField/README.md.js +0 -2
  691. package/lib/es/src/components/TextAreaField/README.md.js.map +0 -1
  692. package/lib/es/src/components/TextAreaField/index.js +0 -2
  693. package/lib/es/src/components/TextAreaField/index.js.map +0 -1
  694. package/lib/es/src/components/TextAreaField/styles.js +0 -2
  695. package/lib/es/src/components/TextAreaField/styles.js.map +0 -1
  696. package/lib/es/src/components/TextField/README.md.js +0 -2
  697. package/lib/es/src/components/TextField/README.md.js.map +0 -1
  698. package/lib/es/src/components/TextField/index.js +0 -2
  699. package/lib/es/src/components/TextField/index.js.map +0 -1
  700. package/lib/es/src/components/TextField/styles.js +0 -2
  701. package/lib/es/src/components/TextField/styles.js.map +0 -1
  702. package/lib/es/src/components/Totaliser/README.md.js +0 -2
  703. package/lib/es/src/components/Totaliser/README.md.js.map +0 -1
  704. package/lib/es/src/components/Totaliser/index.js +0 -2
  705. package/lib/es/src/components/Totaliser/index.js.map +0 -1
  706. package/lib/es/src/components/Totaliser/styles.js +0 -2
  707. package/lib/es/src/components/Totaliser/styles.js.map +0 -1
  708. package/lib/es/src/components/UserBlock/README.md.js +0 -2
  709. package/lib/es/src/components/UserBlock/README.md.js.map +0 -1
  710. package/lib/es/src/components/UserBlock/index.js +0 -2
  711. package/lib/es/src/components/UserBlock/index.js.map +0 -1
  712. package/lib/es/src/components/UserBlock/styles.js +0 -2
  713. package/lib/es/src/components/UserBlock/styles.js.map +0 -1
  714. package/lib/es/src/components/index.js +0 -2
  715. package/lib/es/src/components/index.js.map +0 -1
  716. package/lib/es/src/hooks/useEffectBrowser.js +0 -2
  717. package/lib/es/src/hooks/useEffectBrowser.js.map +0 -1
  718. package/lib/es/src/hooks/useKey.js +0 -2
  719. package/lib/es/src/hooks/useKey.js.map +0 -1
  720. package/lib/es/src/hooks/useLayoutEffectBrowser.js +0 -2
  721. package/lib/es/src/hooks/useLayoutEffectBrowser.js.map +0 -1
  722. package/lib/es/src/hooks/useScrollPosition.js +0 -2
  723. package/lib/es/src/hooks/useScrollPosition.js.map +0 -1
  724. package/lib/es/src/themes/cruk.js +0 -2
  725. package/lib/es/src/themes/cruk.js.map +0 -1
  726. package/lib/es/src/themes/su2c.js +0 -2
  727. package/lib/es/src/themes/su2c.js.map +0 -1
  728. package/lib/es/src/utils/Helper.js +0 -2
  729. package/lib/es/src/utils/Helper.js.map +0 -1
  730. package/lib/es/src/utils/debounce.js +0 -2
  731. package/lib/es/src/utils/debounce.js.map +0 -1
  732. package/lib/hocs/MdxProvider.d.ts +0 -6
  733. package/lib/hooks/useEffectBrowser.d.ts +0 -3
  734. package/lib/hooks/useKey.d.ts +0 -6
  735. package/lib/hooks/useLayoutEffectBrowser.d.ts +0 -4
  736. package/lib/hooks/useScrollPosition.d.ts +0 -13
  737. package/lib/themes/cruk.d.ts +0 -13
  738. package/lib/themes/su2c.d.ts +0 -13
  739. package/lib/types.d.ts +0 -228
  740. package/lib/utils/Helper.d.ts +0 -6
  741. package/lib/utils/__tests__/testHelpers.jest.d.ts +0 -1
  742. package/lib/utils/debounce.d.ts +0 -2
@@ -1,2 +0,0 @@
1
- var a="data-focus-lock",o="data-focus-lock-disabled",c="data-no-focus-lock",d="data-autofocus-inside",t="data-no-autofocus";export{c as FOCUS_ALLOW,d as FOCUS_AUTO,o as FOCUS_DISABLED,a as FOCUS_GROUP,t as FOCUS_NO_AUTOFOCUS};
2
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/constants.js"],"sourcesContent":["/**\n * defines a focus group\n */\nexport var FOCUS_GROUP = 'data-focus-lock';\n/**\n * disables element discovery inside a group marked by key\n */\nexport var FOCUS_DISABLED = 'data-focus-lock-disabled';\n/**\n * allows uncontrolled focus within the marked area, effectively disabling focus lock for it's content\n */\nexport var FOCUS_ALLOW = 'data-no-focus-lock';\n/**\n * instructs autofocus engine to pick default autofocus inside a given node\n * can be set on the element or container\n */\nexport var FOCUS_AUTO = 'data-autofocus-inside';\n/**\n * instructs autofocus to ignore elements within a given node\n * can be set on the element or container\n */\nexport var FOCUS_NO_AUTOFOCUS = 'data-no-autofocus';\n"],"names":["FOCUS_GROUP","FOCUS_DISABLED","FOCUS_ALLOW","FOCUS_AUTO","FOCUS_NO_AUTOFOCUS"],"mappings":"AAGU,IAACA,EAAc,kBAIdC,EAAiB,2BAIjBC,EAAc,qBAKdC,EAAa,wBAKbC,EAAqB"}
@@ -1,2 +0,0 @@
1
- import{contains as t}from"./utils/DOMutils.js";import{getAllAffectedNodes as e}from"./utils/all-affected.js";import{toArray as r}from"./utils/array.js";import{getActiveElement as o}from"./utils/getActiveElement.js";var u=function(t){return Boolean(r(t.querySelectorAll("iframe")).some((function(t){return t===document.activeElement})))},n=function(r){var n=document&&o();return!(!n||n.dataset&&n.dataset.focusGuard)&&e(r).some((function(e){return t(e,n)||u(e)}))};export{n as focusInside};
2
- //# sourceMappingURL=focusInside.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"focusInside.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/focusInside.js"],"sourcesContent":["import { contains } from './utils/DOMutils';\nimport { getAllAffectedNodes } from './utils/all-affected';\nimport { toArray } from './utils/array';\nimport { getActiveElement } from './utils/getActiveElement';\nvar focusInFrame = function (frame) { return frame === document.activeElement; };\nvar focusInsideIframe = function (topNode) {\n return Boolean(toArray(topNode.querySelectorAll('iframe')).some(function (node) { return focusInFrame(node); }));\n};\n/**\n * @returns {Boolean} true, if the current focus is inside given node or nodes\n */\nexport var focusInside = function (topNode) {\n var activeElement = document && getActiveElement();\n if (!activeElement || (activeElement.dataset && activeElement.dataset.focusGuard)) {\n return false;\n }\n return getAllAffectedNodes(topNode).some(function (node) { return contains(node, activeElement) || focusInsideIframe(node); });\n};\n"],"names":["focusInsideIframe","topNode","Boolean","toArray","querySelectorAll","some","node","document","activeElement","focusInside","getActiveElement","dataset","focusGuard","getAllAffectedNodes","contains"],"mappings":"uNAIA,IACIA,EAAoB,SAAUC,GAC9B,OAAOC,QAAQC,EAAQF,EAAQG,iBAAiB,WAAWC,MAAK,SAAUC,GAAQ,OAAoBA,IAFnDC,SAASC,aAEgD,IAChH,EAIWC,EAAc,SAAUR,GAC/B,IAAIO,EAAgBD,UAAYG,IAChC,SAAKF,GAAkBA,EAAcG,SAAWH,EAAcG,QAAQC,aAG/DC,EAAoBZ,GAASI,MAAK,SAAUC,GAAQ,OAAOQ,EAASR,EAAME,IAAkBR,EAAkBM,EAAQ,GACjI"}
@@ -1,2 +0,0 @@
1
- import{FOCUS_ALLOW as t}from"./constants.js";import{contains as r}from"./utils/DOMutils.js";import{toArray as o}from"./utils/array.js";import{getActiveElement as e}from"./utils/getActiveElement.js";var m=function(){var m=document&&e();return!!m&&o(document.querySelectorAll("[".concat(t,"]"))).some((function(t){return r(t,m)}))};export{m as focusIsHidden};
2
- //# sourceMappingURL=focusIsHidden.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"focusIsHidden.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/focusIsHidden.js"],"sourcesContent":["import { FOCUS_ALLOW } from './constants';\nimport { contains } from './utils/DOMutils';\nimport { toArray } from './utils/array';\nimport { getActiveElement } from './utils/getActiveElement';\n/**\n * focus is hidden FROM the focus-lock\n * ie contained inside a node focus-lock shall ignore\n * @returns {boolean} focus is currently is in \"allow\" area\n */\nexport var focusIsHidden = function () {\n var activeElement = document && getActiveElement();\n if (!activeElement) {\n return false;\n }\n // this does not support setting FOCUS_ALLOW within shadow dom\n return toArray(document.querySelectorAll(\"[\".concat(FOCUS_ALLOW, \"]\"))).some(function (node) { return contains(node, activeElement); });\n};\n"],"names":["focusIsHidden","activeElement","document","getActiveElement","toArray","querySelectorAll","concat","FOCUS_ALLOW","some","node","contains"],"mappings":"sMASU,IAACA,EAAgB,WACvB,IAAIC,EAAgBC,UAAYC,IAChC,QAAKF,GAIEG,EAAQF,SAASG,iBAAiB,IAAIC,OAAOC,EAAa,OAAOC,MAAK,SAAUC,GAAQ,OAAOC,EAASD,EAAMR,EAAe,GACxI"}
@@ -1,2 +0,0 @@
1
- import{newFocus as t,NEW_FOCUS as r}from"./solver.js";import{getAllTabbableNodes as n,getTabbableNodes as o,filterAutoFocusable as i}from"./utils/DOMutils.js";import{getAllAffectedNodes as e}from"./utils/all-affected.js";import{pickFirstFocus as u}from"./utils/firstFocus.js";import{getActiveElement as f}from"./utils/getActiveElement.js";import{isNotAGuard as s,isDefined as m,getDataset as a}from"./utils/is.js";import{getTopCommonParent as l,allParentAutofocusables as c}from"./utils/parenting.js";var p=function(p,d){var v=document&&f(),j=e(p).filter(s),g=l(v||p,p,j),M=new Map,h=n(j,M),w=o(j,M).filter((function(t){var r=t.node;return s(r)}));if(w[0]||(w=h)[0]){var x,E,O,A,D=n([g],M).map((function(t){return t.node})),F=(x=D,E=w,O=new Map,E.forEach((function(t){return O.set(t.node,t)})),x.map((function(t){return O.get(t)})).filter(m)),b=F.map((function(t){return t.node})),k=t(b,D,v,d);if(k===r){var q=i(h.map((function(t){return t.node}))).filter((A=c(j,M),function(t){var r;return t.autofocus||!!(null===(r=a(t))||void 0===r?void 0:r.autofocus)||A.indexOf(t)>=0}));return{node:q&&q.length?u(q):u(i(b))}}return void 0===k?k:F[k]}};export{p as getFocusMerge};
2
- //# sourceMappingURL=focusMerge.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"focusMerge.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/focusMerge.js"],"sourcesContent":["import { NEW_FOCUS, newFocus } from './solver';\nimport { filterAutoFocusable, getAllTabbableNodes, getTabbableNodes } from './utils/DOMutils';\nimport { getAllAffectedNodes } from './utils/all-affected';\nimport { pickFirstFocus } from './utils/firstFocus';\nimport { getActiveElement } from './utils/getActiveElement';\nimport { getDataset, isDefined, isNotAGuard } from './utils/is';\nimport { allParentAutofocusables, getTopCommonParent } from './utils/parenting';\nvar findAutoFocused = function (autoFocusables) {\n return function (node) { var _a; \n // @ts-expect-error\n return node.autofocus || !!((_a = getDataset(node)) === null || _a === void 0 ? void 0 : _a.autofocus) || autoFocusables.indexOf(node) >= 0; };\n};\nvar reorderNodes = function (srcNodes, dstNodes) {\n var remap = new Map();\n // no Set(dstNodes) for IE11 :(\n dstNodes.forEach(function (entity) { return remap.set(entity.node, entity); });\n // remap to dstNodes\n return srcNodes.map(function (node) { return remap.get(node); }).filter(isDefined);\n};\n/**\n * given top node(s) and the last active element return the element to be focused next\n * @param topNode\n * @param lastNode\n */\nexport var getFocusMerge = function (topNode, lastNode) {\n var activeElement = document && getActiveElement();\n var entries = getAllAffectedNodes(topNode).filter(isNotAGuard);\n var commonParent = getTopCommonParent(activeElement || topNode, topNode, entries);\n var visibilityCache = new Map();\n var anyFocusable = getAllTabbableNodes(entries, visibilityCache);\n var innerElements = getTabbableNodes(entries, visibilityCache).filter(function (_a) {\n var node = _a.node;\n return isNotAGuard(node);\n });\n if (!innerElements[0]) {\n innerElements = anyFocusable;\n if (!innerElements[0]) {\n return undefined;\n }\n }\n var outerNodes = getAllTabbableNodes([commonParent], visibilityCache).map(function (_a) {\n var node = _a.node;\n return node;\n });\n var orderedInnerElements = reorderNodes(outerNodes, innerElements);\n var innerNodes = orderedInnerElements.map(function (_a) {\n var node = _a.node;\n return node;\n });\n var newId = newFocus(innerNodes, outerNodes, activeElement, lastNode);\n if (newId === NEW_FOCUS) {\n var autoFocusable = filterAutoFocusable(anyFocusable.map(function (_a) {\n var node = _a.node;\n return node;\n })).filter(findAutoFocused(allParentAutofocusables(entries, visibilityCache)));\n return {\n node: autoFocusable && autoFocusable.length\n ? pickFirstFocus(autoFocusable)\n : pickFirstFocus(filterAutoFocusable(innerNodes)),\n };\n }\n if (newId === undefined) {\n return newId;\n }\n return orderedInnerElements[newId];\n};\n"],"names":["getFocusMerge","topNode","lastNode","activeElement","document","getActiveElement","entries","getAllAffectedNodes","filter","isNotAGuard","commonParent","getTopCommonParent","visibilityCache","Map","anyFocusable","getAllTabbableNodes","innerElements","getTabbableNodes","_a","node","srcNodes","dstNodes","remap","autoFocusables","outerNodes","map","orderedInnerElements","forEach","entity","set","get","isDefined","innerNodes","newId","newFocus","NEW_FOCUS","autoFocusable","filterAutoFocusable","allParentAutofocusables","autofocus","getDataset","indexOf","length","pickFirstFocus","undefined"],"mappings":"qfAOA,IAiBWA,EAAgB,SAAUC,EAASC,GAC1C,IAAIC,EAAgBC,UAAYC,IAC5BC,EAAUC,EAAoBN,GAASO,OAAOC,GAC9CC,EAAeC,EAAmBR,GAAiBF,EAASA,EAASK,GACrEM,EAAkB,IAAIC,IACtBC,EAAeC,EAAoBT,EAASM,GAC5CI,EAAgBC,EAAiBX,EAASM,GAAiBJ,QAAO,SAAUU,GAC5E,IAAIC,EAAOD,EAAGC,KACd,OAAOV,EAAYU,EAC3B,IACI,GAAKH,EAAc,KACfA,EAAgBF,GACG,GAFvB,CAMA,IA5ByBM,EAAUC,EAC/BC,EANwBC,EAiCxBC,EAAaT,EAAoB,CAACL,GAAeE,GAAiBa,KAAI,SAAUP,GAEhF,OADWA,EAAGC,IAEtB,IACQO,GAhCqBN,EAgCeI,EAhCLH,EAgCiBL,EA/BhDM,EAAQ,IAAIT,IAEhBQ,EAASM,SAAQ,SAAUC,GAAU,OAAON,EAAMO,IAAID,EAAOT,KAAMS,EAAU,IAEtER,EAASK,KAAI,SAAUN,GAAQ,OAAOG,EAAMQ,IAAIX,EAAQ,IAAEX,OAAOuB,IA4BpEC,EAAaN,EAAqBD,KAAI,SAAUP,GAEhD,OADWA,EAAGC,IAEtB,IACQc,EAAQC,EAASF,EAAYR,EAAYrB,EAAeD,GAC5D,GAAI+B,IAAUE,EAAW,CACrB,IAAIC,EAAgBC,EAAoBvB,EAAaW,KAAI,SAAUP,GAE/D,OADWA,EAAGC,IAE1B,KAAYX,QA/CoBe,EA+CGe,EAAwBhC,EAASM,GA9CzD,SAAUO,GAAQ,IAAID,EAE7B,OAAOC,EAAKoB,cAA4C,QAA3BrB,EAAKsB,EAAWrB,UAA0B,IAAPD,OAAgB,EAASA,EAAGqB,YAAchB,EAAekB,QAAQtB,IAAS,KA6CtI,MAAO,CACHA,KAAMiB,GAAiBA,EAAcM,OAC/BC,EAAeP,GACfO,EAAeN,EAAoBL,IAEhD,CACD,YAAcY,IAAVX,EACOA,EAEJP,EAAqBO,EAzB3B,CA0BL"}
@@ -1,2 +0,0 @@
1
- import{getTabbableNodes as r}from"./utils/DOMutils.js";import{getAllAffectedNodes as t}from"./utils/all-affected.js";import{isNotAGuard as n,isGuard as i}from"./utils/is.js";import{getTopCommonParent as e}from"./utils/parenting.js";var o=function(o){var u=t(o).filter(n),f=e(o,o,u),a=new Map,m=r([f],a,!0),l=r(u,a).filter((function(r){var t=r.node;return n(t)})).map((function(r){return r.node}));return m.map((function(r){var t=r.node;return{node:t,index:r.index,lockItem:l.indexOf(t)>=0,guard:i(t)}}))};export{o as getFocusabledIn};
2
- //# sourceMappingURL=focusables.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"focusables.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/focusables.js"],"sourcesContent":["import { getTabbableNodes } from './utils/DOMutils';\nimport { getAllAffectedNodes } from './utils/all-affected';\nimport { isGuard, isNotAGuard } from './utils/is';\nimport { getTopCommonParent } from './utils/parenting';\n/**\n * return list of focusable elements inside a given top node\n * @deprecated use {@link getFocusableIn}. Yep, there is typo in the function name\n */\nexport var getFocusabledIn = function (topNode) {\n var entries = getAllAffectedNodes(topNode).filter(isNotAGuard);\n var commonParent = getTopCommonParent(topNode, topNode, entries);\n var visibilityCache = new Map();\n var outerNodes = getTabbableNodes([commonParent], visibilityCache, true);\n var innerElements = getTabbableNodes(entries, visibilityCache)\n .filter(function (_a) {\n var node = _a.node;\n return isNotAGuard(node);\n })\n .map(function (_a) {\n var node = _a.node;\n return node;\n });\n return outerNodes.map(function (_a) {\n var node = _a.node, index = _a.index;\n return ({\n node: node,\n index: index,\n lockItem: innerElements.indexOf(node) >= 0,\n guard: isGuard(node),\n });\n });\n};\n/**\n * return list of focusable elements inside a given top node\n */\nexport var getFocusableIn = getFocusabledIn;\n"],"names":["getFocusabledIn","topNode","entries","getAllAffectedNodes","filter","isNotAGuard","commonParent","getTopCommonParent","visibilityCache","Map","outerNodes","getTabbableNodes","innerElements","_a","node","map","index","lockItem","indexOf","guard","isGuard"],"mappings":"wOAQU,IAACA,EAAkB,SAAUC,GACnC,IAAIC,EAAUC,EAAoBF,GAASG,OAAOC,GAC9CC,EAAeC,EAAmBN,EAASA,EAASC,GACpDM,EAAkB,IAAIC,IACtBC,EAAaC,EAAiB,CAACL,GAAeE,GAAiB,GAC/DI,EAAgBD,EAAiBT,EAASM,GACzCJ,QAAO,SAAUS,GAClB,IAAIC,EAAOD,EAAGC,KACd,OAAOT,EAAYS,EAC3B,IACSC,KAAI,SAAUF,GAEf,OADWA,EAAGC,IAEtB,IACI,OAAOJ,EAAWK,KAAI,SAAUF,GAC5B,IAAIC,EAAOD,EAAGC,KACd,MAAQ,CACJA,KAAMA,EACNE,MAHwBH,EAAGG,MAI3BC,SAAUL,EAAcM,QAAQJ,IAAS,EACzCK,MAAOC,EAAQN,GAE3B,GACA"}
@@ -1,2 +0,0 @@
1
- import{setFocus as o}from"./setFocus.js";var r=o;export{r as default};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/index.js"],"sourcesContent":["import * as constants from './constants';\nimport { focusInside } from './focusInside';\nimport { focusIsHidden } from './focusIsHidden';\nimport { getFocusMerge as focusMerge } from './focusMerge';\nimport { getFocusabledIn, getFocusableIn } from './focusables';\nimport { setFocus } from './setFocus';\nimport { focusNextElement, focusPrevElement } from './sibling';\nimport tabHook from './tabHook';\nimport { getAllAffectedNodes } from './utils/all-affected';\nimport { getActiveElement } from './utils/getActiveElement';\nexport { tabHook, focusInside, focusIsHidden, focusMerge, getFocusableIn, getFocusabledIn, constants, getAllAffectedNodes, focusNextElement, focusPrevElement, getActiveElement, };\nexport default setFocus;\n//\n"],"names":["moveFocusInside","setFocus"],"mappings":"yCAWA,IAAAA,EAAeC"}
@@ -1,2 +0,0 @@
1
- import{getFocusMerge as o}from"./focusMerge.js";var n=function(o,n){"focus"in o&&o.focus(n),"contentWindow"in o&&o.contentWindow&&o.contentWindow.focus()},t=0,e=!1,c=function(c,i,s){void 0===s&&(s={});var f=o(c,i);if(!e&&f){if(t>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),e=!0,void setTimeout((function(){e=!1}),1);t++,n(f.node,s.focusOptions),t--}};export{n as focusOn,c as setFocus};
2
- //# sourceMappingURL=setFocus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setFocus.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/setFocus.js"],"sourcesContent":["import { getFocusMerge } from './focusMerge';\nexport var focusOn = function (target, focusOptions) {\n if ('focus' in target) {\n target.focus(focusOptions);\n }\n if ('contentWindow' in target && target.contentWindow) {\n target.contentWindow.focus();\n }\n};\nvar guardCount = 0;\nvar lockDisabled = false;\n/**\n * Sets focus at a given node. The last focused element will help to determine which element(first or last) should be focused.\n * HTML markers (see {@link import('./constants').FOCUS_AUTO} constants) can control autofocus\n * @param topNode\n * @param lastNode\n * @param options\n */\nexport var setFocus = function (topNode, lastNode, options) {\n if (options === void 0) { options = {}; }\n var focusable = getFocusMerge(topNode, lastNode);\n if (lockDisabled) {\n return;\n }\n if (focusable) {\n if (guardCount > 2) {\n // tslint:disable-next-line:no-console\n console.error('FocusLock: focus-fighting detected. Only one focus management system could be active. ' +\n 'See https://github.com/theKashey/focus-lock/#focus-fighting');\n lockDisabled = true;\n setTimeout(function () {\n lockDisabled = false;\n }, 1);\n return;\n }\n guardCount++;\n focusOn(focusable.node, options.focusOptions);\n guardCount--;\n }\n};\n"],"names":["focusOn","target","focusOptions","focus","contentWindow","guardCount","lockDisabled","setFocus","topNode","lastNode","options","focusable","getFocusMerge","console","error","setTimeout","node"],"mappings":"gDACU,IAACA,EAAU,SAAUC,EAAQC,GAC/B,UAAWD,GACXA,EAAOE,MAAMD,GAEb,kBAAmBD,GAAUA,EAAOG,eACpCH,EAAOG,cAAcD,OAE7B,EACIE,EAAa,EACbC,GAAe,EAQRC,EAAW,SAAUC,EAASC,EAAUC,QAC/B,IAAZA,IAAsBA,EAAU,CAAE,GACtC,IAAIC,EAAYC,EAAcJ,EAASC,GACvC,IAAIH,GAGAK,EAAW,CACX,GAAIN,EAAa,EAQb,OANAQ,QAAQC,MAAM,qJAEdR,GAAe,OACfS,YAAW,WACPT,GAAe,CAClB,GAAE,GAGPD,IACAL,EAAQW,EAAUK,KAAMN,EAAQR,cAChCG,GACH,CACL"}
@@ -1,2 +0,0 @@
1
- import{correctNodes as i}from"./utils/correctFocus.js";import{pickFocusable as t}from"./utils/firstFocus.js";import{isGuard as r}from"./utils/is.js";var f="NEW_FOCUS",o=function(f,o,s,e){var n=f.length,a=f[0],d=f[n-1],O=r(s);if(!(s&&f.indexOf(s)>=0)){var x=void 0!==s?o.indexOf(s):-1,u=e?o.indexOf(e):x,m=e?f.indexOf(e):-1,v=x-u,c=o.indexOf(a),h=o.indexOf(d),b=i(o),l=(void 0!==s?b.indexOf(s):-1)-(e?b.indexOf(e):x),p=t(f,0),F=t(f,n-1);return-1===x||-1===m?"NEW_FOCUS":!v&&m>=0?m:x<=c&&O&&Math.abs(v)>1?F:x>=h&&O&&Math.abs(v)>1?p:v&&Math.abs(l)>1?m:x<=c?F:x>h?p:v?Math.abs(v)>1?m:(n+m+v)%n:void 0}};export{f as NEW_FOCUS,o as newFocus};
2
- //# sourceMappingURL=solver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"solver.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/solver.js"],"sourcesContent":["import { correctNodes } from './utils/correctFocus';\nimport { pickFocusable } from './utils/firstFocus';\nimport { isGuard } from './utils/is';\nexport var NEW_FOCUS = 'NEW_FOCUS';\n/**\n * Main solver for the \"find next focus\" question\n * @param innerNodes\n * @param outerNodes\n * @param activeElement\n * @param lastNode\n * @returns {number|string|undefined|*}\n */\nexport var newFocus = function (innerNodes, outerNodes, activeElement, lastNode) {\n var cnt = innerNodes.length;\n var firstFocus = innerNodes[0];\n var lastFocus = innerNodes[cnt - 1];\n var isOnGuard = isGuard(activeElement);\n // focus is inside\n if (activeElement && innerNodes.indexOf(activeElement) >= 0) {\n return undefined;\n }\n var activeIndex = activeElement !== undefined ? outerNodes.indexOf(activeElement) : -1;\n var lastIndex = lastNode ? outerNodes.indexOf(lastNode) : activeIndex;\n var lastNodeInside = lastNode ? innerNodes.indexOf(lastNode) : -1;\n var indexDiff = activeIndex - lastIndex;\n var firstNodeIndex = outerNodes.indexOf(firstFocus);\n var lastNodeIndex = outerNodes.indexOf(lastFocus);\n var correctedNodes = correctNodes(outerNodes);\n var correctedIndex = activeElement !== undefined ? correctedNodes.indexOf(activeElement) : -1;\n var correctedIndexDiff = correctedIndex - (lastNode ? correctedNodes.indexOf(lastNode) : activeIndex);\n var returnFirstNode = pickFocusable(innerNodes, 0);\n var returnLastNode = pickFocusable(innerNodes, cnt - 1);\n // new focus\n if (activeIndex === -1 || lastNodeInside === -1) {\n return NEW_FOCUS;\n }\n // old focus\n if (!indexDiff && lastNodeInside >= 0) {\n return lastNodeInside;\n }\n // first element\n if (activeIndex <= firstNodeIndex && isOnGuard && Math.abs(indexDiff) > 1) {\n return returnLastNode;\n }\n // last element\n if (activeIndex >= lastNodeIndex && isOnGuard && Math.abs(indexDiff) > 1) {\n return returnFirstNode;\n }\n // jump out, but not on the guard\n if (indexDiff && Math.abs(correctedIndexDiff) > 1) {\n return lastNodeInside;\n }\n // focus above lock\n if (activeIndex <= firstNodeIndex) {\n return returnLastNode;\n }\n // focus below lock\n if (activeIndex > lastNodeIndex) {\n return returnFirstNode;\n }\n // index is inside tab order, but outside Lock\n if (indexDiff) {\n if (Math.abs(indexDiff) > 1) {\n return lastNodeInside;\n }\n return (cnt + lastNodeInside + indexDiff) % cnt;\n }\n // do nothing\n return undefined;\n};\n"],"names":["NEW_FOCUS","newFocus","innerNodes","outerNodes","activeElement","lastNode","cnt","length","firstFocus","lastFocus","isOnGuard","isGuard","indexOf","activeIndex","undefined","lastIndex","lastNodeInside","indexDiff","firstNodeIndex","lastNodeIndex","correctedNodes","correctNodes","correctedIndexDiff","returnFirstNode","pickFocusable","returnLastNode","Math","abs"],"mappings":"qJAGU,IAACA,EAAY,YASZC,EAAW,SAAUC,EAAYC,EAAYC,EAAeC,GACnE,IAAIC,EAAMJ,EAAWK,OACjBC,EAAaN,EAAW,GACxBO,EAAYP,EAAWI,EAAM,GAC7BI,EAAYC,EAAQP,GAExB,KAAIA,GAAiBF,EAAWU,QAAQR,IAAkB,GAA1D,CAGA,IAAIS,OAAgCC,IAAlBV,EAA8BD,EAAWS,QAAQR,IAAkB,EACjFW,EAAYV,EAAWF,EAAWS,QAAQP,GAAYQ,EACtDG,EAAiBX,EAAWH,EAAWU,QAAQP,IAAa,EAC5DY,EAAYJ,EAAcE,EAC1BG,EAAiBf,EAAWS,QAAQJ,GACpCW,EAAgBhB,EAAWS,QAAQH,GACnCW,EAAiBC,EAAalB,GAE9BmB,QADmCR,IAAlBV,EAA8BgB,EAAeR,QAAQR,IAAkB,IACjDC,EAAWe,EAAeR,QAAQP,GAAYQ,GACrFU,EAAkBC,EAActB,EAAY,GAC5CuB,EAAiBD,EAActB,EAAYI,EAAM,GAErD,OAAqB,IAAjBO,IAA0C,IAApBG,EA9BP,aAkCdC,GAAaD,GAAkB,EACzBA,EAGPH,GAAeK,GAAkBR,GAAagB,KAAKC,IAAIV,GAAa,EAC7DQ,EAGPZ,GAAeM,GAAiBT,GAAagB,KAAKC,IAAIV,GAAa,EAC5DM,EAGPN,GAAaS,KAAKC,IAAIL,GAAsB,EACrCN,EAGPH,GAAeK,EACRO,EAGPZ,EAAcM,EACPI,EAGPN,EACIS,KAAKC,IAAIV,GAAa,EACfD,GAEHV,EAAMU,EAAiBC,GAAaX,OAJhD,CAzCC,CAiDL"}
@@ -1,2 +0,0 @@
1
- import{toArray as r}from"./array.js";import{isVisibleCached as t,notHiddenInput as n,isAutoFocusAllowedCached as o}from"./is.js";import{orderByTabIndex as i}from"./tabOrder.js";import{getFocusables as e,getParentAutofocusables as u}from"./tabUtils.js";var f=function(o,i){return r(o).filter((function(r){return t(i,r)})).filter((function(r){return n(r)}))},c=function(t,n){return void 0===n&&(n=new Map),r(t).filter((function(r){return o(n,r)}))},a=function(r,t,n){return i(f(e(r,n),t),!0,n)},s=function(r,t){return i(f(e(r),t),!1)},m=function(r,t){return f(u(r),t)},l=function(t,n){return(t.shadowRoot?l(t.shadowRoot,n):Object.getPrototypeOf(t).contains.call(t,n))||r(t.children).some((function(r){return l(r,n)}))};export{l as contains,c as filterAutoFocusable,f as filterFocusable,s as getAllTabbableNodes,a as getTabbableNodes,m as parentAutofocusables};
2
- //# sourceMappingURL=DOMutils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DOMutils.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/DOMutils.js"],"sourcesContent":["import { toArray } from './array';\nimport { isAutoFocusAllowedCached, isVisibleCached, notHiddenInput } from './is';\nimport { orderByTabIndex } from './tabOrder';\nimport { getFocusables, getParentAutofocusables } from './tabUtils';\n/**\n * given list of focusable elements keeps the ones user can interact with\n * @param nodes\n * @param visibilityCache\n */\nexport var filterFocusable = function (nodes, visibilityCache) {\n return toArray(nodes)\n .filter(function (node) { return isVisibleCached(visibilityCache, node); })\n .filter(function (node) { return notHiddenInput(node); });\n};\nexport var filterAutoFocusable = function (nodes, cache) {\n if (cache === void 0) { cache = new Map(); }\n return toArray(nodes).filter(function (node) { return isAutoFocusAllowedCached(cache, node); });\n};\n/**\n * only tabbable ones\n * (but with guards which would be ignored)\n */\nexport var getTabbableNodes = function (topNodes, visibilityCache, withGuards) {\n return orderByTabIndex(filterFocusable(getFocusables(topNodes, withGuards), visibilityCache), true, withGuards);\n};\n/**\n * actually anything \"focusable\", not only tabbable\n * (without guards, as long as they are not expected to be focused)\n */\nexport var getAllTabbableNodes = function (topNodes, visibilityCache) {\n return orderByTabIndex(filterFocusable(getFocusables(topNodes), visibilityCache), false);\n};\n/**\n * return list of nodes which are expected to be auto-focused\n * @param topNode\n * @param visibilityCache\n */\nexport var parentAutofocusables = function (topNode, visibilityCache) {\n return filterFocusable(getParentAutofocusables(topNode), visibilityCache);\n};\n/*\n * Determines if element is contained in scope, including nested shadow DOMs\n */\nexport var contains = function (scope, element) {\n return ((scope.shadowRoot\n ? contains(scope.shadowRoot, element)\n : Object.getPrototypeOf(scope).contains.call(scope, element)) ||\n toArray(scope.children).some(function (child) { return contains(child, element); }));\n};\n"],"names":["filterFocusable","nodes","visibilityCache","toArray","filter","node","isVisibleCached","notHiddenInput","filterAutoFocusable","cache","Map","isAutoFocusAllowedCached","getTabbableNodes","topNodes","withGuards","orderByTabIndex","getFocusables","getAllTabbableNodes","parentAutofocusables","topNode","getParentAutofocusables","contains","scope","element","shadowRoot","Object","getPrototypeOf","call","children","some","child"],"mappings":"4PASU,IAACA,EAAkB,SAAUC,EAAOC,GAC1C,OAAOC,EAAQF,GACVG,QAAO,SAAUC,GAAQ,OAAOC,EAAgBJ,EAAiBG,MACjED,QAAO,SAAUC,GAAQ,OAAOE,EAAeF,EAAM,GAC9D,EACWG,EAAsB,SAAUP,EAAOQ,GAE9C,YADc,IAAVA,IAAoBA,EAAQ,IAAIC,KAC7BP,EAAQF,GAAOG,QAAO,SAAUC,GAAQ,OAAOM,EAAyBF,EAAOJ,EAAQ,GAClG,EAKWO,EAAmB,SAAUC,EAAUX,EAAiBY,GAC/D,OAAOC,EAAgBf,EAAgBgB,EAAcH,EAAUC,GAAaZ,IAAkB,EAAMY,EACxG,EAKWG,EAAsB,SAAUJ,EAAUX,GACjD,OAAOa,EAAgBf,EAAgBgB,EAAcH,GAAWX,IAAkB,EACtF,EAMWgB,EAAuB,SAAUC,EAASjB,GACjD,OAAOF,EAAgBoB,EAAwBD,GAAUjB,EAC7D,EAIWmB,EAAW,SAAUC,EAAOC,GACnC,OAASD,EAAME,WACTH,EAASC,EAAME,WAAYD,GAC3BE,OAAOC,eAAeJ,GAAOD,SAASM,KAAKL,EAAOC,KACpDpB,EAAQmB,EAAMM,UAAUC,MAAK,SAAUC,GAAS,OAAOT,EAASS,EAAOP,EAAW,GAC1F"}
@@ -1,2 +0,0 @@
1
- import{FOCUS_GROUP as r,FOCUS_DISABLED as t}from"../constants.js";import{toArray as e,asArray as n}from"./array.js";var o=function(r){return r.parentNode?o(r.parentNode):r},a=function(a){return n(a).filter(Boolean).reduce((function(n,a){var c=a.getAttribute(r);return n.push.apply(n,c?function(r){for(var t=new Set,e=r.length,n=0;n<e;n+=1)for(var o=n+1;o<e;o+=1){var a=r[n].compareDocumentPosition(r[o]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(n)}return r.filter((function(r,e){return!t.has(e)}))}(e(o(a).querySelectorAll("[".concat(r,'="').concat(c,'"]:not([').concat(t,'="disabled"])')))):[a]),n}),[])};export{a as getAllAffectedNodes};
2
- //# sourceMappingURL=all-affected.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"all-affected.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/all-affected.js"],"sourcesContent":["import { FOCUS_DISABLED, FOCUS_GROUP } from '../constants';\nimport { asArray, toArray } from './array';\n/**\n * in case of multiple nodes nested inside each other\n * keeps only top ones\n * this is O(nlogn)\n * @param nodes\n * @returns {*}\n */\nvar filterNested = function (nodes) {\n var contained = new Set();\n var l = nodes.length;\n for (var i = 0; i < l; i += 1) {\n for (var j = i + 1; j < l; j += 1) {\n var position = nodes[i].compareDocumentPosition(nodes[j]);\n /* eslint-disable no-bitwise */\n if ((position & Node.DOCUMENT_POSITION_CONTAINED_BY) > 0) {\n contained.add(j);\n }\n if ((position & Node.DOCUMENT_POSITION_CONTAINS) > 0) {\n contained.add(i);\n }\n /* eslint-enable */\n }\n }\n return nodes.filter(function (_, index) { return !contained.has(index); });\n};\n/**\n * finds top most parent for a node\n * @param node\n * @returns {*}\n */\nvar getTopParent = function (node) {\n return node.parentNode ? getTopParent(node.parentNode) : node;\n};\n/**\n * returns all \"focus containers\" inside a given node\n * @param node\n * @returns {T}\n */\nexport var getAllAffectedNodes = function (node) {\n var nodes = asArray(node);\n return nodes.filter(Boolean).reduce(function (acc, currentNode) {\n var group = currentNode.getAttribute(FOCUS_GROUP);\n acc.push.apply(acc, (group\n ? filterNested(toArray(getTopParent(currentNode).querySelectorAll(\"[\".concat(FOCUS_GROUP, \"=\\\"\").concat(group, \"\\\"]:not([\").concat(FOCUS_DISABLED, \"=\\\"disabled\\\"])\"))))\n : [currentNode]));\n return acc;\n }, []);\n};\n"],"names":["getTopParent","node","parentNode","getAllAffectedNodes","asArray","filter","Boolean","reduce","acc","currentNode","group","getAttribute","FOCUS_GROUP","push","apply","nodes","contained","Set","l","length","i","j","position","compareDocumentPosition","Node","DOCUMENT_POSITION_CONTAINED_BY","add","DOCUMENT_POSITION_CONTAINS","_","index","has","filterNested","toArray","querySelectorAll","concat","FOCUS_DISABLED"],"mappings":"oHASA,IAuBIA,EAAe,SAAUC,GACzB,OAAOA,EAAKC,WAAaF,EAAaC,EAAKC,YAAcD,CAC7D,EAMWE,EAAsB,SAAUF,GAEvC,OADYG,EAAQH,GACPI,OAAOC,SAASC,QAAO,SAAUC,EAAKC,GAC/C,IAAIC,EAAQD,EAAYE,aAAaC,GAIrC,OAHAJ,EAAIK,KAAKC,MAAMN,EAAME,EAnCV,SAAUK,GAGzB,IAFA,IAAIC,EAAY,IAAIC,IAChBC,EAAIH,EAAMI,OACLC,EAAI,EAAGA,EAAIF,EAAGE,GAAK,EACxB,IAAK,IAAIC,EAAID,EAAI,EAAGC,EAAIH,EAAGG,GAAK,EAAG,CAC/B,IAAIC,EAAWP,EAAMK,GAAGG,wBAAwBR,EAAMM,KAEjDC,EAAWE,KAAKC,gCAAkC,GACnDT,EAAUU,IAAIL,IAEbC,EAAWE,KAAKG,4BAA8B,GAC/CX,EAAUU,IAAIN,EAGrB,CAEL,OAAOL,EAAMV,QAAO,SAAUuB,EAAGC,GAAS,OAAQb,EAAUc,IAAID,EAAS,GAC7E,CAmBcE,CAAaC,EAAQhC,EAAaS,GAAawB,iBAAiB,IAAIC,OAAOtB,EAAa,MAAOsB,OAAOxB,EAAO,YAAawB,OAAOC,EAAgB,oBACjJ,CAAC1B,IACAD,CACV,GAAE,GACP"}
@@ -1,2 +0,0 @@
1
- var r=function(r){for(var n=Array(r.length),t=0;t<r.length;++t)n[t]=r[t];return n},n=function(r){return Array.isArray(r)?r:[r]};export{n as asArray,r as toArray};
2
- //# sourceMappingURL=array.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"array.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/array.js"],"sourcesContent":["/*\nIE11 support\n */\nexport var toArray = function (a) {\n var ret = Array(a.length);\n for (var i = 0; i < a.length; ++i) {\n ret[i] = a[i];\n }\n return ret;\n};\nexport var asArray = function (a) { return (Array.isArray(a) ? a : [a]); };\n"],"names":["toArray","a","ret","Array","length","i","asArray","isArray"],"mappings":"AAGU,IAACA,EAAU,SAAUC,GAE3B,IADA,IAAIC,EAAMC,MAAMF,EAAEG,QACTC,EAAI,EAAGA,EAAIJ,EAAEG,SAAUC,EAC5BH,EAAIG,GAAKJ,EAAEI,GAEf,OAAOH,CACX,EACWI,EAAU,SAAUL,GAAK,OAAQE,MAAMI,QAAQN,GAAKA,EAAI,CAACA,EAAI"}
@@ -1,2 +0,0 @@
1
- import{isRadioElement as n}from"./is.js";var r=function(r,t){return n(r)&&r.name?function(r,t){return t.filter(n).filter((function(n){return n.name===r.name})).filter((function(n){return n.checked}))[0]||r}(r,t):r},t=function(n){var t=new Set;return n.forEach((function(e){return t.add(r(e,n))})),n.filter((function(n){return t.has(n)}))};export{r as correctNode,t as correctNodes};
2
- //# sourceMappingURL=correctFocus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"correctFocus.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/correctFocus.js"],"sourcesContent":["import { isRadioElement } from './is';\nvar findSelectedRadio = function (node, nodes) {\n return nodes\n .filter(isRadioElement)\n .filter(function (el) { return el.name === node.name; })\n .filter(function (el) { return el.checked; })[0] || node;\n};\nexport var correctNode = function (node, nodes) {\n if (isRadioElement(node) && node.name) {\n return findSelectedRadio(node, nodes);\n }\n return node;\n};\n/**\n * giving a set of radio inputs keeps only selected (tabbable) ones\n * @param nodes\n */\nexport var correctNodes = function (nodes) {\n // IE11 has no Set(array) constructor\n var resultSet = new Set();\n nodes.forEach(function (node) { return resultSet.add(correctNode(node, nodes)); });\n // using filter to support IE11\n return nodes.filter(function (node) { return resultSet.has(node); });\n};\n"],"names":["correctNode","node","nodes","isRadioElement","name","filter","el","checked","findSelectedRadio","correctNodes","resultSet","Set","forEach","add","has"],"mappings":"yCACA,IAMWA,EAAc,SAAUC,EAAMC,GACrC,OAAIC,EAAeF,IAASA,EAAKG,KAPb,SAAUH,EAAMC,GACpC,OAAOA,EACFG,OAAOF,GACPE,QAAO,SAAUC,GAAM,OAAOA,EAAGF,OAASH,EAAKG,QAC/CC,QAAO,SAAUC,GAAM,OAAOA,EAAGC,WAAY,IAAMN,CAC5D,CAGeO,CAAkBP,EAAMC,GAE5BD,CACX,EAKWQ,EAAe,SAAUP,GAEhC,IAAIQ,EAAY,IAAIC,IAGpB,OAFAT,EAAMU,SAAQ,SAAUX,GAAQ,OAAOS,EAAUG,IAAIb,EAAYC,EAAMC,GAAU,IAE1EA,EAAMG,QAAO,SAAUJ,GAAQ,OAAOS,EAAUI,IAAIb,EAAM,GACrE"}
@@ -1,2 +0,0 @@
1
- import{correctNode as r}from"./correctFocus.js";var n=function(n){return n[0]&&n.length>1?r(n[0],n):n[0]},t=function(n,t){return n.length>1?n.indexOf(r(n[t],n)):t};export{n as pickFirstFocus,t as pickFocusable};
2
- //# sourceMappingURL=firstFocus.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"firstFocus.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/firstFocus.js"],"sourcesContent":["import { correctNode } from './correctFocus';\nexport var pickFirstFocus = function (nodes) {\n if (nodes[0] && nodes.length > 1) {\n return correctNode(nodes[0], nodes);\n }\n return nodes[0];\n};\nexport var pickFocusable = function (nodes, index) {\n if (nodes.length > 1) {\n return nodes.indexOf(correctNode(nodes[index], nodes));\n }\n return index;\n};\n"],"names":["pickFirstFocus","nodes","length","correctNode","pickFocusable","index","indexOf"],"mappings":"gDACU,IAACA,EAAiB,SAAUC,GAClC,OAAIA,EAAM,IAAMA,EAAMC,OAAS,EACpBC,EAAYF,EAAM,GAAIA,GAE1BA,EAAM,EACjB,EACWG,EAAgB,SAAUH,EAAOI,GACxC,OAAIJ,EAAMC,OAAS,EACRD,EAAMK,QAAQH,EAAYF,EAAMI,GAAQJ,IAE5CI,CACX"}
@@ -1,2 +0,0 @@
1
- var e=function(t){return t.activeElement?t.activeElement.shadowRoot?e(t.activeElement.shadowRoot):t.activeElement:void 0},t=function(){return document.activeElement?document.activeElement.shadowRoot?e(document.activeElement.shadowRoot):document.activeElement:void 0};export{t as getActiveElement};
2
- //# sourceMappingURL=getActiveElement.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getActiveElement.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/getActiveElement.js"],"sourcesContent":["var getNestedShadowActiveElement = function (shadowRoot) {\n return shadowRoot.activeElement\n ? shadowRoot.activeElement.shadowRoot\n ? getNestedShadowActiveElement(shadowRoot.activeElement.shadowRoot)\n : shadowRoot.activeElement\n : undefined;\n};\n/**\n * returns active element from document or from nested shadowdoms\n */\nexport var getActiveElement = function () {\n return (document.activeElement\n ? document.activeElement.shadowRoot\n ? getNestedShadowActiveElement(document.activeElement.shadowRoot)\n : document.activeElement\n : undefined); // eslint-disable-next-line @typescript-eslint/no-explicit-any\n};\n"],"names":["getNestedShadowActiveElement","shadowRoot","activeElement","undefined","getActiveElement","document"],"mappings":"AAAA,IAAIA,EAA+B,SAAUC,GACzC,OAAOA,EAAWC,cACZD,EAAWC,cAAcD,WACrBD,EAA6BC,EAAWC,cAAcD,YACtDA,EAAWC,mBACfC,CACV,EAIWC,EAAmB,WAC1B,OAAQC,SAASH,cACXG,SAASH,cAAcD,WACnBD,EAA6BK,SAASH,cAAcD,YACpDI,SAASH,mBACbC,CACV"}
@@ -1,2 +0,0 @@
1
- import{FOCUS_NO_AUTOFOCUS as n}from"../constants.js";var t=function(n){return n.parentNode&&n.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?n.parentNode.host:n.parentNode},e=function(n){return n===document||n&&n.nodeType===Node.DOCUMENT_NODE},r=function(n,r){return!n||e(n)||!function(n){if(n.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(n,null);return!(!t||!t.getPropertyValue||"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility"))}(n)&&r(t(n))},o=function(n,t){var e=n.get(t);if(void 0!==e)return e;var u=r(t,o.bind(void 0,n));return n.set(t,u),u},u=function(n,r){var o=n.get(r);if(void 0!==o)return o;var i=function(n,r){return!(n&&!e(n))||!!N(n)&&r(t(n))}(r,u.bind(void 0,n));return n.set(r,i),i},i=function(n){return n.dataset},d=function(n){return"BUTTON"===n.tagName},a=function(n){return"INPUT"===n.tagName},f=function(n){return a(n)&&"radio"===n.type},c=function(n){return!((a(n)||d(n))&&("hidden"===n.type||n.disabled))},N=function(t){var e=t.getAttribute(n);return![!0,"true",""].includes(e)},p=function(n){var t;return Boolean(n&&(null===(t=i(n))||void 0===t?void 0:t.focusGuard))},v=function(n){return!p(n)},l=function(n){return Boolean(n)};export{i as getDataset,N as isAutoFocusAllowed,u as isAutoFocusAllowedCached,l as isDefined,p as isGuard,d as isHTMLButtonElement,a as isHTMLInputElement,v as isNotAGuard,f as isRadioElement,o as isVisibleCached,c as notHiddenInput};
2
- //# sourceMappingURL=is.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"is.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/is.js"],"sourcesContent":["import { FOCUS_NO_AUTOFOCUS } from '../constants';\nvar isElementHidden = function (node) {\n // we can measure only \"elements\"\n // consider others as \"visible\"\n if (node.nodeType !== Node.ELEMENT_NODE) {\n return false;\n }\n var computedStyle = window.getComputedStyle(node, null);\n if (!computedStyle || !computedStyle.getPropertyValue) {\n return false;\n }\n return (computedStyle.getPropertyValue('display') === 'none' || computedStyle.getPropertyValue('visibility') === 'hidden');\n};\nvar getParentNode = function (node) {\n // DOCUMENT_FRAGMENT_NODE can also point on ShadowRoot. In this case .host will point on the next node\n return node.parentNode && node.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE\n ? // eslint-disable-next-line @typescript-eslint/no-explicit-any\n node.parentNode.host\n : node.parentNode;\n};\nvar isTopNode = function (node) {\n // @ts-ignore\n return node === document || (node && node.nodeType === Node.DOCUMENT_NODE);\n};\nvar isVisibleUncached = function (node, checkParent) {\n return !node || isTopNode(node) || (!isElementHidden(node) && checkParent(getParentNode(node)));\n};\nexport var isVisibleCached = function (visibilityCache, node) {\n var cached = visibilityCache.get(node);\n if (cached !== undefined) {\n return cached;\n }\n var result = isVisibleUncached(node, isVisibleCached.bind(undefined, visibilityCache));\n visibilityCache.set(node, result);\n return result;\n};\nvar isAutoFocusAllowedUncached = function (node, checkParent) {\n return node && !isTopNode(node) ? (isAutoFocusAllowed(node) ? checkParent(getParentNode(node)) : false) : true;\n};\nexport var isAutoFocusAllowedCached = function (cache, node) {\n var cached = cache.get(node);\n if (cached !== undefined) {\n return cached;\n }\n var result = isAutoFocusAllowedUncached(node, isAutoFocusAllowedCached.bind(undefined, cache));\n cache.set(node, result);\n return result;\n};\nexport var getDataset = function (node) {\n // @ts-ignore\n return node.dataset;\n};\nexport var isHTMLButtonElement = function (node) { return node.tagName === 'BUTTON'; };\nexport var isHTMLInputElement = function (node) { return node.tagName === 'INPUT'; };\nexport var isRadioElement = function (node) {\n return isHTMLInputElement(node) && node.type === 'radio';\n};\nexport var notHiddenInput = function (node) {\n return !((isHTMLInputElement(node) || isHTMLButtonElement(node)) && (node.type === 'hidden' || node.disabled));\n};\nexport var isAutoFocusAllowed = function (node) {\n var attribute = node.getAttribute(FOCUS_NO_AUTOFOCUS);\n return ![true, 'true', ''].includes(attribute);\n};\nexport var isGuard = function (node) { var _a; return Boolean(node && ((_a = getDataset(node)) === null || _a === void 0 ? void 0 : _a.focusGuard)); };\nexport var isNotAGuard = function (node) { return !isGuard(node); };\nexport var isDefined = function (x) { return Boolean(x); };\n"],"names":["getParentNode","node","parentNode","nodeType","Node","DOCUMENT_FRAGMENT_NODE","host","isTopNode","document","DOCUMENT_NODE","isVisibleUncached","checkParent","ELEMENT_NODE","computedStyle","window","getComputedStyle","getPropertyValue","isElementHidden","isVisibleCached","visibilityCache","cached","get","undefined","result","bind","set","isAutoFocusAllowedCached","cache","isAutoFocusAllowed","isAutoFocusAllowedUncached","getDataset","dataset","isHTMLButtonElement","tagName","isHTMLInputElement","isRadioElement","type","notHiddenInput","disabled","attribute","getAttribute","FOCUS_NO_AUTOFOCUS","includes","isGuard","_a","Boolean","focusGuard","isNotAGuard","isDefined","x"],"mappings":"qDACA,IAYIA,EAAgB,SAAUC,GAE1B,OAAOA,EAAKC,YAAcD,EAAKC,WAAWC,WAAaC,KAAKC,uBAEpDJ,EAAKC,WAAWI,KAClBL,EAAKC,UACf,EACIK,EAAY,SAAUN,GAEtB,OAAOA,IAASO,UAAaP,GAAQA,EAAKE,WAAaC,KAAKK,aAChE,EACIC,EAAoB,SAAUT,EAAMU,GACpC,OAAQV,GAAQM,EAAUN,KAxBR,SAAUA,GAG5B,GAAIA,EAAKE,WAAaC,KAAKQ,aACvB,OAAO,EAEX,IAAIC,EAAgBC,OAAOC,iBAAiBd,EAAM,MAClD,SAAKY,IAAkBA,EAAcG,kBAGiB,SAA9CH,EAAcG,iBAAiB,YAA0E,WAAjDH,EAAcG,iBAAiB,cACnG,CAayCC,CAAgBhB,IAASU,EAAYX,EAAcC,GAC5F,EACWiB,EAAkB,SAAUC,EAAiBlB,GACpD,IAAImB,EAASD,EAAgBE,IAAIpB,GACjC,QAAeqB,IAAXF,EACA,OAAOA,EAEX,IAAIG,EAASb,EAAkBT,EAAMiB,EAAgBM,UAAKF,EAAWH,IAErE,OADAA,EAAgBM,IAAIxB,EAAMsB,GACnBA,CACX,EAIWG,EAA2B,SAAUC,EAAO1B,GACnD,IAAImB,EAASO,EAAMN,IAAIpB,GACvB,QAAeqB,IAAXF,EACA,OAAOA,EAEX,IAAIG,EARyB,SAAUtB,EAAMU,GAC7C,QAAOV,IAASM,EAAUN,OAAS2B,EAAmB3B,IAAQU,EAAYX,EAAcC,GAC5F,CAMiB4B,CAA2B5B,EAAMyB,EAAyBF,UAAKF,EAAWK,IAEvF,OADAA,EAAMF,IAAIxB,EAAMsB,GACTA,CACX,EACWO,EAAa,SAAU7B,GAE9B,OAAOA,EAAK8B,OAChB,EACWC,EAAsB,SAAU/B,GAAQ,MAAwB,WAAjBA,EAAKgC,OAAwB,EAC5EC,EAAqB,SAAUjC,GAAQ,MAAwB,UAAjBA,EAAKgC,OAAuB,EAC1EE,EAAiB,SAAUlC,GAClC,OAAOiC,EAAmBjC,IAAuB,UAAdA,EAAKmC,IAC5C,EACWC,EAAiB,SAAUpC,GAClC,SAAUiC,EAAmBjC,IAAS+B,EAAoB/B,MAAyB,WAAdA,EAAKmC,MAAqBnC,EAAKqC,UACxG,EACWV,EAAqB,SAAU3B,GACtC,IAAIsC,EAAYtC,EAAKuC,aAAaC,GAClC,OAAQ,EAAC,EAAM,OAAQ,IAAIC,SAASH,EACxC,EACWI,EAAU,SAAU1C,GAAQ,IAAI2C,EAAI,OAAOC,QAAQ5C,IAAqC,QAA3B2C,EAAKd,EAAW7B,UAA0B,IAAP2C,OAAgB,EAASA,EAAGE,YAAgB,EAC5IC,EAAc,SAAU9C,GAAQ,OAAQ0C,EAAQ1C,EAAS,EACzD+C,EAAY,SAAUC,GAAK,OAAOJ,QAAQI,EAAG"}
@@ -1,2 +0,0 @@
1
- import{contains as r,parentAutofocusables as n}from"./DOMutils.js";import{asArray as o}from"./array.js";var t=function(r,n){return void 0===n&&(n=[]),n.push(r),r.parentNode&&t(r.parentNode.host||r.parentNode,n),n},e=function(r,n){for(var o=t(r),e=t(n),f=0;f<o.length;f+=1){var u=o[f];if(e.indexOf(u)>=0)return u}return!1},f=function(n,t,f){var u=o(n),a=o(t),i=u[0],c=!1;return a.filter(Boolean).forEach((function(n){c=e(c||n,n)||c,f.filter(Boolean).forEach((function(n){var o=e(i,n);o&&(c=!c||r(o,c)?o:e(o,c))}))})),c},u=function(r,o){return r.reduce((function(r,t){return r.concat(n(t,o))}),[])};export{u as allParentAutofocusables,e as getCommonParent,f as getTopCommonParent};
2
- //# sourceMappingURL=parenting.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parenting.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/parenting.js"],"sourcesContent":["import { parentAutofocusables } from './DOMutils';\nimport { contains } from './DOMutils';\nimport { asArray } from './array';\nvar getParents = function (node, parents) {\n if (parents === void 0) { parents = []; }\n parents.push(node);\n if (node.parentNode) {\n getParents(node.parentNode.host || node.parentNode, parents);\n }\n return parents;\n};\n/**\n * finds a parent for both nodeA and nodeB\n * @param nodeA\n * @param nodeB\n * @returns {boolean|*}\n */\nexport var getCommonParent = function (nodeA, nodeB) {\n var parentsA = getParents(nodeA);\n var parentsB = getParents(nodeB);\n // tslint:disable-next-line:prefer-for-of\n for (var i = 0; i < parentsA.length; i += 1) {\n var currentParent = parentsA[i];\n if (parentsB.indexOf(currentParent) >= 0) {\n return currentParent;\n }\n }\n return false;\n};\nexport var getTopCommonParent = function (baseActiveElement, leftEntry, rightEntries) {\n var activeElements = asArray(baseActiveElement);\n var leftEntries = asArray(leftEntry);\n var activeElement = activeElements[0];\n var topCommon = false;\n leftEntries.filter(Boolean).forEach(function (entry) {\n topCommon = getCommonParent(topCommon || entry, entry) || topCommon;\n rightEntries.filter(Boolean).forEach(function (subEntry) {\n var common = getCommonParent(activeElement, subEntry);\n if (common) {\n if (!topCommon || contains(common, topCommon)) {\n topCommon = common;\n }\n else {\n topCommon = getCommonParent(common, topCommon);\n }\n }\n });\n });\n // TODO: add assert here?\n return topCommon;\n};\n/**\n * return list of nodes which are expected to be autofocused inside a given top nodes\n * @param entries\n * @param visibilityCache\n */\nexport var allParentAutofocusables = function (entries, visibilityCache) {\n return entries.reduce(function (acc, node) { return acc.concat(parentAutofocusables(node, visibilityCache)); }, []);\n};\n"],"names":["getParents","node","parents","push","parentNode","host","getCommonParent","nodeA","nodeB","parentsA","parentsB","i","length","currentParent","indexOf","getTopCommonParent","baseActiveElement","leftEntry","rightEntries","activeElements","asArray","leftEntries","activeElement","topCommon","filter","Boolean","forEach","entry","subEntry","common","contains","allParentAutofocusables","entries","visibilityCache","reduce","acc","concat","parentAutofocusables"],"mappings":"wGAGA,IAAIA,EAAa,SAAUC,EAAMC,GAM7B,YALgB,IAAZA,IAAsBA,EAAU,IACpCA,EAAQC,KAAKF,GACTA,EAAKG,YACLJ,EAAWC,EAAKG,WAAWC,MAAQJ,EAAKG,WAAYF,GAEjDA,CACX,EAOWI,EAAkB,SAAUC,EAAOC,GAI1C,IAHA,IAAIC,EAAWT,EAAWO,GACtBG,EAAWV,EAAWQ,GAEjBG,EAAI,EAAGA,EAAIF,EAASG,OAAQD,GAAK,EAAG,CACzC,IAAIE,EAAgBJ,EAASE,GAC7B,GAAID,EAASI,QAAQD,IAAkB,EACnC,OAAOA,CAEd,CACD,OAAO,CACX,EACWE,EAAqB,SAAUC,EAAmBC,EAAWC,GACpE,IAAIC,EAAiBC,EAAQJ,GACzBK,EAAcD,EAAQH,GACtBK,EAAgBH,EAAe,GAC/BI,GAAY,EAgBhB,OAfAF,EAAYG,OAAOC,SAASC,SAAQ,SAAUC,GAC1CJ,EAAYjB,EAAgBiB,GAAaI,EAAOA,IAAUJ,EAC1DL,EAAaM,OAAOC,SAASC,SAAQ,SAAUE,GAC3C,IAAIC,EAASvB,EAAgBgB,EAAeM,GACxCC,IAEIN,GADCA,GAAaO,EAASD,EAAQN,GACnBM,EAGAvB,EAAgBuB,EAAQN,GAGxD,GACA,IAEWA,CACX,EAMWQ,EAA0B,SAAUC,EAASC,GACpD,OAAOD,EAAQE,QAAO,SAAUC,EAAKlC,GAAQ,OAAOkC,EAAIC,OAAOC,EAAqBpC,EAAMgC,GAAoB,GAAE,GACpH"}
@@ -1,2 +0,0 @@
1
- import{toArray as n}from"./array.js";var t=function(n,t){var r=n.tabIndex-t.tabIndex,e=n.index-t.index;if(r){if(!n.tabIndex)return 1;if(!t.tabIndex)return-1}return r||e},r=function(r,e,a){return n(r).map((function(n,t){return{node:n,index:t,tabIndex:a&&-1===n.tabIndex?(n.dataset||{}).focusGuard?0:-1:n.tabIndex}})).filter((function(n){return!e||n.tabIndex>=0})).sort(t)};export{r as orderByTabIndex,t as tabSort};
2
- //# sourceMappingURL=tabOrder.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tabOrder.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/tabOrder.js"],"sourcesContent":["import { toArray } from './array';\nexport var tabSort = function (a, b) {\n var tabDiff = a.tabIndex - b.tabIndex;\n var indexDiff = a.index - b.index;\n if (tabDiff) {\n if (!a.tabIndex) {\n return 1;\n }\n if (!b.tabIndex) {\n return -1;\n }\n }\n return tabDiff || indexDiff;\n};\nexport var orderByTabIndex = function (nodes, filterNegative, keepGuards) {\n return toArray(nodes)\n .map(function (node, index) { return ({\n node: node,\n index: index,\n tabIndex: keepGuards && node.tabIndex === -1 ? ((node.dataset || {}).focusGuard ? 0 : -1) : node.tabIndex,\n }); })\n .filter(function (data) { return !filterNegative || data.tabIndex >= 0; })\n .sort(tabSort);\n};\n"],"names":["tabSort","a","b","tabDiff","tabIndex","indexDiff","index","orderByTabIndex","nodes","filterNegative","keepGuards","toArray","map","node","dataset","focusGuard","filter","data","sort"],"mappings":"qCACU,IAACA,EAAU,SAAUC,EAAGC,GAC9B,IAAIC,EAAUF,EAAEG,SAAWF,EAAEE,SACzBC,EAAYJ,EAAEK,MAAQJ,EAAEI,MAC5B,GAAIH,EAAS,CACT,IAAKF,EAAEG,SACH,OAAO,EAEX,IAAKF,EAAEE,SACH,OAAQ,CAEf,CACD,OAAOD,GAAWE,CACtB,EACWE,EAAkB,SAAUC,EAAOC,EAAgBC,GAC1D,OAAOC,EAAQH,GACVI,KAAI,SAAUC,EAAMP,GAAS,MAAQ,CACtCO,KAAMA,EACNP,MAAOA,EACPF,SAAUM,IAAiC,IAAnBG,EAAKT,UAAoBS,EAAKC,SAAW,CAAA,GAAIC,WAAa,GAAK,EAAKF,EAAKT,aAEhGY,QAAO,SAAUC,GAAQ,OAAQR,GAAkBQ,EAAKb,UAAY,KACpEc,KAAKlB,EACd"}
@@ -1,2 +0,0 @@
1
- import{FOCUS_AUTO as r}from"../constants.js";import{toArray as n}from"./array.js";import{tabbables as t}from"./tabbables.js";var o=t.join(","),e="".concat(o,", [data-focus-guard]"),c=function(r,t){var u;return n((null===(u=r.shadowRoot)||void 0===u?void 0:u.children)||r.children).reduce((function(r,n){return r.concat(n.matches(t?e:o)?[n]:[],c(n))}),[])},u=function(r,t){return r.reduce((function(r,e){return r.concat(c(e,t),e.parentNode?n(e.parentNode.querySelectorAll(o)).filter((function(r){return r===e})):[])}),[])},a=function(t){var o=t.querySelectorAll("[".concat(r,"]"));return n(o).map((function(r){return u([r])})).reduce((function(r,n){return r.concat(n)}),[])};export{u as getFocusables,a as getParentAutofocusables};
2
- //# sourceMappingURL=tabUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tabUtils.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/tabUtils.js"],"sourcesContent":["import { FOCUS_AUTO } from '../constants';\nimport { toArray } from './array';\nimport { tabbables } from './tabbables';\nvar queryTabbables = tabbables.join(',');\nvar queryGuardTabbables = \"\".concat(queryTabbables, \", [data-focus-guard]\");\nvar getFocusablesWithShadowDom = function (parent, withGuards) {\n var _a;\n return toArray(((_a = parent.shadowRoot) === null || _a === void 0 ? void 0 : _a.children) || parent.children).reduce(function (acc, child) {\n return acc.concat(child.matches(withGuards ? queryGuardTabbables : queryTabbables) ? [child] : [], getFocusablesWithShadowDom(child));\n }, []);\n};\nexport var getFocusables = function (parents, withGuards) {\n return parents.reduce(function (acc, parent) {\n return acc.concat(\n // add all tabbables inside and within shadow DOMs in DOM order\n getFocusablesWithShadowDom(parent, withGuards), \n // add if node is tabbable itself\n parent.parentNode\n ? toArray(parent.parentNode.querySelectorAll(queryTabbables)).filter(function (node) { return node === parent; })\n : []);\n }, []);\n};\n/**\n * return a list of focusable nodes within an area marked as \"auto-focusable\"\n * @param parent\n */\nexport var getParentAutofocusables = function (parent) {\n var parentFocus = parent.querySelectorAll(\"[\".concat(FOCUS_AUTO, \"]\"));\n return toArray(parentFocus)\n .map(function (node) { return getFocusables([node]); })\n .reduce(function (acc, nodes) { return acc.concat(nodes); }, []);\n};\n"],"names":["queryTabbables","tabbables","join","queryGuardTabbables","concat","getFocusablesWithShadowDom","parent","withGuards","_a","toArray","shadowRoot","children","reduce","acc","child","matches","getFocusables","parents","parentNode","querySelectorAll","filter","node","getParentAutofocusables","parentFocus","FOCUS_AUTO","map","nodes"],"mappings":"6HAGA,IAAIA,EAAiBC,EAAUC,KAAK,KAChCC,EAAsB,GAAGC,OAAOJ,EAAgB,wBAChDK,EAA6B,SAAUC,EAAQC,GAC/C,IAAIC,EACJ,OAAOC,GAAsC,QAA5BD,EAAKF,EAAOI,kBAA+B,IAAPF,OAAgB,EAASA,EAAGG,WAAaL,EAAOK,UAAUC,QAAO,SAAUC,EAAKC,GACjI,OAAOD,EAAIT,OAAOU,EAAMC,QAAQR,EAAaJ,EAAsBH,GAAkB,CAACc,GAAS,GAAIT,EAA2BS,GACjI,GAAE,GACP,EACWE,EAAgB,SAAUC,EAASV,GAC1C,OAAOU,EAAQL,QAAO,SAAUC,EAAKP,GACjC,OAAOO,EAAIT,OAEXC,EAA2BC,EAAQC,GAEnCD,EAAOY,WACDT,EAAQH,EAAOY,WAAWC,iBAAiBnB,IAAiBoB,QAAO,SAAUC,GAAQ,OAAOA,IAASf,CAAO,IAC5G,GACT,GAAE,GACP,EAKWgB,EAA0B,SAAUhB,GAC3C,IAAIiB,EAAcjB,EAAOa,iBAAiB,IAAIf,OAAOoB,EAAY,MACjE,OAAOf,EAAQc,GACVE,KAAI,SAAUJ,GAAQ,OAAOL,EAAc,CAACK,OAC5CT,QAAO,SAAUC,EAAKa,GAAS,OAAOb,EAAIT,OAAOsB,KAAW,GACrE"}
@@ -1,2 +0,0 @@
1
- var e=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"];export{e as tabbables};
2
- //# sourceMappingURL=tabbables.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tabbables.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/tabbables.js"],"sourcesContent":["/**\n * list of the object to be considered as focusable\n */\nexport var tabbables = [\n 'button:enabled',\n 'select:enabled',\n 'textarea:enabled',\n 'input:enabled',\n // elements with explicit roles will also use explicit tabindex\n // '[role=\"button\"]',\n 'a[href]',\n 'area[href]',\n 'summary',\n 'iframe',\n 'object',\n 'embed',\n 'audio[controls]',\n 'video[controls]',\n '[tabindex]',\n '[contenteditable]',\n '[autofocus]',\n];\n"],"names":["tabbables"],"mappings":"AAGU,IAACA,EAAY,CACnB,iBACA,iBACA,mBACA,gBAGA,UACA,aACA,UACA,SACA,SACA,QACA,kBACA,kBACA,aACA,oBACA"}
@@ -1,2 +0,0 @@
1
- import e from"../../@babel/runtime/helpers/esm/inheritsLoose.js";import n from"../../@babel/runtime/helpers/esm/defineProperty.js";import t,{PureComponent as o}from"react";function r(r,i){if("production"!==process.env.NODE_ENV){if("function"!=typeof r)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof i)throw new Error("Expected handleStateChangeOnClient to be a function.")}return function(p){if("production"!==process.env.NODE_ENV&&"function"!=typeof p)throw new Error("Expected WrappedComponent to be a React component.");var c,u=[];function f(){c=r(u.map((function(e){return e.props}))),i(c)}var a=function(n){function o(){return n.apply(this,arguments)||this}e(o,n),o.peek=function(){return c};var r=o.prototype;return r.componentDidMount=function(){u.push(this),f()},r.componentDidUpdate=function(){f()},r.componentWillUnmount=function(){var e=u.indexOf(this);u.splice(e,1),f()},r.render=function(){return t.createElement(p,this.props)},o}(o);return n(a,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(p)+")"),a}}export{r as default};
2
- //# sourceMappingURL=index.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es.js","sources":["../../../../../node_modules/react-clientside-effect/lib/index.es.js"],"sourcesContent":["import _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport _defineProperty from '@babel/runtime/helpers/esm/defineProperty';\nimport React, { PureComponent } from 'react';\n\nfunction withSideEffect(reducePropsToState, handleStateChangeOnClient) {\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof reducePropsToState !== 'function') {\n throw new Error('Expected reducePropsToState to be a function.');\n }\n\n if (typeof handleStateChangeOnClient !== 'function') {\n throw new Error('Expected handleStateChangeOnClient to be a function.');\n }\n }\n\n function getDisplayName(WrappedComponent) {\n return WrappedComponent.displayName || WrappedComponent.name || 'Component';\n }\n\n return function wrap(WrappedComponent) {\n if (process.env.NODE_ENV !== \"production\") {\n if (typeof WrappedComponent !== 'function') {\n throw new Error('Expected WrappedComponent to be a React component.');\n }\n }\n\n var mountedInstances = [];\n var state;\n\n function emitChange() {\n state = reducePropsToState(mountedInstances.map(function (instance) {\n return instance.props;\n }));\n handleStateChangeOnClient(state);\n }\n\n var SideEffect = /*#__PURE__*/function (_PureComponent) {\n _inheritsLoose(SideEffect, _PureComponent);\n\n function SideEffect() {\n return _PureComponent.apply(this, arguments) || this;\n }\n\n // Try to use displayName of wrapped component\n SideEffect.peek = function peek() {\n return state;\n };\n\n var _proto = SideEffect.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n mountedInstances.push(this);\n emitChange();\n };\n\n _proto.componentDidUpdate = function componentDidUpdate() {\n emitChange();\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n var index = mountedInstances.indexOf(this);\n mountedInstances.splice(index, 1);\n emitChange();\n };\n\n _proto.render = function render() {\n return /*#__PURE__*/React.createElement(WrappedComponent, this.props);\n };\n\n return SideEffect;\n }(PureComponent);\n\n _defineProperty(SideEffect, \"displayName\", \"SideEffect(\" + getDisplayName(WrappedComponent) + \")\");\n\n return SideEffect;\n };\n}\n\nexport default withSideEffect;\n"],"names":["withSideEffect","reducePropsToState","handleStateChangeOnClient","process","env","NODE_ENV","Error","WrappedComponent","state","mountedInstances","emitChange","map","instance","props","SideEffect","_PureComponent","apply","this","arguments","_inheritsLoose","peek","_proto","prototype","componentDidMount","push","componentDidUpdate","componentWillUnmount","index","indexOf","splice","render","React","createElement","PureComponent","_defineProperty","displayName","name","getDisplayName"],"mappings":"4KAIA,SAASA,EAAeC,EAAoBC,GAC1C,GAA6B,eAAzBC,QAAQC,IAAIC,SAA2B,CACzC,GAAkC,mBAAvBJ,EACT,MAAM,IAAIK,MAAM,iDAGlB,GAAyC,mBAA9BJ,EACT,MAAM,IAAII,MAAM,uDAEnB,CAMD,OAAO,SAAcC,GACnB,GAA6B,eAAzBJ,QAAQC,IAAIC,UACkB,mBAArBE,EACT,MAAM,IAAID,MAAM,sDAIpB,IACIE,EADAC,EAAmB,GAGvB,SAASC,IACPF,EAAQP,EAAmBQ,EAAiBE,KAAI,SAAUC,GACxD,OAAOA,EAASC,KACjB,KACDX,EAA0BM,EAC3B,CAED,IAAIM,EAA0B,SAAUC,GAGtC,SAASD,IACP,OAAOC,EAAeC,MAAMC,KAAMC,YAAcD,IACjD,CAJDE,EAAeL,EAAYC,GAO3BD,EAAWM,KAAO,WAChB,OAAOZ,CACf,EAEM,IAAIa,EAASP,EAAWQ,UAqBxB,OAnBAD,EAAOE,kBAAoB,WACzBd,EAAiBe,KAAKP,MACtBP,GACR,EAEMW,EAAOI,mBAAqB,WAC1Bf,GACR,EAEMW,EAAOK,qBAAuB,WAC5B,IAAIC,EAAQlB,EAAiBmB,QAAQX,MACrCR,EAAiBoB,OAAOF,EAAO,GAC/BjB,GACR,EAEMW,EAAOS,OAAS,WACd,OAAoBC,EAAMC,cAAczB,EAAkBU,KAAKJ,MACvE,EAEaC,CACR,CAlC6B,CAkC5BmB,GAIF,OAFAC,EAAgBpB,EAAY,cAAe,cAzD7C,SAAwBP,GACtB,OAAOA,EAAiB4B,aAAe5B,EAAiB6B,MAAQ,WACjE,CAuD4DC,CAAe9B,GAAoB,KAEvFO,CACX,CACA"}
@@ -1,2 +0,0 @@
1
- import r from"../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";import e from"../../../@babel/runtime/helpers/esm/extends.js";import*as o from"react";import s from"./Lock.js";import t from"./Trap.js";var p=o.forwardRef((function(r,p){return o.createElement(s,e({sideCar:t,ref:p},r))})),a=s.propTypes||{};a.sideCar;var m=r(a,["sideCar"]);p.propTypes="production"!==process.env.NODE_ENV?m:{};var i=p;export{i as default};
2
- //# sourceMappingURL=Combination.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Combination.js","sources":["../../../../../../node_modules/react-focus-lock/dist/es2015/Combination.js"],"sourcesContent":["import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport FocusLockUI from './Lock';\nimport FocusTrap from './Trap';\n/* that would be a BREAKING CHANGE!\n// delaying sidecar execution till the first usage\nconst RequireSideCar = (props) => {\n // eslint-disable-next-line global-require\n const SideCar = require('./Trap').default;\n return <SideCar {...props} />;\n};\n*/\n\nvar FocusLockCombination = /*#__PURE__*/React.forwardRef(function FocusLockUICombination(props, ref) {\n return /*#__PURE__*/React.createElement(FocusLockUI, _extends({\n sideCar: FocusTrap,\n ref: ref\n }, props));\n});\n\nvar _ref = FocusLockUI.propTypes || {},\n sideCar = _ref.sideCar,\n propTypes = _objectWithoutPropertiesLoose(_ref, [\"sideCar\"]);\n\nFocusLockCombination.propTypes = process.env.NODE_ENV !== \"production\" ? propTypes : {};\nexport default FocusLockCombination;"],"names":["FocusLockCombination","React","forwardRef","props","ref","createElement","FocusLockUI","_extends","sideCar","FocusTrap","_ref","propTypes","_objectWithoutPropertiesLoose","process","env","NODE_ENV","FocusLock"],"mappings":"2NAcA,IAAIA,EAAoCC,EAAMC,YAAW,SAAgCC,EAAOC,GAC9F,OAAoBH,EAAMI,cAAcC,EAAaC,EAAS,CAC5DC,QAASC,EACTL,IAAKA,GACJD,GACL,IAEIO,EAAOJ,EAAYK,WAAa,GACtBD,EAAKF,QACf,IAAAG,EAAYC,EAA8BF,EAAM,CAAC,YAErDV,EAAqBW,UAAqC,eAAzBE,QAAQC,IAAIC,SAA4BJ,EAAY,GACrF,IAAAK,EAAehB"}
@@ -1,2 +0,0 @@
1
- import"react";import p from"prop-types";var o={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};"production"===process.env.NODE_ENV||p.node;export{o as hiddenGuard};
2
- //# sourceMappingURL=FocusGuard.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FocusGuard.js","sources":["../../../../../../node_modules/react-focus-lock/dist/es2015/FocusGuard.js"],"sourcesContent":["import * as React from 'react';\nimport PropTypes from 'prop-types';\nexport var hiddenGuard = {\n width: '1px',\n height: '0px',\n padding: 0,\n overflow: 'hidden',\n position: 'fixed',\n top: '1px',\n left: '1px'\n};\n\nvar InFocusGuard = function InFocusGuard(_ref) {\n var children = _ref.children;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", {\n key: \"guard-first\",\n \"data-focus-guard\": true,\n \"data-focus-auto-guard\": true,\n style: hiddenGuard\n }), children, children && /*#__PURE__*/React.createElement(\"div\", {\n key: \"guard-last\",\n \"data-focus-guard\": true,\n \"data-focus-auto-guard\": true,\n style: hiddenGuard\n }));\n};\n\nInFocusGuard.propTypes = process.env.NODE_ENV !== \"production\" ? {\n children: PropTypes.node\n} : {};\nInFocusGuard.defaultProps = {\n children: null\n};\nexport default InFocusGuard;"],"names":["hiddenGuard","width","height","padding","overflow","position","top","left","process","env","NODE_ENV","PropTypes","node"],"mappings":"wCAEU,IAACA,EAAc,CACvBC,MAAO,MACPC,OAAQ,MACRC,QAAS,EACTC,SAAU,SACVC,SAAU,QACVC,IAAK,MACLC,KAAM,OAkB0C,eAAzBC,QAAQC,IAAIC,UACzBC,EAAUC"}
@@ -1,2 +0,0 @@
1
- import e from"../../../@babel/runtime/helpers/esm/extends.js";import*as o from"react";import{useEffect as t}from"react";import{node as s,bool as r,oneOfType as a,object as n,func as c,string as i,arrayOf as u,any as d}from"prop-types";import{FOCUS_DISABLED as l,FOCUS_GROUP as f}from"../../../focus-lock/dist/es2015/constants.js";import{hiddenGuard as v}from"./FocusGuard.js";import{mediumFocus as m,mediumBlur as p,mediumSidecar as F}from"./medium.js";import{useMergeRefs as b}from"../../../use-callback-ref/dist/es2015/useMergeRef.js";var h=[],k=o.forwardRef((function(s,r){var a,n=o.useState(),c=n[0],i=n[1],u=o.useRef(),d=o.useRef(!1),k=o.useRef(null),E=s.children,g=s.disabled,w=s.noFocusGuards,y=s.persistentFocus,x=s.crossFrame,C=s.autoFocus,N=s.allowTextSelection,P=s.group,R=s.className,j=s.whiteList,D=s.hasPositiveIndices,I=s.shards,L=void 0===I?h:I,O=s.as,S=void 0===O?"div":O,T=s.lockProps,A=void 0===T?{}:T,G=s.sideCar,M=s.returnFocus,V=s.focusOptions,_=s.onActivation,q=s.onDeactivation,B=o.useState({})[0],z=o.useCallback((function(){k.current=k.current||document&&document.activeElement,u.current&&_&&_(u.current),d.current=!0}),[_]),H=o.useCallback((function(){d.current=!1,q&&q(u.current)}),[q]);t((function(){g||(k.current=null)}),[]);var J=o.useCallback((function(e){var o=k.current;if(o&&o.focus){var t="function"==typeof M?M(o):M;if(t){var s="object"==typeof t?t:void 0;k.current=null,e?Promise.resolve().then((function(){return o.focus(s)})):o.focus(s)}}}),[M]),K=o.useCallback((function(e){d.current&&m.useMedium(e)}),[]),Q=p.useMedium,U=o.useCallback((function(e){u.current!==e&&(u.current=e,i(e))}),[]);"production"!==process.env.NODE_ENV&&(void 0!==N&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),o.useEffect((function(){u.current||console.error("FocusLock: could not obtain ref to internal node")}),[]));var W=e(((a={})[l]=g&&"disabled",a[f]=P,a),A),X=!0!==w,Y=X&&"tail"!==w,Z=b([r,U]);return o.createElement(o.Fragment,null,X&&[o.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:g?-1:0,style:v}),D?o.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:g?-1:1,style:v}):null],!g&&o.createElement(G,{id:B,sideCar:F,observed:c,disabled:g,persistentFocus:y,crossFrame:x,autoFocus:C,whiteList:j,shards:L,onActivation:z,onDeactivation:H,returnFocus:J,focusOptions:V}),o.createElement(S,e({ref:Z},W,{className:R,onBlur:Q,onFocus:K}),E),Y&&o.createElement("div",{"data-focus-guard":!0,tabIndex:g?-1:0,style:v}))}));k.propTypes="production"!==process.env.NODE_ENV?{children:s,disabled:r,returnFocus:a([r,n,c]),focusOptions:n,noFocusGuards:r,hasPositiveIndices:r,allowTextSelection:r,autoFocus:r,persistentFocus:r,crossFrame:r,group:i,className:i,whiteList:c,shards:u(d),as:a([i,c,n]),lockProps:n,onActivation:c,onDeactivation:c,sideCar:d.isRequired}:{},k.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var E=k;export{E as default};
2
- //# sourceMappingURL=Lock.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Lock.js","sources":["../../../../../../node_modules/react-focus-lock/dist/es2015/Lock.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { node, bool, string, any, arrayOf, oneOfType, object, func } from 'prop-types';\nimport * as constants from 'focus-lock/constants';\nimport { useMergeRefs } from 'use-callback-ref';\nimport { useEffect } from 'react';\nimport { hiddenGuard } from './FocusGuard';\nimport { mediumFocus, mediumBlur, mediumSidecar } from './medium';\nvar emptyArray = [];\nvar FocusLock = /*#__PURE__*/React.forwardRef(function FocusLockUI(props, parentRef) {\n var _extends2;\n\n var _React$useState = React.useState(),\n realObserved = _React$useState[0],\n setObserved = _React$useState[1];\n\n var observed = React.useRef();\n var isActive = React.useRef(false);\n var originalFocusedElement = React.useRef(null);\n var children = props.children,\n disabled = props.disabled,\n noFocusGuards = props.noFocusGuards,\n persistentFocus = props.persistentFocus,\n crossFrame = props.crossFrame,\n autoFocus = props.autoFocus,\n allowTextSelection = props.allowTextSelection,\n group = props.group,\n className = props.className,\n whiteList = props.whiteList,\n hasPositiveIndices = props.hasPositiveIndices,\n _props$shards = props.shards,\n shards = _props$shards === void 0 ? emptyArray : _props$shards,\n _props$as = props.as,\n Container = _props$as === void 0 ? 'div' : _props$as,\n _props$lockProps = props.lockProps,\n containerProps = _props$lockProps === void 0 ? {} : _props$lockProps,\n SideCar = props.sideCar,\n shouldReturnFocus = props.returnFocus,\n focusOptions = props.focusOptions,\n onActivationCallback = props.onActivation,\n onDeactivationCallback = props.onDeactivation;\n\n var _React$useState2 = React.useState({}),\n id = _React$useState2[0]; // SIDE EFFECT CALLBACKS\n\n\n var onActivation = React.useCallback(function () {\n originalFocusedElement.current = originalFocusedElement.current || document && document.activeElement;\n\n if (observed.current && onActivationCallback) {\n onActivationCallback(observed.current);\n }\n\n isActive.current = true;\n }, [onActivationCallback]);\n var onDeactivation = React.useCallback(function () {\n isActive.current = false;\n\n if (onDeactivationCallback) {\n onDeactivationCallback(observed.current);\n }\n }, [onDeactivationCallback]);\n useEffect(function () {\n if (!disabled) {\n // cleanup return focus on trap deactivation\n // sideEffect/returnFocus should happen by this time\n originalFocusedElement.current = null;\n }\n }, []);\n var returnFocus = React.useCallback(function (allowDefer) {\n var returnFocusTo = originalFocusedElement.current;\n\n if (returnFocusTo && returnFocusTo.focus) {\n var howToReturnFocus = typeof shouldReturnFocus === 'function' ? shouldReturnFocus(returnFocusTo) : shouldReturnFocus;\n\n if (howToReturnFocus) {\n var returnFocusOptions = typeof howToReturnFocus === 'object' ? howToReturnFocus : undefined;\n originalFocusedElement.current = null;\n\n if (allowDefer) {\n // React might return focus after update\n // it's safer to defer the action\n Promise.resolve().then(function () {\n return returnFocusTo.focus(returnFocusOptions);\n });\n } else {\n returnFocusTo.focus(returnFocusOptions);\n }\n }\n }\n }, [shouldReturnFocus]); // MEDIUM CALLBACKS\n\n var onFocus = React.useCallback(function (event) {\n if (isActive.current) {\n mediumFocus.useMedium(event);\n }\n }, []);\n var onBlur = mediumBlur.useMedium; // REF PROPAGATION\n // not using real refs due to race conditions\n\n var setObserveNode = React.useCallback(function (newObserved) {\n if (observed.current !== newObserved) {\n observed.current = newObserved;\n setObserved(newObserved);\n }\n }, []);\n\n if (process.env.NODE_ENV !== 'production') {\n if (typeof allowTextSelection !== 'undefined') {\n // eslint-disable-next-line no-console\n console.warn('React-Focus-Lock: allowTextSelection is deprecated and enabled by default');\n }\n\n React.useEffect(function () {\n if (!observed.current) {\n // eslint-disable-next-line no-console\n console.error('FocusLock: could not obtain ref to internal node');\n }\n }, []);\n }\n\n var lockProps = _extends((_extends2 = {}, _extends2[constants.FOCUS_DISABLED] = disabled && 'disabled', _extends2[constants.FOCUS_GROUP] = group, _extends2), containerProps);\n\n var hasLeadingGuards = noFocusGuards !== true;\n var hasTailingGuards = hasLeadingGuards && noFocusGuards !== 'tail';\n var mergedRef = useMergeRefs([parentRef, setObserveNode]);\n return /*#__PURE__*/React.createElement(React.Fragment, null, hasLeadingGuards && [\n /*#__PURE__*/\n // nearest focus guard\n React.createElement(\"div\", {\n key: \"guard-first\",\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 0,\n style: hiddenGuard\n }), // first tabbed element guard\n hasPositiveIndices ? /*#__PURE__*/React.createElement(\"div\", {\n key: \"guard-nearest\",\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 1,\n style: hiddenGuard\n }) : null], !disabled && /*#__PURE__*/React.createElement(SideCar, {\n id: id,\n sideCar: mediumSidecar,\n observed: realObserved,\n disabled: disabled,\n persistentFocus: persistentFocus,\n crossFrame: crossFrame,\n autoFocus: autoFocus,\n whiteList: whiteList,\n shards: shards,\n onActivation: onActivation,\n onDeactivation: onDeactivation,\n returnFocus: returnFocus,\n focusOptions: focusOptions\n }), /*#__PURE__*/React.createElement(Container, _extends({\n ref: mergedRef\n }, lockProps, {\n className: className,\n onBlur: onBlur,\n onFocus: onFocus\n }), children), hasTailingGuards && /*#__PURE__*/React.createElement(\"div\", {\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 0,\n style: hiddenGuard\n }));\n});\nFocusLock.propTypes = process.env.NODE_ENV !== \"production\" ? {\n children: node,\n disabled: bool,\n returnFocus: oneOfType([bool, object, func]),\n focusOptions: object,\n noFocusGuards: bool,\n hasPositiveIndices: bool,\n allowTextSelection: bool,\n autoFocus: bool,\n persistentFocus: bool,\n crossFrame: bool,\n group: string,\n className: string,\n whiteList: func,\n shards: arrayOf(any),\n as: oneOfType([string, func, object]),\n lockProps: object,\n onActivation: func,\n onDeactivation: func,\n sideCar: any.isRequired\n} : {};\nFocusLock.defaultProps = {\n children: undefined,\n disabled: false,\n returnFocus: false,\n focusOptions: undefined,\n noFocusGuards: false,\n autoFocus: true,\n persistentFocus: false,\n crossFrame: true,\n hasPositiveIndices: undefined,\n allowTextSelection: undefined,\n group: undefined,\n className: undefined,\n whiteList: undefined,\n shards: undefined,\n as: 'div',\n lockProps: {},\n onActivation: undefined,\n onDeactivation: undefined\n};\nexport default FocusLock;"],"names":["emptyArray","FocusLock","React","forwardRef","props","parentRef","_extends2","_React$useState","useState","realObserved","setObserved","observed","useRef","isActive","originalFocusedElement","children","disabled","noFocusGuards","persistentFocus","crossFrame","autoFocus","allowTextSelection","group","className","whiteList","hasPositiveIndices","_props$shards","shards","_props$as","as","Container","_props$lockProps","lockProps","containerProps","SideCar","sideCar","shouldReturnFocus","returnFocus","focusOptions","onActivationCallback","onActivation","onDeactivationCallback","onDeactivation","id","useCallback","current","document","activeElement","useEffect","allowDefer","returnFocusTo","focus","howToReturnFocus","returnFocusOptions","undefined","Promise","resolve","then","onFocus","event","mediumFocus","useMedium","onBlur","mediumBlur","setObserveNode","newObserved","process","env","NODE_ENV","console","warn","error","_extends","constants.FOCUS_DISABLED","constants.FOCUS_GROUP","hasLeadingGuards","hasTailingGuards","mergedRef","useMergeRefs","createElement","Fragment","key","tabIndex","style","hiddenGuard","mediumSidecar","ref","propTypes","node","bool","oneOfType","object","func","string","arrayOf","any","isRequired","defaultProps","FocusLockUI"],"mappings":"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"}
@@ -1,2 +0,0 @@
1
- import"react";import e from"prop-types";import n from"../../../react-clientside-effect/lib/index.es.js";import t from"../../../focus-lock/dist/es2015/index.js";import{deferAction as o}from"./util.js";import{mediumFocus as r,mediumBlur as u,mediumEffect as i}from"./medium.js";import{focusInside as c}from"../../../focus-lock/dist/es2015/focusInside.js";import{focusIsHidden as s}from"../../../focus-lock/dist/es2015/focusIsHidden.js";import{getFocusabledIn as d}from"../../../focus-lock/dist/es2015/focusables.js";var a=function(){return document&&document.activeElement===document.body||s()},f=null,m=null,l=null,v=!1,p=function(){return!0};function E(e,n,t,o){var r=null,u=e;do{var i=o[u];if(i.guard)i.node.dataset.focusAutoGuard&&(r=i);else{if(!i.lockItem)break;if(u!==e)return;r=null}}while((u+=t)!==n);r&&(r.node.tabIndex=0)}var b=function(e){return e&&"current"in e?e.current:e},g=function e(n,t,o){return t&&(t.host===n&&(!t.activeElement||o.contains(t.activeElement))||t.parentNode&&e(n,t.parentNode,o))},h=function(){var e,n=!1;if(f){var o=f,r=o.observed,u=o.persistentFocus,i=o.autoFocus,s=o.shards,h=o.crossFrame,j=o.focusOptions,w=r||l&&l.portaledElement,I=document&&document.activeElement;if(w){var L=[w].concat(s.map(b).filter(Boolean));if(I&&!function(e){return(f.whiteList||p)(e)}(I)||(u||(h?Boolean(v):"meanwhile"===v)||!a()||!m&&i)&&(w&&!(c(L)||I&&function(e,n){return n.some((function(n){return g(e,n,n)}))}(I,L)||(e=I,l&&l.portaledElement===e))&&(document&&!m&&I&&!i?(I.blur&&I.blur(),document.body.focus()):(n=t(L,m,{focusOptions:j}),l={})),v=!1,m=document&&document.activeElement),document){var k=document&&document.activeElement,x=d(L),F=x.map((function(e){return e.node})).indexOf(k);F>-1&&(x.filter((function(e){var n=e.guard,t=e.node;return n&&t.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),E(F,x.length,1,x),E(F,-1,-1,x))}}}return n},j=function(e){h()&&e&&(e.stopPropagation(),e.preventDefault())},w=function(){return o(h)};"production"===process.env.NODE_ENV||e.node.isRequired;var I=function(){v="just",setTimeout((function(){v="meanwhile"}),0)};r.assignSyncMedium((function(e){var n=e.target,t=e.currentTarget;t.contains(n)||(l={observerNode:t,portaledElement:n})})),u.assignMedium(w),i.assignMedium((function(e){return e({moveFocusInside:t,focusInside:c})}));var L=n((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var n=e.slice(-1)[0];n&&!f&&(document.addEventListener("focusin",j),document.addEventListener("focusout",w),window.addEventListener("blur",I));var t=f,r=t&&n&&n.id===t.id;f=n,t&&!r&&(t.onDeactivation(),e.filter((function(e){return e.id===t.id})).length||t.returnFocus(!n)),n?(m=null,r&&t.observed===n.observed||n.onActivation(),h(),o(h)):(document.removeEventListener("focusin",j),document.removeEventListener("focusout",w),window.removeEventListener("blur",I),m=null)}))((function(){return null}));export{L as default};
2
- //# sourceMappingURL=Trap.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Trap.js","sources":["../../../../../../node_modules/react-focus-lock/dist/es2015/Trap.js"],"sourcesContent":["/* eslint-disable no-mixed-operators */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport withSideEffect from 'react-clientside-effect';\nimport moveFocusInside, { focusInside, focusIsHidden, getFocusabledIn } from 'focus-lock';\nimport { deferAction } from './util';\nimport { mediumFocus, mediumBlur, mediumEffect } from './medium';\n\nvar focusOnBody = function focusOnBody() {\n return document && document.activeElement === document.body;\n};\n\nvar isFreeFocus = function isFreeFocus() {\n return focusOnBody() || focusIsHidden();\n};\n\nvar lastActiveTrap = null;\nvar lastActiveFocus = null;\nvar lastPortaledElement = null;\nvar focusWasOutsideWindow = false;\n\nvar defaultWhitelist = function defaultWhitelist() {\n return true;\n};\n\nvar focusWhitelisted = function focusWhitelisted(activeElement) {\n return (lastActiveTrap.whiteList || defaultWhitelist)(activeElement);\n};\n\nvar recordPortal = function recordPortal(observerNode, portaledElement) {\n lastPortaledElement = {\n observerNode: observerNode,\n portaledElement: portaledElement\n };\n};\n\nvar focusIsPortaledPair = function focusIsPortaledPair(element) {\n return lastPortaledElement && lastPortaledElement.portaledElement === element;\n};\n\nfunction autoGuard(startIndex, end, step, allNodes) {\n var lastGuard = null;\n var i = startIndex;\n\n do {\n var item = allNodes[i];\n\n if (item.guard) {\n if (item.node.dataset.focusAutoGuard) {\n lastGuard = item;\n }\n } else if (item.lockItem) {\n if (i !== startIndex) {\n // we will tab to the next element\n return;\n }\n\n lastGuard = null;\n } else {\n break;\n }\n } while ((i += step) !== end);\n\n if (lastGuard) {\n lastGuard.node.tabIndex = 0;\n }\n}\n\nvar extractRef = function extractRef(ref) {\n return ref && 'current' in ref ? ref.current : ref;\n};\n\nvar focusWasOutside = function focusWasOutside(crossFrameOption) {\n if (crossFrameOption) {\n // with cross frame return true for any value\n return Boolean(focusWasOutsideWindow);\n } // in other case return only of focus went a while aho\n\n\n return focusWasOutsideWindow === 'meanwhile';\n};\n\nvar checkInHost = function checkInHost(check, el, boundary) {\n return el && ( // find host equal to active element and check nested active element\n el.host === check && (!el.activeElement || boundary.contains(el.activeElement)) // dive up\n || el.parentNode && checkInHost(check, el.parentNode, boundary));\n};\n\nvar withinHost = function withinHost(activeElement, workingArea) {\n return workingArea.some(function (area) {\n return checkInHost(activeElement, area, area);\n });\n};\n\nvar activateTrap = function activateTrap() {\n var result = false;\n\n if (lastActiveTrap) {\n var _lastActiveTrap = lastActiveTrap,\n observed = _lastActiveTrap.observed,\n persistentFocus = _lastActiveTrap.persistentFocus,\n autoFocus = _lastActiveTrap.autoFocus,\n shards = _lastActiveTrap.shards,\n crossFrame = _lastActiveTrap.crossFrame,\n focusOptions = _lastActiveTrap.focusOptions;\n var workingNode = observed || lastPortaledElement && lastPortaledElement.portaledElement;\n var activeElement = document && document.activeElement;\n\n if (workingNode) {\n var workingArea = [workingNode].concat(shards.map(extractRef).filter(Boolean));\n\n if (!activeElement || focusWhitelisted(activeElement)) {\n if (persistentFocus || focusWasOutside(crossFrame) || !isFreeFocus() || !lastActiveFocus && autoFocus) {\n if (workingNode && !( // active element is \"inside\" working area\n focusInside(workingArea) || // check for shadow-dom contained elements\n activeElement && withinHost(activeElement, workingArea) || focusIsPortaledPair(activeElement, workingNode))) {\n if (document && !lastActiveFocus && activeElement && !autoFocus) {\n // Check if blur() exists, which is missing on certain elements on IE\n if (activeElement.blur) {\n activeElement.blur();\n }\n\n document.body.focus();\n } else {\n result = moveFocusInside(workingArea, lastActiveFocus, {\n focusOptions: focusOptions\n });\n lastPortaledElement = {};\n }\n }\n\n focusWasOutsideWindow = false;\n lastActiveFocus = document && document.activeElement;\n }\n }\n\n if (document) {\n var newActiveElement = document && document.activeElement;\n var allNodes = getFocusabledIn(workingArea);\n var focusedIndex = allNodes.map(function (_ref) {\n var node = _ref.node;\n return node;\n }).indexOf(newActiveElement);\n\n if (focusedIndex > -1) {\n // remove old focus\n allNodes.filter(function (_ref2) {\n var guard = _ref2.guard,\n node = _ref2.node;\n return guard && node.dataset.focusAutoGuard;\n }).forEach(function (_ref3) {\n var node = _ref3.node;\n return node.removeAttribute('tabIndex');\n });\n autoGuard(focusedIndex, allNodes.length, +1, allNodes);\n autoGuard(focusedIndex, -1, -1, allNodes);\n }\n }\n }\n }\n\n return result;\n};\n\nvar onTrap = function onTrap(event) {\n if (activateTrap() && event) {\n // prevent scroll jump\n event.stopPropagation();\n event.preventDefault();\n }\n};\n\nvar onBlur = function onBlur() {\n return deferAction(activateTrap);\n};\n\nvar onFocus = function onFocus(event) {\n // detect portal\n var source = event.target;\n var currentNode = event.currentTarget;\n\n if (!currentNode.contains(source)) {\n recordPortal(currentNode, source);\n }\n};\n\nvar FocusWatcher = function FocusWatcher() {\n return null;\n};\n\nvar FocusTrap = function FocusTrap(_ref4) {\n var children = _ref4.children;\n return /*#__PURE__*/React.createElement(\"div\", {\n onBlur: onBlur,\n onFocus: onFocus\n }, children);\n};\n\nFocusTrap.propTypes = process.env.NODE_ENV !== \"production\" ? {\n children: PropTypes.node.isRequired\n} : {};\n\nvar onWindowBlur = function onWindowBlur() {\n focusWasOutsideWindow = 'just'; // using setTimeout to set this variable after React/sidecar reaction\n\n setTimeout(function () {\n focusWasOutsideWindow = 'meanwhile';\n }, 0);\n};\n\nvar attachHandler = function attachHandler() {\n document.addEventListener('focusin', onTrap);\n document.addEventListener('focusout', onBlur);\n window.addEventListener('blur', onWindowBlur);\n};\n\nvar detachHandler = function detachHandler() {\n document.removeEventListener('focusin', onTrap);\n document.removeEventListener('focusout', onBlur);\n window.removeEventListener('blur', onWindowBlur);\n};\n\nfunction reducePropsToState(propsList) {\n return propsList.filter(function (_ref5) {\n var disabled = _ref5.disabled;\n return !disabled;\n });\n}\n\nfunction handleStateChangeOnClient(traps) {\n var trap = traps.slice(-1)[0];\n\n if (trap && !lastActiveTrap) {\n attachHandler();\n }\n\n var lastTrap = lastActiveTrap;\n var sameTrap = lastTrap && trap && trap.id === lastTrap.id;\n lastActiveTrap = trap;\n\n if (lastTrap && !sameTrap) {\n lastTrap.onDeactivation(); // return focus only of last trap was removed\n\n if (!traps.filter(function (_ref6) {\n var id = _ref6.id;\n return id === lastTrap.id;\n }).length) {\n // allow defer is no other trap is awaiting restore\n lastTrap.returnFocus(!trap);\n }\n }\n\n if (trap) {\n lastActiveFocus = null;\n\n if (!sameTrap || lastTrap.observed !== trap.observed) {\n trap.onActivation();\n }\n\n activateTrap(true);\n deferAction(activateTrap);\n } else {\n detachHandler();\n lastActiveFocus = null;\n }\n} // bind medium\n\n\nmediumFocus.assignSyncMedium(onFocus);\nmediumBlur.assignMedium(onBlur);\nmediumEffect.assignMedium(function (cb) {\n return cb({\n moveFocusInside: moveFocusInside,\n focusInside: focusInside\n });\n});\nexport default withSideEffect(reducePropsToState, handleStateChangeOnClient)(FocusWatcher);"],"names":["isFreeFocus","document","activeElement","body","focusIsHidden","lastActiveTrap","lastActiveFocus","lastPortaledElement","focusWasOutsideWindow","defaultWhitelist","autoGuard","startIndex","end","step","allNodes","lastGuard","i","item","guard","node","dataset","focusAutoGuard","lockItem","tabIndex","extractRef","ref","current","checkInHost","check","el","boundary","host","contains","parentNode","activateTrap","element","result","_lastActiveTrap","observed","persistentFocus","autoFocus","shards","crossFrame","focusOptions","workingNode","portaledElement","workingArea","concat","map","filter","Boolean","whiteList","focusWhitelisted","focusInside","some","area","withinHost","blur","focus","moveFocusInside","newActiveElement","getFocusabledIn","focusedIndex","_ref","indexOf","_ref2","forEach","_ref3","removeAttribute","length","onTrap","event","stopPropagation","preventDefault","onBlur","deferAction","process","env","NODE_ENV","PropTypes","isRequired","onWindowBlur","setTimeout","mediumFocus","assignSyncMedium","source","target","currentNode","currentTarget","observerNode","mediumBlur","assignMedium","mediumEffect","cb","FocusTrap","withSideEffect","propsList","_ref5","disabled","traps","trap","slice","addEventListener","window","lastTrap","sameTrap","id","onDeactivation","_ref6","returnFocus","onActivation","removeEventListener"],"mappings":"kgBAQA,IAIIA,EAAc,WAChB,OAJOC,UAAYA,SAASC,gBAAkBD,SAASE,MAI/BC,GAC1B,EAEIC,EAAiB,KACjBC,EAAkB,KAClBC,EAAsB,KACtBC,GAAwB,EAExBC,EAAmB,WACrB,OAAO,CACT,EAiBA,SAASC,EAAUC,EAAYC,EAAKC,EAAMC,GACxC,IAAIC,EAAY,KACZC,EAAIL,EAER,EAAG,CACD,IAAIM,EAAOH,EAASE,GAEpB,GAAIC,EAAKC,MACHD,EAAKE,KAAKC,QAAQC,iBACpBN,EAAYE,OAET,KAAIA,EAAKK,SAQd,MAPA,GAAIN,IAAML,EAER,OAGFI,EAAY,IAGb,CACL,QAAYC,GAAKH,KAAUD,GAErBG,IACFA,EAAUI,KAAKI,SAAW,EAE9B,CAEA,IAAIC,EAAa,SAAoBC,GACnC,OAAOA,GAAO,YAAaA,EAAMA,EAAIC,QAAUD,CACjD,EAYIE,EAAc,SAASA,EAAYC,EAAOC,EAAIC,GAChD,OAAOD,IACPA,EAAGE,OAASH,KAAWC,EAAG3B,eAAiB4B,EAASE,SAASH,EAAG3B,iBAC7D2B,EAAGI,YAAcN,EAAYC,EAAOC,EAAGI,WAAYH,GACxD,EAQII,EAAe,WACjB,IA3DqDC,EA2DjDC,GAAS,EAEb,GAAI/B,EAAgB,CAClB,IAAIgC,EAAkBhC,EAClBiC,EAAWD,EAAgBC,SAC3BC,EAAkBF,EAAgBE,gBAClCC,EAAYH,EAAgBG,UAC5BC,EAASJ,EAAgBI,OACzBC,EAAaL,EAAgBK,WAC7BC,EAAeN,EAAgBM,aAC/BC,EAAcN,GAAY/B,GAAuBA,EAAoBsC,gBACrE3C,EAAgBD,UAAYA,SAASC,cAEzC,GAAI0C,EAAa,CACf,IAAIE,EAAc,CAACF,GAAaG,OAAON,EAAOO,IAAIxB,GAAYyB,OAAOC,UA2BrE,GAzBKhD,IAtFY,SAA0BA,GAC/C,OAAQG,EAAe8C,WAAa1C,GAAkBP,EACxD,CAoF4BkD,CAAiBlD,KACjCqC,IAAmCG,EArCpCQ,QAAQ1C,GAIgB,cAA1BA,KAiCsDR,MAAkBM,GAAmBkC,KACtFI,KACJS,EAAYP,IACZ5C,GA3BO,SAAoBA,EAAe4C,GAClD,OAAOA,EAAYQ,MAAK,SAAUC,GAChC,OAAO5B,EAAYzB,EAAeqD,EAAMA,EAC5C,GACA,CAuB2BC,CAAWtD,EAAe4C,KA/EEX,EA+EkCjC,EA9EhFK,GAAuBA,EAAoBsC,kBAAoBV,MA+ExDlC,WAAaK,GAAmBJ,IAAkBsC,GAEhDtC,EAAcuD,MAChBvD,EAAcuD,OAGhBxD,SAASE,KAAKuD,UAEdtB,EAASuB,EAAgBb,EAAaxC,EAAiB,CACrDqC,aAAcA,IAEhBpC,EAAsB,CAAA,IAI1BC,GAAwB,EACxBF,EAAkBL,UAAYA,SAASC,eAIvCD,SAAU,CACZ,IAAI2D,EAAmB3D,UAAYA,SAASC,cACxCY,EAAW+C,EAAgBf,GAC3BgB,EAAehD,EAASkC,KAAI,SAAUe,GAExC,OADWA,EAAK5C,IAE1B,IAAW6C,QAAQJ,GAEPE,GAAgB,IAElBhD,EAASmC,QAAO,SAAUgB,GACxB,IAAI/C,EAAQ+C,EAAM/C,MACdC,EAAO8C,EAAM9C,KACjB,OAAOD,GAASC,EAAKC,QAAQC,cACzC,IAAa6C,SAAQ,SAAUC,GAEnB,OADWA,EAAMhD,KACLiD,gBAAgB,WACxC,IACU1D,EAAUoD,EAAchD,EAASuD,OAAQ,EAAIvD,GAC7CJ,EAAUoD,GAAe,GAAI,EAAGhD,GAEnC,CACF,CACF,CAED,OAAOsB,CACT,EAEIkC,EAAS,SAAgBC,GACvBrC,KAAkBqC,IAEpBA,EAAMC,kBACND,EAAME,iBAEV,EAEIC,EAAS,WACX,OAAOC,EAAYzC,EACrB,EAwB+C,eAAzB0C,QAAQC,IAAIC,UACtBC,EAAU5D,KAAK6D,WAG3B,IAAIC,EAAe,WACjBzE,EAAwB,OAExB0E,YAAW,WACT1E,EAAwB,WACzB,GAAE,EACL,EA4DA2E,EAAYC,kBA5FE,SAAiBb,GAE7B,IAAIc,EAASd,EAAMe,OACfC,EAAchB,EAAMiB,cAEnBD,EAAYvD,SAASqD,KAvJ1B9E,EAAsB,CACpBkF,aAuJaF,EAtJb1C,gBAsJ0BwC,GAE9B,IAqFAK,EAAWC,aAAajB,GACxBkB,EAAaD,cAAa,SAAUE,GAClC,OAAOA,EAAG,CACRlC,gBAAiBA,EACjBN,YAAaA,GAEjB,IACA,IAAeyC,EAAAC,GAtDf,SAA4BC,GAC1B,OAAOA,EAAU/C,QAAO,SAAUgD,GAEhC,OADeA,EAAMC,QAEzB,GACA,IAEA,SAAmCC,GACjC,IAAIC,EAAOD,EAAME,OAAO,GAAG,GAEvBD,IAAS/F,IArBbJ,SAASqG,iBAAiB,UAAWhC,GACrCrE,SAASqG,iBAAiB,WAAY5B,GACtC6B,OAAOD,iBAAiB,OAAQrB,IAuBhC,IAAIuB,EAAWnG,EACXoG,EAAWD,GAAYJ,GAAQA,EAAKM,KAAOF,EAASE,GACxDrG,EAAiB+F,EAEbI,IAAaC,IACfD,EAASG,iBAEJR,EAAMlD,QAAO,SAAU2D,GAE1B,OADSA,EAAMF,KACDF,EAASE,EACxB,IAAErC,QAEDmC,EAASK,aAAaT,IAItBA,GACF9F,EAAkB,KAEbmG,GAAYD,EAASlE,WAAa8D,EAAK9D,UAC1C8D,EAAKU,eAGP5E,IACAyC,EAAYzC,KA3CdjC,SAAS8G,oBAAoB,UAAWzC,GACxCrE,SAAS8G,oBAAoB,WAAYrC,GACzC6B,OAAOQ,oBAAoB,OAAQ9B,GA4CjC3E,EAAkB,KAEtB,GAWeyF,EA1FI,WACjB,OAAO,IACT"}
@@ -1,2 +0,0 @@
1
- import o from"./Combination.js";export{default}from"./Combination.js";
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{createMedium as r,createSidecarMedium as t}from"../../../use-sidecar/dist/es2015/medium.js";var e=r({},(function(r){return{target:r.target,currentTarget:r.currentTarget}})),a=r(),n=r(),s=t({async:!0});export{a as mediumBlur,n as mediumEffect,e as mediumFocus,s as mediumSidecar};
2
- //# sourceMappingURL=medium.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"medium.js","sources":["../../../../../../node_modules/react-focus-lock/dist/es2015/medium.js"],"sourcesContent":["import { createMedium, createSidecarMedium } from 'use-sidecar';\nexport var mediumFocus = createMedium({}, function (_ref) {\n var target = _ref.target,\n currentTarget = _ref.currentTarget;\n return {\n target: target,\n currentTarget: currentTarget\n };\n});\nexport var mediumBlur = createMedium();\nexport var mediumEffect = createMedium();\nexport var mediumSidecar = createSidecarMedium({\n async: true\n});"],"names":["mediumFocus","createMedium","_ref","target","currentTarget","mediumBlur","mediumEffect","mediumSidecar","createSidecarMedium","async"],"mappings":"mGACU,IAACA,EAAcC,EAAa,IAAI,SAAUC,GAGlD,MAAO,CACLC,OAHWD,EAAKC,OAIhBC,cAHkBF,EAAKE,cAK3B,IACWC,EAAaJ,IACbK,EAAeL,IACfM,EAAgBC,EAAoB,CAC7CC,OAAO"}
@@ -1,2 +0,0 @@
1
- function e(e){var t=window.setImmediate;void 0!==t?t(e):setTimeout(e,1)}export{e as deferAction};
2
- //# sourceMappingURL=util.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"util.js","sources":["../../../../../../node_modules/react-focus-lock/dist/es2015/util.js"],"sourcesContent":["export function deferAction(action) {\n // Hidding setImmediate from Webpack to avoid inserting polyfill\n var _window = window,\n setImmediate = _window.setImmediate;\n\n if (typeof setImmediate !== 'undefined') {\n setImmediate(action);\n } else {\n setTimeout(action, 1);\n }\n}\nexport var inlineProp = function inlineProp(name, value) {\n var obj = {};\n obj[name] = value;\n return obj;\n};"],"names":["deferAction","action","setImmediate","window","setTimeout"],"mappings":"AAAO,SAASA,EAAYC,GAE1B,IACIC,EADUC,OACaD,kBAEC,IAAjBA,EACTA,EAAaD,GAEbG,WAAWH,EAAQ,EAEvB"}
@@ -1,2 +0,0 @@
1
- import*as e from"react";function t(){return t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},t.apply(this,arguments)}const i=new Map,n=new WeakMap;let r,s=0;function o(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(i=e.root,i?(n.has(i)||(s+=1,n.set(i,s.toString())),n.get(i)):"0"):e[t]}`;var i})).toString()}function h(e,t,n={},s=r){if(void 0===window.IntersectionObserver&&void 0!==s){const i=e.getBoundingClientRect();return t(s,{isIntersecting:s,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}const{id:h,observer:l,elements:a}=function(e){let t=o(e),n=i.get(t);if(!n){const r=new Map;let s;const o=new IntersectionObserver((t=>{t.forEach((t=>{var i;const n=t.isIntersecting&&s.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=n),null==(i=r.get(t.target))||i.forEach((e=>{e(n,t)}))}))}),e);s=o.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:o,elements:r},i.set(t,n)}return n}(n);let c=a.get(e)||[];return a.has(e)||a.set(e,c),c.push(t),l.observe(e),function(){c.splice(c.indexOf(t),1),0===c.length&&(a.delete(e),l.unobserve(e)),0===a.size&&(l.disconnect(),i.delete(h))}}const l=["children","as","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function a(e){return"function"!=typeof e.children}class c extends e.Component{constructor(e){super(e),this.node=null,this._unobserveCb=null,this.handleNode=e=>{this.node&&(this.unobserve(),e||this.props.triggerOnce||this.props.skip||this.setState({inView:!!this.props.initialInView,entry:void 0})),this.node=e||null,this.observeNode()},this.handleChange=(e,t)=>{e&&this.props.triggerOnce&&this.unobserve(),a(this.props)||this.setState({inView:e,entry:t}),this.props.onChange&&this.props.onChange(e,t)},this.state={inView:!!e.initialInView,entry:void 0}}componentDidUpdate(e){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold&&e.skip===this.props.skip&&e.trackVisibility===this.props.trackVisibility&&e.delay===this.props.delay||(this.unobserve(),this.observeNode())}componentWillUnmount(){this.unobserve(),this.node=null}observeNode(){if(!this.node||this.props.skip)return;const{threshold:e,root:t,rootMargin:i,trackVisibility:n,delay:r,fallbackInView:s}=this.props;this._unobserveCb=h(this.node,this.handleChange,{threshold:e,root:t,rootMargin:i,trackVisibility:n,delay:r},s)}unobserve(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)}render(){if(!a(this.props)){const{inView:e,entry:t}=this.state;return this.props.children({inView:e,entry:t,ref:this.handleNode})}const i=this.props,{children:n,as:r}=i,s=function(e,t){if(null==e)return{};var i,n,r={},s=Object.keys(e);for(n=0;n<s.length;n++)i=s[n],t.indexOf(i)>=0||(r[i]=e[i]);return r}(i,l);return e.createElement(r||"div",t({ref:this.handleNode},s),n)}}export{c as InView,h as observe};
2
- //# sourceMappingURL=react-intersection-observer.modern.mjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-intersection-observer.modern.mjs.js","sources":["../../../../node_modules/react-intersection-observer/react-intersection-observer.modern.mjs"],"sourcesContent":["import * as React from 'react';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nconst observerMap = new Map();\nconst RootIds = new WeakMap();\nlet rootId = 0;\nlet unsupportedValue = undefined;\n/**\r\n * What should be the default behavior if the IntersectionObserver is unsupported?\r\n * Ideally the polyfill has been loaded, you can have the following happen:\r\n * - `undefined`: Throw an error\r\n * - `true` or `false`: Set the `inView` value to this regardless of intersection state\r\n * **/\n\nfunction defaultFallbackInView(inView) {\n unsupportedValue = inView;\n}\n/**\r\n * Generate a unique ID for the root element\r\n * @param root\r\n */\n\nfunction getRootId(root) {\n if (!root) return '0';\n if (RootIds.has(root)) return RootIds.get(root);\n rootId += 1;\n RootIds.set(root, rootId.toString());\n return RootIds.get(root);\n}\n/**\r\n * Convert the options to a string Id, based on the values.\r\n * Ensures we can reuse the same observer when observing elements with the same options.\r\n * @param options\r\n */\n\n\nfunction optionsToId(options) {\n return Object.keys(options).sort().filter(key => options[key] !== undefined).map(key => {\n return `${key}_${key === 'root' ? getRootId(options.root) : options[key]}`;\n }).toString();\n}\n\nfunction createObserver(options) {\n // Create a unique ID for this observer instance, based on the root, root margin and threshold.\n let id = optionsToId(options);\n let instance = observerMap.get(id);\n\n if (!instance) {\n // Create a map of elements this observer is going to observe. Each element has a list of callbacks that should be triggered, once it comes into view.\n const elements = new Map();\n let thresholds;\n const observer = new IntersectionObserver(entries => {\n entries.forEach(entry => {\n var _elements$get;\n\n // While it would be nice if you could just look at isIntersecting to determine if the component is inside the viewport, browsers can't agree on how to use it.\n // -Firefox ignores `threshold` when considering `isIntersecting`, so it will never be false again if `threshold` is > 0\n const inView = entry.isIntersecting && thresholds.some(threshold => entry.intersectionRatio >= threshold); // @ts-ignore support IntersectionObserver v2\n\n if (options.trackVisibility && typeof entry.isVisible === 'undefined') {\n // The browser doesn't support Intersection Observer v2, falling back to v1 behavior.\n // @ts-ignore\n entry.isVisible = inView;\n }\n\n (_elements$get = elements.get(entry.target)) == null ? void 0 : _elements$get.forEach(callback => {\n callback(inView, entry);\n });\n });\n }, options); // Ensure we have a valid thresholds array. If not, use the threshold from the options\n\n thresholds = observer.thresholds || (Array.isArray(options.threshold) ? options.threshold : [options.threshold || 0]);\n instance = {\n id,\n observer,\n elements\n };\n observerMap.set(id, instance);\n }\n\n return instance;\n}\n/**\r\n * @param element - DOM Element to observe\r\n * @param callback - Callback function to trigger when intersection status changes\r\n * @param options - Intersection Observer options\r\n * @param fallbackInView - Fallback inView value.\r\n * @return Function - Cleanup function that should be triggered to unregister the observer\r\n */\n\n\nfunction observe(element, callback, options = {}, fallbackInView = unsupportedValue) {\n if (typeof window.IntersectionObserver === 'undefined' && fallbackInView !== undefined) {\n const bounds = element.getBoundingClientRect();\n callback(fallbackInView, {\n isIntersecting: fallbackInView,\n target: element,\n intersectionRatio: typeof options.threshold === 'number' ? options.threshold : 0,\n time: 0,\n boundingClientRect: bounds,\n intersectionRect: bounds,\n rootBounds: bounds\n });\n return () => {// Nothing to cleanup\n };\n } // An observer with the same options can be reused, so lets use this fact\n\n\n const {\n id,\n observer,\n elements\n } = createObserver(options); // Register the callback listener for this element\n\n let callbacks = elements.get(element) || [];\n\n if (!elements.has(element)) {\n elements.set(element, callbacks);\n }\n\n callbacks.push(callback);\n observer.observe(element);\n return function unobserve() {\n // Remove the callback from the callback list\n callbacks.splice(callbacks.indexOf(callback), 1);\n\n if (callbacks.length === 0) {\n // No more callback exists for element, so destroy it\n elements.delete(element);\n observer.unobserve(element);\n }\n\n if (elements.size === 0) {\n // No more elements are being observer by this instance, so destroy it\n observer.disconnect();\n observerMap.delete(id);\n }\n };\n}\n\nconst _excluded = [\"children\", \"as\", \"triggerOnce\", \"threshold\", \"root\", \"rootMargin\", \"onChange\", \"skip\", \"trackVisibility\", \"delay\", \"initialInView\", \"fallbackInView\"];\n\nfunction isPlainChildren(props) {\n return typeof props.children !== 'function';\n}\n/**\r\n ## Render props\r\n\n To use the `<InView>` component, you pass it a function. It will be called\r\n whenever the state changes, with the new value of `inView`. In addition to the\r\n `inView` prop, children also receive a `ref` that should be set on the\r\n containing DOM element. This is the element that the IntersectionObserver will\r\n monitor.\r\n\n If you need it, you can also access the\r\n [`IntersectionObserverEntry`](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry)\r\n on `entry`, giving you access to all the details about the current intersection\r\n state.\r\n\n ```jsx\r\n import { InView } from 'react-intersection-observer';\r\n\n const Component = () => (\r\n <InView>\r\n {({ inView, ref, entry }) => (\r\n <div ref={ref}>\r\n <h2>{`Header inside viewport ${inView}.`}</h2>\r\n </div>\r\n )}\r\n </InView>\r\n );\r\n\n export default Component;\r\n ```\r\n\n ## Plain children\r\n\n You can pass any element to the `<InView />`, and it will handle creating the\r\n wrapping DOM element. Add a handler to the `onChange` method, and control the\r\n state in your own component. Any extra props you add to `<InView>` will be\r\n passed to the HTML element, allowing you set the `className`, `style`, etc.\r\n\n ```jsx\r\n import { InView } from 'react-intersection-observer';\r\n\n const Component = () => (\r\n <InView as=\"div\" onChange={(inView, entry) => console.log('Inview:', inView)}>\r\n <h2>Plain children are always rendered. Use onChange to monitor state.</h2>\r\n </InView>\r\n );\r\n\n export default Component;\r\n ```\r\n */\n\n\nclass InView extends React.Component {\n constructor(props) {\n super(props);\n this.node = null;\n this._unobserveCb = null;\n\n this.handleNode = node => {\n if (this.node) {\n // Clear the old observer, before we start observing a new element\n this.unobserve();\n\n if (!node && !this.props.triggerOnce && !this.props.skip) {\n // Reset the state if we get a new node, and we aren't ignoring updates\n this.setState({\n inView: !!this.props.initialInView,\n entry: undefined\n });\n }\n }\n\n this.node = node ? node : null;\n this.observeNode();\n };\n\n this.handleChange = (inView, entry) => {\n if (inView && this.props.triggerOnce) {\n // If `triggerOnce` is true, we should stop observing the element.\n this.unobserve();\n }\n\n if (!isPlainChildren(this.props)) {\n // Store the current State, so we can pass it to the children in the next render update\n // There's no reason to update the state for plain children, since it's not used in the rendering.\n this.setState({\n inView,\n entry\n });\n }\n\n if (this.props.onChange) {\n // If the user is actively listening for onChange, always trigger it\n this.props.onChange(inView, entry);\n }\n };\n\n this.state = {\n inView: !!props.initialInView,\n entry: undefined\n };\n }\n\n componentDidUpdate(prevProps) {\n // If a IntersectionObserver option changed, reinit the observer\n if (prevProps.rootMargin !== this.props.rootMargin || prevProps.root !== this.props.root || prevProps.threshold !== this.props.threshold || prevProps.skip !== this.props.skip || prevProps.trackVisibility !== this.props.trackVisibility || prevProps.delay !== this.props.delay) {\n this.unobserve();\n this.observeNode();\n }\n }\n\n componentWillUnmount() {\n this.unobserve();\n this.node = null;\n }\n\n observeNode() {\n if (!this.node || this.props.skip) return;\n const {\n threshold,\n root,\n rootMargin,\n trackVisibility,\n delay,\n fallbackInView\n } = this.props;\n this._unobserveCb = observe(this.node, this.handleChange, {\n threshold,\n root,\n rootMargin,\n // @ts-ignore\n trackVisibility,\n // @ts-ignore\n delay\n }, fallbackInView);\n }\n\n unobserve() {\n if (this._unobserveCb) {\n this._unobserveCb();\n\n this._unobserveCb = null;\n }\n }\n\n render() {\n if (!isPlainChildren(this.props)) {\n const {\n inView,\n entry\n } = this.state;\n return this.props.children({\n inView,\n entry,\n ref: this.handleNode\n });\n }\n\n const _this$props = this.props,\n {\n children,\n as\n } = _this$props,\n props = _objectWithoutPropertiesLoose(_this$props, _excluded);\n\n return React.createElement(as || 'div', _extends({\n ref: this.handleNode\n }, props), children);\n }\n\n}\n\n/**\r\n * React Hooks make it easy to monitor the `inView` state of your components. Call\r\n * the `useInView` hook with the (optional) [options](#options) you need. It will\r\n * return an array containing a `ref`, the `inView` status and the current\r\n * [`entry`](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry).\r\n * Assign the `ref` to the DOM element you want to monitor, and the hook will\r\n * report the status.\r\n *\r\n * @example\r\n * ```jsx\r\n * import React from 'react';\r\n * import { useInView } from 'react-intersection-observer';\r\n *\r\n * const Component = () => {\r\n * const { ref, inView, entry } = useInView({\r\n * threshold: 0,\r\n * });\r\n *\r\n * return (\r\n * <div ref={ref}>\r\n * <h2>{`Header inside viewport ${inView}.`}</h2>\r\n * </div>\r\n * );\r\n * };\r\n * ```\r\n */\n\nfunction useInView({\n threshold,\n delay,\n trackVisibility,\n rootMargin,\n root,\n triggerOnce,\n skip,\n initialInView,\n fallbackInView,\n onChange\n} = {}) {\n const unobserve = React.useRef();\n const callback = React.useRef();\n const [state, setState] = React.useState({\n inView: !!initialInView\n }); // Store the onChange callback in a `ref`, so we can access the latest instance inside the `useCallback`.\n\n callback.current = onChange;\n const setRef = React.useCallback(node => {\n if (unobserve.current !== undefined) {\n unobserve.current();\n unobserve.current = undefined;\n } // Skip creating the observer\n\n\n if (skip) return;\n\n if (node) {\n unobserve.current = observe(node, (inView, entry) => {\n setState({\n inView,\n entry\n });\n if (callback.current) callback.current(inView, entry);\n\n if (entry.isIntersecting && triggerOnce && unobserve.current) {\n // If it should only trigger once, unobserve the element after it's inView\n unobserve.current();\n unobserve.current = undefined;\n }\n }, {\n root,\n rootMargin,\n threshold,\n // @ts-ignore\n trackVisibility,\n // @ts-ignore\n delay\n }, fallbackInView);\n }\n }, // We break the rule here, because we aren't including the actual `threshold` variable\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [// If the threshold is an array, convert it to a string so it won't change between renders.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n Array.isArray(threshold) ? threshold.toString() : threshold, root, rootMargin, triggerOnce, skip, trackVisibility, fallbackInView, delay]);\n /* eslint-disable-next-line */\n\n React.useEffect(() => {\n if (!unobserve.current && state.entry && !triggerOnce && !skip) {\n // If we don't have a ref, then reset the state (unless the hook is set to only `triggerOnce` or `skip`)\n // This ensures we correctly reflect the current state - If you aren't observing anything, then nothing is inView\n setState({\n inView: !!initialInView\n });\n }\n });\n const result = [setRef, state.inView, state.entry]; // Support object destructuring, by adding the specific values.\n\n result.ref = result[0];\n result.inView = result[1];\n result.entry = result[2];\n return result;\n}\n\nexport { InView, defaultFallbackInView, observe, useInView };\n//# sourceMappingURL=react-intersection-observer.modern.mjs.map\n"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","observerMap","Map","RootIds","WeakMap","unsupportedValue","rootId","optionsToId","options","keys","sort","filter","undefined","map","root","has","set","toString","get","observe","element","callback","fallbackInView","window","IntersectionObserver","bounds","getBoundingClientRect","isIntersecting","intersectionRatio","threshold","time","boundingClientRect","intersectionRect","rootBounds","id","observer","elements","instance","thresholds","entries","forEach","entry","_elements$get","inView","some","trackVisibility","isVisible","Array","isArray","createObserver","callbacks","push","splice","indexOf","delete","unobserve","size","disconnect","_excluded","isPlainChildren","props","children","InView","React","Component","constructor","super","node","_unobserveCb","handleNode","triggerOnce","skip","setState","initialInView","observeNode","handleChange","onChange","state","componentDidUpdate","prevProps","rootMargin","delay","componentWillUnmount","render","ref","_this$props","as","excluded","sourceKeys","_objectWithoutPropertiesLoose","createElement"],"mappings":"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"}
@@ -1,2 +0,0 @@
1
- var r=function(){return r=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++)for(var o in e=arguments[t])Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o]);return r},r.apply(this,arguments)};function e(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t}function t(r,e){return Object.defineProperty?Object.defineProperty(r,"raw",{value:e}):r.raw=e,r}export{r as __assign,t as __makeTemplateObject,e as __rest};
2
- //# sourceMappingURL=tslib.es6.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tslib.es6.js","sources":["../../../../node_modules/tslib/tslib.es6.js"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","__makeTemplateObject","cooked","raw","defineProperty","value"],"mappings":"AA+BU,IAACA,EAAW,WAQlB,OAPAA,EAAWC,OAAOC,QAAU,SAAkBC,GAC1C,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KAAIN,EAAEM,GAAKL,EAAEK,IAE9E,OAAON,CACV,EACMH,EAASa,MAAMC,KAAMP,UAChC,EAEO,SAASQ,EAAOX,EAAGY,GACtB,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,CA4JO,SAASiB,EAAqBC,EAAQC,GAEzC,OADIrB,OAAOsB,eAAkBtB,OAAOsB,eAAeF,EAAQ,MAAO,CAAEG,MAAOF,IAAiBD,EAAOC,IAAMA,EAClGD,CACX"}
@@ -1,2 +0,0 @@
1
- function n(n,t){return"function"==typeof n?n(t):n&&(n.current=t),n}export{n as assignRef};
2
- //# sourceMappingURL=assignRef.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assignRef.js","sources":["../../../../../../node_modules/use-callback-ref/dist/es2015/assignRef.js"],"sourcesContent":["/**\n * Assigns a value for a given ref, no matter of the ref format\n * @param {RefObject} ref - a callback function or ref object\n * @param value - a new value\n *\n * @see https://github.com/theKashey/use-callback-ref#assignref\n * @example\n * const refObject = useRef();\n * const refFn = (ref) => {....}\n *\n * assignRef(refObject, \"refValue\");\n * assignRef(refFn, \"refValue\");\n */\nexport function assignRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n }\n else if (ref) {\n ref.current = value;\n }\n return ref;\n}\n"],"names":["assignRef","ref","value","current"],"mappings":"AAaO,SAASA,EAAUC,EAAKC,GAO3B,MANmB,mBAARD,EACPA,EAAIC,GAECD,IACLA,EAAIE,QAAUD,GAEXD,CACX"}
@@ -1,2 +0,0 @@
1
- import{assignRef as r}from"./assignRef.js";import{useCallbackRef as n}from"./useRef.js";function o(o,t){return n(t||null,(function(n){return o.forEach((function(o){return r(o,n)}))}))}export{o as useMergeRefs};
2
- //# sourceMappingURL=useMergeRef.js.map