@magicgol/polyjuice 0.16.1 → 0.17.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/assets/palette.scss +1 -0
- package/src/components/card/vertical-card/VCard.vue +11 -5
- package/src/components/form/button/toggle-button/ToggleButton.vue +1 -1
- package/src/components/icon/badge/IconBadge.vue +3 -3
- package/src/components/typography/h1/HeadingOne.vue +1 -0
- package/src/components/typography/h2/HeadingTwo.stories.js +34 -0
- package/src/components/typography/h2/HeadingTwo.vue +26 -0
- package/src/components/typography/h3/HeadingThree.vue +2 -1
- package/src/components/typography/h4/HeadingFour.vue +1 -0
- package/src/documentation/Typography.stories.mdx +10 -0
package/package.json
CHANGED
package/src/assets/palette.scss
CHANGED
@@ -4,11 +4,15 @@
|
|
4
4
|
:class="classes"
|
5
5
|
@click="onClick"
|
6
6
|
>
|
7
|
-
<div class="mg-v-card-
|
7
|
+
<div class="mg-v-card-body p-3"><slot></slot></div>
|
8
8
|
<div
|
9
|
-
class="mg-v-card-footer
|
9
|
+
class="mg-v-card-footer px-3 pb-3"
|
10
10
|
v-if="footerVisibility"
|
11
|
-
|
11
|
+
>
|
12
|
+
<div class="mg-v-card-content pt-3">
|
13
|
+
<slot name="footer"></slot>
|
14
|
+
</div>
|
15
|
+
</div>
|
12
16
|
</div>
|
13
17
|
</template>
|
14
18
|
|
@@ -58,7 +62,7 @@ export default {
|
|
58
62
|
|
59
63
|
&--theme {
|
60
64
|
&-club {
|
61
|
-
& .mg-v-card-
|
65
|
+
& .mg-v-card-body {
|
62
66
|
background: linear-gradient(90deg, #D1EFFF 0%, #DDDAFC 99.65%) !important;
|
63
67
|
color: #777;
|
64
68
|
}
|
@@ -66,7 +70,9 @@ export default {
|
|
66
70
|
}
|
67
71
|
|
68
72
|
&-footer {
|
69
|
-
|
73
|
+
.mg-v-card-content {
|
74
|
+
border-top: 1px solid #cecece;
|
75
|
+
}
|
70
76
|
}
|
71
77
|
}
|
72
78
|
</style>
|
@@ -52,7 +52,7 @@ export default {
|
|
52
52
|
}
|
53
53
|
|
54
54
|
&--normal {
|
55
|
-
background-color:
|
55
|
+
background-color: #f5f5f5;
|
56
56
|
|
57
57
|
svg {
|
58
58
|
fill: map-get($palette, 'brand');
|
@@ -60,10 +60,10 @@ export default {
|
|
60
60
|
}
|
61
61
|
|
62
62
|
&--club {
|
63
|
-
background-color: map-get($palette, 'expertClub');
|
63
|
+
background-color: rgba(map-get($palette, 'expertClub'), 0.05);
|
64
64
|
|
65
65
|
svg {
|
66
|
-
fill:
|
66
|
+
fill: map-get($palette, 'expertClub');
|
67
67
|
}
|
68
68
|
}
|
69
69
|
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import MgHeadingTwo from './HeadingTwo.vue';
|
2
|
+
|
3
|
+
// More on default export: https://storybook.js.org/docs/vue/writing-stories/introduction#default-export
|
4
|
+
export default {
|
5
|
+
title: 'Typography/Heading/H2',
|
6
|
+
component: MgHeadingTwo,
|
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 => ({
|
26
|
+
components: { MgHeadingTwo },
|
27
|
+
template: `<mg-heading-two><template v-if="${'default' in args}" v-slot>${args.default}</template></mg-heading-two>`,
|
28
|
+
});
|
29
|
+
|
30
|
+
export const Default = Template.bind({});
|
31
|
+
// More on args: https://storybook.js.org/docs/vue/writing-stories/args
|
32
|
+
Default.args = {
|
33
|
+
default: 'heading 2'
|
34
|
+
};
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<template>
|
2
|
+
<div v-bind:class="classes"><slot></slot></div>
|
3
|
+
</template>
|
4
|
+
|
5
|
+
<script>
|
6
|
+
export default {
|
7
|
+
name: 'mg-heading-two',
|
8
|
+
|
9
|
+
computed: {
|
10
|
+
classes() {
|
11
|
+
return {
|
12
|
+
'mg-h2': true,
|
13
|
+
};
|
14
|
+
}
|
15
|
+
},
|
16
|
+
};
|
17
|
+
</script>
|
18
|
+
|
19
|
+
<style lang="scss">
|
20
|
+
.mg-h2 {
|
21
|
+
color: #343434;
|
22
|
+
font-family: 'Ubuntu', sans-serif;
|
23
|
+
font-size: 1rem;
|
24
|
+
font-weight: 500;
|
25
|
+
}
|
26
|
+
</style>
|