naive-icons 1.9.0 → 1.10.0
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/CHANGELOG.md +17 -0
- package/README.md +4 -4
- package/README.zh-CN.md +4 -4
- package/dist/EyeIcon.js +3 -3
- package/dist/EyeIcon.mjs +1 -1
- package/dist/EyeOffIcon.js +3 -3
- package/dist/EyeOffIcon.mjs +1 -1
- package/dist/NoDataIcon.d.mts +6 -0
- package/dist/NoDataIcon.d.ts +6 -0
- package/dist/NoDataIcon.js +19 -0
- package/dist/NoDataIcon.mjs +4 -0
- package/dist/{chunk-LXERIEST.mjs → chunk-6EGY26CV.mjs} +2 -2
- package/dist/{chunk-TNQZ4GX6.js → chunk-H2WWUE6J.js} +2 -2
- package/dist/{chunk-HRA2JWKY.js → chunk-NKQBZU57.js} +2 -2
- package/dist/{chunk-3ZTZ47N3.mjs → chunk-PO3N5M3A.mjs} +2 -2
- package/dist/{chunk-DW2H656Z.js → chunk-PZ5HDDZI.js} +2 -2
- package/dist/chunk-VIAX4KEG.mjs +37 -0
- package/dist/{chunk-QITMHY62.mjs → chunk-YANZQJOZ.mjs} +2 -2
- package/dist/chunk-ZMPIO76P.js +40 -0
- package/dist/createIcon.d.mts +2 -2
- package/dist/createIcon.d.ts +2 -2
- package/dist/createIcon.js +3 -3
- package/dist/createIcon.mjs +1 -1
- package/dist/index.d.mts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +47 -41
- package/dist/index.mjs +15 -13
- package/package.json +1 -1
- package/skills/naive-icons/SKILL.md +11 -11
- package/skills/naive-icons/reference/catalog.md +2 -1
- package/skills/naive-icons/reference/design-spec.md +5 -5
- package/skills/naive-icons/reference/patterns.md +2 -2
- package/skills/naive-icons/scripts/emit.py +3 -3
- package/skills/naive-icons/scripts/icons.json +3 -2
- package/skills/naive-icons/scripts/search.py +7 -1
- package/svg/eye-off.svg +5 -4
- package/svg/eye.svg +4 -4
- package/svg/no-data.svg +8 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
本文件记录 Naive Icons 的每个版本变更。版本号遵循语义化版本规范(SemVer)。
|
|
4
4
|
|
|
5
|
+
## 1.10.0
|
|
6
|
+
|
|
7
|
+
新增
|
|
8
|
+
|
|
9
|
+
- **1 枚图标**(201 → **202**):
|
|
10
|
+
- `no-data` 暂无数据 —— 一只敞口的空纸箱。深蓝内壁表示「里面什么都没有」,
|
|
11
|
+
橙色封条点出这是纸箱而不是垃圾桶或花盆。归入「界面基础」分类,
|
|
12
|
+
Vue 版同步产出 `NoDataIcon`
|
|
13
|
+
|
|
14
|
+
修复
|
|
15
|
+
|
|
16
|
+
- **`eye` / `eye-off` 重绘** —— 之前这两枚在浏览器里其实渲染成了一团黑饼:
|
|
17
|
+
眼白、虹膜、高光都继承了根节点的 `stroke-width="3.5"`,描边向内吃掉 1.75 单位,
|
|
18
|
+
白色高光(r=1.2)被完全吃光,虹膜也被瞳孔的描边啃掉大半。
|
|
19
|
+
现在内层三个圆统一 `stroke="none"`(与 `search` 一致),眼形改成更饱满的杏仁,
|
|
20
|
+
虹膜改为墨蓝,高光恢复可见;`eye-off` 的斜杠加粗到 4
|
|
21
|
+
|
|
5
22
|
## 1.9.0
|
|
6
23
|
|
|
7
24
|
新增
|
package/README.md
CHANGED
|
@@ -41,7 +41,7 @@ Each icon is drawn on a 48x48 grid with a 3.5 stroke, rounded line caps, and a r
|
|
|
41
41
|
- `createIcon` — a factory that gives your own icons the same root node, a11y and stroke scaling as the built-ins
|
|
42
42
|
- Supports `currentColor` to follow the surrounding text color
|
|
43
43
|
- Official Agent Skill: one command installs it into your AI coding agent, which can then pick icons by meaning and emit ready-to-paste code
|
|
44
|
-
- A Vue 3 port lives in `naive-icons-vue`: the same
|
|
44
|
+
- A Vue 3 port lives in `naive-icons-vue`: the same 202 icons and the same geometry, with Vue's component API
|
|
45
45
|
|
|
46
46
|
## AI Agent Skill
|
|
47
47
|
|
|
@@ -68,7 +68,7 @@ Re-run the same command after upgrading the library to update it.
|
|
|
68
68
|
|
|
69
69
|
## Installation
|
|
70
70
|
|
|
71
|
-
Two packages ship the same
|
|
71
|
+
Two packages ship the same 202 icons. Pick the one that matches your framework:
|
|
72
72
|
|
|
73
73
|
| Framework | Package | Requires |
|
|
74
74
|
| --- | --- | --- |
|
|
@@ -246,11 +246,11 @@ const map: Record<IconId, () => Promise<unknown>> = {
|
|
|
246
246
|
```
|
|
247
247
|
|
|
248
248
|
Importing the package as a namespace (`import * as icons`) also lets you look icons up by name,
|
|
249
|
-
but it pulls all
|
|
249
|
+
but it pulls all 202 icons into the bundle and zeroes out tree-shaking. `iconNames` lets you
|
|
250
250
|
build a lookup that only loads the icons you actually reach for.
|
|
251
251
|
|
|
252
252
|
To draw an icon of your own in the same style, use the `createIcon` factory. It produces the
|
|
253
|
-
exact same root node, accessibility attributes and stroke scaling as the
|
|
253
|
+
exact same root node, accessibility attributes and stroke scaling as the 202 built-in icons:
|
|
254
254
|
|
|
255
255
|
```tsx
|
|
256
256
|
import { createIcon } from 'naive-icons';
|
package/README.zh-CN.md
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
- `createIcon`——图标工厂,自建图标能拿到与内置图标完全一致的根节点、无障碍与描边缩放
|
|
42
42
|
- 支持 currentColor,传入后图标跟随文字颜色
|
|
43
43
|
- 官方 Agent Skill:一条命令装到 AI 编码助手,按语义帮你挑图标并生成代码
|
|
44
|
-
- 另有 Vue 3 版本 `naive-icons-vue`:同样的
|
|
44
|
+
- 另有 Vue 3 版本 `naive-icons-vue`:同样的 202 枚图标与同样的图形,只是组件 API 换成了 Vue 那套
|
|
45
45
|
|
|
46
46
|
## AI Agent Skill
|
|
47
47
|
|
|
@@ -65,7 +65,7 @@ Skill 自带完整图标目录、设计规范和用法,以及全部 SVG 源码
|
|
|
65
65
|
|
|
66
66
|
## 安装
|
|
67
67
|
|
|
68
|
-
本库有两个包,卖的是同一套
|
|
68
|
+
本库有两个包,卖的是同一套 202 枚图标。按你的框架挑一个装:
|
|
69
69
|
|
|
70
70
|
| 框架 | 包名 | 需要 |
|
|
71
71
|
| --- | --- | --- |
|
|
@@ -238,11 +238,11 @@ const map: Record<IconId, () => Promise<unknown>> = {
|
|
|
238
238
|
};
|
|
239
239
|
```
|
|
240
240
|
|
|
241
|
-
用 `import * as icons` 也能按名字取,但会把全部
|
|
241
|
+
用 `import * as icons` 也能按名字取,但会把全部 202 枚都打进包,tree-shaking 直接归零。
|
|
242
242
|
`iconNames` 让你搭一张只加载真正用得到的图标的查找表。
|
|
243
243
|
|
|
244
244
|
想自己画一个同样风格的图标,用 `createIcon` 工厂。它产出的根节点、无障碍属性和描边缩放
|
|
245
|
-
与内置的
|
|
245
|
+
与内置的 202 枚完全一致:
|
|
246
246
|
|
|
247
247
|
```tsx
|
|
248
248
|
import { createIcon } from 'naive-icons';
|
package/dist/EyeIcon.js
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkPZ5HDDZI_js = require('./chunk-PZ5HDDZI.js');
|
|
6
6
|
require('./chunk-3NKZLDRJ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "EyeIcon", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkPZ5HDDZI_js.EyeIcon; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "default", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkPZ5HDDZI_js.EyeIcon_default; }
|
|
17
17
|
});
|
|
18
18
|
//# sourceMappingURL=EyeIcon.js.map
|
|
19
19
|
//# sourceMappingURL=EyeIcon.js.map
|
package/dist/EyeIcon.mjs
CHANGED
package/dist/EyeOffIcon.js
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkH2WWUE6J_js = require('./chunk-H2WWUE6J.js');
|
|
6
6
|
require('./chunk-3NKZLDRJ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
Object.defineProperty(exports, "EyeOffIcon", {
|
|
11
11
|
enumerable: true,
|
|
12
|
-
get: function () { return
|
|
12
|
+
get: function () { return chunkH2WWUE6J_js.EyeOffIcon; }
|
|
13
13
|
});
|
|
14
14
|
Object.defineProperty(exports, "default", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkH2WWUE6J_js.EyeOffIcon_default; }
|
|
17
17
|
});
|
|
18
18
|
//# sourceMappingURL=EyeOffIcon.js.map
|
|
19
19
|
//# sourceMappingURL=EyeOffIcon.js.map
|
package/dist/EyeOffIcon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { EyeOffIcon, EyeOffIcon_default as default } from './chunk-
|
|
1
|
+
export { EyeOffIcon, EyeOffIcon_default as default } from './chunk-6EGY26CV.mjs';
|
|
2
2
|
import './chunk-LVVIY7VH.mjs';
|
|
3
3
|
//# sourceMappingURL=EyeOffIcon.mjs.map
|
|
4
4
|
//# sourceMappingURL=EyeOffIcon.mjs.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var chunkZMPIO76P_js = require('./chunk-ZMPIO76P.js');
|
|
6
|
+
require('./chunk-3NKZLDRJ.js');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "NoDataIcon", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return chunkZMPIO76P_js.NoDataIcon; }
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "default", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return chunkZMPIO76P_js.NoDataIcon_default; }
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=NoDataIcon.js.map
|
|
19
|
+
//# sourceMappingURL=NoDataIcon.js.map
|
|
@@ -31,5 +31,5 @@ EyeOffIcon.displayName = "EyeOffIcon";
|
|
|
31
31
|
var EyeOffIcon_default = EyeOffIcon;
|
|
32
32
|
|
|
33
33
|
export { EyeOffIcon, EyeOffIcon_default };
|
|
34
|
-
//# sourceMappingURL=chunk-
|
|
35
|
-
//# sourceMappingURL=chunk-
|
|
34
|
+
//# sourceMappingURL=chunk-6EGY26CV.mjs.map
|
|
35
|
+
//# sourceMappingURL=chunk-6EGY26CV.mjs.map
|
|
@@ -34,5 +34,5 @@ var EyeOffIcon_default = EyeOffIcon;
|
|
|
34
34
|
|
|
35
35
|
exports.EyeOffIcon = EyeOffIcon;
|
|
36
36
|
exports.EyeOffIcon_default = EyeOffIcon_default;
|
|
37
|
-
//# sourceMappingURL=chunk-
|
|
38
|
-
//# sourceMappingURL=chunk-
|
|
37
|
+
//# sourceMappingURL=chunk-H2WWUE6J.js.map
|
|
38
|
+
//# sourceMappingURL=chunk-H2WWUE6J.js.map
|
|
@@ -44,5 +44,5 @@ function createIcon(name, body) {
|
|
|
44
44
|
|
|
45
45
|
exports.NAIVE_ROOT = NAIVE_ROOT;
|
|
46
46
|
exports.createIcon = createIcon;
|
|
47
|
-
//# sourceMappingURL=chunk-
|
|
48
|
-
//# sourceMappingURL=chunk-
|
|
47
|
+
//# sourceMappingURL=chunk-NKQBZU57.js.map
|
|
48
|
+
//# sourceMappingURL=chunk-NKQBZU57.js.map
|
|
@@ -31,5 +31,5 @@ EyeIcon.displayName = "EyeIcon";
|
|
|
31
31
|
var EyeIcon_default = EyeIcon;
|
|
32
32
|
|
|
33
33
|
export { EyeIcon, EyeIcon_default };
|
|
34
|
-
//# sourceMappingURL=chunk-
|
|
35
|
-
//# sourceMappingURL=chunk-
|
|
34
|
+
//# sourceMappingURL=chunk-PO3N5M3A.mjs.map
|
|
35
|
+
//# sourceMappingURL=chunk-PO3N5M3A.mjs.map
|
|
@@ -34,5 +34,5 @@ var EyeIcon_default = EyeIcon;
|
|
|
34
34
|
|
|
35
35
|
exports.EyeIcon = EyeIcon;
|
|
36
36
|
exports.EyeIcon_default = EyeIcon_default;
|
|
37
|
-
//# sourceMappingURL=chunk-
|
|
38
|
-
//# sourceMappingURL=chunk-
|
|
37
|
+
//# sourceMappingURL=chunk-PZ5HDDZI.js.map
|
|
38
|
+
//# sourceMappingURL=chunk-PZ5HDDZI.js.map
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { scaledStroke, normalizeIconProps } from './chunk-LVVIY7VH.mjs';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var NoDataIcon = forwardRef((props, ref) => {
|
|
6
|
+
const labelled = Boolean(props.title || props["aria-label"] || props.role);
|
|
7
|
+
const sw = scaledStroke(props.strokeWidth);
|
|
8
|
+
return /* @__PURE__ */ jsxs(
|
|
9
|
+
"svg",
|
|
10
|
+
{
|
|
11
|
+
ref,
|
|
12
|
+
viewBox: "0 0 48 48",
|
|
13
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
+
fill: "none",
|
|
15
|
+
strokeLinecap: "round",
|
|
16
|
+
strokeLinejoin: "round",
|
|
17
|
+
role: props.title ? "img" : void 0,
|
|
18
|
+
"aria-hidden": labelled ? void 0 : true,
|
|
19
|
+
...normalizeIconProps(props),
|
|
20
|
+
children: [
|
|
21
|
+
props.title ? /* @__PURE__ */ jsx("title", { children: props.title }) : null,
|
|
22
|
+
/* @__PURE__ */ jsx("path", { d: "M8 13 L8 39 L40 39 L40 13 Z", fill: "#8B5E3C", stroke: "none" }),
|
|
23
|
+
/* @__PURE__ */ jsx("path", { d: "M11 13 L37 13 L33 22 L15 22 Z", fill: "#FAEDCD", stroke: "none" }),
|
|
24
|
+
/* @__PURE__ */ jsx("path", { d: "M13.2 18 L34.8 18 L33 22 L15 22 Z", fill: "#264653", stroke: "none" }),
|
|
25
|
+
/* @__PURE__ */ jsx("path", { d: "M20 22 L28 22 L28 39 L20 39 Z", fill: "#E76F51", stroke: "none" }),
|
|
26
|
+
/* @__PURE__ */ jsx("path", { d: "M11 13 L37 13 L33 22 L15 22 Z", stroke: "#2A2A2A", strokeWidth: sw(3), strokeLinejoin: "round", fill: "none" }),
|
|
27
|
+
/* @__PURE__ */ jsx("path", { d: "M8 13 L8 39 L40 39 L40 13", stroke: "#2A2A2A", strokeWidth: sw(3.5), fill: "none" })
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
});
|
|
32
|
+
NoDataIcon.displayName = "NoDataIcon";
|
|
33
|
+
var NoDataIcon_default = NoDataIcon;
|
|
34
|
+
|
|
35
|
+
export { NoDataIcon, NoDataIcon_default };
|
|
36
|
+
//# sourceMappingURL=chunk-VIAX4KEG.mjs.map
|
|
37
|
+
//# sourceMappingURL=chunk-VIAX4KEG.mjs.map
|
|
@@ -41,5 +41,5 @@ function createIcon(name, body) {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export { NAIVE_ROOT, createIcon };
|
|
44
|
-
//# sourceMappingURL=chunk-
|
|
45
|
-
//# sourceMappingURL=chunk-
|
|
44
|
+
//# sourceMappingURL=chunk-YANZQJOZ.mjs.map
|
|
45
|
+
//# sourceMappingURL=chunk-YANZQJOZ.mjs.map
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk3NKZLDRJ_js = require('./chunk-3NKZLDRJ.js');
|
|
4
|
+
var react = require('react');
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
|
|
7
|
+
var NoDataIcon = react.forwardRef((props, ref) => {
|
|
8
|
+
const labelled = Boolean(props.title || props["aria-label"] || props.role);
|
|
9
|
+
const sw = chunk3NKZLDRJ_js.scaledStroke(props.strokeWidth);
|
|
10
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
11
|
+
"svg",
|
|
12
|
+
{
|
|
13
|
+
ref,
|
|
14
|
+
viewBox: "0 0 48 48",
|
|
15
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16
|
+
fill: "none",
|
|
17
|
+
strokeLinecap: "round",
|
|
18
|
+
strokeLinejoin: "round",
|
|
19
|
+
role: props.title ? "img" : void 0,
|
|
20
|
+
"aria-hidden": labelled ? void 0 : true,
|
|
21
|
+
...chunk3NKZLDRJ_js.normalizeIconProps(props),
|
|
22
|
+
children: [
|
|
23
|
+
props.title ? /* @__PURE__ */ jsxRuntime.jsx("title", { children: props.title }) : null,
|
|
24
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M8 13 L8 39 L40 39 L40 13 Z", fill: "#8B5E3C", stroke: "none" }),
|
|
25
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M11 13 L37 13 L33 22 L15 22 Z", fill: "#FAEDCD", stroke: "none" }),
|
|
26
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M13.2 18 L34.8 18 L33 22 L15 22 Z", fill: "#264653", stroke: "none" }),
|
|
27
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M20 22 L28 22 L28 39 L20 39 Z", fill: "#E76F51", stroke: "none" }),
|
|
28
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M11 13 L37 13 L33 22 L15 22 Z", stroke: "#2A2A2A", strokeWidth: sw(3), strokeLinejoin: "round", fill: "none" }),
|
|
29
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M8 13 L8 39 L40 39 L40 13", stroke: "#2A2A2A", strokeWidth: sw(3.5), fill: "none" })
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
});
|
|
34
|
+
NoDataIcon.displayName = "NoDataIcon";
|
|
35
|
+
var NoDataIcon_default = NoDataIcon;
|
|
36
|
+
|
|
37
|
+
exports.NoDataIcon = NoDataIcon;
|
|
38
|
+
exports.NoDataIcon_default = NoDataIcon_default;
|
|
39
|
+
//# sourceMappingURL=chunk-ZMPIO76P.js.map
|
|
40
|
+
//# sourceMappingURL=chunk-ZMPIO76P.js.map
|
package/dist/createIcon.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import { I as IconProps } from './iconProps-Cp-AJELp.mjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* naive 根节点属性。
|
|
6
|
+
* naive 根节点属性。202 枚内置组件逐字节一致,这里把它固化成一份常量,
|
|
7
7
|
* 供 createIcon 使用 —— 自建图标不用再手抄这段样板,也就不会抄错。
|
|
8
8
|
*/
|
|
9
9
|
declare const NAIVE_ROOT: {
|
|
@@ -18,7 +18,7 @@ type IconBody = ReactNode | ((sw: (designed: number) => number) => ReactNode);
|
|
|
18
18
|
/**
|
|
19
19
|
* 用 naive 风格造一个图标组件。
|
|
20
20
|
*
|
|
21
|
-
* 根节点、无障碍属性、描边缩放全部与内置
|
|
21
|
+
* 根节点、无障碍属性、描边缩放全部与内置 202 枚一致;内层描边宽度用 body
|
|
22
22
|
* 收到的 sw() 换算,这样 `<MyIcon strokeWidth={7} />` 整体加粗、层次保持。
|
|
23
23
|
*
|
|
24
24
|
* ```tsx
|
package/dist/createIcon.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ReactNode } from 'react';
|
|
|
3
3
|
import { I as IconProps } from './iconProps-Cp-AJELp.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* naive 根节点属性。
|
|
6
|
+
* naive 根节点属性。202 枚内置组件逐字节一致,这里把它固化成一份常量,
|
|
7
7
|
* 供 createIcon 使用 —— 自建图标不用再手抄这段样板,也就不会抄错。
|
|
8
8
|
*/
|
|
9
9
|
declare const NAIVE_ROOT: {
|
|
@@ -18,7 +18,7 @@ type IconBody = ReactNode | ((sw: (designed: number) => number) => ReactNode);
|
|
|
18
18
|
/**
|
|
19
19
|
* 用 naive 风格造一个图标组件。
|
|
20
20
|
*
|
|
21
|
-
* 根节点、无障碍属性、描边缩放全部与内置
|
|
21
|
+
* 根节点、无障碍属性、描边缩放全部与内置 202 枚一致;内层描边宽度用 body
|
|
22
22
|
* 收到的 sw() 换算,这样 `<MyIcon strokeWidth={7} />` 整体加粗、层次保持。
|
|
23
23
|
*
|
|
24
24
|
* ```tsx
|
package/dist/createIcon.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkNKQBZU57_js = require('./chunk-NKQBZU57.js');
|
|
4
4
|
require('./chunk-3NKZLDRJ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "NAIVE_ROOT", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkNKQBZU57_js.NAIVE_ROOT; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "createIcon", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkNKQBZU57_js.createIcon; }
|
|
15
15
|
});
|
|
16
16
|
//# sourceMappingURL=createIcon.js.map
|
|
17
17
|
//# sourceMappingURL=createIcon.js.map
|
package/dist/createIcon.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -124,6 +124,7 @@ export { MouseIcon } from './MouseIcon.mjs';
|
|
|
124
124
|
export { MushroomIcon } from './MushroomIcon.mjs';
|
|
125
125
|
export { MusicIcon } from './MusicIcon.mjs';
|
|
126
126
|
export { NewspaperIcon } from './NewspaperIcon.mjs';
|
|
127
|
+
export { NoDataIcon } from './NoDataIcon.mjs';
|
|
127
128
|
export { OwlIcon } from './OwlIcon.mjs';
|
|
128
129
|
export { PaintbrushIcon } from './PaintbrushIcon.mjs';
|
|
129
130
|
export { PaletteIcon } from './PaletteIcon.mjs';
|
|
@@ -237,7 +238,7 @@ declare const NAIVE_PALETTE: {
|
|
|
237
238
|
};
|
|
238
239
|
type PaletteColor = keyof typeof NAIVE_PALETTE;
|
|
239
240
|
/** 所有图标组件名 */
|
|
240
|
-
type IconName = 'AirplaneIcon' | 'AlertCircleIcon' | 'AlertTriangleIcon' | 'AnchorIcon' | 'AppleIcon' | 'ArrowDownIcon' | 'ArrowDownCircleIcon' | 'ArrowDownLeftIcon' | 'ArrowDownRightIcon' | 'ArrowJumpIcon' | 'ArrowLeftIcon' | 'ArrowLeftCircleIcon' | 'ArrowRightIcon' | 'ArrowRightCircleIcon' | 'ArrowUpIcon' | 'ArrowUpCircleIcon' | 'ArrowUpDownIcon' | 'ArrowUpLeftIcon' | 'ArrowUpRightIcon' | 'BadgeCheckIcon' | 'BalloonIcon' | 'BanIcon' | 'BasketballIcon' | 'BatteryIcon' | 'BearIcon' | 'BeeIcon' | 'BellIcon' | 'BellOffIcon' | 'BicycleIcon' | 'BirdIcon' | 'BoldIcon' | 'BoltIcon' | 'BookIcon' | 'BookmarkIcon' | 'BulbIcon' | 'ButterflyIcon' | 'CactusIcon' | 'CakeIcon' | 'CalculatorIcon' | 'CalendarIcon' | 'CameraIcon' | 'CandleIcon' | 'CarIcon' | 'CartIcon' | 'CatIcon' | 'ChargerIcon' | 'ChatIcon' | 'CheckIcon' | 'CheckCircleIcon' | 'CheckSquareIcon' | 'CherryIcon' | 'ChevronDownIcon' | 'ChevronLeftIcon' | 'ChevronRightIcon' | 'ChevronUpIcon' | 'ClipboardIcon' | 'ClockIcon' | 'CloseIcon' | 'CloudIcon' | 'CodeIcon' | 'CoffeeIcon' | 'CoffeeCupIcon' | 'CompassIcon' | 'CopyIcon' | 'CreditCardIcon' | 'DogIcon' | 'DonutIcon' | 'DownloadIcon' | 'DumbbellIcon' | 'EditIcon' | 'EllipsisIcon' | 'ExternalLinkIcon' | 'EyeIcon' | 'EyeOffIcon' | 'FileIcon' | 'FilterIcon' | 'FishIcon' | 'FlagIcon' | 'FlameIcon' | 'FlowerIcon' | 'FolderIcon' | 'FolderMinusIcon' | 'FolderPlusIcon' | 'FoxIcon' | 'FrogIcon' | 'GiftIcon' | 'GlobeIcon' | 'GoogleChromeIcon' | 'GridIcon' | 'HeadphonesIcon' | 'HeartIcon' | 'HelpCircleIcon' | 'HomeIcon' | 'IcecreamIcon' | 'ImageIcon' | 'InboxIcon' | 'InfoIcon' | 'ItalicIcon' | 'KeyIcon' | 'KeyboardIcon' | 'LadybugIcon' | 'LampIcon' | 'LeafIcon' | 'LemonIcon' | 'LinkIcon' | 'ListIcon' | 'LocationIcon' | 'LockIcon' | 'LockOpenIcon' | 'MagnetIcon' | 'MailIcon' | 'MapIcon' | 'MapPinIcon' | 'MaximizeIcon' | 'MenuIcon' | 'MicIcon' | 'MinusIcon' | 'MinusCircleIcon' | 'MonitorIcon' | 'MoonIcon' | 'MoreVerticalIcon' | 'MountainIcon' | 'MouseIcon' | 'MushroomIcon' | 'MusicIcon' | 'NewspaperIcon' | 'OwlIcon' | 'PaintbrushIcon' | 'PaletteIcon' | 'PaperclipIcon' | 'PauseIcon' | 'PauseCircleIcon' | 'PencilIcon' | 'PenguinIcon' | 'PhoneIcon' | 'PlayIcon' | 'PlayCircleIcon' | 'PlusIcon' | 'PlusCircleIcon' | 'PowerIcon' | 'PrinterIcon' | 'RabbitIcon' | 'RadioIcon' | 'RainbowIcon' | 'RedoIcon' | 'RefreshIcon' | 'RocketIcon' | 'RssIcon' | 'SailboatIcon' | 'SaveIcon' | 'ScissorsIcon' | 'ScooterIcon' | 'SearchIcon' | 'SendIcon' | 'SettingsIcon' | 'ShareIcon' | 'ShieldIcon' | 'ShoppingBagIcon' | 'ShoppingCartIcon' | 'SlidersIcon' | 'SmileIcon' | 'SnailIcon' | 'SnowflakeIcon' | 'SortIcon' | 'SparklesIcon' | 'SpinnerIcon' | 'StarIcon' | 'StopIcon' | 'StopCircleIcon' | 'StrawberryIcon' | 'SunIcon' | 'TagIcon' | 'TentIcon' | 'ThermometerIcon' | 'ThumbsUpIcon' | 'TrainIcon' | 'TrashIcon' | 'TreeIcon' | 'TrophyIcon' | 'TruckIcon' | 'TvIcon' | 'UmbrellaIcon' | 'UnderlineIcon' | 'UndoIcon' | 'UnlinkIcon' | 'UploadIcon' | 'UserIcon' | 'UserCircleIcon' | 'UserMinusIcon' | 'UserPlusIcon' | 'UsersIcon' | 'VideoIcon' | 'VolumeIcon' | 'VolumeXIcon' | 'WaterCupIcon' | 'WatermelonIcon' | 'WifiIcon' | 'WifiOffIcon' | 'XCircleIcon' | 'ZoomInIcon' | 'ZoomOutIcon';
|
|
241
|
+
type IconName = 'AirplaneIcon' | 'AlertCircleIcon' | 'AlertTriangleIcon' | 'AnchorIcon' | 'AppleIcon' | 'ArrowDownIcon' | 'ArrowDownCircleIcon' | 'ArrowDownLeftIcon' | 'ArrowDownRightIcon' | 'ArrowJumpIcon' | 'ArrowLeftIcon' | 'ArrowLeftCircleIcon' | 'ArrowRightIcon' | 'ArrowRightCircleIcon' | 'ArrowUpIcon' | 'ArrowUpCircleIcon' | 'ArrowUpDownIcon' | 'ArrowUpLeftIcon' | 'ArrowUpRightIcon' | 'BadgeCheckIcon' | 'BalloonIcon' | 'BanIcon' | 'BasketballIcon' | 'BatteryIcon' | 'BearIcon' | 'BeeIcon' | 'BellIcon' | 'BellOffIcon' | 'BicycleIcon' | 'BirdIcon' | 'BoldIcon' | 'BoltIcon' | 'BookIcon' | 'BookmarkIcon' | 'BulbIcon' | 'ButterflyIcon' | 'CactusIcon' | 'CakeIcon' | 'CalculatorIcon' | 'CalendarIcon' | 'CameraIcon' | 'CandleIcon' | 'CarIcon' | 'CartIcon' | 'CatIcon' | 'ChargerIcon' | 'ChatIcon' | 'CheckIcon' | 'CheckCircleIcon' | 'CheckSquareIcon' | 'CherryIcon' | 'ChevronDownIcon' | 'ChevronLeftIcon' | 'ChevronRightIcon' | 'ChevronUpIcon' | 'ClipboardIcon' | 'ClockIcon' | 'CloseIcon' | 'CloudIcon' | 'CodeIcon' | 'CoffeeIcon' | 'CoffeeCupIcon' | 'CompassIcon' | 'CopyIcon' | 'CreditCardIcon' | 'DogIcon' | 'DonutIcon' | 'DownloadIcon' | 'DumbbellIcon' | 'EditIcon' | 'EllipsisIcon' | 'ExternalLinkIcon' | 'EyeIcon' | 'EyeOffIcon' | 'FileIcon' | 'FilterIcon' | 'FishIcon' | 'FlagIcon' | 'FlameIcon' | 'FlowerIcon' | 'FolderIcon' | 'FolderMinusIcon' | 'FolderPlusIcon' | 'FoxIcon' | 'FrogIcon' | 'GiftIcon' | 'GlobeIcon' | 'GoogleChromeIcon' | 'GridIcon' | 'HeadphonesIcon' | 'HeartIcon' | 'HelpCircleIcon' | 'HomeIcon' | 'IcecreamIcon' | 'ImageIcon' | 'InboxIcon' | 'InfoIcon' | 'ItalicIcon' | 'KeyIcon' | 'KeyboardIcon' | 'LadybugIcon' | 'LampIcon' | 'LeafIcon' | 'LemonIcon' | 'LinkIcon' | 'ListIcon' | 'LocationIcon' | 'LockIcon' | 'LockOpenIcon' | 'MagnetIcon' | 'MailIcon' | 'MapIcon' | 'MapPinIcon' | 'MaximizeIcon' | 'MenuIcon' | 'MicIcon' | 'MinusIcon' | 'MinusCircleIcon' | 'MonitorIcon' | 'MoonIcon' | 'MoreVerticalIcon' | 'MountainIcon' | 'MouseIcon' | 'MushroomIcon' | 'MusicIcon' | 'NewspaperIcon' | 'NoDataIcon' | 'OwlIcon' | 'PaintbrushIcon' | 'PaletteIcon' | 'PaperclipIcon' | 'PauseIcon' | 'PauseCircleIcon' | 'PencilIcon' | 'PenguinIcon' | 'PhoneIcon' | 'PlayIcon' | 'PlayCircleIcon' | 'PlusIcon' | 'PlusCircleIcon' | 'PowerIcon' | 'PrinterIcon' | 'RabbitIcon' | 'RadioIcon' | 'RainbowIcon' | 'RedoIcon' | 'RefreshIcon' | 'RocketIcon' | 'RssIcon' | 'SailboatIcon' | 'SaveIcon' | 'ScissorsIcon' | 'ScooterIcon' | 'SearchIcon' | 'SendIcon' | 'SettingsIcon' | 'ShareIcon' | 'ShieldIcon' | 'ShoppingBagIcon' | 'ShoppingCartIcon' | 'SlidersIcon' | 'SmileIcon' | 'SnailIcon' | 'SnowflakeIcon' | 'SortIcon' | 'SparklesIcon' | 'SpinnerIcon' | 'StarIcon' | 'StopIcon' | 'StopCircleIcon' | 'StrawberryIcon' | 'SunIcon' | 'TagIcon' | 'TentIcon' | 'ThermometerIcon' | 'ThumbsUpIcon' | 'TrainIcon' | 'TrashIcon' | 'TreeIcon' | 'TrophyIcon' | 'TruckIcon' | 'TvIcon' | 'UmbrellaIcon' | 'UnderlineIcon' | 'UndoIcon' | 'UnlinkIcon' | 'UploadIcon' | 'UserIcon' | 'UserCircleIcon' | 'UserMinusIcon' | 'UserPlusIcon' | 'UsersIcon' | 'VideoIcon' | 'VolumeIcon' | 'VolumeXIcon' | 'WaterCupIcon' | 'WatermelonIcon' | 'WifiIcon' | 'WifiOffIcon' | 'XCircleIcon' | 'ZoomInIcon' | 'ZoomOutIcon';
|
|
241
242
|
/** 图标组件类型 */
|
|
242
243
|
type IconComponent = FC<IconProps>;
|
|
243
244
|
|
|
@@ -255,10 +256,10 @@ type IconComponent = FC<IconProps>;
|
|
|
255
256
|
* };
|
|
256
257
|
* ```
|
|
257
258
|
*
|
|
258
|
-
* 直接 `import * as icons` 也能按名字取,但会把全部
|
|
259
|
+
* 直接 `import * as icons` 也能按名字取,但会把全部 202 枚打进包里,
|
|
259
260
|
* tree-shaking 归零;用这个数组配动态 import 才能只拉用到的几枚。
|
|
260
261
|
*/
|
|
261
|
-
declare const iconNames: readonly ["airplane", "alert-circle", "alert-triangle", "anchor", "apple", "arrow-down", "arrow-down-circle", "arrow-down-left", "arrow-down-right", "arrow-jump", "arrow-left", "arrow-left-circle", "arrow-right", "arrow-right-circle", "arrow-up", "arrow-up-circle", "arrow-up-down", "arrow-up-left", "arrow-up-right", "badge-check", "balloon", "ban", "basketball", "battery", "bear", "bee", "bell", "bell-off", "bicycle", "bird", "bold", "bolt", "book", "bookmark", "bulb", "butterfly", "cactus", "cake", "calculator", "calendar", "camera", "candle", "car", "cart", "cat", "charger", "chat", "check", "check-circle", "check-square", "cherry", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "clipboard", "clock", "close", "cloud", "code", "coffee", "coffee-cup", "compass", "copy", "credit-card", "dog", "donut", "download", "dumbbell", "edit", "ellipsis", "external-link", "eye", "eye-off", "file", "filter", "fish", "flag", "flame", "flower", "folder", "folder-minus", "folder-plus", "fox", "frog", "gift", "globe", "google-chrome", "grid", "headphones", "heart", "help-circle", "home", "icecream", "image", "inbox", "info", "italic", "key", "keyboard", "ladybug", "lamp", "leaf", "lemon", "link", "list", "location", "lock", "lock-open", "magnet", "mail", "map", "map-pin", "maximize", "menu", "mic", "minus", "minus-circle", "monitor", "moon", "more-vertical", "mountain", "mouse", "mushroom", "music", "newspaper", "owl", "paintbrush", "palette", "paperclip", "pause", "pause-circle", "pencil", "penguin", "phone", "play", "play-circle", "plus", "plus-circle", "power", "printer", "rabbit", "radio", "rainbow", "redo", "refresh", "rocket", "rss", "sailboat", "save", "scissors", "scooter", "search", "send", "settings", "share", "shield", "shopping-bag", "shopping-cart", "sliders", "smile", "snail", "snowflake", "sort", "sparkles", "spinner", "star", "stop", "stop-circle", "strawberry", "sun", "tag", "tent", "thermometer", "thumbs-up", "train", "trash", "tree", "trophy", "truck", "tv", "umbrella", "underline", "undo", "unlink", "upload", "user", "user-circle", "user-minus", "user-plus", "users", "video", "volume", "volume-x", "water-cup", "watermelon", "wifi", "wifi-off", "x-circle", "zoom-in", "zoom-out"];
|
|
262
|
+
declare const iconNames: readonly ["airplane", "alert-circle", "alert-triangle", "anchor", "apple", "arrow-down", "arrow-down-circle", "arrow-down-left", "arrow-down-right", "arrow-jump", "arrow-left", "arrow-left-circle", "arrow-right", "arrow-right-circle", "arrow-up", "arrow-up-circle", "arrow-up-down", "arrow-up-left", "arrow-up-right", "badge-check", "balloon", "ban", "basketball", "battery", "bear", "bee", "bell", "bell-off", "bicycle", "bird", "bold", "bolt", "book", "bookmark", "bulb", "butterfly", "cactus", "cake", "calculator", "calendar", "camera", "candle", "car", "cart", "cat", "charger", "chat", "check", "check-circle", "check-square", "cherry", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "clipboard", "clock", "close", "cloud", "code", "coffee", "coffee-cup", "compass", "copy", "credit-card", "dog", "donut", "download", "dumbbell", "edit", "ellipsis", "external-link", "eye", "eye-off", "file", "filter", "fish", "flag", "flame", "flower", "folder", "folder-minus", "folder-plus", "fox", "frog", "gift", "globe", "google-chrome", "grid", "headphones", "heart", "help-circle", "home", "icecream", "image", "inbox", "info", "italic", "key", "keyboard", "ladybug", "lamp", "leaf", "lemon", "link", "list", "location", "lock", "lock-open", "magnet", "mail", "map", "map-pin", "maximize", "menu", "mic", "minus", "minus-circle", "monitor", "moon", "more-vertical", "mountain", "mouse", "mushroom", "music", "newspaper", "no-data", "owl", "paintbrush", "palette", "paperclip", "pause", "pause-circle", "pencil", "penguin", "phone", "play", "play-circle", "plus", "plus-circle", "power", "printer", "rabbit", "radio", "rainbow", "redo", "refresh", "rocket", "rss", "sailboat", "save", "scissors", "scooter", "search", "send", "settings", "share", "shield", "shopping-bag", "shopping-cart", "sliders", "smile", "snail", "snowflake", "sort", "sparkles", "spinner", "star", "stop", "stop-circle", "strawberry", "sun", "tag", "tent", "thermometer", "thumbs-up", "train", "trash", "tree", "trophy", "truck", "tv", "umbrella", "underline", "undo", "unlink", "upload", "user", "user-circle", "user-minus", "user-plus", "users", "video", "volume", "volume-x", "water-cup", "watermelon", "wifi", "wifi-off", "x-circle", "zoom-in", "zoom-out"];
|
|
262
263
|
/** 所有内置图标的 id 类型,与 iconNames 一一对应 */
|
|
263
264
|
type IconId = (typeof iconNames)[number];
|
|
264
265
|
|
package/dist/index.d.ts
CHANGED
|
@@ -124,6 +124,7 @@ export { MouseIcon } from './MouseIcon.js';
|
|
|
124
124
|
export { MushroomIcon } from './MushroomIcon.js';
|
|
125
125
|
export { MusicIcon } from './MusicIcon.js';
|
|
126
126
|
export { NewspaperIcon } from './NewspaperIcon.js';
|
|
127
|
+
export { NoDataIcon } from './NoDataIcon.js';
|
|
127
128
|
export { OwlIcon } from './OwlIcon.js';
|
|
128
129
|
export { PaintbrushIcon } from './PaintbrushIcon.js';
|
|
129
130
|
export { PaletteIcon } from './PaletteIcon.js';
|
|
@@ -237,7 +238,7 @@ declare const NAIVE_PALETTE: {
|
|
|
237
238
|
};
|
|
238
239
|
type PaletteColor = keyof typeof NAIVE_PALETTE;
|
|
239
240
|
/** 所有图标组件名 */
|
|
240
|
-
type IconName = 'AirplaneIcon' | 'AlertCircleIcon' | 'AlertTriangleIcon' | 'AnchorIcon' | 'AppleIcon' | 'ArrowDownIcon' | 'ArrowDownCircleIcon' | 'ArrowDownLeftIcon' | 'ArrowDownRightIcon' | 'ArrowJumpIcon' | 'ArrowLeftIcon' | 'ArrowLeftCircleIcon' | 'ArrowRightIcon' | 'ArrowRightCircleIcon' | 'ArrowUpIcon' | 'ArrowUpCircleIcon' | 'ArrowUpDownIcon' | 'ArrowUpLeftIcon' | 'ArrowUpRightIcon' | 'BadgeCheckIcon' | 'BalloonIcon' | 'BanIcon' | 'BasketballIcon' | 'BatteryIcon' | 'BearIcon' | 'BeeIcon' | 'BellIcon' | 'BellOffIcon' | 'BicycleIcon' | 'BirdIcon' | 'BoldIcon' | 'BoltIcon' | 'BookIcon' | 'BookmarkIcon' | 'BulbIcon' | 'ButterflyIcon' | 'CactusIcon' | 'CakeIcon' | 'CalculatorIcon' | 'CalendarIcon' | 'CameraIcon' | 'CandleIcon' | 'CarIcon' | 'CartIcon' | 'CatIcon' | 'ChargerIcon' | 'ChatIcon' | 'CheckIcon' | 'CheckCircleIcon' | 'CheckSquareIcon' | 'CherryIcon' | 'ChevronDownIcon' | 'ChevronLeftIcon' | 'ChevronRightIcon' | 'ChevronUpIcon' | 'ClipboardIcon' | 'ClockIcon' | 'CloseIcon' | 'CloudIcon' | 'CodeIcon' | 'CoffeeIcon' | 'CoffeeCupIcon' | 'CompassIcon' | 'CopyIcon' | 'CreditCardIcon' | 'DogIcon' | 'DonutIcon' | 'DownloadIcon' | 'DumbbellIcon' | 'EditIcon' | 'EllipsisIcon' | 'ExternalLinkIcon' | 'EyeIcon' | 'EyeOffIcon' | 'FileIcon' | 'FilterIcon' | 'FishIcon' | 'FlagIcon' | 'FlameIcon' | 'FlowerIcon' | 'FolderIcon' | 'FolderMinusIcon' | 'FolderPlusIcon' | 'FoxIcon' | 'FrogIcon' | 'GiftIcon' | 'GlobeIcon' | 'GoogleChromeIcon' | 'GridIcon' | 'HeadphonesIcon' | 'HeartIcon' | 'HelpCircleIcon' | 'HomeIcon' | 'IcecreamIcon' | 'ImageIcon' | 'InboxIcon' | 'InfoIcon' | 'ItalicIcon' | 'KeyIcon' | 'KeyboardIcon' | 'LadybugIcon' | 'LampIcon' | 'LeafIcon' | 'LemonIcon' | 'LinkIcon' | 'ListIcon' | 'LocationIcon' | 'LockIcon' | 'LockOpenIcon' | 'MagnetIcon' | 'MailIcon' | 'MapIcon' | 'MapPinIcon' | 'MaximizeIcon' | 'MenuIcon' | 'MicIcon' | 'MinusIcon' | 'MinusCircleIcon' | 'MonitorIcon' | 'MoonIcon' | 'MoreVerticalIcon' | 'MountainIcon' | 'MouseIcon' | 'MushroomIcon' | 'MusicIcon' | 'NewspaperIcon' | 'OwlIcon' | 'PaintbrushIcon' | 'PaletteIcon' | 'PaperclipIcon' | 'PauseIcon' | 'PauseCircleIcon' | 'PencilIcon' | 'PenguinIcon' | 'PhoneIcon' | 'PlayIcon' | 'PlayCircleIcon' | 'PlusIcon' | 'PlusCircleIcon' | 'PowerIcon' | 'PrinterIcon' | 'RabbitIcon' | 'RadioIcon' | 'RainbowIcon' | 'RedoIcon' | 'RefreshIcon' | 'RocketIcon' | 'RssIcon' | 'SailboatIcon' | 'SaveIcon' | 'ScissorsIcon' | 'ScooterIcon' | 'SearchIcon' | 'SendIcon' | 'SettingsIcon' | 'ShareIcon' | 'ShieldIcon' | 'ShoppingBagIcon' | 'ShoppingCartIcon' | 'SlidersIcon' | 'SmileIcon' | 'SnailIcon' | 'SnowflakeIcon' | 'SortIcon' | 'SparklesIcon' | 'SpinnerIcon' | 'StarIcon' | 'StopIcon' | 'StopCircleIcon' | 'StrawberryIcon' | 'SunIcon' | 'TagIcon' | 'TentIcon' | 'ThermometerIcon' | 'ThumbsUpIcon' | 'TrainIcon' | 'TrashIcon' | 'TreeIcon' | 'TrophyIcon' | 'TruckIcon' | 'TvIcon' | 'UmbrellaIcon' | 'UnderlineIcon' | 'UndoIcon' | 'UnlinkIcon' | 'UploadIcon' | 'UserIcon' | 'UserCircleIcon' | 'UserMinusIcon' | 'UserPlusIcon' | 'UsersIcon' | 'VideoIcon' | 'VolumeIcon' | 'VolumeXIcon' | 'WaterCupIcon' | 'WatermelonIcon' | 'WifiIcon' | 'WifiOffIcon' | 'XCircleIcon' | 'ZoomInIcon' | 'ZoomOutIcon';
|
|
241
|
+
type IconName = 'AirplaneIcon' | 'AlertCircleIcon' | 'AlertTriangleIcon' | 'AnchorIcon' | 'AppleIcon' | 'ArrowDownIcon' | 'ArrowDownCircleIcon' | 'ArrowDownLeftIcon' | 'ArrowDownRightIcon' | 'ArrowJumpIcon' | 'ArrowLeftIcon' | 'ArrowLeftCircleIcon' | 'ArrowRightIcon' | 'ArrowRightCircleIcon' | 'ArrowUpIcon' | 'ArrowUpCircleIcon' | 'ArrowUpDownIcon' | 'ArrowUpLeftIcon' | 'ArrowUpRightIcon' | 'BadgeCheckIcon' | 'BalloonIcon' | 'BanIcon' | 'BasketballIcon' | 'BatteryIcon' | 'BearIcon' | 'BeeIcon' | 'BellIcon' | 'BellOffIcon' | 'BicycleIcon' | 'BirdIcon' | 'BoldIcon' | 'BoltIcon' | 'BookIcon' | 'BookmarkIcon' | 'BulbIcon' | 'ButterflyIcon' | 'CactusIcon' | 'CakeIcon' | 'CalculatorIcon' | 'CalendarIcon' | 'CameraIcon' | 'CandleIcon' | 'CarIcon' | 'CartIcon' | 'CatIcon' | 'ChargerIcon' | 'ChatIcon' | 'CheckIcon' | 'CheckCircleIcon' | 'CheckSquareIcon' | 'CherryIcon' | 'ChevronDownIcon' | 'ChevronLeftIcon' | 'ChevronRightIcon' | 'ChevronUpIcon' | 'ClipboardIcon' | 'ClockIcon' | 'CloseIcon' | 'CloudIcon' | 'CodeIcon' | 'CoffeeIcon' | 'CoffeeCupIcon' | 'CompassIcon' | 'CopyIcon' | 'CreditCardIcon' | 'DogIcon' | 'DonutIcon' | 'DownloadIcon' | 'DumbbellIcon' | 'EditIcon' | 'EllipsisIcon' | 'ExternalLinkIcon' | 'EyeIcon' | 'EyeOffIcon' | 'FileIcon' | 'FilterIcon' | 'FishIcon' | 'FlagIcon' | 'FlameIcon' | 'FlowerIcon' | 'FolderIcon' | 'FolderMinusIcon' | 'FolderPlusIcon' | 'FoxIcon' | 'FrogIcon' | 'GiftIcon' | 'GlobeIcon' | 'GoogleChromeIcon' | 'GridIcon' | 'HeadphonesIcon' | 'HeartIcon' | 'HelpCircleIcon' | 'HomeIcon' | 'IcecreamIcon' | 'ImageIcon' | 'InboxIcon' | 'InfoIcon' | 'ItalicIcon' | 'KeyIcon' | 'KeyboardIcon' | 'LadybugIcon' | 'LampIcon' | 'LeafIcon' | 'LemonIcon' | 'LinkIcon' | 'ListIcon' | 'LocationIcon' | 'LockIcon' | 'LockOpenIcon' | 'MagnetIcon' | 'MailIcon' | 'MapIcon' | 'MapPinIcon' | 'MaximizeIcon' | 'MenuIcon' | 'MicIcon' | 'MinusIcon' | 'MinusCircleIcon' | 'MonitorIcon' | 'MoonIcon' | 'MoreVerticalIcon' | 'MountainIcon' | 'MouseIcon' | 'MushroomIcon' | 'MusicIcon' | 'NewspaperIcon' | 'NoDataIcon' | 'OwlIcon' | 'PaintbrushIcon' | 'PaletteIcon' | 'PaperclipIcon' | 'PauseIcon' | 'PauseCircleIcon' | 'PencilIcon' | 'PenguinIcon' | 'PhoneIcon' | 'PlayIcon' | 'PlayCircleIcon' | 'PlusIcon' | 'PlusCircleIcon' | 'PowerIcon' | 'PrinterIcon' | 'RabbitIcon' | 'RadioIcon' | 'RainbowIcon' | 'RedoIcon' | 'RefreshIcon' | 'RocketIcon' | 'RssIcon' | 'SailboatIcon' | 'SaveIcon' | 'ScissorsIcon' | 'ScooterIcon' | 'SearchIcon' | 'SendIcon' | 'SettingsIcon' | 'ShareIcon' | 'ShieldIcon' | 'ShoppingBagIcon' | 'ShoppingCartIcon' | 'SlidersIcon' | 'SmileIcon' | 'SnailIcon' | 'SnowflakeIcon' | 'SortIcon' | 'SparklesIcon' | 'SpinnerIcon' | 'StarIcon' | 'StopIcon' | 'StopCircleIcon' | 'StrawberryIcon' | 'SunIcon' | 'TagIcon' | 'TentIcon' | 'ThermometerIcon' | 'ThumbsUpIcon' | 'TrainIcon' | 'TrashIcon' | 'TreeIcon' | 'TrophyIcon' | 'TruckIcon' | 'TvIcon' | 'UmbrellaIcon' | 'UnderlineIcon' | 'UndoIcon' | 'UnlinkIcon' | 'UploadIcon' | 'UserIcon' | 'UserCircleIcon' | 'UserMinusIcon' | 'UserPlusIcon' | 'UsersIcon' | 'VideoIcon' | 'VolumeIcon' | 'VolumeXIcon' | 'WaterCupIcon' | 'WatermelonIcon' | 'WifiIcon' | 'WifiOffIcon' | 'XCircleIcon' | 'ZoomInIcon' | 'ZoomOutIcon';
|
|
241
242
|
/** 图标组件类型 */
|
|
242
243
|
type IconComponent = FC<IconProps>;
|
|
243
244
|
|
|
@@ -255,10 +256,10 @@ type IconComponent = FC<IconProps>;
|
|
|
255
256
|
* };
|
|
256
257
|
* ```
|
|
257
258
|
*
|
|
258
|
-
* 直接 `import * as icons` 也能按名字取,但会把全部
|
|
259
|
+
* 直接 `import * as icons` 也能按名字取,但会把全部 202 枚打进包里,
|
|
259
260
|
* tree-shaking 归零;用这个数组配动态 import 才能只拉用到的几枚。
|
|
260
261
|
*/
|
|
261
|
-
declare const iconNames: readonly ["airplane", "alert-circle", "alert-triangle", "anchor", "apple", "arrow-down", "arrow-down-circle", "arrow-down-left", "arrow-down-right", "arrow-jump", "arrow-left", "arrow-left-circle", "arrow-right", "arrow-right-circle", "arrow-up", "arrow-up-circle", "arrow-up-down", "arrow-up-left", "arrow-up-right", "badge-check", "balloon", "ban", "basketball", "battery", "bear", "bee", "bell", "bell-off", "bicycle", "bird", "bold", "bolt", "book", "bookmark", "bulb", "butterfly", "cactus", "cake", "calculator", "calendar", "camera", "candle", "car", "cart", "cat", "charger", "chat", "check", "check-circle", "check-square", "cherry", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "clipboard", "clock", "close", "cloud", "code", "coffee", "coffee-cup", "compass", "copy", "credit-card", "dog", "donut", "download", "dumbbell", "edit", "ellipsis", "external-link", "eye", "eye-off", "file", "filter", "fish", "flag", "flame", "flower", "folder", "folder-minus", "folder-plus", "fox", "frog", "gift", "globe", "google-chrome", "grid", "headphones", "heart", "help-circle", "home", "icecream", "image", "inbox", "info", "italic", "key", "keyboard", "ladybug", "lamp", "leaf", "lemon", "link", "list", "location", "lock", "lock-open", "magnet", "mail", "map", "map-pin", "maximize", "menu", "mic", "minus", "minus-circle", "monitor", "moon", "more-vertical", "mountain", "mouse", "mushroom", "music", "newspaper", "owl", "paintbrush", "palette", "paperclip", "pause", "pause-circle", "pencil", "penguin", "phone", "play", "play-circle", "plus", "plus-circle", "power", "printer", "rabbit", "radio", "rainbow", "redo", "refresh", "rocket", "rss", "sailboat", "save", "scissors", "scooter", "search", "send", "settings", "share", "shield", "shopping-bag", "shopping-cart", "sliders", "smile", "snail", "snowflake", "sort", "sparkles", "spinner", "star", "stop", "stop-circle", "strawberry", "sun", "tag", "tent", "thermometer", "thumbs-up", "train", "trash", "tree", "trophy", "truck", "tv", "umbrella", "underline", "undo", "unlink", "upload", "user", "user-circle", "user-minus", "user-plus", "users", "video", "volume", "volume-x", "water-cup", "watermelon", "wifi", "wifi-off", "x-circle", "zoom-in", "zoom-out"];
|
|
262
|
+
declare const iconNames: readonly ["airplane", "alert-circle", "alert-triangle", "anchor", "apple", "arrow-down", "arrow-down-circle", "arrow-down-left", "arrow-down-right", "arrow-jump", "arrow-left", "arrow-left-circle", "arrow-right", "arrow-right-circle", "arrow-up", "arrow-up-circle", "arrow-up-down", "arrow-up-left", "arrow-up-right", "badge-check", "balloon", "ban", "basketball", "battery", "bear", "bee", "bell", "bell-off", "bicycle", "bird", "bold", "bolt", "book", "bookmark", "bulb", "butterfly", "cactus", "cake", "calculator", "calendar", "camera", "candle", "car", "cart", "cat", "charger", "chat", "check", "check-circle", "check-square", "cherry", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "clipboard", "clock", "close", "cloud", "code", "coffee", "coffee-cup", "compass", "copy", "credit-card", "dog", "donut", "download", "dumbbell", "edit", "ellipsis", "external-link", "eye", "eye-off", "file", "filter", "fish", "flag", "flame", "flower", "folder", "folder-minus", "folder-plus", "fox", "frog", "gift", "globe", "google-chrome", "grid", "headphones", "heart", "help-circle", "home", "icecream", "image", "inbox", "info", "italic", "key", "keyboard", "ladybug", "lamp", "leaf", "lemon", "link", "list", "location", "lock", "lock-open", "magnet", "mail", "map", "map-pin", "maximize", "menu", "mic", "minus", "minus-circle", "monitor", "moon", "more-vertical", "mountain", "mouse", "mushroom", "music", "newspaper", "no-data", "owl", "paintbrush", "palette", "paperclip", "pause", "pause-circle", "pencil", "penguin", "phone", "play", "play-circle", "plus", "plus-circle", "power", "printer", "rabbit", "radio", "rainbow", "redo", "refresh", "rocket", "rss", "sailboat", "save", "scissors", "scooter", "search", "send", "settings", "share", "shield", "shopping-bag", "shopping-cart", "sliders", "smile", "snail", "snowflake", "sort", "sparkles", "spinner", "star", "stop", "stop-circle", "strawberry", "sun", "tag", "tent", "thermometer", "thumbs-up", "train", "trash", "tree", "trophy", "truck", "tv", "umbrella", "underline", "undo", "unlink", "upload", "user", "user-circle", "user-minus", "user-plus", "users", "video", "volume", "volume-x", "water-cup", "watermelon", "wifi", "wifi-off", "x-circle", "zoom-in", "zoom-out"];
|
|
262
263
|
/** 所有内置图标的 id 类型,与 iconNames 一一对应 */
|
|
263
264
|
type IconId = (typeof iconNames)[number];
|
|
264
265
|
|