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

103 lines 4.88 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CHECKBOX_WITH_LABEL_STYLES = void 0; const state_1 = require("../../../../components/checkboxWithLabel/types/state"); 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 descriptionHelperTextContainerCommonProps = { padding_left: spacings_1.SPACINGS.spacing_450, gap: spacings_1.SPACINGS.spacing_150, }; exports.CHECKBOX_WITH_LABEL_STYLES = { [variants_2.CheckboxWithLabelVariants.DEFAULT]: { [state_1.CheckboxWithLabelState.DEFAULT_UNSELECTED]: { label: { font_variant: variants_1.TextVariantType.DEFAULT, font_weight: typography_1.FONT_WEIGHT.font_weight_400, color: colors_1.COLORS.NEUTRAL.color_neutral_bg_100, }, labelWhenDescription: { font_variant: variants_1.TextVariantType.DEFAULT, font_weight: typography_1.FONT_WEIGHT.font_weight_600, color: colors_1.COLORS.NEUTRAL.color_neutral_bg_100, }, descriptionHelperTextContainer: { ...descriptionHelperTextContainerCommonProps, }, }, [state_1.CheckboxWithLabelState.DEFAULT_SELECTED]: { label: { font_variant: variants_1.TextVariantType.PARAGRAPH_MEDIUM_EXTENDED, font_weight: typography_1.FONT_WEIGHT.font_weight_400, color: colors_1.COLORS.NEUTRAL.color_neutral_bg_100, }, labelWhenDescription: { font_variant: variants_1.TextVariantType.PARAGRAPH_MEDIUM_EXTENDED, font_weight: typography_1.FONT_WEIGHT.font_weight_600, color: colors_1.COLORS.NEUTRAL.color_neutral_bg_100, }, descriptionHelperTextContainer: { ...descriptionHelperTextContainerCommonProps, }, }, [state_1.CheckboxWithLabelState.DISABLED_UNSELECTED]: { label: { font_variant: variants_1.TextVariantType.PARAGRAPH_MEDIUM_EXTENDED, font_weight: typography_1.FONT_WEIGHT.font_weight_400, color: colors_1.COLORS.NEUTRAL.color_neutral_bg_100, }, labelWhenDescription: { font_variant: variants_1.TextVariantType.PARAGRAPH_MEDIUM_EXTENDED, font_weight: typography_1.FONT_WEIGHT.font_weight_600, color: colors_1.COLORS.NEUTRAL.color_neutral_bg_100, }, descriptionHelperTextContainer: { ...descriptionHelperTextContainerCommonProps, }, }, [state_1.CheckboxWithLabelState.DISABLED_SELECTED]: { label: { font_variant: variants_1.TextVariantType.PARAGRAPH_MEDIUM_EXTENDED, font_weight: typography_1.FONT_WEIGHT.font_weight_400, color: colors_1.COLORS.NEUTRAL.color_neutral_bg_100, }, labelWhenDescription: { font_variant: variants_1.TextVariantType.PARAGRAPH_MEDIUM_EXTENDED, font_weight: typography_1.FONT_WEIGHT.font_weight_600, color: colors_1.COLORS.NEUTRAL.color_neutral_bg_100, }, descriptionHelperTextContainer: { ...descriptionHelperTextContainerCommonProps, }, }, [state_1.CheckboxWithLabelState.ERROR]: { label: { font_variant: variants_1.TextVariantType.PARAGRAPH_MEDIUM_EXTENDED, font_weight: typography_1.FONT_WEIGHT.font_weight_400, color: colors_1.COLORS.NEUTRAL.color_neutral_bg_100, }, labelWhenDescription: { font_variant: variants_1.TextVariantType.PARAGRAPH_MEDIUM_EXTENDED, font_weight: typography_1.FONT_WEIGHT.font_weight_600, color: colors_1.COLORS.NEUTRAL.color_neutral_bg_100, }, descriptionHelperTextContainer: { ...descriptionHelperTextContainerCommonProps, }, description: { font_variant: variants_1.TextVariantType.PARAGRAPH_MEDIUM_EXTENDED, font_weight: typography_1.FONT_WEIGHT.font_weight_400, color: colors_1.COLORS.NEUTRAL.color_neutral_bg_100, }, helperText: { font_variant: variants_1.TextVariantType.DEFAULT, font_weight: typography_1.FONT_WEIGHT.font_weight_400, color: colors_1.COLORS.ACCENT.color_accent_default_bg_100, }, }, }, }; //# sourceMappingURL=styles.js.map