@eleven-labs/design-system 0.10.3 → 0.20.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 (106) hide show
  1. package/dist/components/Atoms/Blockquote/Blockquote.d.ts +3 -3
  2. package/dist/components/Atoms/BurgerButton/BurgerButton.d.ts +5 -0
  3. package/dist/components/Atoms/BurgerButton/index.d.ts +1 -0
  4. package/dist/components/Atoms/CloseButton/CloseButton.d.ts +8 -0
  5. package/dist/components/Atoms/CloseButton/index.d.ts +1 -0
  6. package/dist/components/Atoms/Divider/Divider.d.ts +5 -0
  7. package/dist/components/Atoms/Divider/index.d.ts +1 -0
  8. package/dist/components/Atoms/Svgs/Arrow.d.ts +4 -0
  9. package/dist/components/Atoms/Svgs/index.d.ts +1 -3
  10. package/dist/components/Atoms/index.d.ts +3 -1
  11. package/dist/components/{Atoms/Layout → Layout}/Box/Box.d.ts +1 -1
  12. package/dist/components/{Atoms/Layout → Layout}/Flex/Flex.d.ts +2 -2
  13. package/dist/components/Molecules/Blocks/CategoryEndingBlock/CategoryEndingBlock.d.ts +10 -0
  14. package/dist/components/Molecules/Blocks/CategoryEndingBlock/index.d.ts +1 -0
  15. package/dist/components/Molecules/Blocks/CategoryIntroBlock/CategoryIntroBlock.d.ts +11 -0
  16. package/dist/components/Molecules/Blocks/CategoryIntroBlock/index.d.ts +1 -0
  17. package/dist/components/Molecules/Blocks/HomeIntroBlock/HomeIntroBlock.d.ts +10 -0
  18. package/dist/components/Molecules/Blocks/HomeIntroBlock/index.d.ts +1 -0
  19. package/dist/components/Molecules/Blocks/NotFoundBlock/NotFoundBlock.d.ts +8 -0
  20. package/dist/components/Molecules/Blocks/NotFoundBlock/index.d.ts +1 -0
  21. package/dist/components/Molecules/Blocks/index.d.ts +4 -0
  22. package/dist/components/Molecules/Cards/AuthorCard/AuthorCard.d.ts +9 -0
  23. package/dist/components/Molecules/Cards/AuthorCard/index.d.ts +1 -0
  24. package/dist/components/Molecules/Cards/ContactCard/ContactCard.d.ts +11 -0
  25. package/dist/components/Molecules/Cards/ContactCard/index.d.ts +1 -0
  26. package/dist/components/Molecules/Cards/NewsletterCard/NewsletterCard.d.ts +8 -0
  27. package/dist/components/Molecules/Cards/NewsletterCard/index.d.ts +1 -0
  28. package/dist/components/Molecules/Cards/PostCard/PostCard.d.ts +18 -0
  29. package/dist/components/Molecules/Cards/PostCard/index.d.ts +1 -0
  30. package/dist/components/Molecules/Cards/SummaryCard/SummaryCard.d.ts +14 -0
  31. package/dist/components/Molecules/Cards/SummaryCard/index.d.ts +1 -0
  32. package/dist/components/Molecules/Cards/index.d.ts +5 -0
  33. package/dist/components/Molecules/Pagination/Pagination.d.ts +9 -0
  34. package/dist/components/Molecules/Pagination/index.d.ts +1 -0
  35. package/dist/components/Molecules/PostMetadata/PostMetadata.d.ts +17 -0
  36. package/dist/components/Molecules/PostMetadata/index.d.ts +1 -0
  37. package/dist/components/Molecules/ShareLinks/ShareLinks.d.ts +14 -0
  38. package/dist/components/Molecules/ShareLinks/index.d.ts +1 -0
  39. package/dist/components/Molecules/index.d.ts +4 -0
  40. package/dist/components/Organisms/Autocomplete/Autocomplete.d.ts +12 -0
  41. package/dist/components/Organisms/Autocomplete/AutocompleteResult/AutocompleteResult.d.ts +27 -0
  42. package/dist/components/Organisms/Autocomplete/AutocompleteResult/index.d.ts +1 -0
  43. package/dist/components/Organisms/Autocomplete/index.d.ts +1 -0
  44. package/dist/components/Organisms/Footer/Footer.d.ts +24 -0
  45. package/dist/components/Organisms/Footer/index.d.ts +1 -0
  46. package/dist/components/Organisms/Header/Header.d.ts +19 -0
  47. package/dist/components/Organisms/Header/index.d.ts +1 -0
  48. package/dist/components/Organisms/PostCardList/PostCardList.d.ts +8 -0
  49. package/dist/components/Organisms/PostCardList/index.d.ts +1 -0
  50. package/dist/components/Organisms/index.d.ts +4 -0
  51. package/dist/components/index.d.ts +2 -0
  52. package/dist/constants/tokenNameList.d.ts +1 -1
  53. package/dist/constants/tokenVariables.d.ts +2 -8
  54. package/dist/helpers/getCdnAssetsFile.d.ts +1 -0
  55. package/dist/hooks/useCopyToClipboard.d.ts +5 -0
  56. package/dist/hooks/usePagination.d.ts +8 -0
  57. package/dist/imgs/astronaut.png +0 -0
  58. package/dist/imgs/category-intro-block-desktop.png +0 -0
  59. package/dist/imgs/category-intro-block-mobile.png +0 -0
  60. package/dist/imgs/contact-background.png +0 -0
  61. package/dist/imgs/home-intro-block.png +0 -0
  62. package/dist/imgs/newsletter.png +0 -0
  63. package/dist/imgs/not-found.png +0 -0
  64. package/dist/index.d.ts +2 -0
  65. package/dist/index.es.js +6053 -1828
  66. package/dist/index.umd.cjs +45 -10
  67. package/dist/pages/AuthorPage/AuthorPage.d.ts +21 -0
  68. package/dist/pages/AuthorPage/index.d.ts +1 -0
  69. package/dist/pages/CategoryPage/CategoryPage.d.ts +11 -0
  70. package/dist/pages/CategoryPage/index.d.ts +1 -0
  71. package/dist/pages/HomePage/HomePage.d.ts +10 -0
  72. package/dist/pages/HomePage/index.d.ts +1 -0
  73. package/dist/pages/NotFoundPage/NotFoundPage.d.ts +6 -0
  74. package/dist/pages/NotFoundPage/index.d.ts +1 -0
  75. package/dist/pages/PostPage/PostFooter/PostFooter.d.ts +7 -0
  76. package/dist/pages/PostPage/PostFooter/index.d.ts +1 -0
  77. package/dist/pages/PostPage/PostHeader/PostHeader.d.ts +14 -0
  78. package/dist/pages/PostPage/PostHeader/index.d.ts +1 -0
  79. package/dist/pages/PostPage/PostPage.d.ts +23 -0
  80. package/dist/pages/PostPage/RelatedPostList/RelatedPostList.d.ts +7 -0
  81. package/dist/pages/PostPage/RelatedPostList/index.d.ts +1 -0
  82. package/dist/pages/PostPage/index.d.ts +1 -0
  83. package/dist/pages/SearchPage/SearchPage.d.ts +12 -0
  84. package/dist/pages/SearchPage/index.d.ts +1 -0
  85. package/dist/pages/index.d.ts +6 -0
  86. package/dist/scss/abstracts/functions/_get-cdn-assets-file.scss +9 -0
  87. package/dist/scss/abstracts/functions/_index.scss +1 -0
  88. package/dist/scss/abstracts/variables/_token-variables.scss +1 -1
  89. package/dist/scss/abstracts/variables/_variables.scss +2 -2
  90. package/dist/style.css +1 -1
  91. package/dist/svgs/arrow.svg +1 -0
  92. package/dist/templates/LayoutContentWithSidebar/LayoutContentWithSidebar.d.ts +7 -0
  93. package/dist/templates/LayoutContentWithSidebar/index.d.ts +1 -0
  94. package/dist/templates/LayoutTemplate/LayoutTemplate.d.ts +8 -0
  95. package/dist/templates/LayoutTemplate/index.d.ts +1 -0
  96. package/dist/templates/index.d.ts +1 -0
  97. package/package.json +13 -7
  98. package/dist/components/Atoms/Svgs/ArrowBack.d.ts +0 -4
  99. package/dist/components/Atoms/Svgs/Close.d.ts +0 -4
  100. package/dist/components/Atoms/Svgs/Tuto.d.ts +0 -4
  101. package/dist/svgs/arrow-back.svg +0 -1
  102. package/dist/svgs/close.svg +0 -1
  103. package/dist/svgs/tuto.svg +0 -1
  104. /package/dist/components/{Atoms/Layout → Layout}/Box/index.d.ts +0 -0
  105. /package/dist/components/{Atoms/Layout → Layout}/Flex/index.d.ts +0 -0
  106. /package/dist/components/{Atoms/Layout → Layout}/index.d.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { BoxProps } from '../../../components';
3
- export interface BlockquoteProps extends BoxProps {
2
+ import type { MarginSystemProps } from '../../../types';
3
+ export interface BlockquoteProps extends MarginSystemProps, Omit<React.ComponentPropsWithoutRef<'blockquote'>, 'align'> {
4
4
  }
5
- export declare const Blockquote: import("react-polymorphed").PolyForwardComponent<"blockquote", BlockquoteProps, React.ElementType<any>>;
5
+ export declare const Blockquote: React.FC<BlockquoteProps>;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { FlexProps } from '../../../components';
3
+ export interface BurgerButtonProps extends FlexProps, React.ComponentPropsWithoutRef<'button'> {
4
+ }
5
+ export declare const BurgerButton: React.FC<BurgerButtonProps>;
@@ -0,0 +1 @@
1
+ export * from './BurgerButton';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import type { FlexProps } from '../../../components';
3
+ export declare const closeButtonVariant: readonly ["primary", "secondary"];
4
+ export type CloseButtonVariantType = (typeof closeButtonVariant)[number];
5
+ export interface CloseButtonProps extends FlexProps, React.ComponentPropsWithoutRef<'button'> {
6
+ variant?: CloseButtonVariantType;
7
+ }
8
+ export declare const CloseButton: React.FC<CloseButtonProps>;
@@ -0,0 +1 @@
1
+ export * from './CloseButton';
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { MarginSystemProps } from '../../../types';
3
+ export interface DividerProps extends React.ComponentPropsWithoutRef<'hr'>, MarginSystemProps {
4
+ }
5
+ export declare const Divider: React.FC<DividerProps>;
@@ -0,0 +1 @@
1
+ export * from './Divider';
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import type { SVGProps } from 'react';
3
+ declare const SvgArrow: (props: SVGProps<SVGSVGElement>) => React.JSX.Element;
4
+ export default SvgArrow;
@@ -1,7 +1,6 @@
1
1
  export { default as AccessTime } from './AccessTime';
2
- export { default as ArrowBack } from './ArrowBack';
2
+ export { default as Arrow } from './Arrow';
3
3
  export { default as Calendar } from './Calendar';
4
- export { default as Close } from './Close';
5
4
  export { default as Facebook } from './Facebook';
6
5
  export { default as Github } from './Github';
7
6
  export { default as Language } from './Language';
@@ -12,6 +11,5 @@ export { default as Message } from './Message';
12
11
  export { default as Person } from './Person';
13
12
  export { default as Rss } from './Rss';
14
13
  export { default as Search } from './Search';
15
- export { default as Tuto } from './Tuto';
16
14
  export { default as Twitter } from './Twitter';
17
15
  export { default as Welcometothejungle } from './Welcometothejungle';
@@ -1,9 +1,11 @@
1
1
  export * as Svgs from './Svgs';
2
2
  export * from './Button';
3
3
  export * from './Icon';
4
- export * from './Layout';
5
4
  export * from './Logo';
6
5
  export * from './SyntaxHighlighter';
7
6
  export * from './Typography';
8
7
  export * from './Blockquote';
9
8
  export * from './Skeleton';
9
+ export * from './Divider';
10
+ export * from './BurgerButton';
11
+ export * from './CloseButton';
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { SystemProps } from '../../../../types';
2
+ import type { SystemProps } from '../../../types';
3
3
  export interface BoxProps extends SystemProps {
4
4
  className?: string;
5
5
  children?: React.ReactNode;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import type { BoxProps } from '../../../../components';
3
- import type { DisplayType, TypeWithMediaQueriesType } from '../../../../types';
2
+ import type { BoxProps } from '../../../components';
3
+ import type { DisplayType, TypeWithMediaQueriesType } from '../../../types';
4
4
  export interface FlexProps extends Omit<BoxProps, 'display'> {
5
5
  display?: TypeWithMediaQueriesType<Extract<DisplayType, 'flex' | 'inline-flex'>>;
6
6
  }
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { BoxProps } from '../../../../components';
3
+ export interface CategoryEndingBlockProps extends BoxProps {
4
+ title: string;
5
+ description: string;
6
+ expertiseLink: {
7
+ label: string;
8
+ } & React.ComponentPropsWithoutRef<'a'>;
9
+ }
10
+ export declare const CategoryEndingBlock: React.FC<CategoryEndingBlockProps>;
@@ -0,0 +1 @@
1
+ export * from './CategoryEndingBlock';
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { BoxProps } from '../../../../components';
3
+ export interface CategoryIntroBlockProps extends BoxProps {
4
+ name: string;
5
+ title: string;
6
+ description: string;
7
+ homeLink: {
8
+ label: string;
9
+ } & React.ComponentPropsWithoutRef<'a'>;
10
+ }
11
+ export declare const CategoryIntroBlock: React.FC<CategoryIntroBlockProps>;
@@ -0,0 +1 @@
1
+ export * from './CategoryIntroBlock';
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export interface HomeIntroBlockProps {
3
+ intro: string;
4
+ title: string;
5
+ description: string;
6
+ elevenLabsLink: {
7
+ label: string;
8
+ } & React.ComponentPropsWithoutRef<'a'>;
9
+ }
10
+ export declare const HomeIntroBlock: React.FC<HomeIntroBlockProps>;
@@ -0,0 +1 @@
1
+ export * from './HomeIntroBlock';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import type { FlexProps } from '../../../../components';
3
+ export type NotFoundBlockOptions = {
4
+ title: React.ReactNode;
5
+ description: React.ReactNode;
6
+ };
7
+ export type NotFoundBlockProps = Omit<FlexProps, 'title'> & NotFoundBlockOptions;
8
+ export declare const NotFoundBlock: React.FC<NotFoundBlockProps>;
@@ -0,0 +1 @@
1
+ export * from './NotFoundBlock';
@@ -0,0 +1,4 @@
1
+ export * from './NotFoundBlock';
2
+ export * from './CategoryIntroBlock';
3
+ export * from './HomeIntroBlock';
4
+ export * from './CategoryEndingBlock';
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { FlexProps } from '../../../../components';
3
+ export interface AuthorCardProps extends FlexProps {
4
+ name: string;
5
+ description: string;
6
+ avatarImageUrl?: string;
7
+ link: React.ComponentPropsWithoutRef<'a'>;
8
+ }
9
+ export declare const AuthorCard: React.FC<AuthorCardProps>;
@@ -0,0 +1 @@
1
+ export * from './AuthorCard';
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { FlexProps } from '../../../../components';
3
+ export type ContactCardProps = {
4
+ title: string;
5
+ subtitle: string;
6
+ description: string;
7
+ link: {
8
+ label: React.ReactNode;
9
+ } & React.ComponentPropsWithoutRef<'a'>;
10
+ } & FlexProps;
11
+ export declare const ContactCard: React.FC<ContactCardProps>;
@@ -0,0 +1 @@
1
+ export * from './ContactCard';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import type { FlexProps } from '../../../../components';
3
+ export interface NewsletterCardProps extends Omit<FlexProps, 'title'> {
4
+ title: string;
5
+ description: string;
6
+ children: React.ReactNode;
7
+ }
8
+ export declare const NewsletterCard: React.FC<NewsletterCardProps>;
@@ -0,0 +1 @@
1
+ export * from './NewsletterCard';
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import type { BoxProps } from '../../../../components';
3
+ export interface PostCardProps extends BoxProps {
4
+ contentType?: 'article' | 'tutorial';
5
+ slug?: string;
6
+ title?: string;
7
+ excerpt?: string;
8
+ date?: string;
9
+ readingTime?: number;
10
+ authors?: {
11
+ username: string;
12
+ name: string;
13
+ }[];
14
+ link?: React.ComponentPropsWithoutRef<'a'>;
15
+ tutorialLabel?: string;
16
+ isLoading?: boolean;
17
+ }
18
+ export declare const PostCard: React.FC<PostCardProps>;
@@ -0,0 +1 @@
1
+ export * from './PostCard';
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import type { BoxProps } from '../../../../components';
3
+ export declare const SummaryCardVariant: readonly ["primary", "secondary"];
4
+ export type SummaryCardVariantType = (typeof SummaryCardVariant)[number];
5
+ export interface SummaryCardProps extends BoxProps {
6
+ variant?: SummaryCardVariantType;
7
+ title: string;
8
+ sectionActive?: string;
9
+ sections: ({
10
+ name: string;
11
+ label: string;
12
+ } & React.ComponentPropsWithoutRef<'a'>)[];
13
+ }
14
+ export declare const SummaryCard: React.FC<SummaryCardProps>;
@@ -0,0 +1 @@
1
+ export * from './SummaryCard';
@@ -0,0 +1,5 @@
1
+ export * from './PostCard';
2
+ export * from './AuthorCard';
3
+ export * from './ContactCard';
4
+ export * from './SummaryCard';
5
+ export * from './NewsletterCard';
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { SpacingSystemProps } from '../../../types';
3
+ export interface PaginationProps extends SpacingSystemProps {
4
+ currentPage: number;
5
+ totalPages: number;
6
+ getLink: (page: number) => React.ComponentPropsWithoutRef<'a'>;
7
+ siblingCount?: number;
8
+ }
9
+ export declare const Pagination: React.FC<PaginationProps>;
@@ -0,0 +1 @@
1
+ export * from './Pagination';
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import type { SpacingSystemProps } from '../../../types';
3
+ export declare const postMetadataVariant: readonly ["primary", "secondary"];
4
+ export type PostMetadataVariantType = (typeof postMetadataVariant)[number];
5
+ export interface PostMetadataProps extends SpacingSystemProps {
6
+ variant?: PostMetadataVariantType;
7
+ date?: string;
8
+ readingTime?: number;
9
+ authors?: {
10
+ username: string;
11
+ name: string;
12
+ link?: React.ComponentPropsWithoutRef<'a'>;
13
+ }[];
14
+ isLoading?: boolean;
15
+ displayedFields?: ('date' | 'readingTime' | 'authors')[];
16
+ }
17
+ export declare const PostMetadata: React.FC<PostMetadataProps>;
@@ -0,0 +1 @@
1
+ export * from './PostMetadata';
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import type { MarginSystemProps } from '../../../types';
3
+ export interface ShareLinksProps extends MarginSystemProps {
4
+ urlToShare: string;
5
+ shares: {
6
+ copyLink?: boolean;
7
+ twitter?: boolean;
8
+ facebook?: boolean;
9
+ linkedIn?: boolean;
10
+ reddit?: boolean;
11
+ };
12
+ copiedLabel?: string;
13
+ }
14
+ export declare const ShareLinks: React.FC<ShareLinksProps>;
@@ -0,0 +1 @@
1
+ export * from './ShareLinks';
@@ -2,3 +2,7 @@ export * from './Link';
2
2
  export * from './Reminder';
3
3
  export * from './SearchField';
4
4
  export * from './TextHighlight';
5
+ export * from './Blocks';
6
+ export * from './PostMetadata';
7
+ export * from './Cards';
8
+ export * from './Pagination';
@@ -0,0 +1,12 @@
1
+ import type { UseComboboxProps } from 'downshift';
2
+ import React from 'react';
3
+ import type { BoxProps } from '../../../components';
4
+ import type { AutocompleteItem, AutocompleteResultOptions } from './AutocompleteResult';
5
+ export type AutocompleteOptions = {
6
+ placeholder: string;
7
+ searchLink: Exclude<AutocompleteResultOptions['searchLink'], undefined>;
8
+ defaultValue?: string;
9
+ onEnter?: (value: string) => void;
10
+ };
11
+ export type AutocompleteProps = BoxProps & AutocompleteOptions & Omit<AutocompleteResultOptions, 'highlightedIndex' | 'searchLink'> & Pick<UseComboboxProps<AutocompleteItem>, 'onInputValueChange' | 'onSelectedItemChange'>;
12
+ export declare const Autocomplete: import("react-polymorphed").PolyForwardComponent<"div", AutocompleteProps, React.ElementType<any>>;
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import type { BoxProps } from '../../../../components';
3
+ export interface AutocompleteItem {
4
+ slug: string;
5
+ title: string;
6
+ description: string;
7
+ date: string;
8
+ authors?: {
9
+ username: string;
10
+ name: string;
11
+ }[];
12
+ }
13
+ export type AutocompleteResultOptions = {
14
+ isOpen?: boolean;
15
+ items: (React.ComponentPropsWithoutRef<'a'> & AutocompleteItem)[];
16
+ searchValue?: string;
17
+ searchLink?: React.ComponentPropsWithoutRef<'a'> & {
18
+ label: string;
19
+ };
20
+ searchNotFound?: {
21
+ title: string;
22
+ description: string;
23
+ };
24
+ highlightedIndex?: number;
25
+ };
26
+ export type AutocompleteResultProps = BoxProps & AutocompleteResultOptions;
27
+ export declare const AutocompleteResult: import("react-polymorphed").PolyForwardComponent<"div", AutocompleteResultProps, React.ElementType<any>>;
@@ -0,0 +1 @@
1
+ export * from './AutocompleteResult';
@@ -0,0 +1 @@
1
+ export * from './Autocomplete';
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import type { IconNameType } from '../../../types';
3
+ export interface FooterProps {
4
+ introBlock: {
5
+ title: React.ReactNode;
6
+ description: React.ReactNode;
7
+ };
8
+ elevenLabsSiteLink: React.ComponentPropsWithoutRef<'a'>;
9
+ addressList: {
10
+ title?: React.ReactNode;
11
+ description: React.ReactNode;
12
+ }[];
13
+ contactLink: {
14
+ label: React.ReactNode;
15
+ } & React.ComponentPropsWithoutRef<'a'>;
16
+ socialLinks: ({
17
+ iconName: Extract<IconNameType, 'rss' | 'facebook' | 'twitter' | 'linkedin' | 'welcometothejungle'>;
18
+ } & React.ComponentPropsWithoutRef<'a'>)[];
19
+ languageLinks: ({
20
+ label: React.ReactNode;
21
+ isActive?: boolean;
22
+ } & React.ComponentPropsWithoutRef<'a'>)[];
23
+ }
24
+ export declare const Footer: React.FC<FooterProps>;
@@ -0,0 +1 @@
1
+ export * from './Footer';
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import type { AutocompleteProps } from '../../../components';
3
+ export interface HeaderProps {
4
+ homeLink: React.ComponentPropsWithoutRef<'a'>;
5
+ categories: ({
6
+ label: React.ReactNode;
7
+ } & React.ComponentPropsWithoutRef<'a'>)[];
8
+ hasTutorial: boolean;
9
+ tutorialLink: {
10
+ label: React.ReactNode;
11
+ } & React.ComponentPropsWithoutRef<'a'>;
12
+ contactLink: {
13
+ label: React.ReactNode;
14
+ } & React.ComponentPropsWithoutRef<'a'>;
15
+ autocomplete: AutocompleteProps;
16
+ onToggleMenu: () => void;
17
+ menuIsOpen?: boolean;
18
+ }
19
+ export declare const Header: React.FC<HeaderProps>;
@@ -0,0 +1 @@
1
+ export * from './Header';
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import type { PaginationProps, PostCardProps } from '../../../components';
3
+ export interface PostCardListProps {
4
+ posts: Partial<PostCardProps>[];
5
+ pagination?: PaginationProps;
6
+ isLoading?: boolean;
7
+ }
8
+ export declare const PostCardList: React.FC<PostCardListProps>;
@@ -0,0 +1 @@
1
+ export * from './PostCardList';
@@ -0,0 +1,4 @@
1
+ export * from './PostCardList';
2
+ export * from './Autocomplete';
3
+ export * from './Header';
4
+ export * from './Footer';
@@ -1,2 +1,4 @@
1
1
  export * from './Atoms';
2
2
  export * from './Molecules';
3
+ export * from './Organisms';
4
+ export * from './Layout';
@@ -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" | "tuto")[];
7
+ export declare const iconTokenNameList: readonly ("access-time" | "calendar" | "facebook" | "language" | "link" | "linkedin" | "rss" | "message" | "person" | "search" | "twitter" | "welcometothejungle" | "github" | "arrow")[];
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 Thu, 04 Jan 2024 13:09:15 GMT
3
+ * Generated on Mon, 08 Jan 2024 16:40:16 GMT
4
4
  */
5
5
  export declare const tokenVariables: {
6
6
  asset: {
@@ -28,15 +28,9 @@ export declare const tokenVariables: {
28
28
  'access-time': {
29
29
  value: string;
30
30
  };
31
- 'arrow-back': {
32
- value: string;
33
- };
34
31
  calendar: {
35
32
  value: string;
36
33
  };
37
- close: {
38
- value: string;
39
- };
40
34
  facebook: {
41
35
  value: string;
42
36
  };
@@ -70,7 +64,7 @@ export declare const tokenVariables: {
70
64
  github: {
71
65
  value: string;
72
66
  };
73
- tuto: {
67
+ arrow: {
74
68
  value: string;
75
69
  };
76
70
  };
@@ -0,0 +1 @@
1
+ export declare const getCdnAssetsFile: (path: string) => string;
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,8 @@
1
+ export declare const DOTS = -1;
2
+ interface UsePaginationOptions {
3
+ currentPage: number;
4
+ totalPages: number;
5
+ siblingCount?: number;
6
+ }
7
+ export declare const usePagination: ({ currentPage, totalPages, siblingCount }: UsePaginationOptions) => number[];
8
+ export {};
Binary file
Binary file
Binary file
Binary file
Binary file
package/dist/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  export * from './components';
2
+ export * from './templates';
3
+ export * from './pages';
2
4
  export * from './hooks';
3
5
  export * from './helpers';
4
6
  export * from './types';