@nuraly/lumenui 0.1.0 → 0.2.1
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/dist/nuralyui.bundle.js +23024 -17355
- package/dist/nuralyui.bundle.js.gz +0 -0
- package/dist/src/components/alert/alert.component.d.ts +8 -5
- package/dist/src/components/alert/alert.component.js +24 -20
- package/dist/src/components/alert/alert.style.d.ts +0 -7
- package/dist/src/components/alert/alert.style.js +48 -90
- package/dist/src/components/alert/bundle.js +82 -108
- package/dist/src/components/alert/bundle.js.gz +0 -0
- package/dist/src/components/badge/badge.component.d.ts +9 -8
- package/dist/src/components/badge/badge.component.js +17 -14
- package/dist/src/components/badge/badge.style.d.ts +0 -7
- package/dist/src/components/badge/badge.style.js +49 -107
- package/dist/src/components/badge/bundle.js +81 -119
- package/dist/src/components/badge/bundle.js.gz +0 -0
- package/dist/src/components/breadcrumb/breadcrumb.component.d.ts +8 -10
- package/dist/src/components/breadcrumb/breadcrumb.component.js +16 -15
- package/dist/src/components/breadcrumb/breadcrumb.style.d.ts +0 -7
- package/dist/src/components/breadcrumb/breadcrumb.style.js +42 -60
- package/dist/src/components/breadcrumb/bundle.js +96 -93
- package/dist/src/components/breadcrumb/bundle.js.gz +0 -0
- package/dist/src/components/button/bundle.js +221 -470
- package/dist/src/components/button/bundle.js.gz +0 -0
- package/dist/src/components/button/button.component.d.ts +2 -1
- package/dist/src/components/button/button.component.js +6 -6
- package/dist/src/components/button/button.style.d.ts +0 -7
- package/dist/src/components/button/button.style.js +167 -433
- package/dist/src/components/canvas/base-canvas.component.d.ts +2 -1
- package/dist/src/components/canvas/base-canvas.component.js +1 -0
- package/dist/src/components/canvas/bundle.js +16919 -9595
- package/dist/src/components/canvas/bundle.js.gz +0 -0
- package/dist/src/components/canvas/canvas.constants.d.ts +1 -1
- package/dist/src/components/canvas/canvas.constants.js +1 -1
- package/dist/src/components/canvas/chatbot-panel.style.js +31 -31
- package/dist/src/components/canvas/index.d.ts +2 -0
- package/dist/src/components/canvas/index.js +3 -0
- package/dist/src/components/canvas/whiteboard-canvas.component.d.ts +3 -1
- package/dist/src/components/canvas/whiteboard-canvas.component.js +19 -1
- package/dist/src/components/canvas/whiteboard-canvas.style.js +159 -138
- package/dist/src/components/canvas/whiteboard-node.component.d.ts +2 -1
- package/dist/src/components/canvas/whiteboard-node.component.js +2 -1
- package/dist/src/components/canvas/whiteboard-node.style.js +44 -44
- package/dist/src/components/canvas/workflow-canvas-only.d.ts +4 -0
- package/dist/src/components/canvas/workflow-canvas-only.js +5 -0
- package/dist/src/components/canvas/workflow-canvas.component.d.ts +3 -1
- package/dist/src/components/canvas/workflow-canvas.component.js +24 -2
- package/dist/src/components/canvas/workflow-canvas.style.js +776 -648
- package/dist/src/components/canvas/workflow-canvas.types.d.ts +113 -4
- package/dist/src/components/canvas/workflow-canvas.types.js +646 -3
- package/dist/src/components/canvas/workflow-node.component.d.ts +3 -2
- package/dist/src/components/canvas/workflow-node.component.js +5 -5
- package/dist/src/components/canvas/workflow-node.style.js +183 -181
- package/dist/src/components/card/bundle.js +43 -35
- package/dist/src/components/card/bundle.js.gz +0 -0
- package/dist/src/components/card/card.component.d.ts +6 -1
- package/dist/src/components/card/card.component.js +8 -2
- package/dist/src/components/card/card.style.js +26 -30
- package/dist/src/components/carousel/bundle.js +8 -8
- package/dist/src/components/carousel/bundle.js.gz +0 -0
- package/dist/src/components/carousel/carousel.component.d.ts +12 -0
- package/dist/src/components/carousel/carousel.component.js +16 -4
- package/dist/src/components/chatbot/bundle.js +422 -406
- package/dist/src/components/chatbot/bundle.js.gz +0 -0
- package/dist/src/components/chatbot/chatbot.component.d.ts +2 -1
- package/dist/src/components/chatbot/chatbot.component.js +1 -0
- package/dist/src/components/chatbot/chatbot.style.js +277 -277
- package/dist/src/components/checkbox/bundle.js +86 -245
- package/dist/src/components/checkbox/bundle.js.gz +0 -0
- package/dist/src/components/checkbox/checkbox.component.d.ts +5 -2
- package/dist/src/components/checkbox/checkbox.component.js +11 -13
- package/dist/src/components/checkbox/checkbox.style.js +56 -231
- package/dist/src/components/code-editor/bundle.js +151 -25
- package/dist/src/components/code-editor/bundle.js.gz +0 -0
- package/dist/src/components/code-editor/code-editor.component.d.ts +18 -56
- package/dist/src/components/code-editor/code-editor.component.js +141 -394
- package/dist/src/components/code-editor/code-editor.style.js +139 -15
- package/dist/src/components/collapse/bundle.js +97 -84
- package/dist/src/components/collapse/bundle.js.gz +0 -0
- package/dist/src/components/collapse/collapse.component.d.ts +7 -1
- package/dist/src/components/collapse/collapse.component.js +11 -2
- package/dist/src/components/collapse/collapse.style.js +60 -60
- package/dist/src/components/colorpicker/bundle.js +85 -48
- package/dist/src/components/colorpicker/bundle.js.gz +0 -0
- package/dist/src/components/colorpicker/color-holder.component.d.ts +2 -4
- package/dist/src/components/colorpicker/color-holder.component.js +5 -6
- package/dist/src/components/colorpicker/color-holder.style.js +11 -11
- package/dist/src/components/colorpicker/color-picker.component.d.ts +2 -1
- package/dist/src/components/colorpicker/color-picker.component.js +1 -0
- package/dist/src/components/colorpicker/color-picker.style.js +12 -12
- package/dist/src/components/colorpicker/default-color-sets.component.d.ts +2 -2
- package/dist/src/components/colorpicker/default-color-sets.component.js +4 -3
- package/dist/src/components/colorpicker/default-color-sets.style.js +5 -5
- package/dist/src/components/container/bundle.js +24 -14
- package/dist/src/components/container/bundle.js.gz +0 -0
- package/dist/src/components/container/container.component.d.ts +4 -1
- package/dist/src/components/container/container.component.js +7 -5
- package/dist/src/components/container/container.style.js +9 -9
- package/dist/src/components/datepicker/bundle.js +193 -177
- package/dist/src/components/datepicker/bundle.js.gz +0 -0
- package/dist/src/components/datepicker/datepicker.component.d.ts +2 -1
- package/dist/src/components/datepicker/datepicker.component.js +1 -0
- package/dist/src/components/datepicker/datepicker.style.js +65 -65
- package/dist/src/components/datepicker/datepicker.style.variables.js +91 -91
- package/dist/src/components/db-connection-select/bundle.js +7 -6
- package/dist/src/components/db-connection-select/bundle.js.gz +0 -0
- package/dist/src/components/db-connection-select/db-connection-select.component.d.ts +3 -0
- package/dist/src/components/db-connection-select/db-connection-select.component.js +4 -0
- package/dist/src/components/divider/bundle.js +61 -35
- package/dist/src/components/divider/bundle.js.gz +0 -0
- package/dist/src/components/divider/divider.component.d.ts +4 -6
- package/dist/src/components/divider/divider.component.js +10 -14
- package/dist/src/components/divider/divider.style.js +41 -31
- package/dist/src/components/document/bundle.js +50 -48
- package/dist/src/components/document/bundle.js.gz +0 -0
- package/dist/src/components/document/document.component.d.ts +12 -1
- package/dist/src/components/document/document.component.js +18 -6
- package/dist/src/components/document/document.style.js +21 -36
- package/dist/src/components/dropdown/bundle.js +117 -101
- package/dist/src/components/dropdown/bundle.js.gz +0 -0
- package/dist/src/components/dropdown/dropdown.component.d.ts +2 -1
- package/dist/src/components/dropdown/dropdown.component.js +1 -0
- package/dist/src/components/dropdown/dropdown.style.js +68 -68
- package/dist/src/components/file-upload/bundle.js +82 -76
- package/dist/src/components/file-upload/bundle.js.gz +0 -0
- package/dist/src/components/file-upload/file-upload.component.d.ts +2 -1
- package/dist/src/components/file-upload/file-upload.component.js +1 -0
- package/dist/src/components/file-upload/styles.js +59 -59
- package/dist/src/components/flex/bundle.js +18 -8
- package/dist/src/components/flex/bundle.js.gz +0 -0
- package/dist/src/components/flex/flex.component.d.ts +4 -1
- package/dist/src/components/flex/flex.component.js +7 -4
- package/dist/src/components/flex/flex.style.js +2 -2
- package/dist/src/components/form/bundle.js +22 -10
- package/dist/src/components/form/bundle.js.gz +0 -0
- package/dist/src/components/form/form.component.d.ts +4 -1
- package/dist/src/components/form/form.component.js +5 -1
- package/dist/src/components/form/form.style.js +2 -2
- package/dist/src/components/grid/bundle.js +26 -14
- package/dist/src/components/grid/bundle.js.gz +0 -0
- package/dist/src/components/grid/col.component.d.ts +4 -1
- package/dist/src/components/grid/col.component.js +4 -1
- package/dist/src/components/grid/col.style.js +2 -2
- package/dist/src/components/grid/row.component.d.ts +4 -1
- package/dist/src/components/grid/row.component.js +4 -1
- package/dist/src/components/grid/row.style.js +2 -2
- package/dist/src/components/icon/bundle.js +78 -252
- package/dist/src/components/icon/bundle.js.gz +0 -0
- package/dist/src/components/icon/icon-paths.d.ts +2 -0
- package/dist/src/components/icon/icon-paths.js +141 -0
- package/dist/src/components/icon/icon.component.d.ts +10 -12
- package/dist/src/components/icon/icon.component.js +42 -93
- package/dist/src/components/icon/icon.style.js +42 -130
- package/dist/src/components/icon/icon.variables.js +9 -9
- package/dist/src/components/iconpicker/bundle.js +859 -1511
- package/dist/src/components/iconpicker/bundle.js.gz +0 -0
- package/dist/src/components/iconpicker/icon-picker.component.d.ts +2 -1
- package/dist/src/components/iconpicker/icon-picker.component.js +1 -0
- package/dist/src/components/iconpicker/icon-picker.style.js +13 -13
- package/dist/src/components/image/bundle.js +43 -33
- package/dist/src/components/image/bundle.js.gz +0 -0
- package/dist/src/components/image/image.component.d.ts +10 -1
- package/dist/src/components/image/image.component.js +13 -3
- package/dist/src/components/image/image.style.js +19 -26
- package/dist/src/components/input/bundle.js +420 -644
- package/dist/src/components/input/bundle.js.gz +0 -0
- package/dist/src/components/input/input.component.d.ts +16 -3
- package/dist/src/components/input/input.component.js +43 -27
- package/dist/src/components/input/input.style.d.ts +1 -1
- package/dist/src/components/input/input.style.js +331 -634
- package/dist/src/components/kv-secret-select/bundle.js +2 -1
- package/dist/src/components/kv-secret-select/bundle.js.gz +0 -0
- package/dist/src/components/kv-secret-select/kv-secret-select.component.d.ts +3 -0
- package/dist/src/components/kv-secret-select/kv-secret-select.component.js +4 -0
- package/dist/src/components/label/bundle.js +37 -60
- package/dist/src/components/label/bundle.js.gz +0 -0
- package/dist/src/components/label/label.component.d.ts +8 -4
- package/dist/src/components/label/label.component.js +9 -14
- package/dist/src/components/label/label.style.js +17 -25
- package/dist/src/components/label/label.style.variables.js +18 -18
- package/dist/src/components/layout/bundle.js +86 -70
- package/dist/src/components/layout/bundle.js.gz +0 -0
- package/dist/src/components/layout/content.component.d.ts +2 -1
- package/dist/src/components/layout/content.component.js +2 -1
- package/dist/src/components/layout/content.style.js +3 -3
- package/dist/src/components/layout/footer.component.d.ts +2 -1
- package/dist/src/components/layout/footer.component.js +3 -2
- package/dist/src/components/layout/footer.style.js +7 -7
- package/dist/src/components/layout/header.component.d.ts +2 -1
- package/dist/src/components/layout/header.component.js +3 -2
- package/dist/src/components/layout/header.style.js +7 -7
- package/dist/src/components/layout/layout.component.d.ts +4 -7
- package/dist/src/components/layout/layout.component.js +9 -22
- package/dist/src/components/layout/layout.style.js +1 -1
- package/dist/src/components/layout/sider.component.d.ts +3 -1
- package/dist/src/components/layout/sider.component.js +3 -1
- package/dist/src/components/layout/sider.style.js +29 -29
- package/dist/src/components/menu/bundle.js +135 -125
- package/dist/src/components/menu/bundle.js.gz +0 -0
- package/dist/src/components/menu/menu.component.d.ts +2 -1
- package/dist/src/components/menu/menu.component.js +1 -0
- package/dist/src/components/menu/menu.style.js +87 -87
- package/dist/src/components/modal/bundle.js +105 -96
- package/dist/src/components/modal/bundle.js.gz +0 -0
- package/dist/src/components/modal/modal.component.d.ts +2 -1
- package/dist/src/components/modal/modal.component.js +1 -0
- package/dist/src/components/modal/modal.style.js +69 -71
- package/dist/src/components/panel/bundle.js +190 -391
- package/dist/src/components/panel/bundle.js.gz +0 -0
- package/dist/src/components/panel/panel.component.d.ts +2 -1
- package/dist/src/components/panel/panel.component.js +1 -0
- package/dist/src/components/panel/panel.style.js +65 -65
- package/dist/src/components/popconfirm/bundle.js +107 -93
- package/dist/src/components/popconfirm/bundle.js.gz +0 -0
- package/dist/src/components/popconfirm/popconfirm-manager.component.d.ts +2 -1
- package/dist/src/components/popconfirm/popconfirm-manager.component.js +1 -0
- package/dist/src/components/popconfirm/popconfirm-manager.style.js +16 -16
- package/dist/src/components/popconfirm/popconfirm.component.d.ts +2 -1
- package/dist/src/components/popconfirm/popconfirm.component.js +9 -5
- package/dist/src/components/popconfirm/popconfirm.style.js +43 -43
- package/dist/src/components/radio/bundle.js +56 -86
- package/dist/src/components/radio/bundle.js.gz +0 -0
- package/dist/src/components/radio/radio.component.d.ts +8 -2
- package/dist/src/components/radio/radio.component.js +17 -9
- package/dist/src/components/radio/radio.style.js +30 -77
- package/dist/src/components/radio-group/bundle.js +125 -89
- package/dist/src/components/radio-group/bundle.js.gz +0 -0
- package/dist/src/components/radio-group/radio-group.component.d.ts +5 -1
- package/dist/src/components/radio-group/radio-group.component.js +18 -10
- package/dist/src/components/radio-group/radio-group.style.js +44 -44
- package/dist/src/components/select/bundle.js +260 -367
- package/dist/src/components/select/bundle.js.gz +0 -0
- package/dist/src/components/select/select.component.d.ts +12 -17
- package/dist/src/components/select/select.component.js +35 -35
- package/dist/src/components/select/select.style.js +184 -324
- package/dist/src/components/skeleton/bundle.js +82 -162
- package/dist/src/components/skeleton/bundle.js.gz +0 -0
- package/dist/src/components/skeleton/skeleton.component.d.ts +10 -5
- package/dist/src/components/skeleton/skeleton.component.js +20 -7
- package/dist/src/components/skeleton/skeleton.style.js +34 -133
- package/dist/src/components/slider-input/bundle.js +89 -88
- package/dist/src/components/slider-input/bundle.js.gz +0 -0
- package/dist/src/components/slider-input/slider-input.component.d.ts +11 -0
- package/dist/src/components/slider-input/slider-input.component.js +20 -8
- package/dist/src/components/slider-input/slider-input.style.js +47 -47
- package/dist/src/components/slider-input/slider-input.style.variables.js +32 -32
- package/dist/src/components/table/bundle.js +149 -128
- package/dist/src/components/table/bundle.js.gz +0 -0
- package/dist/src/components/table/table.component.d.ts +2 -1
- package/dist/src/components/table/table.component.js +1 -0
- package/dist/src/components/table/table.style.js +79 -79
- package/dist/src/components/tabs/bundle.js +462 -663
- package/dist/src/components/tabs/bundle.js.gz +0 -0
- package/dist/src/components/tabs/tabs.component.d.ts +6 -1
- package/dist/src/components/tabs/tabs.component.js +8 -1
- package/dist/src/components/tabs/tabs.style.js +200 -201
- package/dist/src/components/tag/bundle.js +44 -36
- package/dist/src/components/tag/bundle.js.gz +0 -0
- package/dist/src/components/tag/tag.component.d.ts +7 -6
- package/dist/src/components/tag/tag.component.js +10 -19
- package/dist/src/components/tag/tag.style.js +20 -24
- package/dist/src/components/textarea/bundle.js +131 -94
- package/dist/src/components/textarea/bundle.js.gz +0 -0
- package/dist/src/components/textarea/textarea.component.d.ts +7 -1
- package/dist/src/components/textarea/textarea.component.js +10 -3
- package/dist/src/components/textarea/textarea.style.d.ts +1 -13
- package/dist/src/components/textarea/textarea.style.js +79 -91
- package/dist/src/components/timeline/bundle.js +71 -134
- package/dist/src/components/timeline/bundle.js.gz +0 -0
- package/dist/src/components/timeline/timeline.component.d.ts +9 -6
- package/dist/src/components/timeline/timeline.component.js +16 -13
- package/dist/src/components/timeline/timeline.style.d.ts +0 -7
- package/dist/src/components/timeline/timeline.style.js +41 -122
- package/dist/src/components/timepicker/bundle.js +196 -166
- package/dist/src/components/timepicker/bundle.js.gz +0 -0
- package/dist/src/components/timepicker/timepicker.component.d.ts +2 -1
- package/dist/src/components/timepicker/timepicker.component.js +1 -0
- package/dist/src/components/timepicker/timepicker.style.js +42 -42
- package/dist/src/components/timepicker/timepicker.style.variables.js +91 -91
- package/dist/src/components/toast/bundle.js +97 -81
- package/dist/src/components/toast/bundle.js.gz +0 -0
- package/dist/src/components/toast/toast.component.d.ts +2 -1
- package/dist/src/components/toast/toast.component.js +1 -0
- package/dist/src/components/toast/toast.style.js +62 -62
- package/dist/src/components/tooltips/bundle.js +10 -10
- package/dist/src/components/tooltips/bundle.js.gz +0 -0
- package/dist/src/components/tooltips/tooltips.component.d.ts +8 -0
- package/dist/src/components/tooltips/tooltips.component.js +9 -1
- package/dist/src/components/tooltips/tooltips.style.js +6 -6
- package/dist/src/components/video/bundle.js +47 -36
- package/dist/src/components/video/bundle.js.gz +0 -0
- package/dist/src/components/video/video.component.d.ts +12 -1
- package/dist/src/components/video/video.component.js +18 -6
- package/dist/src/components/video/video.style.js +18 -24
- package/package.json +25 -12
- package/packages/common/dist/VERSIONS.md +2 -2
- package/packages/common/dist/shared/base-mixin.d.ts +21 -19
- package/packages/common/dist/shared/base-mixin.d.ts.map +1 -1
- package/packages/common/dist/shared/base-mixin.js +102 -18
- package/packages/common/dist/shared/base-mixin.js.map +1 -1
- package/packages/common/dist/shared/index.d.ts +1 -0
- package/packages/common/dist/shared/index.d.ts.map +1 -1
- package/packages/common/dist/shared/index.js +2 -0
- package/packages/common/dist/shared/index.js.map +1 -1
- package/packages/common/dist/shared/style-injector.d.ts +11 -0
- package/packages/common/dist/shared/style-injector.d.ts.map +1 -0
- package/packages/common/dist/shared/style-injector.js +53 -0
- package/packages/common/dist/shared/style-injector.js.map +1 -0
- package/packages/common/dist/shared/theme-mixin.d.ts +2 -24
- package/packages/common/dist/shared/theme-mixin.d.ts.map +1 -1
- package/packages/common/dist/shared/theme-mixin.js +5 -38
- package/packages/common/dist/shared/theme-mixin.js.map +1 -1
- package/packages/themes/dist/default.css +0 -10
- package/packages/themes/dist/package.json +1 -1
|
@@ -17,6 +17,16 @@ import { LitElement, html } from 'lit';
|
|
|
17
17
|
import { property, state } from 'lit/decorators.js';
|
|
18
18
|
import styles from './slider-input.style.js';
|
|
19
19
|
import { debounce } from './utils/index.js';
|
|
20
|
+
/**
|
|
21
|
+
* A range slider input component for selecting numeric values within a min/max range.
|
|
22
|
+
*
|
|
23
|
+
* @csspart wrapper - The outermost div wrapping the native input and custom visual track
|
|
24
|
+
* @csspart input - The native range input element (hidden, drives the value)
|
|
25
|
+
* @csspart track-container - The div containing the filled track, value indicator, and thumb
|
|
26
|
+
* @csspart track - The background track bar of the slider
|
|
27
|
+
* @csspart track-value - The filled portion of the track up to the current value
|
|
28
|
+
* @csspart thumb - The draggable thumb indicator showing the current position
|
|
29
|
+
*/
|
|
20
30
|
export class SliderInput extends LitElement {
|
|
21
31
|
constructor() {
|
|
22
32
|
super(...arguments);
|
|
@@ -43,9 +53,9 @@ export class SliderInput extends LitElement {
|
|
|
43
53
|
firstUpdated() {
|
|
44
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
45
55
|
yield this.updateComplete;
|
|
46
|
-
this._input = this.
|
|
47
|
-
this._slider = this.
|
|
48
|
-
this._thumb = this.
|
|
56
|
+
this._input = this.renderRoot.querySelector('input');
|
|
57
|
+
this._slider = this.renderRoot.querySelector('.range-slider');
|
|
58
|
+
this._thumb = this.renderRoot.querySelector('.range-thumb');
|
|
49
59
|
this._actualMin = this.min;
|
|
50
60
|
this._actualMax = this.max;
|
|
51
61
|
if (this.step) {
|
|
@@ -66,8 +76,9 @@ export class SliderInput extends LitElement {
|
|
|
66
76
|
}
|
|
67
77
|
render() {
|
|
68
78
|
return html `
|
|
69
|
-
<div class="slider-wrapper">
|
|
79
|
+
<div part="wrapper" class="slider-wrapper">
|
|
70
80
|
<input
|
|
81
|
+
part="input"
|
|
71
82
|
max=${this.max}
|
|
72
83
|
min=${this.min}
|
|
73
84
|
step=${this.step}
|
|
@@ -77,10 +88,10 @@ export class SliderInput extends LitElement {
|
|
|
77
88
|
@input=${this._inputHandler}
|
|
78
89
|
@change=${this._changeHandler}
|
|
79
90
|
/>
|
|
80
|
-
<div class="range-container">
|
|
81
|
-
<div class="range-slider"></div>
|
|
82
|
-
<div class="range-slider-value"></div>
|
|
83
|
-
<div class="range-thumb"></div>
|
|
91
|
+
<div part="track-container" class="range-container">
|
|
92
|
+
<div part="track" class="range-slider"></div>
|
|
93
|
+
<div part="track-value" class="range-slider-value"></div>
|
|
94
|
+
<div part="thumb" class="range-thumb"></div>
|
|
84
95
|
</div>
|
|
85
96
|
</div>`;
|
|
86
97
|
}
|
|
@@ -157,6 +168,7 @@ export class SliderInput extends LitElement {
|
|
|
157
168
|
}
|
|
158
169
|
}
|
|
159
170
|
SliderInput.styles = styles;
|
|
171
|
+
SliderInput.useShadowDom = true;
|
|
160
172
|
__decorate([
|
|
161
173
|
property({ type: Boolean, reflect: true })
|
|
162
174
|
], SliderInput.prototype, "disabled", void 0);
|
|
@@ -5,10 +5,10 @@ export default css `
|
|
|
5
5
|
|
|
6
6
|
:host {
|
|
7
7
|
display: inline-block;
|
|
8
|
-
width:
|
|
9
|
-
font-family:
|
|
10
|
-
font-size:
|
|
11
|
-
font-weight:
|
|
8
|
+
width: 100%;
|
|
9
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
|
|
10
|
+
font-size: 14px;
|
|
11
|
+
font-weight: 400;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
/* Host attribute selectors for configuration */
|
|
@@ -19,7 +19,7 @@ export default css `
|
|
|
19
19
|
|
|
20
20
|
.slider-wrapper {
|
|
21
21
|
position: relative;
|
|
22
|
-
padding: calc(
|
|
22
|
+
padding: calc(20px / 2) 0;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.range-container {
|
|
@@ -29,48 +29,48 @@ export default css `
|
|
|
29
29
|
|
|
30
30
|
.range-slider,
|
|
31
31
|
.range-slider-value {
|
|
32
|
-
border-radius:
|
|
33
|
-
height:
|
|
32
|
+
border-radius: 6px;
|
|
33
|
+
height: 8px;
|
|
34
34
|
position: absolute;
|
|
35
|
-
top: calc((
|
|
36
|
-
transition: all
|
|
35
|
+
top: calc((20px - 8px) / 2);
|
|
36
|
+
transition: all 150ms ease;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.range-slider {
|
|
40
|
-
background:
|
|
40
|
+
background: #e5e7eb;
|
|
41
41
|
width: 100%;
|
|
42
|
-
border:
|
|
42
|
+
border: 1px solid #d1d5db;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.range-slider-value {
|
|
46
|
-
background:
|
|
46
|
+
background: #3b82f6;
|
|
47
47
|
width: var(--nr-slider-value-width, 0%);
|
|
48
|
-
z-index: calc(
|
|
48
|
+
z-index: calc(1 + 1);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.range-thumb {
|
|
52
|
-
background:
|
|
53
|
-
border: 2px solid
|
|
54
|
-
border-radius:
|
|
55
|
-
height:
|
|
56
|
-
width:
|
|
52
|
+
background: #ffffff;
|
|
53
|
+
border: 2px solid #3b82f6;
|
|
54
|
+
border-radius: 50%;
|
|
55
|
+
height: 20px;
|
|
56
|
+
width: 20px;
|
|
57
57
|
position: absolute;
|
|
58
|
-
top: calc((
|
|
58
|
+
top: calc((8px - 20px) / 2);
|
|
59
59
|
left: var(--nr-slider-thumb-offset, 0px);
|
|
60
60
|
cursor: pointer;
|
|
61
|
-
z-index: calc(
|
|
62
|
-
box-shadow:
|
|
63
|
-
transition: all
|
|
61
|
+
z-index: calc(1 + 2);
|
|
62
|
+
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
63
|
+
transition: all 150ms ease;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
.range-thumb:hover {
|
|
67
|
-
background:
|
|
68
|
-
box-shadow:
|
|
67
|
+
background: #eff6ff;
|
|
68
|
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.range-thumb:active {
|
|
72
|
-
background:
|
|
73
|
-
box-shadow:
|
|
72
|
+
background: #dbeafe;
|
|
73
|
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
input {
|
|
@@ -82,7 +82,7 @@ export default css `
|
|
|
82
82
|
opacity: 0;
|
|
83
83
|
width: 100%;
|
|
84
84
|
cursor: pointer;
|
|
85
|
-
z-index: calc(
|
|
85
|
+
z-index: calc(1 + 3);
|
|
86
86
|
appearance: none;
|
|
87
87
|
background: transparent;
|
|
88
88
|
pointer-events: auto;
|
|
@@ -90,38 +90,38 @@ export default css `
|
|
|
90
90
|
|
|
91
91
|
input::-webkit-slider-thumb {
|
|
92
92
|
appearance: none;
|
|
93
|
-
width:
|
|
94
|
-
height:
|
|
93
|
+
width: 20px;
|
|
94
|
+
height: 20px;
|
|
95
95
|
background: transparent;
|
|
96
96
|
cursor: pointer;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
input::-moz-range-thumb {
|
|
100
100
|
appearance: none;
|
|
101
|
-
width:
|
|
102
|
-
height:
|
|
101
|
+
width: 20px;
|
|
102
|
+
height: 20px;
|
|
103
103
|
background: transparent;
|
|
104
104
|
border: none;
|
|
105
105
|
cursor: pointer;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
input:focus-visible + .range-container .range-thumb {
|
|
109
|
-
box-shadow:
|
|
109
|
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
/* Disabled state styling */
|
|
113
113
|
:host([disabled]) .range-slider {
|
|
114
|
-
background:
|
|
115
|
-
border-color:
|
|
114
|
+
background: #f5f5f5;
|
|
115
|
+
border-color: #e5e7eb;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
:host([disabled]) .range-slider-value {
|
|
119
|
-
background:
|
|
119
|
+
background: #d1d5db;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
:host([disabled]) .range-thumb {
|
|
123
|
-
background:
|
|
124
|
-
border-color:
|
|
123
|
+
background: #e5e7eb;
|
|
124
|
+
border-color: #e5e7eb;
|
|
125
125
|
cursor: not-allowed;
|
|
126
126
|
box-shadow: none;
|
|
127
127
|
}
|
|
@@ -132,40 +132,40 @@ export default css `
|
|
|
132
132
|
|
|
133
133
|
/* Size variants */
|
|
134
134
|
:host([size="small"]) {
|
|
135
|
-
--nuraly-slider-input-local-track-height:
|
|
136
|
-
--nuraly-slider-input-local-thumb-diameter:
|
|
135
|
+
--nuraly-slider-input-local-track-height: 6px;
|
|
136
|
+
--nuraly-slider-input-local-thumb-diameter: 16px;
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
:host([size="large"]) {
|
|
140
|
-
--nuraly-slider-input-local-track-height:
|
|
141
|
-
--nuraly-slider-input-local-thumb-diameter:
|
|
140
|
+
--nuraly-slider-input-local-track-height: 10px;
|
|
141
|
+
--nuraly-slider-input-local-thumb-diameter: 24px;
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
/* Error state */
|
|
145
145
|
:host([error]) .range-slider-value {
|
|
146
|
-
background:
|
|
146
|
+
background: #ef4444;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
:host([error]) .range-thumb {
|
|
150
|
-
border-color:
|
|
150
|
+
border-color: #ef4444;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
/* Warning state */
|
|
154
154
|
:host([warning]) .range-slider-value {
|
|
155
|
-
background:
|
|
155
|
+
background: #f59e0b;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
:host([warning]) .range-thumb {
|
|
159
|
-
border-color:
|
|
159
|
+
border-color: #f59e0b;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
/* Success state */
|
|
163
163
|
:host([success]) .range-slider-value {
|
|
164
|
-
background:
|
|
164
|
+
background: #10b981;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
:host([success]) .range-thumb {
|
|
168
|
-
border-color:
|
|
168
|
+
border-color: #10b981;
|
|
169
169
|
}
|
|
170
170
|
`;
|
|
171
171
|
//# sourceMappingURL=slider-input.style.js.map
|
|
@@ -2,58 +2,58 @@ import { css } from 'lit';
|
|
|
2
2
|
export const styleVariables = css `
|
|
3
3
|
:host {
|
|
4
4
|
/* Component dimensions */
|
|
5
|
-
--nuraly-slider-input-local-width:
|
|
6
|
-
--nuraly-slider-input-local-track-height:
|
|
7
|
-
--nuraly-slider-input-local-thumb-diameter:
|
|
8
|
-
--nuraly-slider-input-local-border-width:
|
|
5
|
+
--nuraly-slider-input-local-width: 100%;
|
|
6
|
+
--nuraly-slider-input-local-track-height: 8px;
|
|
7
|
+
--nuraly-slider-input-local-thumb-diameter: 20px;
|
|
8
|
+
--nuraly-slider-input-local-border-width: 1px;
|
|
9
9
|
|
|
10
10
|
/* Size variants */
|
|
11
|
-
--nuraly-slider-input-local-small-height:
|
|
12
|
-
--nuraly-slider-input-local-small-thumb-diameter:
|
|
13
|
-
--nuraly-slider-input-local-large-height:
|
|
14
|
-
--nuraly-slider-input-local-large-thumb-diameter:
|
|
11
|
+
--nuraly-slider-input-local-small-height: 6px;
|
|
12
|
+
--nuraly-slider-input-local-small-thumb-diameter: 16px;
|
|
13
|
+
--nuraly-slider-input-local-large-height: 10px;
|
|
14
|
+
--nuraly-slider-input-local-large-thumb-diameter: 24px;
|
|
15
15
|
|
|
16
16
|
/* Typography */
|
|
17
|
-
--nuraly-slider-input-local-font-family:
|
|
18
|
-
--nuraly-slider-input-local-font-size:
|
|
19
|
-
--nuraly-slider-input-local-font-weight:
|
|
17
|
+
--nuraly-slider-input-local-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
|
|
18
|
+
--nuraly-slider-input-local-font-size: 14px;
|
|
19
|
+
--nuraly-slider-input-local-font-weight: 400;
|
|
20
20
|
|
|
21
21
|
/* Border radius */
|
|
22
|
-
--nuraly-slider-input-local-border-radius:
|
|
23
|
-
--nuraly-slider-input-local-thumb-border-radius:
|
|
22
|
+
--nuraly-slider-input-local-border-radius: 6px;
|
|
23
|
+
--nuraly-slider-input-local-thumb-border-radius: 50%;
|
|
24
24
|
|
|
25
25
|
/* Colors - Track */
|
|
26
|
-
--nuraly-slider-input-local-track-color:
|
|
27
|
-
--nuraly-slider-input-local-track-filled-color:
|
|
28
|
-
--nuraly-slider-input-local-border-color:
|
|
26
|
+
--nuraly-slider-input-local-track-color: #e5e7eb;
|
|
27
|
+
--nuraly-slider-input-local-track-filled-color: #3b82f6;
|
|
28
|
+
--nuraly-slider-input-local-border-color: #d1d5db;
|
|
29
29
|
|
|
30
30
|
/* Colors - Thumb */
|
|
31
|
-
--nuraly-slider-input-local-thumb-color:
|
|
32
|
-
--nuraly-slider-input-local-thumb-border-color:
|
|
33
|
-
--nuraly-slider-input-local-thumb-hover-color:
|
|
34
|
-
--nuraly-slider-input-local-thumb-active-color:
|
|
31
|
+
--nuraly-slider-input-local-thumb-color: #ffffff;
|
|
32
|
+
--nuraly-slider-input-local-thumb-border-color: #3b82f6;
|
|
33
|
+
--nuraly-slider-input-local-thumb-hover-color: #eff6ff;
|
|
34
|
+
--nuraly-slider-input-local-thumb-active-color: #dbeafe;
|
|
35
35
|
|
|
36
36
|
/* Colors - Disabled states */
|
|
37
|
-
--nuraly-slider-input-local-disabled-track-color:
|
|
38
|
-
--nuraly-slider-input-local-disabled-color:
|
|
39
|
-
--nuraly-slider-input-local-disabled-thumb-color:
|
|
40
|
-
--nuraly-slider-input-local-disabled-border-color:
|
|
37
|
+
--nuraly-slider-input-local-disabled-track-color: #f5f5f5;
|
|
38
|
+
--nuraly-slider-input-local-disabled-color: #d1d5db;
|
|
39
|
+
--nuraly-slider-input-local-disabled-thumb-color: #e5e7eb;
|
|
40
|
+
--nuraly-slider-input-local-disabled-border-color: #e5e7eb;
|
|
41
41
|
|
|
42
42
|
/* Colors - Status states */
|
|
43
|
-
--nuraly-slider-input-local-error-color:
|
|
44
|
-
--nuraly-slider-input-local-warning-color:
|
|
45
|
-
--nuraly-slider-input-local-success-color:
|
|
43
|
+
--nuraly-slider-input-local-error-color: #ef4444;
|
|
44
|
+
--nuraly-slider-input-local-warning-color: #f59e0b;
|
|
45
|
+
--nuraly-slider-input-local-success-color: #10b981;
|
|
46
46
|
|
|
47
47
|
/* Shadows */
|
|
48
|
-
--nuraly-slider-input-local-thumb-shadow:
|
|
49
|
-
--nuraly-slider-input-local-focus-shadow:
|
|
48
|
+
--nuraly-slider-input-local-thumb-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
49
|
+
--nuraly-slider-input-local-focus-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
|
|
50
50
|
|
|
51
51
|
/* Elevation */
|
|
52
|
-
--nuraly-slider-input-local-z-index:
|
|
52
|
+
--nuraly-slider-input-local-z-index: 1;
|
|
53
53
|
|
|
54
54
|
/* Transitions */
|
|
55
|
-
--nuraly-slider-input-local-transition-duration:
|
|
56
|
-
--nuraly-slider-input-local-transition-timing:
|
|
55
|
+
--nuraly-slider-input-local-transition-duration: 150ms;
|
|
56
|
+
--nuraly-slider-input-local-transition-timing: ease;
|
|
57
57
|
}
|
|
58
58
|
`;
|
|
59
59
|
//# sourceMappingURL=slider-input.style.variables.js.map
|