@apolitical/component-library 5.4.2 → 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.
- package/form/types/invite-form/invite-form.d.ts +4 -2
- package/form/types/invite-form/multi-email-textarea.d.ts +8 -0
- package/helpers/intl.d.ts +2 -0
- package/index.js +24 -24
- package/index.mjs +1408 -1381
- package/modals/types/invite-modal/invite-modal.d.ts +4 -2
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -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;
|
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;
|