11/// <reference types="react" />
22
33import * as React from 'react'
4+ import * as styledComponents from 'styled-components'
5+
46
57interface InputType {
68 checked ?: boolean
@@ -48,11 +50,12 @@ interface MarginProps {
4850}
4951
5052interface BorderProps {
53+ border ?: OptionalThemeProp
5154 borderTop ?: OptionalThemeProp
5255 borderRight ?: OptionalThemeProp
5356 borderBottom ?: OptionalThemeProp
5457 borderLeft ?: OptionalThemeProp
55- bordeColor ?: OptionalThemeProp
58+ borderColor ?: OptionalThemeProp
5659 borderRadius ?: OptionalThemeProp
5760 boxShadow ?: OptionalThemeProp
5861}
@@ -89,7 +92,7 @@ interface FlexProps {
8992 order ?: OptionalThemeProp
9093}
9194
92- interface BorderProps {
95+ interface BackgroundProps {
9396 background ?: OptionalThemeProp
9497 backgroundColor ?: OptionalThemeProp
9598 backgroundImage ?: OptionalThemeProp
@@ -139,7 +142,8 @@ export interface BoxProps
139142 BorderProps ,
140143 FlexProps ,
141144 FontProps ,
142- DimensionsProps {
145+ DimensionsProps ,
146+ BackgroundProps {
143147 as ?: string | React . ComponentType
144148}
145149
@@ -267,12 +271,12 @@ export interface ColProps extends BoxProps {
267271
268272export const Col : React . FunctionComponent < ColProps >
269273
270- export interface ControllFeedbackProps {
274+ export interface ControlFeedbackProps {
271275 valid : boolean
272276 children ?: React . ReactNode
273277}
274278
275- export const ControllFeedback : React . FunctionComponent < ControllFeedbackProps >
279+ export const ControlFeedback : React . FunctionComponent < ControlFeedbackProps >
276280
277281export interface SelectProps
278282 extends Omit < React . HTMLProps < HTMLSelectElement > , BoxProps & { size : any } > ,
@@ -615,7 +619,7 @@ export const px: ReturnType<typeof unit>
615619interface styleArg {
616620 prop : string
617621 cssProperty : string
618- trasform : Function
622+ transform : Function
619623 variants : Array < string >
620624}
621625
@@ -627,7 +631,7 @@ export const composeStyles: (
627631
628632export const globalStyle : ( customTheme : ThemeType ) => Array < string >
629633
630- export interface ModalProps {
634+ export interface ModalProps extends BoxProps {
631635 children ?: React . ReactNode
632636 opened ?: boolean
633637 onClose ?: ( ) => void
@@ -717,17 +721,19 @@ export const mediaBetweenWidth: (
717721 max : string | number ,
718722) => string
719723
720- export const up : ( name : string | number , code : string ) => ( props : Object ) => any
724+ export type ResponsiveUtilityStyles = string | styledComponents . FlattenSimpleInterpolation
725+
726+ export const up : ( name : string | number , code : ResponsiveUtilityStyles ) => ( props : Object ) => any
721727
722728export const down : (
723729 name : string | number ,
724- code : string ,
730+ code : ResponsiveUtilityStyles ,
725731) => ( props : Object ) => any
726732
727733export const between : (
728734 lower : string | number ,
729735 upper : string | number ,
730- code : string ,
736+ code : ResponsiveUtilityStyles ,
731737) => ( props : Object ) => any
732738
733739export interface StyleResult extends ReturnType < typeof style > { }
0 commit comments