feat: migrate public ColorSlider with docs and tests
This commit is contained in:
@@ -261,6 +261,14 @@ CSS/tv 仅加 `hv-` 前缀与 Apache-2.0 来源;`showDots`、`hv-color-area`/`
|
||||
|
||||
ColorArea 的 `xName`/`yName`/`form` 只生成两个原生 range 输入;共享 owner 的完整颜色提交仍归 owner,未在子项增加重复隐藏颜色或 reset 所有权。默认值、受控拒绝/重试、动态 owner、locale/RTL、readOnly 扩展、真实浏览器和 tarball 证据见 [任务结果](tasks/results/COLOR-AREA.md)。
|
||||
|
||||
## COLOR-SLIDER ColorSlider(2026-10-27)
|
||||
|
||||
固定 HeroUI 3.2.6 / `ce90ea3ab49d58f6c428f71bfd6fe8ae2a87b960`:`packages/react/src/components/color-slider/{index.ts,color-slider.tsx}`、`packages/styles/components/color-slider.css`、`packages/styles/src/components/color-slider/color-slider.styles.ts`,中文 `(colors)/color-slider.mdx` 与 `demos/cn/color-slider` 全部 9 例(basic/disabled/vertical/controlled/channels/alpha-channel/rgb-channels/render-function/custom-styles)。
|
||||
|
||||
CSS/tv 仅加 `hv-` 前缀与 Apache-2.0 来源;既有端帽适配(合法双色标 + 透明棋盘)沿用 COLOR-04,未再次移植。Vue 侧复用 `components/color/{value,model,channel,native-channel,slider,slider-gradient,labels}.ts` 的不可变 Color、共享 owner、通道解析、原生 range 事务与轨道几何,不包装 React Aria。审计安装版 `react-stately@3.50.0` 的 `useColorSliderState`:无 `value`/`defaultValue` 时抛错,`getDisplayColor` 对 hue 使用全饱和显示色、alpha 保留透明度;未指定颜色空间时按通道推断。上游 `render` 映射为 `as`/`asChild`(Root)与 `as`(Output/Track/Thumb),style 函数在模板中使用 `styleFn`。
|
||||
|
||||
发布 `ColorSliderProps` 使用固定源的 channel/colorSpace 判别联合;SFC 对显式非法组合发出开发期警告并自动纠正(red/green/blue→rgb、lightness→hsl、brightness→hsb、hue/saturation+rgb→hsl)。单个原生 range 承担名称、范围、方向、值文本、表单提交与 reset;继承子项不重复 owner 的完整颜色提交。证据与差异见 [任务结果](tasks/results/COLOR-SLIDER.md)。
|
||||
|
||||
## TIME-FIELD(2026-10-26)
|
||||
|
||||
固定 HeroUI 3.2.6 / `ce90ea3ab49d58f6c428f71bfd6fe8ae2a87b960`:`packages/react/src/components/time-field/{index.ts,time-field.tsx}`、共享 date-input-group、`packages/styles/components/time-field.css` 与 `packages/styles/src/components/time-field/time-field.styles.ts`,中文 `(date-and-time)/time-field.mdx` 和 `demos/cn/time-field` 全部15例。
|
||||
|
||||
Reference in New Issue
Block a user