@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
124 lines • 6.07 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getActionBottomSheetStyles = void 0;
const borders_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/borders");
const shadow_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/shadow");
const sizes_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/sizes");
const spacings_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/spacings");
const typography_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/typography");
const breakpoints_1 = require("../../../../../types/breakpoints/breakpoints");
const wireframe_1 = require("../../../utils/wireframe");
const variants_1 = require("../popover/variants");
const variants_2 = require("../text/variants");
const variants_3 = require("./variants");
const getActionBottomSheetStyles = (COLORS) => {
return {
[variants_3.ActionBottomSheetVariantType.DEFAULT]: {
container: {
width: '20rem',
box_shadow: shadow_1.SHADOW.shadow_10,
background_color: COLORS.NEUTRAL.color_neutral_bg_250,
padding: spacings_1.SPACINGS.spacing_400,
border: `${borders_1.BORDERS.border_50} solid ${COLORS.NEUTRAL.color_neutral_border_50}`,
max_height: '100%',
...(0, wireframe_1.transformShadow)(borders_1.RADIUS.radius_150),
...(0, wireframe_1.shadowAfterStyles)(borders_1.RADIUS.radius_150, COLORS.BRAND.color_brand_bg_50, spacings_1.SPACINGS.spacing_50),
[breakpoints_1.DeviceBreakpointsType.TABLET]: {
width: spacings_1.SPACINGS.spacing_100_percent,
},
[breakpoints_1.DeviceBreakpointsType.MOBILE]: {
width: spacings_1.SPACINGS.spacing_100_percent,
max_height: '100svh',
},
},
closeIconContainer: {
justify_content: 'flex-start',
},
closeIcon: {
width: sizes_1.SIZES.size_300,
height: sizes_1.SIZES.size_300,
color: COLORS.ACCENT.color_accent_default_icon_50,
},
header: {
display: 'flex',
flex_direction: 'column',
padding: spacings_1.SPACINGS.spacing_300,
[breakpoints_1.DeviceBreakpointsType.TABLET]: {
box_shadow: shadow_1.SHADOW.shadow_10,
margin_bottom: spacings_1.SPACINGS.spacing_250,
},
[breakpoints_1.DeviceBreakpointsType.MOBILE]: {
box_shadow: shadow_1.SHADOW.shadow_10,
margin_bottom: spacings_1.SPACINGS.spacing_250,
},
},
titleContainer: {
margin_top: spacings_1.SPACINGS.spacing_300,
margin_bottom: spacings_1.SPACINGS.spacing_300,
},
titleContainerFont: {
text_align: typography_1.TEXT_ALIGN.left,
},
title: {
font_weight: typography_1.FONT_WEIGHT.font_weight_500,
color: COLORS.NEUTRAL.color_neutral_font_50,
font_variant: variants_2.TextVariantType.HEADING_H4_EXTENDED,
},
popoverVariant: variants_1.PopoverVariantType.ACTION_BOTTOM_SHEET,
},
[variants_3.ActionBottomSheetVariantType.FUNCTIONALITIES_MODULE]: {
container: {
width: '20rem',
box_shadow: shadow_1.SHADOW.shadow_10,
background_color: COLORS.NEUTRAL.color_neutral_bg_250,
padding: spacings_1.SPACINGS.spacing_400,
border: `${borders_1.BORDERS.border_50} solid ${COLORS.NEUTRAL.color_neutral_border_50}`,
max_height: '100%',
...(0, wireframe_1.transformShadow)(borders_1.RADIUS.radius_150),
...(0, wireframe_1.shadowAfterStyles)(borders_1.RADIUS.radius_150, COLORS.BRAND.color_brand_bg_50, spacings_1.SPACINGS.spacing_50),
[breakpoints_1.DeviceBreakpointsType.TABLET]: {
width: spacings_1.SPACINGS.spacing_100_percent,
},
[breakpoints_1.DeviceBreakpointsType.MOBILE]: {
width: spacings_1.SPACINGS.spacing_100_percent,
max_height: '100svh',
},
},
closeIconContainer: {
justify_content: 'flex-start',
},
closeIcon: {
width: sizes_1.SIZES.size_300,
height: sizes_1.SIZES.size_300,
color: COLORS.ACCENT.color_accent_default_icon_50,
},
titleContainer: {
margin_top: spacings_1.SPACINGS.spacing_300,
margin_bottom: spacings_1.SPACINGS.spacing_300,
},
titleContainerFont: {
text_align: typography_1.TEXT_ALIGN.left,
},
title: {
font_weight: typography_1.FONT_WEIGHT.font_weight_500,
color: COLORS.NEUTRAL.color_neutral_font_50,
font_variant: variants_2.TextVariantType.HEADING_H4_EXTENDED,
},
content: {
[breakpoints_1.DeviceBreakpointsType.TABLET]: {
overflow_y: 'auto',
padding_bottom: spacings_1.SPACINGS.spacing_150,
max_height: '100vh',
},
[breakpoints_1.DeviceBreakpointsType.MOBILE]: {
overflow_y: 'auto',
padding_bottom: spacings_1.SPACINGS.spacing_150,
max_height: '100vh',
},
},
popoverVariant: variants_1.PopoverVariantType.ACTION_BOTTOM_SHEET,
},
};
};
exports.getActionBottomSheetStyles = getActionBottomSheetStyles;
//# sourceMappingURL=styles.js.map