@vaadin/progress-bar 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
@@ -1,13 +1,10 @@
1
- # <vaadin-progress-bar>
1
+ # @vaadin/progress-bar
2
2
 
3
- [Live Demo ↗](https://vaadin.com/components/vaadin-progress-bar/html-examples)
4
- |
5
- [API documentation ↗](https://vaadin.com/components/vaadin-progress-bar/html-api)
3
+ A web component for showing the completion status of a task or process.
6
4
 
7
- [<vaadin-progress-bar>](https://vaadin.com/components/vaadin-progress-bar) is a progress bar Web Component, part of the [Vaadin components](https://vaadin.com/components).
5
+ [Documentation + Live Demo ↗](https://vaadin.com/docs/latest/ds/components/progress-bar)
8
6
 
9
7
  [![npm version](https://badgen.net/npm/v/@vaadin/progress-bar)](https://www.npmjs.com/package/@vaadin/progress-bar)
10
- [![Published on Vaadin Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/vaadinvaadin-progress-bar)
11
8
  [![Discord](https://img.shields.io/discord/732335336448852018?label=discord)](https://discord.gg/PHmkCKC)
12
9
 
13
10
  ```html
@@ -16,41 +13,44 @@
16
13
  <vaadin-progress-bar indeterminate></vaadin-progress-bar>
17
14
  ```
18
15
 
19
- [<img src="https://raw.githubusercontent.com/vaadin/vaadin-progress-bar/master/screenshot.gif" width="418" alt="Screenshot of vaadin-progress-bar">](https://vaadin.com/components/vaadin-progress-bar)
16
+ [<img src="https://raw.githubusercontent.com/vaadin/vaadin-progress-bar/master/screenshot.gif" width="418" alt="Screenshot of vaadin-progress-bar">](https://vaadin.com/docs/latest/ds/components/progress-bar)
20
17
 
21
18
  ## Installation
22
19
 
23
- Install `vaadin-progress-bar`:
20
+ Install the component:
24
21
 
25
22
  ```sh
26
- npm i @vaadin/progress-bar --save
23
+ npm i @vaadin/progress-bar
27
24
  ```
28
25
 
29
- Once installed, import it in your application:
26
+ Once installed, import the component in your application:
30
27
 
31
28
  ```js
32
- import '@vaadin/progress-bar/vaadin-progress-bar.js';
29
+ import '@vaadin/progress-bar';
33
30
  ```
34
31
 
35
- ## Getting started
32
+ ## Themes
36
33
 
37
- Vaadin components use the Lumo theme by default.
34
+ Vaadin components come with two built-in [themes](https://vaadin.com/docs/latest/ds/customization/using-themes), Lumo and Material.
35
+ The [main entrypoint](https://github.com/vaadin/web-components/blob/master/packages/progress-bar/vaadin-progress-bar.js) of the package uses Lumo theme.
38
36
 
39
- To use the Material theme, import the correspondent file from the `theme/material` folder.
37
+ To use the Material theme, import the component from the `theme/material` folder:
40
38
 
41
- ## Entry points
42
-
43
- - The component with the Lumo theme:
44
-
45
- `theme/lumo/vaadin-progress-bar.js`
39
+ ```js
40
+ import '@vaadin/progress-bar/theme/material/vaadin-progress-bar.js';
41
+ ```
46
42
 
47
- - The component with the Material theme:
43
+ You can also import the Lumo version of the component explicitly:
48
44
 
49
- `theme/material/vaadin-progress-bar.js`
45
+ ```js
46
+ import '@vaadin/progress-bar/theme/lumo/vaadin-progress-bar.js';
47
+ ```
50
48
 
51
- - Alias for `theme/lumo/vaadin-progress-bar.js`:
49
+ Finally, you can import the un-themed component from the `src` folder to get a minimal starting point:
52
50
 
53
- - `vaadin-progress-bar.js`
51
+ ```js
52
+ import '@vaadin/progress-bar/src/vaadin-progress-bar.js';
53
+ ```
54
54
 
55
55
  ## Contributing
56
56
 
@@ -60,4 +60,5 @@ Read the [contributing guide](https://vaadin.com/docs/latest/guide/contributing/
60
60
 
61
61
  Apache License 2.0
62
62
 
63
- Vaadin collects development time usage statistics to improve this product. For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.
63
+ Vaadin collects usage statistics at development time to improve this product.
64
+ 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/progress-bar",
3
- "version": "22.0.0-beta1",
3
+ "version": "22.0.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -33,15 +33,16 @@
33
33
  "polymer"
34
34
  ],
35
35
  "dependencies": {
36
+ "@open-wc/dedupe-mixin": "^1.3.0",
36
37
  "@polymer/polymer": "^3.0.0",
37
- "@vaadin/component-base": "22.0.0-beta1",
38
- "@vaadin/vaadin-lumo-styles": "22.0.0-beta1",
39
- "@vaadin/vaadin-material-styles": "22.0.0-beta1",
40
- "@vaadin/vaadin-themable-mixin": "22.0.0-beta1"
38
+ "@vaadin/component-base": "^22.0.1",
39
+ "@vaadin/vaadin-lumo-styles": "^22.0.1",
40
+ "@vaadin/vaadin-material-styles": "^22.0.1",
41
+ "@vaadin/vaadin-themable-mixin": "^22.0.1"
41
42
  },
42
43
  "devDependencies": {
43
44
  "@esm-bundle/chai": "^4.3.4",
44
- "@vaadin/testing-helpers": "^0.3.0"
45
+ "@vaadin/testing-helpers": "^0.3.2"
45
46
  },
46
- "gitHead": "4cf8a9d0504994200c610e44b3676114fef49c1e"
47
+ "gitHead": "2b0a2bff0369d6020f7cc33ad35506aa2d1f6f68"
47
48
  }
@@ -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 { PolymerElement, html } from '@polymer/polymer/polymer-element.js';
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
  import { ProgressMixin } from './vaadin-progress-mixin.js';
@@ -3,14 +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 { Constructor } from '@open-wc/dedupe-mixin';
6
7
 
7
- declare function ProgressMixin<T extends new (...args: any[]) => {}>(base: T): T & ProgressMixinConstructor;
8
+ export declare function ProgressMixin<T extends Constructor<HTMLElement>>(base: T): T & Constructor<ProgressMixinClass>;
8
9
 
9
- interface ProgressMixinConstructor {
10
- new (...args: any[]): ProgressMixin;
11
- }
12
-
13
- interface ProgressMixin {
10
+ export declare class ProgressMixinClass {
14
11
  /**
15
12
  * Current progress value.
16
13
  */
@@ -32,5 +29,3 @@ interface ProgressMixin {
32
29
  */
33
30
  indeterminate: boolean;
34
31
  }
35
-
36
- export { ProgressMixin, ProgressMixinConstructor };
@@ -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-progress-bar',
@@ -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-progress-bar',