reablocks
Version:
Component library for React
166 lines (165 loc) • 5.07 kB
JSON
{
"name": "reablocks",
"version": "10.2.0",
"description": "Component library for React",
"scripts": {
"build": "npm run build:js && npm run build:styles && npm run rewrite:stories",
"build-storybook": "storybook build",
"build:js": "vite build --mode library",
"build:styles": "npx @tailwindcss/cli -i ./src/index.css -o ./dist/index.css",
"rewrite:stories": "node scripts/stories.cjs",
"lint": "eslint --ext js,ts,tsx",
"lint:fix": "eslint --ext js,ts,tsx --fix src",
"lint:prettier": "prettier --loglevel warn --write 'src/**/*.{ts,tsx,js,jsx}'",
"prettier": "prettier --loglevel warn --write 'src/**/*.{ts,tsx,js,jsx}'",
"start": "storybook dev -p 9009",
"test": "vitest --passWithNoTests",
"test:coverage": "vitest run --coverage --passWithNoTests",
"test:visual": "test-storybook --url http://localhost:9009",
"test:visual:update": "test-storybook --url http://localhost:9009 -u",
"test:visual:ci": "test-storybook --url http://localhost:9009 --ci --maxWorkers=1",
"prepare": "husky"
},
"type": "module",
"types": "dist/index.d.ts",
"main": "./dist/index.umd.cjs",
"module": "./dist/index.js",
"source": "src/index.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.umd.cjs"
},
"./index.css": "./dist/index.css",
"./stories/*": "./dist/stories/*",
"./blocks/*": "./dist/blocks/*"
},
"browser": "dist/index.js",
"typings": "dist/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/reaviz/reablocks.git"
},
"files": [
"dist"
],
"keywords": [
"react",
"reactjs",
"component library",
"ui components",
"tailwind",
"tailwind css",
"tailwind components",
"tailwind elements",
"tailwind library"
],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/reaviz/reablocks/issues"
},
"homepage": "https://github.com/reaviz/reablocks#readme",
"dependencies": {
"@floating-ui/react": "^0.27.19",
"body-scroll-lock-upgrade": "^1.1.0",
"chroma-js": "^3.2.0",
"classnames": "^2.5.1",
"create-global-state-hook": "^0.0.2",
"ctrl-keys": "^1.0.6",
"date-fns": "^4.1.0",
"ellipsize": "^0.7.0",
"focus-trap-react": "^12.0.1",
"human-format": "^1.2.1",
"motion": "^12.38.0",
"name-initials": "^0.1.3",
"pluralize": "^8.0.0",
"react-fast-compare": "^3.2.2",
"react-textarea-autosize": "^8.5.9",
"tailwind-merge": "^3.6.0"
},
"peerDependencies": {
"react": ">=18",
"react-dom": ">=18"
},
"devDependencies": {
"@eslint/compat": "^2.1.0",
"@eslint/eslintrc": "^3.3.5",
"@eslint/js": "^9.35.0",
"@storybook/addon-docs": "^10.3.6",
"@storybook/addon-themes": "^10.3.6",
"@storybook/react": "^10.2.17",
"@storybook/react-vite": "^10.3.6",
"@storybook/test-runner": "^0.24.4",
"@tailwindcss/cli": "^4.3.0",
"@tailwindcss/postcss": "^4.3.0",
"@tailwindcss/vite": "^4.3.0",
"@types/classnames": "^2.3.4",
"@types/jest-image-snapshot": "^6.4.1",
"@types/node": "^25.7.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@typescript-eslint/eslint-plugin": "^8.59.3",
"@typescript-eslint/parser": "^8.59.3",
"@vitejs/plugin-react": "^5.2.0",
"@vitest/coverage-v8": "^4.0.18",
"autoprefixer": "^10.5.0",
"eslint": "^9.39.4",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-no-relative-import-paths": "^1.6.1",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-storybook": "^10.3.6",
"fast-glob": "^3.3.3",
"globals": "^17.6.0",
"husky": "^9.1.7",
"jest-image-snapshot": "^6.5.2",
"jsdom": "^28.1.0",
"lint-staged": "^16.4.0",
"postcss-nested": "^7.0.2",
"postcss-preset-env": "^11.2.1",
"prettier": "^3.8.3",
"react": "^19.2.6",
"react-docgen-typescript": "^2.4.0",
"react-dom": "^19.2.6",
"react-hook-form": "^7.75.0",
"rollup-plugin-peer-deps-external": "2.2.4",
"storybook": "^10.3.6",
"tailwindcss": "^4.1.13",
"tw-colors": "^4.0.0-beta.1",
"typescript": "^5.9.2",
"typescript-rewrite-paths": "^1.3.1",
"vite": "^7.3.3",
"vite-plugin-checker": "^0.12.0",
"vite-plugin-css-injected-by-js": "^4.0.1",
"vite-plugin-dts": "^4.5.4",
"vite-plugin-static-copy": "^3.4.0",
"vite-plugin-svgr": "^4.5.0",
"vite-tsconfig-paths": "^6.1.1",
"vitest": "^4.0.18"
},
"overrides": {
"uuid": "^11.1.1"
},
"prettier": {
"semi": true,
"singleQuote": true,
"trailingComma": "none",
"arrowParens": "avoid",
"bracketSpacing": true,
"printWidth": 80
},
"lint-staged": {
"src/**/*.{js,jsx,ts,tsx}": [
"eslint --ext js,ts,tsx --fix"
],
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
"prettier --write"
]
},
"packageManager": "npm@10.8.2",
"engines": {
"node": ">=22",
"npm": ">=10.8.2"
}
}