adata-ui 0.1.86 → 0.1.89

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": "adata-ui",
3
- "version": "0.1.86",
3
+ "version": "0.1.89",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -56,13 +56,14 @@
56
56
  &__field {
57
57
  position: relative;
58
58
  overflow: hidden;
59
- @media(max-width: 1025px) {
59
+ @media (max-width: 1025px) {
60
60
  width: 100%;
61
61
  display: flex;
62
62
  }
63
63
  }
64
64
 
65
- &__input, &__textarea textarea {
65
+ &__input,
66
+ &__textarea textarea {
66
67
  background: #ffffff;
67
68
  border: 0.5px solid #c4c4c4;
68
69
  box-sizing: border-box;
@@ -70,10 +71,10 @@
70
71
  width: 100%;
71
72
  height: 40px;
72
73
  font-size: 14px;
73
- color: #1A2030;
74
+ color: #1a2030;
74
75
  padding: 19px 40px 5px 16px;
75
76
  transition: 0.3s all;
76
- @media(max-width: 1025px) {
77
+ @media (max-width: 1025px) {
77
78
  padding: 19px 36px 7px 12px;
78
79
  height: 40px;
79
80
  font-size: 12px;
@@ -85,29 +86,24 @@
85
86
  &:not(:-webkit-autofill):valid ~ #{$self}__label {
86
87
  top: 12px;
87
88
  font-size: 10px;
88
- color: #71757A;
89
+ color: #71757a;
89
90
  text-overflow: inherit;
90
91
  width: 100%;
91
- @media(max-width: 1025px) {
92
+ @media (max-width: 1025px) {
92
93
  font-size: 8px;
93
94
  }
94
95
  }
95
96
  &:hover {
96
- border: 0.5px solid #2C3E50;
97
+ border: 0.5px solid #2c3e50;
97
98
  }
98
99
 
99
100
  &:focus {
100
- border: 0.5px solid #2C3E50;
101
+ border: 0.5px solid #2c3e50;
101
102
  }
102
103
 
103
104
  &::placeholder {
104
105
  font-size: 12px;
105
106
  }
106
-
107
- &.error {
108
- border: 1px solid #FF2E43;
109
- background: #ff2e431f;
110
- }
111
107
  }
112
108
 
113
109
  &__textarea {
@@ -118,14 +114,25 @@
118
114
  justify-content: flex-end;
119
115
  position: relative;
120
116
  overflow: hidden;
121
- &:focus, &:hover {
122
- border: 0.5px solid #2C3E50;
117
+ &--error {
118
+ border: none;
119
+ border: 0.5px solid #ff2e43;
120
+ background: #ff2e431f;
121
+ textarea {
122
+ background: transparent;
123
+ }
124
+ }
125
+ &:focus,
126
+ &:hover {
127
+ border: 0.5px solid #2c3e50;
123
128
  }
124
129
  textarea {
125
130
  border: none;
126
131
  height: 92px;
127
132
  padding: 0 40px 5px 16px;
128
- &:focus, &:hover {
133
+ resize: none;
134
+ &:focus,
135
+ &:hover {
129
136
  border: none;
130
137
  }
131
138
  }
@@ -144,21 +151,16 @@
144
151
  overflow: hidden;
145
152
  line-height: 40px;
146
153
  transition: 0.3s;
147
- color: #71757A;
154
+ color: #71757a;
148
155
  font-size: 14px;
149
- @media(max-width: 1025px) {
156
+ @media (max-width: 1025px) {
150
157
  left: 12px;
151
158
  font-size: 14px;
152
159
  line-height: 16px;
153
- color: #71757A;
160
+ color: #71757a;
154
161
  }
155
162
  }
156
163
 
157
- &__textarea {
158
- min-height: 120px;
159
- resize: none;
160
- }
161
-
162
164
  &__textarea + label {
163
165
  top: 20px;
164
166
  }
@@ -183,7 +185,7 @@
183
185
  }
184
186
 
185
187
  &__required {
186
- color: #FF2E43;
188
+ color: #ff2e43;
187
189
  }
188
190
 
189
191
  &__options {
@@ -211,7 +213,7 @@
211
213
  color: #71757a;
212
214
  transition: 0.3s all;
213
215
  cursor: pointer;
214
- @media(max-width: 1025px) {
216
+ @media (max-width: 1025px) {
215
217
  font-size: 12px;
216
218
  }
217
219
 
@@ -95,6 +95,7 @@ export default {
95
95
  height: 24px;
96
96
  padding: 2px 16px;
97
97
  line-height: 20px;
98
+ font-size: 12px;
98
99
  }
99
100
  &_sm {
100
101
  height: 32px;
@@ -31,7 +31,7 @@
31
31
  </svg>
32
32
  </a>
33
33
  <a target="_blank" rel="nofollow"
34
- href="https://www.youtube.com/channel/UCPkbtgwgTZbMJXjmTi3R8Uw/about">
34
+ href="https://www.youtube.com/channel/UCPkbtgwgTZbMJXjmTi3R8Uw/featured">
35
35
  <svg fill="none" xmlns="http://www.w3.org/2000/svg"
36
36
  viewBox="0 0 16 16" class="social__icon">
37
37
  <path fill-rule="evenodd" clip-rule="evenodd"
@@ -38,6 +38,7 @@
38
38
  {{ item.name }}
39
39
  </a>
40
40
  </div>
41
+ <slot name="mobileSearch"></slot>
41
42
  </div>
42
43
  <div class="header__right" v-show="!noAuth">
43
44
  <slot name="chooseCountry"></slot>
@@ -2,6 +2,7 @@
2
2
  <div class="adt-text-block">
3
3
  <div class="adt-text-block__field">
4
4
  <input
5
+ :id="id"
5
6
  ref="input"
6
7
  :type="type"
7
8
  :value="value"
@@ -10,7 +11,7 @@
10
11
  class="adt-text-block__input"
11
12
  :class="{ error: !!errorText }"
12
13
  />
13
- <label class="adt-text-block__label">{{ label }}</label>
14
+ <label :for="id" class="adt-text-block__label">{{ label }}</label>
14
15
  <div v-if="showPassword" @click="showPassword = false" class="adt-text-block__icon desktop">
15
16
  <svg width="12" height="12" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 511.992 511.992" id="openedEye">
16
17
  <path
@@ -47,6 +48,10 @@ import '../../assets/style.scss';
47
48
  export default {
48
49
  name: "PasswordField",
49
50
  props: {
51
+ id: {
52
+ type: String,
53
+ default: ""
54
+ },
50
55
  errorText: {
51
56
  type: String,
52
57
  default: ""
@@ -6,6 +6,7 @@
6
6
  >
7
7
  <div :class="['adt-text-block__field', { error: !!errorText }]">
8
8
  <input
9
+ :id="id"
9
10
  ref="input"
10
11
  :type="type"
11
12
  :value="value"
@@ -19,7 +20,7 @@
19
20
  class="adt-text-block__input"
20
21
  :class="{ error: !!errorText }"
21
22
  />
22
- <label class="adt-text-block__label" :class="{ 'adt-text-block--ellipsis': isEllipsis }">
23
+ <label :for="id" class="adt-text-block__label" :class="{ 'adt-text-block--ellipsis': isEllipsis }">
23
24
  {{ label }}
24
25
  </label>
25
26
  <div
@@ -101,6 +102,10 @@ export default {
101
102
  clickOutside: vClickOutside.directive,
102
103
  },
103
104
  props: {
105
+ id: {
106
+ type: String,
107
+ default: ""
108
+ },
104
109
  errorText: {
105
110
  type: String,
106
111
  default: "",
@@ -1,6 +1,11 @@
1
1
  <template>
2
- <div class="adt-text-block__textarea">
2
+ <div class="adt-text-block__wrapper">
3
+ <div
4
+ class="adt-text-block__textarea"
5
+ :class="{ 'adt-text-block__textarea--error': !!errorText }"
6
+ >
3
7
  <textarea
8
+ :id="id"
4
9
  ref="textarea"
5
10
  :type="type"
6
11
  :value="value"
@@ -8,9 +13,12 @@
8
13
  required
9
14
  @input="$emit('input', $event.target.value)"
10
15
  @keyup.enter="enterPressed"
11
- :class="{ error: !!errorText }"
12
16
  />
13
- <label class="adt-text-block__label" :class="{ 'adt-text-block--ellipsis': isEllipsis }">
17
+ <label
18
+ :for="id"
19
+ class="adt-text-block__label"
20
+ :class="{ 'adt-text-block--ellipsis': isEllipsis }"
21
+ >
14
22
  {{ label }}
15
23
  <span v-if="required" class="adt-text-block__required">*</span>
16
24
  </label>
@@ -34,6 +42,7 @@
34
42
  stroke-linejoin="round"
35
43
  ></path>
36
44
  </svg>
45
+ </div>
37
46
  </div>
38
47
  <div class="adt-text-block__error" v-if="!!errorText">
39
48
  <svg
@@ -64,6 +73,10 @@ import "../../assets/style.scss";
64
73
  export default {
65
74
  name: "TextArea",
66
75
  props: {
76
+ id: {
77
+ type: String,
78
+ default: ""
79
+ },
67
80
  errorText: {
68
81
  type: String,
69
82
  default: "",
@@ -95,7 +108,7 @@ export default {
95
108
  isEllipsis: {
96
109
  type: Boolean,
97
110
  default: false,
98
- }
111
+ },
99
112
  },
100
113
  data() {
101
114
  return {
@@ -2,6 +2,7 @@
2
2
  <div class="adt-text-block">
3
3
  <div :class="['adt-text-block__field', { error: !!errorText }]">
4
4
  <input
5
+ :id="id"
5
6
  ref="input"
6
7
  :type="type"
7
8
  :value="value"
@@ -12,7 +13,7 @@
12
13
  class="adt-text-block__input"
13
14
  :class="{ error: !!errorText }"
14
15
  />
15
- <label class="adt-text-block__label">
16
+ <label :for="id" class="adt-text-block__label">
16
17
  {{ label }}
17
18
  <span v-if="required" class="adt-text-block__required">*</span>
18
19
  </label>
@@ -67,6 +68,10 @@ import "../../assets/style.scss";
67
68
  export default {
68
69
  name: "TextField",
69
70
  props: {
71
+ id: {
72
+ type: String,
73
+ default: ""
74
+ },
70
75
  errorText: {
71
76
  type: String,
72
77
  default: "",