@eleven-labs/design-system 0.23.0 → 0.25.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/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/Cards/ContactCard/ContactCard.d.ts +0 -1
  5. package/dist/components/Molecules/Cards/PostCard/PostCard.d.ts +2 -1
  6. package/dist/components/Molecules/ShareLinks/ShareLinks.d.ts +0 -3
  7. package/dist/components/Organisms/Autocomplete/Autocomplete.d.ts +1 -1
  8. package/dist/constants/systemProps/flexItemSystemProps.d.ts +2 -0
  9. package/dist/constants/systemProps/flexOrGridItemSystemProps.d.ts +2 -0
  10. package/dist/constants/systemProps/flexOrGridSystemProps.d.ts +2 -0
  11. package/dist/constants/systemProps/flexSystemProps.d.ts +2 -0
  12. package/dist/constants/systemProps/index.d.ts +4 -2
  13. package/dist/constants/tokenVariables.d.ts +60 -80
  14. package/dist/helpers/systemPropsHelper/flexItemSystemClassName.d.ts +2 -0
  15. package/dist/helpers/systemPropsHelper/flexOrGridItemSystemClassName.d.ts +2 -0
  16. package/dist/helpers/systemPropsHelper/flexOrGridSystemClassName.d.ts +2 -0
  17. package/dist/helpers/systemPropsHelper/flexSystemClassName.d.ts +2 -0
  18. package/dist/helpers/systemPropsHelper/index.d.ts +4 -2
  19. package/dist/index.es.js +2906 -3900
  20. package/dist/index.umd.cjs +16 -16
  21. package/dist/pages/AuthorPage/AuthorPageContent.d.ts +0 -1
  22. package/dist/pages/PostPage/PostPage.d.ts +0 -2
  23. package/dist/pages/PostPage/PostPageContent.d.ts +3 -0
  24. package/dist/scss/abstracts/mixins/_component.scss +14 -0
  25. package/dist/scss/abstracts/mixins/_index.scss +2 -0
  26. package/dist/scss/abstracts/mixins/_system_classes.scss +14 -0
  27. package/dist/scss/abstracts/mixins/_utility-classes.scss +10 -4
  28. package/dist/scss/abstracts/variables/_token-variables.scss +31 -48
  29. package/dist/scss/abstracts/variables/_variables.scss +14 -14
  30. package/dist/style.css +1 -1
  31. package/dist/svgs/access-time.svg +1 -1
  32. package/dist/svgs/arrow.svg +1 -1
  33. package/dist/svgs/calendar.svg +1 -1
  34. package/dist/svgs/facebook.svg +1 -1
  35. package/dist/svgs/language.svg +1 -1
  36. package/dist/svgs/link.svg +1 -1
  37. package/dist/svgs/linkedin.svg +1 -1
  38. package/dist/svgs/message.svg +1 -1
  39. package/dist/svgs/person.svg +1 -1
  40. package/dist/svgs/search.svg +1 -1
  41. package/dist/svgs/twitter.svg +1 -1
  42. package/dist/svgs/underline.svg +1 -1
  43. package/dist/types/SystemProps/FlexItemSystemProps.d.ts +11 -0
  44. package/dist/types/SystemProps/FlexOrGridItemSystemProps.d.ts +8 -0
  45. package/dist/types/SystemProps/FlexOrGridSystemProps.d.ts +27 -0
  46. package/dist/types/SystemProps/FlexSystemProps.d.ts +12 -0
  47. package/dist/types/SystemProps/LayoutSystemProps.d.ts +5 -13
  48. package/dist/types/SystemProps/SystemProps.d.ts +3 -3
  49. package/dist/types/SystemProps/index.d.ts +4 -2
  50. package/dist/types/tokenTypes.d.ts +2 -2
  51. package/package.json +1 -2
  52. package/dist/constants/systemProps/flexBoxSystemProps.d.ts +0 -2
  53. package/dist/constants/systemProps/hiddenSystemProps.d.ts +0 -2
  54. package/dist/helpers/systemPropsHelper/flexBoxSystemClassName.d.ts +0 -2
  55. package/dist/helpers/systemPropsHelper/hiddenSystemClassName.d.ts +0 -2
  56. package/dist/hooks/useCopyToClipboard.d.ts +0 -5
  57. package/dist/types/SystemProps/FlexBoxSystemProps.d.ts +0 -48
  58. 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>>;
@@ -3,7 +3,6 @@ import type { FlexProps } from '../../../../components';
3
3
  import type { ComponentPropsWithoutRef } from '../../../../types';
4
4
  export type ContactCardProps = {
5
5
  title: React.ReactNode;
6
- subtitle: React.ReactNode;
7
6
  description: React.ReactNode;
8
7
  link: {
9
8
  label: React.ReactNode;
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
2
  import type { BoxProps } from '../../../../components';
3
3
  import type { ComponentPropsWithoutRef } from '../../../../types';
4
- export declare const postCardVariant: readonly ["primary", "secondary"];
4
+ export declare const postCardVariant: readonly ["highlight-light", "highlight-dark", "side-image"];
5
5
  export type PostCardVariantType = (typeof postCardVariant)[number];
6
6
  export interface PostCardProps extends BoxProps {
7
7
  contentType?: 'article' | 'tutorial';
8
8
  variant?: PostCardVariantType;
9
+ cover?: ComponentPropsWithoutRef<'img'>;
9
10
  slug?: string;
10
11
  title?: string;
11
12
  excerpt?: string;
@@ -3,12 +3,9 @@ import type { MarginSystemProps } from '../../../types';
3
3
  export interface ShareLinksProps extends MarginSystemProps {
4
4
  urlToShare: string;
5
5
  shares: {
6
- copyLink?: boolean;
7
6
  twitter?: boolean;
8
7
  facebook?: boolean;
9
8
  linkedIn?: boolean;
10
- reddit?: boolean;
11
9
  };
12
- copiedLabel?: string;
13
10
  }
14
11
  export declare const ShareLinks: React.FC<ShareLinksProps>;
@@ -8,5 +8,5 @@ export type AutocompleteOptions = {
8
8
  defaultValue?: string;
9
9
  onEnter?: (value: string) => void;
10
10
  };
11
- export type AutocompleteProps = BoxProps & AutocompleteOptions & Omit<AutocompleteResultOptions, 'highlightedIndex' | 'searchLink'> & Pick<UseComboboxProps<AutocompleteItem>, 'onInputValueChange' | 'onSelectedItemChange'>;
11
+ export type AutocompleteProps = BoxProps & AutocompleteOptions & Omit<AutocompleteResultOptions, 'highlightedIndex' | 'searchLink'> & Pick<UseComboboxProps<AutocompleteItem>, 'onInputValueChange' | 'onSelectedItemChange' | 'isOpen'>;
12
12
  export declare const Autocomplete: import("react-polymorphed").PolyForwardComponent<"div", AutocompleteProps, React.ElementType<any>>;
@@ -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 Fri, 19 Jan 2024 10:37:41 GMT
3
+ * Generated on Mon, 29 Jan 2024 15:10:24 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,47 @@ export declare const tokenVariables: {
121
92
  'line-height': {
122
93
  value: string;
123
94
  };
95
+ 'letter-spacing': {
96
+ value: string;
97
+ };
98
+ };
99
+ s: {
100
+ 'font-size': {
101
+ value: string;
102
+ };
124
103
  'font-weight': {
125
104
  value: string;
126
105
  };
106
+ 'text-transform': {
107
+ value: string;
108
+ };
109
+ };
110
+ m: {
111
+ 'font-size': {
112
+ value: string;
113
+ };
114
+ 'font-weight': {
115
+ value: string;
116
+ };
117
+ };
118
+ l: {
119
+ 'font-size': {
120
+ value: string;
121
+ };
127
122
  };
128
123
  xl: {
124
+ 'font-size': {
125
+ value: string;
126
+ };
129
127
  'font-weight': {
130
128
  value: string;
131
129
  };
130
+ 'text-transform': {
131
+ value: string;
132
+ };
133
+ 'letter-spacing': {
134
+ value: string;
135
+ };
132
136
  };
133
137
  };
134
138
  text: {
@@ -138,65 +142,27 @@ export declare const tokenVariables: {
138
142
  };
139
143
  };
140
144
  xs: {
141
- 'line-height': {
145
+ 'font-size': {
142
146
  value: string;
143
147
  };
144
- };
145
- m: {
146
- 'line-height': {
148
+ 'icon-size': {
147
149
  value: string;
148
150
  };
149
151
  };
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
- };
152
+ s: {
153
+ 'font-size': {
154
+ value: string;
169
155
  };
170
- xl: {
171
- 'font-size': {
172
- value: string;
173
- };
156
+ 'icon-size': {
157
+ value: string;
174
158
  };
175
159
  };
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
- };
160
+ m: {
161
+ 'font-size': {
162
+ value: string;
192
163
  };
193
- m: {
194
- 'font-size': {
195
- value: string;
196
- };
197
- 'icon-size': {
198
- value: string;
199
- };
164
+ 'icon-size': {
165
+ value: string;
200
166
  };
201
167
  };
202
168
  };
@@ -336,6 +302,20 @@ export declare const tokenVariables: {
336
302
  value: string;
337
303
  };
338
304
  };
305
+ radius: {
306
+ xs: {
307
+ value: string;
308
+ description: string;
309
+ };
310
+ s: {
311
+ value: string;
312
+ description: string;
313
+ };
314
+ 'full-rounded': {
315
+ value: string;
316
+ description: string;
317
+ };
318
+ };
339
319
  spacing: {
340
320
  '0': {
341
321
  value: string;
@@ -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';