@fileverse-dev/ddoc 2.0.2-patch-8 → 2.0.2-patch-9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +59587 -38135
- package/dist/package/utils/template-utils.d.ts +13 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
@@ -0,0 +1,13 @@
|
|
1
|
+
import { LucideIconProps } from '@fileverse/ui';
|
2
|
+
|
3
|
+
type IconType = LucideIconProps['name'] | string;
|
4
|
+
type TemplateButtonProps = {
|
5
|
+
label: string;
|
6
|
+
icon: IconType;
|
7
|
+
onClick: () => void;
|
8
|
+
}[];
|
9
|
+
declare const renderIcon: (icon: IconType, className?: string) => import("react/jsx-runtime").JSX.Element | null;
|
10
|
+
declare const createTemplateButtons: (addTemplate: (template: string) => void) => TemplateButtonProps;
|
11
|
+
declare const createMoreTemplates: (addTemplate: (template: string) => void) => TemplateButtonProps;
|
12
|
+
declare const renderTemplateButtons: (templateButtons: TemplateButtonProps, moreTemplates: TemplateButtonProps, visibleTemplateCount: number, expandAllTemplates: () => void) => import("react/jsx-runtime").JSX.Element;
|
13
|
+
export { renderIcon, createTemplateButtons, createMoreTemplates, renderTemplateButtons };
|