@wordpress/global-styles-engine 1.12.0 → 1.12.1-next.v.202605131032.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/build/core/render.cjs +260 -222
- package/build/core/render.cjs.map +2 -2
- package/build-module/core/render.mjs +260 -222
- package/build-module/core/render.mjs.map +2 -2
- package/build-types/core/render.d.ts +1 -1
- package/build-types/core/render.d.ts.map +1 -1
- package/build-types/utils/background.d.ts +3 -3
- package/build-types/utils/background.d.ts.map +1 -1
- package/build-types/utils/fluid.d.ts +1 -1
- package/build-types/utils/fluid.d.ts.map +1 -1
- package/build-types/utils/layout.d.ts +13 -13
- package/build-types/utils/layout.d.ts.map +1 -1
- package/build-types/utils/object.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/core/render.tsx +415 -301
- package/src/test/render.test.ts +437 -0
|
@@ -15,11 +15,11 @@ export declare const LAYOUT_DEFINITIONS: {
|
|
|
15
15
|
} | {
|
|
16
16
|
selector: string;
|
|
17
17
|
rules: {
|
|
18
|
-
'margin-left': string;
|
|
19
|
-
'margin-right': string;
|
|
20
18
|
float?: undefined;
|
|
21
19
|
'margin-inline-start'?: undefined;
|
|
22
20
|
'margin-inline-end'?: undefined;
|
|
21
|
+
'margin-left': string;
|
|
22
|
+
'margin-right': string;
|
|
23
23
|
};
|
|
24
24
|
})[];
|
|
25
25
|
spacingStyles: ({
|
|
@@ -49,55 +49,55 @@ export declare const LAYOUT_DEFINITIONS: {
|
|
|
49
49
|
baseStyles: ({
|
|
50
50
|
selector: string;
|
|
51
51
|
rules: {
|
|
52
|
+
'margin-left'?: undefined;
|
|
53
|
+
'margin-right'?: undefined;
|
|
52
54
|
float: string;
|
|
53
55
|
'margin-inline-start': string;
|
|
54
56
|
'margin-inline-end': string;
|
|
55
|
-
'margin-left'?: undefined;
|
|
56
|
-
'margin-right'?: undefined;
|
|
57
57
|
'max-width'?: undefined;
|
|
58
58
|
};
|
|
59
59
|
} | {
|
|
60
60
|
selector: string;
|
|
61
61
|
rules: {
|
|
62
|
-
'margin-left': string;
|
|
63
|
-
'margin-right': string;
|
|
64
62
|
float?: undefined;
|
|
65
63
|
'margin-inline-start'?: undefined;
|
|
66
64
|
'margin-inline-end'?: undefined;
|
|
65
|
+
'margin-left': string;
|
|
66
|
+
'margin-right': string;
|
|
67
67
|
'max-width'?: undefined;
|
|
68
68
|
};
|
|
69
69
|
} | {
|
|
70
70
|
selector: string;
|
|
71
71
|
rules: {
|
|
72
|
-
'max-width': string;
|
|
73
|
-
'margin-left': string;
|
|
74
|
-
'margin-right': string;
|
|
75
72
|
float?: undefined;
|
|
76
73
|
'margin-inline-start'?: undefined;
|
|
77
74
|
'margin-inline-end'?: undefined;
|
|
75
|
+
'max-width': string;
|
|
76
|
+
'margin-left': string;
|
|
77
|
+
'margin-right': string;
|
|
78
78
|
};
|
|
79
79
|
} | {
|
|
80
80
|
selector: string;
|
|
81
81
|
rules: {
|
|
82
|
-
'max-width': string;
|
|
83
82
|
float?: undefined;
|
|
84
83
|
'margin-inline-start'?: undefined;
|
|
85
84
|
'margin-inline-end'?: undefined;
|
|
86
85
|
'margin-left'?: undefined;
|
|
87
86
|
'margin-right'?: undefined;
|
|
87
|
+
'max-width': string;
|
|
88
88
|
};
|
|
89
89
|
})[];
|
|
90
90
|
spacingStyles: ({
|
|
91
91
|
selector: string;
|
|
92
92
|
rules: {
|
|
93
|
-
'margin-block-start': string;
|
|
94
93
|
'margin-block-end'?: undefined;
|
|
94
|
+
'margin-block-start': string;
|
|
95
95
|
};
|
|
96
96
|
} | {
|
|
97
97
|
selector: string;
|
|
98
98
|
rules: {
|
|
99
|
-
'margin-block-end': string;
|
|
100
99
|
'margin-block-start'?: undefined;
|
|
100
|
+
'margin-block-end': string;
|
|
101
101
|
};
|
|
102
102
|
} | {
|
|
103
103
|
selector: string;
|
|
@@ -122,9 +122,9 @@ export declare const LAYOUT_DEFINITIONS: {
|
|
|
122
122
|
} | {
|
|
123
123
|
selector: string;
|
|
124
124
|
rules: {
|
|
125
|
-
margin: string;
|
|
126
125
|
'flex-wrap'?: undefined;
|
|
127
126
|
'align-items'?: undefined;
|
|
127
|
+
margin: string;
|
|
128
128
|
};
|
|
129
129
|
})[];
|
|
130
130
|
spacingStyles: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/utils/layout.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/utils/layout.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA8C1B,oBAAoB;gBACpB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBAiElB,oBAAoB;gBACpB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA6BlB,GAAG;;;;;;;;;;;;gBAcH,MAAM;;;;;;gBAQN,GAAG;;;;CAKP,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../src/utils/object.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC3B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,CAAE,MAAM,GAAG,MAAM,CAAE,EAAE,EAC7C,KAAK,EAAE,GAAG,UAsBV;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../src/utils/object.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAC3B,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,CAAE,MAAM,GAAG,MAAM,CAAE,EAAE,EAC7C,KAAK,EAAE,GAAG,UAsBV;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB,WAC1B,MAAM,QACR,MAAM,GAAG,MAAM,EAAE,iBACR,GAAG,WASlB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/global-styles-engine",
|
|
3
|
-
"version": "1.12.0",
|
|
3
|
+
"version": "1.12.1-next.v.202605131032.0+f6d6e7149",
|
|
4
4
|
"description": "Pure CSS generation engine for WordPress global styles.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"types": "build-types/index.d.ts",
|
|
43
43
|
"sideEffects": false,
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@wordpress/blocks": "^15.18.0",
|
|
46
|
-
"@wordpress/data": "^10.45.0",
|
|
47
|
-
"@wordpress/i18n": "^6.18.0",
|
|
48
|
-
"@wordpress/style-engine": "^2.45.0",
|
|
45
|
+
"@wordpress/blocks": "^15.18.1-next.v.202605131032.0+f6d6e7149",
|
|
46
|
+
"@wordpress/data": "^10.45.1-next.v.202605131032.0+f6d6e7149",
|
|
47
|
+
"@wordpress/i18n": "^6.18.1-next.v.202605131032.0+f6d6e7149",
|
|
48
|
+
"@wordpress/style-engine": "^2.45.1-next.v.202605131032.0+f6d6e7149",
|
|
49
49
|
"colord": "^2.9.2",
|
|
50
50
|
"deepmerge": "^4.3.0",
|
|
51
51
|
"fast-deep-equal": "^3.1.3",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "0e198c7ac7ca634e73ded9220ce048c0302174dd"
|
|
63
63
|
}
|