@stylexjs/stylex 0.2.0-beta.19 → 0.2.0-beta.21

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.
@@ -75,6 +75,461 @@ exports[`length units 10 "vw" units are resolved to pixels 1`] = `
75
75
  }
76
76
  `;
77
77
 
78
+ exports[`logical styles blockSize: blockSize 1`] = `
79
+ {
80
+ "style": {
81
+ "height": 100,
82
+ },
83
+ }
84
+ `;
85
+
86
+ exports[`logical styles blockSize: blockSize after height 1`] = `
87
+ {
88
+ "style": {
89
+ "height": 200,
90
+ },
91
+ }
92
+ `;
93
+
94
+ exports[`logical styles blockSize: maxBlockSize 1`] = `
95
+ {
96
+ "style": {
97
+ "maxHeight": 100,
98
+ },
99
+ }
100
+ `;
101
+
102
+ exports[`logical styles blockSize: maxBlockSize after maxHeight 1`] = `
103
+ {
104
+ "style": {
105
+ "maxHeight": 200,
106
+ },
107
+ }
108
+ `;
109
+
110
+ exports[`logical styles blockSize: minBlockSize 1`] = `
111
+ {
112
+ "style": {
113
+ "minHeight": 100,
114
+ },
115
+ }
116
+ `;
117
+
118
+ exports[`logical styles blockSize: minBlockSize after minHeight 1`] = `
119
+ {
120
+ "style": {
121
+ "minHeight": 200,
122
+ },
123
+ }
124
+ `;
125
+
126
+ exports[`logical styles borderBlock: borderBlock 1`] = `
127
+ {
128
+ "style": {
129
+ "borderBottomColor": "black",
130
+ "borderBottomStyle": "solid",
131
+ "borderBottomWidth": 1,
132
+ "borderTopColor": "black",
133
+ "borderTopStyle": "solid",
134
+ "borderTopWidth": 1,
135
+ },
136
+ }
137
+ `;
138
+
139
+ exports[`logical styles borderBlock: borderBlock after borderBlockEnd 1`] = `
140
+ {
141
+ "style": {
142
+ "borderBottomColor": "red",
143
+ "borderBottomStyle": "dotted",
144
+ "borderBottomWidth": 2,
145
+ "borderTopColor": "black",
146
+ "borderTopStyle": "solid",
147
+ "borderTopWidth": 1,
148
+ },
149
+ }
150
+ `;
151
+
152
+ exports[`logical styles borderBlock: borderBlock after borderBlockStart 1`] = `
153
+ {
154
+ "style": {
155
+ "borderBottomColor": "black",
156
+ "borderBottomStyle": "solid",
157
+ "borderBottomWidth": 1,
158
+ "borderTopColor": "green",
159
+ "borderTopStyle": "dashed",
160
+ "borderTopWidth": 3,
161
+ },
162
+ }
163
+ `;
164
+
165
+ exports[`logical styles borderBlock: borderBlockEnd 1`] = `
166
+ {
167
+ "style": {
168
+ "borderBottomColor": "red",
169
+ "borderBottomStyle": "dotted",
170
+ "borderBottomWidth": 2,
171
+ },
172
+ }
173
+ `;
174
+
175
+ exports[`logical styles borderBlock: borderBlockStart 1`] = `
176
+ {
177
+ "style": {
178
+ "borderTopColor": "green",
179
+ "borderTopStyle": "dashed",
180
+ "borderTopWidth": 3,
181
+ },
182
+ }
183
+ `;
184
+
185
+ exports[`logical styles borderInline: borderInline 1`] = `
186
+ {
187
+ "style": {
188
+ "borderEndColor": "black",
189
+ "borderEndStyle": "solid",
190
+ "borderEndWidth": 1,
191
+ "borderStartColor": "black",
192
+ "borderStartStyle": "solid",
193
+ "borderStartWidth": 1,
194
+ },
195
+ }
196
+ `;
197
+
198
+ exports[`logical styles borderInline: borderInline after borderInlineEnd 1`] = `
199
+ {
200
+ "style": {
201
+ "borderEndColor": "red",
202
+ "borderEndStyle": "dotted",
203
+ "borderEndWidth": 2,
204
+ "borderStartColor": "black",
205
+ "borderStartStyle": "solid",
206
+ "borderStartWidth": 1,
207
+ },
208
+ }
209
+ `;
210
+
211
+ exports[`logical styles borderInline: borderInline after borderInlineStart 1`] = `
212
+ {
213
+ "style": {
214
+ "borderEndColor": "black",
215
+ "borderEndStyle": "solid",
216
+ "borderEndWidth": 1,
217
+ "borderStartColor": "green",
218
+ "borderStartStyle": "dashed",
219
+ "borderStartWidth": 3,
220
+ },
221
+ }
222
+ `;
223
+
224
+ exports[`logical styles borderInline: borderInlineEnd 1`] = `
225
+ {
226
+ "style": {
227
+ "borderEndColor": "red",
228
+ "borderEndStyle": "dotted",
229
+ "borderEndWidth": 2,
230
+ },
231
+ }
232
+ `;
233
+
234
+ exports[`logical styles borderInline: borderInlineStart 1`] = `
235
+ {
236
+ "style": {
237
+ "borderStartColor": "green",
238
+ "borderStartStyle": "dashed",
239
+ "borderStartWidth": 3,
240
+ },
241
+ }
242
+ `;
243
+
244
+ exports[`logical styles borderRadius: endend 1`] = `
245
+ {
246
+ "style": {
247
+ "borderBottomEndRadius": 10,
248
+ },
249
+ }
250
+ `;
251
+
252
+ exports[`logical styles borderRadius: endstart 1`] = `
253
+ {
254
+ "style": {
255
+ "borderBottomStartRadius": 10,
256
+ },
257
+ }
258
+ `;
259
+
260
+ exports[`logical styles borderRadius: startend 1`] = `
261
+ {
262
+ "style": {
263
+ "borderTopEndRadius": 10,
264
+ },
265
+ }
266
+ `;
267
+
268
+ exports[`logical styles borderRadius: startstart 1`] = `
269
+ {
270
+ "style": {
271
+ "borderTopStartRadius": 10,
272
+ },
273
+ }
274
+ `;
275
+
276
+ exports[`logical styles inlineSize: inlineSize 1`] = `
277
+ {
278
+ "style": {
279
+ "width": 100,
280
+ },
281
+ }
282
+ `;
283
+
284
+ exports[`logical styles inlineSize: inlineSize after width 1`] = `
285
+ {
286
+ "style": {
287
+ "width": 200,
288
+ },
289
+ }
290
+ `;
291
+
292
+ exports[`logical styles inlineSize: maxInlineSize 1`] = `
293
+ {
294
+ "style": {
295
+ "maxWidth": 100,
296
+ },
297
+ }
298
+ `;
299
+
300
+ exports[`logical styles inlineSize: maxInlineSize after maxWidth 1`] = `
301
+ {
302
+ "style": {
303
+ "maxWidth": 200,
304
+ },
305
+ }
306
+ `;
307
+
308
+ exports[`logical styles inlineSize: minInlineSize 1`] = `
309
+ {
310
+ "style": {
311
+ "minWidth": 100,
312
+ },
313
+ }
314
+ `;
315
+
316
+ exports[`logical styles inlineSize: minInlineSize after minWidth 1`] = `
317
+ {
318
+ "style": {
319
+ "minWidth": 200,
320
+ },
321
+ }
322
+ `;
323
+
324
+ exports[`logical styles inset: inset 1`] = `
325
+ {
326
+ "style": {
327
+ "bottom": 1,
328
+ "end": 1,
329
+ "start": 1,
330
+ "top": 1,
331
+ },
332
+ }
333
+ `;
334
+
335
+ exports[`logical styles inset: inset vs top 1`] = `
336
+ {
337
+ "style": {
338
+ "bottom": 100,
339
+ "left": 10,
340
+ "right": 10,
341
+ "top": 100,
342
+ },
343
+ }
344
+ `;
345
+
346
+ exports[`logical styles inset: insetBlock 1`] = `
347
+ {
348
+ "style": {
349
+ "bottom": 2,
350
+ "top": 2,
351
+ },
352
+ }
353
+ `;
354
+
355
+ exports[`logical styles inset: insetBlock vs top 1`] = `
356
+ {
357
+ "style": {
358
+ "bottom": 100,
359
+ "top": 100,
360
+ },
361
+ }
362
+ `;
363
+
364
+ exports[`logical styles inset: insetBlockEnd 1`] = `
365
+ {
366
+ "style": {
367
+ "bottom": 4,
368
+ },
369
+ }
370
+ `;
371
+
372
+ exports[`logical styles inset: insetBlockEnd vs bottom 1`] = `
373
+ {
374
+ "style": {
375
+ "bottom": 100,
376
+ },
377
+ }
378
+ `;
379
+
380
+ exports[`logical styles inset: insetBlockStart 1`] = `
381
+ {
382
+ "style": {
383
+ "top": 3,
384
+ },
385
+ }
386
+ `;
387
+
388
+ exports[`logical styles inset: insetBlockStart vs top 1`] = `
389
+ {
390
+ "style": {
391
+ "top": 100,
392
+ },
393
+ }
394
+ `;
395
+
396
+ exports[`logical styles inset: insetInline 1`] = `
397
+ {
398
+ "style": {
399
+ "end": 5,
400
+ "start": 5,
401
+ },
402
+ }
403
+ `;
404
+
405
+ exports[`logical styles inset: insetInlineEnd 1`] = `
406
+ {
407
+ "style": {
408
+ "end": 7,
409
+ },
410
+ }
411
+ `;
412
+
413
+ exports[`logical styles inset: insetInlineStart 1`] = `
414
+ {
415
+ "style": {
416
+ "start": 6,
417
+ },
418
+ }
419
+ `;
420
+
421
+ exports[`logical styles margin: marginBlock 1`] = `
422
+ {
423
+ "style": {
424
+ "marginVertical": 1,
425
+ },
426
+ }
427
+ `;
428
+
429
+ exports[`logical styles margin: marginBlockEnd 1`] = `
430
+ {
431
+ "style": {
432
+ "marginBottom": 3,
433
+ },
434
+ }
435
+ `;
436
+
437
+ exports[`logical styles margin: marginBlockStart 1`] = `
438
+ {
439
+ "style": {
440
+ "marginTop": 2,
441
+ },
442
+ }
443
+ `;
444
+
445
+ exports[`logical styles margin: marginInline 1`] = `
446
+ {
447
+ "style": {
448
+ "marginHorizontal": 1,
449
+ },
450
+ }
451
+ `;
452
+
453
+ exports[`logical styles margin: marginInlineEnd 1`] = `
454
+ {
455
+ "style": {
456
+ "marginEnd": 3,
457
+ },
458
+ }
459
+ `;
460
+
461
+ exports[`logical styles margin: marginInlineStart 1`] = `
462
+ {
463
+ "style": {
464
+ "marginStart": 2,
465
+ },
466
+ }
467
+ `;
468
+
469
+ exports[`logical styles padding: paddingBlock 1`] = `
470
+ {
471
+ "style": {
472
+ "paddingVertical": 1,
473
+ },
474
+ }
475
+ `;
476
+
477
+ exports[`logical styles padding: paddingBlockEnd 1`] = `
478
+ {
479
+ "style": {
480
+ "paddingBottom": 3,
481
+ },
482
+ }
483
+ `;
484
+
485
+ exports[`logical styles padding: paddingBlockStart 1`] = `
486
+ {
487
+ "style": {
488
+ "paddingTop": 2,
489
+ },
490
+ }
491
+ `;
492
+
493
+ exports[`logical styles padding: paddingInline 1`] = `
494
+ {
495
+ "style": {
496
+ "paddingHorizontal": 1,
497
+ },
498
+ }
499
+ `;
500
+
501
+ exports[`logical styles padding: paddingInlineEnd 1`] = `
502
+ {
503
+ "style": {
504
+ "paddingEnd": 3,
505
+ },
506
+ }
507
+ `;
508
+
509
+ exports[`logical styles padding: paddingInlineStart 1`] = `
510
+ {
511
+ "style": {
512
+ "paddingStart": 2,
513
+ },
514
+ }
515
+ `;
516
+
517
+ exports[`logical styles textAlign: end 1`] = `
518
+ {
519
+ "style": {
520
+ "textAlign": "end",
521
+ },
522
+ }
523
+ `;
524
+
525
+ exports[`logical styles textAlign: start 1`] = `
526
+ {
527
+ "style": {
528
+ "textAlign": "start",
529
+ },
530
+ }
531
+ `;
532
+
78
533
  exports[`styles animation-delay 1`] = `
79
534
  {
80
535
  "style": {
@@ -122,6 +577,106 @@ exports[`styles box-shadow 1`] = `
122
577
  }
123
578
  `;
124
579
 
580
+ exports[`styles box-sizing: content-box: allDifferent 1`] = `
581
+ {
582
+ "style": {
583
+ "borderBottomWidth": 3,
584
+ "borderLeftWidth": 4,
585
+ "borderRightWidth": 2,
586
+ "borderTopWidth": 1,
587
+ "height": 144,
588
+ "paddingBottom": 30,
589
+ "paddingLeft": 40,
590
+ "paddingRight": 20,
591
+ "paddingTop": 10,
592
+ "width": 166,
593
+ },
594
+ }
595
+ `;
596
+
597
+ exports[`styles box-sizing: content-box: auto 1`] = `
598
+ {
599
+ "style": {
600
+ "borderWidth": 2,
601
+ "height": 74,
602
+ "padding": 10,
603
+ "width": "auto",
604
+ },
605
+ }
606
+ `;
607
+
608
+ exports[`styles box-sizing: content-box: height 1`] = `
609
+ {
610
+ "style": {
611
+ "borderWidth": 2,
612
+ "height": 74,
613
+ "padding": 10,
614
+ },
615
+ }
616
+ `;
617
+
618
+ exports[`styles box-sizing: content-box: maxHeight 1`] = `
619
+ {
620
+ "style": {
621
+ "borderWidth": 2,
622
+ "maxHeight": 74,
623
+ "padding": 10,
624
+ },
625
+ }
626
+ `;
627
+
628
+ exports[`styles box-sizing: content-box: maxWidth 1`] = `
629
+ {
630
+ "style": {
631
+ "borderWidth": 2,
632
+ "maxWidth": 124,
633
+ "padding": 10,
634
+ },
635
+ }
636
+ `;
637
+
638
+ exports[`styles box-sizing: content-box: minHeight 1`] = `
639
+ {
640
+ "style": {
641
+ "borderWidth": 2,
642
+ "minHeight": 74,
643
+ "padding": 10,
644
+ },
645
+ }
646
+ `;
647
+
648
+ exports[`styles box-sizing: content-box: minWidth 1`] = `
649
+ {
650
+ "style": {
651
+ "borderWidth": 2,
652
+ "minWidth": 124,
653
+ "padding": 10,
654
+ },
655
+ }
656
+ `;
657
+
658
+ exports[`styles box-sizing: content-box: units 1`] = `
659
+ {
660
+ "style": {
661
+ "borderWidth": 2,
662
+ "height": 86,
663
+ "padding": 16,
664
+ "width": 136,
665
+ },
666
+ }
667
+ `;
668
+
669
+ exports[`styles box-sizing: content-box: width 1`] = `
670
+ {
671
+ "style": {
672
+ "borderWidth": 2,
673
+ "overflow": "hidden",
674
+ "padding": 10,
675
+ "width": 124,
676
+ },
677
+ }
678
+ `;
679
+
125
680
  exports[`styles direction 1`] = `
126
681
  {
127
682
  "style": {
@@ -184,34 +739,34 @@ exports[`styles line-clamp 1`] = `
184
739
  }
185
740
  `;
186
741
 
187
- exports[`styles logical border radius: endend 1`] = `
742
+ exports[`styles line-height: px 1`] = `
188
743
  {
189
744
  "style": {
190
- "borderBottomEndRadius": 10,
745
+ "lineHeight": 24,
191
746
  },
192
747
  }
193
748
  `;
194
749
 
195
- exports[`styles logical border radius: endstart 1`] = `
750
+ exports[`styles line-height: rem 1`] = `
196
751
  {
197
752
  "style": {
198
- "borderBottomStartRadius": 10,
753
+ "lineHeight": 24,
199
754
  },
200
755
  }
201
756
  `;
202
757
 
203
- exports[`styles logical border radius: startend 1`] = `
758
+ exports[`styles line-height: unitless number 1`] = `
204
759
  {
205
760
  "style": {
206
- "borderTopEndRadius": 10,
761
+ "lineHeight": 24,
207
762
  },
208
763
  }
209
764
  `;
210
765
 
211
- exports[`styles logical border radius: startstart 1`] = `
766
+ exports[`styles line-height: unitless string 1`] = `
212
767
  {
213
768
  "style": {
214
- "borderTopStartRadius": 10,
769
+ "lineHeight": 24,
215
770
  },
216
771
  }
217
772
  `;
@@ -291,7 +846,7 @@ exports[`styles position: relative 1`] = `
291
846
  exports[`styles position: static 1`] = `
292
847
  {
293
848
  "style": {
294
- "position": "static",
849
+ "position": "relative",
295
850
  },
296
851
  }
297
852
  `;
@@ -448,53 +1003,17 @@ exports[`styles vertical-align: top 1`] = `
448
1003
 
449
1004
  exports[`unsupported style properties "filter" 1`] = `{}`;
450
1005
 
451
- exports[`unsupported style properties "marginEnd" 1`] = `
452
- {
453
- "style": {
454
- "marginEnd": 10,
455
- },
456
- }
457
- `;
1006
+ exports[`unsupported style properties "marginEnd" 1`] = `{}`;
458
1007
 
459
- exports[`unsupported style properties "marginHorizontal" 1`] = `
460
- {
461
- "style": {
462
- "marginInline": 10,
463
- },
464
- }
465
- `;
1008
+ exports[`unsupported style properties "marginHorizontal" 1`] = `{}`;
466
1009
 
467
- exports[`unsupported style properties "marginStart" 1`] = `
468
- {
469
- "style": {
470
- "marginStart": 10,
471
- },
472
- }
473
- `;
1010
+ exports[`unsupported style properties "marginStart" 1`] = `{}`;
474
1011
 
475
- exports[`unsupported style properties "marginVertical" 1`] = `
476
- {
477
- "style": {
478
- "marginBlock": 10,
479
- },
480
- }
481
- `;
1012
+ exports[`unsupported style properties "marginVertical" 1`] = `{}`;
482
1013
 
483
- exports[`unsupported style properties "paddingHorizontal" 1`] = `
484
- {
485
- "style": {
486
- "paddingInline": 10,
487
- },
488
- }
489
- `;
1014
+ exports[`unsupported style properties "paddingHorizontal" 1`] = `{}`;
490
1015
 
491
- exports[`unsupported style properties "paddingVertical" 1`] = `
492
- {
493
- "style": {
494
- "paddingBlock": 10,
495
- },
496
- }
497
- `;
1016
+ exports[`unsupported style properties "paddingVertical" 1`] = `{}`;
498
1017
 
499
1018
  exports[`unsupported style properties "transitionProperty" passthrough 1`] = `
500
1019
  {