@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.
Files changed (125) hide show
  1. package/dist/components/Atoms/Blockquote/Blockquote.d.ts +3 -3
  2. package/dist/components/Atoms/Breadcrumb/Breadcrumb.d.ts +8 -0
  3. package/dist/components/Atoms/Breadcrumb/index.d.ts +1 -0
  4. package/dist/components/Atoms/BurgerButton/BurgerButton.d.ts +6 -0
  5. package/dist/components/Atoms/BurgerButton/index.d.ts +1 -0
  6. package/dist/components/Atoms/CloseButton/CloseButton.d.ts +9 -0
  7. package/dist/components/Atoms/CloseButton/index.d.ts +1 -0
  8. package/dist/components/Atoms/Divider/Divider.d.ts +5 -0
  9. package/dist/components/Atoms/Divider/index.d.ts +1 -0
  10. package/dist/components/Atoms/Icon/Icon.d.ts +2 -0
  11. package/dist/components/Atoms/Svgs/Arrow.d.ts +4 -0
  12. package/dist/components/Atoms/Svgs/Underline.d.ts +4 -0
  13. package/dist/components/Atoms/Svgs/index.d.ts +2 -3
  14. package/dist/components/Atoms/index.d.ts +4 -1
  15. package/dist/components/{Atoms/Layout → Layout}/Box/Box.d.ts +1 -1
  16. package/dist/components/{Atoms/Layout → Layout}/Flex/Flex.d.ts +2 -2
  17. package/dist/components/Molecules/Blocks/CategoryEndingBlock/CategoryEndingBlock.d.ts +11 -0
  18. package/dist/components/Molecules/Blocks/CategoryEndingBlock/index.d.ts +1 -0
  19. package/dist/components/Molecules/Blocks/CategoryIntroBlock/CategoryIntroBlock.d.ts +8 -0
  20. package/dist/components/Molecules/Blocks/CategoryIntroBlock/index.d.ts +1 -0
  21. package/dist/components/Molecules/Blocks/HomeIntroBlock/HomeIntroBlock.d.ts +11 -0
  22. package/dist/components/Molecules/Blocks/HomeIntroBlock/index.d.ts +1 -0
  23. package/dist/components/Molecules/Blocks/NotFoundBlock/NotFoundBlock.d.ts +8 -0
  24. package/dist/components/Molecules/Blocks/NotFoundBlock/index.d.ts +1 -0
  25. package/dist/components/Molecules/Blocks/index.d.ts +4 -0
  26. package/dist/components/Molecules/Cards/AuthorCard/AuthorCard.d.ts +12 -0
  27. package/dist/components/Molecules/Cards/AuthorCard/index.d.ts +1 -0
  28. package/dist/components/Molecules/Cards/ContactCard/ContactCard.d.ts +12 -0
  29. package/dist/components/Molecules/Cards/ContactCard/index.d.ts +1 -0
  30. package/dist/components/Molecules/Cards/NewsletterCard/NewsletterCard.d.ts +11 -0
  31. package/dist/components/Molecules/Cards/NewsletterCard/index.d.ts +1 -0
  32. package/dist/components/Molecules/Cards/PostCard/PostCard.d.ts +22 -0
  33. package/dist/components/Molecules/Cards/PostCard/index.d.ts +1 -0
  34. package/dist/components/Molecules/Cards/SummaryCard/SummaryCard.d.ts +15 -0
  35. package/dist/components/Molecules/Cards/SummaryCard/index.d.ts +1 -0
  36. package/dist/components/Molecules/Cards/index.d.ts +5 -0
  37. package/dist/components/Molecules/Pagination/Pagination.d.ts +9 -0
  38. package/dist/components/Molecules/Pagination/index.d.ts +1 -0
  39. package/dist/components/Molecules/PostMetadata/PostMetadata.d.ts +17 -0
  40. package/dist/components/Molecules/PostMetadata/index.d.ts +1 -0
  41. package/dist/components/Molecules/ShareLinks/ShareLinks.d.ts +14 -0
  42. package/dist/components/Molecules/ShareLinks/index.d.ts +1 -0
  43. package/dist/components/Molecules/index.d.ts +4 -0
  44. package/dist/components/Organisms/Autocomplete/Autocomplete.d.ts +12 -0
  45. package/dist/components/Organisms/Autocomplete/AutocompleteResult/AutocompleteResult.d.ts +28 -0
  46. package/dist/components/Organisms/Autocomplete/AutocompleteResult/index.d.ts +1 -0
  47. package/dist/components/Organisms/Autocomplete/index.d.ts +1 -0
  48. package/dist/components/Organisms/Blocks/LastArticlesBlock/LastArticlesBlock.d.ts +11 -0
  49. package/dist/components/Organisms/Blocks/LastTutorialsBlock/LastTutorialsBlock.d.ts +13 -0
  50. package/dist/components/Organisms/Footer/Footer.d.ts +24 -0
  51. package/dist/components/Organisms/Footer/index.d.ts +1 -0
  52. package/dist/components/Organisms/Header/Header.d.ts +20 -0
  53. package/dist/components/Organisms/Header/index.d.ts +1 -0
  54. package/dist/components/Organisms/PostCardList/PostCardList.d.ts +8 -0
  55. package/dist/components/Organisms/PostCardList/index.d.ts +1 -0
  56. package/dist/components/Organisms/index.d.ts +4 -0
  57. package/dist/components/index.d.ts +2 -0
  58. package/dist/constants/tokenNameList.d.ts +4 -5
  59. package/dist/constants/tokenVariables.d.ts +63 -69
  60. package/dist/helpers/getCdnAssetsFile.d.ts +1 -0
  61. package/dist/hooks/useCopyToClipboard.d.ts +5 -0
  62. package/dist/hooks/usePagination.d.ts +8 -0
  63. package/dist/imgs/astronaut.png +0 -0
  64. package/dist/imgs/category-intro-block-desktop.png +0 -0
  65. package/dist/imgs/category-intro-block-mobile.png +0 -0
  66. package/dist/imgs/contact-background.png +0 -0
  67. package/dist/imgs/home-intro-block.png +0 -0
  68. package/dist/imgs/newsletter.png +0 -0
  69. package/dist/imgs/not-found.png +0 -0
  70. package/dist/index.d.ts +2 -0
  71. package/dist/index.es.js +6227 -1900
  72. package/dist/index.umd.cjs +45 -10
  73. package/dist/pages/AuthorPage/AuthorPage.d.ts +21 -0
  74. package/dist/pages/AuthorPage/index.d.ts +1 -0
  75. package/dist/pages/CategoryPage/CategoryPage.d.ts +11 -0
  76. package/dist/pages/CategoryPage/index.d.ts +1 -0
  77. package/dist/pages/HomePage/HomePage.d.ts +12 -0
  78. package/dist/pages/HomePage/index.d.ts +1 -0
  79. package/dist/pages/NotFoundPage/NotFoundPage.d.ts +6 -0
  80. package/dist/pages/NotFoundPage/index.d.ts +1 -0
  81. package/dist/pages/PostPage/PostFooter/PostFooter.d.ts +7 -0
  82. package/dist/pages/PostPage/PostFooter/index.d.ts +1 -0
  83. package/dist/pages/PostPage/PostHeader/PostHeader.d.ts +16 -0
  84. package/dist/pages/PostPage/PostHeader/index.d.ts +1 -0
  85. package/dist/pages/PostPage/PostPage.d.ts +25 -0
  86. package/dist/pages/PostPage/RelatedPostList/RelatedPostList.d.ts +7 -0
  87. package/dist/pages/PostPage/RelatedPostList/index.d.ts +1 -0
  88. package/dist/pages/PostPage/index.d.ts +1 -0
  89. package/dist/pages/SearchPage/SearchPage.d.ts +12 -0
  90. package/dist/pages/SearchPage/index.d.ts +1 -0
  91. package/dist/pages/index.d.ts +6 -0
  92. package/dist/scss/abstracts/functions/_get-cdn-assets-file.scss +9 -0
  93. package/dist/scss/abstracts/functions/_index.scss +2 -0
  94. package/dist/scss/abstracts/functions/_map-get-strict.scss +9 -0
  95. package/dist/scss/abstracts/variables/_token-variables.scss +22 -23
  96. package/dist/scss/abstracts/variables/_variables.scss +24 -28
  97. package/dist/style.css +1 -1
  98. package/dist/svgs/arrow.svg +1 -0
  99. package/dist/svgs/underline.svg +1 -0
  100. package/dist/templates/LayoutContentWithSidebar/LayoutContentWithSidebar.d.ts +7 -0
  101. package/dist/templates/LayoutContentWithSidebar/index.d.ts +1 -0
  102. package/dist/templates/LayoutTemplate/LayoutTemplate.d.ts +8 -0
  103. package/dist/templates/LayoutTemplate/index.d.ts +1 -0
  104. package/dist/templates/index.d.ts +1 -0
  105. package/dist/types/ComponentPropsWithoutRef.d.ts +3 -0
  106. package/dist/types/SystemProps/ColorSystemProps.d.ts +1 -1
  107. package/dist/types/SystemProps/SpacingSystemProps.d.ts +7 -7
  108. package/dist/types/index.d.ts +1 -0
  109. package/dist/types/tokenTypes.d.ts +1 -1
  110. package/package.json +13 -8
  111. package/dist/components/Atoms/Svgs/ArrowBack.d.ts +0 -4
  112. package/dist/components/Atoms/Svgs/Close.d.ts +0 -4
  113. package/dist/components/Atoms/Svgs/Tuto.d.ts +0 -4
  114. package/dist/fonts/WorkSans-Bold.woff +0 -0
  115. package/dist/fonts/WorkSans-Bold.woff2 +0 -0
  116. package/dist/fonts/WorkSans-Medium.woff +0 -0
  117. package/dist/fonts/WorkSans-Medium.woff2 +0 -0
  118. package/dist/fonts/WorkSans-Regular.woff +0 -0
  119. package/dist/fonts/WorkSans-Regular.woff2 +0 -0
  120. package/dist/svgs/arrow-back.svg +0 -1
  121. package/dist/svgs/close.svg +0 -1
  122. package/dist/svgs/tuto.svg +0 -1
  123. /package/dist/components/{Atoms/Layout → Layout}/Box/index.d.ts +0 -0
  124. /package/dist/components/{Atoms/Layout → Layout}/Flex/index.d.ts +0 -0
  125. /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 Thu, 04 Jan 2024 13:09:15 GMT
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
- tuto: {
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
- 'work-sans': {
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
- azure: {
296
- value: string;
297
- };
298
- navy: {
299
- value: string;
300
- };
301
- seashell: {
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
- lavender: {
307
- value: string;
308
- };
309
- amaranth: {
310
- value: string;
311
- };
312
- yellow: {
313
- value: string;
314
- };
296
+ value: string;
315
297
  };
316
- greyscale: {
317
- 'ultra-light-grey': {
318
- value: string;
319
- };
320
- 'light-grey': {
321
- value: string;
322
- };
323
- grey: {
324
- value: string;
325
- };
326
- 'dark-grey': {
327
- value: string;
328
- };
329
- 'ultra-dark-grey': {
330
- value: string;
331
- };
332
- black: {
333
- value: string;
334
- };
335
- white: {
336
- value: string;
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
package/dist/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  export * from './components';
2
+ export * from './templates';
3
+ export * from './pages';
2
4
  export * from './hooks';
3
5
  export * from './helpers';
4
6
  export * from './types';