@overmap-ai/forms 1.0.12-links.6 → 1.0.12-links.8

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/forms.js CHANGED
@@ -479,8 +479,24 @@ const StringInput = memo(function StringInput2(props) {
479
479
  console.log(inputId, label, fieldProps, field, rest);
480
480
  return /* @__PURE__ */ jsx(InputWithLabelAndHelpText, { helpText, severity, children: /* @__PURE__ */ jsxs(InputWithLabel, { severity, inputId, labelId, label, children: [
481
481
  /* @__PURE__ */ jsx(TextField$1.Input, { ...rest, ...fieldProps, type: field.inputType, id: inputId, color }),
482
- /* @__PURE__ */ jsxs(TextField$1.Root, { children: [
483
- /* @__PURE__ */ jsx("div", { className: "rt-TextFieldInput rt-r-size-2 rt-variant-surface", children: /* @__PURE__ */ jsx(Linkify, { children: fieldProps.value }) }),
482
+ /* @__PURE__ */ jsxs(TextField$1.Root, { style: { zIndex: 1 }, children: [
483
+ /* @__PURE__ */ jsx(
484
+ "div",
485
+ {
486
+ className: "rt-TextFieldInput rt-r-size-2 rt-variant-surface",
487
+ style: { overflowY: "hidden", paddingTop: "5px" },
488
+ children: /* @__PURE__ */ jsx(
489
+ Linkify,
490
+ {
491
+ options: {
492
+ target: "_blank",
493
+ rel: "noopener"
494
+ },
495
+ children: fieldProps.value
496
+ }
497
+ )
498
+ }
499
+ ),
484
500
  /* @__PURE__ */ jsx("div", { className: "rt-TextFieldChrome" })
485
501
  ] })
486
502
  ] }) });
@@ -513,11 +529,7 @@ __publicField(_StringField, "Icon", InputIcon);
513
529
  let StringField = _StringField;
514
530
  const TextInput = memo(function TextInput2(props) {
515
531
  const [{ inputId, labelId, severity, helpText, label, fieldProps }, rest] = useFormikInput(props);
516
- return /* @__PURE__ */ jsx(InputWithLabelAndHelpText, { helpText, severity, children: /* @__PURE__ */ jsxs(InputWithLabel, { severity, inputId, labelId, label, children: [
517
- /* @__PURE__ */ jsx(TextArea, { ...rest, ...fieldProps, resize: "vertical", id: inputId, severity }),
518
- /* @__PURE__ */ jsx("div", { className: "rt-TextAreaInput", children: /* @__PURE__ */ jsx(Linkify, { children: fieldProps.value }) }),
519
- /* @__PURE__ */ jsx("div", { className: "rt-TextAreaChrome" })
520
- ] }) });
532
+ return /* @__PURE__ */ jsx(InputWithLabelAndHelpText, { helpText, severity, children: /* @__PURE__ */ jsx(InputWithLabel, { severity, inputId, labelId, label, children: /* @__PURE__ */ jsx(TextArea, { ...rest, ...fieldProps, resize: "vertical", id: inputId, severity }) }) });
521
533
  });
522
534
  const _TextField = class _TextField extends StringOrTextField {
523
535
  constructor(options) {