@planningcenter/topbar 8.3.2 → 8.4.0-alpha.0
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/dist/index.d.ts +10 -0
- package/dist/modules/api_request.d.ts +18 -0
- package/dist/modules/apps_provider.d.ts +30 -0
- package/dist/modules/avatar.d.ts +7 -0
- package/dist/modules/client_storage.d.ts +12 -0
- package/dist/modules/color_app_icon.d.ts +5 -0
- package/dist/modules/color_app_squircles.d.ts +14 -0
- package/dist/modules/components/apps_menu.d.ts +15 -0
- package/dist/modules/components/hoverable_list_item.d.ts +9 -0
- package/dist/modules/components/outsider.d.ts +13 -0
- package/dist/modules/components/popover_root.d.ts +6 -0
- package/dist/modules/components/popup.d.ts +9 -0
- package/dist/modules/connected_people_provider.d.ts +21 -0
- package/dist/modules/display_switch.d.ts +26 -0
- package/dist/modules/formatters.d.ts +15 -0
- package/dist/modules/get_apps_switch_product_path.d.ts +1 -0
- package/dist/modules/medium_topbar.d.ts +46 -0
- package/dist/modules/mono_app_icon.d.ts +7 -0
- package/dist/modules/mono_app_name.d.ts +6 -0
- package/dist/modules/mono_app_symbols.d.ts +57 -0
- package/dist/modules/mono_app_text.d.ts +61 -0
- package/dist/modules/not_small_topbar.d.ts +91 -0
- package/dist/modules/platform_announcements.d.ts +31 -0
- package/dist/modules/product_announcement.d.ts +20 -0
- package/dist/modules/small_topbar.d.ts +48 -0
- package/dist/modules/styled_root.d.ts +6 -0
- package/dist/modules/styles.d.ts +9 -0
- package/dist/modules/symbols.d.ts +16 -0
- package/dist/modules/unbutton.d.ts +11 -0
- package/dist/topbar.js +1 -1
- package/dist/topbar.js.map +1 -1
- package/dist/topbar.modern.css +2 -0
- package/dist/topbar.modern.css.map +1 -0
- package/dist/topbar.modern.js +1 -1
- package/dist/topbar.modern.js.map +1 -1
- package/dist/topbar.module.css +2 -0
- package/dist/topbar.module.css.map +1 -0
- 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/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/modules/apps_provider.d.ts +1 -1
- package/dist/types/modules/apps_provider.d.ts.map +1 -1
- package/dist/types/modules/avatar.d.ts +2 -3
- package/dist/types/modules/avatar.d.ts.map +1 -1
- package/dist/types/modules/client_storage.d.ts +2 -2
- package/dist/types/modules/client_storage.d.ts.map +1 -1
- package/dist/types/modules/color_app_icon.d.ts +0 -1
- package/dist/types/modules/color_app_icon.d.ts.map +1 -1
- package/dist/types/modules/color_app_squircles.d.ts +0 -1
- package/dist/types/modules/color_app_squircles.d.ts.map +1 -1
- package/dist/types/modules/components/apps_button.d.ts +0 -1
- package/dist/types/modules/components/apps_button.d.ts.map +1 -1
- package/dist/types/modules/components/apps_menu.d.ts +0 -1
- package/dist/types/modules/components/apps_menu.d.ts.map +1 -1
- package/dist/types/modules/components/conditional_wrap.d.ts +1 -1
- package/dist/types/modules/components/conditional_wrap.d.ts.map +1 -1
- package/dist/types/modules/components/eyebrow.d.ts +1 -1
- package/dist/types/modules/components/eyebrow.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/hoverable_list_item.d.ts +1 -1
- package/dist/types/modules/components/hoverable_list_item.d.ts.map +1 -1
- package/dist/types/modules/components/notification_bell.d.ts +0 -1
- package/dist/types/modules/components/notification_bell.d.ts.map +1 -1
- package/dist/types/modules/components/notification_item.d.ts +0 -1
- package/dist/types/modules/components/notification_item.d.ts.map +1 -1
- package/dist/types/modules/components/notifications_menu.d.ts +0 -1
- package/dist/types/modules/components/notifications_menu.d.ts.map +1 -1
- package/dist/types/modules/components/notifications_menu_blank_state.d.ts +0 -1
- package/dist/types/modules/components/notifications_menu_blank_state.d.ts.map +1 -1
- package/dist/types/modules/components/notifications_menu_wrapper.d.ts +1 -1
- package/dist/types/modules/components/notifications_menu_wrapper.d.ts.map +1 -1
- package/dist/types/modules/components/outsider.d.ts +1 -1
- package/dist/types/modules/components/outsider.d.ts.map +1 -1
- package/dist/types/modules/components/popover_root.d.ts +1 -1
- package/dist/types/modules/components/popover_root.d.ts.map +1 -1
- package/dist/types/modules/components/popup.d.ts +1 -1
- package/dist/types/modules/components/popup.d.ts.map +1 -1
- package/dist/types/modules/components/popup_root.d.ts +1 -1
- package/dist/types/modules/components/popup_root.d.ts.map +1 -1
- package/dist/types/modules/components/spinner.d.ts +0 -1
- package/dist/types/modules/components/spinner.d.ts.map +1 -1
- package/dist/types/modules/connected_people_provider.d.ts +3 -3
- package/dist/types/modules/connected_people_provider.d.ts.map +1 -1
- package/dist/types/modules/display_switch.d.ts +2 -2
- package/dist/types/modules/display_switch.d.ts.map +1 -1
- package/dist/types/modules/error_boundary.d.ts +25 -0
- package/dist/types/modules/error_boundary.d.ts.map +1 -0
- package/dist/types/modules/hooks/use_notifications.d.ts.map +1 -1
- package/dist/types/modules/hooks/use_topbar_api.d.ts +2 -2
- package/dist/types/modules/hooks/use_topbar_api.d.ts.map +1 -1
- package/dist/types/modules/medium_topbar.d.ts +39 -0
- package/dist/types/modules/medium_topbar.d.ts.map +1 -0
- package/dist/types/modules/mfa_status.d.ts +0 -1
- package/dist/types/modules/mfa_status.d.ts.map +1 -1
- package/dist/types/modules/mono_app_icon.d.ts +0 -1
- package/dist/types/modules/mono_app_icon.d.ts.map +1 -1
- package/dist/types/modules/mono_app_name.d.ts +0 -1
- package/dist/types/modules/mono_app_name.d.ts.map +1 -1
- package/dist/types/modules/mono_app_symbols.d.ts +0 -1
- package/dist/types/modules/mono_app_symbols.d.ts.map +1 -1
- package/dist/types/modules/mono_app_text.d.ts +0 -1
- package/dist/types/modules/mono_app_text.d.ts.map +1 -1
- package/dist/types/modules/not_small_topbar/index.d.ts +27 -0
- package/dist/types/modules/not_small_topbar/index.d.ts.map +1 -0
- package/dist/types/modules/not_small_topbar.d.ts +1 -1
- package/dist/types/modules/not_small_topbar.d.ts.map +1 -1
- package/dist/types/modules/platform_announcements.d.ts +3 -3
- package/dist/types/modules/platform_announcements.d.ts.map +1 -1
- package/dist/types/modules/product_announcement.d.ts +1 -1
- package/dist/types/modules/product_announcement.d.ts.map +1 -1
- package/dist/types/modules/profile_container.d.ts +10 -0
- package/dist/types/modules/profile_container.d.ts.map +1 -0
- package/dist/types/modules/small_topbar.d.ts +0 -1
- package/dist/types/modules/small_topbar.d.ts.map +1 -1
- package/dist/types/modules/styled_root.d.ts +0 -1
- package/dist/types/modules/styled_root.d.ts.map +1 -1
- package/dist/types/modules/symbols.d.ts +0 -1
- package/dist/types/modules/symbols.d.ts.map +1 -1
- package/dist/types/modules/toolbar/components/drawer.d.ts +5 -0
- package/dist/types/modules/toolbar/components/drawer.d.ts.map +1 -0
- package/dist/types/modules/toolbar/components/drawer_header.d.ts +5 -0
- package/dist/types/modules/toolbar/components/drawer_header.d.ts.map +1 -0
- package/dist/types/modules/toolbar/components/drawer_heading.d.ts +5 -0
- package/dist/types/modules/toolbar/components/drawer_heading.d.ts.map +1 -0
- package/dist/types/modules/toolbar/components/index.d.ts +5 -0
- package/dist/types/modules/toolbar/components/index.d.ts.map +1 -0
- package/dist/types/modules/toolbar/components/user_profile.d.ts +11 -0
- package/dist/types/modules/toolbar/components/user_profile.d.ts.map +1 -0
- package/dist/types/modules/toolbar/hooks/index.d.ts +2 -0
- package/dist/types/modules/toolbar/hooks/index.d.ts.map +1 -0
- package/dist/types/modules/toolbar/hooks/use-toolbar-reducer.d.ts +20 -0
- package/dist/types/modules/toolbar/hooks/use-toolbar-reducer.d.ts.map +1 -0
- package/dist/types/modules/toolbar/hooks/use_toolbar_reducer.d.ts +20 -0
- package/dist/types/modules/toolbar/hooks/use_toolbar_reducer.d.ts.map +1 -0
- package/dist/types/modules/toolbar/index.d.ts +8 -0
- package/dist/types/modules/toolbar/index.d.ts.map +1 -0
- package/dist/types/modules/toolbar/tools/index.d.ts +3 -0
- package/dist/types/modules/toolbar/tools/index.d.ts.map +1 -0
- package/dist/types/modules/toolbar/tools/notifications.d.ts +4 -0
- package/dist/types/modules/toolbar/tools/notifications.d.ts.map +1 -0
- package/dist/types/modules/toolbar/tools/profile.d.ts +7 -0
- package/dist/types/modules/toolbar/tools/profile.d.ts.map +1 -0
- package/dist/types/modules/toolbar/tools/tasks.d.ts +4 -0
- package/dist/types/modules/toolbar/tools/tasks.d.ts.map +1 -0
- package/dist/types/modules/topbar_context.d.ts +1 -0
- package/dist/types/modules/topbar_context.d.ts.map +1 -1
- package/dist/types/modules/unbutton.d.ts +0 -1
- package/dist/types/modules/unbutton.d.ts.map +1 -1
- package/package.json +4 -1
- package/CHANGELOG.md +0 -217
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { railsCsrfFetch } from "./modules/api_request";
|
|
2
|
+
export { AppsProvider, mapApps, mapResourcesToCalendar, } from "./modules/apps_provider";
|
|
3
|
+
export { ConnectedPeopleProvider } from "./modules/connected_people_provider";
|
|
4
|
+
export { DisplaySwitch } from "./modules/display_switch";
|
|
5
|
+
export { Topbar as NotSmallTopbar, Route as NotSmallRoute, } from "./modules/not_small_topbar";
|
|
6
|
+
export { Topbar as SmallTopbar, Route as SmallRoute, } from "./modules/small_topbar";
|
|
7
|
+
export { Topbar as MediumTopbar, Route as MediumRoute, } from "./modules/medium_topbar";
|
|
8
|
+
export { default as PlatformAnnouncements, StyleProvider as PlatformAnnouncementsStyleProvider, StyledAnnouncement as StyledPlatformAnnouncement, } from "./modules/platform_announcements";
|
|
9
|
+
export { ProductAnnouncement, StyleProvider as ProductAnnouncementStyleProvider, StyledAnnouncement as StyledProductAnnouncement, StyledDismissButton as StyledProductAnnouncementDimissButton, } from "./modules/product_announcement";
|
|
10
|
+
export { Bell as BellIcon, X as XIcon, Spyglass as SpyglassIcon, } from "./modules/symbols";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
interface Window {
|
|
3
|
+
Rails?: {
|
|
4
|
+
csrfToken: () => string;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare type Fetch = typeof fetch;
|
|
9
|
+
export declare const defaultFetch: Fetch;
|
|
10
|
+
export declare const railsCsrfFetch: Fetch;
|
|
11
|
+
export default function apiRequest(fetch: Fetch, url: string, { method, data }?: {
|
|
12
|
+
method?: string;
|
|
13
|
+
data?: any;
|
|
14
|
+
}): Promise<{
|
|
15
|
+
response: Response;
|
|
16
|
+
json: any;
|
|
17
|
+
ok: boolean;
|
|
18
|
+
}>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as PCO_URL from "@planningcenter/url";
|
|
3
|
+
import { Fetch } from "./api_request";
|
|
4
|
+
export declare class AppsProvider extends React.Component<{
|
|
5
|
+
env: PCO_URL.Environment;
|
|
6
|
+
formatter?: any;
|
|
7
|
+
configuredFetch?: Fetch;
|
|
8
|
+
render: (apps: object[], callback: any) => React.ReactElement<any>;
|
|
9
|
+
}, {
|
|
10
|
+
apps: object[];
|
|
11
|
+
}> {
|
|
12
|
+
constructor(props: any);
|
|
13
|
+
static defaultProps: {
|
|
14
|
+
formatter: typeof mapApps;
|
|
15
|
+
configuredFetch: typeof fetch;
|
|
16
|
+
};
|
|
17
|
+
fetch(): void;
|
|
18
|
+
remove(): void;
|
|
19
|
+
componentDidMount(): void;
|
|
20
|
+
render(): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)>;
|
|
21
|
+
}
|
|
22
|
+
interface App {
|
|
23
|
+
attributes: {
|
|
24
|
+
name: string;
|
|
25
|
+
url: string;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export declare function mapResourcesToCalendar(apps: App[]): App[];
|
|
29
|
+
export declare function mapApps(apps: App[]): App[];
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare class ClientStorage extends React.Component<{
|
|
3
|
+
item: string;
|
|
4
|
+
method?: "localStorage" | "sessionStorage";
|
|
5
|
+
render: (apps: any, other: any) => React.ReactElement<any>;
|
|
6
|
+
}, {}> {
|
|
7
|
+
static defaultProps: {
|
|
8
|
+
method: string;
|
|
9
|
+
};
|
|
10
|
+
update(value: any): void;
|
|
11
|
+
render(): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function Accounts(): JSX.Element[];
|
|
3
|
+
export declare function API(): JSX.Element[];
|
|
4
|
+
export declare function Calendar(): JSX.Element[];
|
|
5
|
+
export declare function CheckIns(): JSX.Element[];
|
|
6
|
+
export declare function ChurchCenter(): JSX.Element[];
|
|
7
|
+
export declare function Giving(): JSX.Element[];
|
|
8
|
+
export declare function Groups(): JSX.Element[];
|
|
9
|
+
export declare function Home(): JSX.Element[];
|
|
10
|
+
export declare function People(): JSX.Element[];
|
|
11
|
+
export declare function Publishing(): JSX.Element[];
|
|
12
|
+
export declare function Registrations(): JSX.Element[];
|
|
13
|
+
export declare function Resources(): JSX.Element[];
|
|
14
|
+
export declare function Services(): JSX.Element[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as PCO_URL from "@planningcenter/url";
|
|
3
|
+
declare const AppsMenu: ({ appName, apps, env, toggle, visible, }: {
|
|
4
|
+
appName: string;
|
|
5
|
+
apps: {
|
|
6
|
+
attributes: {
|
|
7
|
+
name: string;
|
|
8
|
+
url: string;
|
|
9
|
+
};
|
|
10
|
+
}[];
|
|
11
|
+
env: PCO_URL.Environment;
|
|
12
|
+
toggle: any;
|
|
13
|
+
visible: boolean;
|
|
14
|
+
}) => JSX.Element;
|
|
15
|
+
export default AppsMenu;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const HoverableListItem: ({ component: C, style, ...nativeProps }: {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
component?: any;
|
|
5
|
+
href?: string;
|
|
6
|
+
onClick?: any;
|
|
7
|
+
style?: object;
|
|
8
|
+
}) => JSX.Element;
|
|
9
|
+
export default HoverableListItem;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export default class Outsider extends React.Component<{
|
|
3
|
+
component: any;
|
|
4
|
+
cleanup: boolean;
|
|
5
|
+
onOutsideClick: any;
|
|
6
|
+
visible: boolean;
|
|
7
|
+
}, {}> {
|
|
8
|
+
private container;
|
|
9
|
+
constructor(props: any);
|
|
10
|
+
componentWillUnmount(): void;
|
|
11
|
+
handleOutsideClick(e: any): any;
|
|
12
|
+
render(): JSX.Element;
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as PCO_URL from "@planningcenter/url";
|
|
3
|
+
import { Fetch } from "./api_request";
|
|
4
|
+
export declare class ConnectedPeopleProvider extends React.Component<{
|
|
5
|
+
env: PCO_URL.Environment;
|
|
6
|
+
configuredFetch?: Fetch;
|
|
7
|
+
render: (connectedPeople: object[], callback: any) => React.ReactElement<any>;
|
|
8
|
+
}, {
|
|
9
|
+
connectedPeople: object[];
|
|
10
|
+
}> {
|
|
11
|
+
constructor(props: any);
|
|
12
|
+
static defaultProps: {
|
|
13
|
+
configuredFetch: typeof fetch;
|
|
14
|
+
};
|
|
15
|
+
fetch(): void;
|
|
16
|
+
remove(): void;
|
|
17
|
+
unlink(): void;
|
|
18
|
+
switch(toId: string, returnPath: string): void;
|
|
19
|
+
componentDidMount(): void;
|
|
20
|
+
render(): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare class PointBreak extends React.Component<{
|
|
3
|
+
render: (breakpoint: string) => React.ReactElement<any>;
|
|
4
|
+
}, {
|
|
5
|
+
width: number;
|
|
6
|
+
}> {
|
|
7
|
+
constructor(props: any);
|
|
8
|
+
setWindowWidth(): void;
|
|
9
|
+
componentDidMount(): void;
|
|
10
|
+
componentWillUnmount(): void;
|
|
11
|
+
breakpointString(width: any): "xs" | "sm" | "md" | "lg" | "xl";
|
|
12
|
+
render(): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)>) | (new (props: any) => React.Component<any, any, any>)>;
|
|
13
|
+
}
|
|
14
|
+
export declare class DisplaySwitch extends React.Component<{
|
|
15
|
+
smallBreakpoints: String[];
|
|
16
|
+
mediumBreakpoints: String[];
|
|
17
|
+
smallTopbar: (breakpointShorthand: string) => React.ReactElement<any>;
|
|
18
|
+
mediumTopbar?: (breakpointShorthand: string) => React.ReactElement<any>;
|
|
19
|
+
notSmallTopbar: (breakpointShortand: string) => React.ReactElement<any>;
|
|
20
|
+
}, {}> {
|
|
21
|
+
static defaultProps: {
|
|
22
|
+
smallBreakpoints: string[];
|
|
23
|
+
mediumBreakpoints: string[];
|
|
24
|
+
};
|
|
25
|
+
render(): JSX.Element;
|
|
26
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface App {
|
|
2
|
+
attributes: {
|
|
3
|
+
name: string;
|
|
4
|
+
url: string;
|
|
5
|
+
};
|
|
6
|
+
}
|
|
7
|
+
export interface ConnectedPerson {
|
|
8
|
+
id: number;
|
|
9
|
+
attributes: {
|
|
10
|
+
name: string;
|
|
11
|
+
organization_name: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare const appsMenuFormatter: (apps: App[]) => App[];
|
|
15
|
+
export declare const connectedPeopleMenuFormatter: (connectedPeople: ConnectedPerson[]) => ConnectedPerson[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function getAppsSwitchProductPath(productName: string): string;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as PCO_URL from "@planningcenter/url";
|
|
3
|
+
export declare class Topbar extends React.Component<{
|
|
4
|
+
apps: {
|
|
5
|
+
attributes: {
|
|
6
|
+
name: string;
|
|
7
|
+
url: string;
|
|
8
|
+
};
|
|
9
|
+
}[];
|
|
10
|
+
env: PCO_URL.Environment;
|
|
11
|
+
appName: string;
|
|
12
|
+
routes: any;
|
|
13
|
+
colors: any;
|
|
14
|
+
userAvatarPath: string;
|
|
15
|
+
userId: string;
|
|
16
|
+
userName: string;
|
|
17
|
+
orgName: string;
|
|
18
|
+
connectedPeople: any;
|
|
19
|
+
search?: any;
|
|
20
|
+
style?: any;
|
|
21
|
+
showOrgName?: boolean;
|
|
22
|
+
notifications?: any;
|
|
23
|
+
requestAppsFetch: any;
|
|
24
|
+
requestConnectedPeopleFetch: any;
|
|
25
|
+
requestUnlinkConnectedPeople: any;
|
|
26
|
+
requestSwitchConnectedPerson: any;
|
|
27
|
+
requestClearAppsCache: any;
|
|
28
|
+
requestClearConnectedPeopleCache: any;
|
|
29
|
+
linkToProfile?: boolean;
|
|
30
|
+
}, {
|
|
31
|
+
appsMenuVisible: boolean;
|
|
32
|
+
routesMenuVisible: boolean;
|
|
33
|
+
userMenuVisible: boolean;
|
|
34
|
+
}> {
|
|
35
|
+
constructor(props: any);
|
|
36
|
+
static defaultProps: {
|
|
37
|
+
currentRouteComponent: (props: any) => JSX.Element;
|
|
38
|
+
};
|
|
39
|
+
render(): JSX.Element;
|
|
40
|
+
}
|
|
41
|
+
export declare const Route: ({ active, style, name, ...props }: {
|
|
42
|
+
[x: string]: any;
|
|
43
|
+
active: any;
|
|
44
|
+
style: any;
|
|
45
|
+
name?: string;
|
|
46
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function Squircle({ color, ...platformProps }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
color?: string;
|
|
5
|
+
}): JSX.Element;
|
|
6
|
+
export declare function Accounts({ color, ...platformProps }: {
|
|
7
|
+
[x: string]: any;
|
|
8
|
+
color: any;
|
|
9
|
+
}): JSX.Element;
|
|
10
|
+
export declare function API({ color, ...platformProps }: {
|
|
11
|
+
[x: string]: any;
|
|
12
|
+
color: any;
|
|
13
|
+
}): JSX.Element;
|
|
14
|
+
export declare function Calendar({ color, ...platformProps }: {
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
color: any;
|
|
17
|
+
}): JSX.Element;
|
|
18
|
+
export declare function CheckIns({ color, ...platformProps }: {
|
|
19
|
+
[x: string]: any;
|
|
20
|
+
color: any;
|
|
21
|
+
}): JSX.Element;
|
|
22
|
+
export declare function ChurchCenter({ color, ...platformProps }: {
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
color: any;
|
|
25
|
+
}): JSX.Element;
|
|
26
|
+
export declare function Giving({ color, ...platformProps }: {
|
|
27
|
+
[x: string]: any;
|
|
28
|
+
color: any;
|
|
29
|
+
}): JSX.Element;
|
|
30
|
+
export declare function Groups({ color, ...platformProps }: {
|
|
31
|
+
[x: string]: any;
|
|
32
|
+
color: any;
|
|
33
|
+
}): JSX.Element;
|
|
34
|
+
export declare function Home({ color, ...platformProps }: {
|
|
35
|
+
[x: string]: any;
|
|
36
|
+
color: any;
|
|
37
|
+
}): JSX.Element;
|
|
38
|
+
export declare function People({ color, ...platformProps }: {
|
|
39
|
+
[x: string]: any;
|
|
40
|
+
color: any;
|
|
41
|
+
}): JSX.Element;
|
|
42
|
+
export declare function Publishing({ color, ...platformProps }: {
|
|
43
|
+
[x: string]: any;
|
|
44
|
+
color: any;
|
|
45
|
+
}): JSX.Element;
|
|
46
|
+
export declare function Registrations({ color, ...platformProps }: {
|
|
47
|
+
[x: string]: any;
|
|
48
|
+
color: any;
|
|
49
|
+
}): JSX.Element;
|
|
50
|
+
export declare function Resources({ color, ...platformProps }: {
|
|
51
|
+
[x: string]: any;
|
|
52
|
+
color: any;
|
|
53
|
+
}): JSX.Element;
|
|
54
|
+
export declare function Services({ color, ...platformProps }: {
|
|
55
|
+
[x: string]: any;
|
|
56
|
+
color: any;
|
|
57
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function API({ color, size, ...platformProps }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
color: any;
|
|
5
|
+
size?: number;
|
|
6
|
+
}): JSX.Element;
|
|
7
|
+
export declare function Calendar({ color, size, ...platformProps }: {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
color: any;
|
|
10
|
+
size?: number;
|
|
11
|
+
}): JSX.Element;
|
|
12
|
+
export declare function CheckIns({ color, size, ...platformProps }: {
|
|
13
|
+
[x: string]: any;
|
|
14
|
+
color: any;
|
|
15
|
+
size?: number;
|
|
16
|
+
}): JSX.Element;
|
|
17
|
+
export declare function ChurchCenter({ color, size, ...platformProps }: {
|
|
18
|
+
[x: string]: any;
|
|
19
|
+
color: any;
|
|
20
|
+
size?: number;
|
|
21
|
+
}): JSX.Element;
|
|
22
|
+
export declare function Giving({ color, size, ...platformProps }: {
|
|
23
|
+
[x: string]: any;
|
|
24
|
+
color: any;
|
|
25
|
+
size?: number;
|
|
26
|
+
}): JSX.Element;
|
|
27
|
+
export declare function Home({ color, size, ...platformProps }: {
|
|
28
|
+
[x: string]: any;
|
|
29
|
+
color: any;
|
|
30
|
+
size?: number;
|
|
31
|
+
}): JSX.Element;
|
|
32
|
+
export declare function Groups({ color, size, ...platformProps }: {
|
|
33
|
+
[x: string]: any;
|
|
34
|
+
color: any;
|
|
35
|
+
size?: number;
|
|
36
|
+
}): JSX.Element;
|
|
37
|
+
export declare function People({ color, size, ...platformProps }: {
|
|
38
|
+
[x: string]: any;
|
|
39
|
+
color: any;
|
|
40
|
+
size?: number;
|
|
41
|
+
}): JSX.Element;
|
|
42
|
+
export declare function Publishing({ color, size, ...platformProps }: {
|
|
43
|
+
[x: string]: any;
|
|
44
|
+
color: any;
|
|
45
|
+
size?: number;
|
|
46
|
+
}): JSX.Element;
|
|
47
|
+
export declare function Registrations({ color, size, ...platformProps }: {
|
|
48
|
+
[x: string]: any;
|
|
49
|
+
color: any;
|
|
50
|
+
size?: number;
|
|
51
|
+
}): JSX.Element;
|
|
52
|
+
export declare function Resources({ color, size, ...platformProps }: {
|
|
53
|
+
[x: string]: any;
|
|
54
|
+
color: any;
|
|
55
|
+
size?: number;
|
|
56
|
+
}): JSX.Element;
|
|
57
|
+
export declare function Services({ color, size, ...platformProps }: {
|
|
58
|
+
[x: string]: any;
|
|
59
|
+
color: any;
|
|
60
|
+
size?: number;
|
|
61
|
+
}): JSX.Element;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as PCO_URL from "@planningcenter/url";
|
|
3
|
+
export declare class AppsButton extends React.Component<{
|
|
4
|
+
appName: string;
|
|
5
|
+
colors: any;
|
|
6
|
+
expanded: boolean;
|
|
7
|
+
style?: object;
|
|
8
|
+
onClick: any;
|
|
9
|
+
displayIconOnly?: boolean;
|
|
10
|
+
}, {
|
|
11
|
+
entered: boolean;
|
|
12
|
+
down: boolean;
|
|
13
|
+
}> {
|
|
14
|
+
constructor(props: any);
|
|
15
|
+
static defaultProps: {
|
|
16
|
+
displayIconOnly: boolean;
|
|
17
|
+
};
|
|
18
|
+
render(): JSX.Element;
|
|
19
|
+
}
|
|
20
|
+
export declare class Hoverable extends React.Component<{
|
|
21
|
+
component?: any;
|
|
22
|
+
style?: object;
|
|
23
|
+
hover?: any;
|
|
24
|
+
active?: any;
|
|
25
|
+
type?: string;
|
|
26
|
+
onClick?: any;
|
|
27
|
+
}, {
|
|
28
|
+
entered: boolean;
|
|
29
|
+
down: boolean;
|
|
30
|
+
}> {
|
|
31
|
+
constructor(props: any);
|
|
32
|
+
render(): JSX.Element;
|
|
33
|
+
}
|
|
34
|
+
export declare class Topbar extends React.Component<{
|
|
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;
|
|
70
|
+
search: () => any;
|
|
71
|
+
linkToProfile: boolean;
|
|
72
|
+
showOrgName: boolean;
|
|
73
|
+
};
|
|
74
|
+
constructor(props: any);
|
|
75
|
+
hideRoutes(): void;
|
|
76
|
+
showRoutes(): void;
|
|
77
|
+
getTextColor(): any;
|
|
78
|
+
render(): JSX.Element;
|
|
79
|
+
}
|
|
80
|
+
export declare class Route extends React.Component<{
|
|
81
|
+
active: boolean;
|
|
82
|
+
colors: any;
|
|
83
|
+
style?: object;
|
|
84
|
+
href?: string;
|
|
85
|
+
}, {
|
|
86
|
+
entered: boolean;
|
|
87
|
+
down: boolean;
|
|
88
|
+
}> {
|
|
89
|
+
constructor(props: any);
|
|
90
|
+
render(): JSX.Element;
|
|
91
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as PCO_URL from "@planningcenter/url";
|
|
3
|
+
import { Fetch } from "./api_request";
|
|
4
|
+
export declare class StyledAnnouncement extends React.Component<{
|
|
5
|
+
style?: object;
|
|
6
|
+
}, {}> {
|
|
7
|
+
render(): JSX.Element;
|
|
8
|
+
}
|
|
9
|
+
export declare class StyleProvider extends React.Component<{
|
|
10
|
+
style?: object;
|
|
11
|
+
className?: string;
|
|
12
|
+
colors: any;
|
|
13
|
+
}, {}> {
|
|
14
|
+
render(): JSX.Element;
|
|
15
|
+
}
|
|
16
|
+
export default class PlatformAnnouncements extends React.Component<{
|
|
17
|
+
colors: any;
|
|
18
|
+
env: PCO_URL.Environment;
|
|
19
|
+
data: object;
|
|
20
|
+
renderItem?: any;
|
|
21
|
+
configuredFetch?: Fetch;
|
|
22
|
+
}, {}> {
|
|
23
|
+
static defaultProps: {
|
|
24
|
+
renderItem: ({ announcement, actions }: {
|
|
25
|
+
announcement: any;
|
|
26
|
+
actions: any;
|
|
27
|
+
}) => JSX.Element;
|
|
28
|
+
configuredFetch: typeof fetch;
|
|
29
|
+
};
|
|
30
|
+
render(): JSX.Element;
|
|
31
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare function ProductAnnouncement({ colors, html, onClick, ...props }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
colors: any;
|
|
5
|
+
html?: string;
|
|
6
|
+
onClick?: (event: any) => void;
|
|
7
|
+
}): JSX.Element;
|
|
8
|
+
export declare class StyleProvider extends React.Component<{
|
|
9
|
+
style?: object;
|
|
10
|
+
className?: string;
|
|
11
|
+
colors: any;
|
|
12
|
+
}, {}> {
|
|
13
|
+
render(): JSX.Element;
|
|
14
|
+
}
|
|
15
|
+
export declare class StyledAnnouncement extends React.Component<{
|
|
16
|
+
style?: object;
|
|
17
|
+
}, {}> {
|
|
18
|
+
render(): JSX.Element;
|
|
19
|
+
}
|
|
20
|
+
export declare function StyledDismissButton({ ...props }: any): JSX.Element;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as PCO_URL from "@planningcenter/url";
|
|
3
|
+
export declare class Topbar extends React.Component<{
|
|
4
|
+
apps: {
|
|
5
|
+
attributes: {
|
|
6
|
+
name: string;
|
|
7
|
+
url: string;
|
|
8
|
+
};
|
|
9
|
+
}[];
|
|
10
|
+
env: PCO_URL.Environment;
|
|
11
|
+
appName: string;
|
|
12
|
+
routes: any;
|
|
13
|
+
colors: any;
|
|
14
|
+
userAvatarPath: string;
|
|
15
|
+
userId: string;
|
|
16
|
+
userName: string;
|
|
17
|
+
orgName: string;
|
|
18
|
+
connectedPeople: {
|
|
19
|
+
id: number;
|
|
20
|
+
attributes: {
|
|
21
|
+
name: string;
|
|
22
|
+
organization_name: string;
|
|
23
|
+
};
|
|
24
|
+
}[];
|
|
25
|
+
style?: any;
|
|
26
|
+
currentRouteComponent?: any;
|
|
27
|
+
requestAppsFetch: any;
|
|
28
|
+
requestConnectedPeopleFetch: any;
|
|
29
|
+
requestUnlinkConnectedPeople: any;
|
|
30
|
+
requestSwitchConnectedPerson: any;
|
|
31
|
+
requestClearAppsCache: any;
|
|
32
|
+
requestClearConnectedPeopleCache: any;
|
|
33
|
+
notifications?: any;
|
|
34
|
+
}, {
|
|
35
|
+
routesMenuVisible: boolean;
|
|
36
|
+
userMenuVisible: boolean;
|
|
37
|
+
}> {
|
|
38
|
+
constructor(props: any);
|
|
39
|
+
static defaultProps: {
|
|
40
|
+
currentRouteComponent: (props: any) => JSX.Element;
|
|
41
|
+
};
|
|
42
|
+
componentDidUpdate(): "" | "hidden";
|
|
43
|
+
render(): JSX.Element;
|
|
44
|
+
}
|
|
45
|
+
export declare const Route: ({ active, ...props }: {
|
|
46
|
+
[x: string]: any;
|
|
47
|
+
active: any;
|
|
48
|
+
}) => JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export declare const Bell: React.StatelessComponent<{
|
|
3
|
+
dot?: boolean;
|
|
4
|
+
dotFill?: string;
|
|
5
|
+
fill?: string;
|
|
6
|
+
stroke?: string;
|
|
7
|
+
style?: object;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const Spyglass: React.StatelessComponent<{
|
|
10
|
+
fill?: string;
|
|
11
|
+
style?: object;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const X: React.StatelessComponent<{
|
|
14
|
+
fill?: string;
|
|
15
|
+
style?: object;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function Unbutton({ style, ...nativeProps }: {
|
|
3
|
+
id?: string;
|
|
4
|
+
style?: object;
|
|
5
|
+
onClick?: any;
|
|
6
|
+
onMouseEnter?: any;
|
|
7
|
+
onMouseLeave?: any;
|
|
8
|
+
onMouseDown?: any;
|
|
9
|
+
onMouseUp?: any;
|
|
10
|
+
children: any;
|
|
11
|
+
}): JSX.Element;
|