@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
100 lines • 4.32 kB
JavaScript
import { CheckboxWithLabelState } from '../../../../components/checkboxWithLabel/types/state';
import { COLORS } from '../../foundations/colors';
import { SPACINGS } from '../../foundations/spacings';
import { FONT_WEIGHT } from '../../foundations/typography';
import { TextVariantType } from '../text/variants';
import { CheckboxWithLabelVariants } from './variants';
const descriptionHelperTextContainerCommonProps = {
padding_left: SPACINGS.spacing_450,
gap: SPACINGS.spacing_150,
};
export const CHECKBOX_WITH_LABEL_STYLES = {
[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