@sumup-oss/icons 5.2.0 → 5.3.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/Calendar.js CHANGED
@@ -53,7 +53,7 @@ var Calendar24 = function Calendar24(props) {
53
53
  /*#__PURE__*/ React.createElement("path", {
54
54
  fill: "currentColor",
55
55
  fillRule: "evenodd",
56
- d: "M18 4h1c1.1 0 2 .9 2 2v2H3V6a2 2 0 0 1 2-2h1V3a1 1 0 0 1 2 0v1h8V3a1 1 0 1 1 2 0zM3 9v11a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V9zm4 4a1 1 0 1 1 2 0 1 1 0 0 1-2 0m0 4a1 1 0 1 1 2 0 1 1 0 0 1-2 0m5-5a1 1 0 1 0 0 2 1 1 0 0 0 0-2m-1 5a1 1 0 1 1 2 0 1 1 0 0 1-2 0m5-5a1 1 0 1 0 0 2 1 1 0 0 0 0-2m-1 5a1 1 0 1 1 2 0 1 1 0 0 1-2 0",
56
+ d: "M5 2.5a1.5 1.5 0 0 1 3 0V4h8V2.5a1.5 1.5 0 0 1 3 0V4h1a3 3 0 0 1 3 3v1H1V7a3 3 0 0 1 3-3h1zM23 10H1v10a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3zM5 13a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2zm6 0a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2zm5 1a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2h-2a1 1 0 0 1-1-1m1 3a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2zm-7 1a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2h-2a1 1 0 0 1-1-1m-5-1a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2z",
57
57
  clipRule: "evenodd",
58
58
  }),
59
59
  );
package/dist/Code.js ADDED
@@ -0,0 +1,81 @@
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 Code24 = function Code24(props) {
41
+ return /*#__PURE__*/ React.createElement(
42
+ "svg",
43
+ _extends(
44
+ {
45
+ xmlns: "http://www.w3.org/2000/svg",
46
+ width: "24",
47
+ height: "24",
48
+ fill: "none",
49
+ viewBox: "0 0 24 24",
50
+ },
51
+ props,
52
+ ),
53
+ /*#__PURE__*/ React.createElement("path", {
54
+ fill: "currentColor",
55
+ d: "M4.825 12.025 8.7 15.9a.95.95 0 0 1 .275.7.95.95 0 0 1-.275.7.95.95 0 0 1-.7.275.95.95 0 0 1-.7-.275l-4.6-4.6a.9.9 0 0 1-.212-.325A1.1 1.1 0 0 1 2.425 12q0-.2.063-.375A.9.9 0 0 1 2.7 11.3l4.6-4.6q.3-.3.713-.3.412 0 .712.3t.3.713-.3.712zm14.35-.05L15.3 8.1a.95.95 0 0 1-.275-.7q0-.425.275-.7a.95.95 0 0 1 .7-.275q.425 0 .7.275l4.6 4.6q.15.15.212.325.063.175.163.375t-.062.375a.9.9 0 0 1-.213.325l-4.6 4.6q-.3.3-.7.287a1 1 0 0 1-.7-.312q-.3-.3-.3-.712 0-.413.3-.713z",
56
+ }),
57
+ );
58
+ };
59
+ const sizeMap = {
60
+ 24: Code24,
61
+ };
62
+ export function Code(_ref) {
63
+ let { size = "24" } = _ref,
64
+ props = _objectWithoutProperties(_ref, _excluded);
65
+ const Icon = sizeMap[size] || sizeMap["24"];
66
+ if (
67
+ process.env.NODE_ENV !== "production" &&
68
+ process.env.NODE_ENV !== "test" &&
69
+ !sizeMap[size]
70
+ ) {
71
+ console.warn(
72
+ new Error(
73
+ "The '".concat(
74
+ size,
75
+ "' size is not supported by the 'Code' icon. Please use one of the available sizes: '24'.",
76
+ ),
77
+ ),
78
+ );
79
+ }
80
+ return /*#__PURE__*/ React.createElement(Icon, props);
81
+ }
package/dist/index.d.ts CHANGED
@@ -252,13 +252,13 @@ declare const FlagIe: IconComponentType<"16">;
252
252
 
253
253
  declare const FlagIt: IconComponentType<"16">;
254
254
 
255
- declare const FlagJp: IconComponentType<"16">;
256
-
257
255
  /**
258
256
  * @deprecated Use the `FlagJp` icon instead.
259
257
  */
260
258
  declare const FlagJa: IconComponentType<"16">;
261
259
 
260
+ declare const FlagJp: IconComponentType<"16">;
261
+
262
262
  declare const FlagLt: IconComponentType<"16">;
263
263
 
264
264
  declare const FlagLu: IconComponentType<"16">;
@@ -405,6 +405,8 @@ declare const Cheque: IconComponentType<"24">;
405
405
 
406
406
  declare const Clothing: IconComponentType<"24">;
407
407
 
408
+ declare const Code: IconComponentType<"24">;
409
+
408
410
  declare const ColorCorrection: IconComponentType<"24">;
409
411
 
410
412
  declare const ColorInversion: IconComponentType<"24">;
@@ -804,8 +806,8 @@ export {
804
806
  FlagHu,
805
807
  FlagIe,
806
808
  FlagIt,
807
- FlagJp,
808
809
  FlagJa,
810
+ FlagJp,
809
811
  FlagLt,
810
812
  FlagLu,
811
813
  FlagLv,
@@ -879,6 +881,7 @@ export {
879
881
  Checkmark,
880
882
  Cheque,
881
883
  Clothing,
884
+ Code,
882
885
  ColorCorrection,
883
886
  ColorInversion,
884
887
  Company,
package/dist/index.js CHANGED
@@ -112,8 +112,8 @@ 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";
116
115
  export { FlagJa } from "./FlagJa.js";
116
+ export { FlagJp } from "./FlagJp.js";
117
117
  export { FlagLt } from "./FlagLt.js";
118
118
  export { FlagLu } from "./FlagLu.js";
119
119
  export { FlagLv } from "./FlagLv.js";
@@ -187,6 +187,7 @@ export { Calendar } from "./Calendar.js";
187
187
  export { Checkmark } from "./Checkmark.js";
188
188
  export { Cheque } from "./Cheque.js";
189
189
  export { Clothing } from "./Clothing.js";
190
+ export { Code } from "./Code.js";
190
191
  export { ColorCorrection } from "./ColorCorrection.js";
191
192
  export { ColorInversion } from "./ColorInversion.js";
192
193
  export { Company } from "./Company.js";
package/manifest.json CHANGED
@@ -726,17 +726,17 @@
726
726
  "size": "16"
727
727
  },
728
728
  {
729
- "name": "flag_jp",
729
+ "name": "flag_ja",
730
730
  "category": "Country flag",
731
731
  "keywords": ["Japan"],
732
- "size": "16"
732
+ "size": "16",
733
+ "deprecation": "Use the `FlagJp` icon instead."
733
734
  },
734
735
  {
735
- "name": "flag_ja",
736
+ "name": "flag_jp",
736
737
  "category": "Country flag",
737
738
  "keywords": ["Japan"],
738
- "size": "16",
739
- "deprecation": "Use the `FlagJp` icon instead."
739
+ "size": "16"
740
740
  },
741
741
  {
742
742
  "name": "flag_lt",
@@ -1157,6 +1157,11 @@
1157
1157
  "category": "Miscellaneous",
1158
1158
  "size": "24"
1159
1159
  },
1160
+ {
1161
+ "name": "code",
1162
+ "category": "Miscellaneous",
1163
+ "size": "24"
1164
+ },
1160
1165
  {
1161
1166
  "name": "color_correction",
1162
1167
  "category": "Miscellaneous",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sumup-oss/icons",
3
- "version": "5.2.0",
3
+ "version": "5.3.0",
4
4
  "description": "A collection of icons by SumUp",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,3 +1,3 @@
1
1
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
- <path fill="currentColor" fill-rule="evenodd" d="M18 4h1c1.1 0 2 .9 2 2v2H3V6a2 2 0 0 1 2-2h1V3a1 1 0 0 1 2 0v1h8V3a1 1 0 1 1 2 0zM3 9v11a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V9zm4 4a1 1 0 1 1 2 0 1 1 0 0 1-2 0m0 4a1 1 0 1 1 2 0 1 1 0 0 1-2 0m5-5a1 1 0 1 0 0 2 1 1 0 0 0 0-2m-1 5a1 1 0 1 1 2 0 1 1 0 0 1-2 0m5-5a1 1 0 1 0 0 2 1 1 0 0 0 0-2m-1 5a1 1 0 1 1 2 0 1 1 0 0 1-2 0" clip-rule="evenodd"/>
2
+ <path fill="currentColor" fill-rule="evenodd" d="M5 2.5a1.5 1.5 0 0 1 3 0V4h8V2.5a1.5 1.5 0 0 1 3 0V4h1a3 3 0 0 1 3 3v1H1V7a3 3 0 0 1 3-3h1zM23 10H1v10a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3zM5 13a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2zm6 0a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2zm5 1a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2h-2a1 1 0 0 1-1-1m1 3a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2zm-7 1a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2h-2a1 1 0 0 1-1-1m-5-1a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2z" clip-rule="evenodd"/>
3
3
  </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
2
+ <path fill="currentColor" d="M4.825 12.025 8.7 15.9a.95.95 0 0 1 .275.7.95.95 0 0 1-.275.7.95.95 0 0 1-.7.275.95.95 0 0 1-.7-.275l-4.6-4.6a.9.9 0 0 1-.212-.325A1.1 1.1 0 0 1 2.425 12q0-.2.063-.375A.9.9 0 0 1 2.7 11.3l4.6-4.6q.3-.3.713-.3.412 0 .712.3t.3.713-.3.712zm14.35-.05L15.3 8.1a.95.95 0 0 1-.275-.7q0-.425.275-.7a.95.95 0 0 1 .7-.275q.425 0 .7.275l4.6 4.6q.15.15.212.325.063.175.163.375t-.062.375a.9.9 0 0 1-.213.325l-4.6 4.6q-.3.3-.7.287a1 1 0 0 1-.7-.312q-.3-.3-.3-.712 0-.413.3-.713z"/>
3
+ </svg>