@progress/kendo-theme-core 8.0.2-dev.1 → 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
@@ -707,7 +707,7 @@ $kendo-color-level-step: 8% !default;
707
707
  }
708
708
 
709
709
  // #endregion
710
- // #region @import "./_color-variations.import.scss"; -> scss/functions/_color-variations.import.scss
710
+ // #region @import "./_color-system.import.scss"; -> scss/functions/_color-system.import.scss
711
711
  /// Generates all color variations of a given main color
712
712
  /// @param {String} $name - The name of the main color
713
713
  /// @param {Color} $color - The color value to be assigned to the main color
@@ -830,6 +830,22 @@ $kendo-color-level-step: 8% !default;
830
830
 
831
831
  @return $result;
832
832
  }
833
+
834
+ /// Takes a color name from the $kendo-colors map as a parameter
835
+ /// and returns a CSS variable with the actual color as a fallback
836
+ /// @param {String} $key - The name of a color/key in the $kendo-colors map
837
+ /// @return {String} - CSS variable with the actual color as a fallback
838
+ ///
839
+ /// @group color-system
840
+ @function k-color($key) {
841
+ $_color: k-map-get($kendo-colors, $key);
842
+
843
+ @if ($_color) {
844
+ @return var(--kendo-color-#{$key}, $_color);
845
+ } @else {
846
+ @error "Color Variable \`#{$key}\` does not exists in the color collection.";
847
+ }
848
+ }
833
849
  // #endregion
834
850
  // #region @import "./_custom-properties.import.scss"; -> scss/functions/_custom-properties.import.scss
835
851
  @function k-var( $prefix: kendo-, $var: null, $fallback: null ) {
@@ -3209,16 +3225,6 @@ $_default-colors: (
3209
3225
  $kendo-colors: $_default-colors !default;
3210
3226
  $kendo-colors: k-map-merge($_default-colors, $kendo-colors);
3211
3227
 
3212
- @function k-color($key) {
3213
- $_color: k-map-get($kendo-colors, $key);
3214
-
3215
- @if ($_color) {
3216
- @return var(--kendo-color-#{$key}, $_color);
3217
- } @else {
3218
- @error "Color Variable \`#{$key}\` does not exists in the color collection.";
3219
- }
3220
- }
3221
-
3222
3228
  @mixin color-system--styles() {
3223
3229
  :root {
3224
3230
  @each $key, $value in $kendo-colors {
@@ -342,6 +342,21 @@
342
342
  "path": "core/scss/color-system/_swatch.scss",
343
343
  "name": "_swatch.scss"
344
344
  },
345
+ "usedBy": [
346
+ {
347
+ "description": "Takes a color name from the $kendo-colors map as a parameter\nand returns a CSS variable with the actual color as a fallback\n",
348
+ "context": {
349
+ "type": "function",
350
+ "name": "k-color",
351
+ "code": "\n $_color: k-map-get($kendo-colors, $key);\n\n @if ($_color) {\n @return var(--kendo-color-#{$key}, $_color);\n } @else {\n @error \"Color Variable \\`#{$key}\\` does not exists in the color collection.\";\n }\n",
352
+ "line": {
353
+ "start": 130,
354
+ "end": 138
355
+ },
356
+ "signature": "k-color($key)"
357
+ }
358
+ }
359
+ ],
345
360
  "resolvedValue": "(app-surface: null, on-app-surface: null, subtle: null, surface: null, surface-alt: null, border: null, border-alt: null, base-subtle: null, base-subtle-hover: null, base-subtle-active: null, base: null, base-hover: null, base-active: null, base-emphasis: null, base-on-subtle: null, on-base: null, base-on-surface: null, primary-subtle: null, primary-subtle-hover: null, primary-subtle-active: null, primary: null, primary-hover: null, primary-active: null, primary-emphasis: null, primary-on-subtle: null, on-primary: null, primary-on-surface: null, secondary-subtle: null, secondary-subtle-hover: null, secondary-subtle-active: null, secondary: null, secondary-hover: null, secondary-active: null, secondary-emphasis: null, secondary-on-subtle: null, on-secondary: null, secondary-on-surface: null, tertiary-subtle: null, tertiary-subtle-hover: null, tertiary-subtle-active: null, tertiary: null, tertiary-hover: null, tertiary-active: null, tertiary-emphasis: null, tertiary-on-subtle: null, on-tertiary: null, tertiary-on-surface: null, info-subtle: null, info-subtle-hover: null, info-subtle-active: null, info: null, info-hover: null, info-active: null, info-emphasis: null, info-on-subtle: null, on-info: null, info-on-surface: null, success-subtle: null, success-subtle-hover: null, success-subtle-active: null, success: null, success-hover: null, success-active: null, success-emphasis: null, success-on-subtle: null, on-success: null, success-on-surface: null, warning-subtle: null, warning-subtle-hover: null, warning-subtle-active: null, warning: null, warning-hover: null, warning-active: null, warning-emphasis: null, warning-on-subtle: null, on-warning: null, warning-on-surface: null, error-subtle: null, error-subtle-hover: null, error-subtle-active: null, error: null, error-hover: null, error-active: null, error-emphasis: null, error-on-subtle: null, on-error: null, error-on-surface: null, light-subtle: null, light-subtle-hover: null, light-subtle-active: null, light: null, light-hover: null, light-active: null, light-emphasis: null, light-on-subtle: null, on-light: null, light-on-surface: null, dark-subtle: null, dark-subtle-hover: null, dark-subtle-active: null, dark: null, dark-hover: null, dark-active: null, dark-emphasis: null, dark-on-subtle: null, on-dark: null, dark-on-surface: null, inverse-subtle: null, inverse-subtle-hover: null, inverse-subtle-active: null, inverse: null, inverse-hover: null, inverse-active: null, inverse-emphasis: null, inverse-on-subtle: null, on-inverse: null, inverse-on-surface: null, series-a: null, series-a-bold: null, series-a-bolder: null, series-a-subtle: null, series-a-subtler: null, series-b: null, series-b-bold: null, series-b-bolder: null, series-b-subtle: null, series-b-subtler: null, series-c: null, series-c-bold: null, series-c-bolder: null, series-c-subtle: null, series-c-subtler: null, series-d: null, series-d-bold: null, series-d-bolder: null, series-d-subtle: null, series-d-subtler: null, series-e: null, series-e-bold: null, series-e-bolder: null, series-e-subtle: null, series-e-subtler: null, series-f: null, series-f-bold: null, series-f-bolder: null, series-f-subtle: null, series-f-subtler: null)",
346
361
  "resolvedType": "Map"
347
362
  },
@@ -3947,8 +3962,8 @@
3947
3962
  }
3948
3963
  ],
3949
3964
  "file": {
3950
- "path": "core/scss/functions/_color-variations.import.scss",
3951
- "name": "_color-variations.import.scss"
3965
+ "path": "core/scss/functions/_color-system.import.scss",
3966
+ "name": "_color-system.import.scss"
3952
3967
  },
3953
3968
  "examples": [],
3954
3969
  "parameters": [
@@ -3969,6 +3984,56 @@
3969
3984
  }
3970
3985
  ]
3971
3986
  },
3987
+ {
3988
+ "description": "Takes a color name from the $kendo-colors map as a parameter\nand returns a CSS variable with the actual color as a fallback\n",
3989
+ "commentRange": {
3990
+ "start": 124,
3991
+ "end": 129
3992
+ },
3993
+ "context": {
3994
+ "type": "function",
3995
+ "name": "k-color",
3996
+ "code": "\n $_color: k-map-get($kendo-colors, $key);\n\n @if ($_color) {\n @return var(--kendo-color-#{$key}, $_color);\n } @else {\n @error \"Color Variable \\`#{$key}\\` does not exists in the color collection.\";\n }\n",
3997
+ "line": {
3998
+ "start": 130,
3999
+ "end": 138
4000
+ },
4001
+ "signature": "k-color($key)"
4002
+ },
4003
+ "return": {
4004
+ "type": "String",
4005
+ "description": "CSS variable with the actual color as a fallback\n"
4006
+ },
4007
+ "group": [
4008
+ "color-system"
4009
+ ],
4010
+ "access": "public",
4011
+ "require": [
4012
+ {
4013
+ "type": "function",
4014
+ "name": "k-map-get"
4015
+ },
4016
+ {
4017
+ "type": "variable",
4018
+ "name": "kendo-colors"
4019
+ }
4020
+ ],
4021
+ "throw": [
4022
+ "Color Variable \\`#{$key}\\` does not exists in the color collection."
4023
+ ],
4024
+ "file": {
4025
+ "path": "core/scss/functions/_color-system.import.scss",
4026
+ "name": "_color-system.import.scss"
4027
+ },
4028
+ "examples": [],
4029
+ "parameters": [
4030
+ {
4031
+ "type": "String",
4032
+ "name": "key",
4033
+ "description": "The name of a color/key in the $kendo-colors map"
4034
+ }
4035
+ ]
4036
+ },
3972
4037
  {
3973
4038
  "description": "Returns the alpha channel of a color.\n",
3974
4039
  "commentRange": {
@@ -5790,6 +5855,19 @@
5790
5855
  "name": "_map.import.scss"
5791
5856
  },
5792
5857
  "usedBy": [
5858
+ {
5859
+ "description": "Takes a color name from the $kendo-colors map as a parameter\nand returns a CSS variable with the actual color as a fallback\n",
5860
+ "context": {
5861
+ "type": "function",
5862
+ "name": "k-color",
5863
+ "code": "\n $_color: k-map-get($kendo-colors, $key);\n\n @if ($_color) {\n @return var(--kendo-color-#{$key}, $_color);\n } @else {\n @error \"Color Variable \\`#{$key}\\` does not exists in the color collection.\";\n }\n",
5864
+ "line": {
5865
+ "start": 130,
5866
+ "end": 138
5867
+ },
5868
+ "signature": "k-color($key)"
5869
+ }
5870
+ },
5793
5871
  {
5794
5872
  "description": "Returns a deep-map with the keys and values from `$map` and `$args`.\n",
5795
5873
  "context": {
@@ -10036,6 +10114,21 @@
10036
10114
  "path": "core/scss/color-system/_swatch.scss",
10037
10115
  "name": "_swatch.scss"
10038
10116
  },
10117
+ "usedBy": [
10118
+ {
10119
+ "description": "Takes a color name from the $kendo-colors map as a parameter\nand returns a CSS variable with the actual color as a fallback\n",
10120
+ "context": {
10121
+ "type": "function",
10122
+ "name": "k-color",
10123
+ "code": "\n $_color: k-map-get($kendo-colors, $key);\n\n @if ($_color) {\n @return var(--kendo-color-#{$key}, $_color);\n } @else {\n @error \"Color Variable \\`#{$key}\\` does not exists in the color collection.\";\n }\n",
10124
+ "line": {
10125
+ "start": 130,
10126
+ "end": 138
10127
+ },
10128
+ "signature": "k-color($key)"
10129
+ }
10130
+ }
10131
+ ],
10039
10132
  "resolvedValue": "(app-surface: null, on-app-surface: null, subtle: null, surface: null, surface-alt: null, border: null, border-alt: null, base-subtle: null, base-subtle-hover: null, base-subtle-active: null, base: null, base-hover: null, base-active: null, base-emphasis: null, base-on-subtle: null, on-base: null, base-on-surface: null, primary-subtle: null, primary-subtle-hover: null, primary-subtle-active: null, primary: null, primary-hover: null, primary-active: null, primary-emphasis: null, primary-on-subtle: null, on-primary: null, primary-on-surface: null, secondary-subtle: null, secondary-subtle-hover: null, secondary-subtle-active: null, secondary: null, secondary-hover: null, secondary-active: null, secondary-emphasis: null, secondary-on-subtle: null, on-secondary: null, secondary-on-surface: null, tertiary-subtle: null, tertiary-subtle-hover: null, tertiary-subtle-active: null, tertiary: null, tertiary-hover: null, tertiary-active: null, tertiary-emphasis: null, tertiary-on-subtle: null, on-tertiary: null, tertiary-on-surface: null, info-subtle: null, info-subtle-hover: null, info-subtle-active: null, info: null, info-hover: null, info-active: null, info-emphasis: null, info-on-subtle: null, on-info: null, info-on-surface: null, success-subtle: null, success-subtle-hover: null, success-subtle-active: null, success: null, success-hover: null, success-active: null, success-emphasis: null, success-on-subtle: null, on-success: null, success-on-surface: null, warning-subtle: null, warning-subtle-hover: null, warning-subtle-active: null, warning: null, warning-hover: null, warning-active: null, warning-emphasis: null, warning-on-subtle: null, on-warning: null, warning-on-surface: null, error-subtle: null, error-subtle-hover: null, error-subtle-active: null, error: null, error-hover: null, error-active: null, error-emphasis: null, error-on-subtle: null, on-error: null, error-on-surface: null, light-subtle: null, light-subtle-hover: null, light-subtle-active: null, light: null, light-hover: null, light-active: null, light-emphasis: null, light-on-subtle: null, on-light: null, light-on-surface: null, dark-subtle: null, dark-subtle-hover: null, dark-subtle-active: null, dark: null, dark-hover: null, dark-active: null, dark-emphasis: null, dark-on-subtle: null, on-dark: null, dark-on-surface: null, inverse-subtle: null, inverse-subtle-hover: null, inverse-subtle-active: null, inverse: null, inverse-hover: null, inverse-active: null, inverse-emphasis: null, inverse-on-subtle: null, on-inverse: null, inverse-on-surface: null, series-a: null, series-a-bold: null, series-a-bolder: null, series-a-subtle: null, series-a-subtler: null, series-b: null, series-b-bold: null, series-b-bolder: null, series-b-subtle: null, series-b-subtler: null, series-c: null, series-c-bold: null, series-c-bolder: null, series-c-subtle: null, series-c-subtler: null, series-d: null, series-d-bold: null, series-d-bolder: null, series-d-subtle: null, series-d-subtler: null, series-e: null, series-e-bold: null, series-e-bolder: null, series-e-subtle: null, series-e-subtler: null, series-f: null, series-f-bold: null, series-f-bolder: null, series-f-subtle: null, series-f-subtler: null)",
10040
10133
  "resolvedType": "Map"
10041
10134
  }
@@ -1025,7 +1025,21 @@
1025
1025
  "file": {
1026
1026
  "path": "color-system/_swatch.scss",
1027
1027
  "name": "_swatch.scss"
1028
- }
1028
+ },
1029
+ "usedBy": [
1030
+ {
1031
+ "description": "Takes a color name from the $kendo-colors map as a parameter\nand returns a CSS variable with the actual color as a fallback\n",
1032
+ "context": {
1033
+ "type": "function",
1034
+ "name": "k-color",
1035
+ "code": "\n $_color: k-map-get($kendo-colors, $key);\n\n @if ($_color) {\n @return var(--kendo-color-#{$key}, $_color);\n } @else {\n @error \"Color Variable \\`#{$key}\\` does not exists in the color collection.\";\n }\n",
1036
+ "line": {
1037
+ "start": 130,
1038
+ "end": 138
1039
+ }
1040
+ }
1041
+ }
1042
+ ]
1029
1043
  },
1030
1044
  {
1031
1045
  "description": "Set a specific jump point for requesting color jumps\n",
@@ -2724,8 +2738,56 @@
2724
2738
  }
2725
2739
  ],
2726
2740
  "file": {
2727
- "path": "functions/_color-variations.import.scss",
2728
- "name": "_color-variations.import.scss"
2741
+ "path": "functions/_color-system.import.scss",
2742
+ "name": "_color-system.import.scss"
2743
+ }
2744
+ },
2745
+ {
2746
+ "description": "Takes a color name from the $kendo-colors map as a parameter\nand returns a CSS variable with the actual color as a fallback\n",
2747
+ "commentRange": {
2748
+ "start": 124,
2749
+ "end": 129
2750
+ },
2751
+ "context": {
2752
+ "type": "function",
2753
+ "name": "k-color",
2754
+ "code": "\n $_color: k-map-get($kendo-colors, $key);\n\n @if ($_color) {\n @return var(--kendo-color-#{$key}, $_color);\n } @else {\n @error \"Color Variable \\`#{$key}\\` does not exists in the color collection.\";\n }\n",
2755
+ "line": {
2756
+ "start": 130,
2757
+ "end": 138
2758
+ }
2759
+ },
2760
+ "parameter": [
2761
+ {
2762
+ "type": "String",
2763
+ "name": "key",
2764
+ "description": "The name of a color/key in the $kendo-colors map"
2765
+ }
2766
+ ],
2767
+ "return": {
2768
+ "type": "String",
2769
+ "description": "CSS variable with the actual color as a fallback\n"
2770
+ },
2771
+ "group": [
2772
+ "color-system"
2773
+ ],
2774
+ "access": "public",
2775
+ "require": [
2776
+ {
2777
+ "type": "function",
2778
+ "name": "k-map-get"
2779
+ },
2780
+ {
2781
+ "type": "variable",
2782
+ "name": "kendo-colors"
2783
+ }
2784
+ ],
2785
+ "throw": [
2786
+ "Color Variable \\`#{$key}\\` does not exists in the color collection."
2787
+ ],
2788
+ "file": {
2789
+ "path": "functions/_color-system.import.scss",
2790
+ "name": "_color-system.import.scss"
2729
2791
  }
2730
2792
  },
2731
2793
  {
@@ -5836,6 +5898,18 @@
5836
5898
  "name": "_map.import.scss"
5837
5899
  },
5838
5900
  "usedBy": [
5901
+ {
5902
+ "description": "Takes a color name from the $kendo-colors map as a parameter\nand returns a CSS variable with the actual color as a fallback\n",
5903
+ "context": {
5904
+ "type": "function",
5905
+ "name": "k-color",
5906
+ "code": "\n $_color: k-map-get($kendo-colors, $key);\n\n @if ($_color) {\n @return var(--kendo-color-#{$key}, $_color);\n } @else {\n @error \"Color Variable \\`#{$key}\\` does not exists in the color collection.\";\n }\n",
5907
+ "line": {
5908
+ "start": 130,
5909
+ "end": 138
5910
+ }
5911
+ }
5912
+ },
5839
5913
  {
5840
5914
  "description": "Returns a deep-map with the keys and values from `$map` and `$args`.\n",
5841
5915
  "context": {
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": "8.0.2-dev.1",
4
+ "version": "8.0.2-dev.2",
5
5
  "author": "Progress",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
@@ -44,5 +44,5 @@
44
44
  "directories": {
45
45
  "doc": "docs"
46
46
  },
47
- "gitHead": "2a309ed276c82c25b7e8124faefa263378e1debe"
47
+ "gitHead": "d2e0bc66effd4c820a3ca0f87eff34246c2bb9b8"
48
48
  }
@@ -177,16 +177,6 @@ $_default-colors: (
177
177
  $kendo-colors: $_default-colors !default;
178
178
  $kendo-colors: k-map-merge($_default-colors, $kendo-colors);
179
179
 
180
- @function k-color($key) {
181
- $_color: k-map-get($kendo-colors, $key);
182
-
183
- @if ($_color) {
184
- @return var(--kendo-color-#{$key}, $_color);
185
- } @else {
186
- @error "Color Variable \`#{$key}\` does not exists in the color collection.";
187
- }
188
- }
189
-
190
180
  @mixin color-system--styles() {
191
181
  :root {
192
182
  @each $key, $value in $kendo-colors {
@@ -119,4 +119,20 @@
119
119
  }
120
120
 
121
121
  @return $result;
122
+ }
123
+
124
+ /// Takes a color name from the $kendo-colors map as a parameter
125
+ /// and returns a CSS variable with the actual color as a fallback
126
+ /// @param {String} $key - The name of a color/key in the $kendo-colors map
127
+ /// @return {String} - CSS variable with the actual color as a fallback
128
+ ///
129
+ /// @group color-system
130
+ @function k-color($key) {
131
+ $_color: k-map-get($kendo-colors, $key);
132
+
133
+ @if ($_color) {
134
+ @return var(--kendo-color-#{$key}, $_color);
135
+ } @else {
136
+ @error "Color Variable \`#{$key}\` does not exists in the color collection.";
137
+ }
122
138
  }
@@ -1,7 +1,7 @@
1
1
  @import "./_color.import.scss";
2
2
  @import "./_color-contrast.import.scss";
3
3
  @import "./_color-manipulation.import.scss";
4
- @import "./_color-variations.import.scss";
4
+ @import "./_color-system.import.scss";
5
5
  @import "./_custom-properties.import.scss";
6
6
  @import "./_escape-string.import.scss";
7
7
  @import "./_lang.import.scss";