@semcore/icon 2.28.0 → 2.29.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 +6 -0
- package/ClusteredList/l/index.d.ts +7 -0
- package/ClusteredList/l/index.js +52 -0
- package/ClusteredList/l/index.mjs +32 -0
- package/ClusteredList/m/index.d.ts +7 -0
- package/ClusteredList/m/index.js +52 -0
- package/ClusteredList/m/index.mjs +32 -0
- package/README.md +2 -2
- package/lib/cjs/Icon.js +7 -7
- package/lib/es6/Icon.js +7 -7
- package/package.json +1 -1
- package/svg-new/icon/ClusteredList/l.svg +1 -0
- package/svg-new/icon/ClusteredList/m.svg +1 -0
- package/src/Icon.jsx +0 -49
- package/src/index.d.ts +0 -17
- package/src/index.js +0 -1
- package/src/style/icon.shadow.css +0 -23
package/CHANGELOG.md
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Merge } from '@semcore/core';
|
|
4
|
+
import { IIconProps } from '@semcore/icon';
|
|
5
|
+
declare const _default: import("@semcore/core").ComponentType<Merge<IIconProps, React.SVGAttributes<SVGElement>>, {}, {}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
|
|
@@ -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 ClusteredList(_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 ? '24' : _ref$height,
|
|
27
|
+
_ref$viewBox = _ref.viewBox,
|
|
28
|
+
viewBox = _ref$viewBox === void 0 ? '0 0 24 24' : _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": "ClusteredList",
|
|
33
|
+
"data-group": "l",
|
|
34
|
+
width: width,
|
|
35
|
+
height: height,
|
|
36
|
+
viewBox: viewBox
|
|
37
|
+
}, props), /*#__PURE__*/_react["default"].createElement("path", {
|
|
38
|
+
fillRule: "evenodd",
|
|
39
|
+
clipRule: "evenodd",
|
|
40
|
+
d: "M12 9a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm0-2a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM4.5 22a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm0-2a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM19.5 22a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm0-2a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z",
|
|
41
|
+
shapeRendering: "geometricPrecision"
|
|
42
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
43
|
+
d: "M16.515 7.65c.309-.646.483-1.37.485-2.134a8.991 8.991 0 0 1 3.972 8.204 4.998 4.998 0 0 0-1.992-.193 6.985 6.985 0 0 0-2.465-5.876ZM14.6 19.501c.137.672.408 1.296.785 1.84A8.974 8.974 0 0 1 12 22a8.973 8.973 0 0 1-3.385-.658 4.973 4.973 0 0 0 .785-1.84A6.982 6.982 0 0 0 12 20c.919 0 1.796-.177 2.6-.499ZM4.5 13.5c-.512 0-1.006.077-1.472.22A8.991 8.991 0 0 1 7 5.515a4.98 4.98 0 0 0 .485 2.136 6.985 6.985 0 0 0-2.465 5.876 5.066 5.066 0 0 0-.52-.027Z",
|
|
44
|
+
shapeRendering: "geometricPrecision"
|
|
45
|
+
}));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
ClusteredList.displayName = 'ClusteredList';
|
|
49
|
+
|
|
50
|
+
var _default = (0, _core.createBaseComponent)(ClusteredList);
|
|
51
|
+
|
|
52
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || 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 ClusteredList({
|
|
8
|
+
width = '24',
|
|
9
|
+
height = '24',
|
|
10
|
+
viewBox = '0 0 24 24',
|
|
11
|
+
...props
|
|
12
|
+
}, ref) {
|
|
13
|
+
return /*#__PURE__*/React.createElement(Icon, _extends({
|
|
14
|
+
ref: ref,
|
|
15
|
+
"data-name": "ClusteredList",
|
|
16
|
+
"data-group": "l",
|
|
17
|
+
width: width,
|
|
18
|
+
height: height,
|
|
19
|
+
viewBox: viewBox
|
|
20
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
21
|
+
fillRule: "evenodd",
|
|
22
|
+
clipRule: "evenodd",
|
|
23
|
+
d: "M12 9a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm0-2a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM4.5 22a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm0-2a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM19.5 22a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm0-2a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z",
|
|
24
|
+
shapeRendering: "geometricPrecision"
|
|
25
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
26
|
+
d: "M16.515 7.65c.309-.646.483-1.37.485-2.134a8.991 8.991 0 0 1 3.972 8.204 4.998 4.998 0 0 0-1.992-.193 6.985 6.985 0 0 0-2.465-5.876ZM14.6 19.501c.137.672.408 1.296.785 1.84A8.974 8.974 0 0 1 12 22a8.973 8.973 0 0 1-3.385-.658 4.973 4.973 0 0 0 .785-1.84A6.982 6.982 0 0 0 12 20c.919 0 1.796-.177 2.6-.499ZM4.5 13.5c-.512 0-1.006.077-1.472.22A8.991 8.991 0 0 1 7 5.515a4.98 4.98 0 0 0 .485 2.136 6.985 6.985 0 0 0-2.465 5.876 5.066 5.066 0 0 0-.52-.027Z",
|
|
27
|
+
shapeRendering: "geometricPrecision"
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
ClusteredList.displayName = 'ClusteredList';
|
|
32
|
+
export default createBaseComponent(ClusteredList);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Merge } from '@semcore/core';
|
|
4
|
+
import { IIconProps } from '@semcore/icon';
|
|
5
|
+
declare const _default: import("@semcore/core").ComponentType<Merge<IIconProps, React.SVGAttributes<SVGElement>>, {}, {}>;
|
|
6
|
+
export default _default;
|
|
7
|
+
|
|
@@ -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 ClusteredList(_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": "ClusteredList",
|
|
33
|
+
"data-group": "m",
|
|
34
|
+
width: width,
|
|
35
|
+
height: height,
|
|
36
|
+
viewBox: viewBox
|
|
37
|
+
}, props), /*#__PURE__*/_react["default"].createElement("path", {
|
|
38
|
+
fillRule: "evenodd",
|
|
39
|
+
clipRule: "evenodd",
|
|
40
|
+
d: "M8 5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm0-2a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1ZM2.5 14a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm0-2a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1ZM13.5 14a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm0-2a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z",
|
|
41
|
+
shapeRendering: "geometricPrecision"
|
|
42
|
+
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
43
|
+
d: "M11.5 2.5c0 .573-.138 1.114-.382 1.591A4.99 4.99 0 0 1 13 8v.035a3.529 3.529 0 0 1 1.992.298 6.998 6.998 0 0 0-3.542-6.425c.033.192.05.39.05.592ZM4.5 2.5c0 .573.138 1.114.382 1.591A4.99 4.99 0 0 0 3 8v.035a3.53 3.53 0 0 0-1.992.298A6.998 6.998 0 0 1 4.55 1.908c-.033.192-.05.39-.05.592ZM4.735 14.194a3.503 3.503 0 0 0 1.115-1.678A4.98 4.98 0 0 0 8 13a4.98 4.98 0 0 0 2.15-.484 3.504 3.504 0 0 0 1.115 1.678A6.968 6.968 0 0 1 8 15c-1.18 0-2.29-.291-3.265-.806Z",
|
|
44
|
+
shapeRendering: "geometricPrecision"
|
|
45
|
+
}));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
ClusteredList.displayName = 'ClusteredList';
|
|
49
|
+
|
|
50
|
+
var _default = (0, _core.createBaseComponent)(ClusteredList);
|
|
51
|
+
|
|
52
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || 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 ClusteredList({
|
|
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": "ClusteredList",
|
|
16
|
+
"data-group": "m",
|
|
17
|
+
width: width,
|
|
18
|
+
height: height,
|
|
19
|
+
viewBox: viewBox
|
|
20
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
21
|
+
fillRule: "evenodd",
|
|
22
|
+
clipRule: "evenodd",
|
|
23
|
+
d: "M8 5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm0-2a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1ZM2.5 14a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm0-2a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1ZM13.5 14a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm0-2a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z",
|
|
24
|
+
shapeRendering: "geometricPrecision"
|
|
25
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
26
|
+
d: "M11.5 2.5c0 .573-.138 1.114-.382 1.591A4.99 4.99 0 0 1 13 8v.035a3.529 3.529 0 0 1 1.992.298 6.998 6.998 0 0 0-3.542-6.425c.033.192.05.39.05.592ZM4.5 2.5c0 .573.138 1.114.382 1.591A4.99 4.99 0 0 0 3 8v.035a3.53 3.53 0 0 0-1.992.298A6.998 6.998 0 0 1 4.55 1.908c-.033.192-.05.39-.05.592ZM4.735 14.194a3.503 3.503 0 0 0 1.115-1.678A4.98 4.98 0 0 0 8 13a4.98 4.98 0 0 0 2.15-.484 3.504 3.504 0 0 0 1.115 1.678A6.968 6.968 0 0 1 8 15c-1.18 0-2.29-.291-3.265-.806Z",
|
|
27
|
+
shapeRendering: "geometricPrecision"
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
ClusteredList.displayName = 'ClusteredList';
|
|
32
|
+
export default createBaseComponent(ClusteredList);
|
package/README.md
CHANGED
|
@@ -42,12 +42,12 @@ of the components that is discussed below. There should only be one version of t
|
|
|
42
42
|
|
|
43
43
|
You can use the package the same way but without `/ui/` in the import path.
|
|
44
44
|
|
|
45
|
-
</details>
|
|
46
|
-
|
|
47
45
|
```jsx
|
|
48
46
|
import Accordion from '@semcore/icon';
|
|
49
47
|
```
|
|
50
48
|
|
|
49
|
+
</details>
|
|
50
|
+
|
|
51
51
|
## 👤 Author
|
|
52
52
|
|
|
53
53
|
[UI-kit team](https://github.com/semrush/intergalactic/blob/master/MAINTAINERS) and [others ❤️](https://github.com/semrush/intergalactic/graphs/contributors)
|
package/lib/cjs/Icon.js
CHANGED
|
@@ -46,16 +46,16 @@ var styles = (
|
|
|
46
46
|
/*__reshadow_css_start__*/
|
|
47
47
|
_core.sstyled.insert(
|
|
48
48
|
/*__inner_css_start__*/
|
|
49
|
-
".
|
|
49
|
+
".___SIcon_137mp_gg_{display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;shape-rendering:geometricPrecision;box-sizing:content-box;fill:currentColor;flex-shrink:0;outline:none;color:var(--color_137mp)}.___SIcon_137mp_gg_.__keyboardFocused_137mp_gg_{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2)}.___SIcon_137mp_gg_.__interactive_137mp_gg_{cursor:pointer}.___SIcon_137mp_gg_.__interactive_137mp_gg_:hover{color:var(--color-interactive_137mp)}"
|
|
50
50
|
/*__inner_css_end__*/
|
|
51
|
-
, "
|
|
51
|
+
, "137mp_gg_")
|
|
52
52
|
/*__reshadow_css_end__*/
|
|
53
53
|
, {
|
|
54
|
-
"__SIcon": "
|
|
55
|
-
"--color": "--
|
|
56
|
-
"_keyboardFocused": "
|
|
57
|
-
"_interactive": "
|
|
58
|
-
"--color-interactive": "--color-
|
|
54
|
+
"__SIcon": "___SIcon_137mp_gg_",
|
|
55
|
+
"--color": "--color_137mp",
|
|
56
|
+
"_keyboardFocused": "__keyboardFocused_137mp_gg_",
|
|
57
|
+
"_interactive": "__interactive_137mp_gg_",
|
|
58
|
+
"--color-interactive": "--color-interactive_137mp"
|
|
59
59
|
});
|
|
60
60
|
|
|
61
61
|
function Icon(props, ref) {
|
package/lib/es6/Icon.js
CHANGED
|
@@ -22,16 +22,16 @@ var styles = (
|
|
|
22
22
|
/*__reshadow_css_start__*/
|
|
23
23
|
_sstyled.insert(
|
|
24
24
|
/*__inner_css_start__*/
|
|
25
|
-
".
|
|
25
|
+
".___SIcon_137mp_gg_{display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;shape-rendering:geometricPrecision;box-sizing:content-box;fill:currentColor;flex-shrink:0;outline:none;color:var(--color_137mp)}.___SIcon_137mp_gg_.__keyboardFocused_137mp_gg_{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2)}.___SIcon_137mp_gg_.__interactive_137mp_gg_{cursor:pointer}.___SIcon_137mp_gg_.__interactive_137mp_gg_:hover{color:var(--color-interactive_137mp)}"
|
|
26
26
|
/*__inner_css_end__*/
|
|
27
|
-
, "
|
|
27
|
+
, "137mp_gg_")
|
|
28
28
|
/*__reshadow_css_end__*/
|
|
29
29
|
, {
|
|
30
|
-
"__SIcon": "
|
|
31
|
-
"--color": "--
|
|
32
|
-
"_keyboardFocused": "
|
|
33
|
-
"_interactive": "
|
|
34
|
-
"--color-interactive": "--color-
|
|
30
|
+
"__SIcon": "___SIcon_137mp_gg_",
|
|
31
|
+
"--color": "--color_137mp",
|
|
32
|
+
"_keyboardFocused": "__keyboardFocused_137mp_gg_",
|
|
33
|
+
"_interactive": "__interactive_137mp_gg_",
|
|
34
|
+
"--color-interactive": "--color-interactive_137mp"
|
|
35
35
|
});
|
|
36
36
|
|
|
37
37
|
function Icon(props, ref) {
|
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 9a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm0-2a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM4.5 22a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm0-2a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM19.5 22a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Zm0-2a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"/><path d="M16.515 7.65c.309-.646.483-1.37.485-2.134a8.991 8.991 0 0 1 3.972 8.204 4.998 4.998 0 0 0-1.992-.193 6.985 6.985 0 0 0-2.465-5.876ZM14.6 19.501c.137.672.408 1.296.785 1.84A8.974 8.974 0 0 1 12 22a8.973 8.973 0 0 1-3.385-.658 4.973 4.973 0 0 0 .785-1.84A6.982 6.982 0 0 0 12 20c.919 0 1.796-.177 2.6-.499ZM4.5 13.5c-.512 0-1.006.077-1.472.22A8.991 8.991 0 0 1 7 5.515a4.98 4.98 0 0 0 .485 2.136 6.985 6.985 0 0 0-2.465 5.876 5.066 5.066 0 0 0-.52-.027Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M8 5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm0-2a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1ZM2.5 14a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm0-2a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1ZM13.5 14a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm0-2a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1Z"/><path d="M11.5 2.5c0 .573-.138 1.114-.382 1.591A4.99 4.99 0 0 1 13 8v.035a3.529 3.529 0 0 1 1.992.298 6.998 6.998 0 0 0-3.542-6.425c.033.192.05.39.05.592ZM4.5 2.5c0 .573.138 1.114.382 1.591A4.99 4.99 0 0 0 3 8v.035a3.53 3.53 0 0 0-1.992.298A6.998 6.998 0 0 1 4.55 1.908c-.033.192-.05.39-.05.592ZM4.735 14.194a3.503 3.503 0 0 0 1.115-1.678A4.98 4.98 0 0 0 8 13a4.98 4.98 0 0 0 2.15-.484 3.504 3.504 0 0 0 1.115 1.678A6.968 6.968 0 0 1 8 15c-1.18 0-2.29-.291-3.265-.806Z"/></svg>
|
package/src/Icon.jsx
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import cn from 'classnames';
|
|
3
|
-
import { createBaseComponent, sstyled } from '@semcore/core';
|
|
4
|
-
import { useBox } from '@semcore/flex-box';
|
|
5
|
-
import resolveColor, { shade } from '@semcore/utils/lib/color';
|
|
6
|
-
import keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';
|
|
7
|
-
import propsForElement from '@semcore/utils/lib/propsForElement';
|
|
8
|
-
|
|
9
|
-
import styles from './style/icon.shadow.css';
|
|
10
|
-
|
|
11
|
-
function Icon(props, ref) {
|
|
12
|
-
const [SIcon, other] = useBox(
|
|
13
|
-
{
|
|
14
|
-
tag: 'svg',
|
|
15
|
-
'data-ui-name': 'Icon',
|
|
16
|
-
width: 16,
|
|
17
|
-
height: 16,
|
|
18
|
-
viewBox: '0 0 16 16',
|
|
19
|
-
...props,
|
|
20
|
-
},
|
|
21
|
-
ref,
|
|
22
|
-
);
|
|
23
|
-
|
|
24
|
-
const { interactive, color: colorProps } = props;
|
|
25
|
-
const color = resolveColor(colorProps);
|
|
26
|
-
const { keyboardFocused, ...propsWithKeyboardEnhance } = keyboardFocusEnhance()({
|
|
27
|
-
disabled: !interactive,
|
|
28
|
-
...other,
|
|
29
|
-
});
|
|
30
|
-
const sstyles = sstyled(styles);
|
|
31
|
-
const { className, style } = sstyles.cn('SIcon', {
|
|
32
|
-
'color-interactive': shade(color, -0.12),
|
|
33
|
-
'use:color': color,
|
|
34
|
-
interactive: interactive,
|
|
35
|
-
keyboardFocused: keyboardFocused,
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
return (
|
|
39
|
-
<SIcon
|
|
40
|
-
{...propsForElement(propsWithKeyboardEnhance)}
|
|
41
|
-
style={Object.assign({}, style, propsWithKeyboardEnhance.style, props.style)}
|
|
42
|
-
className={cn(className, propsWithKeyboardEnhance.className, props.className) || undefined}
|
|
43
|
-
/>
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
Icon.displayName = 'Icon';
|
|
48
|
-
|
|
49
|
-
export default createBaseComponent(Icon);
|
package/src/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { IBoxProps } from '@semcore/flex-box';
|
|
2
|
-
import { IKeyboardFocusProps } from '@semcore/utils/lib/enhances/keyboardFocusEnhance';
|
|
3
|
-
import { ReturnEl } from '@semcore/core';
|
|
4
|
-
|
|
5
|
-
export interface IIconProps extends IBoxProps, IKeyboardFocusProps {
|
|
6
|
-
width?: string | number;
|
|
7
|
-
height?: string | number;
|
|
8
|
-
viewBox?: string;
|
|
9
|
-
/** Make an icon interactive */
|
|
10
|
-
interactive?: boolean;
|
|
11
|
-
/** Icon color */
|
|
12
|
-
color?: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
declare const Icon: <T>(props: IIconProps & T) => ReturnEl;
|
|
16
|
-
|
|
17
|
-
export default Icon;
|
package/src/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Icon';
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
@import '@semcore/utils/style/var.css';
|
|
2
|
-
|
|
3
|
-
SIcon {
|
|
4
|
-
display: inline-block;
|
|
5
|
-
user-select: none;
|
|
6
|
-
shape-rendering: geometricPrecision;
|
|
7
|
-
box-sizing: content-box;
|
|
8
|
-
fill: currentColor;
|
|
9
|
-
flex-shrink: 0;
|
|
10
|
-
outline: none;
|
|
11
|
-
color: var(--color);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
SIcon[keyboardFocused] {
|
|
15
|
-
box-shadow: var(--keyboard-focus);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
SIcon[interactive] {
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
&:hover {
|
|
21
|
-
color: var(--color-interactive);
|
|
22
|
-
}
|
|
23
|
-
}
|