var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
import React from "react";
import TimelineItem from "./TimelineItem";
import { Flex } from "../..";
import Text from "../../../asorted/Text";
export default function VerticalTimeline(_a) {
    var { steps, onClickIndex } = _a, props = __rest(_a, ["steps", "onClickIndex"]);
    return (React.createElement(Flex, Object.assign({}, props, { flexDirection: "column", flex: 1 }), steps === null || steps === void 0 ? void 0 : steps.map((step, index) => (React.createElement(TimelineItem, { key: index, item: step, isFirstItem: index === 0, isLastItem: index === steps.length - 1, onClick: onClickIndex ? () => onClickIndex(index) : undefined })))));
}
const SubtitleText = props => (React.createElement(Text, Object.assign({ variant: "body", fontWeight: "semiBold", color: "neutral.c100", mb: 3 }, props)));
const BodyText = props => (React.createElement(Text, Object.assign({ variant: "bodyLineHeight", fontWeight: "medium", color: "neutral.c80" }, props)));
VerticalTimeline.BodyText = BodyText;
VerticalTimeline.SubtitleText = SubtitleText;
//# sourceMappingURL=index.js.map