pax_global_header 0000666 0000000 0000000 00000000064 15112517130 0014506 g ustar 00root root 0000000 0000000 52 comment=ef5c312e4c1c6bc5d4cd60b03261d686b8cb165f theKashey-react-remove-scroll-b5d57a4/ 0000775 0000000 0000000 00000000000 15112517130 0017733 5 ustar 00root root 0000000 0000000 theKashey-react-remove-scroll-b5d57a4/.eslintrc.js 0000664 0000000 0000000 00000003501 15112517130 0022171 0 ustar 00root root 0000000 0000000 module.exports = { extends: ['plugin:@typescript-eslint/recommended', 'plugin:import/typescript', 'plugin:react-hooks/recommended'], parser: '@typescript-eslint/parser', plugins: ['@typescript-eslint', 'prettier', 'import'], rules: { '@typescript-eslint/ban-ts-comment': 0, '@typescript-eslint/ban-ts-ignore': 0, '@typescript-eslint/no-var-requires': 0, '@typescript-eslint/camelcase': 0, 'import/order': [ 'error', { 'newlines-between': 'always-and-inside-groups', alphabetize: { order: 'asc', }, groups: ['builtin', 'external', 'internal', ['parent', 'index', 'sibling']], }, ], 'padding-line-between-statements': [ 'error', // IMPORT { blankLine: 'always', prev: 'import', next: '*', }, { blankLine: 'any', prev: 'import', next: 'import', }, // EXPORT { blankLine: 'always', prev: '*', next: 'export', }, { blankLine: 'any', prev: 'export', next: 'export', }, { blankLine: 'always', prev: '*', next: ['const', 'let'], }, { blankLine: 'any', prev: ['const', 'let'], next: ['const', 'let'], }, // BLOCKS { blankLine: 'always', prev: ['block', 'block-like', 'class', 'function', 'multiline-expression'], next: '*', }, { blankLine: 'always', prev: '*', next: ['block', 'block-like', 'class', 'function', 'return', 'multiline-expression'], }, ], }, settings: { 'import/parsers': { '@typescript-eslint/parser': ['.ts', '.tsx'], }, 'import/resolver': { typescript: { alwaysTryTypes: true, }, }, }, }; theKashey-react-remove-scroll-b5d57a4/.github/ 0000775 0000000 0000000 00000000000 15112517130 0021273 5 ustar 00root root 0000000 0000000 theKashey-react-remove-scroll-b5d57a4/.github/stale.yml 0000664 0000000 0000000 00000001274 15112517130 0023132 0 ustar 00root root 0000000 0000000 # Number of days of inactivity before an issue becomes stale daysUntilStale: 60 # Number of days of inactivity before a stale issue is closed daysUntilClose: 7 # Label to use when marking an issue as stale staleLabel: state # Comment to post when marking an issue as stale. Set to `false` to disable markComment: > This issue has been marked as "stale" because there has been no activity for 2 months. If you have any new information or would like to continue the discussion, please feel free to do so. If this issue got buried among other tasks, maybe this message will reignite the conversation. Otherwise, this issue will be closed in 7 days. Thank you for your contributions so far. theKashey-react-remove-scroll-b5d57a4/.gitignore 0000664 0000000 0000000 00000000067 15112517130 0021726 0 ustar 00root root 0000000 0000000 node_modules/ /dist/ .DS_Store coverage/ yarn-error.log theKashey-react-remove-scroll-b5d57a4/.npmignore 0000664 0000000 0000000 00000000067 15112517130 0021735 0 ustar 00root root 0000000 0000000 node_modules/ npm-debug.log .DS_Store example __tests__ theKashey-react-remove-scroll-b5d57a4/.npmrc 0000664 0000000 0000000 00000000043 15112517130 0021050 0 ustar 00root root 0000000 0000000 registry=https://registry.npmjs.org theKashey-react-remove-scroll-b5d57a4/.nvmrc 0000664 0000000 0000000 00000000002 15112517130 0021051 0 ustar 00root root 0000000 0000000 18 theKashey-react-remove-scroll-b5d57a4/.size-limit 0000664 0000000 0000000 00000000551 15112517130 0022023 0 ustar 00root root 0000000 0000000 [ { "path": "dist/es2015/index.js", "ignore": ["react-dom", "tslib", "use-sidecar"], "limit": "3.8 KB" }, { "path": "dist/es2015/sidecar.js", "ignore": ["react-dom", "tslib", "use-sidecar"], "limit": "3.1 KB" }, { "path": "dist/es2015/UI.js", "ignore": ["react-dom", "tslib", "use-sidecar"], "limit": "1.2 KB" } ] theKashey-react-remove-scroll-b5d57a4/.size.json 0000664 0000000 0000000 00000000475 15112517130 0021664 0 ustar 00root root 0000000 0000000 [ { "name": "dist/es2015/index.js", "passed": true, "size": 3638, "sizeLimit": 3800 }, { "name": "dist/es2015/sidecar.js", "passed": true, "size": 3009, "sizeLimit": 3100 }, { "name": "dist/es2015/UI.js", "passed": true, "size": 1110, "sizeLimit": 1200 } ] theKashey-react-remove-scroll-b5d57a4/.storybook/ 0000775 0000000 0000000 00000000000 15112517130 0022044 5 ustar 00root root 0000000 0000000 theKashey-react-remove-scroll-b5d57a4/.storybook/.babelrc 0000664 0000000 0000000 00000000337 15112517130 0023442 0 ustar 00root root 0000000 0000000 { "sourceType": "unambiguous", "presets": [ [ "@babel/preset-env", { "shippedProposals": true, "loose": true } ], "@babel/preset-typescript", "@babel/preset-react" ] } theKashey-react-remove-scroll-b5d57a4/.storybook/main.js 0000664 0000000 0000000 00000000224 15112517130 0023324 0 ustar 00root root 0000000 0000000 module.exports = { stories: ['../stories/*.stories.@(js|jsx|ts|tsx)'], framework: '@storybook/react', typescript: { check: false, }, }; theKashey-react-remove-scroll-b5d57a4/.storybook/preview.js 0000664 0000000 0000000 00000000257 15112517130 0024067 0 ustar 00root root 0000000 0000000 export const parameters = { actions: { argTypesRegex: '^on[A-Z].*' }, controls: { matchers: { color: /(background|color)$/i, date: /Date$/, }, }, }; theKashey-react-remove-scroll-b5d57a4/.travis.yml 0000664 0000000 0000000 00000000157 15112517130 0022047 0 ustar 00root root 0000000 0000000 language: node_js node_js: - '14' cache: yarn script: - yarn - yarn test:ci notifications: email: false theKashey-react-remove-scroll-b5d57a4/CHANGELOG.md 0000664 0000000 0000000 00000021326 15112517130 0021550 0 ustar 00root root 0000000 0000000 ## [2.6.2](https://github.com/theKashey/react-remove-scroll/compare/v2.6.1...v2.6.2) (2024-12-17) ## [2.6.1](https://github.com/theKashey/react-remove-scroll/compare/v2.6.0...v2.6.1) (2024-12-15) ### Bug Fixes - README typo ([a723e5b](https://github.com/theKashey/react-remove-scroll/commit/a723e5b03301bdd462c4f4c6166db6c772e24b55)) ### Features - add react v19 to peer deps ([6656c05](https://github.com/theKashey/react-remove-scroll/commit/6656c053018b5ff50342fc2182b090b4dc4c1229)) # [2.6.0](https://github.com/theKashey/react-remove-scroll/compare/v2.5.10...v2.6.0) (2024-09-08) ## [2.5.10](https://github.com/theKashey/react-remove-scroll/compare/v2.5.9...v2.5.10) (2024-05-12) ### Bug Fixes - correct behavior in shadow dom ([ea7a398](https://github.com/theKashey/react-remove-scroll/commit/ea7a398ffe624678fb0b9450ea8812ab6ebdb1b5)) - elementCanBeScrolled fails if node is not an HTMLElement ([baa56c3](https://github.com/theKashey/react-remove-scroll/commit/baa56c3daa7e1d6b802c6ba7f2efd989cc412a13)) ## [2.5.9](https://github.com/theKashey/react-remove-scroll/compare/v2.5.8...v2.5.9) (2024-03-16) ## [2.5.8](https://github.com/theKashey/react-remove-scroll/compare/v2.5.7...v2.5.8) (2024-03-16) ### Bug Fixes - update react-remove-scroll-bar to fix nested cases ([be1f247](https://github.com/theKashey/react-remove-scroll/commit/be1f247ef908faa15b569295726b164a0a026978)) ## [2.5.7](https://github.com/theKashey/react-remove-scroll/compare/v2.5.6...v2.5.7) (2023-10-10) ### Bug Fixes - correct edge case behavior on non zero browser zoom levels ([cd24189](https://github.com/theKashey/react-remove-scroll/commit/cd24189765f59074bba22cbf03ce5f80e2950c7d)) - correct shadow dom traversal ([55d302b](https://github.com/theKashey/react-remove-scroll/commit/55d302ba98f250eb366fc36337b4d4656889ae88)) ## [2.5.6](https://github.com/theKashey/react-remove-scroll/compare/v2.5.5...v2.5.6) (2023-04-30) ### Bug Fixes - pass gapMode to react-remove-scroll-bar ([04412b1](https://github.com/theKashey/react-remove-scroll/commit/04412b14b3f164a632e711998ba414f0a9929438)) ## [2.5.5](https://github.com/theKashey/react-remove-scroll/compare/v2.5.4...v2.5.5) (2022-07-03) ### Bug Fixes - add special treatment for textareas, fixes [#74](https://github.com/theKashey/react-remove-scroll/issues/74) ([af8fd75](https://github.com/theKashey/react-remove-scroll/commit/af8fd751a49d6deb9f40d79ecef9b030f291354e)) - do not prevent uncancelable events, fixes [#8](https://github.com/theKashey/react-remove-scroll/issues/8) ([9d12786](https://github.com/theKashey/react-remove-scroll/commit/9d127860addd39c7305aea9e57ee2f51cecd229d)) ## [2.5.4](https://github.com/theKashey/react-remove-scroll/compare/v2.5.3...v2.5.4) (2022-06-06) ### Bug Fixes - update react-remove-scroll-bar. Fixes [#71](https://github.com/theKashey/react-remove-scroll/issues/71) ([3f51035](https://github.com/theKashey/react-remove-scroll/commit/3f51035e5a433443657169ea8c61661acf301b14)) ## [2.5.3](https://github.com/theKashey/react-remove-scroll/compare/v2.5.2...v2.5.3) (2022-05-01) ### Bug Fixes - add ref to the public interface ([db99c0e](https://github.com/theKashey/react-remove-scroll/commit/db99c0e484fd67ee87a889d4cb939c5a43f2734a)) ## [2.5.2](https://github.com/theKashey/react-remove-scroll/compare/v2.5.1...v2.5.2) (2022-05-01) ### Bug Fixes - correct React 18 integration ([af8e23e](https://github.com/theKashey/react-remove-scroll/commit/af8e23e28be1d1fed917fc2967030d29680c2fc2)) ## [2.5.1](https://github.com/theKashey/react-remove-scroll/compare/v2.5.0...v2.5.1) (2022-04-19) ### Bug Fixes - restore entrypoints, fixes [#68](https://github.com/theKashey/react-remove-scroll/issues/68) ([6ef7d3c](https://github.com/theKashey/react-remove-scroll/commit/6ef7d3c8b935c9bc1eb75f1aa8e1ea6738ae2985)) # [2.5.0](https://github.com/theKashey/react-remove-scroll/compare/v2.4.4...v2.5.0) (2022-04-18) ### Bug Fixes - correct range input behavior, fixes [#64](https://github.com/theKashey/react-remove-scroll/issues/64) ([0bd6ca8](https://github.com/theKashey/react-remove-scroll/commit/0bd6ca85d014acc10ed37b6d3f9e70e1ee4e2c30)) ## [2.4.4](https://github.com/theKashey/react-remove-scroll/compare/v2.4.2...v2.4.4) (2022-02-12) ### Bug Fixes - correct lock behavior for RTL direction ([23457a7](https://github.com/theKashey/react-remove-scroll/commit/23457a7770e010b36b950057d90f496d12d8a93c)) - Scroll working in RTL ([fcae298](https://github.com/theKashey/react-remove-scroll/commit/fcae298d7d35de00ec35fd712bee54c7db2d491c)) - Skip shadow root when traversing up the dom tree ([eb6a5e7](https://github.com/theKashey/react-remove-scroll/commit/eb6a5e7ddc70432586c07e151e535d0e9d631833)) ## [2.4.2](https://github.com/theKashey/react-remove-scroll/compare/v2.4.1...v2.4.2) (2021-05-08) ## [2.4.1](https://github.com/theKashey/react-remove-scroll/compare/v2.4.0...v2.4.1) (2020-11-27) # [2.4.0](https://github.com/theKashey/react-remove-scroll/compare/v2.3.0...v2.4.0) (2020-08-13) ### Features - expose 'as' and 'style' props ([3022f26](https://github.com/theKashey/react-remove-scroll/commit/3022f26e811de6e6154298743159bfe9b18bf332)) # [2.3.0](https://github.com/theKashey/react-remove-scroll/compare/v2.2.0...v2.3.0) (2020-04-16) ### Features - support CSP ([60ce4bf](https://github.com/theKashey/react-remove-scroll/commit/60ce4bf25caf845090cc5ff952ae78d8dca7b587)) # [2.2.0](https://github.com/theKashey/react-remove-scroll/compare/v2.1.1...v2.2.0) (2019-10-17) ### Features - add allowPinchZoom property, fixes [#17](https://github.com/theKashey/react-remove-scroll/issues/17) ([2945796](https://github.com/theKashey/react-remove-scroll/commit/2945796612cdbdc36bb3a888c449e62908a3bea1)) ## [2.1.1](https://github.com/theKashey/react-remove-scroll/compare/v2.1.0...v2.1.1) (2019-10-13) ### Bug Fixes - pass all extra props to the underlaying element ([a022ce7](https://github.com/theKashey/react-remove-scroll/commit/a022ce7c088bdeb5b6db048cd8f4e3ea48ce1eb5)) # [2.1.0](https://github.com/theKashey/react-remove-scroll/compare/v2.0.4...v2.1.0) (2019-10-13) ### Features - allow ref forwarding ([55ecf2b](https://github.com/theKashey/react-remove-scroll/commit/55ecf2bc16cbba54064f7ac60b323fbf820e662c)) ## [2.0.4](https://github.com/theKashey/react-remove-scroll/compare/v2.0.3...v2.0.4) (2019-07-03) ### Bug Fixes - sidecar is a sideeffect ([86b3309](https://github.com/theKashey/react-remove-scroll/commit/86b330978198235e9d69088a35cae3597361c030)) ## [2.0.3](https://github.com/theKashey/react-remove-scroll/compare/v2.0.2...v2.0.3) (2019-07-02) ### Bug Fixes - cjs sidecar package ([1aaaf0b](https://github.com/theKashey/react-remove-scroll/commit/1aaaf0b2b6245705043b93525be5c522ba69ecdc)) ## [2.0.2](https://github.com/theKashey/react-remove-scroll/compare/v2.0.1...v2.0.2) (2019-06-29) ## [2.0.1](https://github.com/theKashey/react-remove-scroll/compare/v2.0.0...v2.0.1) (2019-06-29) ### Bug Fixes - remove self dependency ([2842cde](https://github.com/theKashey/react-remove-scroll/commit/2842cdebbcc22258e422c1c5c0fb6bbc544f4dd3)) # [2.0.0](https://github.com/theKashey/react-remove-scroll/compare/v1.0.8...v2.0.0) (2019-06-29) ### Features - introduce sidecar ([2ca7f59](https://github.com/theKashey/react-remove-scroll/commit/2ca7f59e86abc6e252422ec5cb6132281e945984)) ## [1.0.8](https://github.com/theKashey/react-remove-scroll/compare/v1.0.7...v1.0.8) (2019-05-05) ## [1.0.7](https://github.com/theKashey/react-remove-scroll/compare/v1.0.6...v1.0.7) (2019-05-04) ### Bug Fixes - force lock body scroll on scroll-free systems. fixes [#4](https://github.com/theKashey/react-remove-scroll/issues/4) ([c9c3209](https://github.com/theKashey/react-remove-scroll/commit/c9c320935c5cb0adb277d7dd5359295b80b6bf52)) ## [1.0.6](https://github.com/theKashey/react-remove-scroll/compare/v1.0.4...v1.0.6) (2019-04-15) ### Bug Fixes - overflowX was used for Y axis ([a4b2f33](https://github.com/theKashey/react-remove-scroll/commit/a4b2f3312755f705fdc71e5613cab7e41bd07035)) - support old refs ([a8be7c2](https://github.com/theKashey/react-remove-scroll/commit/a8be7c2966b81cdca6602993b1c8fcd53fb07db8)) ### Features - support shards ([67519f3](https://github.com/theKashey/react-remove-scroll/commit/67519f37bffea7efb45d24d25e2b269520450c7c)) ## [1.0.4](https://github.com/theKashey/react-remove-scroll/compare/v1.0.3...v1.0.4) (2019-02-26) ## [1.0.3](https://github.com/theKashey/react-remove-scroll/compare/v1.0.2...v1.0.3) (2019-02-06) ### Bug Fixes - detect overflow hidden ([aa848e6](https://github.com/theKashey/react-remove-scroll/commit/aa848e678bd57d20fd97b1e42ff62eabd631a237)) ## [1.0.2](https://github.com/theKashey/react-remove-scroll/compare/v1.0.1...v1.0.2) (2019-01-22) ### Bug Fixes - support stacked mode ([8c003ba](https://github.com/theKashey/react-remove-scroll/commit/8c003ba8388c4695e03ff3dfbab09e1cc1cf967a)) ## 1.0.1 (2019-01-22) theKashey-react-remove-scroll-b5d57a4/LICENSE 0000664 0000000 0000000 00000002057 15112517130 0020744 0 ustar 00root root 0000000 0000000 MIT License Copyright (c) 2017 Anton Korzunov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. theKashey-react-remove-scroll-b5d57a4/README.md 0000664 0000000 0000000 00000013463 15112517130 0021221 0 ustar 00root root 0000000 0000000
react-remove-scroll ==== [](https://www.npmjs.com/package/react-remove-scroll) Disables scroll outside of `children` node. - 🖱 mouse and touch devices friendly - 📈 vertical and horizontal - 📜 removes document scroll bar maintaining it space - ✅ support nested scrollable elements - 🕳 supports react-portals (uses React Event system) - ☠️ it could block literally any scroll anywhere # Usage Just wrap content, which should be scrollable, and everything else would not. ```js import {RemoveScroll} from 'react-remove-scroll';{x}****
)}{x} --****--
)} AAAA ZZZ YYSCROLL
SCROLL
FILLER (not scrollable)
{fill(100, 1).map((_, index) =>{index}****
)}END