@progress/kendo-theme-fluent 11.1.0-dev.7 → 11.1.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.
- package/dist/all.css +1 -1
- package/dist/fluent-main-dark.css +1 -1
- package/dist/fluent-main.css +1 -1
- package/dist/meta/sassdoc-data.json +1094 -68
- package/dist/meta/sassdoc-raw-data.json +504 -29
- package/dist/meta/variables.json +88 -4
- package/lib/swatches/all.json +1 -1
- package/lib/swatches/fluent-main-dark.json +1 -1
- package/lib/swatches/fluent-main.json +1 -1
- package/package.json +4 -4
- package/scss/button/_layout.scss +17 -0
- package/scss/button/_variables.scss +4 -0
- package/scss/index.scss +3 -0
- package/scss/speech-to-text-button/_layout.scss +1 -13
- package/scss/speech-to-text-button/_variables.scss +1 -3
- package/scss/suggestion/_index.scss +16 -0
- package/scss/suggestion/_layout.scss +43 -0
- package/scss/suggestion/_theme.scss +79 -0
- package/scss/suggestion/_variables.scss +70 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-theme-fluent",
|
|
3
3
|
"description": "A css variables based theme for Kendo UI that follows the Fluent design system guidelines.",
|
|
4
|
-
"version": "11.1.0
|
|
4
|
+
"version": "11.1.0",
|
|
5
5
|
"author": "Progress",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"keywords": [
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@progress/kendo-svg-icons": "^4.1.0",
|
|
57
|
-
"@progress/kendo-theme-core": "11.1.0
|
|
58
|
-
"@progress/kendo-theme-utils": "11.1.0
|
|
57
|
+
"@progress/kendo-theme-core": "11.1.0",
|
|
58
|
+
"@progress/kendo-theme-utils": "11.1.0"
|
|
59
59
|
},
|
|
60
60
|
"directories": {
|
|
61
61
|
"doc": "docs",
|
|
62
62
|
"lib": "lib"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "e5cc0b3dc8b0084b8b8832f7c25ab7a92751b5c6"
|
|
65
65
|
}
|
package/scss/button/_layout.scss
CHANGED
|
@@ -302,6 +302,23 @@
|
|
|
302
302
|
}
|
|
303
303
|
}
|
|
304
304
|
|
|
305
|
+
// Button generating state
|
|
306
|
+
.k-button.k-generating {
|
|
307
|
+
animation: k-button-pulsing 1.5s ease-in-out 0.5s infinite;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
@keyframes k-button-pulsing {
|
|
311
|
+
0% {
|
|
312
|
+
opacity: 1;
|
|
313
|
+
}
|
|
314
|
+
50% {
|
|
315
|
+
opacity: $kendo-button-pulsing-opacity;
|
|
316
|
+
}
|
|
317
|
+
100% {
|
|
318
|
+
opacity: 1;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
305
322
|
|
|
306
323
|
// Button group
|
|
307
324
|
.k-button-group {
|
|
@@ -119,6 +119,10 @@ $kendo-button-link-focus-offset: 0 !default;
|
|
|
119
119
|
/// @group button
|
|
120
120
|
$kendo-button-link-focus-outline-width: 1px !default;
|
|
121
121
|
|
|
122
|
+
/// The opacity of the pulsing animation for the generating Button.
|
|
123
|
+
/// @group button
|
|
124
|
+
$kendo-button-pulsing-opacity: .6 !default;
|
|
125
|
+
|
|
122
126
|
// The theme variations for the Button.
|
|
123
127
|
|
|
124
128
|
$kendo-button-brand-colors: (
|
package/scss/index.scss
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
@forward "./stacklayout/_index.scss";
|
|
16
16
|
@forward "./virtual-scroller/_index.scss";
|
|
17
17
|
@forward "./no-data/_index.scss";
|
|
18
|
+
@forward "./suggestion/_index.scss";
|
|
18
19
|
@forward "./avatar/_index.scss";
|
|
19
20
|
@forward "./badge/_index.scss";
|
|
20
21
|
@forward "./color-preview/_index.scss";
|
|
@@ -143,6 +144,7 @@
|
|
|
143
144
|
@use "./table/index.scss" as *;
|
|
144
145
|
@use "./virtual-scroller/index.scss" as *;
|
|
145
146
|
@use "./no-data/index.scss" as *;
|
|
147
|
+
@use "./suggestion/index.scss" as *;
|
|
146
148
|
@use "./column-menu/_index.scss" as *;
|
|
147
149
|
|
|
148
150
|
|
|
@@ -320,6 +322,7 @@
|
|
|
320
322
|
@include kendo-table--styles();
|
|
321
323
|
@include kendo-virtual-scroller--styles();
|
|
322
324
|
@include kendo-no-data--styles();
|
|
325
|
+
@include kendo-suggestion--styles();
|
|
323
326
|
@include kendo-column-menu--styles();
|
|
324
327
|
|
|
325
328
|
|
|
@@ -4,19 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
.k-speech-to-text-button {
|
|
6
6
|
&.k-listening {
|
|
7
|
-
animation: k-
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@keyframes k-speech-to-text-button-listening {
|
|
12
|
-
0% {
|
|
13
|
-
opacity: 1;
|
|
14
|
-
}
|
|
15
|
-
50% {
|
|
16
|
-
opacity: $kendo-speech-to-text-button-listening-opacity;
|
|
17
|
-
}
|
|
18
|
-
100% {
|
|
19
|
-
opacity: 1;
|
|
7
|
+
animation: k-button-pulsing 1.5s ease-in-out 0.5s infinite;
|
|
20
8
|
}
|
|
21
9
|
}
|
|
22
10
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Dependencies
|
|
2
|
+
@use "../core/_index.scss" as *;
|
|
3
|
+
|
|
4
|
+
// Component
|
|
5
|
+
@forward "./_variables.scss";
|
|
6
|
+
@use "./_layout.scss" as *;
|
|
7
|
+
@use "./_theme.scss" as *;
|
|
8
|
+
|
|
9
|
+
// Expose
|
|
10
|
+
@mixin kendo-suggestion--styles() {
|
|
11
|
+
@include import-once( "suggestion" ) {
|
|
12
|
+
@include core-styles();
|
|
13
|
+
@include kendo-suggestion--layout();
|
|
14
|
+
@include kendo-suggestion--theme();
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@use "./_variables.scss" as *;
|
|
2
|
+
@use "../core/_index.scss" as *;
|
|
3
|
+
|
|
4
|
+
@mixin kendo-suggestion--layout() {
|
|
5
|
+
.k-suggestion-scrollwrap {
|
|
6
|
+
width: 100%;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
position: relative;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
gap: $kendo-suggestion-spacing;
|
|
13
|
+
|
|
14
|
+
.k-suggestion-group {
|
|
15
|
+
padding-block: $kendo-suggestion-padding-y;
|
|
16
|
+
flex: 1 1 auto;
|
|
17
|
+
flex-wrap: nowrap;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.k-suggestion-group {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-wrap: wrap;
|
|
26
|
+
gap: $kendo-suggestion-spacing;
|
|
27
|
+
|
|
28
|
+
}
|
|
29
|
+
.k-suggestion {
|
|
30
|
+
@include border-radius( $kendo-suggestion-border-radius );
|
|
31
|
+
padding-block: $kendo-suggestion-padding-y;
|
|
32
|
+
padding-inline: $kendo-suggestion-padding-x;
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
border-width: $kendo-suggestion-border-width;
|
|
35
|
+
border-style: $kendo-suggestion-border-style;
|
|
36
|
+
line-height: $kendo-suggestion-line-height;
|
|
37
|
+
flex: 0 0 auto;
|
|
38
|
+
transition-property: color, background-color, border-color;
|
|
39
|
+
transition-duration: .2s;
|
|
40
|
+
transition-timing-function: ease-in-out;
|
|
41
|
+
outline: none;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
@use "./_variables.scss" as *;
|
|
2
|
+
@use "../core/_index.scss" as *;
|
|
3
|
+
|
|
4
|
+
@mixin kendo-suggestion--theme() {
|
|
5
|
+
.k-suggestion {
|
|
6
|
+
@include fill(
|
|
7
|
+
$kendo-suggestion-text,
|
|
8
|
+
$kendo-suggestion-bg,
|
|
9
|
+
$kendo-suggestion-border
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
&:hover,
|
|
13
|
+
&.k-hover {
|
|
14
|
+
@include fill(
|
|
15
|
+
$kendo-suggestion-hover-text,
|
|
16
|
+
$kendo-suggestion-hover-bg,
|
|
17
|
+
$kendo-suggestion-hover-border
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&:active,
|
|
22
|
+
&.k-active {
|
|
23
|
+
@include fill(
|
|
24
|
+
$kendo-suggestion-active-text,
|
|
25
|
+
$kendo-suggestion-active-bg,
|
|
26
|
+
$kendo-suggestion-active-border
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:focus,
|
|
31
|
+
&.k-focus {
|
|
32
|
+
outline: 1px solid k-color(surface);
|
|
33
|
+
outline-offset: -2px;
|
|
34
|
+
box-shadow: inset 0 0 $kendo-suggestion-focus-shadow-blur $kendo-suggestion-focus-shadow-spread $kendo-suggestion-focus-shadow-color;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@each $name, $props in $kendo-suggestion-theme-colors {
|
|
39
|
+
|
|
40
|
+
$_suggestion-text: k-color(#{$name}-on-subtle);
|
|
41
|
+
$_suggestion-bg: k-color(#{$name}-subtle);
|
|
42
|
+
$_suggestion-border: k-color(#{$name}-emphasis);
|
|
43
|
+
|
|
44
|
+
$_suggestion-hover-text: k-color(#{$name}-on-subtle);
|
|
45
|
+
$_suggestion-hover-bg: k-color(#{$name}-subtle-hover);
|
|
46
|
+
$_suggestion-hover-border: k-color(#{$name}-emphasis);
|
|
47
|
+
|
|
48
|
+
$_suggestion-active-text: k-color(#{$name}-on-subtle);
|
|
49
|
+
$_suggestion-active-bg: k-color(#{$name}-subtle-active);
|
|
50
|
+
$_suggestion-active-border: k-color(#{$name}-emphasis);
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
.k-suggestion-#{$name} {
|
|
54
|
+
@include fill(
|
|
55
|
+
$_suggestion-text,
|
|
56
|
+
$_suggestion-bg,
|
|
57
|
+
$_suggestion-border
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
&:hover,
|
|
61
|
+
&.k-hover {
|
|
62
|
+
@include fill(
|
|
63
|
+
$_suggestion-hover-text,
|
|
64
|
+
$_suggestion-hover-bg,
|
|
65
|
+
$_suggestion-hover-border
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:active,
|
|
70
|
+
&.k-active {
|
|
71
|
+
@include fill(
|
|
72
|
+
$_suggestion-active-text,
|
|
73
|
+
$_suggestion-active-bg,
|
|
74
|
+
$_suggestion-active-border
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
@use "../core/_index.scss" as *;
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
/// The vertical padding of the Suggestion wrapper.
|
|
5
|
+
/// @group suggestion
|
|
6
|
+
$kendo-suggestion-padding-y: k-spacing(2) !default;
|
|
7
|
+
/// The horizontal padding of the Suggestion wrapper.
|
|
8
|
+
/// @group suggestion
|
|
9
|
+
$kendo-suggestion-padding-x: k-spacing(3) !default;
|
|
10
|
+
/// The horizontal padding of the Suggestion wrapper.
|
|
11
|
+
/// @group suggestion
|
|
12
|
+
$kendo-suggestion-spacing: k-spacing(2) !default;
|
|
13
|
+
/// The border width of the Suggestion.
|
|
14
|
+
/// @group suggestion
|
|
15
|
+
$kendo-suggestion-border-width: 1px !default;
|
|
16
|
+
/// The border style of the Suggestion.
|
|
17
|
+
/// @group suggestion
|
|
18
|
+
$kendo-suggestion-border-style: solid !default;
|
|
19
|
+
|
|
20
|
+
/// The line height of the Suggestion.
|
|
21
|
+
/// @group suggestion
|
|
22
|
+
$kendo-suggestion-line-height: var( --kendo-line-height, normal ) !default;
|
|
23
|
+
/// The border radius of the Suggestion.
|
|
24
|
+
/// @group suggestion
|
|
25
|
+
$kendo-suggestion-border-radius: k-border-radius(xxl) !default;
|
|
26
|
+
|
|
27
|
+
/// The background color of the Suggestion.
|
|
28
|
+
/// @group suggestion
|
|
29
|
+
$kendo-suggestion-bg: k-color(base-subtle) !default;
|
|
30
|
+
/// The text color of the Suggestion.
|
|
31
|
+
/// @group suggestion
|
|
32
|
+
$kendo-suggestion-text: k-color(base-on-subtle) !default;
|
|
33
|
+
/// The border color of the Suggestion.
|
|
34
|
+
/// @group suggestion
|
|
35
|
+
$kendo-suggestion-border: k-color(base-emphasis) !default;
|
|
36
|
+
|
|
37
|
+
/// The background color of the hovered Suggestion.
|
|
38
|
+
/// @group suggestion
|
|
39
|
+
$kendo-suggestion-hover-bg: k-color(base-subtle-hover) !default;
|
|
40
|
+
/// The text color of the hovered Suggestion.
|
|
41
|
+
/// @group suggestion
|
|
42
|
+
$kendo-suggestion-hover-text: k-color(base-on-subtle) !default;
|
|
43
|
+
/// The border color of the hovered Suggestion.
|
|
44
|
+
/// @group suggestion
|
|
45
|
+
$kendo-suggestion-hover-border: k-color(base-emphasis) !default;
|
|
46
|
+
|
|
47
|
+
/// The background color of the active Suggestion.
|
|
48
|
+
/// @group suggestion
|
|
49
|
+
$kendo-suggestion-active-bg: k-color(base-subtle-active) !default;
|
|
50
|
+
/// The text color of the active Suggestion.
|
|
51
|
+
/// @group suggestion
|
|
52
|
+
$kendo-suggestion-active-text: k-color(base-on-subtle) !default;
|
|
53
|
+
/// The border color of the active Suggestion.
|
|
54
|
+
/// @group suggestion
|
|
55
|
+
$kendo-suggestion-active-border: k-color(base-emphasis) !default;
|
|
56
|
+
|
|
57
|
+
/// The shadow blur of the focused Suggestion.
|
|
58
|
+
/// @group suggestion
|
|
59
|
+
$kendo-suggestion-focus-shadow-blur: 0 !default;
|
|
60
|
+
/// The shadow spread of the focused Suggestion.
|
|
61
|
+
/// @group suggestion
|
|
62
|
+
$kendo-suggestion-focus-shadow-spread: 2px !default;
|
|
63
|
+
/// The shadow color of the focused Suggestion.
|
|
64
|
+
/// @group suggestion
|
|
65
|
+
$kendo-suggestion-focus-shadow-color: k-color(border-alt) !default;
|
|
66
|
+
|
|
67
|
+
$kendo-suggestion-theme-colors: (
|
|
68
|
+
"primary": k-color(primary),
|
|
69
|
+
"secondary": k-color(secondary)
|
|
70
|
+
) !default;
|