@primer/styled-octicons 16.0.0 → 16.3.0
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/AccessibilityIcon.js +87 -0
- package/dist/icons/AlertFillIcon.js +87 -0
- package/dist/icons/AppsIcon.js +87 -0
- package/dist/icons/CheckCircleFillIcon.js +1 -1
- package/dist/icons/CodeOfConductIcon.js +87 -0
- package/dist/icons/FeedDiscussionIcon.js +87 -0
- package/dist/icons/FeedHeartIcon.js +87 -0
- package/dist/icons/FeedPersonIcon.js +87 -0
- package/dist/icons/FeedRepoIcon.js +87 -0
- package/dist/icons/FeedRocketIcon.js +87 -0
- package/dist/icons/FeedStarIcon.js +87 -0
- package/dist/icons/FeedTagIcon.js +87 -0
- package/dist/icons/IdBadgeIcon.js +87 -0
- package/dist/icons/LogIcon.js +87 -0
- package/dist/icons/NoEntryFillIcon.js +87 -0
- package/dist/icons/NoEntryIcon.js +1 -1
- package/dist/icons/RepoDeletedIcon.js +87 -0
- package/dist/icons/TabExternalIcon.js +87 -0
- package/dist/icons/WebhookIcon.js +87 -0
- package/dist/icons/XCircleFillIcon.js +1 -1
- package/dist/index.d.ts +17 -0
- package/dist/index.esm.js +17 -0
- package/dist/index.umd.js +275 -3
- package/package.json +1 -1
package/LICENSE
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 AccessibilityIcon(props) {
|
|
65
|
+
var svgDataByHeight = { "16": { "width": 16, "path": "<path fill-rule=\"evenodd\" d=\"M9.923 5.302a3 3 0 10-3.847 0A2.713 2.713 0 005.9 5.5H2A.75.75 0 002 7h3.3l-.578 5.163-.362 2.997a.75.75 0 101.49.18L6.132 13h3.736l.282 2.34a.75.75 0 101.49-.18l-.362-2.997L10.7 7H14a.75.75 0 000-1.5h-3.899a2.697 2.697 0 00-.178-.198zM9.5 3a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zm-.3 4.073l.495 4.427h-3.39l.496-4.427a1.207 1.207 0 012.398 0z\"></path>" } };
|
|
66
|
+
return React.createElement('svg', getSvgProps(_extends({}, props, { svgDataByHeight: svgDataByHeight })));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
AccessibilityIcon.defaultProps = {
|
|
70
|
+
className: 'octicon octicon-accessibility',
|
|
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 StyledAccessibilityIcon = styled(AccessibilityIcon)(COMMON, sx);
|
|
86
|
+
|
|
87
|
+
export default StyledAccessibilityIcon;
|
|
@@ -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 AlertFillIcon(props) {
|
|
65
|
+
var svgDataByHeight = { "12": { "width": 12, "path": "<path fill-rule=\"evenodd\" d=\"M4.855.708c.5-.896 1.79-.896 2.29 0l4.675 8.351a1.312 1.312 0 01-1.146 1.954H1.33A1.312 1.312 0 01.183 9.058L4.855.708zM7 7V3H5v4h2zm-1 3a1 1 0 100-2 1 1 0 000 2z\"></path>" } };
|
|
66
|
+
return React.createElement('svg', getSvgProps(_extends({}, props, { svgDataByHeight: svgDataByHeight })));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
AlertFillIcon.defaultProps = {
|
|
70
|
+
className: 'octicon octicon-alert-fill',
|
|
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 StyledAlertFillIcon = styled(AlertFillIcon)(COMMON, sx);
|
|
86
|
+
|
|
87
|
+
export default StyledAlertFillIcon;
|
|
@@ -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 AppsIcon(props) {
|
|
65
|
+
var svgDataByHeight = { "16": { "width": 16, "path": "<path fill-rule=\"evenodd\" d=\"M1.5 3.25c0-.966.784-1.75 1.75-1.75h2.5c.966 0 1.75.784 1.75 1.75v2.5A1.75 1.75 0 015.75 7.5h-2.5A1.75 1.75 0 011.5 5.75v-2.5zM3.25 3a.25.25 0 00-.25.25v2.5c0 .138.112.25.25.25h2.5A.25.25 0 006 5.75v-2.5A.25.25 0 005.75 3h-2.5zM1.5 10.25c0-.966.784-1.75 1.75-1.75h2.5c.966 0 1.75.784 1.75 1.75v2.5a1.75 1.75 0 01-1.75 1.75h-2.5a1.75 1.75 0 01-1.75-1.75v-2.5zM3.25 10a.25.25 0 00-.25.25v2.5c0 .138.112.25.25.25h2.5a.25.25 0 00.25-.25v-2.5a.25.25 0 00-.25-.25h-2.5zM8.5 3.25c0-.966.784-1.75 1.75-1.75h2.5c.966 0 1.75.784 1.75 1.75v2.5a1.75 1.75 0 01-1.75 1.75h-2.5A1.75 1.75 0 018.5 5.75v-2.5zM10.25 3a.25.25 0 00-.25.25v2.5c0 .138.112.25.25.25h2.5a.25.25 0 00.25-.25v-2.5a.25.25 0 00-.25-.25h-2.5zM8.5 10.25c0-.966.784-1.75 1.75-1.75h2.5c.966 0 1.75.784 1.75 1.75v2.5a1.75 1.75 0 01-1.75 1.75h-2.5a1.75 1.75 0 01-1.75-1.75v-2.5zm1.75-.25a.25.25 0 00-.25.25v2.5c0 .138.112.25.25.25h2.5a.25.25 0 00.25-.25v-2.5a.25.25 0 00-.25-.25h-2.5z\"></path>" } };
|
|
66
|
+
return React.createElement('svg', getSvgProps(_extends({}, props, { svgDataByHeight: svgDataByHeight })));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
AppsIcon.defaultProps = {
|
|
70
|
+
className: 'octicon octicon-apps',
|
|
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 StyledAppsIcon = styled(AppsIcon)(COMMON, sx);
|
|
86
|
+
|
|
87
|
+
export default StyledAppsIcon;
|
|
@@ -62,7 +62,7 @@ var _extends = Object.assign || function (target) {
|
|
|
62
62
|
};
|
|
63
63
|
|
|
64
64
|
function CheckCircleFillIcon(props) {
|
|
65
|
-
var svgDataByHeight = { "16": { "width": 16, "path": "<path fill-rule=\"evenodd\" d=\"M8 16A8 8 0 108 0a8 8 0 000 16zm3.78-9.72a.75.75 0 00-1.06-1.06L6.75 9.19 5.28 7.72a.75.75 0 00-1.06 1.06l2 2a.75.75 0 001.06 0l4.5-4.5z\"></path>" }, "24": { "width": 24, "path": "<path fill-rule=\"evenodd\" d=\"M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12zm16.28-2.72a.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>" } };
|
|
65
|
+
var svgDataByHeight = { "12": { "width": 12, "path": "<path fill-rule=\"evenodd\" d=\"M6 0a6 6 0 100 12A6 6 0 006 0zm-.705 8.737L9.63 4.403 8.392 3.166 5.295 6.263l-1.7-1.702L2.356 5.8l2.938 2.938z\"></path>" }, "16": { "width": 16, "path": "<path fill-rule=\"evenodd\" d=\"M8 16A8 8 0 108 0a8 8 0 000 16zm3.78-9.72a.75.75 0 00-1.06-1.06L6.75 9.19 5.28 7.72a.75.75 0 00-1.06 1.06l2 2a.75.75 0 001.06 0l4.5-4.5z\"></path>" }, "24": { "width": 24, "path": "<path fill-rule=\"evenodd\" d=\"M1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12zm16.28-2.72a.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>" } };
|
|
66
66
|
return React.createElement('svg', getSvgProps(_extends({}, props, { svgDataByHeight: svgDataByHeight })));
|
|
67
67
|
}
|
|
68
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 CodeOfConductIcon(props) {
|
|
65
|
+
var svgDataByHeight = { "16": { "width": 16, "path": "<path fill-rule=\"evenodd\" d=\"M8.048 2.241c.964-.709 2.079-1.238 3.325-1.241a4.613 4.613 0 013.282 1.355c.41.408.757.86.996 1.428.238.568.348 1.206.347 1.968 0 2.193-1.505 4.254-3.081 5.862-1.496 1.526-3.213 2.796-4.249 3.563l-.22.163a.75.75 0 01-.895 0l-.221-.163c-1.036-.767-2.753-2.037-4.249-3.563C1.51 10.008.007 7.952.002 5.762a4.614 4.614 0 011.353-3.407C3.123.585 6.223.537 8.048 2.24zm-1.153.983c-.81.78-1.546 1.669-2.166 2.417-.184.222-.358.432-.52.623a.75.75 0 00.04 1.016c.35.35.697.697 1.043 1.047.866.875 2.292.914 3.185.032.264-.26.534-.528.802-.797.694-.694 1.8-.701 2.474-.03L12.92 8.7l.283.284c-.244.334-.515.666-.81.995l-1.384-1.28A.75.75 0 109.99 9.802l1.357 1.252c-.325.31-.656.606-.984.887l-1.48-1.366a.75.75 0 10-1.018 1.102L9.191 12.9c-.433.34-.838.643-1.191.905-1.04-.773-2.537-1.907-3.846-3.242C2.611 8.99 1.502 7.306 1.502 5.75a3.114 3.114 0 01.913-2.335c1.159-1.158 3.23-1.224 4.48-.191zm7.112 4.442c.313-.65.491-1.293.491-1.916v-.001c0-.614-.088-1.045-.23-1.385-.143-.339-.357-.633-.673-.949a3.113 3.113 0 00-2.218-.915c-1.092.003-2.165.627-3.226 1.602-.823.755-1.554 1.637-2.228 2.45l-.127.154.562.566a.756.756 0 001.066.02l.794-.79c1.258-1.258 3.312-1.31 4.594-.032.396.394.792.791 1.173 1.173l.022.023z\"></path>" }, "24": { "width": 24, "path": "<path fill-rule=\"evenodd\" d=\"M2.828 4.328C5.26 1.896 9.5 1.881 11.935 4.317c.024.024.046.05.067.076 1.391-1.078 2.993-1.886 4.777-1.89a6.216 6.216 0 014.424 1.825c.559.56 1.023 1.165 1.34 1.922.318.756.47 1.617.468 2.663 0 2.972-2.047 5.808-4.269 8.074-2.098 2.14-4.507 3.924-5.974 5.009l-.311.23a.752.752 0 01-.897 0l-.312-.23c-1.466-1.085-3.875-2.869-5.973-5.009-2.22-2.263-4.264-5.095-4.27-8.063v.012-.024.012a6.217 6.217 0 011.823-4.596zm8.033 1.042c-1.846-1.834-5.124-1.823-6.969.022a4.713 4.713 0 00-1.382 3.52c0 2.332 1.65 4.79 3.839 7.022 1.947 1.986 4.184 3.66 5.66 4.752a79.983 79.983 0 002.159-1.645l-2.14-1.974a.752.752 0 011.02-1.106l2.295 2.118c.616-.52 1.242-1.08 1.85-1.672l-2.16-1.992a.752.752 0 011.021-1.106l2.188 2.02a18.992 18.992 0 001.528-1.877l-.585-.586-1.651-1.652c-1.078-1.074-2.837-1.055-3.935.043-.379.38-.76.758-1.132 1.126-1.14 1.124-2.96 1.077-4.07-.043-.489-.495-.98-.988-1.475-1.482a.752.752 0 01-.04-1.019c.234-.276.483-.576.745-.893.928-1.12 2.023-2.442 3.234-3.576zm9.725 6.77c.579-1.08.92-2.167.92-3.228.002-.899-.128-1.552-.35-2.08-.22-.526-.551-.974-1.017-1.44a4.71 4.71 0 00-3.356-1.384c-1.66.004-3.25.951-4.77 2.346-1.18 1.084-2.233 2.353-3.188 3.506l-.351.423c.331.332.663.664.993.998a1.375 1.375 0 001.943.03c.37-.365.748-.74 1.125-1.118 1.662-1.663 4.373-1.726 6.06-.045.56.558 1.12 1.12 1.658 1.658l.333.334z\"></path>" } };
|
|
66
|
+
return React.createElement('svg', getSvgProps(_extends({}, props, { svgDataByHeight: svgDataByHeight })));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
CodeOfConductIcon.defaultProps = {
|
|
70
|
+
className: 'octicon octicon-code-of-conduct',
|
|
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 StyledCodeOfConductIcon = styled(CodeOfConductIcon)(COMMON, sx);
|
|
86
|
+
|
|
87
|
+
export default StyledCodeOfConductIcon;
|
|
@@ -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 FeedDiscussionIcon(props) {
|
|
65
|
+
var svgDataByHeight = { "16": { "width": 16, "path": "<path fill-rule=\"evenodd\" d=\"M8 16A8 8 0 108 0a8 8 0 000 16zM4 5a1 1 0 011-1h6a1 1 0 011 1v5a1 1 0 01-1 1H8.707l-1.853 1.854A.5.5 0 016 12.5V11H5a1 1 0 01-1-1V5z\"></path>" } };
|
|
66
|
+
return React.createElement('svg', getSvgProps(_extends({}, props, { svgDataByHeight: svgDataByHeight })));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
FeedDiscussionIcon.defaultProps = {
|
|
70
|
+
className: 'octicon octicon-feed-discussion',
|
|
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 StyledFeedDiscussionIcon = styled(FeedDiscussionIcon)(COMMON, sx);
|
|
86
|
+
|
|
87
|
+
export default StyledFeedDiscussionIcon;
|
|
@@ -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 FeedHeartIcon(props) {
|
|
65
|
+
var svgDataByHeight = { "16": { "width": 16, "path": "<path fill-rule=\"evenodd\" d=\"M8 16A8 8 0 108 0a8 8 0 000 16zm2.33-11.5c-1.22 0-1.83.5-2.323 1.136C7.513 5 6.903 4.5 5.682 4.5c-1.028 0-2.169.784-2.169 2.5 0 1.499 1.493 3.433 3.246 4.517.52.321.89.479 1.248.484.357-.005.728-.163 1.247-.484C11.007 10.433 12.5 8.5 12.5 7c0-1.716-1.14-2.5-2.17-2.5z\"></path>" } };
|
|
66
|
+
return React.createElement('svg', getSvgProps(_extends({}, props, { svgDataByHeight: svgDataByHeight })));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
FeedHeartIcon.defaultProps = {
|
|
70
|
+
className: 'octicon octicon-feed-heart',
|
|
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 StyledFeedHeartIcon = styled(FeedHeartIcon)(COMMON, sx);
|
|
86
|
+
|
|
87
|
+
export default StyledFeedHeartIcon;
|
|
@@ -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 FeedPersonIcon(props) {
|
|
65
|
+
var svgDataByHeight = { "16": { "width": 16, "path": "<path fill-rule=\"evenodd\" d=\"M8 16A8 8 0 108 0a8 8 0 000 16zm.847-8.145a2.502 2.502 0 10-1.694 0C5.471 8.261 4 9.775 4 11c0 .395.145.995 1 .995h6c.855 0 1-.6 1-.995 0-1.224-1.47-2.74-3.153-3.145z\"></path>" } };
|
|
66
|
+
return React.createElement('svg', getSvgProps(_extends({}, props, { svgDataByHeight: svgDataByHeight })));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
FeedPersonIcon.defaultProps = {
|
|
70
|
+
className: 'octicon octicon-feed-person',
|
|
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 StyledFeedPersonIcon = styled(FeedPersonIcon)(COMMON, sx);
|
|
86
|
+
|
|
87
|
+
export default StyledFeedPersonIcon;
|