adata-ui 0.1.84 → 0.1.87
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/dist/adata-ui.common.js +17 -13
- package/dist/adata-ui.common.js.map +1 -1
- package/dist/adata-ui.css +1 -1
- package/dist/adata-ui.umd.js +17 -13
- package/dist/adata-ui.umd.js.map +1 -1
- package/dist/adata-ui.umd.min.js +1 -1
- package/dist/adata-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/_text_field.scss +57 -23
- package/src/components/Button/AButton.vue +6 -0
- package/src/components/SearchTextField/SearchTextField.stories.js +44 -0
- package/src/components/TextArea/TextArea.vue +10 -6
package/package.json
CHANGED
|
@@ -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,
|
|
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: #
|
|
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,28 +86,58 @@
|
|
|
85
86
|
&:not(:-webkit-autofill):valid ~ #{$self}__label {
|
|
86
87
|
top: 12px;
|
|
87
88
|
font-size: 10px;
|
|
88
|
-
color: #
|
|
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 #
|
|
97
|
+
border: 0.5px solid #2c3e50;
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
&:focus {
|
|
100
|
-
border: 0.5px solid #
|
|
101
|
+
border: 0.5px solid #2c3e50;
|
|
101
102
|
}
|
|
102
103
|
|
|
103
104
|
&::placeholder {
|
|
104
105
|
font-size: 12px;
|
|
105
106
|
}
|
|
107
|
+
}
|
|
106
108
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
+
&__textarea {
|
|
110
|
+
border: 0.5px solid #c4c4c4;
|
|
111
|
+
height: 120px;
|
|
112
|
+
display: flex;
|
|
113
|
+
flex-direction: column;
|
|
114
|
+
justify-content: flex-end;
|
|
115
|
+
position: relative;
|
|
116
|
+
overflow: hidden;
|
|
117
|
+
&--error {
|
|
118
|
+
border: none;
|
|
119
|
+
border: 0.5px solid #ff2e43;
|
|
109
120
|
background: #ff2e431f;
|
|
121
|
+
textarea {
|
|
122
|
+
background: transparent;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
&:focus,
|
|
126
|
+
&:hover {
|
|
127
|
+
border: 0.5px solid #2c3e50;
|
|
128
|
+
}
|
|
129
|
+
textarea {
|
|
130
|
+
border: none;
|
|
131
|
+
height: 92px;
|
|
132
|
+
padding: 0 40px 5px 16px;
|
|
133
|
+
resize: none;
|
|
134
|
+
&:focus,
|
|
135
|
+
&:hover {
|
|
136
|
+
border: none;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
.adt-text-block__label {
|
|
140
|
+
top: 20px;
|
|
110
141
|
}
|
|
111
142
|
}
|
|
112
143
|
|
|
@@ -120,21 +151,16 @@
|
|
|
120
151
|
overflow: hidden;
|
|
121
152
|
line-height: 40px;
|
|
122
153
|
transition: 0.3s;
|
|
123
|
-
color: #
|
|
154
|
+
color: #71757a;
|
|
124
155
|
font-size: 14px;
|
|
125
|
-
@media(max-width: 1025px) {
|
|
156
|
+
@media (max-width: 1025px) {
|
|
126
157
|
left: 12px;
|
|
127
158
|
font-size: 14px;
|
|
128
159
|
line-height: 16px;
|
|
129
|
-
color: #
|
|
160
|
+
color: #71757a;
|
|
130
161
|
}
|
|
131
162
|
}
|
|
132
163
|
|
|
133
|
-
&__textarea {
|
|
134
|
-
min-height: 120px;
|
|
135
|
-
resize: none;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
164
|
&__textarea + label {
|
|
139
165
|
top: 20px;
|
|
140
166
|
}
|
|
@@ -159,7 +185,7 @@
|
|
|
159
185
|
}
|
|
160
186
|
|
|
161
187
|
&__required {
|
|
162
|
-
color: #
|
|
188
|
+
color: #ff2e43;
|
|
163
189
|
}
|
|
164
190
|
|
|
165
191
|
&__options {
|
|
@@ -171,9 +197,8 @@
|
|
|
171
197
|
z-index: 1000;
|
|
172
198
|
border-radius: 2px;
|
|
173
199
|
padding: 8px 0;
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
}
|
|
200
|
+
max-height: 250px;
|
|
201
|
+
overflow: auto;
|
|
177
202
|
|
|
178
203
|
#searchVariant {
|
|
179
204
|
background: #eef0f5;
|
|
@@ -188,7 +213,7 @@
|
|
|
188
213
|
color: #71757a;
|
|
189
214
|
transition: 0.3s all;
|
|
190
215
|
cursor: pointer;
|
|
191
|
-
@media(max-width: 1025px) {
|
|
216
|
+
@media (max-width: 1025px) {
|
|
192
217
|
font-size: 12px;
|
|
193
218
|
}
|
|
194
219
|
|
|
@@ -196,5 +221,14 @@
|
|
|
196
221
|
background: #eef0f5;
|
|
197
222
|
}
|
|
198
223
|
}
|
|
224
|
+
&::-webkit-scrollbar {
|
|
225
|
+
width: 4px;
|
|
226
|
+
&-thumb {
|
|
227
|
+
background: #c4c4c4;
|
|
228
|
+
}
|
|
229
|
+
&-track {
|
|
230
|
+
background: #fff;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
199
233
|
}
|
|
200
234
|
}
|
|
@@ -48,6 +48,7 @@ export default {
|
|
|
48
48
|
'md',
|
|
49
49
|
'extra_sm',
|
|
50
50
|
'fit',
|
|
51
|
+
'fit-md',
|
|
51
52
|
].includes(value)
|
|
52
53
|
);
|
|
53
54
|
},
|
|
@@ -109,6 +110,11 @@ export default {
|
|
|
109
110
|
padding: 8px 0;
|
|
110
111
|
width: 100%;
|
|
111
112
|
}
|
|
113
|
+
&_fit-md {
|
|
114
|
+
height: 40px;
|
|
115
|
+
padding: 8px 0;
|
|
116
|
+
width: 100%;
|
|
117
|
+
}
|
|
112
118
|
}
|
|
113
119
|
|
|
114
120
|
&_grey {
|
|
@@ -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,9 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="adt-text-
|
|
3
|
-
<div
|
|
2
|
+
<div class="adt-text-block__wrapper">
|
|
3
|
+
<div
|
|
4
|
+
class="adt-text-block__textarea"
|
|
5
|
+
:class="{ 'adt-text-block__textarea--error': !!errorText }"
|
|
6
|
+
>
|
|
4
7
|
<textarea
|
|
5
8
|
ref="textarea"
|
|
6
9
|
:type="type"
|
|
@@ -9,10 +12,11 @@
|
|
|
9
12
|
required
|
|
10
13
|
@input="$emit('input', $event.target.value)"
|
|
11
14
|
@keyup.enter="enterPressed"
|
|
12
|
-
class="adt-text-block__textarea"
|
|
13
|
-
:class="{ error: !!errorText }"
|
|
14
15
|
/>
|
|
15
|
-
<label
|
|
16
|
+
<label
|
|
17
|
+
class="adt-text-block__label"
|
|
18
|
+
:class="{ 'adt-text-block--ellipsis': isEllipsis }"
|
|
19
|
+
>
|
|
16
20
|
{{ label }}
|
|
17
21
|
<span v-if="required" class="adt-text-block__required">*</span>
|
|
18
22
|
</label>
|
|
@@ -98,7 +102,7 @@ export default {
|
|
|
98
102
|
isEllipsis: {
|
|
99
103
|
type: Boolean,
|
|
100
104
|
default: false,
|
|
101
|
-
}
|
|
105
|
+
},
|
|
102
106
|
},
|
|
103
107
|
data() {
|
|
104
108
|
return {
|