@camunda/camunda-composite-components 0.22.1 → 0.22.3
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 +16 -16
- package/lib/esm/package.json +0 -98
- package/lib/esm/src/api/api.d.ts +0 -29
- package/lib/esm/src/api/api.js +0 -92
- package/lib/esm/src/api/clusters.d.ts +0 -10
- package/lib/esm/src/api/clusters.js +0 -32
- package/lib/esm/src/api/endpoints.const.d.ts +0 -22
- package/lib/esm/src/api/endpoints.const.js +0 -70
- package/lib/esm/src/api/help-center.d.ts +0 -42
- package/lib/esm/src/api/help-center.js +0 -56
- package/lib/esm/src/api/jwt.utils.d.ts +0 -5
- package/lib/esm/src/api/jwt.utils.js +0 -26
- package/lib/esm/src/api/notifications.d.ts +0 -41
- package/lib/esm/src/api/notifications.js +0 -170
- package/lib/esm/src/api/organizations.d.ts +0 -15
- package/lib/esm/src/api/organizations.js +0 -16
- package/lib/esm/src/api/profile.d.ts +0 -20
- package/lib/esm/src/api/profile.js +0 -48
- package/lib/esm/src/api/status.d.ts +0 -7
- package/lib/esm/src/api/status.js +0 -46
- package/lib/esm/src/assets/c3-icons.d.ts +0 -5
- package/lib/esm/src/assets/c3-icons.js +0 -5
- package/lib/esm/src/assets/c3-icons.types.d.ts +0 -3
- package/lib/esm/src/assets/c3-icons.types.js +0 -6
- package/lib/esm/src/components/c3-app-teaser/app-teaser-cards-config.d.ts +0 -5
- package/lib/esm/src/components/c3-app-teaser/app-teaser-cards-config.js +0 -94
- package/lib/esm/src/components/c3-app-teaser/app-teaser-cards.d.ts +0 -17
- package/lib/esm/src/components/c3-app-teaser/app-teaser-cards.js +0 -31
- package/lib/esm/src/components/c3-app-teaser/app-teaster-card.d.ts +0 -14
- package/lib/esm/src/components/c3-app-teaser/app-teaster-card.js +0 -24
- package/lib/esm/src/components/c3-app-teaser/c3-app-teaser-page.d.ts +0 -9
- package/lib/esm/src/components/c3-app-teaser/c3-app-teaser-page.js +0 -48
- package/lib/esm/src/components/c3-app-teaser/c3-app-teaser-page.test.d.ts +0 -1
- package/lib/esm/src/components/c3-app-teaser/c3-app-teaser-page.test.js +0 -33
- package/lib/esm/src/components/c3-app-teaser/c3-app-teaser.d.ts +0 -14
- package/lib/esm/src/components/c3-app-teaser/c3-app-teaser.js +0 -53
- package/lib/esm/src/components/c3-cluster-tag/c3-cluster-tag.d.ts +0 -6
- package/lib/esm/src/components/c3-cluster-tag/c3-cluster-tag.js +0 -84
- package/lib/esm/src/components/c3-cluster-tag/c3-cluster-tag.test.d.ts +0 -1
- package/lib/esm/src/components/c3-cluster-tag/c3-cluster-tag.test.js +0 -13
- package/lib/esm/src/components/c3-cluster-tag/c3-cluster-tag.types.d.ts +0 -26
- package/lib/esm/src/components/c3-cluster-tag/c3-cluster-tag.types.js +0 -11
- package/lib/esm/src/components/c3-data-table/c3-data-table.d.ts +0 -3
- package/lib/esm/src/components/c3-data-table/c3-data-table.js +0 -509
- package/lib/esm/src/components/c3-data-table/c3-data-table.types.d.ts +0 -122
- package/lib/esm/src/components/c3-data-table/c3-data-table.types.js +0 -6
- package/lib/esm/src/components/c3-data-table/link-button/link-button.d.ts +0 -3
- package/lib/esm/src/components/c3-data-table/link-button/link-button.js +0 -15
- package/lib/esm/src/components/c3-data-table/link-button/link-button.types.d.ts +0 -8
- package/lib/esm/src/components/c3-data-table/link-button/link-button.types.js +0 -6
- package/lib/esm/src/components/c3-empty-state/c3-empty-state.d.ts +0 -3
- package/lib/esm/src/components/c3-empty-state/c3-empty-state.js +0 -15
- package/lib/esm/src/components/c3-empty-state/c3-empty-state.test.d.ts +0 -1
- package/lib/esm/src/components/c3-empty-state/c3-empty-state.test.js +0 -25
- package/lib/esm/src/components/c3-empty-state/c3-empty-state.types.d.ts +0 -29
- package/lib/esm/src/components/c3-empty-state/c3-empty-state.types.js +0 -6
- package/lib/esm/src/components/c3-help-center/c3-help-center-provider.d.ts +0 -19
- package/lib/esm/src/components/c3-help-center/c3-help-center-provider.js +0 -58
- package/lib/esm/src/components/c3-help-center/c3-help-center.d.ts +0 -16
- package/lib/esm/src/components/c3-help-center/c3-help-center.js +0 -218
- package/lib/esm/src/components/c3-help-center/c3-help-center.types.d.ts +0 -43
- package/lib/esm/src/components/c3-help-center/c3-help-center.types.js +0 -6
- package/lib/esm/src/components/c3-help-center/defaultHelpCenterConfig.d.ts +0 -10
- package/lib/esm/src/components/c3-help-center/defaultHelpCenterConfig.js +0 -17
- package/lib/esm/src/components/c3-help-center/help-center-hint.d.ts +0 -4
- package/lib/esm/src/components/c3-help-center/help-center-hint.js +0 -15
- package/lib/esm/src/components/c3-help-center/help-center.d.ts +0 -18
- package/lib/esm/src/components/c3-help-center/help-center.js +0 -189
- package/lib/esm/src/components/c3-help-center/recommendations.d.ts +0 -4
- package/lib/esm/src/components/c3-help-center/recommendations.js +0 -55
- package/lib/esm/src/components/c3-help-center/styles.d.ts +0 -4
- package/lib/esm/src/components/c3-help-center/styles.js +0 -48
- package/lib/esm/src/components/c3-help-center/tabs/feedback.d.ts +0 -9
- package/lib/esm/src/components/c3-help-center/tabs/feedback.js +0 -141
- package/lib/esm/src/components/c3-help-center/tabs/tabContent.d.ts +0 -20
- package/lib/esm/src/components/c3-help-center/tabs/tabContent.js +0 -22
- package/lib/esm/src/components/c3-help-center/tabs/tabContentSkeleton.d.ts +0 -2
- package/lib/esm/src/components/c3-help-center/tabs/tabContentSkeleton.js +0 -26
- package/lib/esm/src/components/c3-help-center/tile.d.ts +0 -10
- package/lib/esm/src/components/c3-help-center/tile.js +0 -61
- package/lib/esm/src/components/c3-navigation/c3-info-button.d.ts +0 -4
- package/lib/esm/src/components/c3-navigation/c3-info-button.js +0 -9
- package/lib/esm/src/components/c3-navigation/c3-navigation-actions/c3-action-buttons.d.ts +0 -6
- package/lib/esm/src/components/c3-navigation/c3-navigation-actions/c3-action-buttons.js +0 -18
- package/lib/esm/src/components/c3-navigation/c3-navigation-actions/c3-action-buttons.types.d.ts +0 -10
- package/lib/esm/src/components/c3-navigation/c3-navigation-actions/c3-action-buttons.types.js +0 -6
- package/lib/esm/src/components/c3-navigation/c3-navigation-appbar/c3-navigation-appbar.d.ts +0 -4
- package/lib/esm/src/components/c3-navigation/c3-navigation-appbar/c3-navigation-appbar.js +0 -364
- package/lib/esm/src/components/c3-navigation/c3-navigation-appbar/components.d.ts +0 -2
- package/lib/esm/src/components/c3-navigation/c3-navigation-appbar/components.js +0 -21
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-info-sidebar.d.ts +0 -6
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-info-sidebar.js +0 -38
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar-element.d.ts +0 -12
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar-element.js +0 -68
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.d.ts +0 -10
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.js +0 -89
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.types.d.ts +0 -81
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.types.js +0 -6
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-notification-sidebar.d.ts +0 -5
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-notification-sidebar.js +0 -107
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-sidebar-state-provider.d.ts +0 -29
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-sidebar-state-provider.js +0 -54
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-user-sidebar.d.ts +0 -6
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-user-sidebar.js +0 -57
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/components.d.ts +0 -2
- package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/components.js +0 -11
- package/lib/esm/src/components/c3-navigation/c3-navigation.d.ts +0 -7
- package/lib/esm/src/components/c3-navigation/c3-navigation.js +0 -262
- package/lib/esm/src/components/c3-navigation/c3-navigation.test.d.ts +0 -1
- package/lib/esm/src/components/c3-navigation/c3-navigation.test.js +0 -89
- package/lib/esm/src/components/c3-navigation/c3-navigation.types.d.ts +0 -97
- package/lib/esm/src/components/c3-navigation/c3-navigation.types.js +0 -6
- package/lib/esm/src/components/c3-navigation/c3-notification-provider/c3-notification-container.d.ts +0 -13
- package/lib/esm/src/components/c3-navigation/c3-notification-provider/c3-notification-container.js +0 -100
- package/lib/esm/src/components/c3-navigation/c3-notification-provider/c3-notification-provider.d.ts +0 -19
- package/lib/esm/src/components/c3-navigation/c3-notification-provider/c3-notification-provider.js +0 -110
- package/lib/esm/src/components/c3-navigation/c3-org-name.d.ts +0 -6
- package/lib/esm/src/components/c3-navigation/c3-org-name.js +0 -34
- package/lib/esm/src/components/c3-navigation/c3-org-sidebar/c3-org-sidebar.d.ts +0 -6
- package/lib/esm/src/components/c3-navigation/c3-org-sidebar/c3-org-sidebar.js +0 -188
- package/lib/esm/src/components/c3-navigation/c3-org-sidebar/components.d.ts +0 -29
- package/lib/esm/src/components/c3-navigation/c3-org-sidebar/components.js +0 -92
- package/lib/esm/src/components/c3-navigation/helpers.d.ts +0 -8
- package/lib/esm/src/components/c3-navigation/helpers.js +0 -58
- package/lib/esm/src/components/c3-navigation/index.d.ts +0 -2
- package/lib/esm/src/components/c3-navigation/index.js +0 -8
- package/lib/esm/src/components/c3-navigation/stories/story-helpers.d.ts +0 -35
- package/lib/esm/src/components/c3-navigation/stories/story-helpers.js +0 -264
- package/lib/esm/src/components/c3-navigation/stories/story-templates.d.ts +0 -9
- package/lib/esm/src/components/c3-navigation/stories/story-templates.js +0 -38
- package/lib/esm/src/components/c3-onboarding-survey/c3-onboarding-survey.d.ts +0 -14
- package/lib/esm/src/components/c3-onboarding-survey/c3-onboarding-survey.js +0 -94
- package/lib/esm/src/components/c3-onboarding-survey/defaultOnboardingConfig.d.ts +0 -16
- package/lib/esm/src/components/c3-onboarding-survey/defaultOnboardingConfig.js +0 -8
- package/lib/esm/src/components/c3-onboarding-survey/elements/dropdownSelect.d.ts +0 -15
- package/lib/esm/src/components/c3-onboarding-survey/elements/dropdownSelect.js +0 -58
- package/lib/esm/src/components/c3-onboarding-survey/elements/inlineNotification.d.ts +0 -3
- package/lib/esm/src/components/c3-onboarding-survey/elements/inlineNotification.js +0 -10
- package/lib/esm/src/components/c3-onboarding-survey/elements/radioGroupMulti.d.ts +0 -7
- package/lib/esm/src/components/c3-onboarding-survey/elements/radioGroupMulti.js +0 -53
- package/lib/esm/src/components/c3-onboarding-survey/elements/radioGroupSingle.d.ts +0 -7
- package/lib/esm/src/components/c3-onboarding-survey/elements/radioGroupSingle.js +0 -36
- package/lib/esm/src/components/c3-onboarding-survey/elements/textField.d.ts +0 -6
- package/lib/esm/src/components/c3-onboarding-survey/elements/textField.js +0 -14
- package/lib/esm/src/components/c3-onboarding-survey/helpers.d.ts +0 -1
- package/lib/esm/src/components/c3-onboarding-survey/helpers.js +0 -10
- package/lib/esm/src/components/c3-onboarding-survey/onboarding.types.d.ts +0 -30
- package/lib/esm/src/components/c3-onboarding-survey/onboarding.types.js +0 -13
- package/lib/esm/src/components/c3-onboarding-survey/onboardingModal.d.ts +0 -25
- package/lib/esm/src/components/c3-onboarding-survey/onboardingModal.js +0 -52
- package/lib/esm/src/components/c3-onboarding-survey/onboardingPage.d.ts +0 -21
- package/lib/esm/src/components/c3-onboarding-survey/onboardingPage.js +0 -35
- package/lib/esm/src/components/c3-onboarding-survey/onboardingSurvey.d.ts +0 -17
- package/lib/esm/src/components/c3-onboarding-survey/onboardingSurvey.js +0 -148
- package/lib/esm/src/components/c3-onboarding-survey/step.d.ts +0 -7
- package/lib/esm/src/components/c3-onboarding-survey/step.js +0 -44
- package/lib/esm/src/components/c3-page/c3-breadcrumb/c3-breadcrumb.d.ts +0 -3
- package/lib/esm/src/components/c3-page/c3-breadcrumb/c3-breadcrumb.js +0 -28
- package/lib/esm/src/components/c3-page/c3-breadcrumb/c3-breadcrumb.types.d.ts +0 -19
- package/lib/esm/src/components/c3-page/c3-breadcrumb/c3-breadcrumb.types.js +0 -6
- package/lib/esm/src/components/c3-page/c3-page.d.ts +0 -4
- package/lib/esm/src/components/c3-page/c3-page.js +0 -16
- package/lib/esm/src/components/c3-page/c3-page.test.d.ts +0 -1
- package/lib/esm/src/components/c3-page/c3-page.test.js +0 -25
- package/lib/esm/src/components/c3-page/c3-page.types.d.ts +0 -18
- package/lib/esm/src/components/c3-page/c3-page.types.js +0 -6
- package/lib/esm/src/components/c3-page/c3-tabs/c3-tabs.d.ts +0 -3
- package/lib/esm/src/components/c3-page/c3-tabs/c3-tabs.js +0 -37
- package/lib/esm/src/components/c3-page/c3-tabs/c3-tabs.types.d.ts +0 -14
- package/lib/esm/src/components/c3-page/c3-tabs/c3-tabs.types.js +0 -6
- package/lib/esm/src/components/c3-responsive-stack/c3-responsive-stack.d.ts +0 -2
- package/lib/esm/src/components/c3-responsive-stack/c3-responsive-stack.js +0 -18
- package/lib/esm/src/components/c3-user-configuration/authToken.d.ts +0 -30
- package/lib/esm/src/components/c3-user-configuration/authToken.js +0 -30
- package/lib/esm/src/components/c3-user-configuration/c3-profile-provider/c3-profile-provider.d.ts +0 -26
- package/lib/esm/src/components/c3-user-configuration/c3-profile-provider/c3-profile-provider.js +0 -117
- package/lib/esm/src/components/c3-user-configuration/c3-profile-provider/carbon-theme-provider.d.ts +0 -13
- package/lib/esm/src/components/c3-user-configuration/c3-profile-provider/carbon-theme-provider.js +0 -29
- package/lib/esm/src/components/c3-user-configuration/c3-user-configuration-provider.d.ts +0 -54
- package/lib/esm/src/components/c3-user-configuration/c3-user-configuration-provider.js +0 -43
- package/lib/esm/src/components/styles.d.ts +0 -13
- package/lib/esm/src/components/styles.js +0 -90
- package/lib/esm/src/components/test-utils.d.ts +0 -3
- package/lib/esm/src/components/test-utils.js +0 -32
- package/lib/esm/src/contexts/c3-cluster-update-manager.d.ts +0 -12
- package/lib/esm/src/contexts/c3-cluster-update-manager.js +0 -27
- package/lib/esm/src/hooks/useApi.d.ts +0 -20
- package/lib/esm/src/hooks/useApi.js +0 -54
- package/lib/esm/src/index.d.ts +0 -23
- package/lib/esm/src/index.js +0 -19
- package/lib/esm/src/utils/camunda.d.ts +0 -21
- package/lib/esm/src/utils/camunda.js +0 -59
- package/lib/esm/src/utils/camunda.types.d.ts +0 -63
- package/lib/esm/src/utils/camunda.types.js +0 -6
- package/lib/esm/src/utils/versionCheck.utils.d.ts +0 -15
- package/lib/esm/src/utils/versionCheck.utils.js +0 -79
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
4
|
-
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
|
-
* You may not use this file except in compliance with the commercial license.
|
|
6
|
-
*/
|
|
7
|
-
import { Button, HeaderPanel as CarbonHeaderPanel, HeaderGlobalAction, Stack, SwitcherDivider, } from '@carbon/react';
|
|
8
|
-
import { useEffect } from 'react';
|
|
9
|
-
import styled from 'styled-components';
|
|
10
|
-
import { useOnClickOutside } from '../helpers.js';
|
|
11
|
-
import C3NavigationSidebarElement from './c3-navigation-sidebar-element.js';
|
|
12
|
-
import { useSidebarState } from './c3-sidebar-state-provider.js';
|
|
13
|
-
const Wrapper = styled.div `
|
|
14
|
-
.cds--popover * {
|
|
15
|
-
z-index: 9000;
|
|
16
|
-
}
|
|
17
|
-
`;
|
|
18
|
-
const HeaderPanel = styled(CarbonHeaderPanel) `
|
|
19
|
-
visibility: ${({ expanded }) => (expanded ? 'visible' : 'hidden')};
|
|
20
|
-
display: grid;
|
|
21
|
-
grid-auto-flow: row;
|
|
22
|
-
grid-auto-rows: max-content 1fr;
|
|
23
|
-
overflow-y: auto;
|
|
24
|
-
overflow-x: hidden;
|
|
25
|
-
width: ${({ expanded }) => (expanded === true ? 'calc(16rem)' : '0')};
|
|
26
|
-
|
|
27
|
-
.cds--overflow-menu-options {
|
|
28
|
-
width: 165px;
|
|
29
|
-
}
|
|
30
|
-
`;
|
|
31
|
-
const BottomElements = styled.div `
|
|
32
|
-
align-self: end;
|
|
33
|
-
`;
|
|
34
|
-
const C3NavigationSideBar = (props) => {
|
|
35
|
-
const { icon, sideBar, children, version, bottomChildren } = props;
|
|
36
|
-
const { callbacks, onOpen } = sideBar;
|
|
37
|
-
const { isOpen, setIsOpen: setOpenState, scrollBarWidth, setScrollBarWidth, } = useSidebarState()[sideBar.type];
|
|
38
|
-
const setIsOpen = (open) => {
|
|
39
|
-
if (open) {
|
|
40
|
-
callbacks?.beforeOpening?.();
|
|
41
|
-
onOpen?.();
|
|
42
|
-
}
|
|
43
|
-
setOpenState(open);
|
|
44
|
-
if (!open)
|
|
45
|
-
callbacks?.afterClosing?.();
|
|
46
|
-
};
|
|
47
|
-
const itemTabIndex = isOpen ? undefined : -1;
|
|
48
|
-
const { panelRef, setPanelRef, setIconRef } = useOnClickOutside(() => setIsOpen(false));
|
|
49
|
-
const id = `c3-${sideBar.type}-sidebar`;
|
|
50
|
-
const handleResize = () => {
|
|
51
|
-
const scrollbarWidth = panelRef.current
|
|
52
|
-
? panelRef.current?.offsetWidth - panelRef.current?.clientWidth
|
|
53
|
-
: 0;
|
|
54
|
-
setScrollBarWidth(scrollbarWidth);
|
|
55
|
-
};
|
|
56
|
-
useEffect(() => {
|
|
57
|
-
window.addEventListener('resize', handleResize);
|
|
58
|
-
handleResize();
|
|
59
|
-
return () => window.removeEventListener('resize', handleResize);
|
|
60
|
-
}, []);
|
|
61
|
-
useEffect(() => {
|
|
62
|
-
if (isOpen) {
|
|
63
|
-
setTimeout(() => {
|
|
64
|
-
handleResize();
|
|
65
|
-
}, 120);
|
|
66
|
-
}
|
|
67
|
-
}, [isOpen]);
|
|
68
|
-
return (_jsxs(Wrapper, { children: [_jsx(HeaderGlobalAction
|
|
69
|
-
/* @ts-expect-error */
|
|
70
|
-
, {
|
|
71
|
-
/* @ts-expect-error */
|
|
72
|
-
ref: setIconRef, "aria-label": sideBar.tooltip ?? `Open ${sideBar.ariaLabel}`, "aria-expanded": isOpen, "aria-controls": id, onClick: () => {
|
|
73
|
-
setIsOpen(!isOpen);
|
|
74
|
-
}, isActive: isOpen, tooltipAlignment: sideBar.type === 'user' ? 'end' : 'center', leaveDelayMs: 100, children: icon }), _jsxs(HeaderPanel, { ref: setPanelRef, expanded: isOpen, "data-floating-menu-container": true, children: [_jsxs(Stack, { children: [children, sideBar.elements &&
|
|
75
|
-
sideBar.elements.length > 0 &&
|
|
76
|
-
'customElements' in sideBar &&
|
|
77
|
-
sideBar.customElements &&
|
|
78
|
-
'activeOrganization' in sideBar.customElements &&
|
|
79
|
-
!sideBar.customElements?.activeOrganization && _jsx(SwitcherDivider, {}), sideBar.elements?.map((element, index) => (_jsx(C3NavigationSidebarElement, { element: element, index: index, sideBar: sideBar, setSideBarOpen: setIsOpen, itemTabIndex: itemTabIndex, scrollBarWidth: scrollBarWidth }, element.key))), bottomChildren] }), version, _jsx(BottomElements, { children: sideBar.bottomElements &&
|
|
80
|
-
sideBar.bottomElements.map((element) => (_jsx(Button, { kind: element.kind, className: 'cds--switcher__item', renderIcon: element.renderIcon, onClick: () => {
|
|
81
|
-
if (element.onClick) {
|
|
82
|
-
element.onClick();
|
|
83
|
-
}
|
|
84
|
-
if (sideBar.closeOnClick !== false) {
|
|
85
|
-
setIsOpen(false);
|
|
86
|
-
}
|
|
87
|
-
}, tabIndex: itemTabIndex, style: { width: `calc(16rem + 2px - ${scrollBarWidth}px)` }, children: element.label }, element.key))) })] })] }));
|
|
88
|
-
};
|
|
89
|
-
export default C3NavigationSideBar;
|
package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.types.d.ts
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import type { JSX } from 'react';
|
|
2
|
-
import type { Notification } from '../../../api/notifications';
|
|
3
|
-
import type { C3NavigationElementProps } from '../c3-navigation.types';
|
|
4
|
-
export type C3NavigationSideBarBaseProps = {
|
|
5
|
-
ariaLabel?: string;
|
|
6
|
-
tooltip?: string;
|
|
7
|
-
isOpen?: boolean;
|
|
8
|
-
onOpen?: () => void;
|
|
9
|
-
closeOnClick?: boolean;
|
|
10
|
-
elementClicked?: (key: string) => void;
|
|
11
|
-
elements?: C3NavigationElementProps[];
|
|
12
|
-
bottomElements?: C3NavigationElementProps[];
|
|
13
|
-
};
|
|
14
|
-
export type CamundaOrg = {
|
|
15
|
-
activeLabel: string;
|
|
16
|
-
otherLabel: string;
|
|
17
|
-
orgName: string;
|
|
18
|
-
action: {
|
|
19
|
-
label: string;
|
|
20
|
-
onClick: () => void;
|
|
21
|
-
};
|
|
22
|
-
teamsLabel?: string;
|
|
23
|
-
};
|
|
24
|
-
export type C3NavigationOrgSideBarProps = C3NavigationSideBarBaseProps & {
|
|
25
|
-
type: 'org';
|
|
26
|
-
customElements?: {
|
|
27
|
-
activeOrganization?: CamundaOrg;
|
|
28
|
-
};
|
|
29
|
-
switchToOrg?: (orgId: string) => void;
|
|
30
|
-
manageOrg?: (orgId: string) => void;
|
|
31
|
-
manageSuperorg?: (orgId: string) => void;
|
|
32
|
-
manageTeam?: (orgId: string, teamId: string) => void;
|
|
33
|
-
};
|
|
34
|
-
export type C3NavigationInfoSideBarProps = C3NavigationSideBarBaseProps & {
|
|
35
|
-
type: 'info';
|
|
36
|
-
version?: string;
|
|
37
|
-
};
|
|
38
|
-
export type C3NavigationUserSideBarProps = C3NavigationSideBarBaseProps & {
|
|
39
|
-
type: 'user';
|
|
40
|
-
version?: string;
|
|
41
|
-
customElements?: {
|
|
42
|
-
customSection?: JSX.Element;
|
|
43
|
-
profile?: {
|
|
44
|
-
label: string;
|
|
45
|
-
user: {
|
|
46
|
-
name: string;
|
|
47
|
-
email: string;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
themeSelector?: {
|
|
51
|
-
currentTheme: string;
|
|
52
|
-
onChange: (newValue: string) => void;
|
|
53
|
-
};
|
|
54
|
-
stageToggle?: {
|
|
55
|
-
prodFeaturesEnabled: boolean;
|
|
56
|
-
toggle: () => void;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
export type C3NavigationNotificationsSideBarProps = C3NavigationSideBarBaseProps & {
|
|
61
|
-
type: 'notifications';
|
|
62
|
-
onLinkClick?: (meta: Notification['meta']) => void;
|
|
63
|
-
};
|
|
64
|
-
type AppTeaserRouteProps = any;
|
|
65
|
-
export type C3NavigationAppBarProps = Omit<C3NavigationSideBarBaseProps, 'tooltip'> & {
|
|
66
|
-
type: 'app';
|
|
67
|
-
appTeaserRouteProps?: {
|
|
68
|
-
operate?: AppTeaserRouteProps;
|
|
69
|
-
tasklist?: AppTeaserRouteProps;
|
|
70
|
-
optimize?: AppTeaserRouteProps;
|
|
71
|
-
identity?: AppTeaserRouteProps;
|
|
72
|
-
admin?: AppTeaserRouteProps;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
export type C3NavigationSideBarProps = {
|
|
76
|
-
callbacks?: {
|
|
77
|
-
beforeOpening?: () => void;
|
|
78
|
-
afterClosing?: () => void;
|
|
79
|
-
};
|
|
80
|
-
} & (C3NavigationOrgSideBarProps | C3NavigationInfoSideBarProps | C3NavigationUserSideBarProps | C3NavigationNotificationsSideBarProps);
|
|
81
|
-
export {};
|
package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-notification-sidebar.js
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
4
|
-
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
|
-
* You may not use this file except in compliance with the commercial license.
|
|
6
|
-
*/
|
|
7
|
-
import { Button } from '@carbon/react';
|
|
8
|
-
import { Notification as NotificationIcon } from '@carbon/react/icons/index.esm.js';
|
|
9
|
-
import { useContext, useEffect, useRef, useState } from 'react';
|
|
10
|
-
import styled from 'styled-components';
|
|
11
|
-
import { C3BellIcon, C3NotificationsUnreadIcon } from '../../../assets/c3-icons.js';
|
|
12
|
-
import C3NotificationContainer, { NotificationDescription, NotificationTitle, } from '../c3-notification-provider/c3-notification-container.js';
|
|
13
|
-
import { C3NotificationContext } from '../c3-notification-provider/c3-notification-provider.js';
|
|
14
|
-
import C3NavigationSideBar from './c3-navigation-sidebar.js';
|
|
15
|
-
import { useNotificationSidebarState } from './c3-sidebar-state-provider.js';
|
|
16
|
-
const PanelHeader = styled.div `
|
|
17
|
-
background: var(--cds-layer-01);
|
|
18
|
-
box-shadow: inset 0px -1px 0px var(--cds-border-subtle-01);
|
|
19
|
-
width: 100%;
|
|
20
|
-
height: 60px;
|
|
21
|
-
padding: 24px 16px 13px;
|
|
22
|
-
display: flex;
|
|
23
|
-
flex-direction: row;
|
|
24
|
-
justify-content: space-between;
|
|
25
|
-
align-items: center;
|
|
26
|
-
`;
|
|
27
|
-
const PanelTitle = styled.span `
|
|
28
|
-
color: var(--cds-text-primary);
|
|
29
|
-
font-size: var(--cds-body-01-font-size);
|
|
30
|
-
font-weight: var(--cds-body-01-font-weight);
|
|
31
|
-
line-height: var(--cds-body-01-line-height);
|
|
32
|
-
letter-spacing: var(--cds-body-01-letter-spacing);
|
|
33
|
-
`;
|
|
34
|
-
const DismissAllButton = styled(Button) `
|
|
35
|
-
font-size: var(--cds-helper-text-01-font-size);
|
|
36
|
-
font-weight: var(--cds-helper-text-01-font-weight);
|
|
37
|
-
line-height: var(--cds-helper-text-01-line-height);
|
|
38
|
-
letter-spacing: var(--cds-helper-text-01-letter-spacing);
|
|
39
|
-
`;
|
|
40
|
-
const EmptyState = styled.div `
|
|
41
|
-
padding: 16px;
|
|
42
|
-
`;
|
|
43
|
-
const EmptyStateTitle = styled(NotificationTitle) `
|
|
44
|
-
margin-top: 24px;
|
|
45
|
-
`;
|
|
46
|
-
const EmptyStateDescription = styled(NotificationDescription) `
|
|
47
|
-
color: var(--cds-text-secondary);
|
|
48
|
-
margin-top: 8px;
|
|
49
|
-
`;
|
|
50
|
-
export const C3NotificationSidebar = ({ sideBar }) => {
|
|
51
|
-
const { onLinkClick } = sideBar;
|
|
52
|
-
const { notifications, isFetching, markAsRead, dismiss, markAllAsRead, dismissAll, analytics, enabled, } = useContext(C3NotificationContext);
|
|
53
|
-
const [unreadNotifications, setUnreadNotifications] = useState([]);
|
|
54
|
-
const hasUnreadNotifications = notifications?.some(({ state }) => state === 'new');
|
|
55
|
-
const { isOpen } = useNotificationSidebarState();
|
|
56
|
-
const notificationsRef = useRef([]);
|
|
57
|
-
notificationsRef.current = notifications;
|
|
58
|
-
const markAllAsReadSidebar = () => {
|
|
59
|
-
const newNotifications = notificationsRef.current?.filter((notification) => notification.state === 'new');
|
|
60
|
-
if (newNotifications)
|
|
61
|
-
markAllAsRead(newNotifications);
|
|
62
|
-
};
|
|
63
|
-
const dismissAllSidebar = () => dismissAll(notifications);
|
|
64
|
-
const beforeOpening = () => {
|
|
65
|
-
// remember new notifications, so the dots can be displayed
|
|
66
|
-
if (notificationsRef.current)
|
|
67
|
-
setUnreadNotifications(notificationsRef.current
|
|
68
|
-
.filter(({ state }) => state === 'new')
|
|
69
|
-
.map(({ uuid }) => uuid));
|
|
70
|
-
markAllAsReadSidebar();
|
|
71
|
-
if (enabled && analytics) {
|
|
72
|
-
analytics('notification-panel-opened');
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
const afterClosing = () => {
|
|
76
|
-
markAllAsReadSidebar();
|
|
77
|
-
setUnreadNotifications([]);
|
|
78
|
-
};
|
|
79
|
-
const sortNotificationsDescending = (a, b) => {
|
|
80
|
-
if (new Date(a.timestamp) > new Date(b.timestamp))
|
|
81
|
-
return -1;
|
|
82
|
-
return 0;
|
|
83
|
-
};
|
|
84
|
-
useEffect(() => {
|
|
85
|
-
// mark notifications as read on unmount
|
|
86
|
-
return () => {
|
|
87
|
-
if (isOpen)
|
|
88
|
-
markAllAsReadSidebar();
|
|
89
|
-
};
|
|
90
|
-
}, []);
|
|
91
|
-
return (_jsxs(C3NavigationSideBar, { sideBar: {
|
|
92
|
-
...sideBar,
|
|
93
|
-
ariaLabel: sideBar.ariaLabel || 'Notification Sidebar',
|
|
94
|
-
callbacks: { beforeOpening, afterClosing },
|
|
95
|
-
}, icon: hasUnreadNotifications && !isFetching ? (_jsx(C3NotificationsUnreadIcon, { size: 20 })) : (_jsx(NotificationIcon, { size: 20, "aria-label": 'Notifications' })), children: [_jsxs(PanelHeader, { children: [_jsx(PanelTitle, { children: "Notifications" }), notifications.length > 0 && (_jsx(DismissAllButton, { kind: 'ghost', size: 'sm', onClick: dismissAllSidebar, children: "Dismiss all" }))] }), notifications.length > 0 ? (notifications.sort(sortNotificationsDescending).map((notification) => (_jsx(C3NotificationContainer, { onRead: () => {
|
|
96
|
-
if (notification.state === 'new') {
|
|
97
|
-
markAsRead(notification);
|
|
98
|
-
}
|
|
99
|
-
}, onDismiss: () => dismiss(notification), originalOnLinkClick: onLinkClick, onLinkClick: () => {
|
|
100
|
-
if (enabled && analytics) {
|
|
101
|
-
analytics('notification-clicked-cta', notification.meta?.identifier);
|
|
102
|
-
}
|
|
103
|
-
if (onLinkClick) {
|
|
104
|
-
onLinkClick(notification.meta);
|
|
105
|
-
}
|
|
106
|
-
}, unread: unreadNotifications.some((id) => id === notification.uuid), ...notification }, notification.uuid)))) : (_jsxs(EmptyState, { children: [_jsx(C3BellIcon, { size: 56 }), _jsx(EmptyStateTitle, { children: "No notifications" }), _jsx(EmptyStateDescription, { children: "New updates regarding your processes, clusters and more will appear here." })] }))] }));
|
|
107
|
-
};
|
package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-sidebar-state-provider.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React, { type FC } from 'react';
|
|
2
|
-
type DefaultValues = {
|
|
3
|
-
isNotificationSidebarOpen?: boolean;
|
|
4
|
-
isOrgSidebarOpen?: boolean;
|
|
5
|
-
isInfoSidebarOpen?: boolean;
|
|
6
|
-
isUserSidebarOpen?: boolean;
|
|
7
|
-
};
|
|
8
|
-
type SideBarState = {
|
|
9
|
-
isOpen: boolean;
|
|
10
|
-
setIsOpen: (isOpen: boolean) => void;
|
|
11
|
-
scrollBarWidth: number;
|
|
12
|
-
setScrollBarWidth: (scrollBarWidth: number) => void;
|
|
13
|
-
};
|
|
14
|
-
type C3SidebarsState = {
|
|
15
|
-
notifications: SideBarState;
|
|
16
|
-
org: SideBarState;
|
|
17
|
-
info: SideBarState;
|
|
18
|
-
user: SideBarState;
|
|
19
|
-
};
|
|
20
|
-
export declare const C3SidebarStateContext: React.Context<C3SidebarsState | null>;
|
|
21
|
-
export declare const C3SidebarStateProvider: FC<DefaultValues & {
|
|
22
|
-
children?: React.ReactNode;
|
|
23
|
-
}>;
|
|
24
|
-
export declare const useSidebarState: () => C3SidebarsState;
|
|
25
|
-
export declare const useNotificationSidebarState: () => SideBarState;
|
|
26
|
-
export declare const useOrgSidebarState: () => SideBarState;
|
|
27
|
-
export declare const useInfoSidebarState: () => SideBarState;
|
|
28
|
-
export declare const useUserSidebarState: () => SideBarState;
|
|
29
|
-
export {};
|
package/lib/esm/src/components/c3-navigation/c3-navigation-sidebar/c3-sidebar-state-provider.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
4
|
-
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
|
-
* You may not use this file except in compliance with the commercial license.
|
|
6
|
-
*/
|
|
7
|
-
import React, { useContext, useState } from 'react';
|
|
8
|
-
export const C3SidebarStateContext = React.createContext(null);
|
|
9
|
-
export const C3SidebarStateProvider = ({ children, ...value }) => {
|
|
10
|
-
const [isNotificationSidebarOpen, setIsNotificationSidebarOpen] = useState(value.isNotificationSidebarOpen || false);
|
|
11
|
-
const [notificationScrollBarWidth, setNotificationScrollBarWidth] = useState(0);
|
|
12
|
-
const [isOrgSidebarOpen, setIsOrgSidebarOpen] = useState(value.isOrgSidebarOpen || false);
|
|
13
|
-
const [orgScrollBarWidth, setOrgScrollBarWidth] = useState(0);
|
|
14
|
-
const [isInfoSidebarOpen, setIsInfoSidebarOpen] = useState(value.isInfoSidebarOpen || false);
|
|
15
|
-
const [infoScrollBarWidth, setInfoScrollBarWidth] = useState(0);
|
|
16
|
-
const [isUserSidebarOpen, setIsUserSidebarOpen] = useState(value.isUserSidebarOpen || false);
|
|
17
|
-
const [userScrollBarWidth, setUserScrollBarWidth] = useState(0);
|
|
18
|
-
return (_jsx(C3SidebarStateContext.Provider, { value: {
|
|
19
|
-
notifications: {
|
|
20
|
-
isOpen: isNotificationSidebarOpen,
|
|
21
|
-
setIsOpen: setIsNotificationSidebarOpen,
|
|
22
|
-
scrollBarWidth: notificationScrollBarWidth,
|
|
23
|
-
setScrollBarWidth: setNotificationScrollBarWidth,
|
|
24
|
-
},
|
|
25
|
-
org: {
|
|
26
|
-
isOpen: isOrgSidebarOpen,
|
|
27
|
-
setIsOpen: setIsOrgSidebarOpen,
|
|
28
|
-
scrollBarWidth: orgScrollBarWidth,
|
|
29
|
-
setScrollBarWidth: setOrgScrollBarWidth,
|
|
30
|
-
},
|
|
31
|
-
info: {
|
|
32
|
-
isOpen: isInfoSidebarOpen,
|
|
33
|
-
setIsOpen: setIsInfoSidebarOpen,
|
|
34
|
-
scrollBarWidth: infoScrollBarWidth,
|
|
35
|
-
setScrollBarWidth: setInfoScrollBarWidth,
|
|
36
|
-
},
|
|
37
|
-
user: {
|
|
38
|
-
isOpen: isUserSidebarOpen,
|
|
39
|
-
setIsOpen: setIsUserSidebarOpen,
|
|
40
|
-
scrollBarWidth: userScrollBarWidth,
|
|
41
|
-
setScrollBarWidth: setUserScrollBarWidth,
|
|
42
|
-
},
|
|
43
|
-
}, children: children }));
|
|
44
|
-
};
|
|
45
|
-
export const useSidebarState = () => {
|
|
46
|
-
const value = useContext(C3SidebarStateContext);
|
|
47
|
-
if (!value)
|
|
48
|
-
throw new Error('No C3SidebarStateContextProvider found.');
|
|
49
|
-
return value;
|
|
50
|
-
};
|
|
51
|
-
export const useNotificationSidebarState = () => useSidebarState().notifications;
|
|
52
|
-
export const useOrgSidebarState = () => useSidebarState().org;
|
|
53
|
-
export const useInfoSidebarState = () => useSidebarState().info;
|
|
54
|
-
export const useUserSidebarState = () => useSidebarState().user;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
4
|
-
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
|
-
* You may not use this file except in compliance with the commercial license.
|
|
6
|
-
*/
|
|
7
|
-
import { FormLabel, RadioButton, RadioButtonGroup, Stack, SwitcherDivider, Toggle, } from '@carbon/react';
|
|
8
|
-
import { UserAvatar } from '@carbon/react/icons/index.esm.js';
|
|
9
|
-
import styled from 'styled-components';
|
|
10
|
-
import { useC3Profile, } from '../../c3-user-configuration/c3-profile-provider/c3-profile-provider.js';
|
|
11
|
-
import { useC3UserConfiguration } from '../../c3-user-configuration/c3-user-configuration-provider.js';
|
|
12
|
-
import C3NavigationSideBar from './c3-navigation-sidebar.js';
|
|
13
|
-
import { useUserSidebarState } from './c3-sidebar-state-provider.js';
|
|
14
|
-
const VersionWrapper = styled.div `
|
|
15
|
-
align-self: end;
|
|
16
|
-
padding: 0.5rem 1rem;
|
|
17
|
-
`;
|
|
18
|
-
const Version = styled.p `
|
|
19
|
-
color: var(--cds-text-primary);
|
|
20
|
-
font-size: var(--cds-label-02-font-size);
|
|
21
|
-
font-weight: var(--cds-label-02-font-weight);
|
|
22
|
-
line-height: var(--cds-label-02-line-height);
|
|
23
|
-
letter-spacing: var(--cds-label-02-letter-spacing);
|
|
24
|
-
`;
|
|
25
|
-
const Copyright = styled.p `
|
|
26
|
-
color: var(--cds-text-secondary);
|
|
27
|
-
font-size: var(--cds-label-01-font-size);
|
|
28
|
-
font-weight: var(--cds-label-01-font-weight);
|
|
29
|
-
line-height: var(--cds-label-01-line-height);
|
|
30
|
-
letter-spacing: var(--cds-label-01-letter-spacing);
|
|
31
|
-
`;
|
|
32
|
-
const C3UserSidebar = ({ sideBar }) => {
|
|
33
|
-
const { customElements, version, ...sideBarProps } = sideBar;
|
|
34
|
-
const profile = customElements?.profile;
|
|
35
|
-
const themeSelector = customElements?.themeSelector;
|
|
36
|
-
const stageToggle = customElements?.stageToggle;
|
|
37
|
-
const customSection = customElements?.customSection;
|
|
38
|
-
const { handleTheme } = useC3UserConfiguration();
|
|
39
|
-
const { theme, onThemeChange } = useC3Profile();
|
|
40
|
-
const { isOpen } = useUserSidebarState();
|
|
41
|
-
const itemTabIndex = isOpen ? undefined : -1;
|
|
42
|
-
return (_jsxs(C3NavigationSideBar, { sideBar: {
|
|
43
|
-
...sideBarProps,
|
|
44
|
-
ariaLabel: sideBarProps.ariaLabel || 'User Sidebar',
|
|
45
|
-
}, icon: _jsx(UserAvatar, { size: 20 }), version: version && (_jsxs(VersionWrapper, { children: [_jsxs(Version, { children: ["Version ", version] }), _jsxs(Copyright, { children: ["\u00A9 Camunda Services GmbH ", new Date().getFullYear()] }), _jsx(Copyright, { children: "All right reserved." })] })), bottomChildren: customSection, children: [profile && (_jsx("div", { style: {
|
|
46
|
-
padding: '1rem',
|
|
47
|
-
paddingTop: '1.5rem',
|
|
48
|
-
paddingBottom: '.5rem',
|
|
49
|
-
}, children: _jsxs(Stack, { gap: 2, children: [_jsx(FormLabel, { children: profile.label }), _jsxs(Stack, { children: [_jsx("div", { className: 'textPrimary', style: { fontSize: '14px' }, children: profile.user.name }), _jsx("div", { className: 'textPrimary', style: { fontSize: '12px' }, children: profile.user.email })] })] }) })), (themeSelector || handleTheme) && (_jsxs(_Fragment, { children: [_jsx(SwitcherDivider, {}), _jsx("div", { style: {
|
|
50
|
-
padding: '.5rem 1rem',
|
|
51
|
-
}, children: _jsxs(RadioButtonGroup, { name: 'theme-radio-group', legendText: 'Theme', orientation: 'vertical', onChange: (newValue) => {
|
|
52
|
-
handleTheme
|
|
53
|
-
? onThemeChange(newValue)
|
|
54
|
-
: themeSelector?.onChange(newValue);
|
|
55
|
-
}, valueSelected: handleTheme ? theme : themeSelector?.currentTheme, children: [_jsx(RadioButton, { id: 'light', labelText: 'Light', value: 'light', tabIndex: itemTabIndex }), _jsx(RadioButton, { id: 'system', labelText: 'System', value: 'system', tabIndex: itemTabIndex }), _jsx(RadioButton, { id: 'dark', labelText: 'Dark', value: 'dark', tabIndex: itemTabIndex })] }) })] })), stageToggle && (_jsxs(_Fragment, { children: [_jsx(SwitcherDivider, {}), _jsx("div", { style: { padding: '.5rem 1rem' }, children: _jsx(Toggle, { size: 'sm', id: 'toggle-productionfeatures', defaultToggled: stageToggle.prodFeaturesEnabled, onClick: stageToggle.toggle, labelText: 'Simulate Production Features', tabIndex: itemTabIndex, "aria-label": 'Simulate Production Features' }) })] }))] }));
|
|
56
|
-
};
|
|
57
|
-
export default C3UserSidebar;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
3
|
-
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
4
|
-
* You may not use this file except in compliance with the commercial license.
|
|
5
|
-
*/
|
|
6
|
-
import { SwitcherDivider as CarbonSwitcherDivider } from '@carbon/react';
|
|
7
|
-
import styled from 'styled-components';
|
|
8
|
-
export const SwitcherDivider = styled(CarbonSwitcherDivider) `
|
|
9
|
-
margin: auto;
|
|
10
|
-
width: calc(100% - 30px);
|
|
11
|
-
`;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type JSX } from 'react';
|
|
2
|
-
import type { C3NavigationProps } from './c3-navigation.types';
|
|
3
|
-
export declare const SECOND = 1000;
|
|
4
|
-
export declare const MINUTE: number;
|
|
5
|
-
export declare const HOUR: number;
|
|
6
|
-
export declare const DAY: number;
|
|
7
|
-
export declare const C3Navigation: ({ app, appBar, forwardRef, navbar, orgSideBar, infoSideBar, infoButton, helpCenter, actionButtons, userSideBar, notificationSideBar, clusterUuid, options, }: C3NavigationProps) => JSX.Element;
|