Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Commit 8e168fc

Browse files
authored
feat: add new arrow for new menu (#527)
* feat: add new arrow for new menu * fix: rename arrow to chevron * fix: replace thickArrowDown with chevronDownThick
1 parent 4dc5db7 commit 8e168fc

File tree

3 files changed

+41
-5
lines changed

3 files changed

+41
-5
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import PropTypes from 'prop-types';
2+
import React from 'react';
3+
import Icon from '../icon';
4+
5+
export default function ChevronDownMedium({
6+
fill,
7+
style: styleProp,
8+
...rest // eslint-disable-line comma-dangle
9+
}) {
10+
const style = {
11+
...styleProp,
12+
...Icon.defaultProps.style,
13+
};
14+
return (
15+
<svg style={style} {...rest}>
16+
<path
17+
d="M14 .0814404l1.414214 1.3889597L7.707107 9.03988 0 1.4704001 1.414214.0814404l6.292893 6.1805201z"
18+
fill={fill}
19+
fillRule="nonzero"
20+
/>
21+
</svg>
22+
);
23+
}
24+
25+
ChevronDownMedium.propTypes = {
26+
...Icon.propTypes,
27+
fill: PropTypes.string,
28+
};
29+
30+
ChevronDownMedium.defaultProps = {
31+
...Icon.defaultProps,
32+
viewBox: '0 0 16 9',
33+
};

src/components/icon/icons/thickArrowDown.jsx renamed to src/components/icon/icons/chevronDownThick.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import PropTypes from 'prop-types';
22
import React from 'react';
33
import Icon from '../icon';
44

5-
export default function ThickArrowDown({
5+
export default function ChevronDownThick({
66
fill,
77
style: styleProp,
88
...rest // eslint-disable-line comma-dangle
@@ -22,12 +22,12 @@ export default function ThickArrowDown({
2222
);
2323
}
2424

25-
ThickArrowDown.propTypes = {
25+
ChevronDownThick.propTypes = {
2626
...Icon.propTypes,
2727
fill: PropTypes.string,
2828
};
2929

30-
ThickArrowDown.defaultProps = {
30+
ChevronDownThick.defaultProps = {
3131
...Icon.defaultProps,
3232
viewBox: '0 0 9 6',
3333
};

src/components/icon/icons/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ import Cart from './cart';
1919
import Checkmark from './checkmark';
2020
import CheckmarkLarge from './checkmarkLarge';
2121
import ChevronDown from './chevronDown';
22+
import ChevronDownMedium from './chevronDownMedium';
23+
import ChevronDownThick from './chevronDownThick';
2224
import ChevronUp from './chevronUp';
2325
import CircleArrow from './circleArrow';
2426
import CircleSlash from './circleSlash';
@@ -87,7 +89,6 @@ import SolidArrowUp from './solidArrowUp';
8789
import Star from './star';
8890
import Tag from './tag';
8991
import TickingClock from './tickingClock';
90-
import ThickArrowDown from './thickArrowDown';
9192
import Trash from './trash';
9293
import VerticalEllipsis from './verticalEllipsis';
9394

@@ -113,6 +114,8 @@ const Icon = {
113114
Checkmark,
114115
CheckmarkLarge,
115116
ChevronDown,
117+
ChevronDownMedium,
118+
ChevronDownThick,
116119
ChevronUp,
117120
CircleArrow,
118121
CircleSlash,
@@ -180,7 +183,7 @@ const Icon = {
180183
SolidArrowUp,
181184
Star,
182185
Tag,
183-
ThickArrowDown,
186+
ThickArrowDown: ChevronDownThick,
184187
TickingClock,
185188
Trash,
186189
VerticalEllipsis,

0 commit comments

Comments
 (0)