@vaadin/input-container 24.3.0-alpha9 → 24.3.0-beta2

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/input-container",
3
- "version": "24.3.0-alpha9",
3
+ "version": "24.3.0-beta2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -21,7 +21,6 @@
21
21
  "type": "module",
22
22
  "files": [
23
23
  "src",
24
- "!src/vaadin-lit-input-container.js",
25
24
  "theme",
26
25
  "vaadin-*.d.ts",
27
26
  "vaadin-*.js"
@@ -33,17 +32,17 @@
33
32
  ],
34
33
  "dependencies": {
35
34
  "@polymer/polymer": "^3.0.0",
36
- "@vaadin/component-base": "24.3.0-alpha9",
37
- "@vaadin/vaadin-lumo-styles": "24.3.0-alpha9",
38
- "@vaadin/vaadin-material-styles": "24.3.0-alpha9",
39
- "@vaadin/vaadin-themable-mixin": "24.3.0-alpha9"
35
+ "@vaadin/component-base": "24.3.0-beta2",
36
+ "@vaadin/vaadin-lumo-styles": "24.3.0-beta2",
37
+ "@vaadin/vaadin-material-styles": "24.3.0-beta2",
38
+ "@vaadin/vaadin-themable-mixin": "24.3.0-beta2"
40
39
  },
41
40
  "devDependencies": {
42
41
  "@esm-bundle/chai": "^4.3.4",
43
- "@vaadin/icon": "24.3.0-alpha9",
44
- "@vaadin/icons": "24.3.0-alpha9",
42
+ "@vaadin/icon": "24.3.0-beta2",
43
+ "@vaadin/icons": "24.3.0-beta2",
45
44
  "@vaadin/testing-helpers": "^0.6.0",
46
45
  "sinon": "^13.0.2"
47
46
  },
48
- "gitHead": "ea39f40613cb73b237d08d4c48b890ee7d1844cb"
47
+ "gitHead": "0bbfb24cb8dcd6e1dca8ecf2269635efac53e4d0"
49
48
  }
@@ -0,0 +1,47 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import { html, LitElement } from 'lit';
7
+ import { defineCustomElement } from '@vaadin/component-base/src/define.js';
8
+ import { DirMixin } from '@vaadin/component-base/src/dir-mixin.js';
9
+ import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
10
+ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
11
+ import { InputContainerMixin } from './vaadin-input-container-mixin.js';
12
+ import { inputContainerStyles } from './vaadin-input-container-styles.js';
13
+
14
+ /**
15
+ * LitElement based version of `<vaadin-input-container>` web component.
16
+ *
17
+ * ## Disclaimer
18
+ *
19
+ * This component is an experiment not intended for publishing to npm.
20
+ * There is no ETA regarding specific Vaadin version where it'll land.
21
+ * Feel free to try this code in your apps as per Apache 2.0 license.
22
+ *
23
+ * @extends HTMLElement
24
+ * @mixes ThemableMixin
25
+ * @mixes DirMixin
26
+ * @mixes InputContainerMixin
27
+ */
28
+ export class InputContainer extends InputContainerMixin(ThemableMixin(DirMixin(PolylitMixin(LitElement)))) {
29
+ static get is() {
30
+ return 'vaadin-input-container';
31
+ }
32
+
33
+ static get styles() {
34
+ return inputContainerStyles;
35
+ }
36
+
37
+ /** @protected */
38
+ render() {
39
+ return html`
40
+ <slot name="prefix"></slot>
41
+ <slot></slot>
42
+ <slot name="suffix"></slot>
43
+ `;
44
+ }
45
+ }
46
+
47
+ defineCustomElement(InputContainer);