@progress/kendo-theme-material 8.0.2-dev.0 → 8.0.2-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.
package/dist/all.scss CHANGED
@@ -712,7 +712,7 @@ $kendo-color-level-step: 8% !default;
712
712
  }
713
713
 
714
714
  // #endregion
715
- // #region @import "./_color-variations.import.scss"; -> /home/runner/work/kendo-themes/kendo-themes/node_modules/@progress/kendo-theme-core/scss/functions/_color-variations.import.scss
715
+ // #region @import "./_color-system.import.scss"; -> /home/runner/work/kendo-themes/kendo-themes/node_modules/@progress/kendo-theme-core/scss/functions/_color-system.import.scss
716
716
  /// Generates all color variations of a given main color
717
717
  /// @param {String} $name - The name of the main color
718
718
  /// @param {Color} $color - The color value to be assigned to the main color
@@ -835,6 +835,22 @@ $kendo-color-level-step: 8% !default;
835
835
 
836
836
  @return $result;
837
837
  }
838
+
839
+ /// Takes a color name from the $kendo-colors map as a parameter
840
+ /// and returns a CSS variable with the actual color as a fallback
841
+ /// @param {String} $key - The name of a color/key in the $kendo-colors map
842
+ /// @return {String} - CSS variable with the actual color as a fallback
843
+ ///
844
+ /// @group color-system
845
+ @function k-color($key) {
846
+ $_color: k-map-get($kendo-colors, $key);
847
+
848
+ @if ($_color) {
849
+ @return var(--kendo-color-#{$key}, $_color);
850
+ } @else {
851
+ @error "Color Variable \`#{$key}\` does not exists in the color collection.";
852
+ }
853
+ }
838
854
  // #endregion
839
855
  // #region @import "./_custom-properties.import.scss"; -> /home/runner/work/kendo-themes/kendo-themes/node_modules/@progress/kendo-theme-core/scss/functions/_custom-properties.import.scss
840
856
  @function k-var( $prefix: kendo-, $var: null, $fallback: null ) {
@@ -5593,16 +5609,6 @@ $_default-colors: (
5593
5609
  $kendo-colors: $_default-colors !default;
5594
5610
  $kendo-colors: k-map-merge($_default-colors, $kendo-colors);
5595
5611
 
5596
- @function k-color($key) {
5597
- $_color: k-map-get($kendo-colors, $key);
5598
-
5599
- @if ($_color) {
5600
- @return var(--kendo-color-#{$key}, $_color);
5601
- } @else {
5602
- @error "Color Variable \`#{$key}\` does not exists in the color collection.";
5603
- }
5604
- }
5605
-
5606
5612
  @mixin color-system--styles() {
5607
5613
  :root {
5608
5614
  @each $key, $value in $kendo-colors {
@@ -16362,7 +16368,6 @@ $kendo-headings: (
16362
16368
  font-weight: $kendo-h1-font-weight,
16363
16369
  letter-spacing: $kendo-h1-letter-spacing,
16364
16370
  margin: $kendo-h1-margin
16365
-
16366
16371
  ),
16367
16372
  h2: (
16368
16373
  font-size: $kendo-h2-font-size,
@@ -16403,7 +16408,7 @@ $kendo-headings: (
16403
16408
  font-weight: $kendo-h6-font-weight,
16404
16409
  letter-spacing: $kendo-h6-letter-spacing,
16405
16410
  margin: $kendo-h6-margin
16406
- ),
16411
+ )
16407
16412
  ) !default;
16408
16413
 
16409
16414
 
@@ -16570,7 +16575,7 @@ $kendo-display: (
16570
16575
  line-height: $kendo-display4-line-height,
16571
16576
  font-weight: $kendo-display4-font-weight,
16572
16577
  letter-spacing: $kendo-display4-letter-spacing
16573
- ),
16578
+ )
16574
16579
  ) !default;
16575
16580
 
16576
16581
  // #endregion