eclair 0.0.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.
@@ -0,0 +1,1311 @@
1
+ # typed: strong
2
+ require "sorbet-runtime"
3
+
4
+ require_relative "./element"
5
+
6
+ module Eclair
7
+ module Html
8
+ extend T::Sig
9
+ extend T::Helpers
10
+ final!
11
+
12
+ # Explictly typed because the RBI is untyped:
13
+ # https://github.com/sorbet/sorbet/blob/35f9c563b8b69bbb695b50c4a5e93c44ae1fe27c/rbi/core/kernel.rbi#L3107
14
+ sig(:final) do
15
+ type_parameters(:X)
16
+ .params(blk: T.proc.params(html: T.class_of(Html)).returns(T.type_parameter(:X)))
17
+ .returns(T.type_parameter(:X))
18
+ end
19
+ def self.yield_self(&blk)
20
+ yield self
21
+ end
22
+
23
+ # Methods for common HTML elements to increase type-safety
24
+ # CODE-GEN-START
25
+
26
+ sig(:final) do
27
+ params(
28
+ attributes: Element::Attributes,
29
+ children: T::Array[Element::ElementChild]
30
+ )
31
+ .returns(Element)
32
+ end
33
+ def self.a(attributes, children)
34
+ Eclair.element(:a, attributes, children)
35
+ end
36
+
37
+ sig(:final) do
38
+ params(
39
+ attributes: Element::Attributes,
40
+ children: T::Array[Element::ElementChild]
41
+ )
42
+ .returns(Element)
43
+ end
44
+ def self.abbr(attributes, children)
45
+ Eclair.element(:abbr, attributes, children)
46
+ end
47
+
48
+ sig(:final) do
49
+ params(
50
+ attributes: Element::Attributes,
51
+ children: T::Array[Element::ElementChild]
52
+ )
53
+ .returns(Element)
54
+ end
55
+ def self.address(attributes, children)
56
+ Eclair.element(:address, attributes, children)
57
+ end
58
+
59
+ sig(:final) do
60
+ params(
61
+ attributes: Element::Attributes
62
+ )
63
+ .returns(Element)
64
+ end
65
+ def self.area(attributes)
66
+ Eclair.element(:area, attributes, Element::Void)
67
+ end
68
+
69
+ sig(:final) do
70
+ params(
71
+ attributes: Element::Attributes,
72
+ children: T::Array[Element::ElementChild]
73
+ )
74
+ .returns(Element)
75
+ end
76
+ def self.article(attributes, children)
77
+ Eclair.element(:article, attributes, children)
78
+ end
79
+
80
+ sig(:final) do
81
+ params(
82
+ attributes: Element::Attributes,
83
+ children: T::Array[Element::ElementChild]
84
+ )
85
+ .returns(Element)
86
+ end
87
+ def self.aside(attributes, children)
88
+ Eclair.element(:aside, attributes, children)
89
+ end
90
+
91
+ sig(:final) do
92
+ params(
93
+ attributes: Element::Attributes,
94
+ children: T::Array[Element::ElementChild]
95
+ )
96
+ .returns(Element)
97
+ end
98
+ def self.audio(attributes, children)
99
+ Eclair.element(:audio, attributes, children)
100
+ end
101
+
102
+ sig(:final) do
103
+ params(
104
+ attributes: Element::Attributes,
105
+ children: T::Array[Element::ElementChild]
106
+ )
107
+ .returns(Element)
108
+ end
109
+ def self.b(attributes, children)
110
+ Eclair.element(:b, attributes, children)
111
+ end
112
+
113
+ sig(:final) do
114
+ params(
115
+ attributes: Element::Attributes
116
+ )
117
+ .returns(Element)
118
+ end
119
+ def self.base(attributes)
120
+ Eclair.element(:base, attributes, Element::Void)
121
+ end
122
+
123
+ sig(:final) do
124
+ params(
125
+ attributes: Element::Attributes,
126
+ children: T::Array[Element::ElementChild]
127
+ )
128
+ .returns(Element)
129
+ end
130
+ def self.bdi(attributes, children)
131
+ Eclair.element(:bdi, attributes, children)
132
+ end
133
+
134
+ sig(:final) do
135
+ params(
136
+ attributes: Element::Attributes,
137
+ children: T::Array[Element::ElementChild]
138
+ )
139
+ .returns(Element)
140
+ end
141
+ def self.bdo(attributes, children)
142
+ Eclair.element(:bdo, attributes, children)
143
+ end
144
+
145
+ sig(:final) do
146
+ params(
147
+ attributes: Element::Attributes,
148
+ children: T::Array[Element::ElementChild]
149
+ )
150
+ .returns(Element)
151
+ end
152
+ def self.blockquote(attributes, children)
153
+ Eclair.element(:blockquote, attributes, children)
154
+ end
155
+
156
+ sig(:final) do
157
+ params(
158
+ attributes: Element::Attributes,
159
+ children: T::Array[Element::ElementChild]
160
+ )
161
+ .returns(Element)
162
+ end
163
+ def self.body(attributes, children)
164
+ Eclair.element(:body, attributes, children)
165
+ end
166
+
167
+ sig(:final) do
168
+ params(
169
+ attributes: Element::Attributes
170
+ )
171
+ .returns(Element)
172
+ end
173
+ def self.br(attributes)
174
+ Eclair.element(:br, attributes, Element::Void)
175
+ end
176
+
177
+ sig(:final) do
178
+ params(
179
+ attributes: Element::Attributes,
180
+ children: T::Array[Element::ElementChild]
181
+ )
182
+ .returns(Element)
183
+ end
184
+ def self.button(attributes, children)
185
+ Eclair.element(:button, attributes, children)
186
+ end
187
+
188
+ sig(:final) do
189
+ params(
190
+ attributes: Element::Attributes,
191
+ children: T::Array[Element::ElementChild]
192
+ )
193
+ .returns(Element)
194
+ end
195
+ def self.canvas(attributes, children)
196
+ Eclair.element(:canvas, attributes, children)
197
+ end
198
+
199
+ sig(:final) do
200
+ params(
201
+ attributes: Element::Attributes,
202
+ children: T::Array[Element::ElementChild]
203
+ )
204
+ .returns(Element)
205
+ end
206
+ def self.caption(attributes, children)
207
+ Eclair.element(:caption, attributes, children)
208
+ end
209
+
210
+ sig(:final) do
211
+ params(
212
+ attributes: Element::Attributes,
213
+ children: T::Array[Element::ElementChild]
214
+ )
215
+ .returns(Element)
216
+ end
217
+ def self.cite(attributes, children)
218
+ Eclair.element(:cite, attributes, children)
219
+ end
220
+
221
+ sig(:final) do
222
+ params(
223
+ attributes: Element::Attributes,
224
+ children: T::Array[Element::ElementChild]
225
+ )
226
+ .returns(Element)
227
+ end
228
+ def self.code(attributes, children)
229
+ Eclair.element(:code, attributes, children)
230
+ end
231
+
232
+ sig(:final) do
233
+ params(
234
+ attributes: Element::Attributes
235
+ )
236
+ .returns(Element)
237
+ end
238
+ def self.col(attributes)
239
+ Eclair.element(:col, attributes, Element::Void)
240
+ end
241
+
242
+ sig(:final) do
243
+ params(
244
+ attributes: Element::Attributes,
245
+ children: T::Array[Element::ElementChild]
246
+ )
247
+ .returns(Element)
248
+ end
249
+ def self.colgroup(attributes, children)
250
+ Eclair.element(:colgroup, attributes, children)
251
+ end
252
+
253
+ sig(:final) do
254
+ params(
255
+ attributes: Element::Attributes,
256
+ children: T::Array[Element::ElementChild]
257
+ )
258
+ .returns(Element)
259
+ end
260
+ def self.data(attributes, children)
261
+ Eclair.element(:data, attributes, children)
262
+ end
263
+
264
+ sig(:final) do
265
+ params(
266
+ attributes: Element::Attributes,
267
+ children: T::Array[Element::ElementChild]
268
+ )
269
+ .returns(Element)
270
+ end
271
+ def self.datalist(attributes, children)
272
+ Eclair.element(:datalist, attributes, children)
273
+ end
274
+
275
+ sig(:final) do
276
+ params(
277
+ attributes: Element::Attributes,
278
+ children: T::Array[Element::ElementChild]
279
+ )
280
+ .returns(Element)
281
+ end
282
+ def self.dd(attributes, children)
283
+ Eclair.element(:dd, attributes, children)
284
+ end
285
+
286
+ sig(:final) do
287
+ params(
288
+ attributes: Element::Attributes,
289
+ children: T::Array[Element::ElementChild]
290
+ )
291
+ .returns(Element)
292
+ end
293
+ def self.del(attributes, children)
294
+ Eclair.element(:del, attributes, children)
295
+ end
296
+
297
+ sig(:final) do
298
+ params(
299
+ attributes: Element::Attributes,
300
+ children: T::Array[Element::ElementChild]
301
+ )
302
+ .returns(Element)
303
+ end
304
+ def self.details(attributes, children)
305
+ Eclair.element(:details, attributes, children)
306
+ end
307
+
308
+ sig(:final) do
309
+ params(
310
+ attributes: Element::Attributes,
311
+ children: T::Array[Element::ElementChild]
312
+ )
313
+ .returns(Element)
314
+ end
315
+ def self.dfn(attributes, children)
316
+ Eclair.element(:dfn, attributes, children)
317
+ end
318
+
319
+ sig(:final) do
320
+ params(
321
+ attributes: Element::Attributes,
322
+ children: T::Array[Element::ElementChild]
323
+ )
324
+ .returns(Element)
325
+ end
326
+ def self.dialog(attributes, children)
327
+ Eclair.element(:dialog, attributes, children)
328
+ end
329
+
330
+ sig(:final) do
331
+ params(
332
+ attributes: Element::Attributes,
333
+ children: T::Array[Element::ElementChild]
334
+ )
335
+ .returns(Element)
336
+ end
337
+ def self.div(attributes, children)
338
+ Eclair.element(:div, attributes, children)
339
+ end
340
+
341
+ sig(:final) do
342
+ params(
343
+ attributes: Element::Attributes,
344
+ children: T::Array[Element::ElementChild]
345
+ )
346
+ .returns(Element)
347
+ end
348
+ def self.dl(attributes, children)
349
+ Eclair.element(:dl, attributes, children)
350
+ end
351
+
352
+ sig(:final) do
353
+ params(
354
+ attributes: Element::Attributes,
355
+ children: T::Array[Element::ElementChild]
356
+ )
357
+ .returns(Element)
358
+ end
359
+ def self.dt(attributes, children)
360
+ Eclair.element(:dt, attributes, children)
361
+ end
362
+
363
+ sig(:final) do
364
+ params(
365
+ attributes: Element::Attributes,
366
+ children: T::Array[Element::ElementChild]
367
+ )
368
+ .returns(Element)
369
+ end
370
+ def self.em(attributes, children)
371
+ Eclair.element(:em, attributes, children)
372
+ end
373
+
374
+ sig(:final) do
375
+ params(
376
+ attributes: Element::Attributes
377
+ )
378
+ .returns(Element)
379
+ end
380
+ def self.embed(attributes)
381
+ Eclair.element(:embed, attributes, Element::Void)
382
+ end
383
+
384
+ sig(:final) do
385
+ params(
386
+ attributes: Element::Attributes,
387
+ children: T::Array[Element::ElementChild]
388
+ )
389
+ .returns(Element)
390
+ end
391
+ def self.fieldset(attributes, children)
392
+ Eclair.element(:fieldset, attributes, children)
393
+ end
394
+
395
+ sig(:final) do
396
+ params(
397
+ attributes: Element::Attributes,
398
+ children: T::Array[Element::ElementChild]
399
+ )
400
+ .returns(Element)
401
+ end
402
+ def self.figcaption(attributes, children)
403
+ Eclair.element(:figcaption, attributes, children)
404
+ end
405
+
406
+ sig(:final) do
407
+ params(
408
+ attributes: Element::Attributes,
409
+ children: T::Array[Element::ElementChild]
410
+ )
411
+ .returns(Element)
412
+ end
413
+ def self.figure(attributes, children)
414
+ Eclair.element(:figure, attributes, children)
415
+ end
416
+
417
+ sig(:final) do
418
+ params(
419
+ attributes: Element::Attributes,
420
+ children: T::Array[Element::ElementChild]
421
+ )
422
+ .returns(Element)
423
+ end
424
+ def self.footer(attributes, children)
425
+ Eclair.element(:footer, attributes, children)
426
+ end
427
+
428
+ sig(:final) do
429
+ params(
430
+ attributes: Element::Attributes,
431
+ children: T::Array[Element::ElementChild]
432
+ )
433
+ .returns(Element)
434
+ end
435
+ def self.form(attributes, children)
436
+ Eclair.element(:form, attributes, children)
437
+ end
438
+
439
+ sig(:final) do
440
+ params(
441
+ attributes: Element::Attributes,
442
+ children: T::Array[Element::ElementChild]
443
+ )
444
+ .returns(Element)
445
+ end
446
+ def self.h1(attributes, children)
447
+ Eclair.element(:h1, attributes, children)
448
+ end
449
+
450
+ sig(:final) do
451
+ params(
452
+ attributes: Element::Attributes,
453
+ children: T::Array[Element::ElementChild]
454
+ )
455
+ .returns(Element)
456
+ end
457
+ def self.h2(attributes, children)
458
+ Eclair.element(:h2, attributes, children)
459
+ end
460
+
461
+ sig(:final) do
462
+ params(
463
+ attributes: Element::Attributes,
464
+ children: T::Array[Element::ElementChild]
465
+ )
466
+ .returns(Element)
467
+ end
468
+ def self.h3(attributes, children)
469
+ Eclair.element(:h3, attributes, children)
470
+ end
471
+
472
+ sig(:final) do
473
+ params(
474
+ attributes: Element::Attributes,
475
+ children: T::Array[Element::ElementChild]
476
+ )
477
+ .returns(Element)
478
+ end
479
+ def self.h4(attributes, children)
480
+ Eclair.element(:h4, attributes, children)
481
+ end
482
+
483
+ sig(:final) do
484
+ params(
485
+ attributes: Element::Attributes,
486
+ children: T::Array[Element::ElementChild]
487
+ )
488
+ .returns(Element)
489
+ end
490
+ def self.h5(attributes, children)
491
+ Eclair.element(:h5, attributes, children)
492
+ end
493
+
494
+ sig(:final) do
495
+ params(
496
+ attributes: Element::Attributes,
497
+ children: T::Array[Element::ElementChild]
498
+ )
499
+ .returns(Element)
500
+ end
501
+ def self.h6(attributes, children)
502
+ Eclair.element(:h6, attributes, children)
503
+ end
504
+
505
+ sig(:final) do
506
+ params(
507
+ attributes: Element::Attributes,
508
+ children: T::Array[Element::ElementChild]
509
+ )
510
+ .returns(Element)
511
+ end
512
+ def self.head(attributes, children)
513
+ Eclair.element(:head, attributes, children)
514
+ end
515
+
516
+ sig(:final) do
517
+ params(
518
+ attributes: Element::Attributes,
519
+ children: T::Array[Element::ElementChild]
520
+ )
521
+ .returns(Element)
522
+ end
523
+ def self.header(attributes, children)
524
+ Eclair.element(:header, attributes, children)
525
+ end
526
+
527
+ sig(:final) do
528
+ params(
529
+ attributes: Element::Attributes,
530
+ children: T::Array[Element::ElementChild]
531
+ )
532
+ .returns(Element)
533
+ end
534
+ def self.hgroup(attributes, children)
535
+ Eclair.element(:hgroup, attributes, children)
536
+ end
537
+
538
+ sig(:final) do
539
+ params(
540
+ attributes: Element::Attributes
541
+ )
542
+ .returns(Element)
543
+ end
544
+ def self.hr(attributes)
545
+ Eclair.element(:hr, attributes, Element::Void)
546
+ end
547
+
548
+ sig(:final) do
549
+ params(
550
+ attributes: Element::Attributes,
551
+ children: T::Array[Element::ElementChild]
552
+ )
553
+ .returns(Element)
554
+ end
555
+ def self.html(attributes, children)
556
+ Eclair.element(:html, attributes, children)
557
+ end
558
+
559
+ sig(:final) do
560
+ params(
561
+ attributes: Element::Attributes,
562
+ children: T::Array[Element::ElementChild]
563
+ )
564
+ .returns(Element)
565
+ end
566
+ def self.i(attributes, children)
567
+ Eclair.element(:i, attributes, children)
568
+ end
569
+
570
+ sig(:final) do
571
+ params(
572
+ attributes: Element::Attributes,
573
+ children: T::Array[Element::ElementChild]
574
+ )
575
+ .returns(Element)
576
+ end
577
+ def self.iframe(attributes, children)
578
+ Eclair.element(:iframe, attributes, children)
579
+ end
580
+
581
+ sig(:final) do
582
+ params(
583
+ attributes: Element::Attributes
584
+ )
585
+ .returns(Element)
586
+ end
587
+ def self.img(attributes)
588
+ Eclair.element(:img, attributes, Element::Void)
589
+ end
590
+
591
+ sig(:final) do
592
+ params(
593
+ attributes: Element::Attributes
594
+ )
595
+ .returns(Element)
596
+ end
597
+ def self.input(attributes)
598
+ Eclair.element(:input, attributes, Element::Void)
599
+ end
600
+
601
+ sig(:final) do
602
+ params(
603
+ attributes: Element::Attributes,
604
+ children: T::Array[Element::ElementChild]
605
+ )
606
+ .returns(Element)
607
+ end
608
+ def self.ins(attributes, children)
609
+ Eclair.element(:ins, attributes, children)
610
+ end
611
+
612
+ sig(:final) do
613
+ params(
614
+ attributes: Element::Attributes,
615
+ children: T::Array[Element::ElementChild]
616
+ )
617
+ .returns(Element)
618
+ end
619
+ def self.kbd(attributes, children)
620
+ Eclair.element(:kbd, attributes, children)
621
+ end
622
+
623
+ sig(:final) do
624
+ params(
625
+ attributes: Element::Attributes,
626
+ children: T::Array[Element::ElementChild]
627
+ )
628
+ .returns(Element)
629
+ end
630
+ def self.label(attributes, children)
631
+ Eclair.element(:label, attributes, children)
632
+ end
633
+
634
+ sig(:final) do
635
+ params(
636
+ attributes: Element::Attributes,
637
+ children: T::Array[Element::ElementChild]
638
+ )
639
+ .returns(Element)
640
+ end
641
+ def self.legend(attributes, children)
642
+ Eclair.element(:legend, attributes, children)
643
+ end
644
+
645
+ sig(:final) do
646
+ params(
647
+ attributes: Element::Attributes,
648
+ children: T::Array[Element::ElementChild]
649
+ )
650
+ .returns(Element)
651
+ end
652
+ def self.li(attributes, children)
653
+ Eclair.element(:li, attributes, children)
654
+ end
655
+
656
+ sig(:final) do
657
+ params(
658
+ attributes: Element::Attributes
659
+ )
660
+ .returns(Element)
661
+ end
662
+ def self.link(attributes)
663
+ Eclair.element(:link, attributes, Element::Void)
664
+ end
665
+
666
+ sig(:final) do
667
+ params(
668
+ attributes: Element::Attributes,
669
+ children: T::Array[Element::ElementChild]
670
+ )
671
+ .returns(Element)
672
+ end
673
+ def self.main(attributes, children)
674
+ Eclair.element(:main, attributes, children)
675
+ end
676
+
677
+ sig(:final) do
678
+ params(
679
+ attributes: Element::Attributes,
680
+ children: T::Array[Element::ElementChild]
681
+ )
682
+ .returns(Element)
683
+ end
684
+ def self.map(attributes, children)
685
+ Eclair.element(:map, attributes, children)
686
+ end
687
+
688
+ sig(:final) do
689
+ params(
690
+ attributes: Element::Attributes,
691
+ children: T::Array[Element::ElementChild]
692
+ )
693
+ .returns(Element)
694
+ end
695
+ def self.mark(attributes, children)
696
+ Eclair.element(:mark, attributes, children)
697
+ end
698
+
699
+ sig(:final) do
700
+ params(
701
+ attributes: Element::Attributes,
702
+ children: T::Array[Element::ElementChild]
703
+ )
704
+ .returns(Element)
705
+ end
706
+ def self.math(attributes, children)
707
+ Eclair.element(:math, attributes, children)
708
+ end
709
+
710
+ sig(:final) do
711
+ params(
712
+ attributes: Element::Attributes,
713
+ children: T::Array[Element::ElementChild]
714
+ )
715
+ .returns(Element)
716
+ end
717
+ def self.menu(attributes, children)
718
+ Eclair.element(:menu, attributes, children)
719
+ end
720
+
721
+ sig(:final) do
722
+ params(
723
+ attributes: Element::Attributes
724
+ )
725
+ .returns(Element)
726
+ end
727
+ def self.menuitem(attributes)
728
+ Eclair.element(:menuitem, attributes, Element::Void)
729
+ end
730
+
731
+ sig(:final) do
732
+ params(
733
+ attributes: Element::Attributes
734
+ )
735
+ .returns(Element)
736
+ end
737
+ def self.meta(attributes)
738
+ Eclair.element(:meta, attributes, Element::Void)
739
+ end
740
+
741
+ sig(:final) do
742
+ params(
743
+ attributes: Element::Attributes,
744
+ children: T::Array[Element::ElementChild]
745
+ )
746
+ .returns(Element)
747
+ end
748
+ def self.meter(attributes, children)
749
+ Eclair.element(:meter, attributes, children)
750
+ end
751
+
752
+ sig(:final) do
753
+ params(
754
+ attributes: Element::Attributes,
755
+ children: T::Array[Element::ElementChild]
756
+ )
757
+ .returns(Element)
758
+ end
759
+ def self.nav(attributes, children)
760
+ Eclair.element(:nav, attributes, children)
761
+ end
762
+
763
+ sig(:final) do
764
+ params(
765
+ attributes: Element::Attributes,
766
+ children: T::Array[Element::ElementChild]
767
+ )
768
+ .returns(Element)
769
+ end
770
+ def self.noscript(attributes, children)
771
+ Eclair.element(:noscript, attributes, children)
772
+ end
773
+
774
+ sig(:final) do
775
+ params(
776
+ attributes: Element::Attributes,
777
+ children: T::Array[Element::ElementChild]
778
+ )
779
+ .returns(Element)
780
+ end
781
+ def self.object(attributes, children)
782
+ Eclair.element(:object, attributes, children)
783
+ end
784
+
785
+ sig(:final) do
786
+ params(
787
+ attributes: Element::Attributes,
788
+ children: T::Array[Element::ElementChild]
789
+ )
790
+ .returns(Element)
791
+ end
792
+ def self.ol(attributes, children)
793
+ Eclair.element(:ol, attributes, children)
794
+ end
795
+
796
+ sig(:final) do
797
+ params(
798
+ attributes: Element::Attributes,
799
+ children: T::Array[Element::ElementChild]
800
+ )
801
+ .returns(Element)
802
+ end
803
+ def self.optgroup(attributes, children)
804
+ Eclair.element(:optgroup, attributes, children)
805
+ end
806
+
807
+ sig(:final) do
808
+ params(
809
+ attributes: Element::Attributes,
810
+ children: T::Array[Element::ElementChild]
811
+ )
812
+ .returns(Element)
813
+ end
814
+ def self.option(attributes, children)
815
+ Eclair.element(:option, attributes, children)
816
+ end
817
+
818
+ sig(:final) do
819
+ params(
820
+ attributes: Element::Attributes,
821
+ children: T::Array[Element::ElementChild]
822
+ )
823
+ .returns(Element)
824
+ end
825
+ def self.output(attributes, children)
826
+ Eclair.element(:output, attributes, children)
827
+ end
828
+
829
+ sig(:final) do
830
+ params(
831
+ attributes: Element::Attributes,
832
+ children: T::Array[Element::ElementChild]
833
+ )
834
+ .returns(Element)
835
+ end
836
+ def self.p(attributes, children)
837
+ Eclair.element(:p, attributes, children)
838
+ end
839
+
840
+ sig(:final) do
841
+ params(
842
+ attributes: Element::Attributes
843
+ )
844
+ .returns(Element)
845
+ end
846
+ def self.param(attributes)
847
+ Eclair.element(:param, attributes, Element::Void)
848
+ end
849
+
850
+ sig(:final) do
851
+ params(
852
+ attributes: Element::Attributes,
853
+ children: T::Array[Element::ElementChild]
854
+ )
855
+ .returns(Element)
856
+ end
857
+ def self.picture(attributes, children)
858
+ Eclair.element(:picture, attributes, children)
859
+ end
860
+
861
+ sig(:final) do
862
+ params(
863
+ attributes: Element::Attributes,
864
+ children: T::Array[Element::ElementChild]
865
+ )
866
+ .returns(Element)
867
+ end
868
+ def self.pre(attributes, children)
869
+ Eclair.element(:pre, attributes, children)
870
+ end
871
+
872
+ sig(:final) do
873
+ params(
874
+ attributes: Element::Attributes,
875
+ children: T::Array[Element::ElementChild]
876
+ )
877
+ .returns(Element)
878
+ end
879
+ def self.progress(attributes, children)
880
+ Eclair.element(:progress, attributes, children)
881
+ end
882
+
883
+ sig(:final) do
884
+ params(
885
+ attributes: Element::Attributes,
886
+ children: T::Array[Element::ElementChild]
887
+ )
888
+ .returns(Element)
889
+ end
890
+ def self.q(attributes, children)
891
+ Eclair.element(:q, attributes, children)
892
+ end
893
+
894
+ sig(:final) do
895
+ params(
896
+ attributes: Element::Attributes,
897
+ children: T::Array[Element::ElementChild]
898
+ )
899
+ .returns(Element)
900
+ end
901
+ def self.rb(attributes, children)
902
+ Eclair.element(:rb, attributes, children)
903
+ end
904
+
905
+ sig(:final) do
906
+ params(
907
+ attributes: Element::Attributes,
908
+ children: T::Array[Element::ElementChild]
909
+ )
910
+ .returns(Element)
911
+ end
912
+ def self.rp(attributes, children)
913
+ Eclair.element(:rp, attributes, children)
914
+ end
915
+
916
+ sig(:final) do
917
+ params(
918
+ attributes: Element::Attributes,
919
+ children: T::Array[Element::ElementChild]
920
+ )
921
+ .returns(Element)
922
+ end
923
+ def self.rt(attributes, children)
924
+ Eclair.element(:rt, attributes, children)
925
+ end
926
+
927
+ sig(:final) do
928
+ params(
929
+ attributes: Element::Attributes,
930
+ children: T::Array[Element::ElementChild]
931
+ )
932
+ .returns(Element)
933
+ end
934
+ def self.rtc(attributes, children)
935
+ Eclair.element(:rtc, attributes, children)
936
+ end
937
+
938
+ sig(:final) do
939
+ params(
940
+ attributes: Element::Attributes,
941
+ children: T::Array[Element::ElementChild]
942
+ )
943
+ .returns(Element)
944
+ end
945
+ def self.ruby(attributes, children)
946
+ Eclair.element(:ruby, attributes, children)
947
+ end
948
+
949
+ sig(:final) do
950
+ params(
951
+ attributes: Element::Attributes,
952
+ children: T::Array[Element::ElementChild]
953
+ )
954
+ .returns(Element)
955
+ end
956
+ def self.s(attributes, children)
957
+ Eclair.element(:s, attributes, children)
958
+ end
959
+
960
+ sig(:final) do
961
+ params(
962
+ attributes: Element::Attributes,
963
+ children: T::Array[Element::ElementChild]
964
+ )
965
+ .returns(Element)
966
+ end
967
+ def self.samp(attributes, children)
968
+ Eclair.element(:samp, attributes, children)
969
+ end
970
+
971
+ sig(:final) do
972
+ params(
973
+ attributes: Element::Attributes,
974
+ children: T::Array[Element::ElementChild]
975
+ )
976
+ .returns(Element)
977
+ end
978
+ def self.script(attributes, children)
979
+ Eclair.element(:script, attributes, children)
980
+ end
981
+
982
+ sig(:final) do
983
+ params(
984
+ attributes: Element::Attributes,
985
+ children: T::Array[Element::ElementChild]
986
+ )
987
+ .returns(Element)
988
+ end
989
+ def self.search(attributes, children)
990
+ Eclair.element(:search, attributes, children)
991
+ end
992
+
993
+ sig(:final) do
994
+ params(
995
+ attributes: Element::Attributes,
996
+ children: T::Array[Element::ElementChild]
997
+ )
998
+ .returns(Element)
999
+ end
1000
+ def self.section(attributes, children)
1001
+ Eclair.element(:section, attributes, children)
1002
+ end
1003
+
1004
+ sig(:final) do
1005
+ params(
1006
+ attributes: Element::Attributes,
1007
+ children: T::Array[Element::ElementChild]
1008
+ )
1009
+ .returns(Element)
1010
+ end
1011
+ def self.select(attributes, children)
1012
+ Eclair.element(:select, attributes, children)
1013
+ end
1014
+
1015
+ sig(:final) do
1016
+ params(
1017
+ attributes: Element::Attributes,
1018
+ children: T::Array[Element::ElementChild]
1019
+ )
1020
+ .returns(Element)
1021
+ end
1022
+ def self.slot(attributes, children)
1023
+ Eclair.element(:slot, attributes, children)
1024
+ end
1025
+
1026
+ sig(:final) do
1027
+ params(
1028
+ attributes: Element::Attributes,
1029
+ children: T::Array[Element::ElementChild]
1030
+ )
1031
+ .returns(Element)
1032
+ end
1033
+ def self.small(attributes, children)
1034
+ Eclair.element(:small, attributes, children)
1035
+ end
1036
+
1037
+ sig(:final) do
1038
+ params(
1039
+ attributes: Element::Attributes
1040
+ )
1041
+ .returns(Element)
1042
+ end
1043
+ def self.source(attributes)
1044
+ Eclair.element(:source, attributes, Element::Void)
1045
+ end
1046
+
1047
+ sig(:final) do
1048
+ params(
1049
+ attributes: Element::Attributes,
1050
+ children: T::Array[Element::ElementChild]
1051
+ )
1052
+ .returns(Element)
1053
+ end
1054
+ def self.span(attributes, children)
1055
+ Eclair.element(:span, attributes, children)
1056
+ end
1057
+
1058
+ sig(:final) do
1059
+ params(
1060
+ attributes: Element::Attributes,
1061
+ children: T::Array[Element::ElementChild]
1062
+ )
1063
+ .returns(Element)
1064
+ end
1065
+ def self.strong(attributes, children)
1066
+ Eclair.element(:strong, attributes, children)
1067
+ end
1068
+
1069
+ sig(:final) do
1070
+ params(
1071
+ attributes: Element::Attributes,
1072
+ children: T::Array[Element::ElementChild]
1073
+ )
1074
+ .returns(Element)
1075
+ end
1076
+ def self.style(attributes, children)
1077
+ Eclair.element(:style, attributes, children)
1078
+ end
1079
+
1080
+ sig(:final) do
1081
+ params(
1082
+ attributes: Element::Attributes,
1083
+ children: T::Array[Element::ElementChild]
1084
+ )
1085
+ .returns(Element)
1086
+ end
1087
+ def self.sub(attributes, children)
1088
+ Eclair.element(:sub, attributes, children)
1089
+ end
1090
+
1091
+ sig(:final) do
1092
+ params(
1093
+ attributes: Element::Attributes,
1094
+ children: T::Array[Element::ElementChild]
1095
+ )
1096
+ .returns(Element)
1097
+ end
1098
+ def self.summary(attributes, children)
1099
+ Eclair.element(:summary, attributes, children)
1100
+ end
1101
+
1102
+ sig(:final) do
1103
+ params(
1104
+ attributes: Element::Attributes,
1105
+ children: T::Array[Element::ElementChild]
1106
+ )
1107
+ .returns(Element)
1108
+ end
1109
+ def self.sup(attributes, children)
1110
+ Eclair.element(:sup, attributes, children)
1111
+ end
1112
+
1113
+ sig(:final) do
1114
+ params(
1115
+ attributes: Element::Attributes,
1116
+ children: T::Array[Element::ElementChild]
1117
+ )
1118
+ .returns(Element)
1119
+ end
1120
+ def self.svg(attributes, children)
1121
+ Eclair.element(:svg, attributes, children)
1122
+ end
1123
+
1124
+ sig(:final) do
1125
+ params(
1126
+ attributes: Element::Attributes,
1127
+ children: T::Array[Element::ElementChild]
1128
+ )
1129
+ .returns(Element)
1130
+ end
1131
+ def self.table(attributes, children)
1132
+ Eclair.element(:table, attributes, children)
1133
+ end
1134
+
1135
+ sig(:final) do
1136
+ params(
1137
+ attributes: Element::Attributes,
1138
+ children: T::Array[Element::ElementChild]
1139
+ )
1140
+ .returns(Element)
1141
+ end
1142
+ def self.tbody(attributes, children)
1143
+ Eclair.element(:tbody, attributes, children)
1144
+ end
1145
+
1146
+ sig(:final) do
1147
+ params(
1148
+ attributes: Element::Attributes,
1149
+ children: T::Array[Element::ElementChild]
1150
+ )
1151
+ .returns(Element)
1152
+ end
1153
+ def self.td(attributes, children)
1154
+ Eclair.element(:td, attributes, children)
1155
+ end
1156
+
1157
+ sig(:final) do
1158
+ params(
1159
+ attributes: Element::Attributes,
1160
+ children: T::Array[Element::ElementChild]
1161
+ )
1162
+ .returns(Element)
1163
+ end
1164
+ def self.template(attributes, children)
1165
+ Eclair.element(:template, attributes, children)
1166
+ end
1167
+
1168
+ sig(:final) do
1169
+ params(
1170
+ attributes: Element::Attributes,
1171
+ children: T::Array[Element::ElementChild]
1172
+ )
1173
+ .returns(Element)
1174
+ end
1175
+ def self.textarea(attributes, children)
1176
+ Eclair.element(:textarea, attributes, children)
1177
+ end
1178
+
1179
+ sig(:final) do
1180
+ params(
1181
+ attributes: Element::Attributes,
1182
+ children: T::Array[Element::ElementChild]
1183
+ )
1184
+ .returns(Element)
1185
+ end
1186
+ def self.tfoot(attributes, children)
1187
+ Eclair.element(:tfoot, attributes, children)
1188
+ end
1189
+
1190
+ sig(:final) do
1191
+ params(
1192
+ attributes: Element::Attributes,
1193
+ children: T::Array[Element::ElementChild]
1194
+ )
1195
+ .returns(Element)
1196
+ end
1197
+ def self.th(attributes, children)
1198
+ Eclair.element(:th, attributes, children)
1199
+ end
1200
+
1201
+ sig(:final) do
1202
+ params(
1203
+ attributes: Element::Attributes,
1204
+ children: T::Array[Element::ElementChild]
1205
+ )
1206
+ .returns(Element)
1207
+ end
1208
+ def self.thead(attributes, children)
1209
+ Eclair.element(:thead, attributes, children)
1210
+ end
1211
+
1212
+ sig(:final) do
1213
+ params(
1214
+ attributes: Element::Attributes,
1215
+ children: T::Array[Element::ElementChild]
1216
+ )
1217
+ .returns(Element)
1218
+ end
1219
+ def self.time(attributes, children)
1220
+ Eclair.element(:time, attributes, children)
1221
+ end
1222
+
1223
+ sig(:final) do
1224
+ params(
1225
+ attributes: Element::Attributes,
1226
+ children: T::Array[Element::ElementChild]
1227
+ )
1228
+ .returns(Element)
1229
+ end
1230
+ def self.title(attributes, children)
1231
+ Eclair.element(:title, attributes, children)
1232
+ end
1233
+
1234
+ sig(:final) do
1235
+ params(
1236
+ attributes: Element::Attributes,
1237
+ children: T::Array[Element::ElementChild]
1238
+ )
1239
+ .returns(Element)
1240
+ end
1241
+ def self.tr(attributes, children)
1242
+ Eclair.element(:tr, attributes, children)
1243
+ end
1244
+
1245
+ sig(:final) do
1246
+ params(
1247
+ attributes: Element::Attributes
1248
+ )
1249
+ .returns(Element)
1250
+ end
1251
+ def self.track(attributes)
1252
+ Eclair.element(:track, attributes, Element::Void)
1253
+ end
1254
+
1255
+ sig(:final) do
1256
+ params(
1257
+ attributes: Element::Attributes,
1258
+ children: T::Array[Element::ElementChild]
1259
+ )
1260
+ .returns(Element)
1261
+ end
1262
+ def self.u(attributes, children)
1263
+ Eclair.element(:u, attributes, children)
1264
+ end
1265
+
1266
+ sig(:final) do
1267
+ params(
1268
+ attributes: Element::Attributes,
1269
+ children: T::Array[Element::ElementChild]
1270
+ )
1271
+ .returns(Element)
1272
+ end
1273
+ def self.ul(attributes, children)
1274
+ Eclair.element(:ul, attributes, children)
1275
+ end
1276
+
1277
+ sig(:final) do
1278
+ params(
1279
+ attributes: Element::Attributes,
1280
+ children: T::Array[Element::ElementChild]
1281
+ )
1282
+ .returns(Element)
1283
+ end
1284
+ def self.var(attributes, children)
1285
+ Eclair.element(:var, attributes, children)
1286
+ end
1287
+
1288
+ sig(:final) do
1289
+ params(
1290
+ attributes: Element::Attributes,
1291
+ children: T::Array[Element::ElementChild]
1292
+ )
1293
+ .returns(Element)
1294
+ end
1295
+ def self.video(attributes, children)
1296
+ Eclair.element(:video, attributes, children)
1297
+ end
1298
+
1299
+ sig(:final) do
1300
+ params(
1301
+ attributes: Element::Attributes
1302
+ )
1303
+ .returns(Element)
1304
+ end
1305
+ def self.wbr(attributes)
1306
+ Eclair.element(:wbr, attributes, Element::Void)
1307
+ end
1308
+
1309
+ # CODE-GEN-END
1310
+ end
1311
+ end