import React from 'react' ; import { Dictionary } from '@brandingbrand/fsfoundation' ; import StatefulTextbox from './StatefulTextbox' ; export enum FormLabelPosition { Above , Floating , Hidden , Inline } export function labelAboveFieldTemplate ( locals , componentFactory ) { return ( < StatefulTextbox locals = { locals } componentFactory = { componentFactory } labelPosition = { FormLabelPosition . Above } / > ) ; } export function labelFloatingFieldTemplate ( locals , componentFactory ) { return ( < StatefulTextbox locals = { locals } componentFactory = { componentFactory } labelPosition = { FormLabelPosition . Floating } / > ) ; } export function labelHiddenFieldTemplate ( locals , componentFactory ) { return ( < StatefulTextbox locals = { locals } componentFactory = { componentFactory } labelPosition = { FormLabelPosition . Hidden } / > ) ; } export function labelInlineFieldTemplate ( locals , componentFactory ) { return ( < StatefulTextbox locals = { locals } componentFactory = { componentFactory } labelPosition = { FormLabelPosition . Inline } / > ) ; }