amis-rpc-design/node_modules/awesome-react-icons/lib/cjs/Icon.js
2023-10-07 19:42:30 +08:00

186 lines
8.5 KiB
JavaScript

"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.icons = void 0;
var React = __importStar(require("react"));
var EditPencilSimple_1 = __importDefault(require("./icons/EditPencilSimple"));
var CornerRightDown_1 = __importDefault(require("./icons/CornerRightDown"));
var CloudLightning_1 = __importDefault(require("./icons/CloudLightning"));
var CornerLeftDown_1 = __importDefault(require("./icons/CornerLeftDown"));
var MessageCircle_1 = __importDefault(require("./icons/MessageCircle"));
var MessageSquare_1 = __importDefault(require("./icons/MessageSquare"));
var CornerRightUp_1 = __importDefault(require("./icons/CornerRightUp"));
var CornerLeftUp_1 = __importDefault(require("./icons/CornerLeftUp"));
var ExternalLink_1 = __importDefault(require("./icons/ExternalLink"));
var MoreVertical_1 = __importDefault(require("./icons/MoreVertical"));
var ChevronDown_1 = __importDefault(require("./icons/ChevronDown"));
var CheckCircle_1 = __importDefault(require("./icons/CheckCircle"));
var CheckSquare_1 = __importDefault(require("./icons/CheckSquare"));
var SmartPhone_1 = __importDefault(require("./icons/SmartPhone"));
var HelpCircle_1 = __importDefault(require("./icons/HelpCircle"));
var ArrowRight_1 = __importDefault(require("./icons/ArrowRight"));
var TrashOther_1 = __importDefault(require("./icons/TrashOther"));
var ShareOther_1 = __importDefault(require("./icons/ShareOther"));
var ThumbsDown_1 = __importDefault(require("./icons/ThumbsDown"));
var Instagram_1 = __importDefault(require("./icons/Instagram"));
var ArrowLeft_1 = __importDefault(require("./icons/ArrowLeft"));
var Briefcase_1 = __importDefault(require("./icons/Briefcase"));
var ChevronUp_1 = __importDefault(require("./icons/ChevronUp"));
var CloudSnow_1 = __importDefault(require("./icons/CloudSnow"));
var ArrowDown_1 = __importDefault(require("./icons/ArrowDown"));
var ThumbsUp_1 = __importDefault(require("./icons/ThumbsUp"));
var Activity_1 = __importDefault(require("./icons/Activity"));
var Calendar_1 = __importDefault(require("./icons/Calendar"));
var Settings_1 = __importDefault(require("./icons/Settings"));
var Facebook_1 = __importDefault(require("./icons/Facebook"));
var WhatsApp_1 = __importDefault(require("./icons/WhatsApp"));
var Twitter_1 = __importDefault(require("./icons/Twitter"));
var BellOff_1 = __importDefault(require("./icons/BellOff"));
var ArrowUp_1 = __importDefault(require("./icons/ArrowUp"));
var YouTube_1 = __importDefault(require("./icons/YouTube"));
var Burger_1 = __importDefault(require("./icons/Burger"));
var Coffee_1 = __importDefault(require("./icons/Coffee"));
var Circle_1 = __importDefault(require("./icons/Circle"));
var EyeOff_1 = __importDefault(require("./icons/EyeOff"));
var LogOut_1 = __importDefault(require("./icons/LogOut"));
var MapPin_1 = __importDefault(require("./icons/MapPin"));
var Search_1 = __importDefault(require("./icons/Search"));
var Trash_1 = __importDefault(require("./icons/Trash"));
var Users_1 = __importDefault(require("./icons/Users"));
var Power_1 = __importDefault(require("./icons/Power"));
var Watch_1 = __importDefault(require("./icons/Watch"));
var Radio_1 = __importDefault(require("./icons/Radio"));
var Phone_1 = __importDefault(require("./icons/Phone"));
var Minus_1 = __importDefault(require("./icons/Minus"));
var Heart_1 = __importDefault(require("./icons/Heart"));
var LogIn_1 = __importDefault(require("./icons/LogIn"));
var Check_1 = __importDefault(require("./icons/Check"));
var Inbox_1 = __importDefault(require("./icons/Inbox"));
var Lock_1 = __importDefault(require("./icons/Lock"));
var User_1 = __importDefault(require("./icons/User"));
var Plus_1 = __importDefault(require("./icons/Plus"));
var Star_1 = __importDefault(require("./icons/Star"));
var Book_1 = __importDefault(require("./icons/Book"));
var Bell_1 = __importDefault(require("./icons/Bell"));
var Mail_1 = __importDefault(require("./icons/Mail"));
var Send_1 = __importDefault(require("./icons/Send"));
var Tag_1 = __importDefault(require("./icons/Tag"));
var Sun_1 = __importDefault(require("./icons/Sun"));
var Eye_1 = __importDefault(require("./icons/Eye"));
var X_1 = __importDefault(require("./icons/X"));
exports.icons = {
activity: Activity_1.default,
'arrow-down': ArrowDown_1.default,
'arrow-left': ArrowLeft_1.default,
'arrow-right': ArrowRight_1.default,
'arrow-up': ArrowUp_1.default,
bell: Bell_1.default,
'bell-off': BellOff_1.default,
book: Book_1.default,
briefcase: Briefcase_1.default,
burger: Burger_1.default,
calendar: Calendar_1.default,
check: Check_1.default,
'check-circle': CheckCircle_1.default,
'check-square': CheckSquare_1.default,
'chevron-down': ChevronDown_1.default,
'chevron-up': ChevronUp_1.default,
circle: Circle_1.default,
'cloud-lightning': CloudLightning_1.default,
'cloud-snow': CloudSnow_1.default,
coffee: Coffee_1.default,
'corner-left-down': CornerLeftDown_1.default,
'corner-left-up': CornerLeftUp_1.default,
'corner-right-down': CornerRightDown_1.default,
'corner-right-up': CornerRightUp_1.default,
'edit-pencil-simple': EditPencilSimple_1.default,
'external-link': ExternalLink_1.default,
eye: Eye_1.default,
'eye-off': EyeOff_1.default,
facebook: Facebook_1.default,
heart: Heart_1.default,
'help-circle': HelpCircle_1.default,
inbox: Inbox_1.default,
instagram: Instagram_1.default,
lock: Lock_1.default,
'log-in': LogIn_1.default,
'log-out': LogOut_1.default,
mail: Mail_1.default,
'map-pin': MapPin_1.default,
'message-circle': MessageCircle_1.default,
'message-square': MessageSquare_1.default,
minus: Minus_1.default,
'more-vertical': MoreVertical_1.default,
phone: Phone_1.default,
plus: Plus_1.default,
power: Power_1.default,
radio: Radio_1.default,
search: Search_1.default,
send: Send_1.default,
settings: Settings_1.default,
'share-other': ShareOther_1.default,
smartphone: SmartPhone_1.default,
star: Star_1.default,
sun: Sun_1.default,
tag: Tag_1.default,
trash: Trash_1.default,
'thumbs-up': ThumbsUp_1.default,
'thumbs-down': ThumbsDown_1.default,
'trash-other': TrashOther_1.default,
twitter: Twitter_1.default,
user: User_1.default,
users: Users_1.default,
watch: Watch_1.default,
whatsapp: WhatsApp_1.default,
x: X_1.default,
youtube: YouTube_1.default,
};
var Icon = function (_a) {
var name = _a.name, rootDivClassName = _a.rootDivClassName, rest = __rest(_a, ["name", "rootDivClassName"]);
return (React.createElement("div", { className: rootDivClassName || 'icon-wrapper' }, React.createElement(exports.icons[name], __assign({}, rest))));
};
exports.default = Icon;