styled-components 6.0.3 → 6.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constructors/styled.d.ts +0 -1
- package/dist/hoc/withTheme.d.ts +1 -1
- package/dist/sheet/Tag.d.ts +4 -4
- package/dist/styled-components.browser.cjs.js +1 -1
- package/dist/styled-components.browser.cjs.js.map +1 -1
- package/dist/styled-components.browser.esm.js +1 -1
- package/dist/styled-components.browser.esm.js.map +1 -1
- package/dist/styled-components.cjs.js +1 -1
- package/dist/styled-components.cjs.js.map +1 -1
- package/dist/styled-components.esm.js +1 -1
- package/dist/styled-components.esm.js.map +1 -1
- package/dist/styled-components.js +5 -4
- package/dist/styled-components.js.map +1 -1
- package/dist/styled-components.min.js +1 -1
- package/dist/styled-components.min.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/native/dist/constructors/styled.d.ts +0 -1
- package/native/dist/hoc/withTheme.d.ts +1 -1
- package/native/dist/sheet/Tag.d.ts +4 -4
- package/native/dist/styled-components.native.cjs.js +1 -1
- package/native/dist/styled-components.native.esm.js +1 -1
- package/native/dist/types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
'data-styled';
|
|
9
9
|
var SC_ATTR_ACTIVE = 'active';
|
|
10
10
|
var SC_ATTR_VERSION = 'data-styled-version';
|
|
11
|
-
var SC_VERSION = "6.0.
|
|
11
|
+
var SC_VERSION = "6.0.5";
|
|
12
12
|
var SPLITTER = '/*!sc*/\n';
|
|
13
13
|
var IS_BROWSER = typeof window !== 'undefined' && 'HTMLElement' in window;
|
|
14
14
|
var DISABLE_SPEEDY = Boolean(typeof SC_DISABLE_SPEEDY === 'boolean'
|
|
@@ -1229,8 +1229,7 @@
|
|
|
1229
1229
|
renderStyles(instance, props, ssc.styleSheet, theme, ssc.stylis);
|
|
1230
1230
|
}
|
|
1231
1231
|
{
|
|
1232
|
-
|
|
1233
|
-
(React.useInsertionEffect || React.useLayoutEffect)(function () {
|
|
1232
|
+
React.useLayoutEffect(function () {
|
|
1234
1233
|
if (!ssc.styleSheet.server) {
|
|
1235
1234
|
renderStyles(instance, props, ssc.styleSheet, theme, ssc.stylis);
|
|
1236
1235
|
return function () { return globalStyle.removeStyles(instance, ssc.styleSheet); };
|
|
@@ -1863,7 +1862,9 @@
|
|
|
1863
1862
|
if (!shouldForwardProp &&
|
|
1864
1863
|
"development" === 'development' &&
|
|
1865
1864
|
!isPropValid(key) &&
|
|
1866
|
-
!seenUnknownProps.has(key)
|
|
1865
|
+
!seenUnknownProps.has(key) &&
|
|
1866
|
+
// Only warn on DOM Element.
|
|
1867
|
+
domElements.has(elementToBeCreated)) {
|
|
1867
1868
|
seenUnknownProps.add(key);
|
|
1868
1869
|
console.warn("styled-components: it looks like an unknown prop \"".concat(key, "\" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)"));
|
|
1869
1870
|
}
|