UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

15 lines (12 loc) 490 B
'use client'; 'use strict'; function getFloatingPosition(dir, position) { if (dir === "rtl" && (position.includes("right") || position.includes("left"))) { const [side, placement] = position.split("-"); const flippedPosition = side === "right" ? "left" : "right"; return placement === void 0 ? flippedPosition : `${flippedPosition}-${placement}`; } return position; } exports.getFloatingPosition = getFloatingPosition; //# sourceMappingURL=get-floating-position.cjs.map