@20minutes/hela 2.3.5 → 2.3.7

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.
@@ -11,6 +11,14 @@ declare const meta: {
11
11
  onClick: import('@storybook/addon-actions').HandlerFunction;
12
12
  };
13
13
  argTypes: {
14
+ variant: {
15
+ options: readonly ["primary", "secondary", "tertiary", "has-dark-bg", "has-white-bg", "ghost", "round", "round-has-white-bg", "close", "link", "half-opacity-dark-bg", "has-transparent-bg"];
16
+ control: "select";
17
+ };
18
+ size: {
19
+ options: string[];
20
+ control: "select";
21
+ };
14
22
  m?: import('@storybook/csf').InputType | undefined;
15
23
  mt?: import('@storybook/csf').InputType | undefined;
16
24
  mr?: import('@storybook/csf').InputType | undefined;
@@ -34,6 +42,7 @@ export declare const PrimaryIsLoading: Story;
34
42
  export declare const Secondary: Story;
35
43
  export declare const Tertiary: Story;
36
44
  export declare const Square: Story;
45
+ export declare const Small: Story;
37
46
  export declare const HasDarkBackground: Story;
38
47
  export declare const HasHalfOpacityDarkBackground: Story;
39
48
  export declare const PrimaryWithIcon: Story;
@@ -1,12 +1,17 @@
1
1
  import { BoxProps } from '../..';
2
2
  import { IconNameOfHoroscopeSignType, IconNameType } from '../../../types';
3
+ export declare const rotationList: readonly ["quarter", "half", "three-quarter"];
4
+ type RotationListType = (typeof rotationList)[number];
5
+ export declare const borderSizeList: readonly ["small", "medium", "big"];
6
+ type BorderSizeListType = (typeof borderSizeList)[number];
3
7
  export interface IconOptions {
4
8
  name: IconNameType | IconNameOfHoroscopeSignType | 'circle';
5
9
  size?: number | number[];
6
10
  isRounded?: boolean;
7
- border?: 'small' | 'medium' | 'big';
8
- rotation?: 'quarter' | 'half' | 'three-quarter';
11
+ border?: BorderSizeListType;
12
+ rotation?: RotationListType;
9
13
  svgTitle?: string;
10
14
  }
11
15
  export type IconProps = IconOptions & BoxProps;
12
16
  export declare const Icon: import('../../../types').ComponentWithAs<"div", IconProps>;
17
+ export {};
@@ -8,12 +8,17 @@ declare const meta: {
8
8
  isRounded: false;
9
9
  };
10
10
  argTypes: {
11
+ name: {
12
+ control: "select";
13
+ options: string[];
14
+ };
11
15
  rotation: {
12
16
  control: "select";
17
+ options: readonly ["quarter", "half", "three-quarter"];
13
18
  };
14
19
  border: {
15
20
  control: "select";
16
- options: string[];
21
+ options: readonly ["small", "medium", "big"];
17
22
  };
18
23
  m?: import('@storybook/csf').InputType | undefined;
19
24
  mt?: import('@storybook/csf').InputType | undefined;
@@ -1,6 +1,6 @@
1
1
  import { ButtonProps, TabProps } from '../..';
2
2
  import { As, ColorSystemProps, SizeSystemProps, SpacingSystemProps, TypographySystemProps } from '../../../types';
3
- export type LinkProps<T extends As = 'a'> = SpacingSystemProps & Pick<TypographySystemProps, 'weight' | 'whiteSpace'> & SizeSystemProps & Pick<ColorSystemProps, 'color'> & ButtonProps<T> & {
3
+ export type LinkProps<T extends As = 'a'> = SpacingSystemProps & Pick<TypographySystemProps, 'weight' | 'whiteSpace'> & SizeSystemProps & Pick<ColorSystemProps, 'color'> & Omit<ButtonProps<T>, 'size'> & {
4
4
  tabColor?: TabProps['tabColor'];
5
5
  tabIsSelected?: boolean;
6
6
  tabVariant?: TabProps['variant'];
@@ -1,14 +1,15 @@
1
1
  import { default as React, HTMLAttributeAnchorTarget } from 'react';
2
2
  import { ButtonOptions, TextProps } from '../..';
3
- import { ColorSystemProps, IconNameType } from '../../../types';
3
+ import { ColorSystemProps, IconNameType, MediaQueryType } from '../../../types';
4
4
  export interface MediaLinkProps {
5
5
  href: string;
6
6
  iconName: IconNameType;
7
7
  buttonTitle: string;
8
8
  target?: HTMLAttributeAnchorTarget;
9
- text?: TextProps;
9
+ text?: Pick<TextProps, 'children' | 'size'> & {
10
+ isHiddenUnderBreakpoint?: MediaQueryType;
11
+ };
10
12
  variant?: ButtonOptions['variant'];
11
- isTransparent?: boolean;
12
13
  color?: ColorSystemProps['color'];
13
14
  }
14
15
  export declare const MediaLink: React.FC<MediaLinkProps>;
@@ -39,3 +39,4 @@ type Story = StoryObj<typeof meta>;
39
39
  export declare const Overview: Story;
40
40
  export declare const IsTransparent: Story;
41
41
  export declare const IsIcon: Story;
42
+ export declare const TextIsHiddenUnderBreakpoint: Story;
@@ -2,4 +2,6 @@ import { ColorType, IconNameType } from '../types';
2
2
  export declare const spacingTokenNameList: readonly ("s" | "m" | "0" | "auto" | "xxs-3" | "xxs-2" | "xxs" | "xs" | "l" | "xl" | "xxl" | "xxl-2" | "xxl-3")[];
3
3
  export declare const colorTokenNameList: readonly ColorType[];
4
4
  export declare const iconTokenNameList: readonly IconNameType[];
5
+ export declare const iconTokenNameHorscopeChineseList: readonly ("horoscope-belier" | "horoscope-buffle" | "horoscope-cheval" | "horoscope-chevre" | "horoscope-chien" | "horoscope-cochon" | "horoscope-coq" | "horoscope-dragon" | "horoscope-lapin" | "horoscope-lion" | "horoscope-poissons" | "horoscope-serpent" | "horoscope-singe" | "horoscope-taureau" | "horoscope-tigre")[];
6
+ export declare const iconTokenNameHorscopeZodiacList: readonly ("horoscope-balance" | "horoscope-cancer" | "horoscope-capricorne" | "horoscope-gemeaux" | "horoscope-rat" | "horoscope-sagittaire" | "horoscope-scorpion" | "horoscope-verseau" | "horoscope-vierge")[];
5
7
  export declare const radiusTokenNameList: readonly ("s" | "m" | "0" | "xxs-2" | "xxs" | "xs" | "l" | "xl" | "xxl")[];
@@ -119,6 +119,9 @@ export declare const tokenVariables: {
119
119
  edit: {
120
120
  value: string;
121
121
  };
122
+ egg: {
123
+ value: string;
124
+ };
122
125
  embed: {
123
126
  value: string;
124
127
  };