@magicgol/polyjuice 0.16.0 → 0.17.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/assets/palette.scss +1 -0
- package/src/components/form/button/toggle-button/ToggleButton.vue +1 -1
- package/src/components/label/traffic-light/TrafficLight.vue +3 -0
- 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
@@ -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>
|