@apolitical/component-library 1.13.3-beta.3 → 1.13.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.
@@ -5,7 +5,7 @@ interface ContentPropObject {
5
5
  /** The text to display */
6
6
  text: string;
7
7
  /** The element to wrap the text in */
8
- element?: typeof allowedElements[number];
8
+ element?: (typeof allowedElements)[number];
9
9
  }
10
10
  type ContentPropType = false | string | ContentPropObject;
11
11
  interface ContentType {
@@ -17,6 +17,8 @@ interface ContentType {
17
17
  text?: ContentPropType;
18
18
  }
19
19
  export interface BannerSectionType {
20
+ /** Additional className */
21
+ className?: string;
20
22
  /** The content to display */
21
23
  content: ContentType;
22
24
  /** The image to display */
@@ -24,7 +26,7 @@ export interface BannerSectionType {
24
26
  /** The colour variant (when there's no image) */
25
27
  variant?: 'default' | 'light';
26
28
  /** How to handle spacing on the banner */
27
- spacing?: 'normal' | 'compact';
29
+ spacing?: 'normal' | 'slim';
28
30
  /** The CTA to display */
29
31
  cta?: {
30
32
  text: string;
@@ -36,5 +38,5 @@ export interface BannerSectionType {
36
38
  /** Any additional children */
37
39
  children?: React.ReactNode;
38
40
  }
39
- declare const _default: React.MemoExoticComponent<({ content: contentProp, image, variant, spacing, cta, children }: BannerSectionType) => import("react/jsx-runtime").JSX.Element>;
41
+ declare const _default: React.MemoExoticComponent<({ className, content: contentProp, image, variant, spacing, cta, children, }: BannerSectionType) => import("react/jsx-runtime").JSX.Element>;
40
42
  export default _default;
@@ -7,17 +7,11 @@ interface Props extends IJoinButtonProps {
7
7
  slug: string;
8
8
  /** Details about members in the community */
9
9
  members?: {
10
- number?: number;
10
+ number?: number | undefined;
11
11
  data?: MemberProps[];
12
12
  };
13
- /** Callback functions */
14
- functions: {
15
- invite: () => void;
16
- join: () => void;
17
- leave: () => void;
18
- };
19
13
  /** Additional classes */
20
14
  className?: string;
21
15
  }
22
- declare const CommunityDetails: ({ className, isMember, slug, members: { number: membersCount, data: membersData }, functions: { invite, ...membershipFunctions }, }: Props) => import("react/jsx-runtime").JSX.Element;
16
+ declare const CommunityDetails: ({ isMember, slug, members: { number, data: members }, className, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
23
17
  export default CommunityDetails;
@@ -1,6 +1,8 @@
1
1
  interface Props {
2
+ /** Additional className */
3
+ className?: string;
2
4
  /** The maximum width of the divider */
3
5
  maxWidth?: number | false;
4
6
  }
5
- declare const _default: ({ maxWidth }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ declare const _default: ({ className, maxWidth }: Props) => import("react/jsx-runtime").JSX.Element;
6
8
  export default _default;