@stylexjs/shared 0.10.1 → 0.11.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.
Files changed (76) hide show
  1. package/lib/common-types.d.ts +8 -11
  2. package/lib/common-types.js.flow +9 -14
  3. package/lib/convert-to-className.js +3 -2
  4. package/lib/index.d.ts +0 -5
  5. package/lib/index.js +1 -4
  6. package/lib/index.js.flow +0 -5
  7. package/lib/messages.d.ts +0 -1
  8. package/lib/messages.js +1 -2
  9. package/lib/messages.js.flow +0 -1
  10. package/lib/preprocess-rules/PreRule.d.ts +1 -10
  11. package/lib/preprocess-rules/PreRule.js +1 -13
  12. package/lib/preprocess-rules/PreRule.js.flow +1 -11
  13. package/lib/preprocess-rules/basic-validation.js +0 -10
  14. package/lib/preprocess-rules/flatten-raw-style-obj.d.ts +2 -6
  15. package/lib/preprocess-rules/flatten-raw-style-obj.js +0 -8
  16. package/lib/preprocess-rules/flatten-raw-style-obj.js.flow +3 -6
  17. package/lib/stylex-create.js +13 -18
  18. package/lib/utils/default-options.js +1 -0
  19. package/lib/utils/media-query-transform.d.ts +16 -0
  20. package/lib/utils/media-query-transform.js +53 -0
  21. package/lib/utils/media-query-transform.js.flow +20 -0
  22. package/lib/utils/object-utils.d.ts +1 -2
  23. package/lib/utils/object-utils.js +0 -3
  24. package/lib/utils/object-utils.js.flow +1 -3
  25. package/package.json +2 -2
  26. package/lib/properties/CSS Animations.json +0 -445
  27. package/lib/properties/CSS Backgrounds and Borders.json +0 -1085
  28. package/lib/properties/CSS Basic User Interface.json +0 -365
  29. package/lib/properties/CSS Box Alignment.json +0 -245
  30. package/lib/properties/CSS Box Model.json +0 -501
  31. package/lib/properties/CSS Color.json +0 -100
  32. package/lib/properties/CSS Columns.json +0 -185
  33. package/lib/properties/CSS Containment.json +0 -203
  34. package/lib/properties/CSS Counter Styles.json +0 -56
  35. package/lib/properties/CSS Display.json +0 -20
  36. package/lib/properties/CSS Flexible Box Layout.json +0 -167
  37. package/lib/properties/CSS Fonts.json +0 -684
  38. package/lib/properties/CSS Fragmentation.json +0 -110
  39. package/lib/properties/CSS Generated Content.json +0 -38
  40. package/lib/properties/CSS Grid Layout.json +0 -500
  41. package/lib/properties/CSS Images.json +0 -91
  42. package/lib/properties/CSS Inline.json +0 -38
  43. package/lib/properties/CSS Lists and Counters.json +0 -86
  44. package/lib/properties/CSS Logical Properties.json +0 -1086
  45. package/lib/properties/CSS Masking.json +0 -399
  46. package/lib/properties/CSS Miscellaneous.json +0 -38
  47. package/lib/properties/CSS Motion Path.json +0 -132
  48. package/lib/properties/CSS Overflow.json +0 -216
  49. package/lib/properties/CSS Pages.json +0 -83
  50. package/lib/properties/CSS Positioning.json +0 -166
  51. package/lib/properties/CSS Ruby.json +0 -55
  52. package/lib/properties/CSS Scroll Anchoring.json +0 -19
  53. package/lib/properties/CSS Scroll Snap.json +0 -604
  54. package/lib/properties/CSS Scrollbars.json +0 -38
  55. package/lib/properties/CSS Shapes.json +0 -56
  56. package/lib/properties/CSS Speech.json +0 -20
  57. package/lib/properties/CSS Table.json +0 -115
  58. package/lib/properties/CSS Text Decoration.json +0 -312
  59. package/lib/properties/CSS Text.json +0 -415
  60. package/lib/properties/CSS Transforms.json +0 -188
  61. package/lib/properties/CSS Transitions.json +0 -122
  62. package/lib/properties/CSS Variables.json +0 -20
  63. package/lib/properties/CSS View Transitions.json +0 -20
  64. package/lib/properties/CSS Will Change.json +0 -20
  65. package/lib/properties/CSS Writing Modes.json +0 -92
  66. package/lib/properties/Compositing and Blending.json +0 -62
  67. package/lib/properties/Filter Effects.json +0 -38
  68. package/lib/properties/MathML.json +0 -56
  69. package/lib/properties/Microsoft Extensions.json +0 -885
  70. package/lib/properties/Mozilla Extensions.json +0 -607
  71. package/lib/properties/Pointer Events.json +0 -20
  72. package/lib/properties/WebKit Extensions.json +0 -707
  73. package/lib/properties.json +0 -10122
  74. package/lib/utils/normalizers/convert-camel-case-transition-props.d.ts +0 -14
  75. package/lib/utils/normalizers/convert-camel-case-transition-props.js +0 -23
  76. package/lib/utils/normalizers/convert-camel-case-transition-props.js.flow +0 -13
@@ -1,399 +0,0 @@
1
- [
2
- {
3
- "syntax": "<shape> | auto",
4
- "media": "visual",
5
- "inherited": false,
6
- "animationType": "rectangle",
7
- "percentages": "no",
8
- "groups": [
9
- "CSS Masking"
10
- ],
11
- "initial": "auto",
12
- "appliesto": "absolutelyPositionedElements",
13
- "computed": "autoOrRectangle",
14
- "order": "uniqueOrder",
15
- "status": "standard",
16
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/clip",
17
- "property": "clip",
18
- "group": "CSS Masking"
19
- },
20
- {
21
- "syntax": "<clip-source> | [ <basic-shape> || <geometry-box> ] | none",
22
- "media": "visual",
23
- "inherited": false,
24
- "animationType": "basicShapeOtherwiseNo",
25
- "percentages": "referToReferenceBoxWhenSpecifiedOtherwiseBorderBox",
26
- "groups": [
27
- "CSS Masking"
28
- ],
29
- "initial": "none",
30
- "appliesto": "allElementsSVGContainerElements",
31
- "computed": "asSpecifiedURLsAbsolute",
32
- "order": "uniqueOrder",
33
- "status": "standard",
34
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/clip-path",
35
- "property": "clip-path",
36
- "group": "CSS Masking"
37
- },
38
- {
39
- "syntax": "<mask-layer>#",
40
- "media": "visual",
41
- "inherited": false,
42
- "animationType": [
43
- "mask-image",
44
- "mask-mode",
45
- "mask-repeat",
46
- "mask-position",
47
- "mask-clip",
48
- "mask-origin",
49
- "mask-size",
50
- "mask-composite"
51
- ],
52
- "percentages": [
53
- "mask-position"
54
- ],
55
- "groups": [
56
- "CSS Masking"
57
- ],
58
- "initial": [
59
- "mask-image",
60
- "mask-mode",
61
- "mask-repeat",
62
- "mask-position",
63
- "mask-clip",
64
- "mask-origin",
65
- "mask-size",
66
- "mask-composite"
67
- ],
68
- "appliesto": "allElementsSVGContainerElements",
69
- "computed": [
70
- "mask-image",
71
- "mask-mode",
72
- "mask-repeat",
73
- "mask-position",
74
- "mask-clip",
75
- "mask-origin",
76
- "mask-size",
77
- "mask-composite"
78
- ],
79
- "order": "perGrammar",
80
- "stacking": true,
81
- "status": "standard",
82
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mask",
83
- "property": "mask",
84
- "group": "CSS Masking"
85
- },
86
- {
87
- "syntax": "<'mask-border-source'> || <'mask-border-slice'> [ / <'mask-border-width'>? [ / <'mask-border-outset'> ]? ]? || <'mask-border-repeat'> || <'mask-border-mode'>",
88
- "media": "visual",
89
- "inherited": false,
90
- "animationType": [
91
- "mask-border-mode",
92
- "mask-border-outset",
93
- "mask-border-repeat",
94
- "mask-border-slice",
95
- "mask-border-source",
96
- "mask-border-width"
97
- ],
98
- "percentages": [
99
- "mask-border-slice",
100
- "mask-border-width"
101
- ],
102
- "groups": [
103
- "CSS Masking"
104
- ],
105
- "initial": [
106
- "mask-border-mode",
107
- "mask-border-outset",
108
- "mask-border-repeat",
109
- "mask-border-slice",
110
- "mask-border-source",
111
- "mask-border-width"
112
- ],
113
- "appliesto": "allElementsSVGContainerElements",
114
- "computed": [
115
- "mask-border-mode",
116
- "mask-border-outset",
117
- "mask-border-repeat",
118
- "mask-border-slice",
119
- "mask-border-source",
120
- "mask-border-width"
121
- ],
122
- "order": "perGrammar",
123
- "stacking": true,
124
- "status": "standard",
125
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mask-border",
126
- "property": "mask-border",
127
- "group": "CSS Masking"
128
- },
129
- {
130
- "syntax": "luminance | alpha",
131
- "media": "visual",
132
- "inherited": false,
133
- "animationType": "discrete",
134
- "percentages": "no",
135
- "groups": [
136
- "CSS Masking"
137
- ],
138
- "initial": "alpha",
139
- "appliesto": "allElementsSVGContainerElements",
140
- "computed": "asSpecified",
141
- "order": "perGrammar",
142
- "status": "standard",
143
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mask-border-mode",
144
- "property": "mask-border-mode",
145
- "group": "CSS Masking"
146
- },
147
- {
148
- "syntax": "[ <length> | <number> ]{1,4}",
149
- "media": "visual",
150
- "inherited": false,
151
- "animationType": "discrete",
152
- "percentages": "no",
153
- "groups": [
154
- "CSS Masking"
155
- ],
156
- "initial": "0",
157
- "appliesto": "allElementsSVGContainerElements",
158
- "computed": "asSpecifiedRelativeToAbsoluteLengths",
159
- "order": "perGrammar",
160
- "status": "standard",
161
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mask-border-outset",
162
- "property": "mask-border-outset",
163
- "group": "CSS Masking"
164
- },
165
- {
166
- "syntax": "[ stretch | repeat | round | space ]{1,2}",
167
- "media": "visual",
168
- "inherited": false,
169
- "animationType": "discrete",
170
- "percentages": "no",
171
- "groups": [
172
- "CSS Masking"
173
- ],
174
- "initial": "stretch",
175
- "appliesto": "allElementsSVGContainerElements",
176
- "computed": "asSpecified",
177
- "order": "perGrammar",
178
- "status": "standard",
179
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat",
180
- "property": "mask-border-repeat",
181
- "group": "CSS Masking"
182
- },
183
- {
184
- "syntax": "<number-percentage>{1,4} fill?",
185
- "media": "visual",
186
- "inherited": false,
187
- "animationType": "discrete",
188
- "percentages": "referToSizeOfMaskBorderImage",
189
- "groups": [
190
- "CSS Masking"
191
- ],
192
- "initial": "0",
193
- "appliesto": "allElementsSVGContainerElements",
194
- "computed": "asSpecified",
195
- "order": "perGrammar",
196
- "status": "standard",
197
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mask-border-slice",
198
- "property": "mask-border-slice",
199
- "group": "CSS Masking"
200
- },
201
- {
202
- "syntax": "none | <image>",
203
- "media": "visual",
204
- "inherited": false,
205
- "animationType": "discrete",
206
- "percentages": "no",
207
- "groups": [
208
- "CSS Masking"
209
- ],
210
- "initial": "none",
211
- "appliesto": "allElementsSVGContainerElements",
212
- "computed": "asSpecifiedURLsAbsolute",
213
- "order": "perGrammar",
214
- "status": "standard",
215
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mask-border-source",
216
- "property": "mask-border-source",
217
- "group": "CSS Masking"
218
- },
219
- {
220
- "syntax": "[ <length-percentage> | <number> | auto ]{1,4}",
221
- "media": "visual",
222
- "inherited": false,
223
- "animationType": "discrete",
224
- "percentages": "relativeToMaskBorderImageArea",
225
- "groups": [
226
- "CSS Masking"
227
- ],
228
- "initial": "auto",
229
- "appliesto": "allElementsSVGContainerElements",
230
- "computed": "asSpecifiedRelativeToAbsoluteLengths",
231
- "order": "perGrammar",
232
- "status": "standard",
233
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mask-border-width",
234
- "property": "mask-border-width",
235
- "group": "CSS Masking"
236
- },
237
- {
238
- "syntax": "[ <geometry-box> | no-clip ]#",
239
- "media": "visual",
240
- "inherited": false,
241
- "animationType": "discrete",
242
- "percentages": "no",
243
- "groups": [
244
- "CSS Masking"
245
- ],
246
- "initial": "border-box",
247
- "appliesto": "allElementsSVGContainerElements",
248
- "computed": "asSpecified",
249
- "order": "perGrammar",
250
- "status": "standard",
251
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mask-clip",
252
- "property": "mask-clip",
253
- "group": "CSS Masking"
254
- },
255
- {
256
- "syntax": "<compositing-operator>#",
257
- "media": "visual",
258
- "inherited": false,
259
- "animationType": "discrete",
260
- "percentages": "no",
261
- "groups": [
262
- "CSS Masking"
263
- ],
264
- "initial": "add",
265
- "appliesto": "allElementsSVGContainerElements",
266
- "computed": "asSpecified",
267
- "order": "perGrammar",
268
- "status": "standard",
269
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mask-composite",
270
- "property": "mask-composite",
271
- "group": "CSS Masking"
272
- },
273
- {
274
- "syntax": "<mask-reference>#",
275
- "media": "visual",
276
- "inherited": false,
277
- "animationType": "discrete",
278
- "percentages": "no",
279
- "groups": [
280
- "CSS Masking"
281
- ],
282
- "initial": "none",
283
- "appliesto": "allElementsSVGContainerElements",
284
- "computed": "asSpecifiedURLsAbsolute",
285
- "order": "perGrammar",
286
- "status": "standard",
287
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mask-image",
288
- "property": "mask-image",
289
- "group": "CSS Masking"
290
- },
291
- {
292
- "syntax": "<masking-mode>#",
293
- "media": "visual",
294
- "inherited": false,
295
- "animationType": "discrete",
296
- "percentages": "no",
297
- "groups": [
298
- "CSS Masking"
299
- ],
300
- "initial": "match-source",
301
- "appliesto": "allElementsSVGContainerElements",
302
- "computed": "asSpecified",
303
- "order": "perGrammar",
304
- "status": "standard",
305
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mask-mode",
306
- "property": "mask-mode",
307
- "group": "CSS Masking"
308
- },
309
- {
310
- "syntax": "<geometry-box>#",
311
- "media": "visual",
312
- "inherited": false,
313
- "animationType": "discrete",
314
- "percentages": "no",
315
- "groups": [
316
- "CSS Masking"
317
- ],
318
- "initial": "border-box",
319
- "appliesto": "allElementsSVGContainerElements",
320
- "computed": "asSpecified",
321
- "order": "perGrammar",
322
- "status": "standard",
323
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mask-origin",
324
- "property": "mask-origin",
325
- "group": "CSS Masking"
326
- },
327
- {
328
- "syntax": "<position>#",
329
- "media": "visual",
330
- "inherited": false,
331
- "animationType": "repeatableList",
332
- "percentages": "referToSizeOfMaskPaintingArea",
333
- "groups": [
334
- "CSS Masking"
335
- ],
336
- "initial": "center",
337
- "appliesto": "allElementsSVGContainerElements",
338
- "computed": "consistsOfTwoKeywordsForOriginAndOffsets",
339
- "order": "perGrammar",
340
- "status": "standard",
341
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mask-position",
342
- "property": "mask-position",
343
- "group": "CSS Masking"
344
- },
345
- {
346
- "syntax": "<repeat-style>#",
347
- "media": "visual",
348
- "inherited": false,
349
- "animationType": "discrete",
350
- "percentages": "no",
351
- "groups": [
352
- "CSS Masking"
353
- ],
354
- "initial": "repeat",
355
- "appliesto": "allElementsSVGContainerElements",
356
- "computed": "consistsOfTwoDimensionKeywords",
357
- "order": "perGrammar",
358
- "status": "standard",
359
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mask-repeat",
360
- "property": "mask-repeat",
361
- "group": "CSS Masking"
362
- },
363
- {
364
- "syntax": "<bg-size>#",
365
- "media": "visual",
366
- "inherited": false,
367
- "animationType": "repeatableList",
368
- "percentages": "no",
369
- "groups": [
370
- "CSS Masking"
371
- ],
372
- "initial": "auto",
373
- "appliesto": "allElementsSVGContainerElements",
374
- "computed": "asSpecifiedRelativeToAbsoluteLengths",
375
- "order": "perGrammar",
376
- "status": "standard",
377
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mask-size",
378
- "property": "mask-size",
379
- "group": "CSS Masking"
380
- },
381
- {
382
- "syntax": "luminance | alpha",
383
- "media": "visual",
384
- "inherited": false,
385
- "animationType": "discrete",
386
- "percentages": "no",
387
- "groups": [
388
- "CSS Masking"
389
- ],
390
- "initial": "luminance",
391
- "appliesto": "maskElements",
392
- "computed": "asSpecified",
393
- "order": "perGrammar",
394
- "status": "standard",
395
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mask-type",
396
- "property": "mask-type",
397
- "group": "CSS Masking"
398
- }
399
- ]
@@ -1,38 +0,0 @@
1
- [
2
- {
3
- "syntax": "initial | inherit | unset | revert | revert-layer",
4
- "media": "noPracticalMedia",
5
- "inherited": false,
6
- "animationType": "eachOfShorthandPropertiesExceptUnicodeBiDiAndDirection",
7
- "percentages": "no",
8
- "groups": [
9
- "CSS Miscellaneous"
10
- ],
11
- "initial": "noPracticalInitialValue",
12
- "appliesto": "allElements",
13
- "computed": "asSpecifiedAppliesToEachProperty",
14
- "order": "uniqueOrder",
15
- "status": "standard",
16
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/all",
17
- "property": "all",
18
- "group": "CSS Miscellaneous"
19
- },
20
- {
21
- "syntax": "auto | optimizeSpeed | optimizeLegibility | geometricPrecision",
22
- "media": "visual",
23
- "inherited": true,
24
- "animationType": "discrete",
25
- "percentages": "no",
26
- "groups": [
27
- "CSS Miscellaneous"
28
- ],
29
- "initial": "auto",
30
- "appliesto": "textElements",
31
- "computed": "asSpecified",
32
- "order": "uniqueOrder",
33
- "status": "standard",
34
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/text-rendering",
35
- "property": "text-rendering",
36
- "group": "CSS Miscellaneous"
37
- }
38
- ]
@@ -1,132 +0,0 @@
1
- [
2
- {
3
- "syntax": "[ <'offset-position'>? [ <'offset-path'> [ <'offset-distance'> || <'offset-rotate'> ]? ]? ]! [ / <'offset-anchor'> ]?",
4
- "media": "visual",
5
- "inherited": false,
6
- "animationType": [
7
- "offset-position",
8
- "offset-path",
9
- "offset-distance",
10
- "offset-anchor",
11
- "offset-rotate"
12
- ],
13
- "percentages": [
14
- "offset-position",
15
- "offset-distance",
16
- "offset-anchor"
17
- ],
18
- "groups": [
19
- "CSS Motion Path"
20
- ],
21
- "initial": [
22
- "offset-position",
23
- "offset-path",
24
- "offset-distance",
25
- "offset-anchor",
26
- "offset-rotate"
27
- ],
28
- "appliesto": "transformableElements",
29
- "computed": [
30
- "offset-position",
31
- "offset-path",
32
- "offset-distance",
33
- "offset-anchor",
34
- "offset-rotate"
35
- ],
36
- "order": "perGrammar",
37
- "stacking": true,
38
- "status": "standard",
39
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/offset",
40
- "property": "offset",
41
- "group": "CSS Motion Path"
42
- },
43
- {
44
- "syntax": "auto | <position>",
45
- "media": "visual",
46
- "inherited": false,
47
- "animationType": "position",
48
- "percentages": "relativeToWidthAndHeight",
49
- "groups": [
50
- "CSS Motion Path"
51
- ],
52
- "initial": "auto",
53
- "appliesto": "transformableElements",
54
- "computed": "forLengthAbsoluteValueOtherwisePercentage",
55
- "order": "perGrammar",
56
- "status": "standard",
57
- "property": "offset-anchor",
58
- "group": "CSS Motion Path"
59
- },
60
- {
61
- "syntax": "<length-percentage>",
62
- "media": "visual",
63
- "inherited": false,
64
- "animationType": "lpc",
65
- "percentages": "referToTotalPathLength",
66
- "groups": [
67
- "CSS Motion Path"
68
- ],
69
- "initial": "0",
70
- "appliesto": "transformableElements",
71
- "computed": "forLengthAbsoluteValueOtherwisePercentage",
72
- "order": "perGrammar",
73
- "status": "standard",
74
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/offset-distance",
75
- "property": "offset-distance",
76
- "group": "CSS Motion Path"
77
- },
78
- {
79
- "syntax": "none | <offset-path> || <coord-box>",
80
- "media": "visual",
81
- "inherited": false,
82
- "animationType": "byComputedValueType",
83
- "percentages": "no",
84
- "groups": [
85
- "CSS Motion Path"
86
- ],
87
- "initial": "none",
88
- "appliesto": "transformableElements",
89
- "computed": "asSpecified",
90
- "order": "perGrammar",
91
- "stacking": true,
92
- "status": "standard",
93
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/offset-path",
94
- "property": "offset-path",
95
- "group": "CSS Motion Path"
96
- },
97
- {
98
- "syntax": "normal | auto | <position>",
99
- "media": "visual",
100
- "inherited": false,
101
- "animationType": "position",
102
- "percentages": "referToSizeOfContainingBlock",
103
- "groups": [
104
- "CSS Motion Path"
105
- ],
106
- "initial": "auto",
107
- "appliesto": "transformableElements",
108
- "computed": "forLengthAbsoluteValueOtherwisePercentage",
109
- "order": "perGrammar",
110
- "status": "experimental",
111
- "property": "offset-position",
112
- "group": "CSS Motion Path"
113
- },
114
- {
115
- "syntax": "[ auto | reverse ] || <angle>",
116
- "media": "visual",
117
- "inherited": false,
118
- "animationType": "angleOrBasicShapeOrPath",
119
- "percentages": "no",
120
- "groups": [
121
- "CSS Motion Path"
122
- ],
123
- "initial": "auto",
124
- "appliesto": "transformableElements",
125
- "computed": "asSpecified",
126
- "order": "perGrammar",
127
- "status": "standard",
128
- "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/offset-rotate",
129
- "property": "offset-rotate",
130
- "group": "CSS Motion Path"
131
- }
132
- ]