-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update typography tokens with new values * Add new sizes to Body * Add new sizes to Headline * Add new sizes to Title * Deprecate the BodyLarge component * Deprecate the SubHeadline component * Replace SubHeadline component in SideNavigation * Add explicit color to Body component * Rename Title component to Display * Add weight prop to Body component * Add new typography tokens and deprecate old ones * Add ESLint rule to flag deprecated custom properties * Add Stylelint rule to flag deprecated custom properties * Migrate deprecated custom properties * Visualize typography tokens in the theme docs and show deprecation warnings * Migrate deprecated custom properties in JS * Apply suggestions from code review * Add new typography size names to no-renamed-props ESLint rule * Add changesets * Deprecate Body variant prop * Add Compact and Numeral components * Add letter-spacing to typography components * Map SubHeadline to Headline component * Add color prop to Body, Compact and Numeral components * Add migration for Body variants * Fix copyright year
- Loading branch information
1 parent
55bf9ad
commit 33435cf
Showing
101 changed files
with
2,588 additions
and
457 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 @@ | ||
--- | ||
"@sumup-oss/circuit-ui": minor | ||
--- | ||
|
||
Added a new `weight` prop to the Body component. Choose between the `regular` and `bold` font weights. |
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 @@ | ||
--- | ||
'@sumup-oss/circuit-ui': minor | ||
--- | ||
|
||
Added a new Compact component for text in space-constraint contexts. |
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,32 @@ | ||
--- | ||
'@sumup-oss/design-tokens': minor | ||
--- | ||
|
||
Consolidated and renamed the `typography` tokens: | ||
|
||
| Old | New | | ||
| --------------------------------------- | ----------------------------------- | | ||
| `typography-title-one-font-size` | `typography-display-l-font-size` | | ||
| `typography-title-one-line-height` | `typography-display-l-line-height` | | ||
| `typography-title-two-font-size` | `typography-display-m-font-size` | | ||
| `typography-title-two-line-height` | `typography-display-m-line-height` | | ||
| `typography-title-three-font-size` | `typography-display-m-font-size` | | ||
| `typography-title-three-line-height` | `typography-display-m-line-height` | | ||
| `typography-title-four-font-size` | `typography-display-s-font-size` | | ||
| `typography-title-four-line-height` | `typography-display-s-line-height` | | ||
| `typography-headline-one-font-size` | `typography-headline-l-font-size` | | ||
| `typography-headline-one-line-height` | `typography-headline-l-line-height` | | ||
| `typography-headline-two-font-size` | `typography-headline-m-font-size` | | ||
| `typography-headline-two-line-height` | `typography-headline-m-line-height` | | ||
| `typography-headline-three-font-size` | `typography-headline-m-font-size` | | ||
| `typography-headline-three-line-height` | `typography-headline-m-line-height` | | ||
| `typography-headline-four-font-size` | `typography-headline-s-font-size` | | ||
| `typography-headline-four-line-height` | `typography-headline-s-line-height` | | ||
| `typography-sub-headline-font-size` | `typography-headline-s-font-size` | | ||
| `typography-sub-headline-line-height` | `typography-headline-s-line-height` | | ||
| `typography-body-large-font-size` | `typography-body-l-font-size` | | ||
| `typography-body-large-line-height` | `typography-body-l-line-height` | | ||
| `typography-body-one-font-size` | `typography-body-m-font-size` | | ||
| `typography-body-one-line-height` | `typography-body-m-line-height` | | ||
| `typography-body-two-font-size` | `typography-body-s-font-size` | | ||
| `typography-body-two-line-height` | `typography-body-s-line-height` | |
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 @@ | ||
--- | ||
"@sumup-oss/circuit-ui": minor | ||
--- | ||
|
||
Added a new Numeral component for numeric content such as currency values. |
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,21 @@ | ||
--- | ||
'@sumup-oss/circuit-ui': minor | ||
--- | ||
|
||
Consolidated and renamed the sizes of the Display (formerly Title), Headline, and Body components: | ||
|
||
**Display & Headline** | ||
|
||
| Old | New | | ||
| ----- | --- | | ||
| one | l | | ||
| two | m | | ||
| three | m | | ||
| four | s | | ||
|
||
**Body** | ||
|
||
| Old | New | | ||
| --- | --- | | ||
| one | m | | ||
| two | s | |
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,6 @@ | ||
--- | ||
"@sumup-oss/stylelint-plugin-circuit-ui": minor | ||
"@sumup-oss/eslint-plugin-circuit-ui": minor | ||
--- | ||
|
||
Added `circuit-ui/no-deprecated-custom-properties` rule to flag uses of deprecated custom properties. |
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 @@ | ||
--- | ||
'@sumup-oss/circuit-ui': minor | ||
--- | ||
|
||
Deprecated the BodyLarge component. Use the Body component in size `l` instead. |
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 @@ | ||
--- | ||
'@sumup-oss/circuit-ui': minor | ||
--- | ||
|
||
Added an explicit foreground color to the Body component (`fg-normal`) to better support localized dark mode. Previously, the component inherited its color from its parent. |
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 @@ | ||
--- | ||
"@sumup-oss/eslint-plugin-circuit-ui": major | ||
--- | ||
|
||
Added a migration for the Display (formerly Title), Headline and Body components' `size` prop to the `circuit-ui/no-renamed-props` rule. |
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 @@ | ||
--- | ||
'@sumup-oss/circuit-ui': minor | ||
--- | ||
|
||
Deprecated the SubHeadline component. Use the Headline component in size `s` instead. |
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 @@ | ||
--- | ||
"@sumup-oss/circuit-ui": major | ||
--- | ||
|
||
Renamed the Title component to Display for consistency with other platforms. |
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 @@ | ||
--- | ||
'@sumup-oss/circuit-ui': minor | ||
--- | ||
|
||
Deprecated the Body component's `variant` prop. Use the new `color` prop instead of the `alert`, `confirm` and `subtle` variants. Use the new `weight` prop instead of the `highlight` variant. Use custom CSS for the `quote` variant. |
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 @@ | ||
--- | ||
'@sumup-oss/circuit-ui': minor | ||
--- | ||
|
||
Added a new `color` prop to the Body component. Choose any foreground color. |
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 |
---|---|---|
|
@@ -40,6 +40,7 @@ export { | |
BorderWidth, | ||
FontStack, | ||
FontWeight, | ||
Typography, | ||
Transition, | ||
MediaQueriesTable, | ||
} from './Theme.js'; |
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.