-
Notifications
You must be signed in to change notification settings - Fork 296
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fbcecb6
commit b1a7085
Showing
20 changed files
with
119 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export const DIRECTIONS = { | ||
VERTICAL: "vertical", | ||
HORIZONTAL: "horizontal", | ||
HORIZONTAL: "horizontal" | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 14 additions & 10 deletions
24
src/components/Dropdown/components/ClearIndicator/ClearIndicator.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
/* eslint-disable react/jsx-props-no-spreading */ | ||
import React from "react"; | ||
import { components } from "react-select"; | ||
import Icon from "../../../Icon/Icon"; | ||
import CloseSmall from "../../../Icon/Icons/components/CloseSmall"; | ||
import { getIndicatorSize } from "../../Dropdown.styles"; | ||
|
||
const ClearIndicator = props => ( | ||
<components.ClearIndicator {...props} className={"clear-indicator"}> | ||
<Icon | ||
iconType={Icon.type.SVG} | ||
icon={CloseSmall} | ||
iconSize={getIndicatorSize(props.size)} | ||
tabindex="-1" | ||
/> | ||
</components.ClearIndicator> | ||
); | ||
const ClearIndicator = props => { | ||
const { size } = props; | ||
return ( | ||
<components.ClearIndicator {...props} className="clear-indicator"> | ||
<Icon | ||
iconType={Icon.type.SVG} | ||
icon={CloseSmall} | ||
iconSize={getIndicatorSize(size)} | ||
tabindex="-1" | ||
/> | ||
</components.ClearIndicator> | ||
); | ||
}; | ||
|
||
export default ClearIndicator; |
27 changes: 15 additions & 12 deletions
27
src/components/Dropdown/components/DropdownIndicator/DropdownIndicator.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
/* eslint-disable react/jsx-props-no-spreading */ | ||
import React from "react"; | ||
import { components } from "react-select"; | ||
import Icon from "../../../Icon/Icon"; | ||
import DropdownChevronDown from "../../../Icon/Icons/components/DropdownChevronDown"; | ||
import { getIndicatorSize } from "../../Dropdown.styles"; | ||
|
||
const DropdownIndicator = props => ( | ||
<components.DropdownIndicator {...props} className={"dropdown-indicator"}> | ||
<Icon | ||
iconType={Icon.type.SVG} | ||
icon={DropdownChevronDown} | ||
iconSize={getIndicatorSize(props.size)} | ||
tabindex="-1" | ||
clickable={!props.isDisabled} | ||
/> | ||
</components.DropdownIndicator> | ||
); | ||
|
||
const DropdownIndicator = props => { | ||
const { isDisabled, size } = props; | ||
return ( | ||
<components.DropdownIndicator {...props} className="dropdown-indicator"> | ||
<Icon | ||
iconType={Icon.type.SVG} | ||
icon={DropdownChevronDown} | ||
iconSize={getIndicatorSize(size)} | ||
tabindex="-1" | ||
clickable={!isDisabled} | ||
/> | ||
</components.DropdownIndicator> | ||
); | ||
}; | ||
export default DropdownIndicator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
/* eslint-disable react/jsx-props-no-spreading */ | ||
import React from "react"; | ||
import cx from "classnames"; | ||
import { components } from "react-select"; | ||
import "./Menu.scss"; | ||
|
||
const Menu = props => ( | ||
<components.Menu | ||
{...props} | ||
className={cx("menu", { | ||
"dropdown-wrapper__menu--open": props.isOpen | ||
})} | ||
> | ||
{props.children} | ||
</components.Menu> | ||
); | ||
const Menu = props => { | ||
const { isOpen, children } = props; | ||
return ( | ||
<components.Menu | ||
{...props} | ||
className={cx("menu", { | ||
"dropdown-wrapper__menu--open": isOpen | ||
})} | ||
> | ||
{children} | ||
</components.Menu> | ||
); | ||
}; | ||
|
||
export default Menu; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
src/components/Dropdown/components/SingleValue/SingleValue.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.