-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* try referencing display color * comment out * fixes * add data-vis colors * Update docs/storybook/stories/Color/DataVis/Charts.stories.tsx * Update docs/storybook/stories/Color/DataVis/Charts.stories.tsx * Update docs/storybook/stories/Color/DataVis/Charts.stories.tsx * rename * temp display scale stories * address feedback * Create eleven-kings-hug.md * fix snaps * github-actions[bot] Regenerated snapshots --------- Co-authored-by: Lukas Oppermann <lukasoppermann@github.com> Co-authored-by: langermank <langermank@users.noreply.github.com>
- Loading branch information
1 parent
009bcd7
commit f959cc7
Showing
15 changed files
with
479 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@primer/primitives": patch | ||
--- | ||
|
||
Add alpha data-vis colors |
Binary file added
BIN
+43.3 KB
...-datavis--highcharts-accent-colors-all-themes-dark-colorblind-theme-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+43.8 KB
...tavis--highcharts-accent-colors-all-themes-dark-high-contrast-theme-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+43.3 KB
...ybook-color-datavis--highcharts-accent-colors-all-themes-dark-theme-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+43.3 KB
...-datavis--highcharts-accent-colors-all-themes-dark-tritanopia-theme-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+42.9 KB
...datavis--highcharts-accent-colors-all-themes-light-colorblind-theme-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+43.5 KB
...avis--highcharts-accent-colors-all-themes-light-high-contrast-theme-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+42.9 KB
...book-color-datavis--highcharts-accent-colors-all-themes-light-theme-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+42.9 KB
...datavis--highcharts-accent-colors-all-themes-light-tritanopia-theme-1-linux.png
Loading
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import React from 'react' | ||
// eslint-disable-next-line import/extensions | ||
import colorTokens from '../../../../../tokens-next-private/docs/functional/themes/light.json' | ||
import {ColorTokenSwatch} from '../../StorybookComponents/ColorTokenSwatch/ColorTokenSwatch' | ||
import {DataTable, Table} from '@primer/react/drafts' | ||
import {InlineCode} from '../../StorybookComponents/InlineCode/InlineCode' | ||
import {getTokensByName} from '../../utilities/getTokensByName' | ||
|
||
export default { | ||
title: 'Color/DataVis', | ||
tags: ['excludeSnapshot'], | ||
parameters: { | ||
controls: {hideNoControlsWarning: true}, | ||
options: { | ||
showPanel: false, | ||
}, | ||
}, | ||
} | ||
|
||
export const HighchartsAccentColors = () => { | ||
const data = getTokensByName(colorTokens, 'data').map(token => { | ||
return { | ||
id: token.name, | ||
...token, | ||
} | ||
}) | ||
return ( | ||
<Table.Container> | ||
<Table.Title as="h1" id="pattern"> | ||
Data visualization | ||
</Table.Title> | ||
<DataTable | ||
aria-labelledby="pattern" | ||
data={data} | ||
columns={[ | ||
{ | ||
header: 'Sample', | ||
field: 'name', | ||
rowHeader: true, | ||
renderCell: row => { | ||
return <ColorTokenSwatch bgColor={row.name} /> | ||
}, | ||
}, | ||
{ | ||
header: 'Token', | ||
field: 'name', | ||
rowHeader: true, | ||
renderCell: row => { | ||
return <InlineCode value={row.name} copyClipboard /> | ||
}, | ||
}, | ||
{ | ||
header: 'Output value', | ||
field: 'value', | ||
rowHeader: true, | ||
renderCell: row => { | ||
return <p>{row.value}</p> | ||
}, | ||
}, | ||
]} | ||
/> | ||
</Table.Container> | ||
) | ||
} | ||
HighchartsAccentColors.tags = ['excludeSnapshot'] |
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.