mancha 0.17.3 → 0.17.5

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 (70) hide show
  1. package/.github/workflows/ci.yml +8 -8
  2. package/.prettierrc +2 -2
  3. package/.vscode/extensions.json +1 -1
  4. package/.vscode/launch.json +33 -43
  5. package/README.md +94 -94
  6. package/dist/browser.js.map +1 -1
  7. package/dist/cli.js.map +1 -1
  8. package/dist/css_gen_basic.js.map +1 -1
  9. package/dist/css_gen_utils.d.ts +786 -0
  10. package/dist/css_gen_utils.js +63 -23
  11. package/dist/css_gen_utils.js.map +1 -1
  12. package/dist/dome.js.map +1 -1
  13. package/dist/expressions/ast.d.ts +16 -16
  14. package/dist/expressions/ast.test.js +89 -64
  15. package/dist/expressions/ast.test.js.map +1 -1
  16. package/dist/expressions/ast_factory.d.ts +1 -1
  17. package/dist/expressions/ast_factory.js +17 -17
  18. package/dist/expressions/ast_factory.js.map +1 -1
  19. package/dist/expressions/ast_factory.test.js +42 -36
  20. package/dist/expressions/ast_factory.test.js.map +1 -1
  21. package/dist/expressions/constants.js +56 -56
  22. package/dist/expressions/constants.js.map +1 -1
  23. package/dist/expressions/constants.test.js +57 -57
  24. package/dist/expressions/constants.test.js.map +1 -1
  25. package/dist/expressions/eval.d.ts +17 -17
  26. package/dist/expressions/eval.js +58 -60
  27. package/dist/expressions/eval.js.map +1 -1
  28. package/dist/expressions/eval.test.js +11 -8
  29. package/dist/expressions/eval.test.js.map +1 -1
  30. package/dist/expressions/expressions.test.d.ts +6 -6
  31. package/dist/expressions/expressions.test.js +6 -6
  32. package/dist/expressions/index.d.ts +6 -6
  33. package/dist/expressions/index.js +6 -6
  34. package/dist/expressions/parser.d.ts +3 -3
  35. package/dist/expressions/parser.js +37 -42
  36. package/dist/expressions/parser.js.map +1 -1
  37. package/dist/expressions/parser.test.js +3 -6
  38. package/dist/expressions/parser.test.js.map +1 -1
  39. package/dist/expressions/tokenizer.js +22 -25
  40. package/dist/expressions/tokenizer.js.map +1 -1
  41. package/dist/expressions/tokenizer.test.js +40 -15
  42. package/dist/expressions/tokenizer.test.js.map +1 -1
  43. package/dist/index.js.map +1 -1
  44. package/dist/iterator.js.map +1 -1
  45. package/dist/mancha.js.map +1 -1
  46. package/dist/plugins.js +2 -2
  47. package/dist/plugins.js.map +1 -1
  48. package/dist/query.js.map +1 -1
  49. package/dist/renderer.js.map +1 -1
  50. package/dist/safe_browser.js.map +1 -1
  51. package/dist/store.js +1 -1
  52. package/dist/store.js.map +1 -1
  53. package/dist/test_utils.js.map +1 -1
  54. package/dist/trusted_attributes.js.map +1 -1
  55. package/dist/type_checker.js +11 -7
  56. package/dist/type_checker.js.map +1 -1
  57. package/dist/worker.js.map +1 -1
  58. package/docs/css.md +419 -0
  59. package/docs/quickstart.md +305 -296
  60. package/global.d.ts +2 -2
  61. package/gulpfile.ts +44 -0
  62. package/package.json +86 -84
  63. package/scripts/generate-css-docs.ts +374 -0
  64. package/tsconfig.json +42 -19
  65. package/tsec_exemptions.json +8 -3
  66. package/webpack.config.esmodule.ts +26 -0
  67. package/webpack.config.ts +21 -0
  68. package/gulpfile.js +0 -44
  69. package/webpack.config.esmodule.js +0 -23
  70. package/webpack.config.js +0 -18
@@ -1 +1,787 @@
1
+ export declare const MEDIA_BREAKPOINTS: {
2
+ sm: number;
3
+ md: number;
4
+ lg: number;
5
+ xl: number;
6
+ };
7
+ export declare const REM_UNIT = 0.25;
8
+ export declare const UNITS_ALL: number[];
9
+ export declare const PERCENTS: number[];
10
+ export declare const DURATIONS: number[];
11
+ export declare const PROPS_SPACING: {
12
+ margin: string;
13
+ padding: string;
14
+ };
15
+ export declare const PROPS_SIZING: {
16
+ width: string;
17
+ height: string;
18
+ };
19
+ export declare const PROPS_POSITION: {
20
+ top: string;
21
+ right: string;
22
+ bottom: string;
23
+ left: string;
24
+ };
25
+ export declare const PROPS_SIZING_MINMAX: {
26
+ "min-width": string;
27
+ "min-height": string;
28
+ "max-width": string;
29
+ "max-height": string;
30
+ };
31
+ export declare const PROPS_CUSTOM: {
32
+ "font-mono": {
33
+ "font-family": string;
34
+ };
35
+ "font-sans": {
36
+ "font-family": string;
37
+ };
38
+ "font-serif": {
39
+ "font-family": string;
40
+ };
41
+ "font-cursive": {
42
+ "font-family": string;
43
+ };
44
+ "text-xs": {
45
+ "font-size": string;
46
+ "line-height": string;
47
+ };
48
+ "text-sm": {
49
+ "font-size": string;
50
+ "line-height": string;
51
+ };
52
+ "text-base": {
53
+ "font-size": string;
54
+ "line-height": string;
55
+ };
56
+ "text-lg": {
57
+ "font-size": string;
58
+ "line-height": string;
59
+ };
60
+ "text-xl": {
61
+ "font-size": string;
62
+ "line-height": string;
63
+ };
64
+ "text-2xl": {
65
+ "font-size": string;
66
+ "line-height": string;
67
+ };
68
+ "text-3xl": {
69
+ "font-size": string;
70
+ "line-height": string;
71
+ };
72
+ "text-4xl": {
73
+ "font-size": string;
74
+ "line-height": string;
75
+ };
76
+ "text-5xl": {
77
+ "font-size": string;
78
+ "line-height": string;
79
+ };
80
+ "text-6xl": {
81
+ "font-size": string;
82
+ "line-height": string;
83
+ };
84
+ "text-7xl": {
85
+ "font-size": string;
86
+ "line-height": string;
87
+ };
88
+ "font-thin": {
89
+ "font-weight": number;
90
+ };
91
+ "font-extralight": {
92
+ "font-weight": number;
93
+ };
94
+ "font-light": {
95
+ "font-weight": number;
96
+ };
97
+ "font-normal": {
98
+ "font-weight": number;
99
+ };
100
+ "font-medium": {
101
+ "font-weight": number;
102
+ };
103
+ "font-semibold": {
104
+ "font-weight": number;
105
+ };
106
+ "font-bold": {
107
+ "font-weight": number;
108
+ };
109
+ "font-extrabold": {
110
+ "font-weight": number;
111
+ };
112
+ "font-black": {
113
+ "font-weight": number;
114
+ };
115
+ italic: {
116
+ "font-style": string;
117
+ };
118
+ "not-italic": {
119
+ "font-style": string;
120
+ };
121
+ "w-max": {
122
+ width: string;
123
+ };
124
+ "w-min": {
125
+ width: string;
126
+ };
127
+ "w-fit": {
128
+ width: string;
129
+ };
130
+ "h-max": {
131
+ height: string;
132
+ };
133
+ "h-min": {
134
+ height: string;
135
+ };
136
+ "h-fit": {
137
+ height: string;
138
+ };
139
+ "size-auto": {
140
+ width: string;
141
+ height: string;
142
+ };
143
+ "size-px": {
144
+ width: string;
145
+ height: string;
146
+ };
147
+ "size-full": {
148
+ width: string;
149
+ height: string;
150
+ };
151
+ "size-dvw": {
152
+ width: string;
153
+ height: string;
154
+ };
155
+ "size-dvh": {
156
+ width: string;
157
+ height: string;
158
+ };
159
+ "size-lvw": {
160
+ width: string;
161
+ height: string;
162
+ };
163
+ "size-lvh": {
164
+ width: string;
165
+ height: string;
166
+ };
167
+ "size-svw": {
168
+ width: string;
169
+ height: string;
170
+ };
171
+ "size-svh": {
172
+ width: string;
173
+ height: string;
174
+ };
175
+ "size-min": {
176
+ width: string;
177
+ height: string;
178
+ };
179
+ "size-max": {
180
+ width: string;
181
+ height: string;
182
+ };
183
+ "size-fit": {
184
+ width: string;
185
+ height: string;
186
+ };
187
+ "tracking-tighter": {
188
+ "letter-spacing": string;
189
+ };
190
+ "tracking-tight": {
191
+ "letter-spacing": string;
192
+ };
193
+ "tracking-normal": {
194
+ "letter-spacing": string;
195
+ };
196
+ "tracking-wide": {
197
+ "letter-spacing": string;
198
+ };
199
+ "tracking-wider": {
200
+ "letter-spacing": string;
201
+ };
202
+ "tracking-widest": {
203
+ "letter-spacing": string;
204
+ };
205
+ "leading-none": {
206
+ "line-height": string;
207
+ };
208
+ "leading-tight": {
209
+ "line-height": string;
210
+ };
211
+ "leading-snug": {
212
+ "line-height": string;
213
+ };
214
+ "leading-normal": {
215
+ "line-height": string;
216
+ };
217
+ "leading-relaxed": {
218
+ "line-height": string;
219
+ };
220
+ "leading-loose": {
221
+ "line-height": string;
222
+ };
223
+ "text-left": {
224
+ "text-align": string;
225
+ };
226
+ "text-right": {
227
+ "text-align": string;
228
+ };
229
+ "text-center": {
230
+ "text-align": string;
231
+ };
232
+ "text-justify": {
233
+ "text-align": string;
234
+ };
235
+ underline: {
236
+ "text-decoration": string;
237
+ };
238
+ "no-underline": {
239
+ "text-decoration": string;
240
+ };
241
+ "decoration-none": {
242
+ "text-decoration": string;
243
+ };
244
+ "line-through": {
245
+ "text-decoration": string;
246
+ };
247
+ uppercase: {
248
+ "text-transform": string;
249
+ };
250
+ lowercase: {
251
+ "text-transform": string;
252
+ };
253
+ capitalize: {
254
+ "text-transform": string;
255
+ };
256
+ truncate: {
257
+ "white-space": string;
258
+ overflow: string;
259
+ "text-overflow": string;
260
+ };
261
+ "text-elipsis": {
262
+ "text-overflow": string;
263
+ };
264
+ "text-clip": {
265
+ "text-overflow": string;
266
+ };
267
+ "text-wrap": {
268
+ "text-wrap": string;
269
+ };
270
+ "text-nowrap": {
271
+ "text-wrap": string;
272
+ };
273
+ "text-balance": {
274
+ "text-wrap": string;
275
+ };
276
+ "text-pretty": {
277
+ "text-wrap": string;
278
+ };
279
+ "whitespace-normal": {
280
+ "white-space": string;
281
+ };
282
+ "whitespace-nowrap": {
283
+ "white-space": string;
284
+ };
285
+ "whitespace-pre": {
286
+ "white-space": string;
287
+ };
288
+ "whitespace-pre-line": {
289
+ "white-space": string;
290
+ };
291
+ "whitespace-pre-wrap": {
292
+ "white-space": string;
293
+ };
294
+ "whitespace-break-spaces": {
295
+ "white-space": string;
296
+ };
297
+ relative: {
298
+ position: string;
299
+ };
300
+ fixed: {
301
+ position: string;
302
+ };
303
+ absolute: {
304
+ position: string;
305
+ };
306
+ sticky: {
307
+ position: string;
308
+ };
309
+ "object-contain": {
310
+ "object-fit": string;
311
+ };
312
+ "object-cover": {
313
+ "object-fit": string;
314
+ };
315
+ "object-fill": {
316
+ "object-fit": string;
317
+ };
318
+ "object-none": {
319
+ "object-fit": string;
320
+ };
321
+ block: {
322
+ display: string;
323
+ };
324
+ contents: {
325
+ display: string;
326
+ };
327
+ hidden: {
328
+ display: string;
329
+ };
330
+ inline: {
331
+ display: string;
332
+ };
333
+ "inline-block": {
334
+ display: string;
335
+ };
336
+ visible: {
337
+ visibility: string;
338
+ };
339
+ invisible: {
340
+ visibility: string;
341
+ };
342
+ collapse: {
343
+ visibility: string;
344
+ };
345
+ "list-none": {
346
+ "list-style-type": string;
347
+ };
348
+ "list-disc": {
349
+ "list-style-type": string;
350
+ };
351
+ "list-decimal": {
352
+ "list-style-type": string;
353
+ };
354
+ flex: {
355
+ display: string;
356
+ };
357
+ "flex-1": {
358
+ flex: string;
359
+ };
360
+ "flex-inline": {
361
+ display: string;
362
+ };
363
+ "flex-row": {
364
+ "flex-direction": string;
365
+ };
366
+ "flex-col": {
367
+ "flex-direction": string;
368
+ };
369
+ "flex-row-reverse": {
370
+ "flex-direction": string;
371
+ };
372
+ "flex-col-reverse": {
373
+ "flex-direction": string;
374
+ };
375
+ "flex-wrap": {
376
+ "flex-wrap": string;
377
+ };
378
+ "flex-wrap-reverse": {
379
+ "flex-wrap": string;
380
+ };
381
+ "flex-nowrap": {
382
+ "flex-wrap": string;
383
+ };
384
+ "justify-start": {
385
+ "justify-content": string;
386
+ };
387
+ "justify-end": {
388
+ "justify-content": string;
389
+ };
390
+ "justify-center": {
391
+ "justify-content": string;
392
+ };
393
+ "justify-between": {
394
+ "justify-content": string;
395
+ };
396
+ "justify-around": {
397
+ "justify-content": string;
398
+ };
399
+ "justify-evenly": {
400
+ "justify-content": string;
401
+ };
402
+ "justify-stretch": {
403
+ "justify-content": string;
404
+ };
405
+ "items-start": {
406
+ "align-items": string;
407
+ };
408
+ "items-end": {
409
+ "align-items": string;
410
+ };
411
+ "items-center": {
412
+ "align-items": string;
413
+ };
414
+ "items-stretch": {
415
+ "align-items": string;
416
+ };
417
+ "flex-grow": {
418
+ "flex-grow": number;
419
+ };
420
+ "flex-shrink": {
421
+ "flex-shrink": number;
422
+ };
423
+ "align-baseline": {
424
+ "vertical-align": string;
425
+ };
426
+ "align-top": {
427
+ "vertical-align": string;
428
+ };
429
+ "align-middle": {
430
+ "vertical-align": string;
431
+ };
432
+ "align-bottom": {
433
+ "vertical-align": string;
434
+ };
435
+ "align-text-top": {
436
+ "vertical-align": string;
437
+ };
438
+ "align-text-bottom": {
439
+ "vertical-align": string;
440
+ };
441
+ "overflow-auto": {
442
+ overflow: string;
443
+ };
444
+ "overflow-x-auto": {
445
+ "overflow-x": string;
446
+ };
447
+ "overflow-y-auto": {
448
+ "overflow-y": string;
449
+ };
450
+ "overflow-hidden": {
451
+ overflow: string;
452
+ };
453
+ "overflow-x-hidden": {
454
+ "overflow-x": string;
455
+ };
456
+ "overflow-y-hidden": {
457
+ "overflow-y": string;
458
+ };
459
+ "overflow-visible": {
460
+ overflow: string;
461
+ };
462
+ "overscroll-auto": {
463
+ "overscroll-behavior": string;
464
+ };
465
+ "overscroll-contain": {
466
+ "overscroll-behavior": string;
467
+ };
468
+ "overscroll-none": {
469
+ "overscroll-behavior": string;
470
+ };
471
+ "overscroll-x-auto": {
472
+ "overscroll-behavior-x": string;
473
+ };
474
+ "overscroll-x-contain": {
475
+ "overscroll-behavior-x": string;
476
+ };
477
+ "overscroll-x-none": {
478
+ "overscroll-behavior-x": string;
479
+ };
480
+ "overscroll-y-auto": {
481
+ "overscroll-behavior-y": string;
482
+ };
483
+ "overscroll-y-contain": {
484
+ "overscroll-behavior-y": string;
485
+ };
486
+ "overscroll-y-none": {
487
+ "overscroll-behavior-y": string;
488
+ };
489
+ "z-auto": {
490
+ "z-index": string;
491
+ };
492
+ "cursor-pointer": {
493
+ cursor: string;
494
+ };
495
+ "cursor-wait": {
496
+ cursor: string;
497
+ };
498
+ "cursor-not-allowed": {
499
+ cursor: string;
500
+ };
501
+ "select-none": {
502
+ "user-select": string;
503
+ };
504
+ "select-all": {
505
+ "user-select": string;
506
+ };
507
+ "pointer-events-auto": {
508
+ "pointer-events": string;
509
+ };
510
+ "pointer-events-none": {
511
+ "pointer-events": string;
512
+ };
513
+ "box-border": {
514
+ "box-sizing": string;
515
+ };
516
+ "box-content": {
517
+ "box-sizing": string;
518
+ };
519
+ resize: {
520
+ resize: string;
521
+ };
522
+ "resize-x": {
523
+ resize: string;
524
+ };
525
+ "resize-y": {
526
+ resize: string;
527
+ };
528
+ "resize-none": {
529
+ resize: string;
530
+ };
531
+ border: {
532
+ border: string;
533
+ };
534
+ "border-none": {
535
+ border: string;
536
+ };
537
+ "border-solid": {
538
+ "border-style": string;
539
+ };
540
+ "border-dashed": {
541
+ "border-style": string;
542
+ };
543
+ "border-dotted": {
544
+ "border-style": string;
545
+ };
546
+ "border-collapse": {
547
+ "border-collapse": string;
548
+ };
549
+ "rounded-none": {
550
+ "border-radius": string;
551
+ };
552
+ rounded: {
553
+ "border-radius": string;
554
+ };
555
+ "rounded-sm": {
556
+ "border-radius": string;
557
+ };
558
+ "rounded-md": {
559
+ "border-radius": string;
560
+ };
561
+ "rounded-lg": {
562
+ "border-radius": string;
563
+ };
564
+ "rounded-xl": {
565
+ "border-radius": string;
566
+ };
567
+ "rounded-full": {
568
+ "border-radius": string;
569
+ };
570
+ shadow: {
571
+ "box-shadow": string;
572
+ };
573
+ "shadow-sm": {
574
+ "box-shadow": string;
575
+ };
576
+ "shadow-md": {
577
+ "box-shadow": string;
578
+ };
579
+ "shadow-lg": {
580
+ "box-shadow": string;
581
+ };
582
+ "shadow-xl": {
583
+ "box-shadow": string;
584
+ };
585
+ "shadow-2xl": {
586
+ "box-shadow": string;
587
+ };
588
+ "shadow-inner": {
589
+ "box-shadow": string;
590
+ };
591
+ "shadow-outline": {
592
+ "box-shadow": string;
593
+ };
594
+ "shadow-none": {
595
+ "box-shadow": string;
596
+ };
597
+ "transition-none": {
598
+ transition: string;
599
+ };
600
+ transition: {
601
+ transition: string;
602
+ };
603
+ "animate-none": {
604
+ animation: string;
605
+ };
606
+ "animate-spin": {
607
+ animation: string;
608
+ };
609
+ "animate-ping": {
610
+ animation: string;
611
+ };
612
+ "animate-pulse": {
613
+ animation: string;
614
+ };
615
+ "bg-auto": {
616
+ "background-size": string;
617
+ };
618
+ "bg-cover": {
619
+ "background-size": string;
620
+ };
621
+ "bg-contain": {
622
+ "background-size": string;
623
+ };
624
+ "bg-no-repeat": {
625
+ "background-repeat": string;
626
+ };
627
+ "bg-fixed": {
628
+ "background-attachment": string;
629
+ };
630
+ "bg-local": {
631
+ "background-attachment": string;
632
+ };
633
+ "bg-scroll": {
634
+ "background-attachment": string;
635
+ };
636
+ "min-h-screen": {
637
+ "min-height": string;
638
+ };
639
+ "max-h-screen": {
640
+ "max-height": string;
641
+ };
642
+ "min-w-screen": {
643
+ "min-width": string;
644
+ };
645
+ "h-dvh": {
646
+ height: string;
647
+ };
648
+ "h-svh": {
649
+ height: string;
650
+ };
651
+ "h-lvh": {
652
+ height: string;
653
+ };
654
+ "w-dvw": {
655
+ width: string;
656
+ };
657
+ "w-svw": {
658
+ width: string;
659
+ };
660
+ "w-lvw": {
661
+ width: string;
662
+ };
663
+ "min-h-dvh": {
664
+ "min-height": string;
665
+ };
666
+ "min-h-svh": {
667
+ "min-height": string;
668
+ };
669
+ "min-h-lvh": {
670
+ "min-height": string;
671
+ };
672
+ "flex-none": {
673
+ flex: string;
674
+ };
675
+ "flex-auto": {
676
+ flex: string;
677
+ };
678
+ "flex-initial": {
679
+ flex: string;
680
+ };
681
+ grow: {
682
+ "flex-grow": string;
683
+ };
684
+ "grow-0": {
685
+ "flex-grow": string;
686
+ };
687
+ shrink: {
688
+ "flex-shrink": string;
689
+ };
690
+ "shrink-0": {
691
+ "flex-shrink": string;
692
+ };
693
+ "self-auto": {
694
+ "align-self": string;
695
+ };
696
+ "self-start": {
697
+ "align-self": string;
698
+ };
699
+ "self-end": {
700
+ "align-self": string;
701
+ };
702
+ "self-center": {
703
+ "align-self": string;
704
+ };
705
+ "self-stretch": {
706
+ "align-self": string;
707
+ };
708
+ "self-baseline": {
709
+ "align-self": string;
710
+ };
711
+ "content-normal": {
712
+ "align-content": string;
713
+ };
714
+ "content-start": {
715
+ "align-content": string;
716
+ };
717
+ "content-end": {
718
+ "align-content": string;
719
+ };
720
+ "content-center": {
721
+ "align-content": string;
722
+ };
723
+ "content-between": {
724
+ "align-content": string;
725
+ };
726
+ "content-around": {
727
+ "align-content": string;
728
+ };
729
+ "content-evenly": {
730
+ "align-content": string;
731
+ };
732
+ "content-stretch": {
733
+ "align-content": string;
734
+ };
735
+ "items-baseline": {
736
+ "align-items": string;
737
+ };
738
+ "inset-0": {
739
+ inset: string;
740
+ };
741
+ "inset-auto": {
742
+ inset: string;
743
+ };
744
+ "inset-x-0": {
745
+ left: string;
746
+ right: string;
747
+ };
748
+ "inset-y-0": {
749
+ top: string;
750
+ bottom: string;
751
+ };
752
+ "inset-x-auto": {
753
+ left: string;
754
+ right: string;
755
+ };
756
+ "inset-y-auto": {
757
+ top: string;
758
+ bottom: string;
759
+ };
760
+ "sr-only": {
761
+ position: string;
762
+ width: string;
763
+ height: string;
764
+ padding: string;
765
+ margin: string;
766
+ overflow: string;
767
+ clip: string;
768
+ "white-space": string;
769
+ "border-width": string;
770
+ };
771
+ "not-sr-only": {
772
+ position: string;
773
+ width: string;
774
+ height: string;
775
+ padding: string;
776
+ margin: string;
777
+ overflow: string;
778
+ clip: string;
779
+ "white-space": string;
780
+ };
781
+ };
782
+ export declare const PROPS_COLORS: {
783
+ [key: string]: {
784
+ [key: number]: string;
785
+ };
786
+ };
1
787
  export default function rules(): string;