@avakhula/ui 0.0.155 → 0.0.157

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.155",
3
+ "version": "0.0.157",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.umd.cjs",
6
6
  "source": "src/index.js",
package/src/App.vue CHANGED
@@ -6,7 +6,7 @@
6
6
  Email address
7
7
  </ib-label>
8
8
 
9
- <ib-input required autofocus type="email" id="email" name="email" ref="email"
9
+ <ib-input required autofocus type="email" id="email" name="email" ref="email" :disabled="disabled"
10
10
  placeholder="Enter your email address" />
11
11
  </ib-form-group>
12
12
 
@@ -15,9 +15,11 @@
15
15
  Password
16
16
  </ib-label>
17
17
 
18
- <ib-input required autofocus type="password" id="password" name="password" />
18
+ <ib-input required autofocus type="password" id="password" name="password" :disabled="disabled" />
19
19
  </ib-form-group>
20
20
  </form>
21
+
22
+ <button type="button" @click="() => disabled = !disabled">Disbaled</button>
21
23
  </template>
22
24
 
23
25
  <script>
@@ -27,6 +29,11 @@ import IbFormGroup from "./components/Form/FormGroup/FormGroup.vue"
27
29
 
28
30
 
29
31
  export default {
32
+ data() {
33
+ return {
34
+ disabled: false,
35
+ }
36
+ },
30
37
  components: {
31
38
  IbInput, IbLabel, IbFormGroup
32
39
  }
@@ -6,6 +6,7 @@
6
6
  <input
7
7
  v-bind="attrs"
8
8
  v-model="actualValue"
9
+ ref="field"
9
10
  :readonly="readonly"
10
11
  :disabled="disabled"
11
12
  :id="id"
@@ -166,6 +167,11 @@ export default {
166
167
  showPassword: false,
167
168
  };
168
169
  },
170
+ mounted() {
171
+ setTimeout(() => {
172
+ this.$globalEvents.$emit(`label:disabled:${this.id}`, this.disabled);
173
+ }, 100);
174
+ },
169
175
  methods: {
170
176
  toggleShowPassword() {
171
177
  this.showPassword = !this.showPassword;
@@ -99,6 +99,10 @@ export default {
99
99
  color: $neutral-500;
100
100
  }
101
101
  }
102
+
103
+ span.required {
104
+ color: $neutral-500;
105
+ }
102
106
  }
103
107
 
104
108
  .info-button {