synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
105 lines (104 loc) • 5.28 kB
JavaScript
import { jsx as o, Fragment as T } from "react/jsx-runtime";
import { ReactComponent as C } from "../../assets/icons/chart2.svg.js";
import { ReactComponent as A } from "../../assets/icons/Data2.svg.js";
import { ReactComponent as O } from "../../assets/icons/DNA_Two.svg.js";
import { ReactComponent as I } from "../../assets/icons/file.svg.js";
import { ReactComponent as L } from "../../assets/icons/institution.svg.js";
import { ReactComponent as S } from "../../assets/icons/mouse.svg.js";
import { ReactComponent as d } from "../../assets/icons/organizations.svg.js";
import { ReactComponent as l } from "../../assets/icons/person.svg.js";
import { ReactComponent as D } from "../../assets/icons/study-active.svg.js";
import { ReactComponent as N } from "../../assets/icons/study-complete.svg.js";
import { ReactComponent as F } from "../../assets/icons/translational.svg.js";
import { ReactComponent as g } from "../../assets/icons/tree_horizontal.svg.js";
import { ReactComponent as w } from "../../assets/icons/standardDataModel.svg.js";
import { ReactComponent as U } from "../../assets/icons/Challenge.svg.js";
import { Project as p } from "../../assets/themed_icons/Project.js";
import { Program as P } from "../../assets/themed_icons/Program.js";
import { Publication as u } from "../../assets/themed_icons/Publication.js";
import { Study as _ } from "../../assets/themed_icons/Study.js";
import { ToolClinical as M } from "../../assets/themed_icons/ToolClinical.js";
import { ToolComputational as s } from "../../assets/themed_icons/ToolComputational.js";
import { ToolExperimental as f } from "../../assets/themed_icons/ToolExperimental.js";
import { Database as $ } from "../../assets/themed_icons/Database.js";
import { Explore as h } from "../../assets/themed_icons/Explore.js";
import { Search as v } from "../../assets/themed_icons/Search.js";
import { Chart as Y } from "../../assets/themed_icons/Chart.js";
import { Filter as b } from "../../assets/themed_icons/Filter.js";
import { SqlEditorIcon as x } from "../../assets/themed_icons/SqlEditorIcon.js";
import { Download as y } from "../../assets/themed_icons/Download.js";
import { Expand as X } from "../../assets/themed_icons/Expand.js";
import { Collapse as G } from "../../assets/themed_icons/Collapse.js";
import { Close as H } from "../../assets/themed_icons/Close.js";
import { SortUp as z } from "../../assets/themed_icons/SortUp.js";
import { SortDown as B } from "../../assets/themed_icons/SortDown.js";
import { Settings as V } from "../../assets/themed_icons/Settings.js";
import { Columns as k } from "../../assets/themed_icons/Columns.js";
import { ColumnsDark as W } from "../../assets/themed_icons/ColumnsDark.js";
import { VerticalDots as j } from "../../assets/themed_icons/VerticalDots.js";
import { ExternalLink as q } from "../../assets/themed_icons/ExternalLink.js";
import { EXTERNAL_RESOURCE as K, DATASET as Q, DOWNLOAD_PERMISSION_REQUIRED as Z, VARIABLE_DIFFICULTY as J, MEDIUM_DIFFICULTY as oo, EASY_DIFFICULTY as ro, STANDARD_DATA_MODEL as to, TREE_HORIZONTAL as mo, CONTRIBUTOR as ao, EXTERNALLINK as no, FILE as io, CHART2 as eo, VERTICAL_DOTS as po, CHALLENGE as so, COLUMNSDARK as fo, COLUMNS as Ro, SETTINGS as co, SORTDOWN as Eo, SORTUP as To, CLOSE as Co, COLLAPSE as Ao, EXPAND as Oo, DOWNLOAD as Io, SQL_EDITOR as Lo, FILTER as So, CHART as lo, SEARCH as Do, EXPLORE as No, TRANSLATIONAL as Fo, MOUSE as go, PERSON as wo, ORGANIZATION as Uo, GRANT as Po, PROJECT as uo, PROGRAM as _o, CLINICAL as Mo, COMPUTATIONAL_TOOL as $o, COMPUTATIONAL as ho, EXPERIMENTAL_TOOL as vo, EXPERIMENTAL as Yo, STUDY as bo, PUBLICATION as xo, STUDY_COMPLETE as yo, STUDY_ACTIVE as Xo, TOOL as Go, FUNDER as Ho, DATABASE as zo } from "../../utils/SynapseConstants.js";
import m from "../IconSvg/IconSvg.js";
const R = {
clipboard: /* @__PURE__ */ o(m, { icon: "clipboard" }),
[]: /* @__PURE__ */ o(m, { icon: "dataset" }),
[]: /* @__PURE__ */ o(m, { icon: "link" })
}, Bo = {
[]: $,
// this returns svg tag
[]: A,
[]: O,
[]: D,
[]: N,
// new icons
[]: u,
[]: _,
[]: f,
[]: f,
[]: s,
[$o]: s,
[]: M,
[]: P,
[]: p,
[]: p,
[]: d,
[]: l,
[]: S,
[]: F,
[]: h,
[]: v,
[]: Y,
[]: b,
[]: x,
[]: y,
[]: X,
[]: G,
[]: H,
[]: z,
[]: B,
[]: V,
[]: k,
[]: W,
[]: U,
[]: j,
[]: C,
[]: I,
[]: q,
[]: L,
[]: g,
[]: w,
[]: "https://s3.amazonaws.com/static.synapse.org/images/easy.svg",
[]: "https://s3.amazonaws.com/static.synapse.org/images/medium.svg",
[]: "https://s3.amazonaws.com/static.synapse.org/images/variable.svg",
[]: "https://s3.amazonaws.com/static.synapse.org/images/downloadPermissionRequired.svg"
};
function Mr({ type: t, value: a = "", iconOptions: c, cssClass: E }) {
const n = R[a] || R[t];
if (n) return n;
const i = { ...Bo, ...c }, r = i[a] || i[t], e = `iconImg ${E ?? ""}`;
return r == null ? (console.warn("Icon type not found:", t), /* @__PURE__ */ o(T, {})) : typeof r == "string" ? /* @__PURE__ */ o("img", { src: r, className: e }) : /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(r, { className: e }) });
}
export {
Mr as default
};
//# sourceMappingURL=Icon.js.map