@eleven-labs/design-system 0.6.2 → 0.10.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/Blockquote/Blockquote.d.ts +4 -3
- package/dist/components/Atoms/Button/Button.d.ts +7 -5
- package/dist/components/Atoms/Icon/Icon.d.ts +2 -2
- package/dist/components/Atoms/Layout/Box/Box.d.ts +7 -3
- package/dist/components/Atoms/Layout/Flex/Flex.d.ts +6 -5
- package/dist/components/Atoms/Logo/Logo.d.ts +5 -4
- package/dist/components/Atoms/Skeleton/Skeleton.d.ts +4 -4
- package/dist/components/Atoms/Svgs/AccessTime.d.ts +2 -2
- package/dist/components/Atoms/Svgs/ArrowBack.d.ts +2 -2
- package/dist/components/Atoms/Svgs/Calendar.d.ts +2 -2
- package/dist/components/Atoms/Svgs/Close.d.ts +2 -2
- package/dist/components/Atoms/Svgs/Facebook.d.ts +2 -2
- package/dist/components/Atoms/Svgs/Github.d.ts +2 -2
- package/dist/components/Atoms/Svgs/Language.d.ts +2 -2
- package/dist/components/Atoms/Svgs/Link.d.ts +2 -2
- package/dist/components/Atoms/Svgs/Linkedin.d.ts +2 -2
- package/dist/components/Atoms/Svgs/Logo.d.ts +2 -2
- package/dist/components/Atoms/Svgs/Message.d.ts +2 -2
- package/dist/components/Atoms/Svgs/Person.d.ts +2 -2
- package/dist/components/Atoms/Svgs/Rss.d.ts +2 -2
- package/dist/components/Atoms/Svgs/Search.d.ts +2 -2
- package/dist/components/Atoms/Svgs/Tuto.d.ts +4 -0
- package/dist/components/Atoms/Svgs/Twitter.d.ts +2 -2
- package/dist/components/Atoms/Svgs/Welcometothejungle.d.ts +2 -2
- package/dist/components/Atoms/Svgs/index.d.ts +17 -16
- package/dist/components/Atoms/SyntaxHighlighter/SyntaxHighlighter.d.ts +2 -2
- package/dist/components/Atoms/Typography/Heading/Heading.d.ts +5 -4
- package/dist/components/Atoms/Typography/Text/Text.d.ts +5 -4
- package/dist/components/Molecules/Link/Link.d.ts +7 -6
- package/dist/components/Molecules/Reminder/Reminder.d.ts +4 -5
- package/dist/components/Molecules/SearchField/SearchField.d.ts +8 -9
- package/dist/components/Molecules/TextHighlight/TextHighlight.d.ts +5 -6
- package/dist/constants/systemProps/systemProps.d.ts +1 -1
- package/dist/constants/tokenNameList.d.ts +1 -1
- package/dist/constants/tokenVariables.d.ts +4 -1
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/polyRef.d.ts +2 -0
- package/dist/helpers/stringHelper.d.ts +3 -3
- package/dist/helpers/systemPropsHelper/classNamesWithModifiers.d.ts +1 -1
- package/dist/helpers/systemPropsHelper/hiddenSystemClassName.d.ts +1 -1
- package/dist/helpers/systemPropsHelper/index.d.ts +0 -1
- package/dist/helpers/systemPropsHelper/systemClassName.d.ts +1 -1
- package/dist/helpers/systemPropsHelper/typographySystemClassName.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +1059 -1174
- package/dist/index.umd.cjs +10 -10
- package/dist/scss/abstracts/variables/_token-variables.scss +1 -1
- package/dist/scss/abstracts/variables/_variables.scss +1 -1
- package/dist/svgs/tuto.svg +1 -0
- package/dist/types/MediaQueryType.d.ts +1 -1
- package/dist/types/SystemProps/FlexBoxSystemProps.d.ts +1 -1
- package/dist/types/SystemProps/HiddenSystemProps.d.ts +1 -1
- package/dist/types/SystemProps/LayoutSystemProps.d.ts +1 -1
- package/dist/types/SystemProps/SystemProps.d.ts +2 -2
- package/dist/types/SystemProps/index.d.ts +0 -2
- package/dist/types/TypeWithModifier.d.ts +1 -1
- package/dist/types/cssPropertyTypes.d.ts +1 -1
- package/dist/types/tokenTypes.d.ts +1 -1
- package/package.json +8 -10
- package/dist/helpers/systemPropsHelper/forwardRef.d.ts +0 -7
- package/dist/types/SystemProps/AsProps.d.ts +0 -4
- package/dist/types/SystemProps/ComponentWithAs.d.ts +0 -16
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
|
|
2
|
+
import type { BoxProps } from '../../../components';
|
|
3
|
+
export interface BlockquoteProps extends BoxProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const Blockquote: import("react-polymorphed").PolyForwardComponent<"blockquote", BlockquoteProps, React.ElementType<any>>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { SpacingSystemProps } from '../../../types';
|
|
2
3
|
export declare const buttonVariant: readonly ["primary", "secondary"];
|
|
3
4
|
export type ButtonVariantType = (typeof buttonVariant)[number];
|
|
4
|
-
export
|
|
5
|
+
export interface ButtonProps extends SpacingSystemProps {
|
|
6
|
+
className?: string;
|
|
5
7
|
variant?: ButtonVariantType;
|
|
6
8
|
isChoiceChip?: boolean;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export declare const Button: import(
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare const Button: import("react-polymorphed").PolyForwardComponent<"button", ButtonProps, React.ElementType<any>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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'> & {
|
|
2
|
+
import type { ColorSystemProps, IconNameType, MarginSystemProps } from '../../../types';
|
|
3
|
+
export type IconProps = Omit<React.SVGProps<SVGSVGElement>, 'name' | 'color'> & MarginSystemProps & Pick<ColorSystemProps, 'color'> & {
|
|
4
4
|
name: IconNameType;
|
|
5
5
|
size?: string | number;
|
|
6
6
|
};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { SystemProps } from '../../../../types';
|
|
3
|
+
export interface BoxProps extends SystemProps {
|
|
4
|
+
className?: string;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const Box: import("react-polymorphed").PolyForwardComponent<"div", BoxProps, React.ElementType<any>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BoxProps } from '../../../../components';
|
|
3
|
+
import type { DisplayType, FlexBoxSystemProps, TypeWithMediaQueriesType } from '../../../../types';
|
|
4
|
+
export interface FlexProps extends Omit<BoxProps, 'display'>, FlexBoxSystemProps {
|
|
4
5
|
display?: TypeWithMediaQueriesType<Extract<DisplayType, 'flex' | 'inline-flex'>>;
|
|
5
|
-
}
|
|
6
|
-
export declare const Flex: import(
|
|
6
|
+
}
|
|
7
|
+
export declare const Flex: import("react-polymorphed").PolyForwardComponent<"div", FlexProps, React.ElementType<any>>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { FlexProps } from '../../../components';
|
|
2
3
|
export declare const logoName: readonly ["website", "blog"];
|
|
3
4
|
export type LogoNameType = (typeof logoName)[number];
|
|
4
|
-
export
|
|
5
|
+
export interface LogoProps extends FlexProps {
|
|
5
6
|
name: LogoNameType;
|
|
6
7
|
size?: string | number;
|
|
7
|
-
}
|
|
8
|
-
export declare const Logo: import(
|
|
8
|
+
}
|
|
9
|
+
export declare const Logo: import("react-polymorphed").PolyForwardComponent<"div", LogoProps, React.ElementType<any>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { BoxProps } from '../../../components';
|
|
3
|
+
export interface SkeletonProps extends BoxProps {
|
|
3
4
|
isLoading?: boolean;
|
|
4
5
|
}
|
|
5
|
-
export
|
|
6
|
-
export declare const Skeleton: import("../../..").ComponentWithAs<"div", SkeletonProps>;
|
|
6
|
+
export declare const Skeleton: import("react-polymorphed").PolyForwardComponent<"div", SkeletonProps, React.ElementType<any>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import type { SVGProps } from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { SVGProps } from 'react';
|
|
3
3
|
declare const SvgWelcometothejungle: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
|
|
4
4
|
export default SvgWelcometothejungle;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
export { default as AccessTime } from
|
|
2
|
-
export { default as ArrowBack } from
|
|
3
|
-
export { default as Calendar } from
|
|
4
|
-
export { default as Close } from
|
|
5
|
-
export { default as Facebook } from
|
|
6
|
-
export { default as Github } from
|
|
7
|
-
export { default as Language } from
|
|
8
|
-
export { default as Link } from
|
|
9
|
-
export { default as Linkedin } from
|
|
10
|
-
export { default as Logo } from
|
|
11
|
-
export { default as Message } from
|
|
12
|
-
export { default as Person } from
|
|
13
|
-
export { default as Rss } from
|
|
14
|
-
export { default as Search } from
|
|
15
|
-
export { default as
|
|
16
|
-
export { default as
|
|
1
|
+
export { default as AccessTime } from './AccessTime';
|
|
2
|
+
export { default as ArrowBack } from './ArrowBack';
|
|
3
|
+
export { default as Calendar } from './Calendar';
|
|
4
|
+
export { default as Close } from './Close';
|
|
5
|
+
export { default as Facebook } from './Facebook';
|
|
6
|
+
export { default as Github } from './Github';
|
|
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 Rss } from './Rss';
|
|
14
|
+
export { default as Search } from './Search';
|
|
15
|
+
export { default as Tuto } from './Tuto';
|
|
16
|
+
export { default as Twitter } from './Twitter';
|
|
17
|
+
export { default as Welcometothejungle } from './Welcometothejungle';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { SyntaxHighlighterProps as SyntaxHighlighterBaseProps } from 'react-syntax-highlighter';
|
|
3
|
-
import { MarginSystemProps } from '../../../types';
|
|
2
|
+
import type { SyntaxHighlighterProps as SyntaxHighlighterBaseProps } from 'react-syntax-highlighter';
|
|
3
|
+
import type { MarginSystemProps } from '../../../types';
|
|
4
4
|
export type SyntaxHighlighterProps = MarginSystemProps & Pick<SyntaxHighlighterBaseProps, 'language' | 'children'>;
|
|
5
5
|
export declare const SyntaxHighlighter: React.FC<SyntaxHighlighterProps>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BoxProps } from '../../../../components';
|
|
3
|
+
import type { HeadingSizeType, TypographySystemProps } from '../../../../types';
|
|
4
|
+
export interface HeadingProps extends BoxProps, TypographySystemProps {
|
|
3
5
|
size?: HeadingSizeType;
|
|
4
6
|
}
|
|
5
|
-
export
|
|
6
|
-
export declare const Heading: import('../../../../types').ComponentWithAs<"h1", HeadingProps<"h1">>;
|
|
7
|
+
export declare const Heading: import("react-polymorphed").PolyForwardComponent<"h1", HeadingProps, React.ElementType<any>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { BoxProps } from '../../../../components';
|
|
3
|
+
import type { TextSizeType, TypographySystemProps } from '../../../../types';
|
|
4
|
+
export interface TextProps extends BoxProps, TypographySystemProps {
|
|
3
5
|
size?: TextSizeType;
|
|
4
6
|
}
|
|
5
|
-
export
|
|
6
|
-
export declare const Text: import('../../../../types').ComponentWithAs<"p", TextProps<"p">>;
|
|
7
|
+
export declare const Text: import("react-polymorphed").PolyForwardComponent<"p", TextProps, React.ElementType<any>>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { IconNameType } from '../../../types';
|
|
3
|
+
export interface LinkProps {
|
|
4
|
+
className?: string;
|
|
4
5
|
icon?: IconNameType;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare const Link: import(
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const Link: import("react-polymorphed").PolyForwardComponent<"a", LinkProps, React.ElementType<any>>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BoxProps } from '../../../components';
|
|
2
|
+
import type { BoxProps } from '../../../components';
|
|
3
3
|
export declare const reminderVariantList: readonly ["note", "summary", "info", "tip", "success", "question", "warning", "failure", "danger", "bug", "example", "quote"];
|
|
4
4
|
export type ReminderVariantType = (typeof reminderVariantList)[number];
|
|
5
|
-
export
|
|
5
|
+
export interface ReminderProps extends BoxProps {
|
|
6
6
|
variant: ReminderVariantType;
|
|
7
7
|
title: React.ReactNode;
|
|
8
|
-
}
|
|
9
|
-
export
|
|
10
|
-
export declare const Reminder: React.FC<ReminderProps>;
|
|
8
|
+
}
|
|
9
|
+
export declare const Reminder: import("react-polymorphed").PolyForwardComponent<"div", ReminderProps, React.ElementType<any>>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export
|
|
5
|
-
input:
|
|
6
|
-
buttonSearch:
|
|
7
|
-
buttonClose?:
|
|
8
|
-
}
|
|
9
|
-
export
|
|
10
|
-
export declare const SearchField: import('../../../types').ComponentWithAs<"div", SearchFieldProps>;
|
|
2
|
+
import type { PolymorphicPropsWithoutRef } from 'react-polymorphed';
|
|
3
|
+
import type { BoxProps } from '../../../components';
|
|
4
|
+
export interface SearchFieldProps extends BoxProps {
|
|
5
|
+
input: Omit<PolymorphicPropsWithoutRef<'input', {}>, keyof BoxProps>;
|
|
6
|
+
buttonSearch: Omit<PolymorphicPropsWithoutRef<'button', {}>, keyof BoxProps>;
|
|
7
|
+
buttonClose?: Omit<PolymorphicPropsWithoutRef<'button', {}>, keyof BoxProps>;
|
|
8
|
+
}
|
|
9
|
+
export declare const SearchField: import("react-polymorphed").PolyForwardComponent<"div", SearchFieldProps, React.ElementType<any>>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { TextProps } from '../../../components';
|
|
3
|
+
export interface TextHighlightProps extends TextProps {
|
|
4
4
|
text: string;
|
|
5
5
|
textQuery?: string;
|
|
6
|
-
}
|
|
7
|
-
export
|
|
8
|
-
export declare const TextHighlight: import('../../../types').ComponentWithAs<"p", TextHighlightProps<"p">>;
|
|
6
|
+
}
|
|
7
|
+
export declare const TextHighlight: import("react-polymorphed").PolyForwardComponent<"p", TextHighlightProps, React.ElementType<any>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SystemProps } from '../../types';
|
|
1
|
+
import type { SystemProps } from '../../types';
|
|
2
2
|
export declare const systemProps: Record<keyof SystemProps, readonly string[]>;
|
|
@@ -4,6 +4,6 @@ export declare const spacingTokenNameList: readonly ("0" | "xs" | "xxs-3" | "xxs
|
|
|
4
4
|
export declare const widthTokenNameList: readonly ("full" | "screen")[];
|
|
5
5
|
export declare const heightTokenNameList: readonly ("full" | "screen")[];
|
|
6
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" | "github")[];
|
|
7
|
+
export declare const iconTokenNameList: readonly ("access-time" | "arrow-back" | "calendar" | "close" | "facebook" | "language" | "link" | "linkedin" | "rss" | "message" | "person" | "search" | "twitter" | "welcometothejungle" | "github" | "tuto")[];
|
|
8
8
|
export declare const headingSizeTokenNameList: readonly ("s" | "m" | "l" | "xl")[];
|
|
9
9
|
export declare const textSizeTokenNameList: readonly ("xs" | "s" | "m")[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Sun, 29 Oct 2023 19:38:21 GMT
|
|
4
4
|
*/
|
|
5
5
|
export declare const tokenVariables: {
|
|
6
6
|
asset: {
|
|
@@ -70,6 +70,9 @@ export declare const tokenVariables: {
|
|
|
70
70
|
github: {
|
|
71
71
|
value: string;
|
|
72
72
|
};
|
|
73
|
+
tuto: {
|
|
74
|
+
value: string;
|
|
75
|
+
};
|
|
73
76
|
};
|
|
74
77
|
};
|
|
75
78
|
breakpoint: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './polyRef';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const kebabCase: (
|
|
2
|
-
export declare const pascalCase: (
|
|
3
|
-
export declare const capitalize: (
|
|
1
|
+
export declare const kebabCase: (string_: string) => string;
|
|
2
|
+
export declare const pascalCase: (string_: string) => string;
|
|
3
|
+
export declare const capitalize: (string_: string) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TypeWithModifierType } from '../../types';
|
|
1
|
+
import type { TypeWithModifierType } from '../../types';
|
|
2
2
|
export declare const classNamesWithModifiers: <TModifierType extends string, TPropValue extends string | number | boolean>(options: {
|
|
3
3
|
className: string;
|
|
4
4
|
defaultModifier?: string | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { HiddenSystemProps } from '../../types';
|
|
1
|
+
import type { HiddenSystemProps } from '../../types';
|
|
2
2
|
export declare const hiddenSystemClassName: <TProps extends HiddenSystemProps>(props: TProps) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SystemProps } from '../../types';
|
|
1
|
+
import type { SystemProps } from '../../types';
|
|
2
2
|
export declare const systemClassName: <TProps extends SystemProps = SystemProps>(props: TProps) => string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { TypographySystemProps } from '../../types';
|
|
1
|
+
import type { TypographySystemProps } from '../../types';
|
|
2
2
|
export declare const typographySystemClassName: <TProps extends TypographySystemProps>({ textAlign, ...props }: TProps) => string;
|