@linkdesk/ui 0.2.18 → 0.2.22
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/dist/button/Button.d.ts +0 -19
- package/dist/context-menu/ContextMenu.d.ts +14 -4
- package/dist/hint-tip/hintAttrs.d.ts +29 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3193 -3129
- package/dist/keybinding-hint/KeybindingHint.d.ts +27 -0
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* KeybindingHint——**快捷键键帽**渲染件(04「悬停提示系统」件 1;用户 2026-09-27 拍板 ③
|
|
3
|
+
* 「统一到键帽,并顺带归一右键菜单」)。
|
|
4
|
+
*
|
|
5
|
+
* ── 为什么要有这个件(归一化缺口,设计详案 §一·1.5)──
|
|
6
|
+
* 拍板前全软件有**两种**快捷键长相:
|
|
7
|
+
* ① 右键菜单 = 等宽纯文本(`ContextMenu.css:92`:`--font-mono` + `opacity:.6`)
|
|
8
|
+
* ② 命令面板 = 键帽 `<kbd>`(`QuickPickHost.css:238`:`--kbd-bg`/`--kbd-border`)
|
|
9
|
+
* 提示条本该是**第三种**——拍板决定消灭它:**统一到 ② 键帽**,并把 ① 一起改过来。
|
|
10
|
+
* ⇒ 本件是「键帽」这一个长相的落点;菜单与提示条都消费它(⛔ 不再各写一份 CSS)。
|
|
11
|
+
*
|
|
12
|
+
* ── 输入契约(池层纪律)──
|
|
13
|
+
* 只吃**壳已格式化**的串(`"Ctrl+K Ctrl+T"`:空格分隔 chord、chord 内 `+` 连接——见
|
|
14
|
+
* `src/core/utils/formatKeyLabel.ts`)。本件**不做格式化**、不 import `src/core/*`
|
|
15
|
+
* (池是哑渲染器——`PoolZoneShell.tsx` 头注释「不 import 任何 @src/core/* 运行时模块」)。
|
|
16
|
+
*
|
|
17
|
+
* ── 保底 ──
|
|
18
|
+
* 空串 / 纯空白 ⇒ 返回 `null`(⛔ 不出空键帽壳——照 HintCard 保底④「不出空壳」)。
|
|
19
|
+
*/
|
|
20
|
+
interface KeybindingHintProps {
|
|
21
|
+
/** 壳已格式化的快捷键串(`"Ctrl+K Ctrl+T"`);chord 间空格,chord 内 `+` */
|
|
22
|
+
label: string;
|
|
23
|
+
/** 附加类名(调用方只做布局定位用——⛔ 不要在调用方重定义键帽外观) */
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
declare function KeybindingHint({ label, className }: KeybindingHintProps): import("react").JSX.Element | null;
|
|
27
|
+
export default KeybindingHint;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linkdesk/ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.22",
|
|
4
4
|
"description": "@linkdesk/ui——LinkDesk 共享 UI 组件的类型契约 + dev 解析体。L9 集中供给:组件代码与样式在运行时由壳池 vendor 单实例供给(壳改一处全生态跟随);npm i 装的是类型与本地解析体,插件源码不 import 本包 css(lint 腿 check-ui-css-import 判红)。版本号与壳同号锁步(E6#124 重锚)。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|