Skip to content

Commit e351b55

Browse files
authored
Merge pull request #1 from tithely/enhance-transform-attribute
[ENHANCE] Fix transform attribute
2 parents 78cd241 + 8b7cc98 commit e351b55

File tree

1,049 files changed

+3145
-1049
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,049 files changed

+3145
-1049
lines changed

bin/assemble.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
136136
},
137137
displayMirrored() {
138138
const { mirrored, contextMirrored } = this as IconProps & IconContext
139-
return mirrored ?? contextMirrored ? \`scale(-1, 1)\` : \`none\`
139+
return mirrored !== undefined
140+
? (mirrored ? \`scale(-1, 1)\` : undefined)
141+
: (contextMirrored ? \`scale(-1, 1)\` : undefined)
140142
}
141143
}
142144
})

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tithely/phosphor-vue",
3-
"version": "1.4.2",
3+
"version": "1.4.3",
44
"description": "A clean and friendly icon family for Vue, too!",
55
"repository": "[email protected]:tithely/phosphor-vue.git",
66
"author": "Aaron Maurice <[email protected]>",

src/components/PhActivity.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
7272
},
7373
displayMirrored() {
7474
const { mirrored, contextMirrored } = this as IconProps & IconContext
75-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
75+
return mirrored !== undefined
76+
? (mirrored ? `scale(-1, 1)` : undefined)
77+
: (contextMirrored ? `scale(-1, 1)` : undefined)
7678
}
7779
}
7880
})

src/components/PhAddressBook.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
349349
},
350350
displayMirrored() {
351351
const { mirrored, contextMirrored } = this as IconProps & IconContext
352-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
352+
return mirrored !== undefined
353+
? (mirrored ? `scale(-1, 1)` : undefined)
354+
: (contextMirrored ? `scale(-1, 1)` : undefined)
353355
}
354356
}
355357
})

src/components/PhAirplane.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
7474
},
7575
displayMirrored() {
7676
const { mirrored, contextMirrored } = this as IconProps & IconContext
77-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
77+
return mirrored !== undefined
78+
? (mirrored ? `scale(-1, 1)` : undefined)
79+
: (contextMirrored ? `scale(-1, 1)` : undefined)
7880
}
7981
}
8082
})

src/components/PhAirplaneInFlight.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
119119
},
120120
displayMirrored() {
121121
const { mirrored, contextMirrored } = this as IconProps & IconContext
122-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
122+
return mirrored !== undefined
123+
? (mirrored ? `scale(-1, 1)` : undefined)
124+
: (contextMirrored ? `scale(-1, 1)` : undefined)
123125
}
124126
}
125127
})

src/components/PhAirplaneLanding.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
119119
},
120120
displayMirrored() {
121121
const { mirrored, contextMirrored } = this as IconProps & IconContext
122-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
122+
return mirrored !== undefined
123+
? (mirrored ? `scale(-1, 1)` : undefined)
124+
: (contextMirrored ? `scale(-1, 1)` : undefined)
123125
}
124126
}
125127
})

src/components/PhAirplaneTakeoff.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
119119
},
120120
displayMirrored() {
121121
const { mirrored, contextMirrored } = this as IconProps & IconContext
122-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
122+
return mirrored !== undefined
123+
? (mirrored ? `scale(-1, 1)` : undefined)
124+
: (contextMirrored ? `scale(-1, 1)` : undefined)
123125
}
124126
}
125127
})

src/components/PhAirplaneTilt.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
7474
},
7575
displayMirrored() {
7676
const { mirrored, contextMirrored } = this as IconProps & IconContext
77-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
77+
return mirrored !== undefined
78+
? (mirrored ? `scale(-1, 1)` : undefined)
79+
: (contextMirrored ? `scale(-1, 1)` : undefined)
7880
}
7981
}
8082
})

src/components/PhAirplay.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
104104
},
105105
displayMirrored() {
106106
const { mirrored, contextMirrored } = this as IconProps & IconContext
107-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
107+
return mirrored !== undefined
108+
? (mirrored ? `scale(-1, 1)` : undefined)
109+
: (contextMirrored ? `scale(-1, 1)` : undefined)
108110
}
109111
}
110112
})

src/components/PhAlarm.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
204204
},
205205
displayMirrored() {
206206
const { mirrored, contextMirrored } = this as IconProps & IconContext
207-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
207+
return mirrored !== undefined
208+
? (mirrored ? `scale(-1, 1)` : undefined)
209+
: (contextMirrored ? `scale(-1, 1)` : undefined)
208210
}
209211
}
210212
})

src/components/PhAlien.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
181181
},
182182
displayMirrored() {
183183
const { mirrored, contextMirrored } = this as IconProps & IconContext
184-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
184+
return mirrored !== undefined
185+
? (mirrored ? `scale(-1, 1)` : undefined)
186+
: (contextMirrored ? `scale(-1, 1)` : undefined)
185187
}
186188
}
187189
})

src/components/PhAlignBottom.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
205205
},
206206
displayMirrored() {
207207
const { mirrored, contextMirrored } = this as IconProps & IconContext
208-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
208+
return mirrored !== undefined
209+
? (mirrored ? `scale(-1, 1)` : undefined)
210+
: (contextMirrored ? `scale(-1, 1)` : undefined)
209211
}
210212
}
211213
})

src/components/PhAlignBottomSimple.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
143143
},
144144
displayMirrored() {
145145
const { mirrored, contextMirrored } = this as IconProps & IconContext
146-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
146+
return mirrored !== undefined
147+
? (mirrored ? `scale(-1, 1)` : undefined)
148+
: (contextMirrored ? `scale(-1, 1)` : undefined)
147149
}
148150
}
149151
})

src/components/PhAlignCenterHorizontal.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
289289
},
290290
displayMirrored() {
291291
const { mirrored, contextMirrored } = this as IconProps & IconContext
292-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
292+
return mirrored !== undefined
293+
? (mirrored ? `scale(-1, 1)` : undefined)
294+
: (contextMirrored ? `scale(-1, 1)` : undefined)
293295
}
294296
}
295297
})

src/components/PhAlignCenterHorizontalSimple.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
188188
},
189189
displayMirrored() {
190190
const { mirrored, contextMirrored } = this as IconProps & IconContext
191-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
191+
return mirrored !== undefined
192+
? (mirrored ? `scale(-1, 1)` : undefined)
193+
: (contextMirrored ? `scale(-1, 1)` : undefined)
192194
}
193195
}
194196
})

src/components/PhAlignCenterVertical.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
295295
},
296296
displayMirrored() {
297297
const { mirrored, contextMirrored } = this as IconProps & IconContext
298-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
298+
return mirrored !== undefined
299+
? (mirrored ? `scale(-1, 1)` : undefined)
300+
: (contextMirrored ? `scale(-1, 1)` : undefined)
299301
}
300302
}
301303
})

src/components/PhAlignCenterVerticalSimple.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
188188
},
189189
displayMirrored() {
190190
const { mirrored, contextMirrored } = this as IconProps & IconContext
191-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
191+
return mirrored !== undefined
192+
? (mirrored ? `scale(-1, 1)` : undefined)
193+
: (contextMirrored ? `scale(-1, 1)` : undefined)
192194
}
193195
}
194196
})

src/components/PhAlignLeft.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
199199
},
200200
displayMirrored() {
201201
const { mirrored, contextMirrored } = this as IconProps & IconContext
202-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
202+
return mirrored !== undefined
203+
? (mirrored ? `scale(-1, 1)` : undefined)
204+
: (contextMirrored ? `scale(-1, 1)` : undefined)
203205
}
204206
}
205207
})

src/components/PhAlignLeftSimple.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
143143
},
144144
displayMirrored() {
145145
const { mirrored, contextMirrored } = this as IconProps & IconContext
146-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
146+
return mirrored !== undefined
147+
? (mirrored ? `scale(-1, 1)` : undefined)
148+
: (contextMirrored ? `scale(-1, 1)` : undefined)
147149
}
148150
}
149151
})

src/components/PhAlignRight.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
205205
},
206206
displayMirrored() {
207207
const { mirrored, contextMirrored } = this as IconProps & IconContext
208-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
208+
return mirrored !== undefined
209+
? (mirrored ? `scale(-1, 1)` : undefined)
210+
: (contextMirrored ? `scale(-1, 1)` : undefined)
209211
}
210212
}
211213
})

src/components/PhAlignRightSimple.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
143143
},
144144
displayMirrored() {
145145
const { mirrored, contextMirrored } = this as IconProps & IconContext
146-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
146+
return mirrored !== undefined
147+
? (mirrored ? `scale(-1, 1)` : undefined)
148+
: (contextMirrored ? `scale(-1, 1)` : undefined)
147149
}
148150
}
149151
})

src/components/PhAlignTop.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
205205
},
206206
displayMirrored() {
207207
const { mirrored, contextMirrored } = this as IconProps & IconContext
208-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
208+
return mirrored !== undefined
209+
? (mirrored ? `scale(-1, 1)` : undefined)
210+
: (contextMirrored ? `scale(-1, 1)` : undefined)
209211
}
210212
}
211213
})

src/components/PhAlignTopSimple.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
143143
},
144144
displayMirrored() {
145145
const { mirrored, contextMirrored } = this as IconProps & IconContext
146-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
146+
return mirrored !== undefined
147+
? (mirrored ? `scale(-1, 1)` : undefined)
148+
: (contextMirrored ? `scale(-1, 1)` : undefined)
147149
}
148150
}
149151
})

src/components/PhAnchor.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
202202
},
203203
displayMirrored() {
204204
const { mirrored, contextMirrored } = this as IconProps & IconContext
205-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
205+
return mirrored !== undefined
206+
? (mirrored ? `scale(-1, 1)` : undefined)
207+
: (contextMirrored ? `scale(-1, 1)` : undefined)
206208
}
207209
}
208210
})

src/components/PhAnchorSimple.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
157157
},
158158
displayMirrored() {
159159
const { mirrored, contextMirrored } = this as IconProps & IconContext
160-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
160+
return mirrored !== undefined
161+
? (mirrored ? `scale(-1, 1)` : undefined)
162+
: (contextMirrored ? `scale(-1, 1)` : undefined)
161163
}
162164
}
163165
})

src/components/PhAndroidLogo.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
194194
},
195195
displayMirrored() {
196196
const { mirrored, contextMirrored } = this as IconProps & IconContext
197-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
197+
return mirrored !== undefined
198+
? (mirrored ? `scale(-1, 1)` : undefined)
199+
: (contextMirrored ? `scale(-1, 1)` : undefined)
198200
}
199201
}
200202
})

src/components/PhAngularLogo.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
149149
},
150150
displayMirrored() {
151151
const { mirrored, contextMirrored } = this as IconProps & IconContext
152-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
152+
return mirrored !== undefined
153+
? (mirrored ? `scale(-1, 1)` : undefined)
154+
: (contextMirrored ? `scale(-1, 1)` : undefined)
153155
}
154156
}
155157
})

src/components/PhAperture.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
354354
},
355355
displayMirrored() {
356356
const { mirrored, contextMirrored } = this as IconProps & IconContext
357-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
357+
return mirrored !== undefined
358+
? (mirrored ? `scale(-1, 1)` : undefined)
359+
: (contextMirrored ? `scale(-1, 1)` : undefined)
358360
}
359361
}
360362
})

src/components/PhAppStoreLogo.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
312312
},
313313
displayMirrored() {
314314
const { mirrored, contextMirrored } = this as IconProps & IconContext
315-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
315+
return mirrored !== undefined
316+
? (mirrored ? `scale(-1, 1)` : undefined)
317+
: (contextMirrored ? `scale(-1, 1)` : undefined)
316318
}
317319
}
318320
})

src/components/PhAppWindow.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
128128
},
129129
displayMirrored() {
130130
const { mirrored, contextMirrored } = this as IconProps & IconContext
131-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
131+
return mirrored !== undefined
132+
? (mirrored ? `scale(-1, 1)` : undefined)
133+
: (contextMirrored ? `scale(-1, 1)` : undefined)
132134
}
133135
}
134136
})

src/components/PhAppleLogo.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
110110
},
111111
displayMirrored() {
112112
const { mirrored, contextMirrored } = this as IconProps & IconContext
113-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
113+
return mirrored !== undefined
114+
? (mirrored ? `scale(-1, 1)` : undefined)
115+
: (contextMirrored ? `scale(-1, 1)` : undefined)
114116
}
115117
}
116118
})

src/components/PhApplePodcastsLogo.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
178178
},
179179
displayMirrored() {
180180
const { mirrored, contextMirrored } = this as IconProps & IconContext
181-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
181+
return mirrored !== undefined
182+
? (mirrored ? `scale(-1, 1)` : undefined)
183+
: (contextMirrored ? `scale(-1, 1)` : undefined)
182184
}
183185
}
184186
})

src/components/PhArchive.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
169169
},
170170
displayMirrored() {
171171
const { mirrored, contextMirrored } = this as IconProps & IconContext
172-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
172+
return mirrored !== undefined
173+
? (mirrored ? `scale(-1, 1)` : undefined)
174+
: (contextMirrored ? `scale(-1, 1)` : undefined)
173175
}
174176
}
175177
})

src/components/PhArchiveBox.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
194194
},
195195
displayMirrored() {
196196
const { mirrored, contextMirrored } = this as IconProps & IconContext
197-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
197+
return mirrored !== undefined
198+
? (mirrored ? `scale(-1, 1)` : undefined)
199+
: (contextMirrored ? `scale(-1, 1)` : undefined)
198200
}
199201
}
200202
})

src/components/PhArchiveTray.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,9 @@ export default Vue.extend<{}, {}, IconComputed, IconProps>({
199199
},
200200
displayMirrored() {
201201
const { mirrored, contextMirrored } = this as IconProps & IconContext
202-
return mirrored ?? contextMirrored ? `scale(-1, 1)` : `none`
202+
return mirrored !== undefined
203+
? (mirrored ? `scale(-1, 1)` : undefined)
204+
: (contextMirrored ? `scale(-1, 1)` : undefined)
203205
}
204206
}
205207
})

0 commit comments

Comments
 (0)