refly-icons 1.0.5 → 1.0.6
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 +20 -70
- package/dist/index.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +18 -0
- package/dist/index.mjs +16 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,86 +1,36 @@
|
|
|
1
|
-
#
|
|
1
|
+
# refly-icons
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
一套可自定义颜色和大小的 React SVG 图标库。
|
|
4
4
|
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
- 🎨 **133 个精美图标** - 涵盖各种常用场景
|
|
8
|
-
- 🔍 **实时搜索** - 快速找到需要的图标
|
|
9
|
-
- 📋 **一键复制** - 点击图标即可复制导入代码
|
|
10
|
-
- 📱 **响应式设计** - 支持各种设备屏幕
|
|
11
|
-
- ⚡ **高性能** - 纯 SVG 图标,体积小加载快
|
|
12
|
-
|
|
13
|
-
## 使用方法
|
|
14
|
-
|
|
15
|
-
### 1. 安装
|
|
5
|
+
## 安装
|
|
16
6
|
|
|
17
7
|
```bash
|
|
18
8
|
npm install refly-icons
|
|
9
|
+
# 或
|
|
10
|
+
yarn add refly-icons
|
|
19
11
|
```
|
|
20
12
|
|
|
21
|
-
|
|
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` - 清空搜索内容
|
|
53
|
-
|
|
54
|
-
## 开发
|
|
13
|
+
## 使用方法
|
|
55
14
|
|
|
56
|
-
|
|
15
|
+
```tsx
|
|
16
|
+
import { Language, Account, Resource } from 'refly-icons';
|
|
57
17
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
+
);
|
|
61
25
|
```
|
|
62
26
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
```bash
|
|
66
|
-
npm run build
|
|
67
|
-
```
|
|
27
|
+
- `size`:图标宽高,支持数字或字符串(如 24、'2em')。
|
|
28
|
+
- `color`:图标颜色,支持任意 CSS 颜色值。
|
|
68
29
|
|
|
69
30
|
## 图标列表
|
|
70
31
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
- **基础操作**: 添加、删除、编辑、复制等
|
|
74
|
-
- **导航**: 箭头、返回、前进等
|
|
75
|
-
- **界面**: 设置、搜索、菜单等
|
|
76
|
-
- **文件**: 文档、图片、视频等
|
|
77
|
-
- **状态**: 加载、完成、错误等
|
|
78
|
-
- **工具**: 代码、数据、分析等
|
|
79
|
-
|
|
80
|
-
## 贡献
|
|
81
|
-
|
|
82
|
-
欢迎提交 Issue 和 Pull Request 来改进这个图标库!
|
|
32
|
+
详见 `src/icons` 目录。
|
|
83
33
|
|
|
84
|
-
##
|
|
34
|
+
## 开源协议
|
|
85
35
|
|
|
86
|
-
MIT
|
|
36
|
+
MIT
|
package/dist/index.d.mts
CHANGED
|
@@ -347,4 +347,8 @@ declare const Refresh: React.FC<IconProps>;
|
|
|
347
347
|
|
|
348
348
|
declare const Doc2: React.FC<IconProps>;
|
|
349
349
|
|
|
350
|
-
|
|
350
|
+
declare const Text1: React.FC<IconProps>;
|
|
351
|
+
|
|
352
|
+
declare const X: React.FC<IconProps>;
|
|
353
|
+
|
|
354
|
+
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, Text1, TextFile, Thinking, Tools, Touchpad, Travel, Treemenu, Undo, University, Upgrade, Usage, Video, View, Wait, Weather, Web, Web1, Websearch, Wiki, WinLeft, WinRight, X, ZoomIn, ZoomOut };
|
package/dist/index.d.ts
CHANGED
|
@@ -347,4 +347,8 @@ declare const Refresh: React.FC<IconProps>;
|
|
|
347
347
|
|
|
348
348
|
declare const Doc2: React.FC<IconProps>;
|
|
349
349
|
|
|
350
|
-
|
|
350
|
+
declare const Text1: React.FC<IconProps>;
|
|
351
|
+
|
|
352
|
+
declare const X: React.FC<IconProps>;
|
|
353
|
+
|
|
354
|
+
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, Text1, TextFile, Thinking, Tools, Touchpad, Travel, Treemenu, Undo, University, Upgrade, Usage, Video, View, Wait, Weather, Web, Web1, Websearch, Wiki, WinLeft, WinRight, X, ZoomIn, ZoomOut };
|
package/dist/index.js
CHANGED
|
@@ -179,6 +179,7 @@ __export(src_exports, {
|
|
|
179
179
|
Subscription: () => Subscription_default,
|
|
180
180
|
Tag: () => Tag_default,
|
|
181
181
|
Text: () => Text_default,
|
|
182
|
+
Text1: () => Text1_default,
|
|
182
183
|
TextFile: () => TextFile_default,
|
|
183
184
|
Thinking: () => Thinking_default,
|
|
184
185
|
Tools: () => Tools_default,
|
|
@@ -199,6 +200,7 @@ __export(src_exports, {
|
|
|
199
200
|
Wiki: () => Wiki_default,
|
|
200
201
|
WinLeft: () => WinLeft_default,
|
|
201
202
|
WinRight: () => WinRight_default,
|
|
203
|
+
X: () => X_default,
|
|
202
204
|
ZoomIn: () => ZoomIn_default,
|
|
203
205
|
ZoomOut: () => ZoomOut_default
|
|
204
206
|
});
|
|
@@ -2009,6 +2011,20 @@ var Doc2 = (props) => {
|
|
|
2009
2011
|
] });
|
|
2010
2012
|
};
|
|
2011
2013
|
var Doc2_default = Doc2;
|
|
2014
|
+
|
|
2015
|
+
// src/icons/Text1.tsx
|
|
2016
|
+
var import_jsx_runtime172 = require("react/jsx-runtime");
|
|
2017
|
+
var Text1 = (props) => {
|
|
2018
|
+
return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(Icon, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime172.jsx)("path", { d: "M15 25V19.44C15 17.01 16.91 15.1 19.34 15.1H41.25M67.5 25V19.44C67.5 17.01 65.59 15.1 63.16 15.1H41.25M41.25 15.1V65M36.67 65H45.83", stroke: "black", strokeWidth: "5.56", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
2019
|
+
};
|
|
2020
|
+
var Text1_default = Text1;
|
|
2021
|
+
|
|
2022
|
+
// src/icons/X.tsx
|
|
2023
|
+
var import_jsx_runtime173 = require("react/jsx-runtime");
|
|
2024
|
+
var X = (props) => {
|
|
2025
|
+
return /* @__PURE__ */ (0, import_jsx_runtime173.jsx)(Icon, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("path", { d: "M69.5 12.8C66.3 11.9 65.5 11.4 63.6 11.4C59.9 11.4 56.4 13.5 53.1 16.6C50.2 19.3 47.2 23.0 44.0 27.6C42.2 23.1 40.4 19.5 38.4 16.8C36.2 13.8 33.5 11.4 30.1 11.4C26.8 11.4 23.8 13.6 21.1 16.5C18.4 19.5 16.6 22.7 16.6 25.9C16.6 28.4 18.6 29.7 20.0 30.3L22.9 31.3L23.8 28.4C24.4 26.3 25.1 25.0 25.8 24.2C26.2 23.7 26.6 23.5 26.8 23.5C26.9 23.5 27.2 23.6 27.3 24.0C27.9 24.7 28.7 25.9 29.6 27.8L32.1 33.4L32.1 33.4C32.1 33.4 32.1 33.4 32.1 33.5C32.1 33.5 32.1 33.6 32.1 33.7C32.2 33.8 32.2 33.9 32.2 34.0C32.3 34.2 32.3 34.4 32.3 34.7C32.9 35.5 33.4 36.7 34.0 38.2L35.1 41.1L34.8 41.7L32.1 46.0C29.6 49.9 27.4 52.6 25.5 54.4C23.5 56.1 22.0 56.6 21.0 56.6C20.4 56.6 19.9 56.4 19.3 55.9L17.3 53.9L6.7 64.2L9.5 66.2C11.8 67.8 14.5 68.6 17.5 68.6C21.7 68.6 25.7 66.6 29.5 63.3C32.7 60.4 35.9 56.4 39.1 51.3C41.1 56.3 43.1 60.3 45.2 63.1C47.4 66.2 50.2 68.6 53.7 68.6C56.8 68.6 59.9 66.8 62.9 64.2C64.4 62.9 65.6 61.6 66.5 60.2C67.4 58.9 68.1 57.4 68.1 55.8C68.1 53.6 66.5 52.2 65.3 51.4L62.3 49.5L61.1 52.8C59.8 56.2 58.5 56.8 57.5 56.8C57.4 56.8 57.1 56.7 57.0 56.4C56.4 55.9 55.7 55.0 54.8 53.5C53.0 50.6 51.0 46.0 48.6 39.7L48.6 39.7L47.9 37.8L48.7 36.4L48.7 36.4C51.3 32.1 53.7 29.1 55.7 27.1C57.8 25.1 59.2 24.6 60.1 24.6C60.1 24.6 60.2 24.6 60.3 24.6C60.5 24.6 60.8 24.7 61.1 24.8L62.8 25.3L70.4 17.4L73.3 14.4L69.5 12.8Z", fill: "black" }) });
|
|
2026
|
+
};
|
|
2027
|
+
var X_default = X;
|
|
2012
2028
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2013
2029
|
0 && (module.exports = {
|
|
2014
2030
|
AIModel,
|
|
@@ -2160,6 +2176,7 @@ var Doc2_default = Doc2;
|
|
|
2160
2176
|
Subscription,
|
|
2161
2177
|
Tag,
|
|
2162
2178
|
Text,
|
|
2179
|
+
Text1,
|
|
2163
2180
|
TextFile,
|
|
2164
2181
|
Thinking,
|
|
2165
2182
|
Tools,
|
|
@@ -2180,6 +2197,7 @@ var Doc2_default = Doc2;
|
|
|
2180
2197
|
Wiki,
|
|
2181
2198
|
WinLeft,
|
|
2182
2199
|
WinRight,
|
|
2200
|
+
X,
|
|
2183
2201
|
ZoomIn,
|
|
2184
2202
|
ZoomOut
|
|
2185
2203
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -1803,6 +1803,20 @@ var Doc2 = (props) => {
|
|
|
1803
1803
|
] });
|
|
1804
1804
|
};
|
|
1805
1805
|
var Doc2_default = Doc2;
|
|
1806
|
+
|
|
1807
|
+
// src/icons/Text1.tsx
|
|
1808
|
+
import { jsx as jsx172 } from "react/jsx-runtime";
|
|
1809
|
+
var Text1 = (props) => {
|
|
1810
|
+
return /* @__PURE__ */ jsx172(Icon, { ...props, children: /* @__PURE__ */ jsx172("path", { d: "M15 25V19.44C15 17.01 16.91 15.1 19.34 15.1H41.25M67.5 25V19.44C67.5 17.01 65.59 15.1 63.16 15.1H41.25M41.25 15.1V65M36.67 65H45.83", stroke: "black", strokeWidth: "5.56", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
1811
|
+
};
|
|
1812
|
+
var Text1_default = Text1;
|
|
1813
|
+
|
|
1814
|
+
// src/icons/X.tsx
|
|
1815
|
+
import { jsx as jsx173 } from "react/jsx-runtime";
|
|
1816
|
+
var X = (props) => {
|
|
1817
|
+
return /* @__PURE__ */ jsx173(Icon, { ...props, children: /* @__PURE__ */ jsx173("path", { d: "M69.5 12.8C66.3 11.9 65.5 11.4 63.6 11.4C59.9 11.4 56.4 13.5 53.1 16.6C50.2 19.3 47.2 23.0 44.0 27.6C42.2 23.1 40.4 19.5 38.4 16.8C36.2 13.8 33.5 11.4 30.1 11.4C26.8 11.4 23.8 13.6 21.1 16.5C18.4 19.5 16.6 22.7 16.6 25.9C16.6 28.4 18.6 29.7 20.0 30.3L22.9 31.3L23.8 28.4C24.4 26.3 25.1 25.0 25.8 24.2C26.2 23.7 26.6 23.5 26.8 23.5C26.9 23.5 27.2 23.6 27.3 24.0C27.9 24.7 28.7 25.9 29.6 27.8L32.1 33.4L32.1 33.4C32.1 33.4 32.1 33.4 32.1 33.5C32.1 33.5 32.1 33.6 32.1 33.7C32.2 33.8 32.2 33.9 32.2 34.0C32.3 34.2 32.3 34.4 32.3 34.7C32.9 35.5 33.4 36.7 34.0 38.2L35.1 41.1L34.8 41.7L32.1 46.0C29.6 49.9 27.4 52.6 25.5 54.4C23.5 56.1 22.0 56.6 21.0 56.6C20.4 56.6 19.9 56.4 19.3 55.9L17.3 53.9L6.7 64.2L9.5 66.2C11.8 67.8 14.5 68.6 17.5 68.6C21.7 68.6 25.7 66.6 29.5 63.3C32.7 60.4 35.9 56.4 39.1 51.3C41.1 56.3 43.1 60.3 45.2 63.1C47.4 66.2 50.2 68.6 53.7 68.6C56.8 68.6 59.9 66.8 62.9 64.2C64.4 62.9 65.6 61.6 66.5 60.2C67.4 58.9 68.1 57.4 68.1 55.8C68.1 53.6 66.5 52.2 65.3 51.4L62.3 49.5L61.1 52.8C59.8 56.2 58.5 56.8 57.5 56.8C57.4 56.8 57.1 56.7 57.0 56.4C56.4 55.9 55.7 55.0 54.8 53.5C53.0 50.6 51.0 46.0 48.6 39.7L48.6 39.7L47.9 37.8L48.7 36.4L48.7 36.4C51.3 32.1 53.7 29.1 55.7 27.1C57.8 25.1 59.2 24.6 60.1 24.6C60.1 24.6 60.2 24.6 60.3 24.6C60.5 24.6 60.8 24.7 61.1 24.8L62.8 25.3L70.4 17.4L73.3 14.4L69.5 12.8Z", fill: "black" }) });
|
|
1818
|
+
};
|
|
1819
|
+
var X_default = X;
|
|
1806
1820
|
export {
|
|
1807
1821
|
AIModel_default as AIModel,
|
|
1808
1822
|
Account_default as Account,
|
|
@@ -1953,6 +1967,7 @@ export {
|
|
|
1953
1967
|
Subscription_default as Subscription,
|
|
1954
1968
|
Tag_default as Tag,
|
|
1955
1969
|
Text_default as Text,
|
|
1970
|
+
Text1_default as Text1,
|
|
1956
1971
|
TextFile_default as TextFile,
|
|
1957
1972
|
Thinking_default as Thinking,
|
|
1958
1973
|
Tools_default as Tools,
|
|
@@ -1973,6 +1988,7 @@ export {
|
|
|
1973
1988
|
Wiki_default as Wiki,
|
|
1974
1989
|
WinLeft_default as WinLeft,
|
|
1975
1990
|
WinRight_default as WinRight,
|
|
1991
|
+
X_default as X,
|
|
1976
1992
|
ZoomIn_default as ZoomIn,
|
|
1977
1993
|
ZoomOut_default as ZoomOut
|
|
1978
1994
|
};
|