146 lines
2.3 KiB
JavaScript
146 lines
2.3 KiB
JavaScript
import styled, { css } from "styled-components";
|
|
|
|
import { Base } from "@appserver/components/themes";
|
|
|
|
const StyledContainer = styled.div`
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
`;
|
|
|
|
const StyledHeader = styled.div`
|
|
width: 100%;
|
|
padding: ${(props) => (props.isPersonal ? "0px 16px 12px" : "12px 16px")};
|
|
${(props) =>
|
|
props.isPersonal &&
|
|
css`
|
|
margin-left: -12px;
|
|
margin-right: 12px;
|
|
`}
|
|
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
|
|
box-sizing: border-box;
|
|
|
|
border-bottom: ${(props) => props.theme.filesPanels.sharing.borderBottom};
|
|
`;
|
|
|
|
StyledHeader.defaultProps = { theme: Base };
|
|
|
|
const StyledExternalLink = styled.div`
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
padding: ${(props) => (props.isPersonal ? "20px 4px" : "20px 16px")};
|
|
|
|
box-sizing: border-box;
|
|
|
|
border-bottom: ${(props) =>
|
|
props.isPersonal ? "none" : props.theme.filesPanels.sharing.borderBottom};
|
|
|
|
.rectangle-loader {
|
|
margin-bottom: 16px;
|
|
}
|
|
`;
|
|
|
|
StyledExternalLink.defaultProps = { theme: Base };
|
|
|
|
const StyledInternalLink = styled.div`
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
|
|
padding: 20px 16px;
|
|
|
|
box-sizing: border-box;
|
|
`;
|
|
|
|
const StyledOwner = styled.div`
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
|
|
padding: 8px 16px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin-bottom: 16px;
|
|
|
|
.owner-info {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
svg:first-child {
|
|
margin-right: 12px;
|
|
}
|
|
}
|
|
`;
|
|
|
|
const StyledBody = styled.div`
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
div:nth-child(3) {
|
|
margin-bottom: 16px;
|
|
}
|
|
`;
|
|
|
|
const StyledItem = styled.div`
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 8px 16px;
|
|
|
|
.item-info {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
svg:first-child {
|
|
margin-right: 12px;
|
|
}
|
|
}
|
|
`;
|
|
|
|
const StyledButtons = styled.div`
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: 4px;
|
|
|
|
svg:first-child {
|
|
margin-right: 8px;
|
|
}
|
|
`;
|
|
|
|
export {
|
|
StyledContainer,
|
|
StyledHeader,
|
|
StyledExternalLink,
|
|
StyledInternalLink,
|
|
StyledOwner,
|
|
StyledBody,
|
|
StyledItem,
|
|
StyledButtons,
|
|
};
|