Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
tag: string,
) => (
styles: CssLikeObject,
dynamicTemplate?: (props: IStyledComponentProps) => CssLikeObject,
block?: string,
) => React.FunctionComponent;
}
const nano = create({ h: React.createElement });
addonRule(nano);
addonAtoms(nano);
addonKeyframes(nano);
addonJSX(nano);
addonStyle(nano);
addonStyled(nano);
addonNesting(nano);
const { keyframes, styled } = nano as INanoExtended;
export const px = (val: string | number): string => (typeof val === 'number' ? `${val}px` : val);
export function getMergedStyles(styles: IStylesProps | undefined): IStylesOptions {
return {
altColor: '#ccc',
bgColor: '#fff',
color: '#333',
errorColor: '#a60000',
height: 48,
loaderColor: '#ccc',
loaderSize: 32,
savedColor: '#1cb954',