UNPKG

phx-react

Version:

PHX REACT

59 lines (58 loc) 2.34 kB
import React from 'react'; import { BadgeType } from '../Badge'; import { BreadcrumbItem } from '../Breadcrumb'; export interface FooterBarProps { title?: string; nameOfModal?: string; contentOfModal?: string; method?: string; headerAction?: boolean; disableHeaderAction?: boolean; headerActionText?: string; headerActionType?: 'import' | 'custom'; footerAction?: boolean; className?: string; children?: any; loading?: boolean; onlyDelete?: boolean; secondaryLeftButton?: boolean; secondaryLeftButtonSubmit?: boolean; secondaryLeftTextButton?: string; deleted?: boolean; deletedText?: string; submit?: boolean; cancelText?: string; submitText?: string; isExport?: boolean; exportText?: string; onExport?(): void; deletedLoading?: boolean; formType?: 'add' | 'edit' | 'custom'; badge?: { badgeText?: string; badgeType?: string; } | any; size?: 'small' | 'medium' | 'large'; type?: 'default' | 'title-with-badge' | 'breadcrumb'; backAction?: boolean; breadcrumbItems?: Array<BreadcrumbItem>; onSecondary?(): void; onDelete?(): void; onCancel?(): void; onSubmit?(): void; onImport?(): void; onChangeCapture?(): void; onHeaderActionClick?(): void; onSubmitSecondaryLeftButton?(): void; onDeletedSecondaryLeftButton?(): void; disableSubmit?: boolean; hideCancelButton?: boolean; onDanger?(): void; dangerText?: string; showDangerButton?: boolean; multiBadge?: Array<{ text: string; type: BadgeType; }>; } export declare const PHXFormWrap: ({ isExport, exportText, onExport, badge, cancelText, children, contentOfModal, className, deleted, secondaryLeftButton, secondaryLeftButtonSubmit, secondaryLeftTextButton, deletedLoading, footerAction, headerAction, disableHeaderAction, headerActionText, headerActionType, loading, method, nameOfModal, onSecondary, onCancel, onDelete, onSubmit, onImport, onDanger, onChangeCapture, onHeaderActionClick, onSubmitSecondaryLeftButton, onDeletedSecondaryLeftButton, onlyDelete, size, formType, submit, submitText, title, type, backAction, breadcrumbItems, disableSubmit, deletedText, dangerText, showDangerButton, hideCancelButton, multiBadge, }: FooterBarProps) => React.JSX.Element;