import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { blockTransform, yfmTransform } from "../../.storybook/utils.js";
import Author from "../components/Author/Author.js";
import ContentList from "../components/ContentList/ContentList.js";
import MetaInfo from "../components/MetaInfo/MetaInfo.js";
import Title from "../components/Title/Title.js";
import YFMWrapper from "../components/YFMWrapper/YFMWrapper.js";
import { AuthorType } from "../models/index.js";
import authorData from "../components/Author/__stories__/data.json";
import contentListData from "../components/ContentList/__stories__/data.json";
import metaInfoData from "../components/MetaInfo/__stories__/data.json";
import titleData from "../components/Title/__stories__/data.json";
import yfmWrapperData from "../components/YFMWrapper/__stories__/data.json";
export default { title: 'Lab/Tokenization/Components/Text' };
const defaultTitleArgs = {
    title: titleData.default.title,
    subtitle: yfmTransform(titleData.default.subtitle),
};
const transformContentList = (item) => blockTransform(item);
export const Default = () => (_jsxs("div", { style: { padding: '40px', display: 'flex', flexDirection: 'column', gap: '48px' }, children: [_jsxs("section", { children: [_jsx("strong", { children: "Title \u2014 default" }), _jsx(Title, { ...defaultTitleArgs })] }), _jsxs("section", { children: [_jsx("strong", { children: "Title \u2014 sizes (l \u2192 xs)" }), _jsx("div", { children: Object.entries(titleData.sizes).map(([size, props]) => (_jsx("div", { style: { paddingBottom: '32px' }, children: _jsx(Title, { ...defaultTitleArgs, title: props }) }, size))) })] }), _jsxs("section", { children: [_jsx("strong", { children: "Title \u2014 with link" }), _jsx(Title, { ...defaultTitleArgs, title: titleData.titleLink.title })] }), _jsxs("section", { children: [_jsx("strong", { children: "YFMWrapper" }), _jsx(YFMWrapper, { ...yfmWrapperData.default.content })] }), _jsxs("section", { children: [_jsx("strong", { children: "Author \u2014 column" }), _jsx(Author, { ...authorData.default.content })] }), _jsxs("section", { children: [_jsx("strong", { children: "Author \u2014 line" }), _jsx(Author, { ...authorData.default.content, type: AuthorType.Line })] }), _jsxs("section", { children: [_jsx("strong", { children: "ContentList \u2014 default" }), _jsx(ContentList, { ...transformContentList(contentListData.default) })] }), _jsxs("section", { children: [_jsx("strong", { children: "ContentList \u2014 without icon" }), _jsx(ContentList, { ...transformContentList(contentListData.withoutIcon) })] }), _jsxs("section", { children: [_jsx("strong", { children: "ContentList \u2014 sizes (s / m / l)" }), _jsx("div", { style: { display: 'flex', flexDirection: 'column', gap: '16px' }, children: contentListData.sizes.map((item, index) => (_jsx(ContentList, { ...transformContentList(item) }, index))) })] }), _jsxs("section", { children: [_jsx("strong", { children: "MetaInfo" }), _jsx(MetaInfo, { ...metaInfoData.default.content })] })] }));
//# sourceMappingURL=ComponentsText.stories.js.map
