UNPKG

react-collapsed

Version:

A React custom-hook for creating flexible and accessible expand/collapse components.

97 lines 2.69 kB
{ "name": "react-collapsed", "version": "4.2.0", "author": "Rogin Farrer <rogin@roginfarrer.com>", "description": "A React custom-hook for creating flexible and accessible expand/collapse components.", "license": "MIT", "source": "src/index.ts", "main": "./dist/index.cjs.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "exports": { ".": { "require": "./dist/index.cjs.js", "import": "./dist/index.mjs", "types": "./dist/index.d.ts" } }, "files": [ "dist" ], "peerDependencies": { "react": "^16.9.0 || ^17 || ^18 || ^19", "react-dom": "^16.9.0 || ^17 || ^18 || ^19" }, "devDependencies": { "@babel/core": "^7.8.4", "@babel/preset-react": "^7.14.5", "@chromatic-com/storybook": "^1", "@cypress/vite-dev-server": "^5.0.0", "@storybook/addon-a11y": "^8.1.3", "@storybook/addon-actions": "^8.1.3", "@storybook/addon-essentials": "^8.1.3", "@storybook/addon-links": "^8.1.3", "@storybook/react": "^8.1.3", "@storybook/react-vite": "^8.1.3", "@testing-library/cypress": "^10.0.2", "@testing-library/jest-dom": "^6.4.6", "@testing-library/react": "^13.4.0", "@types/node": "^20", "@types/react": "^18", "@types/react-dom": "^18", "@types/styled-components": "^5.0.1", "@types/testing-library__jest-dom": "^6.0.0", "@types/testing-library__react": "^10.2.0", "@vitejs/plugin-react": "^4.3.0", "babel-loader": "^8.2.2", "cypress": "^13.12.0", "eslint": "^8.57.0", "happy-dom": "^14.12.0", "np": "^6.4.0", "react": "^18", "react-docgen-typescript-loader": "^3.7.1", "react-dom": "^18", "storybook": "^8.1.3", "styled-components": "^5.2.0", "tslib": "^2.4.1", "tsup": "^8", "vite": "^4.5.3", "vitest": "^1.6.0", "@collapsed-internal/build": "0.0.0", "@collapsed-internal/tsconfig": "0.0.0", "eslint-config-collapsed": "0.0.0" }, "dependencies": { "tiny-warning": "^1.0.3" }, "repository": { "type": "git", "url": "https://github.com/roginfarrer/collapsed.git", "directory": "packages/react" }, "keywords": [ "collapse", "react", "collapsible", "animate", "height", "render", "expand", "hooks", "auto" ], "publishConfig": { "access": "public" }, "scripts": { "build": "tsup", "dev": "tsup --watch", "test": "vitest", "typecheck": "tsc --project tsconfig.json --noEmit", "lint": "eslint . --max-warnings=0", "storybook": "storybook dev -p 6006", "build-storybook": "storybook build", "release": "np --no-2fa", "cypress:run": "cypress run --component" } }