@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.
@@ -1,10 +1,8 @@
1
1
  import { default as React } from 'react';
2
2
  import { IconProps } from '../..';
3
- import { As, AsProps, ColorType, SpacingSystemProps } from '../../../types';
4
- export declare const buttonColor: readonly ["primary", "secondary", "tertiary", "translucent", "dark", "white", "blue-ice"];
5
- export type ButtonColorType = (typeof buttonColor)[number];
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;
@@ -1,5 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  export interface RadioButtonProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
3
  label?: string;
4
+ variant?: 'warning';
4
5
  }
5
6
  export declare const RadioButton: React.FC<RadioButtonProps>;
@@ -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 { ColorType } from '../../../../../types';
3
+ import { ThemeColorType } from '../../../../../types';
4
4
  export type CardNewsletterProps = Omit<FlexProps<'div'>, 'title'> & {
5
5
  id: string;
6
- title: string;
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
- iconBgColor?: ColorType;
12
- onCheckedChange?: React.ChangeEventHandler<HTMLInputElement>;
13
+ mainColor?: ThemeColorType;
14
+ onCheckedChange?: React.MouseEventHandler<HTMLButtonElement>;
13
15
  };
14
16
  export declare const CardNewsletter: React.FC<CardNewsletterProps>;
@@ -0,0 +1,2 @@
1
+ export declare const buttonColor: readonly ["primary", "secondary", "tertiary", "translucent", "dark", "white", "blue-ice"];
2
+ export declare const buttonVariant: readonly ["ghost", "outlined", "link", "ghost-with-icon-bg", "close"];
@@ -1,3 +1,4 @@
1
+ export * from './buttonConfig';
1
2
  export * from './cssProperties';
2
3
  export * from './emojiConfig';
3
4
  export * from './mapTownsByDepartmentsConfig';