UNPKG

analytica-frontend-lib

Version:

Repositório público dos componentes utilizados nas plataformas da Analytica Ensino

128 lines (126 loc) 4.9 kB
import { BookOpenText, ChatEN, ChatES, ChatPT, HeadCircuit, Microscope } from "./chunk-FDFDHQDG.mjs"; // src/components/IconRender/IconRender.tsx import { cloneElement } from "react"; import { QuestionIcon } from "@phosphor-icons/react/dist/csr/Question"; import { ArticleNyTimesIcon } from "@phosphor-icons/react/dist/csr/ArticleNyTimes"; import { AtomIcon } from "@phosphor-icons/react/dist/csr/Atom"; import { BasketballIcon } from "@phosphor-icons/react/dist/csr/Basketball"; import { BookIcon } from "@phosphor-icons/react/dist/csr/Book"; import { BookBookmarkIcon } from "@phosphor-icons/react/dist/csr/BookBookmark"; import { BookOpenIcon } from "@phosphor-icons/react/dist/csr/BookOpen"; import { CalculatorIcon } from "@phosphor-icons/react/dist/csr/Calculator"; import { CastleTurretIcon } from "@phosphor-icons/react/dist/csr/CastleTurret"; import { ChartLineIcon } from "@phosphor-icons/react/dist/csr/ChartLine"; import { ChatTextIcon } from "@phosphor-icons/react/dist/csr/ChatText"; import { CheckCircleIcon } from "@phosphor-icons/react/dist/csr/CheckCircle"; import { CheckSquareIcon } from "@phosphor-icons/react/dist/csr/CheckSquare"; import { CircleHalfIcon } from "@phosphor-icons/react/dist/csr/CircleHalf"; import { ClockIcon } from "@phosphor-icons/react/dist/csr/Clock"; import { CylinderIcon } from "@phosphor-icons/react/dist/csr/Cylinder"; import { DribbbleLogoIcon } from "@phosphor-icons/react/dist/csr/DribbbleLogo"; import { FlaskIcon } from "@phosphor-icons/react/dist/csr/Flask"; import { GlobeIcon } from "@phosphor-icons/react/dist/csr/Globe"; import { GlobeHemisphereWestIcon } from "@phosphor-icons/react/dist/csr/GlobeHemisphereWest"; import { GraduationCapIcon } from "@phosphor-icons/react/dist/csr/GraduationCap"; import { HeartIcon } from "@phosphor-icons/react/dist/csr/Heart"; import { LeafIcon } from "@phosphor-icons/react/dist/csr/Leaf"; import { LightbulbIcon } from "@phosphor-icons/react/dist/csr/Lightbulb"; import { LightningIcon } from "@phosphor-icons/react/dist/csr/Lightning"; import { MapPinIcon } from "@phosphor-icons/react/dist/csr/MapPin"; import { MathOperationsIcon } from "@phosphor-icons/react/dist/csr/MathOperations"; import { MusicNoteIcon } from "@phosphor-icons/react/dist/csr/MusicNote"; import { NotebookIcon } from "@phosphor-icons/react/dist/csr/Notebook"; import { PaletteIcon } from "@phosphor-icons/react/dist/csr/Palette"; import { PencilLineIcon } from "@phosphor-icons/react/dist/csr/PencilLine"; import { PencilSimpleIcon } from "@phosphor-icons/react/dist/csr/PencilSimple"; import { PersonIcon } from "@phosphor-icons/react/dist/csr/Person"; import { ScrollIcon } from "@phosphor-icons/react/dist/csr/Scroll"; import { StarIcon } from "@phosphor-icons/react/dist/csr/Star"; import { TestTubeIcon } from "@phosphor-icons/react/dist/csr/TestTube"; import { TrashIcon } from "@phosphor-icons/react/dist/csr/Trash"; import { jsx } from "react/jsx-runtime"; var PHOSPHOR_ICONS = { ArticleNyTimes: ArticleNyTimesIcon, Atom: AtomIcon, Basketball: BasketballIcon, Book: BookIcon, BookBookmark: BookBookmarkIcon, BookOpen: BookOpenIcon, Calculator: CalculatorIcon, CastleTurret: CastleTurretIcon, ChartLine: ChartLineIcon, ChatText: ChatTextIcon, CheckCircle: CheckCircleIcon, CheckSquare: CheckSquareIcon, CircleHalf: CircleHalfIcon, Clock: ClockIcon, Cylinder: CylinderIcon, DribbbleLogo: DribbbleLogoIcon, Flask: FlaskIcon, Globe: GlobeIcon, GlobeHemisphereWest: GlobeHemisphereWestIcon, GraduationCap: GraduationCapIcon, Heart: HeartIcon, Leaf: LeafIcon, Lightbulb: LightbulbIcon, Lightning: LightningIcon, MapPin: MapPinIcon, MathOperations: MathOperationsIcon, MusicNote: MusicNoteIcon, Notebook: NotebookIcon, Palette: PaletteIcon, PencilLine: PencilLineIcon, PencilSimple: PencilSimpleIcon, Person: PersonIcon, Scroll: ScrollIcon, Star: StarIcon, TestTube: TestTubeIcon, Trash: TrashIcon }; var CUSTOM_ICONS = { Chat_PT: ChatPT, Chat_EN: ChatEN, Chat_ES: ChatES, BookOpenText, Microscope, HeadCircuit }; var IconRender = ({ iconName, color = "#000000", size = 24, weight = "regular" }) => { if (!iconName) { return /* @__PURE__ */ jsx(QuestionIcon, { size, color, weight }); } if (typeof iconName === "string") { const PhosphorIcon = PHOSPHOR_ICONS[iconName]; if (PhosphorIcon) { return /* @__PURE__ */ jsx(PhosphorIcon, { size, color, weight }); } const CustomIcon = CUSTOM_ICONS[iconName]; if (CustomIcon) { return /* @__PURE__ */ jsx(CustomIcon, { size, color }); } return /* @__PURE__ */ jsx(QuestionIcon, { size, color, weight }); } else { return cloneElement(iconName, { size, color: "currentColor" }); } }; var IconRender_default = IconRender; export { IconRender, IconRender_default }; //# sourceMappingURL=chunk-QEZJZHJG.mjs.map