@aurea-uds/icons

中文文档
0.62.1发布于 2026/11/08Apache-2.0CommonJS零依赖近 30 天下载 6092

O sprite de ícones do Phosphor (Regular e Fill) que a Aurea UDS desenha com , e a tabela de nomes do Carbon para o Phosphor. A atribuição está no NOTICE.

原始使用文档

@aurea-uds/icons

The icon sprite Aurea UDS draws from. The glyphs are Phosphor Icons, in the Regular and Fill weights; this package only puts them together in a single SVG sprite. Up to 0.12.4 they were IBM's Carbon Icons.

pnpm add @aurea-uds/icons

Copy dist/aurea-icons.svg to where your app serves static files and tell the provider where it is:

<AureaProvider spriteUrl="/aurea-icons.svg">

Markup outside React points straight to the symbol:

<svg class="icon" aria-hidden="true"><use href="/aurea-icons.svg#i-magnifying-glass"></use></svg>

The symbol id is i- followed by the Phosphor name exactly as Phosphor writes it: caret-down becomes #i-caret-down. The filled shape has the -fill suffix: #i-caret-down-fill. In React, it is <Icon name="caret-down" weight="fill" />; Aurea uses the filled shape on the selected item (the active tab, the current menu item) and in alerts.

Phosphor's brand logos (apple-logo and the other 78 with -logo in the name) are not included: a third party's trademark does not belong in an Apache-2.0 library.

Coming from Carbon

Every name changed. The carbon-para-phosphor.json table maps the 260 Carbon names that Aurea and the known apps used to the Phosphor name that replaces each one:

import tabela from "@aurea-uds/icons/carbon-para-phosphor.json" with {type: "json"};
tabela["chevron--down"]; // "caret-down"

Carbon's *--filled icons become the same name with weight="fill".

License

Apache-2.0 for this package. The glyphs are Phosphor Icons, under the MIT license — the copyright and permission notice it requires is in NOTICE, which is part of the published files.

版本与发布记录

@aurea-uds/icons 共发布 78 个版本,首次发布于 2026/07/31;过去 12 个月发布了 78 个版本。

版本发布日期距今
0.62.1latest2026/11/08今天
0.62.02026/11/08今天
0.61.02026/11/071 天前
0.59.02026/11/071 天前
0.56.02026/11/052 天前
0.54.12026/11/044 天前

关于 @aurea-uds/icons 的常见问题

@aurea-uds/icons 是什么?

O sprite de ícones do Phosphor (Regular e Fill) que a Aurea UDS desenha com , e a tabela de nomes do Carbon para o Phosphor. A atribuição está no NOTICE.

如何安装 @aurea-uds/icons?

在项目目录运行 npm install @aurea-uds/icons,或使用 pnpm add / yarn add / bun add。

@aurea-uds/icons 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/aurea-uds__icons 是否存在。

@aurea-uds/icons 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@aurea-uds/icons 可以商用吗?

@aurea-uds/icons 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@aurea-uds/icons 的下载量有多少?

根据 npm 官方下载统计,@aurea-uds/icons 在 2026/10/07 – 2026/11/05 这 30 天内被下载 6,092 次,日均约 203 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@aurea-uds/icons 还在维护吗?

最新版本 0.62.1 发布于 2026/11/08(今天);至今共发布 78 个版本,其中过去 12 个月发布了 78 个;首次发布于 2026/07/31。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。