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

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 (44) hide show
  1. package/dist/all.css +1 -1
  2. package/dist/meta/sassdoc-data.json +186 -72
  3. package/dist/meta/sassdoc-raw-data.json +82 -32
  4. package/dist/meta/variables.json +10 -8
  5. package/package.json +2 -2
  6. package/scss/components/bubble/_layout.scss +1 -2
  7. package/scss/components/chat/_layout.scss +87 -131
  8. package/scss/components/chat/_theme.scss +25 -16
  9. package/scss/components/chat/_variables.scss +12 -18
  10. package/scss/components/dropdowntree/_layout.scss +7 -7
  11. package/scss/components/dropdowntree/_variables.scss +3 -0
  12. package/scss/components/file-box/_layout.scss +122 -0
  13. package/scss/components/file-box/_theme.scss +22 -0
  14. package/scss/components/file-box/_variables.scss +19 -0
  15. package/scss/components/grid/_layout.scss +43 -0
  16. package/scss/components/grid/_theme.scss +9 -0
  17. package/scss/components/grid/_variables.scss +4 -0
  18. package/scss/components/icons/_theme.scss +7 -1
  19. package/scss/components/icons/_variables.scss +2 -0
  20. package/scss/components/list/_layout.scss +63 -3
  21. package/scss/components/list/_theme.scss +8 -0
  22. package/scss/components/list/_variables.scss +11 -0
  23. package/scss/components/prompt-box/_layout.scss +63 -0
  24. package/scss/components/prompt-box/_theme.scss +7 -0
  25. package/scss/components/prompt-box/_variables.scss +11 -0
  26. package/scss/components/segmented-control/_layout.scss +85 -0
  27. package/scss/components/segmented-control/_theme.scss +38 -0
  28. package/scss/components/segmented-control/_variables.scss +73 -0
  29. package/scss/components/smart-box/_layout.scss +85 -0
  30. package/scss/components/smart-box/_theme.scss +5 -0
  31. package/scss/components/smart-box/_variables.scss +40 -0
  32. package/scss/components/spreadsheet/_layout.scss +1 -0
  33. package/scss/components/suggestion/_layout.scss +33 -11
  34. package/scss/components/suggestion/_theme.scss +23 -0
  35. package/scss/components/suggestion/_variables.scss +3 -0
  36. package/scss/components/tabstrip/_layout.scss +30 -0
  37. package/scss/components/tabstrip/_theme.scss +8 -0
  38. package/scss/components/toolbar/_layout.scss +3 -0
  39. package/scss/components/toolbar/_variables.scss +1 -0
  40. package/scss/components/treeview/_layout.scss +14 -10
  41. package/scss/components/treeview/_theme.scss +7 -6
  42. package/scss/components/treeview/_variables.scss +4 -0
  43. package/scss/elevation/index.scss +1 -2
  44. package/scss/motion/index.scss +1 -0
@@ -0,0 +1,40 @@
1
+ // Smart box
2
+ $kendo-smart-box-default-size: null !default;
3
+ $kendo-smart-box-default-roundness: null !default;
4
+
5
+ $kendo-smart-box-roundness: ( "none", "sm", "md", "lg", "full" ) !default;
6
+
7
+ $kendo-smart-box-suffix-spacing: null !default;
8
+
9
+ $kendo-smart-box-sm-padding-x: null !default;
10
+ $kendo-smart-box-md-padding-x: null !default;
11
+ $kendo-smart-box-lg-padding-x: null !default;
12
+
13
+ $kendo-smart-box-sm-prefix-margin-x: null !default;
14
+ $kendo-smart-box-md-prefix-margin-x: null !default;
15
+ $kendo-smart-box-lg-prefix-margin-x: null !default;
16
+
17
+ $kendo-smart-box-popup-padding-inline: null !default;
18
+ $kendo-smart-box-popup-padding-block: null !default;
19
+ $kendo-smart-box-popup-border-radius: null !default;
20
+ $kendo-smart-box-popup-spacing: null !default;
21
+
22
+ $kendo-smart-box-popup-segmented-control-margin: null !default;
23
+
24
+ /// The sizes map for the Smart box components.
25
+ /// @group smart-box
26
+ $kendo-smart-box-sizes: (
27
+ sm: (
28
+ padding-x: $kendo-smart-box-sm-padding-x,
29
+ prefix-margin-x: $kendo-smart-box-sm-prefix-margin-x,
30
+ ),
31
+ md: (
32
+ padding-x: $kendo-smart-box-md-padding-x,
33
+ prefix-margin-x: $kendo-smart-box-md-prefix-margin-x,
34
+ ),
35
+ lg: (
36
+ padding-x: $kendo-smart-box-lg-padding-x,
37
+ prefix-margin-x: $kendo-smart-box-lg-prefix-margin-x,
38
+
39
+ )
40
+ ) !default;
@@ -610,6 +610,7 @@
610
610
  cursor: pointer;
611
611
 
612
612
  > .k-icon,
613
+ > .k-icon-wrapper-host,
613
614
  > .k-expander-indicator {
614
615
  margin-inline-end: $kendo-spreadsheet-filter-padding;
615
616
  }
@@ -2,6 +2,7 @@
2
2
  @use "../../mixins/index.scss" as *;
3
3
  @use "../../motion/index.scss" as *;
4
4
  @use "../../spacing/index.scss" as *;
5
+ @use "../../z-index/index.scss" as *;
5
6
 
6
7
  @mixin kendo-suggestion--layout-base() {
7
8
  .k-suggestion-scrollwrap {
@@ -10,16 +11,7 @@
10
11
  display: flex;
11
12
  align-items: center;
12
13
  position: relative;
13
- gap: $kendo-suggestion-spacing;
14
-
15
- .k-suggestion-group {
16
- padding-block: calc( #{$kendo-suggestion-padding-y} / 2 );
17
- flex: 1 1 auto;
18
- flex-wrap: nowrap;
19
- overflow-x: auto;
20
- scrollbar-width: none;
21
- white-space: nowrap;
22
- }
14
+ gap: k-spacing(.5);
23
15
  }
24
16
 
25
17
  .k-suggestion-group {
@@ -27,12 +19,20 @@
27
19
  flex-wrap: wrap;
28
20
  gap: $kendo-suggestion-spacing;
29
21
  align-self: normal;
22
+ overflow: hidden;
30
23
 
31
24
  &.k-suggestion-group-scrollable {
32
25
  flex-wrap: nowrap;
26
+ }
27
+
28
+ .k-suggestions-scroll {
29
+ padding-block: calc( #{$kendo-suggestion-padding-y} / 2 );
30
+ display: flex;
33
31
  overflow-x: auto;
34
32
  scrollbar-width: none;
35
- padding-block: calc( #{$kendo-suggestion-padding-y} / 2 );
33
+ flex-wrap: nowrap;
34
+ white-space: nowrap;
35
+ gap: $kendo-suggestion-spacing;
36
36
  }
37
37
  }
38
38
 
@@ -44,6 +44,11 @@
44
44
  }
45
45
  }
46
46
 
47
+ .k-suggestion-group-scrollable,
48
+ .k-suggestion-scrollwrap .k-suggestion-group {
49
+ position: relative;
50
+ }
51
+
47
52
  .k-suggestion {
48
53
  @include border-radius( $kendo-suggestion-border-radius );
49
54
  max-width: 100%;
@@ -52,6 +57,7 @@
52
57
  box-sizing: border-box;
53
58
  border-width: $kendo-suggestion-border-width;
54
59
  border-style: $kendo-suggestion-border-style;
60
+ font-size: $kendo-suggestion-font-size;
55
61
  line-height: $kendo-suggestion-line-height;
56
62
  flex: 0 0 auto;
57
63
  transition: background-color k-transition(rapid), box-shadow k-transition(rapid);
@@ -60,6 +66,22 @@
60
66
  white-space: normal;
61
67
  }
62
68
 
69
+ .k-suggestion-group-scrollable-end::before,
70
+ .k-suggestion-group-scrollable-start::after,
71
+ .k-suggestion-scrollwrap .k-suggestion-group-scrollable-end::before,
72
+ .k-suggestion-scrollwrap .k-suggestion-group-scrollable-start::after {
73
+ content: '';
74
+ aspect-ratio: .3;
75
+ position: absolute;
76
+ top: 0;
77
+ z-index: k-z-index("base", 3);
78
+ height: calc( #{$kendo-suggestion-font-size} * #{$kendo-suggestion-line-height} + #{$kendo-suggestion-padding-y} * 2 + #{$kendo-suggestion-padding-y} + #{$kendo-suggestion-border-width} * 2);
79
+ }
80
+
81
+ .k-suggestion-group-scrollable-start::after,
82
+ .k-suggestion-scrollwrap .k-suggestion-group-scrollable-start::after {
83
+ inset-inline-end: 0;
84
+ }
63
85
 
64
86
  }
65
87
 
@@ -53,4 +53,27 @@
53
53
  }
54
54
  }
55
55
 
56
+ .k-suggestion-group-scrollable-end::before,
57
+ .k-suggestion-scrollwrap .k-suggestion-group-scrollable-end::before {
58
+ background: linear-gradient(270deg, $kendo-suggestion-scroll-gradient);
59
+ }
60
+
61
+ .k-suggestion-group-scrollable-start::after,
62
+ .k-suggestion-scrollwrap .k-suggestion-group-scrollable-start::after {
63
+ background: linear-gradient(90deg, $kendo-suggestion-scroll-gradient);
64
+ }
65
+
66
+ .k-rtl,
67
+ [dir="rtl"] {
68
+ .k-suggestion-group-scrollable-end::before,
69
+ .k-suggestion-scrollwrap .k-suggestion-group-scrollable-end::before {
70
+ background: linear-gradient(90deg, $kendo-suggestion-scroll-gradient);
71
+ }
72
+
73
+ .k-suggestion-group-scrollable-start::after,
74
+ .k-suggestion-scrollwrap .k-suggestion-group-scrollable-start::after {
75
+ background: linear-gradient(270deg, $kendo-suggestion-scroll-gradient);
76
+ }
77
+ }
78
+
56
79
  }
@@ -5,6 +5,7 @@ $kendo-suggestion-spacing: null !default;
5
5
  $kendo-suggestion-border-width: null !default;
6
6
  $kendo-suggestion-border-style: null !default;
7
7
 
8
+ $kendo-suggestion-font-size: null !default;
8
9
  $kendo-suggestion-line-height: null !default;
9
10
  $kendo-suggestion-border-radius: null !default;
10
11
 
@@ -17,3 +18,5 @@ $kendo-suggestion-focus-shadow-color: null !default;
17
18
  $kendo-suggestion-theme-colors: ("base", "primary", "secondary") !default;
18
19
 
19
20
  $kendo-suggestion-default-theme-color: null !default;
21
+
22
+ $kendo-suggestion-scroll-gradient: null !default;
@@ -6,6 +6,8 @@
6
6
  @use "./_variables.scss" as *;
7
7
  @use "../../z-index/index.scss" as *;
8
8
  @use "../../motion/index.scss" as *;
9
+ @use "../../spacing/index.scss" as *;
10
+ @use "../../typography/index.scss" as *;
9
11
 
10
12
  @mixin kendo-tabstrip--layout-base() {
11
13
 
@@ -299,6 +301,34 @@
299
301
  }
300
302
 
301
303
 
304
+ // Overflow
305
+ .k-tabstrip-overflow {
306
+ > .k-tabstrip-items-wrapper {
307
+ > .k-tabstrip-items {
308
+ flex-wrap: nowrap;
309
+ white-space: nowrap;
310
+ }
311
+ }
312
+
313
+ .k-tabstrip-overflow-button {
314
+ flex-shrink: 0;
315
+ }
316
+ }
317
+
318
+
319
+ // Actions container
320
+ .k-tabstrip-actions {
321
+ flex-shrink: 0;
322
+ gap: k-spacing(0.5);
323
+ align-items: center;
324
+
325
+ > .k-separator-vertical {
326
+ height: $kendo-line-height-em;
327
+ align-self: center;
328
+ }
329
+ }
330
+
331
+
302
332
  // Tabstrip orientation
303
333
  .k-tabstrip-horizontal {
304
334
  flex-direction: row;
@@ -76,6 +76,14 @@
76
76
  }
77
77
 
78
78
 
79
+ // Actions
80
+ .k-tabstrip-actions {
81
+ > .k-separator {
82
+ border-color: $kendo-tabstrip-border;
83
+ }
84
+ }
85
+
86
+
79
87
  // Content
80
88
  .k-tabstrip-content,
81
89
  .k-tabstrip > .k-content {
@@ -91,6 +91,9 @@
91
91
  .k-color-picker {
92
92
  width: min-content;
93
93
  }
94
+ .k-smart-box {
95
+ min-width: $kendo-toolbar-smart-box-min-width;
96
+ }
94
97
 
95
98
 
96
99
  // Overflow anchor
@@ -47,6 +47,7 @@ $kendo-toolbar-flat-scroll-overlay: null !default;
47
47
  $kendo-toolbar-separator-border: null !default;
48
48
 
49
49
  $kendo-toolbar-input-width: null !default;
50
+ $kendo-toolbar-smart-box-min-width: null !default;
50
51
 
51
52
  $kendo-toolbar-item-shadow: null !default;
52
53
 
@@ -3,6 +3,7 @@
3
3
  @use "../../mixins/index.scss" as *;
4
4
  @use "../../functions/index.scss" as *;
5
5
  @use "../../spacing/index.scss" as *;
6
+ @use "../../border-radii/index.scss" as *;
6
7
  @use "../../motion/index.scss" as *;
7
8
  @use "./variables.scss" as *;
8
9
  @use "../icons/_variables.scss" as *;
@@ -12,7 +13,7 @@
12
13
 
13
14
  // Treeview
14
15
  .k-treeview {
15
- padding: 0;
16
+ border-radius: $kendo-treeview-border-radius;
16
17
  border-width: 0;
17
18
  background: none;
18
19
  box-sizing: border-box;
@@ -72,6 +73,11 @@
72
73
 
73
74
  // Treeview group
74
75
  .k-treeview-group {
76
+ display: flex;
77
+ flex-direction: column;
78
+ gap: $kendo-treeview-gap;
79
+ min-width: fit-content;
80
+
75
81
  margin: 0;
76
82
  padding: 0;
77
83
  list-style: none;
@@ -83,17 +89,21 @@
83
89
  &.ng-animating {
84
90
  overflow: hidden;
85
91
  }
92
+
93
+ .k-treeview-group {
94
+ margin-top: $kendo-treeview-gap;
95
+ }
86
96
  }
87
97
 
88
98
 
89
99
  // Treeview wrappers
90
- .k-treeview-top,
91
- .k-treeview-mid,
92
- .k-treeview-bot {
100
+ .k-treeview-item-content {
101
+ @include border-radius( $kendo-treeview-item-border-radius );
93
102
  display: flex;
94
103
  flex-direction: row;
95
104
  align-items: center;
96
105
  align-content: center;
106
+ padding-inline-start: calc( var(--kendo-treeview-level, 0) * #{$kendo-treeview-indent} );
97
107
  }
98
108
 
99
109
 
@@ -102,7 +112,6 @@
102
112
  outline-style: none;
103
113
  margin: 0;
104
114
  padding: 0;
105
- padding-inline-start: $kendo-treeview-indent;
106
115
  border-width: 0;
107
116
  display: block;
108
117
  }
@@ -138,7 +147,6 @@
138
147
 
139
148
  // Treeview leaf
140
149
  .k-treeview-leaf {
141
- @include border-radius( $kendo-treeview-item-border-radius );
142
150
  padding-block: $kendo-treeview-md-item-padding-y;
143
151
  padding-inline: $kendo-treeview-md-item-padding-x;
144
152
  border: $kendo-treeview-item-border-width solid transparent;
@@ -155,10 +163,6 @@
155
163
  .k-sprite {
156
164
  margin-inline-end: $kendo-icon-spacing;
157
165
  }
158
-
159
- &.k-focus {
160
- z-index: k-z-index("base", 1);
161
- }
162
166
  }
163
167
 
164
168
 
@@ -13,12 +13,8 @@
13
13
  }
14
14
 
15
15
 
16
- // Treeview item
17
- .k-treeview-item {}
18
-
19
-
20
- // Treeview leaf
21
- .k-treeview-leaf {
16
+ // Treeview wrappers
17
+ .k-treeview-item-content {
22
18
 
23
19
  // Hover state
24
20
  &:hover,
@@ -45,6 +41,11 @@
45
41
  $kendo-treeview-item-selected-border,
46
42
  $kendo-treeview-item-selected-gradient
47
43
  );
44
+
45
+ &:hover,
46
+ &.k-hover {
47
+ background-color: $kendo-treeview-item-selected-hover-bg;
48
+ }
48
49
  }
49
50
  }
50
51
 
@@ -1,6 +1,8 @@
1
1
  // TreeView
2
2
 
3
3
  $kendo-treeview-default-size: null !default;
4
+ $kendo-treeview-gap: null !default;
5
+ $kendo-treeview-border-radius: null !default;
4
6
 
5
7
  $kendo-treeview-font-family: null !default;
6
8
  $kendo-treeview-font-size: null !default;
@@ -74,6 +76,8 @@ $kendo-treeview-item-selected-text: null !default;
74
76
  $kendo-treeview-item-selected-border: null !default;
75
77
  $kendo-treeview-item-selected-gradient: null !default;
76
78
 
79
+ $kendo-treeview-item-selected-hover-bg: null !default;
80
+
77
81
  $kendo-treeview-item-focus-shadow: null !default;
78
82
 
79
83
  $kendo-treeview-loadmore-bg: null !default;
@@ -2,8 +2,7 @@
2
2
 
3
3
  $default-elevation: (
4
4
  1: (
5
- 0 2px 3px rgba(0, 0, 0, .04),
6
- 0 4px 16px rgba(0, 0, 0, .12)
5
+ 0 2px 3px rgba(0, 0, 0, .04)
7
6
  ),
8
7
  2: (
9
8
  0 4px 6px rgba(0, 0, 0, .06),
@@ -9,6 +9,7 @@ $default-easings: (
9
9
  sharp: cubic-bezier(0.75, 0, 0.25, 1),
10
10
  bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55),
11
11
  elastic: cubic-bezier(0.5, -0.5, 0.5, 1.5),
12
+ stretchy: cubic-bezier(.07, 1.81, .3, .81)
12
13
  ) !default;
13
14
 
14
15
  $default-durations: (