@dbcdk/react-components 0.0.167 → 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 -291
- package/dist/components/filter-field/FilterField.d.ts +0 -37
- package/dist/components/filter-field/FilterField.js +0 -284
- package/dist/components/filter-field/FilterField.module.css +0 -379
- 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,187 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
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;
|
|
@@ -1,23 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,39 +0,0 @@
|
|
|
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 };
|
|
@@ -1,29 +0,0 @@
|
|
|
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;
|
|
@@ -1,11 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,27 +0,0 @@
|
|
|
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
|
package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.cjs
DELETED
|
@@ -1,153 +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('./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;
|
package/dist/components/sidebar/components/expandable-sidebar-item/ExpandableSidebarItem.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,147 +0,0 @@
|
|
|
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 };
|