@assecosolutions/fox-image
Advanced tools
Comparing version 1.11.2 to 1.11.3-beta.0
23
index.js
@@ -1556,7 +1556,7 @@ import { css, LitElement, html as html$2 } from 'lit'; | ||
let _$1 = t => t, | ||
_t$1; | ||
_t$1; | ||
const styles = css(_t$1 || (_t$1 = _$1`:host{max-width:max-content;display:inline-flex}.fox-image__rounded{border-radius:50%}.fox-image__rectangle{border-radius:4px}`)); | ||
let _ = t => t, | ||
_t; | ||
_t; | ||
/** | ||
@@ -1568,3 +1568,2 @@ * This is a fox-image | ||
*/ | ||
class FoxImage extends LitElement { | ||
@@ -1577,3 +1576,2 @@ constructor() { | ||
*/ | ||
this.width = '100%'; | ||
@@ -1584,3 +1582,2 @@ /** | ||
*/ | ||
this.fit = 'cover'; | ||
@@ -1591,3 +1588,2 @@ /** | ||
*/ | ||
this.rounded = false; | ||
@@ -1598,6 +1594,4 @@ /** | ||
*/ | ||
this.rectangle = false; | ||
} | ||
render() { | ||
@@ -1611,3 +1605,2 @@ const imageSizes = { | ||
}; | ||
if (this.size) { | ||
@@ -1617,3 +1610,2 @@ this.height = imageSizes[this.size]; | ||
} | ||
const classes = { | ||
@@ -1633,18 +1625,13 @@ 'fox-image__rounded': this.rounded, | ||
} | ||
} | ||
FoxImage.styles = [styles]; | ||
__decorate([property({ | ||
type: String | ||
}), __metadata("design:type", String)], FoxImage.prototype, "size", void 0); | ||
__decorate([property({ | ||
type: String | ||
}), __metadata("design:type", Object)], FoxImage.prototype, "width", void 0); | ||
__decorate([property({ | ||
type: String | ||
}), __metadata("design:type", String)], FoxImage.prototype, "height", void 0); | ||
__decorate([property({ | ||
@@ -1654,11 +1641,8 @@ type: String, | ||
}), __metadata("design:type", String)], FoxImage.prototype, "fit", void 0); | ||
__decorate([property({ | ||
type: Boolean | ||
}), __metadata("design:type", Object)], FoxImage.prototype, "rounded", void 0); | ||
__decorate([property({ | ||
type: Boolean | ||
}), __metadata("design:type", Object)], FoxImage.prototype, "rectangle", void 0); | ||
__decorate([property({ | ||
@@ -1668,3 +1652,2 @@ type: String, | ||
}), __metadata("design:type", String)], FoxImage.prototype, "src", void 0); | ||
__decorate([property({ | ||
@@ -1674,5 +1657,3 @@ type: String, | ||
}), __metadata("design:type", String)], FoxImage.prototype, "alt", void 0); | ||
const name = 'fox-image'; | ||
if (!customElements.get(name)) { | ||
@@ -1679,0 +1660,0 @@ customElements.define(name, FoxImage); |
{ | ||
"name": "@assecosolutions/fox-image", | ||
"version": "1.11.2", | ||
"version": "1.11.3-beta.0", | ||
"public": true, | ||
@@ -18,7 +18,7 @@ "publishConfig": { | ||
"type": "module", | ||
"types": "./index.d.ts", | ||
"types": "./src/index.d.ts", | ||
"dependencies": {}, | ||
"peerDependencies": { | ||
"lit": "^2.0.0" | ||
"lit": "^2.5.0" | ||
} | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
61134
6
1452
2