{"version":3,"file":"Pagination.stories.jsx","sourceRoot":"","sources":["../../../src/core/Pagination/Pagination.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAGrD,eAAe;IACb,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,UAAU;CACd,CAAC;AAEV,MAAM,CAAC,MAAM,cAAc,GAA6B,CAAC,IAAqB,EAAE,EAAE;IAChF,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAElD,OAAO,CACL,CAAC,UAAU,CACT,KAAK,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAClB,QAAQ,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CACxB,UAAU,CAAC,CAAC,WAAW,CAAC,CACxB,YAAY,CAAC,CAAC,UAAU,CAAC,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,EACvD,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,cAAc,CAAC,IAAI,GAAG;IACpB,KAAK,EAAE,EAAE;IACT,QAAQ,EAAE,EAAE;CACb,CAAC;AAEF,cAAc,CAAC,QAAQ,GAAG;IACxB,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACtC,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CAC1C,CAAC","sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport { useState } from 'react';\n\nimport { Pagination } from '@pega/cosmos-react-core';\nimport type { PaginationProps } from '@pega/cosmos-react-core';\n\nexport default {\n  title: 'Core/Pagination',\n  component: Pagination\n} as Meta;\n\nexport const PaginationDemo: StoryFn<PaginationProps> = (args: PaginationProps) => {\n  const [currentPage, setCurrentPage] = useState(1);\n\n  return (\n    <Pagination\n      total={args.total}\n      pageSize={args.pageSize}\n      pageNumber={currentPage}\n      onPageChange={pageNumber => setCurrentPage(pageNumber)}\n    />\n  );\n};\n\nPaginationDemo.args = {\n  total: 50,\n  pageSize: 10\n};\n\nPaginationDemo.argTypes = {\n  total: { control: { type: 'number' } },\n  pageSize: { control: { type: 'number' } }\n};\n"]}