67914bde432a084e0b435356349c499d52e93703ab033188d95c5bea46e66a0c.json 12 KB

1
  1. {"ast":null,"code":"import { Keyframes, unit } from '@ant-design/cssinjs';\nimport { initMotion } from '../../style/motion/motion';\nconst floatButtonGroupMotion = token => {\n const {\n componentCls,\n floatButtonSize,\n motionDurationSlow,\n motionEaseInOutCirc,\n calc\n } = token;\n const moveTopIn = new Keyframes('antFloatButtonMoveTopIn', {\n '0%': {\n transform: `translate3d(0, ${unit(floatButtonSize)}, 0)`,\n transformOrigin: '0 0',\n opacity: 0\n },\n '100%': {\n transform: 'translate3d(0, 0, 0)',\n transformOrigin: '0 0',\n opacity: 1\n }\n });\n const moveTopOut = new Keyframes('antFloatButtonMoveTopOut', {\n '0%': {\n transform: 'translate3d(0, 0, 0)',\n transformOrigin: '0 0',\n opacity: 1\n },\n '100%': {\n transform: `translate3d(0, ${unit(floatButtonSize)}, 0)`,\n transformOrigin: '0 0',\n opacity: 0\n }\n });\n const moveRightIn = new Keyframes('antFloatButtonMoveRightIn', {\n '0%': {\n transform: `translate3d(${unit(calc(floatButtonSize).mul(-1).equal())}, 0, 0)`,\n transformOrigin: '0 0',\n opacity: 0\n },\n '100%': {\n transform: 'translate3d(0, 0, 0)',\n transformOrigin: '0 0',\n opacity: 1\n }\n });\n const moveRightOut = new Keyframes('antFloatButtonMoveRightOut', {\n '0%': {\n transform: 'translate3d(0, 0, 0)',\n transformOrigin: '0 0',\n opacity: 1\n },\n '100%': {\n transform: `translate3d(${unit(calc(floatButtonSize).mul(-1).equal())}, 0, 0)`,\n transformOrigin: '0 0',\n opacity: 0\n }\n });\n const moveBottomIn = new Keyframes('antFloatButtonMoveBottomIn', {\n '0%': {\n transform: `translate3d(0, ${unit(calc(floatButtonSize).mul(-1).equal())}, 0)`,\n transformOrigin: '0 0',\n opacity: 0\n },\n '100%': {\n transform: 'translate3d(0, 0, 0)',\n transformOrigin: '0 0',\n opacity: 1\n }\n });\n const moveBottomOut = new Keyframes('antFloatButtonMoveBottomOut', {\n '0%': {\n transform: 'translate3d(0, 0, 0)',\n transformOrigin: '0 0',\n opacity: 1\n },\n '100%': {\n transform: `translate3d(0, ${unit(calc(floatButtonSize).mul(-1).equal())}, 0)`,\n transformOrigin: '0 0',\n opacity: 0\n }\n });\n const moveLeftIn = new Keyframes('antFloatButtonMoveLeftIn', {\n '0%': {\n transform: `translate3d(${unit(floatButtonSize)}, 0, 0)`,\n transformOrigin: '0 0',\n opacity: 0\n },\n '100%': {\n transform: 'translate3d(0, 0, 0)',\n transformOrigin: '0 0',\n opacity: 1\n }\n });\n const moveLeftOut = new Keyframes('antFloatButtonMoveLeftOut', {\n '0%': {\n transform: 'translate3d(0, 0, 0)',\n transformOrigin: '0 0',\n opacity: 1\n },\n '100%': {\n transform: `translate3d(${unit(floatButtonSize)}, 0, 0)`,\n transformOrigin: '0 0',\n opacity: 0\n }\n });\n const groupPrefixCls = `${componentCls}-group`;\n return [{\n [groupPrefixCls]: {\n [`&${groupPrefixCls}-top ${groupPrefixCls}-wrap`]: initMotion(`${groupPrefixCls}-wrap`, moveTopIn, moveTopOut, motionDurationSlow, true),\n [`&${groupPrefixCls}-bottom ${groupPrefixCls}-wrap`]: initMotion(`${groupPrefixCls}-wrap`, moveBottomIn, moveBottomOut, motionDurationSlow, true),\n [`&${groupPrefixCls}-left ${groupPrefixCls}-wrap`]: initMotion(`${groupPrefixCls}-wrap`, moveLeftIn, moveLeftOut, motionDurationSlow, true),\n [`&${groupPrefixCls}-right ${groupPrefixCls}-wrap`]: initMotion(`${groupPrefixCls}-wrap`, moveRightIn, moveRightOut, motionDurationSlow, true)\n }\n }, {\n [`${groupPrefixCls}-wrap`]: {\n [`&${groupPrefixCls}-wrap-enter, &${groupPrefixCls}-wrap-appear`]: {\n opacity: 0,\n animationTimingFunction: motionEaseInOutCirc\n },\n [`&${groupPrefixCls}-wrap-leave`]: {\n opacity: 1,\n animationTimingFunction: motionEaseInOutCirc\n }\n }\n }];\n};\nexport default floatButtonGroupMotion;","map":{"version":3,"names":["Keyframes","unit","initMotion","floatButtonGroupMotion","token","componentCls","floatButtonSize","motionDurationSlow","motionEaseInOutCirc","calc","moveTopIn","transform","transformOrigin","opacity","moveTopOut","moveRightIn","mul","equal","moveRightOut","moveBottomIn","moveBottomOut","moveLeftIn","moveLeftOut","groupPrefixCls","animationTimingFunction"],"sources":["/Users/max_liu/max_liu/company/tools_auto_pt/node_modules/antd/es/float-button/style/keyframes.js"],"sourcesContent":["import { Keyframes, unit } from '@ant-design/cssinjs';\nimport { initMotion } from '../../style/motion/motion';\nconst floatButtonGroupMotion = token => {\n const {\n componentCls,\n floatButtonSize,\n motionDurationSlow,\n motionEaseInOutCirc,\n calc\n } = token;\n const moveTopIn = new Keyframes('antFloatButtonMoveTopIn', {\n '0%': {\n transform: `translate3d(0, ${unit(floatButtonSize)}, 0)`,\n transformOrigin: '0 0',\n opacity: 0\n },\n '100%': {\n transform: 'translate3d(0, 0, 0)',\n transformOrigin: '0 0',\n opacity: 1\n }\n });\n const moveTopOut = new Keyframes('antFloatButtonMoveTopOut', {\n '0%': {\n transform: 'translate3d(0, 0, 0)',\n transformOrigin: '0 0',\n opacity: 1\n },\n '100%': {\n transform: `translate3d(0, ${unit(floatButtonSize)}, 0)`,\n transformOrigin: '0 0',\n opacity: 0\n }\n });\n const moveRightIn = new Keyframes('antFloatButtonMoveRightIn', {\n '0%': {\n transform: `translate3d(${unit(calc(floatButtonSize).mul(-1).equal())}, 0, 0)`,\n transformOrigin: '0 0',\n opacity: 0\n },\n '100%': {\n transform: 'translate3d(0, 0, 0)',\n transformOrigin: '0 0',\n opacity: 1\n }\n });\n const moveRightOut = new Keyframes('antFloatButtonMoveRightOut', {\n '0%': {\n transform: 'translate3d(0, 0, 0)',\n transformOrigin: '0 0',\n opacity: 1\n },\n '100%': {\n transform: `translate3d(${unit(calc(floatButtonSize).mul(-1).equal())}, 0, 0)`,\n transformOrigin: '0 0',\n opacity: 0\n }\n });\n const moveBottomIn = new Keyframes('antFloatButtonMoveBottomIn', {\n '0%': {\n transform: `translate3d(0, ${unit(calc(floatButtonSize).mul(-1).equal())}, 0)`,\n transformOrigin: '0 0',\n opacity: 0\n },\n '100%': {\n transform: 'translate3d(0, 0, 0)',\n transformOrigin: '0 0',\n opacity: 1\n }\n });\n const moveBottomOut = new Keyframes('antFloatButtonMoveBottomOut', {\n '0%': {\n transform: 'translate3d(0, 0, 0)',\n transformOrigin: '0 0',\n opacity: 1\n },\n '100%': {\n transform: `translate3d(0, ${unit(calc(floatButtonSize).mul(-1).equal())}, 0)`,\n transformOrigin: '0 0',\n opacity: 0\n }\n });\n const moveLeftIn = new Keyframes('antFloatButtonMoveLeftIn', {\n '0%': {\n transform: `translate3d(${unit(floatButtonSize)}, 0, 0)`,\n transformOrigin: '0 0',\n opacity: 0\n },\n '100%': {\n transform: 'translate3d(0, 0, 0)',\n transformOrigin: '0 0',\n opacity: 1\n }\n });\n const moveLeftOut = new Keyframes('antFloatButtonMoveLeftOut', {\n '0%': {\n transform: 'translate3d(0, 0, 0)',\n transformOrigin: '0 0',\n opacity: 1\n },\n '100%': {\n transform: `translate3d(${unit(floatButtonSize)}, 0, 0)`,\n transformOrigin: '0 0',\n opacity: 0\n }\n });\n const groupPrefixCls = `${componentCls}-group`;\n return [{\n [groupPrefixCls]: {\n [`&${groupPrefixCls}-top ${groupPrefixCls}-wrap`]: initMotion(`${groupPrefixCls}-wrap`, moveTopIn, moveTopOut, motionDurationSlow, true),\n [`&${groupPrefixCls}-bottom ${groupPrefixCls}-wrap`]: initMotion(`${groupPrefixCls}-wrap`, moveBottomIn, moveBottomOut, motionDurationSlow, true),\n [`&${groupPrefixCls}-left ${groupPrefixCls}-wrap`]: initMotion(`${groupPrefixCls}-wrap`, moveLeftIn, moveLeftOut, motionDurationSlow, true),\n [`&${groupPrefixCls}-right ${groupPrefixCls}-wrap`]: initMotion(`${groupPrefixCls}-wrap`, moveRightIn, moveRightOut, motionDurationSlow, true)\n }\n }, {\n [`${groupPrefixCls}-wrap`]: {\n [`&${groupPrefixCls}-wrap-enter, &${groupPrefixCls}-wrap-appear`]: {\n opacity: 0,\n animationTimingFunction: motionEaseInOutCirc\n },\n [`&${groupPrefixCls}-wrap-leave`]: {\n opacity: 1,\n animationTimingFunction: motionEaseInOutCirc\n }\n }\n }];\n};\nexport default floatButtonGroupMotion;"],"mappings":"AAAA,SAASA,SAAS,EAAEC,IAAI,QAAQ,qBAAqB;AACrD,SAASC,UAAU,QAAQ,2BAA2B;AACtD,MAAMC,sBAAsB,GAAGC,KAAK,IAAI;EACtC,MAAM;IACJC,YAAY;IACZC,eAAe;IACfC,kBAAkB;IAClBC,mBAAmB;IACnBC;EACF,CAAC,GAAGL,KAAK;EACT,MAAMM,SAAS,GAAG,IAAIV,SAAS,CAAC,yBAAyB,EAAE;IACzD,IAAI,EAAE;MACJW,SAAS,EAAE,kBAAkBV,IAAI,CAACK,eAAe,CAAC,MAAM;MACxDM,eAAe,EAAE,KAAK;MACtBC,OAAO,EAAE;IACX,CAAC;IACD,MAAM,EAAE;MACNF,SAAS,EAAE,sBAAsB;MACjCC,eAAe,EAAE,KAAK;MACtBC,OAAO,EAAE;IACX;EACF,CAAC,CAAC;EACF,MAAMC,UAAU,GAAG,IAAId,SAAS,CAAC,0BAA0B,EAAE;IAC3D,IAAI,EAAE;MACJW,SAAS,EAAE,sBAAsB;MACjCC,eAAe,EAAE,KAAK;MACtBC,OAAO,EAAE;IACX,CAAC;IACD,MAAM,EAAE;MACNF,SAAS,EAAE,kBAAkBV,IAAI,CAACK,eAAe,CAAC,MAAM;MACxDM,eAAe,EAAE,KAAK;MACtBC,OAAO,EAAE;IACX;EACF,CAAC,CAAC;EACF,MAAME,WAAW,GAAG,IAAIf,SAAS,CAAC,2BAA2B,EAAE;IAC7D,IAAI,EAAE;MACJW,SAAS,EAAE,eAAeV,IAAI,CAACQ,IAAI,CAACH,eAAe,CAAC,CAACU,GAAG,CAAC,CAAC,CAAC,CAAC,CAACC,KAAK,CAAC,CAAC,CAAC,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