@eleven-labs/design-system 0.20.0 → 0.21.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/index.es.js +2131 -2029
- package/dist/index.umd.cjs +15 -15
- 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 -0
- package/dist/scss/abstracts/functions/_map-get-strict.scss +9 -0
- package/dist/scss/abstracts/variables/_token-variables.scss +22 -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
|
@@ -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,13 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Tue, 16 Jan 2024 16:30:14 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
$token-variables: (
|
|
7
|
-
'cdn-path': "
|
|
7
|
+
'cdn-path': "/",
|
|
8
8
|
'font-family': (
|
|
9
9
|
'base': var(--font-family-base),
|
|
10
|
-
'
|
|
10
|
+
'heading': var(--font-family-heading),
|
|
11
|
+
'blockquote': var(--font-family-blockquote)
|
|
11
12
|
),
|
|
12
13
|
'font-size': (
|
|
13
14
|
'xxs': var(--font-size-xxs),
|
|
@@ -23,11 +24,13 @@ $token-variables: (
|
|
|
23
24
|
'font-weight': (
|
|
24
25
|
'regular': var(--font-weight-regular),
|
|
25
26
|
'medium': var(--font-weight-medium),
|
|
27
|
+
'semi-bold': var(--font-weight-semi-bold),
|
|
26
28
|
'bold': var(--font-weight-bold)
|
|
27
29
|
),
|
|
28
30
|
'typography': (
|
|
29
31
|
'heading': (
|
|
30
32
|
'base': (
|
|
33
|
+
'font-family': var(--typography-heading-base-font-family),
|
|
31
34
|
'line-height': var(--typography-heading-base-line-height),
|
|
32
35
|
'font-weight': var(--typography-heading-base-font-weight)
|
|
33
36
|
),
|
|
@@ -123,25 +126,20 @@ $token-variables: (
|
|
|
123
126
|
'lg': 1201
|
|
124
127
|
),
|
|
125
128
|
'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
|
-
)
|
|
129
|
+
'primary': var(--color-primary),
|
|
130
|
+
'primary-dark': var(--color-primary-dark),
|
|
131
|
+
'primary-very-dark': var(--color-primary-very-dark),
|
|
132
|
+
'secondary': var(--color-secondary),
|
|
133
|
+
'secondary-dark': var(--color-secondary-dark),
|
|
134
|
+
'info': var(--color-info),
|
|
135
|
+
'accent': var(--color-accent),
|
|
136
|
+
'ultra-light-grey': var(--color-ultra-light-grey),
|
|
137
|
+
'light-grey': var(--color-light-grey),
|
|
138
|
+
'grey': var(--color-grey),
|
|
139
|
+
'dark-grey': var(--color-dark-grey),
|
|
140
|
+
'ultra-dark-grey': var(--color-ultra-dark-grey),
|
|
141
|
+
'black': var(--color-black),
|
|
142
|
+
'white': var(--color-white)
|
|
145
143
|
),
|
|
146
144
|
'height': (
|
|
147
145
|
'full': var(--height-full),
|
|
@@ -163,6 +161,7 @@ $token-variables: (
|
|
|
163
161
|
),
|
|
164
162
|
'width': (
|
|
165
163
|
'full': var(--width-full),
|
|
166
|
-
'screen': var(--width-screen)
|
|
164
|
+
'screen': var(--width-screen),
|
|
165
|
+
'content-container': var(--width-content-container)
|
|
167
166
|
)
|
|
168
167
|
)
|
|
@@ -1,43 +1,39 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* Do not edit directly
|
|
4
|
-
* Generated on
|
|
4
|
+
* Generated on Tue, 16 Jan 2024 16:30:14 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
|
);
|