UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

352 lines (351 loc) 12.5 kB
{ "name": "antd", "version": "6.1.1", "description": "An enterprise-class UI design language and React components implementation", "license": "MIT", "funding": { "type": "opencollective", "url": "https://opencollective.com/ant-design" }, "homepage": "https://ant.design", "repository": { "type": "git", "url": "https://github.com/ant-design/ant-design" }, "bugs": { "url": "https://github.com/ant-design/ant-design/issues" }, "keywords": [ "ant", "component", "components", "design", "framework", "frontend", "react", "react-component", "ui" ], "sideEffects": [ "*.css" ], "main": "lib/index.js", "module": "es/index.js", "unpkg": "dist/antd.min.js", "typings": "es/index.d.ts", "files": [ "BUG_VERSIONS.json", "dist", "es", "lib", "locale" ], "scripts": { "api-collection": "antd-tools run api-collection", "authors": "tsx scripts/generate-authors.ts", "build": "npm run compile && cross-env NODE_OPTIONS='--max-old-space-size=4096' npm run dist", "changelog": "npm run lint:changelog && tsx scripts/print-changelog.ts", "clean": "antd-tools run clean && rimraf es lib coverage locale dist report.html artifacts.zip oss-artifacts.zip", "clean:lockfiles": "rimraf package-lock.json yarn.lock", "precompile": "npm run prestart", "compile": "npm run compileOnly", "compileOnly": "npm run clean && antd-tools run compile", "predeploy": "antd-tools run clean && npm run site && cp CNAME _site && npm run test:site", "deploy": "gh-pages -d _site -b gh-pages -f", "deploy:china-mirror": "git checkout gh-pages && git pull origin gh-pages && git push git@gitee.com:ant-design/ant-design.git gh-pages -f", "predist": "npm run version && npm run token:statistic && npm run token:meta && npm run style", "dist": "antd-tools run dist", "format": "biome format --write .", "install-react-18": "npm i --no-save --legacy-peer-deps react@18 react-dom@18 @testing-library/react@16", "ut-install-react-18": "ut i react@18 react-dom@18 @testing-library/react@16 --save-dev", "prelint": "dumi setup", "lint": "npm run version && npm run tsc && npm run lint:script && npm run lint:biome && npm run lint:md && npm run lint:changelog", "lint:changelog": "tsx scripts/generate-component-changelog.ts", "lint:md": "remark . -f -q", "lint:script": "eslint . --cache", "lint:biome": "biome lint", "lint:style": "tsx scripts/check-cssinjs.tsx", "llms": "npm run llms-semantic && tsx scripts/generate-llms.ts", "llms-semantic": "tsx scripts/generate-llms-semantic.ts", "prepare": "is-ci || husky && dumi setup", "prepublishOnly": "tsx ./scripts/pre-publish.ts", "prettier": "prettier -c --write . --cache", "prettier-import-sort": "npm run prettier -- --plugin=@ianvs/prettier-plugin-sort-imports", "biome": "biome check --write", "pub": "echo 'Please use `npm publish` instead.'", "postpublish": "tsx scripts/post-publish.ts", "presite": "npm run prestart", "site": "dumi build && cp .surgeignore _site && npm run llms", "size-limit": "size-limit", "sort:api-table": "antd-tools run sort-api-table", "sort:package-json": "npx sort-package-json", "style": "tsx scripts/build-style.tsx", "prestart": "npm run version && npm run token:statistic && npm run token:meta && npm run lint:changelog && npm run style", "start": "tsx ./scripts/set-node-options.ts cross-env PORT=8001 dumi dev", "pretest": "npm run version", "test": "jest --config .jest.js --no-cache", "test:all": "sh -e ./scripts/test-all.sh", "test:dekko": "tsx ./tests/dekko/index.test.ts", "test:image": "cross-env MOCK_USE_ID=false jest --config .jest.image.js --no-cache -i -u --forceExit", "test:node": "npm run version && jest --config .jest.node.js --no-cache", "test:package-diff": "antd-tools run package-diff", "test:site": "jest --config .jest.site.js", "test:site-update": "npm run site && npm run test:site -- -u", "test:update": "jest --config .jest.js --no-cache -u", "test:visual-regression": "tsx scripts/visual-regression/build.ts", "test:visual-regression:local": "tsx scripts/visual-regression/local.ts", "token:meta": "tsx scripts/generate-token-meta.ts", "token:statistic": "tsx scripts/collect-token-statistic.ts", "tsc": "tsc --noEmit", "tsc:old": "tsc --noEmit -p tsconfig-old-react.json", "version": "tsx scripts/generate-version.ts" }, "browserslist": [ "defaults" ], "peerDependencies": { "react": ">=18.0.0", "react-dom": ">=18.0.0" }, "dependencies": { "@ant-design/colors": "^8.0.0", "@ant-design/cssinjs": "^2.0.1", "@ant-design/cssinjs-utils": "^2.0.2", "@ant-design/fast-color": "^3.0.0", "@ant-design/icons": "^6.1.0", "@ant-design/react-slick": "~2.0.0", "@babel/runtime": "^7.28.4", "@rc-component/cascader": "~1.9.0", "@rc-component/checkbox": "~1.0.1", "@rc-component/collapse": "~1.1.2", "@rc-component/color-picker": "~3.0.3", "@rc-component/dialog": "~1.5.1", "@rc-component/drawer": "~1.3.0", "@rc-component/dropdown": "~1.0.2", "@rc-component/form": "~1.5.0", "@rc-component/image": "~1.5.3", "@rc-component/input": "~1.1.2", "@rc-component/input-number": "~1.6.2", "@rc-component/mentions": "~1.6.0", "@rc-component/menu": "~1.2.0", "@rc-component/motion": "~1.1.6", "@rc-component/mutate-observer": "^2.0.1", "@rc-component/notification": "~1.2.0", "@rc-component/pagination": "~1.2.0", "@rc-component/picker": "~1.9.0", "@rc-component/progress": "~1.0.2", "@rc-component/qrcode": "~1.1.1", "@rc-component/rate": "~1.0.1", "@rc-component/resize-observer": "^1.0.1", "@rc-component/segmented": "~1.2.3", "@rc-component/select": "~1.3.5", "@rc-component/slider": "~1.0.1", "@rc-component/steps": "~1.2.2", "@rc-component/switch": "~1.0.3", "@rc-component/table": "~1.9.0", "@rc-component/tabs": "~1.7.0", "@rc-component/textarea": "~1.1.2", "@rc-component/tooltip": "~1.4.0", "@rc-component/tour": "~2.2.1", "@rc-component/tree": "~1.1.0", "@rc-component/tree-select": "~1.4.0", "@rc-component/trigger": "^3.7.1", "@rc-component/upload": "~1.1.0", "@rc-component/util": "^1.6.0", "clsx": "^2.1.1", "dayjs": "^1.11.11", "scroll-into-view-if-needed": "^3.1.0", "throttle-debounce": "^5.0.2" }, "devDependencies": { "@ant-design/compatible": "^5.1.4", "@ant-design/happy-work-theme": "^2.0.0", "@ant-design/tools": "^19.1.0", "@ant-design/x": "^1.6.1", "@antfu/eslint-config": "^6.6.1", "@biomejs/biome": "^2.3.8", "@blazediff/core": "^1.7.0", "@codecov/webpack-plugin": "^1.9.1", "@codesandbox/sandpack-react": "^2.20.0", "@dnd-kit/core": "^6.3.1", "@dnd-kit/modifiers": "^9.0.0", "@dnd-kit/sortable": "^10.0.0", "@dnd-kit/utilities": "^3.2.2", "@emotion/css": "^11.13.5", "@emotion/react": "^11.14.0", "@emotion/server": "^11.11.0", "@eslint-react/eslint-plugin": "^2.3.13", "@ianvs/prettier-plugin-sort-imports": "^4.7.0", "@inquirer/prompts": "^8.0.2", "@madccc/duplicate-package-checker-webpack-plugin": "^1.0.0", "@microflash/rehype-figure": "^2.1.4", "@npmcli/run-script": "^10.0.3", "@octokit/rest": "^22.0.1", "@prettier/sync": "^0.6.1", "@qixian.cs/github-contributors-list": "^2.0.2", "@rc-component/virtual-list": "^1.0.2", "@size-limit/file": "^12.0.0", "@stackblitz/sdk": "^1.11.0", "@testing-library/dom": "^10.4.1", "@testing-library/jest-dom": "^6.9.1", "@testing-library/react": "^16.3.0", "@testing-library/user-event": "^14.6.1", "@types/adm-zip": "^0.5.7", "@types/ali-oss": "^6.16.13", "@types/cli-progress": "^3.11.6", "@types/css-tree": "^2.3.11", "@types/fs-extra": "^11.0.4", "@types/gtag.js": "^0.0.20", "@types/http-server": "^0.12.4", "@types/isomorphic-fetch": "^0.0.39", "@types/jest": "^30.0.0", "@types/jest-axe": "^3.5.9", "@types/jest-environment-puppeteer": "^5.0.6", "@types/jest-image-snapshot": "^6.4.0", "@types/jquery": "^3.5.33", "@types/jsdom": "^27.0.0", "@types/lodash": "^4.17.21", "@types/minimist": "^1.2.5", "@types/node": "^25.0.1", "@types/nprogress": "^0.2.3", "@types/pngjs": "^6.0.5", "@types/prismjs": "^1.26.5", "@types/progress": "^2.0.7", "@types/react": "^19.2.7", "@types/react-dom": "^19.2.3", "@types/react-highlight-words": "^0.20.0", "@types/react-resizable": "^3.0.8", "@types/semver": "^7.7.1", "@types/spinnies": "^0.5.3", "@types/tar": "^6.1.13", "@types/throttle-debounce": "^5.0.2", "@types/warning": "^3.0.3", "adm-zip": "^0.5.16", "ajv": "^8.17.1", "ali-oss": "^6.23.0", "antd-img-crop": "^4.27.0", "antd-style": "4.0.0-alpha.1", "antd-token-previewer": "^3.0.0", "axios": "^1.13.2", "chalk": "^5.6.2", "cheerio": "^1.1.2", "circular-dependency-plugin": "^5.2.2", "cli-progress": "^3.12.0", "cross-env": "^10.1.0", "css-tree": "^3.1.0", "csstree-validator": "^4.0.1", "cypress-image-diff-html-report": "2.2.0", "dekko": "^0.2.1", "dotenv": "^17.2.3", "dumi": "~2.4.21", "dumi-plugin-color-chunk": "^2.1.0", "env-paths": "^3.0.0", "eslint": "^9.39.1", "eslint-plugin-compat": "^6.0.2", "eslint-plugin-jest": "^29.2.1", "eslint-plugin-jsx-a11y": "^6.10.2", "eslint-plugin-react-hooks": "^7.0.1", "eslint-plugin-react-refresh": "^0.4.24", "fast-glob": "^3.3.3", "father": "4.6.9", "fs-extra": "^11.3.2", "gh-pages": "^6.3.0", "github-slugger": "^2.0.0", "glob": "^13.0.0", "hast-util-to-string": "^3.0.1", "html2sketch": "^1.0.2", "http-server": "^14.1.1", "husky": "^9.1.7", "identity-obj-proxy": "^3.0.0", "immer": "^11.0.1", "is-ci": "^4.1.0", "isomorphic-fetch": "^3.0.0", "jest": "^30.2.0", "jest-axe": "^10.0.0", "jest-canvas-mock": "^2.5.2", "jest-environment-jsdom": "^30.2.0", "jest-environment-node": "^30.2.0", "jest-image-snapshot": "^6.5.1", "jest-puppeteer": "^11.0.0", "jquery": "^3.7.1", "jsdom": "27.0.0", "jsonml-to-react-element": "^1.1.11", "jsonml.js": "^0.1.0", "lint-staged": "^16.2.7", "lodash": "^4.17.21", "lunar-typescript": "^1.8.6", "lz-string": "^1.5.0", "mermaid": "^11.12.2", "minimist": "^1.2.8", "mockdate": "^3.0.5", "node-fetch": "^3.3.2", "node-notifier": "^10.0.1", "open": "^11.0.0", "ora": "^9.0.0", "p-all": "^5.0.1", "package-manager-detector": "^1.6.0", "pngjs": "^7.0.0", "portfinder": "^1.0.38", "prettier": "^3.7.4", "pretty-format": "^30.2.0", "prismjs": "^1.30.0", "puppeteer": "^24.33.0", "rc-footer": "^0.6.8", "rc-tween-one": "^3.0.6", "react": "^19.2.3", "react-countup": "^6.5.3", "react-dom": "^19.2.3", "react-draggable": "^4.5.0", "react-fast-marquee": "^1.6.5", "react-highlight-words": "^0.21.0", "react-icons": "^5.5.0", "react-infinite-scroll-component": "^6.1.1", "react-resizable": "^3.0.5", "react-router-dom": "^7.10.1", "react-sticky-box": "^2.0.5", "rehype-stringify": "^10.0.1", "remark": "^15.0.1", "remark-cli": "^12.0.1", "remark-gfm": "^4.0.1", "remark-lint": "^10.0.1", "remark-lint-no-undefined-references": "^5.0.2", "remark-preset-lint-recommended": "^7.0.1", "remark-rehype": "^11.1.2", "rimraf": "^6.1.2", "runes2": "^1.1.4", "semver": "^7.7.3", "sharp": "^0.34.5", "simple-git": "^3.30.0", "size-limit": "^12.0.0", "spinnies": "^0.5.1", "swr": "^2.3.7", "tar": "^7.5.2", "tsx": "^4.21.0", "typedoc": "^0.28.15", "typescript": "~5.9.3", "vanilla-jsoneditor": "^3.11.0", "vanilla-tilt": "^1.8.1", "webpack": "^5.103.0", "webpack-bundle-analyzer": "^5.1.0", "xhr-mock": "^2.5.1" }, "publishConfig": { "registry": "https://registry.npmjs.org/" }, "size-limit": [ { "path": "./dist/antd.min.js", "limit": "523 KiB", "gzip": true }, { "path": "./dist/antd-with-locales.min.js", "limit": "616 KiB", "gzip": true } ], "title": "Ant Design", "tnpm": { "mode": "npm" } }