👩🎤 CSS-in-JS library designed for high performance style composition
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] about 4 years ago
76e3dc4d
]:
Published by github-actions[bot] about 4 years ago
76e3dc4d
]:
Published by github-actions[bot] about 4 years ago
76e3dc4d
]:
Published by github-actions[bot] about 4 years ago
Published by github-actions[bot] about 4 years ago
Published by github-actions[bot] about 4 years ago
debaad9a
]:
Published by github-actions[bot] about 4 years ago
18c0d5f4
#1668 Thanks @animecyc! - Custom shouldForwardProp
is being preserved now when using .withComponent
. Also, when passing an additional shouldForwardProp
in .withComponent
's options (like this: SomeComponent.withComponent('span', { shouldForwardProp })
) it's being composed with the potentially existing shouldForwardProp
.23faf9ef
#1996 Thanks @Andarist! - Fixed an issue with wrapped class components not having a type for the ref
prop.
0895f1f3
#1995 Thanks @Andarist! - Fixed an issue with typing for the as
prop not being provided to components created using component factories available on the styled
factory (e.g. styled.div
).
Updated dependencies [debaad9a
, 58b2bbca
]:
Published by github-actions[bot] about 4 years ago
Published by github-actions[bot] about 4 years ago
58b2bbca
]:
Published by github-actions[bot] about 4 years ago
Published by github-actions[bot] about 4 years ago
Published by github-actions[bot] about 4 years ago
a8eb4e75
, dfe98028
, debaad9a
, 39be057b
, 39be057b
]:
Published by github-actions[bot] about 4 years ago
58b2bbca
#1981 Thanks @Andarist! - Changed the key of the global flag that helps us identify that @emotion/react
has been loaded more than once to include the current major version of @emotion/react
.
Updated dependencies [a8eb4e75
, dfe98028
, debaad9a
, 39be057b
, 39be057b
]:
Published by github-actions[bot] about 4 years ago
a8eb4e75
#1998 Thanks @Andarist! - Styles are now correctly extracted from the correct cache (key
-sensitive) on the server.
dfe98028
#2003 Thanks @Andarist! - Fixed an issue with orphaned pseudo selectors (e.g. :hover
- where &:hover
, div:hover
, etc are not considered orphaned) having the context selector (the one computed based on all ancestor levels selectors) doubled in a descendant at-rule.
39be057b
#1997 Thanks @Andarist! - From now on an empty rule will get inserted into the DOM in non-production environments if it gets created by the user. This helps to grab used key
s from the (JS)DOM even for caches that have not inserted any actual rules to the document yet. It allows @emotion/jest
to find those and serialize Emotion classes properly in situations like this:
import styled from '@emotion/styled/macro'
import { render } from '@testing-library/react'
const Div = styled.div``
test('foo', () => {
const { container } = render(<Div />)
expect(container).toMatchSnapshot()
})
Updated dependencies [debaad9a
, 39be057b
]:
Published by github-actions[bot] about 4 years ago
39be057b
#1997 Thanks @Andarist! - Reverted the change that has started to add an empty <style/>
element eagerly in non-production environments that has been introduced in v1.0.0-next.3
as this has found to be problematic for websites using Content-Security-Policy
and a nonce
. Instead of this @emotion/cache
will from now on insert an empty rule in non-production environments but it will only do that if an empty rule gets actually created by the user.Published by github-actions[bot] about 4 years ago
Published by github-actions[bot] about 4 years ago
Published by github-actions[bot] about 4 years ago
5d692a6a
]:
Published by github-actions[bot] about 4 years ago
5d692a6a
#1956 Thanks @eps1lon! - Upgraded csstype
dependency to its v3. This is what we use to provide TypeScript typings for object styles. The upgrade should not affect any consuming code but it's worth mentioning if any edge case scenarios arise.dc1a0c5e
, 5d692a6a
]:
Published by github-actions[bot] about 4 years ago
5d692a6a
#1956 Thanks @eps1lon! - Upgraded csstype
dependency to its v3. This is what we use to provide TypeScript typings for object styles. The upgrade should not affect any consuming code but it's worth mentioning if any edge case scenarios arise.5d692a6a
]: