2021-09-09 15:10:22 +00:00
|
|
|
import { IconNames } from "@blueprintjs/icons";
|
|
|
|
|
import {
|
|
|
|
|
ButtonBorderRadiusTypes,
|
|
|
|
|
ButtonBoxShadowTypes,
|
2022-01-21 10:19:10 +00:00
|
|
|
ButtonVariantTypes,
|
2021-09-09 15:10:22 +00:00
|
|
|
} from "components/constants";
|
2021-09-23 15:14:24 +00:00
|
|
|
import { Colors } from "constants/Colors";
|
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,
|
|
|
|
|
defaults: {
|
|
|
|
|
iconName: IconNames.PLUS,
|
|
|
|
|
borderRadius: ButtonBorderRadiusTypes.CIRCLE,
|
|
|
|
|
boxShadow: ButtonBoxShadowTypes.NONE,
|
2021-09-23 15:14:24 +00:00
|
|
|
buttonColor: Colors.GREEN,
|
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(),
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default Widget;
|