@magicgol/polyjuice 0.40.4 → 0.40.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magicgol/polyjuice",
3
- "version": "0.40.4",
3
+ "version": "0.40.5",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -13,7 +13,7 @@ export default {
13
13
  },
14
14
  theme: {
15
15
  control: { type: 'select' },
16
- options: ['light', 'dark', 'tag', 'club', 'trial', 'goalkeeper', 'defender', 'midfielder', 'forward', 'success'],
16
+ options: ['light', 'dark', 'tag', 'target', 'club', 'trial', 'goalkeeper', 'defender', 'midfielder', 'forward', 'success'],
17
17
  defaultValue: 'light'
18
18
  },
19
19
  default: {
@@ -26,7 +26,19 @@ export default {
26
26
  type: String,
27
27
  default: 'light',
28
28
  validator: function (value) {
29
- return ['light', 'dark', 'tag', 'club', 'trial', 'goalkeeper', 'defender', 'midfielder', 'forward', 'success'].indexOf(value) !== -1;
29
+ return [
30
+ 'light',
31
+ 'dark',
32
+ 'tag',
33
+ 'target',
34
+ 'club',
35
+ 'trial',
36
+ 'goalkeeper',
37
+ 'defender',
38
+ 'midfielder',
39
+ 'forward',
40
+ 'success'
41
+ ].indexOf(value) !== -1;
30
42
  },
31
43
  },
32
44
  },
@@ -40,6 +52,7 @@ export default {
40
52
  'mg-label--theme-light': this.theme === 'light',
41
53
  'mg-label--theme-dark': this.theme === 'dark',
42
54
  'mg-label--theme-tag': this.theme === 'tag',
55
+ 'mg-label--theme-target': this.theme === 'target',
43
56
  'mg-label--theme-club': this.theme === 'club',
44
57
  'mg-label--theme-trial': this.theme === 'trial',
45
58
  'mg-label--theme-goalkeeper': this.theme === 'goalkeeper',
@@ -62,8 +75,8 @@ export default {
62
75
  white-space: nowrap;
63
76
 
64
77
  > div {
65
- padding-top: 0.0625rem;
66
- padding-bottom: 0.0625rem;
78
+ display: inline-flex;
79
+ align-items: center;
67
80
  border-radius: 32px;
68
81
  font-family: 'Raleway', sans-serif;
69
82
  font-weight: 700;
@@ -74,12 +87,16 @@ export default {
74
87
  font-size: 0.625rem;
75
88
 
76
89
  > div {
77
- line-height: 1.1;
90
+ height: 0.875rem;
78
91
  }
79
92
  }
80
93
 
81
94
  &-normal {
82
95
  font-size: 0.875rem;
96
+
97
+ > div {
98
+ height: 1.5rem;
99
+ }
83
100
  }
84
101
  }
85
102
 
@@ -108,6 +125,18 @@ export default {
108
125
  color: map-get($palette, 'brand');
109
126
  }
110
127
 
128
+ &-target {
129
+ background-color: map-get($palette, 'brand');
130
+ > div {
131
+ background: #fff;
132
+ svg {
133
+ height: 12px;
134
+ width: 12px;
135
+ }
136
+ }
137
+ color: map-get($palette, 'brand');
138
+ }
139
+
111
140
  &-club {
112
141
  background: map-get($palette, 'club');
113
142
  > div {