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

105 lines 4.5 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TOOLTIP_STYLES = void 0; const breakpoints_1 = require("../../../../types/breakpoints/breakpoints"); const borders_1 = require("../../foundations/borders"); const colors_1 = require("../../foundations/colors"); const shadow_1 = require("../../foundations/shadow"); const sizes_1 = require("../../foundations/sizes"); const spacings_1 = require("../../foundations/spacings"); const typography_1 = require("../../foundations/typography"); const zIndex_1 = require("../../foundations/zIndex"); const variants_1 = require("../text/variants"); const variants_2 = require("../variants"); const variants_3 = require("./variants"); exports.TOOLTIP_STYLES = { [variants_3.TooltipVariantType.DEFAULT]: { headerContainer: { flex_direction: 'column', }, title: { font_weight: typography_1.FONT_WEIGHT.font_weight_400, text_align: typography_1.TEXT_ALIGN.left, font_variant: variants_1.TextVariantType.PARAGRAPH_SMALL_EXPANDED, color: colors_1.COLORS.NEUTRAL.color_neutral_font_250, }, paragraph: { font_weight: typography_1.FONT_WEIGHT.font_weight_400, text_align: typography_1.TEXT_ALIGN.left, font_variant: variants_1.TextVariantType.PARAGRAPH_SMALL_EXPANDED, color: colors_1.COLORS.NEUTRAL.color_neutral_font_250, [breakpoints_1.DeviceBreakpointsType.TABLET]: { color: colors_1.COLORS.NEUTRAL.color_neutral_font_50, }, }, paragraphContainer: { flex_direction: 'column', }, divider: { border_top_color: '', border_top_width: '', border_style: '', padding_top: '', }, tooltipExternalContainer: { [breakpoints_1.DeviceBreakpointsType.DESKTOP]: { padding: spacings_1.SPACINGS.spacing_250, z_index: zIndex_1.Z_INDEX.OVERLAY, display: 'none', position: 'fixed', box_sizing: 'border-box', }, }, arrowContainer: { arrow_size: '10px', arrow_position: '10px', background_color: colors_1.COLORS.NEUTRAL.color_neutral_bg_150, [breakpoints_1.DeviceBreakpointsType.TABLET]: { display: 'none', }, [breakpoints_1.DeviceBreakpointsType.MOBILE]: { display: 'none', }, }, tooltipInternalContainer: { max_width: '20rem', max_height: '30rem', display: 'flex', flex_direction: 'column', width: 'max-content', background_color: colors_1.COLORS.NEUTRAL.color_neutral_bg_150, padding: spacings_1.SPACINGS.spacing_300, border_radius: borders_1.RADIUS.radius_50, box_shadow: shadow_1.SHADOW.shadow_10, [breakpoints_1.DeviceBreakpointsType.TABLET]: { border_radius: `${borders_1.RADIUS.radius_50} ${borders_1.RADIUS.radius_50} ${borders_1.RADIUS.radius_00} ${borders_1.RADIUS.radius_00}`, padding: spacings_1.SPACINGS.spacing_400, width: spacings_1.SPACINGS.spacing_100_percent, max_width: 'none', max_height: '100vh', }, [breakpoints_1.DeviceBreakpointsType.MOBILE]: { border_radius: `${borders_1.RADIUS.radius_50} ${borders_1.RADIUS.radius_50} ${borders_1.RADIUS.radius_00} ${borders_1.RADIUS.radius_00}`, padding: spacings_1.SPACINGS.spacing_400, width: spacings_1.SPACINGS.spacing_100_percent, max_width: 'none', max_height: '100vh', }, }, closeButtonContainer: { altVariant: true, margin_bottom: spacings_1.SPACINGS.spacing_300, }, closeButtonIcon: { color: colors_1.COLORS.ACCENT.color_accent_default_icon_150, height: sizes_1.SIZES.size_300, width: sizes_1.SIZES.size_300, }, tooltipAsModal: true, popoverVariant: { [breakpoints_1.DeviceBreakpointsType.TABLET]: variants_2.PopoverVariantType.TOOLTIP, [breakpoints_1.DeviceBreakpointsType.MOBILE]: variants_2.PopoverVariantType.TOOLTIP, }, }, }; //# sourceMappingURL=styles.js.map