@neo4j-ndl/react
Version:
React implementation of Neo4j Design System
137 lines • 5.1 kB
JSON
{
"name": "@neo4j-ndl/react",
"version": "3.9.6",
"sideEffects": false,
"description": "React implementation of Neo4j Design System",
"keywords": [
"neo4j",
"react",
"design system",
"needle",
"ndl"
],
"author": "Neo4j Inc.",
"homepage": "https://www.neo4j.design",
"license": "GPL-3.0",
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
"types": "./lib/types/index.d.ts",
"exports": {
"./next": {
"types": "./lib/types/next/index.d.ts",
"require": "./lib/cjs/next/index.js",
"import": "./lib/esm/next/index.js"
},
"./icons": {
"types": "./lib/types/icons/index.d.ts",
"require": "./lib/cjs/icons/index.js",
"import": "./lib/esm/icons/index.js"
},
"./nvl": {
"types": "./lib/types/nvl/index.d.ts",
"require": "./lib/cjs/nvl/index.js",
"import": "./lib/esm/nvl/index.js"
},
".": {
"types": "./lib/types/index.d.ts",
"require": "./lib/cjs/index.js",
"import": "./lib/esm/index.js"
}
},
"directories": {
"lib": "lib",
"test": "__tests__"
},
"files": [
"lib",
"icons"
],
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@axe-core/playwright": "4.9.0",
"@playwright/experimental-ct-react": "1.45.0",
"@playwright/test": "1.45.0",
"@storybook/react-vite": "9.0.11",
"@svgr/cli": "6.5.1",
"@testing-library/jest-dom": "6.6.3",
"@testing-library/react": "14.3.1",
"@types/react": "18.2.18",
"@types/react-datepicker": "6.2.0",
"@types/react-dom": "18.2.7",
"@types/react-syntax-highlighter": "15.5.13",
"@types/react-table": "7.7.20",
"@types/sinon": "17.0.3",
"@types/tinycolor2": "1.4.6",
"@types/yargs": "17.0.33",
"@vitejs/plugin-react": "4.5.2",
"ajv": "8.17.1",
"chromatic": "6.5.1",
"jsdom": "25.0.1",
"react": "18.2.0",
"react-docgen-typescript": "2.4.0",
"resize-observer-polyfill": "1.5.1",
"sinon": "19.0.2",
"ts-node": "10.9.2",
"typescript": "5.5.4",
"vitest": "2.1.9",
"yargs": "18.0.0"
},
"peerDependencies": {
"@tanstack/react-table": "8.21.3",
"react": ">=16.8.0",
"react-dom": ">=16.8.0",
"@neo4j-ndl/base": "^3.7.23"
},
"dependencies": {
"@dnd-kit/core": "6.1.0",
"@dnd-kit/sortable": "8.0.0",
"@floating-ui/react": "0.26.24",
"@floating-ui/react-dom": "2.1.2",
"@heroicons/react": "2.1.5",
"@neo4j-devtools/word-color": "^0.0.8",
"@neo4j-nvl/base": "0.3.9",
"@neo4j-nvl/interaction-handlers": "0.3.9",
"@neo4j-nvl/react": "0.3.9",
"@uiw/react-color": "2.5.4",
"classnames": "2.5.1",
"date-fns": "4.1.0",
"detect-browser": "5.3.0",
"eyedropper-polyfill": "1.0.2",
"re-resizable": "6.11.2",
"react-aria": "3.35.0",
"react-datepicker": "6.9.0",
"react-dropzone": "14.2.9",
"react-focus-lock": "2.13.6",
"react-select": "5.9.0",
"react-stately": "3.33.0",
"react-syntax-highlighter": "15.5.0",
"react-use": "17.5.1",
"sonner": "1.7.1",
"tinycolor2": "1.6.0",
"usehooks-ts": "3.1.1"
},
"scripts": {
"generate-component": "node ./scripts/component-generator.js",
"docs:generate-json": "pnpm exec ts-node ./scripts/docs/generate-json.ts --mode merge",
"docs:generate-markdown": "pnpm exec ts-node ./scripts/docs/generate-markdown.ts",
"pretest": "pnpm run lint",
"test": "pnpm run test:unit && pnpm run test:playwright",
"test:unit": "pnpm exec vitest --run --typecheck --exclude node_modules",
"test:playwright": "pnpm exec playwright test -c playwright-component-testing.config.ts",
"build": "pnpm run build:esm && pnpm run build:cjs && pnpm run build:types",
"build:esm": "pnpm exec tsc -p tsconfig.esm.json",
"build:cjs": "pnpm exec tsc -p tsconfig.cjs.json",
"watch:esm": "pnpm exec tsc -p tsconfig.esm.json --watch",
"watch:cjs": "pnpm exec tsc -p tsconfig.cjs.json --watch",
"build:types": "pnpm exec tsc -p tsconfig.types.json",
"format": "pnpm exec prettier --write 'src/**/*.{js,jsx,ts,tsx}'",
"lint": "pnpm exec eslint src",
"generate:all": "pnpm run generate:custom-icons && pnpm run generate:hero-icons",
"generate:custom-icons": "pnpm exec svgr --template svgr-template.js --index-template svgr-index-template.js --icon --typescript --no-svgo --replace-attr-values '#535B66=currentColor' --replace-attr-values '#4D5157=currentColor' --svg-props className=ndl-icon-svg --jsx-runtime 'automatic' --out-dir ./src/icons/generated/custom -- ../base/src/icons",
"generate:hero-icons": "pnpm exec ts-node ./scripts/generatedHeroIcons.ts",
"nuke:local": "../../scripts/cc.sh '{yellow ☢️} Nuking react! {yellow ☢️}' && pnpm dlx rimraf@5.0.5 .tsbuildinfo node_modules lib playwright-report test-results playwright/.cache",
"test:all-package-scripts": "pnpm run build && pnpm run generate-component test-component && pnpm run pretest && pnpm run prepare && pnpm run format && pnpm run lint && pnpm run generate:custom-icons && pnpm run nuke:local"
}
}