@sumup-oss/icons 5.1.0 → 5.2.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/FlagJa.js CHANGED
@@ -57,7 +57,7 @@ var FlagJa16 = function FlagJa16(props) {
57
57
  /*#__PURE__*/ React.createElement("path", {
58
58
  fill: "#CCC",
59
59
  fillRule: "evenodd",
60
- d: "M1.882 2h12.236C15.158 2 16 2.843 16 3.882v7.53c0 1.04-.843 1.882-1.882 1.882H1.882A1.88 1.88 0 0 1 0 11.412v-7.53C0 2.842.843 2 1.882 2m0 .47c-.78 0-1.411.633-1.411 1.412v7.53c0 .78.632 1.411 1.411 1.411h12.236c.78 0 1.411-.632 1.411-1.411v-7.53c0-.78-.632-1.411-1.411-1.411z",
60
+ d: "M1.882 2h12.236C15.158 2 16 2.843 16 3.882v7.53c0 1.04-.843 1.882-1.882 1.882H1.882A1.88 1.88 0 0 1 0 11.412v-7.53C0 2.842.843 2 1.882 2m0 .47c-.78 0-1.411.633-1.411 1.412v7.53c0 .78.632 1.411 1.411 1.411h12.236a1.41 1.41 0 0 0 1.411-1.411v-7.53a1.41 1.41 0 0 0-1.411-1.411z",
61
61
  clipRule: "evenodd",
62
62
  }),
63
63
  /*#__PURE__*/ React.createElement("circle", {
@@ -71,6 +71,10 @@ var FlagJa16 = function FlagJa16(props) {
71
71
  const sizeMap = {
72
72
  16: FlagJa16,
73
73
  };
74
+
75
+ /**
76
+ * @deprecated Use the `FlagJp` icon instead.
77
+ */
74
78
  export function FlagJa(_ref) {
75
79
  let { size = "16" } = _ref,
76
80
  props = _objectWithoutProperties(_ref, _excluded);
package/dist/FlagJp.js ADDED
@@ -0,0 +1,93 @@
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 s = Object.getOwnPropertySymbols(e);
9
+ for (r = 0; r < s.length; r++)
10
+ (o = s[r]),
11
+ t.includes(o) || ({}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]));
12
+ }
13
+ return i;
14
+ }
15
+ function _objectWithoutPropertiesLoose(r, e) {
16
+ if (null == r) return {};
17
+ var t = {};
18
+ for (var n in r)
19
+ if ({}.hasOwnProperty.call(r, n)) {
20
+ if (e.includes(n)) continue;
21
+ t[n] = r[n];
22
+ }
23
+ return t;
24
+ }
25
+ function _extends() {
26
+ return (
27
+ (_extends = Object.assign
28
+ ? Object.assign.bind()
29
+ : function (n) {
30
+ for (var e = 1; e < arguments.length; e++) {
31
+ var t = arguments[e];
32
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
33
+ }
34
+ return n;
35
+ }),
36
+ _extends.apply(null, arguments)
37
+ );
38
+ }
39
+ import React from "react";
40
+ var FlagJp16 = function FlagJp16(props) {
41
+ return /*#__PURE__*/ React.createElement(
42
+ "svg",
43
+ _extends(
44
+ {
45
+ xmlns: "http://www.w3.org/2000/svg",
46
+ width: "16",
47
+ height: "16",
48
+ fill: "none",
49
+ viewBox: "0 0 16 16",
50
+ },
51
+ props,
52
+ ),
53
+ /*#__PURE__*/ React.createElement("path", {
54
+ fill: "#fff",
55
+ d: "M14.476 2H1.524C.682 2 0 2.657 0 3.467v8.066C0 12.343.682 13 1.524 13h12.952c.842 0 1.524-.657 1.524-1.467V3.467C16 2.657 15.318 2 14.476 2",
56
+ }),
57
+ /*#__PURE__*/ React.createElement("path", {
58
+ fill: "#CCC",
59
+ fillRule: "evenodd",
60
+ d: "M1.882 2h12.236C15.158 2 16 2.843 16 3.882v7.53c0 1.04-.843 1.882-1.882 1.882H1.882A1.88 1.88 0 0 1 0 11.412v-7.53C0 2.842.843 2 1.882 2m0 .47c-.78 0-1.411.633-1.411 1.412v7.53c0 .78.632 1.411 1.411 1.411h12.236a1.41 1.41 0 0 0 1.411-1.411v-7.53a1.41 1.41 0 0 0-1.411-1.411z",
61
+ clipRule: "evenodd",
62
+ }),
63
+ /*#__PURE__*/ React.createElement("circle", {
64
+ cx: "8",
65
+ cy: "7.656",
66
+ r: "3",
67
+ fill: "#BC002D",
68
+ }),
69
+ );
70
+ };
71
+ const sizeMap = {
72
+ 16: FlagJp16,
73
+ };
74
+ export function FlagJp(_ref) {
75
+ let { size = "16" } = _ref,
76
+ props = _objectWithoutProperties(_ref, _excluded);
77
+ const Icon = sizeMap[size] || sizeMap["16"];
78
+ if (
79
+ process.env.NODE_ENV !== "production" &&
80
+ process.env.NODE_ENV !== "test" &&
81
+ !sizeMap[size]
82
+ ) {
83
+ console.warn(
84
+ new Error(
85
+ "The '".concat(
86
+ size,
87
+ "' size is not supported by the 'FlagJp' icon. Please use one of the available sizes: '16'.",
88
+ ),
89
+ ),
90
+ );
91
+ }
92
+ return /*#__PURE__*/ React.createElement(Icon, props);
93
+ }
package/dist/index.d.ts CHANGED
@@ -252,6 +252,11 @@ declare const FlagIe: IconComponentType<"16">;
252
252
 
253
253
  declare const FlagIt: IconComponentType<"16">;
254
254
 
255
+ declare const FlagJp: IconComponentType<"16">;
256
+
257
+ /**
258
+ * @deprecated Use the `FlagJp` icon instead.
259
+ */
255
260
  declare const FlagJa: IconComponentType<"16">;
256
261
 
257
262
  declare const FlagLt: IconComponentType<"16">;
@@ -799,6 +804,7 @@ export {
799
804
  FlagHu,
800
805
  FlagIe,
801
806
  FlagIt,
807
+ FlagJp,
802
808
  FlagJa,
803
809
  FlagLt,
804
810
  FlagLu,
package/dist/index.js CHANGED
@@ -112,6 +112,7 @@ export { FlagHr } from "./FlagHr.js";
112
112
  export { FlagHu } from "./FlagHu.js";
113
113
  export { FlagIe } from "./FlagIe.js";
114
114
  export { FlagIt } from "./FlagIt.js";
115
+ export { FlagJp } from "./FlagJp.js";
115
116
  export { FlagJa } from "./FlagJa.js";
116
117
  export { FlagLt } from "./FlagLt.js";
117
118
  export { FlagLu } from "./FlagLu.js";
package/manifest.json CHANGED
@@ -726,11 +726,18 @@
726
726
  "size": "16"
727
727
  },
728
728
  {
729
- "name": "flag_ja",
729
+ "name": "flag_jp",
730
730
  "category": "Country flag",
731
731
  "keywords": ["Japan"],
732
732
  "size": "16"
733
733
  },
734
+ {
735
+ "name": "flag_ja",
736
+ "category": "Country flag",
737
+ "keywords": ["Japan"],
738
+ "size": "16",
739
+ "deprecation": "Use the `FlagJp` icon instead."
740
+ },
734
741
  {
735
742
  "name": "flag_lt",
736
743
  "category": "Country flag",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sumup-oss/icons",
3
- "version": "5.1.0",
3
+ "version": "5.2.0",
4
4
  "description": "A collection of icons by SumUp",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -40,7 +40,7 @@
40
40
  "@babel/preset-react": "^7.25.9",
41
41
  "@types/babel__core": "^7.20.5",
42
42
  "fast-xml-parser": "^4.5.0",
43
- "prettier": "^3.3.3",
43
+ "prettier": "^3.4.1",
44
44
  "tsx": "^4.19.2",
45
45
  "typescript": "^5.6.3"
46
46
  },
@@ -1,5 +1,5 @@
1
1
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
2
2
  <path fill="#fff" d="M14.476 2H1.524C.682 2 0 2.657 0 3.467v8.066C0 12.343.682 13 1.524 13h12.952c.842 0 1.524-.657 1.524-1.467V3.467C16 2.657 15.318 2 14.476 2"/>
3
- <path fill="#CCC" fill-rule="evenodd" d="M1.882 2h12.236C15.158 2 16 2.843 16 3.882v7.53c0 1.04-.843 1.882-1.882 1.882H1.882A1.88 1.88 0 0 1 0 11.412v-7.53C0 2.842.843 2 1.882 2m0 .47c-.78 0-1.411.633-1.411 1.412v7.53c0 .78.632 1.411 1.411 1.411h12.236c.78 0 1.411-.632 1.411-1.411v-7.53c0-.78-.632-1.411-1.411-1.411z" clip-rule="evenodd"/>
3
+ <path fill="#CCC" fill-rule="evenodd" d="M1.882 2h12.236C15.158 2 16 2.843 16 3.882v7.53c0 1.04-.843 1.882-1.882 1.882H1.882A1.88 1.88 0 0 1 0 11.412v-7.53C0 2.842.843 2 1.882 2m0 .47c-.78 0-1.411.633-1.411 1.412v7.53c0 .78.632 1.411 1.411 1.411h12.236a1.41 1.41 0 0 0 1.411-1.411v-7.53a1.41 1.41 0 0 0-1.411-1.411z" clip-rule="evenodd"/>
4
4
  <circle cx="8" cy="7.656" r="3" fill="#BC002D"/>
5
5
  </svg>
@@ -0,0 +1,5 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16">
2
+ <path fill="#fff" d="M14.476 2H1.524C.682 2 0 2.657 0 3.467v8.066C0 12.343.682 13 1.524 13h12.952c.842 0 1.524-.657 1.524-1.467V3.467C16 2.657 15.318 2 14.476 2"/>
3
+ <path fill="#CCC" fill-rule="evenodd" d="M1.882 2h12.236C15.158 2 16 2.843 16 3.882v7.53c0 1.04-.843 1.882-1.882 1.882H1.882A1.88 1.88 0 0 1 0 11.412v-7.53C0 2.842.843 2 1.882 2m0 .47c-.78 0-1.411.633-1.411 1.412v7.53c0 .78.632 1.411 1.411 1.411h12.236a1.41 1.41 0 0 0 1.411-1.411v-7.53a1.41 1.41 0 0 0-1.411-1.411z" clip-rule="evenodd"/>
4
+ <circle cx="8" cy="7.656" r="3" fill="#BC002D"/>
5
+ </svg>