@vaadin/horizontal-layout 24.6.0-alpha8 → 24.6.0-beta1

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-alpha8",
3
+ "version": "24.6.0-beta1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,19 +36,19 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@polymer/polymer": "^3.0.0",
39
- "@vaadin/component-base": "24.6.0-alpha8",
40
- "@vaadin/vaadin-lumo-styles": "24.6.0-alpha8",
41
- "@vaadin/vaadin-material-styles": "24.6.0-alpha8",
42
- "@vaadin/vaadin-themable-mixin": "24.6.0-alpha8",
39
+ "@vaadin/component-base": "24.6.0-beta1",
40
+ "@vaadin/vaadin-lumo-styles": "24.6.0-beta1",
41
+ "@vaadin/vaadin-material-styles": "24.6.0-beta1",
42
+ "@vaadin/vaadin-themable-mixin": "24.6.0-beta1",
43
43
  "lit": "^3.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@vaadin/chai-plugins": "24.6.0-alpha8",
46
+ "@vaadin/chai-plugins": "24.6.0-beta1",
47
47
  "@vaadin/testing-helpers": "^1.0.0"
48
48
  },
49
49
  "web-types": [
50
50
  "web-types.json",
51
51
  "web-types.lit.json"
52
52
  ],
53
- "gitHead": "a11e1510c4caa08775b202714f5fc1198c22132a"
53
+ "gitHead": "ab28efb0dcf2cd1ef72100e2e8f32232fa49aacc"
54
54
  }
@@ -25,6 +25,7 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
25
25
  * `theme="margin"` | Applies the default amount of CSS margin for the host element (specified by the theme)
26
26
  * `theme="padding"` | Applies the default amount of CSS padding for the host element (specified by the theme)
27
27
  * `theme="spacing"` | Applies the default amount of CSS margin between items (specified by the theme)
28
+ * `theme="wrap"` | Items wrap to the next row when they exceed the layout width
28
29
  */
29
30
  declare class HorizontalLayout extends ThemableMixin(ElementMixin(HTMLElement)) {}
30
31
 
@@ -27,6 +27,7 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mix
27
27
  * `theme="margin"` | Applies the default amount of CSS margin for the host element (specified by the theme)
28
28
  * `theme="padding"` | Applies the default amount of CSS padding for the host element (specified by the theme)
29
29
  * `theme="spacing"` | Applies the default amount of CSS margin between items (specified by the theme)
30
+ * `theme="wrap"` | Items wrap to the next row when they exceed the layout width
30
31
  *
31
32
  * @customElement
32
33
  * @extends HTMLElement
@@ -29,6 +29,10 @@ const horizontalLayout = css`
29
29
  :host([theme~='spacing-xl']) {
30
30
  gap: var(--lumo-space-xl);
31
31
  }
32
+
33
+ :host([theme~='wrap']) {
34
+ flex-wrap: wrap;
35
+ }
32
36
  `;
33
37
 
34
38
  registerStyles('vaadin-horizontal-layout', horizontalLayout, { moduleId: 'lumo-horizontal-layout' });
@@ -28,6 +28,10 @@ const horizontalLayout = css`
28
28
  :host([theme~='spacing-xl']) {
29
29
  gap: 40px;
30
30
  }
31
+
32
+ :host([theme~='wrap']) {
33
+ flex-wrap: wrap;
34
+ }
31
35
  `;
32
36
 
33
37
  registerStyles('vaadin-horizontal-layout', horizontalLayout, { moduleId: 'material-horizontal-layout' });
package/web-types.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/web-types",
3
3
  "name": "@vaadin/horizontal-layout",
4
- "version": "24.6.0-alpha8",
4
+ "version": "24.6.0-beta1",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "elements": [
9
9
  {
10
10
  "name": "vaadin-horizontal-layout",
11
- "description": "`<vaadin-horizontal-layout>` provides a simple way to horizontally align your HTML elements.\n\n```\n<vaadin-horizontal-layout>\n <div>Item 1</div>\n <div>Item 2</div>\n</vaadin-horizontal-layout>\n```\n\n### Built-in Theme Variations\n\n`<vaadin-horizontal-layout>` supports the following theme variations:\n\nTheme variation | Description\n---|---\n`theme=\"margin\"` | Applies the default amount of CSS margin for the host element (specified by the theme)\n`theme=\"padding\"` | Applies the default amount of CSS padding for the host element (specified by the theme)\n`theme=\"spacing\"` | Applies the default amount of CSS margin between items (specified by the theme)",
11
+ "description": "`<vaadin-horizontal-layout>` provides a simple way to horizontally align your HTML elements.\n\n```\n<vaadin-horizontal-layout>\n <div>Item 1</div>\n <div>Item 2</div>\n</vaadin-horizontal-layout>\n```\n\n### Built-in Theme Variations\n\n`<vaadin-horizontal-layout>` supports the following theme variations:\n\nTheme variation | Description\n---|---\n`theme=\"margin\"` | Applies the default amount of CSS margin for the host element (specified by the theme)\n`theme=\"padding\"` | Applies the default amount of CSS padding for the host element (specified by the theme)\n`theme=\"spacing\"` | Applies the default amount of CSS margin between items (specified by the theme)\n`theme=\"wrap\"` | Items wrap to the next row when they exceed the layout width",
12
12
  "attributes": [
13
13
  {
14
14
  "name": "theme",
@@ -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-alpha8",
4
+ "version": "24.6.0-beta1",
5
5
  "description-markup": "markdown",
6
6
  "framework": "lit",
7
7
  "framework-config": {
@@ -16,7 +16,7 @@
16
16
  "elements": [
17
17
  {
18
18
  "name": "vaadin-horizontal-layout",
19
- "description": "`<vaadin-horizontal-layout>` provides a simple way to horizontally align your HTML elements.\n\n```\n<vaadin-horizontal-layout>\n <div>Item 1</div>\n <div>Item 2</div>\n</vaadin-horizontal-layout>\n```\n\n### Built-in Theme Variations\n\n`<vaadin-horizontal-layout>` supports the following theme variations:\n\nTheme variation | Description\n---|---\n`theme=\"margin\"` | Applies the default amount of CSS margin for the host element (specified by the theme)\n`theme=\"padding\"` | Applies the default amount of CSS padding for the host element (specified by the theme)\n`theme=\"spacing\"` | Applies the default amount of CSS margin between items (specified by the theme)",
19
+ "description": "`<vaadin-horizontal-layout>` provides a simple way to horizontally align your HTML elements.\n\n```\n<vaadin-horizontal-layout>\n <div>Item 1</div>\n <div>Item 2</div>\n</vaadin-horizontal-layout>\n```\n\n### Built-in Theme Variations\n\n`<vaadin-horizontal-layout>` supports the following theme variations:\n\nTheme variation | Description\n---|---\n`theme=\"margin\"` | Applies the default amount of CSS margin for the host element (specified by the theme)\n`theme=\"padding\"` | Applies the default amount of CSS padding for the host element (specified by the theme)\n`theme=\"spacing\"` | Applies the default amount of CSS margin between items (specified by the theme)\n`theme=\"wrap\"` | Items wrap to the next row when they exceed the layout width",
20
20
  "extension": true,
21
21
  "attributes": []
22
22
  }