@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
@@ -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,12 @@
1
+ import React from 'react';
2
+ import type { HomeIntroBlockProps } from '../../components';
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';
6
+ export type HomePageProps = {
7
+ homeIntroBlock: HomeIntroBlockProps;
8
+ lastArticlesBlock: LastArticlesBlockProps;
9
+ lastTutorialsBlock: LastTutorialsBlockProps;
10
+ newsletterCard: NewsletterCardProps;
11
+ };
12
+ export declare const HomePage: React.FC<HomePageProps>;
@@ -0,0 +1 @@
1
+ export * from './HomePage';
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export type NotFoundPageProps = {
3
+ title: React.ReactNode;
4
+ description: React.ReactNode;
5
+ };
6
+ export declare const NotFoundPage: React.FC<NotFoundPageProps>;
@@ -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,16 @@
1
+ import React from 'react';
2
+ import type { BoxProps } from '../../../components';
3
+ import { type ShareLinksProps } from '../../../components/Molecules/ShareLinks';
4
+ import type { ComponentPropsWithoutRef } from '../../../types';
5
+ export interface PostHeaderProps extends BoxProps {
6
+ title: React.ReactNode;
7
+ date: string;
8
+ readingTime: number;
9
+ authors: {
10
+ username: string;
11
+ name: string;
12
+ link: ComponentPropsWithoutRef<'a'>;
13
+ }[];
14
+ shareLinks: ShareLinksProps;
15
+ }
16
+ export declare const PostHeader: React.FC<PostHeaderProps>;
@@ -0,0 +1 @@
1
+ export * from './PostHeader';
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import type { BreadcrumbProps, ContactCardProps, SummaryCardProps } from '../../components';
3
+ import type { ComponentPropsWithoutRef } from '../../types';
4
+ import type { PostFooterProps } from './PostFooter';
5
+ import type { PostHeaderProps } from './PostHeader';
6
+ import type { RelatedPostListProps } from './RelatedPostList';
7
+ export declare const postPageVariant: readonly ["article", "tutorial"];
8
+ export type PostPageVariantType = (typeof postPageVariant)[number];
9
+ export interface PostPageProps {
10
+ variant: PostPageVariantType;
11
+ breadcrumb: BreadcrumbProps;
12
+ header: Omit<PostHeaderProps, 'contentType'>;
13
+ children: React.ReactNode;
14
+ footer: PostFooterProps;
15
+ contactCard: ContactCardProps;
16
+ relatedPostList: RelatedPostListProps;
17
+ summary: SummaryCardProps;
18
+ previousLink?: {
19
+ label: string;
20
+ } & ComponentPropsWithoutRef<'a'>;
21
+ nextLink?: {
22
+ label: string;
23
+ } & ComponentPropsWithoutRef<'a'>;
24
+ }
25
+ 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';
@@ -0,0 +1,6 @@
1
+ export * from './CategoryPage';
2
+ export * from './HomePage';
3
+ export * from './PostPage';
4
+ export * from './AuthorPage';
5
+ export * from './NotFoundPage';
6
+ export * from './SearchPage';
@@ -0,0 +1,9 @@
1
+ @use 'sass:map';
2
+ @use 'sass:string';
3
+ @use '../variables' as *;
4
+
5
+ @function get-cdn-assets-file($path) {
6
+ $full-path: #{map.get($token-variables, 'cdn-path')}#{$path};
7
+
8
+ @return string.slice($full-path, 2);
9
+ }
@@ -1 +1,3 @@
1
1
  @forward 'list';
2
+ @forward 'get-cdn-assets-file';
3
+ @forward 'map-get-strict';
@@ -0,0 +1,9 @@
1
+ @use 'sass:map';
2
+
3
+ @function map-get-strict($map, $keys...) {
4
+ @if map.get($map, $keys...) {
5
+ @return map.get($map, $keys...);
6
+ } @else {
7
+ @error "Specified #{$keys} does not exist in the mapping";
8
+ }
9
+ }
@@ -1,13 +1,14 @@
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
 
6
6
  $token-variables: (
7
- 'cdn-path': "https://eleven-labs.github.io/design-system/",
7
+ 'cdn-path': "/",
8
8
  'font-family': (
9
9
  'base': var(--font-family-base),
10
- 'work-sans': var(--font-family-work-sans)
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
- 'azure': var(--color-azure),
128
- 'navy': var(--color-navy),
129
- 'seashell': var(--color-seashell)
130
- ),
131
- 'secondary': (
132
- 'lavender': var(--color-lavender),
133
- 'amaranth': var(--color-amaranth),
134
- 'yellow': var(--color-yellow)
135
- ),
136
- 'greyscale': (
137
- 'ultra-light-grey': var(--color-ultra-light-grey),
138
- 'light-grey': var(--color-light-grey),
139
- 'grey': var(--color-grey),
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 Thu, 04 Jan 2024 13:09:15 GMT
4
+ * Generated on Tue, 16 Jan 2024 16:30:14 GMT
5
5
  */
6
6
 
7
- $white: #FFFFFF !default;
8
- $black: #000000 !default;
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
- $yellow: #F3C93D !default;
15
- $amaranth: #DD3156 !default;
16
- $lavender: #E1EAF9 !default;
17
- $seashell: #e9f1f8 !default;
18
- $navy: #224579 !default;
19
- $azure: #3767B6 !default;
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
- 'azure': $azure,
25
- 'navy': $navy,
26
- 'seashell': $seashell
27
- ),
28
- 'secondary': (
29
- 'lavender': $lavender,
30
- 'amaranth': $amaranth,
31
- 'yellow': $yellow
32
- ),
33
- 'greyscale': (
34
- 'ultra-light-grey': $ultra-light-grey,
35
- 'light-grey': $light-grey,
36
- 'grey': $grey,
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
  );