# Conflicts:
#	products/ASC.People/Client/src/components/pages/GroupAction/Section/Header/index.js
This commit is contained in:
Nikita Gopienko 2019-12-27 10:53:11 +03:00
commit 87e17ff100
11 changed files with 40 additions and 13 deletions

View File

@ -21,7 +21,7 @@ const getItems = data => {
<Icons.CatalogDepartmentsIcon <Icons.CatalogDepartmentsIcon
size="scale" size="scale"
isfill={true} isfill={true}
color="dimgray" color="#657077"
/> />
) : ( ) : (
"" ""
@ -41,7 +41,7 @@ const getItems = data => {
<Icons.CatalogFolderIcon <Icons.CatalogFolderIcon
size="scale" size="scale"
isfill={true} isfill={true}
color="dimgray" color="#657077"
/> />
) : ( ) : (
"" ""

View File

@ -1,6 +1,6 @@
{ {
"name": "asc-web-components", "name": "asc-web-components",
"version": "1.0.277", "version": "1.0.279",
"description": "Ascensio System SIA component library", "description": "Ascensio System SIA component library",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"main": "dist/asc-web-components.js", "main": "dist/asc-web-components.js",

View File

@ -119,7 +119,7 @@ class ContextMenuButton extends React.Component {
<DropDown directionX={directionX} open={isOpen}> <DropDown directionX={directionX} open={isOpen}>
{ {
this.state.data.map((item, index) => this.state.data.map((item, index) =>
(item && (item.label || item.icon)) && <DropDownItem {...item} key={item.key || index} onClick={this.onDropDownItemClick.bind(this, item)} (item && (item.label || item.icon || item.key)) && <DropDownItem {...item} key={item.key || index} onClick={this.onDropDownItemClick.bind(this, item)}
/> />
) )
} }

View File

@ -31,8 +31,8 @@ const StyledDropdownItem = styled.div`
border: 0px; border: 0px;
cursor: pointer; cursor: pointer;
margin: 0px; margin: 0px;
padding: 0 16px; padding: 0px 16px;
line-height: 36px; line-height: 32px;
box-sizing: border-box; box-sizing: border-box;
text-align: left; text-align: left;
background: none; background: none;
@ -53,6 +53,7 @@ const StyledDropdownItem = styled.div`
background-color: ${props => props.noHover ? 'white' : '#F8F9F9'}; background-color: ${props => props.noHover ? 'white' : '#F8F9F9'};
text-align: left; text-align: left;
&:first-of-type { &:first-of-type {
border-radius: 6px 6px 0 0; border-radius: 6px 6px 0 0;
} }
@ -60,13 +61,15 @@ const StyledDropdownItem = styled.div`
&:last-of-type { &:last-of-type {
border-radius: 0 0 6px 6px; border-radius: 0 0 6px 6px;
} }
} }
${props => props.isSeparator && ${props => props.isSeparator &&
` `
padding: 0px 16px;
border: 0.5px solid #ECEEF1; border: 0.5px solid #ECEEF1;
cursor: default; cursor: default;
margin: 0px 16px; margin: 6px 16px 4px;
line-height: 1px; line-height: 1px;
height: 1px; height: 1px;
width: calc(100% - 32px); width: calc(100% - 32px);
@ -86,7 +89,7 @@ const StyledDropdownItem = styled.div`
} }
@media ${ tablet } { @media ${ tablet } {
line-height: 40px; line-height: 36px;
} }
${props => props.disabled && disabledAndHeaderStyle } ${props => props.disabled && disabledAndHeaderStyle }

View File

@ -114,7 +114,7 @@ class DropDown extends React.PureComponent {
const { maxHeight, withArrow, withBackdrop, children, open } = this.props; const { maxHeight, withArrow, withBackdrop, children, open } = this.props;
const { directionX, directionY, width } = this.state; const { directionX, directionY, width } = this.state;
const isTablet = window.innerWidth <= 1024; //TODO: Make some better const isTablet = window.innerWidth <= 1024; //TODO: Make some better
const itemHeight = isTablet ? 40 : 36; const itemHeight = isTablet ? 36 : 32;
const fullHeight = children && children.length * itemHeight; const fullHeight = children && children.length * itemHeight;
const calculatedHeight = ((fullHeight > 0) && (fullHeight < maxHeight)) ? fullHeight : maxHeight; const calculatedHeight = ((fullHeight > 0) && (fullHeight < maxHeight)) ? fullHeight : maxHeight;
const dropDownMaxHeightProp = maxHeight ? { height: calculatedHeight + 'px' } : {}; const dropDownMaxHeightProp = maxHeight ? { height: calculatedHeight + 'px' } : {};

View File

@ -12,9 +12,9 @@ const CloseButton = props => {
return ( return (
<StyledCloseButton className={props.className}> <StyledCloseButton className={props.className}>
<IconButton <IconButton
color={"#D8D8D8"} color={"#A3A9AE"}
hoverColor={"#333"} hoverColor={"#555F65"}
clickColor={"#333"} clickColor={"#555F65"}
size={10} size={10}
iconName={'CrossIcon'} iconName={'CrossIcon'}
isFill={true} isFill={true}

View File

@ -27,6 +27,7 @@ const StyledFilterItem = styled.div`
font-size: 13px; font-size: 13px;
line-height: 15px; line-height: 15px;
box-sizing: border-box; box-sizing: border-box;
color: #555F65;
&:last-child{ &:last-child{
margin-bottom: 0; margin-bottom: 0;
@ -54,6 +55,9 @@ const StyledComboBox = styled(ComboBox)`
width: auto; width: auto;
padding-left: 4px; padding-left: 4px;
} }
.combo-button-label {
color: #555F65;
}
`; `;
const StyledFilterName = styled.span` const StyledFilterName = styled.span`
line-height: 18px; line-height: 18px;

View File

@ -16,6 +16,7 @@ class FilterButton extends React.PureComponent {
getData={this.props.getData} getData={this.props.getData}
iconHoverName='RectangleFilterHoverIcon' iconHoverName='RectangleFilterHoverIcon'
iconClickName='RectangleFilterClickIcon' iconClickName='RectangleFilterClickIcon'
className='filter-button'
></ContextMenuButton> ></ContextMenuButton>
) )
} }

View File

@ -31,6 +31,20 @@ const StyledSearchInput = styled.div`
`; `;
const StyledFilterBlock = styled.div` const StyledFilterBlock = styled.div`
display: flex; display: flex;
.filter-button {
div:active {
svg path:first-child {
fill: #ECEEF1;
}
}
div:first-child:hover {
svg path:not(:first-child) {
stroke: #555F65;
}
}
}
`; `;
const cloneObjectsArray = function (props) { const cloneObjectsArray = function (props) {
return map(props, clone); return map(props, clone);

View File

@ -24,6 +24,10 @@ const StyledComboBox = styled(ComboBox)`
} }
} }
.combo-button-label {
color: #A3A9AE;
}
`; `;
class SortComboBox extends React.Component { class SortComboBox extends React.Component {
@ -123,7 +127,7 @@ class SortComboBox extends React.Component {
> >
<StyledIconButton sortDirection={!!this.state.sortDirection}> <StyledIconButton sortDirection={!!this.state.sortDirection}>
<IconButton <IconButton
color={"#D8D8D8"} color={"#A3A9AE"}
hoverColor={"#333"} hoverColor={"#333"}
clickColor={"#333"} clickColor={"#333"}
size={10} size={10}

View File

@ -204,6 +204,7 @@ const TreeNodeMenu = styled(TreeNode)`
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
color: #555F65;
} }
span.rc-tree-title:first-child{ span.rc-tree-title:first-child{
max-width: 100%; max-width: 100%;