-
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(Checkbox|Flag|Image|Radio): propTypes cleanups and typings upda…
…te (#1155) * style(Checkbox|Flag|Image|Radio): propTypes cleanups * chore(commonTest): remove obsolete assertions * fix(EmbedTest): fix lint issue * test(commonTest): update commonTests * style(EmbedTest): fix lint issue
- Loading branch information
1 parent
60f0985
commit ff68268
Showing
35 changed files
with
223 additions
and
212 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
import { CheckboxProps } from '../../modules/Checkbox/index'; | ||
import * as React from 'react'; | ||
|
||
export const Radio: React.ComponentClass<CheckboxProps>; | ||
interface RadioProps { | ||
[key: string]: any; | ||
|
||
/** Format to emphasize the current selection state. */ | ||
slider?: boolean; | ||
|
||
/** Format to show an on or off choice. */ | ||
toggle?: boolean; | ||
|
||
/** HTML input type, either checkbox or radio. */ | ||
type?: 'checkbox' | 'radio'; | ||
} | ||
|
||
export const Radio: React.StatelessComponent<RadioProps>; |
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,19 +1,17 @@ | ||
import { ReactMouseEvents, SemanticCOUNTRY } from '../..'; | ||
import * as React from 'react'; | ||
import { SemanticCOUNTRY } from '../..'; | ||
|
||
// Flag | ||
// ---------------------------------- | ||
interface FlagProps extends ReactMouseEvents<any> { | ||
interface FlagProps { | ||
[key: string]: any; | ||
|
||
/** An element type to render as (string or function). */ | ||
as?: any; | ||
|
||
/** Additional classes. */ | ||
className?: string; | ||
|
||
/** Flag name, can use the two digit country code, the full name, or a common alias */ | ||
/** Flag name, can use the two digit country code, the full name, or a common alias. */ | ||
name: SemanticCOUNTRY, | ||
} | ||
|
||
export class Flag extends React.Component<FlagProps, void> { | ||
} | ||
export const Flag : React.StatelessComponent<FlagProps>; |
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
Oops, something went wrong.