import React, { Component } from 'react';
import classNames from 'classnames';
import { keysOf } from "../../libraries";
export const alignmentToClassNameMap = {
    left: 'softTextAlign--left',
    right: 'softTextAlign--right',
    center: 'softTextAlign--center',
};
export const SOFT_TEXT_ALIGNMENTS = keysOf(alignmentToClassNameMap);
export class SoftTextAlign extends Component {
    render() {
        let { children, className, textAlign, ...rest } = this.props;
        const classes = classNames('softTextAlign', alignmentToClassNameMap[textAlign], className);
        return (React.createElement("div", Object.assign({ className: classes }, rest), children));
    }
}
SoftTextAlign.defaultProps = { className: '', textAlign: 'left' };
//# sourceMappingURL=SoftTextAlign.js.map