// TODO (tanvi): Figure out why this file is still here and if it's safe to delete it. import type { JSXElementConstructor } from "react"; import React from "react"; import { importRemixIcon, importSvg } from "design-system-old"; import type { IconProps } from "constants/IconConstants"; import { IconWrapper } from "constants/IconConstants"; import PlayIcon from "assets/icons/control/play-icon.png"; const DeleteIcon = importSvg( async () => import("assets/icons/control/delete.svg"), ); const MoveIcon = importSvg(async () => import("assets/icons/control/move.svg")); const EditIcon = importSvg(async () => import("assets/icons/control/edit.svg")); const ViewIcon = importSvg(async () => import("assets/icons/control/view.svg")); const MoreVerticalIcon = importSvg( async () => import("assets/icons/control/more-vertical.svg"), ); const OverflowMenuIcon = importSvg( async () => import("assets/icons/menu/overflow-menu.svg"), ); const JsToggleIcon = importSvg( async () => import("assets/icons/control/js-toggle.svg"), ); const IncreaseIcon = importSvg( async () => import("assets/icons/control/increase.svg"), ); const DecreaseIcon = importSvg( async () => import("assets/icons/control/decrease.svg"), ); const DraggableIcon = importSvg( async () => import("assets/icons/control/draggable.svg"), ); const CloseCircleIcon = importSvg( async () => import("assets/icons/control/close-circle.svg"), ); const AddCircleIcon = importSvg( async () => import("assets/icons/control/add-circle.svg"), ); const HelpIcon = importSvg(async () => import("assets/icons/control/help.svg")); const CollapseIcon = importSvg( async () => import("assets/icons/control/collapse.svg"), ); const PickMyLocationSelectedIcon = importSvg( async () => import("assets/icons/control/pick-location-selected.svg"), ); const RemoveIcon = importSvg( async () => import("assets/icons/control/remove.svg"), ); const DragIcon = importSvg(async () => import("assets/icons/control/drag.svg")); const SortIcon = importSvg( async () => import("assets/icons/control/sort-icon.svg"), ); const EditWhiteIcon = importSvg( async () => import("assets/icons/control/edit-white.svg"), ); const LaunchIcon = importSvg( async () => import("assets/icons/control/launch.svg"), ); const BackIcon = importSvg(async () => import("assets/icons/control/back.svg")); const DeleteColumnIcon = importSvg( async () => import("assets/icons/control/delete-column.svg"), ); const BoldFontIcon = importSvg( async () => import("assets/icons/control/bold.svg"), ); const UnderlineIcon = importSvg( async () => import("assets/icons/control/underline.svg"), ); const ItalicsFontIcon = importSvg( async () => import("assets/icons/control/italics.svg"), ); const LeftAlignIcon = importSvg( async () => import("assets/icons/control/left-align.svg"), ); const CenterAlignIcon = importSvg( async () => import("assets/icons/control/center-align.svg"), ); const RightAlignIcon = importSvg( async () => import("assets/icons/control/right-align.svg"), ); const VerticalAlignRight = importSvg( async () => import("assets/icons/control/align_right.svg"), ); const VerticalAlignLeft = importSvg( async () => import("assets/icons/control/align_left.svg"), ); const VerticalAlignBottom = importSvg( async () => import("assets/icons/control/vertical_align_bottom.svg"), ); const VerticalAlignCenter = importSvg( async () => import("assets/icons/control/vertical_align_center.svg"), ); const VerticalAlignTop = importSvg( async () => import("assets/icons/control/vertical_align_top.svg"), ); const Copy2Icon = importSvg( async () => import("assets/icons/control/copy2.svg"), ); const CutIcon = importSvg(async () => import("assets/icons/control/cut.svg")); const GroupIcon = importSvg( async () => import("assets/icons/control/group.svg"), ); const HeadingOneIcon = importSvg( async () => import("assets/icons/control/heading_1.svg"), ); const HeadingTwoIcon = importSvg( async () => import("assets/icons/control/heading_2.svg"), ); const HeadingThreeIcon = importSvg( async () => import("assets/icons/control/heading_3.svg"), ); const ParagraphIcon = importSvg( async () => import("assets/icons/control/paragraph.svg"), ); const ParagraphTwoIcon = importSvg( async () => import("assets/icons/control/paragraph_2.svg"), ); const BulletsIcon = importSvg( async () => import("assets/icons/control/bullets.svg"), ); const DividerCapRightIcon = importSvg( async () => import("assets/icons/control/divider_cap_right.svg"), ); const DividerCapLeftIcon = importSvg( async () => import("assets/icons/control/divider_cap_left.svg"), ); const DividerCapAllIcon = importSvg( async () => import("assets/icons/control/divider_cap_all.svg"), ); const TrendingFlat = importSvg( async () => import("assets/icons/ads/trending-flat.svg"), ); const AlignLeftIcon = importSvg( async () => import("assets/icons/control/align_left.svg"), ); const AlignRightIcon = importSvg( async () => import("assets/icons/control/align_right.svg"), ); const BorderRadiusSharpIcon = importSvg( async () => import("assets/icons/control/border-radius-sharp.svg"), ); const BorderRadiusRoundedIcon = importSvg( async () => import("assets/icons/control/border-radius-rounded.svg"), ); const BorderRadiusCircleIcon = importSvg( async () => import("assets/icons/control/border-radius-circle.svg"), ); const BoxShadowNoneIcon = importSvg( async () => import("assets/icons/control/box-shadow-none.svg"), ); const BoxShadowVariant1Icon = importSvg( async () => import("assets/icons/control/box-shadow-variant1.svg"), ); const BoxShadowVariant2Icon = importSvg( async () => import("assets/icons/control/box-shadow-variant2.svg"), ); const BoxShadowVariant3Icon = importSvg( async () => import("assets/icons/control/box-shadow-variant3.svg"), ); const BoxShadowVariant4Icon = importSvg( async () => import("assets/icons/control/box-shadow-variant4.svg"), ); const BoxShadowVariant5Icon = importSvg( async () => import("assets/icons/control/box-shadow-variant5.svg"), ); const IncreaseV2Icon = importRemixIcon( async () => import("remixicon-react/AddLineIcon"), ); const PinIcon = importRemixIcon( async () => import("remixicon-react/Pushpin2LineIcon"), ); const CopyIcon = importRemixIcon( async () => import("remixicon-react/FileCopyLineIcon"), ); const QuestionIcon = importRemixIcon( async () => import("remixicon-react/QuestionLineIcon"), ); const SettingsIcon = importRemixIcon( async () => import("remixicon-react/Settings5LineIcon"), ); const EyeIcon = importRemixIcon( async () => import("remixicon-react/EyeLineIcon"), ); const EyeOffIcon = importRemixIcon( async () => import("remixicon-react/EyeOffLineIcon"), ); const CloseIcon = importRemixIcon( async () => import("remixicon-react/CloseLineIcon"), ); /* eslint-disable react/display-name */ export const ControlIcons: { [id: string]: JSXElementConstructor< IconProps & React.HTMLAttributes >; } = { DELETE_CONTROL: (props: IconProps & React.HTMLAttributes) => ( ), MOVE_CONTROL: (props: IconProps & React.HTMLAttributes) => ( ), EDIT_CONTROL: (props: IconProps & React.HTMLAttributes) => ( ), VIEW_CONTROL: (props: IconProps & React.HTMLAttributes) => ( ), MORE_VERTICAL_CONTROL: ( props: IconProps & React.HTMLAttributes, ) => ( ), MORE_HORIZONTAL_CONTROL: ( props: IconProps & React.HTMLAttributes, ) => ( ), JS_TOGGLE: (props: IconProps & React.HTMLAttributes) => ( ), INCREASE_CONTROL: ( props: IconProps & React.HTMLAttributes, ) => ( ), DECREASE_CONTROL: ( props: IconProps & React.HTMLAttributes, ) => ( ), DRAGGABLE_CONTROL: ( props: IconProps & React.HTMLAttributes, ) => ( ), CLOSE_CONTROL: (props: IconProps & React.HTMLAttributes) => ( ), CLOSE_CIRCLE_CONTROL: ( props: IconProps & React.HTMLAttributes, ) => ( ), ADD_CIRCLE_CONTROL: ( props: IconProps & React.HTMLAttributes, ) => ( ), PICK_MY_LOCATION_SELECTED_CONTROL: ( props: IconProps & React.HTMLAttributes, ) => ( ), SETTINGS_CONTROL: ( props: IconProps & React.HTMLAttributes, ) => ( ), HELP_CONTROL: (props: IconProps & React.HTMLAttributes) => ( ), PLAY_VIDEO: (props: IconProps & React.HTMLAttributes) => ( Datasource ), REMOVE_CONTROL: (props: IconProps & React.HTMLAttributes) => ( ), DRAG_CONTROL: (props: IconProps & React.HTMLAttributes) => ( ), COLLAPSE_CONTROL: ( props: IconProps & React.HTMLAttributes, ) => ( ), SORT_CONTROL: (props: IconProps & React.HTMLAttributes) => ( ), EDIT_WHITE: (props: IconProps & React.HTMLAttributes) => ( ), LAUNCH_CONTROL: (props: IconProps & React.HTMLAttributes) => ( ), BACK_CONTROL: (props: IconProps & React.HTMLAttributes) => ( ), SHOW_COLUMN: (props: IconProps & React.HTMLAttributes) => ( ), HIDE_COLUMN: (props: IconProps & React.HTMLAttributes) => ( ), DELETE_COLUMN: (props: IconProps & React.HTMLAttributes) => ( ), BOLD_FONT: (props: IconProps & React.HTMLAttributes) => ( ), UNDERLINE: (props: IconProps & React.HTMLAttributes) => ( ), ITALICS_FONT: (props: IconProps & React.HTMLAttributes) => ( ), LEFT_ALIGN: (props: IconProps & React.HTMLAttributes) => ( ), CENTER_ALIGN: (props: IconProps & React.HTMLAttributes) => ( ), RIGHT_ALIGN: (props: IconProps & React.HTMLAttributes) => ( ), VERTICAL_RIGHT: (props: IconProps & React.HTMLAttributes) => ( ), VERTICAL_LEFT: (props: IconProps & React.HTMLAttributes) => ( ), VERTICAL_TOP: (props: IconProps & React.HTMLAttributes) => ( ), VERTICAL_CENTER: ( props: IconProps & React.HTMLAttributes, ) => ( ), VERTICAL_BOTTOM: ( props: IconProps & React.HTMLAttributes, ) => ( ), COPY_CONTROL: (props: IconProps & React.HTMLAttributes) => ( ), COPY2_CONTROL: (props: IconProps & React.HTMLAttributes) => ( ), CUT_CONTROL: (props: IconProps & React.HTMLAttributes) => ( ), GROUP_CONTROL: (props: IconProps & React.HTMLAttributes) => ( ), HEADING_ONE: (props: IconProps & React.HTMLAttributes) => ( ), HEADING_TWO: (props: IconProps & React.HTMLAttributes) => ( ), HEADING_THREE: (props: IconProps & React.HTMLAttributes) => ( ), PARAGRAPH: (props: IconProps & React.HTMLAttributes) => ( ), PARAGRAPH_TWO: (props: IconProps & React.HTMLAttributes) => ( ), BULLETS: (props: IconProps & React.HTMLAttributes) => ( ), DIVIDER_CAP_RIGHT: ( props: IconProps & React.HTMLAttributes, ) => ( ), DIVIDER_CAP_LEFT: ( props: IconProps & React.HTMLAttributes, ) => ( ), DIVIDER_CAP_ALL: ( props: IconProps & React.HTMLAttributes, ) => ( ), BIND_DATA_CONTROL: ( props: IconProps & React.HTMLAttributes, ) => ( ), ICON_ALIGN_LEFT: ( props: IconProps & React.HTMLAttributes, ) => ( ), ICON_ALIGN_RIGHT: ( props: IconProps & React.HTMLAttributes, ) => ( ), BORDER_RADIUS_SHARP: ( props: IconProps & React.HTMLAttributes, ) => ( ), BORDER_RADIUS_ROUNDED: ( props: IconProps & React.HTMLAttributes, ) => ( ), BORDER_RADIUS_CIRCLE: ( props: IconProps & React.HTMLAttributes, ) => ( ), BOX_SHADOW_NONE: ( props: IconProps & React.HTMLAttributes, ) => ( ), BOX_SHADOW_VARIANT1: ( props: IconProps & React.HTMLAttributes, ) => ( ), BOX_SHADOW_VARIANT2: ( props: IconProps & React.HTMLAttributes, ) => ( ), BOX_SHADOW_VARIANT3: ( props: IconProps & React.HTMLAttributes, ) => ( ), BOX_SHADOW_VARIANT4: ( props: IconProps & React.HTMLAttributes, ) => ( ), BOX_SHADOW_VARIANT5: ( props: IconProps & React.HTMLAttributes, ) => ( ), INCREASE_CONTROL_V2: ( props: IconProps & React.HTMLAttributes, ) => ( ), QUESTION: (props: IconProps & React.HTMLAttributes) => ( ), PIN: (props: IconProps & React.HTMLAttributes) => ( ), }; export type ControlIconName = keyof typeof ControlIcons;