@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.
Files changed (160) hide show
  1. package/README.md +31 -6
  2. package/dist/components/AgentHub/Chat/Action/CreateButton.js +8 -0
  3. package/dist/components/AgentHub/Chat/Action/CreateButton.js.map +1 -0
  4. package/dist/components/AgentHub/Chat/Action/ManageActionButtons.js +20 -0
  5. package/dist/components/AgentHub/Chat/Action/ManageActionButtons.js.map +1 -0
  6. package/dist/components/AgentHub/Chat/Action/SessionActionButtons.js +24 -0
  7. package/dist/components/AgentHub/Chat/Action/SessionActionButtons.js.map +1 -0
  8. package/dist/components/AgentHub/Chat/Action/handlers.d.ts +0 -5
  9. package/dist/components/AgentHub/Chat/Detail/ChatInput/index.js +65 -0
  10. package/dist/components/AgentHub/Chat/Detail/ChatInput/index.js.map +1 -0
  11. package/dist/components/AgentHub/Chat/Detail/ChatInput/style.module.scss.js +12 -0
  12. package/dist/components/AgentHub/Chat/Detail/ChatInput/style.module.scss.js.map +1 -0
  13. package/dist/components/AgentHub/Chat/Detail/ChatPanel/index.d.ts +31 -0
  14. package/dist/components/AgentHub/Chat/Detail/ChatPanel/index.js +85 -0
  15. package/dist/components/AgentHub/Chat/Detail/ChatPanel/index.js.map +1 -0
  16. package/dist/components/AgentHub/Chat/Detail/ChatPanel/style.module.scss.js +14 -0
  17. package/dist/components/AgentHub/Chat/Detail/ChatPanel/style.module.scss.js.map +1 -0
  18. package/dist/components/AgentHub/Chat/Detail/ChatSuggestionRow/index.d.ts +9 -0
  19. package/dist/components/AgentHub/Chat/Detail/ChatSuggestionRow/index.js +22 -0
  20. package/dist/components/AgentHub/Chat/Detail/ChatSuggestionRow/index.js.map +1 -0
  21. package/dist/components/AgentHub/Chat/Detail/ChatSuggestionRow/style.module.scss.js +8 -0
  22. package/dist/components/AgentHub/Chat/Detail/ChatSuggestionRow/style.module.scss.js.map +1 -0
  23. package/dist/components/AgentHub/Chat/Detail/CitationContent/index.js +21 -0
  24. package/dist/components/AgentHub/Chat/Detail/CitationContent/index.js.map +1 -0
  25. package/dist/components/AgentHub/Chat/Detail/CitationContent/style.module.scss.js +8 -0
  26. package/dist/components/AgentHub/Chat/Detail/CitationContent/style.module.scss.js.map +1 -0
  27. package/dist/components/AgentHub/Chat/Detail/CitationInlineBadge/index.js +17 -0
  28. package/dist/components/AgentHub/Chat/Detail/CitationInlineBadge/index.js.map +1 -0
  29. package/dist/components/AgentHub/Chat/Detail/CitationInlineBadge/style.module.scss.js +7 -0
  30. package/dist/components/AgentHub/Chat/Detail/CitationInlineBadge/style.module.scss.js.map +1 -0
  31. package/dist/components/AgentHub/Chat/Detail/CitationMarkdownContent/index.js +68 -0
  32. package/dist/components/AgentHub/Chat/Detail/CitationMarkdownContent/index.js.map +1 -0
  33. package/dist/components/AgentHub/Chat/Detail/CitationMarkdownContent/style.module.scss.js +7 -0
  34. package/dist/components/AgentHub/Chat/Detail/CitationMarkdownContent/style.module.scss.js.map +1 -0
  35. package/dist/components/AgentHub/Chat/Detail/CitationPanel/index.js +247 -0
  36. package/dist/components/AgentHub/Chat/Detail/CitationPanel/index.js.map +1 -0
  37. package/dist/components/AgentHub/Chat/Detail/CitationPanel/style.module.scss.js +31 -0
  38. package/dist/components/AgentHub/Chat/Detail/CitationPanel/style.module.scss.js.map +1 -0
  39. package/dist/components/AgentHub/Chat/Detail/MermaidBlock/index.js +43 -0
  40. package/dist/components/AgentHub/Chat/Detail/MermaidBlock/index.js.map +1 -0
  41. package/dist/components/AgentHub/Chat/Detail/MermaidBlock/style.module.scss.js +8 -0
  42. package/dist/components/AgentHub/Chat/Detail/MermaidBlock/style.module.scss.js.map +1 -0
  43. package/dist/components/AgentHub/Chat/Detail/MessageActions/index.js +103 -0
  44. package/dist/components/AgentHub/Chat/Detail/MessageActions/index.js.map +1 -0
  45. package/dist/components/AgentHub/Chat/Detail/MessageActions/style.module.scss.js +14 -0
  46. package/dist/components/AgentHub/Chat/Detail/MessageActions/style.module.scss.js.map +1 -0
  47. package/dist/components/AgentHub/Chat/Detail/MessageEditPopover/index.js +58 -0
  48. package/dist/components/AgentHub/Chat/Detail/MessageEditPopover/index.js.map +1 -0
  49. package/dist/components/AgentHub/Chat/Detail/MessageEditPopover/style.module.scss.js +9 -0
  50. package/dist/components/AgentHub/Chat/Detail/MessageEditPopover/style.module.scss.js.map +1 -0
  51. package/dist/components/AgentHub/Chat/Detail/MessageItem/index.js +309 -0
  52. package/dist/components/AgentHub/Chat/Detail/MessageItem/index.js.map +1 -0
  53. package/dist/components/AgentHub/Chat/Detail/MessageItem/style.module.scss.js +24 -0
  54. package/dist/components/AgentHub/Chat/Detail/MessageItem/style.module.scss.js.map +1 -0
  55. package/dist/components/AgentHub/Chat/Detail/ThinkingSection/index.js +122 -0
  56. package/dist/components/AgentHub/Chat/Detail/ThinkingSection/index.js.map +1 -0
  57. package/dist/components/AgentHub/Chat/Detail/ThinkingSection/style.module.scss.js +25 -0
  58. package/dist/components/AgentHub/Chat/Detail/ThinkingSection/style.module.scss.js.map +1 -0
  59. package/dist/components/AgentHub/Chat/Detail/index.d.ts +12 -0
  60. package/dist/components/AgentHub/Chat/Form/Form.js +37 -0
  61. package/dist/components/AgentHub/Chat/Form/Form.js.map +1 -0
  62. package/dist/components/AgentHub/Chat/List/ChatCard/index.js +86 -0
  63. package/dist/components/AgentHub/Chat/List/ChatCard/index.js.map +1 -0
  64. package/dist/components/AgentHub/Chat/List/ChatCard/style.module.scss.js +25 -0
  65. package/dist/components/AgentHub/Chat/List/ChatCard/style.module.scss.js.map +1 -0
  66. package/dist/components/AgentHub/Chat/List/FilterBar.js +17 -0
  67. package/dist/components/AgentHub/Chat/List/FilterBar.js.map +1 -0
  68. package/dist/components/AgentHub/Chat/List/SessionSidebar/index.js +156 -0
  69. package/dist/components/AgentHub/Chat/List/SessionSidebar/index.js.map +1 -0
  70. package/dist/components/AgentHub/Chat/List/SessionSidebar/style.module.scss.js +28 -0
  71. package/dist/components/AgentHub/Chat/List/SessionSidebar/style.module.scss.js.map +1 -0
  72. package/dist/components/AgentHub/Chat/Modal/FormModal.js +58 -0
  73. package/dist/components/AgentHub/Chat/Modal/FormModal.js.map +1 -0
  74. package/dist/components/AgentHub/Chat/hooks/useAutoScrollToBottom.js +35 -0
  75. package/dist/components/AgentHub/Chat/hooks/useAutoScrollToBottom.js.map +1 -0
  76. package/dist/components/AgentHub/Chat/hooks/useChat.js +51 -0
  77. package/dist/components/AgentHub/Chat/hooks/useChat.js.map +1 -0
  78. package/dist/components/AgentHub/Chat/hooks/useChatSessions.js +60 -0
  79. package/dist/components/AgentHub/Chat/hooks/useChatSessions.js.map +1 -0
  80. package/dist/components/AgentHub/Chat/hooks/useSSECompletion.js +69 -0
  81. package/dist/components/AgentHub/Chat/hooks/useSSECompletion.js.map +1 -0
  82. package/dist/components/AgentHub/Chat/hooks/useTypewriter.js +39 -0
  83. package/dist/components/AgentHub/Chat/hooks/useTypewriter.js.map +1 -0
  84. package/dist/components/AgentHub/Chat/index.d.ts +1 -0
  85. package/dist/components/AgentHub/Chat/utils/citationContent.js +169 -0
  86. package/dist/components/AgentHub/Chat/utils/citationContent.js.map +1 -0
  87. package/dist/components/AgentHub/Chat/utils/messageContent.js +85 -0
  88. package/dist/components/AgentHub/Chat/utils/messageContent.js.map +1 -0
  89. package/dist/components/AgentHub/Chat/utils/sanitizeMermaidChart.js +22 -0
  90. package/dist/components/AgentHub/Chat/utils/sanitizeMermaidChart.js.map +1 -0
  91. package/dist/components/AgentHub/Chat/utils/sessionMessages.js +151 -0
  92. package/dist/components/AgentHub/Chat/utils/sessionMessages.js.map +1 -0
  93. package/dist/components/AgentHub/KnowledgeBase/Action/CreateButton.js +8 -0
  94. package/dist/components/AgentHub/KnowledgeBase/Action/CreateButton.js.map +1 -0
  95. package/dist/components/AgentHub/KnowledgeBase/Action/ManageActionButtons.js +20 -0
  96. package/dist/components/AgentHub/KnowledgeBase/Action/ManageActionButtons.js.map +1 -0
  97. package/dist/components/AgentHub/KnowledgeBase/Detail/DocumentTable/index.js +110 -0
  98. package/dist/components/AgentHub/KnowledgeBase/Detail/DocumentTable/index.js.map +1 -0
  99. package/dist/components/AgentHub/KnowledgeBase/Detail/DocumentTable/style.module.scss.js +7 -0
  100. package/dist/components/AgentHub/KnowledgeBase/Detail/DocumentTable/style.module.scss.js.map +1 -0
  101. package/dist/components/AgentHub/KnowledgeBase/Detail/ParseStatusTag/index.js +18 -0
  102. package/dist/components/AgentHub/KnowledgeBase/Detail/ParseStatusTag/index.js.map +1 -0
  103. package/dist/components/AgentHub/KnowledgeBase/Detail/ParseStatusTag/style.module.scss.js +7 -0
  104. package/dist/components/AgentHub/KnowledgeBase/Detail/ParseStatusTag/style.module.scss.js.map +1 -0
  105. package/dist/components/AgentHub/KnowledgeBase/Form/Form.js +31 -0
  106. package/dist/components/AgentHub/KnowledgeBase/Form/Form.js.map +1 -0
  107. package/dist/components/AgentHub/KnowledgeBase/List/FilterBar.js +17 -0
  108. package/dist/components/AgentHub/KnowledgeBase/List/FilterBar.js.map +1 -0
  109. package/dist/components/AgentHub/KnowledgeBase/List/KnowledgeCard/index.js +118 -0
  110. package/dist/components/AgentHub/KnowledgeBase/List/KnowledgeCard/index.js.map +1 -0
  111. package/dist/components/AgentHub/KnowledgeBase/List/KnowledgeCard/style.module.scss.js +23 -0
  112. package/dist/components/AgentHub/KnowledgeBase/List/KnowledgeCard/style.module.scss.js.map +1 -0
  113. package/dist/components/AgentHub/KnowledgeBase/Modal/FormModal.js +47 -0
  114. package/dist/components/AgentHub/KnowledgeBase/Modal/FormModal.js.map +1 -0
  115. package/dist/components/AgentHub/KnowledgeBase/constants/types.js +28 -0
  116. package/dist/components/AgentHub/KnowledgeBase/constants/types.js.map +1 -0
  117. package/dist/components/AgentHub/KnowledgeBase/hooks/useKBDocuments.js +21 -0
  118. package/dist/components/AgentHub/KnowledgeBase/hooks/useKBDocuments.js.map +1 -0
  119. package/dist/components/AgentHub/KnowledgeBase/hooks/useKnowledgeBase.js +32 -0
  120. package/dist/components/AgentHub/KnowledgeBase/hooks/useKnowledgeBase.js.map +1 -0
  121. package/dist/components/Filter/CommonFilter/index.js +34 -30
  122. package/dist/components/Filter/CommonFilter/index.js.map +1 -1
  123. package/dist/components/Filter/CommonFilter/style.module.scss.js +17 -16
  124. package/dist/components/Filter/CommonFilter/style.module.scss.js.map +1 -1
  125. package/dist/components/Filter/FilterDateRange/index.d.ts +2 -0
  126. package/dist/components/Filter/FilterDateRange/index.js +62 -51
  127. package/dist/components/Filter/FilterDateRange/index.js.map +1 -1
  128. package/dist/components/Filter/FilterSelect/index.d.ts +8 -2
  129. package/dist/components/Filter/FilterSelect/index.js +163 -116
  130. package/dist/components/Filter/FilterSelect/index.js.map +1 -1
  131. package/dist/components/Filter/FilterSelect/style.module.scss.js +12 -10
  132. package/dist/components/Filter/FilterSelect/style.module.scss.js.map +1 -1
  133. package/dist/components/Filter/FilterTrigger/index.d.ts +2 -2
  134. package/dist/components/Filter/FilterTrigger/index.js.map +1 -1
  135. package/dist/components/Filter/FilterTrigger/style.module.scss.js +4 -4
  136. package/dist/components/Filter/index.d.ts +1 -1
  137. package/dist/components/Filter/types.d.ts +2 -0
  138. package/dist/components/Filter/types.js.map +1 -1
  139. package/dist/components/Filter/useFilterState.d.ts +2 -0
  140. package/dist/components/Filter/useFilterState.js +27 -26
  141. package/dist/components/Filter/useFilterState.js.map +1 -1
  142. package/dist/components/Icons/index.js +153 -145
  143. package/dist/components/Icons/index.js.map +1 -1
  144. package/dist/components/TooltipInfo/TooltipInfo.js +29 -20
  145. package/dist/components/TooltipInfo/TooltipInfo.js.map +1 -1
  146. package/dist/index.d.ts +3 -1
  147. package/dist/index.js +295 -186
  148. package/dist/index.js.map +1 -1
  149. package/dist/marsun-components-core.css +1 -1
  150. package/dist/styles/global.css +1 -1
  151. package/dist/theme/constants.d.ts +47 -1
  152. package/dist/theme/constants.js +50 -5
  153. package/dist/theme/constants.js.map +1 -1
  154. package/dist/theme/index.d.ts +2 -2
  155. package/dist/theme/index.js +8 -6
  156. package/dist/theme/theme.d.ts +10 -0
  157. package/dist/theme/theme.js +24 -34
  158. package/dist/theme/theme.js.map +1 -1
  159. package/dist/theme/tokens.css +139 -0
  160. 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?.label === reg.label && existing?.valueLabel === reg.valueLabel) {\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 }));\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":";;AAuBA,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,cAAIG,KAAA,gBAAAA,EAAU,WAAUF,EAAI,UAASE,KAAA,gBAAAA,EAAU,gBAAeF,EAAI,aACzDC,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,EAAA,EACZ,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
+ {"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 h } from "react/jsx-runtime";
2
- import { ArrowLeft as $, ArrowLeftRight as u, BarChart3 as p, BookOpen as f, Bot as L, Check as S, ChevronDown as g, ChevronLeft as w, ChevronRight as F, ChevronUp as U, CircleAlert as m, CircleCheck as P, CircleHelp as k, CirclePlay as y, CircleX as b, ClipboardCheck as D, Clock as R, CloudDownload as v, CloudUpload as T, Code as I, Copy as O, Crown as A, Database as H, Download as B, Eye as x, File as M, FileArchive as q, FileImage as X, FileSpreadsheet as E, FileText as N, Flag as z, Flame as G, Folder as j, FolderOpen as W, Hash as _, House as Y, Import as J, Inbox as K, Info as Q, LayoutDashboard as V, LayoutGrid as Z, Loader2 as ee, Lock as oe, LogOut as se, MessageCircle as ae, MessageSquare as re, PanelLeftClose as te, PanelLeftOpen as ne, Pause as le, Pencil as ce, Plus as Ce, Presentation as ie, RefreshCw as de, RotateCw as he, Send as $e, Settings as ue, Shield as pe, ShieldCheck as fe, SlidersHorizontal as Le, Square as Se, Star as ge, ThumbsDown as we, ThumbsUp as Fe, Trash2 as Ue, Trophy as me, Undo2 as Pe, Upload as ke, User as ye, UserPlus as be, UserRoundCog as De, Users as Re, X as ve } from "lucide-react";
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 = Te.forwardRef(
6
- ({ spin: l, rotate: r, className: c, style: t, strokeWidth: C, fill: i, ...n }, d) => /* @__PURE__ */ h(
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: d,
10
+ ref: h,
10
11
  size: "1em",
11
- className: [c, l ? "animate-spin" : ""].filter(Boolean).join(" ") || void 0,
12
- style: r ? { ...t, transform: `rotate(${r}deg)` } : t,
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: i ?? (o != null && o.filled ? "currentColor" : "none"),
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
- }, Ie = e($), Oe = e(u), Ae = e(p), He = e(f), Be = e(L), xe = e(S), Me = e(g), qe = e(w), Xe = e(F), Ee = e(U), Ne = e(m), 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(O), Ze = e(A, { filled: !0 }), eo = e(H), oo = e(B), so = e(x), ao = e(M), ro = e(q), to = e(X), no = e(E), lo = e(N), co = e(z), Co = e(G), io = e(j), ho = e(W), $o = e(_), uo = e(Y), po = e(J), fo = e(K), Lo = e(Q), So = e(V), go = e(Z), wo = e(ee), Fo = e(oe), Uo = e(se), mo = e(ae), Po = e(re), ko = e(te), yo = e(ne), bo = e(le, { filled: !0 }), Do = e(ce), Ro = e(Ce), vo = e(ie), To = e(de), Io = e(he), Oo = e($e), Ao = e(ue), Ho = e(pe), Bo = e(fe), xo = e(Le), Mo = e(Se, { filled: !0 }), qo = e(ge, { filled: !0 }), Xo = e(we), Eo = e(Fe), No = e(Ue), zo = e(me), Go = e(Pe), jo = e(ke), Wo = e(ye), _o = e(be), Yo = e(De), Jo = e(Re), Ko = e(ve), es = [
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
- ], os = {
95
- ArrowLeft: Ie,
102
+ ], as = {
103
+ ArrowLeft: Ae,
96
104
  ArrowLeftRight: Oe,
97
- BarChart3: Ae,
98
- BookOpen: He,
99
- Bot: Be,
100
- Check: xe,
101
- ChevronDown: Me,
102
- ChevronLeft: qe,
103
- ChevronRight: Xe,
104
- ChevronUp: Ee,
105
- CircleAlert: Ne,
106
- CircleCheck: ze,
107
- CircleHelp: Ge,
108
- CirclePlay: je,
109
- CircleX: We,
110
- ClipboardCheck: _e,
111
- Clock: Ye,
112
- CloudDownload: Je,
113
- CloudUpload: Ke,
114
- Code: Qe,
115
- Copy: Ve,
116
- Crown: Ze,
117
- Database: eo,
118
- Download: oo,
119
- Eye: so,
120
- File: ao,
121
- FileArchive: ro,
122
- FileImage: to,
123
- FileSpreadsheet: no,
124
- FileText: lo,
125
- Flag: co,
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: io,
128
- FolderOpen: ho,
129
- Hash: $o,
130
- House: uo,
131
- Import: po,
132
- Inbox: fo,
133
- Info: Lo,
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: go,
136
- Loader2: wo,
143
+ LayoutGrid: wo,
144
+ Loader2: mo,
137
145
  Lock: Fo,
138
146
  LogOut: Uo,
139
- MessageCircle: mo,
140
- MessageSquare: Po,
141
- PanelLeftClose: ko,
142
- PanelLeftOpen: yo,
143
- Pause: bo,
144
- Pencil: Do,
145
- Plus: Ro,
146
- Presentation: vo,
147
- RefreshCw: To,
148
- RotateCw: Io,
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: Ao,
151
- Shield: Ho,
152
- ShieldCheck: Bo,
153
- SlidersHorizontal: xo,
154
- Square: Mo,
155
- Star: qo,
156
- ThumbsDown: Xo,
157
- ThumbsUp: Eo,
158
- Trash2: No,
159
- Trophy: zo,
160
- Undo2: Go,
161
- Upload: jo,
162
- User: Wo,
163
- UserPlus: _o,
164
- UserRoundCog: Yo,
165
- Users: Jo,
166
- X: Ko
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
- Ie as ArrowLeft,
177
+ Ae as ArrowLeft,
170
178
  Oe as ArrowLeftRight,
171
- Ae as BarChart3,
172
- He as BookOpen,
173
- Be as Bot,
174
- xe as Check,
175
- Me as ChevronDown,
176
- qe as ChevronLeft,
177
- Xe as ChevronRight,
178
- Ee as ChevronUp,
179
- Ne as CircleAlert,
180
- ze as CircleCheck,
181
- Ge as CircleHelp,
182
- je as CirclePlay,
183
- We as CircleX,
184
- _e as ClipboardCheck,
185
- Ye as Clock,
186
- Je as CloudDownload,
187
- Ke as CloudUpload,
188
- Qe as Code,
189
- Ve as Copy,
190
- Ze as Crown,
191
- eo as Database,
192
- oo as Download,
193
- so as Eye,
194
- ao as File,
195
- ro as FileArchive,
196
- to as FileImage,
197
- no as FileSpreadsheet,
198
- lo as FileText,
199
- co as Flag,
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
- io as Folder,
202
- ho as FolderOpen,
203
- $o as Hash,
204
- uo as House,
205
- es as ICON_NAMES,
206
- os as ICON_REGISTRY,
207
- po as Import,
208
- fo as Inbox,
209
- Lo as Info,
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
- go as LayoutGrid,
212
- wo as Loader2,
219
+ wo as LayoutGrid,
220
+ mo as Loader2,
213
221
  Fo as Lock,
214
222
  Uo as LogOut,
215
- mo as MessageCircle,
216
- Po as MessageSquare,
217
- ko as PanelLeftClose,
218
- yo as PanelLeftOpen,
219
- bo as Pause,
220
- Do as Pencil,
221
- Ro as Plus,
222
- vo as Presentation,
223
- To as RefreshCw,
224
- Io as RotateCw,
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
- Ao as Settings,
227
- Ho as Shield,
228
- Bo as ShieldCheck,
229
- xo as SlidersHorizontal,
230
- Mo as Square,
231
- qo as Star,
232
- Xo as ThumbsDown,
233
- Eo as ThumbsUp,
234
- No as Trash2,
235
- zo as Trophy,
236
- Go as Undo2,
237
- jo as Upload,
238
- Wo as User,
239
- _o as UserPlus,
240
- Yo as UserRoundCog,
241
- Jo as Users,
242
- Ko as X,
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","User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AAA,EACpD,eAAAE;AAAA,EAAe,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
+ {"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","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,EAAQ,OAAAE;AAAA,EAAO,MAAAE;AAAA,EACvD,iBAAAE;AAAA,EAAiB,YAAAE;AAAA,EAAY,SAAAE;AAAA,EAAS,MAAAE;AAAA,EAAM,QAAAE;AAAA,EAAQ,eAAAE;AAAA,EACpD,eAAAE;AAAA,EAAe,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 m } from "react/jsx-runtime";
2
- import { Tooltip as f } from "antd";
3
- import d from "../Descriptions/CommonDescriptions.js";
4
- const y = ({
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: e,
7
- column: r = 1,
8
- hidden: i = !1,
9
- placement: n = "top",
6
+ children: r,
7
+ column: i = 1,
8
+ hidden: a = !1,
9
+ placement: e = "top",
10
10
  overlayClassName: p,
11
- overlayStyle: s,
12
- mouseEnterDelay: a = 0.3,
13
- ...l
14
- }) => i || t.length === 0 ? /* @__PURE__ */ o(m, { children: e }) : /* @__PURE__ */ o(
15
- f,
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: n,
18
- mouseEnterDelay: a,
17
+ placement: e,
18
+ mouseEnterDelay: l,
19
19
  destroyOnHidden: !0,
20
20
  classNames: { root: ["tooltip-info-overlay", p].filter(Boolean).join(" ") },
21
- styles: { container: { maxWidth: 360, padding: "8px 12px", ...s } },
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(d, { content: t, column: r, size: "small" }),
24
- ...l,
25
- children: e
32
+ title: /* @__PURE__ */ o(x, { content: t, column: i, size: "small" }),
33
+ ...f,
34
+ children: r
26
35
  }
27
36
  );
28
37
  export {
29
- y as default
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={{ container: { maxWidth: 360, padding: '8px 12px', ...overlayStyle } }}\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,EAAE,WAAW,EAAE,UAAU,KAAK,SAAS,YAAY,GAAGC,IAAa;AAAA,IAC3E,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;"}
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';