UNPKG

react-checkbox-tree

Version:
108 lines (107 loc) 3.86 kB
{ "name": "react-checkbox-tree", "version": "2.0.2", "description": "A simple and elegant checkbox tree for React.", "author": "Jake Zatecky", "license": "MIT", "types": "src/index.d.ts", "keywords": [ "react", "checkbox", "tree" ], "repository": { "type": "git", "url": "https://github.com/jakezatecky/react-checkbox-tree" }, "homepage": "https://jakezatecky.github.io/react-checkbox-tree", "bugs": "https://github.com/jakezatecky/react-checkbox-tree/issues", "main": "lib/index.cjs", "module": "lib/index.esm.js", "browser": "lib/index.cjs", "type": "module", "imports": { "#js/*": "./src/js/*", "#src/*": "./src/*" }, "exports": { ".": { "import": "./lib/index.esm.js", "require": "./lib/index.cjs", "types": "./src/index.d.ts" }, "./*": "./*" }, "scripts": { "build:script": "npm run build:script-umd && npm run build:script-esm", "build:script-umd": "webpack --env=target=umd", "build:script-esm": "webpack --env=target=esm", "build:scss": "sass src/scss/react-checkbox-tree.scss lib/react-checkbox-tree.css", "build:style": "npm run build:scss && npm run build:style-autoprefix", "build:style-autoprefix": "postcss lib/react-checkbox-tree.css --use autoprefixer --output lib/react-checkbox-tree.css", "build": "npm run build:script && npm run build:style", "examples": "webpack serve --config=webpack.config.examples.js", "format:style": "prettier --write src/scss/**/*.scss examples/src/scss/**/*.scss", "lint": "npm run lint:script && npm run lint:style", "lint:script": "eslint src/**/*.{js,jsx} examples/src/**/*.{js,jsx} test/**/*.{js,jsx} *.{js,jsx}", "lint:style": "stylelint src/scss/**/*.scss examples/src/scss/**/*.scss", "gh-build": "webpack --config=webpack.config.examples.js --mode=production", "gh-deploy": "npm run gh-build && bash ./gh-deploy.sh", "prepublishOnly": "npm run test-and-build", "test": "npm run lint && npm run test:script && npm run test:style-format", "test:script": "webpack --config=webpack.config.test.js && mocha test-compiled/index.js --exit", "test:style-format": "prettier --check src/scss/**/*.scss examples/src/scss/**/*.scss", "test-and-build": "npm run test && npm run build" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" }, "devDependencies": { "@babel/core": "^7.0.0", "@babel/eslint-parser": "^7.13.10", "@babel/preset-env": "^7.0.0", "@babel/preset-react": "^7.0.0", "@babel/register": "^7.0.0", "@testing-library/dom": "^10.4.1", "@testing-library/react": "^16.3.0", "@testing-library/user-event": "^14.4.3", "@types/react": "^19.2.10", "autoprefixer": "^10.4.13", "babel-loader": "^10.0.0", "chai": "^6.0.1", "cross-env": "^10.0.0", "css-loader": "^7.1.2", "cssnano": "^8.0.0", "eslint": "^9.35.0", "eslint-config-takiyon-react": "^7.0.0", "eslint-import-resolver-webpack": "^0.13.0", "eslint-plugin-import": "^2.2.0", "eslint-plugin-jsx-a11y": "^6.0.2", "eslint-plugin-react": "^7.10.0", "eslint-plugin-react-hooks": "^7.0.1", "global-jsdom": "^29.0.0", "globals": "^17.4.0", "html-bundler-webpack-plugin": "^4.21.1", "jsdom": "^29.0.2", "less": "^4.1.3", "mocha": "^11.7.2", "postcss": "^8.4.21", "postcss-cli": "^11.0.0", "prettier": "^3.6.2", "react": "^19.2.4", "react-dom": "^19.2.4", "sass": "^1.58.2", "sass-loader": "^16.0.5", "stylelint": "^17.1.0", "stylelint-config-takiyon": "^7.0.0", "webpack": "^5.3.2", "webpack-cli": "^7.0.2", "webpack-dev-server": "^5.2.2" }, "dependencies": { "classnames": "^2.2.5", "fast-equals": "^6.0.0", "lodash.memoize": "^4.1.2", "prop-types": "^15.5.8" } }