@bonprix-ds/react-pagination 1.1.4 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -22,7 +22,7 @@ var a = ({ position: e = "left", href: t, onClick: i, disabled: a = !1 }) => a ?
22
22
  base: "outline-none"
23
23
  },
24
24
  false: {
25
- base: "focus-visible:outline focus-visible:outline-clr-on-bg-high focus-visible:outline-offset-0 focus-visible:rounded-sm",
25
+ base: "focus-visible:outline outline-2 outline-clr-on-bg-high outline-offset-2 focus-visible:rounded-sm",
26
26
  indicator: "group-hover:h-[0.0625rem] group-focus:group-hover:h-0"
27
27
  }
28
28
  } }
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/PaginationArrow.tsx","../src/PaginationItem.tsx","../src/utils.ts","../src/Pagination.tsx"],"sourcesContent":["import IconButton from \"@bonprix-ds/react-icon-button\";\nimport React from \"react\";\n\nexport interface PaginationArrowProps {\n position: \"left\" | \"right\";\n onClick: () => void;\n href: string;\n disabled?: boolean;\n}\n\nconst PaginationArrow = ({ position = \"left\", href, onClick, disabled = false }: PaginationArrowProps) => {\n const handleClick = (event: React.MouseEvent<HTMLAnchorElement>) => {\n event.preventDefault();\n onClick();\n };\n\n if (disabled) {\n return <div className=\"w-8 h-8\"></div>;\n }\n\n const previousPageLabel = \"vorherige Seite\";\n const nextPageLabel = \"nächste Seite\";\n const label = position === \"left\" ? previousPageLabel : nextPageLabel;\n const iconVariant = position === \"left\" ? \"arrow-left\" : \"arrow-right\";\n\n return <IconButton component=\"a\" href={href} onClick={handleClick} label={label} icon={iconVariant} />;\n};\n\nexport default PaginationArrow;\n","import React, { ComponentProps, ElementType } from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nconst generateClasses = tv({\n base: \"preflight group relative inline-block leading-8 w-8 typography-button text-clr-on-bg-high text-center align-middle\",\n slots: {\n indicator: \"absolute start-0 bottom-0 w-full bg-clr-primary\",\n },\n variants: {\n active: {\n true: {\n indicator: \"h-1\",\n base: \"outline-none\",\n },\n false: {\n base: \"focus-visible:outline focus-visible:outline-clr-on-bg-high focus-visible:outline-offset-0 focus-visible:rounded-sm\",\n indicator: \"group-hover:h-[0.0625rem] group-focus:group-hover:h-0\",\n },\n },\n },\n});\n\ninterface BaseProps {\n pageNumber: number;\n active?: boolean;\n}\n\ntype Props<C extends ElementType> = BaseProps & {\n component?: C;\n} & Omit<ComponentProps<C>, keyof BaseProps | \"component\">;\n\nconst PaginationItem = <C extends ElementType>({ pageNumber, active = false, component = \"a\" as C, ...props }: Props<C>) => {\n const { onClick, ...otherProps } = props;\n const Component: ElementType = component;\n const { base, indicator } = generateClasses({ active });\n const handleClick = (event: React.MouseEvent) => {\n event.preventDefault();\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n onClick?.();\n };\n\n return (\n <Component {...otherProps} className={base()} onClick={handleClick} aria-current={active ? \"page\" : undefined}>\n {pageNumber}\n <span className={indicator()}></span>\n </Component>\n );\n};\n\nexport default PaginationItem;\n","export const calculateItems: (currentPage: number, totalPages: number, pagesShown?: 5 | 7) => (number | \"ellipsis\")[] = (\n currentPage,\n totalPages,\n pagesShown = 7,\n) => {\n const range: number[] = [];\n\n // show all pages if total pages are less than or equal to pages shown\n if (totalPages <= pagesShown) {\n for (let i = 1; i <= totalPages; i++) {\n range.push(i);\n }\n return range;\n } else if (pagesShown === 7) {\n const rangeStart = Math.max(Math.min(currentPage - 1, totalPages - 4), 3);\n const rangeEnd = Math.max(Math.min(totalPages - 2, currentPage + 1), pagesShown - 2);\n const second = rangeStart === 3 ? 2 : \"ellipsis\";\n const penultimate = rangeEnd === totalPages - 2 ? totalPages - 1 : \"ellipsis\";\n\n for (let i = rangeStart; i <= rangeEnd; i++) {\n range.push(i);\n }\n return [1, second, ...range, penultimate, totalPages];\n } else {\n const atTheBeginning = currentPage <= 3;\n const atTheEnd = currentPage >= totalPages - 2;\n const second = atTheBeginning ? 2 : \"ellipsis\";\n const penultimate = atTheEnd ? totalPages - 1 : \"ellipsis\";\n const middlePage = atTheBeginning ? 3 : atTheEnd ? totalPages - 2 : currentPage;\n return [1, second, middlePage, penultimate, totalPages];\n }\n};\n","\"use client\";\n\nimport { useBreakpointUp } from \"@bonprix-ds/utils\";\nimport React, { ComponentProps, ElementType } from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport PaginationArrow from \"./PaginationArrow\";\nimport PaginationItem from \"./PaginationItem\";\nimport { calculateItems } from \"./utils\";\n\nconst generateClasses = tv({\n base: \"preflight flex items-center justify-center gap-2\",\n slots: {\n orderedList: \"flex items-center gap-2\",\n listItem: \"list-none\",\n },\n});\n\ntype PaginationEventOrigin = \"page\" | \"prev\" | \"next\";\n\ninterface BaseProps {\n /** The current active page number. */\n currentPage: number;\n /** The total number of pages. */\n totalPages: number;\n /** Callback function that is called when the page changes. The first parameter is the new page number, and the second parameter is the origin of the event ( `page`, `prev` or `next`) */\n onPageChange: (newPage: number, origin: PaginationEventOrigin) => void;\n /** Creates the individual page's `href` attributes taking into account the page's number.\n * @param {number} pageNumber - the page number\n * @returns {string} The `href` for the given page.\n */\n constructPageHref: (pageNumber: number) => string;\n /** Accessible label for screen readers. */\n srLabel?: string;\n}\n\nexport type Props<C extends ElementType> = BaseProps & {\n /** The semantic component to render the Items. Preferrably `\"a\"`, `\"button\"` or something like `Link` from NextJS. Defaults to `\"a\"`. Native props will be passed to this component. */\n itemComponent?: C;\n /** Props that get passed to all items. Useful for setting props for NextJS `Link`s for example. */\n itemProps?: Omit<ComponentProps<C>, \"href\">;\n};\n\nconst Pagination = <C extends ElementType>({\n currentPage = 1,\n totalPages,\n onPageChange,\n srLabel,\n constructPageHref,\n itemComponent = \"a\" as C,\n itemProps,\n}: Props<C>) => {\n const ItemComponent: ElementType = itemComponent;\n\n const isMOrUp = useBreakpointUp(\"m\");\n const pagesShown = isMOrUp ? 7 : 5;\n const pageItems = calculateItems(currentPage, totalPages, pagesShown);\n\n const disableLeftArrow = currentPage === 1;\n const disableRightArrow = currentPage === totalPages;\n\n const onNext = () => currentPage < totalPages && onPageChange(currentPage + 1, \"next\");\n const onPrevious = () => currentPage > 1 && onPageChange(currentPage - 1, \"prev\");\n const prevPageHref = constructPageHref(currentPage - 1);\n const nextPageHref = constructPageHref(currentPage + 1);\n const { base, listItem, orderedList } = generateClasses();\n\n return (\n <nav\n className={base()}\n data-bpds=\"pagination\"\n aria-labelledby={srLabel}\n data-bpds-current-page={currentPage}\n data-bpds-total-pages={totalPages}\n >\n {srLabel && (\n <span id={srLabel} className=\"sr-only\">\n {srLabel}\n </span>\n )}\n <PaginationArrow position=\"left\" href={prevPageHref} onClick={onPrevious} disabled={disableLeftArrow} />\n <ol className={orderedList()}>\n {pageItems.map((pagePosition, index) => {\n return (\n <li className={listItem()} key={index}>\n {typeof pagePosition === \"number\" ? (\n <PaginationItem\n component={ItemComponent}\n {...itemProps}\n href={constructPageHref(pagePosition)}\n pageNumber={pagePosition}\n onClick={() => onPageChange(pagePosition, \"page\")}\n active={pagePosition === currentPage}\n />\n ) : (\n <Ellipsis />\n )}\n </li>\n );\n })}\n </ol>\n <PaginationArrow position=\"right\" href={nextPageHref} onClick={onNext} disabled={disableRightArrow} />\n </nav>\n );\n};\n\nexport default Pagination;\n\nconst Ellipsis = () => <span className=\"w-8 inline-block text-center typography-button text-clr-on-bg-high\">…</span>;\n"],"mappings":";;;;;;;AAUA,IAAM,KAAmB,EAAE,cAAW,QAAQ,SAAM,YAAS,cAAW,SAMlE,IACK,kBAAC,OAAD,EAAK,WAAU,UAAe,CAAA,IAQhC,kBAAC,GAAD;CAAY,WAAU;CAAU;CAAM,UAdxB,MAA+C;EAElE,AADA,EAAM,eAAe,GACrB,EAAQ;CACV;CAW0E,OAH5D,MAAa,SAAS,oBAAoB;CAGyB,MAF7D,MAAa,SAAS,eAAe;AAE4C,CAAA,GCtBjG,IAAkB,EAAG;CACzB,MAAM;CACN,OAAO,EACL,W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AET,GAIM,UAAiB,kBAAC,QAAD;CAAM,WAAU;CAAqE,UAAA;AAAO,CAAA"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/PaginationArrow.tsx","../src/PaginationItem.tsx","../src/utils.ts","../src/Pagination.tsx"],"sourcesContent":["import IconButton from \"@bonprix-ds/react-icon-button\";\nimport React from \"react\";\n\nexport interface PaginationArrowProps {\n position: \"left\" | \"right\";\n onClick: () => void;\n href: string;\n disabled?: boolean;\n}\n\nconst PaginationArrow = ({ position = \"left\", href, onClick, disabled = false }: PaginationArrowProps) => {\n const handleClick = (event: React.MouseEvent<HTMLAnchorElement>) => {\n event.preventDefault();\n onClick();\n };\n\n if (disabled) {\n return <div className=\"w-8 h-8\"></div>;\n }\n\n const previousPageLabel = \"vorherige Seite\";\n const nextPageLabel = \"nächste Seite\";\n const label = position === \"left\" ? previousPageLabel : nextPageLabel;\n const iconVariant = position === \"left\" ? \"arrow-left\" : \"arrow-right\";\n\n return <IconButton component=\"a\" href={href} onClick={handleClick} label={label} icon={iconVariant} />;\n};\n\nexport default PaginationArrow;\n","import React, { ComponentProps, ElementType } from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nconst generateClasses = tv({\n base: \"preflight group relative inline-block leading-8 w-8 typography-button text-clr-on-bg-high text-center align-middle\",\n slots: {\n indicator: \"absolute start-0 bottom-0 w-full bg-clr-primary\",\n },\n variants: {\n active: {\n true: {\n indicator: \"h-1\",\n base: \"outline-none\",\n },\n false: {\n base: \"focus-visible:outline outline-2 outline-clr-on-bg-high outline-offset-2 focus-visible:rounded-sm\",\n indicator: \"group-hover:h-[0.0625rem] group-focus:group-hover:h-0\",\n },\n },\n },\n});\n\ninterface BaseProps {\n pageNumber: number;\n active?: boolean;\n}\n\ntype Props<C extends ElementType> = BaseProps & {\n component?: C;\n} & Omit<ComponentProps<C>, keyof BaseProps | \"component\">;\n\nconst PaginationItem = <C extends ElementType>({ pageNumber, active = false, component = \"a\" as C, ...props }: Props<C>) => {\n const { onClick, ...otherProps } = props;\n const Component: ElementType = component;\n const { base, indicator } = generateClasses({ active });\n const handleClick = (event: React.MouseEvent) => {\n event.preventDefault();\n // eslint-disable-next-line @typescript-eslint/no-unsafe-call\n onClick?.();\n };\n\n return (\n <Component {...otherProps} className={base()} onClick={handleClick} aria-current={active ? \"page\" : undefined}>\n {pageNumber}\n <span className={indicator()}></span>\n </Component>\n );\n};\n\nexport default PaginationItem;\n","export const calculateItems: (currentPage: number, totalPages: number, pagesShown?: 5 | 7) => (number | \"ellipsis\")[] = (\n currentPage,\n totalPages,\n pagesShown = 7,\n) => {\n const range: number[] = [];\n\n // show all pages if total pages are less than or equal to pages shown\n if (totalPages <= pagesShown) {\n for (let i = 1; i <= totalPages; i++) {\n range.push(i);\n }\n return range;\n } else if (pagesShown === 7) {\n const rangeStart = Math.max(Math.min(currentPage - 1, totalPages - 4), 3);\n const rangeEnd = Math.max(Math.min(totalPages - 2, currentPage + 1), pagesShown - 2);\n const second = rangeStart === 3 ? 2 : \"ellipsis\";\n const penultimate = rangeEnd === totalPages - 2 ? totalPages - 1 : \"ellipsis\";\n\n for (let i = rangeStart; i <= rangeEnd; i++) {\n range.push(i);\n }\n return [1, second, ...range, penultimate, totalPages];\n } else {\n const atTheBeginning = currentPage <= 3;\n const atTheEnd = currentPage >= totalPages - 2;\n const second = atTheBeginning ? 2 : \"ellipsis\";\n const penultimate = atTheEnd ? totalPages - 1 : \"ellipsis\";\n const middlePage = atTheBeginning ? 3 : atTheEnd ? totalPages - 2 : currentPage;\n return [1, second, middlePage, penultimate, totalPages];\n }\n};\n","\"use client\";\n\nimport { useBreakpointUp } from \"@bonprix-ds/utils\";\nimport React, { ComponentProps, ElementType } from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport PaginationArrow from \"./PaginationArrow\";\nimport PaginationItem from \"./PaginationItem\";\nimport { calculateItems } from \"./utils\";\n\nconst generateClasses = tv({\n base: \"preflight flex items-center justify-center gap-2\",\n slots: {\n orderedList: \"flex items-center gap-2\",\n listItem: \"list-none\",\n },\n});\n\ntype PaginationEventOrigin = \"page\" | \"prev\" | \"next\";\n\ninterface BaseProps {\n /** The current active page number. */\n currentPage: number;\n /** The total number of pages. */\n totalPages: number;\n /** Callback function that is called when the page changes. The first parameter is the new page number, and the second parameter is the origin of the event ( `page`, `prev` or `next`) */\n onPageChange: (newPage: number, origin: PaginationEventOrigin) => void;\n /** Creates the individual page's `href` attributes taking into account the page's number.\n * @param {number} pageNumber - the page number\n * @returns {string} The `href` for the given page.\n */\n constructPageHref: (pageNumber: number) => string;\n /** Accessible label for screen readers. */\n srLabel?: string;\n}\n\nexport type Props<C extends ElementType> = BaseProps & {\n /** The semantic component to render the Items. Preferrably `\"a\"`, `\"button\"` or something like `Link` from NextJS. Defaults to `\"a\"`. Native props will be passed to this component. */\n itemComponent?: C;\n /** Props that get passed to all items. Useful for setting props for NextJS `Link`s for example. */\n itemProps?: Omit<ComponentProps<C>, \"href\">;\n};\n\nconst Pagination = <C extends ElementType>({\n currentPage = 1,\n totalPages,\n onPageChange,\n srLabel,\n constructPageHref,\n itemComponent = \"a\" as C,\n itemProps,\n}: Props<C>) => {\n const ItemComponent: ElementType = itemComponent;\n\n const isMOrUp = useBreakpointUp(\"m\");\n const pagesShown = isMOrUp ? 7 : 5;\n const pageItems = calculateItems(currentPage, totalPages, pagesShown);\n\n const disableLeftArrow = currentPage === 1;\n const disableRightArrow = currentPage === totalPages;\n\n const onNext = () => currentPage < totalPages && onPageChange(currentPage + 1, \"next\");\n const onPrevious = () => currentPage > 1 && onPageChange(currentPage - 1, \"prev\");\n const prevPageHref = constructPageHref(currentPage - 1);\n const nextPageHref = constructPageHref(currentPage + 1);\n const { base, listItem, orderedList } = generateClasses();\n\n return (\n <nav\n className={base()}\n data-bpds=\"pagination\"\n aria-labelledby={srLabel}\n data-bpds-current-page={currentPage}\n data-bpds-total-pages={totalPages}\n >\n {srLabel && (\n <span id={srLabel} className=\"sr-only\">\n {srLabel}\n </span>\n )}\n <PaginationArrow position=\"left\" href={prevPageHref} onClick={onPrevious} disabled={disableLeftArrow} />\n <ol className={orderedList()}>\n {pageItems.map((pagePosition, index) => {\n return (\n <li className={listItem()} key={index}>\n {typeof pagePosition === \"number\" ? (\n <PaginationItem\n component={ItemComponent}\n {...itemProps}\n href={constructPageHref(pagePosition)}\n pageNumber={pagePosition}\n onClick={() => onPageChange(pagePosition, \"page\")}\n active={pagePosition === currentPage}\n />\n ) : (\n <Ellipsis />\n )}\n </li>\n );\n })}\n </ol>\n <PaginationArrow position=\"right\" href={nextPageHref} onClick={onNext} disabled={disableRightArrow} />\n </nav>\n );\n};\n\nexport default Pagination;\n\nconst Ellipsis = () => <span className=\"w-8 inline-block text-center typography-button text-clr-on-bg-high\">…</span>;\n"],"mappings":";;;;;;;AAUA,IAAM,KAAmB,EAAE,cAAW,QAAQ,SAAM,YAAS,cAAW,SAMlE,IACK,kBAAC,OAAD,EAAK,WAAU,UAAe,CAAA,IAQhC,kBAAC,GAAD;CAAY,WAAU;CAAU;CAAM,UAdxB,MAA+C;EAElE,AADA,EAAM,eAAe,GACrB,EAAQ;CACV;CAW0E,OAH5D,MAAa,SAAS,oBAAoB;CAGyB,MAF7D,MAAa,SAAS,eAAe;AAE4C,CAAA,GCtBjG,IAAkB,EAAG;CACzB,MAAM;CACN,OAAO,EACL,WAAW,kDACb;CACA,UAAU,EACR,QAAQ;EACN,MAAM;GACJ,WAAW;GACX,MAAM;EACR;EACA,OAAO;GACL,MAAM;GACN,WAAW;EACb;CACF,EACF;AACF,CAAC,GAWK,KAAyC,EAAE,eAAY,YAAS,IAAO,eAAY,KAAU,GAAG,QAAsB;CAC1H,IAAM,EAAE,YAAS,GAAG,MAAe,GAC7B,IAAyB,GACzB,EAAE,SAAM,iBAAc,EAAgB,EAAE,UAAO,CAAC,GAChD,KAAe,MAA4B;EAG/C,AAFA,EAAM,eAAe,GAErB,IAAU;CACZ;CAEA,OACE,kBAAC,GAAD;EAAW,GAAI;EAAY,WAAW,EAAK;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EAAa,IAAc,GAAG,MAAM,GAC1E,IAAe,EAAkB,IAAc,CAAC,GAChD,IAAe,EAAkB,IAAc,CAAC,GAChD,EAAE,SAAM,aAAU,mBAAgB,EAAgB;CAExD,OACE,kBAAC,OAAD;EACE,WAAW,EAAK;EAChB,aAAU;EACV,mBAAiB;EACjB,0BAAwB;EACxB,yBAAuB;EALzB,UAAA;GAOG,KACC,kBAAC,QAAD;IAAM,IAAI;IAAS,WAAU;IAC1B,UAAA;GACG,CAAA;GAER,kBAAC,GAAD;IAAiB,UAAS;IAAO,MAAM;IAAc,SAAS;IAAY,UAAU;GAAmB,CAAA;GACvG,kBAAC,MAAD;IAAI,WAAW,EAAY;IACxB,UAAA,EAAU,KAAK,GAAc,MAE1B,kBAAC,MAAD;KAAI,WAAW,EAAS;KACrB,UAAA,OAAO,KAAiB,WACvB,kBAAC,GAAD;MACE,WAAW;MACX,GAAI;MACJ,MAAM,EAAkB,CAAY;MACpC,YAAY;MACZ,eAAe,EAAa,GAAc,MAAM;MAChD,QAAQ,MAAiB;KAC1B,CAAA,IAED,kBAAC,GAAD,CAAW,CAAA;IAEX,GAb4B,CAa5B,CAEP;GACC,CAAA;GACJ,kBAAC,GAAD;IAAiB,UAAS;IAAQ,MAAM;IAAc,SAAS;IAAQ,UAAU;GAAoB,CAAA;EAClG;;AAET,GAIM,UAAiB,kBAAC,QAAD;CAAM,WAAU;CAAqE,UAAA;AAAO,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonprix-ds/react-pagination",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "Pagination component, implemented in React, for the Bonprix Design System.",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -22,15 +22,15 @@
22
22
  ],
23
23
  "keywords": [],
24
24
  "author": "",
25
- "license": "ISC",
25
+ "license": "UNLICENSED",
26
26
  "repository": {
27
27
  "type": "git",
28
28
  "url": "git+https://github.com/bonprix/design-system.git",
29
29
  "directory": "packages/react/pagination"
30
30
  },
31
31
  "dependencies": {
32
- "@bonprix-ds/react-icon-button": "1.1.4",
33
- "@bonprix-ds/utils": "0.2.0"
32
+ "@bonprix-ds/react-icon-button": "1.1.5",
33
+ "@bonprix-ds/utils": "0.2.1"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "react": "^19.0.0",
@@ -38,13 +38,13 @@
38
38
  "tailwind-variants": "0.3.1"
39
39
  },
40
40
  "devDependencies": {
41
- "vite": "8.2.1",
42
- "vitest": "4.1.10",
41
+ "vite": "8.2.2",
42
+ "vitest": "4.1.11",
43
43
  "@types/react": "19.2.18",
44
- "@vitejs/plugin-react": "6.0.5",
44
+ "@vitejs/plugin-react": "6.1.0",
45
45
  "rollup-preserve-directives": "1.1.3",
46
46
  "unplugin-dts": "1.0.3",
47
- "@microsoft/api-extractor": "7.58.12"
47
+ "@microsoft/api-extractor": "7.59.0"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "vite build"