@bookinglab/booking-ui-react 1.12.0 → 1.13.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.d.cts CHANGED
@@ -878,6 +878,8 @@ interface BookingFormProps {
878
878
  submitLabel?: string;
879
879
  /** Whether the current user is an admin. When false (default), questions with admin_only=true are hidden. */
880
880
  isAdmin?: boolean;
881
+ /** When true, renders each question's help_text directly below the label (or legend/heading) instead of below the input. Defaults to false. */
882
+ displayHelpTextBelowLabel?: boolean;
881
883
  /** Class name for the form element */
882
884
  className?: string;
883
885
  /** @deprecated Use classNames.label instead */
@@ -907,7 +909,7 @@ interface BookingUIConfig {
907
909
  * />
908
910
  * ```
909
911
  */
910
- declare function BookingForm({ questions, onSubmit, submitLabel, isAdmin, className, labelClassName, classNames: classNamesProp, }: BookingFormProps): react_jsx_runtime.JSX.Element;
912
+ declare function BookingForm({ questions, onSubmit, submitLabel, isAdmin, displayHelpTextBelowLabel, className, labelClassName, classNames: classNamesProp, }: BookingFormProps): react_jsx_runtime.JSX.Element;
911
913
 
912
914
  /**
913
915
  * A reusable, accessible registration form component.
package/dist/index.d.ts CHANGED
@@ -878,6 +878,8 @@ interface BookingFormProps {
878
878
  submitLabel?: string;
879
879
  /** Whether the current user is an admin. When false (default), questions with admin_only=true are hidden. */
880
880
  isAdmin?: boolean;
881
+ /** When true, renders each question's help_text directly below the label (or legend/heading) instead of below the input. Defaults to false. */
882
+ displayHelpTextBelowLabel?: boolean;
881
883
  /** Class name for the form element */
882
884
  className?: string;
883
885
  /** @deprecated Use classNames.label instead */
@@ -907,7 +909,7 @@ interface BookingUIConfig {
907
909
  * />
908
910
  * ```
909
911
  */
910
- declare function BookingForm({ questions, onSubmit, submitLabel, isAdmin, className, labelClassName, classNames: classNamesProp, }: BookingFormProps): react_jsx_runtime.JSX.Element;
912
+ declare function BookingForm({ questions, onSubmit, submitLabel, isAdmin, displayHelpTextBelowLabel, className, labelClassName, classNames: classNamesProp, }: BookingFormProps): react_jsx_runtime.JSX.Element;
911
913
 
912
914
  /**
913
915
  * A reusable, accessible registration form component.