@colimuca123/nativewind 4.2.2-rc.1
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.
- package/LICENSE +21 -0
- package/README.OpenSource +11 -0
- package/babel.js +1 -0
- package/dist/doctor.d.ts +1 -0
- package/dist/doctor.js +21 -0
- package/dist/doctor.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/metro/common.d.ts +4 -0
- package/dist/metro/common.js +8 -0
- package/dist/metro/common.js.map +1 -0
- package/dist/metro/index.d.ts +15 -0
- package/dist/metro/index.js +47 -0
- package/dist/metro/index.js.map +1 -0
- package/dist/metro/picocolors.d.ts +26 -0
- package/dist/metro/picocolors.js +53 -0
- package/dist/metro/picocolors.js.map +1 -0
- package/dist/metro/tailwind/index.d.ts +5 -0
- package/dist/metro/tailwind/index.js +25 -0
- package/dist/metro/tailwind/index.js.map +1 -0
- package/dist/metro/tailwind/types.d.ts +8 -0
- package/dist/metro/tailwind/types.js +3 -0
- package/dist/metro/tailwind/types.js.map +1 -0
- package/dist/metro/tailwind/v3/child.d.ts +0 -0
- package/dist/metro/tailwind/v3/child.js +45 -0
- package/dist/metro/tailwind/v3/child.js.map +1 -0
- package/dist/metro/tailwind/v3/index.d.ts +6 -0
- package/dist/metro/tailwind/v3/index.js +81 -0
- package/dist/metro/tailwind/v3/index.js.map +1 -0
- package/dist/metro/typescript.d.ts +1 -0
- package/dist/metro/typescript.js +46 -0
- package/dist/metro/typescript.js.map +1 -0
- package/dist/stylesheet.d.ts +5 -0
- package/dist/stylesheet.js +25 -0
- package/dist/stylesheet.js.map +1 -0
- package/dist/tailwind/color.d.ts +4 -0
- package/dist/tailwind/color.js +25 -0
- package/dist/tailwind/color.js.map +1 -0
- package/dist/tailwind/common.d.ts +2 -0
- package/dist/tailwind/common.js +24 -0
- package/dist/tailwind/common.js.map +1 -0
- package/dist/tailwind/dark-mode.d.ts +4 -0
- package/dist/tailwind/dark-mode.js +48 -0
- package/dist/tailwind/dark-mode.js.map +1 -0
- package/dist/tailwind/index.d.ts +0 -0
- package/dist/tailwind/index.js +13 -0
- package/dist/tailwind/index.js.map +1 -0
- package/dist/tailwind/native.d.ts +3 -0
- package/dist/tailwind/native.js +265 -0
- package/dist/tailwind/native.js.map +1 -0
- package/dist/tailwind/prop-modifier.d.ts +4 -0
- package/dist/tailwind/prop-modifier.js +13 -0
- package/dist/tailwind/prop-modifier.js.map +1 -0
- package/dist/tailwind/safe-area.d.ts +4 -0
- package/dist/tailwind/safe-area.js +216 -0
- package/dist/tailwind/safe-area.js.map +1 -0
- package/dist/tailwind/shadows.d.ts +4 -0
- package/dist/tailwind/shadows.js +79 -0
- package/dist/tailwind/shadows.js.map +1 -0
- package/dist/tailwind/switch.d.ts +8 -0
- package/dist/tailwind/switch.js +51 -0
- package/dist/tailwind/switch.js.map +1 -0
- package/dist/tailwind/translate.d.ts +2 -0
- package/dist/tailwind/translate.js +40 -0
- package/dist/tailwind/translate.js.map +1 -0
- package/dist/tailwind/verify.d.ts +4 -0
- package/dist/tailwind/verify.js +22 -0
- package/dist/tailwind/verify.js.map +1 -0
- package/dist/tailwind/web.d.ts +3 -0
- package/dist/tailwind/web.js +40 -0
- package/dist/tailwind/web.js.map +1 -0
- package/dist/test.d.ts +373 -0
- package/dist/test.js +161 -0
- package/dist/test.js.map +1 -0
- package/dist/theme.d.ts +1 -0
- package/dist/theme.js +9 -0
- package/dist/theme.js.map +1 -0
- package/expo-snack.js +71 -0
- package/jsx-dev-runtime/index.d.ts +1 -0
- package/jsx-dev-runtime/index.js +1 -0
- package/jsx-runtime/index.d.ts +1 -0
- package/jsx-runtime/index.js +1 -0
- package/metro/package.json +1 -0
- package/package.json +75 -0
- package/preset/package.json +3 -0
- package/src/__tests__/README.md +3 -0
- package/src/__tests__/accessibility.tsx +41 -0
- package/src/__tests__/backgrounds.tsx +239 -0
- package/src/__tests__/borders.tsx +355 -0
- package/src/__tests__/container-queries.tsx +59 -0
- package/src/__tests__/custom-theme.tsx +45 -0
- package/src/__tests__/custom.tsx +17 -0
- package/src/__tests__/dark-mode.ios.tsx +251 -0
- package/src/__tests__/doctor.tsx +13 -0
- package/src/__tests__/effects.ios.tsx +230 -0
- package/src/__tests__/elevation.tsx +22 -0
- package/src/__tests__/filters.tsx +201 -0
- package/src/__tests__/flexbox-grid.tsx +670 -0
- package/src/__tests__/groups.tsx +134 -0
- package/src/__tests__/interactivity.tsx +547 -0
- package/src/__tests__/layout.tsx +854 -0
- package/src/__tests__/modifier-{}.tsx +71 -0
- package/src/__tests__/platform-modifiers-test.ios.tsx +34 -0
- package/src/__tests__/preset.tsx +9 -0
- package/src/__tests__/reusing-styles.tsx +44 -0
- package/src/__tests__/safe-area.test.ios.tsx +427 -0
- package/src/__tests__/sizing.tsx +241 -0
- package/src/__tests__/spacing.tsx +106 -0
- package/src/__tests__/states.tsx +145 -0
- package/src/__tests__/svg.tsx +25 -0
- package/src/__tests__/tables.tsx +103 -0
- package/src/__tests__/theme.tsx +245 -0
- package/src/__tests__/transforms.tsx +509 -0
- package/src/__tests__/transition-animations.tsx +254 -0
- package/src/__tests__/typography.tsx +657 -0
- package/src/__tests__/unofficial-plugins.test.ios.tsx +171 -0
- package/src/doctor.ts +28 -0
- package/src/index.tsx +16 -0
- package/src/metro/common.ts +11 -0
- package/src/metro/index.ts +77 -0
- package/src/metro/picocolors.ts +76 -0
- package/src/metro/tailwind/index.ts +22 -0
- package/src/metro/tailwind/types.ts +9 -0
- package/src/metro/tailwind/v3/child.ts +61 -0
- package/src/metro/tailwind/v3/index.ts +103 -0
- package/src/metro/typescript.ts +69 -0
- package/src/stylesheet.ts +31 -0
- package/src/tailwind/color.ts +23 -0
- package/src/tailwind/common.ts +26 -0
- package/src/tailwind/dark-mode.ts +46 -0
- package/src/tailwind/index.ts +15 -0
- package/src/tailwind/native.ts +374 -0
- package/src/tailwind/prop-modifier.ts +7 -0
- package/src/tailwind/safe-area.ts +262 -0
- package/src/tailwind/shadows.ts +100 -0
- package/src/tailwind/switch.ts +59 -0
- package/src/tailwind/translate.ts +51 -0
- package/src/tailwind/verify.ts +16 -0
- package/src/tailwind/web.ts +38 -0
- package/src/tailwindcss-internals.d.ts +7 -0
- package/src/test.tsx +224 -0
- package/src/theme.ts +15 -0
- package/test/package.json +4 -0
- package/theme/package.json +3 -0
- package/types.d.ts +1 -0
|
@@ -0,0 +1,670 @@
|
|
|
1
|
+
import { renderCurrentTest } from "../test";
|
|
2
|
+
|
|
3
|
+
describe("Flexbox & Grid - Flex Basis", () => {
|
|
4
|
+
test("basis-auto", async () => {
|
|
5
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
6
|
+
props: {},
|
|
7
|
+
invalid: { style: { "flex-basis": "auto" } },
|
|
8
|
+
});
|
|
9
|
+
});
|
|
10
|
+
test("basis-0", async () => {
|
|
11
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
12
|
+
props: { style: { flexBasis: 0 } },
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
test("basis-1", async () => {
|
|
16
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
17
|
+
props: { style: { flexBasis: 3.5 } },
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
test("basis-px", async () => {
|
|
21
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
22
|
+
props: { style: { flexBasis: 1 } },
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
test("basis-full", async () => {
|
|
26
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
27
|
+
props: { style: { flexBasis: "100%" } },
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
test("basis-1/2", async () => {
|
|
31
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
32
|
+
props: { style: { flexBasis: "50%" } },
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
describe("Flexbox & Grid - Flex Direction", () => {
|
|
38
|
+
test("flex-row", async () => {
|
|
39
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
40
|
+
props: { style: { flexDirection: "row" } },
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
test("flex-col", async () => {
|
|
44
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
45
|
+
props: { style: { flexDirection: "column" } },
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
test("flex-row-reverse", async () => {
|
|
49
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
50
|
+
props: { style: { flexDirection: "row-reverse" } },
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
test("flex-col-reverse", async () => {
|
|
54
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
55
|
+
props: { style: { flexDirection: "column-reverse" } },
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
describe("Flexbox & Grid - Flex Wrap", () => {
|
|
61
|
+
test("flex-wrap", async () => {
|
|
62
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
63
|
+
props: { style: { flexWrap: "wrap" } },
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
test("flex-nowrap", async () => {
|
|
67
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
68
|
+
props: { style: { flexWrap: "nowrap" } },
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
test("flex-wrap-reverse", async () => {
|
|
72
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
73
|
+
props: { style: { flexWrap: "wrap-reverse" } },
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
describe("Flexbox & Grid - Flex", () => {
|
|
79
|
+
test("flex", async () => {
|
|
80
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
81
|
+
props: { style: { display: "flex" } },
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
test("flex-1", async () => {
|
|
85
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
86
|
+
props: { style: { flexBasis: "0%", flexGrow: 1, flexShrink: 1 } },
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
test("flex-auto", async () => {
|
|
90
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
91
|
+
props: { style: { flexGrow: 1, flexShrink: 1 } },
|
|
92
|
+
invalid: { style: { flex: "auto" } },
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
test("flex-initial", async () => {
|
|
96
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
97
|
+
props: { style: { flexGrow: 0, flexShrink: 1 } },
|
|
98
|
+
invalid: { style: { flex: "auto" } },
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
test("flex-none", async () => {
|
|
102
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
103
|
+
props: { style: { flexGrow: 0, flexShrink: 0 } },
|
|
104
|
+
invalid: { style: { flex: "auto" } },
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
describe("Flexbox & Grid - Flex Grow", () => {
|
|
110
|
+
test("grow", async () => {
|
|
111
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
112
|
+
props: { style: { flexGrow: 1 } },
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
test("grow-0", async () => {
|
|
116
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
117
|
+
props: { style: { flexGrow: 0 } },
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
test("grow-[2]", async () => {
|
|
121
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
122
|
+
props: { style: { flexGrow: 2 } },
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
describe("Flexbox & Grid - Flex Shrink", () => {
|
|
128
|
+
test("shrink", async () => {
|
|
129
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
130
|
+
props: { style: { flexShrink: 1 } },
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
test("shrink-0", async () => {
|
|
134
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
135
|
+
props: { style: { flexShrink: 0 } },
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
describe("Flexbox & Grid - Order", () => {
|
|
141
|
+
test("order-1", async () => {
|
|
142
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
143
|
+
props: {},
|
|
144
|
+
invalid: { properties: ["order"] },
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
test("order-first", async () => {
|
|
148
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
149
|
+
props: {},
|
|
150
|
+
invalid: { properties: ["order"] },
|
|
151
|
+
});
|
|
152
|
+
});
|
|
153
|
+
test("order-last", async () => {
|
|
154
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
155
|
+
props: {},
|
|
156
|
+
invalid: { properties: ["order"] },
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
test("order-none", async () => {
|
|
160
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
161
|
+
props: {},
|
|
162
|
+
invalid: { properties: ["order"] },
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
describe("Flexbox & Grid - Grid Template Columns", () => {
|
|
168
|
+
test("grid-cols-1", async () => {
|
|
169
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
170
|
+
props: {},
|
|
171
|
+
invalid: { properties: ["grid-template-columns"] },
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
test("grid-cols-2", async () => {
|
|
175
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
176
|
+
props: {},
|
|
177
|
+
invalid: { properties: ["grid-template-columns"] },
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
test("grid-cols-none", async () => {
|
|
181
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
182
|
+
props: {},
|
|
183
|
+
invalid: { properties: ["grid-template-columns"] },
|
|
184
|
+
});
|
|
185
|
+
});
|
|
186
|
+
test("grid-cols-[200px_minmax(900px,_1fr)_100px]", async () => {
|
|
187
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
188
|
+
props: {},
|
|
189
|
+
invalid: { properties: ["grid-template-columns"] },
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
describe("Flexbox & Grid - Grid Column Start / End", () => {
|
|
195
|
+
test("col-auto", async () => {
|
|
196
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
197
|
+
props: {},
|
|
198
|
+
invalid: { properties: ["grid-column"] },
|
|
199
|
+
});
|
|
200
|
+
});
|
|
201
|
+
test("col-span-1", async () => {
|
|
202
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
203
|
+
props: {},
|
|
204
|
+
invalid: { properties: ["grid-column"] },
|
|
205
|
+
});
|
|
206
|
+
});
|
|
207
|
+
test("col-span-full", async () => {
|
|
208
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
209
|
+
props: {},
|
|
210
|
+
invalid: { properties: ["grid-column"] },
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
test("col-start-1", async () => {
|
|
214
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
215
|
+
props: {},
|
|
216
|
+
invalid: { properties: ["grid-column-start"] },
|
|
217
|
+
});
|
|
218
|
+
});
|
|
219
|
+
test("col-start-auto", async () => {
|
|
220
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
221
|
+
props: {},
|
|
222
|
+
invalid: { properties: ["grid-column-start"] },
|
|
223
|
+
});
|
|
224
|
+
});
|
|
225
|
+
test("col-end-1", async () => {
|
|
226
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
227
|
+
props: {},
|
|
228
|
+
invalid: { properties: ["grid-column-end"] },
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
test("col-end-auto", async () => {
|
|
232
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
233
|
+
props: {},
|
|
234
|
+
invalid: { properties: ["grid-column-end"] },
|
|
235
|
+
});
|
|
236
|
+
});
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
describe("Flexbox & Grid - Grid Template Rows", () => {
|
|
240
|
+
test("grid-rows-1", async () => {
|
|
241
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
242
|
+
props: {},
|
|
243
|
+
invalid: { properties: ["grid-template-rows"] },
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
test("grid-rows-2", async () => {
|
|
247
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
248
|
+
props: {},
|
|
249
|
+
invalid: { properties: ["grid-template-rows"] },
|
|
250
|
+
});
|
|
251
|
+
});
|
|
252
|
+
test("grid-rows-none", async () => {
|
|
253
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
254
|
+
props: {},
|
|
255
|
+
invalid: { properties: ["grid-template-rows"] },
|
|
256
|
+
});
|
|
257
|
+
});
|
|
258
|
+
test("grid-rows-[200px_minmax(900px,_1fr)_100px]", async () => {
|
|
259
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
260
|
+
props: {},
|
|
261
|
+
invalid: { properties: ["grid-template-rows"] },
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
});
|
|
265
|
+
|
|
266
|
+
describe("Flexbox & Grid - Grid Row Start / End", () => {
|
|
267
|
+
test("row-auto", async () => {
|
|
268
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
269
|
+
props: {},
|
|
270
|
+
invalid: { properties: ["grid-row"] },
|
|
271
|
+
});
|
|
272
|
+
});
|
|
273
|
+
test("row-span-1", async () => {
|
|
274
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
275
|
+
props: {},
|
|
276
|
+
invalid: { properties: ["grid-row"] },
|
|
277
|
+
});
|
|
278
|
+
});
|
|
279
|
+
test("row-span-full", async () => {
|
|
280
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
281
|
+
props: {},
|
|
282
|
+
invalid: { properties: ["grid-row"] },
|
|
283
|
+
});
|
|
284
|
+
});
|
|
285
|
+
test("row-start-1", async () => {
|
|
286
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
287
|
+
props: {},
|
|
288
|
+
invalid: { properties: ["grid-row-start"] },
|
|
289
|
+
});
|
|
290
|
+
});
|
|
291
|
+
test("row-start-auto", async () => {
|
|
292
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
293
|
+
props: {},
|
|
294
|
+
invalid: { properties: ["grid-row-start"] },
|
|
295
|
+
});
|
|
296
|
+
});
|
|
297
|
+
test("row-end-1", async () => {
|
|
298
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
299
|
+
props: {},
|
|
300
|
+
invalid: { properties: ["grid-row-end"] },
|
|
301
|
+
});
|
|
302
|
+
});
|
|
303
|
+
test("row-end-auto", async () => {
|
|
304
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
305
|
+
props: {},
|
|
306
|
+
invalid: { properties: ["grid-row-end"] },
|
|
307
|
+
});
|
|
308
|
+
});
|
|
309
|
+
});
|
|
310
|
+
|
|
311
|
+
describe("Flexbox & Grid - Grid Auto Flow", () => {
|
|
312
|
+
test("grid-flow-row", async () => {
|
|
313
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
314
|
+
props: {},
|
|
315
|
+
invalid: { properties: ["grid-auto-flow"] },
|
|
316
|
+
});
|
|
317
|
+
});
|
|
318
|
+
test("grid-flow-col", async () => {
|
|
319
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
320
|
+
props: {},
|
|
321
|
+
invalid: { properties: ["grid-auto-flow"] },
|
|
322
|
+
});
|
|
323
|
+
});
|
|
324
|
+
test("grid-flow-row-dense", async () => {
|
|
325
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
326
|
+
props: {},
|
|
327
|
+
invalid: { properties: ["grid-auto-flow"] },
|
|
328
|
+
});
|
|
329
|
+
});
|
|
330
|
+
test("grid-flow-col-dense", async () => {
|
|
331
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
332
|
+
props: {},
|
|
333
|
+
invalid: { properties: ["grid-auto-flow"] },
|
|
334
|
+
});
|
|
335
|
+
});
|
|
336
|
+
});
|
|
337
|
+
|
|
338
|
+
describe("Flexbox & Grid - Grid Auto Columns", () => {
|
|
339
|
+
test("auto-cols-auto", async () => {
|
|
340
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
341
|
+
props: {},
|
|
342
|
+
invalid: { properties: ["grid-auto-columns"] },
|
|
343
|
+
});
|
|
344
|
+
});
|
|
345
|
+
test("auto-cols-min", async () => {
|
|
346
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
347
|
+
props: {},
|
|
348
|
+
invalid: { properties: ["grid-auto-columns"] },
|
|
349
|
+
});
|
|
350
|
+
});
|
|
351
|
+
test("auto-cols-max", async () => {
|
|
352
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
353
|
+
props: {},
|
|
354
|
+
invalid: { properties: ["grid-auto-columns"] },
|
|
355
|
+
});
|
|
356
|
+
});
|
|
357
|
+
test("auto-cols-fr", async () => {
|
|
358
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
359
|
+
props: {},
|
|
360
|
+
invalid: { properties: ["grid-auto-columns"] },
|
|
361
|
+
});
|
|
362
|
+
});
|
|
363
|
+
});
|
|
364
|
+
|
|
365
|
+
describe("Flexbox & Grid - Grid Auto Rows", () => {
|
|
366
|
+
test("auto-rows-auto", async () => {
|
|
367
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
368
|
+
props: {},
|
|
369
|
+
invalid: { properties: ["grid-auto-rows"] },
|
|
370
|
+
});
|
|
371
|
+
});
|
|
372
|
+
test("auto-rows-min", async () => {
|
|
373
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
374
|
+
props: {},
|
|
375
|
+
invalid: { properties: ["grid-auto-rows"] },
|
|
376
|
+
});
|
|
377
|
+
});
|
|
378
|
+
test("auto-rows-max", async () => {
|
|
379
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
380
|
+
props: {},
|
|
381
|
+
invalid: { properties: ["grid-auto-rows"] },
|
|
382
|
+
});
|
|
383
|
+
});
|
|
384
|
+
test("auto-rows-fr", async () => {
|
|
385
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
386
|
+
props: {},
|
|
387
|
+
invalid: { properties: ["grid-auto-rows"] },
|
|
388
|
+
});
|
|
389
|
+
});
|
|
390
|
+
});
|
|
391
|
+
|
|
392
|
+
describe("Flexbox & Grid - Gap", () => {
|
|
393
|
+
test("gap-0", async () => {
|
|
394
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
395
|
+
props: { style: { columnGap: 0, rowGap: 0 } },
|
|
396
|
+
});
|
|
397
|
+
});
|
|
398
|
+
test("gap-1", async () => {
|
|
399
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
400
|
+
props: { style: { columnGap: 3.5, rowGap: 3.5 } },
|
|
401
|
+
});
|
|
402
|
+
});
|
|
403
|
+
test("gap-px", async () => {
|
|
404
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
405
|
+
props: { style: { columnGap: 1, rowGap: 1 } },
|
|
406
|
+
});
|
|
407
|
+
});
|
|
408
|
+
test("gap-x-1", async () => {
|
|
409
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
410
|
+
props: { style: { columnGap: 3.5 } },
|
|
411
|
+
});
|
|
412
|
+
});
|
|
413
|
+
test("gap-y-1", async () => {
|
|
414
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
415
|
+
props: { style: { rowGap: 3.5 } },
|
|
416
|
+
});
|
|
417
|
+
});
|
|
418
|
+
});
|
|
419
|
+
|
|
420
|
+
describe("Flexbox & Grid - Justify Content", () => {
|
|
421
|
+
test("justify-start", async () => {
|
|
422
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
423
|
+
props: { style: { justifyContent: "flex-start" } },
|
|
424
|
+
});
|
|
425
|
+
});
|
|
426
|
+
test("justify-end", async () => {
|
|
427
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
428
|
+
props: { style: { justifyContent: "flex-end" } },
|
|
429
|
+
});
|
|
430
|
+
});
|
|
431
|
+
test("justify-center", async () => {
|
|
432
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
433
|
+
props: { style: { justifyContent: "center" } },
|
|
434
|
+
});
|
|
435
|
+
});
|
|
436
|
+
test("justify-between", async () => {
|
|
437
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
438
|
+
props: { style: { justifyContent: "space-between" } },
|
|
439
|
+
});
|
|
440
|
+
});
|
|
441
|
+
test("justify-around", async () => {
|
|
442
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
443
|
+
props: { style: { justifyContent: "space-around" } },
|
|
444
|
+
});
|
|
445
|
+
});
|
|
446
|
+
test("justify-evenly", async () => {
|
|
447
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
448
|
+
props: { style: { justifyContent: "space-evenly" } },
|
|
449
|
+
});
|
|
450
|
+
});
|
|
451
|
+
});
|
|
452
|
+
|
|
453
|
+
describe("Flexbox & Grid - Justify Items", () => {
|
|
454
|
+
test("justify-items-start", async () => {
|
|
455
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
456
|
+
props: {},
|
|
457
|
+
invalid: { properties: ["justify-items"] },
|
|
458
|
+
});
|
|
459
|
+
});
|
|
460
|
+
test("justify-items-end", async () => {
|
|
461
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
462
|
+
props: {},
|
|
463
|
+
invalid: { properties: ["justify-items"] },
|
|
464
|
+
});
|
|
465
|
+
});
|
|
466
|
+
test("justify-items-center", async () => {
|
|
467
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
468
|
+
props: {},
|
|
469
|
+
invalid: { properties: ["justify-items"] },
|
|
470
|
+
});
|
|
471
|
+
});
|
|
472
|
+
test("justify-items-stretch", async () => {
|
|
473
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
474
|
+
props: {},
|
|
475
|
+
invalid: { properties: ["justify-items"] },
|
|
476
|
+
});
|
|
477
|
+
});
|
|
478
|
+
});
|
|
479
|
+
|
|
480
|
+
describe("Flexbox & Grid - Justify Self", () => {
|
|
481
|
+
test("justify-self-auto", async () => {
|
|
482
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
483
|
+
props: {},
|
|
484
|
+
invalid: { properties: ["justify-self"] },
|
|
485
|
+
});
|
|
486
|
+
});
|
|
487
|
+
test("justify-self-start", async () => {
|
|
488
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
489
|
+
props: {},
|
|
490
|
+
invalid: { properties: ["justify-self"] },
|
|
491
|
+
});
|
|
492
|
+
});
|
|
493
|
+
test("justify-self-end", async () => {
|
|
494
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
495
|
+
props: {},
|
|
496
|
+
invalid: { properties: ["justify-self"] },
|
|
497
|
+
});
|
|
498
|
+
});
|
|
499
|
+
test("justify-self-center", async () => {
|
|
500
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
501
|
+
props: {},
|
|
502
|
+
invalid: { properties: ["justify-self"] },
|
|
503
|
+
});
|
|
504
|
+
});
|
|
505
|
+
test("justify-self-stretch", async () => {
|
|
506
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
507
|
+
props: {},
|
|
508
|
+
invalid: { properties: ["justify-self"] },
|
|
509
|
+
});
|
|
510
|
+
});
|
|
511
|
+
});
|
|
512
|
+
|
|
513
|
+
describe("Flexbox & Grid - Align Items", () => {
|
|
514
|
+
test("items-center", async () => {
|
|
515
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
516
|
+
props: { style: { alignItems: "center" } },
|
|
517
|
+
});
|
|
518
|
+
});
|
|
519
|
+
test("items-start", async () => {
|
|
520
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
521
|
+
props: { style: { alignItems: "flex-start" } },
|
|
522
|
+
});
|
|
523
|
+
});
|
|
524
|
+
test("items-end", async () => {
|
|
525
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
526
|
+
props: { style: { alignItems: "flex-end" } },
|
|
527
|
+
});
|
|
528
|
+
});
|
|
529
|
+
test("items-baseline", async () => {
|
|
530
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
531
|
+
props: { style: { alignItems: "baseline" } },
|
|
532
|
+
});
|
|
533
|
+
});
|
|
534
|
+
test("items-stretch", async () => {
|
|
535
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
536
|
+
props: { style: { alignItems: "stretch" } },
|
|
537
|
+
});
|
|
538
|
+
});
|
|
539
|
+
});
|
|
540
|
+
|
|
541
|
+
describe("Flexbox & Grid - Align Self", () => {
|
|
542
|
+
test("self-auto", async () => {
|
|
543
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
544
|
+
props: { style: { alignSelf: "auto" } },
|
|
545
|
+
});
|
|
546
|
+
});
|
|
547
|
+
test("self-start", async () => {
|
|
548
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
549
|
+
props: { style: { alignSelf: "flex-start" } },
|
|
550
|
+
});
|
|
551
|
+
});
|
|
552
|
+
test("self-end", async () => {
|
|
553
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
554
|
+
props: { style: { alignSelf: "flex-end" } },
|
|
555
|
+
});
|
|
556
|
+
});
|
|
557
|
+
test("self-center", async () => {
|
|
558
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
559
|
+
props: { style: { alignSelf: "center" } },
|
|
560
|
+
});
|
|
561
|
+
});
|
|
562
|
+
test("self-stretch", async () => {
|
|
563
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
564
|
+
props: { style: { alignSelf: "stretch" } },
|
|
565
|
+
});
|
|
566
|
+
});
|
|
567
|
+
test("self-baseline", async () => {
|
|
568
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
569
|
+
props: { style: { alignSelf: "baseline" } },
|
|
570
|
+
});
|
|
571
|
+
});
|
|
572
|
+
});
|
|
573
|
+
|
|
574
|
+
describe("Flexbox & Grid - Align Content", () => {
|
|
575
|
+
test("content-center", async () => {
|
|
576
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
577
|
+
props: { style: { alignContent: "center" } },
|
|
578
|
+
});
|
|
579
|
+
});
|
|
580
|
+
test("content-start", async () => {
|
|
581
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
582
|
+
props: { style: { alignContent: "flex-start" } },
|
|
583
|
+
});
|
|
584
|
+
});
|
|
585
|
+
test("content-end", async () => {
|
|
586
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
587
|
+
props: { style: { alignContent: "flex-end" } },
|
|
588
|
+
});
|
|
589
|
+
});
|
|
590
|
+
test("content-between", async () => {
|
|
591
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
592
|
+
props: { style: { alignContent: "space-between" } },
|
|
593
|
+
});
|
|
594
|
+
});
|
|
595
|
+
test("content-around", async () => {
|
|
596
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
597
|
+
props: { style: { alignContent: "space-around" } },
|
|
598
|
+
});
|
|
599
|
+
});
|
|
600
|
+
test("content-evenly", async () => {
|
|
601
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
602
|
+
props: {},
|
|
603
|
+
invalid: {
|
|
604
|
+
style: {
|
|
605
|
+
"align-content": "space-evenly",
|
|
606
|
+
},
|
|
607
|
+
},
|
|
608
|
+
});
|
|
609
|
+
});
|
|
610
|
+
});
|
|
611
|
+
|
|
612
|
+
describe("Flexbox & Grid - Place Items", () => {
|
|
613
|
+
test("place-items-start", async () => {
|
|
614
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
615
|
+
props: {},
|
|
616
|
+
invalid: { properties: ["place-items"] },
|
|
617
|
+
});
|
|
618
|
+
});
|
|
619
|
+
test("place-items-end", async () => {
|
|
620
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
621
|
+
props: {},
|
|
622
|
+
invalid: { properties: ["place-items"] },
|
|
623
|
+
});
|
|
624
|
+
});
|
|
625
|
+
test("place-items-center", async () => {
|
|
626
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
627
|
+
props: {},
|
|
628
|
+
invalid: { properties: ["place-items"] },
|
|
629
|
+
});
|
|
630
|
+
});
|
|
631
|
+
test("place-items-stretch", async () => {
|
|
632
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
633
|
+
props: {},
|
|
634
|
+
invalid: { properties: ["place-items"] },
|
|
635
|
+
});
|
|
636
|
+
});
|
|
637
|
+
});
|
|
638
|
+
|
|
639
|
+
describe("Flexbox & Grid - Place Self", () => {
|
|
640
|
+
test("place-self-auto", async () => {
|
|
641
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
642
|
+
props: {},
|
|
643
|
+
invalid: { properties: ["place-self"] },
|
|
644
|
+
});
|
|
645
|
+
});
|
|
646
|
+
test("place-self-start", async () => {
|
|
647
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
648
|
+
props: {},
|
|
649
|
+
invalid: { properties: ["place-self"] },
|
|
650
|
+
});
|
|
651
|
+
});
|
|
652
|
+
test("place-self-end", async () => {
|
|
653
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
654
|
+
props: {},
|
|
655
|
+
invalid: { properties: ["place-self"] },
|
|
656
|
+
});
|
|
657
|
+
});
|
|
658
|
+
test("place-self-center", async () => {
|
|
659
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
660
|
+
props: {},
|
|
661
|
+
invalid: { properties: ["place-self"] },
|
|
662
|
+
});
|
|
663
|
+
});
|
|
664
|
+
test("place-self-stretch", async () => {
|
|
665
|
+
expect(await renderCurrentTest()).toStrictEqual({
|
|
666
|
+
props: {},
|
|
667
|
+
invalid: { properties: ["place-self"] },
|
|
668
|
+
});
|
|
669
|
+
});
|
|
670
|
+
});
|