@pikacss/core 0.0.51 → 0.0.52
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/index.d.mts +25501 -732
- package/dist/index.mjs +404 -293
- package/package.json +1 -3
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region src/
|
|
1
|
+
//#region src/generated/property-effects.ts
|
|
2
2
|
const PROPERTY_EFFECTS = {
|
|
3
3
|
"accent-color": ["accent-color"],
|
|
4
4
|
"align-content": ["align-content"],
|
|
@@ -17,8 +17,11 @@ const PROPERTY_EFFECTS = {
|
|
|
17
17
|
"animation-iteration-count",
|
|
18
18
|
"animation-name",
|
|
19
19
|
"animation-play-state",
|
|
20
|
+
"animation-range-end",
|
|
21
|
+
"animation-range-start",
|
|
20
22
|
"animation-timeline",
|
|
21
|
-
"animation-timing-function"
|
|
23
|
+
"animation-timing-function",
|
|
24
|
+
"animation-trigger"
|
|
22
25
|
],
|
|
23
26
|
"animation-composition": ["animation-composition"],
|
|
24
27
|
"animation-delay": ["animation-delay"],
|
|
@@ -29,6 +32,7 @@ const PROPERTY_EFFECTS = {
|
|
|
29
32
|
"animation-name": ["animation-name"],
|
|
30
33
|
"animation-play-state": ["animation-play-state"],
|
|
31
34
|
"animation-range": ["animation-range-end", "animation-range-start"],
|
|
35
|
+
"animation-range-center": ["animation-range-center"],
|
|
32
36
|
"animation-range-end": ["animation-range-end"],
|
|
33
37
|
"animation-range-start": ["animation-range-start"],
|
|
34
38
|
"animation-timeline": ["animation-timeline"],
|
|
@@ -40,6 +44,7 @@ const PROPERTY_EFFECTS = {
|
|
|
40
44
|
"backface-visibility": ["backface-visibility"],
|
|
41
45
|
"background": [
|
|
42
46
|
"background-attachment",
|
|
47
|
+
"background-blend-mode",
|
|
43
48
|
"background-clip",
|
|
44
49
|
"background-color",
|
|
45
50
|
"background-image",
|
|
@@ -56,18 +61,44 @@ const PROPERTY_EFFECTS = {
|
|
|
56
61
|
"background-image": ["background-image"],
|
|
57
62
|
"background-origin": ["background-origin"],
|
|
58
63
|
"background-position": ["background-position-x", "background-position-y"],
|
|
64
|
+
"background-position-block": ["background-position-block"],
|
|
65
|
+
"background-position-inline": ["background-position-inline"],
|
|
59
66
|
"background-position-x": ["background-position-x"],
|
|
60
67
|
"background-position-y": ["background-position-y"],
|
|
61
68
|
"background-repeat": ["background-repeat"],
|
|
69
|
+
"background-repeat-block": ["background-repeat-block"],
|
|
70
|
+
"background-repeat-inline": ["background-repeat-inline"],
|
|
71
|
+
"background-repeat-x": ["background-repeat-x"],
|
|
72
|
+
"background-repeat-y": ["background-repeat-y"],
|
|
62
73
|
"background-size": ["background-size"],
|
|
74
|
+
"background-tbd": ["background-tbd"],
|
|
63
75
|
"baseline-shift": ["baseline-shift"],
|
|
64
76
|
"baseline-source": ["baseline-source"],
|
|
77
|
+
"block-ellipsis": ["block-ellipsis"],
|
|
65
78
|
"block-size": ["block-size"],
|
|
79
|
+
"block-step": [
|
|
80
|
+
"block-step-align",
|
|
81
|
+
"block-step-insert",
|
|
82
|
+
"block-step-round",
|
|
83
|
+
"block-step-size"
|
|
84
|
+
],
|
|
85
|
+
"block-step-align": ["block-step-align"],
|
|
86
|
+
"block-step-insert": ["block-step-insert"],
|
|
87
|
+
"block-step-round": ["block-step-round"],
|
|
88
|
+
"block-step-size": ["block-step-size"],
|
|
89
|
+
"bookmark-label": ["bookmark-label"],
|
|
90
|
+
"bookmark-level": ["bookmark-level"],
|
|
91
|
+
"bookmark-state": ["bookmark-state"],
|
|
66
92
|
"border": [
|
|
67
93
|
"border-bottom-color",
|
|
68
94
|
"border-left-color",
|
|
69
95
|
"border-right-color",
|
|
70
96
|
"border-top-color",
|
|
97
|
+
"border-image-outset",
|
|
98
|
+
"border-image-repeat",
|
|
99
|
+
"border-image-slice",
|
|
100
|
+
"border-image-source",
|
|
101
|
+
"border-image-width",
|
|
71
102
|
"border-bottom-style",
|
|
72
103
|
"border-left-style",
|
|
73
104
|
"border-right-style",
|
|
@@ -79,19 +110,22 @@ const PROPERTY_EFFECTS = {
|
|
|
79
110
|
],
|
|
80
111
|
"border-block": [
|
|
81
112
|
"border-block-end-color",
|
|
82
|
-
"border-block-start-color",
|
|
83
113
|
"border-block-end-style",
|
|
84
|
-
"border-block-start-style",
|
|
85
114
|
"border-block-end-width",
|
|
115
|
+
"border-block-start-color",
|
|
116
|
+
"border-block-start-style",
|
|
86
117
|
"border-block-start-width"
|
|
87
118
|
],
|
|
119
|
+
"border-block-clip": ["border-block-end-clip", "border-block-start-clip"],
|
|
88
120
|
"border-block-color": ["border-block-end-color", "border-block-start-color"],
|
|
89
121
|
"border-block-end": [
|
|
90
122
|
"border-block-end-color",
|
|
91
123
|
"border-block-end-style",
|
|
92
124
|
"border-block-end-width"
|
|
93
125
|
],
|
|
126
|
+
"border-block-end-clip": ["border-block-end-clip"],
|
|
94
127
|
"border-block-end-color": ["border-block-end-color"],
|
|
128
|
+
"border-block-end-radius": ["border-end-end-radius", "border-end-start-radius"],
|
|
95
129
|
"border-block-end-style": ["border-block-end-style"],
|
|
96
130
|
"border-block-end-width": ["border-block-end-width"],
|
|
97
131
|
"border-block-start": [
|
|
@@ -99,7 +133,9 @@ const PROPERTY_EFFECTS = {
|
|
|
99
133
|
"border-block-start-style",
|
|
100
134
|
"border-block-start-width"
|
|
101
135
|
],
|
|
136
|
+
"border-block-start-clip": ["border-block-start-clip"],
|
|
102
137
|
"border-block-start-color": ["border-block-start-color"],
|
|
138
|
+
"border-block-start-radius": ["border-start-end-radius", "border-start-start-radius"],
|
|
103
139
|
"border-block-start-style": ["border-block-start-style"],
|
|
104
140
|
"border-block-start-width": ["border-block-start-width"],
|
|
105
141
|
"border-block-style": ["border-block-end-style", "border-block-start-style"],
|
|
@@ -109,11 +145,20 @@ const PROPERTY_EFFECTS = {
|
|
|
109
145
|
"border-bottom-style",
|
|
110
146
|
"border-bottom-width"
|
|
111
147
|
],
|
|
148
|
+
"border-bottom-clip": ["border-bottom-clip"],
|
|
112
149
|
"border-bottom-color": ["border-bottom-color"],
|
|
113
150
|
"border-bottom-left-radius": ["border-bottom-left-radius"],
|
|
151
|
+
"border-bottom-radius": ["border-bottom-left-radius", "border-bottom-right-radius"],
|
|
114
152
|
"border-bottom-right-radius": ["border-bottom-right-radius"],
|
|
115
153
|
"border-bottom-style": ["border-bottom-style"],
|
|
116
154
|
"border-bottom-width": ["border-bottom-width"],
|
|
155
|
+
"border-boundary": ["border-boundary"],
|
|
156
|
+
"border-clip": [
|
|
157
|
+
"border-bottom-clip",
|
|
158
|
+
"border-left-clip",
|
|
159
|
+
"border-right-clip",
|
|
160
|
+
"border-top-clip"
|
|
161
|
+
],
|
|
117
162
|
"border-collapse": ["border-collapse"],
|
|
118
163
|
"border-color": [
|
|
119
164
|
"border-bottom-color",
|
|
@@ -137,19 +182,22 @@ const PROPERTY_EFFECTS = {
|
|
|
137
182
|
"border-image-width": ["border-image-width"],
|
|
138
183
|
"border-inline": [
|
|
139
184
|
"border-inline-end-color",
|
|
140
|
-
"border-inline-start-color",
|
|
141
185
|
"border-inline-end-style",
|
|
142
|
-
"border-inline-start-style",
|
|
143
186
|
"border-inline-end-width",
|
|
187
|
+
"border-inline-start-color",
|
|
188
|
+
"border-inline-start-style",
|
|
144
189
|
"border-inline-start-width"
|
|
145
190
|
],
|
|
191
|
+
"border-inline-clip": ["border-inline-end-clip", "border-inline-start-clip"],
|
|
146
192
|
"border-inline-color": ["border-inline-end-color", "border-inline-start-color"],
|
|
147
193
|
"border-inline-end": [
|
|
148
194
|
"border-inline-end-color",
|
|
149
195
|
"border-inline-end-style",
|
|
150
196
|
"border-inline-end-width"
|
|
151
197
|
],
|
|
198
|
+
"border-inline-end-clip": ["border-inline-end-clip"],
|
|
152
199
|
"border-inline-end-color": ["border-inline-end-color"],
|
|
200
|
+
"border-inline-end-radius": ["border-end-end-radius", "border-start-end-radius"],
|
|
153
201
|
"border-inline-end-style": ["border-inline-end-style"],
|
|
154
202
|
"border-inline-end-width": ["border-inline-end-width"],
|
|
155
203
|
"border-inline-start": [
|
|
@@ -157,7 +205,9 @@ const PROPERTY_EFFECTS = {
|
|
|
157
205
|
"border-inline-start-style",
|
|
158
206
|
"border-inline-start-width"
|
|
159
207
|
],
|
|
208
|
+
"border-inline-start-clip": ["border-inline-start-clip"],
|
|
160
209
|
"border-inline-start-color": ["border-inline-start-color"],
|
|
210
|
+
"border-inline-start-radius": ["border-end-start-radius", "border-start-start-radius"],
|
|
161
211
|
"border-inline-start-style": ["border-inline-start-style"],
|
|
162
212
|
"border-inline-start-width": ["border-inline-start-width"],
|
|
163
213
|
"border-inline-style": ["border-inline-end-style", "border-inline-start-style"],
|
|
@@ -167,9 +217,12 @@ const PROPERTY_EFFECTS = {
|
|
|
167
217
|
"border-left-style",
|
|
168
218
|
"border-left-width"
|
|
169
219
|
],
|
|
220
|
+
"border-left-clip": ["border-left-clip"],
|
|
170
221
|
"border-left-color": ["border-left-color"],
|
|
222
|
+
"border-left-radius": ["border-bottom-left-radius", "border-top-left-radius"],
|
|
171
223
|
"border-left-style": ["border-left-style"],
|
|
172
224
|
"border-left-width": ["border-left-width"],
|
|
225
|
+
"border-limit": ["border-limit"],
|
|
173
226
|
"border-radius": [
|
|
174
227
|
"border-bottom-left-radius",
|
|
175
228
|
"border-bottom-right-radius",
|
|
@@ -181,9 +234,12 @@ const PROPERTY_EFFECTS = {
|
|
|
181
234
|
"border-right-style",
|
|
182
235
|
"border-right-width"
|
|
183
236
|
],
|
|
237
|
+
"border-right-clip": ["border-right-clip"],
|
|
184
238
|
"border-right-color": ["border-right-color"],
|
|
239
|
+
"border-right-radius": ["border-bottom-right-radius", "border-top-right-radius"],
|
|
185
240
|
"border-right-style": ["border-right-style"],
|
|
186
241
|
"border-right-width": ["border-right-width"],
|
|
242
|
+
"border-shape": ["border-shape"],
|
|
187
243
|
"border-spacing": ["border-spacing"],
|
|
188
244
|
"border-start-end-radius": ["border-start-end-radius"],
|
|
189
245
|
"border-start-start-radius": ["border-start-start-radius"],
|
|
@@ -198,8 +254,10 @@ const PROPERTY_EFFECTS = {
|
|
|
198
254
|
"border-top-style",
|
|
199
255
|
"border-top-width"
|
|
200
256
|
],
|
|
257
|
+
"border-top-clip": ["border-top-clip"],
|
|
201
258
|
"border-top-color": ["border-top-color"],
|
|
202
259
|
"border-top-left-radius": ["border-top-left-radius"],
|
|
260
|
+
"border-top-radius": ["border-top-left-radius", "border-top-right-radius"],
|
|
203
261
|
"border-top-right-radius": ["border-top-right-radius"],
|
|
204
262
|
"border-top-style": ["border-top-style"],
|
|
205
263
|
"border-top-width": ["border-top-width"],
|
|
@@ -219,8 +277,20 @@ const PROPERTY_EFFECTS = {
|
|
|
219
277
|
"box-ordinal-group": ["box-ordinal-group"],
|
|
220
278
|
"box-orient": ["box-orient"],
|
|
221
279
|
"box-pack": ["box-pack"],
|
|
222
|
-
"box-shadow": [
|
|
280
|
+
"box-shadow": [
|
|
281
|
+
"box-shadow-blur",
|
|
282
|
+
"box-shadow-color",
|
|
283
|
+
"box-shadow-offset",
|
|
284
|
+
"box-shadow-position",
|
|
285
|
+
"box-shadow-spread"
|
|
286
|
+
],
|
|
287
|
+
"box-shadow-blur": ["box-shadow-blur"],
|
|
288
|
+
"box-shadow-color": ["box-shadow-color"],
|
|
289
|
+
"box-shadow-offset": ["box-shadow-offset"],
|
|
290
|
+
"box-shadow-position": ["box-shadow-position"],
|
|
291
|
+
"box-shadow-spread": ["box-shadow-spread"],
|
|
223
292
|
"box-sizing": ["box-sizing"],
|
|
293
|
+
"box-snap": ["box-snap"],
|
|
224
294
|
"break-after": ["break-after"],
|
|
225
295
|
"break-before": ["break-before"],
|
|
226
296
|
"break-inside": ["break-inside"],
|
|
@@ -238,7 +308,10 @@ const PROPERTY_EFFECTS = {
|
|
|
238
308
|
"clip-path": ["clip-path"],
|
|
239
309
|
"clip-rule": ["clip-rule"],
|
|
240
310
|
"color": ["color"],
|
|
311
|
+
"color-adjust": ["print-color-adjust"],
|
|
312
|
+
"color-interpolation": ["color-interpolation"],
|
|
241
313
|
"color-interpolation-filters": ["color-interpolation-filters"],
|
|
314
|
+
"color-rendering": ["color-rendering"],
|
|
242
315
|
"color-scheme": ["color-scheme"],
|
|
243
316
|
"column-count": ["column-count"],
|
|
244
317
|
"column-fill": ["column-fill"],
|
|
@@ -249,8 +322,24 @@ const PROPERTY_EFFECTS = {
|
|
|
249
322
|
"column-rule-style",
|
|
250
323
|
"column-rule-width"
|
|
251
324
|
],
|
|
325
|
+
"column-rule-break": ["column-rule-break"],
|
|
252
326
|
"column-rule-color": ["column-rule-color"],
|
|
327
|
+
"column-rule-inset": [
|
|
328
|
+
"column-rule-inset-cap-end",
|
|
329
|
+
"column-rule-inset-cap-start",
|
|
330
|
+
"column-rule-inset-junction-end",
|
|
331
|
+
"column-rule-inset-junction-start"
|
|
332
|
+
],
|
|
333
|
+
"column-rule-inset-cap": ["column-rule-inset-cap-end", "column-rule-inset-cap-start"],
|
|
334
|
+
"column-rule-inset-cap-end": ["column-rule-inset-cap-end"],
|
|
335
|
+
"column-rule-inset-cap-start": ["column-rule-inset-cap-start"],
|
|
336
|
+
"column-rule-inset-end": ["column-rule-inset-cap-end", "column-rule-inset-junction-end"],
|
|
337
|
+
"column-rule-inset-junction": ["column-rule-inset-junction-end", "column-rule-inset-junction-start"],
|
|
338
|
+
"column-rule-inset-junction-end": ["column-rule-inset-junction-end"],
|
|
339
|
+
"column-rule-inset-junction-start": ["column-rule-inset-junction-start"],
|
|
340
|
+
"column-rule-inset-start": ["column-rule-inset-cap-start", "column-rule-inset-junction-start"],
|
|
253
341
|
"column-rule-style": ["column-rule-style"],
|
|
342
|
+
"column-rule-visibility-items": ["column-rule-visibility-items"],
|
|
254
343
|
"column-rule-width": ["column-rule-width"],
|
|
255
344
|
"column-span": ["column-span"],
|
|
256
345
|
"column-width": ["column-width"],
|
|
@@ -271,16 +360,74 @@ const PROPERTY_EFFECTS = {
|
|
|
271
360
|
"container-type": ["container-type"],
|
|
272
361
|
"content": ["content"],
|
|
273
362
|
"content-visibility": ["content-visibility"],
|
|
363
|
+
"continue": ["continue"],
|
|
364
|
+
"copy-into": ["copy-into"],
|
|
365
|
+
"corner": [
|
|
366
|
+
"border-bottom-left-radius",
|
|
367
|
+
"border-bottom-right-radius",
|
|
368
|
+
"border-top-left-radius",
|
|
369
|
+
"border-top-right-radius",
|
|
370
|
+
"corner-bottom-left-shape",
|
|
371
|
+
"corner-bottom-right-shape",
|
|
372
|
+
"corner-top-left-shape",
|
|
373
|
+
"corner-top-right-shape"
|
|
374
|
+
],
|
|
375
|
+
"corner-block-end": [
|
|
376
|
+
"border-end-end-radius",
|
|
377
|
+
"border-end-start-radius",
|
|
378
|
+
"corner-end-end-shape",
|
|
379
|
+
"corner-end-start-shape"
|
|
380
|
+
],
|
|
274
381
|
"corner-block-end-shape": ["corner-end-end-shape", "corner-end-start-shape"],
|
|
382
|
+
"corner-block-start": [
|
|
383
|
+
"border-start-end-radius",
|
|
384
|
+
"border-start-start-radius",
|
|
385
|
+
"corner-start-end-shape",
|
|
386
|
+
"corner-start-start-shape"
|
|
387
|
+
],
|
|
275
388
|
"corner-block-start-shape": ["corner-start-end-shape", "corner-start-start-shape"],
|
|
389
|
+
"corner-bottom": [
|
|
390
|
+
"border-bottom-left-radius",
|
|
391
|
+
"border-bottom-right-radius",
|
|
392
|
+
"corner-bottom-left-shape",
|
|
393
|
+
"corner-bottom-right-shape"
|
|
394
|
+
],
|
|
395
|
+
"corner-bottom-left": ["border-bottom-left-radius", "corner-bottom-left-shape"],
|
|
276
396
|
"corner-bottom-left-shape": ["corner-bottom-left-shape"],
|
|
397
|
+
"corner-bottom-right": ["border-bottom-right-radius", "corner-bottom-right-shape"],
|
|
277
398
|
"corner-bottom-right-shape": ["corner-bottom-right-shape"],
|
|
278
399
|
"corner-bottom-shape": ["corner-bottom-left-shape", "corner-bottom-right-shape"],
|
|
400
|
+
"corner-end-end": ["border-end-end-radius", "corner-end-end-shape"],
|
|
279
401
|
"corner-end-end-shape": ["corner-end-end-shape"],
|
|
402
|
+
"corner-end-start": ["border-end-start-radius", "corner-end-start-shape"],
|
|
280
403
|
"corner-end-start-shape": ["corner-end-start-shape"],
|
|
404
|
+
"corner-inline-end": [
|
|
405
|
+
"border-end-end-radius",
|
|
406
|
+
"border-start-end-radius",
|
|
407
|
+
"corner-end-end-shape",
|
|
408
|
+
"corner-start-end-shape"
|
|
409
|
+
],
|
|
281
410
|
"corner-inline-end-shape": ["corner-end-end-shape", "corner-start-end-shape"],
|
|
282
|
-
"corner-inline-start
|
|
411
|
+
"corner-inline-start": [
|
|
412
|
+
"border-end-start-radius",
|
|
413
|
+
"border-start-start-radius",
|
|
414
|
+
"corner-end-start-shape",
|
|
415
|
+
"corner-start-start-shape"
|
|
416
|
+
],
|
|
417
|
+
"corner-inline-start-shape": ["corner-end-start-shape", "corner-start-start-shape"],
|
|
418
|
+
"corner-left": [
|
|
419
|
+
"border-bottom-left-radius",
|
|
420
|
+
"border-top-left-radius",
|
|
421
|
+
"corner-bottom-left-shape",
|
|
422
|
+
"corner-top-left-shape"
|
|
423
|
+
],
|
|
283
424
|
"corner-left-shape": ["corner-bottom-left-shape", "corner-top-left-shape"],
|
|
425
|
+
"corner-right": [
|
|
426
|
+
"border-bottom-right-radius",
|
|
427
|
+
"border-top-right-radius",
|
|
428
|
+
"corner-bottom-right-shape",
|
|
429
|
+
"corner-top-right-shape"
|
|
430
|
+
],
|
|
284
431
|
"corner-right-shape": ["corner-bottom-right-shape", "corner-top-right-shape"],
|
|
285
432
|
"corner-shape": [
|
|
286
433
|
"corner-bottom-left-shape",
|
|
@@ -288,14 +435,27 @@ const PROPERTY_EFFECTS = {
|
|
|
288
435
|
"corner-top-left-shape",
|
|
289
436
|
"corner-top-right-shape"
|
|
290
437
|
],
|
|
438
|
+
"corner-start-end": ["border-start-end-radius", "corner-start-end-shape"],
|
|
291
439
|
"corner-start-end-shape": ["corner-start-end-shape"],
|
|
440
|
+
"corner-start-start": ["border-start-start-radius", "corner-start-start-shape"],
|
|
292
441
|
"corner-start-start-shape": ["corner-start-start-shape"],
|
|
442
|
+
"corner-top": [
|
|
443
|
+
"border-top-left-radius",
|
|
444
|
+
"border-top-right-radius",
|
|
445
|
+
"corner-top-left-shape",
|
|
446
|
+
"corner-top-right-shape"
|
|
447
|
+
],
|
|
448
|
+
"corner-top-left": ["border-top-left-radius", "corner-top-left-shape"],
|
|
293
449
|
"corner-top-left-shape": ["corner-top-left-shape"],
|
|
450
|
+
"corner-top-right": ["border-top-right-radius", "corner-top-right-shape"],
|
|
294
451
|
"corner-top-right-shape": ["corner-top-right-shape"],
|
|
295
452
|
"corner-top-shape": ["corner-top-left-shape", "corner-top-right-shape"],
|
|
296
453
|
"counter-increment": ["counter-increment"],
|
|
297
454
|
"counter-reset": ["counter-reset"],
|
|
298
455
|
"counter-set": ["counter-set"],
|
|
456
|
+
"cue": ["cue-after", "cue-before"],
|
|
457
|
+
"cue-after": ["cue-after"],
|
|
458
|
+
"cue-before": ["cue-before"],
|
|
299
459
|
"cursor": ["cursor"],
|
|
300
460
|
"cx": ["cx"],
|
|
301
461
|
"cy": ["cy"],
|
|
@@ -305,10 +465,20 @@ const PROPERTY_EFFECTS = {
|
|
|
305
465
|
"dominant-baseline": ["dominant-baseline"],
|
|
306
466
|
"dynamic-range-limit": ["dynamic-range-limit"],
|
|
307
467
|
"empty-cells": ["empty-cells"],
|
|
468
|
+
"event-trigger": ["event-trigger"],
|
|
469
|
+
"event-trigger-name": ["event-trigger-name"],
|
|
470
|
+
"event-trigger-source": ["event-trigger-source"],
|
|
308
471
|
"field-sizing": ["field-sizing"],
|
|
309
472
|
"fill": ["fill"],
|
|
473
|
+
"fill-break": ["fill-break"],
|
|
474
|
+
"fill-color": ["fill-color"],
|
|
475
|
+
"fill-image": ["fill-image"],
|
|
310
476
|
"fill-opacity": ["fill-opacity"],
|
|
477
|
+
"fill-origin": ["fill-origin"],
|
|
478
|
+
"fill-position": ["fill-position"],
|
|
479
|
+
"fill-repeat": ["fill-repeat"],
|
|
311
480
|
"fill-rule": ["fill-rule"],
|
|
481
|
+
"fill-size": ["fill-size"],
|
|
312
482
|
"filter": ["filter"],
|
|
313
483
|
"flex": [
|
|
314
484
|
"flex-basis",
|
|
@@ -322,11 +492,22 @@ const PROPERTY_EFFECTS = {
|
|
|
322
492
|
"flex-shrink": ["flex-shrink"],
|
|
323
493
|
"flex-wrap": ["flex-wrap"],
|
|
324
494
|
"float": ["float"],
|
|
495
|
+
"float-defer": ["float-defer"],
|
|
496
|
+
"float-offset": ["float-offset"],
|
|
497
|
+
"float-reference": ["float-reference"],
|
|
325
498
|
"flood-color": ["flood-color"],
|
|
326
499
|
"flood-opacity": ["flood-opacity"],
|
|
500
|
+
"flow-from": ["flow-from"],
|
|
501
|
+
"flow-into": ["flow-into"],
|
|
502
|
+
"flow-tolerance": ["flow-tolerance"],
|
|
327
503
|
"font": [
|
|
328
504
|
"font-family",
|
|
505
|
+
"font-feature-settings",
|
|
506
|
+
"font-kerning",
|
|
507
|
+
"font-language-override",
|
|
508
|
+
"font-optical-sizing",
|
|
329
509
|
"font-size",
|
|
510
|
+
"font-size-adjust",
|
|
330
511
|
"font-stretch",
|
|
331
512
|
"font-style",
|
|
332
513
|
"font-variant-alternates",
|
|
@@ -336,6 +517,7 @@ const PROPERTY_EFFECTS = {
|
|
|
336
517
|
"font-variant-ligatures",
|
|
337
518
|
"font-variant-numeric",
|
|
338
519
|
"font-variant-position",
|
|
520
|
+
"font-variation-settings",
|
|
339
521
|
"font-weight",
|
|
340
522
|
"line-height"
|
|
341
523
|
],
|
|
@@ -379,19 +561,19 @@ const PROPERTY_EFFECTS = {
|
|
|
379
561
|
"font-variation-settings": ["font-variation-settings"],
|
|
380
562
|
"font-weight": ["font-weight"],
|
|
381
563
|
"font-width": ["font-width"],
|
|
564
|
+
"footnote-display": ["footnote-display"],
|
|
565
|
+
"footnote-policy": ["footnote-policy"],
|
|
382
566
|
"forced-color-adjust": ["forced-color-adjust"],
|
|
567
|
+
"frame-sizing": ["frame-sizing"],
|
|
383
568
|
"gap": ["column-gap", "row-gap"],
|
|
569
|
+
"glyph-orientation-vertical": ["glyph-orientation-vertical"],
|
|
384
570
|
"grid": [
|
|
385
|
-
"column-gap",
|
|
386
571
|
"grid-auto-columns",
|
|
387
572
|
"grid-auto-flow",
|
|
388
573
|
"grid-auto-rows",
|
|
389
|
-
"grid-column-gap",
|
|
390
|
-
"grid-row-gap",
|
|
391
574
|
"grid-template-areas",
|
|
392
575
|
"grid-template-columns",
|
|
393
|
-
"grid-template-rows"
|
|
394
|
-
"row-gap"
|
|
576
|
+
"grid-template-rows"
|
|
395
577
|
],
|
|
396
578
|
"grid-area": [
|
|
397
579
|
"grid-column-end",
|
|
@@ -406,7 +588,7 @@ const PROPERTY_EFFECTS = {
|
|
|
406
588
|
"grid-column-end": ["grid-column-end"],
|
|
407
589
|
"grid-column-gap": ["grid-column-gap"],
|
|
408
590
|
"grid-column-start": ["grid-column-start"],
|
|
409
|
-
"grid-gap": ["
|
|
591
|
+
"grid-gap": ["column-gap", "row-gap"],
|
|
410
592
|
"grid-row": ["grid-row-end", "grid-row-start"],
|
|
411
593
|
"grid-row-end": ["grid-row-end"],
|
|
412
594
|
"grid-row-gap": ["grid-row-gap"],
|
|
@@ -423,14 +605,21 @@ const PROPERTY_EFFECTS = {
|
|
|
423
605
|
"height": ["height"],
|
|
424
606
|
"hyphenate-character": ["hyphenate-character"],
|
|
425
607
|
"hyphenate-limit-chars": ["hyphenate-limit-chars"],
|
|
608
|
+
"hyphenate-limit-last": ["hyphenate-limit-last"],
|
|
609
|
+
"hyphenate-limit-lines": ["hyphenate-limit-lines"],
|
|
610
|
+
"hyphenate-limit-zone": ["hyphenate-limit-zone"],
|
|
426
611
|
"hyphens": ["hyphens"],
|
|
612
|
+
"image-animation": ["image-animation"],
|
|
427
613
|
"image-orientation": ["image-orientation"],
|
|
428
614
|
"image-rendering": ["image-rendering"],
|
|
429
615
|
"image-resolution": ["image-resolution"],
|
|
430
616
|
"ime-mode": ["ime-mode"],
|
|
431
617
|
"initial-letter": ["initial-letter"],
|
|
432
618
|
"initial-letter-align": ["initial-letter-align"],
|
|
619
|
+
"initial-letter-wrap": ["initial-letter-wrap"],
|
|
433
620
|
"inline-size": ["inline-size"],
|
|
621
|
+
"inline-sizing": ["inline-sizing"],
|
|
622
|
+
"input-security": ["input-security"],
|
|
434
623
|
"inset": [
|
|
435
624
|
"bottom",
|
|
436
625
|
"left",
|
|
@@ -457,9 +646,18 @@ const PROPERTY_EFFECTS = {
|
|
|
457
646
|
"letter-spacing": ["letter-spacing"],
|
|
458
647
|
"lighting-color": ["lighting-color"],
|
|
459
648
|
"line-break": ["line-break"],
|
|
460
|
-
"line-clamp": [
|
|
649
|
+
"line-clamp": [
|
|
650
|
+
"block-ellipsis",
|
|
651
|
+
"continue",
|
|
652
|
+
"max-lines"
|
|
653
|
+
],
|
|
654
|
+
"line-fit-edge": ["line-fit-edge"],
|
|
655
|
+
"line-grid": ["line-grid"],
|
|
461
656
|
"line-height": ["line-height"],
|
|
462
657
|
"line-height-step": ["line-height-step"],
|
|
658
|
+
"line-padding": ["line-padding"],
|
|
659
|
+
"line-snap": ["line-snap"],
|
|
660
|
+
"link-parameters": ["link-parameters"],
|
|
463
661
|
"list-style": [
|
|
464
662
|
"list-style-image",
|
|
465
663
|
"list-style-position",
|
|
@@ -478,6 +676,7 @@ const PROPERTY_EFFECTS = {
|
|
|
478
676
|
"margin-block-end": ["margin-block-end"],
|
|
479
677
|
"margin-block-start": ["margin-block-start"],
|
|
480
678
|
"margin-bottom": ["margin-bottom"],
|
|
679
|
+
"margin-break": ["margin-break"],
|
|
481
680
|
"margin-inline": ["margin-inline-end", "margin-inline-start"],
|
|
482
681
|
"margin-inline-end": ["margin-inline-end"],
|
|
483
682
|
"margin-inline-start": ["margin-inline-start"],
|
|
@@ -492,8 +691,15 @@ const PROPERTY_EFFECTS = {
|
|
|
492
691
|
],
|
|
493
692
|
"marker-end": ["marker-end"],
|
|
494
693
|
"marker-mid": ["marker-mid"],
|
|
694
|
+
"marker-side": ["marker-side"],
|
|
495
695
|
"marker-start": ["marker-start"],
|
|
496
696
|
"mask": [
|
|
697
|
+
"mask-border-mode",
|
|
698
|
+
"mask-border-outset",
|
|
699
|
+
"mask-border-repeat",
|
|
700
|
+
"mask-border-slice",
|
|
701
|
+
"mask-border-source",
|
|
702
|
+
"mask-border-width",
|
|
497
703
|
"mask-clip",
|
|
498
704
|
"mask-composite",
|
|
499
705
|
"mask-image",
|
|
@@ -538,8 +744,13 @@ const PROPERTY_EFFECTS = {
|
|
|
538
744
|
"min-block-size": ["min-block-size"],
|
|
539
745
|
"min-height": ["min-height"],
|
|
540
746
|
"min-inline-size": ["min-inline-size"],
|
|
747
|
+
"min-intrinsic-sizing": ["min-intrinsic-sizing"],
|
|
541
748
|
"min-width": ["min-width"],
|
|
542
749
|
"mix-blend-mode": ["mix-blend-mode"],
|
|
750
|
+
"nav-down": ["nav-down"],
|
|
751
|
+
"nav-left": ["nav-left"],
|
|
752
|
+
"nav-right": ["nav-right"],
|
|
753
|
+
"nav-up": ["nav-up"],
|
|
543
754
|
"object-fit": ["object-fit"],
|
|
544
755
|
"object-position": ["object-position"],
|
|
545
756
|
"object-view-box": ["object-view-box"],
|
|
@@ -571,7 +782,22 @@ const PROPERTY_EFFECTS = {
|
|
|
571
782
|
"overflow-anchor": ["overflow-anchor"],
|
|
572
783
|
"overflow-block": ["overflow-block"],
|
|
573
784
|
"overflow-clip-box": ["overflow-clip-box"],
|
|
574
|
-
"overflow-clip-margin": [
|
|
785
|
+
"overflow-clip-margin": [
|
|
786
|
+
"overflow-clip-margin-bottom",
|
|
787
|
+
"overflow-clip-margin-left",
|
|
788
|
+
"overflow-clip-margin-right",
|
|
789
|
+
"overflow-clip-margin-top"
|
|
790
|
+
],
|
|
791
|
+
"overflow-clip-margin-block": ["overflow-clip-margin-block-end", "overflow-clip-margin-block-start"],
|
|
792
|
+
"overflow-clip-margin-block-end": ["overflow-clip-margin-block-end"],
|
|
793
|
+
"overflow-clip-margin-block-start": ["overflow-clip-margin-block-start"],
|
|
794
|
+
"overflow-clip-margin-bottom": ["overflow-clip-margin-bottom"],
|
|
795
|
+
"overflow-clip-margin-inline": ["overflow-clip-margin-inline-end", "overflow-clip-margin-inline-start"],
|
|
796
|
+
"overflow-clip-margin-inline-end": ["overflow-clip-margin-inline-end"],
|
|
797
|
+
"overflow-clip-margin-inline-start": ["overflow-clip-margin-inline-start"],
|
|
798
|
+
"overflow-clip-margin-left": ["overflow-clip-margin-left"],
|
|
799
|
+
"overflow-clip-margin-right": ["overflow-clip-margin-right"],
|
|
800
|
+
"overflow-clip-margin-top": ["overflow-clip-margin-top"],
|
|
575
801
|
"overflow-inline": ["overflow-inline"],
|
|
576
802
|
"overflow-wrap": ["overflow-wrap"],
|
|
577
803
|
"overflow-x": ["overflow-x"],
|
|
@@ -603,12 +829,19 @@ const PROPERTY_EFFECTS = {
|
|
|
603
829
|
"page-break-before": ["page-break-before"],
|
|
604
830
|
"page-break-inside": ["page-break-inside"],
|
|
605
831
|
"paint-order": ["paint-order"],
|
|
832
|
+
"path-length": ["path-length"],
|
|
833
|
+
"pause": ["pause-after", "pause-before"],
|
|
834
|
+
"pause-after": ["pause-after"],
|
|
835
|
+
"pause-before": ["pause-before"],
|
|
606
836
|
"perspective": ["perspective"],
|
|
607
837
|
"perspective-origin": ["perspective-origin"],
|
|
608
838
|
"place-content": ["align-content", "justify-content"],
|
|
609
839
|
"place-items": ["align-items", "justify-items"],
|
|
610
840
|
"place-self": ["align-self", "justify-self"],
|
|
611
841
|
"pointer-events": ["pointer-events"],
|
|
842
|
+
"pointer-timeline": ["pointer-timeline-axis", "pointer-timeline-name"],
|
|
843
|
+
"pointer-timeline-axis": ["pointer-timeline-axis"],
|
|
844
|
+
"pointer-timeline-name": ["pointer-timeline-name"],
|
|
612
845
|
"position": ["position"],
|
|
613
846
|
"position-anchor": ["position-anchor"],
|
|
614
847
|
"position-area": ["position-area"],
|
|
@@ -621,14 +854,80 @@ const PROPERTY_EFFECTS = {
|
|
|
621
854
|
"r": ["r"],
|
|
622
855
|
"reading-flow": ["reading-flow"],
|
|
623
856
|
"reading-order": ["reading-order"],
|
|
857
|
+
"region-fragment": ["region-fragment"],
|
|
624
858
|
"resize": ["resize"],
|
|
859
|
+
"rest": ["rest-after", "rest-before"],
|
|
860
|
+
"rest-after": ["rest-after"],
|
|
861
|
+
"rest-before": ["rest-before"],
|
|
625
862
|
"right": ["right"],
|
|
626
863
|
"rotate": ["rotate"],
|
|
627
864
|
"row-gap": ["row-gap"],
|
|
865
|
+
"row-rule": [
|
|
866
|
+
"row-rule-color",
|
|
867
|
+
"row-rule-style",
|
|
868
|
+
"row-rule-width"
|
|
869
|
+
],
|
|
870
|
+
"row-rule-break": ["row-rule-break"],
|
|
871
|
+
"row-rule-color": ["row-rule-color"],
|
|
872
|
+
"row-rule-inset": [
|
|
873
|
+
"row-rule-inset-cap-end",
|
|
874
|
+
"row-rule-inset-cap-start",
|
|
875
|
+
"row-rule-inset-junction-end",
|
|
876
|
+
"row-rule-inset-junction-start"
|
|
877
|
+
],
|
|
878
|
+
"row-rule-inset-cap": ["row-rule-inset-cap-end", "row-rule-inset-cap-start"],
|
|
879
|
+
"row-rule-inset-cap-end": ["row-rule-inset-cap-end"],
|
|
880
|
+
"row-rule-inset-cap-start": ["row-rule-inset-cap-start"],
|
|
881
|
+
"row-rule-inset-end": ["row-rule-inset-cap-end", "row-rule-inset-junction-end"],
|
|
882
|
+
"row-rule-inset-junction": ["row-rule-inset-junction-end", "row-rule-inset-junction-start"],
|
|
883
|
+
"row-rule-inset-junction-end": ["row-rule-inset-junction-end"],
|
|
884
|
+
"row-rule-inset-junction-start": ["row-rule-inset-junction-start"],
|
|
885
|
+
"row-rule-inset-start": ["row-rule-inset-cap-start", "row-rule-inset-junction-start"],
|
|
886
|
+
"row-rule-style": ["row-rule-style"],
|
|
887
|
+
"row-rule-visibility-items": ["row-rule-visibility-items"],
|
|
888
|
+
"row-rule-width": ["row-rule-width"],
|
|
628
889
|
"ruby-align": ["ruby-align"],
|
|
629
890
|
"ruby-merge": ["ruby-merge"],
|
|
630
891
|
"ruby-overhang": ["ruby-overhang"],
|
|
631
892
|
"ruby-position": ["ruby-position"],
|
|
893
|
+
"rule": [
|
|
894
|
+
"column-rule-color",
|
|
895
|
+
"column-rule-style",
|
|
896
|
+
"column-rule-width",
|
|
897
|
+
"row-rule-color",
|
|
898
|
+
"row-rule-style",
|
|
899
|
+
"row-rule-width"
|
|
900
|
+
],
|
|
901
|
+
"rule-break": ["column-rule-break", "row-rule-break"],
|
|
902
|
+
"rule-color": ["column-rule-color", "row-rule-color"],
|
|
903
|
+
"rule-inset": [
|
|
904
|
+
"column-rule-inset-cap-end",
|
|
905
|
+
"column-rule-inset-cap-start",
|
|
906
|
+
"column-rule-inset-junction-end",
|
|
907
|
+
"column-rule-inset-junction-start",
|
|
908
|
+
"row-rule-inset-cap-end",
|
|
909
|
+
"row-rule-inset-cap-start",
|
|
910
|
+
"row-rule-inset-junction-end",
|
|
911
|
+
"row-rule-inset-junction-start"
|
|
912
|
+
],
|
|
913
|
+
"rule-inset-cap": ["column-rule-inset-cap-end", "column-rule-inset-cap-start"],
|
|
914
|
+
"rule-inset-end": [
|
|
915
|
+
"column-rule-inset-cap-end",
|
|
916
|
+
"column-rule-inset-junction-end",
|
|
917
|
+
"row-rule-inset-cap-end",
|
|
918
|
+
"row-rule-inset-junction-end"
|
|
919
|
+
],
|
|
920
|
+
"rule-inset-junction": ["column-rule-inset-junction-end", "column-rule-inset-junction-start"],
|
|
921
|
+
"rule-inset-start": [
|
|
922
|
+
"column-rule-inset-cap-start",
|
|
923
|
+
"column-rule-inset-junction-start",
|
|
924
|
+
"row-rule-inset-cap-start",
|
|
925
|
+
"row-rule-inset-junction-start"
|
|
926
|
+
],
|
|
927
|
+
"rule-overlap": ["rule-overlap"],
|
|
928
|
+
"rule-style": ["column-rule-style", "row-rule-style"],
|
|
929
|
+
"rule-visibility-items": ["column-rule-visibility-items"],
|
|
930
|
+
"rule-width": ["column-rule-width", "row-rule-width"],
|
|
632
931
|
"rx": ["rx"],
|
|
633
932
|
"ry": ["ry"],
|
|
634
933
|
"scale": ["scale"],
|
|
@@ -684,12 +983,20 @@ const PROPERTY_EFFECTS = {
|
|
|
684
983
|
"scrollbar-gutter": ["scrollbar-gutter"],
|
|
685
984
|
"scrollbar-width": ["scrollbar-width"],
|
|
686
985
|
"shape-image-threshold": ["shape-image-threshold"],
|
|
986
|
+
"shape-inside": ["shape-inside"],
|
|
687
987
|
"shape-margin": ["shape-margin"],
|
|
688
988
|
"shape-outside": ["shape-outside"],
|
|
989
|
+
"shape-padding": ["shape-padding"],
|
|
689
990
|
"shape-rendering": ["shape-rendering"],
|
|
991
|
+
"slider-orientation": ["slider-orientation"],
|
|
992
|
+
"spatial-navigation-action": ["spatial-navigation-action"],
|
|
993
|
+
"spatial-navigation-contain": ["spatial-navigation-contain"],
|
|
994
|
+
"spatial-navigation-function": ["spatial-navigation-function"],
|
|
995
|
+
"speak": ["speak"],
|
|
690
996
|
"speak-as": ["speak-as"],
|
|
691
997
|
"stop-color": ["stop-color"],
|
|
692
998
|
"stop-opacity": ["stop-opacity"],
|
|
999
|
+
"string-set": ["string-set"],
|
|
693
1000
|
"stroke": [
|
|
694
1001
|
"stroke-dasharray",
|
|
695
1002
|
"stroke-dashoffset",
|
|
@@ -699,17 +1006,30 @@ const PROPERTY_EFFECTS = {
|
|
|
699
1006
|
"stroke-opacity",
|
|
700
1007
|
"stroke-width"
|
|
701
1008
|
],
|
|
1009
|
+
"stroke-align": ["stroke-align"],
|
|
1010
|
+
"stroke-alignment": ["stroke-alignment"],
|
|
1011
|
+
"stroke-break": ["stroke-break"],
|
|
702
1012
|
"stroke-color": ["stroke-color"],
|
|
1013
|
+
"stroke-dash-corner": ["stroke-dash-corner"],
|
|
1014
|
+
"stroke-dash-justify": ["stroke-dash-justify"],
|
|
1015
|
+
"stroke-dashadjust": ["stroke-dashadjust"],
|
|
703
1016
|
"stroke-dasharray": ["stroke-dasharray"],
|
|
1017
|
+
"stroke-dashcorner": ["stroke-dashcorner"],
|
|
704
1018
|
"stroke-dashoffset": ["stroke-dashoffset"],
|
|
1019
|
+
"stroke-image": ["stroke-image"],
|
|
705
1020
|
"stroke-linecap": ["stroke-linecap"],
|
|
706
1021
|
"stroke-linejoin": ["stroke-linejoin"],
|
|
707
1022
|
"stroke-miterlimit": ["stroke-miterlimit"],
|
|
708
1023
|
"stroke-opacity": ["stroke-opacity"],
|
|
1024
|
+
"stroke-origin": ["stroke-origin"],
|
|
1025
|
+
"stroke-position": ["stroke-position"],
|
|
1026
|
+
"stroke-repeat": ["stroke-repeat"],
|
|
1027
|
+
"stroke-size": ["stroke-size"],
|
|
709
1028
|
"stroke-width": ["stroke-width"],
|
|
710
1029
|
"tab-size": ["tab-size"],
|
|
711
1030
|
"table-layout": ["table-layout"],
|
|
712
|
-
"text-align": ["text-align"],
|
|
1031
|
+
"text-align": ["text-align-all", "text-align-last"],
|
|
1032
|
+
"text-align-all": ["text-align-all"],
|
|
713
1033
|
"text-align-last": ["text-align-last"],
|
|
714
1034
|
"text-anchor": ["text-anchor"],
|
|
715
1035
|
"text-autospace": ["text-autospace"],
|
|
@@ -726,14 +1046,25 @@ const PROPERTY_EFFECTS = {
|
|
|
726
1046
|
"text-decoration-color": ["text-decoration-color"],
|
|
727
1047
|
"text-decoration-inset": ["text-decoration-inset"],
|
|
728
1048
|
"text-decoration-line": ["text-decoration-line"],
|
|
729
|
-
"text-decoration-skip": [
|
|
1049
|
+
"text-decoration-skip": [
|
|
1050
|
+
"text-decoration-skip-box",
|
|
1051
|
+
"text-decoration-skip-ink",
|
|
1052
|
+
"text-decoration-skip-self",
|
|
1053
|
+
"text-decoration-skip-spaces"
|
|
1054
|
+
],
|
|
1055
|
+
"text-decoration-skip-box": ["text-decoration-skip-box"],
|
|
730
1056
|
"text-decoration-skip-ink": ["text-decoration-skip-ink"],
|
|
1057
|
+
"text-decoration-skip-self": ["text-decoration-skip-self"],
|
|
1058
|
+
"text-decoration-skip-spaces": ["text-decoration-skip-spaces"],
|
|
731
1059
|
"text-decoration-style": ["text-decoration-style"],
|
|
732
1060
|
"text-decoration-thickness": ["text-decoration-thickness"],
|
|
733
1061
|
"text-emphasis": ["text-emphasis-color", "text-emphasis-style"],
|
|
734
1062
|
"text-emphasis-color": ["text-emphasis-color"],
|
|
735
1063
|
"text-emphasis-position": ["text-emphasis-position"],
|
|
1064
|
+
"text-emphasis-skip": ["text-emphasis-skip"],
|
|
736
1065
|
"text-emphasis-style": ["text-emphasis-style"],
|
|
1066
|
+
"text-fit": ["text-fit"],
|
|
1067
|
+
"text-group-align": ["text-group-align"],
|
|
737
1068
|
"text-indent": ["text-indent"],
|
|
738
1069
|
"text-justify": ["text-justify"],
|
|
739
1070
|
"text-orientation": ["text-orientation"],
|
|
@@ -741,6 +1072,7 @@ const PROPERTY_EFFECTS = {
|
|
|
741
1072
|
"text-rendering": ["text-rendering"],
|
|
742
1073
|
"text-shadow": ["text-shadow"],
|
|
743
1074
|
"text-size-adjust": ["text-size-adjust"],
|
|
1075
|
+
"text-spacing": ["text-autospace", "text-spacing-trim"],
|
|
744
1076
|
"text-spacing-trim": ["text-spacing-trim"],
|
|
745
1077
|
"text-transform": ["text-transform"],
|
|
746
1078
|
"text-underline-offset": ["text-underline-offset"],
|
|
@@ -750,20 +1082,20 @@ const PROPERTY_EFFECTS = {
|
|
|
750
1082
|
"text-wrap-style": ["text-wrap-style"],
|
|
751
1083
|
"timeline-scope": ["timeline-scope"],
|
|
752
1084
|
"timeline-trigger": [
|
|
753
|
-
"timeline-trigger-
|
|
754
|
-
"timeline-trigger-
|
|
1085
|
+
"timeline-trigger-activation-range-end",
|
|
1086
|
+
"timeline-trigger-activation-range-start",
|
|
1087
|
+
"timeline-trigger-active-range-end",
|
|
1088
|
+
"timeline-trigger-active-range-start",
|
|
755
1089
|
"timeline-trigger-name",
|
|
756
|
-
"timeline-trigger-range-end",
|
|
757
|
-
"timeline-trigger-range-start",
|
|
758
1090
|
"timeline-trigger-source"
|
|
759
1091
|
],
|
|
760
|
-
"timeline-trigger-
|
|
761
|
-
"timeline-trigger-
|
|
762
|
-
"timeline-trigger-
|
|
1092
|
+
"timeline-trigger-activation-range": ["timeline-trigger-activation-range-end", "timeline-trigger-activation-range-start"],
|
|
1093
|
+
"timeline-trigger-activation-range-end": ["timeline-trigger-activation-range-end"],
|
|
1094
|
+
"timeline-trigger-activation-range-start": ["timeline-trigger-activation-range-start"],
|
|
1095
|
+
"timeline-trigger-active-range": ["timeline-trigger-active-range-end", "timeline-trigger-active-range-start"],
|
|
1096
|
+
"timeline-trigger-active-range-end": ["timeline-trigger-active-range-end"],
|
|
1097
|
+
"timeline-trigger-active-range-start": ["timeline-trigger-active-range-start"],
|
|
763
1098
|
"timeline-trigger-name": ["timeline-trigger-name"],
|
|
764
|
-
"timeline-trigger-range": ["timeline-trigger-range-end", "timeline-trigger-range-start"],
|
|
765
|
-
"timeline-trigger-range-end": ["timeline-trigger-range-end"],
|
|
766
|
-
"timeline-trigger-range-start": ["timeline-trigger-range-start"],
|
|
767
1099
|
"timeline-trigger-source": ["timeline-trigger-source"],
|
|
768
1100
|
"top": ["top"],
|
|
769
1101
|
"touch-action": ["touch-action"],
|
|
@@ -788,22 +1120,43 @@ const PROPERTY_EFFECTS = {
|
|
|
788
1120
|
"unicode-bidi": ["unicode-bidi"],
|
|
789
1121
|
"user-select": ["user-select"],
|
|
790
1122
|
"vector-effect": ["vector-effect"],
|
|
791
|
-
"vertical-align": [
|
|
1123
|
+
"vertical-align": [
|
|
1124
|
+
"alignment-baseline",
|
|
1125
|
+
"baseline-shift",
|
|
1126
|
+
"baseline-source"
|
|
1127
|
+
],
|
|
792
1128
|
"view-timeline": ["view-timeline-axis", "view-timeline-name"],
|
|
793
1129
|
"view-timeline-axis": ["view-timeline-axis"],
|
|
794
1130
|
"view-timeline-inset": ["view-timeline-inset"],
|
|
795
1131
|
"view-timeline-name": ["view-timeline-name"],
|
|
796
1132
|
"view-transition-class": ["view-transition-class"],
|
|
1133
|
+
"view-transition-group": ["view-transition-group"],
|
|
797
1134
|
"view-transition-name": ["view-transition-name"],
|
|
1135
|
+
"view-transition-scope": ["view-transition-scope"],
|
|
798
1136
|
"visibility": ["visibility"],
|
|
1137
|
+
"voice-balance": ["voice-balance"],
|
|
1138
|
+
"voice-duration": ["voice-duration"],
|
|
1139
|
+
"voice-family": ["voice-family"],
|
|
1140
|
+
"voice-pitch": ["voice-pitch"],
|
|
1141
|
+
"voice-range": ["voice-range"],
|
|
1142
|
+
"voice-rate": ["voice-rate"],
|
|
1143
|
+
"voice-stress": ["voice-stress"],
|
|
1144
|
+
"voice-volume": ["voice-volume"],
|
|
799
1145
|
"white-space": ["text-wrap-mode", "white-space-collapse"],
|
|
800
1146
|
"white-space-collapse": ["white-space-collapse"],
|
|
1147
|
+
"white-space-trim": ["white-space-trim"],
|
|
801
1148
|
"widows": ["widows"],
|
|
802
1149
|
"width": ["width"],
|
|
803
1150
|
"will-change": ["will-change"],
|
|
804
1151
|
"word-break": ["word-break"],
|
|
1152
|
+
"word-space-transform": ["word-space-transform"],
|
|
805
1153
|
"word-spacing": ["word-spacing"],
|
|
806
1154
|
"word-wrap": ["word-wrap"],
|
|
1155
|
+
"wrap-after": ["wrap-after"],
|
|
1156
|
+
"wrap-before": ["wrap-before"],
|
|
1157
|
+
"wrap-flow": ["wrap-flow"],
|
|
1158
|
+
"wrap-inside": ["wrap-inside"],
|
|
1159
|
+
"wrap-through": ["wrap-through"],
|
|
807
1160
|
"writing-mode": ["writing-mode"],
|
|
808
1161
|
"x": ["x"],
|
|
809
1162
|
"y": ["y"],
|
|
@@ -811,7 +1164,7 @@ const PROPERTY_EFFECTS = {
|
|
|
811
1164
|
"zoom": ["zoom"]
|
|
812
1165
|
};
|
|
813
1166
|
//#endregion
|
|
814
|
-
//#region src/
|
|
1167
|
+
//#region src/property-effects.ts
|
|
815
1168
|
const UNIVERSAL_EFFECT = "*";
|
|
816
1169
|
const propertyEffectsLookup = PROPERTY_EFFECTS;
|
|
817
1170
|
function isCustomProperty(property) {
|
|
@@ -869,7 +1222,7 @@ function hasPropertyEffectOverlap(left, right) {
|
|
|
869
1222
|
return leftEffects.some((effect) => rightEffectSet.has(effect));
|
|
870
1223
|
}
|
|
871
1224
|
//#endregion
|
|
872
|
-
//#region src/
|
|
1225
|
+
//#region src/utils.ts
|
|
873
1226
|
/**
|
|
874
1227
|
* Creates a scoped logger with configurable log-level functions and a toggleable debug mode.
|
|
875
1228
|
*
|
|
@@ -1211,7 +1564,7 @@ function renderCSSStyleBlocks(blocks, isFormatted, depth = 0) {
|
|
|
1211
1564
|
return lines.join(lineEnd);
|
|
1212
1565
|
}
|
|
1213
1566
|
//#endregion
|
|
1214
|
-
//#region src/
|
|
1567
|
+
//#region src/atomic-style.ts
|
|
1215
1568
|
/**
|
|
1216
1569
|
* Creates a fresh, empty `EngineStore` with all maps initialized.
|
|
1217
1570
|
* @internal
|
|
@@ -1423,7 +1776,7 @@ function getOrderSensitiveDependencyKeys(scoped, property) {
|
|
|
1423
1776
|
return dependencyKeys;
|
|
1424
1777
|
}
|
|
1425
1778
|
//#endregion
|
|
1426
|
-
//#region src/
|
|
1779
|
+
//#region src/constants.ts
|
|
1427
1780
|
/**
|
|
1428
1781
|
* CSS `@layer` at-rule prefix used when constructing layer-scoped selectors
|
|
1429
1782
|
* in generated stylesheet output.
|
|
@@ -1439,7 +1792,7 @@ const LAYER_SELECTOR_PREFIX = "@layer ";
|
|
|
1439
1792
|
*/
|
|
1440
1793
|
const ATOMIC_STYLE_ID_PLACEHOLDER_RE_GLOBAL = /%/g;
|
|
1441
1794
|
//#endregion
|
|
1442
|
-
//#region src/
|
|
1795
|
+
//#region src/extractor.ts
|
|
1443
1796
|
function replaceBySplitAndJoin(str, split, mapFn, join) {
|
|
1444
1797
|
let splitted = str.split(split);
|
|
1445
1798
|
if (mapFn != null) splitted = splitted.map(mapFn);
|
|
@@ -1596,7 +1949,7 @@ function createExtractFn(options) {
|
|
|
1596
1949
|
});
|
|
1597
1950
|
}
|
|
1598
1951
|
//#endregion
|
|
1599
|
-
//#region src/
|
|
1952
|
+
//#region src/plugin.ts
|
|
1600
1953
|
function getPluginHook(plugin, hook) {
|
|
1601
1954
|
const hookFn = plugin[hook];
|
|
1602
1955
|
return typeof hookFn === "function" ? hookFn : null;
|
|
@@ -1756,7 +2109,7 @@ function defineEnginePlugin(plugin) {
|
|
|
1756
2109
|
}
|
|
1757
2110
|
/* c8 ignore end */
|
|
1758
2111
|
//#endregion
|
|
1759
|
-
//#region src/
|
|
2112
|
+
//#region src/plugins/important.ts
|
|
1760
2113
|
function appendImportant(v) {
|
|
1761
2114
|
return v.endsWith("!important") ? v : `${v} !important`;
|
|
1762
2115
|
}
|
|
@@ -1803,7 +2156,7 @@ function important() {
|
|
|
1803
2156
|
});
|
|
1804
2157
|
}
|
|
1805
2158
|
//#endregion
|
|
1806
|
-
//#region src/
|
|
2159
|
+
//#region src/plugins/keyframes.ts
|
|
1807
2160
|
/**
|
|
1808
2161
|
* Built-in engine plugin that provides CSS `@keyframes` registration, autocomplete integration, and smart pruning.
|
|
1809
2162
|
*
|
|
@@ -1823,7 +2176,7 @@ function keyframes() {
|
|
|
1823
2176
|
name: "core:keyframes",
|
|
1824
2177
|
rawConfigConfigured(config) {
|
|
1825
2178
|
resolveKeyframesConfig = createResolveConfigFn({ pruneUnused: config.keyframes?.pruneUnused });
|
|
1826
|
-
configList = config.keyframes?.
|
|
2179
|
+
configList = config.keyframes?.definitions ?? [];
|
|
1827
2180
|
},
|
|
1828
2181
|
configureEngine(engine) {
|
|
1829
2182
|
engine.keyframes = {
|
|
@@ -1892,7 +2245,7 @@ function createResolveConfigFn({ pruneUnused: defaultPruneUnused = true } = {})
|
|
|
1892
2245
|
};
|
|
1893
2246
|
}
|
|
1894
2247
|
//#endregion
|
|
1895
|
-
//#region src/
|
|
2248
|
+
//#region src/resolver.ts
|
|
1896
2249
|
function stripGlobalFlag(re) {
|
|
1897
2250
|
if (!re.global) return re;
|
|
1898
2251
|
return new RegExp(re.source, re.flags.replace("g", ""));
|
|
@@ -2203,7 +2556,7 @@ function resolveRuleConfig(config, keyName) {
|
|
|
2203
2556
|
}
|
|
2204
2557
|
}
|
|
2205
2558
|
//#endregion
|
|
2206
|
-
//#region src/
|
|
2559
|
+
//#region src/plugins/selectors.ts
|
|
2207
2560
|
/**
|
|
2208
2561
|
* Built-in engine plugin that provides the selector resolution system.
|
|
2209
2562
|
*
|
|
@@ -2222,7 +2575,7 @@ function selectors() {
|
|
|
2222
2575
|
return defineEnginePlugin({
|
|
2223
2576
|
name: "core:selectors",
|
|
2224
2577
|
rawConfigConfigured(config) {
|
|
2225
|
-
configList = config.selectors?.
|
|
2578
|
+
configList = config.selectors?.definitions ?? [];
|
|
2226
2579
|
},
|
|
2227
2580
|
configureEngine(_engine) {
|
|
2228
2581
|
engine = _engine;
|
|
@@ -2275,7 +2628,7 @@ function resolveSelectorConfig(config) {
|
|
|
2275
2628
|
return resolveRuleConfig(config, "selector");
|
|
2276
2629
|
}
|
|
2277
2630
|
//#endregion
|
|
2278
|
-
//#region src/
|
|
2631
|
+
//#region src/plugins/shortcuts.ts
|
|
2279
2632
|
/**
|
|
2280
2633
|
* Built-in engine plugin that provides the shortcut resolution system.
|
|
2281
2634
|
*
|
|
@@ -2294,7 +2647,7 @@ function shortcuts() {
|
|
|
2294
2647
|
return defineEnginePlugin({
|
|
2295
2648
|
name: "core:shortcuts",
|
|
2296
2649
|
rawConfigConfigured(config) {
|
|
2297
|
-
configList = config.shortcuts?.
|
|
2650
|
+
configList = config.shortcuts?.definitions ?? [];
|
|
2298
2651
|
},
|
|
2299
2652
|
configureEngine(_engine) {
|
|
2300
2653
|
engine = _engine;
|
|
@@ -2358,94 +2711,7 @@ function resolveShortcutConfig(config) {
|
|
|
2358
2711
|
return resolveRuleConfig(config, "shortcut");
|
|
2359
2712
|
}
|
|
2360
2713
|
//#endregion
|
|
2361
|
-
//#region src/
|
|
2362
|
-
const VARIABLE_SEMANTIC_FAMILY_PROPERTIES = {
|
|
2363
|
-
"angle": [],
|
|
2364
|
-
"color": [
|
|
2365
|
-
"accent-color",
|
|
2366
|
-
"background-color",
|
|
2367
|
-
"border-block-color",
|
|
2368
|
-
"border-block-end-color",
|
|
2369
|
-
"border-block-start-color",
|
|
2370
|
-
"border-bottom-color",
|
|
2371
|
-
"border-inline-color",
|
|
2372
|
-
"border-inline-end-color",
|
|
2373
|
-
"border-inline-start-color",
|
|
2374
|
-
"border-left-color",
|
|
2375
|
-
"border-right-color",
|
|
2376
|
-
"border-top-color",
|
|
2377
|
-
"caret-color",
|
|
2378
|
-
"color",
|
|
2379
|
-
"column-rule-color",
|
|
2380
|
-
"flood-color",
|
|
2381
|
-
"lighting-color",
|
|
2382
|
-
"outline-color",
|
|
2383
|
-
"stop-color",
|
|
2384
|
-
"stroke-color",
|
|
2385
|
-
"text-decoration-color",
|
|
2386
|
-
"text-emphasis-color"
|
|
2387
|
-
],
|
|
2388
|
-
"easing": ["animation-timing-function", "transition-timing-function"],
|
|
2389
|
-
"font-family": ["font-family"],
|
|
2390
|
-
"image": [],
|
|
2391
|
-
"length": [
|
|
2392
|
-
"block-size",
|
|
2393
|
-
"border-bottom-width",
|
|
2394
|
-
"border-left-width",
|
|
2395
|
-
"border-right-width",
|
|
2396
|
-
"border-spacing",
|
|
2397
|
-
"border-top-width",
|
|
2398
|
-
"bottom",
|
|
2399
|
-
"font-size",
|
|
2400
|
-
"height",
|
|
2401
|
-
"inline-size",
|
|
2402
|
-
"inset-block-end",
|
|
2403
|
-
"inset-block-start",
|
|
2404
|
-
"inset-inline-end",
|
|
2405
|
-
"inset-inline-start",
|
|
2406
|
-
"left",
|
|
2407
|
-
"letter-spacing",
|
|
2408
|
-
"max-height",
|
|
2409
|
-
"max-width",
|
|
2410
|
-
"min-height",
|
|
2411
|
-
"min-width",
|
|
2412
|
-
"outline-offset",
|
|
2413
|
-
"right",
|
|
2414
|
-
"top",
|
|
2415
|
-
"width"
|
|
2416
|
-
],
|
|
2417
|
-
"number": [
|
|
2418
|
-
"fill-opacity",
|
|
2419
|
-
"flex-grow",
|
|
2420
|
-
"flex-shrink",
|
|
2421
|
-
"flood-opacity",
|
|
2422
|
-
"opacity",
|
|
2423
|
-
"order",
|
|
2424
|
-
"orphans",
|
|
2425
|
-
"stop-opacity",
|
|
2426
|
-
"stroke-opacity",
|
|
2427
|
-
"widows"
|
|
2428
|
-
],
|
|
2429
|
-
"percentage": [],
|
|
2430
|
-
"position": [],
|
|
2431
|
-
"time": [
|
|
2432
|
-
"animation-delay",
|
|
2433
|
-
"animation-duration",
|
|
2434
|
-
"transition-delay",
|
|
2435
|
-
"transition-duration"
|
|
2436
|
-
],
|
|
2437
|
-
"url": []
|
|
2438
|
-
};
|
|
2439
|
-
//#endregion
|
|
2440
|
-
//#region src/internal/plugins/variables.ts
|
|
2441
|
-
const VARIABLE_SEMANTIC_TYPE_PROPERTIES = {
|
|
2442
|
-
"color": VARIABLE_SEMANTIC_FAMILY_PROPERTIES.color,
|
|
2443
|
-
"length": VARIABLE_SEMANTIC_FAMILY_PROPERTIES.length,
|
|
2444
|
-
"time": VARIABLE_SEMANTIC_FAMILY_PROPERTIES.time,
|
|
2445
|
-
"number": VARIABLE_SEMANTIC_FAMILY_PROPERTIES.number,
|
|
2446
|
-
"easing": VARIABLE_SEMANTIC_FAMILY_PROPERTIES.easing,
|
|
2447
|
-
"font-family": VARIABLE_SEMANTIC_FAMILY_PROPERTIES["font-family"]
|
|
2448
|
-
};
|
|
2714
|
+
//#region src/plugins/variables.ts
|
|
2449
2715
|
/**
|
|
2450
2716
|
* Built-in engine plugin that provides CSS custom properties (variables) with smart pruning and autocomplete integration.
|
|
2451
2717
|
*
|
|
@@ -2537,19 +2803,9 @@ function variables() {
|
|
|
2537
2803
|
function normalizeVariablesConfig(config) {
|
|
2538
2804
|
if (config == null) return [];
|
|
2539
2805
|
const merged = {};
|
|
2540
|
-
|
|
2541
|
-
mergeVariablesBucket(merged, config.lengths, "length");
|
|
2542
|
-
mergeVariablesBucket(merged, config.times, "time");
|
|
2543
|
-
mergeVariablesBucket(merged, config.numbers, "number");
|
|
2544
|
-
mergeVariablesBucket(merged, config.easings, "easing");
|
|
2545
|
-
mergeVariablesBucket(merged, config.fontFamilies, "font-family");
|
|
2546
|
-
mergeVariablesBucket(merged, config.others);
|
|
2806
|
+
if (config.definitions != null) [config.definitions].flat().forEach((definition) => mergeVariablesDefinition(merged, definition));
|
|
2547
2807
|
return Object.keys(merged).length > 0 ? [merged] : [];
|
|
2548
2808
|
}
|
|
2549
|
-
function mergeVariablesBucket(target, definitions, semanticType) {
|
|
2550
|
-
if (definitions == null) return;
|
|
2551
|
-
[definitions].flat().forEach((definition) => mergeVariablesDefinition(target, applyBucketSemanticType(definition, semanticType)));
|
|
2552
|
-
}
|
|
2553
2809
|
function mergeVariablesDefinition(target, source) {
|
|
2554
2810
|
for (const [key, value] of Object.entries(source)) {
|
|
2555
2811
|
if (!key.startsWith("--") && isPlainObjectRecord(value) && isPlainObjectRecord(target[key])) {
|
|
@@ -2560,53 +2816,19 @@ function mergeVariablesDefinition(target, source) {
|
|
|
2560
2816
|
}
|
|
2561
2817
|
return target;
|
|
2562
2818
|
}
|
|
2563
|
-
function applyBucketSemanticType(definition, semanticType) {
|
|
2564
|
-
const result = {};
|
|
2565
|
-
for (const [key, value] of Object.entries(definition)) {
|
|
2566
|
-
if (key.startsWith("--")) {
|
|
2567
|
-
if (semanticType == null) {
|
|
2568
|
-
result[key] = value;
|
|
2569
|
-
continue;
|
|
2570
|
-
}
|
|
2571
|
-
if (isPlainObjectRecord(value)) {
|
|
2572
|
-
const variableValue = value;
|
|
2573
|
-
result[key] = {
|
|
2574
|
-
...variableValue,
|
|
2575
|
-
semanticType: mergeSemanticTypes(semanticType, variableValue.semanticType)
|
|
2576
|
-
};
|
|
2577
|
-
continue;
|
|
2578
|
-
}
|
|
2579
|
-
result[key] = {
|
|
2580
|
-
value,
|
|
2581
|
-
semanticType
|
|
2582
|
-
};
|
|
2583
|
-
continue;
|
|
2584
|
-
}
|
|
2585
|
-
result[key] = isPlainObjectRecord(value) ? applyBucketSemanticType(value, semanticType) : value;
|
|
2586
|
-
}
|
|
2587
|
-
return result;
|
|
2588
|
-
}
|
|
2589
|
-
function mergeSemanticTypes(semanticType, existingSemanticType) {
|
|
2590
|
-
const merged = Array.from(new Set([semanticType, ...existingSemanticType == null ? [] : [existingSemanticType].flat()]));
|
|
2591
|
-
return merged.length === 1 ? merged[0] : merged;
|
|
2592
|
-
}
|
|
2593
2819
|
function isPlainObjectRecord(value) {
|
|
2594
2820
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
2595
2821
|
}
|
|
2596
2822
|
function createResolveVariablesFn({ pruneUnused: defaultPruneUnused = true } = {}) {
|
|
2597
2823
|
function _resolveVariables(variables, levels, result) {
|
|
2598
2824
|
for (const [key, value] of Object.entries(variables)) if (key.startsWith("--")) {
|
|
2599
|
-
const { value: varValue,
|
|
2825
|
+
const { value: varValue, autocomplete = {}, pruneUnused = defaultPruneUnused } = isPlainObjectRecord(value) ? value : { value };
|
|
2600
2826
|
result.push({
|
|
2601
2827
|
name: key,
|
|
2602
2828
|
value: varValue,
|
|
2603
2829
|
selector: levels.length > 0 ? levels : [":root"],
|
|
2604
2830
|
autocomplete: {
|
|
2605
|
-
asValueOf: resolveAutocompleteValueTargets({
|
|
2606
|
-
name: key,
|
|
2607
|
-
asValueOf: autocomplete.asValueOf,
|
|
2608
|
-
semanticType
|
|
2609
|
-
}),
|
|
2831
|
+
asValueOf: resolveAutocompleteValueTargets({ asValueOf: autocomplete.asValueOf }),
|
|
2610
2832
|
asProperty: autocomplete.asProperty ?? true
|
|
2611
2833
|
},
|
|
2612
2834
|
pruneUnused
|
|
@@ -2624,23 +2846,14 @@ function createResolveVariablesFn({ pruneUnused: defaultPruneUnused = true } = {
|
|
|
2624
2846
|
return _resolveVariables(variables, [], []);
|
|
2625
2847
|
};
|
|
2626
2848
|
}
|
|
2627
|
-
function resolveAutocompleteValueTargets({
|
|
2849
|
+
function resolveAutocompleteValueTargets({ asValueOf }) {
|
|
2628
2850
|
const explicitTargets = asValueOf == null ? [] : [asValueOf].flat().map((value) => String(value));
|
|
2629
|
-
const semanticTypes = semanticType == null ? [] : [semanticType].flat().map((value) => String(value));
|
|
2630
2851
|
if (explicitTargets.includes("-")) return [];
|
|
2631
2852
|
const targets = /* @__PURE__ */ new Set();
|
|
2632
|
-
if (asValueOf == null
|
|
2853
|
+
if (asValueOf == null) targets.add("*");
|
|
2633
2854
|
explicitTargets.forEach((target) => {
|
|
2634
2855
|
targets.add(target);
|
|
2635
2856
|
});
|
|
2636
|
-
semanticTypes.forEach((family) => {
|
|
2637
|
-
const properties = VARIABLE_SEMANTIC_TYPE_PROPERTIES[family];
|
|
2638
|
-
if (properties != null) {
|
|
2639
|
-
properties.forEach((property) => targets.add(property));
|
|
2640
|
-
return;
|
|
2641
|
-
}
|
|
2642
|
-
log.warn(`Unknown semanticType "${family}" for variable "${name}". Skipping semantic autocomplete expansion.`);
|
|
2643
|
-
});
|
|
2644
2857
|
if (targets.has("*")) return ["*"];
|
|
2645
2858
|
return [...targets];
|
|
2646
2859
|
}
|
|
@@ -2708,7 +2921,7 @@ function extractUsedVarNamesFromPreflightResult(result) {
|
|
|
2708
2921
|
return names;
|
|
2709
2922
|
}
|
|
2710
2923
|
//#endregion
|
|
2711
|
-
//#region src/
|
|
2924
|
+
//#region src/engine.ts
|
|
2712
2925
|
/**
|
|
2713
2926
|
* Default CSS layer name for preflight styles.
|
|
2714
2927
|
* @internal
|
|
@@ -3505,108 +3718,6 @@ async function renderPreflightDefinition(payload) {
|
|
|
3505
3718
|
function defineEngineConfig(config) {
|
|
3506
3719
|
return config;
|
|
3507
3720
|
}
|
|
3508
|
-
/**
|
|
3509
|
-
* Identity helper that returns the style definition as-is, providing TypeScript type inference and autocompletion.
|
|
3510
|
-
*
|
|
3511
|
-
* @typeParam T - The exact literal type of the style definition.
|
|
3512
|
-
* @param styleDefinition - A style definition object.
|
|
3513
|
-
* @returns The same style definition, unchanged.
|
|
3514
|
-
*
|
|
3515
|
-
* @remarks A compile-time-only helper with no runtime effect. Useful for extracting a reusable style definition with full type safety.
|
|
3516
|
-
*
|
|
3517
|
-
* @example
|
|
3518
|
-
* ```ts
|
|
3519
|
-
* const card = defineStyleDefinition({ padding: '1rem', borderRadius: '0.5rem' })
|
|
3520
|
-
* ```
|
|
3521
|
-
*/
|
|
3522
|
-
function defineStyleDefinition(styleDefinition) {
|
|
3523
|
-
return styleDefinition;
|
|
3524
|
-
}
|
|
3525
|
-
/**
|
|
3526
|
-
* Identity helper that returns the preflight as-is, providing TypeScript type inference and autocompletion.
|
|
3527
|
-
*
|
|
3528
|
-
* @typeParam T - The exact literal type of the preflight.
|
|
3529
|
-
* @param preflight - A preflight definition: a function, a static string/object, or a wrapper with `layer`/`id` metadata.
|
|
3530
|
-
* @returns The same preflight, unchanged.
|
|
3531
|
-
*
|
|
3532
|
-
* @remarks A compile-time-only helper with no runtime effect. Useful for defining reusable preflight values with type safety.
|
|
3533
|
-
*
|
|
3534
|
-
* @example
|
|
3535
|
-
* ```ts
|
|
3536
|
-
* const reset = definePreflight('*, *::before { box-sizing: border-box; }')
|
|
3537
|
-
* ```
|
|
3538
|
-
*/
|
|
3539
|
-
function definePreflight(preflight) {
|
|
3540
|
-
return preflight;
|
|
3541
|
-
}
|
|
3542
|
-
/**
|
|
3543
|
-
* Identity helper that returns the keyframes definition as-is, providing TypeScript type inference and autocompletion.
|
|
3544
|
-
*
|
|
3545
|
-
* @typeParam T - The exact literal type of the keyframes configuration.
|
|
3546
|
-
* @param keyframes - A keyframes definition: a name string, a tuple, or an object form.
|
|
3547
|
-
* @returns The same keyframes definition, unchanged.
|
|
3548
|
-
*
|
|
3549
|
-
* @remarks A compile-time-only helper with no runtime effect.
|
|
3550
|
-
*
|
|
3551
|
-
* @example
|
|
3552
|
-
* ```ts
|
|
3553
|
-
* const spin = defineKeyframes(['spin', { from: { transform: 'rotate(0deg)' }, to: { transform: 'rotate(360deg)' } }])
|
|
3554
|
-
* ```
|
|
3555
|
-
*/
|
|
3556
|
-
function defineKeyframes(keyframes) {
|
|
3557
|
-
return keyframes;
|
|
3558
|
-
}
|
|
3559
|
-
/**
|
|
3560
|
-
* Identity helper that returns the selector definition as-is, providing TypeScript type inference and autocompletion.
|
|
3561
|
-
*
|
|
3562
|
-
* @typeParam T - The exact literal type of the selector configuration.
|
|
3563
|
-
* @param selector - A selector definition: a string redirect, tuple, or object form.
|
|
3564
|
-
* @returns The same selector definition, unchanged.
|
|
3565
|
-
*
|
|
3566
|
-
* @remarks A compile-time-only helper with no runtime effect.
|
|
3567
|
-
*
|
|
3568
|
-
* @example
|
|
3569
|
-
* ```ts
|
|
3570
|
-
* const hover = defineSelector(['hover', '&:hover'])
|
|
3571
|
-
* ```
|
|
3572
|
-
*/
|
|
3573
|
-
function defineSelector(selector) {
|
|
3574
|
-
return selector;
|
|
3575
|
-
}
|
|
3576
|
-
/**
|
|
3577
|
-
* Identity helper that returns the shortcut definition as-is, providing TypeScript type inference and autocompletion.
|
|
3578
|
-
*
|
|
3579
|
-
* @typeParam T - The exact literal type of the shortcut configuration.
|
|
3580
|
-
* @param shortcut - A shortcut definition: a string redirect, tuple, or object form.
|
|
3581
|
-
* @returns The same shortcut definition, unchanged.
|
|
3582
|
-
*
|
|
3583
|
-
* @remarks A compile-time-only helper with no runtime effect.
|
|
3584
|
-
*
|
|
3585
|
-
* @example
|
|
3586
|
-
* ```ts
|
|
3587
|
-
* const btn = defineShortcut(['btn', { padding: '0.5rem 1rem', borderRadius: '0.25rem' }])
|
|
3588
|
-
* ```
|
|
3589
|
-
*/
|
|
3590
|
-
function defineShortcut(shortcut) {
|
|
3591
|
-
return shortcut;
|
|
3592
|
-
}
|
|
3593
|
-
/**
|
|
3594
|
-
* Identity helper that returns the variables definition as-is, providing TypeScript type inference and autocompletion.
|
|
3595
|
-
*
|
|
3596
|
-
* @typeParam T - The exact literal type of the variables definition.
|
|
3597
|
-
* @param variables - A nested record of CSS custom property definitions.
|
|
3598
|
-
* @returns The same variables definition, unchanged.
|
|
3599
|
-
*
|
|
3600
|
-
* @remarks A compile-time-only helper with no runtime effect.
|
|
3601
|
-
*
|
|
3602
|
-
* @example
|
|
3603
|
-
* ```ts
|
|
3604
|
-
* const vars = defineVariables({ '--color-primary': '#3b82f6', '.dark': { '--color-primary': '#60a5fa' } })
|
|
3605
|
-
* ```
|
|
3606
|
-
*/
|
|
3607
|
-
function defineVariables(variables) {
|
|
3608
|
-
return variables;
|
|
3609
|
-
}
|
|
3610
3721
|
/* c8 ignore end */
|
|
3611
3722
|
//#endregion
|
|
3612
|
-
export { appendAutocomplete, createEngine, createLogger, defineEngineConfig, defineEnginePlugin,
|
|
3723
|
+
export { appendAutocomplete, createEngine, createLogger, defineEngineConfig, defineEnginePlugin, log, renderCSSStyleBlocks, sortLayerNames };
|