@vaadin/message-input 25.0.0-alpha6 → 25.0.0-alpha8

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/message-input",
3
- "version": "25.0.0-alpha6",
3
+ "version": "25.0.0-alpha8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -21,6 +21,8 @@
21
21
  "type": "module",
22
22
  "files": [
23
23
  "src",
24
+ "!src/styles/*-base-styles.d.ts",
25
+ "!src/styles/*-base-styles.js",
24
26
  "theme",
25
27
  "vaadin-*.d.ts",
26
28
  "vaadin-*.js",
@@ -35,16 +37,16 @@
35
37
  ],
36
38
  "dependencies": {
37
39
  "@open-wc/dedupe-mixin": "^1.3.0",
38
- "@vaadin/button": "25.0.0-alpha6",
39
- "@vaadin/component-base": "25.0.0-alpha6",
40
- "@vaadin/text-area": "25.0.0-alpha6",
41
- "@vaadin/vaadin-lumo-styles": "25.0.0-alpha6",
42
- "@vaadin/vaadin-themable-mixin": "25.0.0-alpha6",
40
+ "@vaadin/button": "25.0.0-alpha8",
41
+ "@vaadin/component-base": "25.0.0-alpha8",
42
+ "@vaadin/text-area": "25.0.0-alpha8",
43
+ "@vaadin/vaadin-lumo-styles": "25.0.0-alpha8",
44
+ "@vaadin/vaadin-themable-mixin": "25.0.0-alpha8",
43
45
  "lit": "^3.0.0"
44
46
  },
45
47
  "devDependencies": {
46
- "@vaadin/chai-plugins": "25.0.0-alpha6",
47
- "@vaadin/test-runner-commands": "25.0.0-alpha6",
48
+ "@vaadin/chai-plugins": "25.0.0-alpha8",
49
+ "@vaadin/test-runner-commands": "25.0.0-alpha8",
48
50
  "@vaadin/testing-helpers": "^2.0.0",
49
51
  "sinon": "^18.0.0"
50
52
  },
@@ -52,5 +54,5 @@
52
54
  "web-types.json",
53
55
  "web-types.lit.json"
54
56
  ],
55
- "gitHead": "cd1d084198d2b326c58d44bb39fa4845b71ce551"
57
+ "gitHead": "ebf53673d5f639d2b1b6f2b31f640f530643ee2f"
56
58
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2021 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import type { CSSResult } from 'lit';
7
+
8
+ export const messageInputStyles: CSSResult;
@@ -0,0 +1,82 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2021 - 2025 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import '@vaadin/component-base/src/style-props.js';
7
+ import { css } from 'lit';
8
+
9
+ export const messageInputStyles = css`
10
+ :host {
11
+ box-sizing: border-box;
12
+ display: flex;
13
+ max-height: 50vh;
14
+ flex-shrink: 0;
15
+ border: var(--vaadin-input-field-border-width, 1px) solid
16
+ var(--vaadin-input-field-border-color, var(--vaadin-border-color-strong));
17
+ border-radius: var(--vaadin-input-field-border-radius, var(--vaadin-radius-m));
18
+ background: var(--vaadin-input-field-background, var(--vaadin-background-color));
19
+ }
20
+
21
+ :host([hidden]) {
22
+ display: none !important;
23
+ }
24
+
25
+ :host(:focus-within) {
26
+ outline: var(--vaadin-focus-ring-width) solid var(--vaadin-focus-ring-color);
27
+ outline-offset: calc(var(--vaadin-input-field-border-width, 1px) * -1);
28
+ }
29
+
30
+ :host([disabled]) {
31
+ --vaadin-input-field-value-color: var(--vaadin-input-field-disabled-text-color, var(--vaadin-color-disabled));
32
+ --vaadin-input-field-background: var(
33
+ --vaadin-input-field-disabled-background,
34
+ var(--vaadin-background-container-strong)
35
+ );
36
+ --vaadin-input-field-border-color: transparent;
37
+ }
38
+
39
+ ::slotted([slot='textarea']) {
40
+ flex: 1;
41
+ --vaadin-input-field-border-width: 0 !important;
42
+ --vaadin-focus-ring-width: 0;
43
+ --vaadin-input-field-background: transparent !important;
44
+ }
45
+
46
+ ::slotted([slot='button']) {
47
+ flex: none;
48
+ align-self: end;
49
+ margin: var(--vaadin-input-field-padding, var(--vaadin-padding-container));
50
+ --vaadin-button-border-width: 0;
51
+ --vaadin-button-background: transparent;
52
+ --vaadin-button-text-color: var(--vaadin-color);
53
+ --vaadin-button-padding: 0;
54
+ }
55
+
56
+ :host([theme~='icon-button']) ::slotted([slot='button']) {
57
+ width: var(--vaadin-icon-size, 1lh);
58
+ height: var(--vaadin-icon-size, 1lh);
59
+ color: transparent;
60
+ position: relative;
61
+ contain: strict;
62
+ }
63
+
64
+ :host([theme~='icon-button']) ::slotted([slot='button'])::before {
65
+ content: '';
66
+ position: absolute;
67
+ inset: 0;
68
+ mask-image: var(--_vaadin-icon-paper-airplane);
69
+ background: var(--vaadin-button-text-color);
70
+ }
71
+
72
+ :host([dir='rtl'][theme~='icon-button']) ::slotted([slot='button'])::before {
73
+ scale: -1;
74
+ }
75
+
76
+ @media (forced-colors: active) {
77
+ :host([theme~='icon-button']) ::slotted([slot='button']) {
78
+ forced-color-adjust: none;
79
+ --vaadin-button-text-color: CanvasText;
80
+ }
81
+ }
82
+ `;
@@ -92,8 +92,6 @@ export const MessageInputMixin = (superClass) =>
92
92
 
93
93
  this._buttonController = new SlotController(this, 'button', 'vaadin-button', {
94
94
  initializer: (btn) => {
95
- btn.setAttribute('theme', 'primary');
96
-
97
95
  btn.addEventListener('click', () => {
98
96
  this.__submit();
99
97
  });
@@ -118,6 +116,7 @@ export const MessageInputMixin = (superClass) =>
118
116
  });
119
117
 
120
118
  textarea.minRows = 1;
119
+ (textarea.inputElement || textarea).setAttribute('enterkeyhint', 'send');
121
120
 
122
121
  this._textArea = textarea;
123
122
  },
@@ -33,7 +33,7 @@ import { MessageInputMixin } from './vaadin-message-input-mixin.js';
33
33
  * @mixes ElementMixin
34
34
  */
35
35
  class MessageInput extends MessageInputMixin(
36
- ElementMixin(ThemableMixin(LumoInjectionMixin(PolylitMixin(LitElement)))),
36
+ ElementMixin(ThemableMixin(PolylitMixin(LumoInjectionMixin(LitElement)))),
37
37
  ) {
38
38
  static get is() {
39
39
  return 'vaadin-message-input';
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/message-input",
4
- "version": "25.0.0-alpha6",
4
+ "version": "25.0.0-alpha8",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/message-input",
4
- "version": "25.0.0-alpha6",
4
+ "version": "25.0.0-alpha8",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {