@overmap-ai/forms 1.0.12-links.13 → 1.0.12-links.2
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 +8 -21
- package/dist/forms.js.map +1 -1
- package/dist/forms.umd.cjs +8 -21
- package/dist/forms.umd.cjs.map +1 -1
- package/package.json +2 -2
package/dist/forms.js
CHANGED
|
@@ -477,26 +477,10 @@ 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__ */
|
|
481
|
-
/* @__PURE__ */ jsx(
|
|
482
|
-
|
|
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
|
-
)
|
|
496
|
-
}
|
|
497
|
-
),
|
|
498
|
-
/* @__PURE__ */ jsx("div", { className: "rt-TextFieldChrome" })
|
|
499
|
-
] }) }) });
|
|
480
|
+
return /* @__PURE__ */ jsx(InputWithLabelAndHelpText, { helpText, severity, children: /* @__PURE__ */ jsxs(InputWithLabel, { severity, inputId, labelId, label, children: [
|
|
481
|
+
/* @__PURE__ */ jsx(TextField$1.Input, { ...rest, ...fieldProps, type: field.inputType, id: inputId, color }),
|
|
482
|
+
/* @__PURE__ */ jsx(Linkify, { children: fieldProps.value })
|
|
483
|
+
] }) });
|
|
500
484
|
});
|
|
501
485
|
const _StringField = class _StringField extends StringOrTextField {
|
|
502
486
|
constructor(options) {
|
|
@@ -526,7 +510,10 @@ __publicField(_StringField, "Icon", InputIcon);
|
|
|
526
510
|
let StringField = _StringField;
|
|
527
511
|
const TextInput = memo(function TextInput2(props) {
|
|
528
512
|
const [{ inputId, labelId, severity, helpText, label, fieldProps }, rest] = useFormikInput(props);
|
|
529
|
-
return /* @__PURE__ */ jsx(InputWithLabelAndHelpText, { helpText, severity, children: /* @__PURE__ */
|
|
513
|
+
return /* @__PURE__ */ jsx(InputWithLabelAndHelpText, { helpText, severity, children: /* @__PURE__ */ jsxs(InputWithLabel, { severity, inputId, labelId, label, children: [
|
|
514
|
+
/* @__PURE__ */ jsx(TextArea, { ...rest, ...fieldProps, resize: "vertical", id: inputId, severity }),
|
|
515
|
+
/* @__PURE__ */ jsx(Linkify, { children: fieldProps.value })
|
|
516
|
+
] }) });
|
|
530
517
|
});
|
|
531
518
|
const _TextField = class _TextField extends StringOrTextField {
|
|
532
519
|
constructor(options) {
|