2022-05-04 09:45:57 +00:00
|
|
|
import { DEFAULT_FONT_SIZE } from "constants/WidgetConstants";
|
2022-03-31 04:48:51 +00:00
|
|
|
import { OverflowTypes } from "./constants";
|
2021-09-09 15:10:22 +00:00
|
|
|
import IconSVG from "./icon.svg";
|
2022-01-21 10:19:10 +00:00
|
|
|
import Widget from "./widget";
|
2021-09-09 15:10:22 +00:00
|
|
|
|
|
|
|
|
export const CONFIG = {
|
|
|
|
|
type: Widget.getWidgetType(),
|
|
|
|
|
name: "Text",
|
|
|
|
|
iconSVG: IconSVG,
|
2022-06-17 03:12:47 +00:00
|
|
|
searchTags: ["typography", "paragraph"],
|
2021-09-09 15:10:22 +00:00
|
|
|
defaults: {
|
|
|
|
|
text: "Label",
|
2022-05-04 09:45:57 +00:00
|
|
|
fontSize: DEFAULT_FONT_SIZE,
|
2021-09-09 15:10:22 +00:00
|
|
|
fontStyle: "BOLD",
|
|
|
|
|
textAlign: "LEFT",
|
|
|
|
|
textColor: "#231F20",
|
2022-01-04 06:21:02 +00:00
|
|
|
truncateButtonColor: "#FFC13D",
|
2022-01-21 10:19:10 +00:00
|
|
|
rows: 4,
|
|
|
|
|
columns: 16,
|
2021-09-09 15:10:22 +00:00
|
|
|
widgetName: "Text",
|
2022-01-04 06:21:02 +00:00
|
|
|
shouldTruncate: false,
|
2022-03-31 04:48:51 +00:00
|
|
|
overflow: OverflowTypes.NONE,
|
2021-09-09 15:10:22 +00:00
|
|
|
version: 1,
|
2021-12-14 07:55:58 +00:00
|
|
|
animateLoading: true,
|
2021-09-09 15:10:22 +00:00
|
|
|
},
|
|
|
|
|
properties: {
|
|
|
|
|
derived: Widget.getDerivedPropertiesMap(),
|
|
|
|
|
default: Widget.getDefaultPropertiesMap(),
|
|
|
|
|
meta: Widget.getMetaPropertiesMap(),
|
|
|
|
|
config: Widget.getPropertyPaneConfig(),
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default Widget;
|