@lumiastream/ui 0.5.8 → 0.6.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/dist/index.js CHANGED
@@ -4138,7 +4138,9 @@ function seInnerAutoFit(widget, innerCss, mode) {
4138
4138
  const isInnerAutoWidth = innerCss?.width === "auto";
4139
4139
  const isInnerAutoHeight = innerCss?.height === "auto";
4140
4140
  if (mode === "width-drives-both") {
4141
- if (!isInnerAutoWidth) return {};
4141
+ if (!innerCss) return {};
4142
+ const innerWidth = innerCss.width;
4143
+ if (innerWidth === "100" || innerWidth === "100%") return {};
4142
4144
  return { objectFit: "contain", autoWidth: true, autoHeight: true };
4143
4145
  }
4144
4146
  if (!isInnerAutoWidth && !isInnerAutoHeight) return {};
package/dist/se-import.js CHANGED
@@ -1058,7 +1058,9 @@ function seInnerAutoFit(widget, innerCss, mode) {
1058
1058
  const isInnerAutoWidth = innerCss?.width === "auto";
1059
1059
  const isInnerAutoHeight = innerCss?.height === "auto";
1060
1060
  if (mode === "width-drives-both") {
1061
- if (!isInnerAutoWidth) return {};
1061
+ if (!innerCss) return {};
1062
+ const innerWidth = innerCss.width;
1063
+ if (innerWidth === "100" || innerWidth === "100%") return {};
1062
1064
  return { objectFit: "contain", autoWidth: true, autoHeight: true };
1063
1065
  }
1064
1066
  if (!isInnerAutoWidth && !isInnerAutoHeight) return {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumiastream/ui",
3
- "version": "0.5.8",
3
+ "version": "0.6.0",
4
4
  "author": "Lumia Stream",
5
5
  "license": "ISC",
6
6
  "description": "Lumia UI Kit",