styled-components 6.4.4 → 6.5.0
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 +4 -4
- package/dist/constructors/styled.d.ts +3 -4
- package/dist/index.d.ts +1 -1
- package/dist/native/index.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 +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 +148 -27
- package/dist/utils/domElements.d.ts +1 -1
- package/dist/utils/noInfer.d.ts +10 -0
- package/native/dist/constructors/constructWithOptions.d.ts +4 -4
- package/native/dist/constructors/styled.d.ts +3 -4
- package/native/dist/dist/constructors/constructWithOptions.d.ts +4 -4
- package/native/dist/dist/constructors/styled.d.ts +3 -4
- package/native/dist/dist/index.d.ts +1 -1
- package/native/dist/dist/native/index.d.ts +4 -4
- package/native/dist/dist/types.d.ts +148 -27
- package/native/dist/dist/utils/domElements.d.ts +1 -1
- package/native/dist/dist/utils/noInfer.d.ts +10 -0
- package/native/dist/index.d.ts +1 -1
- package/native/dist/native/index.d.ts +4 -4
- 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 +148 -27
- package/native/dist/utils/noInfer.d.ts +10 -0
- package/package.json +2 -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.
|
|
14
|
+
const SC_VERSION = "6.5.0";
|
|
15
15
|
const SPLITTER = '/*!sc*/\n';
|
|
16
16
|
const IS_BROWSER = typeof window !== 'undefined' && typeof document !== 'undefined';
|
|
17
17
|
function readSpeedyFlag(name) {
|
|
@@ -2438,8 +2438,9 @@
|
|
|
2438
2438
|
const baseStyled = (tag) => constructWithOptions(createStyledComponent, tag);
|
|
2439
2439
|
const styled = baseStyled;
|
|
2440
2440
|
// Shorthands for all valid HTML Elements.
|
|
2441
|
-
// The type assertion avoids
|
|
2442
|
-
// the correct types are declared on the
|
|
2441
|
+
// The type assertion avoids one Styled<> instantiation per element in
|
|
2442
|
+
// domElements during type checking - the correct types are declared on the
|
|
2443
|
+
// `styled` const above via the mapped type.
|
|
2443
2444
|
domElements.forEach(domElement => {
|
|
2444
2445
|
styled[domElement] = baseStyled(domElement);
|
|
2445
2446
|
});
|