@progress/kendo-theme-default 10.1.1-dev.1 → 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.
Files changed (40) hide show
  1. package/dist/all.css +1 -1
  2. package/dist/default-blue.css +1 -1
  3. package/dist/default-dataviz-v4.css +1 -1
  4. package/dist/default-green.css +1 -1
  5. package/dist/default-main-dark.css +1 -1
  6. package/dist/default-main.css +1 -1
  7. package/dist/default-nordic.css +1 -1
  8. package/dist/default-ocean-blue-a11y.css +1 -1
  9. package/dist/default-ocean-blue.css +1 -1
  10. package/dist/default-orange.css +1 -1
  11. package/dist/default-purple.css +1 -1
  12. package/dist/default-turquoise.css +1 -1
  13. package/dist/default-urban.css +1 -1
  14. package/dist/meta/sassdoc-data.json +798 -462
  15. package/dist/meta/sassdoc-raw-data.json +393 -243
  16. package/dist/meta/variables.json +56 -38
  17. package/lib/swatches/default-blue.json +1 -1
  18. package/lib/swatches/default-dataviz-v4.json +1 -1
  19. package/lib/swatches/default-green.json +1 -1
  20. package/lib/swatches/default-main-dark.json +1 -1
  21. package/lib/swatches/default-main.json +1 -1
  22. package/lib/swatches/default-nordic.json +1 -1
  23. package/lib/swatches/default-ocean-blue-a11y.json +1 -1
  24. package/lib/swatches/default-ocean-blue.json +1 -1
  25. package/lib/swatches/default-orange.json +1 -1
  26. package/lib/swatches/default-purple.json +1 -1
  27. package/lib/swatches/default-turquoise.json +1 -1
  28. package/lib/swatches/default-urban.json +1 -1
  29. package/package.json +4 -4
  30. package/scss/coloreditor/_layout.scss +0 -18
  31. package/scss/colorgradient/_layout.scss +4 -0
  32. package/scss/colorgradient/_variables.scss +33 -8
  33. package/scss/colorpalette/_layout.scss +14 -0
  34. package/scss/colorpalette/_variables.scss +12 -12
  35. package/scss/dataviz/_layout.scss +101 -38
  36. package/scss/dataviz/_theme.scss +0 -47
  37. package/scss/dataviz/_variables.scss +2 -5
  38. package/scss/tabstrip/_layout.scss +8 -0
  39. package/scss/tabstrip/_theme.scss +14 -14
  40. package/scss/toolbar/_layout.scss +22 -23
@@ -1,3 +1,4 @@
1
+ @use "sass:string";
1
2
  @use "sass:math";
2
3
  @use "sass:meta";
3
4
  @use "../core/_index.scss" as *;
@@ -16,27 +17,6 @@
16
17
  }
17
18
  }
18
19
 
19
-
20
- // Exported variables
21
- // stylelint-disable selector-class-pattern
22
- .k-var--chart-font {
23
- font-size: $kendo-chart-font-size;
24
- }
25
-
26
- .k-var--chart-title-font {
27
- font-size: $kendo-chart-title-font-size;
28
- }
29
-
30
- .k-var--chart-pane-title-font {
31
- font-size: $kendo-chart-pane-title-font-size;
32
- font-weight: $kendo-chart-pane-title-font-weight;
33
- }
34
-
35
- .k-var--chart-label-font {
36
- font-size: $kendo-chart-label-font-size;
37
- }
38
- // stylelint-enable selector-class-pattern
39
-
40
20
  // Elements
41
21
  .k-chart,
42
22
  .k-sparkline,
@@ -427,25 +407,15 @@
427
407
 
428
408
 
429
409
  // export variables to allow use in scripts
410
+ // TODO: remove in favor of $_css-vars once all suites are updated
430
411
  $exported: (
431
412
  primary: $kendo-color-primary,
432
413
  primary-contrast: $kendo-color-primary-contrast,
433
414
  base: $kendo-base-bg,
434
415
  background: $kendo-chart-bg,
435
416
 
436
- border-radius: k-border-radius(md),
437
-
438
417
  normal-background: $kendo-base-bg,
439
418
  normal-text-color: $kendo-base-text,
440
- hover-background: $kendo-hover-bg,
441
- hover-text-color: $kendo-hover-text,
442
- selected-background: $kendo-selected-bg,
443
- selected-text-color: $kendo-selected-text,
444
-
445
- success: $kendo-color-success,
446
- info: $kendo-color-info,
447
- warning: $kendo-color-warning,
448
- error: $kendo-color-error,
449
419
 
450
420
  series-a: $kendo-series-a,
451
421
  series-b: $kendo-series-b,
@@ -486,20 +456,113 @@
486
456
  series-30: $kendo-series-30,
487
457
 
488
458
  gauge-pointer: $kendo-color-primary,
489
- gauge-track: if($kendo-enable-color-system, k-color( base-emphasis ), k-try-shade( $kendo-chart-bg ))
459
+ gauge-track: if($kendo-enable-color-system, k-color( base-emphasis ), k-try-shade( $kendo-chart-bg )),
460
+
461
+ chart-font-size: $kendo-chart-font-size,
462
+ chart-title-font-size: $kendo-chart-title-font-size,
463
+ chart-pane-title-font-size: $kendo-chart-pane-title-font-size,
464
+ chart-pane-title-font-weight: $kendo-chart-pane-title-font-weight,
465
+ chart-label-font-size: $kendo-chart-label-font-size,
466
+
467
+ chart-inactive: $kendo-chart-inactive,
468
+ chart-major-lines: $kendo-chart-major-lines,
469
+ chart-minor-lines: $kendo-chart-minor-lines,
470
+ chart-area-opacity: $kendo-chart-area-opacity,
471
+ chart-area-inactive-opacity: $kendo-chart-area-inactive-opacity,
472
+ chart-line-inactive-opacity: $kendo-chart-line-inactive-opacity,
473
+ chart-notes-background: $kendo-chart-notes-background,
474
+ chart-notes-border: $kendo-chart-notes-border,
475
+ chart-notes-lines: $kendo-chart-notes-lines,
476
+ chart-crosshair-background: $kendo-chart-crosshair-background,
477
+ chart-error-bars-background: $kendo-chart-error-bars-background,
478
+
490
479
  );
491
480
 
481
+ // TODO: remove in favor of CSS variables once all suites are updated
492
482
  @each $name, $value in $exported {
493
483
  $type: meta.type-of($value);
494
484
 
495
485
  .k-var--#{$name} {
496
- @if $type == "color" or $type == "string" {
486
+ @if $type == "color" or $type == "string" and string.index($value, "color") {
497
487
  // background-color can store any color
498
- background-color: $value;
499
- } @else if $type == "number" {
500
- // margin-top can store positive & negative values
501
- margin-top: $value;
488
+ background-color: #{$value};
489
+ } @else if string.index($name, "font-size") {
490
+ font-size: #{$value};
491
+ } @else if string.index($name, "font-weight") {
492
+ font-weight: #{$value};
493
+ } @else if string.index($name, "opacity") {
494
+ opacity: #{$value};
502
495
  }
496
+
497
+ }
498
+ }
499
+
500
+ $_css-vars: (
501
+ chart-primary-bg: $kendo-color-primary,
502
+ chart-primary-contrast: $kendo-color-primary-contrast,
503
+ chart-bg: $kendo-chart-bg,
504
+ chart-text: $kendo-chart-text,
505
+
506
+ chart-font-size: $kendo-chart-font-size,
507
+ chart-title-font-size: $kendo-chart-title-font-size,
508
+ chart-pane-title-font-size: $kendo-chart-pane-title-font-size,
509
+ chart-pane-title-font-weight: $kendo-chart-pane-title-font-weight,
510
+ chart-label-font-size: $kendo-chart-label-font-size,
511
+
512
+ chart-inactive: $kendo-chart-inactive,
513
+ chart-major-lines: $kendo-chart-major-lines,
514
+ chart-minor-lines: $kendo-chart-minor-lines,
515
+ chart-area-opacity: $kendo-chart-area-opacity,
516
+ chart-area-inactive-opacity: $kendo-chart-area-inactive-opacity,
517
+ chart-line-inactive-opacity: $kendo-chart-line-inactive-opacity,
518
+ chart-notes-bg: $kendo-chart-notes-background,
519
+ chart-notes-border: $kendo-chart-notes-border,
520
+ chart-notes-lines: $kendo-chart-notes-lines,
521
+ chart-crosshair-bg: $kendo-chart-crosshair-background,
522
+ chart-error-bars-bg: $kendo-chart-error-bars-background,
523
+
524
+ chart-series-1: $kendo-series-1,
525
+ chart-series-2: $kendo-series-2,
526
+ chart-series-3: $kendo-series-3,
527
+ chart-series-4: $kendo-series-4,
528
+ chart-series-5: $kendo-series-5,
529
+ chart-series-6: $kendo-series-6,
530
+ chart-series-7: $kendo-series-7,
531
+ chart-series-8: $kendo-series-8,
532
+ chart-series-9: $kendo-series-9,
533
+ chart-series-10: $kendo-series-10,
534
+ chart-series-11: $kendo-series-11,
535
+ chart-series-12: $kendo-series-12,
536
+ chart-series-13: $kendo-series-13,
537
+ chart-series-14: $kendo-series-14,
538
+ chart-series-15: $kendo-series-15,
539
+ chart-series-16: $kendo-series-16,
540
+ chart-series-17: $kendo-series-17,
541
+ chart-series-18: $kendo-series-18,
542
+ chart-series-19: $kendo-series-19,
543
+ chart-series-20: $kendo-series-20,
544
+ chart-series-21: $kendo-series-21,
545
+ chart-series-22: $kendo-series-22,
546
+ chart-series-23: $kendo-series-23,
547
+ chart-series-24: $kendo-series-24,
548
+ chart-series-25: $kendo-series-25,
549
+ chart-series-26: $kendo-series-26,
550
+ chart-series-27: $kendo-series-27,
551
+ chart-series-28: $kendo-series-28,
552
+ chart-series-29: $kendo-series-29,
553
+ chart-series-30: $kendo-series-30,
554
+
555
+ chart-gauge-pointer: $kendo-color-primary,
556
+ chart-gauge-track: if($kendo-enable-color-system, k-color( base-emphasis ), k-try-shade( $kendo-chart-bg ))
557
+
558
+ );
559
+
560
+ .k-chart,
561
+ .k-diagram,
562
+ .k-gauge,
563
+ .k-sparkline {
564
+ @each $name, $value in $_css-vars {
565
+ --kendo-#{$name}: #{$value};
503
566
  }
504
567
  }
505
568
 
@@ -5,53 +5,6 @@
5
5
 
6
6
  @mixin kendo-dataviz--theme-base() {
7
7
 
8
- // Exported variables
9
- // stylelint-disable selector-class-pattern
10
- .k-var--chart-inactive {
11
- background-color: $kendo-chart-inactive;
12
- }
13
-
14
- .k-var--chart-major-lines {
15
- background-color: $kendo-chart-major-lines;
16
- }
17
-
18
- .k-var--chart-minor-lines {
19
- background-color: $kendo-chart-minor-lines;
20
- }
21
-
22
- .k-var--chart-area-opacity {
23
- opacity: $kendo-chart-area-opacity;
24
- }
25
-
26
- .k-var--chart-area-inactive-opacity {
27
- opacity: $kendo-chart-area-inactive-opacity;
28
- }
29
-
30
- .k-var--chart-line-inactive-opacity {
31
- opacity: $kendo-chart-line-inactive-opacity;
32
- }
33
-
34
- .k-var--chart-notes-background {
35
- background-color: $kendo-chart-notes-background;
36
- }
37
-
38
- .k-var--chart-notes-border {
39
- background-color: $kendo-chart-notes-border;
40
- }
41
-
42
- .k-var--chart-notes-lines {
43
- background-color: $kendo-chart-notes-lines;
44
- }
45
-
46
- .k-var--chart-crosshair-background {
47
- background-color: $kendo-chart-crosshair-background;
48
- }
49
-
50
- .k-var--chart-error-bars-background {
51
- background-color: $kendo-chart-error-bars-background;
52
- }
53
- // stylelint-enable selector-class-pattern
54
-
55
8
  // Elements
56
9
  .k-chart,
57
10
  .k-sparkline,
@@ -90,12 +90,9 @@ $kendo-chart-border-width: 0px !default;
90
90
  $kendo-chart-font-family: var( --kendo-font-family, inherit ) !default;
91
91
  $kendo-chart-font-size: var( --kendo-font-size, inherit ) !default;
92
92
  $kendo-chart-line-height: var( --kendo-line-height, normal ) !default;
93
- $kendo-chart-sm-font-size: 11px !default;
94
- $kendo-chart-md-font-size: 12px !default;
95
- $kendo-chart-lg-font-size: 16px !default;
96
93
  $kendo-chart-tooltip-font-size: calc( #{$kendo-font-size} * .929) !default;
97
- $kendo-chart-label-font-size: .857em !default;
98
- $kendo-chart-title-font-size: 1.143em !default;
94
+ $kendo-chart-label-font-size: var( --kendo-font-size-sm, inherit ) !default;
95
+ $kendo-chart-title-font-size: var( --kendo-font-size-lg, inherit ) !default;
99
96
  $kendo-chart-pane-title-font-size: $kendo-chart-label-font-size !default;
100
97
  $kendo-chart-pane-title-font-weight: var( --kendo-font-weight-normal, normal ) !default;
101
98
 
@@ -281,6 +281,10 @@
281
281
  .k-item {
282
282
  @include border-top-radius( $kendo-tabstrip-item-border-radius );
283
283
  border-bottom-width: 0;
284
+
285
+ .k-link {
286
+ justify-content: center;
287
+ }
284
288
  }
285
289
  .k-item:active,
286
290
  .k-item.k-active {
@@ -304,6 +308,10 @@
304
308
  .k-item {
305
309
  @include border-bottom-radius( $kendo-tabstrip-item-border-radius );
306
310
  border-top-width: 0;
311
+
312
+ .k-link {
313
+ justify-content: center;
314
+ }
307
315
  }
308
316
  .k-item:active,
309
317
  .k-item.k-active {
@@ -129,21 +129,21 @@
129
129
  }
130
130
  }
131
131
  }
132
- }
133
-
134
- // RTL
135
- .k-rtl,
136
- [dir="rtl"] {
137
- &.k-tabstrip-scrollable-overlay {
138
- &.k-tabstrip-top,
139
- &.k-tabstrip-bottom {
140
- .k-tabstrip-items-wrapper {
141
- &::before {
142
- background: linear-gradient(270deg, $kendo-tabstrip-scroll-overlay);
143
- }
144
132
 
145
- &::after {
146
- background: linear-gradient(90deg, $kendo-tabstrip-scroll-overlay);
133
+ // RTL
134
+ .k-rtl,
135
+ [dir="rtl"] {
136
+ &.k-tabstrip-scrollable-overlay {
137
+ &.k-tabstrip-top,
138
+ &.k-tabstrip-bottom {
139
+ .k-tabstrip-items-wrapper {
140
+ &::before {
141
+ background: linear-gradient(270deg, $kendo-tabstrip-scroll-overlay);
142
+ }
143
+
144
+ &::after {
145
+ background: linear-gradient(90deg, $kendo-tabstrip-scroll-overlay);
146
+ }
147
147
  }
148
148
  }
149
149
  }
@@ -42,32 +42,31 @@
42
42
  &.k-toolbar-scrollable {
43
43
  flex-wrap: nowrap;
44
44
  position: relative;
45
+ }
46
+
47
+ &.k-toolbar-scrollable-overlay {
48
+
49
+ &::before,
50
+ &::after {
51
+ content: '';
52
+ height: 100%;
53
+ aspect-ratio: 1;
54
+ position: absolute;
55
+ z-index: 3;
56
+ }
45
57
 
46
- &.k-toolbar-scrollable-overlay {
47
- &::before {
48
- content: '';
49
- height: 100%;
50
- aspect-ratio: 1;
51
- position: absolute;
52
- inset-inline-start: 0;
53
- z-index: 3;
54
- }
55
-
56
- &::after {
57
- content: '';
58
- height: 100%;
59
- aspect-ratio: 1;
60
- position: absolute;
61
- inset-inline-end: 0;
62
- z-index: 3;
63
- }
64
-
65
- &.k-toolbar-scrollable-start::before,
66
- &.k-toolbar-scrollable-end::after {
67
- display: none;
68
- }
58
+ &::before {
59
+ inset-inline-start: 0;
60
+ }
61
+
62
+ &::after {
63
+ inset-inline-end: 0;
69
64
  }
70
65
 
66
+ &.k-toolbar-scrollable-start::before,
67
+ &.k-toolbar-scrollable-end::after {
68
+ display: none;
69
+ }
71
70
  }
72
71
 
73
72
  > * {