UNPKG

@render-props/choices

Version:

A state container which provides an interface for making selections from a group of choices. The `Choices` component itself is a context provider which can be used with the `Choice` and `ChoicesConsumer` components for deep-tree selections. It does not ha

49 lines (48 loc) 1.73 kB
{ "version": "0.1.19", "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/choices", "name": "@render-props/choices", "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/items": "^0.1.10", "@render-props/utils": "^0.2.1", "fast-memoize": "^2.3.0", "invariant": "^2.2.2" }, "peerDependencies": { "prop-types": ">= 15.6.0", "react": ">= 16.3.0" }, "keywords": [ "react", "render props", "function as child", "state container", "hoc", "selections", "choices" ] }