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

27 lines 1.47 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getOverlayStyles = void 0; const borders_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/borders"); const spacings_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/spacings"); const zIndex_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/zIndex"); const wireframe_1 = require("../../../utils/wireframe"); const variants_1 = require("./variants"); const getOverlayStyles = (COLORS) => { return { [variants_1.OverlayVariantType.DEFAULT]: { container: { top: spacings_1.SPACINGS.spacing_0, left: spacings_1.SPACINGS.spacing_0, z_index: zIndex_1.Z_INDEX.OVERLAY, width: `calc(${spacings_1.SPACINGS.spacing_100_vw} - ${spacings_1.SPACINGS.spacing_150})`, height: `calc(${spacings_1.SPACINGS.spacing_100_vh} - ${spacings_1.SPACINGS.spacing_150})`, background_color: COLORS.NEUTRAL.color_neutral_border_200, ...(0, wireframe_1.transformShadow)(borders_1.RADIUS.radius_00), ...(0, wireframe_1.shadowAfterStyles)(borders_1.RADIUS.radius_00, COLORS.BRAND.color_brand_bg_50, spacings_1.SPACINGS.spacing_50), position: 'fixed', }, }, }; }; exports.getOverlayStyles = getOverlayStyles; //# sourceMappingURL=styles.js.map