-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathcss.test.js.snap
174 lines (142 loc) Β· 5.47 KB
/
css.test.js.snap
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
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`babel css extract basic object support 1`] = `"/*#__PURE__*/css({ display: 'flex' });"`;
exports[`babel css extract css basic 1`] = `
"import \\"./css.test.emotion.css\\";
\\"css-153l48f\\";"
`;
exports[`babel css extract css basic 2`] = `".css-153l48f{margin:12px 48px;color:#ffffff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex:1 0 auto;-ms-flex:1 0 auto;flex:1 0 auto;color:blue;}"`;
exports[`babel css extract dynamic property objects 1`] = `
"
/*#__PURE__*/css({
fontSize: 10,
[\`w\${'idth'}\`]: 20
});"
`;
exports[`babel css extract dynamically renamed-import: basic object support 1`] = `"import { css as cows } from 'emotion'; /*#__PURE__*/cows({ display: 'flex' });"`;
exports[`babel css extract objects 1`] = `
"
/*#__PURE__*/css({
borderRadius: '50%',
transition: 'transform 400ms ease-in-out',
boxSizing: 'border-box',
display: 'flex',
':hover': {
transform: 'scale(1.2)'
}
});"
`;
exports[`babel css extract renamed-import: basic object support 1`] = `"/*#__PURE__*/cows({ display: 'flex' });"`;
exports[`babel css inline ::placeholder 1`] = `
"
const cls1 = /*#__PURE__*/css({
'::placeholder': {
color: 'green',
display: 'flex'
}
});
const cls2 = /*#__PURE__*/css('::placeholder{color:green;display:flex;}');"
`;
exports[`babel css inline :fullscreen 1`] = `
"
const cls1 = /*#__PURE__*/css({
':fullscreen': {
color: 'green',
display: 'flex'
}
});
const cls2 = /*#__PURE__*/css(':fullscreen{color:green;display:flex;}');"
`;
exports[`babel css inline array of objects 1`] = `
"
const cls2 = /*#__PURE__*/css([{
display: 'flex',
flex: 1,
alignItems: \`\${'center'}\`
}, {
justifyContent: 'flex-start'
}]);"
`;
exports[`babel css inline autoLabel 1`] = `
"
function test() {
const cls1 = /*#__PURE__*/css(\\"font-size:20px;@media(min-width:420px){color:blue;\\", /*#__PURE__*/css(\\"width:96px;height:96px;\\", \\"label:cls1;\\"), \\";line-height:26px;}background:green;\\", { backgroundColor: \\"hotpink\\" }, \\";\\", \\"label:cls1;\\");
const cls2 = /*#__PURE__*/css({ color: 'blue' }, \\"label:cls2;\\");
const cls4 = /*#__PURE__*/css({ color: \\"hotpink\\" }, \\"label:cls4;\\");
const cls3 = /*#__PURE__*/css(\\"display:flex;&:hover{color:hotpink;}\\", \\"label:cls3;\\");
function inner() {
const styles = { color: \\"darkorchid\\" };
const color = 'aquamarine';
const cls4 = /*#__PURE__*/css(cls3, \\";\\", cls1, \\";\\", () => ({ color: \\"darkorchid\\" }), \\";\\", () => ({ color }), \\";\\", /*#__PURE__*/css(\\"height:420px;width:\\", styles, \\"label:cls4;\\"), \\";\\", \\"label:cls4;\\");
}
}"
`;
exports[`babel css inline css basic 1`] = `
"
/*#__PURE__*/css(\\"margin:12px 48px;color:#ffffff;display:flex;flex:1 0 auto;color:blue;@media(min-width:420px){line-height:40px;}width:\\", widthVar, \\";\\");"
`;
exports[`babel css inline css basic 2`] = `
"
/*#__PURE__*/cows(\\"margin:12px 48px;color:#ffffff;display:flex;flex:1 0 auto;color:blue;@media(min-width:420px){line-height:40px;}width:\\", widthVar, \\";\\");"
`;
exports[`babel css inline css basic as cows 1`] = `
"
import { css as cows } from 'emotion';
/*#__PURE__*/cows('margin:12px 48px;color:#ffffff;display:flex;flex:1 0 auto;color:blue;@media(min-width:420px){line-height:40px;}width:', widthVar, ';');"
`;
exports[`babel css inline css random expression 1`] = `"/*#__PURE__*/css(\\"font-size:20px;@media(min-width:420px){color:blue;\\", /*#__PURE__*/css(\\"width:96px;height:96px;\\"), \\";line-height:26px;}background:green;\\", { backgroundColor: \\"hotpink\\" }, \\";\\");"`;
exports[`babel css inline css with float property 1`] = `
"
/*#__PURE__*/css(\\"float:left;\\");"
`;
exports[`babel css inline hoisting 1`] = `
"var _ref = \\"font-size:20px;@media(min-width:420px){color:blue;\\";
var _ref2 = \\";line-height:26px;}background:green;\\";
var _ref3 = { backgroundColor: \\"hotpink\\" };
var _ref4 = \\";\\";
var _ref5 = \\"width:96px;height:96px;\\";
var _ref6 = { color: 'blue' };
var _ref7 = \\"display:flex;&:hover{color:hotpink;}\\";
var _ref8 = \\";\\";
var _ref9 = \\";\\";
var _ref10 = () => ({ color: \\"darkorchid\\" });
var _ref11 = \\";\\";
var _ref12 = \\";\\";
var _ref13 = \\";\\";
var _ref14 = \\"height:420px;width:\\";
function test() {
const cls1 = /*#__PURE__*/css(_ref, /*#__PURE__*/css(_ref5), _ref2, _ref3, _ref4);
const cls2 = /*#__PURE__*/css(_ref6);
const cls3 = /*#__PURE__*/css(_ref7);
function inner() {
const styles = { color: \\"darkorchid\\" };
const color = 'aquamarine';
const cls4 = /*#__PURE__*/css(cls3, _ref8, cls1, _ref9, _ref10, _ref11, () => ({ color }), _ref12, /*#__PURE__*/css(_ref14, styles), _ref13);
}
}"
`;
exports[`babel css inline interpolation in selector 1`] = `
"
const cls2 = /*#__PURE__*/css(\\"margin:12px 48px;color:#ffffff;\\", className, \\"{display:none;}\\");"
`;
exports[`babel css inline nested expanded properties 1`] = `
"
/*#__PURE__*/css(\\"margin:12px 48px;& .div{display:flex;}\\");"
`;
exports[`babel css inline object with a bunch of stuff 1`] = `
"
const cls2 = /*#__PURE__*/css({
float: 'left',
display: 'flex',
flex: 1,
alignItems: \`\${'center'}\`
});"
`;
exports[`babel css inline only styles on nested selector 1`] = `
"
const cls1 = /*#__PURE__*/css(\\"display:flex;\\");
const cls2 = /*#__PURE__*/css(\\"&:hover{background:pink;}\\");"
`;
exports[`babel css inline symbols inside of "" 1`] = `
"
const cls = /*#__PURE__*/css(\\"content:\\\\\\" { } \\\\\\"\\");"
`;