@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,6 +1,8 @@
1
1
  @use "sass:map";
2
2
  @use "./variables.scss" as *;
3
+ @use "../../functions/index.scss" as *;
3
4
  @use "../../z-index/index.scss" as *;
5
+ @use "../input/_variables.scss" as *;
4
6
 
5
7
  @mixin kendo-signature--layout-base() {
6
8
 
@@ -21,6 +23,30 @@
21
23
  border-block-end-width: $kendo-signature-maximized-line-width;
22
24
  }
23
25
  }
26
+
27
+ // Sizes
28
+ @each $size, $size-props in $kendo-signature-sizes {
29
+ $_padding-x: map.get($size-props, padding-x);
30
+ $_padding-y: map.get($size-props, padding-y);
31
+ $_line-size: map.get($size-props, line-size);
32
+ $_line-offset: map.get($size-props, line-offset);
33
+
34
+ #{k-when-default($kendo-input-default-size, $size)}
35
+ &.k-signature-#{$size} {
36
+ padding-inline: $_padding-x;
37
+ padding-block: $_padding-y;
38
+
39
+ .k-signature-line {
40
+ width: $_line-size;
41
+ }
42
+ }
43
+ }
44
+
45
+ #{k-when-default($kendo-input-default-size, "lg")}
46
+ &.k-signature-lg {
47
+ min-height: $kendo-signature-lg-min-height;
48
+ }
49
+
24
50
  }
25
51
 
26
52
  .k-signature-actions {
@@ -51,25 +77,4 @@
51
77
  border-block-end-style: $kendo-signature-line-style;
52
78
  }
53
79
 
54
- // Sizes
55
- @each $size, $size-props in $kendo-signature-sizes {
56
- $_padding-x: map.get($size-props, padding-x);
57
- $_padding-y: map.get($size-props, padding-y);
58
- $_line-size: map.get($size-props, line-size);
59
- $_line-offset: map.get($size-props, line-offset);
60
-
61
- .k-signature-#{$size} {
62
- padding-inline: $_padding-x;
63
- padding-block: $_padding-y;
64
-
65
- .k-signature-line {
66
- width: $_line-size;
67
- }
68
- }
69
- }
70
-
71
- .k-signature-lg {
72
- min-height: $kendo-signature-lg-min-height;
73
- }
74
-
75
80
  }
@@ -24,7 +24,25 @@ $kendo-signature-lg-line-size: null !default;
24
24
 
25
25
  $kendo-signature-line-bottom-offset: null !default;
26
26
 
27
- $kendo-signature-sizes: null !default;
27
+ /// The sizes map of the Signature.
28
+ /// @group signature
29
+ $kendo-signature-sizes: (
30
+ sm: (
31
+ padding-x: $kendo-signature-sm-padding-x,
32
+ padding-y: $kendo-signature-sm-padding-y,
33
+ line-size: $kendo-signature-sm-line-size
34
+ ),
35
+ md: (
36
+ padding-x: $kendo-signature-md-padding-x,
37
+ padding-y: $kendo-signature-md-padding-y,
38
+ line-size: $kendo-signature-md-line-size
39
+ ),
40
+ lg: (
41
+ padding-x: $kendo-signature-lg-padding-x,
42
+ padding-y: $kendo-signature-lg-padding-y,
43
+ line-size: $kendo-signature-lg-line-size
44
+ )
45
+ ) !default;
28
46
 
29
47
  $kendo-signature-actions-gap: null !default;
30
48
  $kendo-signature-maximized-line-width: null !default;
@@ -1,4 +1,6 @@
1
+ @use "../../functions/index.scss" as *;
1
2
  @use "./_variables.scss" as *;
3
+ @use "../button/_variables.scss" as *;
2
4
 
3
5
  @mixin kendo-split-button--layout-base() {
4
6
 
@@ -7,27 +9,31 @@
7
9
 
8
10
  // Split button arrow
9
11
  .k-split-button .k-split-button-arrow {
10
- padding-block: $kendo-split-button-arrow-padding-y;
11
- padding-inline: $kendo-split-button-arrow-padding-x;
12
12
  width: auto;
13
13
  aspect-ratio: auto;
14
14
  flex: none;
15
15
 
16
+ #{k-when-default($kendo-button-default-size, "sm")}
16
17
  &.k-button-sm {
17
18
  padding-block: $kendo-split-button-sm-arrow-padding-y;
18
19
  padding-inline: $kendo-split-button-sm-arrow-padding-x;
19
20
  }
20
21
 
22
+ #{k-when-default($kendo-button-default-size, "md")}
21
23
  &.k-button-md {
22
24
  padding-block: $kendo-split-button-md-arrow-padding-y;
23
25
  padding-inline: $kendo-split-button-md-arrow-padding-x;
24
26
  }
25
27
 
28
+ #{k-when-default($kendo-button-default-size, "lg")}
26
29
  &.k-button-lg {
27
30
  padding-block: $kendo-split-button-lg-arrow-padding-y;
28
31
  padding-inline: $kendo-split-button-lg-arrow-padding-x;
29
32
  }
30
33
 
34
+ padding-block: $kendo-split-button-arrow-padding-y;
35
+ padding-inline: $kendo-split-button-arrow-padding-x;
36
+
31
37
  .k-button-icon {
32
38
  min-width: 0;
33
39
  }
@@ -1,80 +1,54 @@
1
1
  @use "./_variables.scss" as *;
2
2
  @use "../../mixins/index.scss" as *;
3
-
4
3
  @use "../../spacing/index.scss" as *;
5
4
  @use "../../color-system/_functions.scss" as *;
5
+ @use "../../functions/index.scss" as *;
6
6
  @use "../../_variables.scss" as *;
7
7
 
8
8
  @mixin kendo-suggestion--theme-base() {
9
9
  .k-suggestion {
10
- @include fill(
11
- $kendo-suggestion-text,
12
- $kendo-suggestion-bg,
13
- $kendo-suggestion-border
14
- );
15
-
16
- &:hover,
17
- &.k-hover {
18
- @include fill(
19
- $kendo-suggestion-hover-text,
20
- $kendo-suggestion-hover-bg,
21
- $kendo-suggestion-hover-border
22
- );
23
- }
24
-
25
- &:active,
26
- &.k-active {
27
- @include fill(
28
- $kendo-suggestion-active-text,
29
- $kendo-suggestion-active-bg,
30
- $kendo-suggestion-active-border
31
- );
32
- }
33
10
 
34
11
  &:focus,
35
12
  &.k-focus {
36
13
  @include focus-indicator( 0 0 $kendo-suggestion-focus-shadow-blur $kendo-suggestion-focus-shadow-spread $kendo-suggestion-focus-shadow-color );
37
14
  }
38
- }
39
-
40
- @each $name, $props in $kendo-suggestion-theme-colors {
41
-
42
- $_suggestion-text: k-color(#{$name}-on-subtle);
43
- $_suggestion-bg: k-color(#{$name}-subtle);
44
- $_suggestion-border: k-color(#{$name}-emphasis);
45
15
 
46
- $_suggestion-hover-text: k-color(#{$name}-on-subtle);
47
- $_suggestion-hover-bg: k-color(#{$name}-subtle-hover);
48
- $_suggestion-hover-border: k-color(#{$name}-emphasis);
49
-
50
- $_suggestion-active-text: k-color(#{$name}-on-subtle);
51
- $_suggestion-active-bg: k-color(#{$name}-subtle-active);
52
- $_suggestion-active-border: k-color(#{$name}-emphasis);
53
-
54
-
55
- .k-suggestion-#{$name} {
56
- @include fill(
57
- $_suggestion-text,
58
- $_suggestion-bg,
59
- $_suggestion-border
60
- );
61
-
62
- &:hover,
63
- &.k-hover {
16
+ @each $name, $props in $kendo-suggestion-theme-colors {
17
+ $_suggestion-text: k-color(#{$name}-on-subtle);
18
+ $_suggestion-bg: k-color(#{$name}-subtle);
19
+ $_suggestion-border: k-color(#{$name}-emphasis);
20
+ $_suggestion-hover-text: k-color(#{$name}-on-subtle);
21
+ $_suggestion-hover-bg: k-color(#{$name}-subtle-hover);
22
+ $_suggestion-hover-border: k-color(#{$name}-emphasis);
23
+ $_suggestion-active-text: k-color(#{$name}-on-subtle);
24
+ $_suggestion-active-bg: k-color(#{$name}-subtle-active);
25
+ $_suggestion-active-border: k-color(#{$name}-emphasis);
26
+
27
+ #{k-when-default($kendo-suggestion-default-theme-color, $name)}
28
+ &.k-suggestion-#{$name} {
64
29
  @include fill(
65
- $_suggestion-hover-text,
66
- $_suggestion-hover-bg,
67
- $_suggestion-hover-border
30
+ $_suggestion-text,
31
+ $_suggestion-bg,
32
+ $_suggestion-border
68
33
  );
69
- }
70
34
 
71
- &:active,
72
- &.k-active {
73
- @include fill(
74
- $_suggestion-active-text,
75
- $_suggestion-active-bg,
76
- $_suggestion-active-border
77
- );
35
+ &:hover,
36
+ &.k-hover {
37
+ @include fill(
38
+ $_suggestion-hover-text,
39
+ $_suggestion-hover-bg,
40
+ $_suggestion-hover-border
41
+ );
42
+ }
43
+
44
+ &:active,
45
+ &.k-active {
46
+ @include fill(
47
+ $_suggestion-active-text,
48
+ $_suggestion-active-bg,
49
+ $_suggestion-active-border
50
+ );
51
+ }
78
52
  }
79
53
  }
80
54
  }
@@ -6,21 +6,14 @@ $kendo-suggestion-border-width: null !default;
6
6
  $kendo-suggestion-border-style: null !default;
7
7
 
8
8
  $kendo-suggestion-line-height: null !default;
9
- $kendo-suggestion-bg: null !default;
10
- $kendo-suggestion-text: null !default;
11
- $kendo-suggestion-border: null !default;
12
9
  $kendo-suggestion-border-radius: null !default;
13
10
 
14
- $kendo-suggestion-hover-bg: null !default;
15
- $kendo-suggestion-hover-text: null !default;
16
- $kendo-suggestion-hover-border: null !default;
17
-
18
- $kendo-suggestion-active-bg: null !default;
19
- $kendo-suggestion-active-text: null !default;
20
- $kendo-suggestion-active-border: null !default;
21
-
22
11
  $kendo-suggestion-focus-shadow-blur: null !default;
23
12
  $kendo-suggestion-focus-shadow-spread: null !default;
24
13
  $kendo-suggestion-focus-shadow-color: null !default;
25
14
 
26
- $kendo-suggestion-theme-colors: null !default;
15
+ /// The theme colors map of the Suggestion.
16
+ /// @group suggestion
17
+ $kendo-suggestion-theme-colors: ("base", "primary", "secondary") !default;
18
+
19
+ $kendo-suggestion-default-theme-color: null !default;
@@ -2,6 +2,8 @@
2
2
  @use "sass:math";
3
3
  @use "../../color-system/_constants.scss" as *;
4
4
  @use "../../motion/index.scss" as *;
5
+ @use "../../functions/index.scss" as *;
6
+ @use "../../border-radii/index.scss" as *;
5
7
  @use "./variables.scss" as *;
6
8
 
7
9
  @mixin kendo-switch--layout-base() {
@@ -33,6 +35,48 @@
33
35
  &[aria-readonly="true"] {
34
36
  pointer-events: none;
35
37
  }
38
+
39
+ // Switch sizes
40
+ @each $size, $size-props in $kendo-switch-sizes {
41
+
42
+ $_font-size: map.get( $size-props, font-size );
43
+ $_track-width: map.get( $size-props, track-width );
44
+ $_track-height: map.get( $size-props, track-height );
45
+ $_thumb-width: map.get( $size-props, thumb-width );
46
+ $_thumb-height: map.get( $size-props, thumb-height );
47
+ $_thumb-offset: map.get( $size-props, thumb-offset );
48
+ $_label-offset: map.get( $size-props, label-offset );
49
+
50
+ #{k-when-default($kendo-switch-default-size, $size)}
51
+ &.k-switch-#{$size} {
52
+ width: $_track-width;
53
+ height: $_track-height;
54
+ font-size: $_font-size;
55
+
56
+ .k-switch-track {
57
+ width: $_track-width;
58
+ height: $_track-height;
59
+ }
60
+
61
+ .k-switch-label-on { inset-inline-start: $_label-offset; }
62
+ .k-switch-label-off { inset-inline-end: $_label-offset; }
63
+
64
+ .k-switch-thumb {
65
+ width: $_thumb-width;
66
+ height: $_thumb-height;
67
+ }
68
+
69
+ &.k-switch-on .k-switch-thumb-wrap {
70
+ inset-inline-start: calc( 100% - #{math.div( $_thumb-width, 2 )} - #{$_thumb-offset} );
71
+ transition: left k-transition(bouncy);
72
+ }
73
+ &.k-switch-off .k-switch-thumb-wrap {
74
+ inset-inline-start: calc( #{math.div( $_thumb-width, 2 )} + #{$_thumb-offset} );
75
+ transition: left k-transition(snappy);
76
+ }
77
+ }
78
+ }
79
+
36
80
  }
37
81
 
38
82
 
@@ -52,6 +96,14 @@
52
96
  flex: 1 0 auto;
53
97
  position: relative;
54
98
  transition: background-color k-transition(rapid), border-color k-transition(rapid), color k-transition(rapid);
99
+
100
+ // Roundness
101
+ @each $roundness in $kendo-switch-track-roundness {
102
+ #{k-when-default($kendo-switch-default-track-roundness, $roundness)}
103
+ &.k-rounded-#{$roundness} {
104
+ border-radius: k-border-radius($roundness);
105
+ }
106
+ }
55
107
  }
56
108
 
57
109
 
@@ -70,6 +122,14 @@
70
122
  position: absolute;
71
123
  transform: translate( -50%, -50% );
72
124
  transition: all k-transition(rapid);
125
+
126
+ // Roundness
127
+ @each $roundness in $kendo-switch-track-roundness {
128
+ #{k-when-default($kendo-switch-default-track-roundness, $roundness)}
129
+ &.k-rounded-#{$roundness} {
130
+ border-radius: k-border-radius($roundness);
131
+ }
132
+ }
73
133
  }
74
134
 
75
135
 
@@ -86,47 +146,6 @@
86
146
  }
87
147
 
88
148
 
89
- // Switch sizes
90
- @each $size, $size-props in $kendo-switch-sizes {
91
-
92
- $_font-size: map.get( $size-props, font-size );
93
- $_track-width: map.get( $size-props, track-width );
94
- $_track-height: map.get( $size-props, track-height );
95
- $_thumb-width: map.get( $size-props, thumb-width );
96
- $_thumb-height: map.get( $size-props, thumb-height );
97
- $_thumb-offset: map.get( $size-props, thumb-offset );
98
- $_label-offset: map.get( $size-props, label-offset );
99
-
100
- .k-switch-#{$size} {
101
- width: $_track-width;
102
- height: $_track-height;
103
- font-size: $_font-size;
104
-
105
- .k-switch-track {
106
- width: $_track-width;
107
- height: $_track-height;
108
- }
109
-
110
- .k-switch-label-on { inset-inline-start: $_label-offset; }
111
- .k-switch-label-off { inset-inline-end: $_label-offset; }
112
-
113
- .k-switch-thumb {
114
- width: $_thumb-width;
115
- height: $_thumb-height;
116
- }
117
-
118
- &.k-switch-on .k-switch-thumb-wrap {
119
- inset-inline-start: calc( 100% - #{math.div( $_thumb-width, 2 )} - #{$_thumb-offset} );
120
- transition: left k-transition(bouncy);
121
- }
122
- &.k-switch-off .k-switch-thumb-wrap {
123
- inset-inline-start: calc( #{math.div( $_thumb-width, 2 )} + #{$_thumb-offset} );
124
- transition: left k-transition(snappy);
125
- }
126
- }
127
- }
128
-
129
-
130
149
  // RTL
131
150
  .k-switch[dir="rtl"],
132
151
  [dir="rtl"] .k-switch,
@@ -1,5 +1,12 @@
1
1
  // Switch
2
2
 
3
+ $kendo-switch-default-size: null !default;
4
+ $kendo-switch-default-track-roundness: null !default;
5
+ $kendo-switch-default-thumb-roundness: null !default;
6
+
7
+ $kendo-switch-track-roundness: ( "none", "sm", "md", "lg", "full" ) !default;
8
+ $kendo-switch-thumb-roundness: ( "none", "sm", "md", "lg", "full" ) !default;
9
+
3
10
  $kendo-switch-font-family: null !default;
4
11
 
5
12
  $kendo-switch-track-border-width: null !default;
@@ -10,7 +17,29 @@ $kendo-switch-label-text-transform: null !default;
10
17
 
11
18
  $kendo-switch-label-display: null !default;
12
19
 
13
- $kendo-switch-sizes: null !default;
20
+ $kendo-switch-sm-font-size: null !default;
21
+ $kendo-switch-sm-track-width: null !default;
22
+ $kendo-switch-sm-track-height: null !default;
23
+ $kendo-switch-sm-thumb-width: null !default;
24
+ $kendo-switch-sm-thumb-height: null !default;
25
+ $kendo-switch-sm-thumb-offset: null !default;
26
+ $kendo-switch-sm-label-offset: null !default;
27
+
28
+ $kendo-switch-md-font-size: null !default;
29
+ $kendo-switch-md-track-width: null !default;
30
+ $kendo-switch-md-track-height: null !default;
31
+ $kendo-switch-md-thumb-width: null !default;
32
+ $kendo-switch-md-thumb-height: null !default;
33
+ $kendo-switch-md-thumb-offset: null !default;
34
+ $kendo-switch-md-label-offset: null !default;
35
+
36
+ $kendo-switch-lg-font-size: null !default;
37
+ $kendo-switch-lg-track-width: null !default;
38
+ $kendo-switch-lg-track-height: null !default;
39
+ $kendo-switch-lg-thumb-width: null !default;
40
+ $kendo-switch-lg-thumb-height: null !default;
41
+ $kendo-switch-lg-thumb-offset: null !default;
42
+ $kendo-switch-lg-label-offset: null !default;
14
43
 
15
44
  $kendo-switch-off-track-bg: null !default;
16
45
  $kendo-switch-off-track-text: null !default;
@@ -84,3 +113,11 @@ $kendo-switch-on-thumb-disabled-bg: null !default;
84
113
  $kendo-switch-on-thumb-disabled-text: null !default;
85
114
  $kendo-switch-on-thumb-disabled-border: null !default;
86
115
  $kendo-switch-on-thumb-disabled-gradient: null !default;
116
+
117
+ /// The map with the different Switch sizes.
118
+ /// @group switch
119
+ $kendo-switch-sizes: (
120
+ sm: ( font-size: $kendo-switch-sm-font-size, track-width: $kendo-switch-sm-track-width, track-height: $kendo-switch-sm-track-height, thumb-width: $kendo-switch-sm-thumb-width, thumb-height: $kendo-switch-sm-thumb-height, thumb-offset: $kendo-switch-sm-thumb-offset, label-offset: $kendo-switch-sm-label-offset ),
121
+ md: ( font-size: $kendo-switch-md-font-size, track-width: $kendo-switch-md-track-width, track-height: $kendo-switch-md-track-height, thumb-width: $kendo-switch-md-thumb-width, thumb-height: $kendo-switch-md-thumb-height, thumb-offset: $kendo-switch-md-thumb-offset, label-offset: $kendo-switch-md-label-offset ),
122
+ lg: ( font-size: $kendo-switch-lg-font-size, track-width: $kendo-switch-lg-track-width, track-height: $kendo-switch-lg-track-height, thumb-width: $kendo-switch-lg-thumb-width, thumb-height: $kendo-switch-lg-thumb-height, thumb-offset: $kendo-switch-lg-thumb-offset, label-offset: $kendo-switch-lg-label-offset )
123
+ ) !default;
@@ -1,4 +1,5 @@
1
1
  @use "./_variables.scss" as *;
2
+ @use "../../functions/index.scss" as *;
2
3
  @use "sass:map";
3
4
 
4
5
  @mixin kendo-table--layout-base() {
@@ -222,33 +223,37 @@
222
223
  overflow: hidden;
223
224
  }
224
225
 
226
+ .k-table,
227
+ .k-data-table {
228
+ // Sizes
229
+ @each $size, $size-props in $kendo-table-sizes {
230
+ $_font-size: map.get( $size-props, font-size);
231
+ $_line-height: map.get( $size-props, line-height);
232
+ $_cell-padding-x: map.get( $size-props, cell-padding-x);
233
+ $_cell-padding-y: map.get( $size-props, cell-padding-y);
234
+
235
+ #{k-when-default($kendo-table-default-size, $size)}
236
+ &.k-table-#{$size} {
237
+ font-size: $_font-size;
238
+ line-height: $_line-height;
239
+
240
+ .k-table-th,
241
+ .k-table-td {
242
+ padding-block: $_cell-padding-y;
243
+ padding-inline: $_cell-padding-x;
244
+ }
245
+
246
+ .k-table-list .k-table-group-td > span {
247
+ padding-block: 0;
248
+ padding-inline: calc( #{$_cell-padding-x} / 2 );
249
+ }
250
+
251
+ .k-table-list .k-table-group-row::before {
252
+ padding-block: $_cell-padding-y;
253
+ padding-inline: 0;
254
+ }
255
+ }
225
256
 
226
- // Sizes
227
- @each $size, $size-props in $kendo-table-sizes {
228
- $_font-size: map.get( $size-props, font-size);
229
- $_line-height: map.get( $size-props, line-height);
230
- $_cell-padding-x: map.get( $size-props, cell-padding-x);
231
- $_cell-padding-y: map.get( $size-props, cell-padding-y);
232
-
233
- .k-table-#{$size} {
234
- font-size: $_font-size;
235
- line-height: $_line-height;
236
- }
237
-
238
- .k-table-#{$size} .k-table-th,
239
- .k-table-#{$size} .k-table-td {
240
- padding-block: $_cell-padding-y;
241
- padding-inline: $_cell-padding-x;
242
- }
243
-
244
- .k-table-#{$size} .k-table-list .k-table-group-td > span {
245
- padding-block: 0;
246
- padding-inline: calc( #{$_cell-padding-x} / 2 );
247
- }
248
-
249
- .k-table-#{$size} .k-table-list .k-table-group-row::before {
250
- padding-block: $_cell-padding-y;
251
- padding-inline: 0;
252
257
  }
253
258
  }
254
259
 
@@ -1,5 +1,7 @@
1
1
  // Table
2
2
 
3
+ $kendo-table-default-size: null !default;
4
+
3
5
  $kendo-table-border-width: null !default;
4
6
  $kendo-table-cell-vertical-border-width: null !default;
5
7
  $kendo-table-cell-horizontal-border-width: null !default;
@@ -17,7 +19,28 @@ $kendo-table-md-cell-padding-y: null !default;
17
19
  $kendo-table-lg-cell-padding-x: null !default;
18
20
  $kendo-table-lg-cell-padding-y: null !default;
19
21
 
20
- $kendo-table-sizes: null !default;
22
+ /// The sizes map of the Table.
23
+ /// @group table
24
+ $kendo-table-sizes: (
25
+ sm: (
26
+ font-size: var( --kendo-font-size, inherit ),
27
+ line-height: var( --kendo-line-height, normal ),
28
+ cell-padding-x: $kendo-table-sm-cell-padding-x,
29
+ cell-padding-y: $kendo-table-sm-cell-padding-y
30
+ ),
31
+ md: (
32
+ font-size: var( --kendo-font-size, inherit ),
33
+ line-height: var( --kendo-line-height, normal ),
34
+ cell-padding-x: $kendo-table-md-cell-padding-x,
35
+ cell-padding-y: $kendo-table-md-cell-padding-y
36
+ ),
37
+ lg: (
38
+ font-size: var( --kendo-font-size, inherit ),
39
+ line-height: var( --kendo-line-height, normal ),
40
+ cell-padding-x: $kendo-table-lg-cell-padding-x,
41
+ cell-padding-y: $kendo-table-lg-cell-padding-y
42
+ )
43
+ ) !default;
21
44
 
22
45
 
23
46
  $kendo-table-bg: null !default;
@@ -1,6 +1,7 @@
1
1
  @use "sass:map";
2
2
  @use "../../color-system/_constants.scss" as *;
3
3
  @use "../../mixins/index.scss" as *;
4
+ @use "../../functions/index.scss" as *;
4
5
  @use "../icons/_variables.scss" as *;
5
6
  @use "./_variables.scss" as *;
6
7
  @use "../../z-index/index.scss" as *;
@@ -37,7 +38,33 @@
37
38
  position: relative;
38
39
  -webkit-touch-callout: none;
39
40
  -webkit-tap-highlight-color: $kendo-color-rgba-transparent;
41
+
42
+ // TabStrip sizes
43
+ @each $size, $size-props in $kendo-tabstrip-sizes {
44
+ $_font-size: map.get( $size-props, font-size );
45
+ $_line-height: map.get( $size-props, line-height );
46
+ $_item-padding-x: map.get( $size-props, item-padding-x );
47
+ $_item-padding-y: map.get( $size-props, item-padding-y );
48
+
49
+ #{k-when-default($kendo-tabstrip-default-size, $size)}
50
+ &.k-tabstrip-#{$size} {
51
+ .k-tabstrip-items .k-link {
52
+ font-size: $_font-size;
53
+ line-height: $_line-height;
54
+ padding-block: $_item-padding-y;
55
+ padding-inline: $_item-padding-x;
56
+ }
57
+
58
+ :is(&.k-tabstrip-left, &.k-tabstrip-right):is(.k-tabstrip-scrollable-overlay) :is(.k-tabstrip-items-wrapper){
59
+ &::before,
60
+ &::after {
61
+ height: calc( ($_line-height * 1em) + ($kendo-tabstrip-border-width * 2) + ($_item-padding-y * 2) );
62
+ }
63
+ }
64
+ }
65
+ }
40
66
  }
67
+
41
68
  .k-tabstrip-wrapper > .k-tabstrip {
42
69
  flex: 1 1 auto;
43
70
  }
@@ -497,28 +524,5 @@
497
524
 
498
525
  }
499
526
 
500
- // TabStrip sizes
501
- @each $size, $size-props in $kendo-tabstrip-sizes {
502
- $_font-size: map.get( $size-props, font-size );
503
- $_line-height: map.get( $size-props, line-height );
504
- $_item-padding-x: map.get( $size-props, item-padding-x );
505
- $_item-padding-y: map.get( $size-props, item-padding-y );
506
-
507
- .k-tabstrip-#{$size} {
508
- .k-tabstrip-items .k-link {
509
- font-size: $_font-size;
510
- line-height: $_line-height;
511
- padding-block: $_item-padding-y;
512
- padding-inline: $_item-padding-x;
513
- }
514
-
515
- :is(&.k-tabstrip-left, &.k-tabstrip-right):is(.k-tabstrip-scrollable-overlay) :is(.k-tabstrip-items-wrapper){
516
- &::before,
517
- &::after {
518
- height: calc( ($_line-height * 1em) + ($kendo-tabstrip-border-width * 2) + ($_item-padding-y * 2) );
519
- }
520
- }
521
- }
522
- }
523
527
 
524
528
  }
@@ -1,5 +1,6 @@
1
1
  // TabStrip
2
2
 
3
+ $kendo-tabstrip-default-size: null !default;
3
4
 
4
5
  $kendo-tabstrip-wrapper-padding-x: null !default;
5
6
  $kendo-tabstrip-wrapper-padding-y: null !default;
@@ -76,4 +77,25 @@ $kendo-tabstrip-content-focus-border: null !default;
76
77
 
77
78
  $kendo-tabstrip-scroll-overlay: null !default;
78
79
 
79
- $kendo-tabstrip-sizes: null !default;
80
+ /// The sizes map of the TabStrip.
81
+ /// @group tabstrip
82
+ $kendo-tabstrip-sizes: (
83
+ sm: (
84
+ font-size: $kendo-tabstrip-sm-font-size,
85
+ line-height: $kendo-tabstrip-sm-line-height,
86
+ item-padding-x: $kendo-tabstrip-sm-item-padding-x,
87
+ item-padding-y: $kendo-tabstrip-sm-item-padding-y
88
+ ),
89
+ md: (
90
+ font-size: $kendo-tabstrip-md-font-size,
91
+ line-height: $kendo-tabstrip-md-line-height,
92
+ item-padding-x: $kendo-tabstrip-md-item-padding-x,
93
+ item-padding-y: $kendo-tabstrip-md-item-padding-y
94
+ ),
95
+ lg: (
96
+ font-size: $kendo-tabstrip-lg-font-size,
97
+ line-height: $kendo-tabstrip-lg-line-height,
98
+ item-padding-x: $kendo-tabstrip-lg-item-padding-x,
99
+ item-padding-y: $kendo-tabstrip-lg-item-padding-y
100
+ )
101
+ ) !default;