@semcore/icon 3.8.1 → 3.9.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/CHANGELOG.md +4 -3
- package/clean.js +60 -0
- package/color/YoutubeAlt/l/index.d.ts +3 -0
- package/color/YoutubeAlt/l/index.js +3 -0
- package/color/YoutubeAlt/l/index.mjs +3 -0
- package/color/YoutubeAlt/m/index.d.ts +3 -0
- package/color/YoutubeAlt/m/index.js +3 -0
- package/color/YoutubeAlt/m/index.mjs +3 -0
- package/color/YoutubeColored/l/index.d.ts +6 -0
- package/color/YoutubeColored/l/index.js +52 -0
- package/color/YoutubeColored/l/index.mjs +32 -0
- package/color/YoutubeColored/m/index.d.ts +6 -0
- package/color/YoutubeColored/m/index.js +52 -0
- package/color/YoutubeColored/m/index.mjs +32 -0
- package/color/YoutubeInvert/l/index.d.ts +6 -0
- package/color/YoutubeInvert/l/index.js +51 -0
- package/color/YoutubeInvert/l/index.mjs +31 -0
- package/color/YoutubeInvert/m/index.d.ts +6 -0
- package/color/YoutubeInvert/m/index.js +51 -0
- package/color/YoutubeInvert/m/index.mjs +31 -0
- package/color/YoutubeRed/l/index.d.ts +3 -0
- package/color/YoutubeRed/l/index.js +3 -0
- package/color/YoutubeRed/l/index.mjs +3 -0
- package/color/YoutubeRed/m/index.d.ts +3 -0
- package/color/YoutubeRed/m/index.js +3 -0
- package/color/YoutubeRed/m/index.mjs +3 -0
- package/lib/cjs/Icon.js +7 -7
- package/lib/es6/Icon.js +7 -7
- package/package.json +2 -2
- /package/svg-new/color/{YoutubeAlt → YoutubeColored}/l.svg +0 -0
- /package/svg-new/color/{YoutubeAlt → YoutubeColored}/m.svg +0 -0
- /package/svg-new/color/{YoutubeRed → YoutubeInvert}/l.svg +0 -0
- /package/svg-new/color/{YoutubeRed → YoutubeInvert}/m.svg +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
-
## [3.
|
|
5
|
+
## [3.9.0] - 2023-02-09
|
|
6
6
|
|
|
7
|
-
###
|
|
7
|
+
### BREAK
|
|
8
8
|
|
|
9
|
-
-
|
|
9
|
+
- Removed `YoutubeAlt` icon, use `YoutubeColored` instead.
|
|
10
|
+
- Removed `YoutubeRed` icon, use `YoutubeInvert` instead.
|
|
10
11
|
|
|
11
12
|
## [3.8.0] - 2023-01-20
|
|
12
13
|
|
package/clean.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const util = require('util');
|
|
4
|
+
|
|
5
|
+
const readdir = util.promisify(fs.readdir);
|
|
6
|
+
const lstat = util.promisify(fs.lstat);
|
|
7
|
+
const unlink = util.promisify(fs.unlink);
|
|
8
|
+
const rm = util.promisify(fs.rm);
|
|
9
|
+
const rootDir = path.resolve(__dirname);
|
|
10
|
+
|
|
11
|
+
const ignoreFiles = [
|
|
12
|
+
'__tests__',
|
|
13
|
+
'src',
|
|
14
|
+
'svg',
|
|
15
|
+
'svg-new',
|
|
16
|
+
'node_modules',
|
|
17
|
+
'Stoller',
|
|
18
|
+
'YoutubeAlt',
|
|
19
|
+
'YoutubeRed',
|
|
20
|
+
'package.json',
|
|
21
|
+
'clean.js',
|
|
22
|
+
'.npmignore',
|
|
23
|
+
'CHANGELOG.md',
|
|
24
|
+
'README.md',
|
|
25
|
+
'transform-svg-legacy.config.js',
|
|
26
|
+
'transform-svg.config.js',
|
|
27
|
+
'tsconfig.json',
|
|
28
|
+
];
|
|
29
|
+
|
|
30
|
+
const removeDir = async (dir) => {
|
|
31
|
+
try {
|
|
32
|
+
const allFiles = await readdir(dir);
|
|
33
|
+
const files = allFiles.filter((f) => !ignoreFiles.includes(f));
|
|
34
|
+
await Promise.all(
|
|
35
|
+
files.map(async (file) => {
|
|
36
|
+
try {
|
|
37
|
+
const p = path.join(dir, file);
|
|
38
|
+
const stat = await lstat(p);
|
|
39
|
+
if (stat.isDirectory()) {
|
|
40
|
+
await removeDir(p);
|
|
41
|
+
} else {
|
|
42
|
+
await unlink(p);
|
|
43
|
+
}
|
|
44
|
+
} catch (err) {
|
|
45
|
+
console.error(err);
|
|
46
|
+
}
|
|
47
|
+
}),
|
|
48
|
+
);
|
|
49
|
+
if (dir !== rootDir && dir !== path.join(rootDir, 'color')) {
|
|
50
|
+
await rm(dir, {
|
|
51
|
+
recursive: true,
|
|
52
|
+
force: true,
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
} catch (err) {
|
|
56
|
+
console.error(err);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
removeDir(rootDir);
|
|
@@ -2,5 +2,8 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { IIconProps } from '@semcore/icon';
|
|
4
4
|
declare const _default: <T>(props: IIconProps & T) => React.ReactElement;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated The "YoutubeAlt" icon is deprecated. Use the "YoutubeColored".
|
|
7
|
+
*/
|
|
5
8
|
export default _default;
|
|
6
9
|
|
|
@@ -49,4 +49,7 @@ YoutubeAlt.displayName = 'YoutubeAlt';
|
|
|
49
49
|
|
|
50
50
|
var _default = (0, _core.createBaseComponent)(YoutubeAlt);
|
|
51
51
|
|
|
52
|
+
// eslint-disable-next-line no-console
|
|
53
|
+
console.warn(true, 'The "YoutubeAlt" icon is deprecated. Use the "YoutubeColored"', 'Icon');
|
|
54
|
+
|
|
52
55
|
exports["default"] = _default;
|
|
@@ -28,5 +28,8 @@ function YoutubeAlt({
|
|
|
28
28
|
}));
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
// eslint-disable-next-line no-console
|
|
32
|
+
console.warn(true, 'The "YoutubeAlt" icon is deprecated. Use the "YoutubeColored"', 'Icon');
|
|
33
|
+
|
|
31
34
|
YoutubeAlt.displayName = 'YoutubeAlt';
|
|
32
35
|
export default createBaseComponent(YoutubeAlt);
|
|
@@ -2,5 +2,8 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { IIconProps } from '@semcore/icon';
|
|
4
4
|
declare const _default: <T>(props: IIconProps & T) => React.ReactElement;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated The "YoutubeAlt" icon is deprecated. Use the "YoutubeColored".
|
|
7
|
+
*/
|
|
5
8
|
export default _default;
|
|
6
9
|
|
|
@@ -49,4 +49,7 @@ YoutubeAlt.displayName = 'YoutubeAlt';
|
|
|
49
49
|
|
|
50
50
|
var _default = (0, _core.createBaseComponent)(YoutubeAlt);
|
|
51
51
|
|
|
52
|
+
// eslint-disable-next-line no-console
|
|
53
|
+
console.warn(true, 'The "YoutubeAlt" icon is deprecated. Use the "YoutubeColored"', 'Icon');
|
|
54
|
+
|
|
52
55
|
exports["default"] = _default;
|
|
@@ -28,5 +28,8 @@ function YoutubeAlt({
|
|
|
28
28
|
}));
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
// eslint-disable-next-line no-console
|
|
32
|
+
console.warn(true, 'The "YoutubeAlt" icon is deprecated. Use the "YoutubeColored"', 'Icon');
|
|
33
|
+
|
|
31
34
|
YoutubeAlt.displayName = 'YoutubeAlt';
|
|
32
35
|
export default createBaseComponent(YoutubeAlt);
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
|
|
12
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
|
|
16
|
+
var _core = require("@semcore/core");
|
|
17
|
+
|
|
18
|
+
var _icon = _interopRequireDefault(require("@semcore/icon"));
|
|
19
|
+
|
|
20
|
+
var _excluded = ["width", "height", "viewBox"];
|
|
21
|
+
|
|
22
|
+
function YoutubeColored(_ref, ref) {
|
|
23
|
+
var _ref$width = _ref.width,
|
|
24
|
+
width = _ref$width === void 0 ? '24' : _ref$width,
|
|
25
|
+
_ref$height = _ref.height,
|
|
26
|
+
height = _ref$height === void 0 ? '25' : _ref$height,
|
|
27
|
+
_ref$viewBox = _ref.viewBox,
|
|
28
|
+
viewBox = _ref$viewBox === void 0 ? '0 0 24 25' : _ref$viewBox,
|
|
29
|
+
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
30
|
+
return /*#__PURE__*/_react["default"].createElement(_icon["default"], (0, _extends2["default"])({
|
|
31
|
+
ref: ref,
|
|
32
|
+
"data-name": "YoutubeColored",
|
|
33
|
+
"data-group": "l",
|
|
34
|
+
width: width,
|
|
35
|
+
height: height,
|
|
36
|
+
viewBox: viewBox
|
|
37
|
+
}, props), /*#__PURE__*/_react["default"].createElement("path", {
|
|
38
|
+
d: "M23.5 3.22a3 3 0 0 0-2.13-2.12C19.5.6 12 .6 12 .6s-7.5 0-9.38.5A3 3 0 0 0 .5 3.22C0 5.1 0 9 0 9s0 3.9.5 5.78a3 3 0 0 0 2.12 2.12c1.87.5 9.38.5 9.38.5s7.5 0 9.38-.5a3 3 0 0 0 2.12-2.12C24 12.9 24 9 24 9s0-3.9-.5-5.78Z",
|
|
39
|
+
fill: "red",
|
|
40
|
+
shapeRendering: "geometricPrecision"
|
|
41
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
42
|
+
d: "M9.6 12.6 15.83 9 9.6 5.4v7.2Z",
|
|
43
|
+
fill: "#fff",
|
|
44
|
+
shapeRendering: "geometricPrecision"
|
|
45
|
+
}));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
YoutubeColored.displayName = 'YoutubeColored';
|
|
49
|
+
|
|
50
|
+
var _default = (0, _core.createBaseComponent)(YoutubeColored);
|
|
51
|
+
|
|
52
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createBaseComponent } from '@semcore/core';
|
|
5
|
+
import Icon from '@semcore/icon';
|
|
6
|
+
|
|
7
|
+
function YoutubeColored({
|
|
8
|
+
width = '24',
|
|
9
|
+
height = '25',
|
|
10
|
+
viewBox = '0 0 24 25',
|
|
11
|
+
...props
|
|
12
|
+
}, ref) {
|
|
13
|
+
return /*#__PURE__*/React.createElement(Icon, _extends({
|
|
14
|
+
ref: ref,
|
|
15
|
+
"data-name": "YoutubeColored",
|
|
16
|
+
"data-group": "l",
|
|
17
|
+
width: width,
|
|
18
|
+
height: height,
|
|
19
|
+
viewBox: viewBox
|
|
20
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
21
|
+
d: "M23.5 3.22a3 3 0 0 0-2.13-2.12C19.5.6 12 .6 12 .6s-7.5 0-9.38.5A3 3 0 0 0 .5 3.22C0 5.1 0 9 0 9s0 3.9.5 5.78a3 3 0 0 0 2.12 2.12c1.87.5 9.38.5 9.38.5s7.5 0 9.38-.5a3 3 0 0 0 2.12-2.12C24 12.9 24 9 24 9s0-3.9-.5-5.78Z",
|
|
22
|
+
fill: "red",
|
|
23
|
+
shapeRendering: "geometricPrecision"
|
|
24
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
25
|
+
d: "M9.6 12.6 15.83 9 9.6 5.4v7.2Z",
|
|
26
|
+
fill: "#fff",
|
|
27
|
+
shapeRendering: "geometricPrecision"
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
YoutubeColored.displayName = 'YoutubeColored';
|
|
32
|
+
export default createBaseComponent(YoutubeColored);
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
|
|
12
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
|
|
16
|
+
var _core = require("@semcore/core");
|
|
17
|
+
|
|
18
|
+
var _icon = _interopRequireDefault(require("@semcore/icon"));
|
|
19
|
+
|
|
20
|
+
var _excluded = ["width", "height", "viewBox"];
|
|
21
|
+
|
|
22
|
+
function YoutubeColored(_ref, ref) {
|
|
23
|
+
var _ref$width = _ref.width,
|
|
24
|
+
width = _ref$width === void 0 ? '16' : _ref$width,
|
|
25
|
+
_ref$height = _ref.height,
|
|
26
|
+
height = _ref$height === void 0 ? '16' : _ref$height,
|
|
27
|
+
_ref$viewBox = _ref.viewBox,
|
|
28
|
+
viewBox = _ref$viewBox === void 0 ? '0 0 16 16' : _ref$viewBox,
|
|
29
|
+
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
30
|
+
return /*#__PURE__*/_react["default"].createElement(_icon["default"], (0, _extends2["default"])({
|
|
31
|
+
ref: ref,
|
|
32
|
+
"data-name": "YoutubeColored",
|
|
33
|
+
"data-group": "m",
|
|
34
|
+
width: width,
|
|
35
|
+
height: height,
|
|
36
|
+
viewBox: viewBox
|
|
37
|
+
}, props), /*#__PURE__*/_react["default"].createElement("path", {
|
|
38
|
+
d: "M15.66 4.15a2 2 0 0 0-1.41-1.42C13 2.4 8 2.4 8 2.4s-5 0-6.25.33A2 2 0 0 0 .33 4.15C0 5.4 0 8 0 8s0 2.6.34 3.85a2 2 0 0 0 1.4 1.42C3 13.6 8 13.6 8 13.6s5 0 6.25-.33a2 2 0 0 0 1.42-1.42C16 10.6 16 8 16 8s0-2.6-.34-3.85Z",
|
|
39
|
+
fill: "red",
|
|
40
|
+
shapeRendering: "geometricPrecision"
|
|
41
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
42
|
+
d: "M6.4 10.4 10.55 8 6.4 5.6v4.8Z",
|
|
43
|
+
fill: "#fff",
|
|
44
|
+
shapeRendering: "geometricPrecision"
|
|
45
|
+
}));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
YoutubeColored.displayName = 'YoutubeColored';
|
|
49
|
+
|
|
50
|
+
var _default = (0, _core.createBaseComponent)(YoutubeColored);
|
|
51
|
+
|
|
52
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createBaseComponent } from '@semcore/core';
|
|
5
|
+
import Icon from '@semcore/icon';
|
|
6
|
+
|
|
7
|
+
function YoutubeColored({
|
|
8
|
+
width = '16',
|
|
9
|
+
height = '16',
|
|
10
|
+
viewBox = '0 0 16 16',
|
|
11
|
+
...props
|
|
12
|
+
}, ref) {
|
|
13
|
+
return /*#__PURE__*/React.createElement(Icon, _extends({
|
|
14
|
+
ref: ref,
|
|
15
|
+
"data-name": "YoutubeColored",
|
|
16
|
+
"data-group": "m",
|
|
17
|
+
width: width,
|
|
18
|
+
height: height,
|
|
19
|
+
viewBox: viewBox
|
|
20
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
21
|
+
d: "M15.66 4.15a2 2 0 0 0-1.41-1.42C13 2.4 8 2.4 8 2.4s-5 0-6.25.33A2 2 0 0 0 .33 4.15C0 5.4 0 8 0 8s0 2.6.34 3.85a2 2 0 0 0 1.4 1.42C3 13.6 8 13.6 8 13.6s5 0 6.25-.33a2 2 0 0 0 1.42-1.42C16 10.6 16 8 16 8s0-2.6-.34-3.85Z",
|
|
22
|
+
fill: "red",
|
|
23
|
+
shapeRendering: "geometricPrecision"
|
|
24
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
25
|
+
d: "M6.4 10.4 10.55 8 6.4 5.6v4.8Z",
|
|
26
|
+
fill: "#fff",
|
|
27
|
+
shapeRendering: "geometricPrecision"
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
YoutubeColored.displayName = 'YoutubeColored';
|
|
32
|
+
export default createBaseComponent(YoutubeColored);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
|
|
12
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
|
|
16
|
+
var _core = require("@semcore/core");
|
|
17
|
+
|
|
18
|
+
var _icon = _interopRequireDefault(require("@semcore/icon"));
|
|
19
|
+
|
|
20
|
+
var _excluded = ["width", "height", "viewBox"];
|
|
21
|
+
|
|
22
|
+
function YoutubeInvert(_ref, ref) {
|
|
23
|
+
var _ref$width = _ref.width,
|
|
24
|
+
width = _ref$width === void 0 ? '24' : _ref$width,
|
|
25
|
+
_ref$height = _ref.height,
|
|
26
|
+
height = _ref$height === void 0 ? '25' : _ref$height,
|
|
27
|
+
_ref$viewBox = _ref.viewBox,
|
|
28
|
+
viewBox = _ref$viewBox === void 0 ? '0 0 24 25' : _ref$viewBox,
|
|
29
|
+
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
30
|
+
return /*#__PURE__*/_react["default"].createElement(_icon["default"], (0, _extends2["default"])({
|
|
31
|
+
ref: ref,
|
|
32
|
+
"data-name": "YoutubeInvert",
|
|
33
|
+
"data-group": "l",
|
|
34
|
+
width: width,
|
|
35
|
+
height: height,
|
|
36
|
+
viewBox: viewBox
|
|
37
|
+
}, props), /*#__PURE__*/_react["default"].createElement("path", {
|
|
38
|
+
d: "M23.5 3.22a3 3 0 0 0-2.13-2.12C19.5.6 12 .6 12 .6s-7.5 0-9.38.5A3 3 0 0 0 .5 3.22C0 5.1 0 9 0 9s0 3.9.5 5.78a3 3 0 0 0 2.12 2.12c1.87.5 9.38.5 9.38.5s7.5 0 9.38-.5a3 3 0 0 0 2.12-2.12C24 12.9 24 9 24 9s0-3.9-.5-5.78Z",
|
|
39
|
+
fill: "#fff",
|
|
40
|
+
shapeRendering: "geometricPrecision"
|
|
41
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
42
|
+
d: "M9.6 12.6 15.83 9 9.6 5.4v7.2Z",
|
|
43
|
+
shapeRendering: "geometricPrecision"
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
YoutubeInvert.displayName = 'YoutubeInvert';
|
|
48
|
+
|
|
49
|
+
var _default = (0, _core.createBaseComponent)(YoutubeInvert);
|
|
50
|
+
|
|
51
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createBaseComponent } from '@semcore/core';
|
|
5
|
+
import Icon from '@semcore/icon';
|
|
6
|
+
|
|
7
|
+
function YoutubeInvert({
|
|
8
|
+
width = '24',
|
|
9
|
+
height = '25',
|
|
10
|
+
viewBox = '0 0 24 25',
|
|
11
|
+
...props
|
|
12
|
+
}, ref) {
|
|
13
|
+
return /*#__PURE__*/React.createElement(Icon, _extends({
|
|
14
|
+
ref: ref,
|
|
15
|
+
"data-name": "YoutubeInvert",
|
|
16
|
+
"data-group": "l",
|
|
17
|
+
width: width,
|
|
18
|
+
height: height,
|
|
19
|
+
viewBox: viewBox
|
|
20
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
21
|
+
d: "M23.5 3.22a3 3 0 0 0-2.13-2.12C19.5.6 12 .6 12 .6s-7.5 0-9.38.5A3 3 0 0 0 .5 3.22C0 5.1 0 9 0 9s0 3.9.5 5.78a3 3 0 0 0 2.12 2.12c1.87.5 9.38.5 9.38.5s7.5 0 9.38-.5a3 3 0 0 0 2.12-2.12C24 12.9 24 9 24 9s0-3.9-.5-5.78Z",
|
|
22
|
+
fill: "#fff",
|
|
23
|
+
shapeRendering: "geometricPrecision"
|
|
24
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
25
|
+
d: "M9.6 12.6 15.83 9 9.6 5.4v7.2Z",
|
|
26
|
+
shapeRendering: "geometricPrecision"
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
YoutubeInvert.displayName = 'YoutubeInvert';
|
|
31
|
+
export default createBaseComponent(YoutubeInvert);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
|
|
12
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
|
|
16
|
+
var _core = require("@semcore/core");
|
|
17
|
+
|
|
18
|
+
var _icon = _interopRequireDefault(require("@semcore/icon"));
|
|
19
|
+
|
|
20
|
+
var _excluded = ["width", "height", "viewBox"];
|
|
21
|
+
|
|
22
|
+
function YoutubeInvert(_ref, ref) {
|
|
23
|
+
var _ref$width = _ref.width,
|
|
24
|
+
width = _ref$width === void 0 ? '16' : _ref$width,
|
|
25
|
+
_ref$height = _ref.height,
|
|
26
|
+
height = _ref$height === void 0 ? '16' : _ref$height,
|
|
27
|
+
_ref$viewBox = _ref.viewBox,
|
|
28
|
+
viewBox = _ref$viewBox === void 0 ? '0 0 16 16' : _ref$viewBox,
|
|
29
|
+
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
30
|
+
return /*#__PURE__*/_react["default"].createElement(_icon["default"], (0, _extends2["default"])({
|
|
31
|
+
ref: ref,
|
|
32
|
+
"data-name": "YoutubeInvert",
|
|
33
|
+
"data-group": "m",
|
|
34
|
+
width: width,
|
|
35
|
+
height: height,
|
|
36
|
+
viewBox: viewBox
|
|
37
|
+
}, props), /*#__PURE__*/_react["default"].createElement("path", {
|
|
38
|
+
d: "M15.66 4.15a2 2 0 0 0-1.41-1.42C13 2.4 8 2.4 8 2.4s-5 0-6.25.33A2 2 0 0 0 .33 4.15C0 5.4 0 8 0 8s0 2.6.34 3.85a2 2 0 0 0 1.4 1.42C3 13.6 8 13.6 8 13.6s5 0 6.25-.33a2 2 0 0 0 1.42-1.42C16 10.6 16 8 16 8s0-2.6-.34-3.85Z",
|
|
39
|
+
fill: "#fff",
|
|
40
|
+
shapeRendering: "geometricPrecision"
|
|
41
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
42
|
+
d: "M6.4 10.4 10.55 8 6.4 5.6v4.8Z",
|
|
43
|
+
shapeRendering: "geometricPrecision"
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
YoutubeInvert.displayName = 'YoutubeInvert';
|
|
48
|
+
|
|
49
|
+
var _default = (0, _core.createBaseComponent)(YoutubeInvert);
|
|
50
|
+
|
|
51
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { createBaseComponent } from '@semcore/core';
|
|
5
|
+
import Icon from '@semcore/icon';
|
|
6
|
+
|
|
7
|
+
function YoutubeInvert({
|
|
8
|
+
width = '16',
|
|
9
|
+
height = '16',
|
|
10
|
+
viewBox = '0 0 16 16',
|
|
11
|
+
...props
|
|
12
|
+
}, ref) {
|
|
13
|
+
return /*#__PURE__*/React.createElement(Icon, _extends({
|
|
14
|
+
ref: ref,
|
|
15
|
+
"data-name": "YoutubeInvert",
|
|
16
|
+
"data-group": "m",
|
|
17
|
+
width: width,
|
|
18
|
+
height: height,
|
|
19
|
+
viewBox: viewBox
|
|
20
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
21
|
+
d: "M15.66 4.15a2 2 0 0 0-1.41-1.42C13 2.4 8 2.4 8 2.4s-5 0-6.25.33A2 2 0 0 0 .33 4.15C0 5.4 0 8 0 8s0 2.6.34 3.85a2 2 0 0 0 1.4 1.42C3 13.6 8 13.6 8 13.6s5 0 6.25-.33a2 2 0 0 0 1.42-1.42C16 10.6 16 8 16 8s0-2.6-.34-3.85Z",
|
|
22
|
+
fill: "#fff",
|
|
23
|
+
shapeRendering: "geometricPrecision"
|
|
24
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
25
|
+
d: "M6.4 10.4 10.55 8 6.4 5.6v4.8Z",
|
|
26
|
+
shapeRendering: "geometricPrecision"
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
YoutubeInvert.displayName = 'YoutubeInvert';
|
|
31
|
+
export default createBaseComponent(YoutubeInvert);
|
|
@@ -2,5 +2,8 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { IIconProps } from '@semcore/icon';
|
|
4
4
|
declare const _default: <T>(props: IIconProps & T) => React.ReactElement;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated The "YoutubeRed" icon is deprecated. Use the "YoutubeInvert".
|
|
7
|
+
*/
|
|
5
8
|
export default _default;
|
|
6
9
|
|
|
@@ -48,4 +48,7 @@ YoutubeRed.displayName = 'YoutubeRed';
|
|
|
48
48
|
|
|
49
49
|
var _default = (0, _core.createBaseComponent)(YoutubeRed);
|
|
50
50
|
|
|
51
|
+
// eslint-disable-next-line no-console
|
|
52
|
+
console.warn(true, 'The "YoutubeRed" icon is deprecated. Use the "YoutubeInvert"', 'Icon');
|
|
53
|
+
|
|
51
54
|
exports["default"] = _default;
|
|
@@ -27,5 +27,8 @@ function YoutubeRed({
|
|
|
27
27
|
}));
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
// eslint-disable-next-line no-console
|
|
31
|
+
console.warn(true, 'The "YoutubeRed" icon is deprecated. Use the "YoutubeInvert"', 'Icon');
|
|
32
|
+
|
|
30
33
|
YoutubeRed.displayName = 'YoutubeRed';
|
|
31
34
|
export default createBaseComponent(YoutubeRed);
|
|
@@ -2,5 +2,8 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { IIconProps } from '@semcore/icon';
|
|
4
4
|
declare const _default: <T>(props: IIconProps & T) => React.ReactElement;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated The "YoutubeRed" icon is deprecated. Use the "YoutubeInvert".
|
|
7
|
+
*/
|
|
5
8
|
export default _default;
|
|
6
9
|
|
|
@@ -48,4 +48,7 @@ YoutubeRed.displayName = 'YoutubeRed';
|
|
|
48
48
|
|
|
49
49
|
var _default = (0, _core.createBaseComponent)(YoutubeRed);
|
|
50
50
|
|
|
51
|
+
// eslint-disable-next-line no-console
|
|
52
|
+
console.warn(true, 'The "YoutubeRed" icon is deprecated. Use the "YoutubeInvert"', 'Icon');
|
|
53
|
+
|
|
51
54
|
exports["default"] = _default;
|
|
@@ -27,5 +27,8 @@ function YoutubeRed({
|
|
|
27
27
|
}));
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
// eslint-disable-next-line no-console
|
|
31
|
+
console.warn(true, 'The "YoutubeRed" icon is deprecated. Use the "YoutubeInvert"', 'Icon');
|
|
32
|
+
|
|
30
33
|
YoutubeRed.displayName = 'YoutubeRed';
|
|
31
34
|
export default createBaseComponent(YoutubeRed);
|
package/lib/cjs/Icon.js
CHANGED
|
@@ -52,16 +52,16 @@ var styles = (
|
|
|
52
52
|
/*__reshadow_css_start__*/
|
|
53
53
|
_core.sstyled.insert(
|
|
54
54
|
/*__inner_css_start__*/
|
|
55
|
-
".
|
|
55
|
+
".___SIcon_1mee3_gg_{display:inline-block;-webkit-user-select:none;-moz-user-select:none;user-select:none;shape-rendering:geometricPrecision;box-sizing:content-box;fill:currentColor;flex-shrink:0;outline:none;color:var(--color_1mee3)}.___SIcon_1mee3_gg_.__keyboardFocused_1mee3_gg_{box-shadow:var(--intergalactic-keyboard-focus,0 0 0 3px rgba(0,143,248,.3))}.___SIcon_1mee3_gg_.__interactive_1mee3_gg_{cursor:pointer}@media (hover: hover){.___SIcon_1mee3_gg_.__interactive_1mee3_gg_:hover{color:var(--color-interactive_1mee3)}}"
|
|
56
56
|
/*__inner_css_end__*/
|
|
57
|
-
, "
|
|
57
|
+
, "1mee3_gg_")
|
|
58
58
|
/*__reshadow_css_end__*/
|
|
59
59
|
, {
|
|
60
|
-
"__SIcon": "
|
|
61
|
-
"--color": "--
|
|
62
|
-
"_keyboardFocused": "
|
|
63
|
-
"_interactive": "
|
|
64
|
-
"--color-interactive": "--color-
|
|
60
|
+
"__SIcon": "___SIcon_1mee3_gg_",
|
|
61
|
+
"--color": "--color_1mee3",
|
|
62
|
+
"_keyboardFocused": "__keyboardFocused_1mee3_gg_",
|
|
63
|
+
"_interactive": "__interactive_1mee3_gg_",
|
|
64
|
+
"--color-interactive": "--color-interactive_1mee3"
|
|
65
65
|
});
|
|
66
66
|
|
|
67
67
|
function Icon(props, ref) {
|
package/lib/es6/Icon.js
CHANGED
|
@@ -25,16 +25,16 @@ var styles = (
|
|
|
25
25
|
/*__reshadow_css_start__*/
|
|
26
26
|
_sstyled.insert(
|
|
27
27
|
/*__inner_css_start__*/
|
|
28
|
-
".
|
|
28
|
+
".___SIcon_1mee3_gg_{display:inline-block;-webkit-user-select:none;-moz-user-select:none;user-select:none;shape-rendering:geometricPrecision;box-sizing:content-box;fill:currentColor;flex-shrink:0;outline:none;color:var(--color_1mee3)}.___SIcon_1mee3_gg_.__keyboardFocused_1mee3_gg_{box-shadow:var(--intergalactic-keyboard-focus,0 0 0 3px rgba(0,143,248,.3))}.___SIcon_1mee3_gg_.__interactive_1mee3_gg_{cursor:pointer}@media (hover: hover){.___SIcon_1mee3_gg_.__interactive_1mee3_gg_:hover{color:var(--color-interactive_1mee3)}}"
|
|
29
29
|
/*__inner_css_end__*/
|
|
30
|
-
, "
|
|
30
|
+
, "1mee3_gg_")
|
|
31
31
|
/*__reshadow_css_end__*/
|
|
32
32
|
, {
|
|
33
|
-
"__SIcon": "
|
|
34
|
-
"--color": "--
|
|
35
|
-
"_keyboardFocused": "
|
|
36
|
-
"_interactive": "
|
|
37
|
-
"--color-interactive": "--color-
|
|
33
|
+
"__SIcon": "___SIcon_1mee3_gg_",
|
|
34
|
+
"--color": "--color_1mee3",
|
|
35
|
+
"_keyboardFocused": "__keyboardFocused_1mee3_gg_",
|
|
36
|
+
"_interactive": "__interactive_1mee3_gg_",
|
|
37
|
+
"--color-interactive": "--color-interactive_1mee3"
|
|
38
38
|
});
|
|
39
39
|
|
|
40
40
|
function Icon(props, ref) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/icon",
|
|
3
3
|
"description": "Semrush Icon Component",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.9.0",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -36,6 +36,6 @@
|
|
|
36
36
|
"transform": "pnpm icon-transform-svg",
|
|
37
37
|
"build": "pnpm run clean && pnpm semcore-builder --source=js && pnpm run transform --configFile=./transform-svg-legacy.config.js && pnpm run transform --configFile=./transform-svg.config.js",
|
|
38
38
|
"test": "jest",
|
|
39
|
-
"clean": "
|
|
39
|
+
"clean": "node clean.js"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|