@primer/styled-octicons 0.0.0-dd899ea → 0.0.0-dd916c4
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 +87 -0
- 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 +87 -0
- package/dist/icons/BroadcastIcon.js +6 -3
- package/dist/icons/BrowserIcon.js +87 -0
- package/dist/icons/BugIcon.js +87 -0
- 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/{EyeSlashIcon.js → CodescanCheckmarkIcon.js} +11 -8
- 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 +87 -0
- 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 +7 -4
- package/dist/icons/DatabaseIcon.js +6 -3
- package/dist/icons/DependabotIcon.js +87 -0
- package/dist/icons/DesktopDownloadIcon.js +7 -4
- package/dist/icons/{FileSymlinkIcon.js → DeviceCameraIcon.js} +11 -8
- package/dist/icons/DeviceCameraVideoIcon.js +6 -3
- package/dist/icons/DeviceDesktopIcon.js +6 -3
- package/dist/icons/DeviceMobileIcon.js +6 -3
- package/dist/icons/DiamondIcon.js +87 -0
- 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 +7 -4
- package/dist/icons/DotIcon.js +7 -4
- package/dist/icons/DownloadIcon.js +6 -3
- package/dist/icons/DuplicateIcon.js +87 -0
- package/dist/icons/{TrashcanIcon.js → EllipsisIcon.js} +11 -8
- package/dist/icons/EyeClosedIcon.js +7 -4
- package/dist/icons/EyeIcon.js +6 -3
- package/dist/icons/FileBadgeIcon.js +87 -0
- 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 +7 -4
- package/dist/icons/FileZipIcon.js +6 -3
- package/dist/icons/FilterIcon.js +6 -3
- package/dist/icons/FlameIcon.js +7 -4
- 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/{FireIcon.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 +7 -4
- 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/{OctofaceIcon.js → MeterIcon.js} +11 -8
- package/dist/icons/MilestoneIcon.js +6 -3
- package/dist/icons/MirrorIcon.js +6 -3
- package/dist/icons/MoonIcon.js +87 -0
- 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 +87 -0
- 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/PersonFillIcon.js +87 -0
- 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 +7 -4
- 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 +87 -0
- package/dist/icons/RepoForkedIcon.js +7 -4
- package/dist/icons/RepoIcon.js +6 -3
- package/dist/icons/{InsightsIcon.js → RepoPullIcon.js} +11 -8
- 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 +87 -0
- package/dist/icons/ScreenFullIcon.js +6 -3
- package/dist/icons/ScreenNormalIcon.js +6 -3
- package/dist/icons/SearchIcon.js +6 -3
- package/dist/icons/SelectSingleIcon.js +87 -0
- 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/{GitForkIcon.js → SingleSelectIcon.js} +11 -8
- package/dist/icons/SkipIcon.js +6 -3
- package/dist/icons/SmileyIcon.js +7 -4
- package/dist/icons/SortAscIcon.js +87 -0
- package/dist/icons/SortDescIcon.js +87 -0
- package/dist/icons/SquareFillIcon.js +87 -0
- package/dist/icons/SquareIcon.js +87 -0
- package/dist/icons/SquirrelIcon.js +87 -0
- 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 +87 -0
- package/dist/icons/SunIcon.js +87 -0
- 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 +7 -4
- 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 +7 -4
- 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 +7 -4
- package/dist/icons/XCircleIcon.js +7 -4
- package/dist/icons/XIcon.js +6 -3
- package/dist/icons/ZapIcon.js +87 -0
- package/dist/index.d.ts +49 -10
- package/dist/index.esm.js +49 -10
- package/dist/index.umd.js +985 -358
- package/package.json +7 -5
- package/dist/icons/SettingsIcon.js +0 -84
- package/dist/icons/UnverifedIcon.js +0 -84
|
@@ -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 ColumnsIcon(props) {
|
|
65
|
+
var svgDataByHeight = { "16": { "width": 16, "path": "<path fill-rule=\"evenodd\" d=\"M2.75 0A1.75 1.75 0 001 1.75v12.5c0 .966.784 1.75 1.75 1.75h2.5A1.75 1.75 0 007 14.25V1.75A1.75 1.75 0 005.25 0h-2.5zM2.5 1.75a.25.25 0 01.25-.25h2.5a.25.25 0 01.25.25v12.5a.25.25 0 01-.25.25h-2.5a.25.25 0 01-.25-.25V1.75zM10.75 0A1.75 1.75 0 009 1.75v12.5c0 .966.784 1.75 1.75 1.75h2.5A1.75 1.75 0 0015 14.25V1.75A1.75 1.75 0 0013.25 0h-2.5zm-.25 1.75a.25.25 0 01.25-.25h2.5a.25.25 0 01.25.25v12.5a.25.25 0 01-.25.25h-2.5a.25.25 0 01-.25-.25V1.75z\"></path>" }, "24": { "width": 24, "path": "<path fill-rule=\"evenodd\" d=\"M3.75 2A1.75 1.75 0 002 3.75v16.5c0 .966.784 1.75 1.75 1.75h5.5A1.75 1.75 0 0011 20.25V3.75A1.75 1.75 0 009.25 2h-5.5zM3.5 3.75a.25.25 0 01.25-.25h5.5a.25.25 0 01.25.25v16.5a.25.25 0 01-.25.25h-5.5a.25.25 0 01-.25-.25V3.75zM14.75 2A1.75 1.75 0 0013 3.75v16.5c0 .966.784 1.75 1.75 1.75h5.5A1.75 1.75 0 0022 20.25V3.75A1.75 1.75 0 0020.25 2h-5.5zm-.25 1.75a.25.25 0 01.25-.25h5.5a.25.25 0 01.25.25v16.5a.25.25 0 01-.25.25h-5.5a.25.25 0 01-.25-.25V3.75z\"></path>" } };
|
|
66
|
+
return React.createElement('svg', getSvgProps(_extends({}, props, { svgDataByHeight: svgDataByHeight })));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
ColumnsIcon.defaultProps = {
|
|
70
|
+
className: 'octicon octicon-columns',
|
|
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 StyledColumnsIcon = styled(ColumnsIcon)(COMMON, sx);
|
|
86
|
+
|
|
87
|
+
export default StyledColumnsIcon;
|
|
@@ -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 CommentDiscussionIcon(props) {
|
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
CommentDiscussionIcon.defaultProps = {
|
|
67
|
-
className: 'octicon',
|
|
70
|
+
className: 'octicon octicon-comment-discussion',
|
|
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 CommentIcon(props) {
|
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
CommentIcon.defaultProps = {
|
|
67
|
-
className: 'octicon',
|
|
70
|
+
className: 'octicon octicon-comment',
|
|
68
71
|
size: 16,
|
|
69
72
|
verticalAlign: 'text-bottom'
|
|
70
73
|
};
|
package/dist/icons/CommitIcon.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 CommitIcon(props) {
|
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
CommitIcon.defaultProps = {
|
|
67
|
-
className: 'octicon',
|
|
70
|
+
className: 'octicon octicon-commit',
|
|
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 ContainerIcon(props) {
|
|
65
|
+
var svgDataByHeight = { "16": { "width": 16, "path": "<path fill-rule=\"evenodd\" d=\"M10.41.24l4.711 2.774A1.767 1.767 0 0116 4.54v5.01a1.77 1.77 0 01-.88 1.53l-7.753 4.521-.002.001a1.767 1.767 0 01-1.774 0H5.59L.873 12.85A1.762 1.762 0 010 11.327V6.292c0-.304.078-.598.22-.855l.004-.005.01-.019c.15-.262.369-.486.64-.643L8.641.239a1.75 1.75 0 011.765 0l.002.001zM9.397 1.534a.25.25 0 01.252 0l4.115 2.422-7.152 4.148a.267.267 0 01-.269 0L2.227 5.716l7.17-4.182zM7.365 9.402L8.73 8.61v4.46l-1.5.875V9.473a1.77 1.77 0 00.136-.071zm2.864 2.794V7.741l1.521-.882v4.45l-1.521.887zm3.021-1.762l1.115-.65h.002a.268.268 0 00.133-.232V5.264l-1.25.725v4.445zm-11.621 1.12l4.1 2.393V9.474a1.77 1.77 0 01-.138-.072L1.5 7.029v4.298c0 .095.05.181.129.227z\"></path>" }, "24": { "width": 24, "path": "<path fill-rule=\"evenodd\" d=\"M13.152.682a2.25 2.25 0 012.269 0l.007.004 6.957 4.276a2.276 2.276 0 011.126 1.964v7.516c0 .81-.432 1.56-1.133 1.968l-.002.001-11.964 7.037-.004.003a2.276 2.276 0 01-2.284 0l-.026-.015-6.503-4.502a2.268 2.268 0 01-1.096-1.943V9.438c0-.392.1-.77.284-1.1l.003-.006.014-.026a2.28 2.28 0 01.82-.827h.002L13.152.681zm.757 1.295h-.001L2.648 8.616l6.248 4.247a.776.776 0 00.758-.01h.001l11.633-6.804-6.629-4.074a.75.75 0 00-.75.003zM18 9.709l-3.25 1.9v7.548L18 17.245V9.709zm1.5-.878v7.532l2.124-1.25a.777.777 0 00.387-.671V7.363L19.5 8.831zm-9.09 5.316l2.84-1.66v7.552l-3.233 1.902v-7.612c.134-.047.265-.107.391-.18l.002-.002zm-1.893 7.754V14.33a2.277 2.277 0 01-.393-.18l-.023-.014-6.102-4.147v7.003c0 .275.145.528.379.664l.025.014 6.114 4.232z\"></path>" } };
|
|
66
|
+
return React.createElement('svg', getSvgProps(_extends({}, props, { svgDataByHeight: svgDataByHeight })));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
ContainerIcon.defaultProps = {
|
|
70
|
+
className: 'octicon octicon-container',
|
|
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 StyledContainerIcon = styled(ContainerIcon)(COMMON, sx);
|
|
86
|
+
|
|
87
|
+
export default StyledContainerIcon;
|
package/dist/icons/CopyIcon.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
|
};
|
|
@@ -59,12 +62,12 @@ var _extends = Object.assign || function (target) {
|
|
|
59
62
|
};
|
|
60
63
|
|
|
61
64
|
function CopyIcon(props) {
|
|
62
|
-
var svgDataByHeight = { "
|
|
65
|
+
var svgDataByHeight = { "16": { "width": 16, "path": "<path fill-rule=\"evenodd\" d=\"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z\"></path><path fill-rule=\"evenodd\" d=\"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z\"></path>" }, "24": { "width": 24, "path": "<path fill-rule=\"evenodd\" d=\"M7.024 3.75c0-.966.784-1.75 1.75-1.75H20.25c.966 0 1.75.784 1.75 1.75v11.498a1.75 1.75 0 01-1.75 1.75H8.774a1.75 1.75 0 01-1.75-1.75V3.75zm1.75-.25a.25.25 0 00-.25.25v11.498c0 .139.112.25.25.25H20.25a.25.25 0 00.25-.25V3.75a.25.25 0 00-.25-.25H8.774z\"></path><path d=\"M1.995 10.749a1.75 1.75 0 011.75-1.751H5.25a.75.75 0 110 1.5H3.745a.25.25 0 00-.25.25L3.5 20.25c0 .138.111.25.25.25h9.5a.25.25 0 00.25-.25v-1.51a.75.75 0 111.5 0v1.51A1.75 1.75 0 0113.25 22h-9.5A1.75 1.75 0 012 20.25l-.005-9.501z\"></path>" } };
|
|
63
66
|
return React.createElement('svg', getSvgProps(_extends({}, props, { svgDataByHeight: svgDataByHeight })));
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
CopyIcon.defaultProps = {
|
|
67
|
-
className: 'octicon',
|
|
70
|
+
className: 'octicon octicon-copy',
|
|
68
71
|
size: 16,
|
|
69
72
|
verticalAlign: 'text-bottom'
|
|
70
73
|
};
|
package/dist/icons/CpuIcon.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 CpuIcon(props) {
|
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
CpuIcon.defaultProps = {
|
|
67
|
-
className: 'octicon',
|
|
70
|
+
className: 'octicon octicon-cpu',
|
|
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 CreditCardIcon(props) {
|
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
CreditCardIcon.defaultProps = {
|
|
67
|
-
className: 'octicon',
|
|
70
|
+
className: 'octicon octicon-credit-card',
|
|
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 CrossReferenceIcon(props) {
|
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
CrossReferenceIcon.defaultProps = {
|
|
67
|
-
className: 'octicon',
|
|
70
|
+
className: 'octicon octicon-cross-reference',
|
|
68
71
|
size: 16,
|
|
69
72
|
verticalAlign: 'text-bottom'
|
|
70
73
|
};
|
package/dist/icons/DashIcon.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
|
};
|
|
@@ -59,12 +62,12 @@ var _extends = Object.assign || function (target) {
|
|
|
59
62
|
};
|
|
60
63
|
|
|
61
64
|
function DashIcon(props) {
|
|
62
|
-
var svgDataByHeight = { "16": { "width": 16, "path": "<path fill-rule=\"evenodd\" d=\"M2
|
|
65
|
+
var svgDataByHeight = { "16": { "width": 16, "path": "<path fill-rule=\"evenodd\" d=\"M2 7.75A.75.75 0 012.75 7h10a.75.75 0 010 1.5h-10A.75.75 0 012 7.75z\"></path>" }, "24": { "width": 24, "path": "<path fill-rule=\"evenodd\" d=\"M4.5 12.75a.75.75 0 01.75-.75h13.5a.75.75 0 010 1.5H5.25a.75.75 0 01-.75-.75z\"></path>" } };
|
|
63
66
|
return React.createElement('svg', getSvgProps(_extends({}, props, { svgDataByHeight: svgDataByHeight })));
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
DashIcon.defaultProps = {
|
|
67
|
-
className: 'octicon',
|
|
70
|
+
className: 'octicon octicon-dash',
|
|
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 DatabaseIcon(props) {
|
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
DatabaseIcon.defaultProps = {
|
|
67
|
-
className: 'octicon',
|
|
70
|
+
className: 'octicon octicon-database',
|
|
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 DependabotIcon(props) {
|
|
65
|
+
var svgDataByHeight = { "16": { "width": 16, "path": "<path d=\"M5.75 7.5a.75.75 0 01.75.75v1.5a.75.75 0 01-1.5 0v-1.5a.75.75 0 01.75-.75zm5.25.75a.75.75 0 00-1.5 0v1.5a.75.75 0 001.5 0v-1.5z\"></path><path fill-rule=\"evenodd\" d=\"M6.25 0a.75.75 0 000 1.5H7.5v2H3.75A2.25 2.25 0 001.5 5.75V8H.75a.75.75 0 000 1.5h.75v2.75a2.25 2.25 0 002.25 2.25h8.5a2.25 2.25 0 002.25-2.25V9.5h.75a.75.75 0 000-1.5h-.75V5.75a2.25 2.25 0 00-2.25-2.25H9V.75A.75.75 0 008.25 0h-2zM3 5.75A.75.75 0 013.75 5h8.5a.75.75 0 01.75.75v6.5a.75.75 0 01-.75.75h-8.5a.75.75 0 01-.75-.75v-6.5z\"></path>" }, "24": { "width": 24, "path": "<path d=\"M8.75 11a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5a.75.75 0 01.75-.75zm7.25.75a.75.75 0 00-1.5 0v3.5a.75.75 0 001.5 0v-3.5z\"></path><path fill-rule=\"evenodd\" d=\"M9.813 1a.75.75 0 000 1.5H11.5V5H4.25A2.25 2.25 0 002 7.25v5.25H.75a.75.75 0 000 1.5H2v5.75A2.25 2.25 0 004.25 22h15.5A2.25 2.25 0 0022 19.75V14h1.25a.75.75 0 000-1.5H22V7.25A2.25 2.25 0 0019.75 5H13V1.75a.75.75 0 00-.75-.75H9.812zM3.5 7.25a.75.75 0 01.75-.75h15.5a.75.75 0 01.75.75v12.5a.75.75 0 01-.75.75H4.25a.75.75 0 01-.75-.75V7.25z\"></path>" } };
|
|
66
|
+
return React.createElement('svg', getSvgProps(_extends({}, props, { svgDataByHeight: svgDataByHeight })));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
DependabotIcon.defaultProps = {
|
|
70
|
+
className: 'octicon octicon-dependabot',
|
|
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 StyledDependabotIcon = styled(DependabotIcon)(COMMON, sx);
|
|
86
|
+
|
|
87
|
+
export default StyledDependabotIcon;
|
|
@@ -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 DesktopDownloadIcon(props) {
|
|
62
|
-
var svgDataByHeight = { "16": { "width": 16, "path": "<path
|
|
65
|
+
var svgDataByHeight = { "16": { "width": 16, "path": "<path d=\"M4.927 5.427l2.896 2.896a.25.25 0 00.354 0l2.896-2.896A.25.25 0 0010.896 5H8.75V.75a.75.75 0 10-1.5 0V5H5.104a.25.25 0 00-.177.427z\"></path><path d=\"M1.573 2.573a.25.25 0 00-.073.177v7.5a.25.25 0 00.25.25h12.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-3a.75.75 0 110-1.5h3A1.75 1.75 0 0116 2.75v7.5A1.75 1.75 0 0114.25 12h-3.727c.099 1.041.52 1.872 1.292 2.757A.75.75 0 0111.25 16h-6.5a.75.75 0 01-.565-1.243c.772-.885 1.192-1.716 1.292-2.757H1.75A1.75 1.75 0 010 10.25v-7.5A1.75 1.75 0 011.75 1h3a.75.75 0 010 1.5h-3a.25.25 0 00-.177.073zM6.982 12a5.72 5.72 0 01-.765 2.5h3.566a5.72 5.72 0 01-.765-2.5H6.982z\"></path>" }, "24": { "width": 24, "path": "<path d=\"M11.25 9.331V.75a.75.75 0 011.5 0v8.58l1.949-2.11A.75.75 0 1115.8 8.237l-3.25 3.52a.75.75 0 01-1.102 0l-3.25-3.52A.75.75 0 119.3 7.22l1.949 2.111z\"></path><path fill-rule=\"evenodd\" d=\"M2.5 3.75a.25.25 0 01.25-.25h5.5a.75.75 0 100-1.5h-5.5A1.75 1.75 0 001 3.75v11.5c0 .966.784 1.75 1.75 1.75h6.204c-.171 1.375-.805 2.652-1.77 3.757A.75.75 0 007.75 22h8.5a.75.75 0 00.565-1.243c-.964-1.105-1.598-2.382-1.769-3.757h6.204A1.75 1.75 0 0023 15.25V3.75A1.75 1.75 0 0021.25 2h-5.5a.75.75 0 000 1.5h5.5a.25.25 0 01.25.25v11.5a.25.25 0 01-.25.25H2.75a.25.25 0 01-.25-.25V3.75zM10.463 17c-.126 1.266-.564 2.445-1.223 3.5h5.52c-.66-1.055-1.098-2.234-1.223-3.5h-3.074z\"></path>" } };
|
|
63
66
|
return React.createElement('svg', getSvgProps(_extends({}, props, { svgDataByHeight: svgDataByHeight })));
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
DesktopDownloadIcon.defaultProps = {
|
|
67
|
-
className: 'octicon',
|
|
70
|
+
className: 'octicon octicon-desktop-download',
|
|
68
71
|
size: 16,
|
|
69
72
|
verticalAlign: 'text-bottom'
|
|
70
73
|
};
|