@apolitical/component-library 1.14.1 → 1.14.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.
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  interface Props {
3
3
  /** The layout for the columns */
4
- layout?: '2-1';
4
+ layout?: '2-1' | '1-3';
5
5
  /** If the columns should be hidden until they'd show in a row */
6
6
  hideOnMobile?: false | number;
7
7
  /** Additional classes */
@@ -1 +1,2 @@
1
1
  export * from './columns';
2
+ export * from './top-level-page';
@@ -0,0 +1 @@
1
+ export { default as TopLevelPage } from './top-level-page';
@@ -0,0 +1,6 @@
1
+ import { NavigationMenuProps } from '../../../navigation';
2
+ import { PageHeadingProps } from '../../../text';
3
+ interface Props extends NavigationMenuProps, PageHeadingProps {
4
+ }
5
+ declare const TopLevelPage: ({ activeLink, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
6
+ export default TopLevelPage;
@@ -3,5 +3,6 @@ export * from './filters';
3
3
  export * from './language-switcher';
4
4
  export * from './load-more';
5
5
  export * from './more-menu';
6
+ export * from './navigation-menu';
6
7
  export * from './logo';
7
8
  export * from './tags';
@@ -0,0 +1,2 @@
1
+ export type { NavigationMenuProps } from './navigation-menu';
2
+ export { default as NavigationMenu } from './navigation-menu';
@@ -0,0 +1,6 @@
1
+ export interface NavigationMenuProps {
2
+ /** The currently active link */
3
+ activeLink?: string;
4
+ }
5
+ declare const NavigationMenu: ({ activeLink }: NavigationMenuProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default NavigationMenu;
@@ -0,0 +1 @@
1
+ export declare const isActive: (pathname: string, activeLink?: string | false) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apolitical/component-library",
3
- "version": "1.14.1",
3
+ "version": "1.14.3",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {