styled-components 6.4.0-prerelease.13 → 6.4.0-prerelease.14
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/constructWithOptions.d.ts +1 -1
- 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 +4 -3
- 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 +22 -25
- package/native/dist/constructors/constructWithOptions.d.ts +1 -1
- package/native/dist/dist/constructors/constructWithOptions.d.ts +1 -1
- package/native/dist/dist/types.d.ts +22 -25
- package/native/dist/styled-components.native.cjs.js.map +1 -1
- package/native/dist/styled-components.native.esm.js.map +1 -1
- package/native/dist/types.d.ts +22 -25
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
'data-styled';
|
|
12
12
|
const SC_ATTR_ACTIVE = 'active';
|
|
13
13
|
const SC_ATTR_VERSION = 'data-styled-version';
|
|
14
|
-
const SC_VERSION = "6.4.0-prerelease.
|
|
14
|
+
const SC_VERSION = "6.4.0-prerelease.14";
|
|
15
15
|
const SPLITTER = '/*!sc*/\n';
|
|
16
16
|
const IS_BROWSER = typeof window !== 'undefined' && typeof document !== 'undefined';
|
|
17
17
|
function readSpeedyFlag(name) {
|
|
@@ -2395,9 +2395,10 @@
|
|
|
2395
2395
|
*/
|
|
2396
2396
|
const baseStyled = (tag) => constructWithOptions(createStyledComponent, tag);
|
|
2397
2397
|
const styled = baseStyled;
|
|
2398
|
-
// Shorthands for all valid HTML Elements
|
|
2398
|
+
// Shorthands for all valid HTML Elements.
|
|
2399
|
+
// The type assertion avoids 120 Styled<> instantiations during type checking —
|
|
2400
|
+
// the correct types are declared on the `styled` const above via the mapped type.
|
|
2399
2401
|
domElements.forEach(domElement => {
|
|
2400
|
-
// @ts-expect-error some react typing bs
|
|
2401
2402
|
styled[domElement] = baseStyled(domElement);
|
|
2402
2403
|
});
|
|
2403
2404
|
|