@@ -163,6 +163,8 @@ exports[`helpers / cssSnapshots with file 'import.module.css' createExports shou
163
163
' childA' : string ;
164
164
' childB' : string ;
165
165
' nestedChild' : string ;
166
+ ' composed' : string ;
167
+ ' composed-from-other-file' : string ;
166
168
' fadeIn' : string ;
167
169
} ;
168
170
export default _classes;
@@ -173,6 +175,7 @@ export let parent: string;
173
175
export let childA: string;
174
176
export let childB: string;
175
177
export let nestedChild: string;
178
+ export let composed: string;
176
179
export let fadeIn: string;
177
180
"
178
181
` ;
@@ -185,6 +188,8 @@ exports[`helpers / cssSnapshots with file 'import.module.css' getCssExports shou
185
188
" class-c" : " class-c" ,
186
189
" classA" : " classA" ,
187
190
" class_d" : " class_d" ,
191
+ " composed" : " composed classA" ,
192
+ " composed-from-other-file" : " composed-from-other-file i__imported_className_1" ,
188
193
" fadeIn" : " fadeIn" ,
189
194
" nestedChild" : " nestedChild" ,
190
195
" parent" : " parent" ,
@@ -202,6 +207,8 @@ declare let _classes: {
202
207
' childA' : string ;
203
208
' childB' : string ;
204
209
' nestedChild' : string ;
210
+ ' composed' : string ;
211
+ ' composed-from-other-file' : string ;
205
212
' fadeIn' : string ;
206
213
} ;
207
214
export default _classes;
@@ -212,10 +219,11 @@ export let parent: string;
212
219
export let childA: string;
213
220
export let childB: string;
214
221
export let nestedChild: string;
222
+ export let composed: string;
215
223
export let fadeIn: string;
216
224
217
225
export const __cssModule: true;
218
- export type AllClassNames = 'classA' | 'ClassB' | 'class-c' | 'class_d' | 'parent' | 'childA' | 'childB' | 'nestedChild' | 'fadeIn';"
226
+ export type AllClassNames = 'classA' | 'ClassB' | 'class-c' | 'class_d' | 'parent' | 'childA' | 'childB' | 'nestedChild' | 'composed' | 'composed-from-other-file' | ' fadeIn';"
219
227
` ;
220
228
221
229
exports [` helpers / cssSnapshots with file 'import.module.less' createExports should create an exports file 1` ] = `
@@ -388,6 +396,8 @@ exports[`helpers / cssSnapshots with file 'test.module.css' createExports should
388
396
' childA' : string ;
389
397
' childB' : string ;
390
398
' nestedChild' : string ;
399
+ ' composed' : string ;
400
+ ' composed-from-other-file' : string ;
391
401
' fadeIn' : string ;
392
402
} ;
393
403
export default _classes;
@@ -398,6 +408,7 @@ export let parent: string;
398
408
export let childA: string;
399
409
export let childB: string;
400
410
export let nestedChild: string;
411
+ export let composed: string;
401
412
export let fadeIn: string;
402
413
"
403
414
` ;
@@ -410,6 +421,8 @@ exports[`helpers / cssSnapshots with file 'test.module.css' getCssExports should
410
421
" class-c" : " class-c" ,
411
422
" classA" : " classA" ,
412
423
" class_d" : " class_d" ,
424
+ " composed" : " composed classA" ,
425
+ " composed-from-other-file" : " composed-from-other-file i__imported_className_2" ,
413
426
" fadeIn" : " fadeIn" ,
414
427
" nestedChild" : " nestedChild" ,
415
428
" parent" : " parent" ,
@@ -427,6 +440,8 @@ declare let _classes: {
427
440
' childA' : string ;
428
441
' childB' : string ;
429
442
' nestedChild' : string ;
443
+ ' composed' : string ;
444
+ ' composed-from-other-file' : string ;
430
445
' fadeIn' : string ;
431
446
} ;
432
447
export default _classes;
@@ -437,10 +452,11 @@ export let parent: string;
437
452
export let childA: string;
438
453
export let childB: string;
439
454
export let nestedChild: string;
455
+ export let composed: string;
440
456
export let fadeIn: string;
441
457
442
458
export const __cssModule: true;
443
- export type AllClassNames = 'classA' | 'ClassB' | 'class-c' | 'class_d' | 'parent' | 'childA' | 'childB' | 'nestedChild' | 'fadeIn';"
459
+ export type AllClassNames = 'classA' | 'ClassB' | 'class-c' | 'class_d' | 'parent' | 'childA' | 'childB' | 'nestedChild' | 'composed' | 'composed-from-other-file' | ' fadeIn';"
444
460
` ;
445
461
446
462
exports [` helpers / cssSnapshots with file 'test.module.less' createExports should create an exports file 1` ] = `
@@ -729,7 +745,7 @@ export type AllClassNames = 'foo' | 'bar' | 'baz' | 'col-1' | 'col-2' | 'col-3'
729
745
` ;
730
746
731
747
exports [` helpers / cssSnapshots with goToDefinition enabled with CSS should return a line-accurate dts file 1` ] = `
732
- "export let classA: string;
748
+ "export let classA: string;export let composed: string;export let composedFromOtherFile: string;
733
749
734
750
735
751
@@ -763,6 +779,13 @@ export let fadeIn: string;
763
779
764
780
765
781
782
+
783
+
784
+
785
+
786
+
787
+
788
+
766
789
declare let _classes: {
767
790
' classA' : string ;
768
791
' classB' : string ;
@@ -772,6 +795,8 @@ declare let _classes: {
772
795
' childA' : string ;
773
796
' childB' : string ;
774
797
' nestedChild' : string ;
798
+ ' composed' : string ;
799
+ ' composedFromOtherFile' : string ;
775
800
' fadeIn' : string ;
776
801
} ;
777
802
export default _classes;
@@ -787,6 +812,8 @@ exports[`helpers / cssSnapshots with goToDefinition enabled with CSS should retu
787
812
" class-c" : " class-c" ,
788
813
" classA" : " classA" ,
789
814
" class_d" : " class_d" ,
815
+ " composed" : " composed classA" ,
816
+ " composed-from-other-file" : " composed-from-other-file i__imported_className_0" ,
790
817
" fadeIn" : " fadeIn" ,
791
818
" nestedChild" : " nestedChild" ,
792
819
" parent" : " parent" ,
@@ -825,10 +852,17 @@ exports[`helpers / cssSnapshots with goToDefinition enabled with CSS should retu
825
852
}
826
853
}
827
854
855
+ .composed {
856
+ display : block ;
857
+ }
858
+
859
+ .composed-from-other-file {
860
+ }
861
+
828
862
/*# sourceMappingURL=src/helpers/__tests__/fixtures/test.module.css.map */",
829
863
"sourceMap": {
830
864
" file" : " src/helpers/__tests__/fixtures/test.module.css" ,
831
- " mappings" : " AAAA;EACE,oBAAoB;AACtB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,oBAAoB;EACpB,oBAAoB;AACtB;;AAGE;IACE,oBAAoB;EACtB;;AAEE;MACE,oBAAoB;IACtB;;AAIJ;EACE;IACE,UAAU;EACZ;EACA;IACE,UAAU;EACZ;AACF" ,
865
+ " mappings" : " AAAA;EACE,oBAAoB;AACtB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,oBAAoB;EACpB,oBAAoB;AACtB;;AAGE;IACE,oBAAoB;EACtB;;AAEE;MACE,oBAAoB;IACtB;;AAIJ;EACE;IACE,UAAU;EACZ;EACA;IACE,UAAU;EACZ;AACF;;AAEA;EAEE,cAAc;AAChB;;AAEA;AAEA " ,
832
866
" names" : [],
833
867
" sources" : [
834
868
" src/helpers/__tests__/fixtures/test.module.css" ,
@@ -870,6 +904,15 @@ exports[`helpers / cssSnapshots with goToDefinition enabled with CSS should retu
870
904
opacity: 1 ;
871
905
}
872
906
}
907
+
908
+ .composed {
909
+ composes: classA ;
910
+ display : block ;
911
+ }
912
+
913
+ .composed - from - other - file {
914
+ composes: className from ' ./_composed.css' ;
915
+ }
873
916
" ,
874
917
],
875
918
" version" : 3 ,
0 commit comments