@oliasoft-open-source/react-ui-library 5.12.0 → 5.12.1
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 +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8581,7 +8581,10 @@ const countDeltas = (e) => (Array.isArray(e) ? e : e ? [e] : []).reduce((e, t) =
|
|
|
8581
8581
|
if (i) return i;
|
|
8582
8582
|
}
|
|
8583
8583
|
return "";
|
|
8584
|
-
}, toText = (e) =>
|
|
8584
|
+
}, toText = (e) => {
|
|
8585
|
+
let t = (e) => isValueWithUnit(e) ? withPrettyUnitLabel(e) : String(e);
|
|
8586
|
+
return Array.isArray(e) ? e.length === 0 ? "" : e.some((e) => e && typeof e == "object") ? "Multiple changes..." : e.map(t).join(", ") : e && typeof e == "object" ? Object.keys(e).length === 0 ? "" : "Multiple changes..." : t(e);
|
|
8587
|
+
}, defaultMessage = (e) => {
|
|
8585
8588
|
switch (e.length) {
|
|
8586
8589
|
case 1: {
|
|
8587
8590
|
let [t] = e;
|
package/package.json
CHANGED