@semcore/icon 16.5.1-prerelease.1 → 16.5.1-prerelease.3

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 CHANGED
@@ -2,7 +2,30 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
- ## [16.5.1] - 2025-08-29
5
+ ## [16.5.1] - 2025-10-06
6
+
7
+ ### Changed
8
+
9
+ - Version patch update due to children dependencies update (`@semcore/flex-box` [16.0.9 ~> 16.0.10], `@semcore/base-components` [16.2.3 ~> 16.4.0]).
10
+
11
+ ## [16.7.1] - 2025-09-17
12
+
13
+ ### Changed
14
+
15
+ - Version patch update due to children dependencies update (`@semcore/flex-box` [16.0.8 ~> 16.0.9], `@semcore/base-components` [16.2.2 ~> 16.2.3]).
16
+
17
+ ## [16.7.0] - 2025-09-04
18
+
19
+ ### Added
20
+
21
+ - New `Monitoring` icon.
22
+
23
+ ## [16.6.0] - 2025-08-29
24
+
25
+ ### Added
26
+
27
+ - New `LinkExternalAlt` icon.
28
+ - New `Note` icon.
6
29
 
7
30
  ### Changed
8
31
 
@@ -0,0 +1,6 @@
1
+
2
+ import { IconProps } from '@semcore/icon';
3
+ import { Intergalactic } from '@semcore/core';
4
+ declare const _default: Intergalactic.Component<'svg', IconProps>;
5
+ export default _default;
6
+
@@ -0,0 +1,35 @@
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 _index = _interopRequireDefault(require("../../lib/cjs/index.js"));
13
+ var _excluded = ["width", "height", "viewBox"];
14
+ function RootLinkExternalAlt(_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(_index["default"], (0, _extends2["default"])({
23
+ ref: ref,
24
+ "data-name": "LinkExternalAlt",
25
+ "data-group": "l",
26
+ width: width,
27
+ height: height,
28
+ viewBox: viewBox
29
+ }, props), /*#__PURE__*/_react["default"].createElement("path", {
30
+ d: "M18.997 4.006H9a1.001 1.001 0 0 0 0 2.003h7.58L4.294 18.296a1.001 1.001 0 1 0 1.416 1.416L17.995 7.425v7.58a1 1 0 0 0 1.002 1 1 1 0 0 0 1.001-1V5.008c0-.547-.457-1.001-1.001-1.001",
31
+ shapeRendering: "geometricPrecision"
32
+ }));
33
+ }
34
+ RootLinkExternalAlt.displayName = 'LinkExternalAlt';
35
+ var LinkExternalAlt = exports["default"] = (0, _core.createBaseComponent)(RootLinkExternalAlt);
@@ -0,0 +1,25 @@
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
+ import React from 'react';
3
+ import { createBaseComponent } from '@semcore/core';
4
+ import Icon from '../../lib/esm/index.mjs';
5
+ function RootLinkExternalAlt({
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": "LinkExternalAlt",
14
+ "data-group": "l",
15
+ width: width,
16
+ height: height,
17
+ viewBox: viewBox
18
+ }, props), /*#__PURE__*/React.createElement("path", {
19
+ d: "M18.997 4.006H9a1.001 1.001 0 0 0 0 2.003h7.58L4.294 18.296a1.001 1.001 0 1 0 1.416 1.416L17.995 7.425v7.58a1 1 0 0 0 1.002 1 1 1 0 0 0 1.001-1V5.008c0-.547-.457-1.001-1.001-1.001",
20
+ shapeRendering: "geometricPrecision"
21
+ }));
22
+ }
23
+ RootLinkExternalAlt.displayName = 'LinkExternalAlt';
24
+ const LinkExternalAlt = createBaseComponent(RootLinkExternalAlt);
25
+ export { LinkExternalAlt as default };
@@ -0,0 +1,6 @@
1
+
2
+ import { IconProps } from '@semcore/icon';
3
+ import { Intergalactic } from '@semcore/core';
4
+ declare const _default: Intergalactic.Component<'svg', IconProps>;
5
+ export default _default;
6
+
@@ -0,0 +1,35 @@
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 _index = _interopRequireDefault(require("../../lib/cjs/index.js"));
13
+ var _excluded = ["width", "height", "viewBox"];
14
+ function RootLinkExternalAlt(_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(_index["default"], (0, _extends2["default"])({
23
+ ref: ref,
24
+ "data-name": "LinkExternalAlt",
25
+ "data-group": "m",
26
+ width: width,
27
+ height: height,
28
+ viewBox: viewBox
29
+ }, props), /*#__PURE__*/_react["default"].createElement("path", {
30
+ d: "M12.997 2.005H6a1.001 1.001 0 0 0 0 2.003h4.58l-8.285 8.288a1.001 1.001 0 1 0 1.416 1.416l8.284-8.288v4.581a1 1 0 0 0 1.002 1 1 1 0 0 0 1.001-1V3.007c0-.548-.457-1.002-1.001-1.002",
31
+ shapeRendering: "geometricPrecision"
32
+ }));
33
+ }
34
+ RootLinkExternalAlt.displayName = 'LinkExternalAlt';
35
+ var LinkExternalAlt = exports["default"] = (0, _core.createBaseComponent)(RootLinkExternalAlt);
@@ -0,0 +1,25 @@
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
+ import React from 'react';
3
+ import { createBaseComponent } from '@semcore/core';
4
+ import Icon from '../../lib/esm/index.mjs';
5
+ function RootLinkExternalAlt({
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": "LinkExternalAlt",
14
+ "data-group": "m",
15
+ width: width,
16
+ height: height,
17
+ viewBox: viewBox
18
+ }, props), /*#__PURE__*/React.createElement("path", {
19
+ d: "M12.997 2.005H6a1.001 1.001 0 0 0 0 2.003h4.58l-8.285 8.288a1.001 1.001 0 1 0 1.416 1.416l8.284-8.288v4.581a1 1 0 0 0 1.002 1 1 1 0 0 0 1.001-1V3.007c0-.548-.457-1.002-1.001-1.002",
20
+ shapeRendering: "geometricPrecision"
21
+ }));
22
+ }
23
+ RootLinkExternalAlt.displayName = 'LinkExternalAlt';
24
+ const LinkExternalAlt = createBaseComponent(RootLinkExternalAlt);
25
+ export { LinkExternalAlt as default };
@@ -0,0 +1,6 @@
1
+
2
+ import { IconProps } from '@semcore/icon';
3
+ import { Intergalactic } from '@semcore/core';
4
+ declare const _default: Intergalactic.Component<'svg', IconProps>;
5
+ export default _default;
6
+
@@ -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 _index = _interopRequireDefault(require("../../lib/cjs/index.js"));
13
+ var _excluded = ["width", "height", "viewBox"];
14
+ function RootMonitoring(_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(_index["default"], (0, _extends2["default"])({
23
+ ref: ref,
24
+ "data-name": "Monitoring",
25
+ "data-group": "l",
26
+ width: width,
27
+ height: height,
28
+ viewBox: viewBox
29
+ }, props), /*#__PURE__*/_react["default"].createElement("path", {
30
+ d: "M11 1.005c-5.523 0-10 4.478-10 10s4.477 10 10 10a9.96 9.96 0 0 0 6.329-2.257l3.964 3.964a1 1 0 1 0 1.414-1.414l-3.964-3.964A9.96 9.96 0 0 0 21 11.005c0-5.522-4.477-10-10-10m-8 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0",
31
+ shapeRendering: "geometricPrecision"
32
+ }), /*#__PURE__*/_react["default"].createElement("path", {
33
+ d: "M7 11.005a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0zM10 7.005a1 1 0 1 1 2 0v7a1 1 0 1 1-2 0zM13 9.005a1 1 0 1 1 2 0v5a1 1 0 1 1-2 0z",
34
+ shapeRendering: "geometricPrecision"
35
+ }));
36
+ }
37
+ RootMonitoring.displayName = 'Monitoring';
38
+ var Monitoring = exports["default"] = (0, _core.createBaseComponent)(RootMonitoring);
@@ -0,0 +1,28 @@
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
+ import React from 'react';
3
+ import { createBaseComponent } from '@semcore/core';
4
+ import Icon from '../../lib/esm/index.mjs';
5
+ function RootMonitoring({
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": "Monitoring",
14
+ "data-group": "l",
15
+ width: width,
16
+ height: height,
17
+ viewBox: viewBox
18
+ }, props), /*#__PURE__*/React.createElement("path", {
19
+ d: "M11 1.005c-5.523 0-10 4.478-10 10s4.477 10 10 10a9.96 9.96 0 0 0 6.329-2.257l3.964 3.964a1 1 0 1 0 1.414-1.414l-3.964-3.964A9.96 9.96 0 0 0 21 11.005c0-5.522-4.477-10-10-10m-8 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0",
20
+ shapeRendering: "geometricPrecision"
21
+ }), /*#__PURE__*/React.createElement("path", {
22
+ d: "M7 11.005a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0zM10 7.005a1 1 0 1 1 2 0v7a1 1 0 1 1-2 0zM13 9.005a1 1 0 1 1 2 0v5a1 1 0 1 1-2 0z",
23
+ shapeRendering: "geometricPrecision"
24
+ }));
25
+ }
26
+ RootMonitoring.displayName = 'Monitoring';
27
+ const Monitoring = createBaseComponent(RootMonitoring);
28
+ export { Monitoring as default };
@@ -0,0 +1,6 @@
1
+
2
+ import { IconProps } from '@semcore/icon';
3
+ import { Intergalactic } from '@semcore/core';
4
+ declare const _default: Intergalactic.Component<'svg', IconProps>;
5
+ export default _default;
6
+
@@ -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 _index = _interopRequireDefault(require("../../lib/cjs/index.js"));
13
+ var _excluded = ["width", "height", "viewBox"];
14
+ function RootMonitoring(_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(_index["default"], (0, _extends2["default"])({
23
+ ref: ref,
24
+ "data-name": "Monitoring",
25
+ "data-group": "m",
26
+ width: width,
27
+ height: height,
28
+ viewBox: viewBox
29
+ }, props), /*#__PURE__*/_react["default"].createElement("path", {
30
+ d: "M6 7.005a1 1 0 0 1 1 1v1.2a1 1 0 0 1-2 0v-1.2a1 1 0 0 1 1-1M9 4.805a1 1 0 0 1 1 1v3.4a1 1 0 0 1-2 0v-3.4a1 1 0 0 1 1-1",
31
+ shapeRendering: "geometricPrecision"
32
+ }), /*#__PURE__*/_react["default"].createElement("path", {
33
+ d: "M7.5 1.005a6.5 6.5 0 0 1 5.247 10.334l1.96 1.96a1 1 0 1 1-1.414 1.414l-1.96-1.96A6.5 6.5 0 1 1 7.5 1.006m0 2a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9",
34
+ shapeRendering: "geometricPrecision"
35
+ }));
36
+ }
37
+ RootMonitoring.displayName = 'Monitoring';
38
+ var Monitoring = exports["default"] = (0, _core.createBaseComponent)(RootMonitoring);
@@ -0,0 +1,28 @@
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
+ import React from 'react';
3
+ import { createBaseComponent } from '@semcore/core';
4
+ import Icon from '../../lib/esm/index.mjs';
5
+ function RootMonitoring({
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": "Monitoring",
14
+ "data-group": "m",
15
+ width: width,
16
+ height: height,
17
+ viewBox: viewBox
18
+ }, props), /*#__PURE__*/React.createElement("path", {
19
+ d: "M6 7.005a1 1 0 0 1 1 1v1.2a1 1 0 0 1-2 0v-1.2a1 1 0 0 1 1-1M9 4.805a1 1 0 0 1 1 1v3.4a1 1 0 0 1-2 0v-3.4a1 1 0 0 1 1-1",
20
+ shapeRendering: "geometricPrecision"
21
+ }), /*#__PURE__*/React.createElement("path", {
22
+ d: "M7.5 1.005a6.5 6.5 0 0 1 5.247 10.334l1.96 1.96a1 1 0 1 1-1.414 1.414l-1.96-1.96A6.5 6.5 0 1 1 7.5 1.006m0 2a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9",
23
+ shapeRendering: "geometricPrecision"
24
+ }));
25
+ }
26
+ RootMonitoring.displayName = 'Monitoring';
27
+ const Monitoring = createBaseComponent(RootMonitoring);
28
+ export { Monitoring as default };
@@ -0,0 +1,6 @@
1
+
2
+ import { IconProps } from '@semcore/icon';
3
+ import { Intergalactic } from '@semcore/core';
4
+ declare const _default: Intergalactic.Component<'svg', IconProps>;
5
+ export default _default;
6
+
@@ -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 _index = _interopRequireDefault(require("../../lib/cjs/index.js"));
13
+ var _excluded = ["width", "height", "viewBox"];
14
+ function RootNote(_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(_index["default"], (0, _extends2["default"])({
23
+ ref: ref,
24
+ "data-name": "Note",
25
+ "data-group": "l",
26
+ width: width,
27
+ height: height,
28
+ viewBox: viewBox
29
+ }, props), /*#__PURE__*/_react["default"].createElement("path", {
30
+ d: "M13 17h-2v-6h2zm0-8h-2V7h2z",
31
+ shapeRendering: "geometricPrecision"
32
+ }), /*#__PURE__*/_react["default"].createElement("path", {
33
+ d: "M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1m0 2a9 9 0 1 0 0 18 9 9 0 0 0 0-18",
34
+ shapeRendering: "geometricPrecision"
35
+ }));
36
+ }
37
+ RootNote.displayName = 'Note';
38
+ var Note = exports["default"] = (0, _core.createBaseComponent)(RootNote);
@@ -0,0 +1,28 @@
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
+ import React from 'react';
3
+ import { createBaseComponent } from '@semcore/core';
4
+ import Icon from '../../lib/esm/index.mjs';
5
+ function RootNote({
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": "Note",
14
+ "data-group": "l",
15
+ width: width,
16
+ height: height,
17
+ viewBox: viewBox
18
+ }, props), /*#__PURE__*/React.createElement("path", {
19
+ d: "M13 17h-2v-6h2zm0-8h-2V7h2z",
20
+ shapeRendering: "geometricPrecision"
21
+ }), /*#__PURE__*/React.createElement("path", {
22
+ d: "M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1m0 2a9 9 0 1 0 0 18 9 9 0 0 0 0-18",
23
+ shapeRendering: "geometricPrecision"
24
+ }));
25
+ }
26
+ RootNote.displayName = 'Note';
27
+ const Note = createBaseComponent(RootNote);
28
+ export { Note as default };
@@ -0,0 +1,6 @@
1
+
2
+ import { IconProps } from '@semcore/icon';
3
+ import { Intergalactic } from '@semcore/core';
4
+ declare const _default: Intergalactic.Component<'svg', IconProps>;
5
+ export default _default;
6
+
@@ -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 _index = _interopRequireDefault(require("../../lib/cjs/index.js"));
13
+ var _excluded = ["width", "height", "viewBox"];
14
+ function RootNote(_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(_index["default"], (0, _extends2["default"])({
23
+ ref: ref,
24
+ "data-name": "Note",
25
+ "data-group": "m",
26
+ width: width,
27
+ height: height,
28
+ viewBox: viewBox
29
+ }, props), /*#__PURE__*/_react["default"].createElement("path", {
30
+ d: "M9 12H7V7h2zm0-6H7V4h2z",
31
+ shapeRendering: "geometricPrecision"
32
+ }), /*#__PURE__*/_react["default"].createElement("path", {
33
+ d: "M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0m0 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2",
34
+ shapeRendering: "geometricPrecision"
35
+ }));
36
+ }
37
+ RootNote.displayName = 'Note';
38
+ var Note = exports["default"] = (0, _core.createBaseComponent)(RootNote);
@@ -0,0 +1,28 @@
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
+ import React from 'react';
3
+ import { createBaseComponent } from '@semcore/core';
4
+ import Icon from '../../lib/esm/index.mjs';
5
+ function RootNote({
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": "Note",
14
+ "data-group": "m",
15
+ width: width,
16
+ height: height,
17
+ viewBox: viewBox
18
+ }, props), /*#__PURE__*/React.createElement("path", {
19
+ d: "M9 12H7V7h2zm0-6H7V4h2z",
20
+ shapeRendering: "geometricPrecision"
21
+ }), /*#__PURE__*/React.createElement("path", {
22
+ d: "M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0m0 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2",
23
+ shapeRendering: "geometricPrecision"
24
+ }));
25
+ }
26
+ RootNote.displayName = 'Note';
27
+ const Note = createBaseComponent(RootNote);
28
+ export { Note as default };
package/lib/cjs/Icon.js CHANGED
@@ -10,13 +10,13 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
10
10
  var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
11
11
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
12
12
  var _core = require("@semcore/core");
13
+ var _baseComponents = require("@semcore/base-components");
13
14
  var _keyboardFocusEnhance2 = _interopRequireDefault(require("@semcore/core/lib/utils/enhances/keyboardFocusEnhance"));
14
15
  var _hasLabels = _interopRequireDefault(require("@semcore/core/lib/utils/hasLabels"));
15
16
  var _logger = _interopRequireDefault(require("@semcore/core/lib/utils/logger"));
16
17
  var _propsForElement = _interopRequireDefault(require("@semcore/core/lib/utils/propsForElement"));
17
18
  var _ref = require("@semcore/core/lib/utils/ref");
18
19
  var _useColorResolver = require("@semcore/core/lib/utils/use/useColorResolver");
19
- var _flexBox = require("@semcore/flex-box");
20
20
  var _classnames = _interopRequireDefault(require("classnames"));
21
21
  var _react = _interopRequireDefault(require("react"));
22
22
  var _excluded = ["keyboardFocused"];
@@ -29,7 +29,7 @@ var styles = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start
29
29
  "_interactive": "__interactive_1vvx2_gg_"
30
30
  });
31
31
  function Icon(props, ref) {
32
- var _useBox = (0, _flexBox.useBox)((0, _objectSpread2["default"])({
32
+ var _useBox = (0, _baseComponents.useBox)((0, _objectSpread2["default"])({
33
33
  'tag': 'svg',
34
34
  'data-ui-name': 'Icon',
35
35
  'width': 16,
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.js","names":["_core","require","_keyboardFocusEnhance2","_interopRequireDefault","_hasLabels","_logger","_propsForElement","_ref","_useColorResolver","_flexBox","_classnames","_react","_excluded","styles","sstyled","insert","Icon","props","ref","_useBox","useBox","_objectSpread2","interactive","_useBox2","_slicedToArray2","SIcon","other","colorProps","color","resolveColor","useColorResolver","_keyboardFocusEnhance","keyboardFocusEnhance","disabled","keyboardFocused","propsEnhance","_objectWithoutProperties2","sstyles","_sstyles$cn","cn","className","style","onKeyDown","event","onClick","key","preventDefault","labelCheckRef","React","useRef","useEffect","process","env","NODE_ENV","logger","warn","current","hasLabels","displayName","forkedRef","useForkRef","createElement","_extends2","role","undefined","propsForElement","Object","assign","_default","exports","createBaseComponent"],"sources":["../../src/Icon.jsx"],"sourcesContent":["import { createBaseComponent, sstyled } from '@semcore/core';\nimport keyboardFocusEnhance from '@semcore/core/lib/utils/enhances/keyboardFocusEnhance';\nimport hasLabels from '@semcore/core/lib/utils/hasLabels';\nimport logger from '@semcore/core/lib/utils/logger';\nimport propsForElement from '@semcore/core/lib/utils/propsForElement';\nimport { useForkRef } from '@semcore/core/lib/utils/ref';\nimport { useColorResolver } from '@semcore/core/lib/utils/use/useColorResolver';\nimport { useBox } from '@semcore/flex-box';\nimport cn from 'classnames';\nimport React from 'react';\n\nimport styles from './style/icon.shadow.css';\n\nfunction Icon(props, ref) {\n const [SIcon, other] = useBox(\n {\n 'tag': 'svg',\n 'data-ui-name': 'Icon',\n 'width': 16,\n 'height': 16,\n 'viewBox': '0 0 16 16',\n 'focusable': props.interactive,\n ...props,\n },\n ref,\n );\n\n const { interactive, color: colorProps } = props;\n const resolveColor = useColorResolver();\n const color = resolveColor(colorProps);\n const { keyboardFocused, ...propsEnhance } = keyboardFocusEnhance()({\n disabled: !interactive,\n ...other,\n });\n const sstyles = sstyled(styles);\n const { className, style } = sstyles.cn('SIcon', {\n 'use:color': color,\n 'interactive': interactive,\n 'keyboardFocused': keyboardFocused,\n });\n\n function onKeyDown(event) {\n if (propsEnhance.onKeyDown) {\n return propsEnhance.onKeyDown(event);\n }\n\n if (interactive && propsEnhance.onClick && (event.key === 'Enter' || event.key === ' ')) {\n event.preventDefault();\n propsEnhance.onClick(event);\n }\n }\n\n const labelCheckRef = React.useRef();\n React.useEffect(() => {\n if (!interactive) return;\n if (process.env.NODE_ENV !== 'production') {\n logger.warn(\n labelCheckRef.current && !hasLabels(labelCheckRef.current),\n `'aria-label' or 'aria-labelledby' are required props for interactive icons`,\n props['data-ui-name'] || Icon.displayName,\n );\n }\n }, [interactive]);\n const forkedRef = useForkRef(ref, labelCheckRef);\n\n return (\n <SIcon\n role={interactive ? 'button' : undefined}\n aria-hidden={interactive ? undefined : 'true'}\n {...propsForElement(propsEnhance)}\n style={Object.assign({}, style, propsEnhance.style)}\n className={cn(className, propsEnhance.className) || undefined}\n onKeyDown={onKeyDown}\n ref={forkedRef}\n />\n );\n}\n\nIcon.displayName = 'Icon';\n\nexport default createBaseComponent(Icon);\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,OAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,gBAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,IAAA,GAAAN,OAAA;AACA,IAAAO,iBAAA,GAAAP,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AACA,IAAAS,WAAA,GAAAP,sBAAA,CAAAF,OAAA;AACA,IAAAU,MAAA,GAAAR,sBAAA,CAAAF,OAAA;AAA0B,IAAAW,SAAA;AAAA;AAAA,IAAAC,MAAA,8BA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,EAAEyC;EAAU,EAChB,CAAC;AAEN;AAEA3C,IAAI,CAAC0C,WAAW,GAAG,MAAM;AAAC,IAAAU,QAAA,GAAAC,OAAA,cAEX,IAAAC,yBAAmB,EAACtD,IAAI,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"Icon.js","names":["_core","require","_baseComponents","_keyboardFocusEnhance2","_interopRequireDefault","_hasLabels","_logger","_propsForElement","_ref","_useColorResolver","_classnames","_react","_excluded","styles","sstyled","insert","Icon","props","ref","_useBox","useBox","_objectSpread2","interactive","_useBox2","_slicedToArray2","SIcon","other","colorProps","color","resolveColor","useColorResolver","_keyboardFocusEnhance","keyboardFocusEnhance","disabled","keyboardFocused","propsEnhance","_objectWithoutProperties2","sstyles","_sstyles$cn","cn","className","style","onKeyDown","event","onClick","key","preventDefault","labelCheckRef","React","useRef","useEffect","process","env","NODE_ENV","logger","warn","current","hasLabels","displayName","forkedRef","useForkRef","createElement","_extends2","role","undefined","propsForElement","Object","assign","_default","exports","createBaseComponent"],"sources":["../../src/Icon.jsx"],"sourcesContent":["import { useBox } from '@semcore/base-components';\nimport { createBaseComponent, sstyled } from '@semcore/core';\nimport keyboardFocusEnhance from '@semcore/core/lib/utils/enhances/keyboardFocusEnhance';\nimport hasLabels from '@semcore/core/lib/utils/hasLabels';\nimport logger from '@semcore/core/lib/utils/logger';\nimport propsForElement from '@semcore/core/lib/utils/propsForElement';\nimport { useForkRef } from '@semcore/core/lib/utils/ref';\nimport { useColorResolver } from '@semcore/core/lib/utils/use/useColorResolver';\nimport cn from 'classnames';\nimport React from 'react';\n\nimport styles from './style/icon.shadow.css';\n\nfunction Icon(props, ref) {\n const [SIcon, other] = useBox(\n {\n 'tag': 'svg',\n 'data-ui-name': 'Icon',\n 'width': 16,\n 'height': 16,\n 'viewBox': '0 0 16 16',\n 'focusable': props.interactive,\n ...props,\n },\n ref,\n );\n\n const { interactive, color: colorProps } = props;\n const resolveColor = useColorResolver();\n const color = resolveColor(colorProps);\n const { keyboardFocused, ...propsEnhance } = keyboardFocusEnhance()({\n disabled: !interactive,\n ...other,\n });\n const sstyles = sstyled(styles);\n const { className, style } = sstyles.cn('SIcon', {\n 'use:color': color,\n 'interactive': interactive,\n 'keyboardFocused': keyboardFocused,\n });\n\n function onKeyDown(event) {\n if (propsEnhance.onKeyDown) {\n return propsEnhance.onKeyDown(event);\n }\n\n if (interactive && propsEnhance.onClick && (event.key === 'Enter' || event.key === ' ')) {\n event.preventDefault();\n propsEnhance.onClick(event);\n }\n }\n\n const labelCheckRef = React.useRef();\n React.useEffect(() => {\n if (!interactive) return;\n if (process.env.NODE_ENV !== 'production') {\n logger.warn(\n labelCheckRef.current && !hasLabels(labelCheckRef.current),\n `'aria-label' or 'aria-labelledby' are required props for interactive icons`,\n props['data-ui-name'] || Icon.displayName,\n );\n }\n }, [interactive]);\n const forkedRef = useForkRef(ref, labelCheckRef);\n\n return (\n <SIcon\n role={interactive ? 'button' : undefined}\n aria-hidden={interactive ? undefined : 'true'}\n {...propsForElement(propsEnhance)}\n style={Object.assign({}, style, propsEnhance.style)}\n className={cn(className, propsEnhance.className) || undefined}\n onKeyDown={onKeyDown}\n ref={forkedRef}\n />\n );\n}\n\nIcon.displayName = 'Icon';\n\nexport default createBaseComponent(Icon);\n"],"mappings":";;;;;;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AADA,IAAAC,eAAA,GAAAD,OAAA;AAEA,IAAAE,sBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,UAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,OAAA,GAAAF,sBAAA,CAAAH,OAAA;AACA,IAAAM,gBAAA,GAAAH,sBAAA,CAAAH,OAAA;AACA,IAAAO,IAAA,GAAAP,OAAA;AACA,IAAAQ,iBAAA,GAAAR,OAAA;AACA,IAAAS,WAAA,GAAAN,sBAAA,CAAAH,OAAA;AACA,IAAAU,MAAA,GAAAP,sBAAA,CAAAH,OAAA;AAA0B,IAAAW,SAAA;AAAA;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AEA,SAAU;IACrBxB,GAAG,EAAEyC;EAAU,EAChB,CAAC;AAEN;AAEA3C,IAAI,CAAC0C,WAAW,GAAG,MAAM;AAAC,IAAAU,QAAA,GAAAC,OAAA,cAEX,IAAAC,yBAAmB,EAACtD,IAAI,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { BoxProps } from '@semcore/flex-box';\nimport { Intergalactic, UnknownProperties } from '@semcore/core';\nimport { KeyboardFocusProps } from '@semcore/core/lib/utils/enhances/keyboardFocusEnhance';\n\n/** @deprecated */\nexport interface IIconProps extends IconProps, UnknownProperties {}\nexport type IconProps = BoxProps &\n KeyboardFocusProps & {\n /** Icon width */\n width?: string | number;\n /** Icon height */\n height?: string | number;\n /** SVG viewBox attribute */\n viewBox?: string;\n /** Make an icon interactive */\n interactive?: boolean;\n /** Icon color */\n color?: string;\n };\n\ndeclare const Icon: Intergalactic.Component<'svg', IconProps>;\n\nexport default Icon;\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { BoxProps } from '@semcore/base-components';\nimport { Intergalactic, UnknownProperties } from '@semcore/core';\nimport { KeyboardFocusProps } from '@semcore/core/lib/utils/enhances/keyboardFocusEnhance';\n\n/** @deprecated */\nexport interface IIconProps extends IconProps, UnknownProperties {}\nexport type IconProps = BoxProps &\n KeyboardFocusProps & {\n /** Icon width */\n width?: string | number;\n /** Icon height */\n height?: string | number;\n /** SVG viewBox attribute */\n viewBox?: string;\n /** Make an icon interactive */\n interactive?: boolean;\n /** Icon color */\n color?: string;\n };\n\ndeclare const Icon: Intergalactic.Component<'svg', IconProps>;\n\nexport default Icon;\n"],"mappings":"","ignoreList":[]}
package/lib/es6/Icon.js CHANGED
@@ -4,6 +4,7 @@ import _objectSpread from "@babel/runtime/helpers/objectSpread2";
4
4
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
5
5
  import { sstyled as _sstyled } from "@semcore/core";
6
6
  var _excluded = ["keyboardFocused"];
7
+ import { useBox } from '@semcore/base-components';
7
8
  import { createBaseComponent, sstyled } from '@semcore/core';
8
9
  import keyboardFocusEnhance from '@semcore/core/lib/utils/enhances/keyboardFocusEnhance';
9
10
  import hasLabels from '@semcore/core/lib/utils/hasLabels';
@@ -11,7 +12,6 @@ import logger from '@semcore/core/lib/utils/logger';
11
12
  import propsForElement from '@semcore/core/lib/utils/propsForElement';
12
13
  import { useForkRef } from '@semcore/core/lib/utils/ref';
13
14
  import { useColorResolver } from '@semcore/core/lib/utils/use/useColorResolver';
14
- import { useBox } from '@semcore/flex-box';
15
15
  import cn from 'classnames';
16
16
  import React from 'react';
17
17
  /*!__reshadow-styles__:"./style/icon.shadow.css"*/
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.js","names":["createBaseComponent","sstyled","keyboardFocusEnhance","hasLabels","logger","propsForElement","useForkRef","useColorResolver","useBox","cn","React","styles","_sstyled","insert","Icon","props","ref","_useBox","_objectSpread","interactive","_useBox2","_slicedToArray","SIcon","other","colorProps","color","resolveColor","_keyboardFocusEnhance","disabled","keyboardFocused","propsEnhance","_objectWithoutProperties","_excluded","sstyles","_sstyles$cn","className","style","onKeyDown","event","onClick","key","preventDefault","labelCheckRef","useRef","useEffect","process","env","NODE_ENV","warn","current","displayName","forkedRef","createElement","_extends","role","undefined","Object","assign"],"sources":["../../src/Icon.jsx"],"sourcesContent":["import { createBaseComponent, sstyled } from '@semcore/core';\nimport keyboardFocusEnhance from '@semcore/core/lib/utils/enhances/keyboardFocusEnhance';\nimport hasLabels from '@semcore/core/lib/utils/hasLabels';\nimport logger from '@semcore/core/lib/utils/logger';\nimport propsForElement from '@semcore/core/lib/utils/propsForElement';\nimport { useForkRef } from '@semcore/core/lib/utils/ref';\nimport { useColorResolver } from '@semcore/core/lib/utils/use/useColorResolver';\nimport { useBox } from '@semcore/flex-box';\nimport cn from 'classnames';\nimport React from 'react';\n\nimport styles from './style/icon.shadow.css';\n\nfunction Icon(props, ref) {\n const [SIcon, other] = useBox(\n {\n 'tag': 'svg',\n 'data-ui-name': 'Icon',\n 'width': 16,\n 'height': 16,\n 'viewBox': '0 0 16 16',\n 'focusable': props.interactive,\n ...props,\n },\n ref,\n );\n\n const { interactive, color: colorProps } = props;\n const resolveColor = useColorResolver();\n const color = resolveColor(colorProps);\n const { keyboardFocused, ...propsEnhance } = keyboardFocusEnhance()({\n disabled: !interactive,\n ...other,\n });\n const sstyles = sstyled(styles);\n const { className, style } = sstyles.cn('SIcon', {\n 'use:color': color,\n 'interactive': interactive,\n 'keyboardFocused': keyboardFocused,\n });\n\n function onKeyDown(event) {\n if (propsEnhance.onKeyDown) {\n return propsEnhance.onKeyDown(event);\n }\n\n if (interactive && propsEnhance.onClick && (event.key === 'Enter' || event.key === ' ')) {\n event.preventDefault();\n propsEnhance.onClick(event);\n }\n }\n\n const labelCheckRef = React.useRef();\n React.useEffect(() => {\n if (!interactive) return;\n if (process.env.NODE_ENV !== 'production') {\n logger.warn(\n labelCheckRef.current && !hasLabels(labelCheckRef.current),\n `'aria-label' or 'aria-labelledby' are required props for interactive icons`,\n props['data-ui-name'] || Icon.displayName,\n );\n }\n }, [interactive]);\n const forkedRef = useForkRef(ref, labelCheckRef);\n\n return (\n <SIcon\n role={interactive ? 'button' : undefined}\n aria-hidden={interactive ? undefined : 'true'}\n {...propsForElement(propsEnhance)}\n style={Object.assign({}, style, propsEnhance.style)}\n className={cn(className, propsEnhance.className) || undefined}\n onKeyDown={onKeyDown}\n ref={forkedRef}\n />\n );\n}\n\nIcon.displayName = 'Icon';\n\nexport default createBaseComponent(Icon);\n"],"mappings":";;;;;;AAAA,SAASA,mBAAmB,EAAEC,OAAO,QAAQ,eAAe;AAC5D,OAAOC,oBAAoB,MAAM,uDAAuD;AACxF,OAAOC,SAAS,MAAM,mCAAmC;AACzD,OAAOC,MAAM,MAAM,gCAAgC;AACnD,OAAOC,eAAe,MAA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EN,YAAY,CAACM,KAAK,CAAE;IACpDD,SAAS,EAAE1B,EAAE,CAAC0B,SAAS,EAAEL,YAAY,CAACK,SAAS,CAAC,IAAIoB,SAAU;IAC9DlB,SAAS,EAAEA,SAAU;IACrBrB,GAAG,EAAEmC;EAAU,EAChB,CAAC;AAEN;AAEArC,IAAI,CAACoC,WAAW,GAAG,MAAM;AAEzB,eAAelD,mBAAmB,CAACc,IAAI,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"Icon.js","names":["useBox","createBaseComponent","sstyled","keyboardFocusEnhance","hasLabels","logger","propsForElement","useForkRef","useColorResolver","cn","React","styles","_sstyled","insert","Icon","props","ref","_useBox","_objectSpread","interactive","_useBox2","_slicedToArray","SIcon","other","colorProps","color","resolveColor","_keyboardFocusEnhance","disabled","keyboardFocused","propsEnhance","_objectWithoutProperties","_excluded","sstyles","_sstyles$cn","className","style","onKeyDown","event","onClick","key","preventDefault","labelCheckRef","useRef","useEffect","process","env","NODE_ENV","warn","current","displayName","forkedRef","createElement","_extends","role","undefined","Object","assign"],"sources":["../../src/Icon.jsx"],"sourcesContent":["import { useBox } from '@semcore/base-components';\nimport { createBaseComponent, sstyled } from '@semcore/core';\nimport keyboardFocusEnhance from '@semcore/core/lib/utils/enhances/keyboardFocusEnhance';\nimport hasLabels from '@semcore/core/lib/utils/hasLabels';\nimport logger from '@semcore/core/lib/utils/logger';\nimport propsForElement from '@semcore/core/lib/utils/propsForElement';\nimport { useForkRef } from '@semcore/core/lib/utils/ref';\nimport { useColorResolver } from '@semcore/core/lib/utils/use/useColorResolver';\nimport cn from 'classnames';\nimport React from 'react';\n\nimport styles from './style/icon.shadow.css';\n\nfunction Icon(props, ref) {\n const [SIcon, other] = useBox(\n {\n 'tag': 'svg',\n 'data-ui-name': 'Icon',\n 'width': 16,\n 'height': 16,\n 'viewBox': '0 0 16 16',\n 'focusable': props.interactive,\n ...props,\n },\n ref,\n );\n\n const { interactive, color: colorProps } = props;\n const resolveColor = useColorResolver();\n const color = resolveColor(colorProps);\n const { keyboardFocused, ...propsEnhance } = keyboardFocusEnhance()({\n disabled: !interactive,\n ...other,\n });\n const sstyles = sstyled(styles);\n const { className, style } = sstyles.cn('SIcon', {\n 'use:color': color,\n 'interactive': interactive,\n 'keyboardFocused': keyboardFocused,\n });\n\n function onKeyDown(event) {\n if (propsEnhance.onKeyDown) {\n return propsEnhance.onKeyDown(event);\n }\n\n if (interactive && propsEnhance.onClick && (event.key === 'Enter' || event.key === ' ')) {\n event.preventDefault();\n propsEnhance.onClick(event);\n }\n }\n\n const labelCheckRef = React.useRef();\n React.useEffect(() => {\n if (!interactive) return;\n if (process.env.NODE_ENV !== 'production') {\n logger.warn(\n labelCheckRef.current && !hasLabels(labelCheckRef.current),\n `'aria-label' or 'aria-labelledby' are required props for interactive icons`,\n props['data-ui-name'] || Icon.displayName,\n );\n }\n }, [interactive]);\n const forkedRef = useForkRef(ref, labelCheckRef);\n\n return (\n <SIcon\n role={interactive ? 'button' : undefined}\n aria-hidden={interactive ? undefined : 'true'}\n {...propsForElement(propsEnhance)}\n style={Object.assign({}, style, propsEnhance.style)}\n className={cn(className, propsEnhance.className) || undefined}\n onKeyDown={onKeyDown}\n ref={forkedRef}\n />\n );\n}\n\nIcon.displayName = 'Icon';\n\nexport default createBaseComponent(Icon);\n"],"mappings":";;;;;;AAAA,SAASA,MAAM,QAAQ,0BAA0B;AACjD,SAASC,mBAAmB,EAAEC,OAAO,QAAQ,eAAe;AAC5D,OAAOC,oBAAoB,MAAM,uDAAuD;AACxF,OAAOC,SAAS,MAAM,mCAAmC;AACzD,OAAOC,MAAM,MAAM,gCAAgC;AACnD,OAAOC,eAAe,MAAM,yCAAyC;AACrE,SAASC,UAAU,QAAQ,6BAA6B;AACxD,SAASC,gBAAgB,QAAQ,8CAA8C;AAC/E,OAAOC,EAAE,MAAM,YAAY;AAC3B,OAAOC,KAAK,MAAM,OAAO;AAAC;AAAA,IAAAC,MAAA,8BAAAC,QAAA,CAAAC,MAAA;AA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B,eAAejD,mBAAmB,CAACa,IAAI,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { BoxProps } from '@semcore/flex-box';\nimport { Intergalactic, UnknownProperties } from '@semcore/core';\nimport { KeyboardFocusProps } from '@semcore/core/lib/utils/enhances/keyboardFocusEnhance';\n\n/** @deprecated */\nexport interface IIconProps extends IconProps, UnknownProperties {}\nexport type IconProps = BoxProps &\n KeyboardFocusProps & {\n /** Icon width */\n width?: string | number;\n /** Icon height */\n height?: string | number;\n /** SVG viewBox attribute */\n viewBox?: string;\n /** Make an icon interactive */\n interactive?: boolean;\n /** Icon color */\n color?: string;\n };\n\ndeclare const Icon: Intergalactic.Component<'svg', IconProps>;\n\nexport default Icon;\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { BoxProps } from '@semcore/base-components';\nimport { Intergalactic, UnknownProperties } from '@semcore/core';\nimport { KeyboardFocusProps } from '@semcore/core/lib/utils/enhances/keyboardFocusEnhance';\n\n/** @deprecated */\nexport interface IIconProps extends IconProps, UnknownProperties {}\nexport type IconProps = BoxProps &\n KeyboardFocusProps & {\n /** Icon width */\n width?: string | number;\n /** Icon height */\n height?: string | number;\n /** SVG viewBox attribute */\n viewBox?: string;\n /** Make an icon interactive */\n interactive?: boolean;\n /** Icon color */\n color?: string;\n };\n\ndeclare const Icon: Intergalactic.Component<'svg', IconProps>;\n\nexport default Icon;\n"],"mappings":"","ignoreList":[]}
package/lib/esm/Icon.mjs CHANGED
@@ -3,13 +3,13 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
3
3
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
4
4
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
5
5
  import { createBaseComponent, sstyled } from "@semcore/core";
6
+ import { useBox } from "@semcore/base-components";
6
7
  import keyboardFocusEnhance from "@semcore/core/lib/utils/enhances/keyboardFocusEnhance";
7
8
  import hasLabels from "@semcore/core/lib/utils/hasLabels";
8
9
  import logger from "@semcore/core/lib/utils/logger";
9
10
  import propsForElement from "@semcore/core/lib/utils/propsForElement";
10
11
  import { useForkRef } from "@semcore/core/lib/utils/ref";
11
12
  import { useColorResolver } from "@semcore/core/lib/utils/use/useColorResolver";
12
- import { useBox } from "@semcore/flex-box";
13
13
  import cn from "classnames";
14
14
  import React from "react";
15
15
  var _excluded = ["keyboardFocused"];
@@ -1,4 +1,4 @@
1
- import { BoxProps } from '@semcore/flex-box';
1
+ import { BoxProps } from '@semcore/base-components';
2
2
  import { Intergalactic, UnknownProperties } from '@semcore/core';
3
3
  import { KeyboardFocusProps } from '@semcore/core/lib/utils/enhances/keyboardFocusEnhance';
4
4
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/icon",
3
3
  "description": "Semrush Icon Component",
4
- "version": "16.5.1-prerelease.1",
4
+ "version": "16.5.1-prerelease.3",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/esm/index.mjs",
7
7
  "typings": "lib/types/index.d.ts",
@@ -9,11 +9,11 @@
9
9
  "author": "UI-kit team <ui-kit-team@semrush.com>",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@semcore/flex-box": "16.0.7-prerelease.1",
12
+ "@semcore/flex-box": "16.0.10-prerelease.3",
13
13
  "classnames": "2.2.6"
14
14
  },
15
15
  "peerDependencies": {
16
- "@semcore/base-components": "^16.2.1-prerelease.1"
16
+ "@semcore/base-components": "^16.4.0-prerelease.3"
17
17
  },
18
18
  "repository": {
19
19
  "type": "git",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/classnames": "2.2.6",
25
- "@semcore/base-components": "16.2.1-prerelease.1",
25
+ "@semcore/base-components": "16.4.0-prerelease.3",
26
26
  "@semcore/testing-utils": "1.0.0",
27
27
  "@semcore/icon-transform-svg": "1.1.0"
28
28
  },
@@ -747,26 +747,6 @@
747
747
  "import": "./ZoomPlus/l/index.mjs",
748
748
  "types": "./ZoomPlus/l/index.d.ts"
749
749
  },
750
- "./ZoomMinus/m": {
751
- "require": "./ZoomMinus/m/index.js",
752
- "import": "./ZoomMinus/m/index.mjs",
753
- "types": "./ZoomMinus/m/index.d.ts"
754
- },
755
- "./ZoomMinus/l": {
756
- "require": "./ZoomMinus/l/index.js",
757
- "import": "./ZoomMinus/l/index.mjs",
758
- "types": "./ZoomMinus/l/index.d.ts"
759
- },
760
- "./Youtube/m": {
761
- "require": "./Youtube/m/index.js",
762
- "import": "./Youtube/m/index.mjs",
763
- "types": "./Youtube/m/index.d.ts"
764
- },
765
- "./Youtube/l": {
766
- "require": "./Youtube/l/index.js",
767
- "import": "./Youtube/l/index.mjs",
768
- "types": "./Youtube/l/index.d.ts"
769
- },
770
750
  "./YoutubePlaceholder/m": {
771
751
  "require": "./YoutubePlaceholder/m/index.js",
772
752
  "import": "./YoutubePlaceholder/m/index.mjs",
@@ -777,6 +757,16 @@
777
757
  "import": "./YoutubePlaceholder/l/index.mjs",
778
758
  "types": "./YoutubePlaceholder/l/index.d.ts"
779
759
  },
760
+ "./ZoomMinus/m": {
761
+ "require": "./ZoomMinus/m/index.js",
762
+ "import": "./ZoomMinus/m/index.mjs",
763
+ "types": "./ZoomMinus/m/index.d.ts"
764
+ },
765
+ "./ZoomMinus/l": {
766
+ "require": "./ZoomMinus/l/index.js",
767
+ "import": "./ZoomMinus/l/index.mjs",
768
+ "types": "./ZoomMinus/l/index.d.ts"
769
+ },
780
770
  "./Yext/m": {
781
771
  "require": "./Yext/m/index.js",
782
772
  "import": "./Yext/m/index.mjs",
@@ -787,6 +777,16 @@
787
777
  "import": "./Yext/l/index.mjs",
788
778
  "types": "./Yext/l/index.d.ts"
789
779
  },
780
+ "./Youtube/m": {
781
+ "require": "./Youtube/m/index.js",
782
+ "import": "./Youtube/m/index.mjs",
783
+ "types": "./Youtube/m/index.d.ts"
784
+ },
785
+ "./Youtube/l": {
786
+ "require": "./Youtube/l/index.js",
787
+ "import": "./Youtube/l/index.mjs",
788
+ "types": "./Youtube/l/index.d.ts"
789
+ },
790
790
  "./Wristwatch/m": {
791
791
  "require": "./Wristwatch/m/index.js",
792
792
  "import": "./Wristwatch/m/index.mjs",
@@ -1457,16 +1457,6 @@
1457
1457
  "import": "./SideMenuRight/l/index.mjs",
1458
1458
  "types": "./SideMenuRight/l/index.d.ts"
1459
1459
  },
1460
- "./ShowYes/m": {
1461
- "require": "./ShowYes/m/index.js",
1462
- "import": "./ShowYes/m/index.mjs",
1463
- "types": "./ShowYes/m/index.d.ts"
1464
- },
1465
- "./ShowYes/l": {
1466
- "require": "./ShowYes/l/index.js",
1467
- "import": "./ShowYes/l/index.mjs",
1468
- "types": "./ShowYes/l/index.d.ts"
1469
- },
1470
1460
  "./SideMenuLeft/m": {
1471
1461
  "require": "./SideMenuLeft/m/index.js",
1472
1462
  "import": "./SideMenuLeft/m/index.mjs",
@@ -1477,6 +1467,16 @@
1477
1467
  "import": "./SideMenuLeft/l/index.mjs",
1478
1468
  "types": "./SideMenuLeft/l/index.d.ts"
1479
1469
  },
1470
+ "./ShowYes/m": {
1471
+ "require": "./ShowYes/m/index.js",
1472
+ "import": "./ShowYes/m/index.mjs",
1473
+ "types": "./ShowYes/m/index.d.ts"
1474
+ },
1475
+ "./ShowYes/l": {
1476
+ "require": "./ShowYes/l/index.js",
1477
+ "import": "./ShowYes/l/index.mjs",
1478
+ "types": "./ShowYes/l/index.d.ts"
1479
+ },
1480
1480
  "./ShowNo/m": {
1481
1481
  "require": "./ShowNo/m/index.js",
1482
1482
  "import": "./ShowNo/m/index.mjs",
@@ -1977,16 +1977,6 @@
1977
1977
  "import": "./PopupAlt/l/index.mjs",
1978
1978
  "types": "./PopupAlt/l/index.d.ts"
1979
1979
  },
1980
- "./Popup/m": {
1981
- "require": "./Popup/m/index.js",
1982
- "import": "./Popup/m/index.mjs",
1983
- "types": "./Popup/m/index.d.ts"
1984
- },
1985
- "./Popup/l": {
1986
- "require": "./Popup/l/index.js",
1987
- "import": "./Popup/l/index.mjs",
1988
- "types": "./Popup/l/index.d.ts"
1989
- },
1990
1980
  "./PopularStores/m": {
1991
1981
  "require": "./PopularStores/m/index.js",
1992
1982
  "import": "./PopularStores/m/index.mjs",
@@ -1997,6 +1987,16 @@
1997
1987
  "import": "./PopularStores/l/index.mjs",
1998
1988
  "types": "./PopularStores/l/index.d.ts"
1999
1989
  },
1990
+ "./Popup/m": {
1991
+ "require": "./Popup/m/index.js",
1992
+ "import": "./Popup/m/index.mjs",
1993
+ "types": "./Popup/m/index.d.ts"
1994
+ },
1995
+ "./Popup/l": {
1996
+ "require": "./Popup/l/index.js",
1997
+ "import": "./Popup/l/index.mjs",
1998
+ "types": "./Popup/l/index.d.ts"
1999
+ },
2000
2000
  "./PopularProducts/m": {
2001
2001
  "require": "./PopularProducts/m/index.js",
2002
2002
  "import": "./PopularProducts/m/index.mjs",
@@ -2127,16 +2127,6 @@
2127
2127
  "import": "./Picture/l/index.mjs",
2128
2128
  "types": "./Picture/l/index.d.ts"
2129
2129
  },
2130
- "./Photo/m": {
2131
- "require": "./Photo/m/index.js",
2132
- "import": "./Photo/m/index.mjs",
2133
- "types": "./Photo/m/index.d.ts"
2134
- },
2135
- "./Photo/l": {
2136
- "require": "./Photo/l/index.js",
2137
- "import": "./Photo/l/index.mjs",
2138
- "types": "./Photo/l/index.d.ts"
2139
- },
2140
2130
  "./Phone/m": {
2141
2131
  "require": "./Phone/m/index.js",
2142
2132
  "import": "./Phone/m/index.mjs",
@@ -2147,6 +2137,16 @@
2147
2137
  "import": "./Phone/l/index.mjs",
2148
2138
  "types": "./Phone/l/index.d.ts"
2149
2139
  },
2140
+ "./Photo/m": {
2141
+ "require": "./Photo/m/index.js",
2142
+ "import": "./Photo/m/index.mjs",
2143
+ "types": "./Photo/m/index.d.ts"
2144
+ },
2145
+ "./Photo/l": {
2146
+ "require": "./Photo/l/index.js",
2147
+ "import": "./Photo/l/index.mjs",
2148
+ "types": "./Photo/l/index.d.ts"
2149
+ },
2150
2150
  "./Perplexity/m": {
2151
2151
  "require": "./Perplexity/m/index.js",
2152
2152
  "import": "./Perplexity/m/index.mjs",
@@ -2257,6 +2257,16 @@
2257
2257
  "import": "./Notification/l/index.mjs",
2258
2258
  "types": "./Notification/l/index.d.ts"
2259
2259
  },
2260
+ "./Note/m": {
2261
+ "require": "./Note/m/index.js",
2262
+ "import": "./Note/m/index.mjs",
2263
+ "types": "./Note/m/index.d.ts"
2264
+ },
2265
+ "./Note/l": {
2266
+ "require": "./Note/l/index.js",
2267
+ "import": "./Note/l/index.mjs",
2268
+ "types": "./Note/l/index.d.ts"
2269
+ },
2260
2270
  "./News/m": {
2261
2271
  "require": "./News/m/index.js",
2262
2272
  "import": "./News/m/index.mjs",
@@ -2297,6 +2307,16 @@
2297
2307
  "import": "./MoveAlt/l/index.mjs",
2298
2308
  "types": "./MoveAlt/l/index.d.ts"
2299
2309
  },
2310
+ "./Monitoring/m": {
2311
+ "require": "./Monitoring/m/index.js",
2312
+ "import": "./Monitoring/m/index.mjs",
2313
+ "types": "./Monitoring/m/index.d.ts"
2314
+ },
2315
+ "./Monitoring/l": {
2316
+ "require": "./Monitoring/l/index.js",
2317
+ "import": "./Monitoring/l/index.mjs",
2318
+ "types": "./Monitoring/l/index.d.ts"
2319
+ },
2300
2320
  "./MoneyCoins/m": {
2301
2321
  "require": "./MoneyCoins/m/index.js",
2302
2322
  "import": "./MoneyCoins/m/index.mjs",
@@ -2577,6 +2597,16 @@
2577
2597
  "import": "./LinkInternal/l/index.mjs",
2578
2598
  "types": "./LinkInternal/l/index.d.ts"
2579
2599
  },
2600
+ "./LinkExternalAlt/m": {
2601
+ "require": "./LinkExternalAlt/m/index.js",
2602
+ "import": "./LinkExternalAlt/m/index.mjs",
2603
+ "types": "./LinkExternalAlt/m/index.d.ts"
2604
+ },
2605
+ "./LinkExternalAlt/l": {
2606
+ "require": "./LinkExternalAlt/l/index.js",
2607
+ "import": "./LinkExternalAlt/l/index.mjs",
2608
+ "types": "./LinkExternalAlt/l/index.d.ts"
2609
+ },
2580
2610
  "./LinkExternal/m": {
2581
2611
  "require": "./LinkExternal/m/index.js",
2582
2612
  "import": "./LinkExternal/m/index.mjs",
@@ -2667,16 +2697,6 @@
2667
2697
  "import": "./Law/l/index.mjs",
2668
2698
  "types": "./Law/l/index.d.ts"
2669
2699
  },
2670
- "./Laptop/m": {
2671
- "require": "./Laptop/m/index.js",
2672
- "import": "./Laptop/m/index.mjs",
2673
- "types": "./Laptop/m/index.d.ts"
2674
- },
2675
- "./Laptop/l": {
2676
- "require": "./Laptop/l/index.js",
2677
- "import": "./Laptop/l/index.mjs",
2678
- "types": "./Laptop/l/index.d.ts"
2679
- },
2680
2700
  "./Language/m": {
2681
2701
  "require": "./Language/m/index.js",
2682
2702
  "import": "./Language/m/index.mjs",
@@ -2687,6 +2707,16 @@
2687
2707
  "import": "./Language/l/index.mjs",
2688
2708
  "types": "./Language/l/index.d.ts"
2689
2709
  },
2710
+ "./Laptop/m": {
2711
+ "require": "./Laptop/m/index.js",
2712
+ "import": "./Laptop/m/index.mjs",
2713
+ "types": "./Laptop/m/index.d.ts"
2714
+ },
2715
+ "./Laptop/l": {
2716
+ "require": "./Laptop/l/index.js",
2717
+ "import": "./Laptop/l/index.mjs",
2718
+ "types": "./Laptop/l/index.d.ts"
2719
+ },
2690
2720
  "./KeyHotkey/m": {
2691
2721
  "require": "./KeyHotkey/m/index.js",
2692
2722
  "import": "./KeyHotkey/m/index.mjs",
@@ -3217,16 +3247,6 @@
3217
3247
  "import": "./Favorite/l/index.mjs",
3218
3248
  "types": "./Favorite/l/index.d.ts"
3219
3249
  },
3220
- "./Farm/m": {
3221
- "require": "./Farm/m/index.js",
3222
- "import": "./Farm/m/index.mjs",
3223
- "types": "./Farm/m/index.d.ts"
3224
- },
3225
- "./Farm/l": {
3226
- "require": "./Farm/l/index.js",
3227
- "import": "./Farm/l/index.mjs",
3228
- "types": "./Farm/l/index.d.ts"
3229
- },
3230
3250
  "./Fashion/m": {
3231
3251
  "require": "./Fashion/m/index.js",
3232
3252
  "import": "./Fashion/m/index.mjs",
@@ -3237,6 +3257,16 @@
3237
3257
  "import": "./Fashion/l/index.mjs",
3238
3258
  "types": "./Fashion/l/index.d.ts"
3239
3259
  },
3260
+ "./Farm/m": {
3261
+ "require": "./Farm/m/index.js",
3262
+ "import": "./Farm/m/index.mjs",
3263
+ "types": "./Farm/m/index.d.ts"
3264
+ },
3265
+ "./Farm/l": {
3266
+ "require": "./Farm/l/index.js",
3267
+ "import": "./Farm/l/index.mjs",
3268
+ "types": "./Farm/l/index.d.ts"
3269
+ },
3240
3270
  "./FacebookMessenger/m": {
3241
3271
  "require": "./FacebookMessenger/m/index.js",
3242
3272
  "import": "./FacebookMessenger/m/index.mjs",
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M18.997 4.006H9a1.001 1.001 0 0 0 0 2.003h7.58L4.294 18.296a1.001 1.001 0 1 0 1.416 1.416L17.995 7.425v7.58a1 1 0 0 0 1.002 1 1 1 0 0 0 1.001-1V5.008c0-.547-.457-1.001-1.001-1.001"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M12.997 2.005H6a1.001 1.001 0 0 0 0 2.003h4.58l-8.285 8.288a1.001 1.001 0 1 0 1.416 1.416l8.284-8.288v4.581a1 1 0 0 0 1.002 1 1 1 0 0 0 1.001-1V3.007c0-.548-.457-1.002-1.001-1.002"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M11 1.005c-5.523 0-10 4.478-10 10s4.477 10 10 10a9.96 9.96 0 0 0 6.329-2.257l3.964 3.964a1 1 0 1 0 1.414-1.414l-3.964-3.964A9.96 9.96 0 0 0 21 11.005c0-5.522-4.477-10-10-10m-8 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0"/><path d="M7 11.005a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0zM10 7.005a1 1 0 1 1 2 0v7a1 1 0 1 1-2 0zM13 9.005a1 1 0 1 1 2 0v5a1 1 0 1 1-2 0z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M6 7.005a1 1 0 0 1 1 1v1.2a1 1 0 0 1-2 0v-1.2a1 1 0 0 1 1-1M9 4.805a1 1 0 0 1 1 1v3.4a1 1 0 0 1-2 0v-3.4a1 1 0 0 1 1-1"/><path d="M7.5 1.005a6.5 6.5 0 0 1 5.247 10.334l1.96 1.96a1 1 0 1 1-1.414 1.414l-1.96-1.96A6.5 6.5 0 1 1 7.5 1.006m0 2a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M13 17h-2v-6h2zm0-8h-2V7h2z"/><path d="M12 1c6.075 0 11 4.925 11 11s-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1m0 2a9 9 0 1 0 0 18 9 9 0 0 0 0-18"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><path d="M9 12H7V7h2zm0-6H7V4h2z"/><path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0m0 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2"/></svg>