@devlander/styled-components-theme
Version:
Devlander's team utilizes this package during the development of their React Native projects. Its primary purpose is to facilitate code reuse by sharing types across multiple projects that uses the styled-components library.
22 lines (21 loc) • 860 B
TypeScript
import { ColorNameOrValueFromTheme } from './color.types';
import { TroubleShootingProps } from './troubleshoot.interface';
export interface ImageStyle<ValueType = number> {
backgroundColorFromTheme: ColorNameOrValueFromTheme;
maxWidth: ValueType;
borderBottomRightRadius: ValueType;
borderColorFromTheme: ColorNameOrValueFromTheme;
borderTopRightRadius: ValueType;
maxHeight: ValueType;
height: ValueType;
width: ValueType;
borderRadius: ValueType;
borderWidth: ValueType;
borderBottomLeftRadius: ValueType;
borderTopLeftRadius: ValueType;
}
export interface ImageStyleWithThemeGeneric<Theme, CSSPropertyTypes = number> extends ImageStyle<CSSPropertyTypes>, TroubleShootingProps {
theme: Theme;
}
export interface ImageStyleFromProps<T, U> extends ImageStyleWithThemeGeneric<T, U>, TroubleShootingProps {
}