@eleven-labs/design-system 0.10.2 → 0.20.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.
- package/dist/components/Atoms/Blockquote/Blockquote.d.ts +3 -3
- package/dist/components/Atoms/BurgerButton/BurgerButton.d.ts +5 -0
- package/dist/components/Atoms/BurgerButton/index.d.ts +1 -0
- package/dist/components/Atoms/Button/Button.d.ts +2 -2
- package/dist/components/Atoms/CloseButton/CloseButton.d.ts +8 -0
- package/dist/components/Atoms/CloseButton/index.d.ts +1 -0
- package/dist/components/Atoms/Divider/Divider.d.ts +5 -0
- package/dist/components/Atoms/Divider/index.d.ts +1 -0
- package/dist/components/Atoms/Svgs/Arrow.d.ts +4 -0
- package/dist/components/Atoms/Svgs/index.d.ts +1 -3
- package/dist/components/Atoms/Typography/Heading/Heading.d.ts +2 -2
- package/dist/components/Atoms/Typography/Text/Text.d.ts +2 -2
- package/dist/components/Atoms/index.d.ts +3 -1
- package/dist/components/{Atoms/Layout → Layout}/Box/Box.d.ts +1 -1
- package/dist/components/{Atoms/Layout → Layout}/Flex/Flex.d.ts +3 -3
- package/dist/components/Molecules/Blocks/CategoryEndingBlock/CategoryEndingBlock.d.ts +10 -0
- package/dist/components/Molecules/Blocks/CategoryEndingBlock/index.d.ts +1 -0
- package/dist/components/Molecules/Blocks/CategoryIntroBlock/CategoryIntroBlock.d.ts +11 -0
- package/dist/components/Molecules/Blocks/CategoryIntroBlock/index.d.ts +1 -0
- package/dist/components/Molecules/Blocks/HomeIntroBlock/HomeIntroBlock.d.ts +10 -0
- package/dist/components/Molecules/Blocks/HomeIntroBlock/index.d.ts +1 -0
- package/dist/components/Molecules/Blocks/NotFoundBlock/NotFoundBlock.d.ts +8 -0
- package/dist/components/Molecules/Blocks/NotFoundBlock/index.d.ts +1 -0
- package/dist/components/Molecules/Blocks/index.d.ts +4 -0
- package/dist/components/Molecules/Cards/AuthorCard/AuthorCard.d.ts +9 -0
- package/dist/components/Molecules/Cards/AuthorCard/index.d.ts +1 -0
- package/dist/components/Molecules/Cards/ContactCard/ContactCard.d.ts +11 -0
- package/dist/components/Molecules/Cards/ContactCard/index.d.ts +1 -0
- package/dist/components/Molecules/Cards/NewsletterCard/NewsletterCard.d.ts +8 -0
- package/dist/components/Molecules/Cards/NewsletterCard/index.d.ts +1 -0
- package/dist/components/Molecules/Cards/PostCard/PostCard.d.ts +18 -0
- package/dist/components/Molecules/Cards/PostCard/index.d.ts +1 -0
- package/dist/components/Molecules/Cards/SummaryCard/SummaryCard.d.ts +14 -0
- package/dist/components/Molecules/Cards/SummaryCard/index.d.ts +1 -0
- package/dist/components/Molecules/Cards/index.d.ts +5 -0
- package/dist/components/Molecules/Link/Link.d.ts +2 -1
- package/dist/components/Molecules/Pagination/Pagination.d.ts +9 -0
- package/dist/components/Molecules/Pagination/index.d.ts +1 -0
- package/dist/components/Molecules/PostMetadata/PostMetadata.d.ts +17 -0
- package/dist/components/Molecules/PostMetadata/index.d.ts +1 -0
- package/dist/components/Molecules/ShareLinks/ShareLinks.d.ts +14 -0
- package/dist/components/Molecules/ShareLinks/index.d.ts +1 -0
- package/dist/components/Molecules/index.d.ts +4 -0
- package/dist/components/Organisms/Autocomplete/Autocomplete.d.ts +12 -0
- package/dist/components/Organisms/Autocomplete/AutocompleteResult/AutocompleteResult.d.ts +27 -0
- package/dist/components/Organisms/Autocomplete/AutocompleteResult/index.d.ts +1 -0
- package/dist/components/Organisms/Autocomplete/index.d.ts +1 -0
- package/dist/components/Organisms/Footer/Footer.d.ts +24 -0
- package/dist/components/Organisms/Footer/index.d.ts +1 -0
- package/dist/components/Organisms/Header/Header.d.ts +19 -0
- package/dist/components/Organisms/Header/index.d.ts +1 -0
- package/dist/components/Organisms/PostCardList/PostCardList.d.ts +8 -0
- package/dist/components/Organisms/PostCardList/index.d.ts +1 -0
- package/dist/components/Organisms/index.d.ts +4 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/constants/tokenNameList.d.ts +1 -1
- package/dist/constants/tokenVariables.d.ts +5 -8
- package/dist/helpers/getCdnAssetsFile.d.ts +1 -0
- package/dist/helpers/systemPropsHelper/typographySystemClassName.d.ts +1 -1
- package/dist/hooks/useCopyToClipboard.d.ts +5 -0
- package/dist/hooks/usePagination.d.ts +8 -0
- package/dist/imgs/astronaut.png +0 -0
- package/dist/imgs/category-intro-block-desktop.png +0 -0
- package/dist/imgs/category-intro-block-mobile.png +0 -0
- package/dist/imgs/contact-background.png +0 -0
- package/dist/imgs/home-intro-block.png +0 -0
- package/dist/imgs/newsletter.png +0 -0
- package/dist/imgs/not-found.png +0 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +6062 -1816
- package/dist/index.umd.cjs +45 -10
- package/dist/pages/AuthorPage/AuthorPage.d.ts +21 -0
- package/dist/pages/AuthorPage/index.d.ts +1 -0
- package/dist/pages/CategoryPage/CategoryPage.d.ts +11 -0
- package/dist/pages/CategoryPage/index.d.ts +1 -0
- package/dist/pages/HomePage/HomePage.d.ts +10 -0
- package/dist/pages/HomePage/index.d.ts +1 -0
- package/dist/pages/NotFoundPage/NotFoundPage.d.ts +6 -0
- package/dist/pages/NotFoundPage/index.d.ts +1 -0
- package/dist/pages/PostPage/PostFooter/PostFooter.d.ts +7 -0
- package/dist/pages/PostPage/PostFooter/index.d.ts +1 -0
- package/dist/pages/PostPage/PostHeader/PostHeader.d.ts +14 -0
- package/dist/pages/PostPage/PostHeader/index.d.ts +1 -0
- package/dist/pages/PostPage/PostPage.d.ts +23 -0
- package/dist/pages/PostPage/RelatedPostList/RelatedPostList.d.ts +7 -0
- package/dist/pages/PostPage/RelatedPostList/index.d.ts +1 -0
- package/dist/pages/PostPage/index.d.ts +1 -0
- package/dist/pages/SearchPage/SearchPage.d.ts +12 -0
- package/dist/pages/SearchPage/index.d.ts +1 -0
- package/dist/pages/index.d.ts +6 -0
- package/dist/scss/abstracts/functions/_get-cdn-assets-file.scss +9 -0
- package/dist/scss/abstracts/functions/_index.scss +1 -0
- package/dist/scss/abstracts/variables/_token-variables.scss +3 -2
- package/dist/scss/abstracts/variables/_variables.scss +5 -3
- package/dist/style.css +1 -1
- package/dist/svgs/arrow.svg +1 -0
- package/dist/templates/LayoutContentWithSidebar/LayoutContentWithSidebar.d.ts +7 -0
- package/dist/templates/LayoutContentWithSidebar/index.d.ts +1 -0
- package/dist/templates/LayoutTemplate/LayoutTemplate.d.ts +8 -0
- package/dist/templates/LayoutTemplate/index.d.ts +1 -0
- package/dist/templates/index.d.ts +1 -0
- package/dist/types/SystemProps/ColorSystemProps.d.ts +1 -1
- package/dist/types/SystemProps/SystemProps.d.ts +7 -2
- package/package.json +14 -9
- package/dist/components/Atoms/Svgs/ArrowBack.d.ts +0 -4
- package/dist/components/Atoms/Svgs/Close.d.ts +0 -4
- package/dist/components/Atoms/Svgs/Tuto.d.ts +0 -4
- package/dist/svgs/arrow-back.svg +0 -1
- package/dist/svgs/close.svg +0 -1
- package/dist/svgs/tuto.svg +0 -1
- /package/dist/components/{Atoms/Layout → Layout}/Box/index.d.ts +0 -0
- /package/dist/components/{Atoms/Layout → Layout}/Flex/index.d.ts +0 -0
- /package/dist/components/{Atoms/Layout → Layout}/index.d.ts +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { NewsletterCardProps } from '../../components/Molecules/Cards/NewsletterCard';
|
|
3
|
+
export type SocialNetworkName = 'github' | 'twitter' | 'linkedin';
|
|
4
|
+
export type AuthorPageProps = {
|
|
5
|
+
author: {
|
|
6
|
+
username: string;
|
|
7
|
+
name: string;
|
|
8
|
+
avatarImageUrl?: string;
|
|
9
|
+
content: string;
|
|
10
|
+
socialNetworks?: {
|
|
11
|
+
name: SocialNetworkName;
|
|
12
|
+
url: string;
|
|
13
|
+
username: string;
|
|
14
|
+
}[];
|
|
15
|
+
};
|
|
16
|
+
emptyAvatarImageUrl: string;
|
|
17
|
+
title: React.ReactNode;
|
|
18
|
+
postCardList: React.ReactNode;
|
|
19
|
+
newsletterCard: NewsletterCardProps;
|
|
20
|
+
};
|
|
21
|
+
export declare const AuthorPage: React.FC<AuthorPageProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AuthorPage';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CategoryEndingBlockProps, CategoryIntroBlockProps } from '../../components';
|
|
3
|
+
import type { NewsletterCardProps } from '../../components/Molecules/Cards/NewsletterCard';
|
|
4
|
+
export type CategoryPageProps = {
|
|
5
|
+
categoryIntroBlock: CategoryIntroBlockProps;
|
|
6
|
+
categoryEndingBlock: CategoryEndingBlockProps;
|
|
7
|
+
title: React.ReactNode;
|
|
8
|
+
postCardList: React.ReactNode;
|
|
9
|
+
newsletterCard: NewsletterCardProps;
|
|
10
|
+
};
|
|
11
|
+
export declare const CategoryPage: React.FC<CategoryPageProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CategoryPage';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HomeIntroBlockProps } from '../../components';
|
|
3
|
+
import { type NewsletterCardProps } from '../../components/Molecules/Cards/NewsletterCard';
|
|
4
|
+
export type HomePageProps = {
|
|
5
|
+
homeIntroBlock: HomeIntroBlockProps;
|
|
6
|
+
title: React.ReactNode;
|
|
7
|
+
postCardList: React.ReactNode;
|
|
8
|
+
newsletterCard: NewsletterCardProps;
|
|
9
|
+
};
|
|
10
|
+
export declare const HomePage: React.FC<HomePageProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './HomePage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './NotFoundPage';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AuthorCardProps, BoxProps } from '../../../components';
|
|
3
|
+
export interface PostFooterProps extends BoxProps {
|
|
4
|
+
title: React.ReactNode;
|
|
5
|
+
authors: AuthorCardProps[];
|
|
6
|
+
}
|
|
7
|
+
export declare const PostFooter: React.FC<PostFooterProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PostFooter';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ShareLinksProps } from '../../../components/Molecules/ShareLinks';
|
|
3
|
+
export interface PostHeaderProps {
|
|
4
|
+
title: React.ReactNode;
|
|
5
|
+
date: string;
|
|
6
|
+
readingTime: number;
|
|
7
|
+
authors: {
|
|
8
|
+
username: string;
|
|
9
|
+
name: string;
|
|
10
|
+
link: React.ComponentPropsWithoutRef<'a'>;
|
|
11
|
+
}[];
|
|
12
|
+
shareLinks: ShareLinksProps;
|
|
13
|
+
}
|
|
14
|
+
export declare const PostHeader: React.FC<PostHeaderProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PostHeader';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ContactCardProps, SummaryCardProps } from '../../components';
|
|
3
|
+
import type { PostFooterProps } from './PostFooter';
|
|
4
|
+
import type { PostHeaderProps } from './PostHeader';
|
|
5
|
+
import type { RelatedPostListProps } from './RelatedPostList';
|
|
6
|
+
export declare const postPageVariant: readonly ["article", "tutorial"];
|
|
7
|
+
export type PostPageVariantType = (typeof postPageVariant)[number];
|
|
8
|
+
export interface PostPageProps {
|
|
9
|
+
variant: PostPageVariantType;
|
|
10
|
+
header: Omit<PostHeaderProps, 'contentType'>;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
footer: PostFooterProps;
|
|
13
|
+
contactCard: ContactCardProps;
|
|
14
|
+
relatedPostList: RelatedPostListProps;
|
|
15
|
+
summary: SummaryCardProps;
|
|
16
|
+
previousLink?: {
|
|
17
|
+
label: string;
|
|
18
|
+
} & React.ComponentPropsWithoutRef<'a'>;
|
|
19
|
+
nextLink?: {
|
|
20
|
+
label: string;
|
|
21
|
+
} & React.ComponentPropsWithoutRef<'a'>;
|
|
22
|
+
}
|
|
23
|
+
export declare const PostPage: React.FC<PostPageProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { BoxProps, PostCardProps } from '../../../components';
|
|
3
|
+
export interface RelatedPostListProps extends BoxProps {
|
|
4
|
+
relatedPostListTitle: string;
|
|
5
|
+
posts: PostCardProps[];
|
|
6
|
+
}
|
|
7
|
+
export declare const RelatedPostList: React.FC<RelatedPostListProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './RelatedPostList';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PostPage';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { NotFoundBlockProps } from '../../components';
|
|
3
|
+
import { type NewsletterCardProps } from '../../components/Molecules/Cards/NewsletterCard';
|
|
4
|
+
export type SearchPageProps = {
|
|
5
|
+
title: React.ReactNode;
|
|
6
|
+
description: React.ReactNode;
|
|
7
|
+
postCardList: React.ReactNode;
|
|
8
|
+
newsletterCard: NewsletterCardProps;
|
|
9
|
+
searchNotFound?: NotFoundBlockProps;
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare const SearchPage: React.FC<SearchPageProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SearchPage';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Mon, 08 Jan 2024 16:40:16 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
$token-variables: (
|
|
@@ -125,7 +125,8 @@ $token-variables: (
|
|
|
125
125
|
'color': (
|
|
126
126
|
'primary': (
|
|
127
127
|
'azure': var(--color-azure),
|
|
128
|
-
'navy': var(--color-navy)
|
|
128
|
+
'navy': var(--color-navy),
|
|
129
|
+
'seashell': var(--color-seashell)
|
|
129
130
|
),
|
|
130
131
|
'secondary': (
|
|
131
132
|
'lavender': var(--color-lavender),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* Do not edit directly
|
|
4
|
-
* Generated on
|
|
4
|
+
* Generated on Mon, 08 Jan 2024 16:40:16 GMT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
$white: #FFFFFF !default;
|
|
@@ -11,9 +11,10 @@ $dark-grey: #757575 !default;
|
|
|
11
11
|
$grey: #9B9B9B !default;
|
|
12
12
|
$light-grey: #C4C4C4 !default;
|
|
13
13
|
$ultra-light-grey: #EDEDED !default;
|
|
14
|
-
$yellow: #
|
|
14
|
+
$yellow: #F8FA9B !default;
|
|
15
15
|
$amaranth: #DD3156 !default;
|
|
16
16
|
$lavender: #E1EAF9 !default;
|
|
17
|
+
$seashell: #e9f1f8 !default;
|
|
17
18
|
$navy: #224579 !default;
|
|
18
19
|
$azure: #3767B6 !default;
|
|
19
20
|
|
|
@@ -21,7 +22,8 @@ $variables: (
|
|
|
21
22
|
'color': (
|
|
22
23
|
'primary': (
|
|
23
24
|
'azure': $azure,
|
|
24
|
-
'navy': $navy
|
|
25
|
+
'navy': $navy,
|
|
26
|
+
'seashell': $seashell
|
|
25
27
|
),
|
|
26
28
|
'secondary': (
|
|
27
29
|
'lavender': $lavender,
|