Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
All svg formatting is fixed and at parity with master
Still need to expose the remaining non-theme svgs
- Loading branch information
1 parent
9ab3fc4
commit a3cc1ba
Showing
9 changed files
with
96 additions
and
46 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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// Copyright (c) Jupyter Development Team. | ||
// Distributed under the terms of the Modified BSD License. | ||
|
||
import React, { ComponentType, HTMLAttributes } from 'react'; | ||
|
||
import { | ||
lineFormButtonDiv, | ||
lineFormButtonIcon, | ||
lineFormButton | ||
} from '../style/lineForm'; | ||
|
||
/** | ||
* A namespace for LineFormButtonItem statics. | ||
*/ | ||
export namespace LineFormButtonItem { | ||
/** | ||
* Props for an LineFormButtonItem | ||
*/ | ||
export interface IProps { | ||
/** | ||
* The inline svg | ||
*/ | ||
SVG: ComponentType<HTMLAttributes<SVGElement>>; | ||
|
||
/** | ||
* The input type | ||
*/ | ||
type: string; | ||
|
||
/** | ||
* The input value | ||
*/ | ||
value: string; | ||
} | ||
} | ||
|
||
export function LineFormButtonItem( | ||
props: LineFormButtonItem.IProps & | ||
React.HTMLAttributes<SVGElement> & | ||
React.HTMLAttributes<HTMLInputElement> | ||
): React.ReactElement<LineFormButtonItem.IProps> { | ||
const { SVG, type, value, ...rest } = props; | ||
return ( | ||
<div className={lineFormButtonDiv}> | ||
<SVG className={lineFormButtonIcon} {...rest} /> | ||
<input type={type} className={lineFormButton} value={value} /> | ||
</div> | ||
); | ||
} |
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.