@breadstone/mosaik-themes 0.0.211 → 0.0.214

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/index.cjs CHANGED
@@ -2651,6 +2651,17 @@ exports.CssColor = void 0;
2651
2651
  }
2652
2652
  __name(toNumber, "toNumber");
2653
2653
  CssLength2.toNumber = toNumber;
2654
+ function toString(value, defaultUnit = "px") {
2655
+ if (value === void 0 || value === null) {
2656
+ return "";
2657
+ }
2658
+ if (typeof value === "number") {
2659
+ return `${value}${defaultUnit}`;
2660
+ }
2661
+ return value;
2662
+ }
2663
+ __name(toString, "toString");
2664
+ CssLength2.toString = toString;
2654
2665
  function extractUnit(cssLength) {
2655
2666
  const match = /[a-z%]+$/i.exec(cssLength);
2656
2667
  const lengt = match ? match[0] : null;