@brandup/ui-kit 1.0.23 → 1.0.24

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/source/inputs.less +19 -13
package/package.json CHANGED
@@ -22,11 +22,11 @@
22
22
  },
23
23
  "type": "module",
24
24
  "license": "Apache-2.0",
25
- "version": "1.0.23",
25
+ "version": "1.0.24",
26
26
  "main": "source/index.ts",
27
27
  "types": "source/index.ts",
28
28
  "dependencies": {
29
- "@brandup/ui-app": "^1.0.39"
29
+ "@brandup/ui-app": "^1.0.40"
30
30
  },
31
31
  "files": [
32
32
  "source",
@@ -161,6 +161,12 @@ input[type=file] {
161
161
  font-weight: var(--font-weight);
162
162
  font-size: var(--font-size);
163
163
  }
164
+
165
+ // нужно отключить пользовательские события, так как атрибут readonly не влияет на input file
166
+ &[readonly] {
167
+ pointer-events: none;
168
+ touch-action: none;
169
+ }
164
170
  }
165
171
 
166
172
  select {
@@ -250,18 +256,18 @@ input[type=checkbox] {
250
256
  }
251
257
  }
252
258
 
253
- // состояние для выбранного значения
254
-
255
- &.hasvalue {
256
- background: var(--hasvalue--input-fill);
257
- color: var(--hasvalue--input-color);
258
- border-radius: var(--input-border-radius);
259
- }
260
-
261
- // состояние при открытии выпадашки
259
+ .ui-input {
260
+ // состояние для выбранного значения
261
+ &.hasvalue {
262
+ background: var(--hasvalue--input-fill);
263
+ color: var(--hasvalue--input-color);
264
+ border-radius: var(--input-border-radius);
265
+ }
262
266
 
263
- &.expanded {
264
- background: var(--expanded--input-fill);
265
- color: var(--expanded--input-color);
266
- border-radius: var(--input-border-radius);
267
+ // состояние при открытии выпадашки
268
+ &.expanded {
269
+ background: var(--expanded--input-fill);
270
+ color: var(--expanded--input-color);
271
+ border-radius: var(--input-border-radius);
272
+ }
267
273
  }