@20minutes/hela 2.2.2 → 2.2.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.
- package/dist/index.es.js +914 -895
- package/dist/index.umd.js +2 -2
- package/dist/scss/abstracts/variables/_token-variables.scss +1 -1
- package/dist/scss/abstracts/variables/_variables.scss +1 -1
- package/dist/src/components/atoms/Tab/Tab.d.ts +2 -2
- package/dist/src/components/atoms/Tab/Tab.stories.d.ts +7 -2
- package/dist/src/components/molecules/Card/CardImage/CardImage.d.ts +1 -0
- package/dist/src/components/molecules/Card/CardImage/CardImage.stories.d.ts +4 -0
- package/dist/src/components/molecules/{SocialBar/SocialItem/SocialBarItem.d.ts → IconItem/IconItem.d.ts} +5 -4
- package/dist/src/components/molecules/{SocialBar/SocialItem/SocialBarItem.stories.d.ts → IconItem/IconItem.stories.d.ts} +3 -3
- package/dist/src/components/molecules/IconItem/index.d.ts +1 -0
- package/dist/src/components/molecules/Tabs/Tabs.stories.d.ts +1 -1
- package/dist/src/components/molecules/index.d.ts +1 -0
- package/dist/src/components/organisms/MostReadArticles/MostReadArticles.stories.d.ts +1 -1
- package/dist/src/constants/tokenVariables.d.ts +3 -0
- package/dist/src/types/TabType.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +10 -10
- package/dist/src/components/molecules/SocialBar/SocialItem/index.d.ts +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { TabType } from '../../../types';
|
|
2
|
+
import { TabType, TextType } from '../../../types';
|
|
3
3
|
export interface TabProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
4
|
name: string;
|
|
5
5
|
variant?: TabType;
|
|
6
|
-
tabColor?: '
|
|
6
|
+
tabColor?: TextType['color'];
|
|
7
7
|
isSelected?: boolean;
|
|
8
8
|
index?: 0 | -1;
|
|
9
9
|
isNoWrap?: boolean;
|
|
@@ -3,11 +3,16 @@ declare const meta: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
component: import('react').FC<import('./Tab').TabProps>;
|
|
5
5
|
args: {
|
|
6
|
-
variant: "
|
|
7
|
-
tabColor:
|
|
6
|
+
variant: "primary";
|
|
7
|
+
tabColor: string;
|
|
8
8
|
isSelected: false;
|
|
9
9
|
index: -1;
|
|
10
10
|
};
|
|
11
|
+
argTypes: {
|
|
12
|
+
tabColor: {
|
|
13
|
+
options: readonly import('../../..').ColorType[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
11
16
|
};
|
|
12
17
|
export default meta;
|
|
13
18
|
type Story = StoryObj<typeof meta>;
|
|
@@ -9,6 +9,9 @@ declare const meta: {
|
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
argTypes: {
|
|
12
|
+
isFavorite: {
|
|
13
|
+
control: "boolean";
|
|
14
|
+
};
|
|
12
15
|
m?: import('@storybook/csf').InputType | undefined;
|
|
13
16
|
mt?: import('@storybook/csf').InputType | undefined;
|
|
14
17
|
mr?: import('@storybook/csf').InputType | undefined;
|
|
@@ -44,3 +47,4 @@ export declare const WithMediumCaption: Story;
|
|
|
44
47
|
export declare const WithSmallCaption: Story;
|
|
45
48
|
export declare const SmallRound: Story;
|
|
46
49
|
export declare const WithTitle: Story;
|
|
50
|
+
export declare const WithFavoriteOption: Story;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { FlexProps } from '
|
|
3
|
-
import { ColorType, IconNameType, LayoutType, ThemeColorType } from '
|
|
4
|
-
export interface
|
|
2
|
+
import { FlexProps } from '../..';
|
|
3
|
+
import { ColorType, IconNameType, LayoutType, ThemeColorType } from '../../../types';
|
|
4
|
+
export interface IconItemProps extends FlexProps {
|
|
5
5
|
iconName: IconNameType;
|
|
6
6
|
variant: 'primary' | 'secondary';
|
|
7
7
|
count?: number;
|
|
@@ -15,5 +15,6 @@ export interface SocialBarItemProps extends FlexProps {
|
|
|
15
15
|
isHighlighted?: boolean;
|
|
16
16
|
isInToolbar?: boolean;
|
|
17
17
|
color?: ColorType;
|
|
18
|
+
iconSize?: number | number[];
|
|
18
19
|
}
|
|
19
|
-
export declare const
|
|
20
|
+
export declare const IconItem: React.FC<IconItemProps>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { LayoutType } from '
|
|
2
|
+
import { LayoutType } from '../../../types';
|
|
3
3
|
import { StoryObj } from '@storybook/react';
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: React.FC<import('./
|
|
6
|
+
component: React.FC<import('./IconItem').IconItemProps>;
|
|
7
7
|
argTypes: {
|
|
8
8
|
countColor: {
|
|
9
|
-
options: readonly import('
|
|
9
|
+
options: readonly import('../../../types').ColorType[];
|
|
10
10
|
};
|
|
11
11
|
m?: import('@storybook/csf').InputType | undefined;
|
|
12
12
|
mt?: import('@storybook/csf').InputType | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './IconItem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type TabType = '
|
|
1
|
+
export type TabType = 'primary' | 'secondary';
|