@20minutes/hela 2.21.0 → 2.21.1

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>;
@@ -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 {};
@@ -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';