@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.
- package/dist/components/Atoms/Button/Button.d.ts +3 -3
- package/dist/components/Atoms/Typography/Heading/Heading.d.ts +1 -1
- package/dist/components/Layout/Flex/Flex.d.ts +2 -2
- package/dist/components/Molecules/Blocks/CategoryEndingBlock/CategoryEndingBlock.d.ts +2 -2
- package/dist/components/Molecules/Blocks/CategoryIntroBlock/CategoryIntroBlock.d.ts +2 -2
- package/dist/components/Molecules/Blocks/HomeIntroBlock/HomeIntroBlock.d.ts +3 -3
- package/dist/components/Molecules/Cards/AuthorCard/AuthorCard.d.ts +1 -1
- package/dist/components/Molecules/Cards/ContactCard/ContactCard.d.ts +2 -3
- package/dist/components/Molecules/Cards/NewsletterCard/NewsletterCard.d.ts +2 -2
- package/dist/components/Molecules/Link/Link.d.ts +1 -1
- package/dist/components/Organisms/Autocomplete/AutocompleteResult/AutocompleteResult.d.ts +2 -2
- package/dist/components/Organisms/Blocks/LastArticlesBlock/LastArticlesBlock.d.ts +1 -1
- package/dist/components/Organisms/Blocks/LastTutorialsBlock/LastTutorialsBlock.d.ts +2 -2
- package/dist/constants/systemProps/flexItemSystemProps.d.ts +2 -0
- package/dist/constants/systemProps/flexOrGridItemSystemProps.d.ts +2 -0
- package/dist/constants/systemProps/flexOrGridSystemProps.d.ts +2 -0
- package/dist/constants/systemProps/flexSystemProps.d.ts +2 -0
- package/dist/constants/systemProps/index.d.ts +4 -2
- package/dist/constants/tokenVariables.d.ts +40 -80
- package/dist/helpers/systemPropsHelper/flexItemSystemClassName.d.ts +2 -0
- package/dist/helpers/systemPropsHelper/flexOrGridItemSystemClassName.d.ts +2 -0
- package/dist/helpers/systemPropsHelper/flexOrGridSystemClassName.d.ts +2 -0
- package/dist/helpers/systemPropsHelper/flexSystemClassName.d.ts +2 -0
- package/dist/helpers/systemPropsHelper/index.d.ts +4 -2
- package/dist/index.es.js +1631 -1678
- package/dist/index.umd.cjs +15 -15
- package/dist/pages/AuthorPage/AuthorPage.d.ts +3 -17
- package/dist/pages/AuthorPage/AuthorPageContent.d.ts +19 -0
- package/dist/pages/AuthorPage/index.d.ts +1 -0
- package/dist/pages/CategoryPage/CategoryPage.d.ts +4 -6
- package/dist/pages/CategoryPage/CategoryPageContent.d.ts +8 -0
- package/dist/pages/CategoryPage/index.d.ts +1 -0
- package/dist/pages/PostPage/PostPage.d.ts +3 -21
- package/dist/pages/PostPage/PostPageContent.d.ts +24 -0
- package/dist/pages/PostPage/index.d.ts +1 -0
- package/dist/pages/SearchPage/SearchPage.d.ts +4 -10
- package/dist/pages/SearchPage/SearchPageContent.d.ts +10 -0
- package/dist/pages/SearchPage/index.d.ts +1 -0
- package/dist/scss/abstracts/mixins/_component.scss +14 -0
- package/dist/scss/abstracts/mixins/_index.scss +2 -0
- package/dist/scss/abstracts/mixins/_system_classes.scss +14 -0
- package/dist/scss/abstracts/mixins/_utility-classes.scss +10 -4
- package/dist/scss/abstracts/variables/_token-variables.scss +25 -49
- package/dist/scss/abstracts/variables/_variables.scss +14 -14
- package/dist/style.css +1 -1
- package/dist/templates/index.d.ts +1 -0
- package/dist/types/SystemProps/FlexItemSystemProps.d.ts +11 -0
- package/dist/types/SystemProps/FlexOrGridItemSystemProps.d.ts +8 -0
- package/dist/types/SystemProps/FlexOrGridSystemProps.d.ts +27 -0
- package/dist/types/SystemProps/FlexSystemProps.d.ts +12 -0
- package/dist/types/SystemProps/LayoutSystemProps.d.ts +5 -13
- package/dist/types/SystemProps/SystemProps.d.ts +3 -3
- package/dist/types/SystemProps/index.d.ts +4 -2
- package/dist/types/tokenTypes.d.ts +2 -2
- package/package.json +1 -1
- package/dist/constants/systemProps/flexBoxSystemProps.d.ts +0 -2
- package/dist/constants/systemProps/hiddenSystemProps.d.ts +0 -2
- package/dist/helpers/systemPropsHelper/flexBoxSystemClassName.d.ts +0 -2
- package/dist/helpers/systemPropsHelper/hiddenSystemClassName.d.ts +0 -2
- package/dist/types/SystemProps/FlexBoxSystemProps.d.ts +0 -48
- package/dist/types/SystemProps/HiddenSystemProps.d.ts +0 -11
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type {
|
|
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
|
|
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<"
|
|
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:
|
|
6
|
-
description:
|
|
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:
|
|
5
|
-
description:
|
|
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:
|
|
5
|
-
title:
|
|
6
|
-
description:
|
|
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:
|
|
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:
|
|
6
|
-
|
|
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:
|
|
7
|
-
description:
|
|
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
|
|
7
|
+
children?: React.ReactNode;
|
|
8
8
|
}
|
|
9
9
|
export declare const Link: import("react-polymorphed").PolyForwardComponent<"a", LinkProps, React.ElementType<any>>;
|
|
@@ -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:
|
|
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:
|
|
6
|
-
description:
|
|
5
|
+
title: React.ReactNode;
|
|
6
|
+
description: React.ReactNode;
|
|
7
7
|
posts: Partial<PostCardProps>[];
|
|
8
8
|
tutorialLabel: string;
|
|
9
9
|
linkSeeMore: {
|
|
@@ -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 './
|
|
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
|
|
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
|
-
'
|
|
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
|
-
|
|
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
|
-
|
|
171
|
-
|
|
172
|
-
value: string;
|
|
173
|
-
};
|
|
150
|
+
'icon-size': {
|
|
151
|
+
value: string;
|
|
174
152
|
};
|
|
175
153
|
};
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
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
|
-
|
|
194
|
-
|
|
195
|
-
value: string;
|
|
196
|
-
};
|
|
197
|
-
'icon-size': {
|
|
198
|
-
value: string;
|
|
199
|
-
};
|
|
158
|
+
'icon-size': {
|
|
159
|
+
value: string;
|
|
200
160
|
};
|
|
201
161
|
};
|
|
202
162
|
};
|
|
@@ -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';
|