@dialpad/dialtone-css 8.71.0-next.1 → 8.71.0-next.2

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,160 @@
1
+ <template>
2
+ <!--
3
+ TEST FILE FOR FLEX-TO-STACK MIGRATION EDGE CASES
4
+ This file tests all edge cases identified in Phase 11
5
+ -->
6
+
7
+ <!-- TEST 1: d-fl-center - Should convert to dt-stack with align="center" justify="center" direction="row" -->
8
+ <div class="d-fl-center">
9
+ <span>Centered content</span>
10
+ </div>
11
+
12
+ <!-- TEST 2: d-fl-center with additional utilities - Should convert and retain other classes -->
13
+ <div class="d-fl-center d-p16 d-ba d-bc-primary">
14
+ <span>Centered with padding and border</span>
15
+ </div>
16
+
17
+ <!-- TEST 3: d-d-grid - Should be SKIPPED (grid container, not flex) -->
18
+ <div class="d-d-grid d-g-cols2 d-g16">
19
+ <div>Grid item 1</div>
20
+ <div>Grid item 2</div>
21
+ </div>
22
+
23
+ <!-- TEST 4: d-d-inline-grid - Should be SKIPPED (grid container, not flex) -->
24
+ <div class="d-d-inline-grid d-g-cols3">
25
+ <span>A</span>
26
+ <span>B</span>
27
+ <span>C</span>
28
+ </div>
29
+
30
+ <!-- TEST 5: d-d-inline-flex - Should be SKIPPED (DtStack is block-level only) -->
31
+ <div class="d-d-inline-flex d-ai-center d-g8">
32
+ <span>Inline flex item</span>
33
+ </div>
34
+
35
+ <!-- TEST 6: d-d-contents - Should be SKIPPED (layout tree manipulation) -->
36
+ <div class="d-d-flex d-d-contents d-ai-center">
37
+ <span>Contents display</span>
38
+ </div>
39
+
40
+ <!-- TEST 7: d-fl-col4 - Should be SKIPPED (deprecated flex column system) -->
41
+ <div class="d-d-flex d-fl-col4">
42
+ <div>Column 1</div>
43
+ <div>Column 2</div>
44
+ <div>Column 3</div>
45
+ <div>Column 4</div>
46
+ </div>
47
+
48
+ <!-- TEST 8: d-stack8 - Should be SKIPPED (auto-spacing utility, margin-based) -->
49
+ <div class="d-d-flex d-stack8">
50
+ <div>Item 1</div>
51
+ <div>Item 2</div>
52
+ <div>Item 3</div>
53
+ </div>
54
+
55
+ <!-- TEST 9: d-flow8 - Should be SKIPPED (auto-spacing utility, margin-based) -->
56
+ <div class="d-d-flex d-flow8">
57
+ <span>Item 1</span>
58
+ <span>Item 2</span>
59
+ <span>Item 3</span>
60
+ </div>
61
+
62
+ <!-- TEST 10: d-flg8 - Should be RETAINED as class (deprecated flex gap) -->
63
+ <div class="d-d-flex d-flg8 d-ai-center">
64
+ <span>Item 1</span>
65
+ <span>Item 2</span>
66
+ </div>
67
+
68
+ <!-- TEST 11: d-ji-center - Should be RETAINED as class (justify-items, grid/flex hybrid) -->
69
+ <div class="d-d-flex d-ji-center">
70
+ <div>Item with justify-items</div>
71
+ </div>
72
+
73
+ <!-- TEST 12: d-js-center - Should be RETAINED as class (justify-self, grid/flex hybrid) -->
74
+ <div class="d-d-flex d-js-center d-ai-center">
75
+ <div>Item with justify-self</div>
76
+ </div>
77
+
78
+ <!-- TEST 13: d-plc-center - Should be RETAINED as class (place-content, grid shorthand) -->
79
+ <div class="d-d-flex d-plc-center">
80
+ <div>Item with place-content</div>
81
+ </div>
82
+
83
+ <!-- TEST 14: d-pli-center - Should be RETAINED as class (place-items, grid shorthand) -->
84
+ <div class="d-d-flex d-pli-center">
85
+ <div>Item with place-items</div>
86
+ </div>
87
+
88
+ <!-- TEST 15: d-pls-center - Should be RETAINED as class (place-self, grid shorthand) -->
89
+ <div class="d-d-flex d-pls-center d-ai-center">
90
+ <div>Item with place-self</div>
91
+ </div>
92
+
93
+ <!-- TEST 16: Direction default (no direction) - Should add direction="row" -->
94
+ <div class="d-d-flex d-ai-center d-g8">
95
+ <span>No explicit direction</span>
96
+ </div>
97
+
98
+ <!-- TEST 17: Explicit d-fd-row - Should convert to direction="row" -->
99
+ <div class="d-d-flex d-fd-row d-ai-center d-g8">
100
+ <span>Explicit row</span>
101
+ </div>
102
+
103
+ <!-- TEST 18: Explicit d-fd-column - Should OMIT direction prop (DtStack default) -->
104
+ <div class="d-d-flex d-fd-column d-ai-center d-g8">
105
+ <span>Explicit column</span>
106
+ </div>
107
+
108
+ <!-- TEST 19: d-fd-row-reverse - Should convert to direction="row-reverse" -->
109
+ <div class="d-d-flex d-fd-row-reverse d-jc-end">
110
+ <span>Row reverse</span>
111
+ </div>
112
+
113
+ <!-- TEST 20: d-fd-column-reverse - Should convert to direction="column-reverse" -->
114
+ <div class="d-d-flex d-fd-column-reverse d-ai-end">
115
+ <span>Column reverse</span>
116
+ </div>
117
+
118
+ <!-- TEST 21: Multiple direction utilities - Should retain all as classes, add direction="row" -->
119
+ <div class="d-d-flex d-fd-row d-fd-column d-ai-center">
120
+ <span>Multiple directions</span>
121
+ </div>
122
+
123
+ <!-- TEST 22: Complex case - d-fl-center with additional flex utilities -->
124
+ <div class="d-fl-center d-fw-wrap d-g16 d-p24">
125
+ <span>Item 1</span>
126
+ <span>Item 2</span>
127
+ <span>Item 3</span>
128
+ </div>
129
+
130
+ <!-- TEST 23: Regular flex with all supported props -->
131
+ <div class="d-d-flex d-fd-row d-ai-center d-jc-between d-g16">
132
+ <span>Full props</span>
133
+ <span>Example</span>
134
+ </div>
135
+
136
+ <!-- TEST 24: Flex with retained classes only -->
137
+ <div class="d-d-flex d-fw-wrap d-as-start d-order2">
138
+ <div>Retained utilities</div>
139
+ </div>
140
+
141
+ <!-- TEST 25: Combination - retained + converted utilities -->
142
+ <div class="d-d-flex d-ai-center d-g8 d-p16 d-fw-wrap d-fl-grow1">
143
+ <span>Mixed utilities</span>
144
+ </div>
145
+
146
+ <!-- TEST 26: Non-div element with as prop -->
147
+ <section class="d-d-flex d-fd-column d-g24">
148
+ <h2>Section as flex container</h2>
149
+ <p>Should use as="section"</p>
150
+ </section>
151
+
152
+ <!-- TEST 27: Multiple edge cases combined -->
153
+ <div class="d-d-flex d-flg8 d-ji-center d-ai-center d-p16">
154
+ <span>Multiple edge cases</span>
155
+ </div>
156
+ </template>
157
+
158
+ <script setup>
159
+ // Test file for edge case validation
160
+ </script>