@20minutes/hela 2.17.8 → 2.18.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.
- package/dist/index.es.js +3597 -3466
- package/dist/index.umd.cjs +1 -1
- package/dist/js/scripts.es.js +642 -577
- package/dist/js/scripts.umd.cjs +1 -1
- package/dist/scss/abstracts/variables/_other-colors.scss +1 -1
- package/dist/scss/abstracts/variables/_token-variables.scss +1 -1
- package/dist/src/components/atoms/Avatar/Avatar.d.ts +2 -3
- package/dist/src/components/atoms/Avatar/Avatar.stories.d.ts +2 -3
- package/dist/src/components/atoms/Icon/Icon.d.ts +3 -2
- package/dist/src/components/molecules/AvatarGroup/AvatarGroup.d.ts +1 -1
- package/dist/src/components/molecules/Card/Templates/CardSkeleton/CardSkeleton.d.ts +6 -0
- package/dist/src/components/{atoms/Icon/Icon.stories.d.ts → molecules/Card/Templates/CardSkeleton/CardSkeleton.stories.d.ts} +4 -21
- package/dist/src/components/molecules/Card/Templates/CardSkeleton/index.d.ts +1 -0
- package/dist/src/components/molecules/Card/Templates/index.d.ts +1 -0
- package/dist/src/components/molecules/Elections/SearchBanner/SearchBanner.d.ts +1 -0
- package/dist/src/components/molecules/Maps/MapTownsByDepartments/MapTownsByDepartments.d.ts +1 -2
- package/dist/src/components/molecules/React/ReactButton.d.ts +4 -1
- package/dist/src/components/molecules/React/ReactButton.stories.d.ts +4 -1
- package/dist/src/components/molecules/Signature/Signature.d.ts +1 -1
- package/dist/src/helpers/townSprite.d.ts +8 -0
- package/dist/src/types/AvatarType.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +8 -9
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { BoxProps } from '../..';
|
|
3
|
-
import {
|
|
3
|
+
import { ColorType, PoliticalPartiesColorsType } from '../../../types';
|
|
4
4
|
export interface AvatarProps extends BoxProps {
|
|
5
5
|
img?: string;
|
|
6
6
|
alt?: string;
|
|
7
|
-
|
|
7
|
+
color?: ColorType | PoliticalPartiesColorsType;
|
|
8
8
|
variant?: 'xsmall' | 'small' | 'default' | 'big';
|
|
9
|
-
withBorder?: boolean;
|
|
10
9
|
streakBadge?: number;
|
|
11
10
|
}
|
|
12
11
|
export declare const Avatar: React.FC<AvatarProps>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import('react').FC<import('
|
|
4
|
+
component: import('react').FC<import('./Avatar').AvatarProps>;
|
|
5
5
|
args: {
|
|
6
6
|
img: string;
|
|
7
7
|
alt: string;
|
|
8
8
|
variant: "default";
|
|
9
9
|
};
|
|
10
10
|
argTypes: {
|
|
11
|
-
|
|
11
|
+
color: {
|
|
12
12
|
options: string[];
|
|
13
13
|
};
|
|
14
14
|
variant: {
|
|
@@ -30,7 +30,6 @@ declare const meta: {
|
|
|
30
30
|
py?: import('@storybook/csf').InputType | undefined;
|
|
31
31
|
borderColor?: import('@storybook/csf').InputType | undefined;
|
|
32
32
|
bg?: import('@storybook/csf').InputType | undefined;
|
|
33
|
-
color?: import('@storybook/csf').InputType | undefined;
|
|
34
33
|
radius?: import('@storybook/csf').InputType | undefined;
|
|
35
34
|
};
|
|
36
35
|
parameters: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BoxProps } from '../..';
|
|
2
|
-
import { IconNameOfHoroscopeSignType, IconNameType } from '../../../types';
|
|
2
|
+
import { ColorSystemProps, IconNameOfHoroscopeSignType, IconNameType, PoliticalPartiesColorsType } from '../../../types';
|
|
3
3
|
export declare const rotationList: readonly ["quarter", "half", "three-quarter"];
|
|
4
4
|
type RotationListType = (typeof rotationList)[number];
|
|
5
5
|
export declare const borderSizeList: readonly ["small", "medium", "big"];
|
|
@@ -11,7 +11,8 @@ export interface IconOptions {
|
|
|
11
11
|
border?: BorderSizeListType;
|
|
12
12
|
rotation?: RotationListType;
|
|
13
13
|
svgTitle?: string;
|
|
14
|
+
color?: ColorSystemProps['color'] | PoliticalPartiesColorsType;
|
|
14
15
|
}
|
|
15
|
-
export type IconProps = IconOptions & BoxProps
|
|
16
|
+
export type IconProps = IconOptions & Omit<BoxProps, 'color'>;
|
|
16
17
|
export declare const Icon: import('../../../types').ComponentWithAs<"div", IconProps>;
|
|
17
18
|
export {};
|
|
@@ -4,6 +4,6 @@ import { AvatarType } from '../../../types/AvatarType';
|
|
|
4
4
|
export interface AvatarGroupProps extends FlexProps {
|
|
5
5
|
avatars: AvatarType[];
|
|
6
6
|
maxAvatar?: number;
|
|
7
|
-
themeColor?: AvatarProps['
|
|
7
|
+
themeColor?: AvatarProps['color'];
|
|
8
8
|
}
|
|
9
9
|
export declare const AvatarGroup: React.FC<AvatarGroupProps>;
|
|
@@ -1,25 +1,11 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: import('
|
|
4
|
+
component: import('react').FC<import('./CardSkeleton').CardSkeletonProps>;
|
|
5
5
|
args: {
|
|
6
|
-
|
|
7
|
-
size: number;
|
|
8
|
-
isRounded: false;
|
|
6
|
+
variant: "medium";
|
|
9
7
|
};
|
|
10
8
|
argTypes: {
|
|
11
|
-
name: {
|
|
12
|
-
control: "select";
|
|
13
|
-
options: string[];
|
|
14
|
-
};
|
|
15
|
-
rotation: {
|
|
16
|
-
control: "select";
|
|
17
|
-
options: readonly ["quarter", "half", "three-quarter"];
|
|
18
|
-
};
|
|
19
|
-
border: {
|
|
20
|
-
control: "select";
|
|
21
|
-
options: readonly ["small", "medium", "big"];
|
|
22
|
-
};
|
|
23
9
|
m?: import('@storybook/csf').InputType | undefined;
|
|
24
10
|
mt?: import('@storybook/csf').InputType | undefined;
|
|
25
11
|
mr?: import('@storybook/csf').InputType | undefined;
|
|
@@ -47,8 +33,5 @@ declare const meta: {
|
|
|
47
33
|
};
|
|
48
34
|
export default meta;
|
|
49
35
|
type Story = StoryObj<typeof meta>;
|
|
50
|
-
export declare const
|
|
51
|
-
export declare const
|
|
52
|
-
export declare const WithBgColor: Story;
|
|
53
|
-
export declare const Rounded: Story;
|
|
54
|
-
export declare const Circle: Story;
|
|
36
|
+
export declare const Medium: Story;
|
|
37
|
+
export declare const ExtraSmall: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CardSkeleton';
|
|
@@ -11,6 +11,7 @@ export * from './CardNotification';
|
|
|
11
11
|
export * from './CardOverview';
|
|
12
12
|
export * from './CardProduct';
|
|
13
13
|
export * from './CardSideImage';
|
|
14
|
+
export * from './CardSkeleton';
|
|
14
15
|
export * from './CardSmall';
|
|
15
16
|
export * from './CardTiny';
|
|
16
17
|
export * from './CardVertical';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { BoxProps } from '../../..';
|
|
3
2
|
import { PoliticalPartyType } from '../../../../types';
|
|
4
3
|
interface DepartmentsPath {
|
|
@@ -27,5 +26,5 @@ export interface MapTownsByDepartmentsProps extends BoxProps {
|
|
|
27
26
|
townsSprite?: string;
|
|
28
27
|
className?: string;
|
|
29
28
|
}
|
|
30
|
-
export declare const MapTownsByDepartments:
|
|
29
|
+
export declare const MapTownsByDepartments: ({ resultsPerTown, departmentsPaths, dromsConfig, townsSprite, className, ...boxProps }: MapTownsByDepartmentsProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
30
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { EmojiReaction, FlexProps, IconItemProps } from '../..';
|
|
3
3
|
import { ReactionContent } from '../../../constants/emojiConfig';
|
|
4
|
-
import { ColorType, ThemeColorType } from '../../../types';
|
|
4
|
+
import { ColorType, LayoutType, ThemeColorType } from '../../../types';
|
|
5
5
|
export interface ReactButtonProps extends FlexProps {
|
|
6
6
|
variant: 'horizontal' | 'vertical' | 'card';
|
|
7
7
|
count?: number;
|
|
@@ -16,5 +16,8 @@ export interface ReactButtonProps extends FlexProps {
|
|
|
16
16
|
type: ReactionContent;
|
|
17
17
|
id: number;
|
|
18
18
|
};
|
|
19
|
+
layout?: LayoutType;
|
|
20
|
+
contentId?: string;
|
|
21
|
+
contentLegacyId?: string;
|
|
19
22
|
}
|
|
20
23
|
export declare const ReactButton: React.FC<ReactButtonProps>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
+
import { LayoutType } from '../../../types';
|
|
3
4
|
declare const meta: {
|
|
4
5
|
title: string;
|
|
5
6
|
component: React.FC<import('../..').ReactButtonProps>;
|
|
@@ -9,10 +10,12 @@ declare const meta: {
|
|
|
9
10
|
iconItemProps: {
|
|
10
11
|
variant: "secondary";
|
|
11
12
|
};
|
|
13
|
+
layout: LayoutType.DESKTOP;
|
|
14
|
+
contentId: string;
|
|
12
15
|
};
|
|
13
16
|
argTypes: {
|
|
14
17
|
countColor: {
|
|
15
|
-
options: readonly import('
|
|
18
|
+
options: readonly import('../../../types').ColorType[];
|
|
16
19
|
};
|
|
17
20
|
countBg: {
|
|
18
21
|
options: string[];
|
|
@@ -12,7 +12,7 @@ export interface SignatureProps extends FlexProps {
|
|
|
12
12
|
userlink?: string;
|
|
13
13
|
authorHighlighted?: boolean;
|
|
14
14
|
disableAvatar?: boolean;
|
|
15
|
-
themeColor?: AvatarProps['
|
|
15
|
+
themeColor?: AvatarProps['color'];
|
|
16
16
|
sponsor?: SponsorType;
|
|
17
17
|
}
|
|
18
18
|
export declare const Signature: React.FC<SignatureProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface TownSpriteEntry {
|
|
2
|
+
id: string;
|
|
3
|
+
path: string;
|
|
4
|
+
name: string;
|
|
5
|
+
url: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const parseTownSprite: (townsSprite: string) => TownSpriteEntry[];
|
|
8
|
+
export declare const indexTownSpriteEntriesById: (entries: TownSpriteEntry[]) => Map<string, TownSpriteEntry>;
|