@20minutes/hela 2.18.13 → 2.19.0

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,19 +1,23 @@
1
1
  import { default as React } from 'react';
2
2
  import { IconProps } from '../..';
3
- import { As, AsProps, ColorSystemProps, ColorType, SpacingSystemProps } from '../../../types';
4
- export declare const buttonVariant: readonly ["primary", "secondary", "tertiary", "has-dark-bg", "has-white-bg", "ghost", "ghost-with-icon-bg", "round", "round-small", "round-has-white-bg", "round-has-blue-dark-bg", "round-half-opacity-dark-bg", "round-small-transparent-bg", "close", "link", "half-opacity-dark-bg", "has-transparent-bg"];
3
+ import { As, AsProps, ColorType, SpacingSystemProps } from '../../../types';
4
+ export declare const buttonColor: readonly ["primary", "secondary", "tertiary", "translucent", "dark", "white"];
5
+ export type ButtonColorType = (typeof buttonColor)[number];
6
+ export declare const buttonVariant: readonly ["ghost", "outlined", "link", "ghost-with-icon-bg", "close"];
5
7
  export type ButtonVariantType = (typeof buttonVariant)[number];
6
8
  export interface ButtonOptions {
7
9
  variant?: ButtonVariantType;
10
+ color?: ButtonColorType;
8
11
  children?: React.ReactNode;
9
12
  iconProps?: IconProps;
10
13
  counter?: number;
11
14
  isCentered?: boolean;
12
15
  isSquare?: boolean;
16
+ isFullWidth?: boolean;
13
17
  isLoading?: boolean;
14
- size?: 'small';
18
+ size?: 'small' | 'large';
15
19
  isCloseWithProgress?: boolean;
16
20
  closeProgressColor?: ColorType;
17
21
  }
18
- export type ButtonProps<T extends As = 'button'> = ButtonOptions & SpacingSystemProps & ColorSystemProps & AsProps<T>;
22
+ export type ButtonProps<T extends As = 'button'> = ButtonOptions & SpacingSystemProps & Omit<AsProps<T>, 'color'>;
19
23
  export declare const Button: import('../../../types').ComponentWithAs<"button", ButtonProps<"button">>;
@@ -0,0 +1,15 @@
1
+ import { IconProps } from '../..';
2
+ import { As, AsProps, SpacingSystemProps } from '../../../types';
3
+ import { ButtonProps } from '../Button/Button';
4
+ export declare const iconButtonColor: readonly ["primary", "secondary", "tertiary", "translucent", "dark", "white", "blue-dark"];
5
+ export type IconButtonColorType = (typeof iconButtonColor)[number];
6
+ export interface IconButtonOptions {
7
+ iconProps: IconProps;
8
+ variant?: Exclude<ButtonProps['variant'], 'outlined'>;
9
+ color?: IconButtonColorType;
10
+ size?: 'small' | 'tiny';
11
+ hasShadow?: boolean;
12
+ isLoading?: boolean;
13
+ }
14
+ export type IconButtonProps<T extends As = 'button'> = IconButtonOptions & SpacingSystemProps & Omit<AsProps<T>, 'color'>;
15
+ export declare const IconButton: import('../../../types').ComponentWithAs<"button", IconButtonProps<"button">>;
@@ -0,0 +1 @@
1
+ export * from './IconButton';
@@ -1,7 +1,8 @@
1
- import { ButtonProps, TabProps } from '../..';
1
+ import { ButtonColorType, ButtonProps, TabProps } from '../..';
2
2
  import { As, ColorSystemProps, ComponentWithAs, SizeSystemProps, SpacingSystemProps, TypographySystemProps } from '../../../types';
3
- export type LinkProps<T extends As = 'a'> = SpacingSystemProps & Pick<TypographySystemProps, 'weight' | 'whiteSpace'> & SizeSystemProps & Pick<ColorSystemProps, 'color'> & Omit<ButtonProps<T>, 'size' | 'as'> & {
3
+ export type LinkProps<T extends As = 'a'> = SpacingSystemProps & Pick<TypographySystemProps, 'weight' | 'whiteSpace'> & SizeSystemProps & Pick<ColorSystemProps, 'color'> & Omit<ButtonProps<T>, 'size' | 'as' | 'color'> & {
4
4
  as?: T;
5
+ buttonColor?: ButtonColorType;
5
6
  tabColor?: TabProps['tabColor'];
6
7
  tabIsSelected?: boolean;
7
8
  tabVariant?: TabProps['variant'];
@@ -1,6 +1,6 @@
1
1
  import { default as React } from 'react';
2
- import { ButtonProps } from '../..';
3
- export interface ScrollToTopButtonProps extends Omit<ButtonProps, 'children' | 'iconProps'> {
2
+ import { IconButtonProps } from '../..';
3
+ export interface ScrollToTopButtonProps extends Omit<IconButtonProps, 'children' | 'iconProps'> {
4
4
  triggerSelector?: string;
5
5
  triggerOffset?: number;
6
6
  }
@@ -1,10 +1,11 @@
1
- import { BoxProps, ButtonVariantType } from '../..';
1
+ import { BoxProps, IconButtonColorType } from '../..';
2
2
  import { ColorType, LayoutType, SpacingType } from '../../../types';
3
3
  export type SliderType = 'default' | 'three-columns-articles' | 'rubrics' | 'games' | 'videos' | 'sport' | 'vertical-cards' | 'movies';
4
4
  export interface SliderOptions {
5
5
  layout: LayoutType;
6
6
  itemsGap?: SpacingType;
7
- buttonsVariant?: ButtonVariantType;
7
+ buttonsColor?: IconButtonColorType;
8
+ buttonsSize?: 'small';
8
9
  hasSpaceAroundButtons?: boolean;
9
10
  sliderVariant?: SliderType;
10
11
  colorVariant?: ColorType;
@@ -8,6 +8,7 @@ export * from './Divider';
8
8
  export * from './DividerSection';
9
9
  export * from './DividerVertical';
10
10
  export * from './Icon';
11
+ export * from './IconButton';
11
12
  export * from './IconTooltip';
12
13
  export * from './Iframe';
13
14
  export * from './Img';
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { BoxProps, SliderOptions, TagProps } from '../..';
3
3
  import { LayoutType, ThemeColorType } from '../../../types';
4
- export interface BreadcrumbProps extends BoxProps, Pick<SliderOptions, 'colorVariant' | 'buttonsVariant'> {
4
+ export interface BreadcrumbProps extends BoxProps, Pick<SliderOptions, 'colorVariant' | 'buttonsColor' | 'buttonsSize'> {
5
5
  rubrics?: {
6
6
  label: string;
7
7
  link?: string;
@@ -1,12 +1,12 @@
1
1
  import { default as React } from 'react';
2
- import { BoxProps, ButtonProps, GridProps, HeadingProps, LinkProps } from '../..';
2
+ import { BoxProps, GridProps, HeadingProps, IconButtonProps, LinkProps } from '../..';
3
3
  export interface ExpandableProps extends BoxProps {
4
4
  childrenItems: React.ReactNode[];
5
5
  visibleItems?: number;
6
6
  heading?: HeadingProps;
7
7
  visibleGridProps?: GridProps;
8
8
  expandableGridProps?: GridProps;
9
- buttonProps?: ButtonProps;
9
+ buttonProps?: IconButtonProps;
10
10
  link?: LinkProps;
11
11
  }
12
12
  export declare const Expandable: React.FC<ExpandableProps>;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { BoxProps, ButtonProps, HeadingProps, TextProps } from '../../..';
2
+ import { BoxProps, HeadingProps, IconButtonProps, TextProps } from '../../..';
3
3
  export interface HeaderSectionProps extends BoxProps {
4
4
  label: string;
5
5
  heading: HeadingProps;
@@ -7,6 +7,6 @@ export interface HeaderSectionProps extends BoxProps {
7
7
  subtitle?: React.ReactNode;
8
8
  isExpandable?: boolean;
9
9
  contentProps?: TextProps;
10
- embedButton?: ButtonProps;
10
+ embedButton?: Omit<IconButtonProps, 'iconProps' | 'variant' | 'size'>;
11
11
  }
12
12
  export declare const HeaderSection: React.FC<HeaderSectionProps>;
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
- import { ButtonProps, HeadingProps } from '../../..';
2
+ import { HeadingProps, IconButtonProps } from '../../..';
3
3
  import { ThemeColorType } from '../../../../types';
4
- export interface HeaderSideModalProps extends ButtonProps {
4
+ export interface HeaderSideModalProps extends Omit<IconButtonProps, 'iconProps' | 'variant'> {
5
5
  dialogId: string;
6
6
  ariaLabel?: string;
7
7
  modalIconSize?: number | number[];
@@ -1,7 +1,7 @@
1
1
  import { default as React, HTMLAttributeAnchorTarget } from 'react';
2
- import { ButtonOptions, IconProps, TextProps } from '../..';
3
- import { ColorSystemProps, MediaQueryType } from '../../../types';
4
- export interface MediaLinkProps {
2
+ import { ButtonColorType, ButtonOptions, ButtonProps, IconProps, TextProps } from '../..';
3
+ import { MediaQueryType } from '../../../types';
4
+ export interface MediaLinkProps extends ButtonProps {
5
5
  href: string;
6
6
  iconProps: IconProps;
7
7
  buttonTitle: string;
@@ -9,8 +9,7 @@ export interface MediaLinkProps {
9
9
  text?: Pick<TextProps, 'children' | 'size'> & {
10
10
  isHiddenUnderBreakpoint?: MediaQueryType;
11
11
  };
12
- variant?: ButtonOptions['variant'];
13
- color?: ColorSystemProps['color'];
12
+ color?: ButtonColorType;
14
13
  size?: ButtonOptions['size'];
15
14
  }
16
15
  export declare const MediaLink: React.FC<MediaLinkProps>;
@@ -0,0 +1,6 @@
1
+ import { default as React } from 'react';
2
+ interface ChatbotProps {
3
+ children?: React.ReactNode;
4
+ }
5
+ export declare const Chatbot: React.FC<ChatbotProps>;
6
+ export {};
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { BoxProps, SliderOptions, TagProps } from '../..';
3
3
  import { LayoutType } from '../../../types';
4
- export interface TagBarProps extends BoxProps, Pick<SliderOptions, 'colorVariant' | 'buttonsVariant'> {
4
+ export interface TagBarProps extends BoxProps, Pick<SliderOptions, 'colorVariant' | 'buttonsColor' | 'buttonsSize'> {
5
5
  tags: TagProps[];
6
6
  layout: LayoutType;
7
7
  isSmall?: boolean;
@@ -367,10 +367,6 @@ export declare const tokenVariables: {
367
367
  value: string;
368
368
  key: string;
369
369
  };
370
- 'ticket-nunc': {
371
- value: string;
372
- key: string;
373
- };
374
370
  tiktok: {
375
371
  value: string;
376
372
  key: string;