import React, { Component } from 'react';
import { keysOf } from '../common';
import classNames from 'classnames';
const sizeToClassNameMap = {
    s: 'softLoadingSpinner--small',
    m: 'softLoadingSpinner--medium',
    l: 'softLoadingSpinner--large',
    xl: 'softLoadingSpinner--xLarge',
};
export const SIZES = keysOf(sizeToClassNameMap);
export const SoftLoadingSpinnerSize = Object.keys(sizeToClassNameMap);
export class SoftLoadingSpinner extends Component {
    render() {
        let { size, className, ...rest } = this.props;
        const classes = classNames('softLoadingSpinner', sizeToClassNameMap[size], className);
        return React.createElement("span", Object.assign({ className: classes }, rest));
    }
}
SoftLoadingSpinner.defaultProps = { size: 'm' };
//# sourceMappingURL=SoftLoadingSpinner.js.map