adata-ui 0.1.85 → 0.1.86

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.85",
3
+ "version": "0.1.86",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -62,7 +62,7 @@
62
62
  }
63
63
  }
64
64
 
65
- &__input, &__textarea {
65
+ &__input, &__textarea textarea {
66
66
  background: #ffffff;
67
67
  border: 0.5px solid #c4c4c4;
68
68
  box-sizing: border-box;
@@ -110,6 +110,30 @@
110
110
  }
111
111
  }
112
112
 
113
+ &__textarea {
114
+ border: 0.5px solid #c4c4c4;
115
+ height: 120px;
116
+ display: flex;
117
+ flex-direction: column;
118
+ justify-content: flex-end;
119
+ position: relative;
120
+ overflow: hidden;
121
+ &:focus, &:hover {
122
+ border: 0.5px solid #2C3E50;
123
+ }
124
+ textarea {
125
+ border: none;
126
+ height: 92px;
127
+ padding: 0 40px 5px 16px;
128
+ &:focus, &:hover {
129
+ border: none;
130
+ }
131
+ }
132
+ .adt-text-block__label {
133
+ top: 20px;
134
+ }
135
+ }
136
+
113
137
  &__label {
114
138
  position: absolute;
115
139
  pointer-events: none;
@@ -171,9 +195,8 @@
171
195
  z-index: 1000;
172
196
  border-radius: 2px;
173
197
  padding: 8px 0;
174
- @media(max-width: 1025px) {
175
- overflow: auto;
176
- }
198
+ max-height: 250px;
199
+ overflow: auto;
177
200
 
178
201
  #searchVariant {
179
202
  background: #eef0f5;
@@ -196,5 +219,14 @@
196
219
  background: #eef0f5;
197
220
  }
198
221
  }
222
+ &::-webkit-scrollbar {
223
+ width: 4px;
224
+ &-thumb {
225
+ background: #c4c4c4;
226
+ }
227
+ &-track {
228
+ background: #fff;
229
+ }
230
+ }
199
231
  }
200
232
  }
@@ -25,6 +25,50 @@ WithIcon.args = {
25
25
  id: 1,
26
26
  name: "a"
27
27
  },
28
+ {
29
+ id: 2,
30
+ name: "b"
31
+ },
32
+ {
33
+ id: 2,
34
+ name: "b"
35
+ },
36
+ {
37
+ id: 2,
38
+ name: "b"
39
+ },
40
+ {
41
+ id: 2,
42
+ name: "b"
43
+ },
44
+ {
45
+ id: 2,
46
+ name: "b"
47
+ },
48
+ {
49
+ id: 2,
50
+ name: "b"
51
+ },
52
+ {
53
+ id: 2,
54
+ name: "b"
55
+ },
56
+ {
57
+ id: 2,
58
+ name: "b"
59
+ },
60
+ {
61
+ id: 2,
62
+ name: "b"
63
+ },
64
+ {
65
+ id: 2,
66
+ name: "b"
67
+ },
68
+ {
69
+ id: 2,
70
+ name: "b"
71
+ },
28
72
  {
29
73
  id: 2,
30
74
  name: "b"
@@ -1,6 +1,5 @@
1
1
  <template>
2
- <div class="adt-text-block">
3
- <div :class="['adt-text-block__field', { error: !!errorText }]">
2
+ <div class="adt-text-block__textarea">
4
3
  <textarea
5
4
  ref="textarea"
6
5
  :type="type"
@@ -9,7 +8,6 @@
9
8
  required
10
9
  @input="$emit('input', $event.target.value)"
11
10
  @keyup.enter="enterPressed"
12
- class="adt-text-block__textarea"
13
11
  :class="{ error: !!errorText }"
14
12
  />
15
13
  <label class="adt-text-block__label" :class="{ 'adt-text-block--ellipsis': isEllipsis }">
@@ -36,7 +34,6 @@
36
34
  stroke-linejoin="round"
37
35
  ></path>
38
36
  </svg>
39
- </div>
40
37
  </div>
41
38
  <div class="adt-text-block__error" v-if="!!errorText">
42
39
  <svg