@brandup/ui-kit 1.0.19 → 1.0.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.
package/package.json CHANGED
@@ -22,11 +22,11 @@
22
22
  },
23
23
  "type": "module",
24
24
  "license": "Apache-2.0",
25
- "version": "1.0.19",
25
+ "version": "1.0.21",
26
26
  "main": "source/index.ts",
27
27
  "types": "source/index.ts",
28
28
  "dependencies": {
29
- "@brandup/ui-app": "^1.0.37"
29
+ "@brandup/ui-app": "^1.0.38"
30
30
  },
31
31
  "files": [
32
32
  "source",
@@ -35,6 +35,7 @@
35
35
  // popup
36
36
 
37
37
  --popup-fill: @popup-fill;
38
+ --popup-color: @popup-color;
38
39
  --popup-border-style: @popup-border-style;
39
40
  --popup-border-width: @popup-border-width;
40
41
  --popup-border-color: @popup-border-color;
@@ -123,6 +124,7 @@ svg {
123
124
  box-sizing: border-box;
124
125
  z-index: 1000;
125
126
  background: var(--popup-fill);
127
+ color: var(--popup-color);
126
128
  border-style: var(--popup-border-style);
127
129
  border-color: var(--popup-border-color);
128
130
  border-width: var(--popup-border-width);
@@ -55,6 +55,12 @@
55
55
  --incorrect--input-fill: @incorrect--input-fill;
56
56
  --incorrect--input-color: @input-color;
57
57
 
58
+ --expanded--input-color: @expanded--input-color;
59
+ --expanded--input-fill: @expanded--input-fill;
60
+
61
+ --hasvalue--input-color: @hasvalue--input-color;
62
+ --hasvalue--input-fill: @hasvalue--input-fill;
63
+
58
64
  // toggler
59
65
  --toggler-height: @toggler-height;
60
66
  --toggler-padding: @toggler-padding;
@@ -242,4 +248,20 @@ input[type=checkbox] {
242
248
  background-color: var(--invalid--input-fill);
243
249
  color: var(--invalid--input-color);
244
250
  }
251
+ }
252
+
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
+ // состояние при открытии выпадашки
262
+
263
+ &.expanded {
264
+ background: var(--expanded--input-fill);
265
+ color: var(--expanded--input-color);
266
+ border-radius: var(--input-border-radius);
245
267
  }
package/vars.less CHANGED
@@ -39,6 +39,7 @@
39
39
  @svg-stroke: none;
40
40
 
41
41
  @popup-fill: @main-background;
42
+ @popup-color: @text-color;
42
43
  @popup-border-style: solid;
43
44
  @popup-border-width: 1px;
44
45
  @popup-border-color: #aaa;
@@ -58,8 +59,8 @@
58
59
  @input-fill: #fff;
59
60
 
60
61
  @input-width: auto;
61
- @input-height: 42px;
62
- @input-padding-lr: 13px;
62
+ @input-height: 46px;
63
+ @input-padding-lr: 20px;
63
64
  @textarea-size: 100px;
64
65
 
65
66
  @input-color: @text-color;
@@ -68,28 +69,34 @@
68
69
  @input-font-weight: inherit;
69
70
  @input-font-style: inherit;
70
71
 
71
- @hover--input-border-color: #666;
72
- @hover--input-fill: @input-fill;
73
- @hover--input-color: @input-color;
72
+ @hover--input-border-color: #666666;
73
+ @hover--input-fill: #fff;
74
+ @hover--input-color: inherit;
74
75
 
75
- @focus--input-border-color: #222;
76
+ @focus--input-border-color: #222222;
76
77
  @focus--input-fill: @input-fill;
77
- @focus--input-color: @input-color;
78
+ @focus--input-color: inherit;
78
79
 
79
80
  @readonly--input-fill: #f7f7f7;
80
81
  @readonly--input-color: @input-color;
81
82
 
82
83
  @disabled--input-border-color: #aaa;
83
84
  @disabled--input-fill: #eee;
84
- @disabled--input-color: @input-color;
85
+ @disabled--input-color: lighten(@input-color, 50%);
85
86
 
86
87
  @invalid--input-border-color: red;
87
88
  @invalid--input-fill: rgb(255, 220, 220);
88
- @invalid--input-color: @input-color;
89
+ @invalid--input-color: inherit;
89
90
 
90
91
  @incorrect--input-fill: rgb(255, 220, 220);
91
92
  @incorrect--input-color: inherit;
92
93
 
94
+ @expanded--input-fill: #fff; // переменные для выпадашки
95
+ @expanded--input-color: inherit;
96
+
97
+ @hasvalue--input-fill: #fff; // переменные для выбранного значения
98
+ @hasvalue--input-color: @input-color;
99
+
93
100
  @toggler-height: 30px;
94
101
  @toggler-padding: 3px;
95
102
  @toggler-round-fill: @focus--input-border-color;