import * as __WEBPACK_EXTERNAL_MODULE__Pagination_mjs__ from "./Pagination.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__storybook_test__ from "@storybook/test";
const meta = {
    title: 'Components/Pagination',
    component: __WEBPACK_EXTERNAL_MODULE__Pagination_mjs__.Pagination,
    argTypes: {},
    parameters: {
        design: {
            type: 'figma',
            url: 'https://www.figma.com/file/bJcVrZNilxa06jYuVCGWYd/Redpanda-Design-System-2023?type=design&node-id=1247-136&mode=design&t=xO1yBT6ymjToVN2k-0'
        },
        actions: {
            argTypesRegex: '^on.*'
        }
    }
};
/* ESM default export */ const Pagination_stories_rslib_entry_ = meta;
const Default = {
    args: {
        totalCount: 100,
        pageSize: 10,
        siblingCount: 1,
        onPageChange: (0, __WEBPACK_EXTERNAL_MODULE__storybook_test__.fn)(),
        currentPage: 2
    },
    play: async ({ args, canvasElement })=>{
        const canvas = (0, __WEBPACK_EXTERNAL_MODULE__storybook_test__.within)(canvasElement);
        await __WEBPACK_EXTERNAL_MODULE__storybook_test__.userEvent.click(canvas.getByText('3'));
        (0, __WEBPACK_EXTERNAL_MODULE__storybook_test__.expect)(args.onPageChange).toHaveBeenCalledWith(3);
    }
};
export { Default, Pagination_stories_rslib_entry_ as default };
