@apolitical/component-library 4.8.7-jc.6 → 4.8.8

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.
Files changed (31) hide show
  1. package/cards/card-block/card-block.d.ts +2 -2
  2. package/cards/card-block/index.d.ts +1 -0
  3. package/discussion/sections/activity-section/activity-section.d.ts +2 -2
  4. package/discussion/sections/activity-section/index.d.ts +1 -0
  5. package/form/components/form/index.d.ts +1 -1
  6. package/form/types/profile-form/profile-form.d.ts +3 -3
  7. package/general/buttons/button/button.d.ts +0 -1
  8. package/index.js +2 -2
  9. package/index.mjs +6 -11
  10. package/layout/content-layout/columns/columns.d.ts +2 -2
  11. package/layout/content-layout/columns/index.d.ts +1 -0
  12. package/navigation/load-more/index.d.ts +1 -1
  13. package/navigation/load-more/load-more.d.ts +3 -3
  14. package/navigation/tabs/index.d.ts +1 -0
  15. package/navigation/tabs/tabs.d.ts +6 -6
  16. package/package.json +1 -1
  17. package/sections/edit-section/edit-section.d.ts +2 -2
  18. package/sections/edit-section/index.d.ts +1 -0
  19. package/sections/full-width-section/full-width-section.d.ts +0 -2
  20. package/style.css +1 -1
  21. package/styles/variables/colors/_colors.scss +0 -2
  22. package/styles/variables/colors/theme/_base.scss +1 -1
  23. package/styles/variables/colors/theme/_layout.scss +1 -1
  24. package/text/empty-state-box/empty-state-box.d.ts +2 -2
  25. package/text/empty-state-box/index.d.ts +1 -0
  26. package/text/hide-show-text-box/hide-show-text-box.d.ts +2 -2
  27. package/text/hide-show-text-box/index.d.ts +1 -0
  28. package/text/highlighted-text-box/highlighted-text-box.d.ts +2 -2
  29. package/text/highlighted-text-box/index.d.ts +1 -0
  30. package/user/profile-picture/index.d.ts +1 -0
  31. package/user/profile-picture/profile-picture.d.ts +2 -2
@@ -1,5 +1,5 @@
1
1
  import { CardType, CardContentType, BuildCardDataType } from '../../cards/cards.types';
2
- interface Props {
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 @@ interface Props {
12
12
  className?: string;
13
13
  focusCardIndex?: number;
14
14
  }
15
- declare const CardBlock: ({ cards, cardTypes, className, ...props }: Props) => 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 +1,2 @@
1
+ export type { ICardBlockProps } from './card-block';
1
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
- interface Props {
9
+ export interface IActivitySectionProps {
10
10
  basePath: string;
11
11
  parentId: string;
12
12
  activityId: string;
@@ -21,5 +21,5 @@ interface Props {
21
21
  };
22
22
  profile: IProfileFormProps;
23
23
  }
24
- declare const ActivitySection: React.FC<Props>;
24
+ declare const ActivitySection: React.FC<IActivitySectionProps>;
25
25
  export default ActivitySection;
@@ -1 +1,2 @@
1
+ export type { IActivitySectionProps } from './activity-section';
1
2
  export { default as ActivitySection } from './activity-section';
@@ -1,2 +1,2 @@
1
1
  export { default as Form } from './form';
2
- export type { IField, FormValues, IFormMeta } from './form.types';
2
+ export type { IField, FormValues, IFormMeta, IFormProps } from './form.types';
@@ -1,5 +1,5 @@
1
1
  import type { IFormValues, IFormMeta } from './../../components/form/form.types';
2
- export interface IProfileFormProps {
2
+ export interface IProfileFormProps<OnSuccessArgs = IFormValues> {
3
3
  /** The hooks used in the form */
4
4
  hooks: {
5
5
  /** The hook to predict the user's location */
@@ -16,9 +16,9 @@ export interface IProfileFormProps {
16
16
  /** The functions to call */
17
17
  functions: {
18
18
  /** The function to upload the user's profile image */
19
- uploadImage: () => Promise<void>;
19
+ uploadImage: () => Promise<unknown>;
20
20
  /** The function to call on success */
21
- onSuccess?: (data: IFormValues) => Promise<void>;
21
+ onSuccess?: (data: OnSuccessArgs) => Promise<void>;
22
22
  /** The function to call when the form is cancelled, e.g. the user presses a cancel button */
23
23
  onCancel?: () => void;
24
24
  /** The function to call on failure */
@@ -18,7 +18,6 @@ export interface ButtonPropsType {
18
18
  styling?: {
19
19
  muted?: boolean;
20
20
  fullWidth?: boolean;
21
- new?: boolean;
22
21
  };
23
22
  /** The icon to show on the button */
24
23
  icon?: ButtonIconType;