refly-icons 1.0.4 → 1.0.5

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 CHANGED
@@ -1,36 +1,86 @@
1
- # refly-icons
1
+ # Refly Icons - 图标库展示
2
2
 
3
- 一套可自定义颜色和大小的 React SVG 图标库。
3
+ 这是一个可定制的 SVG React 图标组件库的展示页面。
4
4
 
5
- ## 安装
5
+ ## 功能特性
6
+
7
+ - 🎨 **133 个精美图标** - 涵盖各种常用场景
8
+ - 🔍 **实时搜索** - 快速找到需要的图标
9
+ - 📋 **一键复制** - 点击图标即可复制导入代码
10
+ - 📱 **响应式设计** - 支持各种设备屏幕
11
+ - ⚡ **高性能** - 纯 SVG 图标,体积小加载快
12
+
13
+ ## 使用方法
14
+
15
+ ### 1. 安装
6
16
 
7
17
  ```bash
8
18
  npm install refly-icons
9
- # 或
10
- yarn add refly-icons
11
19
  ```
12
20
 
13
- ## 使用方法
21
+ ### 2. 导入使用
22
+
23
+ ```jsx
24
+ import { AiChat, Video, Search } from 'refly-icons';
25
+
26
+ function App() {
27
+ return (
28
+ <div>
29
+ <AiChat size={24} />
30
+ <Video size={32} />
31
+ <Search size={16} />
32
+ </div>
33
+ );
34
+ }
35
+ ```
36
+
37
+ ### 3. 自定义样式
38
+
39
+ 所有图标都支持通过 CSS 自定义颜色和大小:
40
+
41
+ ```css
42
+ .icon {
43
+ color: #007bff;
44
+ width: 24px;
45
+ height: 24px;
46
+ }
47
+ ```
48
+
49
+ ## 键盘快捷键
50
+
51
+ - `Ctrl/Cmd + K` - 快速聚焦搜索框
52
+ - `ESC` - 清空搜索内容
14
53
 
15
- ```tsx
16
- import { Language, Account, Resource } from 'refly-icons';
54
+ ## 开发
17
55
 
18
- export default () => (
19
- <div>
20
- <Language size={32} color="red" />
21
- <Account size={40} color="#00f" />
22
- <Resource size={24} color="currentColor" />
23
- </div>
24
- );
56
+ ### 本地预览
57
+
58
+ ```bash
59
+ npm run generate-icons # 生成图标数据
60
+ npm run dev # 启动本地服务器
25
61
  ```
26
62
 
27
- - `size`:图标宽高,支持数字或字符串(如 24、'2em')。
28
- - `color`:图标颜色,支持任意 CSS 颜色值。
63
+ ### 构建
64
+
65
+ ```bash
66
+ npm run build
67
+ ```
29
68
 
30
69
  ## 图标列表
31
70
 
32
- 详见 `src/icons` 目录。
71
+ 本库包含以下类别的图标:
72
+
73
+ - **基础操作**: 添加、删除、编辑、复制等
74
+ - **导航**: 箭头、返回、前进等
75
+ - **界面**: 设置、搜索、菜单等
76
+ - **文件**: 文档、图片、视频等
77
+ - **状态**: 加载、完成、错误等
78
+ - **工具**: 代码、数据、分析等
79
+
80
+ ## 贡献
81
+
82
+ 欢迎提交 Issue 和 Pull Request 来改进这个图标库!
33
83
 
34
- ## 开源协议
84
+ ## 许可证
35
85
 
36
- MIT
86
+ MIT License
package/dist/index.d.mts CHANGED
@@ -337,4 +337,14 @@ declare const Mcp1: React.FC<IconProps>;
337
337
 
338
338
  declare const Image: React.FC<IconProps>;
339
339
 
340
- export { AIModel, Account, Add, AddContext, Agent, AiChat, Appearance, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, At, Attachment, Audio, AutoLayout, Back, Building, Cancelled, Chat, Checked, Claude, Clone, Close, Code, Code1, CodeZip, Community, Completed, Computer, Contact, Copy, Creadit, Creation, Cuttools, Data, Deepseek, Delete, Delivery, DesignPattern, Doc, Doc1, DocInline, Download, Edit, Edit1, EditSmart, Excel, Exit, Export, File, File1, Finder, FinderClose, FinderOpen, Finished, Flow, Fold, FreeCreation, Fullscreen, Game, Gemini, GeneralFile, GeneralWeb, Generating, Github, Google, Gpt, Grok, Group, Hamburger, History, Html, Icon, IconProps, Image, InputContext, InterfaceDark, InterfaceLight, Invite, Jump, Keyboard, Knowledge, KnowledgeBase, Labs, Language, LargeModel, List, Location, Logic, Magiccursor, MagiccursorDefault, Mail, Map, Markdown, Market, Mcp, Mcp1, Media, ModelProvider, More, Mouse, NewConversation, Note, Note1, OrgFile, Output, Page, Parse, Pdf, Pending, Play, Ppt, Ppt1, PptFile, Preview, Project, ProjectItem, Provider, Question, Redo, Reference, Refly, Reload, Reloadto, Remix, Resource, Running, ScreenDefault, ScreenFull, Search, Security, Send, Setting, Settings, Share, SideLeft, SideRight, Sort, Sport, Start, Stop, SubNode, Subscription, Tag, Text, TextFile, Thinking, Tools, Touchpad, Travel, Treemenu, Undo, University, Upgrade, Usage, Video, View, Wait, Weather, Web, Web1, Websearch, Wiki, WinLeft, WinRight, ZoomIn, ZoomOut };
340
+ declare const Running1: React.FC<IconProps>;
341
+
342
+ declare const Email: React.FC<IconProps>;
343
+
344
+ declare const Subline: React.FC<IconProps>;
345
+
346
+ declare const Refresh: React.FC<IconProps>;
347
+
348
+ declare const Doc2: React.FC<IconProps>;
349
+
350
+ export { AIModel, Account, Add, AddContext, Agent, AiChat, Appearance, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, At, Attachment, Audio, AutoLayout, Back, Building, Cancelled, Chat, Checked, Claude, Clone, Close, Code, Code1, CodeZip, Community, Completed, Computer, Contact, Copy, Creadit, Creation, Cuttools, Data, Deepseek, Delete, Delivery, DesignPattern, Doc, Doc1, Doc2, DocInline, Download, Edit, Edit1, EditSmart, Email, Excel, Exit, Export, File, File1, Finder, FinderClose, FinderOpen, Finished, Flow, Fold, FreeCreation, Fullscreen, Game, Gemini, GeneralFile, GeneralWeb, Generating, Github, Google, Gpt, Grok, Group, Hamburger, History, Html, Icon, IconProps, Image, InputContext, InterfaceDark, InterfaceLight, Invite, Jump, Keyboard, Knowledge, KnowledgeBase, Labs, Language, LargeModel, List, Location, Logic, Magiccursor, MagiccursorDefault, Mail, Map, Markdown, Market, Mcp, Mcp1, Media, ModelProvider, More, Mouse, NewConversation, Note, Note1, OrgFile, Output, Page, Parse, Pdf, Pending, Play, Ppt, Ppt1, PptFile, Preview, Project, ProjectItem, Provider, Question, Redo, Reference, Refly, Refresh, Reload, Reloadto, Remix, Resource, Running, Running1, ScreenDefault, ScreenFull, Search, Security, Send, Setting, Settings, Share, SideLeft, SideRight, Sort, Sport, Start, Stop, SubNode, Subline, Subscription, Tag, Text, TextFile, Thinking, Tools, Touchpad, Travel, Treemenu, Undo, University, Upgrade, Usage, Video, View, Wait, Weather, Web, Web1, Websearch, Wiki, WinLeft, WinRight, ZoomIn, ZoomOut };
package/dist/index.d.ts CHANGED
@@ -337,4 +337,14 @@ declare const Mcp1: React.FC<IconProps>;
337
337
 
338
338
  declare const Image: React.FC<IconProps>;
339
339
 
340
- export { AIModel, Account, Add, AddContext, Agent, AiChat, Appearance, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, At, Attachment, Audio, AutoLayout, Back, Building, Cancelled, Chat, Checked, Claude, Clone, Close, Code, Code1, CodeZip, Community, Completed, Computer, Contact, Copy, Creadit, Creation, Cuttools, Data, Deepseek, Delete, Delivery, DesignPattern, Doc, Doc1, DocInline, Download, Edit, Edit1, EditSmart, Excel, Exit, Export, File, File1, Finder, FinderClose, FinderOpen, Finished, Flow, Fold, FreeCreation, Fullscreen, Game, Gemini, GeneralFile, GeneralWeb, Generating, Github, Google, Gpt, Grok, Group, Hamburger, History, Html, Icon, IconProps, Image, InputContext, InterfaceDark, InterfaceLight, Invite, Jump, Keyboard, Knowledge, KnowledgeBase, Labs, Language, LargeModel, List, Location, Logic, Magiccursor, MagiccursorDefault, Mail, Map, Markdown, Market, Mcp, Mcp1, Media, ModelProvider, More, Mouse, NewConversation, Note, Note1, OrgFile, Output, Page, Parse, Pdf, Pending, Play, Ppt, Ppt1, PptFile, Preview, Project, ProjectItem, Provider, Question, Redo, Reference, Refly, Reload, Reloadto, Remix, Resource, Running, ScreenDefault, ScreenFull, Search, Security, Send, Setting, Settings, Share, SideLeft, SideRight, Sort, Sport, Start, Stop, SubNode, Subscription, Tag, Text, TextFile, Thinking, Tools, Touchpad, Travel, Treemenu, Undo, University, Upgrade, Usage, Video, View, Wait, Weather, Web, Web1, Websearch, Wiki, WinLeft, WinRight, ZoomIn, ZoomOut };
340
+ declare const Running1: React.FC<IconProps>;
341
+
342
+ declare const Email: React.FC<IconProps>;
343
+
344
+ declare const Subline: React.FC<IconProps>;
345
+
346
+ declare const Refresh: React.FC<IconProps>;
347
+
348
+ declare const Doc2: React.FC<IconProps>;
349
+
350
+ export { AIModel, Account, Add, AddContext, Agent, AiChat, Appearance, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, At, Attachment, Audio, AutoLayout, Back, Building, Cancelled, Chat, Checked, Claude, Clone, Close, Code, Code1, CodeZip, Community, Completed, Computer, Contact, Copy, Creadit, Creation, Cuttools, Data, Deepseek, Delete, Delivery, DesignPattern, Doc, Doc1, Doc2, DocInline, Download, Edit, Edit1, EditSmart, Email, Excel, Exit, Export, File, File1, Finder, FinderClose, FinderOpen, Finished, Flow, Fold, FreeCreation, Fullscreen, Game, Gemini, GeneralFile, GeneralWeb, Generating, Github, Google, Gpt, Grok, Group, Hamburger, History, Html, Icon, IconProps, Image, InputContext, InterfaceDark, InterfaceLight, Invite, Jump, Keyboard, Knowledge, KnowledgeBase, Labs, Language, LargeModel, List, Location, Logic, Magiccursor, MagiccursorDefault, Mail, Map, Markdown, Market, Mcp, Mcp1, Media, ModelProvider, More, Mouse, NewConversation, Note, Note1, OrgFile, Output, Page, Parse, Pdf, Pending, Play, Ppt, Ppt1, PptFile, Preview, Project, ProjectItem, Provider, Question, Redo, Reference, Refly, Refresh, Reload, Reloadto, Remix, Resource, Running, Running1, ScreenDefault, ScreenFull, Search, Security, Send, Setting, Settings, Share, SideLeft, SideRight, Sort, Sport, Start, Stop, SubNode, Subline, Subscription, Tag, Text, TextFile, Thinking, Tools, Touchpad, Travel, Treemenu, Undo, University, Upgrade, Usage, Video, View, Wait, Weather, Web, Web1, Websearch, Wiki, WinLeft, WinRight, ZoomIn, ZoomOut };
package/dist/index.js CHANGED
@@ -71,11 +71,13 @@ __export(src_exports, {
71
71
  DesignPattern: () => DesignPattern_default,
72
72
  Doc: () => Doc_default,
73
73
  Doc1: () => Doc1_default,
74
+ Doc2: () => Doc2_default,
74
75
  DocInline: () => DocInline_default,
75
76
  Download: () => Download_default,
76
77
  Edit: () => Edit_default,
77
78
  Edit1: () => Edit1_default,
78
79
  EditSmart: () => EditSmart_default,
80
+ Email: () => Email_default,
79
81
  Excel: () => Excel_default,
80
82
  Exit: () => Exit_default,
81
83
  Export: () => Export_default,
@@ -151,11 +153,13 @@ __export(src_exports, {
151
153
  Redo: () => Redo_default,
152
154
  Reference: () => Reference_default,
153
155
  Refly: () => Refly_default,
156
+ Refresh: () => Refresh_default,
154
157
  Reload: () => Reload_default,
155
158
  Reloadto: () => Reloadto_default,
156
159
  Remix: () => Remix_default,
157
160
  Resource: () => Resource_default,
158
161
  Running: () => Running_default,
162
+ Running1: () => Running1_default,
159
163
  ScreenDefault: () => ScreenDefault_default,
160
164
  ScreenFull: () => ScreenFull_default,
161
165
  Search: () => Search_default,
@@ -171,6 +175,7 @@ __export(src_exports, {
171
175
  Start: () => Start_default,
172
176
  Stop: () => Stop_default,
173
177
  SubNode: () => SubNode_default,
178
+ Subline: () => Subline_default,
174
179
  Subscription: () => Subscription_default,
175
180
  Tag: () => Tag_default,
176
181
  Text: () => Text_default,
@@ -220,10 +225,19 @@ var Icon = ({
220
225
  ...props,
221
226
  children: import_react.default.Children.map(children, (child) => {
222
227
  if (import_react.default.isValidElement(child)) {
223
- return import_react.default.cloneElement(child, {
224
- ...child.props,
225
- fill: color
226
- });
228
+ const hasStroke = child.props.stroke !== void 0;
229
+ if (hasStroke) {
230
+ return import_react.default.cloneElement(child, {
231
+ ...child.props,
232
+ fill: "none",
233
+ stroke: color
234
+ });
235
+ } else {
236
+ return import_react.default.cloneElement(child, {
237
+ ...child.props,
238
+ fill: color
239
+ });
240
+ }
227
241
  }
228
242
  return child;
229
243
  })
@@ -1947,6 +1961,54 @@ var Image = (props) => {
1947
1961
  return /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(Icon, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime166.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M43.9411 27.6042C43.9411 24.7747 46.2316 22.4842 49.0611 22.4842C51.9242 22.4842 54.2147 24.7747 54.2147 27.6042C54.2147 30.4337 51.9242 32.7243 49.0611 32.7243C46.2316 32.7243 43.9411 30.4337 43.9411 27.6042ZM54.8547 57.5495H25.1453C23.2589 57.5495 22.1137 55.4948 23.0905 53.878L32.1516 39.158C33.0611 37.7095 35.1495 37.6422 36.16 39.0232L41.8189 47.0064C42.7284 48.2527 44.5811 48.3538 45.5916 47.1411L47.6463 44.7832C48.6905 43.5369 50.6779 43.6716 51.52 45.0864L56.9095 53.878C57.8863 55.4948 56.7411 57.5495 54.8547 57.5495ZM54.2147 8H25.7853C15.1411 8 8 15.5116 8 26.6274V53.4064C8 64.5222 15.1411 72.0001 25.7853 72.0001H54.2147C64.8589 72.0001 72 64.5222 72 53.4064V26.6274C72 15.5116 64.8589 8 54.2147 8Z", fill: "black" }) });
1948
1962
  };
1949
1963
  var Image_default = Image;
1964
+
1965
+ // src/icons/Running1.tsx
1966
+ var import_jsx_runtime167 = require("react/jsx-runtime");
1967
+ var Running1 = (props) => {
1968
+ return /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)(Icon, { ...props, children: [
1969
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("path", { d: "M9.14783 31.3093C9.61286 29.6042 11.371 28.5973 13.0761 29.0623C14.7808 29.5273 15.7843 31.2858 15.3199 32.9906C14.6626 35.4006 14.3343 37.9204 14.4105 40.5096L14.4699 41.6221L14.4761 41.9502C14.4314 43.5713 13.1656 44.9281 11.5135 45.0503C9.86125 45.1722 8.40813 44.0162 8.12592 42.419L8.0853 42.094L8.01342 40.694C7.91812 37.4411 8.334 34.2936 9.14783 31.3093Z", fill: "black" }),
1970
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("path", { d: "M19.4607 24.7091C18.4154 26.1341 16.4106 26.4418 14.9855 25.3966C13.5613 24.3516 13.2541 22.3494 14.298 20.9246L19.4607 24.7091ZM19.72 15.2056C21.0586 14.2896 22.901 14.5181 23.9702 15.7838C25.1103 17.134 24.939 19.153 23.5889 20.2933C22.0376 21.6032 20.6531 23.0832 19.4607 24.7091L14.298 20.9246C15.7956 18.8827 17.5312 17.0349 19.4607 15.4057L19.72 15.2056Z", fill: "black" }),
1971
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("path", { d: "M12.2386 48.5222C13.7544 47.8541 15.5096 48.456 16.3105 49.866L16.4574 50.1598L16.8324 50.9723C18.7775 55.0015 21.7176 58.424 25.3296 60.9195C26.7837 61.924 27.1498 63.9186 26.1452 65.3727C25.1407 66.8268 23.1461 67.1898 21.692 66.1853C17.1664 63.0586 13.4953 58.7802 11.0698 53.7568L10.601 52.7411L10.4854 52.4348C9.98441 50.8922 10.7224 49.1906 12.2386 48.5222Z", fill: "black" }),
1972
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("path", { d: "M55.815 60.1569C57.2063 59.067 59.2189 59.3125 60.3089 60.7038C61.3974 62.095 61.1527 64.105 59.762 65.1945C54.9405 68.9716 48.9816 71.4192 42.4146 71.9104C39.5841 72.1221 36.8108 71.9541 34.1456 71.4541L33.0112 71.2197L32.6955 71.1291C31.1579 70.6146 30.2289 69.0105 30.5923 67.3946C30.9565 65.7779 32.485 64.7243 34.0956 64.9195L34.4175 64.9758L35.3269 65.1633C37.4584 65.5631 39.676 65.6984 41.9396 65.5289C47.1976 65.1354 51.9562 63.1797 55.815 60.1569Z", fill: "black" }),
1973
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("path", { d: "M38.7206 8.02418C51.6986 7.52451 63.1613 14.814 68.6121 25.7091L69.1184 26.7747L69.2403 27.0779C69.7598 28.6149 69.0394 30.3263 67.5308 31.0124C66.0226 31.6982 64.2604 31.1164 63.4432 29.7155L63.2932 29.4248L62.8869 28.5717C58.5206 19.8439 49.3414 14.0182 38.9643 14.4181C37.1989 14.4854 35.7135 13.1086 35.6455 11.343C35.5781 9.57753 36.955 8.09223 38.7206 8.02418Z", fill: "black" }),
1974
+ /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("path", { d: "M68.6402 35.7283C70.4059 35.6611 71.8914 37.0376 71.9591 38.8034C72.2122 45.4121 70.4024 51.5943 67.1746 56.8039C66.2437 58.306 64.2735 58.7689 62.7713 57.8383C61.2691 56.9076 60.8064 54.9374 61.7369 53.4351C64.169 49.5099 65.5828 44.9277 65.5839 40.0315L65.5651 39.0471L65.5683 38.719C65.6708 37.1008 66.9849 35.7917 68.6402 35.7283Z", fill: "black" })
1975
+ ] });
1976
+ };
1977
+ var Running1_default = Running1;
1978
+
1979
+ // src/icons/Email.tsx
1980
+ var import_jsx_runtime168 = require("react/jsx-runtime");
1981
+ var Email = (props) => {
1982
+ return /* @__PURE__ */ (0, import_jsx_runtime168.jsxs)(Icon, { ...props, children: [
1983
+ /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("path", { d: "M65.6 30.2406C65.5999 22.7894 60.7713 17.4 54.1375 17.4H25.8625C19.2285 17.4 14.4001 22.7894 14.4 30.2406V50.0218C14.4004 57.4829 19.2264 62.8568 25.8531 62.8406H54.1469C60.7734 62.8569 65.5996 57.4829 65.6 50.0218V30.2406ZM72 50.0218C71.9995 60.2548 65.0223 69.2607 54.1375 69.2375L25.8625 69.2406C14.9775 69.2638 8.00047 60.2547 8 50.0218V30.2406C8.00009 20.0135 14.9801 11 25.8625 11H54.1375C65.0197 11 71.9999 20.0135 72 30.2406V50.0218Z", fill: "black" }),
1984
+ /* @__PURE__ */ (0, import_jsx_runtime168.jsx)("path", { d: "M54.9813 28.5687C56.3523 27.4539 58.3662 27.6605 59.4813 29.0312C60.596 30.4021 60.3892 32.4161 59.0188 33.5312L46.2219 43.9375L46.1938 43.9594C42.6183 46.8004 37.5536 46.8004 33.9781 43.9594L33.9594 43.9469L21.0531 33.5406L20.8094 33.3219C19.6567 32.1814 19.5321 30.3302 20.5719 29.0406C21.6119 27.7515 23.4475 27.4806 24.8063 28.3656L25.0719 28.5594L37.9563 38.95C39.2006 39.9384 40.9683 39.9386 42.2125 38.95L54.9813 28.5687Z", fill: "black" })
1985
+ ] });
1986
+ };
1987
+ var Email_default = Email;
1988
+
1989
+ // src/icons/Subline.tsx
1990
+ var import_jsx_runtime169 = require("react/jsx-runtime");
1991
+ var Subline = (props) => {
1992
+ return /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(Icon, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime169.jsx)("path", { d: "M34 27.1001V11.4965C34 9.88388 35.3073 8.5766 36.9199 8.5766C38.5325 8.5766 39.8398 9.88388 39.8398 11.4965V27.1001C39.8398 37.5796 48.3387 46.0794 58.823 46.0794H71.0801L71.3767 46.0946C72.849 46.244 73.9999 47.4875 74 48.9993C74 50.5112 72.8491 51.7546 71.3767 51.904L71.0801 51.9192H58.823C45.1142 51.9192 34 40.8056 34 27.1001Z", fill: "black" }) });
1993
+ };
1994
+ var Subline_default = Subline;
1995
+
1996
+ // src/icons/Refresh.tsx
1997
+ var import_jsx_runtime170 = require("react/jsx-runtime");
1998
+ var Refresh = (props) => {
1999
+ return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(Icon, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime170.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M69.8299 22.5873C68.0273 21.8265 65.9331 22.6656 65.1687 24.4753L63.3518 28.7775C59.0603 18.2816 48.8205 11 36.7425 11C20.8921 11 7.99988 23.8922 7.99988 39.7425C7.99988 55.5893 20.8921 68.4815 36.7425 68.4815C46.2072 68.4815 55.064 63.8381 60.4328 56.0622C61.5492 54.4445 61.1439 52.2294 59.5297 51.1165C57.9084 49.9965 55.6968 50.4019 54.5804 52.0196C50.5378 57.8755 43.8713 61.3706 36.7425 61.3706C24.8173 61.3706 15.1109 51.6676 15.1109 39.7425C15.1109 27.8139 24.8173 18.111 36.7425 18.111C46.5059 18.111 54.68 24.4255 57.4177 33.2786L50.6623 30.4236C48.8632 29.6592 46.769 30.5054 46.0046 32.3115C45.2401 34.1213 46.0828 36.2084 47.8925 36.9692L60.3688 42.2456C60.5252 42.3238 60.6745 42.3949 60.8452 42.4447L61.3394 42.658C61.7909 42.8465 62.2638 42.9389 62.726 42.9389C64.1127 42.9389 65.4282 42.1247 66.0007 40.7665L71.7179 27.2486C72.4823 25.4388 71.6397 23.3518 69.8299 22.5873Z", fill: "black" }) });
2000
+ };
2001
+ var Refresh_default = Refresh;
2002
+
2003
+ // src/icons/Doc2.tsx
2004
+ var import_jsx_runtime171 = require("react/jsx-runtime");
2005
+ var Doc2 = (props) => {
2006
+ return /* @__PURE__ */ (0, import_jsx_runtime171.jsxs)(Icon, { ...props, children: [
2007
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M56.6703 25.7892C58.8791 25.8122 61.9478 25.8221 64.5537 25.8122C65.8863 25.8089 66.5656 24.1975 65.6401 23.2292C63.9695 21.4766 61.6426 19.0282 59.3025 16.5732C56.9558 14.1084 54.5993 11.6305 52.8828 9.83191C51.9375 8.83417 50.2801 9.52012 50.2801 10.8986V19.3335C50.2801 22.8748 53.165 25.7892 56.6703 25.7892Z", fill: "black" }),
2008
+ /* @__PURE__ */ (0, import_jsx_runtime171.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M49.585 45.9438H27.5034C26.1446 45.9438 25.0418 44.841 25.0418 43.4823C25.0418 42.1235 26.1446 41.0207 27.5034 41.0207H49.585C50.9437 41.0207 52.0465 42.1235 52.0465 43.4823C52.0465 44.841 50.9437 45.9438 49.585 45.9438ZM42.138 57.1717H27.5034C26.1446 57.1717 25.0418 56.0689 25.0418 54.7102C25.0418 53.3514 26.1446 52.2486 27.5034 52.2486H42.138C43.5 52.2486 44.5995 53.3514 44.5995 54.7102C44.5995 56.0689 43.5 57.1717 42.138 57.1717ZM27.5034 29.7961H37.1624C38.5212 29.7961 39.6239 30.8989 39.6239 32.2576C39.6239 33.6164 38.5212 34.7192 37.1624 34.7192H27.5034C26.1446 34.7192 25.0418 33.6164 25.0418 32.2576C25.0418 30.8989 26.1446 29.7961 27.5034 29.7961ZM65.9755 30.4624H56.2475C50.4514 30.4328 45.6662 25.6312 45.6662 19.776V9.47036C45.6662 8.67282 45.0328 8 44.209 8H27.2901C19.4 8 13 14.4952 13 22.4312V56.9288C13 65.2488 19.7184 72 27.9563 72H53.1427C61.0328 72 67.3999 65.5672 67.3999 57.6312V31.9032C67.3999 31.1024 66.7665 30.4624 65.9755 30.4624Z", fill: "black" })
2009
+ ] });
2010
+ };
2011
+ var Doc2_default = Doc2;
1950
2012
  // Annotate the CommonJS export names for ESM import in node:
1951
2013
  0 && (module.exports = {
1952
2014
  AIModel,
@@ -1990,11 +2052,13 @@ var Image_default = Image;
1990
2052
  DesignPattern,
1991
2053
  Doc,
1992
2054
  Doc1,
2055
+ Doc2,
1993
2056
  DocInline,
1994
2057
  Download,
1995
2058
  Edit,
1996
2059
  Edit1,
1997
2060
  EditSmart,
2061
+ Email,
1998
2062
  Excel,
1999
2063
  Exit,
2000
2064
  Export,
@@ -2070,11 +2134,13 @@ var Image_default = Image;
2070
2134
  Redo,
2071
2135
  Reference,
2072
2136
  Refly,
2137
+ Refresh,
2073
2138
  Reload,
2074
2139
  Reloadto,
2075
2140
  Remix,
2076
2141
  Resource,
2077
2142
  Running,
2143
+ Running1,
2078
2144
  ScreenDefault,
2079
2145
  ScreenFull,
2080
2146
  Search,
@@ -2090,6 +2156,7 @@ var Image_default = Image;
2090
2156
  Start,
2091
2157
  Stop,
2092
2158
  SubNode,
2159
+ Subline,
2093
2160
  Subscription,
2094
2161
  Tag,
2095
2162
  Text,
package/dist/index.mjs CHANGED
@@ -19,10 +19,19 @@ var Icon = ({
19
19
  ...props,
20
20
  children: React.Children.map(children, (child) => {
21
21
  if (React.isValidElement(child)) {
22
- return React.cloneElement(child, {
23
- ...child.props,
24
- fill: color
25
- });
22
+ const hasStroke = child.props.stroke !== void 0;
23
+ if (hasStroke) {
24
+ return React.cloneElement(child, {
25
+ ...child.props,
26
+ fill: "none",
27
+ stroke: color
28
+ });
29
+ } else {
30
+ return React.cloneElement(child, {
31
+ ...child.props,
32
+ fill: color
33
+ });
34
+ }
26
35
  }
27
36
  return child;
28
37
  })
@@ -1746,6 +1755,54 @@ var Image = (props) => {
1746
1755
  return /* @__PURE__ */ jsx166(Icon, { ...props, children: /* @__PURE__ */ jsx166("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M43.9411 27.6042C43.9411 24.7747 46.2316 22.4842 49.0611 22.4842C51.9242 22.4842 54.2147 24.7747 54.2147 27.6042C54.2147 30.4337 51.9242 32.7243 49.0611 32.7243C46.2316 32.7243 43.9411 30.4337 43.9411 27.6042ZM54.8547 57.5495H25.1453C23.2589 57.5495 22.1137 55.4948 23.0905 53.878L32.1516 39.158C33.0611 37.7095 35.1495 37.6422 36.16 39.0232L41.8189 47.0064C42.7284 48.2527 44.5811 48.3538 45.5916 47.1411L47.6463 44.7832C48.6905 43.5369 50.6779 43.6716 51.52 45.0864L56.9095 53.878C57.8863 55.4948 56.7411 57.5495 54.8547 57.5495ZM54.2147 8H25.7853C15.1411 8 8 15.5116 8 26.6274V53.4064C8 64.5222 15.1411 72.0001 25.7853 72.0001H54.2147C64.8589 72.0001 72 64.5222 72 53.4064V26.6274C72 15.5116 64.8589 8 54.2147 8Z", fill: "black" }) });
1747
1756
  };
1748
1757
  var Image_default = Image;
1758
+
1759
+ // src/icons/Running1.tsx
1760
+ import { jsx as jsx167, jsxs as jsxs122 } from "react/jsx-runtime";
1761
+ var Running1 = (props) => {
1762
+ return /* @__PURE__ */ jsxs122(Icon, { ...props, children: [
1763
+ /* @__PURE__ */ jsx167("path", { d: "M9.14783 31.3093C9.61286 29.6042 11.371 28.5973 13.0761 29.0623C14.7808 29.5273 15.7843 31.2858 15.3199 32.9906C14.6626 35.4006 14.3343 37.9204 14.4105 40.5096L14.4699 41.6221L14.4761 41.9502C14.4314 43.5713 13.1656 44.9281 11.5135 45.0503C9.86125 45.1722 8.40813 44.0162 8.12592 42.419L8.0853 42.094L8.01342 40.694C7.91812 37.4411 8.334 34.2936 9.14783 31.3093Z", fill: "black" }),
1764
+ /* @__PURE__ */ jsx167("path", { d: "M19.4607 24.7091C18.4154 26.1341 16.4106 26.4418 14.9855 25.3966C13.5613 24.3516 13.2541 22.3494 14.298 20.9246L19.4607 24.7091ZM19.72 15.2056C21.0586 14.2896 22.901 14.5181 23.9702 15.7838C25.1103 17.134 24.939 19.153 23.5889 20.2933C22.0376 21.6032 20.6531 23.0832 19.4607 24.7091L14.298 20.9246C15.7956 18.8827 17.5312 17.0349 19.4607 15.4057L19.72 15.2056Z", fill: "black" }),
1765
+ /* @__PURE__ */ jsx167("path", { d: "M12.2386 48.5222C13.7544 47.8541 15.5096 48.456 16.3105 49.866L16.4574 50.1598L16.8324 50.9723C18.7775 55.0015 21.7176 58.424 25.3296 60.9195C26.7837 61.924 27.1498 63.9186 26.1452 65.3727C25.1407 66.8268 23.1461 67.1898 21.692 66.1853C17.1664 63.0586 13.4953 58.7802 11.0698 53.7568L10.601 52.7411L10.4854 52.4348C9.98441 50.8922 10.7224 49.1906 12.2386 48.5222Z", fill: "black" }),
1766
+ /* @__PURE__ */ jsx167("path", { d: "M55.815 60.1569C57.2063 59.067 59.2189 59.3125 60.3089 60.7038C61.3974 62.095 61.1527 64.105 59.762 65.1945C54.9405 68.9716 48.9816 71.4192 42.4146 71.9104C39.5841 72.1221 36.8108 71.9541 34.1456 71.4541L33.0112 71.2197L32.6955 71.1291C31.1579 70.6146 30.2289 69.0105 30.5923 67.3946C30.9565 65.7779 32.485 64.7243 34.0956 64.9195L34.4175 64.9758L35.3269 65.1633C37.4584 65.5631 39.676 65.6984 41.9396 65.5289C47.1976 65.1354 51.9562 63.1797 55.815 60.1569Z", fill: "black" }),
1767
+ /* @__PURE__ */ jsx167("path", { d: "M38.7206 8.02418C51.6986 7.52451 63.1613 14.814 68.6121 25.7091L69.1184 26.7747L69.2403 27.0779C69.7598 28.6149 69.0394 30.3263 67.5308 31.0124C66.0226 31.6982 64.2604 31.1164 63.4432 29.7155L63.2932 29.4248L62.8869 28.5717C58.5206 19.8439 49.3414 14.0182 38.9643 14.4181C37.1989 14.4854 35.7135 13.1086 35.6455 11.343C35.5781 9.57753 36.955 8.09223 38.7206 8.02418Z", fill: "black" }),
1768
+ /* @__PURE__ */ jsx167("path", { d: "M68.6402 35.7283C70.4059 35.6611 71.8914 37.0376 71.9591 38.8034C72.2122 45.4121 70.4024 51.5943 67.1746 56.8039C66.2437 58.306 64.2735 58.7689 62.7713 57.8383C61.2691 56.9076 60.8064 54.9374 61.7369 53.4351C64.169 49.5099 65.5828 44.9277 65.5839 40.0315L65.5651 39.0471L65.5683 38.719C65.6708 37.1008 66.9849 35.7917 68.6402 35.7283Z", fill: "black" })
1769
+ ] });
1770
+ };
1771
+ var Running1_default = Running1;
1772
+
1773
+ // src/icons/Email.tsx
1774
+ import { jsx as jsx168, jsxs as jsxs123 } from "react/jsx-runtime";
1775
+ var Email = (props) => {
1776
+ return /* @__PURE__ */ jsxs123(Icon, { ...props, children: [
1777
+ /* @__PURE__ */ jsx168("path", { d: "M65.6 30.2406C65.5999 22.7894 60.7713 17.4 54.1375 17.4H25.8625C19.2285 17.4 14.4001 22.7894 14.4 30.2406V50.0218C14.4004 57.4829 19.2264 62.8568 25.8531 62.8406H54.1469C60.7734 62.8569 65.5996 57.4829 65.6 50.0218V30.2406ZM72 50.0218C71.9995 60.2548 65.0223 69.2607 54.1375 69.2375L25.8625 69.2406C14.9775 69.2638 8.00047 60.2547 8 50.0218V30.2406C8.00009 20.0135 14.9801 11 25.8625 11H54.1375C65.0197 11 71.9999 20.0135 72 30.2406V50.0218Z", fill: "black" }),
1778
+ /* @__PURE__ */ jsx168("path", { d: "M54.9813 28.5687C56.3523 27.4539 58.3662 27.6605 59.4813 29.0312C60.596 30.4021 60.3892 32.4161 59.0188 33.5312L46.2219 43.9375L46.1938 43.9594C42.6183 46.8004 37.5536 46.8004 33.9781 43.9594L33.9594 43.9469L21.0531 33.5406L20.8094 33.3219C19.6567 32.1814 19.5321 30.3302 20.5719 29.0406C21.6119 27.7515 23.4475 27.4806 24.8063 28.3656L25.0719 28.5594L37.9563 38.95C39.2006 39.9384 40.9683 39.9386 42.2125 38.95L54.9813 28.5687Z", fill: "black" })
1779
+ ] });
1780
+ };
1781
+ var Email_default = Email;
1782
+
1783
+ // src/icons/Subline.tsx
1784
+ import { jsx as jsx169 } from "react/jsx-runtime";
1785
+ var Subline = (props) => {
1786
+ return /* @__PURE__ */ jsx169(Icon, { ...props, children: /* @__PURE__ */ jsx169("path", { d: "M34 27.1001V11.4965C34 9.88388 35.3073 8.5766 36.9199 8.5766C38.5325 8.5766 39.8398 9.88388 39.8398 11.4965V27.1001C39.8398 37.5796 48.3387 46.0794 58.823 46.0794H71.0801L71.3767 46.0946C72.849 46.244 73.9999 47.4875 74 48.9993C74 50.5112 72.8491 51.7546 71.3767 51.904L71.0801 51.9192H58.823C45.1142 51.9192 34 40.8056 34 27.1001Z", fill: "black" }) });
1787
+ };
1788
+ var Subline_default = Subline;
1789
+
1790
+ // src/icons/Refresh.tsx
1791
+ import { jsx as jsx170 } from "react/jsx-runtime";
1792
+ var Refresh = (props) => {
1793
+ return /* @__PURE__ */ jsx170(Icon, { ...props, children: /* @__PURE__ */ jsx170("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M69.8299 22.5873C68.0273 21.8265 65.9331 22.6656 65.1687 24.4753L63.3518 28.7775C59.0603 18.2816 48.8205 11 36.7425 11C20.8921 11 7.99988 23.8922 7.99988 39.7425C7.99988 55.5893 20.8921 68.4815 36.7425 68.4815C46.2072 68.4815 55.064 63.8381 60.4328 56.0622C61.5492 54.4445 61.1439 52.2294 59.5297 51.1165C57.9084 49.9965 55.6968 50.4019 54.5804 52.0196C50.5378 57.8755 43.8713 61.3706 36.7425 61.3706C24.8173 61.3706 15.1109 51.6676 15.1109 39.7425C15.1109 27.8139 24.8173 18.111 36.7425 18.111C46.5059 18.111 54.68 24.4255 57.4177 33.2786L50.6623 30.4236C48.8632 29.6592 46.769 30.5054 46.0046 32.3115C45.2401 34.1213 46.0828 36.2084 47.8925 36.9692L60.3688 42.2456C60.5252 42.3238 60.6745 42.3949 60.8452 42.4447L61.3394 42.658C61.7909 42.8465 62.2638 42.9389 62.726 42.9389C64.1127 42.9389 65.4282 42.1247 66.0007 40.7665L71.7179 27.2486C72.4823 25.4388 71.6397 23.3518 69.8299 22.5873Z", fill: "black" }) });
1794
+ };
1795
+ var Refresh_default = Refresh;
1796
+
1797
+ // src/icons/Doc2.tsx
1798
+ import { jsx as jsx171, jsxs as jsxs124 } from "react/jsx-runtime";
1799
+ var Doc2 = (props) => {
1800
+ return /* @__PURE__ */ jsxs124(Icon, { ...props, children: [
1801
+ /* @__PURE__ */ jsx171("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M56.6703 25.7892C58.8791 25.8122 61.9478 25.8221 64.5537 25.8122C65.8863 25.8089 66.5656 24.1975 65.6401 23.2292C63.9695 21.4766 61.6426 19.0282 59.3025 16.5732C56.9558 14.1084 54.5993 11.6305 52.8828 9.83191C51.9375 8.83417 50.2801 9.52012 50.2801 10.8986V19.3335C50.2801 22.8748 53.165 25.7892 56.6703 25.7892Z", fill: "black" }),
1802
+ /* @__PURE__ */ jsx171("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M49.585 45.9438H27.5034C26.1446 45.9438 25.0418 44.841 25.0418 43.4823C25.0418 42.1235 26.1446 41.0207 27.5034 41.0207H49.585C50.9437 41.0207 52.0465 42.1235 52.0465 43.4823C52.0465 44.841 50.9437 45.9438 49.585 45.9438ZM42.138 57.1717H27.5034C26.1446 57.1717 25.0418 56.0689 25.0418 54.7102C25.0418 53.3514 26.1446 52.2486 27.5034 52.2486H42.138C43.5 52.2486 44.5995 53.3514 44.5995 54.7102C44.5995 56.0689 43.5 57.1717 42.138 57.1717ZM27.5034 29.7961H37.1624C38.5212 29.7961 39.6239 30.8989 39.6239 32.2576C39.6239 33.6164 38.5212 34.7192 37.1624 34.7192H27.5034C26.1446 34.7192 25.0418 33.6164 25.0418 32.2576C25.0418 30.8989 26.1446 29.7961 27.5034 29.7961ZM65.9755 30.4624H56.2475C50.4514 30.4328 45.6662 25.6312 45.6662 19.776V9.47036C45.6662 8.67282 45.0328 8 44.209 8H27.2901C19.4 8 13 14.4952 13 22.4312V56.9288C13 65.2488 19.7184 72 27.9563 72H53.1427C61.0328 72 67.3999 65.5672 67.3999 57.6312V31.9032C67.3999 31.1024 66.7665 30.4624 65.9755 30.4624Z", fill: "black" })
1803
+ ] });
1804
+ };
1805
+ var Doc2_default = Doc2;
1749
1806
  export {
1750
1807
  AIModel_default as AIModel,
1751
1808
  Account_default as Account,
@@ -1788,11 +1845,13 @@ export {
1788
1845
  DesignPattern_default as DesignPattern,
1789
1846
  Doc_default as Doc,
1790
1847
  Doc1_default as Doc1,
1848
+ Doc2_default as Doc2,
1791
1849
  DocInline_default as DocInline,
1792
1850
  Download_default as Download,
1793
1851
  Edit_default as Edit,
1794
1852
  Edit1_default as Edit1,
1795
1853
  EditSmart_default as EditSmart,
1854
+ Email_default as Email,
1796
1855
  Excel_default as Excel,
1797
1856
  Exit_default as Exit,
1798
1857
  Export_default as Export,
@@ -1868,11 +1927,13 @@ export {
1868
1927
  Redo_default as Redo,
1869
1928
  Reference_default as Reference,
1870
1929
  Refly_default as Refly,
1930
+ Refresh_default as Refresh,
1871
1931
  Reload_default as Reload,
1872
1932
  Reloadto_default as Reloadto,
1873
1933
  Remix_default as Remix,
1874
1934
  Resource_default as Resource,
1875
1935
  Running_default as Running,
1936
+ Running1_default as Running1,
1876
1937
  ScreenDefault_default as ScreenDefault,
1877
1938
  ScreenFull_default as ScreenFull,
1878
1939
  Search_default as Search,
@@ -1888,6 +1949,7 @@ export {
1888
1949
  Start_default as Start,
1889
1950
  Stop_default as Stop,
1890
1951
  SubNode_default as SubNode,
1952
+ Subline_default as Subline,
1891
1953
  Subscription_default as Subscription,
1892
1954
  Tag_default as Tag,
1893
1955
  Text_default as Text,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "refly-icons",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "A set of customizable SVG React icon components for Refly.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",