@avakhula/ui 0.0.154 → 0.0.155

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.154",
3
+ "version": "0.0.155",
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,20 +1,23 @@
1
1
  <template>
2
- <ib-form-group class="form-group">
3
- <ib-label for=email required>
4
- Email address
5
- </ib-label>
2
+ <form action="">
6
3
 
7
- <ib-input required autofocus type="email" id="email" name="email" ref="email"
8
- placeholder="Enter your email address" />
9
- </ib-form-group>
4
+ <ib-form-group class="form-group">
5
+ <ib-label for="email" required>
6
+ Email address
7
+ </ib-label>
10
8
 
11
- <ib-form-group class="form-group">
12
- <ib-label for=password required>
13
- Password
14
- </ib-label>
9
+ <ib-input required autofocus type="email" id="email" name="email" ref="email"
10
+ placeholder="Enter your email address" />
11
+ </ib-form-group>
15
12
 
16
- <ib-input required autofocus type="password" id="password" name="password" />
17
- </ib-form-group>
13
+ <ib-form-group class="form-group">
14
+ <ib-label for="password" required>
15
+ Password
16
+ </ib-label>
17
+
18
+ <ib-input required autofocus type="password" id="password" name="password" />
19
+ </ib-form-group>
20
+ </form>
18
21
  </template>
19
22
 
20
23
  <script>
@@ -13,7 +13,6 @@
13
13
  @input="onInput($event)"
14
14
  @blur="onBlur($event)"
15
15
  @focus="onFocus($event)"
16
- @keypress.stop
17
16
  />
18
17
 
19
18
  <ib-icon v-if="showIcon" class="icon-search" name="search-outline" />
@@ -21,10 +20,12 @@
21
20
  <ib-icon-button
22
21
  kind="ghost"
23
22
  class="button-clear"
24
- prevent-default
25
23
  :disabled="readonly"
26
24
  :help-text="clearButtonMessage"
27
- @click.prevent="clearInput"
25
+ prevent-default
26
+ type="button"
27
+ @click="clearInput"
28
+ @keypress.enter="clearInput"
28
29
  v-if="actualValue?.length && type !== 'password' && showClearButton"
29
30
  >
30
31
  <ib-icon name="close-outline"></ib-icon>
@@ -34,6 +35,7 @@
34
35
  kind="ghost"
35
36
  class="toggle-password"
36
37
  prevent-default
38
+ type="button"
37
39
  :disabled="readonly"
38
40
  :help-text="showPassword ? hidePasswordMessage : showPasswordMessage"
39
41
  @click.prevent="toggleShowPassword"
@@ -40,9 +40,9 @@ export default {
40
40
  },
41
41
  },
42
42
  mounted() {
43
- // this.$globalEvents.$on(`label:disabled:${this.for}`, (value) => {
44
- // this.disabled = value;
45
- // });
43
+ this.$globalEvents.$on(`label:disabled:${this.for}`, (value) => {
44
+ this.disabled = value;
45
+ });
46
46
  },
47
47
  data() {
48
48
  return {