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

101 lines 4.74 kB
import { CheckboxWithLabelState } from '../../../../../components/checkboxWithLabel/types/state'; import { SPACINGS } from '../../../../../designSystem/kubitWireframe/commons/foundations/spacings'; import { FONT_WEIGHT } from '../../../../../designSystem/kubitWireframe/commons/foundations/typography'; import { TextVariantType } from '../variants'; import { CheckboxWithLabelVariants } from './variants'; const descriptionHelperTextContainerCommonProps = { padding_left: SPACINGS.spacing_450, gap: SPACINGS.spacing_150, }; export const getCheckboxWithLabelStyles = (COLORS) => { return { [CheckboxWithLabelVariants.DEFAULT]: { [CheckboxWithLabelState.DEFAULT_UNSELECTED]: { label: { font_variant: TextVariantType.DEFAULT, font_weight: FONT_WEIGHT.font_weight_400, color: COLORS.NEUTRAL.color_neutral_bg_100, }, labelWhenDescription: { font_variant: TextVariantType.DEFAULT, font_weight: FONT_WEIGHT.font_weight_600, color: COLORS.NEUTRAL.color_neutral_bg_100, }, descriptionHelperTextContainer: { ...descriptionHelperTextContainerCommonProps, }, }, [CheckboxWithLabelState.DEFAULT_SELECTED]: { label: { font_variant: TextVariantType.PARAGRAPH_MEDIUM_EXTENDED, font_weight: FONT_WEIGHT.font_weight_400, color: COLORS.NEUTRAL.color_neutral_bg_100, }, labelWhenDescription: { font_variant: TextVariantType.PARAGRAPH_MEDIUM_EXTENDED, font_weight: FONT_WEIGHT.font_weight_600, color: COLORS.NEUTRAL.color_neutral_bg_100, }, descriptionHelperTextContainer: { ...descriptionHelperTextContainerCommonProps, }, }, [CheckboxWithLabelState.DISABLED_UNSELECTED]: { label: { font_variant: TextVariantType.PARAGRAPH_MEDIUM_EXTENDED, font_weight: FONT_WEIGHT.font_weight_400, color: COLORS.NEUTRAL.color_neutral_bg_100, }, labelWhenDescription: { font_variant: TextVariantType.PARAGRAPH_MEDIUM_EXTENDED, font_weight: FONT_WEIGHT.font_weight_600, color: COLORS.NEUTRAL.color_neutral_bg_100, }, descriptionHelperTextContainer: { ...descriptionHelperTextContainerCommonProps, }, }, [CheckboxWithLabelState.DISABLED_SELECTED]: { label: { font_variant: TextVariantType.PARAGRAPH_MEDIUM_EXTENDED, font_weight: FONT_WEIGHT.font_weight_400, color: COLORS.NEUTRAL.color_neutral_bg_100, }, labelWhenDescription: { font_variant: TextVariantType.PARAGRAPH_MEDIUM_EXTENDED, font_weight: FONT_WEIGHT.font_weight_600, color: COLORS.NEUTRAL.color_neutral_bg_100, }, descriptionHelperTextContainer: { ...descriptionHelperTextContainerCommonProps, }, }, [CheckboxWithLabelState.ERROR]: { label: { font_variant: TextVariantType.PARAGRAPH_MEDIUM_EXTENDED, font_weight: FONT_WEIGHT.font_weight_400, color: COLORS.NEUTRAL.color_neutral_bg_100, }, labelWhenDescription: { font_variant: TextVariantType.PARAGRAPH_MEDIUM_EXTENDED, font_weight: FONT_WEIGHT.font_weight_600, color: COLORS.NEUTRAL.color_neutral_bg_100, }, descriptionHelperTextContainer: { ...descriptionHelperTextContainerCommonProps, }, description: { font_variant: TextVariantType.PARAGRAPH_MEDIUM_EXTENDED, font_weight: FONT_WEIGHT.font_weight_400, color: COLORS.NEUTRAL.color_neutral_bg_100, }, helperText: { font_variant: TextVariantType.DEFAULT, font_weight: FONT_WEIGHT.font_weight_400, color: COLORS.ACCENT.color_accent_default_bg_100, }, }, }, }; }; //# sourceMappingURL=styles.js.map