@eleven-labs/design-system 0.20.0 → 0.22.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 +2 -2
- package/dist/components/Atoms/Breadcrumb/Breadcrumb.d.ts +8 -0
- package/dist/components/Atoms/Breadcrumb/index.d.ts +1 -0
- package/dist/components/Atoms/BurgerButton/BurgerButton.d.ts +2 -1
- package/dist/components/Atoms/CloseButton/CloseButton.d.ts +2 -1
- package/dist/components/Atoms/Divider/Divider.d.ts +2 -2
- package/dist/components/Atoms/Icon/Icon.d.ts +2 -0
- package/dist/components/Atoms/Svgs/Underline.d.ts +4 -0
- package/dist/components/Atoms/Svgs/index.d.ts +1 -0
- package/dist/components/Atoms/index.d.ts +1 -0
- package/dist/components/Molecules/Blocks/CategoryEndingBlock/CategoryEndingBlock.d.ts +2 -1
- package/dist/components/Molecules/Blocks/CategoryIntroBlock/CategoryIntroBlock.d.ts +2 -5
- package/dist/components/Molecules/Blocks/HomeIntroBlock/HomeIntroBlock.d.ts +2 -1
- package/dist/components/Molecules/Cards/AuthorCard/AuthorCard.d.ts +4 -1
- package/dist/components/Molecules/Cards/ContactCard/ContactCard.d.ts +2 -1
- package/dist/components/Molecules/Cards/NewsletterCard/NewsletterCard.d.ts +3 -0
- package/dist/components/Molecules/Cards/PostCard/PostCard.d.ts +5 -1
- package/dist/components/Molecules/Cards/SummaryCard/SummaryCard.d.ts +2 -1
- package/dist/components/Molecules/Pagination/Pagination.d.ts +2 -2
- package/dist/components/Molecules/PostMetadata/PostMetadata.d.ts +2 -2
- package/dist/components/Organisms/Autocomplete/AutocompleteResult/AutocompleteResult.d.ts +4 -3
- package/dist/components/Organisms/Blocks/LastArticlesBlock/LastArticlesBlock.d.ts +11 -0
- package/dist/components/Organisms/Blocks/LastTutorialsBlock/LastTutorialsBlock.d.ts +13 -0
- package/dist/components/Organisms/Footer/Footer.d.ts +5 -5
- package/dist/components/Organisms/Header/Header.d.ts +5 -4
- package/dist/constants/tokenNameList.d.ts +4 -5
- package/dist/constants/tokenVariables.d.ts +62 -62
- package/dist/imgs/category-intro-block-desktop.jpg +0 -0
- package/dist/imgs/category-intro-block-mobile.jpg +0 -0
- package/dist/index.es.js +2073 -1974
- package/dist/index.umd.cjs +16 -16
- package/dist/pages/HomePage/HomePage.d.ts +4 -2
- package/dist/pages/PostPage/PostHeader/PostHeader.d.ts +4 -2
- package/dist/pages/PostPage/PostPage.d.ts +5 -3
- package/dist/scss/abstracts/functions/_index.scss +1 -1
- package/dist/scss/abstracts/functions/_map-get-strict.scss +9 -0
- package/dist/scss/abstracts/variables/_token-variables.scss +21 -23
- package/dist/scss/abstracts/variables/_variables.scss +24 -28
- package/dist/style.css +1 -1
- package/dist/svgs/underline.svg +1 -0
- package/dist/templates/LayoutContentWithSidebar/LayoutContentWithSidebar.d.ts +2 -2
- package/dist/templates/LayoutTemplate/LayoutTemplate.d.ts +2 -2
- package/dist/types/ComponentPropsWithoutRef.d.ts +3 -0
- package/dist/types/SystemProps/ColorSystemProps.d.ts +1 -1
- package/dist/types/SystemProps/SpacingSystemProps.d.ts +7 -7
- package/dist/types/index.d.ts +1 -0
- package/dist/types/tokenTypes.d.ts +1 -1
- package/package.json +1 -2
- package/dist/fonts/WorkSans-Bold.woff +0 -0
- package/dist/fonts/WorkSans-Bold.woff2 +0 -0
- package/dist/fonts/WorkSans-Medium.woff +0 -0
- package/dist/fonts/WorkSans-Medium.woff2 +0 -0
- package/dist/fonts/WorkSans-Regular.woff +0 -0
- package/dist/fonts/WorkSans-Regular.woff2 +0 -0
- package/dist/helpers/getCdnAssetsFile.d.ts +0 -1
- package/dist/imgs/category-intro-block-desktop.png +0 -0
- package/dist/imgs/category-intro-block-mobile.png +0 -0
- package/dist/scss/abstracts/functions/_get-cdn-assets-file.scss +0 -9
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { HomeIntroBlockProps } from '../../components';
|
|
3
3
|
import { type NewsletterCardProps } from '../../components/Molecules/Cards/NewsletterCard';
|
|
4
|
+
import type { LastArticlesBlockProps } from '../../components/Organisms/Blocks/LastArticlesBlock/LastArticlesBlock';
|
|
5
|
+
import type { LastTutorialsBlockProps } from '../../components/Organisms/Blocks/LastTutorialsBlock/LastTutorialsBlock';
|
|
4
6
|
export type HomePageProps = {
|
|
5
7
|
homeIntroBlock: HomeIntroBlockProps;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
lastArticlesBlock: LastArticlesBlockProps;
|
|
9
|
+
lastTutorialsBlock: LastTutorialsBlockProps;
|
|
8
10
|
newsletterCard: NewsletterCardProps;
|
|
9
11
|
};
|
|
10
12
|
export declare const HomePage: React.FC<HomePageProps>;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { BoxProps } from '../../../components';
|
|
2
3
|
import { type ShareLinksProps } from '../../../components/Molecules/ShareLinks';
|
|
3
|
-
|
|
4
|
+
import type { ComponentPropsWithoutRef } from '../../../types';
|
|
5
|
+
export interface PostHeaderProps extends BoxProps {
|
|
4
6
|
title: React.ReactNode;
|
|
5
7
|
date: string;
|
|
6
8
|
readingTime: number;
|
|
7
9
|
authors: {
|
|
8
10
|
username: string;
|
|
9
11
|
name: string;
|
|
10
|
-
link:
|
|
12
|
+
link: ComponentPropsWithoutRef<'a'>;
|
|
11
13
|
}[];
|
|
12
14
|
shareLinks: ShareLinksProps;
|
|
13
15
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ContactCardProps, SummaryCardProps } from '../../components';
|
|
2
|
+
import type { BreadcrumbProps, ContactCardProps, SummaryCardProps } from '../../components';
|
|
3
|
+
import type { ComponentPropsWithoutRef } from '../../types';
|
|
3
4
|
import type { PostFooterProps } from './PostFooter';
|
|
4
5
|
import type { PostHeaderProps } from './PostHeader';
|
|
5
6
|
import type { RelatedPostListProps } from './RelatedPostList';
|
|
@@ -7,6 +8,7 @@ export declare const postPageVariant: readonly ["article", "tutorial"];
|
|
|
7
8
|
export type PostPageVariantType = (typeof postPageVariant)[number];
|
|
8
9
|
export interface PostPageProps {
|
|
9
10
|
variant: PostPageVariantType;
|
|
11
|
+
breadcrumb: BreadcrumbProps;
|
|
10
12
|
header: Omit<PostHeaderProps, 'contentType'>;
|
|
11
13
|
children: React.ReactNode;
|
|
12
14
|
footer: PostFooterProps;
|
|
@@ -15,9 +17,9 @@ export interface PostPageProps {
|
|
|
15
17
|
summary: SummaryCardProps;
|
|
16
18
|
previousLink?: {
|
|
17
19
|
label: string;
|
|
18
|
-
} &
|
|
20
|
+
} & ComponentPropsWithoutRef<'a'>;
|
|
19
21
|
nextLink?: {
|
|
20
22
|
label: string;
|
|
21
|
-
} &
|
|
23
|
+
} & ComponentPropsWithoutRef<'a'>;
|
|
22
24
|
}
|
|
23
25
|
export declare const PostPage: React.FC<PostPageProps>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
@forward 'list';
|
|
2
|
-
@forward 'get-
|
|
2
|
+
@forward 'map-get-strict';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Wed, 17 Jan 2024 08:04:41 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
$token-variables: (
|
|
7
|
-
'cdn-path': "https://eleven-labs.github.io/design-system/",
|
|
8
7
|
'font-family': (
|
|
9
8
|
'base': var(--font-family-base),
|
|
10
|
-
'
|
|
9
|
+
'heading': var(--font-family-heading),
|
|
10
|
+
'blockquote': var(--font-family-blockquote)
|
|
11
11
|
),
|
|
12
12
|
'font-size': (
|
|
13
13
|
'xxs': var(--font-size-xxs),
|
|
@@ -23,11 +23,13 @@ $token-variables: (
|
|
|
23
23
|
'font-weight': (
|
|
24
24
|
'regular': var(--font-weight-regular),
|
|
25
25
|
'medium': var(--font-weight-medium),
|
|
26
|
+
'semi-bold': var(--font-weight-semi-bold),
|
|
26
27
|
'bold': var(--font-weight-bold)
|
|
27
28
|
),
|
|
28
29
|
'typography': (
|
|
29
30
|
'heading': (
|
|
30
31
|
'base': (
|
|
32
|
+
'font-family': var(--typography-heading-base-font-family),
|
|
31
33
|
'line-height': var(--typography-heading-base-line-height),
|
|
32
34
|
'font-weight': var(--typography-heading-base-font-weight)
|
|
33
35
|
),
|
|
@@ -123,25 +125,20 @@ $token-variables: (
|
|
|
123
125
|
'lg': 1201
|
|
124
126
|
),
|
|
125
127
|
'color': (
|
|
126
|
-
'primary': (
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
),
|
|
131
|
-
'
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
),
|
|
136
|
-
'
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
'dark-grey': var(--color-dark-grey),
|
|
141
|
-
'ultra-dark-grey': var(--color-ultra-dark-grey),
|
|
142
|
-
'black': var(--color-black),
|
|
143
|
-
'white': var(--color-white)
|
|
144
|
-
)
|
|
128
|
+
'primary': var(--color-primary),
|
|
129
|
+
'primary-dark': var(--color-primary-dark),
|
|
130
|
+
'primary-very-dark': var(--color-primary-very-dark),
|
|
131
|
+
'secondary': var(--color-secondary),
|
|
132
|
+
'secondary-dark': var(--color-secondary-dark),
|
|
133
|
+
'info': var(--color-info),
|
|
134
|
+
'accent': var(--color-accent),
|
|
135
|
+
'ultra-light-grey': var(--color-ultra-light-grey),
|
|
136
|
+
'light-grey': var(--color-light-grey),
|
|
137
|
+
'grey': var(--color-grey),
|
|
138
|
+
'dark-grey': var(--color-dark-grey),
|
|
139
|
+
'ultra-dark-grey': var(--color-ultra-dark-grey),
|
|
140
|
+
'black': var(--color-black),
|
|
141
|
+
'white': var(--color-white)
|
|
145
142
|
),
|
|
146
143
|
'height': (
|
|
147
144
|
'full': var(--height-full),
|
|
@@ -163,6 +160,7 @@ $token-variables: (
|
|
|
163
160
|
),
|
|
164
161
|
'width': (
|
|
165
162
|
'full': var(--width-full),
|
|
166
|
-
'screen': var(--width-screen)
|
|
163
|
+
'screen': var(--width-screen),
|
|
164
|
+
'content-container': var(--width-content-container)
|
|
167
165
|
)
|
|
168
166
|
)
|
|
@@ -1,43 +1,39 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* Do not edit directly
|
|
4
|
-
* Generated on
|
|
4
|
+
* Generated on Wed, 17 Jan 2024 08:04:41 GMT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
$white: #
|
|
8
|
-
$black: #
|
|
7
|
+
$white: #FFF !default;
|
|
8
|
+
$black: #000 !default;
|
|
9
9
|
$ultra-dark-grey: #333333 !default;
|
|
10
10
|
$dark-grey: #757575 !default;
|
|
11
11
|
$grey: #9B9B9B !default;
|
|
12
12
|
$light-grey: #C4C4C4 !default;
|
|
13
13
|
$ultra-light-grey: #EDEDED !default;
|
|
14
|
-
$
|
|
15
|
-
$
|
|
16
|
-
$
|
|
17
|
-
$
|
|
18
|
-
$
|
|
19
|
-
$
|
|
14
|
+
$accent: #F8FA9B !default; // A distinct accent color for content.
|
|
15
|
+
$info: #DD3156 !default; // Used to provide additional information to the user without conveying any particular level of importance.
|
|
16
|
+
$secondary-dark: #C5D3E9 !default;
|
|
17
|
+
$secondary: #E9F1F8 !default;
|
|
18
|
+
$primary-very-dark: #093670 !default;
|
|
19
|
+
$primary-dark: #194180 !default;
|
|
20
|
+
$primary: #0A4084 !default;
|
|
20
21
|
|
|
21
22
|
$variables: (
|
|
22
23
|
'color': (
|
|
23
|
-
'primary':
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
'
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
'
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
'dark-grey': $dark-grey,
|
|
38
|
-
'ultra-dark-grey': $ultra-dark-grey,
|
|
39
|
-
'black': $black,
|
|
40
|
-
'white': $white
|
|
41
|
-
)
|
|
24
|
+
'primary': $primary,
|
|
25
|
+
'primary-dark': $primary-dark,
|
|
26
|
+
'primary-very-dark': $primary-very-dark,
|
|
27
|
+
'secondary': $secondary,
|
|
28
|
+
'secondary-dark': $secondary-dark,
|
|
29
|
+
'info': $info,
|
|
30
|
+
'accent': $accent,
|
|
31
|
+
'ultra-light-grey': $ultra-light-grey,
|
|
32
|
+
'light-grey': $light-grey,
|
|
33
|
+
'grey': $grey,
|
|
34
|
+
'dark-grey': $dark-grey,
|
|
35
|
+
'ultra-dark-grey': $ultra-dark-grey,
|
|
36
|
+
'black': $black,
|
|
37
|
+
'white': $white
|
|
42
38
|
)
|
|
43
39
|
);
|