Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
soupette 2020-04-22 13:32:21 +02:00
parent d71235a0c1
commit 81454df46f
27 changed files with 121 additions and 119 deletions

View File

@ -4,6 +4,7 @@
**/OLD/**
testApp/**
examples/**
cypress/**
packages/strapi-generate-plugin/files/admin/src/**
packages/strapi-helper-plugin/**
packages/strapi-plugin-users-permissions/admin/**

View File

@ -64,9 +64,14 @@ module.exports = {
{
flatTernaryExpressions: false,
SwitchCase: 1,
ignoredNodes: ['ConditionalExpression', "VariableDeclarator[kind='const']"],
ignoredNodes: [
'ConditionalExpression',
"VariableDeclarator[kind='const']",
'TemplateLiteral',
],
},
],
'template-curly-spacing': 0,
'func-names': ['error', 'never'],
'function-paren-newline': 0,
'implicit-arrow-linebreak': 0,

View File

@ -19,7 +19,7 @@ const MenuDropdown = styled(DropdownMenu)`
}
return '';
}}
}}
`;
export default MenuDropdown;

View File

@ -81,7 +81,7 @@ const Toggle = styled(DropdownToggle)`
border: 1px solid #e3e9f3;
}
`;
}}
}}
`;
export default Toggle;

View File

@ -22,7 +22,7 @@ const NameWrapper = styled.div`
}
return '';
}}
}}
`;
export default NameWrapper;

View File

@ -12,7 +12,7 @@ const Carret = styled.div`
return `
left: -1px;
`;
}}
}}
height: 100%;
width: 2px;
margin-right: 3px;

View File

@ -24,7 +24,7 @@ const Button = styled(PlusButton)`
}
return '';
}}
}}
&.isOpen {
transform: rotate(-45deg);
}

View File

@ -14,7 +14,7 @@ const Wrapper = styled.div`
}
return '';
}}
}}
`;
export default Wrapper;

View File

@ -37,8 +37,7 @@ const Flex = styled.div`
const Div = styled.div`
width: calc(100% + 60px);
margin: ${props =>
props.show ? '-100px -30px 30px' : `-${props.number}px -30px 103px`};
margin: ${props => (props.show ? '-100px -30px 30px' : `-${props.number}px -30px 103px`)};
background: #fff;
box-shadow: 3px 2px 4px #e3e9f3;
padding: 18px 30px 0px 30px;
@ -50,7 +49,7 @@ const Div = styled.div`
}
return '';
}};
}};
`;
export { Div, Flex, Span, Wrapper };

View File

@ -60,7 +60,7 @@ const Label = styled.label`
}
return '';
}}
}}
`;
export { Div, Label };

View File

@ -58,7 +58,7 @@ const NonRepeatableWrapper = styled.div`
background-color: #f7f8f8;
margin-bottom: 18px !important;
`;
}}
}}
`;
export default NonRepeatableWrapper;

View File

@ -16,7 +16,7 @@ const Wrapper = styled.div`
}
return '';
}}
}}
border-radius: 2px;
> div {
width: 100%;

View File

@ -9,9 +9,7 @@ const Button = styled.button`
border: 1px solid rgba(227, 233, 243, 0.75);
border-top: 1px solid
${({ doesPreviousFieldContainErrorsAndIsClosed }) =>
doesPreviousFieldContainErrorsAndIsClosed
? '#FFA784'
: 'rgba(227, 233, 243, 0.75)'};
doesPreviousFieldContainErrorsAndIsClosed ? '#FFA784' : 'rgba(227, 233, 243, 0.75)'};
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;

View File

@ -16,7 +16,7 @@ const EmptyComponent = styled.div`
}
return '';
}}
}}
> p {
color: #9ea7b8;

View File

@ -25,8 +25,7 @@ const Button = styled.button`
return css`
border: 0;
background: rgba(16, 22, 34, 0);
box-shadow: inset 0 -1px 0 0 rgba(16, 22, 34, 0.04),
inset 0 1px 0 0 rgba(16, 22, 34, 0.04);
box-shadow: inset 0 -1px 0 0 rgba(16, 22, 34, 0.04), inset 0 1px 0 0 rgba(16, 22, 34, 0.04);
`;
}
@ -38,7 +37,7 @@ const Button = styled.button`
}
return '';
}}
}}
> svg {
margin: auto;

View File

@ -27,7 +27,7 @@ const Cell = styled.div`
}
return '';
}}
}}
> svg {
z-index: 9;

View File

@ -13,7 +13,7 @@ const Wrapper = styled.div`
}
return '';
}}
}}
`;
export default Wrapper;

View File

@ -77,7 +77,7 @@ const StyledButton = styled(Button)`
margin-left: 45px;
font-weight: 400;
`;
}}
}}
`;
export { Wrapper, StyledButton };