"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const React = __importStar(require("react"));
const react_jss_1 = __importDefault(require("react-jss"));
const styles = {
    stepAnimationContainer: {
        overflowX: 'hidden',
        width: '100%',
    },
    stepAnimation: {
        transition: 'transform .6s',
        display: 'flex',
        alignItems: 'flex-end',
        justifyContent: 'flex-start',
        width: '100%',
        transform: (({ step }) => step ? `translateX(-${step * 100}%)` : 'translateX(0)'),
        '& > *': {
            minWidth: '100%',
        },
    },
};
class SlideXImpl extends React.PureComponent {
    render() {
        const { classes, children } = this.props;
        return (React.createElement("div", { className: classes.stepAnimationContainer },
            React.createElement("div", { className: classes.stepAnimation }, children)));
    }
}
SlideXImpl.defaultProps = {
    step: 0,
};
exports.SlideX = react_jss_1.default(styles)(SlideXImpl);
//# sourceMappingURL=index.js.map