@dbcdk/react-components 0.0.168 → 0.0.169
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/package.json +1 -1
- package/dist/assets/logo.cjs +0 -87
- package/dist/assets/logo.d.ts +0 -2
- package/dist/assets/logo.js +0 -85
- package/dist/client.cjs +0 -629
- package/dist/client.d.ts +0 -89
- package/dist/client.js +0 -90
- package/dist/components/accordion/Accordion.cjs +0 -127
- package/dist/components/accordion/Accordion.d.ts +0 -36
- package/dist/components/accordion/Accordion.js +0 -121
- package/dist/components/accordion/Accordion.module.css +0 -41
- package/dist/components/accordion/components/AccordionRow.cjs +0 -129
- package/dist/components/accordion/components/AccordionRow.d.ts +0 -14
- package/dist/components/accordion/components/AccordionRow.js +0 -123
- package/dist/components/accordion/components/AccordionRow.module.css +0 -129
- package/dist/components/alert/Alert.cjs +0 -52
- package/dist/components/alert/Alert.d.ts +0 -14
- package/dist/components/alert/Alert.js +0 -46
- package/dist/components/alert/Alert.module.css +0 -102
- package/dist/components/app-header/AppHeader.cjs +0 -14
- package/dist/components/app-header/AppHeader.d.ts +0 -8
- package/dist/components/app-header/AppHeader.js +0 -8
- package/dist/components/app-header/AppHeader.module.css +0 -74
- package/dist/components/attribute-chip/AttributeChip.cjs +0 -36
- package/dist/components/attribute-chip/AttributeChip.d.ts +0 -11
- package/dist/components/attribute-chip/AttributeChip.js +0 -30
- package/dist/components/attribute-chip/AttributeChip.module.css +0 -64
- package/dist/components/avatar/Avatar.cjs +0 -111
- package/dist/components/avatar/Avatar.d.ts +0 -17
- package/dist/components/avatar/Avatar.js +0 -86
- package/dist/components/avatar/Avatar.module.css +0 -91
- package/dist/components/breadcrumbs/Breadcrumbs.cjs +0 -24
- package/dist/components/breadcrumbs/Breadcrumbs.d.ts +0 -12
- package/dist/components/breadcrumbs/Breadcrumbs.js +0 -18
- package/dist/components/breadcrumbs/Breadcrumbs.module.css +0 -77
- package/dist/components/button/Button.cjs +0 -150
- package/dist/components/button/Button.d.ts +0 -18
- package/dist/components/button/Button.js +0 -125
- package/dist/components/button/Button.module.css +0 -266
- package/dist/components/button-select/ButtonSelect.cjs +0 -35
- package/dist/components/button-select/ButtonSelect.d.ts +0 -16
- package/dist/components/button-select/ButtonSelect.js +0 -29
- package/dist/components/button-select/ButtonSelect.module.css +0 -40
- package/dist/components/card/Card.cjs +0 -109
- package/dist/components/card/Card.d.ts +0 -37
- package/dist/components/card/Card.js +0 -103
- package/dist/components/card/Card.module.css +0 -191
- package/dist/components/card/components/CardMeta.cjs +0 -62
- package/dist/components/card/components/CardMeta.d.ts +0 -16
- package/dist/components/card/components/CardMeta.js +0 -55
- package/dist/components/card/components/CardMeta.module.css +0 -55
- package/dist/components/card-container/CardContainer.cjs +0 -34
- package/dist/components/card-container/CardContainer.d.ts +0 -12
- package/dist/components/card-container/CardContainer.js +0 -28
- package/dist/components/card-container/CardContainer.module.css +0 -63
- package/dist/components/chip/Chip.cjs +0 -65
- package/dist/components/chip/Chip.d.ts +0 -16
- package/dist/components/chip/Chip.js +0 -59
- package/dist/components/chip/Chip.module.css +0 -247
- package/dist/components/circle/Circle.cjs +0 -39
- package/dist/components/circle/Circle.d.ts +0 -14
- package/dist/components/circle/Circle.js +0 -33
- package/dist/components/circle/Circle.module.css +0 -138
- package/dist/components/clear-button/ClearButton.cjs +0 -33
- package/dist/components/clear-button/ClearButton.d.ts +0 -8
- package/dist/components/clear-button/ClearButton.js +0 -27
- package/dist/components/clear-button/ClearButton.module.css +0 -26
- package/dist/components/code-block/CodeBlock.cjs +0 -107
- package/dist/components/code-block/CodeBlock.d.ts +0 -11
- package/dist/components/code-block/CodeBlock.js +0 -101
- package/dist/components/code-block/CodeBlock.module.css +0 -135
- package/dist/components/copy-button/CopyButton.cjs +0 -139
- package/dist/components/copy-button/CopyButton.d.ts +0 -13
- package/dist/components/copy-button/CopyButton.js +0 -133
- package/dist/components/copy-button/CopyButton.module.css +0 -22
- package/dist/components/datetime-picker/DateTimePicker.cjs +0 -563
- package/dist/components/datetime-picker/DateTimePicker.d.ts +0 -66
- package/dist/components/datetime-picker/DateTimePicker.js +0 -557
- package/dist/components/datetime-picker/DateTimePicker.module.css +0 -155
- package/dist/components/datetime-picker/dateTimeHelpers.cjs +0 -185
- package/dist/components/datetime-picker/dateTimeHelpers.d.ts +0 -37
- package/dist/components/datetime-picker/dateTimeHelpers.js +0 -166
- package/dist/components/divider/Divider.cjs +0 -22
- package/dist/components/divider/Divider.d.ts +0 -5
- package/dist/components/divider/Divider.js +0 -20
- package/dist/components/environment-banner/EnvironmentBanner.cjs +0 -20
- package/dist/components/environment-banner/EnvironmentBanner.d.ts +0 -13
- package/dist/components/environment-banner/EnvironmentBanner.js +0 -14
- package/dist/components/environment-banner/EnvironmentBanner.module.css +0 -54
- package/dist/components/filter-field/FilterField.cjs +0 -288
- package/dist/components/filter-field/FilterField.d.ts +0 -37
- package/dist/components/filter-field/FilterField.js +0 -281
- package/dist/components/filter-field/FilterField.module.css +0 -324
- package/dist/components/filtering/chip-multi-toggle/ChipMultiToggle.cjs +0 -115
- package/dist/components/filtering/chip-multi-toggle/ChipMultiToggle.d.ts +0 -35
- package/dist/components/filtering/chip-multi-toggle/ChipMultiToggle.js +0 -108
- package/dist/components/filtering/chip-multi-toggle/ChipMultiToggle.module.css +0 -59
- package/dist/components/forms/checkbox/Checkbox.cjs +0 -99
- package/dist/components/forms/checkbox/Checkbox.d.ts +0 -39
- package/dist/components/forms/checkbox/Checkbox.js +0 -93
- package/dist/components/forms/checkbox/Checkbox.module.css +0 -110
- package/dist/components/forms/checkbox-group/CheckboxGroup.cjs +0 -121
- package/dist/components/forms/checkbox-group/CheckboxGroup.d.ts +0 -47
- package/dist/components/forms/checkbox-group/CheckboxGroup.js +0 -115
- package/dist/components/forms/checkbox-group/CheckboxGroup.module.css +0 -115
- package/dist/components/forms/file-upload/FileUpload.cjs +0 -127
- package/dist/components/forms/file-upload/FileUpload.d.ts +0 -18
- package/dist/components/forms/file-upload/FileUpload.js +0 -121
- package/dist/components/forms/file-upload/FileUpload.module.css +0 -75
- package/dist/components/forms/form-select/FormSelect.cjs +0 -191
- package/dist/components/forms/form-select/FormSelect.d.ts +0 -35
- package/dist/components/forms/form-select/FormSelect.js +0 -166
- package/dist/components/forms/form-select/FormSelect.module.css +0 -236
- package/dist/components/forms/input/Input.cjs +0 -190
- package/dist/components/forms/input/Input.d.ts +0 -37
- package/dist/components/forms/input/Input.js +0 -184
- package/dist/components/forms/input/Input.module.css +0 -478
- package/dist/components/forms/input-container/InputContainer.cjs +0 -72
- package/dist/components/forms/input-container/InputContainer.d.ts +0 -18
- package/dist/components/forms/input-container/InputContainer.js +0 -66
- package/dist/components/forms/input-container/InputContainer.module.css +0 -59
- package/dist/components/forms/multi-select/MultiSelect.cjs +0 -229
- package/dist/components/forms/multi-select/MultiSelect.d.ts +0 -26
- package/dist/components/forms/multi-select/MultiSelect.js +0 -227
- package/dist/components/forms/radio-buttons/RadioButton.cjs +0 -94
- package/dist/components/forms/radio-buttons/RadioButton.d.ts +0 -46
- package/dist/components/forms/radio-buttons/RadioButton.js +0 -88
- package/dist/components/forms/radio-buttons/RadioButtonGroup.cjs +0 -74
- package/dist/components/forms/radio-buttons/RadioButtonGroup.d.ts +0 -25
- package/dist/components/forms/radio-buttons/RadioButtonGroup.js +0 -72
- package/dist/components/forms/radio-buttons/RadioButtons.module.css +0 -131
- package/dist/components/forms/select/Select.cjs +0 -287
- package/dist/components/forms/select/Select.d.ts +0 -24
- package/dist/components/forms/select/Select.js +0 -281
- package/dist/components/forms/select/Select.module.css +0 -41
- package/dist/components/forms/switch/Switch.cjs +0 -93
- package/dist/components/forms/switch/Switch.d.ts +0 -37
- package/dist/components/forms/switch/Switch.js +0 -87
- package/dist/components/forms/switch/Switch.module.css +0 -89
- package/dist/components/forms/text-area/Textarea.cjs +0 -118
- package/dist/components/forms/text-area/Textarea.d.ts +0 -17
- package/dist/components/forms/text-area/Textarea.js +0 -112
- package/dist/components/forms/text-area/Textarea.module.css +0 -70
- package/dist/components/forms/typeahead/Typeahead.cjs +0 -792
- package/dist/components/forms/typeahead/Typeahead.d.ts +0 -40
- package/dist/components/forms/typeahead/Typeahead.js +0 -768
- package/dist/components/forms/typeahead/Typeahead.module.css +0 -38
- package/dist/components/grid/Grid.cjs +0 -58
- package/dist/components/grid/Grid.d.ts +0 -29
- package/dist/components/grid/Grid.js +0 -51
- package/dist/components/grid/Grid.module.css +0 -44
- package/dist/components/headline/CollapsibleHeadline.cjs +0 -84
- package/dist/components/headline/CollapsibleHeadline.d.ts +0 -25
- package/dist/components/headline/CollapsibleHeadline.js +0 -78
- package/dist/components/headline/Headline.cjs +0 -59
- package/dist/components/headline/Headline.d.ts +0 -20
- package/dist/components/headline/Headline.js +0 -53
- package/dist/components/headline/Headline.module.css +0 -167
- package/dist/components/highlighted-text/HighlightedText.cjs +0 -21
- package/dist/components/highlighted-text/HighlightedText.d.ts +0 -7
- package/dist/components/highlighted-text/HighlightedText.js +0 -19
- package/dist/components/hyperlink/Hyperlink.cjs +0 -113
- package/dist/components/hyperlink/Hyperlink.d.ts +0 -24
- package/dist/components/hyperlink/Hyperlink.js +0 -88
- package/dist/components/hyperlink/Hyperlink.module.css +0 -121
- package/dist/components/icon/Icon.cjs +0 -39
- package/dist/components/icon/Icon.d.ts +0 -14
- package/dist/components/icon/Icon.js +0 -32
- package/dist/components/icon/Icon.module.css +0 -50
- package/dist/components/inline-status/InlineStatus.cjs +0 -39
- package/dist/components/inline-status/InlineStatus.d.ts +0 -11
- package/dist/components/inline-status/InlineStatus.js +0 -33
- package/dist/components/inline-status/InlineStatus.module.css +0 -98
- package/dist/components/interval-select/IntervalSelect.cjs +0 -203
- package/dist/components/interval-select/IntervalSelect.d.ts +0 -37
- package/dist/components/interval-select/IntervalSelect.js +0 -201
- package/dist/components/json-viewer/JsonNode.cjs +0 -124
- package/dist/components/json-viewer/JsonNode.d.ts +0 -3
- package/dist/components/json-viewer/JsonNode.js +0 -118
- package/dist/components/json-viewer/JsonViewer.cjs +0 -164
- package/dist/components/json-viewer/JsonViewer.d.ts +0 -4
- package/dist/components/json-viewer/JsonViewer.js +0 -158
- package/dist/components/json-viewer/JsonViewer.module.css +0 -346
- package/dist/components/json-viewer/types.cjs +0 -2
- package/dist/components/json-viewer/types.d.ts +0 -33
- package/dist/components/json-viewer/types.js +0 -1
- package/dist/components/json-viewer/useClipboardStatus.cjs +0 -15
- package/dist/components/json-viewer/useClipboardStatus.d.ts +0 -4
- package/dist/components/json-viewer/useClipboardStatus.js +0 -13
- package/dist/components/json-viewer/utils.cjs +0 -126
- package/dist/components/json-viewer/utils.d.ts +0 -17
- package/dist/components/json-viewer/utils.js +0 -111
- package/dist/components/lightbox/Lightbox.cjs +0 -291
- package/dist/components/lightbox/Lightbox.d.ts +0 -36
- package/dist/components/lightbox/Lightbox.js +0 -285
- package/dist/components/lightbox/Lightbox.module.css +0 -214
- package/dist/components/media-card/MediaCard.cjs +0 -87
- package/dist/components/media-card/MediaCard.d.ts +0 -21
- package/dist/components/media-card/MediaCard.js +0 -80
- package/dist/components/media-card/MediaCard.module.css +0 -91
- package/dist/components/menu/Menu.cjs +0 -455
- package/dist/components/menu/Menu.d.ts +0 -102
- package/dist/components/menu/Menu.js +0 -430
- package/dist/components/menu/Menu.module.css +0 -286
- package/dist/components/meta-bar/MetaBar.cjs +0 -28
- package/dist/components/meta-bar/MetaBar.d.ts +0 -12
- package/dist/components/meta-bar/MetaBar.js +0 -22
- package/dist/components/meta-bar/MetaBar.module.css +0 -27
- package/dist/components/metric-tile/MetricTile.cjs +0 -33
- package/dist/components/metric-tile/MetricTile.d.ts +0 -15
- package/dist/components/metric-tile/MetricTile.js +0 -27
- package/dist/components/metric-tile/MetricTile.module.css +0 -103
- package/dist/components/nav-bar/NavBar.cjs +0 -107
- package/dist/components/nav-bar/NavBar.d.ts +0 -44
- package/dist/components/nav-bar/NavBar.js +0 -101
- package/dist/components/nav-bar/NavBar.module.css +0 -243
- package/dist/components/overlay/fade-overlay/FadeOverlay.cjs +0 -30
- package/dist/components/overlay/fade-overlay/FadeOverlay.d.ts +0 -13
- package/dist/components/overlay/fade-overlay/FadeOverlay.js +0 -24
- package/dist/components/overlay/fade-overlay/FadeOverlay.module.css +0 -54
- package/dist/components/overlay/modal/Modal.cjs +0 -191
- package/dist/components/overlay/modal/Modal.d.ts +0 -29
- package/dist/components/overlay/modal/Modal.js +0 -185
- package/dist/components/overlay/modal/Modal.module.css +0 -112
- package/dist/components/overlay/modal/provider/ModalProvider.cjs +0 -98
- package/dist/components/overlay/modal/provider/ModalProvider.d.ts +0 -23
- package/dist/components/overlay/modal/provider/ModalProvider.js +0 -95
- package/dist/components/overlay/side-panel/SidePanel.cjs +0 -173
- package/dist/components/overlay/side-panel/SidePanel.d.ts +0 -25
- package/dist/components/overlay/side-panel/SidePanel.js +0 -167
- package/dist/components/overlay/side-panel/SidePanel.module.css +0 -177
- package/dist/components/overlay/side-panel/useSidePanel.cjs +0 -16
- package/dist/components/overlay/side-panel/useSidePanel.d.ts +0 -5
- package/dist/components/overlay/side-panel/useSidePanel.js +0 -14
- package/dist/components/overlay/tooltip/Tooltip.cjs +0 -56
- package/dist/components/overlay/tooltip/Tooltip.d.ts +0 -12
- package/dist/components/overlay/tooltip/Tooltip.js +0 -54
- package/dist/components/overlay/tooltip/Tooltip.module.css +0 -104
- package/dist/components/overlay/tooltip/TooltipProvider.cjs +0 -238
- package/dist/components/overlay/tooltip/TooltipProvider.d.ts +0 -20
- package/dist/components/overlay/tooltip/TooltipProvider.js +0 -231
- package/dist/components/overlay/tooltip/useTooltipTrigger.cjs +0 -117
- package/dist/components/overlay/tooltip/useTooltipTrigger.d.ts +0 -28
- package/dist/components/overlay/tooltip/useTooltipTrigger.js +0 -115
- package/dist/components/page/Page.cjs +0 -64
- package/dist/components/page/Page.d.ts +0 -21
- package/dist/components/page/Page.js +0 -58
- package/dist/components/page/Page.module.css +0 -95
- package/dist/components/page-layout/PageLayout.cjs +0 -126
- package/dist/components/page-layout/PageLayout.d.ts +0 -47
- package/dist/components/page-layout/PageLayout.js +0 -120
- package/dist/components/page-layout/PageLayout.module.css +0 -333
- package/dist/components/page-layout/components/footer/Footer.cjs +0 -53
- package/dist/components/page-layout/components/footer/Footer.d.ts +0 -14
- package/dist/components/page-layout/components/footer/Footer.js +0 -47
- package/dist/components/page-layout/components/footer/Footer.module.css +0 -86
- package/dist/components/pagination/Pagination.cjs +0 -161
- package/dist/components/pagination/Pagination.d.ts +0 -21
- package/dist/components/pagination/Pagination.js +0 -155
- package/dist/components/pagination/Pagination.module.css +0 -25
- package/dist/components/panel/Panel.cjs +0 -38
- package/dist/components/panel/Panel.d.ts +0 -13
- package/dist/components/panel/Panel.js +0 -32
- package/dist/components/panel/Panel.module.css +0 -30
- package/dist/components/popover/Popover.cjs +0 -331
- package/dist/components/popover/Popover.d.ts +0 -27
- package/dist/components/popover/Popover.js +0 -307
- package/dist/components/popover/Popover.module.css +0 -52
- package/dist/components/search-box/SearchBox.cjs +0 -297
- package/dist/components/search-box/SearchBox.d.ts +0 -30
- package/dist/components/search-box/SearchBox.js +0 -291
- package/dist/components/search-box/SearchBox.module.css +0 -27
- package/dist/components/section-label/SectionLabel.cjs +0 -18
- package/dist/components/section-label/SectionLabel.d.ts +0 -5
- package/dist/components/section-label/SectionLabel.js +0 -12
- package/dist/components/section-label/SectionLabel.module.css +0 -12
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.cjs +0 -130
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.d.ts +0 -27
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.js +0 -124
- package/dist/components/segmented-progress-bar/SegmentedProgressBar.module.css +0 -187
- package/dist/components/sidebar/Sidebar.cjs +0 -41
- package/dist/components/sidebar/Sidebar.d.ts +0 -23
- package/dist/components/sidebar/Sidebar.js +0 -39
- package/dist/components/sidebar/components/SidebarItem.cjs +0 -29
- package/dist/components/sidebar/components/SidebarItem.d.ts +0 -11
- package/dist/components/sidebar/components/SidebarItem.js +0 -27
- package/dist/components/sidebar/components/SidebarItem.module.css +0 -0
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.cjs +0 -153
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.d.ts +0 -13
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.js +0 -147
- package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.module.css +0 -47
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.cjs +0 -220
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.d.ts +0 -18
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.js +0 -213
- package/dist/components/sidebar/components/sidebar-container/SidebarContainer.module.css +0 -293
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.cjs +0 -54
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.d.ts +0 -13
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.js +0 -47
- package/dist/components/sidebar/components/sidebar-item-content/SidebarItemContent.module.css +0 -117
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.cjs +0 -61
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.d.ts +0 -4
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.js +0 -55
- package/dist/components/sidebar/components/sidebar-items/SidebarItems.module.css +0 -20
- package/dist/components/sidebar/components/sidenav-filteirng/SidenavFiltering.cjs +0 -96
- package/dist/components/sidebar/components/sidenav-filteirng/SidenavFiltering.d.ts +0 -7
- package/dist/components/sidebar/components/sidenav-filteirng/SidenavFiltering.js +0 -90
- package/dist/components/sidebar/providers/SidebarProvider.cjs +0 -223
- package/dist/components/sidebar/providers/SidebarProvider.d.ts +0 -34
- package/dist/components/sidebar/providers/SidebarProvider.js +0 -220
- package/dist/components/skeleton-loader/SkeletonLoader.cjs +0 -442
- package/dist/components/skeleton-loader/SkeletonLoader.d.ts +0 -9
- package/dist/components/skeleton-loader/SkeletonLoader.js +0 -440
- package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.cjs +0 -42
- package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.d.ts +0 -11
- package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.js +0 -36
- package/dist/components/skeleton-loader/skeleton-loader-item/SkeletonLoaderItem.module.css +0 -55
- package/dist/components/split-button/SplitButton.cjs +0 -46
- package/dist/components/split-button/SplitButton.d.ts +0 -16
- package/dist/components/split-button/SplitButton.js +0 -40
- package/dist/components/split-button/SplitButton.module.css +0 -32
- package/dist/components/split-pane/SplitPane.cjs +0 -191
- package/dist/components/split-pane/SplitPane.d.ts +0 -21
- package/dist/components/split-pane/SplitPane.js +0 -182
- package/dist/components/split-pane/SplitPane.module.css +0 -118
- package/dist/components/split-pane/provider/SplitPaneContext.cjs +0 -129
- package/dist/components/split-pane/provider/SplitPaneContext.d.ts +0 -24
- package/dist/components/split-pane/provider/SplitPaneContext.js +0 -121
- package/dist/components/stack/Stack.cjs +0 -56
- package/dist/components/stack/Stack.d.ts +0 -26
- package/dist/components/stack/Stack.js +0 -50
- package/dist/components/stack/Stack.module.css +0 -77
- package/dist/components/state-page/StatePage.cjs +0 -48
- package/dist/components/state-page/StatePage.d.ts +0 -10
- package/dist/components/state-page/StatePage.js +0 -42
- package/dist/components/state-page/StatePage.module.css +0 -9
- package/dist/components/state-page/empty.cjs +0 -664
- package/dist/components/state-page/empty.d.ts +0 -2
- package/dist/components/state-page/empty.js +0 -662
- package/dist/components/state-page/error.cjs +0 -310
- package/dist/components/state-page/error.d.ts +0 -2
- package/dist/components/state-page/error.js +0 -308
- package/dist/components/state-page/notFound.cjs +0 -243
- package/dist/components/state-page/notFound.d.ts +0 -2
- package/dist/components/state-page/notFound.js +0 -241
- package/dist/components/sticky-footer-layout/StickyFooterLayout.cjs +0 -98
- package/dist/components/sticky-footer-layout/StickyFooterLayout.d.ts +0 -14
- package/dist/components/sticky-footer-layout/StickyFooterLayout.js +0 -96
- package/dist/components/table/Table.cjs +0 -240
- package/dist/components/table/Table.d.ts +0 -4
- package/dist/components/table/Table.js +0 -234
- package/dist/components/table/Table.module.css +0 -704
- package/dist/components/table/Table.types.cjs +0 -2
- package/dist/components/table/Table.types.d.ts +0 -91
- package/dist/components/table/Table.types.js +0 -1
- package/dist/components/table/TanstackTable.cjs +0 -191
- package/dist/components/table/TanstackTable.d.ts +0 -15
- package/dist/components/table/TanstackTable.js +0 -166
- package/dist/components/table/components/TableBody.cjs +0 -58
- package/dist/components/table/components/TableBody.d.ts +0 -28
- package/dist/components/table/components/TableBody.js +0 -52
- package/dist/components/table/components/TableHeader.cjs +0 -56
- package/dist/components/table/components/TableHeader.d.ts +0 -16
- package/dist/components/table/components/TableHeader.js +0 -50
- package/dist/components/table/components/TableHeaderCell.cjs +0 -68
- package/dist/components/table/components/TableHeaderCell.d.ts +0 -12
- package/dist/components/table/components/TableHeaderCell.js +0 -62
- package/dist/components/table/components/TablePagination.cjs +0 -2
- package/dist/components/table/components/TablePagination.d.ts +0 -0
- package/dist/components/table/components/TablePagination.js +0 -1
- package/dist/components/table/components/TableRow.cjs +0 -287
- package/dist/components/table/components/TableRow.d.ts +0 -28
- package/dist/components/table/components/TableRow.js +0 -281
- package/dist/components/table/components/TableSelectionCell.cjs +0 -41
- package/dist/components/table/components/TableSelectionCell.d.ts +0 -9
- package/dist/components/table/components/TableSelectionCell.js +0 -35
- package/dist/components/table/components/column-resizer/ColumnResizer.cjs +0 -25
- package/dist/components/table/components/column-resizer/ColumnResizer.d.ts +0 -7
- package/dist/components/table/components/column-resizer/ColumnResizer.js +0 -19
- package/dist/components/table/components/column-resizer/ColumnResizer.module.css +0 -24
- package/dist/components/table/components/empty-state/EmptyState.cjs +0 -33
- package/dist/components/table/components/empty-state/EmptyState.d.ts +0 -21
- package/dist/components/table/components/empty-state/EmptyState.js +0 -31
- package/dist/components/table/components/empty-state/EmptyState.module.css +0 -4
- package/dist/components/table/components/table-settings/TableSettings.cjs +0 -139
- package/dist/components/table/components/table-settings/TableSettings.d.ts +0 -18
- package/dist/components/table/components/table-settings/TableSettings.js +0 -137
- package/dist/components/table/hooks/useTableRowInteractions.cjs +0 -47
- package/dist/components/table/hooks/useTableRowInteractions.d.ts +0 -15
- package/dist/components/table/hooks/useTableRowInteractions.js +0 -45
- package/dist/components/table/table.classes.cjs +0 -49
- package/dist/components/table/table.classes.d.ts +0 -10
- package/dist/components/table/table.classes.js +0 -40
- package/dist/components/table/table.utils.cjs +0 -59
- package/dist/components/table/table.utils.d.ts +0 -18
- package/dist/components/table/table.utils.js +0 -46
- package/dist/components/table/tanstackTable.utils.cjs +0 -181
- package/dist/components/table/tanstackTable.utils.d.ts +0 -29
- package/dist/components/table/tanstackTable.utils.js +0 -174
- package/dist/components/tabs/Tabs.cjs +0 -187
- package/dist/components/tabs/Tabs.d.ts +0 -52
- package/dist/components/tabs/Tabs.js +0 -181
- package/dist/components/tabs/Tabs.module.css +0 -263
- package/dist/components/theme-button/ThemeButton.cjs +0 -75
- package/dist/components/theme-button/ThemeButton.d.ts +0 -8
- package/dist/components/theme-button/ThemeButton.js +0 -72
- package/dist/components/toast/Toast.cjs +0 -68
- package/dist/components/toast/Toast.d.ts +0 -15
- package/dist/components/toast/Toast.js +0 -62
- package/dist/components/toast/Toast.module.css +0 -165
- package/dist/components/toast/provider/ToastProvider.cjs +0 -105
- package/dist/components/toast/provider/ToastProvider.d.ts +0 -24
- package/dist/components/toast/provider/ToastProvider.js +0 -97
- package/dist/components/user-display/UserDisplay.cjs +0 -22
- package/dist/components/user-display/UserDisplay.d.ts +0 -10
- package/dist/components/user-display/UserDisplay.js +0 -16
- package/dist/components/user-display/UserDisplay.module.css +0 -25
- package/dist/constants/chart-colors.cjs +0 -10
- package/dist/constants/chart-colors.d.ts +0 -2
- package/dist/constants/chart-colors.js +0 -8
- package/dist/constants/chart-colors.types.cjs +0 -2
- package/dist/constants/chart-colors.types.d.ts +0 -3
- package/dist/constants/chart-colors.types.js +0 -1
- package/dist/constants/severity.cjs +0 -33
- package/dist/constants/severity.d.ts +0 -4
- package/dist/constants/severity.js +0 -29
- package/dist/constants/severity.types.cjs +0 -2
- package/dist/constants/severity.types.d.ts +0 -1
- package/dist/constants/severity.types.js +0 -1
- package/dist/constants/sizes.cjs +0 -11
- package/dist/constants/sizes.d.ts +0 -2
- package/dist/constants/sizes.js +0 -9
- package/dist/hooks/useDeviceSize.cjs +0 -33
- package/dist/hooks/useDeviceSize.d.ts +0 -2
- package/dist/hooks/useDeviceSize.js +0 -31
- package/dist/hooks/useListNavigation.cjs +0 -237
- package/dist/hooks/useListNavigation.d.ts +0 -24
- package/dist/hooks/useListNavigation.js +0 -235
- package/dist/hooks/usePagination.cjs +0 -144
- package/dist/hooks/usePagination.d.ts +0 -38
- package/dist/hooks/usePagination.js +0 -142
- package/dist/hooks/usePersistentState.cjs +0 -60
- package/dist/hooks/usePersistentState.d.ts +0 -33
- package/dist/hooks/usePersistentState.js +0 -58
- package/dist/hooks/useSorting.cjs +0 -120
- package/dist/hooks/useSorting.d.ts +0 -50
- package/dist/hooks/useSorting.js +0 -117
- package/dist/hooks/useTableData.cjs +0 -75
- package/dist/hooks/useTableData.d.ts +0 -42
- package/dist/hooks/useTableData.js +0 -73
- package/dist/hooks/useTableSelection.cjs +0 -172
- package/dist/hooks/useTableSelection.d.ts +0 -27
- package/dist/hooks/useTableSelection.js +0 -170
- package/dist/hooks/useTableSettings.cjs +0 -90
- package/dist/hooks/useTableSettings.d.ts +0 -26
- package/dist/hooks/useTableSettings.js +0 -87
- package/dist/hooks/useTheme.cjs +0 -64
- package/dist/hooks/useTheme.d.ts +0 -7
- package/dist/hooks/useTheme.js +0 -62
- package/dist/hooks/useTimeDuration.cjs +0 -75
- package/dist/hooks/useTimeDuration.d.ts +0 -26
- package/dist/hooks/useTimeDuration.js +0 -73
- package/dist/hooks/useViewportFill.cjs +0 -82
- package/dist/hooks/useViewportFill.d.ts +0 -13
- package/dist/hooks/useViewportFill.js +0 -80
- package/dist/index.cjs +0 -292
- package/dist/index.css +0 -75
- package/dist/index.d.ts +0 -42
- package/dist/index.js +0 -41
- package/dist/styles/animation.cjs +0 -9
- package/dist/styles/animation.d.ts +0 -5
- package/dist/styles/animation.js +0 -7
- package/dist/styles/css-helper-classes/flex.css +0 -113
- package/dist/styles/css-helper-classes/spacing.css +0 -312
- package/dist/styles/css-helper-classes/typography.css +0 -11
- package/dist/styles/fonts/Roboto/OFL.txt +0 -93
- package/dist/styles/fonts/Roboto/README.txt +0 -118
- 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 +0 -93
- 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 +0 -377
- package/dist/styles/themes/dbc/base.css +0 -141
- package/dist/styles/themes/dbc/colors.css +0 -320
- package/dist/styles/themes/filmstriben-budget/theme.css +0 -22
- package/dist/styles/themes/types.cjs +0 -2
- package/dist/styles/themes/types.d.ts +0 -16
- package/dist/styles/themes/types.js +0 -1
- package/dist/styles.css +0 -377
- package/dist/tanstack.cjs +0 -26
- package/dist/tanstack.d.ts +0 -3
- package/dist/tanstack.js +0 -3
- package/dist/themes/dbc.css +0 -3
- package/dist/themes/filmstriben-budget.css +0 -3
- package/dist/types/a11y-props.types.cjs +0 -2
- package/dist/types/a11y-props.types.d.ts +0 -8
- package/dist/types/a11y-props.types.js +0 -1
- package/dist/types/assets.d.cjs +0 -2
- package/dist/types/assets.d.js +0 -1
- package/dist/types/css.d.cjs +0 -2
- package/dist/types/css.d.js +0 -1
- package/dist/types/sizes.types.cjs +0 -2
- package/dist/types/sizes.types.d.ts +0 -2
- package/dist/types/sizes.types.js +0 -1
- package/dist/utils/arrays/nested-filtering.cjs +0 -40
- package/dist/utils/arrays/nested-filtering.d.ts +0 -9
- package/dist/utils/arrays/nested-filtering.js +0 -38
- package/dist/utils/cookie.utils.cjs +0 -44
- package/dist/utils/cookie.utils.d.ts +0 -19
- package/dist/utils/cookie.utils.js +0 -40
- package/dist/utils/date/formatDate.cjs +0 -49
- package/dist/utils/date/formatDate.d.ts +0 -28
- package/dist/utils/date/formatDate.js +0 -47
- package/dist/utils/localStorage.utils.cjs +0 -53
- package/dist/utils/localStorage.utils.d.ts +0 -19
- package/dist/utils/localStorage.utils.js +0 -49
- package/dist/utils/text/get-highlighted-segments.cjs +0 -49
- package/dist/utils/text/get-highlighted-segments.d.ts +0 -5
- package/dist/utils/text/get-highlighted-segments.js +0 -47
|
@@ -1,333 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
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;
|
|
@@ -1,14 +0,0 @@
|
|
|
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;
|
|
@@ -1,47 +0,0 @@
|
|
|
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 };
|
|
@@ -1,86 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,161 +0,0 @@
|
|
|
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;
|