@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.
Files changed (52) 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/index.es.js +2131 -2029
  29. package/dist/index.umd.cjs +15 -15
  30. package/dist/pages/HomePage/HomePage.d.ts +4 -2
  31. package/dist/pages/PostPage/PostHeader/PostHeader.d.ts +4 -2
  32. package/dist/pages/PostPage/PostPage.d.ts +5 -3
  33. package/dist/scss/abstracts/functions/_index.scss +1 -0
  34. package/dist/scss/abstracts/functions/_map-get-strict.scss +9 -0
  35. package/dist/scss/abstracts/variables/_token-variables.scss +22 -23
  36. package/dist/scss/abstracts/variables/_variables.scss +24 -28
  37. package/dist/style.css +1 -1
  38. package/dist/svgs/underline.svg +1 -0
  39. package/dist/templates/LayoutContentWithSidebar/LayoutContentWithSidebar.d.ts +2 -2
  40. package/dist/templates/LayoutTemplate/LayoutTemplate.d.ts +2 -2
  41. package/dist/types/ComponentPropsWithoutRef.d.ts +3 -0
  42. package/dist/types/SystemProps/ColorSystemProps.d.ts +1 -1
  43. package/dist/types/SystemProps/SpacingSystemProps.d.ts +7 -7
  44. package/dist/types/index.d.ts +1 -0
  45. package/dist/types/tokenTypes.d.ts +1 -1
  46. package/package.json +1 -2
  47. package/dist/fonts/WorkSans-Bold.woff +0 -0
  48. package/dist/fonts/WorkSans-Bold.woff2 +0 -0
  49. package/dist/fonts/WorkSans-Medium.woff +0 -0
  50. package/dist/fonts/WorkSans-Medium.woff2 +0 -0
  51. package/dist/fonts/WorkSans-Regular.woff +0 -0
  52. 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
- 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,3 @@
1
1
  @forward 'list';
2
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 Mon, 08 Jan 2024 16:40:16 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 Mon, 08 Jan 2024 16:40:16 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: #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
  );