maoyingjie 2e3fdd4800 fix(demos): inherit ConfigProvider locale and restore the format-options popover width
HD-03 scope, all against heroui ce90ea3 cn sources:

- calendar-disabled/read-only: restore the today() default value and the
  baseline description lines (日历已禁用 / 日历为只读) inside the
  flex flex-col items-center wrapper
- calendar-controlled: restore the second button row (设为今天/设为圣诞节/
  清空) and the baseline feedback wording (已选日期:…(未选))
- locale inheritance: add a public useLocale() accessor (the components'
  ConfigProvider → en-US/ltr chain) and use it for startOfWeek in
  calendar-controlled, isWeekend in booking-calendar/unavailable-dates and
  the DateFormatter in date-range-picker-format-options instead of the
  hardcoded 'en-US' / 'zh-CN' literals
- date-range-picker-format-options: restore the pinned w-full popover class;
  the pinned source positions the popover against the initial containing
  block (full viewport width — verified on the reference docs at desktop and
  narrow), while Reka's shrink-to-fit positioning wrapper collapses the same
  class. A scoped adapter rule (.hv-date-range-picker__popover.w-full →
  100vw, layering-safe like the dropdown static-wrapper adapter) restores
  the baseline effect: viewport-wide popover, 252px calendar, stretched
  time rows, identical boundary clamping

- tests: locale dynamic-switching regressions covering zh-CN/en-US for week
  start, weekend rules (with ar-EG flipping the weekend for a observable
  rule change) and range formatting; full suite 110 files / 1627 tests,
  typecheck, build:docs and the date-range-picker / api-root-aliases /
  calendar tarball contracts pass
2026-10-28 16:35:26 +08:00

HeroUI Vue

当前仅支持浏览器客户端使用,暂不支持SSR、服务端水合或Nuxt服务端渲染。除用户明确重新启用外,不开发、不修复、不新增也不运行相关专项;历史通过记录不构成支持承诺。

独立的 Vue 3 组件库项目,以 HeroUI v3 为设计参考。社区实验项目,非官方发行版,当前包均未发布。

本地运行

需要 Node.js 22.12+(使用 Node 22 时)和 pnpm 11。更高 Node 主版本需符合 Vite 的支持范围。

pnpm install --frozen-lockfile
pnpm dev

默认启动组件文档:http://127.0.0.1:5173/components/button。pnpm dev:playground 启动独立验证页。

文档开发模式直接加载工作区组件与样式源码,支持热更新,启动时不再预构建全库;生产构建仍使用包产物。文档端口固定为 5173,占用时会报错,请先停止已有文档进程,避免打开不同实例。

pnpm build
pnpm typecheck
pnpm test
pnpm build:playground
pnpm build:docs

packages/vue 为组件包,packages/styles 为独立样式包;apps/playground 用于交互验证,apps/docs 提供 VitePress 文档。构建库不需要旁边的原 React 仓库。

当前公共展示、表单、弹层、集合、Toast/Table及DateField/Calendar已集成,颜色与范围日历等仍有待公开家族。具体进度见 当前进度,能力和限制见 兼容矩阵,不能据此声明完整兼容。

临时包名为 @heroui-vue/components、@heroui-vue/styles,均设置 private: true;发布前需确认包名、许可证与版本策略。

当前文档采用上游中文标题、说明和示例次序,并提供同一 SFC 源码的可运行演示。样式来源与许可见 上游记录,尚未覆盖的能力见 兼容矩阵。

独立会话协作

实施者和集成人统一从 任务入口 开始;读取 AGENTS.md 与指定任务卡,运行 node scripts/task-check.mjs <ID>。任务范围、起点、依赖、验证及交付记录保存在仓库,不依赖聊天历史或临时文件。

日常按 验证入口 选择相关套件;pnpm test用于完整集成回归。历史返修材料默认不读,查询方法见 历史入口。

暂不投入逐像素自动对比、完整读屏矩阵、真机矩阵和Nuxt集成。重点浏览器交互、键盘与基础可访问性检查保留。公开产物验收统一使用node scripts/check-package.mjs <相关契约ID>。

S
Description
No description provided
Readme 11 MiB
Languages
TypeScript 50.1%
Vue 41.6%
CSS 7.4%
JavaScript 0.9%