-
Notifications
You must be signed in to change notification settings - Fork 129
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
Version Packages #897
Version Packages #897
Conversation
Hey @github-actions[bot], Thanks! |
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/sumup/oss-circuit-ui/91p9FVgo9vRFUN7RtAGvnqoRnU8g |
5ad421d
to
0ff894c
Compare
0ff894c
to
e69aeb1
Compare
e69aeb1
to
82ac79d
Compare
82ac79d
to
bfdca16
Compare
bfdca16
to
8478a5b
Compare
8478a5b
to
4b03d55
Compare
4b03d55
to
af94415
Compare
af94415
to
f8d4c61
Compare
f8d4c61
to
b15f57e
Compare
58be97f
to
ce2a745
Compare
ce2a745
to
c579889
Compare
c579889
to
365f52c
Compare
365f52c
to
257bd4a
Compare
257bd4a
to
973fbaa
Compare
973fbaa
to
f12c895
Compare
f12c895
to
1016ba9
Compare
1016ba9
to
6c60d88
Compare
6c60d88
to
4e988ad
Compare
4e988ad
to
51fdd09
Compare
Codecov Report
@@ Coverage Diff @@
## next #897 +/- ##
=======================================
Coverage 90.96% 90.96%
=======================================
Files 160 160
Lines 2646 2646
Branches 763 763
=======================================
Hits 2407 2407
Misses 214 214
Partials 25 25 |
"mode": "pre", | ||
"tag": "next", | ||
"initialVersions": { | ||
"@sumup/circuit-ui": "3.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- circuit-ui: major
- cna-template: no changes
- cra-template: no changes
- design-tokens: major
- icons: patch
"@sumup/design-tokens": ">=3.0.0", | ||
"@sumup/icons": "1.7.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if these are what we want in peer dependencies
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's fine. In the future, I wouldn't treat a minor peer dependency bump as a breaking change.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to next, this PR will be updated.
Releases
@sumup/[email protected]
Major Changes
#960
1a1a3646
Thanks @robinmetral! - TheTableHeader
,TableRow
andTableCell
components are no longer exported from Circuit. They are only used internally by theTable
component and should not be used directly.#979
3cfefac0
Thanks @robinmetral! - Renamed the NotificationBanner component to NotificationCard. This frees up the NotificationBanner namespace for a new component that we will introduce inv3.x
(🤖 component-names-v3).#972
95488037
Thanks @connor-baer! - Replaced the deprecatedtext[Kilo|Mega|Giga]
style mixins by a singletypography
mixin, and removed the deprecatedheading[Kilo|Mega|Giga|Tera|Peta|Exa|Zetta]
andsubHeading[Kilo|Mega]
style mixins.#992
b898410e
Thanks @robinmetral! - Switched to the new JSX transform with automatic runtime. You will need to update your Babel config to use Emotion's JSX runtime. For example, with Next.js and Emotion 10:#984
7879a990
Thanks @amelako! - Increased the Button sizes to match other form components and renamed the default size frommega
togiga
. These changes can be codemodded (🤖 button-default-size).#995
bd234296
Thanks @robinmetral! - Harmonized the label prop names across components to follow theactionLabel
pattern (🤖 label-prop-names).CardHeader
:labelCloseButton
👉closeButtonLabel
Hamburger
:labelActive
👉activeLabel
,labelInActive
👉inactiveLabel
Tag
:labelRemoveButton
👉removeButtonLabel
Toggle
:labelChecked
👉checkedLabel
,labelUnchecked
👉uncheckedLabel
#960
1a1a3646
Thanks @robinmetral! - AsortLabel
for sortable Table columns (previously optional) is now required.For sortable Table columns (when headers have the
sortable
prop set), thesortLabel
prop is now required. This label is fundamental for accessibility. If it is omitted, the column will not be sortable, even if thesortable
prop is set.Here's an example sortable column header:
#995
bd234296
Thanks @robinmetral! - Enforced accessible labels in several components: theCardHeader
requires alabelCloseButton
when it is dismissible, theSearchInput
requires aclearLabel
when it is clearable.#960
1a1a3646
Thanks @robinmetral! - For sortableTable
columns (when headers have thesortable
prop), the previously optionalsortLabel
prop is now enforced. This is an accessibility requirement. If asortLabel
is not provided, the column will not be sortable.#884
eb9e0b47
Thanks @amelako! - The new semantic typography components make it clear when each should be used, are flexible enough to cover all use cases. To represent more semantic variations some of the sizes have been removed and new size names added.Headline
Renamed the
Heading
component toHeadline
and mapped the styles to the new ones. These changes can be codemodded (🤖 component-names-v3).The size prop has been changed to accept the new size numbers. For
Headline
component exa and peta has been changed to one with new values, tera has been changed to two, giga to three, mega and kilo to four (🤖 typography-sizes)Usage example:
SubHeadline
Renamed the
SubHeading
component toSubHeadline
and mapped the styles to the new ones (🤖 component-names-v3). TheSubHeadline
component now uses only one size value (🤖 typography-sizes).Body
The
Text
component has been renamed toBody
(🤖 component-names-v3). The size prop is adapted to accept the new size numbers and giga size has been removed, mega and kilo sizes have been changed to one and two respectively.Usage example:
The
Text
component's bold prop has been removed. Use theBody
component(variant="highlight")
instead (🤖 body-variant-highlight).Usage example:
<Body variant="highlight">bold</Body>
The
Text
component's italic and strike props has been removed. Use the custom styles instead.Additionally, the new
success
,error
andsubtle
variants are added.The
Blockquote
component has been removed and replaced by theBody
component withvariant="quote"
.Usage example:
<Body variant="quote">quote</Body>
List
Replaced the
List
component sizes mega and kilo with new values one and two respectively (🤖 typography-sizes).#960
1a1a3646
Thanks @robinmetral! - Defaultdata-testid
s are no longer built into theTable
component. They can still be passed manually. We also recommend querying by role in tests, for them to resemble how users interact with the code. You can find examples in the component's specs.#943
0543719b
Thanks @mykolaharmash! -Selector
now has multiplesize
options.SelectorGroup
is changed to horizontal layout and to be inline element by default with an option to stretch to full width.#995
bd234296
Thanks @robinmetral! - Removed the deprecatednoMargin
prop from components. Use thespacing
mixin to add spacing.The components with a removed noMargin prop are:
#985
61c15cf7
Thanks @robinmetral! - Removed the experimental static styles extraction feature.#995
bd234296
Thanks @robinmetral! - Enforced theInput
andSelect
's built-inlabel
prop. Do not use theLabel
component separately and pass the label as a prop instead.#995
bd234296
Thanks @robinmetral! - Removed theProgressBar
's deprecatedchildren
prop. Use thelabel
prop instead.#960
1a1a3646
Thanks @robinmetral! - TheTableHeader
,TableRow
andTableCell
components are no longer exported from Circuit.These components are only used internally by the Table component and should not be imported directly.
Relevant Table TypeScript types (
TableProps
,TableSortDirection
TableCell
,TableRow
) are newly exported.#995
bd234296
Thanks @robinmetral! - Removed the deprecatedshadow
prop from theCard
, shadows have been replaced by a single outline.#984
7879a990
Thanks @amelako! - Aligned the heights of all form components to be consistent. The new size values are:giga
kilo
byte
Here's an overview of how the component heights have changed:
#984
7879a990
Thanks @amelako! - Added asize
prop to the Spinner component. The possible values arebyte
,kilo
(default), andgiga
.#960
1a1a3646
Thanks @robinmetral! - Changed the signature of the Table's custom onSortBy method. ThenextDirection
argument moved to the third position ((index, nextDirection, rows)
👉(index, rows, nextDirection)
) and can now beundefined
(instead ofnull
in the previous implementation).#995
bd234296
Thanks @robinmetral! - Removed thedata-testid
attribute from theCardHeader
's close button. UsequeryByRole('button')
in your tests instead.#949
4e636205
Thanks @connor-baer! - Removed the exports of theModal
,ModalWrapper
,ModalHeader
,ModalFooter
,ModalContext
, andModalConsumer
components. Use theuseModal
hook instead.#995
bd234296
Thanks @robinmetral! - Removed the aggregatestyleHelpers
export. Import each style mixin directly instead.#995
bd234296
Thanks @robinmetral! - Removed thethemePropType
export from@sumup/circuit-ui
. Import it from@sumup/design-tokens
instead.#944
2628fce1
Thanks @amelako! - Replaced the old Popover component with a new one. It uses Popper v2 and comes with a refreshed component API.#995
bd234296
Thanks @robinmetral! - Removed the deprecatedwithComponents
HOC. Use theuseComponents
hook instead.#995
bd234296
Thanks @robinmetral! - Removed the deprecatedSpacing
component. Use thespacing
style mixin instead.#995
bd234296
Thanks @robinmetral! - Removed theonClick
prop from theBadge
. Badges are not meant to be interactive and should only communicate the status of an element. Use the Tag component for interactive elements instead. Theprimary
variant of the Badge was also removed. Use theneutral
variant instead.Patch Changes
#980
900e6bc4
Thanks @robinmetral! - Tweaked components (Anchor
,InlineMessage
,SearchInput
,Selector
,Tag
) to use the new border radius values.#960
1a1a3646
Thanks @robinmetral! - Fixed a UI bug in theTable
component where multiple words in a table header would wrap on mobile, and break row alignment.Updated dependencies [
900e6bc4
,bd234296
,eb9e0b47
,7879a990
,900e6bc4
]:@sumup/[email protected]
Major Changes
#995
bd234296
Thanks @robinmetral! - Removed thedrawer
andselect
z-index values from the design tokens. Useinput
instead ofselect
.#884
eb9e0b47
Thanks @amelako! - Replaced the typography design tokens'heading
,subHeading
andtext
properties byheadline
,subHeadline
, andbody
. These are used by the new semantic Headline, SubHeadline, and Body components in Circuit UI.#984
7879a990
Thanks @amelako! - Added a new icon sizetera
(48px).#980
900e6bc4
Thanks @robinmetral! - Updated the design token's borderRadius properties. The 1px and 6px values are removed and a 16px value is added, and the sizes are renamed (🤖 theme-border-radius).@sumup/[email protected]
Patch Changes
900e6bc4
Thanks @robinmetral! - Fixes the Plus icon to use the currentColor instead of black.