Skip to content

Commit

Permalink
[base] Add and update icons
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard authored and rexxars committed Nov 19, 2019
1 parent 5504e14 commit 1ac7f36
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
8 changes: 8 additions & 0 deletions packages/@sanity/base/sanity.json
Expand Up @@ -607,6 +607,10 @@
"name": "part:@sanity/base/plus-icon",
"description": "Plus icon"
},
{
"name": "part:@sanity/base/split-horizontal-icon",
"description": "Split horizontal icon"
},
{
"name": "part:@sanity/base/plus-circle-icon",
"description": "Plus circle icon"
Expand Down Expand Up @@ -755,6 +759,10 @@
"implements": "part:@sanity/base/plus-icon",
"path": "components/icons/Plus.js"
},
{
"implements": "part:@sanity/base/split-horizontal-icon",
"path": "components/icons/SplitHorizontal.js"
},
{
"implements": "part:@sanity/base/plus-circle-icon",
"path": "components/icons/PlusCircle.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/@sanity/base/src/components/icons/CloseIcon.js
Expand Up @@ -11,7 +11,7 @@ const CloseIcon = () => (
width="1em"
height="1em"
>
<path d="M19 6L6 19M6 6L19 19" stroke="currentColor" style={strokeStyle} />
<path d="M18 7L7 18M7 7L18 18" stroke="currentColor" style={strokeStyle} />
</svg>
)

Expand Down
19 changes: 19 additions & 0 deletions packages/@sanity/base/src/components/icons/SplitHorizontal.js
@@ -0,0 +1,19 @@
import React from 'react'

const strokeStyle = {vectorEffect: 'non-scaling-stroke'}

const SplitHorizontalIcon = () => (
<svg
viewBox="0 0 25 25"
fill="none"
xmlns="http://www.w3.org/2000/svg"
preserveAspectRatio="xMidYMid"
width="1em"
height="1em"
>
<rect x="3.5" y="4.5" width="18" height="16" stroke="currentColor" style={strokeStyle} />
<line x1="12.5" y1="5" x2="12.5" y2="20" stroke="currentColor" style={strokeStyle} />
</svg>
)

export default SplitHorizontalIcon

0 comments on commit 1ac7f36

Please sign in to comment.