@avakhula/ui 0.0.76 → 0.0.78

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.76",
3
+ "version": "0.0.78",
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,24 +1,18 @@
1
1
  <template>
2
- <avatar src="https://placehold.co/600x400"/>
3
-
4
- <alert :showCloseButton="true" @close="test">
5
- test
6
- </alert>
2
+ <ib-checkbox label="test" v-model:model-value="test" />
7
3
  </template>
8
4
 
9
5
  <script>
10
- import Avatar from "./components/Avatar/Avatar.vue";
11
- import Alert from "./components/Alert/Alert.vue";
6
+ import IbCheckbox from './components/Form/Checkbox/Checkbox.vue';
12
7
 
13
8
  export default {
14
- methods: {
15
- test() {
16
- console.log('close')
9
+ data() {
10
+ return {
11
+ test: null,
17
12
  }
18
13
  },
19
14
  components: {
20
- Avatar,
21
- Alert
15
+ IbCheckbox
22
16
  },
23
17
  };
24
18
  </script>
@@ -104,8 +104,8 @@ export default {
104
104
  methods: {
105
105
  onChange() {
106
106
  this.checked = !this.checked;
107
- this.$emit("input", this.checked);
108
107
  this.$emit("update:modelValue", this.checked);
108
+ this.$emit("input", this.checked);
109
109
  },
110
110
  },
111
111
  computed: {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="panel">
2
+ <div class="panel" :class="{ 'panel-error': error }">
3
3
  <div class="panel-head">
4
4
  <div class="head-title">
5
5
  <slot name="title" />
@@ -33,6 +33,10 @@ export default {
33
33
  type: Boolean,
34
34
  default: true,
35
35
  },
36
+ error: {
37
+ type: Boolean,
38
+ default: false,
39
+ },
36
40
  },
37
41
  };
38
42
  </script>
@@ -53,6 +57,7 @@ export default {
53
57
  }
54
58
 
55
59
  $panel-border-color: $gray-200;
60
+ $panel-error-outline-color: $red-800;
56
61
  $panel-title-color: $neutral-900;
57
62
  $panel-divider-color: $gray-300;
58
63
  $description-color: $gray-700;
@@ -61,6 +66,10 @@ $description-color: $gray-700;
61
66
  border: 1px solid $panel-border-color;
62
67
  border-radius: 4px;
63
68
 
69
+ &.panel-error {
70
+ outline: 2px solid $panel-error-outline-color;
71
+ }
72
+
64
73
  .panel-head {
65
74
  display: inline-flex;
66
75
  width: 100%;