import { _ as __assign } from '../tslib.es6-20a2a300.js';
import { jsx } from 'react/jsx-runtime';
import Icon from '../components/Icon.js';
import ThumbnailInfoBar from '../components/ThumbnailInfoBar.js';
import TableContainer, { createCellData } from '../components/TableContainer.js';
import '../icons/ArrowRight.js';
import '../icons/ArrowRightCircle.js';
import '../icons/Check.js';
import '../icons/CheckCircle.js';
import '../icons/ChevronRight.js';
import '../icons/CrossCircle.js';
import '../icons/DollarSign.js';
import '../icons/InfoCircle.js';
import '../icons/Link.js';
import '../icons/TriangleUp.js';
import '../icons/TriangleDown.js';
import '../icons/TriangleLeft.js';
import '../icons/Copy.js';
import '../icons/SortUp.js';
import '../icons/Cross.js';
import '../icons/Search.js';
import '../icons/Range.js';
import '../theme/colors.js';
import '../makeStyles-c9a99c7a.js';
import '../defaultTheme-49a26576.js';
import 'react';
import '../styled-components.esm-a98d7870.js';
import '../hoist-non-react-statics.cjs-b718ab87.js';
import '../theme/fontFamily.js';
import '../theme/fontSize.js';
import '../components/Typography.js';
import '../_commonjsHelpers-57e89916.js';
import '../theme/fontWeight.js';
import '../theme/lineHeight.js';
import '../Typography-649a8eff.js';
import '../clsx.m-6243b874.js';
import '../withStyles-99aeb25b.js';
import '../capitalize-5d3e9aac.js';
import '../components/IconButton.js';
import '../IconButton-7563dc0d.js';
import '../ButtonBase-11d3cdb5.js';
import 'react-dom';
import '../useForkRef-4ff8cc89.js';
import '../useEventCallback-8817ed1c.js';
import '../deprecatedPropType-0232df1e.js';
import '../useIsFocusVisible-c048447c.js';
import '../TransitionGroupContext-2ba64e99.js';
import '../refType-5cc24a92.js';
import '../elementTypeAcceptingRef-7677eeee.js';
import '../Box-581dc061.js';
import '../styled-339d0187.js';
import '../createStyles-16423e9e.js';
import '../TableContainer-e3324a72.js';
import '../TableRow-b30398d4.js';

var WebsiteLinkIcon = function (_a) {
    var url = _a.url;
    return (jsx("a", __assign({ href: url }, { children: jsx(Icon, { iconKey: "link", color: "secondary", size: "sm" }, void 0) }), void 0));
};
var Default = function () {
    return jsx(TableContainer, { bodyCellsRows: bodyCellsRows, headCells: headCells }, void 0);
};
var TableContainer_stories = {
    title: "Table/TableContainer",
    component: TableContainer,
    subcomponents: {
        ThumbnailInfoBar: ThumbnailInfoBar
    },
    parameters: {
        docs: {
            description: {
                component: "Pre-composed table, taking data as props."
            },
            source: {
                type: "code"
            }
        }
    }
};
/**
 * Data
 */
var cellDataKeys = ["validator", "votingPower", "delegators", "fees", "website"];
var bodyCellsRows = [
    __assign({}, createCellData([
        {
            content: (jsx(ThumbnailInfoBar, { thumbnailUrl: "https://s3.amazonaws.com/keybase_processed_uploads/a084e1a96ecc3f24bd57dfec517a9205_360_360.jpg", thumbnailAlt: "Bi23 Labs", title: "Bi23 Labs", subtitle: "cosmosvaloper1hctafaqveg7dxad8aedf32aq2j877rrec2f5au" }, void 0))
        },
        {
            content: "0.00%",
            props: { align: "right" }
        },
        {
            content: "1",
            props: { align: "right" }
        },
        {
            content: "0.00%",
            props: { align: "right" }
        },
        {
            content: jsx(WebsiteLinkIcon, { url: "https://bi23.com/" }, void 0),
            props: { align: "center" }
        }
    ], cellDataKeys)),
    __assign({}, createCellData([
        {
            content: (jsx(ThumbnailInfoBar, { thumbnailUrl: "https://s3.amazonaws.com/keybase_processed_uploads/0896b54e305b3817c20ee844066ae905_360_360.jpg", thumbnailAlt: "cosmosave", title: "cosmosave", subtitle: "cosmosvaloper18fuhq6r933854432m0692m05ddqdvzm2gysypr" }, void 0))
        },
        {
            content: "0.00%",
            props: { align: "right" }
        },
        {
            content: "5",
            props: { align: "right" }
        },
        {
            content: "0.5%",
            props: { align: "right" }
        },
        {
            content: jsx(WebsiteLinkIcon, { url: "https://cosmosave.wixsite.com/atom" }, void 0),
            props: { align: "center" }
        }
    ], cellDataKeys)),
    __assign({}, createCellData([
        {
            content: (jsx(ThumbnailInfoBar, { thumbnailUrl: "https://s3.amazonaws.com/keybase_processed_uploads/e7aca2c60e1b658db8cc8f175ce9aa05_360_360.jpg", thumbnailAlt: "Swiss Staking", title: "Swiss Staking", subtitle: "cosmosvaloper1y0us8xvsvfvqkk9c6nt5cfyu5au5tww2ztve7q" }, void 0))
        },
        {
            content: "0.24%",
            props: { align: "right" }
        },
        {
            content: "1,007",
            props: { align: "right" }
        },
        {
            content: "1.00%",
            props: { align: "right" }
        },
        {
            content: jsx(WebsiteLinkIcon, { url: "https://swiss-staking.ch/" }, void 0),
            props: { align: "center" }
        }
    ], cellDataKeys))
];
var headCells = [
    {
        id: "validator",
        label: "Validator"
    },
    {
        id: "votingPower",
        label: "Voting Power, ATOM",
        props: {
            align: "right"
        },
        hidden: {
            smDown: true
        }
    },
    {
        id: "delegators",
        label: "Delegators",
        props: { align: "right" },
        hidden: {
            smDown: true
        }
    },
    {
        id: "fees",
        label: "Fees",
        props: { align: "right" },
        hidden: {
            smDown: true
        }
    },
    {
        id: "website",
        label: "Website",
        props: { align: "center" },
        hidden: {
            smDown: true
        }
    }
];

export { Default, TableContainer_stories as default };
