1 line
33 KiB
JSON
1 line
33 KiB
JSON
{"ast":null,"code":"import { Keyframes, unit } from '@ant-design/cssinjs';\nimport { resetComponent } from '../../style';\nimport { initFadeMotion } from '../../style/motion/fade';\nimport { initMotion } from '../../style/motion/motion';\nimport { genStyleHooks, mergeToken } from '../../theme/internal';\nimport getOffset from '../util';\nconst initFloatButtonGroupMotion = token => {\n const {\n componentCls,\n floatButtonSize,\n motionDurationSlow,\n motionEaseInOutCirc\n } = token;\n const groupPrefixCls = `${componentCls}-group`;\n const moveDownIn = new Keyframes('antFloatButtonMoveDownIn', {\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 moveDownOut = new Keyframes('antFloatButtonMoveDownOut', {\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 return [{\n [`${groupPrefixCls}-wrap`]: Object.assign({}, initMotion(`${groupPrefixCls}-wrap`, moveDownIn, moveDownOut, motionDurationSlow, true))\n }, {\n [`${groupPrefixCls}-wrap`]: {\n [`\n &${groupPrefixCls}-wrap-enter,\n &${groupPrefixCls}-wrap-appear\n `]: {\n opacity: 0,\n animationTimingFunction: motionEaseInOutCirc\n },\n [`&${groupPrefixCls}-wrap-leave`]: {\n animationTimingFunction: motionEaseInOutCirc\n }\n }\n }];\n};\n// ============================== Group ==============================\nconst floatButtonGroupStyle = token => {\n const {\n antCls,\n componentCls,\n floatButtonSize,\n margin,\n borderRadiusLG,\n borderRadiusSM,\n badgeOffset,\n floatButtonBodyPadding,\n calc\n } = token;\n const groupPrefixCls = `${componentCls}-group`;\n return {\n [groupPrefixCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n zIndex: token.zIndexPopupBase,\n display: 'block',\n border: 'none',\n position: 'fixed',\n width: floatButtonSize,\n height: 'auto',\n boxShadow: 'none',\n minHeight: floatButtonSize,\n insetInlineEnd: token.floatButtonInsetInlineEnd,\n insetBlockEnd: token.floatButtonInsetBlockEnd,\n borderRadius: borderRadiusLG,\n [`${groupPrefixCls}-wrap`]: {\n zIndex: -1,\n display: 'block',\n position: 'relative',\n marginBottom: margin\n },\n [`&${groupPrefixCls}-rtl`]: {\n direction: 'rtl'\n },\n [componentCls]: {\n position: 'static'\n }\n }),\n [`${groupPrefixCls}-circle`]: {\n [`${componentCls}-circle:not(:last-child)`]: {\n marginBottom: token.margin,\n [`${componentCls}-body`]: {\n width: floatButtonSize,\n height: floatButtonSize,\n borderRadius: '50%'\n }\n }\n },\n [`${groupPrefixCls}-square`]: {\n [`${componentCls}-square`]: {\n borderRadius: 0,\n padding: 0,\n '&:first-child': {\n borderStartStartRadius: borderRadiusLG,\n borderStartEndRadius: borderRadiusLG\n },\n '&:last-child': {\n borderEndStartRadius: borderRadiusLG,\n borderEndEndRadius: borderRadiusLG\n },\n '&:not(:last-child)': {\n borderBottom: `${unit(token.lineWidth)} ${token.lineType} ${token.colorSplit}`\n },\n [`${antCls}-badge`]: {\n [`${antCls}-badge-count`]: {\n top: calc(calc(floatButtonBodyPadding).add(badgeOffset)).mul(-1).equal(),\n insetInlineEnd: calc(calc(floatButtonBodyPadding).add(badgeOffset)).mul(-1).equal()\n }\n }\n },\n [`${groupPrefixCls}-wrap`]: {\n display: 'block',\n borderRadius: borderRadiusLG,\n boxShadow: token.boxShadowSecondary,\n [`${componentCls}-square`]: {\n boxShadow: 'none',\n marginTop: 0,\n borderRadius: 0,\n padding: floatButtonBodyPadding,\n '&:first-child': {\n borderStartStartRadius: borderRadiusLG,\n borderStartEndRadius: borderRadiusLG\n },\n '&:last-child': {\n borderEndStartRadius: borderRadiusLG,\n borderEndEndRadius: borderRadiusLG\n },\n '&:not(:last-child)': {\n borderBottom: `${unit(token.lineWidth)} ${token.lineType} ${token.colorSplit}`\n },\n [`${componentCls}-body`]: {\n width: token.floatButtonBodySize,\n height: token.floatButtonBodySize\n }\n }\n }\n },\n [`${groupPrefixCls}-circle-shadow`]: {\n boxShadow: 'none'\n },\n [`${groupPrefixCls}-square-shadow`]: {\n boxShadow: token.boxShadowSecondary,\n [`${componentCls}-square`]: {\n boxShadow: 'none',\n padding: floatButtonBodyPadding,\n [`${componentCls}-body`]: {\n width: token.floatButtonBodySize,\n height: token.floatButtonBodySize,\n borderRadius: borderRadiusSM\n }\n }\n }\n };\n};\n// ============================== Shared ==============================\nconst sharedFloatButtonStyle = token => {\n const {\n antCls,\n componentCls,\n floatButtonBodyPadding,\n floatButtonIconSize,\n floatButtonSize,\n borderRadiusLG,\n badgeOffset,\n dotOffsetInSquare,\n dotOffsetInCircle,\n calc\n } = token;\n return {\n [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n border: 'none',\n position: 'fixed',\n cursor: 'pointer',\n zIndex: token.zIndexPopupBase,\n // Do not remove the 'display: block' here.\n // Deleting it will cause marginBottom to become ineffective.\n // Ref: https://github.com/ant-design/ant-design/issues/44700\n display: 'block',\n width: floatButtonSize,\n height: floatButtonSize,\n insetInlineEnd: token.floatButtonInsetInlineEnd,\n insetBlockEnd: token.floatButtonInsetBlockEnd,\n boxShadow: token.boxShadowSecondary,\n // Pure Panel\n '&-pure': {\n position: 'relative',\n inset: 'auto'\n },\n '&:empty': {\n display: 'none'\n },\n [`${antCls}-badge`]: {\n width: '100%',\n height: '100%',\n [`${antCls}-badge-count`]: {\n transform: 'translate(0, 0)',\n transformOrigin: 'center',\n top: calc(badgeOffset).mul(-1).equal(),\n insetInlineEnd: calc(badgeOffset).mul(-1).equal()\n }\n },\n [`${componentCls}-body`]: {\n width: '100%',\n height: '100%',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n transition: `all ${token.motionDurationMid}`,\n [`${componentCls}-content`]: {\n overflow: 'hidden',\n textAlign: 'center',\n minHeight: floatButtonSize,\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n alignItems: 'center',\n padding: `${unit(calc(floatButtonBodyPadding).div(2).equal())} ${unit(floatButtonBodyPadding)}`,\n [`${componentCls}-icon`]: {\n textAlign: 'center',\n margin: 'auto',\n width: floatButtonIconSize,\n fontSize: floatButtonIconSize,\n lineHeight: 1\n }\n }\n }\n }),\n [`${componentCls}-rtl`]: {\n direction: 'rtl'\n },\n [`${componentCls}-circle`]: {\n height: floatButtonSize,\n borderRadius: '50%',\n [`${antCls}-badge`]: {\n [`${antCls}-badge-dot`]: {\n top: dotOffsetInCircle,\n insetInlineEnd: dotOffsetInCircle\n }\n },\n [`${componentCls}-body`]: {\n borderRadius: '50%'\n }\n },\n [`${componentCls}-square`]: {\n height: 'auto',\n minHeight: floatButtonSize,\n borderRadius: borderRadiusLG,\n [`${antCls}-badge`]: {\n [`${antCls}-badge-dot`]: {\n top: dotOffsetInSquare,\n insetInlineEnd: dotOffsetInSquare\n }\n },\n [`${componentCls}-body`]: {\n height: 'auto',\n borderRadius: borderRadiusLG\n }\n },\n [`${componentCls}-default`]: {\n backgroundColor: token.floatButtonBackgroundColor,\n transition: `background-color ${token.motionDurationMid}`,\n [`${componentCls}-body`]: {\n backgroundColor: token.floatButtonBackgroundColor,\n transition: `background-color ${token.motionDurationMid}`,\n '&:hover': {\n backgroundColor: token.colorFillContent\n },\n [`${componentCls}-content`]: {\n [`${componentCls}-icon`]: {\n color: token.colorText\n },\n [`${componentCls}-description`]: {\n display: 'flex',\n alignItems: 'center',\n lineHeight: unit(token.fontSizeLG),\n color: token.colorText,\n fontSize: token.fontSizeSM\n }\n }\n }\n },\n [`${componentCls}-primary`]: {\n backgroundColor: token.colorPrimary,\n [`${componentCls}-body`]: {\n backgroundColor: token.colorPrimary,\n transition: `background-color ${token.motionDurationMid}`,\n '&:hover': {\n backgroundColor: token.colorPrimaryHover\n },\n [`${componentCls}-content`]: {\n [`${componentCls}-icon`]: {\n color: token.colorTextLightSolid\n },\n [`${componentCls}-description`]: {\n display: 'flex',\n alignItems: 'center',\n lineHeight: unit(token.fontSizeLG),\n color: token.colorTextLightSolid,\n fontSize: token.fontSizeSM\n }\n }\n }\n }\n };\n};\n// ============================== Export ==============================\nexport const prepareComponentToken = token => ({\n dotOffsetInCircle: getOffset(token.controlHeightLG / 2),\n dotOffsetInSquare: getOffset(token.borderRadiusLG)\n});\nexport default genStyleHooks('FloatButton', token => {\n const {\n colorTextLightSolid,\n colorBgElevated,\n controlHeightLG,\n marginXXL,\n marginLG,\n fontSize,\n fontSizeIcon,\n controlItemBgHover,\n paddingXXS,\n calc\n } = token;\n const floatButtonToken = mergeToken(token, {\n floatButtonBackgroundColor: colorBgElevated,\n floatButtonColor: colorTextLightSolid,\n floatButtonHoverBackgroundColor: controlItemBgHover,\n floatButtonFontSize: fontSize,\n floatButtonIconSize: calc(fontSizeIcon).mul(1.5).equal(),\n floatButtonSize: controlHeightLG,\n floatButtonInsetBlockEnd: marginXXL,\n floatButtonInsetInlineEnd: marginLG,\n floatButtonBodySize: calc(controlHeightLG).sub(calc(paddingXXS).mul(2)).equal(),\n // 这里的 paddingXXS 是简写,完整逻辑是 (controlHeightLG - (controlHeightLG - paddingXXS * 2)) / 2,\n floatButtonBodyPadding: paddingXXS,\n badgeOffset: calc(paddingXXS).mul(1.5).equal()\n });\n return [floatButtonGroupStyle(floatButtonToken), sharedFloatButtonStyle(floatButtonToken), initFadeMotion(token), initFloatButtonGroupMotion(floatButtonToken)];\n}, prepareComponentToken);","map":{"version":3,"names":["Keyframes","unit","resetComponent","initFadeMotion","initMotion","genStyleHooks","mergeToken","getOffset","initFloatButtonGroupMotion","token","componentCls","floatButtonSize","motionDurationSlow","motionEaseInOutCirc","groupPrefixCls","moveDownIn","transform","transformOrigin","opacity","moveDownOut","Object","assign","animationTimingFunction","floatButtonGroupStyle","antCls","margin","borderRadiusLG","borderRadiusSM","badgeOffset","floatButtonBodyPadding","calc","zIndex","zIndexPopupBase","display","border","position","width","height","boxShadow","minHeight","insetInlineEnd","floatButtonInsetInlineEnd","insetBlockEnd","floatButtonInsetBlockEnd","borderRadius","marginBottom","direction","padding","borderStartStartRadius","borderStartEndRadius","borderEndStartRadius","borderEndEndRadius","borderBottom","lineWidth","lineType","colorSplit","top","add","mul","equal","boxShadowSecondary","marginTop","floatButtonBodySize","sharedFloatButtonStyle","floatButtonIconSize","dotOffsetInSquare","dotOffsetInCircle","cursor","inset","justifyContent","alignItems","transition","motionDurationMid","overflow","textAlign","flexDirection","div","fontSize","lineHeight","backgroundColor","floatButtonBackgroundColor","colorFillContent","color","colorText","fontSizeLG","fontSizeSM","colorPrimary","colorPrimaryHover","colorTextLightSolid","prepareComponentToken","controlHeightLG","colorBgElevated","marginXXL","marginLG","fontSizeIcon","controlItemBgHover","paddingXXS","floatButtonToken","floatButtonColor","floatButtonHoverBackgroundColor","floatButtonFontSize","sub"],"sources":["C:/Users/Аришина)/Desktop/promo/node_modules/antd/es/float-button/style/index.js"],"sourcesContent":["import { Keyframes, unit } from '@ant-design/cssinjs';\nimport { resetComponent } from '../../style';\nimport { initFadeMotion } from '../../style/motion/fade';\nimport { initMotion } from '../../style/motion/motion';\nimport { genStyleHooks, mergeToken } from '../../theme/internal';\nimport getOffset from '../util';\nconst initFloatButtonGroupMotion = token => {\n const {\n componentCls,\n floatButtonSize,\n motionDurationSlow,\n motionEaseInOutCirc\n } = token;\n const groupPrefixCls = `${componentCls}-group`;\n const moveDownIn = new Keyframes('antFloatButtonMoveDownIn', {\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 moveDownOut = new Keyframes('antFloatButtonMoveDownOut', {\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 return [{\n [`${groupPrefixCls}-wrap`]: Object.assign({}, initMotion(`${groupPrefixCls}-wrap`, moveDownIn, moveDownOut, motionDurationSlow, true))\n }, {\n [`${groupPrefixCls}-wrap`]: {\n [`\n &${groupPrefixCls}-wrap-enter,\n &${groupPrefixCls}-wrap-appear\n `]: {\n opacity: 0,\n animationTimingFunction: motionEaseInOutCirc\n },\n [`&${groupPrefixCls}-wrap-leave`]: {\n animationTimingFunction: motionEaseInOutCirc\n }\n }\n }];\n};\n// ============================== Group ==============================\nconst floatButtonGroupStyle = token => {\n const {\n antCls,\n componentCls,\n floatButtonSize,\n margin,\n borderRadiusLG,\n borderRadiusSM,\n badgeOffset,\n floatButtonBodyPadding,\n calc\n } = token;\n const groupPrefixCls = `${componentCls}-group`;\n return {\n [groupPrefixCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n zIndex: token.zIndexPopupBase,\n display: 'block',\n border: 'none',\n position: 'fixed',\n width: floatButtonSize,\n height: 'auto',\n boxShadow: 'none',\n minHeight: floatButtonSize,\n insetInlineEnd: token.floatButtonInsetInlineEnd,\n insetBlockEnd: token.floatButtonInsetBlockEnd,\n borderRadius: borderRadiusLG,\n [`${groupPrefixCls}-wrap`]: {\n zIndex: -1,\n display: 'block',\n position: 'relative',\n marginBottom: margin\n },\n [`&${groupPrefixCls}-rtl`]: {\n direction: 'rtl'\n },\n [componentCls]: {\n position: 'static'\n }\n }),\n [`${groupPrefixCls}-circle`]: {\n [`${componentCls}-circle:not(:last-child)`]: {\n marginBottom: token.margin,\n [`${componentCls}-body`]: {\n width: floatButtonSize,\n height: floatButtonSize,\n borderRadius: '50%'\n }\n }\n },\n [`${groupPrefixCls}-square`]: {\n [`${componentCls}-square`]: {\n borderRadius: 0,\n padding: 0,\n '&:first-child': {\n borderStartStartRadius: borderRadiusLG,\n borderStartEndRadius: borderRadiusLG\n },\n '&:last-child': {\n borderEndStartRadius: borderRadiusLG,\n borderEndEndRadius: borderRadiusLG\n },\n '&:not(:last-child)': {\n borderBottom: `${unit(token.lineWidth)} ${token.lineType} ${token.colorSplit}`\n },\n [`${antCls}-badge`]: {\n [`${antCls}-badge-count`]: {\n top: calc(calc(floatButtonBodyPadding).add(badgeOffset)).mul(-1).equal(),\n insetInlineEnd: calc(calc(floatButtonBodyPadding).add(badgeOffset)).mul(-1).equal()\n }\n }\n },\n [`${groupPrefixCls}-wrap`]: {\n display: 'block',\n borderRadius: borderRadiusLG,\n boxShadow: token.boxShadowSecondary,\n [`${componentCls}-square`]: {\n boxShadow: 'none',\n marginTop: 0,\n borderRadius: 0,\n padding: floatButtonBodyPadding,\n '&:first-child': {\n borderStartStartRadius: borderRadiusLG,\n borderStartEndRadius: borderRadiusLG\n },\n '&:last-child': {\n borderEndStartRadius: borderRadiusLG,\n borderEndEndRadius: borderRadiusLG\n },\n '&:not(:last-child)': {\n borderBottom: `${unit(token.lineWidth)} ${token.lineType} ${token.colorSplit}`\n },\n [`${componentCls}-body`]: {\n width: token.floatButtonBodySize,\n height: token.floatButtonBodySize\n }\n }\n }\n },\n [`${groupPrefixCls}-circle-shadow`]: {\n boxShadow: 'none'\n },\n [`${groupPrefixCls}-square-shadow`]: {\n boxShadow: token.boxShadowSecondary,\n [`${componentCls}-square`]: {\n boxShadow: 'none',\n padding: floatButtonBodyPadding,\n [`${componentCls}-body`]: {\n width: token.floatButtonBodySize,\n height: token.floatButtonBodySize,\n borderRadius: borderRadiusSM\n }\n }\n }\n };\n};\n// ============================== Shared ==============================\nconst sharedFloatButtonStyle = token => {\n const {\n antCls,\n componentCls,\n floatButtonBodyPadding,\n floatButtonIconSize,\n floatButtonSize,\n borderRadiusLG,\n badgeOffset,\n dotOffsetInSquare,\n dotOffsetInCircle,\n calc\n } = token;\n return {\n [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n border: 'none',\n position: 'fixed',\n cursor: 'pointer',\n zIndex: token.zIndexPopupBase,\n // Do not remove the 'display: block' here.\n // Deleting it will cause marginBottom to become ineffective.\n // Ref: https://github.com/ant-design/ant-design/issues/44700\n display: 'block',\n width: floatButtonSize,\n height: floatButtonSize,\n insetInlineEnd: token.floatButtonInsetInlineEnd,\n insetBlockEnd: token.floatButtonInsetBlockEnd,\n boxShadow: token.boxShadowSecondary,\n // Pure Panel\n '&-pure': {\n position: 'relative',\n inset: 'auto'\n },\n '&:empty': {\n display: 'none'\n },\n [`${antCls}-badge`]: {\n width: '100%',\n height: '100%',\n [`${antCls}-badge-count`]: {\n transform: 'translate(0, 0)',\n transformOrigin: 'center',\n top: calc(badgeOffset).mul(-1).equal(),\n insetInlineEnd: calc(badgeOffset).mul(-1).equal()\n }\n },\n [`${componentCls}-body`]: {\n width: '100%',\n height: '100%',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n transition: `all ${token.motionDurationMid}`,\n [`${componentCls}-content`]: {\n overflow: 'hidden',\n textAlign: 'center',\n minHeight: floatButtonSize,\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n alignItems: 'center',\n padding: `${unit(calc(floatButtonBodyPadding).div(2).equal())} ${unit(floatButtonBodyPadding)}`,\n [`${componentCls}-icon`]: {\n textAlign: 'center',\n margin: 'auto',\n width: floatButtonIconSize,\n fontSize: floatButtonIconSize,\n lineHeight: 1\n }\n }\n }\n }),\n [`${componentCls}-rtl`]: {\n direction: 'rtl'\n },\n [`${componentCls}-circle`]: {\n height: floatButtonSize,\n borderRadius: '50%',\n [`${antCls}-badge`]: {\n [`${antCls}-badge-dot`]: {\n top: dotOffsetInCircle,\n insetInlineEnd: dotOffsetInCircle\n }\n },\n [`${componentCls}-body`]: {\n borderRadius: '50%'\n }\n },\n [`${componentCls}-square`]: {\n height: 'auto',\n minHeight: floatButtonSize,\n borderRadius: borderRadiusLG,\n [`${antCls}-badge`]: {\n [`${antCls}-badge-dot`]: {\n top: dotOffsetInSquare,\n insetInlineEnd: dotOffsetInSquare\n }\n },\n [`${componentCls}-body`]: {\n height: 'auto',\n borderRadius: borderRadiusLG\n }\n },\n [`${componentCls}-default`]: {\n backgroundColor: token.floatButtonBackgroundColor,\n transition: `background-color ${token.motionDurationMid}`,\n [`${componentCls}-body`]: {\n backgroundColor: token.floatButtonBackgroundColor,\n transition: `background-color ${token.motionDurationMid}`,\n '&:hover': {\n backgroundColor: token.colorFillContent\n },\n [`${componentCls}-content`]: {\n [`${componentCls}-icon`]: {\n color: token.colorText\n },\n [`${componentCls}-description`]: {\n display: 'flex',\n alignItems: 'center',\n lineHeight: unit(token.fontSizeLG),\n color: token.colorText,\n fontSize: token.fontSizeSM\n }\n }\n }\n },\n [`${componentCls}-primary`]: {\n backgroundColor: token.colorPrimary,\n [`${componentCls}-body`]: {\n backgroundColor: token.colorPrimary,\n transition: `background-color ${token.motionDurationMid}`,\n '&:hover': {\n backgroundColor: token.colorPrimaryHover\n },\n [`${componentCls}-content`]: {\n [`${componentCls}-icon`]: {\n color: token.colorTextLightSolid\n },\n [`${componentCls}-description`]: {\n display: 'flex',\n alignItems: 'center',\n lineHeight: unit(token.fontSizeLG),\n color: token.colorTextLightSolid,\n fontSize: token.fontSizeSM\n }\n }\n }\n }\n };\n};\n// ============================== Export ==============================\nexport const prepareComponentToken = token => ({\n dotOffsetInCircle: getOffset(token.controlHeightLG / 2),\n dotOffsetInSquare: getOffset(token.borderRadiusLG)\n});\nexport default genStyleHooks('FloatButton', token => {\n const {\n colorTextLightSolid,\n colorBgElevated,\n controlHeightLG,\n marginXXL,\n marginLG,\n fontSize,\n fontSizeIcon,\n controlItemBgHover,\n paddingXXS,\n calc\n } = token;\n const floatButtonToken = mergeToken(token, {\n floatButtonBackgroundColor: colorBgElevated,\n floatButtonColor: colorTextLightSolid,\n floatButtonHoverBackgroundColor: controlItemBgHover,\n floatButtonFontSize: fontSize,\n floatButtonIconSize: calc(fontSizeIcon).mul(1.5).equal(),\n floatButtonSize: controlHeightLG,\n floatButtonInsetBlockEnd: marginXXL,\n floatButtonInsetInlineEnd: marginLG,\n floatButtonBodySize: calc(controlHeightLG).sub(calc(paddingXXS).mul(2)).equal(),\n // 这里的 paddingXXS 是简写,完整逻辑是 (controlHeightLG - (controlHeightLG - paddingXXS * 2)) / 2,\n floatButtonBodyPadding: paddingXXS,\n badgeOffset: calc(paddingXXS).mul(1.5).equal()\n });\n return [floatButtonGroupStyle(floatButtonToken), sharedFloatButtonStyle(floatButtonToken), initFadeMotion(token), initFloatButtonGroupMotion(floatButtonToken)];\n}, prepareComponentToken);"],"mappings":"AAAA,SAASA,SAAS,EAAEC,IAAI,QAAQ,qBAAqB;AACrD,SAASC,cAAc,QAAQ,aAAa;AAC5C,SAASC,cAAc,QAAQ,yBAAyB;AACxD,SAASC,UAAU,QAAQ,2BAA2B;AACtD,SAASC,aAAa,EAAEC,UAAU,QAAQ,sBAAsB;AAChE,OAAOC,SAAS,MAAM,SAAS;AAC/B,MAAMC,0BAA0B,GAAGC,KAAK,IAAI;EAC1C,MAAM;IACJC,YAAY;IACZC,eAAe;IACfC,kBAAkB;IAClBC;EACF,CAAC,GAAGJ,KAAK;EACT,MAAMK,cAAc,GAAG,GAAGJ,YAAY,QAAQ;EAC9C,MAAMK,UAAU,GAAG,IAAIf,SAAS,CAAC,0BAA0B,EAAE;IAC3D,IAAI,EAAE;MACJgB,SAAS,EAAE,kBAAkBf,IAAI,CAACU,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,WAAW,GAAG,IAAInB,SAAS,CAAC,2BAA2B,EAAE;IAC7D,IAAI,EAAE;MACJgB,SAAS,EAAE,sBAAsB;MACjCC,eAAe,EAAE,KAAK;MACtBC,OAAO,EAAE;IACX,CAAC;IACD,MAAM,EAAE;MACNF,SAAS,EAAE,kBAAkBf,IAAI,CAACU,eAAe,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