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

87 lines 3.96 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getListOptionsStyles = void 0; const borders_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/borders"); const spacings_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/spacings"); const typography_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/typography"); const wireframe_1 = require("../../../../../designSystem/kubitWireframe/utils/wireframe"); const breakpoints_1 = require("../../../../../types/breakpoints/breakpoints"); const variants_1 = require("../text/variants"); const variants_2 = require("./variants"); const commonProps = COLORS => ({ optionsContainer: { display: 'flex', flex_direction: 'column', [breakpoints_1.DeviceBreakpointsType.DESKTOP]: { gap: spacings_1.SPACINGS.spacing_150, }, [breakpoints_1.DeviceBreakpointsType.TABLET]: { gap: spacings_1.SPACINGS.spacing_150, }, [breakpoints_1.DeviceBreakpointsType.MOBILE]: { gap: spacings_1.SPACINGS.spacing_150, }, }, parentContainer: { background_color: COLORS.NEUTRAL.color_neutral_bg_250, border: `${borders_1.BORDERS.border_50} solid ${COLORS.NEUTRAL.color_neutral_border_50}`, border_radius: borders_1.RADIUS.radius_00, padding: spacings_1.SPACINGS.spacing_400, ...(0, wireframe_1.transformShadow)(borders_1.RADIUS.radius_00), ...(0, wireframe_1.shadowAfterStyles)(borders_1.RADIUS.radius_00, COLORS.BRAND.color_brand_bg_50, '2px'), }, titleContainer: { padding: `${spacings_1.SPACINGS.spacing_0} ${spacings_1.SPACINGS.spacing_150} ${spacings_1.SPACINGS.spacing_0} ${spacings_1.SPACINGS.spacing_150}`, }, title: { font_variant: variants_1.TextVariantType.HEADING_H4_EXTENDED, color: COLORS.NEUTRAL.color_neutral_font_50, font_weight: typography_1.FONT_WEIGHT.font_weight_600, }, }); const getListOptionsStyles = (COLORS) => { return { [variants_2.ListOptionsVariantType.DEFAULT]: { ...commonProps(COLORS), }, [variants_2.ListOptionsVariantType.INPUT]: { ...commonProps(COLORS), parentContainer: { background_color: COLORS.NEUTRAL.color_neutral_bg_250, border_radius: borders_1.RADIUS.radius_150, }, }, [variants_2.ListOptionsVariantType.FUNCTIONALITIES_MODULE]: { ...commonProps(COLORS), parentContainer: { [breakpoints_1.DeviceBreakpointsType.DESKTOP]: { ...commonProps(COLORS).parentContainer, }, [breakpoints_1.DeviceBreakpointsType.TABLET]: {}, [breakpoints_1.DeviceBreakpointsType.MOBILE]: {}, }, titleContainer: { [breakpoints_1.DeviceBreakpointsType.DESKTOP]: { ...commonProps(COLORS).titleContainer, }, [breakpoints_1.DeviceBreakpointsType.TABLET]: { padding: spacings_1.SPACINGS.spacing_150 }, [breakpoints_1.DeviceBreakpointsType.MOBILE]: { padding: spacings_1.SPACINGS.spacing_150 }, }, optionsContainer: { display: 'flex', flex_direction: 'column', [breakpoints_1.DeviceBreakpointsType.DESKTOP]: { gap: spacings_1.SPACINGS.spacing_150, }, [breakpoints_1.DeviceBreakpointsType.TABLET]: { gap: spacings_1.SPACINGS.spacing_150, }, [breakpoints_1.DeviceBreakpointsType.MOBILE]: { gap: spacings_1.SPACINGS.spacing_150, }, }, }, }; }; exports.getListOptionsStyles = getListOptionsStyles; //# sourceMappingURL=styles.js.map