@magicgol/polyjuice 0.37.4 → 0.37.6
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/components/components/label/Label.stories.js +1 -1
- package/src/components/components/label/Label.vue +8 -1
- package/src/components/context/club/square/ClubSquare.stories.js +5 -0
- package/src/components/context/club/square/ClubSquare.vue +23 -3
- package/src/components/context/club/star/ClubStar.vue +12 -1
package/package.json
CHANGED
@@ -13,7 +13,7 @@ export default {
|
|
13
13
|
},
|
14
14
|
theme: {
|
15
15
|
control: { type: 'select' },
|
16
|
-
options: ['light', 'dark', 'goalkeeper', 'defender', 'midfielder', 'forward', 'success'],
|
16
|
+
options: ['light', 'dark', 'club', 'goalkeeper', 'defender', 'midfielder', 'forward', 'success'],
|
17
17
|
defaultValue: 'light'
|
18
18
|
},
|
19
19
|
default: {
|
@@ -25,7 +25,7 @@ export default {
|
|
25
25
|
type: String,
|
26
26
|
default: 'light',
|
27
27
|
validator: function (value) {
|
28
|
-
return ['light', 'dark', 'goalkeeper', 'defender', 'midfielder', 'forward', 'success'].indexOf(value) !== -1;
|
28
|
+
return ['light', 'dark', 'club', 'goalkeeper', 'defender', 'midfielder', 'forward', 'success'].indexOf(value) !== -1;
|
29
29
|
},
|
30
30
|
},
|
31
31
|
},
|
@@ -38,6 +38,7 @@ export default {
|
|
38
38
|
'mg-label--size-normal': this.size === 'normal',
|
39
39
|
'mg-label--theme-light': this.theme === 'light',
|
40
40
|
'mg-label--theme-dark': this.theme === 'dark',
|
41
|
+
'mg-label--theme-club': this.theme === 'club',
|
41
42
|
'mg-label--theme-goalkeeper': this.theme === 'goalkeeper',
|
42
43
|
'mg-label--theme-defender': this.theme === 'defender',
|
43
44
|
'mg-label--theme-midfielder': this.theme === 'midfielder',
|
@@ -90,6 +91,12 @@ export default {
|
|
90
91
|
color: #fff;
|
91
92
|
}
|
92
93
|
|
94
|
+
&-club {
|
95
|
+
background: #fff;
|
96
|
+
border-color: map-get($palette, 'expertClub');;
|
97
|
+
color: map-get($palette, 'expertClub');;
|
98
|
+
}
|
99
|
+
|
93
100
|
&-goalkeeper {
|
94
101
|
background: map-get($palette, 'goalkeeper');
|
95
102
|
border-color: map-get($palette, 'text');
|
@@ -6,6 +6,11 @@ export default {
|
|
6
6
|
component: MgClubSquare,
|
7
7
|
// More on argTypes: https://storybook.js.org/docs/vue/api/argtypes
|
8
8
|
argTypes: {
|
9
|
+
size: {
|
10
|
+
control: { type: 'select' },
|
11
|
+
options: ['normal', 'small'],
|
12
|
+
defaultValue: 'normal'
|
13
|
+
},
|
9
14
|
default: {
|
10
15
|
description: "The default Vue slot",
|
11
16
|
control: {
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<template>
|
2
2
|
<div
|
3
|
-
class="d-inline-block rounded
|
3
|
+
class="d-inline-block rounded"
|
4
4
|
:class="classes"
|
5
5
|
>
|
6
|
-
<mg-club-star :trial="trial" :disabled="disabled"><slot></slot></mg-club-star>
|
6
|
+
<mg-club-star :size="size" :trial="trial" :disabled="disabled"><slot></slot></mg-club-star>
|
7
7
|
</div>
|
8
8
|
</template>
|
9
9
|
|
@@ -23,6 +23,14 @@ export default {
|
|
23
23
|
type: Boolean,
|
24
24
|
default: false
|
25
25
|
},
|
26
|
+
|
27
|
+
size: {
|
28
|
+
type: String,
|
29
|
+
default: 'normal',
|
30
|
+
validator: function (value) {
|
31
|
+
return ['small', 'normal'].indexOf(value) !== -1;
|
32
|
+
},
|
33
|
+
}
|
26
34
|
},
|
27
35
|
|
28
36
|
computed: {
|
@@ -30,6 +38,8 @@ export default {
|
|
30
38
|
return {
|
31
39
|
'mg-club-square': true,
|
32
40
|
'mg-club-square--disabled': this.disabled === true,
|
41
|
+
'mg-club-square--size-small': this.size === 'small',
|
42
|
+
'mg-club-square--size-normal': this.size === 'normal',
|
33
43
|
};
|
34
44
|
}
|
35
45
|
},
|
@@ -44,7 +54,17 @@ export default {
|
|
44
54
|
@import '../../../../assets/palette';
|
45
55
|
|
46
56
|
.mg-club-square {
|
47
|
-
background-color: lighten(map-get($palette, 'expertClub'),
|
57
|
+
background-color: lighten(map-get($palette, 'expertClub'), 45%);
|
58
|
+
|
59
|
+
&--size {
|
60
|
+
&-small {
|
61
|
+
padding: 0.25rem 0.5rem;
|
62
|
+
}
|
63
|
+
|
64
|
+
&-normal {
|
65
|
+
padding: 0.5rem;
|
66
|
+
}
|
67
|
+
}
|
48
68
|
|
49
69
|
&--disabled {
|
50
70
|
background-color: #efefef;
|
@@ -67,7 +67,6 @@ export default {
|
|
67
67
|
|
68
68
|
div {
|
69
69
|
font-family: Ubuntu, sans-serif;
|
70
|
-
font-size: 1rem;
|
71
70
|
font-weight: 500;
|
72
71
|
line-height: 11px;
|
73
72
|
}
|
@@ -78,6 +77,10 @@ export default {
|
|
78
77
|
|
79
78
|
&-size {
|
80
79
|
&-small {
|
80
|
+
div {
|
81
|
+
font-size: 0.75rem;
|
82
|
+
}
|
83
|
+
|
81
84
|
svg {
|
82
85
|
height: 1rem;
|
83
86
|
min-height: 1rem;
|
@@ -87,6 +90,10 @@ export default {
|
|
87
90
|
}
|
88
91
|
|
89
92
|
&-normal {
|
93
|
+
div {
|
94
|
+
font-size: 1rem;
|
95
|
+
}
|
96
|
+
|
90
97
|
svg {
|
91
98
|
height: 1.25rem;
|
92
99
|
min-height: 1.25rem;
|
@@ -96,6 +103,10 @@ export default {
|
|
96
103
|
}
|
97
104
|
|
98
105
|
&-large {
|
106
|
+
div {
|
107
|
+
font-size: 1rem;
|
108
|
+
}
|
109
|
+
|
99
110
|
svg {
|
100
111
|
height: 1.5rem;
|
101
112
|
min-height: 1.5rem;
|