import { TRenderRules } from "../../../context-providers"; import { IFilterCheckboxSchema } from "../../custom/filter/filter-checkbox/types"; import { IFilterItemSchema } from "../../custom/filter/filter-item/types"; import { IColumns, IV3Columns, TComponentOmitProps, TFrontendEngineFieldSchema } from "../../frontend-engine"; import { IListItemSchema } from "../list"; import { TInlineElementSchema } from "../types"; export type TWrapperType = TBlockWrapperType | TInlineWrapperType; export type TBlockWrapperType = "div" | "header" | "footer" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p"; export type TInlineWrapperType = "span"; export type TWrapperSchema = IBlockWrapperSchema | IInlineWrapperSchema; export interface IBlockWrapperSchema extends TComponentOmitProps, "children"> { uiType: TBlockWrapperType; showIf?: TRenderRules[] | undefined; children: Record> | string; columns?: IColumns | IV3Columns | undefined; } export interface IInlineWrapperSchema extends TComponentOmitProps, "children"> { uiType: TInlineWrapperType; showIf?: TRenderRules[] | undefined; children: Record> | string; columns?: IColumns | IV3Columns | undefined; } export interface IWrapperProps { id?: string | undefined; schema?: TWrapperSchema | undefined; /** only used internally by FrontendEngine */ children?: Record | Record | Record | undefined; } export type TWrapperChildSchema = TFrontendEngineFieldSchema | IFilterItemSchema | IFilterCheckboxSchema | IListItemSchema;