@magicgol/polyjuice 0.37.5 → 0.37.6
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
@@ -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
|
},
|
@@ -46,6 +56,16 @@ export default {
|
|
46
56
|
.mg-club-square {
|
47
57
|
background-color: lighten(map-get($palette, 'expertClub'), 45%);
|
48
58
|
|
59
|
+
&--size {
|
60
|
+
&-small {
|
61
|
+
padding: 0.25rem 0.5rem;
|
62
|
+
}
|
63
|
+
|
64
|
+
&-normal {
|
65
|
+
padding: 0.5rem;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
49
69
|
&--disabled {
|
50
70
|
background-color: #efefef;
|
51
71
|
}
|
@@ -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;
|