UNPKG

@kubit-ui-web/react-components

Version:

Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience

9 lines 468 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getMainAxisFromPlacement = void 0; const tooltipAlign_1 = require("../../types/tooltipAlign"); const getMainAxisFromPlacement = (placement) => { return [tooltipAlign_1.TooltipAlignType.TOP, tooltipAlign_1.TooltipAlignType.BOTTOM].includes(placement) ? 'x' : 'y'; }; exports.getMainAxisFromPlacement = getMainAxisFromPlacement; //# sourceMappingURL=getMainAxisFromPlacement.js.map