@magicgol/polyjuice 0.22.1 → 0.22.2

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.22.1",
3
+ "version": "0.22.2",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -20,7 +20,7 @@ export default {
20
20
  },
21
21
  theme: {
22
22
  control: { type: 'select' },
23
- options: [null, 'club', 'rating', 'role-p', 'role-d', 'role-c', 'role-a'],
23
+ options: [null, 'club', 'rating', 'goalkeeper', 'defender', 'midfielder', 'forward'],
24
24
  defaultValue: null
25
25
  },
26
26
  footer: {
@@ -80,7 +80,7 @@ Rating.args = {
80
80
  export const Goalkeeper = Template.bind({});
81
81
  // More on args: https://storybook.js.org/docs/vue/writing-stories/args
82
82
  Goalkeeper.args = {
83
- theme: 'role-p',
83
+ theme: 'goalkeeper',
84
84
  default: '<div>This is a vertical card.</div><div>What do you think about?</div>',
85
85
  footer: '<div>The footer content goes here</div>'
86
86
  };
@@ -88,7 +88,7 @@ Goalkeeper.args = {
88
88
  export const Defender = Template.bind({});
89
89
  // More on args: https://storybook.js.org/docs/vue/writing-stories/args
90
90
  Defender.args = {
91
- theme: 'role-d',
91
+ theme: 'defender',
92
92
  default: '<div>This is a vertical card.</div><div>What do you think about?</div>',
93
93
  footer: '<div>The footer content goes here</div>'
94
94
  };
@@ -96,7 +96,7 @@ Defender.args = {
96
96
  export const Midfielder = Template.bind({});
97
97
  // More on args: https://storybook.js.org/docs/vue/writing-stories/args
98
98
  Midfielder.args = {
99
- theme: 'role-c',
99
+ theme: 'midfielder',
100
100
  default: '<div>This is a vertical card.</div><div>What do you think about?</div>',
101
101
  footer: '<div>The footer content goes here</div>'
102
102
  };
@@ -104,7 +104,7 @@ Midfielder.args = {
104
104
  export const Forward = Template.bind({});
105
105
  // More on args: https://storybook.js.org/docs/vue/writing-stories/args
106
106
  Forward.args = {
107
- theme: 'role-a',
107
+ theme: 'forward',
108
108
  default: '<div>This is a vertical card.</div><div>What do you think about?</div>',
109
109
  footer: '<div>The footer content goes here</div>'
110
110
  };
@@ -25,7 +25,7 @@ export default {
25
25
  type: String,
26
26
  default: null,
27
27
  validator: function (value) {
28
- return ['club', 'rating', 'role-p', 'role-d', 'role-c', 'role-a'].indexOf(value) !== -1;
28
+ return ['club', 'rating', 'goalkeeper', 'defender', 'midfielder', 'forward'].indexOf(value) !== -1;
29
29
  },
30
30
  }
31
31
  },
@@ -36,10 +36,10 @@ export default {
36
36
  'mg-v-card': true,
37
37
  'mg-v-card--theme-club': this.theme === 'club',
38
38
  'mg-v-card--theme-rating': this.theme === 'rating',
39
- 'mg-v-card--theme-role-p': this.theme === 'role-p',
40
- 'mg-v-card--theme-role-d': this.theme === 'role-d',
41
- 'mg-v-card--theme-role-c': this.theme === 'role-c',
42
- 'mg-v-card--theme-role-a': this.theme === 'role-a',
39
+ 'mg-v-card--theme-goalkeeper': this.theme === 'goalkeeper',
40
+ 'mg-v-card--theme-defender': this.theme === 'defender',
41
+ 'mg-v-card--theme-midfielder': this.theme === 'midfielder',
42
+ 'mg-v-card--theme-forward': this.theme === 'forward',
43
43
  };
44
44
  },
45
45
  footerVisibility() {
@@ -73,22 +73,20 @@ export default {
73
73
  color: #777;
74
74
  }
75
75
 
76
- &-role {
77
- &-p {
78
- background-color: map-get($palette, 'goalkeeper');
79
- }
76
+ &-goalkeeper {
77
+ background-color: map-get($palette, 'goalkeeper');
78
+ }
80
79
 
81
- &-d {
82
- background-color: map-get($palette, 'defender');
83
- }
80
+ &-defender {
81
+ background-color: map-get($palette, 'defender');
82
+ }
84
83
 
85
- &-c {
86
- background-color: map-get($palette, 'midfielder');
87
- }
84
+ &-midfielder {
85
+ background-color: map-get($palette, 'midfielder');
86
+ }
88
87
 
89
- &-a {
90
- background-color: map-get($palette, 'forward');
91
- }
88
+ &-forward {
89
+ background-color: map-get($palette, 'forward');
92
90
  }
93
91
  }
94
92