@apolitical/component-library 1.12.1 → 1.12.3

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.
@@ -3,3 +3,4 @@ export declare const transformSlugs: (slugs: {
3
3
  }) => {
4
4
  [key: string]: string;
5
5
  };
6
+ export declare const canLikePost: (isMember: boolean, isAuthor: boolean) => boolean;
@@ -1 +1,2 @@
1
1
  export * from './search-form';
2
+ export * from './invite-form';
@@ -0,0 +1 @@
1
+ export { default as InviteForm } from './invite-form';
@@ -0,0 +1,30 @@
1
+ export declare enum FormStatus {
2
+ NOT_SUBMITTED = "NOT_SUBMITTED",
3
+ SUCCESS = "SUCCESS",
4
+ CLOSED = "CLOSED",
5
+ ERROR = "ERROR"
6
+ }
7
+ interface IProps {
8
+ /** Title displayed on the form */
9
+ title: string;
10
+ /** Form input label*/
11
+ label: string;
12
+ /** CTA button text displayed */
13
+ ctaMessage: string;
14
+ /** Colour of the title */
15
+ titleColor?: string;
16
+ /** Colour of the label */
17
+ labelColor?: string;
18
+ /** Background colour of the form */
19
+ backgroundColor?: string;
20
+ /** Function to run before form gets closed */
21
+ onClose(): void;
22
+ /** Function to report errors */
23
+ reportError(error: unknown): void;
24
+ /** Function to send the invites */
25
+ sendInvites(emails: string[]): void;
26
+ /** Initial form status */
27
+ initialFormStatus?: FormStatus;
28
+ }
29
+ declare const InviteForm: ({ title, label, ctaMessage, titleColor, labelColor, backgroundColor, onClose, reportError, sendInvites, initialFormStatus, }: IProps) => import("react/jsx-runtime").JSX.Element | null;
30
+ export default InviteForm;