Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 20 additions & 12 deletions packages/progress-bar/src/vaadin-progress-bar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,32 @@ import { ProgressMixin } from './vaadin-progress-mixin.js';
*
* The following shadow DOM parts are available for styling:
*
* Part name | Description
* ----------------|----------------
* `bar` | Progress-bar's background
* `value` | Progress-bar's foreground
*
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
*
* The following custom properties are available:
*
* Custom property | Description | Default
* ----------------|-------------|-------------
* `--vaadin-progress-value` | current progress value (between 0 and 1) | 0
* Part name | Description
* -----------|----------------
* `bar` | Progress-bar's background
* `value` | Progress-bar's foreground
*
* The following custom CSS properties are available for styling:
*
* Custom CSS property |
* :--------------------------------------------|
* | `--vaadin-progress-bar-animation-duration` |
* | `--vaadin-progress-bar-background` |
* | `--vaadin-progress-bar-border-color` |
* | `--vaadin-progress-bar-border-radius` |
* | `--vaadin-progress-bar-border-width` |
* | `--vaadin-progress-bar-height` |
* | `--vaadin-progress-bar-padding` |
* | `--vaadin-progress-bar-value-background` |
* | `--vaadin-progress-value` |
*
* The following state attributes are available for styling:
*
* Attribute | Description
* ----------------|-------------------------------------
* `indeterminate` | Set to an indeterminate progress bar
*
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
*/
declare class ProgressBar extends ProgressMixin(ThemableMixin(ElementMixin(HTMLElement))) {}

Expand Down
28 changes: 18 additions & 10 deletions packages/progress-bar/src/vaadin-progress-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,33 @@ import { ProgressMixin } from './vaadin-progress-mixin.js';
*
* The following shadow DOM parts are available for styling:
*
* Part name | Description
* ----------------|----------------
* `bar` | Progress-bar's background
* `value` | Progress-bar's foreground
* Part name | Description
* -----------|----------------
* `bar` | Progress-bar's background
* `value` | Progress-bar's foreground
*
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
*
* The following custom properties are available:
* The following custom CSS properties are available for styling:
*
* Custom property | Description | Default
* ----------------|-------------|-------------
* `--vaadin-progress-value` | current progress value (between 0 and 1) | 0
* Custom CSS property |
* :--------------------------------------------|
* | `--vaadin-progress-bar-animation-duration` |
* | `--vaadin-progress-bar-background` |
* | `--vaadin-progress-bar-border-color` |
* | `--vaadin-progress-bar-border-radius` |
* | `--vaadin-progress-bar-border-width` |
* | `--vaadin-progress-bar-height` |
* | `--vaadin-progress-bar-padding` |
* | `--vaadin-progress-bar-value-background` |
* | `--vaadin-progress-value` |
*
* The following state attributes are available for styling:
*
* Attribute | Description
* ----------------|-------------------------------------
* `indeterminate` | Set to an indeterminate progress bar
*
* See [Styling Components](https://vaadin.com/docs/latest/styling/styling-components) documentation.
*
* @customElement
* @extends HTMLElement
* @mixes ProgressMixin
Expand Down