@szhsin/react-menu
Version:
React component for building accessible menu, dropdown, submenu, context menu, and more
95 lines (94 loc) • 2.58 kB
JSON
{
"name": "@szhsin/react-menu",
"version": "4.5.2",
"description": "React component for building accessible menu, dropdown, submenu, context menu, and more",
"author": "Zheng Song",
"license": "MIT",
"repository": "szhsin/react-menu",
"homepage": "https://szhsin.github.io/react-menu/",
"main": "./dist/cjs/index.cjs",
"module": "./dist/esm/index.mjs",
"types": "./types/index.d.ts",
"publishConfig": {
"access": "public"
},
"sideEffects": [
"*.css"
],
"files": [
"dist",
"types/*.d.ts",
"style-utils"
],
"scripts": {
"bundle": "rollup -c",
"watch": "rollup -c -w",
"css": "sass src/styles:dist --no-source-map",
"clean": "rm -rf dist && mkdir -p dist",
"start": "run-p \"css -- --watch\" watch",
"build": "run-s pret clean lint types css bundle",
"test": "jest",
"test:watch": "jest --watch --verbose",
"test:cov": "jest --coverage=true",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"pret": "prettier -c .",
"pret:fix": "prettier -w .",
"types": "cd types && tsc",
"eg": "npm run dev --prefix example"
},
"peerDependencies": {
"react": ">=16.14.0",
"react-dom": ">=16.14.0"
},
"dependencies": {
"react-transition-state": "^2.4.0"
},
"devDependencies": {
"@babel/core": "^7.29.7",
"@babel/preset-env": "^7.29.7",
"@babel/preset-react": "^7.29.7",
"@eslint/js": "^10.0.1",
"@rollup/plugin-babel": "^7.1.0",
"@rollup/plugin-node-resolve": "^16.0.3",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@types/jest": "^30.0.0",
"@types/node": "^25.9.1",
"@types/react": "^19.2.16",
"@types/react-dom": "^19.2.3",
"babel-plugin-pure-annotations": "^0.1.2",
"deplift": "^1.3.0",
"eslint": "^10.4.1",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-jest": "^29.15.2",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-hooks-addons": "^0.5.1",
"globals": "^17.6.0",
"jest": "^30.4.2",
"jest-axe": "^10.0.0",
"jest-dom-extended": "^0.2.1",
"jest-environment-jsdom": "^30.4.1",
"npm-run-all2": "^9.0.1",
"prettier": "^3.8.3",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"rollup": "^4.61.1",
"rollup-plugin-add-directive": "^1.0.0",
"sass": "^1.100.0",
"typescript": "^6.0.3"
},
"keywords": [
"react",
"menu",
"component",
"submenu",
"context menu",
"dropdown",
"tooltip",
"checkbox",
"radio button",
"accessibility",
"wai-aria"
]
}