@vaadin/horizontal-layout 25.0.0-beta3 → 25.0.0-beta4
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": "25.0.0-
|
|
3
|
+
"version": "25.0.0-beta4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -34,19 +34,19 @@
|
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@open-wc/dedupe-mixin": "^1.3.0",
|
|
37
|
-
"@vaadin/component-base": "25.0.0-
|
|
38
|
-
"@vaadin/vaadin-themable-mixin": "25.0.0-
|
|
37
|
+
"@vaadin/component-base": "25.0.0-beta4",
|
|
38
|
+
"@vaadin/vaadin-themable-mixin": "25.0.0-beta4",
|
|
39
39
|
"lit": "^3.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@vaadin/chai-plugins": "25.0.0-
|
|
43
|
-
"@vaadin/test-runner-commands": "25.0.0-
|
|
42
|
+
"@vaadin/chai-plugins": "25.0.0-beta4",
|
|
43
|
+
"@vaadin/test-runner-commands": "25.0.0-beta4",
|
|
44
44
|
"@vaadin/testing-helpers": "^2.0.0",
|
|
45
|
-
"@vaadin/vaadin-lumo-styles": "25.0.0-
|
|
45
|
+
"@vaadin/vaadin-lumo-styles": "25.0.0-beta4"
|
|
46
46
|
},
|
|
47
47
|
"web-types": [
|
|
48
48
|
"web-types.json",
|
|
49
49
|
"web-types.lit.json"
|
|
50
50
|
],
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "707c30af7ed0afacc13c0afb27d047b043160d1f"
|
|
52
52
|
}
|
|
@@ -22,7 +22,7 @@ export const baseStyles = css`
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
:host([theme~='padding']) {
|
|
25
|
-
padding: var(--vaadin-horizontal-layout-
|
|
25
|
+
padding: var(--vaadin-horizontal-layout-padding, var(--vaadin-padding-m));
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
:host([theme~='spacing']) {
|
|
@@ -21,12 +21,12 @@ import { HorizontalLayoutMixin } from './vaadin-horizontal-layout-mixin.js';
|
|
|
21
21
|
*
|
|
22
22
|
* `<vaadin-horizontal-layout>` supports the following theme variations:
|
|
23
23
|
*
|
|
24
|
-
* Theme variation
|
|
25
|
-
*
|
|
26
|
-
* `theme="margin"`
|
|
27
|
-
* `theme="padding"`
|
|
28
|
-
* `theme="spacing"`
|
|
29
|
-
* `theme="wrap"`
|
|
24
|
+
* Theme variation | Description
|
|
25
|
+
* -------------------|---------------
|
|
26
|
+
* `theme="margin"` | Applies the default amount of CSS margin for the host element
|
|
27
|
+
* `theme="padding"` | Applies the default amount of CSS padding for the host element
|
|
28
|
+
* `theme="spacing"` | Applies the default amount of CSS margin between items
|
|
29
|
+
* `theme="wrap"` | Items wrap to the next row when they exceed the layout width
|
|
30
30
|
*
|
|
31
31
|
* ### Component's slots
|
|
32
32
|
*
|
|
@@ -37,6 +37,18 @@ import { HorizontalLayoutMixin } from './vaadin-horizontal-layout-mixin.js';
|
|
|
37
37
|
* no name | Default slot
|
|
38
38
|
* `middle` | Slot for the content placed in the middle
|
|
39
39
|
* `end` | Slot for the content placed at the end
|
|
40
|
+
*
|
|
41
|
+
* ### Custom CSS Properties
|
|
42
|
+
*
|
|
43
|
+
* The following custom CSS properties are available for styling:
|
|
44
|
+
*
|
|
45
|
+
* Custom CSS property | Description
|
|
46
|
+
* -------------------------------------|-------------
|
|
47
|
+
* `--vaadin-horizontal-layout-margin` | The default CSS margin applied when using `theme="margin"`
|
|
48
|
+
* `--vaadin-horizontal-layout-padding` | The default CSS padding applied when using `theme="padding"`
|
|
49
|
+
* `--vaadin-horizontal-layout-gap` | The default CSS gap applied when using `theme="spacing"`
|
|
50
|
+
*
|
|
51
|
+
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
40
52
|
*/
|
|
41
53
|
declare class HorizontalLayout extends HorizontalLayoutMixin(ThemableMixin(ElementMixin(HTMLElement))) {}
|
|
42
54
|
|
|
@@ -26,12 +26,12 @@ import { HorizontalLayoutMixin } from './vaadin-horizontal-layout-mixin.js';
|
|
|
26
26
|
*
|
|
27
27
|
* `<vaadin-horizontal-layout>` supports the following theme variations:
|
|
28
28
|
*
|
|
29
|
-
* Theme variation
|
|
30
|
-
*
|
|
31
|
-
* `theme="margin"`
|
|
32
|
-
* `theme="padding"`
|
|
33
|
-
* `theme="spacing"`
|
|
34
|
-
* `theme="wrap"`
|
|
29
|
+
* Theme variation | Description
|
|
30
|
+
* -------------------|---------------
|
|
31
|
+
* `theme="margin"` | Applies the default amount of CSS margin for the host element
|
|
32
|
+
* `theme="padding"` | Applies the default amount of CSS padding for the host element
|
|
33
|
+
* `theme="spacing"` | Applies the default amount of CSS margin between items
|
|
34
|
+
* `theme="wrap"` | Items wrap to the next row when they exceed the layout width
|
|
35
35
|
*
|
|
36
36
|
* ### Component's slots
|
|
37
37
|
*
|
|
@@ -43,6 +43,18 @@ import { HorizontalLayoutMixin } from './vaadin-horizontal-layout-mixin.js';
|
|
|
43
43
|
* `middle` | Slot for the content placed in the middle
|
|
44
44
|
* `end` | Slot for the content placed at the end
|
|
45
45
|
*
|
|
46
|
+
* ### Custom CSS Properties
|
|
47
|
+
*
|
|
48
|
+
* The following custom CSS properties are available for styling:
|
|
49
|
+
*
|
|
50
|
+
* Custom CSS property | Description
|
|
51
|
+
* -------------------------------------|-------------
|
|
52
|
+
* `--vaadin-horizontal-layout-margin` | The default CSS margin applied when using `theme="margin"`
|
|
53
|
+
* `--vaadin-horizontal-layout-padding` | The default CSS padding applied when using `theme="padding"`
|
|
54
|
+
* `--vaadin-horizontal-layout-gap` | The default CSS gap applied when using `theme="spacing"`
|
|
55
|
+
*
|
|
56
|
+
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
|
|
57
|
+
*
|
|
46
58
|
* @customElement
|
|
47
59
|
* @extends HTMLElement
|
|
48
60
|
* @mixes ThemableMixin
|
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": "25.0.0-
|
|
4
|
+
"version": "25.0.0-beta4",
|
|
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```html\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
|
|
11
|
+
"description": "`<vaadin-horizontal-layout>` provides a simple way to horizontally align your HTML elements.\n\n```html\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\n`theme=\"padding\"` | Applies the default amount of CSS padding for the host element\n`theme=\"spacing\"` | Applies the default amount of CSS margin between items\n`theme=\"wrap\"` | Items wrap to the next row when they exceed the layout width\n\n### Component's slots\n\nThe following slots are available to be set:\n\nSlot name | Description\n-------------------|---------------\nno name | Default slot\n`middle` | Slot for the content placed in the middle\n`end` | Slot for the content placed at the end\n\n### Custom CSS Properties\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property | Description\n-------------------------------------|-------------\n`--vaadin-horizontal-layout-margin` | The default CSS margin applied when using `theme=\"margin\"`\n`--vaadin-horizontal-layout-padding` | The default CSS padding applied when using `theme=\"padding\"`\n`--vaadin-horizontal-layout-gap` | The default CSS gap applied when using `theme=\"spacing\"`\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
12
12
|
"attributes": [
|
|
13
13
|
{
|
|
14
14
|
"name": "theme",
|
package/web-types.lit.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": "25.0.0-
|
|
4
|
+
"version": "25.0.0-beta4",
|
|
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```html\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
|
|
19
|
+
"description": "`<vaadin-horizontal-layout>` provides a simple way to horizontally align your HTML elements.\n\n```html\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\n`theme=\"padding\"` | Applies the default amount of CSS padding for the host element\n`theme=\"spacing\"` | Applies the default amount of CSS margin between items\n`theme=\"wrap\"` | Items wrap to the next row when they exceed the layout width\n\n### Component's slots\n\nThe following slots are available to be set:\n\nSlot name | Description\n-------------------|---------------\nno name | Default slot\n`middle` | Slot for the content placed in the middle\n`end` | Slot for the content placed at the end\n\n### Custom CSS Properties\n\nThe following custom CSS properties are available for styling:\n\nCustom CSS property | Description\n-------------------------------------|-------------\n`--vaadin-horizontal-layout-margin` | The default CSS margin applied when using `theme=\"margin\"`\n`--vaadin-horizontal-layout-padding` | The default CSS padding applied when using `theme=\"padding\"`\n`--vaadin-horizontal-layout-gap` | The default CSS gap applied when using `theme=\"spacing\"`\n\nSee [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.",
|
|
20
20
|
"extension": true,
|
|
21
21
|
"attributes": []
|
|
22
22
|
}
|