@lightningjs/ui-components
Advanced tools
Comparing version 2.21.5 to 2.21.6
{ | ||
"name": "@lightningjs/ui-components", | ||
"version": "2.21.5", | ||
"version": "2.21.6", | ||
"description": "A shared library of helpful LightningJS components utilizing theme files to easily customize for any LightningJS application.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -57,3 +57,3 @@ /** | ||
static get properties() { | ||
return [...super.properties, 'slider', 'value']; | ||
return [...super.properties, 'slider', 'value', 'max', 'min']; | ||
} | ||
@@ -76,2 +76,4 @@ | ||
this.value = 50; | ||
this.max = 100; | ||
this.min = 0; | ||
} | ||
@@ -126,3 +128,5 @@ | ||
...this.slider, | ||
value: this.value | ||
value: this.value, | ||
max: this.max, | ||
min: this.min | ||
}; | ||
@@ -129,0 +133,0 @@ |
@@ -49,3 +49,5 @@ /** | ||
shouldCollapse: false, | ||
mode: 'focused' | ||
mode: 'focused', | ||
max: 100, | ||
min: 0 | ||
}; | ||
@@ -78,2 +80,18 @@ ListItemSlider.argTypes = { | ||
} | ||
}, | ||
max: { | ||
control: 'number', | ||
description: 'Upper bound of value', | ||
table: { | ||
defaultValue: { summary: 100 }, | ||
type: { summary: 'number' } | ||
} | ||
}, | ||
min: { | ||
control: 'number', | ||
description: 'Lower bound of value', | ||
table: { | ||
defaultValue: { summary: 0 }, | ||
type: { summary: 'number' } | ||
} | ||
} | ||
@@ -93,3 +111,3 @@ }; | ||
targetProperty: 'slider', | ||
include: ['min', 'max', 'step'] | ||
include: ['step'] | ||
}); |
@@ -86,3 +86,3 @@ /** | ||
listItemSlider.value = 10; | ||
listItemSlider._Slider.max = 10; | ||
listItemSlider.max = 10; | ||
testRenderer.forceAllUpdates(); | ||
@@ -89,0 +89,0 @@ listItemSlider._handleRight(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12581573
86196