@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/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(Field, { containerStyle, error, label, required, children: ({ describedById, hasError, controlId }) => /* @__PURE__ */ jsx(
614
- ThemedTextInput,
614
+ }) => /* @__PURE__ */ jsx(
615
+ Field,
615
616
  {
616
- accessibilityHint: `Enter ${label}`,
617
- accessibilityLabel: label,
618
- describedById,
619
- hasError,
620
- id: controlId,
621
- requiredField: required,
622
- testID: "form-field-input",
623
- ...textInputProps
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;