|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
3 | 3 | exports[`styled basic render 1`] = `
|
4 |
| -.glamor-1 { |
| 4 | +.glamor-0 { |
5 | 5 | color: blue;
|
6 | 6 | font-size: 20px;
|
7 | 7 | }
|
8 | 8 |
|
9 |
| -@media (min-width: 420px) { |
10 |
| - .glamor-1 { |
| 9 | +@media (min-width:420px) { |
| 10 | + .glamor-0 { |
11 | 11 | color: blue;
|
12 | 12 | }
|
13 | 13 | }
|
14 | 14 |
|
15 |
| -@media (min-width: 420px) and (min-width: 520px) { |
16 |
| - .glamor-1 { |
17 |
| - color: green; |
18 |
| - } |
19 |
| -} |
20 |
| -
|
21 | 15 | <h1
|
22 |
| - className="glamor-0 glamor-1" |
| 16 | + className="glamor-0" |
23 | 17 | >
|
24 | 18 | hello world
|
25 | 19 | </h1>
|
@@ -204,6 +198,39 @@ exports[`styled composition based on props 2`] = `
|
204 | 198 | </h1>
|
205 | 199 | `;
|
206 | 200 |
|
| 201 | +exports[`styled composition of nested pseudo selectors 1`] = ` |
| 202 | +.glamor-0 { |
| 203 | + font-size: 2rem; |
| 204 | + padding: 16px; |
| 205 | +} |
| 206 | +
|
| 207 | +.glamor-0:hover { |
| 208 | + color: blue; |
| 209 | +} |
| 210 | +
|
| 211 | +.glamor-0:hover:active { |
| 212 | + color: red; |
| 213 | +} |
| 214 | +
|
| 215 | +.glamor-0:hover { |
| 216 | + color: pink; |
| 217 | +} |
| 218 | +
|
| 219 | +.glamor-0:hover:active { |
| 220 | + color: purple; |
| 221 | +} |
| 222 | +
|
| 223 | +.glamor-0:hover.some-class { |
| 224 | + color: yellow; |
| 225 | +} |
| 226 | +
|
| 227 | +<button |
| 228 | + className="glamor-0" |
| 229 | +> |
| 230 | + Should be purple |
| 231 | +</button> |
| 232 | +`; |
| 233 | + |
207 | 234 | exports[`styled composition with objects 1`] = `
|
208 | 235 | .glamor-0 {
|
209 | 236 | color: #333;
|
@@ -239,6 +266,18 @@ exports[`styled function in expression 1`] = `
|
239 | 266 | </h1>
|
240 | 267 | `;
|
241 | 268 |
|
| 269 | +exports[`styled function that function returns gets called with props 1`] = ` |
| 270 | +.glamor-0 { |
| 271 | + color: hotpink; |
| 272 | + background-color: yellow; |
| 273 | +} |
| 274 | +
|
| 275 | +<div |
| 276 | + className="glamor-0" |
| 277 | + color="hotpink" |
| 278 | +/> |
| 279 | +`; |
| 280 | + |
242 | 281 | exports[`styled glamorous style api & composition 1`] = `
|
243 | 282 | .glamor-0 {
|
244 | 283 | font-size: 20px;
|
@@ -321,49 +360,69 @@ exports[`styled innerRef 1`] = `
|
321 | 360 | `;
|
322 | 361 |
|
323 | 362 | exports[`styled input placeholder 1`] = `
|
324 |
| -.glamor-1::-webkit-input-placeholder { |
| 363 | +.glamor-0::-webkit-input-placeholder { |
| 364 | + background-color: green; |
| 365 | +} |
| 366 | +
|
| 367 | +.glamor-0::-moz-placeholder { |
325 | 368 | background-color: green;
|
326 | 369 | }
|
327 | 370 |
|
328 |
| -.glamor-1:-ms-input-placeholder { |
| 371 | +.glamor-0:-ms-input-placeholder { |
329 | 372 | background-color: green;
|
330 | 373 | }
|
331 | 374 |
|
332 |
| -.glamor-1::placeholder { |
| 375 | +.glamor-0::placeholder { |
333 | 376 | background-color: green;
|
334 | 377 | }
|
335 | 378 |
|
336 | 379 | <input
|
337 |
| - className="glamor-0 glamor-1" |
| 380 | + className="glamor-0" |
338 | 381 | >
|
339 | 382 | hello world
|
340 | 383 | </input>
|
341 | 384 | `;
|
342 | 385 |
|
343 | 386 | exports[`styled input placeholder object 1`] = `
|
344 |
| -.glamor-1::-webkit-input-placeholder { |
| 387 | +.glamor-0::-webkit-input-placeholder { |
345 | 388 | background-color: green;
|
346 | 389 | }
|
347 | 390 |
|
348 |
| -.glamor-1::-moz-placeholder { |
| 391 | +.glamor-0::-moz-placeholder { |
349 | 392 | background-color: green;
|
350 | 393 | }
|
351 | 394 |
|
352 |
| -.glamor-1:-ms-input-placeholder { |
| 395 | +.glamor-0:-ms-input-placeholder { |
353 | 396 | background-color: green;
|
354 | 397 | }
|
355 | 398 |
|
356 |
| -.glamor-1::placeholder { |
| 399 | +.glamor-0::placeholder { |
357 | 400 | background-color: green;
|
358 | 401 | }
|
359 | 402 |
|
360 | 403 | <input
|
361 |
| - className="glamor-0 glamor-1" |
| 404 | + className="glamor-0" |
362 | 405 | >
|
363 | 406 | hello world
|
364 | 407 | </input>
|
365 | 408 | `;
|
366 | 409 |
|
| 410 | +exports[`styled name with class component 1`] = ` |
| 411 | +.glamor-0 { |
| 412 | + color: hotpink; |
| 413 | +} |
| 414 | +
|
| 415 | +<Styled(SomeComponent)> |
| 416 | + <SomeComponent |
| 417 | + className="glamor-0" |
| 418 | + > |
| 419 | + <div |
| 420 | + className="glamor-0" |
| 421 | + /> |
| 422 | + </SomeComponent> |
| 423 | +</Styled(SomeComponent)> |
| 424 | +`; |
| 425 | + |
367 | 426 | exports[`styled nested 1`] = `
|
368 | 427 | .glamor-0 {
|
369 | 428 | font-size: 20px;
|
@@ -431,31 +490,6 @@ exports[`styled no prop filtering on non string tags 1`] = `
|
431 | 490 | </a>
|
432 | 491 | `;
|
433 | 492 |
|
434 |
| -exports[`styled null interpolation value 1`] = ` |
435 |
| -.glamor-0 { |
436 |
| - color: blue; |
437 |
| - font-size: 20; |
438 |
| -} |
439 |
| -
|
440 |
| -@media (min-width:520px) { |
441 |
| - .glamor-0 { |
442 |
| - color: green; |
443 |
| - } |
444 |
| -} |
445 |
| -
|
446 |
| -@media (min-width:420px) { |
447 |
| - .glamor-0 { |
448 |
| - color: blue; |
449 |
| - } |
450 |
| -} |
451 |
| -
|
452 |
| -<h1 |
453 |
| - className="glamor-0" |
454 |
| -> |
455 |
| - hello world |
456 |
| -</h1> |
457 |
| -`; |
458 |
| - |
459 | 493 | exports[`styled object as style 1`] = `
|
460 | 494 | .glamor-0 {
|
461 | 495 | font-size: 20px;
|
@@ -619,6 +653,28 @@ exports[`styled random object expression 1`] = `
|
619 | 653 | </h1>
|
620 | 654 | `;
|
621 | 655 |
|
| 656 | +exports[`styled theme prop exists without ThemeProvider 1`] = ` |
| 657 | +.glamor-0 { |
| 658 | + color: green; |
| 659 | + background-color: yellow; |
| 660 | +} |
| 661 | +
|
| 662 | +<div |
| 663 | + className="glamor-0" |
| 664 | +/> |
| 665 | +`; |
| 666 | + |
| 667 | +exports[`styled theme prop exists without ThemeProvider with a theme prop on the component 1`] = ` |
| 668 | +.glamor-0 { |
| 669 | + color: hotpink; |
| 670 | + background-color: yellow; |
| 671 | +} |
| 672 | +
|
| 673 | +<div |
| 674 | + className="glamor-0" |
| 675 | +/> |
| 676 | +`; |
| 677 | + |
622 | 678 | exports[`styled themes 1`] = `
|
623 | 679 | .glamor-0 {
|
624 | 680 | background-color: #ffd43b;
|
@@ -721,6 +777,7 @@ exports[`styled with higher order component that hoists statics 1`] = `
|
721 | 777 | display: -ms-flexbox;
|
722 | 778 | display: flex;
|
723 | 779 | color: hotpink;
|
| 780 | + padding: 8px; |
724 | 781 | }
|
725 | 782 |
|
726 | 783 | <div
|
|
0 commit comments