aws-northstar
Version:
NorthStar Design System
45 lines (44 loc) • 1.36 kB
TypeScript
import { Schema as FormRendererSchema } from '@data-driven-forms/react-form-renderer/common-types';
import { FormTemplateRenderProps } from '@data-driven-forms/react-form-renderer/common-types/form-template-render-props';
export interface Option {
label: string;
value: string;
description: string;
disabled?: boolean;
}
export declare type Schema = Omit<FormRendererSchema, 'title'> & {
header?: FormRendererSchema['title'];
cancelLabel?: string;
canCancel?: boolean;
resetLabel?: string;
canReset?: boolean;
submitLabel?: string;
};
export declare type RenderProps = Omit<FormTemplateRenderProps, 'schema'> & {
schema: Schema;
};
export declare const componentTypes: {
TREE_VIEW: string;
EXPANDABLE_SECTION: string;
REVIEW: string;
CUSTOM: string;
TEXT_FIELD: "text-field";
FIELD_ARRAY: "field-array";
CHECKBOX: "checkbox";
SUB_FORM: "sub-form";
RADIO: "radio";
TABS: "tabs";
TAB_ITEM: "tab-item";
DATE_PICKER: "date-picker";
TIME_PICKER: "time-picker";
WIZARD: "wizard";
SWITCH: "switch";
TEXTAREA: "textarea";
SELECT: "select";
PLAIN_TEXT: "plain-text";
BUTTON: "button";
INPUT_ADDON_GROUP: "input-addon-group";
INPUT_ADDON_BUTTON_GROUP: "input-addon-button-group";
DUAL_LIST_SELECT: "dual-list-select";
SLIDER: "slider";
};