@apolitical/component-library 5.4.2-RR.3 → 5.4.3-ac.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.
@@ -9,6 +9,8 @@ interface IProps {
9
9
  title: string;
10
10
  /** Form input label*/
11
11
  label: string;
12
+ /** Placeholder text for the message input */
13
+ messagePlaceholder?: string;
12
14
  /** CTA button text displayed */
13
15
  ctaMessage: string;
14
16
  /** Colour of the title */
@@ -22,9 +24,9 @@ interface IProps {
22
24
  /** Function to report errors */
23
25
  reportError(error: unknown): void;
24
26
  /** Function to send the invites */
25
- sendInvites(emails: string[]): void;
27
+ sendInvites(emails: string[], personalisedNote?: string): void;
26
28
  /** Initial form status */
27
29
  initialFormStatus?: FormStatus;
28
30
  }
29
- declare const InviteForm: ({ title, label, ctaMessage, titleColor, labelColor, backgroundColor, onClose, reportError, sendInvites, initialFormStatus, }: IProps) => import("react/jsx-runtime").JSX.Element | null;
31
+ declare const InviteForm: ({ title, label, messagePlaceholder, ctaMessage, titleColor, labelColor, backgroundColor, onClose, reportError, sendInvites, initialFormStatus, }: IProps) => import("react/jsx-runtime").JSX.Element | null;
30
32
  export default InviteForm;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface Props {
3
+ emails: string[];
4
+ setEmails: (emails: string[]) => void;
5
+ setIsDisabled: (isDisabled: boolean) => void;
6
+ }
7
+ declare const MultiEmailTextArea: React.FC<Props>;
8
+ export default MultiEmailTextArea;
package/helpers/intl.d.ts CHANGED
@@ -234,6 +234,8 @@ export declare const checkIntlPathExists: (path: string, language?: {
234
234
  inviteForm_email_placeholder: string;
235
235
  inviteForm_title: string;
236
236
  inviteForm_label: string;
237
+ inviteForm_message_label: string;
238
+ inviteForm_message_placeholder: string;
237
239
  inviteForm_ctaMessage: string;
238
240
  inviteForm_success: string;
239
241
  inviteForm_error: string;