{"bugs":{"url":"https://github.com/rsuite/rsuite-utils/issues"},"dist":{"shasum":"93f66a839098ebb73136fd490ae6b7ec3d1d93d3","tarball":"https://registry.npmjs.org/rsuite-utils/-/rsuite-utils-2.0.0-alpha.0.tgz","fileCount":74,"integrity":"sha512-/qqGxMHl5zolLgxDjKTwc6oTWD7SxwiNPr43hKlGydo1AnR2o6UGHkup7vLuL5YungK7Id+qjRWvzPHB2zGHmA==","signatures":[{"sig":"MEQCIDCb0twVnCBRgweuuWt0pygRMCCVhIJ5aI8GRM+rk/mpAiATQzA8pobG26EHyNQTsVRibmvbZ8DP56rPMl6iQH5A6w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":189649,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcsC/1CRA9TVsSAnZWagAAiOEP/A8TbS5LCBB1zJalv3BF\nrQINWwcrA9zUeRxd/2N5G6vyAUE6MPOmm/mCtFlG7Ywk73NTgNb5736gQNzh\n1nLtIxCVioTaKdUl/b2jt+kj3yRlo70zdyO1lR0XLbsk3AybEaXGPqaQi0FZ\nRKSeOFfTR7dViWKKGNRmcSRF1GR9sy39Mrq6Q2meSnhP/pofHYvH+R/Y5wx5\nRA5qO77AB2/p58bV0NpnQcbWzwgDoSPWgVFFvasNoJ2qJz40p9jqZFdztYo8\nH3tJO4P6dcC3kOeK4x0eiP6u1CtU3DuHsERaQ8FcilLErJ9sLo24SlxTukSG\nyj1AOnJy8lGruDbJuMoazhHG1hmzNJ02wvjeFB9vgYYSBnC0u1FnKTSmQrlS\n1FumgLyXaNMsz2/dndOD3u8rjh9XvuJMJy0u6SULeW+pXscPVecVwzNifQL5\nq6W3mdAU0n1yzJlXw/NBrmkiUrXQbE2H0UExTxjOgAPbzY86Lj1b2Ds8jN9r\nq4YjH6Z0IDIe/qktpRAEIYy5ysMrwKlWmJ88XWb8XocQtA0+L4D688yA/+W9\nm5fule/fA07UrObIibcg4PcZyZdEu2fZX9+nvzkQVeKBDekf9SS9iXJCnzQ+\nV/3MGKtyHcqjh+RFe+0I6uVO6isXp33p7vctlUlmgPBNjmOkbX22uJEBxwYK\nkM06\r\n=PJjt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","name":"rsuite-utils","author":{"name":"Simon Guo","email":"simonguo.2009@gmail.com"},"readme":"# rsuite-utils\n\nUtilities for creating rsuite components\n\n用于快速创建 RSUITE 组件，提供的常用工具\n\n支持 react 0.14.9, >= 15.3.0, >= 16.0.0\n\n## Animation 动画\n\n### `<Transition>` 自定义过渡效果\n\n```js\nimport Transition from 'rsuite-utils/lib/Animation/Transition';\n```\n\n| 属性名称          | 类型 `(默认值)`                      | 描述                       |\n| ----------------- | ------------------------------------ | -------------------------- |\n| in                | boolean                              | 进入                       |\n| unmountOnExit     | boolean                              | 在退出时卸载组件           |\n| transitionAppear  | boolean                              | 初始显示的时候开启过渡效果 |\n| timeout           | number `(1000)`                      | 动画过渡延迟时间           |\n| exitedClassName   | string                               | 退出动画过渡后 className   |\n| exitingClassName  | string                               | 退出动画过渡中 className   |\n| enteredClassName  | string                               | 进入动画过渡后 className   |\n| enteringClassName | string                               | 进入动画过渡中 className   |\n| onEnter           | (node?: null, Element, Text) => void | 显示动画过渡的回调函数     |\n| onEntering        | (node?: null, Element, Text) => void | 显示中动画过渡的回调函数   |\n| onEntered         | (node?: null, Element, Text) => void | 显示后动画过渡的回调函数   |\n| onExit            | (node?: null, Element, Text) => void | 退出前动画过渡的回调函数   |\n| onExiting         | (node?: null, Element, Text) => void | 退出中动画过渡的回调函数   |\n| onExited          | (node?: null, Element, Text) => void | 退出后动画过渡的回调函数   |\n\n### `<Collapse>` 折叠效果\n\n```js\nimport Collapse from 'rsuite-utils/lib/Animation/Collapse';\n```\n\n| 属性名称          | 类型 `(默认值)`                                  | 描述                       |\n| ----------------- | ------------------------------------------------ | -------------------------- |\n| in                | boolean                                          | 进入                       |\n| unmountOnExit     | boolean                                          | 在退出时卸载组件           |\n| transitionAppear  | boolean                                          | 初始显示的时候开启过渡效果 |\n| timeout           | number`(300)`                                    | 动画过渡延迟时间           |\n| exitedClassName   | string `('collapse')`                            | 退出动画过渡后 className   |\n| exitingClassName  | string `('collapsing')`                          | 退出动画过渡中 className   |\n| enteredClassName  | string `('collapse in')`                         | 进入动画过渡后 className   |\n| enteringClassName | string `('collapsing')`                          | 进入动画过渡中 className   |\n| onEnter           | (node?: null, Element, Text) => void             | 显示前动画过渡的回调函数   |\n| onEntering        | (node?: null, Element, Text) => void             | 显示中动画过渡的回调函数   |\n| onEntered         | (node?: null, Element, Text) => void             | 显示后动画过渡的回调函数   |\n| onExit            | (node?: null, Element, Text) => void             | 退出前动画过渡的回调函数   |\n| onExiting         | (node?: null, Element, Text) => void             | 退出中动画过渡的回调函数   |\n| onExited          | (node?: null, Element, Text) => void             | 退出后动画过渡的回调函数   |\n| role              | string                                           | HTML role                  |\n| dimension         | union: 'height', 'width' ()=>('height', 'width') | 设置折叠尺寸类型           |\n| getDimensionValue | ()=>number                                       | 自定义尺寸值               |\n\n### `<Fade>` 淡进淡出\n\n```js\nimport Fade from 'rsuite-utils/lib/Animation/Fade';\n```\n\n| 属性名称          | 类型 `(默认值)`                      | 描述                       |\n| ----------------- | ------------------------------------ | -------------------------- |\n| in                | boolean                              | 进入                       |\n| unmountOnExit     | boolean                              | 在退出时卸载组件           |\n| transitionAppear  | boolean                              | 初始显示的时候开启过渡效果 |\n| timeout           | number `(300)`                       | 动画过渡延迟时间           |\n| exitedClassName   | string                               | 退出动画过渡后 className   |\n| exitingClassName  | string                               | 退出动画过渡中 className   |\n| enteredClassName  | string                               | 进入动画过渡后 className   |\n| enteringClassName | string                               | 进入动画过渡中 className   |\n| onEnter           | (node?: null, Element, Text) => void | 显示动画过渡的回调函数     |\n| onEntering        | (node?: null, Element, Text) => void | 显示中动画过渡的回调函数   |\n| onEntered         | (node?: null, Element, Text) => void | 显示后动画过渡的回调函数   |\n| onExit            | (node?: null, Element, Text) => void | 退出前动画过渡的回调函数   |\n| onExiting         | (node?: null, Element, Text) => void | 退出中动画过渡的回调函数   |\n| onExited          | (node?: null, Element, Text) => void | 退出后动画过渡的回调函数   |\n\n## Overlay 浮层\n\n### `<Overlay>` 覆盖层\n\n```js\nimport Overlay from 'rsuite-utils/lib/Overlay/Overlay';\n```\n\n| 属性名称   | 类型 `(默认值)`                            | 描述                       |\n| ---------- | ------------------------------------------ | -------------------------- |\n| show       | boolean                                    | 显示                       |\n| rootClose  | boolean `(true)`                           | 启用 RootCloseWrapper 代理 |\n| animation  | union: boolean, React.ElementType `(Fade)` | 动画                       |\n| onEnter    | (node?: null, Element, Text) => void       | 显示前动画过渡的回调函数   |\n| onEntering | (node?: null, Element, Text) => void       | 显示中动画过渡的回调函数   |\n| onEntered  | (node?: null, Element, Text) => void       | 显示后动画过渡的回调函数   |\n| onExit     | (node?: null, Element, Text) => void       | 退出前动画过渡的回调函数   |\n| onExiting  | (node?: null, Element, Text) => void       | 退出中动画过渡的回调函数   |\n| onExited   | (node?: null, Element, Text) => void       | 退出后动画过渡的回调函数   |\n\n### `<OverlayTrigger>` 覆盖层触发器\n\n```js\nimport OverlayTrigger from 'rsuite-utils/lib/Overlay/OverlayTrigger';\n```\n\n```js\ntype PlacementAround = 'top' | 'right' | 'bottom' | 'left';\ntype PlacementEighPoints =\n  | 'bottomStart'\n  | 'bottomEnd'\n  | 'topStart'\n  | 'topEnd'\n  | 'leftStart'\n  | 'leftEnd'\n  | 'rightStart'\n  | 'rightEnd';\ntype Placement = PlacementAround | PlacementEighPoints;\n```\n\n| 属性名称    | 类型 `(默认值)`                                        | 描述                            |\n| ----------- | ------------------------------------------------------ | ------------------------------- |\n| placement   | enum: Placement                                        | 显示位置                        |\n| trigger     | union: 'click', 'hover', 'focus' `(['hover','focus'])` | 触发事件,可以通过数组配置多事件 |\n| delay       | number                                                 | 延迟时间                        |\n| delayShow   | number                                                 | 展示的延迟时间                  |\n| delayHide   | number                                                 | 隐藏的延迟时间                  |\n| speaker     | React.Element<any>                                     | 展示的元素                      |\n| onEnter     | (node?: null, Element, Text) => void                   | 显示前动画过渡的回调函数        |\n| onEntering  | (node?: null, Element, Text) => void                   | 显示中动画过渡的回调函数        |\n| onEntered   | (node?: null, Element, Text) => void                   | 显示后动画过渡的回调函数        |\n| onExit      | (node?: null, Element, Text) => void                   | 退出前动画过渡的回调函数        |\n| onExiting   | (node?: null, Element, Text) => void                   | 退出中动画过渡的回调函数        |\n| onExited    | (node?: null, Element, Text) => void                   | 退出后动画过渡的回调函数        |\n| defaultOpen | boolean                                                | 默认打开                        |\n| open        | boolean                                                | 打开（受控）                    |\n\n### `<RootCloseWrapper>` 代理外部关闭事件\n\n```js\nimport RootCloseWrapper from 'rsuite-utils/lib/Overlay/RootCloseWrapper';\n```\n\n| 属性名称    | 类型 `(默认值)` | 描述               |\n| ----------- | --------------- | ------------------ |\n| onRootClose | ()=>void        | 触发关闭的回调函数 |\n","gitHead":"59c745a93233e072f9849986ccb579fcdeb52a9c","license":"MIT","scripts":{"dev":"NODE_ENV=development webpack-dev-server  --inline --progress --colors --port 3100 --host 0.0.0.0 ","tdd":"karma start","docs":"rm -rf assets &&  NODE_ENV=production webpack","flow":"flow","lint":"eslint src  *.js","test":"npm run lint &&  karma start --single-run","build":"rm -rf lib && npx babel src --out-dir lib ","publish-docs":"node docs/gh-pages.js"},"_npmUser":{"name":"simonguo","email":"simonguo.2009@gmail.com"},"homepage":"https://github.com/rsuite/rsuite-utils#readme","keywords":["react","rsuite","utils"],"repository":{"url":"git+ssh://git@github.com/rsuite/rsuite-utils.git","type":"git"},"_npmVersion":"6.5.0","description":"RSUITE Utils","directories":{"lib":"lib/"},"maintainers":[{"name":"simonguo","email":"simonguo.2009@gmail.com"}],"_nodeVersion":"11.9.0","dependencies":{"lodash":"^4.17.5","dom-lib":"^1.1.0","classnames":"^2.2.5","react-lifecycles-compat":"^3.0.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"brfs":"^1.4.3","chai":"^3.5.0","karma":"^1.1.1","mocha":"^2.5.3","react":"^16.4.2","sinon":"^4.1.2","eslint":"^3.19.0","webpack":"^3.0.0","flow-bin":"^0.63.1","gh-pages":"^1.1.0","babel-cli":"^6.26.0","karma-cli":"^1.0.1","react-dom":"^16.4.2","babel-core":"^6.7.6","css-loader":"^0.28.4","sinon-chai":"^2.8.0","url-loader":"^0.5.9","file-loader":"^0.11.2","karma-mocha":"^1.1.1","less-loader":"^4.0.5","babel-eslint":"^6.1.2","babel-loader":"^6.2.4","rsuite-theme":"^2.0.10","style-loader":"^0.18.2","karma-webpack":"2.0.3","karma-coverage":"^1.1.0","karma-sinon-chai":"^1.2.2","react-hot-loader":"^3.1.3","babel-preset-react":"^6.24.1","eslint-plugin-json":"^1.2.0","webpack-dev-server":"^2.3.0","babel-plugin-lodash":"^3.3.2","babel-preset-es2015":"^6.24.1","eslint-plugin-babel":"^4.1.1","eslint-plugin-react":"^7.10.0","html-webpack-plugin":"^2.29.0","babel-preset-stage-0":"^6.24.1","eslint-config-airbnb":"^15.0.1","eslint-plugin-import":"^2.6.1","karma-mocha-reporter":"^2.0.4","karma-chrome-launcher":"^1.0.1","eslint-plugin-flowtype":"^2.41.0","eslint-plugin-jsx-a11y":"^6.0.3","karma-firefox-launcher":"^1.0.0","karma-sourcemap-loader":"^0.3.7","react-addons-test-utils":"^15.4.0","extract-text-webpack-plugin":"^2.1.0","babel-plugin-flow-react-proptypes":"^14.0.3","babel-plugin-transform-class-properties":"^6.24.1","babel-plugin-transform-react-flow-handled-props":"^0.1.7"},"peerDependencies":{"react":"^0.14.9 || >=15.3.0","react-dom":"^0.14.9 || >=15.3.0"},"_npmOperationalInternal":{"tmp":"tmp/rsuite-utils_2.0.0-alpha.0_1555050483824_0.1706890387610327","host":"s3://npm-registry-packages"},"_id":"rsuite-utils@2.0.0-alpha.0","version":"2.0.0-alpha.0"}