@vaadin/horizontal-layout 24.6.0-alpha4 → 24.6.0-alpha6

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/horizontal-layout",
3
- "version": "24.6.0-alpha4",
3
+ "version": "24.6.0-alpha6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,18 +36,19 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/component-base": "24.6.0-alpha4",
40
- "@vaadin/vaadin-lumo-styles": "24.6.0-alpha4",
41
- "@vaadin/vaadin-material-styles": "24.6.0-alpha4",
42
- "@vaadin/vaadin-themable-mixin": "24.6.0-alpha4"
39
+ "@vaadin/component-base": "24.6.0-alpha6",
40
+ "@vaadin/vaadin-lumo-styles": "24.6.0-alpha6",
41
+ "@vaadin/vaadin-material-styles": "24.6.0-alpha6",
42
+ "@vaadin/vaadin-themable-mixin": "24.6.0-alpha6",
43
+ "lit": "^3.0.0"
43
44
  },
44
45
  "devDependencies": {
45
- "@vaadin/chai-plugins": "24.6.0-alpha4",
46
+ "@vaadin/chai-plugins": "24.6.0-alpha6",
46
47
  "@vaadin/testing-helpers": "^1.0.0"
47
48
  },
48
49
  "web-types": [
49
50
  "web-types.json",
50
51
  "web-types.lit.json"
51
52
  ],
52
- "gitHead": "78967d4f3bb46f58f43c2cc621802554acb2efaf"
53
+ "gitHead": "53f2f0c6cb9324a832ee7c0a052db927e151e167"
53
54
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ export * from './vaadin-horizontal-layout.js';
@@ -0,0 +1,59 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
6
+ import { css, html, LitElement } from 'lit';
7
+ import { defineCustomElement } from '@vaadin/component-base/src/define.js';
8
+ import { ElementMixin } from '@vaadin/component-base/src/element-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
+
12
+ /**
13
+ * LitElement based version of `<vaadin-horizontal-layout>` web component.
14
+ *
15
+ * ## Disclaimer
16
+ *
17
+ * This component is an experiment and not yet a part of Vaadin platform.
18
+ * There is no ETA regarding specific Vaadin version where it'll land.
19
+ * Feel free to try this code in your apps as per Apache 2.0 license.
20
+ */
21
+ class HorizontalLayout extends ThemableMixin(ElementMixin(PolylitMixin(LitElement))) {
22
+ static get styles() {
23
+ return css`
24
+ :host {
25
+ display: flex;
26
+ box-sizing: border-box;
27
+ }
28
+
29
+ :host([hidden]) {
30
+ display: none !important;
31
+ }
32
+
33
+ /* Theme variations */
34
+ :host([theme~='margin']) {
35
+ margin: 1em;
36
+ }
37
+
38
+ :host([theme~='padding']) {
39
+ padding: 1em;
40
+ }
41
+
42
+ :host([theme~='spacing']) {
43
+ gap: 1em;
44
+ }
45
+ `;
46
+ }
47
+
48
+ static get is() {
49
+ return 'vaadin-horizontal-layout';
50
+ }
51
+
52
+ render() {
53
+ return html`<slot></slot>`;
54
+ }
55
+ }
56
+
57
+ defineCustomElement(HorizontalLayout);
58
+
59
+ export { HorizontalLayout };
@@ -0,0 +1,2 @@
1
+ import './vaadin-horizontal-layout-styles.js';
2
+ import '../../src/vaadin-lit-horizontal-layout.js';
@@ -0,0 +1,2 @@
1
+ import './vaadin-horizontal-layout-styles.js';
2
+ import '../../src/vaadin-lit-horizontal-layout.js';
@@ -0,0 +1,2 @@
1
+ import './vaadin-horizontal-layout-styles.js';
2
+ import '../../src/vaadin-lit-horizontal-layout.js';
@@ -0,0 +1,2 @@
1
+ import './vaadin-horizontal-layout-styles.js';
2
+ import '../../src/vaadin-lit-horizontal-layout.js';
@@ -0,0 +1 @@
1
+ export * from './vaadin-horizontal-layout.js';
@@ -0,0 +1,2 @@
1
+ import './theme/lumo/vaadin-lit-horizontal-layout.js';
2
+ export * from './src/vaadin-lit-horizontal-layout.js';
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/horizontal-layout",
4
- "version": "24.6.0-alpha4",
4
+ "version": "24.6.0-alpha6",
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/horizontal-layout",
4
- "version": "24.6.0-alpha4",
4
+ "version": "24.6.0-alpha6",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {