@vaadin/split-layout 22.0.0-alpha9 → 22.0.0

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
@@ -1,13 +1,10 @@
1
- # <vaadin-split-layout>
1
+ # @vaadin/split-layout
2
2
 
3
- [Live Demo ↗](https://vaadin.com/components/vaadin-split-layout/html-examples)
4
- |
5
- [API documentation ↗](https://vaadin.com/components/vaadin-split-layout/html-api)
3
+ A web component with two content areas and a draggable split handle between them.
6
4
 
7
- [<vaadin-split-layout>](https://vaadin.com/components/vaadin-split-layout) is a Web Component implementing a split layout for two content elements with a draggable splitter between them, part of the [Vaadin components](https://vaadin.com/components).
5
+ [Documentation + Live Demo ↗](https://vaadin.com/docs/latest/ds/components/split-layout)
8
6
 
9
7
  [![npm version](https://badgen.net/npm/v/@vaadin/split-layout)](https://www.npmjs.com/package/@vaadin/split-layout)
10
- [![Published on Vaadin Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/vaadinvaadin-split-layout)
11
8
  [![Discord](https://img.shields.io/discord/732335336448852018?label=discord)](https://discord.gg/PHmkCKC)
12
9
 
13
10
  ```html
@@ -23,41 +20,44 @@
23
20
  </vaadin-split-layout>
24
21
  ```
25
22
 
26
- [<img src="https://raw.githubusercontent.com/vaadin/vaadin-split-layout/master/screenshot.png" width="616" alt="Screenshot of vaadin-split-layout">](https://vaadin.com/components/vaadin-split-layout)
23
+ [<img src="https://raw.githubusercontent.com/vaadin/web-components/master/packages/split-layout/screenshot.png" width="616" alt="Screenshot of vaadin-split-layout">](https://vaadin.com/docs/latest/ds/components/split-layout)
27
24
 
28
25
  ## Installation
29
26
 
30
- Install `vaadin-split-layout`:
27
+ Install the component:
31
28
 
32
29
  ```sh
33
- npm i @vaadin/split-layout --save
30
+ npm i @vaadin/split-layout
34
31
  ```
35
32
 
36
- Once installed, import it in your application:
33
+ Once installed, import the component in your application:
37
34
 
38
35
  ```js
39
- import '@vaadin/split-layout/vaadin-split-layout.js';
36
+ import '@vaadin/split-layout';
40
37
  ```
41
38
 
42
- ## Getting started
39
+ ## Themes
43
40
 
44
- Vaadin components use the Lumo theme by default.
41
+ Vaadin components come with two built-in [themes](https://vaadin.com/docs/latest/ds/customization/using-themes), Lumo and Material.
42
+ The [main entrypoint](https://github.com/vaadin/web-components/blob/master/packages/split-layout/vaadin-split-layout.js) of the package uses the Lumo theme.
45
43
 
46
- To use the Material theme, import the correspondent file from the `theme/material` folder.
44
+ To use the Material theme, import the component from the `theme/material` folder:
47
45
 
48
- ## Entry points
49
-
50
- - The component with the Lumo theme:
51
-
52
- `theme/lumo/vaadin-split-layout.js`
46
+ ```js
47
+ import '@vaadin/split-layout/theme/material/vaadin-split-layout.js';
48
+ ```
53
49
 
54
- - The component with the Material theme:
50
+ You can also import the Lumo version of the component explicitly:
55
51
 
56
- `theme/material/vaadin-split-layout.js`
52
+ ```js
53
+ import '@vaadin/split-layout/theme/lumo/vaadin-split-layout.js';
54
+ ```
57
55
 
58
- - Alias for `theme/lumo/vaadin-split-layout.js`:
56
+ Finally, you can import the un-themed component from the `src` folder to get a minimal starting point:
59
57
 
60
- `vaadin-split-layout.js`
58
+ ```js
59
+ import '@vaadin/split-layout/src/vaadin-split-layout.js';
60
+ ```
61
61
 
62
62
  ## Contributing
63
63
 
@@ -67,4 +67,5 @@ Read the [contributing guide](https://vaadin.com/docs/latest/guide/contributing/
67
67
 
68
68
  Apache License 2.0
69
69
 
70
- Vaadin collects development time usage statistics to improve this product. For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.
70
+ Vaadin collects usage statistics at development time to improve this product.
71
+ 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/split-layout",
3
- "version": "22.0.0-alpha9",
3
+ "version": "22.0.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -34,15 +34,15 @@
34
34
  "dependencies": {
35
35
  "@polymer/iron-resizable-behavior": "^3.0.0",
36
36
  "@polymer/polymer": "^3.0.0",
37
- "@vaadin/component-base": "22.0.0-alpha9",
38
- "@vaadin/vaadin-lumo-styles": "22.0.0-alpha9",
39
- "@vaadin/vaadin-material-styles": "22.0.0-alpha9",
40
- "@vaadin/vaadin-themable-mixin": "22.0.0-alpha9"
37
+ "@vaadin/component-base": "^22.0.0",
38
+ "@vaadin/vaadin-lumo-styles": "^22.0.0",
39
+ "@vaadin/vaadin-material-styles": "^22.0.0",
40
+ "@vaadin/vaadin-themable-mixin": "^22.0.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@esm-bundle/chai": "^4.3.4",
44
- "@vaadin/testing-helpers": "^0.3.0",
44
+ "@vaadin/testing-helpers": "^0.3.2",
45
45
  "sinon": "^9.2.1"
46
46
  },
47
- "gitHead": "6e8c899dc65918f97e3c0acb2076122c4b2ef274"
47
+ "gitHead": "b668e9b1a975227fbe34beb70d1cd5b03dce2348"
48
48
  }
@@ -3,11 +3,11 @@
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 { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
6
+ import { IronResizableBehavior } from '@polymer/iron-resizable-behavior/iron-resizable-behavior.js';
7
7
  import { mixinBehaviors } from '@polymer/polymer/lib/legacy/class.js';
8
8
  import { GestureEventListeners } from '@polymer/polymer/lib/mixins/gesture-event-listeners.js';
9
9
  import { FlattenedNodesObserver } from '@polymer/polymer/lib/utils/flattened-nodes-observer.js';
10
- import { IronResizableBehavior } from '@polymer/iron-resizable-behavior/iron-resizable-behavior.js';
10
+ import { html, PolymerElement } from '@polymer/polymer/polymer-element.js';
11
11
  import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js';
12
12
  import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
13
13
 
@@ -1,8 +1,8 @@
1
- import { registerStyles, css } from '@vaadin/vaadin-themable-mixin/register-styles.js';
2
1
  import '@vaadin/vaadin-lumo-styles/color.js';
3
2
  import '@vaadin/vaadin-lumo-styles/sizing.js';
4
3
  import '@vaadin/vaadin-lumo-styles/spacing.js';
5
4
  import '@vaadin/vaadin-lumo-styles/style.js';
5
+ import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
6
6
 
7
7
  registerStyles(
8
8
  'vaadin-split-layout',
@@ -1,5 +1,5 @@
1
- import { registerStyles, css } from '@vaadin/vaadin-themable-mixin/register-styles.js';
2
1
  import '@vaadin/vaadin-material-styles/color.js';
2
+ import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
3
3
 
4
4
  registerStyles(
5
5
  'vaadin-split-layout',