@magicgol/polyjuice 0.16.1 → 0.17.1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magicgol/polyjuice",
3
- "version": "0.16.1",
3
+ "version": "0.17.1",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -4,6 +4,7 @@ $palette: (
4
4
  'freemium' :#004781,
5
5
  'coin': #ffcf73,
6
6
  'expertClub': #075169,
7
+ 'text': #343434,
7
8
  // ALERT
8
9
  'error': #ed4949,
9
10
  'warning': #ff614c,
@@ -4,11 +4,15 @@
4
4
  :class="classes"
5
5
  @click="onClick"
6
6
  >
7
- <div class="mg-v-card-content p-3"><slot></slot></div>
7
+ <div class="mg-v-card-body p-3"><slot></slot></div>
8
8
  <div
9
- class="mg-v-card-footer p-3"
9
+ class="mg-v-card-footer px-3 pb-3"
10
10
  v-if="footerVisibility"
11
- ><slot name="footer"></slot></div>
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-content {
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
- background-color: rgba(map-get($palette, 'brand'), 0.04);
73
+ .mg-v-card-content {
74
+ border-top: 1px solid #cecece;
75
+ }
70
76
  }
71
77
  }
72
78
  </style>
@@ -44,7 +44,7 @@ export default {
44
44
  };
45
45
  },
46
46
  contentVisibility() {
47
- return 'content' in this.$slots && this.value === true;
47
+ return 'content' in this.$slots && !!this.$slots.content && this.value === true;
48
48
  }
49
49
  },
50
50
  };
@@ -52,7 +52,7 @@ export default {
52
52
  }
53
53
 
54
54
  &--normal {
55
- background-color: white;
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: white;
66
+ fill: map-get($palette, 'expertClub');
67
67
  }
68
68
  }
69
69
  }
@@ -18,6 +18,7 @@ export default {
18
18
 
19
19
  <style lang="scss">
20
20
  .mg-h1 {
21
+ color: #343434;
21
22
  font-family: 'Ubuntu', sans-serif;
22
23
  font-size: 1.25rem;
23
24
  font-weight: 500;
@@ -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>
@@ -18,8 +18,9 @@ export default {
18
18
 
19
19
  <style lang="scss">
20
20
  .mg-h3 {
21
+ color: #343434;
21
22
  font-family: 'Ubuntu', sans-serif;
22
23
  font-size: 1rem;
23
- font-weight: 500;
24
+ font-weight: 400;
24
25
  }
25
26
  </style>
@@ -18,6 +18,7 @@ export default {
18
18
 
19
19
  <style lang="scss">
20
20
  .mg-h4 {
21
+ color: #343434;
21
22
  font-family: 'Ubuntu', sans-serif;
22
23
  font-size: 0.875rem;
23
24
  font-weight: 700;
@@ -0,0 +1,10 @@
1
+ import {ColorItem, ColorPalette, Meta} from '@storybook/addon-docs';
2
+
3
+ <Meta title="Colors/Brand" />
4
+
5
+ <ColorPalette>
6
+ <ColorItem
7
+ title="Text"
8
+ colors={{'Mine Shaft': '#343434'}}
9
+ />
10
+ </ColorPalette>