Skip to content

Commit b63e7f1

Browse files
authored
feature: uui-range-slider (#325)
* init * story and text * better tab navigation and optimized evnt listeners * max-gap logic added * disable color * Event dispatching fixes * value update & unit test * value update * validator+rename variables to match property name
1 parent be41090 commit b63e7f1

File tree

11 files changed

+1272
-0
lines changed

11 files changed

+1272
-0
lines changed

package-lock.json

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/uui-range-slider/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# uui-range-slider
2+
3+
![npm](https://img.shields.io/npm/v/@umbraco-ui/uui-range-slider?logoColor=%231B264F)
4+
5+
Umbraco style range-slider component.
6+
7+
## Installation
8+
9+
### ES imports
10+
11+
```zsh
12+
npm i @umbraco-ui/uui-range-slider
13+
```
14+
15+
Import the registration of `<uui-range-slider>` via:
16+
17+
```javascript
18+
import '@umbraco-ui/uui-range-slider';
19+
```
20+
21+
When looking to leverage the `UUIRangeSliderElement` base class as a type and/or for extension purposes, do so via:
22+
23+
```javascript
24+
import { UUIRangeSliderElement } from '@umbraco-ui/uui-range-slider';
25+
```
26+
27+
## Usage
28+
29+
```html
30+
<uui-range-slider></uui-range-slider>
31+
```
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { UUIEvent } from '@umbraco-ui/uui-base/lib/events';
2+
import { UUIRangeSliderElement } from './uui-range-slider.element';
3+
4+
export class UUIRangeSliderEvent extends UUIEvent<{}, UUIRangeSliderElement> {
5+
public static readonly INPUT = 'input';
6+
public static readonly CHANGE = 'change';
7+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './uui-range-slider.element';

0 commit comments

Comments
 (0)