@magicgol/polyjuice 0.20.0 → 0.20.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magicgol/polyjuice",
3
- "version": "0.20.0",
3
+ "version": "0.20.1",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -1,6 +1,7 @@
1
1
  import MgSelectionBox from './SelectionBox.vue';
2
2
  import MgPrimaryButton from "../../form/button/primary-button/PrimaryButton";
3
3
  import MgMagicCoinButton from "../../magic-coin/button/MagicCoinButton";
4
+ import MgTertiaryButton from "../../form/button/tertiary-button/TertiaryButton";
4
5
 
5
6
  // More on default export: https://storybook.js.org/docs/vue/writing-stories/introduction#default-export
6
7
  export default {
@@ -26,10 +27,12 @@ export default {
26
27
  // More on component templates: https://storybook.js.org/docs/vue/writing-stories/introduction#using-args
27
28
  const Template = (args, { argTypes }) => ({
28
29
  props: Object.keys(argTypes),
29
- components: { MgSelectionBox, MgPrimaryButton },
30
+ components: { MgSelectionBox, MgPrimaryButton, MgTertiaryButton },
30
31
  template: `<mg-selection-box v-bind="$props">
31
32
  <template v-if="${'default' in args}" v-slot>${args.default}</template>
32
- <template v-slot:cancel>Annulla</template>
33
+ <template v-slot:cancel>
34
+ <mg-tertiary-button>Annulla</mg-tertiary-button>
35
+ </template>
33
36
  <template v-slot:confirm>
34
37
  <mg-primary-button>Conferma</mg-primary-button>
35
38
  </template>
@@ -44,10 +47,12 @@ Default.args = {
44
47
 
45
48
  const PaymentTemplate = (args, { argTypes }) => ({
46
49
  props: Object.keys(argTypes),
47
- components: { MgSelectionBox, MgMagicCoinButton },
50
+ components: { MgSelectionBox, MgMagicCoinButton, MgTertiaryButton },
48
51
  template: `<mg-selection-box v-bind="$props">
49
52
  <template v-if="${'default' in args}" v-slot>${args.default}</template>
50
- <template v-slot:cancel>Annulla</template>
53
+ <template v-slot:cancel>
54
+ <mg-tertiary-button>Annulla</mg-tertiary-button>
55
+ </template>
51
56
  <template v-slot:confirm>
52
57
  <mg-magic-coin-button>Conferma</mg-magic-coin-button>
53
58
  </template>
@@ -7,9 +7,7 @@
7
7
  <div class="text-center text-uppercase"><slot></slot></div>
8
8
  <div class="d-flex align-items-center mt-2">
9
9
  <div class="w-50 text-center">
10
- <mg-tertiary-button
11
- v-on:click="$emit('cancel')"
12
- ><slot name="cancel"></slot></mg-tertiary-button>
10
+ <slot name="cancel"></slot>
13
11
  </div>
14
12
  <div class="w-50">
15
13
  <slot name="confirm"></slot>
@@ -22,8 +20,6 @@
22
20
  </template>
23
21
 
24
22
  <script>
25
- import MgTertiaryButton from "../../form/button/tertiary-button/TertiaryButton";
26
-
27
23
  export default {
28
24
  name: 'mg-selection-box',
29
25
 
@@ -34,10 +30,6 @@ export default {
34
30
  };
35
31
  },
36
32
  },
37
-
38
- components: {
39
- MgTertiaryButton
40
- },
41
33
  };
42
34
  </script>
43
35