-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1662 from chanzuckerberg/release-v12.2.0
## [12.2.0](v12.1.0...v12.2.0) (2023-06-21) ### Features * deprecate color-other-eraser token ([#1640](#1640)) ([55a78e2](55a78e2)) * **Text:** add support for caption-md and caption-lg ([53fd4e0](53fd4e0)) ### Bug Fixes * allow all valid input types ([#1648](#1648)) ([e674741](e674741)) * **InputField:** fix alignment and color for required marker ([#1654](#1654)) ([1c3b1db](1c3b1db)) * make menu, popover, select ssr friendly ([#1660](#1660)) ([eac8829](eac8829)) * **Menu:** reset menu item hover and defer to popover ([#1653](#1653)) ([f329e4d](f329e4d)) * **ProgressBar:** align label and caption with design ([#1655](#1655)) ([9de0d6b](9de0d6b)) * **Tooltip:** use caption-lg for tooltip text ([f0772c7](f0772c7))
- Loading branch information
Showing
54 changed files
with
1,602 additions
and
1,545 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 |
---|---|---|
|
@@ -6,6 +6,9 @@ | |
# testing | ||
/coverage | ||
|
||
# logging | ||
omlet-cli.log | ||
|
||
# production | ||
/build | ||
_site | ||
|
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,25 @@ | ||
import React from 'react'; | ||
import { Grid, GridItem, Section } from '../../../../src'; | ||
import filterTokens from '../../../util/filterTokens'; | ||
import { TokenSpecimen } from '../../TokenSpecimen/TokenSpecimen'; | ||
|
||
export const FontFamilies = () => ( | ||
<Section title="Font Families"> | ||
<Grid> | ||
{filterTokens(`eds-font-family`).map(function (listItem) { | ||
return ( | ||
<GridItem key={listItem.name}> | ||
<TokenSpecimen | ||
inlineStyles={{ | ||
fontFamily: `var(${listItem.name})`, | ||
}} | ||
name={listItem.name} | ||
value={listItem.value} | ||
variant="typography-title" | ||
/> | ||
</GridItem> | ||
); | ||
})} | ||
</Grid> | ||
</Section> | ||
); |
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,25 @@ | ||
import React from 'react'; | ||
import { Grid, GridItem, Section } from '../../../../src'; | ||
import filterTokens from '../../../util/filterTokens'; | ||
import { TokenSpecimen } from '../../TokenSpecimen/TokenSpecimen'; | ||
|
||
export const FontSizes = () => ( | ||
<Section title="Font Sizes"> | ||
<Grid> | ||
{filterTokens(`eds-font-size`).map(function (listItem) { | ||
return ( | ||
<GridItem key={listItem.name}> | ||
<TokenSpecimen | ||
inlineStyles={{ | ||
fontSize: `var(${listItem.name})`, | ||
}} | ||
name={listItem.name} | ||
value={listItem.value} | ||
variant="typography-title" | ||
/> | ||
</GridItem> | ||
); | ||
})} | ||
</Grid> | ||
</Section> | ||
); |
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,25 @@ | ||
import React from 'react'; | ||
import { Grid, GridItem, Section } from '../../../../src'; | ||
import filterTokens from '../../../util/filterTokens'; | ||
import { TokenSpecimen } from '../../TokenSpecimen/TokenSpecimen'; | ||
|
||
export const FontWeights = () => ( | ||
<Section title="Font Weights"> | ||
<Grid> | ||
{filterTokens(`eds-font-weight`).map(function (listItem) { | ||
return ( | ||
<GridItem key={listItem.name}> | ||
<TokenSpecimen | ||
inlineStyles={{ | ||
fontWeight: `var(${listItem.name})`, | ||
}} | ||
name={listItem.name} | ||
value={listItem.value} | ||
variant="typography-title" | ||
/> | ||
</GridItem> | ||
); | ||
})} | ||
</Grid> | ||
</Section> | ||
); |
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
27 changes: 27 additions & 0 deletions
27
.storybook/components/DesignTokens/Tier1/TypographyTokens.stories.tsx
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,27 @@ | ||
import React from 'react'; | ||
import { FontFamilies } from './FontFamilies'; | ||
import { FontSizes } from './FontSizes'; | ||
import { FontWeights } from './FontWeights'; | ||
import { Tier1TypographyPresets } from './TypographyPresets'; | ||
export default { | ||
title: 'Design Tokens/Tier 1: Definitions/Typography', | ||
parameters: { | ||
axe: { | ||
// For documentation purposes only | ||
skip: true, | ||
}, | ||
}, | ||
}; | ||
export const FontFamily = { | ||
render: () => <FontFamilies />, | ||
}; | ||
export const FontSize = { | ||
render: () => <FontSizes />, | ||
}; | ||
export const FontWeight = { | ||
render: () => <FontWeights />, | ||
}; | ||
|
||
export const Presets = { | ||
render: () => <Tier1TypographyPresets />, | ||
}; |
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.