@sumup-oss/icons 7.1.0 → 7.2.1
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/Accessibility.js +1 -30
- package/dist/Account.js +1 -30
- package/dist/AccountDetails.js +1 -30
- package/dist/AccountFilled.js +1 -30
- package/dist/Accounting.js +1 -30
- package/dist/AccountingFilled.js +1 -30
- package/dist/ActivateCard.js +1 -30
- package/dist/Active.js +1 -30
- package/dist/Add.js +1 -30
- package/dist/AddEmployees.js +1 -30
- package/dist/AddItemsFilled.js +1 -30
- package/dist/Alarm.js +1 -30
- package/dist/Alert.js +1 -30
- package/dist/AndroidTerminal.js +1 -30
- package/dist/Apps.js +1 -30
- package/dist/Archive.js +1 -30
- package/dist/Area.js +1 -30
- package/dist/ArrowDown.js +1 -30
- package/dist/ArrowLeft.js +1 -30
- package/dist/ArrowRight.js +1 -30
- package/dist/ArrowSlanted.js +1 -30
- package/dist/ArrowUp.js +1 -30
- package/dist/Article.js +1 -30
- package/dist/Atm.js +1 -30
- package/dist/Attachment.js +1 -30
- package/dist/AutomaticBalanceTransfer.js +1 -30
- package/dist/AutomaticPix.js +1 -30
- package/dist/BackOnline.js +1 -30
- package/dist/Bank.js +1 -30
- package/dist/Barcode.js +1 -30
- package/dist/Basket.js +1 -30
- package/dist/Battery.js +1 -30
- package/dist/BatteryAlert.js +1 -30
- package/dist/BatteryCharging.js +1 -30
- package/dist/Bluetooth.js +1 -30
- package/dist/BluetoothConnecting.js +1 -30
- package/dist/BluetoothOff.js +1 -30
- package/dist/Bookings.js +1 -30
- package/dist/BookingsFilled.js +1 -30
- package/dist/Briefcase.js +1 -30
- package/dist/BrowserSecure.js +1 -30
- package/dist/BulkTransfer.js +1 -30
- package/dist/Cafe.js +1 -30
- package/dist/CafeRestaurant.js +1 -30
- package/dist/Calendar.js +1 -30
- package/dist/CalendarCoins.js +1 -30
- package/dist/Callback.js +1 -30
- package/dist/Camera.js +1 -30
- package/dist/CardIn.js +1 -30
- package/dist/CardOut.js +1 -30
- package/dist/CardReaderAir.js +1 -30
- package/dist/CardReaderSolo.js +1 -30
- package/dist/CardReaderSoloLite.js +1 -30
- package/dist/CardSecurity.js +1 -30
- package/dist/CardUnknown.js +1 -30
- package/dist/Cash.js +1 -30
- package/dist/CashAdvance.js +1 -30
- package/dist/CashAdvanceFilled.js +1 -30
- package/dist/CashDrawer.js +1 -30
- package/dist/CashStack.js +1 -30
- package/dist/Celery.js +1 -30
- package/dist/Challenge.js +1 -30
- package/dist/Checkmark.js +1 -30
- package/dist/Checkout.js +1 -30
- package/dist/CheckoutAmount.js +1 -30
- package/dist/CheckoutAmountFilled.js +1 -30
- package/dist/CheckoutSettings.js +1 -30
- package/dist/Cheque.js +1 -30
- package/dist/ChevronDown.js +1 -30
- package/dist/ChevronLeft.js +1 -30
- package/dist/ChevronRight.js +1 -30
- package/dist/ChevronUp.js +1 -30
- package/dist/Close.js +1 -30
- package/dist/Clothing.js +1 -30
- package/dist/Code.js +1 -30
- package/dist/ColorInversion.js +1 -30
- package/dist/ColorPicker.js +1 -30
- package/dist/Company.js +1 -30
- package/dist/Confirm.js +1 -30
- package/dist/ContactPicker.js +1 -30
- package/dist/Contractor.js +1 -30
- package/dist/Controls.js +1 -30
- package/dist/ControlsCustom.js +1 -30
- package/dist/Cookie.js +1 -30
- package/dist/CopyPaste.js +1 -30
- package/dist/CreditNote.js +1 -30
- package/dist/Crop.js +1 -30
- package/dist/CroppingHorizontal.js +1 -30
- package/dist/CroppingSquare.js +1 -30
- package/dist/CroppingVertical.js +1 -30
- package/dist/Crustaceans.js +1 -30
- package/dist/CustomAmount.js +1 -30
- package/dist/CustomerFacingDisplay.js +1 -30
- package/dist/Customers.js +1 -30
- package/dist/CustomersFilled.js +1 -30
- package/dist/Customise.js +1 -30
- package/dist/CustomiseFilled.js +1 -30
- package/dist/Cvv.js +1 -30
- package/dist/DayView.js +1 -30
- package/dist/Delete.js +1 -30
- package/dist/DeliveryNote.js +1 -30
- package/dist/Deposit.js +1 -30
- package/dist/Diamond.js +1 -30
- package/dist/DirectDebit.js +1 -30
- package/dist/DisableNfc.js +1 -30
- package/dist/Discount.js +1 -30
- package/dist/Download.js +1 -30
- package/dist/DownloadCloud.js +1 -30
- package/dist/Drag.js +1 -30
- package/dist/DriverLicense.js +1 -30
- package/dist/Edit.js +1 -30
- package/dist/Eggs.js +1 -30
- package/dist/ElectronicInvoice.js +1 -30
- package/dist/Email.js +1 -30
- package/dist/Employees.js +1 -30
- package/dist/EmployeesFilled.js +1 -30
- package/dist/Expenses.js +1 -30
- package/dist/ExpensesFilled.js +1 -30
- package/dist/Export.js +1 -30
- package/dist/ExternalLink.js +1 -30
- package/dist/Facebook.js +1 -30
- package/dist/FacebookMessenger.js +1 -30
- package/dist/Favourite.js +1 -30
- package/dist/FeeCalculator.js +1 -30
- package/dist/FeesSummary.js +1 -30
- package/dist/File.js +1 -30
- package/dist/Filter.js +1 -30
- package/dist/FilterApplied.js +1 -30
- package/dist/Fish.js +1 -30
- package/dist/FlashOff.js +1 -30
- package/dist/FlashOn.js +1 -30
- package/dist/Flashlight.js +1 -30
- package/dist/FlipCamera.js +1 -30
- package/dist/FloorPlan.js +1 -30
- package/dist/FloorPlanFilled.js +1 -30
- package/dist/Freeze.js +1 -30
- package/dist/FullReturn.js +1 -30
- package/dist/Gauge.js +1 -30
- package/dist/GeneralPreferences.js +1 -30
- package/dist/GiftCards.js +1 -30
- package/dist/GiftCardsFilled.js +1 -30
- package/dist/Globe.js +1 -30
- package/dist/Gluten.js +1 -30
- package/dist/Grid.js +1 -30
- package/dist/HamburgerMenu.js +1 -30
- package/dist/Headset.js +1 -30
- package/dist/Health.js +1 -30
- package/dist/Help.js +1 -30
- package/dist/Hide.js +1 -30
- package/dist/History.js +1 -30
- package/dist/Home.js +1 -30
- package/dist/HomeFilled.js +1 -30
- package/dist/Hospitality.js +1 -30
- package/dist/Hotel.js +1 -30
- package/dist/Id.js +1 -30
- package/dist/Image.js +1 -30
- package/dist/Import.js +1 -30
- package/dist/Info.js +1 -30
- package/dist/Instagram.js +1 -30
- package/dist/Insurance.js +1 -30
- package/dist/InterestOnBalance.js +1 -30
- package/dist/Inventory.js +1 -30
- package/dist/Investments.js +1 -30
- package/dist/InvestmentsFilled.js +1 -30
- package/dist/Invoice.js +1 -30
- package/dist/InvoiceFilled.js +1 -30
- package/dist/Items.js +1 -30
- package/dist/ItemsFilled.js +1 -30
- package/dist/Key.js +1 -30
- package/dist/Kiosk.js +1 -30
- package/dist/KioskFilled.js +1 -30
- package/dist/Language.js +1 -30
- package/dist/Laptop.js +1 -30
- package/dist/Legal.js +1 -30
- package/dist/Like.js +1 -30
- package/dist/Link.js +1 -30
- package/dist/Linkedin.js +1 -30
- package/dist/List.js +1 -30
- package/dist/LiveChat.js +1 -30
- package/dist/Location.js +1 -30
- package/dist/Login.js +1 -30
- package/dist/Logout.js +1 -30
- package/dist/Loja.js +1 -30
- package/dist/Loyalty.js +1 -30
- package/dist/LoyaltyAdd.js +1 -30
- package/dist/LoyaltyFilled.js +1 -30
- package/dist/LoyaltyLoggedIn.js +1 -30
- package/dist/Lupin.js +1 -30
- package/dist/MailFilled.js +1 -30
- package/dist/Manage.js +1 -30
- package/dist/Mcc.js +1 -30
- package/dist/MealVoucher.js +1 -30
- package/dist/Milk.js +1 -30
- package/dist/Minus.js +1 -30
- package/dist/Mobile.js +1 -30
- package/dist/Molluscs.js +1 -30
- package/dist/MonthView.js +1 -30
- package/dist/Moon.js +1 -30
- package/dist/More.js +1 -30
- package/dist/MoreCircle.js +1 -30
- package/dist/Motorbike.js +1 -30
- package/dist/Move.js +1 -30
- package/dist/Mustard.js +1 -30
- package/dist/Nfc.js +1 -30
- package/dist/NoCosts.js +1 -30
- package/dist/NoSimcard.js +1 -30
- package/dist/NotificationCenter.js +1 -30
- package/dist/Notify.js +1 -30
- package/dist/Nuts.js +1 -30
- package/dist/Offline.js +1 -30
- package/dist/OnlineIntegrations.js +1 -30
- package/dist/OnlinePayments.js +1 -30
- package/dist/OnlineStore.js +1 -30
- package/dist/OnlineStoreFilled.js +1 -30
- package/dist/OpenOrders.js +1 -30
- package/dist/OpenOrdersFilled.js +1 -30
- package/dist/OrderPlaced.js +1 -30
- package/dist/Ordering.js +1 -30
- package/dist/Orders.js +1 -30
- package/dist/OrdersFilled.js +1 -30
- package/dist/Package.js +1 -30
- package/dist/PaidOut.js +1 -30
- package/dist/ParcelLocker.js +1 -30
- package/dist/PartialReturn.js +1 -30
- package/dist/Passkey.js +1 -30
- package/dist/Passport.js +1 -30
- package/dist/Pause.js +1 -30
- package/dist/Paused.js +1 -30
- package/dist/PaymentLinks.js +1 -30
- package/dist/PaymentLinksFilled.js +1 -30
- package/dist/PaymentMethods.js +1 -30
- package/dist/PayoutSettings.js +1 -30
- package/dist/Payouts.js +1 -30
- package/dist/PayoutsFilled.js +1 -30
- package/dist/Peanuts.js +1 -30
- package/dist/Percentage.js +1 -30
- package/dist/Phone.js +1 -30
- package/dist/PiggyBank.js +1 -30
- package/dist/Pinterest.js +1 -30
- package/dist/Pix.js +1 -30
- package/dist/Placeholder.js +1 -30
- package/dist/Play.js +1 -30
- package/dist/Plus.js +1 -30
- package/dist/PlusTier.js +1 -30
- package/dist/Pos.js +1 -30
- package/dist/PosFilled.js +1 -30
- package/dist/PowerOff.js +1 -30
- package/dist/Printer.js +1 -30
- package/dist/PrinterFailed.js +1 -30
- package/dist/Profile.js +1 -30
- package/dist/ProfileFilled.js +1 -30
- package/dist/Promote.js +1 -30
- package/dist/PromoteFilled.js +1 -30
- package/dist/QrCode.js +1 -30
- package/dist/Random.js +1 -30
- package/dist/Receipt.js +1 -30
- package/dist/ReceiptAttached.js +1 -30
- package/dist/ReceiptFilled.js +1 -30
- package/dist/ReceiptMissing.js +1 -30
- package/dist/ReceiptSmart.js +1 -30
- package/dist/ReceiptUnreviewed.js +1 -30
- package/dist/Receivables.js +1 -30
- package/dist/ReceivablesFilled.js +1 -30
- package/dist/RecurringInvoice.js +1 -30
- package/dist/RecurringTransfer.js +1 -30
- package/dist/ReferAFriend.js +1 -30
- package/dist/Refresh.js +1 -30
- package/dist/Refunded.js +1 -30
- package/dist/Remove.js +1 -30
- package/dist/Reports.js +1 -30
- package/dist/ReportsFilled.js +1 -30
- package/dist/RequestHistory.js +1 -30
- package/dist/ResidencePermit.js +1 -30
- package/dist/Restart.js +1 -30
- package/dist/Reward.js +1 -30
- package/dist/ScamCall.js +1 -30
- package/dist/Search.js +1 -30
- package/dist/Secure.js +1 -30
- package/dist/SecurePayments.js +1 -30
- package/dist/SecurityTimeSensitive.js +1 -30
- package/dist/SelectAll.js +1 -30
- package/dist/Send.js +1 -30
- package/dist/Services.js +1 -30
- package/dist/Sesame.js +1 -30
- package/dist/Settings.js +1 -30
- package/dist/SettingsFilled.js +1 -30
- package/dist/Share.js +1 -30
- package/dist/Shop.js +1 -30
- package/dist/ShopFilled.js +1 -30
- package/dist/SignalFull.js +1 -30
- package/dist/SignalHigh.js +1 -30
- package/dist/SignalLow.js +1 -30
- package/dist/SignalMedium.js +1 -30
- package/dist/SignalNoSignal.js +1 -30
- package/dist/SimCard.js +1 -30
- package/dist/Sort.js +1 -30
- package/dist/Soy.js +1 -30
- package/dist/Sparkles.js +1 -30
- package/dist/Stop.js +1 -30
- package/dist/Stopped.js +1 -30
- package/dist/StoreEditor.js +1 -30
- package/dist/SubscriptionPlans.js +1 -30
- package/dist/Sulphites.js +1 -30
- package/dist/SumUpCard.js +1 -30
- package/dist/SumUpConnect.js +1 -30
- package/dist/SumUpConnectFilled.js +1 -30
- package/dist/SumUpPay.js +1 -30
- package/dist/Sun.js +1 -30
- package/dist/Support.js +1 -30
- package/dist/SwitchAccount.js +1 -30
- package/dist/Tablet.js +1 -30
- package/dist/TapToPay.js +1 -30
- package/dist/Taxes.js +1 -30
- package/dist/ThumbDown.js +1 -30
- package/dist/ThumbUp.js +1 -30
- package/dist/ThumbUpFilled.js +1 -30
- package/dist/TikTok.js +1 -30
- package/dist/TillManagement.js +1 -30
- package/dist/Time.js +1 -30
- package/dist/Tipping.js +1 -30
- package/dist/Tools.js +1 -30
- package/dist/ToolsFilled.js +1 -30
- package/dist/TrackingNumber.js +1 -30
- package/dist/Transactions.js +1 -30
- package/dist/TransferIn.js +1 -30
- package/dist/TransferOut.js +1 -30
- package/dist/Transit.js +1 -30
- package/dist/Truck.js +1 -30
- package/dist/TrustedCompany.js +1 -30
- package/dist/TrustedIndividual.js +1 -30
- package/dist/Twitter.js +1 -30
- package/dist/Unfavourite.js +1 -30
- package/dist/Unfreeze.js +1 -30
- package/dist/Unlink.js +1 -30
- package/dist/Unlock.js +1 -30
- package/dist/Unsplash.js +1 -30
- package/dist/Upgrade.js +1 -30
- package/dist/Upload.js +1 -30
- package/dist/UploadCloud.js +1 -30
- package/dist/UsPosBackoffice.js +1 -30
- package/dist/UsPosBackofficeFilled.js +1 -30
- package/dist/Video.js +1 -30
- package/dist/View.js +1 -30
- package/dist/VirtualTerminal.js +1 -30
- package/dist/VirtualTerminalFilled.js +1 -30
- package/dist/Volume.js +1 -30
- package/dist/Wealth.js +1 -30
- package/dist/Webspace.js +1 -30
- package/dist/WeekView.js +1 -30
- package/dist/WhatsApp.js +1 -30
- package/dist/Wifi.js +1 -30
- package/dist/WifiHigh.js +1 -30
- package/dist/WifiLow.js +1 -30
- package/dist/WifiMedium.js +1 -30
- package/dist/WifiNoIp.js +1 -30
- package/dist/WifiNoSignal.js +1 -30
- package/dist/WireTransfer.js +1 -30
- package/dist/Youtube.js +1 -30
- package/dist/ZipFile.js +1 -30
- package/dist/ZoomIn.js +1 -30
- package/dist/ZoomOut.js +1 -30
- package/dist/components/CardScheme/CardScheme.d.ts +3 -21
- package/dist/components/CardScheme/CardScheme.js +2 -18
- package/dist/components/Flag/Flag.d.ts +3 -2
- package/dist/components/Flag/Flag.js +4 -20
- package/dist/components/PaymentMethod/PaymentMethod.d.ts +3 -21
- package/dist/components/PaymentMethod/PaymentMethod.js +3 -17
- package/package.json +4 -4
package/dist/WifiLow.js
CHANGED
|
@@ -1,29 +1,3 @@
|
|
|
1
|
-
const _excluded = ["size"];
|
|
2
|
-
function _objectWithoutProperties(e, t) {
|
|
3
|
-
if (null == e) return {};
|
|
4
|
-
var o,
|
|
5
|
-
r,
|
|
6
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
7
|
-
if (Object.getOwnPropertySymbols) {
|
|
8
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
9
|
-
for (r = 0; r < n.length; r++)
|
|
10
|
-
(o = n[r]),
|
|
11
|
-
-1 === t.indexOf(o) &&
|
|
12
|
-
{}.propertyIsEnumerable.call(e, o) &&
|
|
13
|
-
(i[o] = e[o]);
|
|
14
|
-
}
|
|
15
|
-
return i;
|
|
16
|
-
}
|
|
17
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
18
|
-
if (null == r) return {};
|
|
19
|
-
var t = {};
|
|
20
|
-
for (var n in r)
|
|
21
|
-
if ({}.hasOwnProperty.call(r, n)) {
|
|
22
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
23
|
-
t[n] = r[n];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
}
|
|
27
1
|
import React from "react";
|
|
28
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
29
3
|
var WifiLow24 = function WifiLow24(props) {
|
|
@@ -50,10 +24,7 @@ var WifiLow24 = function WifiLow24(props) {
|
|
|
50
24
|
const WifiLowSizeMap = {
|
|
51
25
|
24: WifiLow24,
|
|
52
26
|
};
|
|
53
|
-
export function WifiLow(
|
|
54
|
-
let _ref$size = _ref.size,
|
|
55
|
-
size = _ref$size === void 0 ? "24" : _ref$size,
|
|
56
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
27
|
+
export function WifiLow({ size = "24", ...props }) {
|
|
57
28
|
const Icon = WifiLowSizeMap[size] || WifiLowSizeMap["24"];
|
|
58
29
|
if (
|
|
59
30
|
process.env.NODE_ENV !== "production" &&
|
package/dist/WifiMedium.js
CHANGED
|
@@ -1,29 +1,3 @@
|
|
|
1
|
-
const _excluded = ["size"];
|
|
2
|
-
function _objectWithoutProperties(e, t) {
|
|
3
|
-
if (null == e) return {};
|
|
4
|
-
var o,
|
|
5
|
-
r,
|
|
6
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
7
|
-
if (Object.getOwnPropertySymbols) {
|
|
8
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
9
|
-
for (r = 0; r < n.length; r++)
|
|
10
|
-
(o = n[r]),
|
|
11
|
-
-1 === t.indexOf(o) &&
|
|
12
|
-
{}.propertyIsEnumerable.call(e, o) &&
|
|
13
|
-
(i[o] = e[o]);
|
|
14
|
-
}
|
|
15
|
-
return i;
|
|
16
|
-
}
|
|
17
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
18
|
-
if (null == r) return {};
|
|
19
|
-
var t = {};
|
|
20
|
-
for (var n in r)
|
|
21
|
-
if ({}.hasOwnProperty.call(r, n)) {
|
|
22
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
23
|
-
t[n] = r[n];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
}
|
|
27
1
|
import React from "react";
|
|
28
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
29
3
|
var WifiMedium24 = function WifiMedium24(props) {
|
|
@@ -50,10 +24,7 @@ var WifiMedium24 = function WifiMedium24(props) {
|
|
|
50
24
|
const WifiMediumSizeMap = {
|
|
51
25
|
24: WifiMedium24,
|
|
52
26
|
};
|
|
53
|
-
export function WifiMedium(
|
|
54
|
-
let _ref$size = _ref.size,
|
|
55
|
-
size = _ref$size === void 0 ? "24" : _ref$size,
|
|
56
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
27
|
+
export function WifiMedium({ size = "24", ...props }) {
|
|
57
28
|
const Icon = WifiMediumSizeMap[size] || WifiMediumSizeMap["24"];
|
|
58
29
|
if (
|
|
59
30
|
process.env.NODE_ENV !== "production" &&
|
package/dist/WifiNoIp.js
CHANGED
|
@@ -1,29 +1,3 @@
|
|
|
1
|
-
const _excluded = ["size"];
|
|
2
|
-
function _objectWithoutProperties(e, t) {
|
|
3
|
-
if (null == e) return {};
|
|
4
|
-
var o,
|
|
5
|
-
r,
|
|
6
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
7
|
-
if (Object.getOwnPropertySymbols) {
|
|
8
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
9
|
-
for (r = 0; r < n.length; r++)
|
|
10
|
-
(o = n[r]),
|
|
11
|
-
-1 === t.indexOf(o) &&
|
|
12
|
-
{}.propertyIsEnumerable.call(e, o) &&
|
|
13
|
-
(i[o] = e[o]);
|
|
14
|
-
}
|
|
15
|
-
return i;
|
|
16
|
-
}
|
|
17
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
18
|
-
if (null == r) return {};
|
|
19
|
-
var t = {};
|
|
20
|
-
for (var n in r)
|
|
21
|
-
if ({}.hasOwnProperty.call(r, n)) {
|
|
22
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
23
|
-
t[n] = r[n];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
}
|
|
27
1
|
import React from "react";
|
|
28
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
29
3
|
var WifiNoIp24 = function WifiNoIp24(props) {
|
|
@@ -45,10 +19,7 @@ var WifiNoIp24 = function WifiNoIp24(props) {
|
|
|
45
19
|
const WifiNoIpSizeMap = {
|
|
46
20
|
24: WifiNoIp24,
|
|
47
21
|
};
|
|
48
|
-
export function WifiNoIp(
|
|
49
|
-
let _ref$size = _ref.size,
|
|
50
|
-
size = _ref$size === void 0 ? "24" : _ref$size,
|
|
51
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
22
|
+
export function WifiNoIp({ size = "24", ...props }) {
|
|
52
23
|
const Icon = WifiNoIpSizeMap[size] || WifiNoIpSizeMap["24"];
|
|
53
24
|
if (
|
|
54
25
|
process.env.NODE_ENV !== "production" &&
|
package/dist/WifiNoSignal.js
CHANGED
|
@@ -1,29 +1,3 @@
|
|
|
1
|
-
const _excluded = ["size"];
|
|
2
|
-
function _objectWithoutProperties(e, t) {
|
|
3
|
-
if (null == e) return {};
|
|
4
|
-
var o,
|
|
5
|
-
r,
|
|
6
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
7
|
-
if (Object.getOwnPropertySymbols) {
|
|
8
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
9
|
-
for (r = 0; r < n.length; r++)
|
|
10
|
-
(o = n[r]),
|
|
11
|
-
-1 === t.indexOf(o) &&
|
|
12
|
-
{}.propertyIsEnumerable.call(e, o) &&
|
|
13
|
-
(i[o] = e[o]);
|
|
14
|
-
}
|
|
15
|
-
return i;
|
|
16
|
-
}
|
|
17
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
18
|
-
if (null == r) return {};
|
|
19
|
-
var t = {};
|
|
20
|
-
for (var n in r)
|
|
21
|
-
if ({}.hasOwnProperty.call(r, n)) {
|
|
22
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
23
|
-
t[n] = r[n];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
}
|
|
27
1
|
import React from "react";
|
|
28
2
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
29
3
|
var WifiNoSignal24 = function WifiNoSignal24(props) {
|
|
@@ -60,10 +34,7 @@ var WifiNoSignal24 = function WifiNoSignal24(props) {
|
|
|
60
34
|
const WifiNoSignalSizeMap = {
|
|
61
35
|
24: WifiNoSignal24,
|
|
62
36
|
};
|
|
63
|
-
export function WifiNoSignal(
|
|
64
|
-
let _ref$size = _ref.size,
|
|
65
|
-
size = _ref$size === void 0 ? "24" : _ref$size,
|
|
66
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
37
|
+
export function WifiNoSignal({ size = "24", ...props }) {
|
|
67
38
|
const Icon = WifiNoSignalSizeMap[size] || WifiNoSignalSizeMap["24"];
|
|
68
39
|
if (
|
|
69
40
|
process.env.NODE_ENV !== "production" &&
|
package/dist/WireTransfer.js
CHANGED
|
@@ -1,29 +1,3 @@
|
|
|
1
|
-
const _excluded = ["size"];
|
|
2
|
-
function _objectWithoutProperties(e, t) {
|
|
3
|
-
if (null == e) return {};
|
|
4
|
-
var o,
|
|
5
|
-
r,
|
|
6
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
7
|
-
if (Object.getOwnPropertySymbols) {
|
|
8
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
9
|
-
for (r = 0; r < n.length; r++)
|
|
10
|
-
(o = n[r]),
|
|
11
|
-
-1 === t.indexOf(o) &&
|
|
12
|
-
{}.propertyIsEnumerable.call(e, o) &&
|
|
13
|
-
(i[o] = e[o]);
|
|
14
|
-
}
|
|
15
|
-
return i;
|
|
16
|
-
}
|
|
17
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
18
|
-
if (null == r) return {};
|
|
19
|
-
var t = {};
|
|
20
|
-
for (var n in r)
|
|
21
|
-
if ({}.hasOwnProperty.call(r, n)) {
|
|
22
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
23
|
-
t[n] = r[n];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
}
|
|
27
1
|
import React from "react";
|
|
28
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
29
3
|
var WireTransfer24 = function WireTransfer24(props) {
|
|
@@ -43,10 +17,7 @@ var WireTransfer24 = function WireTransfer24(props) {
|
|
|
43
17
|
const WireTransferSizeMap = {
|
|
44
18
|
24: WireTransfer24,
|
|
45
19
|
};
|
|
46
|
-
export function WireTransfer(
|
|
47
|
-
let _ref$size = _ref.size,
|
|
48
|
-
size = _ref$size === void 0 ? "24" : _ref$size,
|
|
49
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
+
export function WireTransfer({ size = "24", ...props }) {
|
|
50
21
|
const Icon = WireTransferSizeMap[size] || WireTransferSizeMap["24"];
|
|
51
22
|
if (
|
|
52
23
|
process.env.NODE_ENV !== "production" &&
|
package/dist/Youtube.js
CHANGED
|
@@ -1,29 +1,3 @@
|
|
|
1
|
-
const _excluded = ["size"];
|
|
2
|
-
function _objectWithoutProperties(e, t) {
|
|
3
|
-
if (null == e) return {};
|
|
4
|
-
var o,
|
|
5
|
-
r,
|
|
6
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
7
|
-
if (Object.getOwnPropertySymbols) {
|
|
8
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
9
|
-
for (r = 0; r < n.length; r++)
|
|
10
|
-
(o = n[r]),
|
|
11
|
-
-1 === t.indexOf(o) &&
|
|
12
|
-
{}.propertyIsEnumerable.call(e, o) &&
|
|
13
|
-
(i[o] = e[o]);
|
|
14
|
-
}
|
|
15
|
-
return i;
|
|
16
|
-
}
|
|
17
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
18
|
-
if (null == r) return {};
|
|
19
|
-
var t = {};
|
|
20
|
-
for (var n in r)
|
|
21
|
-
if ({}.hasOwnProperty.call(r, n)) {
|
|
22
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
23
|
-
t[n] = r[n];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
}
|
|
27
1
|
import React from "react";
|
|
28
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
29
3
|
var Youtube24 = function Youtube24(props) {
|
|
@@ -43,10 +17,7 @@ var Youtube24 = function Youtube24(props) {
|
|
|
43
17
|
const YoutubeSizeMap = {
|
|
44
18
|
24: Youtube24,
|
|
45
19
|
};
|
|
46
|
-
export function Youtube(
|
|
47
|
-
let _ref$size = _ref.size,
|
|
48
|
-
size = _ref$size === void 0 ? "24" : _ref$size,
|
|
49
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
+
export function Youtube({ size = "24", ...props }) {
|
|
50
21
|
const Icon = YoutubeSizeMap[size] || YoutubeSizeMap["24"];
|
|
51
22
|
if (
|
|
52
23
|
process.env.NODE_ENV !== "production" &&
|
package/dist/ZipFile.js
CHANGED
|
@@ -1,29 +1,3 @@
|
|
|
1
|
-
const _excluded = ["size"];
|
|
2
|
-
function _objectWithoutProperties(e, t) {
|
|
3
|
-
if (null == e) return {};
|
|
4
|
-
var o,
|
|
5
|
-
r,
|
|
6
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
7
|
-
if (Object.getOwnPropertySymbols) {
|
|
8
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
9
|
-
for (r = 0; r < n.length; r++)
|
|
10
|
-
(o = n[r]),
|
|
11
|
-
-1 === t.indexOf(o) &&
|
|
12
|
-
{}.propertyIsEnumerable.call(e, o) &&
|
|
13
|
-
(i[o] = e[o]);
|
|
14
|
-
}
|
|
15
|
-
return i;
|
|
16
|
-
}
|
|
17
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
18
|
-
if (null == r) return {};
|
|
19
|
-
var t = {};
|
|
20
|
-
for (var n in r)
|
|
21
|
-
if ({}.hasOwnProperty.call(r, n)) {
|
|
22
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
23
|
-
t[n] = r[n];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
}
|
|
27
1
|
import React from "react";
|
|
28
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
29
3
|
var ZipFile24 = function ZipFile24(props) {
|
|
@@ -43,10 +17,7 @@ var ZipFile24 = function ZipFile24(props) {
|
|
|
43
17
|
const ZipFileSizeMap = {
|
|
44
18
|
24: ZipFile24,
|
|
45
19
|
};
|
|
46
|
-
export function ZipFile(
|
|
47
|
-
let _ref$size = _ref.size,
|
|
48
|
-
size = _ref$size === void 0 ? "24" : _ref$size,
|
|
49
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
+
export function ZipFile({ size = "24", ...props }) {
|
|
50
21
|
const Icon = ZipFileSizeMap[size] || ZipFileSizeMap["24"];
|
|
51
22
|
if (
|
|
52
23
|
process.env.NODE_ENV !== "production" &&
|
package/dist/ZoomIn.js
CHANGED
|
@@ -1,29 +1,3 @@
|
|
|
1
|
-
const _excluded = ["size"];
|
|
2
|
-
function _objectWithoutProperties(e, t) {
|
|
3
|
-
if (null == e) return {};
|
|
4
|
-
var o,
|
|
5
|
-
r,
|
|
6
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
7
|
-
if (Object.getOwnPropertySymbols) {
|
|
8
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
9
|
-
for (r = 0; r < n.length; r++)
|
|
10
|
-
(o = n[r]),
|
|
11
|
-
-1 === t.indexOf(o) &&
|
|
12
|
-
{}.propertyIsEnumerable.call(e, o) &&
|
|
13
|
-
(i[o] = e[o]);
|
|
14
|
-
}
|
|
15
|
-
return i;
|
|
16
|
-
}
|
|
17
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
18
|
-
if (null == r) return {};
|
|
19
|
-
var t = {};
|
|
20
|
-
for (var n in r)
|
|
21
|
-
if ({}.hasOwnProperty.call(r, n)) {
|
|
22
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
23
|
-
t[n] = r[n];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
}
|
|
27
1
|
import React from "react";
|
|
28
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
29
3
|
var ZoomIn24 = function ZoomIn24(props) {
|
|
@@ -43,10 +17,7 @@ var ZoomIn24 = function ZoomIn24(props) {
|
|
|
43
17
|
const ZoomInSizeMap = {
|
|
44
18
|
24: ZoomIn24,
|
|
45
19
|
};
|
|
46
|
-
export function ZoomIn(
|
|
47
|
-
let _ref$size = _ref.size,
|
|
48
|
-
size = _ref$size === void 0 ? "24" : _ref$size,
|
|
49
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
+
export function ZoomIn({ size = "24", ...props }) {
|
|
50
21
|
const Icon = ZoomInSizeMap[size] || ZoomInSizeMap["24"];
|
|
51
22
|
if (
|
|
52
23
|
process.env.NODE_ENV !== "production" &&
|
package/dist/ZoomOut.js
CHANGED
|
@@ -1,29 +1,3 @@
|
|
|
1
|
-
const _excluded = ["size"];
|
|
2
|
-
function _objectWithoutProperties(e, t) {
|
|
3
|
-
if (null == e) return {};
|
|
4
|
-
var o,
|
|
5
|
-
r,
|
|
6
|
-
i = _objectWithoutPropertiesLoose(e, t);
|
|
7
|
-
if (Object.getOwnPropertySymbols) {
|
|
8
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
9
|
-
for (r = 0; r < n.length; r++)
|
|
10
|
-
(o = n[r]),
|
|
11
|
-
-1 === t.indexOf(o) &&
|
|
12
|
-
{}.propertyIsEnumerable.call(e, o) &&
|
|
13
|
-
(i[o] = e[o]);
|
|
14
|
-
}
|
|
15
|
-
return i;
|
|
16
|
-
}
|
|
17
|
-
function _objectWithoutPropertiesLoose(r, e) {
|
|
18
|
-
if (null == r) return {};
|
|
19
|
-
var t = {};
|
|
20
|
-
for (var n in r)
|
|
21
|
-
if ({}.hasOwnProperty.call(r, n)) {
|
|
22
|
-
if (-1 !== e.indexOf(n)) continue;
|
|
23
|
-
t[n] = r[n];
|
|
24
|
-
}
|
|
25
|
-
return t;
|
|
26
|
-
}
|
|
27
1
|
import React from "react";
|
|
28
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
29
3
|
var ZoomOut24 = function ZoomOut24(props) {
|
|
@@ -43,10 +17,7 @@ var ZoomOut24 = function ZoomOut24(props) {
|
|
|
43
17
|
const ZoomOutSizeMap = {
|
|
44
18
|
24: ZoomOut24,
|
|
45
19
|
};
|
|
46
|
-
export function ZoomOut(
|
|
47
|
-
let _ref$size = _ref.size,
|
|
48
|
-
size = _ref$size === void 0 ? "24" : _ref$size,
|
|
49
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
20
|
+
export function ZoomOut({ size = "24", ...props }) {
|
|
50
21
|
const Icon = ZoomOutSizeMap[size] || ZoomOutSizeMap["24"];
|
|
51
22
|
if (
|
|
52
23
|
process.env.NODE_ENV !== "production" &&
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* See the License for the specific language governing permissions and
|
|
13
13
|
* limitations under the License.
|
|
14
14
|
*/
|
|
15
|
-
import {
|
|
15
|
+
import type { HTMLAttributes, Ref } from 'react';
|
|
16
16
|
import type { CARD_SCHEMES } from './constants.js';
|
|
17
17
|
type CardSchemeName = (typeof CARD_SCHEMES)[number];
|
|
18
18
|
export type CardSchemeProps = HTMLAttributes<HTMLImageElement> & {
|
|
@@ -34,28 +34,10 @@ export type CardSchemeProps = HTMLAttributes<HTMLImageElement> & {
|
|
|
34
34
|
* Additional class name to apply to the image.
|
|
35
35
|
*/
|
|
36
36
|
className?: string;
|
|
37
|
+
ref?: Ref<HTMLImageElement>;
|
|
37
38
|
};
|
|
38
39
|
/**
|
|
39
40
|
* Renders the logo of a card scheme as an image, loaded from a URL.
|
|
40
41
|
*/
|
|
41
|
-
export declare
|
|
42
|
-
/**
|
|
43
|
-
* The name of the card scheme.
|
|
44
|
-
*/
|
|
45
|
-
name: CardSchemeName;
|
|
46
|
-
/**
|
|
47
|
-
* The alt text for the card scheme logo. Pass an empty string to hide
|
|
48
|
-
* purely decorative logos from assistive technology.
|
|
49
|
-
*/
|
|
50
|
-
alt: string;
|
|
51
|
-
/**
|
|
52
|
-
* Choose from 3 sizes.
|
|
53
|
-
* @default m
|
|
54
|
-
*/
|
|
55
|
-
size?: "s" | "m" | "l";
|
|
56
|
-
/**
|
|
57
|
-
* Additional class name to apply to the image.
|
|
58
|
-
*/
|
|
59
|
-
className?: string;
|
|
60
|
-
} & import("react").RefAttributes<HTMLImageElement>>;
|
|
42
|
+
export declare function CardScheme({ name, alt, style, size, ref, ...props }: CardSchemeProps): import("react").JSX.Element;
|
|
61
43
|
export {};
|
|
@@ -1,30 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright 2026, SumUp Ltd.
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { forwardRef } from 'react';
|
|
17
2
|
import { getIconURL } from '../../helpers.js';
|
|
18
3
|
import { ICON_SIZES } from '../../icon-sizes.js';
|
|
19
4
|
/**
|
|
20
5
|
* Renders the logo of a card scheme as an image, loaded from a URL.
|
|
21
6
|
*/
|
|
22
|
-
export
|
|
7
|
+
export function CardScheme({ name, alt, style, size = 'm', ref, ...props }) {
|
|
23
8
|
const sizeValue = ICON_SIZES[size];
|
|
24
9
|
return (_jsx("img", { ref: ref, style: {
|
|
25
10
|
width: sizeValue,
|
|
26
11
|
height: `calc(${sizeValue} * 3 / 4)`,
|
|
27
12
|
...style,
|
|
28
13
|
}, src: getIconURL(name, '32'), ...props, alt: alt }));
|
|
29
|
-
}
|
|
30
|
-
CardScheme.displayName = 'CardScheme';
|
|
14
|
+
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* See the License for the specific language governing permissions and
|
|
13
13
|
* limitations under the License.
|
|
14
14
|
*/
|
|
15
|
-
import {
|
|
15
|
+
import type { HTMLAttributes, Ref } from 'react';
|
|
16
16
|
import type { FLAGS } from './constants.js';
|
|
17
17
|
type CountryCode = (typeof FLAGS)[number];
|
|
18
18
|
type WithSize = {
|
|
@@ -58,9 +58,10 @@ export type FlagProps = HTMLAttributes<HTMLImageElement> & {
|
|
|
58
58
|
* Additional class name to apply to the flag's inner image.
|
|
59
59
|
*/
|
|
60
60
|
imageClassName?: string;
|
|
61
|
+
ref?: Ref<HTMLImageElement>;
|
|
61
62
|
} & (WithSize | WithHeightWidth);
|
|
62
63
|
/**
|
|
63
64
|
* Renders an SVG icon of a flag. Flags are sourced from: https://flagicons.lipis.dev/
|
|
64
65
|
*/
|
|
65
|
-
export declare
|
|
66
|
+
export declare function Flag({ countryCode, alt, className, imageClassName, style, size, width, height, ref, ...props }: FlagProps): import("react").JSX.Element;
|
|
66
67
|
export {};
|
|
@@ -1,19 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright 2026, SumUp Ltd.
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { forwardRef } from 'react';
|
|
17
2
|
import { getIconURL } from '../../helpers.js';
|
|
18
3
|
import { ICON_SIZES } from '../../icon-sizes.js';
|
|
19
4
|
import { deprecate } from '../../logger.js';
|
|
@@ -34,14 +19,14 @@ const IMAGE_STYLE = {
|
|
|
34
19
|
/**
|
|
35
20
|
* Renders an SVG icon of a flag. Flags are sourced from: https://flagicons.lipis.dev/
|
|
36
21
|
*/
|
|
37
|
-
export
|
|
22
|
+
export function Flag({ countryCode, alt, className, imageClassName, style, size, width, height, ref, ...props }) {
|
|
38
23
|
const flagName = `flag_${countryCode.toLowerCase()}`;
|
|
39
24
|
if (process.env.NODE_ENV !== 'production' && (width || height)) {
|
|
40
25
|
deprecate('Flag', 'The `width` and `height` props are deprecated. Use the `size` prop instead.');
|
|
41
26
|
}
|
|
42
27
|
if (size) {
|
|
43
28
|
const sizeValue = ICON_SIZES[size];
|
|
44
|
-
return (_jsx("div", { className: className, style: WRAPPER_STYLE, children: _jsx("img", {
|
|
29
|
+
return (_jsx("div", { className: className, style: WRAPPER_STYLE, children: _jsx("img", { className: imageClassName, style: {
|
|
45
30
|
...IMAGE_STYLE,
|
|
46
31
|
width: sizeValue,
|
|
47
32
|
height: `calc(${sizeValue} * 3 / 4)`,
|
|
@@ -59,6 +44,5 @@ export const Flag = forwardRef(({ countryCode, alt, className, imageClassName, s
|
|
|
59
44
|
dimensions.width = width;
|
|
60
45
|
dimensions.height = width / ASPECT_RATIO;
|
|
61
46
|
}
|
|
62
|
-
return (_jsx("div", { className: className, style: WRAPPER_STYLE, children: _jsx("img", { ref: ref, className: imageClassName, style: { ...IMAGE_STYLE, ...style }, height: `${dimensions.height}px`, width: `${dimensions.width}px`, src: getIconURL(flagName, '480'),
|
|
63
|
-
}
|
|
64
|
-
Flag.displayName = 'Flag';
|
|
47
|
+
return (_jsx("div", { className: className, style: WRAPPER_STYLE, children: _jsx("img", { ref: ref, className: imageClassName, style: { ...IMAGE_STYLE, ...style }, height: `${dimensions.height}px`, width: `${dimensions.width}px`, src: getIconURL(flagName, '480'), alt: alt, ...props }) }));
|
|
48
|
+
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* See the License for the specific language governing permissions and
|
|
13
13
|
* limitations under the License.
|
|
14
14
|
*/
|
|
15
|
-
import {
|
|
15
|
+
import type { HTMLAttributes, Ref } from 'react';
|
|
16
16
|
import type { PAYMENT_METHODS } from './constants.js';
|
|
17
17
|
type PaymentMethodName = (typeof PAYMENT_METHODS)[number];
|
|
18
18
|
export type PaymentMethodProps = HTMLAttributes<HTMLImageElement> & {
|
|
@@ -34,28 +34,10 @@ export type PaymentMethodProps = HTMLAttributes<HTMLImageElement> & {
|
|
|
34
34
|
* Additional class name to apply to the image.
|
|
35
35
|
*/
|
|
36
36
|
className?: string;
|
|
37
|
+
ref?: Ref<HTMLImageElement>;
|
|
37
38
|
};
|
|
38
39
|
/**
|
|
39
40
|
* Renders the logo of a payment method as an image, loaded from a URL.
|
|
40
41
|
*/
|
|
41
|
-
export declare
|
|
42
|
-
/**
|
|
43
|
-
* The name of the payment method.
|
|
44
|
-
*/
|
|
45
|
-
name: PaymentMethodName;
|
|
46
|
-
/**
|
|
47
|
-
* The alt text for the payment method logo. Pass an empty string to hide
|
|
48
|
-
* purely decorative logos from assistive technology.
|
|
49
|
-
*/
|
|
50
|
-
alt: string;
|
|
51
|
-
/**
|
|
52
|
-
* Choose from 3 sizes.
|
|
53
|
-
* @default m
|
|
54
|
-
*/
|
|
55
|
-
size?: "s" | "m" | "l";
|
|
56
|
-
/**
|
|
57
|
-
* Additional class name to apply to the image.
|
|
58
|
-
*/
|
|
59
|
-
className?: string;
|
|
60
|
-
} & import("react").RefAttributes<HTMLImageElement>>;
|
|
42
|
+
export declare function PaymentMethod({ name, alt, style, size, ref, ...props }: PaymentMethodProps): import("react").JSX.Element;
|
|
61
43
|
export {};
|
|
@@ -1,23 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
/**
|
|
3
|
-
* Copyright 2026, SumUp Ltd.
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { forwardRef } from 'react';
|
|
17
2
|
import { getIconURL } from '../../helpers.js';
|
|
18
3
|
import { ICON_SIZES } from '../../icon-sizes.js';
|
|
19
4
|
/**
|
|
20
5
|
* Renders the logo of a payment method as an image, loaded from a URL.
|
|
21
6
|
*/
|
|
22
|
-
export
|
|
23
|
-
|
|
7
|
+
export function PaymentMethod({ name, alt, style, size = 'm', ref, ...props }) {
|
|
8
|
+
return (_jsx("img", { ref: ref, style: { height: ICON_SIZES[size], width: 'auto', ...style }, src: getIconURL(name, '24'), alt: alt, ...props }));
|
|
9
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sumup-oss/icons",
|
|
3
|
-
"version": "7.1
|
|
3
|
+
"version": "7.2.1",
|
|
4
4
|
"description": "A collection of icons by SumUp",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"prepublish": "npm run build"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@babel/core": "^
|
|
42
|
-
"@babel/preset-env": "^
|
|
43
|
-
"@babel/preset-react": "^
|
|
41
|
+
"@babel/core": "^8.0.1",
|
|
42
|
+
"@babel/preset-env": "^8.0.2",
|
|
43
|
+
"@babel/preset-react": "^8.0.1",
|
|
44
44
|
"@biomejs/js-api": "^6.0.0",
|
|
45
45
|
"@testing-library/jest-dom": "^7.0.1",
|
|
46
46
|
"@testing-library/react": "^16.3.3",
|