@react-typed-forms/schemas-rn 1.0.0 → 2.0.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/CheckRenderer.d.ts +11 -0
- package/lib/components/ControlInput.d.ts +23 -0
- package/lib/components/DefaultAccordion.d.ts +21 -0
- package/lib/components/DefaultArrayRenderer.d.ts +24 -0
- package/lib/components/DefaultDialogRenderer.d.ts +16 -0
- package/lib/components/DefaultDisplay.d.ts +8 -0
- package/lib/components/DefaultDisplayOnly.d.ts +13 -0
- package/lib/components/DefaultGroupRenderer.d.ts +16 -0
- package/lib/components/DefaultLayout.d.ts +7 -0
- package/lib/components/DefaultVisibility.d.ts +7 -0
- package/lib/components/DefaultWizardRenderer.d.ts +2 -0
- package/lib/components/GridRenderer.d.ts +2 -0
- package/lib/components/Icon.d.ts +1 -1
- package/lib/components/NullToggle.d.ts +1 -0
- package/lib/components/RNCheckButtons.d.ts +2 -0
- package/lib/components/RNCheckboxRenderer.d.ts +14 -0
- package/lib/components/RNDateTimePickerRenderer.d.ts +1 -1
- package/lib/components/RNDialog.d.ts +41 -1
- package/lib/components/RNHtmlRenderer.d.ts +1 -1
- package/lib/components/RNScrollListRenderer.d.ts +7 -0
- package/lib/components/RNSelectRenderer.d.ts +4 -1
- package/lib/components/RNTextInputRenderer.d.ts +13 -0
- package/lib/components/SelectDataRenderer.d.ts +23 -0
- package/lib/createButtonActionRenderer.d.ts +3 -0
- package/lib/createDefaultRNRenderers.d.ts +8 -0
- package/lib/defaultTailwindTheme.d.ts +95 -0
- package/lib/index.cjs +2326 -400
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.ts +8 -2
- package/lib/index.js +2218 -399
- package/lib/index.js.map +1 -1
- package/lib/rendererOptions.d.ts +209 -0
- package/lib/selectUtils.d.ts +16 -0
- package/lib/tailwind.d.ts +1 -3
- package/package.json +42 -43
- package/tsconfig.json +3 -1
- package/lib/components/RNCheckbox.d.ts +0 -12
- package/lib/components/RNTextInput.d.ts +0 -6
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Control } from "@react-typed-forms/core";
|
|
2
|
+
import { CheckRendererOptions, FormRenderer, HtmlInputProperties } from "@react-typed-forms/schemas";
|
|
3
|
+
export declare function createRadioRenderer(options?: CheckRendererOptions): import("@react-typed-forms/schemas").DataRendererRegistration;
|
|
4
|
+
export declare function createCheckListRenderer(options?: CheckRendererOptions): import("@react-typed-forms/schemas").DataRendererRegistration;
|
|
5
|
+
export declare function createCheckboxRenderer(options?: CheckRendererOptions): import("@react-typed-forms/schemas").DataRendererRegistration;
|
|
6
|
+
export declare function createElementSelectedRenderer(options?: CheckRendererOptions): import("@react-typed-forms/schemas").DataRendererRegistration;
|
|
7
|
+
export declare function Fcheckbox({ control, type, notValue, renderer, ...others }: HtmlInputProperties & {
|
|
8
|
+
control: Control<boolean | null | undefined>;
|
|
9
|
+
renderer: FormRenderer;
|
|
10
|
+
notValue?: boolean;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Control } from "@react-typed-forms/core";
|
|
3
|
+
import { FormRenderer } from "@react-typed-forms/schemas";
|
|
4
|
+
export interface ControlInputProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
textClass?: string;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
id?: string;
|
|
9
|
+
errorId?: string;
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
control: Control<any>;
|
|
13
|
+
convert: InputConversion;
|
|
14
|
+
renderer: FormRenderer;
|
|
15
|
+
}
|
|
16
|
+
export declare function ControlInput({ control, convert, renderer, errorId, ...props }: ControlInputProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
type InputConversion = [
|
|
18
|
+
string,
|
|
19
|
+
(s: string) => any,
|
|
20
|
+
(a: any) => string | number
|
|
21
|
+
];
|
|
22
|
+
export declare function createInputConversion(ft: string): InputConversion;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CSSProperties, ReactElement, ReactNode } from "react";
|
|
2
|
+
import { Control } from "@react-typed-forms/core";
|
|
3
|
+
import { ControlDataContext, FormRenderer } from "@react-typed-forms/schemas";
|
|
4
|
+
import { DefaultAccordionRendererOptions } from "../rendererOptions";
|
|
5
|
+
export declare function DefaultAccordion({ openCtrl, children, contentStyle, className, contentClassName, designMode, renderers, dataContext, title, options, defaultExpanded, isGroup, titleTextClass, }: {
|
|
6
|
+
openCtrl?: Control<boolean> | undefined;
|
|
7
|
+
children: ReactElement;
|
|
8
|
+
title: ReactNode;
|
|
9
|
+
isGroup: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
titleTextClass?: string;
|
|
12
|
+
defaultExpanded?: boolean | null;
|
|
13
|
+
contentStyle?: CSSProperties;
|
|
14
|
+
contentClassName?: string;
|
|
15
|
+
designMode?: boolean;
|
|
16
|
+
renderers: FormRenderer;
|
|
17
|
+
dataContext: ControlDataContext;
|
|
18
|
+
options?: DefaultAccordionRendererOptions;
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function getAccordionState(c: Control<unknown>): Control<boolean> | undefined;
|
|
21
|
+
export declare function createAccordionGroupRenderer(options?: DefaultAccordionRendererOptions): import("@react-typed-forms/schemas").GroupRendererRegistration;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { ActionRendererProps, ArrayActionOptions, ArrayRendererProps, ArrayRendererRegistration, DataRendererProps, DataRendererRegistration, FormRenderer } from "@react-typed-forms/schemas";
|
|
3
|
+
export declare function createDefaultArrayDataRenderer(defaultActions?: ArrayActionOptions): DataRendererRegistration;
|
|
4
|
+
/**
|
|
5
|
+
* @trackControls
|
|
6
|
+
*/
|
|
7
|
+
export declare function DataArrayRenderer({ dataProps, renderers, defaultActions, }: {
|
|
8
|
+
renderers: FormRenderer;
|
|
9
|
+
dataProps: DataRendererProps;
|
|
10
|
+
defaultActions?: ArrayActionOptions;
|
|
11
|
+
}): React.ReactNode;
|
|
12
|
+
export interface DefaultArrayRendererOptions extends ArrayActionOptions {
|
|
13
|
+
className?: string;
|
|
14
|
+
removableClass?: string;
|
|
15
|
+
childClass?: string;
|
|
16
|
+
removableChildClass?: string;
|
|
17
|
+
removeActionClass?: string;
|
|
18
|
+
addActionClass?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function createDefaultArrayRenderer(options?: DefaultArrayRendererOptions): ArrayRendererRegistration;
|
|
21
|
+
export interface DefaultArrayRendererProps extends DefaultArrayRendererOptions, ArrayRendererProps {
|
|
22
|
+
renderAction: (props: ActionRendererProps) => ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export declare function DefaultArrayRenderer(props: DefaultArrayRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DefaultDialogRenderOptions } from "../rendererOptions";
|
|
2
|
+
import { DialogRenderOptions, FormRenderer, GroupRendererProps } from "@react-typed-forms/schemas";
|
|
3
|
+
export declare const defaultRNDialogOptions: {
|
|
4
|
+
classes: {
|
|
5
|
+
className: string;
|
|
6
|
+
titleClass: string;
|
|
7
|
+
containerClass: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare function createDialogRenderer(options?: DefaultDialogRenderOptions): import("@react-typed-forms/schemas").GroupRendererRegistration;
|
|
11
|
+
export declare function DefaultDialogRenderer({ props, options, renderOptions, renderer, }: {
|
|
12
|
+
props: GroupRendererProps;
|
|
13
|
+
options?: DefaultDialogRenderOptions;
|
|
14
|
+
renderOptions: DialogRenderOptions;
|
|
15
|
+
renderer: FormRenderer;
|
|
16
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DisplayRendererProps, DisplayRendererRegistration, FormRenderer } from "@react-typed-forms/schemas";
|
|
2
|
+
import { DefaultDisplayRendererOptions } from "../rendererOptions";
|
|
3
|
+
export declare function createDefaultDisplayRenderer(options?: DefaultDisplayRendererOptions): DisplayRendererRegistration;
|
|
4
|
+
export declare function DefaultDisplay({ renderer, options, displayProps, }: {
|
|
5
|
+
displayProps: DisplayRendererProps;
|
|
6
|
+
options: DefaultDisplayRendererOptions;
|
|
7
|
+
renderer: FormRenderer;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FormRenderer, FormStateNode, SchemaDataNode, SchemaInterface } from "@react-typed-forms/schemas";
|
|
3
|
+
export declare function DefaultDisplayOnly({ dataNode, className, emptyText, schemaInterface, style, renderer, textClass, inline, state, }: {
|
|
4
|
+
dataNode: SchemaDataNode;
|
|
5
|
+
schemaInterface: SchemaInterface;
|
|
6
|
+
className?: string;
|
|
7
|
+
textClass?: string;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
inline: boolean;
|
|
10
|
+
renderer: FormRenderer;
|
|
11
|
+
emptyText?: string | null;
|
|
12
|
+
state: FormStateNode;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GroupRendererRegistration } from "@react-typed-forms/schemas";
|
|
2
|
+
import { DefaultTabsRenderOptions, DefaultGridRenderOptions, DefaultWizardRenderOptions, DefaultDialogRenderOptions } from "../rendererOptions";
|
|
3
|
+
import { DefaultAccordionRendererOptions, DefaultAdornmentRendererOptions } from "../rendererOptions";
|
|
4
|
+
export interface DefaultGroupRendererOptions {
|
|
5
|
+
className?: string;
|
|
6
|
+
standardClassName?: string;
|
|
7
|
+
grid?: DefaultGridRenderOptions;
|
|
8
|
+
flexClassName?: string;
|
|
9
|
+
defaultFlexGap?: string;
|
|
10
|
+
inlineClass?: string;
|
|
11
|
+
tabs?: DefaultTabsRenderOptions;
|
|
12
|
+
wizard?: DefaultWizardRenderOptions;
|
|
13
|
+
dialog?: DefaultDialogRenderOptions;
|
|
14
|
+
accordion?: DefaultAccordionRendererOptions;
|
|
15
|
+
}
|
|
16
|
+
export declare function createDefaultGroupRenderer(options?: DefaultGroupRendererOptions, adornmentOptions?: DefaultAdornmentRendererOptions): GroupRendererRegistration;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FormRenderer, RenderedLayout } from "@react-typed-forms/schemas";
|
|
2
|
+
import { DefaultLayoutRendererOptions } from "../rendererOptions";
|
|
3
|
+
export declare function createDefaultLayoutRenderer(options?: DefaultLayoutRendererOptions): import("@react-typed-forms/schemas").LayoutRendererRegistration;
|
|
4
|
+
export declare function DefaultLayout({ errorClass, renderer: { html: { Div, Span }, }, renderError, layout: { controlEnd, controlStart, label, children, errorControl, errorId }, }: DefaultLayoutRendererOptions & {
|
|
5
|
+
layout: RenderedLayout;
|
|
6
|
+
renderer: FormRenderer;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { VisibilityRendererProps } from "@react-typed-forms/schemas";
|
|
2
|
+
import { FormRenderer } from "@react-typed-forms/schemas";
|
|
3
|
+
import React from "react";
|
|
4
|
+
export declare function createDefaultVisibilityRenderer(): import("@react-typed-forms/schemas").VisibilityRendererRegistration;
|
|
5
|
+
export declare function DefaultVisibility({ visibility, children, className, style, divRef, renderer, inline, }: VisibilityRendererProps & {
|
|
6
|
+
renderer: FormRenderer;
|
|
7
|
+
}): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
|
package/lib/components/Icon.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ export type RNIconProps = {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
iconLibrary?: IconLibrary;
|
|
6
6
|
};
|
|
7
|
-
export declare function Icon({ name, className, iconLibrary, }: RNIconProps): JSX.Element;
|
|
7
|
+
export declare function Icon({ name, className, iconLibrary, }: RNIconProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createNullToggleRenderer(): import("@react-typed-forms/schemas").DataRendererRegistration;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { CheckRendererOptions } from "@react-typed-forms/schemas";
|
|
3
|
+
import { View } from "react-native";
|
|
4
|
+
export declare function createRNCheckboxRenderer(options?: CheckRendererOptions): import("@react-typed-forms/schemas").DataRendererRegistration;
|
|
5
|
+
export declare const RNCheckbox: React.ForwardRefExoticComponent<Omit<import("react-native").PressableProps & React.RefAttributes<View>, "ref"> & {
|
|
6
|
+
asChild?: boolean;
|
|
7
|
+
} & {
|
|
8
|
+
onKeyDown?: (ev: React.KeyboardEvent) => void;
|
|
9
|
+
onKeyUp?: (ev: React.KeyboardEvent) => void;
|
|
10
|
+
} & {
|
|
11
|
+
checked: boolean;
|
|
12
|
+
onCheckedChange: (checked: boolean) => void;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
} & React.RefAttributes<View>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DateTimePickerProps } from "react-native-modal-datetime-picker";
|
|
2
2
|
import { Control } from "@react-typed-forms/core";
|
|
3
|
-
import { DefaultDataRendererOptions } from "
|
|
3
|
+
import { DefaultDataRendererOptions } from "../rendererOptions";
|
|
4
4
|
export type RNDateTimeProps = Pick<DateTimePickerProps, "mode" | "locale" | "maximumDate" | "minimumDate" | "is24Hour"> & {
|
|
5
5
|
control: Control<string | null>;
|
|
6
6
|
readonly?: boolean;
|
|
@@ -1,5 +1,42 @@
|
|
|
1
|
+
import * as DialogPrimitive from "@rn-primitives/dialog";
|
|
1
2
|
import * as React from "react";
|
|
3
|
+
import { View } from "react-native";
|
|
2
4
|
import { Control } from "@react-typed-forms/core";
|
|
5
|
+
export declare const Dialog: React.ForwardRefExoticComponent<import("react-native").ViewProps & {
|
|
6
|
+
asChild?: boolean;
|
|
7
|
+
} & {
|
|
8
|
+
open?: boolean;
|
|
9
|
+
defaultOpen?: boolean;
|
|
10
|
+
onOpenChange?: (value: boolean) => void;
|
|
11
|
+
} & React.RefAttributes<View>>;
|
|
12
|
+
export declare const DialogTrigger: React.ForwardRefExoticComponent<Omit<import("react-native").PressableProps & React.RefAttributes<View>, "ref"> & {
|
|
13
|
+
asChild?: boolean;
|
|
14
|
+
} & {
|
|
15
|
+
onKeyDown?: (ev: React.KeyboardEvent) => void;
|
|
16
|
+
onKeyUp?: (ev: React.KeyboardEvent) => void;
|
|
17
|
+
} & React.RefAttributes<View>>;
|
|
18
|
+
export declare const DialogPortal: typeof DialogPrimitive.Portal;
|
|
19
|
+
export declare const DialogClose: React.ForwardRefExoticComponent<Omit<import("react-native").PressableProps & React.RefAttributes<View>, "ref"> & {
|
|
20
|
+
asChild?: boolean;
|
|
21
|
+
} & {
|
|
22
|
+
onKeyDown?: (ev: React.KeyboardEvent) => void;
|
|
23
|
+
onKeyUp?: (ev: React.KeyboardEvent) => void;
|
|
24
|
+
} & React.RefAttributes<View>>;
|
|
25
|
+
export declare const DialogContent: React.ForwardRefExoticComponent<import("@rn-primitives/types").ForceMountable & import("react-native").ViewProps & {
|
|
26
|
+
asChild?: boolean;
|
|
27
|
+
} & {
|
|
28
|
+
onOpenAutoFocus?: (ev: Event) => void;
|
|
29
|
+
onCloseAutoFocus?: (ev: Event) => void;
|
|
30
|
+
onEscapeKeyDown?: (ev: Event) => void;
|
|
31
|
+
onInteractOutside?: (ev: Event) => void;
|
|
32
|
+
onPointerDownOutside?: (ev: Event) => void;
|
|
33
|
+
} & {
|
|
34
|
+
portalHost?: string;
|
|
35
|
+
closeOnOutsidePress?: boolean;
|
|
36
|
+
} & React.RefAttributes<View>>;
|
|
37
|
+
export declare const DialogTitle: React.ForwardRefExoticComponent<import("react-native").TextProps & {
|
|
38
|
+
asChild?: boolean;
|
|
39
|
+
} & React.RefAttributes<import("react-native").Text>>;
|
|
3
40
|
export type RNDialogProps = {
|
|
4
41
|
title: React.ReactNode;
|
|
5
42
|
trigger?: React.ReactNode;
|
|
@@ -11,4 +48,7 @@ export type RNDialogProps = {
|
|
|
11
48
|
closeOnOutsidePress?: boolean;
|
|
12
49
|
portalHost?: string;
|
|
13
50
|
};
|
|
14
|
-
|
|
51
|
+
/**
|
|
52
|
+
* If the content is <ScrollView>, the first child of the ScrollView should be a View with a prop of onStartShouldSetResponder={() => true}
|
|
53
|
+
*/
|
|
54
|
+
export declare function RNDialog({ title, trigger, content, footer, open, onOpenChange, closeOnOutsidePress, containerClass, portalHost, }: RNDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,4 +2,4 @@ export type RNHtmlRendererProps = {
|
|
|
2
2
|
className?: string;
|
|
3
3
|
html?: string;
|
|
4
4
|
};
|
|
5
|
-
export declare function RNHtmlRenderer({ className, html }: RNHtmlRendererProps): JSX.Element | undefined;
|
|
5
|
+
export declare function RNHtmlRenderer({ className, html }: RNHtmlRendererProps): import("react/jsx-runtime").JSX.Element | undefined;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DefaultScrollListOptions } from "../rendererOptions";
|
|
2
|
+
export interface ExtendedDefaultScrollListOptions extends DefaultScrollListOptions {
|
|
3
|
+
itemGap?: number;
|
|
4
|
+
contentContainerClassName?: string;
|
|
5
|
+
refreshControlTintColor?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function createRNScrollListRenderer(options?: ExtendedDefaultScrollListOptions): import("@react-typed-forms/schemas").DataRendererRegistration;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { SelectRendererOptions } from "
|
|
1
|
+
import { SelectRendererOptions } from "../rendererOptions";
|
|
2
|
+
import { SelectDataRendererProps } from "../selectUtils";
|
|
2
3
|
export interface ExtendedDropdown {
|
|
3
4
|
portalHost?: string;
|
|
5
|
+
requiredText?: string;
|
|
4
6
|
}
|
|
5
7
|
export declare function createRNSelectRenderer(options?: SelectRendererOptions): import("@react-typed-forms/schemas").DataRendererRegistration;
|
|
8
|
+
export declare function RNSelectRenderer({ state, options, className, convert, required, emptyText, requiredText, portalHost, readonly, ...props }: SelectDataRendererProps & ExtendedDropdown): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { TextInput, type TextInputProps } from "react-native";
|
|
3
|
+
export interface ExtendedTextInput {
|
|
4
|
+
keyboardType?: string;
|
|
5
|
+
autoComplete?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function createRNTextInputRenderer(inputClass?: string, inputTextClass?: string): import("@react-typed-forms/schemas").DataRendererRegistration;
|
|
8
|
+
export declare function RNTextInput({ className, placeholderClassName, ...props }: TextInputProps & React.RefAttributes<TextInput> & {
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare namespace RNTextInput {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Control } from "@react-typed-forms/core";
|
|
2
|
+
import { FieldOption } from "@react-typed-forms/schemas";
|
|
3
|
+
export interface SelectRendererOptions {
|
|
4
|
+
className?: string;
|
|
5
|
+
emptyText?: string;
|
|
6
|
+
requiredText?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function createSelectRenderer(options?: SelectRendererOptions): import("@react-typed-forms/schemas").DataRendererRegistration;
|
|
9
|
+
type SelectConversion = (a: any) => string | number;
|
|
10
|
+
export interface SelectDataRendererProps {
|
|
11
|
+
id?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
options: FieldOption[];
|
|
14
|
+
emptyText?: string;
|
|
15
|
+
requiredText?: string;
|
|
16
|
+
readonly: boolean;
|
|
17
|
+
required: boolean;
|
|
18
|
+
state: Control<any>;
|
|
19
|
+
convert: SelectConversion;
|
|
20
|
+
}
|
|
21
|
+
export declare function SelectDataRenderer({ state, options, className, convert, required, emptyText, requiredText, readonly, ...props }: SelectDataRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare function createSelectConversion(ft: string): SelectConversion;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ActionRendererRegistration } from "@react-typed-forms/schemas";
|
|
2
|
+
import { DefaultActionRendererOptions } from "./rendererOptions";
|
|
3
|
+
export declare function createButtonActionRenderer(actionId: string | string[] | undefined, options?: DefaultActionRendererOptions): ActionRendererRegistration;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HtmlComponents } from "@react-typed-forms/schemas";
|
|
2
|
+
import { AdornmentRendererRegistration, DataRendererRegistration, DefaultRenderers, LabelRendererRegistration } from "@react-typed-forms/schemas";
|
|
3
|
+
import { DefaultRendererOptions, DefaultDataRendererOptions, DefaultLabelRendererOptions, DefaultAdornmentRendererOptions } from "./rendererOptions";
|
|
4
|
+
export declare function createDefaultDataRenderer(options?: DefaultDataRendererOptions): DataRendererRegistration;
|
|
5
|
+
export declare function createDefaultAdornmentRenderer(options?: DefaultAdornmentRendererOptions): AdornmentRendererRegistration;
|
|
6
|
+
export declare function createDefaultLabelRenderer(options?: DefaultLabelRendererOptions): LabelRendererRegistration;
|
|
7
|
+
export declare const ReactNativeHtmlComponents: HtmlComponents;
|
|
8
|
+
export declare function createDefaultRenderers(options?: DefaultRendererOptions): DefaultRenderers;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const defaultTailwindTheme: {
|
|
3
|
+
label: {
|
|
4
|
+
groupLabelClass: string;
|
|
5
|
+
requiredElement: ({ Span }: import("@react-typed-forms/schemas").HtmlComponents) => React.ReactElement<React.HTMLAttributes<HTMLSpanElement>, string | React.JSXElementConstructor<any>>;
|
|
6
|
+
};
|
|
7
|
+
array: {
|
|
8
|
+
removableClass: string;
|
|
9
|
+
childClass: string;
|
|
10
|
+
addActionClass: string;
|
|
11
|
+
removeActionClass: string;
|
|
12
|
+
};
|
|
13
|
+
group: {
|
|
14
|
+
standardClassName: string;
|
|
15
|
+
grid: {
|
|
16
|
+
className: string;
|
|
17
|
+
rowClass: string;
|
|
18
|
+
cellClass: string;
|
|
19
|
+
};
|
|
20
|
+
flexClassName: string;
|
|
21
|
+
inlineClass: string;
|
|
22
|
+
tabs: {
|
|
23
|
+
className: string;
|
|
24
|
+
tabListClass: string;
|
|
25
|
+
tabClass: string;
|
|
26
|
+
labelClass: string;
|
|
27
|
+
inactiveClass: string;
|
|
28
|
+
activeClass: string;
|
|
29
|
+
contentClass: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
action: {
|
|
33
|
+
buttonClass: string;
|
|
34
|
+
primaryClass: string;
|
|
35
|
+
secondaryClass: string;
|
|
36
|
+
iconBeforeClass: string;
|
|
37
|
+
iconAfterClass: string;
|
|
38
|
+
busyIcon: {
|
|
39
|
+
library: import("@react-typed-forms/schemas").IconLibrary;
|
|
40
|
+
name: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
layout: {
|
|
44
|
+
className: string;
|
|
45
|
+
errorClass: string;
|
|
46
|
+
};
|
|
47
|
+
data: {
|
|
48
|
+
inputClass: string;
|
|
49
|
+
displayOnlyClass: string;
|
|
50
|
+
checkOptions: {
|
|
51
|
+
className: string;
|
|
52
|
+
entryClass: string;
|
|
53
|
+
};
|
|
54
|
+
selectOptions: {
|
|
55
|
+
emptyText: string;
|
|
56
|
+
};
|
|
57
|
+
arrayElementOptions: {
|
|
58
|
+
actionsClass: string;
|
|
59
|
+
};
|
|
60
|
+
multilineClass: string;
|
|
61
|
+
autocompleteOptions: {
|
|
62
|
+
className: string;
|
|
63
|
+
listContainerClass: string;
|
|
64
|
+
listEntryClass: string;
|
|
65
|
+
chipContainerClass: string;
|
|
66
|
+
chipCloseButtonClass: string;
|
|
67
|
+
};
|
|
68
|
+
scrollListOptions: {
|
|
69
|
+
loadingIcon: {
|
|
70
|
+
library: import("@react-typed-forms/schemas").IconLibrary;
|
|
71
|
+
name: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
adornment: {
|
|
76
|
+
accordion: {
|
|
77
|
+
className: string;
|
|
78
|
+
titleTextClass: string;
|
|
79
|
+
iconOpen: {
|
|
80
|
+
library: import("@react-typed-forms/schemas").IconLibrary;
|
|
81
|
+
name: string;
|
|
82
|
+
};
|
|
83
|
+
iconClosed: {
|
|
84
|
+
library: import("@react-typed-forms/schemas").IconLibrary;
|
|
85
|
+
name: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
optional: {
|
|
89
|
+
checkClass: string;
|
|
90
|
+
className: string;
|
|
91
|
+
multiValuesClass: string;
|
|
92
|
+
childWrapperClass: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|