@tdesign-ng/icons 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +68 -2
- package/fesm2022/tdesign-ng-icons.mjs +189 -0
- package/fesm2022/tdesign-ng-icons.mjs.map +1 -0
- package/icon.component.d.ts +27 -0
- package/icons.generated.d.ts +8 -0
- package/index.d.ts +2 -0
- package/package.json +41 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Bytedance, Inc. and its affiliates.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,69 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @tdesign-ng/icons
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[TDesign](https://tdesign.tencent.com/) 图标集,Angular 版。
|
|
4
|
+
|
|
5
|
+
图标名与上游 [TDesign](https://github.com/Tencent/tdesign-icons) 完全一致,可以直接照抄 TDesign 文档里的名字。
|
|
6
|
+
|
|
7
|
+
> **状态:`0.1.0` 是首个公开预发布版本。**
|
|
8
|
+
|
|
9
|
+
## 安装
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm i @tdesign-ng/icons
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
需要在 Angular 19 及以上使用。
|
|
16
|
+
|
|
17
|
+
## 使用
|
|
18
|
+
|
|
19
|
+
`TIcon` 是 standalone 组件:
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import { Component } from '@angular/core';
|
|
23
|
+
import { TIcon } from '@tdesign-ng/icons';
|
|
24
|
+
|
|
25
|
+
@Component({
|
|
26
|
+
selector: 'app-demo',
|
|
27
|
+
imports: [TIcon],
|
|
28
|
+
template: `
|
|
29
|
+
<t-icon name="add" />
|
|
30
|
+
<t-icon name="loading" size="24px" />
|
|
31
|
+
`,
|
|
32
|
+
})
|
|
33
|
+
export class DemoComponent {}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
- 颜色走 CSS `color`(图标内部是 `fill: currentcolor`),可直接用 `--td-brand-color` 之类的令牌。
|
|
37
|
+
- 尺寸用 `size`,或直接给宿主元素设 `font-size`;只写数字时按 `px` 处理。
|
|
38
|
+
- 图标渲染为 `<t-icon class="t-icon t-icon-add">` 内嵌 SVG,可用 `.t-icon-add` 精确命中单个图标。
|
|
39
|
+
|
|
40
|
+
## 图标范围
|
|
41
|
+
|
|
42
|
+
`0.1.0` **只内置了组件库与文档站用到的常用图标子集(当前 65 个,见 `TD_ICON_NAMES`)**,不是上游全量图标集。命中上层未内置的名字时,组件会在控制台打印一条 `[tdesign-ng] 未找到名为 "xxx" 的图标` 警告,页面不渲染任何图形。
|
|
43
|
+
|
|
44
|
+
全量图标(2000+)需要重新生成一次:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
# 下载上游 tdesign-icons-svg 压缩包并解压到 .local-cache/icons-extract 后
|
|
48
|
+
pnpm gen:icons --all
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
生成的 `packages/icons/src/icons.generated.ts` 会显著变大(这是只发布子集的原因)。如果你的项目依赖全量图标,请提 issue,我们会把全量集作为独立入口发布。
|
|
52
|
+
|
|
53
|
+
也可以用代码按名字查询:
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
import { TD_ICONS, TD_ICON_NAMES } from '@tdesign-ng/icons';
|
|
57
|
+
|
|
58
|
+
TD_ICONS['add']; // { viewBox, content } | undefined
|
|
59
|
+
TD_ICON_NAMES; // 当前内置的全部图标名
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## 文档与仓库
|
|
63
|
+
|
|
64
|
+
- 在线文档:https://yuanyong129.github.io/tdesign-ng/
|
|
65
|
+
- 仓库:https://github.com/yuanyong129/tdesign-ng
|
|
66
|
+
|
|
67
|
+
## 许可
|
|
68
|
+
|
|
69
|
+
MIT。图标源来自 [tdesign-icons](https://github.com/Tencent/tdesign-icons)(Copyright 2021 TDesign, MIT License)。
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, inject, ElementRef, Renderer2, effect, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
// 此文件由 scripts/gen-icons.mjs 生成,请勿手改。
|
|
5
|
+
// 图标来源:tdesign-icons-svg@0.4.8
|
|
6
|
+
// 图标数量:65(内置子集,用 --all 生成全量)
|
|
7
|
+
/** 图标名 => SVG 片段。片段均为上游图标源码,不含用户输入。 */
|
|
8
|
+
const TD_ICONS = {
|
|
9
|
+
'loading': { viewBox: '0 0 24 24', content: '<path id="loading" fill="currentColor" d="M12 2.25C6.61556 2.25 2.25 6.61556 2.25 12C2.25 17.3844 6.61556 21.75 12 21.75V19.3125C7.96142 19.3125 4.6875 16.0386 4.6875 12C4.6875 7.96142 7.96142 4.6875 12 4.6875C16.0386 4.6875 19.3125 7.96142 19.3125 12H21.75C21.75 6.61556 17.3844 2.25 12 2.25Z"></path>' },
|
|
10
|
+
'add': { viewBox: '0 0 24 24', content: '<g id="add"><path id="stroke1" stroke="currentColor" d="M12 5L12 19M19 12L5 12" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
11
|
+
'plus': { viewBox: '0 0 24 24', content: '<g id="plus"><path id="stroke1" stroke="currentColor" d="M12 7.5V12M12 12L12 16.5M12 12L16.5 12M12 12L7.5 12" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
12
|
+
'minus': { viewBox: '0 0 24 24', content: '<g id="minus"><path id="stroke1" stroke="currentColor" d="M16.502 12L7.50195 12" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
13
|
+
'close': { viewBox: '0 0 24 24', content: '<g id="close"><path id="stroke1" stroke="currentColor" d="M16.9503 7.05029L12.0005 12M12.0005 12L7.05078 16.9498M12.0005 12L16.9503 16.9498M12.0005 12L7.05078 7.05029" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
14
|
+
'check': { viewBox: '0 0 24 24', content: '<g id="check"><path id="stroke1" stroke="currentColor" d="M19.5708 7.37842L10.3785 16.5708L5.42871 11.6211" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
15
|
+
'check-circle': { viewBox: '0 0 24 24', content: '<g id="check-circle"><path id="fill1" fill="transparent" d="M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z"></path><path id="stroke1" stroke="currentColor" d="M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z" stroke-linecap="square" stroke-width="2"></path><path id="stroke2" stroke="currentColor" d="M16.5 9L10.5 15L7.5 12" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
16
|
+
'check-circle-filled': { viewBox: '0 0 24 24', content: '<path fill="currentColor" d="M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM7.49985 10.5858L10.4999 13.5858L16.4999 7.58578L17.9141 8.99999L10.4999 16.4142L6.08564 12L7.49985 10.5858Z"></path>' },
|
|
17
|
+
'close-circle': { viewBox: '0 0 24 24', content: '<g id="close-circle"><path id="fill1" fill="transparent" d="M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z"></path><path id="stroke1" stroke="currentColor" d="M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z" stroke-linecap="square" stroke-width="2"></path><path id="stroke2" stroke="currentColor" d="M15.1813 8.81836L11.9997 12M11.9997 12L8.81738 15.1823M11.9997 12L15.1813 15.1816M11.9997 12L8.81738 8.81768" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
18
|
+
'close-circle-filled': { viewBox: '0 0 24 24', content: '<path fill="currentColor" d="M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM8.81753 7.40346L11.9999 10.5858L15.1815 7.40414L16.5957 8.81835L13.4141 12L16.5957 15.1816L15.1815 16.5958L11.9999 13.4142L8.81753 16.5965L7.40332 15.1823L10.5856 12L7.40332 8.81767L8.81753 7.40346Z"></path>' },
|
|
19
|
+
'error-circle': { viewBox: '0 0 24 24', content: '<g id="error-circle"><path id="fill1" fill="transparent" d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z"></path><path id="stroke1" stroke="currentColor" d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z" stroke-linecap="square" stroke-width="2"></path><path id="stroke2" stroke="currentColor" d="M12 7.5V13M12 16.5H12.0039V16.5039H12V16.5Z" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
20
|
+
'error-circle-filled': { viewBox: '0 0 24 24', content: '<path fill="currentColor" d="M12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1ZM11.0001 14H13.0001V6.49998H11.0001V14ZM13.004 15.5H11.0001V17.5039H13.004V15.5Z"></path>' },
|
|
21
|
+
'info-circle': { viewBox: '0 0 24 24', content: '<g id="info-circle"><path id="fill1" fill="transparent" d="M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z"></path><path id="stroke1" stroke="currentColor" d="M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z" stroke-linecap="square" stroke-width="2"></path><path id="stroke2" stroke="currentColor" d="M12 16.5L12 11M12 7.5L11.9961 7.5L11.9961 7.49609L12 7.49609L12 7.5Z" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
22
|
+
'info-circle-filled': { viewBox: '0 0 24 24', content: '<path fill="currentColor" d="M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM10.996 8.50002V6.49611H12.9999V8.50002H10.996ZM12.9999 10L12.9999 17.5H10.9999V10L12.9999 10Z"></path>' },
|
|
23
|
+
'help-circle': { viewBox: '0 0 24 24', content: '<g id="help-circle"><path id="fill1" fill="transparent" d="M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z"></path><path id="stroke1" stroke="currentColor" d="M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z" stroke-linecap="square" stroke-width="2"></path><path id="stroke2" stroke="currentColor" d="M12.0002 14.25V14C12.0002 12.8954 12.9877 12.0414 13.8553 11.3578C14.5525 10.8085 15.0002 9.95652 15.0002 9C15.0002 7.34315 13.657 6 12.0002 6C10.694 6 9.58273 6.83481 9.1709 8M12.0002 17.25H12.0041V17.2539H12.0002V17.25Z" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
24
|
+
'help-circle-filled': { viewBox: '0 0 24 24', content: '<path fill="currentColor" d="M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM11.8265 11.8902C12.2582 11.3593 12.8004 10.9159 13.2365 10.5723C13.7034 10.2045 14.0002 9.63718 14.0002 9C14.0002 7.89543 13.1048 7 12.0002 7C11.131 7 10.3888 7.5551 10.1138 8.33325L9.78055 9.27609L7.89487 8.6096L8.22811 7.66676C8.77675 6.11451 10.2571 5 12.0002 5C14.2094 5 16.0002 6.79086 16.0002 9C16.0002 10.2759 15.4018 11.4125 14.4742 12.1433C14.0426 12.4834 13.6573 12.8088 13.3783 13.1519C13.1038 13.4896 13.0002 13.762 13.0002 14V15.25H11.0002V14C11.0002 13.1334 11.3905 12.4265 11.8265 11.8902ZM11.0001 18.2539V16.25H13.004V18.2539H11.0001Z"></path>' },
|
|
25
|
+
'chevron-down': { viewBox: '0 0 24 24', content: '<g id="chevron-down"><path id="stroke1" stroke="currentColor" d="M17.5 9.5L12 15L6.5 9.5" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
26
|
+
'chevron-up': { viewBox: '0 0 24 24', content: '<g id="chevron-up"><path id="stroke1" stroke="currentColor" d="M17.5 14.5L12 9L6.5 14.5" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
27
|
+
'chevron-left': { viewBox: '0 0 24 24', content: '<g id="chevron-left"><path id="stroke1" stroke="currentColor" d="M14.5 17.5L9 12L14.5 6.5" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
28
|
+
'chevron-right': { viewBox: '0 0 24 24', content: '<g id="chevron-right"><path id="stroke1" stroke="currentColor" d="M9.5 17.5L15 12L9.5 6.5" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
29
|
+
'arrow-down': { viewBox: '0 0 24 24', content: '<g id="arrow-down"><path id="stroke1" stroke="currentColor" d="M17.5 13.6L12 19.1L6.5 13.6M12 17.85V4.85" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
30
|
+
'arrow-up': { viewBox: '0 0 24 24', content: '<g id="arrow-up"><path id="stroke1" stroke="currentColor" d="M17.5 10.5L12 5L6.5 10.5M12 6.25V19.25" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
31
|
+
'arrow-left': { viewBox: '0 0 24 24', content: '<g id="arrow-left"><path id="stroke1" stroke="currentColor" d="M11 6.5L5.5 12L11 17.5M6.75 12H19.75" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
32
|
+
'arrow-right': { viewBox: '0 0 24 24', content: '<g id="arrow-right"><path id="stroke1" stroke="currentColor" d="M13 17.5L18.5 12L13 6.5M17.25 12L4.25 12" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
33
|
+
'search': { viewBox: '0 0 24 24', content: '<g id="search"><path id="fill1" fill="transparent" d="M15.8033 15.8033C12.8744 18.7322 8.12563 18.7322 5.1967 15.8033C2.26777 12.8744 2.26777 8.12563 5.1967 5.1967C8.12563 2.26777 12.8744 2.26777 15.8033 5.1967C18.7322 8.12563 18.7322 12.8744 15.8033 15.8033Z"></path><path id="stroke2" stroke="currentColor" d="M15.8027 15.8037L21.106 21.107" stroke-linecap="square" stroke-width="2"></path><path id="stroke1" stroke="currentColor" d="M15.8033 15.8033C12.8744 18.7322 8.12563 18.7322 5.1967 15.8033C2.26777 12.8744 2.26777 8.12563 5.1967 5.1967C8.12563 2.26777 12.8744 2.26777 15.8033 5.1967C18.7322 8.12563 18.7322 12.8744 15.8033 15.8033Z" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
34
|
+
'delete': { viewBox: '0 0 24 24', content: '<g id="delete"><path id="fill1" fill="transparent" d="M5 5H19L18.5 22H5.5L5 5Z"></path><path id="stroke1" stroke="currentColor" d="M21 5H3M5 5H19L18.5 22H5.5L5 5ZM8.5 2H15.5V5H8.5V2Z" stroke-linecap="square" stroke-width="2"></path><path id="stroke2" stroke="currentColor" d="M12 9V18" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
35
|
+
'edit': { viewBox: '0 0 24 24', content: '<g id="edit"><path id="fill1" fill="transparent" d="M14.1048 6.00427L4.78744 15.3216L3.99805 20.0001L8.67652 19.2107L17.9939 9.89336L14.1048 6.00427Z"></path><path id="fill2" fill="transparent" d="M17.9936 9.89339L21.0506 6.83635L17.1615 2.94727L14.1045 6.0043L17.9936 9.89339Z" fill-rule="evenodd" clip-rule="evenodd"></path><path id="stroke1" stroke="currentColor" d="M14.1048 6.00427L4.78744 15.3216L3.99805 20.0001L8.67652 19.2107L17.9939 9.89336M14.1048 6.00427L17.9939 9.89336M14.1048 6.00427L17.1615 2.94727L21.0506 6.83635L17.9939 9.89336" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
36
|
+
'download': { viewBox: '0 0 24 24', content: '<g id="download"><path id="stroke1" stroke="currentColor" d="M16.5 10.5L12 15L7.5 10.5M12 13.75V4" stroke-linecap="square" stroke-width="2"></path><path id="stroke2" stroke="currentColor" d="M20.5 15V20H3.5V15" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
37
|
+
'upload': { viewBox: '0 0 24 24', content: '<g id="upload"><path id="stroke1" stroke="currentColor" d="M16.5 8.5L12 4L7.5 8.5M12 5.25V15" stroke-linecap="square" stroke-width="2"></path><path id="stroke2" stroke="currentColor" d="M20.5 15V20H3.5V15" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
38
|
+
'refresh': { viewBox: '0 0 24 24', content: '<g id="refresh"><path id="stroke1" stroke="currentColor" d="M21.448 13C20.9483 17.7767 16.909 21.5 12 21.5C8.18227 21.5 4.89052 19.248 3.38065 16M2.5 20.5V15.5H5.5M2.55176 11C3.05145 6.22334 7.09079 2.5 11.9998 2.5C15.8175 2.5 19.1092 4.75197 20.6191 8M21.4998 3.5V8.5H18.4998" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
39
|
+
'star': { viewBox: '0 0 24 24', content: '<g id="star"><path id="fill1" fill="transparent" d="M12.0001 3.67603L14.1867 9.96648L20.8449 10.1022L15.538 14.1256L17.4665 20.4999L12.0001 16.696L6.5337 20.4999L8.46217 14.1256L3.15527 10.1022L9.81354 9.96648L12.0001 3.67603Z"></path><path id="stroke1" stroke="currentColor" d="M12.0001 3.67603L14.1867 9.96648L20.8449 10.1022L15.538 14.1256L17.4665 20.4999L12.0001 16.696L6.5337 20.4999L8.46217 14.1256L3.15527 10.1022L9.81354 9.96648L12.0001 3.67603Z" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
40
|
+
'star-filled': { viewBox: '0 0 24 24', content: '<path fill="currentColor" d="M12.0012 0.63031L14.9039 8.98087L23.7427 9.16099L16.6978 14.502L19.2579 22.9639L12.0012 17.9143L4.74461 22.9639L7.30465 14.502L0.259766 9.16099L9.09859 8.98087L12.0012 0.63031Z"></path>' },
|
|
41
|
+
'heart': { viewBox: '0 0 24 24', content: '<g id="heart"><path id="fill1" fill="transparent" d="M4.19633 12.1965C2.15461 10.1548 2.15461 6.84451 4.19634 4.80278C6.23806 2.76105 9.54836 2.76105 11.5901 4.80278L12.0008 5.21354L12.4108 4.80429C14.4525 2.76256 17.7628 2.76256 19.8046 4.80429C21.8463 6.84602 21.8463 10.1563 19.8046 12.198L12 20.0011L4.19633 12.1965Z" fill-rule="evenodd" clip-rule="evenodd"></path><path id="stroke1" stroke="currentColor" d="M4.19633 12.1965C2.15461 10.1548 2.15461 6.84451 4.19634 4.80278C6.23806 2.76105 9.54836 2.76105 11.5901 4.80278L12.0008 5.21354L12.4108 4.80429C14.4525 2.76256 17.7628 2.76256 19.8046 4.80429C21.8463 6.84602 21.8463 10.1563 19.8046 12.198L12 20.0011L4.19633 12.1965Z" fill-rule="evenodd" stroke-linecap="square" stroke-width="2" clip-rule="evenodd"></path></g>' },
|
|
42
|
+
'heart-filled': { viewBox: '0 0 24 24', content: '<path fill="currentColor" d="M12.0022 4.81816C14.4485 2.66879 18.1771 2.7618 20.5125 5.09718C22.9448 7.52943 22.9448 11.4729 20.5125 13.9051L15.2875 19.1302L15.2867 19.1295L12.0009 22.4153L4.72154 15.136L3.49007 13.9036C1.05808 11.4714 1.05791 7.52784 3.49008 5.09567C5.82601 2.75974 9.55583 2.66724 12.0022 4.81816Z"></path>' },
|
|
43
|
+
'home': { viewBox: '0 0 24 24', content: '<g id="home"><path id="fill1" fill="transparent" d="M3 10L12 2.5L21 10V21H3V10Z"></path><path id="fill2" fill="transparent" d="M9 14H15V21H9V14Z"></path><path id="stroke2" stroke="currentColor" d="M9 14H15V21H9V14Z" stroke-linecap="square" stroke-width="2"></path><path id="stroke1" stroke="currentColor" d="M3 10L12 2.5L21 10V21H3V10Z" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
44
|
+
'user': { viewBox: '0 0 24 24', content: '<g id="user"><g id="fill1"><path fill="transparent" d="M16.5 7.5C16.5 9.98528 14.4853 12 12 12C9.51472 12 7.5 9.98528 7.5 7.5C7.5 5.01472 9.51472 3 12 3C14.4853 3 16.5 5.01472 16.5 7.5Z"></path><path fill="transparent" d="M20 21V19C20 16.7909 18.2091 15 16 15H8C5.79086 15 4 16.7909 4 19V21H20Z"></path></g><g id="stroke1"><path stroke="currentColor" d="M16.5 7.5C16.5 9.98528 14.4853 12 12 12C9.51472 12 7.5 9.98528 7.5 7.5C7.5 5.01472 9.51472 3 12 3C14.4853 3 16.5 5.01472 16.5 7.5Z" stroke-linecap="square" stroke-width="2"></path><path stroke="currentColor" d="M20 21V19C20 16.7909 18.2091 15 16 15H8C5.79086 15 4 16.7909 4 19V21H20Z" stroke-linecap="square" stroke-width="2"></path></g></g>' },
|
|
45
|
+
'setting': { viewBox: '0 0 24 24', content: '<g id="setting"><path id="fill1" fill="transparent" d="M20.6604 7L12.0001 2L3.33984 7V17L12.0001 22L20.6604 17V7ZM12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16Z" fill-rule="evenodd" clip-rule="evenodd"></path><path id="fill2" fill="transparent" d="M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z"></path><path id="stroke1" stroke="currentColor" d="M12.0001 2L20.6604 7V17L12.0001 22L3.33984 17V7L12.0001 2Z" stroke-linecap="square" stroke-width="2"></path><path id="stroke2" stroke="currentColor" d="M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
46
|
+
'more': { viewBox: '0 0 24 24', content: '<g id="more"><g id="stroke1"><path stroke="currentColor" d="M11.5 4H12.5V5H11.5V4Z" stroke-linecap="square" stroke-width="2"></path><path stroke="currentColor" d="M11.5 11.5H12.5V12.5H11.5V11.5Z" stroke-linecap="square" stroke-width="2"></path><path stroke="currentColor" d="M11.5 19H12.5V20H11.5V19Z" stroke-linecap="square" stroke-width="2"></path></g></g>' },
|
|
47
|
+
'ellipsis': { viewBox: '0 0 24 24', content: '<g id="ellipsis"><g id="stroke1"><path stroke="currentColor" d="M4 11.5H5V12.5H4V11.5Z" stroke-linecap="square" stroke-width="2"></path><path stroke="currentColor" d="M11.5 11.5H12.5V12.5H11.5V11.5Z" stroke-linecap="square" stroke-width="2"></path><path stroke="currentColor" d="M19 11.5H20V12.5H19V11.5Z" stroke-linecap="square" stroke-width="2"></path></g></g>' },
|
|
48
|
+
'jump': { viewBox: '0 0 24 24', content: '<g id="jump"><path id="stroke1" stroke="currentColor" d="M9 4L4 4L4 20L20 20L20 15" stroke-linecap="square" stroke-width="2"></path><path id="stroke2" stroke="currentColor" d="M19.25 4.75L12 12M14 4H20L20 10" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
49
|
+
'link': { viewBox: '0 0 24 24', content: '<g id="link"><path id="stroke1" stroke="currentColor" d="M11.6762 6.99023L13.9998 4.6666C15.4726 3.19382 17.8604 3.19382 19.3332 4.6666C20.806 6.13938 20.806 8.52723 19.3332 10L17.0096 12.3236M6.98974 11.6766L4.66611 14.0003C3.19333 15.4731 3.19333 17.8609 4.66611 19.3337C6.13889 20.8065 8.52675 20.8065 9.99953 19.3337L12.3232 17.0101M13.9985 9.99989L9.99847 14" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
50
|
+
'menu': { viewBox: '0 0 24 24', content: '<g id="menu"><path id="fill1" fill="transparent" d="M21 3H3V10.5H21V3Z"></path><path id="fill2" fill="transparent" d="M3 21H21V10.5H3V21Z"></path><path id="stroke1" stroke="currentColor" d="M3 10.5V21H21V10.5M3 10.5H21M3 10.5V3H21V10.5M17 7H11M7 7H6.99609V7.00391" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
51
|
+
'filter': { viewBox: '0 0 24 24', content: '<g id="filter"><path id="fill1" fill="transparent" d="M19.5 4H4.5L10.5 12.5V20H13.5V12.5L19.5 4Z" fill-rule="evenodd" clip-rule="evenodd"></path><path id="stroke1" stroke="currentColor" d="M19.5 4H4.5L10.5 12.5V20H13.5V12.5L19.5 4Z" fill-rule="evenodd" stroke-linecap="square" stroke-width="2" clip-rule="evenodd"></path></g>' },
|
|
52
|
+
'calendar': { viewBox: '0 0 24 24', content: '<g id="calendar"><path id="fill1" fill="transparent" d="M21 10H3V21H21V10Z"></path><path id="fill2" fill="transparent" d="M21 10H3V5H21V10Z"></path><path id="stroke1" stroke="currentColor" d="M3 10H21M3 10V5H21V10M3 10V21H21V10M7 5V1.5M17 5V1.5" stroke-width="2"></path></g>' },
|
|
53
|
+
'time': { viewBox: '0 0 24 24', content: '<g id="time"><path id="fill1" fill="transparent" d="M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z"></path><path id="stroke1" stroke="currentColor" d="M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z" stroke-linecap="square" stroke-width="2"></path><path id="stroke2" stroke="currentColor" d="M12 6.5L12 12L15 15" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
54
|
+
'mail': { viewBox: '0 0 24 24', content: '<g id="mail"><path id="fill1" fill="transparent" d="M22 4H2V20L22 20V4Z"></path><path id="fill2" fill="transparent" d="M2 4H22V7.44444L12 12.5L2 7.44444V4Z"></path><path id="stroke1" stroke="currentColor" d="M2 4H22M2 4V20L22 20V4M2 4V7.44444L12 12.5L22 7.44444V4" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
55
|
+
'call': { viewBox: '0 0 24 24', content: '<g id="call"><path id="fill1" fill="transparent" d="M21 22C17.2007 22 13.6618 20.8848 10.6929 18.964C8.43077 17.5005 6.49953 15.5692 5.03601 13.3071C3.11515 10.3382 2 6.79932 2 3H8.77778L9.97148 8.37167L7.94713 10.396C9.28619 12.7542 11.2458 14.7138 13.604 16.0529L15.6283 14.0285L21 15.2222V22Z"></path><path id="stroke1" stroke="currentColor" d="M21 22C17.2007 22 13.6618 20.8848 10.6929 18.964C8.43077 17.5005 6.49953 15.5692 5.03601 13.3071C3.11515 10.3382 2 6.79932 2 3H8.77778L9.97148 8.37167L7.94713 10.396C9.28619 12.7542 11.2458 14.7138 13.604 16.0529L15.6283 14.0285L21 15.2222V22Z" stroke-width="2"></path></g>' },
|
|
56
|
+
'copy': { viewBox: '0 0 24 24', content: '<g id="copy"><path id="fill1" fill="transparent" d="M10 10H21V21H10z"></path><path id="stroke1" stroke="currentColor" d="M10 10H21V21H10V10Z" stroke-linecap="square" stroke-width="2"></path><path id="stroke2" stroke="currentColor" d="M14 6.5V3L3 3L3 14H6.5" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
57
|
+
'print': { viewBox: '0 0 24 24', content: '<g id="print"><path id="fill1" fill="transparent" d="M22.5005 8L1.50049 8L1.50049 17H6.00049L6.00049 15L18.0005 15V17L22.5005 17V8Z"></path><g id="fill2"><path fill="transparent" d="M19.0005 3V8L5.00049 8L5.00049 3L19.0005 3Z"></path><path fill="transparent" d="M18.0005 15V21L6.00049 21L6.00049 15H18.0005Z"></path></g><g id="stroke2"><path stroke="currentColor" d="M19.0005 3V8L5.00049 8L5.00049 3L19.0005 3Z" stroke-linecap="square" stroke-width="2"></path><path stroke="currentColor" d="M18.0005 15V21L6.00049 21V15H18.0005Z" stroke-linecap="square" stroke-width="2"></path></g><g id="stroke1"><path stroke="currentColor" d="M18.0005 11.5H18.0044V11.4961H18.0005V11.5Z" stroke-linecap="square" stroke-width="2"></path><path stroke="currentColor" d="M22.5005 8H1.50049V17H6.00049V15H18.0005V17H22.5005V8Z" stroke-linecap="square" stroke-width="2"></path></g></g>' },
|
|
58
|
+
'share': { viewBox: '0 0 24 24', content: '<g id="share"><g id="fill1"><path fill="transparent" d="M19.4907 7.09662C20.9256 6.2682 21.4172 4.43343 20.5888 2.99855C19.7604 1.56367 17.9256 1.07204 16.4907 1.90047C15.0559 2.7289 14.5642 4.56367 15.3927 5.99855C16.2211 7.43342 18.0559 7.92505 19.4907 7.09662Z"></path><path fill="transparent" d="M16.4907 22.0986C17.9256 22.927 19.7604 22.4354 20.5888 21.0005C21.4172 19.5656 20.9256 17.7309 19.4907 16.9024C18.0559 16.074 16.2211 16.5656 15.3927 18.0005C14.5642 19.4354 15.0559 21.2701 16.4907 22.0986Z"></path><path fill="transparent" d="M6.5005 14.5966C7.93538 13.7682 8.42701 11.9334 7.59858 10.4985C6.77015 9.06367 4.93538 8.57204 3.5005 9.40047C2.06562 10.2289 1.574 12.0637 2.40242 13.4985C3.23085 14.9334 5.06562 15.4251 6.5005 14.5966Z"></path><path fill="transparent" d="M3.5005 14.5985C4.93538 15.4269 6.77015 14.9353 7.59858 13.5004C8.42701 12.0655 7.93538 10.2308 6.5005 9.40233C5.06562 8.5739 3.23085 9.06553 2.40242 10.5004C1.574 11.9353 2.06562 13.7701 3.5005 14.5985Z"></path></g><path id="stroke1" stroke="currentColor" d="M7.59863 13.501L15.3929 18.001M7.59863 10.499L15.3929 5.99902M15.3927 5.99855C14.5642 4.56367 15.0559 2.7289 16.4907 1.90047C17.9256 1.07204 19.7604 1.56367 20.5888 2.99855C21.4172 4.43343 20.9256 6.2682 19.4907 7.09662C18.0559 7.92505 16.2211 7.43342 15.3927 5.99855ZM15.3927 18.0005C16.2211 16.5656 18.0559 16.074 19.4907 16.9024C20.9256 17.7309 21.4172 19.5656 20.5888 21.0005C19.7604 22.4354 17.9256 22.927 16.4907 22.0986C15.0559 21.2701 14.5642 19.4354 15.3927 18.0005ZM7.59858 10.4985C8.42701 11.9334 7.93538 13.7682 6.5005 14.5966C5.06562 15.4251 3.23085 14.9334 2.40242 13.4985C1.574 12.0637 2.06562 10.2289 3.5005 9.40047C4.93538 8.57204 6.77015 9.06367 7.59858 10.4985ZM7.59858 13.5004C6.77015 14.9353 4.93538 15.4269 3.5005 14.5985C2.06562 13.7701 1.574 11.9353 2.40242 10.5004C3.23085 9.06553 5.06562 8.5739 6.5005 9.40233C7.93538 10.2308 8.42701 12.0655 7.59858 13.5004Z" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
59
|
+
'browse': { viewBox: '0 0 24 24', content: '<g id="browse" clip-path="url(#clip0_543_7945)"><path id="fill1" fill="transparent" d="M11.9997 4C6.86881 4 2.52275 7.36017 1.04199 12C2.52275 16.6398 6.86881 20 11.9997 20C17.1306 20 21.4766 16.6398 22.9574 12C21.4766 7.36017 17.1306 4 11.9997 4Z"></path><path id="fill2" fill="transparent" d="M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z"></path><path id="stroke1" stroke="currentColor" d="M11.9997 4C6.86881 4 2.52275 7.36017 1.04199 12C2.52275 16.6398 6.86881 20 11.9997 20C17.1306 20 21.4766 16.6398 22.9574 12C21.4766 7.36017 17.1306 4 11.9997 4Z" stroke-linecap="square" stroke-width="2"></path><path id="stroke2" stroke="currentColor" d="M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
60
|
+
'browse-off': { viewBox: '0 0 24 24', content: '<g id="browse-off"><path id="stroke1" stroke="currentColor" d="M13.1758 8.17578C14.4396 8.56376 15.4368 9.56096 15.8247 10.8247M21.2858 15.2856C22.0085 14.2983 22.5776 13.1913 22.9578 12C21.4771 7.36017 17.131 4 12.0001 4C11.3698 4 10.7513 4.05072 10.1484 4.1483M5.80747 5.80786C3.57225 7.23888 1.86478 9.42193 1.04199 12.0001C2.52275 16.6399 6.86881 20.0001 11.9997 20.0001C14.2796 20.0001 16.4045 19.3367 18.1919 18.1923L5.80747 5.80786ZM8 12.0003C8 10.8957 8.44771 9.89573 9.17157 9.17188L14.8284 14.8287C14.1046 15.5526 13.1046 16.0003 12 16.0003C9.79086 16.0003 8 14.2094 8 12.0003Z" stroke-linecap="square" stroke-width="2"></path><path id="stroke2" stroke="currentColor" d="M20.9996 21L3 3" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
61
|
+
'lock-on': { viewBox: '0 0 24 24', content: '<g id="lock-on"><path id="fill1" fill="transparent" d="M4.49951 10H19.4995V21H4.49951V10Z"></path><g id="stroke1"><path stroke="currentColor" d="M4.49951 11H19.4995V21H4.49951V11Z" stroke-linecap="square" stroke-width="2"></path><path stroke="currentColor" d="M6.99951 7C6.99951 4.23858 9.23809 2 11.9995 2C14.7609 2 16.9995 4.23858 16.9995 7V11H6.99951V7Z" stroke-linecap="square" stroke-width="2"></path></g><path id="stroke2" stroke="currentColor" d="M9.99951 16H13.9995" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
62
|
+
'lock-off': { viewBox: '0 0 24 24', content: '<g id="lock-off"><path id="fill1" fill="transparent" d="M4.5 10H19.5V21H4.5V10Z"></path><path id="stroke1" stroke="currentColor" d="M7 11L6.99999 7C6.99999 4.23858 9.23857 2 12 2C14.2388 2 16.134 3.47145 16.7711 5.5M4.5 11H19.5V21H4.5V11Z" stroke-linecap="square" stroke-width="2"></path><path id="stroke2" stroke="currentColor" d="M10 16H14" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
63
|
+
'play': { viewBox: '0 0 24 24', content: '<path id="play" fill="currentColor" d="M18.25 11.9998L8.5 17.6289L8.5 6.37061L18.25 11.9998Z"></path>' },
|
|
64
|
+
'pause': { viewBox: '0 0 24 24', content: '<g id="pause"><path fill="currentColor" d="M11 17L11 7H8V17H11Z"></path><path fill="currentColor" d="M16 17L16 7H13L13 17H16Z"></path></g>' },
|
|
65
|
+
'stop': { viewBox: '0 0 24 24', content: '<path id="stop" fill="currentColor" d="M8 8H16V16H8V8Z"></path>' },
|
|
66
|
+
'image': { viewBox: '0 0 24 24', content: '<g id="image"><path id="fill1" fill="transparent" d="M3 21H20L9 10L3 16V21Z"></path><circle id="fill2" cx="15.75" cy="8.25" r="2" fill="transparent"></circle><path id="stroke1" stroke="currentColor" d="M3 16V3H21V21H20M3 16V21H20M3 16L9 10L20 21" stroke-width="2"></path><circle id="stroke2" cx="15.75" cy="8.25" r="2" stroke="currentColor" stroke-width="2"></circle></g>' },
|
|
67
|
+
'file': { viewBox: '0 0 24 24', content: '<g id="file"><path id="fill1" fill="transparent" d="M4 22H20V8H14V2H4V22Z"></path><path id="stroke1" stroke="currentColor" d="M14 2V8H20M14 2H15L20 7V8M14 2H4V22H20V8" stroke-width="2"></path></g>' },
|
|
68
|
+
'folder': { viewBox: '0 0 24 24', content: '<g id="folder"><path id="fill1" fill="transparent" d="M2 3.5L9 3.5L11 6L22 6L22 20L2 20L2 3.5Z"></path><path id="stroke1" stroke="currentColor" d="M2 3.5H9L11 6H22V20H2V3.5Z" stroke-width="2"></path></g>' },
|
|
69
|
+
'location': { viewBox: '0 0 24 24', content: '<g id="location"><path id="fill1" fill="transparent" d="M12 2C16.4183 2 20 5.58172 20 10C20 16.5 12 22 12 22C12 22 4 16.4992 4 10C4 5.58172 7.58172 2 12 2ZM12 7C10.3431 7 9 8.34315 9 10C9 11.6569 10.3431 13 12 13C13.6569 13 15 11.6569 15 10C15 8.34315 13.6569 7 12 7Z" fill-rule="evenodd" clip-rule="evenodd"></path><path id="stroke1" stroke="currentColor" d="M20 10C20 16.5 12 22 12 22C12 22 4 16.4992 4 10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10Z" stroke-width="2"></path><path id="stroke2" stroke="currentColor" d="M15 10C15 11.6569 13.6569 13 12 13C10.3431 13 9 11.6569 9 10C9 8.34315 10.3431 7 12 7C13.6569 7 15 8.34315 15 10Z" stroke-width="2"></path></g>' },
|
|
70
|
+
'tag': { viewBox: '0 0 24 24', content: '<g id="tag"><path id="fill1" fill="transparent" d="M10.8788 21.6066L2.39355 13.1214L11.5149 4.01475L20.0002 4L20.0002 12.5L10.8788 21.6066Z"></path><g id="stroke1"><path stroke="currentColor" d="M10.8788 21.6066L2.39355 13.1214L11.5149 4.01475L20.0002 4L20.0002 12.5L10.8788 21.6066Z" stroke-width="2"></path><path stroke="currentColor" d="M15.9966 7.99976H16.0005L16.0005 8.00366L15.9966 8.00366V7.99976Z" stroke-width="2"></path></g></g>' },
|
|
71
|
+
'discount': { viewBox: '0 0 24 24', content: '<g id="discount"><path id="fill1" fill="transparent" d="M11.878 22.0207L1.97852 12.1212L11.878 2.22168L21.0704 2.92879L21.7775 12.1212L11.878 22.0207Z"></path><path id="fill2" fill="transparent" d="M13.9998 7.17075C14.7809 6.3897 16.0472 6.3897 16.8283 7.17075C17.6093 7.9518 17.6093 9.21813 16.8283 9.99917C16.0472 10.7802 14.7809 10.7802 13.9998 9.99917C13.2188 9.21813 13.2188 7.9518 13.9998 7.17075Z"></path><path id="stroke1" stroke="currentColor" d="M11.878 22.0207L1.97852 12.1212L11.878 2.22168L21.0704 2.92879L21.7775 12.1212L11.878 22.0207Z" stroke-width="2"></path><path id="stroke2" stroke="currentColor" d="M13.9998 7.17075C14.7809 6.3897 16.0472 6.3897 16.8283 7.17075C17.6093 7.9518 17.6093 9.21813 16.8283 9.99917C16.0472 10.7802 14.7809 10.7802 13.9998 9.99917C13.2188 9.21813 13.2188 7.9518 13.9998 7.17075Z" stroke-width="2"></path></g>' },
|
|
72
|
+
'cart': { viewBox: '0 0 24 24', content: '<g id="cart"><path id="stroke1" stroke="currentColor" d="M1 2H4L7 13L6 17H21M7 21C7 21.5523 6.55228 22 6 22C5.44772 22 5 21.5523 5 21C5 20.4477 5.44772 20 6 20C6.55228 20 7 20.4477 7 21ZM21 21C21 21.5523 20.5523 22 20 22C19.4477 22 19 21.5523 19 21C19 20.4477 19.4477 20 20 20C20.5523 20 21 20.4477 21 21ZM6.99947 13H18.9995L21.9995 4H4.54492L6.99947 13Z" stroke-linecap="square" stroke-width="2"></path></g>' },
|
|
73
|
+
'notification': { viewBox: '0 0 24 24', content: '<g id="notification"><path id="fill1" fill="transparent" d="M3 19H21V16L19 13V8C19 4.13401 15.866 1 12 1C8.13401 1 5 4.13401 5 8V13L3 16V19Z"></path><path id="fill2" fill="transparent" d="M12 22.5C13.933 22.5 15.5 20.933 15.5 19H8.5C8.5 20.933 10.067 22.5 12 22.5Z"></path><g id="stroke1"><path stroke="currentColor" d="M5 8V13L3 16V19H21V16L19 13V8C19 4.13401 15.866 1 12 1C8.13401 1 5 4.13401 5 8Z" stroke-linecap="square" stroke-width="2"></path><path stroke="currentColor" d="M8.5 19H15.5C15.5 20.933 13.933 22.5 12 22.5C10.067 22.5 8.5 20.933 8.5 19Z" stroke-linecap="square" stroke-width="2"></path></g></g>' },
|
|
74
|
+
};
|
|
75
|
+
/** 已注册的图标名,按字母序。 */
|
|
76
|
+
const TD_ICON_NAMES = ['loading', 'add', 'plus', 'minus', 'close', 'check', 'check-circle', 'check-circle-filled', 'close-circle', 'close-circle-filled', 'error-circle', 'error-circle-filled', 'info-circle', 'info-circle-filled', 'help-circle', 'help-circle-filled', 'chevron-down', 'chevron-up', 'chevron-left', 'chevron-right', 'arrow-down', 'arrow-up', 'arrow-left', 'arrow-right', 'search', 'delete', 'edit', 'download', 'upload', 'refresh', 'star', 'star-filled', 'heart', 'heart-filled', 'home', 'user', 'setting', 'more', 'ellipsis', 'jump', 'link', 'menu', 'filter', 'calendar', 'time', 'mail', 'call', 'copy', 'print', 'share', 'browse', 'browse-off', 'lock-on', 'lock-off', 'play', 'pause', 'stop', 'image', 'file', 'folder', 'location', 'tag', 'discount', 'cart', 'notification'];
|
|
77
|
+
|
|
78
|
+
/** 解析后的 icon 源缓存,避免每次渲染都重新 parse。 */
|
|
79
|
+
const parsedCache = new Map();
|
|
80
|
+
function warnMissing(name) {
|
|
81
|
+
if (typeof console === 'undefined')
|
|
82
|
+
return;
|
|
83
|
+
console.warn(`[tdesign-ng] 未找到名为 "${name}" 的图标。默认只内置常用图标集,` +
|
|
84
|
+
`如需全量图标请执行:pnpm gen:icons --all`);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* 把图标片段解析成 SVG 元素。片段来自上游图标源码(可信),因此不经过 innerHTML,
|
|
88
|
+
* 也不会触发 Angular 的 sanitizer。
|
|
89
|
+
*/
|
|
90
|
+
function createSvgElement(name, viewBox, content) {
|
|
91
|
+
if (typeof document === 'undefined' || typeof DOMParser === 'undefined')
|
|
92
|
+
return null;
|
|
93
|
+
let source = parsedCache.get(name);
|
|
94
|
+
if (!source) {
|
|
95
|
+
const doc = new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" viewBox="${viewBox}">${content}</svg>`, 'image/svg+xml');
|
|
96
|
+
source = doc.documentElement;
|
|
97
|
+
if (!source || source.nodeName === 'parsererror') {
|
|
98
|
+
console.warn(`[tdesign-ng] 图标 "${name}" 的 SVG 片段解析失败`);
|
|
99
|
+
return null;
|
|
100
|
+
}
|
|
101
|
+
parsedCache.set(name, source);
|
|
102
|
+
}
|
|
103
|
+
const svg = document.importNode(source, true);
|
|
104
|
+
svg.setAttribute('width', '1em');
|
|
105
|
+
svg.setAttribute('height', '1em');
|
|
106
|
+
svg.setAttribute('fill', 'currentColor');
|
|
107
|
+
svg.setAttribute('focusable', 'false');
|
|
108
|
+
svg.setAttribute('aria-hidden', 'true');
|
|
109
|
+
return svg;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* 图标。
|
|
113
|
+
*
|
|
114
|
+
* 图标名与上游保持一致,可直接照抄 TDesign 文档:
|
|
115
|
+
* ```html
|
|
116
|
+
* <t-icon name="add" />
|
|
117
|
+
* <t-icon name="loading" size="24px" />
|
|
118
|
+
* ```
|
|
119
|
+
*
|
|
120
|
+
* 颜色通过 CSS `color` 控制(`fill: currentcolor`),尺寸通过 `size` 或 `font-size` 控制。
|
|
121
|
+
*/
|
|
122
|
+
class TIcon {
|
|
123
|
+
/** @zh 图标名称 @en Icon name */
|
|
124
|
+
name = input.required();
|
|
125
|
+
/** @zh 图标尺寸,支持任意 CSS 长度,默认继承字号 @en Icon size, supports any CSS length @defaultValue undefined */
|
|
126
|
+
size = input(undefined);
|
|
127
|
+
host = inject(ElementRef);
|
|
128
|
+
renderer = inject(Renderer2);
|
|
129
|
+
renderedName = null;
|
|
130
|
+
renderedSvg = null;
|
|
131
|
+
constructor() {
|
|
132
|
+
effect(() => {
|
|
133
|
+
const name = this.name();
|
|
134
|
+
this.applySize(this.size());
|
|
135
|
+
this.applyName(name);
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
applySize(size) {
|
|
139
|
+
const style = this.host.nativeElement.style;
|
|
140
|
+
if (size)
|
|
141
|
+
style.fontSize = /^\d+(\.\d+)?$/.test(size) ? `${size}px` : size;
|
|
142
|
+
else
|
|
143
|
+
style.removeProperty('font-size');
|
|
144
|
+
}
|
|
145
|
+
applyName(name) {
|
|
146
|
+
if (this.renderedName === name)
|
|
147
|
+
return;
|
|
148
|
+
const host = this.host.nativeElement;
|
|
149
|
+
if (this.renderedSvg) {
|
|
150
|
+
this.renderer.removeChild(host, this.renderedSvg);
|
|
151
|
+
this.renderedSvg = null;
|
|
152
|
+
}
|
|
153
|
+
if (this.renderedName)
|
|
154
|
+
this.renderer.removeClass(host, `t-icon-${this.renderedName}`);
|
|
155
|
+
this.renderedName = name;
|
|
156
|
+
const source = TD_ICONS[name];
|
|
157
|
+
if (!source) {
|
|
158
|
+
warnMissing(name);
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
const svg = createSvgElement(name, source.viewBox, source.content);
|
|
162
|
+
if (!svg)
|
|
163
|
+
return;
|
|
164
|
+
this.renderer.addClass(host, `t-icon-${name}`);
|
|
165
|
+
this.renderer.appendChild(host, svg);
|
|
166
|
+
this.renderedSvg = svg;
|
|
167
|
+
}
|
|
168
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TIcon, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
169
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.19", type: TIcon, isStandalone: true, selector: "t-icon", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "t-icon" }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
170
|
+
}
|
|
171
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TIcon, decorators: [{
|
|
172
|
+
type: Component,
|
|
173
|
+
args: [{
|
|
174
|
+
selector: 't-icon',
|
|
175
|
+
standalone: true,
|
|
176
|
+
template: '',
|
|
177
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
178
|
+
host: {
|
|
179
|
+
class: 't-icon',
|
|
180
|
+
},
|
|
181
|
+
}]
|
|
182
|
+
}], ctorParameters: () => [] });
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Generated bundle index. Do not edit.
|
|
186
|
+
*/
|
|
187
|
+
|
|
188
|
+
export { TD_ICONS, TD_ICON_NAMES, TIcon };
|
|
189
|
+
//# sourceMappingURL=tdesign-ng-icons.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tdesign-ng-icons.mjs","sources":["../../../icons/src/icons.generated.ts","../../../icons/src/icon.component.ts","../../../icons/src/tdesign-ng-icons.ts"],"sourcesContent":["// 此文件由 scripts/gen-icons.mjs 生成,请勿手改。\n// 图标来源:tdesign-icons-svg@0.4.8\n// 图标数量:65(内置子集,用 --all 生成全量)\n\nexport interface TDesignIconSource {\n readonly viewBox: string;\n readonly content: string;\n}\n\n/** 图标名 => SVG 片段。片段均为上游图标源码,不含用户输入。 */\nexport const TD_ICONS: Record<string, TDesignIconSource> = {\n 'loading': { viewBox: '0 0 24 24', content: '<path id=\"loading\" fill=\"currentColor\" d=\"M12 2.25C6.61556 2.25 2.25 6.61556 2.25 12C2.25 17.3844 6.61556 21.75 12 21.75V19.3125C7.96142 19.3125 4.6875 16.0386 4.6875 12C4.6875 7.96142 7.96142 4.6875 12 4.6875C16.0386 4.6875 19.3125 7.96142 19.3125 12H21.75C21.75 6.61556 17.3844 2.25 12 2.25Z\"></path>' },\n 'add': { viewBox: '0 0 24 24', content: '<g id=\"add\"><path id=\"stroke1\" stroke=\"currentColor\" d=\"M12 5L12 19M19 12L5 12\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'plus': { viewBox: '0 0 24 24', content: '<g id=\"plus\"><path id=\"stroke1\" stroke=\"currentColor\" d=\"M12 7.5V12M12 12L12 16.5M12 12L16.5 12M12 12L7.5 12\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'minus': { viewBox: '0 0 24 24', content: '<g id=\"minus\"><path id=\"stroke1\" stroke=\"currentColor\" d=\"M16.502 12L7.50195 12\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'close': { viewBox: '0 0 24 24', content: '<g id=\"close\"><path id=\"stroke1\" stroke=\"currentColor\" d=\"M16.9503 7.05029L12.0005 12M12.0005 12L7.05078 16.9498M12.0005 12L16.9503 16.9498M12.0005 12L7.05078 7.05029\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'check': { viewBox: '0 0 24 24', content: '<g id=\"check\"><path id=\"stroke1\" stroke=\"currentColor\" d=\"M19.5708 7.37842L10.3785 16.5708L5.42871 11.6211\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'check-circle': { viewBox: '0 0 24 24', content: '<g id=\"check-circle\"><path id=\"fill1\" fill=\"transparent\" d=\"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path id=\"stroke2\" stroke=\"currentColor\" d=\"M16.5 9L10.5 15L7.5 12\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'check-circle-filled': { viewBox: '0 0 24 24', content: '<path fill=\"currentColor\" d=\"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM7.49985 10.5858L10.4999 13.5858L16.4999 7.58578L17.9141 8.99999L10.4999 16.4142L6.08564 12L7.49985 10.5858Z\"></path>' },\n 'close-circle': { viewBox: '0 0 24 24', content: '<g id=\"close-circle\"><path id=\"fill1\" fill=\"transparent\" d=\"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path id=\"stroke2\" stroke=\"currentColor\" d=\"M15.1813 8.81836L11.9997 12M11.9997 12L8.81738 15.1823M11.9997 12L15.1813 15.1816M11.9997 12L8.81738 8.81768\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'close-circle-filled': { viewBox: '0 0 24 24', content: '<path fill=\"currentColor\" d=\"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM8.81753 7.40346L11.9999 10.5858L15.1815 7.40414L16.5957 8.81835L13.4141 12L16.5957 15.1816L15.1815 16.5958L11.9999 13.4142L8.81753 16.5965L7.40332 15.1823L10.5856 12L7.40332 8.81767L8.81753 7.40346Z\"></path>' },\n 'error-circle': { viewBox: '0 0 24 24', content: '<g id=\"error-circle\"><path id=\"fill1\" fill=\"transparent\" d=\"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path id=\"stroke2\" stroke=\"currentColor\" d=\"M12 7.5V13M12 16.5H12.0039V16.5039H12V16.5Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'error-circle-filled': { viewBox: '0 0 24 24', content: '<path fill=\"currentColor\" d=\"M12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1ZM11.0001 14H13.0001V6.49998H11.0001V14ZM13.004 15.5H11.0001V17.5039H13.004V15.5Z\"></path>' },\n 'info-circle': { viewBox: '0 0 24 24', content: '<g id=\"info-circle\"><path id=\"fill1\" fill=\"transparent\" d=\"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path id=\"stroke2\" stroke=\"currentColor\" d=\"M12 16.5L12 11M12 7.5L11.9961 7.5L11.9961 7.49609L12 7.49609L12 7.5Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'info-circle-filled': { viewBox: '0 0 24 24', content: '<path fill=\"currentColor\" d=\"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM10.996 8.50002V6.49611H12.9999V8.50002H10.996ZM12.9999 10L12.9999 17.5H10.9999V10L12.9999 10Z\"></path>' },\n 'help-circle': { viewBox: '0 0 24 24', content: '<g id=\"help-circle\"><path id=\"fill1\" fill=\"transparent\" d=\"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path id=\"stroke2\" stroke=\"currentColor\" d=\"M12.0002 14.25V14C12.0002 12.8954 12.9877 12.0414 13.8553 11.3578C14.5525 10.8085 15.0002 9.95652 15.0002 9C15.0002 7.34315 13.657 6 12.0002 6C10.694 6 9.58273 6.83481 9.1709 8M12.0002 17.25H12.0041V17.2539H12.0002V17.25Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'help-circle-filled': { viewBox: '0 0 24 24', content: '<path fill=\"currentColor\" d=\"M12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23ZM11.8265 11.8902C12.2582 11.3593 12.8004 10.9159 13.2365 10.5723C13.7034 10.2045 14.0002 9.63718 14.0002 9C14.0002 7.89543 13.1048 7 12.0002 7C11.131 7 10.3888 7.5551 10.1138 8.33325L9.78055 9.27609L7.89487 8.6096L8.22811 7.66676C8.77675 6.11451 10.2571 5 12.0002 5C14.2094 5 16.0002 6.79086 16.0002 9C16.0002 10.2759 15.4018 11.4125 14.4742 12.1433C14.0426 12.4834 13.6573 12.8088 13.3783 13.1519C13.1038 13.4896 13.0002 13.762 13.0002 14V15.25H11.0002V14C11.0002 13.1334 11.3905 12.4265 11.8265 11.8902ZM11.0001 18.2539V16.25H13.004V18.2539H11.0001Z\"></path>' },\n 'chevron-down': { viewBox: '0 0 24 24', content: '<g id=\"chevron-down\"><path id=\"stroke1\" stroke=\"currentColor\" d=\"M17.5 9.5L12 15L6.5 9.5\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'chevron-up': { viewBox: '0 0 24 24', content: '<g id=\"chevron-up\"><path id=\"stroke1\" stroke=\"currentColor\" d=\"M17.5 14.5L12 9L6.5 14.5\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'chevron-left': { viewBox: '0 0 24 24', content: '<g id=\"chevron-left\"><path id=\"stroke1\" stroke=\"currentColor\" d=\"M14.5 17.5L9 12L14.5 6.5\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'chevron-right': { viewBox: '0 0 24 24', content: '<g id=\"chevron-right\"><path id=\"stroke1\" stroke=\"currentColor\" d=\"M9.5 17.5L15 12L9.5 6.5\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'arrow-down': { viewBox: '0 0 24 24', content: '<g id=\"arrow-down\"><path id=\"stroke1\" stroke=\"currentColor\" d=\"M17.5 13.6L12 19.1L6.5 13.6M12 17.85V4.85\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'arrow-up': { viewBox: '0 0 24 24', content: '<g id=\"arrow-up\"><path id=\"stroke1\" stroke=\"currentColor\" d=\"M17.5 10.5L12 5L6.5 10.5M12 6.25V19.25\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'arrow-left': { viewBox: '0 0 24 24', content: '<g id=\"arrow-left\"><path id=\"stroke1\" stroke=\"currentColor\" d=\"M11 6.5L5.5 12L11 17.5M6.75 12H19.75\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'arrow-right': { viewBox: '0 0 24 24', content: '<g id=\"arrow-right\"><path id=\"stroke1\" stroke=\"currentColor\" d=\"M13 17.5L18.5 12L13 6.5M17.25 12L4.25 12\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'search': { viewBox: '0 0 24 24', content: '<g id=\"search\"><path id=\"fill1\" fill=\"transparent\" d=\"M15.8033 15.8033C12.8744 18.7322 8.12563 18.7322 5.1967 15.8033C2.26777 12.8744 2.26777 8.12563 5.1967 5.1967C8.12563 2.26777 12.8744 2.26777 15.8033 5.1967C18.7322 8.12563 18.7322 12.8744 15.8033 15.8033Z\"></path><path id=\"stroke2\" stroke=\"currentColor\" d=\"M15.8027 15.8037L21.106 21.107\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M15.8033 15.8033C12.8744 18.7322 8.12563 18.7322 5.1967 15.8033C2.26777 12.8744 2.26777 8.12563 5.1967 5.1967C8.12563 2.26777 12.8744 2.26777 15.8033 5.1967C18.7322 8.12563 18.7322 12.8744 15.8033 15.8033Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'delete': { viewBox: '0 0 24 24', content: '<g id=\"delete\"><path id=\"fill1\" fill=\"transparent\" d=\"M5 5H19L18.5 22H5.5L5 5Z\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M21 5H3M5 5H19L18.5 22H5.5L5 5ZM8.5 2H15.5V5H8.5V2Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path id=\"stroke2\" stroke=\"currentColor\" d=\"M12 9V18\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'edit': { viewBox: '0 0 24 24', content: '<g id=\"edit\"><path id=\"fill1\" fill=\"transparent\" d=\"M14.1048 6.00427L4.78744 15.3216L3.99805 20.0001L8.67652 19.2107L17.9939 9.89336L14.1048 6.00427Z\"></path><path id=\"fill2\" fill=\"transparent\" d=\"M17.9936 9.89339L21.0506 6.83635L17.1615 2.94727L14.1045 6.0043L17.9936 9.89339Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M14.1048 6.00427L4.78744 15.3216L3.99805 20.0001L8.67652 19.2107L17.9939 9.89336M14.1048 6.00427L17.9939 9.89336M14.1048 6.00427L17.1615 2.94727L21.0506 6.83635L17.9939 9.89336\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'download': { viewBox: '0 0 24 24', content: '<g id=\"download\"><path id=\"stroke1\" stroke=\"currentColor\" d=\"M16.5 10.5L12 15L7.5 10.5M12 13.75V4\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path id=\"stroke2\" stroke=\"currentColor\" d=\"M20.5 15V20H3.5V15\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'upload': { viewBox: '0 0 24 24', content: '<g id=\"upload\"><path id=\"stroke1\" stroke=\"currentColor\" d=\"M16.5 8.5L12 4L7.5 8.5M12 5.25V15\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path id=\"stroke2\" stroke=\"currentColor\" d=\"M20.5 15V20H3.5V15\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'refresh': { viewBox: '0 0 24 24', content: '<g id=\"refresh\"><path id=\"stroke1\" stroke=\"currentColor\" d=\"M21.448 13C20.9483 17.7767 16.909 21.5 12 21.5C8.18227 21.5 4.89052 19.248 3.38065 16M2.5 20.5V15.5H5.5M2.55176 11C3.05145 6.22334 7.09079 2.5 11.9998 2.5C15.8175 2.5 19.1092 4.75197 20.6191 8M21.4998 3.5V8.5H18.4998\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'star': { viewBox: '0 0 24 24', content: '<g id=\"star\"><path id=\"fill1\" fill=\"transparent\" d=\"M12.0001 3.67603L14.1867 9.96648L20.8449 10.1022L15.538 14.1256L17.4665 20.4999L12.0001 16.696L6.5337 20.4999L8.46217 14.1256L3.15527 10.1022L9.81354 9.96648L12.0001 3.67603Z\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M12.0001 3.67603L14.1867 9.96648L20.8449 10.1022L15.538 14.1256L17.4665 20.4999L12.0001 16.696L6.5337 20.4999L8.46217 14.1256L3.15527 10.1022L9.81354 9.96648L12.0001 3.67603Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'star-filled': { viewBox: '0 0 24 24', content: '<path fill=\"currentColor\" d=\"M12.0012 0.63031L14.9039 8.98087L23.7427 9.16099L16.6978 14.502L19.2579 22.9639L12.0012 17.9143L4.74461 22.9639L7.30465 14.502L0.259766 9.16099L9.09859 8.98087L12.0012 0.63031Z\"></path>' },\n 'heart': { viewBox: '0 0 24 24', content: '<g id=\"heart\"><path id=\"fill1\" fill=\"transparent\" d=\"M4.19633 12.1965C2.15461 10.1548 2.15461 6.84451 4.19634 4.80278C6.23806 2.76105 9.54836 2.76105 11.5901 4.80278L12.0008 5.21354L12.4108 4.80429C14.4525 2.76256 17.7628 2.76256 19.8046 4.80429C21.8463 6.84602 21.8463 10.1563 19.8046 12.198L12 20.0011L4.19633 12.1965Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M4.19633 12.1965C2.15461 10.1548 2.15461 6.84451 4.19634 4.80278C6.23806 2.76105 9.54836 2.76105 11.5901 4.80278L12.0008 5.21354L12.4108 4.80429C14.4525 2.76256 17.7628 2.76256 19.8046 4.80429C21.8463 6.84602 21.8463 10.1563 19.8046 12.198L12 20.0011L4.19633 12.1965Z\" fill-rule=\"evenodd\" stroke-linecap=\"square\" stroke-width=\"2\" clip-rule=\"evenodd\"></path></g>' },\n 'heart-filled': { viewBox: '0 0 24 24', content: '<path fill=\"currentColor\" d=\"M12.0022 4.81816C14.4485 2.66879 18.1771 2.7618 20.5125 5.09718C22.9448 7.52943 22.9448 11.4729 20.5125 13.9051L15.2875 19.1302L15.2867 19.1295L12.0009 22.4153L4.72154 15.136L3.49007 13.9036C1.05808 11.4714 1.05791 7.52784 3.49008 5.09567C5.82601 2.75974 9.55583 2.66724 12.0022 4.81816Z\"></path>' },\n 'home': { viewBox: '0 0 24 24', content: '<g id=\"home\"><path id=\"fill1\" fill=\"transparent\" d=\"M3 10L12 2.5L21 10V21H3V10Z\"></path><path id=\"fill2\" fill=\"transparent\" d=\"M9 14H15V21H9V14Z\"></path><path id=\"stroke2\" stroke=\"currentColor\" d=\"M9 14H15V21H9V14Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M3 10L12 2.5L21 10V21H3V10Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'user': { viewBox: '0 0 24 24', content: '<g id=\"user\"><g id=\"fill1\"><path fill=\"transparent\" d=\"M16.5 7.5C16.5 9.98528 14.4853 12 12 12C9.51472 12 7.5 9.98528 7.5 7.5C7.5 5.01472 9.51472 3 12 3C14.4853 3 16.5 5.01472 16.5 7.5Z\"></path><path fill=\"transparent\" d=\"M20 21V19C20 16.7909 18.2091 15 16 15H8C5.79086 15 4 16.7909 4 19V21H20Z\"></path></g><g id=\"stroke1\"><path stroke=\"currentColor\" d=\"M16.5 7.5C16.5 9.98528 14.4853 12 12 12C9.51472 12 7.5 9.98528 7.5 7.5C7.5 5.01472 9.51472 3 12 3C14.4853 3 16.5 5.01472 16.5 7.5Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path stroke=\"currentColor\" d=\"M20 21V19C20 16.7909 18.2091 15 16 15H8C5.79086 15 4 16.7909 4 19V21H20Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g></g>' },\n 'setting': { viewBox: '0 0 24 24', content: '<g id=\"setting\"><path id=\"fill1\" fill=\"transparent\" d=\"M20.6604 7L12.0001 2L3.33984 7V17L12.0001 22L20.6604 17V7ZM12 16C14.2091 16 16 14.2091 16 12C16 9.79086 14.2091 8 12 8C9.79086 8 8 9.79086 8 12C8 14.2091 9.79086 16 12 16Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\"></path><path id=\"fill2\" fill=\"transparent\" d=\"M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M12.0001 2L20.6604 7V17L12.0001 22L3.33984 17V7L12.0001 2Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path id=\"stroke2\" stroke=\"currentColor\" d=\"M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'more': { viewBox: '0 0 24 24', content: '<g id=\"more\"><g id=\"stroke1\"><path stroke=\"currentColor\" d=\"M11.5 4H12.5V5H11.5V4Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path stroke=\"currentColor\" d=\"M11.5 11.5H12.5V12.5H11.5V11.5Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path stroke=\"currentColor\" d=\"M11.5 19H12.5V20H11.5V19Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g></g>' },\n 'ellipsis': { viewBox: '0 0 24 24', content: '<g id=\"ellipsis\"><g id=\"stroke1\"><path stroke=\"currentColor\" d=\"M4 11.5H5V12.5H4V11.5Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path stroke=\"currentColor\" d=\"M11.5 11.5H12.5V12.5H11.5V11.5Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path stroke=\"currentColor\" d=\"M19 11.5H20V12.5H19V11.5Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g></g>' },\n 'jump': { viewBox: '0 0 24 24', content: '<g id=\"jump\"><path id=\"stroke1\" stroke=\"currentColor\" d=\"M9 4L4 4L4 20L20 20L20 15\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path id=\"stroke2\" stroke=\"currentColor\" d=\"M19.25 4.75L12 12M14 4H20L20 10\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'link': { viewBox: '0 0 24 24', content: '<g id=\"link\"><path id=\"stroke1\" stroke=\"currentColor\" d=\"M11.6762 6.99023L13.9998 4.6666C15.4726 3.19382 17.8604 3.19382 19.3332 4.6666C20.806 6.13938 20.806 8.52723 19.3332 10L17.0096 12.3236M6.98974 11.6766L4.66611 14.0003C3.19333 15.4731 3.19333 17.8609 4.66611 19.3337C6.13889 20.8065 8.52675 20.8065 9.99953 19.3337L12.3232 17.0101M13.9985 9.99989L9.99847 14\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'menu': { viewBox: '0 0 24 24', content: '<g id=\"menu\"><path id=\"fill1\" fill=\"transparent\" d=\"M21 3H3V10.5H21V3Z\"></path><path id=\"fill2\" fill=\"transparent\" d=\"M3 21H21V10.5H3V21Z\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M3 10.5V21H21V10.5M3 10.5H21M3 10.5V3H21V10.5M17 7H11M7 7H6.99609V7.00391\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'filter': { viewBox: '0 0 24 24', content: '<g id=\"filter\"><path id=\"fill1\" fill=\"transparent\" d=\"M19.5 4H4.5L10.5 12.5V20H13.5V12.5L19.5 4Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M19.5 4H4.5L10.5 12.5V20H13.5V12.5L19.5 4Z\" fill-rule=\"evenodd\" stroke-linecap=\"square\" stroke-width=\"2\" clip-rule=\"evenodd\"></path></g>' },\n 'calendar': { viewBox: '0 0 24 24', content: '<g id=\"calendar\"><path id=\"fill1\" fill=\"transparent\" d=\"M21 10H3V21H21V10Z\"></path><path id=\"fill2\" fill=\"transparent\" d=\"M21 10H3V5H21V10Z\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M3 10H21M3 10V5H21V10M3 10V21H21V10M7 5V1.5M17 5V1.5\" stroke-width=\"2\"></path></g>' },\n 'time': { viewBox: '0 0 24 24', content: '<g id=\"time\"><path id=\"fill1\" fill=\"transparent\" d=\"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path id=\"stroke2\" stroke=\"currentColor\" d=\"M12 6.5L12 12L15 15\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'mail': { viewBox: '0 0 24 24', content: '<g id=\"mail\"><path id=\"fill1\" fill=\"transparent\" d=\"M22 4H2V20L22 20V4Z\"></path><path id=\"fill2\" fill=\"transparent\" d=\"M2 4H22V7.44444L12 12.5L2 7.44444V4Z\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M2 4H22M2 4V20L22 20V4M2 4V7.44444L12 12.5L22 7.44444V4\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'call': { viewBox: '0 0 24 24', content: '<g id=\"call\"><path id=\"fill1\" fill=\"transparent\" d=\"M21 22C17.2007 22 13.6618 20.8848 10.6929 18.964C8.43077 17.5005 6.49953 15.5692 5.03601 13.3071C3.11515 10.3382 2 6.79932 2 3H8.77778L9.97148 8.37167L7.94713 10.396C9.28619 12.7542 11.2458 14.7138 13.604 16.0529L15.6283 14.0285L21 15.2222V22Z\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M21 22C17.2007 22 13.6618 20.8848 10.6929 18.964C8.43077 17.5005 6.49953 15.5692 5.03601 13.3071C3.11515 10.3382 2 6.79932 2 3H8.77778L9.97148 8.37167L7.94713 10.396C9.28619 12.7542 11.2458 14.7138 13.604 16.0529L15.6283 14.0285L21 15.2222V22Z\" stroke-width=\"2\"></path></g>' },\n 'copy': { viewBox: '0 0 24 24', content: '<g id=\"copy\"><path id=\"fill1\" fill=\"transparent\" d=\"M10 10H21V21H10z\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M10 10H21V21H10V10Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path id=\"stroke2\" stroke=\"currentColor\" d=\"M14 6.5V3L3 3L3 14H6.5\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'print': { viewBox: '0 0 24 24', content: '<g id=\"print\"><path id=\"fill1\" fill=\"transparent\" d=\"M22.5005 8L1.50049 8L1.50049 17H6.00049L6.00049 15L18.0005 15V17L22.5005 17V8Z\"></path><g id=\"fill2\"><path fill=\"transparent\" d=\"M19.0005 3V8L5.00049 8L5.00049 3L19.0005 3Z\"></path><path fill=\"transparent\" d=\"M18.0005 15V21L6.00049 21L6.00049 15H18.0005Z\"></path></g><g id=\"stroke2\"><path stroke=\"currentColor\" d=\"M19.0005 3V8L5.00049 8L5.00049 3L19.0005 3Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path stroke=\"currentColor\" d=\"M18.0005 15V21L6.00049 21V15H18.0005Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g><g id=\"stroke1\"><path stroke=\"currentColor\" d=\"M18.0005 11.5H18.0044V11.4961H18.0005V11.5Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path stroke=\"currentColor\" d=\"M22.5005 8H1.50049V17H6.00049V15H18.0005V17H22.5005V8Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g></g>' },\n 'share': { viewBox: '0 0 24 24', content: '<g id=\"share\"><g id=\"fill1\"><path fill=\"transparent\" d=\"M19.4907 7.09662C20.9256 6.2682 21.4172 4.43343 20.5888 2.99855C19.7604 1.56367 17.9256 1.07204 16.4907 1.90047C15.0559 2.7289 14.5642 4.56367 15.3927 5.99855C16.2211 7.43342 18.0559 7.92505 19.4907 7.09662Z\"></path><path fill=\"transparent\" d=\"M16.4907 22.0986C17.9256 22.927 19.7604 22.4354 20.5888 21.0005C21.4172 19.5656 20.9256 17.7309 19.4907 16.9024C18.0559 16.074 16.2211 16.5656 15.3927 18.0005C14.5642 19.4354 15.0559 21.2701 16.4907 22.0986Z\"></path><path fill=\"transparent\" d=\"M6.5005 14.5966C7.93538 13.7682 8.42701 11.9334 7.59858 10.4985C6.77015 9.06367 4.93538 8.57204 3.5005 9.40047C2.06562 10.2289 1.574 12.0637 2.40242 13.4985C3.23085 14.9334 5.06562 15.4251 6.5005 14.5966Z\"></path><path fill=\"transparent\" d=\"M3.5005 14.5985C4.93538 15.4269 6.77015 14.9353 7.59858 13.5004C8.42701 12.0655 7.93538 10.2308 6.5005 9.40233C5.06562 8.5739 3.23085 9.06553 2.40242 10.5004C1.574 11.9353 2.06562 13.7701 3.5005 14.5985Z\"></path></g><path id=\"stroke1\" stroke=\"currentColor\" d=\"M7.59863 13.501L15.3929 18.001M7.59863 10.499L15.3929 5.99902M15.3927 5.99855C14.5642 4.56367 15.0559 2.7289 16.4907 1.90047C17.9256 1.07204 19.7604 1.56367 20.5888 2.99855C21.4172 4.43343 20.9256 6.2682 19.4907 7.09662C18.0559 7.92505 16.2211 7.43342 15.3927 5.99855ZM15.3927 18.0005C16.2211 16.5656 18.0559 16.074 19.4907 16.9024C20.9256 17.7309 21.4172 19.5656 20.5888 21.0005C19.7604 22.4354 17.9256 22.927 16.4907 22.0986C15.0559 21.2701 14.5642 19.4354 15.3927 18.0005ZM7.59858 10.4985C8.42701 11.9334 7.93538 13.7682 6.5005 14.5966C5.06562 15.4251 3.23085 14.9334 2.40242 13.4985C1.574 12.0637 2.06562 10.2289 3.5005 9.40047C4.93538 8.57204 6.77015 9.06367 7.59858 10.4985ZM7.59858 13.5004C6.77015 14.9353 4.93538 15.4269 3.5005 14.5985C2.06562 13.7701 1.574 11.9353 2.40242 10.5004C3.23085 9.06553 5.06562 8.5739 6.5005 9.40233C7.93538 10.2308 8.42701 12.0655 7.59858 13.5004Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'browse': { viewBox: '0 0 24 24', content: '<g id=\"browse\" clip-path=\"url(#clip0_543_7945)\"><path id=\"fill1\" fill=\"transparent\" d=\"M11.9997 4C6.86881 4 2.52275 7.36017 1.04199 12C2.52275 16.6398 6.86881 20 11.9997 20C17.1306 20 21.4766 16.6398 22.9574 12C21.4766 7.36017 17.1306 4 11.9997 4Z\"></path><path id=\"fill2\" fill=\"transparent\" d=\"M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M11.9997 4C6.86881 4 2.52275 7.36017 1.04199 12C2.52275 16.6398 6.86881 20 11.9997 20C17.1306 20 21.4766 16.6398 22.9574 12C21.4766 7.36017 17.1306 4 11.9997 4Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path id=\"stroke2\" stroke=\"currentColor\" d=\"M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'browse-off': { viewBox: '0 0 24 24', content: '<g id=\"browse-off\"><path id=\"stroke1\" stroke=\"currentColor\" d=\"M13.1758 8.17578C14.4396 8.56376 15.4368 9.56096 15.8247 10.8247M21.2858 15.2856C22.0085 14.2983 22.5776 13.1913 22.9578 12C21.4771 7.36017 17.131 4 12.0001 4C11.3698 4 10.7513 4.05072 10.1484 4.1483M5.80747 5.80786C3.57225 7.23888 1.86478 9.42193 1.04199 12.0001C2.52275 16.6399 6.86881 20.0001 11.9997 20.0001C14.2796 20.0001 16.4045 19.3367 18.1919 18.1923L5.80747 5.80786ZM8 12.0003C8 10.8957 8.44771 9.89573 9.17157 9.17188L14.8284 14.8287C14.1046 15.5526 13.1046 16.0003 12 16.0003C9.79086 16.0003 8 14.2094 8 12.0003Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path id=\"stroke2\" stroke=\"currentColor\" d=\"M20.9996 21L3 3\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'lock-on': { viewBox: '0 0 24 24', content: '<g id=\"lock-on\"><path id=\"fill1\" fill=\"transparent\" d=\"M4.49951 10H19.4995V21H4.49951V10Z\"></path><g id=\"stroke1\"><path stroke=\"currentColor\" d=\"M4.49951 11H19.4995V21H4.49951V11Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path stroke=\"currentColor\" d=\"M6.99951 7C6.99951 4.23858 9.23809 2 11.9995 2C14.7609 2 16.9995 4.23858 16.9995 7V11H6.99951V7Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g><path id=\"stroke2\" stroke=\"currentColor\" d=\"M9.99951 16H13.9995\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'lock-off': { viewBox: '0 0 24 24', content: '<g id=\"lock-off\"><path id=\"fill1\" fill=\"transparent\" d=\"M4.5 10H19.5V21H4.5V10Z\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M7 11L6.99999 7C6.99999 4.23858 9.23857 2 12 2C14.2388 2 16.134 3.47145 16.7711 5.5M4.5 11H19.5V21H4.5V11Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path id=\"stroke2\" stroke=\"currentColor\" d=\"M10 16H14\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'play': { viewBox: '0 0 24 24', content: '<path id=\"play\" fill=\"currentColor\" d=\"M18.25 11.9998L8.5 17.6289L8.5 6.37061L18.25 11.9998Z\"></path>' },\n 'pause': { viewBox: '0 0 24 24', content: '<g id=\"pause\"><path fill=\"currentColor\" d=\"M11 17L11 7H8V17H11Z\"></path><path fill=\"currentColor\" d=\"M16 17L16 7H13L13 17H16Z\"></path></g>' },\n 'stop': { viewBox: '0 0 24 24', content: '<path id=\"stop\" fill=\"currentColor\" d=\"M8 8H16V16H8V8Z\"></path>' },\n 'image': { viewBox: '0 0 24 24', content: '<g id=\"image\"><path id=\"fill1\" fill=\"transparent\" d=\"M3 21H20L9 10L3 16V21Z\"></path><circle id=\"fill2\" cx=\"15.75\" cy=\"8.25\" r=\"2\" fill=\"transparent\"></circle><path id=\"stroke1\" stroke=\"currentColor\" d=\"M3 16V3H21V21H20M3 16V21H20M3 16L9 10L20 21\" stroke-width=\"2\"></path><circle id=\"stroke2\" cx=\"15.75\" cy=\"8.25\" r=\"2\" stroke=\"currentColor\" stroke-width=\"2\"></circle></g>' },\n 'file': { viewBox: '0 0 24 24', content: '<g id=\"file\"><path id=\"fill1\" fill=\"transparent\" d=\"M4 22H20V8H14V2H4V22Z\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M14 2V8H20M14 2H15L20 7V8M14 2H4V22H20V8\" stroke-width=\"2\"></path></g>' },\n 'folder': { viewBox: '0 0 24 24', content: '<g id=\"folder\"><path id=\"fill1\" fill=\"transparent\" d=\"M2 3.5L9 3.5L11 6L22 6L22 20L2 20L2 3.5Z\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M2 3.5H9L11 6H22V20H2V3.5Z\" stroke-width=\"2\"></path></g>' },\n 'location': { viewBox: '0 0 24 24', content: '<g id=\"location\"><path id=\"fill1\" fill=\"transparent\" d=\"M12 2C16.4183 2 20 5.58172 20 10C20 16.5 12 22 12 22C12 22 4 16.4992 4 10C4 5.58172 7.58172 2 12 2ZM12 7C10.3431 7 9 8.34315 9 10C9 11.6569 10.3431 13 12 13C13.6569 13 15 11.6569 15 10C15 8.34315 13.6569 7 12 7Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M20 10C20 16.5 12 22 12 22C12 22 4 16.4992 4 10C4 5.58172 7.58172 2 12 2C16.4183 2 20 5.58172 20 10Z\" stroke-width=\"2\"></path><path id=\"stroke2\" stroke=\"currentColor\" d=\"M15 10C15 11.6569 13.6569 13 12 13C10.3431 13 9 11.6569 9 10C9 8.34315 10.3431 7 12 7C13.6569 7 15 8.34315 15 10Z\" stroke-width=\"2\"></path></g>' },\n 'tag': { viewBox: '0 0 24 24', content: '<g id=\"tag\"><path id=\"fill1\" fill=\"transparent\" d=\"M10.8788 21.6066L2.39355 13.1214L11.5149 4.01475L20.0002 4L20.0002 12.5L10.8788 21.6066Z\"></path><g id=\"stroke1\"><path stroke=\"currentColor\" d=\"M10.8788 21.6066L2.39355 13.1214L11.5149 4.01475L20.0002 4L20.0002 12.5L10.8788 21.6066Z\" stroke-width=\"2\"></path><path stroke=\"currentColor\" d=\"M15.9966 7.99976H16.0005L16.0005 8.00366L15.9966 8.00366V7.99976Z\" stroke-width=\"2\"></path></g></g>' },\n 'discount': { viewBox: '0 0 24 24', content: '<g id=\"discount\"><path id=\"fill1\" fill=\"transparent\" d=\"M11.878 22.0207L1.97852 12.1212L11.878 2.22168L21.0704 2.92879L21.7775 12.1212L11.878 22.0207Z\"></path><path id=\"fill2\" fill=\"transparent\" d=\"M13.9998 7.17075C14.7809 6.3897 16.0472 6.3897 16.8283 7.17075C17.6093 7.9518 17.6093 9.21813 16.8283 9.99917C16.0472 10.7802 14.7809 10.7802 13.9998 9.99917C13.2188 9.21813 13.2188 7.9518 13.9998 7.17075Z\"></path><path id=\"stroke1\" stroke=\"currentColor\" d=\"M11.878 22.0207L1.97852 12.1212L11.878 2.22168L21.0704 2.92879L21.7775 12.1212L11.878 22.0207Z\" stroke-width=\"2\"></path><path id=\"stroke2\" stroke=\"currentColor\" d=\"M13.9998 7.17075C14.7809 6.3897 16.0472 6.3897 16.8283 7.17075C17.6093 7.9518 17.6093 9.21813 16.8283 9.99917C16.0472 10.7802 14.7809 10.7802 13.9998 9.99917C13.2188 9.21813 13.2188 7.9518 13.9998 7.17075Z\" stroke-width=\"2\"></path></g>' },\n 'cart': { viewBox: '0 0 24 24', content: '<g id=\"cart\"><path id=\"stroke1\" stroke=\"currentColor\" d=\"M1 2H4L7 13L6 17H21M7 21C7 21.5523 6.55228 22 6 22C5.44772 22 5 21.5523 5 21C5 20.4477 5.44772 20 6 20C6.55228 20 7 20.4477 7 21ZM21 21C21 21.5523 20.5523 22 20 22C19.4477 22 19 21.5523 19 21C19 20.4477 19.4477 20 20 20C20.5523 20 21 20.4477 21 21ZM6.99947 13H18.9995L21.9995 4H4.54492L6.99947 13Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g>' },\n 'notification': { viewBox: '0 0 24 24', content: '<g id=\"notification\"><path id=\"fill1\" fill=\"transparent\" d=\"M3 19H21V16L19 13V8C19 4.13401 15.866 1 12 1C8.13401 1 5 4.13401 5 8V13L3 16V19Z\"></path><path id=\"fill2\" fill=\"transparent\" d=\"M12 22.5C13.933 22.5 15.5 20.933 15.5 19H8.5C8.5 20.933 10.067 22.5 12 22.5Z\"></path><g id=\"stroke1\"><path stroke=\"currentColor\" d=\"M5 8V13L3 16V19H21V16L19 13V8C19 4.13401 15.866 1 12 1C8.13401 1 5 4.13401 5 8Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path><path stroke=\"currentColor\" d=\"M8.5 19H15.5C15.5 20.933 13.933 22.5 12 22.5C10.067 22.5 8.5 20.933 8.5 19Z\" stroke-linecap=\"square\" stroke-width=\"2\"></path></g></g>' },\n};\n\n/** 已注册的图标名,按字母序。 */\nexport const TD_ICON_NAMES: readonly string[] = ['loading', 'add', 'plus', 'minus', 'close', 'check', 'check-circle', 'check-circle-filled', 'close-circle', 'close-circle-filled', 'error-circle', 'error-circle-filled', 'info-circle', 'info-circle-filled', 'help-circle', 'help-circle-filled', 'chevron-down', 'chevron-up', 'chevron-left', 'chevron-right', 'arrow-down', 'arrow-up', 'arrow-left', 'arrow-right', 'search', 'delete', 'edit', 'download', 'upload', 'refresh', 'star', 'star-filled', 'heart', 'heart-filled', 'home', 'user', 'setting', 'more', 'ellipsis', 'jump', 'link', 'menu', 'filter', 'calendar', 'time', 'mail', 'call', 'copy', 'print', 'share', 'browse', 'browse-off', 'lock-on', 'lock-off', 'play', 'pause', 'stop', 'image', 'file', 'folder', 'location', 'tag', 'discount', 'cart', 'notification'];\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Renderer2,\n effect,\n inject,\n input,\n} from '@angular/core';\nimport { TD_ICONS } from './icons.generated';\n\n/** 解析后的 icon 源缓存,避免每次渲染都重新 parse。 */\nconst parsedCache = new Map<string, SVGSVGElement>();\n\nfunction warnMissing(name: string): void {\n if (typeof console === 'undefined') return;\n console.warn(\n `[tdesign-ng] 未找到名为 \"${name}\" 的图标。默认只内置常用图标集,` +\n `如需全量图标请执行:pnpm gen:icons --all`,\n );\n}\n\n/**\n * 把图标片段解析成 SVG 元素。片段来自上游图标源码(可信),因此不经过 innerHTML,\n * 也不会触发 Angular 的 sanitizer。\n */\nfunction createSvgElement(name: string, viewBox: string, content: string): SVGSVGElement | null {\n if (typeof document === 'undefined' || typeof DOMParser === 'undefined') return null;\n\n let source = parsedCache.get(name);\n if (!source) {\n const doc = new DOMParser().parseFromString(\n `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"${viewBox}\">${content}</svg>`,\n 'image/svg+xml',\n );\n source = doc.documentElement as unknown as SVGSVGElement;\n if (!source || source.nodeName === 'parsererror') {\n console.warn(`[tdesign-ng] 图标 \"${name}\" 的 SVG 片段解析失败`);\n return null;\n }\n parsedCache.set(name, source);\n }\n\n const svg = document.importNode(source, true) as SVGSVGElement;\n svg.setAttribute('width', '1em');\n svg.setAttribute('height', '1em');\n svg.setAttribute('fill', 'currentColor');\n svg.setAttribute('focusable', 'false');\n svg.setAttribute('aria-hidden', 'true');\n return svg;\n}\n\n/**\n * 图标。\n *\n * 图标名与上游保持一致,可直接照抄 TDesign 文档:\n * ```html\n * <t-icon name=\"add\" />\n * <t-icon name=\"loading\" size=\"24px\" />\n * ```\n *\n * 颜色通过 CSS `color` 控制(`fill: currentcolor`),尺寸通过 `size` 或 `font-size` 控制。\n */\n@Component({\n selector: 't-icon',\n standalone: true,\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 't-icon',\n },\n})\nexport class TIcon {\n /** @zh 图标名称 @en Icon name */\n readonly name = input.required<string>();\n\n /** @zh 图标尺寸,支持任意 CSS 长度,默认继承字号 @en Icon size, supports any CSS length @defaultValue undefined */\n readonly size = input<string | undefined>(undefined);\n\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly renderer = inject(Renderer2);\n private renderedName: string | null = null;\n private renderedSvg: SVGSVGElement | null = null;\n\n constructor() {\n effect(() => {\n const name = this.name();\n this.applySize(this.size());\n this.applyName(name);\n });\n }\n\n private applySize(size: string | undefined): void {\n const style = this.host.nativeElement.style;\n if (size) style.fontSize = /^\\d+(\\.\\d+)?$/.test(size) ? `${size}px` : size;\n else style.removeProperty('font-size');\n }\n\n private applyName(name: string): void {\n if (this.renderedName === name) return;\n\n const host = this.host.nativeElement;\n if (this.renderedSvg) {\n this.renderer.removeChild(host, this.renderedSvg);\n this.renderedSvg = null;\n }\n if (this.renderedName) this.renderer.removeClass(host, `t-icon-${this.renderedName}`);\n this.renderedName = name;\n\n const source = TD_ICONS[name];\n if (!source) {\n warnMissing(name);\n return;\n }\n\n const svg = createSvgElement(name, source.viewBox, source.content);\n if (!svg) return;\n\n this.renderer.addClass(host, `t-icon-${name}`);\n this.renderer.appendChild(host, svg);\n this.renderedSvg = svg;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;AACA;AACA;AAOA;AACO,MAAM,QAAQ,GAAsC;IACzD,SAAS,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,gTAAgT,EAAE;IAC9V,KAAK,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,sIAAsI,EAAE;IAChL,MAAM,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,oKAAoK,EAAE;IAC/M,OAAO,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,uIAAuI,EAAE;IACnL,OAAO,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,8NAA8N,EAAE;IAC1Q,OAAO,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,kKAAkK,EAAE;IAC9M,cAAc,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,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A,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,KAAK,2VANN,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAMD,KAAK,EAAA,UAAA,EAAA,CAAA;kBATjB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,QAAQ;AAClB,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,EAAE;oBACZ,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACJ,wBAAA,KAAK,EAAE,QAAQ;AAChB,qBAAA;AACF,iBAAA;;;ACvED;;AAEG;;;;"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* 图标。
|
|
4
|
+
*
|
|
5
|
+
* 图标名与上游保持一致,可直接照抄 TDesign 文档:
|
|
6
|
+
* ```html
|
|
7
|
+
* <t-icon name="add" />
|
|
8
|
+
* <t-icon name="loading" size="24px" />
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* 颜色通过 CSS `color` 控制(`fill: currentcolor`),尺寸通过 `size` 或 `font-size` 控制。
|
|
12
|
+
*/
|
|
13
|
+
export declare class TIcon {
|
|
14
|
+
/** @zh 图标名称 @en Icon name */
|
|
15
|
+
readonly name: import("@angular/core").InputSignal<string>;
|
|
16
|
+
/** @zh 图标尺寸,支持任意 CSS 长度,默认继承字号 @en Icon size, supports any CSS length @defaultValue undefined */
|
|
17
|
+
readonly size: import("@angular/core").InputSignal<string>;
|
|
18
|
+
private readonly host;
|
|
19
|
+
private readonly renderer;
|
|
20
|
+
private renderedName;
|
|
21
|
+
private renderedSvg;
|
|
22
|
+
constructor();
|
|
23
|
+
private applySize;
|
|
24
|
+
private applyName;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TIcon, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TIcon, "t-icon", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface TDesignIconSource {
|
|
2
|
+
readonly viewBox: string;
|
|
3
|
+
readonly content: string;
|
|
4
|
+
}
|
|
5
|
+
/** 图标名 => SVG 片段。片段均为上游图标源码,不含用户输入。 */
|
|
6
|
+
export declare const TD_ICONS: Record<string, TDesignIconSource>;
|
|
7
|
+
/** 已注册的图标名,按字母序。 */
|
|
8
|
+
export declare const TD_ICON_NAMES: readonly string[];
|
package/index.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tdesign-ng/icons",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "TDesign icons for Angular",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"angular",
|
|
7
|
+
"tdesign",
|
|
8
|
+
"icon",
|
|
9
|
+
"icons",
|
|
10
|
+
"svg"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"author": "tdesign-ng contributors",
|
|
14
|
+
"homepage": "https://yuanyong129.github.io/tdesign-ng/",
|
|
15
|
+
"bugs": {
|
|
16
|
+
"url": "https://github.com/yuanyong129/tdesign-ng/issues"
|
|
17
|
+
},
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/yuanyong129/tdesign-ng.git",
|
|
21
|
+
"directory": "packages/icons"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"@angular/core": ">=19.0.0 <24.0.0"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"tslib": "^2.3.0"
|
|
28
|
+
},
|
|
29
|
+
"sideEffects": false,
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
},
|
|
33
|
+
"module": "fesm2022/tdesign-ng-icons.mjs",
|
|
34
|
+
"typings": "index.d.ts",
|
|
35
|
+
"exports": {
|
|
36
|
+
"./package.json": {
|
|
37
|
+
"default": "./package.json"
|
|
38
|
+
},
|
|
39
|
+
".": {
|
|
40
|
+
"types": "./index.d.ts",
|
|
41
|
+
"default": "./fesm2022/tdesign-ng-icons.mjs"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
6
44
|
}
|