@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
62 lines • 2.13 kB
JavaScript
import { COLORS } from '../../foundations/colors';
import { SPACINGS } from '../../foundations/spacings';
import { FONT_WEIGHT } from '../../foundations/typography';
import { TextVariantType } from '../text/variants';
import { StepperProgressVariants } from './variants';
const commonProps = {
container: {
display: 'flex',
flex_direction: 'column',
width: 'auto',
},
progress: {
width: '100%',
height: SPACINGS.spacing_100,
border_style: 'none',
webkitProgressBar: {
background_color: COLORS.NEUTRAL.color_neutral_border_200,
border_style: 'none',
},
webkitProgressValue: {
background_color: COLORS.ACCENT.color_accent_default_bg_100,
border_style: 'none',
},
mozProgressBar: {
background_color: COLORS.ACCENT.color_accent_default_bg_100,
border_style: 'none',
},
},
helpTextContainer: {
width: 'fit-content',
margin_top: SPACINGS.spacing_150,
},
};
export const STEPPER_PROGRESS_STYLES = {
[StepperProgressVariants.DEFAULT]: {
...commonProps,
currentStep: {
font_variant: TextVariantType.PARAGRAPH_SMALL_EXTENDED,
font_weight: FONT_WEIGHT.font_weight_600,
color: COLORS.NEUTRAL.color_neutral_font_50,
},
maxStep: {
font_variant: TextVariantType.PARAGRAPH_SMALL_EXTENDED,
font_weight: FONT_WEIGHT.font_weight_400,
color: COLORS.NEUTRAL.color_neutral_font_50,
},
},
[StepperProgressVariants.ALTERNATIVE]: {
...commonProps,
currentStep: {
font_variant: TextVariantType.PARAGRAPH_SMALL_EXTENDED,
font_weight: FONT_WEIGHT.font_weight_600,
color: COLORS.NEUTRAL.color_neutral_font_250,
},
maxStep: {
font_variant: TextVariantType.PARAGRAPH_SMALL_EXTENDED,
font_weight: FONT_WEIGHT.font_weight_400,
color: COLORS.NEUTRAL.color_neutral_font_250,
},
},
};
//# sourceMappingURL=styles.js.map