@apolitical/component-library 4.7.17 → 4.7.18-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.
@@ -1,5 +1,5 @@
1
1
  import { CardType, CardContentType, BuildCardDataType } from '../../cards/cards.types';
2
- export interface ICardBlock {
2
+ export interface ICardBlockProps {
3
3
  /** The card data, from Contentful */
4
4
  cards: CardType[];
5
5
  /** The types for each card, from Contentful */
@@ -12,5 +12,5 @@ export interface ICardBlock {
12
12
  className?: string;
13
13
  focusCardIndex?: number;
14
14
  }
15
- declare const CardBlock: ({ cards, cardTypes, className, ...props }: ICardBlock) => import("react/jsx-runtime").JSX.Element;
15
+ declare const CardBlock: ({ cards, cardTypes, className, ...props }: ICardBlockProps) => import("react/jsx-runtime").JSX.Element;
16
16
  export default CardBlock;
@@ -1,2 +1,2 @@
1
- export type { ICardBlock } from './card-block';
1
+ export type { ICardBlockProps } from './card-block';
2
2
  export { default as CardBlock } from './card-block';
@@ -6,7 +6,7 @@ import { type IQueryFns } from './cache';
6
6
  interface IActivitySectionQueryFns extends IQueryFns {
7
7
  remove: () => Promise<void>;
8
8
  }
9
- export interface IActivitySection {
9
+ export interface IActivitySectionProps {
10
10
  basePath: string;
11
11
  parentId: string;
12
12
  activityId: string;
@@ -21,5 +21,5 @@ export interface IActivitySection {
21
21
  };
22
22
  profile: IProfileFormProps;
23
23
  }
24
- declare const ActivitySection: React.FC<IActivitySection>;
24
+ declare const ActivitySection: React.FC<IActivitySectionProps>;
25
25
  export default ActivitySection;
@@ -1,2 +1,2 @@
1
- export type { IActivitySection } from './activity-section';
1
+ export type { IActivitySectionProps } from './activity-section';
2
2
  export { default as ActivitySection } from './activity-section';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export interface IColumns {
2
+ export interface IColumnsProps {
3
3
  /** The layout for the columns */
4
4
  layout?: '2-1' | '1-3' | '1-1';
5
5
  /** If the columns should be hidden until they'd show in a row */
@@ -11,5 +11,5 @@ export interface IColumns {
11
11
  /** The content to be rendered */
12
12
  children: React.ReactElement;
13
13
  }
14
- declare const Columns: ({ layout, hideOnMobile, hasCSSContainers, className, children, }: IColumns) => import("react/jsx-runtime").JSX.Element;
14
+ declare const Columns: ({ layout, hideOnMobile, hasCSSContainers, className, children, }: IColumnsProps) => import("react/jsx-runtime").JSX.Element;
15
15
  export default Columns;
@@ -1,2 +1,2 @@
1
- export type { IColumns } from './columns';
1
+ export type { IColumnsProps } from './columns';
2
2
  export { default as Columns } from './columns';
@@ -1,2 +1,2 @@
1
- export type { ILoadMore, PaginationType } from './load-more';
1
+ export type { ILoadMoreProps, PaginationType } from './load-more';
2
2
  export { default as LoadMore } from './load-more';
@@ -13,13 +13,13 @@ export interface PaginationType {
13
13
  error: string;
14
14
  };
15
15
  }
16
- export interface ILoadMore extends PaginationType {
16
+ export interface ILoadMoreProps extends PaginationType {
17
17
  /** Additional classes */
18
18
  className?: string;
19
19
  /** GTM event context */
20
20
  gtmContext?: string;
21
21
  }
22
- export interface ILoadMore extends ButtonPropsType {
22
+ export interface ILoadMoreProps extends ButtonPropsType {
23
23
  }
24
- declare const LoadMore: ({ hasNextPage, loadNextPage, isLoading, variant, size, styling, icon, messages, className, gtmContext, }: ILoadMore) => import("react/jsx-runtime").JSX.Element | null;
24
+ declare const LoadMore: ({ hasNextPage, loadNextPage, isLoading, variant, size, styling, icon, messages, className, gtmContext, }: ILoadMoreProps) => import("react/jsx-runtime").JSX.Element | null;
25
25
  export default LoadMore;
@@ -1,2 +1,2 @@
1
- export type { ITabs, ITab, ITabBreakPoint } from './tabs';
1
+ export type { ITabsProps, ITab, ITabBreakPoint } from './tabs';
2
2
  export { default as Tabs } from './tabs';
@@ -19,7 +19,7 @@ export interface ITab {
19
19
  /** The breakpoint at which the tab should be shown. If not specified, always show */
20
20
  breakpoint?: ITabBreakPoint;
21
21
  }
22
- export interface ITabs {
22
+ export interface ITabsProps {
23
23
  /** The tab details */
24
24
  tabs: ITab[];
25
25
  /** Additional classes */
@@ -27,5 +27,5 @@ export interface ITabs {
27
27
  /** Prevent window move by not jumping to the tab on click */
28
28
  preventLocationChange?: boolean;
29
29
  }
30
- declare const Tabs: ({ tabs, className, preventLocationChange }: ITabs) => import("react/jsx-runtime").JSX.Element;
30
+ declare const Tabs: ({ tabs, className, preventLocationChange }: ITabsProps) => import("react/jsx-runtime").JSX.Element;
31
31
  export default Tabs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "4.7.17",
3
+ "version": "4.7.18-SW.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -9,7 +9,7 @@ interface IPlaceholder {
9
9
  /** Cta message showing on a button */
10
10
  ctaMessage?: string;
11
11
  }
12
- export interface IEditSection {
12
+ export interface IEditSectionProps {
13
13
  /** Additional classes */
14
14
  className?: string;
15
15
  /** Content to be rendered */
@@ -33,5 +33,5 @@ export interface IEditSection {
33
33
  /** Placeholder settings */
34
34
  placeholder?: IPlaceholder;
35
35
  }
36
- declare const EditSection: ({ children, className, formProps, formComponent: originalFormComponent, href, title, showTitle, modalTitle, placeholder, showDivider, }: IEditSection) => import("react/jsx-runtime").JSX.Element;
36
+ declare const EditSection: ({ children, className, formProps, formComponent: originalFormComponent, href, title, showTitle, modalTitle, placeholder, showDivider, }: IEditSectionProps) => import("react/jsx-runtime").JSX.Element;
37
37
  export default EditSection;
@@ -1,2 +1,2 @@
1
- export type { IEditSection } from './edit-section';
1
+ export type { IEditSectionProps } from './edit-section';
2
2
  export { default as EditSection } from './edit-section';
@@ -7,7 +7,7 @@ interface ButtonType extends ButtonPropsType {
7
7
  };
8
8
  component?: React.ReactNode;
9
9
  }
10
- export interface IEmptyStateBox {
10
+ export interface IEmptyStateBoxProps {
11
11
  /** Box styling */
12
12
  variant?: 'empty' | 'error';
13
13
  /** Optional text */
@@ -17,5 +17,5 @@ export interface IEmptyStateBox {
17
17
  /** Additional classes */
18
18
  className?: string;
19
19
  }
20
- declare const EmptyStateBox: ({ variant, text, button, className, }: IEmptyStateBox) => import("react/jsx-runtime").JSX.Element;
20
+ declare const EmptyStateBox: ({ variant, text, button, className, }: IEmptyStateBoxProps) => import("react/jsx-runtime").JSX.Element;
21
21
  export default EmptyStateBox;
@@ -1,2 +1,2 @@
1
- export type { IEmptyStateBox } from './empty-state-box';
1
+ export type { IEmptyStateBoxProps } from './empty-state-box';
2
2
  export { default as EmptyStateBox } from './empty-state-box';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { MarkdownToJSX } from 'markdown-to-jsx';
3
- export interface IHideShowTextBox {
3
+ export interface IHideShowTextBoxProps {
4
4
  /** The language for the box text */
5
5
  locale?: string;
6
6
  /** An optional id for the box */
@@ -16,5 +16,5 @@ export interface IHideShowTextBox {
16
16
  markdownOptions?: MarkdownToJSX.Options;
17
17
  children?: React.ReactNode;
18
18
  }
19
- declare const HideShowTextBox: ({ id, className, show, hide, text, markdownOptions, children, }: IHideShowTextBox) => import("react/jsx-runtime").JSX.Element | null;
19
+ declare const HideShowTextBox: ({ id, className, show, hide, text, markdownOptions, children, }: IHideShowTextBoxProps) => import("react/jsx-runtime").JSX.Element | null;
20
20
  export default HideShowTextBox;
@@ -1,2 +1,2 @@
1
- export type { IHideShowTextBox } from './hide-show-text-box';
1
+ export type { IHideShowTextBoxProps } from './hide-show-text-box';
2
2
  export { default as HideShowTextBox } from './hide-show-text-box';
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- export interface IHighlightedTextBox {
2
+ export interface IHighlightedTextBoxProps {
3
3
  /** The style of box being rendered */
4
4
  variant?: 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'subtle' | 'subtle-alt' | 'bold' | 'muted';
5
5
  /** The name of an icon file to display at the top */
@@ -18,5 +18,5 @@ export interface IHighlightedTextBox {
18
18
  /** Additional props to pass to the box */
19
19
  style?: React.CSSProperties;
20
20
  }
21
- declare const HighlightedTextBoxWrapper: ({ variant, icon, styling, className, children, ...props }: IHighlightedTextBox) => import("react/jsx-runtime").JSX.Element;
21
+ declare const HighlightedTextBoxWrapper: ({ variant, icon, styling, className, children, ...props }: IHighlightedTextBoxProps) => import("react/jsx-runtime").JSX.Element;
22
22
  export default HighlightedTextBoxWrapper;
@@ -1,2 +1,2 @@
1
- export type { IHighlightedTextBox } from './highlighted-text-box';
1
+ export type { IHighlightedTextBoxProps } from './highlighted-text-box';
2
2
  export { default as HighlightedTextBox } from './highlighted-text-box';
@@ -1,2 +1,2 @@
1
- export type { IProfilePicture } from './profile-picture';
1
+ export type { IProfilePictureProps } from './profile-picture';
2
2
  export { default as ProfilePicture } from './profile-picture';
@@ -1,4 +1,4 @@
1
- export interface IProfilePicture {
1
+ export interface IProfilePictureProps {
2
2
  /** The user's name, to create initials */
3
3
  name: string;
4
4
  /** The user's image */
@@ -16,5 +16,5 @@ export interface IProfilePicture {
16
16
  /** Optional test ID */
17
17
  'data-testid'?: string;
18
18
  }
19
- declare const ProfilePicture: ({ className, src, name, alt, width, height, showInitials, ...props }: IProfilePicture) => import("react/jsx-runtime").JSX.Element;
19
+ declare const ProfilePicture: ({ className, src, name, alt, width, height, showInitials, ...props }: IProfilePictureProps) => import("react/jsx-runtime").JSX.Element;
20
20
  export default ProfilePicture;