@c2n/slider 0.0.6

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Nguyen Thai Vinh
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # @c2n/slider
2
+
3
+ Slider built with Lit on a native `<input type="range">`: the browser handles dragging, keyboard steps, RTL and the `slider` role; the component draws a themeable track, fill, thumb, step ticks and a value bubble.
4
+
5
+ ```bash
6
+ npm install @c2n/slider
7
+ ```
8
+
9
+ ```html
10
+ <script type="module">
11
+ import '@c2n/slider'
12
+ </script>
13
+
14
+ <c2-slider value="40" aria-label="Volume"></c2-slider>
15
+ <c2-slider min="0" max="10" step="1" value="6" ticks show-value aria-label="Rating"></c2-slider>
16
+ <c2-slider orientation="vertical" value="70" aria-label="Level"></c2-slider>
17
+ ```
18
+
19
+ - **Value**: `value`, `min`, `max` and `step` mirror the native input; `value` reflects and is snapped by the browser. `input` fires on every step of a drag, `change` when the value is committed.
20
+ - **Bubble**: `show-value` shows the value above the thumb while hovering, dragging or focused; `--c2-slider__value--opacity: 1` keeps it always on. Set the `formatValue` property (`(v) => \`${v}%\``) to format both the bubble and `aria-valuetext`.
21
+ - **Ticks**: `ticks` draws a mark for every `step` (up to 200), coloured differently on the filled part.
22
+ - **Orientation**: `orientation="vertical"` turns the track upright; its length is `--c2-slider__container--length`. Horizontal sliders fill their width.
23
+ - **Accessibility**: label it with `aria-label` or `aria-labelledby`; Arrow keys, Page Up/Down, Home and End work natively.
24
+
25
+ Theme the track (`--c2-slider__track--*`, `--c2-slider__fill--color`), the thumb (`--c2-slider__thumb--*`, with hover and active halos and a focus ring), the ticks and the bubble. The full list is in `custom-elements.json` and on the docs site.
package/dist/slider.js ADDED
@@ -0,0 +1,140 @@
1
+ import { LitElement, html, nothing, unsafeCSS } from "lit";
2
+ import { customElement, property, query } from "lit/decorators.js";
3
+ import { classMap } from "lit/directives/class-map.js";
4
+ import { ifDefined } from "lit/directives/if-defined.js";
5
+ import { styleMap } from "lit/directives/style-map.js";
6
+ import { redispatchEvent } from "@c2n/core/dom-helper.js";
7
+ //#region src/slider.scss?inline
8
+ var slider_default = "/* ex : var((width: 24px), width, c2-checkbox) returns var(--c2-checkbox-width, 24px) */\n:host {\n display: block;\n width: 100%;\n box-sizing: border-box;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host([orientation=vertical]) {\n display: inline-block;\n width: var(--c2-slider__container--height,32px);\n height: var(--c2-slider__container--length,160px);\n}\n\n.c2-slider {\n position: relative;\n box-sizing: border-box;\n width: 100%;\n height: var(--c2-slider__container--height,32px);\n display: flex;\n align-items: center;\n touch-action: pan-y;\n}\n\n:host([orientation=vertical]) .c2-slider {\n width: var(--c2-slider__container--height,32px);\n height: 100%;\n justify-content: center;\n touch-action: pan-x;\n}\n\n:host([disabled]) .c2-slider {\n opacity: var(--c2-slider__container__disabled--opacity,0.38);\n}\n\n.c2-slider-track {\n position: relative;\n flex: 1;\n height: var(--c2-slider__track--height,4px);\n border-radius: var(--c2-slider__track--border-radius,999px);\n background: var(--c2-slider__track--color,#e4e4e7);\n}\n\n:host([orientation=vertical]) .c2-slider-track {\n flex: none;\n width: var(--c2-slider__track--height,4px);\n height: 100%;\n}\n\n.c2-slider-fill {\n position: absolute;\n inset-block: 0;\n inset-inline-start: 0;\n width: calc(var(--c2-slider__thumb--size,18px) / 2 + var(--_p) * (100% - var(--c2-slider__thumb--size,18px)));\n border-radius: inherit;\n background: var(--c2-slider__fill--color,#0265dc);\n}\n\n:host([orientation=vertical]) .c2-slider-fill {\n inset: auto 0 0 0;\n width: auto;\n height: calc(var(--c2-slider__thumb--size,18px) / 2 + var(--_p) * (100% - var(--c2-slider__thumb--size,18px)));\n}\n\n.c2-slider-ticks {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n\n.c2-slider-tick {\n position: absolute;\n top: 50%;\n inset-inline-start: calc(var(--c2-slider__thumb--size,18px) / 2 + var(--_p) * (100% - var(--c2-slider__thumb--size,18px)));\n width: var(--c2-slider__tick--size,2px);\n height: var(--c2-slider__tick--size,2px);\n border-radius: 999px;\n background: var(--c2-slider__tick--color,#a1a1aa);\n transform: translate(-50%, -50%);\n}\n.c2-slider-tick.is-filled {\n background: var(--c2-slider__tick__filled--color,#ffffff);\n}\n\n:host(:dir(rtl)) .c2-slider-tick {\n transform: translate(50%, -50%);\n}\n\n:host([orientation=vertical]) .c2-slider-tick {\n top: auto;\n left: 50%;\n right: auto;\n bottom: calc(var(--c2-slider__thumb--size,18px) / 2 + var(--_p) * (100% - var(--c2-slider__thumb--size,18px)));\n transform: translate(-50%, 50%);\n}\n\n.c2-slider-thumb {\n position: absolute;\n top: 50%;\n inset-inline-start: calc(var(--c2-slider__thumb--size,18px) / 2 + var(--_p) * (100% - var(--c2-slider__thumb--size,18px)));\n width: var(--c2-slider__thumb--size,18px);\n height: var(--c2-slider__thumb--size,18px);\n box-sizing: border-box;\n border-radius: var(--c2-slider__thumb--border-radius,999px);\n background: var(--c2-slider__thumb--color,#ffffff);\n border: var(--c2-slider__thumb--border,2px solid #0265dc);\n box-shadow: var(--c2-slider__thumb--box-shadow,0 1px 3px rgba(0, 0, 0, 0.15));\n transform: translate(-50%, -50%);\n pointer-events: none;\n transition: box-shadow 250ms cubic-bezier(0.2, 0, 0, 1);\n}\n\n:host(:dir(rtl)) .c2-slider-thumb {\n transform: translate(50%, -50%);\n}\n\n:host([orientation=vertical]) .c2-slider-thumb {\n top: auto;\n left: 50%;\n right: auto;\n bottom: calc(var(--c2-slider__thumb--size,18px) / 2 + var(--_p) * (100% - var(--c2-slider__thumb--size,18px)));\n transform: translate(-50%, 50%);\n}\n\n.c2-slider-value {\n position: absolute;\n bottom: calc(100% + var(--c2-slider__value--offset,8px));\n left: 50%;\n transform: translateX(-50%);\n padding: var(--c2-slider__value--padding,4px 8px);\n border-radius: var(--c2-slider__value--border-radius,6px);\n background: var(--c2-slider__value--background,#18181b);\n color: var(--c2-slider__value--color,#fafafa);\n font-size: var(--c2-slider__value--font-size,12px);\n font-weight: var(--c2-slider__value--font-weight,500);\n line-height: 1.2;\n white-space: nowrap;\n opacity: var(--c2-slider__value--opacity,0);\n transition: opacity 250ms cubic-bezier(0.2, 0, 0, 1);\n}\n\n:host([orientation=vertical]) .c2-slider-value {\n bottom: auto;\n left: calc(100% + var(--c2-slider__value--offset,8px));\n top: 50%;\n transform: translateY(-50%);\n}\n\n.c2-slider-input {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n opacity: 0;\n cursor: pointer;\n appearance: none;\n -webkit-appearance: none;\n background: transparent;\n}\n.c2-slider-input::-webkit-slider-thumb {\n -webkit-appearance: none;\n width: var(--c2-slider__thumb--size,18px);\n height: var(--c2-slider__thumb--size,18px);\n}\n.c2-slider-input::-moz-range-thumb {\n width: var(--c2-slider__thumb--size,18px);\n height: var(--c2-slider__thumb--size,18px);\n border: 0;\n}\n.c2-slider-input:disabled {\n cursor: default;\n}\n\n:host([orientation=vertical]) .c2-slider-input {\n writing-mode: vertical-lr;\n direction: rtl;\n}\n\n.c2-slider:has(.c2-slider-input:enabled:hover) .c2-slider-thumb {\n box-shadow: var(--c2-slider__thumb__hover--box-shadow,0 0 0 6px rgba(2, 101, 220, 0.12));\n}\n\n.c2-slider:has(.c2-slider-input:enabled:active) .c2-slider-thumb {\n box-shadow: var(--c2-slider__thumb__active--box-shadow,0 0 0 8px rgba(2, 101, 220, 0.18));\n}\n\n.c2-slider:has(.c2-slider-input:focus-visible) .c2-slider-thumb {\n outline: var(--c2-slider__thumb__focus--outline,2px solid rgba(2, 101, 220, 0.4));\n outline-offset: var(--c2-slider__thumb__focus--outline-offset,2px);\n}\n\n.c2-slider:has(.c2-slider-input:enabled:hover) .c2-slider-value,\n.c2-slider:has(.c2-slider-input:enabled:active) .c2-slider-value,\n.c2-slider:has(.c2-slider-input:focus-visible) .c2-slider-value {\n opacity: 1;\n}\n\n@media (prefers-reduced-motion: reduce) {\n .c2-slider-thumb,\n .c2-slider-value {\n transition: none;\n }\n}";
9
+ //#endregion
10
+ //#region \0@oxc-project+runtime@0.148.0/helpers/esm/decorate.js
11
+ function __decorate(decorators, target, key, desc) {
12
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
13
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
14
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
15
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
16
+ }
17
+ //#endregion
18
+ //#region src/slider.ts
19
+ var MAX_TICKS = 200;
20
+ var Slider = class Slider extends LitElement {
21
+ constructor(..._args) {
22
+ super(..._args);
23
+ this.value = 0;
24
+ this.min = 0;
25
+ this.max = 100;
26
+ this.step = 1;
27
+ this.disabled = false;
28
+ this.name = "";
29
+ this.orientation = "horizontal";
30
+ this.showValue = false;
31
+ this.ticks = false;
32
+ this.formatValue = (value) => String(value);
33
+ }
34
+ static {
35
+ this.styles = unsafeCSS(slider_default);
36
+ }
37
+ focus(options) {
38
+ this.formElement?.focus(options);
39
+ }
40
+ /** Position of the value along the track, `0` at `min` and `1` at `max`. */
41
+ get fraction() {
42
+ const range = this.max - this.min;
43
+ if (range <= 0) return 0;
44
+ return Math.min(1, Math.max(0, (this.value - this.min) / range));
45
+ }
46
+ update(changed) {
47
+ if (changed.has("value") && this.formElement) this.formElement.value = String(this.value);
48
+ super.update(changed);
49
+ }
50
+ handleInput(event) {
51
+ this.value = Number(this.formElement.value);
52
+ redispatchEvent(this, event);
53
+ }
54
+ handleChange(event) {
55
+ this.value = Number(this.formElement.value);
56
+ redispatchEvent(this, event);
57
+ }
58
+ renderTicks() {
59
+ if (!this.ticks || this.step <= 0) return nothing;
60
+ const count = Math.round((this.max - this.min) / this.step);
61
+ if (count < 1 || count > MAX_TICKS) return nothing;
62
+ const marks = [];
63
+ for (let i = 0; i <= count; i++) {
64
+ const fraction = i / count;
65
+ marks.push(html`<span
66
+ class=${classMap({
67
+ "c2-slider-tick": true,
68
+ "is-filled": fraction <= this.fraction
69
+ })}
70
+ style=${styleMap({ "--_p": String(fraction) })}
71
+ ></span>`);
72
+ }
73
+ return html`<div class="c2-slider-ticks" aria-hidden="true">${marks}</div>`;
74
+ }
75
+ render() {
76
+ const formatted = this.formatValue(this.value);
77
+ return html`
78
+ <div class="c2-slider" style=${styleMap({ "--_p": String(this.fraction) })}>
79
+ <div class="c2-slider-track" part="track">
80
+ <div class="c2-slider-fill" part="fill"></div>
81
+ ${this.renderTicks()}
82
+ <div class="c2-slider-thumb" part="thumb">
83
+ ${this.showValue ? html`<div class="c2-slider-value" part="value" aria-hidden="true">${formatted}</div>` : nothing}
84
+ </div>
85
+ </div>
86
+ <input
87
+ class="c2-slider-input"
88
+ type="range"
89
+ name=${ifDefined(this.name || void 0)}
90
+ min=${this.min}
91
+ max=${this.max}
92
+ step=${this.step}
93
+ .value=${String(this.value)}
94
+ ?disabled=${this.disabled}
95
+ aria-label=${ifDefined(this.ariaLabel)}
96
+ aria-labelledby=${ifDefined(this.ariaLabelledBy)}
97
+ aria-valuetext=${formatted}
98
+ aria-orientation=${this.orientation}
99
+ @input=${this.handleInput}
100
+ @change=${this.handleChange}
101
+ />
102
+ </div>
103
+ `;
104
+ }
105
+ };
106
+ __decorate([query("input")], Slider.prototype, "formElement", void 0);
107
+ __decorate([property({
108
+ type: Number,
109
+ reflect: true
110
+ })], Slider.prototype, "value", void 0);
111
+ __decorate([property({ type: Number })], Slider.prototype, "min", void 0);
112
+ __decorate([property({ type: Number })], Slider.prototype, "max", void 0);
113
+ __decorate([property({ type: Number })], Slider.prototype, "step", void 0);
114
+ __decorate([property({
115
+ type: Boolean,
116
+ reflect: true
117
+ })], Slider.prototype, "disabled", void 0);
118
+ __decorate([property()], Slider.prototype, "name", void 0);
119
+ __decorate([property({ reflect: true })], Slider.prototype, "orientation", void 0);
120
+ __decorate([property({
121
+ type: Boolean,
122
+ reflect: true,
123
+ attribute: "show-value"
124
+ })], Slider.prototype, "showValue", void 0);
125
+ __decorate([property({
126
+ type: Boolean,
127
+ reflect: true
128
+ })], Slider.prototype, "ticks", void 0);
129
+ __decorate([property({ attribute: false })], Slider.prototype, "formatValue", void 0);
130
+ __decorate([property({
131
+ type: String,
132
+ attribute: "aria-label"
133
+ })], Slider.prototype, "ariaLabel", void 0);
134
+ __decorate([property({
135
+ type: String,
136
+ attribute: "aria-labelledby"
137
+ })], Slider.prototype, "ariaLabelledBy", void 0);
138
+ Slider = __decorate([customElement("c2-slider")], Slider);
139
+ //#endregion
140
+ export { Slider };
package/package.json ADDED
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "@c2n/slider",
3
+ "version": "0.0.6",
4
+ "type": "module",
5
+ "main": "dist/slider.js",
6
+ "exports": {
7
+ ".": {
8
+ "default": "./dist/slider.js",
9
+ "types": "./types/src/slider.d.ts"
10
+ },
11
+ "./custom-elements.json": "./custom-elements.json"
12
+ },
13
+ "files": [
14
+ "dist",
15
+ "types"
16
+ ],
17
+ "keywords": [
18
+ "slider",
19
+ "web component",
20
+ "lit"
21
+ ],
22
+ "license": "MIT",
23
+ "author": "code2nguyen@gmail.com",
24
+ "publishConfig": {
25
+ "registry": "https://registry.npmjs.org",
26
+ "access": "public"
27
+ },
28
+ "repository": {
29
+ "type": "git",
30
+ "url": "https://github.com/code2nguyen/web-components.git"
31
+ },
32
+ "scripts": {
33
+ "dev": "vite",
34
+ "build": "wireit",
35
+ "build:only": "vite build",
36
+ "type-check": "wireit"
37
+ },
38
+ "wireit": {
39
+ "type-check": {
40
+ "dependencies": [
41
+ "../../core:build"
42
+ ],
43
+ "command": "tsc -p tsconfig.lib.json --composite false"
44
+ },
45
+ "build": {
46
+ "dependencies": [
47
+ "type-check"
48
+ ],
49
+ "command": "vite build"
50
+ }
51
+ },
52
+ "dependencies": {
53
+ "@c2n/core": "0.0.6",
54
+ "lit": "3.3.3"
55
+ },
56
+ "devDependencies": {
57
+ "@c2n/config": "*"
58
+ },
59
+ "customElements": "custom-elements.json",
60
+ "gitHead": "2921054bc75299da66dad11c1e374246ff88a51e"
61
+ }
@@ -0,0 +1,82 @@
1
+ import { LitElement, type PropertyValues } from 'lit';
2
+ export type SliderOrientation = 'horizontal' | 'vertical';
3
+ /**
4
+ * Single-value slider built on a native `<input type="range">`, so dragging, keyboard steps (Arrow keys, Page Up/Down,
5
+ * Home/End), RTL and the `slider` role come from the browser. The component draws the track, the filled part, the
6
+ * thumb, optional step `ticks` and a value bubble (`show-value`) above the thumb, all themed through CSS variables.
7
+ *
8
+ * @tag c2-slider
9
+ *
10
+ * @event {Event} input - Re-dispatched from the inner input while the value changes (every step of a drag).
11
+ * @event {Event} change - Re-dispatched from the inner input when the value is committed (pointer released, key released).
12
+ *
13
+ * @cssproperty {pixel} [--c2-slider__container--height=32px] - Height of the horizontal slider (width when vertical); the touch target.
14
+ * @cssproperty {pixel} [--c2-slider__container--length=160px] - Length of a vertical slider. A horizontal one fills its width.
15
+ * @cssproperty {opacity} [--c2-slider__container__disabled--opacity=0.38]
16
+ *
17
+ * @cssproperty {pixel} [--c2-slider__track--height=4px]
18
+ * @cssproperty {border-radius} [--c2-slider__track--border-radius=999px]
19
+ * @cssproperty {color} [--c2-slider__track--color=#e4e4e7]
20
+ * @cssproperty {color} [--c2-slider__fill--color=#0265dc] - Filled part of the track, from the start to the thumb.
21
+ *
22
+ * @cssproperty {pixel} [--c2-slider__thumb--size=18px]
23
+ * @cssproperty {border-radius} [--c2-slider__thumb--border-radius=999px]
24
+ * @cssproperty {color} [--c2-slider__thumb--color=#ffffff]
25
+ * @cssproperty {border} [--c2-slider__thumb--border=2px solid #0265dc]
26
+ * @cssproperty {box-shadow} [--c2-slider__thumb--box-shadow=0 1px 3px rgba(0, 0, 0, 0.15)]
27
+ * @cssproperty {box-shadow} [--c2-slider__thumb__hover--box-shadow=0 0 0 6px rgba(2, 101, 220, 0.12)] - Halo while hovering.
28
+ * @cssproperty {box-shadow} [--c2-slider__thumb__active--box-shadow=0 0 0 8px rgba(2, 101, 220, 0.18)] - Halo while dragging.
29
+ * @cssproperty {outline} [--c2-slider__thumb__focus--outline=2px solid rgba(2, 101, 220, 0.4)]
30
+ * @cssproperty {pixel} [--c2-slider__thumb__focus--outline-offset=2px]
31
+ *
32
+ * @cssproperty {pixel} [--c2-slider__tick--size=2px]
33
+ * @cssproperty {color} [--c2-slider__tick--color=#a1a1aa] - Ticks on the unfilled part of the track.
34
+ * @cssproperty {color} [--c2-slider__tick__filled--color=#ffffff] - Ticks on the filled part.
35
+ *
36
+ * @cssproperty {background} [--c2-slider__value--background=#18181b] - Value bubble above the thumb.
37
+ * @cssproperty {color} [--c2-slider__value--color=#fafafa]
38
+ * @cssproperty {font-size} [--c2-slider__value--font-size=12px]
39
+ * @cssproperty {font-weight} [--c2-slider__value--font-weight=500]
40
+ * @cssproperty {border-radius} [--c2-slider__value--border-radius=6px]
41
+ * @cssproperty {padding} [--c2-slider__value--padding=4px 8px]
42
+ * @cssproperty {pixel} [--c2-slider__value--offset=8px] - Gap between the thumb and the bubble.
43
+ * @cssproperty {opacity} [--c2-slider__value--opacity=0] - Resting opacity of the bubble; it is fully visible while hovering, dragging or focused. `1` keeps it always on.
44
+ */
45
+ export declare class Slider extends LitElement {
46
+ static styles: import("lit").CSSResult;
47
+ protected formElement: HTMLInputElement;
48
+ /** Current value, clamped to `min`/`max` and snapped to `step` by the inner input. */
49
+ value: number;
50
+ min: number;
51
+ max: number;
52
+ /** Increment between values; also the distance between `ticks`. */
53
+ step: number;
54
+ /** Disables the control: no interaction, rendered dimmed. */
55
+ disabled: boolean;
56
+ /** Form field name forwarded to the inner input. */
57
+ name: string;
58
+ /** Direction of the track. A vertical slider takes `--c2-slider__container--length` as its height. */
59
+ orientation: SliderOrientation;
60
+ /** Shows the value in a bubble above the thumb while hovering, dragging or focused. */
61
+ showValue: boolean;
62
+ /** Draws a mark on the track for every `step` between `min` and `max` (up to 200 marks). */
63
+ ticks: boolean;
64
+ /** Formats the value for the bubble and `aria-valuetext`, e.g. `(v) => \`${v}%\``. Property only. */
65
+ formatValue: (value: number) => string;
66
+ ariaLabel: string;
67
+ ariaLabelledBy: undefined | string;
68
+ focus(options?: FocusOptions): void;
69
+ /** Position of the value along the track, `0` at `min` and `1` at `max`. */
70
+ get fraction(): number;
71
+ protected update(changed: PropertyValues<this>): void;
72
+ private handleInput;
73
+ private handleChange;
74
+ private renderTicks;
75
+ render(): import("lit-html").TemplateResult<1>;
76
+ }
77
+ declare global {
78
+ interface HTMLElementTagNameMap {
79
+ 'c2-slider': Slider;
80
+ }
81
+ }
82
+ //# sourceMappingURL=slider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../src/slider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA4B,KAAK,cAAc,EAAE,MAAM,KAAK,CAAA;AAQ/E,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG,UAAU,CAAA;AAIzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,qBACa,MAAO,SAAQ,UAAU;IACpC,OAAgB,MAAM,0BAAoB;IAE1B,SAAS,CAAC,WAAW,EAAG,gBAAgB,CAAA;IAExD,sFAAsF;IAC3C,KAAK,SAAI;IAExB,GAAG,SAAI;IAEP,GAAG,SAAM;IAErC,mEAAmE;IACvC,IAAI,SAAI;IAEpC,6DAA6D;IACjB,QAAQ,UAAQ;IAE5D,oDAAoD;IACxC,IAAI,SAAK;IAErB,sGAAsG;IACzE,WAAW,EAAE,iBAAiB,CAAe;IAE1E,uFAAuF;IAClB,SAAS,UAAQ;IAEtF,4FAA4F;IAChD,KAAK,UAAQ;IAEzD,qGAAqG;IACrE,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAA2B;IAGxF,SAAS,EAAG,MAAM,CAAA;IAG3B,cAAc,EAAG,SAAS,GAAG,MAAM,CAAA;IAE1B,KAAK,CAAC,OAAO,CAAC,EAAE,YAAY;IAIrC,4EAA4E;IAC5E,IAAI,QAAQ,IAAI,MAAM,CAIrB;cAEkB,MAAM,CAAC,OAAO,EAAE,cAAc,CAAC,IAAI,CAAC;IAKvD,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,WAAW;IAiBV,MAAM;CA8BhB;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,MAAM,CAAA;KACpB;CACF"}