@thecb/components 11.3.5-beta.0 → 11.3.5

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.cjs.js CHANGED
@@ -1728,9 +1728,11 @@ var createIdFromString = function createIdFromString(text, postscript) {
1728
1728
  var formatIdString = function formatIdString(str) {
1729
1729
  return str && typeof str === "string" ? str.trim().replace(/\s+/g, "-") : "";
1730
1730
  };
1731
- var textId = formatIdString(text === null || text === void 0 ? void 0 : text.toString());
1731
+ var textIdSegment = formatIdString(text === null || text === void 0 ? void 0 : text.toString());
1732
1732
  var postscriptId = formatIdString(postscript === null || postscript === void 0 ? void 0 : postscript.toString());
1733
- return "".concat(textId).concat(postscriptId ? "-".concat(postscriptId) : "").concat(unique ? createUniqueId() : "");
1733
+ var postscriptIdSegment = postscriptId ? "-".concat(postscriptId) : "";
1734
+ var uniqueIdSegment = unique ? createUniqueId() : "";
1735
+ return "".concat(textIdSegment).concat(postscriptIdSegment).concat(uniqueIdSegment);
1734
1736
  }
1735
1737
  };
1736
1738
  var safeChildren = function safeChildren(children) {