2021-05-04 06:04:23 +00:00
|
|
|
import styled from "styled-components";
|
2022-10-10 03:54:41 +00:00
|
|
|
import {
|
|
|
|
|
Button,
|
|
|
|
|
DialogComponent as Dialog,
|
2022-11-16 04:32:00 +00:00
|
|
|
getTypographyByKey,
|
2022-10-10 03:54:41 +00:00
|
|
|
RadioComponent,
|
2023-01-23 03:50:47 +00:00
|
|
|
} from "design-system-old";
|
2021-05-04 06:04:23 +00:00
|
|
|
import { Classes } from "@blueprintjs/core";
|
|
|
|
|
|
|
|
|
|
const TriggerButton = styled(Button)`
|
2022-11-16 04:32:00 +00:00
|
|
|
${getTypographyByKey("btnLarge")}
|
2021-05-04 06:04:23 +00:00
|
|
|
height: 100%;
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
const StyledDialog = styled(Dialog)`
|
|
|
|
|
&& .${Classes.DIALOG_BODY} {
|
|
|
|
|
padding-top: 0px;
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
const StyledRadioComponent = styled(RadioComponent)`
|
|
|
|
|
label {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
margin-bottom: 32px;
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
2021-06-03 06:18:08 +00:00
|
|
|
const ForkButton = styled(Button)<{ disabled?: boolean }>`
|
2021-05-04 06:04:23 +00:00
|
|
|
height: 38px;
|
|
|
|
|
width: 203px;
|
2021-06-03 06:18:08 +00:00
|
|
|
pointer-events: ${(props) => (!!props.disabled ? "none" : "auto")};
|
2021-05-04 06:04:23 +00:00
|
|
|
`;
|
|
|
|
|
|
2022-06-15 15:37:41 +00:00
|
|
|
const WorkspaceList = styled.div`
|
2021-05-04 06:04:23 +00:00
|
|
|
overflow: auto;
|
|
|
|
|
max-height: 250px;
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
const ButtonWrapper = styled.div`
|
|
|
|
|
display: flex;
|
2022-03-10 14:39:05 +00:00
|
|
|
margin-top: ${(props) => props.theme.spaces[11]}px;
|
|
|
|
|
gap: ${(props) => props.theme.spaces[4]}px;
|
2021-05-04 06:04:23 +00:00
|
|
|
justify-content: flex-end;
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
const SpinnerWrapper = styled.div`
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
export {
|
|
|
|
|
TriggerButton,
|
|
|
|
|
StyledDialog,
|
|
|
|
|
StyledRadioComponent,
|
|
|
|
|
ForkButton,
|
2022-06-15 15:37:41 +00:00
|
|
|
WorkspaceList,
|
2021-05-04 06:04:23 +00:00
|
|
|
ButtonWrapper,
|
|
|
|
|
SpinnerWrapper,
|
|
|
|
|
};
|