UNPKG

antd

Version:

An enterprise-class UI design language and React components implementation

17 lines (14 loc) 955 B
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; var genCollapseMotion = function genCollapseMotion(token) { var _token$componentCls; return _defineProperty({}, token.componentCls, (_token$componentCls = {}, _defineProperty(_token$componentCls, "".concat(token.antCls, "-motion-collapse-legacy"), { overflow: 'hidden', '&-active': { transition: "height ".concat(token.motionDurationMid, " ").concat(token.motionEaseInOut, ",\n opacity ").concat(token.motionDurationMid, " ").concat(token.motionEaseInOut, " !important") } }), _defineProperty(_token$componentCls, "".concat(token.antCls, "-motion-collapse"), { overflow: 'hidden', transition: "height ".concat(token.motionDurationMid, " ").concat(token.motionEaseInOut, ",\n opacity ").concat(token.motionDurationMid, " ").concat(token.motionEaseInOut, " !important") }), _token$componentCls)); }; export default genCollapseMotion;