@semcore/illustration 1.4.13 → 1.4.15

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 (106) hide show
  1. package/AccessDenied/index.js +8 -19
  2. package/AccessDenied/index.mjs +0 -3
  3. package/AreaChart/index.js +8 -19
  4. package/AreaChart/index.mjs +0 -3
  5. package/Blocked/index.js +8 -19
  6. package/Blocked/index.mjs +0 -3
  7. package/CHANGELOG.md +2 -2
  8. package/ChoroplethMapChart/index.js +8 -19
  9. package/ChoroplethMapChart/index.mjs +0 -3
  10. package/Coffee/index.js +8 -19
  11. package/Coffee/index.mjs +0 -3
  12. package/Collection/index.js +8 -19
  13. package/Collection/index.mjs +0 -3
  14. package/CombinedChart/index.js +8 -19
  15. package/CombinedChart/index.mjs +0 -3
  16. package/Confirmation/index.js +8 -19
  17. package/Confirmation/index.mjs +0 -3
  18. package/Congrats/index.js +8 -19
  19. package/Congrats/index.mjs +0 -3
  20. package/ConnectionLost/index.js +8 -19
  21. package/ConnectionLost/index.mjs +0 -3
  22. package/DeletedAccount/index.js +8 -19
  23. package/DeletedAccount/index.mjs +0 -3
  24. package/DeletedPage/index.js +8 -19
  25. package/DeletedPage/index.mjs +0 -3
  26. package/Dns/index.js +8 -19
  27. package/Dns/index.mjs +0 -3
  28. package/DonutChart/index.js +8 -19
  29. package/DonutChart/index.mjs +0 -3
  30. package/Duplicates/index.js +8 -19
  31. package/Duplicates/index.mjs +0 -3
  32. package/Feedback/index.js +8 -19
  33. package/Feedback/index.mjs +0 -3
  34. package/FunnelChart/index.js +8 -19
  35. package/FunnelChart/index.mjs +0 -3
  36. package/Good/index.js +8 -19
  37. package/Good/index.mjs +0 -3
  38. package/HeatMapChart/index.js +8 -19
  39. package/HeatMapChart/index.mjs +0 -3
  40. package/HorizontalBarChart/index.js +8 -19
  41. package/HorizontalBarChart/index.mjs +0 -3
  42. package/KagiChart/index.js +8 -19
  43. package/KagiChart/index.mjs +0 -3
  44. package/LineChart/index.js +8 -19
  45. package/LineChart/index.mjs +0 -3
  46. package/LollipopChart/index.js +8 -19
  47. package/LollipopChart/index.mjs +0 -3
  48. package/MailSent/index.js +8 -19
  49. package/MailSent/index.mjs +0 -3
  50. package/Maintenance/index.js +8 -19
  51. package/Maintenance/index.mjs +0 -3
  52. package/Nexttime/index.js +8 -19
  53. package/Nexttime/index.mjs +0 -3
  54. package/NoPayment/index.js +8 -19
  55. package/NoPayment/index.mjs +0 -3
  56. package/NothingFound/index.js +8 -19
  57. package/NothingFound/index.mjs +0 -3
  58. package/OtherData/index.js +8 -19
  59. package/OtherData/index.mjs +0 -3
  60. package/PageError/index.js +8 -19
  61. package/PageError/index.mjs +0 -3
  62. package/PageNotFound/index.js +8 -19
  63. package/PageNotFound/index.mjs +0 -3
  64. package/PieChart/index.js +8 -19
  65. package/PieChart/index.mjs +0 -3
  66. package/Processing/index.js +8 -19
  67. package/Processing/index.mjs +0 -3
  68. package/ProjectNotFound/index.js +8 -19
  69. package/ProjectNotFound/index.mjs +0 -3
  70. package/RadarChart/index.js +8 -19
  71. package/RadarChart/index.mjs +0 -3
  72. package/RadialTreeChart/index.js +8 -19
  73. package/RadialTreeChart/index.mjs +0 -3
  74. package/SankeyChart/index.js +8 -19
  75. package/SankeyChart/index.mjs +0 -3
  76. package/ScatterPlotChart/index.js +8 -19
  77. package/ScatterPlotChart/index.mjs +0 -3
  78. package/StackedAreaChart/index.js +8 -19
  79. package/StackedAreaChart/index.mjs +0 -3
  80. package/Suggestion/index.js +8 -19
  81. package/Suggestion/index.mjs +0 -3
  82. package/Suggestions/index.js +8 -19
  83. package/Suggestions/index.mjs +0 -3
  84. package/Table/index.js +8 -19
  85. package/Table/index.mjs +0 -3
  86. package/TagCloud/index.js +8 -19
  87. package/TagCloud/index.mjs +0 -3
  88. package/TextLinksEtc/index.js +8 -19
  89. package/TextLinksEtc/index.mjs +0 -3
  90. package/Timeout/index.js +8 -19
  91. package/Timeout/index.mjs +0 -3
  92. package/UnderConstruction/index.js +8 -19
  93. package/UnderConstruction/index.mjs +0 -3
  94. package/VennChart/index.js +8 -19
  95. package/VennChart/index.mjs +0 -3
  96. package/VerticalBarChart/index.js +8 -19
  97. package/VerticalBarChart/index.mjs +0 -3
  98. package/Waiting/index.js +8 -19
  99. package/Waiting/index.mjs +0 -3
  100. package/Warning/index.js +8 -19
  101. package/Warning/index.mjs +0 -3
  102. package/lib/cjs/index.js +2 -4
  103. package/lib/cjs/index.js.map +1 -1
  104. package/lib/es6/index.js +2 -3
  105. package/lib/es6/index.js.map +1 -1
  106. package/package.json +1 -1
@@ -1,34 +1,26 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = void 0;
9
-
10
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
-
14
10
  var _react = _interopRequireDefault(require("react"));
15
-
16
11
  var _core = require("@semcore/core");
17
-
18
12
  var _flexBox = require("@semcore/flex-box");
19
-
20
13
  var _excluded = ["fill", "width", "height", "viewBox"];
21
-
22
14
  function UnderConstruction(_ref, ref) {
23
15
  var _ref$fill = _ref.fill,
24
- fill = _ref$fill === void 0 ? 'none' : _ref$fill,
25
- _ref$width = _ref.width,
26
- width = _ref$width === void 0 ? '80' : _ref$width,
27
- _ref$height = _ref.height,
28
- height = _ref$height === void 0 ? '80' : _ref$height,
29
- _ref$viewBox = _ref.viewBox,
30
- viewBox = _ref$viewBox === void 0 ? '0 0 80 80' : _ref$viewBox,
31
- props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
16
+ fill = _ref$fill === void 0 ? 'none' : _ref$fill,
17
+ _ref$width = _ref.width,
18
+ width = _ref$width === void 0 ? '80' : _ref$width,
19
+ _ref$height = _ref.height,
20
+ height = _ref$height === void 0 ? '80' : _ref$height,
21
+ _ref$viewBox = _ref.viewBox,
22
+ viewBox = _ref$viewBox === void 0 ? '0 0 80 80' : _ref$viewBox,
23
+ props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
32
24
  return /*#__PURE__*/_react["default"].createElement(_flexBox.Box, (0, _extends2["default"])({
33
25
  ref: ref,
34
26
  width: width,
@@ -154,9 +146,6 @@ function UnderConstruction(_ref, ref) {
154
146
  shapeRendering: "geometricPrecision"
155
147
  }));
156
148
  }
157
-
158
149
  UnderConstruction.displayName = 'UnderConstruction';
159
-
160
150
  var _default = (0, _core.createBaseComponent)(UnderConstruction);
161
-
162
151
  exports["default"] = _default;
@@ -1,9 +1,7 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
2
  import React from 'react';
4
3
  import { createBaseComponent } from '@semcore/core';
5
4
  import { Box } from '@semcore/flex-box';
6
-
7
5
  function UnderConstruction({
8
6
  fill = 'none',
9
7
  width = '80',
@@ -136,6 +134,5 @@ function UnderConstruction({
136
134
  shapeRendering: "geometricPrecision"
137
135
  }));
138
136
  }
139
-
140
137
  UnderConstruction.displayName = 'UnderConstruction';
141
138
  export default createBaseComponent(UnderConstruction);
@@ -1,34 +1,26 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = void 0;
9
-
10
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
-
14
10
  var _react = _interopRequireDefault(require("react"));
15
-
16
11
  var _core = require("@semcore/core");
17
-
18
12
  var _flexBox = require("@semcore/flex-box");
19
-
20
13
  var _excluded = ["fill", "width", "height", "viewBox"];
21
-
22
14
  function VennChart(_ref, ref) {
23
15
  var _ref$fill = _ref.fill,
24
- fill = _ref$fill === void 0 ? 'none' : _ref$fill,
25
- _ref$width = _ref.width,
26
- width = _ref$width === void 0 ? '80' : _ref$width,
27
- _ref$height = _ref.height,
28
- height = _ref$height === void 0 ? '80' : _ref$height,
29
- _ref$viewBox = _ref.viewBox,
30
- viewBox = _ref$viewBox === void 0 ? '0 0 80 80' : _ref$viewBox,
31
- props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
16
+ fill = _ref$fill === void 0 ? 'none' : _ref$fill,
17
+ _ref$width = _ref.width,
18
+ width = _ref$width === void 0 ? '80' : _ref$width,
19
+ _ref$height = _ref.height,
20
+ height = _ref$height === void 0 ? '80' : _ref$height,
21
+ _ref$viewBox = _ref.viewBox,
22
+ viewBox = _ref$viewBox === void 0 ? '0 0 80 80' : _ref$viewBox,
23
+ props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
32
24
  return /*#__PURE__*/_react["default"].createElement(_flexBox.Box, (0, _extends2["default"])({
33
25
  ref: ref,
34
26
  width: width,
@@ -114,9 +106,6 @@ function VennChart(_ref, ref) {
114
106
  shapeRendering: "geometricPrecision"
115
107
  }));
116
108
  }
117
-
118
109
  VennChart.displayName = 'VennChart';
119
-
120
110
  var _default = (0, _core.createBaseComponent)(VennChart);
121
-
122
111
  exports["default"] = _default;
@@ -1,9 +1,7 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
2
  import React from 'react';
4
3
  import { createBaseComponent } from '@semcore/core';
5
4
  import { Box } from '@semcore/flex-box';
6
-
7
5
  function VennChart({
8
6
  fill = 'none',
9
7
  width = '80',
@@ -96,6 +94,5 @@ function VennChart({
96
94
  shapeRendering: "geometricPrecision"
97
95
  }));
98
96
  }
99
-
100
97
  VennChart.displayName = 'VennChart';
101
98
  export default createBaseComponent(VennChart);
@@ -1,34 +1,26 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = void 0;
9
-
10
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
-
14
10
  var _react = _interopRequireDefault(require("react"));
15
-
16
11
  var _core = require("@semcore/core");
17
-
18
12
  var _flexBox = require("@semcore/flex-box");
19
-
20
13
  var _excluded = ["fill", "width", "height", "viewBox"];
21
-
22
14
  function VerticalBarChart(_ref, ref) {
23
15
  var _ref$fill = _ref.fill,
24
- fill = _ref$fill === void 0 ? 'none' : _ref$fill,
25
- _ref$width = _ref.width,
26
- width = _ref$width === void 0 ? '80' : _ref$width,
27
- _ref$height = _ref.height,
28
- height = _ref$height === void 0 ? '80' : _ref$height,
29
- _ref$viewBox = _ref.viewBox,
30
- viewBox = _ref$viewBox === void 0 ? '0 0 80 80' : _ref$viewBox,
31
- props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
16
+ fill = _ref$fill === void 0 ? 'none' : _ref$fill,
17
+ _ref$width = _ref.width,
18
+ width = _ref$width === void 0 ? '80' : _ref$width,
19
+ _ref$height = _ref.height,
20
+ height = _ref$height === void 0 ? '80' : _ref$height,
21
+ _ref$viewBox = _ref.viewBox,
22
+ viewBox = _ref$viewBox === void 0 ? '0 0 80 80' : _ref$viewBox,
23
+ props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
32
24
  return /*#__PURE__*/_react["default"].createElement(_flexBox.Box, (0, _extends2["default"])({
33
25
  ref: ref,
34
26
  width: width,
@@ -107,9 +99,6 @@ function VerticalBarChart(_ref, ref) {
107
99
  shapeRendering: "geometricPrecision"
108
100
  }));
109
101
  }
110
-
111
102
  VerticalBarChart.displayName = 'VerticalBarChart';
112
-
113
103
  var _default = (0, _core.createBaseComponent)(VerticalBarChart);
114
-
115
104
  exports["default"] = _default;
@@ -1,9 +1,7 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
2
  import React from 'react';
4
3
  import { createBaseComponent } from '@semcore/core';
5
4
  import { Box } from '@semcore/flex-box';
6
-
7
5
  function VerticalBarChart({
8
6
  fill = 'none',
9
7
  width = '80',
@@ -89,6 +87,5 @@ function VerticalBarChart({
89
87
  shapeRendering: "geometricPrecision"
90
88
  }));
91
89
  }
92
-
93
90
  VerticalBarChart.displayName = 'VerticalBarChart';
94
91
  export default createBaseComponent(VerticalBarChart);
package/Waiting/index.js CHANGED
@@ -1,34 +1,26 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = void 0;
9
-
10
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
-
14
10
  var _react = _interopRequireDefault(require("react"));
15
-
16
11
  var _core = require("@semcore/core");
17
-
18
12
  var _flexBox = require("@semcore/flex-box");
19
-
20
13
  var _excluded = ["fill", "width", "height", "viewBox"];
21
-
22
14
  function Waiting(_ref, ref) {
23
15
  var _ref$fill = _ref.fill,
24
- fill = _ref$fill === void 0 ? 'none' : _ref$fill,
25
- _ref$width = _ref.width,
26
- width = _ref$width === void 0 ? '80' : _ref$width,
27
- _ref$height = _ref.height,
28
- height = _ref$height === void 0 ? '80' : _ref$height,
29
- _ref$viewBox = _ref.viewBox,
30
- viewBox = _ref$viewBox === void 0 ? '0 0 80 80' : _ref$viewBox,
31
- props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
16
+ fill = _ref$fill === void 0 ? 'none' : _ref$fill,
17
+ _ref$width = _ref.width,
18
+ width = _ref$width === void 0 ? '80' : _ref$width,
19
+ _ref$height = _ref.height,
20
+ height = _ref$height === void 0 ? '80' : _ref$height,
21
+ _ref$viewBox = _ref.viewBox,
22
+ viewBox = _ref$viewBox === void 0 ? '0 0 80 80' : _ref$viewBox,
23
+ props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
32
24
  return /*#__PURE__*/_react["default"].createElement(_flexBox.Box, (0, _extends2["default"])({
33
25
  ref: ref,
34
26
  width: width,
@@ -100,9 +92,6 @@ function Waiting(_ref, ref) {
100
92
  shapeRendering: "geometricPrecision"
101
93
  }));
102
94
  }
103
-
104
95
  Waiting.displayName = 'Waiting';
105
-
106
96
  var _default = (0, _core.createBaseComponent)(Waiting);
107
-
108
97
  exports["default"] = _default;
package/Waiting/index.mjs CHANGED
@@ -1,9 +1,7 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
2
  import React from 'react';
4
3
  import { createBaseComponent } from '@semcore/core';
5
4
  import { Box } from '@semcore/flex-box';
6
-
7
5
  function Waiting({
8
6
  fill = 'none',
9
7
  width = '80',
@@ -82,6 +80,5 @@ function Waiting({
82
80
  shapeRendering: "geometricPrecision"
83
81
  }));
84
82
  }
85
-
86
83
  Waiting.displayName = 'Waiting';
87
84
  export default createBaseComponent(Waiting);
package/Warning/index.js CHANGED
@@ -1,34 +1,26 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = void 0;
9
-
10
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
13
-
14
10
  var _react = _interopRequireDefault(require("react"));
15
-
16
11
  var _core = require("@semcore/core");
17
-
18
12
  var _flexBox = require("@semcore/flex-box");
19
-
20
13
  var _excluded = ["fill", "width", "height", "viewBox"];
21
-
22
14
  function Warning(_ref, ref) {
23
15
  var _ref$fill = _ref.fill,
24
- fill = _ref$fill === void 0 ? 'none' : _ref$fill,
25
- _ref$width = _ref.width,
26
- width = _ref$width === void 0 ? '80' : _ref$width,
27
- _ref$height = _ref.height,
28
- height = _ref$height === void 0 ? '80' : _ref$height,
29
- _ref$viewBox = _ref.viewBox,
30
- viewBox = _ref$viewBox === void 0 ? '0 0 80 80' : _ref$viewBox,
31
- props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
16
+ fill = _ref$fill === void 0 ? 'none' : _ref$fill,
17
+ _ref$width = _ref.width,
18
+ width = _ref$width === void 0 ? '80' : _ref$width,
19
+ _ref$height = _ref.height,
20
+ height = _ref$height === void 0 ? '80' : _ref$height,
21
+ _ref$viewBox = _ref.viewBox,
22
+ viewBox = _ref$viewBox === void 0 ? '0 0 80 80' : _ref$viewBox,
23
+ props = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
32
24
  return /*#__PURE__*/_react["default"].createElement(_flexBox.Box, (0, _extends2["default"])({
33
25
  ref: ref,
34
26
  width: width,
@@ -93,9 +85,6 @@ function Warning(_ref, ref) {
93
85
  shapeRendering: "geometricPrecision"
94
86
  }));
95
87
  }
96
-
97
88
  Warning.displayName = 'Warning';
98
-
99
89
  var _default = (0, _core.createBaseComponent)(Warning);
100
-
101
90
  exports["default"] = _default;
package/Warning/index.mjs CHANGED
@@ -1,9 +1,7 @@
1
1
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
2
  import React from 'react';
4
3
  import { createBaseComponent } from '@semcore/core';
5
4
  import { Box } from '@semcore/flex-box';
6
-
7
5
  function Warning({
8
6
  fill = 'none',
9
7
  width = '80',
@@ -75,6 +73,5 @@ function Warning({
75
73
  shapeRendering: "geometricPrecision"
76
74
  }));
77
75
  }
78
-
79
76
  Warning.displayName = 'Warning';
80
77
  export default createBaseComponent(Warning);
package/lib/cjs/index.js CHANGED
@@ -4,21 +4,19 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.getIllustrationPath = void 0;
7
- var version = "1.4.13";
7
+ var version = "1.4.15";
8
+
8
9
  /**
9
10
  * Formats string from `access_denied` or `access-denied` to `AccessDenied`
10
11
  */
11
-
12
12
  var formatName = function formatName(name) {
13
13
  return name.split(/_|-/).map(function (el) {
14
14
  return el[0].toUpperCase() + el.slice(1);
15
15
  }).join('');
16
16
  };
17
-
18
17
  var getIllustrationPath = function getIllustrationPath(name) {
19
18
  var formattedName = formatName(name);
20
19
  return "https://static.semrush.com/ui-kit/illustration/".concat(version, "/").concat(formattedName, ".svg");
21
20
  };
22
-
23
21
  exports.getIllustrationPath = getIllustrationPath;
24
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["version","formatName","name","split","map","el","toUpperCase","slice","join","getIllustrationPath","formattedName"],"sources":["../../src/index.ts"],"sourcesContent":["const version = preval`module.exports = require('../package.json').version`;\n\n/**\n * Formats string from `access_denied` or `access-denied` to `AccessDenied`\n */\nconst formatName = (name: string) => {\n return name\n .split(/_|-/)\n .map((el) => el[0].toUpperCase() + el.slice(1))\n .join('');\n};\n\nexport const getIllustrationPath = (name) => {\n const formattedName = formatName(name);\n\n return `https://static.semrush.com/ui-kit/illustration/${version}/${formattedName}.svg`;\n};\n"],"mappings":";;;;;;AAAA,IAAMA,OAAO,WAAb;AAEA;AACA;AACA;;AACA,IAAMC,UAAU,GAAG,SAAbA,UAAa,CAACC,IAAD,EAAkB;EACnC,OAAOA,IAAI,CACRC,KADI,CACE,KADF,EAEJC,GAFI,CAEA,UAACC,EAAD;IAAA,OAAQA,EAAE,CAAC,CAAD,CAAF,CAAMC,WAAN,KAAsBD,EAAE,CAACE,KAAH,CAAS,CAAT,CAA9B;EAAA,CAFA,EAGJC,IAHI,CAGC,EAHD,CAAP;AAID,CALD;;AAOO,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAsB,CAACP,IAAD,EAAU;EAC3C,IAAMQ,aAAa,GAAGT,UAAU,CAACC,IAAD,CAAhC;EAEA,gEAAyDF,OAAzD,cAAoEU,aAApE;AACD,CAJM"}
1
+ {"version":3,"file":"index.js","names":["version","formatName","name","split","map","el","toUpperCase","slice","join","getIllustrationPath","formattedName","concat","exports"],"sources":["../../src/index.ts"],"sourcesContent":["const version = preval`module.exports = require('../package.json').version`;\n\n/**\n * Formats string from `access_denied` or `access-denied` to `AccessDenied`\n */\nconst formatName = (name: string) => {\n return name\n .split(/_|-/)\n .map((el) => el[0].toUpperCase() + el.slice(1))\n .join('');\n};\n\nexport const getIllustrationPath = (name) => {\n const formattedName = formatName(name);\n\n return `https://static.semrush.com/ui-kit/illustration/${version}/${formattedName}.svg`;\n};\n"],"mappings":";;;;;;AAAA,IAAMA,OAAO,WAA8D;;AAE3E;AACA;AACA;AACA,IAAMC,UAAU,GAAG,SAAbA,UAAUA,CAAIC,IAAY,EAAK;EACnC,OAAOA,IAAI,CACRC,KAAK,CAAC,KAAK,CAAC,CACZC,GAAG,CAAC,UAACC,EAAE;IAAA,OAAKA,EAAE,CAAC,CAAC,CAAC,CAACC,WAAW,EAAE,GAAGD,EAAE,CAACE,KAAK,CAAC,CAAC,CAAC;EAAA,EAAC,CAC9CC,IAAI,CAAC,EAAE,CAAC;AACb,CAAC;AAEM,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAIP,IAAI,EAAK;EAC3C,IAAMQ,aAAa,GAAGT,UAAU,CAACC,IAAI,CAAC;EAEtC,yDAAAS,MAAA,CAAyDX,OAAO,OAAAW,MAAA,CAAID,aAAa;AACnF,CAAC;AAACE,OAAA,CAAAH,mBAAA,GAAAA,mBAAA"}
package/lib/es6/index.js CHANGED
@@ -1,14 +1,13 @@
1
- var version = "1.4.13";
1
+ var version = "1.4.15";
2
+
2
3
  /**
3
4
  * Formats string from `access_denied` or `access-denied` to `AccessDenied`
4
5
  */
5
-
6
6
  var formatName = function formatName(name) {
7
7
  return name.split(/_|-/).map(function (el) {
8
8
  return el[0].toUpperCase() + el.slice(1);
9
9
  }).join('');
10
10
  };
11
-
12
11
  export var getIllustrationPath = function getIllustrationPath(name) {
13
12
  var formattedName = formatName(name);
14
13
  return "https://static.semrush.com/ui-kit/illustration/".concat(version, "/").concat(formattedName, ".svg");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["version","formatName","name","split","map","el","toUpperCase","slice","join","getIllustrationPath","formattedName"],"sources":["../../src/index.ts"],"sourcesContent":["const version = preval`module.exports = require('../package.json').version`;\n\n/**\n * Formats string from `access_denied` or `access-denied` to `AccessDenied`\n */\nconst formatName = (name: string) => {\n return name\n .split(/_|-/)\n .map((el) => el[0].toUpperCase() + el.slice(1))\n .join('');\n};\n\nexport const getIllustrationPath = (name) => {\n const formattedName = formatName(name);\n\n return `https://static.semrush.com/ui-kit/illustration/${version}/${formattedName}.svg`;\n};\n"],"mappings":"AAAA,IAAMA,OAAO,WAAb;AAEA;AACA;AACA;;AACA,IAAMC,UAAU,GAAG,SAAbA,UAAa,CAACC,IAAD,EAAkB;EACnC,OAAOA,IAAI,CACRC,KADI,CACE,KADF,EAEJC,GAFI,CAEA,UAACC,EAAD;IAAA,OAAQA,EAAE,CAAC,CAAD,CAAF,CAAMC,WAAN,KAAsBD,EAAE,CAACE,KAAH,CAAS,CAAT,CAA9B;EAAA,CAFA,EAGJC,IAHI,CAGC,EAHD,CAAP;AAID,CALD;;AAOA,OAAO,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAsB,CAACP,IAAD,EAAU;EAC3C,IAAMQ,aAAa,GAAGT,UAAU,CAACC,IAAD,CAAhC;EAEA,gEAAyDF,OAAzD,cAAoEU,aAApE;AACD,CAJM"}
1
+ {"version":3,"file":"index.js","names":["version","formatName","name","split","map","el","toUpperCase","slice","join","getIllustrationPath","formattedName","concat"],"sources":["../../src/index.ts"],"sourcesContent":["const version = preval`module.exports = require('../package.json').version`;\n\n/**\n * Formats string from `access_denied` or `access-denied` to `AccessDenied`\n */\nconst formatName = (name: string) => {\n return name\n .split(/_|-/)\n .map((el) => el[0].toUpperCase() + el.slice(1))\n .join('');\n};\n\nexport const getIllustrationPath = (name) => {\n const formattedName = formatName(name);\n\n return `https://static.semrush.com/ui-kit/illustration/${version}/${formattedName}.svg`;\n};\n"],"mappings":"AAAA,IAAMA,OAAO,WAA8D;;AAE3E;AACA;AACA;AACA,IAAMC,UAAU,GAAG,SAAbA,UAAUA,CAAIC,IAAY,EAAK;EACnC,OAAOA,IAAI,CACRC,KAAK,CAAC,KAAK,CAAC,CACZC,GAAG,CAAC,UAACC,EAAE;IAAA,OAAKA,EAAE,CAAC,CAAC,CAAC,CAACC,WAAW,EAAE,GAAGD,EAAE,CAACE,KAAK,CAAC,CAAC,CAAC;EAAA,EAAC,CAC9CC,IAAI,CAAC,EAAE,CAAC;AACb,CAAC;AAED,OAAO,IAAMC,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAIP,IAAI,EAAK;EAC3C,IAAMQ,aAAa,GAAGT,UAAU,CAACC,IAAI,CAAC;EAEtC,yDAAAS,MAAA,CAAyDX,OAAO,OAAAW,MAAA,CAAID,aAAa;AACnF,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/illustration",
3
3
  "description": "Semrush Illustration Component",
4
- "version": "1.4.13",
4
+ "version": "1.4.15",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",