@progress/kendo-theme-core 5.12.1-dev.1 → 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.css CHANGED
@@ -21,17 +21,18 @@
21
21
  flex-flow: column nowrap;
22
22
  }
23
23
 
24
- .k-flex {
24
+ .k-spacer, .k-flex {
25
25
  flex: 1 1 auto;
26
26
  }
27
27
 
28
- .k-spacer {
28
+ .k-spacer-sized {
29
29
  flex: none;
30
- flex-grow: 1;
31
30
  }
32
31
 
33
- .k-spacer-sized {
34
- flex-grow: 0;
32
+ .k-float-wrap::after, .k-floatwrap::after {
33
+ content: "";
34
+ display: block;
35
+ clear: both;
35
36
  }
36
37
 
37
38
  .k-flex-layout {
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
@@ -2073,6 +2073,16 @@ $data-uris: () !default;
2073
2073
  box-shadow: none;
2074
2074
  }
2075
2075
 
2076
+ // #endregion
2077
+ // #region @import "./_focus-indicator.scss"; -> packages/core/scss/mixins/_focus-indicator.scss
2078
+ @mixin focus-indicator( $indicator, $inset: false, $themeable: false, $type: "box-shadow" ) {
2079
+ @if $kendo-enable-focus-contrast and k-list-nth($indicator, 1) {
2080
+ @include box-shadow( if( $inset, inset, null ) 0 0 0 2px if( $themeable, currentColor, rgb( 0, 0, 0 ) ) );
2081
+ } @else {
2082
+ @include box-shadow( $indicator... );
2083
+ }
2084
+ }
2085
+
2076
2086
  // #endregion
2077
2087
  // #region @import "./_gradient.scss"; -> packages/core/scss/mixins/_gradient.scss
2078
2088
  @mixin linear-gradient( $gradient: null ) {
@@ -2114,11 +2124,11 @@ $data-uris: () !default;
2114
2124
 
2115
2125
  // #endregion
2116
2126
  // #region @import "./_hide-scrollbar.scss"; -> packages/core/scss/mixins/_hide-scrollbar.scss
2117
- $default-scrollbar-width: 17px !default;
2127
+ $kendo-scrollbar-width: 17px !default;
2118
2128
 
2119
2129
  @mixin hide-scrollbar( $dir: "right", $max-scrollbar: 100px ) {
2120
2130
  // anything larger than the scrollbar width will do
2121
- $scrollbar-size: var( --kendo-scrollbar-width, #{$default-scrollbar-width} );
2131
+ $scrollbar-size: var( --kendo-scrollbar-width, #{$kendo-scrollbar-width} );
2122
2132
  $margin: calc( -#{$max-scrollbar} - #{$scrollbar-size} );
2123
2133
 
2124
2134
  padding-right: $max-scrollbar;
@@ -2137,15 +2147,15 @@ $default-scrollbar-width: 17px !default;
2137
2147
  // #region @import "./_import-once.scss"; -> packages/core/scss/mixins/_import-once.scss
2138
2148
  /// A list of exported modules.
2139
2149
  /// @access private
2140
- $imported-modules: () !default;
2150
+ $_kendo-imported-modules: () !default;
2141
2151
 
2142
2152
  /// Outputs a module once, no matter how many times it is included.
2143
2153
  /// @access public
2144
2154
  /// @param {String} $name - The name of the exported module.
2145
- /// @require $imported-modules
2155
+ /// @require $_kendo-imported-modules
2146
2156
  @mixin exports( $name ) {
2147
- @if (k-list-index( $imported-modules, $name ) == null) {
2148
- $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;
2149
2159
  @content;
2150
2160
  }
2151
2161
  }
@@ -2880,15 +2890,21 @@ $_imported: ();
2880
2890
  display: flex;
2881
2891
  flex-flow: column nowrap;
2882
2892
  }
2883
- .k-flex {
2893
+
2894
+ // Spacer
2895
+ .k-spacer {
2884
2896
  flex: 1 1 auto;
2885
2897
  }
2886
- .k-spacer {
2898
+ .k-spacer-sized {
2887
2899
  flex: none;
2888
- flex-grow: 1;
2889
2900
  }
2890
- .k-spacer-sized {
2891
- flex-grow: 0;
2901
+
2902
+
2903
+ // Float wrap
2904
+ .k-float-wrap::after {
2905
+ content: "";
2906
+ display: block;
2907
+ clear: both;
2892
2908
  }
2893
2909
 
2894
2910
 
@@ -2952,8 +2968,10 @@ hr.k-separator {
2952
2968
 
2953
2969
 
2954
2970
  // Legacy aliases
2955
- .k-hbox { @extend .k-hstack; }
2956
- .k-vbox { @extend .k-vstack; }
2971
+ .k-hbox { @extend .k-hstack !optional; }
2972
+ .k-vbox { @extend .k-vstack !optional; }
2973
+ .k-floatwrap { @extend .k-float-wrap !optional; }
2974
+ .k-flex { @extend .k-spacer !optional; }
2957
2975
 
2958
2976
  // #endregion
2959
2977
  // #region @import "./_normalize.scss"; -> packages/core/scss/styles/_normalize.scss
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.1",
4
+ "version": "5.12.1-dev.3",
5
5
  "author": "Progress",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
@@ -28,6 +28,16 @@
28
28
  "publishConfig": {
29
29
  "access": "public"
30
30
  },
31
- "scripts": {},
32
- "gitHead": "6b89eb7de787b8a794d7ead79e0c4218abf59b18"
31
+ "scripts": {
32
+ "build": "sass-build",
33
+ "sass": "sass-build",
34
+ "docs": "node ../../scripts/sassdoc.js",
35
+ "predocs": "npm run resolve-variables",
36
+ "resolve-variables": "node ../../scripts/resolve-variables.js",
37
+ "nuget-pack": "jq '.version' package.json | xargs nuget pack package.nuspec -Version",
38
+ "nuget-push": "nuget push *.nupkg -ApiKey $NUGET_API_KEY -Source $NUGET_FEED -SkipDuplicate",
39
+ "prepublishOnly": "node ../../scripts/themes-prepublish.js",
40
+ "postpublish": "echo 'no postpublish for core theme'"
41
+ },
42
+ "gitHead": "8c82f49a750901799f12f09ca977f65b74ff9577"
33
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
  }
@@ -0,0 +1,7 @@
1
+ @mixin focus-indicator( $indicator, $inset: false, $themeable: false, $type: "box-shadow" ) {
2
+ @if $kendo-enable-focus-contrast and k-list-nth($indicator, 1) {
3
+ @include box-shadow( if( $inset, inset, null ) 0 0 0 2px if( $themeable, currentColor, rgb( 0, 0, 0 ) ) );
4
+ } @else {
5
+ @include box-shadow( $indicator... );
6
+ }
7
+ }
@@ -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
  }
@@ -2,6 +2,7 @@
2
2
  @import "./_box-shadow.scss";
3
3
  @import "./_data-uri.scss";
4
4
  @import "./_disabled.scss";
5
+ @import "./_focus-indicator.scss";
5
6
  @import "./_gradient.scss";
6
7
  @import "./_hide-scrollbar.scss";
7
8
  @import "./_import-once.scss";
@@ -7,15 +7,21 @@
7
7
  display: flex;
8
8
  flex-flow: column nowrap;
9
9
  }
10
- .k-flex {
10
+
11
+ // Spacer
12
+ .k-spacer {
11
13
  flex: 1 1 auto;
12
14
  }
13
- .k-spacer {
15
+ .k-spacer-sized {
14
16
  flex: none;
15
- flex-grow: 1;
16
17
  }
17
- .k-spacer-sized {
18
- flex-grow: 0;
18
+
19
+
20
+ // Float wrap
21
+ .k-float-wrap::after {
22
+ content: "";
23
+ display: block;
24
+ clear: both;
19
25
  }
20
26
 
21
27
 
@@ -79,5 +85,7 @@ hr.k-separator {
79
85
 
80
86
 
81
87
  // Legacy aliases
82
- .k-hbox { @extend .k-hstack; }
83
- .k-vbox { @extend .k-vstack; }
88
+ .k-hbox { @extend .k-hstack !optional; }
89
+ .k-vbox { @extend .k-vstack !optional; }
90
+ .k-floatwrap { @extend .k-float-wrap !optional; }
91
+ .k-flex { @extend .k-spacer !optional; }