styled-components 6.0.0-beta.10 → 6.0.0-beta.12
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/hoc/withTheme.d.ts +1 -1
- package/dist/models/StyleSheetManager.d.ts +3 -3
- package/dist/models/ThemeProvider.d.ts +3 -3
- package/dist/sheet/Sheet.d.ts +3 -3
- package/dist/sheet/types.d.ts +1 -1
- package/dist/styled-components.browser.cjs.js +2 -1
- package/dist/styled-components.browser.cjs.js.map +1 -1
- package/dist/styled-components.browser.esm.js +2 -1
- package/dist/styled-components.browser.esm.js.map +1 -1
- package/dist/styled-components.cjs.js +2 -1
- package/dist/styled-components.cjs.js.map +1 -1
- package/dist/styled-components.esm.js +2 -1
- package/dist/styled-components.esm.js.map +1 -1
- package/dist/styled-components.js +8 -7
- 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/tsconfig.tsbuildinfo +1 -1
- package/dist/types.d.ts +20 -20
- package/dist/utils/hoist.d.ts +3 -3
- package/dist/utils/stylis.d.ts +1 -1
- package/native/dist/constructors/constructWithOptions.d.ts +4 -4
- package/native/dist/hoc/withTheme.d.ts +1 -1
- package/native/dist/models/StyleSheetManager.d.ts +3 -3
- package/native/dist/models/ThemeProvider.d.ts +3 -3
- package/native/dist/sheet/Sheet.d.ts +3 -3
- package/native/dist/sheet/types.d.ts +1 -1
- package/native/dist/styled-components.native.cjs.js +2 -1
- package/native/dist/styled-components.native.cjs.js.map +1 -1
- package/native/dist/styled-components.native.esm.js +2 -1
- package/native/dist/styled-components.native.esm.js.map +1 -1
- package/native/dist/types.d.ts +20 -20
- package/native/dist/utils/hoist.d.ts +3 -3
- package/native/dist/utils/stylis.d.ts +1 -1
- package/package.json +31 -24
|
@@ -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.0-beta.
|
|
11
|
+
var SC_VERSION = "6.0.0-beta.12";
|
|
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'
|
|
@@ -632,6 +632,7 @@
|
|
|
632
632
|
// add the namespace to the start
|
|
633
633
|
rule.value = "".concat(namespace, " ").concat(rule.value);
|
|
634
634
|
// add the namespace after each comma for subsequent selectors.
|
|
635
|
+
// @ts-expect-error we target modern browsers but intentionally transpile to ES5 for speed
|
|
635
636
|
rule.value = rule.value.replaceAll(',', ",".concat(namespace, " "));
|
|
636
637
|
rule.props = rule.props.map(function (prop) {
|
|
637
638
|
return "".concat(namespace, " ").concat(prop);
|
|
@@ -1437,10 +1438,6 @@
|
|
|
1437
1438
|
|
|
1438
1439
|
var secondary = /*#__PURE__*/Object.freeze({
|
|
1439
1440
|
__proto__: null,
|
|
1440
|
-
createGlobalStyle: createGlobalStyle,
|
|
1441
|
-
css: css,
|
|
1442
|
-
isStyledComponent: isStyledComponent,
|
|
1443
|
-
keyframes: keyframes,
|
|
1444
1441
|
ServerStyleSheet: ServerStyleSheet,
|
|
1445
1442
|
StyleSheetConsumer: StyleSheetConsumer,
|
|
1446
1443
|
StyleSheetContext: StyleSheetContext,
|
|
@@ -1448,10 +1445,14 @@
|
|
|
1448
1445
|
ThemeConsumer: ThemeConsumer,
|
|
1449
1446
|
ThemeContext: ThemeContext,
|
|
1450
1447
|
ThemeProvider: ThemeProvider,
|
|
1448
|
+
__PRIVATE__: __PRIVATE__,
|
|
1449
|
+
createGlobalStyle: createGlobalStyle,
|
|
1450
|
+
css: css,
|
|
1451
|
+
isStyledComponent: isStyledComponent,
|
|
1452
|
+
keyframes: keyframes,
|
|
1451
1453
|
useTheme: useTheme,
|
|
1452
1454
|
version: SC_VERSION,
|
|
1453
|
-
withTheme: withTheme
|
|
1454
|
-
__PRIVATE__: __PRIVATE__
|
|
1455
|
+
withTheme: withTheme
|
|
1455
1456
|
});
|
|
1456
1457
|
|
|
1457
1458
|
var LIMIT = 200;
|