@apolitical/component-library 8.2.1 → 8.2.2-ac.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,2 +1 @@
1
1
  export * from './header-link';
2
- export * from './language-unavailable-message';
@@ -1,12 +1,6 @@
1
1
  interface Props {
2
2
  /** If the navigation should be hidden, for pages where we need the user to focus on the content, like onboarding */
3
3
  showNavigation?: boolean;
4
- /** If the language unavailable message should be shown */
5
- showLanguageUnavailableMessage?: boolean;
6
- /** If the language switcher should be shown */
7
- showLanguageSwitcher?: boolean;
8
- /** Function to handle the language switcher click */
9
- onLanguageSwitcherClick?: () => void;
10
4
  }
11
5
  export declare enum NAVIGATION_MENUS {
12
6
  NAVIGATION = "navigation",
@@ -14,5 +8,5 @@ export declare enum NAVIGATION_MENUS {
14
8
  ACCOUNT = "account-navigation",
15
9
  SITE = "site-navigation"
16
10
  }
17
- declare const Header: ({ showNavigation, showLanguageUnavailableMessage, showLanguageSwitcher, onLanguageSwitcherClick, }: Props) => import("react/jsx-runtime").JSX.Element | null;
11
+ declare const Header: ({ showNavigation }: Props) => import("react/jsx-runtime").JSX.Element | null;
18
12
  export default Header;
@@ -33,10 +33,6 @@ interface Props {
33
33
  className?: string;
34
34
  /** The language to use */
35
35
  locale?: string;
36
- /** Functions to handle the page layout */
37
- functions?: {
38
- onLanguageSwitcherClick?: () => void;
39
- };
40
36
  }
41
37
  declare const PageLayout: ({ children, additionalContent: { prepended, appended }, reportError, forceShow, styling, className, locale, }: Props) => import("react/jsx-runtime").JSX.Element;
42
38
  export default PageLayout;
@@ -1,12 +1,10 @@
1
- import { ReactNode } from 'react';
2
1
  export interface FilterType {
3
2
  id: string;
4
3
  text: string;
5
- content?: ReactNode;
6
4
  disabled?: boolean;
7
5
  callback?: () => void;
8
6
  }
9
- export interface IFiltersProps {
7
+ interface Props {
10
8
  /** The filter details */
11
9
  options: FilterType[];
12
10
  /** The default filter */
@@ -29,16 +27,10 @@ export interface IFiltersProps {
29
27
  className?: string;
30
28
  /** The language to use */
31
29
  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
- };
38
30
  gtm?: {
39
31
  type?: string;
40
32
  context?: string;
41
33
  };
42
34
  }
43
- declare const Filters: ({ options, defaultOptions, allOption, allowMultiple, onChange, preventNoOptionSelected, className, styling, gtm, }: IFiltersProps) => import("react/jsx-runtime").JSX.Element;
35
+ declare const Filters: ({ options, defaultOptions, allOption, allowMultiple, onChange, preventNoOptionSelected, className, gtm, }: Props) => import("react/jsx-runtime").JSX.Element;
44
36
  export default Filters;
@@ -1 +1 @@
1
- export { default as Filters, type IFiltersProps, type FilterType } from './filters';
1
+ export { default as Filters } from './filters';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "8.2.1",
3
+ "version": "8.2.2-ac.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {