@vaadin/horizontal-layout 25.0.0-alpha10 → 25.0.0-alpha11
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 +8 -11
- package/src/styles/vaadin-horizontal-layout-base-styles.js +1 -1
- package/src/vaadin-horizontal-layout.js +1 -1
- package/vaadin-horizontal-layout.js +1 -1
- package/web-types.json +1 -1
- package/web-types.lit.json +1 -1
- package/src/styles/vaadin-horizontal-layout-core-styles.d.ts +0 -8
- package/src/styles/vaadin-horizontal-layout-core-styles.js +0 -64
- package/theme/lumo/vaadin-horizontal-layout-styles.d.ts +0 -1
- package/theme/lumo/vaadin-horizontal-layout-styles.js +0 -38
- package/theme/lumo/vaadin-horizontal-layout.d.ts +0 -2
- package/theme/lumo/vaadin-horizontal-layout.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/horizontal-layout",
|
|
3
|
-
"version": "25.0.0-
|
|
3
|
+
"version": "25.0.0-alpha11",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -21,9 +21,6 @@
|
|
|
21
21
|
"type": "module",
|
|
22
22
|
"files": [
|
|
23
23
|
"src",
|
|
24
|
-
"!src/styles/*-base-styles.d.ts",
|
|
25
|
-
"!src/styles/*-base-styles.js",
|
|
26
|
-
"theme",
|
|
27
24
|
"vaadin-*.d.ts",
|
|
28
25
|
"vaadin-*.js",
|
|
29
26
|
"web-types.json",
|
|
@@ -37,19 +34,19 @@
|
|
|
37
34
|
],
|
|
38
35
|
"dependencies": {
|
|
39
36
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
40
|
-
"@vaadin/component-base": "25.0.0-
|
|
41
|
-
"@vaadin/vaadin-
|
|
42
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha10",
|
|
37
|
+
"@vaadin/component-base": "25.0.0-alpha11",
|
|
38
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-alpha11",
|
|
43
39
|
"lit": "^3.0.0"
|
|
44
40
|
},
|
|
45
41
|
"devDependencies": {
|
|
46
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
47
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
48
|
-
"@vaadin/testing-helpers": "^2.0.0"
|
|
42
|
+
"@vaadin/chai-plugins": "25.0.0-alpha11",
|
|
43
|
+
"@vaadin/test-runner-commands": "25.0.0-alpha11",
|
|
44
|
+
"@vaadin/testing-helpers": "^2.0.0",
|
|
45
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-alpha11"
|
|
49
46
|
},
|
|
50
47
|
"web-types": [
|
|
51
48
|
"web-types.json",
|
|
52
49
|
"web-types.lit.json"
|
|
53
50
|
],
|
|
54
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "abfd315ba5a7484a613e0768635a4e8fe945a44b"
|
|
55
52
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import '@vaadin/component-base/src/style-props.js';
|
|
6
|
+
import '@vaadin/component-base/src/styles/style-props.js';
|
|
7
7
|
import { css } from 'lit';
|
|
8
8
|
|
|
9
9
|
export const baseStyles = css`
|
|
@@ -9,7 +9,7 @@ import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
|
9
9
|
import { PolylitMixin } from '@vaadin/component-base/src/polylit-mixin.js';
|
|
10
10
|
import { LumoInjectionMixin } from '@vaadin/vaadin-themable-mixin/lumo-injection-mixin.js';
|
|
11
11
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
12
|
-
import { horizontalLayoutStyles } from './styles/vaadin-horizontal-layout-
|
|
12
|
+
import { horizontalLayoutStyles } from './styles/vaadin-horizontal-layout-base-styles.js';
|
|
13
13
|
import { HorizontalLayoutMixin } from './vaadin-horizontal-layout-mixin.js';
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import './
|
|
1
|
+
import './src/vaadin-horizontal-layout.js';
|
|
2
2
|
export * from './src/vaadin-horizontal-layout.js';
|
package/web-types.json
CHANGED
package/web-types.lit.json
CHANGED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
|
-
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
-
*/
|
|
6
|
-
import { css } from 'lit';
|
|
7
|
-
|
|
8
|
-
export const baseStyles = css`
|
|
9
|
-
:host {
|
|
10
|
-
display: flex;
|
|
11
|
-
box-sizing: border-box;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:host([hidden]) {
|
|
15
|
-
display: none !important;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/* Theme variations */
|
|
19
|
-
:host([theme~='margin']) {
|
|
20
|
-
margin: 1em;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
:host([theme~='padding']) {
|
|
24
|
-
padding: 1em;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
:host([theme~='spacing']) {
|
|
28
|
-
gap: 1em;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
:host([has-end]:not([has-middle])) ::slotted([last-start-child]) {
|
|
32
|
-
margin-inline-end: auto;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
::slotted([first-middle-child]) {
|
|
36
|
-
margin-inline-start: auto;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
::slotted([last-middle-child]) {
|
|
40
|
-
margin-inline-end: auto;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
:host(:not([has-middle])) ::slotted([first-end-child]) {
|
|
44
|
-
margin-inline-start: auto;
|
|
45
|
-
}
|
|
46
|
-
`;
|
|
47
|
-
|
|
48
|
-
// Layout improvements are part of a feature for Flow users where children that have been configured to use full size
|
|
49
|
-
// using `HasSize.setSizeFull()` and others, get additional styles so that they effectively take the remaining space in
|
|
50
|
-
// the layout, rather than explicitly use 100% width/height. The respective data attributes are set by Flow's `HasSize`
|
|
51
|
-
// class.
|
|
52
|
-
const enableLayoutImprovements = window.Vaadin.featureFlags.layoutComponentImprovements;
|
|
53
|
-
const layoutImprovementStyles = css`
|
|
54
|
-
::slotted([data-width-full]) {
|
|
55
|
-
flex: 1;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
::slotted(vaadin-horizontal-layout[data-width-full]),
|
|
59
|
-
::slotted(vaadin-vertical-layout[data-width-full]) {
|
|
60
|
-
min-width: 0;
|
|
61
|
-
}
|
|
62
|
-
`;
|
|
63
|
-
|
|
64
|
-
export const horizontalLayoutStyles = enableLayoutImprovements ? [baseStyles, layoutImprovementStyles] : [baseStyles];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@vaadin/vaadin-lumo-styles/spacing.js';
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import '@vaadin/vaadin-lumo-styles/spacing.js';
|
|
2
|
-
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
3
|
-
|
|
4
|
-
const horizontalLayout = css`
|
|
5
|
-
:host([theme~='margin']) {
|
|
6
|
-
margin: var(--lumo-space-m);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
:host([theme~='padding']) {
|
|
10
|
-
padding: var(--lumo-space-m);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
:host([theme~='spacing-xs']) {
|
|
14
|
-
gap: var(--lumo-space-xs);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
:host([theme~='spacing-s']) {
|
|
18
|
-
gap: var(--lumo-space-s);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
:host([theme~='spacing']) {
|
|
22
|
-
gap: var(--lumo-space-m);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
:host([theme~='spacing-l']) {
|
|
26
|
-
gap: var(--lumo-space-l);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
:host([theme~='spacing-xl']) {
|
|
30
|
-
gap: var(--lumo-space-xl);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
:host([theme~='wrap']) {
|
|
34
|
-
flex-wrap: wrap;
|
|
35
|
-
}
|
|
36
|
-
`;
|
|
37
|
-
|
|
38
|
-
registerStyles('vaadin-horizontal-layout', horizontalLayout, { moduleId: 'lumo-horizontal-layout' });
|