@hkyhy/marsun-components-core 0.1.12 → 0.1.17
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/README.md +31 -6
- package/dist/components/AgentHub/Chat/Action/CreateButton.js +8 -0
- package/dist/components/AgentHub/Chat/Action/CreateButton.js.map +1 -0
- package/dist/components/AgentHub/Chat/Action/ManageActionButtons.js +20 -0
- package/dist/components/AgentHub/Chat/Action/ManageActionButtons.js.map +1 -0
- package/dist/components/AgentHub/Chat/Action/SessionActionButtons.js +24 -0
- package/dist/components/AgentHub/Chat/Action/SessionActionButtons.js.map +1 -0
- package/dist/components/AgentHub/Chat/Action/handlers.d.ts +0 -5
- package/dist/components/AgentHub/Chat/Detail/ChatInput/index.js +65 -0
- package/dist/components/AgentHub/Chat/Detail/ChatInput/index.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/ChatInput/style.module.scss.js +12 -0
- package/dist/components/AgentHub/Chat/Detail/ChatInput/style.module.scss.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/ChatPanel/index.d.ts +31 -0
- package/dist/components/AgentHub/Chat/Detail/ChatPanel/index.js +85 -0
- package/dist/components/AgentHub/Chat/Detail/ChatPanel/index.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/ChatPanel/style.module.scss.js +14 -0
- package/dist/components/AgentHub/Chat/Detail/ChatPanel/style.module.scss.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/ChatSuggestionRow/index.d.ts +9 -0
- package/dist/components/AgentHub/Chat/Detail/ChatSuggestionRow/index.js +22 -0
- package/dist/components/AgentHub/Chat/Detail/ChatSuggestionRow/index.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/ChatSuggestionRow/style.module.scss.js +8 -0
- package/dist/components/AgentHub/Chat/Detail/ChatSuggestionRow/style.module.scss.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/CitationContent/index.js +21 -0
- package/dist/components/AgentHub/Chat/Detail/CitationContent/index.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/CitationContent/style.module.scss.js +8 -0
- package/dist/components/AgentHub/Chat/Detail/CitationContent/style.module.scss.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/CitationInlineBadge/index.js +17 -0
- package/dist/components/AgentHub/Chat/Detail/CitationInlineBadge/index.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/CitationInlineBadge/style.module.scss.js +7 -0
- package/dist/components/AgentHub/Chat/Detail/CitationInlineBadge/style.module.scss.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/CitationMarkdownContent/index.js +68 -0
- package/dist/components/AgentHub/Chat/Detail/CitationMarkdownContent/index.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/CitationMarkdownContent/style.module.scss.js +7 -0
- package/dist/components/AgentHub/Chat/Detail/CitationMarkdownContent/style.module.scss.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/CitationPanel/index.js +247 -0
- package/dist/components/AgentHub/Chat/Detail/CitationPanel/index.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/CitationPanel/style.module.scss.js +31 -0
- package/dist/components/AgentHub/Chat/Detail/CitationPanel/style.module.scss.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/MermaidBlock/index.js +43 -0
- package/dist/components/AgentHub/Chat/Detail/MermaidBlock/index.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/MermaidBlock/style.module.scss.js +8 -0
- package/dist/components/AgentHub/Chat/Detail/MermaidBlock/style.module.scss.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/MessageActions/index.js +103 -0
- package/dist/components/AgentHub/Chat/Detail/MessageActions/index.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/MessageActions/style.module.scss.js +14 -0
- package/dist/components/AgentHub/Chat/Detail/MessageActions/style.module.scss.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/MessageEditPopover/index.js +58 -0
- package/dist/components/AgentHub/Chat/Detail/MessageEditPopover/index.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/MessageEditPopover/style.module.scss.js +9 -0
- package/dist/components/AgentHub/Chat/Detail/MessageEditPopover/style.module.scss.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/MessageItem/index.js +309 -0
- package/dist/components/AgentHub/Chat/Detail/MessageItem/index.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/MessageItem/style.module.scss.js +24 -0
- package/dist/components/AgentHub/Chat/Detail/MessageItem/style.module.scss.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/ThinkingSection/index.js +122 -0
- package/dist/components/AgentHub/Chat/Detail/ThinkingSection/index.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/ThinkingSection/style.module.scss.js +25 -0
- package/dist/components/AgentHub/Chat/Detail/ThinkingSection/style.module.scss.js.map +1 -0
- package/dist/components/AgentHub/Chat/Detail/index.d.ts +12 -0
- package/dist/components/AgentHub/Chat/Form/Form.js +37 -0
- package/dist/components/AgentHub/Chat/Form/Form.js.map +1 -0
- package/dist/components/AgentHub/Chat/List/ChatCard/index.js +86 -0
- package/dist/components/AgentHub/Chat/List/ChatCard/index.js.map +1 -0
- package/dist/components/AgentHub/Chat/List/ChatCard/style.module.scss.js +25 -0
- package/dist/components/AgentHub/Chat/List/ChatCard/style.module.scss.js.map +1 -0
- package/dist/components/AgentHub/Chat/List/FilterBar.js +17 -0
- package/dist/components/AgentHub/Chat/List/FilterBar.js.map +1 -0
- package/dist/components/AgentHub/Chat/List/SessionSidebar/index.js +156 -0
- package/dist/components/AgentHub/Chat/List/SessionSidebar/index.js.map +1 -0
- package/dist/components/AgentHub/Chat/List/SessionSidebar/style.module.scss.js +28 -0
- package/dist/components/AgentHub/Chat/List/SessionSidebar/style.module.scss.js.map +1 -0
- package/dist/components/AgentHub/Chat/Modal/FormModal.js +58 -0
- package/dist/components/AgentHub/Chat/Modal/FormModal.js.map +1 -0
- package/dist/components/AgentHub/Chat/hooks/useAutoScrollToBottom.js +35 -0
- package/dist/components/AgentHub/Chat/hooks/useAutoScrollToBottom.js.map +1 -0
- package/dist/components/AgentHub/Chat/hooks/useChat.js +51 -0
- package/dist/components/AgentHub/Chat/hooks/useChat.js.map +1 -0
- package/dist/components/AgentHub/Chat/hooks/useChatSessions.js +60 -0
- package/dist/components/AgentHub/Chat/hooks/useChatSessions.js.map +1 -0
- package/dist/components/AgentHub/Chat/hooks/useSSECompletion.js +69 -0
- package/dist/components/AgentHub/Chat/hooks/useSSECompletion.js.map +1 -0
- package/dist/components/AgentHub/Chat/hooks/useTypewriter.js +39 -0
- package/dist/components/AgentHub/Chat/hooks/useTypewriter.js.map +1 -0
- package/dist/components/AgentHub/Chat/index.d.ts +1 -0
- package/dist/components/AgentHub/Chat/utils/citationContent.js +169 -0
- package/dist/components/AgentHub/Chat/utils/citationContent.js.map +1 -0
- package/dist/components/AgentHub/Chat/utils/messageContent.js +85 -0
- package/dist/components/AgentHub/Chat/utils/messageContent.js.map +1 -0
- package/dist/components/AgentHub/Chat/utils/sanitizeMermaidChart.js +22 -0
- package/dist/components/AgentHub/Chat/utils/sanitizeMermaidChart.js.map +1 -0
- package/dist/components/AgentHub/Chat/utils/sessionMessages.js +151 -0
- package/dist/components/AgentHub/Chat/utils/sessionMessages.js.map +1 -0
- package/dist/components/AgentHub/KnowledgeBase/Action/CreateButton.js +8 -0
- package/dist/components/AgentHub/KnowledgeBase/Action/CreateButton.js.map +1 -0
- package/dist/components/AgentHub/KnowledgeBase/Action/ManageActionButtons.js +20 -0
- package/dist/components/AgentHub/KnowledgeBase/Action/ManageActionButtons.js.map +1 -0
- package/dist/components/AgentHub/KnowledgeBase/Detail/DocumentTable/index.js +110 -0
- package/dist/components/AgentHub/KnowledgeBase/Detail/DocumentTable/index.js.map +1 -0
- package/dist/components/AgentHub/KnowledgeBase/Detail/DocumentTable/style.module.scss.js +7 -0
- package/dist/components/AgentHub/KnowledgeBase/Detail/DocumentTable/style.module.scss.js.map +1 -0
- package/dist/components/AgentHub/KnowledgeBase/Detail/ParseStatusTag/index.js +18 -0
- package/dist/components/AgentHub/KnowledgeBase/Detail/ParseStatusTag/index.js.map +1 -0
- package/dist/components/AgentHub/KnowledgeBase/Detail/ParseStatusTag/style.module.scss.js +7 -0
- package/dist/components/AgentHub/KnowledgeBase/Detail/ParseStatusTag/style.module.scss.js.map +1 -0
- package/dist/components/AgentHub/KnowledgeBase/Form/Form.js +31 -0
- package/dist/components/AgentHub/KnowledgeBase/Form/Form.js.map +1 -0
- package/dist/components/AgentHub/KnowledgeBase/List/FilterBar.js +17 -0
- package/dist/components/AgentHub/KnowledgeBase/List/FilterBar.js.map +1 -0
- package/dist/components/AgentHub/KnowledgeBase/List/KnowledgeCard/index.js +118 -0
- package/dist/components/AgentHub/KnowledgeBase/List/KnowledgeCard/index.js.map +1 -0
- package/dist/components/AgentHub/KnowledgeBase/List/KnowledgeCard/style.module.scss.js +23 -0
- package/dist/components/AgentHub/KnowledgeBase/List/KnowledgeCard/style.module.scss.js.map +1 -0
- package/dist/components/AgentHub/KnowledgeBase/Modal/FormModal.js +47 -0
- package/dist/components/AgentHub/KnowledgeBase/Modal/FormModal.js.map +1 -0
- package/dist/components/AgentHub/KnowledgeBase/constants/types.js +28 -0
- package/dist/components/AgentHub/KnowledgeBase/constants/types.js.map +1 -0
- package/dist/components/AgentHub/KnowledgeBase/hooks/useKBDocuments.js +21 -0
- package/dist/components/AgentHub/KnowledgeBase/hooks/useKBDocuments.js.map +1 -0
- package/dist/components/AgentHub/KnowledgeBase/hooks/useKnowledgeBase.js +32 -0
- package/dist/components/AgentHub/KnowledgeBase/hooks/useKnowledgeBase.js.map +1 -0
- package/dist/components/Filter/CommonFilter/index.js +34 -30
- package/dist/components/Filter/CommonFilter/index.js.map +1 -1
- package/dist/components/Filter/CommonFilter/style.module.scss.js +17 -16
- package/dist/components/Filter/CommonFilter/style.module.scss.js.map +1 -1
- package/dist/components/Filter/FilterDateRange/index.d.ts +2 -0
- package/dist/components/Filter/FilterDateRange/index.js +62 -51
- package/dist/components/Filter/FilterDateRange/index.js.map +1 -1
- package/dist/components/Filter/FilterSelect/index.d.ts +8 -2
- package/dist/components/Filter/FilterSelect/index.js +163 -116
- package/dist/components/Filter/FilterSelect/index.js.map +1 -1
- package/dist/components/Filter/FilterSelect/style.module.scss.js +12 -10
- package/dist/components/Filter/FilterSelect/style.module.scss.js.map +1 -1
- package/dist/components/Filter/FilterTrigger/index.d.ts +2 -2
- package/dist/components/Filter/FilterTrigger/index.js.map +1 -1
- package/dist/components/Filter/FilterTrigger/style.module.scss.js +4 -4
- package/dist/components/Filter/index.d.ts +1 -1
- package/dist/components/Filter/types.d.ts +2 -0
- package/dist/components/Filter/types.js.map +1 -1
- package/dist/components/Filter/useFilterState.d.ts +2 -0
- package/dist/components/Filter/useFilterState.js +27 -26
- package/dist/components/Filter/useFilterState.js.map +1 -1
- package/dist/components/Icons/index.js +153 -145
- package/dist/components/Icons/index.js.map +1 -1
- package/dist/components/TooltipInfo/TooltipInfo.js +29 -20
- package/dist/components/TooltipInfo/TooltipInfo.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +295 -186
- package/dist/index.js.map +1 -1
- package/dist/marsun-components-core.css +1 -1
- package/dist/styles/global.css +1 -1
- package/dist/theme/constants.d.ts +47 -1
- package/dist/theme/constants.js +50 -5
- package/dist/theme/constants.js.map +1 -1
- package/dist/theme/index.d.ts +2 -2
- package/dist/theme/index.js +8 -6
- package/dist/theme/theme.d.ts +10 -0
- package/dist/theme/theme.js +24 -34
- package/dist/theme/theme.js.map +1 -1
- package/dist/theme/tokens.css +139 -0
- package/package.json +7 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFilterState.js","sources":["../../../src/components/Filter/useFilterState.tsx"],"sourcesContent":["import React, { createContext, useCallback, useContext, useMemo, useState } from 'react';\nimport type { SelectedItem } from './types';\n\n/**\n * 筛选项注册信息\n */\ninterface FilterRegistration {\n /** 筛选项标签 */\n label: string;\n /** 当前值的展示文案(如 \"技术中心\" / \"审核员\"),为空则不显示该条目 */\n valueLabel: string;\n /** 移除回调 */\n onRemove: () => void;\n}\n\n/** Context 类型 */\ninterface FilterContextValue {\n /** 注册筛选条件(有值时调用) */\n register: (key: string, reg: FilterRegistration) => void;\n /** 注销筛选条件(组件卸载或值清空时调用) */\n unregister: (key: string) => void;\n}\n\nconst FilterContext = createContext<FilterContextValue | null>(null);\n\n/** 供子组件使用 —— 在 CommonFilter 内部注册自身状态(不在 CommonFilter 内时安全返回 null) */\nexport function useFilterRegister(): FilterContextValue | null {\n return useContext(FilterContext);\n}\n\n// ──────────────────── Hook ────────────────────\n\ninterface UseFilterStateReturn {\n /** 所有已注册的筛选项 */\n registrations: Record<string, FilterRegistration>;\n /** 已选条目数组(过滤掉无 valueLabel 的项) */\n selectedItems: SelectedItem[];\n /** 注册方法 */\n register: (key: string, reg: FilterRegistration) => void;\n /** 注销方法 */\n unregister: (key: string) => void;\n /** 清空全部 */\n clearAll: () => void;\n}\n\n/**\n * 筛选状态管理 Hook\n *\n * 各 Filter 子组件通过 `register(key, { label, valueLabel, onRemove })` 注册,\n * CommonFilter 自动聚合成 `selectedItems` 展示。\n */\nexport function useFilterState(): UseFilterStateReturn {\n const [registrations, setRegistrations] = useState<Record<string, FilterRegistration>>({});\n\n const register = useCallback((key: string, reg: FilterRegistration) => {\n setRegistrations((prev) => {\n const existing = prev[key];\n if (existing
|
|
1
|
+
{"version":3,"file":"useFilterState.js","sources":["../../../src/components/Filter/useFilterState.tsx"],"sourcesContent":["import React, { createContext, useCallback, useContext, useMemo, useState } from 'react';\nimport type { SelectedItem } from './types';\n\n/**\n * 筛选项注册信息\n */\ninterface FilterRegistration {\n /** 筛选项标签 */\n label: string;\n /** 当前值的展示文案(如 \"技术中心\" / \"审核员\"),为空则不显示该条目 */\n valueLabel: string;\n /** 移除回调 */\n onRemove: () => void;\n /** 是否允许移除标签,默认 true */\n removable?: boolean;\n}\n\n/** Context 类型 */\ninterface FilterContextValue {\n /** 注册筛选条件(有值时调用) */\n register: (key: string, reg: FilterRegistration) => void;\n /** 注销筛选条件(组件卸载或值清空时调用) */\n unregister: (key: string) => void;\n}\n\nconst FilterContext = createContext<FilterContextValue | null>(null);\n\n/** 供子组件使用 —— 在 CommonFilter 内部注册自身状态(不在 CommonFilter 内时安全返回 null) */\nexport function useFilterRegister(): FilterContextValue | null {\n return useContext(FilterContext);\n}\n\n// ──────────────────── Hook ────────────────────\n\ninterface UseFilterStateReturn {\n /** 所有已注册的筛选项 */\n registrations: Record<string, FilterRegistration>;\n /** 已选条目数组(过滤掉无 valueLabel 的项) */\n selectedItems: SelectedItem[];\n /** 注册方法 */\n register: (key: string, reg: FilterRegistration) => void;\n /** 注销方法 */\n unregister: (key: string) => void;\n /** 清空全部 */\n clearAll: () => void;\n}\n\n/**\n * 筛选状态管理 Hook\n *\n * 各 Filter 子组件通过 `register(key, { label, valueLabel, onRemove })` 注册,\n * CommonFilter 自动聚合成 `selectedItems` 展示。\n */\nexport function useFilterState(): UseFilterStateReturn {\n const [registrations, setRegistrations] = useState<Record<string, FilterRegistration>>({});\n\n const register = useCallback((key: string, reg: FilterRegistration) => {\n setRegistrations((prev) => {\n const existing = prev[key];\n if (\n existing &&\n existing.label === reg.label &&\n existing.valueLabel === reg.valueLabel &&\n (existing.removable ?? true) === (reg.removable ?? true) &&\n existing.onRemove === reg.onRemove\n ) {\n return prev;\n }\n return { ...prev, [key]: reg };\n });\n }, []);\n\n const unregister = useCallback((key: string) => {\n setRegistrations((prev) => {\n if (!(key in prev)) return prev;\n const next = { ...prev };\n delete next[key];\n return next;\n });\n }, []);\n\n const clearAll = useCallback(() => {\n // 依次调用每项的 onRemove\n Object.values(registrations).forEach((r) => r.onRemove());\n setRegistrations({});\n }, [registrations]);\n\n const selectedItems = useMemo<SelectedItem[]>(() => {\n return Object.entries(registrations)\n .filter(([, r]) => !!r.valueLabel)\n .map(([key, r]) => ({\n key,\n label: r.label,\n valueLabel: r.valueLabel,\n onRemove: r.onRemove,\n removable: r.removable ?? true,\n }));\n }, [registrations]);\n\n return { registrations, selectedItems, register, unregister, clearAll };\n}\n\n// ──────────────────── Provider ────────────────────\n\ninterface FilterProviderProps {\n children: React.ReactNode;\n /** register / unregister 方法 */\n ctx: Pick<UseFilterStateReturn, 'register' | 'unregister'>;\n}\n\n/** 内部 Provider,将 register/unregister 注入给子组件 */\nexport const FilterProvider: React.FC<FilterProviderProps> = ({ children, ctx }) => (\n <FilterContext.Provider value={ctx}>{children}</FilterContext.Provider>\n);\n\nexport default useFilterState;\n"],"names":["FilterContext","createContext","useFilterRegister","useContext","useFilterState","registrations","setRegistrations","useState","register","useCallback","key","reg","prev","existing","unregister","next","clearAll","r","selectedItems","useMemo","FilterProvider","children","ctx","jsx"],"mappings":";;AAyBA,MAAMA,IAAgBC,EAAyC,IAAI;AAG5D,SAASC,IAA+C;AAC7D,SAAOC,EAAWH,CAAa;AACjC;AAuBO,SAASI,IAAuC;AACrD,QAAM,CAACC,GAAeC,CAAgB,IAAIC,EAA6C,CAAA,CAAE,GAEnFC,IAAWC,EAAY,CAACC,GAAaC,MAA4B;AACrE,IAAAL,EAAiB,CAACM,MAAS;AACzB,YAAMC,IAAWD,EAAKF,CAAG;AACzB,aACEG,KACAA,EAAS,UAAUF,EAAI,SACvBE,EAAS,eAAeF,EAAI,eAC3BE,EAAS,aAAa,SAAWF,EAAI,aAAa,OACnDE,EAAS,aAAaF,EAAI,WAEnBC,IAEF,EAAE,GAAGA,GAAM,CAACF,CAAG,GAAGC,EAAA;AAAA,IAC3B,CAAC;AAAA,EACH,GAAG,CAAA,CAAE,GAECG,IAAaL,EAAY,CAACC,MAAgB;AAC9C,IAAAJ,EAAiB,CAACM,MAAS;AACzB,UAAI,EAAEF,KAAOE,GAAO,QAAOA;AAC3B,YAAMG,IAAO,EAAE,GAAGH,EAAA;AAClB,oBAAOG,EAAKL,CAAG,GACRK;AAAA,IACT,CAAC;AAAA,EACH,GAAG,CAAA,CAAE,GAECC,IAAWP,EAAY,MAAM;AAEjC,WAAO,OAAOJ,CAAa,EAAE,QAAQ,CAACY,MAAMA,EAAE,UAAU,GACxDX,EAAiB,CAAA,CAAE;AAAA,EACrB,GAAG,CAACD,CAAa,CAAC,GAEZa,IAAgBC,EAAwB,MACrC,OAAO,QAAQd,CAAa,EAChC,OAAO,CAAC,CAAA,EAAGY,CAAC,MAAM,CAAC,CAACA,EAAE,UAAU,EAChC,IAAI,CAAC,CAACP,GAAKO,CAAC,OAAO;AAAA,IAClB,KAAAP;AAAA,IACA,OAAOO,EAAE;AAAA,IACT,YAAYA,EAAE;AAAA,IACd,UAAUA,EAAE;AAAA,IACZ,WAAWA,EAAE,aAAa;AAAA,EAAA,EAC1B,GACH,CAACZ,CAAa,CAAC;AAElB,SAAO,EAAE,eAAAA,GAAe,eAAAa,GAAe,UAAAV,GAAU,YAAAM,GAAY,UAAAE,EAAA;AAC/D;AAWO,MAAMI,IAAgD,CAAC,EAAE,UAAAC,GAAU,KAAAC,QACxE,gBAAAC,EAACvB,EAAc,UAAd,EAAuB,OAAOsB,GAAM,UAAAD,EAAA,CAAS;"}
|
|
@@ -1,24 +1,32 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
|
|
3
|
-
import Te from "react";
|
|
1
|
+
import { jsx as $ } from "react/jsx-runtime";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { ArrowLeft as u, ArrowLeftRight as p, BarChart3 as f, BookOpen as L, Bot as g, Check as S, ChevronDown as w, ChevronLeft as m, ChevronRight as F, ChevronUp as U, CircleAlert as P, CircleCheck as k, CircleHelp as y, CirclePlay as b, CircleX as D, ClipboardCheck as R, Clock as v, CloudDownload as T, CloudUpload as I, Code as A, Copy as O, Crown as H, Database as B, Download as x, Eye as M, File as q, FileArchive as X, FileImage as E, FileSpreadsheet as N, FileText as z, Flag as G, Flame as j, Folder as W, FolderOpen as _, Hash as Y, House as J, Import as K, Inbox as Q, Info as V, LayoutDashboard as Z, LayoutGrid as ee, Loader2 as oe, Lock as se, LogOut as ae, MessageCircle as re, MessageSquare as te, PanelLeftClose as ne, PanelLeftOpen as le, Pause as ce, Pencil as ie, Plus as Ce, Presentation as de, RefreshCw as he, RotateCw as $e, Send as ue, Settings as pe, Shield as fe, ShieldCheck as Le, SlidersHorizontal as ge, Square as Se, Star as we, ThumbsDown as me, ThumbsUp as Fe, Trash2 as Ue, Trophy as Pe, Undo2 as ke, Upload as ye, User as be, UserPlus as De, UserRoundCog as Re, Users as ve, X as Te } from "lucide-react";
|
|
4
|
+
import Ie from "react";
|
|
4
5
|
const e = (s, o) => {
|
|
5
|
-
const a =
|
|
6
|
-
({ spin: l, rotate: r, className: c, style:
|
|
6
|
+
const a = Ie.forwardRef(
|
|
7
|
+
({ spin: l, rotate: r, className: c, style: i, strokeWidth: C, fill: d, color: t, ...n }, h) => /* @__PURE__ */ $(
|
|
7
8
|
s,
|
|
8
9
|
{
|
|
9
|
-
ref:
|
|
10
|
+
ref: h,
|
|
10
11
|
size: "1em",
|
|
11
|
-
className: [c, l ? "animate-spin" : ""].filter(Boolean).join(" ") || void 0,
|
|
12
|
-
style:
|
|
12
|
+
className: ["marsun-icon", c, l ? "animate-spin" : ""].filter(Boolean).join(" ") || void 0,
|
|
13
|
+
style: {
|
|
14
|
+
display: "inline-block",
|
|
15
|
+
verticalAlign: "-0.125em",
|
|
16
|
+
...t ? {} : { color: "inherit" },
|
|
17
|
+
...r ? { transform: `rotate(${r}deg)` } : null,
|
|
18
|
+
...i
|
|
19
|
+
},
|
|
20
|
+
color: t ?? "currentColor",
|
|
13
21
|
strokeWidth: C ?? (o != null && o.filled ? 0 : 2),
|
|
14
|
-
fill:
|
|
22
|
+
fill: d ?? (o != null && o.filled ? "currentColor" : "none"),
|
|
15
23
|
"aria-hidden": n["aria-label"] ? void 0 : !0,
|
|
16
24
|
...n
|
|
17
25
|
}
|
|
18
26
|
)
|
|
19
27
|
);
|
|
20
28
|
return a.displayName = s.displayName ?? s.name, a;
|
|
21
|
-
},
|
|
29
|
+
}, Ae = e(u), Oe = e(p), He = e(f), Be = e(L), xe = e(g), Me = e(S), qe = e(w), Xe = e(m), Ee = e(F), Ne = e(U), ze = e(P), Ge = e(k), je = e(y), We = e(b), _e = e(D), Ye = e(R), Je = e(v), Ke = e(T), Qe = e(I), Ve = e(A), Ze = e(O), eo = e(H, { filled: !0 }), oo = e(B), so = e(x), ao = e(M), ro = e(q), to = e(X), no = e(E), lo = e(N), co = e(z), io = e(G), Co = e(j), ho = e(W), $o = e(_), uo = e(Y), po = e(J), fo = e(K), Lo = e(Q), go = e(V), So = e(Z), wo = e(ee), mo = e(oe), Fo = e(se), Uo = e(ae), Po = e(re), ko = e(te), yo = e(ne), bo = e(le), Do = e(ce, { filled: !0 }), Ro = e(ie), vo = e(Ce), To = e(de), Io = e(he), Ao = e($e), Oo = e(ue), Ho = e(pe), Bo = e(fe), xo = e(Le), Mo = e(ge), qo = e(Se, { filled: !0 }), Xo = e(we, { filled: !0 }), Eo = e(me), No = e(Fe), zo = e(Ue), Go = e(Pe), jo = e(ke), Wo = e(ye), _o = e(be), Yo = e(De), Jo = e(Re), Ko = e(ve), Qo = e(Te), ss = [
|
|
22
30
|
"ArrowLeft",
|
|
23
31
|
"ArrowLeftRight",
|
|
24
32
|
"BarChart3",
|
|
@@ -91,155 +99,155 @@ const e = (s, o) => {
|
|
|
91
99
|
"UserRoundCog",
|
|
92
100
|
"Users",
|
|
93
101
|
"X"
|
|
94
|
-
],
|
|
95
|
-
ArrowLeft:
|
|
102
|
+
], as = {
|
|
103
|
+
ArrowLeft: Ae,
|
|
96
104
|
ArrowLeftRight: Oe,
|
|
97
|
-
BarChart3:
|
|
98
|
-
BookOpen:
|
|
99
|
-
Bot:
|
|
100
|
-
Check:
|
|
101
|
-
ChevronDown:
|
|
102
|
-
ChevronLeft:
|
|
103
|
-
ChevronRight:
|
|
104
|
-
ChevronUp:
|
|
105
|
-
CircleAlert:
|
|
106
|
-
CircleCheck:
|
|
107
|
-
CircleHelp:
|
|
108
|
-
CirclePlay:
|
|
109
|
-
CircleX:
|
|
110
|
-
ClipboardCheck:
|
|
111
|
-
Clock:
|
|
112
|
-
CloudDownload:
|
|
113
|
-
CloudUpload:
|
|
114
|
-
Code:
|
|
115
|
-
Copy:
|
|
116
|
-
Crown:
|
|
117
|
-
Database:
|
|
118
|
-
Download:
|
|
119
|
-
Eye:
|
|
120
|
-
File:
|
|
121
|
-
FileArchive:
|
|
122
|
-
FileImage:
|
|
123
|
-
FileSpreadsheet:
|
|
124
|
-
FileText:
|
|
125
|
-
Flag:
|
|
105
|
+
BarChart3: He,
|
|
106
|
+
BookOpen: Be,
|
|
107
|
+
Bot: xe,
|
|
108
|
+
Check: Me,
|
|
109
|
+
ChevronDown: qe,
|
|
110
|
+
ChevronLeft: Xe,
|
|
111
|
+
ChevronRight: Ee,
|
|
112
|
+
ChevronUp: Ne,
|
|
113
|
+
CircleAlert: ze,
|
|
114
|
+
CircleCheck: Ge,
|
|
115
|
+
CircleHelp: je,
|
|
116
|
+
CirclePlay: We,
|
|
117
|
+
CircleX: _e,
|
|
118
|
+
ClipboardCheck: Ye,
|
|
119
|
+
Clock: Je,
|
|
120
|
+
CloudDownload: Ke,
|
|
121
|
+
CloudUpload: Qe,
|
|
122
|
+
Code: Ve,
|
|
123
|
+
Copy: Ze,
|
|
124
|
+
Crown: eo,
|
|
125
|
+
Database: oo,
|
|
126
|
+
Download: so,
|
|
127
|
+
Eye: ao,
|
|
128
|
+
File: ro,
|
|
129
|
+
FileArchive: to,
|
|
130
|
+
FileImage: no,
|
|
131
|
+
FileSpreadsheet: lo,
|
|
132
|
+
FileText: co,
|
|
133
|
+
Flag: io,
|
|
126
134
|
Flame: Co,
|
|
127
|
-
Folder:
|
|
128
|
-
FolderOpen:
|
|
129
|
-
Hash:
|
|
130
|
-
House:
|
|
131
|
-
Import:
|
|
132
|
-
Inbox:
|
|
133
|
-
Info:
|
|
135
|
+
Folder: ho,
|
|
136
|
+
FolderOpen: $o,
|
|
137
|
+
Hash: uo,
|
|
138
|
+
House: po,
|
|
139
|
+
Import: fo,
|
|
140
|
+
Inbox: Lo,
|
|
141
|
+
Info: go,
|
|
134
142
|
LayoutDashboard: So,
|
|
135
|
-
LayoutGrid:
|
|
136
|
-
Loader2:
|
|
143
|
+
LayoutGrid: wo,
|
|
144
|
+
Loader2: mo,
|
|
137
145
|
Lock: Fo,
|
|
138
146
|
LogOut: Uo,
|
|
139
|
-
MessageCircle:
|
|
140
|
-
MessageSquare:
|
|
141
|
-
PanelLeftClose:
|
|
142
|
-
PanelLeftOpen:
|
|
143
|
-
Pause:
|
|
144
|
-
Pencil:
|
|
145
|
-
Plus:
|
|
146
|
-
Presentation:
|
|
147
|
-
RefreshCw:
|
|
148
|
-
RotateCw:
|
|
147
|
+
MessageCircle: Po,
|
|
148
|
+
MessageSquare: ko,
|
|
149
|
+
PanelLeftClose: yo,
|
|
150
|
+
PanelLeftOpen: bo,
|
|
151
|
+
Pause: Do,
|
|
152
|
+
Pencil: Ro,
|
|
153
|
+
Plus: vo,
|
|
154
|
+
Presentation: To,
|
|
155
|
+
RefreshCw: Io,
|
|
156
|
+
RotateCw: Ao,
|
|
149
157
|
Send: Oo,
|
|
150
|
-
Settings:
|
|
151
|
-
Shield:
|
|
152
|
-
ShieldCheck:
|
|
153
|
-
SlidersHorizontal:
|
|
154
|
-
Square:
|
|
155
|
-
Star:
|
|
156
|
-
ThumbsDown:
|
|
157
|
-
ThumbsUp:
|
|
158
|
-
Trash2:
|
|
159
|
-
Trophy:
|
|
160
|
-
Undo2:
|
|
161
|
-
Upload:
|
|
162
|
-
User:
|
|
163
|
-
UserPlus:
|
|
164
|
-
UserRoundCog:
|
|
165
|
-
Users:
|
|
166
|
-
X:
|
|
158
|
+
Settings: Ho,
|
|
159
|
+
Shield: Bo,
|
|
160
|
+
ShieldCheck: xo,
|
|
161
|
+
SlidersHorizontal: Mo,
|
|
162
|
+
Square: qo,
|
|
163
|
+
Star: Xo,
|
|
164
|
+
ThumbsDown: Eo,
|
|
165
|
+
ThumbsUp: No,
|
|
166
|
+
Trash2: zo,
|
|
167
|
+
Trophy: Go,
|
|
168
|
+
Undo2: jo,
|
|
169
|
+
Upload: Wo,
|
|
170
|
+
User: _o,
|
|
171
|
+
UserPlus: Yo,
|
|
172
|
+
UserRoundCog: Jo,
|
|
173
|
+
Users: Ko,
|
|
174
|
+
X: Qo
|
|
167
175
|
};
|
|
168
176
|
export {
|
|
169
|
-
|
|
177
|
+
Ae as ArrowLeft,
|
|
170
178
|
Oe as ArrowLeftRight,
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
179
|
+
He as BarChart3,
|
|
180
|
+
Be as BookOpen,
|
|
181
|
+
xe as Bot,
|
|
182
|
+
Me as Check,
|
|
183
|
+
qe as ChevronDown,
|
|
184
|
+
Xe as ChevronLeft,
|
|
185
|
+
Ee as ChevronRight,
|
|
186
|
+
Ne as ChevronUp,
|
|
187
|
+
ze as CircleAlert,
|
|
188
|
+
Ge as CircleCheck,
|
|
189
|
+
je as CircleHelp,
|
|
190
|
+
We as CirclePlay,
|
|
191
|
+
_e as CircleX,
|
|
192
|
+
Ye as ClipboardCheck,
|
|
193
|
+
Je as Clock,
|
|
194
|
+
Ke as CloudDownload,
|
|
195
|
+
Qe as CloudUpload,
|
|
196
|
+
Ve as Code,
|
|
197
|
+
Ze as Copy,
|
|
198
|
+
eo as Crown,
|
|
199
|
+
oo as Database,
|
|
200
|
+
so as Download,
|
|
201
|
+
ao as Eye,
|
|
202
|
+
ro as File,
|
|
203
|
+
to as FileArchive,
|
|
204
|
+
no as FileImage,
|
|
205
|
+
lo as FileSpreadsheet,
|
|
206
|
+
co as FileText,
|
|
207
|
+
io as Flag,
|
|
200
208
|
Co as Flame,
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
209
|
+
ho as Folder,
|
|
210
|
+
$o as FolderOpen,
|
|
211
|
+
uo as Hash,
|
|
212
|
+
po as House,
|
|
213
|
+
ss as ICON_NAMES,
|
|
214
|
+
as as ICON_REGISTRY,
|
|
215
|
+
fo as Import,
|
|
216
|
+
Lo as Inbox,
|
|
217
|
+
go as Info,
|
|
210
218
|
So as LayoutDashboard,
|
|
211
|
-
|
|
212
|
-
|
|
219
|
+
wo as LayoutGrid,
|
|
220
|
+
mo as Loader2,
|
|
213
221
|
Fo as Lock,
|
|
214
222
|
Uo as LogOut,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
223
|
+
Po as MessageCircle,
|
|
224
|
+
ko as MessageSquare,
|
|
225
|
+
yo as PanelLeftClose,
|
|
226
|
+
bo as PanelLeftOpen,
|
|
227
|
+
Do as Pause,
|
|
228
|
+
Ro as Pencil,
|
|
229
|
+
vo as Plus,
|
|
230
|
+
To as Presentation,
|
|
231
|
+
Io as RefreshCw,
|
|
232
|
+
Ao as RotateCw,
|
|
225
233
|
Oo as Send,
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
234
|
+
Ho as Settings,
|
|
235
|
+
Bo as Shield,
|
|
236
|
+
xo as ShieldCheck,
|
|
237
|
+
Mo as SlidersHorizontal,
|
|
238
|
+
qo as Square,
|
|
239
|
+
Xo as Star,
|
|
240
|
+
Eo as ThumbsDown,
|
|
241
|
+
No as ThumbsUp,
|
|
242
|
+
zo as Trash2,
|
|
243
|
+
Go as Trophy,
|
|
244
|
+
jo as Undo2,
|
|
245
|
+
Wo as Upload,
|
|
246
|
+
_o as User,
|
|
247
|
+
Yo as UserPlus,
|
|
248
|
+
Jo as UserRoundCog,
|
|
249
|
+
Ko as Users,
|
|
250
|
+
Qo as X,
|
|
243
251
|
e as createIcon
|
|
244
252
|
};
|
|
245
253
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/Icons/index.tsx"],"sourcesContent":["import type { LucideIcon, LucideProps } from 'lucide-react';\nimport {\n ArrowLeft as ArrowLeftIcon,\n ArrowLeftRight as ArrowLeftRightIcon,\n BarChart3 as BarChart3Icon,\n BookOpen as BookOpenIcon,\n Bot as BotIcon,\n Check as CheckIcon,\n ChevronDown as ChevronDownIcon,\n ChevronLeft as ChevronLeftIcon,\n ChevronRight as ChevronRightIcon,\n ChevronUp as ChevronUpIcon,\n CircleAlert as CircleAlertIcon,\n CircleCheck as CircleCheckIcon,\n CircleHelp as CircleHelpIcon,\n CirclePlay as CirclePlayIcon,\n CircleX as CircleXIcon,\n ClipboardCheck as ClipboardCheckIcon,\n Clock as ClockIcon,\n CloudDownload as CloudDownloadIcon,\n CloudUpload as CloudUploadIcon,\n Code as CodeIcon,\n Copy as CopyIcon,\n Crown as CrownIcon,\n Database as DatabaseIcon,\n Download as DownloadIcon,\n Eye as EyeIcon,\n FileArchive as FileArchiveIcon,\n File as FileIcon,\n FileImage as FileImageIcon,\n FileSpreadsheet as FileSpreadsheetIcon,\n FileText as FileTextIcon,\n Flag as FlagIcon,\n Flame as FlameIcon,\n Folder as FolderIcon,\n FolderOpen as FolderOpenIcon,\n Hash as HashIcon,\n House as HouseIcon,\n Import as ImportIcon,\n Inbox as InboxIcon,\n Info as InfoIcon,\n LayoutDashboard as LayoutDashboardIcon,\n LayoutGrid as LayoutGridIcon,\n Loader2 as Loader2Icon,\n Lock as LockIcon,\n LogOut as LogOutIcon,\n MessageCircle as MessageCircleIcon,\n MessageSquare as MessageSquareIcon,\n PanelLeftClose as PanelLeftCloseIcon,\n PanelLeftOpen as PanelLeftOpenIcon,\n Pause as PauseIcon,\n Pencil as PencilIcon,\n Plus as PlusIcon,\n Presentation as PresentationIcon,\n RefreshCw as RefreshCwIcon,\n RotateCw as RotateCwIcon,\n Send as SendIcon,\n Settings as SettingsIcon,\n ShieldCheck as ShieldCheckIcon,\n Shield as ShieldIcon,\n SlidersHorizontal as SlidersHorizontalIcon,\n Square as SquareIcon,\n Star as StarIcon,\n ThumbsDown as ThumbsDownIcon,\n ThumbsUp as ThumbsUpIcon,\n Trash2 as Trash2Icon,\n Trophy as TrophyIcon,\n Undo2 as Undo2Icon,\n Upload as UploadIcon,\n User as UserIcon,\n UserPlus as UserPlusIcon,\n UserRoundCog as UserRoundCogIcon,\n Users as UsersIcon,\n X as XIcon,\n} from 'lucide-react';\nimport React from 'react';\n\nexport type IconProps = LucideProps & {\n spin?: boolean;\n rotate?: number;\n};\n\nconst createIcon = (Icon: LucideIcon, options?: { filled?: boolean }) => {\n const WrappedIcon = React.forwardRef<SVGSVGElement, IconProps>(\n ({ spin, rotate, className, style, strokeWidth, fill, ...props }, ref) => (\n <Icon\n ref={ref}\n size=\"1em\"\n className={[className, spin ? 'animate-spin' : ''].filter(Boolean).join(' ') || undefined}\n style={rotate ? { ...style, transform: `rotate(${rotate}deg)` } : style}\n strokeWidth={strokeWidth ?? (options?.filled ? 0 : 2)}\n fill={fill ?? (options?.filled ? 'currentColor' : 'none')}\n aria-hidden={props['aria-label'] ? undefined : true}\n {...props}\n />\n ),\n );\n\n WrappedIcon.displayName = Icon.displayName ?? Icon.name;\n return WrappedIcon;\n};\n\nexport const ArrowLeft = createIcon(ArrowLeftIcon);\nexport const ArrowLeftRight = createIcon(ArrowLeftRightIcon);\nexport const BarChart3 = createIcon(BarChart3Icon);\nexport const BookOpen = createIcon(BookOpenIcon);\nexport const Bot = createIcon(BotIcon);\nexport const Check = createIcon(CheckIcon);\nexport const ChevronDown = createIcon(ChevronDownIcon);\nexport const ChevronLeft = createIcon(ChevronLeftIcon);\nexport const ChevronRight = createIcon(ChevronRightIcon);\nexport const ChevronUp = createIcon(ChevronUpIcon);\nexport const CircleAlert = createIcon(CircleAlertIcon);\nexport const CircleCheck = createIcon(CircleCheckIcon);\nexport const CircleHelp = createIcon(CircleHelpIcon);\nexport const CirclePlay = createIcon(CirclePlayIcon);\nexport const CircleX = createIcon(CircleXIcon);\nexport const ClipboardCheck = createIcon(ClipboardCheckIcon);\nexport const Clock = createIcon(ClockIcon);\nexport const CloudDownload = createIcon(CloudDownloadIcon);\nexport const CloudUpload = createIcon(CloudUploadIcon);\nexport const Code = createIcon(CodeIcon);\nexport const Copy = createIcon(CopyIcon);\nexport const Crown = createIcon(CrownIcon, { filled: true });\nexport const Database = createIcon(DatabaseIcon);\nexport const Download = createIcon(DownloadIcon);\nexport const Eye = createIcon(EyeIcon);\nexport const File = createIcon(FileIcon);\nexport const FileArchive = createIcon(FileArchiveIcon);\nexport const FileImage = createIcon(FileImageIcon);\nexport const FileSpreadsheet = createIcon(FileSpreadsheetIcon);\nexport const FileText = createIcon(FileTextIcon);\nexport const Flag = createIcon(FlagIcon);\nexport const Flame = createIcon(FlameIcon);\nexport const Folder = createIcon(FolderIcon);\nexport const FolderOpen = createIcon(FolderOpenIcon);\nexport const Hash = createIcon(HashIcon);\nexport const House = createIcon(HouseIcon);\nexport const Import = createIcon(ImportIcon);\nexport const Inbox = createIcon(InboxIcon);\nexport const Info = createIcon(InfoIcon);\nexport const LayoutDashboard = createIcon(LayoutDashboardIcon);\nexport const LayoutGrid = createIcon(LayoutGridIcon);\nexport const Loader2 = createIcon(Loader2Icon);\nexport const Lock = createIcon(LockIcon);\nexport const LogOut = createIcon(LogOutIcon);\nexport const MessageCircle = createIcon(MessageCircleIcon);\nexport const MessageSquare = createIcon(MessageSquareIcon);\nexport const PanelLeftClose = createIcon(PanelLeftCloseIcon);\nexport const PanelLeftOpen = createIcon(PanelLeftOpenIcon);\nexport const Pause = createIcon(PauseIcon, { filled: true });\nexport const Pencil = createIcon(PencilIcon);\nexport const Plus = createIcon(PlusIcon);\nexport const Presentation = createIcon(PresentationIcon);\nexport const RefreshCw = createIcon(RefreshCwIcon);\nexport const RotateCw = createIcon(RotateCwIcon);\nexport const Send = createIcon(SendIcon);\nexport const Settings = createIcon(SettingsIcon);\nexport const Shield = createIcon(ShieldIcon);\nexport const ShieldCheck = createIcon(ShieldCheckIcon);\nexport const SlidersHorizontal = createIcon(SlidersHorizontalIcon);\nexport const Square = createIcon(SquareIcon, { filled: true });\nexport const Star = createIcon(StarIcon, { filled: true });\nexport const ThumbsDown = createIcon(ThumbsDownIcon);\nexport const ThumbsUp = createIcon(ThumbsUpIcon);\nexport const Trash2 = createIcon(Trash2Icon);\nexport const Trophy = createIcon(TrophyIcon);\nexport const Undo2 = createIcon(Undo2Icon);\nexport const Upload = createIcon(UploadIcon);\nexport const User = createIcon(UserIcon);\nexport const UserPlus = createIcon(UserPlusIcon);\nexport const UserRoundCog = createIcon(UserRoundCogIcon);\nexport const Users = createIcon(UsersIcon);\nexport const X = createIcon(XIcon);\n\nexport { createIcon };\n\nexport const ICON_NAMES = [\n 'ArrowLeft', 'ArrowLeftRight', 'BarChart3', 'BookOpen', 'Bot', 'Check',\n 'ChevronDown', 'ChevronLeft', 'ChevronRight', 'ChevronUp', 'CircleAlert',\n 'CircleCheck', 'CircleHelp', 'CirclePlay', 'CircleX', 'ClipboardCheck', 'Clock',\n 'CloudDownload', 'CloudUpload', 'Code', 'Copy', 'Crown', 'Database', 'Download',\n 'Eye', 'File', 'FileArchive', 'FileImage', 'FileSpreadsheet', 'FileText', 'Flag',\n 'Flame', 'Folder', 'FolderOpen', 'Hash', 'House', 'Import', 'Inbox', 'Info',\n 'LayoutDashboard', 'LayoutGrid', 'Loader2', 'Lock', 'LogOut', 'MessageCircle',\n 'MessageSquare', 'PanelLeftClose', 'PanelLeftOpen', 'Pause', 'Pencil', 'Plus',\n 'Presentation', 'RefreshCw', 'RotateCw', 'Send', 'Settings', 'Shield',\n 'ShieldCheck', 'SlidersHorizontal', 'Square', 'Star', 'ThumbsDown', 'ThumbsUp',\n 'Trash2', 'Trophy', 'Undo2', 'Upload', 'User', 'UserPlus', 'UserRoundCog', 'Users', 'X',\n] as const;\n\nexport type IconName = (typeof ICON_NAMES)[number];\n\nexport const ICON_REGISTRY: Record<IconName, React.FC<IconProps>> = {\n ArrowLeft, ArrowLeftRight, BarChart3, BookOpen, Bot, Check,\n ChevronDown, ChevronLeft, ChevronRight, ChevronUp, CircleAlert,\n CircleCheck, CircleHelp, CirclePlay, CircleX, ClipboardCheck, Clock,\n CloudDownload, CloudUpload, Code, Copy, Crown, Database, Download,\n Eye, File, FileArchive, FileImage, FileSpreadsheet, FileText, Flag,\n Flame, Folder, FolderOpen, Hash, House, Import, Inbox, Info,\n LayoutDashboard, LayoutGrid, Loader2, Lock, LogOut, MessageCircle,\n MessageSquare, PanelLeftClose, PanelLeftOpen, Pause, Pencil, Plus,\n Presentation, RefreshCw, RotateCw, Send, Settings, Shield,\n ShieldCheck, SlidersHorizontal, Square, Star, ThumbsDown, ThumbsUp,\n Trash2, Trophy, Undo2, Upload, User, UserPlus, UserRoundCog, Users, X,\n};\n"],"names":["createIcon","Icon","options","WrappedIcon","React","spin","rotate","className","style","strokeWidth","fill","props","ref","jsx","ArrowLeft","ArrowLeftIcon","ArrowLeftRight","ArrowLeftRightIcon","BarChart3","BarChart3Icon","BookOpen","BookOpenIcon","Bot","BotIcon","Check","CheckIcon","ChevronDown","ChevronDownIcon","ChevronLeft","ChevronLeftIcon","ChevronRight","ChevronRightIcon","ChevronUp","ChevronUpIcon","CircleAlert","CircleAlertIcon","CircleCheck","CircleCheckIcon","CircleHelp","CircleHelpIcon","CirclePlay","CirclePlayIcon","CircleX","CircleXIcon","ClipboardCheck","ClipboardCheckIcon","Clock","ClockIcon","CloudDownload","CloudDownloadIcon","CloudUpload","CloudUploadIcon","Code","CodeIcon","Copy","CopyIcon","Crown","CrownIcon","Database","DatabaseIcon","Download","DownloadIcon","Eye","EyeIcon","File","FileIcon","FileArchive","FileArchiveIcon","FileImage","FileImageIcon","FileSpreadsheet","FileSpreadsheetIcon","FileText","FileTextIcon","Flag","FlagIcon","Flame","FlameIcon","Folder","FolderIcon","FolderOpen","FolderOpenIcon","Hash","HashIcon","House","HouseIcon","Import","ImportIcon","Inbox","InboxIcon","Info","InfoIcon","LayoutDashboard","LayoutDashboardIcon","LayoutGrid","LayoutGridIcon","Loader2","Loader2Icon","Lock","LockIcon","LogOut","LogOutIcon","MessageCircle","MessageCircleIcon","MessageSquare","MessageSquareIcon","PanelLeftClose","PanelLeftCloseIcon","PanelLeftOpen","PanelLeftOpenIcon","Pause","PauseIcon","Pencil","PencilIcon","Plus","PlusIcon","Presentation","PresentationIcon","RefreshCw","RefreshCwIcon","RotateCw","RotateCwIcon","Send","SendIcon","Settings","SettingsIcon","Shield","ShieldIcon","ShieldCheck","ShieldCheckIcon","SlidersHorizontal","SlidersHorizontalIcon","Square","SquareIcon","Star","StarIcon","ThumbsDown","ThumbsDownIcon","ThumbsUp","ThumbsUpIcon","Trash2","Trash2Icon","Trophy","TrophyIcon","Undo2","Undo2Icon","Upload","UploadIcon","User","UserIcon","UserPlus","UserPlusIcon","UserRoundCog","UserRoundCogIcon","Users","UsersIcon","X","XIcon","ICON_NAMES","ICON_REGISTRY"],"mappings":";;;AAkFA,MAAMA,IAAa,CAACC,GAAkBC,MAAmC;AACvE,QAAMC,IAAcC,GAAM;AAAA,IACxB,CAAC,EAAE,MAAAC,GAAM,QAAAC,GAA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AE;AAAA,EAAM,UAAAE;AAAA,EAAU,QAAAE;AAAA,EACnD,aAAAE;AAAA,EAAa,mBAAAE;AAAA,EAAmB,QAAAE;AAAA,EAAQ,MAAAE;AAAA,EAAM,YAAAE;AAAA,EAAY,UAAAE;AAAA,EAC1D,QAAAE;AAAA,EAAQ,QAAAE;AAAA,EAAQ,OAAAE;AAAA,EAAO,QAAAE;AAAA,EAAQ,MAAAE;AAAA,EAAM,UAAAE;AAAA,EAAU,cAAAE;AAAA,EAAc,OAAAE;AAAA,EAAO,GAAAE;AACtE;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/Icons/index.tsx"],"sourcesContent":["import type { LucideIcon, LucideProps } from 'lucide-react';\nimport './icons.global.css';\nimport {\n ArrowLeft as ArrowLeftIcon,\n ArrowLeftRight as ArrowLeftRightIcon,\n BarChart3 as BarChart3Icon,\n BookOpen as BookOpenIcon,\n Bot as BotIcon,\n Check as CheckIcon,\n ChevronDown as ChevronDownIcon,\n ChevronLeft as ChevronLeftIcon,\n ChevronRight as ChevronRightIcon,\n ChevronUp as ChevronUpIcon,\n CircleAlert as CircleAlertIcon,\n CircleCheck as CircleCheckIcon,\n CircleHelp as CircleHelpIcon,\n CirclePlay as CirclePlayIcon,\n CircleX as CircleXIcon,\n ClipboardCheck as ClipboardCheckIcon,\n Clock as ClockIcon,\n CloudDownload as CloudDownloadIcon,\n CloudUpload as CloudUploadIcon,\n Code as CodeIcon,\n Copy as CopyIcon,\n Crown as CrownIcon,\n Database as DatabaseIcon,\n Download as DownloadIcon,\n Eye as EyeIcon,\n FileArchive as FileArchiveIcon,\n File as FileIcon,\n FileImage as FileImageIcon,\n FileSpreadsheet as FileSpreadsheetIcon,\n FileText as FileTextIcon,\n Flag as FlagIcon,\n Flame as FlameIcon,\n Folder as FolderIcon,\n FolderOpen as FolderOpenIcon,\n Hash as HashIcon,\n House as HouseIcon,\n Import as ImportIcon,\n Inbox as InboxIcon,\n Info as InfoIcon,\n LayoutDashboard as LayoutDashboardIcon,\n LayoutGrid as LayoutGridIcon,\n Loader2 as Loader2Icon,\n Lock as LockIcon,\n LogOut as LogOutIcon,\n MessageCircle as MessageCircleIcon,\n MessageSquare as MessageSquareIcon,\n PanelLeftClose as PanelLeftCloseIcon,\n PanelLeftOpen as PanelLeftOpenIcon,\n Pause as PauseIcon,\n Pencil as PencilIcon,\n Plus as PlusIcon,\n Presentation as PresentationIcon,\n RefreshCw as RefreshCwIcon,\n RotateCw as RotateCwIcon,\n Send as SendIcon,\n Settings as SettingsIcon,\n ShieldCheck as ShieldCheckIcon,\n Shield as ShieldIcon,\n SlidersHorizontal as SlidersHorizontalIcon,\n Square as SquareIcon,\n Star as StarIcon,\n ThumbsDown as ThumbsDownIcon,\n ThumbsUp as ThumbsUpIcon,\n Trash2 as Trash2Icon,\n Trophy as TrophyIcon,\n Undo2 as Undo2Icon,\n Upload as UploadIcon,\n User as UserIcon,\n UserPlus as UserPlusIcon,\n UserRoundCog as UserRoundCogIcon,\n Users as UsersIcon,\n X as XIcon,\n} from 'lucide-react';\nimport React from 'react';\n\nexport type IconProps = LucideProps & {\n spin?: boolean;\n rotate?: number;\n};\n\nconst createIcon = (Icon: LucideIcon, options?: { filled?: boolean }) => {\n const WrappedIcon = React.forwardRef<SVGSVGElement, IconProps>(\n ({ spin, rotate, className, style, strokeWidth, fill, color, ...props }, ref) => (\n <Icon\n ref={ref}\n size=\"1em\"\n className={['marsun-icon', className, spin ? 'animate-spin' : ''].filter(Boolean).join(' ') || undefined}\n style={{\n display: 'inline-block',\n verticalAlign: '-0.125em',\n ...(color ? {} : { color: 'inherit' }),\n ...(rotate ? { transform: `rotate(${rotate}deg)` } : null),\n ...style,\n }}\n color={color ?? 'currentColor'}\n strokeWidth={strokeWidth ?? (options?.filled ? 0 : 2)}\n fill={fill ?? (options?.filled ? 'currentColor' : 'none')}\n aria-hidden={props['aria-label'] ? undefined : true}\n {...props}\n />\n ),\n );\n\n WrappedIcon.displayName = Icon.displayName ?? Icon.name;\n return WrappedIcon;\n};\n\nexport const ArrowLeft = createIcon(ArrowLeftIcon);\nexport const ArrowLeftRight = createIcon(ArrowLeftRightIcon);\nexport const BarChart3 = createIcon(BarChart3Icon);\nexport const BookOpen = createIcon(BookOpenIcon);\nexport const Bot = createIcon(BotIcon);\nexport const Check = createIcon(CheckIcon);\nexport const ChevronDown = createIcon(ChevronDownIcon);\nexport const ChevronLeft = createIcon(ChevronLeftIcon);\nexport const ChevronRight = createIcon(ChevronRightIcon);\nexport const ChevronUp = createIcon(ChevronUpIcon);\nexport const CircleAlert = createIcon(CircleAlertIcon);\nexport const CircleCheck = createIcon(CircleCheckIcon);\nexport const CircleHelp = createIcon(CircleHelpIcon);\nexport const CirclePlay = createIcon(CirclePlayIcon);\nexport const CircleX = createIcon(CircleXIcon);\nexport const ClipboardCheck = createIcon(ClipboardCheckIcon);\nexport const Clock = createIcon(ClockIcon);\nexport const CloudDownload = createIcon(CloudDownloadIcon);\nexport const CloudUpload = createIcon(CloudUploadIcon);\nexport const Code = createIcon(CodeIcon);\nexport const Copy = createIcon(CopyIcon);\nexport const Crown = createIcon(CrownIcon, { filled: true });\nexport const Database = createIcon(DatabaseIcon);\nexport const Download = createIcon(DownloadIcon);\nexport const Eye = createIcon(EyeIcon);\nexport const File = createIcon(FileIcon);\nexport const FileArchive = createIcon(FileArchiveIcon);\nexport const FileImage = createIcon(FileImageIcon);\nexport const FileSpreadsheet = createIcon(FileSpreadsheetIcon);\nexport const FileText = createIcon(FileTextIcon);\nexport const Flag = createIcon(FlagIcon);\nexport const Flame = createIcon(FlameIcon);\nexport const Folder = createIcon(FolderIcon);\nexport const FolderOpen = createIcon(FolderOpenIcon);\nexport const Hash = createIcon(HashIcon);\nexport const House = createIcon(HouseIcon);\nexport const Import = createIcon(ImportIcon);\nexport const Inbox = createIcon(InboxIcon);\nexport const Info = createIcon(InfoIcon);\nexport const LayoutDashboard = createIcon(LayoutDashboardIcon);\nexport const LayoutGrid = createIcon(LayoutGridIcon);\nexport const Loader2 = createIcon(Loader2Icon);\nexport const Lock = createIcon(LockIcon);\nexport const LogOut = createIcon(LogOutIcon);\nexport const MessageCircle = createIcon(MessageCircleIcon);\nexport const MessageSquare = createIcon(MessageSquareIcon);\nexport const PanelLeftClose = createIcon(PanelLeftCloseIcon);\nexport const PanelLeftOpen = createIcon(PanelLeftOpenIcon);\nexport const Pause = createIcon(PauseIcon, { filled: true });\nexport const Pencil = createIcon(PencilIcon);\nexport const Plus = createIcon(PlusIcon);\nexport const Presentation = createIcon(PresentationIcon);\nexport const RefreshCw = createIcon(RefreshCwIcon);\nexport const RotateCw = createIcon(RotateCwIcon);\nexport const Send = createIcon(SendIcon);\nexport const Settings = createIcon(SettingsIcon);\nexport const Shield = createIcon(ShieldIcon);\nexport const ShieldCheck = createIcon(ShieldCheckIcon);\nexport const SlidersHorizontal = createIcon(SlidersHorizontalIcon);\nexport const Square = createIcon(SquareIcon, { filled: true });\nexport const Star = createIcon(StarIcon, { filled: true });\nexport const ThumbsDown = createIcon(ThumbsDownIcon);\nexport const ThumbsUp = createIcon(ThumbsUpIcon);\nexport const Trash2 = createIcon(Trash2Icon);\nexport const Trophy = createIcon(TrophyIcon);\nexport const Undo2 = createIcon(Undo2Icon);\nexport const Upload = createIcon(UploadIcon);\nexport const User = createIcon(UserIcon);\nexport const UserPlus = createIcon(UserPlusIcon);\nexport const UserRoundCog = createIcon(UserRoundCogIcon);\nexport const Users = createIcon(UsersIcon);\nexport const X = createIcon(XIcon);\n\nexport { createIcon };\n\nexport const ICON_NAMES = [\n 'ArrowLeft', 'ArrowLeftRight', 'BarChart3', 'BookOpen', 'Bot', 'Check',\n 'ChevronDown', 'ChevronLeft', 'ChevronRight', 'ChevronUp', 'CircleAlert',\n 'CircleCheck', 'CircleHelp', 'CirclePlay', 'CircleX', 'ClipboardCheck', 'Clock',\n 'CloudDownload', 'CloudUpload', 'Code', 'Copy', 'Crown', 'Database', 'Download',\n 'Eye', 'File', 'FileArchive', 'FileImage', 'FileSpreadsheet', 'FileText', 'Flag',\n 'Flame', 'Folder', 'FolderOpen', 'Hash', 'House', 'Import', 'Inbox', 'Info',\n 'LayoutDashboard', 'LayoutGrid', 'Loader2', 'Lock', 'LogOut', 'MessageCircle',\n 'MessageSquare', 'PanelLeftClose', 'PanelLeftOpen', 'Pause', 'Pencil', 'Plus',\n 'Presentation', 'RefreshCw', 'RotateCw', 'Send', 'Settings', 'Shield',\n 'ShieldCheck', 'SlidersHorizontal', 'Square', 'Star', 'ThumbsDown', 'ThumbsUp',\n 'Trash2', 'Trophy', 'Undo2', 'Upload', 'User', 'UserPlus', 'UserRoundCog', 'Users', 'X',\n] as const;\n\nexport type IconName = (typeof ICON_NAMES)[number];\n\nexport const ICON_REGISTRY: Record<IconName, React.FC<IconProps>> = {\n ArrowLeft, ArrowLeftRight, BarChart3, BookOpen, Bot, Check,\n ChevronDown, ChevronLeft, ChevronRight, ChevronUp, CircleAlert,\n CircleCheck, CircleHelp, CirclePlay, CircleX, ClipboardCheck, Clock,\n CloudDownload, CloudUpload, Code, Copy, Crown, Database, Download,\n Eye, File, FileArchive, FileImage, FileSpreadsheet, FileText, Flag,\n Flame, Folder, FolderOpen, Hash, House, Import, Inbox, Info,\n LayoutDashboard, LayoutGrid, Loader2, Lock, LogOut, MessageCircle,\n MessageSquare, PanelLeftClose, PanelLeftOpen, Pause, Pencil, Plus,\n Presentation, RefreshCw, RotateCw, Send, Settings, Shield,\n ShieldCheck, SlidersHorizontal, Square, Star, ThumbsDown, ThumbsUp,\n Trash2, Trophy, Undo2, Upload, User, UserPlus, UserRoundCog, Users, X,\n};\n"],"names":["createIcon","Icon","options","WrappedIcon","React","spin","rotate","className","style","strokeWidth","fill","color","props","ref","jsx","ArrowLeft","ArrowLeftIcon","ArrowLeftRight","ArrowLeftRightIcon","BarChart3","BarChart3Icon","BookOpen","BookOpenIcon","Bot","BotIcon","Check","CheckIcon","ChevronDown","ChevronDownIcon","ChevronLeft","ChevronLeftIcon","ChevronRight","ChevronRightIcon","ChevronUp","ChevronUpIcon","CircleAlert","CircleAlertIcon","CircleCheck","CircleCheckIcon","CircleHelp","CircleHelpIcon","CirclePlay","CirclePlayIcon","CircleX","CircleXIcon","ClipboardCheck","ClipboardCheckIcon","Clock","ClockIcon","CloudDownload","CloudDownloadIcon","CloudUpload","CloudUploadIcon","Code","CodeIcon","Copy","CopyIcon","Crown","CrownIcon","Database","DatabaseIcon","Download","DownloadIcon","Eye","EyeIcon","File","FileIcon","FileArchive","FileArchiveIcon","FileImage","FileImageIcon","FileSpreadsheet","FileSpreadsheetIcon","FileText","FileTextIcon","Flag","FlagIcon","Flame","FlameIcon","Folder","FolderIcon","FolderOpen","FolderOpenIcon","Hash","HashIcon","House","HouseIcon","Import","ImportIcon","Inbox","InboxIcon","Info","InfoIcon","LayoutDashboard","LayoutDashboardIcon","LayoutGrid","LayoutGridIcon","Loader2","Loader2Icon","Lock","LockIcon","LogOut","LogOutIcon","MessageCircle","MessageCircleIcon","MessageSquare","MessageSquareIcon","PanelLeftClose","PanelLeftCloseIcon","PanelLeftOpen","PanelLeftOpenIcon","Pause","PauseIcon","Pencil","PencilIcon","Plus","PlusIcon","Presentation","PresentationIcon","RefreshCw","RefreshCwIcon","RotateCw","RotateCwIcon","Send","SendIcon","Settings","SettingsIcon","Shield","ShieldIcon","ShieldCheck","ShieldCheckIcon","SlidersHorizontal","SlidersHorizontalIcon","Square","SquareIcon","Star","StarIcon","ThumbsDown","ThumbsDownIcon","ThumbsUp","ThumbsUpIcon","Trash2","Trash2Icon","Trophy","TrophyIcon","Undo2","Undo2Icon","Upload","UploadIcon","User","UserIcon","UserPlus","UserPlusIcon","UserRoundCog","UserRoundCogIcon","Users","UsersIcon","X","XIcon","ICON_NAMES","ICON_REGISTRY"],"mappings":";;;;AAmFA,MAAMA,IAAa,CAACC,GAAkBC,MAAmC;AACvE,QAAMC,IAAcC,GAAM;AAAA,IACxB,CAAC,EAAE,MAAAC,GAAM,QAAAC,GAAQ,WAAAC,G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gBAAAE;AAAA,EAAgB,eAAAE;AAAA,EAAe,OAAAE;AAAA,EAAO,QAAAE;AAAA,EAAQ,MAAAE;AAAA,EAC7D,cAAAE;AAAA,EAAc,WAAAE;AAAA,EAAW,UAAAE;AAAA,EAAU,MAAAE;AAAA,EAAM,UAAAE;AAAA,EAAU,QAAAE;AAAA,EACnD,aAAAE;AAAA,EAAa,mBAAAE;AAAA,EAAmB,QAAAE;AAAA,EAAQ,MAAAE;AAAA,EAAM,YAAAE;AAAA,EAAY,UAAAE;AAAA,EAC1D,QAAAE;AAAA,EAAQ,QAAAE;AAAA,EAAQ,OAAAE;AAAA,EAAO,QAAAE;AAAA,EAAQ,MAAAE;AAAA,EAAM,UAAAE;AAAA,EAAU,cAAAE;AAAA,EAAc,OAAAE;AAAA,EAAO,GAAAE;AACtE;"}
|
|
@@ -1,31 +1,40 @@
|
|
|
1
|
-
import { jsx as o, Fragment as
|
|
2
|
-
import { Tooltip as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { jsx as o, Fragment as s } from "react/jsx-runtime";
|
|
2
|
+
import { Tooltip as m } from "antd";
|
|
3
|
+
import x from "../Descriptions/CommonDescriptions.js";
|
|
4
|
+
const b = ({
|
|
5
5
|
content: t,
|
|
6
|
-
children:
|
|
7
|
-
column:
|
|
8
|
-
hidden:
|
|
9
|
-
placement:
|
|
6
|
+
children: r,
|
|
7
|
+
column: i = 1,
|
|
8
|
+
hidden: a = !1,
|
|
9
|
+
placement: e = "top",
|
|
10
10
|
overlayClassName: p,
|
|
11
|
-
overlayStyle:
|
|
12
|
-
mouseEnterDelay:
|
|
13
|
-
...
|
|
14
|
-
}) =>
|
|
15
|
-
|
|
11
|
+
overlayStyle: n,
|
|
12
|
+
mouseEnterDelay: l = 0.3,
|
|
13
|
+
...f
|
|
14
|
+
}) => a || t.length === 0 ? /* @__PURE__ */ o(s, { children: r }) : /* @__PURE__ */ o(
|
|
15
|
+
m,
|
|
16
16
|
{
|
|
17
|
-
placement:
|
|
18
|
-
mouseEnterDelay:
|
|
17
|
+
placement: e,
|
|
18
|
+
mouseEnterDelay: l,
|
|
19
19
|
destroyOnHidden: !0,
|
|
20
20
|
classNames: { root: ["tooltip-info-overlay", p].filter(Boolean).join(" ") },
|
|
21
|
-
styles: {
|
|
21
|
+
styles: {
|
|
22
|
+
container: {
|
|
23
|
+
maxWidth: 360,
|
|
24
|
+
padding: "8px 12px",
|
|
25
|
+
background: "var(--tooltip-info-bg, var(--bg-color-white, #ffffff))",
|
|
26
|
+
color: "var(--tooltip-info-color, var(--font-color, #222222))",
|
|
27
|
+
boxShadow: "0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12)",
|
|
28
|
+
...n
|
|
29
|
+
}
|
|
30
|
+
},
|
|
22
31
|
getPopupContainer: () => document.body,
|
|
23
|
-
title: /* @__PURE__ */ o(
|
|
24
|
-
...
|
|
25
|
-
children:
|
|
32
|
+
title: /* @__PURE__ */ o(x, { content: t, column: i, size: "small" }),
|
|
33
|
+
...f,
|
|
34
|
+
children: r
|
|
26
35
|
}
|
|
27
36
|
);
|
|
28
37
|
export {
|
|
29
|
-
|
|
38
|
+
b as default
|
|
30
39
|
};
|
|
31
40
|
//# sourceMappingURL=TooltipInfo.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TooltipInfo.js","sources":["../../../src/components/TooltipInfo/TooltipInfo.tsx"],"sourcesContent":["import type { TooltipProps } from 'antd';\nimport { Tooltip } from 'antd';\nimport React from 'react';\nimport type { DescriptionItem } from '../Descriptions/CommonDescriptions';\nimport CommonDescriptions from '../Descriptions/CommonDescriptions';\nimport './style.module.scss';\n\nexport interface TooltipInfoProps extends Pick<\n TooltipProps,\n 'placement' | 'mouseEnterDelay' | 'mouseLeaveDelay'\n> {\n /** 详情描述项,内部使用 CommonDescriptions 渲染 */\n content: DescriptionItem[];\n children: React.ReactNode;\n /** CommonDescriptions 列数,默认 1 */\n column?: number;\n /** 为 true 或 content 为空时不展示 Tooltip */\n hidden?: boolean;\n /** @deprecated 使用 classNames.root */\n overlayClassName?: string;\n /** @deprecated 使用 styles.root */\n overlayStyle?: React.CSSProperties;\n}\n\n/** Tooltip 详情展示,内部统一使用 CommonDescriptions */\nconst TooltipInfo: React.FC<TooltipInfoProps> = ({\n content,\n children,\n column = 1,\n hidden = false,\n placement = 'top',\n overlayClassName,\n overlayStyle,\n mouseEnterDelay = 0.3,\n ...rest\n}) => {\n if (hidden || content.length === 0) {\n return <>{children}</>;\n }\n\n return (\n <Tooltip\n placement={placement}\n mouseEnterDelay={mouseEnterDelay}\n destroyOnHidden\n classNames={{ root: ['tooltip-info-overlay', overlayClassName].filter(Boolean).join(' ') }}\n styles={{
|
|
1
|
+
{"version":3,"file":"TooltipInfo.js","sources":["../../../src/components/TooltipInfo/TooltipInfo.tsx"],"sourcesContent":["import type { TooltipProps } from 'antd';\nimport { Tooltip } from 'antd';\nimport React from 'react';\nimport type { DescriptionItem } from '../Descriptions/CommonDescriptions';\nimport CommonDescriptions from '../Descriptions/CommonDescriptions';\nimport './style.module.scss';\n\nexport interface TooltipInfoProps extends Pick<\n TooltipProps,\n 'placement' | 'mouseEnterDelay' | 'mouseLeaveDelay'\n> {\n /** 详情描述项,内部使用 CommonDescriptions 渲染 */\n content: DescriptionItem[];\n children: React.ReactNode;\n /** CommonDescriptions 列数,默认 1 */\n column?: number;\n /** 为 true 或 content 为空时不展示 Tooltip */\n hidden?: boolean;\n /** @deprecated 使用 classNames.root */\n overlayClassName?: string;\n /** @deprecated 使用 styles.root */\n overlayStyle?: React.CSSProperties;\n}\n\n/** Tooltip 详情展示,内部统一使用 CommonDescriptions */\nconst TooltipInfo: React.FC<TooltipInfoProps> = ({\n content,\n children,\n column = 1,\n hidden = false,\n placement = 'top',\n overlayClassName,\n overlayStyle,\n mouseEnterDelay = 0.3,\n ...rest\n}) => {\n if (hidden || content.length === 0) {\n return <>{children}</>;\n }\n\n return (\n <Tooltip\n placement={placement}\n mouseEnterDelay={mouseEnterDelay}\n destroyOnHidden\n classNames={{ root: ['tooltip-info-overlay', overlayClassName].filter(Boolean).join(' ') }}\n styles={{\n container: {\n maxWidth: 360,\n padding: '8px 12px',\n background: 'var(--tooltip-info-bg, var(--bg-color-white, #ffffff))',\n color: 'var(--tooltip-info-color, var(--font-color, #222222))',\n boxShadow:\n '0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12)',\n ...overlayStyle,\n },\n }}\n getPopupContainer={() => document.body}\n title={<CommonDescriptions content={content} column={column} size=\"small\" />}\n {...rest}\n >\n {children}\n </Tooltip>\n );\n};\n\nexport default TooltipInfo;\n"],"names":["TooltipInfo","content","children","column","hidden","placement","overlayClassName","overlayStyle","mouseEnterDelay","rest","jsx","Tooltip","CommonDescriptions"],"mappings":";;;AAyBA,MAAMA,IAA0C,CAAC;AAAA,EAC/C,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,EACT,QAAAC,IAAS;AAAA,EACT,WAAAC,IAAY;AAAA,EACZ,kBAAAC;AAAA,EACA,cAAAC;AAAA,EACA,iBAAAC,IAAkB;AAAA,EAClB,GAAGC;AACL,MACML,KAAUH,EAAQ,WAAW,2BACrB,UAAAC,GAAS,IAInB,gBAAAQ;AAAA,EAACC;AAAA,EAAA;AAAA,IACC,WAAAN;AAAA,IACA,iBAAAG;AAAA,IACA,iBAAe;AAAA,IACf,YAAY,EAAE,MAAM,CAAC,wBAAwBF,CAAgB,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,EAAA;AAAA,IACvF,QAAQ;AAAA,MACN,WAAW;AAAA,QACT,UAAU;AAAA,QACV,SAAS;AAAA,QACT,YAAY;AAAA,QACZ,OAAO;AAAA,QACP,WACE;AAAA,QACF,GAAGC;AAAA,MAAA;AAAA,IACL;AAAA,IAEF,mBAAmB,MAAM,SAAS;AAAA,IAClC,OAAO,gBAAAG,EAACE,GAAA,EAAmB,SAAAX,GAAkB,QAAAE,GAAgB,MAAK,SAAQ;AAAA,IACzE,GAAGM;AAAA,IAEH,UAAAP;AAAA,EAAA;AAAA;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { MarsunCoreProvider, useMarsunAuth, useMarsunCore, useMarsunFetch } from './provider';
|
|
2
2
|
export type { MarsunCoreProviderProps, MarsunAuthContext, MarsunFetchContext } from './provider';
|
|
3
|
-
export { generateTheme, applyThemeToCssVariables, DEFAULT_PRIMARY_COLOR, PALETTE } from './theme';
|
|
3
|
+
export { generateTheme, applyThemeToCssVariables, applyCssTokenOverrides, DEFAULT_PRIMARY_COLOR, PALETTE, LAYOUT_TOKENS, } from './theme';
|
|
4
4
|
export { useFetchData, fetchWithTimeout } from './hooks/useFetchData';
|
|
5
5
|
export type { FetchDataOptions, FetchDataResult } from './hooks/useFetchData';
|
|
6
6
|
export { resolveMaybeFn, resolveVisible, type MaybeFn, type Visibility, } from './utils/resolveMaybeFn';
|
|
@@ -26,3 +26,5 @@ export { default as AgentHubAccessGuard } from './components/AgentHub/AgentHubAc
|
|
|
26
26
|
export { default as AgentHubIndexRedirect } from './components/AgentHub/AgentHubIndexRedirect';
|
|
27
27
|
export { default as AgentHubSessionAccessGuard } from './components/AgentHub/ChatSessionAccessGuard';
|
|
28
28
|
export type * from './components/AgentHub/types';
|
|
29
|
+
export * from './components/AgentHub/Chat';
|
|
30
|
+
export * from './components/AgentHub/KnowledgeBase';
|