@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 +14 -17
- package/dist/forms.js.map +1 -1
- package/dist/forms.umd.cjs +14 -17
- package/dist/forms.umd.cjs.map +1 -1
- package/package.json +2 -2
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__ */
|
|
480
|
+
return /* @__PURE__ */ jsx(InputWithLabelAndHelpText, { helpText, severity, children: /* @__PURE__ */ jsxs(InputWithLabel, { severity, inputId, labelId, label, children: [
|
|
481
481
|
/* @__PURE__ */ jsx(
|
|
482
|
-
|
|
482
|
+
TextField$1.Input,
|
|
483
483
|
{
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
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(
|
|
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__ */
|
|
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) {
|