@planningcenter/topbar 8.4.0-alpha.0 → 8.4.0-alpha.1
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 +56 -0
- package/dist/modules/api_request.d.ts +5 -0
- package/dist/modules/colors.d.ts +46 -0
- package/dist/modules/components/apps_button.d.ts +10 -0
- package/dist/modules/components/conditional_wrap.d.ts +7 -0
- package/dist/modules/components/eyebrow.d.ts +6 -0
- package/dist/modules/components/hoverable.d.ts +11 -0
- package/dist/modules/components/notification_bell.d.ts +6 -0
- package/dist/modules/components/notification_item.d.ts +11 -0
- package/dist/modules/components/notifications_menu.d.ts +19 -0
- package/dist/modules/components/notifications_menu_blank_state.d.ts +8 -0
- package/dist/modules/components/notifications_menu_wrapper.d.ts +7 -0
- package/dist/modules/components/outsider.d.ts +1 -1
- package/dist/modules/components/popup_root.d.ts +6 -0
- package/dist/modules/components/spinner.d.ts +4 -0
- package/dist/modules/hooks/use_hover.d.ts +3 -0
- package/dist/modules/hooks/use_notifications.d.ts +15 -0
- package/dist/modules/medium_topbar.d.ts +34 -38
- package/dist/modules/mono_app_text.d.ts +5 -0
- package/dist/modules/not_small_topbar.d.ts +39 -82
- package/dist/modules/small_topbar.d.ts +39 -42
- package/dist/modules/symbols.d.ts +34 -8
- package/dist/topbar.css +1 -1
- package/dist/topbar.css.map +1 -1
- package/dist/topbar.js +1 -1
- package/dist/topbar.js.map +1 -1
- package/dist/topbar.modern.js +1 -1
- package/dist/topbar.modern.js.map +1 -1
- package/dist/topbar.module.js +1 -1
- package/dist/topbar.module.js.map +1 -1
- package/dist/topbar.umd.js +1 -1
- package/dist/topbar.umd.js.map +1 -1
- package/dist/types/modules/apps_provider.d.ts +3 -13
- package/dist/types/modules/apps_provider.d.ts.map +1 -1
- package/dist/types/modules/colors.d.ts +3 -0
- package/dist/types/modules/colors.d.ts.map +1 -1
- package/dist/types/modules/components/hoverable.d.ts +1 -1
- package/dist/types/modules/components/hoverable.d.ts.map +1 -1
- package/dist/types/modules/components/notification_item.d.ts.map +1 -1
- package/dist/types/modules/components/notifications_menu.d.ts +2 -9
- package/dist/types/modules/components/notifications_menu.d.ts.map +1 -1
- package/dist/types/modules/components/notifications_menu_blank_state.d.ts +2 -1
- package/dist/types/modules/components/notifications_menu_blank_state.d.ts.map +1 -1
- package/dist/types/modules/connected_people_provider.d.ts +4 -3
- package/dist/types/modules/connected_people_provider.d.ts.map +1 -1
- package/dist/types/modules/dummy_data.d.ts +4 -0
- package/dist/types/modules/dummy_data.d.ts.map +1 -0
- package/dist/types/modules/get_login_profile_path.d.ts +2 -2
- package/dist/types/modules/get_login_profile_path.d.ts.map +1 -1
- package/dist/types/modules/hooks/use_local_notifications.d.ts +9 -0
- package/dist/types/modules/hooks/use_local_notifications.d.ts.map +1 -0
- package/dist/types/modules/hooks/use_notifications.d.ts.map +1 -1
- package/dist/types/modules/hooks/use_store.d.ts +3 -0
- package/dist/types/modules/hooks/use_store.d.ts.map +1 -0
- package/dist/types/modules/mfa_status.d.ts.map +1 -1
- package/dist/types/modules/mono_app_icon.d.ts.map +1 -1
- package/dist/types/modules/not_small_topbar/helpdesk_trigger.d.ts +4 -0
- package/dist/types/modules/not_small_topbar/helpdesk_trigger.d.ts.map +1 -0
- package/dist/types/modules/not_small_topbar/index.d.ts +0 -1
- package/dist/types/modules/not_small_topbar/index.d.ts.map +1 -1
- package/dist/types/modules/not_small_topbar/user_menu.d.ts +23 -0
- package/dist/types/modules/not_small_topbar/user_menu.d.ts.map +1 -0
- package/dist/types/modules/not_small_topbar/user_menu_trigger.d.ts +16 -0
- package/dist/types/modules/not_small_topbar/user_menu_trigger.d.ts.map +1 -0
- package/dist/types/modules/not_small_topbar.d.ts.map +1 -1
- package/dist/types/modules/small_topbar/account_settings_link.d.ts +5 -0
- package/dist/types/modules/small_topbar/account_settings_link.d.ts.map +1 -0
- package/dist/types/modules/small_topbar/close_menu_button.d.ts +6 -0
- package/dist/types/modules/small_topbar/close_menu_button.d.ts.map +1 -0
- package/dist/types/modules/small_topbar/index.d.ts +17 -0
- package/dist/types/modules/small_topbar/index.d.ts.map +1 -0
- package/dist/types/modules/small_topbar/linked_accounts.d.ts +11 -0
- package/dist/types/modules/small_topbar/linked_accounts.d.ts.map +1 -0
- package/dist/types/modules/small_topbar/login_settings_link.d.ts +9 -0
- package/dist/types/modules/small_topbar/login_settings_link.d.ts.map +1 -0
- package/dist/types/modules/small_topbar/profile_link.d.ts +5 -0
- package/dist/types/modules/small_topbar/profile_link.d.ts.map +1 -0
- package/dist/types/modules/small_topbar/user_info.d.ts +13 -0
- package/dist/types/modules/small_topbar/user_info.d.ts.map +1 -0
- package/dist/types/modules/small_topbar/user_menu_trigger.d.ts +9 -0
- package/dist/types/modules/small_topbar/user_menu_trigger.d.ts.map +1 -0
- package/dist/types/modules/small_topbar/user_name.d.ts +5 -0
- package/dist/types/modules/small_topbar/user_name.d.ts.map +1 -0
- package/dist/types/modules/small_topbar.d.ts.map +1 -1
- package/dist/types/modules/symbols.d.ts +2 -1
- package/dist/types/modules/symbols.d.ts.map +1 -1
- package/dist/types/modules/theme.d.ts +5 -0
- package/dist/types/modules/theme.d.ts.map +1 -0
- package/dist/types/modules/toolbar/components/index.d.ts +1 -0
- package/dist/types/modules/toolbar/components/index.d.ts.map +1 -1
- package/dist/types/modules/toolbar/components/switch_view.d.ts +8 -0
- package/dist/types/modules/toolbar/components/switch_view.d.ts.map +1 -0
- package/dist/types/modules/toolbar/hooks/use-toolbar-reducer.d.ts +1 -1
- package/dist/types/modules/toolbar/hooks/use-toolbar-reducer.d.ts.map +1 -1
- package/dist/types/modules/toolbar/index.d.ts +12 -7
- package/dist/types/modules/toolbar/index.d.ts.map +1 -1
- package/dist/types/modules/toolbar/tools/notifications.d.ts.map +1 -1
- package/dist/types/modules/toolbar/useStore.d.ts +3 -0
- package/dist/types/modules/toolbar/useStore.d.ts.map +1 -0
- package/dist/types/modules/utils.d.ts +1 -0
- package/dist/types/modules/utils.d.ts.map +1 -1
- package/package.json +12 -4
- package/dist/types/modules/toolbar/tools/profile.d.ts +0 -7
- package/dist/types/modules/toolbar/tools/profile.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -114,6 +114,62 @@ If you are passing your own Jolt client object into Topbar via props, you can co
|
|
|
114
114
|
If you are relying on Topbar to create its own Jolt connection and would like to enable logging, pass `enableJoltLogging={true}` as a prop to whichever topbar
|
|
115
115
|
you are using (`SmallTopbar`/`NotSmallTopbar`).
|
|
116
116
|
|
|
117
|
+
## Toolbar
|
|
118
|
+
|
|
119
|
+
Toolbar lives alongside Topbar on the right side of the viewport. It is responsible for the global concerns of Profile, Help Desk, Tasks, Notifications, and Core Messaging.
|
|
120
|
+
|
|
121
|
+
### Contributing
|
|
122
|
+
|
|
123
|
+
Tool implementations are self-contained modules that live in the `modules/toolbar/tools/` directory.
|
|
124
|
+
|
|
125
|
+
A tool module is required to have a named export which adheres to the following `ToolbarTool` interface.
|
|
126
|
+
|
|
127
|
+
```ts
|
|
128
|
+
interface ToolbarTool {
|
|
129
|
+
component: unknown // A React component. Stronger typing is in the works.
|
|
130
|
+
icon: string
|
|
131
|
+
name: string
|
|
132
|
+
}
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
- `component`: the React component that will be rendered into the drawer when the tool is selected.
|
|
136
|
+
- `icon`: the name of the [`tapestry-react` icon](https://planningcenter.github.io/tapestry-react/icon#preview-icons) that will be rendered as the button in Toolbar.
|
|
137
|
+
- `name`: the formal name of the tool. For now, this is only surfaced for accessibility concerns on the tool's toolbar `Button`.
|
|
138
|
+
|
|
139
|
+
### Example
|
|
140
|
+
|
|
141
|
+
The following example implements an example tool using the shared `DrawerHeader` and `DrawerHeading` components.
|
|
142
|
+
|
|
143
|
+
- `DrawerHeader` handles the placement and styling of the close button.
|
|
144
|
+
- `DrawerHeading` handles the styling of the drawer heading.
|
|
145
|
+
|
|
146
|
+
```ts
|
|
147
|
+
// tool_name.tsx
|
|
148
|
+
|
|
149
|
+
import { DrawerHeader, DrawerHeading } from "../components"
|
|
150
|
+
|
|
151
|
+
import { ToolbarTool } from "../types"
|
|
152
|
+
|
|
153
|
+
function ToolComponent({ closeDrawer }) {
|
|
154
|
+
return (
|
|
155
|
+
<>
|
|
156
|
+
<DrawerHeader closeDrawer={closeDrawer}>
|
|
157
|
+
<DrawerHeading>Tool name</DrawerHeading>
|
|
158
|
+
</DrawerHeader>
|
|
159
|
+
{/* Tool drawer content implementation */}
|
|
160
|
+
</>
|
|
161
|
+
)
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
const ToolName: ToolbarTool = {
|
|
165
|
+
component: ToolComponent,
|
|
166
|
+
icon: "general.toolbarIconName",
|
|
167
|
+
name: "Tool name",
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export { ToolName }
|
|
171
|
+
```
|
|
172
|
+
|
|
117
173
|
## Migrate
|
|
118
174
|
|
|
119
175
|
These migration docs will guide you thru the process of updating to recent major releases.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
declare const colors: {
|
|
2
|
+
danger43: string;
|
|
3
|
+
danger45: string;
|
|
4
|
+
danger47: string;
|
|
5
|
+
danger93: string;
|
|
6
|
+
danger97: string;
|
|
7
|
+
darkNeutral07: string;
|
|
8
|
+
darkNeutral12: string;
|
|
9
|
+
darkNeutral15: string;
|
|
10
|
+
darkNeutral17: string;
|
|
11
|
+
darkNeutral19: string;
|
|
12
|
+
darkNeutral24: string;
|
|
13
|
+
darkNeutral32: string;
|
|
14
|
+
darkNeutral50: string;
|
|
15
|
+
darkNeutral68: string;
|
|
16
|
+
darkNeutral88: string;
|
|
17
|
+
darkNeutral98: string;
|
|
18
|
+
interaction45: string;
|
|
19
|
+
interaction50: string;
|
|
20
|
+
interaction55: string;
|
|
21
|
+
interaction66: string;
|
|
22
|
+
interaction91: string;
|
|
23
|
+
interaction93: string;
|
|
24
|
+
lightNeutral100: string;
|
|
25
|
+
lightNeutral12: string;
|
|
26
|
+
lightNeutral24: string;
|
|
27
|
+
lightNeutral45: string;
|
|
28
|
+
lightNeutral62: string;
|
|
29
|
+
lightNeutral81: string;
|
|
30
|
+
lightNeutral88: string;
|
|
31
|
+
lightNeutral93: string;
|
|
32
|
+
lightNeutral95: string;
|
|
33
|
+
lightNeutral97: string;
|
|
34
|
+
lightNeutral98: string;
|
|
35
|
+
success23: string;
|
|
36
|
+
success25: string;
|
|
37
|
+
success27: string;
|
|
38
|
+
success91: string;
|
|
39
|
+
success97: string;
|
|
40
|
+
warning49: string;
|
|
41
|
+
warning55: string;
|
|
42
|
+
warning63: string;
|
|
43
|
+
warning94: string;
|
|
44
|
+
warning97: string;
|
|
45
|
+
};
|
|
46
|
+
export default colors;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const AppsButton: ({ appName, colors, displayIconOnly, expanded, onClick, style, ...nativeProps }: {
|
|
3
|
+
appName: string;
|
|
4
|
+
colors: any;
|
|
5
|
+
displayIconOnly?: boolean;
|
|
6
|
+
expanded: boolean;
|
|
7
|
+
onClick: any;
|
|
8
|
+
style?: object;
|
|
9
|
+
}) => JSX.Element;
|
|
10
|
+
export default AppsButton;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const Hoverable: ({ active, component: C, hover, style, ...nativeProps }: {
|
|
3
|
+
active?: any;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
component?: any;
|
|
6
|
+
hover?: any;
|
|
7
|
+
onClick?: any;
|
|
8
|
+
style?: object;
|
|
9
|
+
type?: string;
|
|
10
|
+
}) => JSX.Element;
|
|
11
|
+
export default Hoverable;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Notification } from "../interfaces";
|
|
3
|
+
declare const NotificationItem: ({ mobile, isLast, onMarkAsRead, onToggleRead, showBottomBorder, notification, }: {
|
|
4
|
+
mobile?: boolean;
|
|
5
|
+
isLast?: boolean;
|
|
6
|
+
onMarkAsRead?: (notification: Notification) => any;
|
|
7
|
+
onToggleRead: any;
|
|
8
|
+
showBottomBorder?: boolean;
|
|
9
|
+
notification: Notification;
|
|
10
|
+
}) => JSX.Element;
|
|
11
|
+
export default NotificationItem;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as PCO_URL from "@planningcenter/url";
|
|
3
|
+
import { Notification } from "../interfaces";
|
|
4
|
+
declare const NotificationsMenu: ({ env, handleMarkAllAsRead, handleMarkAsRead, handleToggleRead, hasError, isLoading, mobile, notifications: { read, unread }, toggle, visible, }: {
|
|
5
|
+
env: PCO_URL.Environment;
|
|
6
|
+
handleMarkAllAsRead: () => any;
|
|
7
|
+
handleMarkAsRead: (notification: Notification) => any;
|
|
8
|
+
handleToggleRead: (notification: Notification) => any;
|
|
9
|
+
hasError?: boolean;
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
mobile?: boolean;
|
|
12
|
+
notifications: {
|
|
13
|
+
read: Notification[];
|
|
14
|
+
unread: Notification[];
|
|
15
|
+
};
|
|
16
|
+
toggle?: any;
|
|
17
|
+
visible?: boolean;
|
|
18
|
+
}) => JSX.Element;
|
|
19
|
+
export default NotificationsMenu;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const NotificationsMenuBlankState: ({ dark, description, style, title, ...props }: {
|
|
3
|
+
dark?: boolean;
|
|
4
|
+
description: string;
|
|
5
|
+
style?: object;
|
|
6
|
+
title?: string;
|
|
7
|
+
}) => JSX.Element;
|
|
8
|
+
export default NotificationsMenuBlankState;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as PCO_URL from "@planningcenter/url";
|
|
2
|
+
import { Notification } from "../interfaces";
|
|
3
|
+
declare const useNotifications: ({ env, userId, }: {
|
|
4
|
+
env: PCO_URL.Environment;
|
|
5
|
+
userId: string;
|
|
6
|
+
}) => {
|
|
7
|
+
handleMarkAllAsRead: () => any;
|
|
8
|
+
handleMarkAsRead: (notification: Notification) => any;
|
|
9
|
+
handleToggleRead: (notification: Notification) => any;
|
|
10
|
+
hasError: boolean;
|
|
11
|
+
isLoading: boolean;
|
|
12
|
+
read: Notification[];
|
|
13
|
+
unread: Notification[];
|
|
14
|
+
};
|
|
15
|
+
export default useNotifications;
|
|
@@ -1,46 +1,42 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import * as PCO_URL from "@planningcenter/url";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
userMenuVisible: boolean;
|
|
34
|
-
}> {
|
|
35
|
-
constructor(props: any);
|
|
36
|
-
static defaultProps: {
|
|
3
|
+
declare const Topbar: {
|
|
4
|
+
(props: {
|
|
5
|
+
apps: {
|
|
6
|
+
attributes: {
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
};
|
|
10
|
+
}[];
|
|
11
|
+
env: PCO_URL.Environment;
|
|
12
|
+
appName: string;
|
|
13
|
+
routes: any;
|
|
14
|
+
colors: any;
|
|
15
|
+
userAvatarPath: string;
|
|
16
|
+
userId: string;
|
|
17
|
+
userName: string;
|
|
18
|
+
orgName: string;
|
|
19
|
+
connectedPeople: any;
|
|
20
|
+
search?: any;
|
|
21
|
+
style?: any;
|
|
22
|
+
showOrgName?: boolean;
|
|
23
|
+
notifications?: any;
|
|
24
|
+
requestAppsFetch: any;
|
|
25
|
+
requestConnectedPeopleFetch: any;
|
|
26
|
+
requestUnlinkConnectedPeople: any;
|
|
27
|
+
requestSwitchConnectedPerson: any;
|
|
28
|
+
requestClearAppsCache: any;
|
|
29
|
+
requestClearConnectedPeopleCache: any;
|
|
30
|
+
linkToProfile?: boolean;
|
|
31
|
+
}): JSX.Element;
|
|
32
|
+
defaultProps: {
|
|
37
33
|
currentRouteComponent: (props: any) => JSX.Element;
|
|
38
34
|
};
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
export declare const Route: ({ active, style, name, ...props }: {
|
|
35
|
+
};
|
|
36
|
+
declare const Route: ({ active, style, name, ...props }: {
|
|
42
37
|
[x: string]: any;
|
|
43
38
|
active: any;
|
|
44
39
|
style: any;
|
|
45
40
|
name?: string;
|
|
46
41
|
}) => JSX.Element;
|
|
42
|
+
export { Route, Topbar };
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
export declare function Accounts({ color, size, ...platformProps }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
color: any;
|
|
5
|
+
size?: number;
|
|
6
|
+
}): JSX.Element;
|
|
2
7
|
export declare function API({ color, size, ...platformProps }: {
|
|
3
8
|
[x: string]: any;
|
|
4
9
|
color: any;
|
|
@@ -1,91 +1,48 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as PCO_URL from "@planningcenter/url";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
apps: {
|
|
36
|
-
attributes: {
|
|
37
|
-
name: string;
|
|
38
|
-
url: string;
|
|
39
|
-
};
|
|
40
|
-
}[];
|
|
41
|
-
activeRoute: string;
|
|
42
|
-
env: PCO_URL.Environment;
|
|
43
|
-
appName: string;
|
|
44
|
-
routes: any;
|
|
45
|
-
colors: any;
|
|
46
|
-
userAvatarPath: string;
|
|
47
|
-
userId: string;
|
|
48
|
-
userName: string;
|
|
49
|
-
orgName: string;
|
|
50
|
-
connectedPeople: any;
|
|
51
|
-
search?: any;
|
|
52
|
-
style?: any;
|
|
53
|
-
showOrgName?: boolean;
|
|
54
|
-
notifications?: any;
|
|
55
|
-
requestAppsFetch: any;
|
|
56
|
-
requestConnectedPeopleFetch: any;
|
|
57
|
-
requestUnlinkConnectedPeople: any;
|
|
58
|
-
requestSwitchConnectedPerson: any;
|
|
59
|
-
requestClearAppsCache: any;
|
|
60
|
-
requestClearConnectedPeopleCache: any;
|
|
61
|
-
linkToProfile?: boolean;
|
|
62
|
-
onLinkToProfileClick?: () => any;
|
|
63
|
-
}, {
|
|
64
|
-
appsMenuVisible: boolean;
|
|
65
|
-
userMenuVisible: boolean;
|
|
66
|
-
routesVisible: boolean;
|
|
67
|
-
}> {
|
|
68
|
-
static defaultProps: {
|
|
69
|
-
notifications: () => any;
|
|
3
|
+
declare const Topbar: {
|
|
4
|
+
(props: {
|
|
5
|
+
apps: {
|
|
6
|
+
attributes: {
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
};
|
|
10
|
+
}[];
|
|
11
|
+
activeRoute: string;
|
|
12
|
+
env: PCO_URL.Environment;
|
|
13
|
+
appName: string;
|
|
14
|
+
routes: any;
|
|
15
|
+
colors: any;
|
|
16
|
+
userAvatarPath: string;
|
|
17
|
+
userId: string;
|
|
18
|
+
userName: string;
|
|
19
|
+
orgName: string;
|
|
20
|
+
connectedPeople: any;
|
|
21
|
+
search?: any;
|
|
22
|
+
style?: any;
|
|
23
|
+
showOrgName?: boolean;
|
|
24
|
+
requestAppsFetch: any;
|
|
25
|
+
requestConnectedPeopleFetch: any;
|
|
26
|
+
requestUnlinkConnectedPeople: any;
|
|
27
|
+
requestSwitchConnectedPerson: any;
|
|
28
|
+
requestClearAppsCache: any;
|
|
29
|
+
requestClearConnectedPeopleCache: any;
|
|
30
|
+
useDummyNotifications?: boolean;
|
|
31
|
+
linkToProfile?: boolean;
|
|
32
|
+
onLinkToProfileClick?: () => any;
|
|
33
|
+
}): JSX.Element;
|
|
34
|
+
defaultProps: {
|
|
70
35
|
search: () => any;
|
|
71
36
|
linkToProfile: boolean;
|
|
72
37
|
showOrgName: boolean;
|
|
38
|
+
useDummyNotifications: boolean;
|
|
73
39
|
};
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
showRoutes(): void;
|
|
77
|
-
getTextColor(): any;
|
|
78
|
-
render(): JSX.Element;
|
|
79
|
-
}
|
|
80
|
-
export declare class Route extends React.Component<{
|
|
40
|
+
};
|
|
41
|
+
declare const Route: ({ active, colors, style, ...nativeProps }: {
|
|
81
42
|
active: boolean;
|
|
43
|
+
children: React.ReactNode;
|
|
82
44
|
colors: any;
|
|
83
|
-
style?: object;
|
|
84
45
|
href?: string;
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}> {
|
|
89
|
-
constructor(props: any);
|
|
90
|
-
render(): JSX.Element;
|
|
91
|
-
}
|
|
46
|
+
style?: object;
|
|
47
|
+
}) => JSX.Element;
|
|
48
|
+
export { Topbar, Route };
|
|
@@ -1,48 +1,45 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import * as PCO_URL from "@planningcenter/url";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
constructor(props: any);
|
|
39
|
-
static defaultProps: {
|
|
3
|
+
declare const Topbar: {
|
|
4
|
+
(props: {
|
|
5
|
+
apps: {
|
|
6
|
+
attributes: {
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
};
|
|
10
|
+
}[];
|
|
11
|
+
env: PCO_URL.Environment;
|
|
12
|
+
appName: string;
|
|
13
|
+
routes: any;
|
|
14
|
+
colors: any;
|
|
15
|
+
userAvatarPath: string;
|
|
16
|
+
userId: string;
|
|
17
|
+
userName: string;
|
|
18
|
+
orgName: string;
|
|
19
|
+
connectedPeople: {
|
|
20
|
+
id: number;
|
|
21
|
+
attributes: {
|
|
22
|
+
name: string;
|
|
23
|
+
organization_name: string;
|
|
24
|
+
};
|
|
25
|
+
}[];
|
|
26
|
+
style?: any;
|
|
27
|
+
currentRouteComponent?: any;
|
|
28
|
+
requestAppsFetch: any;
|
|
29
|
+
requestConnectedPeopleFetch: any;
|
|
30
|
+
requestUnlinkConnectedPeople: any;
|
|
31
|
+
requestSwitchConnectedPerson: any;
|
|
32
|
+
requestClearAppsCache: any;
|
|
33
|
+
requestClearConnectedPeopleCache: any;
|
|
34
|
+
useDummyNotifications?: boolean;
|
|
35
|
+
notifications?: any;
|
|
36
|
+
}): JSX.Element;
|
|
37
|
+
defaultProps: {
|
|
40
38
|
currentRouteComponent: (props: any) => JSX.Element;
|
|
41
39
|
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
export declare const Route: ({ active, ...props }: {
|
|
40
|
+
};
|
|
41
|
+
declare const Route: ({ active, ...props }: {
|
|
46
42
|
[x: string]: any;
|
|
47
43
|
active: any;
|
|
48
44
|
}) => JSX.Element;
|
|
45
|
+
export { Route, Topbar };
|
|
@@ -1,16 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const Bell:
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Bell: ({ dot, dotFill, fill, style, ...props }: {
|
|
3
3
|
dot?: boolean;
|
|
4
4
|
dotFill?: string;
|
|
5
5
|
fill?: string;
|
|
6
|
-
stroke?: string;
|
|
7
6
|
style?: object;
|
|
8
|
-
}
|
|
9
|
-
export declare const
|
|
7
|
+
}) => JSX.Element;
|
|
8
|
+
export declare const BlankStateIcon: ({ dark, style, ...nativeProps }: {
|
|
9
|
+
dark?: boolean;
|
|
10
|
+
style?: object;
|
|
11
|
+
}) => JSX.Element;
|
|
12
|
+
export declare const ChevronIcon: ({ fill, size, style, ...nativeProps }: {
|
|
13
|
+
fill?: string;
|
|
14
|
+
size?: number;
|
|
15
|
+
style?: object;
|
|
16
|
+
}) => JSX.Element;
|
|
17
|
+
export declare const Cog: ({ fill, size, style, ...nativeProps }: {
|
|
18
|
+
fill?: string;
|
|
19
|
+
size?: number;
|
|
20
|
+
style?: object;
|
|
21
|
+
}) => JSX.Element;
|
|
22
|
+
export declare const DisclosureChevronIcon: ({ colors, style, ...nativeProps }: {
|
|
23
|
+
colors: any;
|
|
24
|
+
style?: object;
|
|
25
|
+
}) => JSX.Element;
|
|
26
|
+
export declare const HelpIcon: ({ colors, style, ...nativeProps }: {
|
|
27
|
+
colors: any;
|
|
28
|
+
style?: object;
|
|
29
|
+
}) => JSX.Element;
|
|
30
|
+
export declare const ExclamationTriangle: ({ fill, size, style, ...nativeProps }: {
|
|
31
|
+
fill?: string;
|
|
32
|
+
size: number;
|
|
33
|
+
style?: object;
|
|
34
|
+
}) => JSX.Element;
|
|
35
|
+
export declare const Spyglass: ({ fill, style, ...nativeProps }: {
|
|
10
36
|
fill?: string;
|
|
11
37
|
style?: object;
|
|
12
|
-
}
|
|
13
|
-
export declare const X:
|
|
38
|
+
}) => JSX.Element;
|
|
39
|
+
export declare const X: ({ fill, style, ...nativeProps }: {
|
|
14
40
|
fill?: string;
|
|
15
41
|
style?: object;
|
|
16
|
-
}
|
|
42
|
+
}) => JSX.Element;
|
package/dist/topbar.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.hide-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.hide-scrollbar::-webkit-scrollbar{display:none}
|
|
1
|
+
.hide-scrollbar{-ms-overflow-style:none;scrollbar-width:none}.hide-scrollbar::-webkit-scrollbar{display:none}
|
|
2
2
|
/*# sourceMappingURL=topbar.css.map */
|
package/dist/topbar.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["utils.css"
|
|
1
|
+
{"version":3,"sources":["utils.css"],"names":[],"mappings":"AAAA,gBACE,uBAAwB,CACxB,oBACF,CACA,mCACE,YACF","file":"topbar.css","sourcesContent":[".hide-scrollbar {\n -ms-overflow-style: none; /* IE and Edge */\n scrollbar-width: none; /* Firefox */\n}\n.hide-scrollbar::-webkit-scrollbar {\n display: none; /* Chrome, Safari, and Opera */\n}\n"]}
|