@magicgol/polyjuice 0.38.2 → 0.39.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 +1 -1
- package/src/components/components/label/Label.vue +47 -24
- package/src/components/content/container/Container.vue +17 -3
- package/src/components/context/club/Container.stories.js +38 -0
- package/src/components/typography/h5/HeadingFive.vue +4 -2
- package/src/documentation/Brand.stories.mdx +1 -1
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
class="d-inline-flex align-items-center
|
|
3
|
+
class="d-inline-flex align-items-center text-uppercase"
|
|
4
4
|
:class="classes"
|
|
5
5
|
>
|
|
6
|
-
<div>
|
|
7
|
-
<slot></slot>
|
|
6
|
+
<div class="px-2">
|
|
7
|
+
<span><slot></slot></span>
|
|
8
8
|
</div>
|
|
9
9
|
</div>
|
|
10
10
|
</template>
|
|
@@ -55,12 +55,13 @@ export default {
|
|
|
55
55
|
@import '../../../assets/palette';
|
|
56
56
|
|
|
57
57
|
.mg-label {
|
|
58
|
-
border: 2px solid;
|
|
59
58
|
border-radius: 32px;
|
|
60
|
-
padding
|
|
61
|
-
padding-bottom: 0.0625rem;
|
|
59
|
+
padding: 0.125rem;
|
|
62
60
|
|
|
63
61
|
> div {
|
|
62
|
+
padding-top: 0.0625rem;
|
|
63
|
+
padding-bottom: 0.0625rem;
|
|
64
|
+
border-radius: 32px;
|
|
64
65
|
font-family: 'Raleway', sans-serif;
|
|
65
66
|
font-weight: 700;
|
|
66
67
|
}
|
|
@@ -81,56 +82,78 @@ export default {
|
|
|
81
82
|
|
|
82
83
|
&--theme {
|
|
83
84
|
&-light {
|
|
84
|
-
background: #
|
|
85
|
-
|
|
85
|
+
background-color: #f1f1f1;
|
|
86
|
+
> div {
|
|
87
|
+
background: #f7f7f7;
|
|
88
|
+
}
|
|
86
89
|
color: map-get($palette, 'text');
|
|
87
90
|
}
|
|
88
91
|
|
|
89
92
|
&-dark {
|
|
90
|
-
background: #
|
|
91
|
-
|
|
93
|
+
background-color: #555555;
|
|
94
|
+
> div {
|
|
95
|
+
background: #5b5b5b;
|
|
96
|
+
}
|
|
92
97
|
color: #fff;
|
|
93
98
|
}
|
|
94
99
|
|
|
95
100
|
&-club {
|
|
96
101
|
background: map-get($palette, 'club');
|
|
97
|
-
|
|
102
|
+
> div {
|
|
103
|
+
background: map-get($palette, 'club');
|
|
104
|
+
}
|
|
98
105
|
color: #fff;
|
|
99
106
|
}
|
|
100
107
|
|
|
101
108
|
&-trial {
|
|
102
|
-
background:
|
|
103
|
-
|
|
104
|
-
|
|
109
|
+
background: map-get($palette, 'club');
|
|
110
|
+
> div {
|
|
111
|
+
background: #fff;
|
|
112
|
+
> span {
|
|
113
|
+
background: map-get($palette, 'club');
|
|
114
|
+
-webkit-background-clip: text;
|
|
115
|
+
-webkit-text-fill-color: transparent;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
105
118
|
}
|
|
106
119
|
|
|
107
120
|
&-goalkeeper {
|
|
108
|
-
background: map-get($palette, '
|
|
109
|
-
|
|
121
|
+
background-color: map-get($palette, 'text');
|
|
122
|
+
> div {
|
|
123
|
+
background: map-get($palette, 'goalkeeper');
|
|
124
|
+
}
|
|
110
125
|
color: map-get($palette, 'text');
|
|
111
126
|
}
|
|
112
127
|
|
|
113
128
|
&-defender {
|
|
114
|
-
background: map-get($palette, '
|
|
115
|
-
|
|
129
|
+
background-color: map-get($palette, 'text');
|
|
130
|
+
> div {
|
|
131
|
+
background: map-get($palette, 'defender');
|
|
132
|
+
}
|
|
116
133
|
color: map-get($palette, 'text');
|
|
117
134
|
}
|
|
118
135
|
|
|
119
136
|
&-midfielder {
|
|
120
|
-
background: map-get($palette, '
|
|
121
|
-
|
|
137
|
+
background-color: map-get($palette, 'text');
|
|
138
|
+
> div {
|
|
139
|
+
background: map-get($palette, 'midfielder');
|
|
140
|
+
}
|
|
122
141
|
color: map-get($palette, 'text');
|
|
123
142
|
}
|
|
124
143
|
|
|
125
144
|
&-forward {
|
|
126
|
-
background: map-get($palette, '
|
|
127
|
-
|
|
145
|
+
background-color: map-get($palette, 'text');
|
|
146
|
+
> div {
|
|
147
|
+
background: map-get($palette, 'forward');
|
|
148
|
+
}
|
|
128
149
|
color: map-get($palette, 'text');
|
|
129
150
|
}
|
|
130
151
|
|
|
131
152
|
&-success {
|
|
132
|
-
background: map-get($palette, 'success');
|
|
133
|
-
|
|
153
|
+
background-color: map-get($palette, 'success');
|
|
154
|
+
> div {
|
|
155
|
+
background: map-get($palette, 'success');
|
|
156
|
+
}
|
|
134
157
|
color: #fff;
|
|
135
158
|
}
|
|
136
159
|
}
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
<div
|
|
3
3
|
:class="classes"
|
|
4
4
|
>
|
|
5
|
-
<
|
|
5
|
+
<div>
|
|
6
|
+
<slot></slot>
|
|
7
|
+
</div>
|
|
6
8
|
</div>
|
|
7
9
|
</template>
|
|
8
10
|
|
|
@@ -16,7 +18,8 @@ export default {
|
|
|
16
18
|
default: null,
|
|
17
19
|
validator: function (value) {
|
|
18
20
|
return [
|
|
19
|
-
'club'
|
|
21
|
+
'club',
|
|
22
|
+
'trial',
|
|
20
23
|
].indexOf(value) !== -1;
|
|
21
24
|
},
|
|
22
25
|
}
|
|
@@ -27,6 +30,7 @@ export default {
|
|
|
27
30
|
return {
|
|
28
31
|
'mg-container': true,
|
|
29
32
|
'mg-container-theme--club': this.theme === 'club',
|
|
33
|
+
'mg-container-theme--trial': this.theme === 'trial',
|
|
30
34
|
};
|
|
31
35
|
}
|
|
32
36
|
},
|
|
@@ -37,9 +41,19 @@ export default {
|
|
|
37
41
|
@import '../../../assets/palette';
|
|
38
42
|
|
|
39
43
|
.mg-container {
|
|
44
|
+
padding: 2px;
|
|
45
|
+
|
|
40
46
|
&-theme {
|
|
41
47
|
&--club {
|
|
42
|
-
background
|
|
48
|
+
background: map-get($palette, 'club');
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&--trial {
|
|
52
|
+
background: map-get($palette, 'club');
|
|
53
|
+
|
|
54
|
+
> div {
|
|
55
|
+
background: #fff;
|
|
56
|
+
}
|
|
43
57
|
}
|
|
44
58
|
}
|
|
45
59
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import MgContainer from '../../content/container/Container.vue';
|
|
2
|
+
|
|
3
|
+
// More on default export: https://storybook.js.org/docs/vue/writing-stories/introduction#default-export
|
|
4
|
+
export default {
|
|
5
|
+
title: 'Content/Container',
|
|
6
|
+
component: MgContainer,
|
|
7
|
+
// More on argTypes: https://storybook.js.org/docs/vue/api/argtypes
|
|
8
|
+
argTypes: {
|
|
9
|
+
default: {
|
|
10
|
+
description: "The default Vue slot",
|
|
11
|
+
control: {
|
|
12
|
+
type: 'text',
|
|
13
|
+
},
|
|
14
|
+
table: {
|
|
15
|
+
category: 'Slots',
|
|
16
|
+
type: {
|
|
17
|
+
summary: 'html',
|
|
18
|
+
},
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
// More on component templates: https://storybook.js.org/docs/vue/writing-stories/introduction#using-args
|
|
25
|
+
const Template = (args, { argTypes }) => ({
|
|
26
|
+
props: Object.keys(argTypes),
|
|
27
|
+
components: { MgContainer },
|
|
28
|
+
template: `<mg-container @click="$emit('click')" v-bind="$props">
|
|
29
|
+
<template v-if="${'default' in args}" v-slot>${args.default}</template>
|
|
30
|
+
</mg-container>`,
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export const Club = Template.bind({});
|
|
34
|
+
// More on args: https://storybook.js.org/docs/vue/writing-stories/args
|
|
35
|
+
Club.args = {
|
|
36
|
+
theme: 'club',
|
|
37
|
+
default: '<div>This is a vertical card.</div><div>What do you think about?</div>'
|
|
38
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div v-bind:class="classes"><slot></slot></div>
|
|
2
|
+
<div><span v-bind:class="classes"><slot></slot></span></div>
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script>
|
|
@@ -38,7 +38,9 @@ export default {
|
|
|
38
38
|
|
|
39
39
|
&--level {
|
|
40
40
|
&-club {
|
|
41
|
-
|
|
41
|
+
background: map-get($palette, 'club');
|
|
42
|
+
-webkit-background-clip: text;
|
|
43
|
+
-webkit-text-fill-color: transparent;
|
|
42
44
|
}
|
|
43
45
|
}
|
|
44
46
|
}
|
|
@@ -17,6 +17,6 @@ import {ColorItem, ColorPalette, Meta} from '@storybook/addon-docs';
|
|
|
17
17
|
/>
|
|
18
18
|
<ColorItem
|
|
19
19
|
title="Club"
|
|
20
|
-
colors={{'Electric Violet': 'linear-gradient(134.42deg, #
|
|
20
|
+
colors={{'Electric Violet': 'linear-gradient(134.42deg, #0df2bb 0.99%, #a714ed 100%)'}}
|
|
21
21
|
/>
|
|
22
22
|
</ColorPalette>
|