import React from 'react';
import classNames from 'classnames';
const sizeToClassNameMap = {
    full: 'softHorizontalRule--full',
    half: 'softHorizontalRule--half',
    quarter: 'softHorizontalRule--quarter',
};
export const SOFT_HORIZONTAL_RULE_SIZES = Object.keys(sizeToClassNameMap);
const marginToClassNameMap = {
    none: null,
    xs: 'softHorizontalRule--marginXSmall',
    s: 'softHorizontalRule--marginSmall',
    m: 'softHorizontalRule--marginMedium',
    l: 'softHorizontalRule--marginLarge',
    xl: 'softHorizontalRule--marginXLarge',
    xxl: 'softHorizontalRule--marginXXLarge',
};
export const SOFT_HORIZONTAL_RULE__MARGINS = Object.keys(marginToClassNameMap);
export const SoftHorizontalRule = ({ className, size = 'full', margin = 'l', ...rest }) => {
    const classes = classNames('softHorizontalRule', sizeToClassNameMap[size], marginToClassNameMap[margin], className);
    return (React.createElement("hr", Object.assign({ className: classes }, rest)));
};
//# sourceMappingURL=SoftHorizontalRule.js.map