-
Notifications
You must be signed in to change notification settings - Fork 843
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Palette again using similar hues as before
- Loading branch information
cchaos
committed
Dec 18, 2019
1 parent
ebd088c
commit 5ced4fc
Showing
23 changed files
with
172 additions
and
224 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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React from 'react'; | ||
import classNames from 'classnames'; | ||
|
||
import { | ||
EuiFlexItem, | ||
EuiCopy, | ||
EuiCode, | ||
EuiLink, | ||
} from '../../../../src/components'; | ||
|
||
export const ColorPaletteFlexItem = ({ hexCode, className, ...rest }) => { | ||
return ( | ||
<EuiFlexItem | ||
key={hexCode} | ||
grow={false} | ||
className={classNames('guideColorPalette__swatch', className)} | ||
{...rest}> | ||
<span title={hexCode} style={{ backgroundColor: hexCode }} /> | ||
</EuiFlexItem> | ||
); | ||
}; | ||
|
||
export const ColorPaletteCopyCode = ({ textToCopy, code }) => { | ||
return ( | ||
<span> | ||
<EuiCopy | ||
beforeMessage="Click to copy palette config" | ||
textToCopy={textToCopy}> | ||
{copy => ( | ||
<EuiLink onClick={copy}> | ||
<EuiCode>{code}</EuiCode> | ||
</EuiLink> | ||
)} | ||
</EuiCopy> | ||
</span> | ||
); | ||
}; |
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
Oops, something went wrong.