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

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.
@@ -7,6 +7,7 @@
7
7
  /// Checks whether `$value` is a <number> CSS data type.
8
8
  /// @param {Any} $value - The value to check.
9
9
  /// @return {Boolean} - Whether `$value` is a number.
10
+ /// @group functions
10
11
  ///
11
12
  /// @link https://developer.mozilla.org/en-US/docs/Web/CSS/number
12
13
  ///
@@ -20,6 +21,7 @@
20
21
  /// Checks whether `$value` is a <integer> CSS data type.
21
22
  /// @param {Any} $value - The value to check.
22
23
  /// @return {Boolean} - Whether `$value` is a integer.
24
+ /// @group functions
23
25
  ///
24
26
  /// @link https://developer.mozilla.org/en-US/docs/Web/CSS/integer
25
27
  ///
@@ -33,6 +35,7 @@
33
35
  /// Checks whether `$value` is a <time> CSS data type.
34
36
  /// @param {Any} $value - The value to check.
35
37
  /// @return {Boolean} - Whether `$value` is a time.
38
+ /// @group functions
36
39
  ///
37
40
  /// @link https://developer.mozilla.org/en-US/docs/Web/CSS/time
38
41
  ///
@@ -46,6 +49,7 @@
46
49
  /// Checks whether `$value` is a valid duration period.
47
50
  /// @param {Any} $value - The value to check.
48
51
  /// @return {Boolean} - Whether `$value` is a duration.
52
+ /// @group functions
49
53
  ///
50
54
  /// @link https://developer.mozilla.org/en-US/docs/Web/CSS/time
51
55
  ///
@@ -59,6 +63,7 @@
59
63
  /// Checks whether `$value` is a <angle> CSS data type.
60
64
  /// @param {Any} $value - The value to check.
61
65
  /// @return {Boolean} - Whether `$value` is a angle.
66
+ /// @group functions
62
67
  ///
63
68
  /// @link https://developer.mozilla.org/en-US/docs/Web/CSS/angle
64
69
  ///
@@ -72,6 +77,7 @@
72
77
  /// Checks whether `$value` is a <frequency> CSS data type.
73
78
  /// @param {Any} $value - The value to check.
74
79
  /// @return {Boolean} - Whether `$value` is a frequency.
80
+ /// @group functions
75
81
  ///
76
82
  /// @link https://developer.mozilla.org/en-US/docs/Web/CSS/frequency
77
83
  ///
@@ -85,6 +91,7 @@
85
91
  /// Checks whether `$value` is a relative <length> CSS data type.
86
92
  /// @param {Any} $value - The value to check.
87
93
  /// @return {Boolean} - Whether `$value` is a relative length.
94
+ /// @group functions
88
95
  ///
89
96
  /// @link https://developer.mozilla.org/en-US/docs/Web/CSS/length#relative_length_units_based_on_font
90
97
  /// @link https://developer.mozilla.org/en-US/docs/Web/CSS/length#relative_length_units_based_on_viewport
@@ -100,6 +107,7 @@
100
107
  /// Checks whether `$value` is an absolute <length> CSS data type.
101
108
  /// @param {Any} $value - The value to check.
102
109
  /// @return {Boolean} - Whether `$value` is an absolute length.
110
+ /// @group functions
103
111
  ///
104
112
  /// @link https://developer.mozilla.org/en-US/docs/Web/CSS/length#absolute_length_units
105
113
  ///
@@ -113,6 +121,7 @@
113
121
  /// Checks whether `$value` is a <percentage> CSS data type.
114
122
  /// @param {Any} $value - The value to check.
115
123
  /// @return {Boolean} - Whether `$value` is a percentage.
124
+ /// @group functions
116
125
  ///
117
126
  /// @link https://developer.mozilla.org/en-US/docs/Web/CSS/percentage
118
127
  ///
@@ -126,6 +135,7 @@
126
135
  /// Checks whether `$value` is a <length> CSS data type.
127
136
  /// @param {Any} $value - The value to check.
128
137
  /// @return {Boolean} - Whether `$value` is a length.
138
+ /// @group functions
129
139
  ///
130
140
  /// @link https://developer.mozilla.org/en-US/docs/Web/CSS/length
131
141
  ///
@@ -140,6 +150,7 @@
140
150
  /// Checks whether `$value` is a <resolution> CSS data type.
141
151
  /// @param {Any} $value - The value to check.
142
152
  /// @return {Boolean} - Whether `$value` is a resolution.
153
+ /// @group functions
143
154
  ///
144
155
  /// @link https://developer.mozilla.org/en-US/docs/Web/CSS/resolution
145
156
  ///
@@ -153,6 +164,7 @@
153
164
  /// Checks whether `$value` is a <position> CSS data type.
154
165
  /// @param {Any} $value - The value to check.
155
166
  /// @return {Boolean} - Whether `$value` is a position.
167
+ /// @group functions
156
168
  ///
157
169
  /// @link https://developer.mozilla.org/en-US/docs/Web/CSS/position
158
170
  ///
@@ -22,6 +22,7 @@ $_kendo-escape-class-name: (
22
22
  /// @param {String} $search - The substring to look for.
23
23
  /// @param {String} $replace - The replacement string.
24
24
  /// @return {String} - The resulting string.
25
+ /// @group functions
25
26
  ///
26
27
  /// @link https://www.sassmeister.com/gist/1b4f2da5527830088e4d
27
28
  ///
@@ -53,6 +54,11 @@ $_kendo-escape-class-name: (
53
54
  }
54
55
 
55
56
  // See https://codepen.io/kevinweber/pen/dXWoRw
57
+ /// URL-encodes special SVG characters in a data URI string so it can be safely embedded in CSS.
58
+ /// Only processes strings that start with "data:image/svg+xml".
59
+ /// @param {String} $string - The SVG data URI string to encode.
60
+ /// @return {String} - The URL-encoded string.
61
+ /// @group functions
56
62
  @function k-escape-svg($string) {
57
63
  @if string.index($string, "data:image/svg+xml") {
58
64
  @each $char, $encoded in $_kendo-svg-escaped-characters {
@@ -71,6 +77,7 @@ $_kendo-escape-class-name: (
71
77
  /// Escapes special characters in a class name
72
78
  /// @param {String} $text - The string to escape
73
79
  /// @return {String} - The escaped string
80
+ /// @group functions
74
81
  @function k-escape-class-name( $text ) {
75
82
  $_text: $text;
76
83
 
@@ -174,16 +174,28 @@ $kendo-durations: map.merge($default-durations, $kendo-durations);
174
174
  $kendo-transitions: $default-transitions !default;
175
175
  $kendo-transitions: map.merge($default-transitions, $kendo-transitions);
176
176
 
177
+ /// Returns a CSS variable reference for an easing token.
178
+ /// @param {String} $key - The easing key from $kendo-easings.
179
+ /// @return {String} CSS variable reference for the given easing token.
180
+ /// @group functions
177
181
  @function k-easing($key) {
178
182
  $easing: map.get($kendo-easings, $key);
179
183
  @return var(--kendo-easing-#{$key});
180
184
  }
181
185
 
186
+ /// Returns a CSS variable reference for a duration token.
187
+ /// @param {String} $key - The duration key from $kendo-durations.
188
+ /// @return {String} CSS variable reference for the given duration token.
189
+ /// @group functions
182
190
  @function k-duration($key) {
183
191
  $_duration: map.get($kendo-durations, $key);
184
192
  @return var(--kendo-duration-#{$key});
185
193
  }
186
194
 
195
+ /// Returns a CSS variable reference for a transition token.
196
+ /// @param {String} $key - The transition key from $kendo-transitions.
197
+ /// @return {String} CSS variable reference for the given transition token.
198
+ /// @group functions
187
199
  @function k-transition($key) {
188
200
  @return var(--kendo-transition-#{$key});
189
201
  }
@@ -49,6 +49,10 @@ $kendo-spacing: $default-spacing !default;
49
49
  $kendo-spacing: map.merge($default-spacing, $kendo-spacing);
50
50
 
51
51
 
52
+ /// Returns a CSS variable reference for a spacing step.
53
+ /// @param {Number | String} $step - The spacing step key from $kendo-spacing.
54
+ /// @return {String} CSS variable reference for the given spacing step.
55
+ /// @group functions
52
56
  @function k-spacing($step) {
53
57
  $_step: k-escape-class-name( $step );
54
58
  @return var(--kendo-spacing-#{$_step});
@@ -1,5 +1,9 @@
1
1
  $kendo-translucency-base: 0% !default;
2
2
 
3
+ /// Returns an oklch color expression with translucency applied via a CSS variable.
4
+ /// @param {Color} $color - The base color to apply translucency to.
5
+ /// @return {String} An oklch relative color expression with the translucency CSS variable applied.
6
+ /// @group functions
3
7
  @function k-translucency-bg($color) {
4
8
  $_result: "oklch(from #{$color} l c h / calc(100% - calc(var(--kendo-translucency-base, 0%))))";
5
9
  @return #{$_result};
@@ -8,6 +12,10 @@ $kendo-translucency-base: 0% !default;
8
12
  $kendo-translucency-blur-base: 6px !default;
9
13
  $kendo-translucency-blur-step: 2px !default;
10
14
 
15
+ /// Returns a blur filter expression scaled by a translucency level.
16
+ /// @param {Number} $level - The blur intensity multiplier (default: 1).
17
+ /// @return {String} A CSS blur() filter expression.
18
+ /// @group functions
11
19
  @function k-translucency-blur($level: 1) {
12
20
  $_result: "blur(calc(#{$kendo-translucency-blur-base} + calc(#{$level} * #{$kendo-translucency-blur-step})))";
13
21
  @return #{$_result};
@@ -25,6 +25,7 @@ $kendo-z-layers: (
25
25
  /// @param {Number} $n [0] - {Optional} Number of steps above the base layer.
26
26
  /// @param {Number} $delta [0] - {Deprecated, Optional} Balancing value.
27
27
  /// @return {Number} - Calculated z-index value.
28
+ /// @group functions
28
29
  @function k-z-index($layer, $n: 0, $delta: 0) {
29
30
  $layer-value: map.get($kendo-z-layers, $layer);
30
31