@progress/kendo-theme-core 10.1.0-dev.2 → 10.1.0-dev.3

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-theme-core",
3
3
  "description": "A collection of functions and mixins used for building themes for Kendo UI",
4
- "version": "10.1.0-dev.2",
4
+ "version": "10.1.0-dev.3",
5
5
  "author": "Progress",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
@@ -43,5 +43,5 @@
43
43
  "directories": {
44
44
  "doc": "docs"
45
45
  },
46
- "gitHead": "3bdbfbae6356962c8f37ba63b38f124e37f00e1a"
46
+ "gitHead": "a33add5dbf946b4fbaa83b9b2016ed1836a9fa0e"
47
47
  }
@@ -1,3 +1,4 @@
1
+ @use "sass:color";
1
2
  @use "sass:map";
2
3
  @use "sass:list";
3
4
  @use "sass:string";
@@ -210,10 +211,10 @@
210
211
  ) {
211
212
  $_variations: (
212
213
  #{$name}: $color,
213
- #{$name}-bold: k-color-mix(black, $color, 25%),
214
- #{$name}-bolder: k-color-mix(black, $color, 50%),
215
- #{$name}-subtle: k-color-mix(white, $color, 25%),
216
- #{$name}-subtler: k-color-mix(white, $color, 50%),
214
+ #{$name}-bold: color.mix(black, $color, 25%),
215
+ #{$name}-bolder: color.mix(black, $color, 50%),
216
+ #{$name}-subtle: color.mix(white, $color, 25%),
217
+ #{$name}-subtler: color.mix(white, $color, 50%),
217
218
  );
218
219
 
219
220
  $result: map.merge($result, $_variations);
@@ -1,3 +1,4 @@
1
+ @use "sass:color";
1
2
  @use "sass:math";
2
3
  @use "sass:list";
3
4
  @use "sass:meta";
@@ -14,7 +15,7 @@ $kendo-dark-color-level-step: 16% !default;
14
15
  /// @debug k-color-alpha( rgba( 0, 0, 0, 0.5 ) ); // => 0.5
15
16
  /// @debug k-color-alpha( #000 ); // => 1
16
17
  @function k-color-alpha( $color ) {
17
- @return alpha( $color );
18
+ @return color.alpha( $color );
18
19
  }
19
20
 
20
21
  /// Returns the red channel of a color.
@@ -24,7 +25,7 @@ $kendo-dark-color-level-step: 16% !default;
24
25
  /// @example scss - Usage
25
26
  /// @debug k-color-red( #ff0000 ); // => 255
26
27
  @function k-color-red( $color ) {
27
- @return red( $color );
28
+ @return math.round(color.channel( $color, "red" ));
28
29
  }
29
30
 
30
31
  /// Returns the green channel of a color.
@@ -34,7 +35,7 @@ $kendo-dark-color-level-step: 16% !default;
34
35
  /// @example scss - Usage
35
36
  /// @debug k-color-green( #00ff00 ); // => 255
36
37
  @function k-color-green( $color ) {
37
- @return green( $color );
38
+ @return math.round(color.channel( $color, "green" ));
38
39
  }
39
40
 
40
41
  /// Returns the blue channel of a color.
@@ -44,7 +45,7 @@ $kendo-dark-color-level-step: 16% !default;
44
45
  /// @example scss - Usage
45
46
  /// @debug k-color-blue( #0000ff ); // => 255
46
47
  @function k-color-blue( $color ) {
47
- @return blue( $color );
48
+ @return math.round(color.channel( $color, "blue" ));
48
49
  }
49
50
 
50
51
  /// Returns the hue of a color.
@@ -54,7 +55,7 @@ $kendo-dark-color-level-step: 16% !default;
54
55
  /// @example scss - Usage
55
56
  /// @debug k-color-hue( #e1d7d2 ); // => 20deg
56
57
  @function k-color-hue( $color ) {
57
- @return hue( $color );
58
+ @return color.channel( $color, "hue" );
58
59
  }
59
60
 
60
61
  /// Returns the saturation of a color.
@@ -64,7 +65,7 @@ $kendo-dark-color-level-step: 16% !default;
64
65
  /// @example scss - Usage
65
66
  /// @debug k-color-saturation( #e1d7d2 ); // => 20%
66
67
  @function k-color-saturation( $color ) {
67
- @return saturation( $color );
68
+ @return color.channel( $color, "saturation" );
68
69
  }
69
70
 
70
71
  /// Returns the lightness of a color.
@@ -74,7 +75,7 @@ $kendo-dark-color-level-step: 16% !default;
74
75
  /// @example scss - Usage
75
76
  /// @debug k-color-lightness( #e1d7d2 ); // => 80%
76
77
  @function k-color-lightness( $color ) {
77
- @return lightness( $color );
78
+ @return color.channel( $color, "lightness" );
78
79
  }
79
80
 
80
81
  /// Returns a color that is a mix of two colors.
@@ -86,7 +87,7 @@ $kendo-dark-color-level-step: 16% !default;
86
87
  /// @example scss - Usage
87
88
  /// @debug k-color-mix( #f00, #00f ); // => #800080
88
89
  @function k-color-mix( $color1, $color2, $weight: 50% ) {
89
- @return mix( $color1, $color2, $weight );
90
+ @return color.mix( $color1, $color2, $weight );
90
91
  }
91
92
 
92
93
  /// Makes a color darker by decreasing its lightness.
@@ -97,7 +98,7 @@ $kendo-dark-color-level-step: 16% !default;
97
98
  /// @example scss - Usage
98
99
  /// @debug k-color-darken( #f00, 10% ); // => #e60000
99
100
  @function k-color-darken( $color, $amount) {
100
- @return darken( $color, $amount );
101
+ @return color.adjust( $color, $lightness: - $amount );
101
102
  }
102
103
 
103
104
  /// Makes a color lighter by increasing its lightness.
@@ -108,7 +109,7 @@ $kendo-dark-color-level-step: 16% !default;
108
109
  /// @example scss - Usage
109
110
  /// @debug k-color-lighten( #f00, 10% ); // => #ff1a1a
110
111
  @function k-color-lighten( $color, $amount) {
111
- @return lighten( $color, $amount );
112
+ @return color.adjust( $color, $lightness: $amount );
112
113
  }
113
114
 
114
115
  /// Increases or decreases the hue of a color.
@@ -119,7 +120,7 @@ $kendo-dark-color-level-step: 16% !default;
119
120
  /// @example scss - Usage
120
121
  /// @debug k-color-adjust-hue( #f00, 10deg ); // => #ff1a00
121
122
  @function k-color-adjust-hue( $color, $degrees ) {
122
- @return adjust-hue( $color, $degrees );
123
+ @return color.adjust( $color, $hue: $degrees );
123
124
  }
124
125
 
125
126
  /// Increases the saturation of a color.
@@ -130,7 +131,7 @@ $kendo-dark-color-level-step: 16% !default;
130
131
  /// @example scss - Usage
131
132
  /// @debug k-color-saturate( #f00, 10% ); // => #ff3333
132
133
  @function k-color-saturate( $color, $amount ) {
133
- @return saturate( $color, $amount );
134
+ @return color.adjust( $color, $saturation: $amount );
134
135
  }
135
136
 
136
137
  /// Decreases the saturation of a color.
@@ -141,7 +142,7 @@ $kendo-dark-color-level-step: 16% !default;
141
142
  /// @example scss - Usage
142
143
  /// @debug k-color-desaturate( #f00, 10% ); // => #e60000
143
144
  @function k-color-desaturate( $color, $amount ) {
144
- @return desaturate( $color, $amount );
145
+ @return color.adjust( $color, $saturation: - $amount );
145
146
  }
146
147
 
147
148
  /// Returns a gray color with the same lightness as the input color.
@@ -151,7 +152,7 @@ $kendo-dark-color-level-step: 16% !default;
151
152
  /// @example scss - Usage
152
153
  /// @debug k-color-grayscale( #f00 ); // => #808080
153
154
  @function k-color-grayscale( $color ) {
154
- @return grayscale( $color );
155
+ @return color.grayscale( $color );
155
156
  }
156
157
 
157
158
  /// Returns the RGB complement of a color. This identical to adjusting the hue
@@ -162,7 +163,7 @@ $kendo-dark-color-level-step: 16% !default;
162
163
  /// @example scss - Usage
163
164
  /// @debug k-color-complement( #f00 ); // => #00ffff
164
165
  @function k-color-complement( $color ) {
165
- @return complement( $color );
166
+ @return color.complement( $color );
166
167
  }
167
168
 
168
169
  /// Returns the inverse of a color.
@@ -172,7 +173,7 @@ $kendo-dark-color-level-step: 16% !default;
172
173
  /// @example scss - Usage
173
174
  /// @debug k-color-invert( #f00 ); // => #00ffff
174
175
  @function k-color-invert( $color ) {
175
- @return invert( $color );
176
+ @return color.invert( $color );
176
177
  }
177
178
 
178
179
  /// Set a specific jump point for requesting color jumps