@eleven-labs/design-system 0.10.3 → 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 +3 -3
- 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 +6 -0
- package/dist/components/Atoms/BurgerButton/index.d.ts +1 -0
- package/dist/components/Atoms/CloseButton/CloseButton.d.ts +9 -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/Icon/Icon.d.ts +2 -0
- package/dist/components/Atoms/Svgs/Arrow.d.ts +4 -0
- package/dist/components/Atoms/Svgs/Underline.d.ts +4 -0
- package/dist/components/Atoms/Svgs/index.d.ts +2 -3
- package/dist/components/Atoms/index.d.ts +4 -1
- package/dist/components/{Atoms/Layout → Layout}/Box/Box.d.ts +1 -1
- package/dist/components/{Atoms/Layout → Layout}/Flex/Flex.d.ts +2 -2
- package/dist/components/Molecules/Blocks/CategoryEndingBlock/CategoryEndingBlock.d.ts +11 -0
- package/dist/components/Molecules/Blocks/CategoryEndingBlock/index.d.ts +1 -0
- package/dist/components/Molecules/Blocks/CategoryIntroBlock/CategoryIntroBlock.d.ts +8 -0
- package/dist/components/Molecules/Blocks/CategoryIntroBlock/index.d.ts +1 -0
- package/dist/components/Molecules/Blocks/HomeIntroBlock/HomeIntroBlock.d.ts +11 -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 +12 -0
- package/dist/components/Molecules/Cards/AuthorCard/index.d.ts +1 -0
- package/dist/components/Molecules/Cards/ContactCard/ContactCard.d.ts +12 -0
- package/dist/components/Molecules/Cards/ContactCard/index.d.ts +1 -0
- package/dist/components/Molecules/Cards/NewsletterCard/NewsletterCard.d.ts +11 -0
- package/dist/components/Molecules/Cards/NewsletterCard/index.d.ts +1 -0
- package/dist/components/Molecules/Cards/PostCard/PostCard.d.ts +22 -0
- package/dist/components/Molecules/Cards/PostCard/index.d.ts +1 -0
- package/dist/components/Molecules/Cards/SummaryCard/SummaryCard.d.ts +15 -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/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 +28 -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/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 +24 -0
- package/dist/components/Organisms/Footer/index.d.ts +1 -0
- package/dist/components/Organisms/Header/Header.d.ts +20 -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 +4 -5
- package/dist/constants/tokenVariables.d.ts +63 -69
- package/dist/helpers/getCdnAssetsFile.d.ts +1 -0
- 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 +6227 -1900
- 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 +12 -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 +16 -0
- package/dist/pages/PostPage/PostHeader/index.d.ts +1 -0
- package/dist/pages/PostPage/PostPage.d.ts +25 -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 +2 -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/arrow.svg +1 -0
- package/dist/svgs/underline.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/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 +13 -8
- 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/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/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
|
@@ -1,42 +1,16 @@
|
|
|
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
|
export declare const tokenVariables: {
|
|
6
6
|
asset: {
|
|
7
|
-
font: {
|
|
8
|
-
'WorkSans-Regular': {
|
|
9
|
-
value: string;
|
|
10
|
-
family: string;
|
|
11
|
-
weight: string;
|
|
12
|
-
extensions: string[];
|
|
13
|
-
};
|
|
14
|
-
'WorkSans-Medium': {
|
|
15
|
-
value: string;
|
|
16
|
-
family: string;
|
|
17
|
-
weight: string;
|
|
18
|
-
extensions: string[];
|
|
19
|
-
};
|
|
20
|
-
'WorkSans-Bold': {
|
|
21
|
-
value: string;
|
|
22
|
-
family: string;
|
|
23
|
-
weight: string;
|
|
24
|
-
extensions: string[];
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
7
|
icon: {
|
|
28
8
|
'access-time': {
|
|
29
9
|
value: string;
|
|
30
10
|
};
|
|
31
|
-
'arrow-back': {
|
|
32
|
-
value: string;
|
|
33
|
-
};
|
|
34
11
|
calendar: {
|
|
35
12
|
value: string;
|
|
36
13
|
};
|
|
37
|
-
close: {
|
|
38
|
-
value: string;
|
|
39
|
-
};
|
|
40
14
|
facebook: {
|
|
41
15
|
value: string;
|
|
42
16
|
};
|
|
@@ -70,7 +44,10 @@ export declare const tokenVariables: {
|
|
|
70
44
|
github: {
|
|
71
45
|
value: string;
|
|
72
46
|
};
|
|
73
|
-
|
|
47
|
+
arrow: {
|
|
48
|
+
value: string;
|
|
49
|
+
};
|
|
50
|
+
underline: {
|
|
74
51
|
value: string;
|
|
75
52
|
};
|
|
76
53
|
};
|
|
@@ -78,9 +55,18 @@ export declare const tokenVariables: {
|
|
|
78
55
|
'font-family': {
|
|
79
56
|
base: {
|
|
80
57
|
value: string;
|
|
58
|
+
name: string;
|
|
59
|
+
weights: string[];
|
|
81
60
|
};
|
|
82
|
-
|
|
61
|
+
heading: {
|
|
83
62
|
value: string;
|
|
63
|
+
name: string;
|
|
64
|
+
weights: string[];
|
|
65
|
+
};
|
|
66
|
+
blockquote: {
|
|
67
|
+
value: string;
|
|
68
|
+
name: string;
|
|
69
|
+
weights: string[];
|
|
84
70
|
};
|
|
85
71
|
};
|
|
86
72
|
'font-size': {
|
|
@@ -119,6 +105,9 @@ export declare const tokenVariables: {
|
|
|
119
105
|
medium: {
|
|
120
106
|
value: string;
|
|
121
107
|
};
|
|
108
|
+
'semi-bold': {
|
|
109
|
+
value: string;
|
|
110
|
+
};
|
|
122
111
|
bold: {
|
|
123
112
|
value: string;
|
|
124
113
|
};
|
|
@@ -126,6 +115,9 @@ export declare const tokenVariables: {
|
|
|
126
115
|
typography: {
|
|
127
116
|
heading: {
|
|
128
117
|
base: {
|
|
118
|
+
'font-family': {
|
|
119
|
+
value: string;
|
|
120
|
+
};
|
|
129
121
|
'line-height': {
|
|
130
122
|
value: string;
|
|
131
123
|
};
|
|
@@ -292,49 +284,48 @@ export declare const tokenVariables: {
|
|
|
292
284
|
};
|
|
293
285
|
color: {
|
|
294
286
|
primary: {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
value: string;
|
|
303
|
-
};
|
|
287
|
+
value: string;
|
|
288
|
+
};
|
|
289
|
+
'primary-dark': {
|
|
290
|
+
value: string;
|
|
291
|
+
};
|
|
292
|
+
'primary-very-dark': {
|
|
293
|
+
value: string;
|
|
304
294
|
};
|
|
305
295
|
secondary: {
|
|
306
|
-
|
|
307
|
-
value: string;
|
|
308
|
-
};
|
|
309
|
-
amaranth: {
|
|
310
|
-
value: string;
|
|
311
|
-
};
|
|
312
|
-
yellow: {
|
|
313
|
-
value: string;
|
|
314
|
-
};
|
|
296
|
+
value: string;
|
|
315
297
|
};
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
298
|
+
'secondary-dark': {
|
|
299
|
+
value: string;
|
|
300
|
+
};
|
|
301
|
+
info: {
|
|
302
|
+
value: string;
|
|
303
|
+
description: string;
|
|
304
|
+
};
|
|
305
|
+
accent: {
|
|
306
|
+
value: string;
|
|
307
|
+
description: string;
|
|
308
|
+
};
|
|
309
|
+
'ultra-light-grey': {
|
|
310
|
+
value: string;
|
|
311
|
+
};
|
|
312
|
+
'light-grey': {
|
|
313
|
+
value: string;
|
|
314
|
+
};
|
|
315
|
+
grey: {
|
|
316
|
+
value: string;
|
|
317
|
+
};
|
|
318
|
+
'dark-grey': {
|
|
319
|
+
value: string;
|
|
320
|
+
};
|
|
321
|
+
'ultra-dark-grey': {
|
|
322
|
+
value: string;
|
|
323
|
+
};
|
|
324
|
+
black: {
|
|
325
|
+
value: string;
|
|
326
|
+
};
|
|
327
|
+
white: {
|
|
328
|
+
value: string;
|
|
338
329
|
};
|
|
339
330
|
};
|
|
340
331
|
height: {
|
|
@@ -390,5 +381,8 @@ export declare const tokenVariables: {
|
|
|
390
381
|
screen: {
|
|
391
382
|
value: string;
|
|
392
383
|
};
|
|
384
|
+
'content-container': {
|
|
385
|
+
value: string;
|
|
386
|
+
};
|
|
393
387
|
};
|
|
394
388
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getCdnAssetsFile: (path: string) => string;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
export type Content = React.RefObject<HTMLElement | HTMLInputElement> | number | string;
|
|
3
|
+
export type Timeout = number;
|
|
4
|
+
export type useCopyTextReturn = [() => void, boolean];
|
|
5
|
+
export declare function useCopyText(content: Content, timeout: Timeout): useCopyTextReturn;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const DOTS = -1;
|
|
2
|
+
interface UsePaginationOptions {
|
|
3
|
+
currentPage: number;
|
|
4
|
+
totalPages: number;
|
|
5
|
+
siblingCount?: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const usePagination: ({ currentPage, totalPages, siblingCount }: UsePaginationOptions) => number[];
|
|
8
|
+
export {};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|