@progress/kendo-theme-material 10.6.0 → 11.0.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 (223) hide show
  1. package/dist/all.css +1 -1
  2. package/dist/material-2-dark.css +1 -0
  3. package/dist/material-2-dark.scss +137 -0
  4. package/dist/material-2.css +1 -0
  5. package/dist/material-2.scss +132 -0
  6. package/dist/material-aqua-dark.css +1 -1
  7. package/dist/material-aqua-dark.scss +1 -1
  8. package/dist/material-arctic.css +1 -1
  9. package/dist/material-arctic.scss +1 -1
  10. package/dist/material-burnt-teal.css +1 -1
  11. package/dist/material-burnt-teal.scss +1 -1
  12. package/dist/material-dataviz-v4.css +1 -1
  13. package/dist/material-dataviz-v4.scss +1 -1
  14. package/dist/material-eggplant.css +1 -1
  15. package/dist/material-eggplant.scss +1 -1
  16. package/dist/material-lime-dark.css +1 -1
  17. package/dist/material-lime-dark.scss +1 -1
  18. package/dist/material-lime.css +1 -1
  19. package/dist/material-lime.scss +1 -1
  20. package/dist/material-main-dark.css +1 -1
  21. package/dist/material-main-dark.scss +98 -98
  22. package/dist/material-main.css +1 -1
  23. package/dist/material-main.scss +1 -5
  24. package/dist/material-nova.css +1 -1
  25. package/dist/material-nova.scss +1 -1
  26. package/dist/material-pacific-dark.css +1 -1
  27. package/dist/material-pacific-dark.scss +1 -1
  28. package/dist/material-pacific.css +1 -1
  29. package/dist/material-pacific.scss +1 -1
  30. package/dist/material-sky-dark.css +1 -1
  31. package/dist/material-sky-dark.scss +1 -1
  32. package/dist/material-sky.css +1 -1
  33. package/dist/material-sky.scss +1 -1
  34. package/dist/material-smoke.css +1 -1
  35. package/dist/material-smoke.scss +1 -1
  36. package/dist/meta/sassdoc-data.json +13278 -11518
  37. package/dist/meta/sassdoc-raw-data.json +4563 -3763
  38. package/dist/meta/variables.json +2591 -3022
  39. package/lib/swatches/index.js +2 -0
  40. package/lib/swatches/material-2-dark.json +657 -0
  41. package/lib/swatches/material-2.json +632 -0
  42. package/lib/swatches/material-aqua-dark.json +1 -243
  43. package/lib/swatches/material-arctic.json +1 -243
  44. package/lib/swatches/material-burnt-teal.json +1 -243
  45. package/lib/swatches/material-dataviz-v4.json +1 -47
  46. package/lib/swatches/material-eggplant.json +1 -243
  47. package/lib/swatches/material-lime-dark.json +1 -243
  48. package/lib/swatches/material-lime.json +1 -243
  49. package/lib/swatches/material-main-dark.json +103 -345
  50. package/lib/swatches/material-main.json +7 -250
  51. package/lib/swatches/material-nova.json +1 -243
  52. package/lib/swatches/material-pacific-dark.json +1 -243
  53. package/lib/swatches/material-pacific.json +1 -243
  54. package/lib/swatches/material-sky-dark.json +1 -243
  55. package/lib/swatches/material-sky.json +1 -243
  56. package/lib/swatches/material-smoke.json +1 -243
  57. package/package.json +4 -4
  58. package/scss/action-buttons/_layout.scss +0 -23
  59. package/scss/action-buttons/_theme.scss +0 -13
  60. package/scss/action-buttons/_variables.scss +3 -3
  61. package/scss/action-sheet/_layout.scss +6 -0
  62. package/scss/action-sheet/_variables.scss +27 -28
  63. package/scss/adaptive/_variables.scss +13 -13
  64. package/scss/appbar/_variables.scss +22 -8
  65. package/scss/avatar/_variables.scss +12 -1
  66. package/scss/badge/_layout.scss +0 -1
  67. package/scss/badge/_variables.scss +23 -9
  68. package/scss/bottom-navigation/_theme.scss +55 -4
  69. package/scss/bottom-navigation/_variables.scss +31 -17
  70. package/scss/breadcrumb/_variables.scss +21 -21
  71. package/scss/button/_layout.scss +0 -81
  72. package/scss/button/_theme.scss +110 -44
  73. package/scss/button/_variables.scss +47 -34
  74. package/scss/calendar/_layout.scss +13 -16
  75. package/scss/calendar/_theme.scss +29 -11
  76. package/scss/calendar/_variables.scss +83 -56
  77. package/scss/captcha/_variables.scss +3 -3
  78. package/scss/card/_variables.scss +34 -20
  79. package/scss/chart-wizard/_variables.scss +4 -4
  80. package/scss/chat/_theme.scss +5 -1
  81. package/scss/chat/_variables.scss +15 -15
  82. package/scss/checkbox/_layout.scss +35 -0
  83. package/scss/checkbox/_theme.scss +113 -4
  84. package/scss/checkbox/_variables.scss +23 -20
  85. package/scss/chip/_layout.scss +10 -0
  86. package/scss/chip/_theme.scss +41 -61
  87. package/scss/chip/_variables.scss +48 -30
  88. package/scss/color-preview/_variables.scss +3 -3
  89. package/scss/coloreditor/_variables.scss +11 -11
  90. package/scss/colorgradient/_variables.scss +7 -37
  91. package/scss/column-menu/_variables.scss +1 -1
  92. package/scss/core/_index.scss +8 -3
  93. package/scss/core/color-system/_palettes.scss +243 -242
  94. package/scss/core/color-system/_swatch.scss +142 -145
  95. package/scss/core/elevation/index.import.scss +18 -27
  96. package/scss/core/typography/index.import.scss +8 -8
  97. package/scss/dataviz/_variables.scss +61 -48
  98. package/scss/dialog/_theme.scss +1 -1
  99. package/scss/dialog/_variables.scss +9 -4
  100. package/scss/dock-manager/_variables.scss +18 -18
  101. package/scss/draggable/_variables.scss +4 -4
  102. package/scss/drawer/_layout.scss +2 -0
  103. package/scss/drawer/_theme.scss +0 -11
  104. package/scss/drawer/_variables.scss +49 -24
  105. package/scss/dropzone/_variables.scss +7 -7
  106. package/scss/editor/_layout.scss +2 -12
  107. package/scss/editor/_variables.scss +15 -8
  108. package/scss/expansion-panel/_layout.scss +5 -0
  109. package/scss/expansion-panel/_variables.scss +10 -10
  110. package/scss/fab/_layout.scss +1 -1
  111. package/scss/fab/_theme.scss +24 -23
  112. package/scss/fab/_variables.scss +25 -14
  113. package/scss/filemanager/_theme.scss +4 -0
  114. package/scss/filemanager/_variables.scss +6 -6
  115. package/scss/filter/_variables.scss +4 -4
  116. package/scss/floating-label/_theme.scss +1 -1
  117. package/scss/floating-label/_variables.scss +2 -2
  118. package/scss/forms/_variables.scss +6 -6
  119. package/scss/gantt/_variables.scss +27 -27
  120. package/scss/grid/_layout.scss +6 -21
  121. package/scss/grid/_theme.scss +14 -128
  122. package/scss/grid/_variables.scss +20 -20
  123. package/scss/imageeditor/_variables.scss +4 -4
  124. package/scss/index.scss +3 -0
  125. package/scss/input/_layout.scss +10 -14
  126. package/scss/input/_variables.scss +45 -44
  127. package/scss/list/_theme.scss +1 -1
  128. package/scss/list/_variables.scss +103 -25
  129. package/scss/listbox/_variables.scss +3 -3
  130. package/scss/listgroup/_variables.scss +6 -6
  131. package/scss/listview/_theme.scss +0 -13
  132. package/scss/listview/_variables.scss +7 -7
  133. package/scss/loader/_variables.scss +18 -4
  134. package/scss/map/_variables.scss +6 -6
  135. package/scss/marquee/_index.scss +16 -0
  136. package/scss/marquee/_layout.scss +6 -0
  137. package/scss/marquee/_theme.scss +6 -0
  138. package/scss/marquee/_variables.scss +11 -0
  139. package/scss/mediaplayer/_variables.scss +4 -4
  140. package/scss/menu/_layout.scss +4 -0
  141. package/scss/menu/_theme.scss +1 -26
  142. package/scss/menu/_variables.scss +49 -41
  143. package/scss/menu-button/_variables.scss +1 -1
  144. package/scss/messagebox/_layout.scss +5 -1
  145. package/scss/messagebox/_variables.scss +16 -2
  146. package/scss/no-data/_variables.scss +1 -1
  147. package/scss/notification/_functions.scss +1 -1
  148. package/scss/notification/_layout.scss +5 -0
  149. package/scss/notification/_theme.scss +1 -0
  150. package/scss/notification/_variables.scss +30 -9
  151. package/scss/orgchart/_variables.scss +10 -10
  152. package/scss/overlay/_variables.scss +12 -1
  153. package/scss/pager/_variables.scss +8 -8
  154. package/scss/panel/_variables.scss +3 -3
  155. package/scss/panelbar/_layout.scss +29 -1
  156. package/scss/panelbar/_theme.scss +0 -1
  157. package/scss/panelbar/_variables.scss +29 -29
  158. package/scss/pdf-viewer/_variables.scss +15 -15
  159. package/scss/pivotgrid/_theme.scss +0 -12
  160. package/scss/pivotgrid/_variables.scss +23 -23
  161. package/scss/popover/_variables.scss +5 -5
  162. package/scss/popup/_variables.scss +7 -7
  163. package/scss/progressbar/_layout.scss +11 -4
  164. package/scss/progressbar/_variables.scss +6 -6
  165. package/scss/prompt/_layout.scss +4 -0
  166. package/scss/prompt/_variables.scss +17 -17
  167. package/scss/radio/_layout.scss +35 -0
  168. package/scss/radio/_theme.scss +109 -4
  169. package/scss/radio/_variables.scss +19 -16
  170. package/scss/rating/_variables.scss +7 -7
  171. package/scss/scheduler/_layout.scss +2 -89
  172. package/scss/scheduler/_theme.scss +3 -3
  173. package/scss/scheduler/_variables.scss +22 -19
  174. package/scss/scrollview/_variables.scss +5 -5
  175. package/scss/signature/_variables.scss +1 -1
  176. package/scss/skeleton/_variables.scss +1 -1
  177. package/scss/slider/_layout.scss +11 -0
  178. package/scss/slider/_theme.scss +1 -10
  179. package/scss/slider/_variables.scss +25 -16
  180. package/scss/split-button/_layout.scss +12 -0
  181. package/scss/split-button/_variables.scss +4 -4
  182. package/scss/splitter/_variables.scss +9 -9
  183. package/scss/spreadsheet/_layout.scss +0 -35
  184. package/scss/spreadsheet/_theme.scss +3 -25
  185. package/scss/spreadsheet/_variables.scss +32 -31
  186. package/scss/stepper/_layout.scss +15 -1
  187. package/scss/stepper/_theme.scss +8 -0
  188. package/scss/stepper/_variables.scss +21 -21
  189. package/scss/switch/_layout.scss +20 -5
  190. package/scss/switch/_theme.scss +2 -9
  191. package/scss/switch/_variables.scss +50 -16
  192. package/scss/table/_layout.scss +22 -20
  193. package/scss/table/_theme.scss +6 -32
  194. package/scss/table/_variables.scss +13 -13
  195. package/scss/tabstrip/_layout.scss +100 -4
  196. package/scss/tabstrip/_variables.scss +20 -20
  197. package/scss/taskboard/_layout.scss +4 -0
  198. package/scss/taskboard/_variables.scss +18 -18
  199. package/scss/tilelayout/_layout.scss +7 -1
  200. package/scss/tilelayout/_variables.scss +4 -4
  201. package/scss/timeline/_variables.scss +7 -7
  202. package/scss/timeselector/_layout.scss +38 -0
  203. package/scss/timeselector/_theme.scss +8 -6
  204. package/scss/timeselector/_variables.scss +39 -28
  205. package/scss/toolbar/_layout.scss +0 -47
  206. package/scss/toolbar/_theme.scss +4 -44
  207. package/scss/toolbar/_variables.scss +17 -17
  208. package/scss/tooltip/_functions.scss +1 -1
  209. package/scss/tooltip/_variables.scss +19 -8
  210. package/scss/treelist/_layout.scss +0 -19
  211. package/scss/treelist/_theme.scss +10 -15
  212. package/scss/treelist/_variables.scss +1 -1
  213. package/scss/treeview/_theme.scss +2 -31
  214. package/scss/treeview/_variables.scss +25 -25
  215. package/scss/typography/_variables.scss +24 -24
  216. package/scss/upload/_theme.scss +1 -1
  217. package/scss/upload/_variables.scss +14 -14
  218. package/scss/window/_layout.scss +14 -0
  219. package/scss/window/_variables.scss +14 -14
  220. package/scss/wizard/_variables.scss +3 -3
  221. package/scss/core/color-system/_functions.scss +0 -104
  222. package/scss/core/color-system/_palettes-legacy.scss +0 -671
  223. package/scss/core/color-system/_swatch-legacy.scss +0 -299
@@ -59,7 +59,7 @@ $kendo-chat-timestamp-line-height: var( --kendo-line-height-lg, normal ) !defaul
59
59
  $kendo-chat-timestamp-transform: uppercase !default;
60
60
  /// The text color of the Chat timestamp.
61
61
  /// @group chat
62
- $kendo-chat-timestamp-text: $kendo-subtle-text !default;
62
+ $kendo-chat-timestamp-text: k-color(subtle) !default;
63
63
  /// The background color of the Chat timestamp.
64
64
  /// @group chat
65
65
  $kendo-chat-timestamp-bg: null !default;
@@ -89,7 +89,7 @@ $kendo-chat-bubble-padding-y: k-spacing(2) !default;
89
89
  $kendo-chat-bubble-spacing: k-spacing(0.5) !default;
90
90
  /// The line height of the Chat bubble message.
91
91
  /// @group chat
92
- $kendo-chat-bubble-line-height: math.div( 20, 14 ) !default;
92
+ $kendo-chat-bubble-line-height: var( --kendo-line-height, normal ) !default;
93
93
 
94
94
  /// The border radius of the Chat bubble message.
95
95
  /// @group chat
@@ -116,7 +116,7 @@ $kendo-chat-toolbar-padding-y: $kendo-toolbar-md-padding-y !default;
116
116
  $kendo-chat-toolbar-spacing: $kendo-toolbar-md-spacing !default;
117
117
  /// The background color of the Chat Toolbar.
118
118
  /// @group chat
119
- $kendo-chat-toolbar-bg: if($kendo-enable-color-system, k-color( surface ), k-try-shade( $kendo-button-bg, .5 )) !default;
119
+ $kendo-chat-toolbar-bg: $kendo-toolbar-bg !default;
120
120
  /// The text color of the Chat Toolbar.
121
121
  /// @group chat
122
122
  $kendo-chat-toolbar-text: $kendo-toolbar-text !default;
@@ -140,20 +140,20 @@ $kendo-chat-quick-reply-line-height: $kendo-chat-bubble-line-height !default;
140
140
 
141
141
  /// The background color of the Chat.
142
142
  /// @group chat
143
- $kendo-chat-bg: $kendo-app-bg !default;
143
+ $kendo-chat-bg: k-color(surface) !default;
144
144
  /// The text color of the Chat.
145
145
  /// @group chat
146
- $kendo-chat-text: $kendo-component-text !default;
146
+ $kendo-chat-text: k-color(on-app-surface) !default;
147
147
  /// The border color of the Chat.
148
148
  /// @group chat
149
- $kendo-chat-border: $kendo-component-border !default;
149
+ $kendo-chat-border: k-color(border) !default;
150
150
 
151
151
  /// The background color of the Chat bubble.
152
152
  /// @group chat
153
- $kendo-chat-bubble-bg: $kendo-component-bg !default;
153
+ $kendo-chat-bubble-bg: k-color(surface-alt) !default;
154
154
  /// The text color of the Chat bubble.
155
155
  /// @group chat
156
- $kendo-chat-bubble-text: $kendo-component-text !default;
156
+ $kendo-chat-bubble-text: k-color(on-base) !default;
157
157
  /// The border color of the Chat bubble.
158
158
  /// @group chat
159
159
  $kendo-chat-bubble-border: $kendo-chat-bubble-bg !default;
@@ -169,10 +169,10 @@ $kendo-chat-bubble-selected-shadow: k-elevation(3) !default;
169
169
 
170
170
  /// The background color of the Chat alt bubble.
171
171
  /// @group chat
172
- $kendo-chat-alt-bubble-bg: $kendo-color-primary !default;
172
+ $kendo-chat-alt-bubble-bg: k-color(primary) !default;
173
173
  /// The text color of the Chat alt bubble.
174
174
  /// @group chat
175
- $kendo-chat-alt-bubble-text: if($kendo-enable-color-system, k-color( on-primary ), k-contrast-color( $kendo-chat-alt-bubble-bg )) !default;
175
+ $kendo-chat-alt-bubble-text: k-color(on-primary) !default;
176
176
  /// The border color of the Chat alt bubble.
177
177
  /// @group chat
178
178
  $kendo-chat-alt-bubble-border: $kendo-chat-alt-bubble-bg !default;
@@ -191,20 +191,20 @@ $kendo-chat-alt-bubble-selected-shadow: k-elevation(3) !default;
191
191
  $kendo-chat-quick-reply-bg: transparent !default;
192
192
  /// The text color of the Chat quick reply.
193
193
  /// @group chat
194
- $kendo-chat-quick-reply-text: $kendo-color-primary !default;
194
+ $kendo-chat-quick-reply-text: k-color(primary) !default;
195
195
  /// The border color of the Chat quick reply.
196
196
  /// @group chat
197
- $kendo-chat-quick-reply-border: $kendo-color-primary !default;
197
+ $kendo-chat-quick-reply-border: k-color(primary) !default;
198
198
 
199
199
  /// The background color of the hovered Chat quick reply.
200
200
  /// @group chat
201
- $kendo-chat-quick-reply-hover-bg: $kendo-color-primary !default;
201
+ $kendo-chat-quick-reply-hover-bg: k-color(primary) !default;
202
202
  /// The text color of the hovered Chat quick reply.
203
203
  /// @group chat
204
- $kendo-chat-quick-reply-hover-text: $kendo-color-primary-contrast !default;
204
+ $kendo-chat-quick-reply-hover-text: k-color(on-primary) !default;
205
205
  /// The border color of the hovered Chat quick reply.
206
206
  /// @group chat
207
- $kendo-chat-quick-reply-hover-border: $kendo-color-primary !default;
207
+ $kendo-chat-quick-reply-hover-border: k-color(primary) !default;
208
208
 
209
209
  /// The shadow blur of the focused Chat quick reply.
210
210
  /// @group chat
@@ -1,6 +1,41 @@
1
+ @use "sass:map";
2
+ @use "./_variables.scss" as *;
1
3
  @use "@progress/kendo-theme-core/scss/components/checkbox/_layout.scss" as *;
2
4
 
3
5
 
4
6
  @mixin kendo-checkbox--layout() {
5
7
  @include kendo-checkbox--layout-base();
8
+
9
+ // Checkbox
10
+ // Hover and Focus indicator
11
+ .k-checkbox {
12
+ &:hover,
13
+ &.k-hover,
14
+ &:focus,
15
+ &.k-focus,
16
+ &.k-invalid {
17
+ position: relative;
18
+
19
+ &::after {
20
+ content: "";
21
+ display: block;
22
+ position: absolute;
23
+ left: 50%;
24
+ top: 50%;
25
+ border-radius: 100%;
26
+ z-index: -1;
27
+ transform: translate(-50%, -50%);
28
+ }
29
+ }
30
+ }
31
+
32
+ @each $size, $size-props in $kendo-checkbox-sizes {
33
+ $_size: map.get( $size-props, size );
34
+ $_indicator-size: map.get( $size-props, indicator-size );
35
+
36
+ .k-checkbox-#{$size}::after {
37
+ width: $_indicator-size;
38
+ height: $_indicator-size;
39
+ }
40
+ }
6
41
  }
@@ -1,3 +1,4 @@
1
+ @use "./_variables.scss" as *;
1
2
  @use "../core/_index.scss" as *;
2
3
  @use "@progress/kendo-theme-core/scss/components/checkbox/_theme.scss" as *;
3
4
 
@@ -6,12 +7,120 @@
6
7
 
7
8
  @include kendo-checkbox--theme-base();
8
9
 
10
+ .k-checkbox {
11
+ &:hover,
12
+ &.k-hover {
13
+ &::after {
14
+ opacity: .08;
15
+ background-color: k-color(on-app-surface);
16
+ }
17
+
18
+ &:checked,
19
+ &.k-checked,
20
+ &.k-indeterminate {
21
+ &::after {
22
+ background-color: k-color(primary);
23
+ }
24
+ }
25
+
26
+ &.k-invalid::after {
27
+ background-color: k-color(error);
28
+ }
29
+ }
30
+
31
+ &:focus,
32
+ &.k-focus {
33
+ &::after {
34
+ opacity: .12;
35
+ background-color: k-color(on-app-surface);
36
+ }
37
+
38
+ &:checked,
39
+ &.k-checked,
40
+ &.k-indeterminate {
41
+ &::after {
42
+ background-color: k-color(primary);
43
+ }
44
+ }
45
+
46
+ &.k-invalid::after {
47
+ background-color: k-color(error);
48
+ }
49
+ }
50
+
51
+ }
52
+
53
+ .k-ripple-focus.k-checkbox {
54
+
55
+ &:hover,
56
+ &.k-hover,
57
+ &:focus,
58
+ &.k-focus,
59
+ &.k-indeterminate {
60
+ &::after,
61
+ &:checked::after,
62
+ &.k-checked::after,
63
+ &.k-invalid::after {
64
+ background: $kendo-checkbox-ripple-bg;
65
+ opacity: $kendo-checkbox-ripple-opacity;
66
+ }
67
+ }
68
+
69
+ /* Checkbox Ripple animation */
70
+
71
+ &::after {
72
+ animation: ripple-checkbox 225ms cubic-bezier(0, 0, 0.2, 1);
73
+ }
74
+
75
+ &:checked,
76
+ &.k-checked,
77
+ &.k-indeterminate {
78
+ &::after {
79
+ animation: ripple-checkbox-checked 225ms cubic-bezier(0, 0, 0.2, 1);
80
+ }
81
+ }
82
+
83
+
84
+ @keyframes ripple-checkbox {
85
+ 0% {
86
+ background: radial-gradient(circle, $kendo-checkbox-ripple-bg 0%, k-color(primary) 50%);
87
+ opacity: 0.08;
88
+ }
89
+ 50% {
90
+ background: radial-gradient(circle, $kendo-checkbox-ripple-bg 50%, k-color(primary) 100%);
91
+ opacity: $kendo-checkbox-ripple-opacity;
92
+ }
93
+ 100% {
94
+ background: radial-gradient(circle, k-color(primary) 0%, k-color(primary) 100%);
95
+ opacity: .12;
96
+ }
97
+ }
98
+
99
+ @keyframes ripple-checkbox-checked {
100
+ 0% {
101
+ background: radial-gradient(circle, $kendo-checkbox-ripple-bg 0%, k-color(on-app-surface) 50%);
102
+ opacity: 0.08;
103
+ }
104
+ 50% {
105
+ background: radial-gradient(circle, $kendo-checkbox-ripple-bg 50%, k-color(on-app-surface) 100%);
106
+ opacity: $kendo-checkbox-ripple-opacity;
107
+ }
108
+ 100% {
109
+ background: radial-gradient(circle, k-color(on-app-surface) 0%, k-color(on-app-surface) 100%);
110
+ opacity: .12;
111
+ }
112
+ }
113
+ }
114
+
9
115
  // Checkbox
10
116
  // Disabled state
11
- .k-checkbox:disabled + .k-checkbox-label {
12
- color: if($kendo-enable-color-system, k-color( subtle ), if( $kendo-is-dark-theme, $light-secondary-text, $dark-secondary-text ));
13
- opacity: 1;
14
- filter: none;
117
+ .k-checkbox {
118
+ &:disabled,
119
+ &.k-disabled {
120
+ &.k-invalid {
121
+ border-color: $kendo-checkbox-disabled-border;
122
+ }
123
+ }
15
124
  }
16
125
 
17
126
  }
@@ -11,7 +11,7 @@ $kendo-checkbox-border-width: 2px !default;
11
11
 
12
12
  /// The size of a small CheckBox.
13
13
  /// @group checkbox
14
- $kendo-checkbox-sm-size: k-spacing(3) !default;
14
+ $kendo-checkbox-sm-size: k-spacing(4) !default;
15
15
  /// The size of a medium CheckBox.
16
16
  /// @group checkbox
17
17
  $kendo-checkbox-md-size: k-spacing(4) !default;
@@ -21,40 +21,43 @@ $kendo-checkbox-lg-size: k-spacing(5) !default;
21
21
 
22
22
  /// The glyph size of a small CheckBox.
23
23
  /// @group checkbox
24
- $kendo-checkbox-sm-glyph-size: k-spacing(2.5) !default;
24
+ $kendo-checkbox-sm-glyph-size: k-spacing(3) !default;
25
25
  /// The glyph size of a medium CheckBox.
26
26
  /// @group checkbox
27
- $kendo-checkbox-md-glyph-size: k-spacing(3.5) !default;
27
+ $kendo-checkbox-md-glyph-size: k-spacing(4) !default;
28
28
  /// The glyph size of a large CheckBox.
29
29
  /// @group checkbox
30
- $kendo-checkbox-lg-glyph-size: k-spacing(4.5) !default;
30
+ $kendo-checkbox-lg-glyph-size: k-spacing(5) !default;
31
31
 
32
32
  /// The ripple size of a small CheckBox.
33
33
  /// @group checkbox
34
- $kendo-checkbox-sm-ripple-size: 300% !default;
34
+ $kendo-checkbox-sm-ripple-size: k-spacing(8) !default;
35
35
  /// The ripple size of a medium CheckBox.
36
36
  /// @group checkbox
37
- $kendo-checkbox-md-ripple-size: 300% !default;
37
+ $kendo-checkbox-md-ripple-size: k-spacing(10) !default;
38
38
  /// The ripple size of a large CheckBox.
39
39
  /// @group checkbox
40
- $kendo-checkbox-lg-ripple-size: 300% !default;
40
+ $kendo-checkbox-lg-ripple-size: k-spacing(12) !default;
41
41
 
42
42
  // A map with the different CheckBox sizes.
43
43
  $kendo-checkbox-sizes: (
44
44
  sm: (
45
45
  size: $kendo-checkbox-sm-size,
46
46
  glyph-size: $kendo-checkbox-sm-glyph-size,
47
- ripple-size: $kendo-checkbox-sm-ripple-size
47
+ ripple-size: $kendo-checkbox-sm-ripple-size,
48
+ indicator-size: k-spacing(8)
48
49
  ),
49
50
  md: (
50
51
  size: $kendo-checkbox-md-size,
51
52
  glyph-size: $kendo-checkbox-md-glyph-size,
52
- ripple-size: $kendo-checkbox-md-ripple-size
53
+ ripple-size: $kendo-checkbox-md-ripple-size,
54
+ indicator-size: k-spacing(10)
53
55
  ),
54
56
  lg: (
55
57
  size: $kendo-checkbox-lg-size,
56
58
  glyph-size: $kendo-checkbox-lg-glyph-size,
57
- ripple-size: $kendo-checkbox-lg-ripple-size
59
+ ripple-size: $kendo-checkbox-lg-ripple-size,
60
+ indicator-size: k-spacing(12)
58
61
  )
59
62
  ) !default;
60
63
 
@@ -66,7 +69,7 @@ $kendo-checkbox-bg: unset !default;
66
69
  $kendo-checkbox-text: null !default;
67
70
  /// The border color of the CheckBox.
68
71
  /// @group checkbox
69
- $kendo-checkbox-border: if($kendo-enable-color-system, color-mix(in srgb, k-color( on-app-surface ) 44%, transparent), rgba( if( $kendo-is-dark-theme, $kendo-color-white, $kendo-color-black ), .54 )) !default;
72
+ $kendo-checkbox-border: k-color(on-app-surface) !default;
70
73
 
71
74
  /// The background color of the hovered CheckBox.
72
75
  /// @group checkbox
@@ -80,10 +83,10 @@ $kendo-checkbox-hover-border: null !default;
80
83
 
81
84
  /// The background color of the checked CheckBox.
82
85
  /// @group checkbox
83
- $kendo-checkbox-checked-bg: $kendo-color-primary !default;
86
+ $kendo-checkbox-checked-bg: k-color(primary) !default;
84
87
  /// The text color of the checked CheckBox.
85
88
  /// @group checkbox
86
- $kendo-checkbox-checked-text: if($kendo-enable-color-system, k-color( on-primary ), k-contrast-color( $kendo-checkbox-checked-bg )) !default;
89
+ $kendo-checkbox-checked-text: k-color(on-primary) !default;
87
90
  /// The border color of the checked CheckBox.
88
91
  /// @group checkbox
89
92
  $kendo-checkbox-checked-border: $kendo-checkbox-checked-bg !default;
@@ -119,15 +122,15 @@ $kendo-checkbox-disabled-bg: null !default;
119
122
  $kendo-checkbox-disabled-text: null !default;
120
123
  /// The border color of the disabled CheckBox.
121
124
  /// @group checkbox
122
- $kendo-checkbox-disabled-border: if($kendo-enable-color-system, k-color( base-emphasis ), k-try-shade( $kendo-component-bg, 4 )) !default;
125
+ $kendo-checkbox-disabled-border: k-color(on-app-surface) !default;
123
126
 
124
127
 
125
128
  /// The background color of the disabled and checked CheckBox.
126
129
  /// @group checkbox
127
- $kendo-checkbox-disabled-checked-bg: $kendo-checkbox-disabled-border !default;
130
+ $kendo-checkbox-disabled-checked-bg: k-color(on-app-surface) !default;
128
131
  /// The text color of the disabled and checked CheckBox.
129
132
  /// @group checkbox
130
- $kendo-checkbox-disabled-checked-text: if($kendo-enable-color-system, k-color( on-primary ), k-contrast-color( $kendo-checkbox-disabled-checked-bg )) !default;
133
+ $kendo-checkbox-disabled-checked-text: $kendo-checkbox-disabled-text !default;
131
134
  /// The border color of the disabled and checked CheckBox.
132
135
  /// @group checkbox
133
136
  $kendo-checkbox-disabled-checked-border: $kendo-checkbox-disabled-checked-bg !default;
@@ -137,10 +140,10 @@ $kendo-checkbox-disabled-checked-border: $kendo-checkbox-disabled-checked-bg !de
137
140
  $kendo-checkbox-invalid-bg: null !default;
138
141
  /// The text color of an invalid CheckBox.
139
142
  /// @group checkbox
140
- $kendo-checkbox-invalid-text: $kendo-invalid-text !default;
143
+ $kendo-checkbox-invalid-text: k-color(error) !default;
141
144
  /// The border color of an invalid CheckBox.
142
145
  /// @group checkbox
143
- $kendo-checkbox-invalid-border: $kendo-invalid-border !default;
146
+ $kendo-checkbox-invalid-border: k-color(error) !default;
144
147
 
145
148
 
146
149
  // CheckBox indicator
@@ -172,7 +175,7 @@ $kendo-checkbox-indeterminate-image: k-escape-svg( url("data:image/svg+xml,<svg
172
175
 
173
176
  /// The horizontal margin of the CheckBox inside a label.
174
177
  /// @group checkbox
175
- $kendo-checkbox-label-margin-x: k-spacing(1) !default;
178
+ $kendo-checkbox-label-margin-x: k-spacing(4) !default;
176
179
 
177
180
 
178
181
  // CheckBox list
@@ -192,7 +195,7 @@ $kendo-checkbox-list-item-padding-y: $kendo-list-md-item-padding-y !default;
192
195
 
193
196
  /// The background color of the CheckBox' ripple.
194
197
  /// @group checkbox
195
- $kendo-checkbox-ripple-bg: $kendo-color-primary !default;
198
+ $kendo-checkbox-ripple-bg: k-color(primary) !default;
196
199
  /// The opacity of the CheckBox' ripple.
197
200
  /// @group checkbox
198
201
  $kendo-checkbox-ripple-opacity: .2 !default;
@@ -1,6 +1,16 @@
1
+ @use "./_variables.scss" as *;
1
2
  @use "@progress/kendo-theme-core/scss/components/chip/_layout.scss" as *;
2
3
 
3
4
 
4
5
  @mixin kendo-chip--layout() {
5
6
  @include kendo-chip--layout-base();
7
+
8
+ .k-chip {
9
+ &:focus,
10
+ &.k-focus {
11
+ outline-style: solid;
12
+ outline-width: calc( (#{$kendo-chip-border-width} * 2 ));
13
+ outline-offset: calc( (#{$kendo-chip-border-width} * 2 ) * -1);
14
+ }
15
+ }
6
16
  }
@@ -8,17 +8,28 @@
8
8
 
9
9
  @include kendo-chip--theme-base();
10
10
 
11
- // Solid
12
- .k-chip-solid {
13
- border-color: transparent;
14
- }
15
-
16
11
  // Solid
17
12
  @each $name, $color in $kendo-chip-theme-colors {
18
13
  .k-chip-solid-#{$name} {
14
+ border-color: k-color(#{$name}-subtle);
15
+
16
+ &:hover,
17
+ &.k-hover {
18
+ border-color:k-color(#{$name}-subtle-hover);
19
+ }
20
+
19
21
  &:focus,
20
22
  &.k-focus {
21
- @include box-shadow( none );
23
+ outline-color: if( $name == "base", k-color(base-emphasis), k-color(#{$name}-active));
24
+ box-shadow: inset 0 0 0 calc( #{$kendo-chip-border-width} * 3 ) k-color(app-surface),
25
+ inset 0 0 0 calc( #{$kendo-chip-border-width} * 5 ) if( $name == "base", k-color(base-subtle-active), k-color(#{$name}-subtle));
26
+ }
27
+
28
+ &:active,
29
+ &.k-active,
30
+ &.k-selected {
31
+ background-color: k-color(#{$name}-subtle-active);
32
+ border-color: k-color(#{$name}-subtle-active);
22
33
  }
23
34
  }
24
35
  }
@@ -26,65 +37,34 @@
26
37
  // Outline
27
38
  @each $name, $color in $kendo-chip-theme-colors {
28
39
  .k-chip-outline-#{$name} {
29
- @if ($name == "base") {
30
- &:focus,
31
- &.k-focus {
32
- @include box-shadow( none );
33
- @include fill( $bg: if($kendo-enable-color-system, k-color( #{$name}-subtle-active ), k-try-tint( $color, 88% )) );
34
- }
35
- } @else if ($name == "warning") {
36
- @include fill(
37
- $color: if($kendo-enable-color-system, k-color( on-app-surface ), if( $kendo-is-dark-theme, k-try-shade( $color, 50% ), k-color( on-app-surface )))
38
- );
40
+ color: k-color(#{$name}-on-surface);
41
+ border-color: k-color(#{$name}-on-surface);
39
42
 
40
- &:focus,
41
- &.k-focus {
42
- @include box-shadow( none );
43
- @include fill( $bg: if($kendo-enable-color-system, k-color( #{$name}-subtle-active ), k-try-tint( $color, 65% )) );
44
- }
45
-
46
- &:hover,
47
- &.k-hover {
48
- @include fill(
49
- $bg: if($kendo-enable-color-system, k-color( #{$name}-subtle-hover ), k-try-tint( $color, 80% )),
50
- $color: if($kendo-enable-color-system, k-color( on-app-surface ), if( $kendo-is-dark-theme, k-try-shade( $color, 50% ), k-color( on-app-surface )))
51
- );
52
- }
53
-
54
- &.k-selected {
55
- @include fill(
56
- $bg: if($kendo-enable-color-system, k-color( #{$name}-subtle-active ), k-try-tint( $color, 65% )),
57
- $color: if($kendo-enable-color-system, k-color( on-app-surface ), if( $kendo-is-dark-theme, k-try-shade( $color, 50% ), k-color( on-app-surface )))
58
- );
59
- }
60
- } @else {
61
- @include fill(
62
- $color: if($kendo-enable-color-system, k-color( #{$name}-on-surface ), k-try-shade( $color, 50% ))
63
- );
43
+ &:hover,
44
+ &.k-hover,
45
+ &:active,
46
+ &.k-active,
47
+ &.k-selected {
48
+ color: k-color(#{$name}-on-surface);
49
+ border-color: k-color(#{$name}-on-surface);
50
+ }
64
51
 
65
- &:focus,
66
- &.k-focus {
67
- @include box-shadow( none );
68
- @include fill(
69
- $bg: if($kendo-enable-color-system, k-color( #{$name}-subtle-active ), k-try-tint( $color, 65% )),
70
- $color: if($kendo-enable-color-system, k-color( #{$name}-on-subtle ), k-try-shade( $color, 50% ))
71
- );
72
- }
52
+ &:active,
53
+ &.k-active,
54
+ &.k-selected {
55
+ background-color: if( $name == "base", color-mix(in srgb, currentColor 12%, transparent), color-mix(in srgb, k-color($name) 12%, transparent));
56
+ }
73
57
 
74
- &:hover,
75
- &.k-hover {
76
- @include fill(
77
- $bg: if($kendo-enable-color-system, k-color( #{$name}-subtle-hover ), k-try-tint( $color, 80% )),
78
- $color: if($kendo-enable-color-system, k-color( #{$name}-on-subtle ), k-try-shade( $color, 50% ))
79
- );
80
- }
58
+ &:hover,
59
+ &.k-hover {
60
+ background-color: if( $name == "base", color-mix(in srgb, currentColor 8%, transparent), color-mix(in srgb, k-color($name) 8%, transparent));
61
+ }
81
62
 
82
- &.k-selected {
83
- @include fill(
84
- $bg: if($kendo-enable-color-system, k-color( #{$name}-subtle-active ), k-try-tint( $color, 65% )),
85
- $color: if($kendo-enable-color-system, k-color( #{$name}-on-subtle ), k-try-shade( $color, 50% ))
86
- );
87
- }
63
+ &:focus,
64
+ &.k-focus {
65
+ outline-color: k-color(#{$name}-on-surface);
66
+ box-shadow: inset 0 0 0 calc( #{$kendo-chip-border-width} * 3 ) k-color(app-surface),
67
+ inset 0 0 0 calc( #{$kendo-chip-border-width} * 5 ) k-color(#{$name}-on-surface);
88
68
  }
89
69
  }
90
70
  }