@flourish/ui-styles 5.0.0 → 5.0.2

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 CHANGED
@@ -1,7 +1,3 @@
1
1
  {
2
- "plugins": [
3
- "@flourish/flourish"
4
- ],
5
- "extends": "plugin:@flourish/flourish/flourish",
6
- "env": { "browser": true }
7
- }
2
+ "extends": "../../.eslintrc.cjs"
3
+ }
package/LICENSE ADDED
@@ -0,0 +1,26 @@
1
+ # Flourish Component License v1.1
2
+
3
+ Use of code and documentation (“Software”) released under the Flourish Component License v1.1 (“Licence”) is subject to the following terms. If you intend to use the Software on behalf of a company or other entity, you represent that you have the appropriate authority to bind such company or other entity to this Licence. By accessing or otherwise using the Software, you are agreeing to be bound by the terms of this Licence. If you do not agree to these terms, please do not use the Software and remove it from your computer. This Licence is governed by English law and was last updated on 29 August 2022.
4
+
5
+ ## Licence and restrictions
6
+ The Software was created by and is owned by Canva UK Operations Ltd (we, us or our). Subject to the terms and conditions in this License, we grant you a revocable, non-exclusive, non-transferable, royalty-free licence to install the Software for the sole purpose of creating digital visualisation templates (“Templates”) to upload to our online platform, Flourish.
7
+
8
+ Without written permission from us, Templates or other works created with or incorporating the Software (or any part of it) may not be incorporated into any other online tool or platform, or sold or sub-licensed, or used for any other purpose.
9
+
10
+ You may distribute the Software, provided that you only distribute complete un-modified copies and include a copy of this license and any copyright, patent, trade mark and attribution notices incorporated into the Software in all distributions.
11
+
12
+ You agree that you are solely responsible for (and that we have no responsibility to you or to any third party for) any data, content, or resources that you create, transmit or display through Software, and for the consequences of your actions (including any loss or damage which we may suffer) by doing so.
13
+
14
+ ## Intellectual property
15
+ Nothing in this Licence shall cause the ownership of any intellectual property rights of either party to be transferred to the other. As between the parties, all intellectual property rights in the Software belong to us. Except as expressly provided by this Agreement, you shall not acquire any right, title or interest in the intellectual property rights in the Software (or any part of it). All our intellectual property rights and other rights which are not expressly granted to you by this Agreement are reserved by us.
16
+
17
+ ## Our liability
18
+ The Software is provided on an “as is” basis. Except as expressly set out in this Licence and subject only to the below, no implied conditions, warranties or other terms, including any implied terms relating to satisfactory quality or fitness for any purpose, will apply to the Software (or any part of it) or to anything supplied or provided by us under this Licence.
19
+
20
+ We do not warrant or represent that the Software (or any part of it) will operate continuously without error or be entirely free of bugs, viruses or other contaminants or will be suitable for your purposes.
21
+
22
+ Nothing in these terms and conditions shall limit or exclude our liability to you: (a) for death or personal injury caused by our negligence; (b) for fraudulent misrepresentation; (c) for breach of any term implied by the Consumer Rights Act 2015 and which, by law, may not be limited or excluded; or (d) for any other liability that, by law, may not be limited or excluded.
23
+
24
+ In no event shall we be liable to you for any indirect or consequential losses, or for any loss of profit, revenue, contracts, data, goodwill or other similar losses, and any liability we do have for losses you suffer arising from any use of the Software shall not exceed £500.
25
+
26
+ We will not be liable or responsible for any failure to perform, or delay in performance of, any of our obligations under this Licence that is caused by events outside our reasonable control.
package/RELEASE_NOTES.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 5.0.2
2
+ * Set slider-label box-sizing to content-box so that padding is included
3
+
4
+ # 5.0.1
5
+ * Fix license annotation
6
+
1
7
  # 5.0.0
2
8
  * Change default background button color to black [BREAKING]
3
9
  * Ignore layout background color if not enabled
@@ -22,4 +28,4 @@
22
28
  * Apply font size and weight to control title
23
29
 
24
30
  # 1.0.0
25
- * First release
31
+ * First release
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@flourish/ui-styles",
3
- "version": "5.0.0",
3
+ "version": "5.0.2",
4
+ "private": false,
4
5
  "description": "Flourish module for styling UI elements",
5
6
  "main": "ui-styles.js",
6
7
  "module": "src/index.js",
@@ -8,34 +9,23 @@
8
9
  "lint": "eslint src",
9
10
  "build": "rollup -c",
10
11
  "prepare": "npm run build && npm run minify",
11
- "minify": "uglifyjs -m -o ui-styles.min.js ui-styles.js",
12
- "precommit": "lint-staged"
12
+ "minify": "uglifyjs -m -o ui-styles.min.js ui-styles.js"
13
13
  },
14
14
  "author": "Kiln Enterprises Ltd",
15
- "license": "https://flourish.studio/terms/fcl/",
15
+ "license": "LicenseRef-LICENSE",
16
16
  "dependencies": {
17
- "@flourish/pocket-knife": "^1.0.0",
17
+ "@flourish/pocket-knife": "workspace:^",
18
18
  "d3-selection": "^1.4.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@flourish/eslint-plugin-flourish": "^0.7.2",
22
- "eslint": "^8.34.0",
23
- "husky": "^8.0.3",
24
- "lint-staged": "^13.1.2",
25
- "rollup": "^2.79.1",
22
+ "eslint": "^8.35.0",
23
+ "rollup": "3",
26
24
  "rollup-plugin-node-resolve": "^5.2.0",
27
25
  "uglify-js": "^3.17.4"
28
26
  },
29
27
  "repository": {
30
28
  "type": "git",
31
29
  "url": "git://github.com/kiln/flourish-ui-styles.git"
32
- },
33
- "lint-staged": {
34
- "*.js": "npm run lint --"
35
- },
36
- "husky": {
37
- "hooks": {
38
- "pre-commit": "lint-staged"
39
- }
40
30
  }
41
31
  }
@@ -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
@@ -866,6 +866,7 @@
866
866
 
867
867
  this._styles.select(this._selector + " .slider-label")
868
868
  .style("padding-inline-start", "0.3rem")
869
+ .style("box-sizing", "content-box")
869
870
  .style("color", text_color);
870
871
 
871
872
  this._styles.select(this._selector + " input[type=range]")
@@ -927,6 +928,4 @@
927
928
  exports.createGeneralControlsStyle = createGeneralControlsStyle;
928
929
  exports.createSliderStyle = createSliderStyle;
929
930
 
930
- Object.defineProperty(exports, '__esModule', { value: true });
931
-
932
931
  }));
File without changes