@htmlplus/element 3.4.5 → 3.4.6
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/client.js +4 -4
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -2042,13 +2042,13 @@ function Style() {
|
|
|
2042
2042
|
});
|
|
2043
2043
|
};
|
|
2044
2044
|
}
|
|
2045
|
-
const toCssString = (input
|
|
2045
|
+
const toCssString = (input) => {
|
|
2046
2046
|
if (typeof input === 'string') {
|
|
2047
2047
|
return input.trim();
|
|
2048
2048
|
}
|
|
2049
2049
|
if (Array.isArray(input)) {
|
|
2050
2050
|
return input
|
|
2051
|
-
.map((item) => toCssString(item
|
|
2051
|
+
.map((item) => toCssString(item))
|
|
2052
2052
|
.filter(Boolean)
|
|
2053
2053
|
.join('\n');
|
|
2054
2054
|
}
|
|
@@ -2064,13 +2064,13 @@ const toCssString = (input, parent) => {
|
|
|
2064
2064
|
continue;
|
|
2065
2065
|
const cssKey = key.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`);
|
|
2066
2066
|
if (typeof value === 'object') {
|
|
2067
|
-
result += `${cssKey} {${toCssString(value
|
|
2067
|
+
result += `${cssKey} {${toCssString(value)}}`;
|
|
2068
2068
|
}
|
|
2069
2069
|
else {
|
|
2070
2070
|
result += `${cssKey}: ${value};`;
|
|
2071
2071
|
}
|
|
2072
2072
|
}
|
|
2073
|
-
return
|
|
2073
|
+
return result;
|
|
2074
2074
|
};
|
|
2075
2075
|
|
|
2076
2076
|
function Variant() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlplus/element",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.6",
|
|
4
4
|
"description": "A powerful library for building scalable, reusable, fast, tastable and lightweight design system for any web technologies. Powered by Web Component.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|