adata-ui 0.1.17 → 0.1.21

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.
@@ -27,8 +27,10 @@
27
27
  class="adt-text-block__input"
28
28
  :class="{ error: !!errorText }"
29
29
  />
30
- <label class="adt-text-block__label">{{ label }}<span v-if="required" class="adt-text-block__required">*</span></label>
31
- <div class="adt-text-block__icon desktop" v-if="clearable && value && value.length > 0" @click="$emit('input', '')">
30
+ <label class="adt-text-block__label">{{ label }}<span v-if="required"
31
+ class="adt-text-block__required">*</span></label>
32
+ <div class="adt-text-block__icon desktop" v-if="clearable && value && value.length > 0"
33
+ @click="$emit('input', '')">
32
34
  <svg width="12" height="12" fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="clearIcon">
33
35
  <path d="M2 2l12 12m0-12L2 14" stroke="#2C3E50" stroke-linecap="round" stroke-linejoin="round"></path>
34
36
  </svg>
@@ -39,9 +41,9 @@
39
41
  </div>
40
42
  </div>
41
43
  </template>
42
-
43
44
  <script>
44
- import { TheMask } from 'vue-the-mask';
45
+ import '../../assets/style.scss';
46
+ import {TheMask} from 'vue-the-mask';
45
47
 
46
48
  export default {
47
49
  name: "TextField",
@@ -93,263 +95,4 @@ export default {
93
95
  }
94
96
  }
95
97
  }
96
- </script>
97
-
98
- <style lang="scss">
99
- *:focus {
100
- outline: none;
101
- }
102
-
103
- .adt-text-block {
104
- $self: &;
105
- position: relative;
106
- width: 100%;
107
-
108
- &.magnifier {
109
- #{$self}__input {
110
- padding: 19px 40px 5px 40px;
111
- }
112
-
113
- #{$self}__label {
114
- left: 40px;
115
- }
116
- }
117
-
118
- &.magnifier-mobile {
119
- #{$self}__magnifier {
120
- display: block;
121
- }
122
-
123
- #{$self}__input {
124
- padding: 19px 8px 5px 11px;
125
- border-top-right-radius: 0;
126
- border-bottom-right-radius: 0;
127
- -webkit-appearance: none;
128
- }
129
-
130
- #{$self}__label {
131
- left: 12px;
132
- }
133
- }
134
-
135
- &__input-mob-search {
136
- border-top-right-radius: 0;
137
- border-bottom-right-radius: 0;
138
- -webkit-appearance: none;
139
- }
140
-
141
- &__error {
142
- text-align: left;
143
- font-size: var(--fs-content-micro);
144
- line-height: 14px;
145
- color: #ff2e43;
146
- margin-top: 6px;
147
- }
148
-
149
- &__field {
150
- position: relative;
151
- overflow: hidden;
152
- @media(max-width: 1025px) {
153
- width: 100%;
154
- display: flex;
155
- }
156
- }
157
-
158
- &__input {
159
- background: #ffffff;
160
- border: 1px solid #c4c4c4;
161
- box-sizing: border-box;
162
- border-radius: 2px;
163
- width: 100%;
164
- height: 40px;
165
- font-size: var(--fs-form);
166
- color: #1A2030;
167
- padding: 19px 40px 5px 16px;
168
- transition: 0.3s all;
169
- @media(max-width: 1025px) {
170
- padding: 19px 36px 7px 12px;
171
- height: 40px;
172
- border: 1px solid #71757A;
173
- font-size: var(--fs-content-mini);
174
- }
175
-
176
- &:focus ~ #{$self}__label,
177
- &:not(:focus):valid ~ #{$self}__label {
178
- top: 12px;
179
- font-size: var(--fs-content-micro);
180
- color: #71757A;
181
- @media(max-width: 1025px) {
182
- font-size: var(--fs-content-nano);
183
- }
184
- }
185
-
186
- &:focus {
187
- border: 1px solid #2c3e50;
188
- }
189
-
190
- &::placeholder {
191
- font-size: 12px;
192
- }
193
-
194
- &.error {
195
- background: #ff2e431f;
196
- }
197
- }
198
-
199
- &__label {
200
- position: absolute;
201
- pointer-events: none;
202
- left: 16px;
203
- top: 50%;
204
- transform: translateY(-50%);
205
- white-space: nowrap;
206
- overflow: hidden;
207
- line-height: 40px;
208
- transition: 0.3s;
209
- color: #71757A;
210
- font-size: var(--fs-form-placeholder);
211
- @media(max-width: 1025px) {
212
- left: 12px;
213
- font-size: var(--fs-content-micro);
214
- line-height: 16px;
215
- color: #71757A;
216
- }
217
- }
218
-
219
- &__icon {
220
- position: absolute;
221
- right: 16px;
222
- height: 100%;
223
- top: 0;
224
- display: flex;
225
- align-items: center;
226
-
227
- &:hover {
228
- cursor: pointer;
229
- }
230
- }
231
-
232
- &__required {
233
- color: #FF000087;
234
- }
235
-
236
- &__options {
237
- position: absolute;
238
- top: calc(100% + 4px);
239
- left: 0;
240
- width: 100%;
241
- background: #fff;
242
- z-index: 1000;
243
- border-radius: 2px;
244
- border: 1px solid #71757A;
245
- padding: 12px 0;
246
- @media(max-width: 1025px) {
247
- overflow: auto;
248
- }
249
-
250
- #searchVariant {
251
- background: #eef0f5;
252
- }
253
- }
254
-
255
- .search-options {
256
- &__item {
257
- padding: 5px 16px;
258
- line-height: 16px;
259
- font-size: 14px;
260
- color: var(--newGray);
261
- transition: 0.3s all;
262
- cursor: pointer;
263
- @media(max-width: 1025px) {
264
- font-size: 10px;
265
- }
266
-
267
- &:hover {
268
- background: #eef0f5;
269
- }
270
- }
271
- }
272
-
273
- .mobile-magnifier {
274
- display: flex;
275
- justify-content: center;
276
- align-items: center;
277
- height: 40px;
278
- width: 40px;
279
- min-width: 40px;
280
- border: 1px solid #71757A;
281
- border-radius: 0 2px 2px 0;
282
- border-left: none;
283
- background: #FFCD33;
284
- }
285
-
286
- &__input-mob-filter {
287
- background: #ffffff;
288
- border: 1px solid #71757A;
289
- border-bottom: none;
290
- box-sizing: border-box;
291
- border-radius: 2px;
292
- width: 100%;
293
- height: 48px;
294
- font-size: 16px;
295
- line-height: 19px;
296
- display: flex;
297
- align-items: center;
298
- color: #1A2030;
299
- padding: 19px 40px 5px 16px;
300
- transition: 0.3s all;
301
- -webkit-appearance: none;
302
- -moz-appearance: none;
303
- appearance: none;
304
-
305
- &:focus ~ #{$self}__label-mob-filter,
306
- &:not(:focus):valid ~ #{$self}__label-mob-filter {
307
- top: 11px;
308
- font-size: 10px;
309
- color: #71757A;
310
- @media(max-width: 1025px) {
311
- font-size: 7px;
312
- }
313
- }
314
-
315
- &:focus {
316
- border: 1px solid #2c3e50;
317
- }
318
-
319
- &::placeholder {
320
- font-size: 12px;
321
- }
322
-
323
- &.error {
324
- background: #ff2e431f;
325
- }
326
- }
327
-
328
- &__label-mob-filter {
329
- position: absolute;
330
- pointer-events: none;
331
- left: 16px;
332
- top: 50%;
333
- transform: translateY(-50%);
334
- white-space: nowrap;
335
- overflow: hidden;
336
- line-height: 40px;
337
- transition: 0.3s;
338
- color: #71757A;
339
- @media(max-width: 1025px) {
340
- left: 16px;
341
- font-size: 14px;
342
- line-height: 16px;
343
- color: #71757A;
344
- }
345
-
346
- &__red {
347
- color: rgba(255, 0, 0, 0.53);
348
- }
349
- }
350
- &__magnifier {
351
- left: 8px;
352
- width: fit-content;
353
- }
354
- }
355
- </style>
98
+ </script>
@@ -5,13 +5,15 @@ import APasswordField from './PasswordField/PasswordField'
5
5
  import AAlert from './Alert/Alert'
6
6
  import AHeader from './Header/Header'
7
7
  import AFooter from './Footer/Footer'
8
+ import ASearchTextField from './SearchTextField/SearchTextField'
8
9
  const Components = {
9
10
  AButton,
10
11
  ATextField,
11
12
  APasswordField,
12
13
  AAlert,
13
14
  AHeader,
14
- AFooter
15
+ AFooter,
16
+ ASearchTextField
15
17
  };
16
18
 
17
19
  Object.keys(Components).forEach(name => {
@@ -1,22 +0,0 @@
1
- export const menuList = [
2
- {
3
- id: 1,
4
- name: "Контрагенты",
5
- url: 'https://pk.adata.kz',
6
- },
7
- {
8
- id: 2,
9
- name: "Тендеры",
10
- url: 'https://tender.adata.kz',
11
- },
12
- {
13
- id: 3,
14
- name: "Работа",
15
- url: 'https://work.adata.kz',
16
- },
17
- {
18
- id: 4,
19
- name: "Штрафы",
20
- url: 'https://avto.adata.kz',
21
- }
22
- ];