@c-rex/components 0.0.1
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/index.d.mts +68 -0
- package/dist/index.d.ts +68 -0
- package/dist/index.js +2919 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2910 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +43 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { FC, ReactNode, ComponentProps } from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import Image from 'next/image';
|
|
4
|
+
import { TreeOfContent, informationUnitsItems } from '@c-rex/interfaces';
|
|
5
|
+
import { Sidebar } from '@c-rex/ui';
|
|
6
|
+
|
|
7
|
+
interface SearchStateWrapperProps {
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
filters: {
|
|
10
|
+
searchValue: string;
|
|
11
|
+
page: number;
|
|
12
|
+
selectedLanguage: string[];
|
|
13
|
+
availableLanguages: string[];
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
declare const SearchStateWrapper: FC<SearchStateWrapperProps>;
|
|
17
|
+
|
|
18
|
+
type Props = {
|
|
19
|
+
initialValue: string;
|
|
20
|
+
onSelect: (value: string) => void;
|
|
21
|
+
onSearch: (value: string) => Promise<string[]>;
|
|
22
|
+
};
|
|
23
|
+
declare const AutoComplete: ({ initialValue, onSearch, onSelect, }: Props) => react_jsx_runtime.JSX.Element;
|
|
24
|
+
|
|
25
|
+
interface BlogCardProp {
|
|
26
|
+
data: {
|
|
27
|
+
title: string;
|
|
28
|
+
blurDataURL: string;
|
|
29
|
+
image: string;
|
|
30
|
+
description: string;
|
|
31
|
+
authors: string;
|
|
32
|
+
_id: string;
|
|
33
|
+
date: string;
|
|
34
|
+
slug: string;
|
|
35
|
+
};
|
|
36
|
+
priority?: boolean;
|
|
37
|
+
horizontal?: boolean;
|
|
38
|
+
}
|
|
39
|
+
declare const BlogCard: ({ data, priority, horizontal, }: BlogCardProp) => react_jsx_runtime.JSX.Element;
|
|
40
|
+
|
|
41
|
+
declare const BlurImage: (props: ComponentProps<typeof Image>) => react_jsx_runtime.JSX.Element;
|
|
42
|
+
|
|
43
|
+
interface BreadcrumbProps {
|
|
44
|
+
items: TreeOfContent[];
|
|
45
|
+
loading?: boolean;
|
|
46
|
+
}
|
|
47
|
+
declare const Breadcrumb: FC<BreadcrumbProps>;
|
|
48
|
+
|
|
49
|
+
declare const Empty: FC;
|
|
50
|
+
|
|
51
|
+
interface NavBarProps {
|
|
52
|
+
scroll?: boolean;
|
|
53
|
+
large?: boolean;
|
|
54
|
+
}
|
|
55
|
+
declare const NavBar: FC<NavBarProps>;
|
|
56
|
+
|
|
57
|
+
interface ResultListProps {
|
|
58
|
+
items: informationUnitsItems[];
|
|
59
|
+
}
|
|
60
|
+
declare const ResultList: FC<ResultListProps>;
|
|
61
|
+
|
|
62
|
+
interface SidebarProps extends ComponentProps<typeof Sidebar> {
|
|
63
|
+
data: TreeOfContent[];
|
|
64
|
+
loading?: boolean;
|
|
65
|
+
}
|
|
66
|
+
declare function AppSidebar({ data, loading, ...props }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
67
|
+
|
|
68
|
+
export { AppSidebar, AutoComplete, BlogCard, BlurImage, Breadcrumb, Empty, NavBar, ResultList, SearchStateWrapper };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { FC, ReactNode, ComponentProps } from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import Image from 'next/image';
|
|
4
|
+
import { TreeOfContent, informationUnitsItems } from '@c-rex/interfaces';
|
|
5
|
+
import { Sidebar } from '@c-rex/ui';
|
|
6
|
+
|
|
7
|
+
interface SearchStateWrapperProps {
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
filters: {
|
|
10
|
+
searchValue: string;
|
|
11
|
+
page: number;
|
|
12
|
+
selectedLanguage: string[];
|
|
13
|
+
availableLanguages: string[];
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
declare const SearchStateWrapper: FC<SearchStateWrapperProps>;
|
|
17
|
+
|
|
18
|
+
type Props = {
|
|
19
|
+
initialValue: string;
|
|
20
|
+
onSelect: (value: string) => void;
|
|
21
|
+
onSearch: (value: string) => Promise<string[]>;
|
|
22
|
+
};
|
|
23
|
+
declare const AutoComplete: ({ initialValue, onSearch, onSelect, }: Props) => react_jsx_runtime.JSX.Element;
|
|
24
|
+
|
|
25
|
+
interface BlogCardProp {
|
|
26
|
+
data: {
|
|
27
|
+
title: string;
|
|
28
|
+
blurDataURL: string;
|
|
29
|
+
image: string;
|
|
30
|
+
description: string;
|
|
31
|
+
authors: string;
|
|
32
|
+
_id: string;
|
|
33
|
+
date: string;
|
|
34
|
+
slug: string;
|
|
35
|
+
};
|
|
36
|
+
priority?: boolean;
|
|
37
|
+
horizontal?: boolean;
|
|
38
|
+
}
|
|
39
|
+
declare const BlogCard: ({ data, priority, horizontal, }: BlogCardProp) => react_jsx_runtime.JSX.Element;
|
|
40
|
+
|
|
41
|
+
declare const BlurImage: (props: ComponentProps<typeof Image>) => react_jsx_runtime.JSX.Element;
|
|
42
|
+
|
|
43
|
+
interface BreadcrumbProps {
|
|
44
|
+
items: TreeOfContent[];
|
|
45
|
+
loading?: boolean;
|
|
46
|
+
}
|
|
47
|
+
declare const Breadcrumb: FC<BreadcrumbProps>;
|
|
48
|
+
|
|
49
|
+
declare const Empty: FC;
|
|
50
|
+
|
|
51
|
+
interface NavBarProps {
|
|
52
|
+
scroll?: boolean;
|
|
53
|
+
large?: boolean;
|
|
54
|
+
}
|
|
55
|
+
declare const NavBar: FC<NavBarProps>;
|
|
56
|
+
|
|
57
|
+
interface ResultListProps {
|
|
58
|
+
items: informationUnitsItems[];
|
|
59
|
+
}
|
|
60
|
+
declare const ResultList: FC<ResultListProps>;
|
|
61
|
+
|
|
62
|
+
interface SidebarProps extends ComponentProps<typeof Sidebar> {
|
|
63
|
+
data: TreeOfContent[];
|
|
64
|
+
loading?: boolean;
|
|
65
|
+
}
|
|
66
|
+
declare function AppSidebar({ data, loading, ...props }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
67
|
+
|
|
68
|
+
export { AppSidebar, AutoComplete, BlogCard, BlurImage, Breadcrumb, Empty, NavBar, ResultList, SearchStateWrapper };
|