34 lines
807 B
JavaScript
34 lines
807 B
JavaScript
|
"use strict";
|
||
|
"use client";
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports.default = void 0;
|
||
|
const getRTLStyle = _ref => {
|
||
|
let {
|
||
|
componentCls,
|
||
|
menuArrowOffset
|
||
|
} = _ref;
|
||
|
return {
|
||
|
[`${componentCls}-rtl`]: {
|
||
|
direction: 'rtl'
|
||
|
},
|
||
|
[`${componentCls}-submenu-rtl`]: {
|
||
|
transformOrigin: '100% 0'
|
||
|
},
|
||
|
// Vertical Arrow
|
||
|
[`${componentCls}-rtl${componentCls}-vertical,
|
||
|
${componentCls}-submenu-rtl ${componentCls}-vertical`]: {
|
||
|
[`${componentCls}-submenu-arrow`]: {
|
||
|
'&::before': {
|
||
|
transform: `rotate(-45deg) translateY(-${menuArrowOffset})`
|
||
|
},
|
||
|
'&::after': {
|
||
|
transform: `rotate(45deg) translateY(${menuArrowOffset})`
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
};
|
||
|
var _default = exports.default = getRTLStyle;
|