@dbcdk/react-components 0.0.169 → 0.0.171
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/logo.cjs +87 -0
- package/dist/assets/logo.d.ts +2 -0
- package/dist/assets/logo.js +85 -0
- package/dist/client.cjs +629 -0
- package/dist/client.d.ts +89 -0
- package/dist/client.js +90 -0
- package/dist/components/accordion/Accordion.cjs +127 -0
- package/dist/components/accordion/Accordion.d.ts +36 -0
- package/dist/components/accordion/Accordion.js +121 -0
- package/dist/components/accordion/Accordion.module.css +41 -0
- package/dist/components/accordion/components/AccordionRow.cjs +129 -0
- package/dist/components/accordion/components/AccordionRow.d.ts +14 -0
- package/dist/components/accordion/components/AccordionRow.js +123 -0
- package/dist/components/accordion/components/AccordionRow.module.css +129 -0
- package/dist/components/alert/Alert.cjs +52 -0
- package/dist/components/alert/Alert.d.ts +14 -0
- package/dist/components/alert/Alert.js +46 -0
- package/dist/components/alert/Alert.module.css +102 -0
- package/dist/components/app-header/AppHeader.cjs +14 -0
- package/dist/components/app-header/AppHeader.d.ts +8 -0
- package/dist/components/app-header/AppHeader.js +8 -0
- package/dist/components/app-header/AppHeader.module.css +74 -0
- package/dist/components/attribute-chip/AttributeChip.cjs +36 -0
- package/dist/components/attribute-chip/AttributeChip.d.ts +11 -0
- package/dist/components/attribute-chip/AttributeChip.js +30 -0
- package/dist/components/attribute-chip/AttributeChip.module.css +64 -0
- package/dist/components/avatar/Avatar.cjs +111 -0
- package/dist/components/avatar/Avatar.d.ts +17 -0
- package/dist/components/avatar/Avatar.js +86 -0
- package/dist/components/avatar/Avatar.module.css +91 -0
- package/dist/components/breadcrumbs/Breadcrumbs.cjs +24 -0
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +12 -0
- package/dist/components/breadcrumbs/Breadcrumbs.js +18 -0
- package/dist/components/breadcrumbs/Breadcrumbs.module.css +77 -0
- package/dist/components/button/Button.cjs +150 -0
- package/dist/components/button/Button.d.ts +18 -0
- package/dist/components/button/Button.js +125 -0
- package/dist/components/button/Button.module.css +266 -0
- package/dist/components/button-select/ButtonSelect.cjs +35 -0
- package/dist/components/button-select/ButtonSelect.d.ts +16 -0
- package/dist/components/button-select/ButtonSelect.js +29 -0
- package/dist/components/button-select/ButtonSelect.module.css +40 -0
- package/dist/components/card/Card.cjs +109 -0
- package/dist/components/card/Card.d.ts +37 -0
- package/dist/components/card/Card.js +103 -0
- package/dist/components/card/Card.module.css +191 -0
- package/dist/components/card/components/CardMeta.cjs +62 -0
- package/dist/components/card/components/CardMeta.d.ts +16 -0
- package/dist/components/card/components/CardMeta.js +55 -0
- package/dist/components/card/components/CardMeta.module.css +55 -0
- package/dist/components/card-container/CardContainer.cjs +34 -0
- package/dist/components/card-container/CardContainer.d.ts +12 -0
- package/dist/components/card-container/CardContainer.js +28 -0
- package/dist/components/card-container/CardContainer.module.css +63 -0
- package/dist/components/chip/Chip.cjs +65 -0
- package/dist/components/chip/Chip.d.ts +16 -0
- package/dist/components/chip/Chip.js +59 -0
- package/dist/components/chip/Chip.module.css +247 -0
- package/dist/components/circle/Circle.cjs +39 -0
- package/dist/components/circle/Circle.d.ts +14 -0
- package/dist/components/circle/Circle.js +33 -0
- package/dist/components/circle/Circle.module.css +138 -0
- package/dist/components/clear-button/ClearButton.cjs +33 -0
- package/dist/components/clear-button/ClearButton.d.ts +8 -0
- package/dist/components/clear-button/ClearButton.js +27 -0
- package/dist/components/clear-button/ClearButton.module.css +26 -0
- package/dist/components/code-block/CodeBlock.cjs +107 -0
- package/dist/components/code-block/CodeBlock.d.ts +11 -0
- package/dist/components/code-block/CodeBlock.js +101 -0
- package/dist/components/code-block/CodeBlock.module.css +135 -0
- package/dist/components/copy-button/CopyButton.cjs +139 -0
- package/dist/components/copy-button/CopyButton.d.ts +13 -0
- package/dist/components/copy-button/CopyButton.js +133 -0
- package/dist/components/copy-button/CopyButton.module.css +22 -0
- package/dist/components/datetime-picker/DateTimePicker.cjs +563 -0
- package/dist/components/datetime-picker/DateTimePicker.d.ts +66 -0
- package/dist/components/datetime-picker/DateTimePicker.js +557 -0
- package/dist/components/datetime-picker/DateTimePicker.module.css +155 -0
- package/dist/components/datetime-picker/dateTimeHelpers.cjs +185 -0
- package/dist/components/datetime-picker/dateTimeHelpers.d.ts +37 -0
- package/dist/components/datetime-picker/dateTimeHelpers.js +166 -0
- package/dist/components/divider/Divider.cjs +22 -0
- package/dist/components/divider/Divider.d.ts +5 -0
- package/dist/components/divider/Divider.js +20 -0
- package/dist/components/environment-banner/EnvironmentBanner.cjs +20 -0
- package/dist/components/environment-banner/EnvironmentBanner.d.ts +13 -0
- package/dist/components/environment-banner/EnvironmentBanner.js +14 -0
- package/dist/components/environment-banner/EnvironmentBanner.module.css +54 -0
- package/dist/components/filter-field/FilterField.cjs +324 -0
- package/dist/components/filter-field/FilterField.d.ts +39 -0
- package/dist/components/filter-field/FilterField.js +317 -0
- package/dist/components/filter-field/FilterField.module.css +304 -0
- package/dist/components/filtering/chip-multi-toggle/ChipMultiToggle.cjs +115 -0
- package/dist/components/filtering/chip-multi-toggle/ChipMultiToggle.d.ts +35 -0
- package/dist/components/filtering/chip-multi-toggle/ChipMultiToggle.js +108 -0
- package/dist/components/filtering/chip-multi-toggle/ChipMultiToggle.module.css +59 -0
- package/dist/components/forms/checkbox/Checkbox.cjs +99 -0
- package/dist/components/forms/checkbox/Checkbox.d.ts +39 -0
- package/dist/components/forms/checkbox/Checkbox.js +93 -0
- package/dist/components/forms/checkbox/Checkbox.module.css +110 -0
- package/dist/components/forms/checkbox-group/CheckboxGroup.cjs +121 -0
- package/dist/components/forms/checkbox-group/CheckboxGroup.d.ts +47 -0
- package/dist/components/forms/checkbox-group/CheckboxGroup.js +115 -0
- package/dist/components/forms/checkbox-group/CheckboxGroup.module.css +115 -0
- package/dist/components/forms/file-upload/FileUpload.cjs +127 -0
- package/dist/components/forms/file-upload/FileUpload.d.ts +18 -0
- package/dist/components/forms/file-upload/FileUpload.js +121 -0
- package/dist/components/forms/file-upload/FileUpload.module.css +75 -0
- package/dist/components/forms/form-select/FormSelect.cjs +191 -0
- package/dist/components/forms/form-select/FormSelect.d.ts +35 -0
- package/dist/components/forms/form-select/FormSelect.js +166 -0
- package/dist/components/forms/form-select/FormSelect.module.css +236 -0
- package/dist/components/forms/input/Input.cjs +190 -0
- package/dist/components/forms/input/Input.d.ts +37 -0
- package/dist/components/forms/input/Input.js +184 -0
- package/dist/components/forms/input/Input.module.css +478 -0
- package/dist/components/forms/input-container/InputContainer.cjs +72 -0
- package/dist/components/forms/input-container/InputContainer.d.ts +18 -0
- package/dist/components/forms/input-container/InputContainer.js +66 -0
- package/dist/components/forms/input-container/InputContainer.module.css +59 -0
- package/dist/components/forms/multi-select/MultiSelect.cjs +229 -0
- package/dist/components/forms/multi-select/MultiSelect.d.ts +26 -0
- package/dist/components/forms/multi-select/MultiSelect.js +227 -0
- package/dist/components/forms/radio-buttons/RadioButton.cjs +94 -0
- package/dist/components/forms/radio-buttons/RadioButton.d.ts +46 -0
- package/dist/components/forms/radio-buttons/RadioButton.js +88 -0
- package/dist/components/forms/radio-buttons/RadioButtonGroup.cjs +74 -0
- package/dist/components/forms/radio-buttons/RadioButtonGroup.d.ts +25 -0
- package/dist/components/forms/radio-buttons/RadioButtonGroup.js +72 -0
- package/dist/components/forms/radio-buttons/RadioButtons.module.css +131 -0
- package/dist/components/forms/select/Select.cjs +287 -0
- package/dist/components/forms/select/Select.d.ts +24 -0
- package/dist/components/forms/select/Select.js +281 -0
- package/dist/components/forms/select/Select.module.css +41 -0
- package/dist/components/forms/switch/Switch.cjs +93 -0
- package/dist/components/forms/switch/Switch.d.ts +37 -0
- package/dist/components/forms/switch/Switch.js +87 -0
- package/dist/components/forms/switch/Switch.module.css +89 -0
- package/dist/components/forms/text-area/Textarea.cjs +118 -0
- package/dist/components/forms/text-area/Textarea.d.ts +17 -0
- package/dist/components/forms/text-area/Textarea.js +112 -0
- package/dist/components/forms/text-area/Textarea.module.css +70 -0
- package/dist/components/forms/typeahead/Typeahead.cjs +824 -0
- package/dist/components/forms/typeahead/Typeahead.d.ts +46 -0
- package/dist/components/forms/typeahead/Typeahead.js +800 -0
- package/dist/components/forms/typeahead/Typeahead.module.css +38 -0
- package/dist/components/grid/Grid.cjs +58 -0
- package/dist/components/grid/Grid.d.ts +29 -0
- package/dist/components/grid/Grid.js +51 -0
- package/dist/components/grid/Grid.module.css +44 -0
- package/dist/components/headline/CollapsibleHeadline.cjs +84 -0
- package/dist/components/headline/CollapsibleHeadline.d.ts +25 -0
- package/dist/components/headline/CollapsibleHeadline.js +78 -0
- package/dist/components/headline/Headline.cjs +59 -0
- package/dist/components/headline/Headline.d.ts +20 -0
- package/dist/components/headline/Headline.js +53 -0
- package/dist/components/headline/Headline.module.css +167 -0
- package/dist/components/highlighted-text/HighlightedText.cjs +21 -0
- package/dist/components/highlighted-text/HighlightedText.d.ts +7 -0
- package/dist/components/highlighted-text/HighlightedText.js +19 -0
- package/dist/components/hyperlink/Hyperlink.cjs +113 -0
- package/dist/components/hyperlink/Hyperlink.d.ts +24 -0
- package/dist/components/hyperlink/Hyperlink.js +88 -0
- package/dist/components/hyperlink/Hyperlink.module.css +121 -0
- package/dist/components/icon/Icon.cjs +39 -0
- package/dist/components/icon/Icon.d.ts +14 -0
- package/dist/components/icon/Icon.js +32 -0
- package/dist/components/icon/Icon.module.css +50 -0
- package/dist/components/inline-status/InlineStatus.cjs +39 -0
- package/dist/components/inline-status/InlineStatus.d.ts +11 -0
- package/dist/components/inline-status/InlineStatus.js +33 -0
- package/dist/components/inline-status/InlineStatus.module.css +98 -0
- package/dist/components/interval-select/IntervalSelect.cjs +203 -0
- package/dist/components/interval-select/IntervalSelect.d.ts +37 -0
- package/dist/components/interval-select/IntervalSelect.js +201 -0
- package/dist/components/json-viewer/JsonNode.cjs +124 -0
- package/dist/components/json-viewer/JsonNode.d.ts +3 -0
- package/dist/components/json-viewer/JsonNode.js +118 -0
- package/dist/components/json-viewer/JsonViewer.cjs +164 -0
- package/dist/components/json-viewer/JsonViewer.d.ts +4 -0
- package/dist/components/json-viewer/JsonViewer.js +158 -0
- package/dist/components/json-viewer/JsonViewer.module.css +346 -0
- package/dist/components/json-viewer/types.cjs +2 -0
- package/dist/components/json-viewer/types.d.ts +33 -0
- package/dist/components/json-viewer/types.js +1 -0
- package/dist/components/json-viewer/useClipboardStatus.cjs +15 -0
- package/dist/components/json-viewer/useClipboardStatus.d.ts +4 -0
- package/dist/components/json-viewer/useClipboardStatus.js +13 -0
- package/dist/components/json-viewer/utils.cjs +126 -0
- package/dist/components/json-viewer/utils.d.ts +17 -0
- package/dist/components/json-viewer/utils.js +111 -0
- package/dist/components/lightbox/Lightbox.cjs +291 -0
- package/dist/components/lightbox/Lightbox.d.ts +36 -0
- package/dist/components/lightbox/Lightbox.js +285 -0
- package/dist/components/lightbox/Lightbox.module.css +214 -0
- package/dist/components/media-card/MediaCard.cjs +87 -0
- package/dist/components/media-card/MediaCard.d.ts +21 -0
- package/dist/components/media-card/MediaCard.js +80 -0
- package/dist/components/media-card/MediaCard.module.css +91 -0
- package/dist/components/menu/Menu.cjs +455 -0
- package/dist/components/menu/Menu.d.ts +102 -0
- package/dist/components/menu/Menu.js +430 -0
- package/dist/components/menu/Menu.module.css +286 -0
- package/dist/components/meta-bar/MetaBar.cjs +28 -0
- package/dist/components/meta-bar/MetaBar.d.ts +12 -0
- package/dist/components/meta-bar/MetaBar.js +22 -0
- package/dist/components/meta-bar/MetaBar.module.css +27 -0
- package/dist/components/metric-tile/MetricTile.cjs +33 -0
- package/dist/components/metric-tile/MetricTile.d.ts +15 -0
- package/dist/components/metric-tile/MetricTile.js +27 -0
- package/dist/components/metric-tile/MetricTile.module.css +103 -0
- package/dist/components/nav-bar/NavBar.cjs +107 -0
- package/dist/components/nav-bar/NavBar.d.ts +44 -0
- package/dist/components/nav-bar/NavBar.js +101 -0
- package/dist/components/nav-bar/NavBar.module.css +243 -0
- package/dist/components/overlay/fade-overlay/FadeOverlay.cjs +30 -0
- package/dist/components/overlay/fade-overlay/FadeOverlay.d.ts +13 -0
- package/dist/components/overlay/fade-overlay/FadeOverlay.js +24 -0
- package/dist/components/overlay/fade-overlay/FadeOverlay.module.css +54 -0
- package/dist/components/overlay/modal/Modal.cjs +200 -0
- package/dist/components/overlay/modal/Modal.d.ts +30 -0
- package/dist/components/overlay/modal/Modal.js +194 -0
- package/dist/components/overlay/modal/Modal.module.css +112 -0
- package/dist/components/overlay/modal/provider/ModalProvider.cjs +98 -0
- package/dist/components/overlay/modal/provider/ModalProvider.d.ts +23 -0
- package/dist/components/overlay/modal/provider/ModalProvider.js +95 -0
- package/dist/components/overlay/side-panel/SidePanel.cjs +173 -0
- package/dist/components/overlay/side-panel/SidePanel.d.ts +25 -0
- package/dist/components/overlay/side-panel/SidePanel.js +167 -0
- package/dist/components/overlay/side-panel/SidePanel.module.css +177 -0
- package/dist/components/overlay/side-panel/useSidePanel.cjs +16 -0
- package/dist/components/overlay/side-panel/useSidePanel.d.ts +5 -0
- package/dist/components/overlay/side-panel/useSidePanel.js +14 -0
- package/dist/components/overlay/tooltip/Tooltip.cjs +56 -0
- package/dist/components/overlay/tooltip/Tooltip.d.ts +12 -0
- package/dist/components/overlay/tooltip/Tooltip.js +54 -0
- package/dist/components/overlay/tooltip/Tooltip.module.css +104 -0
- package/dist/components/overlay/tooltip/TooltipProvider.cjs +238 -0
- package/dist/components/overlay/tooltip/TooltipProvider.d.ts +20 -0
- package/dist/components/overlay/tooltip/TooltipProvider.js +231 -0
- package/dist/components/overlay/tooltip/useTooltipTrigger.cjs +117 -0
- package/dist/components/overlay/tooltip/useTooltipTrigger.d.ts +28 -0
- package/dist/components/overlay/tooltip/useTooltipTrigger.js +115 -0
- package/dist/components/page/Page.cjs +64 -0
- package/dist/components/page/Page.d.ts +21 -0
- package/dist/components/page/Page.js +58 -0
- package/dist/components/page/Page.module.css +95 -0
- package/dist/components/page-layout/PageLayout.cjs +126 -0
- package/dist/components/page-layout/PageLayout.d.ts +47 -0
- package/dist/components/page-layout/PageLayout.js +120 -0
- package/dist/components/page-layout/PageLayout.module.css +333 -0
- package/dist/components/page-layout/components/footer/Footer.cjs +53 -0
- package/dist/components/page-layout/components/footer/Footer.d.ts +14 -0
- package/dist/components/page-layout/components/footer/Footer.js +47 -0
- package/dist/components/page-layout/components/footer/Footer.module.css +86 -0
- package/dist/components/pagination/Pagination.cjs +161 -0
- package/dist/components/pagination/Pagination.d.ts +21 -0
- package/dist/components/pagination/Pagination.js +155 -0
- package/dist/components/pagination/Pagination.module.css +25 -0
- package/dist/components/panel/Panel.cjs +38 -0
- package/dist/components/panel/Panel.d.ts +13 -0
- package/dist/components/panel/Panel.js +32 -0
- package/dist/components/panel/Panel.module.css +30 -0
- package/dist/components/popover/Popover.cjs +331 -0
- package/dist/components/popover/Popover.d.ts +27 -0
- package/dist/components/popover/Popover.js +307 -0
- package/dist/components/popover/Popover.module.css +52 -0
- package/dist/components/search-box/SearchBox.cjs +297 -0
- package/dist/components/search-box/SearchBox.d.ts +30 -0
- package/dist/components/search-box/SearchBox.js +291 -0
- package/dist/components/search-box/SearchBox.module.css +27 -0
- package/dist/components/section-label/SectionLabel.cjs +18 -0
- package/dist/components/section-label/SectionLabel.d.ts +5 -0
- package/dist/components/section-label/SectionLabel.js +12 -0
- package/dist/components/section-label/SectionLabel.module.css +12 -0
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.cjs +130 -0
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.d.ts +27 -0
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.js +124 -0
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.module.css +187 -0
- package/dist/components/sidebar/Sidebar.cjs +41 -0
- package/dist/components/sidebar/Sidebar.d.ts +23 -0
- package/dist/components/sidebar/Sidebar.js +39 -0
- package/dist/components/sidebar/components/SidebarItem.cjs +29 -0
- package/dist/components/sidebar/components/SidebarItem.d.ts +11 -0
- package/dist/components/sidebar/components/SidebarItem.js +27 -0
- package/dist/components/sidebar/components/SidebarItem.module.css +0 -0
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.cjs +153 -0
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.d.ts +13 -0
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.js +147 -0
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.module.css +47 -0
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.cjs +220 -0
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.d.ts +18 -0
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.js +213 -0
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.module.css +293 -0
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.cjs +54 -0
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.d.ts +13 -0
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.js +47 -0
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.module.css +117 -0
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.cjs +61 -0
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.d.ts +4 -0
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.js +55 -0
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.module.css +20 -0
- package/dist/components/sidebar/components/sidenav-filteirng/SidenavFiltering.cjs +96 -0
- package/dist/components/sidebar/components/sidenav-filteirng/SidenavFiltering.d.ts +7 -0
- package/dist/components/sidebar/components/sidenav-filteirng/SidenavFiltering.js +90 -0
- package/dist/components/sidebar/providers/SidebarProvider.cjs +223 -0
- package/dist/components/sidebar/providers/SidebarProvider.d.ts +34 -0
- package/dist/components/sidebar/providers/SidebarProvider.js +220 -0
- package/dist/components/skeleton-loader/SkeletonLoader.cjs +442 -0
- package/dist/components/skeleton-loader/SkeletonLoader.d.ts +9 -0
- package/dist/components/skeleton-loader/SkeletonLoader.js +440 -0
- package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.cjs +42 -0
- package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.d.ts +11 -0
- package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.js +36 -0
- package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.module.css +55 -0
- package/dist/components/split-button/SplitButton.cjs +46 -0
- package/dist/components/split-button/SplitButton.d.ts +16 -0
- package/dist/components/split-button/SplitButton.js +40 -0
- package/dist/components/split-button/SplitButton.module.css +32 -0
- package/dist/components/split-pane/SplitPane.cjs +191 -0
- package/dist/components/split-pane/SplitPane.d.ts +21 -0
- package/dist/components/split-pane/SplitPane.js +182 -0
- package/dist/components/split-pane/SplitPane.module.css +118 -0
- package/dist/components/split-pane/provider/SplitPaneContext.cjs +129 -0
- package/dist/components/split-pane/provider/SplitPaneContext.d.ts +24 -0
- package/dist/components/split-pane/provider/SplitPaneContext.js +121 -0
- package/dist/components/stack/Stack.cjs +56 -0
- package/dist/components/stack/Stack.d.ts +26 -0
- package/dist/components/stack/Stack.js +50 -0
- package/dist/components/stack/Stack.module.css +77 -0
- package/dist/components/state-page/StatePage.cjs +48 -0
- package/dist/components/state-page/StatePage.d.ts +10 -0
- package/dist/components/state-page/StatePage.js +42 -0
- package/dist/components/state-page/StatePage.module.css +9 -0
- package/dist/components/state-page/empty.cjs +664 -0
- package/dist/components/state-page/empty.d.ts +2 -0
- package/dist/components/state-page/empty.js +662 -0
- package/dist/components/state-page/error.cjs +310 -0
- package/dist/components/state-page/error.d.ts +2 -0
- package/dist/components/state-page/error.js +308 -0
- package/dist/components/state-page/notFound.cjs +243 -0
- package/dist/components/state-page/notFound.d.ts +2 -0
- package/dist/components/state-page/notFound.js +241 -0
- package/dist/components/sticky-footer-layout/StickyFooterLayout.cjs +98 -0
- package/dist/components/sticky-footer-layout/StickyFooterLayout.d.ts +14 -0
- package/dist/components/sticky-footer-layout/StickyFooterLayout.js +96 -0
- package/dist/components/table/Table.cjs +240 -0
- package/dist/components/table/Table.d.ts +4 -0
- package/dist/components/table/Table.js +234 -0
- package/dist/components/table/Table.module.css +704 -0
- package/dist/components/table/Table.types.cjs +2 -0
- package/dist/components/table/Table.types.d.ts +91 -0
- package/dist/components/table/Table.types.js +1 -0
- package/dist/components/table/TanstackTable.cjs +191 -0
- package/dist/components/table/TanstackTable.d.ts +15 -0
- package/dist/components/table/TanstackTable.js +166 -0
- package/dist/components/table/components/TableBody.cjs +58 -0
- package/dist/components/table/components/TableBody.d.ts +28 -0
- package/dist/components/table/components/TableBody.js +52 -0
- package/dist/components/table/components/TableHeader.cjs +56 -0
- package/dist/components/table/components/TableHeader.d.ts +16 -0
- package/dist/components/table/components/TableHeader.js +50 -0
- package/dist/components/table/components/TableHeaderCell.cjs +68 -0
- package/dist/components/table/components/TableHeaderCell.d.ts +12 -0
- package/dist/components/table/components/TableHeaderCell.js +62 -0
- package/dist/components/table/components/TablePagination.cjs +2 -0
- package/dist/components/table/components/TablePagination.d.ts +0 -0
- package/dist/components/table/components/TablePagination.js +1 -0
- package/dist/components/table/components/TableRow.cjs +287 -0
- package/dist/components/table/components/TableRow.d.ts +28 -0
- package/dist/components/table/components/TableRow.js +281 -0
- package/dist/components/table/components/TableSelectionCell.cjs +41 -0
- package/dist/components/table/components/TableSelectionCell.d.ts +9 -0
- package/dist/components/table/components/TableSelectionCell.js +35 -0
- package/dist/components/table/components/column-resizer/ColumnResizer.cjs +25 -0
- package/dist/components/table/components/column-resizer/ColumnResizer.d.ts +7 -0
- package/dist/components/table/components/column-resizer/ColumnResizer.js +19 -0
- package/dist/components/table/components/column-resizer/ColumnResizer.module.css +24 -0
- package/dist/components/table/components/empty-state/EmptyState.cjs +33 -0
- package/dist/components/table/components/empty-state/EmptyState.d.ts +21 -0
- package/dist/components/table/components/empty-state/EmptyState.js +31 -0
- package/dist/components/table/components/empty-state/EmptyState.module.css +4 -0
- package/dist/components/table/components/table-settings/TableSettings.cjs +139 -0
- package/dist/components/table/components/table-settings/TableSettings.d.ts +18 -0
- package/dist/components/table/components/table-settings/TableSettings.js +137 -0
- package/dist/components/table/hooks/useTableRowInteractions.cjs +47 -0
- package/dist/components/table/hooks/useTableRowInteractions.d.ts +15 -0
- package/dist/components/table/hooks/useTableRowInteractions.js +45 -0
- package/dist/components/table/table.classes.cjs +49 -0
- package/dist/components/table/table.classes.d.ts +10 -0
- package/dist/components/table/table.classes.js +40 -0
- package/dist/components/table/table.utils.cjs +59 -0
- package/dist/components/table/table.utils.d.ts +18 -0
- package/dist/components/table/table.utils.js +46 -0
- package/dist/components/table/tanstackTable.utils.cjs +181 -0
- package/dist/components/table/tanstackTable.utils.d.ts +29 -0
- package/dist/components/table/tanstackTable.utils.js +174 -0
- package/dist/components/tabs/Tabs.cjs +187 -0
- package/dist/components/tabs/Tabs.d.ts +52 -0
- package/dist/components/tabs/Tabs.js +181 -0
- package/dist/components/tabs/Tabs.module.css +263 -0
- package/dist/components/theme-button/ThemeButton.cjs +75 -0
- package/dist/components/theme-button/ThemeButton.d.ts +8 -0
- package/dist/components/theme-button/ThemeButton.js +72 -0
- package/dist/components/toast/Toast.cjs +68 -0
- package/dist/components/toast/Toast.d.ts +15 -0
- package/dist/components/toast/Toast.js +62 -0
- package/dist/components/toast/Toast.module.css +165 -0
- package/dist/components/toast/provider/ToastProvider.cjs +105 -0
- package/dist/components/toast/provider/ToastProvider.d.ts +24 -0
- package/dist/components/toast/provider/ToastProvider.js +97 -0
- package/dist/components/user-display/UserDisplay.cjs +22 -0
- package/dist/components/user-display/UserDisplay.d.ts +10 -0
- package/dist/components/user-display/UserDisplay.js +16 -0
- package/dist/components/user-display/UserDisplay.module.css +25 -0
- package/dist/constants/chart-colors.cjs +10 -0
- package/dist/constants/chart-colors.d.ts +2 -0
- package/dist/constants/chart-colors.js +8 -0
- package/dist/constants/chart-colors.types.cjs +2 -0
- package/dist/constants/chart-colors.types.d.ts +3 -0
- package/dist/constants/chart-colors.types.js +1 -0
- package/dist/constants/severity.cjs +33 -0
- package/dist/constants/severity.d.ts +4 -0
- package/dist/constants/severity.js +29 -0
- package/dist/constants/severity.types.cjs +2 -0
- package/dist/constants/severity.types.d.ts +1 -0
- package/dist/constants/severity.types.js +1 -0
- package/dist/constants/sizes.cjs +11 -0
- package/dist/constants/sizes.d.ts +2 -0
- package/dist/constants/sizes.js +9 -0
- package/dist/hooks/useDeviceSize.cjs +33 -0
- package/dist/hooks/useDeviceSize.d.ts +2 -0
- package/dist/hooks/useDeviceSize.js +31 -0
- package/dist/hooks/useListNavigation.cjs +237 -0
- package/dist/hooks/useListNavigation.d.ts +24 -0
- package/dist/hooks/useListNavigation.js +235 -0
- package/dist/hooks/usePagination.cjs +144 -0
- package/dist/hooks/usePagination.d.ts +38 -0
- package/dist/hooks/usePagination.js +142 -0
- package/dist/hooks/usePersistentState.cjs +60 -0
- package/dist/hooks/usePersistentState.d.ts +33 -0
- package/dist/hooks/usePersistentState.js +58 -0
- package/dist/hooks/useSorting.cjs +120 -0
- package/dist/hooks/useSorting.d.ts +50 -0
- package/dist/hooks/useSorting.js +117 -0
- package/dist/hooks/useTableData.cjs +75 -0
- package/dist/hooks/useTableData.d.ts +42 -0
- package/dist/hooks/useTableData.js +73 -0
- package/dist/hooks/useTableSelection.cjs +172 -0
- package/dist/hooks/useTableSelection.d.ts +27 -0
- package/dist/hooks/useTableSelection.js +170 -0
- package/dist/hooks/useTableSettings.cjs +90 -0
- package/dist/hooks/useTableSettings.d.ts +26 -0
- package/dist/hooks/useTableSettings.js +87 -0
- package/dist/hooks/useTheme.cjs +64 -0
- package/dist/hooks/useTheme.d.ts +7 -0
- package/dist/hooks/useTheme.js +62 -0
- package/dist/hooks/useTimeDuration.cjs +75 -0
- package/dist/hooks/useTimeDuration.d.ts +26 -0
- package/dist/hooks/useTimeDuration.js +73 -0
- package/dist/hooks/useViewportFill.cjs +82 -0
- package/dist/hooks/useViewportFill.d.ts +13 -0
- package/dist/hooks/useViewportFill.js +80 -0
- package/dist/index.cjs +292 -0
- package/dist/index.css +75 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.js +41 -0
- package/dist/styles/animation.cjs +9 -0
- package/dist/styles/animation.d.ts +5 -0
- package/dist/styles/animation.js +7 -0
- package/dist/styles/css-helper-classes/flex.css +113 -0
- package/dist/styles/css-helper-classes/spacing.css +312 -0
- package/dist/styles/css-helper-classes/typography.css +11 -0
- package/dist/styles/fonts/Roboto/OFL.txt +93 -0
- package/dist/styles/fonts/Roboto/README.txt +118 -0
- package/dist/styles/fonts/Roboto/Roboto-Black.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-BlackItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-Bold.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-BoldItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-ExtraBold.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-ExtraBoldItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-ExtraLight.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-ExtraLightItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-Italic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-Light.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-LightItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-Medium.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-MediumItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-Regular.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-SemiBold.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-SemiBoldItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-Thin.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto-ThinItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-Black.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-BlackItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-Bold.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-BoldItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-ExtraBold.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-ExtraBoldItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-ExtraLight.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-ExtraLightItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-Italic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-Light.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-LightItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-Medium.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-MediumItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-Regular.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-SemiBold.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-SemiBoldItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-Thin.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_Condensed-ThinItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-Black.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-BlackItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-Bold.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-BoldItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-ExtraBold.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-ExtraBoldItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-ExtraLight.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-ExtraLightItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-Italic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-Light.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-LightItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-Medium.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-MediumItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-Regular.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-SemiBold.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-SemiBoldItalic.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-Thin.ttf +0 -0
- package/dist/styles/fonts/Roboto/Roboto_SemiCondensed-ThinItalic.ttf +0 -0
- package/dist/styles/fonts/Tajawal/OFL.txt +93 -0
- package/dist/styles/fonts/Tajawal/Tajawal-Black.ttf +0 -0
- package/dist/styles/fonts/Tajawal/Tajawal-Bold.ttf +0 -0
- package/dist/styles/fonts/Tajawal/Tajawal-ExtraBold.ttf +0 -0
- package/dist/styles/fonts/Tajawal/Tajawal-ExtraLight.ttf +0 -0
- package/dist/styles/fonts/Tajawal/Tajawal-Light.ttf +0 -0
- package/dist/styles/fonts/Tajawal/Tajawal-Medium.ttf +0 -0
- package/dist/styles/fonts/Tajawal/Tajawal-Regular.ttf +0 -0
- package/dist/styles/styles.css +377 -0
- package/dist/styles/themes/dbc/base.css +141 -0
- package/dist/styles/themes/dbc/colors.css +320 -0
- package/dist/styles/themes/filmstriben-budget/theme.css +22 -0
- package/dist/styles/themes/types.cjs +2 -0
- package/dist/styles/themes/types.d.ts +16 -0
- package/dist/styles/themes/types.js +1 -0
- package/dist/styles.css +377 -0
- package/dist/tanstack.cjs +26 -0
- package/dist/tanstack.d.ts +3 -0
- package/dist/tanstack.js +3 -0
- package/dist/themes/dbc.css +3 -0
- package/dist/themes/filmstriben-budget.css +3 -0
- package/dist/types/a11y-props.types.cjs +2 -0
- package/dist/types/a11y-props.types.d.ts +8 -0
- package/dist/types/a11y-props.types.js +1 -0
- package/dist/types/assets.d.cjs +2 -0
- package/dist/types/assets.d.js +1 -0
- package/dist/types/css.d.cjs +2 -0
- package/dist/types/css.d.js +1 -0
- package/dist/types/sizes.types.cjs +2 -0
- package/dist/types/sizes.types.d.ts +2 -0
- package/dist/types/sizes.types.js +1 -0
- package/dist/utils/arrays/nested-filtering.cjs +40 -0
- package/dist/utils/arrays/nested-filtering.d.ts +9 -0
- package/dist/utils/arrays/nested-filtering.js +38 -0
- package/dist/utils/cookie.utils.cjs +44 -0
- package/dist/utils/cookie.utils.d.ts +19 -0
- package/dist/utils/cookie.utils.js +40 -0
- package/dist/utils/date/formatDate.cjs +49 -0
- package/dist/utils/date/formatDate.d.ts +28 -0
- package/dist/utils/date/formatDate.js +47 -0
- package/dist/utils/localStorage.utils.cjs +53 -0
- package/dist/utils/localStorage.utils.d.ts +19 -0
- package/dist/utils/localStorage.utils.js +49 -0
- package/dist/utils/text/get-highlighted-segments.cjs +49 -0
- package/dist/utils/text/get-highlighted-segments.d.ts +5 -0
- package/dist/utils/text/get-highlighted-segments.js +47 -0
- package/package.json +2 -1
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
/* When PageLayout owns scrolling, the body shouldn't reserve scrollbar gutter space.
|
|
2
|
+
This prevents the right-side gap that body { overflow-y: scroll } would otherwise create. */
|
|
3
|
+
:global(body):has([data-contain-scrolling]) {
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/* Root shell */
|
|
8
|
+
.root {
|
|
9
|
+
width: 100%;
|
|
10
|
+
max-width: 100%;
|
|
11
|
+
display: grid;
|
|
12
|
+
gap: 0;
|
|
13
|
+
|
|
14
|
+
/* Banner height computed from its own tokens (not measured) — accurate for the
|
|
15
|
+
built-in EnvironmentBanner; off by the difference for a custom-height banner. */
|
|
16
|
+
--page-layout-banner-height: calc(
|
|
17
|
+
var(--spacing-2xs) * 2 + var(--font-size-md) * var(--line-height-normal)
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Viewport handling:
|
|
22
|
+
- containScrolling => app-shell: lock to viewport and manage scroll in regions
|
|
23
|
+
- documentScrolling => let page scroll normally
|
|
24
|
+
*/
|
|
25
|
+
.containScrolling {
|
|
26
|
+
height: 100vh;
|
|
27
|
+
height: 100dvh;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.documentScrolling {
|
|
32
|
+
min-height: 100vh;
|
|
33
|
+
min-height: 100dvh;
|
|
34
|
+
overflow: visible;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* Orientation layouts */
|
|
38
|
+
.vertical {
|
|
39
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.horizontal {
|
|
43
|
+
grid-template-columns: minmax(0, 1fr);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Banner: spans both sidebar and main columns */
|
|
47
|
+
.banner {
|
|
48
|
+
grid-column: 1 / -1;
|
|
49
|
+
min-width: 0;
|
|
50
|
+
flex: 0 0 auto;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Keep the banner visible while scrolling instead of it scrolling away; header and
|
|
54
|
+
sidebar stick right below it (see their top offsets further down). */
|
|
55
|
+
.documentScrolling .banner {
|
|
56
|
+
position: sticky;
|
|
57
|
+
top: 0;
|
|
58
|
+
z-index: calc(var(--z-sticky) + 1);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* Give the banner its natural height, then the rest to the sidebar+main row (the
|
|
62
|
+
`1fr` row grows beyond it if content needs more — the CSS-grid sticky-footer trick). */
|
|
63
|
+
.hasBanner {
|
|
64
|
+
grid-template-rows: auto 1fr;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* documentScrolling only has `min-height` (so long content can still grow the
|
|
68
|
+
page), which leaves the grid container's own block-size indefinite — and an
|
|
69
|
+
indefinite container makes the `1fr` row above size itself from its content
|
|
70
|
+
(i.e. from the sidebar's own capped height below) instead of from real
|
|
71
|
+
leftover viewport space. Any drift between --page-layout-banner-height's
|
|
72
|
+
estimate and the banner's real rendered height then inflated the whole page,
|
|
73
|
+
but only once the sidenav's content was tall enough to hit that cap — giving
|
|
74
|
+
this one combination a real, definite block-size makes the `1fr` row's size
|
|
75
|
+
come from the banner's actual rendered height, so the estimate is only ever
|
|
76
|
+
used below as a cap, never as the page's actual size. */
|
|
77
|
+
.documentScrolling.vertical.hasBanner {
|
|
78
|
+
height: 100vh;
|
|
79
|
+
height: 100dvh;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* Sidebar */
|
|
83
|
+
.sidebar {
|
|
84
|
+
min-width: 0;
|
|
85
|
+
min-block-size: 0; /* CRITICAL: else a tall sidenav grows the grid row instead of scrolling */
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
background: var(--color-bg-surface);
|
|
88
|
+
|
|
89
|
+
/* Hug the sidebar's own content width instead of stretching to fill the "auto"
|
|
90
|
+
column — some browsers size that column wider than the content once a
|
|
91
|
+
descendant scrollbar reserves space, leaving a visible gap otherwise. */
|
|
92
|
+
justify-self: start;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* The Sidebar/SidebarContainer inside already owns its own internal scrolling
|
|
96
|
+
(its root is height:100%; overflow:auto). This wrapper only needs to cap the
|
|
97
|
+
available height — if it *also* reserves its own scrollbar, that scrollbar's
|
|
98
|
+
width gets folded into this box's max-content size (used by `justify-self:
|
|
99
|
+
start` above), making it a scrollbar's-width wider than the fixed-width
|
|
100
|
+
Sidebar inside and leaving a gap on the right edge. */
|
|
101
|
+
.containScrolling .sidebar {
|
|
102
|
+
overflow: hidden;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* Pin the sidebar to the viewport and let it scroll independently of the document.
|
|
106
|
+
max-block-size is a hard cap: a grid row's "auto" size still grows to fit a long
|
|
107
|
+
sidenav's content otherwise (min-block-size: 0 alone doesn't stop that). */
|
|
108
|
+
.documentScrolling.vertical .sidebar {
|
|
109
|
+
position: sticky;
|
|
110
|
+
top: 0;
|
|
111
|
+
max-block-size: 100vh;
|
|
112
|
+
max-block-size: 100dvh;
|
|
113
|
+
/* See the .containScrolling .sidebar comment above — same double-scrollbar
|
|
114
|
+
reasoning applies here. */
|
|
115
|
+
overflow: hidden;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* Leave room for the banner's height, and stick below it instead of at top:0 so it
|
|
119
|
+
doesn't slide up underneath the now-sticky banner while scrolling. */
|
|
120
|
+
.documentScrolling.vertical.hasBanner .sidebar {
|
|
121
|
+
top: var(--page-layout-banner-height);
|
|
122
|
+
max-block-size: calc(100vh - var(--page-layout-banner-height));
|
|
123
|
+
max-block-size: calc(100dvh - var(--page-layout-banner-height));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* Without a banner, the sidebar is the grid's only row (sizes to content, doesn't
|
|
127
|
+
stretch), so it needs an explicit height. With a banner, it stretches to fill the
|
|
128
|
+
`1fr` row instead (see .hasBanner above). */
|
|
129
|
+
.documentScrolling.vertical:not(.hasBanner) .sidebar {
|
|
130
|
+
align-self: start;
|
|
131
|
+
block-size: 100vh;
|
|
132
|
+
block-size: 100dvh;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/* In horizontal orientation, sidebar becomes a full-width top block if used */
|
|
136
|
+
.horizontal .sidebar {
|
|
137
|
+
grid-column: 1 / -1;
|
|
138
|
+
justify-self: stretch;
|
|
139
|
+
border-right: none;
|
|
140
|
+
border-bottom: var(--border-width-thin) solid var(--color-border-subtle);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* Main column:
|
|
144
|
+
Use flex so the "rest of space" logic works reliably.
|
|
145
|
+
*/
|
|
146
|
+
.mainColumn {
|
|
147
|
+
min-width: 0;
|
|
148
|
+
display: flex;
|
|
149
|
+
flex-direction: column;
|
|
150
|
+
background: var(--color-bg-surface);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* In containScrolling mode, mainColumn must fill the viewport height
|
|
154
|
+
so the flex "remaining space" can be computed.
|
|
155
|
+
*/
|
|
156
|
+
.containScrolling .mainColumn {
|
|
157
|
+
height: 100%;
|
|
158
|
+
min-height: 0; /* important: allows children to shrink */
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* Regions */
|
|
162
|
+
.header {
|
|
163
|
+
min-width: 0;
|
|
164
|
+
background: var(--color-bg-surface);
|
|
165
|
+
border-bottom: var(--border-width-thin) solid var(--color-border-default);
|
|
166
|
+
flex: 0 0 auto;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* Sticky header only when the document is scrolling (body scroll) */
|
|
170
|
+
.documentScrolling .header {
|
|
171
|
+
position: sticky;
|
|
172
|
+
top: 0;
|
|
173
|
+
z-index: var(--z-sticky);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/* Stick right below the (also sticky) banner instead of underneath it. */
|
|
177
|
+
.documentScrolling.hasBanner .header {
|
|
178
|
+
top: var(--page-layout-banner-height);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.hero {
|
|
182
|
+
min-width: 0;
|
|
183
|
+
background: var(--color-bg-surface);
|
|
184
|
+
border-bottom: var(--border-width-thin) solid var(--color-border-subtle);
|
|
185
|
+
flex: 0 0 auto;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/* Scroll wrapper: contains content + footer */
|
|
189
|
+
.mainScroll {
|
|
190
|
+
min-width: 0;
|
|
191
|
+
min-height: 0; /* CRITICAL for nested flex/scroll */
|
|
192
|
+
display: flex;
|
|
193
|
+
flex-direction: column;
|
|
194
|
+
|
|
195
|
+
/* This is the "take all remaining space" bit */
|
|
196
|
+
flex: 1 1 auto;
|
|
197
|
+
|
|
198
|
+
/* default: documentScrolling uses normal page flow */
|
|
199
|
+
overflow: visible;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/* Contained scrolling: mainScroll scrolls (includes footer) */
|
|
203
|
+
.containScrolling .mainScroll {
|
|
204
|
+
overflow: auto;
|
|
205
|
+
-webkit-overflow-scrolling: touch;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/* Content area (not a scroll container anymore) */
|
|
209
|
+
.content {
|
|
210
|
+
min-width: 0;
|
|
211
|
+
min-height: 0;
|
|
212
|
+
flex: 1 1 auto; /* take remaining space inside mainScroll */
|
|
213
|
+
display: flex; /* lets contentInner stretch */
|
|
214
|
+
flex-direction: column;
|
|
215
|
+
align-items: center;
|
|
216
|
+
|
|
217
|
+
background: var(--color-bg-surface);
|
|
218
|
+
padding: var(--spacing-md);
|
|
219
|
+
overflow: visible;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.horizontal .content {
|
|
223
|
+
padding-top: var(--spacing-lg);
|
|
224
|
+
padding-inline: var(--spacing-lg);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.footer {
|
|
228
|
+
min-width: 0;
|
|
229
|
+
background: var(--color-bg-surface-subtle);
|
|
230
|
+
display: flex;
|
|
231
|
+
justify-content: center;
|
|
232
|
+
padding-inline: var(--spacing-md);
|
|
233
|
+
|
|
234
|
+
/* When there is extra space (content is short), this pushes footer to the bottom.
|
|
235
|
+
When content is long, footer follows content normally and is reached by scrolling.
|
|
236
|
+
*/
|
|
237
|
+
margin-top: auto;
|
|
238
|
+
flex: 0 0 auto;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.horizontal .footer {
|
|
242
|
+
padding-inline: var(--spacing-lg);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/* Header slot wrappers */
|
|
246
|
+
.headerContainer {
|
|
247
|
+
display: flex;
|
|
248
|
+
justify-content: center;
|
|
249
|
+
width: 100%;
|
|
250
|
+
padding-inline: var(--spacing-md);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.horizontal .headerContainer {
|
|
254
|
+
padding-inline: var(--spacing-lg);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.headerContent {
|
|
258
|
+
width: 100%;
|
|
259
|
+
box-sizing: border-box;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.footerContent {
|
|
263
|
+
width: 100%;
|
|
264
|
+
box-sizing: border-box;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.maxWidthMd {
|
|
268
|
+
max-width: 1600px;
|
|
269
|
+
margin-inline: auto;
|
|
270
|
+
width: 100%;
|
|
271
|
+
box-sizing: border-box;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.maxWidthSm {
|
|
275
|
+
margin-inline: auto;
|
|
276
|
+
width: 100%;
|
|
277
|
+
box-sizing: border-box;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
@media (min-width: 640px) {
|
|
281
|
+
.maxWidthSm {
|
|
282
|
+
max-width: 640px;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
@media (min-width: 768px) {
|
|
287
|
+
.maxWidthSm {
|
|
288
|
+
max-width: 668px;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
@media (min-width: 1024px) {
|
|
293
|
+
.maxWidthSm {
|
|
294
|
+
max-width: 924px;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
@media (min-width: 1280px) {
|
|
299
|
+
.maxWidthSm {
|
|
300
|
+
max-width: 1180px;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/* Content slot inner wrapper (so maxWidth works without interfering with scroll) */
|
|
305
|
+
.contentInner {
|
|
306
|
+
display: flex;
|
|
307
|
+
flex-direction: column;
|
|
308
|
+
gap: var(--spacing-xl);
|
|
309
|
+
width: 100%;
|
|
310
|
+
box-sizing: border-box;
|
|
311
|
+
min-width: 0;
|
|
312
|
+
|
|
313
|
+
/* This is what makes your "main content" actually expand to fill */
|
|
314
|
+
flex: 1 1 auto;
|
|
315
|
+
min-height: 0;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/* Optional: for small viewport heights, avoid forced viewport locking */
|
|
319
|
+
@media (max-height: 400px) {
|
|
320
|
+
.containScrolling {
|
|
321
|
+
height: auto;
|
|
322
|
+
overflow: visible;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/* In this mode, avoid forcing a nested scroll region */
|
|
326
|
+
.containScrolling .mainScroll {
|
|
327
|
+
overflow: visible;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.containScrolling .mainColumn {
|
|
331
|
+
height: auto;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var logo = require('../../../../assets/logo');
|
|
5
|
+
var Hyperlink = require('../../../../components/hyperlink/Hyperlink');
|
|
6
|
+
var styles = require('./Footer.module.css');
|
|
7
|
+
|
|
8
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
|
|
10
|
+
var styles__default = /*#__PURE__*/_interopDefault(styles);
|
|
11
|
+
|
|
12
|
+
const DEFAULT_META_PARTS = [
|
|
13
|
+
"Tempovej 7-11",
|
|
14
|
+
"DK-2750 Ballerup",
|
|
15
|
+
"+45 44 86 77 11",
|
|
16
|
+
`\xA9 ${(/* @__PURE__ */ new Date()).getFullYear()} DBC DIGITAL A/S`
|
|
17
|
+
];
|
|
18
|
+
const DEFAULT_LINKS = [
|
|
19
|
+
{
|
|
20
|
+
label: "Kundeservice",
|
|
21
|
+
href: "https://kundeservice.dbc.dk",
|
|
22
|
+
external: true
|
|
23
|
+
}
|
|
24
|
+
];
|
|
25
|
+
function Footer({
|
|
26
|
+
links = DEFAULT_LINKS,
|
|
27
|
+
metaParts = DEFAULT_META_PARTS,
|
|
28
|
+
version,
|
|
29
|
+
extraLinks
|
|
30
|
+
}) {
|
|
31
|
+
const displayMetaParts = version && metaParts.length > 0 ? metaParts.map(
|
|
32
|
+
(part, index) => index === metaParts.length - 1 ? `${part} \xB7 ${version}` : part
|
|
33
|
+
) : metaParts;
|
|
34
|
+
return /* @__PURE__ */ jsxRuntime.jsx("footer", { className: styles__default.default.footer, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles__default.default.inner, children: [
|
|
35
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles__default.default.brand, children: [
|
|
36
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles__default.default.logoRow, children: /* @__PURE__ */ jsxRuntime.jsx(logo.Logo, {}) }),
|
|
37
|
+
/* @__PURE__ */ jsxRuntime.jsx("address", { className: styles__default.default.meta, children: displayMetaParts.map((part) => /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles__default.default.part, children: part }, part)) })
|
|
38
|
+
] }),
|
|
39
|
+
/* @__PURE__ */ jsxRuntime.jsxs("nav", { className: styles__default.default.links, "aria-label": "Footer navigation", children: [
|
|
40
|
+
extraLinks && extraLinks.length > 0 && (extraLinks == null ? void 0 : extraLinks.map((link, index) => /* @__PURE__ */ jsxRuntime.jsx("span", { children: link }, index))),
|
|
41
|
+
links.map((link) => /* @__PURE__ */ jsxRuntime.jsx("span", { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
42
|
+
Hyperlink.Hyperlink,
|
|
43
|
+
{
|
|
44
|
+
href: link.href,
|
|
45
|
+
...link.external ? { target: "_blank", rel: "noopener noreferrer" } : {},
|
|
46
|
+
children: link.label
|
|
47
|
+
}
|
|
48
|
+
) }, link.label))
|
|
49
|
+
] })
|
|
50
|
+
] }) });
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
exports.Footer = Footer;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { JSX, ReactElement } from 'react';
|
|
2
|
+
export interface FooterLink {
|
|
3
|
+
label: string;
|
|
4
|
+
href: string;
|
|
5
|
+
external?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface FooterProps {
|
|
8
|
+
links?: FooterLink[];
|
|
9
|
+
metaParts?: string[];
|
|
10
|
+
version?: string | number;
|
|
11
|
+
/** Extra links rendered before the default links. Pass framework link elements (e.g. Next.js <Link>). */
|
|
12
|
+
extraLinks?: ReactElement[];
|
|
13
|
+
}
|
|
14
|
+
export declare function Footer({ links, metaParts, version, extraLinks, }: FooterProps): JSX.Element;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { Logo } from '../../../../assets/logo';
|
|
3
|
+
import { Hyperlink } from '../../../../components/hyperlink/Hyperlink';
|
|
4
|
+
import styles from './Footer.module.css';
|
|
5
|
+
|
|
6
|
+
const DEFAULT_META_PARTS = [
|
|
7
|
+
"Tempovej 7-11",
|
|
8
|
+
"DK-2750 Ballerup",
|
|
9
|
+
"+45 44 86 77 11",
|
|
10
|
+
`\xA9 ${(/* @__PURE__ */ new Date()).getFullYear()} DBC DIGITAL A/S`
|
|
11
|
+
];
|
|
12
|
+
const DEFAULT_LINKS = [
|
|
13
|
+
{
|
|
14
|
+
label: "Kundeservice",
|
|
15
|
+
href: "https://kundeservice.dbc.dk",
|
|
16
|
+
external: true
|
|
17
|
+
}
|
|
18
|
+
];
|
|
19
|
+
function Footer({
|
|
20
|
+
links = DEFAULT_LINKS,
|
|
21
|
+
metaParts = DEFAULT_META_PARTS,
|
|
22
|
+
version,
|
|
23
|
+
extraLinks
|
|
24
|
+
}) {
|
|
25
|
+
const displayMetaParts = version && metaParts.length > 0 ? metaParts.map(
|
|
26
|
+
(part, index) => index === metaParts.length - 1 ? `${part} \xB7 ${version}` : part
|
|
27
|
+
) : metaParts;
|
|
28
|
+
return /* @__PURE__ */ jsx("footer", { className: styles.footer, children: /* @__PURE__ */ jsxs("div", { className: styles.inner, children: [
|
|
29
|
+
/* @__PURE__ */ jsxs("div", { className: styles.brand, children: [
|
|
30
|
+
/* @__PURE__ */ jsx("div", { className: styles.logoRow, children: /* @__PURE__ */ jsx(Logo, {}) }),
|
|
31
|
+
/* @__PURE__ */ jsx("address", { className: styles.meta, children: displayMetaParts.map((part) => /* @__PURE__ */ jsx("span", { className: styles.part, children: part }, part)) })
|
|
32
|
+
] }),
|
|
33
|
+
/* @__PURE__ */ jsxs("nav", { className: styles.links, "aria-label": "Footer navigation", children: [
|
|
34
|
+
extraLinks && extraLinks.length > 0 && (extraLinks == null ? void 0 : extraLinks.map((link, index) => /* @__PURE__ */ jsx("span", { children: link }, index))),
|
|
35
|
+
links.map((link) => /* @__PURE__ */ jsx("span", { children: /* @__PURE__ */ jsx(
|
|
36
|
+
Hyperlink,
|
|
37
|
+
{
|
|
38
|
+
href: link.href,
|
|
39
|
+
...link.external ? { target: "_blank", rel: "noopener noreferrer" } : {},
|
|
40
|
+
children: link.label
|
|
41
|
+
}
|
|
42
|
+
) }, link.label))
|
|
43
|
+
] })
|
|
44
|
+
] }) });
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export { Footer };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
.footer {
|
|
2
|
+
inline-size: 100%;
|
|
3
|
+
background: var(--color-bg-surface-subtle);
|
|
4
|
+
line-height: var(--line-height-normal);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.inner {
|
|
8
|
+
inline-size: 100%;
|
|
9
|
+
padding-block: var(--spacing-lg);
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
align-items: flex-start;
|
|
13
|
+
gap: var(--spacing-2xl);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.brand {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
gap: var(--spacing-xs);
|
|
20
|
+
flex-shrink: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.logoRow {
|
|
24
|
+
flex-shrink: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.logoRow svg {
|
|
28
|
+
height: 24px;
|
|
29
|
+
width: auto;
|
|
30
|
+
color: var(--color-brand);
|
|
31
|
+
display: block;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.meta {
|
|
35
|
+
font-style: normal;
|
|
36
|
+
margin: 0;
|
|
37
|
+
color: var(--color-fg-subtle);
|
|
38
|
+
line-height: var(--line-height-normal);
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
gap: 1px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.part {
|
|
45
|
+
white-space: nowrap;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.links {
|
|
49
|
+
display: flex;
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
align-items: flex-start;
|
|
52
|
+
gap: 0;
|
|
53
|
+
line-height: var(--line-height-normal);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.linkGroup {
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
align-items: flex-start;
|
|
60
|
+
gap: var(--spacing-2xs);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.linkGroup + .linkGroup {
|
|
64
|
+
margin-block-start: var(--spacing-sm);
|
|
65
|
+
padding-inline: 0;
|
|
66
|
+
border-inline-start: none;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.linkItem {
|
|
70
|
+
white-space: nowrap;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@media (max-width: 640px) {
|
|
74
|
+
.inner {
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
gap: var(--spacing-md);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.linkGroup {
|
|
80
|
+
padding-inline: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.linkGroup:first-child {
|
|
84
|
+
padding-inline-start: 0;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
var lucideReact = require('lucide-react');
|
|
6
|
+
var react = require('react');
|
|
7
|
+
var styles = require('./Pagination.module.css');
|
|
8
|
+
var Button = require('../button/Button');
|
|
9
|
+
var Menu = require('../menu/Menu');
|
|
10
|
+
var Popover = require('../popover/Popover');
|
|
11
|
+
|
|
12
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
|
|
14
|
+
var styles__default = /*#__PURE__*/_interopDefault(styles);
|
|
15
|
+
|
|
16
|
+
const DEFAULT_PAGE_SIZE_OPTIONS = [20, 50, 100];
|
|
17
|
+
const NUMBER_LOCALE = "da-DK";
|
|
18
|
+
function Pagination({
|
|
19
|
+
itemsCount = 0,
|
|
20
|
+
skip = 0,
|
|
21
|
+
take = DEFAULT_PAGE_SIZE_OPTIONS[1],
|
|
22
|
+
onPageChange,
|
|
23
|
+
pageSizeOptions = DEFAULT_PAGE_SIZE_OPTIONS,
|
|
24
|
+
showFirstLast = true,
|
|
25
|
+
showGoToPage = true,
|
|
26
|
+
showPageSize = true
|
|
27
|
+
}) {
|
|
28
|
+
const popoverRef = react.useRef(null);
|
|
29
|
+
const pageSizeRef = react.useRef(null);
|
|
30
|
+
const formatNumber = react.useCallback((value) => value.toLocaleString(NUMBER_LOCALE), []);
|
|
31
|
+
const totalPages = react.useMemo(
|
|
32
|
+
() => Math.max(1, Math.ceil(itemsCount / Math.max(1, take))),
|
|
33
|
+
[itemsCount, take]
|
|
34
|
+
);
|
|
35
|
+
const currentPage = react.useMemo(() => {
|
|
36
|
+
const p = Math.floor(skip / Math.max(1, take)) + 1;
|
|
37
|
+
return Math.min(Math.max(1, p), totalPages);
|
|
38
|
+
}, [skip, take, totalPages]);
|
|
39
|
+
const emit = react.useCallback(
|
|
40
|
+
(page, nextTake = take) => {
|
|
41
|
+
const nextTotalPages = Math.max(1, Math.ceil(itemsCount / Math.max(1, nextTake)));
|
|
42
|
+
const clampedPage = Math.min(Math.max(1, page), nextTotalPages);
|
|
43
|
+
const nextSkip = (clampedPage - 1) * nextTake;
|
|
44
|
+
onPageChange == null ? void 0 : onPageChange({
|
|
45
|
+
page: clampedPage,
|
|
46
|
+
take: nextTake,
|
|
47
|
+
skip: nextSkip,
|
|
48
|
+
totalPages: nextTotalPages
|
|
49
|
+
});
|
|
50
|
+
},
|
|
51
|
+
[onPageChange, take, itemsCount]
|
|
52
|
+
);
|
|
53
|
+
const firstPage = react.useCallback(() => emit(1), [emit]);
|
|
54
|
+
const lastPage = react.useCallback(() => emit(totalPages), [emit, totalPages]);
|
|
55
|
+
const prevPage = react.useCallback(() => emit(currentPage - 1), [emit, currentPage]);
|
|
56
|
+
const nextPage = react.useCallback(() => emit(currentPage + 1), [emit, currentPage]);
|
|
57
|
+
const goToPage = react.useCallback((page) => emit(page), [emit]);
|
|
58
|
+
const canPrev = currentPage > 1;
|
|
59
|
+
const canNext = currentPage < totalPages;
|
|
60
|
+
const rangeLabel = react.useMemo(() => {
|
|
61
|
+
if (itemsCount <= 0) return "0 af 0";
|
|
62
|
+
const first = skip + 1;
|
|
63
|
+
const last = Math.min(skip + take, itemsCount);
|
|
64
|
+
return `${formatNumber(first)}\u2013${formatNumber(last)} af ${formatNumber(itemsCount)}`;
|
|
65
|
+
}, [formatNumber, itemsCount, skip, take]);
|
|
66
|
+
const pages = react.useMemo(() => Array.from({ length: totalPages }, (_, i) => i + 1), [totalPages]);
|
|
67
|
+
const handlePageSizeChange = react.useCallback((size) => emit(1, size), [emit]);
|
|
68
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles__default.default.container, children: [
|
|
69
|
+
showFirstLast && /* @__PURE__ */ jsxRuntime.jsx(
|
|
70
|
+
Button.Button,
|
|
71
|
+
{
|
|
72
|
+
size: "sm",
|
|
73
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronsLeft, {}),
|
|
74
|
+
disabled: !canPrev,
|
|
75
|
+
onClick: firstPage,
|
|
76
|
+
"aria-label": "First page"
|
|
77
|
+
}
|
|
78
|
+
),
|
|
79
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
80
|
+
Button.Button,
|
|
81
|
+
{
|
|
82
|
+
size: "sm",
|
|
83
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeft, {}),
|
|
84
|
+
disabled: !canPrev,
|
|
85
|
+
onClick: prevPage,
|
|
86
|
+
"aria-label": "Previous page"
|
|
87
|
+
}
|
|
88
|
+
),
|
|
89
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles__default.default.range, "aria-live": "polite", children: rangeLabel }),
|
|
90
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
91
|
+
Button.Button,
|
|
92
|
+
{
|
|
93
|
+
size: "sm",
|
|
94
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowRight, {}),
|
|
95
|
+
disabled: !canNext,
|
|
96
|
+
onClick: nextPage,
|
|
97
|
+
"aria-label": "Next page"
|
|
98
|
+
}
|
|
99
|
+
),
|
|
100
|
+
showFirstLast && /* @__PURE__ */ jsxRuntime.jsx(
|
|
101
|
+
Button.Button,
|
|
102
|
+
{
|
|
103
|
+
size: "sm",
|
|
104
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronsRight, {}),
|
|
105
|
+
disabled: !canNext,
|
|
106
|
+
onClick: lastPage,
|
|
107
|
+
"aria-label": "Last page"
|
|
108
|
+
}
|
|
109
|
+
),
|
|
110
|
+
showGoToPage && /* @__PURE__ */ jsxRuntime.jsx(
|
|
111
|
+
Popover.Popover,
|
|
112
|
+
{
|
|
113
|
+
ref: popoverRef,
|
|
114
|
+
trigger: (open) => /* @__PURE__ */ jsxRuntime.jsxs(Button.Button, { size: "sm", variant: "outlined", onClick: open, children: [
|
|
115
|
+
"Side ",
|
|
116
|
+
formatNumber(currentPage),
|
|
117
|
+
"/",
|
|
118
|
+
formatNumber(totalPages),
|
|
119
|
+
" ",
|
|
120
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { size: 16 })
|
|
121
|
+
] }),
|
|
122
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Menu.Menu, { children: pages == null ? void 0 : pages.map((page) => /* @__PURE__ */ jsxRuntime.jsx(Menu.Menu.Item, { active: page === currentPage, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
123
|
+
"button",
|
|
124
|
+
{
|
|
125
|
+
onClick: () => {
|
|
126
|
+
var _a;
|
|
127
|
+
goToPage(page);
|
|
128
|
+
(_a = popoverRef.current) == null ? void 0 : _a.close();
|
|
129
|
+
},
|
|
130
|
+
children: formatNumber(page)
|
|
131
|
+
}
|
|
132
|
+
) }, page)) })
|
|
133
|
+
}
|
|
134
|
+
),
|
|
135
|
+
showPageSize && /* @__PURE__ */ jsxRuntime.jsx(
|
|
136
|
+
Popover.Popover,
|
|
137
|
+
{
|
|
138
|
+
ref: pageSizeRef,
|
|
139
|
+
trigger: (open) => /* @__PURE__ */ jsxRuntime.jsxs(Button.Button, { size: "sm", variant: "outlined", onClick: open, children: [
|
|
140
|
+
"Vis ",
|
|
141
|
+
formatNumber(take),
|
|
142
|
+
" ",
|
|
143
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { size: 16 })
|
|
144
|
+
] }),
|
|
145
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Menu.Menu, { children: pageSizeOptions == null ? void 0 : pageSizeOptions.map((size) => /* @__PURE__ */ jsxRuntime.jsx(Menu.Menu.Item, { active: size === take, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
146
|
+
"button",
|
|
147
|
+
{
|
|
148
|
+
onClick: () => {
|
|
149
|
+
var _a;
|
|
150
|
+
handlePageSizeChange(size);
|
|
151
|
+
(_a = pageSizeRef.current) == null ? void 0 : _a.close();
|
|
152
|
+
},
|
|
153
|
+
children: formatNumber(size)
|
|
154
|
+
}
|
|
155
|
+
) }, size)) })
|
|
156
|
+
}
|
|
157
|
+
)
|
|
158
|
+
] });
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
exports.Pagination = Pagination;
|