@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
@@ -8,127 +8,60 @@
8
8
 
9
9
  @mixin kendo-button--theme-base() {
10
10
 
11
- // Solid button
12
- .k-button-solid-base {
13
- @include fill(
14
- $kendo-button-text,
15
- $kendo-button-bg,
16
- $kendo-button-border,
17
- $kendo-button-gradient
18
- );
19
- @include box-shadow( $kendo-button-shadow );
20
-
21
- // Hover state
22
- &:hover,
23
- &.k-hover {
24
- @include fill(
25
- $kendo-button-hover-text,
26
- $kendo-button-hover-bg,
27
- $kendo-button-hover-border,
28
- $kendo-button-hover-gradient
29
- );
30
- @include box-shadow( $kendo-button-hover-shadow );
31
- }
32
-
33
- // Focus state
34
- &:focus,
35
- &.k-focus {
36
- @include focus-indicator( $kendo-button-focus-shadow, true, true );
37
- }
38
-
39
- // Active state
40
- &:active,
41
- &.k-active {
42
- @include fill(
43
- $kendo-button-active-text,
44
- $kendo-button-active-bg,
45
- $kendo-button-active-border,
46
- $kendo-button-active-gradient
47
- );
48
- @include box-shadow( $kendo-button-active-shadow );
49
- }
50
-
51
- // Selected state
52
- &.k-selected {
53
- @include fill(
54
- $kendo-button-selected-text,
55
- $kendo-button-selected-bg,
56
- $kendo-button-selected-border,
57
- $kendo-button-selected-gradient
58
- );
59
- @include box-shadow( $kendo-button-selected-shadow );
60
- }
61
-
62
- // Disabled state
63
- &:disabled,
64
- &.k-disabled {
65
- @include fill(
66
- $kendo-button-disabled-text,
67
- $kendo-button-disabled-bg,
68
- $kendo-button-disabled-border,
69
- $kendo-button-disabled-gradient
70
- );
71
- @include box-shadow( $kendo-button-disabled-shadow );
72
- }
73
- }
74
-
75
- @each $name, $color in $kendo-button-theme-colors {
76
- @if ($name != "base") {
77
- $_button-text: k-color(on-#{$name});
78
- $_button-bg: k-color($name);
79
- $_button-border: k-color($name);
11
+ .k-button {
80
12
 
81
- $_button-hover-text: null;
82
- $_button-hover-bg: k-color(#{$name}-hover);
83
- $_button-hover-border: k-color(#{$name}-hover);
84
-
85
- $_button-active-text: null;
86
- $_button-active-bg: k-color(#{$name}-active);
87
- $_button-active-border: k-color(#{$name}-active);
88
-
89
- .k-button-solid-#{$name} {
13
+ // Solid button
14
+ #{k-when-default($kendo-button-default-fill-mode, "solid")}
15
+ &.k-button-solid {
16
+ #{k-when-default($kendo-button-default-theme-color, "base")}
17
+ &.k-button-base {
90
18
  @include fill(
91
- $_button-text,
92
- $_button-bg,
93
- $_button-border,
94
- $kendo-solid-button-gradient
19
+ $kendo-button-text,
20
+ $kendo-button-bg,
21
+ $kendo-button-border,
22
+ $kendo-button-gradient
95
23
  );
24
+ @include box-shadow( $kendo-button-shadow );
96
25
 
97
26
  // Hover state
98
27
  &:hover,
99
28
  &.k-hover {
100
29
  @include fill(
101
- $_button-hover-text,
102
- $_button-hover-bg,
103
- $_button-hover-border
30
+ $kendo-button-hover-text,
31
+ $kendo-button-hover-bg,
32
+ $kendo-button-hover-border,
33
+ $kendo-button-hover-gradient
104
34
  );
35
+ @include box-shadow( $kendo-button-hover-shadow );
105
36
  }
106
37
 
107
38
  // Focus state
108
39
  &:focus,
109
40
  &.k-focus {
110
- @if ( $kendo-solid-button-shadow ) {
111
- @include focus-indicator( 0 0 $kendo-solid-button-shadow-blur $kendo-solid-button-shadow-spread color-mix(in srgb, k-color($name) ( $kendo-solid-button-shadow-opacity * 100% ), transparent), true, true );
112
- }
41
+ @include focus-indicator( $kendo-button-focus-shadow, true, true );
113
42
  }
114
43
 
115
44
  // Active state
116
45
  &:active,
117
46
  &.k-active {
118
47
  @include fill(
119
- $_button-active-text,
120
- $_button-active-bg,
121
- $_button-active-border
48
+ $kendo-button-active-text,
49
+ $kendo-button-active-bg,
50
+ $kendo-button-active-border,
51
+ $kendo-button-active-gradient
122
52
  );
53
+ @include box-shadow( $kendo-button-active-shadow );
123
54
  }
124
55
 
125
- // Selected
56
+ // Selected state
126
57
  &.k-selected {
127
58
  @include fill(
128
- $_button-active-text,
129
- $_button-active-bg,
130
- $_button-active-border
59
+ $kendo-button-selected-text,
60
+ $kendo-button-selected-bg,
61
+ $kendo-button-selected-border,
62
+ $kendo-button-selected-gradient
131
63
  );
64
+ @include box-shadow( $kendo-button-selected-shadow );
132
65
  }
133
66
 
134
67
  // Disabled state
@@ -143,191 +76,314 @@
143
76
  @include box-shadow( $kendo-button-disabled-shadow );
144
77
  }
145
78
  }
79
+
80
+ @each $name in $kendo-button-theme-colors {
81
+ @if ($name != "base") {
82
+ $_button-text: k-color(on-#{$name});
83
+ $_button-bg: k-color(#{$name});
84
+ $_button-border: k-color(#{$name});
85
+ $_button-hover-text: null;
86
+ $_button-hover-bg: k-color(#{$name}-hover);
87
+ $_button-hover-border: k-color(#{$name}-hover);
88
+
89
+ $_button-active-text: k-color(on-#{$name});
90
+ $_button-active-bg: k-color(#{$name}-active);
91
+ $_button-active-border: k-color(#{$name}-active);
92
+
93
+ #{k-when-default($kendo-button-default-theme-color, $name)}
94
+ &.k-button-#{$name} {
95
+ @include fill(
96
+ $_button-text,
97
+ $_button-bg,
98
+ $_button-border,
99
+ $kendo-solid-button-gradient
100
+ );
101
+
102
+ // Hover state
103
+ &:hover,
104
+ &.k-hover {
105
+ @include fill(
106
+ $_button-hover-text,
107
+ $_button-hover-bg,
108
+ $_button-hover-border
109
+ );
110
+ }
111
+
112
+ // Focus state
113
+ &:focus,
114
+ &.k-focus {
115
+ @if ( $kendo-solid-button-shadow ) {
116
+ @include focus-indicator( 0 0 $kendo-solid-button-shadow-blur $kendo-solid-button-shadow-spread color-mix(in srgb, k-color($name) ( $kendo-solid-button-shadow-opacity * 100% ), transparent), true, true );
117
+ }
118
+ }
119
+
120
+ // Active state
121
+ &:active,
122
+ &.k-active {
123
+ @include fill(
124
+ $_button-active-text,
125
+ $_button-active-bg,
126
+ $_button-active-border
127
+ );
128
+ }
129
+
130
+ // Selected
131
+ &.k-selected {
132
+ @include fill(
133
+ $_button-active-text,
134
+ $_button-active-bg,
135
+ $_button-active-border
136
+ );
137
+ }
138
+
139
+ // Disabled state
140
+ &:disabled,
141
+ &.k-disabled {
142
+ @include fill(
143
+ $kendo-button-disabled-text,
144
+ $kendo-button-disabled-bg,
145
+ $kendo-button-disabled-border,
146
+ $kendo-button-disabled-gradient
147
+ );
148
+ @include box-shadow( $kendo-button-disabled-shadow );
149
+ }
150
+ }
151
+ }
152
+ }
146
153
  }
147
- }
148
154
 
149
155
 
150
- // Outline button
151
- @each $name, $color in map.merge( $kendo-button-theme-colors, ( "base": k-color(on-app-surface) ) ) {
152
- .k-button-outline-#{$name} {
153
- @include box-shadow( none );
156
+ // Outline button
157
+ #{k-when-default($kendo-button-default-fill-mode, "outline")}
158
+ &.k-button-outline {
159
+ color: inherit;
154
160
  border-color: currentColor;
155
- color: k-color(#{$name}-on-surface);
156
161
  background-color: transparent;
162
+ box-shadow: none;
157
163
 
158
- // Hover state
159
- &:hover,
160
- &.k-hover {
161
- @if $name == "base" {
162
- @include fill(
163
- k-color(base),
164
- k-color(on-base),
165
- k-color(on-base)
166
- );
167
- } @else {
168
- @include fill(
169
- k-color(on-#{$name}),
170
- $color,
171
- $color
172
- );
173
- }
164
+ &.k-focus,
165
+ &:focus {
166
+ box-shadow: none;
174
167
  }
175
168
 
176
- // Focus state
177
- &:focus,
178
- &.k-focus {
179
- @if $kendo-outline-button-shadow {
180
- @if $name == "base" {
181
- @include focus-indicator( 0 0 $kendo-outline-button-shadow-blur $kendo-outline-button-shadow-spread color-mix(in srgb, k-color(on-app-surface ) ( $kendo-outline-button-shadow-opacity * 100% ), transparent), true, true );
182
- } @else {
183
- @include focus-indicator( 0 0 $kendo-outline-button-shadow-blur $kendo-outline-button-shadow-spread color-mix(in srgb, k-color($name ) ( $kendo-outline-button-shadow-opacity * 100% ), transparent), true, true );
169
+ @each $name in $kendo-button-theme-colors {
170
+ #{k-when-default($kendo-button-default-theme-color, $name)}
171
+ &.k-button-#{$name} {
172
+ color: k-color(#{$name}-on-surface);
173
+
174
+ // Hover state
175
+ &:hover,
176
+ &.k-hover {
177
+ @if $name == "base" {
178
+ @include fill(
179
+ k-color(base),
180
+ k-color(on-base),
181
+ k-color(on-base)
182
+ );
183
+ } @else {
184
+ @include fill(
185
+ k-color(on-#{$name}),
186
+ k-color(#{$name}),
187
+ k-color(#{$name})
188
+ );
189
+ }
184
190
  }
185
- }
186
- }
187
191
 
188
- // Active state
189
- &:active,
190
- &.k-active {
191
- @if $name == "base" {
192
- @include fill(
193
- k-color(base ),
194
- k-color(on-base ),
195
- k-color(on-base )
196
- );
197
- } @else {
198
- @include fill(
199
- k-color(on-#{$name} ),
200
- $color,
201
- $color
202
- );
203
- }
204
- }
192
+ // Focus state
193
+ &:focus,
194
+ &.k-focus {
195
+ @if $kendo-outline-button-shadow {
196
+ @if $name == "base" {
197
+ @include focus-indicator( 0 0 $kendo-outline-button-shadow-blur $kendo-outline-button-shadow-spread color-mix(in srgb, k-color(on-app-surface ) ( $kendo-outline-button-shadow-opacity * 100% ), transparent), true, true );
198
+ } @else {
199
+ @include focus-indicator( 0 0 $kendo-outline-button-shadow-blur $kendo-outline-button-shadow-spread color-mix(in srgb, k-color($name ) ( $kendo-outline-button-shadow-opacity * 100% ), transparent), true, true );
200
+ }
201
+ }
202
+ }
205
203
 
206
- // Selected
207
- &.k-selected {
208
- @if $name == "base" {
209
- @include fill(
210
- k-color(base ),
211
- k-color(on-base ),
212
- k-color(on-base )
213
- );
214
- } @else {
215
- @include fill(
216
- k-color(on-#{$name} ),
217
- $color,
218
- $color
219
- );
220
- }
221
- }
204
+ // Active state
205
+ &:active,
206
+ &.k-active {
207
+ @if $name == "base" {
208
+ @include fill(
209
+ k-color(base ),
210
+ k-color(on-base ),
211
+ k-color(on-base )
212
+ );
213
+ } @else {
214
+ @include fill(
215
+ k-color(on-#{$name} ),
216
+ k-color(#{$name}),
217
+ k-color(#{$name})
218
+ );
219
+ }
220
+ }
221
+
222
+ // Selected
223
+ &.k-selected {
224
+ @if $name == "base" {
225
+ @include fill(
226
+ k-color(base ),
227
+ k-color(on-base ),
228
+ k-color(on-base )
229
+ );
230
+ } @else {
231
+ @include fill(
232
+ k-color(on-#{$name} ),
233
+ k-color(#{$name} ),
234
+ k-color(#{$name} )
235
+ );
236
+ }
237
+ }
222
238
 
223
- // Disabled state
224
- &:disabled,
225
- &.k-disabled {
226
- color: $kendo-button-disabled-text;
239
+ // Disabled state
240
+ &:disabled,
241
+ &.k-disabled {
242
+ color: $kendo-button-disabled-text;
243
+ }
244
+ }
227
245
  }
228
246
  }
229
- }
230
247
 
231
248
 
232
- // Flat button
233
- @each $name, $color in map.merge( $kendo-button-theme-colors, ( "base": inherit ) ) {
234
- .k-button-flat-#{$name} {
235
- @if $name == "base" {
249
+ // Flat button
250
+ #{k-when-default($kendo-button-default-fill-mode, "flat")}
251
+ &.k-button-flat {
252
+ border-color: transparent !important; // stylelint-disable-line declaration-no-important
253
+ color: inherit;
254
+ background: none !important; // stylelint-disable-line declaration-no-important
255
+ box-shadow: none !important; // stylelint-disable-line declaration-no-important
256
+
257
+ &.k-selected {
236
258
  color: inherit;
237
- } @else {
238
- color: k-color(#{$name}-on-surface);
239
259
  }
240
260
 
241
- // Disabled state
242
- &:disabled,
243
- &.k-disabled {
244
- color: $kendo-button-disabled-text;
261
+ @each $name in $kendo-button-theme-colors {
262
+ #{k-when-default($kendo-button-default-theme-color, $name)}
263
+ &.k-button-#{$name} {
264
+ @if $name == "base" {
265
+ color: inherit;
266
+ } @else {
267
+ color: k-color(#{$name}-on-surface);
268
+ }
269
+
270
+ // Disabled state
271
+ &:disabled,
272
+ &.k-disabled {
273
+ color: $kendo-button-disabled-text;
274
+ }
275
+ }
245
276
  }
246
277
  }
247
- }
248
278
 
249
279
 
250
- // Link button
251
- @each $name, $color in map.merge( $kendo-button-theme-colors, ( "base": k-color(on-app-surface ) ) ) {
252
- .k-button-link-#{$name} {
253
- color: $color;
280
+ // Link button
281
+ #{k-when-default($kendo-button-default-fill-mode, "link")}
282
+ &.k-button-link {
283
+ border-color: transparent;
284
+ color: inherit;
285
+ background: none;
254
286
 
255
- // Hover
256
- &:hover,
257
- &.k-hover {
258
- @if $name == "base" {
259
- color: k-color(on-app-surface);
260
- } @else {
261
- color: k-color(#{$name}-hover);
262
- }
263
- }
287
+ @each $name in $kendo-button-theme-colors {
288
+ #{k-when-default($kendo-button-default-theme-color, $name)}
289
+ &.k-button-#{$name} {
264
290
 
265
- // Focus
266
- &:focus,
267
- &.k-focus {
268
- @if ( $kendo-link-button-shadow ) {
269
291
  @if $name == "base" {
270
- @include focus-indicator( 0 0 $kendo-link-button-shadow-blur $kendo-link-button-shadow-spread color-mix(in srgb, k-color(on-app-surface ) ( $kendo-link-button-shadow-opacity * 100% ), transparent), true, true );
292
+ color: k-color(on-app-surface);
271
293
  } @else {
272
- @include focus-indicator( 0 0 $kendo-link-button-shadow-blur $kendo-link-button-shadow-spread color-mix(in srgb, k-color($name ) ( $kendo-link-button-shadow-opacity * 100% ), transparent), true, true );
294
+ color: k-color(#{$name});
273
295
  }
274
- }
275
- }
276
296
 
277
- // Active
278
- &:active,
279
- &.k-active {
280
- @if $name == "base" {
281
- color: k-color(on-app-surface);
282
- } @else {
283
- color: k-color(#{$name}-active);
284
- }
285
- }
297
+ // Hover
298
+ &:hover,
299
+ &.k-hover {
300
+ background-color: transparent;
301
+ border-color: transparent;
302
+
303
+ @if $name == "base" {
304
+ color: k-color(on-app-surface);
305
+ } @else {
306
+ color: k-color(#{$name}-hover);
307
+ }
308
+ }
286
309
 
287
- // Selected
288
- &.k-selected {
289
- @if $name == "base" {
290
- color: k-color(on-app-surface);
291
- } @else {
292
- color: k-color(#{$name}-active);
293
- }
294
- }
310
+ // Focus
311
+ &:focus,
312
+ &.k-focus {
313
+ @if ( $kendo-link-button-shadow ) {
314
+ @if $name == "base" {
315
+ @include focus-indicator( 0 0 $kendo-link-button-shadow-blur $kendo-link-button-shadow-spread color-mix(in srgb, k-color(on-app-surface ) ( $kendo-link-button-shadow-opacity * 100% ), transparent), true, true );
316
+ } @else {
317
+ @include focus-indicator( 0 0 $kendo-link-button-shadow-blur $kendo-link-button-shadow-spread color-mix(in srgb, k-color($name ) ( $kendo-link-button-shadow-opacity * 100% ), transparent), true, true );
318
+ }
319
+ }
320
+ }
295
321
 
296
- // Disabled state
297
- &:disabled,
298
- &.k-disabled {
299
- color: $kendo-button-disabled-text;
300
- }
301
- }
302
- }
322
+ // Active
323
+ &:active,
324
+ &.k-active {
325
+ background-color: transparent;
326
+ border-color: transparent;
327
+
328
+ @if $name == "base" {
329
+ color: k-color(on-app-surface);
330
+ } @else {
331
+ color: k-color(#{$name}-active);
332
+ }
333
+ }
303
334
 
335
+ // Selected
336
+ &.k-selected {
337
+ background-color: transparent;
338
+ border-color: transparent;
304
339
 
305
- // Clear button
306
- @each $name, $color in map.merge( $kendo-button-theme-colors, ( "base": k-color(on-app-surface ) ) ) {
307
- .k-button-clear-#{$name} {
308
- color: k-color(#{$name}-on-surface);
340
+ @if $name == "base" {
341
+ color: k-color(on-app-surface);
342
+ } @else {
343
+ color: k-color(#{$name}-active);
344
+ }
345
+ }
309
346
 
310
- &:focus,
311
- &.k-focus,
312
- &:active {
313
- &::after {
314
- background-color: currentColor;
315
- opacity: $kendo-clear-button-focus-opacity;
316
- display: block;
347
+ // Disabled state
348
+ &:disabled,
349
+ &.k-disabled {
350
+ color: $kendo-button-disabled-text;
351
+ }
317
352
  }
318
353
  }
319
-
320
- // Disabled state
321
- &:disabled,
322
- &.k-disabled {
323
- color: $kendo-button-disabled-text;
324
- }
325
354
  }
326
- }
327
355
 
328
356
 
329
- // Button group
330
- .k-button-group {}
331
-
357
+ // Clear button
358
+ #{k-when-default($kendo-button-default-fill-mode, "clear")}
359
+ &.k-button-clear {
360
+ border-color: transparent !important; // stylelint-disable-line declaration-no-important
361
+ color: inherit;
362
+ background: none !important; // stylelint-disable-line declaration-no-important
363
+ box-shadow: none !important; // stylelint-disable-line declaration-no-important
364
+
365
+ @each $name in $kendo-button-theme-colors {
366
+ #{k-when-default($kendo-button-default-theme-color, $name)}
367
+ &.k-button-#{$name} {
368
+ color: k-color(#{$name}-on-surface);
369
+
370
+ &:focus,
371
+ &.k-focus,
372
+ &:active {
373
+ &::after {
374
+ background-color: currentColor;
375
+ opacity: $kendo-clear-button-focus-opacity;
376
+ display: block;
377
+ }
378
+ }
332
379
 
380
+ // Disabled state
381
+ &:disabled,
382
+ &.k-disabled {
383
+ color: $kendo-button-disabled-text;
384
+ }
385
+ }
386
+ }
387
+ }
388
+ }
333
389
  }
@@ -1,5 +1,10 @@
1
1
  // Button
2
2
 
3
+ $kendo-button-default-theme-color: null !default;
4
+ $kendo-button-default-fill-mode: null !default;
5
+ $kendo-button-default-roundness: null !default;
6
+ $kendo-button-default-size: null !default;
7
+
3
8
  $kendo-button-border-width: null !default;
4
9
 
5
10
  $kendo-button-border-radius: null !default;
@@ -34,10 +39,6 @@ $kendo-button-sm-inner-calc-size: null !default;
34
39
  $kendo-button-md-inner-calc-size: null !default;
35
40
  $kendo-button-lg-inner-calc-size: null !default;
36
41
 
37
- $kendo-button-sizes: null !default;
38
-
39
- $kendo-button-theme-colors: null !default;
40
-
41
42
  $kendo-button-bg: null !default;
42
43
  $kendo-button-text: null !default;
43
44
  $kendo-button-border: null !default;
@@ -101,3 +102,32 @@ $kendo-flat-button-selected-opacity: null !default;
101
102
  $kendo-flat-button-focus-ring-opacity: null !default;
102
103
 
103
104
  $kendo-button-transition: null !default;
105
+
106
+ $kendo-button-roundness: ("none", "sm", "md", "lg", "full") !default;
107
+
108
+ /// The theme colors map of the Button.
109
+ /// @group button
110
+ $kendo-button-theme-colors: ("base", "primary", "secondary", "tertiary", "info", "success", "warning", "error", "dark", "light", "inverse") !default;
111
+
112
+ /// The sizes map of the Button.
113
+ /// @group button
114
+ $kendo-button-sizes: (
115
+ sm: (
116
+ padding-x: $kendo-button-sm-padding-x,
117
+ padding-y: $kendo-button-sm-padding-y,
118
+ font-size: $kendo-button-sm-font-size,
119
+ line-height: $kendo-button-sm-line-height
120
+ ),
121
+ md: (
122
+ padding-x: $kendo-button-md-padding-x,
123
+ padding-y: $kendo-button-md-padding-y,
124
+ font-size: $kendo-button-md-font-size,
125
+ line-height: $kendo-button-md-line-height
126
+ ),
127
+ lg: (
128
+ padding-x: $kendo-button-lg-padding-x,
129
+ padding-y: $kendo-button-lg-padding-y,
130
+ font-size: $kendo-button-lg-font-size,
131
+ line-height: $kendo-button-lg-line-height
132
+ )
133
+ ) !default;