smoothly 0.1.70 → 0.1.71

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.
Files changed (26) hide show
  1. package/dist/cjs/{index-896ac706.js → index-7c9d0102.js} +806 -638
  2. package/dist/cjs/smoothly-accordion_43.cjs.entry.js +799 -642
  3. package/dist/cjs/smoothly-display-amount.cjs.entry.js +1 -3
  4. package/dist/cjs/smoothly-display.cjs.entry.js +1 -1
  5. package/dist/cjs/smoothly-input.cjs.entry.js +1 -1
  6. package/dist/cjs/smoothly-select.cjs.entry.js +1 -1
  7. package/dist/cjs/smoothly-table-header.cjs.entry.js +1 -1
  8. package/dist/collection/components/display-amount/index.js +1 -3
  9. package/dist/collection/components/select/index.js +1 -1
  10. package/dist/collection/components/table/header/index.js +1 -1
  11. package/dist/custom-elements/index.js +810 -644
  12. package/dist/esm/{index-a7e44b28.js → index-01fedb5b.js} +806 -638
  13. package/dist/esm/smoothly-accordion_43.entry.js +799 -642
  14. package/dist/esm/smoothly-display-amount.entry.js +1 -3
  15. package/dist/esm/smoothly-display.entry.js +1 -1
  16. package/dist/esm/smoothly-input.entry.js +1 -1
  17. package/dist/esm/smoothly-select.entry.js +1 -1
  18. package/dist/esm/smoothly-table-header.entry.js +1 -1
  19. package/dist/smoothly/{index-a7e44b28.js → index-01fedb5b.js} +806 -638
  20. package/dist/smoothly/{p-2e35abfc.entry.js → p-c107b623.entry.js} +1 -1
  21. package/dist/smoothly/smoothly-display-amount.entry.js +1 -3
  22. package/dist/smoothly/smoothly-display.entry.js +1 -1
  23. package/dist/smoothly/smoothly-input.entry.js +1 -1
  24. package/dist/smoothly/smoothly-select.entry.js +1 -1
  25. package/dist/smoothly/smoothly-table-header.entry.js +1 -1
  26. package/package.json +4 -4
@@ -11,9 +11,7 @@ const SmoothlyDisplayAmount = class {
11
11
  format(amount) {
12
12
  const digitsPerGroup = 3;
13
13
  const defaultDecimals = 2;
14
- const maxDecimals = (dist.Currency.decimalDigits(this.currency)
15
- ? dist.Currency.decimalDigits(this.currency)
16
- : defaultDecimals);
14
+ const maxDecimals = (dist.Currency.decimalDigits(this.currency) ? dist.Currency.decimalDigits(this.currency) : defaultDecimals);
17
15
  let beforeSeparator = amount.length;
18
16
  let separator;
19
17
  let result = amount;
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h } from './index-0dd5f791.js';
2
- import { d as dist } from './index-a7e44b28.js';
2
+ import { d as dist } from './index-01fedb5b.js';
3
3
  import './_commonjsHelpers-8fe71198.js';
4
4
 
5
5
  const styleCss = ".sc-smoothly-display-h{display:block}[hidden].sc-smoothly-display-h{display:none}";
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, i as createEvent, h, k as Host } from './index-0dd5f791.js';
2
- import { d as dist } from './index-a7e44b28.js';
2
+ import { d as dist } from './index-01fedb5b.js';
3
3
  import './_commonjsHelpers-8fe71198.js';
4
4
 
5
5
  const styleCss = ".sc-smoothly-input-h{display:block;position:relative}[hidden].sc-smoothly-input-h{display:none}label.sc-smoothly-input{position:absolute;left:0.4em;top:0.6em;color:rgb(var(--smoothly-text-tint));opacity:0.8;user-select:none;cursor:inherit;transition:font-size 0.1s;transition-timing-function:ease}input.sc-smoothly-input{padding:1em 0.2em 0.2em 0.2em;width:calc(100% - 0.4em);background:none;border:0;z-index:1;position:relative;font-size:1rem;font-family:var(--smoothly-font-family)}smoothly-icon.sc-smoothly-input{display:none;position:absolute;right:0.2em;top:0.6em}input.sc-smoothly-input:invalid+smoothly-icon.sc-smoothly-input{display:block}.has-value.sc-smoothly-input-h>label.sc-smoothly-input{top:0.3em;top:0.4em;font-size:60%;z-index:0}.sc-smoothly-input-h:focus-within>label.sc-smoothly-input{top:0.3em;top:0.4em;font-size:60%;z-index:0}input.sc-smoothly-input:focus{outline:none}input.sc-smoothly-input:-webkit-autofill,input.sc-smoothly-input:-webkit-autofill:hover,input.sc-smoothly-input:-webkit-autofill:focus,input.sc-smoothly-input:-webkit-autofill:active{box-shadow:0 0 0 30px unset inset !important;-webkit-box-shadow:0 0 0 30px unset inset !important}input.sc-smoothly-input:-webkit-autofill{-webkit-text-fill-color:unset !important}input.sc-smoothly-input:-internal-autofill-previewed,input.sc-smoothly-input:-internal-autofill-selected,textarea.sc-smoothly-input:-internal-autofill-previewed,textarea.sc-smoothly-input:-internal-autofill-selected,select.sc-smoothly-input:-internal-autofill-previewed,select.sc-smoothly-input:-internal-autofill-selected{background-color:none !important;background-image:none !important;color:unset !important}";
@@ -9,7 +9,7 @@ const SmoothlySelect = class {
9
9
  }
10
10
  optionSelected() {
11
11
  if (this.selectElement)
12
- this.selectionChanged.emit({ identifier: this.identifier, value: this.value = this.selectElement.value });
12
+ this.selectionChanged.emit({ identifier: this.identifier, value: (this.value = this.selectElement.value) });
13
13
  }
14
14
  componentDidLoad() {
15
15
  var _a;
@@ -10,7 +10,7 @@ const TableHeader = class {
10
10
  onClick(event) {
11
11
  this.sort.emit({
12
12
  property: this.name,
13
- direction: this.sortDirection = this.sortDirection == "ascending" ? "descending" : "ascending",
13
+ direction: (this.sortDirection = this.sortDirection == "ascending" ? "descending" : "ascending"),
14
14
  });
15
15
  console.log("sort", this.name, this.sortDirection);
16
16
  event.preventDefault();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smoothly",
3
- "version": "0.1.70",
3
+ "version": "0.1.71",
4
4
  "description": "Web component library written in Stencil.",
5
5
  "author": "PayFunc",
6
6
  "license": "MIT",
@@ -66,7 +66,7 @@
66
66
  "langly": "0.0.11",
67
67
  "normalize.css": "^8.0.1",
68
68
  "stencil-router-v2": "^0.6.0",
69
- "tidily": "0.0.43"
69
+ "tidily": "0.0.44"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@stencil/core": "^2.5.2",
@@ -77,13 +77,13 @@
77
77
  "@typescript-eslint/eslint-plugin": "^4.23.0",
78
78
  "@typescript-eslint/parser": "^4.23.0",
79
79
  "eslint": "^7.26.0",
80
- "eslint-plugin-prettierx": "github:nilssonemma/eslint-plugin-prettierx#master",
80
+ "eslint-plugin-prettierx": "github:robinnedergard/eslint-plugin-prettierx#master",
81
81
  "eslint-plugin-simple-import-sort": "^7.0.0",
82
82
  "jest": "26.6.3",
83
83
  "jest-cli": "26.6.3",
84
84
  "prettier": "^1.19.1",
85
85
  "prettier-stylelint": "^0.4.2",
86
- "prettierx": "github:simonmika/prettierx#newline-before-clause",
86
+ "prettierx": "github:robinnedergard/prettierx#newline-before-clause-sync",
87
87
  "puppeteer": "9.1.1",
88
88
  "stylelint-prettier": "^1.2.0",
89
89
  "stylelint-scss": "^3.19.0",