@magicgol/polyjuice 0.32.2 → 0.32.3

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.32.2",
3
+ "version": "0.32.3",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve",
6
6
  "build": "vue-cli-service build",
@@ -20,3 +20,9 @@ export const Default = Template.bind({});
20
20
  // More on args: https://storybook.js.org/docs/vue/writing-stories/args
21
21
  Default.args = {
22
22
  };
23
+
24
+ export const Disabled = Template.bind({});
25
+ // More on args: https://storybook.js.org/docs/vue/writing-stories/args
26
+ Disabled.args = {
27
+ disabled: true
28
+ };
@@ -1,8 +1,9 @@
1
1
  <template>
2
2
  <mg-tertiary-button
3
- @click="onClick"
4
- :class="classes"
5
3
  class="p-0"
4
+ :disabled="disabled"
5
+ :class="classes"
6
+ @click="onClick"
6
7
  >
7
8
  <svgicon name="circle-with-minus"></svgicon>
8
9
  </mg-tertiary-button>
@@ -14,6 +15,13 @@ import MgTertiaryButton from "../../button/tertiary-button/TertiaryButton";
14
15
  export default {
15
16
  name: 'mg-remove-button',
16
17
 
18
+ props: {
19
+ disabled: {
20
+ type: Boolean,
21
+ default: false,
22
+ }
23
+ },
24
+
17
25
  computed: {
18
26
  classes() {
19
27
  return {