-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
StepItem: restyle step controls/header. Update icons.
- Loading branch information
1 parent
cc427f3
commit 6f8ce01
Showing
5 changed files
with
88 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,22 @@ | ||
import PropTypes from 'prop-types'; | ||
|
||
export default function GripIcon({ | ||
alt, | ||
className = 'icon', | ||
color = 'currentColor', | ||
size = 16 | ||
}) { | ||
const x1 = (4 / 16) * size; | ||
const x2 = (8 / 16) * size; | ||
const x3 = (12 / 16) * size; | ||
const y1 = (6 / 16) * size; | ||
const y2 = (10 / 16) * size; | ||
const r = (1.5 / 16) * size; | ||
|
||
export default function GripIcon({ alt, className = '', width = 40, height = 40 }) { | ||
return ( | ||
<svg aria-label={alt} width={size} height={size} className={className}> | ||
<g fill={color}> | ||
<circle r={r} cx={x1} cy={y1} /> | ||
<circle r={r} cx={x2} cy={y1} /> | ||
<circle r={r} cx={x3} cy={y1} /> | ||
<circle r={r} cx={x1} cy={y2} /> | ||
<circle r={r} cx={x2} cy={y2} /> | ||
<circle r={r} cx={x3} cy={y2} /> | ||
<svg | ||
className={`icon ${className}`} | ||
aria-label={alt} | ||
role="img" | ||
width={width} | ||
height={height} | ||
viewBox="0 0 40 40" | ||
fill="none" | ||
> | ||
<g | ||
transform="translate(0 -2)" | ||
> | ||
<path | ||
d="M28 23C28 23.55 27.804 24.021 27.412 24.413C27.02 24.805 26.5493 25.0007 26 25C25.45 25 24.979 24.804 24.587 24.412C24.195 24.02 23.9993 23.5493 24 23C24 22.45 24.196 21.979 24.588 21.587C24.98 21.195 25.4507 20.9993 26 21C26.55 21 27.021 21.196 27.413 21.588C27.805 21.98 28.0007 22.4507 28 23ZM28 17C28 17.55 27.804 18.021 27.412 18.413C27.02 18.805 26.5493 19.0007 26 19C25.45 19 24.979 18.804 24.587 18.412C24.195 18.02 23.9993 17.5493 24 17C24 16.45 24.196 15.979 24.588 15.587C24.98 15.195 25.4507 14.9993 26 15C26.55 15 27.021 15.196 27.413 15.588C27.805 15.98 28.0007 16.4507 28 17ZM22 23C22 23.55 21.804 24.021 21.412 24.413C21.02 24.805 20.5493 25.0007 20 25C19.45 25 18.979 24.804 18.587 24.412C18.195 24.02 17.9993 23.5493 18 23C18 22.45 18.196 21.979 18.588 21.587C18.98 21.195 19.4507 20.9993 20 21C20.55 21 21.021 21.196 21.413 21.588C21.805 21.98 22.0007 22.4507 22 23ZM22 17C22 17.55 21.804 18.021 21.412 18.413C21.02 18.805 20.5493 19.0007 20 19C19.45 19 18.979 18.804 18.587 18.412C18.195 18.02 17.9993 17.5493 18 17C18 16.45 18.196 15.979 18.588 15.587C18.98 15.195 19.4507 14.9993 20 15C20.55 15 21.021 15.196 21.413 15.588C21.805 15.98 22.0007 16.4507 22 17ZM16 23C16 23.55 15.804 24.021 15.412 24.413C15.02 24.805 14.5493 25.0007 14 25C13.45 25 12.979 24.804 12.587 24.412C12.195 24.02 11.9993 23.5493 12 23C12 22.45 12.196 21.979 12.588 21.587C12.98 21.195 13.4507 20.9993 14 21C14.55 21 15.021 21.196 15.413 21.588C15.805 21.98 16.0007 22.4507 16 23ZM16 17C16 17.55 15.804 18.021 15.412 18.413C15.02 18.805 14.5493 19.0007 14 19C13.45 19 12.979 18.804 12.587 18.412C12.195 18.02 11.9993 17.5493 12 17C12 16.45 12.196 15.979 12.588 15.587C12.98 15.195 13.4507 14.9993 14 15C14.55 15 15.021 15.196 15.413 15.588C15.805 15.98 16.0007 16.4507 16 17Z" | ||
fill="currentColor" | ||
/> | ||
</g> | ||
</svg> | ||
); | ||
} | ||
|
||
GripIcon.propTypes = { | ||
alt: PropTypes.string, | ||
className: PropTypes.string, | ||
color: PropTypes.string, | ||
size: PropTypes.number | ||
}; |
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,5 +1,19 @@ | ||
export default function MoveDownIcon({ alt }) { | ||
export default function MoveDownIcon({ alt, className = '', width = 16, height = 16 }) { | ||
return ( | ||
<span className="icon fa fa-caret-down" aria-label={alt} role={!!alt ? 'img' : undefined} /> | ||
<svg | ||
className={`icon ${className}`} | ||
aria-label={alt} | ||
role="img" | ||
width={width} | ||
height={height} | ||
viewBox="0 0 16 16" | ||
fill="none" | ||
> | ||
<path | ||
d="M13.9194 3C14.7579 3 15.2241 3.96993 14.7002 4.6247L8.78087 12.0239C8.38054 12.5243 7.61946 12.5243 7.21913 12.0239L1.29976 4.6247C0.775946 3.96993 1.24212 3 2.08062 3H13.9194Z" | ||
stroke="currentColor" | ||
stroke-width="1.5" | ||
/> | ||
</svg> | ||
); | ||
} |
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,5 +1,26 @@ | ||
export default function MoveUpIcon({ alt }) { | ||
export default function MoveUpIcon({ alt, className = '', width = 16, height = 16 }) { | ||
return ( | ||
<span className="icon fa fa-caret-up" aria-label={alt} role={!!alt ? 'img' : undefined} /> | ||
<svg | ||
className={`icon ${className}`} | ||
aria-label={alt} | ||
role="img" | ||
width={width} | ||
height={height} | ||
viewBox="0 0 16 16" | ||
fill="none" | ||
> | ||
<g clip-path="url(#clip0_1767_3606)"> | ||
<path | ||
d="M13.9194 13C14.7579 13 15.2241 12.0301 14.7003 11.3753L8.78088 3.97609C8.38056 3.47568 7.61947 3.47568 7.21915 3.97609L1.29977 11.3753C0.775961 12.0301 1.24213 13 2.08064 13H13.9194Z" | ||
stroke="currentColor" | ||
stroke-width="1.5" | ||
/> | ||
</g> | ||
<defs> | ||
<clipPath id="clip0_1767_3606"> | ||
<rect width="16" height="16" fill="white"/> | ||
</clipPath> | ||
</defs> | ||
</svg> | ||
); | ||
} |
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