@downcity/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 +128 -2
- package/dist/chunk-23CDBVGX.js +13 -0
- package/dist/chunk-2BUJ7TVT.js +13 -0
- package/dist/chunk-2DWFGABM.js +24 -0
- package/dist/chunk-2TKTX3CU.js +26 -0
- package/dist/chunk-3FPF7LCI.js +13 -0
- package/dist/chunk-4UIJEWGF.js +23 -0
- package/dist/chunk-6GGYGTKE.js +13 -0
- package/dist/chunk-6RDGLI7R.js +13 -0
- package/dist/chunk-76UOULDL.js +27 -0
- package/dist/chunk-7H5NSSU6.js +13 -0
- package/dist/chunk-7UIG6EFZ.js +13 -0
- package/dist/chunk-BGO2END2.js +23 -0
- package/dist/chunk-CNJMWVEG.js +23 -0
- package/dist/chunk-DKPGA424.js +13 -0
- package/dist/chunk-DKZZG6QO.js +28 -0
- package/dist/chunk-HGNHV53V.js +25 -0
- package/dist/chunk-HWU63TFP.js +13 -0
- package/dist/chunk-HXOYIUQQ.js +24 -0
- package/dist/chunk-ILAFNOCW.js +16 -0
- package/dist/chunk-IQTKODNC.js +33 -0
- package/dist/chunk-IXCWDNK2.js +13 -0
- package/dist/chunk-K3DUWMQO.js +13 -0
- package/dist/chunk-KPDMGF4F.js +13 -0
- package/dist/chunk-KU34JGIO.js +31 -0
- package/dist/chunk-NBGN6WVE.js +24 -0
- package/dist/chunk-NDRETNEW.js +27 -0
- package/dist/chunk-NUT4AMSX.js +13 -0
- package/dist/chunk-NVOG4T3W.js +12 -0
- package/dist/chunk-O3KGMKUU.js +27 -0
- package/dist/chunk-OCZC6LVQ.js +29 -0
- package/dist/chunk-OKTJS2IX.js +57 -0
- package/dist/chunk-PDJIQEFH.js +27 -0
- package/dist/chunk-PFCSIXEJ.js +13 -0
- package/dist/chunk-R2IGXQRH.js +33 -0
- package/dist/chunk-R5Q73DLS.js +13 -0
- package/dist/chunk-RPUE7IHD.js +13 -0
- package/dist/chunk-RVFXW6ME.js +13 -0
- package/dist/chunk-RXYMPDOI.js +23 -0
- package/dist/chunk-S6ZGAMKH.js +25 -0
- package/dist/chunk-SGB2OQAT.js +13 -0
- package/dist/chunk-SXQXPUXP.js +97 -0
- package/dist/chunk-T6BSLNMN.js +54 -0
- package/dist/chunk-TMDEAPHD.js +24 -0
- package/dist/chunk-V3E6IXCE.js +24 -0
- package/dist/chunk-VWZK6FRQ.js +29 -0
- package/dist/chunk-WTAG3WKQ.js +13 -0
- package/dist/chunk-WUXNEKAA.js +13 -0
- package/dist/chunk-WWHMK4UP.js +154 -0
- package/dist/chunk-XV63DEGU.js +13 -0
- package/dist/chunk-ZLZMMRSY.js +13 -0
- package/dist/chunk-ZP2ZAJYJ.js +23 -0
- package/dist/chunk-ZY2G74T6.js +13 -0
- package/dist/definition-CueRRK0O.d.ts +111 -0
- package/dist/definitions/check.d.ts +7 -0
- package/dist/definitions/check.js +10 -0
- package/dist/definitions/chevron-down.d.ts +7 -0
- package/dist/definitions/chevron-down.js +10 -0
- package/dist/definitions/close.d.ts +7 -0
- package/dist/definitions/close.js +10 -0
- package/dist/definitions/copy.d.ts +7 -0
- package/dist/definitions/copy.js +10 -0
- package/dist/definitions/file.d.ts +7 -0
- package/dist/definitions/file.js +7 -0
- package/dist/definitions/folder.d.ts +7 -0
- package/dist/definitions/folder.js +7 -0
- package/dist/definitions/inbox.d.ts +7 -0
- package/dist/definitions/inbox.js +7 -0
- package/dist/definitions/loader.d.ts +7 -0
- package/dist/definitions/loader.js +9 -0
- package/dist/definitions/mail.d.ts +7 -0
- package/dist/definitions/mail.js +7 -0
- package/dist/definitions/memory.d.ts +7 -0
- package/dist/definitions/memory.js +7 -0
- package/dist/definitions/message.d.ts +7 -0
- package/dist/definitions/message.js +7 -0
- package/dist/definitions/messenger.d.ts +7 -0
- package/dist/definitions/messenger.js +7 -0
- package/dist/definitions/more.d.ts +7 -0
- package/dist/definitions/more.js +6 -0
- package/dist/definitions/plus.d.ts +7 -0
- package/dist/definitions/plus.js +7 -0
- package/dist/definitions/search.d.ts +7 -0
- package/dist/definitions/search.js +7 -0
- package/dist/definitions/session.d.ts +7 -0
- package/dist/definitions/session.js +8 -0
- package/dist/definitions/settings.d.ts +7 -0
- package/dist/definitions/settings.js +7 -0
- package/dist/definitions/skill.d.ts +7 -0
- package/dist/definitions/skill.js +7 -0
- package/dist/definitions/task-check.d.ts +7 -0
- package/dist/definitions/task-check.js +10 -0
- package/dist/definitions/task.d.ts +7 -0
- package/dist/definitions/task.js +7 -0
- package/dist/definitions/terminal.d.ts +7 -0
- package/dist/definitions/terminal.js +10 -0
- package/dist/definitions/web.d.ts +7 -0
- package/dist/definitions/web.js +7 -0
- package/dist/definitions/workspace.d.ts +7 -0
- package/dist/definitions/workspace.js +7 -0
- package/dist/index.d.ts +84 -0
- package/dist/index.js +51 -0
- package/dist/react/icons/check.d.ts +7 -0
- package/dist/react/icons/check.js +13 -0
- package/dist/react/icons/chevron-down.d.ts +7 -0
- package/dist/react/icons/chevron-down.js +13 -0
- package/dist/react/icons/close.d.ts +7 -0
- package/dist/react/icons/close.js +13 -0
- package/dist/react/icons/copy.d.ts +7 -0
- package/dist/react/icons/copy.js +13 -0
- package/dist/react/icons/file.d.ts +7 -0
- package/dist/react/icons/file.js +11 -0
- package/dist/react/icons/folder.d.ts +7 -0
- package/dist/react/icons/folder.js +11 -0
- package/dist/react/icons/inbox.d.ts +7 -0
- package/dist/react/icons/inbox.js +11 -0
- package/dist/react/icons/loader.d.ts +7 -0
- package/dist/react/icons/loader.js +12 -0
- package/dist/react/icons/mail.d.ts +7 -0
- package/dist/react/icons/mail.js +11 -0
- package/dist/react/icons/memory.d.ts +7 -0
- package/dist/react/icons/memory.js +11 -0
- package/dist/react/icons/message.d.ts +7 -0
- package/dist/react/icons/message.js +11 -0
- package/dist/react/icons/messenger.d.ts +7 -0
- package/dist/react/icons/messenger.js +11 -0
- package/dist/react/icons/more.d.ts +7 -0
- package/dist/react/icons/more.js +11 -0
- package/dist/react/icons/plus.d.ts +7 -0
- package/dist/react/icons/plus.js +11 -0
- package/dist/react/icons/search.d.ts +7 -0
- package/dist/react/icons/search.js +11 -0
- package/dist/react/icons/session.d.ts +7 -0
- package/dist/react/icons/session.js +11 -0
- package/dist/react/icons/settings.d.ts +7 -0
- package/dist/react/icons/settings.js +11 -0
- package/dist/react/icons/skill.d.ts +7 -0
- package/dist/react/icons/skill.js +11 -0
- package/dist/react/icons/task-check.d.ts +7 -0
- package/dist/react/icons/task-check.js +13 -0
- package/dist/react/icons/task.d.ts +7 -0
- package/dist/react/icons/task.js +11 -0
- package/dist/react/icons/terminal.d.ts +7 -0
- package/dist/react/icons/terminal.js +13 -0
- package/dist/react/icons/web.d.ts +7 -0
- package/dist/react/icons/web.js +11 -0
- package/dist/react/icons/workspace.d.ts +7 -0
- package/dist/react/icons/workspace.js +11 -0
- package/dist/react/index.d.ts +26 -0
- package/dist/react/index.js +123 -0
- package/dist/react-D-Ingc4F.d.ts +29 -0
- package/dist/registry.d.ts +7 -0
- package/dist/registry.js +83 -0
- package/dist/static/check-layered.svg +1 -0
- package/dist/static/check.svg +1 -0
- package/dist/static/chevron-down-layered.svg +1 -0
- package/dist/static/chevron-down.svg +1 -0
- package/dist/static/close-layered.svg +1 -0
- package/dist/static/close.svg +1 -0
- package/dist/static/copy-layered.svg +1 -0
- package/dist/static/copy.svg +1 -0
- package/dist/static/file-layered.svg +1 -0
- package/dist/static/file.svg +1 -0
- package/dist/static/folder-layered.svg +1 -0
- package/dist/static/folder.svg +1 -0
- package/dist/static/inbox-layered.svg +1 -0
- package/dist/static/inbox.svg +1 -0
- package/dist/static/loader-layered.svg +1 -0
- package/dist/static/loader.svg +1 -0
- package/dist/static/mail-layered.svg +1 -0
- package/dist/static/mail.svg +1 -0
- package/dist/static/memory-layered.svg +1 -0
- package/dist/static/memory.svg +1 -0
- package/dist/static/message-layered.svg +1 -0
- package/dist/static/message.svg +1 -0
- package/dist/static/messenger-layered.svg +1 -0
- package/dist/static/messenger.svg +1 -0
- package/dist/static/more-layered.svg +1 -0
- package/dist/static/more.svg +1 -0
- package/dist/static/plus-layered.svg +1 -0
- package/dist/static/plus.svg +1 -0
- package/dist/static/search-layered.svg +1 -0
- package/dist/static/search.svg +1 -0
- package/dist/static/session-layered.svg +1 -0
- package/dist/static/session.svg +1 -0
- package/dist/static/settings-layered.svg +1 -0
- package/dist/static/settings.svg +1 -0
- package/dist/static/skill-layered.svg +1 -0
- package/dist/static/skill.svg +1 -0
- package/dist/static/task-check-layered.svg +1 -0
- package/dist/static/task-check.svg +1 -0
- package/dist/static/task-layered.svg +1 -0
- package/dist/static/task.svg +1 -0
- package/dist/static/terminal-layered.svg +1 -0
- package/dist/static/terminal.svg +1 -0
- package/dist/static/web-layered.svg +1 -0
- package/dist/static/web.svg +1 -0
- package/dist/static/workspace-layered.svg +1 -0
- package/dist/static/workspace.svg +1 -0
- package/package.json +58 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Downcity contributors
|
|
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,129 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @downcity/icons
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
已补齐 **Navbar 10个入口+更多/新增两个操作符号**:message、workspace、inbox(通知)、task、skill、messenger、memory、web、mail、settings;more/plus为合理单色例外。沿用用户认可的**一条连续主轮廓+一块内嵌色面**,彩色线重1.25,不加文字线、白亮线、渐变或阴影。文件夹/搜索/文件等前五图保留。HTML首屏展示完整Navbar、14/16/24/32px和复用公共 UI 控件的排列样例,点击只选择,不连接真实业务。生产导航未替换,新增图形仍待审美验收。[规范v1](./docs/design-spec-v1.md)顶部记录当前方向。
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
import { FolderIcon, SearchIcon, MessageIcon } from '@downcity/icons/react';
|
|
7
|
+
<FolderIcon className="size-4" />
|
|
8
|
+
<SearchIcon variant="layered" style={{color:'#557ea4',width:24,height:24}} />
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
静态线面组消费唯一`static_tokens`:24网格、Outline1.75、彩色轮廓color_contour1.25。色面沿用core的front角色,可局部覆盖--icon-front,没有另建材质引擎。预览深浅自动适配currentColor,并在浅底覆盖front保证功能色面可辨;自定义色不保证任意背景合格。`motion_enabled:false`不分配动作时钟。Folder历史open暂无第二姿态。旧workspace/task/mail故事动作撤下,Session/Copy等仍有资源和动作测试,不宣称全库已统一。
|
|
12
|
+
|
|
13
|
+
图标默认单色、静止、currentColor;Navbar与前五枚线面图的`variant="layered"`无需defs。其余历史材质研究仍使用有限渐变/滤镜资源。React通过useId产生文档唯一且SSR稳定的渐变/滤镜ID;服务端和客户端应使用相同组件树与identifierPrefix。静态`get_static_svg(...,{id_prefix:"document_unique_prefix"})`可显式指定安全唯一前缀;缺省模块递增(跨多个独立渲染进程合并时必须自行指定)。无外部资源或任意markup/URL注入。所有静态资源构建使用确定前缀。当前workspace是资源工具箱,不再沿用已撤回的六边形品牌式母版。新静态图全部使用24网格。
|
|
14
|
+
|
|
15
|
+
本轮规则见`docs/design-spec-v1.md`,实施记录见工作区`reports/icons-navbar-line-plane.md`。以下folder/mail/inbox相关段落是历史研究API与验证说明,不代表当前母版方向。未包含Kubai图稿、工具、Skill或规则文件。
|
|
16
|
+
|
|
17
|
+
## React
|
|
18
|
+
|
|
19
|
+
```tsx
|
|
20
|
+
import { FolderIcon } from "@downcity/icons/react/folder";
|
|
21
|
+
import { CopyIcon, LoaderIcon } from "@downcity/icons/react";
|
|
22
|
+
|
|
23
|
+
<FolderIcon className="size-4" />
|
|
24
|
+
<FolderIcon className="size-6" variant="layered" />
|
|
25
|
+
<FolderIcon motion="auto" active={hovered || focus_visible} state="rest" />
|
|
26
|
+
<CopyIcon motion="auto" play_key={revision} />
|
|
27
|
+
<LoaderIcon motion="auto" running={pending} />
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
- 首批:Folder、File、Inbox、Message、TaskCheck、Terminal、Search、Copy、Check、ChevronDown、Close、Loader。
|
|
31
|
+
- 全部12图支持`variant="layered"`:后层色、边界、纸张、内容线、前层色、亮边由currentColor派生。实体面不透明,材质细边独立校准;outline保持同族比例,全部currentColor/no-fill。小符号只用双色脊线,不硬贴纸张。
|
|
32
|
+
- `motion`默认off;auto尊重reduced-motion。全部12都有动作:纸页轻展、气泡展开、勾线重绘、光标一次输入、镜头轻扫、关闭两笔收合等。图标不写入业务事实。
|
|
33
|
+
- 父按钮/行拥有 hover、focus-visible 与业务状态。SVG 不可聚焦;`active` 为 true 时显示交互目标,false 时回到基础姿态。
|
|
34
|
+
- Folder 的 `state="open"` 是持续展开姿态;auto 模式平滑进入,off 立即呈现。
|
|
35
|
+
- `play_key` 改变才播放一次,首次挂载不播放;显式提供 `active` 时忽略 play_key。单次播放结束回到基础姿态,不产生业务成功事件。
|
|
36
|
+
- Loader 仅 running + auto + 可见 + 非 reduced-motion 时持续旋转。没有内置文字状态,消费方必须提供。
|
|
37
|
+
- 无 title 默认装饰性隐藏;独立图标可用 title/aria-label 命名。有名称的按钮内不要重复播报。
|
|
38
|
+
- 允许标准 SVG `className`/`style`/`aria-*` 与 ref,不添加 wrapper。父控件 CSS 决定实际尺寸与点击面积。不要同时应用 animate-spin。
|
|
39
|
+
|
|
40
|
+
## 静态与 SSR
|
|
41
|
+
|
|
42
|
+
```ts
|
|
43
|
+
import { get_static_svg } from "@downcity/icons";
|
|
44
|
+
import { folder_definition } from "@downcity/icons/definitions/folder";
|
|
45
|
+
const svg = get_static_svg(folder_definition, { size: 24, state: "open" });
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
核心不依赖 React/DOM;React SSR 使用同一纯几何求值,不在 render 时读取 window。静态资源通过 `@downcity/icons/static/folder.svg` 等入口导入,构建器负责 URL 处理。材质图形使用有限白名单defs/filter;多实例通过独立安全前缀避免ID冲突,不接受任意资源。
|
|
49
|
+
|
|
50
|
+
动态场景显式导入 `@downcity/icons/registry`,`resolve_icon(name)` 只匹配当前registry中的canonical ID,未知名字稳定回退 message。不读取任意路径、URL 或旧库名称。常规组件不导入 registry;逐图标和具名导入均可 tree-shaking。
|
|
51
|
+
|
|
52
|
+
## 节奏与形变
|
|
53
|
+
|
|
54
|
+
`motion_spec` 是有限的纯数据配置;时钟归 React 或调校台,几何函数不读时间。
|
|
55
|
+
|
|
56
|
+
```tsx
|
|
57
|
+
import { default_motion } from '@downcity/icons';
|
|
58
|
+
import type { MotionSpec } from '@downcity/icons';
|
|
59
|
+
import { folder_definition } from '@downcity/icons/definitions/folder';
|
|
60
|
+
import { FolderIcon } from '@downcity/icons/react/folder';
|
|
61
|
+
|
|
62
|
+
const folder_motion: MotionSpec = {
|
|
63
|
+
...(folder_definition.motion ?? default_motion),
|
|
64
|
+
amplitude: 0.8, // 实验覆盖;默认无需调参。
|
|
65
|
+
tracks: {},
|
|
66
|
+
};
|
|
67
|
+
<FolderIcon variant="layered" motion="auto" active={hovered_or_focused}
|
|
68
|
+
motion_spec={folder_motion} />
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
- `duration`:单程 80–2000ms。单次动作去、回两程,受控反向从当前线性时间沿原路径返回,不重新起一条缓动曲线。Loader 默认仍为一秒一周,`duration` 控制它的周长时间;持续相位不应用部件缓动。
|
|
72
|
+
- `cubic_bezier`:x1/y1/x2/y2均限0–1。时间曲线不越界;几何层有极小有界settle,并不开放任意弹性曲线。首批共享icon_tokens.motion.curve。
|
|
73
|
+
- `amplitude`:0–1.5局部几何力度。Folder打开、File轻展、Inbox进入、Message展开、Copy分离、Search轻扫、Terminal光标、Close开合和Check/Task绘入分别校准;Chevron方向/Loader旋转相位不受位移力度控制。
|
|
74
|
+
- `tracks`:back/content/front/detail 的可选独立时段,`0 ≤ start < end ≤ 1`,缺省全程。先从线性时间归一化该时段,再应用贝塞尔。只有定义中参与形变的几何才运动,固定背板不因为时段变化而漂移。
|
|
75
|
+
|
|
76
|
+
母题:**交到手里的事,都有回应。** 这是依据持续工作/任务到文件/有界委派的产品事实所作的原创解释,不是官方居民设定。共同节奏640ms:短准备→行动→部件跟随→安定,阶段内曲线[.32,0,.2,1];阶段边界由`icon_tokens.motion.story`共用。Folder先松口再露资料,Inbox先悬停再接住,Message先听再回应、文字随后。File页脚/Copy背页固定。不是12种独立抖动;符号只保留轻微活力。Loader仍1000ms线性。
|
|
77
|
+
|
|
78
|
+
纯入口:`evaluate_motion(spec, linear_time)`返回部件线性`times`、已验证`curve`、全程/轨道姿态和力度。故事几何从times进入阶段,避免二次时间缓动;有限余韵属于局部几何,不放宽公开贝塞尔0–1边界。`cubic_bezier_progress(linear_time, curve)` 为曲线求值;`validate_motion(spec)` 检查有限协议;`evaluate_icon(definition, linear_time, variant, motion_spec)` 返回同源节点。静态与 React 不维护两套运动。
|
|
79
|
+
|
|
80
|
+
```ts
|
|
81
|
+
get_static_svg(folder_definition, {
|
|
82
|
+
variant: 'layered', progress: 0.5, motion_spec: folder_motion,
|
|
83
|
+
});
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
静态 `progress` 指线性时间,缺省取 state 的静止/展开姿态;显式进度优先。React SSR 首帧、静态帧、HTML 对照都经过同一求值。
|
|
87
|
+
|
|
88
|
+
## 构建与验收
|
|
89
|
+
|
|
90
|
+
在公开仓库根目录使用 Node.js 24.22.3+ 和 pnpm 10.34.9,先安装锁定依赖,再构建图标包与独立预览:
|
|
91
|
+
|
|
92
|
+
```sh
|
|
93
|
+
pnpm install --frozen-lockfile
|
|
94
|
+
pnpm --filter @downcity/icons build
|
|
95
|
+
pnpm --filter @downcity/icons typecheck
|
|
96
|
+
pnpm --filter @downcity/icons test
|
|
97
|
+
pnpm --filter @downcity/icons preview:build
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
独立预览生成于 `packages/icons/.preview/index.html`,脚本与样式内嵌为单文件,可以直接双击打开;不需要 HTTP 服务或放宽浏览器文件访问策略。预览直接使用公开仓库中 `@downcity/ui` 的 Button、Item、DropdownMenu 源码及共享主题样式,Tailwind 由本包声明的开发依赖编译,图标通过编译后的 package exports 导入。预览构建和类型检查只需公开仓库及其锁定依赖。
|
|
101
|
+
|
|
102
|
+
`tests/browser_check.mjs` 可配合已安装的 playwright-core 与 Chrome 运行(不下载):
|
|
103
|
+
|
|
104
|
+
```sh
|
|
105
|
+
PLAYWRIGHT_MODULE=file:///absolute/path/to/playwright-core/index.mjs node tests/browser_check.mjs
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
浏览器检查和截图写入工作区 `reports/icons-evidence/`,本轮使用 `workspace-hex-` 前缀,不覆盖旧证据。无需浏览器的测试通过 `test` 运行。此包不引入第三方动画库,也不包含 Desktop 业务数据。
|
|
109
|
+
|
|
110
|
+
## 上一轮整组设计记录(历史,三图当前修订优先)
|
|
111
|
+
|
|
112
|
+
原创定义位于`src/definitions/`。规范见[设计语言](docs/design-language.md):24网格;outline线重1.75/1.5,材质细边.85、内容.95、亮边.65;物体最多5个path,必要短亮边只在上表面/折角/盘沿/镜面。无渐变/defs/filter,SSR无需随机ID;需要支持color-mix的现代浏览器。
|
|
113
|
+
|
|
114
|
+
最小语义token:
|
|
115
|
+
- 体系:`icon_tokens.stroke.boundary/detail`、`icon_tokens.motion.interaction_duration/running_duration/curve`。实现与预览共用,CSS不复制时序。
|
|
116
|
+
- 表面:`IconPaint`的back/edge/paper/ink/front/highlight,对应`--icon-back`、`--icon-edge`、`--icon-paper`、`--icon-ink`、`--icon-front`、`--icon-highlight`局部覆盖,默认全部从currentColor混黑白派生。亮暗保持物体明度关系;极浅强调色会削弱层次,推荐中等明度色。
|
|
117
|
+
- 私有几何:锚点、控制点和位移不成为每图消费参数。当前不新增场景preset。
|
|
118
|
+
|
|
119
|
+
```tsx
|
|
120
|
+
import { icon_tokens, default_motion } from '@downcity/icons';
|
|
121
|
+
const local_motion = { ...default_motion, duration: icon_tokens.motion.interaction_duration };
|
|
122
|
+
<FolderIcon motion_spec={local_motion} style={{ color: 'var(--foreground)' }} />
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
HTML首屏是12个72px真实UI Button、32px图标,点击一次播放,再点从头重播。全部标点击播放,Loader演示一周后停止;reduced-motion切换静止与50%动作帧,不冒充业务成功。
|
|
126
|
+
|
|
127
|
+
次级区保留24px整组、12/14/16/20/24px、真实公共 UI 控件、三物体共时时间轴、五帧和token说明。结构/源码/高级草稿按需展开,核心纯入口直接生成图层与JSON,源码构建时同源读取。部件隐藏/展开、曲线、时长、力度、track编辑仍可用,File折角和页顶也有动作。草稿仅本地未落盘;reduced-motion、hidden、切图、重置、卸载均清理RAF。
|
|
128
|
+
|
|
129
|
+
MIT。品牌、用户资源、图表与系统应用图标不在此包的原创替换范围。当前样例不是用户视觉验收通过的声明。
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
create_icon
|
|
3
|
+
} from "./chunk-WWHMK4UP.js";
|
|
4
|
+
import {
|
|
5
|
+
chevron_down_definition
|
|
6
|
+
} from "./chunk-NDRETNEW.js";
|
|
7
|
+
|
|
8
|
+
// src/react/icons/chevron-down.tsx
|
|
9
|
+
var ChevronDownIcon = create_icon(chevron_down_definition);
|
|
10
|
+
|
|
11
|
+
export {
|
|
12
|
+
ChevronDownIcon
|
|
13
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
static_tokens
|
|
3
|
+
} from "./chunk-O3KGMKUU.js";
|
|
4
|
+
|
|
5
|
+
// src/definitions/file.ts
|
|
6
|
+
var file_definition = {
|
|
7
|
+
id: "file",
|
|
8
|
+
label: "\u6587\u4EF6",
|
|
9
|
+
layered: true,
|
|
10
|
+
materials: "core",
|
|
11
|
+
motion_enabled: false,
|
|
12
|
+
draw: ({ variant }) => {
|
|
13
|
+
const page = "M7 3.5 H13.5 L19 9 V18.5 Q19 20.5 17 20.5 H7 Q5 20.5 5 18.5 V5.5 Q5 3.5 7 3.5 Z";
|
|
14
|
+
if (variant === "outline") return [{ key: "page", part: "front", tag: "path", d: page, stroke_width: static_tokens.stroke.outline }];
|
|
15
|
+
return [
|
|
16
|
+
{ key: "plane", part: "content", tag: "path", d: "M8.25 10.5 H15.75 Q17 10.5 17 11.75 V17.25 Q17 18.5 15.75 18.5 H8.25 Q7 18.5 7 17.25 V11.75 Q7 10.5 8.25 10.5 Z", fill: "front", no_stroke: true },
|
|
17
|
+
{ key: "page", part: "front", tag: "path", d: page, stroke: "currentColor", stroke_width: static_tokens.stroke.color_contour }
|
|
18
|
+
];
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
file_definition
|
|
24
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
story_motion
|
|
3
|
+
} from "./chunk-HXOYIUQQ.js";
|
|
4
|
+
import {
|
|
5
|
+
symbol_nodes
|
|
6
|
+
} from "./chunk-NBGN6WVE.js";
|
|
7
|
+
import {
|
|
8
|
+
default_motion
|
|
9
|
+
} from "./chunk-T6BSLNMN.js";
|
|
10
|
+
|
|
11
|
+
// src/definitions/check.ts
|
|
12
|
+
var check_definition = {
|
|
13
|
+
id: "check",
|
|
14
|
+
label: "\u786E\u8BA4",
|
|
15
|
+
layered: true,
|
|
16
|
+
motion: default_motion,
|
|
17
|
+
draw: ({ times, amplitude, curve, variant }) => {
|
|
18
|
+
const story = story_motion(times.front, amplitude, curve);
|
|
19
|
+
const trace = 1 - Math.min(1, story.prepare) * 0.7 - Math.min(1, Math.max(0, story.action - story.follow)) * 0.55 + story.settle * 0.015;
|
|
20
|
+
return symbol_nodes("tick", `M5.5 12 L9.5 16 L${9.5 + trace * 9} ${16 - trace * 9}`, variant);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
check_definition
|
|
26
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
static_tokens
|
|
3
|
+
} from "./chunk-O3KGMKUU.js";
|
|
4
|
+
|
|
5
|
+
// src/definitions/mail.ts
|
|
6
|
+
var mail_definition = {
|
|
7
|
+
id: "mail",
|
|
8
|
+
label: "\u90AE\u4EF6",
|
|
9
|
+
layered: true,
|
|
10
|
+
materials: "core",
|
|
11
|
+
motion_enabled: false,
|
|
12
|
+
draw: ({ variant }) => {
|
|
13
|
+
const outline = variant === "outline";
|
|
14
|
+
return [
|
|
15
|
+
{ key: "front", part: "front", tag: "path", d: "M6 7.5 H18 Q19 7.5 18.2 8.25 L12.8 13 Q12 13.7 11.2 13 L5.8 8.25 Q5 7.5 6 7.5 Z", ...outline ? { stroke_width: static_tokens.stroke.detail } : { fill: "front", no_stroke: true } },
|
|
16
|
+
{ key: "contour", part: "back", tag: "path", d: "M5 5.5 H19 Q21 5.5 21 7.5 V16.5 Q21 18.5 19 18.5 H5 Q3 18.5 3 16.5 V7.5 Q3 5.5 5 5.5 Z", stroke: "currentColor", stroke_width: outline ? static_tokens.stroke.outline : static_tokens.stroke.color_contour }
|
|
17
|
+
];
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
mail_definition
|
|
23
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
create_icon
|
|
3
|
+
} from "./chunk-WWHMK4UP.js";
|
|
4
|
+
import {
|
|
5
|
+
task_check_definition
|
|
6
|
+
} from "./chunk-R2IGXQRH.js";
|
|
7
|
+
|
|
8
|
+
// src/react/icons/task-check.tsx
|
|
9
|
+
var TaskCheckIcon = create_icon(task_check_definition);
|
|
10
|
+
|
|
11
|
+
export {
|
|
12
|
+
TaskCheckIcon
|
|
13
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
story_motion
|
|
3
|
+
} from "./chunk-HXOYIUQQ.js";
|
|
4
|
+
import {
|
|
5
|
+
symbol_nodes
|
|
6
|
+
} from "./chunk-NBGN6WVE.js";
|
|
7
|
+
import {
|
|
8
|
+
default_motion
|
|
9
|
+
} from "./chunk-T6BSLNMN.js";
|
|
10
|
+
|
|
11
|
+
// src/definitions/close.ts
|
|
12
|
+
var close_definition = {
|
|
13
|
+
id: "close",
|
|
14
|
+
label: "\u5173\u95ED",
|
|
15
|
+
layered: true,
|
|
16
|
+
motion: default_motion,
|
|
17
|
+
draw: ({ times, amplitude, curve, variant }) => {
|
|
18
|
+
const story = story_motion(times.front, amplitude, curve);
|
|
19
|
+
const close = -story.prepare * 0.2 + story.action - story.follow + story.settle * 0.06;
|
|
20
|
+
const x = 5.5 + close * 0.65, y = 5.5 - close * 1.6;
|
|
21
|
+
return symbol_nodes("cross", `M${12 - x} ${12 - y} L${12 + x} ${12 + y} M${12 + x} ${12 - y} L${12 - x} ${12 + y}`, variant);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
close_definition
|
|
27
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
static_tokens
|
|
3
|
+
} from "./chunk-O3KGMKUU.js";
|
|
4
|
+
|
|
5
|
+
// src/definitions/messenger.ts
|
|
6
|
+
var messenger_definition = {
|
|
7
|
+
id: "messenger",
|
|
8
|
+
label: "\u901A\u8BAF",
|
|
9
|
+
layered: true,
|
|
10
|
+
materials: "core",
|
|
11
|
+
motion_enabled: false,
|
|
12
|
+
draw: ({ variant }) => {
|
|
13
|
+
const outline = variant === "outline";
|
|
14
|
+
return [
|
|
15
|
+
{ key: "front", part: "front", tag: "path", d: "M9.25 10 H14.75 Q16 10 16 11.25 V15.75 Q16 17 14.75 17 H9.25 Q8 17 8 15.75 V11.25 Q8 10 9.25 10 Z", ...outline ? { stroke_width: static_tokens.stroke.detail } : { fill: "front", no_stroke: true } },
|
|
16
|
+
{ key: "contour", part: "back", tag: "path", d: "M8 7.5 V3.5 H10 V7.5 H16 Q18 7.5 18 9.5 V18.5 Q18 20.5 16 20.5 H8 Q6 20.5 6 18.5 V9.5 Q6 7.5 8 7.5 Z", stroke: "currentColor", stroke_width: outline ? static_tokens.stroke.outline : static_tokens.stroke.color_contour }
|
|
17
|
+
];
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
messenger_definition
|
|
23
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
static_tokens
|
|
3
|
+
} from "./chunk-O3KGMKUU.js";
|
|
4
|
+
|
|
5
|
+
// src/definitions/web.ts
|
|
6
|
+
var web_definition = {
|
|
7
|
+
id: "web",
|
|
8
|
+
label: "\u6D4F\u89C8\u5668",
|
|
9
|
+
layered: true,
|
|
10
|
+
materials: "core",
|
|
11
|
+
motion_enabled: false,
|
|
12
|
+
draw: ({ variant }) => {
|
|
13
|
+
const outline = variant === "outline";
|
|
14
|
+
return [
|
|
15
|
+
{ key: "front", part: "front", tag: "path", d: "M6.25 9.5 H17.75 Q19 9.5 19 10.75 V16.25 Q19 17.5 17.75 17.5 H6.25 Q5 17.5 5 16.25 V10.75 Q5 9.5 6.25 9.5 Z", ...outline ? { stroke_width: static_tokens.stroke.detail } : { fill: "front", no_stroke: true } },
|
|
16
|
+
{ key: "contour", part: "back", tag: "path", d: "M5 4.5 H19 Q21 4.5 21 6.5 V17.5 Q21 19.5 19 19.5 H5 Q3 19.5 3 17.5 V6.5 Q3 4.5 5 4.5 Z", stroke: "currentColor", stroke_width: outline ? static_tokens.stroke.outline : static_tokens.stroke.color_contour }
|
|
17
|
+
];
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
web_definition
|
|
23
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import {
|
|
2
|
+
static_tokens
|
|
3
|
+
} from "./chunk-O3KGMKUU.js";
|
|
4
|
+
|
|
5
|
+
// src/definitions/message.ts
|
|
6
|
+
var message_definition = {
|
|
7
|
+
id: "message",
|
|
8
|
+
label: "\u5BF9\u8BDD",
|
|
9
|
+
layered: true,
|
|
10
|
+
materials: "core",
|
|
11
|
+
motion_enabled: false,
|
|
12
|
+
draw: ({ variant }) => {
|
|
13
|
+
const outline = variant === "outline";
|
|
14
|
+
const body = "M5 5.5 H19 Q21 5.5 21 7.5 V14.5 Q21 16.5 19 16.5 H10 L6 19.5 V16.5 H5 Q3 16.5 3 14.5 V7.5 Q3 5.5 5 5.5 Z";
|
|
15
|
+
if (outline) return [
|
|
16
|
+
{ key: "body", part: "front", tag: "path", d: body, stroke_width: static_tokens.stroke.outline },
|
|
17
|
+
{ key: "text", part: "content", tag: "path", d: "M7.5 9.5 H16.5 M7.5 12.5 H13.5", stroke_width: static_tokens.stroke.detail }
|
|
18
|
+
];
|
|
19
|
+
return [
|
|
20
|
+
{ key: "plane", part: "content", tag: "path", d: "M6.25 7.5 H17.75 Q19 7.5 19 8.75 V13.25 Q19 14.5 17.75 14.5 H6.25 Q5 14.5 5 13.25 V8.75 Q5 7.5 6.25 7.5 Z", fill: "front", no_stroke: true },
|
|
21
|
+
{ key: "body", part: "front", tag: "path", d: body, stroke: "currentColor", stroke_width: static_tokens.stroke.color_contour }
|
|
22
|
+
];
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
message_definition
|
|
28
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
static_tokens
|
|
3
|
+
} from "./chunk-O3KGMKUU.js";
|
|
4
|
+
|
|
5
|
+
// src/definitions/skill.ts
|
|
6
|
+
var skill_definition = {
|
|
7
|
+
id: "skill",
|
|
8
|
+
label: "\u6280\u80FD",
|
|
9
|
+
layered: true,
|
|
10
|
+
materials: "core",
|
|
11
|
+
motion_enabled: false,
|
|
12
|
+
draw: ({ variant }) => {
|
|
13
|
+
const outline = variant === "outline";
|
|
14
|
+
const contour = "M4.606 12.606 L12.606 4.606 A4.8 4.8 0 0 1 19.394 11.394 L11.394 19.394 A4.8 4.8 0 0 1 4.606 12.606 Z";
|
|
15
|
+
const front = "M6.02 14.02 L10.02 10.02 L13.98 13.98 L9.98 17.98 A2.8 2.8 0 0 1 6.02 14.02 Z";
|
|
16
|
+
return [
|
|
17
|
+
{ key: "front", part: "front", tag: "path", d: front, ...outline ? { stroke_width: static_tokens.stroke.outline } : { fill: "front", no_stroke: true } },
|
|
18
|
+
{ key: "contour", part: "back", tag: "path", d: contour, stroke: "currentColor", stroke_width: outline ? static_tokens.stroke.outline : static_tokens.stroke.color_contour }
|
|
19
|
+
];
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export {
|
|
24
|
+
skill_definition
|
|
25
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
cubic_bezier_progress
|
|
3
|
+
} from "./chunk-T6BSLNMN.js";
|
|
4
|
+
import {
|
|
5
|
+
icon_tokens
|
|
6
|
+
} from "./chunk-O3KGMKUU.js";
|
|
7
|
+
|
|
8
|
+
// src/core/story_motion.ts
|
|
9
|
+
function phase(time, start, end, curve) {
|
|
10
|
+
return cubic_bezier_progress(Math.max(0, Math.min(1, (time - start) / (end - start))), curve);
|
|
11
|
+
}
|
|
12
|
+
function story_motion(time, amplitude, curve) {
|
|
13
|
+
const stages = icon_tokens.motion.story;
|
|
14
|
+
const prepare = Math.sin(phase(time, 0, stages.prepare_end, curve) * Math.PI) * amplitude;
|
|
15
|
+
const action = phase(time, stages.action_start, stages.action_end, curve) * amplitude;
|
|
16
|
+
const follow = phase(time, stages.follow_start, stages.follow_end, curve) * amplitude;
|
|
17
|
+
const settle_time = Math.max(0, Math.min(1, (time - stages.action_end) / (1 - stages.action_end)));
|
|
18
|
+
const settle = Math.sin(settle_time * Math.PI * 2) * (1 - settle_time) * amplitude;
|
|
19
|
+
return { prepare, action, follow, settle };
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
story_motion
|
|
24
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
static_tokens
|
|
3
|
+
} from "./chunk-O3KGMKUU.js";
|
|
4
|
+
|
|
5
|
+
// src/definitions/plus.ts
|
|
6
|
+
var plus_definition = {
|
|
7
|
+
id: "plus",
|
|
8
|
+
label: "\u65B0\u589E",
|
|
9
|
+
layered: true,
|
|
10
|
+
motion_enabled: false,
|
|
11
|
+
draw: ({ variant }) => [{ key: "mark", part: "front", tag: "path", d: "M12 5 V19 M5 12 H19", stroke: "currentColor", stroke_width: variant === "outline" ? static_tokens.stroke.outline : static_tokens.stroke.color_contour }]
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
plus_definition
|
|
16
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
story_motion
|
|
3
|
+
} from "./chunk-HXOYIUQQ.js";
|
|
4
|
+
import {
|
|
5
|
+
detail_style,
|
|
6
|
+
surface_style
|
|
7
|
+
} from "./chunk-NBGN6WVE.js";
|
|
8
|
+
import {
|
|
9
|
+
default_motion
|
|
10
|
+
} from "./chunk-T6BSLNMN.js";
|
|
11
|
+
|
|
12
|
+
// src/definitions/terminal.ts
|
|
13
|
+
var terminal_definition = {
|
|
14
|
+
id: "terminal",
|
|
15
|
+
label: "\u7EC8\u7AEF",
|
|
16
|
+
layered: true,
|
|
17
|
+
motion: default_motion,
|
|
18
|
+
draw: ({ times, amplitude, curve, variant }) => {
|
|
19
|
+
const story = story_motion(times.content, amplitude, curve);
|
|
20
|
+
const input = story.follow;
|
|
21
|
+
const prompt = -story.prepare * 0.25 + story.action * 0.45;
|
|
22
|
+
return [
|
|
23
|
+
{ key: "frame", part: "back", tag: "path", d: "M5 4.75 H19 Q21 4.75 21 6.75 V17.25 Q21 19.25 19 19.25 H5 Q3 19.25 3 17.25 V6.75 Q3 4.75 5 4.75 Z", ...surface_style(variant, "back") },
|
|
24
|
+
{ key: "prompt", part: "content", tag: "path", d: `M7 9 L${10 + prompt} 12 L7 15`, ...detail_style(variant), stroke: variant === "layered" ? "paper" : "currentColor" },
|
|
25
|
+
{ key: "cursor", part: "content", tag: "path", d: `M${12.5 + input * 0.9} 15 H${16 + input * 1.2}`, ...detail_style(variant), stroke: variant === "layered" ? "paper" : "currentColor" },
|
|
26
|
+
...variant === "layered" ? [{ key: "top-light", part: "detail", tag: "path", d: "M5.5 5.7 H18.5", ...detail_style(variant, "highlight"), opacity: 0.6 }] : []
|
|
27
|
+
];
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
terminal_definition
|
|
33
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
story_motion
|
|
3
|
+
} from "./chunk-HXOYIUQQ.js";
|
|
4
|
+
import {
|
|
5
|
+
detail_style,
|
|
6
|
+
surface_style
|
|
7
|
+
} from "./chunk-NBGN6WVE.js";
|
|
8
|
+
import {
|
|
9
|
+
default_motion
|
|
10
|
+
} from "./chunk-T6BSLNMN.js";
|
|
11
|
+
|
|
12
|
+
// src/definitions/copy.ts
|
|
13
|
+
var copy_definition = {
|
|
14
|
+
id: "copy",
|
|
15
|
+
label: "\u590D\u5236",
|
|
16
|
+
layered: true,
|
|
17
|
+
motion: default_motion,
|
|
18
|
+
draw: ({ times, amplitude, curve, variant }) => {
|
|
19
|
+
const story = story_motion(times.front, amplitude, curve);
|
|
20
|
+
const shift = +(-story.prepare * 0.22 + story.action * 0.72 + story.settle * 0.04).toFixed(3);
|
|
21
|
+
return [
|
|
22
|
+
{ key: "back", part: "back", tag: "path", d: variant === "outline" ? "M8 6 V5 Q8 3.5 9.5 3.5 H18 Q19.5 3.5 19.5 5 V13.5 Q19.5 15 18 15 H17" : "M9.5 3.5 H18 Q19.5 3.5 19.5 5 V13.5 Q19.5 15 18 15 H9.5 Q8 15 8 13.5 V5 Q8 3.5 9.5 3.5 Z", ...surface_style(variant, "back") },
|
|
23
|
+
{ key: "front", part: "front", tag: "path", d: `M${6 - shift} ${8 + shift} H${13.5 - shift} Q${15 - shift} ${8 + shift} ${15 - shift} ${9.5 + shift} V${18.5 + shift} Q${15 - shift} ${20 + shift} ${13.5 - shift} ${20 + shift} H${6 - shift} Q${4.5 - shift} ${20 + shift} ${4.5 - shift} ${18.5 + shift} V${9.5 + shift} Q${4.5 - shift} ${8 + shift} ${6 - shift} ${8 + shift} Z`, ...surface_style(variant, "paper") },
|
|
24
|
+
...variant === "layered" ? [{ key: "page-line", part: "front", tag: "path", d: `M${7.5 - shift} ${12 + shift} H${12 - shift} M${7.5 - shift} ${15 + shift} H${10.5 - shift}`, ...detail_style(variant) }] : []
|
|
25
|
+
];
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
copy_definition
|
|
31
|
+
};
|