@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.
- package/README.md +2 -1
- package/lib/esm/api/api.d.ts +19 -19
- package/lib/esm/api/api.js +65 -67
- package/lib/esm/api/endpoints.const.d.ts +12 -12
- package/lib/esm/api/endpoints.const.js +24 -25
- package/lib/esm/api/jwt.utils.d.ts +3 -3
- package/lib/esm/api/jwt.utils.js +23 -21
- package/lib/esm/api/notifications.d.ts +64 -35
- package/lib/esm/api/notifications.js +168 -159
- package/lib/esm/components/c3-empty-state/c3-empty-state.d.ts +8 -2
- package/lib/esm/components/c3-empty-state/c3-empty-state.js +58 -17
- package/lib/esm/components/c3-empty-state/c3-empty-state.types.d.ts +19 -19
- package/lib/esm/components/c3-empty-state/c3-empty-state.types.js +1 -1
- package/lib/esm/components/c3-navigation/c3-info-button.d.ts +3 -3
- package/lib/esm/components/c3-navigation/c3-info-button.js +13 -5
- package/lib/esm/components/c3-navigation/c3-navigation-actions/c3-action-buttons.d.ts +5 -5
- package/lib/esm/components/c3-navigation/c3-navigation-actions/c3-action-buttons.js +21 -8
- package/lib/esm/components/c3-navigation/c3-navigation-actions/c3-action-buttons.types.d.ts +5 -5
- package/lib/esm/components/c3-navigation/c3-navigation-actions/c3-action-buttons.types.js +1 -1
- package/lib/esm/components/c3-navigation/c3-navigation-appbar.d.ts +3 -3
- package/lib/esm/components/c3-navigation/c3-navigation-appbar.js +157 -68
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-info-sidebar.d.ts +5 -5
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-info-sidebar.js +58 -37
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar-element.d.ts +9 -9
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar-element.js +56 -33
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.d.ts +8 -8
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.js +114 -54
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.types.d.ts +70 -60
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-navigation-sidebar.types.js +1 -1
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-notification-sidebar.d.ts +4 -4
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-notification-sidebar.js +142 -88
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-org-sidebar.d.ts +5 -5
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-org-sidebar.js +105 -51
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-sidebar-state-provider.d.ts +26 -24
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-sidebar-state-provider.js +38 -25
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-user-sidebar.d.ts +5 -5
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/c3-user-sidebar.js +125 -43
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/components.d.ts +6 -1
- package/lib/esm/components/c3-navigation/c3-navigation-sidebar/components.js +4 -4
- package/lib/esm/components/c3-navigation/c3-navigation.d.ts +13 -2
- package/lib/esm/components/c3-navigation/c3-navigation.js +210 -88
- package/lib/esm/components/c3-navigation/c3-navigation.types.d.ts +69 -63
- package/lib/esm/components/c3-navigation/c3-navigation.types.js +1 -1
- package/lib/esm/components/c3-navigation/c3-notification-provider/c3-notification-container.d.ts +30 -13
- package/lib/esm/components/c3-navigation/c3-notification-provider/c3-notification-container.js +114 -70
- package/lib/esm/components/c3-navigation/c3-notification-provider/c3-notification-provider.d.ts +29 -27
- package/lib/esm/components/c3-navigation/c3-notification-provider/c3-notification-provider.js +118 -90
- package/lib/esm/components/c3-navigation/helpers.d.ts +5 -3
- package/lib/esm/components/c3-navigation/helpers.js +53 -49
- package/lib/esm/components/c3-navigation/index.d.ts +4 -2
- package/lib/esm/components/c3-navigation/index.js +3 -3
- package/lib/esm/components/c3-navigation/story-helpers.d.ts +23 -18
- package/lib/esm/components/c3-navigation/story-helpers.js +189 -186
- package/lib/esm/components/c3-navigation/story-templates.d.ts +8 -8
- package/lib/esm/components/c3-navigation/story-templates.js +66 -33
- package/lib/esm/components/c3-user-configuration/c3-user-configuration-provider.d.ts +20 -16
- package/lib/esm/components/c3-user-configuration/c3-user-configuration-provider.js +9 -4
- package/lib/esm/icons/c3-icons.d.ts +7 -5
- package/lib/esm/icons/c3-icons.js +82 -14
- package/lib/esm/icons/c3-icons.types.d.ts +1 -1
- package/lib/esm/icons/c3-icons.types.js +1 -1
- package/lib/esm/index.d.ts +14 -9
- package/lib/esm/index.js +4 -4
- package/package.json +2 -1
|
@@ -1,27 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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"
|
|
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 = ({
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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 {
|
|
5
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
13
|
+
prefix?: string
|
|
14
|
+
name: string
|
|
15
|
+
ariaLabel: string
|
|
16
|
+
routeProps: any
|
|
11
17
|
}
|
|
12
18
|
export interface C3NavigationElementProps {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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 {}
|
package/lib/esm/components/c3-navigation/c3-notification-provider/c3-notification-container.d.ts
CHANGED
|
@@ -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<
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
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
|