@breadstone/mosaik-themes 0.0.210 → 0.0.212
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 +11 -0
- package/index.cjs.map +1 -1
- package/index.d.mts +31 -0
- package/index.d.ts +31 -0
- package/index.js +11 -0
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/themes/cosmopolitan.scss +42 -0
- package/themes/joy.scss +47 -5
- package/themes/memphis.scss +47 -5
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;
|