@semcore/icon 2.19.3 → 2.21.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.
Files changed (71) hide show
  1. package/BracketsCode/l/index.js +1 -1
  2. package/CHANGELOG.md +26 -0
  3. package/{UserGroupNo → Casual}/l/index.d.ts +0 -0
  4. package/Casual/l/index.js +49 -0
  5. package/{UserGroupNo → Casual}/m/index.d.ts +0 -0
  6. package/Casual/m/index.js +49 -0
  7. package/{UserShared → Formal}/l/index.d.ts +0 -0
  8. package/Formal/l/index.js +49 -0
  9. package/{UserShared → Formal}/m/index.d.ts +0 -0
  10. package/Formal/m/index.js +49 -0
  11. package/IndentedResult/l/index.d.ts +7 -0
  12. package/IndentedResult/l/index.js +49 -0
  13. package/IndentedResult/m/index.d.ts +7 -0
  14. package/IndentedResult/m/index.js +49 -0
  15. package/MathMinusAlt/l/index.d.ts +7 -0
  16. package/{UserGroupNo → MathMinusAlt}/l/index.js +6 -9
  17. package/MathMinusAlt/m/index.d.ts +7 -0
  18. package/{UserShared → MathMinusAlt}/m/index.js +6 -6
  19. package/QuestionSerp/l/index.d.ts +7 -0
  20. package/QuestionSerp/l/index.js +47 -0
  21. package/QuestionSerp/m/index.d.ts +7 -0
  22. package/QuestionSerp/m/index.js +47 -0
  23. package/UserGroup/l/index.js +3 -3
  24. package/UserGroup/m/index.js +3 -3
  25. package/UserSharedFirst/l/index.d.ts +7 -0
  26. package/{UserShared → UserSharedFirst}/l/index.js +5 -5
  27. package/UserSharedFirst/m/index.d.ts +7 -0
  28. package/{UserGroupNo → UserSharedFirst}/m/index.js +8 -6
  29. package/color/MicrosoftOffice/l/index.js +10 -10
  30. package/color/MicrosoftOffice/m/index.js +10 -10
  31. package/color/MicrosoftOutlook/l/index.js +5 -5
  32. package/color/MicrosoftOutlook/m/index.js +4 -4
  33. package/lib/MathMinus/s/index.js +4 -4
  34. package/lib/MathMinus/xs/index.js +4 -4
  35. package/lib/cjs/Icon.js.map +1 -1
  36. package/lib/cjs/index.d.ts +17 -0
  37. package/lib/color/GitHub/s/index.js +1 -1
  38. package/lib/color/GitHub/xs/index.js +1 -1
  39. package/lib/color/WhatsApp/m/index.js +1 -1
  40. package/lib/color/WhatsApp/s/index.js +1 -1
  41. package/lib/color/WhatsApp/xs/index.js +1 -1
  42. package/lib/es6/Icon.js.map +1 -1
  43. package/lib/es6/index.d.ts +17 -0
  44. package/lib/pay/Visa/index.js +1 -1
  45. package/package.json +6 -2
  46. package/pay/CreditCard/l/index.js +24 -24
  47. package/pay/CreditCard/m/index.js +3 -3
  48. package/pay/Discover/l/index.js +5 -5
  49. package/pay/Discover/m/index.js +5 -5
  50. package/pay/JCB/l/index.js +12 -12
  51. package/pay/JCB/m/index.js +12 -12
  52. package/pay/Visa/l/index.js +6 -6
  53. package/pay/Visa/m/index.js +6 -6
  54. package/src/{Icon.js → Icon.jsx} +0 -0
  55. package/svg-new/icon/Casual/l.svg +1 -0
  56. package/svg-new/icon/Casual/m.svg +1 -0
  57. package/svg-new/icon/Formal/l.svg +1 -0
  58. package/svg-new/icon/Formal/m.svg +1 -0
  59. package/svg-new/icon/IndentedResult/l.svg +1 -0
  60. package/svg-new/icon/IndentedResult/m.svg +1 -0
  61. package/svg-new/icon/MathMinusAlt/l.svg +4 -0
  62. package/svg-new/icon/MathMinusAlt/m.svg +4 -0
  63. package/svg-new/icon/QuestionSerp/l.svg +1 -0
  64. package/svg-new/icon/QuestionSerp/m.svg +1 -0
  65. package/svg-new/icon/UserGroup/l.svg +1 -1
  66. package/svg-new/icon/UserGroup/m.svg +1 -1
  67. package/svg-new/icon/{UserShared → UserSharedFirst}/l.svg +1 -1
  68. package/svg-new/icon/UserSharedFirst/m.svg +1 -0
  69. package/svg-new/icon/UserGroupNo/l.svg +0 -1
  70. package/svg-new/icon/UserGroupNo/m.svg +0 -1
  71. package/svg-new/icon/UserShared/m.svg +0 -1
@@ -19,7 +19,7 @@ var _icon = _interopRequireDefault(require("@semcore/icon"));
19
19
 
20
20
  var _excluded = ["width", "height", "viewBox"];
21
21
 
22
- function UserShared(_ref, ref) {
22
+ function UserSharedFirst(_ref, ref) {
23
23
  var _ref$width = _ref.width,
24
24
  width = _ref$width === void 0 ? '24' : _ref$width,
25
25
  _ref$height = _ref.height,
@@ -29,7 +29,7 @@ function UserShared(_ref, ref) {
29
29
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
30
30
  return /*#__PURE__*/_react["default"].createElement(_icon["default"], (0, _extends2["default"])({
31
31
  ref: ref,
32
- "data-name": "UserShared",
32
+ "data-name": "UserSharedFirst",
33
33
  "data-group": "l",
34
34
  width: width,
35
35
  height: height,
@@ -40,13 +40,13 @@ function UserShared(_ref, ref) {
40
40
  d: "M4 8a5 5 0 1 1 10 0A5 5 0 0 1 4 8Zm5-3a3 3 0 1 0 0 6 3 3 0 0 0 0-6Z",
41
41
  shapeRendering: "geometricPrecision"
42
42
  }), /*#__PURE__*/_react["default"].createElement("path", {
43
- d: "M1 19.5A4.5 4.5 0 0 1 5.5 15h7a4.5 4.5 0 0 1 4.5 4.5v.5h-2v-.5a2.5 2.5 0 0 0-2.5-2.5h-7A2.5 2.5 0 0 0 3 19.5v.5H1v-.5Zm18.293-2.793a1 1 0 0 0 1.414-1.414L18.414 13H23a1 1 0 1 0 0-2h-4.586l2.293-2.293a1 1 0 0 0-1.414-1.414l-4 4a1 1 0 0 0 0 1.414l4 4Z",
43
+ d: "M1 19.5A4.5 4.5 0 0 1 5.5 15h7a4.5 4.5 0 0 1 4.5 4.5v.5h-2v-.5a2.5 2.5 0 0 0-2.5-2.5h-7A2.5 2.5 0 0 0 3 19.5v.5H1v-.5ZM16 12a1 1 0 0 1 1-1h2V9a1 1 0 1 1 2 0v2h2a1 1 0 1 1 0 2h-2v2a1 1 0 1 1-2 0v-2h-2a1 1 0 0 1-1-1Z",
44
44
  shapeRendering: "geometricPrecision"
45
45
  }));
46
46
  }
47
47
 
48
- UserShared.displayName = 'UserShared';
48
+ UserSharedFirst.displayName = 'UserSharedFirst';
49
49
 
50
- var _default = (0, _core.createBaseComponent)(UserShared);
50
+ var _default = (0, _core.createBaseComponent)(UserSharedFirst);
51
51
 
52
52
  exports["default"] = _default;
@@ -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
+
@@ -19,7 +19,7 @@ var _icon = _interopRequireDefault(require("@semcore/icon"));
19
19
 
20
20
  var _excluded = ["width", "height", "viewBox"];
21
21
 
22
- function UserGroupNo(_ref, ref) {
22
+ function UserSharedFirst(_ref, ref) {
23
23
  var _ref$width = _ref.width,
24
24
  width = _ref$width === void 0 ? '16' : _ref$width,
25
25
  _ref$height = _ref.height,
@@ -29,22 +29,24 @@ function UserGroupNo(_ref, ref) {
29
29
  props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
30
30
  return /*#__PURE__*/_react["default"].createElement(_icon["default"], (0, _extends2["default"])({
31
31
  ref: ref,
32
- "data-name": "UserGroupNo",
32
+ "data-name": "UserSharedFirst",
33
33
  "data-group": "m",
34
34
  width: width,
35
35
  height: height,
36
36
  viewBox: viewBox
37
37
  }, props), /*#__PURE__*/_react["default"].createElement("path", {
38
- d: "m15.707 1.707-.389.389A3 3 0 0 1 13 7c0-.756-.168-1.474-.469-2.116a1 1 0 0 0 1.352-1.353l-2.931 2.931a3 3 0 0 1-3.49 3.49L6.414 11H10a3 3 0 0 1 3 3v1h-2v-1a1 1 0 0 0-1-1H4.414l-1.707 1.707-1 1a1 1 0 0 1-1.414-1.414l1-1 13-13a1 1 0 1 1 1.414 1.414ZM3 5c.17 0 .329-.042.469-.116A4.974 4.974 0 0 0 3 7a3 3 0 1 1 2.647-4.413C5 2.933 4.437 3.417 4 4a1 1 0 1 0-1 1Zm2 2 3-3a3 3 0 0 0-3 3ZM3.1 8c.049.24.115.476.197.703L0 12v-1a3 3 0 0 1 3-3h.1Z",
38
+ fillRule: "evenodd",
39
+ clipRule: "evenodd",
40
+ d: "M5 3a3 3 0 1 0 0 6 3 3 0 0 0 0-6ZM4 6a1 1 0 1 1 2 0 1 1 0 0 1-2 0Z",
39
41
  shapeRendering: "geometricPrecision"
40
42
  }), /*#__PURE__*/_react["default"].createElement("path", {
41
- d: "M12 10h1a1 1 0 0 1 1 1v1h2v-1a3 3 0 0 0-3-3h-.1a4.977 4.977 0 0 1-.9 2Z",
43
+ d: "M3 10a3 3 0 0 0-3 3v1h2v-1a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v1h2v-1a3 3 0 0 0-3-3H3ZM13 5a1 1 0 0 1 1 1v1h1a1 1 0 1 1 0 2h-1v1a1 1 0 1 1-2 0V9h-1a1 1 0 1 1 0-2h1V6a1 1 0 0 1 1-1Z",
42
44
  shapeRendering: "geometricPrecision"
43
45
  }));
44
46
  }
45
47
 
46
- UserGroupNo.displayName = 'UserGroupNo';
48
+ UserSharedFirst.displayName = 'UserSharedFirst';
47
49
 
48
- var _default = (0, _core.createBaseComponent)(UserGroupNo);
50
+ var _default = (0, _core.createBaseComponent)(UserSharedFirst);
49
51
 
50
52
  exports["default"] = _default;
@@ -54,7 +54,7 @@ function MicrosoftOffice(_ref, ref) {
54
54
  d: "M15.27 18.74H7.72a1.27 1.27 0 0 0-1.21.95 1.28 1.28 0 0 0 .58 1.43l4.5 2.56a2.45 2.45 0 0 0 1.9.22 2.46 2.46 0 0 0 1.78-2.38v-2.78Z",
55
55
  fill: "url(#e)",
56
56
  shapeRendering: "geometricPrecision"
57
- }), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("linearGradient", {
57
+ }), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("lineargradient", {
58
58
  id: "a",
59
59
  x1: "17.73",
60
60
  y1: "-1.26",
@@ -75,7 +75,7 @@ function MicrosoftOffice(_ref, ref) {
75
75
  }), /*#__PURE__*/_react["default"].createElement("stop", {
76
76
  offset: ".5",
77
77
  stopColor: "#D83B01"
78
- })), /*#__PURE__*/_react["default"].createElement("linearGradient", {
78
+ })), /*#__PURE__*/_react["default"].createElement("lineargradient", {
79
79
  id: "b",
80
80
  x1: "13.5",
81
81
  y1: "-.43",
@@ -97,9 +97,9 @@ function MicrosoftOffice(_ref, ref) {
97
97
  offset: ".94",
98
98
  stopColor: "#B95799"
99
99
  }), /*#__PURE__*/_react["default"].createElement("stop", {
100
- offset: 1,
100
+ offset: "1",
101
101
  stopColor: "#B85BA2"
102
- })), /*#__PURE__*/_react["default"].createElement("linearGradient", {
102
+ })), /*#__PURE__*/_react["default"].createElement("lineargradient", {
103
103
  id: "c",
104
104
  x1: "7.16",
105
105
  y1: "21.37",
@@ -111,7 +111,7 @@ function MicrosoftOffice(_ref, ref) {
111
111
  }), /*#__PURE__*/_react["default"].createElement("stop", {
112
112
  offset: ".6",
113
113
  stopColor: "#A4070A"
114
- })), /*#__PURE__*/_react["default"].createElement("linearGradient", {
114
+ })), /*#__PURE__*/_react["default"].createElement("lineargradient", {
115
115
  id: "d",
116
116
  x1: "13.75",
117
117
  y1: "-.79",
@@ -121,9 +121,9 @@ function MicrosoftOffice(_ref, ref) {
121
121
  }, /*#__PURE__*/_react["default"].createElement("stop", {
122
122
  stopOpacity: ".4"
123
123
  }), /*#__PURE__*/_react["default"].createElement("stop", {
124
- offset: 1,
125
- stopOpacity: 0
126
- })), /*#__PURE__*/_react["default"].createElement("linearGradient", {
124
+ offset: "1",
125
+ stopOpacity: "0"
126
+ })), /*#__PURE__*/_react["default"].createElement("lineargradient", {
127
127
  id: "e",
128
128
  x1: "18.17",
129
129
  y1: "21.74",
@@ -133,8 +133,8 @@ function MicrosoftOffice(_ref, ref) {
133
133
  }, /*#__PURE__*/_react["default"].createElement("stop", {
134
134
  stopOpacity: ".4"
135
135
  }), /*#__PURE__*/_react["default"].createElement("stop", {
136
- offset: 1,
137
- stopOpacity: 0
136
+ offset: "1",
137
+ stopOpacity: "0"
138
138
  }))));
139
139
  }
140
140
 
@@ -54,7 +54,7 @@ function MicrosoftOffice(_ref, ref) {
54
54
  d: "M10.4 12.5H5.23a.89.89 0 0 0-.53.17.85.85 0 0 0-.3.46.83.83 0 0 0 .03.54.86.86 0 0 0 .37.41l3.08 1.7a1.72 1.72 0 0 0 2.18-.44 1.62 1.62 0 0 0 .33-1V12.5Z",
55
55
  fill: "url(#e)",
56
56
  shapeRendering: "geometricPrecision"
57
- }), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("linearGradient", {
57
+ }), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("lineargradient", {
58
58
  id: "a",
59
59
  x1: "12.07",
60
60
  y1: "-.84",
@@ -75,7 +75,7 @@ function MicrosoftOffice(_ref, ref) {
75
75
  }), /*#__PURE__*/_react["default"].createElement("stop", {
76
76
  offset: ".5",
77
77
  stopColor: "#D83B01"
78
- })), /*#__PURE__*/_react["default"].createElement("linearGradient", {
78
+ })), /*#__PURE__*/_react["default"].createElement("lineargradient", {
79
79
  id: "b",
80
80
  x1: "9.18",
81
81
  y1: "-.29",
@@ -97,9 +97,9 @@ function MicrosoftOffice(_ref, ref) {
97
97
  offset: ".94",
98
98
  stopColor: "#B95799"
99
99
  }), /*#__PURE__*/_react["default"].createElement("stop", {
100
- offset: 1,
100
+ offset: "1",
101
101
  stopColor: "#B85BA2"
102
- })), /*#__PURE__*/_react["default"].createElement("linearGradient", {
102
+ })), /*#__PURE__*/_react["default"].createElement("lineargradient", {
103
103
  id: "c",
104
104
  x1: "4.84",
105
105
  y1: "14.25",
@@ -111,7 +111,7 @@ function MicrosoftOffice(_ref, ref) {
111
111
  }), /*#__PURE__*/_react["default"].createElement("stop", {
112
112
  offset: ".6",
113
113
  stopColor: "#A4070A"
114
- })), /*#__PURE__*/_react["default"].createElement("linearGradient", {
114
+ })), /*#__PURE__*/_react["default"].createElement("lineargradient", {
115
115
  id: "d",
116
116
  x1: "9.36",
117
117
  y1: "-.53",
@@ -121,9 +121,9 @@ function MicrosoftOffice(_ref, ref) {
121
121
  }, /*#__PURE__*/_react["default"].createElement("stop", {
122
122
  stopOpacity: ".4"
123
123
  }), /*#__PURE__*/_react["default"].createElement("stop", {
124
- offset: 1,
125
- stopOpacity: 0
126
- })), /*#__PURE__*/_react["default"].createElement("linearGradient", {
124
+ offset: "1",
125
+ stopOpacity: "0"
126
+ })), /*#__PURE__*/_react["default"].createElement("lineargradient", {
127
127
  id: "e",
128
128
  x1: "12.38",
129
129
  y1: "14.49",
@@ -133,8 +133,8 @@ function MicrosoftOffice(_ref, ref) {
133
133
  }, /*#__PURE__*/_react["default"].createElement("stop", {
134
134
  stopOpacity: ".4"
135
135
  }), /*#__PURE__*/_react["default"].createElement("stop", {
136
- offset: 1,
137
- stopOpacity: 0
136
+ offset: "1",
137
+ stopOpacity: "0"
138
138
  }))));
139
139
  }
140
140
 
@@ -39,11 +39,11 @@ function MicrosoftOutlook(_ref, ref) {
39
39
  fill: "#0A2767",
40
40
  shapeRendering: "geometricPrecision"
41
41
  }), /*#__PURE__*/_react["default"].createElement("rect", {
42
- x: 7,
43
- y: 1,
44
- width: 15,
45
- height: 16,
46
- rx: 1,
42
+ x: "7",
43
+ y: "1",
44
+ width: "15",
45
+ height: "16",
46
+ rx: "1",
47
47
  fill: "#0364B8"
48
48
  }), /*#__PURE__*/_react["default"].createElement("path", {
49
49
  d: "M17 4h-5v5h5v5h5V9h-5V4Z",
@@ -39,10 +39,10 @@ function MicrosoftOutlook(_ref, ref) {
39
39
  fill: "#0A2767",
40
40
  shapeRendering: "geometricPrecision"
41
41
  }), /*#__PURE__*/_react["default"].createElement("rect", {
42
- x: 4,
43
- width: 11,
44
- height: 11,
45
- rx: 1,
42
+ x: "4",
43
+ width: "11",
44
+ height: "11",
45
+ rx: "1",
46
46
  fill: "#0364B8"
47
47
  }), /*#__PURE__*/_react["default"].createElement("path", {
48
48
  d: "M11.33 2H7.67v3.77h3.66v3.76H15V5.77h-3.67V2Z",
@@ -41,10 +41,10 @@ function MathMinus(_ref, ref) {
41
41
  viewBox: viewBox
42
42
  }, props), /*#__PURE__*/_react["default"].createElement("rect", {
43
43
  id: "s-a",
44
- width: 12,
45
- height: 2,
46
- x: 2,
47
- y: 7
44
+ width: "12",
45
+ height: "2",
46
+ x: "2",
47
+ y: "7"
48
48
  }));
49
49
  }
50
50
 
@@ -40,10 +40,10 @@ function MathMinus(_ref, ref) {
40
40
  height: height,
41
41
  viewBox: viewBox
42
42
  }, props), /*#__PURE__*/_react["default"].createElement("rect", {
43
- width: 10,
44
- height: 2,
45
- x: 1,
46
- y: 5
43
+ width: "10",
44
+ height: "2",
45
+ x: "1",
46
+ y: "5"
47
47
  }));
48
48
  }
49
49
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Icon.js"],"names":["Icon","props","ref","tag","width","height","viewBox","SIcon","other","interactive","colorProps","color","disabled","keyboardFocused","propsWithKeyboardEnhance","sstyles","styles","cn","className","style","Object","assign","undefined","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;AAEA;;AAFA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIA;;AACA,SAASA,IAAT,CAAcC,KAAd,EAAqBC,GAArB,EAA0B;AACxB,gBAAuB;AAEnBC,IAAAA,GAAG,EAAE,KAFc;AAGnB,oBAAgB,MAHG;AAInBC,IAAAA,KAAK,EAAE,EAJY;AAKnBC,IAAAA,MAAM,EAAE,EALW;AAMnBC,IAAAA,OAAO,EAAE;AANU,KAOhBL,KAPgB,GASrBC,GATqB,CAAvB;AAAA;AAAA,MAAOK,KAAP;AAAA,MAAcC,KAAd;;AAYA,MAAQC,WAAR,GAA2CR,KAA3C,CAAQQ,WAAR;AAAA,MAA4BC,UAA5B,GAA2CT,KAA3C,CAAqBU,KAArB;AACA,MAAMA,KAAK,GAAG,uBAAaD,UAAb,CAAd;;AACA,8BAAyD;AACvDE,IAAAA,QAAQ,EAAE,CAACH;AAD4C,KAEpDD,KAFoD,EAAzD;AAAA,MAAQK,eAAR,yBAAQA,eAAR;AAAA,MAA4BC,wBAA5B;;AAIA,MAAMC,OAAO,GAAG,mBAAQC,MAAR,CAAhB;;AACA,oBAA6BD,OAAO,CAACE,EAAR,CAAW,OAAX,EAAoB;AAC/C,yBAAqB,kBAAMN,KAAN,EAAa,CAAC,IAAd,CAD0B;AAE/C,iBAAaA,KAFkC;AAG/CF,IAAAA,WAAW,EAAEA,WAHkC;AAI/CI,IAAAA,eAAe,EAAEA;AAJ8B,GAApB,CAA7B;AAAA,MAAQK,SAAR,eAAQA,SAAR;AAAA,MAAmBC,KAAnB,eAAmBA,KAAnB;;AAOA,sBACE,gCAAC,KAAD,gCACM,iCAAgBL,wBAAhB,CADN;AAEE,IAAA,KAAK,EAAEM,MAAM,CAACC,MAAP,CAAc,EAAd,EAAkBF,KAAlB,EAAyBL,wBAAwB,CAACK,KAAlD,EAAyDlB,KAAK,CAACkB,KAA/D,CAFT;AAGE,IAAA,SAAS,EAAE,4BAAGD,SAAH,EAAcJ,wBAAwB,CAACI,SAAvC,EAAkDjB,KAAK,CAACiB,SAAxD,KAAsEI;AAHnF,KADF;AAOD;;AAEDtB,IAAI,CAACuB,WAAL,GAAmB,MAAnB;;eAEe,+BAAoBvB,IAApB,C","sourcesContent":["import React from 'react';\nimport cn from 'classnames';\nimport { createBaseComponent, sstyled } from '@semcore/core';\nimport { useBox } from '@semcore/flex-box';\nimport resolveColor, { shade } from '@semcore/utils/lib/color';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport propsForElement from '@semcore/utils/lib/propsForElement';\n\nimport styles from './style/icon.shadow.css';\n\n// TODO: сделать useIcon?\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 ...props,\n },\n ref,\n );\n\n const { interactive, color: colorProps } = props;\n const color = resolveColor(colorProps);\n const { keyboardFocused, ...propsWithKeyboardEnhance } = keyboardFocusEnhance()({\n disabled: !interactive,\n ...other,\n });\n const sstyles = sstyled(styles);\n const { className, style } = sstyles.cn('SIcon', {\n 'color-interactive': shade(color, -0.12),\n 'use:color': color,\n interactive: interactive,\n keyboardFocused: keyboardFocused,\n });\n\n return (\n <SIcon\n {...propsForElement(propsWithKeyboardEnhance)}\n style={Object.assign({}, style, propsWithKeyboardEnhance.style, props.style)}\n className={cn(className, propsWithKeyboardEnhance.className, props.className) || undefined}\n />\n );\n}\n\nIcon.displayName = 'Icon';\n\nexport default createBaseComponent(Icon);\n"],"file":"Icon.js"}
1
+ {"version":3,"sources":["../../src/Icon.jsx"],"names":["Icon","props","ref","tag","width","height","viewBox","SIcon","other","interactive","colorProps","color","disabled","keyboardFocused","propsWithKeyboardEnhance","sstyles","styles","cn","className","style","Object","assign","undefined","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;AAEA;;AAFA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIA;;AACA,SAASA,IAAT,CAAcC,KAAd,EAAqBC,GAArB,EAA0B;AACxB,gBAAuB;AAEnBC,IAAAA,GAAG,EAAE,KAFc;AAGnB,oBAAgB,MAHG;AAInBC,IAAAA,KAAK,EAAE,EAJY;AAKnBC,IAAAA,MAAM,EAAE,EALW;AAMnBC,IAAAA,OAAO,EAAE;AANU,KAOhBL,KAPgB,GASrBC,GATqB,CAAvB;AAAA;AAAA,MAAOK,KAAP;AAAA,MAAcC,KAAd;;AAYA,MAAQC,WAAR,GAA2CR,KAA3C,CAAQQ,WAAR;AAAA,MAA4BC,UAA5B,GAA2CT,KAA3C,CAAqBU,KAArB;AACA,MAAMA,KAAK,GAAG,uBAAaD,UAAb,CAAd;;AACA,8BAAyD;AACvDE,IAAAA,QAAQ,EAAE,CAACH;AAD4C,KAEpDD,KAFoD,EAAzD;AAAA,MAAQK,eAAR,yBAAQA,eAAR;AAAA,MAA4BC,wBAA5B;;AAIA,MAAMC,OAAO,GAAG,mBAAQC,MAAR,CAAhB;;AACA,oBAA6BD,OAAO,CAACE,EAAR,CAAW,OAAX,EAAoB;AAC/C,yBAAqB,kBAAMN,KAAN,EAAa,CAAC,IAAd,CAD0B;AAE/C,iBAAaA,KAFkC;AAG/CF,IAAAA,WAAW,EAAEA,WAHkC;AAI/CI,IAAAA,eAAe,EAAEA;AAJ8B,GAApB,CAA7B;AAAA,MAAQK,SAAR,eAAQA,SAAR;AAAA,MAAmBC,KAAnB,eAAmBA,KAAnB;;AAOA,sBACE,gCAAC,KAAD,gCACM,iCAAgBL,wBAAhB,CADN;AAEE,IAAA,KAAK,EAAEM,MAAM,CAACC,MAAP,CAAc,EAAd,EAAkBF,KAAlB,EAAyBL,wBAAwB,CAACK,KAAlD,EAAyDlB,KAAK,CAACkB,KAA/D,CAFT;AAGE,IAAA,SAAS,EAAE,4BAAGD,SAAH,EAAcJ,wBAAwB,CAACI,SAAvC,EAAkDjB,KAAK,CAACiB,SAAxD,KAAsEI;AAHnF,KADF;AAOD;;AAEDtB,IAAI,CAACuB,WAAL,GAAmB,MAAnB;;eAEe,+BAAoBvB,IAApB,C","sourcesContent":["import React from 'react';\nimport cn from 'classnames';\nimport { createBaseComponent, sstyled } from '@semcore/core';\nimport { useBox } from '@semcore/flex-box';\nimport resolveColor, { shade } from '@semcore/utils/lib/color';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport propsForElement from '@semcore/utils/lib/propsForElement';\n\nimport styles from './style/icon.shadow.css';\n\n// TODO: сделать useIcon?\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 ...props,\n },\n ref,\n );\n\n const { interactive, color: colorProps } = props;\n const color = resolveColor(colorProps);\n const { keyboardFocused, ...propsWithKeyboardEnhance } = keyboardFocusEnhance()({\n disabled: !interactive,\n ...other,\n });\n const sstyles = sstyled(styles);\n const { className, style } = sstyles.cn('SIcon', {\n 'color-interactive': shade(color, -0.12),\n 'use:color': color,\n interactive: interactive,\n keyboardFocused: keyboardFocused,\n });\n\n return (\n <SIcon\n {...propsForElement(propsWithKeyboardEnhance)}\n style={Object.assign({}, style, propsWithKeyboardEnhance.style, props.style)}\n className={cn(className, propsWithKeyboardEnhance.className, props.className) || undefined}\n />\n );\n}\n\nIcon.displayName = 'Icon';\n\nexport default createBaseComponent(Icon);\n"],"file":"Icon.js"}
@@ -0,0 +1,17 @@
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;
@@ -47,7 +47,7 @@ function GitHub(_ref, ref) {
47
47
  d: "M7.74 0A7.74 7.74 0 005.3 15.1c.38.06.52-.18.52-.38V13.4c-2.16.47-2.61-1.04-2.61-1.04a2.05 2.05 0 00-.86-1.13c-.7-.48.05-.47.05-.47a1.63 1.63 0 011.19.8 1.65 1.65 0 002.25.64c.04-.4.21-.76.5-1.03-1.73-.2-3.53-.86-3.53-3.83a3 3 0 01.8-2.08c-.24-.67-.22-1.4.07-2.05 0 0 .65-.2 2.13.8a7.33 7.33 0 013.88 0c1.47-1 2.12-.8 2.12-.8.29.65.32 1.38.08 2.05.52.57.8 1.3.8 2.08 0 2.97-1.81 3.63-3.54 3.82a1.85 1.85 0 01.53 1.43l-.01 2.13c0 .2.14.45.53.37A7.74 7.74 0 007.74 0z",
48
48
  fill: "#231E1B",
49
49
  shapeRendering: "geometricPrecision"
50
- })), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("clipPath", {
50
+ })), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("clippath", {
51
51
  id: "clip0"
52
52
  }, /*#__PURE__*/_react["default"].createElement("path", {
53
53
  fill: "#fff",
@@ -47,7 +47,7 @@ function GitHub(_ref, ref) {
47
47
  d: "M5.75 0a5.75 5.75 0 00-1.82 11.2c.29.05.4-.13.4-.28l-.02-.98c-1.6.35-1.93-.77-1.93-.77-.1-.34-.33-.64-.64-.84-.52-.35.04-.35.04-.35a1.2 1.2 0 01.88.6 1.22 1.22 0 001.67.47c.03-.29.16-.56.37-.76-1.28-.15-2.62-.64-2.62-2.84 0-.57.2-1.13.6-1.55-.18-.5-.16-1.04.05-1.52 0 0 .48-.15 1.58.6a5.44 5.44 0 012.88 0c1.1-.75 1.58-.6 1.58-.6.2.48.23 1.03.05 1.52.4.42.6.98.6 1.55 0 2.2-1.35 2.69-2.63 2.83a1.37 1.37 0 01.39 1.07v1.57c0 .16.1.33.39.28A5.75 5.75 0 005.75 0z",
48
48
  fill: "#231E1B",
49
49
  shapeRendering: "geometricPrecision"
50
- })), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("clipPath", {
50
+ })), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("clippath", {
51
51
  id: "clip0"
52
52
  }, /*#__PURE__*/_react["default"].createElement("path", {
53
53
  fill: "#fff",
@@ -49,7 +49,7 @@ function WhatsApp(_ref, ref) {
49
49
  d: "M16.7 15.4c.3-.3.5-.6.6-1 .1-.4 0-.7-.4-.9l-1.9-1c-.3-.2-.7-.1-1 .1l-.8.9c-.3.3-1.6-.3-2.7-1.5C9.3 10.8 8.7 9.6 9 9.3l.8-.8c.3-.3.3-.6.1-1l-1-1.9c-.2-.4-.5-.5-.9-.4-.4.1-.7.3-1 .6-1.5 1.5-.6 4.9 2.1 7.6 2.7 2.6 6.1 3.6 7.6 2z",
50
50
  fill: "#fff",
51
51
  shapeRendering: "geometricPrecision"
52
- })), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("clipPath", {
52
+ })), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("clippath", {
53
53
  id: "clip0"
54
54
  }, /*#__PURE__*/_react["default"].createElement("path", {
55
55
  fill: "#fff",
@@ -49,7 +49,7 @@ function WhatsApp(_ref, ref) {
49
49
  d: "M12.02 12c.2-.2.4-.5.5-.8.1-.3 0-.5-.3-.7-.3-.2-1.49-.8-1.49-.8a.6.6 0 00-.7.1l-.79.7c-.3.3-1.19-.3-2.08-1.2-.9-.9-1.4-1.9-1.2-2.1l.7-.7c.2-.2.2-.5.1-.7 0 0-.6-1.2-.8-1.5-.2-.3-.4-.4-.7-.3-.3.1-.59.2-.79.5-1.19 1.2-.5 3.8 1.6 5.9 2.08 2 4.76 2.8 5.95 1.6z",
50
50
  fill: "#fff",
51
51
  shapeRendering: "geometricPrecision"
52
- })), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("clipPath", {
52
+ })), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("clippath", {
53
53
  id: "clip0"
54
54
  }, /*#__PURE__*/_react["default"].createElement("path", {
55
55
  fill: "#fff",
@@ -49,7 +49,7 @@ function WhatsApp(_ref, ref) {
49
49
  d: "M8.8 8.9c.1-.1.3-.3.3-.5s0-.4-.2-.5c-.2-.1-1-.6-1-.6-.2-.1-.4-.1-.5.1l-.5.5c-.2.2-.8-.2-1.5-.8-.6-.6-1-1.3-.8-1.5l.5-.5c.1-.1.2-.3.1-.5 0 0-.4-.8-.6-1-.1-.2-.3-.3-.5-.2-.2.1-.4.1-.5.3-.8.8-.3 2.7 1.1 4.1C6.2 9.2 8 9.7 8.8 8.9z",
50
50
  fill: "#fff",
51
51
  shapeRendering: "geometricPrecision"
52
- })), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("clipPath", {
52
+ })), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("clippath", {
53
53
  id: "clip0"
54
54
  }, /*#__PURE__*/_react["default"].createElement("path", {
55
55
  fill: "#fff",
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Icon.js"],"names":["React","cn","createBaseComponent","sstyled","useBox","resolveColor","shade","keyboardFocusEnhance","propsForElement","Icon","props","ref","tag","width","height","viewBox","SIcon","other","interactive","colorProps","color","disabled","keyboardFocused","propsWithKeyboardEnhance","sstyles","styles","className","style","Object","assign","undefined","displayName"],"mappings":";;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,EAAP,MAAe,YAAf;AACA,SAASC,mBAAT,EAA8BC,OAA9B,QAA6C,eAA7C;AACA,SAASC,MAAT,QAAuB,mBAAvB;AACA,OAAOC,YAAP,IAAuBC,KAAvB,QAAoC,0BAApC;AACA,OAAOC,oBAAP,MAAiC,kDAAjC;AACA,OAAOC,eAAP,MAA4B,oCAA5B;;;;;;;;;;;;;;;;;IAIA;;AACA,SAASC,IAAT,CAAcC,KAAd,EAAqBC,GAArB,EAA0B;AACxB,gBAAuBP,MAAM;AAEzBQ,IAAAA,GAAG,EAAE,KAFoB;AAGzB,oBAAgB,MAHS;AAIzBC,IAAAA,KAAK,EAAE,EAJkB;AAKzBC,IAAAA,MAAM,EAAE,EALiB;AAMzBC,IAAAA,OAAO,EAAE;AANgB,KAOtBL,KAPsB,GAS3BC,GAT2B,CAA7B;AAAA;AAAA,MAAOK,KAAP;AAAA,MAAcC,KAAd;;AAYA,MAAQC,WAAR,GAA2CR,KAA3C,CAAQQ,WAAR;AAAA,MAA4BC,UAA5B,GAA2CT,KAA3C,CAAqBU,KAArB;AACA,MAAMA,KAAK,GAAGf,YAAY,CAACc,UAAD,CAA1B;;AACA,8BAAyDZ,oBAAoB;AAC3Ec,IAAAA,QAAQ,EAAE,CAACH;AADgE,KAExED,KAFwE,EAA7E;AAAA,MAAQK,eAAR,yBAAQA,eAAR;AAAA,MAA4BC,wBAA5B;;AAIA,MAAMC,OAAO,GAAGrB,OAAO,CAACsB,MAAD,CAAvB;;AACA,oBAA6BD,OAAO,CAACvB,EAAR,CAAW,OAAX,EAAoB;AAC/C,yBAAqBK,KAAK,CAACc,KAAD,EAAQ,CAAC,IAAT,CADqB;AAE/C,iBAAaA,KAFkC;AAG/CF,IAAAA,WAAW,EAAEA,WAHkC;AAI/CI,IAAAA,eAAe,EAAEA;AAJ8B,GAApB,CAA7B;AAAA,MAAQI,SAAR,eAAQA,SAAR;AAAA,MAAmBC,KAAnB,eAAmBA,KAAnB;;AAOA,sBACE,oBAAC,KAAD,eACMnB,eAAe,CAACe,wBAAD,CADrB;AAEE,IAAA,KAAK,EAAEK,MAAM,CAACC,MAAP,CAAc,EAAd,EAAkBF,KAAlB,EAAyBJ,wBAAwB,CAACI,KAAlD,EAAyDjB,KAAK,CAACiB,KAA/D,CAFT;AAGE,IAAA,SAAS,EAAE1B,EAAE,CAACyB,SAAD,EAAYH,wBAAwB,CAACG,SAArC,EAAgDhB,KAAK,CAACgB,SAAtD,CAAF,IAAsEI;AAHnF,KADF;AAOD;;AAEDrB,IAAI,CAACsB,WAAL,GAAmB,MAAnB;AAEA,eAAe7B,mBAAmB,CAACO,IAAD,CAAlC","sourcesContent":["import React from 'react';\nimport cn from 'classnames';\nimport { createBaseComponent, sstyled } from '@semcore/core';\nimport { useBox } from '@semcore/flex-box';\nimport resolveColor, { shade } from '@semcore/utils/lib/color';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport propsForElement from '@semcore/utils/lib/propsForElement';\n\nimport styles from './style/icon.shadow.css';\n\n// TODO: сделать useIcon?\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 ...props,\n },\n ref,\n );\n\n const { interactive, color: colorProps } = props;\n const color = resolveColor(colorProps);\n const { keyboardFocused, ...propsWithKeyboardEnhance } = keyboardFocusEnhance()({\n disabled: !interactive,\n ...other,\n });\n const sstyles = sstyled(styles);\n const { className, style } = sstyles.cn('SIcon', {\n 'color-interactive': shade(color, -0.12),\n 'use:color': color,\n interactive: interactive,\n keyboardFocused: keyboardFocused,\n });\n\n return (\n <SIcon\n {...propsForElement(propsWithKeyboardEnhance)}\n style={Object.assign({}, style, propsWithKeyboardEnhance.style, props.style)}\n className={cn(className, propsWithKeyboardEnhance.className, props.className) || undefined}\n />\n );\n}\n\nIcon.displayName = 'Icon';\n\nexport default createBaseComponent(Icon);\n"],"file":"Icon.js"}
1
+ {"version":3,"sources":["../../src/Icon.jsx"],"names":["React","cn","createBaseComponent","sstyled","useBox","resolveColor","shade","keyboardFocusEnhance","propsForElement","Icon","props","ref","tag","width","height","viewBox","SIcon","other","interactive","colorProps","color","disabled","keyboardFocused","propsWithKeyboardEnhance","sstyles","styles","className","style","Object","assign","undefined","displayName"],"mappings":";;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,EAAP,MAAe,YAAf;AACA,SAASC,mBAAT,EAA8BC,OAA9B,QAA6C,eAA7C;AACA,SAASC,MAAT,QAAuB,mBAAvB;AACA,OAAOC,YAAP,IAAuBC,KAAvB,QAAoC,0BAApC;AACA,OAAOC,oBAAP,MAAiC,kDAAjC;AACA,OAAOC,eAAP,MAA4B,oCAA5B;;;;;;;;;;;;;;;;;IAIA;;AACA,SAASC,IAAT,CAAcC,KAAd,EAAqBC,GAArB,EAA0B;AACxB,gBAAuBP,MAAM;AAEzBQ,IAAAA,GAAG,EAAE,KAFoB;AAGzB,oBAAgB,MAHS;AAIzBC,IAAAA,KAAK,EAAE,EAJkB;AAKzBC,IAAAA,MAAM,EAAE,EALiB;AAMzBC,IAAAA,OAAO,EAAE;AANgB,KAOtBL,KAPsB,GAS3BC,GAT2B,CAA7B;AAAA;AAAA,MAAOK,KAAP;AAAA,MAAcC,KAAd;;AAYA,MAAQC,WAAR,GAA2CR,KAA3C,CAAQQ,WAAR;AAAA,MAA4BC,UAA5B,GAA2CT,KAA3C,CAAqBU,KAArB;AACA,MAAMA,KAAK,GAAGf,YAAY,CAACc,UAAD,CAA1B;;AACA,8BAAyDZ,oBAAoB;AAC3Ec,IAAAA,QAAQ,EAAE,CAACH;AADgE,KAExED,KAFwE,EAA7E;AAAA,MAAQK,eAAR,yBAAQA,eAAR;AAAA,MAA4BC,wBAA5B;;AAIA,MAAMC,OAAO,GAAGrB,OAAO,CAACsB,MAAD,CAAvB;;AACA,oBAA6BD,OAAO,CAACvB,EAAR,CAAW,OAAX,EAAoB;AAC/C,yBAAqBK,KAAK,CAACc,KAAD,EAAQ,CAAC,IAAT,CADqB;AAE/C,iBAAaA,KAFkC;AAG/CF,IAAAA,WAAW,EAAEA,WAHkC;AAI/CI,IAAAA,eAAe,EAAEA;AAJ8B,GAApB,CAA7B;AAAA,MAAQI,SAAR,eAAQA,SAAR;AAAA,MAAmBC,KAAnB,eAAmBA,KAAnB;;AAOA,sBACE,oBAAC,KAAD,eACMnB,eAAe,CAACe,wBAAD,CADrB;AAEE,IAAA,KAAK,EAAEK,MAAM,CAACC,MAAP,CAAc,EAAd,EAAkBF,KAAlB,EAAyBJ,wBAAwB,CAACI,KAAlD,EAAyDjB,KAAK,CAACiB,KAA/D,CAFT;AAGE,IAAA,SAAS,EAAE1B,EAAE,CAACyB,SAAD,EAAYH,wBAAwB,CAACG,SAArC,EAAgDhB,KAAK,CAACgB,SAAtD,CAAF,IAAsEI;AAHnF,KADF;AAOD;;AAEDrB,IAAI,CAACsB,WAAL,GAAmB,MAAnB;AAEA,eAAe7B,mBAAmB,CAACO,IAAD,CAAlC","sourcesContent":["import React from 'react';\nimport cn from 'classnames';\nimport { createBaseComponent, sstyled } from '@semcore/core';\nimport { useBox } from '@semcore/flex-box';\nimport resolveColor, { shade } from '@semcore/utils/lib/color';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport propsForElement from '@semcore/utils/lib/propsForElement';\n\nimport styles from './style/icon.shadow.css';\n\n// TODO: сделать useIcon?\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 ...props,\n },\n ref,\n );\n\n const { interactive, color: colorProps } = props;\n const color = resolveColor(colorProps);\n const { keyboardFocused, ...propsWithKeyboardEnhance } = keyboardFocusEnhance()({\n disabled: !interactive,\n ...other,\n });\n const sstyles = sstyled(styles);\n const { className, style } = sstyles.cn('SIcon', {\n 'color-interactive': shade(color, -0.12),\n 'use:color': color,\n interactive: interactive,\n keyboardFocused: keyboardFocused,\n });\n\n return (\n <SIcon\n {...propsForElement(propsWithKeyboardEnhance)}\n style={Object.assign({}, style, propsWithKeyboardEnhance.style, props.style)}\n className={cn(className, propsWithKeyboardEnhance.className, props.className) || undefined}\n />\n );\n}\n\nIcon.displayName = 'Icon';\n\nexport default createBaseComponent(Icon);\n"],"file":"Icon.js"}
@@ -0,0 +1,17 @@
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;
@@ -39,7 +39,7 @@ function Visa(_ref, ref) {
39
39
  width: width,
40
40
  height: height,
41
41
  viewBox: viewBox
42
- }, props), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("linearGradient", {
42
+ }, props), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("lineargradient", {
43
43
  id: "a",
44
44
  x1: "0%",
45
45
  y1: "50%",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/icon",
3
3
  "description": "SEMRush Icon Component",
4
- "version": "2.19.3",
4
+ "version": "2.21.0",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -16,7 +16,8 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@semcore/utils": "^3.15",
19
- "@semcore/flex-box": "^4"
19
+ "@semcore/flex-box": "^4",
20
+ "classnames": "2.2.6"
20
21
  },
21
22
  "peerDependencies": {
22
23
  "@semcore/core": "^1.11",
@@ -29,5 +30,8 @@
29
30
  "type": "git",
30
31
  "url": "https://github.com/semrush/intergalactic.git",
31
32
  "directory": "semcore/icon"
33
+ },
34
+ "devDependencies": {
35
+ "@semcore/jest-preset-ui": "1.0.0"
32
36
  }
33
37
  }
@@ -41,39 +41,39 @@ function CreditCard(_ref, ref) {
41
41
  fill: "#8A8E9B",
42
42
  shapeRendering: "geometricPrecision"
43
43
  }), /*#__PURE__*/_react["default"].createElement("rect", {
44
- x: 4,
45
- y: 6,
46
- width: 12,
47
- height: 3,
44
+ x: "4",
45
+ y: "6",
46
+ width: "12",
47
+ height: "3",
48
48
  rx: "1.5",
49
49
  fill: "#F4F5F9"
50
50
  }), /*#__PURE__*/_react["default"].createElement("rect", {
51
- x: 4,
52
- y: 16,
53
- width: 4,
54
- height: 2,
55
- rx: 1,
51
+ x: "4",
52
+ y: "16",
53
+ width: "4",
54
+ height: "2",
55
+ rx: "1",
56
56
  fill: "#E0E1E9"
57
57
  }), /*#__PURE__*/_react["default"].createElement("rect", {
58
- x: 10,
59
- y: 16,
60
- width: 4,
61
- height: 2,
62
- rx: 1,
58
+ x: "10",
59
+ y: "16",
60
+ width: "4",
61
+ height: "2",
62
+ rx: "1",
63
63
  fill: "#E0E1E9"
64
64
  }), /*#__PURE__*/_react["default"].createElement("rect", {
65
- x: 16,
66
- y: 16,
67
- width: 4,
68
- height: 2,
69
- rx: 1,
65
+ x: "16",
66
+ y: "16",
67
+ width: "4",
68
+ height: "2",
69
+ rx: "1",
70
70
  fill: "#E0E1E9"
71
71
  }), /*#__PURE__*/_react["default"].createElement("rect", {
72
- x: 22,
73
- y: 16,
74
- width: 4,
75
- height: 2,
76
- rx: 1,
72
+ x: "22",
73
+ y: "16",
74
+ width: "4",
75
+ height: "2",
76
+ rx: "1",
77
77
  fill: "#E0E1E9"
78
78
  }));
79
79
  }
@@ -42,10 +42,10 @@ function CreditCard(_ref, ref) {
42
42
  shapeRendering: "geometricPrecision"
43
43
  }), /*#__PURE__*/_react["default"].createElement("rect", {
44
44
  x: "2.63",
45
- y: 4,
45
+ y: "4",
46
46
  width: "7.88",
47
- height: 2,
48
- rx: 1,
47
+ height: "2",
48
+ rx: "1",
49
49
  fill: "#F4F5F9"
50
50
  }), /*#__PURE__*/_react["default"].createElement("rect", {
51
51
  x: "2.63",
@@ -62,17 +62,17 @@ function Discover(_ref, ref) {
62
62
  d: "M9 24c5.5-1 20-5 23-8.5V22a2 2 0 0 1-2 2H9Z",
63
63
  fill: "#FE4F00",
64
64
  shapeRendering: "geometricPrecision"
65
- }), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("radialGradient", {
65
+ }), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("radialgradient", {
66
66
  id: "a",
67
- cx: 0,
68
- cy: 0,
69
- r: 1,
67
+ cx: "0",
68
+ cy: "0",
69
+ r: "1",
70
70
  gradientUnits: "userSpaceOnUse",
71
71
  gradientTransform: "matrix(-1.5 -3 3 -1.5 18.5 13)"
72
72
  }, /*#__PURE__*/_react["default"].createElement("stop", {
73
73
  stopColor: "#FF8400"
74
74
  }), /*#__PURE__*/_react["default"].createElement("stop", {
75
- offset: 1,
75
+ offset: "1",
76
76
  stopColor: "#CC3F00"
77
77
  }))));
78
78
  }
@@ -62,17 +62,17 @@ function Discover(_ref, ref) {
62
62
  d: "M5.9 16c3.62-.67 13.13-3.33 15.1-5.67v4.34c0 .73-.6 1.33-1.31 1.33H5.9Z",
63
63
  fill: "#FE4F00",
64
64
  shapeRendering: "geometricPrecision"
65
- }), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("radialGradient", {
65
+ }), /*#__PURE__*/_react["default"].createElement("defs", null, /*#__PURE__*/_react["default"].createElement("radialgradient", {
66
66
  id: "a",
67
- cx: 0,
68
- cy: 0,
69
- r: 1,
67
+ cx: "0",
68
+ cy: "0",
69
+ r: "1",
70
70
  gradientUnits: "userSpaceOnUse",
71
71
  gradientTransform: "matrix(-.98438 -2 1.98103 -.97504 12.14 8.67)"
72
72
  }, /*#__PURE__*/_react["default"].createElement("stop", {
73
73
  stopColor: "#FF8400"
74
74
  }), /*#__PURE__*/_react["default"].createElement("stop", {
75
- offset: 1,
75
+ offset: "1",
76
76
  stopColor: "#CC3F00"
77
77
  }))));
78
78
  }