UNPKG

@render-props/scrollable

Version:

A state container which provides an interface for listening to the scroll event of its child component and providing valuable data about direction, distance, and more. It also provides convenience functions for scrollTo with optional animation.

50 lines (49 loc) 1.75 kB
{ "version": "0.1.20", "main": "cjs/index.js", "module": "es/index.js", "jsnext:main": "es/index.js", "esnext": "es/index.js", "scripts": { "build": "yarn run build:es && yarn run build:cjs", "build:es": "rimraf es && cross-env NODE_ENV=production BABEL_ENV=es babel src --out-dir es && npm run prettier:es", "build:cjs": "rimraf cjs && cross-env NODE_ENV=production BABEL_ENV=cjs babel src --out-dir cjs && npm run prettier:cjs", "build:publish": "yarn run build && yarn publish --access public", "edit": "atom ./", "watch:es": "cross-env NODE_ENV=development BABEL_ENV=es babel ./src -w --out-dir es", "prettier:es": "prettier --single-quote --no-semi --no-bracket-spacing --trailing-comma es5 --write \"es/**/*.js\"", "prettier:cjs": "prettier --single-quote --no-semi --no-bracket-spacing --trailing-comma es5 --write \"cjs/**/*.js\"" }, "author": "Jared Lunde <jared@tessellate.io> (https://github.com/jaredlunde)", "sideEffects": false, "analyze": true, "license": "MIT", "repository": "https://github.com/jaredlunde/render-props/tree/master/packages/scrollable", "name": "@render-props/scrollable", "devDependencies": { "@stellar-apps/babel-preset-es": "^1.0.4", "@stellar-apps/babel-preset-react": "^1.0.1", "prettier": "^1.10.2" }, "dependencies": { "@babel/runtime": "^7.4.0", "@render-props/events": "^0.1.2", "@render-props/throttle": "^0.1.5", "@render-props/utils": "^0.2.1" }, "peerDependencies": { "prop-types": ">= 15.6.0", "react": ">= 16.0.0" }, "keywords": [ "react", "render props", "function as child", "hoc", "state container", "scroll", "onscroll", "scroller", "scroll animation" ] }