@dnb/eufemia 9.23.0-beta.1 → 9.23.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/cjs/shared/Eufemia.js +1 -1
- package/components/accordion/Accordion.d.ts +226 -132
- package/components/accordion/AccordionContent.d.ts +38 -31
- package/components/accordion/AccordionHeader.d.ts +165 -138
- package/components/accordion/AccordionProvider.d.ts +84 -105
- package/components/autocomplete/Autocomplete.d.ts +561 -200
- package/components/button/Button.d.ts +3 -3
- package/components/checkbox/Checkbox.d.ts +168 -109
- package/components/date-picker/DatePicker.d.ts +383 -193
- package/components/date-picker/DatePickerAddon.d.ts +23 -28
- package/components/date-picker/DatePickerCalendar.d.ts +44 -67
- package/components/date-picker/DatePickerFooter.d.ts +19 -22
- package/components/date-picker/DatePickerInput.d.ts +71 -87
- package/components/date-picker/DatePickerProvider.d.ts +40 -67
- package/components/date-picker/DatePickerRange.d.ts +24 -39
- package/components/dropdown/Dropdown.d.ts +425 -153
- package/components/form-label/FormLabel.d.ts +115 -65
- package/components/form-row/FormRow.d.ts +179 -167
- package/components/form-set/FormSet.d.ts +200 -79
- package/components/form-status/FormStatus.d.ts +202 -142
- package/components/global-error/GlobalError.d.ts +80 -62
- package/components/global-status/GlobalStatus.d.ts +204 -143
- package/components/global-status/GlobalStatusController.d.ts +36 -36
- package/components/heading/Heading.d.ts +151 -87
- package/components/heading/HeadingProvider.d.ts +57 -36
- package/components/help-button/HelpButton.d.ts +236 -32
- package/components/help-button/HelpButtonInstance.d.ts +100 -30
- package/components/icon/Icon.d.ts +123 -135
- package/components/icon-primary/IconPrimary.d.ts +3 -3
- package/components/input/Input.d.ts +294 -208
- package/components/input/InputPassword.d.ts +17 -145
- package/components/input-masked/InputMasked.d.ts +370 -2
- package/components/input-masked/TextMask.d.ts +31 -39
- package/components/lib.d.ts +1 -1
- package/components/logo/Logo.d.ts +90 -54
- package/components/number-format/NumberFormat.d.ts +226 -106
- package/components/pagination/Pagination.d.ts +845 -192
- package/components/pagination/PaginationBar.d.ts +41 -33
- package/components/pagination/PaginationHelpers.d.ts +20 -41
- package/components/pagination/PaginationInfinity.d.ts +44 -70
- package/components/pagination/PaginationProvider.d.ts +86 -74
- package/components/progress-indicator/ProgressIndicator.d.ts +144 -74
- package/components/progress-indicator/ProgressIndicatorCircular.d.ts +38 -33
- package/components/progress-indicator/ProgressIndicatorLinear.d.ts +37 -24
- package/components/radio/Radio.d.ts +121 -91
- package/components/radio/RadioGroup.d.ts +120 -102
- package/components/section/Section.d.ts +0 -1
- package/components/skeleton/Skeleton.d.ts +1 -1
- package/components/skeleton/figures/Article.d.ts +20 -31
- package/components/skeleton/figures/Circle.d.ts +19 -31
- package/components/skeleton/figures/Product.d.ts +20 -31
- package/components/skeleton/figures/Table.d.ts +19 -31
- package/components/slider/Slider.d.ts +228 -128
- package/components/space/Space.d.ts +80 -64
- package/components/step-indicator/StepIndicator.d.ts +168 -73
- package/components/step-indicator/StepIndicatorContext.d.ts +18 -56
- package/components/step-indicator/StepIndicatorItem.d.ts +83 -110
- package/components/step-indicator/StepIndicatorList.d.ts +2 -1
- package/components/step-indicator/StepIndicatorModal.d.ts +2 -1
- package/components/step-indicator/StepIndicatorSidebar.d.ts +58 -52
- package/components/step-indicator/StepIndicatorTriggerButton.d.ts +20 -19
- package/components/switch/Switch.d.ts +162 -101
- package/components/tabs/Tabs.d.ts +208 -169
- package/components/tabs/TabsContentWrapper.d.ts +39 -19
- package/components/tabs/TabsCustomContent.d.ts +87 -34
- package/components/textarea/Textarea.d.ts +220 -126
- package/components/toggle-button/ToggleButton.d.ts +185 -97
- package/components/toggle-button/ToggleButtonGroup.d.ts +169 -105
- package/components/tooltip/Tooltip.d.ts +154 -78
- package/components/tooltip/TooltipContainer.d.ts +69 -51
- package/components/tooltip/TooltipPortal.d.ts +32 -24
- package/components/tooltip/TooltipWithEvents.d.ts +36 -28
- package/elements/Anchor.d.ts +101 -2
- package/elements/Blockquote.d.ts +28 -2
- package/elements/Code.d.ts +28 -2
- package/elements/Dd.d.ts +28 -2
- package/elements/Div.d.ts +1 -1
- package/elements/Dl.d.ts +27 -20
- package/elements/Dt.d.ts +28 -2
- package/elements/Element.d.ts +42 -2
- package/elements/H.d.ts +42 -29
- package/elements/H1.d.ts +37 -24
- package/elements/H2.d.ts +37 -24
- package/elements/H3.d.ts +37 -24
- package/elements/H4.d.ts +37 -24
- package/elements/H5.d.ts +37 -24
- package/elements/H6.d.ts +37 -24
- package/elements/Hr.d.ts +30 -30
- package/elements/Img.d.ts +1 -1
- package/elements/Lead.d.ts +28 -2
- package/elements/Li.d.ts +27 -22
- package/elements/Link.d.ts +1 -1
- package/elements/Ol.d.ts +30 -30
- package/elements/P.d.ts +1 -1
- package/elements/Span.d.ts +28 -2
- package/elements/Table.d.ts +32 -37
- package/elements/Td.d.ts +27 -20
- package/elements/Th.d.ts +27 -20
- package/elements/Tr.d.ts +27 -20
- package/elements/Ul.d.ts +31 -32
- package/elements/lib.d.ts +22 -346
- package/es/shared/Eufemia.js +1 -1
- package/esm/dnb-ui-basis.min.mjs +1 -1
- package/esm/dnb-ui-components.min.mjs +1 -1
- package/esm/dnb-ui-elements.min.mjs +1 -1
- package/esm/dnb-ui-extensions.min.mjs +1 -1
- package/esm/dnb-ui-lib.min.mjs +1 -1
- package/esm/dnb-ui-web-components.min.mjs +1 -1
- package/esm/shared/Eufemia.js +1 -1
- package/extensions/payment-card/PaymentCard.d.ts +129 -92
- package/extensions/payment-card/icons/BankAxept.d.ts +15 -20
- package/extensions/payment-card/icons/Clock.d.ts +12 -20
- package/extensions/payment-card/icons/DNB.d.ts +15 -20
- package/extensions/payment-card/icons/DNBMetalic.d.ts +16 -20
- package/extensions/payment-card/icons/MastercardDefault.d.ts +12 -23
- package/extensions/payment-card/icons/MastercardMetalic.d.ts +11 -17
- package/extensions/payment-card/icons/MastercardMetalicBlack.d.ts +11 -17
- package/extensions/payment-card/icons/PB.d.ts +15 -20
- package/extensions/payment-card/icons/PBPlatinum.d.ts +11 -17
- package/extensions/payment-card/icons/Padlock.d.ts +12 -20
- package/extensions/payment-card/icons/Pluss.d.ts +15 -20
- package/extensions/payment-card/icons/SagaGold.d.ts +11 -17
- package/extensions/payment-card/icons/SagaPlatinum.d.ts +12 -17
- package/extensions/payment-card/icons/SagaVisaPlatinum.d.ts +12 -17
- package/extensions/payment-card/icons/VisaDefault.d.ts +15 -20
- package/extensions/payment-card/icons/VisaMetalic.d.ts +11 -17
- package/fragments/drawer-list/DrawerList.d.ts +131 -133
- package/fragments/drawer-list/DrawerListPortal.d.ts +1 -3
- package/fragments/drawer-list/DrawerListProvider.d.ts +149 -210
- package/package.json +1 -1
- package/shared/AlignmentHelper.d.ts +10 -17
- package/shared/Eufemia.js +1 -1
- package/shared/MediaQuery.d.ts +37 -40
- package/shared/Provider.d.ts +14 -52
- package/umd/dnb-ui-basis.min.js +1 -1
- package/umd/dnb-ui-components.min.js +1 -1
- package/umd/dnb-ui-elements.min.js +1 -1
- package/umd/dnb-ui-extensions.min.js +1 -1
- package/umd/dnb-ui-lib.min.js +1 -1
- package/umd/dnb-ui-web-components.min.js +1 -1
- package/assets/assets/browser/android-chrome-192x192.png +0 -0
- package/assets/assets/browser/android-chrome-512x512.png +0 -0
- package/assets/assets/browser/apple-touch-icon.png +0 -0
- package/assets/assets/browser/browserconfig.xml +0 -9
- package/assets/assets/browser/favicon-16x16.png +0 -0
- package/assets/assets/browser/favicon-32x32.png +0 -0
- package/assets/assets/browser/favicon-48x48.png +0 -0
- package/assets/assets/browser/favicon.ico +0 -0
- package/assets/assets/browser/mstile-150x150.png +0 -0
- package/assets/assets/browser/safari-pinned-tab.svg +0 -8
- package/assets/assets/browser/site.webmanifest +0 -20
- package/assets/assets/elements/anchor/anchor-gfx.svg +0 -4
- package/assets/assets/elements/blockquote/blockquote-gfx.svg +0 -6
- package/assets/assets/elements/drawer-list/check-gfx.svg +0 -5
- package/assets/assets/fonts/DNB-Bold.eot +0 -0
- package/assets/assets/fonts/DNB-Bold.otf +0 -0
- package/assets/assets/fonts/DNB-Bold.ttf +0 -0
- package/assets/assets/fonts/DNB-Bold.woff +0 -0
- package/assets/assets/fonts/DNB-Bold.woff2 +0 -0
- package/assets/assets/fonts/DNB-Light.eot +0 -0
- package/assets/assets/fonts/DNB-Light.otf +0 -0
- package/assets/assets/fonts/DNB-Light.ttf +0 -0
- package/assets/assets/fonts/DNB-Light.woff +0 -0
- package/assets/assets/fonts/DNB-Light.woff2 +0 -0
- package/assets/assets/fonts/DNB-Medium.eot +0 -0
- package/assets/assets/fonts/DNB-Medium.otf +0 -0
- package/assets/assets/fonts/DNB-Medium.ttf +0 -0
- package/assets/assets/fonts/DNB-Medium.woff +0 -0
- package/assets/assets/fonts/DNB-Medium.woff2 +0 -0
- package/assets/assets/fonts/DNB-Regular.eot +0 -0
- package/assets/assets/fonts/DNB-Regular.otf +0 -0
- package/assets/assets/fonts/DNB-Regular.ttf +0 -0
- package/assets/assets/fonts/DNB-Regular.woff +0 -0
- package/assets/assets/fonts/DNB-Regular.woff2 +0 -0
- package/assets/assets/fonts/DNB.zip +0 -0
- package/assets/assets/fonts/DNBMono-Bold.eot +0 -0
- package/assets/assets/fonts/DNBMono-Bold.otf +0 -0
- package/assets/assets/fonts/DNBMono-Bold.ttf +0 -0
- package/assets/assets/fonts/DNBMono-Bold.woff +0 -0
- package/assets/assets/fonts/DNBMono-Bold.woff2 +0 -0
- package/assets/assets/fonts/DNBMono-Light.eot +0 -0
- package/assets/assets/fonts/DNBMono-Light.otf +0 -0
- package/assets/assets/fonts/DNBMono-Light.ttf +0 -0
- package/assets/assets/fonts/DNBMono-Light.woff +0 -0
- package/assets/assets/fonts/DNBMono-Light.woff2 +0 -0
- package/assets/assets/fonts/DNBMono-Medium.eot +0 -0
- package/assets/assets/fonts/DNBMono-Medium.otf +0 -0
- package/assets/assets/fonts/DNBMono-Medium.ttf +0 -0
- package/assets/assets/fonts/DNBMono-Medium.woff +0 -0
- package/assets/assets/fonts/DNBMono-Medium.woff2 +0 -0
- package/assets/assets/fonts/DNBMono-Regular.eot +0 -0
- package/assets/assets/fonts/DNBMono-Regular.otf +0 -0
- package/assets/assets/fonts/DNBMono-Regular.ttf +0 -0
- package/assets/assets/fonts/DNBMono-Regular.woff +0 -0
- package/assets/assets/fonts/DNBMono-Regular.woff2 +0 -0
- package/assets/assets/fonts/DNBMono.zip +0 -0
- package/assets/assets/fonts/skeleton/DNB-Skeleton-Bold.otf +0 -0
- package/assets/assets/fonts/skeleton/DNB-Skeleton-Bold.ttf +0 -0
- package/assets/assets/fonts/skeleton/DNB-Skeleton-Bold.woff +0 -0
- package/assets/assets/fonts/skeleton/DNB-Skeleton-Bold.woff2 +0 -0
- package/assets/assets/fonts/skeleton/DNB-Skeleton-Light.otf +0 -0
- package/assets/assets/fonts/skeleton/DNB-Skeleton-Light.ttf +0 -0
- package/assets/assets/fonts/skeleton/DNB-Skeleton-Light.woff +0 -0
- package/assets/assets/fonts/skeleton/DNB-Skeleton-Light.woff2 +0 -0
- package/assets/assets/fonts/skeleton/DNB-Skeleton-Medium.otf +0 -0
- package/assets/assets/fonts/skeleton/DNB-Skeleton-Medium.ttf +0 -0
- package/assets/assets/fonts/skeleton/DNB-Skeleton-Medium.woff +0 -0
- package/assets/assets/fonts/skeleton/DNB-Skeleton-Medium.woff2 +0 -0
- package/assets/assets/fonts/skeleton/DNB-Skeleton-Regular.otf +0 -0
- package/assets/assets/fonts/skeleton/DNB-Skeleton-Regular.ttf +0 -0
- package/assets/assets/fonts/skeleton/DNB-Skeleton-Regular.woff +0 -0
- package/assets/assets/fonts/skeleton/DNB-Skeleton-Regular.woff2 +0 -0
- package/assets/assets/fonts/skeleton/DNBMono-Skeleton-Bold.otf +0 -0
- package/assets/assets/fonts/skeleton/DNBMono-Skeleton-Bold.ttf +0 -0
- package/assets/assets/fonts/skeleton/DNBMono-Skeleton-Bold.woff +0 -0
- package/assets/assets/fonts/skeleton/DNBMono-Skeleton-Bold.woff2 +0 -0
- package/assets/assets/fonts/skeleton/DNBMono-Skeleton-Light.otf +0 -0
- package/assets/assets/fonts/skeleton/DNBMono-Skeleton-Light.ttf +0 -0
- package/assets/assets/fonts/skeleton/DNBMono-Skeleton-Light.woff +0 -0
- package/assets/assets/fonts/skeleton/DNBMono-Skeleton-Light.woff2 +0 -0
- package/assets/assets/fonts/skeleton/DNBMono-Skeleton-Medium.otf +0 -0
- package/assets/assets/fonts/skeleton/DNBMono-Skeleton-Medium.ttf +0 -0
- package/assets/assets/fonts/skeleton/DNBMono-Skeleton-Medium.woff +0 -0
- package/assets/assets/fonts/skeleton/DNBMono-Skeleton-Medium.woff2 +0 -0
- package/assets/assets/fonts/skeleton/DNBMono-Skeleton-Regular.otf +0 -0
- package/assets/assets/fonts/skeleton/DNBMono-Skeleton-Regular.ttf +0 -0
- package/assets/assets/fonts/skeleton/DNBMono-Skeleton-Regular.woff +0 -0
- package/assets/assets/fonts/skeleton/DNBMono-Skeleton-Regular.woff2 +0 -0
- package/assets/assets/icons/above_the_line.svg +0 -3
- package/assets/assets/icons/above_the_line_medium.svg +0 -3
- package/assets/assets/icons/account.svg +0 -4
- package/assets/assets/icons/account_card.svg +0 -3
- package/assets/assets/icons/account_card_medium.svg +0 -4
- package/assets/assets/icons/account_in.svg +0 -3
- package/assets/assets/icons/account_in_medium.svg +0 -6
- package/assets/assets/icons/account_medium.svg +0 -5
- package/assets/assets/icons/account_out.svg +0 -3
- package/assets/assets/icons/account_out_medium.svg +0 -5
- package/assets/assets/icons/account_percent.svg +0 -5
- package/assets/assets/icons/add.svg +0 -3
- package/assets/assets/icons/add_circled.svg +0 -3
- package/assets/assets/icons/add_circled_medium.svg +0 -3
- package/assets/assets/icons/add_medium.svg +0 -3
- package/assets/assets/icons/ainvoice.svg +0 -3
- package/assets/assets/icons/ainvoice_medium.svg +0 -3
- package/assets/assets/icons/ambulance.svg +0 -3
- package/assets/assets/icons/ambulance_medium.svg +0 -3
- package/assets/assets/icons/animal_print.svg +0 -7
- package/assets/assets/icons/animal_print_medium.svg +0 -7
- package/assets/assets/icons/apple_watch.svg +0 -3
- package/assets/assets/icons/apple_watch_medium.svg +0 -3
- package/assets/assets/icons/arrow_down.svg +0 -3
- package/assets/assets/icons/arrow_down_medium.svg +0 -3
- package/assets/assets/icons/arrow_left.svg +0 -3
- package/assets/assets/icons/arrow_left_medium.svg +0 -3
- package/assets/assets/icons/arrow_right.svg +0 -3
- package/assets/assets/icons/arrow_right_medium.svg +0 -3
- package/assets/assets/icons/arrow_up.svg +0 -3
- package/assets/assets/icons/arrow_up_medium.svg +0 -3
- package/assets/assets/icons/attachment.svg +0 -3
- package/assets/assets/icons/attachment_medium.svg +0 -3
- package/assets/assets/icons/baby.svg +0 -5
- package/assets/assets/icons/baby_medium.svg +0 -5
- package/assets/assets/icons/bandage.svg +0 -5
- package/assets/assets/icons/bandage_medium.svg +0 -7
- package/assets/assets/icons/bank.svg +0 -3
- package/assets/assets/icons/bank_medium.svg +0 -3
- package/assets/assets/icons/bankid.svg +0 -3
- package/assets/assets/icons/bankid_medium.svg +0 -3
- package/assets/assets/icons/bankid_mobile.svg +0 -4
- package/assets/assets/icons/bankid_mobile_medium.svg +0 -5
- package/assets/assets/icons/bankid_qr.svg +0 -3
- package/assets/assets/icons/bankid_qr_medium.svg +0 -3
- package/assets/assets/icons/bell.svg +0 -3
- package/assets/assets/icons/bell_medium.svg +0 -3
- package/assets/assets/icons/bicycle.svg +0 -3
- package/assets/assets/icons/bicycle_medium.svg +0 -3
- package/assets/assets/icons/boat.svg +0 -3
- package/assets/assets/icons/boat_medium.svg +0 -3
- package/assets/assets/icons/bowling.svg +0 -6
- package/assets/assets/icons/bowling_medium.svg +0 -6
- package/assets/assets/icons/brickwall.svg +0 -3
- package/assets/assets/icons/brickwall_medium.svg +0 -3
- package/assets/assets/icons/broken_chain.svg +0 -3
- package/assets/assets/icons/broken_chain_medium.svg +0 -3
- package/assets/assets/icons/brush.svg +0 -3
- package/assets/assets/icons/brush_medium.svg +0 -3
- package/assets/assets/icons/bsu.svg +0 -3
- package/assets/assets/icons/bsu_medium.svg +0 -3
- package/assets/assets/icons/bubble.svg +0 -3
- package/assets/assets/icons/bubble_medium.svg +0 -3
- package/assets/assets/icons/building_construction.svg +0 -3
- package/assets/assets/icons/building_construction_medium.svg +0 -3
- package/assets/assets/icons/calculator.svg +0 -3
- package/assets/assets/icons/calculator_medium.svg +0 -3
- package/assets/assets/icons/calendar.svg +0 -3
- package/assets/assets/icons/calendar_medium.svg +0 -3
- package/assets/assets/icons/camera.svg +0 -4
- package/assets/assets/icons/camera_medium.svg +0 -4
- package/assets/assets/icons/camper_trailer.svg +0 -3
- package/assets/assets/icons/camper_trailer_medium.svg +0 -3
- package/assets/assets/icons/car_1.svg +0 -3
- package/assets/assets/icons/car_1_medium.svg +0 -3
- package/assets/assets/icons/car_2.svg +0 -3
- package/assets/assets/icons/car_2_medium.svg +0 -3
- package/assets/assets/icons/caravan.svg +0 -3
- package/assets/assets/icons/caravan_medium.svg +0 -3
- package/assets/assets/icons/card.svg +0 -3
- package/assets/assets/icons/card_in.svg +0 -3
- package/assets/assets/icons/card_in_medium.svg +0 -3
- package/assets/assets/icons/card_medium.svg +0 -3
- package/assets/assets/icons/card_out.svg +0 -3
- package/assets/assets/icons/card_out_medium.svg +0 -3
- package/assets/assets/icons/card_with_padlock.svg +0 -3
- package/assets/assets/icons/card_with_padlock_medium.svg +0 -4
- package/assets/assets/icons/cat.svg +0 -5
- package/assets/assets/icons/cat_medium.svg +0 -5
- package/assets/assets/icons/chain.svg +0 -3
- package/assets/assets/icons/chain_medium.svg +0 -3
- package/assets/assets/icons/charger.svg +0 -3
- package/assets/assets/icons/charger_medium.svg +0 -3
- package/assets/assets/icons/chat.svg +0 -3
- package/assets/assets/icons/chat_medium.svg +0 -3
- package/assets/assets/icons/chatbot.svg +0 -4
- package/assets/assets/icons/chatbot_medium.svg +0 -4
- package/assets/assets/icons/check.svg +0 -3
- package/assets/assets/icons/check_medium.svg +0 -3
- package/assets/assets/icons/chevron_down.svg +0 -3
- package/assets/assets/icons/chevron_down_medium.svg +0 -3
- package/assets/assets/icons/chevron_left.svg +0 -3
- package/assets/assets/icons/chevron_left_medium.svg +0 -3
- package/assets/assets/icons/chevron_right.svg +0 -3
- package/assets/assets/icons/chevron_right_medium.svg +0 -3
- package/assets/assets/icons/chevron_up.svg +0 -3
- package/assets/assets/icons/chevron_up_medium.svg +0 -3
- package/assets/assets/icons/chip.svg +0 -3
- package/assets/assets/icons/chip_medium.svg +0 -3
- package/assets/assets/icons/clock.svg +0 -3
- package/assets/assets/icons/clock_medium.svg +0 -3
- package/assets/assets/icons/close.svg +0 -3
- package/assets/assets/icons/close_medium.svg +0 -3
- package/assets/assets/icons/cloud.svg +0 -3
- package/assets/assets/icons/cloud_download.svg +0 -3
- package/assets/assets/icons/cloud_download_medium.svg +0 -3
- package/assets/assets/icons/cloud_medium.svg +0 -3
- package/assets/assets/icons/cloud_rain.svg +0 -3
- package/assets/assets/icons/cloud_rain_medium.svg +0 -3
- package/assets/assets/icons/cloud_sync.svg +0 -3
- package/assets/assets/icons/cloud_sync_medium.svg +0 -3
- package/assets/assets/icons/cloud_transfer.svg +0 -3
- package/assets/assets/icons/cloud_transfer_medium.svg +0 -3
- package/assets/assets/icons/cloud_upload.svg +0 -3
- package/assets/assets/icons/cloud_upload_medium.svg +0 -3
- package/assets/assets/icons/cog.svg +0 -4
- package/assets/assets/icons/cog_medium.svg +0 -4
- package/assets/assets/icons/coins_1.svg +0 -3
- package/assets/assets/icons/coins_1_medium.svg +0 -3
- package/assets/assets/icons/coins_2.svg +0 -3
- package/assets/assets/icons/coins_2_medium.svg +0 -3
- package/assets/assets/icons/coins_3.svg +0 -3
- package/assets/assets/icons/coins_3_medium.svg +0 -3
- package/assets/assets/icons/compose.svg +0 -3
- package/assets/assets/icons/compose_medium.svg +0 -3
- package/assets/assets/icons/confetti.svg +0 -3
- package/assets/assets/icons/confetti_medium.svg +0 -3
- package/assets/assets/icons/contacts.svg +0 -3
- package/assets/assets/icons/contacts_medium.svg +0 -3
- package/assets/assets/icons/cookie.svg +0 -6
- package/assets/assets/icons/cookie_medium.svg +0 -8
- package/assets/assets/icons/copy.svg +0 -3
- package/assets/assets/icons/copy_medium.svg +0 -3
- package/assets/assets/icons/credit_note.svg +0 -3
- package/assets/assets/icons/credit_note_medium.svg +0 -3
- package/assets/assets/icons/currency.svg +0 -3
- package/assets/assets/icons/currency_medium.svg +0 -3
- package/assets/assets/icons/customer_service.svg +0 -3
- package/assets/assets/icons/customer_service_medium.svg +0 -3
- package/assets/assets/icons/deleted_invoice.svg +0 -3
- package/assets/assets/icons/deleted_invoice_medium.svg +0 -3
- package/assets/assets/icons/diamond.svg +0 -3
- package/assets/assets/icons/diamond_medium.svg +0 -3
- package/assets/assets/icons/digipass.svg +0 -3
- package/assets/assets/icons/digipass_medium.svg +0 -3
- package/assets/assets/icons/digipost.svg +0 -3
- package/assets/assets/icons/digipost_medium.svg +0 -3
- package/assets/assets/icons/dismiss_keyboard.svg +0 -7
- package/assets/assets/icons/dismiss_keyboard_medium.svg +0 -12
- package/assets/assets/icons/document.svg +0 -3
- package/assets/assets/icons/document_add.svg +0 -3
- package/assets/assets/icons/document_add_medium.svg +0 -3
- package/assets/assets/icons/document_contract.svg +0 -3
- package/assets/assets/icons/document_contract_medium.svg +0 -3
- package/assets/assets/icons/document_csv.svg +0 -6
- package/assets/assets/icons/document_csv_medium.svg +0 -6
- package/assets/assets/icons/document_loupe.svg +0 -3
- package/assets/assets/icons/document_loupe_medium.svg +0 -3
- package/assets/assets/icons/document_medium.svg +0 -3
- package/assets/assets/icons/document_pdf.svg +0 -6
- package/assets/assets/icons/document_pdf_medium.svg +0 -6
- package/assets/assets/icons/document_rejected.svg +0 -3
- package/assets/assets/icons/document_rejected_medium.svg +0 -3
- package/assets/assets/icons/document_signing.svg +0 -3
- package/assets/assets/icons/document_signing_medium.svg +0 -3
- package/assets/assets/icons/document_txt.svg +0 -6
- package/assets/assets/icons/document_txt_medium.svg +0 -6
- package/assets/assets/icons/document_warning.svg +0 -4
- package/assets/assets/icons/document_warning_medium.svg +0 -4
- package/assets/assets/icons/document_word.svg +0 -6
- package/assets/assets/icons/document_word_medium.svg +0 -6
- package/assets/assets/icons/document_xls.svg +0 -6
- package/assets/assets/icons/document_xls_medium.svg +0 -6
- package/assets/assets/icons/dog.svg +0 -5
- package/assets/assets/icons/dog_medium.svg +0 -5
- package/assets/assets/icons/download.svg +0 -3
- package/assets/assets/icons/download_medium.svg +0 -3
- package/assets/assets/icons/edit.svg +0 -3
- package/assets/assets/icons/edit_medium.svg +0 -3
- package/assets/assets/icons/einvoice.svg +0 -3
- package/assets/assets/icons/einvoice_medium.svg +0 -3
- package/assets/assets/icons/email.svg +0 -3
- package/assets/assets/icons/email_medium.svg +0 -3
- package/assets/assets/icons/equities_and_mutual_funds.svg +0 -3
- package/assets/assets/icons/equities_and_mutual_funds_medium.svg +0 -3
- package/assets/assets/icons/eufemia-icons-pdf-categorized.tgz +0 -0
- package/assets/assets/icons/eufemia-icons-pdf.tgz +0 -0
- package/assets/assets/icons/eufemia-icons-xml-categorized.tgz +0 -0
- package/assets/assets/icons/eufemia-icons-xml.tgz +0 -0
- package/assets/assets/icons/exclamation.svg +0 -3
- package/assets/assets/icons/exclamation_circled.svg +0 -3
- package/assets/assets/icons/exclamation_circled_medium.svg +0 -3
- package/assets/assets/icons/exclamation_medium.svg +0 -3
- package/assets/assets/icons/exclamation_triangle.svg +0 -4
- package/assets/assets/icons/exclamation_triangle_medium.svg +0 -4
- package/assets/assets/icons/facebook.svg +0 -3
- package/assets/assets/icons/facebook_medium.svg +0 -3
- package/assets/assets/icons/factory.svg +0 -3
- package/assets/assets/icons/factory_medium.svg +0 -3
- package/assets/assets/icons/file.svg +0 -3
- package/assets/assets/icons/file_add.svg +0 -3
- package/assets/assets/icons/file_add_medium.svg +0 -3
- package/assets/assets/icons/file_contract.svg +0 -3
- package/assets/assets/icons/file_contract_medium.svg +0 -3
- package/assets/assets/icons/file_csv.svg +0 -6
- package/assets/assets/icons/file_csv_medium.svg +0 -6
- package/assets/assets/icons/file_loupe.svg +0 -3
- package/assets/assets/icons/file_loupe_medium.svg +0 -3
- package/assets/assets/icons/file_medium.svg +0 -3
- package/assets/assets/icons/file_pdf.svg +0 -6
- package/assets/assets/icons/file_pdf_medium.svg +0 -6
- package/assets/assets/icons/file_ppt.svg +0 -6
- package/assets/assets/icons/file_ppt_medium.svg +0 -6
- package/assets/assets/icons/file_rejected.svg +0 -3
- package/assets/assets/icons/file_rejected_medium.svg +0 -3
- package/assets/assets/icons/file_signing.svg +0 -3
- package/assets/assets/icons/file_signing_medium.svg +0 -3
- package/assets/assets/icons/file_txt.svg +0 -6
- package/assets/assets/icons/file_txt_medium.svg +0 -6
- package/assets/assets/icons/file_warning.svg +0 -4
- package/assets/assets/icons/file_warning_medium.svg +0 -4
- package/assets/assets/icons/file_word.svg +0 -6
- package/assets/assets/icons/file_word_medium.svg +0 -6
- package/assets/assets/icons/file_xls.svg +0 -6
- package/assets/assets/icons/file_xls_medium.svg +0 -6
- package/assets/assets/icons/file_xml.svg +0 -6
- package/assets/assets/icons/file_xml_medium.svg +0 -6
- package/assets/assets/icons/filter.svg +0 -3
- package/assets/assets/icons/filter_medium.svg +0 -3
- package/assets/assets/icons/first_aid.svg +0 -3
- package/assets/assets/icons/first_aid_medium.svg +0 -3
- package/assets/assets/icons/flying_money.svg +0 -3
- package/assets/assets/icons/flying_money_medium.svg +0 -5
- package/assets/assets/icons/folder.svg +0 -3
- package/assets/assets/icons/folder_medium.svg +0 -3
- package/assets/assets/icons/fridge.svg +0 -3
- package/assets/assets/icons/fridge_medium.svg +0 -3
- package/assets/assets/icons/fullscreen.svg +0 -3
- package/assets/assets/icons/fullscreen_medium.svg +0 -3
- package/assets/assets/icons/fund_in.svg +0 -1
- package/assets/assets/icons/fund_out.svg +0 -1
- package/assets/assets/icons/funds.svg +0 -3
- package/assets/assets/icons/funds_in.svg +0 -3
- package/assets/assets/icons/funds_in_medium.svg +0 -3
- package/assets/assets/icons/funds_medium.svg +0 -3
- package/assets/assets/icons/funds_out.svg +0 -3
- package/assets/assets/icons/funds_out_medium.svg +0 -3
- package/assets/assets/icons/globe.svg +0 -3
- package/assets/assets/icons/globe_medium.svg +0 -3
- package/assets/assets/icons/grabber.svg +0 -3
- package/assets/assets/icons/grabber_medium.svg +0 -3
- package/assets/assets/icons/graph_decrease.svg +0 -3
- package/assets/assets/icons/graph_decrease_medium.svg +0 -3
- package/assets/assets/icons/graph_increase.svg +0 -3
- package/assets/assets/icons/graph_increase_medium.svg +0 -3
- package/assets/assets/icons/hamburger.svg +0 -3
- package/assets/assets/icons/hamburger_medium.svg +0 -3
- package/assets/assets/icons/hand_money.svg +0 -3
- package/assets/assets/icons/hand_money_medium.svg +0 -3
- package/assets/assets/icons/hanger.svg +0 -3
- package/assets/assets/icons/hanger_medium.svg +0 -3
- package/assets/assets/icons/heart.svg +0 -3
- package/assets/assets/icons/heart_medium.svg +0 -3
- package/assets/assets/icons/heart_rate.svg +0 -3
- package/assets/assets/icons/heart_rate_medium.svg +0 -3
- package/assets/assets/icons/hide.svg +0 -3
- package/assets/assets/icons/hide_medium.svg +0 -3
- package/assets/assets/icons/history.svg +0 -3
- package/assets/assets/icons/history_medium.svg +0 -3
- package/assets/assets/icons/home.svg +0 -3
- package/assets/assets/icons/home_medium.svg +0 -3
- package/assets/assets/icons/horse.svg +0 -5
- package/assets/assets/icons/horse_medium.svg +0 -5
- package/assets/assets/icons/hourglass.svg +0 -3
- package/assets/assets/icons/hourglass_medium.svg +0 -3
- package/assets/assets/icons/house_1.svg +0 -3
- package/assets/assets/icons/house_1_medium.svg +0 -3
- package/assets/assets/icons/house_2.svg +0 -3
- package/assets/assets/icons/house_2_medium.svg +0 -3
- package/assets/assets/icons/house_value.svg +0 -5
- package/assets/assets/icons/house_value_medium.svg +0 -5
- package/assets/assets/icons/information.svg +0 -3
- package/assets/assets/icons/information_bubble.svg +0 -5
- package/assets/assets/icons/information_bubble_medium.svg +0 -4
- package/assets/assets/icons/information_circled.svg +0 -4
- package/assets/assets/icons/information_circled_medium.svg +0 -4
- package/assets/assets/icons/information_medium.svg +0 -3
- package/assets/assets/icons/instagram.svg +0 -5
- package/assets/assets/icons/instagram_medium.svg +0 -12
- package/assets/assets/icons/insurance.svg +0 -3
- package/assets/assets/icons/insurance_medium.svg +0 -3
- package/assets/assets/icons/kid_number.svg +0 -3
- package/assets/assets/icons/kid_number_medium.svg +0 -3
- package/assets/assets/icons/language.svg +0 -3
- package/assets/assets/icons/language_medium.svg +0 -3
- package/assets/assets/icons/launch.svg +0 -3
- package/assets/assets/icons/launch_medium.svg +0 -3
- package/assets/assets/icons/leaf.svg +0 -3
- package/assets/assets/icons/leaf_medium.svg +0 -3
- package/assets/assets/icons/lightbulb.svg +0 -3
- package/assets/assets/icons/lightbulb_medium.svg +0 -3
- package/assets/assets/icons/linkedin.svg +0 -3
- package/assets/assets/icons/linkedin_medium.svg +0 -3
- package/assets/assets/icons/list.svg +0 -3
- package/assets/assets/icons/list_medium.svg +0 -3
- package/assets/assets/icons/loan.svg +0 -3
- package/assets/assets/icons/loan_in.svg +0 -3
- package/assets/assets/icons/loan_in_medium.svg +0 -3
- package/assets/assets/icons/loan_medium.svg +0 -3
- package/assets/assets/icons/loan_out.svg +0 -3
- package/assets/assets/icons/loan_out_medium.svg +0 -3
- package/assets/assets/icons/location.svg +0 -3
- package/assets/assets/icons/location_medium.svg +0 -3
- package/assets/assets/icons/log_in.svg +0 -3
- package/assets/assets/icons/log_in_medium.svg +0 -3
- package/assets/assets/icons/log_out.svg +0 -3
- package/assets/assets/icons/log_out_medium.svg +0 -3
- package/assets/assets/icons/loupe.svg +0 -3
- package/assets/assets/icons/loupe_medium.svg +0 -3
- package/assets/assets/icons/mastercard.svg +0 -3
- package/assets/assets/icons/mastercard_card.svg +0 -3
- package/assets/assets/icons/mastercard_card_medium.svg +0 -3
- package/assets/assets/icons/mastercard_medium.svg +0 -3
- package/assets/assets/icons/megaphone.svg +0 -3
- package/assets/assets/icons/megaphone_medium.svg +0 -3
- package/assets/assets/icons/microphone.svg +0 -3
- package/assets/assets/icons/microphone_medium.svg +0 -3
- package/assets/assets/icons/minimize.svg +0 -3
- package/assets/assets/icons/minimize_medium.svg +0 -3
- package/assets/assets/icons/mobilephone.svg +0 -3
- package/assets/assets/icons/mobilephone_medium.svg +0 -3
- package/assets/assets/icons/more.svg +0 -5
- package/assets/assets/icons/more_medium.svg +0 -5
- package/assets/assets/icons/more_vertical.svg +0 -5
- package/assets/assets/icons/more_vertical_medium.svg +0 -5
- package/assets/assets/icons/motorcycle.svg +0 -3
- package/assets/assets/icons/motorcycle_medium.svg +0 -10
- package/assets/assets/icons/move.svg +0 -3
- package/assets/assets/icons/move_medium.svg +0 -3
- package/assets/assets/icons/office_buildings.svg +0 -3
- package/assets/assets/icons/office_buildings_medium.svg +0 -3
- package/assets/assets/icons/oil.svg +0 -3
- package/assets/assets/icons/oil_medium.svg +0 -3
- package/assets/assets/icons/owl.svg +0 -5
- package/assets/assets/icons/owl_medium.svg +0 -5
- package/assets/assets/icons/padlock.svg +0 -3
- package/assets/assets/icons/padlock_medium.svg +0 -3
- package/assets/assets/icons/paperclip.svg +0 -3
- package/assets/assets/icons/paperclip_medium.svg +0 -3
- package/assets/assets/icons/paragraph.svg +0 -3
- package/assets/assets/icons/paragraph_medium.svg +0 -3
- package/assets/assets/icons/pause.svg +0 -4
- package/assets/assets/icons/pause_medium.svg +0 -4
- package/assets/assets/icons/pay_from.svg +0 -3
- package/assets/assets/icons/pay_from_medium.svg +0 -3
- package/assets/assets/icons/pension.svg +0 -3
- package/assets/assets/icons/pension_medium.svg +0 -3
- package/assets/assets/icons/people_1.svg +0 -3
- package/assets/assets/icons/people_1_medium.svg +0 -3
- package/assets/assets/icons/people_2.svg +0 -3
- package/assets/assets/icons/people_2_medium.svg +0 -3
- package/assets/assets/icons/person.svg +0 -3
- package/assets/assets/icons/person_medium.svg +0 -3
- package/assets/assets/icons/person_shield.svg +0 -3
- package/assets/assets/icons/person_shield_medium.svg +0 -3
- package/assets/assets/icons/phone.svg +0 -3
- package/assets/assets/icons/phone_medium.svg +0 -3
- package/assets/assets/icons/photo.svg +0 -4
- package/assets/assets/icons/photo_medium.svg +0 -3
- package/assets/assets/icons/pin.svg +0 -3
- package/assets/assets/icons/pin_code.svg +0 -8
- package/assets/assets/icons/pin_code_medium.svg +0 -8
- package/assets/assets/icons/pin_medium.svg +0 -3
- package/assets/assets/icons/plant.svg +0 -3
- package/assets/assets/icons/plant_medium.svg +0 -3
- package/assets/assets/icons/play.svg +0 -3
- package/assets/assets/icons/play_medium.svg +0 -3
- package/assets/assets/icons/printer.svg +0 -3
- package/assets/assets/icons/printer_medium.svg +0 -3
- package/assets/assets/icons/products_account_percent_medium.svg +0 -4
- package/assets/assets/icons/profile.svg +0 -3
- package/assets/assets/icons/profile_medium.svg +0 -3
- package/assets/assets/icons/progress.svg +0 -5
- package/assets/assets/icons/progress_medium.svg +0 -3
- package/assets/assets/icons/question.svg +0 -3
- package/assets/assets/icons/question_circled.svg +0 -3
- package/assets/assets/icons/question_circled_medium.svg +0 -3
- package/assets/assets/icons/question_medium.svg +0 -3
- package/assets/assets/icons/recurring.svg +0 -3
- package/assets/assets/icons/recurring_medium.svg +0 -3
- package/assets/assets/icons/redo.svg +0 -3
- package/assets/assets/icons/redo_medium.svg +0 -3
- package/assets/assets/icons/ref_number.svg +0 -3
- package/assets/assets/icons/ref_number_medium.svg +0 -3
- package/assets/assets/icons/refresh.svg +0 -3
- package/assets/assets/icons/refresh_medium.svg +0 -3
- package/assets/assets/icons/reply.svg +0 -3
- package/assets/assets/icons/reply_medium.svg +0 -3
- package/assets/assets/icons/reset.svg +0 -3
- package/assets/assets/icons/reset_medium.svg +0 -3
- package/assets/assets/icons/restaurant.svg +0 -3
- package/assets/assets/icons/restaurant_medium.svg +0 -3
- package/assets/assets/icons/return_1.svg +0 -3
- package/assets/assets/icons/return_1_medium.svg +0 -3
- package/assets/assets/icons/save.svg +0 -3
- package/assets/assets/icons/save_medium.svg +0 -3
- package/assets/assets/icons/savings_account.svg +0 -4
- package/assets/assets/icons/savings_account_in.svg +0 -3
- package/assets/assets/icons/savings_account_in_medium.svg +0 -3
- package/assets/assets/icons/savings_account_medium.svg +0 -4
- package/assets/assets/icons/savings_account_out.svg +0 -3
- package/assets/assets/icons/savings_account_out_medium.svg +0 -3
- package/assets/assets/icons/scissors.svg +0 -3
- package/assets/assets/icons/scissors_medium.svg +0 -3
- package/assets/assets/icons/scooter.svg +0 -3
- package/assets/assets/icons/scooter_medium.svg +0 -10
- package/assets/assets/icons/send.svg +0 -3
- package/assets/assets/icons/send_medium.svg +0 -3
- package/assets/assets/icons/share_android.svg +0 -3
- package/assets/assets/icons/share_android_medium.svg +0 -3
- package/assets/assets/icons/share_ios.svg +0 -3
- package/assets/assets/icons/share_ios_medium.svg +0 -3
- package/assets/assets/icons/shield.svg +0 -3
- package/assets/assets/icons/shield_medium.svg +0 -3
- package/assets/assets/icons/shopping_cart.svg +0 -5
- package/assets/assets/icons/shopping_cart_medium.svg +0 -5
- package/assets/assets/icons/snowmobile.svg +0 -3
- package/assets/assets/icons/snowmobile_medium.svg +0 -3
- package/assets/assets/icons/speedometer.svg +0 -3
- package/assets/assets/icons/speedometer_medium.svg +0 -10
- package/assets/assets/icons/split.svg +0 -3
- package/assets/assets/icons/split_medium.svg +0 -3
- package/assets/assets/icons/star.svg +0 -3
- package/assets/assets/icons/star_medium.svg +0 -3
- package/assets/assets/icons/stocks.svg +0 -3
- package/assets/assets/icons/stocks_medium.svg +0 -3
- package/assets/assets/icons/stop.svg +0 -3
- package/assets/assets/icons/stop_medium.svg +0 -3
- package/assets/assets/icons/stopwatch.svg +0 -3
- package/assets/assets/icons/stopwatch_medium.svg +0 -3
- package/assets/assets/icons/subtract.svg +0 -3
- package/assets/assets/icons/subtract_circled.svg +0 -3
- package/assets/assets/icons/subtract_circled_medium.svg +0 -3
- package/assets/assets/icons/subtract_medium.svg +0 -3
- package/assets/assets/icons/support.svg +0 -3
- package/assets/assets/icons/support_medium.svg +0 -3
- package/assets/assets/icons/swap.svg +0 -3
- package/assets/assets/icons/swap_medium.svg +0 -3
- package/assets/assets/icons/tag.svg +0 -4
- package/assets/assets/icons/tag_medium.svg +0 -4
- package/assets/assets/icons/thumbs_down.svg +0 -3
- package/assets/assets/icons/thumbs_down_medium.svg +0 -3
- package/assets/assets/icons/thumbs_up.svg +0 -3
- package/assets/assets/icons/thumbs_up_medium.svg +0 -3
- package/assets/assets/icons/tractor.svg +0 -3
- package/assets/assets/icons/tractor_medium.svg +0 -3
- package/assets/assets/icons/trailer.svg +0 -3
- package/assets/assets/icons/trailer_medium.svg +0 -3
- package/assets/assets/icons/train.svg +0 -3
- package/assets/assets/icons/train_medium.svg +0 -3
- package/assets/assets/icons/transfer.svg +0 -3
- package/assets/assets/icons/transfer_medium.svg +0 -3
- package/assets/assets/icons/transfer_to.svg +0 -3
- package/assets/assets/icons/transfer_to_medium.svg +0 -3
- package/assets/assets/icons/trash.svg +0 -3
- package/assets/assets/icons/trash_medium.svg +0 -3
- package/assets/assets/icons/travel.svg +0 -3
- package/assets/assets/icons/travel_medium.svg +0 -3
- package/assets/assets/icons/undo.svg +0 -3
- package/assets/assets/icons/undo_medium.svg +0 -3
- package/assets/assets/icons/upload.svg +0 -3
- package/assets/assets/icons/upload_medium.svg +0 -3
- package/assets/assets/icons/video.svg +0 -3
- package/assets/assets/icons/video_medium.svg +0 -3
- package/assets/assets/icons/view.svg +0 -4
- package/assets/assets/icons/view_medium.svg +0 -4
- package/assets/assets/icons/vintage_car.svg +0 -3
- package/assets/assets/icons/vintage_car_medium.svg +0 -3
- package/assets/assets/icons/volume_off.svg +0 -3
- package/assets/assets/icons/volume_off_medium.svg +0 -3
- package/assets/assets/icons/volume_on.svg +0 -3
- package/assets/assets/icons/volume_on_medium.svg +0 -3
- package/assets/assets/icons/wallet.svg +0 -3
- package/assets/assets/icons/wallet_medium.svg +0 -4
- package/assets/assets/icons/wearables.svg +0 -3
- package/assets/assets/icons/wearables_medium.svg +0 -3
- package/assets/assets/icons/web.svg +0 -3
- package/assets/assets/icons/web_medium.svg +0 -3
- package/assets/assets/icons/wheelchair.svg +0 -3
- package/assets/assets/icons/wheelchair_medium.svg +0 -3
- package/assets/assets/icons/widget_android.svg +0 -6
- package/assets/assets/icons/widget_android_medium.svg +0 -6
- package/assets/assets/icons/widget_ios.svg +0 -3
- package/assets/assets/icons/widget_ios_medium.svg +0 -3
- package/assets/assets/images/dnb-icon.png +0 -0
- package/assets/assets/images/dnb-logo.png +0 -0
|
@@ -1,198 +1,851 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type PaginationStartupPage = string | number;
|
|
3
|
+
export type PaginationCurrentPage = string | number;
|
|
4
|
+
export type PaginationPageCount = string | number;
|
|
5
|
+
export type PaginationStartupCount = string | number;
|
|
6
|
+
export type PaginationParallelLoadCount = string | number;
|
|
7
|
+
export type PaginationPlaceMakerBeforeContent = string | boolean;
|
|
8
|
+
export type PaginationMinWaitTime = string | number;
|
|
9
|
+
export type PaginationDisabled = string | boolean;
|
|
10
|
+
export type PaginationSkeleton = string | boolean;
|
|
11
|
+
export type PaginationMode = 'pagination' | 'infinity';
|
|
12
|
+
export type PaginationUseLoadButton = string | boolean;
|
|
13
|
+
export type PaginationItems = string | any[];
|
|
14
|
+
export type PaginationHideProgressIndicator = string | boolean;
|
|
15
|
+
export type PaginationSetContentHandler =
|
|
16
|
+
| string
|
|
17
|
+
| ((...args: any[]) => any);
|
|
18
|
+
export type PaginationResetContentHandler =
|
|
19
|
+
| string
|
|
20
|
+
| ((...args: any[]) => any);
|
|
21
|
+
export type PaginationResetPaginationHandler =
|
|
22
|
+
| string
|
|
23
|
+
| ((...args: any[]) => any);
|
|
24
|
+
export type PaginationEndInfinityHandler =
|
|
25
|
+
| string
|
|
26
|
+
| ((...args: any[]) => any);
|
|
27
|
+
export type PaginationPageElement =
|
|
28
|
+
| Object
|
|
29
|
+
| React.ReactNode
|
|
30
|
+
| ((...args: any[]) => any)
|
|
31
|
+
| string;
|
|
32
|
+
export type PaginationFallbackElement =
|
|
33
|
+
| Object
|
|
34
|
+
| React.ReactNode
|
|
35
|
+
| ((...args: any[]) => any)
|
|
36
|
+
| string;
|
|
37
|
+
export type PaginationMarkerElement =
|
|
38
|
+
| Object
|
|
39
|
+
| React.ReactNode
|
|
40
|
+
| ((...args: any[]) => any)
|
|
41
|
+
| string;
|
|
42
|
+
export type PaginationIndicatorElement =
|
|
43
|
+
| React.ReactNode
|
|
44
|
+
| ((...args: any[]) => any)
|
|
45
|
+
| string;
|
|
46
|
+
export type PaginationSpace =
|
|
47
|
+
| string
|
|
48
|
+
| number
|
|
49
|
+
| boolean
|
|
50
|
+
| {
|
|
51
|
+
/**
|
|
52
|
+
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. Will use `margin-top`.
|
|
53
|
+
*/
|
|
54
|
+
top?: string | number | boolean;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. will use `margin-right`.
|
|
58
|
+
*/
|
|
59
|
+
right?: string | number | boolean;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. will use `margin-bottom`.
|
|
63
|
+
*/
|
|
64
|
+
bottom?: string | number | boolean;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. will use `margin-left`.
|
|
68
|
+
*/
|
|
69
|
+
left?: string | number | boolean;
|
|
50
70
|
};
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
71
|
+
export type PaginationTop = string | number | boolean;
|
|
72
|
+
export type PaginationRight = string | number | boolean;
|
|
73
|
+
export type PaginationBottom = string | number | boolean;
|
|
74
|
+
export type PaginationLeft = string | number | boolean;
|
|
75
|
+
export type PaginationChildren =
|
|
76
|
+
| React.ReactNode
|
|
77
|
+
| ((...args: any[]) => any);
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* NB: Do not change the docs (comments) in here. The docs are updated during build time by "generateTypes.js" and "fetchPropertiesFromDocs.js".
|
|
81
|
+
*/
|
|
82
|
+
export interface PaginationProps extends React.HTMLProps<HTMLElement> {
|
|
83
|
+
debug?: boolean;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The page shown in the very beginning. If `current_page` is set, then it may not make too much sense to set this as well.
|
|
87
|
+
*/
|
|
88
|
+
startup_page?: PaginationStartupPage;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* The page shown at the moment the component renders. Defaults to `1`.
|
|
92
|
+
*/
|
|
93
|
+
current_page?: PaginationCurrentPage;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* The total pages count. Defaults to `1`.
|
|
97
|
+
*/
|
|
98
|
+
page_count?: PaginationPageCount;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Defines how many `infinity` pages should be loaded / shown on the first render. Defaults to `1`.
|
|
102
|
+
*/
|
|
103
|
+
startup_count?: PaginationStartupCount;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Defines how many `infinity` pages should be loaded / shown once the user scrolls down. Defaults to `1`.
|
|
107
|
+
*/
|
|
108
|
+
parallel_load_count?: PaginationParallelLoadCount;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* If set to `true`, the infinity marker will be placed before the content (on top off). This could potentially have negative side effects. But it depends really on the content if this would make more sense to use instead. Defaults to `false`.
|
|
112
|
+
*/
|
|
113
|
+
place_maker_before_content?: PaginationPlaceMakerBeforeContent;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* The minimum time to wait, if the infinity scroll was invoked under that time threshold. This prevents not intentional infinity scroll loop calls. Defaults to `400` milliseconds.
|
|
117
|
+
*/
|
|
118
|
+
min_wait_time?: PaginationMinWaitTime;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* If set to `true`, all pagination bar buttons are disabled.
|
|
122
|
+
*/
|
|
123
|
+
disabled?: PaginationDisabled;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* If set to `true`, an overlaying skeleton with animation will be shown.
|
|
127
|
+
*/
|
|
128
|
+
skeleton?: PaginationSkeleton;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* If set to `infinity`, then the pagination bar will be now shown and but infinity scrolling will do the content presentation. For more information, check out the <a href="https://eufemia.dnb.no/uilib/components/pagination/infinity-scroller">Infinity Scroller</a>. Defaults to `pagination`.
|
|
132
|
+
*/
|
|
133
|
+
mode?: PaginationMode;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* If set to `true` it will disable the automated infinity scrolling, but shows a load more button at the of the content instead.
|
|
137
|
+
*/
|
|
138
|
+
use_load_button?: PaginationUseLoadButton;
|
|
139
|
+
items?: PaginationItems;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* If set to `true` no indicator will be shown.
|
|
143
|
+
*/
|
|
144
|
+
hide_progress_indicator?: PaginationHideProgressIndicator;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Callback function to get the `setContent` handler from the current pagination instance. e.g. `set_content_handler={fn => (...)}`. Use this handler to insert content during infinity mode.
|
|
148
|
+
*/
|
|
149
|
+
set_content_handler?: PaginationSetContentHandler;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Callback function to get the `resetContent` handler from the current pagination instance. e.g. `reset_content_handler={fn => (...)}`. Use this handler to reset all the content. You can set it to `true`, to programmatically reset the content.
|
|
153
|
+
*/
|
|
154
|
+
reset_content_handler?: PaginationResetContentHandler;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Callback function to get the `resetInfinity` handler from the current pagination instance. e.g. `reset_pagination_handler={fn => (...)}`. Use this handler to reset all the internal states. You can set it to `true`, to programmatically reset the states.
|
|
158
|
+
*/
|
|
159
|
+
reset_pagination_handler?: PaginationResetPaginationHandler;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Callback function to get the `endInfinity` handler from the current pagination instance. e.g. `end_infinity_handler={fn => (...)}`. Use this handler to end the infinity scrolling procedure, in case the `page_count` is unknown.
|
|
163
|
+
*/
|
|
164
|
+
end_infinity_handler?: PaginationEndInfinityHandler;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* By default a `<div>` is used. Set it to any element you have to use. Adds also a class: `dnb-pagination__page` shown.
|
|
168
|
+
*/
|
|
169
|
+
page_element?: PaginationPageElement;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* (infinity mode) is used by the <em>indicator</em>, <em>load more</em> bar as well as by the marker. Defaults to a `div`.
|
|
173
|
+
*/
|
|
174
|
+
fallback_element?: PaginationFallbackElement;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* (infinity mode) is used by the internal marker. Falls back to `fallback_element` if not defined.
|
|
178
|
+
*/
|
|
179
|
+
marker_element?: PaginationMarkerElement;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* (infinity mode) is used by the <em>indicator</em>. Falls back to `fallback_element` if not defined.
|
|
183
|
+
*/
|
|
184
|
+
indicator_element?: PaginationIndicatorElement;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Define the alignment of the pagination button bar. Can be `center`, `left` or `right`. Defaults to `left`.
|
|
188
|
+
*/
|
|
189
|
+
align?: string;
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* The title used in every button shown in the bar. Defaults to `Side %s`.
|
|
193
|
+
*/
|
|
194
|
+
button_title?: string;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* The title used in the previous page button. Defaults to `Forrige side`.
|
|
198
|
+
*/
|
|
199
|
+
prev_title?: string;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* The title used in the next page button. Defaults to `Neste side`.
|
|
203
|
+
*/
|
|
204
|
+
next_title?: string;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* The title used in the dots. Relevant for screen-readers. Defaults to `%s flere sider`.
|
|
208
|
+
*/
|
|
209
|
+
more_pages?: string;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Shown until new content is inserted in to the page. Defaults to `Laster nytt innhold`.
|
|
213
|
+
*/
|
|
214
|
+
is_loading_text?: string;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Used during infinity mode. If `use_load_button` is set to true, then a button is show on the bottom. If the `startup_page` is higher than 1. Defaults to `Vis mer innhold`.
|
|
218
|
+
*/
|
|
219
|
+
load_button_text?: string;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Has to be an object with either: `top`, `right`, `bottom` or `left`. Use spacing values like: `small`, `1rem`, `1` or , `16px`.
|
|
223
|
+
*/
|
|
224
|
+
space?: PaginationSpace;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. Will use `margin-top`.
|
|
228
|
+
*/
|
|
229
|
+
top?: PaginationTop;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. will use `margin-right`.
|
|
233
|
+
*/
|
|
234
|
+
right?: PaginationRight;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. will use `margin-bottom`.
|
|
238
|
+
*/
|
|
239
|
+
bottom?: PaginationBottom;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. will use `margin-left`.
|
|
243
|
+
*/
|
|
244
|
+
left?: PaginationLeft;
|
|
245
|
+
class?: string;
|
|
246
|
+
className?: string;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* The given content can be either a function or a React node, depending on your needs. A function contains several helper functions. More details down below and have a look at the examples in the demos section.
|
|
250
|
+
*/
|
|
251
|
+
children?: PaginationChildren;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Will be called for every page change, regardless if the mode is `mode="infinity"` or not. Returns an object with number of useful properties and methods. See below for more details.
|
|
255
|
+
*/
|
|
256
|
+
on_change?: (...args: any[]) => any;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Only on "infinity" mode. Will be called once the component is ready for interaction. Returns an object with number of useful properties and methods. See below for more details. "NB:" Will be called again as soon as we reset the content by calling `resetContent()`.
|
|
260
|
+
*/
|
|
261
|
+
on_startup?: (...args: any[]) => any;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Only on "infinity" mode. Will be called on every page interaction, also on the very first interaction. Returns an object with number of useful properties and methods. See below for more details.
|
|
265
|
+
*/
|
|
266
|
+
on_load?: (...args: any[]) => any;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Only on "infinity" mode. Will be called once `page_count` is reached or `endInfinity` was called.
|
|
270
|
+
*/
|
|
271
|
+
on_end?: (...args: any[]) => any;
|
|
90
272
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
273
|
+
export default class Pagination extends React.Component<
|
|
274
|
+
PaginationProps,
|
|
275
|
+
any
|
|
276
|
+
> {
|
|
277
|
+
static defaultProps: object;
|
|
278
|
+
render(): JSX.Element;
|
|
94
279
|
}
|
|
95
|
-
export
|
|
96
|
-
export
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
280
|
+
export type PaginationInstanceStartupPage = string | number;
|
|
281
|
+
export type PaginationInstanceCurrentPage = string | number;
|
|
282
|
+
export type PaginationInstancePageCount = string | number;
|
|
283
|
+
export type PaginationInstanceStartupCount = string | number;
|
|
284
|
+
export type PaginationInstanceParallelLoadCount = string | number;
|
|
285
|
+
export type PaginationInstancePlaceMakerBeforeContent = string | boolean;
|
|
286
|
+
export type PaginationInstanceMinWaitTime = string | number;
|
|
287
|
+
export type PaginationInstanceDisabled = string | boolean;
|
|
288
|
+
export type PaginationInstanceSkeleton = string | boolean;
|
|
289
|
+
export type PaginationInstanceMode = 'pagination' | 'infinity';
|
|
290
|
+
export type PaginationInstanceUseLoadButton = string | boolean;
|
|
291
|
+
export type PaginationInstanceItems = string | any[];
|
|
292
|
+
export type PaginationInstanceHideProgressIndicator = string | boolean;
|
|
293
|
+
export type PaginationInstanceSetContentHandler =
|
|
294
|
+
| string
|
|
295
|
+
| ((...args: any[]) => any);
|
|
296
|
+
export type PaginationInstanceResetContentHandler =
|
|
297
|
+
| string
|
|
298
|
+
| ((...args: any[]) => any);
|
|
299
|
+
export type PaginationInstanceResetPaginationHandler =
|
|
300
|
+
| string
|
|
301
|
+
| ((...args: any[]) => any);
|
|
302
|
+
export type PaginationInstanceEndInfinityHandler =
|
|
303
|
+
| string
|
|
304
|
+
| ((...args: any[]) => any);
|
|
305
|
+
export type PaginationInstancePageElement =
|
|
306
|
+
| Object
|
|
307
|
+
| React.ReactNode
|
|
308
|
+
| ((...args: any[]) => any)
|
|
309
|
+
| string;
|
|
310
|
+
export type PaginationInstanceFallbackElement =
|
|
311
|
+
| Object
|
|
312
|
+
| React.ReactNode
|
|
313
|
+
| ((...args: any[]) => any)
|
|
314
|
+
| string;
|
|
315
|
+
export type PaginationInstanceMarkerElement =
|
|
316
|
+
| Object
|
|
317
|
+
| React.ReactNode
|
|
318
|
+
| ((...args: any[]) => any)
|
|
319
|
+
| string;
|
|
320
|
+
export type PaginationInstanceIndicatorElement =
|
|
321
|
+
| React.ReactNode
|
|
322
|
+
| ((...args: any[]) => any)
|
|
323
|
+
| string;
|
|
324
|
+
export type PaginationInstanceSpace =
|
|
325
|
+
| string
|
|
326
|
+
| number
|
|
327
|
+
| boolean
|
|
328
|
+
| {
|
|
329
|
+
/**
|
|
330
|
+
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. Will use `margin-top`.
|
|
331
|
+
*/
|
|
332
|
+
top?: string | number | boolean;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. will use `margin-right`.
|
|
336
|
+
*/
|
|
337
|
+
right?: string | number | boolean;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. will use `margin-bottom`.
|
|
341
|
+
*/
|
|
342
|
+
bottom?: string | number | boolean;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. will use `margin-left`.
|
|
346
|
+
*/
|
|
347
|
+
left?: string | number | boolean;
|
|
145
348
|
};
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
349
|
+
export type PaginationInstanceTop = string | number | boolean;
|
|
350
|
+
export type PaginationInstanceRight = string | number | boolean;
|
|
351
|
+
export type PaginationInstanceBottom = string | number | boolean;
|
|
352
|
+
export type PaginationInstanceLeft = string | number | boolean;
|
|
353
|
+
export type PaginationInstanceChildren =
|
|
354
|
+
| React.ReactNode
|
|
355
|
+
| ((...args: any[]) => any);
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* NB: Do not change the docs (comments) in here. The docs are updated during build time by "generateTypes.js" and "fetchPropertiesFromDocs.js".
|
|
359
|
+
*/
|
|
360
|
+
export interface PaginationInstanceProps {
|
|
361
|
+
debug?: boolean;
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* The page shown in the very beginning. If `current_page` is set, then it may not make too much sense to set this as well.
|
|
365
|
+
*/
|
|
366
|
+
startup_page?: PaginationInstanceStartupPage;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* The page shown at the moment the component renders. Defaults to `1`.
|
|
370
|
+
*/
|
|
371
|
+
current_page?: PaginationInstanceCurrentPage;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* The total pages count. Defaults to `1`.
|
|
375
|
+
*/
|
|
376
|
+
page_count?: PaginationInstancePageCount;
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Defines how many `infinity` pages should be loaded / shown on the first render. Defaults to `1`.
|
|
380
|
+
*/
|
|
381
|
+
startup_count?: PaginationInstanceStartupCount;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Defines how many `infinity` pages should be loaded / shown once the user scrolls down. Defaults to `1`.
|
|
385
|
+
*/
|
|
386
|
+
parallel_load_count?: PaginationInstanceParallelLoadCount;
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* If set to `true`, the infinity marker will be placed before the content (on top off). This could potentially have negative side effects. But it depends really on the content if this would make more sense to use instead. Defaults to `false`.
|
|
390
|
+
*/
|
|
391
|
+
place_maker_before_content?: PaginationInstancePlaceMakerBeforeContent;
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* The minimum time to wait, if the infinity scroll was invoked under that time threshold. This prevents not intentional infinity scroll loop calls. Defaults to `400` milliseconds.
|
|
395
|
+
*/
|
|
396
|
+
min_wait_time?: PaginationInstanceMinWaitTime;
|
|
397
|
+
|
|
398
|
+
/**
|
|
399
|
+
* If set to `true`, all pagination bar buttons are disabled.
|
|
400
|
+
*/
|
|
401
|
+
disabled?: PaginationInstanceDisabled;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* If set to `true`, an overlaying skeleton with animation will be shown.
|
|
405
|
+
*/
|
|
406
|
+
skeleton?: PaginationInstanceSkeleton;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* If set to `infinity`, then the pagination bar will be now shown and but infinity scrolling will do the content presentation. For more information, check out the <a href="https://eufemia.dnb.no/uilib/components/pagination/infinity-scroller">Infinity Scroller</a>. Defaults to `pagination`.
|
|
410
|
+
*/
|
|
411
|
+
mode?: PaginationInstanceMode;
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* If set to `true` it will disable the automated infinity scrolling, but shows a load more button at the of the content instead.
|
|
415
|
+
*/
|
|
416
|
+
use_load_button?: PaginationInstanceUseLoadButton;
|
|
417
|
+
items?: PaginationInstanceItems;
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* If set to `true` no indicator will be shown.
|
|
421
|
+
*/
|
|
422
|
+
hide_progress_indicator?: PaginationInstanceHideProgressIndicator;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Callback function to get the `setContent` handler from the current pagination instance. e.g. `set_content_handler={fn => (...)}`. Use this handler to insert content during infinity mode.
|
|
426
|
+
*/
|
|
427
|
+
set_content_handler?: PaginationInstanceSetContentHandler;
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* Callback function to get the `resetContent` handler from the current pagination instance. e.g. `reset_content_handler={fn => (...)}`. Use this handler to reset all the content. You can set it to `true`, to programmatically reset the content.
|
|
431
|
+
*/
|
|
432
|
+
reset_content_handler?: PaginationInstanceResetContentHandler;
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Callback function to get the `resetInfinity` handler from the current pagination instance. e.g. `reset_pagination_handler={fn => (...)}`. Use this handler to reset all the internal states. You can set it to `true`, to programmatically reset the states.
|
|
436
|
+
*/
|
|
437
|
+
reset_pagination_handler?: PaginationInstanceResetPaginationHandler;
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* Callback function to get the `endInfinity` handler from the current pagination instance. e.g. `end_infinity_handler={fn => (...)}`. Use this handler to end the infinity scrolling procedure, in case the `page_count` is unknown.
|
|
441
|
+
*/
|
|
442
|
+
end_infinity_handler?: PaginationInstanceEndInfinityHandler;
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* By default a `<div>` is used. Set it to any element you have to use. Adds also a class: `dnb-pagination__page` shown.
|
|
446
|
+
*/
|
|
447
|
+
page_element?: PaginationInstancePageElement;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* (infinity mode) is used by the <em>indicator</em>, <em>load more</em> bar as well as by the marker. Defaults to a `div`.
|
|
451
|
+
*/
|
|
452
|
+
fallback_element?: PaginationInstanceFallbackElement;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* (infinity mode) is used by the internal marker. Falls back to `fallback_element` if not defined.
|
|
456
|
+
*/
|
|
457
|
+
marker_element?: PaginationInstanceMarkerElement;
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* (infinity mode) is used by the <em>indicator</em>. Falls back to `fallback_element` if not defined.
|
|
461
|
+
*/
|
|
462
|
+
indicator_element?: PaginationInstanceIndicatorElement;
|
|
463
|
+
|
|
464
|
+
/**
|
|
465
|
+
* Define the alignment of the pagination button bar. Can be `center`, `left` or `right`. Defaults to `left`.
|
|
466
|
+
*/
|
|
467
|
+
align?: string;
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
* The title used in every button shown in the bar. Defaults to `Side %s`.
|
|
471
|
+
*/
|
|
472
|
+
button_title?: string;
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* The title used in the previous page button. Defaults to `Forrige side`.
|
|
476
|
+
*/
|
|
477
|
+
prev_title?: string;
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* The title used in the next page button. Defaults to `Neste side`.
|
|
481
|
+
*/
|
|
482
|
+
next_title?: string;
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* The title used in the dots. Relevant for screen-readers. Defaults to `%s flere sider`.
|
|
486
|
+
*/
|
|
487
|
+
more_pages?: string;
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Shown until new content is inserted in to the page. Defaults to `Laster nytt innhold`.
|
|
491
|
+
*/
|
|
492
|
+
is_loading_text?: string;
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* Used during infinity mode. If `use_load_button` is set to true, then a button is show on the bottom. If the `startup_page` is higher than 1. Defaults to `Vis mer innhold`.
|
|
496
|
+
*/
|
|
497
|
+
load_button_text?: string;
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* Has to be an object with either: `top`, `right`, `bottom` or `left`. Use spacing values like: `small`, `1rem`, `1` or , `16px`.
|
|
501
|
+
*/
|
|
502
|
+
space?: PaginationInstanceSpace;
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. Will use `margin-top`.
|
|
506
|
+
*/
|
|
507
|
+
top?: PaginationInstanceTop;
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. will use `margin-right`.
|
|
511
|
+
*/
|
|
512
|
+
right?: PaginationInstanceRight;
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. will use `margin-bottom`.
|
|
516
|
+
*/
|
|
517
|
+
bottom?: PaginationInstanceBottom;
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. will use `margin-left`.
|
|
521
|
+
*/
|
|
522
|
+
left?: PaginationInstanceLeft;
|
|
523
|
+
class?: string;
|
|
524
|
+
className?: string;
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* The given content can be either a function or a React node, depending on your needs. A function contains several helper functions. More details down below and have a look at the examples in the demos section.
|
|
528
|
+
*/
|
|
529
|
+
children?: PaginationInstanceChildren;
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* Will be called for every page change, regardless if the mode is `mode="infinity"` or not. Returns an object with number of useful properties and methods. See below for more details.
|
|
533
|
+
*/
|
|
534
|
+
on_change?: (...args: any[]) => any;
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Only on "infinity" mode. Will be called once the component is ready for interaction. Returns an object with number of useful properties and methods. See below for more details. "NB:" Will be called again as soon as we reset the content by calling `resetContent()`.
|
|
538
|
+
*/
|
|
539
|
+
on_startup?: (...args: any[]) => any;
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* Only on "infinity" mode. Will be called on every page interaction, also on the very first interaction. Returns an object with number of useful properties and methods. See below for more details.
|
|
543
|
+
*/
|
|
544
|
+
on_load?: (...args: any[]) => any;
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* Only on "infinity" mode. Will be called once `page_count` is reached or `endInfinity` was called.
|
|
548
|
+
*/
|
|
549
|
+
on_end?: (...args: any[]) => any;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
declare class PaginationInstance extends React.Component<
|
|
553
|
+
PaginationInstanceProps,
|
|
554
|
+
any
|
|
555
|
+
> {
|
|
556
|
+
static defaultProps: object;
|
|
557
|
+
render(): JSX.Element;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
export type InfinityMarkerStartupPage = string | number;
|
|
561
|
+
export type InfinityMarkerCurrentPage = string | number;
|
|
562
|
+
export type InfinityMarkerPageCount = string | number;
|
|
563
|
+
export type InfinityMarkerStartupCount = string | number;
|
|
564
|
+
export type InfinityMarkerParallelLoadCount = string | number;
|
|
565
|
+
export type InfinityMarkerPlaceMakerBeforeContent = string | boolean;
|
|
566
|
+
export type InfinityMarkerMinWaitTime = string | number;
|
|
567
|
+
export type InfinityMarkerDisabled = string | boolean;
|
|
568
|
+
export type InfinityMarkerSkeleton = string | boolean;
|
|
569
|
+
export type InfinityMarkerMode = 'pagination' | 'infinity';
|
|
570
|
+
export type InfinityMarkerUseLoadButton = string | boolean;
|
|
571
|
+
export type InfinityMarkerItems = string | any[];
|
|
572
|
+
export type InfinityMarkerHideProgressIndicator = string | boolean;
|
|
573
|
+
export type InfinityMarkerSetContentHandler =
|
|
574
|
+
| string
|
|
575
|
+
| ((...args: any[]) => any);
|
|
576
|
+
export type InfinityMarkerResetContentHandler =
|
|
577
|
+
| string
|
|
578
|
+
| ((...args: any[]) => any);
|
|
579
|
+
export type InfinityMarkerResetPaginationHandler =
|
|
580
|
+
| string
|
|
581
|
+
| ((...args: any[]) => any);
|
|
582
|
+
export type InfinityMarkerEndInfinityHandler =
|
|
583
|
+
| string
|
|
584
|
+
| ((...args: any[]) => any);
|
|
585
|
+
export type InfinityMarkerPageElement =
|
|
586
|
+
| Object
|
|
587
|
+
| React.ReactNode
|
|
588
|
+
| ((...args: any[]) => any)
|
|
589
|
+
| string;
|
|
590
|
+
export type InfinityMarkerFallbackElement =
|
|
591
|
+
| Object
|
|
592
|
+
| React.ReactNode
|
|
593
|
+
| ((...args: any[]) => any)
|
|
594
|
+
| string;
|
|
595
|
+
export type InfinityMarkerMarkerElement =
|
|
596
|
+
| Object
|
|
597
|
+
| React.ReactNode
|
|
598
|
+
| ((...args: any[]) => any)
|
|
599
|
+
| string;
|
|
600
|
+
export type InfinityMarkerIndicatorElement =
|
|
601
|
+
| React.ReactNode
|
|
602
|
+
| ((...args: any[]) => any)
|
|
603
|
+
| string;
|
|
604
|
+
export type InfinityMarkerSpace =
|
|
605
|
+
| string
|
|
606
|
+
| number
|
|
607
|
+
| boolean
|
|
608
|
+
| {
|
|
609
|
+
/**
|
|
610
|
+
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. Will use `margin-top`.
|
|
611
|
+
*/
|
|
612
|
+
top?: string | number | boolean;
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. will use `margin-right`.
|
|
616
|
+
*/
|
|
617
|
+
right?: string | number | boolean;
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. will use `margin-bottom`.
|
|
621
|
+
*/
|
|
622
|
+
bottom?: string | number | boolean;
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. will use `margin-left`.
|
|
626
|
+
*/
|
|
627
|
+
left?: string | number | boolean;
|
|
181
628
|
};
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
629
|
+
export type InfinityMarkerTop = string | number | boolean;
|
|
630
|
+
export type InfinityMarkerRight = string | number | boolean;
|
|
631
|
+
export type InfinityMarkerBottom = string | number | boolean;
|
|
632
|
+
export type InfinityMarkerLeft = string | number | boolean;
|
|
633
|
+
export type InfinityMarkerChildren =
|
|
634
|
+
| React.ReactNode
|
|
635
|
+
| ((...args: any[]) => any);
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* NB: Do not change the docs (comments) in here. The docs are updated during build time by "generateTypes.js" and "fetchPropertiesFromDocs.js".
|
|
639
|
+
*/
|
|
640
|
+
export interface InfinityMarkerProps {
|
|
641
|
+
debug?: boolean;
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* The page shown in the very beginning. If `current_page` is set, then it may not make too much sense to set this as well.
|
|
645
|
+
*/
|
|
646
|
+
startup_page?: InfinityMarkerStartupPage;
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* The page shown at the moment the component renders. Defaults to `1`.
|
|
650
|
+
*/
|
|
651
|
+
current_page?: InfinityMarkerCurrentPage;
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* The total pages count. Defaults to `1`.
|
|
655
|
+
*/
|
|
656
|
+
page_count?: InfinityMarkerPageCount;
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* Defines how many `infinity` pages should be loaded / shown on the first render. Defaults to `1`.
|
|
660
|
+
*/
|
|
661
|
+
startup_count?: InfinityMarkerStartupCount;
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* Defines how many `infinity` pages should be loaded / shown once the user scrolls down. Defaults to `1`.
|
|
665
|
+
*/
|
|
666
|
+
parallel_load_count?: InfinityMarkerParallelLoadCount;
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* If set to `true`, the infinity marker will be placed before the content (on top off). This could potentially have negative side effects. But it depends really on the content if this would make more sense to use instead. Defaults to `false`.
|
|
670
|
+
*/
|
|
671
|
+
place_maker_before_content?: InfinityMarkerPlaceMakerBeforeContent;
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* The minimum time to wait, if the infinity scroll was invoked under that time threshold. This prevents not intentional infinity scroll loop calls. Defaults to `400` milliseconds.
|
|
675
|
+
*/
|
|
676
|
+
min_wait_time?: InfinityMarkerMinWaitTime;
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* If set to `true`, all pagination bar buttons are disabled.
|
|
680
|
+
*/
|
|
681
|
+
disabled?: InfinityMarkerDisabled;
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* If set to `true`, an overlaying skeleton with animation will be shown.
|
|
685
|
+
*/
|
|
686
|
+
skeleton?: InfinityMarkerSkeleton;
|
|
687
|
+
|
|
688
|
+
/**
|
|
689
|
+
* If set to `infinity`, then the pagination bar will be now shown and but infinity scrolling will do the content presentation. For more information, check out the <a href="https://eufemia.dnb.no/uilib/components/pagination/infinity-scroller">Infinity Scroller</a>. Defaults to `pagination`.
|
|
690
|
+
*/
|
|
691
|
+
mode?: InfinityMarkerMode;
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* If set to `true` it will disable the automated infinity scrolling, but shows a load more button at the of the content instead.
|
|
695
|
+
*/
|
|
696
|
+
use_load_button?: InfinityMarkerUseLoadButton;
|
|
697
|
+
items?: InfinityMarkerItems;
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* If set to `true` no indicator will be shown.
|
|
701
|
+
*/
|
|
702
|
+
hide_progress_indicator?: InfinityMarkerHideProgressIndicator;
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* Callback function to get the `setContent` handler from the current pagination instance. e.g. `set_content_handler={fn => (...)}`. Use this handler to insert content during infinity mode.
|
|
706
|
+
*/
|
|
707
|
+
set_content_handler?: InfinityMarkerSetContentHandler;
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Callback function to get the `resetContent` handler from the current pagination instance. e.g. `reset_content_handler={fn => (...)}`. Use this handler to reset all the content. You can set it to `true`, to programmatically reset the content.
|
|
711
|
+
*/
|
|
712
|
+
reset_content_handler?: InfinityMarkerResetContentHandler;
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* Callback function to get the `resetInfinity` handler from the current pagination instance. e.g. `reset_pagination_handler={fn => (...)}`. Use this handler to reset all the internal states. You can set it to `true`, to programmatically reset the states.
|
|
716
|
+
*/
|
|
717
|
+
reset_pagination_handler?: InfinityMarkerResetPaginationHandler;
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* Callback function to get the `endInfinity` handler from the current pagination instance. e.g. `end_infinity_handler={fn => (...)}`. Use this handler to end the infinity scrolling procedure, in case the `page_count` is unknown.
|
|
721
|
+
*/
|
|
722
|
+
end_infinity_handler?: InfinityMarkerEndInfinityHandler;
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* By default a `<div>` is used. Set it to any element you have to use. Adds also a class: `dnb-pagination__page` shown.
|
|
726
|
+
*/
|
|
727
|
+
page_element?: InfinityMarkerPageElement;
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* (infinity mode) is used by the <em>indicator</em>, <em>load more</em> bar as well as by the marker. Defaults to a `div`.
|
|
731
|
+
*/
|
|
732
|
+
fallback_element?: InfinityMarkerFallbackElement;
|
|
733
|
+
|
|
734
|
+
/**
|
|
735
|
+
* (infinity mode) is used by the internal marker. Falls back to `fallback_element` if not defined.
|
|
736
|
+
*/
|
|
737
|
+
marker_element?: InfinityMarkerMarkerElement;
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* (infinity mode) is used by the <em>indicator</em>. Falls back to `fallback_element` if not defined.
|
|
741
|
+
*/
|
|
742
|
+
indicator_element?: InfinityMarkerIndicatorElement;
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* Define the alignment of the pagination button bar. Can be `center`, `left` or `right`. Defaults to `left`.
|
|
746
|
+
*/
|
|
747
|
+
align?: string;
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* The title used in every button shown in the bar. Defaults to `Side %s`.
|
|
751
|
+
*/
|
|
752
|
+
button_title?: string;
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* The title used in the previous page button. Defaults to `Forrige side`.
|
|
756
|
+
*/
|
|
757
|
+
prev_title?: string;
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* The title used in the next page button. Defaults to `Neste side`.
|
|
761
|
+
*/
|
|
762
|
+
next_title?: string;
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* The title used in the dots. Relevant for screen-readers. Defaults to `%s flere sider`.
|
|
766
|
+
*/
|
|
767
|
+
more_pages?: string;
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* Shown until new content is inserted in to the page. Defaults to `Laster nytt innhold`.
|
|
771
|
+
*/
|
|
772
|
+
is_loading_text?: string;
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Used during infinity mode. If `use_load_button` is set to true, then a button is show on the bottom. If the `startup_page` is higher than 1. Defaults to `Vis mer innhold`.
|
|
776
|
+
*/
|
|
777
|
+
load_button_text?: string;
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* Has to be an object with either: `top`, `right`, `bottom` or `left`. Use spacing values like: `small`, `1rem`, `1` or , `16px`.
|
|
781
|
+
*/
|
|
782
|
+
space?: InfinityMarkerSpace;
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. Will use `margin-top`.
|
|
786
|
+
*/
|
|
787
|
+
top?: InfinityMarkerTop;
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. will use `margin-right`.
|
|
791
|
+
*/
|
|
792
|
+
right?: InfinityMarkerRight;
|
|
793
|
+
|
|
794
|
+
/**
|
|
795
|
+
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. will use `margin-bottom`.
|
|
796
|
+
*/
|
|
797
|
+
bottom?: InfinityMarkerBottom;
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* Use spacing values like: `small`, `1rem`, `1` or , `16px`. will use `margin-left`.
|
|
801
|
+
*/
|
|
802
|
+
left?: InfinityMarkerLeft;
|
|
803
|
+
class?: string;
|
|
804
|
+
className?: string;
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* The given content can be either a function or a React node, depending on your needs. A function contains several helper functions. More details down below and have a look at the examples in the demos section.
|
|
808
|
+
*/
|
|
809
|
+
children?: InfinityMarkerChildren;
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* Will be called for every page change, regardless if the mode is `mode="infinity"` or not. Returns an object with number of useful properties and methods. See below for more details.
|
|
813
|
+
*/
|
|
814
|
+
on_change?: (...args: any[]) => any;
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* Only on "infinity" mode. Will be called once the component is ready for interaction. Returns an object with number of useful properties and methods. See below for more details. "NB:" Will be called again as soon as we reset the content by calling `resetContent()`.
|
|
818
|
+
*/
|
|
819
|
+
on_startup?: (...args: any[]) => any;
|
|
820
|
+
|
|
821
|
+
/**
|
|
822
|
+
* Only on "infinity" mode. Will be called on every page interaction, also on the very first interaction. Returns an object with number of useful properties and methods. See below for more details.
|
|
823
|
+
*/
|
|
824
|
+
on_load?: (...args: any[]) => any;
|
|
825
|
+
|
|
826
|
+
/**
|
|
827
|
+
* Only on "infinity" mode. Will be called once `page_count` is reached or `endInfinity` was called.
|
|
828
|
+
*/
|
|
829
|
+
on_end?: (...args: any[]) => any;
|
|
830
|
+
}
|
|
831
|
+
export class InfinityMarker extends React.Component<
|
|
832
|
+
InfinityMarkerProps,
|
|
833
|
+
any
|
|
834
|
+
> {
|
|
835
|
+
static defaultProps: object;
|
|
836
|
+
render(): JSX.Element;
|
|
837
|
+
}
|
|
838
|
+
export type PaginationContentChildren =
|
|
839
|
+
| React.ReactNode
|
|
840
|
+
| ((...args: any[]) => any);
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* NB: Do not change the docs (comments) in here. The docs are updated during build time by "generateTypes.js" and "fetchPropertiesFromDocs.js".
|
|
844
|
+
*/
|
|
845
|
+
export interface PaginationContentProps {
|
|
846
|
+
/**
|
|
847
|
+
* The given content can be either a function or a React node, depending on your needs. A function contains several helper functions. More details down below and have a look at the examples in the demos section.
|
|
848
|
+
*/
|
|
849
|
+
children: PaginationContentChildren;
|
|
185
850
|
}
|
|
186
|
-
|
|
187
|
-
export function createPagination(initProps?: {}): {
|
|
188
|
-
Pagination: (props: any) => JSX.Element;
|
|
189
|
-
InfinityMarker: (props: any) => JSX.Element;
|
|
190
|
-
setContent: (pageNumber: any, content: any) => void;
|
|
191
|
-
resetContent: () => void;
|
|
192
|
-
resetInfinity: () => void;
|
|
193
|
-
endInfinity: () => void;
|
|
194
|
-
};
|
|
195
|
-
import React from "react";
|
|
196
|
-
import PropTypes from "prop-types";
|
|
197
|
-
import PaginationBar from "./PaginationBar";
|
|
198
|
-
declare const PaginationContent: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
851
|
+
declare const PaginationContent: React.FC<PaginationContentProps>;
|