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,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.PaginationLastItem = void 0;
|
|
29
|
+
var react_1 = __importDefault(require("react"));
|
|
30
|
+
var theme_1 = require("../../../theme");
|
|
31
|
+
var icons_1 = require("../../../icons");
|
|
32
|
+
var context_1 = require("../../context");
|
|
33
|
+
var list_item_1 = require("../list-item");
|
|
34
|
+
var pagination_item_1 = require("../item/pagination-item");
|
|
35
|
+
var filter_object_1 = require("../../../utils/filter-object");
|
|
36
|
+
var overrides_1 = require("../../../utils/overrides");
|
|
37
|
+
var itemType = 'paginationItemLast';
|
|
38
|
+
var DefaultIcon = function (props) { return (react_1.default.createElement(icons_1.IconFilledLastPage, __assign({}, props))); };
|
|
39
|
+
exports.PaginationLastItem = react_1.default.forwardRef(function (_a, ref) {
|
|
40
|
+
var children = _a.children, overrides = _a.overrides, eventContext = _a.eventContext, props = __rest(_a, ["children", "overrides", "eventContext"]);
|
|
41
|
+
var theme = (0, theme_1.useTheme)();
|
|
42
|
+
var _b = (0, context_1.usePaginationContext)(), getLastItemProps = _b.getLastItemProps,
|
|
43
|
+
/* istanbul ignore next */
|
|
44
|
+
_c = _b.size,
|
|
45
|
+
/* istanbul ignore next */
|
|
46
|
+
size = _c === void 0 ? 'medium' : _c, buildHref = _b.buildHref,
|
|
47
|
+
/* istanbul ignore next */
|
|
48
|
+
_d = _b.lastPage,
|
|
49
|
+
/* istanbul ignore next */
|
|
50
|
+
lastPage = _d === void 0 ? 1 : _d;
|
|
51
|
+
var PaginationIcon = (0, overrides_1.getComponentOverrides)(overrides === null || overrides === void 0 ? void 0 : overrides.icon, DefaultIcon, {
|
|
52
|
+
overrides: __assign(__assign({}, theme.componentDefaults.paginationItemLast[size]), (0, filter_object_1.filterOutFalsyProperties)(overrides)),
|
|
53
|
+
})[0];
|
|
54
|
+
var propsFromContext = getLastItemProps && getLastItemProps(props);
|
|
55
|
+
var href = buildHref && buildHref(lastPage);
|
|
56
|
+
return (react_1.default.createElement(list_item_1.PaginationListItem, { key: "last" },
|
|
57
|
+
react_1.default.createElement(pagination_item_1.PaginationItem
|
|
58
|
+
// @ts-ignore
|
|
59
|
+
, __assign({
|
|
60
|
+
// @ts-ignore
|
|
61
|
+
itemType: itemType, "data-testid": "pagination-last-item", eventOriginator: "pagination-last-item", eventContext: eventContext, pageNumber: lastPage }, propsFromContext, { overrides: overrides, ref: ref, href: href, size: size }),
|
|
62
|
+
children,
|
|
63
|
+
react_1.default.createElement(PaginationIcon, null))));
|
|
64
|
+
});
|
|
65
|
+
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,wCAAwC;AACxC,wCAAoE;AACpE,yCAAmD;AACnD,0CAAgD;AAChD,2DAAuD;AAEvD,8DAAsE;AACtE,sDAAyE;AAGzE,IAAM,QAAQ,GAAG,oBAA0C,CAAC;AAE5D,IAAM,WAAW,GAAG,UAAC,KAAuB,IAAK,OAAA,CAC/C,8BAAC,0BAAkB,eAAK,KAAK,EAAI,CAClC,EAFgD,CAEhD,CAAC;AAEW,QAAA,kBAAkB,GAAG,eAAK,CAAC,UAAU,CAGhD,UAAC,EAA6C,EAAE,GAAG;IAAjD,IAAA,QAAQ,cAAA,EAAE,SAAS,eAAA,EAAE,YAAY,kBAAA,EAAK,KAAK,cAA5C,yCAA6C,CAAD;IAC7C,IAAM,KAAK,GAAG,IAAA,gBAAQ,GAAE,CAAC;IACnB,IAAA,KAOF,IAAA,8BAAoB,GAAE,EANxB,gBAAgB,sBAAA;IAChB,0BAA0B;IAC1B,YAAe;IADf,0BAA0B;IAC1B,IAAI,mBAAG,QAAQ,KAAA,EACf,SAAS,eAAA;IACT,0BAA0B;IAC1B,gBAAY;IADZ,0BAA0B;IAC1B,QAAQ,mBAAG,CAAC,KACY,CAAC;IAEpB,IAAA,cAAc,GAAI,IAAA,iCAAqB,EAC5C,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,IAAkC,EAC7C,WAAW,EACX;QACE,SAAS,wBACJ,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,IAAI,CAAC,GAChD,IAAA,wCAAwB,EAAC,SAAS,CAAC,CACvC;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,8BAAC,8BAAkB,IAAC,GAAG,EAAC,MAAM;QAC5B,8BAAC,gCAAc;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,8BAAC,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,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./list-item"), exports);
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pagination/components/list-item/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA4B"}
|
|
@@ -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,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.PaginationListItem = void 0;
|
|
18
|
+
var react_1 = __importDefault(require("react"));
|
|
19
|
+
var styled_1 = require("../../styled");
|
|
20
|
+
// This component can be exported but styled components cannot. Exporting it as some users
|
|
21
|
+
// may need it when creating a custom composable component to use with Pagination.
|
|
22
|
+
// The only expected props are attributes, such as 'key' and 'data-testid'
|
|
23
|
+
var PaginationListItem = function (props) { return (react_1.default.createElement(styled_1.StyledListItem, __assign({}, props))); };
|
|
24
|
+
exports.PaginationListItem = PaginationListItem;
|
|
25
|
+
//# 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,gDAA0B;AAC1B,uCAA4C;AAE5C,0FAA0F;AAC1F,kFAAkF;AAClF,0EAA0E;AACnE,IAAM,kBAAkB,GAAG,UAAC,KAA8B,IAAK,OAAA,CACpE,8BAAC,uBAAc,eAAK,KAAK,EAAI,CAC9B,EAFqE,CAErE,CAAC;AAFW,QAAA,kBAAkB,sBAE7B"}
|
|
@@ -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,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./next-item"), exports);
|
|
14
|
+
__exportStar(require("./types"), exports);
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pagination/components/next-item/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA4B;AAC5B,0CAAwB"}
|
|
@@ -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,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.PaginationNextItem = void 0;
|
|
29
|
+
var react_1 = __importDefault(require("react"));
|
|
30
|
+
var theme_1 = require("../../../theme");
|
|
31
|
+
var icons_1 = require("../../../icons");
|
|
32
|
+
var context_1 = require("../../context");
|
|
33
|
+
var list_item_1 = require("../list-item");
|
|
34
|
+
var pagination_item_1 = require("../item/pagination-item");
|
|
35
|
+
var filter_object_1 = require("../../../utils/filter-object");
|
|
36
|
+
var overrides_1 = require("../../../utils/overrides");
|
|
37
|
+
var itemType = 'paginationItemNext';
|
|
38
|
+
var DefaultIcon = function (props) { return (react_1.default.createElement(icons_1.IconFilledChevronRight, __assign({}, props))); };
|
|
39
|
+
exports.PaginationNextItem = react_1.default.forwardRef(function (_a, ref) {
|
|
40
|
+
var children = _a.children, overrides = _a.overrides, eventContext = _a.eventContext, props = __rest(_a, ["children", "overrides", "eventContext"]);
|
|
41
|
+
var theme = (0, theme_1.useTheme)();
|
|
42
|
+
var _b = (0, context_1.usePaginationContext)(), getNextItemProps = _b.getNextItemProps,
|
|
43
|
+
/* istanbul ignore next */
|
|
44
|
+
_c = _b.size,
|
|
45
|
+
/* istanbul ignore next */
|
|
46
|
+
size = _c === void 0 ? 'medium' : _c, buildHref = _b.buildHref,
|
|
47
|
+
/* istanbul ignore next */
|
|
48
|
+
_d = _b.page,
|
|
49
|
+
/* istanbul ignore next */
|
|
50
|
+
page = _d === void 0 ? 1 : _d,
|
|
51
|
+
/* istanbul ignore next */
|
|
52
|
+
_e = _b.lastPage,
|
|
53
|
+
/* istanbul ignore next */
|
|
54
|
+
lastPage = _e === void 0 ? 1 : _e;
|
|
55
|
+
var PaginationIcon = (0, overrides_1.getComponentOverrides)(overrides === null || overrides === void 0 ? void 0 : overrides.icon, DefaultIcon, {
|
|
56
|
+
overrides: __assign(__assign({}, theme.componentDefaults.paginationItemNext[size]), (0, filter_object_1.filterOutFalsyProperties)(overrides)),
|
|
57
|
+
})[0];
|
|
58
|
+
var propsFromContext = getNextItemProps && getNextItemProps(props);
|
|
59
|
+
var nextPage = Math.min(page + 1, lastPage);
|
|
60
|
+
var href = buildHref && buildHref(nextPage);
|
|
61
|
+
return (react_1.default.createElement(list_item_1.PaginationListItem, { key: "next" },
|
|
62
|
+
react_1.default.createElement(pagination_item_1.PaginationItem
|
|
63
|
+
// @ts-ignore
|
|
64
|
+
, __assign({
|
|
65
|
+
// @ts-ignore
|
|
66
|
+
itemType: itemType, "data-testid": "pagination-next-item", eventOriginator: "pagination-next-item", eventContext: eventContext, pageNumber: nextPage }, propsFromContext, { overrides: overrides, ref: ref, href: href, size: size }),
|
|
67
|
+
children,
|
|
68
|
+
react_1.default.createElement(PaginationIcon, null))));
|
|
69
|
+
});
|
|
70
|
+
//# 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,gDAA0B;AAC1B,wCAAwC;AACxC,wCAAwE;AACxE,yCAAmD;AACnD,0CAAgD;AAChD,2DAAuD;AAEvD,8DAAsE;AACtE,sDAAyE;AAGzE,IAAM,QAAQ,GAAG,oBAA0C,CAAC;AAE5D,IAAM,WAAW,GAAG,UAAC,KAAuB,IAAK,OAAA,CAC/C,8BAAC,8BAAsB,eAAK,KAAK,EAAI,CACtC,EAFgD,CAEhD,CAAC;AAEW,QAAA,kBAAkB,GAAG,eAAK,CAAC,UAAU,CAGhD,UAAC,EAA6C,EAAE,GAAG;IAAjD,IAAA,QAAQ,cAAA,EAAE,SAAS,eAAA,EAAE,YAAY,kBAAA,EAAK,KAAK,cAA5C,yCAA6C,CAAD;IAC7C,IAAM,KAAK,GAAG,IAAA,gBAAQ,GAAE,CAAC;IACnB,IAAA,KASF,IAAA,8BAAoB,GAAE,EARxB,gBAAgB,sBAAA;IAChB,0BAA0B;IAC1B,YAAe;IADf,0BAA0B;IAC1B,IAAI,mBAAG,QAAQ,KAAA,EACf,SAAS,eAAA;IACT,0BAA0B;IAC1B,YAAQ;IADR,0BAA0B;IAC1B,IAAI,mBAAG,CAAC,KAAA;IACR,0BAA0B;IAC1B,gBAAY;IADZ,0BAA0B;IAC1B,QAAQ,mBAAG,CAAC,KACY,CAAC;IAEpB,IAAA,cAAc,GAAI,IAAA,iCAAqB,EAC5C,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,IAAkC,EAC7C,WAAW,EACX;QACE,SAAS,wBACJ,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,IAAI,CAAC,GAChD,IAAA,wCAAwB,EAAC,SAAS,CAAC,CACvC;KACF,CACF,GAToB,CASnB;IAEF,IAAM,gBAAgB,GAAG,gBAAiB,IAAI,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAEtE,IAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,EAAE,QAAQ,CAAC,CAAC;IAC9C,IAAM,IAAI,GAAG,SAAU,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC/C,OAAO,CACL,8BAAC,8BAAkB,IAAC,GAAG,EAAC,MAAM;QAC5B,8BAAC,gCAAc;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,8BAAC,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 PaginationNextItemProps = 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/next-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/next-item/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/pagination/components/prev-item/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./prev-item"), exports);
|
|
14
|
+
__exportStar(require("./types"), exports);
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pagination/components/prev-item/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA4B;AAC5B,0CAAwB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { NewsKitIconProps } from '../../../icons';
|
|
3
|
+
import { Override } from '../../../utils/overrides';
|
|
4
|
+
export declare const PaginationPrevItem: 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=prev-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prev-item.d.ts","sourceRoot":"","sources":["../../../../../src/pagination/components/prev-item/prev-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAwB,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AAMvE,OAAO,EAAwB,QAAQ,EAAC,MAAM,0BAA0B,CAAC;AASzE,eAAO,MAAM,kBAAkB;;;;;;;;;2CAiD7B,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.PaginationPrevItem = void 0;
|
|
29
|
+
var react_1 = __importDefault(require("react"));
|
|
30
|
+
var theme_1 = require("../../../theme");
|
|
31
|
+
var icons_1 = require("../../../icons");
|
|
32
|
+
var context_1 = require("../../context");
|
|
33
|
+
var list_item_1 = require("../list-item");
|
|
34
|
+
var pagination_item_1 = require("../item/pagination-item");
|
|
35
|
+
var filter_object_1 = require("../../../utils/filter-object");
|
|
36
|
+
var overrides_1 = require("../../../utils/overrides");
|
|
37
|
+
var itemType = 'paginationItemPrev';
|
|
38
|
+
var DefaultIcon = function (props) { return (react_1.default.createElement(icons_1.IconFilledChevronLeft, __assign({}, props))); };
|
|
39
|
+
exports.PaginationPrevItem = react_1.default.forwardRef(function (_a, ref) {
|
|
40
|
+
var children = _a.children, overrides = _a.overrides, eventContext = _a.eventContext, props = __rest(_a, ["children", "overrides", "eventContext"]);
|
|
41
|
+
var theme = (0, theme_1.useTheme)();
|
|
42
|
+
var _b = (0, context_1.usePaginationContext)(), getPrevItemProps = _b.getPrevItemProps,
|
|
43
|
+
/* istanbul ignore next */
|
|
44
|
+
_c = _b.size,
|
|
45
|
+
/* istanbul ignore next */
|
|
46
|
+
size = _c === void 0 ? 'medium' : _c, buildHref = _b.buildHref,
|
|
47
|
+
/* istanbul ignore next */
|
|
48
|
+
_d = _b.page,
|
|
49
|
+
/* istanbul ignore next */
|
|
50
|
+
page = _d === void 0 ? 1 : _d;
|
|
51
|
+
var PaginationIcon = (0, overrides_1.getComponentOverrides)(overrides === null || overrides === void 0 ? void 0 : overrides.icon, DefaultIcon, {
|
|
52
|
+
overrides: __assign(__assign({}, theme.componentDefaults.paginationItemPrev[size]), (0, filter_object_1.filterOutFalsyProperties)(overrides)),
|
|
53
|
+
})[0];
|
|
54
|
+
var propsFromContext = getPrevItemProps && getPrevItemProps(props);
|
|
55
|
+
var prevPage = Math.max(page - 1, 1);
|
|
56
|
+
var href = buildHref && buildHref(prevPage);
|
|
57
|
+
return (react_1.default.createElement(list_item_1.PaginationListItem, { key: "prev" },
|
|
58
|
+
react_1.default.createElement(pagination_item_1.PaginationItem
|
|
59
|
+
// @ts-ignore
|
|
60
|
+
, __assign({
|
|
61
|
+
// @ts-ignore
|
|
62
|
+
itemType: itemType, "data-testid": "pagination-prev-item", eventOriginator: "pagination-prev-item", eventContext: eventContext, pageNumber: prevPage }, propsFromContext, { overrides: overrides, ref: ref, href: href, size: size }),
|
|
63
|
+
react_1.default.createElement(PaginationIcon, null),
|
|
64
|
+
children)));
|
|
65
|
+
});
|
|
66
|
+
//# sourceMappingURL=prev-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prev-item.js","sourceRoot":"","sources":["../../../../../src/pagination/components/prev-item/prev-item.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,wCAAwC;AACxC,wCAAuE;AACvE,yCAAmD;AACnD,0CAAgD;AAChD,2DAAuD;AAEvD,8DAAsE;AACtE,sDAAyE;AAGzE,IAAM,QAAQ,GAAG,oBAA0C,CAAC;AAE5D,IAAM,WAAW,GAAG,UAAC,KAAuB,IAAK,OAAA,CAC/C,8BAAC,6BAAqB,eAAK,KAAK,EAAI,CACrC,EAFgD,CAEhD,CAAC;AAEW,QAAA,kBAAkB,GAAG,eAAK,CAAC,UAAU,CAGhD,UAAC,EAA6C,EAAE,GAAG;IAAjD,IAAA,QAAQ,cAAA,EAAE,SAAS,eAAA,EAAE,YAAY,kBAAA,EAAK,KAAK,cAA5C,yCAA6C,CAAD;IAC7C,IAAM,KAAK,GAAG,IAAA,gBAAQ,GAAE,CAAC;IACnB,IAAA,KAOF,IAAA,8BAAoB,GAAE,EANxB,gBAAgB,sBAAA;IAChB,0BAA0B;IAC1B,YAAe;IADf,0BAA0B;IAC1B,IAAI,mBAAG,QAAQ,KAAA,EACf,SAAS,eAAA;IACT,0BAA0B;IAC1B,YAAQ;IADR,0BAA0B;IAC1B,IAAI,mBAAG,CAAC,KACgB,CAAC;IAEpB,IAAA,cAAc,GAAI,IAAA,iCAAqB,EAC5C,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,IAAkC,EAC7C,WAAW,EACX;QACE,SAAS,wBACJ,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,IAAI,CAAC,GAChD,IAAA,wCAAwB,EAAC,SAAS,CAAC,CACvC;KACF,CACF,GAToB,CASnB;IAEF,IAAM,gBAAgB,GAAG,gBAAiB,IAAI,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAEtE,IAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IACvC,IAAM,IAAI,GAAG,SAAU,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC/C,OAAO,CACL,8BAAC,8BAAkB,IAAC,GAAG,EAAC,MAAM;QAC5B,8BAAC,gCAAc;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;YAEV,8BAAC,cAAc,OAAG;YACjB,QAAQ,CACM,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 PaginationPrevItemProps = 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/prev-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/prev-item/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconButtonProps } from '../../button/types';
|
|
3
|
+
import { Optional } from '../../utils/types';
|
|
4
|
+
export declare type PaginationIconButtonProps = Optional<IconButtonProps, 'aria-label'>;
|
|
5
|
+
export declare type PaginationIconButtonWithoutClickProps = Omit<PaginationIconButtonProps, 'onClick'> & {
|
|
6
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement> | KeyboardEvent) => void;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/pagination/components/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAE3C,oBAAY,yBAAyB,GAAG,QAAQ,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;AAEhF,oBAAY,qCAAqC,GAAG,IAAI,CACtD,yBAAyB,EACzB,SAAS,CACV,GAAG;IACF,OAAO,CAAC,EAAE,CACR,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,GAAG,aAAa,KACvD,IAAI,CAAC;CACX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/pagination/components/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PaginationProviderContext } from './types';
|
|
3
|
+
export declare const PaginationContext: import("react").Context<Partial<PaginationProviderContext>>;
|
|
4
|
+
export declare const PaginationProvider: import("react").Provider<Partial<PaginationProviderContext>>;
|
|
5
|
+
export declare const usePaginationContext: () => Partial<PaginationProviderContext>;
|
|
6
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/pagination/context.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,yBAAyB,EAAC,MAAM,SAAS,CAAC;AAElD,eAAO,MAAM,iBAAiB,6DAEzB,CAAC;AAEN,eAAO,MAAM,kBAAkB,8DAA6B,CAAC;AAE7D,eAAO,MAAM,oBAAoB,0CAgBhC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.usePaginationContext = exports.PaginationProvider = exports.PaginationContext = void 0;
|
|
4
|
+
var react_1 = require("react");
|
|
5
|
+
exports.PaginationContext = (0, react_1.createContext)({});
|
|
6
|
+
exports.PaginationProvider = exports.PaginationContext.Provider;
|
|
7
|
+
var usePaginationContext = function () {
|
|
8
|
+
var context = (0, react_1.useContext)(exports.PaginationContext);
|
|
9
|
+
/* istanbul ignore if */
|
|
10
|
+
if (process.env.NODE_ENV !== 'production' &&
|
|
11
|
+
Object.keys(context).length === 0) {
|
|
12
|
+
// eslint-disable-next-line no-console
|
|
13
|
+
console.error('You are using a component which needs to be a child of <Pagination />', context);
|
|
14
|
+
}
|
|
15
|
+
return context;
|
|
16
|
+
};
|
|
17
|
+
exports.usePaginationContext = usePaginationContext;
|
|
18
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../../src/pagination/context.tsx"],"names":[],"mappings":";;;AAAA,+BAAgD;AAGnC,QAAA,iBAAiB,GAAG,IAAA,qBAAa,EAE5C,EAAE,CAAC,CAAC;AAEO,QAAA,kBAAkB,GAAG,yBAAiB,CAAC,QAAQ,CAAC;AAEtD,IAAM,oBAAoB,GAAG;IAClC,IAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,yBAAiB,CAAC,CAAC;IAE9C,wBAAwB;IACxB,IACE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY;QACrC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,EACjC;QACA,sCAAsC;QACtC,OAAO,CAAC,KAAK,CACX,uEAAuE,EACvE,OAAO,CACR,CAAC;KACH;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAhBW,QAAA,oBAAoB,wBAgB/B"}
|