@20minutes/hela 0.1.113 → 0.1.115

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,5 @@
1
- import type { ButtonProps, IconProps, TextProps } from '../../../components';
2
- import type { AsProps, ColorSystemProps, IconNameType } from '../../../types';
3
- type MessagesProps = {
4
- value: string;
5
- textProps?: TextProps;
6
- iconProps?: IconProps;
7
- };
1
+ import type { ButtonProps, FlexProps } from '../../../components';
2
+ import type { AsProps, ColorSystemProps, IconNameType, MessageType } from '../../../types';
8
3
  export interface InputOptions {
9
4
  label?: string;
10
5
  icon?: IconNameType;
@@ -12,8 +7,8 @@ export interface InputOptions {
12
7
  isIconButton?: boolean;
13
8
  iconButtonProps?: ButtonProps;
14
9
  variant?: 'success' | 'error';
15
- msg?: MessagesProps[];
10
+ msg?: MessageType[];
11
+ containerProps?: FlexProps;
16
12
  }
17
13
  export type InputProps = InputOptions & Pick<ColorSystemProps, 'color'> & AsProps<'input'>;
18
14
  export declare const Input: import('../../../types').ComponentWithAs<"input", InputProps>;
19
- export {};
@@ -1,10 +1,12 @@
1
- import React from 'react';
2
- export interface SelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
1
+ import type { FlexProps } from '../../../components';
2
+ import type { AsProps } from '../../../types';
3
+ export interface SelectOptions {
3
4
  options: {
4
5
  value: string;
5
6
  title: string;
6
7
  }[];
7
8
  label?: string;
8
- placeholder?: string;
9
+ containerProps?: FlexProps;
9
10
  }
10
- export declare const Select: React.FC<SelectProps>;
11
+ export type SelectProps = SelectOptions & AsProps<'select'>;
12
+ export declare const Select: import('../../../types').ComponentWithAs<"select", SelectProps>;
@@ -0,0 +1,11 @@
1
+ import type { FlexProps } from '../../../components';
2
+ import type { AsProps, MessageType } from '../../../types';
3
+ export interface TextareaOptions {
4
+ label?: string;
5
+ variant?: 'success' | 'error';
6
+ msg?: MessageType[];
7
+ rows?: number;
8
+ containerProps?: FlexProps;
9
+ }
10
+ export type TextareaProps = TextareaOptions & AsProps<'textarea'>;
11
+ export declare const Textarea: import('../../../types').ComponentWithAs<"textarea", TextareaProps>;
@@ -0,0 +1 @@
1
+ export * from './Textarea';
@@ -3,6 +3,7 @@ export * from './Alert';
3
3
  export * from './Avatar';
4
4
  export * from './Button';
5
5
  export * from './Checkbox';
6
+ export * from './DiodeRubricIcon';
6
7
  export * from './Divider';
7
8
  export * from './DividerSection';
8
9
  export * from './Embed';
@@ -24,10 +25,11 @@ export * from './Section';
24
25
  export * from './Select';
25
26
  export * from './Skeleton';
26
27
  export * from './Slider';
28
+ export * from './Stepper';
27
29
  export * from './Switch';
28
30
  export * from './SwitchDarkMode';
29
31
  export * from './Tab';
30
32
  export * from './TabPanel';
31
33
  export * from './Tag';
34
+ export * from './Textarea';
32
35
  export * from './Typography';
33
- export * from './DiodeRubricIcon';
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { type HoroscopeTopicCardProps, type InfoBannerProps } from '../../../../components';
3
- export interface HoroscopeContentProps {
2
+ import type { BoxProps, HoroscopeTopicCardProps, InfoBannerProps } from '../../../../components';
3
+ export interface HoroscopeContentProps extends BoxProps {
4
4
  topics: HoroscopeTopicCardProps[];
5
5
  infoBannerProps: InfoBannerProps;
6
6
  }
@@ -1,12 +1,12 @@
1
1
  import React from 'react';
2
2
  import type { LinkProps, TagProps } from '../../../components';
3
- import type { ColorType, SponsorType } from '../../../types';
3
+ import type { RubricColorType, SponsorType } from '../../../types';
4
4
  import { LayoutType } from '../../../types';
5
5
  export interface MenuProps {
6
6
  categories: {
7
7
  name: string;
8
8
  categoryLink?: string;
9
- theme?: ColorType;
9
+ theme?: RubricColorType;
10
10
  links: LinkProps[];
11
11
  tags?: TagProps[];
12
12
  sponsor?: SponsorType;
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- import type { CardExtraSmallProps, CardMediumProps } from '../../../components';
2
+ import type { BoxProps, CardExtraSmallProps, CardMediumProps } from '../../../components';
3
3
  interface PartnerColumnProps {
4
4
  label: string;
5
5
  articles: CardMediumProps[] | CardExtraSmallProps[];
6
6
  }
7
- export interface PartnerCardsProps {
7
+ export interface PartnerCardsProps extends BoxProps {
8
8
  columns: PartnerColumnProps[];
9
9
  }
10
10
  export declare const PartnerCards: React.FC<PartnerCardsProps>;
@@ -3,7 +3,6 @@ import type { ColorType } from '../../../types';
3
3
  export interface SearchFormProps extends React.HTMLAttributes<HTMLFormElement> {
4
4
  id: string;
5
5
  url: string;
6
- className?: string;
7
6
  color?: ColorType;
8
7
  }
9
8
  export declare const SearchForm: React.FC<SearchFormProps>;
@@ -383,9 +383,6 @@ export declare const tokenVariables: {
383
383
  };
384
384
  };
385
385
  rubric: {
386
- default: {
387
- value: string;
388
- };
389
386
  direct: {
390
387
  value: string;
391
388
  };