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 5.25 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getCheckboxWithLabelStyles = void 0; const state_1 = require("../../../../../components/checkboxWithLabel/types/state"); const spacings_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/spacings"); const typography_1 = require("../../../../../designSystem/kubitWireframe/commons/foundations/typography"); const variants_1 = require("../variants"); const variants_2 = require("./variants"); const descriptionHelperTextContainerCommonProps = { padding_left: spacings_1.SPACINGS.spacing_450, gap: spacings_1.SPACINGS.spacing_150, }; const getCheckboxWithLabelStyles = (COLORS) => { return { [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.NEUTRAL.color_neutral_bg_100, }, labelWhenDescription: { font_variant: variants_1.TextVariantType.DEFAULT, font_weight: typography_1.FONT_WEIGHT.font_weight_600, color: 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.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.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.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.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.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.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.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.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.NEUTRAL.color_neutral_bg_100, }, helperText: { font_variant: variants_1.TextVariantType.DEFAULT, font_weight: typography_1.FONT_WEIGHT.font_weight_400, color: COLORS.ACCENT.color_accent_default_bg_100, }, }, }, }; }; exports.getCheckboxWithLabelStyles = getCheckboxWithLabelStyles; //# sourceMappingURL=styles.js.map