UNPKG

@ant-design/x

Version:

Craft AI-driven interfaces effortlessly

39 lines (38 loc) 1.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; const genSenderSwitchStyle = token => { const { componentCls, antCls } = token; const switchCls = `${componentCls}-switch`; return { [componentCls]: { [`&${switchCls}-rtl`]: { direction: 'rtl' }, [`&${switchCls}`]: { display: 'inline-block', [`${antCls}-btn:not(:disabled):not(${antCls}-btn-disabled):hover`]: { background: token.switchUncheckedHoverBg, borderColor: token.colorBorder, color: token.colorText }, [`&${switchCls}-checked`]: { [`${antCls}-btn:not(:disabled):not(${antCls}-btn-disabled):hover`]: { background: token.switchCheckedHoverBg, borderColor: token.colorPrimary, color: token.colorPrimaryText }, [`${switchCls}-content`]: { background: token.switchCheckedBg } } } } }; }; var _default = exports.default = genSenderSwitchStyle;