@20minutes/hela 0.1.97 → 0.1.98
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/components/atoms/Icon/SvgSprite.d.ts +2 -1
- package/dist/components/atoms/Img/Img.d.ts +4 -0
- package/dist/components/atoms/Pipe/Pipe.d.ts +2 -1
- package/dist/components/atoms/SwitchDarkMode/SwitchDarkMode.d.ts +2 -1
- package/dist/components/atoms/Tab/Tab.d.ts +3 -3
- package/dist/components/molecules/Card/Templates/CardOverview/CardOverview.d.ts +2 -1
- package/dist/components/molecules/MostReadArticles/MostReadArticles.d.ts +1 -0
- package/dist/components/molecules/OverviewBar/OverviewBar.d.ts +2 -1
- package/dist/components/molecules/Signature/Signature.d.ts +2 -0
- package/dist/components/molecules/SubMenu/SubMenu.d.ts +5 -5
- package/dist/components/molecules/Tabs/Tabs.d.ts +1 -0
- package/dist/components/organisms/Header/HeaderDesktop.d.ts +2 -7
- package/dist/index.es.js +1404 -1353
- package/dist/index.umd.js +2 -2
- package/dist/js/scripts.es.js +21 -31
- package/dist/js/scripts.umd.js +1 -1
- package/dist/scss/abstracts/variables/_layout.scss +1 -0
- package/dist/scss/abstracts/variables/_token-variables.scss +1 -1
- package/dist/scss/abstracts/variables/_variables.scss +2 -2
- package/dist/style.css +1 -1
- package/dist/types/CardType.d.ts +5 -1
- package/dist/types/SponsorType.d.ts +4 -0
- package/dist/types/index.d.ts +3 -2
- package/package.json +15 -15
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare function Pipe(): React.JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export interface SwitchDarkModeProps {
|
|
2
3
|
id?: string;
|
|
3
4
|
label?: string;
|
|
4
5
|
isChecked?: boolean;
|
|
5
6
|
}
|
|
6
|
-
export declare const SwitchDarkMode: ({ id, label, isChecked }: SwitchDarkModeProps) => JSX.Element;
|
|
7
|
+
export declare const SwitchDarkMode: ({ id, label, isChecked }: SwitchDarkModeProps) => React.JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TabType } from '../../../types';
|
|
3
3
|
export interface TabProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
-
variant?: TabType;
|
|
5
4
|
name: string;
|
|
6
|
-
|
|
5
|
+
variant?: TabType;
|
|
6
|
+
isLive?: boolean;
|
|
7
7
|
isSelected?: boolean;
|
|
8
8
|
index?: 0 | -1;
|
|
9
9
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { FlexProps } from '../../../../../components';
|
|
2
3
|
import type { CardType, ColorType } from '../../../../../types';
|
|
3
4
|
export interface CardOverviewProps extends CardType, Omit<FlexProps<'a'>, 'title'> {
|
|
4
5
|
labelBg?: ColorType;
|
|
5
6
|
}
|
|
6
|
-
export declare function CardOverview({ link, cardImageProps, cardHeaderProps, title, labelBg, ...flexProps }: CardOverviewProps): JSX.Element;
|
|
7
|
+
export declare function CardOverview({ link, cardImageProps, cardHeaderProps, title, labelBg, ...flexProps }: CardOverviewProps): React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { CardOverviewProps } from '../../../components';
|
|
2
3
|
import type { ColorType } from '../../../types';
|
|
3
4
|
import { LayoutType } from '../../../types';
|
|
@@ -8,4 +9,4 @@ export interface OverviewBarProps {
|
|
|
8
9
|
auto?: boolean;
|
|
9
10
|
delay?: number;
|
|
10
11
|
}
|
|
11
|
-
export declare function OverviewBar({ articles, layout, colorVariant, auto, delay, }: OverviewBarProps): JSX.Element;
|
|
12
|
+
export declare function OverviewBar({ articles, layout, colorVariant, auto, delay, }: OverviewBarProps): React.JSX.Element;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { FlexProps } from '../../../components';
|
|
3
3
|
import type { RubricColorType } from '../../../types';
|
|
4
|
+
import { LayoutType } from '../../../types';
|
|
4
5
|
export interface SignatureProps extends FlexProps {
|
|
5
6
|
avatar: string;
|
|
6
7
|
username: string;
|
|
7
8
|
publishedAt: string;
|
|
8
9
|
editedAt: string;
|
|
10
|
+
layout: LayoutType;
|
|
9
11
|
userlink?: string;
|
|
10
12
|
authorHighlighted?: boolean;
|
|
11
13
|
disableAvatar?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { CardSmallProps } from '../../../components';
|
|
3
|
-
import type { ColorSystemProps } from '../../../types';
|
|
4
|
-
export interface SubMenuProps {
|
|
2
|
+
import type { CardSmallProps, FlexProps } from '../../../components';
|
|
3
|
+
import type { ColorSystemProps, SponsorType } from '../../../types';
|
|
4
|
+
export interface SubMenuProps extends FlexProps {
|
|
5
5
|
name: string;
|
|
6
6
|
link: string;
|
|
7
7
|
subCategory: {
|
|
@@ -9,13 +9,13 @@ export interface SubMenuProps {
|
|
|
9
9
|
name: string;
|
|
10
10
|
href: string;
|
|
11
11
|
}[];
|
|
12
|
-
tags
|
|
12
|
+
tags?: {
|
|
13
13
|
name: string;
|
|
14
14
|
href: string;
|
|
15
15
|
}[];
|
|
16
16
|
cards: Omit<CardSmallProps, 'layout'>[];
|
|
17
17
|
};
|
|
18
18
|
color?: ColorSystemProps['color'];
|
|
19
|
-
|
|
19
|
+
sponsor?: SponsorType;
|
|
20
20
|
}
|
|
21
21
|
export declare const SubMenu: React.FC<SubMenuProps>;
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { SubMenuProps } from '../../../components';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ColorType } from '../../../types';
|
|
4
4
|
export interface HeaderDesktopProps {
|
|
5
5
|
logohref: string;
|
|
6
6
|
searchformurl: string;
|
|
7
|
-
headerLinks:
|
|
8
|
-
name: string;
|
|
9
|
-
href: string;
|
|
10
|
-
color?: ColorSystemProps['color'];
|
|
11
|
-
subCategory?: SubMenuProps['subCategory'];
|
|
12
|
-
}[];
|
|
7
|
+
headerLinks: SubMenuProps[];
|
|
13
8
|
dividerColor?: ColorType;
|
|
14
9
|
}
|
|
15
10
|
export declare const HeaderDesktop: React.FC<HeaderDesktopProps>;
|