@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
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ import { FC, ReactNode } from 'react';
2
2
  import { IconProps } from './types';
3
3
  interface Props extends IconProps {
4
- children: React.ReactNode;
4
+ children: ReactNode;
5
5
  }
6
- declare const Icon: ({ children, size, color, hoverColor, ...rest }: Props) => JSX.Element;
6
+ declare const Icon: FC<Props>;
7
7
  export { Icon };
@@ -10,28 +10,17 @@ var styled = require('styled-components');
10
10
  var styled__default = _interopDefault(styled);
11
11
  var stylevariables = require('@propellerads/stylevariables');
12
12
 
13
- function _objectWithoutPropertiesLoose(source, excluded) {
14
- if (source == null) return {};
15
- var target = {};
16
- var sourceKeys = Object.keys(source);
17
- var key, i;
18
-
19
- for (i = 0; i < sourceKeys.length; i++) {
20
- key = sourceKeys[i];
21
- if (excluded.indexOf(key) >= 0) continue;
22
- target[key] = source[key];
13
+ function _objectWithoutPropertiesLoose(r, e) {
14
+ if (null == r) return {};
15
+ var t = {};
16
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
17
+ if (-1 !== e.indexOf(n)) continue;
18
+ t[n] = r[n];
23
19
  }
24
-
25
- return target;
20
+ return t;
26
21
  }
27
-
28
- function _taggedTemplateLiteralLoose(strings, raw) {
29
- if (!raw) {
30
- raw = strings.slice(0);
31
- }
32
-
33
- strings.raw = raw;
34
- return strings;
22
+ function _taggedTemplateLiteralLoose(e, t) {
23
+ return t || (t = e.slice(0)), e.raw = t, e;
35
24
  }
36
25
 
37
26
  (function (SIZE) {
@@ -42,7 +31,6 @@ function _taggedTemplateLiteralLoose(strings, raw) {
42
31
  SIZE["LARGE"] = "large";
43
32
  SIZE["EXTRA_LARGE"] = "extra-large";
44
33
  })(exports.SIZE || (exports.SIZE = {}));
45
-
46
34
  (function (COLOR) {
47
35
  COLOR["BLACK"] = "black";
48
36
  COLOR["WHITE"] = "white";
@@ -74,49 +62,37 @@ var StyledIcon = /*#__PURE__*/styled__default.svg(_templateObject || (_templateO
74
62
  });
75
63
 
76
64
  var _excluded = ["children", "size", "color", "hoverColor"];
77
-
78
65
  var getColor = function getColor(color, theme) {
79
66
  var _theme$actionColor, _theme$successColor, _theme$errorColor, _theme$warningColor;
80
-
81
67
  switch (color) {
82
68
  case exports.COLOR.WHITE:
83
69
  return stylevariables.white;
84
-
85
70
  case exports.COLOR.BLUE:
86
71
  return (theme === null || theme === void 0 ? void 0 : (_theme$actionColor = theme.actionColor) === null || _theme$actionColor === void 0 ? void 0 : _theme$actionColor.main) || stylevariables.actionColor;
87
-
88
72
  case exports.COLOR.GRAY:
89
73
  return stylevariables.gray70;
90
-
91
74
  case exports.COLOR.GRAY_DARK:
92
75
  return stylevariables.gray50;
93
-
94
76
  case exports.COLOR.SUCCESS:
95
77
  return (theme === null || theme === void 0 ? void 0 : (_theme$successColor = theme.successColor) === null || _theme$successColor === void 0 ? void 0 : _theme$successColor.main) || stylevariables.successColor;
96
-
97
78
  case exports.COLOR.ERROR:
98
79
  return (theme === null || theme === void 0 ? void 0 : (_theme$errorColor = theme.errorColor) === null || _theme$errorColor === void 0 ? void 0 : _theme$errorColor.main) || stylevariables.errorColor;
99
-
100
80
  case exports.COLOR.WARNING:
101
81
  return (theme === null || theme === void 0 ? void 0 : (_theme$warningColor = theme.warningColor) === null || _theme$warningColor === void 0 ? void 0 : _theme$warningColor.main) || stylevariables.warningColor;
102
-
103
82
  case exports.COLOR.BLACK:
104
83
  return stylevariables.black;
105
-
106
84
  default:
107
85
  return color;
108
86
  }
109
87
  };
110
-
111
88
  var Icon = function Icon(_ref) {
112
89
  var children = _ref.children,
113
- _ref$size = _ref.size,
114
- size = _ref$size === void 0 ? exports.SIZE.MEDIUM : _ref$size,
115
- _ref$color = _ref.color,
116
- color = _ref$color === void 0 ? exports.COLOR.BLACK : _ref$color,
117
- hoverColor = _ref.hoverColor,
118
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
119
-
90
+ _ref$size = _ref.size,
91
+ size = _ref$size === void 0 ? exports.SIZE.MEDIUM : _ref$size,
92
+ _ref$color = _ref.color,
93
+ color = _ref$color === void 0 ? exports.COLOR.BLACK : _ref$color,
94
+ hoverColor = _ref.hoverColor,
95
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
120
96
  var themeContext = React.useContext(styled.ThemeContext);
121
97
  return React__default.createElement(StyledIcon, Object.assign({
122
98
  size: size,
@@ -498,7 +474,7 @@ var CircleNotification = function CircleNotification(props) {
498
474
  }));
499
475
  };
500
476
 
501
- /* eslint max-len: off */
477
+ /* eslint max-len: off */ /* eslint max-len: off */
502
478
  var Chrome = function Chrome(props) {
503
479
  return React__default.createElement(Icon, Object.assign({}, props), React__default.createElement("path", {
504
480
  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"