@sumup-oss/icons 6.12.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,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 { CARD_SCHEMES } from './constants.js';
17
+ type CardSchemeName = (typeof CARD_SCHEMES)[number];
18
+ export type CardSchemeProps = HTMLAttributes<HTMLImageElement> & {
19
+ /**
20
+ * The name of the card scheme.
21
+ */
22
+ name: CardSchemeName;
23
+ /**
24
+ * The alt text for the card scheme 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 card scheme as an image, loaded from a URL.
40
+ */
41
+ export declare const CardScheme: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLImageElement> & {
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>>;
61
+ export {};
@@ -0,0 +1,30 @@
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 card scheme as an image, loaded from a URL.
21
+ */
22
+ export const CardScheme = forwardRef(({ name, alt, style, size = 'm', ...props }, ref) => {
23
+ const sizeValue = ICON_SIZES[size];
24
+ return (_jsx("img", { ref: ref, style: {
25
+ width: sizeValue,
26
+ height: `calc(${sizeValue} * 3 / 4)`,
27
+ ...style,
28
+ }, src: getIconURL(name, '32'), ...props, alt: alt }));
29
+ });
30
+ CardScheme.displayName = 'CardScheme';
@@ -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 CARD_SCHEMES: readonly ["alelo", "alternative_payment_method", "american_express", "apple_pay", "bancomat", "bancontact", "boleto", "card_unknown", "conecs", "diners_club", "discover", "eftpos", "elo", "elv", "girocard", "google_pay", "hipercard", "ideal", "interac", "jcb", "klarna", "maestro", "mastercard", "pay_pal", "pix", "pluxee", "sodexo", "sumup_card", "sumup_pay", "sumup_scheme", "swile", "ticket", "union_pay", "visa", "visa_electron", "vpay", "vr"];
@@ -0,0 +1,44 @@
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 CARD_SCHEMES = [
7
+ "alelo",
8
+ "alternative_payment_method",
9
+ "american_express",
10
+ "apple_pay",
11
+ "bancomat",
12
+ "bancontact",
13
+ "boleto",
14
+ "card_unknown",
15
+ "conecs",
16
+ "diners_club",
17
+ "discover",
18
+ "eftpos",
19
+ "elo",
20
+ "elv",
21
+ "girocard",
22
+ "google_pay",
23
+ "hipercard",
24
+ "ideal",
25
+ "interac",
26
+ "jcb",
27
+ "klarna",
28
+ "maestro",
29
+ "mastercard",
30
+ "pay_pal",
31
+ "pix",
32
+ "pluxee",
33
+ "sodexo",
34
+ "sumup_card",
35
+ "sumup_pay",
36
+ "sumup_scheme",
37
+ "swile",
38
+ "ticket",
39
+ "union_pay",
40
+ "visa",
41
+ "visa_electron",
42
+ "vpay",
43
+ "vr",
44
+ ];
@@ -0,0 +1,66 @@
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 { FLAGS } from './constants.js';
17
+ type CountryCode = (typeof FLAGS)[number];
18
+ type WithSize = {
19
+ /**
20
+ * Choose from 3 sizes.
21
+ */
22
+ size?: 's' | 'm' | 'l';
23
+ width?: never;
24
+ height?: never;
25
+ };
26
+ type WithHeightWidth = {
27
+ /**
28
+ * The width of the flag image.
29
+ * @deprecated Use the `size` prop instead.
30
+ */
31
+ width?: number;
32
+ height?: never;
33
+ size?: never;
34
+ } | {
35
+ /**
36
+ * The height of the flag image.
37
+ * @deprecated Use the `size` prop instead.
38
+ */
39
+ height?: number;
40
+ width?: never;
41
+ size?: never;
42
+ };
43
+ export type FlagProps = HTMLAttributes<HTMLImageElement> & {
44
+ /**
45
+ * The code of the country flag to display, e.g. `'DE'`.
46
+ */
47
+ countryCode: CountryCode;
48
+ /**
49
+ * The alt text for the flag image. Pass an empty string to hide purely
50
+ * decorative flags from assistive technology.
51
+ */
52
+ alt: string;
53
+ /**
54
+ * Additional class name to apply to the flag wrapper.
55
+ */
56
+ className?: string;
57
+ /**
58
+ * Additional class name to apply to the flag's inner image.
59
+ */
60
+ imageClassName?: string;
61
+ } & (WithSize | WithHeightWidth);
62
+ /**
63
+ * Renders an SVG icon of a flag. Flags are sourced from: https://flagicons.lipis.dev/
64
+ */
65
+ export declare const Flag: import("react").ForwardRefExoticComponent<FlagProps & import("react").RefAttributes<HTMLImageElement>>;
66
+ export {};
@@ -0,0 +1,64 @@
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
+ import { deprecate } from '../../logger.js';
20
+ const ASPECT_RATIO = 4 / 3;
21
+ // Inline styles can't use an `@supports` feature query, so `aspect-ratio`
22
+ // is applied as a progressive enhancement with no fallback for browsers
23
+ // that don't support it.
24
+ const WRAPPER_STYLE = {
25
+ display: 'flex',
26
+ alignItems: 'center',
27
+ justifyContent: 'center',
28
+ aspectRatio: '1 / 1',
29
+ };
30
+ const IMAGE_STYLE = {
31
+ border: '0.5px solid #ccc',
32
+ borderRadius: '2px',
33
+ };
34
+ /**
35
+ * Renders an SVG icon of a flag. Flags are sourced from: https://flagicons.lipis.dev/
36
+ */
37
+ export const Flag = forwardRef(({ countryCode, alt, className, imageClassName, style, size, width, height, ...props }, ref) => {
38
+ const flagName = `flag_${countryCode.toLowerCase()}`;
39
+ if (process.env.NODE_ENV !== 'production' && (width || height)) {
40
+ deprecate('Flag', 'The `width` and `height` props are deprecated. Use the `size` prop instead.');
41
+ }
42
+ if (size) {
43
+ const sizeValue = ICON_SIZES[size];
44
+ return (_jsx("div", { className: className, style: WRAPPER_STYLE, children: _jsx("img", { ref: ref, className: imageClassName, style: {
45
+ ...IMAGE_STYLE,
46
+ width: sizeValue,
47
+ height: `calc(${sizeValue} * 3 / 4)`,
48
+ ...style,
49
+ }, src: getIconURL(flagName), ...props, alt: alt }) }));
50
+ }
51
+ // default dimensions
52
+ const dimensions = { width: 16, height: 12 };
53
+ // for a consistent aspect ratio
54
+ if (height) {
55
+ dimensions.height = height;
56
+ dimensions.width = height * ASPECT_RATIO;
57
+ }
58
+ if (width) {
59
+ dimensions.width = width;
60
+ dimensions.height = width / ASPECT_RATIO;
61
+ }
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), ...props, alt: alt }) }));
63
+ });
64
+ Flag.displayName = 'Flag';
@@ -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 FLAGS: readonly ["AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CP", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DG", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ES-CT", "ET", "EU", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "IC", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PC", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "UN", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "XK", "XX", "YE", "YT", "ZA", "ZM", "ZW"];
@@ -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
@@ -2479,3 +2479,7 @@ export function getIconURL<Name extends IconName>(
2479
2479
  name: Name,
2480
2480
  size?: Icons[Name],
2481
2481
  ): string;
2482
+
2483
+ export * from "./components/Flag/Flag.js";
2484
+ export * from "./components/PaymentMethod/PaymentMethod.js";
2485
+ export * from "./components/CardScheme/CardScheme.js";
package/dist/index.js CHANGED
@@ -411,3 +411,6 @@ export { Twitter } from "./Twitter.js";
411
411
  export { Unsplash } from "./Unsplash.js";
412
412
  export { WhatsApp } from "./WhatsApp.js";
413
413
  export { Youtube } from "./Youtube.js";
414
+ export * from "./components/Flag/Flag.js";
415
+ export * from "./components/PaymentMethod/PaymentMethod.js";
416
+ export * from "./components/CardScheme/CardScheme.js";
@@ -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
+ /**
16
+ * Always wrap in `process.env.NODE_ENV !== 'production'` to enable dead code
17
+ * elimination.
18
+ */
19
+ export declare function deprecate(componentName: string, message: string): void;
package/dist/logger.js ADDED
@@ -0,0 +1,27 @@
1
+ /* biome-ignore-all lint/suspicious/noConsole: It's okay in the logger */
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
+ const DEPRECATED = {};
17
+ /**
18
+ * Always wrap in `process.env.NODE_ENV !== 'production'` to enable dead code
19
+ * elimination.
20
+ */
21
+ export function deprecate(componentName, message) {
22
+ if (DEPRECATED[componentName]) {
23
+ return;
24
+ }
25
+ DEPRECATED[componentName] = true;
26
+ console.warn(new Error(`[${componentName}] ${message}`));
27
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sumup-oss/icons",
3
- "version": "6.12.0",
3
+ "version": "6.13.0",
4
4
  "description": "A collection of icons by SumUp",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -31,7 +31,7 @@
31
31
  "homepage": "https://github.com/sumup-oss/circuit-ui/tree/main/packages/icons/README.md",
32
32
  "scripts": {
33
33
  "start": "tsx watch ./scripts/build.ts",
34
- "build": "tsx ./scripts/build.ts",
34
+ "build": "tsx ./scripts/generate-constants.ts && tsc -p tsconfig.src.json && tsx ./scripts/build.ts",
35
35
  "test": "vitest",
36
36
  "lint": "foundry run eslint . --ext .ts,.tsx,.js,.jsx",
37
37
  "lint:fix": "npm run lint -- --fix",
@@ -42,8 +42,16 @@
42
42
  "@babel/preset-env": "^7.29.5",
43
43
  "@babel/preset-react": "^7.28.5",
44
44
  "@biomejs/js-api": "^6.0.0",
45
+ "@testing-library/jest-dom": "6.9.1",
46
+ "@testing-library/react": "^16.3.2",
45
47
  "@types/babel__core": "^7.20.5",
48
+ "@types/react": "^19.2.15",
49
+ "@types/react-dom": "^19.2.3",
46
50
  "fast-xml-parser": "^5.9.3",
51
+ "jest-axe": "^10.0.0",
52
+ "jsdom": "^29.0.2",
53
+ "react": "^19.2.6",
54
+ "react-dom": "^19.2.6",
47
55
  "tsx": "^4.22.3",
48
56
  "typescript": "^6.0.3",
49
57
  "vitest": "^4.1.5"