import { spread } from '@open-wc/lit-helpers';
import { getStorybookHelpers } from '@wc-toolkit/storybook-helpers';
import { html } from 'lit';
import { prespread } from '../../.storybook/utilities.js';
import './index.js';
const { events, args, argTypes } = getStorybookHelpers('w-pagination');
const meta = {
    title: 'Navigation/Pagination',
    render(args) {
        return html `<w-pagination ${spread(prespread(args))}></w-pagination>`;
    },
    args,
    argTypes,
    parameters: {
        actions: {
            handles: events,
        },
    },
};
export default meta;
export const BasicPagination = {
    args: {
        'current-page-number': 1,
        pages: 5,
        'base-url': '/search?page=',
    },
};
export const MiddlePageSelected = {
    args: {
        'current-page-number': 3,
        pages: 7,
        'base-url': '/search?page=',
    },
};
export const LastPageSelected = {
    args: {
        'current-page-number': 10,
        pages: 10,
        'base-url': '/search?page=',
    },
};
export const ManyPagesWithLimitedVisible = {
    args: {
        'current-page-number': 15,
        pages: 50,
        'visible-pages': 5,
        'base-url': '/search?page=',
    },
};
export const SinglePage = {
    args: {
        'current-page-number': 1,
        pages: 1,
        'base-url': '/search?page=',
    },
};
