styled-components 6.4.0-prerelease.0 → 6.4.0-prerelease.2
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/models/GlobalStyle.d.ts +13 -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 +87 -31
- 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/native/dist/dist/models/GlobalStyle.d.ts +13 -1
- package/native/dist/models/GlobalStyle.d.ts +13 -1
- package/package.json +2 -2
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
import StyleSheet from '../sheet';
|
|
2
2
|
import { ExecutionContext, RuleSet, Stringifier } from '../types';
|
|
3
|
+
type InstanceEntry = {
|
|
4
|
+
name: string;
|
|
5
|
+
rules: string[];
|
|
6
|
+
};
|
|
3
7
|
export default class GlobalStyle<Props extends object> {
|
|
4
8
|
componentId: string;
|
|
5
9
|
isStatic: boolean;
|
|
6
10
|
rules: RuleSet<Props>;
|
|
11
|
+
/** @internal Per-instance rule cache for shared-group rebuild. */
|
|
12
|
+
instanceRules: Map<number, InstanceEntry>;
|
|
7
13
|
constructor(rules: RuleSet<Props>, componentId: string);
|
|
8
|
-
createStyles(instance: number, executionContext: ExecutionContext & Props, styleSheet: StyleSheet, stylis: Stringifier): void;
|
|
9
14
|
removeStyles(instance: number, styleSheet: StyleSheet): void;
|
|
10
15
|
renderStyles(instance: number, executionContext: ExecutionContext & Props, styleSheet: StyleSheet, stylis: Stringifier): void;
|
|
16
|
+
private computeRules;
|
|
17
|
+
/**
|
|
18
|
+
* Clear all CSS rules in the shared group and re-insert from surviving instances.
|
|
19
|
+
* Must run synchronously — no yielding between clear and re-insert.
|
|
20
|
+
*/
|
|
21
|
+
private rebuildGroup;
|
|
11
22
|
}
|
|
23
|
+
export {};
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
import StyleSheet from '../sheet';
|
|
2
2
|
import { ExecutionContext, RuleSet, Stringifier } from '../types';
|
|
3
|
+
type InstanceEntry = {
|
|
4
|
+
name: string;
|
|
5
|
+
rules: string[];
|
|
6
|
+
};
|
|
3
7
|
export default class GlobalStyle<Props extends object> {
|
|
4
8
|
componentId: string;
|
|
5
9
|
isStatic: boolean;
|
|
6
10
|
rules: RuleSet<Props>;
|
|
11
|
+
/** @internal Per-instance rule cache for shared-group rebuild. */
|
|
12
|
+
instanceRules: Map<number, InstanceEntry>;
|
|
7
13
|
constructor(rules: RuleSet<Props>, componentId: string);
|
|
8
|
-
createStyles(instance: number, executionContext: ExecutionContext & Props, styleSheet: StyleSheet, stylis: Stringifier): void;
|
|
9
14
|
removeStyles(instance: number, styleSheet: StyleSheet): void;
|
|
10
15
|
renderStyles(instance: number, executionContext: ExecutionContext & Props, styleSheet: StyleSheet, stylis: Stringifier): void;
|
|
16
|
+
private computeRules;
|
|
17
|
+
/**
|
|
18
|
+
* Clear all CSS rules in the shared group and re-insert from surviving instances.
|
|
19
|
+
* Must run synchronously — no yielding between clear and re-insert.
|
|
20
|
+
*/
|
|
21
|
+
private rebuildGroup;
|
|
11
22
|
}
|
|
23
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "styled-components",
|
|
3
|
-
"version": "6.4.0-prerelease.
|
|
3
|
+
"version": "6.4.0-prerelease.2",
|
|
4
4
|
"description": "CSS for the <Component> Age. Style components your way with speed, strong typing, and flexibility.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"files": [
|
|
136
136
|
{
|
|
137
137
|
"path": "./dist/styled-components.min.js",
|
|
138
|
-
"maxSize": "12.
|
|
138
|
+
"maxSize": "12.41kB"
|
|
139
139
|
}
|
|
140
140
|
]
|
|
141
141
|
},
|