@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
94 lines • 3.17 kB
JavaScript
import { InputContentPosition, InputHelpMessagePosition, InputState, } from '../../../../components/input/types/inputTheme';
import { BORDERS } from '../../foundations/borders';
import { COLORS } from '../../foundations/colors';
import { SPACINGS } from '../../foundations/spacings';
import { FONT_WEIGHT } from '../../foundations/typography';
import { TextVariantType } from '../text/variants';
import { InputCurrencyVariant } from './variants';
const commonProps = {
currencyNameContainer: {
gap: SPACINGS.spacing_150,
width: SPACINGS.spacing_600,
height: SPACINGS.spacing_500,
border_radius: BORDERS.border_00,
marginLeftOrRightByIsOutAndPosition: SPACINGS.spacing_150,
},
currencyNameContainerPosition: InputContentPosition.INNER,
currencyName: {
font_variant: TextVariantType.PARAGRAPH_MEDIUM_EXTENDED,
font_weight: FONT_WEIGHT.font_weight_500,
color: COLORS.NEUTRAL.color_neutral_font_50,
},
helpMessage: {
position: InputHelpMessagePosition.BOTTOM,
},
inputVariant: InputCurrencyVariant.DEFAULT,
};
const defaultCommonProps = {
...commonProps,
inputVariant: InputCurrencyVariant.DEFAULT,
};
const disabledCommonProps = {
currencyNameContainer: {
...commonProps.currencyNameContainer,
},
currencyName: {
...commonProps.currencyName,
color: COLORS.ACCENT.color_accent_default_font_100,
},
};
export const INPUT_CURRENCY_STYLES = {
[]: {
[]: {
...defaultCommonProps,
inputIcon: {
color: COLORS.ACCENT.color_accent_default_icon_100,
},
},
[]: {
...defaultCommonProps,
inputIcon: {
color: COLORS.ACCENT.color_accent_default_icon_100,
},
},
[]: {
...defaultCommonProps,
},
[]: {
...defaultCommonProps,
currencyName: {
...commonProps.currencyName,
color: COLORS.DISABLED.color_accentDisabled_font_50,
},
},
[]: {
...defaultCommonProps,
...disabledCommonProps,
currencyName: {
...commonProps.currencyName,
color: COLORS.DISABLED.color_accentDisabled_font_50,
},
},
[]: {
...defaultCommonProps,
...disabledCommonProps,
currencyName: {
...commonProps.currencyName,
color: COLORS.DISABLED.color_accentDisabled_font_50,
},
},
[]: {
...defaultCommonProps,
},
[]: {
...defaultCommonProps,
},
[]: {
...defaultCommonProps,
},
[]: {
...defaultCommonProps,
},
},
};
//# sourceMappingURL=styles.js.map