@semcore/icon 4.8.3-prerelease.0 → 4.9.0-prerelease.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 +7 -1
- package/Plug/l/index.d.ts +6 -0
- package/Plug/l/index.js +38 -0
- package/Plug/l/index.mjs +26 -0
- package/Plug/m/index.d.ts +6 -0
- package/Plug/m/index.js +45 -0
- package/Plug/m/index.mjs +33 -0
- package/lib/cjs/Icon.js +6 -6
- package/lib/es6/Icon.js +6 -6
- package/package.json +5 -5
- package/svg/icon/Plug/l.svg +3 -0
- package/svg/icon/Plug/m.svg +10 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
-
## [4.
|
|
5
|
+
## [4.9.0-prerelease.0] - 2023-09-18
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Added new `Plug` icon.
|
|
10
|
+
|
|
11
|
+
## [4.8.3] - 2023-09-13
|
|
6
12
|
|
|
7
13
|
### Fixed
|
|
8
14
|
|
package/Plug/l/index.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
var _core = require("@semcore/core");
|
|
12
|
+
var _icon = _interopRequireDefault(require("@semcore/icon"));
|
|
13
|
+
var _excluded = ["width", "height", "viewBox"];
|
|
14
|
+
function Plug(_ref, ref) {
|
|
15
|
+
var _ref$width = _ref.width,
|
|
16
|
+
width = _ref$width === void 0 ? '24' : _ref$width,
|
|
17
|
+
_ref$height = _ref.height,
|
|
18
|
+
height = _ref$height === void 0 ? '24' : _ref$height,
|
|
19
|
+
_ref$viewBox = _ref.viewBox,
|
|
20
|
+
viewBox = _ref$viewBox === void 0 ? '0 0 24 24' : _ref$viewBox,
|
|
21
|
+
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
22
|
+
return /*#__PURE__*/_react["default"].createElement(_icon["default"], (0, _extends2["default"])({
|
|
23
|
+
ref: ref,
|
|
24
|
+
"data-name": "Plug",
|
|
25
|
+
"data-group": "l",
|
|
26
|
+
width: width,
|
|
27
|
+
height: height,
|
|
28
|
+
viewBox: viewBox
|
|
29
|
+
}, props), /*#__PURE__*/_react["default"].createElement("path", {
|
|
30
|
+
fillRule: "evenodd",
|
|
31
|
+
d: "M10.293 1.293a1 1 0 0 1 1.414 0L14.5 4.086l2.793-2.793a1 1 0 1 1 1.414 1.414L15.914 5.5 18.5 8.086l2.793-2.793a1 1 0 1 1 1.414 1.414L19.914 9.5l2.793 2.793a1 1 0 0 1 0 1.414c-.604.605-1.256.159-1.728-.314l-5.59 4.274c-2.223 1.7-5.023 1.113-6.889-.753l-5.793 5.793a1 1 0 0 1-1.414-1.414L7.086 15.5c-1.866-1.866-2.453-4.666-.753-6.89l4.274-5.589c-.473-.472-.919-1.124-.314-1.728Zm1.74 3.155 7.519 7.518-5.378 4.112a3 3 0 0 1-3.943-.261l-2.048-2.048a3 3 0 0 1-.261-3.943l4.112-5.378Z",
|
|
32
|
+
clipRule: "evenodd",
|
|
33
|
+
shapeRendering: "geometricPrecision"
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
Plug.displayName = 'Plug';
|
|
37
|
+
var _default = (0, _core.createBaseComponent)(Plug);
|
|
38
|
+
exports["default"] = _default;
|
package/Plug/l/index.mjs
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
import React from 'react';
|
|
3
|
+
import { createBaseComponent } from '@semcore/core';
|
|
4
|
+
import Icon from '@semcore/icon';
|
|
5
|
+
function Plug({
|
|
6
|
+
width = '24',
|
|
7
|
+
height = '24',
|
|
8
|
+
viewBox = '0 0 24 24',
|
|
9
|
+
...props
|
|
10
|
+
}, ref) {
|
|
11
|
+
return /*#__PURE__*/React.createElement(Icon, _extends({
|
|
12
|
+
ref: ref,
|
|
13
|
+
"data-name": "Plug",
|
|
14
|
+
"data-group": "l",
|
|
15
|
+
width: width,
|
|
16
|
+
height: height,
|
|
17
|
+
viewBox: viewBox
|
|
18
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
19
|
+
fillRule: "evenodd",
|
|
20
|
+
d: "M10.293 1.293a1 1 0 0 1 1.414 0L14.5 4.086l2.793-2.793a1 1 0 1 1 1.414 1.414L15.914 5.5 18.5 8.086l2.793-2.793a1 1 0 1 1 1.414 1.414L19.914 9.5l2.793 2.793a1 1 0 0 1 0 1.414c-.604.605-1.256.159-1.728-.314l-5.59 4.274c-2.223 1.7-5.023 1.113-6.889-.753l-5.793 5.793a1 1 0 0 1-1.414-1.414L7.086 15.5c-1.866-1.866-2.453-4.666-.753-6.89l4.274-5.589c-.473-.472-.919-1.124-.314-1.728Zm1.74 3.155 7.519 7.518-5.378 4.112a3 3 0 0 1-3.943-.261l-2.048-2.048a3 3 0 0 1-.261-3.943l4.112-5.378Z",
|
|
21
|
+
clipRule: "evenodd",
|
|
22
|
+
shapeRendering: "geometricPrecision"
|
|
23
|
+
}));
|
|
24
|
+
}
|
|
25
|
+
Plug.displayName = 'Plug';
|
|
26
|
+
export default createBaseComponent(Plug);
|
package/Plug/m/index.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
var _core = require("@semcore/core");
|
|
12
|
+
var _icon = _interopRequireDefault(require("@semcore/icon"));
|
|
13
|
+
var _excluded = ["width", "height", "viewBox"];
|
|
14
|
+
function Plug(_ref, ref) {
|
|
15
|
+
var _ref$width = _ref.width,
|
|
16
|
+
width = _ref$width === void 0 ? '16' : _ref$width,
|
|
17
|
+
_ref$height = _ref.height,
|
|
18
|
+
height = _ref$height === void 0 ? '16' : _ref$height,
|
|
19
|
+
_ref$viewBox = _ref.viewBox,
|
|
20
|
+
viewBox = _ref$viewBox === void 0 ? '0 0 16 16' : _ref$viewBox,
|
|
21
|
+
props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
22
|
+
return /*#__PURE__*/_react["default"].createElement(_icon["default"], (0, _extends2["default"])({
|
|
23
|
+
ref: ref,
|
|
24
|
+
"data-name": "Plug",
|
|
25
|
+
"data-group": "m",
|
|
26
|
+
width: width,
|
|
27
|
+
height: height,
|
|
28
|
+
viewBox: viewBox
|
|
29
|
+
}, props), /*#__PURE__*/_react["default"].createElement("g", {
|
|
30
|
+
clipPath: "url(#a)"
|
|
31
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
32
|
+
fillRule: "evenodd",
|
|
33
|
+
d: "M6.293.293a1 1 0 0 1 1.414 0L9.5 2.086 11.293.293a1 1 0 1 1 1.414 1.414L10.914 3.5 12.5 5.086l1.793-1.793a1 1 0 1 1 1.414 1.414L13.914 6.5l1.793 1.793a1 1 0 0 1 0 1.414c-.6.601-1.25.163-1.722-.308l-2.55 2.143a4.93 4.93 0 0 1-5.897.334l-3.83 3.831a1 1 0 0 1-1.415-1.414l3.838-3.838a4.93 4.93 0 0 1 .319-5.806l2.153-2.632c-.472-.472-.912-1.122-.31-1.724Zm1.731 3.145 4.541 4.541-2.417 2.032a2.928 2.928 0 0 1-4.15-4.096l2.026-2.477Z",
|
|
34
|
+
clipRule: "evenodd",
|
|
35
|
+
shapeRendering: "geometricPrecision"
|
|
36
|
+
})), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("clipPath", {
|
|
37
|
+
id: "a"
|
|
38
|
+
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
39
|
+
d: "M0 0h16v16H0z",
|
|
40
|
+
shapeRendering: "geometricPrecision"
|
|
41
|
+
}))));
|
|
42
|
+
}
|
|
43
|
+
Plug.displayName = 'Plug';
|
|
44
|
+
var _default = (0, _core.createBaseComponent)(Plug);
|
|
45
|
+
exports["default"] = _default;
|
package/Plug/m/index.mjs
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
import React from 'react';
|
|
3
|
+
import { createBaseComponent } from '@semcore/core';
|
|
4
|
+
import Icon from '@semcore/icon';
|
|
5
|
+
function Plug({
|
|
6
|
+
width = '16',
|
|
7
|
+
height = '16',
|
|
8
|
+
viewBox = '0 0 16 16',
|
|
9
|
+
...props
|
|
10
|
+
}, ref) {
|
|
11
|
+
return /*#__PURE__*/React.createElement(Icon, _extends({
|
|
12
|
+
ref: ref,
|
|
13
|
+
"data-name": "Plug",
|
|
14
|
+
"data-group": "m",
|
|
15
|
+
width: width,
|
|
16
|
+
height: height,
|
|
17
|
+
viewBox: viewBox
|
|
18
|
+
}, props), /*#__PURE__*/React.createElement("g", {
|
|
19
|
+
clipPath: "url(#a)"
|
|
20
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
21
|
+
fillRule: "evenodd",
|
|
22
|
+
d: "M6.293.293a1 1 0 0 1 1.414 0L9.5 2.086 11.293.293a1 1 0 1 1 1.414 1.414L10.914 3.5 12.5 5.086l1.793-1.793a1 1 0 1 1 1.414 1.414L13.914 6.5l1.793 1.793a1 1 0 0 1 0 1.414c-.6.601-1.25.163-1.722-.308l-2.55 2.143a4.93 4.93 0 0 1-5.897.334l-3.83 3.831a1 1 0 0 1-1.415-1.414l3.838-3.838a4.93 4.93 0 0 1 .319-5.806l2.153-2.632c-.472-.472-.912-1.122-.31-1.724Zm1.731 3.145 4.541 4.541-2.417 2.032a2.928 2.928 0 0 1-4.15-4.096l2.026-2.477Z",
|
|
23
|
+
clipRule: "evenodd",
|
|
24
|
+
shapeRendering: "geometricPrecision"
|
|
25
|
+
})), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
26
|
+
id: "a"
|
|
27
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
28
|
+
d: "M0 0h16v16H0z",
|
|
29
|
+
shapeRendering: "geometricPrecision"
|
|
30
|
+
}))));
|
|
31
|
+
}
|
|
32
|
+
Plug.displayName = 'Plug';
|
|
33
|
+
export default createBaseComponent(Plug);
|
package/lib/cjs/Icon.js
CHANGED
|
@@ -22,12 +22,12 @@ var _ref = require("@semcore/utils/lib/ref");
|
|
|
22
22
|
var _hasLabels = _interopRequireDefault(require("@semcore/utils/lib/hasLabels"));
|
|
23
23
|
var _excluded = ["keyboardFocused"];
|
|
24
24
|
/*__reshadow-styles__:"./style/icon.shadow.css"*/
|
|
25
|
-
var styles = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
26
|
-
"__SIcon": "
|
|
27
|
-
"--color": "--
|
|
28
|
-
"_keyboardFocused": "
|
|
29
|
-
"_interactive": "
|
|
30
|
-
"--color-interactive": "--color-
|
|
25
|
+
var styles = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SIcon_1psrg_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:0;color:var(--color_1psrg)}.___SIcon_1psrg_gg_.__keyboardFocused_1psrg_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SIcon_1psrg_gg_.__interactive_1psrg_gg_{cursor:pointer}@media (hover:hover){.___SIcon_1psrg_gg_.__interactive_1psrg_gg_:hover{color:var(--color-interactive_1psrg)}}" /*__inner_css_end__*/, "1psrg_gg_") /*__reshadow_css_end__*/, {
|
|
26
|
+
"__SIcon": "___SIcon_1psrg_gg_",
|
|
27
|
+
"--color": "--color_1psrg",
|
|
28
|
+
"_keyboardFocused": "__keyboardFocused_1psrg_gg_",
|
|
29
|
+
"_interactive": "__interactive_1psrg_gg_",
|
|
30
|
+
"--color-interactive": "--color-interactive_1psrg"
|
|
31
31
|
});
|
|
32
32
|
function Icon(props, ref) {
|
|
33
33
|
var _useBox = (0, _flexBox.useBox)((0, _objectSpread2["default"])({
|
package/lib/es6/Icon.js
CHANGED
|
@@ -15,12 +15,12 @@ import logger from '@semcore/utils/lib/logger';
|
|
|
15
15
|
import { useForkRef } from '@semcore/utils/lib/ref';
|
|
16
16
|
import hasLabels from '@semcore/utils/lib/hasLabels';
|
|
17
17
|
/*__reshadow-styles__:"./style/icon.shadow.css"*/
|
|
18
|
-
var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
19
|
-
"__SIcon": "
|
|
20
|
-
"--color": "--
|
|
21
|
-
"_keyboardFocused": "
|
|
22
|
-
"_interactive": "
|
|
23
|
-
"--color-interactive": "--color-
|
|
18
|
+
var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SIcon_1psrg_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:0;color:var(--color_1psrg)}.___SIcon_1psrg_gg_.__keyboardFocused_1psrg_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SIcon_1psrg_gg_.__interactive_1psrg_gg_{cursor:pointer}@media (hover:hover){.___SIcon_1psrg_gg_.__interactive_1psrg_gg_:hover{color:var(--color-interactive_1psrg)}}" /*__inner_css_end__*/, "1psrg_gg_") /*__reshadow_css_end__*/, {
|
|
19
|
+
"__SIcon": "___SIcon_1psrg_gg_",
|
|
20
|
+
"--color": "--color_1psrg",
|
|
21
|
+
"_keyboardFocused": "__keyboardFocused_1psrg_gg_",
|
|
22
|
+
"_interactive": "__interactive_1psrg_gg_",
|
|
23
|
+
"--color-interactive": "--color-interactive_1psrg"
|
|
24
24
|
});
|
|
25
25
|
function Icon(props, ref) {
|
|
26
26
|
var _useBox = useBox(_objectSpread({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/icon",
|
|
3
3
|
"description": "Semrush Icon Component",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.9.0-prerelease.0",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
"author": "UI-kit team <ui-kit-team@semrush.com>",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@semcore/flex-box": "5.7.0
|
|
13
|
-
"@semcore/icon": "4.
|
|
14
|
-
"@semcore/utils": "4.7.0
|
|
12
|
+
"@semcore/flex-box": "5.7.0",
|
|
13
|
+
"@semcore/icon": "4.9.0-prerelease.0",
|
|
14
|
+
"@semcore/utils": "4.7.0",
|
|
15
15
|
"classnames": "2.2.6"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@semcore/core": "^2.7.0
|
|
18
|
+
"@semcore/core": "^2.7.0",
|
|
19
19
|
"react": "16.8 - 18",
|
|
20
20
|
"react-dom": "16.8 - 18"
|
|
21
21
|
},
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
|
2
|
+
<path fill-rule="evenodd" d="M10.293 1.293a1 1 0 0 1 1.414 0L14.5 4.086l2.793-2.793a1 1 0 1 1 1.414 1.414L15.914 5.5 18.5 8.086l2.793-2.793a1 1 0 1 1 1.414 1.414L19.914 9.5l2.793 2.793a1 1 0 0 1 0 1.414c-.604.605-1.256.159-1.728-.314l-5.59 4.274c-2.223 1.7-5.023 1.113-6.889-.753l-5.793 5.793a1 1 0 0 1-1.414-1.414L7.086 15.5c-1.866-1.866-2.453-4.666-.753-6.89l4.274-5.589c-.473-.472-.919-1.124-.314-1.728Zm1.74 3.155 7.519 7.518-5.378 4.112a3 3 0 0 1-3.943-.261l-2.048-2.048a3 3 0 0 1-.261-3.943l4.112-5.378Z" clip-rule="evenodd"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
|
|
2
|
+
<g clip-path="url(#a)">
|
|
3
|
+
<path fill-rule="evenodd" d="M6.293.293a1 1 0 0 1 1.414 0L9.5 2.086 11.293.293a1 1 0 1 1 1.414 1.414L10.914 3.5 12.5 5.086l1.793-1.793a1 1 0 1 1 1.414 1.414L13.914 6.5l1.793 1.793a1 1 0 0 1 0 1.414c-.6.601-1.25.163-1.722-.308l-2.55 2.143a4.93 4.93 0 0 1-5.897.334l-3.83 3.831a1 1 0 0 1-1.415-1.414l3.838-3.838a4.93 4.93 0 0 1 .319-5.806l2.153-2.632c-.472-.472-.912-1.122-.31-1.724Zm1.731 3.145 4.541 4.541-2.417 2.032a2.928 2.928 0 0 1-4.15-4.096l2.026-2.477Z" clip-rule="evenodd"/>
|
|
4
|
+
</g>
|
|
5
|
+
<defs>
|
|
6
|
+
<clipPath id="a">
|
|
7
|
+
<path d="M0 0h16v16H0z"/>
|
|
8
|
+
</clipPath>
|
|
9
|
+
</defs>
|
|
10
|
+
</svg>
|