@wise/dynamic-flow-client-internal 5.12.1 → 5.13.0-experimental-13d828c
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/build/main.js
CHANGED
|
@@ -406,7 +406,7 @@ function NamedIcon({ name, size = 24 }) {
|
|
|
406
406
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon, { size });
|
|
407
407
|
}
|
|
408
408
|
var toCapitalisedCamelCase = (value) => value.split("-").map(capitaliseFirstChar).join("");
|
|
409
|
-
var capitaliseFirstChar = (value) => `${value[0].toUpperCase()}${value.slice(1)}`;
|
|
409
|
+
var capitaliseFirstChar = (value) => value.length === 0 ? "" : `${value[0].toUpperCase()}${value.slice(1)}`;
|
|
410
410
|
|
|
411
411
|
// ../renderers/src/components/icon/DynamicIcon.tsx
|
|
412
412
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
package/build/main.mjs
CHANGED
|
@@ -388,7 +388,7 @@ function NamedIcon({ name, size = 24 }) {
|
|
|
388
388
|
return /* @__PURE__ */ jsx6(Icon, { size });
|
|
389
389
|
}
|
|
390
390
|
var toCapitalisedCamelCase = (value) => value.split("-").map(capitaliseFirstChar).join("");
|
|
391
|
-
var capitaliseFirstChar = (value) => `${value[0].toUpperCase()}${value.slice(1)}`;
|
|
391
|
+
var capitaliseFirstChar = (value) => value.length === 0 ? "" : `${value[0].toUpperCase()}${value.slice(1)}`;
|
|
392
392
|
|
|
393
393
|
// ../renderers/src/components/icon/DynamicIcon.tsx
|
|
394
394
|
import { jsx as jsx7 } from "react/jsx-runtime";
|