@sumup-oss/icons 6.12.0 → 6.14.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.
- package/dist/CalendarCoins.js +68 -0
- package/dist/components/CardScheme/CardScheme.d.ts +61 -0
- package/dist/components/CardScheme/CardScheme.js +30 -0
- package/dist/components/CardScheme/constants.d.ts +6 -0
- package/dist/components/CardScheme/constants.js +44 -0
- package/dist/components/Flag/Flag.d.ts +66 -0
- package/dist/components/Flag/Flag.js +64 -0
- package/dist/components/Flag/constants.d.ts +6 -0
- package/dist/components/Flag/constants.js +265 -0
- package/dist/components/PaymentMethod/PaymentMethod.d.ts +61 -0
- package/dist/components/PaymentMethod/PaymentMethod.js +23 -0
- package/dist/components/PaymentMethod/constants.d.ts +6 -0
- package/dist/components/PaymentMethod/constants.js +58 -0
- package/dist/helpers.d.ts +15 -0
- package/dist/helpers.js +15 -6
- package/dist/icon-sizes.d.ts +15 -0
- package/dist/icon-sizes.js +19 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +4 -0
- package/dist/logger.d.ts +19 -0
- package/dist/logger.js +27 -0
- package/manifest.json +5 -0
- package/package.json +11 -3
- package/web/v2/calendar_coins_24.svg +4 -0
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
import React from "react";
|
|
28
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
29
|
+
var CalendarCoins24 = function CalendarCoins24(props) {
|
|
30
|
+
return /*#__PURE__*/ _jsx("svg", {
|
|
31
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
32
|
+
width: "24",
|
|
33
|
+
height: "24",
|
|
34
|
+
fill: "none",
|
|
35
|
+
viewBox: "0 0 24 24",
|
|
36
|
+
...props,
|
|
37
|
+
children: /*#__PURE__*/ _jsx("path", {
|
|
38
|
+
fill: "currentColor",
|
|
39
|
+
d: "M17.539 12.923h.922a.923.923 0 0 1 0 1.846h-2.706a.4.4 0 0 0-.063.23.4.4 0 0 0 .063.232h1.783c.565 0 1.052.281 1.374.684.318.397.473.9.473 1.393 0 .492-.155.995-.473 1.392-.322.403-.809.684-1.373.684v.924h-1.847v-.924h-.923a.923.923 0 0 1 0-1.846h2.706a.4.4 0 0 0 .063-.23.4.4 0 0 0-.063-.231h-1.783c-.564 0-1.051-.282-1.373-.684A2.24 2.24 0 0 1 13.846 15c0-.492.155-.995.473-1.393.322-.402.809-.684 1.373-.684V12h1.846zm-3.11-11.538c.51 0 .923.413.923.923v.738h1.555c.684 0 1.34.274 1.822.759a2.6 2.6 0 0 1 .753 1.825v4.559a.923.923 0 0 1-1.846 0v-.312H4.616v7.385c0 .197.078.385.215.523a.72.72 0 0 0 .513.215h6.097a.923.923 0 0 1 0 1.846H5.344a2.57 2.57 0 0 1-1.822-.759 2.6 2.6 0 0 1-.753-1.825V5.63c0-.683.27-1.34.753-1.825a2.57 2.57 0 0 1 1.822-.76h1.555v-.737a.923.923 0 0 1 1.846 0v.738h4.761v-.738c0-.51.414-.923.923-.923M5.344 4.892a.72.72 0 0 0-.513.215.74.74 0 0 0-.216.523v2.4h13.02v-2.4a.74.74 0 0 0-.215-.523.73.73 0 0 0-.514-.215h-1.553v.738a.923.923 0 0 1-1.847 0v-.738H8.745v.738a.923.923 0 1 1-1.846 0v-.738z",
|
|
40
|
+
}),
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
const CalendarCoinsSizeMap = {
|
|
44
|
+
24: CalendarCoins24,
|
|
45
|
+
};
|
|
46
|
+
export function CalendarCoins(_ref) {
|
|
47
|
+
let _ref$size = _ref.size,
|
|
48
|
+
size = _ref$size === void 0 ? "24" : _ref$size,
|
|
49
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
50
|
+
const Icon = CalendarCoinsSizeMap[size] || CalendarCoinsSizeMap["24"];
|
|
51
|
+
if (
|
|
52
|
+
process.env.NODE_ENV !== "production" &&
|
|
53
|
+
process.env.NODE_ENV !== "test" &&
|
|
54
|
+
!CalendarCoinsSizeMap[size]
|
|
55
|
+
) {
|
|
56
|
+
console.warn(
|
|
57
|
+
new Error(
|
|
58
|
+
"The '".concat(
|
|
59
|
+
size,
|
|
60
|
+
"' size is not supported by the 'CalendarCoins' icon. Please use one of the available sizes: '24'.",
|
|
61
|
+
),
|
|
62
|
+
),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
return /*#__PURE__*/ _jsx(Icon, {
|
|
66
|
+
...props,
|
|
67
|
+
});
|
|
68
|
+
}
|
|
@@ -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
|
-
|
|
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
|
@@ -695,6 +695,8 @@ declare const Cafe: IconComponentType<"24">;
|
|
|
695
695
|
|
|
696
696
|
declare const Calendar: IconComponentType<"24">;
|
|
697
697
|
|
|
698
|
+
declare const CalendarCoins: IconComponentType<"24">;
|
|
699
|
+
|
|
698
700
|
declare const Checkmark: IconComponentType<"16" | "24">;
|
|
699
701
|
|
|
700
702
|
declare const Cheque: IconComponentType<"24">;
|
|
@@ -1426,6 +1428,7 @@ export {
|
|
|
1426
1428
|
Briefcase,
|
|
1427
1429
|
Cafe,
|
|
1428
1430
|
Calendar,
|
|
1431
|
+
CalendarCoins,
|
|
1429
1432
|
Checkmark,
|
|
1430
1433
|
Cheque,
|
|
1431
1434
|
Clothing,
|
|
@@ -1841,6 +1844,7 @@ export type IconName =
|
|
|
1841
1844
|
| "briefcase"
|
|
1842
1845
|
| "cafe"
|
|
1843
1846
|
| "calendar"
|
|
1847
|
+
| "calendar_coins"
|
|
1844
1848
|
| "checkmark"
|
|
1845
1849
|
| "cheque"
|
|
1846
1850
|
| "clothing"
|
|
@@ -2266,6 +2270,7 @@ type Icons = {
|
|
|
2266
2270
|
briefcase: "24";
|
|
2267
2271
|
cafe: "24";
|
|
2268
2272
|
calendar: "24";
|
|
2273
|
+
calendar_coins: "24";
|
|
2269
2274
|
checkmark: "16" | "24";
|
|
2270
2275
|
cheque: "24";
|
|
2271
2276
|
clothing: "24";
|
|
@@ -2479,3 +2484,7 @@ export function getIconURL<Name extends IconName>(
|
|
|
2479
2484
|
name: Name,
|
|
2480
2485
|
size?: Icons[Name],
|
|
2481
2486
|
): string;
|
|
2487
|
+
|
|
2488
|
+
export * from "./components/Flag/Flag.js";
|
|
2489
|
+
export * from "./components/PaymentMethod/PaymentMethod.js";
|
|
2490
|
+
export * from "./components/CardScheme/CardScheme.js";
|
package/dist/index.js
CHANGED
|
@@ -204,6 +204,7 @@ export { BatteryAlert } from "./BatteryAlert.js";
|
|
|
204
204
|
export { Briefcase } from "./Briefcase.js";
|
|
205
205
|
export { Cafe } from "./Cafe.js";
|
|
206
206
|
export { Calendar } from "./Calendar.js";
|
|
207
|
+
export { CalendarCoins } from "./CalendarCoins.js";
|
|
207
208
|
export { Checkmark } from "./Checkmark.js";
|
|
208
209
|
export { Cheque } from "./Cheque.js";
|
|
209
210
|
export { Clothing } from "./Clothing.js";
|
|
@@ -411,3 +412,6 @@ export { Twitter } from "./Twitter.js";
|
|
|
411
412
|
export { Unsplash } from "./Unsplash.js";
|
|
412
413
|
export { WhatsApp } from "./WhatsApp.js";
|
|
413
414
|
export { Youtube } from "./Youtube.js";
|
|
415
|
+
export * from "./components/Flag/Flag.js";
|
|
416
|
+
export * from "./components/PaymentMethod/PaymentMethod.js";
|
|
417
|
+
export * from "./components/CardScheme/CardScheme.js";
|
package/dist/logger.d.ts
ADDED
|
@@ -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/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sumup-oss/icons",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.14.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",
|
|
46
|
-
"
|
|
48
|
+
"@types/react": "^19.2.15",
|
|
49
|
+
"@types/react-dom": "^19.2.3",
|
|
50
|
+
"fast-xml-parser": "^5.10.1",
|
|
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"
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
|
|
2
|
+
<path fill="currentColor"
|
|
3
|
+
d="M17.539 12.923h.922a.923.923 0 0 1 0 1.846h-2.706a.4.4 0 0 0-.063.23.4.4 0 0 0 .063.232h1.783c.565 0 1.052.281 1.374.684.318.397.473.9.473 1.393 0 .492-.155.995-.473 1.392-.322.403-.809.684-1.373.684v.924h-1.847v-.924h-.923a.923.923 0 0 1 0-1.846h2.706a.4.4 0 0 0 .063-.23.4.4 0 0 0-.063-.231h-1.783c-.564 0-1.051-.282-1.373-.684A2.24 2.24 0 0 1 13.846 15c0-.492.155-.995.473-1.393.322-.402.809-.684 1.373-.684V12h1.846zm-3.11-11.538c.51 0 .923.413.923.923v.738h1.555c.684 0 1.34.274 1.822.759a2.6 2.6 0 0 1 .753 1.825v4.559a.923.923 0 0 1-1.846 0v-.312H4.616v7.385c0 .197.078.385.215.523a.72.72 0 0 0 .513.215h6.097a.923.923 0 0 1 0 1.846H5.344a2.57 2.57 0 0 1-1.822-.759 2.6 2.6 0 0 1-.753-1.825V5.63c0-.683.27-1.34.753-1.825a2.57 2.57 0 0 1 1.822-.76h1.555v-.737a.923.923 0 0 1 1.846 0v.738h4.761v-.738c0-.51.414-.923.923-.923M5.344 4.892a.72.72 0 0 0-.513.215.74.74 0 0 0-.216.523v2.4h13.02v-2.4a.74.74 0 0 0-.215-.523.73.73 0 0 0-.514-.215h-1.553v.738a.923.923 0 0 1-1.847 0v-.738H8.745v.738a.923.923 0 1 1-1.846 0v-.738z"/>
|
|
4
|
+
</svg>
|