@avakhula/ui 0.0.74 → 0.0.76

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": "@avakhula/ui",
3
- "version": "0.0.74",
3
+ "version": "0.0.76",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.umd.cjs",
6
6
  "source": "src/index.js",
package/src/App.vue CHANGED
@@ -1,12 +1,24 @@
1
1
  <template>
2
2
  <avatar src="https://placehold.co/600x400"/>
3
+
4
+ <alert :showCloseButton="true" @close="test">
5
+ test
6
+ </alert>
3
7
  </template>
4
8
 
5
9
  <script>
6
10
  import Avatar from "./components/Avatar/Avatar.vue";
11
+ import Alert from "./components/Alert/Alert.vue";
12
+
7
13
  export default {
14
+ methods: {
15
+ test() {
16
+ console.log('close')
17
+ }
18
+ },
8
19
  components: {
9
20
  Avatar,
21
+ Alert
10
22
  },
11
23
  };
12
24
  </script>
@@ -21,7 +21,7 @@
21
21
  class="close-button"
22
22
  kind="ghost"
23
23
  v-if="showCloseButton"
24
- :preventDefault="true"
24
+ :prevent-default="true"
25
25
  @click="close"
26
26
  >
27
27
  <ib-icon class="close-button-icon" name="close-outline" />
@@ -61,6 +61,7 @@ export default {
61
61
  },
62
62
  methods: {
63
63
  close() {
64
+ console.log('test')
64
65
  this.$emit("close");
65
66
  },
66
67
  checkHeight() {
@@ -71,6 +71,9 @@ export default {
71
71
  value: {
72
72
  default: 1,
73
73
  },
74
+ modelValue: {
75
+ type: Boolean,
76
+ },
74
77
  isChecked: {
75
78
  type: Boolean,
76
79
  default: false,
@@ -102,6 +105,7 @@ export default {
102
105
  onChange() {
103
106
  this.checked = !this.checked;
104
107
  this.$emit("input", this.checked);
108
+ this.$emit("update:modelValue", this.checked);
105
109
  },
106
110
  },
107
111
  computed: {
@@ -1,5 +1,6 @@
1
1
  export const inputTypeOptions = {
2
2
  text: "text",
3
3
  password: "password",
4
+ email: "email",
4
5
  number: "number",
5
6
  };
@@ -50,11 +50,6 @@ export default {
50
50
  box-shadow: $ib-shadow-2;
51
51
  }
52
52
 
53
- b,
54
- p {
55
- @include lineClamp;
56
- }
57
-
58
53
  b {
59
54
  @include Ib-H4-medium;
60
55
  }