UNPKG

@codex-storage/marketplace-ui-components

Version:
27 lines (26 loc) 8.63 kB
import { jsx as l } from "react/jsx-runtime"; import * as e from "react"; const c = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024", ...t }, /* @__PURE__ */ e.createElement("path", { fill: "#FFC547", d: "m594.94 0 335.13 341.32v563.2c0 66-52.5 119.48-117.3 119.48H209.55c-64.8 0-117.3-53.53-117.3-119.48V119.48c0-66 52.5-119.48 117.3-119.48z" }), /* @__PURE__ */ e.createElement("path", { fill: "#FFF", fillOpacity: 0.4, d: "M930.07 341.32H718.15c-64.75 0-123.2-59.49-123.2-125.5V0z" }), /* @__PURE__ */ e.createElement("path", { fill: "#FFF", d: "M568.78 446.46v229.38a27.2 27.2 0 0 1-6.8 18.25 46 46 0 0 1-17.3 12.38 113 113 0 0 1-20.81 6.52 96 96 0 0 1-19.41 2.18c-6.05 0-12.53-.75-19.41-2.14a113 113 0 0 1-20.8-6.56 46 46 0 0 1-17.33-12.38 27.2 27.2 0 0 1-6.84-18.25c0-6.84 2.33-12.9 6.84-18.25a46 46 0 0 1 17.32-12.38 110 110 0 0 1 20.8-6.52 92 92 0 0 1 19.41-2.18q21.1-.01 38.64 8V534.54L388.6 583.08v145.21a27.2 27.2 0 0 1-6.8 18.2 46 46 0 0 1-17.32 12.39 113 113 0 0 1-20.8 6.56 99 99 0 0 1-19.41 2.14 95 95 0 0 1-19.41-2.14 113 113 0 0 1-20.8-6.52 46 46 0 0 1-17.32-12.42 27.2 27.2 0 0 1-6.84-18.25c0-6.8 2.33-12.9 6.84-18.2a46 46 0 0 1 17.31-12.38 114 114 0 0 1 20.81-6.56 95 95 0 0 1 19.4-2.14q21.1 0 38.64 7.95V498.87a19.9 19.9 0 0 1 13.69-18.84l167.28-52.42a18 18 0 0 1 5.58-.84q8.1 0 13.69 5.73a19.2 19.2 0 0 1 5.63 13.96" })), m = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024", ...t }, /* @__PURE__ */ e.createElement("path", { fill: "#8095FF", d: "M137.9 0a48.6 48.6 0 0 0-35.59 15.3 54 54 0 0 0-15.27 35.63v917.42a48.7 48.7 0 0 0 15.27 35.64 50 50 0 0 0 35.6 15.29h746.33a48.6 48.6 0 0 0 35.59-15.3 50.4 50.4 0 0 0 15.27-35.63V288.72L646.73 0z" }), /* @__PURE__ */ e.createElement("path", { fill: "#FFF", d: "M138.24 83.45a42.49 42.49 0 1 0 84.98 0 42.49 42.49 0 0 0-84.98 0m0 169.83a42.49 42.49 0 1 0 84.98 0 42.49 42.49 0 0 0-84.98 0m0 169.82a42.49 42.49 0 1 0 84.98.13 42.49 42.49 0 0 0-84.98-.13zm0 169.89a42.49 42.49 0 1 0 42.5-42.5 42.4 42.4 0 0 0-42.5 42.5zm0 169.82a42.49 42.49 0 1 0 84.98.14 42.49 42.49 0 0 0-84.98-.14m0 169.9a42.49 42.49 0 1 0 84.98 0 42.49 42.49 0 0 0-84.98 0M796.93 423.1a42.49 42.49 0 1 0 84.98.13 42.49 42.49 0 0 0-84.99-.13zm0 169.89a42.49 42.49 0 1 0 42.48-42.5 42.4 42.4 0 0 0-42.49 42.5zm0 169.82a42.49 42.49 0 1 0 84.98.14 42.49 42.49 0 0 0-84.99-.14zm0 169.9a42.49 42.49 0 1 0 84.98 0 42.49 42.49 0 0 0-84.99 0zM631.09 505.75l-225.08-154.6a16.7 16.7 0 0 0-17.82-.8 17.8 17.8 0 0 0-9.31 15.23v308.34a18 18 0 0 0 9.3 15.29 16.8 16.8 0 0 0 17.83-.87l225.08-155.39a15.4 15.4 0 0 0 7.65-13.63 18.7 18.7 0 0 0-7.65-13.3z" }), /* @__PURE__ */ e.createElement("path", { fill: "#FFF", d: "M935.1 288.72H697.66a52.23 52.23 0 0 1-50.93-50.94V0z", opacity: "{0.4}" })), i = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024", ...t }, /* @__PURE__ */ e.createElement("path", { fill: "#36D2AD", d: "m594.94 0 335.13 341.32v563.2c0 66-52.5 119.48-117.3 119.48H209.55c-64.8 0-117.3-53.53-117.3-119.48V119.48c0-66 52.5-119.48 117.3-119.48z" }), /* @__PURE__ */ e.createElement("path", { fill: "#FFF", fillOpacity: 0.4, d: "M930.07 341.32H718.15c-64.75 0-123.2-59.49-123.2-125.5V0z" }), /* @__PURE__ */ e.createElement("path", { fill: "#FFF", d: "M613.56 426.68H278.43c-10.24 0-18.62 8.47-18.62 18.94v303.44c0 10.47 8.38 18.94 18.62 18.94h335.13c10.28 0 18.61-8.47 18.61-18.94V445.62a18.8 18.8 0 0 0-18.61-18.94zm-37.24 284.4H315.67V616.3l55.86-56.87 93.08 94.81 55.86-56.92 55.85 56.92v56.88zm-37.24-151.65a37.56 37.56 0 0 1-37.23-37.94c0-20.94 16.66-37.93 37.23-37.93 20.58 0 37.24 17 37.24 37.94s-16.66 37.93-37.24 37.93" })), h = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024", ...t }, /* @__PURE__ */ e.createElement("path", { fill: "#E94848", d: "m594.94 0 335.13 341.32v563.2c0 66-52.5 119.48-117.3 119.48H209.55c-64.8 0-117.3-53.53-117.3-119.48V119.48c0-66 52.5-119.48 117.3-119.48z" }), /* @__PURE__ */ e.createElement("path", { fill: "#FFF", d: "M482.95 375.48a40.6 40.6 0 0 0-40.02 40.78c0 27.78 15.17 62.32 31.18 94.77-12.57 39.83-26.72 82.47-44.82 118.5-37.1 14.8-70.2 25.83-90.06 42.17a41.7 41.7 0 0 0-12.4 29.92c0 22.35 18.07 40.78 40.04 40.78a39.3 39.3 0 0 0 29.27-12.47c14.62-17.83 31.9-50.13 47.3-79.64 35.42-14.2 72.6-28.68 108.44-37.33 26.17 21.45 64.06 35.65 95.2 35.65 21.96 0 40.02-18.38 40.02-40.77a40.6 40.6 0 0 0-40.03-40.73c-24.99 0-61.3 9.07-89.04 18.62a301 301 0 0 1-58.09-76.99c10.66-33.33 23.04-66.65 23.04-92.48a40.6 40.6 0 0 0-40.03-40.78m0 24.44c8.98 0 16.01 7.17 16.01 16.29 0 12.24-6.42 34.82-13.87 59.02-9.95-23.55-18.15-46.17-18.15-58.97 0-9.17 7.03-16.3 16.01-16.3zm6.9 139.54a324 324 0 0 0 41.51 53.76c-23.74 6.6-46.92 15.08-69.82 23.92 11.08-25.36 19.92-51.75 28.3-77.72zm157.23 52.13c8.98 0 16 7.12 16 16.3 0 9.12-7.02 16.28-16 16.28-18.07 0-43.67-8.28-64.2-19.87 23.56-6.8 49.21-12.75 64.2-12.75zm-238.93 72.99c-11.26 20.48-22.43 39.56-30.26 49.15a15 15 0 0 1-11.03 4.19 15.96 15.96 0 0 1-16-16.3 17.7 17.7 0 0 1 4.23-11.35c9.4-7.4 29.83-16.3 53.06-25.7" }), /* @__PURE__ */ e.createElement("path", { fill: "#FFF", fillOpacity: 0.4, d: "M930.07 341.32H718.15c-64.75 0-123.2-59.49-123.2-125.5V0z" })), v = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024", ...t }, /* @__PURE__ */ e.createElement("path", { fill: "#1ABF74", d: "m594.94 0 335.13 341.32v563.2c0 66-52.5 119.48-117.3 119.48H209.55c-64.8 0-117.3-53.53-117.3-119.48V119.48c0-66 52.5-119.48 117.3-119.48z" }), /* @__PURE__ */ e.createElement("path", { fill: "#FFF", fillOpacity: 0.4, d: "M930.07 341.32H718.15c-64.75 0-123.2-59.49-123.2-125.5V0z" }), /* @__PURE__ */ e.createElement("path", { fill: "#FFF", d: "M594.62 426.82v.23h.09V768h-27.88v-.05h-83.96.04-83.14.05H259.9v-28.4l.05-.04V653.7h-.05v-28.4h.05v-85.83h-.1v-28.4l.1-.04v-55.85h-.1v-28.4h334.71zM371.99 653.7h-84.1v85.82h84.1zm83.08 0h-55.24v85.82h55.2V653.7zm111.76 0h-83.92v85.82h83.87V653.7zM372 539.46h-84.1v85.83h84.1zm83.08 0h-55.24v85.83h55.2v-85.83zm111.76 0h-83.92v85.83h83.87v-85.83zm0-84.25H287.88v55.81h278.9v-55.85z" })), n = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024", ...t }, /* @__PURE__ */ e.createElement("path", { fill: "#5895FF", d: "m594.94 0 335.13 341.32v563.2c0 66-52.5 119.48-117.3 119.48H209.55c-64.8 0-117.3-53.53-117.3-119.48V119.48c0-66 52.5-119.48 117.3-119.48z" }), /* @__PURE__ */ e.createElement("path", { fill: "#FFF", fillOpacity: 0.4, d: "M930.07 341.32H718.15c-64.75 0-123.2-59.49-123.2-125.5V0z" }), /* @__PURE__ */ e.createElement("path", { fill: "#FFF", d: "M427.38 725.32V768H259.8v-42.68zM594.94 640v42.68H259.81V640zm0-85.32v42.64H259.81v-42.64zm0-85.36V512H259.81v-42.68z" })), r = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 1024 1024", ...t }, /* @__PURE__ */ e.createElement("path", { fill: "#E5E5E5", d: "M137.9 0a48.6 48.6 0 0 0-35.59 15.3 54 54 0 0 0-15.27 35.63v917.42a48.7 48.7 0 0 0 15.27 35.64 50 50 0 0 0 35.6 15.29h746.33a48.6 48.6 0 0 0 35.59-15.3 50.4 50.4 0 0 0 15.27-35.63V288.72L646.73 0z" }), /* @__PURE__ */ e.createElement("path", { fill: "#CCC", d: "M935.1 288.72H697.66a52.23 52.23 0 0 1-50.93-50.94V0z" }), /* @__PURE__ */ e.createElement("path", { fill: "#FFF", d: "M248.13 365.18h220.51a25.5 25.5 0 0 0 24.2-25.5 25.5 25.5 0 0 0-24.2-25.5H248.13a25.5 25.5 0 0 0-24.2 25.5 25.5 25.5 0 0 0 24.2 25.5zm0 169.83h525.82a25.45 25.45 0 0 0 25.43-25.47 25.45 25.45 0 0 0-25.43-25.46H248.13a25.45 25.45 0 0 0-25.44 25.46 25.45 25.45 0 0 0 25.43 25.47zM773.95 653.9H248.13a25.5 25.5 0 0 0-24.2 25.5 25.5 25.5 0 0 0 24.2 25.5h525.82a25.5 25.5 0 0 0 24.2-25.5 25.5 25.5 0 0 0-24.2-25.5z" })); function p({ type: t, size: a = 24 }) { if (t.startsWith("audio")) return /* @__PURE__ */ l(c, { width: a }); if (t.startsWith("image")) return /* @__PURE__ */ l(i, { width: a }); if (t.startsWith("video")) return /* @__PURE__ */ l(m, { width: a }); switch (t) { case "application/pdf": return /* @__PURE__ */ l(h, { width: a }); case "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": case "application/vnd.ms-excel": return /* @__PURE__ */ l(v, { width: a }); case "application/msdoc": return /* @__PURE__ */ l(n, { width: a }); default: return /* @__PURE__ */ l(r, { width: a }); } } export { p as WebFileIcon }; //# sourceMappingURL=WebFileIcon.js.map