@flourish/ui-styles 3.1.0 → 4.0.0

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/RELEASE_NOTES.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 4.0.0
2
+ * Move slider width setting from @flourish/ui-styles to @flourish/controls [BREAKING] For use with version 8.0.0+ of @flourish/controls
3
+
1
4
  # 3.1.0
2
5
  * Add support for right-to-left read direction to button border radius styles
3
6
  * Update @flourish/pocket-knife to v1.0.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flourish/ui-styles",
3
- "version": "3.1.0",
3
+ "version": "4.0.0",
4
4
  "description": "Flourish module for styling UI elements",
5
5
  "main": "ui-styles.js",
6
6
  "module": "src/index.js",
@@ -19,12 +19,6 @@
19
19
  width: quarter
20
20
  optional: true
21
21
  show_if: play_button
22
- - property: width
23
- name: Slider width
24
- type: number
25
- min: 0
26
- max: 100
27
- width: quarter
28
22
  - property: track_height
29
23
  name: Track height
30
24
  type: number
@@ -2,7 +2,6 @@ import { remToPx } from "../lib/remToPx";
2
2
  import Stylesheet from "../lib/js2css";
3
3
 
4
4
  var DEFAULTS = Object.freeze({
5
- width: 15,
6
5
  play_color: null,
7
6
  handle_color: null,
8
7
  font_color: null,
@@ -43,7 +42,6 @@ SliderStyle.prototype.update = function() {
43
42
  var handle_color = this._state.handle_color || this._layout.font_color || "currentColor";
44
43
  var play_color = this._state.play_color || this._layout.font_color || "currentColor";
45
44
 
46
- var slider_width = Math.round(remToPx(this._state.width));
47
45
  var handle_radius = Math.round(remToPx(this._state.handle_height));
48
46
  var track_height = remToPx(this._state.track_height);
49
47
 
@@ -62,7 +60,6 @@ SliderStyle.prototype.update = function() {
62
60
 
63
61
  this._styles.select(this._selector + " input[type=range]")
64
62
  .style("-webkit-appearance", "none")
65
- .style("width", slider_width + "px")
66
63
  .style("color", slider_color)
67
64
  .style("background-color", "transparent");
68
65
 
package/ui-styles.js CHANGED
@@ -1010,7 +1010,6 @@
1010
1010
  }
1011
1011
 
1012
1012
  var DEFAULTS$3 = Object.freeze({
1013
- width: 15,
1014
1013
  play_color: null,
1015
1014
  handle_color: null,
1016
1015
  font_color: null,
@@ -1051,7 +1050,6 @@
1051
1050
  var handle_color = this._state.handle_color || this._layout.font_color || "currentColor";
1052
1051
  var play_color = this._state.play_color || this._layout.font_color || "currentColor";
1053
1052
 
1054
- var slider_width = Math.round(remToPx(this._state.width));
1055
1053
  var handle_radius = Math.round(remToPx(this._state.handle_height));
1056
1054
  var track_height = remToPx(this._state.track_height);
1057
1055
 
@@ -1070,7 +1068,6 @@
1070
1068
 
1071
1069
  this._styles.select(this._selector + " input[type=range]")
1072
1070
  .style("-webkit-appearance", "none")
1073
- .style("width", slider_width + "px")
1074
1071
  .style("color", slider_color)
1075
1072
  .style("background-color", "transparent");
1076
1073