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

102 lines 4.28 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LIST_OPTIONS_STYLES = void 0; const breakpoints_1 = require("../../../../types/breakpoints/breakpoints"); const borders_1 = require("../../foundations/borders"); const colors_1 = require("../../foundations/colors"); const spacings_1 = require("../../foundations/spacings"); const typography_1 = require("../../foundations/typography"); const variants_1 = require("../text/variants"); const variants_2 = require("./variants"); const commonProps = { optionsContainer: { display: 'flex', flex_direction: 'column', }, }; exports.LIST_OPTIONS_STYLES = { [variants_2.ListOptionsVariantType.SIDE_MENU_SECTION]: { // Add the same left border than OPTION SIDE_MENU_LEVEL_1 ...commonProps, titleContainer: { padding: `${spacings_1.SPACINGS.spacing_150} ${spacings_1.SPACINGS.spacing_300} ${spacings_1.SPACINGS.spacing_150} calc(${spacings_1.SPACINGS.spacing_300} + ${borders_1.BORDERS.border_200})`, margin: `${spacings_1.SPACINGS.spacing_0} ${spacings_1.SPACINGS.spacing_300} ${spacings_1.SPACINGS.spacing_100} ${spacings_1.SPACINGS.spacing_0}`, border_bottom: `${borders_1.BORDERS.border_50} solid ${colors_1.COLORS.NEUTRAL.color_neutral_border_200}`, }, title: { font_variant: variants_1.TextVariantType.PARAGRAPH_SMALL_EXTENDED, color: colors_1.COLORS.NEUTRAL.color_neutral_font_50, font_weight: typography_1.FONT_WEIGHT.font_weight_400, }, optionsContainer: { ...commonProps.optionsContainer, [breakpoints_1.DeviceBreakpointsType.DESKTOP]: { gap: spacings_1.SPACINGS.spacing_100, }, [breakpoints_1.DeviceBreakpointsType.TABLET]: { gap: spacings_1.SPACINGS.spacing_100, }, [breakpoints_1.DeviceBreakpointsType.MOBILE]: { gap: spacings_1.SPACINGS.spacing_100, }, }, }, [variants_2.ListOptionsVariantType.INPUT_DROPDOWN_SECTION]: { ...commonProps, optionsContainer: { ...commonProps.optionsContainer, [breakpoints_1.DeviceBreakpointsType.DESKTOP]: { gap: spacings_1.SPACINGS.spacing_0, }, [breakpoints_1.DeviceBreakpointsType.TABLET]: { gap: spacings_1.SPACINGS.spacing_150, }, [breakpoints_1.DeviceBreakpointsType.MOBILE]: { gap: spacings_1.SPACINGS.spacing_150, }, }, }, [variants_2.ListOptionsVariantType.CODE_VIEWER_SUBTHEME]: { ...commonProps, }, [variants_2.ListOptionsVariantType.INPUT_SEARCH]: { ...commonProps, }, [variants_2.ListOptionsVariantType.INPUT_DROPDOWN_DEFAULT]: { ...commonProps, optionsContainer: { ...commonProps.optionsContainer, }, }, [variants_2.ListOptionsVariantType.DROPDOWN_SELECTED_SECTION]: { ...commonProps, optionsContainer: { ...commonProps.optionsContainer, [breakpoints_1.DeviceBreakpointsType.DESKTOP]: { gap: spacings_1.SPACINGS.spacing_150, padding: `${spacings_1.SPACINGS.spacing_100} ${spacings_1.SPACINGS.spacing_0}`, }, [breakpoints_1.DeviceBreakpointsType.TABLET]: { gap: spacings_1.SPACINGS.spacing_150, }, [breakpoints_1.DeviceBreakpointsType.MOBILE]: { gap: spacings_1.SPACINGS.spacing_150, }, }, }, [variants_2.ListOptionsVariantType.DEFAULT]: { optionsContainer: { display: 'flex', flex_direction: 'column', }, 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_1.COLORS.NEUTRAL.color_neutral_font_50, font_weight: typography_1.FONT_WEIGHT.font_weight_600, }, }, }; //# sourceMappingURL=styles.js.map