-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(Container|Divider|Header|Icon): propTypes cleanups and typings …
…update (#1159) * style(Icon): propTypes update * style(Container): propTypes and typings update * style(Divider): propTypes and typings update * style(Icon): propTypes and typings update * style(Header): propTypes and typings update * test(commonTests): remove obsolete tests * style(mixed): fix review comments
- Loading branch information
1 parent
cae54eb
commit 60f0985
Showing
11 changed files
with
223 additions
and
193 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,37 @@ | ||
import * as React from 'react'; | ||
|
||
// Divider | ||
// ---------------------------------- | ||
interface DividerProps { | ||
|
||
[key: string]: any; | ||
|
||
/** An element type to render as (string or function). */ | ||
as?: any; | ||
|
||
/** Primary content. */ | ||
/** Primary content. */ | ||
children?: React.ReactNode, | ||
|
||
/** Additional classes. */ | ||
className?: string; | ||
|
||
/** Divider can clear the content above it */ | ||
/** Divider can clear the content above it. */ | ||
clearing?: boolean, | ||
|
||
/** Divider can be fitted without any space above or below it */ | ||
/** Divider can be fitted without any space above or below it. */ | ||
fitted?: boolean, | ||
|
||
/** Divider can divide content without creating a dividing line */ | ||
/** Divider can divide content without creating a dividing line. */ | ||
hidden?: boolean, | ||
|
||
/** Divider can segment content horizontally */ | ||
/** Divider can segment content horizontally. */ | ||
horizontal?: boolean, | ||
|
||
/** Divider can have it's colours inverted */ | ||
/** Divider can have it's colours inverted. */ | ||
inverted?: boolean, | ||
/** Divider can provide greater margins to divide sections of content */ | ||
|
||
/** Divider can provide greater margins to divide sections of content. */ | ||
section?: boolean, | ||
|
||
/** Divider can segment content vertically */ | ||
/** Divider can segment content vertically. */ | ||
vertical?: boolean, | ||
} | ||
export class Divider extends React.Component<DividerProps, void> { | ||
} | ||
|
||
export const Container: React.StatelessComponent<DividerProps>; |
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.