@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.
- 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/Cards/ContactCard/ContactCard.d.ts +0 -1
- package/dist/components/Molecules/Cards/PostCard/PostCard.d.ts +2 -1
- package/dist/components/Molecules/ShareLinks/ShareLinks.d.ts +0 -3
- package/dist/components/Organisms/Autocomplete/Autocomplete.d.ts +1 -1
- 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 +60 -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 +2906 -3900
- package/dist/index.umd.cjs +16 -16
- package/dist/pages/AuthorPage/AuthorPageContent.d.ts +0 -1
- package/dist/pages/PostPage/PostPage.d.ts +0 -2
- package/dist/pages/PostPage/PostPageContent.d.ts +3 -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 +31 -48
- package/dist/scss/abstracts/variables/_variables.scss +14 -14
- package/dist/style.css +1 -1
- package/dist/svgs/access-time.svg +1 -1
- package/dist/svgs/arrow.svg +1 -1
- package/dist/svgs/calendar.svg +1 -1
- package/dist/svgs/facebook.svg +1 -1
- package/dist/svgs/language.svg +1 -1
- package/dist/svgs/link.svg +1 -1
- package/dist/svgs/linkedin.svg +1 -1
- package/dist/svgs/message.svg +1 -1
- package/dist/svgs/person.svg +1 -1
- package/dist/svgs/search.svg +1 -1
- package/dist/svgs/twitter.svg +1 -1
- package/dist/svgs/underline.svg +1 -1
- 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 -2
- 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/hooks/useCopyToClipboard.d.ts +0 -5
- package/dist/types/SystemProps/FlexBoxSystemProps.d.ts +0 -48
- package/dist/types/SystemProps/HiddenSystemProps.d.ts +0 -11
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TypeWithMediaQueriesType } from '../../types';
|
|
2
|
+
import type { FlexDirectionType, FlexWrapType } from '../../types';
|
|
3
|
+
export interface FlexSystemProps {
|
|
4
|
+
/**
|
|
5
|
+
* flex-direction (including breakpoints modifiers)
|
|
6
|
+
*/
|
|
7
|
+
flexDirection?: TypeWithMediaQueriesType<FlexDirectionType>;
|
|
8
|
+
/**
|
|
9
|
+
* Can flex items wrap onto multiple lines (including breakpoints modifiers)
|
|
10
|
+
*/
|
|
11
|
+
flexWrap?: TypeWithMediaQueriesType<FlexWrapType>;
|
|
12
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DisplayType, HeightType, TypeWithMediaQueriesType, WidthType } from '../../types';
|
|
1
|
+
import type { DisplayType, HeightType, MediaQueryType, TypeWithMediaQueriesType, WidthType } from '../../types';
|
|
2
2
|
export interface LayoutSystemProps {
|
|
3
3
|
/**
|
|
4
4
|
* display (including breakpoints modifiers)
|
|
@@ -13,19 +13,11 @@ export interface LayoutSystemProps {
|
|
|
13
13
|
*/
|
|
14
14
|
height?: TypeWithMediaQueriesType<HeightType>;
|
|
15
15
|
/**
|
|
16
|
-
* min-width (including breakpoints modifiers)
|
|
16
|
+
* Defines hidden above strategy with media queries (is similar to "min-width") (including breakpoints modifiers)
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
hiddenAbove?: MediaQueryType;
|
|
19
19
|
/**
|
|
20
|
-
* max-width (including breakpoints modifiers)
|
|
20
|
+
* Defines hidden below strategy with media queries (is similar to "max-width") (including breakpoints modifiers)
|
|
21
21
|
*/
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* min-height (including breakpoints modifiers)
|
|
25
|
-
*/
|
|
26
|
-
minHeight?: TypeWithMediaQueriesType<HeightType>;
|
|
27
|
-
/**
|
|
28
|
-
* max-height (including breakpoints modifiers)
|
|
29
|
-
*/
|
|
30
|
-
maxHeight?: TypeWithMediaQueriesType<HeightType>;
|
|
22
|
+
hiddenBelow?: MediaQueryType;
|
|
31
23
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ColorSystemProps } from './ColorSystemProps';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { FlexItemSystemProps } from './FlexItemSystemProps';
|
|
3
|
+
import type { FlexOrGridItemSystemProps } from './FlexOrGridItemSystemProps';
|
|
4
4
|
import type { LayoutSystemProps } from './LayoutSystemProps';
|
|
5
5
|
import type { SpacingSystemProps } from './SpacingSystemProps';
|
|
6
6
|
import type { TypographySystemProps } from './TypographySystemProps';
|
|
7
|
-
export interface SystemProps extends SpacingSystemProps, ColorSystemProps, TypographySystemProps, LayoutSystemProps,
|
|
7
|
+
export interface SystemProps extends SpacingSystemProps, ColorSystemProps, TypographySystemProps, LayoutSystemProps, FlexOrGridItemSystemProps, FlexItemSystemProps {
|
|
8
8
|
}
|
|
@@ -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';
|
|
@@ -5,5 +5,5 @@ export type WidthType = keyof (typeof tokenVariables)['width'];
|
|
|
5
5
|
export type HeightType = keyof (typeof tokenVariables)['height'];
|
|
6
6
|
export type FontWeightType = keyof (typeof tokenVariables)['font-weight'];
|
|
7
7
|
export type IconNameType = keyof (typeof tokenVariables)['asset']['icon'];
|
|
8
|
-
export type HeadingSizeType = keyof ((typeof tokenVariables)['
|
|
9
|
-
export type TextSizeType = keyof ((typeof tokenVariables)['
|
|
8
|
+
export type HeadingSizeType = keyof ((typeof tokenVariables)['typography']['heading'] | (typeof tokenVariables)['desktop']['typography']['heading']);
|
|
9
|
+
export type TextSizeType = keyof ((typeof tokenVariables)['typography']['text'] | (typeof tokenVariables)['desktop']['typography']['text']);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eleven-labs/design-system",
|
|
3
3
|
"description": "Design System for Eleven Labs",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.25.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/eleven-labs/design-system.git"
|
|
@@ -55,7 +55,6 @@
|
|
|
55
55
|
"copy-to-clipboard": "^3.3.3",
|
|
56
56
|
"downshift": "^8.3.1",
|
|
57
57
|
"react-polymorphed": "^2.2.1",
|
|
58
|
-
"react-share": "^5.0.3",
|
|
59
58
|
"react-syntax-highlighter": "^15.5.0"
|
|
60
59
|
},
|
|
61
60
|
"peerDependencies": {
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type React from 'react';
|
|
2
|
-
export type Content = React.RefObject<HTMLElement | HTMLInputElement> | number | string;
|
|
3
|
-
export type Timeout = number;
|
|
4
|
-
export type useCopyTextReturn = [() => void, boolean];
|
|
5
|
-
export declare function useCopyText(content: Content, timeout: Timeout): useCopyTextReturn;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { AlignContentType, AlignItemsType, FlexType, JustifyContentType, SpacingType, TypeWithMediaQueriesType } from '../../types';
|
|
2
|
-
import type { AlignSelfType, FlexBasisType, FlexDirectionType, FlexWrapType } from '../../types';
|
|
3
|
-
export interface FlexBoxSystemProps {
|
|
4
|
-
/**
|
|
5
|
-
* flex-direction (including breakpoints modifiers)
|
|
6
|
-
*/
|
|
7
|
-
flexDirection?: TypeWithMediaQueriesType<FlexDirectionType>;
|
|
8
|
-
/**
|
|
9
|
-
* Can flex items wrap onto multiple lines (including breakpoints modifiers)
|
|
10
|
-
*/
|
|
11
|
-
flexWrap?: TypeWithMediaQueriesType<FlexWrapType>;
|
|
12
|
-
/**
|
|
13
|
-
* align-items (including breakpoints modifiers)
|
|
14
|
-
*/
|
|
15
|
-
alignItems?: TypeWithMediaQueriesType<AlignItemsType>;
|
|
16
|
-
/**
|
|
17
|
-
* align-content (including breakpoints modifiers)
|
|
18
|
-
*/
|
|
19
|
-
alignContent?: TypeWithMediaQueriesType<AlignContentType>;
|
|
20
|
-
/**
|
|
21
|
-
* Defines horizontal alignment along the main axis (including breakpoints modifiers)
|
|
22
|
-
*/
|
|
23
|
-
justifyContent?: TypeWithMediaQueriesType<JustifyContentType>;
|
|
24
|
-
/**
|
|
25
|
-
* Defines a align self (including breakpoints modifiers)
|
|
26
|
-
*/
|
|
27
|
-
alignSelf?: TypeWithMediaQueriesType<AlignSelfType>;
|
|
28
|
-
/**
|
|
29
|
-
* Defines gap for col and row (including breakpoints modifiers)
|
|
30
|
-
*/
|
|
31
|
-
gap?: TypeWithMediaQueriesType<SpacingType>;
|
|
32
|
-
/**
|
|
33
|
-
* Defines row gap (including breakpoints modifiers)
|
|
34
|
-
*/
|
|
35
|
-
gapX?: TypeWithMediaQueriesType<SpacingType>;
|
|
36
|
-
/**
|
|
37
|
-
* Defines col gap (including breakpoints modifiers)
|
|
38
|
-
*/
|
|
39
|
-
gapY?: TypeWithMediaQueriesType<SpacingType>;
|
|
40
|
-
/**
|
|
41
|
-
* Defines a flex basis, auto or number (including breakpoints modifiers)
|
|
42
|
-
*/
|
|
43
|
-
flexBasis?: TypeWithMediaQueriesType<FlexBasisType>;
|
|
44
|
-
/**
|
|
45
|
-
* Defines a flex (including breakpoints modifiers)
|
|
46
|
-
*/
|
|
47
|
-
flex?: TypeWithMediaQueriesType<FlexType>;
|
|
48
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { MediaQueryType } from '../../types';
|
|
2
|
-
export interface HiddenSystemProps {
|
|
3
|
-
/**
|
|
4
|
-
* Defines hidden above strategy with media queries (is similar to "min-width") (including breakpoints modifiers)
|
|
5
|
-
*/
|
|
6
|
-
hiddenAbove?: MediaQueryType;
|
|
7
|
-
/**
|
|
8
|
-
* Defines hidden below strategy with media queries (is similar to "max-width") (including breakpoints modifiers)
|
|
9
|
-
*/
|
|
10
|
-
hiddenBelow?: MediaQueryType;
|
|
11
|
-
}
|