@brandup/ui-kit 1.0.30 → 1.0.34

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,7 +22,7 @@
22
22
  },
23
23
  "type": "module",
24
24
  "license": "Apache-2.0",
25
- "version": "1.0.30",
25
+ "version": "1.0.34",
26
26
  "main": "source/index.ts",
27
27
  "types": "source/index.ts",
28
28
  "dependencies": {
@@ -27,13 +27,18 @@
27
27
  --content-min-width: @content-min-width; // минимальная ширина контентной области
28
28
  --content-padding-lr: @content-padding-lr; // отступы контентной области слева и справа до краёв браузера
29
29
 
30
+ // colors
31
+ --color-success: green;
32
+ --color-warning: yellow;
33
+ --color-error: red;
34
+ --color-info: blue;
35
+
30
36
  // svg
31
37
  --svg-size: @svg-size;
32
38
  --svg-fill: @svg-fill;
33
39
  --svg-stroke: @svg-stroke;
34
40
 
35
41
  // popup
36
-
37
42
  --popup-fill: @popup-fill;
38
43
  --popup-color: @popup-color;
39
44
  --popup-border-style: @popup-border-style;
@@ -32,15 +32,22 @@
32
32
  --input-font-weight: @input-font-weight;
33
33
  --input-font-style: @input-font-style;
34
34
  --input-line-height: @input-line-height;
35
+
36
+ // toolbar
37
+ --input-toolbar-button-fill: var(--input-fill);
35
38
 
39
+ // hover
36
40
  --hover--input-border-color: @hover--input-border-color;
37
41
  --hover--input-fill: @hover--input-fill;
38
42
  --hover--input-color: @hover--input-color;
43
+ --hover--input-toolbar-button-fill: color-mix(in srgb, var(--input-fill), #000 @hover--input-toolbar-button-darken);
39
44
 
45
+ // focus
40
46
  --focus--input-border-color: @focus--input-border-color;
41
47
  --focus--input-fill: @focus--input-fill;
42
48
  --focus--input-color: @focus--input-color;
43
49
 
50
+ // readonly
44
51
  --readonly--input-fill: @readonly--input-fill;
45
52
  --readonly--input-color: @readonly--input-color;
46
53
 
package/vars.less CHANGED
@@ -72,6 +72,7 @@
72
72
  @hover--input-border-color: #666666;
73
73
  @hover--input-fill: #fff;
74
74
  @hover--input-color: inherit;
75
+ @hover--input-toolbar-button-darken: 8%; // на сколько кнопка тулбара темнее --input-fill при наведении
75
76
 
76
77
  @focus--input-border-color: #222222;
77
78
  @focus--input-fill: @input-fill;