newskit 7.0.0 → 7.2.0
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/cjs/assistive-text/assistive-text.js +1 -1
- package/cjs/assistive-text/assistive-text.js.map +1 -1
- package/cjs/base-floating-element/base-floating-element.d.ts.map +1 -1
- package/cjs/base-floating-element/base-floating-element.js +13 -2
- package/cjs/base-floating-element/base-floating-element.js.map +1 -1
- package/cjs/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/cjs/breadcrumbs/breadcrumbs.js +1 -1
- package/cjs/breadcrumbs/breadcrumbs.js.map +1 -1
- package/cjs/breadcrumbs/style-presets.d.ts.map +1 -1
- package/cjs/breadcrumbs/style-presets.js +2 -0
- package/cjs/breadcrumbs/style-presets.js.map +1 -1
- package/cjs/card/card.d.ts.map +1 -1
- package/cjs/card/card.js +1 -1
- package/cjs/card/card.js.map +1 -1
- package/cjs/card/defaults.d.ts +3 -0
- package/cjs/card/defaults.d.ts.map +1 -1
- package/cjs/card/defaults.js +3 -0
- package/cjs/card/defaults.js.map +1 -1
- package/cjs/card/style-presets.d.ts.map +1 -1
- package/cjs/card/style-presets.js +4 -6
- package/cjs/card/style-presets.js.map +1 -1
- package/cjs/card/styled.d.ts.map +1 -1
- package/cjs/card/styled.js +3 -1
- package/cjs/card/styled.js.map +1 -1
- package/cjs/card-composable/card-composable.d.ts +97 -0
- package/cjs/card-composable/card-composable.d.ts.map +1 -0
- package/cjs/card-composable/card-composable.js +93 -0
- package/cjs/card-composable/card-composable.js.map +1 -0
- package/cjs/card-composable/context.d.ts +8 -0
- package/cjs/card-composable/context.d.ts.map +1 -0
- package/cjs/card-composable/context.js +18 -0
- package/cjs/card-composable/context.js.map +1 -0
- package/cjs/card-composable/defaults.d.ts +12 -0
- package/cjs/card-composable/defaults.d.ts.map +1 -0
- package/cjs/card-composable/defaults.js +13 -0
- package/cjs/card-composable/defaults.js.map +1 -0
- package/cjs/card-composable/index.d.ts +3 -0
- package/cjs/card-composable/index.d.ts.map +1 -0
- package/cjs/card-composable/index.js +14 -0
- package/cjs/card-composable/index.js.map +1 -0
- package/cjs/card-composable/style-presets.d.ts +4 -0
- package/cjs/card-composable/style-presets.d.ts.map +1 -0
- package/cjs/card-composable/style-presets.js +4 -0
- package/cjs/card-composable/style-presets.js.map +1 -0
- package/cjs/card-composable/styled.d.ts +143 -0
- package/cjs/card-composable/styled.d.ts.map +1 -0
- package/cjs/card-composable/styled.js +25 -0
- package/cjs/card-composable/styled.js.map +1 -0
- package/cjs/card-composable/types.d.ts +26 -0
- package/cjs/card-composable/types.d.ts.map +1 -0
- package/cjs/card-composable/types.js +3 -0
- package/cjs/card-composable/types.js.map +1 -0
- package/cjs/date-time/date-time.d.ts +1 -1
- package/cjs/date-time/date-time.d.ts.map +1 -1
- package/cjs/date-time/date-time.js +12 -5
- package/cjs/date-time/date-time.js.map +1 -1
- package/cjs/date-time/types.d.ts +1 -0
- package/cjs/date-time/types.d.ts.map +1 -1
- package/cjs/form/context.d.ts +2 -18
- package/cjs/form/context.d.ts.map +1 -1
- package/cjs/form/utils.d.ts +2 -2
- package/cjs/icons/filled/custom/icon-filled-figma.d.ts.map +1 -1
- package/cjs/icons/filled/custom/icon-filled-figma.js +5 -5
- package/cjs/icons/filled/custom/icon-filled-figma.js.map +1 -1
- package/cjs/icons/filled/custom/index.d.ts +7 -7
- package/cjs/icons/filled/custom/index.d.ts.map +1 -1
- package/cjs/icons/filled/custom/index.js +7 -7
- package/cjs/icons/filled/custom/index.js.map +1 -1
- package/cjs/icons/filled/material/icon-filled-arrow-back.d.ts +2 -0
- package/cjs/icons/filled/material/icon-filled-arrow-back.js +11 -0
- package/cjs/icons/filled/material/icon-filled-arrow-forward.d.ts +2 -0
- package/cjs/icons/filled/material/icon-filled-arrow-forward.js +11 -0
- package/cjs/icons/filled/material/icon-filled-control-point.d.ts +2 -0
- package/cjs/icons/filled/material/icon-filled-control-point.js +11 -0
- package/cjs/icons/filled/material/icon-filled-first-page.d.ts +2 -0
- package/cjs/icons/filled/material/icon-filled-first-page.js +11 -0
- package/cjs/icons/filled/material/icon-filled-last-page.d.ts +2 -0
- package/cjs/icons/filled/material/icon-filled-last-page.js +11 -0
- package/cjs/icons/filled/material/icon-filled-more-horiz.d.ts +2 -0
- package/cjs/icons/filled/material/icon-filled-more-horiz.js +11 -0
- package/cjs/icons/filled/material/icon-filled-remove-red-eye.d.ts +2 -0
- package/cjs/icons/filled/material/icon-filled-remove-red-eye.js +11 -0
- package/cjs/icons/filled/material/icon-filled-star.d.ts +2 -0
- package/cjs/icons/filled/material/icon-filled-star.js +11 -0
- package/cjs/icons/filled/material/index.d.ts +8 -0
- package/cjs/icons/filled/material/index.js +18 -2
- package/cjs/icons/outlined/material/icon-outlined-arrow-back.d.ts +2 -0
- package/cjs/icons/outlined/material/icon-outlined-arrow-back.js +11 -0
- package/cjs/icons/outlined/material/icon-outlined-arrow-forward.d.ts +2 -0
- package/cjs/icons/outlined/material/icon-outlined-arrow-forward.js +11 -0
- package/cjs/icons/outlined/material/icon-outlined-control-point.d.ts +2 -0
- package/cjs/icons/outlined/material/icon-outlined-control-point.js +11 -0
- package/cjs/icons/outlined/material/icon-outlined-first-page.d.ts +2 -0
- package/cjs/icons/outlined/material/icon-outlined-first-page.js +11 -0
- package/cjs/icons/outlined/material/icon-outlined-last-page.d.ts +2 -0
- package/cjs/icons/outlined/material/icon-outlined-last-page.js +11 -0
- package/cjs/icons/outlined/material/icon-outlined-more-horiz.d.ts +2 -0
- package/cjs/icons/outlined/material/icon-outlined-more-horiz.js +11 -0
- package/cjs/icons/outlined/material/icon-outlined-remove-red-eye.d.ts +2 -0
- package/cjs/icons/outlined/material/icon-outlined-remove-red-eye.js +11 -0
- package/cjs/icons/outlined/material/icon-outlined-star.d.ts +2 -0
- package/cjs/icons/outlined/material/icon-outlined-star.js +11 -0
- package/cjs/icons/outlined/material/index.d.ts +8 -0
- package/cjs/icons/outlined/material/index.js +18 -2
- package/cjs/index.d.ts +2 -0
- package/cjs/index.d.ts.map +1 -1
- package/cjs/index.js +2 -0
- package/cjs/index.js.map +1 -1
- package/cjs/menu/style-presets.d.ts.map +1 -1
- package/cjs/menu/style-presets.js +16 -5
- package/cjs/menu/style-presets.js.map +1 -1
- package/cjs/pagination/components/button/index.d.ts +2 -0
- package/cjs/pagination/components/button/index.d.ts.map +1 -0
- package/cjs/pagination/components/button/index.js +14 -0
- package/cjs/pagination/components/button/index.js.map +1 -0
- package/cjs/pagination/components/button/pagination-button.d.ts +5 -0
- package/cjs/pagination/components/button/pagination-button.d.ts.map +1 -0
- package/cjs/pagination/components/button/pagination-button.js +24 -0
- package/cjs/pagination/components/button/pagination-button.js.map +1 -0
- package/cjs/pagination/components/first-item/first-item.d.ts +14 -0
- package/cjs/pagination/components/first-item/first-item.d.ts.map +1 -0
- package/cjs/pagination/components/first-item/first-item.js +61 -0
- package/cjs/pagination/components/first-item/first-item.js.map +1 -0
- package/cjs/pagination/components/first-item/index.d.ts +3 -0
- package/cjs/pagination/components/first-item/index.d.ts.map +1 -0
- package/cjs/pagination/components/first-item/index.js +15 -0
- package/cjs/pagination/components/first-item/index.js.map +1 -0
- package/cjs/pagination/components/first-item/types.d.ts +14 -0
- package/cjs/pagination/components/first-item/types.d.ts.map +1 -0
- package/cjs/pagination/components/first-item/types.js +3 -0
- package/cjs/pagination/components/first-item/types.js.map +1 -0
- package/cjs/pagination/components/item/index.d.ts +2 -0
- package/cjs/pagination/components/item/index.d.ts.map +1 -0
- package/cjs/pagination/components/item/index.js +14 -0
- package/cjs/pagination/components/item/index.js.map +1 -0
- package/cjs/pagination/components/item/pagination-item.d.ts +4 -0
- package/cjs/pagination/components/item/pagination-item.d.ts.map +1 -0
- package/cjs/pagination/components/item/pagination-item.js +77 -0
- package/cjs/pagination/components/item/pagination-item.js.map +1 -0
- package/cjs/pagination/components/items/index.d.ts +2 -0
- package/cjs/pagination/components/items/index.d.ts.map +1 -0
- package/cjs/pagination/components/items/index.js +14 -0
- package/cjs/pagination/components/items/index.js.map +1 -0
- package/cjs/pagination/components/items/pagination-items.d.ts +4 -0
- package/cjs/pagination/components/items/pagination-items.d.ts.map +1 -0
- package/cjs/pagination/components/items/pagination-items.js +95 -0
- package/cjs/pagination/components/items/pagination-items.js.map +1 -0
- package/cjs/pagination/components/last-item/index.d.ts +3 -0
- package/cjs/pagination/components/last-item/index.d.ts.map +1 -0
- package/cjs/pagination/components/last-item/index.js +15 -0
- package/cjs/pagination/components/last-item/index.js.map +1 -0
- package/cjs/pagination/components/last-item/last-item.d.ts +14 -0
- package/cjs/pagination/components/last-item/last-item.d.ts.map +1 -0
- package/cjs/pagination/components/last-item/last-item.js +65 -0
- package/cjs/pagination/components/last-item/last-item.js.map +1 -0
- package/cjs/pagination/components/last-item/types.d.ts +14 -0
- package/cjs/pagination/components/last-item/types.d.ts.map +1 -0
- package/cjs/pagination/components/last-item/types.js +3 -0
- package/cjs/pagination/components/last-item/types.js.map +1 -0
- package/cjs/pagination/components/list-item/index.d.ts +2 -0
- package/cjs/pagination/components/list-item/index.d.ts.map +1 -0
- package/cjs/pagination/components/list-item/index.js +14 -0
- package/cjs/pagination/components/list-item/index.js.map +1 -0
- package/cjs/pagination/components/list-item/list-item.d.ts +3 -0
- package/cjs/pagination/components/list-item/list-item.d.ts.map +1 -0
- package/cjs/pagination/components/list-item/list-item.js +25 -0
- package/cjs/pagination/components/list-item/list-item.js.map +1 -0
- package/cjs/pagination/components/next-item/index.d.ts +3 -0
- package/cjs/pagination/components/next-item/index.d.ts.map +1 -0
- package/cjs/pagination/components/next-item/index.js +15 -0
- package/cjs/pagination/components/next-item/index.js.map +1 -0
- package/cjs/pagination/components/next-item/next-item.d.ts +14 -0
- package/cjs/pagination/components/next-item/next-item.d.ts.map +1 -0
- package/cjs/pagination/components/next-item/next-item.js +70 -0
- package/cjs/pagination/components/next-item/next-item.js.map +1 -0
- package/cjs/pagination/components/next-item/types.d.ts +14 -0
- package/cjs/pagination/components/next-item/types.d.ts.map +1 -0
- package/cjs/pagination/components/next-item/types.js +3 -0
- package/cjs/pagination/components/next-item/types.js.map +1 -0
- package/cjs/pagination/components/prev-item/index.d.ts +3 -0
- package/cjs/pagination/components/prev-item/index.d.ts.map +1 -0
- package/cjs/pagination/components/prev-item/index.js +15 -0
- package/cjs/pagination/components/prev-item/index.js.map +1 -0
- package/cjs/pagination/components/prev-item/prev-item.d.ts +14 -0
- package/cjs/pagination/components/prev-item/prev-item.d.ts.map +1 -0
- package/cjs/pagination/components/prev-item/prev-item.js +66 -0
- package/cjs/pagination/components/prev-item/prev-item.js.map +1 -0
- package/cjs/pagination/components/prev-item/types.d.ts +14 -0
- package/cjs/pagination/components/prev-item/types.d.ts.map +1 -0
- package/cjs/pagination/components/prev-item/types.js +3 -0
- package/cjs/pagination/components/prev-item/types.js.map +1 -0
- package/cjs/pagination/components/types.d.ts +8 -0
- package/cjs/pagination/components/types.d.ts.map +1 -0
- package/cjs/pagination/components/types.js +3 -0
- package/cjs/pagination/components/types.js.map +1 -0
- package/cjs/pagination/context.d.ts +6 -0
- package/cjs/pagination/context.d.ts.map +1 -0
- package/cjs/pagination/context.js +18 -0
- package/cjs/pagination/context.js.map +1 -0
- package/cjs/pagination/defaults.d.ts +186 -0
- package/cjs/pagination/defaults.d.ts.map +1 -0
- package/cjs/pagination/defaults.js +188 -0
- package/cjs/pagination/defaults.js.map +1 -0
- package/cjs/pagination/index.d.ts +13 -0
- package/cjs/pagination/index.d.ts.map +1 -0
- package/cjs/pagination/index.js +25 -0
- package/cjs/pagination/index.js.map +1 -0
- package/cjs/pagination/pagination.d.ts +4 -0
- package/cjs/pagination/pagination.d.ts.map +1 -0
- package/cjs/pagination/pagination.js +147 -0
- package/cjs/pagination/pagination.js.map +1 -0
- package/cjs/pagination/style-presets.d.ts +4 -0
- package/cjs/pagination/style-presets.d.ts.map +1 -0
- package/cjs/pagination/style-presets.js +59 -0
- package/cjs/pagination/style-presets.js.map +1 -0
- package/cjs/pagination/styled.d.ts +19 -0
- package/cjs/pagination/styled.d.ts.map +1 -0
- package/cjs/pagination/styled.js +29 -0
- package/cjs/pagination/styled.js.map +1 -0
- package/cjs/pagination/types.d.ts +95 -0
- package/cjs/pagination/types.d.ts.map +1 -0
- package/cjs/pagination/types.js +3 -0
- package/cjs/pagination/types.js.map +1 -0
- package/cjs/pagination/utils.d.ts +4 -0
- package/cjs/pagination/utils.d.ts.map +1 -0
- package/cjs/pagination/utils.js +102 -0
- package/cjs/pagination/utils.js.map +1 -0
- package/cjs/popover/style-presets.d.ts.map +1 -1
- package/cjs/popover/style-presets.js +13 -0
- package/cjs/popover/style-presets.js.map +1 -1
- package/cjs/structured-list/structured-list-item.d.ts.map +1 -1
- package/cjs/structured-list/structured-list-item.js +5 -1
- package/cjs/structured-list/structured-list-item.js.map +1 -1
- package/cjs/structured-list/structured-list.d.ts.map +1 -1
- package/cjs/structured-list/structured-list.js +2 -1
- package/cjs/structured-list/structured-list.js.map +1 -1
- package/cjs/structured-list/types.d.ts +1 -0
- package/cjs/structured-list/types.d.ts.map +1 -1
- package/cjs/tabs/style-presets.js +1 -1
- package/cjs/tabs/style-presets.js.map +1 -1
- package/cjs/theme/foundations/colors.js +1 -1
- package/cjs/theme/foundations/outlines.d.ts +1 -0
- package/cjs/theme/foundations/outlines.d.ts.map +1 -1
- package/cjs/theme/foundations/outlines.js +1 -0
- package/cjs/theme/foundations/outlines.js.map +1 -1
- package/cjs/theme/presets/style-presets.d.ts.map +1 -1
- package/cjs/theme/presets/style-presets.js +19 -0
- package/cjs/theme/presets/style-presets.js.map +1 -1
- package/cjs/utils/recurse-unknown.d.ts.map +1 -1
- package/cjs/utils/recurse-unknown.js +4 -1
- package/cjs/utils/recurse-unknown.js.map +1 -1
- package/cjs/version-number.json +1 -1
- package/esm/assistive-text/assistive-text.js +1 -1
- package/esm/assistive-text/assistive-text.js.map +1 -1
- package/esm/base-floating-element/base-floating-element.d.ts.map +1 -1
- package/esm/base-floating-element/base-floating-element.js +13 -2
- package/esm/base-floating-element/base-floating-element.js.map +1 -1
- package/esm/breadcrumbs/breadcrumbs.d.ts.map +1 -1
- package/esm/breadcrumbs/breadcrumbs.js +1 -1
- package/esm/breadcrumbs/breadcrumbs.js.map +1 -1
- package/esm/breadcrumbs/style-presets.d.ts.map +1 -1
- package/esm/breadcrumbs/style-presets.js +2 -0
- package/esm/breadcrumbs/style-presets.js.map +1 -1
- package/esm/card/card.d.ts.map +1 -1
- package/esm/card/card.js +1 -1
- package/esm/card/card.js.map +1 -1
- package/esm/card/defaults.d.ts +3 -0
- package/esm/card/defaults.d.ts.map +1 -1
- package/esm/card/defaults.js +3 -0
- package/esm/card/defaults.js.map +1 -1
- package/esm/card/style-presets.d.ts.map +1 -1
- package/esm/card/style-presets.js +4 -6
- package/esm/card/style-presets.js.map +1 -1
- package/esm/card/styled.d.ts.map +1 -1
- package/esm/card/styled.js +3 -1
- package/esm/card/styled.js.map +1 -1
- package/esm/card-composable/card-composable.d.ts +97 -0
- package/esm/card-composable/card-composable.d.ts.map +1 -0
- package/esm/card-composable/card-composable.js +68 -0
- package/esm/card-composable/card-composable.js.map +1 -0
- package/esm/card-composable/context.d.ts +8 -0
- package/esm/card-composable/context.d.ts.map +1 -0
- package/esm/card-composable/context.js +14 -0
- package/esm/card-composable/context.js.map +1 -0
- package/esm/card-composable/defaults.d.ts +12 -0
- package/esm/card-composable/defaults.d.ts.map +1 -0
- package/esm/card-composable/defaults.js +11 -0
- package/esm/card-composable/defaults.js.map +1 -0
- package/esm/card-composable/index.d.ts +3 -0
- package/esm/card-composable/index.d.ts.map +1 -0
- package/esm/card-composable/index.js +2 -0
- package/esm/card-composable/index.js.map +1 -0
- package/esm/card-composable/style-presets.d.ts +4 -0
- package/esm/card-composable/style-presets.d.ts.map +1 -0
- package/esm/card-composable/style-presets.js +2 -0
- package/esm/card-composable/style-presets.js.map +1 -0
- package/esm/card-composable/styled.d.ts +143 -0
- package/esm/card-composable/styled.d.ts.map +1 -0
- package/esm/card-composable/styled.js +22 -0
- package/esm/card-composable/styled.js.map +1 -0
- package/esm/card-composable/types.d.ts +26 -0
- package/esm/card-composable/types.d.ts.map +1 -0
- package/esm/card-composable/types.js +2 -0
- package/esm/card-composable/types.js.map +1 -0
- package/esm/date-time/date-time.d.ts +1 -1
- package/esm/date-time/date-time.d.ts.map +1 -1
- package/esm/date-time/date-time.js +12 -5
- package/esm/date-time/date-time.js.map +1 -1
- package/esm/date-time/types.d.ts +1 -0
- package/esm/date-time/types.d.ts.map +1 -1
- package/esm/form/context.d.ts +2 -18
- package/esm/form/context.d.ts.map +1 -1
- package/esm/form/utils.d.ts +2 -2
- package/esm/icons/filled/custom/icon-filled-figma.d.ts.map +1 -1
- package/esm/icons/filled/custom/icon-filled-figma.js +5 -5
- package/esm/icons/filled/custom/icon-filled-figma.js.map +1 -1
- package/esm/icons/filled/custom/index.d.ts +7 -7
- package/esm/icons/filled/custom/index.d.ts.map +1 -1
- package/esm/icons/filled/custom/index.js +7 -7
- package/esm/icons/filled/custom/index.js.map +1 -1
- package/esm/icons/filled/material/icon-filled-arrow-back.d.ts +2 -0
- package/esm/icons/filled/material/icon-filled-arrow-back.js +8 -0
- package/esm/icons/filled/material/icon-filled-arrow-forward.d.ts +2 -0
- package/esm/icons/filled/material/icon-filled-arrow-forward.js +8 -0
- package/esm/icons/filled/material/icon-filled-control-point.d.ts +2 -0
- package/esm/icons/filled/material/icon-filled-control-point.js +8 -0
- package/esm/icons/filled/material/icon-filled-first-page.d.ts +2 -0
- package/esm/icons/filled/material/icon-filled-first-page.js +8 -0
- package/esm/icons/filled/material/icon-filled-last-page.d.ts +2 -0
- package/esm/icons/filled/material/icon-filled-last-page.js +8 -0
- package/esm/icons/filled/material/icon-filled-more-horiz.d.ts +2 -0
- package/esm/icons/filled/material/icon-filled-more-horiz.js +8 -0
- package/esm/icons/filled/material/icon-filled-remove-red-eye.d.ts +2 -0
- package/esm/icons/filled/material/icon-filled-remove-red-eye.js +8 -0
- package/esm/icons/filled/material/icon-filled-star.d.ts +2 -0
- package/esm/icons/filled/material/icon-filled-star.js +8 -0
- package/esm/icons/filled/material/index.d.ts +8 -0
- package/esm/icons/filled/material/index.js +8 -0
- package/esm/icons/outlined/material/icon-outlined-arrow-back.d.ts +2 -0
- package/esm/icons/outlined/material/icon-outlined-arrow-back.js +8 -0
- package/esm/icons/outlined/material/icon-outlined-arrow-forward.d.ts +2 -0
- package/esm/icons/outlined/material/icon-outlined-arrow-forward.js +8 -0
- package/esm/icons/outlined/material/icon-outlined-control-point.d.ts +2 -0
- package/esm/icons/outlined/material/icon-outlined-control-point.js +8 -0
- package/esm/icons/outlined/material/icon-outlined-first-page.d.ts +2 -0
- package/esm/icons/outlined/material/icon-outlined-first-page.js +8 -0
- package/esm/icons/outlined/material/icon-outlined-last-page.d.ts +2 -0
- package/esm/icons/outlined/material/icon-outlined-last-page.js +8 -0
- package/esm/icons/outlined/material/icon-outlined-more-horiz.d.ts +2 -0
- package/esm/icons/outlined/material/icon-outlined-more-horiz.js +8 -0
- package/esm/icons/outlined/material/icon-outlined-remove-red-eye.d.ts +2 -0
- package/esm/icons/outlined/material/icon-outlined-remove-red-eye.js +8 -0
- package/esm/icons/outlined/material/icon-outlined-star.d.ts +2 -0
- package/esm/icons/outlined/material/icon-outlined-star.js +8 -0
- package/esm/icons/outlined/material/index.d.ts +8 -0
- package/esm/icons/outlined/material/index.js +8 -0
- package/esm/index.d.ts +2 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -0
- package/esm/index.js.map +1 -1
- package/esm/menu/style-presets.d.ts.map +1 -1
- package/esm/menu/style-presets.js +16 -5
- package/esm/menu/style-presets.js.map +1 -1
- package/esm/pagination/components/button/index.d.ts +2 -0
- package/esm/pagination/components/button/index.d.ts.map +1 -0
- package/esm/pagination/components/button/index.js +2 -0
- package/esm/pagination/components/button/index.js.map +1 -0
- package/esm/pagination/components/button/pagination-button.d.ts +5 -0
- package/esm/pagination/components/button/pagination-button.d.ts.map +1 -0
- package/esm/pagination/components/button/pagination-button.js +17 -0
- package/esm/pagination/components/button/pagination-button.js.map +1 -0
- package/esm/pagination/components/first-item/first-item.d.ts +14 -0
- package/esm/pagination/components/first-item/first-item.d.ts.map +1 -0
- package/esm/pagination/components/first-item/first-item.js +55 -0
- package/esm/pagination/components/first-item/first-item.js.map +1 -0
- package/esm/pagination/components/first-item/index.d.ts +3 -0
- package/esm/pagination/components/first-item/index.d.ts.map +1 -0
- package/esm/pagination/components/first-item/index.js +3 -0
- package/esm/pagination/components/first-item/index.js.map +1 -0
- package/esm/pagination/components/first-item/types.d.ts +14 -0
- package/esm/pagination/components/first-item/types.d.ts.map +1 -0
- package/esm/pagination/components/first-item/types.js +2 -0
- package/esm/pagination/components/first-item/types.js.map +1 -0
- package/esm/pagination/components/item/index.d.ts +2 -0
- package/esm/pagination/components/item/index.d.ts.map +1 -0
- package/esm/pagination/components/item/index.js +2 -0
- package/esm/pagination/components/item/index.js.map +1 -0
- package/esm/pagination/components/item/pagination-item.d.ts +4 -0
- package/esm/pagination/components/item/pagination-item.d.ts.map +1 -0
- package/esm/pagination/components/item/pagination-item.js +71 -0
- package/esm/pagination/components/item/pagination-item.js.map +1 -0
- package/esm/pagination/components/items/index.d.ts +2 -0
- package/esm/pagination/components/items/index.d.ts.map +1 -0
- package/esm/pagination/components/items/index.js +2 -0
- package/esm/pagination/components/items/index.js.map +1 -0
- package/esm/pagination/components/items/pagination-items.d.ts +4 -0
- package/esm/pagination/components/items/pagination-items.d.ts.map +1 -0
- package/esm/pagination/components/items/pagination-items.js +88 -0
- package/esm/pagination/components/items/pagination-items.js.map +1 -0
- package/esm/pagination/components/last-item/index.d.ts +3 -0
- package/esm/pagination/components/last-item/index.d.ts.map +1 -0
- package/esm/pagination/components/last-item/index.js +3 -0
- package/esm/pagination/components/last-item/index.js.map +1 -0
- package/esm/pagination/components/last-item/last-item.d.ts +14 -0
- package/esm/pagination/components/last-item/last-item.d.ts.map +1 -0
- package/esm/pagination/components/last-item/last-item.js +59 -0
- package/esm/pagination/components/last-item/last-item.js.map +1 -0
- package/esm/pagination/components/last-item/types.d.ts +14 -0
- package/esm/pagination/components/last-item/types.d.ts.map +1 -0
- package/esm/pagination/components/last-item/types.js +2 -0
- package/esm/pagination/components/last-item/types.js.map +1 -0
- package/esm/pagination/components/list-item/index.d.ts +2 -0
- package/esm/pagination/components/list-item/index.d.ts.map +1 -0
- package/esm/pagination/components/list-item/index.js +2 -0
- package/esm/pagination/components/list-item/index.js.map +1 -0
- package/esm/pagination/components/list-item/list-item.d.ts +3 -0
- package/esm/pagination/components/list-item/list-item.d.ts.map +1 -0
- package/esm/pagination/components/list-item/list-item.js +18 -0
- package/esm/pagination/components/list-item/list-item.js.map +1 -0
- package/esm/pagination/components/next-item/index.d.ts +3 -0
- package/esm/pagination/components/next-item/index.d.ts.map +1 -0
- package/esm/pagination/components/next-item/index.js +3 -0
- package/esm/pagination/components/next-item/index.js.map +1 -0
- package/esm/pagination/components/next-item/next-item.d.ts +14 -0
- package/esm/pagination/components/next-item/next-item.d.ts.map +1 -0
- package/esm/pagination/components/next-item/next-item.js +64 -0
- package/esm/pagination/components/next-item/next-item.js.map +1 -0
- package/esm/pagination/components/next-item/types.d.ts +14 -0
- package/esm/pagination/components/next-item/types.d.ts.map +1 -0
- package/esm/pagination/components/next-item/types.js +2 -0
- package/esm/pagination/components/next-item/types.js.map +1 -0
- package/esm/pagination/components/prev-item/index.d.ts +3 -0
- package/esm/pagination/components/prev-item/index.d.ts.map +1 -0
- package/esm/pagination/components/prev-item/index.js +3 -0
- package/esm/pagination/components/prev-item/index.js.map +1 -0
- package/esm/pagination/components/prev-item/prev-item.d.ts +14 -0
- package/esm/pagination/components/prev-item/prev-item.d.ts.map +1 -0
- package/esm/pagination/components/prev-item/prev-item.js +60 -0
- package/esm/pagination/components/prev-item/prev-item.js.map +1 -0
- package/esm/pagination/components/prev-item/types.d.ts +14 -0
- package/esm/pagination/components/prev-item/types.d.ts.map +1 -0
- package/esm/pagination/components/prev-item/types.js +2 -0
- package/esm/pagination/components/prev-item/types.js.map +1 -0
- package/esm/pagination/components/types.d.ts +8 -0
- package/esm/pagination/components/types.d.ts.map +1 -0
- package/esm/pagination/components/types.js +2 -0
- package/esm/pagination/components/types.js.map +1 -0
- package/esm/pagination/context.d.ts +6 -0
- package/esm/pagination/context.d.ts.map +1 -0
- package/esm/pagination/context.js +14 -0
- package/esm/pagination/context.js.map +1 -0
- package/esm/pagination/defaults.d.ts +186 -0
- package/esm/pagination/defaults.d.ts.map +1 -0
- package/esm/pagination/defaults.js +186 -0
- package/esm/pagination/defaults.js.map +1 -0
- package/esm/pagination/index.d.ts +13 -0
- package/esm/pagination/index.d.ts.map +1 -0
- package/esm/pagination/index.js +13 -0
- package/esm/pagination/index.js.map +1 -0
- package/esm/pagination/pagination.d.ts +4 -0
- package/esm/pagination/pagination.d.ts.map +1 -0
- package/esm/pagination/pagination.js +122 -0
- package/esm/pagination/pagination.js.map +1 -0
- package/esm/pagination/style-presets.d.ts +4 -0
- package/esm/pagination/style-presets.d.ts.map +1 -0
- package/esm/pagination/style-presets.js +57 -0
- package/esm/pagination/style-presets.js.map +1 -0
- package/esm/pagination/styled.d.ts +19 -0
- package/esm/pagination/styled.d.ts.map +1 -0
- package/esm/pagination/styled.js +26 -0
- package/esm/pagination/styled.js.map +1 -0
- package/esm/pagination/types.d.ts +95 -0
- package/esm/pagination/types.d.ts.map +1 -0
- package/esm/pagination/types.js +2 -0
- package/esm/pagination/types.js.map +1 -0
- package/esm/pagination/utils.d.ts +4 -0
- package/esm/pagination/utils.d.ts.map +1 -0
- package/esm/pagination/utils.js +97 -0
- package/esm/pagination/utils.js.map +1 -0
- package/esm/popover/style-presets.d.ts.map +1 -1
- package/esm/popover/style-presets.js +13 -0
- package/esm/popover/style-presets.js.map +1 -1
- package/esm/structured-list/structured-list-item.d.ts.map +1 -1
- package/esm/structured-list/structured-list-item.js +5 -1
- package/esm/structured-list/structured-list-item.js.map +1 -1
- package/esm/structured-list/structured-list.d.ts.map +1 -1
- package/esm/structured-list/structured-list.js +2 -1
- package/esm/structured-list/structured-list.js.map +1 -1
- package/esm/structured-list/types.d.ts +1 -0
- package/esm/structured-list/types.d.ts.map +1 -1
- package/esm/tabs/style-presets.js +1 -1
- package/esm/tabs/style-presets.js.map +1 -1
- package/esm/theme/foundations/colors.js +1 -1
- package/esm/theme/foundations/outlines.d.ts +1 -0
- package/esm/theme/foundations/outlines.d.ts.map +1 -1
- package/esm/theme/foundations/outlines.js +1 -0
- package/esm/theme/foundations/outlines.js.map +1 -1
- package/esm/theme/presets/style-presets.d.ts.map +1 -1
- package/esm/theme/presets/style-presets.js +19 -0
- package/esm/theme/presets/style-presets.js.map +1 -1
- package/esm/utils/recurse-unknown.d.ts.map +1 -1
- package/esm/utils/recurse-unknown.js +4 -1
- package/esm/utils/recurse-unknown.js.map +1 -1
- package/esm/version-number.json +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/pagination/components/first-item/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pagination/components/first-item/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { NewsKitIconProps } from '../../../icons';
|
|
3
|
+
import { MQ } from '../../../utils';
|
|
4
|
+
import { Override } from '../../../utils/overrides';
|
|
5
|
+
import { PaginationIconButtonWithoutClickProps } from '../types';
|
|
6
|
+
export declare type PaginationFirstItemProps = PaginationIconButtonWithoutClickProps & {
|
|
7
|
+
children?: Exclude<React.ReactNode, 'undefined'>;
|
|
8
|
+
overrides?: {
|
|
9
|
+
stylePreset?: MQ<string>;
|
|
10
|
+
typographyPreset?: MQ<string>;
|
|
11
|
+
icon?: Override<NewsKitIconProps>;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/pagination/components/first-item/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAC,qCAAqC,EAAC,MAAM,UAAU,CAAC;AAE/D,oBAAY,wBAAwB,GAAG,qCAAqC,GAAG;IAC7E,QAAQ,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IACjD,SAAS,CAAC,EAAE;QACV,WAAW,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC;QACzB,gBAAgB,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC;QAC9B,IAAI,CAAC,EAAE,QAAQ,CAAC,gBAAgB,CAAC,CAAC;KACnC,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/pagination/components/first-item/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/pagination/components/item/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pagination/components/item/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PaginationItemProps } from '../../types';
|
|
3
|
+
export declare const PaginationItem: React.ForwardRefExoticComponent<(Pick<import("../../../button").ButtonProps & PaginationItemProps, "type" | "id" | "name" | "color" | "translate" | "value" | "loading" | "hidden" | "dir" | "form" | "slot" | "style" | "title" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "inputMode" | "tabIndex" | "disabled" | "size" | "as" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "selected" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "overrides" | "eventContext" | "eventOriginator" | "pageSize" | "totalItems" | "pageNumber" | "lastPage" | "changePage"> | Pick<import("../../../button").ButtonLinkProps & PaginationItemProps, "type" | "id" | "media" | "color" | "translate" | "loading" | "hidden" | "dir" | "slot" | "style" | "title" | "target" | "accessKey" | "draggable" | "lang" | "className" | "prefix" | "children" | "contentEditable" | "inputMode" | "tabIndex" | "disabled" | "size" | "as" | "download" | "href" | "hrefLang" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "placeholder" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "rel" | "selected" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "ping" | "referrerPolicy" | "overrides" | "eventContext" | "eventOriginator" | "pageSize" | "totalItems" | "pageNumber" | "lastPage" | "changePage">) & React.RefAttributes<HTMLElement>>;
|
|
4
|
+
//# sourceMappingURL=pagination-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination-item.d.ts","sourceRoot":"","sources":["../../../../../src/pagination/components/item/pagination-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAC,mBAAmB,EAAiC,MAAM,aAAa,CAAC;AAUhF,eAAO,MAAM,cAAc,8vTAyH1B,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import React from 'react';
|
|
24
|
+
import { filterOutFalsyProperties } from '../../../utils/filter-object';
|
|
25
|
+
import { useTheme } from '../../../theme';
|
|
26
|
+
import { getPaginationItemAria } from '../../utils';
|
|
27
|
+
import { get } from '../../../utils/get';
|
|
28
|
+
import { getComponentOverrides } from '../../../utils/overrides';
|
|
29
|
+
import { GridLayout } from '../../../grid-layout';
|
|
30
|
+
import { PaginationButton } from '../button';
|
|
31
|
+
import { TextBlock } from '../../../text-block';
|
|
32
|
+
export var PaginationItem = React.forwardRef(function (_a, ref) {
|
|
33
|
+
var children = _a.children, selected = _a.selected, pageNumber = _a.pageNumber, lastPage = _a.lastPage, href = _a.href, onClick = _a.onClick, _b = _a.overrides, overrides = _b === void 0 ? {} : _b, _c = _a.itemType, itemType = _c === void 0 ? 'paginationItem' : _c,
|
|
34
|
+
/* istanbul ignore next */
|
|
35
|
+
_d = _a.size,
|
|
36
|
+
/* istanbul ignore next */
|
|
37
|
+
size = _d === void 0 ? 'medium' : _d, changePage = _a.changePage, _e = _a.eventContext, eventContext = _e === void 0 ? {} : _e,
|
|
38
|
+
/* istanbul ignore next */
|
|
39
|
+
_f = _a.eventOriginator,
|
|
40
|
+
/* istanbul ignore next */
|
|
41
|
+
eventOriginator = _f === void 0 ? 'pagination-item' : _f, rest = __rest(_a, ["children", "selected", "pageNumber", "lastPage", "href", "onClick", "overrides", "itemType", "size", "changePage", "eventContext", "eventOriginator"]);
|
|
42
|
+
var buttonProps = __assign(__assign({}, rest), { 'data-testid': get(rest, 'data-testid') || 'pagination-item', pageNumber: pageNumber, selected: selected, size: size, href: href, onClick: onClick });
|
|
43
|
+
var itemButton = overrides.itemButton, itemDescription = overrides.itemDescription;
|
|
44
|
+
var theme = useTheme();
|
|
45
|
+
var itemTypeComponentDefaults = itemType !== 'paginationItem'
|
|
46
|
+
? theme.componentDefaults[itemType][size]
|
|
47
|
+
: undefined;
|
|
48
|
+
var buttonSettings = __assign(__assign(__assign({}, theme.componentDefaults.paginationItem[size]), itemTypeComponentDefaults), filterOutFalsyProperties(overrides));
|
|
49
|
+
var textblockSettings = __assign(__assign({}, theme.componentDefaults.paginationItemNonInteractive[size]), filterOutFalsyProperties(itemDescription));
|
|
50
|
+
// Extract to utils
|
|
51
|
+
var ariaProps = getPaginationItemAria({
|
|
52
|
+
itemType: itemType,
|
|
53
|
+
pageNumber: pageNumber,
|
|
54
|
+
selected: selected,
|
|
55
|
+
disabled: buttonProps.disabled,
|
|
56
|
+
});
|
|
57
|
+
var combinedEventContext = href
|
|
58
|
+
? __assign(__assign({}, eventContext), { href: href }) : __assign(__assign({}, eventContext), { page: pageNumber });
|
|
59
|
+
var combinedProps = __assign(__assign(__assign({}, buttonProps), ariaProps), { eventContext: combinedEventContext, eventOriginator: eventOriginator, overrides: buttonSettings, ref: ref });
|
|
60
|
+
if (itemType !== 'paginationItemTruncation' &&
|
|
61
|
+
(itemButton || itemDescription)) {
|
|
62
|
+
var _g = getComponentOverrides(itemButton, PaginationButton, __assign(__assign({}, combinedProps), { lastPage: lastPage, changePage: changePage })), ItemButton = _g[0], itemButtonProps = _g[1];
|
|
63
|
+
var _h = getComponentOverrides(itemDescription, TextBlock, textblockSettings), ItemDescription = _h[0], itemDescriptionProps = _h[1];
|
|
64
|
+
return (React.createElement(GridLayout, { columns: "auto auto", rows: "1fr", autoFlow: "row", alignItems: "center", columnGap: "space010" },
|
|
65
|
+
React.createElement(ItemButton, __assign({}, itemButtonProps), children),
|
|
66
|
+
itemDescription && (React.createElement(ItemDescription, __assign({}, itemDescriptionProps, { selected: true, pageNumber: pageNumber, lastPage: lastPage })))));
|
|
67
|
+
}
|
|
68
|
+
// @ts-ignore - href must be allowed to be undefined so that Button renders as a link when appropriate
|
|
69
|
+
return React.createElement(PaginationButton, __assign({}, combinedProps), children);
|
|
70
|
+
});
|
|
71
|
+
//# sourceMappingURL=pagination-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination-item.js","sourceRoot":"","sources":["../../../../../src/pagination/components/item/pagination-item.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAC,wBAAwB,EAAC,MAAM,8BAA8B,CAAC;AAE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O,EAAC,WAAW,EACnB,IAAI,EAAC,KAAK,EACV,QAAQ,EAAC,KAAK,EACd,UAAU,EAAC,QAAQ,EACnB,SAAS,EAAC,UAAU;YAEpB,oBAAC,UAAU,eAAK,eAAe,GAAG,QAAQ,CAAc;YACvD,eAAe,IAAI,CAClB,oBAAC,eAAe,eACV,oBAAoB,IACxB,QAAQ,QACR,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,QAAQ,IAClB,CACH,CACU,CACd,CAAC;KACH;IAED,sGAAsG;IACtG,OAAO,oBAAC,gBAAgB,eAAK,aAAa,GAAG,QAAQ,CAAoB,CAAC;AAC5E,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/pagination/components/items/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pagination/components/items/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PaginationItemsProps } from '../../types';
|
|
3
|
+
export declare const PaginationItems: ({ children, overrides, truncation, siblings, boundaries, eventContext, eventOriginator, }: PaginationItemsProps) => JSX.Element;
|
|
4
|
+
//# sourceMappingURL=pagination-items.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination-items.d.ts","sourceRoot":"","sources":["../../../../../src/pagination/components/items/pagination-items.tsx"],"names":[],"mappings":";AAEA,OAAO,EAEL,oBAAoB,EAGrB,MAAM,aAAa,CAAC;AAkBrB,eAAO,MAAM,eAAe,8FASzB,oBAAoB,gBAoGtB,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import { filterOutFalsyProperties } from '../../../utils/filter-object';
|
|
14
|
+
import { useTheme } from '../../../theme';
|
|
15
|
+
import { IconFilledMoreHoriz } from '../../../icons';
|
|
16
|
+
import { getComponentOverrides } from '../../../utils/overrides';
|
|
17
|
+
import { PaginationItem } from '../item/pagination-item';
|
|
18
|
+
import { usePaginationContext } from '../../context';
|
|
19
|
+
import { getPaginationItemsLayout } from '../../utils';
|
|
20
|
+
import { PaginationListItem } from '../list-item';
|
|
21
|
+
var paginationItemTruncation = 'paginationItemTruncation';
|
|
22
|
+
var DefaultIcon = function (props) { return (React.createElement(IconFilledMoreHoriz, __assign({}, props))); };
|
|
23
|
+
/* This has deliberately been designed as a stateless component that gets all the props passed in
|
|
24
|
+
for ease of overriding. This component is not meant to be used by a developer, just by
|
|
25
|
+
PaginationItems, as that has access to all the state that needs passing in */
|
|
26
|
+
export var PaginationItems = function (_a) {
|
|
27
|
+
var children = _a.children, overrides = _a.overrides, _b = _a.truncation, truncation = _b === void 0 ? true : _b, _c = _a.siblings, siblings = _c === void 0 ? 3 : _c, _d = _a.boundaries, boundaries = _d === void 0 ? 1 : _d, _e = _a.eventContext, eventContext = _e === void 0 ? {} : _e,
|
|
28
|
+
/* istanbul ignore next */
|
|
29
|
+
_f = _a.eventOriginator,
|
|
30
|
+
/* istanbul ignore next */
|
|
31
|
+
eventOriginator = _f === void 0 ? 'pagination-item' : _f;
|
|
32
|
+
var theme = useTheme();
|
|
33
|
+
var _g = usePaginationContext(),
|
|
34
|
+
/* istanbul ignore next */
|
|
35
|
+
_h = _g.size,
|
|
36
|
+
/* istanbul ignore next */
|
|
37
|
+
size = _h === void 0 ? 'medium' : _h, buildHref = _g.buildHref,
|
|
38
|
+
/* istanbul ignore next */
|
|
39
|
+
_j = _g.changePage,
|
|
40
|
+
/* istanbul ignore next */
|
|
41
|
+
changePage = _j === void 0 ? function () { } : _j, page = _g.page, lastPage = _g.lastPage, pageSize = _g.pageSize, totalItems = _g.totalItems;
|
|
42
|
+
var _k = getComponentOverrides(overrides === null || overrides === void 0 ? void 0 : overrides.icon, DefaultIcon, {
|
|
43
|
+
overrides: __assign(__assign({}, theme.componentDefaults.paginationItemTruncation[size]), filterOutFalsyProperties(overrides === null || overrides === void 0 ? void 0 : overrides.icon)),
|
|
44
|
+
}), PaginationIcon = _k[0], paginationIconProps = _k[1];
|
|
45
|
+
var paginationElements = [];
|
|
46
|
+
if (page && lastPage) {
|
|
47
|
+
var layout = getPaginationItemsLayout({
|
|
48
|
+
page: page,
|
|
49
|
+
lastPage: lastPage,
|
|
50
|
+
truncation: truncation,
|
|
51
|
+
siblings: siblings,
|
|
52
|
+
boundaries: boundaries,
|
|
53
|
+
});
|
|
54
|
+
// These are passed through to the PaginationItem in case overrides.itemButton is set,
|
|
55
|
+
// as custom components will need the full context
|
|
56
|
+
var staticProps_1 = {
|
|
57
|
+
lastPage: lastPage,
|
|
58
|
+
pageSize: pageSize,
|
|
59
|
+
totalItems: totalItems,
|
|
60
|
+
changePage: changePage,
|
|
61
|
+
};
|
|
62
|
+
var truncationCount_1 = 0;
|
|
63
|
+
/* istanbul ignore next */
|
|
64
|
+
layout.forEach(function (element) {
|
|
65
|
+
if (element === void 0) { element = 1; }
|
|
66
|
+
switch (element) {
|
|
67
|
+
case '-':
|
|
68
|
+
truncationCount_1 += 1;
|
|
69
|
+
paginationElements.push(React.createElement(PaginationListItem, { key: "trunc".concat(truncationCount_1), "aria-hidden": "true" },
|
|
70
|
+
React.createElement(PaginationItem, __assign({ itemType: paginationItemTruncation, "datatest-id": "pagination-item-truncation".concat(truncationCount_1), size: size, disabled: true, overrides: overrides }, staticProps_1),
|
|
71
|
+
"[",
|
|
72
|
+
React.createElement(PaginationIcon, __assign({}, paginationIconProps)),
|
|
73
|
+
"]")));
|
|
74
|
+
break;
|
|
75
|
+
default:
|
|
76
|
+
{
|
|
77
|
+
var pageNumber_1 = element;
|
|
78
|
+
var href = buildHref && buildHref(pageNumber_1);
|
|
79
|
+
paginationElements.push(React.createElement(PaginationListItem, { key: "page".concat(pageNumber_1) },
|
|
80
|
+
React.createElement(PaginationItem, __assign({ href: href, onClick: function () { return changePage(pageNumber_1); }, selected: pageNumber_1 === page, eventContext: eventContext, eventOriginator: eventOriginator, size: size, overrides: overrides, pageNumber: pageNumber_1 }, staticProps_1), children || pageNumber_1)));
|
|
81
|
+
}
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
return React.createElement(React.Fragment, null, paginationElements);
|
|
87
|
+
};
|
|
88
|
+
//# sourceMappingURL=pagination-items.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination-items.js","sourceRoot":"","sources":["../../../../../src/pagination/components/items/pagination-items.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,wBAAwB,EAAC,MAAM,8BAA8B,CAAC;AAOtE,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAC,mBAAmB,EAAmB,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAC,qBAAqB,EAAW,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAC,oBAAoB,EAAC,MAAM,eAAe,CAAC;AACnD,OAAO,EAAC,wBAAwB,EAAC,MAAM,aAAa,CAAC;AACrD,OAAO,EAAC,kBAAkB,EAAC,MAAM,cAAc,CAAC;AAEhD,IAAM,wBA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ACpB,UAAU,EAAE,YAAU,IAClB,aAAW,GAEd,QAAQ,IAAI,YAAU,CACR,CACE,CACtB,CAAC;qBACH;oBACD,MAAM;aACT;QACH,CAAC,CAAC,CAAC;KACJ;IAED,OAAO,0CAAG,kBAAkB,CAAI,CAAC;AACnC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/pagination/components/last-item/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pagination/components/last-item/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NewsKitIconProps } from '../../../icons';
|
|
3
|
+
import { Override } from '../../../utils/overrides';
|
|
4
|
+
export declare const PaginationLastItem: React.ForwardRefExoticComponent<Omit<import("../types").PaginationIconButtonProps, "onClick"> & {
|
|
5
|
+
onClick?: ((event: KeyboardEvent | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
overrides?: {
|
|
9
|
+
stylePreset?: import("../../..").MQ<string> | undefined;
|
|
10
|
+
typographyPreset?: import("../../..").MQ<string> | undefined;
|
|
11
|
+
icon?: Override<NewsKitIconProps>;
|
|
12
|
+
} | undefined;
|
|
13
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
//# sourceMappingURL=last-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"last-item.d.ts","sourceRoot":"","sources":["../../../../../src/pagination/components/last-item/last-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAqB,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AAMpE,OAAO,EAAwB,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AASzE,eAAO,MAAM,kBAAkB;;;;;;;;;2CAgD7B,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import React from 'react';
|
|
24
|
+
import { useTheme } from '../../../theme';
|
|
25
|
+
import { IconFilledLastPage } from '../../../icons';
|
|
26
|
+
import { usePaginationContext } from '../../context';
|
|
27
|
+
import { PaginationListItem } from '../list-item';
|
|
28
|
+
import { PaginationItem } from '../item/pagination-item';
|
|
29
|
+
import { filterOutFalsyProperties } from '../../../utils/filter-object';
|
|
30
|
+
import { getComponentOverrides } from '../../../utils/overrides';
|
|
31
|
+
var itemType = 'paginationItemLast';
|
|
32
|
+
var DefaultIcon = function (props) { return (React.createElement(IconFilledLastPage, __assign({}, props))); };
|
|
33
|
+
export var PaginationLastItem = React.forwardRef(function (_a, ref) {
|
|
34
|
+
var children = _a.children, overrides = _a.overrides, eventContext = _a.eventContext, props = __rest(_a, ["children", "overrides", "eventContext"]);
|
|
35
|
+
var theme = useTheme();
|
|
36
|
+
var _b = usePaginationContext(), getLastItemProps = _b.getLastItemProps,
|
|
37
|
+
/* istanbul ignore next */
|
|
38
|
+
_c = _b.size,
|
|
39
|
+
/* istanbul ignore next */
|
|
40
|
+
size = _c === void 0 ? 'medium' : _c, buildHref = _b.buildHref,
|
|
41
|
+
/* istanbul ignore next */
|
|
42
|
+
_d = _b.lastPage,
|
|
43
|
+
/* istanbul ignore next */
|
|
44
|
+
lastPage = _d === void 0 ? 1 : _d;
|
|
45
|
+
var PaginationIcon = getComponentOverrides(overrides === null || overrides === void 0 ? void 0 : overrides.icon, DefaultIcon, {
|
|
46
|
+
overrides: __assign(__assign({}, theme.componentDefaults.paginationItemLast[size]), filterOutFalsyProperties(overrides)),
|
|
47
|
+
})[0];
|
|
48
|
+
var propsFromContext = getLastItemProps && getLastItemProps(props);
|
|
49
|
+
var href = buildHref && buildHref(lastPage);
|
|
50
|
+
return (React.createElement(PaginationListItem, { key: "last" },
|
|
51
|
+
React.createElement(PaginationItem
|
|
52
|
+
// @ts-ignore
|
|
53
|
+
, __assign({
|
|
54
|
+
// @ts-ignore
|
|
55
|
+
itemType: itemType, "data-testid": "pagination-last-item", eventOriginator: "pagination-last-item", eventContext: eventContext, pageNumber: lastPage }, propsFromContext, { overrides: overrides, ref: ref, href: href, size: size }),
|
|
56
|
+
children,
|
|
57
|
+
React.createElement(PaginationIcon, null))));
|
|
58
|
+
});
|
|
59
|
+
//# sourceMappingURL=last-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"last-item.js","sourceRoot":"","sources":["../../../../../src/pagination/components/last-item/last-item.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;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vC;KACF,CACF,GAToB,CASnB;IAEF,IAAM,gBAAgB,GAAG,gBAAiB,IAAI,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAEtE,IAAM,IAAI,GAAG,SAAU,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC/C,OAAO,CACL,oBAAC,kBAAkB,IAAC,GAAG,EAAC,MAAM;QAC5B,oBAAC,cAAc;QACb,aAAa;;YAAb,aAAa;YACb,QAAQ,EAAE,QAAQ,iBACN,sBAAsB,EAClC,eAAe,EAAC,sBAAsB,EACtC,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,QAAQ,IAChB,gBAAgB,IACpB,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI;YAET,QAAQ;YACT,oBAAC,cAAc,OAAG,CACH,CACE,CACtB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { NewsKitIconProps } from '../../../icons';
|
|
3
|
+
import { MQ } from '../../../utils';
|
|
4
|
+
import { Override } from '../../../utils/overrides';
|
|
5
|
+
import { PaginationIconButtonWithoutClickProps } from '../types';
|
|
6
|
+
export declare type PaginationLastItemProps = PaginationIconButtonWithoutClickProps & {
|
|
7
|
+
children?: Exclude<React.ReactNode, 'undefined'>;
|
|
8
|
+
overrides?: {
|
|
9
|
+
stylePreset?: MQ<string>;
|
|
10
|
+
typographyPreset?: MQ<string>;
|
|
11
|
+
icon?: Override<NewsKitIconProps>;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/pagination/components/last-item/types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAC,qCAAqC,EAAC,MAAM,UAAU,CAAC;AAE/D,oBAAY,uBAAuB,GAAG,qCAAqC,GAAG;IAC5E,QAAQ,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;IACjD,SAAS,CAAC,EAAE;QACV,WAAW,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC;QACzB,gBAAgB,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC;QAC9B,IAAI,CAAC,EAAE,QAAQ,CAAC,gBAAgB,CAAC,CAAC;KACnC,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/pagination/components/last-item/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/pagination/components/list-item/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pagination/components/list-item/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["../../../../../src/pagination/components/list-item/list-item.tsx"],"names":[],"mappings":";AAMA,eAAO,MAAM,kBAAkB,UAAW,OAAO,MAAM,EAAE,OAAO,CAAC,gBAEhE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import { StyledListItem } from '../../styled';
|
|
14
|
+
// This component can be exported but styled components cannot. Exporting it as some users
|
|
15
|
+
// may need it when creating a custom composable component to use with Pagination.
|
|
16
|
+
// The only expected props are attributes, such as 'key' and 'data-testid'
|
|
17
|
+
export var PaginationListItem = function (props) { return (React.createElement(StyledListItem, __assign({}, props))); };
|
|
18
|
+
//# sourceMappingURL=list-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-item.js","sourceRoot":"","sources":["../../../../../src/pagination/components/list-item/list-item.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,cAAc,EAAC,MAAM,cAAc,CAAC;AAE5C,0FAA0F;AAC1F,kFAAkF;AAClF,0EAA0E;AAC1E,MAAM,CAAC,IAAM,kBAAkB,GAAG,UAAC,KAA8B,IAAK,OAAA,CACpE,oBAAC,cAAc,eAAK,KAAK,EAAI,CAC9B,EAFqE,CAErE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/pagination/components/next-item/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pagination/components/next-item/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NewsKitIconProps } from '../../../icons';
|
|
3
|
+
import { Override } from '../../../utils/overrides';
|
|
4
|
+
export declare const PaginationNextItem: React.ForwardRefExoticComponent<Omit<import("../types").PaginationIconButtonProps, "onClick"> & {
|
|
5
|
+
onClick?: ((event: KeyboardEvent | React.MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
overrides?: {
|
|
9
|
+
stylePreset?: import("../../..").MQ<string> | undefined;
|
|
10
|
+
typographyPreset?: import("../../..").MQ<string> | undefined;
|
|
11
|
+
icon?: Override<NewsKitIconProps>;
|
|
12
|
+
} | undefined;
|
|
13
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
//# sourceMappingURL=next-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next-item.d.ts","sourceRoot":"","sources":["../../../../../src/pagination/components/next-item/next-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAyB,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AAMxE,OAAO,EAAwB,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AASzE,eAAO,MAAM,kBAAkB;;;;;;;;;2CAmD7B,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import React from 'react';
|
|
24
|
+
import { useTheme } from '../../../theme';
|
|
25
|
+
import { IconFilledChevronRight } from '../../../icons';
|
|
26
|
+
import { usePaginationContext } from '../../context';
|
|
27
|
+
import { PaginationListItem } from '../list-item';
|
|
28
|
+
import { PaginationItem } from '../item/pagination-item';
|
|
29
|
+
import { filterOutFalsyProperties } from '../../../utils/filter-object';
|
|
30
|
+
import { getComponentOverrides } from '../../../utils/overrides';
|
|
31
|
+
var itemType = 'paginationItemNext';
|
|
32
|
+
var DefaultIcon = function (props) { return (React.createElement(IconFilledChevronRight, __assign({}, props))); };
|
|
33
|
+
export var PaginationNextItem = React.forwardRef(function (_a, ref) {
|
|
34
|
+
var children = _a.children, overrides = _a.overrides, eventContext = _a.eventContext, props = __rest(_a, ["children", "overrides", "eventContext"]);
|
|
35
|
+
var theme = useTheme();
|
|
36
|
+
var _b = usePaginationContext(), getNextItemProps = _b.getNextItemProps,
|
|
37
|
+
/* istanbul ignore next */
|
|
38
|
+
_c = _b.size,
|
|
39
|
+
/* istanbul ignore next */
|
|
40
|
+
size = _c === void 0 ? 'medium' : _c, buildHref = _b.buildHref,
|
|
41
|
+
/* istanbul ignore next */
|
|
42
|
+
_d = _b.page,
|
|
43
|
+
/* istanbul ignore next */
|
|
44
|
+
page = _d === void 0 ? 1 : _d,
|
|
45
|
+
/* istanbul ignore next */
|
|
46
|
+
_e = _b.lastPage,
|
|
47
|
+
/* istanbul ignore next */
|
|
48
|
+
lastPage = _e === void 0 ? 1 : _e;
|
|
49
|
+
var PaginationIcon = getComponentOverrides(overrides === null || overrides === void 0 ? void 0 : overrides.icon, DefaultIcon, {
|
|
50
|
+
overrides: __assign(__assign({}, theme.componentDefaults.paginationItemNext[size]), filterOutFalsyProperties(overrides)),
|
|
51
|
+
})[0];
|
|
52
|
+
var propsFromContext = getNextItemProps && getNextItemProps(props);
|
|
53
|
+
var nextPage = Math.min(page + 1, lastPage);
|
|
54
|
+
var href = buildHref && buildHref(nextPage);
|
|
55
|
+
return (React.createElement(PaginationListItem, { key: "next" },
|
|
56
|
+
React.createElement(PaginationItem
|
|
57
|
+
// @ts-ignore
|
|
58
|
+
, __assign({
|
|
59
|
+
// @ts-ignore
|
|
60
|
+
itemType: itemType, "data-testid": "pagination-next-item", eventOriginator: "pagination-next-item", eventContext: eventContext, pageNumber: nextPage }, propsFromContext, { overrides: overrides, ref: ref, href: href, size: size }),
|
|
61
|
+
children,
|
|
62
|
+
React.createElement(PaginationIcon, null))));
|
|
63
|
+
});
|
|
64
|
+
//# sourceMappingURL=next-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next-item.js","sourceRoot":"","sources":["../../../../../src/pagination/components/next-item/next-item.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAC,sBAAsB,EAAmB,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAC,oBAAoB,EAAC,MAAM,eAAe,CAAC;AACnD,OAAO,EAAC,kBAAkB,EAAC,MAAM,cAAc,CAAC;AAChD,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAAC,wBAAwB,EAAC,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAC,qBAAqB,EAAW,MAAM,0BAA0B,CAAC;AAGzE,IAAM,QAAQ,GAAG,oBAA0C,CAAC;AA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