UNPKG

react-colorful

Version:

🎨 A tiny color picker component for modern React apps. Fast, well-tested, dependency-free, mobile-friendly and accessible

182 lines (181 loc) • 4.83 kB
{ "name": "react-colorful", "version": "4.4.0", "description": "🎨 A tiny color picker component for modern React apps. Fast, well-tested, dependency-free, mobile-friendly and accessible", "source": "src/index.ts", "main": "dist/index.js", "module": "dist/index.module.js", "esmodule": "dist/index.esmodule.js", "umd:main": "dist/index.umd.js", "types": "dist/index.d.ts", "exports": { ".": { "browser": "./dist/index.module.js", "umd": "./dist/index.umd.js", "import": "./dist/index.module.js", "require": "./dist/index.js" } }, "scripts": { "lint": "eslint src/**/*.{ts,tsx} demo/src/**/*.{ts,tsx}", "size": "npm run build && size-limit", "check-types": "tsc --noEmit true", "test": "jest tests --coverage", "build": "del-cli 'dist/*' && microbundle build --entry src/index.ts --jsx React.createElement --name react-colorful --css-modules true --tsconfig tsconfig.build.json", "prepublishOnly": "npm run build", "start-demo": "parcel demo/src/index.html --out-dir demo/dist --open", "build-demo": "del-cli 'demo/dist/*' && parcel build demo/src/index.html --out-dir demo/dist --public-url /react-colorful/", "deploy-demo": "npm run build-demo && gh-pages -d demo/dist" }, "size-limit": [ { "path": "dist/index.module.js", "import": "{ HexColorPicker }", "limit": "2 KB" }, { "path": "dist/index.module.js", "import": "{ HslColorPicker }", "limit": "2 KB" }, { "path": "dist/index.module.js", "import": "{ HslaColorPicker }", "limit": "2 KB" }, { "path": "dist/index.module.js", "import": "{ HslStringColorPicker }", "limit": "2 KB" }, { "path": "dist/index.module.js", "import": "{ HslaStringColorPicker }", "limit": "2 KB" }, { "path": "dist/index.module.js", "import": "{ HsvColorPicker }", "limit": "2 KB" }, { "path": "dist/index.module.js", "import": "{ HsvaColorPicker }", "limit": "2 KB" }, { "path": "dist/index.module.js", "import": "{ HsvStringColorPicker }", "limit": "2 KB" }, { "path": "dist/index.module.js", "import": "{ HsvaStringColorPicker }", "limit": "2 KB" }, { "path": "dist/index.module.js", "import": "{ RgbColorPicker }", "limit": "2 KB" }, { "path": "dist/index.module.js", "import": "{ RgbaColorPicker }", "limit": "2 KB" }, { "path": "dist/index.module.js", "import": "{ RgbStringColorPicker }", "limit": "2 KB" }, { "path": "dist/index.module.js", "import": "{ RgbaStringColorPicker }", "limit": "2.1 KB" }, { "path": "dist/index.module.js", "import": "{ HexColorInput }", "limit": "2 KB" } ], "sideEffects": [ "*.css" ], "jest": { "verbose": true, "transform": { "\\.js$": "jest-esm-jsx-transform", "^.+\\.tsx?$": "ts-jest" }, "moduleNameMapper": { "\\.css$": "identity-obj-proxy" } }, "files": [ "dist/*.{js,ts,map,css}", "dist/components/*.ts", "LICENSE", "ACKNOWLEDGMENTS", "README.md", "package.json" ], "repository": "omgovich/react-colorful", "keywords": [ "react", "color picker", "react-component", "colorpicker", "tiny", "hex", "color", "front-end", "color-picker", "accessible", "react-color", "accessibility", "aria", "a11y", "wai-aria" ], "author": "Vlad Shilov <omgovich@ya.ru>", "license": "MIT", "bugs": { "url": "https://github.com/omgovich/react-colorful/issues" }, "homepage": "https://omgovich.github.io/react-colorful", "peerDependencies": { "react": ">=16.8.0", "react-dom": ">=16.8.0" }, "devDependencies": { "@size-limit/preset-small-lib": "^4.6.2", "@testing-library/react": "^11.1.0", "@types/jest": "^26.0.10", "@types/react": "^16.9.53", "@types/react-dom": "^16.9.8", "@typescript-eslint/eslint-plugin": "^3.9.1", "@typescript-eslint/parser": "^3.9.1", "del-cli": "^3.0.1", "eslint": "^7.5.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-prettier": "^3.1.4", "eslint-plugin-react": "^7.21.5", "eslint-plugin-react-hooks": "^4.2.0", "gh-pages": "^3.1.0", "identity-obj-proxy": "^3.0.0", "jest": "^26.3.0", "jest-esm-jsx-transform": "^1.0.0", "microbundle": "^0.12.3", "parcel-bundler": "^1.12.4", "postcss-modules": "^3.2.0", "prettier": "2.0.5", "react": "^17.0.0", "react-dom": "^17.0.0", "size-limit": "^4.6.2", "ts-jest": "^26.2.0", "typescript": "^3.9.7", "use-throttled-effect": "0.0.7" }, "dependencies": {} }