@progress/kendo-theme-fluent 11.3.2 → 12.0.0-dev.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.
@@ -0,0 +1,92 @@
1
+ @use "../core/_index.scss" as *;
2
+
3
+ /// The border radius of the Bubble.
4
+ /// @group bubble
5
+ $kendo-bubble-border-radius: k-border-radius(xl) !default;
6
+ /// The small border radius of the Bubble.
7
+ /// @group bubble
8
+ $kendo-bubble-border-radius-sm: k-border-radius(none) !default;
9
+ /// The vertical padding of the Bubble.
10
+ /// @group bubble
11
+ $kendo-bubble-padding-y: k-spacing(2) !default;
12
+ /// The horizontal padding of the Bubble.
13
+ /// @group bubble
14
+ $kendo-bubble-padding-x: k-spacing(3) !default;
15
+ /// The border width of the Bubble.
16
+ /// @group bubble
17
+ $kendo-bubble-border-width: 1px !default;
18
+ /// The border style of the Bubble.
19
+ /// @group bubble
20
+ $kendo-bubble-border-style: solid !default;
21
+ /// The line height of the Bubble.
22
+ /// @group bubble
23
+ $kendo-bubble-line-height: var( --kendo-line-height, normal ) !default;
24
+
25
+ /// The text color of the Bubble.
26
+ /// @group bubble
27
+ $kendo-bubble-text: k-color(base-on-subtle) !default;
28
+ /// The background color of the Bubble.
29
+ /// @group bubble
30
+ $kendo-bubble-bg: k-color(base-subtle) !default;
31
+ /// The border color of the Bubble.
32
+ /// @group bubble
33
+ $kendo-bubble-border: $kendo-bubble-bg !default;
34
+ /// The shadow of the Bubble.
35
+ /// @group bubble
36
+ $kendo-bubble-shadow: none !default;
37
+
38
+ /// The background color of the hover Bubble.
39
+ /// @group bubble
40
+ $kendo-bubble-hover-bg: k-color(base-subtle-hover) !default;
41
+ /// The border color of the active Bubble.
42
+ /// @group bubble
43
+ $kendo-bubble-hover-border: $kendo-bubble-hover-bg !default;
44
+ /// The background color of the active Bubble.
45
+ /// @group bubble
46
+ $kendo-bubble-active-bg: k-color(base-subtle-active) !default;
47
+ /// The border color of the active Bubble.
48
+ /// @group bubble
49
+ $kendo-bubble-active-border: $kendo-bubble-active-bg !default;
50
+ /// The background color of the focused Bubble.
51
+ /// @group bubble
52
+ $kendo-bubble-focus-bg: k-color(base-subtle) !default;
53
+ /// The border color of the focused Bubble.
54
+ /// @group bubble
55
+ $kendo-bubble-focus-border: $kendo-bubble-focus-bg !default;
56
+ /// The box shadow of the focused Bubble.
57
+ /// @group bubble
58
+ $kendo-bubble-focus-shadow: 0 0 0 2px color-mix(in srgb, k-color(on-app-surface) 8%, transparent) !default;
59
+
60
+ /// The spacing between content and icon in expandable Bubble.
61
+ /// @group bubble
62
+ $kendo-bubble-expandable-spacing: $kendo-bubble-padding-x !default;
63
+ /// The horizontal padding of the expandable Bubble icon.
64
+ /// @group bubble
65
+ $kendo-bubble-expandable-icon-padding-x: k-spacing(2.5) !default;
66
+ /// The vertical padding of the expandable Bubble icon.
67
+ /// @group bubble
68
+ $kendo-bubble-expandable-icon-padding-y: k-spacing(2.5) !default;
69
+
70
+ @forward "@progress/kendo-theme-core/scss/components/bubble/_variables.scss" with (
71
+ $kendo-bubble-border-radius: $kendo-bubble-border-radius,
72
+ $kendo-bubble-border-radius-sm: $kendo-bubble-border-radius-sm,
73
+ $kendo-bubble-padding-y: $kendo-bubble-padding-y,
74
+ $kendo-bubble-padding-x: $kendo-bubble-padding-x,
75
+ $kendo-bubble-border-width: $kendo-bubble-border-width,
76
+ $kendo-bubble-border-style: $kendo-bubble-border-style,
77
+ $kendo-bubble-line-height: $kendo-bubble-line-height,
78
+ $kendo-bubble-text: $kendo-bubble-text,
79
+ $kendo-bubble-bg: $kendo-bubble-bg,
80
+ $kendo-bubble-border: $kendo-bubble-border,
81
+ $kendo-bubble-shadow: $kendo-bubble-shadow,
82
+ $kendo-bubble-hover-bg: $kendo-bubble-hover-bg,
83
+ $kendo-bubble-hover-border: $kendo-bubble-hover-border,
84
+ $kendo-bubble-active-bg: $kendo-bubble-active-bg,
85
+ $kendo-bubble-active-border: $kendo-bubble-active-border,
86
+ $kendo-bubble-focus-bg: $kendo-bubble-focus-bg,
87
+ $kendo-bubble-focus-border: $kendo-bubble-focus-border,
88
+ $kendo-bubble-focus-shadow: $kendo-bubble-focus-shadow,
89
+ $kendo-bubble-expandable-spacing: $kendo-bubble-expandable-spacing,
90
+ $kendo-bubble-expandable-icon-padding-x: $kendo-bubble-expandable-icon-padding-x,
91
+ $kendo-bubble-expandable-icon-padding-y: $kendo-bubble-expandable-icon-padding-y
92
+ );
@@ -1,9 +1,17 @@
1
1
  // Dependencies
2
2
  @use "../core/_index.scss" as *;
3
3
  @use "../icons/_index.scss" as *;
4
- @use "../input/_index.scss" as *;
4
+ @use "../textarea/_index.scss" as *;
5
5
  @use "../card/_index.scss" as *;
6
+ @use "../appbar/_index.scss" as *;
6
7
  @use "../toolbar/_index.scss" as *;
8
+ @use "../bubble/_index.scss" as *;
9
+ @use "../upload/_index.scss" as *;
10
+ @use "../dropzone/_index.scss" as *;
11
+ @use "../avatar/_index.scss" as *;
12
+ @use "../speech-to-text-button/_index.scss" as *;
13
+ @use "../suggestion/_index.scss" as *;
14
+ @use "../skeleton/_index.scss" as *;
7
15
 
8
16
  // Component
9
17
  @forward "./_variables.scss";
@@ -14,10 +22,18 @@
14
22
  @mixin kendo-chat--styles() {
15
23
  @include import-once( "chat" ) {
16
24
  @include core-styles();
17
- @include kendo-input--styles();
25
+ @include kendo-textarea--styles();
18
26
  @include kendo-card--styles();
19
27
  @include kendo-icon--styles();
28
+ @include kendo-appbar--styles();
20
29
  @include kendo-toolbar--styles();
30
+ @include kendo-bubble--styles();
31
+ @include kendo-suggestion--styles();
32
+ @include kendo-skeleton--styles();
33
+ @include kendo-upload--styles();
34
+ @include kendo-dropzone--styles();
35
+ @include kendo-avatar--styles();
36
+ @include kendo-speech-to-text-button--styles();
21
37
  @include kendo-chat--layout();
22
38
  @include kendo-chat--theme();
23
39
  }
@@ -1,56 +1,66 @@
1
1
  @use "sass:math";
2
2
  @use "../core/_index.scss" as *;
3
3
  @use "./_variables.scss" as *;
4
+ @use "../bubble/_variables.scss" as *;
4
5
  @use "@progress/kendo-theme-core/scss/components/chat/_layout.scss" as *;
5
6
 
6
7
  @mixin kendo-chat--layout() {
7
8
  @include kendo-chat--layout-base();
8
9
 
9
- .k-chat {
10
- .k-quick-reply {
11
- position: relative;
12
-
13
- &:focus::after,
14
- &.k-focus::after {
15
- content: "";
16
- position: absolute;
17
- border: medium none;
18
- border-radius: var(--kendo-border-radius-full, 9999px);
19
- inset: $kendo-chat-quick-reply-focus-offset;
20
- outline-width: $kendo-chat-quick-reply-focus-outline-width;
21
- outline-style: $kendo-chat-quick-reply-focus-outline-style;
22
- z-index: 1;
23
- }
10
+ // Message group
11
+ .k-chat-message-group {
12
+
13
+ .k-chat-file-wrapper {
14
+ min-width: 0;
15
+ max-width: 100%;
16
+
24
17
  }
25
18
 
26
- .k-card-deck-scrollwrap > .k-card-deck {
27
- // hide scrollbar in chat
28
- margin-block-end: calc( -1 * #{$kendo-chat-card-deck-scrollbar-size} );
29
- padding-bottom: $kendo-chat-card-deck-scrollbar-size;
19
+ }
20
+
21
+ .k-message-group-sender {
22
+
23
+ .k-chat-bubble {
24
+
25
+ &:focus,
26
+ &.k-focus {
27
+ outline-style: solid;
28
+ outline-width: calc( (#{$kendo-bubble-border-width} * 2 ));
29
+ outline-offset: calc( (#{$kendo-bubble-border-width} * 2 ) * -1);
30
+ }
30
31
  }
32
+
31
33
  }
32
34
 
33
- .k-card-subtitle {
34
- font-weight: var( --kendo-font-weight, initial );
35
+
36
+ // Bubble
37
+ .k-chat-bubble {
38
+
39
+ a {
40
+ font-weight: normal;
41
+ }
35
42
  }
36
43
 
37
- .k-chat-toolbar,
38
- .k-chat .k-toolbar-box {
39
- gap: $kendo-chat-toolbar-spacing;
44
+ // Message states
45
+ .k-message:has(.k-selected) {
40
46
 
41
- .k-scroll-button {
42
- padding-block: 0px;
43
- padding-inline: $kendo-chat-scroll-button-padding;
47
+ .k-message-time,
48
+ .k-message-status {
49
+ gap: $kendo-chat-bubble-spacing;
44
50
  }
51
+ }
52
+
53
+ .k-chat .k-card-deck {
54
+ margin-inline: calc( #{$kendo-chat-message-list-padding-x} * -1 );
55
+ padding-block-start: $kendo-chat-message-list-padding-y;
56
+ padding-block-end: $kendo-chat-message-list-padding-y;
57
+ padding-inline: $kendo-chat-message-list-padding-x;
45
58
 
46
59
  }
47
60
 
48
- .k-rtl,
49
- [dir="rtl"] {
50
- .k-message-box {
51
- .k-button {
52
- transform: scaleX(-1);
53
- }
54
- }
61
+ .k-chat .k-card-deck-scrollwrap {
62
+ margin-inline: calc( #{$kendo-chat-message-list-padding-x} * -1 );
63
+ padding-inline: $kendo-chat-message-list-padding-x;
55
64
  }
65
+
56
66
  }
@@ -1,28 +1,23 @@
1
1
  @use "../core/_index.scss" as *;
2
2
  @use "./_variables.scss" as *;
3
+ @use "../bubble/_variables.scss" as *;
3
4
  @use "@progress/kendo-theme-core/scss/components/chat/_theme.scss" as *;
4
5
 
5
6
  @mixin kendo-chat--theme() {
6
7
  @include kendo-chat--theme-base();
7
8
 
8
- .k-chat {
9
- .k-chat-bubble {
10
- transition: $kendo-chat-transition;
9
+ // Bubbles
10
+ .k-message-group-sender .k-chat-bubble {
11
11
 
12
- a { color: $kendo-chat-link-text };
13
- a:hover { color: $kendo-chat-link-hover-text };
12
+ &:focus,
13
+ &.k-focus {
14
+ outline-color: $kendo-chat-alt-bubble-focus-border;
15
+ box-shadow: inset 0 0 0 calc( #{$kendo-bubble-border-width} * 2 ) k-color(app-surface);
14
16
  }
15
17
 
16
- .k-quick-reply {
17
- &:focus,
18
- &.k-focus {
19
- box-shadow: none;
20
- }
21
-
22
- &:focus::after,
23
- &.k-focus::after {
24
- outline-color: $kendo-chat-quick-reply-focus-outline-color;
25
- }
18
+ &:hover,
19
+ &.k-hover {
20
+ @include fill( $bg: $kendo-chat-alt-bubble-hover-bg, $border: $kendo-chat-alt-bubble-hover-border );
26
21
  }
27
22
  }
28
23
  }