@apolitical/component-library 5.3.6-ac.1 → 5.3.7-SW.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.
@@ -148,3 +148,25 @@ export interface IndividualCarouselProps extends BaseCarouselProps {
148
148
  /** The types for each card, from Contentful */
149
149
  cardTypes: CardContentType[];
150
150
  }
151
+ export interface NarrowCardType {
152
+ /** The image to use */
153
+ banner?: ResponsiveImageType;
154
+ /** The title of the narrow card */
155
+ title?: string;
156
+ /** The primary text */
157
+ text?: string;
158
+ /** The URL the card should point to */
159
+ slug?: string | null;
160
+ /** Is the content private */
161
+ isPrivate?: boolean;
162
+ }
163
+ export interface NarrowCardProps {
164
+ /** The element that will render around the content */
165
+ element?: 'li' | 'div';
166
+ /** The card data, from Contentful */
167
+ card: NarrowCardType;
168
+ /** Additional classes */
169
+ className?: string;
170
+ /** Context for the Google Tag Manager event */
171
+ gtmContext?: string;
172
+ }
package/cards/index.d.ts CHANGED
@@ -2,3 +2,4 @@ export * from './card';
2
2
  export * from './card-block';
3
3
  export * from './carousel';
4
4
  export * from './cards.types';
5
+ export * from './narrow-card';
@@ -1,3 +1,4 @@
1
1
  export * from './card';
2
2
  export * from './carousel';
3
3
  export * from './mocks.helpers';
4
+ export * from './narrow-card';
@@ -0,0 +1,31 @@
1
+ export namespace openCommunityMember {
2
+ namespace banner {
3
+ let description: string;
4
+ let height: number;
5
+ let type: string;
6
+ let url: string;
7
+ let width: number;
8
+ let aspect: string;
9
+ let query: string;
10
+ }
11
+ let title: string;
12
+ let text: string;
13
+ let isPrivate: boolean;
14
+ let slug: string;
15
+ }
16
+ export namespace openCommunityMemberNoImage {
17
+ let title_1: string;
18
+ export { title_1 as title };
19
+ let text_1: string;
20
+ export { text_1 as text };
21
+ let isPrivate_1: boolean;
22
+ export { isPrivate_1 as isPrivate };
23
+ }
24
+ export namespace closedCommunityMember {
25
+ let isPrivate_2: boolean;
26
+ export { isPrivate_2 as isPrivate };
27
+ }
28
+ export namespace closedCommunityMemberNoImage {
29
+ let isPrivate_3: boolean;
30
+ export { isPrivate_3 as isPrivate };
31
+ }
@@ -0,0 +1 @@
1
+ export { default as NarrowCard } from './narrow-card';
@@ -0,0 +1,7 @@
1
+ import { NarrowCardProps } from '../cards.types';
2
+ import React from 'react';
3
+ declare const NarrowCard: ({ element, className, card, gtmContext, }: NarrowCardProps) => React.DetailedReactHTMLElement<{
4
+ children: import("react/jsx-runtime").JSX.Element;
5
+ className: string;
6
+ }, HTMLElement>;
7
+ export default NarrowCard;
@@ -9,8 +9,6 @@ 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;
14
12
  /** CTA button text displayed */
15
13
  ctaMessage: string;
16
14
  /** Colour of the title */
@@ -24,9 +22,9 @@ interface IProps {
24
22
  /** Function to report errors */
25
23
  reportError(error: unknown): void;
26
24
  /** Function to send the invites */
27
- sendInvites(emails: string[], personalisedNote?: string): void;
25
+ sendInvites(emails: string[]): void;
28
26
  /** Initial form status */
29
27
  initialFormStatus?: FormStatus;
30
28
  }
31
- declare const InviteForm: ({ title, label, messagePlaceholder, ctaMessage, titleColor, labelColor, backgroundColor, onClose, reportError, sendInvites, initialFormStatus, }: IProps) => import("react/jsx-runtime").JSX.Element | null;
29
+ declare const InviteForm: ({ title, label, ctaMessage, titleColor, labelColor, backgroundColor, onClose, reportError, sendInvites, initialFormStatus, }: IProps) => import("react/jsx-runtime").JSX.Element | null;
32
30
  export default InviteForm;
package/helpers/intl.d.ts CHANGED
@@ -234,8 +234,6 @@ 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;
239
237
  inviteForm_ctaMessage: string;
240
238
  inviteForm_success: string;
241
239
  inviteForm_error: string;