@cruk/cruk-react-components 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +67 -0
- package/README.md +132 -0
- package/lib/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.js +2 -0
- package/lib/cjs/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +1 -0
- package/lib/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +2 -0
- package/lib/cjs/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
- package/lib/cjs/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +2 -0
- package/lib/cjs/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +1 -0
- package/lib/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +2 -0
- package/lib/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
- package/lib/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +2 -0
- package/lib/cjs/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/constants.js +2 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/constants.js.map +1 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/focusInside.js +2 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/focusInside.js.map +1 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/focusIsHidden.js +2 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/focusIsHidden.js.map +1 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/focusMerge.js +2 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/focusMerge.js.map +1 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/focusables.js +2 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/focusables.js.map +1 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/index.js +2 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/index.js.map +1 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/setFocus.js +2 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/setFocus.js.map +1 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/solver.js +2 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/solver.js.map +1 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/DOMutils.js +2 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/DOMutils.js.map +1 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/all-affected.js +2 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/all-affected.js.map +1 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/array.js +2 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/array.js.map +1 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/correctFocus.js +2 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/correctFocus.js.map +1 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/firstFocus.js +2 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/firstFocus.js.map +1 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/is.js +2 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/is.js.map +1 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/parenting.js +2 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/parenting.js.map +1 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/tabOrder.js +2 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/tabOrder.js.map +1 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/tabUtils.js +2 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/tabUtils.js.map +1 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/tabbables.js +2 -0
- package/lib/cjs/node_modules/focus-lock/dist/es2015/utils/tabbables.js.map +1 -0
- package/lib/cjs/node_modules/react-clientside-effect/lib/index.es.js +2 -0
- package/lib/cjs/node_modules/react-clientside-effect/lib/index.es.js.map +1 -0
- package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Combination.js +2 -0
- package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Combination.js.map +1 -0
- package/lib/cjs/node_modules/react-focus-lock/dist/es2015/FocusGuard.js +2 -0
- package/lib/cjs/node_modules/react-focus-lock/dist/es2015/FocusGuard.js.map +1 -0
- package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Lock.js +2 -0
- package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Lock.js.map +1 -0
- package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Trap.js +2 -0
- package/lib/cjs/node_modules/react-focus-lock/dist/es2015/Trap.js.map +1 -0
- package/lib/cjs/node_modules/react-focus-lock/dist/es2015/index.js +2 -0
- package/lib/cjs/node_modules/react-focus-lock/dist/es2015/index.js.map +1 -0
- package/lib/cjs/node_modules/react-focus-lock/dist/es2015/medium.js +2 -0
- package/lib/cjs/node_modules/react-focus-lock/dist/es2015/medium.js.map +1 -0
- package/lib/cjs/node_modules/react-focus-lock/dist/es2015/util.js +2 -0
- package/lib/cjs/node_modules/react-focus-lock/dist/es2015/util.js.map +1 -0
- package/lib/cjs/node_modules/tslib/tslib.es6.js +17 -0
- package/lib/cjs/node_modules/tslib/tslib.es6.js.map +1 -0
- package/lib/cjs/node_modules/use-callback-ref/dist/es2015/assignRef.js +2 -0
- package/lib/cjs/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
- package/lib/cjs/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +2 -0
- package/lib/cjs/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
- package/lib/cjs/node_modules/use-callback-ref/dist/es2015/useRef.js +2 -0
- package/lib/cjs/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
- package/lib/cjs/node_modules/use-sidecar/dist/es2015/medium.js +2 -0
- package/lib/cjs/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
- package/lib/cjs/node_modules/use-sidecar/node_modules/tslib/tslib.es6.js +17 -0
- package/lib/cjs/node_modules/use-sidecar/node_modules/tslib/tslib.es6.js.map +1 -0
- package/lib/cjs/src/components/AddressLookup/README.md.js +2 -0
- package/lib/cjs/src/components/AddressLookup/README.md.js.map +1 -0
- package/lib/cjs/src/components/AddressLookup/index.js +2 -0
- package/lib/cjs/src/components/AddressLookup/index.js.map +1 -0
- package/lib/cjs/src/components/AddressLookup/styles.js +2 -0
- package/lib/cjs/src/components/AddressLookup/styles.js.map +1 -0
- package/lib/cjs/src/components/Avatar/README.md.js +2 -0
- package/lib/cjs/src/components/Avatar/README.md.js.map +1 -0
- package/lib/cjs/src/components/Avatar/index.js +2 -0
- package/lib/cjs/src/components/Avatar/index.js.map +1 -0
- package/lib/cjs/src/components/Avatar/styles.js +2 -0
- package/lib/cjs/src/components/Avatar/styles.js.map +1 -0
- package/lib/cjs/src/components/Badge/README.md.js +2 -0
- package/lib/cjs/src/components/Badge/README.md.js.map +1 -0
- package/lib/cjs/src/components/Badge/index.js +2 -0
- package/lib/cjs/src/components/Badge/index.js.map +1 -0
- package/lib/cjs/src/components/Badge/styles.js +2 -0
- package/lib/cjs/src/components/Badge/styles.js.map +1 -0
- package/lib/cjs/src/components/Box/README.md.js +2 -0
- package/lib/cjs/src/components/Box/README.md.js.map +1 -0
- package/lib/cjs/src/components/Box/index.js +2 -0
- package/lib/cjs/src/components/Box/index.js.map +1 -0
- package/lib/cjs/src/components/Box/styles.js +2 -0
- package/lib/cjs/src/components/Box/styles.js.map +1 -0
- package/lib/cjs/src/components/Button/README.md.js +2 -0
- package/lib/cjs/src/components/Button/README.md.js.map +1 -0
- package/lib/cjs/src/components/Button/index.js +2 -0
- package/lib/cjs/src/components/Button/index.js.map +1 -0
- package/lib/cjs/src/components/Button/styles.js +2 -0
- package/lib/cjs/src/components/Button/styles.js.map +1 -0
- package/lib/cjs/src/components/Checkbox/README.md.js +2 -0
- package/lib/cjs/src/components/Checkbox/README.md.js.map +1 -0
- package/lib/cjs/src/components/Checkbox/index.js +2 -0
- package/lib/cjs/src/components/Checkbox/index.js.map +1 -0
- package/lib/cjs/src/components/Checkbox/styles.js +2 -0
- package/lib/cjs/src/components/Checkbox/styles.js.map +1 -0
- package/lib/cjs/src/components/Collapse/README.md.js +2 -0
- package/lib/cjs/src/components/Collapse/README.md.js.map +1 -0
- package/lib/cjs/src/components/Collapse/index.js +2 -0
- package/lib/cjs/src/components/Collapse/index.js.map +1 -0
- package/lib/cjs/src/components/Collapse/styles.js +2 -0
- package/lib/cjs/src/components/Collapse/styles.js.map +1 -0
- package/lib/cjs/src/components/DateField/README.md.js +2 -0
- package/lib/cjs/src/components/DateField/README.md.js.map +1 -0
- package/lib/cjs/src/components/DateField/index.js +2 -0
- package/lib/cjs/src/components/DateField/index.js.map +1 -0
- package/lib/cjs/src/components/DateField/styles.js +2 -0
- package/lib/cjs/src/components/DateField/styles.js.map +1 -0
- package/lib/cjs/src/components/Divider.js +2 -0
- package/lib/cjs/src/components/Divider.js.map +1 -0
- package/lib/cjs/src/components/ErrorText/README.md.js +2 -0
- package/lib/cjs/src/components/ErrorText/README.md.js.map +1 -0
- package/lib/cjs/src/components/ErrorText/index.js +2 -0
- package/lib/cjs/src/components/ErrorText/index.js.map +1 -0
- package/lib/cjs/src/components/ErrorText/styles.js +2 -0
- package/lib/cjs/src/components/ErrorText/styles.js.map +1 -0
- package/lib/cjs/src/components/Flex.js +2 -0
- package/lib/cjs/src/components/Flex.js.map +1 -0
- package/lib/cjs/src/components/Footer/README.md.js +2 -0
- package/lib/cjs/src/components/Footer/README.md.js.map +1 -0
- package/lib/cjs/src/components/Footer/index.js +2 -0
- package/lib/cjs/src/components/Footer/index.js.map +1 -0
- package/lib/cjs/src/components/Footer/styles.js +2 -0
- package/lib/cjs/src/components/Footer/styles.js.map +1 -0
- package/lib/cjs/src/components/GlobalStyle.js +2 -0
- package/lib/cjs/src/components/GlobalStyle.js.map +1 -0
- package/lib/cjs/src/components/Header/README.md.js +2 -0
- package/lib/cjs/src/components/Header/README.md.js.map +1 -0
- package/lib/cjs/src/components/Header/index.js +2 -0
- package/lib/cjs/src/components/Header/index.js.map +1 -0
- package/lib/cjs/src/components/Header/styles.js +2 -0
- package/lib/cjs/src/components/Header/styles.js.map +1 -0
- package/lib/cjs/src/components/Heading/README.md.js +2 -0
- package/lib/cjs/src/components/Heading/README.md.js.map +1 -0
- package/lib/cjs/src/components/Heading/index.js +2 -0
- package/lib/cjs/src/components/Heading/index.js.map +1 -0
- package/lib/cjs/src/components/Heading/styles.js +2 -0
- package/lib/cjs/src/components/Heading/styles.js.map +1 -0
- package/lib/cjs/src/components/Icon/README.md.js +2 -0
- package/lib/cjs/src/components/Icon/README.md.js.map +1 -0
- package/lib/cjs/src/components/Icon/iconList.js +2 -0
- package/lib/cjs/src/components/Icon/iconList.js.map +1 -0
- package/lib/cjs/src/components/Icon/index.js +2 -0
- package/lib/cjs/src/components/Icon/index.js.map +1 -0
- package/lib/cjs/src/components/Icon/styles.js +2 -0
- package/lib/cjs/src/components/Icon/styles.js.map +1 -0
- package/lib/cjs/src/components/LabelWrapper/index.js +2 -0
- package/lib/cjs/src/components/LabelWrapper/index.js.map +1 -0
- package/lib/cjs/src/components/LabelWrapper/styles.js +2 -0
- package/lib/cjs/src/components/LabelWrapper/styles.js.map +1 -0
- package/lib/cjs/src/components/LegendWrapper/README.md.js +2 -0
- package/lib/cjs/src/components/LegendWrapper/README.md.js.map +1 -0
- package/lib/cjs/src/components/LegendWrapper/index.js +2 -0
- package/lib/cjs/src/components/LegendWrapper/index.js.map +1 -0
- package/lib/cjs/src/components/LegendWrapper/styles.js +2 -0
- package/lib/cjs/src/components/LegendWrapper/styles.js.map +1 -0
- package/lib/cjs/src/components/Link/README.md.js +2 -0
- package/lib/cjs/src/components/Link/README.md.js.map +1 -0
- package/lib/cjs/src/components/Link/index.js +2 -0
- package/lib/cjs/src/components/Link/index.js.map +1 -0
- package/lib/cjs/src/components/Link/styles.js +2 -0
- package/lib/cjs/src/components/Link/styles.js.map +1 -0
- package/lib/cjs/src/components/Loader/README.md.js +2 -0
- package/lib/cjs/src/components/Loader/README.md.js.map +1 -0
- package/lib/cjs/src/components/Loader/index.js +2 -0
- package/lib/cjs/src/components/Loader/index.js.map +1 -0
- package/lib/cjs/src/components/Loader/styles.js +2 -0
- package/lib/cjs/src/components/Loader/styles.js.map +1 -0
- package/lib/cjs/src/components/Modal/README.md.js +2 -0
- package/lib/cjs/src/components/Modal/README.md.js.map +1 -0
- package/lib/cjs/src/components/Modal/index.js +2 -0
- package/lib/cjs/src/components/Modal/index.js.map +1 -0
- package/lib/cjs/src/components/Modal/styles.js +2 -0
- package/lib/cjs/src/components/Modal/styles.js.map +1 -0
- package/lib/cjs/src/components/Pagination/README.md.js +2 -0
- package/lib/cjs/src/components/Pagination/README.md.js.map +1 -0
- package/lib/cjs/src/components/Pagination/index.js +2 -0
- package/lib/cjs/src/components/Pagination/index.js.map +1 -0
- package/lib/cjs/src/components/Pagination/styles.js +2 -0
- package/lib/cjs/src/components/Pagination/styles.js.map +1 -0
- package/lib/cjs/src/components/PopOver/README.md.js +2 -0
- package/lib/cjs/src/components/PopOver/README.md.js.map +1 -0
- package/lib/cjs/src/components/PopOver/index.js +2 -0
- package/lib/cjs/src/components/PopOver/index.js.map +1 -0
- package/lib/cjs/src/components/PopOver/styles.js +2 -0
- package/lib/cjs/src/components/PopOver/styles.js.map +1 -0
- package/lib/cjs/src/components/ProgressBar/README.md.js +2 -0
- package/lib/cjs/src/components/ProgressBar/README.md.js.map +1 -0
- package/lib/cjs/src/components/ProgressBar/index.js +2 -0
- package/lib/cjs/src/components/ProgressBar/index.js.map +1 -0
- package/lib/cjs/src/components/ProgressBar/styles.js +2 -0
- package/lib/cjs/src/components/ProgressBar/styles.js.map +1 -0
- package/lib/cjs/src/components/Radio/README.md.js +2 -0
- package/lib/cjs/src/components/Radio/README.md.js.map +1 -0
- package/lib/cjs/src/components/Radio/index.js +2 -0
- package/lib/cjs/src/components/Radio/index.js.map +1 -0
- package/lib/cjs/src/components/Radio/styles.js +2 -0
- package/lib/cjs/src/components/Radio/styles.js.map +1 -0
- package/lib/cjs/src/components/RadioGroup/README.md.js +2 -0
- package/lib/cjs/src/components/RadioGroup/README.md.js.map +1 -0
- package/lib/cjs/src/components/RadioGroup/index.js +2 -0
- package/lib/cjs/src/components/RadioGroup/index.js.map +1 -0
- package/lib/cjs/src/components/RadioGroup/styles.js +2 -0
- package/lib/cjs/src/components/RadioGroup/styles.js.map +1 -0
- package/lib/cjs/src/components/Select/README.md.js +2 -0
- package/lib/cjs/src/components/Select/README.md.js.map +1 -0
- package/lib/cjs/src/components/Select/index.js +2 -0
- package/lib/cjs/src/components/Select/index.js.map +1 -0
- package/lib/cjs/src/components/Select/styles.js +2 -0
- package/lib/cjs/src/components/Select/styles.js.map +1 -0
- package/lib/cjs/src/components/Spacing/index.js +2 -0
- package/lib/cjs/src/components/Spacing/index.js.map +1 -0
- package/lib/cjs/src/components/Step/README.md.js +2 -0
- package/lib/cjs/src/components/Step/README.md.js.map +1 -0
- package/lib/cjs/src/components/Step/index.js +2 -0
- package/lib/cjs/src/components/Step/index.js.map +1 -0
- package/lib/cjs/src/components/Step/styles.js +2 -0
- package/lib/cjs/src/components/Step/styles.js.map +1 -0
- package/lib/cjs/src/components/Text/README.md.js +2 -0
- package/lib/cjs/src/components/Text/README.md.js.map +1 -0
- package/lib/cjs/src/components/Text/index.js +2 -0
- package/lib/cjs/src/components/Text/index.js.map +1 -0
- package/lib/cjs/src/components/Text/styles.js +2 -0
- package/lib/cjs/src/components/Text/styles.js.map +1 -0
- package/lib/cjs/src/components/TextAreaField/README.md.js +2 -0
- package/lib/cjs/src/components/TextAreaField/README.md.js.map +1 -0
- package/lib/cjs/src/components/TextAreaField/index.js +2 -0
- package/lib/cjs/src/components/TextAreaField/index.js.map +1 -0
- package/lib/cjs/src/components/TextAreaField/styles.js +2 -0
- package/lib/cjs/src/components/TextAreaField/styles.js.map +1 -0
- package/lib/cjs/src/components/TextField/README.md.js +2 -0
- package/lib/cjs/src/components/TextField/README.md.js.map +1 -0
- package/lib/cjs/src/components/TextField/index.js +2 -0
- package/lib/cjs/src/components/TextField/index.js.map +1 -0
- package/lib/cjs/src/components/TextField/styles.js +2 -0
- package/lib/cjs/src/components/TextField/styles.js.map +1 -0
- package/lib/cjs/src/components/Totaliser/README.md.js +2 -0
- package/lib/cjs/src/components/Totaliser/README.md.js.map +1 -0
- package/lib/cjs/src/components/Totaliser/index.js +2 -0
- package/lib/cjs/src/components/Totaliser/index.js.map +1 -0
- package/lib/cjs/src/components/Totaliser/styles.js +2 -0
- package/lib/cjs/src/components/Totaliser/styles.js.map +1 -0
- package/lib/cjs/src/components/UserBlock/README.md.js +2 -0
- package/lib/cjs/src/components/UserBlock/README.md.js.map +1 -0
- package/lib/cjs/src/components/UserBlock/index.js +2 -0
- package/lib/cjs/src/components/UserBlock/index.js.map +1 -0
- package/lib/cjs/src/components/UserBlock/styles.js +2 -0
- package/lib/cjs/src/components/UserBlock/styles.js.map +1 -0
- package/lib/cjs/src/components/index.js +2 -0
- package/lib/cjs/src/components/index.js.map +1 -0
- package/lib/cjs/src/hooks/useEffectBrowser.js +2 -0
- package/lib/cjs/src/hooks/useEffectBrowser.js.map +1 -0
- package/lib/cjs/src/hooks/useKey.js +2 -0
- package/lib/cjs/src/hooks/useKey.js.map +1 -0
- package/lib/cjs/src/hooks/useLayoutEffectBrowser.js +2 -0
- package/lib/cjs/src/hooks/useLayoutEffectBrowser.js.map +1 -0
- package/lib/cjs/src/hooks/useScrollPosition.js +2 -0
- package/lib/cjs/src/hooks/useScrollPosition.js.map +1 -0
- package/lib/cjs/src/themes/cruk.js +2 -0
- package/lib/cjs/src/themes/cruk.js.map +1 -0
- package/lib/cjs/src/themes/su2c.js +2 -0
- package/lib/cjs/src/themes/su2c.js.map +1 -0
- package/lib/cjs/src/utils/Helper.js +2 -0
- package/lib/cjs/src/utils/Helper.js.map +1 -0
- package/lib/cjs/src/utils/debounce.js +2 -0
- package/lib/cjs/src/utils/debounce.js.map +1 -0
- package/lib/components/AddressLookup/AddressLookup.stories.d.ts +6 -0
- package/lib/components/AddressLookup/index.d.ts +36 -0
- package/lib/components/AddressLookup/styles.d.ts +14 -0
- package/lib/components/AddressLookup/test.cypress.d.ts +1 -0
- package/lib/components/Avatar/Avatar.stories.d.ts +15 -0
- package/lib/components/Avatar/index.d.ts +15 -0
- package/lib/components/Avatar/styles.d.ts +5 -0
- package/lib/components/Avatar/test.cypress.d.ts +1 -0
- package/lib/components/Badge/Badge.stories.d.ts +12 -0
- package/lib/components/Badge/index.d.ts +29 -0
- package/lib/components/Badge/styles.d.ts +11 -0
- package/lib/components/Badge/test.cypress.d.ts +1 -0
- package/lib/components/Box/Box.stories.d.ts +10 -0
- package/lib/components/Box/index.d.ts +15 -0
- package/lib/components/Box/styles.d.ts +7 -0
- package/lib/components/Box/test.cypress.d.ts +1 -0
- package/lib/components/Button/Button.stories.d.ts +11 -0
- package/lib/components/Button/index.d.ts +23 -0
- package/lib/components/Button/styles.d.ts +13 -0
- package/lib/components/Button/test.cypress.d.ts +1 -0
- package/lib/components/Checkbox/Checkbox.stories.d.ts +7 -0
- package/lib/components/Checkbox/index.d.ts +15 -0
- package/lib/components/Checkbox/styles.d.ts +12 -0
- package/lib/components/Checkbox/test.cypress.d.ts +1 -0
- package/lib/components/Collapse/Collapse.stories.d.ts +10 -0
- package/lib/components/Collapse/index.d.ts +27 -0
- package/lib/components/Collapse/styles.d.ts +15 -0
- package/lib/components/Collapse/test.cypress.d.ts +1 -0
- package/lib/components/DateField/DateField.stories.d.ts +8 -0
- package/lib/components/DateField/index.d.ts +32 -0
- package/lib/components/DateField/styles.d.ts +4 -0
- package/lib/components/DateField/test.cypress.d.ts +1 -0
- package/lib/components/Divider.d.ts +3 -0
- package/lib/components/ErrorText/ErrorText.stories.d.ts +6 -0
- package/lib/components/ErrorText/index.d.ts +13 -0
- package/lib/components/ErrorText/styles.d.ts +2 -0
- package/lib/components/ErrorText/test.cypress.d.ts +1 -0
- package/lib/components/Flex.d.ts +6 -0
- package/lib/components/Footer/Footer.stories.d.ts +6 -0
- package/lib/components/Footer/index.d.ts +10 -0
- package/lib/components/Footer/styles.d.ts +11 -0
- package/lib/components/Footer/test.cypress.d.ts +1 -0
- package/lib/components/GlobalStyle.d.ts +9 -0
- package/lib/components/Header/Header.stories.d.ts +6 -0
- package/lib/components/Header/index.d.ts +36 -0
- package/lib/components/Header/styles.d.ts +24 -0
- package/lib/components/Header/test.cypress.d.ts +1 -0
- package/lib/components/Heading/Heading.stories.d.ts +19 -0
- package/lib/components/Heading/index.d.ts +26 -0
- package/lib/components/Heading/styles.d.ts +16 -0
- package/lib/components/Heading/test.cypress.d.ts +1 -0
- package/lib/components/Icon/Icon.stories.d.ts +6 -0
- package/lib/components/Icon/iconList.d.ts +268 -0
- package/lib/components/Icon/index.d.ts +23 -0
- package/lib/components/Icon/styles.d.ts +4 -0
- package/lib/components/Icon/test.cypress.d.ts +1 -0
- package/lib/components/LabelWrapper/index.d.ts +13 -0
- package/lib/components/LabelWrapper/styles.d.ts +6 -0
- package/lib/components/LegendWrapper/LegendWrapper.stories.d.ts +10 -0
- package/lib/components/LegendWrapper/index.d.ts +22 -0
- package/lib/components/LegendWrapper/styles.d.ts +12 -0
- package/lib/components/LegendWrapper/test.cypress.d.ts +1 -0
- package/lib/components/Link/Link.stories.d.ts +11 -0
- package/lib/components/Link/index.d.ts +22 -0
- package/lib/components/Link/styles.d.ts +11 -0
- package/lib/components/Link/test.cypress.d.ts +1 -0
- package/lib/components/Loader/Loader.stories.d.ts +5 -0
- package/lib/components/Loader/index.d.ts +7 -0
- package/lib/components/Loader/styles.d.ts +2 -0
- package/lib/components/Loader/test.cypress.d.ts +1 -0
- package/lib/components/Modal/Modal.stories.d.ts +6 -0
- package/lib/components/Modal/index.d.ts +27 -0
- package/lib/components/Modal/styles.d.ts +8 -0
- package/lib/components/Modal/test.cypress.d.ts +1 -0
- package/lib/components/Pagination/Pagination.stories.d.ts +6 -0
- package/lib/components/Pagination/index.d.ts +23 -0
- package/lib/components/Pagination/styles.d.ts +10 -0
- package/lib/components/Pagination/test.cypress.d.ts +1 -0
- package/lib/components/PopOver/Popover.stories.d.ts +6 -0
- package/lib/components/PopOver/index.d.ts +23 -0
- package/lib/components/PopOver/styles.d.ts +10 -0
- package/lib/components/PopOver/test.cypress.d.ts +1 -0
- package/lib/components/ProgressBar/ProgressBar.stories.d.ts +8 -0
- package/lib/components/ProgressBar/index.d.ts +19 -0
- package/lib/components/ProgressBar/styles.d.ts +20 -0
- package/lib/components/ProgressBar/test.cypress.d.ts +1 -0
- package/lib/components/Radio/Radio.stories.d.ts +7 -0
- package/lib/components/Radio/index.d.ts +15 -0
- package/lib/components/Radio/styles.d.ts +12 -0
- package/lib/components/Radio/test.cypress.d.ts +1 -0
- package/lib/components/RadioGroup/Radio.stories.d.ts +6 -0
- package/lib/components/RadioGroup/index.d.ts +24 -0
- package/lib/components/RadioGroup/styles.d.ts +8 -0
- package/lib/components/RadioGroup/test.cypress.d.ts +1 -0
- package/lib/components/Select/Selelct.stories.d.ts +8 -0
- package/lib/components/Select/index.d.ts +18 -0
- package/lib/components/Select/styles.d.ts +8 -0
- package/lib/components/Select/test.cypress.d.ts +1 -0
- package/lib/components/Spacing/index.d.ts +19 -0
- package/lib/components/Step/Step.stories.d.ts +6 -0
- package/lib/components/Step/index.d.ts +14 -0
- package/lib/components/Step/styles.d.ts +13 -0
- package/lib/components/Step/test.cypress.d.ts +1 -0
- package/lib/components/TestWrapper.d.ts +8 -0
- package/lib/components/Text/Text.stories.d.ts +6 -0
- package/lib/components/Text/index.d.ts +24 -0
- package/lib/components/Text/styles.d.ts +12 -0
- package/lib/components/Text/test.cypress.d.ts +1 -0
- package/lib/components/TextAreaField/TextAreaField.stories.d.ts +8 -0
- package/lib/components/TextAreaField/index.d.ts +22 -0
- package/lib/components/TextAreaField/styles.d.ts +9 -0
- package/lib/components/TextAreaField/test.cypress.d.ts +1 -0
- package/lib/components/TextField/TextField.stories.d.ts +10 -0
- package/lib/components/TextField/index.d.ts +34 -0
- package/lib/components/TextField/styles.d.ts +18 -0
- package/lib/components/TextField/test.cypress.d.ts +1 -0
- package/lib/components/ThemeCheatSheet.d.ts +9 -0
- package/lib/components/Totaliser/Totaliser.stories.d.ts +14 -0
- package/lib/components/Totaliser/index.d.ts +18 -0
- package/lib/components/Totaliser/styles.d.ts +18 -0
- package/lib/components/Totaliser/test.cypress.d.ts +1 -0
- package/lib/components/UserBlock/UserBlock.stories.d.ts +12 -0
- package/lib/components/UserBlock/index.d.ts +18 -0
- package/lib/components/UserBlock/styles.d.ts +4 -0
- package/lib/components/UserBlock/test.cypress.d.ts +1 -0
- package/lib/components/index.d.ts +65 -0
- package/lib/es/node_modules/@babel/runtime/helpers/esm/defineProperty.js +2 -0
- package/lib/es/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +1 -0
- package/lib/es/node_modules/@babel/runtime/helpers/esm/extends.js +2 -0
- package/lib/es/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -0
- package/lib/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +2 -0
- package/lib/es/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js.map +1 -0
- package/lib/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +2 -0
- package/lib/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -0
- package/lib/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +2 -0
- package/lib/es/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/constants.js +2 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/constants.js.map +1 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/focusInside.js +2 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/focusInside.js.map +1 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/focusIsHidden.js +2 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/focusIsHidden.js.map +1 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/focusMerge.js +2 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/focusMerge.js.map +1 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/focusables.js +2 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/focusables.js.map +1 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/index.js +2 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/index.js.map +1 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/setFocus.js +2 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/setFocus.js.map +1 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/solver.js +2 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/solver.js.map +1 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/DOMutils.js +2 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/DOMutils.js.map +1 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/all-affected.js +2 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/all-affected.js.map +1 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/array.js +2 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/array.js.map +1 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/correctFocus.js +2 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/correctFocus.js.map +1 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/firstFocus.js +2 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/firstFocus.js.map +1 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/is.js +2 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/is.js.map +1 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/parenting.js +2 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/parenting.js.map +1 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabOrder.js +2 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabOrder.js.map +1 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabUtils.js +2 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabUtils.js.map +1 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabbables.js +2 -0
- package/lib/es/node_modules/focus-lock/dist/es2015/utils/tabbables.js.map +1 -0
- package/lib/es/node_modules/react-clientside-effect/lib/index.es.js +2 -0
- package/lib/es/node_modules/react-clientside-effect/lib/index.es.js.map +1 -0
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Combination.js +2 -0
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Combination.js.map +1 -0
- package/lib/es/node_modules/react-focus-lock/dist/es2015/FocusGuard.js +2 -0
- package/lib/es/node_modules/react-focus-lock/dist/es2015/FocusGuard.js.map +1 -0
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Lock.js +2 -0
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Lock.js.map +1 -0
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Trap.js +2 -0
- package/lib/es/node_modules/react-focus-lock/dist/es2015/Trap.js.map +1 -0
- package/lib/es/node_modules/react-focus-lock/dist/es2015/index.js +2 -0
- package/lib/es/node_modules/react-focus-lock/dist/es2015/index.js.map +1 -0
- package/lib/es/node_modules/react-focus-lock/dist/es2015/medium.js +2 -0
- package/lib/es/node_modules/react-focus-lock/dist/es2015/medium.js.map +1 -0
- package/lib/es/node_modules/react-focus-lock/dist/es2015/util.js +2 -0
- package/lib/es/node_modules/react-focus-lock/dist/es2015/util.js.map +1 -0
- package/lib/es/node_modules/tslib/tslib.es6.js +16 -0
- package/lib/es/node_modules/tslib/tslib.es6.js.map +1 -0
- package/lib/es/node_modules/use-callback-ref/dist/es2015/assignRef.js +2 -0
- package/lib/es/node_modules/use-callback-ref/dist/es2015/assignRef.js.map +1 -0
- package/lib/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +2 -0
- package/lib/es/node_modules/use-callback-ref/dist/es2015/useMergeRef.js.map +1 -0
- package/lib/es/node_modules/use-callback-ref/dist/es2015/useRef.js +2 -0
- package/lib/es/node_modules/use-callback-ref/dist/es2015/useRef.js.map +1 -0
- package/lib/es/node_modules/use-sidecar/dist/es2015/medium.js +2 -0
- package/lib/es/node_modules/use-sidecar/dist/es2015/medium.js.map +1 -0
- package/lib/es/node_modules/use-sidecar/node_modules/tslib/tslib.es6.js +16 -0
- package/lib/es/node_modules/use-sidecar/node_modules/tslib/tslib.es6.js.map +1 -0
- package/lib/es/src/components/AddressLookup/README.md.js +2 -0
- package/lib/es/src/components/AddressLookup/README.md.js.map +1 -0
- package/lib/es/src/components/AddressLookup/index.js +2 -0
- package/lib/es/src/components/AddressLookup/index.js.map +1 -0
- package/lib/es/src/components/AddressLookup/styles.js +2 -0
- package/lib/es/src/components/AddressLookup/styles.js.map +1 -0
- package/lib/es/src/components/Avatar/README.md.js +2 -0
- package/lib/es/src/components/Avatar/README.md.js.map +1 -0
- package/lib/es/src/components/Avatar/index.js +2 -0
- package/lib/es/src/components/Avatar/index.js.map +1 -0
- package/lib/es/src/components/Avatar/styles.js +2 -0
- package/lib/es/src/components/Avatar/styles.js.map +1 -0
- package/lib/es/src/components/Badge/README.md.js +2 -0
- package/lib/es/src/components/Badge/README.md.js.map +1 -0
- package/lib/es/src/components/Badge/index.js +2 -0
- package/lib/es/src/components/Badge/index.js.map +1 -0
- package/lib/es/src/components/Badge/styles.js +2 -0
- package/lib/es/src/components/Badge/styles.js.map +1 -0
- package/lib/es/src/components/Box/README.md.js +2 -0
- package/lib/es/src/components/Box/README.md.js.map +1 -0
- package/lib/es/src/components/Box/index.js +2 -0
- package/lib/es/src/components/Box/index.js.map +1 -0
- package/lib/es/src/components/Box/styles.js +2 -0
- package/lib/es/src/components/Box/styles.js.map +1 -0
- package/lib/es/src/components/Button/README.md.js +2 -0
- package/lib/es/src/components/Button/README.md.js.map +1 -0
- package/lib/es/src/components/Button/index.js +2 -0
- package/lib/es/src/components/Button/index.js.map +1 -0
- package/lib/es/src/components/Button/styles.js +2 -0
- package/lib/es/src/components/Button/styles.js.map +1 -0
- package/lib/es/src/components/Checkbox/README.md.js +2 -0
- package/lib/es/src/components/Checkbox/README.md.js.map +1 -0
- package/lib/es/src/components/Checkbox/index.js +2 -0
- package/lib/es/src/components/Checkbox/index.js.map +1 -0
- package/lib/es/src/components/Checkbox/styles.js +2 -0
- package/lib/es/src/components/Checkbox/styles.js.map +1 -0
- package/lib/es/src/components/Collapse/README.md.js +2 -0
- package/lib/es/src/components/Collapse/README.md.js.map +1 -0
- package/lib/es/src/components/Collapse/index.js +2 -0
- package/lib/es/src/components/Collapse/index.js.map +1 -0
- package/lib/es/src/components/Collapse/styles.js +2 -0
- package/lib/es/src/components/Collapse/styles.js.map +1 -0
- package/lib/es/src/components/DateField/README.md.js +2 -0
- package/lib/es/src/components/DateField/README.md.js.map +1 -0
- package/lib/es/src/components/DateField/index.js +2 -0
- package/lib/es/src/components/DateField/index.js.map +1 -0
- package/lib/es/src/components/DateField/styles.js +2 -0
- package/lib/es/src/components/DateField/styles.js.map +1 -0
- package/lib/es/src/components/Divider.js +2 -0
- package/lib/es/src/components/Divider.js.map +1 -0
- package/lib/es/src/components/ErrorText/README.md.js +2 -0
- package/lib/es/src/components/ErrorText/README.md.js.map +1 -0
- package/lib/es/src/components/ErrorText/index.js +2 -0
- package/lib/es/src/components/ErrorText/index.js.map +1 -0
- package/lib/es/src/components/ErrorText/styles.js +2 -0
- package/lib/es/src/components/ErrorText/styles.js.map +1 -0
- package/lib/es/src/components/Flex.js +2 -0
- package/lib/es/src/components/Flex.js.map +1 -0
- package/lib/es/src/components/Footer/README.md.js +2 -0
- package/lib/es/src/components/Footer/README.md.js.map +1 -0
- package/lib/es/src/components/Footer/index.js +2 -0
- package/lib/es/src/components/Footer/index.js.map +1 -0
- package/lib/es/src/components/Footer/styles.js +2 -0
- package/lib/es/src/components/Footer/styles.js.map +1 -0
- package/lib/es/src/components/GlobalStyle.js +2 -0
- package/lib/es/src/components/GlobalStyle.js.map +1 -0
- package/lib/es/src/components/Header/README.md.js +2 -0
- package/lib/es/src/components/Header/README.md.js.map +1 -0
- package/lib/es/src/components/Header/index.js +2 -0
- package/lib/es/src/components/Header/index.js.map +1 -0
- package/lib/es/src/components/Header/styles.js +2 -0
- package/lib/es/src/components/Header/styles.js.map +1 -0
- package/lib/es/src/components/Heading/README.md.js +2 -0
- package/lib/es/src/components/Heading/README.md.js.map +1 -0
- package/lib/es/src/components/Heading/index.js +2 -0
- package/lib/es/src/components/Heading/index.js.map +1 -0
- package/lib/es/src/components/Heading/styles.js +2 -0
- package/lib/es/src/components/Heading/styles.js.map +1 -0
- package/lib/es/src/components/Icon/README.md.js +2 -0
- package/lib/es/src/components/Icon/README.md.js.map +1 -0
- package/lib/es/src/components/Icon/iconList.js +2 -0
- package/lib/es/src/components/Icon/iconList.js.map +1 -0
- package/lib/es/src/components/Icon/index.js +2 -0
- package/lib/es/src/components/Icon/index.js.map +1 -0
- package/lib/es/src/components/Icon/styles.js +2 -0
- package/lib/es/src/components/Icon/styles.js.map +1 -0
- package/lib/es/src/components/LabelWrapper/index.js +2 -0
- package/lib/es/src/components/LabelWrapper/index.js.map +1 -0
- package/lib/es/src/components/LabelWrapper/styles.js +2 -0
- package/lib/es/src/components/LabelWrapper/styles.js.map +1 -0
- package/lib/es/src/components/LegendWrapper/README.md.js +2 -0
- package/lib/es/src/components/LegendWrapper/README.md.js.map +1 -0
- package/lib/es/src/components/LegendWrapper/index.js +2 -0
- package/lib/es/src/components/LegendWrapper/index.js.map +1 -0
- package/lib/es/src/components/LegendWrapper/styles.js +2 -0
- package/lib/es/src/components/LegendWrapper/styles.js.map +1 -0
- package/lib/es/src/components/Link/README.md.js +2 -0
- package/lib/es/src/components/Link/README.md.js.map +1 -0
- package/lib/es/src/components/Link/index.js +2 -0
- package/lib/es/src/components/Link/index.js.map +1 -0
- package/lib/es/src/components/Link/styles.js +2 -0
- package/lib/es/src/components/Link/styles.js.map +1 -0
- package/lib/es/src/components/Loader/README.md.js +2 -0
- package/lib/es/src/components/Loader/README.md.js.map +1 -0
- package/lib/es/src/components/Loader/index.js +2 -0
- package/lib/es/src/components/Loader/index.js.map +1 -0
- package/lib/es/src/components/Loader/styles.js +2 -0
- package/lib/es/src/components/Loader/styles.js.map +1 -0
- package/lib/es/src/components/Modal/README.md.js +2 -0
- package/lib/es/src/components/Modal/README.md.js.map +1 -0
- package/lib/es/src/components/Modal/index.js +2 -0
- package/lib/es/src/components/Modal/index.js.map +1 -0
- package/lib/es/src/components/Modal/styles.js +2 -0
- package/lib/es/src/components/Modal/styles.js.map +1 -0
- package/lib/es/src/components/Pagination/README.md.js +2 -0
- package/lib/es/src/components/Pagination/README.md.js.map +1 -0
- package/lib/es/src/components/Pagination/index.js +2 -0
- package/lib/es/src/components/Pagination/index.js.map +1 -0
- package/lib/es/src/components/Pagination/styles.js +2 -0
- package/lib/es/src/components/Pagination/styles.js.map +1 -0
- package/lib/es/src/components/PopOver/README.md.js +2 -0
- package/lib/es/src/components/PopOver/README.md.js.map +1 -0
- package/lib/es/src/components/PopOver/index.js +2 -0
- package/lib/es/src/components/PopOver/index.js.map +1 -0
- package/lib/es/src/components/PopOver/styles.js +2 -0
- package/lib/es/src/components/PopOver/styles.js.map +1 -0
- package/lib/es/src/components/ProgressBar/README.md.js +2 -0
- package/lib/es/src/components/ProgressBar/README.md.js.map +1 -0
- package/lib/es/src/components/ProgressBar/index.js +2 -0
- package/lib/es/src/components/ProgressBar/index.js.map +1 -0
- package/lib/es/src/components/ProgressBar/styles.js +2 -0
- package/lib/es/src/components/ProgressBar/styles.js.map +1 -0
- package/lib/es/src/components/Radio/README.md.js +2 -0
- package/lib/es/src/components/Radio/README.md.js.map +1 -0
- package/lib/es/src/components/Radio/index.js +2 -0
- package/lib/es/src/components/Radio/index.js.map +1 -0
- package/lib/es/src/components/Radio/styles.js +2 -0
- package/lib/es/src/components/Radio/styles.js.map +1 -0
- package/lib/es/src/components/RadioGroup/README.md.js +2 -0
- package/lib/es/src/components/RadioGroup/README.md.js.map +1 -0
- package/lib/es/src/components/RadioGroup/index.js +2 -0
- package/lib/es/src/components/RadioGroup/index.js.map +1 -0
- package/lib/es/src/components/RadioGroup/styles.js +2 -0
- package/lib/es/src/components/RadioGroup/styles.js.map +1 -0
- package/lib/es/src/components/Select/README.md.js +2 -0
- package/lib/es/src/components/Select/README.md.js.map +1 -0
- package/lib/es/src/components/Select/index.js +2 -0
- package/lib/es/src/components/Select/index.js.map +1 -0
- package/lib/es/src/components/Select/styles.js +2 -0
- package/lib/es/src/components/Select/styles.js.map +1 -0
- package/lib/es/src/components/Spacing/index.js +2 -0
- package/lib/es/src/components/Spacing/index.js.map +1 -0
- package/lib/es/src/components/Step/README.md.js +2 -0
- package/lib/es/src/components/Step/README.md.js.map +1 -0
- package/lib/es/src/components/Step/index.js +2 -0
- package/lib/es/src/components/Step/index.js.map +1 -0
- package/lib/es/src/components/Step/styles.js +2 -0
- package/lib/es/src/components/Step/styles.js.map +1 -0
- package/lib/es/src/components/Text/README.md.js +2 -0
- package/lib/es/src/components/Text/README.md.js.map +1 -0
- package/lib/es/src/components/Text/index.js +2 -0
- package/lib/es/src/components/Text/index.js.map +1 -0
- package/lib/es/src/components/Text/styles.js +2 -0
- package/lib/es/src/components/Text/styles.js.map +1 -0
- package/lib/es/src/components/TextAreaField/README.md.js +2 -0
- package/lib/es/src/components/TextAreaField/README.md.js.map +1 -0
- package/lib/es/src/components/TextAreaField/index.js +2 -0
- package/lib/es/src/components/TextAreaField/index.js.map +1 -0
- package/lib/es/src/components/TextAreaField/styles.js +2 -0
- package/lib/es/src/components/TextAreaField/styles.js.map +1 -0
- package/lib/es/src/components/TextField/README.md.js +2 -0
- package/lib/es/src/components/TextField/README.md.js.map +1 -0
- package/lib/es/src/components/TextField/index.js +2 -0
- package/lib/es/src/components/TextField/index.js.map +1 -0
- package/lib/es/src/components/TextField/styles.js +2 -0
- package/lib/es/src/components/TextField/styles.js.map +1 -0
- package/lib/es/src/components/Totaliser/README.md.js +2 -0
- package/lib/es/src/components/Totaliser/README.md.js.map +1 -0
- package/lib/es/src/components/Totaliser/index.js +2 -0
- package/lib/es/src/components/Totaliser/index.js.map +1 -0
- package/lib/es/src/components/Totaliser/styles.js +2 -0
- package/lib/es/src/components/Totaliser/styles.js.map +1 -0
- package/lib/es/src/components/UserBlock/README.md.js +2 -0
- package/lib/es/src/components/UserBlock/README.md.js.map +1 -0
- package/lib/es/src/components/UserBlock/index.js +2 -0
- package/lib/es/src/components/UserBlock/index.js.map +1 -0
- package/lib/es/src/components/UserBlock/styles.js +2 -0
- package/lib/es/src/components/UserBlock/styles.js.map +1 -0
- package/lib/es/src/components/index.js +2 -0
- package/lib/es/src/components/index.js.map +1 -0
- package/lib/es/src/hooks/useEffectBrowser.js +2 -0
- package/lib/es/src/hooks/useEffectBrowser.js.map +1 -0
- package/lib/es/src/hooks/useKey.js +2 -0
- package/lib/es/src/hooks/useKey.js.map +1 -0
- package/lib/es/src/hooks/useLayoutEffectBrowser.js +2 -0
- package/lib/es/src/hooks/useLayoutEffectBrowser.js.map +1 -0
- package/lib/es/src/hooks/useScrollPosition.js +2 -0
- package/lib/es/src/hooks/useScrollPosition.js.map +1 -0
- package/lib/es/src/themes/cruk.js +2 -0
- package/lib/es/src/themes/cruk.js.map +1 -0
- package/lib/es/src/themes/su2c.js +2 -0
- package/lib/es/src/themes/su2c.js.map +1 -0
- package/lib/es/src/utils/Helper.js +2 -0
- package/lib/es/src/utils/Helper.js.map +1 -0
- package/lib/es/src/utils/debounce.js +2 -0
- package/lib/es/src/utils/debounce.js.map +1 -0
- package/lib/hocs/MdxProvider.d.ts +3 -0
- package/lib/hooks/useEffectBrowser.d.ts +3 -0
- package/lib/hooks/useKey.d.ts +6 -0
- package/lib/hooks/useLayoutEffectBrowser.d.ts +3 -0
- package/lib/hooks/useScrollPosition.d.ts +2 -0
- package/lib/stories/Button.d.ts +28 -0
- package/lib/stories/Header.d.ts +9 -0
- package/lib/stories/Header.stories.d.ts +6 -0
- package/lib/stories/Page.d.ts +9 -0
- package/lib/stories/Page.stories.d.ts +6 -0
- package/lib/themes/cruk.d.ts +13 -0
- package/lib/themes/su2c.d.ts +13 -0
- package/lib/types.d.ts +225 -0
- package/lib/utils/Helper.d.ts +6 -0
- package/lib/utils/__tests__/testHelpers.jest.d.ts +1 -0
- package/lib/utils/debounce.d.ts +2 -0
- package/package.json +139 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [0.1.5] - 2021-09-23
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Test for TextField with extra left and extra right props
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- Heading H6 tags are always 1em
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- TextField isValid and isInvalid checks and crosses disappear when focused because of Chrome browser default styling [#298](https://github.com/CRUKorg/cruk-react-components/issues/298)
|
|
21
|
+
- Missing attribures on AddressDataType [#306](https://github.com/CRUKorg/cruk-react-components/issues/306)
|
|
22
|
+
|
|
23
|
+
## [0.1.4] - 2021-08-27
|
|
24
|
+
|
|
25
|
+
### Changed
|
|
26
|
+
|
|
27
|
+
- improved select cypress tests
|
|
28
|
+
- Checkbox and Radio focus rect box shaddow is now inset for visual fix where it appears cropped in some scenarios
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
|
|
32
|
+
- Added onPopOverIsOpenChange prop to PopOver component
|
|
33
|
+
- Added backgroundColor prop to Modal component
|
|
34
|
+
|
|
35
|
+
## [0.1.3] - 2021-08-09
|
|
36
|
+
|
|
37
|
+
### Changed
|
|
38
|
+
|
|
39
|
+
- Added Hotjar recording suppression attribute to TextField, TextAreaField and AddressLookup components
|
|
40
|
+
|
|
41
|
+
## [0.1.2] - 2021-07-20
|
|
42
|
+
|
|
43
|
+
### Added
|
|
44
|
+
|
|
45
|
+
- LegendWrapper component
|
|
46
|
+
|
|
47
|
+
### Changed
|
|
48
|
+
|
|
49
|
+
- Added hasError and errorMessage prop to Radio and Checkbox components
|
|
50
|
+
- Updated styles for the Radio and Checkbox components to reflect hasError
|
|
51
|
+
- Updated JS doc comment for Text, Link, TextField and TextAreaField components
|
|
52
|
+
- Updated ErrorText colour, font weight and spacing inside form controlls
|
|
53
|
+
- Updated AddressLookup, tab away from component and search results disappear, address results are focusable and input will no longer blur when clicking though lists of address
|
|
54
|
+
|
|
55
|
+
### Removed
|
|
56
|
+
|
|
57
|
+
### Fixed
|
|
58
|
+
|
|
59
|
+
## [0.1.1] - 2021-06-11
|
|
60
|
+
|
|
61
|
+
### Added
|
|
62
|
+
|
|
63
|
+
### Changed
|
|
64
|
+
|
|
65
|
+
### Removed
|
|
66
|
+
|
|
67
|
+
### Fixed
|
package/README.md
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# cruk-react-components
|
|
2
|
+
|
|
3
|
+
React implementation of the CRUK design system.
|
|
4
|
+
|
|
5
|
+
## View the docs
|
|
6
|
+
|
|
7
|
+
cruk-react-component docs site: https://master.d2qmm2ybdxfdzp.amplifyapp.com/
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
Add cruk-react-components and its peer dependencies react, react-dom and styled-components to your package.json file.
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"react": "^16.2.0",
|
|
18
|
+
"react-dom": "^16.2.0",
|
|
19
|
+
"styled-components": "^5.0.0"
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
After an `npm i @cruk/cruk-react-components --save`, you can start importing components from the library:
|
|
24
|
+
|
|
25
|
+
```js
|
|
26
|
+
import { Button } from 'cruk-react-components';
|
|
27
|
+
|
|
28
|
+
const MyComponent = () => (
|
|
29
|
+
<div>
|
|
30
|
+
<Button />
|
|
31
|
+
</div>
|
|
32
|
+
);
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Development
|
|
36
|
+
|
|
37
|
+
Clone this repository
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
git clone git@github.com:CRUKorg/cruk-react-components.git
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Start local development environment 💥
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
npm run dev
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Then view the docs site at: http://127.0.0.1:8080/
|
|
50
|
+
|
|
51
|
+
## Testing
|
|
52
|
+
|
|
53
|
+
Jest: Unit testing,
|
|
54
|
+
Cypress: Component function, accessibility and image snapshot tests (Image snapshot test are run in headless mode only they will be skipped in interactive mode).
|
|
55
|
+
|
|
56
|
+
Run all tests Jest and Cypress including image snapshots
|
|
57
|
+
|
|
58
|
+
```sh
|
|
59
|
+
npm run test
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Update Cypress image snapshots
|
|
63
|
+
|
|
64
|
+
```sh
|
|
65
|
+
npm run test:update
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Run Cypress interactive testing suite (functional and accessibility tests)
|
|
69
|
+
|
|
70
|
+
```sh
|
|
71
|
+
npm run cypress
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Run Cypress headlessly including image snapshots
|
|
75
|
+
|
|
76
|
+
```sh
|
|
77
|
+
npm run cypress-headless
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
To run a specific test Cypress headlessly
|
|
81
|
+
|
|
82
|
+
```sh
|
|
83
|
+
ARGS="--spec src/components/Modal/test.cypress.tsx" npm run cypress-headless
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
To run and update a specific snapshot headlessly
|
|
87
|
+
|
|
88
|
+
```sh
|
|
89
|
+
ARGS="--spec src/components/Modal/test.cypress.tsx" npm run cypress-headless:update
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Docker
|
|
93
|
+
|
|
94
|
+
A docker-compose.yml file is provided to aid development/testing in a consistent environment.
|
|
95
|
+
|
|
96
|
+
Install dependencies.
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
docker-compose run npm
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Start local development environment
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
docker-compose up server
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
This should start the server and you should be able to see it running here: http://127.0.0.1:8080/
|
|
109
|
+
Tests will not work locally unless this is running in a terminal
|
|
110
|
+
|
|
111
|
+
Run Cypress tests
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
docker-compose run cypress
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
## Run Percy Test
|
|
118
|
+
|
|
119
|
+
To run percy test locally , create an [.env](.env.example) file with PERCY_TOKEN:
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
npm run percy
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
To test specific component , go to .percy.yml and add the regex to match story to the include attribute. Example
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
#.percy.yml
|
|
129
|
+
|
|
130
|
+
storybook:
|
|
131
|
+
include: [UserBlock]
|
|
132
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defineProperty.js","sources":["../../../../../../../node_modules/@babel/runtime/helpers/esm/defineProperty.js"],"sourcesContent":["export default function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}"],"names":["obj","key","value","Object","defineProperty","enumerable","configurable","writable"],"mappings":"oFAAe,SAAyBA,EAAKC,EAAKC,GAYhD,OAXID,KAAOD,EACTG,OAAOC,eAAeJ,EAAKC,EAAK,CAC9BC,MAAOA,EACPG,YAAY,EACZC,cAAc,EACdC,UAAU,IAGZP,EAAIC,GAAOC,EAGNF"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";function e(){return e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.apply(this,arguments)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
|
|
2
|
+
//# sourceMappingURL=extends.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extends.js","sources":["../../../../../../../node_modules/@babel/runtime/helpers/esm/extends.js"],"sourcesContent":["export default function _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}"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this"],"mappings":"aAAe,SAASA,IAetB,OAdAA,EAAWC,OAAOC,QAAU,SAAUC,GACpC,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACzC,IAAIG,EAASF,UAAUD,GAEvB,IAAK,IAAII,KAAOD,EACVN,OAAOQ,UAAUC,eAAeC,KAAKJ,EAAQC,KAC/CL,EAAOK,GAAOD,EAAOC,IAK3B,OAAOL,GAGFH,EAASY,MAAMC,KAAMR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inheritsLoose.js","sources":["../../../../../../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js"],"sourcesContent":["import setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n setPrototypeOf(subClass, superClass);\n}"],"names":["subClass","superClass","prototype","Object","create","constructor","setPrototypeOf"],"mappings":"yHACe,SAAwBA,EAAUC,GAC/CD,EAASE,UAAYC,OAAOC,OAAOH,EAAWC,WAC9CF,EAASE,UAAUG,YAAcL,EACjCM,UAAeN,EAAUC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objectWithoutPropertiesLoose.js","sources":["../../../../../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"],"sourcesContent":["export default function _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}"],"names":["source","excluded","key","i","target","sourceKeys","Object","keys","length","indexOf"],"mappings":"oFAAe,SAAuCA,EAAQC,GAC5D,GAAc,MAAVD,EAAgB,MAAO,GAC3B,IAEIE,EAAKC,EAFLC,EAAS,GACTC,EAAaC,OAAOC,KAAKP,GAG7B,IAAKG,EAAI,EAAGA,EAAIE,EAAWG,OAAQL,IACjCD,EAAMG,EAAWF,GACbF,EAASQ,QAAQP,IAAQ,IAC7BE,EAAOF,GAAOF,EAAOE,IAGvB,OAAOE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setPrototypeOf.js","sources":["../../../../../../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js"],"sourcesContent":["export default function _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}"],"names":["_setPrototypeOf","o","p","Object","setPrototypeOf","__proto__"],"mappings":"aAAe,SAASA,EAAgBC,EAAGC,GAMzC,OALAF,EAAkBG,OAAOC,gBAAkB,SAAyBH,EAAGC,GAErE,OADAD,EAAEI,UAAYH,EACPD,GAGFD,EAAgBC,EAAGC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.FOCUS_ALLOW="data-no-focus-lock",exports.FOCUS_AUTO="data-autofocus-inside",exports.FOCUS_DISABLED="data-focus-lock-disabled",exports.FOCUS_GROUP="data-focus-lock";
|
|
2
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/constants.js"],"sourcesContent":["export var FOCUS_GROUP = 'data-focus-lock';\nexport var FOCUS_DISABLED = 'data-focus-lock-disabled';\nexport var FOCUS_ALLOW = 'data-no-focus-lock';\nexport var FOCUS_AUTO = 'data-autofocus-inside';\n"],"names":[],"mappings":"wFAEyB,wCACD,+CAFI,+CADH"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./utils/all-affected.js"),t=require("./utils/array.js"),r=function(e){return Boolean(t.toArray(e.querySelectorAll("iframe")).some((function(e){return e===document.activeElement})))};exports.focusInside=function(t){var u=document&&document.activeElement;return!(!u||u.dataset&&u.dataset.focusGuard)&&e.getAllAffectedNodes(t).reduce((function(e,t){return e||t.contains(u)||r(t)}),!1)};
|
|
2
|
+
//# sourceMappingURL=focusInside.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"focusInside.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/focusInside.js"],"sourcesContent":["import { getAllAffectedNodes } from './utils/all-affected';\nimport { toArray } from './utils/array';\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};\nexport var focusInside = function (topNode) {\n var activeElement = document && document.activeElement;\n if (!activeElement || (activeElement.dataset && activeElement.dataset.focusGuard)) {\n return false;\n }\n return getAllAffectedNodes(topNode).reduce(function (result, node) { return result || node.contains(activeElement) || focusInsideIframe(node); }, false);\n};\n"],"names":["focusInsideIframe","topNode","Boolean","toArray","querySelectorAll","some","node","document","activeElement","dataset","focusGuard","getAllAffectedNodes","reduce","result","contains"],"mappings":"2IAGIA,EAAoB,SAAUC,GAC9B,OAAOC,QAAQC,UAAQF,EAAQG,iBAAiB,WAAWC,MAAK,SAAUC,GAAQ,OAAoBA,IAFnDC,SAASC,uCAIvC,SAAUP,GAC/B,IAAIO,EAAgBD,UAAYA,SAASC,cACzC,SAAKA,GAAkBA,EAAcC,SAAWD,EAAcC,QAAQC,aAG/DC,sBAAoBV,GAASW,QAAO,SAAUC,EAAQP,GAAQ,OAAOO,GAAUP,EAAKQ,SAASN,IAAkBR,EAAkBM,MAAU"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./constants.js"),t=require("./utils/array.js");exports.focusIsHidden=function(){return document&&t.toArray(document.querySelectorAll("["+e.FOCUS_ALLOW+"]")).some((function(e){return e.contains(document.activeElement)}))};
|
|
2
|
+
//# sourceMappingURL=focusIsHidden.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"focusIsHidden.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/focusIsHidden.js"],"sourcesContent":["import { FOCUS_ALLOW } from './constants';\nimport { toArray } from './utils/array';\nexport var focusIsHidden = function () {\n return document &&\n toArray(document.querySelectorAll(\"[\" + FOCUS_ALLOW + \"]\")).some(function (node) { return node.contains(document.activeElement); });\n};\n"],"names":["document","toArray","querySelectorAll","FOCUS_ALLOW","some","node","contains","activeElement"],"mappings":"wJAE2B,WACvB,OAAOA,UACHC,UAAQD,SAASE,iBAAiB,IAAMC,cAAc,MAAMC,MAAK,SAAUC,GAAQ,OAAOA,EAAKC,SAASN,SAASO"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./solver.js"),t=require("./utils/all-affected.js"),r=require("./utils/DOMutils.js"),u=require("./utils/firstFocus.js"),n=require("./utils/is.js"),o=require("./utils/parenting.js");exports.getFocusMerge=function(i,s){var a=document&&document.activeElement,l=t.getAllAffectedNodes(i).filter(n.isNotAGuard),c=o.getTopCommonParent(a||i,i,l),f=new Map,d=r.getAllTabbableNodes(l,f),p=r.getTabbableNodes(l,f).filter((function(e){var t=e.node;return n.isNotAGuard(t)}));if(p[0]||(p=d)[0]){var b,g,m,v,F=r.getAllTabbableNodes([c],f).map((function(e){return e.node})),j=(b=F,g=p,m=new Map,g.forEach((function(e){return m.set(e.node,e)})),b.map((function(e){return m.get(e)})).filter(n.isDefined)),A=j.map((function(e){return e.node})),N=e.newFocus(A,F,a,s);if(N===e.NEW_FOCUS){var q=d.map((function(e){return e.node})).filter((v=o.allParentAutofocusables(l,f),function(e){return e.autofocus||e.dataset&&!!e.dataset.autofocus||v.indexOf(e)>=0}));return{node:q&&q.length?u.pickFirstFocus(q):u.pickFirstFocus(A)}}return void 0===N?N:j[N]}};
|
|
2
|
+
//# sourceMappingURL=focusMerge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"focusMerge.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/focusMerge.js"],"sourcesContent":["import { NEW_FOCUS, newFocus } from './solver';\nimport { getAllAffectedNodes } from './utils/all-affected';\nimport { getAllTabbableNodes, getTabbableNodes } from './utils/DOMutils';\nimport { pickFirstFocus } from './utils/firstFocus';\nimport { isDefined, isNotAGuard } from './utils/is';\nimport { allParentAutofocusables, getTopCommonParent } from './utils/parenting';\nvar findAutoFocused = function (autoFocusables) { return function (node) {\n return node.autofocus || (node.dataset && !!node.dataset.autofocus) || autoFocusables.indexOf(node) >= 0;\n}; };\nvar reorderNodes = function (srcNodes, dstNodes) {\n var remap = new Map();\n dstNodes.forEach(function (entity) { return remap.set(entity.node, entity); });\n return srcNodes.map(function (node) { return remap.get(node); }).filter(isDefined);\n};\nexport var getFocusMerge = function (topNode, lastNode) {\n var activeElement = (document && document.activeElement);\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 = anyFocusable\n .map(function (_a) {\n var node = _a.node;\n return node;\n })\n .filter(findAutoFocused(allParentAutofocusables(entries, visibilityCache)));\n return {\n node: autoFocusable && autoFocusable.length ? pickFirstFocus(autoFocusable) : pickFirstFocus(innerNodes),\n };\n }\n if (newId === undefined) {\n return newId;\n }\n return orderedInnerElements[newId];\n};\n"],"names":["topNode","lastNode","activeElement","document","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","allParentAutofocusables","autofocus","dataset","indexOf","length","pickFirstFocus","undefined"],"mappings":"6RAc2B,SAAUA,EAASC,GAC1C,IAAIC,EAAiBC,UAAYA,SAASD,cACtCE,EAAUC,sBAAoBL,GAASM,OAAOC,eAC9CC,EAAeC,qBAAmBP,GAAiBF,EAASA,EAASI,GACrEM,EAAkB,IAAIC,IACtBC,EAAeC,sBAAoBT,EAASM,GAC5CI,EAAgBC,mBAAiBX,EAASM,GAAiBJ,QAAO,SAAUU,GAC5E,IAAIC,EAAOD,EAAGC,KACd,OAAOV,cAAYU,MAEvB,GAAKH,EAAc,KACfA,EAAgBF,GACG,GAFvB,CAMA,IArByBM,EAAUC,EAC/BC,EAJwBC,EAwBxBC,EAAaT,sBAAoB,CAACL,GAAeE,GAAiBa,KAAI,SAAUP,GAEhF,OADWA,EAAGC,QAGdO,GAzBqBN,EAyBeI,EAzBLH,EAyBiBL,EAxBhDM,EAAQ,IAAIT,IAChBQ,EAASM,SAAQ,SAAUC,GAAU,OAAON,EAAMO,IAAID,EAAOT,KAAMS,MAC5DR,EAASK,KAAI,SAAUN,GAAQ,OAAOG,EAAMQ,IAAIX,MAAUX,OAAOuB,cAuBpEC,EAAaN,EAAqBD,KAAI,SAAUP,GAEhD,OADWA,EAAGC,QAGdc,EAAQC,WAASF,EAAYR,EAAYpB,EAAeD,GAC5D,GAAI8B,IAAUE,YAAW,CACrB,IAAIC,EAAgBtB,EACfW,KAAI,SAAUP,GAEf,OADWA,EAAGC,QAGbX,QAxCmBe,EAwCIc,0BAAwB/B,EAASM,GAxCZ,SAAUO,GAC/D,OAAOA,EAAKmB,WAAcnB,EAAKoB,WAAapB,EAAKoB,QAAQD,WAAcf,EAAeiB,QAAQrB,IAAS,KAwCnG,MAAO,CACHA,KAAMiB,GAAiBA,EAAcK,OAASC,iBAAeN,GAAiBM,iBAAeV,IAGrG,YAAcW,IAAVV,EACOA,EAEJP,EAAqBO"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./utils/all-affected.js"),r=require("./utils/DOMutils.js"),t=require("./utils/is.js"),n=require("./utils/parenting.js");exports.getFocusabledIn=function(i){var u=e.getAllAffectedNodes(i).filter(t.isNotAGuard),o=n.getTopCommonParent(i,i,u),s=new Map,a=r.getTabbableNodes([o],s,!0),d=r.getTabbableNodes(u,s).filter((function(e){var r=e.node;return t.isNotAGuard(r)})).map((function(e){return e.node}));return a.map((function(e){var r=e.node;return{node:r,index:e.index,lockItem:d.indexOf(r)>=0,guard:t.isGuard(r)}}))};
|
|
2
|
+
//# sourceMappingURL=focusables.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"focusables.js","sources":["../../../../../../node_modules/focus-lock/dist/es2015/focusables.js"],"sourcesContent":["import { getAllAffectedNodes } from './utils/all-affected';\nimport { getTabbableNodes } from './utils/DOMutils';\nimport { isGuard, isNotAGuard } from './utils/is';\nimport { getTopCommonParent } from './utils/parenting';\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"],"names":["topNode","entries","getAllAffectedNodes","filter","isNotAGuard","commonParent","getTopCommonParent","visibilityCache","Map","outerNodes","getTabbableNodes","innerElements","_a","node","map","index","lockItem","indexOf","guard","isGuard"],"mappings":"mOAI6B,SAAUA,GACnC,IAAIC,EAAUC,sBAAoBF,GAASG,OAAOC,eAC9CC,EAAeC,qBAAmBN,EAASA,EAASC,GACpDM,EAAkB,IAAIC,IACtBC,EAAaC,mBAAiB,CAACL,GAAeE,GAAiB,GAC/DI,EAAgBD,mBAAiBT,EAASM,GACzCJ,QAAO,SAAUS,GAClB,IAAIC,EAAOD,EAAGC,KACd,OAAOT,cAAYS,MAElBC,KAAI,SAAUF,GAEf,OADWA,EAAGC,QAGlB,OAAOJ,EAAWK,KAAI,SAAUF,GAC5B,IAAIC,EAAOD,EAAGC,KACd,OACIA,KAAMA,EACNE,MAHwBH,EAAGG,MAI3BC,SAAUL,EAAcM,QAAQJ,IAAS,EACzCK,MAAOC,UAAQN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./focusMerge.js"),o=function(e){e.focus(),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus()},t=0,n=!1;exports.focusOn=o,exports.setFocus=function(c,s){var u=e.getFocusMerge(c,s);if(!n&&u){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"),n=!0,void setTimeout((function(){n=!1}),1);t++,o(u.node),t--}};
|
|
2
|
+
//# sourceMappingURL=setFocus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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) {\n target.focus();\n if ('contentWindow' in target && target.contentWindow) {\n target.contentWindow.focus();\n }\n};\nvar guardCount = 0;\nvar lockDisabled = false;\nexport var setFocus = function (topNode, lastNode) {\n var focusable = getFocusMerge(topNode, lastNode);\n if (lockDisabled) {\n return;\n }\n if (focusable) {\n if (guardCount > 2) {\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);\n guardCount--;\n }\n};\n"],"names":["focusOn","target","focus","contentWindow","guardCount","lockDisabled","topNode","lastNode","focusable","getFocusMerge","console","error","setTimeout","node"],"mappings":"qGACWA,EAAU,SAAUC,GAC3BA,EAAOC,QACH,kBAAmBD,GAAUA,EAAOE,eACpCF,EAAOE,cAAcD,SAGzBE,EAAa,EACbC,GAAe,qCACG,SAAUC,EAASC,GACrC,IAAIC,EAAYC,gBAAcH,EAASC,GACvC,IAAIF,GAGAG,EAAW,CACX,GAAIJ,EAAa,EAOb,OANAM,QAAQC,MAAM,qJAEdN,GAAe,OACfO,YAAW,WACPP,GAAe,IAChB,GAGPD,IACAJ,EAAQQ,EAAUK,MAClBT"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./utils/correctFocus.js"),s=require("./utils/firstFocus.js"),i=require("./utils/is.js");exports.NEW_FOCUS="NEW_FOCUS",exports.newFocus=function(r,t,u,a){var o=r.length,c=r[0],n=r[o-1],d=i.isGuard(u);if(!(r.indexOf(u)>=0)){var f=t.indexOf(u),O=a?t.indexOf(a):f,x=a?r.indexOf(a):-1,l=f-O,F=t.indexOf(c),b=t.indexOf(n),p=e.correctNodes(t),h=p.indexOf(u)-(a?p.indexOf(a):f),v=s.pickFocusable(r,0),M=s.pickFocusable(r,o-1);return-1===f||-1===x?"NEW_FOCUS":!l&&x>=0?x:f<=F&&d&&Math.abs(l)>1?M:f>=b&&d&&Math.abs(l)>1?v:l&&Math.abs(h)>1?x:f<=F?M:f>b?v:l?Math.abs(l)>1?x:(o+x+l)%o:void 0}};
|
|
2
|
+
//# sourceMappingURL=solver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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';\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 if (innerNodes.indexOf(activeElement) >= 0) {\n return undefined;\n }\n var activeIndex = outerNodes.indexOf(activeElement);\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 correctedIndexDiff = correctedNodes.indexOf(activeElement) - (lastNode ? correctedNodes.indexOf(lastNode) : activeIndex);\n var returnFirstNode = pickFocusable(innerNodes, 0);\n var returnLastNode = pickFocusable(innerNodes, cnt - 1);\n if (activeIndex === -1 || lastNodeInside === -1) {\n return NEW_FOCUS;\n }\n if (!indexDiff && lastNodeInside >= 0) {\n return lastNodeInside;\n }\n if (activeIndex <= firstNodeIndex && isOnGuard && Math.abs(indexDiff) > 1) {\n return returnLastNode;\n }\n if (activeIndex >= lastNodeIndex && isOnGuard && Math.abs(indexDiff) > 1) {\n return returnFirstNode;\n }\n if (indexDiff && Math.abs(correctedIndexDiff) > 1) {\n return lastNodeInside;\n }\n if (activeIndex <= firstNodeIndex) {\n return returnLastNode;\n }\n if (activeIndex > lastNodeIndex) {\n return returnFirstNode;\n }\n if (indexDiff) {\n if (Math.abs(indexDiff) > 1) {\n return lastNodeInside;\n }\n return (cnt + lastNodeInside + indexDiff) % cnt;\n }\n return undefined;\n};\n"],"names":["innerNodes","outerNodes","activeElement","lastNode","cnt","length","firstFocus","lastFocus","isOnGuard","isGuard","indexOf","activeIndex","lastIndex","lastNodeInside","indexDiff","firstNodeIndex","lastNodeIndex","correctedNodes","correctNodes","correctedIndexDiff","returnFirstNode","pickFocusable","returnLastNode","Math","abs"],"mappings":"6LAGuB,6BACD,SAAUA,EAAYC,EAAYC,EAAeC,GACnE,IAAIC,EAAMJ,EAAWK,OACjBC,EAAaN,EAAW,GACxBO,EAAYP,EAAWI,EAAM,GAC7BI,EAAYC,UAAQP,GACxB,KAAIF,EAAWU,QAAQR,IAAkB,GAAzC,CAGA,IAAIS,EAAcV,EAAWS,QAAQR,GACjCU,EAAYT,EAAWF,EAAWS,QAAQP,GAAYQ,EACtDE,EAAiBV,EAAWH,EAAWU,QAAQP,IAAa,EAC5DW,EAAYH,EAAcC,EAC1BG,EAAiBd,EAAWS,QAAQJ,GACpCU,EAAgBf,EAAWS,QAAQH,GACnCU,EAAiBC,eAAajB,GAC9BkB,EAAqBF,EAAeP,QAAQR,IAAkBC,EAAWc,EAAeP,QAAQP,GAAYQ,GAC5GS,EAAkBC,gBAAcrB,EAAY,GAC5CsB,EAAiBD,gBAAcrB,EAAYI,EAAM,GACrD,OAAqB,IAAjBO,IAA0C,IAApBE,EAnBP,aAsBdC,GAAaD,GAAkB,EACzBA,EAEPF,GAAeI,GAAkBP,GAAae,KAAKC,IAAIV,GAAa,EAC7DQ,EAEPX,GAAeK,GAAiBR,GAAae,KAAKC,IAAIV,GAAa,EAC5DM,EAEPN,GAAaS,KAAKC,IAAIL,GAAsB,EACrCN,EAEPF,GAAeI,EACRO,EAEPX,EAAcK,EACPI,EAEPN,EACIS,KAAKC,IAAIV,GAAa,EACfD,GAEHT,EAAMS,EAAiBC,GAAaV,OAJhD"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./array.js"),r=require("./is.js"),t=require("./tabOrder.js"),s=require("./tabUtils.js"),u=function(t,s){return e.toArray(t).filter((function(e){return r.isVisibleCached(s,e)})).filter((function(e){return r.notHiddenInput(e)}))};exports.filterFocusable=u,exports.getAllTabbableNodes=function(e,r){return t.orderByTabIndex(u(s.getFocusables(e),r),!1)},exports.getTabbableNodes=function(e,r,n){return t.orderByTabIndex(u(s.getFocusables(e,n),r),!0,n)},exports.parentAutofocusables=function(e,r){return u(s.getParentAutofocusables(e),r)};
|
|
2
|
+
//# sourceMappingURL=DOMutils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DOMutils.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/DOMutils.js"],"sourcesContent":["import { toArray } from './array';\nimport { isVisibleCached, notHiddenInput } from './is';\nimport { orderByTabIndex } from './tabOrder';\nimport { getFocusables, getParentAutofocusables } from './tabUtils';\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 getTabbableNodes = function (topNodes, visibilityCache, withGuards) {\n return orderByTabIndex(filterFocusable(getFocusables(topNodes, withGuards), visibilityCache), true, withGuards);\n};\nexport var getAllTabbableNodes = function (topNodes, visibilityCache) {\n return orderByTabIndex(filterFocusable(getFocusables(topNodes), visibilityCache), false);\n};\nexport var parentAutofocusables = function (topNode, visibilityCache) {\n return filterFocusable(getParentAutofocusables(topNode), visibilityCache);\n};\n"],"names":["filterFocusable","nodes","visibilityCache","toArray","filter","node","isVisibleCached","notHiddenInput","topNodes","orderByTabIndex","getFocusables","withGuards","topNode","getParentAutofocusables"],"mappings":"2KAIWA,EAAkB,SAAUC,EAAOC,GAC1C,OAAOC,UAAQF,GACVG,QAAO,SAAUC,GAAQ,OAAOC,kBAAgBJ,EAAiBG,MACjED,QAAO,SAAUC,GAAQ,OAAOE,iBAAeF,6DAKvB,SAAUG,EAAUN,GACjD,OAAOO,kBAAgBT,EAAgBU,gBAAcF,GAAWN,IAAkB,6BAJxD,SAAUM,EAAUN,EAAiBS,GAC/D,OAAOF,kBAAgBT,EAAgBU,gBAAcF,EAAUG,GAAaT,IAAkB,EAAMS,iCAKtE,SAAUC,EAASV,GACjD,OAAOF,EAAgBa,0BAAwBD,GAAUV"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../constants.js"),r=require("./array.js"),t=function(e){return e.parentNode?t(e.parentNode):e};exports.getAllAffectedNodes=function(n){return r.asArray(n).filter(Boolean).reduce((function(n,o){var a=o.getAttribute(e.FOCUS_GROUP);return n.push.apply(n,a?function(e){for(var r=new Set,t=e.length,n=0;n<t;n+=1)for(var o=n+1;o<t;o+=1){var a=e[n].compareDocumentPosition(e[o]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&r.add(o),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&r.add(n)}return e.filter((function(e,t){return!r.has(t)}))}(r.toArray(t(o).querySelectorAll("["+e.FOCUS_GROUP+'="'+a+'"]:not(['+e.FOCUS_DISABLED+'="disabled"])'))):[o]),n}),[])};
|
|
2
|
+
//# sourceMappingURL=all-affected.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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';\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 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 }\n }\n return nodes.filter(function (_, index) { return !contained.has(index); });\n};\nvar getTopParent = function (node) {\n return node.parentNode ? getTopParent(node.parentNode) : node;\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(\"[\" + FOCUS_GROUP + \"=\\\"\" + group + \"\\\"]:not([\" + FOCUS_DISABLED + \"=\\\"disabled\\\"])\")))\n : [currentNode]));\n return acc;\n }, []);\n};\n"],"names":["getTopParent","node","parentNode","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","FOCUS_DISABLED"],"mappings":"6HAkBIA,EAAe,SAAUC,GACzB,OAAOA,EAAKC,WAAaF,EAAaC,EAAKC,YAAcD,+BAE5B,SAAUA,GAEvC,OADYE,UAAQF,GACPG,OAAOC,SAASC,QAAO,SAAUC,EAAKC,GAC/C,IAAIC,EAAQD,EAAYE,aAAaC,eAIrC,OAHAJ,EAAIK,KAAKC,MAAMN,EAAME,EAvBV,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,KACjDC,EAAWE,KAAKC,gCAAkC,GACnDT,EAAUU,IAAIL,IAEbC,EAAWE,KAAKG,4BAA8B,GAC/CX,EAAUU,IAAIN,GAI1B,OAAOL,EAAMV,QAAO,SAAUuB,EAAGC,GAAS,OAAQb,EAAUc,IAAID,MAUtDE,CAAaC,UAAQ/B,EAAaQ,GAAawB,iBAAiB,IAAMrB,cAAc,KAAQF,EAAQ,WAAcwB,iBAAiB,mBACnI,CAACzB,IACAD,IACR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/array.js"],"sourcesContent":["export 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":["a","Array","isArray","ret","length","i"],"mappings":"oFAOqB,SAAUA,GAAK,OAAQC,MAAMC,QAAQF,GAAKA,EAAI,CAACA,oBAP/C,SAAUA,GAE3B,IADA,IAAIG,EAAMF,MAAMD,EAAEI,QACTC,EAAI,EAAGA,EAAIL,EAAEI,SAAUC,EAC5BF,EAAIE,GAAKL,EAAEK,GAEf,OAAOF"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(e){return"INPUT"===e.tagName&&"radio"===e.type},r=function(r,t){return e(r)&&r.name?function(r,t){return t.filter(e).filter((function(e){return e.name===r.name})).filter((function(e){return e.checked}))[0]||r}(r,t):r};exports.correctNode=r,exports.correctNodes=function(e){var t=new Set;return e.forEach((function(n){return t.add(r(n,e))})),e.filter((function(e){return t.has(e)}))};
|
|
2
|
+
//# sourceMappingURL=correctFocus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"correctFocus.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/correctFocus.js"],"sourcesContent":["var isRadio = function (node) { return node.tagName === 'INPUT' && node.type === 'radio'; };\nvar findSelectedRadio = function (node, nodes) {\n return nodes\n .filter(isRadio)\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 (isRadio(node) && node.name) {\n return findSelectedRadio(node, nodes);\n }\n return node;\n};\nexport var correctNodes = function (nodes) {\n var resultSet = new Set();\n nodes.forEach(function (node) { return resultSet.add(correctNode(node, nodes)); });\n return nodes.filter(function (node) { return resultSet.has(node); });\n};\n"],"names":["isRadio","node","tagName","type","correctNode","nodes","name","filter","el","checked","findSelectedRadio","resultSet","Set","forEach","add","has"],"mappings":"oEAAA,IAAIA,EAAU,SAAUC,GAAQ,MAAwB,UAAjBA,EAAKC,SAAqC,UAAdD,EAAKE,MAO7DC,EAAc,SAAUH,EAAMI,GACrC,OAAIL,EAAQC,IAASA,EAAKK,KAPN,SAAUL,EAAMI,GACpC,OAAOA,EACFE,OAAOP,GACPO,QAAO,SAAUC,GAAM,OAAOA,EAAGF,OAASL,EAAKK,QAC/CC,QAAO,SAAUC,GAAM,OAAOA,EAAGC,WAAY,IAAMR,EAI7CS,CAAkBT,EAAMI,GAE5BJ,8CAEe,SAAUI,GAChC,IAAIM,EAAY,IAAIC,IAEpB,OADAP,EAAMQ,SAAQ,SAAUZ,GAAQ,OAAOU,EAAUG,IAAIV,EAAYH,EAAMI,OAChEA,EAAME,QAAO,SAAUN,GAAQ,OAAOU,EAAUI,IAAId"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./correctFocus.js");exports.pickFirstFocus=function(r){return r[0]&&r.length>1?e.correctNode(r[0],r):r[0]},exports.pickFocusable=function(r,t){return r.length>1?r.indexOf(e.correctNode(r[t],r)):t};
|
|
2
|
+
//# sourceMappingURL=firstFocus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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":["nodes","length","correctNode","index","indexOf"],"mappings":"8HAC4B,SAAUA,GAClC,OAAIA,EAAM,IAAMA,EAAMC,OAAS,EACpBC,cAAYF,EAAM,GAAIA,GAE1BA,EAAM,0BAEU,SAAUA,EAAOG,GACxC,OAAIH,EAAMC,OAAS,EACRD,EAAMI,QAAQF,cAAYF,EAAMG,GAAQH,IAE5CG"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(e,t){return!e||e===document||e&&e.nodeType===Node.DOCUMENT_NODE||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue||"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility"))}(e)&&t(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode)},t=function(n,r){var o=n.get(r);if(void 0!==o)return o;var d=e(r,t.bind(void 0,n));return n.set(r,d),d},n=function(e){return Boolean(e&&e.dataset&&e.dataset.focusGuard)};exports.isDefined=function(e){return Boolean(e)},exports.isGuard=n,exports.isNotAGuard=function(e){return!n(e)},exports.isVisibleCached=t,exports.notHiddenInput=function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))};
|
|
2
|
+
//# sourceMappingURL=is.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/is.js"],"sourcesContent":["var isElementHidden = function (node) {\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 isVisibleUncached = function (node, checkParent) {\n return !node ||\n node === document ||\n (node && node.nodeType === Node.DOCUMENT_NODE) ||\n (!isElementHidden(node) &&\n checkParent(node.parentNode && node.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE\n ? node.parentNode.host\n : node.parentNode));\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};\nexport var notHiddenInput = function (node) {\n return !((node.tagName === 'INPUT' || node.tagName === 'BUTTON') && (node.type === 'hidden' || node.disabled));\n};\nexport var isGuard = function (node) { return Boolean(node && node.dataset && node.dataset.focusGuard); };\nexport var isNotAGuard = function (node) { return !isGuard(node); };\nexport var isDefined = function (x) { return Boolean(x); };\n"],"names":["isVisibleUncached","node","checkParent","document","nodeType","Node","DOCUMENT_NODE","ELEMENT_NODE","computedStyle","window","getComputedStyle","getPropertyValue","isElementHidden","parentNode","DOCUMENT_FRAGMENT_NODE","host","isVisibleCached","visibilityCache","cached","get","undefined","result","bind","set","isGuard","Boolean","dataset","focusGuard","x","tagName","type","disabled"],"mappings":"oEAAA,IAUIA,EAAoB,SAAUC,EAAMC,GACpC,OAAQD,GACJA,IAASE,UACRF,GAAQA,EAAKG,WAAaC,KAAKC,gBAblB,SAAUL,GAC5B,GAAIA,EAAKG,WAAaC,KAAKE,aACvB,OAAO,EAEX,IAAIC,EAAgBC,OAAOC,iBAAiBT,EAAM,MAClD,SAAKO,IAAkBA,EAAcG,kBAGiB,SAA9CH,EAAcG,iBAAiB,YAA0E,WAAjDH,EAAcG,iBAAiB,eAMzFC,CAAgBX,IACdC,EAAYD,EAAKY,YAAcZ,EAAKY,WAAWT,WAAaC,KAAKS,uBAC3Db,EAAKY,WAAWE,KAChBd,EAAKY,aAEZG,EAAkB,SAAUC,EAAiBhB,GACpD,IAAIiB,EAASD,EAAgBE,IAAIlB,GACjC,QAAemB,IAAXF,EACA,OAAOA,EAEX,IAAIG,EAASrB,EAAkBC,EAAMe,EAAgBM,UAAKF,EAAWH,IAErE,OADAA,EAAgBM,IAAItB,EAAMoB,GACnBA,GAKAG,EAAU,SAAUvB,GAAQ,OAAOwB,QAAQxB,GAAQA,EAAKyB,SAAWzB,EAAKyB,QAAQC,+BAEpE,SAAUC,GAAK,OAAOH,QAAQG,0CAD5B,SAAU3B,GAAQ,OAAQuB,EAAQvB,qDAJ/B,SAAUA,GAClC,SAA2B,UAAjBA,EAAK4B,SAAwC,WAAjB5B,EAAK4B,WAAwC,WAAd5B,EAAK6B,MAAqB7B,EAAK8B"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("./array.js"),e=require("./DOMutils.js"),t=function(r,e){return void 0===e&&(e=[]),e.push(r),r.parentNode&&t(r.parentNode,e),e},n=function(r,e){for(var n=t(r),o=t(e),a=0;a<n.length;a+=1){var u=n[a];if(o.indexOf(u)>=0)return u}return!1};exports.allParentAutofocusables=function(r,t){return r.reduce((function(r,n){return r.concat(e.parentAutofocusables(n,t))}),[])},exports.getCommonParent=n,exports.getTopCommonParent=function(e,t,o){var a=r.asArray(e),u=r.asArray(t),i=a[0],s=!1;return u.filter(Boolean).forEach((function(r){s=n(s||r,r)||s,o.filter(Boolean).forEach((function(r){var e=n(i,r);e&&(s=!s||e.contains(s)?e:n(e,s))}))})),s};
|
|
2
|
+
//# sourceMappingURL=parenting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parenting.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/parenting.js"],"sourcesContent":["import { asArray } from './array';\nimport { parentAutofocusables } from './DOMutils';\nvar getParents = function (node, parents) {\n if (parents === void 0) { parents = []; }\n parents.push(node);\n if (node.parentNode) {\n getParents(node.parentNode, parents);\n }\n return parents;\n};\nexport var getCommonParent = function (nodeA, nodeB) {\n var parentsA = getParents(nodeA);\n var parentsB = getParents(nodeB);\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 || common.contains(topCommon)) {\n topCommon = common;\n }\n else {\n topCommon = getCommonParent(common, topCommon);\n }\n }\n });\n });\n return topCommon;\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","getCommonParent","nodeA","nodeB","parentsA","parentsB","i","length","currentParent","indexOf","entries","visibilityCache","reduce","acc","concat","parentAutofocusables","baseActiveElement","leftEntry","rightEntries","activeElements","asArray","leftEntries","activeElement","topCommon","filter","Boolean","forEach","entry","subEntry","common","contains"],"mappings":"2HAEIA,EAAa,SAAUC,EAAMC,GAM7B,YALgB,IAAZA,IAAsBA,EAAU,IACpCA,EAAQC,KAAKF,GACTA,EAAKG,YACLJ,EAAWC,EAAKG,WAAYF,GAEzBA,GAEAG,EAAkB,SAAUC,EAAOC,GAG1C,IAFA,IAAIC,EAAWR,EAAWM,GACtBG,EAAWT,EAAWO,GACjBG,EAAI,EAAGA,EAAIF,EAASG,OAAQD,GAAK,EAAG,CACzC,IAAIE,EAAgBJ,EAASE,GAC7B,GAAID,EAASI,QAAQD,IAAkB,EACnC,OAAOA,EAGf,OAAO,mCAuB0B,SAAUE,EAASC,GACpD,OAAOD,EAAQE,QAAO,SAAUC,EAAKhB,GAAQ,OAAOgB,EAAIC,OAAOC,uBAAqBlB,EAAMc,MAAsB,0DAtBpF,SAAUK,EAAmBC,EAAWC,GACpE,IAAIC,EAAiBC,UAAQJ,GACzBK,EAAcD,UAAQH,GACtBK,EAAgBH,EAAe,GAC/BI,GAAY,EAehB,OAdAF,EAAYG,OAAOC,SAASC,SAAQ,SAAUC,GAC1CJ,EAAYtB,EAAgBsB,GAAaI,EAAOA,IAAUJ,EAC1DL,EAAaM,OAAOC,SAASC,SAAQ,SAAUE,GAC3C,IAAIC,EAAS5B,EAAgBqB,EAAeM,GACxCC,IAEIN,GADCA,GAAaM,EAAOC,SAASP,GAClBM,EAGA5B,EAAgB4B,EAAQN,UAK7CA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./array.js"),r=function(e,r){var t=e.tabIndex-r.tabIndex,n=e.index-r.index;if(t){if(!e.tabIndex)return 1;if(!r.tabIndex)return-1}return t||n};exports.orderByTabIndex=function(t,n,a){return e.toArray(t).map((function(e,r){return{node:e,index:r,tabIndex:a&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!n||e.tabIndex>=0})).sort(r)},exports.tabSort=r;
|
|
2
|
+
//# sourceMappingURL=tabOrder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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","nodes","filterNegative","keepGuards","toArray","map","node","dataset","focusGuard","filter","data","sort"],"mappings":"gGACWA,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,EAGhB,OAAOD,GAAWE,2BAEO,SAAUE,EAAOC,EAAgBC,GAC1D,OAAOC,UAAQH,GACVI,KAAI,SAAUC,EAAMN,GAAS,OAC9BM,KAAMA,EACNN,MAAOA,EACPF,SAAUK,IAAiC,IAAnBG,EAAKR,UAAoBQ,EAAKC,SAAW,IAAIC,WAAa,GAAK,EAAKF,EAAKR,aAEhGW,QAAO,SAAUC,GAAQ,OAAQR,GAAkBQ,EAAKZ,UAAY,KACpEa,KAAKjB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../constants.js"),r=require("./array.js"),t=require("./tabbables.js").tabbables.join(","),u=t+", [data-focus-guard]",n=function(e,n){return e.reduce((function(e,o){return e.concat(r.toArray(o.querySelectorAll(n?u:t)),o.parentNode?r.toArray(o.parentNode.querySelectorAll(t)).filter((function(e){return e===o})):[])}),[])};exports.getFocusables=n,exports.getParentAutofocusables=function(t){var u=t.querySelectorAll("["+e.FOCUS_AUTO+"]");return r.toArray(u).map((function(e){return n([e])})).reduce((function(e,r){return e.concat(r)}),[])};
|
|
2
|
+
//# sourceMappingURL=tabUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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 = queryTabbables + \", [data-focus-guard]\";\nexport var getFocusables = function (parents, withGuards) {\n return parents.reduce(function (acc, parent) {\n return acc.concat(toArray(parent.querySelectorAll(withGuards ? queryGuardTabbables : queryTabbables)), parent.parentNode\n ? toArray(parent.parentNode.querySelectorAll(queryTabbables)).filter(function (node) { return node === parent; })\n : []);\n }, []);\n};\nexport var getParentAutofocusables = function (parent) {\n var parentFocus = parent.querySelectorAll(\"[\" + 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","join","queryGuardTabbables","getFocusables","parents","withGuards","reduce","acc","parent","concat","toArray","querySelectorAll","parentNode","filter","node","parentFocus","FOCUS_AUTO","map","nodes"],"mappings":"6HAGIA,sCAA2BC,KAAK,KAChCC,EAAsBF,EAAiB,uBAChCG,EAAgB,SAAUC,EAASC,GAC1C,OAAOD,EAAQE,QAAO,SAAUC,EAAKC,GACjC,OAAOD,EAAIE,OAAOC,UAAQF,EAAOG,iBAAiBN,EAAaH,EAAsBF,IAAkBQ,EAAOI,WACxGF,UAAQF,EAAOI,WAAWD,iBAAiBX,IAAiBa,QAAO,SAAUC,GAAQ,OAAOA,IAASN,KACrG,MACP,6DAE8B,SAAUA,GAC3C,IAAIO,EAAcP,EAAOG,iBAAiB,IAAMK,aAAa,KAC7D,OAAON,UAAQK,GACVE,KAAI,SAAUH,GAAQ,OAAOX,EAAc,CAACW,OAC5CR,QAAO,SAAUC,EAAKW,GAAS,OAAOX,EAAIE,OAAOS,KAAW"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.tabbables=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"];
|
|
2
|
+
//# sourceMappingURL=tabbables.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabbables.js","sources":["../../../../../../../node_modules/focus-lock/dist/es2015/utils/tabbables.js"],"sourcesContent":["export var tabbables = [\n 'button:enabled',\n 'select:enabled',\n 'textarea:enabled',\n 'input:enabled',\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":[],"mappings":"sFAAuB,CACnB,iBACA,iBACA,mBACA,gBACA,UACA,aACA,UACA,SACA,SACA,QACA,kBACA,kBACA,aACA,oBACA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../@babel/runtime/helpers/esm/inheritsLoose.js"),t=require("../../@babel/runtime/helpers/esm/defineProperty.js"),n=require("react");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=r(n);exports.default=function(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(u){if("production"!==process.env.NODE_ENV&&"function"!=typeof u)throw new Error("Expected WrappedComponent to be a React component.");var p,c=[];function f(){p=r(c.map((function(e){return e.props}))),i(p)}var a=function(t){function n(){return t.apply(this,arguments)||this}e.default(n,t),n.peek=function(){return p};var r=n.prototype;return r.componentDidMount=function(){c.push(this),f()},r.componentDidUpdate=function(){f()},r.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),f()},r.render=function(){return o.default.createElement(u,this.props)},n}(n.PureComponent);return t.default(a,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(u)+")"),a}};
|
|
2
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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":["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":"6TAIA,SAAwBA,EAAoBC,GAC1C,GAA6B,eAAzBC,QAAQC,IAAIC,SAA2B,CACzC,GAAkC,mBAAvBJ,EACT,MAAM,IAAIK,MAAM,iDAGlB,GAAyC,mBAA9BJ,EACT,MAAM,IAAII,MAAM,wDAQpB,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,UAElBX,EAA0BM,GAG5B,IAAIM,EAA0B,SAAUC,GAGtC,SAASD,IACP,OAAOC,EAAeC,MAAMC,KAAMC,YAAcD,KAHlDE,UAAeL,EAAYC,GAO3BD,EAAWM,KAAO,WAChB,OAAOZ,GAGT,IAAIa,EAASP,EAAWQ,UAqBxB,OAnBAD,EAAOE,kBAAoB,WACzBd,EAAiBe,KAAKP,MACtBP,KAGFW,EAAOI,mBAAqB,WAC1Bf,KAGFW,EAAOK,qBAAuB,WAC5B,IAAIC,EAAQlB,EAAiBmB,QAAQX,MACrCR,EAAiBoB,OAAOF,EAAO,GAC/BjB,KAGFW,EAAOS,OAAS,WACd,OAAoBC,UAAMC,cAAczB,EAAkBU,KAAKJ,QAG1DC,EAjCqB,CAkC5BmB,iBAIF,OAFAC,UAAgBpB,EAAY,cAAe,cAzD7C,SAAwBP,GACtB,OAAOA,EAAiB4B,aAAe5B,EAAiB6B,MAAQ,YAwDLC,CAAe9B,GAAoB,KAEvFO"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),r=require("../../../@babel/runtime/helpers/esm/extends.js"),t=require("react"),u=require("./Lock.js"),a=require("./Trap.js");function s(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var u=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,u.get?u:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var o=s(t),i=o.forwardRef((function(e,t){return o.createElement(u.default,r.default({sideCar:a.default,ref:t},e))})),n=u.default.propTypes||{};n.sideCar;var f=e.default(n,["sideCar"]);i.propTypes="production"!==process.env.NODE_ENV?f:{};var c=i;exports.default=c;
|
|
2
|
+
//# sourceMappingURL=Combination.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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"],"mappings":"gkBAcIA,EAAoCC,EAAMC,YAAW,SAAgCC,EAAOC,GAC9F,OAAoBH,EAAMI,cAAcC,UAAaC,UAAS,CAC5DC,QAASC,UACTL,IAAKA,GACJD,OAGDO,EAAOJ,UAAYK,WAAa,GACtBD,EAAKF,YACfG,EAAYC,UAA8BF,EAAM,CAAC,YAErDV,EAAqBW,UAAqC,eAAzBE,QAAQC,IAAIC,SAA4BJ,EAAY,GACrF,MAAeX"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0}),require("react");var t=e(require("prop-types"));"production"===process.env.NODE_ENV||t.default.node,exports.hiddenGuard={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};
|
|
2
|
+
//# sourceMappingURL=FocusGuard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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":["process","env","NODE_ENV","PropTypes","node","width","height","padding","overflow","position","top","left"],"mappings":"4LA2BkD,eAAzBA,QAAQC,IAAIC,UACzBC,UAAUC,yBA1BG,CACvBC,MAAO,MACPC,OAAQ,MACRC,QAAS,EACTC,SAAU,SACVC,SAAU,QACVC,IAAK,MACLC,KAAM"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../@babel/runtime/helpers/esm/extends.js"),r=require("react"),t=require("prop-types"),o=require("../../../focus-lock/dist/es2015/constants.js"),s=require("./FocusGuard.js"),u=require("./medium.js"),n=require("../../../use-callback-ref/dist/es2015/useMergeRef.js");function a(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var c=a(r),i=[],d=c.forwardRef((function(r,t){var a,d=c.useState(),l=d[0],f=d[1],v=c.useRef(),b=c.useRef(!1),m=c.useRef(null),p=r.children,F=r.disabled,y=r.noFocusGuards,g=r.persistentFocus,h=r.crossFrame,j=r.autoFocus,k=r.allowTextSelection,O=r.group,E=r.className,w=r.whiteList,x=r.shards,C=void 0===x?i:x,S=r.as,D=void 0===S?"div":S,P=r.lockProps,R=void 0===P?{}:P,q=r.sideCar,G=r.returnFocus,N=r.onActivation,_=r.onDeactivation,L=c.useState({})[0],T=c.useCallback((function(){m.current=m.current||document&&document.activeElement,v.current&&N&&N(v.current),b.current=!0}),[N]),M=c.useCallback((function(){b.current=!1,_&&_(v.current)}),[_]),A=c.useCallback((function(e){var r=m.current;if(Boolean(G)&&r&&r.focus){var t="object"==typeof G?G:void 0;m.current=null,e?Promise.resolve().then((function(){return r.focus(t)})):r.focus(t)}}),[G]),B=c.useCallback((function(e){b.current&&u.mediumFocus.useMedium(e)}),[]),I=u.mediumBlur.useMedium,U=c.useCallback((function(e){v.current!==e&&(v.current=e,f(e))}),[]);"production"!==process.env.NODE_ENV&&(void 0!==k&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),c.useEffect((function(){v.current||console.error("FocusLock: could not obtain ref to internal node")}),[]));var V=e.default(((a={})[o.FOCUS_DISABLED]=F&&"disabled",a[o.FOCUS_GROUP]=O,a),R),z=!0!==y,H=z&&"tail"!==y,J=n.useMergeRefs([t,U]);return c.createElement(c.Fragment,null,z&&[c.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:F?-1:0,style:s.hiddenGuard}),c.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:F?-1:1,style:s.hiddenGuard})],!F&&c.createElement(q,{id:L,sideCar:u.mediumSidecar,observed:l,disabled:F,persistentFocus:g,crossFrame:h,autoFocus:j,whiteList:w,shards:C,onActivation:T,onDeactivation:M,returnFocus:A}),c.createElement(D,e.default({ref:J},V,{className:E,onBlur:I,onFocus:B}),p),H&&c.createElement("div",{"data-focus-guard":!0,tabIndex:F?-1:0,style:s.hiddenGuard}))}));d.propTypes="production"!==process.env.NODE_ENV?{children:t.node,disabled:t.bool,returnFocus:t.oneOfType([t.bool,t.object]),noFocusGuards:t.bool,allowTextSelection:t.bool,autoFocus:t.bool,persistentFocus:t.bool,crossFrame:t.bool,group:t.string,className:t.string,whiteList:t.func,shards:t.arrayOf(t.any),as:t.oneOfType([t.string,t.func,t.object]),lockProps:t.object,onActivation:t.func,onDeactivation:t.func,sideCar:t.any.isRequired}:{},d.defaultProps={children:void 0,disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!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 l=d;exports.default=l;
|
|
2
|
+
//# sourceMappingURL=Lock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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 { 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 _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 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 var returnFocus = React.useCallback(function (allowDefer) {\n var current = originalFocusedElement.current;\n\n if (Boolean(shouldReturnFocus) && current && current.focus) {\n var focusOptions = typeof shouldReturnFocus === 'object' ? shouldReturnFocus : 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 current.focus(focusOptions);\n });\n } else {\n current.focus(focusOptions);\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 && [/*#__PURE__*/React.createElement(\"div\", {\n key: \"guard-first\",\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 0,\n style: hiddenGuard\n }),\n /*#__PURE__*/\n // nearest focus guard\n React.createElement(\"div\", {\n key: \"guard-nearest\",\n \"data-focus-guard\": true,\n tabIndex: disabled ? -1 : 1,\n style: hiddenGuard\n }) // first tabbed element guard\n ], !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 }), /*#__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]),\n noFocusGuards: 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 noFocusGuards: false,\n autoFocus: true,\n persistentFocus: false,\n crossFrame: true,\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","_props$shards","shards","_props$as","as","Container","_props$lockProps","lockProps","containerProps","SideCar","sideCar","shouldReturnFocus","returnFocus","onActivationCallback","onActivation","onDeactivationCallback","onDeactivation","id","useCallback","current","document","activeElement","allowDefer","Boolean","focus","focusOptions","undefined","Promise","resolve","then","onFocus","event","mediumFocus","useMedium","onBlur","mediumBlur","setObserveNode","newObserved","process","env","NODE_ENV","console","warn","useEffect","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","string","func","arrayOf","any","isRequired","defaultProps"],"mappings":"2oBAOIA,EAAa,GACbC,EAAyBC,EAAMC,YAAW,SAAqBC,EAAOC,GACxE,IAAIC,EAEAC,EAAkBL,EAAMM,WACxBC,EAAeF,EAAgB,GAC/BG,EAAcH,EAAgB,GAE9BI,EAAWT,EAAMU,SACjBC,EAAWX,EAAMU,QAAO,GACxBE,EAAyBZ,EAAMU,OAAO,MACtCG,EAAWX,EAAMW,SACjBC,EAAWZ,EAAMY,SACjBC,EAAgBb,EAAMa,cACtBC,EAAkBd,EAAMc,gBACxBC,EAAaf,EAAMe,WACnBC,EAAYhB,EAAMgB,UAClBC,EAAqBjB,EAAMiB,mBAC3BC,EAAQlB,EAAMkB,MACdC,EAAYnB,EAAMmB,UAClBC,EAAYpB,EAAMoB,UAClBC,EAAgBrB,EAAMsB,OACtBA,OAA2B,IAAlBD,EAA2BzB,EAAayB,EACjDE,EAAYvB,EAAMwB,GAClBC,OAA0B,IAAdF,EAAuB,MAAQA,EAC3CG,EAAmB1B,EAAM2B,UACzBC,OAAsC,IAArBF,EAA8B,GAAKA,EACpDG,EAAU7B,EAAM8B,QAChBC,EAAoB/B,EAAMgC,YAC1BC,EAAuBjC,EAAMkC,aAC7BC,EAAyBnC,EAAMoC,eAG/BC,EADmBvC,EAAMM,SAAS,IACZ,GAGtB8B,EAAepC,EAAMwC,aAAY,WACnC5B,EAAuB6B,QAAU7B,EAAuB6B,SAAWC,UAAYA,SAASC,cAEpFlC,EAASgC,SAAWN,GACtBA,EAAqB1B,EAASgC,SAGhC9B,EAAS8B,SAAU,IAClB,CAACN,IACAG,EAAiBtC,EAAMwC,aAAY,WACrC7B,EAAS8B,SAAU,EAEfJ,GACFA,EAAuB5B,EAASgC,WAEjC,CAACJ,IACAH,EAAclC,EAAMwC,aAAY,SAAUI,GAC5C,IAAIH,EAAU7B,EAAuB6B,QAErC,GAAII,QAAQZ,IAAsBQ,GAAWA,EAAQK,MAAO,CAC1D,IAAIC,EAA4C,iBAAtBd,EAAiCA,OAAoBe,EAC/EpC,EAAuB6B,QAAU,KAE7BG,EAGFK,QAAQC,UAAUC,MAAK,WACrB,OAAOV,EAAQK,MAAMC,MAGvBN,EAAQK,MAAMC,MAGjB,CAACd,IAEAmB,EAAUpD,EAAMwC,aAAY,SAAUa,GACpC1C,EAAS8B,SACXa,cAAYC,UAAUF,KAEvB,IACCG,EAASC,aAAWF,UAGpBG,EAAiB1D,EAAMwC,aAAY,SAAUmB,GAC3ClD,EAASgC,UAAYkB,IACvBlD,EAASgC,QAAUkB,EACnBnD,EAAYmD,MAEb,IAE0B,eAAzBC,QAAQC,IAAIC,gBACoB,IAAvB3C,GAET4C,QAAQC,KAAK,6EAGfhE,EAAMiE,WAAU,WACTxD,EAASgC,SAEZsB,QAAQG,MAAM,sDAEf,KAGL,IAAIrC,EAAYsC,YAAU/D,EAAY,IAAcgE,kBAA4BtD,GAAY,WAAYV,EAAUiE,eAAyBjD,EAAOhB,GAAY0B,GAE1JwC,GAAqC,IAAlBvD,EACnBwD,EAAmBD,GAAsC,SAAlBvD,EACvCyD,EAAYC,eAAa,CAACtE,EAAWuD,IACzC,OAAoB1D,EAAM0E,cAAc1E,EAAM2E,SAAU,KAAML,GAAoB,CAActE,EAAM0E,cAAc,MAAO,CACzHE,IAAK,cACL,oBAAoB,EACpBC,SAAU/D,GAAY,EAAI,EAC1BgE,MAAOC,gBAIT/E,EAAM0E,cAAc,MAAO,CACzBE,IAAK,gBACL,oBAAoB,EACpBC,SAAU/D,GAAY,EAAI,EAC1BgE,MAAOC,kBAELjE,GAAyBd,EAAM0E,cAAc3C,EAAS,CACxDQ,GAAIA,EACJP,QAASgD,gBACTvE,SAAUF,EACVO,SAAUA,EACVE,gBAAiBA,EACjBC,WAAYA,EACZC,UAAWA,EACXI,UAAWA,EACXE,OAAQA,EACRY,aAAcA,EACdE,eAAgBA,EAChBJ,YAAaA,IACElC,EAAM0E,cAAc/C,EAAWwC,UAAS,CACvDc,IAAKT,GACJ3C,EAAW,CACZR,UAAWA,EACXmC,OAAQA,EACRJ,QAASA,IACPvC,GAAW0D,GAAiCvE,EAAM0E,cAAc,MAAO,CACzE,oBAAoB,EACpBG,SAAU/D,GAAY,EAAI,EAC1BgE,MAAOC,oBAGXhF,EAAUmF,UAAqC,eAAzBtB,QAAQC,IAAIC,SAA4B,CAC5DjD,SAAUsE,OACVrE,SAAUsE,OACVlD,YAAamD,YAAU,CAACD,OAAME,WAC9BvE,cAAeqE,OACfjE,mBAAoBiE,OACpBlE,UAAWkE,OACXpE,gBAAiBoE,OACjBnE,WAAYmE,OACZhE,MAAOmE,SACPlE,UAAWkE,SACXjE,UAAWkE,OACXhE,OAAQiE,UAAQC,OAChBhE,GAAI2D,YAAU,CAACE,SAAQC,OAAMF,WAC7BzD,UAAWyD,SACXlD,aAAcoD,OACdlD,eAAgBkD,OAChBxD,QAAS0D,MAAIC,YACX,GACJ5F,EAAU6F,aAAe,CACvB/E,cAAUmC,EACVlC,UAAU,EACVoB,aAAa,EACbnB,eAAe,EACfG,WAAW,EACXF,iBAAiB,EACjBC,YAAY,EACZE,wBAAoB6B,EACpB5B,WAAO4B,EACP3B,eAAW2B,EACX1B,eAAW0B,EACXxB,YAAQwB,EACRtB,GAAI,MACJG,UAAW,GACXO,kBAAcY,EACdV,oBAAgBU,GAElB,MAAejD"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("react");var e=require("prop-types"),n=require("../../../react-clientside-effect/lib/index.es.js"),t=require("../../../focus-lock/dist/es2015/index.js"),u=require("./util.js"),r=require("./medium.js"),o=require("../../../focus-lock/dist/es2015/focusInside.js"),i=require("../../../focus-lock/dist/es2015/focusIsHidden.js"),c=require("../../../focus-lock/dist/es2015/focusables.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=d(e),a=function(){return document&&document.activeElement===document.body||i.focusIsHidden()},f=null,l=null,m=null,v=!1,b=function(){return!0};function p(e,n,t,u){var r=null,o=e;do{var i=u[o];if(i.guard)i.node.dataset.focusAutoGuard&&(r=i);else{if(!i.lockItem)break;if(o!==e)return;r=null}}while((o+=t)!==n);r&&(r.node.tabIndex=0)}var E=function(e){return e&&"current"in e?e.current:e},g=function(){var e,n=!1;if(f){var u=f,r=u.observed,i=u.persistentFocus,d=u.autoFocus,s=u.shards,g=u.crossFrame,I=r||m&&m.portaledElement,j=document&&document.activeElement;if(I){var q=[I].concat(s.map(E).filter(Boolean));if(j&&!function(e){return(f.whiteList||b)(e)}(j)||(i||(g?Boolean(v):"meanwhile"===v)||!a()||!l&&d)&&(!I||o.focusInside(q)||(e=j,m&&m.portaledElement===e)||(document&&!l&&j&&!d?(j.blur&&j.blur(),document.body.focus()):(n=t.default(q,l),m={})),v=!1,l=document&&document.activeElement),document){var h=document&&document.activeElement,w=c.getFocusabledIn(q),x=w.map((function(e){return e.node})).indexOf(h);x>-1&&(w.filter((function(e){var n=e.guard,t=e.node;return n&&t.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),p(x,w.length,1,w),p(x,-1,-1,w))}}}return n},I=function(e){g()&&e&&(e.stopPropagation(),e.preventDefault())},j=function(){return u.deferAction(g)};"production"===process.env.NODE_ENV||s.default.node.isRequired;var q=function(){v="just",setTimeout((function(){v="meanwhile"}),0)};r.mediumFocus.assignSyncMedium((function(e){var n=e.target,t=e.currentTarget;t.contains(n)||(m={observerNode:t,portaledElement:n})})),r.mediumBlur.assignMedium(j),r.mediumEffect.assignMedium((function(e){return e({moveFocusInside:t.default,focusInside:o.focusInside})}));var h=n.default((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var n=e.slice(-1)[0];n&&!f&&(document.addEventListener("focusin",I,!0),document.addEventListener("focusout",j),window.addEventListener("blur",q));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?(l=null,r&&t.observed===n.observed||n.onActivation(),g(),u.deferAction(g)):(document.removeEventListener("focusin",I,!0),document.removeEventListener("focusout",j),window.removeEventListener("blur",q),l=null)}))((function(){return null}));exports.default=h;
|
|
2
|
+
//# sourceMappingURL=Trap.js.map
|