@dloizides/ui-forms 1.11.1 → 1.12.0
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/CHANGELOG.md +16 -1
- package/dist/index.d.mts +12 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +21 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -606,23 +606,33 @@ var ThemedTextInput = React2.forwardRef(function ThemedTextInput2({
|
|
|
606
606
|
});
|
|
607
607
|
var FormField = ({
|
|
608
608
|
label,
|
|
609
|
+
labelHidden = false,
|
|
609
610
|
required = false,
|
|
610
611
|
error,
|
|
611
612
|
containerStyle,
|
|
612
613
|
...textInputProps
|
|
613
|
-
}) => /* @__PURE__ */ jsx(
|
|
614
|
-
|
|
614
|
+
}) => /* @__PURE__ */ jsx(
|
|
615
|
+
Field,
|
|
615
616
|
{
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
617
|
+
containerStyle,
|
|
618
|
+
error,
|
|
619
|
+
label: labelHidden ? void 0 : label,
|
|
620
|
+
required,
|
|
621
|
+
children: ({ describedById, hasError, controlId }) => /* @__PURE__ */ jsx(
|
|
622
|
+
ThemedTextInput,
|
|
623
|
+
{
|
|
624
|
+
accessibilityHint: `Enter ${label}`,
|
|
625
|
+
accessibilityLabel: label,
|
|
626
|
+
describedById,
|
|
627
|
+
hasError,
|
|
628
|
+
id: controlId,
|
|
629
|
+
requiredField: required,
|
|
630
|
+
testID: "form-field-input",
|
|
631
|
+
...textInputProps
|
|
632
|
+
}
|
|
633
|
+
)
|
|
624
634
|
}
|
|
625
|
-
)
|
|
635
|
+
);
|
|
626
636
|
var TRANSPARENT_COLOR = "transparent";
|
|
627
637
|
var WHITE_COLOR = "#fff";
|
|
628
638
|
var SOLID_RADIUS = 20;
|