@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.
Files changed (58) hide show
  1. package/dist/components/Atoms/Blockquote/Blockquote.d.ts +2 -2
  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 +2 -1
  5. package/dist/components/Atoms/CloseButton/CloseButton.d.ts +2 -1
  6. package/dist/components/Atoms/Divider/Divider.d.ts +2 -2
  7. package/dist/components/Atoms/Icon/Icon.d.ts +2 -0
  8. package/dist/components/Atoms/Svgs/Underline.d.ts +4 -0
  9. package/dist/components/Atoms/Svgs/index.d.ts +1 -0
  10. package/dist/components/Atoms/index.d.ts +1 -0
  11. package/dist/components/Molecules/Blocks/CategoryEndingBlock/CategoryEndingBlock.d.ts +2 -1
  12. package/dist/components/Molecules/Blocks/CategoryIntroBlock/CategoryIntroBlock.d.ts +2 -5
  13. package/dist/components/Molecules/Blocks/HomeIntroBlock/HomeIntroBlock.d.ts +2 -1
  14. package/dist/components/Molecules/Cards/AuthorCard/AuthorCard.d.ts +4 -1
  15. package/dist/components/Molecules/Cards/ContactCard/ContactCard.d.ts +2 -1
  16. package/dist/components/Molecules/Cards/NewsletterCard/NewsletterCard.d.ts +3 -0
  17. package/dist/components/Molecules/Cards/PostCard/PostCard.d.ts +5 -1
  18. package/dist/components/Molecules/Cards/SummaryCard/SummaryCard.d.ts +2 -1
  19. package/dist/components/Molecules/Pagination/Pagination.d.ts +2 -2
  20. package/dist/components/Molecules/PostMetadata/PostMetadata.d.ts +2 -2
  21. package/dist/components/Organisms/Autocomplete/AutocompleteResult/AutocompleteResult.d.ts +4 -3
  22. package/dist/components/Organisms/Blocks/LastArticlesBlock/LastArticlesBlock.d.ts +11 -0
  23. package/dist/components/Organisms/Blocks/LastTutorialsBlock/LastTutorialsBlock.d.ts +13 -0
  24. package/dist/components/Organisms/Footer/Footer.d.ts +5 -5
  25. package/dist/components/Organisms/Header/Header.d.ts +5 -4
  26. package/dist/constants/tokenNameList.d.ts +4 -5
  27. package/dist/constants/tokenVariables.d.ts +62 -62
  28. package/dist/imgs/category-intro-block-desktop.jpg +0 -0
  29. package/dist/imgs/category-intro-block-mobile.jpg +0 -0
  30. package/dist/index.es.js +2073 -1974
  31. package/dist/index.umd.cjs +16 -16
  32. package/dist/pages/HomePage/HomePage.d.ts +4 -2
  33. package/dist/pages/PostPage/PostHeader/PostHeader.d.ts +4 -2
  34. package/dist/pages/PostPage/PostPage.d.ts +5 -3
  35. package/dist/scss/abstracts/functions/_index.scss +1 -1
  36. package/dist/scss/abstracts/functions/_map-get-strict.scss +9 -0
  37. package/dist/scss/abstracts/variables/_token-variables.scss +21 -23
  38. package/dist/scss/abstracts/variables/_variables.scss +24 -28
  39. package/dist/style.css +1 -1
  40. package/dist/svgs/underline.svg +1 -0
  41. package/dist/templates/LayoutContentWithSidebar/LayoutContentWithSidebar.d.ts +2 -2
  42. package/dist/templates/LayoutTemplate/LayoutTemplate.d.ts +2 -2
  43. package/dist/types/ComponentPropsWithoutRef.d.ts +3 -0
  44. package/dist/types/SystemProps/ColorSystemProps.d.ts +1 -1
  45. package/dist/types/SystemProps/SpacingSystemProps.d.ts +7 -7
  46. package/dist/types/index.d.ts +1 -0
  47. package/dist/types/tokenTypes.d.ts +1 -1
  48. package/package.json +1 -2
  49. package/dist/fonts/WorkSans-Bold.woff +0 -0
  50. package/dist/fonts/WorkSans-Bold.woff2 +0 -0
  51. package/dist/fonts/WorkSans-Medium.woff +0 -0
  52. package/dist/fonts/WorkSans-Medium.woff2 +0 -0
  53. package/dist/fonts/WorkSans-Regular.woff +0 -0
  54. package/dist/fonts/WorkSans-Regular.woff2 +0 -0
  55. package/dist/helpers/getCdnAssetsFile.d.ts +0 -1
  56. package/dist/imgs/category-intro-block-desktop.png +0 -0
  57. package/dist/imgs/category-intro-block-mobile.png +0 -0
  58. 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
- title: React.ReactNode;
7
- postCardList: React.ReactNode;
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
- export interface PostHeaderProps {
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: React.ComponentPropsWithoutRef<'a'>;
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
- } & React.ComponentPropsWithoutRef<'a'>;
20
+ } & ComponentPropsWithoutRef<'a'>;
19
21
  nextLink?: {
20
22
  label: string;
21
- } & React.ComponentPropsWithoutRef<'a'>;
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-cdn-assets-file';
2
+ @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,13 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Mon, 08 Jan 2024 16:40:16 GMT
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
- 'work-sans': var(--font-family-work-sans)
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
- '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
- )
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 Mon, 08 Jan 2024 16:40:16 GMT
4
+ * Generated on Wed, 17 Jan 2024 08:04:41 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: #F8FA9B !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
  );