@avakhula/ui 0.0.188 → 0.0.190

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.188",
3
+ "version": "0.0.190",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.umd.cjs",
6
6
  "source": "src/index.js",
@@ -10,7 +10,7 @@
10
10
  }"
11
11
  ></div>
12
12
 
13
- <div v-else-if="!name" class="empty-avatar" :class="classList">
13
+ <div v-else-if="validateName" class="empty-avatar" :class="classList">
14
14
  <ib-icon name="camera-outline" />
15
15
  </div>
16
16
 
@@ -48,6 +48,9 @@ export default {
48
48
  const classList = ["avatar", `avatar-size-${this.size}`];
49
49
  return classList;
50
50
  },
51
+ validateName() {
52
+ return this.name?.trim().split(" ").length < 2;
53
+ },
51
54
  initials() {
52
55
  const words = this.name.split(" ");
53
56
 
@@ -108,6 +108,10 @@ $tree-search-border-color: $gray-600;
108
108
  border-radius: 4px;
109
109
  border-color: transparent;
110
110
  @include outline(-2px, $choice-border-error-color);
111
+
112
+ &:focus {
113
+ @include outline(0px);
114
+ }
111
115
  }
112
116
  }
113
117