@magicgol/polyjuice 0.52.1 → 0.53.0
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/content/card/vertical-card/VCard.vue +10 -1
- package/src/components/content/delimiter/vertical-delimiter/VDelimiter.stories.js +36 -0
- package/src/components/content/delimiter/vertical-delimiter/VDelimiter.vue +37 -0
- package/src/components/context/club/button/primary-club-button/PrimaryClubButton.vue +0 -1
- package/src/components/context/club/button/secondary-club-button/SecondaryClubButton.vue +0 -1
package/package.json
CHANGED
@@ -42,6 +42,10 @@ export default {
|
|
42
42
|
'transparent',
|
43
43
|
].indexOf(value) !== -1;
|
44
44
|
},
|
45
|
+
},
|
46
|
+
highlighted: {
|
47
|
+
type: Boolean,
|
48
|
+
default: false
|
45
49
|
}
|
46
50
|
},
|
47
51
|
|
@@ -49,6 +53,7 @@ export default {
|
|
49
53
|
classes() {
|
50
54
|
return {
|
51
55
|
'mg-v-card': true,
|
56
|
+
'mg-v-card--highlighted': this.highlighted === true,
|
52
57
|
'mg-v-card--theme-club': this.theme === 'club',
|
53
58
|
'mg-v-card--theme-rating': this.theme === 'rating',
|
54
59
|
'mg-v-card--theme-goalkeeper': this.theme === 'goalkeeper',
|
@@ -80,7 +85,11 @@ export default {
|
|
80
85
|
|
81
86
|
.mg-v-card {
|
82
87
|
background: white;
|
83
|
-
box-shadow: 0 8px
|
88
|
+
box-shadow: 0 8px 15px 0 rgba(0, 0, 0, 0.3);
|
89
|
+
|
90
|
+
&--highlighted {
|
91
|
+
border: 2px solid map-get($palette, 'highlighted');
|
92
|
+
}
|
84
93
|
|
85
94
|
&--theme {
|
86
95
|
&-club {
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import MgVDelimiter from './VDelimiter.vue';
|
2
|
+
|
3
|
+
// More on default export: https://storybook.js.org/docs/vue/writing-stories/introduction#default-export
|
4
|
+
export default {
|
5
|
+
title: 'Content/Delimiter/VDelimiter',
|
6
|
+
component: MgVDelimiter,
|
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: { MgVDelimiter },
|
28
|
+
template: `<mg-v-delimiter v-bind="$props"><template v-if="${'default' in args}" v-slot>${args.default}</template></mg-v-delimiter>`,
|
29
|
+
});
|
30
|
+
|
31
|
+
export const Default = Template.bind({});
|
32
|
+
// More on args: https://storybook.js.org/docs/vue/writing-stories/args
|
33
|
+
Default.args = {
|
34
|
+
default: 'this is the list head',
|
35
|
+
color: '#f00'
|
36
|
+
};
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<template>
|
2
|
+
<div
|
3
|
+
class="d-flex"
|
4
|
+
:class="classes"
|
5
|
+
>
|
6
|
+
<div
|
7
|
+
class="mr-3"
|
8
|
+
style="border: 2px solid; border-radius: 5px;"
|
9
|
+
:style="{borderColor: color, backgroundColor: color}"
|
10
|
+
></div>
|
11
|
+
<slot></slot>
|
12
|
+
</div>
|
13
|
+
</template>
|
14
|
+
|
15
|
+
<script>
|
16
|
+
export default {
|
17
|
+
name: 'mg-v-delimiter',
|
18
|
+
|
19
|
+
props: {
|
20
|
+
color: {
|
21
|
+
type: String,
|
22
|
+
validator: value => {
|
23
|
+
const regex = new RegExp(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/);
|
24
|
+
return regex.test(value);
|
25
|
+
},
|
26
|
+
},
|
27
|
+
},
|
28
|
+
|
29
|
+
computed: {
|
30
|
+
classes() {
|
31
|
+
return {
|
32
|
+
'mg-v-delimiter': true,
|
33
|
+
};
|
34
|
+
}
|
35
|
+
},
|
36
|
+
};
|
37
|
+
</script>
|