@progress/kendo-theme-core 5.12.1-dev.2 → 5.12.1-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/dist/all.scss CHANGED
@@ -91,7 +91,7 @@ $equilateral-height: .8660254038 !default;
91
91
  //
92
92
  // This lookup table is needed since there is no `pow` in SASS.
93
93
  // stylelint-disable-next-line scss/dollar-variable-default
94
- $linear-channel-values: (
94
+ $_linear-channel-values: (
95
95
  0
96
96
  .0003035269835488375
97
97
  .000607053967097675
@@ -362,9 +362,9 @@ $wcag-light: white !default;
362
362
  // See https://www.w3.org/TR/WCAG/#dfn-relative-luminance
363
363
  // See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
364
364
  @function k-color-luminance( $color ) {
365
- $red: k-list-nth( $linear-channel-values, k-color-red( $color ) + 1 );
366
- $green: k-list-nth( $linear-channel-values, k-color-green( $color ) + 1 );
367
- $blue: k-list-nth( $linear-channel-values, k-color-blue( $color ) + 1 );
365
+ $red: k-list-nth( $_linear-channel-values, k-color-red( $color ) + 1 );
366
+ $green: k-list-nth( $_linear-channel-values, k-color-green( $color ) + 1 );
367
+ $blue: k-list-nth( $_linear-channel-values, k-color-blue( $color ) + 1 );
368
368
 
369
369
  @return .2126 * $red + .7152 * $green + .0722 * $blue;
370
370
  }
@@ -467,7 +467,7 @@ $kendo-color-level-step: 8% !default;
467
467
  }
468
468
 
469
469
  @function k-try-shade( $color, $level: 1 ) {
470
- $_dark-theme: if( k-meta-variable-exists( dark-theme ), $dark-theme, false );
470
+ $_dark-theme: if( k-meta-variable-exists( dark-theme ), $kendo-is-dark-theme, false );
471
471
 
472
472
  @if $_dark-theme {
473
473
  @return k-color-tint( $color, $level );
@@ -476,7 +476,7 @@ $kendo-color-level-step: 8% !default;
476
476
  @return k-color-shade( $color, $level );
477
477
  }
478
478
  @function k-try-tint( $color, $level: 1 ) {
479
- $_dark-theme: if( k-meta-variable-exists( dark-theme ), $dark-theme, false );
479
+ $_dark-theme: if( k-meta-variable-exists( dark-theme ), $kendo-is-dark-theme, false );
480
480
 
481
481
  @if $_dark-theme {
482
482
  @return k-color-shade( $color, $level );
@@ -487,7 +487,7 @@ $kendo-color-level-step: 8% !default;
487
487
 
488
488
 
489
489
  @function k-try-darken( $color, $amount ) {
490
- $_dark-theme: if( k-meta-variable-exists( dark-theme ), $dark-theme, false );
490
+ $_dark-theme: if( k-meta-variable-exists( dark-theme ), $kendo-is-dark-theme, false );
491
491
 
492
492
  @if $_dark-theme {
493
493
  @return k-color-lighten( $color, $amount );
@@ -496,7 +496,7 @@ $kendo-color-level-step: 8% !default;
496
496
  }
497
497
 
498
498
  @function k-try-lighten( $color, $amount ) {
499
- $_dark-theme: if( k-meta-variable-exists( dark-theme ), $dark-theme, false );
499
+ $_dark-theme: if( k-meta-variable-exists( dark-theme ), $kendo-is-dark-theme, false );
500
500
 
501
501
  @if $_dark-theme {
502
502
  @return k-color-darken( $color, $amount );
@@ -2045,20 +2045,20 @@ $kendo-palettes: (
2045
2045
  // #region @import "./_data-uri.scss"; -> packages/core/scss/mixins/_data-uri.scss
2046
2046
  /// A list of files converted to data URIs
2047
2047
  /// @access private
2048
- $data-uris: () !default;
2048
+ $_kendo-data-uris: () !default;
2049
2049
 
2050
- /// Saves a data URI that can be used from the $data-uris map instead of a file reference.
2050
+ /// Saves a data URI that can be used from the $_kendo-data-uris map instead of a file reference.
2051
2051
  /// @access private
2052
2052
  /// @param {String} $name - The name of the resource.
2053
2053
  /// @param {String} $content - The data URI of the resource.
2054
- /// @require $data-uris
2054
+ /// @require $_kendo-data-uris
2055
2055
  @mixin register-data-uri( $name, $content ) {
2056
- @if ( k-map-has-key( $data-uris, $name ) ) {
2056
+ @if ( k-map-has-key( $_kendo-data-uris, $name ) ) {
2057
2057
  // sass-lint:disable-block no-warn
2058
2058
  @warn "Attempt to redefine data URI of file `#{$name}`.";
2059
2059
  }
2060
2060
 
2061
- $data-uris: k-map-merge( $data-uris, ( $name: $content ) ) !global;
2061
+ $_kendo-data-uris: k-map-merge( $_kendo-data-uris, ( $name: $content ) ) !global;
2062
2062
  }
2063
2063
 
2064
2064
  // #endregion
@@ -2124,11 +2124,11 @@ $data-uris: () !default;
2124
2124
 
2125
2125
  // #endregion
2126
2126
  // #region @import "./_hide-scrollbar.scss"; -> packages/core/scss/mixins/_hide-scrollbar.scss
2127
- $default-scrollbar-width: 17px !default;
2127
+ $kendo-scrollbar-width: 17px !default;
2128
2128
 
2129
2129
  @mixin hide-scrollbar( $dir: "right", $max-scrollbar: 100px ) {
2130
2130
  // anything larger than the scrollbar width will do
2131
- $scrollbar-size: var( --kendo-scrollbar-width, #{$default-scrollbar-width} );
2131
+ $scrollbar-size: var( --kendo-scrollbar-width, #{$kendo-scrollbar-width} );
2132
2132
  $margin: calc( -#{$max-scrollbar} - #{$scrollbar-size} );
2133
2133
 
2134
2134
  padding-right: $max-scrollbar;
@@ -2147,15 +2147,15 @@ $default-scrollbar-width: 17px !default;
2147
2147
  // #region @import "./_import-once.scss"; -> packages/core/scss/mixins/_import-once.scss
2148
2148
  /// A list of exported modules.
2149
2149
  /// @access private
2150
- $imported-modules: () !default;
2150
+ $_kendo-imported-modules: () !default;
2151
2151
 
2152
2152
  /// Outputs a module once, no matter how many times it is included.
2153
2153
  /// @access public
2154
2154
  /// @param {String} $name - The name of the exported module.
2155
- /// @require $imported-modules
2155
+ /// @require $_kendo-imported-modules
2156
2156
  @mixin exports( $name ) {
2157
- @if (k-list-index( $imported-modules, $name ) == null) {
2158
- $imported-modules: k-list-append( $imported-modules, $name ) !global;
2157
+ @if (k-list-index( $_kendo-imported-modules, $name ) == null) {
2158
+ $_kendo-imported-modules: k-list-append( $_kendo-imported-modules, $name ) !global;
2159
2159
  @content;
2160
2160
  }
2161
2161
  }
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": "5.12.1-dev.2",
4
+ "version": "5.12.1-dev.3",
5
5
  "author": "Progress",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
@@ -39,5 +39,5 @@
39
39
  "prepublishOnly": "node ../../scripts/themes-prepublish.js",
40
40
  "postpublish": "echo 'no postpublish for core theme'"
41
41
  },
42
- "gitHead": "14365a5e53996a453f9d6ad72894a3e4666e6ede"
42
+ "gitHead": "8c82f49a750901799f12f09ca977f65b74ff9577"
43
43
  }
@@ -12,7 +12,7 @@
12
12
  //
13
13
  // This lookup table is needed since there is no `pow` in SASS.
14
14
  // stylelint-disable-next-line scss/dollar-variable-default
15
- $linear-channel-values: (
15
+ $_linear-channel-values: (
16
16
  0
17
17
  .0003035269835488375
18
18
  .000607053967097675
@@ -283,9 +283,9 @@ $wcag-light: white !default;
283
283
  // See https://www.w3.org/TR/WCAG/#dfn-relative-luminance
284
284
  // See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
285
285
  @function k-color-luminance( $color ) {
286
- $red: k-list-nth( $linear-channel-values, k-color-red( $color ) + 1 );
287
- $green: k-list-nth( $linear-channel-values, k-color-green( $color ) + 1 );
288
- $blue: k-list-nth( $linear-channel-values, k-color-blue( $color ) + 1 );
286
+ $red: k-list-nth( $_linear-channel-values, k-color-red( $color ) + 1 );
287
+ $green: k-list-nth( $_linear-channel-values, k-color-green( $color ) + 1 );
288
+ $blue: k-list-nth( $_linear-channel-values, k-color-blue( $color ) + 1 );
289
289
 
290
290
  @return .2126 * $red + .7152 * $green + .0722 * $blue;
291
291
  }
@@ -28,7 +28,7 @@ $kendo-color-level-step: 8% !default;
28
28
  }
29
29
 
30
30
  @function k-try-shade( $color, $level: 1 ) {
31
- $_dark-theme: if( k-meta-variable-exists( dark-theme ), $dark-theme, false );
31
+ $_dark-theme: if( k-meta-variable-exists( dark-theme ), $kendo-is-dark-theme, false );
32
32
 
33
33
  @if $_dark-theme {
34
34
  @return k-color-tint( $color, $level );
@@ -37,7 +37,7 @@ $kendo-color-level-step: 8% !default;
37
37
  @return k-color-shade( $color, $level );
38
38
  }
39
39
  @function k-try-tint( $color, $level: 1 ) {
40
- $_dark-theme: if( k-meta-variable-exists( dark-theme ), $dark-theme, false );
40
+ $_dark-theme: if( k-meta-variable-exists( dark-theme ), $kendo-is-dark-theme, false );
41
41
 
42
42
  @if $_dark-theme {
43
43
  @return k-color-shade( $color, $level );
@@ -48,7 +48,7 @@ $kendo-color-level-step: 8% !default;
48
48
 
49
49
 
50
50
  @function k-try-darken( $color, $amount ) {
51
- $_dark-theme: if( k-meta-variable-exists( dark-theme ), $dark-theme, false );
51
+ $_dark-theme: if( k-meta-variable-exists( dark-theme ), $kendo-is-dark-theme, false );
52
52
 
53
53
  @if $_dark-theme {
54
54
  @return k-color-lighten( $color, $amount );
@@ -57,7 +57,7 @@ $kendo-color-level-step: 8% !default;
57
57
  }
58
58
 
59
59
  @function k-try-lighten( $color, $amount ) {
60
- $_dark-theme: if( k-meta-variable-exists( dark-theme ), $dark-theme, false );
60
+ $_dark-theme: if( k-meta-variable-exists( dark-theme ), $kendo-is-dark-theme, false );
61
61
 
62
62
  @if $_dark-theme {
63
63
  @return k-color-darken( $color, $amount );
@@ -1,17 +1,17 @@
1
1
  /// A list of files converted to data URIs
2
2
  /// @access private
3
- $data-uris: () !default;
3
+ $_kendo-data-uris: () !default;
4
4
 
5
- /// Saves a data URI that can be used from the $data-uris map instead of a file reference.
5
+ /// Saves a data URI that can be used from the $_kendo-data-uris map instead of a file reference.
6
6
  /// @access private
7
7
  /// @param {String} $name - The name of the resource.
8
8
  /// @param {String} $content - The data URI of the resource.
9
- /// @require $data-uris
9
+ /// @require $_kendo-data-uris
10
10
  @mixin register-data-uri( $name, $content ) {
11
- @if ( k-map-has-key( $data-uris, $name ) ) {
11
+ @if ( k-map-has-key( $_kendo-data-uris, $name ) ) {
12
12
  // sass-lint:disable-block no-warn
13
13
  @warn "Attempt to redefine data URI of file `#{$name}`.";
14
14
  }
15
15
 
16
- $data-uris: k-map-merge( $data-uris, ( $name: $content ) ) !global;
16
+ $_kendo-data-uris: k-map-merge( $_kendo-data-uris, ( $name: $content ) ) !global;
17
17
  }
@@ -1,8 +1,8 @@
1
- $default-scrollbar-width: 17px !default;
1
+ $kendo-scrollbar-width: 17px !default;
2
2
 
3
3
  @mixin hide-scrollbar( $dir: "right", $max-scrollbar: 100px ) {
4
4
  // anything larger than the scrollbar width will do
5
- $scrollbar-size: var( --kendo-scrollbar-width, #{$default-scrollbar-width} );
5
+ $scrollbar-size: var( --kendo-scrollbar-width, #{$kendo-scrollbar-width} );
6
6
  $margin: calc( -#{$max-scrollbar} - #{$scrollbar-size} );
7
7
 
8
8
  padding-right: $max-scrollbar;
@@ -1,14 +1,14 @@
1
1
  /// A list of exported modules.
2
2
  /// @access private
3
- $imported-modules: () !default;
3
+ $_kendo-imported-modules: () !default;
4
4
 
5
5
  /// Outputs a module once, no matter how many times it is included.
6
6
  /// @access public
7
7
  /// @param {String} $name - The name of the exported module.
8
- /// @require $imported-modules
8
+ /// @require $_kendo-imported-modules
9
9
  @mixin exports( $name ) {
10
- @if (k-list-index( $imported-modules, $name ) == null) {
11
- $imported-modules: k-list-append( $imported-modules, $name ) !global;
10
+ @if (k-list-index( $_kendo-imported-modules, $name ) == null) {
11
+ $_kendo-imported-modules: k-list-append( $_kendo-imported-modules, $name ) !global;
12
12
  @content;
13
13
  }
14
14
  }