PromucFlow_constructor/app/client/src/widgets/FormButtonWidget/index.ts
Pawan Kumar 1821e31943
fix: Theme Stylesheet refactor (#18258)
* 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
2022-11-28 10:14:31 +05:30

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;