Socket
Socket
Sign inDemoInstall

@vaadin/progress-bar

Package Overview
Dependencies
Maintainers
19
Versions
371
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/progress-bar - npm Package Compare versions

Comparing version 22.0.0-beta1 to 22.0.0-beta2

13

package.json
{
"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)
[![npm version](https://badgen.net/npm/v/@vaadin/progress-bar)](https://www.npmjs.com/package/@vaadin/progress-bar)
[![Published on Vaadin Directory](https://img.shields.io/badge/Vaadin%20Directory-published-00b4f0.svg)](https://vaadin.com/directory/component/vaadinvaadin-progress-bar)
[![Discord](https://img.shields.io/discord/732335336448852018?label=discord)](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(

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc