@sumup-oss/icons 6.8.0 → 6.9.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/Unsplash.js +68 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -0
- package/manifest.json +5 -0
- package/package.json +1 -1
- package/web/v2/unsplash_24.svg +3 -0
package/dist/Unsplash.js
ADDED
|
@@ -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 Unsplash24 = function Unsplash24(props) {
|
|
30
|
+
return /*#__PURE__*/ _jsx("svg", {
|
|
31
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
32
|
+
width: "24",
|
|
33
|
+
height: "24",
|
|
34
|
+
viewBox: "0 0 24 24",
|
|
35
|
+
fill: "none",
|
|
36
|
+
...props,
|
|
37
|
+
children: /*#__PURE__*/ _jsx("path", {
|
|
38
|
+
d: "M9.0664 9.86719V14.9336H14.9336V9.86719H24V24H0V9.86719H9.0664ZM2.6667 21.3333H21.3333V12.53385H17.6003V17.6003H6.3997V12.53385H2.6667V21.3333ZM17.6003 0V7.7331H6.3997V0H17.6003ZM9.0664 5.0664H14.9336V2.6667H9.0664V5.0664Z",
|
|
39
|
+
fill: "currentColor",
|
|
40
|
+
}),
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
const sizeMap = {
|
|
44
|
+
24: Unsplash24,
|
|
45
|
+
};
|
|
46
|
+
export function Unsplash(_ref) {
|
|
47
|
+
let _ref$size = _ref.size,
|
|
48
|
+
size = _ref$size === void 0 ? "24" : _ref$size,
|
|
49
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
50
|
+
const Icon = sizeMap[size] || sizeMap["24"];
|
|
51
|
+
if (
|
|
52
|
+
process.env.NODE_ENV !== "production" &&
|
|
53
|
+
process.env.NODE_ENV !== "test" &&
|
|
54
|
+
!sizeMap[size]
|
|
55
|
+
) {
|
|
56
|
+
console.warn(
|
|
57
|
+
new Error(
|
|
58
|
+
"The '".concat(
|
|
59
|
+
size,
|
|
60
|
+
"' size is not supported by the 'Unsplash' icon. Please use one of the available sizes: '24'.",
|
|
61
|
+
),
|
|
62
|
+
),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
return /*#__PURE__*/ _jsx(Icon, {
|
|
66
|
+
...props,
|
|
67
|
+
});
|
|
68
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1199,6 +1199,8 @@ declare const Pinterest: IconComponentType<"24">;
|
|
|
1199
1199
|
|
|
1200
1200
|
declare const Twitter: IconComponentType<"24">;
|
|
1201
1201
|
|
|
1202
|
+
declare const Unsplash: IconComponentType<"24">;
|
|
1203
|
+
|
|
1202
1204
|
declare const WhatsApp: IconComponentType<"24">;
|
|
1203
1205
|
|
|
1204
1206
|
declare const Youtube: IconComponentType<"24">;
|
|
@@ -1607,6 +1609,7 @@ export {
|
|
|
1607
1609
|
Messenger,
|
|
1608
1610
|
Pinterest,
|
|
1609
1611
|
Twitter,
|
|
1612
|
+
Unsplash,
|
|
1610
1613
|
WhatsApp,
|
|
1611
1614
|
Youtube,
|
|
1612
1615
|
};
|
|
@@ -2015,6 +2018,7 @@ export type IconName =
|
|
|
2015
2018
|
| "messenger"
|
|
2016
2019
|
| "pinterest"
|
|
2017
2020
|
| "twitter"
|
|
2021
|
+
| "unsplash"
|
|
2018
2022
|
| "whats_app"
|
|
2019
2023
|
| "youtube";
|
|
2020
2024
|
|
|
@@ -2433,6 +2437,7 @@ type Icons = {
|
|
|
2433
2437
|
messenger: "24";
|
|
2434
2438
|
pinterest: "24";
|
|
2435
2439
|
twitter: "24";
|
|
2440
|
+
unsplash: "24";
|
|
2436
2441
|
whats_app: "24";
|
|
2437
2442
|
youtube: "24";
|
|
2438
2443
|
};
|
package/dist/index.js
CHANGED
|
@@ -402,5 +402,6 @@ export { Linkedin } from "./Linkedin.js";
|
|
|
402
402
|
export { Messenger } from "./Messenger.js";
|
|
403
403
|
export { Pinterest } from "./Pinterest.js";
|
|
404
404
|
export { Twitter } from "./Twitter.js";
|
|
405
|
+
export { Unsplash } from "./Unsplash.js";
|
|
405
406
|
export { WhatsApp } from "./WhatsApp.js";
|
|
406
407
|
export { Youtube } from "./Youtube.js";
|
package/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
2
|
+
<path d="M9.0664 9.86719V14.9336H14.9336V9.86719H24V24H0V9.86719H9.0664ZM2.6667 21.3333H21.3333V12.53385H17.6003V17.6003H6.3997V12.53385H2.6667V21.3333ZM17.6003 0V7.7331H6.3997V0H17.6003ZM9.0664 5.0664H14.9336V2.6667H9.0664V5.0664Z" fill="currentColor"/>
|
|
3
|
+
</svg>
|