@20minutes/hela 2.16.3 → 2.16.5

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.
@@ -5,5 +5,6 @@ export interface InfoBannerProps extends Omit<FlexProps<'div'>, 'title'> {
5
5
  heading?: HeadingProps;
6
6
  link?: React.ComponentProps<'a'>;
7
7
  closeButton?: ButtonProps;
8
+ infoButton?: React.ReactNode;
8
9
  }
9
10
  export declare const InfoBanner: React.FC<InfoBannerProps>;
@@ -1,7 +1,8 @@
1
- import { StoryObj } from '@storybook/react-vite';
1
+ import { default as React } from 'react';
2
+ import { StoryFn, StoryObj } from '@storybook/react-vite';
2
3
  declare const meta: {
3
4
  title: string;
4
- component: import('react').FC<import('./InfoBanner').InfoBannerProps>;
5
+ component: React.FC<import('./InfoBanner').InfoBannerProps>;
5
6
  argTypes: {
6
7
  inline?: import('@storybook/csf').InputType | undefined;
7
8
  direction?: import('@storybook/csf').InputType | undefined;
@@ -35,7 +36,9 @@ declare const meta: {
35
36
  parameters: {
36
37
  layout: string;
37
38
  };
39
+ decorators: ((Story: StoryFn) => React.JSX.Element)[];
38
40
  };
39
41
  export default meta;
40
42
  type Story = StoryObj<typeof meta>;
41
43
  export declare const Overview: Story;
44
+ export declare const WithInfoButton: Story;
@@ -4,6 +4,16 @@ import { PoliticalPartyType } from '../../../../types';
4
4
  interface DepartmentsPath {
5
5
  path: string;
6
6
  }
7
+ interface DromTown {
8
+ id: string;
9
+ path: string;
10
+ }
11
+ export interface DromData {
12
+ name: string;
13
+ viewBox: string;
14
+ deptPath: string;
15
+ towns: DromTown[];
16
+ }
7
17
  interface TownResultProps {
8
18
  id: string;
9
19
  politicalParty: PoliticalPartyType;
@@ -11,6 +21,7 @@ interface TownResultProps {
11
21
  export interface MapTownsByDepartmentsProps extends BoxProps {
12
22
  resultsPerTown: TownResultProps[];
13
23
  departmentsPaths?: Record<string, DepartmentsPath>;
24
+ dromsConfig?: Record<string, DromData>;
14
25
  townsSprite?: string;
15
26
  className?: string;
16
27
  }