@progress/kendo-theme-core 14.7.0-dev.6 → 14.7.0-dev.7

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-theme-core",
3
3
  "description": "A collection of functions and mixins used for building themes for Kendo UI",
4
- "version": "14.7.0-dev.6",
4
+ "version": "14.7.0-dev.7",
5
5
  "author": "Progress",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
@@ -1,4 +1,5 @@
1
1
  @use "../../color-system/_constants.scss" as *;
2
+ @use "../../z-index/index.scss" as *;
2
3
  @use "./variables.scss" as *;
3
4
 
4
5
  @mixin kendo-listbox--layout-base() {
@@ -20,7 +21,45 @@
20
21
 
21
22
  .k-listbox-actions {
22
23
  display: flex;
24
+ flex: none;
23
25
  gap: $kendo-listbox-button-spacing;
26
+ position: relative;
27
+ min-width: 0;
28
+ min-height: 0;
29
+
30
+ &.k-listbox-actions-scrollable {
31
+ &::before,
32
+ &::after {
33
+ content: "";
34
+ aspect-ratio: 1;
35
+ position: absolute;
36
+ z-index: k-z-index("base", 3);
37
+ pointer-events: none;
38
+ }
39
+
40
+ &.k-listbox-actions-scrollable-start::before,
41
+ &.k-listbox-actions-scrollable-end::after {
42
+ display: none;
43
+ }
44
+ }
45
+ }
46
+
47
+ .k-listbox-actions-items {
48
+ padding: $kendo-listbox-actions-scroll-padding;
49
+ display: flex;
50
+ flex: 1 1 auto;
51
+ gap: $kendo-listbox-button-spacing;
52
+ min-width: 0;
53
+ min-height: 0;
54
+ scrollbar-width: none;
55
+
56
+ &::-webkit-scrollbar {
57
+ display: none;
58
+ }
59
+
60
+ > * {
61
+ flex-shrink: 0;
62
+ }
24
63
  }
25
64
 
26
65
  &.k-listbox-actions-left,
@@ -29,6 +68,28 @@
29
68
 
30
69
  .k-listbox-actions {
31
70
  flex-direction: column;
71
+
72
+ &.k-listbox-actions-scrollable {
73
+ &::before,
74
+ &::after {
75
+ height: 15px;
76
+ width: 100%;
77
+ }
78
+
79
+ &::before {
80
+ inset-block-start: 0;
81
+ }
82
+
83
+ &::after {
84
+ inset-block-end: 0;
85
+ }
86
+ }
87
+ }
88
+
89
+ .k-listbox-actions-items {
90
+ flex-direction: column;
91
+ overflow-x: hidden;
92
+ overflow-y: auto;
32
93
  }
33
94
  }
34
95
 
@@ -42,6 +103,29 @@
42
103
 
43
104
  .k-listbox-actions {
44
105
  flex-direction: row;
106
+
107
+ &.k-listbox-actions-scrollable {
108
+ &::before,
109
+ &::after {
110
+ inset-block-start: 0;
111
+ height: 100%;
112
+ width: 15px;
113
+ }
114
+
115
+ &::before {
116
+ inset-inline-start: 0;
117
+ }
118
+
119
+ &::after {
120
+ inset-inline-end: 0;
121
+ }
122
+ }
123
+ }
124
+
125
+ .k-listbox-actions-items {
126
+ flex-direction: row;
127
+ overflow-x: auto;
128
+ overflow-y: hidden;
45
129
  }
46
130
  }
47
131
 
@@ -16,6 +16,44 @@
16
16
  .k-drop-hint {
17
17
  border-block-start-color: k-color(primary);
18
18
  }
19
+
20
+ &.k-listbox-actions-left,
21
+ &.k-listbox-actions-right {
22
+ .k-listbox-actions-scrollable {
23
+ &::before {
24
+ background: linear-gradient(180deg, $kendo-listbox-actions-scroll-overlay);
25
+ }
26
+
27
+ &::after {
28
+ background: linear-gradient(0deg, $kendo-listbox-actions-scroll-overlay);
29
+ }
30
+ }
31
+ }
32
+
33
+ &.k-listbox-actions-top,
34
+ &.k-listbox-actions-bottom {
35
+ .k-listbox-actions-scrollable {
36
+ &::before {
37
+ background: linear-gradient(90deg, $kendo-listbox-actions-scroll-overlay);
38
+ }
39
+
40
+ &::after {
41
+ background: linear-gradient(270deg, $kendo-listbox-actions-scroll-overlay);
42
+ }
43
+ }
44
+ }
45
+ }
46
+
47
+ // RTL: reverse gradient directions for horizontal scrolling
48
+ :is(.k-rtl, [dir="rtl"]) .k-listbox:is(.k-listbox-actions-top, .k-listbox-actions-bottom) .k-listbox-actions-scrollable,
49
+ .k-listbox:is(.k-listbox-actions-top, .k-listbox-actions-bottom):is(.k-rtl, [dir="rtl"]) .k-listbox-actions-scrollable {
50
+ &::before {
51
+ background: linear-gradient(270deg, $kendo-listbox-actions-scroll-overlay);
52
+ }
53
+
54
+ &::after {
55
+ background: linear-gradient(90deg, $kendo-listbox-actions-scroll-overlay);
56
+ }
19
57
  }
20
58
 
21
59
  }
@@ -15,6 +15,9 @@ $kendo-listbox-border: null !default;
15
15
 
16
16
  $kendo-listbox-drop-hint-width: null !default;
17
17
 
18
+ $kendo-listbox-actions-scroll-padding: null !default;
19
+ $kendo-listbox-actions-scroll-overlay: null !default;
20
+
18
21
  $kendo-listbox-scroller-padding-x: null !default;
19
22
  $kendo-listbox-scroller-padding-y: null !default;
20
23
  $kendo-listbox-border-radius: null !default;