{"_id":"@rc-component/input","_rev":"4537533","name":"@rc-component/input","description":"React input component","dist-tags":{"latest":"1.3.0"},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"time":{"modified":"2026-04-09T15:01:36.000Z","created":"2025-01-27T10:38:58.949Z","1.3.0":"2026-03-20T15:30:50.031Z","1.2.1":"2026-03-17T10:03:12.574Z","1.2.0":"2026-03-10T03:35:57.348Z","1.1.2":"2025-11-10T09:17:29.268Z","1.1.1":"2025-09-10T07:36:53.265Z","1.1.0":"2025-07-15T03:24:57.558Z","1.0.1":"2025-02-26T09:15:21.192Z","1.0.0":"2025-01-27T10:38:58.949Z"},"users":{},"repository":{"type":"git","url":"git+ssh://git@github.com/react-component/input.git"},"versions":{"1.3.0":{"name":"@rc-component/input","version":"1.3.0","description":"React input component","keywords":["react","react-component","react-input","input","antd","ant-design"],"main":"./lib/index","module":"./es/index","homepage":"https://github.com/react-component/input","repository":{"type":"git","url":"git+ssh://git@github.com/react-component/input.git"},"bugs":{"url":"http://github.com/react-component/input/issues"},"license":"MIT","scripts":{"start":"dumi dev","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","compile":"father build && lessc assets/index.less assets/index.css","gh-pages":"GH_PAGES=1 npm run docs:build && npm run docs:deploy","prepublishOnly":"npm run compile && rc-np","postpublish":"npm run gh-pages","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","pretty-quick":"pretty-quick","lint-staged":"lint-staged","test":"rc-test","coverage":"rc-test --coverage","prepare":"husky install"},"dependencies":{"@rc-component/resize-observer":"^1.1.1","@rc-component/util":"^1.4.0","clsx":"^2.1.1"},"devDependencies":{"@rc-component/father-plugin":"^2.0.3","@rc-component/np":"^1.0.3","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.0.0-beta","@types/jest":"^30.0.0","@types/node":"^25.0.3","@types/react":"^19.0.0","@types/react-dom":"^19.0.1","@umijs/fabric":"^4.0.0","dumi":"^2.1.14","eslint":"^8.0.0","father":"^4.3.7","gh-pages":"^6.2.0","husky":"^9.1.7","less":"^4.2.1","lint-staged":"^16.2.0","prettier":"^3.4.2","pretty-quick":"^4.0.0","rc-test":"^7.0.15","react":"^18.0.0","react-dom":"^18.0.0","typescript":"^5.7.2"},"peerDependencies":{"react":">=16.0.0","react-dom":">=16.0.0"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"lint-staged":{"**/*.{js,jsx,tsx,ts,md,json}":["prettier --write"]},"cnpm":{"mode":"npm"},"tnpm":{"mode":"npm"},"gitHead":"841fcc0c08c9cb52810a1968eed06e0e3a2fde26","types":"./lib/index.d.ts","_id":"@rc-component/input@1.3.0","_nodeVersion":"22.15.1","_npmVersion":"11.7.0","dist":{"shasum":"a8c113000bbc39089cf75337bec68120115b9e05","size":18031,"noattachment":false,"key":"/@rc-component/input/-/@rc-component/input-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/input/download/@rc-component/input-1.3.0.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/input_1.3.0_1774020649876_0.6662041297823549"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-03-20T15:30:50.031Z","publish_time":1774020650031,"_source_registry_name":"default","_cnpm_publish_time":1774020650031},"1.2.1":{"name":"@rc-component/input","version":"1.2.1","description":"React input component","keywords":["react","react-component","react-input","input","antd","ant-design"],"main":"./lib/index","module":"./es/index","homepage":"https://github.com/react-component/input","repository":{"type":"git","url":"git+ssh://git@github.com/react-component/input.git"},"bugs":{"url":"http://github.com/react-component/input/issues"},"license":"MIT","scripts":{"start":"dumi dev","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","compile":"father build && lessc assets/index.less assets/index.css","gh-pages":"GH_PAGES=1 npm run docs:build && npm run docs:deploy","prepublishOnly":"npm run compile && rc-np","postpublish":"npm run gh-pages","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","pretty-quick":"pretty-quick","lint-staged":"lint-staged","test":"rc-test","coverage":"rc-test --coverage","prepare":"husky install"},"dependencies":{"@rc-component/util":"^1.4.0","clsx":"^2.1.1"},"devDependencies":{"@rc-component/father-plugin":"^2.0.3","@rc-component/np":"^1.0.3","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.0.0-beta","@types/jest":"^30.0.0","@types/node":"^25.0.3","@types/react":"^19.0.0","@types/react-dom":"^19.0.1","@umijs/fabric":"^4.0.0","dumi":"^2.1.14","eslint":"^8.0.0","father":"^4.3.7","gh-pages":"^6.2.0","husky":"^9.1.7","less":"^4.2.1","lint-staged":"^16.2.0","prettier":"^3.4.2","pretty-quick":"^4.0.0","rc-test":"^7.0.15","react":"^18.0.0","react-dom":"^18.0.0","typescript":"^5.7.2"},"peerDependencies":{"react":">=16.0.0","react-dom":">=16.0.0"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"lint-staged":{"**/*.{js,jsx,tsx,ts,md,json}":["prettier --write"]},"cnpm":{"mode":"npm"},"tnpm":{"mode":"npm"},"gitHead":"c1e967619b7843b59b1ed871b99ab72ed67a9083","types":"./lib/index.d.ts","_id":"@rc-component/input@1.2.1","_nodeVersion":"22.15.1","_npmVersion":"11.7.0","dist":{"shasum":"1ddd2ac2003530c64aed362291c591a7034a044d","size":11390,"noattachment":false,"key":"/@rc-component/input/-/@rc-component/input-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/input/download/@rc-component/input-1.2.1.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/input_1.2.1_1773741792432_0.2505705053964977"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-03-17T10:03:12.574Z","publish_time":1773741792574,"_source_registry_name":"default","_cnpm_publish_time":1773741792574},"1.2.0":{"name":"@rc-component/input","version":"1.2.0","description":"React input component","keywords":["react","react-component","react-input","input","antd","ant-design"],"main":"./lib/index","module":"./es/index","homepage":"https://github.com/react-component/input","repository":{"type":"git","url":"git+ssh://git@github.com/react-component/input.git"},"bugs":{"url":"http://github.com/react-component/input/issues"},"license":"MIT","scripts":{"start":"dumi dev","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","compile":"father build && lessc assets/index.less assets/index.css","gh-pages":"GH_PAGES=1 npm run docs:build && npm run docs:deploy","prepublishOnly":"npm run compile && rc-np","postpublish":"npm run gh-pages","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","pretty-quick":"pretty-quick","lint-staged":"lint-staged","test":"rc-test","coverage":"rc-test --coverage","prepare":"husky install"},"dependencies":{"@rc-component/util":"^1.4.0","clsx":"^2.1.1"},"devDependencies":{"@rc-component/father-plugin":"^2.0.3","@rc-component/np":"^1.0.3","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.0.0-beta","@types/jest":"^30.0.0","@types/node":"^25.0.3","@types/react":"^19.0.0","@types/react-dom":"^19.0.1","@umijs/fabric":"^4.0.0","dumi":"^2.1.14","eslint":"^8.0.0","father":"^4.3.7","gh-pages":"^6.2.0","husky":"^9.1.7","less":"^4.2.1","lint-staged":"^16.2.0","prettier":"^3.4.2","pretty-quick":"^4.0.0","rc-test":"^7.0.15","react":"^18.0.0","react-dom":"^18.0.0","typescript":"^5.7.2"},"peerDependencies":{"react":">=16.0.0","react-dom":">=16.0.0"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"lint-staged":{"**/*.{js,jsx,tsx,ts,md,json}":["prettier --write"]},"cnpm":{"mode":"npm"},"tnpm":{"mode":"npm"},"gitHead":"c4b6e724b97c777179dbc602d46996b939e24e49","types":"./lib/index.d.ts","_id":"@rc-component/input@1.2.0","_nodeVersion":"22.15.1","_npmVersion":"11.7.0","dist":{"shasum":"d0205ee56702f1507b90fe249bacb25d54e579c4","size":11365,"noattachment":false,"key":"/@rc-component/input/-/@rc-component/input-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/input/download/@rc-component/input-1.2.0.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/input_1.2.0_1773113757188_0.969750038959136"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-03-10T03:35:57.348Z","publish_time":1773113757348,"_source_registry_name":"default","_cnpm_publish_time":1773113757348},"1.1.2":{"name":"@rc-component/input","version":"1.1.2","description":"React input component","keywords":["react","react-component","react-input","input","antd","ant-design"],"main":"./lib/index","module":"./es/index","homepage":"https://github.com/react-component/input","repository":{"type":"git","url":"git+ssh://git@github.com/react-component/input.git"},"bugs":{"url":"http://github.com/react-component/input/issues"},"license":"MIT","scripts":{"start":"dumi dev","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","compile":"father build && lessc assets/index.less assets/index.css","gh-pages":"GH_PAGES=1 npm run docs:build && npm run docs:deploy","prepublishOnly":"npm run compile && rc-np","postpublish":"npm run gh-pages","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","pretty-quick":"pretty-quick","lint-staged":"lint-staged","test":"rc-test","coverage":"rc-test --coverage","prepare":"husky install"},"dependencies":{"@rc-component/util":"^1.4.0","clsx":"^2.1.1"},"devDependencies":{"@rc-component/father-plugin":"^2.0.3","@rc-component/np":"^1.0.3","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.0.0-beta","@types/jest":"^30.0.0","@types/node":"^24.5.2","@types/react":"^19.0.0","@types/react-dom":"^19.0.1","@umijs/fabric":"^4.0.0","dumi":"^2.1.14","eslint":"^8.0.0","father":"^4.3.7","gh-pages":"^6.2.0","husky":"^9.1.7","less":"^4.2.1","lint-staged":"^16.2.0","prettier":"^3.4.2","pretty-quick":"^4.0.0","rc-test":"^7.0.15","react":"^18.0.0","react-dom":"^18.0.0","typescript":"^5.7.2"},"peerDependencies":{"react":">=16.0.0","react-dom":">=16.0.0"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"lint-staged":{"**/*.{js,jsx,tsx,ts,md,json}":["prettier --write"]},"cnpm":{"mode":"npm"},"tnpm":{"mode":"npm"},"_id":"@rc-component/input@1.1.2","gitHead":"746d7923a221e8fb2d9b15ebb0d32837aef2187a","types":"./lib/index.d.ts","_nodeVersion":"22.15.1","_npmVersion":"10.9.2","dist":{"shasum":"5fdb55741c012a3f8847d7bd24e318ed1d02cc05","size":11356,"noattachment":false,"key":"/@rc-component/input/-/@rc-component/input-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/input/download/@rc-component/input-1.1.2.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/input_1.1.2_1762766249107_0.9205828342745275"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-11-10T09:17:29.268Z","publish_time":1762766249268,"_source_registry_name":"default","_cnpm_publish_time":1762766249268},"1.1.1":{"name":"@rc-component/input","version":"1.1.1","description":"React input component","keywords":["react","react-component","react-input","input","antd","ant-design"],"main":"./lib/index","module":"./es/index","homepage":"https://github.com/react-component/input","repository":{"type":"git","url":"git+ssh://git@github.com/react-component/input.git"},"bugs":{"url":"http://github.com/react-component/input/issues"},"license":"MIT","scripts":{"start":"dumi dev","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","compile":"father build && lessc assets/index.less assets/index.css","gh-pages":"GH_PAGES=1 npm run docs:build && npm run docs:deploy","prepublishOnly":"npm run compile && rc-np","postpublish":"npm run gh-pages","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","pretty-quick":"pretty-quick","lint-staged":"lint-staged","test":"rc-test","coverage":"rc-test --coverage","prepare":"husky install"},"dependencies":{"classnames":"^2.2.1","@rc-component/util":"^1.3.0"},"devDependencies":{"@rc-component/father-plugin":"^2.0.3","@rc-component/np":"^1.0.3","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.0.0-beta","@types/classnames":"^2.2.9","@types/jest":"^29.5.14","@types/react":"^19.0.0","@types/react-dom":"^19.0.1","@umijs/fabric":"^4.0.0","coveralls":"^3.0.6","cross-env":"^7.0.2","dumi":"^2.1.14","eslint":"^8.0.0","father":"^4.3.7","gh-pages":"^6.2.0","husky":"^9.1.7","less":"^4.2.1","lint-staged":"^15.2.11","prettier":"^3.4.2","pretty-quick":"^4.0.0","rc-test":"^7.0.15","react":"^18.0.0","react-dom":"^18.0.0","typescript":"^5.7.2"},"peerDependencies":{"react":">=16.0.0","react-dom":">=16.0.0"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"lint-staged":{"**/*.{js,jsx,tsx,ts,md,json}":["prettier --write"]},"cnpm":{"mode":"npm"},"tnpm":{"mode":"npm"},"_id":"@rc-component/input@1.1.1","gitHead":"ce374c9c14e0a898871a80f638d670a9dd65276d","types":"./lib/index.d.ts","_nodeVersion":"22.15.1","_npmVersion":"10.9.2","dist":{"shasum":"5ebf6be6519602005b343ab531a980306fa9a6e0","size":11545,"noattachment":false,"key":"/@rc-component/input/-/@rc-component/input-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/input/download/@rc-component/input-1.1.1.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/input_1.1.1_1757489813039_0.21319024109253726"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-09-10T07:36:53.265Z","publish_time":1757489813265,"_source_registry_name":"default","_cnpm_publish_time":1757489813265},"1.1.0":{"name":"@rc-component/input","version":"1.1.0","description":"React input component","keywords":["react","react-component","react-input","input","antd","ant-design"],"main":"./lib/index","module":"./es/index","homepage":"https://github.com/react-component/input","repository":{"type":"git","url":"git+ssh://git@github.com/react-component/input.git"},"bugs":{"url":"http://github.com/react-component/input/issues"},"license":"MIT","scripts":{"start":"dumi dev","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","compile":"father build && lessc assets/index.less assets/index.css","gh-pages":"GH_PAGES=1 npm run docs:build && npm run docs:deploy","prepublishOnly":"npm run compile && rc-np","postpublish":"npm run gh-pages","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","pretty-quick":"pretty-quick","lint-staged":"lint-staged","test":"rc-test","coverage":"rc-test --coverage","prepare":"husky install"},"dependencies":{"classnames":"^2.2.1","@rc-component/util":"^1.2.0"},"devDependencies":{"@rc-component/father-plugin":"^2.0.3","@rc-component/np":"^1.0.3","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.0.0-beta","@types/classnames":"^2.2.9","@types/jest":"^29.5.14","@types/react":"^19.0.0","@types/react-dom":"^19.0.1","@umijs/fabric":"^4.0.0","coveralls":"^3.0.6","cross-env":"^7.0.2","dumi":"^2.1.14","eslint":"^8.0.0","father":"^4.3.7","gh-pages":"^6.2.0","husky":"^9.1.7","less":"^4.2.1","lint-staged":"^15.2.11","prettier":"^3.4.2","pretty-quick":"^4.0.0","rc-test":"^7.0.15","react":"^18.0.0","react-dom":"^18.0.0","typescript":"^5.7.2"},"peerDependencies":{"react":">=16.0.0","react-dom":">=16.0.0"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"lint-staged":{"**/*.{js,jsx,tsx,ts,md,json}":["prettier --write"]},"cnpm":{"mode":"npm"},"tnpm":{"mode":"npm"},"_id":"@rc-component/input@1.1.0","gitHead":"a9651cfc2b779eccb5901e6c9bac75278a34410f","types":"./lib/index.d.ts","_nodeVersion":"22.15.1","_npmVersion":"10.9.2","dist":{"shasum":"25c87f65b2a8c212208a9e588d5f4c147ef5ccc1","size":11550,"noattachment":false,"key":"/@rc-component/input/-/@rc-component/input-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/input/download/@rc-component/input-1.1.0.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/input_1.1.0_1752549897398_0.28014653602319584"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-07-15T03:24:57.558Z","publish_time":1752549897558,"_source_registry_name":"default","_cnpm_publish_time":1752549897558},"1.0.1":{"name":"@rc-component/input","version":"1.0.1","description":"React input component","keywords":["react","react-component","react-input","input","antd","ant-design"],"main":"./lib/index","module":"./es/index","homepage":"https://github.com/react-component/input","repository":{"type":"git","url":"git+ssh://git@github.com/react-component/input.git"},"bugs":{"url":"http://github.com/react-component/input/issues"},"license":"MIT","scripts":{"start":"dumi dev","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","compile":"father build && lessc assets/index.less assets/index.css","gh-pages":"GH_PAGES=1 npm run docs:build && npm run docs:deploy","prepublishOnly":"npm run compile && rc-np","postpublish":"npm run gh-pages","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","pretty-quick":"pretty-quick","lint-staged":"lint-staged","test":"rc-test","coverage":"rc-test --coverage","prepare":"husky install"},"dependencies":{"classnames":"^2.2.1","@rc-component/util":"^1.2.0"},"devDependencies":{"@rc-component/father-plugin":"^2.0.3","@rc-component/np":"^1.0.3","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.0.0-beta","@types/classnames":"^2.2.9","@types/jest":"^29.5.14","@types/react":"^19.0.0","@types/react-dom":"^19.0.1","@umijs/fabric":"^4.0.0","coveralls":"^3.0.6","cross-env":"^7.0.2","dumi":"^2.1.14","eslint":"^8.0.0","father":"^4.3.7","gh-pages":"^6.2.0","husky":"^9.1.7","less":"^4.2.1","lint-staged":"^15.2.11","prettier":"^3.4.2","pretty-quick":"^4.0.0","rc-test":"^7.0.15","react":"^18.0.0","react-dom":"^18.0.0","typescript":"^5.7.2"},"peerDependencies":{"react":">=16.0.0","react-dom":">=16.0.0"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"lint-staged":{"**/*.{js,jsx,tsx,ts,md,json}":["prettier --write"]},"cnpm":{"mode":"npm"},"tnpm":{"mode":"npm"},"_id":"@rc-component/input@1.0.1","gitHead":"fd1275a9567f801d1cc2ebade77723bdd52c0451","types":"./lib/index.d.ts","_nodeVersion":"22.8.0","_npmVersion":"10.8.3","dist":{"shasum":"efe2ac0ee902d3aadb838d145f84a81ae2e86ace","size":11531,"noattachment":false,"key":"/@rc-component/input/-/@rc-component/input-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/input/download/@rc-component/input-1.0.1.tgz"},"_npmUser":{"name":"afc163","email":"afc163@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/input_1.0.1_1740561320959_0.030333723600007412"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-02-26T09:15:21.192Z","publish_time":1740561321192,"_source_registry_name":"default","_cnpm_publish_time":1740561321192},"1.0.0":{"name":"@rc-component/input","version":"1.0.0","description":"React input component","keywords":["react","react-component","react-input","input","antd","ant-design"],"main":"./lib/index","module":"./es/index","homepage":"https://github.com/react-component/input","repository":{"type":"git","url":"git+ssh://git@github.com/react-component/input.git"},"bugs":{"url":"http://github.com/react-component/input/issues"},"license":"MIT","scripts":{"start":"dumi dev","docs:build":"dumi build","docs:deploy":"gh-pages -d .doc","compile":"father build && lessc assets/index.less assets/index.css","gh-pages":"GH_PAGES=1 npm run docs:build && npm run docs:deploy","prepublishOnly":"npm run compile && rc-np","postpublish":"npm run gh-pages","lint":"eslint src/ --ext .ts,.tsx,.jsx,.js,.md","prettier":"prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"","pretty-quick":"pretty-quick","lint-staged":"lint-staged","test":"rc-test","coverage":"rc-test --coverage","prepare":"husky install"},"dependencies":{"classnames":"^2.2.1","@rc-component/util":"^1.2.0"},"devDependencies":{"@rc-component/father-plugin":"^2.0.3","@rc-component/np":"^1.0.3","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.0.1","@testing-library/user-event":"^14.0.0-beta","@types/classnames":"^2.2.9","@types/jest":"^29.5.14","@types/react":"^19.0.0","@types/react-dom":"^19.0.1","@umijs/fabric":"^4.0.0","coveralls":"^3.0.6","cross-env":"^7.0.2","dumi":"^2.1.14","eslint":"^8.0.0","father":"^4.3.7","gh-pages":"^6.2.0","husky":"^9.1.7","less":"^4.2.1","lint-staged":"^15.2.11","prettier":"^3.4.2","pretty-quick":"^4.0.0","rc-test":"^7.0.15","react":"^18.0.0","react-dom":"^18.0.0","typescript":"^5.7.2"},"peerDependencies":{"react":">=16.0.0","react-dom":">=16.0.0"},"husky":{"hooks":{"pre-commit":"pretty-quick --staged"}},"lint-staged":{"**/*.{js,jsx,tsx,ts,md,json}":["prettier --write"]},"cnpm":{"mode":"npm"},"tnpm":{"mode":"npm"},"_id":"@rc-component/input@1.0.0","gitHead":"b585df17aaab3c120ac6480bcb1efb2ca58b4c37","types":"./lib/index.d.ts","_nodeVersion":"22.5.1","_npmVersion":"10.8.2","dist":{"shasum":"ba29d319fb8be95b5b47514ebfee92cc61d483eb","size":11462,"noattachment":false,"key":"/@rc-component/input/-/@rc-component/input-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@rc-component/input/download/@rc-component/input-1.0.0.tgz"},"_npmUser":{"name":"zombiej","email":"smith3816@gmail.com"},"directories":{},"maintainers":[{"name":"afc163","email":""},{"name":"chenshuai2144","email":""},{"name":"madccc","email":""},{"name":"peachscript","email":""},{"name":"zombiej","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/input_1.0.0_1737974338775_0.34355344937462107"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-27T10:38:58.949Z","publish_time":1737974338949,"_source_registry_name":"default","_cnpm_publish_time":1737974338949}},"readme":"# @rc-component/input ⌨️\n\n[![NPM version][npm-image]][npm-url]\n[![npm download][download-image]][download-url]\n[![build status][github-actions-image]][github-actions-url]\n[![Codecov][codecov-image]][codecov-url]\n[![bundle size][bundlephobia-image]][bundlephobia-url]\n[![dumi][dumi-image]][dumi-url]\n\n[npm-image]: http://img.shields.io/npm/v/@rc-component/input.svg?style=flat-square\n[npm-url]: http://npmjs.org/package/@rc-component/input\n[travis-image]: https://img.shields.io/travis/react-component/input/master?style=flat-square\n[travis-url]: https://travis-ci.com/react-component/input\n[github-actions-image]: https://github.com/react-component/input/actions/workflows/main.yml/badge.svg\n[github-actions-url]: https://github.com/react-component/input/actions/workflows/main.yml\n[codecov-image]: https://img.shields.io/codecov/c/github/react-component/input/master.svg?style=flat-square\n[codecov-url]: https://app.codecov.io/gh/react-component/input\n[david-url]: https://david-dm.org/react-component/input\n[david-image]: https://david-dm.org/react-component/input/status.svg?style=flat-square\n[david-dev-url]: https://david-dm.org/react-component/input?type=dev\n[david-dev-image]: https://david-dm.org/react-component/input/dev-status.svg?style=flat-square\n[download-image]: https://img.shields.io/npm/dm/@rc-component/input.svg?style=flat-square\n[download-url]: https://npmjs.org/package/@rc-component/input\n[bundlephobia-url]: https://bundlephobia.com/package/@rc-component/input\n[bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/@rc-component/input?style=flat-square\n[dumi-url]: https://github.com/umijs/dumi\n[dumi-image]: https://img.shields.io/badge/docs%20by-dumi-blue?style=flat-square\n\n## Install\n\n[![@rc-component/input](https://nodei.co/npm/@rc-component/input.png)](https://npmjs.org/package/@rc-component/input)\n\n## Usage\n\n```js\nimport Input from '@rc-component/input';\nimport { render } from 'react-dom';\n\nrender(<Input placeholder=\"input\" allowClear />, mountNode);\n```\n\n```js\nimport Input from '@rc-component/input';\nimport { render } from 'react-dom';\n\nrender(<Input.TextArea autoSize showCount />, mountNode);\n```\n\n## API\n\n| Property              | Type                                                                                              | Default  | Description                                                                                                                                                         |\n| --------------------- | ------------------------------------------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| prefixCls             | string                                                                                            | rc-input |                                                                                                                                                                     |\n| className             | string                                                                                            | ''       | additional class name of input                                                                                                                                      |\n| style                 | React.CSSProperties                                                                               |          | style properties of input                                                                                                                                           |\n| affixWrapperClassName | string                                                                                            | -        | className with '@rc-component/input-affix-wrapper'                                                                                                                  |\n| groupClassName        | string                                                                                            | -        | className with '@rc-component/input-group-wrapper'                                                                                                                  |\n| wrapperClassName      | string                                                                                            | -        | className with '@rc-component/input-wrapper'                                                                                                                        |\n| addonAfter            | ReactNode                                                                                         | -        | The label text displayed after (on the right side of) the input field                                                                                               |\n| addonBefore           | ReactNode                                                                                         | -        | The label text displayed before (on the left side of) the input field                                                                                               |\n| allowClear            | boolean &#124; { clearIcon: ReactNode }                                                           | false    | If allow to remove input content with clear icon                                                                                                                    |\n| bordered              | boolean                                                                                           | true     | Whether has border style                                                                                                                                            |\n| defaultValue          | string                                                                                            | -        | The initial input content                                                                                                                                           |\n| disabled              | boolean                                                                                           | false    | Whether the input is disabled                                                                                                                                       |\n| id                    | string                                                                                            | -        | The ID for input                                                                                                                                                    |\n| maxLength             | number                                                                                            | -        | The max length                                                                                                                                                      |\n| showCount             | boolean &#124; { formatter: ({ value: string, count: number, maxLength?: number }) => ReactNode } | false    | Whether show text count                                                                                                                                             |\n| prefix                | ReactNode                                                                                         | -        | The prefix icon for the Input                                                                                                                                       |\n| suffix                | ReactNode                                                                                         | -        | The suffix icon for the Input                                                                                                                                       |\n| type                  | string                                                                                            | `text`   | The type of input, see: [MDN](https://developer.mozilla.org/docs/Web/HTML/Element/input#Form_%3Cinput%3E_types)( use `Input.TextArea` instead of `type=\"textarea\"`) |\n| value                 | string                                                                                            | -        | The input content value                                                                                                                                             |\n| onChange              | function(e)                                                                                       | -        | Callback when user input                                                                                                                                            |\n| onPressEnter          | function(e)                                                                                       | -        | The callback function that is triggered when Enter key is pressed                                                                                                   |\n\n## TextArea\n\n`rc-textarea` has been migrated into `@rc-component/input`. Use `Input.TextArea` or the named `TextArea` export for all textarea-related features.\n\n```js\nimport Input, { TextArea } from '@rc-component/input';\n\n<Input.TextArea allowClear autoSize />;\n<TextArea showCount maxLength={100} />;\n```\n\n| Property     | Type                        | Default     | Description                                                                                    |\n| ------------ | --------------------------- | ----------- | ---------------------------------------------------------------------------------------------- |\n| prefixCls    | string                      | rc-textarea |                                                                                                |\n| className    | string                      | ''          | additional class name of textarea                                                              |\n| style        | React.CSSProperties         | -           | style properties of textarea                                                                   |\n| autoSize     | boolean \\| object           | -           | Height autosize feature, can be set to `true\\|false` or an object `{ minRows: 2, maxRows: 6 }` |\n| allowClear   | boolean \\| { clearIcon }    | false       | If allow to remove textarea content with clear icon                                            |\n| showCount    | boolean \\| { formatter }    | false       | Whether show text count                                                                        |\n| count        | CountConfig                 | -           | Custom count strategy / max / exceed formatter                                                 |\n| onPressEnter | function(e)                 | -           | The callback function that is triggered when Enter key is pressed                              |\n| onResize     | function({ width, height }) | -           | The callback function that is triggered when resize                                            |\n\n## inputRef\n\n```tsx | pure\nconst inputRef = useRef(null);\n\nuseEffect(() => {\n  inputRef.current.focus(); // the input will get focus\n  inputRef.current.blur(); // the input will lose focus\n  console.log(inputRef.current.input); // The origin input element\n}, []);\n// ....\n<Input ref={inputRef} />;\n```\n\n| Property | Type                                    | Description                       |\n| -------- | --------------------------------------- | --------------------------------- |\n| focus    | `(options?: InputFocusOptions) => void` | The input get focus when called   |\n| blur     | `() => void`                            | The input loses focus when called |\n| input    | `HTMLInputElement \\| null`              | The origin input element          |\n\n## textareaRef\n\n```tsx | pure\nconst textareaRef = useRef(null);\n\nuseEffect(() => {\n  textareaRef.current.focus();\n  textareaRef.current.blur();\n  console.log(textareaRef.current.resizableTextArea);\n}, []);\n\n<Input.TextArea ref={textareaRef} />;\n```\n\n| Property          | Type                   | Description                              |\n| ----------------- | ---------------------- | ---------------------------------------- |\n| focus             | `() => void`           | The textarea get focus when called       |\n| blur              | `() => void`           | The textarea loses focus when called     |\n| resizableTextArea | `ResizableTextAreaRef` | Wrapped resizable textarea instance      |\n| nativeElement     | `HTMLElement \\| null`  | The outer holder element or textarea DOM |\n\n## Development\n\n```\nnpm install\nnpm start\n```\n\n## License\n\n@rc-component/input is released under the MIT license.\n","_attachments":{},"homepage":"https://github.com/react-component/input","bugs":{"url":"http://github.com/react-component/input/issues"},"license":"MIT"}