@avakhula/ui 0.0.175 → 0.0.176

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.175",
3
+ "version": "0.0.176",
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,18 +1,30 @@
1
1
 
2
2
  <template>
3
3
  <form>
4
- <!-- <ib-input required autofocus type="email" id="email" name="email" ref="email" /> -->
5
4
  <ib-input name="password" type="password" />
5
+ <ib-input :disabled="test" name="username" type="email" />
6
6
 
7
- <input type="text" name="username" />
7
+ <!-- <input type="text" name="username" />
8
8
  <input type="password" name="password" />
9
- <input type="submit" name="Login">
9
+ <input type="submit" name="Login"> -->
10
+
11
+ <button type="button" @click="test = true">Disabled</button>
10
12
  </form>
11
13
  </template>
12
14
 
13
15
  <script>
14
16
  import IbInput from "./components/Form/Input/input.vue";
15
17
  export default {
18
+ data() {
19
+ return {
20
+ test: false,
21
+ };
22
+ },
23
+ methods: {
24
+ test1() {
25
+ console.log('dissabled')
26
+ }
27
+ },
16
28
  components: {
17
29
  IbInput
18
30
  }
@@ -160,6 +160,7 @@ $disabled-btn-color: $neutral-500;
160
160
  &.ib-btn-link,
161
161
  &:disabled {
162
162
  background: $ghost-btn-disabled-background;
163
+ border-color: transparent;
163
164
  }
164
165
  }
165
166
  }
@@ -102,26 +102,29 @@ $input-border-error-color: $red-800;
102
102
 
103
103
  &:-webkit-autofill {
104
104
  & + .button-clear {
105
- display: block!important;
105
+ display: flex!important;
106
106
  }
107
107
 
108
108
  & + .toggle-password{
109
- display: block!important;
109
+ display: flex!important;
110
110
  }
111
111
  }
112
112
 
113
+ &::-ms-reveal {
114
+ display: none;
115
+ }
116
+
113
117
  &:disabled {
114
118
  color: $input-disabled-color;
115
119
  background-color: $input-disabled-bg;
116
120
  border-bottom-color: $input-disabled-border-color;
117
121
 
118
- &::-ms-reveal {
119
- display: none;
120
- }
121
-
122
- &:-webkit-autofill {
123
- color: $input-disabled-color;
124
- background-color: $input-disabled-bg;
122
+ &:-webkit-autofill,
123
+ &:-webkit-autofill:hover,
124
+ &:-webkit-autofill:focus,
125
+ &:-webkit-autofill:active {
126
+ -webkit-box-shadow: 0 0 0 30px $input-disabled-bg inset !important;
127
+ -webkit-text-fill-color: $input-disabled-color;
125
128
  }
126
129
 
127
130
  &::placeholder {
@@ -143,6 +146,11 @@ $input-border-error-color: $red-800;
143
146
  border-radius: 4px;
144
147
  border-color: transparent;
145
148
  @include outline(-2px, $input-border-error-color);
149
+
150
+ &:focus {
151
+ border-bottom: 0px;
152
+ @include focus(-2px);
153
+ }
146
154
  }
147
155
  }
148
156
  }
@@ -6,8 +6,7 @@
6
6
  :kind="kind"
7
7
  :disabled="disabled"
8
8
  :prevent-default="preventDefault"
9
- >
10
- <!-- :tabindex="disabledFocus ? -1 : 0" -->
9
+ >
11
10
  <slot></slot>
12
11
  <ib-tooltip v-if="helpText.length" :text="helpText" />
13
12
  </ib-button>