@szhsin/react-accordion
Version:
The complete accordion solution for React.
101 lines (100 loc) • 2.75 kB
JSON
{
"name": "@szhsin/react-accordion",
"version": "1.4.1",
"description": "The complete accordion solution for React.",
"author": "Zheng Song",
"license": "MIT",
"repository": "szhsin/react-accordion",
"homepage": "https://szhsin.github.io/react-accordion/",
"main": "./dist/cjs/index.cjs",
"module": "./dist/esm/index.mjs",
"types": "./types/index.d.ts",
"publishConfig": {
"access": "public"
},
"sideEffects": false,
"files": [
"dist/",
"types/"
],
"keywords": [
"react",
"accordion",
"component",
"hook",
"unstyled",
"headless UI",
"design system",
"accessibility",
"wai-aria"
],
"scripts": {
"start": "run-p watch \"types -- --watch\"",
"eg": "npm run dev --prefix example",
"bundle": "rollup -c",
"watch": "rollup -c -w",
"clean": "rm -Rf dist types",
"types": "tsc",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"pret": "prettier -c .",
"pret:fix": "prettier -w .",
"test": "jest",
"test:watch": "jest --watch --verbose",
"test:cov": "jest --coverage=true",
"postbuild": "rm -Rf types/__tests__",
"build": "run-s pret clean types lint bundle"
},
"exports": {
".": {
"types": "./types/index.d.ts",
"require": "./dist/cjs/index.cjs",
"default": "./dist/esm/index.mjs"
},
"./package.json": "./package.json"
},
"peerDependencies": {
"react": "^16.14 || ^17.0 || ^18.0 || ^19.0",
"react-dom": "^16.14 || ^17.0 || ^18.0 || ^19.0"
},
"dependencies": {
"react-transition-state": "^2.3.1"
},
"devDependencies": {
"@babel/core": "^7.26.10",
"@babel/preset-env": "^7.26.9",
"@babel/preset-react": "^7.26.3",
"@babel/preset-typescript": "^7.27.0",
"@eslint/js": "^9.25.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-node-resolve": "^16.0.1",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.0",
"@types/jest": "^29.5.14",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.2",
"babel-plugin-pure-annotations": "^0.1.2",
"eslint": "^9.25.1",
"eslint-config-prettier": "^10.1.2",
"eslint-plugin-jest": "^28.11.0",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-react-hooks-addons": "^0.5.0",
"globals": "^16.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.5.3",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"rollup": "^4.40.1",
"rollup-plugin-add-directive": "^1.0.0",
"typescript": "^5.8.3",
"typescript-eslint": "^8.31.1"
},
"overrides": {
"whatwg-url@11.0.0": {
"tr46": "^4"
}
}
}