@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,27 +1,39 @@
1
- import { Header, HeaderContainer, HeaderGlobalBar, HeaderMenuItem, HeaderName as CarbonHeaderName, HeaderNavigation, SkipToContent, Tag, Toggletip, ToggletipButton, ToggletipContent, } from "@carbon/react";
2
- import React from "react";
3
- import C3InfoSidebar from "./c3-navigation-sidebar/c3-info-sidebar";
4
- import { C3NotificationSidebar } from "./c3-navigation-sidebar/c3-notification-sidebar";
5
- import C3OrgSidebar from "./c3-navigation-sidebar/c3-org-sidebar";
6
- import C3UserSidebar from "./c3-navigation-sidebar/c3-user-sidebar";
7
- import { useMediaQuery } from "./helpers";
8
- import { C3NavigationAppBar } from "./c3-navigation-appbar";
9
- import styled from "styled-components";
10
- import C3ActionButtons from "./c3-navigation-actions/c3-action-buttons";
11
- import { CamundaLogo } from "../../icons/c3-icons";
12
- import { InfoButton } from "./c3-info-button";
13
- import { C3SidebarStateProvider } from "./c3-navigation-sidebar/c3-sidebar-state-provider";
1
+ import {
2
+ Header,
3
+ HeaderContainer,
4
+ HeaderGlobalBar,
5
+ HeaderMenuItem,
6
+ HeaderName as CarbonHeaderName,
7
+ HeaderNavigation,
8
+ SkipToContent,
9
+ Tag,
10
+ Toggletip,
11
+ ToggletipButton,
12
+ ToggletipContent,
13
+ } from "@carbon/react"
14
+ import React from "react"
15
+ import C3InfoSidebar from "./c3-navigation-sidebar/c3-info-sidebar"
16
+ import { C3NotificationSidebar } from "./c3-navigation-sidebar/c3-notification-sidebar"
17
+ import C3OrgSidebar from "./c3-navigation-sidebar/c3-org-sidebar"
18
+ import C3UserSidebar from "./c3-navigation-sidebar/c3-user-sidebar"
19
+ import { useMediaQuery } from "./helpers"
20
+ import { C3NavigationAppBar } from "./c3-navigation-appbar"
21
+ import styled from "styled-components"
22
+ import C3ActionButtons from "./c3-navigation-actions/c3-action-buttons"
23
+ import { CamundaLogo } from "../../icons/c3-icons"
24
+ import { InfoButton } from "./c3-info-button"
25
+ import { C3SidebarStateProvider } from "./c3-navigation-sidebar/c3-sidebar-state-provider"
14
26
  /**
15
27
  * UI SHELL
16
28
  * Docs: https://react.carbondesignsystem.com/?path=/story/components-ui-shell--fixed-side-nav
17
29
  */
18
- const BREAKPOINT_LG_WIDTH = "66rem"; // This is Carbon's breakpoint (lg) width https://github.com/carbon-design-system/carbon/blob/main/packages/layout/src/index.js#L56
19
- const HeaderName = styled(CarbonHeaderName) `
30
+ const BREAKPOINT_LG_WIDTH = "66rem" // This is Carbon's breakpoint (lg) width https://github.com/carbon-design-system/carbon/blob/main/packages/layout/src/index.js#L56
31
+ const HeaderName = styled(CarbonHeaderName)`
20
32
  display: grid;
21
33
  grid-auto-flow: column;
22
34
  gap: 0.5rem;
23
- `;
24
- const StyledToggletipContent = styled(ToggletipContent) `
35
+ `
36
+ const StyledToggletipContent = styled(ToggletipContent)`
25
37
  .cds--link:visited {
26
38
  color: var(--cds-link-text-color);
27
39
  }
@@ -29,74 +41,184 @@ const StyledToggletipContent = styled(ToggletipContent) `
29
41
  .cds--link:visited:hover {
30
42
  color: var(--cds-link-hover-text-color);
31
43
  }
32
- `;
33
- export const C3Navigation = ({ app, appBar, forwardRef, navbar, orgSideBar, infoSideBar, infoButton, actionButtons, userSideBar, notificationSideBar, }) => {
34
- const isLargeScreen = useMediaQuery(`(min-width: ${BREAKPOINT_LG_WIDTH}`);
35
- const appBarElementsLength = appBar.elements?.length ?? 0;
36
- const displayAppBar = appBarElementsLength > 0 || (!isLargeScreen && navbar.elements.length > 0);
37
- return (React.createElement(C3SidebarStateProvider, { isNotificationSidebarOpen: notificationSideBar?.isOpen, isOrgSidebarOpen: orgSideBar?.isOpen, isInfoSidebarOpen: infoSideBar?.isOpen, isUserSidebarOpen: userSideBar?.isOpen },
38
- React.createElement(HeaderContainer, { render: () => {
39
- return (React.createElement(Header, { "aria-label": app.ariaLabel },
40
- React.createElement(SkipToContent, null),
41
- displayAppBar && (React.createElement(C3NavigationAppBar, { app: app, appBar: appBar, forwardRef: forwardRef, navbar: navbar })),
42
- React.createElement(HeaderName, { element: forwardRef, prefix: "", ...app.routeProps },
43
- React.createElement(CamundaLogo, { "aria-label": "Camunda" }),
44
- React.createElement("span", null, app.name)),
45
- React.createElement(HeaderNavigation, { "aria-label": app.ariaLabel }, navbar.elements.map((element) => (React.createElement(HeaderMenuItem, { key: element.key, element: element.routeProps && forwardRef, isActive: element.isCurrentPage, ...element.routeProps },
46
- React.createElement("span", null, element.label))))),
47
- React.createElement(HeaderGlobalBar, null,
48
- React.createElement("div", { style: {
49
- display: "grid",
50
- gridAutoFlow: "column",
51
- gap: ".5rem",
52
- paddingRight: ".5rem",
53
- } },
54
- navbar.tags &&
55
- navbar.tags.length > 0 &&
56
- navbar.tags.map((tag) => {
57
- if (tag?.tooltip !== undefined) {
58
- const { content, buttonLabel } = tag.tooltip;
59
- return (React.createElement("div", { key: tag.key, style: {
60
- height: "1.5rem",
61
- marginTop: "0.50rem",
62
- } },
63
- React.createElement(Toggletip, null,
64
- React.createElement(ToggletipButton, { label: buttonLabel },
65
- React.createElement(Tag, { type: tag.color, style: {
66
- padding: "0 1rem",
67
- marginRight: 0,
68
- marginLeft: 0,
69
- cursor: "pointer",
70
- } }, tag.label)),
71
- React.createElement(StyledToggletipContent, null, content))));
72
- }
73
- return (React.createElement(Tag, { key: tag.key, style: {
74
- height: "1.5rem",
75
- marginTop: "0.75rem",
76
- padding: "0 1rem",
77
- }, type: tag.color }, tag.label));
78
- }),
79
- navbar.orgName && (React.createElement("div", { className: "bodyText", style: {
80
- fontSize: "14px",
81
- lineHeight: "3rem",
82
- textOverflow: "ellipsis",
83
- whiteSpace: "nowrap",
84
- overflow: "hidden",
85
- maxWidth: "150px",
86
- } }, navbar.orgName))),
87
- actionButtons && React.createElement(C3ActionButtons, { elements: actionButtons }),
88
- notificationSideBar && (React.createElement(C3NotificationSidebar, { sideBar: {
89
- ...notificationSideBar,
90
- type: "notifications",
91
- } })),
92
- orgSideBar && (React.createElement(C3OrgSidebar, { sideBar: {
93
- ...orgSideBar,
94
- type: "org",
95
- } })),
96
- infoButton ? (React.createElement(InfoButton, { onClick: infoButton.onClick })) : (infoSideBar && (React.createElement(C3InfoSidebar, { sideBar: { ...infoSideBar, type: "info" } }))),
97
- userSideBar && (React.createElement(C3UserSidebar, { sideBar: {
98
- ...userSideBar,
99
- type: "user",
100
- } })))));
101
- } })));
102
- };
44
+ `
45
+ export const C3Navigation = ({
46
+ app,
47
+ appBar,
48
+ forwardRef,
49
+ navbar,
50
+ orgSideBar,
51
+ infoSideBar,
52
+ infoButton,
53
+ actionButtons,
54
+ userSideBar,
55
+ notificationSideBar,
56
+ }) => {
57
+ const isLargeScreen = useMediaQuery(`(min-width: ${BREAKPOINT_LG_WIDTH}`)
58
+ const appBarElementsLength = appBar.elements?.length ?? 0
59
+ const displayAppBar =
60
+ appBarElementsLength > 0 || (!isLargeScreen && navbar.elements.length > 0)
61
+ return React.createElement(
62
+ C3SidebarStateProvider,
63
+ {
64
+ isNotificationSidebarOpen: notificationSideBar?.isOpen,
65
+ isOrgSidebarOpen: orgSideBar?.isOpen,
66
+ isInfoSidebarOpen: infoSideBar?.isOpen,
67
+ isUserSidebarOpen: userSideBar?.isOpen,
68
+ },
69
+ React.createElement(HeaderContainer, {
70
+ render: () => {
71
+ return React.createElement(
72
+ Header,
73
+ { "aria-label": app.ariaLabel },
74
+ React.createElement(SkipToContent, null),
75
+ displayAppBar &&
76
+ React.createElement(C3NavigationAppBar, {
77
+ app: app,
78
+ appBar: appBar,
79
+ forwardRef: forwardRef,
80
+ navbar: navbar,
81
+ }),
82
+ React.createElement(
83
+ HeaderName,
84
+ { element: forwardRef, prefix: "", ...app.routeProps },
85
+ React.createElement(CamundaLogo, { "aria-label": "Camunda" }),
86
+ React.createElement("span", null, app.name),
87
+ ),
88
+ React.createElement(
89
+ HeaderNavigation,
90
+ { "aria-label": app.ariaLabel },
91
+ navbar.elements.map((element) =>
92
+ React.createElement(
93
+ HeaderMenuItem,
94
+ {
95
+ key: element.key,
96
+ element: element.routeProps && forwardRef,
97
+ isActive: element.isCurrentPage,
98
+ ...element.routeProps,
99
+ },
100
+ React.createElement("span", null, element.label),
101
+ ),
102
+ ),
103
+ ),
104
+ React.createElement(
105
+ HeaderGlobalBar,
106
+ null,
107
+ React.createElement(
108
+ "div",
109
+ {
110
+ style: {
111
+ display: "grid",
112
+ gridAutoFlow: "column",
113
+ gap: ".5rem",
114
+ paddingRight: ".5rem",
115
+ },
116
+ },
117
+ navbar.tags &&
118
+ navbar.tags.length > 0 &&
119
+ navbar.tags.map((tag) => {
120
+ if (tag?.tooltip !== undefined) {
121
+ const { content, buttonLabel } = tag.tooltip
122
+ return React.createElement(
123
+ "div",
124
+ {
125
+ key: tag.key,
126
+ style: {
127
+ height: "1.5rem",
128
+ marginTop: "0.50rem",
129
+ },
130
+ },
131
+ React.createElement(
132
+ Toggletip,
133
+ null,
134
+ React.createElement(
135
+ ToggletipButton,
136
+ { label: buttonLabel },
137
+ React.createElement(
138
+ Tag,
139
+ {
140
+ type: tag.color,
141
+ style: {
142
+ padding: "0 1rem",
143
+ marginRight: 0,
144
+ marginLeft: 0,
145
+ cursor: "pointer",
146
+ },
147
+ },
148
+ tag.label,
149
+ ),
150
+ ),
151
+ React.createElement(
152
+ StyledToggletipContent,
153
+ null,
154
+ content,
155
+ ),
156
+ ),
157
+ )
158
+ }
159
+ return React.createElement(
160
+ Tag,
161
+ {
162
+ key: tag.key,
163
+ style: {
164
+ height: "1.5rem",
165
+ marginTop: "0.75rem",
166
+ padding: "0 1rem",
167
+ },
168
+ type: tag.color,
169
+ },
170
+ tag.label,
171
+ )
172
+ }),
173
+ navbar.orgName &&
174
+ React.createElement(
175
+ "div",
176
+ {
177
+ className: "bodyText",
178
+ style: {
179
+ fontSize: "14px",
180
+ lineHeight: "3rem",
181
+ textOverflow: "ellipsis",
182
+ whiteSpace: "nowrap",
183
+ overflow: "hidden",
184
+ maxWidth: "150px",
185
+ },
186
+ },
187
+ navbar.orgName,
188
+ ),
189
+ ),
190
+ actionButtons &&
191
+ React.createElement(C3ActionButtons, { elements: actionButtons }),
192
+ notificationSideBar &&
193
+ React.createElement(C3NotificationSidebar, {
194
+ sideBar: {
195
+ ...notificationSideBar,
196
+ type: "notifications",
197
+ },
198
+ }),
199
+ orgSideBar &&
200
+ React.createElement(C3OrgSidebar, {
201
+ sideBar: {
202
+ ...orgSideBar,
203
+ type: "org",
204
+ },
205
+ }),
206
+ infoButton
207
+ ? React.createElement(InfoButton, { onClick: infoButton.onClick })
208
+ : infoSideBar &&
209
+ React.createElement(C3InfoSidebar, {
210
+ sideBar: { ...infoSideBar, type: "info" },
211
+ }),
212
+ userSideBar &&
213
+ React.createElement(C3UserSidebar, {
214
+ sideBar: {
215
+ ...userSideBar,
216
+ type: "user",
217
+ },
218
+ }),
219
+ ),
220
+ )
221
+ },
222
+ }),
223
+ )
224
+ }
@@ -1,75 +1,81 @@
1
1
  /// <reference types="react" />
2
- import { Tag } from "@carbon/react";
3
- import { Endpoints, Stage } from "../../api/endpoints.const";
4
- import { C3NavigationAppBarProps, C3NavigationInfoSideBarProps, C3NavigationNotificationsSideBarProps, C3NavigationOrgSideBarProps, C3NavigationUserSideBarProps } from "./c3-navigation-sidebar/c3-navigation-sidebar.types";
5
- import { C3ActionButtonsProps } from "./c3-navigation-actions/c3-action-buttons.types";
2
+ import { Tag } from "@carbon/react"
3
+ import { Endpoints, Stage } from "../../api/endpoints.const"
4
+ import {
5
+ C3NavigationAppBarProps,
6
+ C3NavigationInfoSideBarProps,
7
+ C3NavigationNotificationsSideBarProps,
8
+ C3NavigationOrgSideBarProps,
9
+ C3NavigationUserSideBarProps,
10
+ } from "./c3-navigation-sidebar/c3-navigation-sidebar.types"
11
+ import { C3ActionButtonsProps } from "./c3-navigation-actions/c3-action-buttons.types"
6
12
  export interface C3NavigationAppProps {
7
- prefix?: string;
8
- name: string;
9
- ariaLabel: string;
10
- routeProps: any;
13
+ prefix?: string
14
+ name: string
15
+ ariaLabel: string
16
+ routeProps: any
11
17
  }
12
18
  export interface C3NavigationElementProps {
13
- ariaLabel?: string;
14
- key: string;
15
- label: string;
16
- kind?: "ghost" | "danger--ghost";
17
- active?: boolean;
18
- renderIcon?: any;
19
- routeProps?: any;
20
- href?: string;
21
- target?: "_blank" | "_self" | "_parent" | "_top";
22
- onClick?: () => void;
23
- subElements?: C3NavigationElementProps[];
24
- preceedingDivider?: boolean;
19
+ ariaLabel?: string
20
+ key: string
21
+ label: string
22
+ kind?: "ghost" | "danger--ghost"
23
+ active?: boolean
24
+ renderIcon?: any
25
+ routeProps?: any
26
+ href?: string
27
+ target?: "_blank" | "_self" | "_parent" | "_top"
28
+ onClick?: () => void
29
+ subElements?: C3NavigationElementProps[]
30
+ preceedingDivider?: boolean
25
31
  }
26
32
  export interface C3NavigationNavBarProps {
27
- elements: Array<{
28
- label: string;
29
- key: string;
30
- routeProps: any;
31
- isCurrentPage: boolean;
32
- }>;
33
- tags?: Array<{
34
- label: string;
35
- key: string;
36
- color?: React.ComponentProps<typeof Tag>["type"];
37
- tooltip?: {
38
- content: React.ReactNode;
39
- buttonLabel: string;
40
- };
41
- }>;
42
- orgName?: string;
33
+ elements: Array<{
34
+ label: string
35
+ key: string
36
+ routeProps: any
37
+ isCurrentPage: boolean
38
+ }>
39
+ tags?: Array<{
40
+ label: string
41
+ key: string
42
+ color?: React.ComponentProps<typeof Tag>["type"]
43
+ tooltip?: {
44
+ content: React.ReactNode
45
+ buttonLabel: string
46
+ }
47
+ }>
48
+ orgName?: string
43
49
  }
44
50
  export interface C3NotificationsProps {
45
- stage?: Stage;
46
- endpoints?: Endpoints;
47
- activeOrganizationId: string;
48
- userToken: string;
49
- getNewUserToken: () => Promise<string>;
51
+ stage?: Stage
52
+ endpoints?: Endpoints
53
+ activeOrganizationId: string
54
+ userToken: string
55
+ getNewUserToken: () => Promise<string>
50
56
  }
51
- declare type WithoutType<P> = Omit<P, "type">;
57
+ declare type WithoutType<P> = Omit<P, "type">
52
58
  export interface C3NavigationProps {
53
- app: C3NavigationAppProps;
54
- appBar: WithoutType<C3NavigationAppBarProps>;
55
- orgSideBar?: WithoutType<C3NavigationOrgSideBarProps>;
56
- infoSideBar?: WithoutType<C3NavigationInfoSideBarProps>;
57
- infoButton?: {
58
- onClick: () => void;
59
- };
60
- actionButtons?: C3ActionButtonsProps;
61
- userSideBar?: WithoutType<C3NavigationUserSideBarProps>;
62
- notificationSideBar?: WithoutType<C3NavigationNotificationsSideBarProps>;
63
- navbar: C3NavigationNavBarProps;
64
- forwardRef?: React.ForwardRefExoticComponent<any>;
59
+ app: C3NavigationAppProps
60
+ appBar: WithoutType<C3NavigationAppBarProps>
61
+ orgSideBar?: WithoutType<C3NavigationOrgSideBarProps>
62
+ infoSideBar?: WithoutType<C3NavigationInfoSideBarProps>
63
+ infoButton?: {
64
+ onClick: () => void
65
+ }
66
+ actionButtons?: C3ActionButtonsProps
67
+ userSideBar?: WithoutType<C3NavigationUserSideBarProps>
68
+ notificationSideBar?: WithoutType<C3NavigationNotificationsSideBarProps>
69
+ navbar: C3NavigationNavBarProps
70
+ forwardRef?: React.ForwardRefExoticComponent<any>
65
71
  }
66
72
  export declare type LinkProps = {
67
- element?: React.ElementType;
68
- isSideNavExpanded?: boolean;
69
- children: React.ReactNode;
70
- className?: string;
71
- isActive?: boolean;
72
- large?: boolean;
73
- renderIcon?: (() => React.ReactNode) | object;
74
- };
75
- export {};
73
+ element?: React.ElementType
74
+ isSideNavExpanded?: boolean
75
+ children: React.ReactNode
76
+ className?: string
77
+ isActive?: boolean
78
+ large?: boolean
79
+ renderIcon?: (() => React.ReactNode) | object
80
+ }
81
+ export {}
@@ -1 +1 @@
1
- export {};
1
+ export {}
@@ -1,13 +1,30 @@
1
- import { FC } from "react";
2
- import { Notification as NotificationProps } from "../../../api/notifications";
3
- export declare const NotificationTitle: import("styled-components").StyledComponent<"p", any, {}, never>;
4
- export declare const NotificationDescription: import("styled-components").StyledComponent<"p", any, {}, never>;
5
- export declare const LinkContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
6
- declare const C3NotificationContainer: FC<NotificationProps & {
7
- onRead: () => void;
8
- onDismiss: () => void;
9
- onLinkClick?: (meta: NotificationProps["meta"]) => void;
10
- originalOnLinkClick?: (meta: NotificationProps["meta"]) => void;
11
- unread?: boolean;
12
- }>;
13
- export default C3NotificationContainer;
1
+ import { FC } from "react"
2
+ import { Notification as NotificationProps } from "../../../api/notifications"
3
+ export declare const NotificationTitle: import("styled-components").StyledComponent<
4
+ "p",
5
+ any,
6
+ {},
7
+ never
8
+ >
9
+ export declare const NotificationDescription: import("styled-components").StyledComponent<
10
+ "p",
11
+ any,
12
+ {},
13
+ never
14
+ >
15
+ export declare const LinkContainer: import("styled-components").StyledComponent<
16
+ "div",
17
+ any,
18
+ {},
19
+ never
20
+ >
21
+ declare const C3NotificationContainer: FC<
22
+ NotificationProps & {
23
+ onRead: () => void
24
+ onDismiss: () => void
25
+ onLinkClick?: (meta: NotificationProps["meta"]) => void
26
+ originalOnLinkClick?: (meta: NotificationProps["meta"]) => void
27
+ unread?: boolean
28
+ }
29
+ >
30
+ export default C3NotificationContainer