comand-component-library 4.2.27 → 4.2.28
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.
@@ -20456,7 +20456,7 @@ const px = /* @__PURE__ */ F(cx, [["render", mx]]), fx = [
|
|
20456
20456
|
text: "Zimbabwe",
|
20457
20457
|
value: "zw"
|
20458
20458
|
}
|
20459
|
-
], _C = "comand-component-library", OC = "4.2.
|
20459
|
+
], _C = "comand-component-library", OC = "4.2.28", LC = "GPL-3.0-only", IC = "CoManD-UI", BC = "module", DC = {
|
20460
20460
|
prepublishOnly: "npm run build-lib",
|
20461
20461
|
dev: "vite",
|
20462
20462
|
build: "vite build",
|
@@ -24592,7 +24592,7 @@ function Iv(e) {
|
|
24592
24592
|
return e ? e.charAt(0).toLowerCase() + e.slice(1) : "";
|
24593
24593
|
}
|
24594
24594
|
function Bv(...e) {
|
24595
|
-
return e.
|
24595
|
+
return [e].map((t) => t.trim()).filter((t) => t !== "").join(" ");
|
24596
24596
|
}
|
24597
24597
|
function Dv() {
|
24598
24598
|
const e = {};
|
package/package.json
CHANGED
package/src/utils/string.js
CHANGED
@@ -13,7 +13,10 @@ function lowercaseFirstLetter(string) {
|
|
13
13
|
}
|
14
14
|
|
15
15
|
function fullName(...names) {
|
16
|
-
return
|
16
|
+
return [names]
|
17
|
+
.map(name => name.trim()) // remove extra spaces
|
18
|
+
.filter(name => name !== '') // remove empty strings
|
19
|
+
.join(' ');
|
17
20
|
}
|
18
21
|
|
19
22
|
export {capitalizeFirstLetter, lowercaseFirstLetter, fullName}
|