@propellerads/pagination 4.0.1 → 4.0.2

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.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { LabelPosition } from '@propellerads/label';
1
+ import * as react from 'react';
3
2
  import { ReactNode } from 'react';
3
+ import { LabelPosition } from '@propellerads/label';
4
4
 
5
5
  type PaginationProps = {
6
6
  paginationAmount?: ReactNode;
@@ -31,7 +31,7 @@ type PaginationAmountText = {
31
31
  total: number;
32
32
  };
33
33
 
34
- declare const Pagination: ({ pageIndex, perPage, pageSizes, totalPages, totalItems, setPageSize, canNextPage, gotoPage, canPreviousPage, previousPageHandler, nextPageHandler, parentElementId, paginationAmount, labelPerPage, labelPosition, }: PaginationProps) => react_jsx_runtime.JSX.Element;
34
+ declare const Pagination: ({ pageIndex, perPage, pageSizes, totalPages, totalItems, setPageSize, canNextPage, gotoPage, canPreviousPage, previousPageHandler, nextPageHandler, parentElementId, paginationAmount, labelPerPage, labelPosition, }: PaginationProps) => react.JSX.Element;
35
35
 
36
36
  export { Pagination as default };
37
37
  export type { PaginationAmountText, PaginationProps };
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import s from "@propellerads/select";
5
5
  import { spacing as c } from "@propellerads/stylevariables";
6
6
  import l from "styled-components";
7
7
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
8
- //#region src/style.tsx
8
+ // src/style.tsx
9
9
  var f = l.div`
10
10
  display: flex;
11
11
  flex-wrap: wrap;
@@ -120,7 +120,6 @@ var f = l.div`
120
120
  ] })
121
121
  ] });
122
122
  };
123
- //#endregion
124
123
  export { x as default };
125
124
 
126
125
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/style.tsx","../src/index.tsx"],"sourcesContent":["import {spacing} from '@propellerads/stylevariables';\nimport styled from 'styled-components';\n\n/*\n * Three parts in a row: the rows-per-page select, the counter, the arrows.\n * Where the row has no room, a whole part goes to the next line; none of them\n * shrinks or breaks inside. The parts stand on the line of the select and the\n * arrows, so a label on top of the select rises above the row.\n */\nconst StyledPagination = styled.div`\n display: flex;\n flex-wrap: wrap;\n align-items: flex-end;\n gap: ${spacing * 4}px ${spacing * 8}px;\n`;\n\nconst StyledPaginationPerPage = styled.div`\n flex: none;\n\n /* The select is as wide as its sizes, not as the label on top of it. */\n .select {\n width: fit-content;\n }\n`;\n\n/*\n * The chosen size stands over the longest one, which keeps the room for it\n * out of sight: the select fits every size it offers, and keeps its width\n * when another is chosen. A pseudo-element, so the text of the select is the\n * size alone, for a screen reader and for a test.\n */\nconst StyledPaginationSize = styled.span`\n display: inline-grid;\n\n > span,\n &::after {\n grid-area: 1 / 1;\n }\n\n &::after {\n content: attr(data-longest);\n visibility: hidden;\n }\n`;\n\nconst StyledPaginationAmount = styled.div`\n display: flex;\n flex: none;\n align-items: center;\n /* 36px, the height of the select and the arrow buttons, so the counter stands on their line. */\n min-height: 36px;\n white-space: nowrap;\n`;\n\n// The arrows go to the next line together.\nconst StyledPaginationActions = styled.div`\n display: flex;\n flex: none;\n`;\n\nconst StyledPaginationAction = styled.div`\n &:not(:last-child) {\n margin-right: ${spacing * 2}px;\n }\n`;\n\nexport {\n StyledPagination,\n StyledPaginationAction,\n StyledPaginationActions,\n StyledPaginationAmount,\n StyledPaginationPerPage,\n StyledPaginationSize,\n};\n","import Button, {ButtonVariant} from '@propellerads/button';\nimport {ArrowLeft, ArrowPageFirst, ArrowPageLast, ArrowRight} from '@propellerads/icon';\nimport {LabelPosition} from '@propellerads/label';\nimport type {Option as SelectOption} from '@propellerads/select';\nimport Select from '@propellerads/select';\nimport {\n StyledPagination,\n StyledPaginationAction,\n StyledPaginationActions,\n StyledPaginationAmount,\n StyledPaginationPerPage,\n StyledPaginationSize,\n} from './style';\nimport type {PaginationAmountText, PaginationProps} from './types';\n\n// No label of the library ends with a colon; products wrote \"Rows per page:\".\nconst TRAILING_COLON = /\\s*:\\s*$/;\n\nconst getPaginationAmountData = (perPage: number, page: number, total: number): PaginationAmountText => {\n const count = perPage * (page - 1);\n\n return {\n from: count + 1,\n to: Math.min(count + perPage, total),\n total,\n };\n};\n\nconst getPaginationAmountText = ({from, to, total}: PaginationAmountText): string => {\n return `${from}-${to} of ${total}`;\n};\n\nconst Pagination = ({\n pageIndex,\n perPage,\n pageSizes = [10, 20, 50],\n totalPages,\n totalItems,\n setPageSize,\n canNextPage,\n gotoPage,\n canPreviousPage,\n previousPageHandler,\n nextPageHandler,\n parentElementId,\n paginationAmount = '',\n labelPerPage = '',\n labelPosition = LabelPosition.Left,\n}: PaginationProps) => {\n const selectElementId = `${parentElementId}-pagination-select-per-page`;\n const label = labelPerPage.replace(TRAILING_COLON, '');\n // The select draws its field only when it is given a label, so a pagination\n // without one keeps the bare select, named for a screen reader. On the left\n // the label takes its own width: the column of a form is too wide in a row.\n const field = label ? {label, labelPosition, labelWidth: 'max-content'} : {'aria-label': 'Rows per page'};\n // Measured in characters: the sizes are numbers, and their digits are of one width.\n const longestSize = pageSizes\n .map(String)\n .reduce((longest, size) => (size.length > longest.length ? size : longest), '');\n\n const selectValues: SelectOption[] = pageSizes.map((size) => ({\n id: size,\n label: size,\n value: size,\n }));\n const selectedPageSize = selectValues.find(({value}) => value === perPage);\n\n const paginationAmountData = getPaginationAmountData(perPage, pageIndex + 1, totalItems);\n const paginationAmountText = paginationAmount || getPaginationAmountText(paginationAmountData);\n\n return (\n <StyledPagination>\n <StyledPaginationPerPage>\n <Select\n {...field}\n id={selectElementId}\n onChange={(newValue) => {\n if (newValue === null) {\n return;\n }\n\n setPageSize(Number(newValue.value));\n }}\n options={selectValues}\n value={selectedPageSize}\n formatOptionLabel={(option: SelectOption, {context}: {context: 'menu' | 'value'}) =>\n context === 'value' ? (\n <StyledPaginationSize data-longest={longestSize}>\n <span>{option.label}</span>\n </StyledPaginationSize>\n ) : (\n option.label\n )\n }\n />\n </StyledPaginationPerPage>\n <StyledPaginationAmount>{paginationAmountText}</StyledPaginationAmount>\n {/* The arrows belong to the frame around the table, not to its content: quiet\n ghost buttons, the icons in the button's colour, so the whole button\n answers the pointer and not the icon alone. */}\n <StyledPaginationActions>\n <StyledPaginationAction>\n <Button\n variant={ButtonVariant.Ghost}\n icon={<ArrowPageFirst color=\"currentColor\" />}\n isQuiet\n aria-label=\"First page\"\n isDisabled={!canPreviousPage}\n id={`${parentElementId}-pagination-first-page-button`}\n onClick={() => gotoPage(0)}\n />\n </StyledPaginationAction>\n <StyledPaginationAction>\n <Button\n variant={ButtonVariant.Ghost}\n icon={<ArrowLeft color=\"currentColor\" />}\n isQuiet\n aria-label=\"Previous page\"\n isDisabled={!canPreviousPage}\n id={`${parentElementId}-pagination-previous-page-button`}\n onClick={previousPageHandler}\n />\n </StyledPaginationAction>\n <StyledPaginationAction>\n <Button\n variant={ButtonVariant.Ghost}\n icon={<ArrowRight color=\"currentColor\" />}\n isQuiet\n aria-label=\"Next page\"\n isDisabled={!canNextPage}\n id={`${parentElementId}-pagination-next-page-button`}\n onClick={nextPageHandler}\n />\n </StyledPaginationAction>\n <StyledPaginationAction>\n <Button\n variant={ButtonVariant.Ghost}\n icon={<ArrowPageLast color=\"currentColor\" />}\n isQuiet\n aria-label=\"Last page\"\n isDisabled={!canNextPage}\n id={`${parentElementId}-pagination-last-page-button`}\n onClick={() => gotoPage(totalPages - 1)}\n />\n </StyledPaginationAction>\n </StyledPaginationActions>\n </StyledPagination>\n );\n};\n\nexport default Pagination;\nexport type {PaginationAmountText, PaginationProps};\n"],"mappings":";;;;;;;;AASA,IAAM,IAAmB,EAAO,GAAG;;;;SAI1B,IAAU,EAAE,KAAK,IAAU,EAAE;GAGhC,IAA0B,EAAO,GAAG;;;;;;;GAepC,IAAuB,EAAO,IAAI;;;;;;;;;;;;GAclC,IAAyB,EAAO,GAAG;;;;;;;GAUnC,IAA0B,EAAO,GAAG;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AEvB,EAAO;GAGX,CAAA,EACsB,CAAA;EAC1B,kBAAC,GAAD,EAAA,UAAyB,GAA8C,CAAA;EAIvE,kBAAC,GAAD,EAAA,UAAA;GACE,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;IACE,SAAS,EAAc;IACvB,MAAM,kBAAC,GAAD,EAAgB,OAAM,gBAAiB,CAAA;IAC7C,SAAA;IACA,cAAW;IACX,YAAY,CAAC;IACb,IAAI,GAAG,EAAgB;IACvB,eAAe,EAAS,EAAE;IAC1B,CAAA,EACqB,CAAA;GACzB,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;IACE,SAAS,EAAc;IACvB,MAAM,kBAAC,GAAD,EAAW,OAAM,gBAAiB,CAAA;IACxC,SAAA;IACA,cAAW;IACX,YAAY,CAAC;IACb,IAAI,GAAG,EAAgB;IACvB,SAAS;IACT,CAAA,EACqB,CAAA;GACzB,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;IACE,SAAS,EAAc;IACvB,MAAM,kBAAC,GAAD,EAAY,OAAM,gBAAiB,CAAA;IACzC,SAAA;IACA,cAAW;IACX,YAAY,CAAC;IACb,IAAI,GAAG,EAAgB;IACvB,SAAS;IACT,CAAA,EACqB,CAAA;GACzB,kBAAC,GAAD,EAAA,UACE,kBAAC,GAAD;IACE,SAAS,EAAc;IACvB,MAAM,kBAAC,GAAD,EAAe,OAAM,gBAAiB,CAAA;IAC5C,SAAA;IACA,cAAW;IACX,YAAY,CAAC;IACb,IAAI,GAAG,EAAgB;IACvB,eAAe,EAAS,IAAa,EAAE;IACvC,CAAA,EACqB,CAAA;GACD,EAAA,CAAA;EACT,EAAA,CAAA"}
1
+ {"version":3,"file":"index.js","names":["Button","Select","styled","StyledPagination","spacing","StyledPaginationPerPage","StyledPaginationSize","StyledPaginationAmount","StyledPaginationActions","StyledPaginationAction","TRAILING_COLON","getPaginationAmountData","count","perPage","page","total","getPaginationAmountText","from","to","Pagination","LabelPosition","selectElementId","parentElementId","label","labelPerPage","field","longestSize","pageSizes","size","longest","selectValues","selectedPageSize","value","paginationAmountData","pageIndex","totalItems","paginationAmountText","paginationAmount","newValue","setPageSize","context","option","ButtonVariant","ArrowPageFirst","canPreviousPage","gotoPage","ArrowLeft","previousPageHandler","ArrowRight","canNextPage","nextPageHandler","ArrowPageLast","totalPages"],"sources":["../src/style.tsx","../src/index.tsx"],"sourcesContent":["import {spacing} from '@propellerads/stylevariables';\nimport styled from 'styled-components';\n\n/*\n * Three parts in a row: the rows-per-page select, the counter, the arrows.\n * Where the row has no room, a whole part goes to the next line; none of them\n * shrinks or breaks inside. The parts stand on the line of the select and the\n * arrows, so a label on top of the select rises above the row.\n */\nconst StyledPagination = styled.div`\n display: flex;\n flex-wrap: wrap;\n align-items: flex-end;\n gap: ${spacing * 4}px ${spacing * 8}px;\n`;\n\nconst StyledPaginationPerPage = styled.div`\n flex: none;\n\n /* The select is as wide as its sizes, not as the label on top of it. */\n .select {\n width: fit-content;\n }\n`;\n\n/*\n * The chosen size stands over the longest one, which keeps the room for it\n * out of sight: the select fits every size it offers, and keeps its width\n * when another is chosen. A pseudo-element, so the text of the select is the\n * size alone, for a screen reader and for a test.\n */\nconst StyledPaginationSize = styled.span`\n display: inline-grid;\n\n > span,\n &::after {\n grid-area: 1 / 1;\n }\n\n &::after {\n content: attr(data-longest);\n visibility: hidden;\n }\n`;\n\nconst StyledPaginationAmount = styled.div`\n display: flex;\n flex: none;\n align-items: center;\n /* 36px, the height of the select and the arrow buttons, so the counter stands on their line. */\n min-height: 36px;\n white-space: nowrap;\n`;\n\n// The arrows go to the next line together.\nconst StyledPaginationActions = styled.div`\n display: flex;\n flex: none;\n`;\n\nconst StyledPaginationAction = styled.div`\n &:not(:last-child) {\n margin-right: ${spacing * 2}px;\n }\n`;\n\nexport {\n StyledPagination,\n StyledPaginationAction,\n StyledPaginationActions,\n StyledPaginationAmount,\n StyledPaginationPerPage,\n StyledPaginationSize,\n};\n","import Button, {ButtonVariant} from '@propellerads/button';\nimport {ArrowLeft, ArrowPageFirst, ArrowPageLast, ArrowRight} from '@propellerads/icon';\nimport {LabelPosition} from '@propellerads/label';\nimport type {Option as SelectOption} from '@propellerads/select';\nimport Select from '@propellerads/select';\nimport {\n StyledPagination,\n StyledPaginationAction,\n StyledPaginationActions,\n StyledPaginationAmount,\n StyledPaginationPerPage,\n StyledPaginationSize,\n} from './style';\nimport type {PaginationAmountText, PaginationProps} from './types';\n\n// No label of the library ends with a colon; products wrote \"Rows per page:\".\nconst TRAILING_COLON = /\\s*:\\s*$/;\n\nconst getPaginationAmountData = (perPage: number, page: number, total: number): PaginationAmountText => {\n const count = perPage * (page - 1);\n\n return {\n from: count + 1,\n to: Math.min(count + perPage, total),\n total,\n };\n};\n\nconst getPaginationAmountText = ({from, to, total}: PaginationAmountText): string => {\n return `${from}-${to} of ${total}`;\n};\n\nconst Pagination = ({\n pageIndex,\n perPage,\n pageSizes = [10, 20, 50],\n totalPages,\n totalItems,\n setPageSize,\n canNextPage,\n gotoPage,\n canPreviousPage,\n previousPageHandler,\n nextPageHandler,\n parentElementId,\n paginationAmount = '',\n labelPerPage = '',\n labelPosition = LabelPosition.Left,\n}: PaginationProps) => {\n const selectElementId = `${parentElementId}-pagination-select-per-page`;\n const label = labelPerPage.replace(TRAILING_COLON, '');\n // The select draws its field only when it is given a label, so a pagination\n // without one keeps the bare select, named for a screen reader. On the left\n // the label takes its own width: the column of a form is too wide in a row.\n const field = label ? {label, labelPosition, labelWidth: 'max-content'} : {'aria-label': 'Rows per page'};\n // Measured in characters: the sizes are numbers, and their digits are of one width.\n const longestSize = pageSizes\n .map(String)\n .reduce((longest, size) => (size.length > longest.length ? size : longest), '');\n\n const selectValues: SelectOption[] = pageSizes.map((size) => ({\n id: size,\n label: size,\n value: size,\n }));\n const selectedPageSize = selectValues.find(({value}) => value === perPage);\n\n const paginationAmountData = getPaginationAmountData(perPage, pageIndex + 1, totalItems);\n const paginationAmountText = paginationAmount || getPaginationAmountText(paginationAmountData);\n\n return (\n <StyledPagination>\n <StyledPaginationPerPage>\n <Select\n {...field}\n id={selectElementId}\n onChange={(newValue) => {\n if (newValue === null) {\n return;\n }\n\n setPageSize(Number(newValue.value));\n }}\n options={selectValues}\n value={selectedPageSize}\n formatOptionLabel={(option: SelectOption, {context}: {context: 'menu' | 'value'}) =>\n context === 'value' ? (\n <StyledPaginationSize data-longest={longestSize}>\n <span>{option.label}</span>\n </StyledPaginationSize>\n ) : (\n option.label\n )\n }\n />\n </StyledPaginationPerPage>\n <StyledPaginationAmount>{paginationAmountText}</StyledPaginationAmount>\n {/* The arrows belong to the frame around the table, not to its content: quiet\n ghost buttons, the icons in the button's colour, so the whole button\n answers the pointer and not the icon alone. */}\n <StyledPaginationActions>\n <StyledPaginationAction>\n <Button\n variant={ButtonVariant.Ghost}\n icon={<ArrowPageFirst color=\"currentColor\" />}\n isQuiet\n aria-label=\"First page\"\n isDisabled={!canPreviousPage}\n id={`${parentElementId}-pagination-first-page-button`}\n onClick={() => gotoPage(0)}\n />\n </StyledPaginationAction>\n <StyledPaginationAction>\n <Button\n variant={ButtonVariant.Ghost}\n icon={<ArrowLeft color=\"currentColor\" />}\n isQuiet\n aria-label=\"Previous page\"\n isDisabled={!canPreviousPage}\n id={`${parentElementId}-pagination-previous-page-button`}\n onClick={previousPageHandler}\n />\n </StyledPaginationAction>\n <StyledPaginationAction>\n <Button\n variant={ButtonVariant.Ghost}\n icon={<ArrowRight color=\"currentColor\" />}\n isQuiet\n aria-label=\"Next page\"\n isDisabled={!canNextPage}\n id={`${parentElementId}-pagination-next-page-button`}\n onClick={nextPageHandler}\n />\n </StyledPaginationAction>\n <StyledPaginationAction>\n <Button\n variant={ButtonVariant.Ghost}\n icon={<ArrowPageLast color=\"currentColor\" />}\n isQuiet\n aria-label=\"Last page\"\n isDisabled={!canNextPage}\n id={`${parentElementId}-pagination-last-page-button`}\n onClick={() => gotoPage(totalPages - 1)}\n />\n </StyledPaginationAction>\n </StyledPaginationActions>\n </StyledPagination>\n );\n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AM,kBAACS,GAAD,EAAe,OAAM,eAAgB,CAAA;IAC3C,SAAA;IACA,cAAW;IACX,YAAY,CAACF;IACb,IAAI,GAAG3B,EAAgB;IACvB,eAAeuB,EAASO,IAAa,CAAC;GACvC,CAAA,EACqB,CAAA;EACD,EAAA,CAAA;CACT,EAAA,CAAA;AAEtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@propellerads/pagination",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "type": "module",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -19,13 +19,13 @@
19
19
  "url": "https://github.com/propellerads/ui-components/issues"
20
20
  },
21
21
  "scripts": {
22
- "build": "tsc && vite build && bunx rollup -c rollup.dts.config.mjs"
22
+ "build": "tsc && vite build && rollup -c rollup.dts.config.mjs"
23
23
  },
24
24
  "homepage": "https://github.com/propellerads/ui-components#readme",
25
25
  "private": false,
26
26
  "dependencies": {
27
27
  "@propellerads/button": "^13.0.0",
28
- "@propellerads/icon": "^9.0.0",
28
+ "@propellerads/icon": "^10.0.0",
29
29
  "@propellerads/label": "^6.1.0",
30
30
  "@propellerads/select": "^9.0.0",
31
31
  "@propellerads/stylevariables": "^2.0.2"