@webitel/ui-sdk 2.0.20 → 2.0.23
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/img/sprite/index.js +1 -1
- package/dist/img/sprite/telegram-bot.svg +7 -0
- package/dist/ui-sdk.common.js +8 -8
- package/dist/ui-sdk.common.js.map +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.umd.js +8 -8
- package/dist/ui-sdk.umd.js.map +1 -1
- package/dist/ui-sdk.umd.min.js +1 -1
- package/dist/ui-sdk.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/wt-search-bar/wt-search-bar.vue +68 -68
- package/src/locale/en/en.js +3 -0
- package/src/locale/ru/ru.js +3 -0
- package/src/locale/ua/ua.js +3 -0
package/package.json
CHANGED
|
@@ -108,86 +108,86 @@
|
|
|
108
108
|
<style lang="scss" scoped>
|
|
109
109
|
.wt-search-bar {
|
|
110
110
|
cursor: text;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.wt-search-bar__wrapper {
|
|
114
|
-
position: relative;
|
|
115
|
-
}
|
|
116
111
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
top: 50%;
|
|
121
|
-
left: var(--input-icon-margin);
|
|
122
|
-
transform: translateY(-50%);
|
|
123
|
-
pointer-events: none;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.wt-search-bar__reset-icon-btn {
|
|
127
|
-
position: absolute;
|
|
128
|
-
top: 50%;
|
|
129
|
-
right: var(--input-icon-margin);
|
|
130
|
-
transform: translateY(-50%);
|
|
112
|
+
.wt-search-bar__wrapper {
|
|
113
|
+
position: relative;
|
|
114
|
+
}
|
|
131
115
|
|
|
132
|
-
.wt-search-
|
|
133
|
-
|
|
116
|
+
.wt-search-bar__search-icon {
|
|
117
|
+
line-height: 0;
|
|
118
|
+
position: absolute;
|
|
119
|
+
top: 50%;
|
|
120
|
+
left: var(--input-icon-margin);
|
|
121
|
+
transform: translateY(-50%);
|
|
134
122
|
pointer-events: none;
|
|
135
123
|
}
|
|
136
|
-
}
|
|
137
124
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
width: 100%;
|
|
144
|
-
box-sizing: border-box;
|
|
145
|
-
padding: var(--search-bar-padding);
|
|
146
|
-
color: var(--form-input-color);
|
|
147
|
-
border: var(--input-border);
|
|
148
|
-
border-color: var(--form-border-color);
|
|
149
|
-
border-radius: var(--border-radius);
|
|
150
|
-
transition: var(--transition);
|
|
151
|
-
|
|
152
|
-
&:focus {
|
|
153
|
-
@include wt-placeholder('focus');
|
|
154
|
-
border-color: var(--form-border--hover-color);
|
|
155
|
-
}
|
|
125
|
+
.wt-search-bar__reset-icon-btn {
|
|
126
|
+
position: absolute;
|
|
127
|
+
top: 50%;
|
|
128
|
+
right: var(--input-icon-margin);
|
|
129
|
+
transform: translateY(-50%);
|
|
156
130
|
|
|
157
|
-
|
|
158
|
-
|
|
131
|
+
.wt-search-bar:not(:focus-within) & {
|
|
132
|
+
opacity: 0;
|
|
133
|
+
pointer-events: none;
|
|
134
|
+
}
|
|
159
135
|
}
|
|
160
136
|
|
|
161
|
-
.wt-search-
|
|
162
|
-
|
|
163
|
-
|
|
137
|
+
.wt-search-bar__input {
|
|
138
|
+
@extend %typo-body-1;
|
|
139
|
+
@include wt-placeholder;
|
|
140
|
+
|
|
141
|
+
display: block;
|
|
142
|
+
width: 100%;
|
|
143
|
+
box-sizing: border-box;
|
|
144
|
+
padding: var(--search-bar-padding);
|
|
145
|
+
color: var(--form-input-color);
|
|
146
|
+
border: var(--input-border);
|
|
147
|
+
border-color: var(--form-border-color);
|
|
148
|
+
border-radius: var(--border-radius);
|
|
149
|
+
transition: var(--transition);
|
|
150
|
+
|
|
151
|
+
&:focus {
|
|
152
|
+
@include wt-placeholder('focus');
|
|
153
|
+
border-color: var(--form-border--hover-color);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.wt-search-bar--outline & {
|
|
157
|
+
border-color: var(--form-outline-border-color);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.wt-search-bar--outline:hover &,
|
|
161
|
+
.wt-search-bar--outline &:focus {
|
|
162
|
+
border-color: var(--form-outline-border--hover-color);
|
|
163
|
+
}
|
|
164
164
|
}
|
|
165
|
-
}
|
|
166
165
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
166
|
+
/* make icons black */
|
|
167
|
+
.wt-search-bar:hover ::v-deep .wt-icon__icon,
|
|
168
|
+
.wt-search-bar:focus-within ::v-deep .wt-icon__icon {
|
|
169
|
+
fill: var(--icon-color--hover);
|
|
170
|
+
}
|
|
172
171
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
172
|
+
/* clears the 'X' from Internet Explorer */
|
|
173
|
+
.wt-search-bar__input::-ms-clear {
|
|
174
|
+
display: none;
|
|
175
|
+
width: 0;
|
|
176
|
+
height: 0;
|
|
177
|
+
}
|
|
179
178
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
179
|
+
.wt-search-bar__input::-ms-reveal {
|
|
180
|
+
display: none;
|
|
181
|
+
width: 0;
|
|
182
|
+
height: 0;
|
|
183
|
+
}
|
|
185
184
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
185
|
+
/* clears the 'X' from Chrome */
|
|
186
|
+
.wt-search-bar__input::-webkit-search-decoration,
|
|
187
|
+
.wt-search-bar__input::-webkit-search-cancel-button,
|
|
188
|
+
.wt-search-bar__input::-webkit-search-results-button,
|
|
189
|
+
.wt-search-bar__input::-webkit-search-results-decoration {
|
|
190
|
+
display: none;
|
|
191
|
+
}
|
|
192
192
|
}
|
|
193
193
|
</style>
|
package/src/locale/en/en.js
CHANGED
package/src/locale/ru/ru.js
CHANGED