@eleven-labs/design-system 0.5.3
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/LICENSE +21 -0
- package/Readme.md +35 -0
- package/dist/components/Atoms/Button/Button.d.ts +9 -0
- package/dist/components/Atoms/Button/index.d.ts +1 -0
- package/dist/components/Atoms/Icon/Icon.d.ts +7 -0
- package/dist/components/Atoms/Icon/index.d.ts +1 -0
- package/dist/components/Atoms/Layout/Box/Box.d.ts +3 -0
- package/dist/components/Atoms/Layout/Box/index.d.ts +1 -0
- package/dist/components/Atoms/Layout/Flex/Flex.d.ts +6 -0
- package/dist/components/Atoms/Layout/Flex/index.d.ts +1 -0
- package/dist/components/Atoms/Layout/index.d.ts +2 -0
- package/dist/components/Atoms/Logo/Logo.d.ts +6 -0
- package/dist/components/Atoms/Logo/index.d.ts +1 -0
- package/dist/components/Atoms/Svgs/AccessTime.d.ts +3 -0
- package/dist/components/Atoms/Svgs/ArrowBack.d.ts +3 -0
- package/dist/components/Atoms/Svgs/BlogLogo.d.ts +3 -0
- package/dist/components/Atoms/Svgs/Calendar.d.ts +3 -0
- package/dist/components/Atoms/Svgs/Close.d.ts +3 -0
- package/dist/components/Atoms/Svgs/Facebook.d.ts +3 -0
- package/dist/components/Atoms/Svgs/Language.d.ts +3 -0
- package/dist/components/Atoms/Svgs/Link.d.ts +3 -0
- package/dist/components/Atoms/Svgs/Linkedin.d.ts +3 -0
- package/dist/components/Atoms/Svgs/Logo.d.ts +3 -0
- package/dist/components/Atoms/Svgs/Message.d.ts +3 -0
- package/dist/components/Atoms/Svgs/Person.d.ts +3 -0
- package/dist/components/Atoms/Svgs/Reddit.d.ts +3 -0
- package/dist/components/Atoms/Svgs/Rss.d.ts +3 -0
- package/dist/components/Atoms/Svgs/Search.d.ts +3 -0
- package/dist/components/Atoms/Svgs/Twitter.d.ts +3 -0
- package/dist/components/Atoms/Svgs/WebsiteLogo.d.ts +3 -0
- package/dist/components/Atoms/Svgs/Welcometothejungle.d.ts +3 -0
- package/dist/components/Atoms/Svgs/index.d.ts +18 -0
- package/dist/components/Atoms/Typography/Heading/Heading.d.ts +6 -0
- package/dist/components/Atoms/Typography/Heading/index.d.ts +1 -0
- package/dist/components/Atoms/Typography/Text/Text.d.ts +6 -0
- package/dist/components/Atoms/Typography/Text/index.d.ts +1 -0
- package/dist/components/Atoms/Typography/index.d.ts +2 -0
- package/dist/components/Atoms/index.d.ts +6 -0
- package/dist/components/Molecules/Link/Link.d.ts +7 -0
- package/dist/components/Molecules/Link/index.d.ts +1 -0
- package/dist/components/Molecules/SearchField/SearchField.d.ts +10 -0
- package/dist/components/Molecules/SearchField/index.d.ts +1 -0
- package/dist/components/Molecules/TextHighlight/TextHighlight.d.ts +8 -0
- package/dist/components/Molecules/TextHighlight/index.d.ts +1 -0
- package/dist/components/Molecules/index.d.ts +3 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/constants/cssProperties.d.ts +195 -0
- package/dist/constants/cssPropertyNameList.d.ts +11 -0
- package/dist/constants/index.d.ts +7 -0
- package/dist/constants/matchMediaQueryList.d.ts +9 -0
- package/dist/constants/mediaQueriesList.d.ts +2 -0
- package/dist/constants/systemProps/colorSystemProps.d.ts +2 -0
- package/dist/constants/systemProps/flexBoxSystemProps.d.ts +2 -0
- package/dist/constants/systemProps/hiddenSystemProps.d.ts +2 -0
- package/dist/constants/systemProps/index.d.ts +7 -0
- package/dist/constants/systemProps/layoutSystemProps.d.ts +2 -0
- package/dist/constants/systemProps/spacingSystemProps.d.ts +4 -0
- package/dist/constants/systemProps/systemProps.d.ts +2 -0
- package/dist/constants/systemProps/typographySystemProps.d.ts +2 -0
- package/dist/constants/tokenNameList.d.ts +10 -0
- package/dist/constants/tokenVariables.d.ts +393 -0
- package/dist/documentations/imgs/atomic-design-tokens.jpg +0 -0
- package/dist/documentations/imgs/logo.svg +8 -0
- package/dist/fonts/WorkSans-Bold.woff +0 -0
- package/dist/fonts/WorkSans-Bold.woff2 +0 -0
- package/dist/fonts/WorkSans-Medium.woff +0 -0
- package/dist/fonts/WorkSans-Medium.woff2 +0 -0
- package/dist/fonts/WorkSans-Regular.woff +0 -0
- package/dist/fonts/WorkSans-Regular.woff2 +0 -0
- package/dist/helpers/stringHelper.d.ts +3 -0
- package/dist/helpers/systemPropsHelper/classNameWithModifier.d.ts +5 -0
- package/dist/helpers/systemPropsHelper/classNamesWithModifiers.d.ts +6 -0
- package/dist/helpers/systemPropsHelper/colorSystemClassName.d.ts +2 -0
- package/dist/helpers/systemPropsHelper/flexBoxSystemClassName.d.ts +2 -0
- package/dist/helpers/systemPropsHelper/forwardRef.d.ts +7 -0
- package/dist/helpers/systemPropsHelper/hiddenSystemClassName.d.ts +2 -0
- package/dist/helpers/systemPropsHelper/index.d.ts +11 -0
- package/dist/helpers/systemPropsHelper/layoutSystemClassName.d.ts +2 -0
- package/dist/helpers/systemPropsHelper/omitSystemProps.d.ts +4 -0
- package/dist/helpers/systemPropsHelper/spacingSystemClassName.d.ts +2 -0
- package/dist/helpers/systemPropsHelper/systemClassName.d.ts +2 -0
- package/dist/helpers/systemPropsHelper/typographySystemClassName.d.ts +2 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/useLayoutEffect.d.ts +2 -0
- package/dist/hooks/useMediaQuery.d.ts +2 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.es.js +1899 -0
- package/dist/index.umd.cjs +31 -0
- package/dist/scss/abstracts/_index.scss +3 -0
- package/dist/scss/abstracts/functions/_index.scss +1 -0
- package/dist/scss/abstracts/functions/_list.scss +25 -0
- package/dist/scss/abstracts/mixins/_create-media-queries.scss +30 -0
- package/dist/scss/abstracts/mixins/_index.scss +2 -0
- package/dist/scss/abstracts/mixins/_utility-classes.scss +35 -0
- package/dist/scss/abstracts/variables/_css-properties.scss +81 -0
- package/dist/scss/abstracts/variables/_index.scss +3 -0
- package/dist/scss/abstracts/variables/_token-variables.scss +167 -0
- package/dist/scss/abstracts/variables/_variables.scss +41 -0
- package/dist/style.css +1 -0
- package/dist/svgs/access-time.svg +1 -0
- package/dist/svgs/arrow-back.svg +1 -0
- package/dist/svgs/blog-logo.svg +1 -0
- package/dist/svgs/calendar.svg +1 -0
- package/dist/svgs/close.svg +1 -0
- package/dist/svgs/facebook.svg +1 -0
- package/dist/svgs/language.svg +1 -0
- package/dist/svgs/link.svg +1 -0
- package/dist/svgs/linkedin.svg +1 -0
- package/dist/svgs/logo.svg +1 -0
- package/dist/svgs/message.svg +1 -0
- package/dist/svgs/person.svg +1 -0
- package/dist/svgs/reddit.svg +1 -0
- package/dist/svgs/rss.svg +1 -0
- package/dist/svgs/search.svg +1 -0
- package/dist/svgs/twitter.svg +1 -0
- package/dist/svgs/website-logo.svg +1 -0
- package/dist/svgs/welcometothejungle.svg +1 -0
- package/dist/types/MatchBreakpointsType.d.ts +1 -0
- package/dist/types/MediaQueryType.d.ts +2 -0
- package/dist/types/SystemProps/AsProps.d.ts +4 -0
- package/dist/types/SystemProps/ColorSystemProps.d.ts +11 -0
- package/dist/types/SystemProps/ComponentWithAs.d.ts +16 -0
- package/dist/types/SystemProps/FlexBoxSystemProps.d.ts +48 -0
- package/dist/types/SystemProps/HiddenSystemProps.d.ts +11 -0
- package/dist/types/SystemProps/LayoutSystemProps.d.ts +31 -0
- package/dist/types/SystemProps/SpacingSystemProps.d.ts +63 -0
- package/dist/types/SystemProps/SystemProps.d.ts +3 -0
- package/dist/types/SystemProps/TypographySystemProps.d.ts +27 -0
- package/dist/types/SystemProps/index.d.ts +9 -0
- package/dist/types/TypeWithModifier.d.ts +3 -0
- package/dist/types/cssPropertyTypes.d.ts +12 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/tokenTypes.d.ts +10 -0
- package/dist/typings.d.ts +5 -0
- package/dist/vite-env.d.ts +1 -0
- package/package.json +110 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014 Rohan Chandra
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/Readme.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Welcome to the Eleven Labs Design System
|
|
2
|
+
|
|
3
|
+
## What is a Design System ?
|
|
4
|
+
|
|
5
|
+
An ecosystem, including graphic and visual elements but also typography, color codes and common rules of use.
|
|
6
|
+
|
|
7
|
+
Fundamentals:
|
|
8
|
+
- Must contain only presentation components
|
|
9
|
+
- Does not contain business logic
|
|
10
|
+
- Independent of the data and its loading
|
|
11
|
+
- Documentations and examples of use
|
|
12
|
+
|
|
13
|
+
## Why create a Design System ?
|
|
14
|
+
|
|
15
|
+
Its role is to improve the UI and especially to have a graphic and functional consistency. It should be the reference and the source of truth for the brand.
|
|
16
|
+
|
|
17
|
+
Subsequently, it should also allow to be faster in the developments and thus limit the expenses in the Design.
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
Using NPM:
|
|
23
|
+
```
|
|
24
|
+
npm install @eleven-labs/design-system
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Using Yarn:
|
|
29
|
+
```
|
|
30
|
+
yarn add @eleven-labs/design-system
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Documentation of Design System
|
|
34
|
+
|
|
35
|
+
To see the different components of the Design System please visit [website](https://eleven-labs.github.io/design-system/).
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { As, AsProps, SpacingSystemProps } from '../../../types';
|
|
2
|
+
export declare const buttonVariant: readonly ["primary", "secondary"];
|
|
3
|
+
export type ButtonVariantType = (typeof buttonVariant)[number];
|
|
4
|
+
export type ButtonOptions = {
|
|
5
|
+
variant?: ButtonVariantType;
|
|
6
|
+
isChoiceChip?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type ButtonProps<T extends As = 'button'> = AsProps<T> & SpacingSystemProps & ButtonOptions;
|
|
9
|
+
export declare const Button: import('../../../types').ComponentWithAs<"button", ButtonProps<"button">>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Button';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ColorSystemProps, IconNameType, MarginSystemProps } from '../../../types';
|
|
3
|
+
export type IconProps = Omit<React.SVGProps<SVGSVGElement>, 'color'> & MarginSystemProps & Pick<ColorSystemProps, 'color'> & {
|
|
4
|
+
name: IconNameType;
|
|
5
|
+
size?: string | number;
|
|
6
|
+
};
|
|
7
|
+
export declare const Icon: React.FC<IconProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Icon';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Box';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BoxProps } from '../../../../components';
|
|
2
|
+
import { As, DisplayType, TypeWithMediaQueriesType } from '../../../../types';
|
|
3
|
+
export type FlexProps<T extends As = 'div'> = Omit<BoxProps<T>, 'display'> & {
|
|
4
|
+
display?: TypeWithMediaQueriesType<Extract<DisplayType, 'flex' | 'inline-flex'>>;
|
|
5
|
+
};
|
|
6
|
+
export declare const Flex: import('../../../../types').ComponentWithAs<"div", FlexProps<"div">>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Flex';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AsProps, ColorSystemProps, LogoNameType, MarginSystemProps } from '../../../types';
|
|
2
|
+
export type LogoProps = AsProps<'div'> & MarginSystemProps & Pick<ColorSystemProps, 'color'> & {
|
|
3
|
+
name: LogoNameType;
|
|
4
|
+
size?: string | number;
|
|
5
|
+
};
|
|
6
|
+
export declare const Logo: import('../../../types').ComponentWithAs<"div", LogoProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Logo';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { default as AccessTime } from "./AccessTime";
|
|
2
|
+
export { default as ArrowBack } from "./ArrowBack";
|
|
3
|
+
export { default as BlogLogo } from "./BlogLogo";
|
|
4
|
+
export { default as Calendar } from "./Calendar";
|
|
5
|
+
export { default as Close } from "./Close";
|
|
6
|
+
export { default as Facebook } from "./Facebook";
|
|
7
|
+
export { default as Language } from "./Language";
|
|
8
|
+
export { default as Link } from "./Link";
|
|
9
|
+
export { default as Linkedin } from "./Linkedin";
|
|
10
|
+
export { default as Logo } from "./Logo";
|
|
11
|
+
export { default as Message } from "./Message";
|
|
12
|
+
export { default as Person } from "./Person";
|
|
13
|
+
export { default as Reddit } from "./Reddit";
|
|
14
|
+
export { default as Rss } from "./Rss";
|
|
15
|
+
export { default as Search } from "./Search";
|
|
16
|
+
export { default as Twitter } from "./Twitter";
|
|
17
|
+
export { default as WebsiteLogo } from "./WebsiteLogo";
|
|
18
|
+
export { default as Welcometothejungle } from "./Welcometothejungle";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { As, AsProps, ColorSystemProps, HeadingSizeType, SpacingSystemProps, TypographySystemProps } from '../../../../types';
|
|
2
|
+
export interface HeadingOptions {
|
|
3
|
+
size?: HeadingSizeType;
|
|
4
|
+
}
|
|
5
|
+
export type HeadingProps<T extends As = 'h1'> = AsProps<T> & HeadingOptions & Omit<TypographySystemProps, 'textSize' | 'fontWeight'> & Pick<ColorSystemProps, 'color'> & SpacingSystemProps;
|
|
6
|
+
export declare const Heading: import('../../../../types').ComponentWithAs<"h1", HeadingProps<"h1">>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Heading';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { As, AsProps, ColorSystemProps, HiddenSystemProps, SpacingSystemProps, TextSizeType, TypographySystemProps } from '../../../../types';
|
|
2
|
+
export interface TextOptions {
|
|
3
|
+
size?: TextSizeType;
|
|
4
|
+
}
|
|
5
|
+
export type TextProps<T extends As = 'p'> = AsProps<T> & TextOptions & Omit<TypographySystemProps, 'textSize'> & Pick<ColorSystemProps, 'color'> & SpacingSystemProps & HiddenSystemProps;
|
|
6
|
+
export declare const Text: import('../../../../types').ComponentWithAs<"p", TextProps<"p">>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Text';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TextProps } from '../../../components';
|
|
2
|
+
import { As, IconNameType } from '../../../types';
|
|
3
|
+
export type LinkOptions = {
|
|
4
|
+
icon?: IconNameType;
|
|
5
|
+
};
|
|
6
|
+
export type LinkProps<T extends As = 'a'> = Omit<TextProps<T>, 'color' | 'underline' | 'fontWeight'> & LinkOptions;
|
|
7
|
+
export declare const Link: import('../../../types').ComponentWithAs<"a", LinkProps<"a">>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Link';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BoxProps } from '../../../components';
|
|
3
|
+
import { AsProps } from '../../../types';
|
|
4
|
+
export type SearchFieldOptions = {
|
|
5
|
+
input: React.ComponentPropsWithRef<'input'>;
|
|
6
|
+
buttonSearch: AsProps<'button'>;
|
|
7
|
+
buttonClose?: AsProps<'button'>;
|
|
8
|
+
};
|
|
9
|
+
export type SearchFieldProps = BoxProps & SearchFieldOptions;
|
|
10
|
+
export declare const SearchField: import('../../../types').ComponentWithAs<"div", SearchFieldProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SearchField';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TextOptions } from '../../../components';
|
|
2
|
+
import { As, AsProps, HiddenSystemProps, MarginSystemProps } from '../../../types';
|
|
3
|
+
export type TextHighlightOptions = {
|
|
4
|
+
text: string;
|
|
5
|
+
textQuery?: string;
|
|
6
|
+
};
|
|
7
|
+
export type TextHighlightProps<T extends As = 'p'> = AsProps<T> & MarginSystemProps & HiddenSystemProps & TextOptions & TextHighlightOptions;
|
|
8
|
+
export declare const TextHighlight: import('../../../types').ComponentWithAs<"p", TextHighlightProps<"p">>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TextHighlight';
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
export declare const cssProperties: {
|
|
2
|
+
display: {
|
|
3
|
+
block: {
|
|
4
|
+
value: string;
|
|
5
|
+
};
|
|
6
|
+
'inline-block': {
|
|
7
|
+
value: string;
|
|
8
|
+
};
|
|
9
|
+
inline: {
|
|
10
|
+
value: string;
|
|
11
|
+
};
|
|
12
|
+
flex: {
|
|
13
|
+
value: string;
|
|
14
|
+
};
|
|
15
|
+
'inline-flex': {
|
|
16
|
+
value: string;
|
|
17
|
+
};
|
|
18
|
+
grid: {
|
|
19
|
+
value: string;
|
|
20
|
+
};
|
|
21
|
+
'inline-grid': {
|
|
22
|
+
value: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
'align-content': {
|
|
26
|
+
start: {
|
|
27
|
+
value: string;
|
|
28
|
+
};
|
|
29
|
+
end: {
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
32
|
+
center: {
|
|
33
|
+
value: string;
|
|
34
|
+
};
|
|
35
|
+
between: {
|
|
36
|
+
value: string;
|
|
37
|
+
};
|
|
38
|
+
around: {
|
|
39
|
+
value: string;
|
|
40
|
+
};
|
|
41
|
+
evenly: {
|
|
42
|
+
value: string;
|
|
43
|
+
};
|
|
44
|
+
stretch: {
|
|
45
|
+
value: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
'align-items': {
|
|
49
|
+
start: {
|
|
50
|
+
value: string;
|
|
51
|
+
};
|
|
52
|
+
end: {
|
|
53
|
+
value: string;
|
|
54
|
+
};
|
|
55
|
+
center: {
|
|
56
|
+
value: string;
|
|
57
|
+
};
|
|
58
|
+
baseline: {
|
|
59
|
+
value: string;
|
|
60
|
+
};
|
|
61
|
+
stretch: {
|
|
62
|
+
value: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
'align-self': {
|
|
66
|
+
auto: {
|
|
67
|
+
value: string;
|
|
68
|
+
};
|
|
69
|
+
start: {
|
|
70
|
+
value: string;
|
|
71
|
+
};
|
|
72
|
+
end: {
|
|
73
|
+
value: string;
|
|
74
|
+
};
|
|
75
|
+
center: {
|
|
76
|
+
value: string;
|
|
77
|
+
};
|
|
78
|
+
stretch: {
|
|
79
|
+
value: string;
|
|
80
|
+
};
|
|
81
|
+
baseline: {
|
|
82
|
+
value: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
'flex-basis': {
|
|
86
|
+
'0': {
|
|
87
|
+
value: string;
|
|
88
|
+
};
|
|
89
|
+
'25': {
|
|
90
|
+
value: string;
|
|
91
|
+
};
|
|
92
|
+
'33': {
|
|
93
|
+
value: string;
|
|
94
|
+
};
|
|
95
|
+
'50': {
|
|
96
|
+
value: string;
|
|
97
|
+
};
|
|
98
|
+
'75': {
|
|
99
|
+
value: string;
|
|
100
|
+
};
|
|
101
|
+
'100': {
|
|
102
|
+
value: string;
|
|
103
|
+
};
|
|
104
|
+
auto: {
|
|
105
|
+
value: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
'flex-direction': {
|
|
109
|
+
column: {
|
|
110
|
+
value: string;
|
|
111
|
+
};
|
|
112
|
+
row: {
|
|
113
|
+
value: string;
|
|
114
|
+
};
|
|
115
|
+
'column-reverse': {
|
|
116
|
+
value: string;
|
|
117
|
+
};
|
|
118
|
+
'row-reverse': {
|
|
119
|
+
value: string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
'flex-wrap': {
|
|
123
|
+
wrap: {
|
|
124
|
+
value: string;
|
|
125
|
+
};
|
|
126
|
+
'wrap-reverse': {
|
|
127
|
+
value: string;
|
|
128
|
+
};
|
|
129
|
+
'no-wrap': {
|
|
130
|
+
value: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
flex: {
|
|
134
|
+
'1': {
|
|
135
|
+
value: string;
|
|
136
|
+
};
|
|
137
|
+
auto: {
|
|
138
|
+
value: string;
|
|
139
|
+
};
|
|
140
|
+
initial: {
|
|
141
|
+
value: string;
|
|
142
|
+
};
|
|
143
|
+
none: {
|
|
144
|
+
value: string;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
'justify-content': {
|
|
148
|
+
start: {
|
|
149
|
+
value: string;
|
|
150
|
+
};
|
|
151
|
+
end: {
|
|
152
|
+
value: string;
|
|
153
|
+
};
|
|
154
|
+
center: {
|
|
155
|
+
value: string;
|
|
156
|
+
};
|
|
157
|
+
between: {
|
|
158
|
+
value: string;
|
|
159
|
+
};
|
|
160
|
+
around: {
|
|
161
|
+
value: string;
|
|
162
|
+
};
|
|
163
|
+
evenly: {
|
|
164
|
+
value: string;
|
|
165
|
+
};
|
|
166
|
+
stretch: {
|
|
167
|
+
value: string;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
'text-align': {
|
|
171
|
+
left: {
|
|
172
|
+
value: string;
|
|
173
|
+
};
|
|
174
|
+
center: {
|
|
175
|
+
value: string;
|
|
176
|
+
};
|
|
177
|
+
right: {
|
|
178
|
+
value: string;
|
|
179
|
+
};
|
|
180
|
+
justify: {
|
|
181
|
+
value: string;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
'text-transform': {
|
|
185
|
+
capitalize: {
|
|
186
|
+
value: string;
|
|
187
|
+
};
|
|
188
|
+
uppercase: {
|
|
189
|
+
value: string;
|
|
190
|
+
};
|
|
191
|
+
lowercase: {
|
|
192
|
+
value: string;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const textAlignCssPropertyNameList: readonly ("center" | "left" | "right" | "justify")[];
|
|
2
|
+
export declare const textTransformCssPropertyNameList: readonly ("capitalize" | "uppercase" | "lowercase")[];
|
|
3
|
+
export declare const displayCssPropertyNameList: readonly ("block" | "inline-block" | "inline" | "flex" | "inline-flex" | "grid" | "inline-grid")[];
|
|
4
|
+
export declare const alignContentCssPropertyNameList: readonly ("start" | "end" | "center" | "between" | "around" | "evenly" | "stretch")[];
|
|
5
|
+
export declare const alignItemsCssPropertyNameList: readonly ("start" | "end" | "center" | "stretch" | "baseline")[];
|
|
6
|
+
export declare const alignSelfCssPropertyNameList: readonly ("start" | "end" | "center" | "stretch" | "baseline" | "auto")[];
|
|
7
|
+
export declare const flexBasisCssPropertyNameList: readonly ("auto" | "0" | "25" | "33" | "50" | "75" | "100")[];
|
|
8
|
+
export declare const flexDirectionCssPropertyNameList: readonly ("column" | "row" | "column-reverse" | "row-reverse")[];
|
|
9
|
+
export declare const flexWrapCssPropertyNameList: readonly ("wrap" | "wrap-reverse" | "no-wrap")[];
|
|
10
|
+
export declare const flexCssPropertyNameList: readonly ("auto" | "none" | "1" | "initial")[];
|
|
11
|
+
export declare const justifyContentCssPropertyNameList: readonly ("start" | "end" | "center" | "between" | "around" | "evenly" | "stretch")[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './colorSystemProps';
|
|
2
|
+
export * from './spacingSystemProps';
|
|
3
|
+
export * from './systemProps';
|
|
4
|
+
export * from './typographySystemProps';
|
|
5
|
+
export * from './flexBoxSystemProps';
|
|
6
|
+
export * from './layoutSystemProps';
|
|
7
|
+
export * from './hiddenSystemProps';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { MarginSystemProps, PaddingSystemProps, SpacingSystemProps } from '../../types';
|
|
2
|
+
export declare const paddingSystemProps: Record<keyof PaddingSystemProps, readonly string[]>;
|
|
3
|
+
export declare const marginSystemProps: Record<keyof MarginSystemProps, readonly string[]>;
|
|
4
|
+
export declare const spacingSystemProps: Record<keyof SpacingSystemProps, readonly string[]>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ColorType } from '../types';
|
|
2
|
+
export declare const colorTokenNameList: readonly ColorType[];
|
|
3
|
+
export declare const spacingTokenNameList: readonly ("0" | "xs" | "xxs-3" | "xxs-2" | "xxs" | "s" | "m" | "l" | "xl" | "xxl" | "xxl-2" | "xxl-3")[];
|
|
4
|
+
export declare const widthTokenNameList: readonly ("full" | "screen")[];
|
|
5
|
+
export declare const heightTokenNameList: readonly ("full" | "screen")[];
|
|
6
|
+
export declare const fontWeightTokenNameList: readonly ("regular" | "medium" | "bold")[];
|
|
7
|
+
export declare const iconTokenNameList: readonly ("access-time" | "arrow-back" | "calendar" | "close" | "facebook" | "language" | "link" | "linkedin" | "rss" | "message" | "person" | "search" | "twitter" | "welcometothejungle")[];
|
|
8
|
+
export declare const logoTokenNameList: readonly ("website" | "blog")[];
|
|
9
|
+
export declare const headingSizeTokenNameList: readonly ("s" | "m" | "l" | "xl")[];
|
|
10
|
+
export declare const textSizeTokenNameList: readonly ("xs" | "s" | "m")[];
|