@camunda/camunda-composite-components 0.0.41 → 0.0.42

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.
Files changed (64) hide show
  1. package/README.md +2 -1
  2. package/lib/esm/api/api.d.ts +19 -19
  3. package/lib/esm/api/api.js +65 -67
  4. package/lib/esm/api/endpoints.const.d.ts +12 -12
  5. package/lib/esm/api/endpoints.const.js +24 -25
  6. package/lib/esm/api/jwt.utils.d.ts +3 -3
  7. package/lib/esm/api/jwt.utils.js +23 -21
  8. package/lib/esm/api/notifications.d.ts +64 -35
  9. package/lib/esm/api/notifications.js +168 -159
  10. package/lib/esm/components/c3-empty-state/c3-empty-state.d.ts +8 -2
  11. package/lib/esm/components/c3-empty-state/c3-empty-state.js +58 -17
  12. package/lib/esm/components/c3-empty-state/c3-empty-state.types.d.ts +19 -19
  13. package/lib/esm/components/c3-empty-state/c3-empty-state.types.js +1 -1
  14. package/lib/esm/components/c3-navigation/c3-info-button.d.ts +3 -3
  15. package/lib/esm/components/c3-navigation/c3-info-button.js +13 -5
  16. package/lib/esm/components/c3-navigation/c3-navigation-actions/c3-action-buttons.d.ts +5 -5
  17. package/lib/esm/components/c3-navigation/c3-navigation-actions/c3-action-buttons.js +21 -8
  18. package/lib/esm/components/c3-navigation/c3-navigation-actions/c3-action-buttons.types.d.ts +5 -5
  19. package/lib/esm/components/c3-navigation/c3-navigation-actions/c3-action-buttons.types.js +1 -1
  20. package/lib/esm/components/c3-navigation/c3-navigation-appbar.d.ts +3 -3
  21. package/lib/esm/components/c3-navigation/c3-navigation-appbar.js +157 -68
  22. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-info-sidebar.d.ts +5 -5
  23. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-info-sidebar.js +58 -37
  24. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar-element.d.ts +9 -9
  25. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar-element.js +56 -33
  26. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.d.ts +8 -8
  27. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.js +114 -54
  28. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.types.d.ts +70 -60
  29. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.types.js +1 -1
  30. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-notification-sidebar.d.ts +4 -4
  31. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-notification-sidebar.js +142 -88
  32. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-org-sidebar.d.ts +5 -5
  33. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-org-sidebar.js +105 -51
  34. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-sidebar-state-provider.d.ts +26 -24
  35. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-sidebar-state-provider.js +38 -25
  36. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-user-sidebar.d.ts +5 -5
  37. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-user-sidebar.js +125 -43
  38. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/components.d.ts +6 -1
  39. package/lib/esm/components/c3-navigation/c3-navigation-sidebar/components.js +4 -4
  40. package/lib/esm/components/c3-navigation/c3-navigation.d.ts +13 -2
  41. package/lib/esm/components/c3-navigation/c3-navigation.js +210 -88
  42. package/lib/esm/components/c3-navigation/c3-navigation.types.d.ts +69 -63
  43. package/lib/esm/components/c3-navigation/c3-navigation.types.js +1 -1
  44. package/lib/esm/components/c3-navigation/c3-notification-provider/c3-notification-container.d.ts +30 -13
  45. package/lib/esm/components/c3-navigation/c3-notification-provider/c3-notification-container.js +114 -70
  46. package/lib/esm/components/c3-navigation/c3-notification-provider/c3-notification-provider.d.ts +29 -27
  47. package/lib/esm/components/c3-navigation/c3-notification-provider/c3-notification-provider.js +118 -90
  48. package/lib/esm/components/c3-navigation/helpers.d.ts +5 -3
  49. package/lib/esm/components/c3-navigation/helpers.js +53 -49
  50. package/lib/esm/components/c3-navigation/index.d.ts +4 -2
  51. package/lib/esm/components/c3-navigation/index.js +3 -3
  52. package/lib/esm/components/c3-navigation/story-helpers.d.ts +23 -18
  53. package/lib/esm/components/c3-navigation/story-helpers.js +189 -186
  54. package/lib/esm/components/c3-navigation/story-templates.d.ts +8 -8
  55. package/lib/esm/components/c3-navigation/story-templates.js +66 -33
  56. package/lib/esm/components/c3-user-configuration/c3-user-configuration-provider.d.ts +20 -16
  57. package/lib/esm/components/c3-user-configuration/c3-user-configuration-provider.js +9 -4
  58. package/lib/esm/icons/c3-icons.d.ts +7 -5
  59. package/lib/esm/icons/c3-icons.js +82 -14
  60. package/lib/esm/icons/c3-icons.types.d.ts +1 -1
  61. package/lib/esm/icons/c3-icons.types.js +1 -1
  62. package/lib/esm/index.d.ts +14 -9
  63. package/lib/esm/index.js +4 -4
  64. package/package.json +2 -1
@@ -1,52 +1,106 @@
1
- import React from "react";
2
- import { Button, FormLabel } from "@carbon/react";
3
- import { Enterprise } from "@carbon/react/icons";
4
- import C3NavigationSideBar from "./c3-navigation-sidebar";
5
- import { SwitcherDivider } from "./components";
6
- import { useOrgSidebarState } from "./c3-sidebar-state-provider";
1
+ import React from "react"
2
+ import { Button, FormLabel } from "@carbon/react"
3
+ import { Enterprise } from "@carbon/react/icons"
4
+ import C3NavigationSideBar from "./c3-navigation-sidebar"
5
+ import { SwitcherDivider } from "./components"
6
+ import { useOrgSidebarState } from "./c3-sidebar-state-provider"
7
7
  const C3OrgSidebar = ({ sideBar }) => {
8
- const { customElements, ...sideBarProps } = sideBar;
9
- const activeOrganization = customElements?.activeOrganization;
10
- const { isOpen, setIsOpen } = useOrgSidebarState();
11
- const itemTabIndex = isOpen ? undefined : -1;
12
- return (React.createElement(C3NavigationSideBar, { sideBar: {
13
- ...sideBarProps,
14
- ariaLabel: sideBarProps.ariaLabel || "Organization Sidebars",
15
- }, icon: React.createElement(Enterprise, { size: 20 }) }, activeOrganization && (React.createElement(React.Fragment, null,
16
- React.createElement("div", { style: {
17
- padding: "1rem",
18
- paddingTop: "1.5rem",
19
- paddingBottom: ".5rem",
20
- display: "grid",
21
- gridAutoFlow: "column",
22
- gap: ".25rem",
23
- } },
24
- React.createElement("div", { style: {
25
- overflow: "hidden",
26
- display: "grid",
27
- gap: "4px",
28
- } },
29
- React.createElement(FormLabel, null, activeOrganization.activeLabel),
30
- React.createElement("div", { className: "textPrimary", style: {
31
- height: "20px",
32
- lineHeight: "20px",
33
- fontSize: "14px",
34
- textOverflow: "ellipsis",
35
- overflow: "hidden",
36
- whiteSpace: "nowrap",
37
- }, title: activeOrganization.orgName }, activeOrganization.orgName)),
38
- React.createElement(Button, { size: "md", kind: "ghost", key: "org-management", onClick: () => {
39
- activeOrganization.action.onClick();
40
- if (sideBar.closeOnClick !== false) {
41
- setIsOpen(false);
42
- }
43
- }, tabIndex: itemTabIndex }, activeOrganization.action.label)),
44
- sideBar.elements && sideBar.elements.length > 0 && (React.createElement(React.Fragment, null,
45
- React.createElement(SwitcherDivider, null),
46
- React.createElement(FormLabel, { style: {
47
- paddingTop: ".5rem",
48
- paddingLeft: "1rem",
49
- paddingBottom: ".25rem",
50
- } }, activeOrganization.otherLabel)))))));
51
- };
52
- export default C3OrgSidebar;
8
+ const { customElements, ...sideBarProps } = sideBar
9
+ const activeOrganization = customElements?.activeOrganization
10
+ const { isOpen, setIsOpen } = useOrgSidebarState()
11
+ const itemTabIndex = isOpen ? undefined : -1
12
+ return React.createElement(
13
+ C3NavigationSideBar,
14
+ {
15
+ sideBar: {
16
+ ...sideBarProps,
17
+ ariaLabel: sideBarProps.ariaLabel || "Organization Sidebars",
18
+ },
19
+ icon: React.createElement(Enterprise, { size: 20 }),
20
+ },
21
+ activeOrganization &&
22
+ React.createElement(
23
+ React.Fragment,
24
+ null,
25
+ React.createElement(
26
+ "div",
27
+ {
28
+ style: {
29
+ padding: "1rem",
30
+ paddingTop: "1.5rem",
31
+ paddingBottom: ".5rem",
32
+ display: "grid",
33
+ gridAutoFlow: "column",
34
+ gap: ".25rem",
35
+ },
36
+ },
37
+ React.createElement(
38
+ "div",
39
+ {
40
+ style: {
41
+ overflow: "hidden",
42
+ display: "grid",
43
+ gap: "4px",
44
+ },
45
+ },
46
+ React.createElement(
47
+ FormLabel,
48
+ null,
49
+ activeOrganization.activeLabel,
50
+ ),
51
+ React.createElement(
52
+ "div",
53
+ {
54
+ className: "textPrimary",
55
+ style: {
56
+ height: "20px",
57
+ lineHeight: "20px",
58
+ fontSize: "14px",
59
+ textOverflow: "ellipsis",
60
+ overflow: "hidden",
61
+ whiteSpace: "nowrap",
62
+ },
63
+ title: activeOrganization.orgName,
64
+ },
65
+ activeOrganization.orgName,
66
+ ),
67
+ ),
68
+ React.createElement(
69
+ Button,
70
+ {
71
+ size: "md",
72
+ kind: "ghost",
73
+ key: "org-management",
74
+ onClick: () => {
75
+ activeOrganization.action.onClick()
76
+ if (sideBar.closeOnClick !== false) {
77
+ setIsOpen(false)
78
+ }
79
+ },
80
+ tabIndex: itemTabIndex,
81
+ },
82
+ activeOrganization.action.label,
83
+ ),
84
+ ),
85
+ sideBar.elements &&
86
+ sideBar.elements.length > 0 &&
87
+ React.createElement(
88
+ React.Fragment,
89
+ null,
90
+ React.createElement(SwitcherDivider, null),
91
+ React.createElement(
92
+ FormLabel,
93
+ {
94
+ style: {
95
+ paddingTop: ".5rem",
96
+ paddingLeft: "1rem",
97
+ paddingBottom: ".25rem",
98
+ },
99
+ },
100
+ activeOrganization.otherLabel,
101
+ ),
102
+ ),
103
+ ),
104
+ )
105
+ }
106
+ export default C3OrgSidebar
@@ -1,27 +1,29 @@
1
- import React, { FC } from "react";
1
+ import React, { FC } from "react"
2
2
  declare type DefaultValues = {
3
- isNotificationSidebarOpen?: boolean;
4
- isOrgSidebarOpen?: boolean;
5
- isInfoSidebarOpen?: boolean;
6
- isUserSidebarOpen?: boolean;
7
- };
3
+ isNotificationSidebarOpen?: boolean
4
+ isOrgSidebarOpen?: boolean
5
+ isInfoSidebarOpen?: boolean
6
+ isUserSidebarOpen?: boolean
7
+ }
8
8
  declare type SideBarState = {
9
- isOpen: boolean;
10
- setIsOpen: (isOpen: boolean) => void;
11
- };
9
+ isOpen: boolean
10
+ setIsOpen: (isOpen: boolean) => void
11
+ }
12
12
  declare type C3SidebarsState = {
13
- notifications: SideBarState;
14
- org: SideBarState;
15
- info: SideBarState;
16
- user: SideBarState;
17
- };
18
- export declare const C3SidebarStateContext: React.Context<C3SidebarsState | null>;
19
- export declare const C3SidebarStateProvider: FC<DefaultValues & {
20
- children?: React.ReactNode;
21
- }>;
22
- export declare const useSidebarState: () => C3SidebarsState;
23
- export declare const useNotificationSidebarState: () => SideBarState;
24
- export declare const useOrgSidebarState: () => SideBarState;
25
- export declare const useInfoSidebarState: () => SideBarState;
26
- export declare const useUserSidebarState: () => SideBarState;
27
- export {};
13
+ notifications: SideBarState
14
+ org: SideBarState
15
+ info: SideBarState
16
+ user: SideBarState
17
+ }
18
+ export declare const C3SidebarStateContext: React.Context<C3SidebarsState | null>
19
+ export declare const C3SidebarStateProvider: FC<
20
+ DefaultValues & {
21
+ children?: React.ReactNode
22
+ }
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 {}
@@ -1,27 +1,40 @@
1
- import React, { useContext, useState } from "react";
2
- export const C3SidebarStateContext = React.createContext(null);
1
+ import React, { useContext, useState } from "react"
2
+ export const C3SidebarStateContext = React.createContext(null)
3
3
  export const C3SidebarStateProvider = ({ children, ...value }) => {
4
- const [isNotificationSidebarOpen, setIsNotificationSidebarOpen] = useState(value.isNotificationSidebarOpen || false);
5
- const [isOrgSidebarOpen, setIsOrgSidebarOpen] = useState(value.isOrgSidebarOpen || false);
6
- const [isInfoSidebarOpen, setIsInfoSidebarOpen] = useState(value.isInfoSidebarOpen || false);
7
- const [isUserSidebarOpen, setIsUserSidebarOpen] = useState(value.isUserSidebarOpen || false);
8
- return (React.createElement(C3SidebarStateContext.Provider, { value: {
9
- notifications: {
10
- isOpen: isNotificationSidebarOpen,
11
- setIsOpen: setIsNotificationSidebarOpen,
12
- },
13
- org: { isOpen: isOrgSidebarOpen, setIsOpen: setIsOrgSidebarOpen },
14
- info: { isOpen: isInfoSidebarOpen, setIsOpen: setIsInfoSidebarOpen },
15
- user: { isOpen: isUserSidebarOpen, setIsOpen: setIsUserSidebarOpen },
16
- } }, children));
17
- };
4
+ const [isNotificationSidebarOpen, setIsNotificationSidebarOpen] = useState(
5
+ value.isNotificationSidebarOpen || false,
6
+ )
7
+ const [isOrgSidebarOpen, setIsOrgSidebarOpen] = useState(
8
+ value.isOrgSidebarOpen || false,
9
+ )
10
+ const [isInfoSidebarOpen, setIsInfoSidebarOpen] = useState(
11
+ value.isInfoSidebarOpen || false,
12
+ )
13
+ const [isUserSidebarOpen, setIsUserSidebarOpen] = useState(
14
+ value.isUserSidebarOpen || false,
15
+ )
16
+ return React.createElement(
17
+ C3SidebarStateContext.Provider,
18
+ {
19
+ value: {
20
+ notifications: {
21
+ isOpen: isNotificationSidebarOpen,
22
+ setIsOpen: setIsNotificationSidebarOpen,
23
+ },
24
+ org: { isOpen: isOrgSidebarOpen, setIsOpen: setIsOrgSidebarOpen },
25
+ info: { isOpen: isInfoSidebarOpen, setIsOpen: setIsInfoSidebarOpen },
26
+ user: { isOpen: isUserSidebarOpen, setIsOpen: setIsUserSidebarOpen },
27
+ },
28
+ },
29
+ children,
30
+ )
31
+ }
18
32
  export const useSidebarState = () => {
19
- const value = useContext(C3SidebarStateContext);
20
- if (!value)
21
- throw new Error("No C3SidebarStateContextProvider found.");
22
- return value;
23
- };
24
- export const useNotificationSidebarState = () => useSidebarState().notifications;
25
- export const useOrgSidebarState = () => useSidebarState().org;
26
- export const useInfoSidebarState = () => useSidebarState().info;
27
- export const useUserSidebarState = () => useSidebarState().user;
33
+ const value = useContext(C3SidebarStateContext)
34
+ if (!value) throw new Error("No C3SidebarStateContextProvider found.")
35
+ return value
36
+ }
37
+ export const useNotificationSidebarState = () => useSidebarState().notifications
38
+ export const useOrgSidebarState = () => useSidebarState().org
39
+ export const useInfoSidebarState = () => useSidebarState().info
40
+ export const useUserSidebarState = () => useSidebarState().user
@@ -1,6 +1,6 @@
1
- import { FC } from "react";
2
- import { C3NavigationUserSideBarProps } from "./c3-navigation-sidebar.types";
1
+ import { FC } from "react"
2
+ import { C3NavigationUserSideBarProps } from "./c3-navigation-sidebar.types"
3
3
  declare const C3UserSidebar: FC<{
4
- sideBar: C3NavigationUserSideBarProps;
5
- }>;
6
- export default C3UserSidebar;
4
+ sideBar: C3NavigationUserSideBarProps
5
+ }>
6
+ export default C3UserSidebar
@@ -1,44 +1,126 @@
1
- import React from "react";
2
- import C3NavigationSideBar from "./c3-navigation-sidebar";
3
- import { FormLabel, RadioButton, RadioButtonGroup, Stack, SwitcherDivider, Toggle, } from "@carbon/react";
4
- import { UserAvatar } from "@carbon/react/icons";
5
- import { useUserSidebarState } from "./c3-sidebar-state-provider";
1
+ import React from "react"
2
+ import C3NavigationSideBar from "./c3-navigation-sidebar"
3
+ import {
4
+ FormLabel,
5
+ RadioButton,
6
+ RadioButtonGroup,
7
+ Stack,
8
+ SwitcherDivider,
9
+ Toggle,
10
+ } from "@carbon/react"
11
+ import { UserAvatar } from "@carbon/react/icons"
12
+ import { useUserSidebarState } from "./c3-sidebar-state-provider"
6
13
  const C3UserSidebar = ({ sideBar }) => {
7
- const { customElements, ...sideBarProps } = sideBar;
8
- const profile = customElements?.profile;
9
- const themeSelector = customElements?.themeSelector;
10
- const stageToggle = customElements?.stageToggle;
11
- const customSection = customElements?.customSection;
12
- const { isOpen } = useUserSidebarState();
13
- const itemTabIndex = isOpen ? undefined : -1;
14
- return (React.createElement(C3NavigationSideBar, { sideBar: {
15
- ...sideBarProps,
16
- ariaLabel: sideBarProps.ariaLabel || "User Sidebar",
17
- }, icon: React.createElement(UserAvatar, { size: 20 }), bottomChildren: customSection },
18
- profile && (React.createElement("div", { style: {
19
- padding: "1rem",
20
- paddingTop: "1.5rem",
21
- paddingBottom: ".5rem",
22
- } },
23
- React.createElement(Stack, { gap: 2 },
24
- React.createElement(FormLabel, null, profile.label),
25
- React.createElement(Stack, null,
26
- React.createElement("div", { className: "textPrimary", style: { fontSize: "14px" } }, profile.user.name),
27
- React.createElement("div", { className: "textPrimary", style: { fontSize: "12px" } }, profile.user.email))))),
28
- themeSelector && (React.createElement(React.Fragment, null,
29
- React.createElement(SwitcherDivider, null),
30
- React.createElement("div", { style: {
31
- padding: ".5rem 1rem",
32
- } },
33
- React.createElement(RadioButtonGroup, { name: "theme-radio-group", defaultSelected: themeSelector.currentTheme, legendText: "Theme", orientation: "vertical", onChange: (newValue) => {
34
- themeSelector.onChange(newValue);
35
- } },
36
- React.createElement(RadioButton, { id: "light", labelText: "Light", value: "light", tabIndex: itemTabIndex }),
37
- React.createElement(RadioButton, { id: "system", labelText: "System", value: "system", tabIndex: itemTabIndex }),
38
- React.createElement(RadioButton, { id: "dark", labelText: "Dark", value: "dark", tabIndex: itemTabIndex }))))),
39
- stageToggle && (React.createElement(React.Fragment, null,
40
- React.createElement(SwitcherDivider, null),
41
- React.createElement("div", { style: { padding: ".5rem 1rem" } },
42
- React.createElement(Toggle, { size: "sm", id: "toggle-productionfeatures", defaultToggled: stageToggle.prodFeaturesEnabled, onClick: stageToggle.toggle, labelText: "Simulate Production Features", tabIndex: itemTabIndex, "aria-label": "Simulate Production Features" }))))));
43
- };
44
- export default C3UserSidebar;
14
+ const { customElements, ...sideBarProps } = sideBar
15
+ const profile = customElements?.profile
16
+ const themeSelector = customElements?.themeSelector
17
+ const stageToggle = customElements?.stageToggle
18
+ const customSection = customElements?.customSection
19
+ const { isOpen } = useUserSidebarState()
20
+ const itemTabIndex = isOpen ? undefined : -1
21
+ return React.createElement(
22
+ C3NavigationSideBar,
23
+ {
24
+ sideBar: {
25
+ ...sideBarProps,
26
+ ariaLabel: sideBarProps.ariaLabel || "User Sidebar",
27
+ },
28
+ icon: React.createElement(UserAvatar, { size: 20 }),
29
+ bottomChildren: customSection,
30
+ },
31
+ profile &&
32
+ React.createElement(
33
+ "div",
34
+ {
35
+ style: {
36
+ padding: "1rem",
37
+ paddingTop: "1.5rem",
38
+ paddingBottom: ".5rem",
39
+ },
40
+ },
41
+ React.createElement(
42
+ Stack,
43
+ { gap: 2 },
44
+ React.createElement(FormLabel, null, profile.label),
45
+ React.createElement(
46
+ Stack,
47
+ null,
48
+ React.createElement(
49
+ "div",
50
+ { className: "textPrimary", style: { fontSize: "14px" } },
51
+ profile.user.name,
52
+ ),
53
+ React.createElement(
54
+ "div",
55
+ { className: "textPrimary", style: { fontSize: "12px" } },
56
+ profile.user.email,
57
+ ),
58
+ ),
59
+ ),
60
+ ),
61
+ themeSelector &&
62
+ React.createElement(
63
+ React.Fragment,
64
+ null,
65
+ React.createElement(SwitcherDivider, null),
66
+ React.createElement(
67
+ "div",
68
+ {
69
+ style: {
70
+ padding: ".5rem 1rem",
71
+ },
72
+ },
73
+ React.createElement(
74
+ RadioButtonGroup,
75
+ {
76
+ name: "theme-radio-group",
77
+ defaultSelected: themeSelector.currentTheme,
78
+ legendText: "Theme",
79
+ orientation: "vertical",
80
+ onChange: (newValue) => {
81
+ themeSelector.onChange(newValue)
82
+ },
83
+ },
84
+ React.createElement(RadioButton, {
85
+ id: "light",
86
+ labelText: "Light",
87
+ value: "light",
88
+ tabIndex: itemTabIndex,
89
+ }),
90
+ React.createElement(RadioButton, {
91
+ id: "system",
92
+ labelText: "System",
93
+ value: "system",
94
+ tabIndex: itemTabIndex,
95
+ }),
96
+ React.createElement(RadioButton, {
97
+ id: "dark",
98
+ labelText: "Dark",
99
+ value: "dark",
100
+ tabIndex: itemTabIndex,
101
+ }),
102
+ ),
103
+ ),
104
+ ),
105
+ stageToggle &&
106
+ React.createElement(
107
+ React.Fragment,
108
+ null,
109
+ React.createElement(SwitcherDivider, null),
110
+ React.createElement(
111
+ "div",
112
+ { style: { padding: ".5rem 1rem" } },
113
+ React.createElement(Toggle, {
114
+ size: "sm",
115
+ id: "toggle-productionfeatures",
116
+ defaultToggled: stageToggle.prodFeaturesEnabled,
117
+ onClick: stageToggle.toggle,
118
+ labelText: "Simulate Production Features",
119
+ tabIndex: itemTabIndex,
120
+ "aria-label": "Simulate Production Features",
121
+ }),
122
+ ),
123
+ ),
124
+ )
125
+ }
126
+ export default C3UserSidebar
@@ -1,3 +1,8 @@
1
1
  /// <reference path="../../../../../src/carbon.d.ts" />
2
2
  /// <reference types="react" />
3
- export declare const SwitcherDivider: import("styled-components").StyledComponent<import("react").FC<import("@carbon/react").SwitcherDividerProps>, any, {}, never>;
3
+ export declare const SwitcherDivider: import("styled-components").StyledComponent<
4
+ import("react").FC<import("@carbon/react").SwitcherDividerProps>,
5
+ any,
6
+ {},
7
+ never
8
+ >
@@ -1,5 +1,5 @@
1
- import { SwitcherDivider as CarbonSwitcherDivider } from "@carbon/react";
2
- import styled from "styled-components";
3
- export const SwitcherDivider = styled(CarbonSwitcherDivider) `
1
+ import { SwitcherDivider as CarbonSwitcherDivider } from "@carbon/react"
2
+ import styled from "styled-components"
3
+ export const SwitcherDivider = styled(CarbonSwitcherDivider)`
4
4
  margin: auto;
5
- `;
5
+ `
@@ -1,3 +1,14 @@
1
1
  /// <reference types="react" />
2
- import { C3NavigationProps } from "./c3-navigation.types";
3
- export declare const C3Navigation: ({ app, appBar, forwardRef, navbar, orgSideBar, infoSideBar, infoButton, actionButtons, userSideBar, notificationSideBar, }: C3NavigationProps) => JSX.Element;
2
+ import { C3NavigationProps } from "./c3-navigation.types"
3
+ export declare const C3Navigation: ({
4
+ app,
5
+ appBar,
6
+ forwardRef,
7
+ navbar,
8
+ orgSideBar,
9
+ infoSideBar,
10
+ infoButton,
11
+ actionButtons,
12
+ userSideBar,
13
+ notificationSideBar,
14
+ }: C3NavigationProps) => JSX.Element