@20minutes/hela 0.1.67 → 0.1.69

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.
Files changed (68) hide show
  1. package/dist/components/atoms/Ad/Ad.d.ts +1 -1
  2. package/dist/components/atoms/Alert/Alert.d.ts +1 -1
  3. package/dist/components/atoms/ArticleContent/ArticleContent.d.ts +1 -1
  4. package/dist/components/atoms/Avatar/Avatar.d.ts +1 -1
  5. package/dist/components/atoms/Checkbox/Checkbox.d.ts +1 -1
  6. package/dist/components/atoms/DividerSection/DividerSection.d.ts +1 -1
  7. package/dist/components/atoms/Embed/Embed.d.ts +1 -1
  8. package/dist/components/atoms/Img/Img.d.ts +1 -1
  9. package/dist/components/atoms/InlineSeparator/InlineSeparator.d.ts +1 -1
  10. package/dist/components/atoms/Label/Label.d.ts +1 -1
  11. package/dist/components/atoms/LabelSection/LabelSection.d.ts +1 -1
  12. package/dist/components/atoms/Layout/Grid/Grid.d.ts +1 -1
  13. package/dist/components/atoms/Meta/Meta.d.ts +1 -1
  14. package/dist/components/atoms/Modal/Modal.d.ts +1 -1
  15. package/dist/components/atoms/Overlay/Overlay.d.ts +1 -1
  16. package/dist/components/atoms/ReadAlso/ReadAlso.d.ts +1 -1
  17. package/dist/components/atoms/Section/Section.d.ts +1 -1
  18. package/dist/components/atoms/Select/Select.d.ts +1 -1
  19. package/dist/components/atoms/Skeleton/Skeleton.d.ts +1 -1
  20. package/dist/components/atoms/Tab/Tab.d.ts +1 -1
  21. package/dist/components/atoms/TabPanel/TabPanel.d.ts +1 -1
  22. package/dist/components/molecules/Article/ArticleCover/ArticleCover.d.ts +1 -1
  23. package/dist/components/molecules/Article/ArticleHeader/ArticleHeader.d.ts +1 -1
  24. package/dist/components/molecules/Article/ArticleSummary/ArticleSummary.d.ts +1 -1
  25. package/dist/components/molecules/Article/ArticleVideo/ArticleVideo.d.ts +1 -1
  26. package/dist/components/molecules/Breadcrumb/Breadcrumb.d.ts +1 -1
  27. package/dist/components/molecules/Breadcrumb/BreadcrumbRubric.d.ts +1 -1
  28. package/dist/components/molecules/Card/CardMostRead/CardMostRead.d.ts +1 -1
  29. package/dist/components/molecules/Comment/Comment.d.ts +1 -1
  30. package/dist/components/molecules/Comment/CommentButton.d.ts +1 -1
  31. package/dist/components/molecules/ErrorContent/ErrorContent.d.ts +1 -1
  32. package/dist/components/molecules/HeaderBanner/HeaderBanner.d.ts +1 -1
  33. package/dist/components/molecules/HeaderMini/HeaderMini.d.ts +4 -4
  34. package/dist/components/molecules/HeaderPage/HeaderPage.d.ts +1 -1
  35. package/dist/components/molecules/HeaderSideModal/HeaderSideModal.d.ts +1 -1
  36. package/dist/components/molecules/Horoscope/HoroscopeContent/HoroscopeContent.d.ts +1 -1
  37. package/dist/components/molecules/Horoscope/HoroscopeTiles/HoroscopeTiles.d.ts +1 -1
  38. package/dist/components/molecules/InfoBanner/InfoBanner.d.ts +6 -6
  39. package/dist/components/molecules/Menu/Menu.d.ts +1 -1
  40. package/dist/components/molecules/MostReadArticles/MostReadArticles.d.ts +1 -1
  41. package/dist/components/molecules/Newsletter/Newsletter.d.ts +1 -1
  42. package/dist/components/molecules/RubricCards/RubricCards.d.ts +1 -1
  43. package/dist/components/molecules/SearchForm/SearchForm.d.ts +1 -1
  44. package/dist/components/molecules/Signature/Signature.d.ts +1 -1
  45. package/dist/components/molecules/SmartBanner/SmartBanner.d.ts +7 -2
  46. package/dist/components/molecules/SocialBar/SocialBar.d.ts +2 -1
  47. package/dist/components/molecules/SubMenu/SubMenu.d.ts +1 -1
  48. package/dist/components/molecules/Tabs/Tabs.d.ts +1 -1
  49. package/dist/components/molecules/TagBar/TagBar.d.ts +1 -1
  50. package/dist/components/molecules/Tiles/Tiles.d.ts +1 -1
  51. package/dist/components/organisms/Footer/Footer.d.ts +1 -1
  52. package/dist/components/organisms/Footer/FooterDesktop.d.ts +1 -1
  53. package/dist/components/organisms/Footer/FooterLinks.d.ts +1 -1
  54. package/dist/components/organisms/Footer/FooterMobile.d.ts +1 -1
  55. package/dist/components/organisms/Footer/FooterSocialIcons.d.ts +1 -1
  56. package/dist/components/organisms/Header/Header.d.ts +1 -1
  57. package/dist/components/organisms/Header/HeaderDesktop.d.ts +1 -1
  58. package/dist/components/organisms/Header/HeaderMobile.d.ts +1 -1
  59. package/dist/helpers/forwardRef.d.ts +1 -0
  60. package/dist/hooks/useLayoutEffect.d.ts +2 -2
  61. package/dist/index.es.js +34510 -14943
  62. package/dist/index.umd.js +244 -75
  63. package/dist/js/scripts.es.js +338 -0
  64. package/dist/js/scripts.umd.js +1 -0
  65. package/dist/scss/abstracts/variables/_token-variables.scss +1 -1
  66. package/dist/scss/abstracts/variables/_variables.scss +1 -1
  67. package/package.json +11 -9
  68. package/dist/js/main.min.js +0 -1
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { BoxProps } from '../../../components';
3
3
  export interface AdProps extends BoxProps {
4
4
  adUnitCompletePath: string;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { IconProps } from '../../../components';
3
3
  export interface AlertProps {
4
4
  variant?: 'success' | 'warning' | 'error';
@@ -1,5 +1,5 @@
1
1
  import { RawDraftContentState } from 'draft-js';
2
- import * as React from 'react';
2
+ import React from 'react';
3
3
  import { ColorSchemeTheme } from '../../../types';
4
4
  export interface ArticleContentProps {
5
5
  content: RawDraftContentState;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { BoxProps } from '../../../components';
3
3
  import { RubricColorType } from '../../../types';
4
4
  export interface AvatarProps extends BoxProps {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement> {
3
3
  label?: string;
4
4
  variant?: 'success' | 'error';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { IconSizeType } from '../../../types';
3
3
  import { BoxProps } from '../../../components';
4
4
  export interface DividerSectionProps extends BoxProps {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export interface EmbedProps {
3
3
  html: string;
4
4
  }
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { BoxProps } from '../../../components';
3
3
  export interface ImgProps extends BoxProps {
4
4
  src?: string;
@@ -1,3 +1,3 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { TextProps } from '../../../components';
3
3
  export declare const InlineSeparator: React.FC<TextProps>;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { FlexProps } from '../../../components';
3
3
  import { TextSizeType } from '../../../types';
4
4
  export interface LabelProps extends FlexProps {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export interface LabelSectionProps {
3
3
  children: React.ReactNode;
4
4
  }
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { BoxProps } from '../../../../components';
3
3
  import { FlexOrGridBoxSystemProps, TypeWithMediaQueriesType } from '../../../../types';
4
4
  export declare const colsNumberGridList: readonly [2, 3, 4, 6, 12, "2-of-3"];
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  type MetaTagProps = 'name' | 'property' | 'content';
3
3
  export interface MetaProps {
4
4
  metas: {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export interface ModalProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  dialogId: string;
4
4
  children: React.ReactNode;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { BoxProps } from '../../../components';
3
3
  export type OverlayProps = BoxProps;
4
4
  export declare const Overlay: React.FC<OverlayProps>;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export interface ReadAlsoProps {
3
3
  title: string;
4
4
  link: string;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { BoxProps } from '../../../components';
3
3
  export interface SectionProps extends BoxProps {
4
4
  inner?: boolean;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export interface SelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
3
3
  options: {
4
4
  value: string;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { FlexProps } from '../../../components';
3
3
  export interface SkeletonProps extends FlexProps {
4
4
  variant: 'button' | 'icon' | 'connexion' | 'commentButton';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { ColorSchemeTheme, TabType } from '../../../types';
3
3
  export interface TabProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
4
  variant?: TabType;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export interface TabPanelProps {
3
3
  name: string;
4
4
  children: React.ReactNode;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { LayoutType, MediaSourceType } from '../../../../types';
3
3
  export interface ArticleCoverProps {
4
4
  type: MediaSourceType;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { ColorType, LayoutType } from '../../../../types';
3
3
  export interface ArticleHeaderProps {
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { RawDraftContentState } from 'draft-js';
3
3
  import { BoxProps } from '../../../../components';
4
4
  import { RubricColorType } from '../../../../types';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export interface ArticleVideoProps {
3
3
  html: string;
4
4
  caption?: string;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { ColorType, LayoutType } from '../../../types';
3
3
  export interface BreadcrumbProps {
4
4
  rubric: {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export interface BreadcrumbRubricProps {
3
3
  rubric: {
4
4
  label: string;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { CardType, LayoutType, SpacingSystemProps } from '../../../../types';
3
3
  export interface CardMostReadProps extends CardType, SpacingSystemProps {
4
4
  index: string;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { BoxProps } from '../../../components';
3
3
  export interface CommentProps extends BoxProps {
4
4
  enableComment: boolean;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export interface CommentButtonProps {
3
3
  enableComment: boolean;
4
4
  commentNumber?: number;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { BoxProps } from '../../../components';
3
3
  export interface ErrorContentProps extends BoxProps {
4
4
  statusCode: '404' | '500';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { FlexProps, IconHoroscopeName } from '../../../components';
3
3
  export interface HeaderBannerProps extends FlexProps<'div'> {
4
4
  title: string;
@@ -3,11 +3,11 @@ import { ColorSystemProps } from '../../../types';
3
3
  export interface HeaderMiniProps {
4
4
  headerLinks: {
5
5
  name: string;
6
- categoryLink: string;
7
- theme?: ColorSystemProps['color'];
6
+ href: string;
7
+ color?: ColorSystemProps['color'];
8
8
  }[];
9
9
  isArticlePage?: boolean;
10
- shortTitle: string;
11
- headline: string;
10
+ shortTitle?: string;
11
+ headline?: string;
12
12
  }
13
13
  export declare const HeaderMini: React.FC<HeaderMiniProps>;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { RawDraftContentState } from 'draft-js';
3
3
  import { ColorType } from '../../../types';
4
4
  import { BoxProps } from '../../../components';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { ButtonProps, HeadingProps } from '../../../components';
3
3
  export interface HeaderSideModalProps extends ButtonProps {
4
4
  dialogId: string;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { HoroscopeTopicCardProps, InfoBannerProps } from '../../../../components';
3
3
  export interface HoroscopeContentProps {
4
4
  topics: HoroscopeTopicCardProps[];
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export interface HoroscopeTilesProps {
3
3
  horoscopeSignsList: {
4
4
  label: string;
@@ -1,12 +1,12 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { RawDraftContentState } from 'draft-js';
3
- import { FlexProps } from '../../../components';
3
+ import { ButtonProps, FlexProps } from '../../../components';
4
4
  export interface InfoBannerProps extends FlexProps<'div'> {
5
- cover?: string;
6
- description: RawDraftContentState | string;
7
5
  title?: string;
6
+ description: RawDraftContentState | string;
7
+ cover?: string;
8
8
  variant?: 'default' | 'alert' | 'framed';
9
- isCloseable?: boolean;
10
- link?: string;
9
+ link?: React.ComponentProps<'a'>;
10
+ closeButton?: ButtonProps;
11
11
  }
12
12
  export declare const InfoBanner: React.FC<InfoBannerProps>;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { ColorType, LayoutType } from '../../../types';
3
3
  import { LinkProps, TagProps } from '../../../components';
4
4
  export interface MenuProps {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import type { LayoutType } from '../../../types';
3
3
  export interface MostReadArticlesProps {
4
4
  tabItems: {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { LayoutType, RubricColorType } from '../../../types';
3
3
  export interface NewsletterProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { CardSmallProps } from '../../../components';
3
3
  import { LayoutType, RubricColorType } from '../../../types';
4
4
  export interface RubricCardsProps {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { ColorType } from '../../../types';
3
3
  export interface SearchFormProps extends React.HTMLAttributes<HTMLFormElement> {
4
4
  id: string;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { FlexProps } from '../../../components';
3
3
  export interface SignatureProps extends FlexProps {
4
4
  avatar: string;
@@ -1,2 +1,7 @@
1
- import * as React from 'react';
2
- export declare const SmartBanner: React.FC;
1
+ import React from 'react';
2
+ import { ButtonProps } from '../../../components';
3
+ export interface SmartBannerProps {
4
+ installButton: ButtonProps;
5
+ closeButton: ButtonProps;
6
+ }
7
+ export declare const SmartBanner: React.FC<SmartBannerProps>;
@@ -1,7 +1,8 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { LayoutType, RubricColorType, SpacingSystemProps } from '../../../types';
3
3
  export interface SocialBarProps extends SpacingSystemProps {
4
4
  commentCount: number;
5
+ commentAnchor?: string;
5
6
  shareCount: number;
6
7
  layout?: LayoutType;
7
8
  variant?: 'advanced' | 'simple';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { ColorType } from '../../../types';
3
3
  import { CardHeaderProps } from '../Card/CardHeader';
4
4
  export interface SubMenuProps {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { TabType } from '../../../types';
3
3
  export interface TabsProps {
4
4
  tabItems: {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { BoxProps, TagProps } from '../../../components';
3
3
  import { LayoutType } from '../../../types';
4
4
  export interface TagBarProps extends BoxProps {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { IconName, LinkProps } from '../../../components';
3
3
  export interface TilesProps extends LinkProps {
4
4
  icon: IconName;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { LayoutType } from '../../../types';
3
3
  import { FooterSocialIconsProps } from './FooterSocialIcons';
4
4
  import { FooterLinksProps } from './FooterLinks';
@@ -1,3 +1,3 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { FooterProps } from '../../../components';
3
3
  export declare const FooterDesktop: React.FC<FooterProps>;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export type FooterLinkType = {
3
3
  id?: string;
4
4
  name: string;
@@ -1,3 +1,3 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { FooterProps } from '../../../components';
3
3
  export declare const FooterMobile: React.FC<FooterProps>;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { IconName } from '../../../components';
3
3
  export interface FooterSocialIconsProps {
4
4
  socialIcons: {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { LayoutType } from '../../../types';
3
3
  import { HeaderDesktopProps } from './HeaderDesktop';
4
4
  export interface HeaderProps extends HeaderDesktopProps {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { ColorType } from '../../../types';
3
3
  import { SubMenuProps } from '../../../components';
4
4
  export interface HeaderDesktopProps {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  export interface HeaderMobileProps {
3
3
  logoHref: string;
4
4
  }
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { As, ComponentWithAs, PropsOf, RightJoinProps } from '../types';
2
3
  export declare function forwardRef<Props extends object, Component extends As>(component: React.ForwardRefRenderFunction<any, RightJoinProps<PropsOf<Component>, Props> & {
3
4
  as?: As;
@@ -1,2 +1,2 @@
1
- import { useLayoutEffect as useLayoutEffectBase } from 'react';
2
- export declare const useLayoutEffect: typeof useLayoutEffectBase;
1
+ import React from 'react';
2
+ export declare const useLayoutEffect: typeof React.useLayoutEffect;