2022-05-25 10:05:53 +00:00
|
|
|
import React, { RefObject, useEffect, useRef } from "react";
|
2021-10-21 04:37:34 +00:00
|
|
|
import { Classes, MenuItem, Menu } from "@blueprintjs/core";
|
2019-11-25 05:07:27 +00:00
|
|
|
import { ContainerOrientation } from "constants/WidgetConstants";
|
2021-03-15 12:17:56 +00:00
|
|
|
import { DateRangeInput } from "@blueprintjs/datetime";
|
2020-02-18 10:41:52 +00:00
|
|
|
import { Colors } from "constants/Colors";
|
2021-03-15 12:17:56 +00:00
|
|
|
import styled, { Skin } from "constants/DefaultTheme";
|
2022-07-14 07:02:35 +00:00
|
|
|
import { AnyStyledComponent, css } from "styled-components";
|
2021-02-16 10:29:08 +00:00
|
|
|
import { ControlIcons } from "icons/ControlIcons";
|
2021-10-04 15:34:37 +00:00
|
|
|
import { FormIcons } from "icons/FormIcons";
|
2022-08-22 05:09:39 +00:00
|
|
|
import {
|
|
|
|
|
Button,
|
|
|
|
|
Dropdown,
|
|
|
|
|
InputWrapper,
|
|
|
|
|
TextInput,
|
|
|
|
|
TextInputProps,
|
|
|
|
|
} from "design-system";
|
2022-06-16 09:47:35 +00:00
|
|
|
import { IconWrapper } from "constants/IconConstants";
|
2022-07-14 05:00:30 +00:00
|
|
|
import useInteractionAnalyticsEvent from "utils/hooks/useInteractionAnalyticsEvent";
|
2022-08-22 05:09:39 +00:00
|
|
|
import { Checkbox } from "design-system";
|
Property Pane Controls
- Fixes #121, #122, #123, #124, #90, #46, #65, #100, #101, #68, #102
2019-10-24 05:24:45 +00:00
|
|
|
|
2019-11-05 05:09:50 +00:00
|
|
|
type ControlWrapperProps = {
|
|
|
|
|
orientation?: ContainerOrientation;
|
2020-06-19 07:30:11 +00:00
|
|
|
isAction?: boolean;
|
2019-11-05 05:09:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const ControlWrapper = styled.div<ControlWrapperProps>`
|
2020-12-24 04:32:25 +00:00
|
|
|
display: ${(props) =>
|
|
|
|
|
props.orientation === "HORIZONTAL" ? "flex" : "block"};
|
2019-11-07 10:33:04 +00:00
|
|
|
justify-content: space-between;
|
2020-02-26 12:44:56 +00:00
|
|
|
align-items: center;
|
2020-12-24 04:32:25 +00:00
|
|
|
flex-direction: ${(props) =>
|
2020-06-10 13:41:26 +00:00
|
|
|
props.orientation === "VERTICAL" ? "column" : "row"};
|
2022-09-05 04:52:39 +00:00
|
|
|
padding-top: 4px;
|
|
|
|
|
&:not(:last-of-type) {
|
|
|
|
|
padding-bottom: 4px;
|
|
|
|
|
}
|
Property Pane Controls
- Fixes #121, #122, #123, #124, #90, #46, #65, #100, #101, #68, #102
2019-10-24 05:24:45 +00:00
|
|
|
& > label {
|
2021-03-15 12:17:56 +00:00
|
|
|
color: ${(props) => props.theme.colors.propertyPane.label};
|
2020-12-24 04:32:25 +00:00
|
|
|
margin-bottom: ${(props) => props.theme.spaces[1]}px;
|
|
|
|
|
font-size: ${(props) => props.theme.fontSizes[3]}px;
|
Property Pane Controls
- Fixes #121, #122, #123, #124, #90, #46, #65, #100, #101, #68, #102
2019-10-24 05:24:45 +00:00
|
|
|
}
|
2019-10-24 11:47:35 +00:00
|
|
|
&&& > label:first-of-type {
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
&&& > label {
|
|
|
|
|
display: inline-block;
|
2020-06-10 13:41:26 +00:00
|
|
|
}
|
2022-05-04 09:45:57 +00:00
|
|
|
&:focus-within .reset-button {
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
Property Pane Controls
- Fixes #121, #122, #123, #124, #90, #46, #65, #100, #101, #68, #102
2019-10-24 05:24:45 +00:00
|
|
|
`;
|
|
|
|
|
|
2020-02-26 12:44:56 +00:00
|
|
|
export const ControlPropertyLabelContainer = styled.div`
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2020-03-20 09:45:44 +00:00
|
|
|
label {
|
2022-09-05 04:52:39 +00:00
|
|
|
color: ${Colors.GRAY_700};
|
2020-12-24 04:32:25 +00:00
|
|
|
margin-bottom: ${(props) => props.theme.spaces[1]}px;
|
|
|
|
|
font-size: ${(props) => props.theme.fontSizes[3]}px;
|
2020-02-26 12:44:56 +00:00
|
|
|
}
|
2020-03-20 09:45:44 +00:00
|
|
|
.underline {
|
2020-12-24 04:32:25 +00:00
|
|
|
color: ${(props) => props.theme.colors.paneTextUnderline};
|
2020-03-20 09:45:44 +00:00
|
|
|
}
|
2020-02-26 12:44:56 +00:00
|
|
|
`;
|
|
|
|
|
|
2022-03-28 05:51:52 +00:00
|
|
|
export const JSToggleButton = styled.button<{ active: boolean }>`
|
2021-03-15 12:17:56 +00:00
|
|
|
margin: 4px;
|
|
|
|
|
margin-top: 0px;
|
2022-06-16 09:47:35 +00:00
|
|
|
|
|
|
|
|
& ${IconWrapper} {
|
|
|
|
|
cursor: ${(props) => (props.disabled ? "not-allowed" : "pointer")};
|
|
|
|
|
}
|
|
|
|
|
|
2021-03-15 12:17:56 +00:00
|
|
|
height: auto;
|
|
|
|
|
width: 28px;
|
|
|
|
|
height: 16px;
|
2022-06-16 09:47:35 +00:00
|
|
|
border: 0.5px solid
|
|
|
|
|
${(props) => (props.disabled ? Colors.GRAY_400 : Colors.GRAY_700)};
|
2021-03-15 12:17:56 +00:00
|
|
|
background-color: ${(props) =>
|
2022-06-16 09:47:35 +00:00
|
|
|
props.active
|
|
|
|
|
? props.disabled
|
|
|
|
|
? Colors.GRAY_400
|
|
|
|
|
: Colors.GRAY_800
|
|
|
|
|
: props.disabled
|
|
|
|
|
? Colors.GRAY_200
|
|
|
|
|
: Colors.WHITE};
|
2021-03-15 12:17:56 +00:00
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background-color: ${(props) =>
|
2022-06-16 09:47:35 +00:00
|
|
|
props.disabled
|
|
|
|
|
? props.active
|
|
|
|
|
? Colors.GRAY_400
|
|
|
|
|
: Colors.GRAY_200
|
|
|
|
|
: props.active
|
|
|
|
|
? Colors.GRAY_900
|
|
|
|
|
: Colors.GRAY_200};
|
2021-03-15 12:17:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
& > div {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
2021-10-11 06:01:05 +00:00
|
|
|
cursor: pointer;
|
2021-03-15 12:17:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&&& svg {
|
|
|
|
|
width: 28px;
|
|
|
|
|
height: 16px;
|
2021-10-04 15:34:37 +00:00
|
|
|
transform: scale(1.4);
|
2021-03-15 12:17:56 +00:00
|
|
|
|
2020-02-26 12:44:56 +00:00
|
|
|
rect {
|
2021-03-15 12:17:56 +00:00
|
|
|
fill: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
path {
|
2022-06-16 09:47:35 +00:00
|
|
|
fill: ${(props) => (props.active ? Colors.WHITE : Colors.GRAY_700)};
|
2020-02-26 12:44:56 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2020-02-18 10:41:52 +00:00
|
|
|
export const StyledDropDownContainer = styled.div`
|
2021-02-16 10:29:08 +00:00
|
|
|
width: 100%;
|
2021-10-04 15:34:37 +00:00
|
|
|
height: 100%;
|
2021-02-16 10:29:08 +00:00
|
|
|
`;
|
|
|
|
|
|
2021-03-15 12:17:56 +00:00
|
|
|
export const StyledDropDown = styled(Dropdown)`
|
|
|
|
|
background-color: ${(props) => props.theme.colors.propertyPane.buttonText};
|
|
|
|
|
box-shadow: none;
|
2022-12-05 05:13:21 +00:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
We use this font family to show emoji flags
|
|
|
|
|
on windows devices
|
|
|
|
|
*/
|
|
|
|
|
.left-icon-wrapper {
|
|
|
|
|
font-family: "Twemoji Country Flags";
|
|
|
|
|
}
|
2020-02-18 10:41:52 +00:00
|
|
|
`;
|
2020-05-22 05:15:41 +00:00
|
|
|
|
|
|
|
|
export const StyledMenu = styled(Menu)`
|
|
|
|
|
&& {
|
2021-10-04 15:34:37 +00:00
|
|
|
background: ${(props) => props.theme.dropdown[Skin.LIGHT].background};
|
2021-02-02 12:17:18 +00:00
|
|
|
border-radius: unset;
|
2020-05-22 05:15:41 +00:00
|
|
|
}
|
|
|
|
|
.bp3-submenu .bp3-menu {
|
2021-10-04 15:34:37 +00:00
|
|
|
background: ${(props) => props.theme.dropdown[Skin.LIGHT].background};
|
2020-05-22 05:15:41 +00:00
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2020-02-20 15:03:14 +00:00
|
|
|
export const StyledMenuItem = styled(MenuItem)`
|
|
|
|
|
&&&&&& {
|
2021-10-04 15:34:37 +00:00
|
|
|
border-radius: 0;
|
|
|
|
|
background: ${(props) => props.theme.dropdown[Skin.LIGHT].background};
|
|
|
|
|
color: ${(props) => props.theme.dropdown[Skin.LIGHT].inActiveText};
|
2020-05-22 05:15:41 +00:00
|
|
|
padding: 4px 8px;
|
|
|
|
|
margin: 4px 0px;
|
2020-02-20 15:03:14 +00:00
|
|
|
&:hover {
|
2021-10-04 15:34:37 +00:00
|
|
|
background: ${(props) => props.theme.dropdown[Skin.LIGHT].hoverBG};
|
2020-04-22 09:15:24 +00:00
|
|
|
&&&.bp3-menu-item.bp3-intent-danger:hover {
|
2021-10-04 15:34:37 +00:00
|
|
|
color: ${(props) => props.theme.colors.error};
|
2020-04-22 09:15:24 +00:00
|
|
|
}
|
2020-02-20 15:03:14 +00:00
|
|
|
}
|
|
|
|
|
&.${Classes.ACTIVE} {
|
2021-10-04 15:34:37 +00:00
|
|
|
background: ${(props) => props.theme.dropdown[Skin.LIGHT].hoverBG};
|
2020-02-20 15:03:14 +00:00
|
|
|
position: relative;
|
|
|
|
|
&.single-select {
|
|
|
|
|
&:before {
|
|
|
|
|
left: 0;
|
|
|
|
|
top: -2px;
|
|
|
|
|
position: absolute;
|
|
|
|
|
content: "";
|
2021-10-04 15:34:37 +00:00
|
|
|
background: ${(props) => props.theme.dropdown[Skin.LIGHT].hoverBG};
|
|
|
|
|
border-radius: 0;
|
2020-02-20 15:03:14 +00:00
|
|
|
width: 4px;
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-05-22 05:15:41 +00:00
|
|
|
&&&& .${Classes.MENU} {
|
2021-10-04 15:34:37 +00:00
|
|
|
background: ${(props) => props.theme.dropdown[Skin.LIGHT].inActiveBG};
|
2020-05-22 05:15:41 +00:00
|
|
|
}
|
2020-02-20 15:03:14 +00:00
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2019-12-06 13:16:08 +00:00
|
|
|
export const StyledDynamicInput = styled.div`
|
2020-04-15 11:42:11 +00:00
|
|
|
width: 100%;
|
2019-12-06 13:16:08 +00:00
|
|
|
&&& {
|
|
|
|
|
input {
|
|
|
|
|
border: none;
|
2020-12-24 04:32:25 +00:00
|
|
|
color: ${(props) => props.theme.colors.textOnDarkBG};
|
|
|
|
|
background: ${(props) => props.theme.colors.paneInputBG};
|
2019-12-06 13:16:08 +00:00
|
|
|
&:focus {
|
|
|
|
|
border: none;
|
2020-12-24 04:32:25 +00:00
|
|
|
color: ${(props) => props.theme.colors.textOnDarkBG};
|
|
|
|
|
background: ${(props) => props.theme.colors.paneInputBG};
|
2019-12-06 13:16:08 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2022-05-25 10:05:53 +00:00
|
|
|
const InputGroup = styled(TextInput)`
|
2021-03-15 12:17:56 +00:00
|
|
|
width: 100%;
|
2021-10-04 15:34:37 +00:00
|
|
|
border-radius: 0;
|
2021-03-15 12:17:56 +00:00
|
|
|
background-color: ${(props) => props.theme.colors.propertyPane.radioGroupBg};
|
|
|
|
|
color: ${(props) => props.theme.colors.propertyPane.radioGroupText};
|
|
|
|
|
&:focus {
|
|
|
|
|
box-shadow: none;
|
2020-03-20 11:03:50 +00:00
|
|
|
}
|
2019-11-07 10:33:04 +00:00
|
|
|
`;
|
|
|
|
|
|
2022-05-25 10:05:53 +00:00
|
|
|
const StyledInputWrapper = styled.div`
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
|
|
&:focus ${InputWrapper} {
|
|
|
|
|
border: 1px solid var(--appsmith-input-focus-border-color);
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const StyledInputGroup = React.forwardRef(
|
|
|
|
|
(props: TextInputProps, ref) => {
|
|
|
|
|
let inputRef = useRef<HTMLInputElement>(null);
|
|
|
|
|
const wrapperRef = useRef<HTMLInputElement>(null);
|
2022-07-14 05:00:30 +00:00
|
|
|
const { dispatchInteractionAnalyticsEvent } = useInteractionAnalyticsEvent<
|
|
|
|
|
HTMLInputElement
|
|
|
|
|
>(false, wrapperRef);
|
2022-05-25 10:05:53 +00:00
|
|
|
|
|
|
|
|
if (ref) inputRef = ref as RefObject<HTMLInputElement>;
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
window.addEventListener("keydown", handleKeydown);
|
|
|
|
|
return () => {
|
|
|
|
|
window.removeEventListener("keydown", handleKeydown);
|
|
|
|
|
};
|
|
|
|
|
}, []);
|
|
|
|
|
|
|
|
|
|
const handleKeydown = (e: KeyboardEvent) => {
|
|
|
|
|
switch (e.key) {
|
|
|
|
|
case "Enter":
|
|
|
|
|
case " ":
|
|
|
|
|
if (document.activeElement === wrapperRef?.current) {
|
2022-07-14 05:00:30 +00:00
|
|
|
dispatchInteractionAnalyticsEvent({ key: e.key });
|
2022-05-25 10:05:53 +00:00
|
|
|
inputRef?.current?.focus();
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case "Escape":
|
|
|
|
|
if (document.activeElement === inputRef?.current) {
|
2022-07-14 05:00:30 +00:00
|
|
|
dispatchInteractionAnalyticsEvent({ key: e.key });
|
2022-05-25 10:05:53 +00:00
|
|
|
wrapperRef?.current?.focus();
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
}
|
|
|
|
|
break;
|
2022-07-14 05:00:30 +00:00
|
|
|
case "Tab":
|
|
|
|
|
if (document.activeElement === wrapperRef?.current) {
|
|
|
|
|
dispatchInteractionAnalyticsEvent({
|
|
|
|
|
key: `${e.shiftKey ? "Shift+" : ""}${e.key}`,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
break;
|
2022-05-25 10:05:53 +00:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<StyledInputWrapper ref={wrapperRef} tabIndex={0}>
|
|
|
|
|
<InputGroup ref={inputRef} {...props} tabIndex={-1} width="auto" />
|
|
|
|
|
</StyledInputWrapper>
|
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
StyledInputGroup.displayName = "StyledInputGroup";
|
|
|
|
|
|
2020-11-27 08:48:38 +00:00
|
|
|
export const StyledDateRangePicker = styled(DateRangeInput)`
|
|
|
|
|
> input {
|
2020-12-24 04:32:25 +00:00
|
|
|
color: ${(props) => props.theme.colors.textOnDarkBG};
|
|
|
|
|
background: ${(props) => props.theme.colors.paneInputBG};
|
2020-11-27 08:48:38 +00:00
|
|
|
border: 1px solid green;
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2020-05-22 05:15:41 +00:00
|
|
|
export const FieldWrapper = styled.div`
|
|
|
|
|
position: relative;
|
|
|
|
|
width: 100%;
|
|
|
|
|
`;
|
2021-02-16 10:29:08 +00:00
|
|
|
|
|
|
|
|
export const StyledDragIcon = styled(
|
|
|
|
|
ControlIcons.DRAG_CONTROL as AnyStyledComponent,
|
|
|
|
|
)`
|
|
|
|
|
padding: 0;
|
|
|
|
|
position: absolute;
|
|
|
|
|
margin-right: 15px;
|
|
|
|
|
cursor: move;
|
|
|
|
|
z-index: 1;
|
|
|
|
|
left: 4px;
|
2021-03-15 12:17:56 +00:00
|
|
|
&& svg {
|
2021-02-16 10:29:08 +00:00
|
|
|
width: 16px;
|
|
|
|
|
height: 16px;
|
|
|
|
|
position: relative;
|
|
|
|
|
top: 2px;
|
|
|
|
|
path {
|
2021-03-15 12:17:56 +00:00
|
|
|
fill: ${(props) => props.theme.colors.propertyPane.iconColor};
|
2021-02-16 10:29:08 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const FlexWrapper = styled.div`
|
|
|
|
|
display: flex;
|
|
|
|
|
`;
|
|
|
|
|
|
2021-03-15 12:17:56 +00:00
|
|
|
export const StyledPropertyPaneButton = styled(Button)`
|
|
|
|
|
margin-top: 4px;
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
|
|
|
|
|
&&& svg {
|
|
|
|
|
width: 14px;
|
|
|
|
|
height: 14px;
|
|
|
|
|
path {
|
2021-10-04 15:34:37 +00:00
|
|
|
fill: ${Colors.GREY_8};
|
|
|
|
|
stroke: ${Colors.GREY_8};
|
2021-02-16 10:29:08 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
2021-11-02 04:33:21 +00:00
|
|
|
|
2022-07-14 07:02:35 +00:00
|
|
|
export const StyledOptionControlInputGroup = styled(StyledInputGroup)<{
|
|
|
|
|
rightPadding: number;
|
|
|
|
|
}>`
|
2021-11-02 04:33:21 +00:00
|
|
|
width: 100%;
|
|
|
|
|
padding-left: 20px;
|
2022-07-14 07:02:35 +00:00
|
|
|
padding-right: ${(props) => props.rightPadding}px;
|
2021-11-02 04:33:21 +00:00
|
|
|
padding-bottom: 4px;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
background: inherit;
|
|
|
|
|
&&& {
|
|
|
|
|
input {
|
|
|
|
|
padding-left: 24px;
|
|
|
|
|
border: none;
|
|
|
|
|
color: ${(props) => props.theme.colors.textOnDarkBG};
|
|
|
|
|
&:focus {
|
|
|
|
|
border: none;
|
|
|
|
|
color: ${(props) => props.theme.colors.textOnDarkBG};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
2022-07-14 07:02:35 +00:00
|
|
|
|
|
|
|
|
/* Used in Draggable List Card component in Property pane */
|
|
|
|
|
export const StyledActionContainer = styled.div`
|
|
|
|
|
position: absolute;
|
|
|
|
|
right: 0px;
|
|
|
|
|
display: flex;
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
const CommonIconStyles = css`
|
|
|
|
|
padding: 0;
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const StyledEditIcon = styled(
|
|
|
|
|
ControlIcons.SETTINGS_CONTROL as AnyStyledComponent,
|
|
|
|
|
)`
|
|
|
|
|
${CommonIconStyles}
|
|
|
|
|
|
|
|
|
|
&& svg {
|
|
|
|
|
width: 16px;
|
|
|
|
|
height: 16px;
|
|
|
|
|
position: relative;
|
|
|
|
|
path {
|
|
|
|
|
fill: ${(props) => props.theme.colors.propertyPane.iconColor};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const StyledVisibleIcon = styled(
|
|
|
|
|
ControlIcons.SHOW_COLUMN as AnyStyledComponent,
|
|
|
|
|
)`
|
|
|
|
|
${CommonIconStyles}
|
|
|
|
|
|
|
|
|
|
&& svg {
|
|
|
|
|
width: 16px;
|
|
|
|
|
height: 16px;
|
|
|
|
|
position: relative;
|
|
|
|
|
path {
|
|
|
|
|
fill: ${(props) => props.theme.colors.propertyPane.iconColor};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const StyledHiddenIcon = styled(
|
|
|
|
|
ControlIcons.HIDE_COLUMN as AnyStyledComponent,
|
|
|
|
|
)`
|
|
|
|
|
${CommonIconStyles}
|
|
|
|
|
|
|
|
|
|
&& svg {
|
|
|
|
|
width: 16px;
|
|
|
|
|
height: 16px;
|
|
|
|
|
position: relative;
|
|
|
|
|
path {
|
|
|
|
|
fill: ${(props) => props.theme.colors.propertyPane.iconColor};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const StyledDeleteIcon = styled(
|
|
|
|
|
FormIcons.DELETE_ICON as AnyStyledComponent,
|
|
|
|
|
)`
|
|
|
|
|
${CommonIconStyles}
|
|
|
|
|
|
|
|
|
|
&& svg {
|
|
|
|
|
width: 16px;
|
|
|
|
|
height: 16px;
|
|
|
|
|
position: relative;
|
|
|
|
|
path {
|
|
|
|
|
fill: ${(props) => props.theme.colors.propertyPane.iconColor};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const StyledCheckbox = styled(Checkbox)<{ disabled?: boolean }>`
|
|
|
|
|
cursor: ${(props) => (props.disabled ? "default" : "cursor")};
|
|
|
|
|
width: 18px;
|
2022-09-16 04:30:16 +00:00
|
|
|
${CommonIconStyles}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const StyledNavigateToFieldWrapper = styled.div`
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
height: auto;
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const StyledDividerContainer = styled.div`
|
|
|
|
|
width: 1%;
|
|
|
|
|
margin-top: 9px;
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export const StyledNavigateToFieldsContainer = styled.div`
|
|
|
|
|
width: 95%;
|
2022-07-14 07:02:35 +00:00
|
|
|
`;
|