@thecb/components 11.1.5 → 11.1.6-beta.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.esm.js CHANGED
@@ -41216,7 +41216,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
41216
41216
  };
41217
41217
  var numChildren = typeof children === "Array" ? children.length : 1;
41218
41218
  var label = name !== "" ? name : !customTitle ? title : "collapsible section";
41219
- var id = "".concat(label === null || label === void 0 || (_label$replaceAll = label.replaceAll(" ", "-")) === null || _label$replaceAll === void 0 ? void 0 : _label$replaceAll.toLowerCase(), "-").concat(index);
41219
+ var id = "".concat(label === null || label === void 0 || (_label$replaceAll = label.replaceAll) === null || _label$replaceAll === void 0 || (_label$replaceAll = _label$replaceAll.call(label, " ", "-")) === null || _label$replaceAll === void 0 ? void 0 : _label$replaceAll.toLowerCase(), "-").concat(index);
41220
41220
  var wrapper = {
41221
41221
  open: {
41222
41222
  height: openHeight,
@@ -46512,6 +46512,7 @@ var Footer = styled(Stack).withConfig({
46512
46512
  })(["align-items:center;width:100%;"]);
46513
46513
 
46514
46514
  var LinkCard = function LinkCard(_ref) {
46515
+ var _title$toLowerCase, _title$toLowerCase$re;
46515
46516
  var _ref$title = _ref.title,
46516
46517
  title = _ref$title === void 0 ? "Test Workflow" : _ref$title,
46517
46518
  _ref$subtitle = _ref.subtitle,
@@ -46535,7 +46536,7 @@ var LinkCard = function LinkCard(_ref) {
46535
46536
  var _useContext = useContext(ThemeContext),
46536
46537
  isMobile = _useContext.isMobile;
46537
46538
  var regex = /\W/g;
46538
- var locatorSlug = title.toLowerCase().replaceAll(regex, "-");
46539
+ var locatorSlug = title === null || title === void 0 || (_title$toLowerCase = title.toLowerCase) === null || _title$toLowerCase === void 0 || (_title$toLowerCase = _title$toLowerCase.call(title)) === null || _title$toLowerCase === void 0 || (_title$toLowerCase$re = _title$toLowerCase.replaceAll) === null || _title$toLowerCase$re === void 0 ? void 0 : _title$toLowerCase$re.call(_title$toLowerCase, regex, "-");
46539
46540
  return /*#__PURE__*/React.createElement(Container, {
46540
46541
  borderRadius: "8px",
46541
46542
  dataQa: "link-card-".concat(locatorSlug),