@progress/kendo-theme-core 12.3.1-dev.8 → 13.0.0-dev.0

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 (99) hide show
  1. package/dist/all.css +1 -1
  2. package/dist/meta/sassdoc-data.json +2911 -446
  3. package/dist/meta/sassdoc-raw-data.json +1143 -2
  4. package/package.json +2 -2
  5. package/scss/border-radii/index.scss +0 -8
  6. package/scss/components/action-sheet/_layout.scss +1 -1
  7. package/scss/components/appbar/_theme.scss +20 -18
  8. package/scss/components/appbar/_variables.scss +4 -1
  9. package/scss/components/avatar/_layout.scss +22 -9
  10. package/scss/components/avatar/_theme.scss +36 -14
  11. package/scss/components/avatar/_variables.scss +23 -2
  12. package/scss/components/badge/_layout.scss +33 -22
  13. package/scss/components/badge/_theme.scss +36 -16
  14. package/scss/components/badge/_variables.scss +36 -3
  15. package/scss/components/bottom-navigation/_theme.scss +45 -40
  16. package/scss/components/bottom-navigation/_variables.scss +6 -1
  17. package/scss/components/breadcrumb/_layout.scss +29 -27
  18. package/scss/components/breadcrumb/_variables.scss +30 -1
  19. package/scss/components/button/_layout.scss +110 -123
  20. package/scss/components/button/_theme.scss +298 -242
  21. package/scss/components/button/_variables.scss +34 -4
  22. package/scss/components/calendar/_layout.scss +44 -46
  23. package/scss/components/calendar/_variables.scss +27 -1
  24. package/scss/components/card/_theme.scss +16 -15
  25. package/scss/components/card/_variables.scss +5 -1
  26. package/scss/components/checkbox/_layout.scss +35 -20
  27. package/scss/components/checkbox/_variables.scss +23 -2
  28. package/scss/components/chip/_layout.scss +42 -34
  29. package/scss/components/chip/_theme.scss +125 -113
  30. package/scss/components/chip/_variables.scss +46 -2
  31. package/scss/components/coloreditor/_layout.scss +37 -36
  32. package/scss/components/coloreditor/_variables.scss +37 -1
  33. package/scss/components/colorgradient/_layout.scss +47 -46
  34. package/scss/components/colorgradient/_variables.scss +36 -1
  35. package/scss/components/colorpalette/_layout.scss +15 -13
  36. package/scss/components/colorpalette/_variables.scss +18 -1
  37. package/scss/components/column-menu/_layout.scss +31 -20
  38. package/scss/components/column-menu/_variables.scss +7 -3
  39. package/scss/components/datetimepicker/_layout.scss +11 -7
  40. package/scss/components/datetimepicker/_variables.scss +16 -1
  41. package/scss/components/dialog/_theme.scss +12 -9
  42. package/scss/components/dialog/_variables.scss +5 -1
  43. package/scss/components/fab/_layout.scss +22 -12
  44. package/scss/components/fab/_theme.scss +79 -73
  45. package/scss/components/fab/_variables.scss +29 -4
  46. package/scss/components/forms/_layout.scss +8 -4
  47. package/scss/components/forms/_variables.scss +15 -1
  48. package/scss/components/gantt/_layout.scss +1 -1
  49. package/scss/components/grid/_layout.scss +112 -105
  50. package/scss/components/grid/_variables.scss +43 -4
  51. package/scss/components/icons/_layout.scss +2 -1
  52. package/scss/components/icons/_variables.scss +1 -0
  53. package/scss/components/input/_layout.scss +162 -94
  54. package/scss/components/input/_theme.scss +431 -418
  55. package/scss/components/input/_variables.scss +40 -1
  56. package/scss/components/list/_layout.scss +68 -66
  57. package/scss/components/list/_variables.scss +72 -1
  58. package/scss/components/loader/_layout.scss +75 -61
  59. package/scss/components/loader/_theme.scss +10 -10
  60. package/scss/components/loader/_variables.scss +7 -1
  61. package/scss/components/menu/_layout.scss +36 -70
  62. package/scss/components/menu/_variables.scss +34 -0
  63. package/scss/components/messagebox/_theme.scss +17 -14
  64. package/scss/components/messagebox/_variables.scss +6 -1
  65. package/scss/components/notification/_theme.scss +10 -8
  66. package/scss/components/notification/_variables.scss +3 -16
  67. package/scss/components/otp/_layout.scss +16 -13
  68. package/scss/components/otp/_variables.scss +19 -1
  69. package/scss/components/overlay/_theme.scss +12 -4
  70. package/scss/components/overlay/_variables.scss +5 -1
  71. package/scss/components/pager/_layout.scss +32 -26
  72. package/scss/components/pager/_variables.scss +24 -1
  73. package/scss/components/radio/_layout.scss +27 -18
  74. package/scss/components/radio/_variables.scss +21 -1
  75. package/scss/components/scheduler/_layout.scss +0 -1
  76. package/scss/components/signature/_layout.scss +26 -21
  77. package/scss/components/signature/_variables.scss +19 -1
  78. package/scss/components/split-button/_layout.scss +8 -2
  79. package/scss/components/suggestion/_theme.scss +34 -60
  80. package/scss/components/suggestion/_variables.scss +5 -12
  81. package/scss/components/switch/_layout.scss +60 -41
  82. package/scss/components/switch/_variables.scss +38 -1
  83. package/scss/components/table/_layout.scss +31 -26
  84. package/scss/components/table/_variables.scss +24 -1
  85. package/scss/components/tabstrip/_layout.scss +27 -23
  86. package/scss/components/tabstrip/_variables.scss +23 -1
  87. package/scss/components/timeselector/_layout.scss +34 -34
  88. package/scss/components/timeselector/_variables.scss +24 -1
  89. package/scss/components/toolbar/_layout.scss +63 -65
  90. package/scss/components/toolbar/_theme.scss +80 -70
  91. package/scss/components/toolbar/_variables.scss +25 -1
  92. package/scss/components/tooltip/_variables.scss +0 -14
  93. package/scss/components/treeview/_layout.scss +29 -26
  94. package/scss/components/treeview/_variables.scss +30 -1
  95. package/scss/components/window/_layout.scss +8 -12
  96. package/scss/components/window/_theme.scss +12 -8
  97. package/scss/components/window/_variables.scss +15 -3
  98. package/scss/functions/_default.scss +16 -0
  99. package/scss/functions/index.scss +1 -0
@@ -1,5 +1,7 @@
1
1
  // TreeView
2
2
 
3
+ $kendo-treeview-default-size: null !default;
4
+
3
5
  $kendo-treeview-font-family: null !default;
4
6
  $kendo-treeview-font-size: null !default;
5
7
  $kendo-treeview-sm-font-size: null !default;
@@ -28,7 +30,34 @@ $kendo-treeview-md-checkbox-padding-y: null !default;
28
30
  $kendo-treeview-lg-checkbox-padding-y: null !default;
29
31
 
30
32
 
31
- $kendo-treeview-sizes: null !default;
33
+ /// The sizes map of the TreeView.
34
+ /// @group treeview
35
+ $kendo-treeview-sizes: (
36
+ sm: (
37
+ font-size: $kendo-treeview-sm-font-size,
38
+ line-height: $kendo-treeview-sm-line-height,
39
+ item-padding-x: $kendo-treeview-sm-item-padding-x,
40
+ item-padding-y: $kendo-treeview-sm-item-padding-y,
41
+ checkbox-padding-x: $kendo-treeview-sm-checkbox-padding-x,
42
+ checkbox-padding-y: $kendo-treeview-sm-checkbox-padding-y
43
+ ),
44
+ md: (
45
+ font-size: $kendo-treeview-md-font-size,
46
+ line-height: $kendo-treeview-md-line-height,
47
+ item-padding-x: $kendo-treeview-md-item-padding-x,
48
+ item-padding-y: $kendo-treeview-md-item-padding-y,
49
+ checkbox-padding-x: $kendo-treeview-md-checkbox-padding-x,
50
+ checkbox-padding-y: $kendo-treeview-md-checkbox-padding-y
51
+ ),
52
+ lg: (
53
+ font-size: $kendo-treeview-lg-font-size,
54
+ line-height: $kendo-treeview-lg-line-height,
55
+ item-padding-x: $kendo-treeview-lg-item-padding-x,
56
+ item-padding-y: $kendo-treeview-lg-item-padding-y,
57
+ checkbox-padding-x: $kendo-treeview-lg-checkbox-padding-x,
58
+ checkbox-padding-y: $kendo-treeview-lg-checkbox-padding-y
59
+ )
60
+ ) !default;
32
61
 
33
62
 
34
63
  $kendo-treeview-bg: null !default;
@@ -1,5 +1,6 @@
1
1
  @use "sass:list";
2
2
  @use "../../mixins/index.scss" as *;
3
+ @use "../../functions/index.scss" as *;
3
4
  @use "../../color-system/_constants.scss" as *;
4
5
  @use "../../z-index/index.scss" as *;
5
6
  @use "./variables.scss" as *;
@@ -23,11 +24,13 @@
23
24
  -webkit-touch-callout: none;
24
25
  -webkit-tap-highlight-color: $kendo-color-rgba-transparent;
25
26
 
26
- // overlay during dragging
27
- // .k-overlay {
28
- // position: absolute;
29
- // opacity: 0;
30
- // }
27
+ // Window sizes
28
+ @each $size, $width in $kendo-window-sizes {
29
+ #{k-when-default( $kendo-window-default-size, $size )}
30
+ &.k-window-#{$size} {
31
+ width: $width;
32
+ }
33
+ }
31
34
  }
32
35
  .k-window.k-window-maximized {
33
36
  max-width: 100vw;
@@ -35,13 +38,6 @@
35
38
  box-shadow: none;
36
39
  }
37
40
 
38
-
39
- // Window sizes
40
- @each $size, $width in $kendo-window-sizes {
41
- .k-window-#{$size} { width: $width; }
42
- }
43
-
44
-
45
41
  // Title bar
46
42
  .k-window-titlebar {
47
43
  @include border-top-radius( $kendo-window-border-radius );
@@ -14,6 +14,18 @@
14
14
  $kendo-window-border
15
15
  );
16
16
  @include box-shadow( $kendo-window-shadow );
17
+
18
+ // Window theme colors
19
+ @each $name in $kendo-window-theme-colors {
20
+
21
+ #{k-when-default($kendo-window-default-theme-color, $name)}
22
+ &.k-window-#{$name} {
23
+ .k-window-titlebar {
24
+ color: k-color(on-#{$name});
25
+ background-color: k-color(#{$name});
26
+ }
27
+ }
28
+ }
17
29
  }
18
30
 
19
31
  .k-window:focus,
@@ -32,12 +44,4 @@
32
44
  );
33
45
  }
34
46
 
35
- // Window theme colors
36
- @each $name, $color in $kendo-window-theme-colors {
37
- .k-window-#{$name} .k-window-titlebar {
38
- color: k-color(on-#{$name});
39
- background-color: $color;
40
- }
41
- }
42
-
43
47
  }
@@ -1,5 +1,8 @@
1
1
  // Window
2
2
 
3
+ $kendo-window-default-theme-color: null !default;
4
+ $kendo-window-default-size: null !default;
5
+
3
6
  $kendo-window-border-width: null !default;
4
7
  $kendo-window-border-radius: null !default;
5
8
  $kendo-window-font-family: null !default;
@@ -36,6 +39,15 @@ $kendo-window-titlebar-text: null !default;
36
39
  $kendo-window-titlebar-border: null !default;
37
40
  $kendo-window-titlebar-gradient: null !default;
38
41
 
39
- $kendo-window-sizes: null !default;
40
-
41
- $kendo-window-theme-colors: null !default;
42
+ /// The sizes map of the Window.
43
+ /// @group window
44
+ $kendo-window-sizes: (
45
+ auto: null,
46
+ sm: 300px,
47
+ md: 800px,
48
+ lg: 1200px
49
+ ) !default;
50
+
51
+ /// The theme colors map of the Window.
52
+ /// @group window
53
+ $kendo-window-theme-colors: ("primary", "light", "dark") !default;
@@ -0,0 +1,16 @@
1
+ @use "sass:list";
2
+ @use "sass:meta";
3
+
4
+ /// Returns a SCSS selector self-reference ("&") when the current value matches the default value,
5
+ /// otherwise returns null. This is useful for conditionally applying styles only when a component
6
+ /// option is set to its default value, allowing default styles to be grouped together.
7
+ /// @param {String} $default - The default value to compare against.
8
+ /// @param {String | List} $current - The current value to check. Can be a single value or a list of values.
9
+ /// @return {String | Null} - Returns "&," when values match, null otherwise.
10
+
11
+ @function k-when-default($default, $current) {
12
+ @if meta.type-of($current) == "list" {
13
+ @return if(list.index($current, $default) != null, "&,", null);
14
+ }
15
+ @return if($default == $current, "&,", null);
16
+ }
@@ -1,4 +1,5 @@
1
1
  @forward "./_color.scss";
2
+ @forward "./_default.scss";
2
3
  @forward "./_lang.scss";
3
4
  @forward "./_list.scss";
4
5
  @forward "./_math.scss";