@primer/styled-octicons 0.0.0-e68bed5 → 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/dist/icons/AlertIcon.js +2 -1
- package/dist/icons/ArchiveIcon.js +2 -1
- package/dist/icons/ArrowBothIcon.js +2 -1
- package/dist/icons/ArrowDownIcon.js +2 -1
- package/dist/icons/ArrowDownLeftIcon.js +2 -1
- package/dist/icons/ArrowDownRightIcon.js +2 -1
- package/dist/icons/ArrowLeftIcon.js +2 -1
- package/dist/icons/ArrowRightIcon.js +2 -1
- package/dist/icons/ArrowSwitchIcon.js +2 -1
- package/dist/icons/ArrowUpIcon.js +3 -2
- package/dist/icons/ArrowUpLeftIcon.js +2 -1
- package/dist/icons/ArrowUpRightIcon.js +2 -1
- package/dist/icons/BeakerIcon.js +2 -1
- package/dist/icons/BellFillIcon.js +3 -2
- package/dist/icons/BellIcon.js +2 -1
- package/dist/icons/BellSlashIcon.js +2 -1
- package/dist/icons/BlockedIcon.js +2 -1
- package/dist/icons/BoldIcon.js +2 -1
- package/dist/icons/BookIcon.js +2 -1
- package/dist/icons/BookmarkFillIcon.js +2 -1
- package/dist/icons/BookmarkIcon.js +2 -1
- package/dist/icons/BookmarkSlashFillIcon.js +2 -1
- package/dist/icons/BookmarkSlashIcon.js +2 -1
- package/dist/icons/BriefcaseIcon.js +2 -1
- package/dist/icons/BroadcastIcon.js +2 -1
- package/dist/icons/BrowserIcon.js +2 -1
- package/dist/icons/BugIcon.js +2 -1
- package/dist/icons/CalendarIcon.js +2 -1
- package/dist/icons/CheckCircleFillIcon.js +2 -1
- package/dist/icons/CheckCircleIcon.js +2 -1
- package/dist/icons/CheckIcon.js +2 -1
- package/dist/icons/ChecklistIcon.js +2 -1
- package/dist/icons/ChevronDownIcon.js +2 -1
- package/dist/icons/ChevronLeftIcon.js +2 -1
- package/dist/icons/ChevronRightIcon.js +2 -1
- package/dist/icons/ChevronUpIcon.js +2 -1
- package/dist/icons/CircleIcon.js +2 -1
- package/dist/icons/CircleSlashIcon.js +2 -1
- package/dist/icons/ClockIcon.js +2 -1
- package/dist/icons/CodeIcon.js +2 -1
- package/dist/icons/CodeReviewIcon.js +2 -1
- package/dist/icons/CodeSquareIcon.js +2 -1
- package/dist/icons/CodescanCheckmarkIcon.js +2 -1
- package/dist/icons/CodescanIcon.js +2 -1
- package/dist/icons/CodespacesIcon.js +2 -1
- package/dist/icons/{OctofaceIcon.js → ColumnsIcon.js} +8 -7
- package/dist/icons/CommentDiscussionIcon.js +2 -1
- package/dist/icons/CommentIcon.js +2 -1
- package/dist/icons/CommitIcon.js +2 -1
- package/dist/icons/ContainerIcon.js +2 -1
- package/dist/icons/CopyIcon.js +87 -0
- package/dist/icons/CpuIcon.js +2 -1
- package/dist/icons/CreditCardIcon.js +2 -1
- package/dist/icons/CrossReferenceIcon.js +2 -1
- package/dist/icons/DashIcon.js +2 -1
- package/dist/icons/DatabaseIcon.js +2 -1
- package/dist/icons/DependabotIcon.js +2 -1
- package/dist/icons/DesktopDownloadIcon.js +2 -1
- package/dist/icons/DeviceCameraIcon.js +2 -1
- package/dist/icons/DeviceCameraVideoIcon.js +2 -1
- package/dist/icons/DeviceDesktopIcon.js +2 -1
- package/dist/icons/DeviceMobileIcon.js +2 -1
- package/dist/icons/DiamondIcon.js +87 -0
- package/dist/icons/DiffAddedIcon.js +2 -1
- package/dist/icons/DiffIcon.js +2 -1
- package/dist/icons/DiffIgnoredIcon.js +2 -1
- package/dist/icons/DiffModifiedIcon.js +2 -1
- package/dist/icons/DiffRemovedIcon.js +2 -1
- package/dist/icons/DiffRenamedIcon.js +2 -1
- package/dist/icons/DotFillIcon.js +2 -1
- package/dist/icons/DotIcon.js +2 -1
- package/dist/icons/DownloadIcon.js +2 -1
- package/dist/icons/DuplicateIcon.js +3 -2
- package/dist/icons/EllipsisIcon.js +2 -1
- package/dist/icons/EyeClosedIcon.js +2 -1
- package/dist/icons/EyeIcon.js +2 -1
- package/dist/icons/FileBadgeIcon.js +2 -1
- package/dist/icons/FileBinaryIcon.js +2 -1
- package/dist/icons/FileCodeIcon.js +2 -1
- package/dist/icons/FileDiffIcon.js +2 -1
- package/dist/icons/FileDirectoryFillIcon.js +2 -1
- package/dist/icons/FileDirectoryIcon.js +2 -1
- package/dist/icons/FileIcon.js +2 -1
- package/dist/icons/FileMediaIcon.js +2 -1
- package/dist/icons/FileSubmoduleIcon.js +2 -1
- package/dist/icons/FileSymlinkFileIcon.js +2 -1
- package/dist/icons/FileZipIcon.js +2 -1
- package/dist/icons/FilterIcon.js +2 -1
- package/dist/icons/FlameIcon.js +2 -1
- package/dist/icons/FoldDownIcon.js +2 -1
- package/dist/icons/FoldIcon.js +2 -1
- package/dist/icons/FoldUpIcon.js +2 -1
- package/dist/icons/GearIcon.js +2 -1
- package/dist/icons/GiftIcon.js +2 -1
- package/dist/icons/GitBranchIcon.js +2 -1
- package/dist/icons/GitCommitIcon.js +2 -1
- package/dist/icons/GitCompareIcon.js +2 -1
- package/dist/icons/GitMergeIcon.js +2 -1
- package/dist/icons/GitPullRequestClosedIcon.js +87 -0
- package/dist/icons/GitPullRequestDraftIcon.js +87 -0
- package/dist/icons/GitPullRequestIcon.js +2 -1
- package/dist/icons/GlobeIcon.js +2 -1
- package/dist/icons/GrabberIcon.js +2 -1
- package/dist/icons/GraphIcon.js +2 -1
- package/dist/icons/HashIcon.js +87 -0
- package/dist/icons/HeadingIcon.js +2 -1
- package/dist/icons/HeartFillIcon.js +2 -1
- package/dist/icons/HeartIcon.js +2 -1
- package/dist/icons/HistoryIcon.js +2 -1
- package/dist/icons/HomeFillIcon.js +2 -1
- package/dist/icons/HomeIcon.js +2 -1
- package/dist/icons/HorizontalRuleIcon.js +2 -1
- package/dist/icons/HourglassIcon.js +2 -1
- package/dist/icons/HubotIcon.js +2 -1
- package/dist/icons/ImageIcon.js +2 -1
- package/dist/icons/InboxIcon.js +2 -1
- package/dist/icons/InfinityIcon.js +2 -1
- package/dist/icons/InfoIcon.js +2 -1
- package/dist/icons/IssueClosedIcon.js +3 -2
- package/dist/icons/IssueDraftIcon.js +87 -0
- package/dist/icons/IssueOpenedIcon.js +3 -2
- package/dist/icons/IssueReopenedIcon.js +3 -2
- package/dist/icons/ItalicIcon.js +2 -1
- package/dist/icons/KebabHorizontalIcon.js +2 -1
- package/dist/icons/KeyAsteriskIcon.js +87 -0
- package/dist/icons/KeyIcon.js +2 -1
- package/dist/icons/LawIcon.js +2 -1
- package/dist/icons/LightBulbIcon.js +2 -1
- package/dist/icons/LinkExternalIcon.js +2 -1
- package/dist/icons/LinkIcon.js +2 -1
- package/dist/icons/ListOrderedIcon.js +2 -1
- package/dist/icons/ListUnorderedIcon.js +2 -1
- package/dist/icons/LocationIcon.js +2 -1
- package/dist/icons/LockIcon.js +2 -1
- package/dist/icons/LogoGistIcon.js +2 -1
- package/dist/icons/LogoGithubIcon.js +2 -1
- package/dist/icons/MailIcon.js +2 -1
- package/dist/icons/MarkGithubIcon.js +2 -1
- package/dist/icons/MarkdownIcon.js +2 -1
- package/dist/icons/MegaphoneIcon.js +2 -1
- package/dist/icons/MentionIcon.js +2 -1
- package/dist/icons/MeterIcon.js +2 -1
- package/dist/icons/MilestoneIcon.js +2 -1
- package/dist/icons/MirrorIcon.js +2 -1
- package/dist/icons/MoonIcon.js +2 -1
- package/dist/icons/MortarBoardIcon.js +2 -1
- package/dist/icons/MultiSelectIcon.js +2 -1
- package/dist/icons/MuteIcon.js +2 -1
- package/dist/icons/NoEntryIcon.js +2 -1
- package/dist/icons/NorthStarIcon.js +2 -1
- package/dist/icons/NoteIcon.js +2 -1
- package/dist/icons/NumberIcon.js +3 -2
- package/dist/icons/OrganizationIcon.js +2 -1
- package/dist/icons/PackageDependenciesIcon.js +2 -1
- package/dist/icons/PackageDependentsIcon.js +2 -1
- package/dist/icons/PackageIcon.js +2 -1
- package/dist/icons/PaintbrushIcon.js +2 -1
- package/dist/icons/PaperAirplaneIcon.js +2 -1
- package/dist/icons/{ClippyIcon.js → PasteIcon.js} +7 -6
- package/dist/icons/PencilIcon.js +2 -1
- package/dist/icons/PeopleIcon.js +2 -1
- package/dist/icons/PersonAddIcon.js +2 -1
- package/dist/icons/{GitForkIcon.js → PersonFillIcon.js} +8 -7
- package/dist/icons/PersonIcon.js +2 -1
- package/dist/icons/PinIcon.js +2 -1
- package/dist/icons/PlayIcon.js +2 -1
- package/dist/icons/PlugIcon.js +2 -1
- package/dist/icons/PlusCircleIcon.js +2 -1
- package/dist/icons/PlusIcon.js +2 -1
- package/dist/icons/ProjectIcon.js +2 -1
- package/dist/icons/PulseIcon.js +2 -1
- package/dist/icons/QuestionIcon.js +2 -1
- package/dist/icons/QuoteIcon.js +2 -1
- package/dist/icons/ReplyIcon.js +2 -1
- package/dist/icons/RepoCloneIcon.js +2 -1
- package/dist/icons/RepoForkedIcon.js +3 -2
- package/dist/icons/RepoIcon.js +2 -1
- package/dist/icons/RepoPullIcon.js +2 -1
- package/dist/icons/RepoPushIcon.js +2 -1
- package/dist/icons/RepoTemplateIcon.js +2 -1
- package/dist/icons/ReportIcon.js +2 -1
- package/dist/icons/RocketIcon.js +2 -1
- package/dist/icons/RowsIcon.js +87 -0
- package/dist/icons/RssIcon.js +2 -1
- package/dist/icons/RubyIcon.js +2 -1
- package/dist/icons/ScreenFullIcon.js +2 -1
- package/dist/icons/ScreenNormalIcon.js +2 -1
- package/dist/icons/SearchIcon.js +2 -1
- package/dist/icons/ServerIcon.js +2 -1
- package/dist/icons/ShareAndroidIcon.js +2 -1
- package/dist/icons/ShareIcon.js +2 -1
- package/dist/icons/ShieldCheckIcon.js +2 -1
- package/dist/icons/ShieldIcon.js +2 -1
- package/dist/icons/ShieldLockIcon.js +2 -1
- package/dist/icons/ShieldXIcon.js +2 -1
- package/dist/icons/SidebarCollapseIcon.js +2 -1
- package/dist/icons/SidebarExpandIcon.js +2 -1
- package/dist/icons/SignInIcon.js +2 -1
- package/dist/icons/SignOutIcon.js +2 -1
- package/dist/icons/SingleSelectIcon.js +87 -0
- package/dist/icons/SkipIcon.js +2 -1
- package/dist/icons/SmileyIcon.js +2 -1
- package/dist/icons/SortAscIcon.js +87 -0
- package/dist/icons/SortDescIcon.js +87 -0
- package/dist/icons/SquareFillIcon.js +2 -1
- package/dist/icons/SquareIcon.js +2 -1
- package/dist/icons/SquirrelIcon.js +2 -1
- package/dist/icons/StackIcon.js +87 -0
- package/dist/icons/StarFillIcon.js +2 -1
- package/dist/icons/StarIcon.js +2 -1
- package/dist/icons/StopIcon.js +2 -1
- package/dist/icons/StopwatchIcon.js +2 -1
- package/dist/icons/StrikethroughIcon.js +2 -1
- package/dist/icons/SunIcon.js +2 -1
- package/dist/icons/SyncIcon.js +2 -1
- package/dist/icons/TabIcon.js +2 -1
- package/dist/icons/TableIcon.js +2 -1
- package/dist/icons/TagIcon.js +2 -1
- package/dist/icons/TasklistIcon.js +2 -1
- package/dist/icons/TelescopeFillIcon.js +87 -0
- package/dist/icons/TelescopeIcon.js +2 -1
- package/dist/icons/TerminalIcon.js +2 -1
- package/dist/icons/ThreeBarsIcon.js +2 -1
- package/dist/icons/ThumbsdownIcon.js +2 -1
- package/dist/icons/ThumbsupIcon.js +2 -1
- package/dist/icons/ToolsIcon.js +2 -1
- package/dist/icons/TrashIcon.js +2 -1
- package/dist/icons/TriangleDownIcon.js +2 -1
- package/dist/icons/TriangleLeftIcon.js +2 -1
- package/dist/icons/TriangleRightIcon.js +2 -1
- package/dist/icons/TriangleUpIcon.js +2 -1
- package/dist/icons/TypographyIcon.js +2 -1
- package/dist/icons/UnfoldIcon.js +2 -1
- package/dist/icons/UnlockIcon.js +2 -1
- package/dist/icons/UnmuteIcon.js +2 -1
- package/dist/icons/UnverifiedIcon.js +2 -1
- package/dist/icons/UploadIcon.js +2 -1
- package/dist/icons/VerifiedIcon.js +2 -1
- package/dist/icons/VersionsIcon.js +2 -1
- package/dist/icons/VideoIcon.js +2 -1
- package/dist/icons/WorkflowIcon.js +2 -1
- package/dist/icons/XCircleFillIcon.js +2 -1
- package/dist/icons/XCircleIcon.js +2 -1
- package/dist/icons/XIcon.js +2 -1
- package/dist/icons/ZapIcon.js +2 -1
- package/dist/index.d.ts +16 -3
- package/dist/index.esm.js +16 -3
- package/dist/index.umd.js +265 -56
- package/package.json +7 -5
package/dist/icons/GiftIcon.js
CHANGED
|
@@ -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 GitPullRequestClosedIcon(props) {
|
|
65
|
+
var svgDataByHeight = { "16": { "width": 16, "path": "<path fill-rule=\"evenodd\" d=\"M10.72 1.227a.75.75 0 011.06 0l.97.97.97-.97a.75.75 0 111.06 1.061l-.97.97.97.97a.75.75 0 01-1.06 1.06l-.97-.97-.97.97a.75.75 0 11-1.06-1.06l.97-.97-.97-.97a.75.75 0 010-1.06zM12.75 6.5a.75.75 0 00-.75.75v3.378a2.251 2.251 0 101.5 0V7.25a.75.75 0 00-.75-.75zm0 5.5a.75.75 0 100 1.5.75.75 0 000-1.5zM2.5 3.25a.75.75 0 111.5 0 .75.75 0 01-1.5 0zM3.25 1a2.25 2.25 0 00-.75 4.372v5.256a2.251 2.251 0 101.5 0V5.372A2.25 2.25 0 003.25 1zm0 11a.75.75 0 100 1.5.75.75 0 000-1.5z\"></path>" }, "24": { "width": 24, "path": "<path d=\"M22.266 2.711a.75.75 0 10-1.061-1.06l-1.983 1.983-1.984-1.983a.75.75 0 10-1.06 1.06l1.983 1.983-1.983 1.984a.75.75 0 001.06 1.06l1.984-1.983 1.983 1.983a.75.75 0 001.06-1.06l-1.983-1.984 1.984-1.983z\"></path><path fill-rule=\"evenodd\" d=\"M4.75 1.5a3.25 3.25 0 00-.745 6.414A.758.758 0 004 8v8a.81.81 0 00.005.086A3.251 3.251 0 004.75 22.5a3.25 3.25 0 00.745-6.414A.758.758 0 005.5 16V8a.758.758 0 00-.005-.086A3.251 3.251 0 004.75 1.5zM3 4.75a1.75 1.75 0 113.5 0 1.75 1.75 0 01-3.5 0zm0 14.5a1.75 1.75 0 113.5 0 1.75 1.75 0 01-3.5 0zm13 0a3.251 3.251 0 012.5-3.163V9.625a.75.75 0 011.5 0v6.462a3.251 3.251 0 01-.75 6.413A3.25 3.25 0 0116 19.25zm3.25-1.75a1.75 1.75 0 100 3.5 1.75 1.75 0 000-3.5z\"></path>" } };
|
|
66
|
+
return React.createElement('svg', getSvgProps(_extends({}, props, { svgDataByHeight: svgDataByHeight })));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
GitPullRequestClosedIcon.defaultProps = {
|
|
70
|
+
className: 'octicon octicon-git-pull-request-closed',
|
|
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 StyledGitPullRequestClosedIcon = styled(GitPullRequestClosedIcon)(COMMON, sx);
|
|
86
|
+
|
|
87
|
+
export default StyledGitPullRequestClosedIcon;
|
|
@@ -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 GitPullRequestDraftIcon(props) {
|
|
65
|
+
var svgDataByHeight = { "16": { "width": 16, "path": "<path fill-rule=\"evenodd\" d=\"M2.5 3.25a.75.75 0 111.5 0 .75.75 0 01-1.5 0zM3.25 1a2.25 2.25 0 00-.75 4.372v5.256a2.251 2.251 0 101.5 0V5.372A2.25 2.25 0 003.25 1zm0 11a.75.75 0 100 1.5.75.75 0 000-1.5zm9.5 3a2.25 2.25 0 100-4.5 2.25 2.25 0 000 4.5zm0-3a.75.75 0 100 1.5.75.75 0 000-1.5z\"></path><path d=\"M14 7.5a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0zm0-4.25a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0z\"></path>" }, "24": { "width": 24, "path": "<path fill-rule=\"evenodd\" d=\"M4.75 1.5a3.25 3.25 0 00-.745 6.414A.758.758 0 004 8v8a.81.81 0 00.005.086A3.251 3.251 0 004.75 22.5a3.25 3.25 0 00.745-6.414A.757.757 0 005.5 16V8a.758.758 0 00-.005-.086A3.251 3.251 0 004.75 1.5zM3 4.75a1.75 1.75 0 113.5 0 1.75 1.75 0 01-3.5 0zm0 14.5a1.75 1.75 0 113.5 0 1.75 1.75 0 01-3.5 0zm13 0a3.25 3.25 0 116.5 0 3.25 3.25 0 01-6.5 0zm3.25-1.75a1.75 1.75 0 100 3.5 1.75 1.75 0 000-3.5z\"></path><path d=\"M19.25 6a1.75 1.75 0 100-3.5 1.75 1.75 0 000 3.5zM21 11.25a1.75 1.75 0 11-3.5 0 1.75 1.75 0 013.5 0z\"></path>" } };
|
|
66
|
+
return React.createElement('svg', getSvgProps(_extends({}, props, { svgDataByHeight: svgDataByHeight })));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
GitPullRequestDraftIcon.defaultProps = {
|
|
70
|
+
className: 'octicon octicon-git-pull-request-draft',
|
|
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 StyledGitPullRequestDraftIcon = styled(GitPullRequestDraftIcon)(COMMON, sx);
|
|
86
|
+
|
|
87
|
+
export default StyledGitPullRequestDraftIcon;
|
package/dist/icons/GlobeIcon.js
CHANGED
package/dist/icons/GraphIcon.js
CHANGED
|
@@ -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 HashIcon(props) {
|
|
65
|
+
var svgDataByHeight = { "16": { "width": 16, "path": "<path fill-rule=\"evenodd\" d=\"M6.368 1.01a.75.75 0 01.623.859L6.57 4.5h3.98l.46-2.868a.75.75 0 011.48.237L12.07 4.5h2.18a.75.75 0 010 1.5h-2.42l-.64 4h2.56a.75.75 0 010 1.5h-2.8l-.46 2.869a.75.75 0 01-1.48-.237l.42-2.632H5.45l-.46 2.869a.75.75 0 01-1.48-.237l.42-2.632H1.75a.75.75 0 010-1.5h2.42l.64-4H2.25a.75.75 0 010-1.5h2.8l.46-2.868a.75.75 0 01.858-.622zM9.67 10l.64-4H6.33l-.64 4h3.98z\"></path>" }, "24": { "width": 24, "path": "<path fill-rule=\"evenodd\" d=\"M9.618 1.76a.75.75 0 01.623.859L9.46 7.5h6.48l.82-5.118a.75.75 0 011.48.237L17.46 7.5h3.79a.75.75 0 010 1.5h-4.03l-.96 6h3.99a.75.75 0 110 1.5h-4.23l-.78 4.869a.75.75 0 01-1.48-.237l.74-4.632H8.02l-.78 4.869a.75.75 0 01-1.48-.237L6.5 16.5H2.745a.75.75 0 010-1.5H6.74l.96-6H3.75a.75.75 0 010-1.5h4.19l.82-5.118a.75.75 0 01.858-.622zM14.741 15l.96-6H9.22l-.96 6h6.48z\"></path>" } };
|
|
66
|
+
return React.createElement('svg', getSvgProps(_extends({}, props, { svgDataByHeight: svgDataByHeight })));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
HashIcon.defaultProps = {
|
|
70
|
+
className: 'octicon octicon-hash',
|
|
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 StyledHashIcon = styled(HashIcon)(COMMON, sx);
|
|
86
|
+
|
|
87
|
+
export default StyledHashIcon;
|
package/dist/icons/HeartIcon.js
CHANGED
package/dist/icons/HomeIcon.js
CHANGED
package/dist/icons/HubotIcon.js
CHANGED
package/dist/icons/ImageIcon.js
CHANGED
package/dist/icons/InboxIcon.js
CHANGED
package/dist/icons/InfoIcon.js
CHANGED
|
@@ -36,7 +36,8 @@ function getSvgProps(_ref) {
|
|
|
36
36
|
style: {
|
|
37
37
|
display: 'inline-block',
|
|
38
38
|
userSelect: 'none',
|
|
39
|
-
verticalAlign: verticalAlign
|
|
39
|
+
verticalAlign: verticalAlign,
|
|
40
|
+
overflow: 'visible'
|
|
40
41
|
},
|
|
41
42
|
dangerouslySetInnerHTML: { __html: path }
|
|
42
43
|
};
|
|
@@ -61,7 +62,7 @@ var _extends = Object.assign || function (target) {
|
|
|
61
62
|
};
|
|
62
63
|
|
|
63
64
|
function IssueClosedIcon(props) {
|
|
64
|
-
var svgDataByHeight = { "16": { "width": 16, "path": "<path
|
|
65
|
+
var svgDataByHeight = { "16": { "width": 16, "path": "<path d=\"M11.28 6.78a.75.75 0 00-1.06-1.06L7.25 8.69 5.78 7.22a.75.75 0 00-1.06 1.06l2 2a.75.75 0 001.06 0l3.5-3.5z\"></path><path fill-rule=\"evenodd\" d=\"M16 8A8 8 0 110 8a8 8 0 0116 0zm-1.5 0a6.5 6.5 0 11-13 0 6.5 6.5 0 0113 0z\"></path>" }, "24": { "width": 24, "path": "<path d=\"M17.28 9.28a.75.75 0 00-1.06-1.06l-5.97 5.97-2.47-2.47a.75.75 0 00-1.06 1.06l3 3a.75.75 0 001.06 0l6.5-6.5z\"></path><path fill-rule=\"evenodd\" d=\"M12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1zM2.5 12a9.5 9.5 0 1119 0 9.5 9.5 0 01-19 0z\"></path>" } };
|
|
65
66
|
return React.createElement('svg', getSvgProps(_extends({}, props, { svgDataByHeight: svgDataByHeight })));
|
|
66
67
|
}
|
|
67
68
|
|
|
@@ -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 IssueDraftIcon(props) {
|
|
65
|
+
var svgDataByHeight = { "16": { "width": 16, "path": "<path fill-rule=\"evenodd\" d=\"M6.749.097a8.054 8.054 0 012.502 0 .75.75 0 11-.233 1.482 6.554 6.554 0 00-2.036 0A.75.75 0 016.749.097zM4.345 1.693A.75.75 0 014.18 2.74a6.542 6.542 0 00-1.44 1.44.75.75 0 01-1.212-.883 8.042 8.042 0 011.769-1.77.75.75 0 011.048.166zm7.31 0a.75.75 0 011.048-.165 8.04 8.04 0 011.77 1.769.75.75 0 11-1.214.883 6.542 6.542 0 00-1.439-1.44.75.75 0 01-.165-1.047zM.955 6.125a.75.75 0 01.624.857 6.554 6.554 0 000 2.036.75.75 0 01-1.482.233 8.054 8.054 0 010-2.502.75.75 0 01.858-.624zm14.09 0a.75.75 0 01.858.624 8.057 8.057 0 010 2.502.75.75 0 01-1.482-.233 6.55 6.55 0 000-2.036.75.75 0 01.624-.857zm-13.352 5.53a.75.75 0 011.048.165 6.542 6.542 0 001.439 1.44.75.75 0 01-.883 1.212 8.04 8.04 0 01-1.77-1.769.75.75 0 01.166-1.048zm12.614 0a.75.75 0 01.165 1.048 8.038 8.038 0 01-1.769 1.77.75.75 0 11-.883-1.214 6.543 6.543 0 001.44-1.439.75.75 0 011.047-.165zm-8.182 3.39a.75.75 0 01.857-.624 6.55 6.55 0 002.036 0 .75.75 0 01.233 1.482 8.057 8.057 0 01-2.502 0 .75.75 0 01-.624-.858z\"></path>" }, "24": { "width": 24, "path": "<path fill-rule=\"evenodd\" d=\"M10.157 1.154a11.07 11.07 0 013.686 0 .75.75 0 01-.25 1.479 9.568 9.568 0 00-3.186 0 .75.75 0 01-.25-1.48zM6.68 3.205a.75.75 0 01-.177 1.046A9.558 9.558 0 004.25 6.503a.75.75 0 01-1.223-.87 11.058 11.058 0 012.606-2.605.75.75 0 011.046.177zm10.64 0a.75.75 0 011.046-.177 11.058 11.058 0 012.605 2.606.75.75 0 11-1.222.869 9.558 9.558 0 00-2.252-2.252.75.75 0 01-.177-1.046zM2.018 9.543a.75.75 0 01.615.864 9.568 9.568 0 000 3.186.75.75 0 01-1.48.25 11.07 11.07 0 010-3.686.75.75 0 01.865-.614zm19.964 0a.75.75 0 01.864.614 11.066 11.066 0 010 3.686.75.75 0 01-1.479-.25 9.56 9.56 0 000-3.186.75.75 0 01.615-.864zM3.205 17.32a.75.75 0 011.046.177 9.558 9.558 0 002.252 2.252.75.75 0 11-.87 1.223 11.058 11.058 0 01-2.605-2.606.75.75 0 01.177-1.046zm17.59 0a.75.75 0 01.176 1.046 11.057 11.057 0 01-2.605 2.605.75.75 0 11-.869-1.222 9.558 9.558 0 002.252-2.252.75.75 0 011.046-.177zM9.543 21.982a.75.75 0 01.864-.615 9.56 9.56 0 003.186 0 .75.75 0 01.25 1.48 11.066 11.066 0 01-3.686 0 .75.75 0 01-.614-.865z\"></path>" } };
|
|
66
|
+
return React.createElement('svg', getSvgProps(_extends({}, props, { svgDataByHeight: svgDataByHeight })));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
IssueDraftIcon.defaultProps = {
|
|
70
|
+
className: 'octicon octicon-issue-draft',
|
|
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 StyledIssueDraftIcon = styled(IssueDraftIcon)(COMMON, sx);
|
|
86
|
+
|
|
87
|
+
export default StyledIssueDraftIcon;
|
|
@@ -36,7 +36,8 @@ function getSvgProps(_ref) {
|
|
|
36
36
|
style: {
|
|
37
37
|
display: 'inline-block',
|
|
38
38
|
userSelect: 'none',
|
|
39
|
-
verticalAlign: verticalAlign
|
|
39
|
+
verticalAlign: verticalAlign,
|
|
40
|
+
overflow: 'visible'
|
|
40
41
|
},
|
|
41
42
|
dangerouslySetInnerHTML: { __html: path }
|
|
42
43
|
};
|
|
@@ -61,7 +62,7 @@ var _extends = Object.assign || function (target) {
|
|
|
61
62
|
};
|
|
62
63
|
|
|
63
64
|
function IssueOpenedIcon(props) {
|
|
64
|
-
var svgDataByHeight = { "16": { "width": 16, "path": "<path
|
|
65
|
+
var svgDataByHeight = { "16": { "width": 16, "path": "<path d=\"M8 9.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3z\"></path><path fill-rule=\"evenodd\" d=\"M8 0a8 8 0 100 16A8 8 0 008 0zM1.5 8a6.5 6.5 0 1113 0 6.5 6.5 0 01-13 0z\"></path>" }, "24": { "width": 24, "path": "<path fill-rule=\"evenodd\" d=\"M2.5 12a9.5 9.5 0 1119 0 9.5 9.5 0 01-19 0zM12 1C5.925 1 1 5.925 1 12s4.925 11 11 11 11-4.925 11-11S18.075 1 12 1zm0 13a2 2 0 100-4 2 2 0 000 4z\"></path>" } };
|
|
65
66
|
return React.createElement('svg', getSvgProps(_extends({}, props, { svgDataByHeight: svgDataByHeight })));
|
|
66
67
|
}
|
|
67
68
|
|