Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v15.0.0 #1996

Merged
merged 160 commits into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
160 commits
Select commit Hold shift + click to select a range
6d4e0dc
docs: add release naming instructions (#1881)
booc0mtaco Mar 6, 2024
8218f3f
docs: clean up documentation post v14 (#1882)
booc0mtaco Mar 7, 2024
c331d7d
docs: add version tracking to storybook components (#1885)
booc0mtaco Mar 8, 2024
0596d31
chore(deps): update all non-major dependencies (#1887)
czi-developer-foundations Mar 11, 2024
3607a5d
feat: add new v2.0 component tokens (#1888)
booc0mtaco Mar 11, 2024
d5782cd
Merge branch 'next' into v15-components-2.0
booc0mtaco Mar 11, 2024
a6b446f
feat(Button)!: introduce v2.0 component (#1889)
booc0mtaco Mar 15, 2024
caa1e2c
chore(deps): update all non-major dependencies (#1893)
czi-developer-foundations Mar 18, 2024
e6fffa2
Merge branch 'next' into v15-components-2.0
booc0mtaco Mar 18, 2024
bdce10a
feat(Link)!: introduce v2.0 component (#1890)
booc0mtaco Mar 19, 2024
cc7e140
feat(NumberIcon)!: introduce 2.0 component (#1891)
booc0mtaco Mar 19, 2024
e952d33
feat(TabGroup)!: introduce 2.0 component (#1892)
booc0mtaco Mar 19, 2024
3f540f9
feat(Menu)!: introduce 2.0 component (#1894)
booc0mtaco Mar 19, 2024
8ef797f
feat(Radio)!: introduce 2.0 component (#1895)
booc0mtaco Mar 19, 2024
7179ec1
chore: nest V2 stories
booc0mtaco Mar 20, 2024
9b5ee4d
chore: update token names and values from design (#1896)
booc0mtaco Mar 20, 2024
88749a6
chore: update token usages
booc0mtaco Mar 20, 2024
f3fc767
feat(Checkbox)!: introduce 2.0 component (#1897)
booc0mtaco Mar 20, 2024
a3d3984
feat(InputField)!: introduce 2.0 component (#1898)
booc0mtaco Mar 21, 2024
e470f4b
feat(config)!: use literal values in style-dictionary config (#1900)
booc0mtaco Mar 22, 2024
1164b90
feat(Select)!: introduce 2.0 component (#1899)
booc0mtaco Mar 22, 2024
8026637
chore(deps): update all non-major dependencies (#1902)
czi-developer-foundations Mar 25, 2024
cf2086b
feat(Accordion)!: introduce 2.0 component (#1901)
booc0mtaco Mar 25, 2024
7bff52d
feat(InlineNotification)!: introduce 2.0 component (#1903)
booc0mtaco Mar 25, 2024
9dfd62d
Merge branch 'next' into v15-components-2.0
booc0mtaco Mar 25, 2024
cda9e4b
feat(BannerNotification)!: introduce 2.0 component (#1904)
booc0mtaco Mar 25, 2024
ded98b2
feat(Tooltip)!: introduce 2.0 component (#1905)
booc0mtaco Mar 25, 2024
8bce819
feat(Toast)!: introduce 2.0 component (#1906)
booc0mtaco Mar 26, 2024
d14c963
feat(Modal)!: introduce 2.0 component (#1907)
booc0mtaco Mar 27, 2024
cd21b49
feat(Card)!: introduce 2.0 component (#1908)
booc0mtaco Mar 28, 2024
8a84c3c
chore: clean up documentation TODOs
booc0mtaco Mar 29, 2024
9eb5aa4
refactor(util): add and use getIconNameFromStatus function (#1909)
booc0mtaco Mar 29, 2024
de40c14
chore(Toast): set the max width of the toast
booc0mtaco Apr 1, 2024
f6ebbdf
chore: convert TODOs into actionable tickets in backlog
booc0mtaco Apr 2, 2024
a68a255
feat(TextareaField)!: introduce 2.0 component (#1911)
booc0mtaco Apr 3, 2024
3a6f286
chore(deps): update all non-major dependencies (#1910)
czi-developer-foundations Apr 4, 2024
f28e361
Merge branch 'next' into v15-components-2.0
booc0mtaco Apr 4, 2024
4e3b684
chore(release): 15.0.0-alpha.0
booc0mtaco Apr 4, 2024
758eb2d
fix: disambiguate old token colors (#1913)
booc0mtaco Apr 4, 2024
cf2aa27
chore: add temporary 2.0 exports (#1914)
booc0mtaco Apr 5, 2024
4d73030
chore(release): 15.0.0-alpha.1
booc0mtaco Apr 5, 2024
11b8c18
chore(tokens): add in brand tokens and new pink tokens (#1916)
booc0mtaco Apr 16, 2024
665135f
chore(TextareaField): apply padding update (#1917)
booc0mtaco Apr 17, 2024
f4a541e
feat: add support for extended nav and action components (#1918)
booc0mtaco Apr 22, 2024
1a845c9
chore(deps): update all non-major dependencies (#1915)
czi-developer-foundations Apr 22, 2024
5cc5205
Merge branch 'next' into v15-components-2.0
booc0mtaco Apr 22, 2024
471243c
chore: export types (#1919)
booc0mtaco Apr 22, 2024
f3880fb
chore(release): 15.0.0-alpha.2
booc0mtaco Apr 22, 2024
ab666cf
feat(tokens)!: remove units from design system tokens (#1912)
booc0mtaco Apr 22, 2024
c4312d5
test: add snapshot tests to 2.0 components (#1920)
booc0mtaco Apr 22, 2024
f91f9ba
chore(ButtonGroup): align spacing with design (#1921)
booc0mtaco Apr 24, 2024
01bdd41
chore(Card): align card implementation to design (#1922)
booc0mtaco Apr 25, 2024
5070501
chore(release): 15.0.0-alpha.3
booc0mtaco Apr 26, 2024
3803cc9
chore(Card): update v2.0 export (#1924)
booc0mtaco Apr 29, 2024
9021f5c
chore(release): 15.0.0-alpha.4
booc0mtaco Apr 29, 2024
3e40638
feat(Icon)!: introduce 2.0 component (#1925)
booc0mtaco Apr 30, 2024
02968f4
chore(release): 15.0.0-alpha.5
booc0mtaco Apr 30, 2024
a825c6a
chore(Icon): swap transposed logos around (#1926)
booc0mtaco May 1, 2024
b288197
chore: update/reduce component props (#1927)
booc0mtaco May 1, 2024
d04e33e
docs: reorganize storybook documentation section (#1928)
booc0mtaco May 2, 2024
5066a7f
chore(deps): update all non-major dependencies
renovate-bot May 6, 2024
79fe2f5
Merge pull request #1923 from chanzuckerberg/renovate/all-minor-patch
timzchang May 6, 2024
23e3d5d
chore: add TODO
booc0mtaco May 6, 2024
c34f56c
Merge branch 'next' into v15-components-2.0
booc0mtaco May 6, 2024
189b154
chore(release): 15.0.0-alpha.6
booc0mtaco May 6, 2024
146df70
fix: sync color tokens with design (#1929)
booc0mtaco May 7, 2024
9c27510
docs: update Select and Tooltip (v2) documentation (#1930)
booc0mtaco May 7, 2024
c6c7e30
chore(Tooltip): clean up bad story parameters
booc0mtaco May 8, 2024
01a9d71
fix(Button): align disabled treatment to latest design (#1931)
booc0mtaco May 9, 2024
b3bf409
refactor: rename BannerNotification to PageNotification (#1932)
booc0mtaco May 10, 2024
b19e453
feat!: adjust responsive and spacing tokens/config (#1933)
booc0mtaco May 10, 2024
a3551d4
chore(deps): update all non-major dependencies (#1934)
czi-developer-foundations May 13, 2024
e26115a
Merge branch 'next' into v15-components-2.0
booc0mtaco May 13, 2024
c65b8c2
chore(Icon): update icon tokens to tier-3, ref to text tokens (#1935)
booc0mtaco May 13, 2024
3d92f2f
chore: update token output values
booc0mtaco May 13, 2024
e579367
chore(release): 15.0.0-alpha.7
booc0mtaco May 13, 2024
3aa5c94
fix(TextareaField): address QA updates (#1936)
booc0mtaco May 13, 2024
d96ab79
fix(InlineNotification): address QA updates (#1937)
booc0mtaco May 14, 2024
48e92d4
fix(TabGroup): address QA comments and designs (#1938)
booc0mtaco May 14, 2024
3298c66
test(Toast): add tests (#1939)
booc0mtaco May 14, 2024
1e431b4
fix(Button): address QA design feedback (#1940)
booc0mtaco May 14, 2024
5469b18
chore(Tooltip): restrict placement types to design values (#1941)
booc0mtaco May 14, 2024
3140996
feat(typography)!: update typography tokens and fonts (#1942)
booc0mtaco May 14, 2024
1595a18
fix(ButtonGroup): address QA design updates (#1943)
booc0mtaco May 14, 2024
07284c2
feat(ToastNotification)!: rename from Toast to ToastNotification (#1944)
booc0mtaco May 15, 2024
2f25f6b
chore: export types for InputPropsV2
booc0mtaco May 15, 2024
489e8d9
feat(AppNotification)!: introduce 2.0 component (#1945)
booc0mtaco May 16, 2024
5546205
fix: update token and theming (#1946)
booc0mtaco May 16, 2024
921a086
chore(release): 15.0.0-alpha.8
booc0mtaco May 16, 2024
007d757
fix(NumberIcon): address QA design notes (#1947)
booc0mtaco May 17, 2024
56fa437
fix(Accordion): address QA updates from design (#1948)
booc0mtaco May 17, 2024
06cc194
fix(AppNotification): apply usage feedback (#1949)
booc0mtaco May 17, 2024
01970a2
feat(Link): allow nodes to be used in link body (#1950)
booc0mtaco May 17, 2024
cbc6ada
chore(release): 15.0.0-alpha.9
booc0mtaco May 17, 2024
6198b9e
feat(FieldLabel)!: introduce 2.0 component (#1953)
booc0mtaco May 20, 2024
fc6bb78
feat: allow react nodes on subtitle (#1954)
booc0mtaco May 20, 2024
dbd291e
chore: update chromatic dep to 11.x+ (#1956)
booc0mtaco May 20, 2024
0d5a414
fix(Modal): address QA updates (#1957)
booc0mtaco May 21, 2024
2f27acc
docs(TabGroup): update docblock formatting
booc0mtaco May 22, 2024
14c73fe
fix(Card): address QA design and eng feedback (#1958)
booc0mtaco May 22, 2024
26c3870
chore(release): 15.0.0-alpha.10
booc0mtaco May 22, 2024
72daa0b
feat(tokens): add border-utility-inteactive-secondary tokens (#1959)
booc0mtaco May 23, 2024
402e433
feat(TabGroup): add inverse variant treatment (#1960)
booc0mtaco May 23, 2024
5788fe5
fix(FieldNote): adjust layout for icon and text lockup
booc0mtaco May 23, 2024
90c07e0
docs(InputField): update story descriptions
booc0mtaco May 23, 2024
66b9bed
Merge pull request #1961 from chanzuckerberg/aholloway/EDS-1328
booc0mtaco May 23, 2024
675ad5f
feat(Select): support horizontal labels (#1962)
booc0mtaco May 23, 2024
26faab7
feat(LoadingIndicator)!: introduce 2.0 component (#1963)
booc0mtaco May 24, 2024
bac3594
feat(LoadingIndicator): update stroke width in Button (#1964)
booc0mtaco May 24, 2024
109a0e5
feat: add `eds-migrate` script for running codemods on major version …
May 24, 2024
24815c2
feat(Menu): set new default for menu trigger (#1965)
booc0mtaco May 24, 2024
d52afb9
refactor(Checkbox): use characters for check state (#1966)
booc0mtaco May 24, 2024
fdd304d
chore(release): 15.0.0-alpha.13
booc0mtaco May 28, 2024
7441d31
chore(deps): update all non-major dependencies (#1952)
czi-developer-foundations May 28, 2024
9bb85a3
Merge branch 'next' into v15-components-2.0
booc0mtaco May 29, 2024
0919713
docs: add recommended utility class usage (#1967)
booc0mtaco May 29, 2024
641e569
docs: center stories with fixed width (#1968)
booc0mtaco May 30, 2024
9dea463
feat!: update tier 1 and 2 typography tokens (#1969)
booc0mtaco May 31, 2024
288da8c
feat(Button): update interactive styles for tertiary buttons (#1970)
booc0mtaco May 31, 2024
dc3ae44
chore(release): 15.0.0-alpha.14
booc0mtaco May 31, 2024
bdbf9df
feat(Link): add inverse variant (with variant prop) (#1972)
booc0mtaco Jun 3, 2024
76479c1
docs(Link): update story name
booc0mtaco Jun 3, 2024
56066ae
feat!: move from isWarning and isError to status prop (#1973)
booc0mtaco Jun 5, 2024
76d467d
chore: update utility-base token numbering (#1974)
booc0mtaco Jun 5, 2024
0f9c2b3
chore(release): 15.0.0-alpha.15
booc0mtaco Jun 5, 2024
78d173e
fix(Link): address problems with link color inheritance (#1975)
booc0mtaco Jun 6, 2024
8389f35
fix(Button): add in missing inverse disabled treatments (#1976)
booc0mtaco Jun 6, 2024
99a70d3
fix(Button): mark disable usage as invalid (#1977)
booc0mtaco Jun 6, 2024
7c035a0
chore(deps): update all non-major dependencies (#1971)
czi-developer-foundations Jun 7, 2024
5a8cb70
docs(Card): add interactive to .ChildCard story
booc0mtaco Jun 7, 2024
3a6a20d
fix(Link): align icons in flexed standalone container (#1978)
booc0mtaco Jun 7, 2024
e754588
fix(Button): use text-utility-default state tokens (#1979)
booc0mtaco Jun 7, 2024
8545f14
feat(ToastNotification): add dismissType with automated dismissing (#…
booc0mtaco Jun 7, 2024
fc7f842
feat(Icon): add new and updated icons (#1981)
booc0mtaco Jun 7, 2024
98dec99
feat(Link): add inverse text visited color token and apply (#1982)
booc0mtaco Jun 7, 2024
1f7f496
Merge branch 'next' into v15-components-2.0
booc0mtaco Jun 7, 2024
0bf3fbc
chore(release): 15.0.0-alpha.16
booc0mtaco Jun 7, 2024
cc16568
docs(Link): add clarity for when icons appear
booc0mtaco Jun 10, 2024
d6ccc8d
feat(Tooltip): add inverse variant (#1984)
booc0mtaco Jun 10, 2024
f6e280f
refactor: update background color integration (#1985)
booc0mtaco Jun 10, 2024
03edc20
refactor(Radio): address component QA feedback (#1986)
booc0mtaco Jun 11, 2024
1fe3b0f
fix: use aria-disabled when disabled prop is applied (#1987)
booc0mtaco Jun 11, 2024
33fbd51
fix(Button): align button icons and text with layouts (#1988)
booc0mtaco Jun 11, 2024
dffed3c
fix: remove circular dependency for radio/checkbox
booc0mtaco Jun 12, 2024
b090881
chore(release): 15.0.0-alpha.17
booc0mtaco Jun 12, 2024
300af06
docs: update storybook theme (#1989)
booc0mtaco Jun 12, 2024
11c0883
fix: handle required disabled field hints (#1990)
booc0mtaco Jun 12, 2024
c3ce70f
fix(Select): allow attachment of headlessUI props to label (#1991)
booc0mtaco Jun 13, 2024
36eb3c9
feat(Typography): add typography-overline-lg (#1993)
booc0mtaco Jun 13, 2024
9d8cb4b
chore(release): 15.0.0-alpha.18
booc0mtaco Jun 13, 2024
dbce0d2
feat!: pre-cleanup changes to prepare for v15 (#1992)
booc0mtaco Jun 18, 2024
af3410f
docs: clean up contribution doc.s
booc0mtaco Jun 18, 2024
37d1f5b
fix(Button): allow as prop on button (#1994)
booc0mtaco Jun 18, 2024
a84f2f8
chore(deps): update all non-major dependencies (#1983)
czi-developer-foundations Jun 18, 2024
5c8d55f
Merge branch 'next' into v15-components-2.0
booc0mtaco Jun 18, 2024
48ae8c6
chore: alphabetize yarn.lock
booc0mtaco Jun 18, 2024
a5b3b47
chore: address PR comments and suggestions
booc0mtaco Jun 20, 2024
367717e
fix(FieldNote): fix icon alignment and size issues
booc0mtaco Jun 20, 2024
d395e94
Merge pull request #1995 from chanzuckerberg/v15-components-2.0
booc0mtaco Jun 20, 2024
de2e608
chore(release): 15.0.0
booc0mtaco Jun 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .storybook/Theme.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import { create } from '@storybook/theming/create';

// Docs: https://storybook.js.org/docs/7.6/configure/theming
// Keys from https://github.com/storybookjs/storybook/blob/next/code/lib/theming/src/themes/light.ts
export default create({
base: 'light',
brandTitle: 'Education Design System',
brandUrl: 'https://github.com/chanzuckerberg/edu-design-system',
// brandImage: 'https://storybook.js.org/images/placeholders/350x150.png',
brandTarget: '_blank',

// UI Fonts
fontBase: '"Graphik", sans-serif',
fontCode: '"Consolas", monospace',

// Primary scale colors
// colorPrimary: '#254EAC', // TODO not sure where this applies : eds-color-blue-650
colorSecondary: '#6C6967', // Selection and other colors : color-neutral-550

// App Chrome
appBg: '#FDF9F8', // Sidebar : color-neutral-025
appContentBg: '#FFFFFF', // Main documentation container : eds-color-white
appPreviewBg: '#FFFFFF', // Story Preview container : eds-color-white
appBorderColor: '#EEE7E4', // neutral-100
appBorderRadius: 0, //

// Text Colors
textColor: '#212121', // NOTE: zeroheight's default color
textInverseColor: '#FFFFFF', // text-utility-inverse

// Toolbar default and active colors
barTextColor: '#FFFFFF', // eds-color-white
barSelectedColor: '#FFFFFF', // eds-color-white
barBg: '#0F2163', // Content panel bar : color-blue-850

// Form Colors
buttonBg: '#FFFFFF', // eds-color-white
buttonBorder: '#0F2163', // color-background-utility-interactive-high-emphasis
inputBg: '#FFFFFF',
inputBorder: '#6C6967', // color-border-utility-default-medium-emphasis
inputTextColor: '#0F2163', // color-text-utility-default-primary
inputBorderRadius: 2, // border-radius-sm
});
8 changes: 4 additions & 4 deletions .storybook/components/ColorList/ColorList.module.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.color-list__label {
width: fit-content;
padding: var(--eds-size-half);
border-radius: var(--eds-theme-box-button-border-radius);
padding: calc(var(--eds-size-half) / 16 * 1rem);
border-radius: calc(var(--eds-theme-box-button-border-radius) * 1px);

font: var(--eds-theme-typography-label-md-subtle);
color: rgb(235, 87, 87);
Expand All @@ -13,9 +13,9 @@
width: 100%;
height: 5rem;
border: var(--eds-theme-color-border-neutral-subtle) solid
var(--eds-border-width-sm);
calc(var(--eds-border-width-sm) * 1px);
outline: var(--eds-theme-color-border-neutral-strong) solid
var(--eds-border-width-sm);
calc(var(--eds-border-width-sm) * 1px);
}

.color-list__input::-webkit-color-swatch {
Expand Down
6 changes: 2 additions & 4 deletions .storybook/components/ColorList/ColorList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,10 @@ export const ColorList = (props: Props) => (
<Table.Cell>{listItem.tailwindClass}</Table.Cell>
<Table.Cell>{listItem.value}</Table.Cell>
<Table.Cell>
<input
<div
className={styles['color-list__input']}
id={listItem.name}
readOnly
type="color"
value={listItem.value}
style={{ backgroundColor: listItem.value }}
/>
</Table.Cell>
</Table.Row>
Expand Down
10 changes: 5 additions & 5 deletions .storybook/components/DesignTokens/Tier1/Animation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ export class Tier1Animation extends Component {
<Grid.Item key={listItem.name}>
<TokenSpecimen
inlineStyles={{
transitionDuration: `var(${listItem.name})`,
transitionDuration: `calc(var(${listItem.name}) * 1s)`,
}}
name={listItem.name}
value={listItem.value}
value={listItem.value + 's'}
variant="animation-fade"
/>
</Grid.Item>
Expand All @@ -34,10 +34,10 @@ export class Tier1Animation extends Component {
<Grid.Item key={listItem.name}>
<TokenSpecimen
inlineStyles={{
transitionDuration: `var(${listItem.name})`,
transitionDuration: `calc(var(${listItem.name}) * 1s)`,
}}
name={listItem.name}
value={listItem.value}
value={listItem.value + 's'}
variant="animation-move"
/>
</Grid.Item>
Expand All @@ -53,7 +53,7 @@ export class Tier1Animation extends Component {
<Grid.Item key={listItem.name}>
<TokenSpecimen
inlineStyles={{
transitionTimingFunction: `var(${listItem.name})`,
transitionTimingFunction: `calc(var(${listItem.name}) * 1s)`,
}}
name={listItem.name}
value={listItem.value}
Expand Down
10 changes: 6 additions & 4 deletions .storybook/components/DesignTokens/Tier1/Borders.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { TokenSpecimen } from '../../TokenSpecimen/TokenSpecimen';

export class Tier1Borders extends Component {
render() {
// TODO: what are the width tokens to document?
return (
<div>
<Section title="Border Width">
Expand All @@ -16,12 +17,12 @@ export class Tier1Borders extends Component {
<TokenSpecimen
inlineStyles={{
backgroundColor: 'transparent',
borderWidth: `var(${listItem.name})`,
borderWidth: `calc(var(${listItem.name}) * 1px)`,
borderStyle: 'solid',
borderColor: 'black',
}}
name={listItem.name}
value={listItem.value}
value={listItem.value + 'px'}
/>
</Grid.Item>
);
Expand All @@ -32,6 +33,7 @@ export class Tier1Borders extends Component {
<Section title="Border Radius">
<Grid>
{filterTokens(`eds-border-radius`).map(function (listItem) {
const unit = listItem.name.indexOf('round') > 0 ? '%' : 'px';
return (
<Grid.Item key={listItem.name}>
<TokenSpecimen
Expand All @@ -40,10 +42,10 @@ export class Tier1Borders extends Component {
borderWidth: '2px',
borderStyle: 'solid',
borderColor: 'black',
borderRadius: `var(${listItem.name})`,
borderRadius: `calc(var(${listItem.name}) * 1${unit})`,
}}
name={listItem.name}
value={listItem.value}
value={listItem.value + unit}
/>
</Grid.Item>
);
Expand Down
66 changes: 51 additions & 15 deletions .storybook/components/DesignTokens/Tier1/Colors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,59 @@ export const Tier1Colors = () => {
figmaToken:
figmaTokenHeader + '/' + name.slice(name.lastIndexOf('-') + 1),
}));

// filter down to the neutral tokens which were introduced or redefined in the new brand
const nonLegacyNeutralItems = getListItems(
'eds-color-neutral',
'neutral',
).filter((item) => {
// TODO: remove this filter once the deprecated neutral tokens are deleted
return [
'025',
'050',
'100',
'150',
'200',
'250',
'350',
'450',
'550',
'650',
'750',
'800',
'850',
'900',
'950',
].includes(item.figmaToken.split('/')[1]);
});
return (
<div>
<Section title="Neutral Colors">
<ColorList listItems={getListItems('eds-color-neutral', 'neutral')} />
</Section>
<Section title="Brand Colors">
<ColorList listItems={getListItems('eds-color-brand', 'brand-grape')} />
</Section>
<Section className="flex flex-col gap-3" title="Other Colors">
<ColorList
listItems={getListItems('eds-color-other-orange', 'orange')}
/>
<ColorList listItems={getListItems('eds-color-other-mint', 'mint')} />
<ColorList
listItems={getListItems('eds-color-other-yellow', 'yellow')}
/>
<ColorList listItems={getListItems('eds-color-other-ruby', 'ruby')} />
<Section
description="These base colors are used in higher tier tokens and not linked for use via Tailwind"
title="Brand Red Colors"
>
<ColorList listItems={getListItems('eds-color-red', 'red')} />
</Section>
<Section title="Brand Orange Colors">
<ColorList listItems={getListItems('eds-color-orange', 'orange')} />
</Section>
<Section title="Brand Yellow Colors">
<ColorList listItems={getListItems('eds-color-yellow', 'yellow')} />
</Section>
<Section title="Brand Green Colors">
<ColorList listItems={getListItems('eds-color-green', 'green')} />
</Section>
<Section title="Brand Blue Colors">
<ColorList listItems={getListItems('eds-color-blue', 'blue')} />
</Section>
<Section title="Brand Purple Colors">
<ColorList listItems={getListItems('eds-color-purple', 'purple')} />
</Section>
<Section title="Brand Pink Colors">
<ColorList listItems={getListItems('eds-color-pink', 'pink')} />
</Section>
<Section title="Brand Neutral Colors">
<ColorList listItems={nonLegacyNeutralItems} />
</Section>
</div>
);
Expand Down
26 changes: 0 additions & 26 deletions .storybook/components/DesignTokens/Tier1/FontSizes.tsx

This file was deleted.

31 changes: 0 additions & 31 deletions .storybook/components/DesignTokens/Tier1/Layout.jsx

This file was deleted.

70 changes: 29 additions & 41 deletions .storybook/components/DesignTokens/Tier1/Sizes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,47 +7,35 @@ import { TokenSpecimen } from '../../TokenSpecimen/TokenSpecimen';
export class Tier1Sizes extends Component {
render() {
return (
<div>
<Section title="Base Grid Size">
<Grid>
{filterTokens('eds-size-base').map((listItem) => (
<Grid.Item key={listItem.name}>
<TokenSpecimen
comment="Calculated from a multiple of the base font size"
inlineStyles={{
width: `var(${listItem.name})`,
height: `var(${listItem.name})`,
minHeight: '0',
}}
name={listItem.name}
value={listItem.value}
/>
</Grid.Item>
))}
</Grid>
</Section>
<Section title="Grid Size">
<Grid>
{filterTokens(`eds-size`)
.filter((listItem) => !listItem.name.endsWith('base-unit'))
.map(function (listItem) {
return (
<Grid.Item key={listItem.name}>
<TokenSpecimen
inlineStyles={{
width: `var(${listItem.name})`,
height: `var(${listItem.name})`,
minHeight: '0',
}}
name={listItem.name}
value={listItem.value}
/>
</Grid.Item>
);
})}
</Grid>
</Section>
</div>
<Section
description="When using tailwind config, these sizes can be applied to any tailwind size utility class"
title="Grid Sizes"
>
<Grid>
{filterTokens(`eds-size`)
.filter((listItem) => !listItem.name.endsWith('base-unit'))
.map(function (listItem) {
return (
<Grid.Item key={listItem.name}>
<TokenSpecimen
comment={`Tailwind class: *-${
listItem.name.split('--eds-')[1]
}`}
inlineStyles={{
width: `calc(var(${listItem.name}) / 16 * 1rem)`,
height: `calc(var(${listItem.name}) / 16 * 1rem)`,
minHeight: '0',
}}
name={listItem.name}
value={
listItem.value + 'px' + ` (${listItem.value / 16}rem)`
}
/>
</Grid.Item>
);
})}
</Grid>
</Section>
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react';
import { Tier1Animation } from './Animation';
import { Tier1Borders } from './Borders';
import { Tier1Colors } from './Colors';
import { Tier1Layout } from './Layout';
import { Tier1Shadows } from './Shadows';
import { Tier1Sizes } from './Sizes';

Expand All @@ -22,6 +21,8 @@ export default {
},
};

// TODO: Tokens to document: eds-color-opacity

export const Colors = {
render: () => <Tier1Colors />,
};
Expand All @@ -38,10 +39,6 @@ export const Sizes = {
render: () => <Tier1Sizes />,
};

export const Layout = {
render: () => <Tier1Layout />,
};

export const Shadows = {
render: () => <Tier1Shadows />,
};
Loading
Loading