gpui-rsx 0.3.2

A JSX-like macro for GPUI - simplify UI development with HTML-like syntax
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
#![allow(dead_code)]

//! 共享 Mock GPUI 类型
//!
//! 所有测试文件共用的 MockElement 和辅助函数,
//! 避免在 macro_tests.rs 和 coverage_tests.rs 中重复定义。

use std::cell::RefCell;

// 捕获最近一次自动生成的 ID(以 `__rsx_` 开头)。
// 供 auto-ID 格式验证测试使用。
thread_local! {
    pub static LAST_AUTO_ID: RefCell<Option<String>> = const { RefCell::new(None) };
}

/// 返回最近捕获的 auto-ID,并清空缓存。
pub fn take_last_auto_id() -> Option<String> {
    LAST_AUTO_ID.with(|c| c.borrow_mut().take())
}

/// Mock Element,模拟 GPUI 的 Div / Stateful<Div>。
/// 所有 builder 方法返回 Self 以支持方法链。
#[derive(Debug)]
pub struct MockElement;

/// Styled trait,用于动态 class 的运行时解析
pub trait Styled: Sized {
    // --- flex ---
    fn flex(self) -> Self;
    fn flex_col(self) -> Self;
    fn flex_col_reverse(self) -> Self;
    fn flex_row(self) -> Self;
    fn flex_row_reverse(self) -> Self;
    fn flex_1(self) -> Self;
    fn flex_auto(self) -> Self;
    fn flex_initial(self) -> Self;
    fn flex_none(self) -> Self;
    fn flex_wrap(self) -> Self;
    fn flex_wrap_reverse(self) -> Self;
    fn flex_nowrap(self) -> Self;
    fn flex_shrink_0(self) -> Self;
    // --- layout ---
    fn block(self) -> Self;
    fn grid(self) -> Self;
    fn hidden(self) -> Self;
    // --- alignment ---
    fn items_center(self) -> Self;
    fn items_start(self) -> Self;
    fn items_end(self) -> Self;
    fn items_baseline(self) -> Self;
    fn items_stretch(self) -> Self;
    fn justify_center(self) -> Self;
    fn justify_between(self) -> Self;
    fn justify_start(self) -> Self;
    fn justify_end(self) -> Self;
    fn justify_around(self) -> Self;
    fn justify_evenly(self) -> Self;
    fn content_center(self) -> Self;
    fn content_start(self) -> Self;
    fn content_end(self) -> Self;
    fn content_between(self) -> Self;
    fn content_around(self) -> Self;
    fn content_evenly(self) -> Self;
    fn content_stretch(self) -> Self;
    // --- spacing ---
    fn gap<T>(self, v: T) -> Self;
    fn gap_x<T>(self, v: T) -> Self;
    fn gap_y<T>(self, v: T) -> Self;
    fn p<T>(self, v: T) -> Self;
    fn px<T>(self, v: T) -> Self;
    fn py<T>(self, v: T) -> Self;
    fn pt<T>(self, v: T) -> Self;
    fn pb<T>(self, v: T) -> Self;
    fn pl<T>(self, v: T) -> Self;
    fn pr<T>(self, v: T) -> Self;
    fn m<T>(self, v: T) -> Self;
    fn mx<T>(self, v: T) -> Self;
    fn my<T>(self, v: T) -> Self;
    fn mt<T>(self, v: T) -> Self;
    fn mb<T>(self, v: T) -> Self;
    fn ml<T>(self, v: T) -> Self;
    fn mr<T>(self, v: T) -> Self;
    // --- sizing ---
    fn w_full(self) -> Self;
    fn h_full(self) -> Self;
    fn size_full(self) -> Self;
    fn size<T>(self, v: T) -> Self;
    fn w<T>(self, v: T) -> Self;
    fn h<T>(self, v: T) -> Self;
    fn min_w<T>(self, v: T) -> Self;
    fn max_w<T>(self, v: T) -> Self;
    fn min_h<T>(self, v: T) -> Self;
    fn max_h<T>(self, v: T) -> Self;
    // --- text size ---
    fn text_xs(self) -> Self;
    fn text_sm(self) -> Self;
    fn text_base(self) -> Self;
    fn text_lg(self) -> Self;
    fn text_xl(self) -> Self;
    fn text_2xl(self) -> Self;
    fn text_3xl(self) -> Self;
    // --- text alignment ---
    fn text_left(self) -> Self;
    fn text_center(self) -> Self;
    fn text_right(self) -> Self;
    // --- text decoration ---
    fn truncate(self) -> Self;
    fn text_ellipsis(self) -> Self;
    fn italic(self) -> Self;
    fn not_italic(self) -> Self;
    fn underline(self) -> Self;
    fn line_through(self) -> Self;
    // --- font ---
    fn font_bold(self) -> Self;
    // --- border ---
    fn border_1(self) -> Self;
    fn border_2(self) -> Self;
    fn border_dashed(self) -> Self;
    fn border_t(self) -> Self;
    fn border_b(self) -> Self;
    fn border_l(self) -> Self;
    fn border_r(self) -> Self;
    fn rounded_sm(self) -> Self;
    fn rounded_md(self) -> Self;
    fn rounded_lg(self) -> Self;
    fn rounded_full(self) -> Self;
    // --- misc ---
    fn cursor_pointer(self) -> Self;
    fn overflow_hidden(self) -> Self;
    fn overflow_scroll(self) -> Self;
    fn absolute(self) -> Self;
    fn relative(self) -> Self;
    // --- color / opacity / z ---
    fn bg<T>(self, v: T) -> Self;
    fn text_color<T>(self, v: T) -> Self;
    fn border_color<T>(self, v: T) -> Self;
    fn opacity<T>(self, v: T) -> Self;
    fn z_index<T>(self, v: T) -> Self;
    // --- grid ---
    fn grid_cols(self, v: u16) -> Self;
    fn grid_rows(self, v: u16) -> Self;
    fn col_span(self, v: u16) -> Self;
    fn col_start(self, v: i16) -> Self;
    fn col_end(self, v: i16) -> Self;
    fn row_span(self, v: u16) -> Self;
    fn row_start(self, v: i16) -> Self;
    fn row_end(self, v: i16) -> Self;
    // --- cursor ---
    fn cursor_default(self) -> Self;
    fn cursor_text(self) -> Self;
    // --- shadow ---
    fn shadow_sm(self) -> Self;
    fn shadow_md(self) -> Self;
    fn shadow_lg(self) -> Self;
    // --- rounded extra ---
    fn rounded_none(self) -> Self;
    fn rounded_xl(self) -> Self;
    // --- overflow ---
    fn overflow_visible(self) -> Self;
}

// 模拟 GPUI 构造函数
#[allow(dead_code)]
pub fn div() -> MockElement {
    MockElement
}
#[allow(dead_code)]
pub fn svg() -> MockElement {
    MockElement
}
#[allow(dead_code)]
pub fn img() -> MockElement {
    MockElement
}
#[allow(dead_code)]
pub fn canvas() -> MockElement {
    MockElement
}
pub fn rgb(_hex: u32) -> u32 {
    0
}
pub fn px(_val: f32) -> f32 {
    0.0
}

// 模拟自定义组件构造函数
#[allow(non_snake_case, dead_code)]
pub fn MyComponent() -> MockElement {
    MockElement
}
#[allow(non_snake_case, dead_code)]
pub fn CustomWidget() -> MockElement {
    MockElement
}

#[allow(dead_code)]
impl MockElement {
    // --- 身份 ---
    /// 接受 &str,捕获 auto-ID 供测试验证。
    /// 新格式:"{file}::__rsx_{tag}_L{line}C{col}"(含文件路径前缀)
    /// 所有测试中的 id 属性均为字符串类型,故 &str 签名覆盖全部情况。
    pub fn id(self, id: &str) -> Self {
        // 新格式含文件路径前缀,用 contains 兼容两种格式
        if id.contains("__rsx_") {
            LAST_AUTO_ID.with(|c| *c.borrow_mut() = Some(id.to_string()));
        }
        self
    }

    // --- flex(不在 Styled 中)---
    pub fn flex_grow<T>(self, _: T) -> Self {
        self
    }
    pub fn flex_shrink<T>(self, _: T) -> Self {
        self
    }

    // --- 间距固定值(不在 Styled 中)---
    pub fn gap_2(self) -> Self {
        self
    }
    pub fn gap_3(self) -> Self {
        self
    }
    pub fn gap_4(self) -> Self {
        self
    }
    pub fn gap_6(self) -> Self {
        self
    }
    pub fn p_2(self) -> Self {
        self
    }
    pub fn p_3(self) -> Self {
        self
    }
    pub fn p_4(self) -> Self {
        self
    }
    pub fn px_2(self) -> Self {
        self
    }
    pub fn px_3(self) -> Self {
        self
    }
    pub fn px_4(self) -> Self {
        self
    }
    pub fn px_6(self) -> Self {
        self
    }
    pub fn py_1(self) -> Self {
        self
    }
    pub fn py_2(self) -> Self {
        self
    }

    // --- 边框(不在 Styled 中)---
    pub fn rounded<T>(self, _: T) -> Self {
        self
    }
    pub fn border_4(self) -> Self {
        self
    }

    // --- 定位(不在 Styled 中)---
    pub fn overflow<T>(self, _: T) -> Self {
        self
    }
    pub fn overflow_x<T>(self, _: T) -> Self {
        self
    }
    pub fn overflow_y<T>(self, _: T) -> Self {
        self
    }
    pub fn top<T>(self, _: T) -> Self {
        self
    }
    pub fn left<T>(self, _: T) -> Self {
        self
    }
    pub fn right<T>(self, _: T) -> Self {
        self
    }
    pub fn bottom<T>(self, _: T) -> Self {
        self
    }

    // --- 可见性(不在 Styled 中)---
    pub fn visible<T>(self, _: T) -> Self {
        self
    }

    // --- 事件 ---
    pub fn on_click<T>(self, _: T) -> Self {
        self
    }
    pub fn on_aux_click<T>(self, _: T) -> Self {
        self
    }
    pub fn on_mouse_down<T>(self, _: T) -> Self {
        self
    }
    pub fn on_mouse_up<T>(self, _: T) -> Self {
        self
    }
    pub fn on_mouse_move<T>(self, _: T) -> Self {
        self
    }
    pub fn on_mouse_down_out<T>(self, _: T) -> Self {
        self
    }
    pub fn on_mouse_up_out<T>(self, _: T) -> Self {
        self
    }
    pub fn on_any_mouse_down<T>(self, _: T) -> Self {
        self
    }
    pub fn on_any_mouse_up<T>(self, _: T) -> Self {
        self
    }
    pub fn on_mouse_pressure<T>(self, _: T) -> Self {
        self
    }
    pub fn on_key_down<T>(self, _: T) -> Self {
        self
    }
    pub fn on_key_up<T>(self, _: T) -> Self {
        self
    }
    pub fn on_modifiers_changed<T>(self, _: T) -> Self {
        self
    }
    pub fn on_focus<T>(self, _: T) -> Self {
        self
    }
    pub fn on_blur<T>(self, _: T) -> Self {
        self
    }
    pub fn on_hover<T>(self, _: T) -> Self {
        self
    }
    pub fn on_scroll_wheel<T>(self, _: T) -> Self {
        self
    }
    pub fn on_drag<T>(self, _: T) -> Self {
        self
    }
    pub fn on_drag_move<T>(self, _: T) -> Self {
        self
    }
    pub fn on_drop<T>(self, _: T) -> Self {
        self
    }
    pub fn on_action<T>(self, _: T) -> Self {
        self
    }
    // --- 捕获阶段事件 ---
    pub fn capture_any_mouse_down<T>(self, _: T) -> Self {
        self
    }
    pub fn capture_any_mouse_up<T>(self, _: T) -> Self {
        self
    }
    pub fn capture_mouse_pressure<T>(self, _: T) -> Self {
        self
    }
    pub fn capture_key_down<T>(self, _: T) -> Self {
        self
    }
    pub fn capture_key_up<T>(self, _: T) -> Self {
        self
    }
    pub fn capture_action<T>(self, _: T) -> Self {
        self
    }

    // --- 状态样式 ---
    pub fn hover<F: FnOnce(Self) -> Self>(self, _f: F) -> Self {
        self
    }
    pub fn active<F: FnOnce(Self) -> Self>(self, _f: F) -> Self {
        self
    }
    pub fn focus<F: FnOnce(Self) -> Self>(self, _f: F) -> Self {
        self
    }
    pub fn tooltip<T>(self, _: T) -> Self {
        self
    }
    pub fn group<T>(self, _: T) -> Self {
        self
    }
    pub fn track_focus(self) -> Self {
        self
    }

    // --- 额外属性映射 ---
    pub fn font_size<T>(self, _: T) -> Self {
        self
    }
    pub fn line_height<T>(self, _: T) -> Self {
        self
    }
    pub fn font_weight<T>(self, _: T) -> Self {
        self
    }
    pub fn text_align<T>(self, _: T) -> Self {
        self
    }
    pub fn border_radius<T>(self, _: T) -> Self {
        self
    }
    pub fn shadow<T>(self, _: T) -> Self {
        self
    }

    // --- 子节点 ---
    pub fn child<T>(self, _: T) -> Self {
        self
    }
    pub fn children<I: IntoIterator>(self, _: I) -> Self {
        self
    }

    // --- 条件方法 ---
    pub fn when<F>(self, _condition: bool, _f: F) -> Self
    where
        F: FnOnce(Self) -> Self,
    {
        self
    }

    pub fn when_some<T, F>(self, _option: Option<T>, _f: F) -> Self
    where
        F: FnOnce(Self, T) -> Self,
    {
        self
    }

    // --- 转换方法 ---
    pub fn map<F>(self, _f: F) -> Self
    where
        F: FnOnce(Self) -> Self,
    {
        self
    }

    // --- 新增属性映射(不在 Styled 中)---
    pub fn basis<T>(self, _: T) -> Self {
        self
    }
    pub fn order<T>(self, _: T) -> Self {
        self
    }
    pub fn inset<T>(self, _: T) -> Self {
        self
    }
    pub fn text_decoration<T>(self, _: T) -> Self {
        self
    }
    pub fn rounded_t<T>(self, _: T) -> Self {
        self
    }
    pub fn rounded_b<T>(self, _: T) -> Self {
        self
    }
    pub fn rounded_tl<T>(self, _: T) -> Self {
        self
    }
    pub fn rounded_tr<T>(self, _: T) -> Self {
        self
    }
    pub fn rounded_bl<T>(self, _: T) -> Self {
        self
    }
    pub fn rounded_br<T>(self, _: T) -> Self {
        self
    }

    // --- 杂项 ---
    pub fn placeholder<T>(self, _: T) -> Self {
        self
    }
}

// Styled trait 实现 — 供动态 class 运行时 match 表使用
impl Styled for MockElement {
    // --- flex ---
    fn flex(self) -> Self {
        self
    }
    fn flex_col(self) -> Self {
        self
    }
    fn flex_col_reverse(self) -> Self {
        self
    }
    fn flex_row(self) -> Self {
        self
    }
    fn flex_row_reverse(self) -> Self {
        self
    }
    fn flex_1(self) -> Self {
        self
    }
    fn flex_auto(self) -> Self {
        self
    }
    fn flex_initial(self) -> Self {
        self
    }
    fn flex_none(self) -> Self {
        self
    }
    fn flex_wrap(self) -> Self {
        self
    }
    fn flex_wrap_reverse(self) -> Self {
        self
    }
    fn flex_nowrap(self) -> Self {
        self
    }
    fn flex_shrink_0(self) -> Self {
        self
    }
    // --- layout ---
    fn block(self) -> Self {
        self
    }
    fn grid(self) -> Self {
        self
    }
    fn hidden(self) -> Self {
        self
    }
    // --- alignment ---
    fn items_center(self) -> Self {
        self
    }
    fn items_start(self) -> Self {
        self
    }
    fn items_end(self) -> Self {
        self
    }
    fn items_baseline(self) -> Self {
        self
    }
    fn items_stretch(self) -> Self {
        self
    }
    fn justify_center(self) -> Self {
        self
    }
    fn justify_between(self) -> Self {
        self
    }
    fn justify_start(self) -> Self {
        self
    }
    fn justify_end(self) -> Self {
        self
    }
    fn justify_around(self) -> Self {
        self
    }
    fn justify_evenly(self) -> Self {
        self
    }
    fn content_center(self) -> Self {
        self
    }
    fn content_start(self) -> Self {
        self
    }
    fn content_end(self) -> Self {
        self
    }
    fn content_between(self) -> Self {
        self
    }
    fn content_around(self) -> Self {
        self
    }
    fn content_evenly(self) -> Self {
        self
    }
    fn content_stretch(self) -> Self {
        self
    }
    // --- spacing ---
    fn gap<T>(self, _: T) -> Self {
        self
    }
    fn gap_x<T>(self, _: T) -> Self {
        self
    }
    fn gap_y<T>(self, _: T) -> Self {
        self
    }
    fn p<T>(self, _: T) -> Self {
        self
    }
    fn px<T>(self, _: T) -> Self {
        self
    }
    fn py<T>(self, _: T) -> Self {
        self
    }
    fn pt<T>(self, _: T) -> Self {
        self
    }
    fn pb<T>(self, _: T) -> Self {
        self
    }
    fn pl<T>(self, _: T) -> Self {
        self
    }
    fn pr<T>(self, _: T) -> Self {
        self
    }
    fn m<T>(self, _: T) -> Self {
        self
    }
    fn mx<T>(self, _: T) -> Self {
        self
    }
    fn my<T>(self, _: T) -> Self {
        self
    }
    fn mt<T>(self, _: T) -> Self {
        self
    }
    fn mb<T>(self, _: T) -> Self {
        self
    }
    fn ml<T>(self, _: T) -> Self {
        self
    }
    fn mr<T>(self, _: T) -> Self {
        self
    }
    // --- sizing ---
    fn w_full(self) -> Self {
        self
    }
    fn h_full(self) -> Self {
        self
    }
    fn size_full(self) -> Self {
        self
    }
    fn size<T>(self, _: T) -> Self {
        self
    }
    fn w<T>(self, _: T) -> Self {
        self
    }
    fn h<T>(self, _: T) -> Self {
        self
    }
    fn min_w<T>(self, _: T) -> Self {
        self
    }
    fn max_w<T>(self, _: T) -> Self {
        self
    }
    fn min_h<T>(self, _: T) -> Self {
        self
    }
    fn max_h<T>(self, _: T) -> Self {
        self
    }
    // --- text size ---
    fn text_xs(self) -> Self {
        self
    }
    fn text_sm(self) -> Self {
        self
    }
    fn text_base(self) -> Self {
        self
    }
    fn text_lg(self) -> Self {
        self
    }
    fn text_xl(self) -> Self {
        self
    }
    fn text_2xl(self) -> Self {
        self
    }
    fn text_3xl(self) -> Self {
        self
    }
    // --- text alignment ---
    fn text_left(self) -> Self {
        self
    }
    fn text_center(self) -> Self {
        self
    }
    fn text_right(self) -> Self {
        self
    }
    // --- text decoration ---
    fn truncate(self) -> Self {
        self
    }
    fn text_ellipsis(self) -> Self {
        self
    }
    fn italic(self) -> Self {
        self
    }
    fn not_italic(self) -> Self {
        self
    }
    fn underline(self) -> Self {
        self
    }
    fn line_through(self) -> Self {
        self
    }
    // --- font ---
    fn font_bold(self) -> Self {
        self
    }
    // --- border ---
    fn border_1(self) -> Self {
        self
    }
    fn border_2(self) -> Self {
        self
    }
    fn border_dashed(self) -> Self {
        self
    }
    fn border_t(self) -> Self {
        self
    }
    fn border_b(self) -> Self {
        self
    }
    fn border_l(self) -> Self {
        self
    }
    fn border_r(self) -> Self {
        self
    }
    fn rounded_sm(self) -> Self {
        self
    }
    fn rounded_md(self) -> Self {
        self
    }
    fn rounded_lg(self) -> Self {
        self
    }
    fn rounded_full(self) -> Self {
        self
    }
    // --- misc ---
    fn cursor_pointer(self) -> Self {
        self
    }
    fn overflow_hidden(self) -> Self {
        self
    }
    fn overflow_scroll(self) -> Self {
        self
    }
    fn absolute(self) -> Self {
        self
    }
    fn relative(self) -> Self {
        self
    }
    // --- color / opacity / z ---
    fn bg<T>(self, _: T) -> Self {
        self
    }
    fn text_color<T>(self, _: T) -> Self {
        self
    }
    fn border_color<T>(self, _: T) -> Self {
        self
    }
    fn opacity<T>(self, _: T) -> Self {
        self
    }
    fn z_index<T>(self, _: T) -> Self {
        self
    }
    // --- grid ---
    fn grid_cols(self, _: u16) -> Self {
        self
    }
    fn grid_rows(self, _: u16) -> Self {
        self
    }
    fn col_span(self, _: u16) -> Self {
        self
    }
    fn col_start(self, _: i16) -> Self {
        self
    }
    fn col_end(self, _: i16) -> Self {
        self
    }
    fn row_span(self, _: u16) -> Self {
        self
    }
    fn row_start(self, _: i16) -> Self {
        self
    }
    fn row_end(self, _: i16) -> Self {
        self
    }
    // --- cursor ---
    fn cursor_default(self) -> Self {
        self
    }
    fn cursor_text(self) -> Self {
        self
    }
    // --- shadow ---
    fn shadow_sm(self) -> Self {
        self
    }
    fn shadow_md(self) -> Self {
        self
    }
    fn shadow_lg(self) -> Self {
        self
    }
    // --- rounded extra ---
    fn rounded_none(self) -> Self {
        self
    }
    fn rounded_xl(self) -> Self {
        self
    }
    // --- overflow ---
    fn overflow_visible(self) -> Self {
        self
    }
}