@llmnative/react 0.1.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/LICENSE +201 -0
- package/README.md +375 -0
- package/bin/cli.js +99 -0
- package/dist/index.css +1 -0
- package/dist/index.js +838 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +12161 -0
- package/dist/index.mjs.map +1 -0
- package/dist/types/src/App.d.ts +64 -0
- package/dist/types/src/Config.d.ts +65 -0
- package/dist/types/src/Global.d.ts +12 -0
- package/dist/types/src/Head.d.ts +193 -0
- package/dist/types/src/Theme.d.ts +335 -0
- package/dist/types/src/auth.d.ts +27 -0
- package/dist/types/src/components/Component.d.ts +55 -0
- package/dist/types/src/components/FormEnhancer.d.ts +26 -0
- package/dist/types/src/components/Template.d.ts +18 -0
- package/dist/types/src/components/blocks/Brand.d.ts +14 -0
- package/dist/types/src/components/blocks/Breadcrumbs.d.ts +8 -0
- package/dist/types/src/components/blocks/Carousel.d.ts +19 -0
- package/dist/types/src/components/blocks/Dropdown.d.ts +64 -0
- package/dist/types/src/components/blocks/Menu.d.ts +24 -0
- package/dist/types/src/components/blocks/Notifications.d.ts +15 -0
- package/dist/types/src/components/blocks/Search.d.ts +7 -0
- package/dist/types/src/components/index.d.ts +52 -0
- package/dist/types/src/components/types.d.ts +11 -0
- package/dist/types/src/components/ui/Alert.d.ts +13 -0
- package/dist/types/src/components/ui/Badge.d.ts +27 -0
- package/dist/types/src/components/ui/Buttons.d.ts +57 -0
- package/dist/types/src/components/ui/Card.d.ts +15 -0
- package/dist/types/src/components/ui/Code.d.ts +25 -0
- package/dist/types/src/components/ui/Gallery.d.ts +55 -0
- package/dist/types/src/components/ui/GridSystem.d.ts +21 -0
- package/dist/types/src/components/ui/Icon.d.ts +13 -0
- package/dist/types/src/components/ui/Image.d.ts +19 -0
- package/dist/types/src/components/ui/ImageAvatar.d.ts +16 -0
- package/dist/types/src/components/ui/LayoutBuilder.d.ts +19 -0
- package/dist/types/src/components/ui/Loader.d.ts +11 -0
- package/dist/types/src/components/ui/Modal.d.ts +39 -0
- package/dist/types/src/components/ui/Pagination.d.ts +18 -0
- package/dist/types/src/components/ui/Percentage.d.ts +19 -0
- package/dist/types/src/components/ui/Repeat.d.ts +18 -0
- package/dist/types/src/components/ui/Tab.d.ts +20 -0
- package/dist/types/src/components/ui/TabDynamic.d.ts +20 -0
- package/dist/types/src/components/ui/Table.d.ts +43 -0
- package/dist/types/src/components/ui/fields/AssistantAI.d.ts +23 -0
- package/dist/types/src/components/ui/fields/Command.d.ts +15 -0
- package/dist/types/src/components/ui/fields/Crop.d.ts +27 -0
- package/dist/types/src/components/ui/fields/ImageUrl.d.ts +7 -0
- package/dist/types/src/components/ui/fields/Input.d.ts +62 -0
- package/dist/types/src/components/ui/fields/Prompt.d.ts +31 -0
- package/dist/types/src/components/ui/fields/Select.d.ts +38 -0
- package/dist/types/src/components/ui/fields/Upload.d.ts +25 -0
- package/dist/types/src/components/ui/fields/UploadCSV.d.ts +26 -0
- package/dist/types/src/components/ui/useRecordSelection.d.ts +20 -0
- package/dist/types/src/components/ui/useStableRecordKey.d.ts +5 -0
- package/dist/types/src/components/widgets/Form.d.ts +129 -0
- package/dist/types/src/components/widgets/Grid.d.ts +6 -0
- package/dist/types/src/components/widgets/ImageEditor.d.ts +14 -0
- package/dist/types/src/components/widgets/MarkdownReader.d.ts +14 -0
- package/dist/types/src/components/widgets/Prompt.d.ts +31 -0
- package/dist/types/src/components/widgets/TabDynamic.d.ts +20 -0
- package/dist/types/src/components/widgets/grid-core/GridArray.d.ts +5 -0
- package/dist/types/src/components/widgets/grid-core/GridCore.d.ts +5 -0
- package/dist/types/src/components/widgets/grid-core/GridDB.d.ts +5 -0
- package/dist/types/src/components/widgets/grid-core/GridGalleryView.d.ts +5 -0
- package/dist/types/src/components/widgets/grid-core/GridTableView.d.ts +5 -0
- package/dist/types/src/components/widgets/grid-core/index.d.ts +7 -0
- package/dist/types/src/components/widgets/grid-core/resolveGridPathFromUrl.d.ts +1 -0
- package/dist/types/src/components/widgets/grid-core/types.d.ts +227 -0
- package/dist/types/src/components/widgets/grid-core/useGridActions.d.ts +49 -0
- package/dist/types/src/components/widgets/grid-core/useGridColumns.d.ts +10 -0
- package/dist/types/src/components/widgets/grid-core/useGridDBRecords.d.ts +10 -0
- package/dist/types/src/components/widgets/grid-core/useGridPreparedRecords.d.ts +10 -0
- package/dist/types/src/components/widgets/grid-core/useGridSelection.d.ts +13 -0
- package/dist/types/src/components/widgets/grid-core/utils.d.ts +14 -0
- package/dist/types/src/conf/Prompt.d.ts +84 -0
- package/dist/types/src/constant.d.ts +96 -0
- package/dist/types/src/index.d.ts +56 -0
- package/dist/types/src/libs/cache.d.ts +9 -0
- package/dist/types/src/libs/cn.d.ts +2 -0
- package/dist/types/src/libs/converter.d.ts +28 -0
- package/dist/types/src/libs/database.d.ts +3 -0
- package/dist/types/src/libs/email.d.ts +16 -0
- package/dist/types/src/libs/fetch.d.ts +9 -0
- package/dist/types/src/libs/imageBuilder.d.ts +112 -0
- package/dist/types/src/libs/index.d.ts +14 -0
- package/dist/types/src/libs/locale.d.ts +24 -0
- package/dist/types/src/libs/log.d.ts +2 -0
- package/dist/types/src/libs/order.d.ts +14 -0
- package/dist/types/src/libs/path.d.ts +26 -0
- package/dist/types/src/libs/sanitizer.d.ts +38 -0
- package/dist/types/src/libs/seo.d.ts +8 -0
- package/dist/types/src/libs/storage.d.ts +2 -0
- package/dist/types/src/libs/utils.d.ts +57 -0
- package/dist/types/src/motion.d.ts +38 -0
- package/dist/types/src/pages/Blog.d.ts +3 -0
- package/dist/types/src/pages/BlogPost.d.ts +16 -0
- package/dist/types/src/pages/Helper.d.ts +8 -0
- package/dist/types/src/pages/NotFound.d.ts +3 -0
- package/dist/types/src/pages/Users.d.ts +3 -0
- package/dist/types/src/pages/index.d.ts +3 -0
- package/dist/types/src/providers/ProviderConfiguration.d.ts +12 -0
- package/dist/types/src/providers/ai/index.d.ts +134 -0
- package/dist/types/src/providers/auth/AuthProvider.d.ts +22 -0
- package/dist/types/src/providers/auth/AuthProviderContext.d.ts +12 -0
- package/dist/types/src/providers/auth/dropbox/DropboxAuthProvider.d.ts +16 -0
- package/dist/types/src/providers/auth/google/GoogleAuth.d.ts +44 -0
- package/dist/types/src/providers/auth/google/GoogleAuthProvider.d.ts +12 -0
- package/dist/types/src/providers/auth/google/apis/auth.d.ts +4 -0
- package/dist/types/src/providers/auth/google/auth.d.ts +3 -0
- package/dist/types/src/providers/data/DataProvider.d.ts +58 -0
- package/dist/types/src/providers/data/DataProviderContext.d.ts +12 -0
- package/dist/types/src/providers/data/firebase.d.ts +21 -0
- package/dist/types/src/providers/data/mock.d.ts +20 -0
- package/dist/types/src/providers/data/supabase.d.ts +19 -0
- package/dist/types/src/providers/email/EmailProvider.d.ts +10 -0
- package/dist/types/src/providers/email/EmailProviderContext.d.ts +12 -0
- package/dist/types/src/providers/email/google/GmailEmailProvider.d.ts +7 -0
- package/dist/types/src/providers/email/google/apis/email.d.ts +7 -0
- package/dist/types/src/providers/email/google/email.d.ts +13 -0
- package/dist/types/src/providers/firebase-init.d.ts +10 -0
- package/dist/types/src/providers/icon/IconProvider.d.ts +10 -0
- package/dist/types/src/providers/icon/IconProviderContext.d.ts +48 -0
- package/dist/types/src/providers/icon/LucideIconProvider.d.ts +5 -0
- package/dist/types/src/providers/icon/PhosphorIconProvider.d.ts +10 -0
- package/dist/types/src/providers/icon/index.d.ts +6 -0
- package/dist/types/src/providers/manifest.d.ts +42 -0
- package/dist/types/src/providers/scrape/index.d.ts +10 -0
- package/dist/types/src/providers/seo/google/keyword.d.ts +14 -0
- package/dist/types/src/providers/seo/google/trend.d.ts +25 -0
- package/dist/types/src/providers/storage/StorageProvider.d.ts +7 -0
- package/dist/types/src/providers/storage/StorageProviderContext.d.ts +12 -0
- package/dist/types/src/providers/storage/dropbox.d.ts +48 -0
- package/dist/types/src/providers/storage/firebase.d.ts +13 -0
- package/dist/types/src/providers/storage/supabase.d.ts +19 -0
- package/dist/types/src/types/Block.d.ts +4 -0
- package/dist/types/src/types/FormFields.d.ts +33 -0
- package/dist/types/src/types/Layout.d.ts +9 -0
- package/dist/types/src/types/Section.d.ts +4 -0
- package/dist/types/themes/cyber.d.ts +7 -0
- package/dist/types/themes/default.d.ts +7 -0
- package/dist/types/themes/flat.d.ts +7 -0
- package/package.json +126 -0
- package/scripts/cli/create-section.js +65 -0
- package/scripts/cli/setup-devtools.js +85 -0
- package/scripts/cli/setup-project.js +484 -0
- package/themes/cyber.ts +405 -0
- package/themes/default.ts +405 -0
- package/themes/flat.ts +405 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Primitive = string | number | boolean | undefined;
|
|
3
|
+
interface FieldRenderProps {
|
|
4
|
+
name: string;
|
|
5
|
+
defaultValue?: any;
|
|
6
|
+
label?: string;
|
|
7
|
+
onChange?: (value: any) => void;
|
|
8
|
+
}
|
|
9
|
+
interface FieldAdapter<TProps = any> {
|
|
10
|
+
getDefaults: (name: string) => Record<string, any>;
|
|
11
|
+
render: (props?: FieldRenderProps & TProps) => React.ReactNode;
|
|
12
|
+
__props: TProps;
|
|
13
|
+
}
|
|
14
|
+
export type FieldFactory<TProps = {}> = (props?: TProps) => FieldAdapter;
|
|
15
|
+
interface ComponentProps {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}
|
|
18
|
+
type Defaults = {
|
|
19
|
+
[key: string]: Primitive | Primitive[];
|
|
20
|
+
};
|
|
21
|
+
export type ModelProps = {
|
|
22
|
+
[key: string]: FieldAdapter | React.ReactNode | ModelProps;
|
|
23
|
+
};
|
|
24
|
+
export type FormTree = {
|
|
25
|
+
[key: string]: React.ReactNode | FormTree;
|
|
26
|
+
};
|
|
27
|
+
export declare const Component: {
|
|
28
|
+
layout: import("../types/Layout").ComponentLayoutMap;
|
|
29
|
+
input: import("../types/FormFields").ComponentFormFieldsMap;
|
|
30
|
+
block: import("../types/Block").ComponentBlockMap;
|
|
31
|
+
section: import("../types/Section").ComponentSectionMap;
|
|
32
|
+
};
|
|
33
|
+
export declare abstract class ComponentBlock {
|
|
34
|
+
abstract model: ModelProps;
|
|
35
|
+
abstract html(props?: ComponentProps): React.ReactNode;
|
|
36
|
+
abstract form(props?: ComponentProps): React.ReactNode;
|
|
37
|
+
protected verifyRequiredMethods(): void;
|
|
38
|
+
static default(this: new () => ComponentBlock, options?: {
|
|
39
|
+
dataStoragePath?: string;
|
|
40
|
+
}): React.FC;
|
|
41
|
+
}
|
|
42
|
+
export declare function buildFormFields(model: ModelProps): [FormTree, Defaults];
|
|
43
|
+
export declare function ComponentBlockSave(blockClass: new () => ComponentBlock, dbStoragePath: string): Promise<void>;
|
|
44
|
+
export declare class ComponentTemplate {
|
|
45
|
+
private template?;
|
|
46
|
+
constructor(path: string);
|
|
47
|
+
loadTemplate(path: string): Promise<void>;
|
|
48
|
+
render(dataPath: string): Promise<{
|
|
49
|
+
html: () => React.ReactNode;
|
|
50
|
+
form: () => React.ReactNode;
|
|
51
|
+
}>;
|
|
52
|
+
private renderTemplate;
|
|
53
|
+
private parseTemplate;
|
|
54
|
+
}
|
|
55
|
+
export default Component;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RecordProps } from "../providers/data/DataProvider";
|
|
3
|
+
import { FormRef, ChangeHandler } from './widgets/Form';
|
|
4
|
+
type FormProps = {
|
|
5
|
+
name?: string;
|
|
6
|
+
value?: any;
|
|
7
|
+
onChange?: (event: ChangeHandler) => void;
|
|
8
|
+
dataStoragePath?: string;
|
|
9
|
+
};
|
|
10
|
+
interface EnhancerProps {
|
|
11
|
+
record?: RecordProps;
|
|
12
|
+
handleChange?: (event: ChangeHandler) => void;
|
|
13
|
+
parentName?: string;
|
|
14
|
+
dataStoragePath?: string;
|
|
15
|
+
formRef?: React.Ref<FormRef>;
|
|
16
|
+
wrapClass?: string;
|
|
17
|
+
}
|
|
18
|
+
interface FormEnhancerProps extends EnhancerProps {
|
|
19
|
+
components: React.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
declare const FormEnhancer: ({ components, record, handleChange, parentName, dataStoragePath, formRef, wrapClass }: FormEnhancerProps) => React.JSX.Element;
|
|
22
|
+
export declare function extractComponentProps<T>(components: React.ReactNode | React.ReactNode[], onEnhance: (props: {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
}) => T): T[];
|
|
25
|
+
export declare function asForm<P extends FormProps>(Component: React.ComponentType<P>): React.ComponentType<P>;
|
|
26
|
+
export default FormEnhancer;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentFormFieldsMap } from '../types/FormFields';
|
|
3
|
+
type ComponentSpec = {
|
|
4
|
+
tag: keyof ComponentFormFieldsMap;
|
|
5
|
+
props?: Record<string, any>;
|
|
6
|
+
};
|
|
7
|
+
type FormFieldsMap = Record<string, ComponentSpec>;
|
|
8
|
+
export declare function FormTemplate({ htmlString, components, dataStoragePath }: {
|
|
9
|
+
htmlString: string;
|
|
10
|
+
components: FormFieldsMap;
|
|
11
|
+
dataStoragePath: string;
|
|
12
|
+
}): React.JSX.Element;
|
|
13
|
+
export declare function FormTemplate2({ template, fieldBucketKey, dataSource, }: {
|
|
14
|
+
template: string;
|
|
15
|
+
fieldBucketKey: string;
|
|
16
|
+
dataSource?: string;
|
|
17
|
+
}): React.JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type BrandProps = {
|
|
3
|
+
url?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
logo?: string;
|
|
6
|
+
width?: number;
|
|
7
|
+
height?: number;
|
|
8
|
+
wrapClass?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
logoClass?: string;
|
|
11
|
+
labelClass?: string;
|
|
12
|
+
};
|
|
13
|
+
declare const Brand: ({ url, label, logo, width, height, wrapClass, className, logoClass, labelClass }: BrandProps) => React.JSX.Element;
|
|
14
|
+
export default Brand;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type AutoPlayOptions = {
|
|
3
|
+
interval: number;
|
|
4
|
+
pause: "hover" | "false" | "true";
|
|
5
|
+
wrap: boolean;
|
|
6
|
+
};
|
|
7
|
+
type CarouselProps = {
|
|
8
|
+
children: React.ReactElement[];
|
|
9
|
+
showIndicators?: boolean;
|
|
10
|
+
showControls?: boolean;
|
|
11
|
+
showCaption?: boolean;
|
|
12
|
+
layoutDark?: boolean;
|
|
13
|
+
autoPlay?: AutoPlayOptions;
|
|
14
|
+
startSlide?: number;
|
|
15
|
+
onParseCaption?: (image: React.ReactElement) => React.ReactElement;
|
|
16
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
17
|
+
};
|
|
18
|
+
declare const Carousel: ({ children, showIndicators, showControls, showCaption, layoutDark, autoPlay, startSlide, onParseCaption, onClick, }: CarouselProps) => React.JSX.Element;
|
|
19
|
+
export default Carousel;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BadgeProps } from "../ui/Badge";
|
|
3
|
+
import type { MotionUIProps } from '../types';
|
|
4
|
+
interface DropdownTogglerProps {
|
|
5
|
+
icon?: string;
|
|
6
|
+
text?: string;
|
|
7
|
+
}
|
|
8
|
+
interface DropdownProps extends Pick<MotionUIProps, 'motion'> {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
toggleButton?: string | React.ReactNode | DropdownTogglerProps;
|
|
11
|
+
badge?: BadgeProps;
|
|
12
|
+
header?: React.ReactNode;
|
|
13
|
+
footer?: React.ReactNode;
|
|
14
|
+
defaultOpen?: boolean;
|
|
15
|
+
open?: boolean;
|
|
16
|
+
onOpenChange?: (open: boolean) => void;
|
|
17
|
+
alwaysOpen?: boolean;
|
|
18
|
+
position?: "start" | "end";
|
|
19
|
+
wrapClass?: string;
|
|
20
|
+
className?: string;
|
|
21
|
+
buttonClass?: string;
|
|
22
|
+
badgeClass?: string;
|
|
23
|
+
menuClass?: string;
|
|
24
|
+
headerClass?: string;
|
|
25
|
+
footerClass?: string;
|
|
26
|
+
}
|
|
27
|
+
interface DropdownButtonProps extends Pick<MotionUIProps, 'motion'> {
|
|
28
|
+
children: React.ReactNode;
|
|
29
|
+
badge?: BadgeProps;
|
|
30
|
+
display?: "static" | "dynamic";
|
|
31
|
+
className?: string;
|
|
32
|
+
badgeClass?: string;
|
|
33
|
+
onToggle?: () => void;
|
|
34
|
+
open?: boolean;
|
|
35
|
+
menuId?: string;
|
|
36
|
+
}
|
|
37
|
+
interface DropdownItemProps {
|
|
38
|
+
url?: string;
|
|
39
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement | HTMLButtonElement>;
|
|
40
|
+
className?: string;
|
|
41
|
+
children: React.ReactNode;
|
|
42
|
+
icon?: string;
|
|
43
|
+
}
|
|
44
|
+
interface DropdownHeaderProps {
|
|
45
|
+
children: React.ReactNode;
|
|
46
|
+
className?: string;
|
|
47
|
+
}
|
|
48
|
+
interface DropdownDividerProps {
|
|
49
|
+
className?: string;
|
|
50
|
+
}
|
|
51
|
+
export declare const Dropdown: ({ children, toggleButton, badge, header, footer, defaultOpen, open: controlledOpen, onOpenChange, alwaysOpen, position, wrapClass, className, buttonClass, menuClass, badgeClass, headerClass, footerClass, motion: motionConfig, }: DropdownProps) => React.JSX.Element;
|
|
52
|
+
export declare const DropdownButton: ({ children, badge, display, className, badgeClass, motion: motionConfig, onToggle, open, menuId }: DropdownButtonProps) => React.JSX.Element;
|
|
53
|
+
export declare const DropdownItem: ({ children, url, onClick, icon, className }: DropdownItemProps) => React.JSX.Element;
|
|
54
|
+
export declare const DropdownHeader: ({ children, className }: DropdownHeaderProps) => React.JSX.Element;
|
|
55
|
+
export declare const DropdownDivider: ({ className }: DropdownDividerProps) => React.JSX.Element;
|
|
56
|
+
interface DropdownMenuProps {
|
|
57
|
+
context: string;
|
|
58
|
+
Type?: 'ul' | 'ol';
|
|
59
|
+
badges?: Record<string, any>;
|
|
60
|
+
pre?: React.ReactNode;
|
|
61
|
+
post?: React.ReactNode;
|
|
62
|
+
}
|
|
63
|
+
export declare const DropdownMenu: ({ context, Type, badges, pre, post }: DropdownMenuProps) => React.JSX.Element;
|
|
64
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BadgeType } from '../ui/Badge';
|
|
3
|
+
interface MenuProps {
|
|
4
|
+
context: string;
|
|
5
|
+
Type?: 'ul' | 'ol';
|
|
6
|
+
badges?: Record<string, {
|
|
7
|
+
type?: BadgeType;
|
|
8
|
+
children: string;
|
|
9
|
+
}>;
|
|
10
|
+
pre?: React.ReactNode;
|
|
11
|
+
post?: React.ReactNode;
|
|
12
|
+
wrapClass?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
headerClass?: string;
|
|
15
|
+
itemClass?: string;
|
|
16
|
+
linkClass?: string;
|
|
17
|
+
iconClass?: string;
|
|
18
|
+
textClass?: string;
|
|
19
|
+
badgeClass?: string;
|
|
20
|
+
arrowClass?: string;
|
|
21
|
+
submenuClass?: string;
|
|
22
|
+
}
|
|
23
|
+
declare const Menu: ({ context, Type, badges, pre, post, wrapClass, className, headerClass, itemClass, linkClass, iconClass, textClass, badgeClass, arrowClass, submenuClass, }: MenuProps) => React.JSX.Element;
|
|
24
|
+
export default Menu;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { BadgeProps } from "../ui/Badge";
|
|
3
|
+
interface NotificationItem {
|
|
4
|
+
title: string;
|
|
5
|
+
url: string;
|
|
6
|
+
time: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
}
|
|
9
|
+
interface NotificationsProps {
|
|
10
|
+
children?: NotificationItem[];
|
|
11
|
+
badge?: BadgeProps;
|
|
12
|
+
wrapClass?: string;
|
|
13
|
+
}
|
|
14
|
+
declare function Notifications({ children, badge, wrapClass }: NotificationsProps): React.JSX.Element;
|
|
15
|
+
export default Notifications;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SearchProps {
|
|
3
|
+
handleSearch?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
4
|
+
}
|
|
5
|
+
export declare const SearchButton: () => React.JSX.Element;
|
|
6
|
+
declare function Search({ handleSearch }: SearchProps): React.JSX.Element;
|
|
7
|
+
export default Search;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export type { MotionUIProps, UIProps } from './types';
|
|
2
|
+
export { default as Brand } from './blocks/Brand';
|
|
3
|
+
export { default as Breadcrumbs } from './blocks/Breadcrumbs';
|
|
4
|
+
export { default as Carousel } from './blocks/Carousel';
|
|
5
|
+
export * from './blocks/Dropdown';
|
|
6
|
+
export { default as Notifications } from './blocks/Notifications';
|
|
7
|
+
export { default as Search } from './blocks/Search';
|
|
8
|
+
export { default as Alert } from './ui/Alert';
|
|
9
|
+
export { default as Badge } from './ui/Badge';
|
|
10
|
+
export * from './ui/Badge';
|
|
11
|
+
export * from './ui/Buttons';
|
|
12
|
+
export { default as Card } from './ui/Card';
|
|
13
|
+
export { default as Code } from './ui/Code';
|
|
14
|
+
export { default as Gallery } from './ui/Gallery';
|
|
15
|
+
export * from './ui/Gallery';
|
|
16
|
+
export type { GallerySelectionChangeHandler, GallerySelectionState } from './ui/Gallery';
|
|
17
|
+
export * from './ui/GridSystem';
|
|
18
|
+
export { default as Image } from './ui/Image';
|
|
19
|
+
export { default as ImageAvatar } from './ui/ImageAvatar';
|
|
20
|
+
export { default as Loader } from './ui/Loader';
|
|
21
|
+
export { default as Modal } from './ui/Modal';
|
|
22
|
+
export * from './ui/Modal';
|
|
23
|
+
export { default as Percentage } from './ui/Percentage';
|
|
24
|
+
export { default as Repeat } from './ui/Repeat';
|
|
25
|
+
export { default as Tab } from './ui/Tab';
|
|
26
|
+
export * from './ui/Tab';
|
|
27
|
+
export { default as Table } from './ui/Table';
|
|
28
|
+
export type { TableHeaderProp, TableReorderHandler, TableReorderMeta, TableSelectionChangeHandler, TableSelectionState } from './ui/Table';
|
|
29
|
+
export { default as Icon } from './ui/Icon';
|
|
30
|
+
export { LayoutBuilder } from './ui/LayoutBuilder';
|
|
31
|
+
export * from './ui/fields/Input';
|
|
32
|
+
export * from './ui/fields/Select';
|
|
33
|
+
export * from './ui/fields/Upload';
|
|
34
|
+
export * from './ui/fields/Crop';
|
|
35
|
+
export * from './ui/fields/UploadCSV';
|
|
36
|
+
export * from './ui/fields/ImageUrl';
|
|
37
|
+
export { default as AssistantAI } from './ui/fields/AssistantAI';
|
|
38
|
+
export { default as Menu } from './blocks/Menu';
|
|
39
|
+
export { default as Form } from './widgets/Form';
|
|
40
|
+
export type { FormDeleteArgs, FormDeleteHandler, FormFinallyArgs, FormFinallyHandler, FormSaveArgs, FormSaveHandler, SavePathProps } from './widgets/Form';
|
|
41
|
+
export { default as Grid } from './widgets/Grid';
|
|
42
|
+
export { GridArray, GridCore, GridDB, GridGalleryView, GridTableView } from './widgets/grid-core';
|
|
43
|
+
export type { GridAction, GridActions, GridAfterActionArgs, GridAfterActionHandler, GridArrayProps, GridColumn, GridCoreProps, GridDBQuery, GridDBProps, GridFooterContext, GridFormContext, GridGalleryViewProps, GridHeaderContext, GridLayout, GridMutationDeleteArgs, GridMutationDeleteHandler, GridMutationSaveArgs, GridMutationSaveHandler, GridReorderHandler, GridReorderMeta, GridRecordKey, GridProps, GridSelectionChangeHandler, GridSelectionMode, GridSelectionState, GridSticky, GridTableViewProps, } from './widgets/Grid';
|
|
44
|
+
export { default as ImageEditor } from './widgets/ImageEditor';
|
|
45
|
+
export { default as MarkdownReader } from './widgets/MarkdownReader';
|
|
46
|
+
export type { MarkdownReaderProps } from './widgets/MarkdownReader';
|
|
47
|
+
export * from './widgets/Prompt';
|
|
48
|
+
export { default as TabDynamic } from './widgets/TabDynamic';
|
|
49
|
+
export { default as Component } from './Component';
|
|
50
|
+
export { ComponentBlock } from './Component';
|
|
51
|
+
export * from './Template';
|
|
52
|
+
export type { ModalDeleteHandler, ModalSaveHandler } from './ui/Modal';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { MotionReference } from '../motion';
|
|
3
|
+
export interface UIProps {
|
|
4
|
+
pre?: React.ReactNode;
|
|
5
|
+
post?: React.ReactNode;
|
|
6
|
+
wrapClass?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface MotionUIProps extends UIProps {
|
|
10
|
+
motion?: MotionReference;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIProps } from '../..';
|
|
3
|
+
type AlertProps = {
|
|
4
|
+
children: string | React.ReactNode;
|
|
5
|
+
type?: "info" | "success" | "warning" | "danger" | "primary" | "secondary" | "light" | "dark";
|
|
6
|
+
isFixed?: "top" | "bottom";
|
|
7
|
+
timeout?: number;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
icon?: string | boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
} & UIProps;
|
|
12
|
+
declare const Alert: ({ children, type, isFixed, timeout, onClose, icon, pre, post, wrapClass, className }: AlertProps) => React.JSX.Element;
|
|
13
|
+
export default Alert;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { UIProps } from '../types';
|
|
3
|
+
export type BadgeType = "info" | "success" | "warning" | "danger" | "primary" | "secondary" | "light" | "dark";
|
|
4
|
+
export type BadgeDescriptor = {
|
|
5
|
+
content: React.ReactNode;
|
|
6
|
+
type?: BadgeType;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export type BadgeProps = React.ReactNode | BadgeDescriptor;
|
|
10
|
+
export declare function isBadgeDescriptor(value: BadgeProps | undefined): value is BadgeDescriptor;
|
|
11
|
+
export declare function normalizeBadgeProps(value: BadgeProps | undefined, fallbackType?: BadgeType, fallbackClassName?: string): BadgeDescriptor | undefined;
|
|
12
|
+
export type BadgeOverlayProps = {
|
|
13
|
+
badge?: BadgeProps;
|
|
14
|
+
content?: React.ReactNode;
|
|
15
|
+
type?: BadgeType;
|
|
16
|
+
defaultType?: BadgeType;
|
|
17
|
+
className?: string;
|
|
18
|
+
descriptorOnly?: boolean;
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
};
|
|
21
|
+
export declare const BadgeOverlay: ({ badge, content, type, defaultType, className, descriptorOnly, children }: BadgeOverlayProps) => React.ReactNode;
|
|
22
|
+
export type BadgeComponentProps = {
|
|
23
|
+
children: string | React.ReactNode;
|
|
24
|
+
type?: BadgeType;
|
|
25
|
+
} & UIProps;
|
|
26
|
+
declare const Badge: ({ children, type, pre, post, wrapClass, className }: BadgeComponentProps) => React.JSX.Element;
|
|
27
|
+
export default Badge;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { MotionUIProps, UIProps } from '../types';
|
|
3
|
+
import { BadgeProps } from './Badge';
|
|
4
|
+
export interface IButton extends MotionUIProps {
|
|
5
|
+
onClick?: (e: any) => any;
|
|
6
|
+
icon?: string;
|
|
7
|
+
label?: string | React.ReactNode;
|
|
8
|
+
badge?: BadgeProps;
|
|
9
|
+
title?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
showLoader?: boolean;
|
|
12
|
+
iconClass?: string;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
variant?: "primary" | "secondary" | "danger" | "success" | "warning" | "info" | "light" | "dark" | "outline-primary" | "outline-secondary" | "outline-danger" | "outline-success" | "link";
|
|
15
|
+
}
|
|
16
|
+
export type SetMessagePayload = {
|
|
17
|
+
message: string;
|
|
18
|
+
chunkDone?: number;
|
|
19
|
+
totalChunks?: number;
|
|
20
|
+
};
|
|
21
|
+
export interface LoadingButtonProps extends Omit<IButton, "onClick"> {
|
|
22
|
+
onClick?: (e: any, setMessage?: (payload: SetMessagePayload) => any) => Promise<any>;
|
|
23
|
+
loadingLabel?: string | React.ReactNode;
|
|
24
|
+
}
|
|
25
|
+
export declare const buttonBaseClass = "btn";
|
|
26
|
+
export declare const buttonPrimaryClass = "btn-primary";
|
|
27
|
+
export declare const buttonSecondaryClass = "btn-secondary";
|
|
28
|
+
export declare const buttonDangerClass = "btn-danger";
|
|
29
|
+
export declare const buttonSuccessClass = "btn-success";
|
|
30
|
+
export declare const buttonWarningClass = "btn-warning";
|
|
31
|
+
export declare const buttonInfoClass = "btn-info";
|
|
32
|
+
export declare const buttonLightClass = "btn-light";
|
|
33
|
+
export declare const buttonDarkClass = "btn-dark";
|
|
34
|
+
export declare const buttonOutlinePrimaryClass = "btn-outline-primary";
|
|
35
|
+
export declare const buttonOutlineSecondaryClass = "btn-outline-secondary";
|
|
36
|
+
export declare const buttonOutlineDangerClass = "btn-outline-danger";
|
|
37
|
+
export declare const buttonOutlineSuccessClass = "btn-outline-success";
|
|
38
|
+
export declare const buttonLinkClass = "btn-link";
|
|
39
|
+
export declare const LoadingButton: ({ onClick, icon, label, badge, title, disabled, showLoader, pre, post, wrapClass, className, iconClass, style, loadingLabel, variant, motion: motionConfig }?: LoadingButtonProps) => React.JSX.Element;
|
|
40
|
+
export declare const ActionButton: ({ onClick, icon, label, badge, title, disabled, pre, post, wrapClass, className, iconClass, style, variant, motion: motionConfig }?: IButton) => React.JSX.Element;
|
|
41
|
+
interface BackLinkProps extends UIProps {
|
|
42
|
+
label?: string;
|
|
43
|
+
}
|
|
44
|
+
export declare const BackLink: ({ label, pre, post, wrapClass, className }: BackLinkProps) => React.JSX.Element;
|
|
45
|
+
interface GoSiteProps extends UIProps {
|
|
46
|
+
label: string;
|
|
47
|
+
url: string;
|
|
48
|
+
}
|
|
49
|
+
export declare const GoSite: ({ label, url, pre, post, wrapClass, className }: GoSiteProps) => React.JSX.Element;
|
|
50
|
+
interface ReferSiteProps extends UIProps {
|
|
51
|
+
title: string;
|
|
52
|
+
url: string;
|
|
53
|
+
imageUrl: string;
|
|
54
|
+
width?: number | string;
|
|
55
|
+
}
|
|
56
|
+
export declare const ReferSite: ({ title, url, imageUrl, width, pre, post, wrapClass, className }: ReferSiteProps) => React.JSX.Element;
|
|
57
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIProps } from '../..';
|
|
3
|
+
interface CardProps extends UIProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
title?: string;
|
|
6
|
+
header?: string | React.ReactNode;
|
|
7
|
+
footer?: string | React.ReactNode;
|
|
8
|
+
headerClass?: string;
|
|
9
|
+
bodyClass?: string;
|
|
10
|
+
footerClass?: string;
|
|
11
|
+
showLoader?: boolean;
|
|
12
|
+
showArrow?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const Card: ({ children, title, header, footer, showLoader, showArrow, wrapClass, className, headerClass, bodyClass, footerClass }: CardProps) => React.JSX.Element;
|
|
15
|
+
export default Card;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIProps } from '../..';
|
|
3
|
+
declare const LANGUAGES: Record<string, () => Promise<unknown>>;
|
|
4
|
+
declare const THEMES: {
|
|
5
|
+
prism: string;
|
|
6
|
+
dark: string;
|
|
7
|
+
coy: string;
|
|
8
|
+
funky: string;
|
|
9
|
+
okaidia: string;
|
|
10
|
+
solarizedlight: string;
|
|
11
|
+
tomorrow: string;
|
|
12
|
+
twilight: string;
|
|
13
|
+
};
|
|
14
|
+
type PrismLanguage = keyof typeof LANGUAGES;
|
|
15
|
+
type PrismTheme = keyof typeof THEMES;
|
|
16
|
+
export type PrismBackground = 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark' | 'white' | 'black' | 'transparent' | 'default';
|
|
17
|
+
interface CodeProps extends UIProps {
|
|
18
|
+
children: string;
|
|
19
|
+
language?: PrismLanguage;
|
|
20
|
+
showCopy?: boolean;
|
|
21
|
+
theme?: PrismTheme;
|
|
22
|
+
background?: PrismBackground;
|
|
23
|
+
}
|
|
24
|
+
declare const Code: ({ language, children, pre, post, wrapClass, className, showCopy, theme, background, }: CodeProps) => React.JSX.Element;
|
|
25
|
+
export default Code;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RecordProps } from "../../providers/data/DataProvider";
|
|
3
|
+
import { PaginationParams } from './Pagination';
|
|
4
|
+
import { UIProps } from '../';
|
|
5
|
+
import { BadgeProps } from './Badge';
|
|
6
|
+
import { type OrderConfig } from '../../libs/order';
|
|
7
|
+
import { RecordSelectionState } from './useRecordSelection';
|
|
8
|
+
export type GalleryRecord = RecordProps & {
|
|
9
|
+
img?: React.ReactElement<{
|
|
10
|
+
className: string;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
onClick?: (e: React.MouseEvent<HTMLImageElement>) => void;
|
|
13
|
+
}>;
|
|
14
|
+
thumbnail?: string;
|
|
15
|
+
mimetype?: string;
|
|
16
|
+
width?: number;
|
|
17
|
+
height?: number;
|
|
18
|
+
name?: string;
|
|
19
|
+
};
|
|
20
|
+
export type GalleryOverlayPosition = "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | "middleLeft" | "middleRight";
|
|
21
|
+
export type GalleryOverlayFilter = Partial<Record<keyof GalleryRecord, unknown>> | ((item: GalleryRecord, index: number) => boolean);
|
|
22
|
+
export type GalleryOverlayValue = BadgeProps | ((item: GalleryRecord, index: number) => BadgeProps | null | undefined);
|
|
23
|
+
export type GalleryOverlay = {
|
|
24
|
+
position: GalleryOverlayPosition;
|
|
25
|
+
badge?: GalleryOverlayValue;
|
|
26
|
+
render?: (item: GalleryRecord, index: number) => React.ReactNode;
|
|
27
|
+
when?: GalleryOverlayFilter;
|
|
28
|
+
className?: string;
|
|
29
|
+
};
|
|
30
|
+
export type GallerySelectionState = RecordSelectionState<GalleryRecord>;
|
|
31
|
+
export type GallerySelectionChangeHandler = (selection: GallerySelectionState) => void;
|
|
32
|
+
interface GalleryProps extends UIProps {
|
|
33
|
+
body?: GalleryRecord[];
|
|
34
|
+
Header?: string | React.ReactNode;
|
|
35
|
+
Footer?: string | React.ReactNode;
|
|
36
|
+
overlays?: GalleryOverlay[];
|
|
37
|
+
onClick?: (record: GalleryRecord) => void;
|
|
38
|
+
onSelectionChange?: GallerySelectionChangeHandler;
|
|
39
|
+
sortable?: boolean | OrderConfig;
|
|
40
|
+
pagination?: PaginationParams;
|
|
41
|
+
scrollToTopOnChange?: boolean;
|
|
42
|
+
scrollBehavior?: ScrollBehavior;
|
|
43
|
+
gutterSize?: 0 | 1 | 2 | 3 | 4 | 5;
|
|
44
|
+
rowCols?: 1 | 2 | 3 | 4 | 6;
|
|
45
|
+
groupBy?: string | string[];
|
|
46
|
+
selectedKeys?: string[];
|
|
47
|
+
selectedRowKeys?: string[];
|
|
48
|
+
scrollClass?: string;
|
|
49
|
+
headerClass?: string;
|
|
50
|
+
bodyClass?: string;
|
|
51
|
+
footerClass?: string;
|
|
52
|
+
selectedClass?: string;
|
|
53
|
+
}
|
|
54
|
+
declare const Gallery: ({ body, Header, Footer, overlays, onClick, onSelectionChange, sortable, pagination, gutterSize, rowCols, groupBy, selectedKeys, selectedRowKeys, pre, post, wrapClass, className, headerClass, scrollClass, bodyClass, footerClass, selectedClass }: GalleryProps) => React.JSX.Element;
|
|
55
|
+
export default Gallery;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
type ContainerProps = {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
className?: string;
|
|
5
|
+
style?: CSSProperties;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
};
|
|
8
|
+
type ColProps = ContainerProps & {
|
|
9
|
+
defaultSize?: number;
|
|
10
|
+
xxl?: number | 'auto';
|
|
11
|
+
xl?: number | 'auto';
|
|
12
|
+
lg?: number | 'auto';
|
|
13
|
+
md?: number | 'auto';
|
|
14
|
+
sm?: number | 'auto';
|
|
15
|
+
xs?: number | 'auto';
|
|
16
|
+
};
|
|
17
|
+
export declare const Wrapper: ({ children, className, style, onClick, }: ContainerProps) => React.JSX.Element;
|
|
18
|
+
export declare const Container: ({ children, className, style }: ContainerProps) => React.JSX.Element;
|
|
19
|
+
export declare const Row: ({ children, className, style }: ContainerProps) => React.JSX.Element;
|
|
20
|
+
export declare const Col: ({ children, className, style, xxl, xl, lg, md, sm, xs }: ColProps) => React.JSX.Element;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IconProviderAdapter } from '../../providers/icon/IconProvider';
|
|
3
|
+
interface IconProps {
|
|
4
|
+
name?: string;
|
|
5
|
+
size?: number;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
/** Override the global icon provider for this instance only */
|
|
9
|
+
provider?: IconProviderAdapter;
|
|
10
|
+
label?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const Icon: ({ name, size, className, style, provider: overrideProvider, label }: IconProps) => React.JSX.Element | null;
|
|
13
|
+
export default Icon;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { UIProps } from '../..';
|
|
3
|
+
export type ImageFit = 'cover' | 'contain' | 'fill' | 'scale-down' | 'none';
|
|
4
|
+
export type ImagePosition = 'center' | 'top' | 'bottom' | 'left' | 'right' | 'top left' | 'top right' | 'bottom left' | 'bottom right';
|
|
5
|
+
type ImageProps = {
|
|
6
|
+
src: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
fit?: ImageFit;
|
|
11
|
+
position?: ImagePosition;
|
|
12
|
+
feedback?: React.ReactNode;
|
|
13
|
+
width?: number;
|
|
14
|
+
height?: number;
|
|
15
|
+
srcset?: string;
|
|
16
|
+
sizes?: string;
|
|
17
|
+
} & UIProps;
|
|
18
|
+
declare const Image: ({ src, placeholder, label, title, fit, position, feedback, width, height, srcset, sizes, pre, post, wrapClass, className }: ImageProps) => React.JSX.Element;
|
|
19
|
+
export default Image;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { UIProps } from '../types';
|
|
3
|
+
import type { BadgeDescriptor } from './Badge';
|
|
4
|
+
export type AvatarFit = 'cover' | 'contain' | 'fill' | 'scale-down' | 'none';
|
|
5
|
+
interface ImageAvatarProps extends UIProps {
|
|
6
|
+
src: string;
|
|
7
|
+
width?: number;
|
|
8
|
+
height?: number;
|
|
9
|
+
title?: string;
|
|
10
|
+
alt?: string;
|
|
11
|
+
fit?: AvatarFit;
|
|
12
|
+
badge?: BadgeDescriptor;
|
|
13
|
+
feedback?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
declare const ImageAvatar: ({ src, width, height, title, alt, fit, badge, feedback, pre, post, wrapClass, className, }: ImageAvatarProps) => React.JSX.Element;
|
|
16
|
+
export default ImageAvatar;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type RowItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
fieldName: string;
|
|
5
|
+
colStart: number;
|
|
6
|
+
colSpan: number;
|
|
7
|
+
};
|
|
8
|
+
export type LayoutBuilderHandle = {
|
|
9
|
+
getValue: () => RowItem[];
|
|
10
|
+
setValue: (items: RowItem[]) => void;
|
|
11
|
+
clear: () => void;
|
|
12
|
+
};
|
|
13
|
+
type Props = {
|
|
14
|
+
name: string;
|
|
15
|
+
defaultSpan?: number;
|
|
16
|
+
heightPx?: number;
|
|
17
|
+
};
|
|
18
|
+
export declare const LayoutBuilder: React.ForwardRefExoticComponent<Props & React.RefAttributes<LayoutBuilderHandle>>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { UIProps } from '../..';
|
|
3
|
+
interface LoaderProps extends UIProps {
|
|
4
|
+
show?: boolean;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
icon?: string;
|
|
7
|
+
title?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
}
|
|
10
|
+
declare function Loader({ children, show, icon, title, description, pre, post, wrapClass, className }: LoaderProps): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
11
|
+
export default Loader;
|