@progress/kendo-theme-fluent 10.2.0-dev.0 → 10.2.0-dev.1

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.
@@ -17677,18 +17677,6 @@
17677
17677
  "type": "String",
17678
17678
  "value": "var(--kendo-font-size, inherit)"
17679
17679
  },
17680
- "kendo-chart-sm-font-size": {
17681
- "type": "String",
17682
- "value": "var(--kendo-font-size-sm, inherit)"
17683
- },
17684
- "kendo-chart-md-font-size": {
17685
- "type": "String",
17686
- "value": "var(--kendo-font-size, inherit)"
17687
- },
17688
- "kendo-chart-lg-font-size": {
17689
- "type": "String",
17690
- "value": "var(--kendo-font-size-lg, inherit)"
17691
- },
17692
17680
  "kendo-chart-line-height": {
17693
17681
  "type": "String",
17694
17682
  "value": "var(--kendo-line-height, normal)"
@@ -17813,7 +17801,7 @@
17813
17801
  "type": "String",
17814
17802
  "value": "var(--kendo-hover-border, initial)"
17815
17803
  },
17816
- "kendo-color-error-bars-background": {
17804
+ "kendo-chart-error-bars-background": {
17817
17805
  "type": "String",
17818
17806
  "value": "var(--kendo-color-error, #c2666b)"
17819
17807
  },
@@ -3,7 +3,7 @@
3
3
  "name": "All",
4
4
  "product": "kendo",
5
5
  "base": "@progress/kendo-theme-fluent",
6
- "version": "10.2.0-dev.0",
6
+ "version": "10.2.0-dev.1",
7
7
  "api": "modern",
8
8
  "previewColors": [
9
9
  "#ffffff",
@@ -3,7 +3,7 @@
3
3
  "name": "Fluent Main Dark",
4
4
  "product": "kendo",
5
5
  "base": "@progress/kendo-theme-fluent",
6
- "version": "10.2.0-dev.0",
6
+ "version": "10.2.0-dev.1",
7
7
  "api": "modern",
8
8
  "previewColors": [
9
9
  "#ffffff",
@@ -3,7 +3,7 @@
3
3
  "name": "Fluent Main",
4
4
  "product": "kendo",
5
5
  "base": "@progress/kendo-theme-fluent",
6
- "version": "10.2.0-dev.0",
6
+ "version": "10.2.0-dev.1",
7
7
  "api": "modern",
8
8
  "previewColors": [
9
9
  "#ffffff",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-theme-fluent",
3
3
  "description": "A css variables based theme for Kendo UI that follows the Fluent design system guidelines.",
4
- "version": "10.2.0-dev.0",
4
+ "version": "10.2.0-dev.1",
5
5
  "author": "Progress",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
@@ -54,12 +54,12 @@
54
54
  },
55
55
  "dependencies": {
56
56
  "@progress/kendo-svg-icons": "^4.0.0",
57
- "@progress/kendo-theme-core": "10.2.0-dev.0",
58
- "@progress/kendo-theme-utils": "10.2.0-dev.0"
57
+ "@progress/kendo-theme-core": "10.2.0-dev.1",
58
+ "@progress/kendo-theme-utils": "10.2.0-dev.1"
59
59
  },
60
60
  "directories": {
61
61
  "doc": "docs",
62
62
  "lib": "lib"
63
63
  },
64
- "gitHead": "8131b2e63fdb04068216ad13c1d1dfa74ed6cd97"
64
+ "gitHead": "d0b68833bec04a91798d4f90ad41a819401b13ce"
65
65
  }
@@ -15,26 +15,6 @@
15
15
  }
16
16
  }
17
17
 
18
- // Exported variables
19
- // stylelint-disable selector-class-pattern
20
- .k-var--chart-font {
21
- font-size: var( --kendo-chart-font-size, #{$kendo-chart-font-size} );
22
- }
23
-
24
- .k-var--chart-title-font {
25
- font-size: var( --kendo-chart-title-font-size, #{$kendo-chart-title-font-size} );
26
- }
27
-
28
- .k-var--chart-pane-title-font {
29
- font-size: var( --kendo-chart-pane-title-font-size, #{$kendo-chart-pane-title-font-size} );
30
- font-weight: var( --kendo-chart-pane-title-font-weight, #{$kendo-chart-pane-title-font-weight} );
31
- }
32
-
33
- .k-var--chart-label-font {
34
- font-size: var( --kendo-chart-label-font-size, #{$kendo-chart-label-font-size} );
35
- }
36
- // stylelint-enable selector-class-pattern
37
-
38
18
  // Elements
39
19
  .k-chart,
40
20
  .k-sparkline,
@@ -422,19 +402,8 @@
422
402
  base: $kendo-component-bg,
423
403
  background: $kendo-component-bg,
424
404
 
425
- border-radius: k-border-radius(md),
426
-
427
405
  normal-background: $kendo-component-bg,
428
406
  normal-text-color: $kendo-component-text,
429
- hover-background: $kendo-hover-bg,
430
- hover-text-color: $kendo-hover-text,
431
- selected-background: $kendo-selected-bg,
432
- selected-text-color: $kendo-selected-text,
433
-
434
- success: if($kendo-enable-color-system, k-color( success ), k-get-theme-color( success, 100 )),
435
- info: if($kendo-enable-color-system, k-color( info ), k-get-theme-color( info, 100 )),
436
- warning: if($kendo-enable-color-system, k-color( warning ), k-get-theme-color( warning, 100 )),
437
- error: if($kendo-enable-color-system, k-color( error ), k-get-theme-color( error, 100 )),
438
407
 
439
408
  series-a: $kendo-series-a,
440
409
  series-b: $kendo-series-b,
@@ -475,22 +444,112 @@
475
444
  series-30: $kendo-series-30,
476
445
 
477
446
  gauge-pointer: $kendo-series-f,
478
- gauge-track: if($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-30 ))
447
+ gauge-track: if($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-30 )),
448
+
449
+ chart-font-size: $kendo-chart-font-size,
450
+ chart-title-font-size: $kendo-chart-title-font-size,
451
+ chart-pane-title-font-size: $kendo-chart-pane-title-font-size,
452
+ chart-pane-title-font-weight: $kendo-chart-pane-title-font-weight,
453
+ chart-label-font-size: $kendo-chart-label-font-size,
454
+
455
+ chart-inactive: $kendo-chart-inactive-bg,
456
+ chart-major-lines: $kendo-chart-major-lines,
457
+ chart-minor-lines: $kendo-chart-minor-lines,
458
+ chart-area-opacity: $kendo-chart-area-opacity,
459
+ chart-area-inactive-opacity: $kendo-chart-area-inactive-opacity,
460
+ chart-line-inactive-opacity: $kendo-chart-line-inactive-opacity,
461
+ chart-notes-background: $kendo-chart-notes-background,
462
+ chart-notes-border: $kendo-chart-notes-border,
463
+ chart-notes-lines: $kendo-chart-notes-lines,
464
+ chart-crosshair-background: $kendo-chart-crosshair-background,
465
+ chart-error-bars-background: $kendo-chart-error-bars-background,
466
+
479
467
  );
480
468
 
469
+ // TODO: remove in favor of CSS variables once all suites are updated
481
470
  @each $name, $value in $exported {
482
471
  $type: meta.type-of($value);
483
472
 
484
473
  .k-var--#{$name} {
485
- @if $type == "color" {
474
+ @if $type == "color" or $type == "string" and string.index($value, "color") {
486
475
  // background-color can store any color
487
- background-color: $value;
488
- } @else if $type == "string" and string.slice( $value, 1, 4 ) == "var(" {
489
- background-color: $value;
490
- } @else if $type == "number" {
491
- // margin-top can store positive & negative values
492
- margin-top: $value;
476
+ background-color: #{$value};
477
+ } @else if string.index($name, "font-size") {
478
+ font-size: #{$value};
479
+ } @else if string.index($name, "font-weight") {
480
+ font-weight: #{$value};
481
+ } @else if string.index($name, "opacity") {
482
+ opacity: #{$value};
493
483
  }
484
+
485
+ }
486
+ }
487
+
488
+ $_css-vars: (
489
+ chart-primary-contrast: if($kendo-enable-color-system, k-color( app-surface ), $kendo-color-white),
490
+ chart-bg: $kendo-chart-bg,
491
+ chart-text: $kendo-chart-text,
492
+
493
+ chart-font-size: $kendo-chart-font-size,
494
+ chart-title-font-size: $kendo-chart-title-font-size,
495
+ chart-pane-title-font-size: $kendo-chart-pane-title-font-size,
496
+ chart-pane-title-font-weight: $kendo-chart-pane-title-font-weight,
497
+ chart-label-font-size: $kendo-chart-label-font-size,
498
+
499
+ chart-inactive: $kendo-chart-inactive-bg,
500
+ chart-major-lines: $kendo-chart-major-lines,
501
+ chart-minor-lines: $kendo-chart-minor-lines,
502
+ chart-area-opacity: $kendo-chart-area-opacity,
503
+ chart-area-inactive-opacity: $kendo-chart-area-inactive-opacity,
504
+ chart-line-inactive-opacity: $kendo-chart-line-inactive-opacity,
505
+ chart-notes-bg: $kendo-chart-notes-background,
506
+ chart-notes-border: $kendo-chart-notes-border,
507
+ chart-notes-lines: $kendo-chart-notes-lines,
508
+ chart-crosshair-bg: $kendo-chart-crosshair-background,
509
+ chart-error-bars-bg: $kendo-chart-error-bars-background,
510
+
511
+ chart-series-1: $kendo-series-1,
512
+ chart-series-2: $kendo-series-2,
513
+ chart-series-3: $kendo-series-3,
514
+ chart-series-4: $kendo-series-4,
515
+ chart-series-5: $kendo-series-5,
516
+ chart-series-6: $kendo-series-6,
517
+ chart-series-7: $kendo-series-7,
518
+ chart-series-8: $kendo-series-8,
519
+ chart-series-9: $kendo-series-9,
520
+ chart-series-10: $kendo-series-10,
521
+ chart-series-11: $kendo-series-11,
522
+ chart-series-12: $kendo-series-12,
523
+ chart-series-13: $kendo-series-13,
524
+ chart-series-14: $kendo-series-14,
525
+ chart-series-15: $kendo-series-15,
526
+ chart-series-16: $kendo-series-16,
527
+ chart-series-17: $kendo-series-17,
528
+ chart-series-18: $kendo-series-18,
529
+ chart-series-19: $kendo-series-19,
530
+ chart-series-20: $kendo-series-20,
531
+ chart-series-21: $kendo-series-21,
532
+ chart-series-22: $kendo-series-22,
533
+ chart-series-23: $kendo-series-23,
534
+ chart-series-24: $kendo-series-24,
535
+ chart-series-25: $kendo-series-25,
536
+ chart-series-26: $kendo-series-26,
537
+ chart-series-27: $kendo-series-27,
538
+ chart-series-28: $kendo-series-28,
539
+ chart-series-29: $kendo-series-29,
540
+ chart-series-30: $kendo-series-30,
541
+
542
+ chart-gauge-pointer: $kendo-series-f,
543
+ chart-gauge-track: if($kendo-enable-color-system, k-color( base-emphasis ), k-get-theme-color-var( neutral-30 ))
544
+
545
+ );
546
+
547
+ .k-chart,
548
+ .k-diagram,
549
+ .k-gauge,
550
+ .k-sparkline {
551
+ @each $name, $value in $_css-vars {
552
+ --kendo-#{$name}: #{$value};
494
553
  }
495
554
  }
496
555
 
@@ -3,53 +3,6 @@
3
3
 
4
4
  @mixin kendo-dataviz--theme() {
5
5
 
6
- // Exported variables
7
- // stylelint-disable selector-class-pattern
8
- .k-var--chart-inactive {
9
- @include fill( $bg: var( --kendo-chart-inactive-bg, #{$kendo-chart-inactive-bg} ) );
10
- }
11
-
12
- .k-var--chart-major-lines {
13
- @include fill( $bg: var( --kendo-chart-major-lines, #{$kendo-chart-major-lines} ) );
14
- }
15
-
16
- .k-var--chart-minor-lines {
17
- @include fill( $bg: var( --kendo-chart-minor-lines, #{$kendo-chart-minor-lines} ) );
18
- }
19
-
20
- .k-var--chart-area-opacity {
21
- opacity: var( --kendo-chart-area-opacity, #{$kendo-chart-area-opacity} );
22
- }
23
-
24
- .k-var--chart-area-inactive-opacity {
25
- opacity: var( --kendo-chart-area-inactive-opacity, #{$kendo-chart-area-inactive-opacity} );
26
- }
27
-
28
- .k-var--chart-line-inactive-opacity {
29
- opacity: var( --kendo-chart-line-inactive-opacity, #{$kendo-chart-line-inactive-opacity} );
30
- }
31
-
32
- .k-var--chart-notes-background {
33
- @include fill( $bg: var( --kendo-chart-notes-background, #{$kendo-chart-notes-background} ) );
34
- }
35
-
36
- .k-var--chart-notes-border {
37
- @include fill( $bg: var( --kendo-chart-notes-border, #{$kendo-chart-notes-border} ) );
38
- }
39
-
40
- .k-var--chart-notes-lines {
41
- @include fill( $bg: var( --kendo-chart-notes-lines, #{$kendo-chart-notes-lines} ) );
42
- }
43
-
44
- .k-var--chart-crosshair-background {
45
- @include fill( $bg: var( --kendo-chart-crosshair-background, #{$kendo-chart-crosshair-background} ) );
46
- }
47
-
48
- .k-var--chart-error-bars-background {
49
- @include fill( $bg: var( --kendo-error-bars-background, #{$kendo-color-error-bars-background} ) );
50
- }
51
- // stylelint-enable selector-class-pattern
52
-
53
6
  // Elements
54
7
  .k-chart,
55
8
  .k-sparkline,
@@ -92,9 +92,6 @@ $kendo-chart-font-family: var( --kendo-font-family, inherit ) !default;
92
92
  /// The font-size of the chart component.
93
93
  /// @group charts
94
94
  $kendo-chart-font-size: var( --kendo-font-size, inherit ) !default;
95
- $kendo-chart-sm-font-size: var( --kendo-font-size-sm, inherit ) !default;
96
- $kendo-chart-md-font-size: var( --kendo-font-size, inherit ) !default;
97
- $kendo-chart-lg-font-size: var( --kendo-font-size-lg, inherit ) !default;
98
95
  /// The line-height of the chart component.
99
96
  /// @group charts
100
97
  $kendo-chart-line-height: var( --kendo-line-height, normal ) !default;
@@ -204,7 +201,7 @@ $kendo-chart-handle-hover-border: var( --kendo-hover-border, initial ) !default;
204
201
 
205
202
  /// The color of the chart error bars.
206
203
  /// @group charts
207
- $kendo-color-error-bars-background: if($kendo-enable-color-system, k-color( error ), k-get-theme-color-var( neutral-110 )) !default;
204
+ $kendo-chart-error-bars-background: if($kendo-enable-color-system, k-color( error ), k-get-theme-color-var( neutral-110 )) !default;
208
205
 
209
206
  /// The size of the selection handle of the chart component.
210
207
  /// @group charts