@react-typed-forms/schemas 11.5.4 → 11.6.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/lib/components/DefaultAccordion.d.ts +15 -0
- package/lib/controlRender.d.ts +12 -4
- package/lib/createDefaultRenderers.d.ts +8 -0
- package/lib/index.js +91 -14
- package/lib/index.js.map +1 -1
- package/lib/renderers.d.ts +2 -1
- package/lib/tailwind.d.ts +7 -0
- package/package.json +1 -1
package/lib/renderers.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement, ReactNode } from "react";
|
|
2
2
|
import { ActionRendererProps, AdornmentProps, AdornmentRenderer, ArrayRendererProps, ControlLayoutProps, DataRendererProps, DisplayRendererProps, FormRenderer, GroupRendererProps, LabelRendererProps, LabelType, RenderedControl, VisibilityRendererProps } from "./controlRender";
|
|
3
|
-
import { ControlAdornment, IconAdornment } from "./types";
|
|
3
|
+
import { AccordionAdornment, ControlAdornment, IconAdornment } from "./types";
|
|
4
4
|
export interface DefaultRenderers {
|
|
5
5
|
data: DataRendererRegistration;
|
|
6
6
|
label: LabelRendererRegistration;
|
|
@@ -61,6 +61,7 @@ export interface VisibilityRendererRegistration {
|
|
|
61
61
|
}
|
|
62
62
|
export type RendererRegistration = DataRendererRegistration | GroupRendererRegistration | DisplayRendererRegistration | ActionRendererRegistration | LabelRendererRegistration | ArrayRendererRegistration | AdornmentRendererRegistration | LayoutRendererRegistration | VisibilityRendererRegistration;
|
|
63
63
|
export declare function isIconAdornment(a: ControlAdornment): a is IconAdornment;
|
|
64
|
+
export declare function isAccordionAdornment(a: ControlAdornment): a is AccordionAdornment;
|
|
64
65
|
export declare function createLayoutRenderer(render: LayoutRendererRegistration["render"], options?: Partial<LayoutRendererRegistration>): LayoutRendererRegistration;
|
|
65
66
|
export declare function createActionRenderer(actionId: string | string[] | undefined, render: ActionRendererRegistration["render"], options?: Partial<ActionRendererRegistration>): ActionRendererRegistration;
|
|
66
67
|
export declare function createArrayRenderer(render: ArrayRendererRegistration["render"], options?: Partial<ArrayRendererRegistration>): ArrayRendererRegistration;
|
package/lib/tailwind.d.ts
CHANGED