@overmap-ai/forms 1.0.12-links.13 → 1.0.12-links.3

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
@@ -477,26 +477,20 @@ const StringInput = memo(function StringInput2(props) {
477
477
  const [{ inputId, labelId, severity, helpText, label, fieldProps, field }, rest] = useFormikInput(props);
478
478
  const color = useSeverityColor(severity);
479
479
  console.log(inputId, label, fieldProps, field, rest);
480
- return /* @__PURE__ */ jsx(InputWithLabelAndHelpText, { helpText, severity, children: /* @__PURE__ */ jsx(InputWithLabel, { severity, inputId, labelId, label, children: !rest.disabled ? /* @__PURE__ */ jsx(TextField$1.Input, { ...rest, ...fieldProps, type: field.inputType, id: inputId, color }) : /* @__PURE__ */ jsxs(TextField$1.Root, { style: { zIndex: 1 }, children: [
480
+ return /* @__PURE__ */ jsx(InputWithLabelAndHelpText, { helpText, severity, children: /* @__PURE__ */ jsxs(InputWithLabel, { severity, inputId, labelId, label, children: [
481
481
  /* @__PURE__ */ jsx(
482
- "div",
482
+ TextField$1.Input,
483
483
  {
484
- className: "rt-TextFieldInput rt-r-size-2 rt-variant-surface",
485
- style: { overflowY: "hidden", paddingTop: "5px" },
486
- children: /* @__PURE__ */ jsx(
487
- Linkify,
488
- {
489
- options: {
490
- target: "_blank",
491
- rel: "noopener"
492
- },
493
- children: fieldProps.value
494
- }
495
- )
484
+ ...rest,
485
+ ...fieldProps,
486
+ value: '<a href="http://www.mysite.com/link" target="_blank"><img src="http://www.mysite.com/img.jpg" border="0" alt="mysite.com"></a>',
487
+ type: field.inputType,
488
+ id: inputId,
489
+ color
496
490
  }
497
491
  ),
498
- /* @__PURE__ */ jsx("div", { className: "rt-TextFieldChrome" })
499
- ] }) }) });
492
+ /* @__PURE__ */ jsx(Linkify, { children: fieldProps.value })
493
+ ] }) });
500
494
  });
501
495
  const _StringField = class _StringField extends StringOrTextField {
502
496
  constructor(options) {
@@ -526,7 +520,10 @@ __publicField(_StringField, "Icon", InputIcon);
526
520
  let StringField = _StringField;
527
521
  const TextInput = memo(function TextInput2(props) {
528
522
  const [{ inputId, labelId, severity, helpText, label, fieldProps }, rest] = useFormikInput(props);
529
- 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 }) }) });
523
+ return /* @__PURE__ */ jsx(InputWithLabelAndHelpText, { helpText, severity, children: /* @__PURE__ */ jsxs(InputWithLabel, { severity, inputId, labelId, label, children: [
524
+ /* @__PURE__ */ jsx(TextArea, { ...rest, ...fieldProps, resize: "vertical", id: inputId, severity }),
525
+ /* @__PURE__ */ jsx(Linkify, { children: fieldProps.value })
526
+ ] }) });
530
527
  });
531
528
  const _TextField = class _TextField extends StringOrTextField {
532
529
  constructor(options) {