UNPKG

clickable-box

Version:

Add `onClick` to HTML elements without sacrificing accessibility.

69 lines 2.18 kB
{ "name": "clickable-box", "description": "Add `onClick` to HTML elements without sacrificing accessibility.", "version": "1.1.10", "author": "Daniel O'Connor <daniel@danoc.me>", "license": "MIT", "type": "module", "source": "./src/index.tsx", "exports": { "require": "./dist/clickable-box.cjs", "default": "./dist/clickable-box.modern.js" }, "main": "./dist/clickable-box.cjs", "module": "./dist/clickable-box.module.js", "unpkg": "./dist/clickable-box.umd.js", "types": "./dist/index.d.ts", "files": [ "dist" ], "devDependencies": { "@babel/preset-env": "^7.19.4", "@babel/preset-react": "^7.18.6", "@babel/preset-typescript": "^7.18.6", "@changesets/cli": "^2.25.0", "@testing-library/react": "^11.2.3", "@types/jest": "^26.0.20", "@types/react": "^17.0.0", "@typescript-eslint/eslint-plugin": "^4.14.1", "@typescript-eslint/parser": "^4.14.1", "eslint": "^7.18.0", "eslint-config-prettier": "^7.2.0", "eslint-plugin-jest": "^24.1.3", "eslint-plugin-react-hooks": "^4.2.0", "jest": "^26.6.3", "microbundle": "0.15.1", "prettier": "^2.7.1", "react": "^17.0.1", "react-dom": "^17.0.1" }, "peerDependencies": { "react": "^16.3.0 || ^17.0.0 || ^18.0.0", "react-dom": "^16.3.0 || ^17.0.0 || ^18.0.0" }, "publishConfig": { "access": "public" }, "repository": { "type": "git", "url": "git+https://github.com/danoc/clickable-box.git" }, "bugs": { "url": "https://github.com/danoc/clickable-box/issues" }, "keywords": [ "accessibility", "react", "component" ], "homepage": "https://github.com/danoc/clickable-box#readme", "packageManager": "pnpm@7.14.0", "scripts": { "test": "pnpm run test:eslint && pnpm run test:jest && pnpm run test:prettier", "test:eslint": "eslint . --ignore-path .gitignore --ext .jsx --ext .js --ext .tsx --ext .ts", "test:jest": "jest", "test:prettier": "prettier . --check", "format": "prettier . --write", "release": "rm -rf dist && pnpm install --frozen-lockfile && pnpm test && pnpm microbundle --jsx React.createElement && pnpm changeset publish" } }