@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.
- package/dist/createSvg.d.ts +3 -3
- package/dist/icon.cjs.development.js +16 -40
- package/dist/icon.cjs.development.js.map +1 -1
- package/dist/icon.cjs.production.min.js +1 -1
- package/dist/icon.cjs.production.min.js.map +1 -1
- package/dist/icon.esm.js +16 -42
- package/dist/icon.esm.js.map +1 -1
- package/dist/icons/Add.d.ts +2 -1
- package/dist/icons/AddCircle.d.ts +2 -1
- package/dist/icons/AddCircleBracket.d.ts +2 -1
- package/dist/icons/AddFiled.d.ts +2 -1
- package/dist/icons/AddImage.d.ts +2 -1
- package/dist/icons/AirlineStops.d.ts +2 -1
- package/dist/icons/AmericanExpress.d.ts +2 -1
- package/dist/icons/Android.d.ts +2 -1
- package/dist/icons/Announcement.d.ts +2 -1
- package/dist/icons/Apps.d.ts +2 -1
- package/dist/icons/Archive.d.ts +2 -1
- package/dist/icons/ArrowDown.d.ts +2 -1
- package/dist/icons/ArrowDownFull.d.ts +2 -1
- package/dist/icons/ArrowLeft.d.ts +2 -1
- package/dist/icons/ArrowLeftFull.d.ts +2 -1
- package/dist/icons/ArrowPageFirst.d.ts +2 -1
- package/dist/icons/ArrowPageLast.d.ts +2 -1
- package/dist/icons/ArrowRight.d.ts +2 -1
- package/dist/icons/ArrowRightFull.d.ts +2 -1
- package/dist/icons/ArrowUp.d.ts +2 -1
- package/dist/icons/ArrowUpFull.d.ts +2 -1
- package/dist/icons/Assistance.d.ts +2 -1
- package/dist/icons/AutoRenew.d.ts +2 -1
- package/dist/icons/Bank.d.ts +2 -1
- package/dist/icons/Bell.d.ts +2 -1
- package/dist/icons/BellActive.d.ts +2 -1
- package/dist/icons/BellCrossed.d.ts +2 -1
- package/dist/icons/BellEmpty.d.ts +2 -1
- package/dist/icons/Block.d.ts +2 -1
- package/dist/icons/BlockedImage.d.ts +2 -1
- package/dist/icons/Blocks.d.ts +2 -1
- package/dist/icons/BorderAll.d.ts +2 -1
- package/dist/icons/Build.d.ts +2 -1
- package/dist/icons/Burger.d.ts +2 -1
- package/dist/icons/Cancel.d.ts +2 -1
- package/dist/icons/Card.d.ts +2 -1
- package/dist/icons/Case.d.ts +2 -1
- package/dist/icons/Check.d.ts +2 -1
- package/dist/icons/CheckCircle.d.ts +2 -1
- package/dist/icons/Chrome.d.ts +2 -1
- package/dist/icons/ChromeColored.d.ts +2 -1
- package/dist/icons/CircleNotification.d.ts +2 -1
- package/dist/icons/Close.d.ts +2 -1
- package/dist/icons/Code.d.ts +2 -1
- package/dist/icons/Columns.d.ts +2 -1
- package/dist/icons/Comment.d.ts +2 -1
- package/dist/icons/Constructor.d.ts +2 -1
- package/dist/icons/Copy.d.ts +2 -1
- package/dist/icons/Crop.d.ts +2 -1
- package/dist/icons/Crown.d.ts +2 -1
- package/dist/icons/Cup.d.ts +2 -1
- package/dist/icons/Cursor.d.ts +2 -1
- package/dist/icons/Date.d.ts +2 -1
- package/dist/icons/Delete.d.ts +2 -1
- package/dist/icons/DeleteForever.d.ts +2 -1
- package/dist/icons/Desktop.d.ts +2 -1
- package/dist/icons/Diamond.d.ts +2 -1
- package/dist/icons/Download.d.ts +2 -1
- package/dist/icons/DragIndicator.d.ts +2 -1
- package/dist/icons/Draggable.d.ts +2 -1
- package/dist/icons/Ebanx.d.ts +2 -1
- package/dist/icons/Edit.d.ts +2 -1
- package/dist/icons/Epayments.d.ts +2 -1
- package/dist/icons/Error.d.ts +2 -1
- package/dist/icons/Eye.d.ts +2 -1
- package/dist/icons/Facebook.d.ts +2 -1
- package/dist/icons/Favorite.d.ts +2 -1
- package/dist/icons/File.d.ts +2 -1
- package/dist/icons/Filter.d.ts +2 -1
- package/dist/icons/FilterList.d.ts +2 -1
- package/dist/icons/Fingerprint.d.ts +2 -1
- package/dist/icons/Fire.d.ts +2 -1
- package/dist/icons/FlightUp.d.ts +2 -1
- package/dist/icons/Folder.d.ts +2 -1
- package/dist/icons/Forth.d.ts +2 -1
- package/dist/icons/Funnel.d.ts +2 -1
- package/dist/icons/Gamepad.d.ts +2 -1
- package/dist/icons/Geo.d.ts +2 -1
- package/dist/icons/GiftBox.d.ts +2 -1
- package/dist/icons/HourGlass.d.ts +2 -1
- package/dist/icons/Http.d.ts +2 -1
- package/dist/icons/Infinity.d.ts +2 -1
- package/dist/icons/Info.d.ts +2 -1
- package/dist/icons/InfoOutline.d.ts +2 -1
- package/dist/icons/Insert.d.ts +2 -1
- package/dist/icons/Instagram.d.ts +2 -1
- package/dist/icons/InterstitialTemplate.d.ts +2 -1
- package/dist/icons/Lamp.d.ts +2 -1
- package/dist/icons/Language.d.ts +2 -1
- package/dist/icons/LaughingSmile.d.ts +2 -1
- package/dist/icons/LineChart.d.ts +2 -1
- package/dist/icons/Link.d.ts +2 -1
- package/dist/icons/Linkedin.d.ts +2 -1
- package/dist/icons/LocalAtm.d.ts +2 -1
- package/dist/icons/Lock.d.ts +2 -1
- package/dist/icons/LockOpen.d.ts +2 -1
- package/dist/icons/LogOut.d.ts +2 -1
- package/dist/icons/LpViews.d.ts +2 -1
- package/dist/icons/MagicWand.d.ts +2 -1
- package/dist/icons/Mail.d.ts +2 -1
- package/dist/icons/MailFilled.d.ts +2 -1
- package/dist/icons/ManageHistory.d.ts +2 -1
- package/dist/icons/MissedCall.d.ts +2 -1
- package/dist/icons/Monetization.d.ts +2 -1
- package/dist/icons/Money.d.ts +2 -1
- package/dist/icons/MoreHorizontal.d.ts +2 -1
- package/dist/icons/MoreVertical.d.ts +2 -1
- package/dist/icons/NoMoney.d.ts +2 -1
- package/dist/icons/Offer.d.ts +2 -1
- package/dist/icons/OfferFilled.d.ts +2 -1
- package/dist/icons/OnlinePrediction.d.ts +2 -1
- package/dist/icons/OpenInNew.d.ts +2 -1
- package/dist/icons/Pause.d.ts +2 -1
- package/dist/icons/Paypal.d.ts +2 -1
- package/dist/icons/Pdf.d.ts +2 -1
- package/dist/icons/People.d.ts +2 -1
- package/dist/icons/Phone.d.ts +2 -1
- package/dist/icons/PhotoCamera.d.ts +2 -1
- package/dist/icons/Pie.d.ts +2 -1
- package/dist/icons/PieOutline.d.ts +2 -1
- package/dist/icons/Play.d.ts +2 -1
- package/dist/icons/PlayCircleFilled.d.ts +2 -1
- package/dist/icons/Pop.d.ts +2 -1
- package/dist/icons/Postback.d.ts +2 -1
- package/dist/icons/Present.d.ts +2 -1
- package/dist/icons/PrivacyTip.d.ts +2 -1
- package/dist/icons/Propeller.d.ts +2 -1
- package/dist/icons/Push.d.ts +2 -1
- package/dist/icons/Qiwi.d.ts +2 -1
- package/dist/icons/QrCode.d.ts +2 -1
- package/dist/icons/Question.d.ts +2 -1
- package/dist/icons/QuestionMark.d.ts +2 -1
- package/dist/icons/Receipt.d.ts +2 -1
- package/dist/icons/Refresh.d.ts +2 -1
- package/dist/icons/SaveAs.d.ts +2 -1
- package/dist/icons/Search.d.ts +2 -1
- package/dist/icons/Segment.d.ts +2 -1
- package/dist/icons/Sent.d.ts +2 -1
- package/dist/icons/Settings.d.ts +2 -1
- package/dist/icons/Shield.d.ts +2 -1
- package/dist/icons/ShoppingBag.d.ts +2 -1
- package/dist/icons/ShoppingCart.d.ts +2 -1
- package/dist/icons/Site.d.ts +2 -1
- package/dist/icons/Skril.d.ts +2 -1
- package/dist/icons/Skype.d.ts +2 -1
- package/dist/icons/Smile.d.ts +2 -1
- package/dist/icons/SnowFlake.d.ts +2 -1
- package/dist/icons/Source.d.ts +2 -1
- package/dist/icons/SpeedFast.d.ts +2 -1
- package/dist/icons/Star.d.ts +2 -1
- package/dist/icons/Stat.d.ts +2 -1
- package/dist/icons/Stop.d.ts +2 -1
- package/dist/icons/Support.d.ts +2 -1
- package/dist/icons/SurveyOffer.d.ts +2 -1
- package/dist/icons/SwipeDown.d.ts +2 -1
- package/dist/icons/Tablet.d.ts +2 -1
- package/dist/icons/Target.d.ts +2 -1
- package/dist/icons/Telegram.d.ts +2 -1
- package/dist/icons/Tell.d.ts +2 -1
- package/dist/icons/ThumbUp.d.ts +2 -1
- package/dist/icons/Time.d.ts +2 -1
- package/dist/icons/Touch.d.ts +2 -1
- package/dist/icons/Twitter.d.ts +2 -1
- package/dist/icons/Unarchive.d.ts +2 -1
- package/dist/icons/Update.d.ts +2 -1
- package/dist/icons/Upload.d.ts +2 -1
- package/dist/icons/User.d.ts +2 -1
- package/dist/icons/UserAdd.d.ts +2 -1
- package/dist/icons/UserCircle.d.ts +2 -1
- package/dist/icons/Users.d.ts +2 -1
- package/dist/icons/Verified.d.ts +2 -1
- package/dist/icons/Vk.d.ts +2 -1
- package/dist/icons/Wallet.d.ts +2 -1
- package/dist/icons/Warning.d.ts +2 -1
- package/dist/icons/Webmoney.d.ts +2 -1
- package/dist/icons/WhatsApp.d.ts +2 -1
- package/dist/icons/WordPress.d.ts +2 -1
- package/dist/icons/YandexMoney.d.ts +2 -1
- package/dist/icons/YouTube.d.ts +2 -1
- package/dist/types.d.ts +3 -2
- package/package.json +9 -12
package/dist/createSvg.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { IconProps } from './types';
|
|
3
3
|
interface Props extends IconProps {
|
|
4
|
-
children:
|
|
4
|
+
children: ReactNode;
|
|
5
5
|
}
|
|
6
|
-
declare const Icon:
|
|
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(
|
|
14
|
-
if (
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
|
|
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
|
-
|
|
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
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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"
|