@sumup-oss/icons 6.11.0 → 6.13.0

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.
@@ -0,0 +1,265 @@
1
+ /**
2
+ * This file is auto-generated from manifest.json by `npm run build`.
3
+ * Do not edit it by hand, your changes will be overwritten.
4
+ * To add or remove an entry, edit manifest.json instead.
5
+ */
6
+ export const FLAGS = [
7
+ "AD",
8
+ "AE",
9
+ "AF",
10
+ "AG",
11
+ "AI",
12
+ "AL",
13
+ "AM",
14
+ "AO",
15
+ "AQ",
16
+ "AR",
17
+ "AS",
18
+ "AT",
19
+ "AU",
20
+ "AW",
21
+ "AX",
22
+ "AZ",
23
+ "BA",
24
+ "BB",
25
+ "BD",
26
+ "BE",
27
+ "BF",
28
+ "BG",
29
+ "BH",
30
+ "BI",
31
+ "BJ",
32
+ "BL",
33
+ "BM",
34
+ "BN",
35
+ "BO",
36
+ "BQ",
37
+ "BR",
38
+ "BS",
39
+ "BT",
40
+ "BV",
41
+ "BW",
42
+ "BY",
43
+ "BZ",
44
+ "CA",
45
+ "CC",
46
+ "CD",
47
+ "CF",
48
+ "CG",
49
+ "CH",
50
+ "CI",
51
+ "CK",
52
+ "CL",
53
+ "CM",
54
+ "CN",
55
+ "CO",
56
+ "CP",
57
+ "CR",
58
+ "CU",
59
+ "CV",
60
+ "CW",
61
+ "CX",
62
+ "CY",
63
+ "CZ",
64
+ "DE",
65
+ "DG",
66
+ "DJ",
67
+ "DK",
68
+ "DM",
69
+ "DO",
70
+ "DZ",
71
+ "EC",
72
+ "EE",
73
+ "EG",
74
+ "EH",
75
+ "ER",
76
+ "ES",
77
+ "ES-CT",
78
+ "ET",
79
+ "EU",
80
+ "FI",
81
+ "FJ",
82
+ "FK",
83
+ "FM",
84
+ "FO",
85
+ "FR",
86
+ "GA",
87
+ "GB",
88
+ "GD",
89
+ "GE",
90
+ "GF",
91
+ "GG",
92
+ "GH",
93
+ "GI",
94
+ "GL",
95
+ "GM",
96
+ "GN",
97
+ "GP",
98
+ "GQ",
99
+ "GR",
100
+ "GS",
101
+ "GT",
102
+ "GU",
103
+ "GW",
104
+ "GY",
105
+ "HK",
106
+ "HM",
107
+ "HN",
108
+ "HR",
109
+ "HT",
110
+ "HU",
111
+ "IC",
112
+ "ID",
113
+ "IE",
114
+ "IL",
115
+ "IM",
116
+ "IN",
117
+ "IO",
118
+ "IQ",
119
+ "IR",
120
+ "IS",
121
+ "IT",
122
+ "JE",
123
+ "JM",
124
+ "JO",
125
+ "JP",
126
+ "KE",
127
+ "KG",
128
+ "KH",
129
+ "KI",
130
+ "KM",
131
+ "KN",
132
+ "KP",
133
+ "KR",
134
+ "KW",
135
+ "KY",
136
+ "KZ",
137
+ "LA",
138
+ "LB",
139
+ "LC",
140
+ "LI",
141
+ "LK",
142
+ "LR",
143
+ "LS",
144
+ "LT",
145
+ "LU",
146
+ "LV",
147
+ "LY",
148
+ "MA",
149
+ "MC",
150
+ "MD",
151
+ "ME",
152
+ "MF",
153
+ "MG",
154
+ "MH",
155
+ "MK",
156
+ "ML",
157
+ "MM",
158
+ "MN",
159
+ "MO",
160
+ "MP",
161
+ "MQ",
162
+ "MR",
163
+ "MS",
164
+ "MT",
165
+ "MU",
166
+ "MV",
167
+ "MW",
168
+ "MX",
169
+ "MY",
170
+ "MZ",
171
+ "NA",
172
+ "NC",
173
+ "NE",
174
+ "NF",
175
+ "NG",
176
+ "NI",
177
+ "NL",
178
+ "NO",
179
+ "NP",
180
+ "NR",
181
+ "NU",
182
+ "NZ",
183
+ "OM",
184
+ "PA",
185
+ "PC",
186
+ "PE",
187
+ "PF",
188
+ "PG",
189
+ "PH",
190
+ "PK",
191
+ "PL",
192
+ "PM",
193
+ "PN",
194
+ "PR",
195
+ "PS",
196
+ "PT",
197
+ "PW",
198
+ "PY",
199
+ "QA",
200
+ "RE",
201
+ "RO",
202
+ "RS",
203
+ "RU",
204
+ "RW",
205
+ "SA",
206
+ "SB",
207
+ "SC",
208
+ "SD",
209
+ "SE",
210
+ "SG",
211
+ "SH",
212
+ "SI",
213
+ "SJ",
214
+ "SK",
215
+ "SL",
216
+ "SM",
217
+ "SN",
218
+ "SO",
219
+ "SR",
220
+ "SS",
221
+ "ST",
222
+ "SV",
223
+ "SX",
224
+ "SY",
225
+ "SZ",
226
+ "TC",
227
+ "TD",
228
+ "TF",
229
+ "TG",
230
+ "TH",
231
+ "TJ",
232
+ "TK",
233
+ "TL",
234
+ "TM",
235
+ "TN",
236
+ "TO",
237
+ "TR",
238
+ "TT",
239
+ "TV",
240
+ "TW",
241
+ "TZ",
242
+ "UA",
243
+ "UG",
244
+ "UM",
245
+ "UN",
246
+ "US",
247
+ "UY",
248
+ "UZ",
249
+ "VA",
250
+ "VC",
251
+ "VE",
252
+ "VG",
253
+ "VI",
254
+ "VN",
255
+ "VU",
256
+ "WF",
257
+ "WS",
258
+ "XK",
259
+ "XX",
260
+ "YE",
261
+ "YT",
262
+ "ZA",
263
+ "ZM",
264
+ "ZW",
265
+ ];
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Copyright 2026, SumUp Ltd.
3
+ * Licensed under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License.
5
+ * You may obtain a copy of the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS,
11
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ * See the License for the specific language governing permissions and
13
+ * limitations under the License.
14
+ */
15
+ import { type HTMLAttributes } from 'react';
16
+ import type { PAYMENT_METHODS } from './constants.js';
17
+ type PaymentMethodName = (typeof PAYMENT_METHODS)[number];
18
+ export type PaymentMethodProps = HTMLAttributes<HTMLImageElement> & {
19
+ /**
20
+ * The name of the payment method.
21
+ */
22
+ name: PaymentMethodName;
23
+ /**
24
+ * The alt text for the payment method logo. Pass an empty string to hide
25
+ * purely decorative logos from assistive technology.
26
+ */
27
+ alt: string;
28
+ /**
29
+ * Choose from 3 sizes.
30
+ * @default m
31
+ */
32
+ size?: 's' | 'm' | 'l';
33
+ /**
34
+ * Additional class name to apply to the image.
35
+ */
36
+ className?: string;
37
+ };
38
+ /**
39
+ * Renders the logo of a payment method as an image, loaded from a URL.
40
+ */
41
+ export declare const PaymentMethod: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLImageElement> & {
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>>;
61
+ export {};
@@ -0,0 +1,23 @@
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
+ import { getIconURL } from '../../helpers.js';
18
+ import { ICON_SIZES } from '../../icon-sizes.js';
19
+ /**
20
+ * Renders the logo of a payment method as an image, loaded from a URL.
21
+ */
22
+ export const PaymentMethod = forwardRef(({ name, alt, style, size = 'm', ...props }, ref) => (_jsx("img", { ref: ref, style: { height: ICON_SIZES[size], width: 'auto', ...style }, src: getIconURL(name, '24'), ...props, alt: alt })));
23
+ PaymentMethod.displayName = 'PaymentMethod';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file is auto-generated from manifest.json by `npm run build`.
3
+ * Do not edit it by hand, your changes will be overwritten.
4
+ * To add or remove an entry, edit manifest.json instead.
5
+ */
6
+ export declare const PAYMENT_METHODS: readonly ["alelo", "american_express", "apple_pay", "banco_estado", "bancontact", "bitcoin", "blik", "boleto", "conecs", "dankort", "diners_club", "discover", "ec", "eftpos", "elo", "elv", "eps", "faster_payments", "girocard", "giropay", "google_pay", "hiper", "hipercard", "ideal", "interac", "iris", "jcb", "klarna", "maestro", "mastercard", "mybank", "nfc_payment", "pay_pal", "pix_full", "post_finance", "przelewy24", "red_compra", "samsung_pay", "satispay", "sepa", "sodexo", "sofort", "split", "swile", "ticket", "twint", "union_pay", "visa", "visa_electron", "vpay", "vr"];
@@ -0,0 +1,58 @@
1
+ /**
2
+ * This file is auto-generated from manifest.json by `npm run build`.
3
+ * Do not edit it by hand, your changes will be overwritten.
4
+ * To add or remove an entry, edit manifest.json instead.
5
+ */
6
+ export const PAYMENT_METHODS = [
7
+ "alelo",
8
+ "american_express",
9
+ "apple_pay",
10
+ "banco_estado",
11
+ "bancontact",
12
+ "bitcoin",
13
+ "blik",
14
+ "boleto",
15
+ "conecs",
16
+ "dankort",
17
+ "diners_club",
18
+ "discover",
19
+ "ec",
20
+ "eftpos",
21
+ "elo",
22
+ "elv",
23
+ "eps",
24
+ "faster_payments",
25
+ "girocard",
26
+ "giropay",
27
+ "google_pay",
28
+ "hiper",
29
+ "hipercard",
30
+ "ideal",
31
+ "interac",
32
+ "iris",
33
+ "jcb",
34
+ "klarna",
35
+ "maestro",
36
+ "mastercard",
37
+ "mybank",
38
+ "nfc_payment",
39
+ "pay_pal",
40
+ "pix_full",
41
+ "post_finance",
42
+ "przelewy24",
43
+ "red_compra",
44
+ "samsung_pay",
45
+ "satispay",
46
+ "sepa",
47
+ "sodexo",
48
+ "sofort",
49
+ "split",
50
+ "swile",
51
+ "ticket",
52
+ "twint",
53
+ "union_pay",
54
+ "visa",
55
+ "visa_electron",
56
+ "vpay",
57
+ "vr",
58
+ ];
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Copyright 2026, SumUp Ltd.
3
+ * Licensed under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License.
5
+ * You may obtain a copy of the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS,
11
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ * See the License for the specific language governing permissions and
13
+ * limitations under the License.
14
+ */
15
+ export declare function getIconURL(name: string, size?: string): string;
package/dist/helpers.js CHANGED
@@ -1,8 +1,17 @@
1
+ /**
2
+ * Copyright 2026, SumUp Ltd.
3
+ * Licensed under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License.
5
+ * You may obtain a copy of the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS,
11
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ * See the License for the specific language governing permissions and
13
+ * limitations under the License.
14
+ */
1
15
  export function getIconURL(name, size) {
2
- return (
3
- "https://circuit.sumup.com/icons/v2/" +
4
- name +
5
- (size ? "_" + size : "") +
6
- ".svg"
7
- );
16
+ return `https://circuit.sumup.com/icons/v2/${name}${size ? `_${size}` : ''}.svg`;
8
17
  }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Copyright 2026, SumUp Ltd.
3
+ * Licensed under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License.
5
+ * You may obtain a copy of the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS,
11
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ * See the License for the specific language governing permissions and
13
+ * limitations under the License.
14
+ */
15
+ export declare const ICON_SIZES: Record<'s' | 'm' | 'l', string>;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Copyright 2026, SumUp Ltd.
3
+ * Licensed under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License.
5
+ * You may obtain a copy of the License at
6
+ *
7
+ * http://www.apache.org/licenses/LICENSE-2.0
8
+ *
9
+ * Unless required by applicable law or agreed to in writing, software
10
+ * distributed under the License is distributed on an "AS IS" BASIS,
11
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ * See the License for the specific language governing permissions and
13
+ * limitations under the License.
14
+ */
15
+ export const ICON_SIZES = {
16
+ s: 'var(--cui-icon-sizes-s)',
17
+ m: 'var(--cui-icon-sizes-m)',
18
+ l: 'var(--cui-icon-sizes-l)',
19
+ };
package/dist/index.d.ts CHANGED
@@ -691,8 +691,6 @@ declare const BatteryAlert: IconComponentType<"16" | "24">;
691
691
 
692
692
  declare const Briefcase: IconComponentType<"24">;
693
693
 
694
- declare const BrowserSecure: IconComponentType<"24">;
695
-
696
694
  declare const Cafe: IconComponentType<"24">;
697
695
 
698
696
  declare const Calendar: IconComponentType<"24">;
@@ -751,8 +749,6 @@ declare const Hospitality: IconComponentType<"24">;
751
749
 
752
750
  declare const Id: IconComponentType<"24">;
753
751
 
754
- declare const Key: IconComponentType<"24">;
755
-
756
752
  declare const Language: IconComponentType<"24">;
757
753
 
758
754
  declare const Legal: IconComponentType<"24">;
@@ -797,10 +793,6 @@ declare const ProfileFilled: IconComponentType<"24">;
797
793
 
798
794
  declare const Refunded: IconComponentType<"16" | "24">;
799
795
 
800
- declare const Secure: IconComponentType<"24">;
801
-
802
- declare const SecurePayments: IconComponentType<"24">;
803
-
804
796
  declare const Services: IconComponentType<"24">;
805
797
 
806
798
  declare const Settings: IconComponentType<"24">;
@@ -837,6 +829,24 @@ declare const Contractors: IconComponentType<"16" | "24">;
837
829
 
838
830
  declare const Contractor: IconComponentType<"16" | "24">;
839
831
 
832
+ declare const BrowserSecure: IconComponentType<"24">;
833
+
834
+ declare const CardSecurity: IconComponentType<"24">;
835
+
836
+ declare const Key: IconComponentType<"24">;
837
+
838
+ declare const Passkey: IconComponentType<"24">;
839
+
840
+ declare const Secure: IconComponentType<"24">;
841
+
842
+ declare const SecurePayments: IconComponentType<"24">;
843
+
844
+ declare const SecurityTimeSensitive: IconComponentType<"24">;
845
+
846
+ declare const TrustedCompany: IconComponentType<"24">;
847
+
848
+ declare const Unlock: IconComponentType<"24">;
849
+
840
850
  declare const ArrowDown: IconComponentType<"24">;
841
851
 
842
852
  declare const ArrowLeft: IconComponentType<"16" | "24">;
@@ -1010,8 +1020,6 @@ declare const AccountingFilled: IconComponentType<"24">;
1010
1020
 
1011
1021
  declare const Apps: IconComponentType<"24">;
1012
1022
 
1013
- declare const CardSecurity: IconComponentType<"24">;
1014
-
1015
1023
  declare const CashAdvance: IconComponentType<"24">;
1016
1024
 
1017
1025
  declare const CashAdvanceFilled: IconComponentType<"24">;
@@ -1416,7 +1424,6 @@ export {
1416
1424
  Battery,
1417
1425
  BatteryAlert,
1418
1426
  Briefcase,
1419
- BrowserSecure,
1420
1427
  Cafe,
1421
1428
  Calendar,
1422
1429
  Checkmark,
@@ -1440,7 +1447,6 @@ export {
1440
1447
  Health,
1441
1448
  Hospitality,
1442
1449
  Id,
1443
- Key,
1444
1450
  Language,
1445
1451
  Legal,
1446
1452
  Like,
@@ -1460,8 +1466,6 @@ export {
1460
1466
  Profile,
1461
1467
  ProfileFilled,
1462
1468
  Refunded,
1463
- Secure,
1464
- SecurePayments,
1465
1469
  Services,
1466
1470
  Settings,
1467
1471
  SettingsFilled,
@@ -1477,6 +1481,15 @@ export {
1477
1481
  Volume,
1478
1482
  Contractors,
1479
1483
  Contractor,
1484
+ BrowserSecure,
1485
+ CardSecurity,
1486
+ Key,
1487
+ Passkey,
1488
+ Secure,
1489
+ SecurePayments,
1490
+ SecurityTimeSensitive,
1491
+ TrustedCompany,
1492
+ Unlock,
1480
1493
  ArrowDown,
1481
1494
  ArrowLeft,
1482
1495
  ArrowRight,
@@ -1529,7 +1542,6 @@ export {
1529
1542
  Accounting,
1530
1543
  AccountingFilled,
1531
1544
  Apps,
1532
- CardSecurity,
1533
1545
  CashAdvance,
1534
1546
  CashAdvanceFilled,
1535
1547
  CashDrawer,
@@ -1827,7 +1839,6 @@ export type IconName =
1827
1839
  | "battery"
1828
1840
  | "battery_alert"
1829
1841
  | "briefcase"
1830
- | "browser_secure"
1831
1842
  | "cafe"
1832
1843
  | "calendar"
1833
1844
  | "checkmark"
@@ -1851,7 +1862,6 @@ export type IconName =
1851
1862
  | "health"
1852
1863
  | "hospitality"
1853
1864
  | "id"
1854
- | "key"
1855
1865
  | "language"
1856
1866
  | "legal"
1857
1867
  | "like"
@@ -1871,8 +1881,6 @@ export type IconName =
1871
1881
  | "profile"
1872
1882
  | "profile_filled"
1873
1883
  | "refunded"
1874
- | "secure"
1875
- | "secure_payments"
1876
1884
  | "services"
1877
1885
  | "settings"
1878
1886
  | "settings_filled"
@@ -1888,6 +1896,15 @@ export type IconName =
1888
1896
  | "volume"
1889
1897
  | "contractors"
1890
1898
  | "contractor"
1899
+ | "browser_secure"
1900
+ | "card_security"
1901
+ | "key"
1902
+ | "passkey"
1903
+ | "secure"
1904
+ | "secure_payments"
1905
+ | "security_time_sensitive"
1906
+ | "trusted_company"
1907
+ | "unlock"
1891
1908
  | "arrow_down"
1892
1909
  | "arrow_left"
1893
1910
  | "arrow_right"
@@ -1940,7 +1957,6 @@ export type IconName =
1940
1957
  | "accounting"
1941
1958
  | "accounting_filled"
1942
1959
  | "apps"
1943
- | "card_security"
1944
1960
  | "cash_advance"
1945
1961
  | "cash_advance_filled"
1946
1962
  | "cash_drawer"
@@ -2248,7 +2264,6 @@ type Icons = {
2248
2264
  battery: "16" | "24";
2249
2265
  battery_alert: "16" | "24";
2250
2266
  briefcase: "24";
2251
- browser_secure: "24";
2252
2267
  cafe: "24";
2253
2268
  calendar: "24";
2254
2269
  checkmark: "16" | "24";
@@ -2272,7 +2287,6 @@ type Icons = {
2272
2287
  health: "24";
2273
2288
  hospitality: "24";
2274
2289
  id: "24";
2275
- key: "24";
2276
2290
  language: "24";
2277
2291
  legal: "24";
2278
2292
  like: "24";
@@ -2292,8 +2306,6 @@ type Icons = {
2292
2306
  profile: "16" | "24";
2293
2307
  profile_filled: "24";
2294
2308
  refunded: "16" | "24";
2295
- secure: "24";
2296
- secure_payments: "24";
2297
2309
  services: "24";
2298
2310
  settings: "24";
2299
2311
  settings_filled: "24";
@@ -2309,6 +2321,15 @@ type Icons = {
2309
2321
  volume: "24";
2310
2322
  contractors: "16" | "24";
2311
2323
  contractor: "16" | "24";
2324
+ browser_secure: "24";
2325
+ card_security: "24";
2326
+ key: "24";
2327
+ passkey: "24";
2328
+ secure: "24";
2329
+ secure_payments: "24";
2330
+ security_time_sensitive: "24";
2331
+ trusted_company: "24";
2332
+ unlock: "24";
2312
2333
  arrow_down: "24";
2313
2334
  arrow_left: "16" | "24";
2314
2335
  arrow_right: "16" | "24";
@@ -2361,7 +2382,6 @@ type Icons = {
2361
2382
  accounting: "24";
2362
2383
  accounting_filled: "24";
2363
2384
  apps: "24";
2364
- card_security: "24";
2365
2385
  cash_advance: "24";
2366
2386
  cash_advance_filled: "24";
2367
2387
  cash_drawer: "24";
@@ -2459,3 +2479,7 @@ export function getIconURL<Name extends IconName>(
2459
2479
  name: Name,
2460
2480
  size?: Icons[Name],
2461
2481
  ): string;
2482
+
2483
+ export * from "./components/Flag/Flag.js";
2484
+ export * from "./components/PaymentMethod/PaymentMethod.js";
2485
+ export * from "./components/CardScheme/CardScheme.js";