2021-09-09 15:10:22 +00:00
|
|
|
import { IconNames } from "@blueprintjs/icons";
|
2022-05-04 09:45:57 +00:00
|
|
|
import { ButtonVariantTypes } from "components/constants";
|
2022-01-21 10:19:10 +00:00
|
|
|
import IconSVG from "./icon.svg";
|
|
|
|
|
import Widget from "./widget";
|
2021-09-09 15:10:22 +00:00
|
|
|
|
|
|
|
|
export const CONFIG = {
|
|
|
|
|
type: Widget.getWidgetType(),
|
|
|
|
|
name: "Icon Button",
|
|
|
|
|
iconSVG: IconSVG,
|
2022-06-17 03:12:47 +00:00
|
|
|
searchTags: ["click", "submit"],
|
2021-09-09 15:10:22 +00:00
|
|
|
defaults: {
|
|
|
|
|
iconName: IconNames.PLUS,
|
2021-10-12 08:04:51 +00:00
|
|
|
buttonVariant: ButtonVariantTypes.PRIMARY,
|
2021-09-09 15:10:22 +00:00
|
|
|
isDisabled: false,
|
|
|
|
|
isVisible: true,
|
2022-01-21 10:19:10 +00:00
|
|
|
rows: 4,
|
|
|
|
|
columns: 4,
|
2021-09-09 15:10:22 +00:00
|
|
|
widgetName: "IconButton",
|
|
|
|
|
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(),
|
2022-08-15 08:05:46 +00:00
|
|
|
contentConfig: Widget.getPropertyPaneContentConfig(),
|
|
|
|
|
styleConfig: Widget.getPropertyPaneStyleConfig(),
|
2021-09-09 15:10:22 +00:00
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default Widget;
|