react-class-variants
Version:
Type-safe React variants API for dynamic CSS class composition
92 lines • 2.38 kB
JSON
{
"name": "react-class-variants",
"version": "2.0.0-alpha.1",
"description": "Type-safe React variants API for dynamic CSS class composition",
"private": false,
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"files": [
"dist",
"README.md",
"LICENSE",
"CHANGELOG.md"
],
"sideEffects": false,
"license": "MIT",
"author": {
"name": "Salavat Salakhutdinov",
"email": "salahutdinov.salavat@gmail.com",
"url": "https://github.com/jackardios"
},
"keywords": [
"react",
"variants",
"css",
"classnames",
"class-variance",
"tailwind",
"tailwindcss",
"css-modules",
"styled-components",
"typescript",
"polymorphic",
"compound-variants"
],
"repository": {
"type": "git",
"url": "git+https://github.com/jackardios/react-class-variants.git"
},
"bugs": {
"url": "https://github.com/jackardios/react-class-variants/issues"
},
"homepage": "https://github.com/jackardios/react-class-variants#readme",
"engines": {
"node": ">=18.0.0"
},
"devDependencies": {
"@changesets/cli": "^2.29.6",
"@testing-library/dom": "^10.4.1",
"@testing-library/jest-dom": "^6.8.0",
"@testing-library/react": "^16.3.0",
"@types/react": "^19.1.11",
"@types/react-dom": "^19.1.7",
"@vitejs/plugin-react": "^4.7.0",
"@vitest/coverage-v8": "3.2.4",
"@vitest/ui": "3.2.4",
"jsdom": "^26.1.0",
"react-dom": "^19.1.1",
"tsd": "^0.33.0",
"tsup": "^8.5.0",
"typescript": "^5.9.2",
"vitest": "^3.2.4"
},
"peerDependencies": {
"react": "^19.0",
"react-dom": "^19.0"
},
"scripts": {
"dev": "vitest",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"test:ui": "vitest --ui",
"test:types": "tsd --files test/index.test-d.tsx",
"build": "tsup src/index.ts --format cjs,esm --dts",
"lint": "tsc --project tsconfig.build.json",
"lint:all": "tsc",
"ci": "pnpm run lint && pnpm run test && pnpm run build && pnpm run test:types",
"release": "pnpm run ci && changeset publish"
}
}