@vaadin/progress-bar
Advanced tools
Comparing version
{ | ||
"name": "@vaadin/progress-bar", | ||
"version": "22.0.0-beta1", | ||
"version": "22.0.0-beta2", | ||
"publishConfig": { | ||
@@ -36,7 +36,8 @@ "access": "public" | ||
"dependencies": { | ||
"@open-wc/dedupe-mixin": "^1.3.0", | ||
"@polymer/polymer": "^3.0.0", | ||
"@vaadin/component-base": "22.0.0-beta1", | ||
"@vaadin/vaadin-lumo-styles": "22.0.0-beta1", | ||
"@vaadin/vaadin-material-styles": "22.0.0-beta1", | ||
"@vaadin/vaadin-themable-mixin": "22.0.0-beta1" | ||
"@vaadin/component-base": "22.0.0-beta2", | ||
"@vaadin/vaadin-lumo-styles": "22.0.0-beta2", | ||
"@vaadin/vaadin-material-styles": "22.0.0-beta2", | ||
"@vaadin/vaadin-themable-mixin": "22.0.0-beta2" | ||
}, | ||
@@ -47,3 +48,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "4cf8a9d0504994200c610e44b3676114fef49c1e" | ||
"gitHead": "f13833683e6667f6ca6678452db14aa6b7eac4a4" | ||
} |
@@ -1,11 +0,8 @@ | ||
# <vaadin-progress-bar> | ||
# @vaadin/progress-bar | ||
[Live Demo ↗](https://vaadin.com/components/vaadin-progress-bar/html-examples) | ||
| | ||
[API documentation ↗](https://vaadin.com/components/vaadin-progress-bar/html-api) | ||
A web component for showing the completion status of a task or process. | ||
[<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). | ||
[Documentation + Live Demo ↗](https://vaadin.com/docs/latest/ds/components/progress-bar) | ||
[](https://www.npmjs.com/package/@vaadin/progress-bar) | ||
[](https://vaadin.com/directory/component/vaadinvaadin-progress-bar) | ||
[](https://discord.gg/PHmkCKC) | ||
@@ -19,38 +16,41 @@ | ||
[<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) | ||
[<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) | ||
## Installation | ||
Install `vaadin-progress-bar`: | ||
Install the component: | ||
```sh | ||
npm i @vaadin/progress-bar --save | ||
npm i @vaadin/progress-bar | ||
``` | ||
Once installed, import it in your application: | ||
Once installed, import the component in your application: | ||
```js | ||
import '@vaadin/progress-bar/vaadin-progress-bar.js'; | ||
import '@vaadin/progress-bar'; | ||
``` | ||
## Getting started | ||
## Themes | ||
Vaadin components use the Lumo theme by default. | ||
Vaadin components come with two built-in [themes](https://vaadin.com/docs/latest/ds/customization/using-themes), Lumo and Material. | ||
The [main entrypoint](https://github.com/vaadin/web-components/blob/master/packages/progress-bar/vaadin-progress-bar.js) of the package uses Lumo theme. | ||
To use the Material theme, import the correspondent file from the `theme/material` folder. | ||
To use the Material theme, import the component from the `theme/material` folder: | ||
## Entry points | ||
```js | ||
import '@vaadin/progress-bar/theme/material/vaadin-progress-bar.js'; | ||
``` | ||
- The component with the Lumo theme: | ||
You can also import the Lumo version of the component explicitly: | ||
`theme/lumo/vaadin-progress-bar.js` | ||
```js | ||
import '@vaadin/progress-bar/theme/lumo/vaadin-progress-bar.js'; | ||
``` | ||
- The component with the Material theme: | ||
Finally, you can import the un-themed component from the `src` folder to get a minimal starting point: | ||
`theme/material/vaadin-progress-bar.js` | ||
```js | ||
import '@vaadin/progress-bar/src/vaadin-progress-bar.js'; | ||
``` | ||
- Alias for `theme/lumo/vaadin-progress-bar.js`: | ||
- `vaadin-progress-bar.js` | ||
## Contributing | ||
@@ -64,2 +64,3 @@ | ||
Vaadin collects development time usage statistics to improve this product. For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics. | ||
Vaadin collects usage statistics at development time to improve this product. | ||
For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics. |
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
import { PolymerElement, html } from '@polymer/polymer/polymer-element.js'; | ||
import { html, PolymerElement } from '@polymer/polymer/polymer-element.js'; | ||
import { ElementMixin } from '@vaadin/component-base/src/element-mixin.js'; | ||
@@ -9,0 +9,0 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; |
@@ -6,10 +6,7 @@ /** | ||
*/ | ||
import { Constructor } from '@open-wc/dedupe-mixin'; | ||
declare function ProgressMixin<T extends new (...args: any[]) => {}>(base: T): T & ProgressMixinConstructor; | ||
export declare function ProgressMixin<T extends Constructor<HTMLElement>>(base: T): T & Constructor<ProgressMixinClass>; | ||
interface ProgressMixinConstructor { | ||
new (...args: any[]): ProgressMixin; | ||
} | ||
interface ProgressMixin { | ||
export declare class ProgressMixinClass { | ||
/** | ||
@@ -36,3 +33,1 @@ * Current progress value. | ||
} | ||
export { ProgressMixin, ProgressMixinConstructor }; |
@@ -1,2 +0,1 @@ | ||
import { registerStyles, css } from '@vaadin/vaadin-themable-mixin/register-styles.js'; | ||
import '@vaadin/vaadin-lumo-styles/color.js'; | ||
@@ -6,2 +5,3 @@ import '@vaadin/vaadin-lumo-styles/sizing.js'; | ||
import '@vaadin/vaadin-lumo-styles/style.js'; | ||
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
@@ -8,0 +8,0 @@ registerStyles( |
@@ -1,3 +0,3 @@ | ||
import { registerStyles, css } from '@vaadin/vaadin-themable-mixin/register-styles.js'; | ||
import '@vaadin/vaadin-material-styles/color.js'; | ||
import { css, registerStyles } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js'; | ||
@@ -4,0 +4,0 @@ registerStyles( |
65
1.56%32872
-0.06%6
20%608
-0.49%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed