2021-05-04 06:04:23 +00:00
|
|
|
import styled from "styled-components";
|
feat: import changes batch 2 (#15722)
* Remove treedropdown from ads
* Change Treedropdown imports
* Remove Notification Banner, change imports
* Remove Toggle from ads
* Change toggle imports
* explicitly declare function argument types
* Remove Menu from ads
* Change menu imports
* Remove Spinner from ads
* Change spinner imports
* Remove Radio, import changes
* test: updated flaky test under default meta (#15707)
* updated flaky test
* Updated tests
* updated tests
* updated the tests
* updated tests
* Update constants.ts
* add more typecasting
* Remove ListSegmentHeader, import changes
* Remove TagInputComponent, import changes
* Remove Switch, import changes
* Remove SearchInput, change imports
* Rename TagInputComponent to TagInput
* Remove ProgressiveImage, import changes
* import changes for SearchVariant
* Remove menu divider, import changes
* Remove TableDropdown, import changes
* Remove Switcher
* Remove StatusBar, import changes
* Remove showcase carousel
* Remove RectangularSwitcher, import change
* Add types to TableDropdown's args
* Remove MultiSwitch, import change
* Remove GifPlayerComponent, import change
* Remove DraggableList, import change
* Remove DisplayImageUpload, import change
* Remove DatePickerComponent, import change
* Remove CopyToClipBoard, import change
* Remove ColorSelector, import change
* Remove TabItemBackgroundFill, NumberedStep, ColorPickerComponent
* GifPlayerComponent -> GifPlayer
* change named import
* Remove FormFieldError, change imports
* Update to new version of Tree Dropdown
* Fix issue with ads/index.ts
* Test file fix
* Fix issue with merge?!?!??
* update design system to 1.0.18
* Bump ds version
* bump ds version
* bump ds version
Co-authored-by: NandanAnantharamu <67676905+NandanAnantharamu@users.noreply.github.com>
Co-authored-by: Albin <albin@appsmith.com>
2022-09-02 08:38:17 +00:00
|
|
|
import { Button, RadioComponent } from "design-system";
|
2021-05-04 06:04:23 +00:00
|
|
|
import { getTypographyByKey } from "constants/DefaultTheme";
|
|
|
|
|
import Dialog from "components/ads/DialogComponent";
|
|
|
|
|
import { Classes } from "@blueprintjs/core";
|
|
|
|
|
|
|
|
|
|
const TriggerButton = styled(Button)`
|
|
|
|
|
${(props) => getTypographyByKey(props, "btnLarge")}
|
|
|
|
|
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,
|
|
|
|
|
};
|