@@ -34,6 +34,74 @@ body {
3434}"
3535` ;
3636
37+ exports [` Transform template test should render jsx: layout1 1` ] = `
38+ "import 'virtual:windi.css';
39+ export default function Layout({
40+ title ,
41+ children
42+ } ) {
43+ return /* #__PURE__*/ React .createElement (\\" div\\ " , {
44+ id: \\" layout-wrapper\\ " ,
45+ className: ' bg-gray-100 text-gray-900 dark:bg-gray-900 dark:text-gray-100'
46+ }, /* #__PURE__*/ React .createElement (Head , null , /* #__PURE__*/ React .createElement (\\" title\\ " , null , title )), children , /* #__PURE__*/ React .createElement (\\" style\\ " , {
47+ jsx: true ,
48+ global: true
49+ }, \` body:hover {
50+ -- tw - bg - opacity : 1 ;
51+ background - color : rgba (59 , 130 , 246 , var (-- tw - bg - opacity ));
52+ font - size : 0.75rem ;
53+ line - height : 1rem ;
54+ }
55+ body {
56+ height : 100vh ;
57+ margin : 0px ;
58+ overflow : hidden ;
59+ padding : 0px ;
60+ width : 100vw ;
61+ font - family : ' -apple-system' , ' BlinkMacSystemFont' , ' Segoe UI' ,
62+ ' Roboto' , ' Oxygen' , ' Ubuntu' , ' Cantarell' , ' Fira Sans' , ' Droid Sans' ,
63+ ' Helvetica Neue' , ' sans-serif' ;
64+ - webkit - font - smoothing : antialiased ;
65+ - moz - osx - font - smoothing : grayscale ;
66+ }
67+ \` ));
68+ }"
69+ ` ;
70+
71+ exports [` Transform template test should render jsx: layout2 1` ] = `
72+ "import 'virtual:windi.css';
73+ export default function Layout({
74+ title ,
75+ children
76+ } ) {
77+ return /* #__PURE__*/ React .createElement (\\" div\\ " , {
78+ id: \\" layout-wrapper\\ " ,
79+ className: \\" bg-gray-100 text-gray-900\\ "
80+ }, /* #__PURE__*/ React .createElement (Head , null , /* #__PURE__*/ React .createElement (\\" title\\ " , null , title )), children , /* #__PURE__*/ React .createElement (\\" style\\ " , {
81+ jsx: true ,
82+ global: true
83+ }, \` body:hover {
84+ -- tw - bg - opacity : 1 ;
85+ background - color : rgba (59 , 130 , 246 , var (-- tw - bg - opacity ));
86+ font - size : 0.75rem ;
87+ line - height : 1rem ;
88+ }
89+ body {
90+ height : 100vh ;
91+ margin : 0px ;
92+ overflow : hidden ;
93+ padding : 0px ;
94+ width : 100vw ;
95+ font - family : ' -apple-system' , ' BlinkMacSystemFont' , ' Segoe UI' ,
96+ ' Roboto' , ' Oxygen' , ' Ubuntu' , ' Cantarell' , ' Fira Sans' , ' Droid Sans' ,
97+ ' Helvetica Neue' , ' sans-serif' ;
98+ - webkit - font - smoothing : antialiased ;
99+ - moz - osx - font - smoothing : grayscale ;
100+ }
101+ \` ));
102+ }"
103+ ` ;
104+
37105exports [` Transform template test should render jsx: vue windi 1` ] = `
38106"// Imports
39107import ___CSS_LOADER_API_IMPORT___ from \\ "../../../node_modules/css-loader/dist/runtime/api.js\\ ";
0 commit comments