@vaadin/horizontal-layout 24.7.0-alpha6 → 24.7.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/horizontal-layout",
3
- "version": "24.7.0-alpha6",
3
+ "version": "24.7.0-alpha8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,19 +36,20 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/component-base": "24.7.0-alpha6",
40
- "@vaadin/vaadin-lumo-styles": "24.7.0-alpha6",
41
- "@vaadin/vaadin-material-styles": "24.7.0-alpha6",
42
- "@vaadin/vaadin-themable-mixin": "24.7.0-alpha6",
39
+ "@vaadin/component-base": "24.7.0-alpha8",
40
+ "@vaadin/vaadin-lumo-styles": "24.7.0-alpha8",
41
+ "@vaadin/vaadin-material-styles": "24.7.0-alpha8",
42
+ "@vaadin/vaadin-themable-mixin": "24.7.0-alpha8",
43
43
  "lit": "^3.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@vaadin/chai-plugins": "24.7.0-alpha6",
46
+ "@vaadin/chai-plugins": "24.7.0-alpha8",
47
+ "@vaadin/test-runner-commands": "24.7.0-alpha8",
47
48
  "@vaadin/testing-helpers": "^1.1.0"
48
49
  },
49
50
  "web-types": [
50
51
  "web-types.json",
51
52
  "web-types.lit.json"
52
53
  ],
53
- "gitHead": "6255a512997a648da91fed37de4d5000809eaebf"
54
+ "gitHead": "d015035192480fcc8cc9df5d00a950f177b83c32"
54
55
  }
@@ -5,4 +5,4 @@
5
5
  */
6
6
  import type { CSSResult } from 'lit';
7
7
 
8
- export const horizontalLayoutStyles: CSSResult;
8
+ export const horizontalLayoutStyles: CSSResult[];
@@ -5,7 +5,7 @@
5
5
  */
6
6
  import { css } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
7
7
 
8
- export const horizontalLayoutStyles = css`
8
+ export const baseStyles = css`
9
9
  :host {
10
10
  display: flex;
11
11
  box-sizing: border-box;
@@ -28,3 +28,21 @@ export const horizontalLayoutStyles = css`
28
28
  gap: 1em;
29
29
  }
30
30
  `;
31
+
32
+ // Layout improvements are part of a feature for Flow users where children that have been configured to use full size
33
+ // using `HasSize.setSizeFull()` and others, get additional styles so that they effectively take the remaining space in
34
+ // the layout, rather than explicitly use 100% width/height. The respective data attributes are set by Flow's `HasSize`
35
+ // class.
36
+ const enableLayoutImprovements = window.Vaadin.featureFlags.layoutComponentImprovements;
37
+ const layoutImprovementStyles = css`
38
+ ::slotted([data-width-full]) {
39
+ flex: 1;
40
+ }
41
+
42
+ ::slotted(vaadin-horizontal-layout[data-width-full]),
43
+ ::slotted(vaadin-vertical-layout[data-width-full]) {
44
+ min-width: 0;
45
+ }
46
+ `;
47
+
48
+ export const horizontalLayoutStyles = enableLayoutImprovements ? [baseStyles, layoutImprovementStyles] : [baseStyles];
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.7.0-alpha6",
4
+ "version": "24.7.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/horizontal-layout",
4
- "version": "24.7.0-alpha6",
4
+ "version": "24.7.0-alpha8",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {