@apolitical/component-library 8.2.1-ac.1 → 8.2.1-ac.12

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
  interface Props {
2
2
  headerIsVisible: boolean;
3
3
  }
4
- declare const LanguageUnableMessage: ({ headerIsVisible }: Props) => import("react/jsx-runtime").JSX.Element;
5
- export default LanguageUnableMessage;
4
+ declare const LanguageUnavailableMessage: ({ headerIsVisible }: Props) => import("react/jsx-runtime").JSX.Element;
5
+ export default LanguageUnavailableMessage;
@@ -5,10 +5,8 @@ interface Props {
5
5
  showLanguageUnavailableMessage?: boolean;
6
6
  /** If the language switcher should be shown */
7
7
  showLanguageSwitcher?: boolean;
8
- /** Functions to handle the header */
9
- functions?: {
10
- onLanguageSwitcherClick?: () => void;
11
- };
8
+ /** Function to handle the language switcher click */
9
+ onLanguageSwitcherClick?: () => void;
12
10
  }
13
11
  export declare enum NAVIGATION_MENUS {
14
12
  NAVIGATION = "navigation",
@@ -16,5 +14,5 @@ export declare enum NAVIGATION_MENUS {
16
14
  ACCOUNT = "account-navigation",
17
15
  SITE = "site-navigation"
18
16
  }
19
- declare const Header: ({ showNavigation, showLanguageUnavailableMessage, showLanguageSwitcher, functions: { onLanguageSwitcherClick }, }: Props) => import("react/jsx-runtime").JSX.Element | null;
17
+ declare const Header: ({ showNavigation, showLanguageUnavailableMessage, showLanguageSwitcher, onLanguageSwitcherClick, }: Props) => import("react/jsx-runtime").JSX.Element | null;
20
18
  export default Header;
@@ -28,10 +28,6 @@ interface Props {
28
28
  navigation?: boolean;
29
29
  /** Hide the footer */
30
30
  footer?: boolean;
31
- /** Show the language unavailable message */
32
- unavailableLanguageMessage?: boolean;
33
- /** Show the language switcher */
34
- languageSwitcher?: boolean;
35
31
  };
36
32
  /** Additional classes */
37
33
  className?: string;
@@ -1,10 +1,12 @@
1
+ import { ReactNode } from 'react';
1
2
  export interface FilterType {
2
3
  id: string;
3
4
  text: string;
5
+ content?: ReactNode;
4
6
  disabled?: boolean;
5
7
  callback?: () => void;
6
8
  }
7
- interface Props {
9
+ export interface IFiltersProps {
8
10
  /** The filter details */
9
11
  options: FilterType[];
10
12
  /** The default filter */
@@ -27,10 +29,16 @@ interface Props {
27
29
  className?: string;
28
30
  /** The language to use */
29
31
  locale?: string;
32
+ styling?: {
33
+ /** Whether the filter is mute in colour */
34
+ muted?: boolean;
35
+ /** Whether the filter is large */
36
+ large?: boolean;
37
+ };
30
38
  gtm?: {
31
39
  type?: string;
32
40
  context?: string;
33
41
  };
34
42
  }
35
- declare const Filters: ({ options, defaultOptions, allOption, allowMultiple, onChange, preventNoOptionSelected, className, gtm, }: Props) => import("react/jsx-runtime").JSX.Element;
43
+ declare const Filters: ({ options, defaultOptions, allOption, allowMultiple, onChange, preventNoOptionSelected, className, styling, gtm, }: IFiltersProps) => import("react/jsx-runtime").JSX.Element;
36
44
  export default Filters;
@@ -1 +1 @@
1
- export { default as Filters } from './filters';
1
+ export { default as Filters, type IFiltersProps, type FilterType } from './filters';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "8.2.1-ac.1",
3
+ "version": "8.2.1-ac.12",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {