@flourish/ui-styles 5.0.1 → 5.0.3
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/.eslintrc.json +5 -1
- package/RELEASE_NOTES.md +7 -1
- package/package.json +8 -5
- package/rollup.config.mjs +6 -2
- package/src/button-style/index.js +1 -1
- package/src/dropdown-style/index.js +1 -1
- package/src/general-controls-style/index.js +1 -1
- package/src/index.js +4 -4
- package/src/slider-style/index.js +3 -2
- package/ui-styles.js +1 -0
package/.eslintrc.json
CHANGED
package/RELEASE_NOTES.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# 5.0.3
|
|
2
|
+
* Republish version with pnpm
|
|
3
|
+
|
|
4
|
+
# 5.0.2
|
|
5
|
+
* Set slider-label box-sizing to content-box so that padding is included
|
|
6
|
+
|
|
1
7
|
# 5.0.1
|
|
2
8
|
* Fix license annotation
|
|
3
9
|
|
|
@@ -25,4 +31,4 @@
|
|
|
25
31
|
* Apply font size and weight to control title
|
|
26
32
|
|
|
27
33
|
# 1.0.0
|
|
28
|
-
* First release
|
|
34
|
+
* First release
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flourish/ui-styles",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Flourish module for styling UI elements",
|
|
6
6
|
"main": "ui-styles.js",
|
|
@@ -8,14 +8,17 @@
|
|
|
8
8
|
"author": "Kiln Enterprises Ltd",
|
|
9
9
|
"license": "LicenseRef-LICENSE",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"
|
|
12
|
-
"
|
|
11
|
+
"d3-selection": "^1.4.0",
|
|
12
|
+
"@flourish/pocket-knife": "^1.3.0"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
+
"@babel/core": "^7.20.2",
|
|
16
|
+
"@babel/preset-env": "^7.20.2",
|
|
15
17
|
"@flourish/eslint-plugin-flourish": "^0.7.2",
|
|
18
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
16
19
|
"eslint": "^8.35.0",
|
|
17
|
-
"rollup": "
|
|
18
|
-
"rollup
|
|
20
|
+
"rollup": "^4.6.1",
|
|
21
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
19
22
|
"uglify-js": "^3.17.4"
|
|
20
23
|
},
|
|
21
24
|
"repository": {
|
package/rollup.config.mjs
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import nodeResolve from "rollup
|
|
1
|
+
import nodeResolve from "@rollup/plugin-node-resolve";
|
|
2
|
+
import babel from "@rollup/plugin-babel";
|
|
3
|
+
|
|
4
|
+
const is_production = process.env.NODE_ENV === "production" || !!process.env.CI;
|
|
2
5
|
|
|
3
6
|
export default {
|
|
4
7
|
input: "src/index.js",
|
|
@@ -8,7 +11,8 @@ export default {
|
|
|
8
11
|
name: "ui-styles"
|
|
9
12
|
},
|
|
10
13
|
plugins: [
|
|
11
|
-
nodeResolve()
|
|
14
|
+
nodeResolve(),
|
|
15
|
+
is_production && babel({ babelHelpers: "bundled", rootMode: "upward" }),
|
|
12
16
|
],
|
|
13
17
|
onwarn: function (warning, warn) {
|
|
14
18
|
if (warning.code === "CIRCULAR_DEPENDENCY") return;
|
package/src/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import GeneralControlsStyle from "./general-controls-style";
|
|
2
|
-
import ButtonStyle from "./button-style";
|
|
3
|
-
import DropdownStyle from "./dropdown-style";
|
|
4
|
-
import SliderStyle from "./slider-style";
|
|
1
|
+
import GeneralControlsStyle from "./general-controls-style/index.js";
|
|
2
|
+
import ButtonStyle from "./button-style/index.js";
|
|
3
|
+
import DropdownStyle from "./dropdown-style/index.js";
|
|
4
|
+
import SliderStyle from "./slider-style/index.js";
|
|
5
5
|
|
|
6
6
|
function createGeneralControlsStyle(state, selector, layout) {
|
|
7
7
|
return new GeneralControlsStyle(state, selector, layout);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { remToPx } from "../lib/remToPx";
|
|
2
|
-
import Stylesheet from "../lib/js2css";
|
|
1
|
+
import { remToPx } from "../lib/remToPx.js";
|
|
2
|
+
import Stylesheet from "../lib/js2css.js";
|
|
3
3
|
|
|
4
4
|
var DEFAULTS = Object.freeze({
|
|
5
5
|
play_color: null,
|
|
@@ -56,6 +56,7 @@ SliderStyle.prototype.update = function() {
|
|
|
56
56
|
|
|
57
57
|
this._styles.select(this._selector + " .slider-label")
|
|
58
58
|
.style("padding-inline-start", "0.3rem")
|
|
59
|
+
.style("box-sizing", "content-box")
|
|
59
60
|
.style("color", text_color);
|
|
60
61
|
|
|
61
62
|
this._styles.select(this._selector + " input[type=range]")
|
package/ui-styles.js
CHANGED