dce-reactkit 3.5.13 → 3.5.14

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/cjs/index.js CHANGED
@@ -42942,8 +42942,9 @@ const urlRegex = /(https?:\/\/)?([a-z0-9-]+\.)+[a-z0-9]{2,6}(:[0-9]{1,5})?(\/\S*
42942
42942
  * @param text the text to process
42943
42943
  * @param [opts] options to customize behavior
42944
42944
  * @param [opts.newTab] if true, links will open in a new tab
42945
- * @param [opts.preventPropagation] if true, clicks to link will prevent default
42946
- * and propagation
42945
+ * @param [opts.preventPropagation] if true, clicks to link will prevent
42946
+ * propagation
42947
+ * @param [opts.inheritColor] if true, inherit text color for links
42947
42948
  * @returns the processed text
42948
42949
  */
42949
42950
  const makeLinksClickable = (text, opts) => {
@@ -42970,10 +42971,10 @@ const makeLinksClickable = (text, opts) => {
42970
42971
  // Add the link
42971
42972
  elements.push(React__default["default"].createElement("a", { key: nextKey += 1, href: link, target: newTab ? '_blank' : undefined, rel: newTab ? 'noopener noreferrer' : undefined, style: {
42972
42973
  textDecoration: 'underline',
42974
+ color: (opts === null || opts === void 0 ? void 0 : opts.inheritColor) ? 'inherit' : undefined,
42973
42975
  }, onClick: (e) => {
42974
- // Prevent default and propagation if requested
42976
+ // Prevent propagation if requested
42975
42977
  if (opts === null || opts === void 0 ? void 0 : opts.preventPropagation) {
42976
- e.preventDefault();
42977
42978
  e.stopPropagation();
42978
42979
  }
42979
42980
  } }, link));