@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,187 @@
|
|
|
1
|
+
.container {
|
|
2
|
+
width: 100%;
|
|
3
|
+
min-width: 0;
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.progressBar {
|
|
9
|
+
--progress-separator: color-mix(in srgb, var(--color-border-subtle) 55%, transparent);
|
|
10
|
+
--progress-track: color-mix(in srgb, var(--color-fg-default) 10%, var(--color-bg-surface-subtle));
|
|
11
|
+
--progress-fill-done: color-mix(
|
|
12
|
+
in srgb,
|
|
13
|
+
var(--color-fg-default) 12%,
|
|
14
|
+
var(--color-bg-surface-subtle)
|
|
15
|
+
);
|
|
16
|
+
--progress-fill-progress: color-mix(
|
|
17
|
+
in srgb,
|
|
18
|
+
var(--color-status-success) 42%,
|
|
19
|
+
var(--color-bg-surface-subtle)
|
|
20
|
+
);
|
|
21
|
+
--progress-fill-missing: color-mix(in srgb, var(--color-fg-default) 8%, transparent);
|
|
22
|
+
--progress-fill-neutral: color-mix(in srgb, var(--color-fg-default) 8%, transparent);
|
|
23
|
+
--progress-fill-success: color-mix(in srgb, var(--color-status-success) 95%, transparent);
|
|
24
|
+
--progress-fill-info: color-mix(in srgb, var(--color-status-info) 70%, transparent);
|
|
25
|
+
--progress-fill-warning: color-mix(in srgb, var(--color-status-warning) 70%, transparent);
|
|
26
|
+
--progress-fill-error: color-mix(in srgb, var(--color-status-error) 75%, transparent);
|
|
27
|
+
--progress-fill-accent: color-mix(in srgb, var(--color-accent) 75%, transparent);
|
|
28
|
+
|
|
29
|
+
position: relative;
|
|
30
|
+
width: 100%;
|
|
31
|
+
min-width: 0;
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: stretch;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
|
|
36
|
+
border-radius: calc(var(--progress-height, 30px) / 2);
|
|
37
|
+
background: var(--progress-track);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.progressBar[data-rounded='false'] {
|
|
41
|
+
border-radius: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.segmentsContainer {
|
|
45
|
+
display: flex;
|
|
46
|
+
width: 100%;
|
|
47
|
+
height: 100%;
|
|
48
|
+
min-width: 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.segmentWrapper {
|
|
52
|
+
display: flex;
|
|
53
|
+
height: 100%;
|
|
54
|
+
min-width: 2px;
|
|
55
|
+
min-height: 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.progressSegment {
|
|
59
|
+
position: relative;
|
|
60
|
+
width: 100%;
|
|
61
|
+
height: 100%;
|
|
62
|
+
background: var(--segment-color, var(--color-bg-surface-strong));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Subtle separators between segments */
|
|
66
|
+
.segmentWrapper + .segmentWrapper .progressSegment::before {
|
|
67
|
+
content: '';
|
|
68
|
+
position: absolute;
|
|
69
|
+
inset-inline-start: 0;
|
|
70
|
+
inset-block: 2px;
|
|
71
|
+
width: 1px;
|
|
72
|
+
background: var(--progress-separator);
|
|
73
|
+
pointer-events: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* =====================================
|
|
77
|
+
Custom progress semantics (quiet)
|
|
78
|
+
===================================== */
|
|
79
|
+
|
|
80
|
+
.progressSegment[data-severity='done'] {
|
|
81
|
+
background: var(--progress-fill-done);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.progressSegment[data-severity='progress'] {
|
|
85
|
+
background: var(--progress-fill-progress);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.progressSegment[data-severity='missing'] {
|
|
89
|
+
background: var(--progress-fill-missing);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.progressSegment[data-severity='neutral'] {
|
|
93
|
+
background: var(--progress-fill-neutral);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* =====================================
|
|
97
|
+
Existing semantic severities
|
|
98
|
+
Keep these semantic and more colorful
|
|
99
|
+
for consumers who want that behavior
|
|
100
|
+
===================================== */
|
|
101
|
+
|
|
102
|
+
.progressSegment[data-severity='success'] {
|
|
103
|
+
background: var(--progress-fill-success);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.progressSegment[data-severity='info'] {
|
|
107
|
+
background: var(--progress-fill-info);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.progressSegment[data-severity='warning'] {
|
|
111
|
+
background: var(--progress-fill-warning);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.progressSegment[data-severity='error'] {
|
|
115
|
+
background: var(--progress-fill-error);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.progressSegment[data-severity='accent'] {
|
|
119
|
+
background: var(--progress-fill-accent);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* Label overlay */
|
|
123
|
+
.progressCenter {
|
|
124
|
+
position: absolute;
|
|
125
|
+
inset: 0;
|
|
126
|
+
display: flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
justify-content: center;
|
|
129
|
+
padding-inline: 8px;
|
|
130
|
+
pointer-events: none;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.progressCenterLabel {
|
|
134
|
+
display: inline-flex;
|
|
135
|
+
align-items: center;
|
|
136
|
+
justify-content: center;
|
|
137
|
+
min-width: 0;
|
|
138
|
+
max-width: calc(100% - 8px);
|
|
139
|
+
color: var(--color-fg-default);
|
|
140
|
+
font-size: var(--font-size-xs);
|
|
141
|
+
font-weight: 500;
|
|
142
|
+
font-variant-numeric: tabular-nums;
|
|
143
|
+
letter-spacing: 0.01em;
|
|
144
|
+
line-height: 1;
|
|
145
|
+
white-space: nowrap;
|
|
146
|
+
overflow: hidden;
|
|
147
|
+
text-overflow: ellipsis;
|
|
148
|
+
|
|
149
|
+
text-shadow: none;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.emptySegments .progressCenterLabel {
|
|
153
|
+
color: var(--color-fg-subtle);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* Rounded ends only on the outer edges */
|
|
157
|
+
.segmentWrapper:first-child .progressSegment {
|
|
158
|
+
border-top-left-radius: var(--progress-radius);
|
|
159
|
+
border-bottom-left-radius: var(--progress-radius);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.segmentWrapper:last-child .progressSegment {
|
|
163
|
+
border-top-right-radius: var(--progress-radius);
|
|
164
|
+
border-bottom-right-radius: var(--progress-radius);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.progressBar[data-rounded='false'] .segmentWrapper:first-child .progressSegment,
|
|
168
|
+
.progressBar[data-rounded='false'] .segmentWrapper:last-child .progressSegment {
|
|
169
|
+
border-radius: 0;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.progressBar,
|
|
173
|
+
.progressSegment,
|
|
174
|
+
.progressCenterLabel {
|
|
175
|
+
transition:
|
|
176
|
+
background-color 140ms ease,
|
|
177
|
+
color 140ms ease,
|
|
178
|
+
box-shadow 140ms ease;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@media (prefers-reduced-motion: reduce) {
|
|
182
|
+
.progressBar,
|
|
183
|
+
.progressSegment,
|
|
184
|
+
.progressCenterLabel {
|
|
185
|
+
transition: none;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var SidebarContainer = require('./components/sidebar-container/SidebarContainer');
|
|
5
|
+
var SidebarProvider = require('./providers/SidebarProvider');
|
|
6
|
+
|
|
7
|
+
function Sidebar({
|
|
8
|
+
items,
|
|
9
|
+
productName,
|
|
10
|
+
productLogo,
|
|
11
|
+
activeLink,
|
|
12
|
+
version,
|
|
13
|
+
hideSearch,
|
|
14
|
+
searchPlaceholder,
|
|
15
|
+
showSettings,
|
|
16
|
+
footer,
|
|
17
|
+
resizable,
|
|
18
|
+
defaultWidth,
|
|
19
|
+
minWidth,
|
|
20
|
+
storageKey
|
|
21
|
+
}) {
|
|
22
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SidebarProvider.SidebarProvider, { items, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
23
|
+
SidebarContainer.SidebarContainer,
|
|
24
|
+
{
|
|
25
|
+
productName,
|
|
26
|
+
productLogo,
|
|
27
|
+
activeLink,
|
|
28
|
+
version,
|
|
29
|
+
hideSearch,
|
|
30
|
+
searchPlaceholder,
|
|
31
|
+
showSettings,
|
|
32
|
+
footer,
|
|
33
|
+
resizable,
|
|
34
|
+
defaultWidth,
|
|
35
|
+
minWidth,
|
|
36
|
+
storageKey
|
|
37
|
+
}
|
|
38
|
+
) });
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
exports.Sidebar = Sidebar;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { JSX } from 'react';
|
|
3
|
+
import { NavBarItem } from '../nav-bar/NavBar';
|
|
4
|
+
interface SidebarProps {
|
|
5
|
+
collapsed?: boolean;
|
|
6
|
+
onCollapseChange?: (collapsed: boolean) => void;
|
|
7
|
+
items: NavBarItem[];
|
|
8
|
+
logo?: React.ReactNode;
|
|
9
|
+
productName?: string;
|
|
10
|
+
productLogo?: React.ReactNode;
|
|
11
|
+
activeLink?: string;
|
|
12
|
+
version?: string | number;
|
|
13
|
+
hideSearch?: boolean;
|
|
14
|
+
searchPlaceholder?: string;
|
|
15
|
+
showSettings?: boolean;
|
|
16
|
+
footer?: React.ReactNode;
|
|
17
|
+
resizable?: boolean;
|
|
18
|
+
defaultWidth?: number;
|
|
19
|
+
minWidth?: number;
|
|
20
|
+
storageKey?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function Sidebar({ items, productName, productLogo, activeLink, version, hideSearch, searchPlaceholder, showSettings, footer, resizable, defaultWidth, minWidth, storageKey, }: SidebarProps): JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { SidebarContainer } from './components/sidebar-container/SidebarContainer';
|
|
3
|
+
import { SidebarProvider } from './providers/SidebarProvider';
|
|
4
|
+
|
|
5
|
+
function Sidebar({
|
|
6
|
+
items,
|
|
7
|
+
productName,
|
|
8
|
+
productLogo,
|
|
9
|
+
activeLink,
|
|
10
|
+
version,
|
|
11
|
+
hideSearch,
|
|
12
|
+
searchPlaceholder,
|
|
13
|
+
showSettings,
|
|
14
|
+
footer,
|
|
15
|
+
resizable,
|
|
16
|
+
defaultWidth,
|
|
17
|
+
minWidth,
|
|
18
|
+
storageKey
|
|
19
|
+
}) {
|
|
20
|
+
return /* @__PURE__ */ jsx(SidebarProvider, { items, children: /* @__PURE__ */ jsx(
|
|
21
|
+
SidebarContainer,
|
|
22
|
+
{
|
|
23
|
+
productName,
|
|
24
|
+
productLogo,
|
|
25
|
+
activeLink,
|
|
26
|
+
version,
|
|
27
|
+
hideSearch,
|
|
28
|
+
searchPlaceholder,
|
|
29
|
+
showSettings,
|
|
30
|
+
footer,
|
|
31
|
+
resizable,
|
|
32
|
+
defaultWidth,
|
|
33
|
+
minWidth,
|
|
34
|
+
storageKey
|
|
35
|
+
}
|
|
36
|
+
) });
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { Sidebar };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var SidebarItemContent = require('./sidebar-item-content/SidebarItemContent');
|
|
5
|
+
|
|
6
|
+
function SidebarItem({
|
|
7
|
+
component: Component,
|
|
8
|
+
label,
|
|
9
|
+
icon,
|
|
10
|
+
href,
|
|
11
|
+
iconWidth,
|
|
12
|
+
truncateLabel
|
|
13
|
+
}) {
|
|
14
|
+
if (!Component) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Component, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
18
|
+
SidebarItemContent.SidebarItemContent,
|
|
19
|
+
{
|
|
20
|
+
icon,
|
|
21
|
+
iconWidth,
|
|
22
|
+
label,
|
|
23
|
+
href,
|
|
24
|
+
truncateLabel
|
|
25
|
+
}
|
|
26
|
+
) });
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
exports.SidebarItem = SidebarItem;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SidebarItemProps {
|
|
3
|
+
component?: React.ElementType;
|
|
4
|
+
label: string;
|
|
5
|
+
icon: React.ReactNode;
|
|
6
|
+
href?: string;
|
|
7
|
+
iconWidth?: string | number;
|
|
8
|
+
truncateLabel?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function SidebarItem({ component: Component, label, icon, href, iconWidth, truncateLabel, }: SidebarItemProps): React.ReactNode;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { SidebarItemContent } from './sidebar-item-content/SidebarItemContent';
|
|
3
|
+
|
|
4
|
+
function SidebarItem({
|
|
5
|
+
component: Component,
|
|
6
|
+
label,
|
|
7
|
+
icon,
|
|
8
|
+
href,
|
|
9
|
+
iconWidth,
|
|
10
|
+
truncateLabel
|
|
11
|
+
}) {
|
|
12
|
+
if (!Component) {
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
return /* @__PURE__ */ jsx(Component, { children: /* @__PURE__ */ jsx(
|
|
16
|
+
SidebarItemContent,
|
|
17
|
+
{
|
|
18
|
+
icon,
|
|
19
|
+
iconWidth,
|
|
20
|
+
label,
|
|
21
|
+
href,
|
|
22
|
+
truncateLabel
|
|
23
|
+
}
|
|
24
|
+
) });
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { SidebarItem };
|
|
File without changes
|
|
@@ -0,0 +1,153 @@
|
|
|
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('./ExpandableSidebarItem.module.css');
|
|
8
|
+
var Button = require('../../../button/Button');
|
|
9
|
+
var SidebarProvider = require('../../providers/SidebarProvider');
|
|
10
|
+
var ExpandableSidebarItem$1 = require('../expandable-sidebar-item/ExpandableSidebarItem');
|
|
11
|
+
var SidebarItemContent = require('../sidebar-item-content/SidebarItemContent');
|
|
12
|
+
var SidebarItem = require('../SidebarItem');
|
|
13
|
+
|
|
14
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
|
|
16
|
+
var styles__default = /*#__PURE__*/_interopDefault(styles);
|
|
17
|
+
|
|
18
|
+
const isGroup = (item) => item.type === "group";
|
|
19
|
+
const isExpandable = (item) => item.type === "expandable";
|
|
20
|
+
function ExpandableSidebarItem({
|
|
21
|
+
items,
|
|
22
|
+
label,
|
|
23
|
+
icon,
|
|
24
|
+
component: Component,
|
|
25
|
+
href,
|
|
26
|
+
iconWidth,
|
|
27
|
+
truncateLabel
|
|
28
|
+
}) {
|
|
29
|
+
const {
|
|
30
|
+
defaultExpanded,
|
|
31
|
+
resetExpandAll,
|
|
32
|
+
isSidebarCollapsed,
|
|
33
|
+
handleSidebarCollapseChange,
|
|
34
|
+
expandItem,
|
|
35
|
+
collapseItem,
|
|
36
|
+
isExpanded
|
|
37
|
+
} = SidebarProvider.useSidebar();
|
|
38
|
+
const [closing, setClosing] = react.useState(false);
|
|
39
|
+
const expanded = react.useMemo(() => isExpanded(href), [href, isExpanded]);
|
|
40
|
+
react.useEffect(() => {
|
|
41
|
+
if (defaultExpanded === null) return;
|
|
42
|
+
if (defaultExpanded) expandItem(href);
|
|
43
|
+
else collapseItem(href);
|
|
44
|
+
}, [defaultExpanded, expandItem, collapseItem, href]);
|
|
45
|
+
const commitCollapse = react.useCallback(() => {
|
|
46
|
+
collapseItem(href);
|
|
47
|
+
setClosing(false);
|
|
48
|
+
}, [collapseItem, href]);
|
|
49
|
+
const handleAnimationEnd = react.useCallback(() => {
|
|
50
|
+
if (closing) commitCollapse();
|
|
51
|
+
}, [closing, commitCollapse]);
|
|
52
|
+
react.useEffect(() => {
|
|
53
|
+
if (!closing) return;
|
|
54
|
+
const timer = setTimeout(commitCollapse, 250);
|
|
55
|
+
return () => clearTimeout(timer);
|
|
56
|
+
}, [closing, commitCollapse]);
|
|
57
|
+
const toggleAccordion = react.useCallback(
|
|
58
|
+
(e, onlyExpand = false) => {
|
|
59
|
+
e == null ? void 0 : e.preventDefault();
|
|
60
|
+
e == null ? void 0 : e.stopPropagation();
|
|
61
|
+
resetExpandAll();
|
|
62
|
+
handleSidebarCollapseChange(false);
|
|
63
|
+
if (!expanded) {
|
|
64
|
+
expandItem(href);
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
if (!isSidebarCollapsed && !onlyExpand) {
|
|
68
|
+
setClosing(true);
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
[expanded, expandItem, href, handleSidebarCollapseChange, isSidebarCollapsed, resetExpandAll]
|
|
72
|
+
);
|
|
73
|
+
const renderNavItem = (item, key) => {
|
|
74
|
+
var _a, _b;
|
|
75
|
+
if (isGroup(item)) {
|
|
76
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles__default.default.group, children: [
|
|
77
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles__default.default.groupLabel, children: item.label }),
|
|
78
|
+
(_a = item.children) == null ? void 0 : _a.map((child, idx) => renderNavItem(child, `${key}-${idx}`))
|
|
79
|
+
] }, key);
|
|
80
|
+
}
|
|
81
|
+
if (isExpandable(item)) {
|
|
82
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
83
|
+
ExpandableSidebarItem$1.ExpandableSidebarItem,
|
|
84
|
+
{
|
|
85
|
+
items: (_b = item.children) != null ? _b : [],
|
|
86
|
+
label: item.label,
|
|
87
|
+
icon: item.icon,
|
|
88
|
+
href: item.href,
|
|
89
|
+
iconWidth: item.iconWidth,
|
|
90
|
+
component: item.component
|
|
91
|
+
},
|
|
92
|
+
key
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
96
|
+
SidebarItem.SidebarItem,
|
|
97
|
+
{
|
|
98
|
+
component: item.component,
|
|
99
|
+
label: item.label,
|
|
100
|
+
icon: item.icon,
|
|
101
|
+
href: item.href,
|
|
102
|
+
iconWidth: item.iconWidth,
|
|
103
|
+
truncateLabel: item.truncateLabel
|
|
104
|
+
},
|
|
105
|
+
key
|
|
106
|
+
);
|
|
107
|
+
};
|
|
108
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${styles__default.default.container}`, children: [
|
|
109
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${styles__default.default.itemRow} ${expanded ? styles__default.default.itemRowExpanded : ""}`, children: [
|
|
110
|
+
/* @__PURE__ */ jsxRuntime.jsx(Component, { onClick: () => toggleAccordion(void 0, true), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
111
|
+
SidebarItemContent.SidebarItemContent,
|
|
112
|
+
{
|
|
113
|
+
headerStyle: expanded,
|
|
114
|
+
icon,
|
|
115
|
+
iconWidth,
|
|
116
|
+
label,
|
|
117
|
+
href,
|
|
118
|
+
disableActiveStyles: expanded,
|
|
119
|
+
suffixIcon: !isSidebarCollapsed ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
120
|
+
lucideReact.ChevronDown,
|
|
121
|
+
{
|
|
122
|
+
className: `${styles__default.default.chevron} ${expanded ? styles__default.default.chevronExpanded : ""}`
|
|
123
|
+
}
|
|
124
|
+
) : void 0,
|
|
125
|
+
truncateLabel
|
|
126
|
+
}
|
|
127
|
+
) }),
|
|
128
|
+
!isSidebarCollapsed && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles__default.default.toggleButton, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
129
|
+
Button.Button,
|
|
130
|
+
{
|
|
131
|
+
variant: "inline",
|
|
132
|
+
shape: "round",
|
|
133
|
+
className: styles__default.default.toggleButtonControl,
|
|
134
|
+
"aria-label": expanded ? `Collapse ${label}` : `Expand ${label}`,
|
|
135
|
+
"aria-expanded": expanded,
|
|
136
|
+
"aria-controls": `${href}-children`,
|
|
137
|
+
onClick: toggleAccordion
|
|
138
|
+
}
|
|
139
|
+
) })
|
|
140
|
+
] }),
|
|
141
|
+
expanded && !isSidebarCollapsed && /* @__PURE__ */ jsxRuntime.jsx(
|
|
142
|
+
"div",
|
|
143
|
+
{
|
|
144
|
+
id: `${href}-children`,
|
|
145
|
+
onAnimationEnd: handleAnimationEnd,
|
|
146
|
+
className: `${styles__default.default.childrenContainer} ${closing ? "animate--collapse" : ""}`,
|
|
147
|
+
children: items.map((item, idx) => renderNavItem(item, `${href}-${idx}`))
|
|
148
|
+
}
|
|
149
|
+
)
|
|
150
|
+
] });
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
exports.ExpandableSidebarItem = ExpandableSidebarItem;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { NavBarItem } from '../../../../components/nav-bar/NavBar';
|
|
3
|
+
type ExpandableSidebarItemProps = {
|
|
4
|
+
items: NavBarItem[];
|
|
5
|
+
label: string;
|
|
6
|
+
component: React.ElementType;
|
|
7
|
+
icon: React.ReactNode;
|
|
8
|
+
href: string;
|
|
9
|
+
iconWidth?: string | number;
|
|
10
|
+
truncateLabel?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare function ExpandableSidebarItem({ items, label, icon, component: Component, href, iconWidth, truncateLabel, }: ExpandableSidebarItemProps): React.ReactNode;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { ChevronDown } from 'lucide-react';
|
|
4
|
+
import { useState, useMemo, useEffect, useCallback } from 'react';
|
|
5
|
+
import styles from './ExpandableSidebarItem.module.css';
|
|
6
|
+
import { Button } from '../../../button/Button';
|
|
7
|
+
import { useSidebar } from '../../providers/SidebarProvider';
|
|
8
|
+
import { ExpandableSidebarItem as ExpandableSidebarItem$1 } from '../expandable-sidebar-item/ExpandableSidebarItem';
|
|
9
|
+
import { SidebarItemContent } from '../sidebar-item-content/SidebarItemContent';
|
|
10
|
+
import { SidebarItem } from '../SidebarItem';
|
|
11
|
+
|
|
12
|
+
const isGroup = (item) => item.type === "group";
|
|
13
|
+
const isExpandable = (item) => item.type === "expandable";
|
|
14
|
+
function ExpandableSidebarItem({
|
|
15
|
+
items,
|
|
16
|
+
label,
|
|
17
|
+
icon,
|
|
18
|
+
component: Component,
|
|
19
|
+
href,
|
|
20
|
+
iconWidth,
|
|
21
|
+
truncateLabel
|
|
22
|
+
}) {
|
|
23
|
+
const {
|
|
24
|
+
defaultExpanded,
|
|
25
|
+
resetExpandAll,
|
|
26
|
+
isSidebarCollapsed,
|
|
27
|
+
handleSidebarCollapseChange,
|
|
28
|
+
expandItem,
|
|
29
|
+
collapseItem,
|
|
30
|
+
isExpanded
|
|
31
|
+
} = useSidebar();
|
|
32
|
+
const [closing, setClosing] = useState(false);
|
|
33
|
+
const expanded = useMemo(() => isExpanded(href), [href, isExpanded]);
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
if (defaultExpanded === null) return;
|
|
36
|
+
if (defaultExpanded) expandItem(href);
|
|
37
|
+
else collapseItem(href);
|
|
38
|
+
}, [defaultExpanded, expandItem, collapseItem, href]);
|
|
39
|
+
const commitCollapse = useCallback(() => {
|
|
40
|
+
collapseItem(href);
|
|
41
|
+
setClosing(false);
|
|
42
|
+
}, [collapseItem, href]);
|
|
43
|
+
const handleAnimationEnd = useCallback(() => {
|
|
44
|
+
if (closing) commitCollapse();
|
|
45
|
+
}, [closing, commitCollapse]);
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
if (!closing) return;
|
|
48
|
+
const timer = setTimeout(commitCollapse, 250);
|
|
49
|
+
return () => clearTimeout(timer);
|
|
50
|
+
}, [closing, commitCollapse]);
|
|
51
|
+
const toggleAccordion = useCallback(
|
|
52
|
+
(e, onlyExpand = false) => {
|
|
53
|
+
e == null ? void 0 : e.preventDefault();
|
|
54
|
+
e == null ? void 0 : e.stopPropagation();
|
|
55
|
+
resetExpandAll();
|
|
56
|
+
handleSidebarCollapseChange(false);
|
|
57
|
+
if (!expanded) {
|
|
58
|
+
expandItem(href);
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
if (!isSidebarCollapsed && !onlyExpand) {
|
|
62
|
+
setClosing(true);
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
[expanded, expandItem, href, handleSidebarCollapseChange, isSidebarCollapsed, resetExpandAll]
|
|
66
|
+
);
|
|
67
|
+
const renderNavItem = (item, key) => {
|
|
68
|
+
var _a, _b;
|
|
69
|
+
if (isGroup(item)) {
|
|
70
|
+
return /* @__PURE__ */ jsxs("div", { className: styles.group, children: [
|
|
71
|
+
/* @__PURE__ */ jsx("div", { className: styles.groupLabel, children: item.label }),
|
|
72
|
+
(_a = item.children) == null ? void 0 : _a.map((child, idx) => renderNavItem(child, `${key}-${idx}`))
|
|
73
|
+
] }, key);
|
|
74
|
+
}
|
|
75
|
+
if (isExpandable(item)) {
|
|
76
|
+
return /* @__PURE__ */ jsx(
|
|
77
|
+
ExpandableSidebarItem$1,
|
|
78
|
+
{
|
|
79
|
+
items: (_b = item.children) != null ? _b : [],
|
|
80
|
+
label: item.label,
|
|
81
|
+
icon: item.icon,
|
|
82
|
+
href: item.href,
|
|
83
|
+
iconWidth: item.iconWidth,
|
|
84
|
+
component: item.component
|
|
85
|
+
},
|
|
86
|
+
key
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
return /* @__PURE__ */ jsx(
|
|
90
|
+
SidebarItem,
|
|
91
|
+
{
|
|
92
|
+
component: item.component,
|
|
93
|
+
label: item.label,
|
|
94
|
+
icon: item.icon,
|
|
95
|
+
href: item.href,
|
|
96
|
+
iconWidth: item.iconWidth,
|
|
97
|
+
truncateLabel: item.truncateLabel
|
|
98
|
+
},
|
|
99
|
+
key
|
|
100
|
+
);
|
|
101
|
+
};
|
|
102
|
+
return /* @__PURE__ */ jsxs("div", { className: `${styles.container}`, children: [
|
|
103
|
+
/* @__PURE__ */ jsxs("div", { className: `${styles.itemRow} ${expanded ? styles.itemRowExpanded : ""}`, children: [
|
|
104
|
+
/* @__PURE__ */ jsx(Component, { onClick: () => toggleAccordion(void 0, true), children: /* @__PURE__ */ jsx(
|
|
105
|
+
SidebarItemContent,
|
|
106
|
+
{
|
|
107
|
+
headerStyle: expanded,
|
|
108
|
+
icon,
|
|
109
|
+
iconWidth,
|
|
110
|
+
label,
|
|
111
|
+
href,
|
|
112
|
+
disableActiveStyles: expanded,
|
|
113
|
+
suffixIcon: !isSidebarCollapsed ? /* @__PURE__ */ jsx(
|
|
114
|
+
ChevronDown,
|
|
115
|
+
{
|
|
116
|
+
className: `${styles.chevron} ${expanded ? styles.chevronExpanded : ""}`
|
|
117
|
+
}
|
|
118
|
+
) : void 0,
|
|
119
|
+
truncateLabel
|
|
120
|
+
}
|
|
121
|
+
) }),
|
|
122
|
+
!isSidebarCollapsed && /* @__PURE__ */ jsx("div", { className: styles.toggleButton, children: /* @__PURE__ */ jsx(
|
|
123
|
+
Button,
|
|
124
|
+
{
|
|
125
|
+
variant: "inline",
|
|
126
|
+
shape: "round",
|
|
127
|
+
className: styles.toggleButtonControl,
|
|
128
|
+
"aria-label": expanded ? `Collapse ${label}` : `Expand ${label}`,
|
|
129
|
+
"aria-expanded": expanded,
|
|
130
|
+
"aria-controls": `${href}-children`,
|
|
131
|
+
onClick: toggleAccordion
|
|
132
|
+
}
|
|
133
|
+
) })
|
|
134
|
+
] }),
|
|
135
|
+
expanded && !isSidebarCollapsed && /* @__PURE__ */ jsx(
|
|
136
|
+
"div",
|
|
137
|
+
{
|
|
138
|
+
id: `${href}-children`,
|
|
139
|
+
onAnimationEnd: handleAnimationEnd,
|
|
140
|
+
className: `${styles.childrenContainer} ${closing ? "animate--collapse" : ""}`,
|
|
141
|
+
children: items.map((item, idx) => renderNavItem(item, `${href}-${idx}`))
|
|
142
|
+
}
|
|
143
|
+
)
|
|
144
|
+
] });
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export { ExpandableSidebarItem };
|