@progress/kendo-theme-core 9.1.1-dev.2 → 10.0.0-dev.0

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 (45) hide show
  1. package/dist/all.css +715 -712
  2. package/dist/all.scss +1 -6420
  3. package/dist/meta/sassdoc-data.json +3879 -3710
  4. package/dist/meta/sassdoc-raw-data.json +1844 -2568
  5. package/dist/meta/variables.json +430 -1219
  6. package/package.json +2 -3
  7. package/scss/_variables.scss +5 -3
  8. package/scss/all.scss +3 -2
  9. package/scss/border-radii/index.import.scss +13 -10
  10. package/scss/color-system/_functions.import.scss +182 -33
  11. package/scss/color-system/_mixins.import.scss +8 -2
  12. package/scss/color-system/_palettes.scss +272 -972
  13. package/scss/color-system/_swatch.scss +161 -159
  14. package/scss/color-system/index.import.scss +5 -6
  15. package/scss/elevation/index.import.scss +3 -3
  16. package/scss/functions/_color.import.scss +529 -0
  17. package/scss/functions/_list.import.scss +11 -9
  18. package/scss/functions/_map.import.scss +14 -11
  19. package/scss/functions/_math.import.scss +15 -13
  20. package/scss/functions/_meta.import.scss +9 -7
  21. package/scss/functions/_string.import.scss +36 -15
  22. package/scss/functions/index.import.scss +8 -12
  23. package/scss/index.import.scss +27 -10
  24. package/scss/mixins/_border-radius.scss +2 -0
  25. package/scss/mixins/_box-shadow.scss +2 -0
  26. package/scss/mixins/_decoration.scss +6 -13
  27. package/scss/mixins/_focus-indicator.scss +3 -0
  28. package/scss/mixins/_gradient.scss +2 -0
  29. package/scss/mixins/_import-once.scss +5 -3
  30. package/scss/mixins/index.import.scss +8 -8
  31. package/scss/spacing/index.import.scss +5 -4
  32. package/scss/styles/_base.scss +10 -6
  33. package/scss/styles/_selection.scss +6 -6
  34. package/scss/styles/index.import.scss +34 -22
  35. package/scss/typography/index.import.scss +10 -8
  36. package/dist/index.css +0 -0
  37. package/scss/color-system/_swatch-legacy.scss +0 -90
  38. package/scss/functions/_color-contrast.import.scss +0 -393
  39. package/scss/functions/_color-manipulation.import.scss +0 -134
  40. package/scss/functions/_color-system.import.scss +0 -138
  41. package/scss/functions/_escape-string.import.scss +0 -48
  42. package/scss/module-system/_components.scss +0 -240
  43. package/scss/module-system/_dependencies.scss +0 -731
  44. package/scss/module-system/index.import.scss +0 -55
  45. package/scss/styles/_colors.scss +0 -5
@@ -1,3 +1,5 @@
1
+ @use "sass:math";
2
+
1
3
  /// Returns the absolute value of a number.
2
4
  /// @param {Number} $number - The number to get the absolute value of.
3
5
  /// @return {Number} - The absolute value of `$number`.
@@ -5,7 +7,7 @@
5
7
  /// @example scss - Usage
6
8
  /// @debug k-math-abs( -10 ); // => 10
7
9
  @function k-math-abs( $number ) {
8
- @return abs( $number );
10
+ @return math.abs( $number );
9
11
  }
10
12
 
11
13
  /// Returns the smallest integer greater than or equal to a number.
@@ -15,7 +17,7 @@
15
17
  /// @example scss - Usage
16
18
  /// @debug k-math-ceil( 10.1 ); // => 11
17
19
  @function k-math-ceil( $number ) {
18
- @return ceil( $number );
20
+ @return math.ceil( $number );
19
21
  }
20
22
 
21
23
  /// Returns the largest integer less than or equal to a number.
@@ -25,7 +27,7 @@
25
27
  /// @example scss - Usage
26
28
  /// @debug k-math-floor( 10.9 ); // => 10
27
29
  @function k-math-floor( $number ) {
28
- @return floor( $number );
30
+ @return math.floor( $number );
29
31
  }
30
32
 
31
33
  /// Restricts `$number` to the range between `$min` and `$max`. If `$number` is
@@ -51,7 +53,7 @@
51
53
  /// @debug k-math-compatible( 10px, 10px ); // => true
52
54
  /// @debug k-math-compatible( 10px, 10em ); // => false
53
55
  @function k-math-compatible( $a, $b ) {
54
- @return comparable( $a, $b );
56
+ @return math.comparable( $a, $b );
55
57
  }
56
58
 
57
59
  /// Returns the quotient of two numbers.
@@ -63,7 +65,7 @@
63
65
  /// @debug k-math-div( 10, 2 ); // => 5
64
66
  /// @debug k-math-div( 10px, 2 ); // => 5px
65
67
  @function k-math-div( $a, $b ) {
66
- @return ( $a / $b );
68
+ @return math.div( $a, $b );
67
69
  }
68
70
 
69
71
  /// Returns whether `$number` has no units.
@@ -74,7 +76,7 @@
74
76
  /// @debug k-math-is-unitless( 10 ); // => true
75
77
  /// @debug k-math-is-unitless( 10px ); // => false
76
78
  @function k-math-is-unitless( $number ) {
77
- @return unitless( $number );
79
+ @return math.unitless( $number );
78
80
  }
79
81
 
80
82
  /// Returns the larger of two numbers.
@@ -86,7 +88,7 @@
86
88
  /// @debug k-math-max( 10, 20 ); // => 20
87
89
  /// @debug k-math-max( 10px, 20px ); // => 20px
88
90
  @function k-math-max( $a, $b ) {
89
- @return max( $a, $b );
91
+ @return math.max( $a, $b );
90
92
  }
91
93
 
92
94
  /// Returns the smaller of two numbers.
@@ -98,7 +100,7 @@
98
100
  /// @debug k-math-min( 10, 20 ); // => 10
99
101
  /// @debug k-math-min( 10px, 20px ); // => 10px
100
102
  @function k-math-min( $a, $b ) {
101
- @return min( $a, $b );
103
+ @return math.min( $a, $b );
102
104
  }
103
105
 
104
106
  /// Returns the remainder of two numbers.
@@ -132,7 +134,7 @@
132
134
  /// @example scss - Usage
133
135
  /// @debug k-math-percentage( 0.5 ); // => 50%
134
136
  @function k-math-percentage( $number ) {
135
- @return percentage( $number );
137
+ @return math.percentage( $number );
136
138
  }
137
139
 
138
140
  /// Returns the result of raising `$x` to the power of `$n`.
@@ -171,10 +173,10 @@
171
173
  /// @debug k-math-random(); // => 0.123456789
172
174
  @function k-math-random( $limit: null ) {
173
175
  @if ( $limit == null ) { // stylelint-disable-line
174
- @return random();
176
+ @return math.random();
175
177
  }
176
178
 
177
- @return random( $limit );
179
+ @return math.random( $limit );
178
180
  }
179
181
 
180
182
  /// Returns the result of rounding `$number` to the nearest integer
@@ -188,7 +190,7 @@
188
190
  @function k-math-round( $number, $precision: 0 ) {
189
191
 
190
192
  @if ( $precision == 0 ) {
191
- @return round( $number );
193
+ @return math.round( $number );
192
194
  }
193
195
 
194
196
  $pow: k-math-pow( 10, $precision );
@@ -203,7 +205,7 @@
203
205
  /// @example scss - Usage
204
206
  /// @debug k-math-unit( 10px ); // => px
205
207
  @function k-math-unit( $number ) {
206
- @return unit( $number );
208
+ @return math.unit( $number );
207
209
  }
208
210
 
209
211
  /// Remove the unit from a number.
@@ -1,3 +1,5 @@
1
+ @use "sass:meta";
2
+
1
3
  // Adapted from https://css-tricks.com/snippets/sass/advanced-type-checking/
2
4
 
3
5
  /// A wrapper around the `call()` function.
@@ -9,7 +11,7 @@
9
11
  /// @example scss - Usage
10
12
  /// @debug k-meta-call( k-meta-get-function( "k-string-replace" ), "foo bar", "bar", "baz" ); // => "foo baz"
11
13
  @function k-meta-call( $function, $args... ) {
12
- @return call( $function, $args... );
14
+ @return meta.call( $function, $args... );
13
15
  }
14
16
 
15
17
  /// A wrapper around the `function-exists()` function.
@@ -24,7 +26,7 @@
24
26
  @return false;
25
27
  }
26
28
 
27
- @return function-exists( $name );
29
+ @return meta.function-exists( $name );
28
30
  }
29
31
 
30
32
  /// A wrapper around the `get-function()` function.
@@ -37,7 +39,7 @@
37
39
  /// @example scss - Usage
38
40
  /// @debug k-meta-get-function( "k-string-replace" ); // => Function
39
41
  @function k-meta-get-function( $name, $args... ) {
40
- @return get-function( $name, $args... );
42
+ @return meta.get-function( $name, $args... );
41
43
  }
42
44
 
43
45
  /// A wrapper around the `inspect()` function.
@@ -48,7 +50,7 @@
48
50
  /// @example scss - Usage
49
51
  /// @debug k-meta-inspect( "foo bar" ); // => "foo bar"
50
52
  @function k-meta-inspect( $value ) {
51
- @return inspect( $value );
53
+ @return meta.inspect( $value );
52
54
  }
53
55
 
54
56
  /// A wrapper around the `keywords()` function.
@@ -59,7 +61,7 @@
59
61
  /// @example scss - Usage
60
62
  /// @debug k-meta-keywords( ( "foo" "bar" "baz" "qux" ) ); // => ( "foo": "bar", "baz": "qux" )
61
63
  @function k-meta-keywords( $args ) {
62
- @return keywords( $args );
64
+ @return meta.keywords( $args );
63
65
  }
64
66
 
65
67
  /// A wrapper around the `type-of()` function.
@@ -70,7 +72,7 @@
70
72
  /// @example scss - Usage
71
73
  /// @debug k-meta-type-of( "foo bar" ); // => "string"
72
74
  @function k-meta-type-of( $value ) {
73
- @return type-of( $value );
75
+ @return meta.type-of( $value );
74
76
  }
75
77
 
76
78
  /// A wrapper around the `variable-exists()` function.
@@ -81,7 +83,7 @@
81
83
  /// @example scss - Usage
82
84
  /// @debug k-meta-variable-exists( "foo" ); // => true
83
85
  @function k-meta-variable-exists( $name ) {
84
- @return variable-exists( $name );
86
+ @return meta.variable-exists( $name );
85
87
  }
86
88
 
87
89
  /// Checks whether `$value` is a <number> CSS data type.
@@ -1,4 +1,7 @@
1
- $svg-escaped-characters: (
1
+ @use "sass:meta";
2
+ @use "sass:string";
3
+
4
+ $_kendo-svg-escaped-characters: (
2
5
  ("%", "%25"),
3
6
  ("<", "%3c"),
4
7
  (">", "%3e"),
@@ -7,6 +10,11 @@ $svg-escaped-characters: (
7
10
  (")", "%29")
8
11
  ) !default;
9
12
 
13
+ $_kendo-escape-class-name: (
14
+ ".": "\\.",
15
+ "/": "\\/"
16
+ );
17
+
10
18
  /// Returns the first index of `$substring` in `$string`, or `null` if `$string` doesn’t contain `$substring`.
11
19
  /// @param {String} $string - The string to process.
12
20
  /// @param {String} $substring - The substring to look for.
@@ -15,7 +23,7 @@ $svg-escaped-characters: (
15
23
  /// @example scss - Usage
16
24
  /// @debug k-string-index( "foo bar", "bar" ); // => 5
17
25
  @function k-string-index( $string, $substring ) {
18
- @return str-index( $string, $substring );
26
+ @return string.index( $string, $substring );
19
27
  }
20
28
 
21
29
  /// Returns a copy of `$string` with `$insert` inserted at `$index`.
@@ -27,7 +35,7 @@ $svg-escaped-characters: (
27
35
  /// @example scss - Usage
28
36
  /// @debug k-string-insert( "foo bar", "baz", 5 ); // => "foo baz bar"
29
37
  @function k-string-insert( $string, $insert, $index ) {
30
- @return str-insert( $string, $insert, $index );
38
+ @return string.insert( $string, $insert, $index );
31
39
  }
32
40
 
33
41
  /// Returns the length of `$string`.
@@ -37,7 +45,7 @@ $svg-escaped-characters: (
37
45
  /// @example scss - Usage
38
46
  /// @debug k-string-length( "foo bar" ); // => 7
39
47
  @function k-string-length( $string ) {
40
- @return str-length( $string );
48
+ @return string.length( $string );
41
49
  }
42
50
 
43
51
  /// Returns a copy of `$string` with quotes added.
@@ -47,7 +55,7 @@ $svg-escaped-characters: (
47
55
  /// @example scss - Usage
48
56
  /// @debug k-string-quote( "foo bar" ); // => "foo bar"
49
57
  @function k-string-quote( $string ) {
50
- @return quote( $string );
58
+ @return string.quote( $string );
51
59
  }
52
60
 
53
61
  /// Returns a copy of `$string` with all occurrences of `$search`
@@ -62,7 +70,7 @@ $svg-escaped-characters: (
62
70
  /// @example scss - Usage
63
71
  /// @debug k-string-replace( "foo bar", "bar", "baz" ); // => "foo baz"
64
72
  @function k-string-replace( $string, $search, $replace: "" ) {
65
- @if k-meta-type-of( $string ) == number {
73
+ @if meta.type-of( $string ) == number {
66
74
  $string: $string + "";
67
75
  }
68
76
 
@@ -84,7 +92,7 @@ $svg-escaped-characters: (
84
92
  /// @example scss - Usage
85
93
  /// @debug k-string-slice( "foo bar", 5 ); // => "bar"
86
94
  @function k-string-slice( $string, $start-at, $end-at: -1 ) {
87
- @return str-slice( $string, $start-at, $end-at );
95
+ @return string.slice( $string, $start-at, $end-at );
88
96
  }
89
97
 
90
98
  /// Returns a copy of `$string` with all uppercase letters converted to lowercase.
@@ -94,7 +102,7 @@ $svg-escaped-characters: (
94
102
  /// @example scss - Usage
95
103
  /// @debug k-string-to-lower-case( "FOO BAR" ); // => "foo bar"
96
104
  @function k-string-to-lower-case( $string ) {
97
- @return to-lower-case( $string );
105
+ @return string.to-lower-case( $string );
98
106
  }
99
107
 
100
108
  /// Returns a copy of `$string` with all lowercase letters converted to uppercase.
@@ -104,7 +112,7 @@ $svg-escaped-characters: (
104
112
  /// @example scss - Usage
105
113
  /// @debug k-string-to-upper-case( "foo bar" ); // => "FOO BAR"
106
114
  @function k-string-to-upper-case( $string ) {
107
- @return to-upper-case( $string );
115
+ @return string.to-upper-case( $string );
108
116
  }
109
117
 
110
118
  /// Returns a unique identifier.
@@ -113,7 +121,7 @@ $svg-escaped-characters: (
113
121
  /// @example scss - Usage
114
122
  /// @debug k-string-unique-id(); // => UNIQUE_ID
115
123
  @function k-string-unique-id() {
116
- @return unique-id();
124
+ @return string.unique-id();
117
125
  }
118
126
 
119
127
  /// Returns a copy of `$string` with quotes removed.
@@ -123,7 +131,7 @@ $svg-escaped-characters: (
123
131
  /// @example scss - Usage
124
132
  /// @debug k-string-unquote( "foo bar" ); // => foo bar
125
133
  @function k-string-unquote( $string ) {
126
- @return unquote( $string );
134
+ @return string.unquote( $string );
127
135
  }
128
136
 
129
137
 
@@ -139,17 +147,30 @@ $svg-escaped-characters: (
139
147
  }
140
148
 
141
149
  // See https://codepen.io/kevinweber/pen/dXWoRw
142
- @function escape-svg($string) {
150
+ @function k-escape-svg($string) {
143
151
  @if k-string-index($string, "data:image/svg+xml") {
144
- @each $char, $encoded in $svg-escaped-characters {
152
+ @each $char, $encoded in $_kendo-svg-escaped-characters {
145
153
  // Do not escape the url brackets
146
154
  @if k-string-index($string, "url(") == 1 {
147
- $string: url("#{str-replace(k-string-slice($string, 6, -3), $char, $encoded)}");
155
+ $string: url("#{k-string-replace(k-string-slice($string, 6, -3), $char, $encoded)}");
148
156
  } @else {
149
- $string: str-replace($string, $char, $encoded);
157
+ $string: k-string-replace($string, $char, $encoded);
150
158
  }
151
159
  }
152
160
  }
153
161
 
154
162
  @return $string;
155
163
  }
164
+
165
+ /// Escapes special characters in a class name
166
+ /// @param {String} $text - The string to escape
167
+ /// @return {String} - The escaped string
168
+ @function k-escape-class-name( $text ) {
169
+ $_text: $text;
170
+
171
+ @each $char, $rep in $_kendo-escape-class-name {
172
+ $_text: k-string-replace( $_text, k-string-unquote( $char ), k-string-unquote( $rep ) );
173
+ }
174
+
175
+ @return $_text;
176
+ }
@@ -1,12 +1,8 @@
1
- @import "./_color.import.scss";
2
- @import "./_color-contrast.import.scss";
3
- @import "./_color-manipulation.import.scss";
4
- @import "./_color-system.import.scss";
5
- @import "./_custom-properties.import.scss";
6
- @import "./_escape-string.import.scss";
7
- @import "./_lang.import.scss";
8
- @import "./_list.import.scss";
9
- @import "./_math.import.scss";
10
- @import "./_map.import.scss";
11
- @import "./_meta.import.scss";
12
- @import "./_string.import.scss";
1
+ @forward "./_color.import.scss";
2
+ @forward "./_custom-properties.import.scss";
3
+ @forward "./_lang.import.scss";
4
+ @forward "./_list.import.scss";
5
+ @forward "./_math.import.scss";
6
+ @forward "./_map.import.scss";
7
+ @forward "./_meta.import.scss";
8
+ @forward "./_string.import.scss";
@@ -1,10 +1,27 @@
1
- @import "./functions/index.import.scss";
2
- @import "./color-system/index.import.scss";
3
- @import "./mixins/index.import.scss";
4
- @import "./module-system/index.import.scss";
5
- @import "./styles/index.import.scss";
6
- @import "./elevation/index.import.scss";
7
- @import "./typography/index.import.scss";
8
- @import "./spacing/index.import.scss";
9
- @import "./border-radii/index.import.scss";
10
- @import "./_variables.scss";
1
+ @forward "./_variables.scss";
2
+ @forward "./color-system/index.import.scss";
3
+ @forward "./mixins/index.import.scss";
4
+ @forward "./spacing/index.import.scss";
5
+ @forward "./styles/index.import.scss";
6
+ @forward "./elevation/index.import.scss";
7
+ @forward "./typography/index.import.scss";
8
+ @forward "./border-radii/index.import.scss";
9
+
10
+ @use "./color-system/index.import.scss" as *;
11
+ @use "./mixins/index.import.scss" as *;
12
+ @use "./styles/index.import.scss" as *;
13
+ @use "./elevation/index.import.scss" as *;
14
+ @use "./typography/index.import.scss" as *;
15
+ @use "./spacing/index.import.scss" as *;
16
+ @use "./border-radii/index.import.scss" as *;
17
+
18
+ @mixin core-styles() {
19
+ @include import-once("core-styles") {
20
+ @include kendo-color-system--styles();
21
+ @include kendo-core--styles();
22
+ @include kendo-spacing--styles();
23
+ @include kendo-elevation--styles();
24
+ @include kendo-core--typography--styles();
25
+ @include kendo-border-radius--styles();
26
+ }
27
+ }
@@ -1,3 +1,5 @@
1
+ @use "../_variables.scss" as *;
2
+
1
3
  // Border radius
2
4
  @mixin border-radius( $radius: null ) {
3
5
  @if $kendo-enable-rounded {
@@ -1,3 +1,5 @@
1
+ @use "../_variables.scss" as *;
2
+
1
3
  @mixin box-shadow( $shadow... ) {
2
4
  @if $kendo-enable-shadows and k-list-nth($shadow, 1) {
3
5
  box-shadow: $shadow;
@@ -1,3 +1,5 @@
1
+ @use "./_gradient.scss" as *;
2
+
1
3
  @mixin fill( $color: null, $bg: null, $border: null, $gradient: null ) {
2
4
  @if $border {
3
5
  border-color: $border;
@@ -13,16 +15,7 @@
13
15
  }
14
16
  }
15
17
 
16
- @mixin linear-gradient( $gradient: null ) {
17
- @if $gradient and $kendo-enable-gradients {
18
- @if $gradient == none {
19
- background-image: none;
20
- } @else {
21
- background-image: linear-gradient( $gradient );
22
- }
23
- }
24
- }
25
-
26
- @mixin repeating-striped-gradient( $color: rgba(255,255,255,.15), $background: #FFF, $angle: 45deg, $largeStep: 2px, $smallStep: 1px) {
27
- background-image: repeating-linear-gradient($angle, $background, $background $smallStep, $color $smallStep, $color $largeStep);
28
- }
18
+ // TODO: Remove as we have the same mixin in _gradient.scss
19
+ // @mixin repeating-striped-gradient( $color: rgba(255,255,255,.15), $background: #FFF, $angle: 45deg, $largeStep: 2px, $smallStep: 1px) {
20
+ // background-image: repeating-linear-gradient($angle, $background, $background $smallStep, $color $smallStep, $color $largeStep);
21
+ // }
@@ -1,3 +1,6 @@
1
+ @use "../_variables.scss" as *;
2
+ @use "./_box-shadow.scss" as *;
3
+
1
4
  @mixin focus-indicator( $indicator, $inset: false, $themeable: false, $type: "box-shadow" ) {
2
5
  @if $kendo-enable-focus-contrast and k-list-nth($indicator, 1) {
3
6
  @include box-shadow( if( $inset, inset, null ) 0 0 0 2px if( $themeable, currentColor, rgb( 0, 0, 0 ) ) );
@@ -1,3 +1,5 @@
1
+ @use "../_variables.scss" as *;
2
+
1
3
  @mixin linear-gradient( $gradient: null ) {
2
4
  @if $gradient and $kendo-enable-gradients {
3
5
  @if $gradient == none {
@@ -1,3 +1,5 @@
1
+ @use "sass:list";
2
+
1
3
  /// A list of exported modules.
2
4
  /// @access private
3
5
  $_kendo-imported-modules: () !default;
@@ -6,9 +8,9 @@ $_kendo-imported-modules: () !default;
6
8
  /// @access public
7
9
  /// @param {String} $name - The name of the exported module.
8
10
  /// @require $_kendo-imported-modules
9
- @mixin exports( $name ) {
10
- @if (k-list-index( $_kendo-imported-modules, $name ) == null) { // stylelint-disable-line
11
- $_kendo-imported-modules: k-list-append( $_kendo-imported-modules, $name ) !global;
11
+ @mixin import-once( $name ) {
12
+ @if (list.index( $_kendo-imported-modules, $name ) == null) { // stylelint-disable-line
13
+ $_kendo-imported-modules: list.append( $_kendo-imported-modules, $name ) !global;
12
14
  @content;
13
15
  }
14
16
  }
@@ -1,11 +1,11 @@
1
- @import "./_border-radius.scss";
2
- @import "./_box-shadow.scss";
3
- @import "./_disabled.scss";
4
- @import "./_decoration.scss";
5
- @import "./_focus-indicator.scss";
6
- @import "./_gradient.scss";
7
- @import "./_hide-scrollbar.scss";
8
- @import "./_import-once.scss";
1
+ @forward "./_border-radius.scss";
2
+ @forward "./_box-shadow.scss";
3
+ @forward "./_disabled.scss";
4
+ @forward "./_decoration.scss";
5
+ @forward "./_focus-indicator.scss";
6
+ @forward "./_gradient.scss";
7
+ @forward "./_hide-scrollbar.scss";
8
+ @forward "./_import-once.scss";
9
9
 
10
10
  @mixin background-image( $background-image: null ) {
11
11
  @if $background-image {
@@ -1,4 +1,5 @@
1
- @import "../functions/index.import.scss";
1
+ @use "sass:map";
2
+ @use "../functions/_string.import.scss" as *;
2
3
 
3
4
  $_default-spacing: (
4
5
  0: 0px,
@@ -47,11 +48,11 @@ $_default-spacing: (
47
48
  /// @group spacing
48
49
  $kendo-spacing: $_default-spacing !default;
49
50
 
50
- $kendo-spacing: k-map-merge($_default-spacing, $kendo-spacing);
51
+ $kendo-spacing: map.merge($_default-spacing, $kendo-spacing);
51
52
 
52
53
 
53
54
  @function k-spacing($step) {
54
- $spacing: k-map-get($kendo-spacing, $step);
55
+ $spacing: map.get($kendo-spacing, $step);
55
56
  $_step: k-escape-class-name( $step );
56
57
  @return var(--kendo-spacing-#{$_step}, #{$spacing});
57
58
  }
@@ -66,7 +67,7 @@ $kendo-spacing: k-map-merge($_default-spacing, $kendo-spacing);
66
67
  }
67
68
  }
68
69
 
69
- $kendo-sizing: k-map-merge( $kendo-spacing, (
70
+ $kendo-sizing: map.merge( $kendo-spacing, (
70
71
  "auto": auto,
71
72
  "1/2": 50%,
72
73
  "1/3": 33.333333%,
@@ -1,3 +1,7 @@
1
+ @use "../mixins/_disabled.scss" as *;
2
+ @use "../spacing/index.import.scss" as *;
3
+ @use "../_variables.scss" as *;
4
+
1
5
  @mixin kendo-core--styles--base() {
2
6
 
3
7
  // Disabled state
@@ -5,11 +9,11 @@
5
9
  .k-widget[disabled],
6
10
  .k-disabled {
7
11
  @include disabled(
8
- $color: var( --kendo-disabled-text, #{$kendo-disabled-text}),
9
- $bg: var( --kendo-disabled-bg, #{$kendo-disabled-bg}),
10
- $border: var( --kendo-disabled-border, #{$kendo-disabled-border}),
11
- $opacity: var( --kendo-disabled-opacity, #{$kendo-disabled-opacity}),
12
- $filter: var( --kendo-disabled-filter, #{$kendo-disabled-filter})
12
+ $color: var( --kendo-disabled-text, unset),
13
+ $bg: var( --kendo-disabled-bg, unset),
14
+ $border: var( --kendo-disabled-border, unset),
15
+ $opacity: var( --kendo-disabled-opacity, unset),
16
+ $filter: var( --kendo-disabled-filter, unset)
13
17
  );
14
18
 
15
19
  .k-link {
@@ -34,7 +38,7 @@
34
38
  height: 0;
35
39
  border-width: 1px 0 0;
36
40
  border-style: solid;
37
- border-color: var( --kendo-component-border, #{$kendo-component-border} );
41
+ border-color: var( --kendo-hr-border, unset );
38
42
  display: block;
39
43
  float: none;
40
44
  clear: both;
@@ -16,20 +16,20 @@
16
16
  }
17
17
 
18
18
  .k-marquee-color {
19
- color: k-get-theme-color-var( neutral-160, #{$kendo-selected-text} );
20
- background-color: k-get-theme-color-var( primary-60, #{$kendo-selected-bg} );
21
- border-color: k-get-theme-color-var( primary-100, #{$kendo-selected-border} );
19
+ color: var( --kendo-marquee-text, unset );
20
+ background-color: var( --kendo-marquee-bg, unset );
21
+ border-color: var( --kendo-marquee-border, unset );
22
22
  opacity: .6;
23
23
  }
24
24
  .k-marquee-text {
25
- color: k-get-theme-color-var( neutral-160, #{$kendo-selected-text} );
25
+ color: var( --kendo-marquee-text, unset );
26
26
  }
27
27
 
28
28
  // Text selection
29
29
  .k-text-selection {
30
30
  ::selection {
31
- background-color: if($kendo-enable-color-system, k-color( primary ), k-get-theme-color-var( primary-100 ));
32
- color: if($kendo-enable-color-system, k-color( on-primary ), $kendo-selected-text);
31
+ background-color: var( --kendo-text-selection-bg, unset );
32
+ color: var( --kendo-marquee-text, unset );
33
33
  }
34
34
  }
35
35
 
@@ -1,25 +1,37 @@
1
- @import "./_accessibility.scss";
2
- @import "./_animations.scss";
3
- @import "./_asp-fallback.scss";
4
- @import "./_layout.scss";
5
- @import "./_normalize.scss";
6
- @import "./_base.scss";
7
- @import "./_selection.scss";
8
- @import "./_scrollbar.scss";
9
- @import "./_resizing.scss";
10
- @import "./_colors.scss";
11
- @import "./_utils-components.scss";
1
+ @forward "./_accessibility.scss";
2
+ @forward "./_animations.scss";
3
+ @forward "./_asp-fallback.scss";
4
+ @forward "./_layout.scss";
5
+ @forward "./_normalize.scss";
6
+ @forward "./_base.scss";
7
+ @forward "./_selection.scss";
8
+ @forward "./_scrollbar.scss";
9
+ @forward "./_resizing.scss";
10
+ @forward "./_utils-components.scss";
11
+
12
+ @use "./_accessibility.scss" as *;
13
+ @use "./_animations.scss" as *;
14
+ @use "./_asp-fallback.scss" as *;
15
+ @use "./_layout.scss" as *;
16
+ @use "./_normalize.scss" as *;
17
+ @use "./_base.scss" as *;
18
+ @use "./_selection.scss" as *;
19
+ @use "./_scrollbar.scss" as *;
20
+ @use "./_resizing.scss" as *;
21
+ @use "./_utils-components.scss" as *;
22
+ @use "../mixins/index.import.scss" as *;
12
23
 
13
24
  @mixin kendo-core--styles() {
14
- @include kendo-core--styles--colors();
15
- @include kendo-core--styles--accessibility();
16
- @include kendo-core--styles--animations();
17
- @include kendo-core--styles--asp-fallback();
18
- @include kendo-core--styles--layout();
19
- @include kendo-core--styles--normalize();
20
- @include kendo-core--styles--base();
21
- @include kendo-core--styles--selection();
22
- @include kendo-core--styles--scrollbar();
23
- @include kendo-core--styles--resizing();
24
- @include kendo-core--styles--utils-components();
25
+ @include import-once("core--styles") {
26
+ @include kendo-core--styles--accessibility();
27
+ @include kendo-core--styles--animations();
28
+ @include kendo-core--styles--asp-fallback();
29
+ @include kendo-core--styles--layout();
30
+ @include kendo-core--styles--normalize();
31
+ @include kendo-core--styles--base();
32
+ @include kendo-core--styles--selection();
33
+ @include kendo-core--styles--scrollbar();
34
+ @include kendo-core--styles--resizing();
35
+ @include kendo-core--styles--utils-components();
36
+ }
25
37
  }