Skip to content

Commit 012da0e

Browse files
author
junbao
committed
fix(npm): upgrade deps
1 parent 5879dfc commit 012da0e

File tree

8 files changed

+1547
-1076
lines changed

8 files changed

+1547
-1076
lines changed

compare/output_legacy_typescript.js

Lines changed: 185 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -2,104 +2,202 @@
22
* Copyright 2019 acrazing <joking.young@gmail.com>. All rights reserved.
33
* @since 2019-10-29 13:50:09
44
*/
5+
var __makeTemplateObject =
6+
(this && this.__makeTemplateObject) ||
7+
function (cooked, raw) {
8+
if (Object.defineProperty) {
9+
Object.defineProperty(cooked, 'raw', { value: raw });
10+
} else {
11+
cooked.raw = raw;
12+
}
13+
return cooked;
14+
};
515
import React from 'react';
616
import styled, { createGlobalStyle, css, keyframes } from 'styled-components';
7-
const Base = (props) => React.createElement('div', null, props.name);
8-
export const Styled = [
9-
styled.div`
10-
display: block;
11-
background: ${() => 'black'};
12-
color: white;
13-
`,
14-
styled(Base)`
15-
display: block;
16-
background: ${() => 'black'};
17-
color: white;
18-
`,
17+
var Base = function (props) {
18+
return React.createElement('div', null, props.name);
19+
};
20+
export var Styled = [
21+
styled.div(
22+
templateObject_1 ||
23+
(templateObject_1 = __makeTemplateObject(
24+
['display:block;background:', ';color:white;'],
25+
['', ''],
26+
)),
27+
function () {
28+
return 'black';
29+
},
30+
),
31+
styled(Base)(
32+
templateObject_2 ||
33+
(templateObject_2 = __makeTemplateObject(
34+
['display:block;background:', ';color:white;'],
35+
['', ''],
36+
)),
37+
function () {
38+
return 'black';
39+
},
40+
),
1941
];
20-
export const cssFragment = css`
21-
display: block;
22-
background: ${() => 'black'};
23-
color: white;
24-
`;
25-
export const GlobalStyle = createGlobalStyle`div{display:block;background:${() =>
26-
'black'};color:white;}`;
27-
export const Keyframe = keyframes`0%{display:block;background:${'black'};color:white;}`;
28-
export const WithAttrs = [
29-
styled.div.attrs({ id: 'id' })`
30-
display: block;
31-
background: ${() => 'black'};
32-
color: white;
33-
`,
34-
styled(Base).attrs({ id: 'id' })`
35-
display: block;
36-
background: ${() => 'black'};
37-
color: white;
38-
`,
42+
export var cssFragment = css(
43+
templateObject_3 ||
44+
(templateObject_3 = __makeTemplateObject(
45+
['display:block;background:', ';color:white;'],
46+
['', ''],
47+
)),
48+
function () {
49+
return 'black';
50+
},
51+
);
52+
export var GlobalStyle = createGlobalStyle(
53+
templateObject_4 ||
54+
(templateObject_4 = __makeTemplateObject(
55+
['div{display:block;background:', ';color:white;}'],
56+
['', ''],
57+
)),
58+
function () {
59+
return 'black';
60+
},
61+
);
62+
export var Keyframe = keyframes(
63+
templateObject_5 ||
64+
(templateObject_5 = __makeTemplateObject(
65+
['0%{display:block;background:', ';color:white;}'],
66+
['', ''],
67+
)),
68+
'black',
69+
);
70+
export var WithAttrs = [
71+
styled.div.attrs({ id: 'id' })(
72+
templateObject_6 ||
73+
(templateObject_6 = __makeTemplateObject(
74+
['display:block;background:', ';color:white;'],
75+
['', ''],
76+
)),
77+
function () {
78+
return 'black';
79+
},
80+
),
81+
styled(Base).attrs({ id: 'id' })(
82+
templateObject_7 ||
83+
(templateObject_7 = __makeTemplateObject(
84+
['display:block;background:', ';color:white;'],
85+
['', ''],
86+
)),
87+
function () {
88+
return 'black';
89+
},
90+
),
3991
];
40-
export const StyleObject = [
92+
export var StyleObject = [
4193
styled.div({ background: '#FFFFFF' }),
4294
styled(Base)({ background: '#FFFFFF' }),
4395
];
44-
export const CastProps = [
45-
styled.div`
46-
display: block;
47-
background: ${() => 'black'};
48-
color: white;
49-
`,
50-
styled(Base)`
51-
display: block;
52-
background: ${() => 'black'};
53-
color: white;
54-
`,
96+
export var CastProps = [
97+
styled.div(
98+
templateObject_8 ||
99+
(templateObject_8 = __makeTemplateObject(
100+
['display:block;background:', ';color:white;'],
101+
['', ''],
102+
)),
103+
function () {
104+
return 'black';
105+
},
106+
),
107+
styled(Base)(
108+
templateObject_9 ||
109+
(templateObject_9 = __makeTemplateObject(
110+
['display:block;background:', ';color:white;'],
111+
['', ''],
112+
)),
113+
function () {
114+
return 'black';
115+
},
116+
),
55117
];
56-
export const CastFactory = [
57-
styled.div`
58-
display: block;
59-
background: ${() => 'black'};
60-
color: white;
61-
`,
62-
styled(Base)`
63-
display: block;
64-
background: ${() => 'black'};
65-
color: white;
66-
`,
118+
export var CastFactory = [
119+
styled.div(
120+
templateObject_10 ||
121+
(templateObject_10 = __makeTemplateObject(
122+
['\n display: block;\n background: ', ';\n color: white;\n '],
123+
['\n display: block;\n background: ', ';\n color: white;\n '],
124+
)),
125+
function () {
126+
return 'black';
127+
},
128+
),
129+
styled(Base)(
130+
templateObject_11 ||
131+
(templateObject_11 = __makeTemplateObject(
132+
['\n display: block;\n background: ', ';\n color: white;\n '],
133+
['\n display: block;\n background: ', ';\n color: white;\n '],
134+
)),
135+
function () {
136+
return 'black';
137+
},
138+
),
67139
];
68-
export const CastAll = [
69-
styled.div`
70-
display: block;
71-
background: ${() => 'black'};
72-
color: white;
73-
`,
74-
styled(Base)`
75-
display: block;
76-
background: ${() => 'black'};
77-
color: white;
78-
`,
140+
export var CastAll = [
141+
styled.div(
142+
templateObject_12 ||
143+
(templateObject_12 = __makeTemplateObject(
144+
['display:block;background:', ';color:white;'],
145+
['', ''],
146+
)),
147+
function () {
148+
return 'black';
149+
},
150+
),
151+
styled(Base)(
152+
templateObject_13 ||
153+
(templateObject_13 = __makeTemplateObject(
154+
['display:block;background:', ';color:white;'],
155+
['', ''],
156+
)),
157+
function () {
158+
return 'black';
159+
},
160+
),
79161
];
80-
export const TestBabelMinify = styled.div.withConfig({
162+
export var TestBabelMinify = styled.div.withConfig({
81163
displayName: 'TestBabelMinify',
82164
componentId: 'sc-12zezc7',
83-
})`
84-
.p0 {
85-
content: 'first raw';
86-
}
87-
.p1 {
88-
content: ${() => 'first span'};
89-
}
90-
.p2 {
91-
content: 'second raw';
92-
}
93-
.p3 {
94-
content: ${() => 'second span'};
95-
}
96-
content: '\\tlast raw
97-
';
98-
`;
99-
export const TestBabelMinifyOnce = styled.div.withConfig({
165+
})(
166+
templateObject_14 ||
167+
(templateObject_14 = __makeTemplateObject(
168+
[
169+
".p0{content:'first raw';}.p1{content:",
170+
";}.p2{content:'second raw';}.p3{content:",
171+
";}content:'\\tlast raw\n';",
172+
],
173+
['', '', ''],
174+
)),
175+
function () {
176+
return 'first span';
177+
},
178+
function () {
179+
return 'second span';
180+
},
181+
);
182+
export var TestBabelMinifyOnce = styled.div.withConfig({
100183
displayName: 'TestBabelMinifyOnce',
101184
componentId: 'sc-1oepzb3',
102-
})`
103-
content: 'raw
104-
';
105-
`;
185+
})(
186+
templateObject_15 ||
187+
(templateObject_15 = __makeTemplateObject(["content:'raw\n';"], [''])),
188+
);
189+
var templateObject_1,
190+
templateObject_2,
191+
templateObject_3,
192+
templateObject_4,
193+
templateObject_5,
194+
templateObject_6,
195+
templateObject_7,
196+
templateObject_8,
197+
templateObject_9,
198+
templateObject_10,
199+
templateObject_11,
200+
templateObject_12,
201+
templateObject_13,
202+
templateObject_14,
203+
templateObject_15;

0 commit comments

Comments
 (0)