@magicgol/polyjuice 0.22.0 → 0.22.1

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.0",
3
+ "version": "0.22.1",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div
3
- class="d-flex justify-content-between align-items-center rounded px-3"
3
+ class="d-flex justify-content-between align-items-center rounded px-3 bg-white"
4
4
  v-bind:class="classes"
5
5
  >
6
6
  <div
@@ -20,7 +20,7 @@ export default {
20
20
  },
21
21
  theme: {
22
22
  control: { type: 'select' },
23
- options: [null, 'club'],
23
+ options: [null, 'club', 'rating', 'role-p', 'role-d', 'role-c', 'role-a'],
24
24
  defaultValue: null
25
25
  },
26
26
  footer: {
@@ -60,3 +60,51 @@ Footer.args = {
60
60
  default: '<div>This is a vertical card.</div><div>What do you think about?</div>',
61
61
  footer: '<div>The footer content goes here</div>'
62
62
  };
63
+
64
+ export const Club = Template.bind({});
65
+ // More on args: https://storybook.js.org/docs/vue/writing-stories/args
66
+ Club.args = {
67
+ theme: 'club',
68
+ default: '<div>This is a vertical card.</div><div>What do you think about?</div>',
69
+ footer: '<div>The footer content goes here</div>'
70
+ };
71
+
72
+ export const Rating = Template.bind({});
73
+ // More on args: https://storybook.js.org/docs/vue/writing-stories/args
74
+ Rating.args = {
75
+ theme: 'rating',
76
+ default: '<div>This is a vertical card.</div><div>What do you think about?</div>',
77
+ footer: '<div>The footer content goes here</div>'
78
+ };
79
+
80
+ export const Goalkeeper = Template.bind({});
81
+ // More on args: https://storybook.js.org/docs/vue/writing-stories/args
82
+ Goalkeeper.args = {
83
+ theme: 'role-p',
84
+ default: '<div>This is a vertical card.</div><div>What do you think about?</div>',
85
+ footer: '<div>The footer content goes here</div>'
86
+ };
87
+
88
+ export const Defender = Template.bind({});
89
+ // More on args: https://storybook.js.org/docs/vue/writing-stories/args
90
+ Defender.args = {
91
+ theme: 'role-d',
92
+ default: '<div>This is a vertical card.</div><div>What do you think about?</div>',
93
+ footer: '<div>The footer content goes here</div>'
94
+ };
95
+
96
+ export const Midfielder = Template.bind({});
97
+ // More on args: https://storybook.js.org/docs/vue/writing-stories/args
98
+ Midfielder.args = {
99
+ theme: 'role-c',
100
+ default: '<div>This is a vertical card.</div><div>What do you think about?</div>',
101
+ footer: '<div>The footer content goes here</div>'
102
+ };
103
+
104
+ export const Forward = Template.bind({});
105
+ // More on args: https://storybook.js.org/docs/vue/writing-stories/args
106
+ Forward.args = {
107
+ theme: 'role-a',
108
+ default: '<div>This is a vertical card.</div><div>What do you think about?</div>',
109
+ footer: '<div>The footer content goes here</div>'
110
+ };
@@ -25,7 +25,7 @@ export default {
25
25
  type: String,
26
26
  default: null,
27
27
  validator: function (value) {
28
- return ['club'].indexOf(value) !== -1;
28
+ return ['club', 'rating', 'role-p', 'role-d', 'role-c', 'role-a'].indexOf(value) !== -1;
29
29
  },
30
30
  }
31
31
  },
@@ -35,6 +35,11 @@ export default {
35
35
  return {
36
36
  'mg-v-card': true,
37
37
  'mg-v-card--theme-club': this.theme === 'club',
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',
38
43
  };
39
44
  },
40
45
  footerVisibility() {
@@ -62,6 +67,29 @@ export default {
62
67
  background: linear-gradient(90deg, #D1EFFF 0%, #DDDAFC 99.65%) !important;
63
68
  color: #777;
64
69
  }
70
+
71
+ &-rating {
72
+ background-color: #f8fff8 !important;
73
+ color: #777;
74
+ }
75
+
76
+ &-role {
77
+ &-p {
78
+ background-color: map-get($palette, 'goalkeeper');
79
+ }
80
+
81
+ &-d {
82
+ background-color: map-get($palette, 'defender');
83
+ }
84
+
85
+ &-c {
86
+ background-color: map-get($palette, 'midfielder');
87
+ }
88
+
89
+ &-a {
90
+ background-color: map-get($palette, 'forward');
91
+ }
92
+ }
65
93
  }
66
94
 
67
95
  &-footer {