merge: integrate reviewed M30-M32 with NumberField Slider and migration lessons
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
# 上游基线与移植来源
|
||||
|
||||
## NUMBER-01 NumberField(2026-10-23)
|
||||
|
||||
沿用固定 `ce90ea3ab49d58f6c428f71bfd6fe8ae2a87b960`。移植来源:`packages/react/src/components/number-field/`、`packages/styles/components/number-field.css`、对应 tv、中文 number-field.mdx 与 `apps/docs/src/demos/cn/number-field/` 的 17 个预览。上游图标 `packages/react/src/components/icons.tsx` 的 IconPlus/IconMinus 路径用于默认部件;版权/许可证沿用 third-party/HEROUI-LICENSE。自定义图标示例改用已有 Tabler Vue。
|
||||
|
||||
交互复用安装版 Reka 2.11.0 的 NumberFieldRoot 及公开上下文:本库薄适配输入/按钮与共享字段状态,补 readonly Home/End、受控空值、规范表单值及取消 reset。未运行或包装 React,也未新增依赖。CSS 仅改 hv- 前缀;根 Reka 的 disabled/readonly 为存在标记,Group/叶子采用源 CSS 所需的 true 标记。详细契约与验证边界见 [NUMBER-01 报告](./migrations/NUMBER-01-number-field.md)。
|
||||
|
||||
- 项目:https://github.com/heroui-inc/heroui
|
||||
- 基线版本:3.2.6
|
||||
- 提交:ce90ea3ab49d58f6c428f71bfd6fe8ae2a87b960
|
||||
@@ -148,3 +154,9 @@ M18–M20 的标签桥接在 Vue 使用 indicator 注册表与 SSR 直接/原生
|
||||
- pagination.css、header.css、input-otp.css 及 tv 完整移植 hv- 命名空间;Pagination 默认 chevron 来自基线 icons.tsx(Apache-2.0)。演示图标为 Tabler Vue。
|
||||
- Pagination Link/Previous/Next 对应 RAC Button;Header 对应 RAC Header(`dom.header`)。InputOTP 上游为 input-otp 包(MIT),Vue 使用安装版 Reka PinInput 2.11.0(MIT)做多 input 适配,未引入 React input-otp 运行时。
|
||||
- 中文 pagination.mdx / input-otp.mdx 的 9+11 预览、API/样式表按基线次序迁移;Header 页为自编并标注。
|
||||
|
||||
## SLIDER-01(2026-10-23)
|
||||
|
||||
- 固定 ce90ea3 的 `packages/react/src/components/slider/slider.tsx`、`packages/styles/components/slider.css`、`packages/styles/src/components/slider/slider.styles.ts`;Apache-2.0 原声明见 third-party/HEROUI-LICENSE。
|
||||
- 英文正文 `apps/docs/content/docs/en/react/components/(controls)/slider.mdx` 与 `apps/docs/src/demos/cn/slider/` 九个正文示例。当前固定基线没有中文 Slider 正文。
|
||||
- CSS 保留视觉数值并改 hv- 命名空间;伪元素 reduced-motion 改等价原生媒体查询。局部原生 range / pointer capture 的原因与差异见 [SLIDER-01](migrations/SLIDER-01-slider.md)。
|
||||
|
||||
Reference in New Issue
Block a user