* fix * move stylesheet to widget level * fix types * fix types * fix types * fix types ( thanks to ashit ) * fix type issue * add config for list widget * fix jest tests
33 lines
802 B
TypeScript
33 lines
802 B
TypeScript
import { RecaptchaTypes } from "components/constants";
|
|
import IconSVG from "./icon.svg";
|
|
import Widget from "./widget";
|
|
|
|
export const CONFIG = {
|
|
type: Widget.getWidgetType(),
|
|
name: "FormButton",
|
|
iconSVG: IconSVG,
|
|
hideCard: true,
|
|
isDeprecated: true,
|
|
replacement: "BUTTON_WIDGET",
|
|
needsMeta: true,
|
|
defaults: {
|
|
rows: 4,
|
|
columns: 12,
|
|
widgetName: "FormButton",
|
|
text: "Submit",
|
|
isDefaultClickDisabled: true,
|
|
recaptchaType: RecaptchaTypes.V3,
|
|
version: 1,
|
|
animateLoading: true,
|
|
},
|
|
properties: {
|
|
derived: Widget.getDerivedPropertiesMap(),
|
|
default: Widget.getDefaultPropertiesMap(),
|
|
meta: Widget.getMetaPropertiesMap(),
|
|
config: Widget.getPropertyPaneConfig(),
|
|
stylesheetConfig: Widget.getStylesheetConfig(),
|
|
},
|
|
};
|
|
|
|
export default Widget;
|