@progress/kendo-theme-default 5.0.0-next.5 → 5.0.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 (250) hide show
  1. package/README.md +5 -8
  2. package/dist/all.css +9947 -12028
  3. package/dist/all.scss +14875 -15317
  4. package/dist/default-dataviz-v4.scss +8 -0
  5. package/dist/default-main-dark.scss +5 -5
  6. package/dist/default-main.scss +5 -5
  7. package/lib/swatches/default-dataviz-v4.json +51 -0
  8. package/lib/swatches/default-main-dark.json +5 -5
  9. package/lib/swatches/default-main.json +5 -5
  10. package/package.json +2 -2
  11. package/scss/_layout.scss +0 -0
  12. package/scss/_variables.scss +2 -19
  13. package/scss/action-buttons/_layout.scss +9 -0
  14. package/scss/action-sheet/_layout.scss +6 -0
  15. package/scss/adaptive/_layout.scss +50 -86
  16. package/scss/adaptive/_theme.scss +0 -9
  17. package/scss/all.scss +1 -154
  18. package/scss/appbar/_layout.scss +28 -3
  19. package/scss/appbar/_variables.scss +1 -1
  20. package/scss/autocomplete/_index.scss +1 -0
  21. package/scss/autocomplete/_layout.scss +1 -53
  22. package/scss/autocomplete/_theme.scss +3 -75
  23. package/scss/autocomplete/_variables.scss +0 -24
  24. package/scss/avatar/_layout.scss +19 -17
  25. package/scss/avatar/_theme.scss +4 -4
  26. package/scss/avatar/_variables.scss +18 -8
  27. package/scss/avatar/index.md +0 -0
  28. package/scss/badge/_layout.scss +6 -0
  29. package/scss/bottom-navigation/_layout.scss +6 -0
  30. package/scss/breadcrumb/_layout.scss +6 -13
  31. package/scss/button/_index.scss +2 -0
  32. package/scss/button/_layout.scss +100 -166
  33. package/scss/button/_theme.scss +188 -203
  34. package/scss/button/_variables.scss +57 -28
  35. package/scss/calendar/_index.scss +1 -0
  36. package/scss/calendar/_layout.scss +2 -14
  37. package/scss/calendar/_theme.scss +1 -19
  38. package/scss/captcha/_layout.scss +6 -0
  39. package/scss/card/_layout.scss +10 -53
  40. package/scss/card/_theme.scss +2 -1
  41. package/scss/card/_variables.scss +4 -4
  42. package/scss/chat/_layout.scss +35 -32
  43. package/scss/chat/_theme.scss +0 -31
  44. package/scss/chat/_variables.scss +3 -18
  45. package/scss/checkbox/_index.scss +2 -0
  46. package/scss/checkbox/_layout.scss +112 -163
  47. package/scss/checkbox/_theme.scss +6 -4
  48. package/scss/checkbox/_variables.scss +65 -74
  49. package/scss/checkbox/index.md +0 -0
  50. package/scss/chip/_index.scss +1 -0
  51. package/scss/chip/_layout.scss +127 -127
  52. package/scss/chip/_theme.scss +90 -387
  53. package/scss/chip/_variables.scss +142 -191
  54. package/scss/chip/index.md +0 -0
  55. package/scss/color-preview/_layout.scss +51 -8
  56. package/scss/color-preview/_theme.scss +1 -15
  57. package/scss/color-preview/_variables.scss +1 -0
  58. package/scss/coloreditor/_layout.scss +11 -1
  59. package/scss/coloreditor/_variables.scss +3 -3
  60. package/scss/colorgradient/_layout.scss +13 -4
  61. package/scss/colorpalette/_layout.scss +6 -0
  62. package/scss/colorpicker/_index.scss +1 -2
  63. package/scss/colorpicker/_layout.scss +7 -130
  64. package/scss/colorpicker/_theme.scss +2 -64
  65. package/scss/colorpicker/_variables.scss +1 -22
  66. package/scss/combobox/_index.scss +1 -0
  67. package/scss/combobox/_layout.scss +3 -83
  68. package/scss/combobox/_theme.scss +3 -124
  69. package/scss/combobox/_variables.scss +1 -33
  70. package/scss/common/_base.scss +1 -0
  71. package/scss/common/_loading.scss +15 -13
  72. package/scss/core/_normalize.scss +0 -11
  73. package/scss/core/functions/_colors.scss +4 -1
  74. package/scss/core/mixins/_index.scss +1 -0
  75. package/scss/core/mixins/_module-system.scss +149 -0
  76. package/scss/dataviz/_index.scss +1 -0
  77. package/scss/dataviz/_variables.scss +6 -6
  78. package/scss/dateinput/_index.scss +11 -0
  79. package/scss/dateinput/_layout.scss +6 -0
  80. package/scss/dateinput/_theme.scss +6 -0
  81. package/scss/dateinput/_variables.scss +1 -0
  82. package/scss/datepicker/_index.scss +13 -0
  83. package/scss/datepicker/_layout.scss +6 -0
  84. package/scss/datepicker/_theme.scss +6 -0
  85. package/scss/datepicker/_variables.scss +1 -0
  86. package/scss/{datetime → daterangepicker}/_index.scss +1 -2
  87. package/scss/daterangepicker/_layout.scss +39 -0
  88. package/scss/daterangepicker/_theme.scss +3 -0
  89. package/scss/daterangepicker/_variables.scss +1 -0
  90. package/scss/datetimepicker/_index.scss +17 -0
  91. package/scss/datetimepicker/_layout.scss +56 -0
  92. package/scss/datetimepicker/_theme.scss +6 -0
  93. package/scss/datetimepicker/_variables.scss +2 -0
  94. package/scss/drawer/_index.scss +1 -0
  95. package/scss/drawer/_layout.scss +6 -0
  96. package/scss/drawer/_variables.scss +1 -1
  97. package/scss/dropdowngrid/_layout.scss +9 -4
  98. package/scss/dropdowngrid/_theme.scss +9 -2
  99. package/scss/dropdowngrid/index.md +0 -0
  100. package/scss/dropdownlist/_index.scss +1 -0
  101. package/scss/dropdownlist/_layout.scss +20 -100
  102. package/scss/dropdownlist/_theme.scss +3 -91
  103. package/scss/dropdowntree/_layout.scss +5 -14
  104. package/scss/dropdowntree/_theme.scss +2 -1
  105. package/scss/dropdowntree/_variables.scss +2 -4
  106. package/scss/dropzone/_layout.scss +0 -16
  107. package/scss/editor/_layout.scss +105 -72
  108. package/scss/editor/_theme.scss +9 -0
  109. package/scss/editor/_variables.scss +8 -0
  110. package/scss/expansion-panel/_index.scss +1 -0
  111. package/scss/expansion-panel/_layout.scss +6 -1
  112. package/scss/expansion-panel/_variables.scss +2 -2
  113. package/scss/fab/_layout.scss +30 -58
  114. package/scss/fab/_theme.scss +43 -48
  115. package/scss/fab/_variables.scss +129 -72
  116. package/scss/fab/index.md +0 -0
  117. package/scss/filemanager/_theme.scss +1 -1
  118. package/scss/filter/_index.scss +1 -1
  119. package/scss/filter/_layout.scss +20 -6
  120. package/scss/filter/_theme.scss +3 -1
  121. package/scss/floating-label/_layout.scss +7 -0
  122. package/scss/forms/_index.scss +1 -1
  123. package/scss/forms/_layout.scss +18 -96
  124. package/scss/gantt/_index.scss +1 -1
  125. package/scss/gantt/_layout.scss +6 -4
  126. package/scss/grid/_index.scss +2 -1
  127. package/scss/grid/_layout.scss +144 -162
  128. package/scss/grid/_theme.scss +14 -20
  129. package/scss/grid/_variables.scss +10 -10
  130. package/scss/icons/_layout.scss +6 -1
  131. package/scss/icons/font/WebComponentsIcons.scss +1 -1
  132. package/scss/icons/font/WebComponentsIcons.ttf +0 -0
  133. package/scss/imageeditor/_layout.scss +10 -8
  134. package/scss/imageeditor/_variables.scss +1 -0
  135. package/scss/index.scss +157 -0
  136. package/scss/input/_index.scss +1 -1
  137. package/scss/input/_layout.scss +249 -27
  138. package/scss/input/_theme.scss +82 -2
  139. package/scss/input/_variables.scss +80 -58
  140. package/scss/list/_index.scss +12 -0
  141. package/scss/list/_layout.scss +241 -0
  142. package/scss/list/_theme.scss +91 -0
  143. package/scss/list/_variables.scss +248 -0
  144. package/scss/list/index.md +0 -0
  145. package/scss/listbox/_index.scss +2 -0
  146. package/scss/listbox/_layout.scss +10 -0
  147. package/scss/listbox/_variables.scss +1 -1
  148. package/scss/listview/_layout.scss +2 -9
  149. package/scss/map/_layout.scss +24 -0
  150. package/scss/maskedtextbox/_layout.scss +1 -1
  151. package/scss/maskedtextbox/_theme.scss +1 -1
  152. package/scss/mediaplayer/_layout.scss +19 -1
  153. package/scss/menu/_index.scss +2 -0
  154. package/scss/menu/_layout.scss +134 -74
  155. package/scss/menu/_theme.scss +33 -25
  156. package/scss/menu/_variables.scss +124 -35
  157. package/scss/multiselect/_index.scss +2 -0
  158. package/scss/multiselect/_layout.scss +3 -199
  159. package/scss/multiselect/_theme.scss +3 -139
  160. package/scss/multiselect/_variables.scss +0 -36
  161. package/scss/notification/_layout.scss +6 -22
  162. package/scss/numerictextbox/_layout.scss +6 -2
  163. package/scss/numerictextbox/_theme.scss +1 -1
  164. package/scss/numerictextbox/_variables.scss +1 -1
  165. package/scss/orgchart/_layout.scss +6 -0
  166. package/scss/orgchart/_variables.scss +2 -2
  167. package/scss/pager/_index.scss +1 -0
  168. package/scss/pager/_layout.scss +10 -11
  169. package/scss/pager/_theme.scss +4 -4
  170. package/scss/pager/_variables.scss +6 -6
  171. package/scss/panelbar/_index.scss +1 -0
  172. package/scss/panelbar/_layout.scss +6 -53
  173. package/scss/panelbar/_theme.scss +9 -2
  174. package/scss/panelbar/_variables.scss +6 -2
  175. package/scss/pdf-viewer/_layout.scss +23 -16
  176. package/scss/pdf-viewer/_variables.scss +2 -5
  177. package/scss/pivotgrid/_index.scss +1 -0
  178. package/scss/pivotgrid/_layout.scss +77 -108
  179. package/scss/pivotgrid/_theme.scss +39 -73
  180. package/scss/pivotgrid/_variables.scss +1 -4
  181. package/scss/popover/_layout.scss +6 -1
  182. package/scss/popup/_index.scss +0 -4
  183. package/scss/popup/_layout.scss +6 -248
  184. package/scss/popup/_theme.scss +2 -159
  185. package/scss/popup/_variables.scss +2 -7
  186. package/scss/progressbar/_layout.scss +6 -0
  187. package/scss/radio/_index.scss +2 -0
  188. package/scss/radio/_layout.scss +123 -165
  189. package/scss/radio/_theme.scss +4 -4
  190. package/scss/radio/_variables.scss +70 -91
  191. package/scss/radio/index.md +0 -0
  192. package/scss/rating/_layout.scss +6 -9
  193. package/scss/scheduler/_index.scss +1 -1
  194. package/scss/scheduler/_layout.scss +32 -13
  195. package/scss/scrollview/_layout.scss +6 -1
  196. package/scss/skeleton/_layout.scss +1 -1
  197. package/scss/slider/_layout.scss +67 -137
  198. package/scss/slider/_theme.scss +0 -6
  199. package/scss/spreadsheet/_index.scss +2 -1
  200. package/scss/spreadsheet/_layout.scss +35 -36
  201. package/scss/spreadsheet/_theme.scss +6 -6
  202. package/scss/stepper/_layout.scss +6 -1
  203. package/scss/switch/_layout.scss +64 -53
  204. package/scss/switch/_theme.scss +73 -75
  205. package/scss/switch/_variables.scss +107 -169
  206. package/scss/switch/index.md +0 -0
  207. package/scss/table/_index.scss +19 -0
  208. package/scss/table/_layout.scss +275 -0
  209. package/scss/table/_theme.scss +82 -0
  210. package/scss/table/_variables.scss +141 -0
  211. package/scss/tabstrip/_index.scss +1 -0
  212. package/scss/tabstrip/_layout.scss +37 -5
  213. package/scss/tabstrip/_theme.scss +1 -0
  214. package/scss/tabstrip/_variables.scss +3 -3
  215. package/scss/taskboard/_layout.scss +8 -3
  216. package/scss/taskboard/_variables.scss +0 -2
  217. package/scss/textarea/_layout.scss +3 -1
  218. package/scss/timeline/_layout.scss +8 -4
  219. package/scss/timepicker/_index.scss +15 -0
  220. package/scss/timepicker/_layout.scss +6 -0
  221. package/scss/timepicker/_theme.scss +6 -0
  222. package/scss/timepicker/_variables.scss +1 -0
  223. package/scss/timeselector/_index.scss +13 -0
  224. package/scss/timeselector/_layout.scss +208 -0
  225. package/scss/timeselector/_theme.scss +70 -0
  226. package/scss/timeselector/_variables.scss +32 -0
  227. package/scss/toolbar/_index.scss +1 -0
  228. package/scss/toolbar/_layout.scss +45 -3
  229. package/scss/toolbar/_theme.scss +41 -7
  230. package/scss/toolbar/_variables.scss +2 -0
  231. package/scss/tooltip/_layout.scss +6 -1
  232. package/scss/treelist/_layout.scss +4 -0
  233. package/scss/treeview/_layout.scss +135 -122
  234. package/scss/treeview/_theme.scss +51 -42
  235. package/scss/treeview/_variables.scss +125 -46
  236. package/scss/typography/_variables.scss +3 -3
  237. package/scss/upload/_layout.scss +6 -81
  238. package/scss/utils/_border.scss +1 -2
  239. package/scss/utils/_flex.scss +11 -3
  240. package/scss/virtual-scroller/_index.scss +10 -0
  241. package/scss/virtual-scroller/_layout.scss +35 -0
  242. package/scss/virtual-scroller/_theme.scss +3 -0
  243. package/scss/virtual-scroller/_variables.scss +1 -0
  244. package/scss/window/_layout.scss +13 -2
  245. package/scss/window/_variables.scss +1 -1
  246. package/scss/wizard/_layout.scss +4 -0
  247. package/scss/datetime/_layout.scss +0 -525
  248. package/scss/datetime/_theme.scss +0 -297
  249. package/scss/datetime/_variables.scss +0 -53
  250. package/scss/no-flexbox.scss +0 -71
@@ -13,6 +13,12 @@
13
13
  line-height: $imageeditor-line-height;
14
14
  -webkit-touch-callout: none;
15
15
  -webkit-tap-highlight-color: $rgba-transparent;
16
+
17
+ *,
18
+ *::before,
19
+ *::after {
20
+ box-sizing: border-box;
21
+ }
16
22
  }
17
23
 
18
24
 
@@ -50,16 +56,16 @@
50
56
 
51
57
  // Action Pane
52
58
  .k-imageeditor-action-pane {
59
+ padding: $imageeditor-action-pane-padding-y $imageeditor-action-pane-padding-x;
60
+ width: $imageeditor-action-pane-width;
53
61
  border-width: 0;
54
62
  border-left-width: $imageeditor-content-border-width;
55
63
  border-style: solid;
56
64
  border-color: inherit;
57
- flex-shrink: 0;
65
+ box-sizing: border-box;
66
+ flex: none;
58
67
  overflow-y: auto;
59
68
  }
60
- .k-imageeditor-action-pane > .k-form {
61
- padding: $imageeditor-action-pane-padding-y $imageeditor-action-pane-padding-x;
62
- }
63
69
 
64
70
 
65
71
  // Crop Tool
@@ -149,10 +155,6 @@
149
155
  flex-direction: row;
150
156
  align-self: flex-start;
151
157
  }
152
-
153
- .k-imageeditor-action-pane {
154
- flex: 0 0 auto;
155
- }
156
158
  }
157
159
 
158
160
  }
@@ -13,6 +13,7 @@ $imageeditor-content-border-width: 1px !default;
13
13
 
14
14
  $imageeditor-action-pane-padding-y: map-get( $spacing, 8 ) !default;
15
15
  $imageeditor-action-pane-padding-x: map-get( $spacing, 4 ) !default;
16
+ $imageeditor-action-pane-width: if( $imageeditor-content-border-width == null, 240px, calc(240px + #{$imageeditor-content-border-width}) );
16
17
 
17
18
  $imageeditor-crop-border-width: 1px !default;
18
19
  $imageeditor-crop-border-style: dashed !default;
@@ -0,0 +1,157 @@
1
+ @import "core/_index.scss";
2
+ @import "common/_index.scss";
3
+
4
+
5
+ // Typography and utils
6
+ @import "typography/_index.scss";
7
+ @import "utils/_index.scss";
8
+ @import "cursor/_index.scss";
9
+
10
+
11
+ // Generic content
12
+ @import "styling/_index.scss";
13
+ @import "icons/_index.scss";
14
+ @import "messagebox/_index.scss";
15
+
16
+
17
+ // Primitive components
18
+ @import "list/_index.scss";
19
+ @import "listgroup/_index.scss";
20
+ @import "overlay/_index.scss";
21
+ @import "popup/_index.scss";
22
+ @import "ripple/_index.scss";
23
+ @import "table/_index.scss";
24
+ @import "virtual-scroller/_index.scss";
25
+
26
+
27
+ // Indicators
28
+ @import "avatar/_index.scss";
29
+ @import "badge/_index.scss";
30
+ @import "chip/_index.scss";
31
+ @import "color-preview/_index.scss";
32
+ @import "loader/_index.scss";
33
+ // @import "loading/_index.scss";
34
+ @import "skeleton/_index.scss";
35
+
36
+
37
+ // Form helpers
38
+ @import "forms/_index.scss";
39
+ @import "validator/_index.scss";
40
+ @import "floating-label/_index.scss";
41
+
42
+
43
+ // Native forms
44
+ @import "button/_index.scss";
45
+ @import "input/_index.scss";
46
+ @import "textbox/_index.scss";
47
+ @import "textarea/_index.scss";
48
+ @import "checkbox/_index.scss";
49
+ @import "listbox/_index.scss";
50
+ @import "progressbar/_index.scss";
51
+ @import "radio/_index.scss";
52
+ @import "slider/_index.scss";
53
+
54
+
55
+ // Form requirements
56
+ @import "calendar/_index.scss";
57
+ @import "timeselector/_index.scss";
58
+
59
+
60
+ // Augmented forms
61
+ @import "autocomplete/_index.scss";
62
+ @import "captcha/_index.scss";
63
+ @import "colorpalette/_index.scss";
64
+ @import "colorgradient/_index.scss";
65
+ @import "coloreditor/_index.scss";
66
+ @import "colorpicker/_index.scss";
67
+ @import "combobox/_index.scss";
68
+ @import "dateinput/_index.scss";
69
+ @import "datepicker/_index.scss";
70
+ @import "timepicker/_index.scss";
71
+ @import "datetimepicker/_index.scss";
72
+ @import "daterangepicker/_index.scss";
73
+ @import "dropdowngrid/_index.scss";
74
+ @import "dropdownlist/_index.scss";
75
+ @import "dropdowntree/_index.scss";
76
+ @import "maskedtextbox/_index.scss";
77
+ @import "multiselect/_index.scss";
78
+ @import "numerictextbox/_index.scss";
79
+ @import "rating/_index.scss";
80
+ @import "searchbox/_index.scss";
81
+ @import "switch/_index.scss";
82
+ @import "upload/_index.scss";
83
+ @import "dropzone/_index.scss";
84
+
85
+
86
+ // Command interfaces
87
+ @import "action-buttons/_index.scss";
88
+ @import "appbar/_index.scss";
89
+ @import "fab/_index.scss";
90
+ @import "menu/_index.scss";
91
+ @import "toolbar/_index.scss";
92
+
93
+
94
+ // Popups and modals
95
+ @import "action-sheet/_index.scss";
96
+ @import "dialog/_index.scss";
97
+ @import "drawer/_index.scss";
98
+ @import "notification/_index.scss";
99
+ @import "popover/_index.scss";
100
+ @import "responsivepanel/_index.scss";
101
+ @import "tooltip/_index.scss";
102
+ @import "window/_index.scss";
103
+
104
+
105
+ // Navigation
106
+ @import "bottom-navigation/_index.scss";
107
+ @import "breadcrumb/_index.scss";
108
+ @import "pager/_index.scss";
109
+ @import "stepper/_index.scss";
110
+ @import "tabstrip/_index.scss";
111
+ @import "treeview/_index.scss";
112
+ @import "wizard/_index.scss";
113
+
114
+
115
+ // Layout & containers
116
+ @import "card/_index.scss";
117
+ @import "expansion-panel/_index.scss";
118
+ @import "panelbar/_index.scss";
119
+ @import "splitter/_index.scss";
120
+ @import "tilelayout/_index.scss";
121
+
122
+
123
+ // Data management
124
+ @import "grid/_index.scss";
125
+ @import "listview/_index.scss";
126
+ @import "spreadsheet/_index.scss";
127
+ @import "pivotgrid/_index.scss";
128
+ @import "treelist/_index.scss";
129
+ @import "filter/_index.scss";
130
+ @import "filemanager/_index.scss";
131
+ @import "taskboard/_index.scss";
132
+
133
+
134
+ // Editors
135
+ @import "editor/_index.scss";
136
+ @import "imageeditor/_index.scss";
137
+
138
+
139
+ // Scheduling
140
+ @import "gantt/_index.scss";
141
+ @import "scheduler/_index.scss";
142
+
143
+
144
+ // Misc
145
+ @import "adaptive/_index.scss";
146
+ @import "chat/_index.scss";
147
+ @import "mediaplayer/_index.scss";
148
+ @import "timeline/_index.scss";
149
+ @import "pdf-viewer/_index.scss";
150
+ @import "scroller/_index.scss";
151
+ @import "scrollview/_index.scss";
152
+
153
+
154
+ // Dataviz
155
+ @import "dataviz/_index.scss";
156
+ @import "map/_index.scss";
157
+ @import "orgchart/_index.scss";
@@ -3,7 +3,7 @@
3
3
 
4
4
  // Dependencies
5
5
  @import "../common/_index.scss";
6
- @import "../button/_variables.scss";
6
+ @import "../button/_index.scss";
7
7
 
8
8
 
9
9
  // Component
@@ -1,30 +1,72 @@
1
1
  @include exports( "input/layout" ) {
2
2
 
3
3
  // Generic input
4
- .k-input {
4
+ .k-input,
5
+ .k-picker {
5
6
  @include border-radius( $kendo-input-border-radius );
6
7
  margin: 0;
7
8
  padding: 0;
8
- width: 100%;
9
+ width: $kendo-input-default-width;
9
10
  min-width: 0;
11
+ box-sizing: border-box;
10
12
  border-width: $kendo-input-border-width;
11
13
  border-style: solid;
12
14
  outline: 0;
13
15
  font-family: $kendo-input-font-family;
14
16
  font-size: $kendo-input-font-size;
15
17
  line-height: $kendo-input-line-height;
18
+ font-weight: normal;
19
+ text-align: start;
16
20
  box-shadow: none;
17
21
  display: inline-flex;
18
22
  flex-flow: row nowrap;
23
+ align-items: stretch;
24
+ vertical-align: middle;
25
+ position: relative;
19
26
  overflow: hidden;
20
27
  text-overflow: ellipsis;
21
28
  -webkit-appearance: none;
29
+
30
+ *,
31
+ *::before,
32
+ *::after {
33
+ box-sizing: border-box;
34
+ }
35
+
36
+ .k-input,
37
+ .k-picker {
38
+ border-width: 0 !important; // sass-lint:disable-line no-important
39
+ color: inherit;
40
+ background: none;
41
+ font: inherit;
42
+ outline: 0;
43
+ box-shadow: none;
44
+ }
45
+
46
+ // fix for Safari
47
+ & > * {
48
+ margin: 0;
49
+ }
22
50
  }
51
+
52
+
53
+ // Input
54
+ .k-input {}
23
55
  input.k-input {
24
56
  padding: $kendo-input-padding-y $kendo-input-padding-x;
25
57
  }
26
58
 
27
59
 
60
+ // Picker
61
+ .k-picker {
62
+ cursor: pointer;
63
+ }
64
+ select.k-picker {
65
+ padding: $kendo-input-padding-y $kendo-input-padding-x;
66
+ appearance: auto;
67
+ }
68
+
69
+
28
70
  // Input inner
29
71
  .k-input-inner {
30
72
  padding: $kendo-input-padding-y $kendo-input-padding-x;
@@ -35,8 +77,10 @@
35
77
  background: none;
36
78
  font: inherit;
37
79
  flex: 1;
80
+ position: relative;
81
+ z-index: 1;
38
82
  overflow: hidden;
39
- text-overflow: ellipsis;
83
+ text-overflow: clip;
40
84
  -webkit-appearance: none;
41
85
 
42
86
  // Hide clear icon
@@ -58,16 +102,55 @@
58
102
  }
59
103
  }
60
104
  span.k-input-inner {
105
+ white-space: nowrap;
61
106
  display: flex;
62
107
  flex-flow: row nowrap;
108
+ align-items: center;
109
+ }
110
+ textarea.k-input-inner {
111
+ margin: 0;
112
+ }
63
113
 
64
- .k-value-icon {
65
- flex: none;
66
- }
67
- .k-value-text {
68
- flex: 1;
69
- overflow: hidden;
70
- text-overflow: ellipsis;
114
+
115
+ // Input value
116
+ .k-input-value-icon {
117
+ flex: none;
118
+ }
119
+ .k-input-value-text {
120
+ flex: 1;
121
+ overflow: hidden;
122
+ text-overflow: clip;
123
+ }
124
+ .k-input-value-text::before {
125
+ content: "\200b";
126
+ width: 0px;
127
+ overflow: hidden;
128
+ flex: none;
129
+ display: inline-block;
130
+ vertical-align: top;
131
+ }
132
+
133
+
134
+ // Input multiple values
135
+ .k-input-values {
136
+ width: 100%;
137
+ padding: $kendo-input-values-margin-y $kendo-input-values-margin-x;
138
+ cursor: text;
139
+ }
140
+ .k-input-values > .k-searchbar,
141
+ .k-input-values > .k-input-inner {
142
+ margin: (-$kendo-input-values-margin-y) (-$kendo-input-values-margin-x);
143
+ }
144
+
145
+
146
+ // Icon picker
147
+ .k-icon-picker {
148
+ .k-input-inner {
149
+ padding: $kendo-input-padding-y;
150
+ // TODO we need better way
151
+ // width: $kendo-input-inner-calc-height;
152
+ // height: $kendo-input-inner-calc-height;
153
+ justify-content: center;
71
154
  }
72
155
  }
73
156
 
@@ -75,7 +158,9 @@
75
158
  // Input prefix and suffix
76
159
  .k-input-prefix,
77
160
  .k-input-suffix {
161
+ border-color: inherit;
78
162
  display: flex;
163
+ flex-flow: row nowrap;
79
164
  align-items: center;
80
165
  flex: none;
81
166
 
@@ -85,11 +170,24 @@
85
170
  }
86
171
 
87
172
 
88
- // Input
89
- .k-input-icon {
90
- width: $kendo-input-icon-width;
91
- height: $kendo-input-icon-height;
173
+ // Input separator
174
+ .k-input-separator {
175
+ margin: 0;
176
+ width: 0;
177
+ height: $icon-size;
178
+ border-width: 0 0 0 1px;
179
+ border-style: solid;
180
+ border-color: inherit;
181
+ align-self: center;
182
+ }
183
+
184
+
185
+ // Input with icon styles
186
+ .k-input-icon,
187
+ .k-input-validation-icon,
188
+ .k-input-loading-icon {
92
189
  flex: none;
190
+ align-self: center;
93
191
  display: inline-flex;
94
192
  flex-flow: row nowrap;
95
193
  align-items: center;
@@ -99,53 +197,80 @@
99
197
 
100
198
  // Clear value
101
199
  .k-clear-value {
102
- width: $kendo-input-icon-width;
103
- height: $kendo-input-icon-height;
104
200
  outline: 0;
201
+ color: $kendo-input-clear-value-text;
105
202
  flex: none;
203
+ align-self: center;
106
204
  display: inline-flex;
107
205
  align-items: center;
108
206
  justify-content: center;
109
207
  cursor: pointer;
110
- opacity: .5;
208
+ opacity: $kendo-input-clear-value-opacity;
111
209
  }
112
210
  .k-clear-value:hover,
113
- .k-clear-value.k-state-hover {
114
- opacity: 1;
211
+ .k-clear-value.k-hover {
212
+ color: $kendo-input-clear-value-hover-text;
213
+ opacity: $kendo-input-clear-value-hover-opacity;
214
+ }
215
+ .k-clear-value:focus-visible {
216
+ outline: 1px dotted;
217
+ outline-offset: -1px;
115
218
  }
116
219
 
117
220
 
118
221
  // Input button
119
222
  .k-input-button {
120
- min-width: $kendo-input-spinner-width;
223
+ width: if( $use-input-button-width, $kendo-input-button-width, auto );
121
224
  border-width: 0;
225
+ border-inline-start-width: $kendo-input-button-border-width;
122
226
  flex: none;
227
+ aspect-ratio: auto;
123
228
  box-shadow: none;
229
+
230
+ > .k-button-icon {
231
+ min-width: auto !important; // sass-lint:disable-line no-important
232
+ // min-height: auto !important; // sass-lint:disable-line no-important
233
+ }
234
+
235
+ &:focus {
236
+ box-shadow: none;
237
+ }
238
+ }
239
+ .k-picker .k-input-button {
240
+ color: inherit;
241
+ background: none;
242
+ border-color: transparent;
124
243
  }
125
244
 
126
245
 
127
246
  // Input spinner
128
247
  .k-input-spinner {
129
- min-width: $kendo-input-spinner-width;
248
+ width: if( $use-input-spinner-width, $kendo-input-spinner-width, auto );
130
249
  flex: none;
131
250
  display: flex;
132
251
  flex-flow: column nowrap;
133
252
 
134
253
  .k-spinner-increase,
135
254
  .k-spinner-decrease {
136
- padding: 0;
137
255
  border-width: 0;
256
+ border-inline-start-width: $kendo-input-button-border-width;
138
257
  flex: 1 1 50%;
139
- aspect-ratio: auto;
140
258
  box-shadow: none;
259
+ position: relative;
260
+ aspect-ratio: auto;
141
261
 
142
262
  > .k-button-icon {
143
- position: absolute;
144
- top: 50%;
145
- left: 50%;
146
- transform: translate(-50%, -50%);
263
+ margin: -1em 0;
264
+ min-width: auto !important; // sass-lint:disable-line no-important
265
+ min-height: auto !important; // sass-lint:disable-line no-important
147
266
  }
148
267
  }
268
+ .k-spinner-increase .k-icon {
269
+ bottom: -$kendo-input-spinner-icon-offset;
270
+ }
271
+ .k-spinner-decrease .k-icon {
272
+ top: -$kendo-input-spinner-icon-offset;
273
+ }
149
274
  }
150
275
 
151
276
 
@@ -156,6 +281,103 @@
156
281
  flex-flow: row nowrap;
157
282
  }
158
283
 
284
+
285
+ // Legacy wrappers
286
+ .k-picker-wrap,
287
+ .k-dropdown-wrap,
288
+ .k-dateinput-wrap,
289
+ .k-multiselect-wrap,
290
+ .k-numeric-wrap {
291
+ width: 100%;
292
+ border-width: 0;
293
+ border-color: inherit;
294
+ box-sizing: border-box;
295
+ flex: 1 1 auto;
296
+ display: flex;
297
+ flex-flow: row nowrap;
298
+ overflow: hidden;
299
+ position: relative;
300
+ }
301
+
302
+
303
+ // Fill mode
304
+ .k-input-flat,
305
+ .k-picker-flat {
306
+ @include border-radius( 0 !important ); // sass-lint:disable-line no-important
307
+ border-width: $kendo-input-border-width 0;
308
+ border-top-color: transparent !important; // sass-lint:disable-line no-important
309
+ background: none !important; // sass-lint:disable-line no-important
310
+
311
+ .k-input-inner {
312
+ padding-left: 0 !important; // sass-lint:disable-line no-important
313
+ padding-right: 0 !important; // sass-lint:disable-line no-important
314
+ }
315
+ }
316
+
317
+ .k-input-outline,
318
+ .k-picker-outline {
319
+ background: none !important; // sass-lint:disable-line no-important
320
+ }
321
+
322
+
323
+ // Sizing
324
+ @each $size, $size-props in $kendo-input-sizes {
325
+ $_padding-x: map-get( $size-props, padding-x );
326
+ $_padding-y: map-get( $size-props, padding-y );
327
+ $_font-size: map-get( $size-props, font-size );
328
+ $_line-height: map-get( $size-props, line-height );
329
+ $_icon-size: map-get( $size-props, icon-size );
330
+ $_button-padding-x: map-get( $size-props, button-padding-x );
331
+ $_button-padding-y: map-get( $size-props, button-padding-y );
332
+
333
+ .k-input-#{$size},
334
+ .k-picker-#{$size} {
335
+ font-size: $_font-size;
336
+ line-height: $_line-height;
337
+
338
+ .k-input-values {
339
+ width: 100%;
340
+ padding: ($_padding-y / 2);
341
+ gap: ($_padding-y / 2);
342
+ cursor: text;
343
+ }
344
+ .k-input-values > .k-searchbar,
345
+ .k-input-values > .k-input-inner {
346
+ margin: -($_padding-y / 2);
347
+ }
348
+
349
+ .k-input-inner {
350
+ padding: $_padding-y $_padding-x;
351
+ }
352
+
353
+ .k-input-button,
354
+ .k-spinner-increase,
355
+ .k-spinner-decrease {
356
+ padding: $_button-padding-y $_button-padding-x;
357
+ }
358
+
359
+ .k-input-icon,
360
+ .k-input-validation-icon,
361
+ .k-input-loading-icon,
362
+ .k-clear-value {
363
+ width: $_icon-size;
364
+ height: $_icon-size;
365
+ }
366
+
367
+ &.k-icon-picker .k-input-inner {
368
+ width: calc( #{$_line-height * 1em} );
369
+ height: calc( #{$_line-height * 1em} );
370
+ padding: $_padding-y;
371
+ box-sizing: content-box;
372
+ }
373
+ }
374
+ .k-dropdown-operator.k-picker-#{$size} {
375
+ .k-input-button {
376
+ padding: $_padding-y;
377
+ }
378
+ }
379
+ }
380
+
159
381
  }
160
382
 
161
383
 
@@ -1,5 +1,6 @@
1
1
  @include exports( "input/theme" ) {
2
2
 
3
+ // Solid input
3
4
  .k-input {
4
5
  @include fill(
5
6
  $kendo-input-text,
@@ -27,17 +28,96 @@
27
28
  );
28
29
  @include box-shadow( $kendo-input-focus-shadow );
29
30
  }
31
+ &:focus-within {
32
+ @include fill (
33
+ $kendo-input-focus-text,
34
+ $kendo-input-focus-bg,
35
+ $kendo-input-focus-border
36
+ );
37
+ @include box-shadow( $kendo-input-focus-shadow );
38
+ }
30
39
 
31
40
  // Invalid
32
- &:invalid,
33
- &.k-invalid {
41
+ &.k-invalid,
42
+ &.ng-invalid.ng-touched,
43
+ &.ng-invalid.ng-dirty {
34
44
  @include fill( $border: $invalid-border );
35
45
 
46
+ .k-input-validation-icon {
47
+ color: $invalid-text;
48
+ }
49
+
36
50
  &:focus,
37
51
  &.k-focus {
38
52
  @include box-shadow($invalid-shadow);
39
53
  }
54
+ &:focus-within {
55
+ @include box-shadow($invalid-shadow);
56
+ }
57
+ }
58
+
59
+ }
60
+
61
+
62
+ // Solid picker
63
+ .k-picker {
64
+ @include fill(
65
+ $kendo-picker-text,
66
+ $kendo-picker-bg,
67
+ $kendo-picker-border,
68
+ $kendo-picker-gradient
69
+ );
70
+
71
+ // Hover
72
+ &:hover,
73
+ &.k-hover {
74
+ @include fill(
75
+ $kendo-picker-hover-text,
76
+ $kendo-picker-hover-bg,
77
+ $kendo-picker-hover-border,
78
+ $kendo-picker-hover-gradient
79
+ );
80
+ }
81
+
82
+ // Focus
83
+ &:focus,
84
+ &.k-focus {
85
+ @include fill (
86
+ $kendo-picker-focus-text,
87
+ $kendo-picker-focus-bg,
88
+ $kendo-picker-focus-border,
89
+ $kendo-picker-focus-gradient
90
+ );
91
+ @include box-shadow( $kendo-picker-focus-shadow );
92
+ }
93
+ &:focus-within {
94
+ @include fill (
95
+ $kendo-picker-focus-text,
96
+ $kendo-picker-focus-bg,
97
+ $kendo-picker-focus-border,
98
+ $kendo-picker-focus-gradient
99
+ );
100
+ @include box-shadow( $kendo-picker-focus-shadow );
40
101
  }
41
102
 
103
+ // Invalid
104
+ &.k-invalid,
105
+ &.ng-invalid.ng-touched,
106
+ &.ng-invalid.ng-dirty {
107
+ @include fill( $border: $kendo-input-invalid-border );
108
+
109
+ .k-input-validation-icon {
110
+ color: $invalid-text;
111
+ }
112
+
113
+ &:focus,
114
+ &.k-focus {
115
+ @include box-shadow( $kendo-input-invalid-shadow );
116
+ }
117
+ &:focus-within {
118
+ @include box-shadow( $kendo-input-invalid-shadow );
119
+ }
120
+ }
42
121
  }
122
+
43
123
  }