bin/form/field-wrapper.js
function FieldLabel(props) {
    var label = props.label, indicator = props.indicator, tooltipProps = props.tooltipProps, infoIconProps = props.infoIconProps;
    var indicatorEl = null;
    if (indicator === 'optional') {
        indicatorEl = React.createElement("span", { className: 'indicator' }, "(optional)");
    }
    if (indicator === 'required') {
        indicatorEl = React.createElement("span", { className: 'indicator' }, "*");
    }
    var indicatorClass = classNames({
        'optional': props.indicator === 'optional',
        'required': props.indicator === 'required'
    });
    var tooltipEl = null;
    if (infoIconProps && tooltipProps != null) {
        tooltipEl = React.createElement(tooltip_1.Tooltip, { tooltip: tooltipProps.tooltip, tooltipAlignment: tooltipProps.tooltipAlignment, tooltipPosition: tooltipProps.tooltipPosition },
            React.createElement(info_icon_1.InfoIcon, { iconContent: infoIconProps.iconContent, iconCustomTypeName: infoIconProps.iconCustomTypeName }));
    }
    else if (tooltipProps != null) {
        tooltipEl = React.createElement(tooltip_1.Tooltip, { tooltip: tooltipProps.tooltip, tooltipAlignment: tooltipProps.tooltipAlignment, tooltipPosition: tooltipProps.tooltipPosition });
    }
    else if (infoIconProps != null) {
        tooltipEl = React.createElement(info_icon_1.InfoIcon, { iconContent: infoIconProps.iconContent, iconCustomTypeName: infoIconProps.iconCustomTypeName });
    }
    return React.createElement("div", { className: indicatorClass },
        label,
        " ",
        indicatorEl,
        " ",
        tooltipEl);
}
function FieldLabel(props) {
    var label = props.label, indicator = props.indicator, tooltipProps = props.tooltipProps, infoIconProps = props.infoIconProps;
    var indicatorEl = null;
    if (indicator === 'optional') {
        indicatorEl = React.createElement("span", { className: 'indicator' }, "(optional)");
    }
    if (indicator === 'required') {
        indicatorEl = React.createElement("span", { className: 'indicator' }, "*");
    }
    var indicatorClass = classNames({
        'optional': props.indicator === 'optional',
        'required': props.indicator === 'required'
    });
    var tooltipEl = null;
    if (infoIconProps && tooltipProps != null) {
        tooltipEl = React.createElement(tooltip_1.Tooltip, { tooltip: tooltipProps.tooltip, tooltipAlignment: tooltipProps.tooltipAlignment, tooltipPosition: tooltipProps.tooltipPosition },
            React.createElement(info_icon_1.InfoIcon, { iconContent: infoIconProps.iconContent, iconCustomTypeName: infoIconProps.iconCustomTypeName }));
    }
    else if (tooltipProps != null) {
        tooltipEl = React.createElement(tooltip_1.Tooltip, { tooltip: tooltipProps.tooltip, tooltipAlignment: tooltipProps.tooltipAlignment, tooltipPosition: tooltipProps.tooltipPosition });
    }
    else if (infoIconProps != null) {
        tooltipEl = React.createElement(info_icon_1.InfoIcon, { iconContent: infoIconProps.iconContent, iconCustomTypeName: infoIconProps.iconCustomTypeName });
    }
    return React.createElement("div", { className: indicatorClass },
        label,
        " ",
        indicatorEl,
        " ",
        tooltipEl);
}
function FieldLabel ( props ) { var label = props . label , indicator = props . indicator , tooltipProps = props . tooltipProps , infoIconProps = props . infoIconProps ; var indicatorEl = null ; if ( indicator === 'optional' ) { indicatorEl = React . createElement ( "span" , { className : 'indicator' } , "(optional)" ) ; } if ( indicator === 'required' ) { indicatorEl = React . createElement ( "span" , { className : 'indicator' } , "*" ) ; } var indicatorClass = classNames ( { 'optional' : props . indicator === 'optional' , 'required' : props . indicator === 'required' } ) ; var tooltipEl = null ; if ( infoIconProps && tooltipProps != null ) { tooltipEl = React . createElement ( tooltip_1 . Tooltip , { tooltip : tooltipProps . tooltip , tooltipAlignment : tooltipProps . tooltipAlignment , tooltipPosition : tooltipProps . tooltipPosition } , React . createElement ( info_icon_1 . InfoIcon , { iconContent : infoIconProps . iconContent , iconCustomTypeName : infoIconProps . iconCustomTypeName } ) ) ; } else if ( tooltipProps != null ) { tooltipEl = React . createElement ( tooltip_1 . Tooltip , { tooltip : tooltipProps . tooltip , tooltipAlignment : tooltipProps . tooltipAlignment , tooltipPosition : tooltipProps . tooltipPosition } ) ; } else if ( infoIconProps != null ) { tooltipEl = React . createElement ( info_icon_1 . InfoIcon , { iconContent : infoIconProps . iconContent , iconCustomTypeName : infoIconProps . iconCustomTypeName } ) ; } return React . createElement ( "div" , { className : indicatorClass } , label , " " , indicatorEl , " " , tooltipEl ) ; }
The label of the field, including indicators.
The label of the field including indicators .