@primer/styled-octicons 0.0.0-e76164b → 0.0.0-e79b4ff
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/dist/icons/AlertIcon.js +6 -3
- package/dist/icons/ArchiveIcon.js +6 -3
- package/dist/icons/ArrowBothIcon.js +6 -3
- package/dist/icons/ArrowDownIcon.js +6 -3
- package/dist/icons/ArrowDownLeftIcon.js +6 -3
- package/dist/icons/ArrowDownRightIcon.js +6 -3
- package/dist/icons/ArrowLeftIcon.js +6 -3
- package/dist/icons/ArrowRightIcon.js +6 -3
- package/dist/icons/ArrowSwitchIcon.js +6 -3
- package/dist/icons/ArrowUpIcon.js +7 -4
- package/dist/icons/ArrowUpLeftIcon.js +6 -3
- package/dist/icons/ArrowUpRightIcon.js +6 -3
- package/dist/icons/BeakerIcon.js +6 -3
- package/dist/icons/BellFillIcon.js +7 -4
- package/dist/icons/BellIcon.js +6 -3
- package/dist/icons/BellSlashIcon.js +6 -3
- package/dist/icons/BlockedIcon.js +87 -0
- package/dist/icons/BoldIcon.js +6 -3
- package/dist/icons/BookIcon.js +6 -3
- package/dist/icons/BookmarkFillIcon.js +6 -3
- package/dist/icons/BookmarkIcon.js +6 -3
- package/dist/icons/BookmarkSlashFillIcon.js +6 -3
- package/dist/icons/BookmarkSlashIcon.js +6 -3
- package/dist/icons/BriefcaseIcon.js +6 -3
- package/dist/icons/BroadcastIcon.js +6 -3
- package/dist/icons/BrowserIcon.js +7 -4
- package/dist/icons/BugIcon.js +7 -4
- package/dist/icons/CalendarIcon.js +6 -3
- package/dist/icons/CheckCircleFillIcon.js +6 -3
- package/dist/icons/CheckCircleIcon.js +6 -3
- package/dist/icons/CheckIcon.js +6 -3
- package/dist/icons/ChecklistIcon.js +6 -3
- package/dist/icons/ChevronDownIcon.js +6 -3
- package/dist/icons/ChevronLeftIcon.js +6 -3
- package/dist/icons/ChevronRightIcon.js +6 -3
- package/dist/icons/ChevronUpIcon.js +6 -3
- package/dist/icons/CircleIcon.js +7 -4
- package/dist/icons/CircleSlashIcon.js +6 -3
- package/dist/icons/ClockIcon.js +6 -3
- package/dist/icons/CodeIcon.js +6 -3
- package/dist/icons/CodeReviewIcon.js +6 -3
- package/dist/icons/CodeSquareIcon.js +6 -3
- package/dist/icons/CodescanCheckmarkIcon.js +87 -0
- package/dist/icons/CodescanIcon.js +87 -0
- package/dist/icons/CodespacesIcon.js +87 -0
- package/dist/icons/ColumnsIcon.js +87 -0
- package/dist/icons/CommentDiscussionIcon.js +6 -3
- package/dist/icons/CommentIcon.js +6 -3
- package/dist/icons/CommitIcon.js +6 -3
- package/dist/icons/ContainerIcon.js +6 -3
- package/dist/icons/CopyIcon.js +7 -4
- package/dist/icons/CpuIcon.js +6 -3
- package/dist/icons/CreditCardIcon.js +6 -3
- package/dist/icons/CrossReferenceIcon.js +6 -3
- package/dist/icons/DashIcon.js +6 -3
- package/dist/icons/DatabaseIcon.js +6 -3
- package/dist/icons/DependabotIcon.js +87 -0
- package/dist/icons/DesktopDownloadIcon.js +7 -4
- package/dist/icons/DeviceCameraIcon.js +6 -3
- package/dist/icons/DeviceCameraVideoIcon.js +6 -3
- package/dist/icons/DeviceDesktopIcon.js +6 -3
- package/dist/icons/DeviceMobileIcon.js +6 -3
- package/dist/icons/{GitForkIcon.js → DiamondIcon.js} +11 -8
- package/dist/icons/DiffAddedIcon.js +6 -3
- package/dist/icons/DiffIcon.js +6 -3
- package/dist/icons/DiffIgnoredIcon.js +6 -3
- package/dist/icons/DiffModifiedIcon.js +6 -3
- package/dist/icons/DiffRemovedIcon.js +6 -3
- package/dist/icons/DiffRenamedIcon.js +6 -3
- package/dist/icons/DotFillIcon.js +6 -3
- package/dist/icons/DotIcon.js +6 -3
- package/dist/icons/DownloadIcon.js +6 -3
- package/dist/icons/DuplicateIcon.js +87 -0
- package/dist/icons/EllipsisIcon.js +6 -3
- package/dist/icons/EyeClosedIcon.js +6 -3
- package/dist/icons/EyeIcon.js +6 -3
- package/dist/icons/FileBadgeIcon.js +6 -3
- package/dist/icons/FileBinaryIcon.js +6 -3
- package/dist/icons/FileCodeIcon.js +6 -3
- package/dist/icons/FileDiffIcon.js +6 -3
- package/dist/icons/FileDirectoryFillIcon.js +6 -3
- package/dist/icons/FileDirectoryIcon.js +6 -3
- package/dist/icons/FileIcon.js +6 -3
- package/dist/icons/FileMediaIcon.js +6 -3
- package/dist/icons/FileSubmoduleIcon.js +6 -3
- package/dist/icons/FileSymlinkFileIcon.js +6 -3
- package/dist/icons/FileZipIcon.js +6 -3
- package/dist/icons/FilterIcon.js +6 -3
- package/dist/icons/FlameIcon.js +6 -3
- package/dist/icons/FoldDownIcon.js +7 -4
- package/dist/icons/FoldIcon.js +7 -4
- package/dist/icons/FoldUpIcon.js +7 -4
- package/dist/icons/GearIcon.js +6 -3
- package/dist/icons/GiftIcon.js +6 -3
- package/dist/icons/GitBranchIcon.js +6 -3
- package/dist/icons/GitCommitIcon.js +6 -3
- package/dist/icons/GitCompareIcon.js +6 -3
- package/dist/icons/GitMergeIcon.js +6 -3
- package/dist/icons/GitPullRequestClosedIcon.js +87 -0
- package/dist/icons/GitPullRequestDraftIcon.js +87 -0
- package/dist/icons/GitPullRequestIcon.js +6 -3
- package/dist/icons/GlobeIcon.js +6 -3
- package/dist/icons/GrabberIcon.js +6 -3
- package/dist/icons/GraphIcon.js +6 -3
- package/dist/icons/HashIcon.js +87 -0
- package/dist/icons/HeadingIcon.js +6 -3
- package/dist/icons/HeartFillIcon.js +6 -3
- package/dist/icons/HeartIcon.js +6 -3
- package/dist/icons/HistoryIcon.js +6 -3
- package/dist/icons/HomeFillIcon.js +6 -3
- package/dist/icons/HomeIcon.js +6 -3
- package/dist/icons/HorizontalRuleIcon.js +6 -3
- package/dist/icons/HourglassIcon.js +6 -3
- package/dist/icons/HubotIcon.js +6 -3
- package/dist/icons/ImageIcon.js +6 -3
- package/dist/icons/InboxIcon.js +6 -3
- package/dist/icons/InfinityIcon.js +6 -3
- package/dist/icons/InfoIcon.js +6 -3
- package/dist/icons/IssueClosedIcon.js +7 -4
- package/dist/icons/IssueDraftIcon.js +87 -0
- package/dist/icons/IssueOpenedIcon.js +7 -4
- package/dist/icons/IssueReopenedIcon.js +7 -4
- package/dist/icons/ItalicIcon.js +6 -3
- package/dist/icons/KebabHorizontalIcon.js +6 -3
- package/dist/icons/{TrashcanIcon.js → KeyAsteriskIcon.js} +11 -8
- package/dist/icons/KeyIcon.js +6 -3
- package/dist/icons/LawIcon.js +6 -3
- package/dist/icons/LightBulbIcon.js +6 -3
- package/dist/icons/LinkExternalIcon.js +6 -3
- package/dist/icons/LinkIcon.js +6 -3
- package/dist/icons/ListOrderedIcon.js +6 -3
- package/dist/icons/ListUnorderedIcon.js +6 -3
- package/dist/icons/LocationIcon.js +6 -3
- package/dist/icons/LockIcon.js +6 -3
- package/dist/icons/LogoGistIcon.js +6 -3
- package/dist/icons/LogoGithubIcon.js +6 -3
- package/dist/icons/MailIcon.js +6 -3
- package/dist/icons/MarkGithubIcon.js +6 -3
- package/dist/icons/MarkdownIcon.js +6 -3
- package/dist/icons/MegaphoneIcon.js +7 -4
- package/dist/icons/MentionIcon.js +6 -3
- package/dist/icons/MeterIcon.js +6 -3
- package/dist/icons/MilestoneIcon.js +6 -3
- package/dist/icons/MirrorIcon.js +6 -3
- package/dist/icons/MoonIcon.js +6 -3
- package/dist/icons/MortarBoardIcon.js +6 -3
- package/dist/icons/MultiSelectIcon.js +87 -0
- package/dist/icons/MuteIcon.js +6 -3
- package/dist/icons/NoEntryIcon.js +6 -3
- package/dist/icons/NorthStarIcon.js +6 -3
- package/dist/icons/NoteIcon.js +6 -3
- package/dist/icons/NumberIcon.js +87 -0
- package/dist/icons/OrganizationIcon.js +6 -3
- package/dist/icons/PackageDependenciesIcon.js +6 -3
- package/dist/icons/PackageDependentsIcon.js +6 -3
- package/dist/icons/PackageIcon.js +6 -3
- package/dist/icons/PaintbrushIcon.js +6 -3
- package/dist/icons/PaperAirplaneIcon.js +6 -3
- package/dist/icons/{ClippyIcon.js → PasteIcon.js} +10 -7
- package/dist/icons/PencilIcon.js +6 -3
- package/dist/icons/PeopleIcon.js +6 -3
- package/dist/icons/PersonAddIcon.js +87 -0
- package/dist/icons/{InsightsIcon.js → PersonFillIcon.js} +11 -8
- package/dist/icons/PersonIcon.js +6 -3
- package/dist/icons/PinIcon.js +6 -3
- package/dist/icons/PlayIcon.js +6 -3
- package/dist/icons/PlugIcon.js +6 -3
- package/dist/icons/PlusCircleIcon.js +6 -3
- package/dist/icons/PlusIcon.js +6 -3
- package/dist/icons/ProjectIcon.js +6 -3
- package/dist/icons/PulseIcon.js +6 -3
- package/dist/icons/QuestionIcon.js +6 -3
- package/dist/icons/QuoteIcon.js +6 -3
- package/dist/icons/ReplyIcon.js +6 -3
- package/dist/icons/RepoCloneIcon.js +6 -3
- package/dist/icons/RepoForkedIcon.js +7 -4
- package/dist/icons/RepoIcon.js +6 -3
- package/dist/icons/RepoPullIcon.js +6 -3
- package/dist/icons/RepoPushIcon.js +6 -3
- package/dist/icons/RepoTemplateIcon.js +6 -3
- package/dist/icons/ReportIcon.js +6 -3
- package/dist/icons/RocketIcon.js +6 -3
- package/dist/icons/RowsIcon.js +87 -0
- package/dist/icons/RssIcon.js +6 -3
- package/dist/icons/RubyIcon.js +6 -3
- package/dist/icons/ScreenFullIcon.js +6 -3
- package/dist/icons/ScreenNormalIcon.js +6 -3
- package/dist/icons/SearchIcon.js +6 -3
- package/dist/icons/ServerIcon.js +6 -3
- package/dist/icons/ShareAndroidIcon.js +6 -3
- package/dist/icons/ShareIcon.js +6 -3
- package/dist/icons/ShieldCheckIcon.js +6 -3
- package/dist/icons/ShieldIcon.js +6 -3
- package/dist/icons/ShieldLockIcon.js +6 -3
- package/dist/icons/ShieldXIcon.js +6 -3
- package/dist/icons/SidebarCollapseIcon.js +87 -0
- package/dist/icons/SidebarExpandIcon.js +87 -0
- package/dist/icons/SignInIcon.js +6 -3
- package/dist/icons/SignOutIcon.js +6 -3
- package/dist/icons/SingleSelectIcon.js +87 -0
- package/dist/icons/SkipIcon.js +6 -3
- package/dist/icons/SmileyIcon.js +6 -3
- package/dist/icons/SortAscIcon.js +87 -0
- package/dist/icons/SortDescIcon.js +87 -0
- package/dist/icons/SquareFillIcon.js +6 -3
- package/dist/icons/SquareIcon.js +6 -3
- package/dist/icons/SquirrelIcon.js +6 -3
- package/dist/icons/StackIcon.js +87 -0
- package/dist/icons/StarFillIcon.js +6 -3
- package/dist/icons/StarIcon.js +6 -3
- package/dist/icons/StopIcon.js +6 -3
- package/dist/icons/StopwatchIcon.js +6 -3
- package/dist/icons/StrikethroughIcon.js +6 -3
- package/dist/icons/SunIcon.js +6 -3
- package/dist/icons/SyncIcon.js +6 -3
- package/dist/icons/TabIcon.js +6 -3
- package/dist/icons/TableIcon.js +87 -0
- package/dist/icons/TagIcon.js +6 -3
- package/dist/icons/TasklistIcon.js +6 -3
- package/dist/icons/TelescopeFillIcon.js +87 -0
- package/dist/icons/TelescopeIcon.js +6 -3
- package/dist/icons/TerminalIcon.js +6 -3
- package/dist/icons/ThreeBarsIcon.js +6 -3
- package/dist/icons/ThumbsdownIcon.js +6 -3
- package/dist/icons/ThumbsupIcon.js +6 -3
- package/dist/icons/ToolsIcon.js +6 -3
- package/dist/icons/TrashIcon.js +7 -4
- package/dist/icons/TriangleDownIcon.js +6 -3
- package/dist/icons/TriangleLeftIcon.js +6 -3
- package/dist/icons/TriangleRightIcon.js +6 -3
- package/dist/icons/TriangleUpIcon.js +6 -3
- package/dist/icons/TypographyIcon.js +6 -3
- package/dist/icons/UnfoldIcon.js +7 -4
- package/dist/icons/UnlockIcon.js +6 -3
- package/dist/icons/UnmuteIcon.js +6 -3
- package/dist/icons/UnverifiedIcon.js +6 -3
- package/dist/icons/UploadIcon.js +6 -3
- package/dist/icons/VerifiedIcon.js +6 -3
- package/dist/icons/VersionsIcon.js +6 -3
- package/dist/icons/VideoIcon.js +87 -0
- package/dist/icons/WorkflowIcon.js +6 -3
- package/dist/icons/XCircleFillIcon.js +6 -3
- package/dist/icons/XCircleIcon.js +6 -3
- package/dist/icons/XIcon.js +6 -3
- package/dist/icons/ZapIcon.js +6 -3
- package/dist/index.d.ts +28 -5
- package/dist/index.esm.js +28 -5
- package/dist/index.umd.js +668 -297
- package/package.json +7 -5
- package/dist/icons/OctofaceIcon.js +0 -84
package/dist/icons/MailIcon.js
CHANGED
|
@@ -12,6 +12,8 @@ var sizeMap = {
|
|
|
12
12
|
function getSvgProps(_ref) {
|
|
13
13
|
var ariaLabel = _ref['aria-label'],
|
|
14
14
|
className = _ref.className,
|
|
15
|
+
_ref$fill = _ref.fill,
|
|
16
|
+
fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
|
|
15
17
|
size = _ref.size,
|
|
16
18
|
verticalAlign = _ref.verticalAlign,
|
|
17
19
|
svgDataByHeight = _ref.svgDataByHeight;
|
|
@@ -30,11 +32,12 @@ function getSvgProps(_ref) {
|
|
|
30
32
|
viewBox: '0 0 ' + naturalWidth + ' ' + naturalHeight,
|
|
31
33
|
width: width,
|
|
32
34
|
height: height,
|
|
33
|
-
fill:
|
|
35
|
+
fill: fill,
|
|
34
36
|
style: {
|
|
35
37
|
display: 'inline-block',
|
|
36
38
|
userSelect: 'none',
|
|
37
|
-
verticalAlign: verticalAlign
|
|
39
|
+
verticalAlign: verticalAlign,
|
|
40
|
+
overflow: 'visible'
|
|
38
41
|
},
|
|
39
42
|
dangerouslySetInnerHTML: { __html: path }
|
|
40
43
|
};
|
|
@@ -64,7 +67,7 @@ function MailIcon(props) {
|
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
MailIcon.defaultProps = {
|
|
67
|
-
className: 'octicon',
|
|
70
|
+
className: 'octicon octicon-mail',
|
|
68
71
|
size: 16,
|
|
69
72
|
verticalAlign: 'text-bottom'
|
|
70
73
|
};
|
|
@@ -12,6 +12,8 @@ var sizeMap = {
|
|
|
12
12
|
function getSvgProps(_ref) {
|
|
13
13
|
var ariaLabel = _ref['aria-label'],
|
|
14
14
|
className = _ref.className,
|
|
15
|
+
_ref$fill = _ref.fill,
|
|
16
|
+
fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
|
|
15
17
|
size = _ref.size,
|
|
16
18
|
verticalAlign = _ref.verticalAlign,
|
|
17
19
|
svgDataByHeight = _ref.svgDataByHeight;
|
|
@@ -30,11 +32,12 @@ function getSvgProps(_ref) {
|
|
|
30
32
|
viewBox: '0 0 ' + naturalWidth + ' ' + naturalHeight,
|
|
31
33
|
width: width,
|
|
32
34
|
height: height,
|
|
33
|
-
fill:
|
|
35
|
+
fill: fill,
|
|
34
36
|
style: {
|
|
35
37
|
display: 'inline-block',
|
|
36
38
|
userSelect: 'none',
|
|
37
|
-
verticalAlign: verticalAlign
|
|
39
|
+
verticalAlign: verticalAlign,
|
|
40
|
+
overflow: 'visible'
|
|
38
41
|
},
|
|
39
42
|
dangerouslySetInnerHTML: { __html: path }
|
|
40
43
|
};
|
|
@@ -64,7 +67,7 @@ function MarkGithubIcon(props) {
|
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
MarkGithubIcon.defaultProps = {
|
|
67
|
-
className: 'octicon',
|
|
70
|
+
className: 'octicon octicon-mark-github',
|
|
68
71
|
size: 16,
|
|
69
72
|
verticalAlign: 'text-bottom'
|
|
70
73
|
};
|
|
@@ -12,6 +12,8 @@ var sizeMap = {
|
|
|
12
12
|
function getSvgProps(_ref) {
|
|
13
13
|
var ariaLabel = _ref['aria-label'],
|
|
14
14
|
className = _ref.className,
|
|
15
|
+
_ref$fill = _ref.fill,
|
|
16
|
+
fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
|
|
15
17
|
size = _ref.size,
|
|
16
18
|
verticalAlign = _ref.verticalAlign,
|
|
17
19
|
svgDataByHeight = _ref.svgDataByHeight;
|
|
@@ -30,11 +32,12 @@ function getSvgProps(_ref) {
|
|
|
30
32
|
viewBox: '0 0 ' + naturalWidth + ' ' + naturalHeight,
|
|
31
33
|
width: width,
|
|
32
34
|
height: height,
|
|
33
|
-
fill:
|
|
35
|
+
fill: fill,
|
|
34
36
|
style: {
|
|
35
37
|
display: 'inline-block',
|
|
36
38
|
userSelect: 'none',
|
|
37
|
-
verticalAlign: verticalAlign
|
|
39
|
+
verticalAlign: verticalAlign,
|
|
40
|
+
overflow: 'visible'
|
|
38
41
|
},
|
|
39
42
|
dangerouslySetInnerHTML: { __html: path }
|
|
40
43
|
};
|
|
@@ -64,7 +67,7 @@ function MarkdownIcon(props) {
|
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
MarkdownIcon.defaultProps = {
|
|
67
|
-
className: 'octicon',
|
|
70
|
+
className: 'octicon octicon-markdown',
|
|
68
71
|
size: 16,
|
|
69
72
|
verticalAlign: 'text-bottom'
|
|
70
73
|
};
|
|
@@ -12,6 +12,8 @@ var sizeMap = {
|
|
|
12
12
|
function getSvgProps(_ref) {
|
|
13
13
|
var ariaLabel = _ref['aria-label'],
|
|
14
14
|
className = _ref.className,
|
|
15
|
+
_ref$fill = _ref.fill,
|
|
16
|
+
fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
|
|
15
17
|
size = _ref.size,
|
|
16
18
|
verticalAlign = _ref.verticalAlign,
|
|
17
19
|
svgDataByHeight = _ref.svgDataByHeight;
|
|
@@ -30,11 +32,12 @@ function getSvgProps(_ref) {
|
|
|
30
32
|
viewBox: '0 0 ' + naturalWidth + ' ' + naturalHeight,
|
|
31
33
|
width: width,
|
|
32
34
|
height: height,
|
|
33
|
-
fill:
|
|
35
|
+
fill: fill,
|
|
34
36
|
style: {
|
|
35
37
|
display: 'inline-block',
|
|
36
38
|
userSelect: 'none',
|
|
37
|
-
verticalAlign: verticalAlign
|
|
39
|
+
verticalAlign: verticalAlign,
|
|
40
|
+
overflow: 'visible'
|
|
38
41
|
},
|
|
39
42
|
dangerouslySetInnerHTML: { __html: path }
|
|
40
43
|
};
|
|
@@ -59,12 +62,12 @@ var _extends = Object.assign || function (target) {
|
|
|
59
62
|
};
|
|
60
63
|
|
|
61
64
|
function MegaphoneIcon(props) {
|
|
62
|
-
var svgDataByHeight = { "16": { "width": 16, "path": "<
|
|
65
|
+
var svgDataByHeight = { "16": { "width": 16, "path": "<g fill-rule=\"evenodd\"><path d=\"M3.25 9a.75.75 0 01.75.75c0 2.142.456 3.828.733 4.653a.121.121 0 00.05.064.207.207 0 00.117.033h1.31c.085 0 .18-.042.258-.152a.448.448 0 00.075-.366A16.74 16.74 0 016 9.75a.75.75 0 011.5 0c0 1.588.25 2.926.494 3.85.293 1.113-.504 2.4-1.783 2.4H4.9c-.686 0-1.35-.41-1.589-1.12A16.42 16.42 0 012.5 9.75.75.75 0 013.25 9z\"></path><path d=\"M0 6a4 4 0 014-4h2.75a.75.75 0 01.75.75v6.5a.75.75 0 01-.75.75H4a4 4 0 01-4-4zm4-2.5a2.5 2.5 0 000 5h2v-5H4z\"></path><path d=\"M15.59.082A.75.75 0 0116 .75v10.5a.75.75 0 01-1.189.608l-.002-.001h.001l-.014-.01a5.829 5.829 0 00-.422-.25 10.58 10.58 0 00-1.469-.64C11.576 10.484 9.536 10 6.75 10a.75.75 0 110-1.5c2.964 0 5.174.516 6.658 1.043.423.151.787.302 1.092.443V2.014c-.305.14-.669.292-1.092.443C11.924 2.984 9.713 3.5 6.75 3.5a.75.75 0 110-1.5c2.786 0 4.826-.484 6.155-.957.665-.236 1.154-.47 1.47-.64a5.82 5.82 0 00.421-.25l.014-.01a.75.75 0 01.78-.061zm-.78.06zm.44 11.108l-.44.607.44-.607z\"></path></g>" }, "24": { "width": 24, "path": "<path fill-rule=\"evenodd\" d=\"M22 1.75a.75.75 0 00-1.161-.627c-.047.03-.094.057-.142.085a9.15 9.15 0 01-.49.262c-.441.22-1.11.519-2.002.82-1.78.6-4.45 1.21-7.955 1.21H6.5A5.5 5.5 0 005 14.293v.457c0 3.061.684 5.505 1.061 6.621.24.709.904 1.129 1.6 1.129h2.013c1.294 0 2.1-1.322 1.732-2.453-.412-1.268-.906-3.268-.906-5.547 0-.03-.002-.06-.005-.088 3.382.028 5.965.644 7.703 1.251.89.312 1.559.62 2 .849.084.043.171.096.261.15.357.214.757.455 1.142.25A.75.75 0 0022 16.25V1.75zM10.5 12.912c3.564.029 6.313.678 8.193 1.335.737.258 1.34.517 1.807.74V2.993c-.467.216-1.073.467-1.815.718-1.878.634-4.624 1.26-8.185 1.288v7.913zm-4 1.838v-.25H9c0 2.486.537 4.648.98 6.01a.398.398 0 01-.057.343c-.07.104-.162.147-.249.147H7.661c-.105 0-.161-.058-.179-.109-.344-1.018-.982-3.294-.982-6.141zM6.5 5H9v8H6.5a4 4 0 010-8z\"></path>" } };
|
|
63
66
|
return React.createElement('svg', getSvgProps(_extends({}, props, { svgDataByHeight: svgDataByHeight })));
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
MegaphoneIcon.defaultProps = {
|
|
67
|
-
className: 'octicon',
|
|
70
|
+
className: 'octicon octicon-megaphone',
|
|
68
71
|
size: 16,
|
|
69
72
|
verticalAlign: 'text-bottom'
|
|
70
73
|
};
|
|
@@ -12,6 +12,8 @@ var sizeMap = {
|
|
|
12
12
|
function getSvgProps(_ref) {
|
|
13
13
|
var ariaLabel = _ref['aria-label'],
|
|
14
14
|
className = _ref.className,
|
|
15
|
+
_ref$fill = _ref.fill,
|
|
16
|
+
fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
|
|
15
17
|
size = _ref.size,
|
|
16
18
|
verticalAlign = _ref.verticalAlign,
|
|
17
19
|
svgDataByHeight = _ref.svgDataByHeight;
|
|
@@ -30,11 +32,12 @@ function getSvgProps(_ref) {
|
|
|
30
32
|
viewBox: '0 0 ' + naturalWidth + ' ' + naturalHeight,
|
|
31
33
|
width: width,
|
|
32
34
|
height: height,
|
|
33
|
-
fill:
|
|
35
|
+
fill: fill,
|
|
34
36
|
style: {
|
|
35
37
|
display: 'inline-block',
|
|
36
38
|
userSelect: 'none',
|
|
37
|
-
verticalAlign: verticalAlign
|
|
39
|
+
verticalAlign: verticalAlign,
|
|
40
|
+
overflow: 'visible'
|
|
38
41
|
},
|
|
39
42
|
dangerouslySetInnerHTML: { __html: path }
|
|
40
43
|
};
|
|
@@ -64,7 +67,7 @@ function MentionIcon(props) {
|
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
MentionIcon.defaultProps = {
|
|
67
|
-
className: 'octicon',
|
|
70
|
+
className: 'octicon octicon-mention',
|
|
68
71
|
size: 16,
|
|
69
72
|
verticalAlign: 'text-bottom'
|
|
70
73
|
};
|
package/dist/icons/MeterIcon.js
CHANGED
|
@@ -12,6 +12,8 @@ var sizeMap = {
|
|
|
12
12
|
function getSvgProps(_ref) {
|
|
13
13
|
var ariaLabel = _ref['aria-label'],
|
|
14
14
|
className = _ref.className,
|
|
15
|
+
_ref$fill = _ref.fill,
|
|
16
|
+
fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
|
|
15
17
|
size = _ref.size,
|
|
16
18
|
verticalAlign = _ref.verticalAlign,
|
|
17
19
|
svgDataByHeight = _ref.svgDataByHeight;
|
|
@@ -30,11 +32,12 @@ function getSvgProps(_ref) {
|
|
|
30
32
|
viewBox: '0 0 ' + naturalWidth + ' ' + naturalHeight,
|
|
31
33
|
width: width,
|
|
32
34
|
height: height,
|
|
33
|
-
fill:
|
|
35
|
+
fill: fill,
|
|
34
36
|
style: {
|
|
35
37
|
display: 'inline-block',
|
|
36
38
|
userSelect: 'none',
|
|
37
|
-
verticalAlign: verticalAlign
|
|
39
|
+
verticalAlign: verticalAlign,
|
|
40
|
+
overflow: 'visible'
|
|
38
41
|
},
|
|
39
42
|
dangerouslySetInnerHTML: { __html: path }
|
|
40
43
|
};
|
|
@@ -64,7 +67,7 @@ function MeterIcon(props) {
|
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
MeterIcon.defaultProps = {
|
|
67
|
-
className: 'octicon',
|
|
70
|
+
className: 'octicon octicon-meter',
|
|
68
71
|
size: 16,
|
|
69
72
|
verticalAlign: 'text-bottom'
|
|
70
73
|
};
|
|
@@ -12,6 +12,8 @@ var sizeMap = {
|
|
|
12
12
|
function getSvgProps(_ref) {
|
|
13
13
|
var ariaLabel = _ref['aria-label'],
|
|
14
14
|
className = _ref.className,
|
|
15
|
+
_ref$fill = _ref.fill,
|
|
16
|
+
fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
|
|
15
17
|
size = _ref.size,
|
|
16
18
|
verticalAlign = _ref.verticalAlign,
|
|
17
19
|
svgDataByHeight = _ref.svgDataByHeight;
|
|
@@ -30,11 +32,12 @@ function getSvgProps(_ref) {
|
|
|
30
32
|
viewBox: '0 0 ' + naturalWidth + ' ' + naturalHeight,
|
|
31
33
|
width: width,
|
|
32
34
|
height: height,
|
|
33
|
-
fill:
|
|
35
|
+
fill: fill,
|
|
34
36
|
style: {
|
|
35
37
|
display: 'inline-block',
|
|
36
38
|
userSelect: 'none',
|
|
37
|
-
verticalAlign: verticalAlign
|
|
39
|
+
verticalAlign: verticalAlign,
|
|
40
|
+
overflow: 'visible'
|
|
38
41
|
},
|
|
39
42
|
dangerouslySetInnerHTML: { __html: path }
|
|
40
43
|
};
|
|
@@ -64,7 +67,7 @@ function MilestoneIcon(props) {
|
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
MilestoneIcon.defaultProps = {
|
|
67
|
-
className: 'octicon',
|
|
70
|
+
className: 'octicon octicon-milestone',
|
|
68
71
|
size: 16,
|
|
69
72
|
verticalAlign: 'text-bottom'
|
|
70
73
|
};
|
package/dist/icons/MirrorIcon.js
CHANGED
|
@@ -12,6 +12,8 @@ var sizeMap = {
|
|
|
12
12
|
function getSvgProps(_ref) {
|
|
13
13
|
var ariaLabel = _ref['aria-label'],
|
|
14
14
|
className = _ref.className,
|
|
15
|
+
_ref$fill = _ref.fill,
|
|
16
|
+
fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
|
|
15
17
|
size = _ref.size,
|
|
16
18
|
verticalAlign = _ref.verticalAlign,
|
|
17
19
|
svgDataByHeight = _ref.svgDataByHeight;
|
|
@@ -30,11 +32,12 @@ function getSvgProps(_ref) {
|
|
|
30
32
|
viewBox: '0 0 ' + naturalWidth + ' ' + naturalHeight,
|
|
31
33
|
width: width,
|
|
32
34
|
height: height,
|
|
33
|
-
fill:
|
|
35
|
+
fill: fill,
|
|
34
36
|
style: {
|
|
35
37
|
display: 'inline-block',
|
|
36
38
|
userSelect: 'none',
|
|
37
|
-
verticalAlign: verticalAlign
|
|
39
|
+
verticalAlign: verticalAlign,
|
|
40
|
+
overflow: 'visible'
|
|
38
41
|
},
|
|
39
42
|
dangerouslySetInnerHTML: { __html: path }
|
|
40
43
|
};
|
|
@@ -64,7 +67,7 @@ function MirrorIcon(props) {
|
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
MirrorIcon.defaultProps = {
|
|
67
|
-
className: 'octicon',
|
|
70
|
+
className: 'octicon octicon-mirror',
|
|
68
71
|
size: 16,
|
|
69
72
|
verticalAlign: 'text-bottom'
|
|
70
73
|
};
|
package/dist/icons/MoonIcon.js
CHANGED
|
@@ -12,6 +12,8 @@ var sizeMap = {
|
|
|
12
12
|
function getSvgProps(_ref) {
|
|
13
13
|
var ariaLabel = _ref['aria-label'],
|
|
14
14
|
className = _ref.className,
|
|
15
|
+
_ref$fill = _ref.fill,
|
|
16
|
+
fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
|
|
15
17
|
size = _ref.size,
|
|
16
18
|
verticalAlign = _ref.verticalAlign,
|
|
17
19
|
svgDataByHeight = _ref.svgDataByHeight;
|
|
@@ -30,11 +32,12 @@ function getSvgProps(_ref) {
|
|
|
30
32
|
viewBox: '0 0 ' + naturalWidth + ' ' + naturalHeight,
|
|
31
33
|
width: width,
|
|
32
34
|
height: height,
|
|
33
|
-
fill:
|
|
35
|
+
fill: fill,
|
|
34
36
|
style: {
|
|
35
37
|
display: 'inline-block',
|
|
36
38
|
userSelect: 'none',
|
|
37
|
-
verticalAlign: verticalAlign
|
|
39
|
+
verticalAlign: verticalAlign,
|
|
40
|
+
overflow: 'visible'
|
|
38
41
|
},
|
|
39
42
|
dangerouslySetInnerHTML: { __html: path }
|
|
40
43
|
};
|
|
@@ -64,7 +67,7 @@ function MoonIcon(props) {
|
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
MoonIcon.defaultProps = {
|
|
67
|
-
className: 'octicon',
|
|
70
|
+
className: 'octicon octicon-moon',
|
|
68
71
|
size: 16,
|
|
69
72
|
verticalAlign: 'text-bottom'
|
|
70
73
|
};
|
|
@@ -12,6 +12,8 @@ var sizeMap = {
|
|
|
12
12
|
function getSvgProps(_ref) {
|
|
13
13
|
var ariaLabel = _ref['aria-label'],
|
|
14
14
|
className = _ref.className,
|
|
15
|
+
_ref$fill = _ref.fill,
|
|
16
|
+
fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
|
|
15
17
|
size = _ref.size,
|
|
16
18
|
verticalAlign = _ref.verticalAlign,
|
|
17
19
|
svgDataByHeight = _ref.svgDataByHeight;
|
|
@@ -30,11 +32,12 @@ function getSvgProps(_ref) {
|
|
|
30
32
|
viewBox: '0 0 ' + naturalWidth + ' ' + naturalHeight,
|
|
31
33
|
width: width,
|
|
32
34
|
height: height,
|
|
33
|
-
fill:
|
|
35
|
+
fill: fill,
|
|
34
36
|
style: {
|
|
35
37
|
display: 'inline-block',
|
|
36
38
|
userSelect: 'none',
|
|
37
|
-
verticalAlign: verticalAlign
|
|
39
|
+
verticalAlign: verticalAlign,
|
|
40
|
+
overflow: 'visible'
|
|
38
41
|
},
|
|
39
42
|
dangerouslySetInnerHTML: { __html: path }
|
|
40
43
|
};
|
|
@@ -64,7 +67,7 @@ function MortarBoardIcon(props) {
|
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
MortarBoardIcon.defaultProps = {
|
|
67
|
-
className: 'octicon',
|
|
70
|
+
className: 'octicon octicon-mortar-board',
|
|
68
71
|
size: 16,
|
|
69
72
|
verticalAlign: 'text-bottom'
|
|
70
73
|
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { compose, space, color } from 'styled-system';
|
|
3
|
+
import css from '@styled-system/css';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
|
|
6
|
+
var sizeMap = {
|
|
7
|
+
small: 16,
|
|
8
|
+
medium: 32,
|
|
9
|
+
large: 64
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
function getSvgProps(_ref) {
|
|
13
|
+
var ariaLabel = _ref['aria-label'],
|
|
14
|
+
className = _ref.className,
|
|
15
|
+
_ref$fill = _ref.fill,
|
|
16
|
+
fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
|
|
17
|
+
size = _ref.size,
|
|
18
|
+
verticalAlign = _ref.verticalAlign,
|
|
19
|
+
svgDataByHeight = _ref.svgDataByHeight;
|
|
20
|
+
|
|
21
|
+
var height = sizeMap[size] || size;
|
|
22
|
+
var naturalHeight = closestNaturalHeight(Object.keys(svgDataByHeight), height);
|
|
23
|
+
var naturalWidth = svgDataByHeight[naturalHeight].width;
|
|
24
|
+
var width = height * (naturalWidth / naturalHeight);
|
|
25
|
+
var path = svgDataByHeight[naturalHeight].path;
|
|
26
|
+
|
|
27
|
+
return {
|
|
28
|
+
'aria-hidden': ariaLabel ? 'false' : 'true',
|
|
29
|
+
'aria-label': ariaLabel,
|
|
30
|
+
role: 'img',
|
|
31
|
+
className: className,
|
|
32
|
+
viewBox: '0 0 ' + naturalWidth + ' ' + naturalHeight,
|
|
33
|
+
width: width,
|
|
34
|
+
height: height,
|
|
35
|
+
fill: fill,
|
|
36
|
+
style: {
|
|
37
|
+
display: 'inline-block',
|
|
38
|
+
userSelect: 'none',
|
|
39
|
+
verticalAlign: verticalAlign,
|
|
40
|
+
overflow: 'visible'
|
|
41
|
+
},
|
|
42
|
+
dangerouslySetInnerHTML: { __html: path }
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function closestNaturalHeight(naturalHeights, height) {
|
|
47
|
+
return naturalHeights.map(function (naturalHeight) {
|
|
48
|
+
return parseInt(naturalHeight, 10);
|
|
49
|
+
}).reduce(function (acc, naturalHeight) {
|
|
50
|
+
return naturalHeight <= height ? naturalHeight : acc;
|
|
51
|
+
}, naturalHeights[0]);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
var _extends = Object.assign || function (target) {
|
|
55
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
56
|
+
var source = arguments[i];for (var key in source) {
|
|
57
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
58
|
+
target[key] = source[key];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}return target;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
function MultiSelectIcon(props) {
|
|
65
|
+
var svgDataByHeight = { "16": { "width": 16, "path": "<path fill-rule=\"evenodd\" d=\"M1.75 2.5a.75.75 0 000 1.5h6.5a.75.75 0 000-1.5h-6.5zm4 5a.75.75 0 000 1.5h7.5a.75.75 0 000-1.5h-7.5zm0 5a.75.75 0 000 1.5h7.5a.75.75 0 000-1.5h-7.5zM3 8a1 1 0 11-2 0 1 1 0 012 0zm-1 6a1 1 0 100-2 1 1 0 000 2z\"></path><path d=\"M13.314 4.918L11.07 2.417A.25.25 0 0111.256 2h4.488a.25.25 0 01.186.417l-2.244 2.5a.25.25 0 01-.372 0z\"></path>" }, "24": { "width": 24, "path": "<path fill-rule=\"evenodd\" d=\"M3.75 5.5a.75.75 0 000 1.5h10a.75.75 0 000-1.5h-10zm5 6a.75.75 0 000 1.5h11.5a.75.75 0 000-1.5H8.75zm0 6a.75.75 0 000 1.5h11.5a.75.75 0 000-1.5H8.75zM5 12a1 1 0 11-2 0 1 1 0 012 0zm-1 7a1 1 0 100-2 1 1 0 000 2z\"></path><path d=\"M19.309 7.918l-2.245-2.501A.25.25 0 0117.25 5h4.49a.25.25 0 01.185.417l-2.244 2.5a.25.25 0 01-.372 0z\"></path>" } };
|
|
66
|
+
return React.createElement('svg', getSvgProps(_extends({}, props, { svgDataByHeight: svgDataByHeight })));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
MultiSelectIcon.defaultProps = {
|
|
70
|
+
className: 'octicon octicon-multi-select',
|
|
71
|
+
size: 16,
|
|
72
|
+
verticalAlign: 'text-bottom'
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
// eslint-disable-next-line import/no-namespace
|
|
76
|
+
|
|
77
|
+
var COMMON = compose(space, color);
|
|
78
|
+
|
|
79
|
+
var sx = function sx(props) {
|
|
80
|
+
return css(props.sx);
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/* THIS FILE IS GENERATED. DO NOT EDIT IT. */
|
|
84
|
+
|
|
85
|
+
var StyledMultiSelectIcon = styled(MultiSelectIcon)(COMMON, sx);
|
|
86
|
+
|
|
87
|
+
export default StyledMultiSelectIcon;
|
package/dist/icons/MuteIcon.js
CHANGED
|
@@ -12,6 +12,8 @@ var sizeMap = {
|
|
|
12
12
|
function getSvgProps(_ref) {
|
|
13
13
|
var ariaLabel = _ref['aria-label'],
|
|
14
14
|
className = _ref.className,
|
|
15
|
+
_ref$fill = _ref.fill,
|
|
16
|
+
fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
|
|
15
17
|
size = _ref.size,
|
|
16
18
|
verticalAlign = _ref.verticalAlign,
|
|
17
19
|
svgDataByHeight = _ref.svgDataByHeight;
|
|
@@ -30,11 +32,12 @@ function getSvgProps(_ref) {
|
|
|
30
32
|
viewBox: '0 0 ' + naturalWidth + ' ' + naturalHeight,
|
|
31
33
|
width: width,
|
|
32
34
|
height: height,
|
|
33
|
-
fill:
|
|
35
|
+
fill: fill,
|
|
34
36
|
style: {
|
|
35
37
|
display: 'inline-block',
|
|
36
38
|
userSelect: 'none',
|
|
37
|
-
verticalAlign: verticalAlign
|
|
39
|
+
verticalAlign: verticalAlign,
|
|
40
|
+
overflow: 'visible'
|
|
38
41
|
},
|
|
39
42
|
dangerouslySetInnerHTML: { __html: path }
|
|
40
43
|
};
|
|
@@ -64,7 +67,7 @@ function MuteIcon(props) {
|
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
MuteIcon.defaultProps = {
|
|
67
|
-
className: 'octicon',
|
|
70
|
+
className: 'octicon octicon-mute',
|
|
68
71
|
size: 16,
|
|
69
72
|
verticalAlign: 'text-bottom'
|
|
70
73
|
};
|
|
@@ -12,6 +12,8 @@ var sizeMap = {
|
|
|
12
12
|
function getSvgProps(_ref) {
|
|
13
13
|
var ariaLabel = _ref['aria-label'],
|
|
14
14
|
className = _ref.className,
|
|
15
|
+
_ref$fill = _ref.fill,
|
|
16
|
+
fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
|
|
15
17
|
size = _ref.size,
|
|
16
18
|
verticalAlign = _ref.verticalAlign,
|
|
17
19
|
svgDataByHeight = _ref.svgDataByHeight;
|
|
@@ -30,11 +32,12 @@ function getSvgProps(_ref) {
|
|
|
30
32
|
viewBox: '0 0 ' + naturalWidth + ' ' + naturalHeight,
|
|
31
33
|
width: width,
|
|
32
34
|
height: height,
|
|
33
|
-
fill:
|
|
35
|
+
fill: fill,
|
|
34
36
|
style: {
|
|
35
37
|
display: 'inline-block',
|
|
36
38
|
userSelect: 'none',
|
|
37
|
-
verticalAlign: verticalAlign
|
|
39
|
+
verticalAlign: verticalAlign,
|
|
40
|
+
overflow: 'visible'
|
|
38
41
|
},
|
|
39
42
|
dangerouslySetInnerHTML: { __html: path }
|
|
40
43
|
};
|
|
@@ -64,7 +67,7 @@ function NoEntryIcon(props) {
|
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
NoEntryIcon.defaultProps = {
|
|
67
|
-
className: 'octicon',
|
|
70
|
+
className: 'octicon octicon-no-entry',
|
|
68
71
|
size: 16,
|
|
69
72
|
verticalAlign: 'text-bottom'
|
|
70
73
|
};
|
|
@@ -12,6 +12,8 @@ var sizeMap = {
|
|
|
12
12
|
function getSvgProps(_ref) {
|
|
13
13
|
var ariaLabel = _ref['aria-label'],
|
|
14
14
|
className = _ref.className,
|
|
15
|
+
_ref$fill = _ref.fill,
|
|
16
|
+
fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
|
|
15
17
|
size = _ref.size,
|
|
16
18
|
verticalAlign = _ref.verticalAlign,
|
|
17
19
|
svgDataByHeight = _ref.svgDataByHeight;
|
|
@@ -30,11 +32,12 @@ function getSvgProps(_ref) {
|
|
|
30
32
|
viewBox: '0 0 ' + naturalWidth + ' ' + naturalHeight,
|
|
31
33
|
width: width,
|
|
32
34
|
height: height,
|
|
33
|
-
fill:
|
|
35
|
+
fill: fill,
|
|
34
36
|
style: {
|
|
35
37
|
display: 'inline-block',
|
|
36
38
|
userSelect: 'none',
|
|
37
|
-
verticalAlign: verticalAlign
|
|
39
|
+
verticalAlign: verticalAlign,
|
|
40
|
+
overflow: 'visible'
|
|
38
41
|
},
|
|
39
42
|
dangerouslySetInnerHTML: { __html: path }
|
|
40
43
|
};
|
|
@@ -64,7 +67,7 @@ function NorthStarIcon(props) {
|
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
NorthStarIcon.defaultProps = {
|
|
67
|
-
className: 'octicon',
|
|
70
|
+
className: 'octicon octicon-north-star',
|
|
68
71
|
size: 16,
|
|
69
72
|
verticalAlign: 'text-bottom'
|
|
70
73
|
};
|
package/dist/icons/NoteIcon.js
CHANGED
|
@@ -12,6 +12,8 @@ var sizeMap = {
|
|
|
12
12
|
function getSvgProps(_ref) {
|
|
13
13
|
var ariaLabel = _ref['aria-label'],
|
|
14
14
|
className = _ref.className,
|
|
15
|
+
_ref$fill = _ref.fill,
|
|
16
|
+
fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
|
|
15
17
|
size = _ref.size,
|
|
16
18
|
verticalAlign = _ref.verticalAlign,
|
|
17
19
|
svgDataByHeight = _ref.svgDataByHeight;
|
|
@@ -30,11 +32,12 @@ function getSvgProps(_ref) {
|
|
|
30
32
|
viewBox: '0 0 ' + naturalWidth + ' ' + naturalHeight,
|
|
31
33
|
width: width,
|
|
32
34
|
height: height,
|
|
33
|
-
fill:
|
|
35
|
+
fill: fill,
|
|
34
36
|
style: {
|
|
35
37
|
display: 'inline-block',
|
|
36
38
|
userSelect: 'none',
|
|
37
|
-
verticalAlign: verticalAlign
|
|
39
|
+
verticalAlign: verticalAlign,
|
|
40
|
+
overflow: 'visible'
|
|
38
41
|
},
|
|
39
42
|
dangerouslySetInnerHTML: { __html: path }
|
|
40
43
|
};
|
|
@@ -64,7 +67,7 @@ function NoteIcon(props) {
|
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
NoteIcon.defaultProps = {
|
|
67
|
-
className: 'octicon',
|
|
70
|
+
className: 'octicon octicon-note',
|
|
68
71
|
size: 16,
|
|
69
72
|
verticalAlign: 'text-bottom'
|
|
70
73
|
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { compose, space, color } from 'styled-system';
|
|
3
|
+
import css from '@styled-system/css';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
|
|
6
|
+
var sizeMap = {
|
|
7
|
+
small: 16,
|
|
8
|
+
medium: 32,
|
|
9
|
+
large: 64
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
function getSvgProps(_ref) {
|
|
13
|
+
var ariaLabel = _ref['aria-label'],
|
|
14
|
+
className = _ref.className,
|
|
15
|
+
_ref$fill = _ref.fill,
|
|
16
|
+
fill = _ref$fill === undefined ? 'currentColor' : _ref$fill,
|
|
17
|
+
size = _ref.size,
|
|
18
|
+
verticalAlign = _ref.verticalAlign,
|
|
19
|
+
svgDataByHeight = _ref.svgDataByHeight;
|
|
20
|
+
|
|
21
|
+
var height = sizeMap[size] || size;
|
|
22
|
+
var naturalHeight = closestNaturalHeight(Object.keys(svgDataByHeight), height);
|
|
23
|
+
var naturalWidth = svgDataByHeight[naturalHeight].width;
|
|
24
|
+
var width = height * (naturalWidth / naturalHeight);
|
|
25
|
+
var path = svgDataByHeight[naturalHeight].path;
|
|
26
|
+
|
|
27
|
+
return {
|
|
28
|
+
'aria-hidden': ariaLabel ? 'false' : 'true',
|
|
29
|
+
'aria-label': ariaLabel,
|
|
30
|
+
role: 'img',
|
|
31
|
+
className: className,
|
|
32
|
+
viewBox: '0 0 ' + naturalWidth + ' ' + naturalHeight,
|
|
33
|
+
width: width,
|
|
34
|
+
height: height,
|
|
35
|
+
fill: fill,
|
|
36
|
+
style: {
|
|
37
|
+
display: 'inline-block',
|
|
38
|
+
userSelect: 'none',
|
|
39
|
+
verticalAlign: verticalAlign,
|
|
40
|
+
overflow: 'visible'
|
|
41
|
+
},
|
|
42
|
+
dangerouslySetInnerHTML: { __html: path }
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function closestNaturalHeight(naturalHeights, height) {
|
|
47
|
+
return naturalHeights.map(function (naturalHeight) {
|
|
48
|
+
return parseInt(naturalHeight, 10);
|
|
49
|
+
}).reduce(function (acc, naturalHeight) {
|
|
50
|
+
return naturalHeight <= height ? naturalHeight : acc;
|
|
51
|
+
}, naturalHeights[0]);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
var _extends = Object.assign || function (target) {
|
|
55
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
56
|
+
var source = arguments[i];for (var key in source) {
|
|
57
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
58
|
+
target[key] = source[key];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}return target;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
function NumberIcon(props) {
|
|
65
|
+
var svgDataByHeight = { "16": { "width": 16, "path": "<path fill-rule=\"evenodd\" d=\"M5.604.089A.75.75 0 016 .75v4.77h.711a.75.75 0 110 1.5H3.759a.75.75 0 110-1.5H4.5V2.15l-.334.223a.75.75 0 01-.832-1.248l1.5-1a.75.75 0 01.77-.037zM9 4.75A.75.75 0 019.75 4h4a.75.75 0 01.53 1.28l-1.89 1.892c.312.076.604.18.867.319.742.391 1.244 1.063 1.244 2.005 0 .653-.231 1.208-.629 1.627-.386.408-.894.653-1.408.777-1.01.243-2.225.063-3.124-.527a.75.75 0 01.822-1.254c.534.35 1.32.474 1.951.322.306-.073.53-.201.67-.349.129-.136.218-.32.218-.596 0-.308-.123-.509-.444-.678-.373-.197-.98-.318-1.806-.318a.75.75 0 01-.53-1.28l1.72-1.72H9.75A.75.75 0 019 4.75zm-3.587 5.763c-.35-.05-.77.113-.983.572a.75.75 0 11-1.36-.632c.508-1.094 1.589-1.565 2.558-1.425 1 .145 1.872.945 1.872 2.222 0 1.433-1.088 2.192-1.79 2.681-.308.216-.571.397-.772.573H7a.75.75 0 010 1.5H3.75a.75.75 0 01-.75-.75c0-.69.3-1.211.67-1.61.348-.372.8-.676 1.15-.92.8-.56 1.18-.904 1.18-1.474 0-.473-.267-.69-.587-.737z\"></path>" }, "24": { "width": 24, "path": "<path fill-rule=\"evenodd\" d=\"M8.114 2.094a.75.75 0 01.386.656V9h1.252a.75.75 0 110 1.5H5.75a.75.75 0 010-1.5H7V4.103l-.853.533a.75.75 0 01-.795-1.272l2-1.25a.75.75 0 01.762-.02zm4.889 5.66a.75.75 0 01.75-.75h5.232a.75.75 0 01.53 1.28l-2.776 2.777c.55.097 1.057.253 1.492.483.905.477 1.504 1.284 1.504 2.418 0 .966-.471 1.75-1.172 2.27-.687.511-1.587.77-2.521.77-1.367 0-2.274-.528-2.667-.756a.75.75 0 01.755-1.297c.331.193.953.553 1.912.553.673 0 1.243-.188 1.627-.473.37-.275.566-.635.566-1.067 0-.5-.219-.836-.703-1.091-.538-.284-1.375-.443-2.471-.443a.75.75 0 01-.53-1.28l2.643-2.644h-3.421a.75.75 0 01-.75-.75zM7.88 15.215a1.4 1.4 0 00-1.446.83.75.75 0 01-1.37-.61 2.9 2.9 0 012.986-1.71 2.565 2.565 0 011.557.743c.434.446.685 1.058.685 1.778 0 1.641-1.254 2.437-2.12 2.986-.538.341-1.18.694-1.495 1.273H9.75a.75.75 0 010 1.5h-4a.75.75 0 01-.75-.75c0-1.799 1.337-2.63 2.243-3.21 1.032-.659 1.55-1.031 1.55-1.8 0-.355-.116-.584-.26-.732a1.068 1.068 0 00-.652-.298z\"></path>" } };
|
|
66
|
+
return React.createElement('svg', getSvgProps(_extends({}, props, { svgDataByHeight: svgDataByHeight })));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
NumberIcon.defaultProps = {
|
|
70
|
+
className: 'octicon octicon-number',
|
|
71
|
+
size: 16,
|
|
72
|
+
verticalAlign: 'text-bottom'
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
// eslint-disable-next-line import/no-namespace
|
|
76
|
+
|
|
77
|
+
var COMMON = compose(space, color);
|
|
78
|
+
|
|
79
|
+
var sx = function sx(props) {
|
|
80
|
+
return css(props.sx);
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/* THIS FILE IS GENERATED. DO NOT EDIT IT. */
|
|
84
|
+
|
|
85
|
+
var StyledNumberIcon = styled(NumberIcon)(COMMON, sx);
|
|
86
|
+
|
|
87
|
+
export default StyledNumberIcon;
|