@magicgol/polyjuice 0.33.3 → 0.33.4

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magicgol/polyjuice",
3
- "version": "0.33.3",
3
+ "version": "0.33.4",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -79,3 +79,13 @@ Large.args = {
79
79
  lastname: 'Dybala',
80
80
  };
81
81
 
82
+ export const ThemeInverted = Template.bind({});
83
+ // More on args: https://storybook.js.org/docs/vue/writing-stories/args
84
+ ThemeInverted.args = {
85
+ size: 'large',
86
+ role: 'A',
87
+ firstname: 'Paulo',
88
+ lastname: 'Dybala',
89
+ themeInverted: true
90
+ };
91
+
@@ -33,6 +33,7 @@
33
33
  <mg-role-badge
34
34
  :role="role"
35
35
  :size="size"
36
+ :theme-inverted="themeInverted"
36
37
  ></mg-role-badge>
37
38
  </div>
38
39
  <!-- end of ROLE BADGE -->
@@ -58,6 +59,10 @@ export default {
58
59
  type: Boolean,
59
60
  default: false,
60
61
  },
62
+ themeInverted: {
63
+ type: Boolean,
64
+ default: false,
65
+ },
61
66
  role: {
62
67
  type: String,
63
68
  default: null,
@@ -86,8 +91,10 @@ export default {
86
91
  classes() {
87
92
  return {
88
93
  'mg-h-footballer': true,
89
- 'mg-h-footballer--disabled': this.disabled,
90
- 'mg-h-footballer--deactivated': this.deactivated,
94
+ 'mg-h-footballer--disabled': this.disabled === true,
95
+ 'mg-h-footballer--deactivated': this.deactivated === true,
96
+ 'mg-h-footballer--inverted': this.inverted === true,
97
+ 'mg-h-footballer--theme-inverted': this.themeInverted === true,
91
98
  'mg-h-footballer--size-normal': this.size === 'normal',
92
99
  'mg-h-footballer--size-large': this.size === 'large',
93
100
  };
@@ -150,6 +157,12 @@ export default {
150
157
  }
151
158
  }
152
159
 
160
+ &--theme-inverted {
161
+ .mg-h-footballer-subtext {
162
+ color: map-get($palette, 'text') !important;
163
+ }
164
+ }
165
+
153
166
  &--size {
154
167
  &-normal {
155
168
  font-size: 0.875rem;
@@ -117,6 +117,7 @@ export default {
117
117
  > div {
118
118
  border: 1px solid #f6f6f6;
119
119
  background: #f6f6f6;
120
+ cursor: pointer;
120
121
  }
121
122
 
122
123
  &--disabled {
@@ -163,6 +164,7 @@ export default {
163
164
  border: 0 !important;
164
165
  box-shadow: none !important;
165
166
  background: none !important;
167
+ cursor: default !important;
166
168
  }
167
169
  }
168
170
  }
@@ -66,3 +66,10 @@ export const Forward = Template.bind({});
66
66
  Forward.args = {
67
67
  role: 'A',
68
68
  };
69
+
70
+ export const ThemeInverted = Template.bind({});
71
+ // More on args: https://storybook.js.org/docs/vue/writing-stories/args
72
+ ThemeInverted.args = {
73
+ role: 'A',
74
+ themeInverted: true
75
+ };
@@ -29,6 +29,10 @@ export default {
29
29
  validator: function (value) {
30
30
  return ['normal', 'large', 'huge'].indexOf(value) !== -1;
31
31
  },
32
+ },
33
+ themeInverted: {
34
+ type: Boolean,
35
+ default: false
32
36
  }
33
37
  },
34
38
 
@@ -36,6 +40,7 @@ export default {
36
40
  classes() {
37
41
  return {
38
42
  'mg-role-badge': true,
43
+ 'mg-role-badge--theme-inverted': this.themeInverted === true,
39
44
  'mg-role-badge--goalkeeper': this.role === 'P',
40
45
  'mg-role-badge--defender': this.role === 'D',
41
46
  'mg-role-badge--midfielder': this.role === 'C',
@@ -98,5 +103,9 @@ export default {
98
103
  &--forward {
99
104
  background-color: map-get($palette, 'forward');
100
105
  }
106
+
107
+ &--theme-inverted {
108
+ background-color: #fff !important;
109
+ }
101
110
  }
102
111
  </style>
@@ -23,6 +23,13 @@
23
23
  export default {
24
24
  name: 'mg-selection-box',
25
25
 
26
+ props: {
27
+ stretched: {
28
+ type: Boolean,
29
+ default: false
30
+ }
31
+ },
32
+
26
33
  computed: {
27
34
  classes() {
28
35
  return {
@@ -35,6 +42,8 @@ export default {
35
42
 
36
43
  <style lang="scss">
37
44
  .mg-selection-box {
45
+ height: 7.5rem;
46
+
38
47
  &-shadow {
39
48
  height: 7.5rem;
40
49
  }