@eleven-labs/design-system 0.22.0 → 0.24.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 (61) hide show
  1. package/dist/components/Atoms/Button/Button.d.ts +3 -3
  2. package/dist/components/Atoms/Typography/Heading/Heading.d.ts +1 -1
  3. package/dist/components/Layout/Flex/Flex.d.ts +2 -2
  4. package/dist/components/Molecules/Blocks/CategoryEndingBlock/CategoryEndingBlock.d.ts +2 -2
  5. package/dist/components/Molecules/Blocks/CategoryIntroBlock/CategoryIntroBlock.d.ts +2 -2
  6. package/dist/components/Molecules/Blocks/HomeIntroBlock/HomeIntroBlock.d.ts +3 -3
  7. package/dist/components/Molecules/Cards/AuthorCard/AuthorCard.d.ts +1 -1
  8. package/dist/components/Molecules/Cards/ContactCard/ContactCard.d.ts +2 -3
  9. package/dist/components/Molecules/Cards/NewsletterCard/NewsletterCard.d.ts +2 -2
  10. package/dist/components/Molecules/Link/Link.d.ts +1 -1
  11. package/dist/components/Organisms/Autocomplete/AutocompleteResult/AutocompleteResult.d.ts +2 -2
  12. package/dist/components/Organisms/Blocks/LastArticlesBlock/LastArticlesBlock.d.ts +1 -1
  13. package/dist/components/Organisms/Blocks/LastTutorialsBlock/LastTutorialsBlock.d.ts +2 -2
  14. package/dist/constants/systemProps/flexItemSystemProps.d.ts +2 -0
  15. package/dist/constants/systemProps/flexOrGridItemSystemProps.d.ts +2 -0
  16. package/dist/constants/systemProps/flexOrGridSystemProps.d.ts +2 -0
  17. package/dist/constants/systemProps/flexSystemProps.d.ts +2 -0
  18. package/dist/constants/systemProps/index.d.ts +4 -2
  19. package/dist/constants/tokenVariables.d.ts +40 -80
  20. package/dist/helpers/systemPropsHelper/flexItemSystemClassName.d.ts +2 -0
  21. package/dist/helpers/systemPropsHelper/flexOrGridItemSystemClassName.d.ts +2 -0
  22. package/dist/helpers/systemPropsHelper/flexOrGridSystemClassName.d.ts +2 -0
  23. package/dist/helpers/systemPropsHelper/flexSystemClassName.d.ts +2 -0
  24. package/dist/helpers/systemPropsHelper/index.d.ts +4 -2
  25. package/dist/index.es.js +1631 -1678
  26. package/dist/index.umd.cjs +15 -15
  27. package/dist/pages/AuthorPage/AuthorPage.d.ts +3 -17
  28. package/dist/pages/AuthorPage/AuthorPageContent.d.ts +19 -0
  29. package/dist/pages/AuthorPage/index.d.ts +1 -0
  30. package/dist/pages/CategoryPage/CategoryPage.d.ts +4 -6
  31. package/dist/pages/CategoryPage/CategoryPageContent.d.ts +8 -0
  32. package/dist/pages/CategoryPage/index.d.ts +1 -0
  33. package/dist/pages/PostPage/PostPage.d.ts +3 -21
  34. package/dist/pages/PostPage/PostPageContent.d.ts +24 -0
  35. package/dist/pages/PostPage/index.d.ts +1 -0
  36. package/dist/pages/SearchPage/SearchPage.d.ts +4 -10
  37. package/dist/pages/SearchPage/SearchPageContent.d.ts +10 -0
  38. package/dist/pages/SearchPage/index.d.ts +1 -0
  39. package/dist/scss/abstracts/mixins/_component.scss +14 -0
  40. package/dist/scss/abstracts/mixins/_index.scss +2 -0
  41. package/dist/scss/abstracts/mixins/_system_classes.scss +14 -0
  42. package/dist/scss/abstracts/mixins/_utility-classes.scss +10 -4
  43. package/dist/scss/abstracts/variables/_token-variables.scss +25 -49
  44. package/dist/scss/abstracts/variables/_variables.scss +14 -14
  45. package/dist/style.css +1 -1
  46. package/dist/templates/index.d.ts +1 -0
  47. package/dist/types/SystemProps/FlexItemSystemProps.d.ts +11 -0
  48. package/dist/types/SystemProps/FlexOrGridItemSystemProps.d.ts +8 -0
  49. package/dist/types/SystemProps/FlexOrGridSystemProps.d.ts +27 -0
  50. package/dist/types/SystemProps/FlexSystemProps.d.ts +12 -0
  51. package/dist/types/SystemProps/LayoutSystemProps.d.ts +5 -13
  52. package/dist/types/SystemProps/SystemProps.d.ts +3 -3
  53. package/dist/types/SystemProps/index.d.ts +4 -2
  54. package/dist/types/tokenTypes.d.ts +2 -2
  55. package/package.json +1 -1
  56. package/dist/constants/systemProps/flexBoxSystemProps.d.ts +0 -2
  57. package/dist/constants/systemProps/hiddenSystemProps.d.ts +0 -2
  58. package/dist/helpers/systemPropsHelper/flexBoxSystemClassName.d.ts +0 -2
  59. package/dist/helpers/systemPropsHelper/hiddenSystemClassName.d.ts +0 -2
  60. package/dist/types/SystemProps/FlexBoxSystemProps.d.ts +0 -48
  61. package/dist/types/SystemProps/HiddenSystemProps.d.ts +0 -11
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
- import type { BoxProps } from '../../../components';
3
- export declare const buttonVariant: readonly ["primary", "secondary"];
2
+ import type { FlexProps } from '../../../components';
3
+ export declare const buttonVariant: readonly ["primary", "secondary", "accent"];
4
4
  export type ButtonVariantType = (typeof buttonVariant)[number];
5
- export interface ButtonProps extends BoxProps {
5
+ export interface ButtonProps extends FlexProps {
6
6
  className?: string;
7
7
  variant?: ButtonVariantType;
8
8
  isChoiceChip?: boolean;
@@ -4,4 +4,4 @@ import type { HeadingSizeType } from '../../../../types';
4
4
  export interface HeadingProps extends Omit<BoxProps, 'textSize'> {
5
5
  size?: HeadingSizeType;
6
6
  }
7
- export declare const Heading: import("react-polymorphed").PolyForwardComponent<"h1", HeadingProps, React.ElementType<any>>;
7
+ export declare const Heading: import("react-polymorphed").PolyForwardComponent<"p", HeadingProps, React.ElementType<any>>;
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import type { BoxProps } from '../../../components';
3
- import type { DisplayType, TypeWithMediaQueriesType } from '../../../types';
4
- export interface FlexProps extends Omit<BoxProps, 'display'> {
3
+ import type { DisplayType, FlexOrGridSystemProps, FlexSystemProps, TypeWithMediaQueriesType } from '../../../types';
4
+ export interface FlexProps extends Omit<BoxProps, 'display'>, FlexOrGridSystemProps, FlexSystemProps {
5
5
  display?: TypeWithMediaQueriesType<Extract<DisplayType, 'flex' | 'inline-flex'>>;
6
6
  }
7
7
  export declare const Flex: import("react-polymorphed").PolyForwardComponent<"div", FlexProps, React.ElementType<any>>;
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  import type { BoxProps } from '../../../../components';
3
3
  import type { ComponentPropsWithoutRef } from '../../../../types';
4
4
  export interface CategoryEndingBlockProps extends BoxProps {
5
- title: string;
6
- description: string;
5
+ title: React.ReactNode;
6
+ description: React.ReactNode;
7
7
  expertiseLink: {
8
8
  label: string;
9
9
  } & ComponentPropsWithoutRef<'a'>;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { BoxProps, BreadcrumbProps } from '../../../../components';
3
3
  export interface CategoryIntroBlockProps extends BoxProps {
4
- title: string;
5
- description: string;
4
+ title: React.ReactNode;
5
+ description: React.ReactNode;
6
6
  breadcrumb: BreadcrumbProps;
7
7
  }
8
8
  export declare const CategoryIntroBlock: React.FC<CategoryIntroBlockProps>;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import type { ComponentPropsWithoutRef } from '../../../../types';
3
3
  export interface HomeIntroBlockProps {
4
- intro: string;
5
- title: string;
6
- description: string;
4
+ intro: React.ReactNode;
5
+ title: React.ReactNode;
6
+ description: React.ReactNode;
7
7
  elevenLabsLink: {
8
8
  label: string;
9
9
  } & ComponentPropsWithoutRef<'a'>;
@@ -3,7 +3,7 @@ import type { FlexProps } from '../../../../components';
3
3
  import type { ComponentPropsWithoutRef } from '../../../../types';
4
4
  export interface AuthorCardProps extends FlexProps {
5
5
  name: string;
6
- description: string;
6
+ description: React.ReactNode;
7
7
  avatarImageUrl?: string;
8
8
  link: {
9
9
  label: string;
@@ -2,9 +2,8 @@ import React from 'react';
2
2
  import type { FlexProps } from '../../../../components';
3
3
  import type { ComponentPropsWithoutRef } from '../../../../types';
4
4
  export type ContactCardProps = {
5
- title: string;
6
- subtitle: string;
7
- description: string;
5
+ title: React.ReactNode;
6
+ description: React.ReactNode;
8
7
  link: {
9
8
  label: React.ReactNode;
10
9
  } & ComponentPropsWithoutRef<'a'>;
@@ -3,8 +3,8 @@ import type { FlexProps } from '../../../../components';
3
3
  export declare const newsletterCardVariant: readonly ["horizontal", "vertical"];
4
4
  export type NewsletterCardVariantType = (typeof newsletterCardVariant)[number];
5
5
  export interface NewsletterCardProps extends Omit<FlexProps, 'title'> {
6
- title: string;
7
- description: string;
6
+ title: React.ReactNode;
7
+ description: React.ReactNode;
8
8
  children: React.ReactNode;
9
9
  variant?: NewsletterCardVariantType;
10
10
  }
@@ -4,6 +4,6 @@ import type { IconNameType } from '../../../types';
4
4
  export interface LinkProps extends BoxProps {
5
5
  className?: string;
6
6
  icon?: IconNameType;
7
- children: React.ReactNode;
7
+ children?: React.ReactNode;
8
8
  }
9
9
  export declare const Link: import("react-polymorphed").PolyForwardComponent<"a", LinkProps, React.ElementType<any>>;
@@ -19,8 +19,8 @@ export type AutocompleteResultOptions = {
19
19
  label: string;
20
20
  };
21
21
  searchNotFound?: {
22
- title: string;
23
- description: string;
22
+ title: React.ReactNode;
23
+ description: React.ReactNode;
24
24
  };
25
25
  highlightedIndex?: number;
26
26
  };
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import type { BoxProps, PostCardProps } from '../../../../components';
3
3
  import type { ComponentPropsWithoutRef } from '../../../../types';
4
4
  export interface LastArticlesBlockProps extends BoxProps {
5
- title: string;
5
+ title: React.ReactNode;
6
6
  posts: Partial<PostCardProps>[];
7
7
  linkSeeMore: {
8
8
  label: string;
@@ -2,8 +2,8 @@ import React from 'react';
2
2
  import type { FlexProps, PostCardProps } from '../../../../components';
3
3
  import type { ComponentPropsWithoutRef } from '../../../../types';
4
4
  export interface LastTutorialsBlockProps extends FlexProps {
5
- title: string;
6
- description: string;
5
+ title: React.ReactNode;
6
+ description: React.ReactNode;
7
7
  posts: Partial<PostCardProps>[];
8
8
  tutorialLabel: string;
9
9
  linkSeeMore: {
@@ -0,0 +1,2 @@
1
+ import type { FlexItemSystemProps } from '../../types';
2
+ export declare const flexItemSystemProps: Record<keyof FlexItemSystemProps, readonly string[]>;
@@ -0,0 +1,2 @@
1
+ import type { FlexOrGridItemSystemProps } from '../../types';
2
+ export declare const flexOrGridItemSystemProps: Record<keyof FlexOrGridItemSystemProps, readonly string[]>;
@@ -0,0 +1,2 @@
1
+ import type { FlexOrGridSystemProps } from '../../types';
2
+ export declare const flexOrGridSystemProps: Record<keyof FlexOrGridSystemProps, readonly string[]>;
@@ -0,0 +1,2 @@
1
+ import type { FlexSystemProps } from '../../types';
2
+ export declare const flexSystemProps: Record<keyof FlexSystemProps, readonly string[]>;
@@ -2,6 +2,8 @@ export * from './colorSystemProps';
2
2
  export * from './spacingSystemProps';
3
3
  export * from './systemProps';
4
4
  export * from './typographySystemProps';
5
- export * from './flexBoxSystemProps';
6
5
  export * from './layoutSystemProps';
7
- export * from './hiddenSystemProps';
6
+ export * from './flexOrGridSystemProps';
7
+ export * from './flexSystemProps';
8
+ export * from './flexOrGridItemSystemProps';
9
+ export * from './flexItemSystemProps';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 17 Jan 2024 08:04:41 GMT
3
+ * Generated on Fri, 19 Jan 2024 17:00:47 GMT
4
4
  */
5
5
  export declare const tokenVariables: {
6
6
  asset: {
@@ -69,35 +69,6 @@ export declare const tokenVariables: {
69
69
  weights: string[];
70
70
  };
71
71
  };
72
- 'font-size': {
73
- xxs: {
74
- value: string;
75
- };
76
- xs: {
77
- value: string;
78
- };
79
- s: {
80
- value: string;
81
- };
82
- m: {
83
- value: string;
84
- };
85
- l: {
86
- value: string;
87
- };
88
- xl: {
89
- value: string;
90
- };
91
- xxl: {
92
- value: string;
93
- };
94
- 'xxl-2': {
95
- value: string;
96
- };
97
- 'xxl-3': {
98
- value: string;
99
- };
100
- };
101
72
  'font-weight': {
102
73
  regular: {
103
74
  value: string;
@@ -121,14 +92,41 @@ export declare const tokenVariables: {
121
92
  'line-height': {
122
93
  value: string;
123
94
  };
95
+ };
96
+ s: {
97
+ 'font-size': {
98
+ value: string;
99
+ };
124
100
  'font-weight': {
125
101
  value: string;
126
102
  };
103
+ 'text-transform': {
104
+ value: string;
105
+ };
106
+ };
107
+ m: {
108
+ 'font-size': {
109
+ value: string;
110
+ };
111
+ 'font-weight': {
112
+ value: string;
113
+ };
114
+ };
115
+ l: {
116
+ 'font-size': {
117
+ value: string;
118
+ };
127
119
  };
128
120
  xl: {
121
+ 'font-size': {
122
+ value: string;
123
+ };
129
124
  'font-weight': {
130
125
  value: string;
131
126
  };
127
+ 'text-transform': {
128
+ value: string;
129
+ };
132
130
  };
133
131
  };
134
132
  text: {
@@ -138,65 +136,27 @@ export declare const tokenVariables: {
138
136
  };
139
137
  };
140
138
  xs: {
141
- 'line-height': {
139
+ 'font-size': {
142
140
  value: string;
143
141
  };
144
- };
145
- m: {
146
- 'line-height': {
142
+ 'icon-size': {
147
143
  value: string;
148
144
  };
149
145
  };
150
- };
151
- };
152
- mobile: {
153
- typography: {
154
- heading: {
155
- s: {
156
- 'font-size': {
157
- value: string;
158
- };
159
- };
160
- m: {
161
- 'font-size': {
162
- value: string;
163
- };
164
- };
165
- l: {
166
- 'font-size': {
167
- value: string;
168
- };
146
+ s: {
147
+ 'font-size': {
148
+ value: string;
169
149
  };
170
- xl: {
171
- 'font-size': {
172
- value: string;
173
- };
150
+ 'icon-size': {
151
+ value: string;
174
152
  };
175
153
  };
176
- text: {
177
- xs: {
178
- 'font-size': {
179
- value: string;
180
- };
181
- 'icon-size': {
182
- value: string;
183
- };
184
- };
185
- s: {
186
- 'font-size': {
187
- value: string;
188
- };
189
- 'icon-size': {
190
- value: string;
191
- };
154
+ m: {
155
+ 'font-size': {
156
+ value: string;
192
157
  };
193
- m: {
194
- 'font-size': {
195
- value: string;
196
- };
197
- 'icon-size': {
198
- value: string;
199
- };
158
+ 'icon-size': {
159
+ value: string;
200
160
  };
201
161
  };
202
162
  };
@@ -0,0 +1,2 @@
1
+ import type { FlexItemSystemProps } from '../../types';
2
+ export declare const flexItemSystemClassName: <TProps extends FlexItemSystemProps>(props: TProps) => string;
@@ -0,0 +1,2 @@
1
+ import type { FlexOrGridItemSystemProps } from '../../types';
2
+ export declare const flexOrGridItemSystemClassName: <TProps extends FlexOrGridItemSystemProps>(props: TProps) => string;
@@ -0,0 +1,2 @@
1
+ import type { FlexOrGridSystemProps } from '../../types';
2
+ export declare const flexOrGridSystemClassName: <TProps extends FlexOrGridSystemProps>(props: TProps) => string;
@@ -0,0 +1,2 @@
1
+ import type { FlexSystemProps } from '../../types';
2
+ export declare const flexSystemClassName: <TProps extends FlexSystemProps>(props: TProps) => string;
@@ -1,10 +1,12 @@
1
1
  export * from './classNameWithModifier';
2
2
  export * from './classNamesWithModifiers';
3
3
  export * from './colorSystemClassName';
4
- export * from './flexBoxSystemClassName';
5
4
  export * from './layoutSystemClassName';
5
+ export * from './flexOrGridSystemClassName';
6
+ export * from './flexSystemClassName';
7
+ export * from './flexOrGridItemSystemClassName';
8
+ export * from './flexItemSystemClassName';
6
9
  export * from './spacingSystemClassName';
7
10
  export * from './typographySystemClassName';
8
- export * from './hiddenSystemClassName';
9
11
  export * from './omitSystemProps';
10
12
  export * from './systemClassName';