@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
@@ -20,7 +20,7 @@ export default {
|
|
20
20
|
},
|
21
21
|
theme: {
|
22
22
|
control: { type: 'select' },
|
23
|
-
options: [null, 'club', 'rating', '
|
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: '
|
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: '
|
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: '
|
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: '
|
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', '
|
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-
|
40
|
-
'mg-v-card--theme-
|
41
|
-
'mg-v-card--theme-
|
42
|
-
'mg-v-card--theme-
|
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
|
-
&-
|
77
|
-
|
78
|
-
|
79
|
-
}
|
76
|
+
&-goalkeeper {
|
77
|
+
background-color: map-get($palette, 'goalkeeper');
|
78
|
+
}
|
80
79
|
|
81
|
-
|
82
|
-
|
83
|
-
|
80
|
+
&-defender {
|
81
|
+
background-color: map-get($palette, 'defender');
|
82
|
+
}
|
84
83
|
|
85
|
-
|
86
|
-
|
87
|
-
|
84
|
+
&-midfielder {
|
85
|
+
background-color: map-get($palette, 'midfielder');
|
86
|
+
}
|
88
87
|
|
89
|
-
|
90
|
-
|
91
|
-
}
|
88
|
+
&-forward {
|
89
|
+
background-color: map-get($palette, 'forward');
|
92
90
|
}
|
93
91
|
}
|
94
92
|
|