UNPKG

parliament-chart

Version:

react-parliament-chart is a customizable React component that displays a parliament chart for visualizing the composition of a legislative body. With support for party colors and seat count, this component can be easily customized to match your needs. The

58 lines (57 loc) 2.27 kB
{ "name": "parliament-chart", "version": "1.0.0", "description": "react-parliament-chart is a customizable React component that displays a parliament chart for visualizing the composition of a legislative body. With support for party colors and seat count, this component can be easily customized to match your needs. The included PartyTable allows for additional data display, making it easy to integrate into your project.react-parliament-chart is a customizable React component that displays a parliament chart for visualizing the composition of a legislative body. With support for party colors and seat count, this component can be easily customized to match your needs. The included PartyTable allows for additional data display, making it easy to integrate into your project.", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.js", "types": "./dist/esm/index.d.ts", "scripts": { "build": "yarn build:esm && yarn build:cjs", "build:esm": "tsc", "build:cjs": "tsc --module commonjs --outDir dist/cjs", "lint": "eslint \"{**/*,*}.{js,ts,jsx,tsx}\"", "prettier": "prettier --write \"{src,tests,example/src}/**/*.{js,ts,jsx,tsx}\"", "prepare": "npm run build", "prepublishOnly": "npm test && npm run prettier && npm run lint", "test": "jest --config jestconfig.json" }, "files": [ "dist", "LICENSE", "README.md" ], "repository": { "type": "git", "url": "git+https://github.com/zykscode/parliament.git" }, "keywords": [ "parliament-chart", "d3js", "legislative", "body" ], "author": "zyk", "license": "ISC", "dependencies": { "@types/react": "^18.0.29", "react": "^18.2.0", "react-dom": "^18.2.0", "typescript": "^5.0.2" }, "devDependencies": { "@testing-library/react": "^14.0.0", "@types/jest": "^29.5.0", "@typescript-eslint/eslint-plugin": "^5.56.0", "@typescript-eslint/parser": "^5.56.0", "eslint": "^8.36.0", "eslint-config-prettier": "^8.8.0", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-react": "^7.32.2", "eslint-plugin-react-hooks": "^4.6.0", "jest": "^29.5.0", "jest-canvas-mock": "^2.5.0", "jest-environment-jsdom": "^29.5.0", "prettier": "^2.8.7", "ts-jest": "^29.0.5" } }