@20minutes/hela 2.21.0 → 2.21.2
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/Button/Button.d.ts +3 -5
- package/dist/components/atoms/Input/Input.d.ts +1 -1
- package/dist/components/atoms/RadioButton/RadioButton.d.ts +1 -0
- package/dist/components/atoms/Tag/Tag.d.ts +1 -1
- package/dist/components/molecules/Card/CardTitle/CardTitle.d.ts +2 -0
- package/dist/components/molecules/Card/Templates/CardNewsletter/CardNewletter.d.ts +7 -5
- package/dist/constants/buttonConfig.d.ts +2 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/index.es.js +553 -510
- package/dist/index.umd.cjs +1 -1
- package/dist/scss/abstracts/variables/_token-variables.scss +1 -1
- package/dist/style.css +1 -1
- package/dist/types/ButtonType.d.ts +3 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IconProps } from '../..';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export type ButtonColorType
|
|
6
|
-
export declare const buttonVariant: readonly ["ghost", "outlined", "link", "ghost-with-icon-bg", "close"];
|
|
7
|
-
export type ButtonVariantType = (typeof buttonVariant)[number];
|
|
3
|
+
import { buttonColor, buttonVariant } from '../../../constants';
|
|
4
|
+
import { As, AsProps, ButtonColorType, ButtonVariantType, ColorType, SpacingSystemProps } from '../../../types';
|
|
5
|
+
export { type ButtonColorType, type ButtonVariantType, buttonColor, buttonVariant };
|
|
8
6
|
export interface ButtonOptions {
|
|
9
7
|
variant?: ButtonVariantType;
|
|
10
8
|
color?: ButtonColorType;
|
|
@@ -6,7 +6,7 @@ export interface InputOptions {
|
|
|
6
6
|
positionIcon?: 'left' | 'right';
|
|
7
7
|
isIconButton?: boolean;
|
|
8
8
|
iconButtonProps?: ButtonProps;
|
|
9
|
-
variant?: 'success' | 'error';
|
|
9
|
+
variant?: 'success' | 'error' | 'warning';
|
|
10
10
|
msg?: MessageType[];
|
|
11
11
|
containerProps?: FlexProps;
|
|
12
12
|
isRounded?: boolean;
|
|
@@ -4,7 +4,7 @@ export interface TagOptions {
|
|
|
4
4
|
variant?: 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'quinary' | 'span' | 'transparent';
|
|
5
5
|
}
|
|
6
6
|
export interface TagSize {
|
|
7
|
-
size?: 'regular' | 'small';
|
|
7
|
+
size?: 'regular' | 'small' | 'extra-small';
|
|
8
8
|
}
|
|
9
9
|
export type TagProps<T extends As = 'a'> = TagOptions & TagSize & BoxProps<T>;
|
|
10
10
|
export declare const Tag: import('../../../types').ComponentWithAs<"div", TagProps<"a">>;
|
|
@@ -5,6 +5,8 @@ export interface CardTitleProps extends Pick<HeadingProps, 'as' | 'size' | 'font
|
|
|
5
5
|
cartridge?: CartridgeType;
|
|
6
6
|
cartridgeIsCentered?: boolean;
|
|
7
7
|
maxRows?: 2 | 3 | 4 | 5;
|
|
8
|
+
href?: string;
|
|
9
|
+
hrefTarget?: string;
|
|
8
10
|
}
|
|
9
11
|
export declare const CardTitle: React.FC<CardTitleProps>;
|
|
10
12
|
export {};
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { FlexProps } from '../../../..';
|
|
3
|
-
import {
|
|
3
|
+
import { ThemeColorType } from '../../../../../types';
|
|
4
4
|
export type CardNewsletterProps = Omit<FlexProps<'div'>, 'title'> & {
|
|
5
5
|
id: string;
|
|
6
|
-
|
|
7
|
-
label: string;
|
|
6
|
+
description: string;
|
|
8
7
|
imgUrl: string;
|
|
8
|
+
label: string;
|
|
9
|
+
title: string;
|
|
10
|
+
externalLink?: string;
|
|
9
11
|
withBorderBottom?: boolean;
|
|
10
12
|
isChecked?: boolean;
|
|
11
|
-
|
|
12
|
-
onCheckedChange?: React.
|
|
13
|
+
mainColor?: ThemeColorType;
|
|
14
|
+
onCheckedChange?: React.MouseEventHandler<HTMLButtonElement>;
|
|
13
15
|
};
|
|
14
16
|
export declare const CardNewsletter: React.FC<CardNewsletterProps>;
|