@magicgol/polyjuice 0.14.0 → 0.14.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/.storybook/main.js
CHANGED
package/package.json
CHANGED
@@ -8,7 +8,7 @@ export default {
|
|
8
8
|
argTypes: {
|
9
9
|
size: {
|
10
10
|
control: { type: 'select' },
|
11
|
-
options: ['large', 'normal', 'small', 'x-small'],
|
11
|
+
options: ['huge', 'large', 'normal', 'small', 'x-small'],
|
12
12
|
defaultValue: 'normal'
|
13
13
|
},
|
14
14
|
liveBadge: {
|
@@ -48,12 +48,13 @@ export const Large = Template.bind({});
|
|
48
48
|
// More on args: https://storybook.js.org/docs/vue/writing-stories/args
|
49
49
|
Large.args = {
|
50
50
|
name: 'VdF',
|
51
|
-
size: 'large'
|
51
|
+
size: 'large'
|
52
52
|
};
|
53
53
|
|
54
54
|
export const Online = Template.bind({});
|
55
55
|
// More on args: https://storybook.js.org/docs/vue/writing-stories/args
|
56
56
|
Online.args = {
|
57
57
|
online: true,
|
58
|
-
name: 'VdF'
|
58
|
+
name: 'VdF',
|
59
|
+
liveBadge: true
|
59
60
|
};
|
@@ -46,7 +46,7 @@ export default {
|
|
46
46
|
type: String,
|
47
47
|
default: 'normal',
|
48
48
|
validator: function (value) {
|
49
|
-
return ['large', 'normal', 'small', 'x-small'].indexOf(value) !== -1;
|
49
|
+
return ['huge', 'large', 'normal', 'small', 'x-small'].indexOf(value) !== -1;
|
50
50
|
},
|
51
51
|
},
|
52
52
|
liveBadge: {
|
@@ -67,6 +67,7 @@ export default {
|
|
67
67
|
'mg-profile-image--small': this.size === 'small',
|
68
68
|
'mg-profile-image--normal': this.size === 'normal',
|
69
69
|
'mg-profile-image--large': this.size === 'large',
|
70
|
+
'mg-profile-image--huge': this.size === 'huge',
|
70
71
|
'mg-profile-image--online': this.online === true,
|
71
72
|
'mg-profile-image--offline': this.online === false,
|
72
73
|
};
|
@@ -80,6 +81,7 @@ export default {
|
|
80
81
|
|
81
82
|
.mg-profile-image {
|
82
83
|
border-radius: 50%;
|
84
|
+
display: inline-flex;
|
83
85
|
font-family: 'Ubuntu', sans-serif;
|
84
86
|
font-weight: 600;
|
85
87
|
|
@@ -111,6 +113,13 @@ export default {
|
|
111
113
|
width: 5rem;
|
112
114
|
}
|
113
115
|
|
116
|
+
&--huge {
|
117
|
+
height: 6.25rem;
|
118
|
+
min-width: 6.25rem;
|
119
|
+
font-size: 2.5rem;
|
120
|
+
width: 6.25rem;
|
121
|
+
}
|
122
|
+
|
114
123
|
.mg-acronym {
|
115
124
|
background-color: #5770bc;
|
116
125
|
border-radius: 50%;
|