-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #505 from catho/QTM-493
fix(QTM-493): Updates component types
- Loading branch information
Showing
69 changed files
with
962 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import { ComponentType } from 'react'; | ||
import { FC, HTMLAttributes, ReactNode } from 'react'; | ||
|
||
type Content = ComponentType<{ | ||
export interface ContentProps extends HTMLAttributes<HTMLDivElement> { | ||
theme?: { baseFontSize?: number; spacing?: object }; | ||
}> & { | ||
displayName: 'Card.Content'; | ||
}; | ||
children: ReactNode | ReactNode[]; | ||
} | ||
|
||
export default Content; | ||
declare const Content: FC<ContentProps>; | ||
|
||
export default Content; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
import { ComponentType } from 'react'; | ||
import { ReactNode, FC, HTMLAttributes } from 'react'; | ||
|
||
type Description = ComponentType<{ | ||
export interface DescriptionProps extends HTMLAttributes<HTMLDivElement> { | ||
small?: boolean; | ||
theme?: { baseFontSize?: number; spacing?: object }; | ||
}> & { | ||
displayName: 'Card.Description'; | ||
}; | ||
children: ReactNode | ReactNode[]; | ||
} | ||
|
||
declare const Description: FC<DescriptionProps>; | ||
|
||
export default Description; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import { ComponentType } from 'react'; | ||
import { FC, HTMLAttributes, ReactNode } from 'react'; | ||
|
||
type Footer = ComponentType<{ | ||
export interface FooterProps extends HTMLAttributes<HTMLElement> { | ||
theme?: { spacing?: object }; | ||
}> & { | ||
displayName: 'Card.Footer'; | ||
}; | ||
children: ReactNode | ReactNode[]; | ||
} | ||
|
||
declare const Footer: FC<FooterProps>; | ||
|
||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import { ComponentType } from 'react'; | ||
import { FC, HTMLAttributes, ReactNode } from 'react'; | ||
|
||
type Header = ComponentType<{ | ||
export interface HeaderProps extends HTMLAttributes<HTMLElement> { | ||
theme?: { spacing?: object }; | ||
}> & { | ||
displayName: 'Card.Header'; | ||
}; | ||
children: ReactNode | ReactNode[]; | ||
} | ||
|
||
declare const Header: FC<HeaderProps>; | ||
|
||
export default Header; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import { ComponentType } from 'react'; | ||
import { FC, HTMLAttributes, ReactNode } from 'react'; | ||
|
||
type HeaderText = ComponentType & { | ||
displayName: 'Card.HeaderText'; | ||
}; | ||
export interface HeaderTextProps extends HTMLAttributes<HTMLDivElement> { | ||
children: ReactNode | ReactNode[]; | ||
} | ||
|
||
declare const HeaderText: FC<HeaderTextProps>; | ||
|
||
export default HeaderText; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
import { ComponentType } from 'react'; | ||
import { FC, HTMLAttributes } from 'react'; | ||
|
||
type Media = ComponentType<{ | ||
className?: string; | ||
style?: {}; | ||
export interface MediaProps extends HTMLAttributes<HTMLImageElement> { | ||
theme?: { colors?: {}; spacing?: {} }; | ||
}> & { | ||
displayName: 'Card.Media'; | ||
}; | ||
} | ||
|
||
declare const Media: FC<MediaProps>; | ||
|
||
export default Media; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { ComponentType } from 'react'; | ||
import { FC, HTMLAttributes } from 'react'; | ||
|
||
type Thumbnail = ComponentType<{ | ||
export interface ThumbnailProps extends HTMLAttributes<HTMLImageElement> { | ||
src: string; | ||
alt: string; | ||
rounded?: boolean; | ||
theme?: { colors?: object }; | ||
}> & { | ||
displayName: 'Card.Thumbnail'; | ||
}; | ||
} | ||
|
||
declare const Thumbnail: FC<ThumbnailProps>; | ||
|
||
export default Thumbnail; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { ComponentType } from 'react'; | ||
import { FC, HTMLAttributes } from 'react'; | ||
|
||
type Title = ComponentType<{ | ||
export interface TitleProps extends HTMLAttributes<HTMLHeadingElement> { | ||
small?: boolean; | ||
theme?: { baseFontSize?: object }; | ||
}> & { | ||
displayName: 'Card.Title'; | ||
}; | ||
} | ||
|
||
export default Title; | ||
declare const Title: FC<TitleProps>; | ||
|
||
export default Title; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.