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

115 lines 5.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PRIMARY_TABS_STYLES = void 0; const state_1 = require("../../../../components/tabs/types/state"); const breakpoints_1 = require("../../../../types/breakpoints/breakpoints"); const colors_1 = require("../../foundations/colors"); 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 commonArrowIconContainer = { position: 'absolute', height: '100%', display: 'none', align_items: 'center', justify_content: 'center', z_index: zIndex_1.Z_INDEX.INTERN_2, cursor: 'pointer', [breakpoints_1.DeviceBreakpointsType.MOBILE]: { background_color: colors_1.COLORS.ACCENT.color_accent_default_bg_50, display: 'flex', focusVisible: { margin_right: spacings_1.SPACINGS.spacing_50, margin_left: spacings_1.SPACINGS.spacing_50, }, }, }; const commonIconProps = { width: sizes_1.SIZES.size_250, height: sizes_1.SIZES.size_250, color: colors_1.COLORS.NEUTRAL.color_neutral_icon_250, }; exports.PRIMARY_TABS_STYLES = { [variants_2.TabsVariantType.DEFAULT]: { arrowLeftIconContainer: { ...commonArrowIconContainer, }, leftIcon: { ...commonIconProps, disabled: { ...commonIconProps, color: colors_1.COLORS.DISABLED.color_accentDisabled_icon_100, }, }, rightIcon: { ...commonIconProps, disabled: { ...commonIconProps, color: colors_1.COLORS.DISABLED.color_accentDisabled_icon_100, }, }, arrowRightIconContainer: { ...commonArrowIconContainer, right: '0', }, oneTabContainer: { display: 'flex', justify_content: 'center', cursor: 'default', width: '100%', padding: `${spacings_1.SPACINGS.spacing_250} ${spacings_1.SPACINGS.spacing_500} ${spacings_1.SPACINGS.spacing_250} ${spacings_1.SPACINGS.spacing_500}`, border_top_width: sizes_1.SIZES.size_25, border_top_color: colors_1.COLORS.BRAND.color_brand_border_50, background_color: colors_1.COLORS.NEUTRAL.color_neutral_bg_250, border_style: 'solid', [breakpoints_1.DeviceBreakpointsType.MOBILE]: { padding: `${spacings_1.SPACINGS.spacing_250} ${spacings_1.SPACINGS.spacing_0} ${spacings_1.SPACINGS.spacing_250} ${spacings_1.SPACINGS.spacing_0}`, }, }, [state_1.TabsStateTypes.SELECTED]: { label: { font_variant: variants_1.TextVariantType.PARAGRAPH_SMALL_EXPANDED, font_weight: typography_1.FONT_WEIGHT.font_weight_600, color: colors_1.COLORS.NEUTRAL.color_neutral_font_50, }, tabButton: { width: '100%', padding: `${spacings_1.SPACINGS.spacing_250} ${spacings_1.SPACINGS.spacing_500} ${spacings_1.SPACINGS.spacing_250} ${spacings_1.SPACINGS.spacing_500}`, border_top_width: sizes_1.SIZES.size_25, border_top_color: colors_1.COLORS.BRAND.color_brand_border_50, background_color: colors_1.COLORS.NEUTRAL.color_neutral_bg_250, border_style: 'solid', cursor: 'default', [breakpoints_1.DeviceBreakpointsType.MOBILE]: { padding: `${spacings_1.SPACINGS.spacing_250} ${spacings_1.SPACINGS.spacing_0} ${spacings_1.SPACINGS.spacing_250} ${spacings_1.SPACINGS.spacing_0}`, }, }, }, [state_1.TabsStateTypes.UNSELECTED]: { label: { font_variant: variants_1.TextVariantType.PARAGRAPH_SMALL_EXPANDED, font_weight: typography_1.FONT_WEIGHT.font_weight_600, color: colors_1.COLORS.NEUTRAL.color_neutral_font_250, }, tabButton: { width: '100%', padding: `${spacings_1.SPACINGS.spacing_250} ${spacings_1.SPACINGS.spacing_500} ${spacings_1.SPACINGS.spacing_250} ${spacings_1.SPACINGS.spacing_500}`, background_color: colors_1.COLORS.NEUTRAL.color_neutral_bg_50, cursor: 'pointer', [breakpoints_1.DeviceBreakpointsType.MOBILE]: { padding: `${spacings_1.SPACINGS.spacing_250} ${spacings_1.SPACINGS.spacing_0} ${spacings_1.SPACINGS.spacing_250} ${spacings_1.SPACINGS.spacing_0}`, }, }, }, [state_1.TabsStateTypes.EMPTY]: { tabButton: { padding: spacings_1.SPACINGS.spacing_0, min_height: '3rem', }, }, }, }; //# sourceMappingURL=styles.js.map