PromucFlow_constructor/app/client/src/widgets/TextWidget/index.ts
Dhruvik Neharia 199f68fc74
feat: Text Widget Reskinning (#17298)
* feat: Use truncate button color from theme

* fix: Update Truncate Button Color validation regex
2022-10-17 18:54:23 +05:30

36 lines
957 B
TypeScript

import { DEFAULT_FONT_SIZE } from "constants/WidgetConstants";
import { OverflowTypes } from "./constants";
import IconSVG from "./icon.svg";
import Widget from "./widget";
export const CONFIG = {
type: Widget.getWidgetType(),
name: "Text",
iconSVG: IconSVG,
searchTags: ["typography", "paragraph", "label"],
defaults: {
text: "Label",
fontSize: DEFAULT_FONT_SIZE,
fontStyle: "BOLD",
textAlign: "LEFT",
textColor: "#231F20",
rows: 4,
columns: 16,
widgetName: "Text",
shouldTruncate: false,
overflow: OverflowTypes.NONE,
version: 1,
animateLoading: true,
},
properties: {
derived: Widget.getDerivedPropertiesMap(),
default: Widget.getDefaultPropertiesMap(),
meta: Widget.getMetaPropertiesMap(),
config: Widget.getPropertyPaneConfig(),
contentConfig: Widget.getPropertyPaneContentConfig(),
styleConfig: Widget.getPropertyPaneStyleConfig(),
},
};
export default Widget;