{"bugs":{"url":"https://github.com/rsuite/rsuite-utils/issues"},"dist":{"shasum":"2c79f161e99c438f58c614403d31a2e0b01c0328","tarball":"https://registry.npmjs.org/rsuite-utils/-/rsuite-utils-1.6.0-beta.1.tgz","fileCount":86,"integrity":"sha512-ah+EF+gKEgPdKJ+JcNdaMlsi1qS6mr32hzexhu41ISDZGeARL0g6NO+fGllYR7KhPCR6ZMdMIyxwAJJT1xZURA==","signatures":[{"sig":"MEUCIQCu2Vz0wLDL3cjMPhzFQlop7ZIbKZI4YlMWixcl/7baWQIgAoLEMAnEQpRMWb4hkszLel9z8lV29VDRBPBo4BKGFaA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":217323,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcFzx5CRA9TVsSAnZWagAAFiYP/2VJn+V3eMT/CqMtP+mK\n78pwZ+r2tGQDdU2FFcyBfHVXdF27ZuuwvABA9g1FZytwuPin+XmRuAgUgahN\ngymAZV0zNdYO+YSkNxlXPFKCqbQchoKv16f1naIi7ya8HXMSYvYWKUN9OjOS\nxOfm6QyH6Y6+cJoc1G6nqJX+liKJEshZpotJvTmOGHEkEkKUh12dLkMsBG71\nITAyzStuKx2MN9nThpxQYDYhAX5AJ7b7ejC1e6XmF+QstUepmtgPxqdvJaSv\n3gMjPZ0kEP1C3W2GJ9eBSoJ4KnfrgeslIHXehMol51ol95Vp1rskoKB2Y7pH\nB7sfjwvoeuCFm0cdt02mV+5bPBAZI11e8ES05r24tFjRjo8qEkAQL0lBPDi/\nhk62wFZ+FWbJX15h7pHUDe9hx6g3QF5zj0ublZbRFz/V4MlRzwaRReWBHteD\n3ZTEGgdZzbqaq6S6aKlitlQVGfqkfw4AKX7/6t/Yk/zfQZXzHPys8lg+FzeE\nzKKU65pB/ylzJelSfKa6yPinZAnhhIOLCgMVMywKr7FTzb38QqHI7Wh91Ye1\nyOKHlNLf9bWptEQ/epaqvBUbAgTEPKoFAOE1oQvWigDchDy3K92z09s37wYk\nAoO9/0/bqRqQ15TTW/eOKy/wUpV9auNHkVScCWy418NJ4+y8ZvxlJH9e2XZC\nZflp\r\n=YtFH\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  | 'bottomLeft'\n  | 'bottomRight'\n  | 'topLeft'\n  | 'topRight'\n  | 'leftTop'\n  | 'rightTop'\n  | 'leftBottom'\n  | 'rightBottom';\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":"c78cf5b075d7011a4d5d074037f47e5eb5055247","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 && 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":"5.6.0","description":"RSUITE Utils","directories":{"lib":"lib/"},"maintainers":[{"name":"simonguo","email":"simonguo.2009@gmail.com"}],"_nodeVersion":"8.11.2","dependencies":{"lodash":"^4.17.5","dom-lib":"^1.1.0-beta.1","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","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_1.6.0-beta.1_1545026680948_0.22861328763058886","host":"s3://npm-registry-packages"},"_id":"rsuite-utils@1.6.0-beta.1","version":"1.6.0-beta.1"}