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

107 lines 4.38 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RADIO_BUTTON_GROUP_STYLES = void 0; const state_1 = require("../../../../components/radioButtonGroup/components/radioButton/types/state"); const tooltipAlign_1 = require("../../../../components/tooltip/types/tooltipAlign"); const borders_1 = require("../../foundations/borders"); 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 variants_1 = require("../text/variants"); const variants_2 = require("../variants"); const variants_3 = require("./variants"); const commonVariantsTokens = { title: { font_variant: variants_1.TextVariantType.PARAGRAPH_MEDIUM_EXTENDED, color: colors_1.COLORS.NEUTRAL.color_neutral_font_50, font_weight: typography_1.FONT_WEIGHT.font_weight_500, text_align: typography_1.TEXT_ALIGN.left, margin_bottom: spacings_1.SPACINGS.spacing_150, margin_right: spacings_1.SPACINGS.spacing_150, }, rowContainer: { row_gap: spacings_1.SPACINGS.spacing_150, column_gap: spacings_1.SPACINGS.spacing_150, margin_bottom: spacings_1.SPACINGS.spacing_400, }, radioButton: { border_radius: borders_1.RADIUS.radius_circle, height: spacings_1.SPACINGS.spacing_400, width: spacings_1.SPACINGS.spacing_400, border_style: 'solid', border_width: borders_1.BORDERS.border_50, }, label: { font_variant: variants_1.TextVariantType.PARAGRAPH_SMALL_EXTENDED, font_weight: typography_1.FONT_WEIGHT.font_weight_500, color: colors_1.COLORS.NEUTRAL.color_neutral_font_50, }, sublabel: { font_variant: variants_1.TextVariantType.PARAGRAPH_SMALL_EXTENDED, font_weight: typography_1.FONT_WEIGHT.font_weight_400, color: colors_1.COLORS.NEUTRAL.color_neutral_font_50, }, icon: { height: sizes_1.SIZES.size_150, width: sizes_1.SIZES.size_150, border_radius: borders_1.RADIUS.radius_circle, }, tooltip: { icon: { background_width: sizes_1.SIZES.size_150, height: sizes_1.SIZES.size_150, width: sizes_1.SIZES.size_150, }, variant: variants_2.TooltipVariantType.DEFAULT, align: tooltipAlign_1.TooltipAlignType.RIGHT, }, }; const radioButtonDefaultTokens = { [state_1.RadioButtonStateType.DEFAULT]: { ...commonVariantsTokens, radioButton: { ...commonVariantsTokens.radioButton, background_color: colors_1.COLORS.NEUTRAL.color_neutral_bg_250, border_color: colors_1.COLORS.NEUTRAL.color_neutral_border_100, }, }, [state_1.RadioButtonStateType.SELECTED]: { ...commonVariantsTokens, radioButton: { ...commonVariantsTokens.radioButton, background_color: colors_1.COLORS.NEUTRAL.color_neutral_bg_250, border_color: colors_1.COLORS.ACCENT.color_accent_default_border_100, }, icon: { ...commonVariantsTokens.icon, background_color: colors_1.COLORS.ACCENT.color_accent_default_icon_100, }, }, [state_1.RadioButtonStateType.DISABLED]: { ...commonVariantsTokens, radioButton: { ...commonVariantsTokens.radioButton, cursor: 'not-allowed', background_color: colors_1.COLORS.DISABLED.color_accentDisabled_bg_150, border_color: colors_1.COLORS.DISABLED.color_accentDisabled_border_50, }, }, [state_1.RadioButtonStateType.DISABLED_SELECTED]: { ...commonVariantsTokens, radioButton: { ...commonVariantsTokens.radioButton, cursor: 'not-allowed', background_color: colors_1.COLORS.DISABLED.color_accentDisabled_bg_150, border_color: colors_1.COLORS.DISABLED.color_accentDisabled_border_50, }, icon: { ...commonVariantsTokens.icon, background_color: colors_1.COLORS.DISABLED.color_accentDisabled_icon_50, }, }, }; exports.RADIO_BUTTON_GROUP_STYLES = { [variants_3.RadioButtonGroupVariantType.DEFAULT]: radioButtonDefaultTokens, }; //# sourceMappingURL=styles.js.map