feat: add public ColorArea components, docs, and package contract
This commit is contained in:
@@ -253,6 +253,14 @@ CSS/tv 仅加 `hv-` 前缀与 Apache-2.0 来源;`circle/square`、`xs/sm/md/lg
|
||||
|
||||
上游 `render` 映射为 `as`/`asChild` 与原生 attrs;`style` render prop 的函数形式在 Vue 模板中改为 `styleFn`(Vue 编译器会规整保留的 `style` 函数值),普通样式仍用 `style`。默认作用域插槽接收 `{ color }`。未迁移 ColorSwatchPicker 的 `ColorSwatchContext`(该家族不在本任务范围),也没有运行时依赖相邻 React 仓库。
|
||||
|
||||
## COLOR-AREA ColorArea(2026-10-26)
|
||||
|
||||
固定 HeroUI 3.2.6 / `ce90ea3ab49d58f6c428f71bfd6fe8ae2a87b960`:`packages/react/src/components/color-area/{index.ts,color-area.tsx}`、`packages/styles/components/color-area.css`、`packages/styles/src/components/color-area/color-area.styles.ts`,中文 `(colors)/color-area.mdx` 与 `demos/cn/color-area` 全部 7 例(basic/with-dots/space-and-channels/disabled/controlled/render-function/custom-styles)。
|
||||
|
||||
CSS/tv 仅加 `hv-` 前缀与 Apache-2.0 来源;`showDots`、`hv-color-area`/`__thumb` 与 data-disabled/focus-visible/dragging 保持基线。Vue 侧复用本库 `components/color/{value,model,area,gradient}.ts` 的不可变 Color、共享 owner、二维事务与梯度,不包装 React Aria。固定源 `react-stately@3.9.0` 的 `useColorAreaState` 默认 `#ffffff`,`getColorSpaceAxes` 未指定轴时取空间首个剩余通道(RGB red/green,HSL/HSB hue/saturation);本库按该运行时行为实现,未照抄中文 API 简表的 saturation/brightness。上游 `render` 映射为 `as`/`asChild`(Root)与 `as`(Thumb),style 函数在模板中使用 `styleFn`。
|
||||
|
||||
ColorArea 的 `xName`/`yName`/`form` 只生成两个原生 range 输入;共享 owner 的完整颜色提交仍归 owner,未在子项增加重复隐藏颜色或 reset 所有权。默认值、受控拒绝/重试、动态 owner、locale/RTL、readOnly 扩展、真实浏览器和 tarball 证据见 [任务结果](tasks/results/COLOR-AREA.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