@vaadin/horizontal-layout 22.0.0-beta1 → 22.0.1
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/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
A web component that places its content side-by-side in a row.
|
|
4
4
|
|
|
5
|
-
[Live Demo ↗](https://vaadin.com/docs/latest/ds/components/basic-layouts/#horizontal-layout)
|
|
5
|
+
[Documentation + Live Demo ↗](https://vaadin.com/docs/latest/ds/components/basic-layouts/#horizontal-layout)
|
|
6
6
|
|
|
7
7
|
```html
|
|
8
8
|
<vaadin-horizontal-layout theme="spacing padding">
|
|
@@ -18,7 +18,7 @@ A web component that places its content side-by-side in a row.
|
|
|
18
18
|
Install the component:
|
|
19
19
|
|
|
20
20
|
```sh
|
|
21
|
-
npm i @vaadin/horizontal-layout
|
|
21
|
+
npm i @vaadin/horizontal-layout
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
Once installed, import the component in your application:
|
|
@@ -29,9 +29,8 @@ import '@vaadin/horizontal-layout';
|
|
|
29
29
|
|
|
30
30
|
## Themes
|
|
31
31
|
|
|
32
|
-
Vaadin components come with two built-in [themes](https://vaadin.com/docs/latest/ds/customization/using-themes),
|
|
33
|
-
|
|
34
|
-
of the package uses the Lumo theme.
|
|
32
|
+
Vaadin components come with two built-in [themes](https://vaadin.com/docs/latest/ds/customization/using-themes), Lumo and Material.
|
|
33
|
+
The [main entrypoint](https://github.com/vaadin/web-components/blob/master/packages/horizontal-layout/vaadin-horizontal-layout.js) of the package uses the Lumo theme.
|
|
35
34
|
|
|
36
35
|
To use the Material theme, import the component from the `theme/material` folder:
|
|
37
36
|
|
|
@@ -51,9 +50,13 @@ Finally, you can import the un-themed component from the `src` folder to get a m
|
|
|
51
50
|
import '@vaadin/horizontal-layout/src/vaadin-horizontal-layout.js';
|
|
52
51
|
```
|
|
53
52
|
|
|
53
|
+
## Contributing
|
|
54
|
+
|
|
55
|
+
Read the [contributing guide](https://vaadin.com/docs/latest/guide/contributing/overview) to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components.
|
|
56
|
+
|
|
54
57
|
## License
|
|
55
58
|
|
|
56
59
|
Apache License 2.0
|
|
57
60
|
|
|
58
|
-
Vaadin collects development time
|
|
61
|
+
Vaadin collects usage statistics at development time to improve this product.
|
|
59
62
|
For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/horizontal-layout",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@polymer/polymer": "^3.0.0",
|
|
36
|
-
"@vaadin/component-base": "22.0.
|
|
37
|
-
"@vaadin/vaadin-lumo-styles": "22.0.
|
|
38
|
-
"@vaadin/vaadin-material-styles": "22.0.
|
|
39
|
-
"@vaadin/vaadin-themable-mixin": "22.0.
|
|
36
|
+
"@vaadin/component-base": "^22.0.1",
|
|
37
|
+
"@vaadin/vaadin-lumo-styles": "^22.0.1",
|
|
38
|
+
"@vaadin/vaadin-material-styles": "^22.0.1",
|
|
39
|
+
"@vaadin/vaadin-themable-mixin": "^22.0.1"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@esm-bundle/chai": "^4.3.4",
|
|
43
|
-
"@vaadin/testing-helpers": "^0.3.
|
|
43
|
+
"@vaadin/testing-helpers": "^0.3.2"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "2b0a2bff0369d6020f7cc33ad35506aa2d1f6f68"
|
|
46
46
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright (c) 2021 Vaadin Ltd.
|
|
4
4
|
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
5
|
*/
|
|
6
|
-
import {
|
|
6
|
+
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
|
|
7
7
|
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
|
|
8
8
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
9
9
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { registerStyles, css } from '@vaadin/vaadin-themable-mixin/register-styles.js';
|
|
2
1
|
import '@vaadin/vaadin-lumo-styles/spacing.js';
|
|
2
|
+
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
3
3
|
|
|
4
4
|
const horizontalLayout = css`
|
|
5
5
|
:host([theme~='margin']) {
|