@propellerads/icon 5.25.0 → 6.0.2

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 (188) hide show
  1. package/dist/createSvg.d.ts +3 -3
  2. package/dist/icon.cjs.development.js +16 -40
  3. package/dist/icon.cjs.development.js.map +1 -1
  4. package/dist/icon.cjs.production.min.js +1 -1
  5. package/dist/icon.cjs.production.min.js.map +1 -1
  6. package/dist/icon.esm.js +16 -42
  7. package/dist/icon.esm.js.map +1 -1
  8. package/dist/icons/Add.d.ts +2 -1
  9. package/dist/icons/AddCircle.d.ts +2 -1
  10. package/dist/icons/AddCircleBracket.d.ts +2 -1
  11. package/dist/icons/AddFiled.d.ts +2 -1
  12. package/dist/icons/AddImage.d.ts +2 -1
  13. package/dist/icons/AirlineStops.d.ts +2 -1
  14. package/dist/icons/AmericanExpress.d.ts +2 -1
  15. package/dist/icons/Android.d.ts +2 -1
  16. package/dist/icons/Announcement.d.ts +2 -1
  17. package/dist/icons/Apps.d.ts +2 -1
  18. package/dist/icons/Archive.d.ts +2 -1
  19. package/dist/icons/ArrowDown.d.ts +2 -1
  20. package/dist/icons/ArrowDownFull.d.ts +2 -1
  21. package/dist/icons/ArrowLeft.d.ts +2 -1
  22. package/dist/icons/ArrowLeftFull.d.ts +2 -1
  23. package/dist/icons/ArrowPageFirst.d.ts +2 -1
  24. package/dist/icons/ArrowPageLast.d.ts +2 -1
  25. package/dist/icons/ArrowRight.d.ts +2 -1
  26. package/dist/icons/ArrowRightFull.d.ts +2 -1
  27. package/dist/icons/ArrowUp.d.ts +2 -1
  28. package/dist/icons/ArrowUpFull.d.ts +2 -1
  29. package/dist/icons/Assistance.d.ts +2 -1
  30. package/dist/icons/AutoRenew.d.ts +2 -1
  31. package/dist/icons/Bank.d.ts +2 -1
  32. package/dist/icons/Bell.d.ts +2 -1
  33. package/dist/icons/BellActive.d.ts +2 -1
  34. package/dist/icons/BellCrossed.d.ts +2 -1
  35. package/dist/icons/BellEmpty.d.ts +2 -1
  36. package/dist/icons/Block.d.ts +2 -1
  37. package/dist/icons/BlockedImage.d.ts +2 -1
  38. package/dist/icons/Blocks.d.ts +2 -1
  39. package/dist/icons/BorderAll.d.ts +2 -1
  40. package/dist/icons/Build.d.ts +2 -1
  41. package/dist/icons/Burger.d.ts +2 -1
  42. package/dist/icons/Cancel.d.ts +2 -1
  43. package/dist/icons/Card.d.ts +2 -1
  44. package/dist/icons/Case.d.ts +2 -1
  45. package/dist/icons/Check.d.ts +2 -1
  46. package/dist/icons/CheckCircle.d.ts +2 -1
  47. package/dist/icons/Chrome.d.ts +2 -1
  48. package/dist/icons/ChromeColored.d.ts +2 -1
  49. package/dist/icons/CircleNotification.d.ts +2 -1
  50. package/dist/icons/Close.d.ts +2 -1
  51. package/dist/icons/Code.d.ts +2 -1
  52. package/dist/icons/Columns.d.ts +2 -1
  53. package/dist/icons/Comment.d.ts +2 -1
  54. package/dist/icons/Constructor.d.ts +2 -1
  55. package/dist/icons/Copy.d.ts +2 -1
  56. package/dist/icons/Crop.d.ts +2 -1
  57. package/dist/icons/Crown.d.ts +2 -1
  58. package/dist/icons/Cup.d.ts +2 -1
  59. package/dist/icons/Cursor.d.ts +2 -1
  60. package/dist/icons/Date.d.ts +2 -1
  61. package/dist/icons/Delete.d.ts +2 -1
  62. package/dist/icons/DeleteForever.d.ts +2 -1
  63. package/dist/icons/Desktop.d.ts +2 -1
  64. package/dist/icons/Diamond.d.ts +2 -1
  65. package/dist/icons/Download.d.ts +2 -1
  66. package/dist/icons/DragIndicator.d.ts +2 -1
  67. package/dist/icons/Draggable.d.ts +2 -1
  68. package/dist/icons/Ebanx.d.ts +2 -1
  69. package/dist/icons/Edit.d.ts +2 -1
  70. package/dist/icons/Epayments.d.ts +2 -1
  71. package/dist/icons/Error.d.ts +2 -1
  72. package/dist/icons/Eye.d.ts +2 -1
  73. package/dist/icons/Facebook.d.ts +2 -1
  74. package/dist/icons/Favorite.d.ts +2 -1
  75. package/dist/icons/File.d.ts +2 -1
  76. package/dist/icons/Filter.d.ts +2 -1
  77. package/dist/icons/FilterList.d.ts +2 -1
  78. package/dist/icons/Fingerprint.d.ts +2 -1
  79. package/dist/icons/Fire.d.ts +2 -1
  80. package/dist/icons/FlightUp.d.ts +2 -1
  81. package/dist/icons/Folder.d.ts +2 -1
  82. package/dist/icons/Forth.d.ts +2 -1
  83. package/dist/icons/Funnel.d.ts +2 -1
  84. package/dist/icons/Gamepad.d.ts +2 -1
  85. package/dist/icons/Geo.d.ts +2 -1
  86. package/dist/icons/GiftBox.d.ts +2 -1
  87. package/dist/icons/HourGlass.d.ts +2 -1
  88. package/dist/icons/Http.d.ts +2 -1
  89. package/dist/icons/Infinity.d.ts +2 -1
  90. package/dist/icons/Info.d.ts +2 -1
  91. package/dist/icons/InfoOutline.d.ts +2 -1
  92. package/dist/icons/Insert.d.ts +2 -1
  93. package/dist/icons/Instagram.d.ts +2 -1
  94. package/dist/icons/InterstitialTemplate.d.ts +2 -1
  95. package/dist/icons/Lamp.d.ts +2 -1
  96. package/dist/icons/Language.d.ts +2 -1
  97. package/dist/icons/LaughingSmile.d.ts +2 -1
  98. package/dist/icons/LineChart.d.ts +2 -1
  99. package/dist/icons/Link.d.ts +2 -1
  100. package/dist/icons/Linkedin.d.ts +2 -1
  101. package/dist/icons/LocalAtm.d.ts +2 -1
  102. package/dist/icons/Lock.d.ts +2 -1
  103. package/dist/icons/LockOpen.d.ts +2 -1
  104. package/dist/icons/LogOut.d.ts +2 -1
  105. package/dist/icons/LpViews.d.ts +2 -1
  106. package/dist/icons/MagicWand.d.ts +2 -1
  107. package/dist/icons/Mail.d.ts +2 -1
  108. package/dist/icons/MailFilled.d.ts +2 -1
  109. package/dist/icons/ManageHistory.d.ts +2 -1
  110. package/dist/icons/MissedCall.d.ts +2 -1
  111. package/dist/icons/Monetization.d.ts +2 -1
  112. package/dist/icons/Money.d.ts +2 -1
  113. package/dist/icons/MoreHorizontal.d.ts +2 -1
  114. package/dist/icons/MoreVertical.d.ts +2 -1
  115. package/dist/icons/NoMoney.d.ts +2 -1
  116. package/dist/icons/Offer.d.ts +2 -1
  117. package/dist/icons/OfferFilled.d.ts +2 -1
  118. package/dist/icons/OnlinePrediction.d.ts +2 -1
  119. package/dist/icons/OpenInNew.d.ts +2 -1
  120. package/dist/icons/Pause.d.ts +2 -1
  121. package/dist/icons/Paypal.d.ts +2 -1
  122. package/dist/icons/Pdf.d.ts +2 -1
  123. package/dist/icons/People.d.ts +2 -1
  124. package/dist/icons/Phone.d.ts +2 -1
  125. package/dist/icons/PhotoCamera.d.ts +2 -1
  126. package/dist/icons/Pie.d.ts +2 -1
  127. package/dist/icons/PieOutline.d.ts +2 -1
  128. package/dist/icons/Play.d.ts +2 -1
  129. package/dist/icons/PlayCircleFilled.d.ts +2 -1
  130. package/dist/icons/Pop.d.ts +2 -1
  131. package/dist/icons/Postback.d.ts +2 -1
  132. package/dist/icons/Present.d.ts +2 -1
  133. package/dist/icons/PrivacyTip.d.ts +2 -1
  134. package/dist/icons/Propeller.d.ts +2 -1
  135. package/dist/icons/Push.d.ts +2 -1
  136. package/dist/icons/Qiwi.d.ts +2 -1
  137. package/dist/icons/QrCode.d.ts +2 -1
  138. package/dist/icons/Question.d.ts +2 -1
  139. package/dist/icons/QuestionMark.d.ts +2 -1
  140. package/dist/icons/Receipt.d.ts +2 -1
  141. package/dist/icons/Refresh.d.ts +2 -1
  142. package/dist/icons/SaveAs.d.ts +2 -1
  143. package/dist/icons/Search.d.ts +2 -1
  144. package/dist/icons/Segment.d.ts +2 -1
  145. package/dist/icons/Sent.d.ts +2 -1
  146. package/dist/icons/Settings.d.ts +2 -1
  147. package/dist/icons/Shield.d.ts +2 -1
  148. package/dist/icons/ShoppingBag.d.ts +2 -1
  149. package/dist/icons/ShoppingCart.d.ts +2 -1
  150. package/dist/icons/Site.d.ts +2 -1
  151. package/dist/icons/Skril.d.ts +2 -1
  152. package/dist/icons/Skype.d.ts +2 -1
  153. package/dist/icons/Smile.d.ts +2 -1
  154. package/dist/icons/SnowFlake.d.ts +2 -1
  155. package/dist/icons/Source.d.ts +2 -1
  156. package/dist/icons/SpeedFast.d.ts +2 -1
  157. package/dist/icons/Star.d.ts +2 -1
  158. package/dist/icons/Stat.d.ts +2 -1
  159. package/dist/icons/Stop.d.ts +2 -1
  160. package/dist/icons/Support.d.ts +2 -1
  161. package/dist/icons/SurveyOffer.d.ts +2 -1
  162. package/dist/icons/SwipeDown.d.ts +2 -1
  163. package/dist/icons/Tablet.d.ts +2 -1
  164. package/dist/icons/Target.d.ts +2 -1
  165. package/dist/icons/Telegram.d.ts +2 -1
  166. package/dist/icons/Tell.d.ts +2 -1
  167. package/dist/icons/ThumbUp.d.ts +2 -1
  168. package/dist/icons/Time.d.ts +2 -1
  169. package/dist/icons/Touch.d.ts +2 -1
  170. package/dist/icons/Twitter.d.ts +2 -1
  171. package/dist/icons/Unarchive.d.ts +2 -1
  172. package/dist/icons/Update.d.ts +2 -1
  173. package/dist/icons/Upload.d.ts +2 -1
  174. package/dist/icons/User.d.ts +2 -1
  175. package/dist/icons/UserAdd.d.ts +2 -1
  176. package/dist/icons/UserCircle.d.ts +2 -1
  177. package/dist/icons/Users.d.ts +2 -1
  178. package/dist/icons/Verified.d.ts +2 -1
  179. package/dist/icons/Vk.d.ts +2 -1
  180. package/dist/icons/Wallet.d.ts +2 -1
  181. package/dist/icons/Warning.d.ts +2 -1
  182. package/dist/icons/Webmoney.d.ts +2 -1
  183. package/dist/icons/WhatsApp.d.ts +2 -1
  184. package/dist/icons/WordPress.d.ts +2 -1
  185. package/dist/icons/YandexMoney.d.ts +2 -1
  186. package/dist/icons/YouTube.d.ts +2 -1
  187. package/dist/types.d.ts +3 -2
  188. package/package.json +9 -12
package/dist/icon.esm.js CHANGED
@@ -2,32 +2,20 @@ import React, { useContext } from 'react';
2
2
  import styled, { ThemeContext } from 'styled-components';
3
3
  import { spacing, black, warningColor, errorColor, successColor, gray50, gray70, actionColor, white } from '@propellerads/stylevariables';
4
4
 
5
- function _objectWithoutPropertiesLoose(source, excluded) {
6
- if (source == null) return {};
7
- var target = {};
8
- var sourceKeys = Object.keys(source);
9
- var key, i;
10
-
11
- for (i = 0; i < sourceKeys.length; i++) {
12
- key = sourceKeys[i];
13
- if (excluded.indexOf(key) >= 0) continue;
14
- target[key] = source[key];
5
+ function _objectWithoutPropertiesLoose(r, e) {
6
+ if (null == r) return {};
7
+ var t = {};
8
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
9
+ if (-1 !== e.indexOf(n)) continue;
10
+ t[n] = r[n];
15
11
  }
16
-
17
- return target;
12
+ return t;
18
13
  }
19
-
20
- function _taggedTemplateLiteralLoose(strings, raw) {
21
- if (!raw) {
22
- raw = strings.slice(0);
23
- }
24
-
25
- strings.raw = raw;
26
- return strings;
14
+ function _taggedTemplateLiteralLoose(e, t) {
15
+ return t || (t = e.slice(0)), e.raw = t, e;
27
16
  }
28
17
 
29
18
  var SIZE;
30
-
31
19
  (function (SIZE) {
32
20
  SIZE["EXTRA_SMALL"] = "extra-small";
33
21
  SIZE["SMALL"] = "small";
@@ -36,9 +24,7 @@ var SIZE;
36
24
  SIZE["LARGE"] = "large";
37
25
  SIZE["EXTRA_LARGE"] = "extra-large";
38
26
  })(SIZE || (SIZE = {}));
39
-
40
27
  var COLOR;
41
-
42
28
  (function (COLOR) {
43
29
  COLOR["BLACK"] = "black";
44
30
  COLOR["WHITE"] = "white";
@@ -70,49 +56,37 @@ var StyledIcon = /*#__PURE__*/styled.svg(_templateObject || (_templateObject = /
70
56
  });
71
57
 
72
58
  var _excluded = ["children", "size", "color", "hoverColor"];
73
-
74
59
  var getColor = function getColor(color, theme) {
75
60
  var _theme$actionColor, _theme$successColor, _theme$errorColor, _theme$warningColor;
76
-
77
61
  switch (color) {
78
62
  case COLOR.WHITE:
79
63
  return white;
80
-
81
64
  case COLOR.BLUE:
82
65
  return (theme === null || theme === void 0 ? void 0 : (_theme$actionColor = theme.actionColor) === null || _theme$actionColor === void 0 ? void 0 : _theme$actionColor.main) || actionColor;
83
-
84
66
  case COLOR.GRAY:
85
67
  return gray70;
86
-
87
68
  case COLOR.GRAY_DARK:
88
69
  return gray50;
89
-
90
70
  case COLOR.SUCCESS:
91
71
  return (theme === null || theme === void 0 ? void 0 : (_theme$successColor = theme.successColor) === null || _theme$successColor === void 0 ? void 0 : _theme$successColor.main) || successColor;
92
-
93
72
  case COLOR.ERROR:
94
73
  return (theme === null || theme === void 0 ? void 0 : (_theme$errorColor = theme.errorColor) === null || _theme$errorColor === void 0 ? void 0 : _theme$errorColor.main) || errorColor;
95
-
96
74
  case COLOR.WARNING:
97
75
  return (theme === null || theme === void 0 ? void 0 : (_theme$warningColor = theme.warningColor) === null || _theme$warningColor === void 0 ? void 0 : _theme$warningColor.main) || warningColor;
98
-
99
76
  case COLOR.BLACK:
100
77
  return black;
101
-
102
78
  default:
103
79
  return color;
104
80
  }
105
81
  };
106
-
107
82
  var Icon = function Icon(_ref) {
108
83
  var children = _ref.children,
109
- _ref$size = _ref.size,
110
- size = _ref$size === void 0 ? SIZE.MEDIUM : _ref$size,
111
- _ref$color = _ref.color,
112
- color = _ref$color === void 0 ? COLOR.BLACK : _ref$color,
113
- hoverColor = _ref.hoverColor,
114
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
115
-
84
+ _ref$size = _ref.size,
85
+ size = _ref$size === void 0 ? SIZE.MEDIUM : _ref$size,
86
+ _ref$color = _ref.color,
87
+ color = _ref$color === void 0 ? COLOR.BLACK : _ref$color,
88
+ hoverColor = _ref.hoverColor,
89
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
116
90
  var themeContext = useContext(ThemeContext);
117
91
  return React.createElement(StyledIcon, Object.assign({
118
92
  size: size,
@@ -494,7 +468,7 @@ var CircleNotification = function CircleNotification(props) {
494
468
  }));
495
469
  };
496
470
 
497
- /* eslint max-len: off */
471
+ /* eslint max-len: off */ /* eslint max-len: off */
498
472
  var Chrome = function Chrome(props) {
499
473
  return React.createElement(Icon, Object.assign({}, props), React.createElement("path", {
500
474
  d: "M2.898 4.18C8.476-2.311 18.82-1.03 22.686 6.555h-9.293c-1.674 0-2.755-.038-3.926.579-1.376.724-2.414 2.067-2.777 3.644L2.898 4.181zM8.008 12c0-2.2 1.789-3.99 3.988-3.99A3.994 3.994 0 0 1 15.984 12c0 2.2-1.789 3.99-3.988 3.99-2.2 0-3.988-1.79-3.988-3.99zm5.536 5.223l-3.87 6.551C1.31 22.132-2.662 12.51 1.945 5.45c1.315 2.292 4.21 7.334 5.305 9.224 1.435 2.477 4.054 3.215 6.293 2.55zM15.7 8.009h7.609c2.837 8.053-3.445 16.498-12.062 15.967 1.472-2.482 4.509-7.607 5.46-9.248a5.464 5.464 0 0 0-1.007-6.719z"